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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { IndicatorsProps } from "..";
|
|
3
3
|
import Indicator from "../indicator/Indicator.svelte";
|
|
4
|
-
import { getTheme } from "../theme/themeUtils";
|
|
4
|
+
import { getTheme } from "../theme-provider/themeUtils";
|
|
5
5
|
import clsx from "clsx";
|
|
6
6
|
import { getCarouselContext } from "../context";
|
|
7
7
|
import { carouselIndicators } from "./theme";
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
</script>
|
|
21
21
|
|
|
22
22
|
{#if _state}
|
|
23
|
-
<div class={base({ class: clsx(theme?.base, className) })} {...restProps}>
|
|
23
|
+
<div class={base({ class: clsx(theme?.base, className) })} data-scope="carousel-indicators" data-part="base" {...restProps}>
|
|
24
24
|
{#each _state.images as _, idx (idx)}
|
|
25
25
|
{@const selected = _state.index === idx}
|
|
26
|
-
<button type="button" onclick={() => goToIndex(idx)} aria-current={selected ? "true" : undefined} aria-label={`Go to slide ${idx + 1}`}>
|
|
26
|
+
<button type="button" onclick={() => goToIndex(idx)} aria-current={selected ? "true" : undefined} aria-label={`Go to slide ${idx + 1}`} data-part="button">
|
|
27
27
|
{#if children}
|
|
28
28
|
{@render children({ selected, index: idx })}
|
|
29
29
|
{:else}
|
|
30
|
-
<Indicator class={indicator({ selected, class: clsx(theme?.indicator, selected ? styling?.active : styling?.inactive) })} />
|
|
30
|
+
<Indicator class={indicator({ selected, class: clsx(theme?.indicator, selected ? styling?.active : styling?.inactive) })} data-part="indicator" />
|
|
31
31
|
{/if}
|
|
32
32
|
</button>
|
|
33
33
|
{/each}
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
@component
|
|
39
39
|
[Go to docs](https://flowbite-svelte.com/)
|
|
40
40
|
## Type
|
|
41
|
-
[IndicatorsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
41
|
+
[IndicatorsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L487)
|
|
42
42
|
## Props
|
|
43
43
|
@prop children
|
|
44
44
|
@prop position = "bottom"
|
|
@@ -2,7 +2,7 @@ import type { IndicatorsProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [IndicatorsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [IndicatorsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L487)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop position = "bottom"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { controlButton } from "./theme";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import type { ControlButtonProps } from "..";
|
|
5
|
-
import { getTheme } from "../theme/themeUtils";
|
|
5
|
+
import { getTheme } from "../theme-provider/themeUtils";
|
|
6
6
|
|
|
7
7
|
let { children, forward, name, class: className, classes, ...restProps }: ControlButtonProps = $props();
|
|
8
8
|
|
|
@@ -12,17 +12,17 @@
|
|
|
12
12
|
const theme = $derived(getTheme("controlButton"));
|
|
13
13
|
</script>
|
|
14
14
|
|
|
15
|
-
<button type="button" class={base({ class: clsx(className, theme?.base) })} {...restProps}>
|
|
15
|
+
<button type="button" class={base({ class: clsx(className, theme?.base) })} data-scope="control-button" data-part="base" {...restProps}>
|
|
16
16
|
{#if children}
|
|
17
17
|
{@render children()}
|
|
18
18
|
{:else}
|
|
19
|
-
<span class={span({ class: clsx(theme?.span, styling?.span) })}>
|
|
19
|
+
<span class={span({ class: clsx(theme?.span, styling?.span) })} data-part="icon">
|
|
20
20
|
{#if forward}
|
|
21
|
-
<svg aria-hidden="true" class="h-5 w-5 sm:h-6 sm:w-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
21
|
+
<svg aria-hidden="true" class="h-5 w-5 sm:h-6 sm:w-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-part="svg">
|
|
22
22
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
|
|
23
23
|
</svg>
|
|
24
24
|
{:else}
|
|
25
|
-
<svg aria-hidden="true" class="h-5 w-5 sm:h-6 sm:w-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
25
|
+
<svg aria-hidden="true" class="h-5 w-5 sm:h-6 sm:w-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-part="svg">
|
|
26
26
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7" />
|
|
27
27
|
</svg>
|
|
28
28
|
{/if}
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
@component
|
|
38
38
|
[Go to docs](https://flowbite-svelte.com/)
|
|
39
39
|
## Type
|
|
40
|
-
[ControlButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
40
|
+
[ControlButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L494)
|
|
41
41
|
## Props
|
|
42
42
|
@prop children
|
|
43
43
|
@prop forward
|
|
@@ -2,7 +2,7 @@ import type { ControlButtonProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ControlButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ControlButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L494)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop forward
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { ControlsProps } from "..";
|
|
3
3
|
import ControlButton from "./ControlButton.svelte";
|
|
4
|
-
import { getTheme } from "../theme/themeUtils";
|
|
4
|
+
import { getTheme } from "../theme-provider/themeUtils";
|
|
5
5
|
import clsx from "clsx";
|
|
6
6
|
import { getCarouselContext } from "../context";
|
|
7
7
|
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
@component
|
|
30
30
|
[Go to docs](https://flowbite-svelte.com/)
|
|
31
31
|
## Type
|
|
32
|
-
[ControlsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
32
|
+
[ControlsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L500)
|
|
33
33
|
## Props
|
|
34
34
|
@prop children
|
|
35
35
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { ControlsProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ControlsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ControlsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L500)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { SlideProps } from "..";
|
|
3
|
-
import { getTheme } from "../theme/themeUtils";
|
|
3
|
+
import { getTheme } from "../theme-provider/themeUtils";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { getCarouselContext } from "../context";
|
|
6
6
|
import { fly } from "svelte/transition";
|
|
7
|
+
import { prefersReducedMotion } from "svelte/motion";
|
|
7
8
|
import { slide } from "./theme";
|
|
8
9
|
|
|
9
10
|
const _state = getCarouselContext();
|
|
@@ -12,12 +13,15 @@
|
|
|
12
13
|
|
|
13
14
|
const theme = $derived(getTheme("slide"));
|
|
14
15
|
|
|
16
|
+
// Check if running in browser to avoid SSR issues
|
|
17
|
+
const isBrowser = typeof window !== "undefined";
|
|
18
|
+
|
|
15
19
|
let transitionSlideIn = $derived({
|
|
16
20
|
x: _state?.forward ? "100%" : "-100%",
|
|
17
21
|
opacity: 1,
|
|
18
22
|
width: "100%",
|
|
19
23
|
height: "100%",
|
|
20
|
-
duration: _state?.slideDuration ?? 1000
|
|
24
|
+
duration: isBrowser && prefersReducedMotion.current ? 0 : (_state?.slideDuration ?? 1000)
|
|
21
25
|
});
|
|
22
26
|
|
|
23
27
|
let transitionSlideOut = $derived({
|
|
@@ -25,7 +29,7 @@
|
|
|
25
29
|
opacity: 0.9,
|
|
26
30
|
width: "100%",
|
|
27
31
|
height: "100%",
|
|
28
|
-
duration: _state?.slideDuration ?? 1000
|
|
32
|
+
duration: isBrowser && prefersReducedMotion.current ? 0 : (_state?.slideDuration ?? 1000)
|
|
29
33
|
});
|
|
30
34
|
|
|
31
35
|
let imgClass = $derived(slide({ fit, class: clsx(theme, className) }));
|
|
@@ -33,11 +37,11 @@
|
|
|
33
37
|
|
|
34
38
|
{#if transition}
|
|
35
39
|
{#key image}
|
|
36
|
-
<img alt="..." {...image} transition:transition={{}} {...restProps} class={imgClass} />
|
|
40
|
+
<img alt="..." {...image} transition:transition={{}} {...restProps} class={imgClass} data-scope="slide" data-part="image" />
|
|
37
41
|
{/key}
|
|
38
42
|
{:else}
|
|
39
43
|
{#key image}
|
|
40
|
-
<img alt="..." {...image} {...restProps} out:fly={transitionSlideOut} in:fly={transitionSlideIn} class={imgClass} />
|
|
44
|
+
<img alt="..." {...image} {...restProps} out:fly={transitionSlideOut} in:fly={transitionSlideIn} class={imgClass} data-scope="slide" data-part="image" />
|
|
41
45
|
{/key}
|
|
42
46
|
{/if}
|
|
43
47
|
|
|
@@ -45,7 +49,7 @@
|
|
|
45
49
|
@component
|
|
46
50
|
[Go to docs](https://flowbite-svelte.com/)
|
|
47
51
|
## Type
|
|
48
|
-
[SlideProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
52
|
+
[SlideProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L516)
|
|
49
53
|
## Props
|
|
50
54
|
@prop image
|
|
51
55
|
@prop transition
|
|
@@ -2,7 +2,7 @@ import type { SlideProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SlideProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SlideProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L516)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop image
|
|
8
8
|
* @prop transition
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
import { thumbnail } from "./theme";
|
|
3
3
|
import type { ThumbnailProps } 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 { selected, class: className, ...restProps }: ThumbnailProps = $props();
|
|
8
8
|
|
|
9
9
|
const theme = $derived(getTheme("thumbnail"));
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
|
-
<img {...restProps} class={thumbnail({ selected, class: clsx(theme, className) })} />
|
|
12
|
+
<img {...restProps} class={thumbnail({ selected, class: clsx(theme, className) })} data-scope="thumbnail" data-part="image" />
|
|
13
13
|
|
|
14
14
|
<!--
|
|
15
15
|
@component
|
|
16
16
|
[Go to docs](https://flowbite-svelte.com/)
|
|
17
17
|
## Type
|
|
18
|
-
[ThumbnailProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
18
|
+
[ThumbnailProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L504)
|
|
19
19
|
## Props
|
|
20
20
|
@prop selected
|
|
21
21
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { ThumbnailProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ThumbnailProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ThumbnailProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L504)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop selected
|
|
8
8
|
* @prop class: className
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { ThumbnailsProps } from "..";
|
|
3
3
|
import Thumbnail from "./Thumbnail.svelte";
|
|
4
|
-
import { getTheme } from "../theme/themeUtils";
|
|
4
|
+
import { getTheme } from "../theme-provider/themeUtils";
|
|
5
5
|
import clsx from "clsx";
|
|
6
6
|
import { thumbnails } from "./theme";
|
|
7
7
|
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
});
|
|
32
32
|
</script>
|
|
33
33
|
|
|
34
|
-
<div class={clsx(thumbnails().base(), theme?.base, className)}>
|
|
34
|
+
<div class={clsx(thumbnails().base(), theme?.base, className)} data-scope="thumbnails" data-part="base">
|
|
35
35
|
{#each images as image, idx (image.src || idx)}
|
|
36
36
|
{@const selected = index === idx}
|
|
37
|
-
<button onclick={() => btnClick(idx)} aria-label={ariaLabel} aria-current={selected ? "true" : undefined}>
|
|
37
|
+
<button onclick={() => btnClick(idx)} aria-label={ariaLabel} aria-current={selected ? "true" : undefined} data-part="button">
|
|
38
38
|
{#if children}
|
|
39
39
|
{@render children({ image, selected, imgClass: clsx(theme?.img, styling?.img), Thumbnail })}
|
|
40
40
|
{:else}
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
@component
|
|
49
49
|
[Go to docs](https://flowbite-svelte.com/)
|
|
50
50
|
## Type
|
|
51
|
-
[ThumbnailsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
51
|
+
[ThumbnailsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L508)
|
|
52
52
|
## Props
|
|
53
53
|
@prop children
|
|
54
54
|
@prop images = []
|
|
@@ -2,7 +2,7 @@ import type { ThumbnailsProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ThumbnailsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ThumbnailsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L508)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop images = []
|
package/dist/carousel/theme.d.ts
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
|
-
import type { Classes } from "../theme/themeUtils";
|
|
1
|
+
import type { Classes } from "../theme-provider/themeUtils";
|
|
2
2
|
import { type VariantProps } from "tailwind-variants";
|
|
3
3
|
export type CarouselVariants = VariantProps<typeof carousel> & Classes<typeof carousel>;
|
|
4
4
|
export type CarouselIndicatorsVariants = VariantProps<typeof carouselIndicators> & Classes<typeof carouselIndicators>;
|
|
5
5
|
export type ControlButtonVariants = VariantProps<typeof controlButton> & Classes<typeof controlButton>;
|
|
6
6
|
export type ThumbnailsVariants = VariantProps<typeof thumbnails> & Classes<typeof thumbnails>;
|
|
7
|
+
/**
|
|
8
|
+
* Carousel component theme
|
|
9
|
+
*
|
|
10
|
+
* Anatomical Selectors:
|
|
11
|
+
* - data-scope="carousel" - Applied to the root carousel container
|
|
12
|
+
* - data-part="base" - The main carousel container (matches 'base' slot)
|
|
13
|
+
* - data-part="slide" - The slide element (matches 'slide' slot)
|
|
14
|
+
*/
|
|
7
15
|
export declare const carousel: import("tailwind-variants").TVReturnType<{}, {
|
|
8
16
|
base: string;
|
|
9
17
|
slide: string;
|
|
@@ -14,6 +22,15 @@ export declare const carousel: import("tailwind-variants").TVReturnType<{}, {
|
|
|
14
22
|
base: string;
|
|
15
23
|
slide: string;
|
|
16
24
|
}, undefined, unknown, unknown, undefined>>;
|
|
25
|
+
/**
|
|
26
|
+
* Carousel Indicators component theme
|
|
27
|
+
*
|
|
28
|
+
* Anatomical Selectors:
|
|
29
|
+
* - data-scope="carousel-indicators" - Applied to the indicators container
|
|
30
|
+
* - data-part="base" - The indicators container (matches 'base' slot)
|
|
31
|
+
* - data-part="button" - Each indicator button
|
|
32
|
+
* - data-part="indicator" - The indicator visual element (matches 'indicator' slot)
|
|
33
|
+
*/
|
|
17
34
|
export declare const carouselIndicators: import("tailwind-variants").TVReturnType<{
|
|
18
35
|
selected: {
|
|
19
36
|
true: {
|
|
@@ -81,6 +98,15 @@ export declare const carouselIndicators: import("tailwind-variants").TVReturnTyp
|
|
|
81
98
|
active: string;
|
|
82
99
|
inactive: string;
|
|
83
100
|
}, undefined, unknown, unknown, undefined>>;
|
|
101
|
+
/**
|
|
102
|
+
* Control Button component theme
|
|
103
|
+
*
|
|
104
|
+
* Anatomical Selectors:
|
|
105
|
+
* - data-scope="control-button" - Applied to the control button
|
|
106
|
+
* - data-part="base" - The button element (matches 'base' slot)
|
|
107
|
+
* - data-part="icon" - The icon container span (matches 'span' slot)
|
|
108
|
+
* - data-part="svg" - The SVG icon element
|
|
109
|
+
*/
|
|
84
110
|
export declare const controlButton: import("tailwind-variants").TVReturnType<{
|
|
85
111
|
forward: {
|
|
86
112
|
true: string;
|
|
@@ -106,6 +132,15 @@ export declare const controlButton: import("tailwind-variants").TVReturnType<{
|
|
|
106
132
|
base: string;
|
|
107
133
|
span: string;
|
|
108
134
|
}, undefined, unknown, unknown, undefined>>;
|
|
135
|
+
/**
|
|
136
|
+
* Thumbnails component theme
|
|
137
|
+
*
|
|
138
|
+
* Anatomical Selectors:
|
|
139
|
+
* - data-scope="thumbnails" - Applied to the thumbnails container
|
|
140
|
+
* - data-part="base" - The thumbnails container (matches 'base' slot)
|
|
141
|
+
* - data-part="button" - Each thumbnail button
|
|
142
|
+
* - data-part="img" - Thumbnail images (matches 'img' slot)
|
|
143
|
+
*/
|
|
109
144
|
export declare const thumbnails: import("tailwind-variants").TVReturnType<{
|
|
110
145
|
[key: string]: {
|
|
111
146
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
@@ -137,6 +172,13 @@ export declare const thumbnails: import("tailwind-variants").TVReturnType<{
|
|
|
137
172
|
base: string;
|
|
138
173
|
img: string;
|
|
139
174
|
}, undefined, unknown, unknown, undefined>>;
|
|
175
|
+
/**
|
|
176
|
+
* Thumbnail component theme
|
|
177
|
+
*
|
|
178
|
+
* Anatomical Selectors:
|
|
179
|
+
* - data-scope="thumbnail" - Applied to the thumbnail image
|
|
180
|
+
* - data-part="image" - The thumbnail image element
|
|
181
|
+
*/
|
|
140
182
|
export declare const thumbnail: import("tailwind-variants").TVReturnType<{
|
|
141
183
|
selected: {
|
|
142
184
|
true: string;
|
|
@@ -154,6 +196,13 @@ export declare const thumbnail: import("tailwind-variants").TVReturnType<{
|
|
|
154
196
|
};
|
|
155
197
|
}, undefined, "", unknown, unknown, undefined>>;
|
|
156
198
|
export type SlideVariants = VariantProps<typeof slide>;
|
|
199
|
+
/**
|
|
200
|
+
* Slide component theme
|
|
201
|
+
*
|
|
202
|
+
* Anatomical Selectors:
|
|
203
|
+
* - data-scope="slide" - Applied to the slide image
|
|
204
|
+
* - data-part="image" - The slide image element
|
|
205
|
+
*/
|
|
157
206
|
export declare const slide: import("tailwind-variants").TVReturnType<{
|
|
158
207
|
fit: {
|
|
159
208
|
contain: string;
|
package/dist/carousel/theme.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import { tv } from "tailwind-variants";
|
|
2
|
+
/**
|
|
3
|
+
* Carousel component theme
|
|
4
|
+
*
|
|
5
|
+
* Anatomical Selectors:
|
|
6
|
+
* - data-scope="carousel" - Applied to the root carousel container
|
|
7
|
+
* - data-part="base" - The main carousel container (matches 'base' slot)
|
|
8
|
+
* - data-part="slide" - The slide element (matches 'slide' slot)
|
|
9
|
+
*/
|
|
2
10
|
export const carousel = tv({
|
|
3
11
|
slots: {
|
|
4
12
|
base: "grid overflow-hidden relative rounded-base h-56 sm:h-64 xl:h-80 2xl:h-96",
|
|
@@ -8,6 +16,15 @@ export const carousel = tv({
|
|
|
8
16
|
compoundVariants: [],
|
|
9
17
|
defaultVariants: {}
|
|
10
18
|
});
|
|
19
|
+
/**
|
|
20
|
+
* Carousel Indicators component theme
|
|
21
|
+
*
|
|
22
|
+
* Anatomical Selectors:
|
|
23
|
+
* - data-scope="carousel-indicators" - Applied to the indicators container
|
|
24
|
+
* - data-part="base" - The indicators container (matches 'base' slot)
|
|
25
|
+
* - data-part="button" - Each indicator button
|
|
26
|
+
* - data-part="indicator" - The indicator visual element (matches 'indicator' slot)
|
|
27
|
+
*/
|
|
11
28
|
export const carouselIndicators = tv({
|
|
12
29
|
slots: {
|
|
13
30
|
base: "absolute start-1/2 z-30 flex -translate-x-1/2 space-x-3 rtl:translate-x-1/2 rtl:space-x-reverse",
|
|
@@ -26,6 +43,15 @@ export const carouselIndicators = tv({
|
|
|
26
43
|
}
|
|
27
44
|
}
|
|
28
45
|
});
|
|
46
|
+
/**
|
|
47
|
+
* Control Button component theme
|
|
48
|
+
*
|
|
49
|
+
* Anatomical Selectors:
|
|
50
|
+
* - data-scope="control-button" - Applied to the control button
|
|
51
|
+
* - data-part="base" - The button element (matches 'base' slot)
|
|
52
|
+
* - data-part="icon" - The icon container span (matches 'span' slot)
|
|
53
|
+
* - data-part="svg" - The SVG icon element
|
|
54
|
+
*/
|
|
29
55
|
export const controlButton = tv({
|
|
30
56
|
slots: {
|
|
31
57
|
base: "flex absolute top-0 z-30 justify-center items-center px-4 h-full group focus:outline-hidden text-white dark:text-gray-300",
|
|
@@ -38,12 +64,28 @@ export const controlButton = tv({
|
|
|
38
64
|
}
|
|
39
65
|
}
|
|
40
66
|
});
|
|
67
|
+
/**
|
|
68
|
+
* Thumbnails component theme
|
|
69
|
+
*
|
|
70
|
+
* Anatomical Selectors:
|
|
71
|
+
* - data-scope="thumbnails" - Applied to the thumbnails container
|
|
72
|
+
* - data-part="base" - The thumbnails container (matches 'base' slot)
|
|
73
|
+
* - data-part="button" - Each thumbnail button
|
|
74
|
+
* - data-part="img" - Thumbnail images (matches 'img' slot)
|
|
75
|
+
*/
|
|
41
76
|
export const thumbnails = tv({
|
|
42
77
|
slots: {
|
|
43
78
|
base: "flex flex-row justify-center bg-gray-100 w-full",
|
|
44
79
|
img: ""
|
|
45
80
|
}
|
|
46
81
|
});
|
|
82
|
+
/**
|
|
83
|
+
* Thumbnail component theme
|
|
84
|
+
*
|
|
85
|
+
* Anatomical Selectors:
|
|
86
|
+
* - data-scope="thumbnail" - Applied to the thumbnail image
|
|
87
|
+
* - data-part="image" - The thumbnail image element
|
|
88
|
+
*/
|
|
47
89
|
export const thumbnail = tv({
|
|
48
90
|
base: "",
|
|
49
91
|
variants: {
|
|
@@ -56,6 +98,13 @@ export const thumbnail = tv({
|
|
|
56
98
|
selected: false
|
|
57
99
|
}
|
|
58
100
|
});
|
|
101
|
+
/**
|
|
102
|
+
* Slide component theme
|
|
103
|
+
*
|
|
104
|
+
* Anatomical Selectors:
|
|
105
|
+
* - data-scope="slide" - Applied to the slide image
|
|
106
|
+
* - data-part="image" - The slide image element
|
|
107
|
+
*/
|
|
59
108
|
export const slide = tv({
|
|
60
109
|
base: "absolute block w-full h-full",
|
|
61
110
|
variants: {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import type { ClipboardProps } from "..";
|
|
5
5
|
import { clipboard } from "./theme";
|
|
6
6
|
import type { MouseEventHandler } from "svelte/elements";
|
|
7
|
-
import { getTheme } from "../theme/themeUtils";
|
|
7
|
+
import { getTheme } from "../theme-provider/themeUtils";
|
|
8
8
|
|
|
9
9
|
let { children, embedded = false, value = $bindable(""), success = $bindable(false), onclick, class: className = "", ...restProps }: ClipboardProps = $props();
|
|
10
10
|
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
};
|
|
39
39
|
</script>
|
|
40
40
|
|
|
41
|
-
<Button onclick={copyToClipboard} {...restProps} class={clipboard({ embedded, class: clsx(theme, className) })}>
|
|
41
|
+
<Button data-scope="clipboard" onclick={copyToClipboard} {...restProps} class={clipboard({ embedded, class: clsx(theme, className) })}>
|
|
42
42
|
{@render children?.(success)}
|
|
43
43
|
</Button>
|
|
44
44
|
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
@component
|
|
47
47
|
[Go to docs](https://flowbite-svelte.com/)
|
|
48
48
|
## Type
|
|
49
|
-
[ClipboardProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
49
|
+
[ClipboardProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L528)
|
|
50
50
|
## Props
|
|
51
51
|
@prop children
|
|
52
52
|
@prop embedded = false
|
|
@@ -2,7 +2,7 @@ import type { ClipboardProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ClipboardProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ClipboardProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L528)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop embedded = false
|
package/dist/context.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AccordionContextType, BottomNavContextType, CarouselContextType, DrawerContextType, DropdownContextType, PaginationContextType, ButtonToggleContextType, ListContextType, ToolbarContextType, ListGroupContextType, ButtonGroupContextType, NavbarState, NavbarBreakpoint, SidebarContextType, TableContextType, TabsContextType, SpeedCtxType } from "./types";
|
|
2
2
|
import type { SplitPaneContext } from "./types";
|
|
3
|
-
import type { ThemeConfig } from "./theme";
|
|
3
|
+
import type { ThemeConfig } from "./theme-provider";
|
|
4
4
|
declare const getAccordionContext: () => AccordionContextType | undefined, setAccordionContext: (context: AccordionContextType) => AccordionContextType;
|
|
5
5
|
export { getAccordionContext, setAccordionContext };
|
|
6
6
|
declare const getBottomNavContext: () => BottomNavContextType | undefined, setBottomNavContext: (context: BottomNavContextType) => BottomNavContextType;
|
|
@@ -2,12 +2,16 @@
|
|
|
2
2
|
import { darkmode } from "./theme";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import type { DarkmodeProps } from "..";
|
|
5
|
-
import { getTheme } from "../theme/themeUtils";
|
|
5
|
+
import { getTheme } from "../theme-provider/themeUtils";
|
|
6
6
|
|
|
7
7
|
// const THEME_PREFERENCE_KEY = 'color-theme';
|
|
8
|
-
let { class: className, lightIcon, darkIcon, size = "sm", ariaLabel = "Dark mode", ...restProps }: DarkmodeProps = $props();
|
|
8
|
+
let { class: className, lightIcon, darkIcon, size = "sm", ariaLabel = "Dark mode", classes, ...restProps }: DarkmodeProps = $props();
|
|
9
9
|
|
|
10
|
+
const styling = $derived(classes);
|
|
10
11
|
const theme = $derived(getTheme("darkmode"));
|
|
12
|
+
const { base, icon } = $derived(darkmode({ class: clsx(theme, className) }));
|
|
13
|
+
|
|
14
|
+
// const styles = $derived(darkmode({ class: clsx(theme, className) }));
|
|
11
15
|
|
|
12
16
|
const sizes = {
|
|
13
17
|
sm: "w-4 h-4",
|
|
@@ -34,8 +38,8 @@
|
|
|
34
38
|
</script>
|
|
35
39
|
</svelte:head>
|
|
36
40
|
|
|
37
|
-
<button onclick={toggleTheme} aria-label={ariaLabel} type="button" {...restProps} class={
|
|
38
|
-
<span class="hidden dark:block">
|
|
41
|
+
<button data-scope="dark-mode" data-part="base" onclick={toggleTheme} aria-label={ariaLabel} type="button" {...restProps} class={base({ class: clsx(theme?.base, className) })} tabindex={0}>
|
|
42
|
+
<span data-part="icon" class={icon({ class: clsx(theme?.icon, styling?.icon, "hidden dark:block") })}>
|
|
39
43
|
{#if lightIcon}
|
|
40
44
|
{@render lightIcon()}
|
|
41
45
|
{:else}
|
|
@@ -50,7 +54,7 @@
|
|
|
50
54
|
</svg>
|
|
51
55
|
{/if}
|
|
52
56
|
</span>
|
|
53
|
-
<span class="block dark:hidden">
|
|
57
|
+
<span data-part="icon" class={icon({ class: clsx(theme?.icon, styling?.icon, "block dark:hidden") })}>
|
|
54
58
|
{#if darkIcon}
|
|
55
59
|
{@render darkIcon()}
|
|
56
60
|
{:else}
|
|
@@ -71,12 +75,13 @@
|
|
|
71
75
|
@component
|
|
72
76
|
[Go to docs](https://flowbite-svelte.com/)
|
|
73
77
|
## Type
|
|
74
|
-
[DarkmodeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
78
|
+
[DarkmodeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L537)
|
|
75
79
|
## Props
|
|
76
80
|
@prop class: className
|
|
77
81
|
@prop lightIcon
|
|
78
82
|
@prop darkIcon
|
|
79
83
|
@prop size = "sm"
|
|
80
84
|
@prop ariaLabel = "Dark mode"
|
|
85
|
+
@prop classes
|
|
81
86
|
@prop ...restProps
|
|
82
87
|
-->
|
|
@@ -2,13 +2,14 @@ import type { DarkmodeProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [DarkmodeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [DarkmodeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L537)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop class: className
|
|
8
8
|
* @prop lightIcon
|
|
9
9
|
* @prop darkIcon
|
|
10
10
|
* @prop size = "sm"
|
|
11
11
|
* @prop ariaLabel = "Dark mode"
|
|
12
|
+
* @prop classes
|
|
12
13
|
* @prop ...restProps
|
|
13
14
|
*/
|
|
14
15
|
declare const DarkMode: import("svelte").Component<DarkmodeProps, {}, "">;
|
package/dist/darkmode/theme.d.ts
CHANGED
|
@@ -1 +1,34 @@
|
|
|
1
|
-
|
|
1
|
+
import { type VariantProps } from "tailwind-variants";
|
|
2
|
+
import type { Classes } from "../theme-provider/themeUtils";
|
|
3
|
+
export type DarkmodeVariants = VariantProps<typeof darkmode> & Classes<typeof darkmode>;
|
|
4
|
+
export declare const darkmode: import("tailwind-variants").TVReturnType<{
|
|
5
|
+
[key: string]: {
|
|
6
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
7
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
8
|
+
icon?: import("tailwind-merge").ClassNameValue;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
} | {
|
|
12
|
+
[x: string]: {
|
|
13
|
+
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
14
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
15
|
+
icon?: import("tailwind-merge").ClassNameValue;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
} | {}, {
|
|
19
|
+
base: string;
|
|
20
|
+
icon: string;
|
|
21
|
+
}, undefined, {
|
|
22
|
+
[key: string]: {
|
|
23
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
24
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
25
|
+
icon?: import("tailwind-merge").ClassNameValue;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
} | {}, {
|
|
29
|
+
base: string;
|
|
30
|
+
icon: string;
|
|
31
|
+
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
32
|
+
base: string;
|
|
33
|
+
icon: string;
|
|
34
|
+
}, undefined, unknown, unknown, undefined>>;
|
package/dist/darkmode/theme.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { tv } from "tailwind-variants";
|
|
2
2
|
export const darkmode = tv({
|
|
3
|
-
|
|
3
|
+
slots: {
|
|
4
|
+
base: "inline-flex hover:text-heading items-center justify-center text-body w-8 h-8 hover:bg-neutral-secondary-soft focus:outline-none focus:ring-2 focus:ring-neutral-tertiary rounded-base text-sm p-2",
|
|
5
|
+
icon: ""
|
|
6
|
+
}
|
|
4
7
|
});
|