flowbite-svelte 1.10.5 → 1.10.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion/Accordion.svelte +5 -5
- package/dist/accordion/Accordion.svelte.d.ts +1 -1
- package/dist/accordion/AccordionItem.svelte +16 -10
- package/dist/accordion/AccordionItem.svelte.d.ts +2 -1
- package/dist/accordion/theme.d.ts +7 -2
- package/dist/alert/Alert.svelte +11 -13
- package/dist/alert/Alert.svelte.d.ts +1 -1
- package/dist/alert/theme.d.ts +2 -1
- package/dist/avatar/Avatar.svelte +10 -12
- package/dist/avatar/Avatar.svelte.d.ts +1 -1
- package/dist/avatar/theme.d.ts +4 -1
- package/dist/badge/Badge.svelte +13 -7
- package/dist/badge/Badge.svelte.d.ts +2 -1
- package/dist/badge/theme.d.ts +4 -2
- package/dist/banner/Banner.svelte +12 -7
- package/dist/banner/Banner.svelte.d.ts +2 -1
- package/dist/banner/theme.d.ts +4 -2
- package/dist/bottom-navigation/BottomNav.svelte +17 -11
- package/dist/bottom-navigation/BottomNav.svelte.d.ts +3 -1
- package/dist/bottom-navigation/BottomNavHeader.svelte +13 -7
- package/dist/bottom-navigation/BottomNavHeader.svelte.d.ts +3 -1
- package/dist/bottom-navigation/BottomNavHeaderItem.svelte +5 -4
- package/dist/bottom-navigation/BottomNavHeaderItem.svelte.d.ts +1 -1
- package/dist/bottom-navigation/BottomNavItem.svelte +25 -26
- package/dist/bottom-navigation/BottomNavItem.svelte.d.ts +3 -3
- package/dist/bottom-navigation/theme.d.ts +59 -52
- package/dist/bottom-navigation/theme.js +16 -16
- package/dist/breadcrumb/Breadcrumb.svelte +5 -4
- package/dist/breadcrumb/Breadcrumb.svelte.d.ts +1 -1
- package/dist/breadcrumb/BreadcrumbItem.svelte +8 -7
- package/dist/breadcrumb/BreadcrumbItem.svelte.d.ts +1 -1
- package/dist/breadcrumb/theme.d.ts +3 -2
- package/dist/button-group/ButtonGroup.svelte +4 -3
- package/dist/button-group/ButtonGroup.svelte.d.ts +1 -1
- package/dist/button-group/theme.d.ts +2 -1
- package/dist/buttons/Button.svelte +4 -3
- package/dist/buttons/Button.svelte.d.ts +1 -1
- package/dist/buttons/GradientButton.svelte +6 -5
- package/dist/buttons/GradientButton.svelte.d.ts +1 -1
- package/dist/buttons/theme.d.ts +3 -2
- package/dist/card/Card.svelte +5 -5
- package/dist/card/Card.svelte.d.ts +1 -1
- package/dist/card/theme.d.ts +2 -1
- package/dist/carousel/Carousel.svelte +6 -5
- package/dist/carousel/Carousel.svelte.d.ts +1 -1
- package/dist/carousel/CarouselIndicators.svelte +5 -4
- package/dist/carousel/CarouselIndicators.svelte.d.ts +1 -1
- package/dist/carousel/ControlButton.svelte +8 -5
- package/dist/carousel/ControlButton.svelte.d.ts +1 -1
- package/dist/carousel/Controls.svelte +5 -4
- package/dist/carousel/Controls.svelte.d.ts +1 -1
- package/dist/carousel/Slide.svelte +4 -3
- package/dist/carousel/Slide.svelte.d.ts +1 -1
- package/dist/carousel/Thumbnail.svelte +3 -3
- package/dist/carousel/Thumbnail.svelte.d.ts +1 -1
- package/dist/carousel/Thumbnails.svelte +4 -4
- package/dist/carousel/Thumbnails.svelte.d.ts +1 -1
- package/dist/carousel/theme.d.ts +20 -9
- package/dist/carousel/theme.js +4 -1
- package/dist/clipboard/Clipboard.svelte +3 -3
- package/dist/clipboard/Clipboard.svelte.d.ts +1 -1
- package/dist/clipboard/theme.d.ts +2 -1
- package/dist/darkmode/DarkMode.svelte +4 -3
- package/dist/darkmode/DarkMode.svelte.d.ts +1 -1
- package/dist/darkmode/theme.d.ts +2 -1
- package/dist/datepicker/Datepicker.svelte +28 -24
- package/dist/datepicker/Datepicker.svelte.d.ts +1 -1
- package/dist/datepicker/theme.d.ts +1 -1
- package/dist/device-mockups/Android.svelte +1 -1
- package/dist/device-mockups/Android.svelte.d.ts +1 -1
- package/dist/device-mockups/DefaultMockup.svelte +1 -1
- package/dist/device-mockups/DefaultMockup.svelte.d.ts +1 -1
- package/dist/device-mockups/Desktop.svelte +1 -1
- package/dist/device-mockups/Desktop.svelte.d.ts +1 -1
- package/dist/device-mockups/DeviceMockup.svelte +1 -1
- package/dist/device-mockups/DeviceMockup.svelte.d.ts +1 -1
- package/dist/device-mockups/Ios.svelte +1 -1
- package/dist/device-mockups/Ios.svelte.d.ts +1 -1
- package/dist/device-mockups/Laptop.svelte +1 -1
- package/dist/device-mockups/Laptop.svelte.d.ts +1 -1
- package/dist/device-mockups/Smartwatch.svelte +1 -1
- package/dist/device-mockups/Smartwatch.svelte.d.ts +1 -1
- package/dist/device-mockups/Tablet.svelte +1 -1
- package/dist/device-mockups/Tablet.svelte.d.ts +1 -1
- package/dist/drawer/Drawer.svelte +5 -4
- package/dist/drawer/Drawer.svelte.d.ts +1 -1
- package/dist/drawer/Drawerhead.svelte +6 -5
- package/dist/drawer/Drawerhead.svelte.d.ts +1 -1
- package/dist/drawer/theme.d.ts +3 -2
- package/dist/dropdown/Dropdown.svelte +4 -3
- package/dist/dropdown/Dropdown.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownDivider.svelte +4 -3
- package/dist/dropdown/DropdownDivider.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownGroup.svelte +4 -3
- package/dist/dropdown/DropdownGroup.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownHeader.svelte +4 -3
- package/dist/dropdown/DropdownHeader.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownItem.svelte +5 -4
- package/dist/dropdown/DropdownItem.svelte.d.ts +1 -1
- package/dist/dropdown/theme.d.ts +6 -5
- package/dist/footer/Footer.svelte +5 -4
- package/dist/footer/Footer.svelte.d.ts +1 -1
- package/dist/footer/FooterBrand.svelte +7 -6
- package/dist/footer/FooterBrand.svelte.d.ts +1 -1
- package/dist/footer/FooterCopyright.svelte +6 -5
- package/dist/footer/FooterCopyright.svelte.d.ts +1 -1
- package/dist/footer/FooterIcon.svelte +4 -3
- package/dist/footer/FooterIcon.svelte.d.ts +1 -1
- package/dist/footer/FooterLink.svelte +5 -4
- package/dist/footer/FooterLink.svelte.d.ts +1 -1
- package/dist/footer/FooterLinkGroup.svelte +4 -3
- package/dist/footer/FooterLinkGroup.svelte.d.ts +1 -1
- package/dist/footer/theme.d.ts +7 -6
- package/dist/forms/button-toggle/ButtonToggle.svelte +8 -7
- package/dist/forms/button-toggle/ButtonToggle.svelte.d.ts +1 -1
- package/dist/forms/button-toggle/ButtonToggleGroup.svelte +6 -5
- package/dist/forms/button-toggle/CheckIcon.svelte +4 -3
- package/dist/forms/button-toggle/CheckIcon.svelte.d.ts +1 -1
- package/dist/forms/button-toggle/theme.d.ts +5 -4
- package/dist/forms/checkbox/Checkbox.svelte +6 -5
- package/dist/forms/checkbox/CheckboxButton.svelte +4 -3
- package/dist/forms/checkbox/CheckboxButton.svelte.d.ts +1 -1
- package/dist/forms/checkbox/theme.d.ts +3 -2
- package/dist/forms/dropzone/Dropzone.svelte +23 -31
- package/dist/forms/dropzone/Dropzone.svelte.d.ts +4 -1
- package/dist/forms/dropzone/theme.d.ts +2 -1
- package/dist/forms/fileupload/Fileupload.svelte +6 -5
- package/dist/forms/fileupload/Fileupload.svelte.d.ts +1 -1
- package/dist/forms/fileupload/theme.d.ts +2 -1
- package/dist/forms/floating-label/FloatingLabelInput.svelte +8 -7
- package/dist/forms/floating-label/FloatingLabelInput.svelte.d.ts +1 -1
- package/dist/forms/floating-label/theme.d.ts +2 -1
- package/dist/forms/helper/Helper.svelte +4 -3
- package/dist/forms/helper/Helper.svelte.d.ts +1 -1
- package/dist/forms/helper/theme.d.ts +2 -1
- package/dist/forms/input-addon/InputAddon.svelte +4 -3
- package/dist/forms/input-addon/InputAddon.svelte.d.ts +1 -1
- package/dist/forms/input-field/Input.svelte +11 -10
- package/dist/forms/input-field/theme.d.ts +2 -1
- package/dist/forms/label/Label.svelte +4 -3
- package/dist/forms/label/Label.svelte.d.ts +1 -1
- package/dist/forms/label/theme.d.ts +2 -1
- package/dist/forms/phoneinput/PhoneInput.svelte +7 -7
- package/dist/forms/phoneinput/theme.d.ts +1 -1
- package/dist/forms/radio/Radio.svelte +4 -3
- package/dist/forms/radio/RadioButton.svelte +3 -2
- package/dist/forms/radio/theme.d.ts +3 -2
- package/dist/forms/range/Range.svelte +4 -3
- package/dist/forms/range/Range.svelte.d.ts +1 -1
- package/dist/forms/range/theme.d.ts +2 -1
- package/dist/forms/search/Search.svelte +9 -8
- package/dist/forms/search/Search.svelte.d.ts +1 -1
- package/dist/forms/search/theme.d.ts +2 -1
- package/dist/forms/select/MultiSelect.svelte +7 -6
- package/dist/forms/select/Select.svelte +5 -4
- package/dist/forms/select/theme.d.ts +3 -2
- package/dist/forms/tags/Tags.svelte +8 -7
- package/dist/forms/tags/Tags.svelte.d.ts +1 -1
- package/dist/forms/tags/theme.d.ts +2 -1
- package/dist/forms/textarea/Textarea.svelte +12 -11
- package/dist/forms/textarea/Textarea.svelte.d.ts +1 -1
- package/dist/forms/textarea/theme.d.ts +2 -1
- package/dist/forms/timepicker/Timepicker.svelte +39 -38
- package/dist/forms/timepicker/Timepicker.svelte.d.ts +1 -1
- package/dist/forms/timepicker/theme.d.ts +2 -1
- package/dist/forms/toggle/Toggle.svelte +6 -5
- package/dist/forms/toggle/Toggle.svelte.d.ts +1 -1
- package/dist/forms/toggle/theme.d.ts +2 -1
- package/dist/gallery/Gallery.svelte +5 -4
- package/dist/gallery/Gallery.svelte.d.ts +1 -1
- package/dist/gallery/theme.d.ts +2 -1
- package/dist/indicator/Indicator.svelte +6 -4
- package/dist/indicator/Indicator.svelte.d.ts +1 -1
- package/dist/indicator/theme.d.ts +2 -1
- package/dist/kbd/Kbd.svelte +4 -3
- package/dist/kbd/Kbd.svelte.d.ts +1 -1
- package/dist/kbd/theme.d.ts +2 -1
- package/dist/list-group/Listgroup.svelte +7 -6
- package/dist/list-group/Listgroup.svelte.d.ts +1 -1
- package/dist/list-group/ListgroupItem.svelte +8 -7
- package/dist/list-group/ListgroupItem.svelte.d.ts +1 -1
- package/dist/list-group/theme.d.ts +3 -2
- package/dist/mega-menu/MegaMenu.svelte +7 -6
- package/dist/mega-menu/MegaMenu.svelte.d.ts +1 -1
- package/dist/mega-menu/theme.d.ts +2 -1
- package/dist/modal/Modal.svelte +8 -8
- package/dist/modal/Modal.svelte.d.ts +1 -1
- package/dist/modal/theme.d.ts +2 -1
- package/dist/navbar/Menu.svelte +2 -3
- package/dist/navbar/Menu.svelte.d.ts +1 -1
- package/dist/navbar/NavBrand.svelte +2 -3
- package/dist/navbar/NavBrand.svelte.d.ts +1 -1
- package/dist/navbar/NavContainer.svelte +2 -3
- package/dist/navbar/NavContainer.svelte.d.ts +1 -1
- package/dist/navbar/NavHamburger.svelte +3 -4
- package/dist/navbar/NavHamburger.svelte.d.ts +2 -3
- package/dist/navbar/NavLi.svelte +2 -3
- package/dist/navbar/NavLi.svelte.d.ts +1 -1
- package/dist/navbar/NavUl.svelte +5 -6
- package/dist/navbar/NavUl.svelte.d.ts +1 -1
- package/dist/navbar/Navbar.svelte +3 -3
- package/dist/navbar/Navbar.svelte.d.ts +1 -1
- package/dist/navbar/theme.d.ts +6 -5
- package/dist/pagination/Pagination.svelte +3 -3
- package/dist/pagination/Pagination.svelte.d.ts +1 -1
- package/dist/pagination/PaginationButton.svelte +11 -14
- package/dist/pagination/PaginationButton.svelte.d.ts +1 -1
- package/dist/pagination/PaginationItem.svelte +2 -3
- package/dist/pagination/PaginationItem.svelte.d.ts +1 -1
- package/dist/pagination/PaginationNav.svelte +8 -8
- package/dist/pagination/PaginationNav.svelte.d.ts +1 -1
- package/dist/pagination/theme.d.ts +5 -4
- package/dist/popover/Popover.svelte +5 -6
- package/dist/popover/Popover.svelte.d.ts +1 -1
- package/dist/popover/theme.d.ts +2 -1
- package/dist/progress/Progressbar.svelte +7 -8
- package/dist/progress/Progressbar.svelte.d.ts +1 -1
- package/dist/progress/Progressradial.svelte +8 -9
- package/dist/progress/Progressradial.svelte.d.ts +1 -1
- package/dist/progress/theme.d.ts +2 -2
- package/dist/rating/AdvancedRating.svelte +6 -7
- package/dist/rating/AdvancedRating.svelte.d.ts +1 -1
- package/dist/rating/CustomIcon.svelte +1 -1
- package/dist/rating/CustomIcon.svelte.d.ts +1 -1
- package/dist/rating/Heart.svelte +1 -1
- package/dist/rating/Heart.svelte.d.ts +1 -1
- package/dist/rating/Rating.svelte +3 -4
- package/dist/rating/Rating.svelte.d.ts +1 -1
- package/dist/rating/RatingComment.svelte +1 -1
- package/dist/rating/RatingComment.svelte.d.ts +1 -1
- package/dist/rating/Review.svelte +8 -9
- package/dist/rating/Review.svelte.d.ts +1 -1
- package/dist/rating/ScoreRating.svelte +9 -9
- package/dist/rating/ScoreRating.svelte.d.ts +1 -1
- package/dist/rating/Star.svelte +1 -1
- package/dist/rating/Star.svelte.d.ts +1 -1
- package/dist/rating/Thumbup.svelte +1 -1
- package/dist/rating/Thumbup.svelte.d.ts +1 -1
- package/dist/rating/theme.d.ts +5 -4
- package/dist/sidebar/Sidebar.svelte +9 -10
- package/dist/sidebar/Sidebar.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarBrand.svelte +4 -5
- package/dist/sidebar/SidebarBrand.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarButton.svelte +2 -3
- package/dist/sidebar/SidebarButton.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarCta.svelte +4 -5
- package/dist/sidebar/SidebarCta.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarDropdownWrapper.svelte +7 -8
- package/dist/sidebar/SidebarDropdownWrapper.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarGroup.svelte +1 -1
- package/dist/sidebar/SidebarGroup.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarItem.svelte +6 -5
- package/dist/sidebar/SidebarItem.svelte.d.ts +1 -1
- package/dist/sidebar/theme.d.ts +9 -8
- package/dist/skeleton/CardPlaceholder.svelte +12 -13
- package/dist/skeleton/CardPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ImagePlaceholder.svelte +40 -13
- package/dist/skeleton/ImagePlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ListPlaceholder.svelte +27 -9
- package/dist/skeleton/ListPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/Skeleton.svelte +25 -10
- package/dist/skeleton/Skeleton.svelte.d.ts +1 -1
- package/dist/skeleton/TestimonialPlaceholder.svelte +28 -9
- package/dist/skeleton/TestimonialPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/TextPlaceholder.svelte +50 -27
- package/dist/skeleton/TextPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/VideoPlaceholder.svelte +3 -4
- package/dist/skeleton/VideoPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/WidgetPlaceholder.svelte +2 -3
- package/dist/skeleton/WidgetPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/theme.d.ts +9 -8
- package/dist/speed-dial/SpeedDial.svelte +4 -4
- package/dist/speed-dial/SpeedDial.svelte.d.ts +1 -1
- package/dist/speed-dial/SpeedDialButton.svelte +4 -4
- package/dist/speed-dial/SpeedDialButton.svelte.d.ts +1 -1
- package/dist/speed-dial/SpeedDialTrigger.svelte +1 -1
- package/dist/speed-dial/SpeedDialTrigger.svelte.d.ts +1 -1
- package/dist/speed-dial/theme.d.ts +3 -2
- package/dist/spinner/Spinner.svelte +3 -4
- package/dist/spinner/Spinner.svelte.d.ts +1 -1
- package/dist/spinner/theme.d.ts +2 -1
- package/dist/stepindicator/StepIndicator.svelte +11 -10
- package/dist/stepindicator/StepIndicator.svelte.d.ts +1 -1
- package/dist/stepindicator/theme.d.ts +2 -1
- package/dist/stepper/BreadcrumbStepper.svelte +10 -11
- package/dist/stepper/BreadcrumbStepper.svelte.d.ts +1 -1
- package/dist/stepper/DetailedStepper.svelte +5 -5
- package/dist/stepper/DetailedStepper.svelte.d.ts +1 -1
- package/dist/stepper/ProgressStepper.svelte +9 -12
- package/dist/stepper/ProgressStepper.svelte.d.ts +1 -1
- package/dist/stepper/Stepper.svelte +13 -19
- package/dist/stepper/Stepper.svelte.d.ts +1 -1
- package/dist/stepper/TimelineStepper.svelte +5 -5
- package/dist/stepper/TimelineStepper.svelte.d.ts +1 -1
- package/dist/stepper/VerticalStepper.svelte +5 -5
- package/dist/stepper/VerticalStepper.svelte.d.ts +1 -1
- package/dist/table/Table.svelte +4 -4
- package/dist/table/Table.svelte.d.ts +1 -1
- package/dist/table/TableBody.svelte +2 -3
- package/dist/table/TableBody.svelte.d.ts +1 -1
- package/dist/table/TableBodyCell.svelte +2 -3
- package/dist/table/TableBodyCell.svelte.d.ts +1 -1
- package/dist/table/TableBodyRow.svelte +3 -4
- package/dist/table/TableBodyRow.svelte.d.ts +1 -1
- package/dist/table/TableHead.svelte +3 -4
- package/dist/table/TableHead.svelte.d.ts +1 -1
- package/dist/table/TableHeadCell.svelte +2 -3
- package/dist/table/TableHeadCell.svelte.d.ts +1 -1
- package/dist/table/TableSearch.svelte +10 -10
- package/dist/table/TableSearch.svelte.d.ts +1 -1
- package/dist/table/theme.d.ts +6 -6
- package/dist/tabs/TabItem.svelte +6 -5
- package/dist/tabs/TabItem.svelte.d.ts +1 -1
- package/dist/tabs/Tabs.svelte +4 -5
- package/dist/tabs/Tabs.svelte.d.ts +1 -1
- package/dist/tabs/theme.d.ts +3 -2
- package/dist/theme/themeUtils.d.ts +13 -0
- package/dist/theme/themeUtils.js +9 -1
- package/dist/timeline/Activity.svelte +2 -3
- package/dist/timeline/Activity.svelte.d.ts +1 -1
- package/dist/timeline/ActivityItem.svelte +10 -10
- package/dist/timeline/ActivityItem.svelte.d.ts +1 -1
- package/dist/timeline/Group.svelte +5 -5
- package/dist/timeline/Group.svelte.d.ts +1 -1
- package/dist/timeline/GroupItem.svelte +7 -7
- package/dist/timeline/GroupItem.svelte.d.ts +1 -1
- package/dist/timeline/Timeline.svelte +3 -4
- package/dist/timeline/Timeline.svelte.d.ts +1 -1
- package/dist/timeline/TimelineItem.svelte +8 -8
- package/dist/timeline/TimelineItem.svelte.d.ts +1 -1
- package/dist/timeline/theme.d.ts +19 -18
- package/dist/toast/Toast.svelte +6 -6
- package/dist/toast/Toast.svelte.d.ts +1 -1
- package/dist/toast/theme.d.ts +2 -1
- package/dist/toolbar/Toolbar.svelte +3 -4
- package/dist/toolbar/Toolbar.svelte.d.ts +1 -1
- package/dist/toolbar/ToolbarButton.svelte +5 -6
- package/dist/toolbar/ToolbarButton.svelte.d.ts +1 -1
- package/dist/toolbar/ToolbarGroup.svelte +3 -4
- package/dist/toolbar/ToolbarGroup.svelte.d.ts +1 -1
- package/dist/toolbar/theme.d.ts +4 -3
- package/dist/tooltip/Tooltip.svelte +2 -3
- package/dist/tooltip/Tooltip.svelte.d.ts +1 -1
- package/dist/tooltip/theme.d.ts +2 -1
- package/dist/types.d.ts +19 -44
- package/dist/types.js +0 -1
- package/dist/typography/anchor/A.svelte +4 -5
- package/dist/typography/anchor/A.svelte.d.ts +1 -1
- package/dist/typography/anchor/theme.d.ts +2 -1
- package/dist/typography/blockquote/Blockquote.svelte +4 -5
- package/dist/typography/blockquote/Blockquote.svelte.d.ts +1 -1
- package/dist/typography/blockquote/theme.d.ts +2 -1
- package/dist/typography/descriptionlist/DescriptionList.svelte +3 -4
- package/dist/typography/descriptionlist/DescriptionList.svelte.d.ts +1 -1
- package/dist/typography/descriptionlist/theme.d.ts +2 -1
- package/dist/typography/heading/Heading.svelte +3 -4
- package/dist/typography/heading/Heading.svelte.d.ts +1 -1
- package/dist/typography/heading/theme.d.ts +2 -1
- package/dist/typography/hr/Hr.svelte +5 -6
- package/dist/typography/hr/Hr.svelte.d.ts +1 -1
- package/dist/typography/hr/theme.d.ts +2 -1
- package/dist/typography/img/EnhancedImg.svelte +5 -6
- package/dist/typography/img/EnhancedImg.svelte.d.ts +1 -1
- package/dist/typography/img/Img.svelte +5 -6
- package/dist/typography/img/Img.svelte.d.ts +1 -1
- package/dist/typography/img/theme.d.ts +2 -1
- package/dist/typography/layout/Layout.svelte +3 -4
- package/dist/typography/layout/Layout.svelte.d.ts +1 -1
- package/dist/typography/layout/theme.d.ts +2 -1
- package/dist/typography/list/Li.svelte +2 -3
- package/dist/typography/list/Li.svelte.d.ts +1 -1
- package/dist/typography/list/List.svelte +3 -4
- package/dist/typography/list/List.svelte.d.ts +1 -1
- package/dist/typography/list/theme.d.ts +2 -1
- package/dist/typography/mark/Mark.svelte +2 -2
- package/dist/typography/mark/Mark.svelte.d.ts +1 -1
- package/dist/typography/mark/theme.d.ts +2 -1
- package/dist/typography/paragraph/P.svelte +3 -4
- package/dist/typography/paragraph/P.svelte.d.ts +1 -1
- package/dist/typography/paragraph/theme.d.ts +2 -1
- package/dist/typography/secondary/Secondary.svelte +2 -3
- package/dist/typography/secondary/Secondary.svelte.d.ts +1 -1
- package/dist/typography/secondary/theme.d.ts +2 -1
- package/dist/typography/span/Span.svelte +3 -4
- package/dist/typography/span/Span.svelte.d.ts +1 -1
- package/dist/typography/span/theme.d.ts +2 -1
- package/dist/utils/Arrow.svelte +1 -1
- package/dist/utils/Arrow.svelte.d.ts +1 -1
- package/dist/utils/CloseButton.svelte +1 -1
- package/dist/utils/CloseButton.svelte.d.ts +1 -1
- package/dist/utils/Popper.svelte +1 -1
- package/dist/utils/Popper.svelte.d.ts +1 -1
- package/dist/video/Video.svelte +3 -3
- package/dist/video/Video.svelte.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import { tableBodyRow } from ".";
|
|
4
4
|
import type { TableBodyRowProps, TableCtxType } from "../types";
|
|
5
5
|
import clsx from "clsx";
|
|
6
|
-
import { cn } from "..";
|
|
7
6
|
import { getTheme } from "../theme/themeUtils";
|
|
8
7
|
|
|
9
8
|
let { children, class: className, color, striped, hoverable, border, ...restProps }: TableBodyRowProps = $props();
|
|
@@ -17,10 +16,10 @@
|
|
|
17
16
|
let compoStriped = $derived(striped || tableCtx.striped || false);
|
|
18
17
|
let compoBorder = $derived(border || tableCtx.border || false);
|
|
19
18
|
|
|
20
|
-
const base = $derived(tableBodyRow({ color: compoColor, hoverable: compoHoverable, striped: compoStriped, border: compoBorder }));
|
|
19
|
+
const base = $derived(tableBodyRow({ color: compoColor, hoverable: compoHoverable, striped: compoStriped, border: compoBorder, class: clsx(theme, className) }));
|
|
21
20
|
</script>
|
|
22
21
|
|
|
23
|
-
<tr {...restProps} class={
|
|
22
|
+
<tr {...restProps} class={base}>
|
|
24
23
|
{#if children}
|
|
25
24
|
{@render children()}
|
|
26
25
|
{/if}
|
|
@@ -30,7 +29,7 @@
|
|
|
30
29
|
@component
|
|
31
30
|
[Go to docs](https://flowbite-svelte.com/)
|
|
32
31
|
## Type
|
|
33
|
-
[TableBodyRowProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
32
|
+
[TableBodyRowProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1643)
|
|
34
33
|
## Props
|
|
35
34
|
@prop children
|
|
36
35
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { TableBodyRowProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [TableBodyRowProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [TableBodyRowProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1643)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import { TableHeadCell, tableHead } from ".";
|
|
4
4
|
import type { TableHeadProps, TableCtxType, HeadItemType } from "../types";
|
|
5
5
|
import clsx from "clsx";
|
|
6
|
-
import { cn } from "..";
|
|
7
6
|
import { getTheme } from "../theme/themeUtils";
|
|
8
7
|
|
|
9
8
|
let { children, headerSlot, color, striped, border, class: className, headItems, defaultRow = true, ...restProps }: TableHeadProps = $props();
|
|
@@ -16,7 +15,7 @@
|
|
|
16
15
|
let compoStriped = $derived(striped ? striped : tableCtx.striped || false);
|
|
17
16
|
let compoBorder = $derived(border ? border : tableCtx.border || false);
|
|
18
17
|
|
|
19
|
-
const base = $derived(tableHead({ color: compoColor, border: compoBorder, striped: compoStriped }));
|
|
18
|
+
const base = $derived(tableHead({ color: compoColor, border: compoBorder, striped: compoStriped, class: clsx(theme, className) }));
|
|
20
19
|
|
|
21
20
|
function getItemText(item: HeadItemType): string {
|
|
22
21
|
if (typeof item === "object" && "text" in item) {
|
|
@@ -26,7 +25,7 @@
|
|
|
26
25
|
}
|
|
27
26
|
</script>
|
|
28
27
|
|
|
29
|
-
<thead {...restProps} class={
|
|
28
|
+
<thead {...restProps} class={base}>
|
|
30
29
|
{#if headItems}
|
|
31
30
|
{#if headerSlot}
|
|
32
31
|
{@render headerSlot()}
|
|
@@ -53,7 +52,7 @@
|
|
|
53
52
|
@component
|
|
54
53
|
[Go to docs](https://flowbite-svelte.com/)
|
|
55
54
|
## Type
|
|
56
|
-
[TableHeadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
55
|
+
[TableHeadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1618)
|
|
57
56
|
## Props
|
|
58
57
|
@prop children
|
|
59
58
|
@prop headerSlot
|
|
@@ -2,7 +2,7 @@ import type { TableHeadProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [TableHeadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [TableHeadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1618)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop headerSlot
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { tableHeadCell } from ".";
|
|
4
4
|
import type { TableHeadCellProps } from "../types";
|
|
5
|
-
import { cn } from "..";
|
|
6
5
|
import { getTheme } from "../theme/themeUtils";
|
|
7
6
|
|
|
8
7
|
let { children, class: className, ...restProps }: TableHeadCellProps = $props();
|
|
@@ -10,7 +9,7 @@
|
|
|
10
9
|
const theme = getTheme("tableHeadCell");
|
|
11
10
|
</script>
|
|
12
11
|
|
|
13
|
-
<th {...restProps} class={
|
|
12
|
+
<th {...restProps} class={tableHeadCell({ class: clsx(theme, className) })}>
|
|
14
13
|
{#if children}
|
|
15
14
|
{@render children()}
|
|
16
15
|
{/if}
|
|
@@ -20,7 +19,7 @@
|
|
|
20
19
|
@component
|
|
21
20
|
[Go to docs](https://flowbite-svelte.com/)
|
|
22
21
|
## Type
|
|
23
|
-
[TableHeadCellProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
22
|
+
[TableHeadCellProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1667)
|
|
24
23
|
## Props
|
|
25
24
|
@prop children
|
|
26
25
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { TableHeadCellProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [TableHeadCellProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [TableHeadCellProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1667)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { setContext } from "svelte";
|
|
3
3
|
import type { TableSearchProps, TableSearchType } from "../types";
|
|
4
|
-
import
|
|
4
|
+
import clsx from "clsx";
|
|
5
5
|
import { tableSearch, type TableSearchTheme } from ".";
|
|
6
6
|
import { getTheme } from "../theme/themeUtils";
|
|
7
7
|
|
|
@@ -15,16 +15,16 @@
|
|
|
15
15
|
const styles = tableSearch({ color: themeColor, striped, hoverable });
|
|
16
16
|
|
|
17
17
|
// Apply custom classes or use theme defaults
|
|
18
|
-
const rootClass =
|
|
19
|
-
const innerDivCls =
|
|
20
|
-
const searchContainerCls =
|
|
21
|
-
const svgContainerCls =
|
|
22
|
-
const svgCls =
|
|
23
|
-
const inputCls =
|
|
24
|
-
const tableCls =
|
|
18
|
+
const rootClass = styles.root({ class: clsx((theme as TableSearchTheme)?.root, divClass) });
|
|
19
|
+
const innerDivCls = styles.innerDiv({ class: clsx((theme as TableSearchTheme)?.innerDiv, innerDivClass) });
|
|
20
|
+
const searchContainerCls = styles.searchContainer({ class: clsx((theme as TableSearchTheme)?.searchContainer, searchClass) });
|
|
21
|
+
const svgContainerCls = styles.svgContainer({ class: clsx((theme as TableSearchTheme)?.svgContainer, svgDivClass) });
|
|
22
|
+
const svgCls = styles.svg({ class: clsx((theme as TableSearchTheme)?.svg, svgClass) });
|
|
23
|
+
const inputCls = styles.input({ class: clsx((theme as TableSearchTheme)?.input, inputClass) });
|
|
24
|
+
const tableCls = styles.table({ class: clsx(tableClass, (theme as TableSearchTheme)?.table, className) });
|
|
25
25
|
|
|
26
26
|
// Handle custom color
|
|
27
|
-
const finalTableClass = color === "custom" && customColor ?
|
|
27
|
+
const finalTableClass = color === "custom" && customColor ? clsx(tableCls, customColor) : tableCls;
|
|
28
28
|
|
|
29
29
|
const tableSearchCtx: TableSearchType = {
|
|
30
30
|
striped,
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
@component
|
|
65
65
|
[Go to docs](https://flowbite-svelte.com/)
|
|
66
66
|
## Type
|
|
67
|
-
[TableSearchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
67
|
+
[TableSearchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1682)
|
|
68
68
|
## Props
|
|
69
69
|
@prop children
|
|
70
70
|
@prop header
|
|
@@ -2,7 +2,7 @@ import type { TableSearchProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [TableSearchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [TableSearchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1682)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop header
|
package/dist/table/theme.d.ts
CHANGED
|
@@ -225,7 +225,7 @@ export declare const table: import("tailwind-variants").TVReturnType<{
|
|
|
225
225
|
table: string;
|
|
226
226
|
}, undefined, unknown, unknown, undefined>>;
|
|
227
227
|
export type TableSlots = keyof typeof table.slots;
|
|
228
|
-
export type TableTheme = Partial<Record<TableSlots,
|
|
228
|
+
export type TableTheme = Partial<Record<TableSlots, ClassValue>>;
|
|
229
229
|
export declare const tableBodyRow: import("tailwind-variants").TVReturnType<{
|
|
230
230
|
color: {
|
|
231
231
|
default: string;
|
|
@@ -326,7 +326,7 @@ export declare const tableBodyRow: import("tailwind-variants").TVReturnType<{
|
|
|
326
326
|
true: string;
|
|
327
327
|
};
|
|
328
328
|
}, undefined, "", unknown, unknown, undefined>>;
|
|
329
|
-
export type TableBodyRowTheme =
|
|
329
|
+
export type TableBodyRowTheme = ClassValue;
|
|
330
330
|
export declare const tableHead: import("tailwind-variants").TVReturnType<{
|
|
331
331
|
color: {
|
|
332
332
|
default: string;
|
|
@@ -424,11 +424,11 @@ export declare const tableHead: import("tailwind-variants").TVReturnType<{
|
|
|
424
424
|
false: string;
|
|
425
425
|
};
|
|
426
426
|
}, undefined, "text-xs uppercase", unknown, unknown, undefined>>;
|
|
427
|
-
export type TableHeadTheme =
|
|
427
|
+
export type TableHeadTheme = ClassValue;
|
|
428
428
|
export declare const tableBodyCell: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "px-6 py-4 whitespace-nowrap font-medium", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "px-6 py-4 whitespace-nowrap font-medium", unknown, unknown, undefined>>;
|
|
429
|
-
export type TableBodyCellTheme =
|
|
429
|
+
export type TableBodyCellTheme = ClassValue;
|
|
430
430
|
export declare const tableHeadCell: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "px-6 py-3", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "px-6 py-3", unknown, unknown, undefined>>;
|
|
431
|
-
export type TableHeadCellTheme =
|
|
431
|
+
export type TableHeadCellTheme = ClassValue;
|
|
432
432
|
export type TableSearchClasses = Partial<{
|
|
433
433
|
root: ClassValue;
|
|
434
434
|
innerDiv: ClassValue;
|
|
@@ -609,4 +609,4 @@ export declare const tableSearch: import("tailwind-variants").TVReturnType<{
|
|
|
609
609
|
}, undefined, unknown, unknown, undefined>>;
|
|
610
610
|
export type TableSearchColor = "default" | "blue" | "green" | "red" | "yellow" | "purple" | "indigo" | "pink" | "custom";
|
|
611
611
|
export type TableSearchSlots = keyof typeof tableSearch.slots;
|
|
612
|
-
export type TableSearchTheme = Partial<Record<TableSearchSlots,
|
|
612
|
+
export type TableSearchTheme = Partial<Record<TableSearchSlots, ClassValue>>;
|
package/dist/tabs/TabItem.svelte
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import { getContext } from "svelte";
|
|
3
3
|
import { writable } from "svelte/store";
|
|
4
4
|
import { tabItem, tabs, type TabItemTheme } from ".";
|
|
5
|
-
import
|
|
5
|
+
import clsx from "clsx";
|
|
6
|
+
import { type TabitemProps, type TabCtxType } from "..";
|
|
6
7
|
import { getTheme } from "../theme/themeUtils";
|
|
7
8
|
|
|
8
9
|
let { children, titleSlot, open = false, title = "Tab title", activeClass, inactiveClass, class: className, disabled, tabStyle, ...restProps }: TabitemProps = $props();
|
|
@@ -32,8 +33,8 @@
|
|
|
32
33
|
const { base, button, content } = $derived(tabItem({ open, disabled }));
|
|
33
34
|
</script>
|
|
34
35
|
|
|
35
|
-
<li {...restProps} class={
|
|
36
|
-
<button type="button" onclick={() => (open = true)} role="tab" id={tabId} aria-controls={ctx.panelId} aria-selected={open} {disabled} class={
|
|
36
|
+
<li {...restProps} class={base({ class: clsx((theme as TabItemTheme)?.base, className) })} role="presentation">
|
|
37
|
+
<button type="button" onclick={() => (open = true)} role="tab" id={tabId} aria-controls={ctx.panelId} aria-selected={open} {disabled} class={button({ class: clsx(open ? (activeClass ?? active()) : (inactiveClass ?? inactive()), (theme as TabItemTheme)?.button) })}>
|
|
37
38
|
{#if titleSlot}
|
|
38
39
|
{@render titleSlot()}
|
|
39
40
|
{:else}
|
|
@@ -42,7 +43,7 @@
|
|
|
42
43
|
</button>
|
|
43
44
|
|
|
44
45
|
{#if open && children}
|
|
45
|
-
<div class={
|
|
46
|
+
<div class={content({ class: clsx((theme as TabItemTheme)?.content) })}>
|
|
46
47
|
<div use:init>
|
|
47
48
|
{@render children()}
|
|
48
49
|
</div>
|
|
@@ -54,7 +55,7 @@
|
|
|
54
55
|
@component
|
|
55
56
|
[Go to docs](https://flowbite-svelte.com/)
|
|
56
57
|
## Type
|
|
57
|
-
[TabitemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
58
|
+
[TabitemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1710)
|
|
58
59
|
## Props
|
|
59
60
|
@prop children
|
|
60
61
|
@prop titleSlot
|
|
@@ -2,7 +2,7 @@ import { type TabitemProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [TabitemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [TabitemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1710)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop titleSlot
|
package/dist/tabs/Tabs.svelte
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
import { setContext } from "svelte";
|
|
5
5
|
import { tabs, type TabsTheme } from ".";
|
|
6
6
|
import type { TabsProps, TabCtxType } from "../types";
|
|
7
|
-
import { cn } from "..";
|
|
8
7
|
import { getTheme } from "../theme/themeUtils";
|
|
9
8
|
|
|
10
9
|
let { children, tabStyle = "none", ulClass, contentClass, divider = true, ...restProps }: TabsProps = $props();
|
|
@@ -36,19 +35,19 @@
|
|
|
36
35
|
}
|
|
37
36
|
</script>
|
|
38
37
|
|
|
39
|
-
<ul role="tablist" {...restProps} class={
|
|
38
|
+
<ul role="tablist" {...restProps} class={base({ class: clsx((theme as TabsTheme)?.base, ulClass) })}>
|
|
40
39
|
{@render children()}
|
|
41
40
|
</ul>
|
|
42
41
|
{#if dividerBool}
|
|
43
|
-
<div class={
|
|
42
|
+
<div class={dividerClass({ class: clsx((theme as TabsTheme)?.divider) })}></div>
|
|
44
43
|
{/if}
|
|
45
|
-
<div id={panelId} class={
|
|
44
|
+
<div id={panelId} class={content({ class: clsx((theme as TabsTheme)?.content, contentClass) })} role="tabpanel" aria-labelledby={panelId} use:init></div>
|
|
46
45
|
|
|
47
46
|
<!--
|
|
48
47
|
@component
|
|
49
48
|
[Go to docs](https://flowbite-svelte.com/)
|
|
50
49
|
## Type
|
|
51
|
-
[TabsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
50
|
+
[TabsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1702)
|
|
52
51
|
## Props
|
|
53
52
|
@prop children
|
|
54
53
|
@prop tabStyle = "none"
|
|
@@ -2,7 +2,7 @@ import type { TabsProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [TabsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [TabsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1702)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop tabStyle = "none"
|
package/dist/tabs/theme.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
+
import type { ClassValue } from "svelte/elements";
|
|
2
3
|
export type TabsVaraints = VariantProps<typeof tabs>;
|
|
3
4
|
export declare const tabs: import("tailwind-variants").TVReturnType<{
|
|
4
5
|
tabStyle: {
|
|
@@ -89,7 +90,7 @@ export declare const tabs: import("tailwind-variants").TVReturnType<{
|
|
|
89
90
|
inactive: string;
|
|
90
91
|
}, undefined, unknown, unknown, undefined>>;
|
|
91
92
|
export type TabsSlots = keyof typeof tabs.slots;
|
|
92
|
-
export type TabsTheme = Partial<Record<TabsSlots,
|
|
93
|
+
export type TabsTheme = Partial<Record<TabsSlots, ClassValue>>;
|
|
93
94
|
export declare const tabItem: import("tailwind-variants").TVReturnType<{
|
|
94
95
|
open: {
|
|
95
96
|
true: {
|
|
@@ -137,4 +138,4 @@ export declare const tabItem: import("tailwind-variants").TVReturnType<{
|
|
|
137
138
|
content: string;
|
|
138
139
|
}, undefined, unknown, unknown, undefined>>;
|
|
139
140
|
export type TabItemSlots = keyof typeof tabItem.slots;
|
|
140
|
-
export type TabItemTheme = Partial<Record<TabItemSlots,
|
|
141
|
+
export type TabItemTheme = Partial<Record<TabItemSlots, ClassValue>>;
|
|
@@ -1,2 +1,15 @@
|
|
|
1
1
|
import { type ThemeConfig } from "..";
|
|
2
|
+
import type { ClassValue } from "clsx";
|
|
2
3
|
export declare function getTheme<K extends keyof ThemeConfig>(componentKey: K): ThemeConfig[K];
|
|
4
|
+
type Slots<T extends {
|
|
5
|
+
slots: Record<string, unknown>;
|
|
6
|
+
}> = Omit<T["slots"], "base">;
|
|
7
|
+
export type Classes<T extends {
|
|
8
|
+
slots: Record<string, unknown>;
|
|
9
|
+
}> = {
|
|
10
|
+
classes?: Partial<{
|
|
11
|
+
[K in keyof Slots<T>]: ClassValue;
|
|
12
|
+
}>;
|
|
13
|
+
};
|
|
14
|
+
export declare function themeDeprecated(component: string, names: Record<string, unknown>): void;
|
|
15
|
+
export {};
|
package/dist/theme/themeUtils.js
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
|
-
import { getContext } from "svelte";
|
|
2
1
|
import {} from "..";
|
|
2
|
+
import { getContext } from "svelte";
|
|
3
3
|
export function getTheme(componentKey) {
|
|
4
4
|
const theme = getContext("theme");
|
|
5
5
|
return theme?.[componentKey];
|
|
6
6
|
}
|
|
7
|
+
export function themeDeprecated(component, names) {
|
|
8
|
+
const nonEmptyNames = Object.keys(names)
|
|
9
|
+
.filter((name) => names[name])
|
|
10
|
+
.map((name) => `"${name}"`);
|
|
11
|
+
if (nonEmptyNames.length === 0)
|
|
12
|
+
return;
|
|
13
|
+
console.warn(`The following "${component}" props are deprecated: ${nonEmptyNames.join(", ")}.\nPlease update your code to use the new "classes" property.`);
|
|
14
|
+
}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { activity } from ".";
|
|
4
4
|
import type { ActivityProps } from "../types";
|
|
5
|
-
import { cn } from "..";
|
|
6
5
|
import { getTheme } from "../theme/themeUtils";
|
|
7
6
|
|
|
8
7
|
let { children, class: className, ...restProps }: ActivityProps = $props();
|
|
@@ -10,7 +9,7 @@
|
|
|
10
9
|
const theme = getTheme("activity");
|
|
11
10
|
</script>
|
|
12
11
|
|
|
13
|
-
<ol {...restProps} class={
|
|
12
|
+
<ol {...restProps} class={activity({ class: clsx(theme, className) })}>
|
|
14
13
|
{@render children()}
|
|
15
14
|
</ol>
|
|
16
15
|
|
|
@@ -18,7 +17,7 @@
|
|
|
18
17
|
@component
|
|
19
18
|
[Go to docs](https://flowbite-svelte.com/)
|
|
20
19
|
## Type
|
|
21
|
-
[ActivityProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
20
|
+
[ActivityProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1754)
|
|
22
21
|
## Props
|
|
23
22
|
@prop children
|
|
24
23
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { ActivityProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ActivityProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ActivityProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1754)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { activityItem, type ActivityItemTheme } from "./index";
|
|
3
3
|
import type { ActivityItemProps } from "../types";
|
|
4
|
-
import
|
|
4
|
+
import clsx from "clsx";
|
|
5
5
|
import { getTheme } from "../theme/themeUtils";
|
|
6
6
|
|
|
7
7
|
let { activities, liClass, spanClass, imgClass, outerDivClass, innerDivClass, timeClass, titleClass, textClass, ...restProps }: ActivityItemProps = $props();
|
|
@@ -12,19 +12,19 @@
|
|
|
12
12
|
</script>
|
|
13
13
|
|
|
14
14
|
{#each activities as { title: name, date, src, alt, text: activity }}
|
|
15
|
-
<li {...restProps} class={
|
|
16
|
-
<span class={
|
|
17
|
-
<img class={
|
|
15
|
+
<li {...restProps} class={li({ class: clsx((theme as ActivityItemTheme)?.li, liClass) })}>
|
|
16
|
+
<span class={span({ class: clsx((theme as ActivityItemTheme)?.span, spanClass) })}>
|
|
17
|
+
<img class={img({ class: clsx((theme as ActivityItemTheme)?.img, imgClass) })} {src} {alt} />
|
|
18
18
|
</span>
|
|
19
|
-
<div class={
|
|
20
|
-
<div class={
|
|
21
|
-
<time class={
|
|
22
|
-
<div class={
|
|
19
|
+
<div class={outerDiv({ class: clsx((theme as ActivityItemTheme)?.outerDiv, outerDivClass) })}>
|
|
20
|
+
<div class={innerDiv({ class: clsx((theme as ActivityItemTheme)?.innerDiv, innerDivClass) })}>
|
|
21
|
+
<time class={time({ class: clsx((theme as ActivityItemTheme)?.time, timeClass) })}>{date}</time>
|
|
22
|
+
<div class={title({ class: clsx((theme as ActivityItemTheme)?.title, titleClass) })}>
|
|
23
23
|
{@html name}
|
|
24
24
|
</div>
|
|
25
25
|
</div>
|
|
26
26
|
{#if activity}
|
|
27
|
-
<div class={
|
|
27
|
+
<div class={text({ class: clsx((theme as ActivityItemTheme)?.text, textClass) })}>
|
|
28
28
|
{@html activity}
|
|
29
29
|
</div>
|
|
30
30
|
{/if}
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
@component
|
|
37
37
|
[Go to docs](https://flowbite-svelte.com/)
|
|
38
38
|
## Type
|
|
39
|
-
[ActivityItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
39
|
+
[ActivityItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1758)
|
|
40
40
|
## Props
|
|
41
41
|
@prop activities
|
|
42
42
|
@prop liClass
|
|
@@ -2,7 +2,7 @@ import type { ActivityItemProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ActivityItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ActivityItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1758)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop activities
|
|
8
8
|
* @prop liClass
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { group, type GroupTheme } from ".";
|
|
3
3
|
import type { GroupProps } from "../types";
|
|
4
|
-
import
|
|
4
|
+
import clsx from "clsx";
|
|
5
5
|
import { getTheme } from "../theme/themeUtils";
|
|
6
6
|
|
|
7
7
|
let { children, divClass, timeClass, date, olClass, ...restProps }: GroupProps = $props();
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
const { div, time, ol } = $derived(group());
|
|
12
12
|
</script>
|
|
13
13
|
|
|
14
|
-
<div class={
|
|
15
|
-
<time class={
|
|
16
|
-
<ol {...restProps} class={
|
|
14
|
+
<div class={div({ class: clsx((theme as GroupTheme)?.div, divClass) })}>
|
|
15
|
+
<time class={time({ class: clsx((theme as GroupTheme)?.time, timeClass) })}>{date}</time>
|
|
16
|
+
<ol {...restProps} class={ol({ class: clsx((theme as GroupTheme)?.ol, olClass) })}>
|
|
17
17
|
{@render children()}
|
|
18
18
|
</ol>
|
|
19
19
|
</div>
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
@component
|
|
23
23
|
[Go to docs](https://flowbite-svelte.com/)
|
|
24
24
|
## Type
|
|
25
|
-
[GroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
25
|
+
[GroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1770)
|
|
26
26
|
## Props
|
|
27
27
|
@prop children
|
|
28
28
|
@prop divClass
|
|
@@ -2,7 +2,7 @@ import type { GroupProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [GroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [GroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1770)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop divClass
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { groupItem, type GroupItemTheme } from ".";
|
|
3
3
|
import type { GroupItemProps } from "../types";
|
|
4
|
-
import
|
|
4
|
+
import clsx from "clsx";
|
|
5
5
|
import { getTheme } from "../theme/themeUtils";
|
|
6
6
|
|
|
7
7
|
let { timelines, aClass, imgClass, divClass, titleClass, spanClass, ...restProps }: GroupItemProps = $props();
|
|
@@ -13,17 +13,17 @@
|
|
|
13
13
|
|
|
14
14
|
{#each timelines as { name, src, alt, isPrivate, href, comment }}
|
|
15
15
|
<li {...restProps}>
|
|
16
|
-
<a {href} class={
|
|
17
|
-
<img class={
|
|
18
|
-
<div class={
|
|
19
|
-
<div class={
|
|
16
|
+
<a {href} class={a({ class: clsx((theme as GroupItemTheme)?.a, aClass) })}>
|
|
17
|
+
<img class={img({ class: clsx((theme as GroupItemTheme)?.img, imgClass) })} {src} {alt} />
|
|
18
|
+
<div class={div({ class: clsx((theme as GroupItemTheme)?.div, divClass) })}>
|
|
19
|
+
<div class={title({ class: clsx((theme as GroupItemTheme)?.title, titleClass) })}>
|
|
20
20
|
{@html name}
|
|
21
21
|
</div>
|
|
22
22
|
{#if comment}
|
|
23
23
|
<div class="text-sm font-normal">{comment}</div>
|
|
24
24
|
{/if}
|
|
25
25
|
|
|
26
|
-
<span class={
|
|
26
|
+
<span class={span({ class: clsx((theme as GroupItemTheme)?.span, spanClass) })}>
|
|
27
27
|
{#if isPrivate}
|
|
28
28
|
<svg class="me-1 h-3 w-3" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
29
29
|
<path fill-rule="evenodd" d="M3.707 2.293a1 1 0 00-1.414 1.414l14 14a1 1 0 001.414-1.414l-1.473-1.473A10.014 10.014 0 0019.542 10C18.268 5.943 14.478 3 10 3a9.958 9.958 0 00-4.512 1.074l-1.78-1.781zm4.261 4.26l1.514 1.515a2.003 2.003 0 012.45 2.45l1.514 1.514a4 4 0 00-5.478-5.478z" clip-rule="evenodd" />
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
@component
|
|
47
47
|
[Go to docs](https://flowbite-svelte.com/)
|
|
48
48
|
## Type
|
|
49
|
-
[GroupItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
49
|
+
[GroupItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1778)
|
|
50
50
|
## Props
|
|
51
51
|
@prop timelines
|
|
52
52
|
@prop aClass
|
|
@@ -2,7 +2,7 @@ import type { GroupItemProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [GroupItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [GroupItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1778)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop timelines
|
|
8
8
|
* @prop aClass
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import { timeline } from ".";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import type { TimelineProps, TimelineVariants } from "../types";
|
|
6
|
-
import { cn } from "..";
|
|
7
6
|
import { getTheme } from "../theme/themeUtils";
|
|
8
7
|
|
|
9
8
|
let { children, order = "default", class: className, ...restProps }: TimelineProps = $props();
|
|
@@ -11,10 +10,10 @@
|
|
|
11
10
|
const theme = getTheme("timeline");
|
|
12
11
|
|
|
13
12
|
setContext<TimelineVariants["order"]>("order", order);
|
|
14
|
-
const olCls = $derived(timeline({ order, class: clsx(className) }));
|
|
13
|
+
const olCls = $derived(timeline({ order, class: clsx(theme, className) }));
|
|
15
14
|
</script>
|
|
16
15
|
|
|
17
|
-
<ol {...restProps} class={
|
|
16
|
+
<ol {...restProps} class={olCls}>
|
|
18
17
|
{@render children()}
|
|
19
18
|
</ol>
|
|
20
19
|
|
|
@@ -22,7 +21,7 @@
|
|
|
22
21
|
@component
|
|
23
22
|
[Go to docs](https://flowbite-svelte.com/)
|
|
24
23
|
## Type
|
|
25
|
-
[TimelineProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
24
|
+
[TimelineProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1789)
|
|
26
25
|
## Props
|
|
27
26
|
@prop children
|
|
28
27
|
@prop order = "default"
|
|
@@ -2,7 +2,7 @@ import type { TimelineProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [TimelineProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [TimelineProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1789)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop order = "default"
|