flowbite-svelte 1.8.6 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion/Accordion.svelte +8 -9
- package/dist/accordion/Accordion.svelte.d.ts +1 -1
- package/dist/accordion/AccordionItem.svelte +10 -11
- package/dist/accordion/AccordionItem.svelte.d.ts +1 -1
- package/dist/accordion/index.d.ts +1 -1
- package/dist/accordion/index.js +1 -1
- package/dist/accordion/theme.d.ts +18 -3
- package/dist/accordion/theme.js +6 -2
- package/dist/alert/Alert.svelte +8 -8
- package/dist/alert/Alert.svelte.d.ts +1 -1
- package/dist/alert/index.d.ts +1 -1
- package/dist/alert/theme.d.ts +1 -0
- package/dist/avatar/Avatar.svelte +8 -9
- package/dist/avatar/Avatar.svelte.d.ts +1 -1
- package/dist/avatar/index.d.ts +1 -1
- package/dist/avatar/theme.d.ts +1 -0
- package/dist/badge/Badge.svelte +9 -11
- package/dist/badge/Badge.svelte.d.ts +1 -1
- package/dist/badge/index.d.ts +1 -1
- package/dist/badge/theme.d.ts +5 -3
- package/dist/badge/theme.js +1 -1
- package/dist/banner/Banner.svelte +9 -5
- package/dist/banner/Banner.svelte.d.ts +1 -1
- package/dist/banner/index.d.ts +1 -1
- package/dist/banner/theme.d.ts +2 -0
- package/dist/bottom-navigation/BottomNav.svelte +8 -4
- package/dist/bottom-navigation/BottomNav.svelte.d.ts +1 -1
- package/dist/bottom-navigation/BottomNavHeader.svelte +11 -6
- package/dist/bottom-navigation/BottomNavHeader.svelte.d.ts +1 -1
- package/dist/bottom-navigation/BottomNavHeaderItem.svelte +9 -4
- package/dist/bottom-navigation/BottomNavHeaderItem.svelte.d.ts +1 -1
- package/dist/bottom-navigation/BottomNavItem.svelte +8 -4
- package/dist/bottom-navigation/BottomNavItem.svelte.d.ts +1 -1
- package/dist/bottom-navigation/index.d.ts +1 -1
- package/dist/bottom-navigation/index.js +1 -1
- package/dist/bottom-navigation/theme.d.ts +10 -2
- package/dist/bottom-navigation/theme.js +2 -2
- package/dist/breadcrumb/Breadcrumb.svelte +7 -10
- package/dist/breadcrumb/Breadcrumb.svelte.d.ts +1 -1
- package/dist/breadcrumb/BreadcrumbItem.svelte +13 -10
- package/dist/breadcrumb/BreadcrumbItem.svelte.d.ts +1 -1
- package/dist/breadcrumb/index.d.ts +1 -1
- package/dist/breadcrumb/index.js +1 -1
- package/dist/breadcrumb/theme.d.ts +33 -22
- package/dist/breadcrumb/theme.js +18 -12
- package/dist/button-group/ButtonGroup.svelte +5 -2
- package/dist/button-group/ButtonGroup.svelte.d.ts +1 -1
- package/dist/button-group/index.d.ts +1 -1
- package/dist/button-group/theme.d.ts +1 -0
- package/dist/buttons/Button.svelte +7 -3
- package/dist/buttons/Button.svelte.d.ts +1 -1
- package/dist/buttons/GradientButton.svelte +8 -5
- package/dist/buttons/GradientButton.svelte.d.ts +1 -1
- package/dist/buttons/index.d.ts +1 -1
- package/dist/buttons/theme.d.ts +4 -0
- package/dist/card/Card.svelte +9 -6
- package/dist/card/Card.svelte.d.ts +2 -2
- package/dist/card/index.d.ts +1 -1
- package/dist/card/theme.d.ts +2 -0
- package/dist/carousel/Carousel.svelte +5 -2
- package/dist/carousel/Carousel.svelte.d.ts +1 -1
- package/dist/carousel/{Indicators.svelte → CarouselIndicators.svelte} +8 -5
- package/dist/carousel/{Indicators.svelte.d.ts → CarouselIndicators.svelte.d.ts} +4 -4
- package/dist/carousel/ControlButton.svelte +5 -2
- package/dist/carousel/ControlButton.svelte.d.ts +1 -1
- package/dist/carousel/Controls.svelte +6 -3
- package/dist/carousel/Controls.svelte.d.ts +1 -1
- package/dist/carousel/Slide.svelte +5 -2
- package/dist/carousel/Slide.svelte.d.ts +1 -1
- package/dist/carousel/Thumbnail.svelte +5 -2
- package/dist/carousel/Thumbnail.svelte.d.ts +1 -1
- package/dist/carousel/Thumbnails.svelte +5 -2
- package/dist/carousel/Thumbnails.svelte.d.ts +1 -1
- package/dist/carousel/index.d.ts +2 -2
- package/dist/carousel/index.js +2 -2
- package/dist/carousel/theme.d.ts +8 -1
- package/dist/carousel/theme.js +1 -2
- package/dist/clipboard/Clipboard.svelte +6 -3
- package/dist/clipboard/Clipboard.svelte.d.ts +2 -2
- package/dist/clipboard/index.d.ts +1 -1
- package/dist/clipboard/theme.d.ts +1 -0
- package/dist/darkmode/DarkMode.svelte +5 -2
- package/dist/darkmode/DarkMode.svelte.d.ts +1 -1
- package/dist/darkmode/index.d.ts +1 -1
- package/dist/darkmode/theme.d.ts +1 -0
- package/dist/datepicker/Datepicker.svelte +127 -86
- package/dist/datepicker/Datepicker.svelte.d.ts +38 -5
- package/dist/datepicker/index.d.ts +1 -1
- package/dist/datepicker/theme.d.ts +2 -0
- package/dist/device-mockups/Android.svelte +1 -1
- package/dist/device-mockups/Android.svelte.d.ts +1 -1
- package/dist/device-mockups/DefaultMockup.svelte +1 -1
- package/dist/device-mockups/DefaultMockup.svelte.d.ts +1 -1
- package/dist/device-mockups/Desktop.svelte +1 -1
- package/dist/device-mockups/Desktop.svelte.d.ts +1 -1
- package/dist/device-mockups/DeviceMockup.svelte +1 -1
- package/dist/device-mockups/DeviceMockup.svelte.d.ts +1 -1
- package/dist/device-mockups/Ios.svelte +1 -1
- package/dist/device-mockups/Ios.svelte.d.ts +1 -1
- package/dist/device-mockups/Laptop.svelte +1 -1
- package/dist/device-mockups/Laptop.svelte.d.ts +1 -1
- package/dist/device-mockups/Smartwatch.svelte +1 -1
- package/dist/device-mockups/Smartwatch.svelte.d.ts +1 -1
- package/dist/device-mockups/Tablet.svelte +1 -1
- package/dist/device-mockups/Tablet.svelte.d.ts +1 -1
- package/dist/device-mockups/theme.d.ts +21 -21
- package/dist/drawer/Drawer.svelte +8 -5
- package/dist/drawer/Drawer.svelte.d.ts +1 -1
- package/dist/drawer/Drawerhead.svelte +8 -5
- package/dist/drawer/Drawerhead.svelte.d.ts +1 -1
- package/dist/drawer/index.d.ts +1 -1
- package/dist/drawer/theme.d.ts +16 -12
- package/dist/drawer/theme.js +4 -4
- package/dist/dropdown/Dropdown.svelte +5 -2
- package/dist/dropdown/Dropdown.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownDivider.svelte +5 -2
- package/dist/dropdown/DropdownDivider.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownGroup.svelte +5 -2
- package/dist/dropdown/DropdownGroup.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownHeader.svelte +5 -2
- package/dist/dropdown/DropdownHeader.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownItem.svelte +6 -3
- package/dist/dropdown/DropdownItem.svelte.d.ts +1 -1
- package/dist/dropdown/index.d.ts +1 -1
- package/dist/dropdown/theme.d.ts +7 -0
- package/dist/footer/Footer.svelte +5 -2
- package/dist/footer/Footer.svelte.d.ts +1 -1
- package/dist/footer/FooterBrand.svelte +8 -5
- package/dist/footer/FooterBrand.svelte.d.ts +1 -1
- package/dist/footer/FooterCopyright.svelte +8 -5
- package/dist/footer/FooterCopyright.svelte.d.ts +1 -1
- package/dist/footer/FooterIcon.svelte +5 -2
- package/dist/footer/FooterIcon.svelte.d.ts +1 -1
- package/dist/footer/FooterLink.svelte +8 -4
- package/dist/footer/FooterLink.svelte.d.ts +1 -1
- package/dist/footer/FooterLinkGroup.svelte +5 -2
- package/dist/footer/FooterLinkGroup.svelte.d.ts +1 -1
- package/dist/footer/index.d.ts +1 -1
- package/dist/footer/theme.d.ts +18 -10
- package/dist/footer/theme.js +6 -7
- package/dist/forms/button-toggle/ButtonToggle.svelte +8 -5
- package/dist/forms/button-toggle/ButtonToggle.svelte.d.ts +1 -1
- package/dist/forms/button-toggle/ButtonToggleGroup.svelte +4 -1
- package/dist/forms/button-toggle/CheckIcon.svelte +1 -1
- package/dist/forms/button-toggle/CheckIcon.svelte.d.ts +1 -1
- package/dist/forms/button-toggle/index.d.ts +1 -1
- package/dist/forms/button-toggle/theme.d.ts +152 -144
- package/dist/forms/button-toggle/theme.js +65 -63
- package/dist/forms/checkbox/Checkbox.svelte +8 -5
- package/dist/forms/checkbox/CheckboxButton.svelte +5 -2
- package/dist/forms/checkbox/CheckboxButton.svelte.d.ts +1 -1
- package/dist/forms/checkbox/index.d.ts +1 -1
- package/dist/forms/checkbox/theme.d.ts +3 -0
- package/dist/forms/dropzone/Dropzone.svelte +5 -2
- package/dist/forms/dropzone/Dropzone.svelte.d.ts +1 -1
- package/dist/forms/dropzone/index.d.ts +1 -1
- package/dist/forms/dropzone/theme.d.ts +1 -0
- package/dist/forms/fileupload/Fileupload.svelte +8 -5
- package/dist/forms/fileupload/Fileupload.svelte.d.ts +1 -1
- package/dist/forms/fileupload/index.d.ts +1 -1
- package/dist/forms/fileupload/theme.d.ts +2 -0
- package/dist/forms/floating-label/FloatingLabelInput.svelte +11 -8
- package/dist/forms/floating-label/FloatingLabelInput.svelte.d.ts +1 -1
- package/dist/forms/floating-label/index.d.ts +1 -1
- package/dist/forms/floating-label/theme.d.ts +5 -3
- package/dist/forms/floating-label/theme.js +1 -1
- package/dist/forms/helper/Helper.svelte +5 -2
- package/dist/forms/helper/Helper.svelte.d.ts +1 -1
- package/dist/forms/helper/index.d.ts +1 -1
- package/dist/forms/helper/theme.d.ts +1 -0
- package/dist/forms/input-addon/InputAddon.svelte +6 -2
- package/dist/forms/input-addon/InputAddon.svelte.d.ts +1 -1
- package/dist/forms/input-field/Input.svelte +13 -10
- package/dist/forms/input-field/index.d.ts +1 -1
- package/dist/forms/input-field/theme.d.ts +5 -3
- package/dist/forms/input-field/theme.js +1 -1
- package/dist/forms/label/Label.svelte +5 -2
- package/dist/forms/label/Label.svelte.d.ts +1 -1
- package/dist/forms/label/index.d.ts +1 -1
- package/dist/forms/label/theme.d.ts +1 -0
- package/dist/forms/phoneinput/PhoneInput.svelte +11 -8
- package/dist/forms/phoneinput/PhoneInput.svelte.d.ts +1 -1
- package/dist/forms/phoneinput/index.d.ts +1 -1
- package/dist/forms/phoneinput/theme.d.ts +2 -0
- package/dist/forms/radio/Radio.svelte +6 -3
- package/dist/forms/radio/RadioButton.svelte +4 -1
- package/dist/forms/radio/index.d.ts +1 -1
- package/dist/forms/radio/theme.d.ts +3 -0
- package/dist/forms/range/Range.svelte +5 -2
- package/dist/forms/range/Range.svelte.d.ts +1 -1
- package/dist/forms/range/theme.d.ts +1 -0
- package/dist/forms/search/Search.svelte +12 -9
- package/dist/forms/search/Search.svelte.d.ts +1 -1
- package/dist/forms/search/index.d.ts +1 -1
- package/dist/forms/search/theme.d.ts +5 -3
- package/dist/forms/search/theme.js +1 -1
- package/dist/forms/select/MultiSelect.svelte +7 -4
- package/dist/forms/select/Select.svelte +8 -5
- package/dist/forms/select/index.d.ts +1 -1
- package/dist/forms/select/index.js +1 -1
- package/dist/forms/select/theme.d.ts +7 -3
- package/dist/forms/select/theme.js +1 -1
- package/dist/forms/tags/Tags.svelte +10 -7
- package/dist/forms/tags/Tags.svelte.d.ts +1 -1
- package/dist/forms/tags/index.d.ts +1 -1
- package/dist/forms/tags/theme.d.ts +11 -9
- package/dist/forms/tags/theme.js +1 -1
- package/dist/forms/textarea/Textarea.svelte +14 -11
- package/dist/forms/textarea/Textarea.svelte.d.ts +1 -1
- package/dist/forms/textarea/index.d.ts +1 -1
- package/dist/forms/textarea/theme.d.ts +5 -3
- package/dist/forms/textarea/theme.js +1 -1
- package/dist/forms/timepicker/Timepicker.svelte +107 -64
- package/dist/forms/timepicker/Timepicker.svelte.d.ts +1 -1
- package/dist/forms/timepicker/index.d.ts +1 -0
- package/dist/forms/timepicker/index.js +1 -0
- package/dist/forms/timepicker/theme.d.ts +191 -0
- package/dist/forms/timepicker/theme.js +72 -0
- package/dist/forms/toggle/Toggle.svelte +8 -5
- package/dist/forms/toggle/Toggle.svelte.d.ts +1 -1
- package/dist/forms/toggle/index.d.ts +1 -1
- package/dist/forms/toggle/theme.d.ts +2 -0
- package/dist/gallery/Gallery.svelte +7 -4
- package/dist/gallery/Gallery.svelte.d.ts +1 -1
- package/dist/gallery/index.d.ts +1 -1
- package/dist/gallery/theme.d.ts +5 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -2
- package/dist/indicator/Indicator.svelte +6 -3
- package/dist/indicator/Indicator.svelte.d.ts +1 -1
- package/dist/indicator/index.d.ts +1 -1
- package/dist/indicator/theme.d.ts +121 -360
- package/dist/indicator/theme.js +48 -56
- package/dist/kbd/Kbd.svelte +6 -2
- package/dist/kbd/Kbd.svelte.d.ts +1 -1
- package/dist/kbd/index.d.ts +1 -1
- package/dist/kbd/theme.d.ts +1 -0
- package/dist/list-group/Listgroup.svelte +5 -2
- package/dist/list-group/Listgroup.svelte.d.ts +1 -1
- package/dist/list-group/ListgroupItem.svelte +7 -4
- package/dist/list-group/ListgroupItem.svelte.d.ts +1 -1
- package/dist/list-group/index.d.ts +1 -1
- package/dist/list-group/theme.d.ts +2 -0
- package/dist/mega-menu/MegaMenu.svelte +9 -6
- package/dist/mega-menu/MegaMenu.svelte.d.ts +1 -1
- package/dist/mega-menu/index.d.ts +1 -1
- package/dist/mega-menu/theme.d.ts +2 -0
- package/dist/modal/Modal.svelte +86 -70
- package/dist/modal/Modal.svelte.d.ts +5 -1
- package/dist/modal/index.d.ts +2 -3
- package/dist/modal/index.js +2 -3
- package/dist/modal/theme.d.ts +8 -3
- package/dist/modal/theme.js +2 -1
- package/dist/navbar/Menu.svelte +6 -2
- package/dist/navbar/Menu.svelte.d.ts +1 -1
- package/dist/navbar/NavBrand.svelte +7 -4
- package/dist/navbar/NavBrand.svelte.d.ts +1 -1
- package/dist/navbar/NavContainer.svelte +7 -4
- package/dist/navbar/NavContainer.svelte.d.ts +1 -1
- package/dist/navbar/NavHamburger.svelte +9 -6
- package/dist/navbar/NavHamburger.svelte.d.ts +1 -1
- package/dist/navbar/NavLi.svelte +7 -4
- package/dist/navbar/NavLi.svelte.d.ts +1 -1
- package/dist/navbar/NavUl.svelte +11 -8
- package/dist/navbar/NavUl.svelte.d.ts +1 -1
- package/dist/navbar/Navbar.svelte +6 -4
- package/dist/navbar/Navbar.svelte.d.ts +1 -1
- package/dist/navbar/index.d.ts +7 -7
- package/dist/navbar/index.js +7 -7
- package/dist/navbar/theme.d.ts +12 -5
- package/dist/navbar/theme.js +5 -5
- package/dist/pagination/Pagination.svelte +7 -3
- package/dist/pagination/Pagination.svelte.d.ts +1 -1
- package/dist/pagination/PaginationButton.svelte +18 -12
- package/dist/pagination/PaginationButton.svelte.d.ts +1 -1
- package/dist/pagination/PaginationItem.svelte +7 -4
- package/dist/pagination/PaginationItem.svelte.d.ts +1 -1
- package/dist/pagination/PaginationNav.svelte +13 -11
- package/dist/pagination/PaginationNav.svelte.d.ts +1 -1
- package/dist/pagination/index.d.ts +1 -1
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/theme.d.ts +7 -2
- package/dist/pagination/theme.js +2 -2
- package/dist/popover/Popover.svelte +10 -7
- package/dist/popover/Popover.svelte.d.ts +1 -1
- package/dist/popover/index.d.ts +2 -3
- package/dist/popover/index.js +2 -3
- package/dist/popover/theme.d.ts +2 -3
- package/dist/popover/theme.js +1 -2
- package/dist/progress/Progressbar.svelte +12 -8
- package/dist/progress/Progressbar.svelte.d.ts +1 -1
- package/dist/progress/Progressradial.svelte +13 -9
- package/dist/progress/Progressradial.svelte.d.ts +1 -1
- package/dist/progress/index.d.ts +1 -1
- package/dist/progress/index.js +1 -1
- package/dist/progress/theme.d.ts +4 -0
- package/dist/rating/AdvancedRating.svelte +12 -9
- package/dist/rating/AdvancedRating.svelte.d.ts +1 -1
- package/dist/rating/CustomIcon.svelte +1 -1
- package/dist/rating/CustomIcon.svelte.d.ts +1 -1
- package/dist/rating/Heart.svelte +1 -1
- package/dist/rating/Heart.svelte.d.ts +1 -1
- package/dist/rating/Rating.svelte +8 -4
- package/dist/rating/Rating.svelte.d.ts +1 -1
- package/dist/rating/RatingComment.svelte +1 -1
- package/dist/rating/RatingComment.svelte.d.ts +1 -1
- package/dist/rating/Review.svelte +14 -11
- package/dist/rating/Review.svelte.d.ts +1 -1
- package/dist/rating/ScoreRating.svelte +14 -10
- package/dist/rating/ScoreRating.svelte.d.ts +1 -1
- package/dist/rating/Star.svelte +1 -1
- package/dist/rating/Star.svelte.d.ts +1 -1
- package/dist/rating/Thumbup.svelte +1 -1
- package/dist/rating/Thumbup.svelte.d.ts +1 -1
- package/dist/rating/index.d.ts +10 -11
- package/dist/rating/index.js +10 -11
- package/dist/rating/theme.d.ts +16 -14
- package/dist/rating/theme.js +2 -3
- package/dist/sidebar/Sidebar.svelte +12 -9
- package/dist/sidebar/Sidebar.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarBrand.svelte +10 -7
- package/dist/sidebar/SidebarBrand.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarButton.svelte +8 -4
- package/dist/sidebar/SidebarButton.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarCta.svelte +11 -7
- package/dist/sidebar/SidebarCta.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarDropdownWrapper.svelte +13 -10
- package/dist/sidebar/SidebarDropdownWrapper.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarGroup.svelte +1 -1
- package/dist/sidebar/SidebarGroup.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarItem.svelte +1 -1
- package/dist/sidebar/SidebarItem.svelte.d.ts +1 -1
- package/dist/sidebar/index.d.ts +10 -11
- package/dist/sidebar/index.js +10 -11
- package/dist/sidebar/theme.d.ts +22 -13
- package/dist/sidebar/theme.js +4 -4
- package/dist/skeleton/CardPlaceholder.svelte +17 -14
- package/dist/skeleton/CardPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ImagePlaceholder.svelte +17 -14
- package/dist/skeleton/ImagePlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ListPlaceholder.svelte +12 -9
- package/dist/skeleton/ListPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/Skeleton.svelte +15 -11
- package/dist/skeleton/Skeleton.svelte.d.ts +1 -1
- package/dist/skeleton/TestimonialPlaceholder.svelte +14 -10
- package/dist/skeleton/TestimonialPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/TextPlaceholder.svelte +32 -28
- package/dist/skeleton/TextPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/VideoPlaceholder.svelte +7 -3
- package/dist/skeleton/VideoPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/WidgetPlaceholder.svelte +8 -4
- package/dist/skeleton/WidgetPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/index.d.ts +9 -10
- package/dist/skeleton/index.js +9 -10
- package/dist/skeleton/theme.d.ts +29 -15
- package/dist/skeleton/theme.js +8 -9
- package/dist/speed-dial/SpeedDial.svelte +9 -9
- package/dist/speed-dial/SpeedDial.svelte.d.ts +1 -1
- package/dist/speed-dial/SpeedDialButton.svelte +9 -8
- package/dist/speed-dial/SpeedDialButton.svelte.d.ts +1 -1
- package/dist/speed-dial/SpeedDialTrigger.svelte +1 -1
- package/dist/speed-dial/SpeedDialTrigger.svelte.d.ts +1 -1
- package/dist/speed-dial/index.d.ts +4 -5
- package/dist/speed-dial/index.js +4 -5
- package/dist/speed-dial/theme.d.ts +8 -4
- package/dist/speed-dial/theme.js +2 -2
- package/dist/spinner/Spinner.svelte +6 -3
- package/dist/spinner/Spinner.svelte.d.ts +1 -1
- package/dist/spinner/index.d.ts +2 -3
- package/dist/spinner/index.js +2 -3
- package/dist/spinner/theme.d.ts +1 -0
- package/dist/stepindicator/StepIndicator.svelte +28 -49
- package/dist/stepindicator/StepIndicator.svelte.d.ts +3 -3
- package/dist/stepindicator/index.d.ts +1 -0
- package/dist/stepindicator/index.js +1 -0
- package/dist/stepindicator/theme.d.ts +246 -0
- package/dist/stepindicator/theme.js +103 -0
- package/dist/stepper/BreadcrumbStepper.svelte +15 -11
- package/dist/stepper/BreadcrumbStepper.svelte.d.ts +1 -1
- package/dist/stepper/DetailedStepper.svelte +9 -9
- package/dist/stepper/DetailedStepper.svelte.d.ts +1 -1
- package/dist/stepper/ProgressStepper.svelte +13 -11
- package/dist/stepper/ProgressStepper.svelte.d.ts +1 -1
- package/dist/stepper/Stepper.svelte +15 -13
- package/dist/stepper/Stepper.svelte.d.ts +1 -1
- package/dist/stepper/TimelineStepper.svelte +9 -9
- package/dist/stepper/TimelineStepper.svelte.d.ts +1 -1
- package/dist/stepper/VerticalStepper.svelte +9 -10
- package/dist/stepper/VerticalStepper.svelte.d.ts +1 -1
- package/dist/stepper/index.d.ts +1 -1
- package/dist/stepper/index.js +1 -1
- package/dist/stepper/theme.d.ts +303 -261
- package/dist/stepper/theme.js +198 -186
- package/dist/table/Table.svelte +8 -6
- package/dist/table/Table.svelte.d.ts +2 -2
- package/dist/table/TableBody.svelte +6 -2
- package/dist/table/TableBody.svelte.d.ts +1 -1
- package/dist/table/TableBodyCell.svelte +7 -4
- package/dist/table/TableBodyCell.svelte.d.ts +1 -1
- package/dist/table/TableBodyRow.svelte +8 -5
- package/dist/table/TableBodyRow.svelte.d.ts +1 -1
- package/dist/table/TableHead.svelte +8 -5
- package/dist/table/TableHead.svelte.d.ts +1 -1
- package/dist/table/TableHeadCell.svelte +7 -4
- package/dist/table/TableHeadCell.svelte.d.ts +1 -1
- package/dist/table/TableSearch.svelte +35 -30
- package/dist/table/TableSearch.svelte.d.ts +8 -8
- package/dist/table/index.d.ts +8 -9
- package/dist/table/index.js +8 -9
- package/dist/table/theme.d.ts +192 -4
- package/dist/table/theme.js +68 -4
- package/dist/tabs/TabItem.svelte +8 -5
- package/dist/tabs/TabItem.svelte.d.ts +1 -1
- package/dist/tabs/Tabs.svelte +9 -6
- package/dist/tabs/Tabs.svelte.d.ts +1 -1
- package/dist/tabs/index.d.ts +3 -4
- package/dist/tabs/index.js +3 -4
- package/dist/tabs/theme.d.ts +4 -0
- package/dist/theme/ThemeProvider.svelte +30 -0
- package/dist/theme/ThemeProvider.svelte.d.ts +17 -0
- package/dist/theme/index.d.ts +0 -10293
- package/dist/theme/index.js +2 -119
- package/dist/theme/themeUtils.d.ts +2 -0
- package/dist/theme/themeUtils.js +6 -0
- package/dist/timeline/Activity.svelte +6 -3
- package/dist/timeline/Activity.svelte.d.ts +1 -1
- package/dist/timeline/ActivityItem.svelte +15 -11
- package/dist/timeline/ActivityItem.svelte.d.ts +1 -1
- package/dist/timeline/Group.svelte +11 -5
- package/dist/timeline/Group.svelte.d.ts +1 -1
- package/dist/timeline/GroupItem.svelte +13 -8
- package/dist/timeline/GroupItem.svelte.d.ts +1 -1
- package/dist/timeline/Timeline.svelte +6 -2
- package/dist/timeline/Timeline.svelte.d.ts +1 -1
- package/dist/timeline/TimelineItem.svelte +13 -9
- package/dist/timeline/TimelineItem.svelte.d.ts +1 -1
- package/dist/timeline/index.d.ts +7 -8
- package/dist/timeline/index.js +7 -8
- package/dist/timeline/theme.d.ts +25 -15
- package/dist/timeline/theme.js +3 -3
- package/dist/toast/Toast.svelte +10 -6
- package/dist/toast/Toast.svelte.d.ts +1 -1
- package/dist/toast/index.d.ts +2 -3
- package/dist/toast/index.js +2 -3
- package/dist/toast/theme.d.ts +2 -0
- package/dist/toolbar/Toolbar.svelte +8 -4
- package/dist/toolbar/Toolbar.svelte.d.ts +1 -1
- package/dist/toolbar/ToolbarButton.svelte +6 -2
- package/dist/toolbar/ToolbarButton.svelte.d.ts +1 -1
- package/dist/toolbar/ToolbarGroup.svelte +6 -2
- package/dist/toolbar/ToolbarGroup.svelte.d.ts +1 -1
- package/dist/toolbar/index.d.ts +4 -5
- package/dist/toolbar/index.js +4 -5
- package/dist/toolbar/theme.d.ts +4 -0
- package/dist/tooltip/Tooltip.svelte +7 -3
- package/dist/tooltip/Tooltip.svelte.d.ts +1 -1
- package/dist/tooltip/index.d.ts +2 -3
- package/dist/tooltip/index.js +2 -3
- package/dist/tooltip/theme.d.ts +2 -0
- package/dist/types.d.ts +37 -29
- package/dist/types.js +1 -1
- package/dist/typography/anchor/A.svelte +7 -3
- package/dist/typography/anchor/A.svelte.d.ts +1 -1
- package/dist/typography/anchor/index.d.ts +2 -3
- package/dist/typography/anchor/index.js +2 -3
- package/dist/typography/anchor/theme.d.ts +1 -0
- package/dist/typography/blockquote/Blockquote.svelte +6 -2
- package/dist/typography/blockquote/Blockquote.svelte.d.ts +1 -1
- package/dist/typography/blockquote/theme.d.ts +1 -0
- package/dist/typography/descriptionlist/DescriptionList.svelte +7 -3
- package/dist/typography/descriptionlist/DescriptionList.svelte.d.ts +1 -1
- package/dist/typography/descriptionlist/index.d.ts +2 -3
- package/dist/typography/descriptionlist/index.js +2 -3
- package/dist/typography/descriptionlist/theme.d.ts +1 -0
- package/dist/typography/heading/Heading.svelte +7 -3
- package/dist/typography/heading/Heading.svelte.d.ts +1 -1
- package/dist/typography/heading/index.d.ts +2 -3
- package/dist/typography/heading/index.js +2 -3
- package/dist/typography/heading/theme.d.ts +1 -0
- package/dist/typography/hr/Hr.svelte +10 -6
- package/dist/typography/hr/Hr.svelte.d.ts +1 -1
- package/dist/typography/hr/index.d.ts +2 -3
- package/dist/typography/hr/index.js +2 -3
- package/dist/typography/hr/theme.d.ts +2 -0
- package/dist/typography/img/EnhancedImg.svelte +10 -6
- package/dist/typography/img/EnhancedImg.svelte.d.ts +1 -1
- package/dist/typography/img/Img.svelte +10 -6
- package/dist/typography/img/Img.svelte.d.ts +1 -1
- package/dist/typography/img/index.d.ts +3 -4
- package/dist/typography/img/index.js +3 -4
- package/dist/typography/img/theme.d.ts +2 -0
- package/dist/typography/layout/Layout.svelte +6 -2
- package/dist/typography/layout/Layout.svelte.d.ts +1 -1
- package/dist/typography/layout/index.d.ts +2 -3
- package/dist/typography/layout/index.js +2 -3
- package/dist/typography/layout/theme.d.ts +1 -0
- package/dist/typography/list/Li.svelte +6 -3
- package/dist/typography/list/Li.svelte.d.ts +1 -1
- package/dist/typography/list/List.svelte +6 -2
- package/dist/typography/list/List.svelte.d.ts +1 -1
- package/dist/typography/list/index.d.ts +3 -4
- package/dist/typography/list/index.js +3 -4
- package/dist/typography/list/theme.d.ts +1 -0
- package/dist/typography/mark/Mark.svelte +6 -2
- package/dist/typography/mark/Mark.svelte.d.ts +1 -1
- package/dist/typography/mark/index.d.ts +2 -3
- package/dist/typography/mark/index.js +2 -3
- package/dist/typography/mark/theme.d.ts +1 -0
- package/dist/typography/paragraph/P.svelte +6 -2
- package/dist/typography/paragraph/P.svelte.d.ts +1 -1
- package/dist/typography/paragraph/index.d.ts +2 -3
- package/dist/typography/paragraph/index.js +2 -3
- package/dist/typography/paragraph/theme.d.ts +1 -0
- package/dist/typography/secondary/Secondary.svelte +6 -2
- package/dist/typography/secondary/Secondary.svelte.d.ts +1 -1
- package/dist/typography/secondary/index.d.ts +2 -3
- package/dist/typography/secondary/index.js +2 -3
- package/dist/typography/secondary/theme.d.ts +1 -0
- package/dist/typography/span/Span.svelte +6 -2
- package/dist/typography/span/Span.svelte.d.ts +1 -1
- package/dist/typography/span/index.d.ts +2 -3
- package/dist/typography/span/index.js +2 -3
- package/dist/typography/span/theme.d.ts +1 -0
- package/dist/utils/Arrow.svelte +1 -1
- package/dist/utils/Arrow.svelte.d.ts +1 -1
- package/dist/utils/CloseButton.svelte +1 -1
- package/dist/utils/CloseButton.svelte.d.ts +1 -1
- package/dist/utils/Popper.svelte +1 -1
- package/dist/utils/Popper.svelte.d.ts +1 -1
- package/dist/video/Video.svelte +6 -2
- package/dist/video/Video.svelte.d.ts +1 -1
- package/dist/video/index.d.ts +1 -2
- package/dist/video/index.js +1 -2
- package/package.json +10 -12
- package/dist/chart/Chart.svelte +0 -45
- package/dist/chart/Chart.svelte.d.ts +0 -13
- package/dist/chart/chart.css +0 -166
- package/dist/chart/index.d.ts +0 -1
- package/dist/chart/index.js +0 -1
- package/dist/forms/button-toggle/button-toggle.txt +0 -25
- package/dist/theme/Theme.svelte +0 -60
- package/dist/theme/Theme.svelte.d.ts +0 -12
package/dist/rating/index.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export { AdvancedRating, advancedrating, Heart, Rating, rating, RatingComment, Review, review, ScoreRating, scorerating, Star, Thumbup, CustomIcon };
|
|
1
|
+
export { default as AdvancedRating } from "./AdvancedRating.svelte";
|
|
2
|
+
export { default as Heart } from "./Heart.svelte";
|
|
3
|
+
export { default as Rating } from "./Rating.svelte";
|
|
4
|
+
export { default as RatingComment } from "./RatingComment.svelte";
|
|
5
|
+
export { default as Review } from "./Review.svelte";
|
|
6
|
+
export { default as ScoreRating } from "./ScoreRating.svelte";
|
|
7
|
+
export { default as Star } from "./Star.svelte";
|
|
8
|
+
export { default as Thumbup } from "./Thumbup.svelte";
|
|
9
|
+
export { default as CustomIcon } from "./CustomIcon.svelte";
|
|
10
|
+
export { advancedRating, rating, review, scoreRating, type AdvancedRatingTheme, type RatingTheme, type ReviewTheme, type ScoreRatingTheme } from "./theme";
|
package/dist/rating/index.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export { AdvancedRating, advancedrating, Heart, Rating, rating, RatingComment, Review, review, ScoreRating, scorerating, Star, Thumbup, CustomIcon };
|
|
1
|
+
export { default as AdvancedRating } from "./AdvancedRating.svelte";
|
|
2
|
+
export { default as Heart } from "./Heart.svelte";
|
|
3
|
+
export { default as Rating } from "./Rating.svelte";
|
|
4
|
+
export { default as RatingComment } from "./RatingComment.svelte";
|
|
5
|
+
export { default as Review } from "./Review.svelte";
|
|
6
|
+
export { default as ScoreRating } from "./ScoreRating.svelte";
|
|
7
|
+
export { default as Star } from "./Star.svelte";
|
|
8
|
+
export { default as Thumbup } from "./Thumbup.svelte";
|
|
9
|
+
export { default as CustomIcon } from "./CustomIcon.svelte";
|
|
10
|
+
export { advancedRating, rating, review, scoreRating } from "./theme";
|
package/dist/rating/theme.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const advancedRating: import("tailwind-variants").TVReturnType<{
|
|
2
2
|
[key: string]: {
|
|
3
3
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
4
4
|
base?: import("tailwind-variants").ClassValue;
|
|
@@ -47,6 +47,8 @@ export declare const advancedrating: import("tailwind-variants").TVReturnType<{
|
|
|
47
47
|
div3: string;
|
|
48
48
|
span2: string;
|
|
49
49
|
}, undefined, unknown, unknown, undefined>>;
|
|
50
|
+
export type AdvancedRatingSlots = keyof typeof advancedRating.slots;
|
|
51
|
+
export type AdvancedRatingTheme = Partial<Record<AdvancedRatingSlots, string>>;
|
|
50
52
|
export declare const rating: import("tailwind-variants").TVReturnType<{
|
|
51
53
|
[key: string]: {
|
|
52
54
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
@@ -78,28 +80,30 @@ export declare const rating: import("tailwind-variants").TVReturnType<{
|
|
|
78
80
|
base: string;
|
|
79
81
|
p: string;
|
|
80
82
|
}, undefined, unknown, unknown, undefined>>;
|
|
83
|
+
export type RatingSlots = keyof typeof rating.slots;
|
|
84
|
+
export type RatingTheme = Partial<Record<RatingSlots, string>>;
|
|
81
85
|
export declare const review: import("tailwind-variants").TVReturnType<{
|
|
82
86
|
[key: string]: {
|
|
83
87
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
84
88
|
div?: import("tailwind-variants").ClassValue;
|
|
89
|
+
article?: import("tailwind-variants").ClassValue;
|
|
85
90
|
img?: import("tailwind-variants").ClassValue;
|
|
91
|
+
li?: import("tailwind-variants").ClassValue;
|
|
86
92
|
ul?: import("tailwind-variants").ClassValue;
|
|
87
93
|
div2?: import("tailwind-variants").ClassValue;
|
|
88
94
|
div3?: import("tailwind-variants").ClassValue;
|
|
89
|
-
article?: import("tailwind-variants").ClassValue;
|
|
90
|
-
li?: import("tailwind-variants").ClassValue;
|
|
91
95
|
};
|
|
92
96
|
};
|
|
93
97
|
} | {
|
|
94
98
|
[x: string]: {
|
|
95
99
|
[x: string]: import("tailwind-variants").ClassValue | {
|
|
96
100
|
div?: import("tailwind-variants").ClassValue;
|
|
101
|
+
article?: import("tailwind-variants").ClassValue;
|
|
97
102
|
img?: import("tailwind-variants").ClassValue;
|
|
103
|
+
li?: import("tailwind-variants").ClassValue;
|
|
98
104
|
ul?: import("tailwind-variants").ClassValue;
|
|
99
105
|
div2?: import("tailwind-variants").ClassValue;
|
|
100
106
|
div3?: import("tailwind-variants").ClassValue;
|
|
101
|
-
article?: import("tailwind-variants").ClassValue;
|
|
102
|
-
li?: import("tailwind-variants").ClassValue;
|
|
103
107
|
};
|
|
104
108
|
};
|
|
105
109
|
} | {}, {
|
|
@@ -114,12 +118,12 @@ export declare const review: import("tailwind-variants").TVReturnType<{
|
|
|
114
118
|
[key: string]: {
|
|
115
119
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
116
120
|
div?: import("tailwind-variants").ClassValue;
|
|
121
|
+
article?: import("tailwind-variants").ClassValue;
|
|
117
122
|
img?: import("tailwind-variants").ClassValue;
|
|
123
|
+
li?: import("tailwind-variants").ClassValue;
|
|
118
124
|
ul?: import("tailwind-variants").ClassValue;
|
|
119
125
|
div2?: import("tailwind-variants").ClassValue;
|
|
120
126
|
div3?: import("tailwind-variants").ClassValue;
|
|
121
|
-
article?: import("tailwind-variants").ClassValue;
|
|
122
|
-
li?: import("tailwind-variants").ClassValue;
|
|
123
127
|
};
|
|
124
128
|
};
|
|
125
129
|
} | {}, {
|
|
@@ -139,13 +143,14 @@ export declare const review: import("tailwind-variants").TVReturnType<{
|
|
|
139
143
|
ul: string;
|
|
140
144
|
li: string;
|
|
141
145
|
}, undefined, unknown, unknown, undefined>>;
|
|
142
|
-
export
|
|
146
|
+
export type ReviewSlots = keyof typeof review.slots;
|
|
147
|
+
export type ReviewTheme = Partial<Record<ReviewSlots, string>>;
|
|
148
|
+
export declare const scoreRating: import("tailwind-variants").TVReturnType<{
|
|
143
149
|
[key: string]: {
|
|
144
150
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
145
151
|
link?: import("tailwind-variants").ClassValue;
|
|
146
152
|
desc1?: import("tailwind-variants").ClassValue;
|
|
147
153
|
desc2?: import("tailwind-variants").ClassValue;
|
|
148
|
-
desc3?: import("tailwind-variants").ClassValue;
|
|
149
154
|
desc3span?: import("tailwind-variants").ClassValue;
|
|
150
155
|
desc3p?: import("tailwind-variants").ClassValue;
|
|
151
156
|
bar?: import("tailwind-variants").ClassValue;
|
|
@@ -157,7 +162,6 @@ export declare const scorerating: import("tailwind-variants").TVReturnType<{
|
|
|
157
162
|
link?: import("tailwind-variants").ClassValue;
|
|
158
163
|
desc1?: import("tailwind-variants").ClassValue;
|
|
159
164
|
desc2?: import("tailwind-variants").ClassValue;
|
|
160
|
-
desc3?: import("tailwind-variants").ClassValue;
|
|
161
165
|
desc3span?: import("tailwind-variants").ClassValue;
|
|
162
166
|
desc3p?: import("tailwind-variants").ClassValue;
|
|
163
167
|
bar?: import("tailwind-variants").ClassValue;
|
|
@@ -166,7 +170,6 @@ export declare const scorerating: import("tailwind-variants").TVReturnType<{
|
|
|
166
170
|
} | {}, {
|
|
167
171
|
desc1: string;
|
|
168
172
|
desc2: string;
|
|
169
|
-
desc3: string;
|
|
170
173
|
desc3span: string;
|
|
171
174
|
desc3p: string;
|
|
172
175
|
link: string;
|
|
@@ -177,7 +180,6 @@ export declare const scorerating: import("tailwind-variants").TVReturnType<{
|
|
|
177
180
|
link?: import("tailwind-variants").ClassValue;
|
|
178
181
|
desc1?: import("tailwind-variants").ClassValue;
|
|
179
182
|
desc2?: import("tailwind-variants").ClassValue;
|
|
180
|
-
desc3?: import("tailwind-variants").ClassValue;
|
|
181
183
|
desc3span?: import("tailwind-variants").ClassValue;
|
|
182
184
|
desc3p?: import("tailwind-variants").ClassValue;
|
|
183
185
|
bar?: import("tailwind-variants").ClassValue;
|
|
@@ -186,7 +188,6 @@ export declare const scorerating: import("tailwind-variants").TVReturnType<{
|
|
|
186
188
|
} | {}, {
|
|
187
189
|
desc1: string;
|
|
188
190
|
desc2: string;
|
|
189
|
-
desc3: string;
|
|
190
191
|
desc3span: string;
|
|
191
192
|
desc3p: string;
|
|
192
193
|
link: string;
|
|
@@ -194,9 +195,10 @@ export declare const scorerating: import("tailwind-variants").TVReturnType<{
|
|
|
194
195
|
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
195
196
|
desc1: string;
|
|
196
197
|
desc2: string;
|
|
197
|
-
desc3: string;
|
|
198
198
|
desc3span: string;
|
|
199
199
|
desc3p: string;
|
|
200
200
|
link: string;
|
|
201
201
|
bar: string;
|
|
202
202
|
}, undefined, unknown, unknown, undefined>>;
|
|
203
|
+
export type ScoreRatingSlots = keyof typeof scoreRating.slots;
|
|
204
|
+
export type ScoreRatingTheme = Partial<Record<ScoreRatingSlots, string>>;
|
package/dist/rating/theme.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { tv } from "tailwind-variants";
|
|
2
|
-
export const
|
|
2
|
+
export const advancedRating = tv({
|
|
3
3
|
// divClass = 'flex items-center mt-4', spanClass = 'text-sm font-medium text-gray-600 dark:text-gray-500', div2Class = 'mx-4 w-2/4 h-5 bg-gray-200 rounded-sm dark:bg-gray-700', div3Class = 'h-5 bg-yellow-400 rounded-sm', span2Class = 'text-sm font-medium text-gray-600 dark:text-gray-500',
|
|
4
4
|
slots: {
|
|
5
5
|
base: "flex items-center mt-4",
|
|
@@ -26,11 +26,10 @@ export const review = tv({
|
|
|
26
26
|
li: "flex items-center"
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
|
-
export const
|
|
29
|
+
export const scoreRating = tv({
|
|
30
30
|
slots: {
|
|
31
31
|
desc1: "bg-primary-100 w-8 text-primary-800 text-sm font-semibold inline-flex items-center p-1.5 rounded-sm dark:bg-primary-200 dark:text-primary-800",
|
|
32
32
|
desc2: "ms-2 font-medium text-gray-900 dark:text-white",
|
|
33
|
-
desc3: "mx-2 w-1 h-1 mx-2 bg-gray-900 rounded-full dark:bg-gray-500",
|
|
34
33
|
desc3span: "text-sm w-24 font-medium text-gray-500 dark:text-gray-400",
|
|
35
34
|
desc3p: "text-sm w-24 font-medium text-gray-500 dark:text-gray-400",
|
|
36
35
|
link: "ms-auto w-32 text-sm font-medium text-primary-600 hover:underline dark:text-primary-500",
|
|
@@ -3,13 +3,16 @@
|
|
|
3
3
|
import { fly } from "svelte/transition";
|
|
4
4
|
import { writable } from "svelte/store";
|
|
5
5
|
import { sineIn } from "svelte/easing";
|
|
6
|
-
import { sidebar } from ".";
|
|
6
|
+
import { sidebar, type SidebarTheme } from ".";
|
|
7
7
|
import { trapFocus, type SidebarProps, type SidebarCtxType } from "..";
|
|
8
|
-
import {
|
|
8
|
+
import { cn } from "..";
|
|
9
|
+
import { getTheme } from "../theme/themeUtils";
|
|
9
10
|
import clsx from "clsx";
|
|
10
11
|
|
|
11
12
|
let { children, isOpen = false, closeSidebar, isSingle = true, breakpoint = "md", alwaysOpen = false, position = "fixed", activateClickOutside = true, backdrop = true, backdropClass, transition = fly, params, divClass, ariaLabel, nonActiveClass, activeClass, activeUrl = "", class: className, ...restProps }: SidebarProps = $props();
|
|
12
13
|
|
|
14
|
+
const theme = getTheme("sidebar");
|
|
15
|
+
|
|
13
16
|
const breakpointValues = {
|
|
14
17
|
sm: 640,
|
|
15
18
|
md: 768,
|
|
@@ -35,10 +38,10 @@
|
|
|
35
38
|
return closeSidebar;
|
|
36
39
|
},
|
|
37
40
|
get activeClass() {
|
|
38
|
-
return
|
|
41
|
+
return cn(active(), clsx(activeClass), (theme as SidebarTheme)?.active);
|
|
39
42
|
},
|
|
40
43
|
get nonActiveClass() {
|
|
41
|
-
return
|
|
44
|
+
return cn(nonactive(), clsx(nonActiveClass), (theme as SidebarTheme)?.nonactive);
|
|
42
45
|
},
|
|
43
46
|
isSingle
|
|
44
47
|
};
|
|
@@ -58,17 +61,17 @@
|
|
|
58
61
|
{#if isOpen || isLargeScreen}
|
|
59
62
|
{#if isOpen && !alwaysOpen}
|
|
60
63
|
{#if backdrop && activateClickOutside}
|
|
61
|
-
<div role="presentation" class={
|
|
64
|
+
<div role="presentation" class={cn(backdropCls(), clsx(backdropClass), (theme as SidebarTheme)?.backdrop)} onclick={closeSidebar}></div>
|
|
62
65
|
{:else if backdrop && !activateClickOutside}
|
|
63
|
-
<div role="presentation" class={
|
|
66
|
+
<div role="presentation" class={cn(backdropCls(), clsx(backdropClass), (theme as SidebarTheme)?.backdrop)}></div>
|
|
64
67
|
{:else if !backdrop && activateClickOutside}
|
|
65
68
|
<div role="presentation" class="fixed start-0 top-0 z-50 h-full w-full" onclick={closeSidebar}></div>
|
|
66
69
|
{:else if !backdrop && !activateClickOutside}
|
|
67
70
|
<div role="presentation" class="fixed start-0 top-0 z-50 h-full w-full"></div>
|
|
68
71
|
{/if}
|
|
69
72
|
{/if}
|
|
70
|
-
<aside use:trapFocus={!isLargeScreen && isOpen && !alwaysOpen ? { onEscape: closeSidebar ? handleEscape : undefined } : null} transition:transition={!alwaysOpen ? transitionParams : undefined} {...restProps} class={
|
|
71
|
-
<div class={
|
|
73
|
+
<aside use:trapFocus={!isLargeScreen && isOpen && !alwaysOpen ? { onEscape: closeSidebar ? handleEscape : undefined } : null} transition:transition={!alwaysOpen ? transitionParams : undefined} {...restProps} class={cn(base(), clsx(clsx(className)), (theme as SidebarTheme)?.base)} aria-label={ariaLabel}>
|
|
74
|
+
<div class={cn(div(), clsx(divClass), (theme as SidebarTheme)?.base)}>
|
|
72
75
|
{@render children()}
|
|
73
76
|
</div>
|
|
74
77
|
</aside>
|
|
@@ -78,7 +81,7 @@
|
|
|
78
81
|
@component
|
|
79
82
|
[Go to docs](https://flowbite-svelte.com/)
|
|
80
83
|
## Type
|
|
81
|
-
[SidebarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
84
|
+
[SidebarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1348)
|
|
82
85
|
## Props
|
|
83
86
|
@prop children
|
|
84
87
|
@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#L1348)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop isOpen = false
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { twMerge } from "tailwind-merge";
|
|
3
2
|
import clsx from "clsx";
|
|
4
|
-
import {
|
|
3
|
+
import { sidebarBrand, type SidebarBrandTheme } from ".";
|
|
5
4
|
import type { SidebarBrandProps } from "../types";
|
|
5
|
+
import { cn } from "..";
|
|
6
|
+
import { getTheme } from "../theme/themeUtils";
|
|
6
7
|
|
|
7
8
|
let { children, site, imgClass, spanClass, class: className, ...restProps }: SidebarBrandProps = $props();
|
|
8
9
|
|
|
9
|
-
const
|
|
10
|
+
const theme = getTheme("sidebarBrand");
|
|
11
|
+
|
|
12
|
+
const { base, img, span } = $derived(sidebarBrand());
|
|
10
13
|
</script>
|
|
11
14
|
|
|
12
|
-
<a {...restProps} href={site?.href ? site.href : "/"} class={
|
|
15
|
+
<a {...restProps} href={site?.href ? site.href : "/"} class={cn(base(), clsx(className), (theme as SidebarBrandTheme)?.base)}>
|
|
13
16
|
{#if site}
|
|
14
|
-
<img src={site.img} class={
|
|
15
|
-
<span class={
|
|
17
|
+
<img src={site.img} class={cn(img(), clsx(imgClass), (theme as SidebarBrandTheme)?.img)} alt={site.name} />
|
|
18
|
+
<span class={cn(span(), clsx(spanClass), (theme as SidebarBrandTheme)?.span)}>{site.name}</span>
|
|
16
19
|
{:else if children}
|
|
17
20
|
{@render children()}
|
|
18
21
|
{/if}
|
|
@@ -22,7 +25,7 @@
|
|
|
22
25
|
@component
|
|
23
26
|
[Go to docs](https://flowbite-svelte.com/)
|
|
24
27
|
## Type
|
|
25
|
-
[SidebarBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
28
|
+
[SidebarBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1383)
|
|
26
29
|
## Props
|
|
27
30
|
@prop children
|
|
28
31
|
@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#L1383)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop site
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { twMerge } from "tailwind-merge";
|
|
3
2
|
import clsx from "clsx";
|
|
4
|
-
import {
|
|
3
|
+
import { sidebarButton } from ".";
|
|
5
4
|
import type { SidebarButtonProps } from "../types";
|
|
5
|
+
import { cn } from "..";
|
|
6
|
+
import { getTheme } from "../theme/themeUtils";
|
|
7
|
+
|
|
6
8
|
let { breakpoint = "md", class: className, ...restProps }: SidebarButtonProps = $props();
|
|
7
9
|
|
|
8
|
-
const
|
|
10
|
+
const theme = getTheme("sidebarButton");
|
|
11
|
+
|
|
12
|
+
const base = $derived(cn(sidebarButton({ breakpoint }), clsx(className), theme));
|
|
9
13
|
</script>
|
|
10
14
|
|
|
11
15
|
<button {...restProps} type="button" class={base}>
|
|
@@ -19,7 +23,7 @@
|
|
|
19
23
|
@component
|
|
20
24
|
[Go to docs](https://flowbite-svelte.com/)
|
|
21
25
|
## Type
|
|
22
|
-
[SidebarButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
26
|
+
[SidebarButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1366)
|
|
23
27
|
## Props
|
|
24
28
|
@prop breakpoint = "md"
|
|
25
29
|
@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#L1366)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop breakpoint = "md"
|
|
8
8
|
* @prop class: className
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { twMerge } from "tailwind-merge";
|
|
3
2
|
import clsx from "clsx";
|
|
4
|
-
import {
|
|
3
|
+
import { sidebarCta, type SidebarCtaTheme } from ".";
|
|
5
4
|
import type { SidebarCtaProps } from "../types";
|
|
5
|
+
import { cn } from "..";
|
|
6
|
+
import { getTheme } from "../theme/themeUtils";
|
|
6
7
|
|
|
7
8
|
let { children, icon, divClass, spanClass, label, class: className, ...restProps }: SidebarCtaProps = $props();
|
|
8
|
-
|
|
9
|
+
|
|
10
|
+
const theme = getTheme("sidebarCta");
|
|
11
|
+
|
|
12
|
+
const { base, div, span } = $derived(sidebarCta());
|
|
9
13
|
</script>
|
|
10
14
|
|
|
11
|
-
<div {...restProps} id="dropdown-cta" class={
|
|
12
|
-
<div class={
|
|
13
|
-
<span class={
|
|
15
|
+
<div {...restProps} id="dropdown-cta" class={cn(base(), clsx(className), (theme as SidebarCtaTheme)?.base)} role="alert">
|
|
16
|
+
<div class={cn(div(), clsx(divClass), (theme as SidebarCtaTheme)?.div)}>
|
|
17
|
+
<span class={cn(span(), clsx(spanClass), (theme as SidebarCtaTheme)?.span)}>{label}</span>
|
|
14
18
|
{#if icon}
|
|
15
19
|
{@render icon()}
|
|
16
20
|
{/if}
|
|
@@ -22,7 +26,7 @@
|
|
|
22
26
|
@component
|
|
23
27
|
[Go to docs](https://flowbite-svelte.com/)
|
|
24
28
|
## Type
|
|
25
|
-
[SidebarCtaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
29
|
+
[SidebarCtaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1370)
|
|
26
30
|
## Props
|
|
27
31
|
@prop children
|
|
28
32
|
@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#L1370)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop icon
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
import { writable, type Writable } from "svelte/store";
|
|
4
4
|
import { slide } from "svelte/transition";
|
|
5
5
|
import { uiHelpers } from "..";
|
|
6
|
-
import {
|
|
6
|
+
import { sidebarDropdownWrapper, type SidebarDropdownWrapperTheme } from ".";
|
|
7
7
|
import type { SidebarDropdownWrapperProps, ParamsType } from "../types";
|
|
8
|
-
import { twMerge } from "tailwind-merge";
|
|
9
8
|
import clsx from "clsx";
|
|
9
|
+
import { cn } from "..";
|
|
10
|
+
import { getTheme } from "../theme/themeUtils";
|
|
10
11
|
|
|
11
12
|
type SidebarContext = {
|
|
12
13
|
selected?: Writable<object | null>;
|
|
@@ -15,7 +16,9 @@
|
|
|
15
16
|
|
|
16
17
|
let { children, arrowup, arrowdown, icon, isOpen = $bindable(false), btnClass, label, spanClass, ulClass, transition = slide, params, svgClass, class: className, onclick, ...restProps }: SidebarDropdownWrapperProps = $props();
|
|
17
18
|
|
|
18
|
-
const
|
|
19
|
+
const theme = getTheme("sidebarDropdownWrapper");
|
|
20
|
+
|
|
21
|
+
const { base, btn, span, svg, ul } = sidebarDropdownWrapper();
|
|
19
22
|
|
|
20
23
|
let sidebarDropdown = uiHelpers();
|
|
21
24
|
sidebarDropdown.isOpen = isOpen;
|
|
@@ -49,30 +52,30 @@
|
|
|
49
52
|
}
|
|
50
53
|
</script>
|
|
51
54
|
|
|
52
|
-
<li class={
|
|
53
|
-
<button {...restProps} onclick={handleDropdown} type="button" class={
|
|
55
|
+
<li class={cn(base(), clsx(className), (theme as SidebarDropdownWrapperTheme)?.base)}>
|
|
56
|
+
<button {...restProps} onclick={handleDropdown} type="button" class={cn(btn(), clsx(btnClass), (theme as SidebarDropdownWrapperTheme)?.btn)} aria-controls="sidebar-dropdown">
|
|
54
57
|
{#if icon}
|
|
55
58
|
{@render icon()}
|
|
56
59
|
{/if}
|
|
57
|
-
<span class={
|
|
60
|
+
<span class={cn(span(), clsx(spanClass), (theme as SidebarDropdownWrapperTheme)?.span)}>{label}</span>
|
|
58
61
|
{#if isOpen}
|
|
59
62
|
{#if arrowup}
|
|
60
63
|
{@render arrowup()}
|
|
61
64
|
{:else}
|
|
62
|
-
<svg class={
|
|
65
|
+
<svg class={cn(svg(), clsx(svgClass), (theme as SidebarDropdownWrapperTheme)?.svg)} aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 10 6">
|
|
63
66
|
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5 5 1 1 5" />
|
|
64
67
|
</svg>
|
|
65
68
|
{/if}
|
|
66
69
|
{:else if arrowdown}
|
|
67
70
|
{@render arrowdown()}
|
|
68
71
|
{:else}
|
|
69
|
-
<svg class={
|
|
72
|
+
<svg class={cn(svg(), clsx(svgClass), (theme as SidebarDropdownWrapperTheme)?.svg)} aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 10 6">
|
|
70
73
|
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 1 4 4 4-4" />
|
|
71
74
|
</svg>
|
|
72
75
|
{/if}
|
|
73
76
|
</button>
|
|
74
77
|
{#if isOpen}
|
|
75
|
-
<ul class={
|
|
78
|
+
<ul class={cn(ul(), clsx(ulClass), (theme as SidebarDropdownWrapperTheme)?.ul)} transition:transition={params as ParamsType}>
|
|
76
79
|
{@render children()}
|
|
77
80
|
</ul>
|
|
78
81
|
{/if}
|
|
@@ -82,7 +85,7 @@
|
|
|
82
85
|
@component
|
|
83
86
|
[Go to docs](https://flowbite-svelte.com/)
|
|
84
87
|
## Type
|
|
85
|
-
[SidebarDropdownWrapperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
88
|
+
[SidebarDropdownWrapperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1389)
|
|
86
89
|
## Props
|
|
87
90
|
@prop children
|
|
88
91
|
@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#L1389)
|
|
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#L1406)
|
|
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#L1406)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className = "space-y-2"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
@component
|
|
39
39
|
[Go to docs](https://flowbite-svelte.com/)
|
|
40
40
|
## Type
|
|
41
|
-
[SidebarItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
41
|
+
[SidebarItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1412)
|
|
42
42
|
## Props
|
|
43
43
|
@prop icon
|
|
44
44
|
@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#L1412)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop icon
|
|
8
8
|
* @prop subtext
|
package/dist/sidebar/index.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export { Sidebar, sidebar, SidebarDropdownItem, SidebarDropdownWrapper, SidebarWrapper, sidebardropdownwrapper, SidebarGroup, SidebarItem, SidebarButton, sidebarbutton, SidebarCta, sidebarcta, SidebarBrand, sitebarbrand };
|
|
1
|
+
export { default as Sidebar } from "./Sidebar.svelte";
|
|
2
|
+
export { default as SidebarWrapper } from "./SidebarWrapper.svelte";
|
|
3
|
+
export { default as SidebarDropdownWrapper } from "./SidebarDropdownWrapper.svelte";
|
|
4
|
+
export { default as SidebarGroup } from "./SidebarGroup.svelte";
|
|
5
|
+
export { default as SidebarItem } from "./SidebarItem.svelte";
|
|
6
|
+
export { default as SidebarDropdownItem } from "./SidebarItem.svelte";
|
|
7
|
+
export { default as SidebarButton } from "./SidebarButton.svelte";
|
|
8
|
+
export { default as SidebarCta } from "./SidebarCta.svelte";
|
|
9
|
+
export { default as SidebarBrand } from "./SidebarBrand.svelte";
|
|
10
|
+
export { sidebar, sidebarButton, sidebarCta, sidebarBrand, sidebarDropdownWrapper, type SidebarTheme, type SidebarButtonTheme, type SidebarCtaTheme, type SidebarBrandTheme, type SidebarDropdownWrapperTheme } from "./theme";
|
package/dist/sidebar/index.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export { Sidebar, sidebar, SidebarDropdownItem, SidebarDropdownWrapper, SidebarWrapper, sidebardropdownwrapper, SidebarGroup, SidebarItem, SidebarButton, sidebarbutton, SidebarCta, sidebarcta, SidebarBrand, sitebarbrand };
|
|
1
|
+
export { default as Sidebar } from "./Sidebar.svelte";
|
|
2
|
+
export { default as SidebarWrapper } from "./SidebarWrapper.svelte";
|
|
3
|
+
export { default as SidebarDropdownWrapper } from "./SidebarDropdownWrapper.svelte";
|
|
4
|
+
export { default as SidebarGroup } from "./SidebarGroup.svelte";
|
|
5
|
+
export { default as SidebarItem } from "./SidebarItem.svelte";
|
|
6
|
+
export { default as SidebarDropdownItem } from "./SidebarItem.svelte";
|
|
7
|
+
export { default as SidebarButton } from "./SidebarButton.svelte";
|
|
8
|
+
export { default as SidebarCta } from "./SidebarCta.svelte";
|
|
9
|
+
export { default as SidebarBrand } from "./SidebarBrand.svelte";
|
|
10
|
+
export { sidebar, sidebarButton, sidebarCta, sidebarBrand, sidebarDropdownWrapper } from "./theme";
|