flowbite-svelte 2.0.0-next.2 → 2.0.0-next.4
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 +8 -4
- package/dist/accordion/Accordion.svelte.d.ts +2 -1
- package/dist/accordion/AccordionItem.svelte +20 -11
- package/dist/accordion/AccordionItem.svelte.d.ts +1 -1
- package/dist/accordion/theme.d.ts +4 -4
- package/dist/accordion/theme.js +1 -1
- package/dist/alert/Alert.svelte +24 -7
- package/dist/alert/Alert.svelte.d.ts +2 -2
- package/dist/alert/theme.d.ts +6 -66
- package/dist/alert/theme.js +6 -27
- package/dist/avatar/Avatar.svelte +4 -4
- package/dist/avatar/Avatar.svelte.d.ts +1 -1
- package/dist/badge/Badge.svelte +27 -9
- package/dist/badge/Badge.svelte.d.ts +2 -2
- package/dist/badge/theme.d.ts +4 -175
- package/dist/badge/theme.js +2 -164
- package/dist/banner/Banner.svelte +25 -8
- package/dist/banner/Banner.svelte.d.ts +2 -2
- package/dist/banner/theme.d.ts +4 -4
- package/dist/banner/theme.js +1 -1
- package/dist/bottom-navigation/BottomNav.svelte +6 -6
- package/dist/bottom-navigation/BottomNav.svelte.d.ts +1 -1
- package/dist/bottom-navigation/BottomNavHeader.svelte +5 -5
- package/dist/bottom-navigation/BottomNavHeader.svelte.d.ts +1 -1
- package/dist/bottom-navigation/BottomNavHeaderItem.svelte +3 -3
- package/dist/bottom-navigation/BottomNavHeaderItem.svelte.d.ts +1 -1
- package/dist/bottom-navigation/BottomNavItem.svelte +9 -20
- package/dist/bottom-navigation/BottomNavItem.svelte.d.ts +1 -4
- package/dist/bottom-navigation/theme.d.ts +10 -10
- package/dist/bottom-navigation/theme.js +2 -2
- package/dist/breadcrumb/Breadcrumb.svelte +6 -6
- package/dist/breadcrumb/Breadcrumb.svelte.d.ts +1 -1
- package/dist/breadcrumb/BreadcrumbItem.svelte +17 -8
- package/dist/breadcrumb/BreadcrumbItem.svelte.d.ts +1 -1
- package/dist/breadcrumb/theme.d.ts +7 -7
- package/dist/breadcrumb/theme.js +2 -2
- package/dist/button-group/ButtonGroup.svelte +3 -3
- package/dist/button-group/ButtonGroup.svelte.d.ts +1 -1
- package/dist/buttons/Button.svelte +5 -5
- package/dist/buttons/GradientButton.svelte +2 -2
- package/dist/buttons/GradientButton.svelte.d.ts +1 -1
- package/dist/buttons/theme.d.ts +21 -288
- package/dist/buttons/theme.js +31 -109
- package/dist/card/Card.svelte +5 -4
- package/dist/card/Card.svelte.d.ts +1 -1
- package/dist/card/theme.d.ts +9 -1
- package/dist/card/theme.js +8 -0
- package/dist/carousel/Carousel.svelte +5 -3
- package/dist/carousel/Carousel.svelte.d.ts +1 -1
- package/dist/carousel/CarouselIndicators.svelte +5 -5
- package/dist/carousel/CarouselIndicators.svelte.d.ts +1 -1
- package/dist/carousel/ControlButton.svelte +6 -6
- package/dist/carousel/ControlButton.svelte.d.ts +1 -1
- package/dist/carousel/Controls.svelte +2 -2
- package/dist/carousel/Controls.svelte.d.ts +1 -1
- package/dist/carousel/Slide.svelte +10 -6
- 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 +50 -1
- package/dist/carousel/theme.js +49 -0
- package/dist/clipboard/Clipboard.svelte +3 -3
- package/dist/clipboard/Clipboard.svelte.d.ts +1 -1
- package/dist/context.d.ts +1 -1
- package/dist/darkmode/DarkMode.svelte +11 -6
- package/dist/darkmode/DarkMode.svelte.d.ts +2 -1
- package/dist/darkmode/theme.d.ts +34 -1
- package/dist/darkmode/theme.js +4 -1
- package/dist/datepicker/Datepicker.svelte +32 -18
- package/dist/datepicker/theme.d.ts +16 -256
- package/dist/datepicker/theme.js +6 -27
- package/dist/device-mockups/Android.svelte +9 -9
- package/dist/device-mockups/Android.svelte.d.ts +1 -1
- package/dist/device-mockups/DefaultMockup.svelte +8 -8
- package/dist/device-mockups/DefaultMockup.svelte.d.ts +1 -1
- package/dist/device-mockups/Desktop.svelte +6 -6
- 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 +8 -8
- package/dist/device-mockups/Ios.svelte.d.ts +1 -1
- package/dist/device-mockups/Laptop.svelte +6 -6
- package/dist/device-mockups/Laptop.svelte.d.ts +1 -1
- package/dist/device-mockups/Smartwatch.svelte +8 -8
- package/dist/device-mockups/Smartwatch.svelte.d.ts +1 -1
- package/dist/device-mockups/Tablet.svelte +8 -8
- package/dist/device-mockups/Tablet.svelte.d.ts +1 -1
- package/dist/device-mockups/theme.d.ts +1 -1
- package/dist/dialog/Dialog.svelte +27 -4
- package/dist/dialog/Dialog.svelte.d.ts +2 -1
- package/dist/dialog/theme.d.ts +1 -1
- package/dist/drawer/Drawer.svelte +10 -3
- package/dist/drawer/Drawer.svelte.d.ts +1 -1
- package/dist/drawer/DrawerHandle.svelte +4 -4
- package/dist/drawer/DrawerHandle.svelte.d.ts +1 -1
- package/dist/drawer/Drawerhead.svelte +5 -5
- package/dist/drawer/Drawerhead.svelte.d.ts +1 -1
- package/dist/drawer/theme.d.ts +1 -1
- package/dist/drawer/theme.js +1 -1
- package/dist/dropdown/Dropdown.svelte +2 -2
- package/dist/dropdown/Dropdown.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownDivider.svelte +2 -2
- package/dist/dropdown/DropdownDivider.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownGroup.svelte +2 -2
- package/dist/dropdown/DropdownGroup.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownHeader.svelte +2 -2
- package/dist/dropdown/DropdownHeader.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownItem.svelte +2 -2
- package/dist/dropdown/DropdownItem.svelte.d.ts +1 -1
- package/dist/dropdown/theme.d.ts +1 -1
- package/dist/{forms → extend}/button-toggle/ButtonToggle.svelte +2 -2
- package/dist/{forms → extend}/button-toggle/ButtonToggle.svelte.d.ts +1 -1
- package/dist/{forms → extend}/button-toggle/ButtonToggleGroup.svelte +1 -1
- package/dist/{forms → extend}/button-toggle/CheckIcon.svelte +1 -1
- package/dist/{forms → extend}/button-toggle/CheckIcon.svelte.d.ts +1 -1
- package/dist/{forms → extend}/button-toggle/theme.d.ts +1 -1
- package/dist/{clipboard-manager → extend/clipboard-manager}/ClipboardManager.svelte +4 -4
- package/dist/{clipboard-manager → extend/clipboard-manager}/ClipboardManager.svelte.d.ts +1 -1
- package/dist/{clipboard-manager → extend/clipboard-manager}/theme.d.ts +1 -1
- package/dist/{command-palette → extend/command-palette}/CommandPalette.svelte +5 -5
- package/dist/{command-palette → extend/command-palette}/CommandPalette.svelte.d.ts +2 -2
- package/dist/{command-palette → extend/command-palette}/theme.d.ts +1 -1
- package/dist/{kanban → extend/kanban}/KanbanBoard.svelte +2 -2
- package/dist/{kanban → extend/kanban}/KanbanBoard.svelte.d.ts +1 -1
- package/dist/{kanban → extend/kanban}/KanbanCard.svelte +3 -3
- package/dist/{kanban → extend/kanban}/KanbanCard.svelte.d.ts +2 -2
- package/dist/{kanban → extend/kanban}/theme.d.ts +1 -1
- package/dist/{scroll-spy → extend/scroll-spy}/ScrollSpy.svelte +3 -3
- package/dist/{scroll-spy → extend/scroll-spy}/ScrollSpy.svelte.d.ts +2 -2
- package/dist/{scroll-spy → extend/scroll-spy}/theme.d.ts +1 -1
- package/dist/{split-pane → extend/split-pane}/Divider.svelte +4 -4
- package/dist/{split-pane → extend/split-pane}/Divider.svelte.d.ts +2 -2
- package/dist/{split-pane → extend/split-pane}/Pane.svelte +4 -4
- package/dist/{split-pane → extend/split-pane}/Pane.svelte.d.ts +2 -2
- package/dist/{split-pane → extend/split-pane}/SplitPane.svelte +4 -4
- package/dist/{split-pane → extend/split-pane}/SplitPane.svelte.d.ts +2 -2
- package/dist/{step-indicator → extend/step-indicator}/StepIndicator.svelte +3 -3
- package/dist/{step-indicator → extend/step-indicator}/StepIndicator.svelte.d.ts +2 -2
- package/dist/{step-indicator → extend/step-indicator}/theme.d.ts +1 -1
- package/dist/{forms → extend}/tags/Tags.svelte +14 -4
- package/dist/{forms → extend}/tags/Tags.svelte.d.ts +0 -1
- package/dist/{forms → extend}/tags/theme.d.ts +1 -1
- package/dist/{forms → extend}/tags/theme.js +2 -2
- package/dist/{tour → extend/tour}/Tour.svelte +2 -2
- package/dist/{tour → extend/tour}/Tour.svelte.d.ts +1 -1
- package/dist/{tour → extend/tour}/theme.d.ts +1 -1
- package/dist/{virtual-masonry → extend/virtual-masonry}/VirtualMasonry.svelte +2 -2
- package/dist/{virtual-masonry → extend/virtual-masonry}/VirtualMasonry.svelte.d.ts +1 -1
- package/dist/{virtual-masonry → extend/virtual-masonry}/theme.d.ts +1 -1
- package/dist/{virtuallist → extend/virtuallist}/VirtualList.svelte +2 -2
- package/dist/{virtuallist → extend/virtuallist}/VirtualList.svelte.d.ts +1 -1
- package/dist/{virtuallist → extend/virtuallist}/theme.d.ts +1 -1
- package/dist/footer/Footer.svelte +2 -2
- package/dist/footer/Footer.svelte.d.ts +1 -1
- package/dist/footer/FooterBrand.svelte +2 -2
- package/dist/footer/FooterBrand.svelte.d.ts +1 -1
- package/dist/footer/FooterCopyright.svelte +2 -2
- package/dist/footer/FooterCopyright.svelte.d.ts +1 -1
- package/dist/footer/FooterIcon.svelte +2 -2
- package/dist/footer/FooterIcon.svelte.d.ts +1 -1
- package/dist/footer/FooterLink.svelte +2 -2
- package/dist/footer/FooterLink.svelte.d.ts +1 -1
- package/dist/footer/FooterLinkGroup.svelte +2 -2
- package/dist/footer/FooterLinkGroup.svelte.d.ts +1 -1
- package/dist/footer/theme.d.ts +4 -4
- package/dist/forms/checkbox/Checkbox.svelte +1 -1
- package/dist/forms/checkbox/CheckboxButton.svelte +2 -2
- package/dist/forms/checkbox/CheckboxButton.svelte.d.ts +1 -1
- package/dist/forms/checkbox/theme.d.ts +1 -1
- package/dist/forms/dropzone/Dropzone.svelte +2 -2
- package/dist/forms/dropzone/Dropzone.svelte.d.ts +1 -1
- package/dist/forms/fileupload/Fileupload.svelte +15 -5
- package/dist/forms/fileupload/Fileupload.svelte.d.ts +2 -2
- package/dist/forms/fileupload/theme.d.ts +1 -1
- package/dist/forms/floating-label/FloatingLabelInput.svelte +15 -5
- package/dist/forms/floating-label/FloatingLabelInput.svelte.d.ts +2 -2
- package/dist/forms/floating-label/theme.d.ts +1 -1
- package/dist/forms/helper/Helper.svelte +2 -2
- package/dist/forms/helper/Helper.svelte.d.ts +1 -1
- package/dist/forms/helper/theme.d.ts +6 -0
- package/dist/forms/helper/theme.js +2 -0
- package/dist/forms/input-addon/InputAddon.svelte +2 -2
- package/dist/forms/input-addon/InputAddon.svelte.d.ts +1 -1
- package/dist/forms/input-addon/theme.d.ts +1 -1
- package/dist/forms/input-field/Input.svelte +13 -3
- package/dist/forms/input-field/theme.d.ts +1 -1
- package/dist/forms/label/Label.svelte +2 -2
- package/dist/forms/label/Label.svelte.d.ts +1 -1
- package/dist/forms/phoneinput/PhoneInput.svelte +26 -4
- package/dist/forms/phoneinput/PhoneInput.svelte.d.ts +17 -1
- package/dist/forms/phoneinput/theme.d.ts +1 -1
- package/dist/forms/radio/Radio.svelte +1 -1
- package/dist/forms/radio/RadioButton.svelte +1 -1
- package/dist/forms/radio/theme.d.ts +1 -28
- package/dist/forms/radio/theme.js +1 -10
- package/dist/forms/range/Range.svelte +3 -3
- package/dist/forms/range/Range.svelte.d.ts +1 -1
- package/dist/forms/search/Search.svelte +20 -10
- package/dist/forms/search/Search.svelte.d.ts +2 -2
- package/dist/forms/search/theme.d.ts +1 -1
- package/dist/forms/select/MultiSelect.svelte +14 -2
- package/dist/forms/select/Select.svelte +14 -3
- package/dist/forms/select/theme.d.ts +1 -1
- package/dist/forms/textarea/Textarea.svelte +15 -5
- package/dist/forms/textarea/Textarea.svelte.d.ts +2 -2
- package/dist/forms/textarea/theme.d.ts +1 -1
- package/dist/forms/timepicker/Timepicker.svelte +5 -5
- package/dist/forms/timepicker/Timepicker.svelte.d.ts +2 -2
- package/dist/forms/timepicker/theme.d.ts +1 -1
- package/dist/forms/toggle/Toggle.svelte +2 -2
- package/dist/forms/toggle/Toggle.svelte.d.ts +1 -1
- package/dist/forms/toggle/theme.d.ts +1 -1
- package/dist/gallery/Gallery.svelte +2 -2
- package/dist/gallery/Gallery.svelte.d.ts +1 -1
- package/dist/gallery/theme.d.ts +1 -1
- package/dist/index.d.ts +14 -13
- package/dist/index.js +14 -13
- package/dist/indicator/Indicator.svelte +2 -2
- package/dist/indicator/Indicator.svelte.d.ts +1 -1
- package/dist/kbd/Kbd.svelte +2 -2
- package/dist/kbd/Kbd.svelte.d.ts +1 -1
- package/dist/list-group/Listgroup.svelte +2 -2
- package/dist/list-group/Listgroup.svelte.d.ts +1 -1
- package/dist/list-group/ListgroupItem.svelte +2 -2
- package/dist/list-group/ListgroupItem.svelte.d.ts +1 -1
- package/dist/list-group/theme.d.ts +1 -1
- package/dist/mega-menu/MegaMenu.svelte +2 -2
- package/dist/mega-menu/MegaMenu.svelte.d.ts +1 -1
- package/dist/mega-menu/theme.d.ts +1 -1
- package/dist/modal/Modal.svelte +25 -5
- package/dist/modal/Modal.svelte.d.ts +2 -1
- package/dist/modal/theme.d.ts +1 -1
- package/dist/navbar/Menu.svelte +1 -1
- package/dist/navbar/Menu.svelte.d.ts +1 -1
- package/dist/navbar/NavBrand.svelte +2 -2
- package/dist/navbar/NavBrand.svelte.d.ts +1 -1
- package/dist/navbar/NavContainer.svelte +2 -2
- package/dist/navbar/NavContainer.svelte.d.ts +1 -1
- package/dist/navbar/NavHamburger.svelte +2 -2
- package/dist/navbar/NavHamburger.svelte.d.ts +2 -2
- package/dist/navbar/NavLi.svelte +2 -2
- package/dist/navbar/NavLi.svelte.d.ts +1 -1
- package/dist/navbar/NavUl.svelte +2 -2
- package/dist/navbar/NavUl.svelte.d.ts +1 -1
- package/dist/navbar/Navbar.svelte +2 -2
- package/dist/navbar/Navbar.svelte.d.ts +1 -1
- package/dist/navbar/theme.d.ts +1 -1
- package/dist/pagination/Pagination.svelte +2 -2
- package/dist/pagination/Pagination.svelte.d.ts +1 -1
- package/dist/pagination/PaginationButton.svelte +2 -2
- package/dist/pagination/PaginationButton.svelte.d.ts +1 -1
- package/dist/pagination/PaginationItem.svelte +2 -2
- package/dist/pagination/PaginationItem.svelte.d.ts +1 -1
- package/dist/pagination/PaginationNav.svelte +2 -2
- package/dist/pagination/PaginationNav.svelte.d.ts +1 -1
- package/dist/pagination/theme.d.ts +1 -1
- package/dist/popover/Popover.svelte +2 -2
- package/dist/popover/Popover.svelte.d.ts +1 -1
- package/dist/popover/theme.d.ts +1 -1
- package/dist/progress/Progressbar.svelte +2 -2
- package/dist/progress/Progressbar.svelte.d.ts +1 -1
- package/dist/progress/Progressradial.svelte +2 -2
- package/dist/progress/Progressradial.svelte.d.ts +1 -1
- package/dist/progress/theme.d.ts +1 -1
- package/dist/rating/AdvancedRating.svelte +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/rating/Review.svelte.d.ts +1 -1
- package/dist/rating/ScoreRating.svelte +2 -2
- 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 +4 -4
- package/dist/sidebar/Sidebar.svelte +8 -3
- package/dist/sidebar/Sidebar.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarBrand.svelte +2 -2
- package/dist/sidebar/SidebarBrand.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarButton.svelte +2 -2
- package/dist/sidebar/SidebarButton.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarCta.svelte +2 -2
- package/dist/sidebar/SidebarCta.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarDropdownWrapper.svelte +8 -3
- 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 +2 -2
- package/dist/sidebar/SidebarItem.svelte.d.ts +1 -1
- package/dist/sidebar/theme.d.ts +4 -4
- package/dist/skeleton/CardPlaceholder.svelte +2 -2
- package/dist/skeleton/CardPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ImagePlaceholder.svelte +2 -2
- package/dist/skeleton/ImagePlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ListPlaceholder.svelte +2 -2
- package/dist/skeleton/ListPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/Skeleton.svelte +2 -2
- package/dist/skeleton/Skeleton.svelte.d.ts +1 -1
- package/dist/skeleton/TestimonialPlaceholder.svelte +2 -2
- package/dist/skeleton/TestimonialPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/TextPlaceholder.svelte +2 -2
- package/dist/skeleton/TextPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/VideoPlaceholder.svelte +2 -2
- package/dist/skeleton/VideoPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/WidgetPlaceholder.svelte +2 -2
- package/dist/skeleton/WidgetPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/theme.d.ts +1 -1
- package/dist/speed-dial/SpeedDial.svelte +2 -2
- 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 +2 -2
- 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 +1 -1
- package/dist/spinner/Spinner.svelte +2 -2
- package/dist/spinner/Spinner.svelte.d.ts +1 -1
- package/dist/stepper/BreadcrumbStepper.svelte +2 -2
- package/dist/stepper/BreadcrumbStepper.svelte.d.ts +1 -1
- package/dist/stepper/DetailedStepper.svelte +2 -2
- package/dist/stepper/DetailedStepper.svelte.d.ts +1 -1
- package/dist/stepper/ProgressStepper.svelte +2 -2
- package/dist/stepper/ProgressStepper.svelte.d.ts +1 -1
- package/dist/stepper/Stepper.svelte +2 -2
- package/dist/stepper/Stepper.svelte.d.ts +1 -1
- package/dist/stepper/TimelineStepper.svelte +2 -2
- package/dist/stepper/TimelineStepper.svelte.d.ts +1 -1
- package/dist/stepper/VerticalStepper.svelte +2 -2
- package/dist/stepper/VerticalStepper.svelte.d.ts +1 -1
- package/dist/stepper/theme.d.ts +1 -1
- package/dist/table/Table.svelte +2 -2
- package/dist/table/Table.svelte.d.ts +1 -1
- package/dist/table/TableBody.svelte +1 -1
- package/dist/table/TableBody.svelte.d.ts +1 -1
- package/dist/table/TableBodyCell.svelte +2 -2
- package/dist/table/TableBodyCell.svelte.d.ts +1 -1
- package/dist/table/TableBodyRow.svelte +2 -2
- package/dist/table/TableBodyRow.svelte.d.ts +1 -1
- package/dist/table/TableHead.svelte +2 -2
- package/dist/table/TableHead.svelte.d.ts +1 -1
- package/dist/table/TableHeadCell.svelte +2 -2
- package/dist/table/TableHeadCell.svelte.d.ts +1 -1
- package/dist/table/TableSearch.svelte +2 -2
- package/dist/table/TableSearch.svelte.d.ts +1 -1
- package/dist/table/theme.d.ts +1 -1
- package/dist/tabs/TabItem.svelte +2 -2
- package/dist/tabs/TabItem.svelte.d.ts +1 -1
- package/dist/tabs/Tabs.svelte +2 -2
- package/dist/tabs/Tabs.svelte.d.ts +1 -1
- package/dist/tabs/theme.d.ts +1 -1
- package/dist/{theme → theme-provider}/themes.d.ts +12 -11
- package/dist/{theme → theme-provider}/themes.js +13 -11
- package/dist/theme-selector/ThemeIcon.svelte +9 -0
- package/dist/theme-selector/ThemeIcon.svelte.d.ts +26 -0
- package/dist/theme-selector/ThemeSelector.svelte +56 -0
- package/dist/theme-selector/ThemeSelector.svelte.d.ts +3 -0
- package/dist/theme-selector/index.d.ts +4 -0
- package/dist/theme-selector/index.js +3 -0
- package/dist/theme-selector/theme.d.ts +85 -0
- package/dist/theme-selector/theme.js +35 -0
- package/dist/theme-selector/themeStore.svelte.d.ts +6 -0
- package/dist/theme-selector/themeStore.svelte.js +88 -0
- package/dist/theme-selector/themes/default-runtime.css +229 -0
- package/dist/theme-selector/themes/enterprise-runtime.css +210 -0
- package/dist/theme-selector/themes/minimal-runtime.css +213 -0
- package/dist/theme-selector/themes/mono-runtime.css +206 -0
- package/dist/theme-selector/themes/playful-runtime.css +206 -0
- package/dist/theme-selector/themes/themes-runtime.css +1106 -0
- package/dist/theme-selector/themes.d.ts +39 -0
- package/dist/theme-selector/themes.js +43 -0
- package/dist/timeline/Activity.svelte +2 -2
- package/dist/timeline/Activity.svelte.d.ts +1 -1
- package/dist/timeline/ActivityItem.svelte +2 -2
- package/dist/timeline/ActivityItem.svelte.d.ts +1 -1
- package/dist/timeline/Group.svelte +2 -2
- package/dist/timeline/Group.svelte.d.ts +1 -1
- package/dist/timeline/GroupItem.svelte +2 -2
- package/dist/timeline/GroupItem.svelte.d.ts +1 -1
- package/dist/timeline/Timeline.svelte +2 -2
- package/dist/timeline/Timeline.svelte.d.ts +1 -1
- package/dist/timeline/TimelineItem.svelte +2 -2
- package/dist/timeline/TimelineItem.svelte.d.ts +1 -1
- package/dist/timeline/theme.d.ts +7 -7
- package/dist/toast/Toast.svelte +23 -4
- package/dist/toast/Toast.svelte.d.ts +2 -1
- package/dist/toast/ToastContainer.svelte +2 -2
- package/dist/toast/ToastContainer.svelte.d.ts +1 -1
- package/dist/toast/theme.d.ts +1 -1
- package/dist/toolbar/Toolbar.svelte +2 -2
- package/dist/toolbar/Toolbar.svelte.d.ts +1 -1
- package/dist/toolbar/ToolbarButton.svelte +2 -2
- package/dist/toolbar/ToolbarButton.svelte.d.ts +1 -1
- package/dist/toolbar/ToolbarGroup.svelte +2 -2
- package/dist/toolbar/ToolbarGroup.svelte.d.ts +1 -1
- package/dist/toolbar/theme.d.ts +1 -1
- package/dist/toolbar/theme.js +1 -1
- package/dist/tooltip/Tooltip.svelte +1 -1
- package/dist/tooltip/Tooltip.svelte.d.ts +1 -1
- package/dist/types.d.ts +42 -29
- package/dist/typography/a/A.svelte +2 -2
- package/dist/typography/a/A.svelte.d.ts +1 -1
- package/dist/typography/blockquote/Blockquote.svelte +2 -2
- package/dist/typography/blockquote/Blockquote.svelte.d.ts +1 -1
- package/dist/typography/descriptionlist/DescriptionList.svelte +2 -2
- package/dist/typography/descriptionlist/DescriptionList.svelte.d.ts +1 -1
- package/dist/typography/heading/Heading.svelte +2 -2
- package/dist/typography/heading/Heading.svelte.d.ts +1 -1
- package/dist/typography/hr/Hr.svelte +1 -1
- package/dist/typography/hr/theme.d.ts +1 -1
- package/dist/typography/img/Img.svelte +2 -2
- package/dist/typography/img/Img.svelte.d.ts +1 -1
- package/dist/typography/img/theme.d.ts +1 -1
- package/dist/typography/layout/Layout.svelte +2 -2
- package/dist/typography/layout/Layout.svelte.d.ts +1 -1
- package/dist/typography/list/Li.svelte +1 -1
- package/dist/typography/list/Li.svelte.d.ts +1 -1
- package/dist/typography/list/List.svelte +2 -2
- package/dist/typography/list/List.svelte.d.ts +1 -1
- package/dist/typography/mark/Mark.svelte +2 -2
- package/dist/typography/mark/Mark.svelte.d.ts +1 -1
- package/dist/typography/paragraph/P.svelte +2 -2
- package/dist/typography/paragraph/P.svelte.d.ts +1 -1
- package/dist/typography/secondary/Secondary.svelte +2 -2
- package/dist/typography/secondary/Secondary.svelte.d.ts +1 -1
- package/dist/typography/span/Span.svelte +2 -2
- package/dist/typography/span/Span.svelte.d.ts +1 -1
- package/dist/utils/Arrow.svelte +1 -1
- package/dist/utils/Arrow.svelte.d.ts +1 -1
- package/dist/utils/CloseButton.svelte +11 -7
- package/dist/utils/CloseButton.svelte.d.ts +2 -2
- package/dist/utils/Popper.svelte +9 -3
- package/dist/utils/Popper.svelte.d.ts +1 -1
- package/dist/utils/theme.d.ts +60 -81
- package/dist/utils/theme.js +10 -36
- package/dist/video/Video.svelte +2 -2
- package/dist/video/Video.svelte.d.ts +1 -1
- package/package.json +2 -735
- package/dist/bottom-navigation/CHANGES-SUMMARY.svelte +0 -175
- package/dist/bottom-navigation/MIGRATION-GUIDE.svelte +0 -142
- /package/dist/{forms → extend}/button-toggle/ButtonToggleGroup.svelte.d.ts +0 -0
- /package/dist/{forms → extend}/button-toggle/index.d.ts +0 -0
- /package/dist/{forms → extend}/button-toggle/index.js +0 -0
- /package/dist/{forms → extend}/button-toggle/theme.js +0 -0
- /package/dist/{clipboard-manager → extend/clipboard-manager}/index.d.ts +0 -0
- /package/dist/{clipboard-manager → extend/clipboard-manager}/index.js +0 -0
- /package/dist/{clipboard-manager → extend/clipboard-manager}/theme.js +0 -0
- /package/dist/{command-palette → extend/command-palette}/index.d.ts +0 -0
- /package/dist/{command-palette → extend/command-palette}/index.js +0 -0
- /package/dist/{command-palette → extend/command-palette}/theme.js +0 -0
- /package/dist/{kanban → extend/kanban}/index.d.ts +0 -0
- /package/dist/{kanban → extend/kanban}/index.js +0 -0
- /package/dist/{kanban → extend/kanban}/theme.js +0 -0
- /package/dist/{scroll-spy → extend/scroll-spy}/index.d.ts +0 -0
- /package/dist/{scroll-spy → extend/scroll-spy}/index.js +0 -0
- /package/dist/{scroll-spy → extend/scroll-spy}/theme.js +0 -0
- /package/dist/{split-pane → extend/split-pane}/index.d.ts +0 -0
- /package/dist/{split-pane → extend/split-pane}/index.js +0 -0
- /package/dist/{split-pane → extend/split-pane}/theme.d.ts +0 -0
- /package/dist/{split-pane → extend/split-pane}/theme.js +0 -0
- /package/dist/{step-indicator → extend/step-indicator}/index.d.ts +0 -0
- /package/dist/{step-indicator → extend/step-indicator}/index.js +0 -0
- /package/dist/{step-indicator → extend/step-indicator}/theme.js +0 -0
- /package/dist/{forms → extend}/tags/index.d.ts +0 -0
- /package/dist/{forms → extend}/tags/index.js +0 -0
- /package/dist/{tour → extend/tour}/index.d.ts +0 -0
- /package/dist/{tour → extend/tour}/index.js +0 -0
- /package/dist/{tour → extend/tour}/theme.js +0 -0
- /package/dist/{virtual-masonry → extend/virtual-masonry}/index.d.ts +0 -0
- /package/dist/{virtual-masonry → extend/virtual-masonry}/index.js +0 -0
- /package/dist/{virtual-masonry → extend/virtual-masonry}/theme.js +0 -0
- /package/dist/{virtuallist → extend/virtuallist}/index.d.ts +0 -0
- /package/dist/{virtuallist → extend/virtuallist}/index.js +0 -0
- /package/dist/{virtuallist → extend/virtuallist}/theme.js +0 -0
- /package/dist/{theme → theme-provider}/ThemeProvider.svelte +0 -0
- /package/dist/{theme → theme-provider}/ThemeProvider.svelte.d.ts +0 -0
- /package/dist/{theme → theme-provider}/index.d.ts +0 -0
- /package/dist/{theme → theme-provider}/index.js +0 -0
- /package/dist/{theme → theme-provider}/themeUtils.d.ts +0 -0
- /package/dist/{theme → theme-provider}/themeUtils.js +0 -0
|
@@ -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#L693)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { footerCopyright } from "./theme";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import type { FooterCopyrightProps } from "..";
|
|
6
|
-
import { getTheme } from "../theme/themeUtils";
|
|
6
|
+
import { getTheme } from "../theme-provider/themeUtils";
|
|
7
7
|
|
|
8
8
|
let { href, by, copyrightMessage = "All Rights Reserved.", year, classes, class: className, ...restProps }: FooterCopyrightProps = $props();
|
|
9
9
|
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
@component
|
|
33
33
|
[Go to docs](https://flowbite-svelte.com/)
|
|
34
34
|
## Type
|
|
35
|
-
[FooterCopyrightProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
35
|
+
[FooterCopyrightProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L702)
|
|
36
36
|
## Props
|
|
37
37
|
@prop href
|
|
38
38
|
@prop by
|
|
@@ -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#L702)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop href
|
|
8
8
|
* @prop by
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { footerIcon } from "./theme";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import type { FooterIconProps } from "..";
|
|
5
|
-
import { getTheme } from "../theme/themeUtils";
|
|
5
|
+
import { getTheme } from "../theme-provider/themeUtils";
|
|
6
6
|
|
|
7
7
|
let { children, href, ariaLabel, class: className, ...restProps }: FooterIconProps = $props();
|
|
8
8
|
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
@component
|
|
22
22
|
[Go to docs](https://flowbite-svelte.com/)
|
|
23
23
|
## Type
|
|
24
|
-
[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#L709)
|
|
25
25
|
## Props
|
|
26
26
|
@prop children
|
|
27
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#L709)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop href
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { footerLink } from "./theme";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import type { FooterLinkProps } from "..";
|
|
5
|
-
import { getTheme } from "../theme/themeUtils";
|
|
5
|
+
import { getTheme } from "../theme-provider/themeUtils";
|
|
6
6
|
|
|
7
7
|
let { children, href, classes, class: className, ...restProps }: FooterLinkProps = $props();
|
|
8
8
|
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
@component
|
|
24
24
|
[Go to docs](https://flowbite-svelte.com/)
|
|
25
25
|
## Type
|
|
26
|
-
[FooterLinkProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
26
|
+
[FooterLinkProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L719)
|
|
27
27
|
## Props
|
|
28
28
|
@prop children
|
|
29
29
|
@prop href
|
|
@@ -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#L719)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop href
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { footerLinkGroup } from "./theme";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import type { FooterLinkGroupProps } from "..";
|
|
5
|
-
import { getTheme } from "../theme/themeUtils";
|
|
5
|
+
import { getTheme } from "../theme-provider/themeUtils";
|
|
6
6
|
|
|
7
7
|
let { class: className, children, ...restProps }: FooterLinkGroupProps = $props();
|
|
8
8
|
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
@component
|
|
18
18
|
[Go to docs](https://flowbite-svelte.com/)
|
|
19
19
|
## Type
|
|
20
|
-
[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#L715)
|
|
21
21
|
## Props
|
|
22
22
|
@prop class: className
|
|
23
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#L715)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop class: className
|
|
8
8
|
* @prop children
|
package/dist/footer/theme.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
import type { Classes } from "../theme/themeUtils";
|
|
2
|
+
import type { Classes } from "../theme-provider/themeUtils";
|
|
3
3
|
export declare const footer: import("tailwind-variants").TVReturnType<{
|
|
4
4
|
footerType: {
|
|
5
5
|
default: string;
|
|
@@ -30,16 +30,16 @@ export declare const footerBrand: import("tailwind-variants").TVReturnType<{
|
|
|
30
30
|
[key: string]: {
|
|
31
31
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
32
32
|
base?: import("tailwind-merge").ClassNameValue;
|
|
33
|
-
span?: import("tailwind-merge").ClassNameValue;
|
|
34
33
|
img?: import("tailwind-merge").ClassNameValue;
|
|
34
|
+
span?: import("tailwind-merge").ClassNameValue;
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
} | {
|
|
38
38
|
[x: string]: {
|
|
39
39
|
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
40
40
|
base?: import("tailwind-merge").ClassNameValue;
|
|
41
|
-
span?: import("tailwind-merge").ClassNameValue;
|
|
42
41
|
img?: import("tailwind-merge").ClassNameValue;
|
|
42
|
+
span?: import("tailwind-merge").ClassNameValue;
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
} | {}, {
|
|
@@ -50,8 +50,8 @@ export declare const footerBrand: import("tailwind-variants").TVReturnType<{
|
|
|
50
50
|
[key: string]: {
|
|
51
51
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
52
52
|
base?: import("tailwind-merge").ClassNameValue;
|
|
53
|
-
span?: import("tailwind-merge").ClassNameValue;
|
|
54
53
|
img?: import("tailwind-merge").ClassNameValue;
|
|
54
|
+
span?: import("tailwind-merge").ClassNameValue;
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
57
|
} | {}, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { CheckboxButtonProps } from "../..";
|
|
3
3
|
import Button from "../../buttons/Button.svelte";
|
|
4
|
-
import { getTheme } from "../../theme/themeUtils";
|
|
4
|
+
import { getTheme } from "../../theme-provider/themeUtils";
|
|
5
5
|
import clsx from "clsx";
|
|
6
6
|
import Checkbox from "./Checkbox.svelte";
|
|
7
7
|
import { checkboxButton } from "./theme";
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
@component
|
|
23
23
|
[Go to docs](https://flowbite-svelte.com/)
|
|
24
24
|
## Type
|
|
25
|
-
[CheckboxButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
25
|
+
[CheckboxButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L745)
|
|
26
26
|
## Props
|
|
27
27
|
@prop children
|
|
28
28
|
@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#L745)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
import type { Classes } from "../../theme/themeUtils";
|
|
2
|
+
import type { Classes } from "../../theme-provider/themeUtils";
|
|
3
3
|
export declare const checkbox: import("tailwind-variants").TVReturnType<{
|
|
4
4
|
color: {
|
|
5
5
|
brand: {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { dropzone } from "./theme";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import type { DropzoneProps } from "../..";
|
|
6
|
-
import { getTheme } from "../../theme/themeUtils";
|
|
6
|
+
import { getTheme } from "../../theme-provider/themeUtils";
|
|
7
7
|
|
|
8
8
|
type HTMLInputElementWithFiles = HTMLInputElement & { files: FileList | null };
|
|
9
9
|
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
@component
|
|
57
57
|
[Go to docs](https://flowbite-svelte.com/)
|
|
58
58
|
## Type
|
|
59
|
-
[DropzoneProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
59
|
+
[DropzoneProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L755)
|
|
60
60
|
## Props
|
|
61
61
|
@prop children
|
|
62
62
|
@prop files = $bindable<FileList | null>()
|
|
@@ -2,7 +2,7 @@ import type { DropzoneProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [DropzoneProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [DropzoneProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L755)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop files = $bindable<FileList | null>()
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import type { FileuploadProps } from "../..";
|
|
5
5
|
import CloseButton from "../../utils/CloseButton.svelte";
|
|
6
|
-
import { getTheme } from "../../theme/themeUtils";
|
|
6
|
+
import { getTheme } from "../../theme-provider/themeUtils";
|
|
7
7
|
import { createDismissableContext } from "../../utils/dismissable";
|
|
8
8
|
|
|
9
|
-
let { files = $bindable(), size = "md", clearable = false, elementRef = $bindable(), class: className, classes,
|
|
9
|
+
let { files = $bindable(), size = "md", clearable = false, elementRef = $bindable(), class: className, classes, clearableOnClick, closeButtonProps, ...restProps }: FileuploadProps = $props();
|
|
10
10
|
|
|
11
11
|
const styling = $derived(classes);
|
|
12
12
|
|
|
@@ -36,12 +36,22 @@
|
|
|
36
36
|
|
|
37
37
|
// Check if we should show the clear button
|
|
38
38
|
const showClearButton = $derived(clearable && files && files.length > 0);
|
|
39
|
+
|
|
40
|
+
const finalCloseProps = $derived({
|
|
41
|
+
class: close({ class: clsx(theme?.close, styling?.close) }),
|
|
42
|
+
color: closeButtonProps?.color ?? "gray",
|
|
43
|
+
ariaLabel: closeButtonProps?.ariaLabel ?? "Clear selected files",
|
|
44
|
+
size: closeButtonProps?.size,
|
|
45
|
+
classes: closeButtonProps?.classes ?? { svg: clsx(theme?.svg, styling?.svg) },
|
|
46
|
+
name: closeButtonProps?.name,
|
|
47
|
+
onclick: closeButtonProps?.onclick
|
|
48
|
+
});
|
|
39
49
|
</script>
|
|
40
50
|
|
|
41
51
|
<div class={wrapper({ class: clsx(theme?.wrapper, styling?.wrapper) })}>
|
|
42
52
|
<input type="file" onchange={handleChange} bind:this={elementRef} {...restProps} class={base({ size, class: clsx(theme?.base, className) })} />
|
|
43
53
|
{#if showClearButton}
|
|
44
|
-
<CloseButton
|
|
54
|
+
<CloseButton {...finalCloseProps} />
|
|
45
55
|
{/if}
|
|
46
56
|
</div>
|
|
47
57
|
|
|
@@ -49,7 +59,7 @@
|
|
|
49
59
|
@component
|
|
50
60
|
[Go to docs](https://flowbite-svelte.com/)
|
|
51
61
|
## Type
|
|
52
|
-
[FileuploadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
62
|
+
[FileuploadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L764)
|
|
53
63
|
## Props
|
|
54
64
|
@prop files = $bindable()
|
|
55
65
|
@prop size = "md"
|
|
@@ -57,7 +67,7 @@
|
|
|
57
67
|
@prop elementRef = $bindable()
|
|
58
68
|
@prop class: className
|
|
59
69
|
@prop classes
|
|
60
|
-
@prop clearableColor = "none"
|
|
61
70
|
@prop clearableOnClick
|
|
71
|
+
@prop closeButtonProps
|
|
62
72
|
@prop ...restProps
|
|
63
73
|
-->
|
|
@@ -2,7 +2,7 @@ import type { FileuploadProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [FileuploadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [FileuploadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L764)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop files = $bindable()
|
|
8
8
|
* @prop size = "md"
|
|
@@ -10,8 +10,8 @@ import type { FileuploadProps } from "../..";
|
|
|
10
10
|
* @prop elementRef = $bindable()
|
|
11
11
|
* @prop class: className
|
|
12
12
|
* @prop classes
|
|
13
|
-
* @prop clearableColor = "none"
|
|
14
13
|
* @prop clearableOnClick
|
|
14
|
+
* @prop closeButtonProps
|
|
15
15
|
* @prop ...restProps
|
|
16
16
|
*/
|
|
17
17
|
declare const Fileupload: import("svelte").Component<FileuploadProps, {}, "elementRef" | "files">;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
import type { Classes } from "../../theme/themeUtils";
|
|
2
|
+
import type { Classes } from "../../theme-provider/themeUtils";
|
|
3
3
|
export type FileuploadViariants = VariantProps<typeof fileupload> & Classes<typeof fileupload>;
|
|
4
4
|
export declare const fileupload: import("tailwind-variants").TVReturnType<{
|
|
5
5
|
size: {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import type { FloatingLabelInputProps } from "../..";
|
|
6
6
|
import CloseButton from "../../utils/CloseButton.svelte";
|
|
7
|
-
import { getTheme } from "../../theme/themeUtils";
|
|
7
|
+
import { getTheme } from "../../theme-provider/themeUtils";
|
|
8
8
|
import { createDismissableContext } from "../../utils/dismissable";
|
|
9
9
|
|
|
10
10
|
let {
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
class: className,
|
|
21
21
|
classes,
|
|
22
22
|
clearable,
|
|
23
|
-
clearableColor = "none",
|
|
24
23
|
clearableOnClick,
|
|
25
24
|
data = [],
|
|
26
25
|
maxSuggestions = 5,
|
|
27
26
|
onSelect,
|
|
28
27
|
placeholder,
|
|
28
|
+
closeButtonProps,
|
|
29
29
|
...restProps
|
|
30
30
|
}: FloatingLabelInputProps = $props();
|
|
31
31
|
|
|
@@ -160,6 +160,16 @@
|
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
createDismissableContext(clearAll);
|
|
163
|
+
|
|
164
|
+
const finalCloseProps = $derived({
|
|
165
|
+
class: close({ class: clsx(theme?.close, styling?.close) }),
|
|
166
|
+
color: closeButtonProps?.color ?? "gray",
|
|
167
|
+
ariaLabel: closeButtonProps?.ariaLabel ?? "Clear search value",
|
|
168
|
+
size: closeButtonProps?.size,
|
|
169
|
+
classes: closeButtonProps?.classes ?? { svg: clsx(theme?.svg, styling?.svg) },
|
|
170
|
+
name: closeButtonProps?.name,
|
|
171
|
+
onclick: closeButtonProps?.onclick
|
|
172
|
+
});
|
|
163
173
|
</script>
|
|
164
174
|
|
|
165
175
|
{#if clearable}
|
|
@@ -181,7 +191,7 @@
|
|
|
181
191
|
onkeydown={handleKeydown}
|
|
182
192
|
/>
|
|
183
193
|
{#if showClearButton}
|
|
184
|
-
<CloseButton
|
|
194
|
+
<CloseButton {...finalCloseProps} />
|
|
185
195
|
{/if}
|
|
186
196
|
<label for={id} class={label({ class: clsx(theme?.label, styling?.label) })}>
|
|
187
197
|
{@render children()}
|
|
@@ -207,7 +217,7 @@
|
|
|
207
217
|
@component
|
|
208
218
|
[Go to docs](https://flowbite-svelte.com/)
|
|
209
219
|
## Type
|
|
210
|
-
[FloatingLabelInputProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
220
|
+
[FloatingLabelInputProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L775)
|
|
211
221
|
## Props
|
|
212
222
|
@prop children
|
|
213
223
|
@prop id = idGenerator()
|
|
@@ -221,11 +231,11 @@
|
|
|
221
231
|
@prop class: className
|
|
222
232
|
@prop classes
|
|
223
233
|
@prop clearable
|
|
224
|
-
@prop clearableColor = "none"
|
|
225
234
|
@prop clearableOnClick
|
|
226
235
|
@prop data = []
|
|
227
236
|
@prop maxSuggestions = 5
|
|
228
237
|
@prop onSelect
|
|
229
238
|
@prop placeholder
|
|
239
|
+
@prop closeButtonProps
|
|
230
240
|
@prop ...restProps
|
|
231
241
|
-->
|
|
@@ -2,7 +2,7 @@ import type { FloatingLabelInputProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [FloatingLabelInputProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [FloatingLabelInputProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L775)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop id = idGenerator()
|
|
@@ -16,12 +16,12 @@ import type { FloatingLabelInputProps } from "../..";
|
|
|
16
16
|
* @prop class: className
|
|
17
17
|
* @prop classes
|
|
18
18
|
* @prop clearable
|
|
19
|
-
* @prop clearableColor = "none"
|
|
20
19
|
* @prop clearableOnClick
|
|
21
20
|
* @prop data = []
|
|
22
21
|
* @prop maxSuggestions = 5
|
|
23
22
|
* @prop onSelect
|
|
24
23
|
* @prop placeholder
|
|
24
|
+
* @prop closeButtonProps
|
|
25
25
|
* @prop ...restProps
|
|
26
26
|
*/
|
|
27
27
|
declare const FloatingLabelInput: import("svelte").Component<FloatingLabelInputProps, {}, "value" | "elementRef">;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
import type { Classes } from "../../theme/themeUtils";
|
|
2
|
+
import type { Classes } from "../../theme-provider/themeUtils";
|
|
3
3
|
export type FloatingLabelInputVaratiants = VariantProps<typeof floatingLabelInput> & Classes<typeof floatingLabelInput>;
|
|
4
4
|
export declare const floatingLabelInput: import("tailwind-variants").TVReturnType<{
|
|
5
5
|
variant: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { helper } from "./theme";
|
|
3
3
|
import type { HelperProps } from "../..";
|
|
4
4
|
import clsx from "clsx";
|
|
5
|
-
import { getTheme } from "../../theme/themeUtils";
|
|
5
|
+
import { getTheme } from "../../theme-provider/themeUtils";
|
|
6
6
|
|
|
7
7
|
let { children, class: className, color = "brand", ...restProps }: HelperProps = $props();
|
|
8
8
|
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
@component
|
|
20
20
|
[Go to docs](https://flowbite-svelte.com/)
|
|
21
21
|
## Type
|
|
22
|
-
[HelperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
22
|
+
[HelperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L796)
|
|
23
23
|
## Props
|
|
24
24
|
@prop children
|
|
25
25
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { HelperProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [HelperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [HelperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L796)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -4,6 +4,8 @@ export declare const helper: import("tailwind-variants").TVReturnType<{
|
|
|
4
4
|
color: {
|
|
5
5
|
disabled: string;
|
|
6
6
|
brand: string;
|
|
7
|
+
success: string;
|
|
8
|
+
danger: string;
|
|
7
9
|
primary: string;
|
|
8
10
|
secondary: string;
|
|
9
11
|
green: string;
|
|
@@ -29,6 +31,8 @@ export declare const helper: import("tailwind-variants").TVReturnType<{
|
|
|
29
31
|
color: {
|
|
30
32
|
disabled: string;
|
|
31
33
|
brand: string;
|
|
34
|
+
success: string;
|
|
35
|
+
danger: string;
|
|
32
36
|
primary: string;
|
|
33
37
|
secondary: string;
|
|
34
38
|
green: string;
|
|
@@ -54,6 +58,8 @@ export declare const helper: import("tailwind-variants").TVReturnType<{
|
|
|
54
58
|
color: {
|
|
55
59
|
disabled: string;
|
|
56
60
|
brand: string;
|
|
61
|
+
success: string;
|
|
62
|
+
danger: string;
|
|
57
63
|
primary: string;
|
|
58
64
|
secondary: string;
|
|
59
65
|
green: string;
|
|
@@ -5,6 +5,8 @@ export const helper = tv({
|
|
|
5
5
|
color: {
|
|
6
6
|
disabled: "text-gray-400 dark:text-gray-500",
|
|
7
7
|
brand: "text-body",
|
|
8
|
+
success: "text-fg-success-strong",
|
|
9
|
+
danger: "text-fg-danger-strong",
|
|
8
10
|
primary: "text-primary-500 dark:text-primary-400",
|
|
9
11
|
secondary: "text-secondary-500 dark:text-secondary-400",
|
|
10
12
|
green: "text-green-500 dark:text-green-400",
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { clampSize } from "../input-field";
|
|
6
6
|
import { getButtonGroupContext } from "../../context";
|
|
7
7
|
import { inputAddon } from "./theme";
|
|
8
|
-
import { getTheme } from "../../theme/themeUtils";
|
|
8
|
+
import { getTheme } from "../../theme-provider/themeUtils";
|
|
9
9
|
|
|
10
10
|
let { children, class: className, size, ...restProps }: InputAddonProps = $props();
|
|
11
11
|
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
@component
|
|
41
41
|
[Go to docs](https://flowbite-svelte.com/)
|
|
42
42
|
## Type
|
|
43
|
-
[InputAddonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
43
|
+
[InputAddonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L822)
|
|
44
44
|
## Props
|
|
45
45
|
@prop children
|
|
46
46
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { InputAddonProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [InputAddonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [InputAddonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L822)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
import type { Classes } from "../../theme/themeUtils";
|
|
2
|
+
import type { Classes } from "../../theme-provider/themeUtils";
|
|
3
3
|
export type InputAddonVariants = VariantProps<typeof inputAddon> & Classes<typeof inputAddon>;
|
|
4
4
|
export declare const inputAddon: import("tailwind-variants").TVReturnType<{
|
|
5
5
|
size: {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import CloseButton from "../../utils/CloseButton.svelte";
|
|
7
7
|
import { input } from "./theme";
|
|
8
8
|
import { clampSize } from "./index";
|
|
9
|
-
import { getTheme } from "../../theme/themeUtils";
|
|
9
|
+
import { getTheme } from "../../theme-provider/themeUtils";
|
|
10
10
|
import { createDismissableContext } from "../../utils/dismissable";
|
|
11
11
|
|
|
12
12
|
let {
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
color = "default",
|
|
21
21
|
class: className,
|
|
22
22
|
classes,
|
|
23
|
-
clearableColor = "none",
|
|
24
23
|
clearableOnClick,
|
|
25
24
|
data = [],
|
|
26
25
|
maxSuggestions = 5,
|
|
@@ -29,6 +28,7 @@
|
|
|
29
28
|
onfocus,
|
|
30
29
|
onblur,
|
|
31
30
|
onkeydown,
|
|
31
|
+
closeButtonProps,
|
|
32
32
|
...restProps
|
|
33
33
|
}: InputProps<InputValue> = $props();
|
|
34
34
|
|
|
@@ -230,6 +230,16 @@
|
|
|
230
230
|
elementRef.focus();
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
+
|
|
234
|
+
const finalCloseProps = $derived({
|
|
235
|
+
class: close({ class: clsx(theme?.close, styling?.close) }),
|
|
236
|
+
color: closeButtonProps?.color ?? "gray",
|
|
237
|
+
ariaLabel: closeButtonProps?.ariaLabel ?? "Clear search value",
|
|
238
|
+
size: closeButtonProps?.size,
|
|
239
|
+
classes: closeButtonProps?.classes ?? { svg: clsx(theme?.svg, styling?.svg) },
|
|
240
|
+
name: closeButtonProps?.name,
|
|
241
|
+
onclick: closeButtonProps?.onclick
|
|
242
|
+
});
|
|
233
243
|
</script>
|
|
234
244
|
|
|
235
245
|
{#if clearable}
|
|
@@ -284,7 +294,7 @@
|
|
|
284
294
|
class={clsx(!wrapped && base(), inputCls({ class: clsx(theme?.input, className) }))}
|
|
285
295
|
/>
|
|
286
296
|
{#if value !== undefined && value !== "" && clearable}
|
|
287
|
-
<CloseButton
|
|
297
|
+
<CloseButton {...finalCloseProps} />
|
|
288
298
|
{/if}
|
|
289
299
|
{/if}
|
|
290
300
|
{/snippet}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
import type { Classes } from "../../theme/themeUtils";
|
|
2
|
+
import type { Classes } from "../../theme-provider/themeUtils";
|
|
3
3
|
export type InputVariants = VariantProps<typeof input> & Classes<typeof input>;
|
|
4
4
|
export declare const input: import("tailwind-variants").TVReturnType<{
|
|
5
5
|
size: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { label } from "./theme";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import type { LabelProps } from "../..";
|
|
5
|
-
import { getTheme } from "../../theme/themeUtils";
|
|
5
|
+
import { getTheme } from "../../theme-provider/themeUtils";
|
|
6
6
|
|
|
7
7
|
let { children, color = "gray", show = true, class: className, ...restProps }: LabelProps = $props();
|
|
8
8
|
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
@component
|
|
24
24
|
[Go to docs](https://flowbite-svelte.com/)
|
|
25
25
|
## Type
|
|
26
|
-
[LabelProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
26
|
+
[LabelProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L838)
|
|
27
27
|
## Props
|
|
28
28
|
@prop children
|
|
29
29
|
@prop color = "gray"
|
|
@@ -2,7 +2,7 @@ import type { LabelProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [LabelProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [LabelProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L838)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop color = "gray"
|