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
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { getContext } from "svelte";
|
|
3
3
|
import { gradientButton, type GradientButtonTheme } from ".";
|
|
4
|
-
import
|
|
4
|
+
import clsx from "clsx";
|
|
5
|
+
import { type GradientButtonProps, type SizeType, Button } from "..";
|
|
5
6
|
import { getTheme } from "../theme/themeUtils";
|
|
6
7
|
|
|
7
8
|
const group: SizeType = getContext("group");
|
|
@@ -14,13 +15,13 @@
|
|
|
14
15
|
</script>
|
|
15
16
|
|
|
16
17
|
{#if outline}
|
|
17
|
-
<div class={
|
|
18
|
-
<Button {...restProps} class={
|
|
18
|
+
<div class={base({ class: clsx((theme as GradientButtonTheme)?.base, className) })}>
|
|
19
|
+
<Button {...restProps} class={outlineWrapper({ class: clsx((theme as GradientButtonTheme)?.outlineWrapper, btnClass) })} {disabled} {href} {size}>
|
|
19
20
|
{@render children?.()}
|
|
20
21
|
</Button>
|
|
21
22
|
</div>
|
|
22
23
|
{:else}
|
|
23
|
-
<Button {...restProps} class={
|
|
24
|
+
<Button {...restProps} class={base({ class: clsx((theme as GradientButtonTheme)?.base, className) })} {disabled} {href} {size}>
|
|
24
25
|
{@render children?.()}
|
|
25
26
|
</Button>
|
|
26
27
|
{/if}
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
@component
|
|
30
31
|
[Go to docs](https://flowbite-svelte.com/)
|
|
31
32
|
## Type
|
|
32
|
-
[GradientButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
33
|
+
[GradientButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L330)
|
|
33
34
|
## Props
|
|
34
35
|
@prop children
|
|
35
36
|
@prop outline
|
|
@@ -2,7 +2,7 @@ import { type GradientButtonProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [GradientButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [GradientButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L330)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop outline
|
package/dist/buttons/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 ButtonVariants = VariantProps<typeof button>;
|
|
3
4
|
export declare const button: import("tailwind-variants").TVReturnType<{
|
|
4
5
|
color: {
|
|
@@ -703,6 +704,6 @@ export declare const gradientButton: import("tailwind-variants").TVReturnType<{
|
|
|
703
704
|
outlineWrapper: string;
|
|
704
705
|
}, undefined, unknown, unknown, undefined>>;
|
|
705
706
|
export type ButtonSlots = keyof typeof button.slots;
|
|
706
|
-
export type ButtonTheme = Partial<Record<ButtonSlots,
|
|
707
|
+
export type ButtonTheme = Partial<Record<ButtonSlots, ClassValue>>;
|
|
707
708
|
export type GradientButtonSlots = keyof typeof gradientButton.slots;
|
|
708
|
-
export type GradientButtonTheme = Partial<Record<GradientButtonSlots,
|
|
709
|
+
export type GradientButtonTheme = Partial<Record<GradientButtonSlots, ClassValue>>;
|
package/dist/card/Card.svelte
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { type CardProps
|
|
2
|
+
import { type CardProps } from "..";
|
|
3
3
|
import { getTheme } from "../theme/themeUtils";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { card, type CardTheme } from ".";
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
{#snippet childSlot()}
|
|
24
24
|
{#if img}
|
|
25
|
-
<img class={
|
|
25
|
+
<img class={image({ class: clsx((theme as CardTheme)?.image, imgClass) })} src={img} alt={img} />
|
|
26
26
|
{@render children()}
|
|
27
27
|
{:else}
|
|
28
28
|
{@render children()}
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
{/snippet}
|
|
31
31
|
|
|
32
32
|
{#if restProps.href === undefined}
|
|
33
|
-
<div {...restProps} class={
|
|
33
|
+
<div {...restProps} class={base({ class: clsx((theme as CardTheme)?.base, className) })}>
|
|
34
34
|
{@render childSlot()}
|
|
35
35
|
</div>
|
|
36
36
|
{:else}
|
|
37
|
-
<a {...restProps} class={
|
|
37
|
+
<a {...restProps} class={base({ class: clsx((theme as CardTheme)?.base, className) })}>
|
|
38
38
|
{@render childSlot()}
|
|
39
39
|
</a>
|
|
40
40
|
{/if}
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
@component
|
|
44
44
|
[Go to docs](https://flowbite-svelte.com/)
|
|
45
45
|
## Type
|
|
46
|
-
[CardProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
46
|
+
[CardProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L370)
|
|
47
47
|
## Props
|
|
48
48
|
@prop children
|
|
49
49
|
@prop color = "gray"
|
|
@@ -2,7 +2,7 @@ import { type CardProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [CardProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [CardProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L370)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop color = "gray"
|
package/dist/card/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 CardVariants = VariantProps<typeof card>;
|
|
3
4
|
export declare const card: import("tailwind-variants").TVReturnType<{
|
|
4
5
|
size: {
|
|
@@ -392,4 +393,4 @@ export declare const card: import("tailwind-variants").TVReturnType<{
|
|
|
392
393
|
image: string;
|
|
393
394
|
}, undefined, unknown, unknown, undefined>>;
|
|
394
395
|
export type CardSlots = keyof typeof card.slots;
|
|
395
|
-
export type CardTheme = Partial<Record<CardSlots,
|
|
396
|
+
export type CardTheme = Partial<Record<CardSlots, ClassValue>>;
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
import { writable } from "svelte/store";
|
|
4
4
|
import { canChangeSlide } from "./CarouselSlide";
|
|
5
5
|
import { carousel } from "./theme";
|
|
6
|
-
import
|
|
6
|
+
import clsx from "clsx";
|
|
7
|
+
import { type CarouselProps, type State, Slide } from "..";
|
|
7
8
|
import { getTheme } from "../theme/themeUtils";
|
|
8
9
|
|
|
9
10
|
const SLIDE_DURATION_RATIO = 0.25;
|
|
@@ -168,12 +169,12 @@
|
|
|
168
169
|
|
|
169
170
|
<!-- The move listeners go here, so things keep working if the touch strays out of the element. -->
|
|
170
171
|
<svelte:document onmousemove={onDragMove} onmouseup={onDragStop} ontouchmove={onDragMove} ontouchend={onDragStop} />
|
|
171
|
-
<div bind:this={carouselDiv} class={
|
|
172
|
-
<div {...restProps} class={
|
|
172
|
+
<div bind:this={carouselDiv} class={clsx("relative", divClass)} onmousedown={onDragStart} ontouchstart={onDragStart} onmousemove={onDragMove} onmouseup={onDragStop} ontouchmove={onDragMove} ontouchend={onDragStop} role="button" aria-label={ariaLabel} tabindex="0">
|
|
173
|
+
<div {...restProps} class={carousel({ class: clsx(activeDragGesture === undefined ? "transition-transform" : "", theme, className) })} {@attach loop}>
|
|
173
174
|
{#if slide}
|
|
174
175
|
{@render slide({ index, Slide })}
|
|
175
176
|
{:else}
|
|
176
|
-
<Slide image={images[index]} class={
|
|
177
|
+
<Slide image={images[index]} class={clsx(imgClass)} {transition} />
|
|
177
178
|
{/if}
|
|
178
179
|
</div>
|
|
179
180
|
{@render children?.(index)}
|
|
@@ -183,7 +184,7 @@
|
|
|
183
184
|
@component
|
|
184
185
|
[Go to docs](https://flowbite-svelte.com/)
|
|
185
186
|
## Type
|
|
186
|
-
[CarouselProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
187
|
+
[CarouselProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L388)
|
|
187
188
|
## Props
|
|
188
189
|
@prop children
|
|
189
190
|
@prop slide
|
|
@@ -2,7 +2,7 @@ import { type CarouselProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [CarouselProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [CarouselProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L388)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop slide
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import { getContext } from "svelte";
|
|
3
3
|
import type { Writable } from "svelte/store";
|
|
4
4
|
import { carouselIndicators, type CarouselIndicatorsTheme } from "./theme";
|
|
5
|
-
import
|
|
5
|
+
import clsx from "clsx";
|
|
6
|
+
import { Indicator, type IndicatorsProps, type State } from "..";
|
|
6
7
|
import { getTheme } from "../theme/themeUtils";
|
|
7
8
|
|
|
8
9
|
let { children, activeClass, inactiveClass, position = "bottom", class: className, ...restProps }: IndicatorsProps = $props();
|
|
@@ -26,14 +27,14 @@
|
|
|
26
27
|
}
|
|
27
28
|
</script>
|
|
28
29
|
|
|
29
|
-
<div class={
|
|
30
|
+
<div class={base({ class: clsx((theme as CarouselIndicatorsTheme)?.base, className) })} {...restProps}>
|
|
30
31
|
{#each $state.images as _, idx}
|
|
31
32
|
{@const selected = $state.index === idx}
|
|
32
33
|
<button onclick={() => goToIndex(idx)}>
|
|
33
34
|
{#if children}
|
|
34
35
|
{@render children({ selected, index: idx })}
|
|
35
36
|
{:else}
|
|
36
|
-
<Indicator class={
|
|
37
|
+
<Indicator class={indicator({ selected, class: clsx(selected ? activeClass : inactiveClass, (theme as CarouselIndicatorsTheme)?.indicator) })} />
|
|
37
38
|
{/if}
|
|
38
39
|
</button>
|
|
39
40
|
{/each}
|
|
@@ -43,7 +44,7 @@
|
|
|
43
44
|
@component
|
|
44
45
|
[Go to docs](https://flowbite-svelte.com/)
|
|
45
46
|
## Type
|
|
46
|
-
[IndicatorsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
47
|
+
[IndicatorsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L402)
|
|
47
48
|
## Props
|
|
48
49
|
@prop children
|
|
49
50
|
@prop activeClass
|
|
@@ -2,7 +2,7 @@ import { type IndicatorsProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [IndicatorsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [IndicatorsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L402)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop activeClass
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { controlButton } from "./theme";
|
|
3
|
-
import
|
|
2
|
+
import { controlButton, type ControlButtonTheme } from "./theme";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { type ControlButtonProps } from "..";
|
|
4
5
|
import { getTheme } from "../theme/themeUtils";
|
|
5
6
|
|
|
6
7
|
let { children, forward, name, class: className, spanClass, ...restProps }: ControlButtonProps = $props();
|
|
7
8
|
|
|
9
|
+
const { base, span } = controlButton({ forward });
|
|
10
|
+
|
|
8
11
|
const theme = getTheme("carouselButton");
|
|
9
12
|
</script>
|
|
10
13
|
|
|
11
|
-
<button type="button" class={
|
|
14
|
+
<button type="button" class={base({ class: clsx(className, theme) })} {...restProps}>
|
|
12
15
|
{#if children}
|
|
13
16
|
{@render children()}
|
|
14
17
|
{:else}
|
|
15
|
-
<span class={
|
|
18
|
+
<span class={span({ class: clsx(spanClass) })}>
|
|
16
19
|
{#if forward}
|
|
17
20
|
<svg aria-hidden="true" class="h-5 w-5 sm:h-6 sm:w-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
18
21
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
|
|
@@ -33,7 +36,7 @@
|
|
|
33
36
|
@component
|
|
34
37
|
[Go to docs](https://flowbite-svelte.com/)
|
|
35
38
|
## Type
|
|
36
|
-
[ControlButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
39
|
+
[ControlButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L409)
|
|
37
40
|
## Props
|
|
38
41
|
@prop children
|
|
39
42
|
@prop forward
|
|
@@ -2,7 +2,7 @@ import { type ControlButtonProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ControlButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ControlButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L409)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop forward
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import { getContext } from "svelte";
|
|
3
3
|
import type { Writable } from "svelte/store";
|
|
4
4
|
import { canChangeSlide } from "./CarouselSlide";
|
|
5
|
-
import
|
|
5
|
+
import clsx from "clsx";
|
|
6
|
+
import { type State, type ControlsProps, ControlButton } from "..";
|
|
6
7
|
import { getTheme } from "../theme/themeUtils";
|
|
7
8
|
|
|
8
9
|
let { children, class: className, ...restProps }: ControlsProps = $props();
|
|
@@ -45,15 +46,15 @@
|
|
|
45
46
|
{#if children}
|
|
46
47
|
{@render children(changeSlide)}
|
|
47
48
|
{:else}
|
|
48
|
-
<ControlButton name="Previous" forward={false} onclick={() => changeSlide(false)} class={
|
|
49
|
-
<ControlButton name="Next" forward={true} onclick={() => changeSlide(true)} class={
|
|
49
|
+
<ControlButton name="Previous" forward={false} onclick={() => changeSlide(false)} class={clsx(theme, className)} {...restProps} />
|
|
50
|
+
<ControlButton name="Next" forward={true} onclick={() => changeSlide(true)} class={clsx(theme, className)} {...restProps} />
|
|
50
51
|
{/if}
|
|
51
52
|
|
|
52
53
|
<!--
|
|
53
54
|
@component
|
|
54
55
|
[Go to docs](https://flowbite-svelte.com/)
|
|
55
56
|
## Type
|
|
56
|
-
[ControlsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
57
|
+
[ControlsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L415)
|
|
57
58
|
## Props
|
|
58
59
|
@prop children
|
|
59
60
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import { type ControlsProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ControlsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ControlsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L415)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
import type { Writable } from "svelte/store";
|
|
4
4
|
import { fly } from "svelte/transition";
|
|
5
5
|
import { slide } from "./theme";
|
|
6
|
-
import
|
|
6
|
+
import clsx from "clsx";
|
|
7
|
+
import { type SlideProps, type State } from "..";
|
|
7
8
|
import { getTheme } from "../theme/themeUtils";
|
|
8
9
|
|
|
9
10
|
const state = getContext<Writable<State>>("state");
|
|
@@ -28,7 +29,7 @@
|
|
|
28
29
|
duration: $state.slideDuration
|
|
29
30
|
});
|
|
30
31
|
|
|
31
|
-
let imgClass =
|
|
32
|
+
let imgClass = slide({ class: clsx(theme, className) });
|
|
32
33
|
</script>
|
|
33
34
|
|
|
34
35
|
{#if transition}
|
|
@@ -45,7 +46,7 @@
|
|
|
45
46
|
@component
|
|
46
47
|
[Go to docs](https://flowbite-svelte.com/)
|
|
47
48
|
## Type
|
|
48
|
-
[SlideProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
49
|
+
[SlideProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L432)
|
|
49
50
|
## Props
|
|
50
51
|
@prop image
|
|
51
52
|
@prop transition
|
|
@@ -2,7 +2,7 @@ import { type SlideProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SlideProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SlideProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L432)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop image
|
|
8
8
|
* @prop transition
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { thumbnail } from "./theme";
|
|
3
|
-
import { type ThumbnailProps
|
|
3
|
+
import { type ThumbnailProps } from "..";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { getTheme } from "../theme/themeUtils";
|
|
6
6
|
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
const theme = getTheme("thumbnail");
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
|
-
<img {...restProps} class={
|
|
12
|
+
<img {...restProps} class={thumbnail({ selected, class: clsx(theme, className) })} />
|
|
13
13
|
|
|
14
14
|
<!--
|
|
15
15
|
@component
|
|
16
16
|
[Go to docs](https://flowbite-svelte.com/)
|
|
17
17
|
## Type
|
|
18
|
-
[ThumbnailProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
18
|
+
[ThumbnailProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L419)
|
|
19
19
|
## Props
|
|
20
20
|
@prop selected
|
|
21
21
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import { type ThumbnailProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ThumbnailProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ThumbnailProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L419)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop selected
|
|
8
8
|
* @prop class: className
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { getContext } from "svelte";
|
|
3
3
|
import type { Writable } from "svelte/store";
|
|
4
4
|
import { thumbnails } from "./theme";
|
|
5
|
-
import { type ThumbnailsProps, type State, Thumbnail
|
|
5
|
+
import { type ThumbnailsProps, type State, Thumbnail } from "..";
|
|
6
6
|
import clsx from "clsx";
|
|
7
7
|
import { getTheme } from "../theme/themeUtils";
|
|
8
8
|
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
});
|
|
51
51
|
</script>
|
|
52
52
|
|
|
53
|
-
<div class={
|
|
53
|
+
<div class={thumbnails({ class: clsx(theme, className) })}>
|
|
54
54
|
{#each images as image, idx}
|
|
55
55
|
{@const selected = index === idx}
|
|
56
56
|
<button onclick={() => btnClick(idx)} aria-label={ariaLabel}>
|
|
57
57
|
{#if children}
|
|
58
|
-
{@render children({ image, selected, imgClass:
|
|
58
|
+
{@render children({ image, selected, imgClass: clsx(imgClass), Thumbnail })}
|
|
59
59
|
{:else}
|
|
60
60
|
<Thumbnail {...image} {selected} class={clsx(imgClass)} />
|
|
61
61
|
{/if}
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
@component
|
|
68
68
|
[Go to docs](https://flowbite-svelte.com/)
|
|
69
69
|
## Type
|
|
70
|
-
[ThumbnailsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
70
|
+
[ThumbnailsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L423)
|
|
71
71
|
## Props
|
|
72
72
|
@prop children
|
|
73
73
|
@prop images = []
|
|
@@ -2,7 +2,7 @@ import { type ThumbnailsProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ThumbnailsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ThumbnailsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L423)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop images = []
|
package/dist/carousel/theme.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
+
import type { ClassValue } from "svelte/elements";
|
|
2
3
|
export type CarouselVariants = VariantProps<typeof carousel>;
|
|
3
4
|
export declare const carousel: import("tailwind-variants").TVReturnType<{}, undefined, "grid overflow-hidden relative rounded-lg h-56 sm:h-64 xl:h-80 2xl:h-96", {}, undefined, import("tailwind-variants").TVReturnType<{}, undefined, "grid overflow-hidden relative rounded-lg h-56 sm:h-64 xl:h-80 2xl:h-96", unknown, unknown, undefined>>;
|
|
4
|
-
export type CarouselTheme =
|
|
5
|
+
export type CarouselTheme = ClassValue;
|
|
5
6
|
export declare const carouselIndicators: import("tailwind-variants").TVReturnType<{
|
|
6
7
|
selected: {
|
|
7
8
|
true: {
|
|
@@ -73,26 +74,36 @@ export declare const carouselIndicators: import("tailwind-variants").TVReturnTyp
|
|
|
73
74
|
indicator: string;
|
|
74
75
|
}, undefined, unknown, unknown, undefined>>;
|
|
75
76
|
export type CarouselIndicatorsSlots = keyof typeof carouselIndicators.slots;
|
|
76
|
-
export type CarouselIndicatorsTheme = Partial<Record<CarouselIndicatorsSlots,
|
|
77
|
+
export type CarouselIndicatorsTheme = Partial<Record<CarouselIndicatorsSlots, ClassValue>>;
|
|
77
78
|
export declare const controlButton: import("tailwind-variants").TVReturnType<{
|
|
78
79
|
forward: {
|
|
79
80
|
true: string;
|
|
80
81
|
false: string;
|
|
81
82
|
};
|
|
82
|
-
},
|
|
83
|
+
}, {
|
|
84
|
+
base: string;
|
|
85
|
+
span: string;
|
|
86
|
+
}, undefined, {
|
|
83
87
|
forward: {
|
|
84
88
|
true: string;
|
|
85
89
|
false: string;
|
|
86
90
|
};
|
|
87
|
-
},
|
|
91
|
+
}, {
|
|
92
|
+
base: string;
|
|
93
|
+
span: string;
|
|
94
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
88
95
|
forward: {
|
|
89
96
|
true: string;
|
|
90
97
|
false: string;
|
|
91
98
|
};
|
|
92
|
-
},
|
|
93
|
-
|
|
99
|
+
}, {
|
|
100
|
+
base: string;
|
|
101
|
+
span: string;
|
|
102
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
103
|
+
export type ControlButtonSlots = keyof typeof controlButton.slots;
|
|
104
|
+
export type ControlButtonTheme = Partial<Record<ControlButtonSlots, ClassValue>>;
|
|
94
105
|
export declare const thumbnails: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "flex flex-row justify-center bg-gray-100 w-full", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "flex flex-row justify-center bg-gray-100 w-full", unknown, unknown, undefined>>;
|
|
95
|
-
export type ThumbnailsTheme =
|
|
106
|
+
export type ThumbnailsTheme = ClassValue;
|
|
96
107
|
export declare const thumbnail: import("tailwind-variants").TVReturnType<{
|
|
97
108
|
selected: {
|
|
98
109
|
true: string;
|
|
@@ -109,6 +120,6 @@ export declare const thumbnail: import("tailwind-variants").TVReturnType<{
|
|
|
109
120
|
false: string;
|
|
110
121
|
};
|
|
111
122
|
}, undefined, "", unknown, unknown, undefined>>;
|
|
112
|
-
export type ThumbnailTheme =
|
|
123
|
+
export type ThumbnailTheme = ClassValue;
|
|
113
124
|
export declare const slide: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "absolute block w-full! h-full object-cover", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "absolute block w-full! h-full object-cover", unknown, unknown, undefined>>;
|
|
114
|
-
export type SlideTheme =
|
|
125
|
+
export type SlideTheme = ClassValue;
|
package/dist/carousel/theme.js
CHANGED
|
@@ -23,7 +23,10 @@ export const carouselIndicators = tv({
|
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
export const controlButton = tv({
|
|
26
|
-
|
|
26
|
+
slots: {
|
|
27
|
+
base: "flex absolute top-0 z-30 justify-center items-center px-4 h-full group focus:outline-hidden text-white dark:text-gray-300",
|
|
28
|
+
span: "inline-flex h-8 w-8 items-center justify-center rounded-full bg-white/30 group-hover:bg-white/50 group-focus:ring-4 group-focus:ring-white group-focus:outline-hidden sm:h-10 sm:w-10 dark:bg-gray-800/30 dark:group-hover:bg-gray-800/60 dark:group-focus:ring-gray-800/70"
|
|
29
|
+
},
|
|
27
30
|
variants: {
|
|
28
31
|
forward: {
|
|
29
32
|
true: "end-0",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import Button from "../buttons/Button.svelte";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import { type ClipboardProps
|
|
4
|
+
import { type ClipboardProps } from "..";
|
|
5
5
|
import { clipboard } from "./theme";
|
|
6
6
|
import type { MouseEventHandler } from "svelte/elements";
|
|
7
7
|
import { getTheme } from "../theme/themeUtils";
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
};
|
|
39
39
|
</script>
|
|
40
40
|
|
|
41
|
-
<Button onclick={copyToClipboard} {...restProps} class={
|
|
41
|
+
<Button onclick={copyToClipboard} {...restProps} class={clipboard({ embedded, class: clsx(theme, className) })}>
|
|
42
42
|
{@render children?.(success)}
|
|
43
43
|
</Button>
|
|
44
44
|
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
@component
|
|
47
47
|
[Go to docs](https://flowbite-svelte.com/)
|
|
48
48
|
## Type
|
|
49
|
-
[ClipboardProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
49
|
+
[ClipboardProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L444)
|
|
50
50
|
## Props
|
|
51
51
|
@prop children
|
|
52
52
|
@prop embedded = false
|
|
@@ -2,7 +2,7 @@ import { type ClipboardProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ClipboardProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ClipboardProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L444)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop embedded = false
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
+
import type { ClassValue } from "svelte/elements";
|
|
2
3
|
export type ClipboardVariants = VariantProps<typeof clipboard>;
|
|
3
4
|
export declare const clipboard: import("tailwind-variants").TVReturnType<{
|
|
4
5
|
embedded: {
|
|
@@ -16,4 +17,4 @@ export declare const clipboard: import("tailwind-variants").TVReturnType<{
|
|
|
16
17
|
false: string;
|
|
17
18
|
};
|
|
18
19
|
}, undefined, "gap-2", unknown, unknown, undefined>>;
|
|
19
|
-
export type ClipboardTheme =
|
|
20
|
+
export type ClipboardTheme = ClassValue;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { darkmode } from ".";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { type DarkmodeProps } from "..";
|
|
4
5
|
import { getTheme } from "../theme/themeUtils";
|
|
5
6
|
|
|
6
7
|
// const THEME_PREFERENCE_KEY = 'color-theme';
|
|
@@ -33,7 +34,7 @@
|
|
|
33
34
|
</script>
|
|
34
35
|
</svelte:head>
|
|
35
36
|
|
|
36
|
-
<button onclick={toggleTheme} aria-label={ariaLabel} type="button" {...restProps} class={
|
|
37
|
+
<button onclick={toggleTheme} aria-label={ariaLabel} type="button" {...restProps} class={darkmode({ class: clsx(theme, className) })} tabindex={0}>
|
|
37
38
|
<span class="hidden dark:block">
|
|
38
39
|
{#if lightIcon}
|
|
39
40
|
{@render lightIcon()}
|
|
@@ -63,7 +64,7 @@
|
|
|
63
64
|
@component
|
|
64
65
|
[Go to docs](https://flowbite-svelte.com/)
|
|
65
66
|
## Type
|
|
66
|
-
[DarkmodeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
67
|
+
[DarkmodeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L453)
|
|
67
68
|
## Props
|
|
68
69
|
@prop class: className
|
|
69
70
|
@prop lightIcon
|
|
@@ -2,7 +2,7 @@ import { type DarkmodeProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [DarkmodeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [DarkmodeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L453)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop class: className
|
|
8
8
|
* @prop lightIcon
|
package/dist/darkmode/theme.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import type { ClassValue } from "svelte/elements";
|
|
1
2
|
export declare const darkmode: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 focus:outline-hidden rounded-lg text-sm p-2.5", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 focus:outline-hidden rounded-lg text-sm p-2.5", unknown, unknown, undefined>>;
|
|
2
|
-
export type DarkModeTheme =
|
|
3
|
+
export type DarkModeTheme = ClassValue;
|