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
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { getContext } from "svelte";
|
|
6
6
|
import { writable } from "svelte/store";
|
|
7
7
|
import { slide } from "svelte/transition";
|
|
8
|
-
import { accordionItem
|
|
8
|
+
import { accordionItem } from ".";
|
|
9
9
|
|
|
10
10
|
let { children, header, arrowup, arrowdown, open = $bindable(false), activeClass, inactiveClass, transitionType = slide, transitionParams, class: className, classes, headerClass, contentClass }: AccordionItemProps = $props();
|
|
11
11
|
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
const useTransition = transitionType === "none" ? false : ctxTransitionType === "none" ? false : true;
|
|
33
33
|
|
|
34
34
|
// Theme context
|
|
35
|
-
const theme = getTheme("
|
|
35
|
+
const theme = getTheme("accordionItem");
|
|
36
36
|
|
|
37
37
|
const ctx: AccordionCtxType = getContext("ctx") ?? {};
|
|
38
38
|
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
let buttonClass = $derived(clsx(open && !ctx.flush && (styling.active || ctx.activeClass || active()), !open && !ctx.flush && (styling.inactive || ctx.inactiveClass || inactive())));
|
|
52
52
|
</script>
|
|
53
53
|
|
|
54
|
-
<h2 class={base({ class: clsx(
|
|
55
|
-
<button type="button" onclick={handleToggle} class={button({ class: clsx(buttonClass,
|
|
54
|
+
<h2 class={base({ class: clsx(theme?.base, className) })}>
|
|
55
|
+
<button type="button" onclick={handleToggle} class={button({ class: clsx(buttonClass, theme?.button, styling.button) })} aria-expanded={open}>
|
|
56
56
|
{#if header}
|
|
57
57
|
{@render header()}
|
|
58
58
|
{#if open}
|
|
@@ -77,14 +77,14 @@
|
|
|
77
77
|
{#if useTransition}
|
|
78
78
|
{#if open && transitionType !== "none"}
|
|
79
79
|
<div transition:transitionType={transitionParams as ParamsType}>
|
|
80
|
-
<div class={content({ class: clsx(
|
|
80
|
+
<div class={content({ class: clsx(theme?.content, styling.content) })}>
|
|
81
81
|
{@render children()}
|
|
82
82
|
</div>
|
|
83
83
|
</div>
|
|
84
84
|
{/if}
|
|
85
85
|
{:else}
|
|
86
86
|
<div class={open ? "block" : "hidden"}>
|
|
87
|
-
<div class={content({ class: clsx(
|
|
87
|
+
<div class={content({ class: clsx(theme?.content, styling.content) })}>
|
|
88
88
|
{@render children()}
|
|
89
89
|
</div>
|
|
90
90
|
</div>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default as Accordion } from "./Accordion.svelte";
|
|
2
2
|
export { default as AccordionItem } from "./AccordionItem.svelte";
|
|
3
|
-
export { accordion, accordionItem
|
|
3
|
+
export { accordion, accordionItem } from "./theme";
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import type { Classes } from "../theme/themeUtils";
|
|
2
|
-
import type { ClassValue } from "svelte/elements";
|
|
3
2
|
import { type VariantProps } from "tailwind-variants";
|
|
4
3
|
export type AccordionVariants = VariantProps<typeof accordion>;
|
|
5
4
|
export type AccordionItemVariants = VariantProps<typeof accordionItem> & Classes<typeof accordionItem>;
|
|
6
|
-
export type AccordionTheme = ClassValue;
|
|
7
|
-
export type AccordionItemSlots = keyof typeof accordionItem.slots;
|
|
8
|
-
export type AccordionItemTheme = Partial<Record<AccordionItemSlots, ClassValue>>;
|
|
9
5
|
export declare const accordion: import("tailwind-variants").TVReturnType<{
|
|
10
6
|
color: {
|
|
11
7
|
primary: string;
|
package/dist/alert/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Alert } from "./Alert.svelte";
|
|
2
|
-
export { alert
|
|
2
|
+
export { alert } from "./theme";
|
package/dist/alert/theme.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
import type { ClassValue } from "svelte/elements";
|
|
3
2
|
export type AlertVariants = VariantProps<typeof alert>;
|
|
4
|
-
export type AlertTheme = ClassValue;
|
|
5
3
|
export declare const alert: import("tailwind-variants").TVReturnType<{
|
|
6
4
|
color: {
|
|
7
5
|
primary: string;
|
package/dist/avatar/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Avatar } from "./Avatar.svelte";
|
|
2
|
-
export { avatar
|
|
2
|
+
export { avatar } from "./theme";
|
package/dist/avatar/theme.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import type { ClassValue } from "svelte/elements";
|
|
2
1
|
import { type VariantProps } from "tailwind-variants";
|
|
3
2
|
export type AvatarVariants = VariantProps<typeof avatar>;
|
|
4
|
-
export type AvatarTheme = ClassValue;
|
|
5
3
|
export declare const avatar: import("tailwind-variants").TVReturnType<{
|
|
6
4
|
cornerStyle: {
|
|
7
5
|
rounded: string;
|
package/dist/badge/Badge.svelte
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { fade } from "svelte/transition";
|
|
6
|
-
import { badge
|
|
6
|
+
import { badge } from ".";
|
|
7
7
|
|
|
8
8
|
let { children, icon, badgeStatus = $bindable(true), color = "primary", large = false, dismissable = false, class: className, classes, border, href, target, rounded, transition = fade, params, aClass, onclose, ...restProps }: BadgeProps = $props();
|
|
9
9
|
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
</script>
|
|
24
24
|
|
|
25
25
|
{#if badgeStatus}
|
|
26
|
-
<div {...restProps} transition:transition={params as ParamsType} class={base({ class: clsx(
|
|
26
|
+
<div {...restProps} transition:transition={params as ParamsType} class={base({ class: clsx(theme?.base, className) })}>
|
|
27
27
|
{#if href}
|
|
28
|
-
<a {href} {target} class={linkClass({ class: clsx(
|
|
28
|
+
<a {href} {target} class={linkClass({ class: clsx(theme?.linkClass, styling.linkClass) })}>
|
|
29
29
|
{@render children()}
|
|
30
30
|
</a>
|
|
31
31
|
{:else}
|
package/dist/badge/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Badge } from "./Badge.svelte";
|
|
2
|
-
export { badge
|
|
2
|
+
export { badge } from "./theme";
|
package/dist/badge/theme.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import type { Classes } from "../theme/themeUtils";
|
|
2
|
-
import type { ClassValue } from "svelte/elements";
|
|
3
2
|
import { type VariantProps } from "tailwind-variants";
|
|
4
3
|
export type BadgeVariants = VariantProps<typeof badge> & Classes<typeof badge>;
|
|
5
|
-
export type BadgeSlots = keyof typeof badge.slots;
|
|
6
|
-
export type BadgeTheme = Partial<Record<BadgeSlots, ClassValue>>;
|
|
7
4
|
export declare const badge: import("tailwind-variants").TVReturnType<{
|
|
8
5
|
color: {
|
|
9
6
|
primary: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { fade } from "svelte/transition";
|
|
3
|
-
import { banner
|
|
3
|
+
import { banner } from ".";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { type ParamsType, type BannerProps, CloseButton } from "..";
|
|
6
6
|
import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
</script>
|
|
19
19
|
|
|
20
20
|
{#if open}
|
|
21
|
-
<div tabindex="-1" class={base({ class: clsx(
|
|
22
|
-
<div class={insideDiv({ class: clsx(
|
|
21
|
+
<div tabindex="-1" class={base({ class: clsx(theme?.base, className) })} {...restProps} transition:transition={params as ParamsType}>
|
|
22
|
+
<div class={insideDiv({ class: clsx(theme?.insideDiv, styling.insideDiv) })}>
|
|
23
23
|
{@render children?.()}
|
|
24
24
|
</div>
|
|
25
25
|
|
|
26
26
|
{#if dismissable}
|
|
27
27
|
<div class="flex items-center justify-end">
|
|
28
28
|
<CloseButton
|
|
29
|
-
class={dismissableClass({ class: clsx(
|
|
29
|
+
class={dismissableClass({ class: clsx(theme?.dismissable, styling.dismissable) })}
|
|
30
30
|
{color}
|
|
31
31
|
ariaLabel="Remove banner"
|
|
32
32
|
onclick={() => {
|
package/dist/banner/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Banner } from "./Banner.svelte";
|
|
2
|
-
export { banner
|
|
2
|
+
export { banner } from "./theme";
|
package/dist/banner/theme.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
import type { ClassValue } from "svelte/elements";
|
|
3
2
|
import type { Classes } from "../theme/themeUtils";
|
|
4
3
|
export type BannerVariants = VariantProps<typeof banner> & Classes<typeof banner>;
|
|
5
|
-
export type BannerSlots = keyof typeof banner.slots;
|
|
6
|
-
export type BannerTheme = Partial<Record<BannerSlots, ClassValue>>;
|
|
7
4
|
export declare const banner: import("tailwind-variants").TVReturnType<{
|
|
8
5
|
type: {
|
|
9
6
|
top: {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { writable } from "svelte/store";
|
|
4
4
|
import { bottomNav } from ".";
|
|
5
5
|
import clsx from "clsx";
|
|
6
|
-
import { type BottomNavProps, type BottomNavContextType, cn
|
|
6
|
+
import { type BottomNavProps, type BottomNavContextType, cn } from "..";
|
|
7
7
|
import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
|
|
8
8
|
|
|
9
9
|
let { children, header, position = "fixed", navType = "default", class: className, classes, outerClass, innerClass, activeClass, activeUrl = "", ...restProps }: BottomNavProps = $props();
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
});
|
|
29
29
|
</script>
|
|
30
30
|
|
|
31
|
-
<div {...restProps} class={base({ class: clsx(
|
|
31
|
+
<div {...restProps} class={base({ class: clsx(theme?.base, className ?? outerClass) })}>
|
|
32
32
|
{#if header}
|
|
33
33
|
{@render header()}
|
|
34
34
|
{/if}
|
|
35
35
|
|
|
36
|
-
<div class={inner({ class: clsx(
|
|
36
|
+
<div class={inner({ class: clsx(theme?.inner, styling.inner) })}>
|
|
37
37
|
{@render children()}
|
|
38
38
|
</div>
|
|
39
39
|
</div>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { bottomNavHeader } from ".";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import { type BottomNavHeaderProps
|
|
4
|
+
import { type BottomNavHeaderProps } from "..";
|
|
5
5
|
import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
|
|
6
6
|
|
|
7
7
|
let { children, class: className, classes, outerClass, innerClass, ...restProps }: BottomNavHeaderProps = $props();
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
const { innerDiv, base } = $derived(bottomNavHeader());
|
|
17
17
|
</script>
|
|
18
18
|
|
|
19
|
-
<div {...restProps} class={base({ class: clsx(
|
|
20
|
-
<div class={innerDiv({ class: clsx(
|
|
19
|
+
<div {...restProps} class={base({ class: clsx(theme?.base, className ?? outerClass) })}>
|
|
20
|
+
<div class={innerDiv({ class: clsx(theme?.innerDiv, styling.innerDiv) })} role="group">
|
|
21
21
|
{@render children()}
|
|
22
22
|
</div>
|
|
23
23
|
</div>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { getContext } from "svelte";
|
|
6
6
|
import type { HTMLAnchorAttributes, HTMLButtonAttributes } from "svelte/elements";
|
|
7
|
-
import { bottomNavItem
|
|
7
|
+
import { bottomNavItem } from ".";
|
|
8
8
|
|
|
9
9
|
let { children, btnName, appBtnPosition = "middle", activeClass, class: className, classes, btnClass, spanClass, active: manualActive, ...restProps }: BottomNavItemProps = $props();
|
|
10
10
|
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
function getCommonClass() {
|
|
30
|
-
return base({ class: clsx(isActive && (activeClass ?? context.activeClass),
|
|
30
|
+
return base({ class: clsx(isActive && (activeClass ?? context.activeClass), theme?.base, className ?? btnClass) });
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
function getSpanClass() {
|
|
34
|
-
return span({ class: clsx(isActive && (activeClass ?? context.activeClass),
|
|
34
|
+
return span({ class: clsx(isActive && (activeClass ?? context.activeClass), theme?.span, styling.span) });
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
@@ -2,4 +2,4 @@ export { default as BottomNav } from "./BottomNav.svelte";
|
|
|
2
2
|
export { default as BottomNavItem } from "./BottomNavItem.svelte";
|
|
3
3
|
export { default as BottomNavHeaderItem } from "./BottomNavHeaderItem.svelte";
|
|
4
4
|
export { default as BottomNavHeader } from "./BottomNavHeader.svelte";
|
|
5
|
-
export { bottomNav, bottomNavItem, bottomNavHeader, bottomNavHeaderItem
|
|
5
|
+
export { bottomNav, bottomNavItem, bottomNavHeader, bottomNavHeaderItem } from "./theme";
|
|
@@ -1,18 +1,9 @@
|
|
|
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 BottomNavVariants = VariantProps<typeof bottomNav> & Classes<typeof bottomNav>;
|
|
5
4
|
export type BottomNavItemVariants = VariantProps<typeof bottomNavItem> & Classes<typeof bottomNavItem>;
|
|
6
5
|
export type BottomNavHeaderVariants = VariantProps<typeof bottomNavHeader> & Classes<typeof bottomNavHeader>;
|
|
7
6
|
export type BottomNavHeaderItemVariants = VariantProps<typeof bottomNavHeaderItem>;
|
|
8
|
-
export type BottomNavSlots = keyof typeof bottomNav.slots;
|
|
9
|
-
export type BottomNavTheme = Partial<Record<BottomNavSlots, ClassValue>>;
|
|
10
|
-
export type BottomNavItemSlots = keyof typeof bottomNavItem.slots;
|
|
11
|
-
export type BottomNavItemTheme = Partial<Record<BottomNavItemSlots, ClassValue>>;
|
|
12
|
-
export type BottomnavheaderSlots = keyof typeof bottomNavHeader.slots;
|
|
13
|
-
export type BottomNavHeaderTheme = Partial<Record<BottomnavheaderSlots, ClassValue>>;
|
|
14
|
-
export type bottomNavHeaderItemSlots = keyof typeof bottomNavHeaderItem.slots;
|
|
15
|
-
export type BottomNavHeaderItemTheme = Partial<Record<bottomNavHeaderItemSlots, ClassValue>>;
|
|
16
7
|
export declare const bottomNav: import("tailwind-variants").TVReturnType<{
|
|
17
8
|
position: {
|
|
18
9
|
static: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { breadcrumb } from ".";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import { type BreadcrumbProps
|
|
4
|
+
import { type BreadcrumbProps } from "..";
|
|
5
5
|
import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
|
|
6
6
|
|
|
7
7
|
let { children, solid = false, class: className, classes, olClass, ariaLabel = "Breadcrumb", ...restProps }: BreadcrumbProps = $props();
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
const theme = getTheme("breadcrumb");
|
|
13
13
|
|
|
14
14
|
const { base, list } = breadcrumb({ solid });
|
|
15
|
-
let classNav = $derived(base({ class: clsx(
|
|
16
|
-
let classList = $derived(list({ class: clsx(
|
|
15
|
+
let classNav = $derived(base({ class: clsx(theme?.base, className) }));
|
|
16
|
+
let classList = $derived(list({ class: clsx(theme?.list, styling.list) }));
|
|
17
17
|
</script>
|
|
18
18
|
|
|
19
19
|
<nav aria-label={ariaLabel} {...restProps} class={classNav}>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { type BreadcrumbItemProps
|
|
2
|
+
import { type BreadcrumbItemProps } from "..";
|
|
3
3
|
import { getTheme } from "../theme/themeUtils";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { breadcrumbItem } from "./index";
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
);
|
|
19
19
|
</script>
|
|
20
20
|
|
|
21
|
-
<li {...restProps} class={base({ class: clsx(
|
|
21
|
+
<li {...restProps} class={base({ class: clsx(theme?.base, className) })}>
|
|
22
22
|
{#if home}
|
|
23
|
-
<a class={base({ home: true, class: clsx(
|
|
23
|
+
<a class={base({ home: true, class: clsx(theme?.base, homeClass) })} {href}>
|
|
24
24
|
{#if icon}
|
|
25
25
|
{@render icon()}
|
|
26
26
|
{:else}
|
|
@@ -35,17 +35,17 @@
|
|
|
35
35
|
{#if icon}
|
|
36
36
|
{@render icon()}
|
|
37
37
|
{:else}
|
|
38
|
-
<svg class={separator({ class: clsx(
|
|
38
|
+
<svg class={separator({ class: clsx(theme?.separator, styling.separator) })} fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
39
39
|
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
|
|
40
40
|
</svg>
|
|
41
41
|
{/if}
|
|
42
42
|
|
|
43
43
|
{#if href}
|
|
44
|
-
<a class={base({ home: false, hasHref: true, class: clsx(
|
|
44
|
+
<a class={base({ home: false, hasHref: true, class: clsx(theme?.base, linkClass) })} {href}>
|
|
45
45
|
{@render children()}
|
|
46
46
|
</a>
|
|
47
47
|
{:else}
|
|
48
|
-
<span class={base({ home: false, hasHref: false, class: clsx(
|
|
48
|
+
<span class={base({ home: false, hasHref: false, class: clsx(theme?.base, spanClass) })}>
|
|
49
49
|
{@render children()}
|
|
50
50
|
</span>
|
|
51
51
|
{/if}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default as Breadcrumb } from "./Breadcrumb.svelte";
|
|
2
2
|
export { default as BreadcrumbItem } from "./BreadcrumbItem.svelte";
|
|
3
|
-
export { breadcrumb, breadcrumbItem
|
|
3
|
+
export { breadcrumb, breadcrumbItem } from "./theme";
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
import type { ClassValue } from "svelte/elements";
|
|
3
2
|
import type { Classes } from "../theme/themeUtils";
|
|
4
3
|
export type BreadcrumbVariants = VariantProps<typeof breadcrumb> & Classes<typeof breadcrumb>;
|
|
5
4
|
export type BreadcrumbItemVariants = VariantProps<typeof breadcrumbItem> & Classes<typeof breadcrumbItem>;
|
|
6
|
-
export type BreadcrumbSlots = keyof typeof breadcrumb.slots;
|
|
7
|
-
export type BreadcrumbTheme = Partial<Record<BreadcrumbSlots, ClassValue>>;
|
|
8
|
-
export type BreadcrumbItemSlots = keyof typeof breadcrumbItem.slots;
|
|
9
|
-
export type BreadcrumbItemTheme = Partial<Record<BreadcrumbItemSlots, ClassValue>>;
|
|
10
5
|
export declare const breadcrumb: import("tailwind-variants").TVReturnType<{
|
|
11
6
|
solid: {
|
|
12
7
|
true: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as ButtonGroup } from "./ButtonGroup.svelte";
|
|
2
|
-
export { buttonGroup
|
|
2
|
+
export { buttonGroup } from "./theme";
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import type { ClassValue } from "svelte/elements";
|
|
2
1
|
import { type VariantProps } from "tailwind-variants";
|
|
3
2
|
export type ButtonGroupVariants = VariantProps<typeof buttonGroup>;
|
|
4
|
-
export type ButtonGroupTheme = ClassValue;
|
|
5
3
|
export declare const buttonGroup: import("tailwind-variants").TVReturnType<{
|
|
6
4
|
size: {
|
|
7
5
|
sm: string;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { type SizeType, type ButtonProps } from "..";
|
|
5
5
|
import { getTheme } from "../theme/themeUtils";
|
|
6
|
-
import { button
|
|
6
|
+
import { button } from ".";
|
|
7
7
|
|
|
8
8
|
const group: SizeType = getContext("group");
|
|
9
9
|
const ctxDisabled: boolean | undefined = getContext("disabled");
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
let isDisabled = $derived(Boolean(ctxDisabled) || Boolean(disabled) || loading);
|
|
18
18
|
|
|
19
19
|
const { base, outline: outline_, shadow: shadow_ } = $derived(button({ color: actualColor, size: actualSize, disabled: isDisabled, pill, group: !!group }));
|
|
20
|
-
let btnCls = $derived(base({ class: clsx(outline && outline_(), shadow && shadow_(),
|
|
20
|
+
let btnCls = $derived(base({ class: clsx(outline && outline_(), shadow && shadow_(), theme?.base, className) }));
|
|
21
21
|
</script>
|
|
22
22
|
|
|
23
23
|
{#if restProps.href === undefined}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { getContext } from "svelte";
|
|
3
|
-
import { gradientButton
|
|
3
|
+
import { gradientButton } from ".";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { type GradientButtonProps, type SizeType, Button } from "..";
|
|
6
6
|
import { getTheme } from "../theme/themeUtils";
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
</script>
|
|
16
16
|
|
|
17
17
|
{#if outline}
|
|
18
|
-
<div class={base({ class: clsx(
|
|
19
|
-
<Button {...restProps} class={outlineWrapper({ class: clsx(
|
|
18
|
+
<div class={base({ class: clsx(theme?.base, className) })}>
|
|
19
|
+
<Button {...restProps} class={outlineWrapper({ class: clsx(theme?.outlineWrapper, btnClass) })} {disabled} {href} {size}>
|
|
20
20
|
{@render children?.()}
|
|
21
21
|
</Button>
|
|
22
22
|
</div>
|
|
23
23
|
{:else}
|
|
24
|
-
<Button {...restProps} class={base({ class: clsx(
|
|
24
|
+
<Button {...restProps} class={base({ class: clsx(theme?.base, className) })} {disabled} {href} {size}>
|
|
25
25
|
{@render children?.()}
|
|
26
26
|
</Button>
|
|
27
27
|
{/if}
|
package/dist/buttons/index.d.ts
CHANGED
package/dist/buttons/theme.d.ts
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
import type { ClassValue } from "svelte/elements";
|
|
3
2
|
export type ButtonVariants = VariantProps<typeof button>;
|
|
4
3
|
export type GradientButtonVariantes = VariantProps<typeof gradientButton>;
|
|
5
|
-
export type ButtonSlots = keyof typeof button.slots;
|
|
6
|
-
export type ButtonTheme = Partial<Record<ButtonSlots, ClassValue>>;
|
|
7
|
-
export type GradientButtonSlots = keyof typeof gradientButton.slots;
|
|
8
|
-
export type GradientButtonTheme = Partial<Record<GradientButtonSlots, ClassValue>>;
|
|
9
4
|
export declare const button: import("tailwind-variants").TVReturnType<{
|
|
10
5
|
color: {
|
|
11
6
|
primary: {
|
package/dist/card/Card.svelte
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { type CardProps } from "..";
|
|
3
3
|
import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
|
|
4
4
|
import clsx from "clsx";
|
|
5
|
-
import { card
|
|
5
|
+
import { card } from ".";
|
|
6
6
|
|
|
7
7
|
let { children, color = "gray", horizontal = false, shadow = "md", reverse = false, img, size = "sm", class: className, classes, imgClass, ...restProps }: CardProps = $props();
|
|
8
8
|
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
{#snippet childSlot()}
|
|
28
28
|
{#if img}
|
|
29
|
-
<img class={image({ class: clsx(
|
|
29
|
+
<img class={image({ class: clsx(theme?.image, styling.image) })} src={img} alt={img} />
|
|
30
30
|
{@render children()}
|
|
31
31
|
{:else}
|
|
32
32
|
{@render children()}
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
{/snippet}
|
|
35
35
|
|
|
36
36
|
{#if restProps.href === undefined}
|
|
37
|
-
<div {...restProps} class={base({ class: clsx(
|
|
37
|
+
<div {...restProps} class={base({ class: clsx(theme?.base, className) })}>
|
|
38
38
|
{@render childSlot()}
|
|
39
39
|
</div>
|
|
40
40
|
{:else}
|
|
41
|
-
<a {...restProps} class={base({ class: clsx(
|
|
41
|
+
<a {...restProps} class={base({ class: clsx(theme?.base, className) })}>
|
|
42
42
|
{@render childSlot()}
|
|
43
43
|
</a>
|
|
44
44
|
{/if}
|
package/dist/card/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Card } from "./Card.svelte";
|
|
2
|
-
export { card
|
|
2
|
+
export { card } from "./theme";
|
package/dist/card/theme.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
import type { ClassValue } from "svelte/elements";
|
|
3
2
|
import type { Classes } from "../theme/themeUtils";
|
|
4
3
|
export type CardVariants = VariantProps<typeof card> & Classes<typeof card>;
|
|
5
|
-
export type CardSlots = keyof typeof card.slots;
|
|
6
|
-
export type CardTheme = Partial<Record<CardSlots, ClassValue>>;
|
|
7
4
|
export declare const card: import("tailwind-variants").TVReturnType<{
|
|
8
5
|
size: {
|
|
9
6
|
xs: {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
const SLIDE_DURATION_RATIO = 0.25;
|
|
11
11
|
|
|
12
|
-
let { children, slide, images, index = $bindable(0), slideDuration = 1000, transition, duration = 0, "aria-label": ariaLabel = "Draggable Carousel", disableSwipe = false, imgClass = "", class: className, onchange, divClass, ...restProps }: CarouselProps = $props();
|
|
12
|
+
let { children, slide, images, index = $bindable(0), slideDuration = 1000, transition, duration = 0, "aria-label": ariaLabel = "Draggable Carousel", disableSwipe = false, imgClass = "", class: className, onchange, divClass, isPreload = false, ...restProps }: CarouselProps = $props();
|
|
13
13
|
|
|
14
14
|
const theme = getTheme("carousel");
|
|
15
15
|
|
|
@@ -158,9 +158,8 @@
|
|
|
158
158
|
);
|
|
159
159
|
</script>
|
|
160
160
|
|
|
161
|
-
<!-- Preload all Carousel images for improved responsivity -->
|
|
162
161
|
<svelte:head>
|
|
163
|
-
{#if images.length > 0}
|
|
162
|
+
{#if isPreload && images.length > 0}
|
|
164
163
|
{#each images as image}
|
|
165
164
|
<link rel="preload" href={image.src} as="image" />
|
|
166
165
|
{/each}
|
|
@@ -199,5 +198,6 @@
|
|
|
199
198
|
@prop class: className
|
|
200
199
|
@prop onchange
|
|
201
200
|
@prop divClass
|
|
201
|
+
@prop isPreload = false
|
|
202
202
|
@prop ...restProps
|
|
203
203
|
-->
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { getContext } from "svelte";
|
|
3
3
|
import type { Writable } from "svelte/store";
|
|
4
|
-
import { carouselIndicators
|
|
4
|
+
import { carouselIndicators } from "./theme";
|
|
5
5
|
import clsx from "clsx";
|
|
6
6
|
import { Indicator, type IndicatorsProps, type State } from "..";
|
|
7
7
|
import { getTheme } from "../theme/themeUtils";
|
|
8
8
|
|
|
9
9
|
let { children, activeClass, inactiveClass, position = "bottom", class: className, ...restProps }: IndicatorsProps = $props();
|
|
10
10
|
|
|
11
|
-
const theme = getTheme("
|
|
11
|
+
const theme = getTheme("carouselIndicators");
|
|
12
12
|
|
|
13
13
|
const state = getContext<Writable<State>>("state");
|
|
14
14
|
const { base, indicator } = $derived(carouselIndicators({ position }));
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
}
|
|
28
28
|
</script>
|
|
29
29
|
|
|
30
|
-
<div class={base({ class: clsx(
|
|
30
|
+
<div class={base({ class: clsx(theme?.base, className) })} {...restProps}>
|
|
31
31
|
{#each $state.images as _, idx}
|
|
32
32
|
{@const selected = $state.index === idx}
|
|
33
33
|
<button onclick={() => goToIndex(idx)}>
|
|
34
34
|
{#if children}
|
|
35
35
|
{@render children({ selected, index: idx })}
|
|
36
36
|
{:else}
|
|
37
|
-
<Indicator class={indicator({ selected, class: clsx(selected ? activeClass : inactiveClass,
|
|
37
|
+
<Indicator class={indicator({ selected, class: clsx(selected ? activeClass : inactiveClass, theme?.indicator) })} />
|
|
38
38
|
{/if}
|
|
39
39
|
</button>
|
|
40
40
|
{/each}
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
@component
|
|
45
45
|
[Go to docs](https://flowbite-svelte.com/)
|
|
46
46
|
## Type
|
|
47
|
-
[IndicatorsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
47
|
+
[IndicatorsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L397)
|
|
48
48
|
## Props
|
|
49
49
|
@prop children
|
|
50
50
|
@prop activeClass
|
|
@@ -2,7 +2,7 @@ import { type IndicatorsProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [IndicatorsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [IndicatorsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L397)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop activeClass
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { controlButton
|
|
2
|
+
import { controlButton } from "./theme";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { type ControlButtonProps } from "..";
|
|
5
5
|
import { getTheme } from "../theme/themeUtils";
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
const { base, span } = controlButton({ forward });
|
|
10
10
|
|
|
11
|
-
const theme = getTheme("
|
|
11
|
+
const theme = getTheme("controlButton");
|
|
12
12
|
</script>
|
|
13
13
|
|
|
14
14
|
<button type="button" class={base({ class: clsx(className, theme) })} {...restProps}>
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
@component
|
|
37
37
|
[Go to docs](https://flowbite-svelte.com/)
|
|
38
38
|
## Type
|
|
39
|
-
[ControlButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
39
|
+
[ControlButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L404)
|
|
40
40
|
## Props
|
|
41
41
|
@prop children
|
|
42
42
|
@prop forward
|
|
@@ -2,7 +2,7 @@ import { type ControlButtonProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ControlButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ControlButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L404)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop forward
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
let { children, class: className, ...restProps }: ControlsProps = $props();
|
|
10
10
|
|
|
11
|
-
const theme = getTheme("
|
|
11
|
+
const theme = getTheme("controlButton");
|
|
12
12
|
|
|
13
13
|
const state = getContext<Writable<State>>("state");
|
|
14
14
|
const { update } = state;
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
@component
|
|
55
55
|
[Go to docs](https://flowbite-svelte.com/)
|
|
56
56
|
## Type
|
|
57
|
-
[ControlsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
57
|
+
[ControlsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L410)
|
|
58
58
|
## Props
|
|
59
59
|
@prop children
|
|
60
60
|
@prop class: className
|