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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { getContext } from "svelte";
|
|
3
3
|
import { timelineItem, type TimelineItemTheme } from ".";
|
|
4
4
|
import type { TimelineItemProps, TimelineVariants, DateFormat } from "../types";
|
|
5
|
-
import
|
|
5
|
+
import clsx from "clsx";
|
|
6
6
|
import { getTheme } from "../theme/themeUtils";
|
|
7
7
|
|
|
8
8
|
let { children, orientationSlot, title, date, dateFormat = "month-year", svgClass, liClass, divClass, timeClass, h3Class, ...restProps }: TimelineItemProps = $props();
|
|
@@ -42,31 +42,31 @@
|
|
|
42
42
|
}
|
|
43
43
|
</script>
|
|
44
44
|
|
|
45
|
-
<li {...restProps} class={
|
|
45
|
+
<li {...restProps} class={li({ class: clsx((theme as TimelineItemTheme)?.li, liClass) })}>
|
|
46
46
|
{#if order !== "default"}
|
|
47
47
|
{#if orientationSlot && (order === "vertical" || order === "horizontal")}
|
|
48
48
|
{@render orientationSlot()}
|
|
49
49
|
{:else}
|
|
50
|
-
<div class={
|
|
51
|
-
<svg aria-hidden="true" class={
|
|
50
|
+
<div class={div({ class: clsx((theme as TimelineItemTheme)?.div, divClass) })}>
|
|
51
|
+
<svg aria-hidden="true" class={svg({ class: clsx((theme as TimelineItemTheme)?.svg, svgClass) })} fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
52
52
|
<path fill-rule="evenodd" d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z" clip-rule="evenodd" />
|
|
53
53
|
</svg>
|
|
54
54
|
</div>
|
|
55
55
|
{/if}
|
|
56
56
|
{:else if date}
|
|
57
|
-
<time datetime={date} class={
|
|
57
|
+
<time datetime={date} class={time({ class: clsx((theme as TimelineItemTheme)?.time, timeClass) })}>
|
|
58
58
|
{formatDisplayDate(date, dateFormat)}
|
|
59
59
|
</time>
|
|
60
60
|
{/if}
|
|
61
61
|
{#if title}
|
|
62
|
-
<h3 class={
|
|
62
|
+
<h3 class={h3({ class: clsx((theme as TimelineItemTheme)?.h3, h3Class) })}>
|
|
63
63
|
{title}
|
|
64
64
|
</h3>
|
|
65
65
|
{/if}
|
|
66
66
|
|
|
67
67
|
{#if order !== "default"}
|
|
68
68
|
{#if date}
|
|
69
|
-
<time datetime={date} class={
|
|
69
|
+
<time datetime={date} class={time({ class: clsx((theme as TimelineItemTheme)?.time, timeClass) })}>
|
|
70
70
|
{formatDisplayDate(date, dateFormat)}
|
|
71
71
|
</time>
|
|
72
72
|
{/if}
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
@component
|
|
80
80
|
[Go to docs](https://flowbite-svelte.com/)
|
|
81
81
|
## Type
|
|
82
|
-
[TimelineItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
82
|
+
[TimelineItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1794)
|
|
83
83
|
## Props
|
|
84
84
|
@prop children
|
|
85
85
|
@prop orientationSlot
|
|
@@ -2,7 +2,7 @@ import type { TimelineItemProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [TimelineItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [TimelineItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1794)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop orientationSlot
|
package/dist/timeline/theme.d.ts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
+
import type { ClassValue } from "svelte/elements";
|
|
2
3
|
export declare const activity: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "relative border-s border-gray-200 dark:border-gray-700", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "relative border-s border-gray-200 dark:border-gray-700", unknown, unknown, undefined>>;
|
|
3
|
-
export type ActivityTheme =
|
|
4
|
+
export type ActivityTheme = ClassValue;
|
|
4
5
|
export declare const activityItem: import("tailwind-variants").TVReturnType<{
|
|
5
6
|
[key: string]: {
|
|
6
7
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
7
8
|
title?: import("tailwind-variants").ClassValue;
|
|
8
9
|
img?: import("tailwind-variants").ClassValue;
|
|
9
10
|
span?: import("tailwind-variants").ClassValue;
|
|
10
|
-
innerDiv?: import("tailwind-variants").ClassValue;
|
|
11
|
-
outerDiv?: import("tailwind-variants").ClassValue;
|
|
12
|
-
li?: import("tailwind-variants").ClassValue;
|
|
13
11
|
text?: import("tailwind-variants").ClassValue;
|
|
14
12
|
time?: import("tailwind-variants").ClassValue;
|
|
13
|
+
innerDiv?: import("tailwind-variants").ClassValue;
|
|
14
|
+
li?: import("tailwind-variants").ClassValue;
|
|
15
|
+
outerDiv?: import("tailwind-variants").ClassValue;
|
|
15
16
|
};
|
|
16
17
|
};
|
|
17
18
|
} | {
|
|
@@ -20,11 +21,11 @@ export declare const activityItem: import("tailwind-variants").TVReturnType<{
|
|
|
20
21
|
title?: import("tailwind-variants").ClassValue;
|
|
21
22
|
img?: import("tailwind-variants").ClassValue;
|
|
22
23
|
span?: import("tailwind-variants").ClassValue;
|
|
23
|
-
innerDiv?: import("tailwind-variants").ClassValue;
|
|
24
|
-
outerDiv?: import("tailwind-variants").ClassValue;
|
|
25
|
-
li?: import("tailwind-variants").ClassValue;
|
|
26
24
|
text?: import("tailwind-variants").ClassValue;
|
|
27
25
|
time?: import("tailwind-variants").ClassValue;
|
|
26
|
+
innerDiv?: import("tailwind-variants").ClassValue;
|
|
27
|
+
li?: import("tailwind-variants").ClassValue;
|
|
28
|
+
outerDiv?: import("tailwind-variants").ClassValue;
|
|
28
29
|
};
|
|
29
30
|
};
|
|
30
31
|
} | {}, {
|
|
@@ -42,11 +43,11 @@ export declare const activityItem: import("tailwind-variants").TVReturnType<{
|
|
|
42
43
|
title?: import("tailwind-variants").ClassValue;
|
|
43
44
|
img?: import("tailwind-variants").ClassValue;
|
|
44
45
|
span?: import("tailwind-variants").ClassValue;
|
|
45
|
-
innerDiv?: import("tailwind-variants").ClassValue;
|
|
46
|
-
outerDiv?: import("tailwind-variants").ClassValue;
|
|
47
|
-
li?: import("tailwind-variants").ClassValue;
|
|
48
46
|
text?: import("tailwind-variants").ClassValue;
|
|
49
47
|
time?: import("tailwind-variants").ClassValue;
|
|
48
|
+
innerDiv?: import("tailwind-variants").ClassValue;
|
|
49
|
+
li?: import("tailwind-variants").ClassValue;
|
|
50
|
+
outerDiv?: import("tailwind-variants").ClassValue;
|
|
50
51
|
};
|
|
51
52
|
};
|
|
52
53
|
} | {}, {
|
|
@@ -69,21 +70,21 @@ export declare const activityItem: import("tailwind-variants").TVReturnType<{
|
|
|
69
70
|
text: string;
|
|
70
71
|
}, undefined, unknown, unknown, undefined>>;
|
|
71
72
|
export type ActivityItemSlots = keyof typeof activityItem.slots;
|
|
72
|
-
export type ActivityItemTheme = Partial<Record<ActivityItemSlots,
|
|
73
|
+
export type ActivityItemTheme = Partial<Record<ActivityItemSlots, ClassValue>>;
|
|
73
74
|
export declare const group: import("tailwind-variants").TVReturnType<{
|
|
74
75
|
[key: string]: {
|
|
75
76
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
76
77
|
div?: import("tailwind-variants").ClassValue;
|
|
77
|
-
ol?: import("tailwind-variants").ClassValue;
|
|
78
78
|
time?: import("tailwind-variants").ClassValue;
|
|
79
|
+
ol?: import("tailwind-variants").ClassValue;
|
|
79
80
|
};
|
|
80
81
|
};
|
|
81
82
|
} | {
|
|
82
83
|
[x: string]: {
|
|
83
84
|
[x: string]: import("tailwind-variants").ClassValue | {
|
|
84
85
|
div?: import("tailwind-variants").ClassValue;
|
|
85
|
-
ol?: import("tailwind-variants").ClassValue;
|
|
86
86
|
time?: import("tailwind-variants").ClassValue;
|
|
87
|
+
ol?: import("tailwind-variants").ClassValue;
|
|
87
88
|
};
|
|
88
89
|
};
|
|
89
90
|
} | {}, {
|
|
@@ -94,8 +95,8 @@ export declare const group: import("tailwind-variants").TVReturnType<{
|
|
|
94
95
|
[key: string]: {
|
|
95
96
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
96
97
|
div?: import("tailwind-variants").ClassValue;
|
|
97
|
-
ol?: import("tailwind-variants").ClassValue;
|
|
98
98
|
time?: import("tailwind-variants").ClassValue;
|
|
99
|
+
ol?: import("tailwind-variants").ClassValue;
|
|
99
100
|
};
|
|
100
101
|
};
|
|
101
102
|
} | {}, {
|
|
@@ -108,7 +109,7 @@ export declare const group: import("tailwind-variants").TVReturnType<{
|
|
|
108
109
|
ol: string;
|
|
109
110
|
}, undefined, unknown, unknown, undefined>>;
|
|
110
111
|
export type GroupSlots = keyof typeof group.slots;
|
|
111
|
-
export type GroupTheme = Partial<Record<GroupSlots,
|
|
112
|
+
export type GroupTheme = Partial<Record<GroupSlots, ClassValue>>;
|
|
112
113
|
export declare const groupItem: import("tailwind-variants").TVReturnType<{
|
|
113
114
|
[key: string]: {
|
|
114
115
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
@@ -159,7 +160,7 @@ export declare const groupItem: import("tailwind-variants").TVReturnType<{
|
|
|
159
160
|
span: string;
|
|
160
161
|
}, undefined, unknown, unknown, undefined>>;
|
|
161
162
|
export type GroupItemSlots = keyof typeof groupItem.slots;
|
|
162
|
-
export type GroupItemTheme = Partial<Record<GroupItemSlots,
|
|
163
|
+
export type GroupItemTheme = Partial<Record<GroupItemSlots, ClassValue>>;
|
|
163
164
|
export type TimelineVariants = VariantProps<typeof timeline>;
|
|
164
165
|
export declare const timeline: import("tailwind-variants").TVReturnType<{
|
|
165
166
|
order: {
|
|
@@ -186,7 +187,7 @@ export declare const timeline: import("tailwind-variants").TVReturnType<{
|
|
|
186
187
|
default: string;
|
|
187
188
|
};
|
|
188
189
|
}, undefined, undefined, unknown, unknown, undefined>>;
|
|
189
|
-
export type TimelineTheme =
|
|
190
|
+
export type TimelineTheme = ClassValue;
|
|
190
191
|
export declare const timelineItem: import("tailwind-variants").TVReturnType<{
|
|
191
192
|
order: {
|
|
192
193
|
default: {
|
|
@@ -306,4 +307,4 @@ export declare const timelineItem: import("tailwind-variants").TVReturnType<{
|
|
|
306
307
|
svg: string;
|
|
307
308
|
}, undefined, unknown, unknown, undefined>>;
|
|
308
309
|
export type TimelineItemSlots = keyof typeof timelineItem.slots;
|
|
309
|
-
export type TimelineItemTheme = Partial<Record<TimelineItemSlots,
|
|
310
|
+
export type TimelineItemTheme = Partial<Record<TimelineItemSlots, ClassValue>>;
|
package/dist/toast/Toast.svelte
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { toast, type ToastTheme } from ".";
|
|
5
5
|
import type { ToastProps } from "../types";
|
|
6
6
|
import { fly } from "svelte/transition";
|
|
7
|
-
import
|
|
7
|
+
import clsx from "clsx";
|
|
8
8
|
import { getTheme } from "../theme/themeUtils";
|
|
9
9
|
|
|
10
10
|
let { children, icon, toastStatus = $bindable(true), dismissable = true, color = "primary", position, iconClass, contentClass, align = true, params, transition = fly, class: className, onclose, ...restProps }: ToastProps = $props();
|
|
@@ -20,19 +20,19 @@
|
|
|
20
20
|
</script>
|
|
21
21
|
|
|
22
22
|
{#if toastStatus}
|
|
23
|
-
<div role="alert" transition:transition={params as ParamsType} {...restProps} class={
|
|
23
|
+
<div role="alert" transition:transition={params as ParamsType} {...restProps} class={base({ class: clsx((theme as ToastTheme)?.base, className) })}>
|
|
24
24
|
{#if icon}
|
|
25
|
-
<div class={
|
|
25
|
+
<div class={iconVariants({ class: clsx((theme as ToastTheme)?.icon, iconClass) })}>
|
|
26
26
|
{@render icon()}
|
|
27
27
|
</div>
|
|
28
28
|
{/if}
|
|
29
29
|
|
|
30
|
-
<div class={
|
|
30
|
+
<div class={content({ class: clsx((theme as ToastTheme)?.content, contentClass) })}>
|
|
31
31
|
{@render children()}
|
|
32
32
|
</div>
|
|
33
33
|
|
|
34
34
|
{#if dismissable}
|
|
35
|
-
<CloseButton class={
|
|
35
|
+
<CloseButton class={close({ class: clsx((theme as ToastTheme)?.close) })} ariaLabel="Remove toast" {color} onclick={handleClose} />
|
|
36
36
|
{/if}
|
|
37
37
|
</div>
|
|
38
38
|
{/if}
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
@component
|
|
42
42
|
[Go to docs](https://flowbite-svelte.com/)
|
|
43
43
|
## Type
|
|
44
|
-
[ToastProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
44
|
+
[ToastProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1808)
|
|
45
45
|
## Props
|
|
46
46
|
@prop children
|
|
47
47
|
@prop icon
|
|
@@ -2,7 +2,7 @@ import type { ToastProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ToastProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ToastProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1808)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop icon
|
package/dist/toast/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 ToastVaraints = VariantProps<typeof toast>;
|
|
3
4
|
export declare const toast: import("tailwind-variants").TVReturnType<{
|
|
4
5
|
position: {
|
|
@@ -320,4 +321,4 @@ export declare const toast: import("tailwind-variants").TVReturnType<{
|
|
|
320
321
|
close: string;
|
|
321
322
|
}, undefined, unknown, unknown, undefined>>;
|
|
322
323
|
export type ToastSlots = keyof typeof toast.slots;
|
|
323
|
-
export type ToastTheme = Partial<Record<ToastSlots,
|
|
324
|
+
export type ToastTheme = Partial<Record<ToastSlots, ClassValue>>;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
import { toolbar, type ToolbarTheme } from "./";
|
|
5
5
|
import type { ToolbarProps } from "../types";
|
|
6
6
|
import clsx from "clsx";
|
|
7
|
-
import { cn } from "..";
|
|
8
7
|
import { getTheme } from "../theme/themeUtils";
|
|
9
8
|
|
|
10
9
|
let { children, end, color, embedded, class: className, ...restProps }: ToolbarProps = $props();
|
|
@@ -29,8 +28,8 @@
|
|
|
29
28
|
// let divClass: string = twMerge('flex justify-between items-center', !embedded && 'py-2 px-3', className);
|
|
30
29
|
</script>
|
|
31
30
|
|
|
32
|
-
<div {...restProps} class={
|
|
33
|
-
<div class={
|
|
31
|
+
<div {...restProps} class={base({ class: clsx((theme as ToolbarTheme)?.base, className) })}>
|
|
32
|
+
<div class={content({ class: clsx((theme as ToolbarTheme)?.content) })}>
|
|
34
33
|
{@render children?.()}
|
|
35
34
|
</div>
|
|
36
35
|
{#if end}
|
|
@@ -42,7 +41,7 @@
|
|
|
42
41
|
@component
|
|
43
42
|
[Go to docs](https://flowbite-svelte.com/)
|
|
44
43
|
## Type
|
|
45
|
-
[ToolbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
44
|
+
[ToolbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1118)
|
|
46
45
|
## Props
|
|
47
46
|
@prop children
|
|
48
47
|
@prop end
|
|
@@ -2,7 +2,7 @@ import type { ToolbarProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ToolbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ToolbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1118)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop end
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import { toolbarButton } from ".";
|
|
4
4
|
import type { ToolbarButtonProps } from "../types";
|
|
5
5
|
import clsx from "clsx";
|
|
6
|
-
import { cn } from "..";
|
|
7
6
|
import { getTheme } from "../theme/themeUtils";
|
|
8
7
|
|
|
9
8
|
const background = getContext("background");
|
|
@@ -11,23 +10,23 @@
|
|
|
11
10
|
|
|
12
11
|
const theme = getTheme("toolbarButton");
|
|
13
12
|
|
|
14
|
-
const
|
|
13
|
+
const buttonCls = $derived(
|
|
15
14
|
toolbarButton({
|
|
16
15
|
color,
|
|
17
16
|
size,
|
|
18
17
|
background: !!background,
|
|
19
|
-
class: clsx(className)
|
|
18
|
+
class: clsx(theme, className)
|
|
20
19
|
})
|
|
21
20
|
);
|
|
22
21
|
</script>
|
|
23
22
|
|
|
24
23
|
{#if restProps.href === undefined}
|
|
25
|
-
<button type="button" {...restProps} class={
|
|
24
|
+
<button type="button" {...restProps} class={buttonCls} aria-label={ariaLabel ?? name}>
|
|
26
25
|
{#if name}<span class="sr-only">{name}</span>{/if}
|
|
27
26
|
{@render children?.()}
|
|
28
27
|
</button>
|
|
29
28
|
{:else}
|
|
30
|
-
<a {...restProps} class={
|
|
29
|
+
<a {...restProps} class={buttonCls} aria-label={ariaLabel ?? name}>
|
|
31
30
|
{#if name}<span class="sr-only">{name}</span>{/if}
|
|
32
31
|
{@render children?.()}
|
|
33
32
|
</a>
|
|
@@ -37,7 +36,7 @@
|
|
|
37
36
|
@component
|
|
38
37
|
[Go to docs](https://flowbite-svelte.com/)
|
|
39
38
|
## Type
|
|
40
|
-
[ToolbarButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
39
|
+
[ToolbarButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1124)
|
|
41
40
|
## Props
|
|
42
41
|
@prop children
|
|
43
42
|
@prop color
|
|
@@ -2,7 +2,7 @@ import type { ToolbarButtonProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ToolbarButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ToolbarButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1124)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop color
|
|
@@ -4,20 +4,19 @@
|
|
|
4
4
|
import { toolbarGroup } from ".";
|
|
5
5
|
import type { ToolbarGroupProps } from "../types";
|
|
6
6
|
import clsx from "clsx";
|
|
7
|
-
import { cn } from "..";
|
|
8
7
|
import { getTheme } from "../theme/themeUtils";
|
|
9
8
|
|
|
10
9
|
let { children, spacing, padding, position = "middle", class: className, ...restProps }: ToolbarGroupProps = $props();
|
|
11
10
|
|
|
12
11
|
const theme = getTheme("toolbarGroup");
|
|
13
12
|
|
|
14
|
-
const
|
|
13
|
+
const groupCls = $derived(toolbarGroup({ spacing, padding, position, class: clsx(theme, className) }));
|
|
15
14
|
|
|
16
15
|
const options: Writable<boolean> = getContext("toolbar");
|
|
17
16
|
if (options) $options = true;
|
|
18
17
|
</script>
|
|
19
18
|
|
|
20
|
-
<div {...restProps} class={
|
|
19
|
+
<div {...restProps} class={groupCls}>
|
|
21
20
|
{@render children?.()}
|
|
22
21
|
</div>
|
|
23
22
|
|
|
@@ -25,7 +24,7 @@
|
|
|
25
24
|
@component
|
|
26
25
|
[Go to docs](https://flowbite-svelte.com/)
|
|
27
26
|
## Type
|
|
28
|
-
[ToolbarGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
27
|
+
[ToolbarGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1122)
|
|
29
28
|
## Props
|
|
30
29
|
@prop children
|
|
31
30
|
@prop spacing
|
|
@@ -2,7 +2,7 @@ import type { ToolbarGroupProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ToolbarGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ToolbarGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1122)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop spacing
|
package/dist/toolbar/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 ToolbarVariants = VariantProps<typeof toolbar>;
|
|
3
4
|
export declare const toolbar: import("tailwind-variants").TVReturnType<{
|
|
4
5
|
embedded: {
|
|
@@ -197,7 +198,7 @@ export declare const toolbar: import("tailwind-variants").TVReturnType<{
|
|
|
197
198
|
content: string;
|
|
198
199
|
}, undefined, unknown, unknown, undefined>>;
|
|
199
200
|
export type ToolbarSlots = keyof typeof toolbar.slots;
|
|
200
|
-
export type ToolbarTheme = Partial<Record<ToolbarSlots,
|
|
201
|
+
export type ToolbarTheme = Partial<Record<ToolbarSlots, ClassValue>>;
|
|
201
202
|
export type ToolbarGroupVariants = VariantProps<typeof toolbarGroup>;
|
|
202
203
|
export declare const toolbarGroup: import("tailwind-variants").TVReturnType<{
|
|
203
204
|
spacing: {
|
|
@@ -245,7 +246,7 @@ export declare const toolbarGroup: import("tailwind-variants").TVReturnType<{
|
|
|
245
246
|
last: string;
|
|
246
247
|
};
|
|
247
248
|
}, undefined, "flex items-center", unknown, unknown, undefined>>;
|
|
248
|
-
export type ToolbarGroupTheme =
|
|
249
|
+
export type ToolbarGroupTheme = ClassValue;
|
|
249
250
|
export type ToolbarButtonVariants = VariantProps<typeof toolbarButton>;
|
|
250
251
|
export declare const toolbarButton: import("tailwind-variants").TVReturnType<{
|
|
251
252
|
color: {
|
|
@@ -320,4 +321,4 @@ export declare const toolbarButton: import("tailwind-variants").TVReturnType<{
|
|
|
320
321
|
false: string;
|
|
321
322
|
};
|
|
322
323
|
}, undefined, "focus:outline-hidden whitespace-normal", unknown, unknown, undefined>>;
|
|
323
|
-
export type ToolbarButtonTheme =
|
|
324
|
+
export type ToolbarButtonTheme = ClassValue;
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import Popper from "../utils/Popper.svelte";
|
|
4
4
|
import { tooltip, type TooltipTheme } from "./theme";
|
|
5
5
|
import type { TooltipProps, TriggeredToggleEvent } from "..";
|
|
6
|
-
import { cn } from "..";
|
|
7
6
|
import { getTheme } from "../theme/themeUtils";
|
|
8
7
|
|
|
9
8
|
let { type = "dark", color = undefined, trigger = "hover", arrow = true, children, placement = "top", onbeforetoggle: _onbeforetoggle, class: className, isOpen = $bindable(false), ...restProps }: TooltipProps = $props();
|
|
@@ -22,7 +21,7 @@
|
|
|
22
21
|
}
|
|
23
22
|
</script>
|
|
24
23
|
|
|
25
|
-
<Popper {...restProps} bind:isOpen {placement} {trigger} {arrow} class={
|
|
24
|
+
<Popper {...restProps} bind:isOpen {placement} {trigger} {arrow} class={base({ class: clsx((theme as TooltipTheme)?.base, className) })} {onbeforetoggle}>
|
|
26
25
|
<div class="pointer-events-none">{@render children()}</div>
|
|
27
26
|
</Popper>
|
|
28
27
|
|
|
@@ -30,7 +29,7 @@
|
|
|
30
29
|
@component
|
|
31
30
|
[Go to docs](https://flowbite-svelte.com/)
|
|
32
31
|
## Type
|
|
33
|
-
[TooltipProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
32
|
+
[TooltipProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1825)
|
|
34
33
|
## Props
|
|
35
34
|
@prop type = "dark"
|
|
36
35
|
@prop color = undefined
|
|
@@ -2,7 +2,7 @@ import type { TooltipProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [TooltipProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [TooltipProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1825)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop type = "dark"
|
|
8
8
|
* @prop color = undefined
|
package/dist/tooltip/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 TooltipVariants = VariantProps<typeof tooltip>;
|
|
3
4
|
export declare const tooltip: import("tailwind-variants").TVReturnType<{
|
|
4
5
|
type: {
|
|
@@ -233,4 +234,4 @@ export declare const tooltip: import("tailwind-variants").TVReturnType<{
|
|
|
233
234
|
arrowBase: string;
|
|
234
235
|
}, undefined, unknown, unknown, undefined>>;
|
|
235
236
|
export type TooltipSlots = keyof typeof tooltip.slots;
|
|
236
|
-
export type TooltipTheme = Partial<Record<TooltipSlots,
|
|
237
|
+
export type TooltipTheme = Partial<Record<TooltipSlots, ClassValue>>;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { fade, fly, scale, slide } from "svelte/transition";
|
|
2
2
|
import type { Coords, Middleware, Placement, Strategy } from "@floating-ui/dom";
|
|
3
|
-
import type { ClassValue } from "clsx";
|
|
4
3
|
import type { Component, Snippet } from "svelte";
|
|
5
|
-
import type { HTMLAnchorAttributes, HTMLAttributes, HTMLBlockquoteAttributes, HTMLButtonAttributes, HTMLDialogAttributes, HTMLImgAttributes, HTMLInputAttributes, HTMLLabelAttributes, HTMLLiAttributes, HTMLOlAttributes, HTMLSelectAttributes, HTMLSourceAttributes, HTMLTableAttributes, HTMLTdAttributes, HTMLTextareaAttributes, HTMLThAttributes, HTMLTrackAttributes, HTMLVideoAttributes, SVGAttributes, FullAutoFill } from "svelte/elements";
|
|
4
|
+
import type { ClassValue, HTMLAnchorAttributes, HTMLAttributes, HTMLBlockquoteAttributes, HTMLButtonAttributes, HTMLDialogAttributes, HTMLImgAttributes, HTMLInputAttributes, HTMLLabelAttributes, HTMLLiAttributes, HTMLOlAttributes, HTMLSelectAttributes, HTMLSourceAttributes, HTMLTableAttributes, HTMLTdAttributes, HTMLTextareaAttributes, HTMLThAttributes, HTMLTrackAttributes, HTMLVideoAttributes, SVGAttributes, FullAutoFill } from "svelte/elements";
|
|
6
5
|
import { type Writable } from "svelte/store";
|
|
7
6
|
import type { BlurParams, EasingFunction, FadeParams, FlyParams, ScaleParams, SlideParams, TransitionConfig } from "svelte/transition";
|
|
8
7
|
import { type VariantProps } from "tailwind-variants";
|
|
@@ -58,6 +57,9 @@ import type { ListVariants } from "./typography/list/theme";
|
|
|
58
57
|
import type { ParagraphVariants } from "./typography/paragraph/theme";
|
|
59
58
|
import type { SpanVariants } from "./typography/span/theme";
|
|
60
59
|
import type { ClipboardVariants } from "./clipboard/theme";
|
|
60
|
+
import type { AccordionItemVariants, AccordionVariants } from "./accordion/theme";
|
|
61
|
+
import type { AvatarVariants } from "./avatar/theme";
|
|
62
|
+
import type { BottomNavHeaderItemVariants, BottomNavHeaderVariants, BottomNavItemVariants, BottomNavVariants } from "./bottom-navigation/theme";
|
|
61
63
|
export declare const xs = "xs";
|
|
62
64
|
export declare const sm = "sm";
|
|
63
65
|
export declare const md = "md";
|
|
@@ -136,23 +138,18 @@ export interface AccordionCtxType {
|
|
|
136
138
|
classInactive?: string;
|
|
137
139
|
multiple?: boolean;
|
|
138
140
|
}
|
|
139
|
-
export interface AccordionProps extends HTMLAttributes<HTMLDivElement> {
|
|
141
|
+
export interface AccordionProps extends AccordionVariants, Omit<HTMLAttributes<HTMLDivElement>, "color"> {
|
|
140
142
|
children: Snippet;
|
|
141
|
-
flush?: boolean;
|
|
142
143
|
multiple?: boolean;
|
|
143
144
|
activeClass?: string;
|
|
144
145
|
inactiveClass?: string;
|
|
145
|
-
defaultClass?: string;
|
|
146
|
-
classActive?: string;
|
|
147
|
-
classInactive?: string;
|
|
148
146
|
transitionType?: TransitionFunc | "none";
|
|
149
147
|
}
|
|
150
|
-
export interface AccordionItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
148
|
+
export interface AccordionItemProps extends AccordionItemVariants, HTMLAttributes<HTMLDivElement> {
|
|
151
149
|
children: Snippet;
|
|
152
150
|
header?: Snippet;
|
|
153
151
|
arrowup?: Snippet;
|
|
154
152
|
arrowdown?: Snippet;
|
|
155
|
-
open?: boolean;
|
|
156
153
|
activeClass?: string;
|
|
157
154
|
inactiveClass?: string;
|
|
158
155
|
transitionType?: TransitionFunc | "none";
|
|
@@ -169,19 +166,15 @@ export interface AlertProps extends Omit<AlertVariants, "icon">, Omit<HTMLAttrib
|
|
|
169
166
|
params?: ParamsType;
|
|
170
167
|
onclick?: () => void;
|
|
171
168
|
}
|
|
172
|
-
export interface AvatarProps extends HTMLAttributes<HTMLDivElement> {
|
|
169
|
+
export interface AvatarProps extends AvatarVariants, HTMLAttributes<HTMLDivElement> {
|
|
173
170
|
children?: Snippet;
|
|
174
171
|
indicator?: Snippet;
|
|
175
172
|
href?: HTMLAnchorAttributes["href"];
|
|
176
173
|
target?: HTMLAnchorAttributes["target"];
|
|
177
174
|
src?: string;
|
|
178
|
-
cornerStyle?: "rounded" | "circular";
|
|
179
|
-
stacked?: boolean;
|
|
180
175
|
dot?: object;
|
|
181
176
|
alt?: string;
|
|
182
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
183
177
|
onclick?: () => void;
|
|
184
|
-
border?: boolean;
|
|
185
178
|
}
|
|
186
179
|
export interface BadgeProps extends BadgeVariants, Omit<HTMLAttributes<HTMLDivElement>, "color"> {
|
|
187
180
|
children: Snippet;
|
|
@@ -196,63 +189,42 @@ export interface BadgeProps extends BadgeVariants, Omit<HTMLAttributes<HTMLDivEl
|
|
|
196
189
|
onclose?: (ev: Event) => void;
|
|
197
190
|
aClass?: ClassValue;
|
|
198
191
|
}
|
|
199
|
-
export interface BannerProps extends BannerVariants, HTMLAttributes<HTMLDivElement> {
|
|
192
|
+
export interface BannerProps extends BannerVariants, Omit<HTMLAttributes<HTMLDivElement>, "color"> {
|
|
200
193
|
header?: Snippet;
|
|
201
194
|
open?: boolean;
|
|
202
195
|
dismissable?: boolean;
|
|
203
|
-
color?: BannerVariants["color"];
|
|
204
196
|
innerClass?: ClassValue;
|
|
205
197
|
transition?: TransitionFunc;
|
|
206
198
|
params?: object;
|
|
207
199
|
closeClass?: ClassValue;
|
|
208
200
|
}
|
|
209
|
-
export type BottomNavVariantType = "border" | "application" | "group" | "default" | "pagination" | "card" | "meeting" | "video" | undefined;
|
|
210
|
-
export type PositionType = "static" | "fixed" | "absolute" | "relative" | "sticky" | undefined;
|
|
211
201
|
export type BottomNavContextType = {
|
|
212
202
|
activeClass?: string | null;
|
|
203
|
+
activeUrl?: string;
|
|
204
|
+
navType?: BottomNavVariants["navType"];
|
|
213
205
|
};
|
|
214
|
-
export
|
|
215
|
-
export interface BottomNavProps extends HTMLAttributes<HTMLDivElement> {
|
|
206
|
+
export interface BottomNavProps extends BottomNavVariants, HTMLAttributes<HTMLDivElement> {
|
|
216
207
|
children: Snippet;
|
|
217
208
|
header?: Snippet;
|
|
218
209
|
activeUrl?: string;
|
|
219
|
-
position?: PositionType;
|
|
220
|
-
navType?: BottomNavVariantType;
|
|
221
210
|
outerClass?: ClassValue;
|
|
222
211
|
innerClass?: ClassValue;
|
|
223
212
|
activeClass?: ClassValue;
|
|
224
213
|
}
|
|
225
|
-
export
|
|
214
|
+
export type BottomNavItemProps = BottomNavItemVariants & AnchorButtonAttributes & {
|
|
226
215
|
children: Snippet;
|
|
227
216
|
btnName?: string;
|
|
228
|
-
appBtnPosition?: AppBtnPositionType;
|
|
229
217
|
activeClass?: ClassValue;
|
|
230
218
|
btnClass?: ClassValue;
|
|
231
219
|
spanClass?: ClassValue;
|
|
232
220
|
active?: boolean;
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
tabindex?: number;
|
|
236
|
-
title?: string;
|
|
237
|
-
role?: string;
|
|
238
|
-
"aria-label"?: string;
|
|
239
|
-
"data-testid"?: string;
|
|
240
|
-
href?: string;
|
|
241
|
-
target?: string;
|
|
242
|
-
rel?: string;
|
|
243
|
-
download?: string | boolean;
|
|
244
|
-
type?: "button" | "submit" | "reset";
|
|
245
|
-
disabled?: boolean;
|
|
246
|
-
name?: string;
|
|
247
|
-
value?: string | number | string[];
|
|
248
|
-
[key: string]: any;
|
|
249
|
-
}
|
|
250
|
-
export interface BottomNavHeaderProps {
|
|
221
|
+
};
|
|
222
|
+
export interface BottomNavHeaderProps extends BottomNavHeaderVariants, HTMLAttributes<HTMLDivElement> {
|
|
251
223
|
children: Snippet;
|
|
252
224
|
outerClass?: ClassValue;
|
|
253
225
|
innerClass?: ClassValue;
|
|
254
226
|
}
|
|
255
|
-
export interface BottomNavHeaderItemProps extends HTMLButtonAttributes {
|
|
227
|
+
export interface BottomNavHeaderItemProps extends BottomNavHeaderItemVariants, HTMLButtonAttributes {
|
|
256
228
|
itemName: string;
|
|
257
229
|
active?: boolean;
|
|
258
230
|
}
|
|
@@ -604,6 +576,9 @@ export interface CheckboxButtonProps extends Omit<HTMLInputAttributes, "size"> {
|
|
|
604
576
|
export interface DropzoneProps extends HTMLInputAttributes {
|
|
605
577
|
children: Snippet;
|
|
606
578
|
files?: FileList | null;
|
|
579
|
+
onDrop?: HTMLLabelAttributes["ondrop"];
|
|
580
|
+
onDragOver?: HTMLLabelAttributes["ondragover"];
|
|
581
|
+
onChange?: HTMLInputAttributes["onchange"];
|
|
607
582
|
}
|
|
608
583
|
export interface FileuploadProps extends Omit<HTMLInputAttributes, "size"> {
|
|
609
584
|
files?: FileList | null;
|
|
@@ -1505,7 +1480,7 @@ export interface TabCtxType {
|
|
|
1505
1480
|
panelId: string;
|
|
1506
1481
|
}
|
|
1507
1482
|
export interface ThemeConfig {
|
|
1508
|
-
[key: string]:
|
|
1483
|
+
[key: string]: ClassValue | ThemeConfig;
|
|
1509
1484
|
}
|
|
1510
1485
|
export type TimelineVariants = VariantProps<typeof timeline>;
|
|
1511
1486
|
export interface ActivityType {
|
package/dist/types.js
CHANGED