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,16 +1,17 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { footer } from ".";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { type FooterProps } from "..";
|
|
4
5
|
import { getTheme } from "../theme/themeUtils";
|
|
5
6
|
|
|
6
7
|
let { children, footerType = "default", class: className, ...restProps }: FooterProps = $props();
|
|
7
8
|
|
|
8
9
|
const theme = getTheme("footer");
|
|
9
10
|
|
|
10
|
-
const footerCls = $derived(footer({ footerType }));
|
|
11
|
+
const footerCls = $derived(footer({ footerType, class: clsx(theme, className) }));
|
|
11
12
|
</script>
|
|
12
13
|
|
|
13
|
-
<footer {...restProps} class={
|
|
14
|
+
<footer {...restProps} class={footerCls}>
|
|
14
15
|
{@render children()}
|
|
15
16
|
</footer>
|
|
16
17
|
|
|
@@ -18,7 +19,7 @@
|
|
|
18
19
|
@component
|
|
19
20
|
[Go to docs](https://flowbite-svelte.com/)
|
|
20
21
|
## Type
|
|
21
|
-
[FooterProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
22
|
+
[FooterProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L609)
|
|
22
23
|
## Props
|
|
23
24
|
@prop children
|
|
24
25
|
@prop footerType = "default"
|
|
@@ -2,7 +2,7 @@ import { type FooterProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [FooterProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [FooterProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L609)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop footerType = "default"
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { footerBrand, type FooterBrandTheme } from ".";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { type FooterBrandProps } from "..";
|
|
4
5
|
import { getTheme } from "../theme/themeUtils";
|
|
5
6
|
|
|
6
7
|
let { children, aClass, spanClass, imgClass, href, src, alt, name, ...restProps }: FooterBrandProps = $props();
|
|
@@ -11,26 +12,26 @@
|
|
|
11
12
|
</script>
|
|
12
13
|
|
|
13
14
|
{#if href}
|
|
14
|
-
<a {...restProps} {href} class={
|
|
15
|
+
<a {...restProps} {href} class={base({ class: clsx((theme as FooterBrandTheme)?.base, aClass) })}>
|
|
15
16
|
{#if src}
|
|
16
|
-
<img {src} class={
|
|
17
|
+
<img {src} class={img({ class: clsx((theme as FooterBrandTheme)?.img, imgClass) })} {alt} />
|
|
17
18
|
{/if}
|
|
18
19
|
{#if name}
|
|
19
|
-
<span class={
|
|
20
|
+
<span class={span({ class: clsx((theme as FooterBrandTheme)?.span, spanClass) })}>{name}</span>
|
|
20
21
|
{/if}
|
|
21
22
|
{#if children}
|
|
22
23
|
{@render children()}
|
|
23
24
|
{/if}
|
|
24
25
|
</a>
|
|
25
26
|
{:else}
|
|
26
|
-
<img {src} class={
|
|
27
|
+
<img {src} class={img({ class: clsx(imgClass) })} {alt} />
|
|
27
28
|
{/if}
|
|
28
29
|
|
|
29
30
|
<!--
|
|
30
31
|
@component
|
|
31
32
|
[Go to docs](https://flowbite-svelte.com/)
|
|
32
33
|
## Type
|
|
33
|
-
[FooterBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
34
|
+
[FooterBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L614)
|
|
34
35
|
## Props
|
|
35
36
|
@prop children
|
|
36
37
|
@prop aClass
|
|
@@ -2,7 +2,7 @@ import { type FooterBrandProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [FooterBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [FooterBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L614)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop aClass
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { footerCopyright, type FooterCopyrightTheme } from ".";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { type FooterCopyrightProps } from "..";
|
|
4
5
|
import { getTheme } from "../theme/themeUtils";
|
|
5
6
|
|
|
6
7
|
let { spanClass, aClass, href, by, copyrightMessage = "All Rights Reserved.", year, bySpanClass, ...restProps }: FooterCopyrightProps = $props();
|
|
@@ -12,14 +13,14 @@
|
|
|
12
13
|
const { base, link, bySpan } = footerCopyright();
|
|
13
14
|
</script>
|
|
14
15
|
|
|
15
|
-
<span class={
|
|
16
|
+
<span class={base({ class: clsx((theme as FooterCopyrightTheme)?.base, spanClass) })}>
|
|
16
17
|
© {year}
|
|
17
18
|
{#if href}
|
|
18
|
-
<a {...restProps} {href} class={
|
|
19
|
+
<a {...restProps} {href} class={link({ class: clsx((theme as FooterCopyrightTheme)?.link, aClass) })}>
|
|
19
20
|
{by}
|
|
20
21
|
</a>
|
|
21
22
|
{:else}
|
|
22
|
-
<span class={
|
|
23
|
+
<span class={bySpan({ class: clsx((theme as FooterCopyrightTheme)?.bySpan, bySpanClass) })}>{by}</span>
|
|
23
24
|
{/if}
|
|
24
25
|
{copyrightMessage}
|
|
25
26
|
</span>
|
|
@@ -28,7 +29,7 @@
|
|
|
28
29
|
@component
|
|
29
30
|
[Go to docs](https://flowbite-svelte.com/)
|
|
30
31
|
## Type
|
|
31
|
-
[FooterCopyrightProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
32
|
+
[FooterCopyrightProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L625)
|
|
32
33
|
## Props
|
|
33
34
|
@prop spanClass
|
|
34
35
|
@prop aClass
|
|
@@ -2,7 +2,7 @@ import { type FooterCopyrightProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [FooterCopyrightProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [FooterCopyrightProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L625)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop spanClass
|
|
8
8
|
* @prop aClass
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { footerIcon } from ".";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { type FooterIconProps } from "..";
|
|
4
5
|
import { getTheme } from "../theme/themeUtils";
|
|
5
6
|
|
|
6
7
|
let { children, href, ariaLabel, class: className, ...restProps }: FooterIconProps = $props();
|
|
@@ -9,7 +10,7 @@
|
|
|
9
10
|
</script>
|
|
10
11
|
|
|
11
12
|
{#if href}
|
|
12
|
-
<a {...restProps} {href} aria-label={ariaLabel} class={
|
|
13
|
+
<a {...restProps} {href} aria-label={ariaLabel} class={footerIcon({ class: clsx(theme, className) })}>
|
|
13
14
|
{@render children()}
|
|
14
15
|
</a>
|
|
15
16
|
{:else}
|
|
@@ -20,7 +21,7 @@
|
|
|
20
21
|
@component
|
|
21
22
|
[Go to docs](https://flowbite-svelte.com/)
|
|
22
23
|
## Type
|
|
23
|
-
[FooterIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
24
|
+
[FooterIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L635)
|
|
24
25
|
## Props
|
|
25
26
|
@prop children
|
|
26
27
|
@prop href
|
|
@@ -2,7 +2,7 @@ import { type FooterIconProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [FooterIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [FooterIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L635)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop href
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { footerLink, type FooterLinkTheme } from ".";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { type FooterLinkProps } from "..";
|
|
4
5
|
import { getTheme } from "../theme/themeUtils";
|
|
5
6
|
|
|
6
7
|
let { children, liClass, aClass, href, ...restProps }: FooterLinkProps = $props();
|
|
@@ -10,8 +11,8 @@
|
|
|
10
11
|
const { base, link } = footerLink();
|
|
11
12
|
</script>
|
|
12
13
|
|
|
13
|
-
<li class={
|
|
14
|
-
<a {...restProps} {href} class={
|
|
14
|
+
<li class={base({ class: clsx((theme as FooterLinkTheme)?.base, liClass) })}>
|
|
15
|
+
<a {...restProps} {href} class={link({ class: clsx((theme as FooterLinkTheme)?.link, aClass) })}>
|
|
15
16
|
{@render children()}
|
|
16
17
|
</a>
|
|
17
18
|
</li>
|
|
@@ -20,7 +21,7 @@
|
|
|
20
21
|
@component
|
|
21
22
|
[Go to docs](https://flowbite-svelte.com/)
|
|
22
23
|
## Type
|
|
23
|
-
[FooterLinkProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
24
|
+
[FooterLinkProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L645)
|
|
24
25
|
## Props
|
|
25
26
|
@prop children
|
|
26
27
|
@prop liClass
|
|
@@ -2,7 +2,7 @@ import { type FooterLinkProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [FooterLinkProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [FooterLinkProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L645)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop liClass
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { footerLinkGroup } from ".";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { type FooterLinkGroupProps } from "..";
|
|
4
5
|
import { getTheme } from "../theme/themeUtils";
|
|
5
6
|
|
|
6
7
|
let { class: className, children, ...restProps }: FooterLinkGroupProps = $props();
|
|
@@ -8,7 +9,7 @@
|
|
|
8
9
|
const theme = getTheme("footerLinkGroup");
|
|
9
10
|
</script>
|
|
10
11
|
|
|
11
|
-
<ul {...restProps} class={
|
|
12
|
+
<ul {...restProps} class={footerLinkGroup({ class: clsx(theme, className) })}>
|
|
12
13
|
{@render children()}
|
|
13
14
|
</ul>
|
|
14
15
|
|
|
@@ -16,7 +17,7 @@
|
|
|
16
17
|
@component
|
|
17
18
|
[Go to docs](https://flowbite-svelte.com/)
|
|
18
19
|
## Type
|
|
19
|
-
[FooterLinkGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
20
|
+
[FooterLinkGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L641)
|
|
20
21
|
## Props
|
|
21
22
|
@prop class: className
|
|
22
23
|
@prop children
|
|
@@ -2,7 +2,7 @@ import { type FooterLinkGroupProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [FooterLinkGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [FooterLinkGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L641)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop class: className
|
|
8
8
|
* @prop children
|
package/dist/footer/theme.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ClassValue } from "svelte/elements";
|
|
1
2
|
export declare const footer: import("tailwind-variants").TVReturnType<{
|
|
2
3
|
footerType: {
|
|
3
4
|
default: string;
|
|
@@ -23,7 +24,7 @@ export declare const footer: import("tailwind-variants").TVReturnType<{
|
|
|
23
24
|
sticky: string;
|
|
24
25
|
};
|
|
25
26
|
}, undefined, "bg-white dark:bg-gray-800", unknown, unknown, undefined>>;
|
|
26
|
-
export type FooterTheme =
|
|
27
|
+
export type FooterTheme = ClassValue;
|
|
27
28
|
export declare const footerBrand: import("tailwind-variants").TVReturnType<{
|
|
28
29
|
[key: string]: {
|
|
29
30
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
@@ -62,7 +63,7 @@ export declare const footerBrand: import("tailwind-variants").TVReturnType<{
|
|
|
62
63
|
img: string;
|
|
63
64
|
}, undefined, unknown, unknown, undefined>>;
|
|
64
65
|
export type FooterBrandSlots = keyof typeof footerBrand.slots;
|
|
65
|
-
export type FooterBrandTheme = Partial<Record<FooterBrandSlots,
|
|
66
|
+
export type FooterBrandTheme = Partial<Record<FooterBrandSlots, ClassValue>>;
|
|
66
67
|
export declare const footerCopyright: import("tailwind-variants").TVReturnType<{
|
|
67
68
|
[key: string]: {
|
|
68
69
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
@@ -101,11 +102,11 @@ export declare const footerCopyright: import("tailwind-variants").TVReturnType<{
|
|
|
101
102
|
bySpan: string;
|
|
102
103
|
}, undefined, unknown, unknown, undefined>>;
|
|
103
104
|
export type FooterCopyrightSlots = keyof typeof footerCopyright.slots;
|
|
104
|
-
export type FooterCopyrightTheme = Partial<Record<FooterCopyrightSlots,
|
|
105
|
+
export type FooterCopyrightTheme = Partial<Record<FooterCopyrightSlots, ClassValue>>;
|
|
105
106
|
export declare const footerIcon: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "text-gray-500 hover:text-gray-900 dark:hover:text-white", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "text-gray-500 hover:text-gray-900 dark:hover:text-white", unknown, unknown, undefined>>;
|
|
106
|
-
export type FooterIconTheme =
|
|
107
|
+
export type FooterIconTheme = ClassValue;
|
|
107
108
|
export declare const footerLinkGroup: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "text-gray-600 dark:text-gray-400", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "text-gray-600 dark:text-gray-400", unknown, unknown, undefined>>;
|
|
108
|
-
export type FooterLinkGroupTheme =
|
|
109
|
+
export type FooterLinkGroupTheme = ClassValue;
|
|
109
110
|
export declare const footerLink: import("tailwind-variants").TVReturnType<{
|
|
110
111
|
[key: string]: {
|
|
111
112
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
@@ -138,4 +139,4 @@ export declare const footerLink: import("tailwind-variants").TVReturnType<{
|
|
|
138
139
|
link: string;
|
|
139
140
|
}, undefined, unknown, unknown, undefined>>;
|
|
140
141
|
export type FooterLinkSlots = keyof typeof footerLink.slots;
|
|
141
|
-
export type FooterLinkTheme = Partial<Record<FooterLinkSlots,
|
|
142
|
+
export type FooterLinkTheme = Partial<Record<FooterLinkSlots, ClassValue>>;
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
import CheckIcon from "./CheckIcon.svelte";
|
|
4
4
|
import { buttonToggle, type ButtonToggleTheme } from ".";
|
|
5
5
|
import type { ButtonToggleVariants } from "./theme";
|
|
6
|
-
import
|
|
6
|
+
import clsx from "clsx";
|
|
7
|
+
import { type ButtonToggleProps, type ButtonToggleContext } from "../..";
|
|
7
8
|
import { getTheme } from "../../theme/themeUtils";
|
|
8
9
|
|
|
9
10
|
let { value, selected = false, children, iconSlot, color, class: className, iconClass, txtClass, contentClass, ...restProps }: ButtonToggleProps = $props();
|
|
@@ -16,7 +17,7 @@
|
|
|
16
17
|
const size = getContext<ButtonToggleVariants["size"]>("buttonToggleSize");
|
|
17
18
|
const roundedSize = getContext<ButtonToggleVariants["roundedSize"]>("buttonToggleRounded");
|
|
18
19
|
const ctxIconClass = getContext<string | undefined>("ctxIconClass");
|
|
19
|
-
const actualIconClass = ctxIconClass ||
|
|
20
|
+
const actualIconClass = ctxIconClass || clsx(iconClass);
|
|
20
21
|
const ctxBtnClass = getContext<string | undefined>("ctxBtnClass");
|
|
21
22
|
|
|
22
23
|
function handleClick() {
|
|
@@ -28,16 +29,16 @@
|
|
|
28
29
|
});
|
|
29
30
|
</script>
|
|
30
31
|
|
|
31
|
-
<button type="button" class={
|
|
32
|
-
<div class={
|
|
32
|
+
<button type="button" class={buttonToggle.button({ selected, color: actualColor, size, roundedSize, class: clsx((theme as ButtonToggleTheme)?.button, ctxBtnClass, className) })} data-selected={selected} onclick={handleClick} role={multiSelect ? "checkbox" : "radio"} aria-checked={selected} {...restProps}>
|
|
33
|
+
<div class={buttonToggle.content({ class: clsx((theme as ButtonToggleTheme)?.content, contentClass) })}>
|
|
33
34
|
{#if selected}
|
|
34
35
|
{#if iconSlot}
|
|
35
36
|
{@render iconSlot()}
|
|
36
37
|
{:else}
|
|
37
|
-
<CheckIcon class={
|
|
38
|
+
<CheckIcon class={clsx("absolute left-0 flex-shrink-0 text-green-600", actualIconClass)} />
|
|
38
39
|
{/if}
|
|
39
40
|
{/if}
|
|
40
|
-
<span class={
|
|
41
|
+
<span class={buttonToggle.text({ selected, class: clsx((theme as ButtonToggleTheme)?.text, txtClass) })}>
|
|
41
42
|
{@render children()}
|
|
42
43
|
</span>
|
|
43
44
|
</div>
|
|
@@ -47,7 +48,7 @@
|
|
|
47
48
|
@component
|
|
48
49
|
[Go to docs](https://flowbite-svelte.com/)
|
|
49
50
|
## Type
|
|
50
|
-
[ButtonToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
51
|
+
[ButtonToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L351)
|
|
51
52
|
## Props
|
|
52
53
|
@prop value
|
|
53
54
|
@prop selected = false
|
|
@@ -2,7 +2,7 @@ import { type ButtonToggleProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ButtonToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ButtonToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L351)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop value
|
|
8
8
|
* @prop selected = false
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { setContext } from "svelte";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { type ButtonToggleGroupProps, buttonToggleGroup } from "../..";
|
|
4
5
|
import { getTheme } from "../../theme/themeUtils";
|
|
5
6
|
|
|
6
7
|
let { multiSelect = false, name = "toggle-group", value = multiSelect ? [] : null, color, size = "md", roundedSize = "md", onSelect = (val: any) => {}, children, ctxIconClass, ctxBtnClass, class: className, ...restProps }: ButtonToggleGroupProps = $props();
|
|
7
8
|
|
|
8
9
|
const theme = getTheme("buttonToggleGroup");
|
|
9
10
|
|
|
10
|
-
const base = $derived(buttonToggleGroup({ roundedSize }));
|
|
11
|
+
const base = $derived(buttonToggleGroup({ roundedSize, class: clsx(theme, className) }));
|
|
11
12
|
type SelectedValue = string | null | string[];
|
|
12
13
|
|
|
13
14
|
let selectedValues = $state<SelectedValue>(multiSelect ? [] : null);
|
|
@@ -59,12 +60,12 @@
|
|
|
59
60
|
setContext("buttonToggleColor", color);
|
|
60
61
|
setContext("buttonToggleSize", size);
|
|
61
62
|
setContext("buttonToggleRounded", roundedSize);
|
|
62
|
-
setContext("ctxIconClass",
|
|
63
|
-
setContext("ctxBtnClass",
|
|
63
|
+
setContext("ctxIconClass", clsx(ctxIconClass));
|
|
64
|
+
setContext("ctxBtnClass", clsx(ctxBtnClass));
|
|
64
65
|
</script>
|
|
65
66
|
|
|
66
67
|
<div class="inline">
|
|
67
|
-
<div class={
|
|
68
|
+
<div class={base} role={multiSelect ? "group" : "radiogroup"} aria-label={name} {...restProps}>
|
|
68
69
|
{@render children()}
|
|
69
70
|
</div>
|
|
70
71
|
</div>
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { type CheckIconProps
|
|
2
|
+
import { type CheckIconProps } from "../..";
|
|
3
|
+
import clsx from "clsx";
|
|
3
4
|
let { class: className, ...restProps }: CheckIconProps = $props();
|
|
4
5
|
</script>
|
|
5
6
|
|
|
6
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class={
|
|
7
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class={clsx(className)} {...restProps}>
|
|
7
8
|
<polyline points="20 6 9 17 4 12"></polyline>
|
|
8
9
|
</svg>
|
|
9
10
|
|
|
@@ -11,7 +12,7 @@
|
|
|
11
12
|
@component
|
|
12
13
|
[Go to docs](https://flowbite-svelte.com/)
|
|
13
14
|
## Type
|
|
14
|
-
[CheckIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
15
|
+
[CheckIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L367)
|
|
15
16
|
## Props
|
|
16
17
|
@prop class: className
|
|
17
18
|
@prop ...restProps
|
|
@@ -2,7 +2,7 @@ import { type CheckIconProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [CheckIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [CheckIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L367)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop class: className
|
|
8
8
|
* @prop ...restProps
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
+
import type { ClassValue } from "svelte/elements";
|
|
2
3
|
export declare const buttonToggleGroup: import("tailwind-variants").TVReturnType<{
|
|
3
4
|
roundedSize: {
|
|
4
5
|
sm: string;
|
|
@@ -24,7 +25,7 @@ export declare const buttonToggleGroup: import("tailwind-variants").TVReturnType
|
|
|
24
25
|
full: string;
|
|
25
26
|
};
|
|
26
27
|
}, undefined, "inline-flex border border-gray-300 overflow-hidden", unknown, unknown, undefined>>;
|
|
27
|
-
export type ButtonToggleGroupTheme =
|
|
28
|
+
export type ButtonToggleGroupTheme = ClassValue;
|
|
28
29
|
export declare const buttonToggle: {
|
|
29
30
|
button: import("tailwind-variants").TVReturnType<{
|
|
30
31
|
selected: {
|
|
@@ -169,9 +170,9 @@ export declare const buttonToggle: {
|
|
|
169
170
|
}, undefined, "transition-all duration-200 ml-0", unknown, unknown, undefined>>;
|
|
170
171
|
};
|
|
171
172
|
export type ButtonToggleTheme = {
|
|
172
|
-
button?:
|
|
173
|
-
content?:
|
|
174
|
-
text?:
|
|
173
|
+
button?: ClassValue;
|
|
174
|
+
content?: ClassValue;
|
|
175
|
+
text?: ClassValue;
|
|
175
176
|
};
|
|
176
177
|
export type ButtonToggleVariants = VariantProps<typeof buttonToggle.button>;
|
|
177
178
|
export type ButtonToggleContentVariants = VariantProps<typeof buttonToggle.content>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { checkbox, type CheckboxTheme } from ".";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { type CheckboxProps, type CheckboxItem, Label } from "../..";
|
|
4
5
|
import { getTheme } from "../../theme/themeUtils";
|
|
5
6
|
|
|
6
7
|
let { children, color = "primary", custom, inline, tinted, rounded, group = $bindable([]), choices = [], checked = $bindable(false), indeterminate, class: className, divClass, disabled = false, value, labelProps = {}, ...restProps }: CheckboxProps = $props();
|
|
@@ -23,17 +24,17 @@
|
|
|
23
24
|
|
|
24
25
|
{#if choices.length > 0}
|
|
25
26
|
{#each choices as choice, i}
|
|
26
|
-
<div class={
|
|
27
|
+
<div class={divStyle({ class: clsx((theme as CheckboxTheme)?.div, divClass) })}>
|
|
27
28
|
<Label show={true} {...labelProps}>
|
|
28
|
-
<input type="checkbox" value={choice.value} checked={choice.checked ?? false} {disabled} bind:group {...restProps} class={
|
|
29
|
+
<input type="checkbox" value={choice.value} checked={choice.checked ?? false} {disabled} bind:group {...restProps} class={base({ class: clsx((theme as CheckboxTheme)?.base, className) })} />
|
|
29
30
|
{renderLabel(choice)}
|
|
30
31
|
</Label>
|
|
31
32
|
</div>
|
|
32
33
|
{/each}
|
|
33
34
|
{:else}
|
|
34
|
-
<div class={
|
|
35
|
+
<div class={divStyle({ class: clsx((theme as CheckboxTheme)?.div, divClass) })}>
|
|
35
36
|
<Label show={true} {...labelProps}>
|
|
36
|
-
<input type="checkbox" {value} bind:checked {indeterminate} {disabled} {...restProps} class={
|
|
37
|
+
<input type="checkbox" {value} bind:checked {indeterminate} {disabled} {...restProps} class={base({ class: clsx((theme as CheckboxTheme)?.base, className) })} />
|
|
37
38
|
{#if children}
|
|
38
39
|
{@render children({ value, checked, disabled })}
|
|
39
40
|
{/if}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import Button from "../../buttons/Button.svelte";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { type CheckboxButtonProps } from "../..";
|
|
4
5
|
import { checkboxbutton } from "./theme";
|
|
5
6
|
import { getTheme } from "../../theme/themeUtils";
|
|
6
7
|
|
|
@@ -45,7 +46,7 @@
|
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
48
|
|
|
48
|
-
let buttonClass: string = $derived(
|
|
49
|
+
let buttonClass: string = $derived(checkboxbutton({ inline, checked, class: clsx(theme, className) }));
|
|
49
50
|
</script>
|
|
50
51
|
|
|
51
52
|
<Button tag="label" {checked} {pill} {outline} {size} {color} {shadow} class={buttonClass}>
|
|
@@ -57,7 +58,7 @@
|
|
|
57
58
|
@component
|
|
58
59
|
[Go to docs](https://flowbite-svelte.com/)
|
|
59
60
|
## Type
|
|
60
|
-
[CheckboxButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
61
|
+
[CheckboxButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L683)
|
|
61
62
|
## Props
|
|
62
63
|
@prop children
|
|
63
64
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import { type CheckboxButtonProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [CheckboxButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [CheckboxButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L683)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
+
import type { ClassValue } from "svelte/elements";
|
|
2
3
|
export type CheckboxVariants = VariantProps<typeof checkbox>;
|
|
3
4
|
export declare const checkbox: import("tailwind-variants").TVReturnType<{
|
|
4
5
|
color: {
|
|
@@ -290,7 +291,7 @@ export declare const checkbox: import("tailwind-variants").TVReturnType<{
|
|
|
290
291
|
div: string;
|
|
291
292
|
}, undefined, unknown, unknown, undefined>>;
|
|
292
293
|
export type CheckboxSlots = keyof typeof checkbox.slots;
|
|
293
|
-
export type CheckboxTheme = Partial<Record<CheckboxSlots,
|
|
294
|
+
export type CheckboxTheme = Partial<Record<CheckboxSlots, ClassValue>>;
|
|
294
295
|
export declare const checkboxbutton: import("tailwind-variants").TVReturnType<{
|
|
295
296
|
inline: {
|
|
296
297
|
true: string;
|
|
@@ -316,4 +317,4 @@ export declare const checkboxbutton: import("tailwind-variants").TVReturnType<{
|
|
|
316
317
|
true: string;
|
|
317
318
|
};
|
|
318
319
|
}, undefined, "", unknown, unknown, undefined>>;
|
|
319
|
-
export type CheckboxButtonTheme =
|
|
320
|
+
export type CheckboxButtonTheme = ClassValue;
|
|
@@ -1,72 +1,64 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { DragEventHandler, ChangeEventHandler } from "svelte/elements";
|
|
3
3
|
import { dropzone } from ".";
|
|
4
|
-
import
|
|
4
|
+
import clsx from "clsx";
|
|
5
|
+
import { type DropzoneProps } from "../..";
|
|
5
6
|
import { getTheme } from "../../theme/themeUtils";
|
|
6
7
|
|
|
7
8
|
type HTMLInputElementWithFiles = HTMLInputElement & { files: FileList | null };
|
|
8
9
|
|
|
9
|
-
let { children, files = $bindable<FileList | null>(), class: className, ...restProps }: DropzoneProps = $props();
|
|
10
|
+
let { children, files = $bindable<FileList | null>(), class: className, onDrop, onDragOver, onChange, ...restProps }: DropzoneProps = $props();
|
|
10
11
|
|
|
11
12
|
const theme = getTheme("dropzone");
|
|
12
13
|
|
|
13
|
-
let
|
|
14
|
+
let inputElement: HTMLInputElement;
|
|
14
15
|
|
|
15
|
-
function
|
|
16
|
-
if ([" ", "Enter"].includes(ev.key)) {
|
|
17
|
-
ev.preventDefault();
|
|
18
|
-
input.click();
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
function onClick(event: MouseEvent) {
|
|
16
|
+
const handleDrop: DragEventHandler<HTMLLabelElement> = function (this: Window, event) {
|
|
23
17
|
event.preventDefault();
|
|
24
|
-
input.click();
|
|
25
|
-
}
|
|
26
18
|
|
|
27
|
-
const onDrop: DragEventHandler<HTMLButtonElement> = function (this: Window, event) {
|
|
28
|
-
event.preventDefault();
|
|
29
|
-
|
|
30
|
-
// When files are dropped, update the files binding
|
|
31
19
|
if (event.dataTransfer?.files && event.dataTransfer.files.length > 0) {
|
|
32
20
|
files = event.dataTransfer.files;
|
|
21
|
+
if (inputElement) {
|
|
22
|
+
inputElement.files = event.dataTransfer.files;
|
|
23
|
+
}
|
|
33
24
|
}
|
|
34
25
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
ondrop.call(this, event);
|
|
26
|
+
if (onDrop) {
|
|
27
|
+
onDrop.call(this, event);
|
|
38
28
|
}
|
|
39
29
|
};
|
|
40
30
|
|
|
41
|
-
const
|
|
31
|
+
const handleDragOver: DragEventHandler<HTMLLabelElement> = function (this: Window, event) {
|
|
42
32
|
event.preventDefault();
|
|
43
|
-
if (
|
|
44
|
-
|
|
33
|
+
if (onDragOver) {
|
|
34
|
+
onDragOver.call(this, event);
|
|
45
35
|
}
|
|
46
36
|
};
|
|
47
37
|
|
|
48
|
-
const
|
|
49
|
-
if (
|
|
50
|
-
|
|
38
|
+
const handleChange: ChangeEventHandler<HTMLInputElementWithFiles> = function (this: Window, event) {
|
|
39
|
+
if (onChange) {
|
|
40
|
+
onChange.call(this, event);
|
|
51
41
|
}
|
|
52
42
|
};
|
|
53
43
|
</script>
|
|
54
44
|
|
|
55
|
-
<
|
|
45
|
+
<label class={dropzone({ class: clsx(theme, className) })} ondrop={handleDrop} ondragover={handleDragOver}>
|
|
56
46
|
{@render children()}
|
|
57
|
-
|
|
58
|
-
<
|
|
59
|
-
<input {...restProps} bind:files bind:this={input} onchange={onChange} type="file" />
|
|
47
|
+
|
|
48
|
+
<input {...restProps} bind:files bind:this={inputElement} onchange={handleChange} type="file" class="hidden" />
|
|
60
49
|
</label>
|
|
61
50
|
|
|
62
51
|
<!--
|
|
63
52
|
@component
|
|
64
53
|
[Go to docs](https://flowbite-svelte.com/)
|
|
65
54
|
## Type
|
|
66
|
-
[DropzoneProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
55
|
+
[DropzoneProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L696)
|
|
67
56
|
## Props
|
|
68
57
|
@prop children
|
|
69
58
|
@prop files = $bindable<FileList | null>()
|
|
70
59
|
@prop class: className
|
|
60
|
+
@prop onDrop
|
|
61
|
+
@prop onDragOver
|
|
62
|
+
@prop onChange
|
|
71
63
|
@prop ...restProps
|
|
72
64
|
-->
|