flowbite-svelte 1.10.20 → 1.10.21
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/AccordionItem.svelte +6 -6
- package/dist/accordion/index.d.ts +1 -1
- package/dist/accordion/theme.d.ts +0 -4
- package/dist/alert/index.d.ts +1 -1
- package/dist/alert/theme.d.ts +0 -2
- package/dist/avatar/index.d.ts +1 -1
- package/dist/avatar/theme.d.ts +0 -2
- package/dist/badge/Badge.svelte +3 -3
- package/dist/badge/index.d.ts +1 -1
- package/dist/badge/theme.d.ts +0 -3
- package/dist/banner/Banner.svelte +4 -4
- package/dist/banner/index.d.ts +1 -1
- package/dist/banner/theme.d.ts +0 -3
- package/dist/bottom-navigation/BottomNav.svelte +3 -3
- package/dist/bottom-navigation/BottomNavHeader.svelte +3 -3
- package/dist/bottom-navigation/BottomNavItem.svelte +3 -3
- package/dist/bottom-navigation/index.d.ts +1 -1
- package/dist/bottom-navigation/theme.d.ts +0 -9
- package/dist/breadcrumb/Breadcrumb.svelte +3 -3
- package/dist/breadcrumb/BreadcrumbItem.svelte +6 -6
- package/dist/breadcrumb/index.d.ts +1 -1
- package/dist/breadcrumb/theme.d.ts +0 -5
- package/dist/button-group/index.d.ts +1 -1
- package/dist/button-group/theme.d.ts +0 -2
- package/dist/buttons/Button.svelte +2 -2
- package/dist/buttons/GradientButton.svelte +4 -4
- package/dist/buttons/index.d.ts +1 -1
- package/dist/buttons/theme.d.ts +0 -5
- package/dist/card/Card.svelte +4 -4
- package/dist/card/index.d.ts +1 -1
- package/dist/card/theme.d.ts +0 -3
- package/dist/carousel/Carousel.svelte +3 -3
- package/dist/carousel/Carousel.svelte.d.ts +1 -0
- package/dist/carousel/CarouselIndicators.svelte +5 -5
- package/dist/carousel/CarouselIndicators.svelte.d.ts +1 -1
- package/dist/carousel/ControlButton.svelte +3 -3
- 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 +1 -1
- package/dist/carousel/Slide.svelte.d.ts +1 -1
- package/dist/carousel/Thumbnail.svelte +1 -1
- package/dist/carousel/Thumbnail.svelte.d.ts +1 -1
- package/dist/carousel/Thumbnails.svelte +1 -1
- package/dist/carousel/Thumbnails.svelte.d.ts +1 -1
- package/dist/carousel/index.d.ts +1 -1
- package/dist/carousel/theme.d.ts +0 -9
- package/dist/clipboard/Clipboard.svelte +1 -1
- package/dist/clipboard/Clipboard.svelte.d.ts +1 -1
- package/dist/clipboard/index.d.ts +1 -1
- package/dist/clipboard/theme.d.ts +0 -2
- package/dist/darkmode/DarkMode.svelte +1 -1
- package/dist/darkmode/DarkMode.svelte.d.ts +1 -1
- package/dist/darkmode/index.d.ts +1 -1
- package/dist/darkmode/theme.d.ts +0 -2
- package/dist/datepicker/Datepicker.svelte +13 -13
- package/dist/datepicker/Datepicker.svelte.d.ts +1 -1
- package/dist/datepicker/index.d.ts +1 -1
- package/dist/datepicker/theme.d.ts +0 -3
- package/dist/device-mockups/Android.svelte +1 -1
- package/dist/device-mockups/Android.svelte.d.ts +1 -1
- package/dist/device-mockups/DefaultMockup.svelte +1 -1
- package/dist/device-mockups/DefaultMockup.svelte.d.ts +1 -1
- package/dist/device-mockups/Desktop.svelte +1 -1
- package/dist/device-mockups/Desktop.svelte.d.ts +1 -1
- package/dist/device-mockups/DeviceMockup.svelte +1 -1
- package/dist/device-mockups/DeviceMockup.svelte.d.ts +1 -1
- package/dist/device-mockups/Ios.svelte +1 -1
- package/dist/device-mockups/Ios.svelte.d.ts +1 -1
- package/dist/device-mockups/Laptop.svelte +1 -1
- package/dist/device-mockups/Laptop.svelte.d.ts +1 -1
- package/dist/device-mockups/Smartwatch.svelte +1 -1
- package/dist/device-mockups/Smartwatch.svelte.d.ts +1 -1
- package/dist/device-mockups/Tablet.svelte +1 -1
- package/dist/device-mockups/Tablet.svelte.d.ts +1 -1
- package/dist/drawer/Drawer.svelte +4 -4
- package/dist/drawer/Drawer.svelte.d.ts +1 -1
- package/dist/drawer/Drawerhead.svelte +5 -5
- package/dist/drawer/Drawerhead.svelte.d.ts +1 -1
- package/dist/drawer/index.d.ts +1 -1
- package/dist/drawer/theme.d.ts +3 -8
- package/dist/dropdown/Dropdown.svelte +1 -1
- package/dist/dropdown/Dropdown.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownDivider.svelte +1 -1
- package/dist/dropdown/DropdownDivider.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownGroup.svelte +1 -1
- package/dist/dropdown/DropdownGroup.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownHeader.svelte +1 -1
- package/dist/dropdown/DropdownHeader.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownItem.svelte +3 -3
- package/dist/dropdown/DropdownItem.svelte.d.ts +1 -1
- package/dist/dropdown/index.d.ts +1 -1
- package/dist/dropdown/theme.d.ts +0 -8
- package/dist/footer/Footer.svelte +1 -1
- package/dist/footer/Footer.svelte.d.ts +1 -1
- package/dist/footer/FooterBrand.svelte +5 -5
- package/dist/footer/FooterBrand.svelte.d.ts +1 -1
- package/dist/footer/FooterCopyright.svelte +5 -5
- package/dist/footer/FooterCopyright.svelte.d.ts +1 -1
- package/dist/footer/FooterIcon.svelte +1 -1
- package/dist/footer/FooterIcon.svelte.d.ts +1 -1
- package/dist/footer/FooterLink.svelte +4 -4
- package/dist/footer/FooterLink.svelte.d.ts +1 -1
- package/dist/footer/FooterLinkGroup.svelte +1 -1
- package/dist/footer/FooterLinkGroup.svelte.d.ts +1 -1
- package/dist/footer/index.d.ts +1 -1
- package/dist/footer/theme.d.ts +3 -13
- package/dist/forms/button-toggle/ButtonToggle.svelte +5 -5
- package/dist/forms/button-toggle/index.d.ts +1 -1
- package/dist/forms/button-toggle/theme.d.ts +0 -4
- package/dist/forms/checkbox/Checkbox.svelte +5 -5
- package/dist/forms/checkbox/CheckboxButton.svelte +3 -3
- package/dist/forms/checkbox/CheckboxButton.svelte.d.ts +1 -1
- package/dist/forms/checkbox/index.d.ts +1 -1
- package/dist/forms/checkbox/index.js +1 -1
- package/dist/forms/checkbox/theme.d.ts +1 -5
- package/dist/forms/checkbox/theme.js +1 -1
- package/dist/forms/dropzone/Dropzone.svelte +1 -1
- package/dist/forms/dropzone/Dropzone.svelte.d.ts +1 -1
- package/dist/forms/dropzone/index.d.ts +1 -1
- package/dist/forms/dropzone/theme.d.ts +0 -2
- package/dist/forms/fileupload/Fileupload.svelte +5 -5
- package/dist/forms/fileupload/Fileupload.svelte.d.ts +1 -1
- package/dist/forms/fileupload/index.d.ts +1 -1
- package/dist/forms/fileupload/theme.d.ts +0 -3
- package/dist/forms/floating-label/FloatingLabelInput.svelte +7 -7
- package/dist/forms/floating-label/FloatingLabelInput.svelte.d.ts +1 -1
- package/dist/forms/floating-label/index.d.ts +1 -1
- package/dist/forms/floating-label/theme.d.ts +0 -3
- package/dist/forms/helper/Helper.svelte +1 -1
- package/dist/forms/helper/Helper.svelte.d.ts +1 -1
- package/dist/forms/helper/index.d.ts +1 -1
- package/dist/forms/helper/theme.d.ts +0 -2
- package/dist/forms/input-addon/InputAddon.svelte +2 -5
- package/dist/forms/input-addon/InputAddon.svelte.d.ts +1 -1
- package/dist/forms/input-field/Input.svelte +10 -10
- package/dist/forms/input-field/index.d.ts +1 -1
- package/dist/forms/input-field/theme.d.ts +0 -3
- package/dist/forms/label/Label.svelte +1 -1
- package/dist/forms/label/Label.svelte.d.ts +1 -1
- package/dist/forms/label/index.d.ts +1 -1
- package/dist/forms/label/theme.d.ts +0 -2
- package/dist/forms/phoneinput/PhoneInput.svelte +8 -8
- package/dist/forms/phoneinput/index.d.ts +1 -1
- package/dist/forms/phoneinput/index.js +1 -1
- package/dist/forms/phoneinput/theme.d.ts +3 -10
- package/dist/forms/phoneinput/theme.js +1 -1
- package/dist/forms/radio/Radio.svelte +3 -3
- package/dist/forms/radio/Radio.svelte.d.ts +10 -3
- package/dist/forms/radio/RadioButton.svelte +2 -2
- package/dist/forms/radio/RadioButton.svelte.d.ts +10 -3
- package/dist/forms/radio/index.d.ts +1 -1
- package/dist/forms/radio/index.js +1 -1
- package/dist/forms/radio/theme.d.ts +1 -5
- package/dist/forms/radio/theme.js +1 -1
- package/dist/forms/range/Range.svelte +1 -1
- package/dist/forms/range/Range.svelte.d.ts +1 -1
- package/dist/forms/range/theme.d.ts +0 -2
- package/dist/forms/search/Search.svelte +8 -8
- package/dist/forms/search/Search.svelte.d.ts +1 -1
- package/dist/forms/search/index.d.ts +1 -1
- package/dist/forms/search/theme.d.ts +0 -3
- package/dist/forms/select/MultiSelect.svelte +4 -4
- package/dist/forms/select/MultiSelect.svelte.d.ts +10 -3
- package/dist/forms/select/Select.svelte +4 -4
- package/dist/forms/select/Select.svelte.d.ts +10 -3
- package/dist/forms/select/index.d.ts +1 -1
- package/dist/forms/select/theme.d.ts +0 -5
- package/dist/forms/tags/Tags.svelte +6 -6
- package/dist/forms/tags/Tags.svelte.d.ts +1 -1
- package/dist/forms/tags/index.d.ts +1 -1
- package/dist/forms/tags/theme.d.ts +6 -9
- package/dist/forms/textarea/Textarea.svelte +10 -10
- package/dist/forms/textarea/Textarea.svelte.d.ts +1 -1
- package/dist/forms/textarea/index.d.ts +1 -1
- package/dist/forms/textarea/theme.d.ts +0 -3
- package/dist/forms/timepicker/Timepicker.svelte +38 -38
- package/dist/forms/timepicker/Timepicker.svelte.d.ts +1 -1
- package/dist/forms/timepicker/index.d.ts +1 -1
- package/dist/forms/timepicker/theme.d.ts +0 -3
- package/dist/forms/toggle/Toggle.svelte +5 -5
- package/dist/forms/toggle/Toggle.svelte.d.ts +1 -1
- package/dist/forms/toggle/index.d.ts +1 -1
- package/dist/forms/toggle/theme.d.ts +0 -3
- package/dist/gallery/Gallery.svelte +4 -4
- package/dist/gallery/Gallery.svelte.d.ts +1 -1
- package/dist/gallery/index.d.ts +1 -1
- package/dist/gallery/theme.d.ts +0 -3
- package/dist/indicator/Indicator.svelte +1 -1
- package/dist/indicator/Indicator.svelte.d.ts +1 -1
- package/dist/indicator/index.d.ts +1 -1
- package/dist/indicator/theme.d.ts +0 -2
- package/dist/kbd/Kbd.svelte +1 -1
- package/dist/kbd/Kbd.svelte.d.ts +1 -1
- package/dist/kbd/index.d.ts +1 -1
- package/dist/kbd/theme.d.ts +0 -2
- package/dist/list-group/Listgroup.svelte +3 -3
- 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/index.d.ts +1 -1
- package/dist/list-group/theme.d.ts +1 -4
- package/dist/mega-menu/MegaMenu.svelte +7 -7
- package/dist/mega-menu/MegaMenu.svelte.d.ts +1 -1
- package/dist/mega-menu/index.d.ts +1 -1
- package/dist/mega-menu/theme.d.ts +0 -3
- package/dist/modal/Modal.svelte +10 -9
- package/dist/modal/Modal.svelte.d.ts +2 -1
- package/dist/modal/index.d.ts +1 -1
- package/dist/modal/theme.d.ts +24 -3
- package/dist/modal/theme.js +6 -0
- package/dist/navbar/Menu.svelte +2 -5
- 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 +5 -5
- package/dist/navbar/NavHamburger.svelte.d.ts +1 -1
- package/dist/navbar/NavLi.svelte +2 -2
- package/dist/navbar/NavLi.svelte.d.ts +1 -1
- package/dist/navbar/NavUl.svelte +7 -7
- package/dist/navbar/NavUl.svelte.d.ts +1 -1
- package/dist/navbar/Navbar.svelte +1 -1
- package/dist/navbar/Navbar.svelte.d.ts +1 -1
- package/dist/navbar/index.d.ts +1 -1
- package/dist/navbar/index.js +1 -1
- package/dist/navbar/theme.d.ts +0 -8
- package/dist/pagination/Pagination.svelte +1 -1
- package/dist/pagination/Pagination.svelte.d.ts +1 -1
- package/dist/pagination/PaginationButton.svelte +1 -1
- 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 +8 -8
- package/dist/pagination/PaginationNav.svelte.d.ts +1 -1
- package/dist/pagination/index.d.ts +1 -1
- package/dist/pagination/theme.d.ts +0 -6
- package/dist/popover/Popover.svelte +6 -6
- package/dist/popover/Popover.svelte.d.ts +1 -1
- package/dist/popover/index.d.ts +1 -1
- package/dist/popover/theme.d.ts +0 -3
- package/dist/progress/Progressbar.svelte +8 -8
- package/dist/progress/Progressbar.svelte.d.ts +1 -1
- package/dist/progress/Progressradial.svelte +9 -9
- package/dist/progress/Progressradial.svelte.d.ts +1 -1
- package/dist/progress/index.d.ts +1 -1
- package/dist/progress/theme.d.ts +0 -5
- package/dist/rating/AdvancedRating.svelte +7 -7
- package/dist/rating/AdvancedRating.svelte.d.ts +1 -1
- package/dist/rating/CustomIcon.svelte +1 -1
- package/dist/rating/CustomIcon.svelte.d.ts +1 -1
- package/dist/rating/Heart.svelte +1 -1
- package/dist/rating/Heart.svelte.d.ts +1 -1
- package/dist/rating/Rating.svelte +4 -4
- package/dist/rating/Rating.svelte.d.ts +1 -1
- package/dist/rating/RatingComment.svelte +1 -1
- package/dist/rating/RatingComment.svelte.d.ts +1 -1
- package/dist/rating/Review.svelte +9 -9
- package/dist/rating/Review.svelte.d.ts +1 -1
- package/dist/rating/ScoreRating.svelte +9 -9
- package/dist/rating/ScoreRating.svelte.d.ts +1 -1
- package/dist/rating/Star.svelte +1 -1
- package/dist/rating/Star.svelte.d.ts +1 -1
- package/dist/rating/Thumbup.svelte +1 -1
- package/dist/rating/Thumbup.svelte.d.ts +1 -1
- package/dist/rating/index.d.ts +1 -1
- package/dist/rating/theme.d.ts +6 -15
- package/dist/sidebar/Sidebar.svelte +10 -10
- package/dist/sidebar/Sidebar.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarBrand.svelte +5 -5
- package/dist/sidebar/SidebarBrand.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarButton.svelte +1 -1
- package/dist/sidebar/SidebarButton.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarCta.svelte +5 -5
- package/dist/sidebar/SidebarCta.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarDropdownWrapper.svelte +8 -8
- package/dist/sidebar/SidebarDropdownWrapper.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarGroup.svelte +1 -1
- package/dist/sidebar/SidebarGroup.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarItem.svelte +1 -1
- package/dist/sidebar/SidebarItem.svelte.d.ts +1 -1
- package/dist/sidebar/index.d.ts +1 -1
- package/dist/sidebar/theme.d.ts +9 -19
- package/dist/skeleton/CardPlaceholder.svelte +13 -13
- package/dist/skeleton/CardPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ImagePlaceholder.svelte +13 -13
- package/dist/skeleton/ImagePlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ListPlaceholder.svelte +8 -8
- package/dist/skeleton/ListPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/Skeleton.svelte +10 -10
- package/dist/skeleton/Skeleton.svelte.d.ts +1 -1
- package/dist/skeleton/TestimonialPlaceholder.svelte +9 -9
- package/dist/skeleton/TestimonialPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/TextPlaceholder.svelte +27 -27
- package/dist/skeleton/TextPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/VideoPlaceholder.svelte +1 -1
- package/dist/skeleton/VideoPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/WidgetPlaceholder.svelte +3 -3
- package/dist/skeleton/WidgetPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/index.d.ts +1 -1
- package/dist/skeleton/theme.d.ts +0 -16
- package/dist/speed-dial/SpeedDial.svelte +4 -4
- package/dist/speed-dial/SpeedDial.svelte.d.ts +1 -1
- package/dist/speed-dial/SpeedDialButton.svelte +4 -4
- package/dist/speed-dial/SpeedDialButton.svelte.d.ts +1 -1
- package/dist/speed-dial/SpeedDialTrigger.svelte +1 -1
- package/dist/speed-dial/SpeedDialTrigger.svelte.d.ts +1 -1
- package/dist/speed-dial/index.d.ts +1 -1
- package/dist/speed-dial/theme.d.ts +0 -5
- package/dist/spinner/Spinner.svelte +1 -1
- package/dist/spinner/Spinner.svelte.d.ts +1 -1
- package/dist/spinner/index.d.ts +1 -1
- package/dist/spinner/theme.d.ts +0 -2
- package/dist/stepindicator/StepIndicator.svelte +1 -1
- package/dist/stepindicator/StepIndicator.svelte.d.ts +1 -1
- package/dist/stepper/BreadcrumbStepper.svelte +6 -6
- package/dist/stepper/BreadcrumbStepper.svelte.d.ts +1 -1
- package/dist/stepper/DetailedStepper.svelte +5 -5
- package/dist/stepper/DetailedStepper.svelte.d.ts +1 -1
- package/dist/stepper/ProgressStepper.svelte +4 -5
- package/dist/stepper/ProgressStepper.svelte.d.ts +1 -1
- package/dist/stepper/Stepper.svelte +5 -5
- package/dist/stepper/Stepper.svelte.d.ts +1 -1
- package/dist/stepper/TimelineStepper.svelte +5 -5
- package/dist/stepper/TimelineStepper.svelte.d.ts +1 -1
- package/dist/stepper/VerticalStepper.svelte +6 -6
- package/dist/stepper/VerticalStepper.svelte.d.ts +1 -1
- package/dist/stepper/index.d.ts +1 -1
- package/dist/stepper/theme.d.ts +0 -13
- package/dist/table/Table.svelte +4 -4
- package/dist/table/Table.svelte.d.ts +1 -1
- package/dist/table/TableBody.svelte +2 -5
- package/dist/table/TableBody.svelte.d.ts +1 -1
- package/dist/table/TableBodyCell.svelte +1 -1
- package/dist/table/TableBodyCell.svelte.d.ts +1 -1
- package/dist/table/TableBodyRow.svelte +1 -1
- package/dist/table/TableBodyRow.svelte.d.ts +1 -1
- package/dist/table/TableHead.svelte +1 -1
- package/dist/table/TableHead.svelte.d.ts +1 -1
- package/dist/table/TableHeadCell.svelte +1 -1
- package/dist/table/TableHeadCell.svelte.d.ts +1 -1
- package/dist/table/TableSearch.svelte +9 -9
- package/dist/table/TableSearch.svelte.d.ts +1 -1
- package/dist/table/index.d.ts +1 -1
- package/dist/table/theme.d.ts +0 -9
- package/dist/tabs/TabItem.svelte +5 -5
- package/dist/tabs/TabItem.svelte.d.ts +1 -1
- package/dist/tabs/Tabs.svelte +6 -6
- package/dist/tabs/Tabs.svelte.d.ts +2 -2
- package/dist/tabs/index.d.ts +1 -1
- package/dist/tabs/theme.d.ts +0 -5
- package/dist/theme/index.d.ts +7 -0
- package/dist/theme/index.js +1 -2
- package/dist/theme/themes.d.ts +70 -0
- package/dist/theme/themes.js +75 -0
- package/dist/timeline/Activity.svelte +1 -1
- package/dist/timeline/Activity.svelte.d.ts +1 -1
- package/dist/timeline/ActivityItem.svelte +11 -11
- package/dist/timeline/ActivityItem.svelte.d.ts +2 -2
- package/dist/timeline/Group.svelte +6 -6
- package/dist/timeline/Group.svelte.d.ts +2 -2
- package/dist/timeline/GroupItem.svelte +11 -11
- package/dist/timeline/GroupItem.svelte.d.ts +2 -2
- package/dist/timeline/Timeline.svelte +1 -1
- package/dist/timeline/Timeline.svelte.d.ts +1 -1
- package/dist/timeline/TimelineItem.svelte +9 -9
- package/dist/timeline/TimelineItem.svelte.d.ts +2 -2
- package/dist/timeline/index.d.ts +1 -1
- package/dist/timeline/theme.d.ts +9 -20
- package/dist/toast/Toast.svelte +6 -6
- package/dist/toast/Toast.svelte.d.ts +1 -1
- package/dist/toast/index.d.ts +1 -1
- package/dist/toast/theme.d.ts +0 -3
- package/dist/toolbar/Toolbar.svelte +4 -4
- package/dist/toolbar/Toolbar.svelte.d.ts +1 -1
- package/dist/toolbar/ToolbarButton.svelte +1 -1
- package/dist/toolbar/ToolbarButton.svelte.d.ts +1 -1
- package/dist/toolbar/ToolbarGroup.svelte +1 -1
- package/dist/toolbar/ToolbarGroup.svelte.d.ts +1 -1
- package/dist/toolbar/index.d.ts +1 -1
- package/dist/toolbar/theme.d.ts +0 -5
- package/dist/tooltip/Tooltip.svelte +1 -1
- package/dist/tooltip/Tooltip.svelte.d.ts +1 -1
- package/dist/tooltip/index.d.ts +1 -1
- package/dist/tooltip/theme.d.ts +0 -3
- package/dist/types.d.ts +4 -5
- package/dist/typography/anchor/A.svelte +2 -2
- package/dist/typography/anchor/A.svelte.d.ts +1 -1
- package/dist/typography/anchor/index.d.ts +1 -1
- package/dist/typography/anchor/theme.d.ts +0 -2
- package/dist/typography/blockquote/Blockquote.svelte +1 -1
- package/dist/typography/blockquote/Blockquote.svelte.d.ts +1 -1
- package/dist/typography/blockquote/theme.d.ts +0 -2
- package/dist/typography/descriptionlist/DescriptionList.svelte +1 -1
- package/dist/typography/descriptionlist/DescriptionList.svelte.d.ts +1 -1
- package/dist/typography/descriptionlist/index.d.ts +1 -1
- package/dist/typography/descriptionlist/theme.d.ts +0 -2
- package/dist/typography/heading/Heading.svelte +1 -1
- package/dist/typography/heading/Heading.svelte.d.ts +1 -1
- package/dist/typography/heading/index.d.ts +1 -1
- package/dist/typography/heading/theme.d.ts +0 -2
- package/dist/typography/hr/Hr.svelte +6 -6
- package/dist/typography/hr/Hr.svelte.d.ts +1 -1
- package/dist/typography/hr/index.d.ts +1 -1
- package/dist/typography/hr/theme.d.ts +0 -3
- package/dist/typography/img/EnhancedImg.svelte +7 -7
- package/dist/typography/img/EnhancedImg.svelte.d.ts +1 -1
- package/dist/typography/img/Img.svelte +6 -6
- package/dist/typography/img/Img.svelte.d.ts +1 -1
- package/dist/typography/img/index.d.ts +1 -1
- package/dist/typography/img/theme.d.ts +0 -3
- package/dist/typography/layout/Layout.svelte +1 -1
- package/dist/typography/layout/Layout.svelte.d.ts +1 -1
- package/dist/typography/layout/index.d.ts +1 -1
- package/dist/typography/layout/theme.d.ts +0 -2
- package/dist/typography/list/Li.svelte +2 -5
- package/dist/typography/list/Li.svelte.d.ts +1 -1
- package/dist/typography/list/List.svelte +1 -1
- package/dist/typography/list/List.svelte.d.ts +1 -1
- package/dist/typography/list/index.d.ts +1 -1
- package/dist/typography/list/theme.d.ts +0 -2
- package/dist/typography/mark/Mark.svelte +1 -2
- package/dist/typography/mark/Mark.svelte.d.ts +1 -1
- package/dist/typography/mark/index.d.ts +1 -1
- package/dist/typography/mark/theme.d.ts +0 -2
- package/dist/typography/paragraph/P.svelte +2 -2
- package/dist/typography/paragraph/P.svelte.d.ts +1 -1
- package/dist/typography/paragraph/index.d.ts +1 -1
- package/dist/typography/paragraph/theme.d.ts +0 -2
- package/dist/typography/secondary/Secondary.svelte +1 -1
- package/dist/typography/secondary/Secondary.svelte.d.ts +1 -1
- package/dist/typography/secondary/index.d.ts +1 -1
- package/dist/typography/secondary/theme.d.ts +0 -2
- package/dist/typography/span/Span.svelte +1 -1
- package/dist/typography/span/Span.svelte.d.ts +1 -1
- package/dist/typography/span/index.d.ts +1 -1
- package/dist/typography/span/theme.d.ts +0 -2
- package/dist/utils/Arrow.svelte +1 -1
- package/dist/utils/Arrow.svelte.d.ts +1 -1
- package/dist/utils/Popper.svelte +1 -1
- package/dist/utils/Popper.svelte.d.ts +1 -1
- package/dist/video/Video.svelte +1 -1
- package/dist/video/Video.svelte.d.ts +1 -1
- package/package.json +10 -10
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
import type { ClassValue } from "svelte/elements";
|
|
3
2
|
import type { Classes } from "../../theme/themeUtils";
|
|
4
3
|
export type SearchVariants = VariantProps<typeof search> & Classes<typeof search>;
|
|
5
|
-
export type SearchSlots = keyof typeof search.slots;
|
|
6
|
-
export type SearchTheme = Partial<Record<SearchSlots, ClassValue>>;
|
|
7
4
|
export declare const search: import("tailwind-variants").TVReturnType<{
|
|
8
5
|
size: {
|
|
9
6
|
sm: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts" generics="T">
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { Badge, CloseButton, type MultiSelectProps, type SelectOptionType } from "../..";
|
|
4
|
-
import { multiSelect
|
|
4
|
+
import { multiSelect } from ".";
|
|
5
5
|
import { getTheme, warnThemeDeprecation } from "../../theme/themeUtils";
|
|
6
6
|
import { onMount } from "svelte";
|
|
7
7
|
|
|
@@ -197,11 +197,11 @@
|
|
|
197
197
|
{/each}
|
|
198
198
|
</select>
|
|
199
199
|
|
|
200
|
-
<div bind:this={multiSelectContainer} {...restProps} onclick={toggleDropdown} onblur={handleBlur} onkeydown={handleKeyDown} tabindex="0" role="listbox" class={base({ size, class: clsx(
|
|
200
|
+
<div bind:this={multiSelectContainer} {...restProps} onclick={toggleDropdown} onblur={handleBlur} onkeydown={handleKeyDown} tabindex="0" role="listbox" class={base({ size, class: clsx(theme?.base, className) })}>
|
|
201
201
|
{#if !selectItems.length}
|
|
202
202
|
<span class={placeholderSpan({ class: clsx(classes?.placeholder) })}>{placeholder}</span>
|
|
203
203
|
{/if}
|
|
204
|
-
<span class={select({ class: clsx(
|
|
204
|
+
<span class={select({ class: clsx(theme?.select, classes?.span) })}>
|
|
205
205
|
{#if selectItems.length}
|
|
206
206
|
{#each selectItems as item (item.name)}
|
|
207
207
|
{#if children}
|
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
</span>
|
|
217
217
|
<div class="ms-auto flex items-center gap-2">
|
|
218
218
|
{#if selectItems.length}
|
|
219
|
-
<CloseButton {size} onclick={clearAll} color="none" class={close({ class: clsx(
|
|
219
|
+
<CloseButton {size} onclick={clearAll} color="none" class={close({ class: clsx(theme?.close, classes?.close) })} {disabled} />
|
|
220
220
|
{/if}
|
|
221
221
|
|
|
222
222
|
<svg class={clsx(svg(), disabled && "cursor-not-allowed", classes?.svg)} aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 10 6">
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { type MultiSelectProps } from "../..";
|
|
2
|
+
declare function $$render<T>(): {
|
|
3
|
+
props: MultiSelectProps<T>;
|
|
4
|
+
exports: {};
|
|
5
|
+
bindings: "value";
|
|
6
|
+
slots: {};
|
|
7
|
+
events: {};
|
|
8
|
+
};
|
|
2
9
|
declare class __sveltets_Render<T> {
|
|
3
|
-
props():
|
|
4
|
-
events():
|
|
5
|
-
slots():
|
|
10
|
+
props(): ReturnType<typeof $$render<T>>['props'];
|
|
11
|
+
events(): ReturnType<typeof $$render<T>>['events'];
|
|
12
|
+
slots(): ReturnType<typeof $$render<T>>['slots'];
|
|
6
13
|
bindings(): "value";
|
|
7
14
|
exports(): {};
|
|
8
15
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts" generics="T">
|
|
2
|
-
import { select as selectCls
|
|
2
|
+
import { select as selectCls } from ".";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { type SelectProps, CloseButton } from "../..";
|
|
5
5
|
import { getTheme, warnThemeDeprecation } from "../../theme/themeUtils";
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
};
|
|
32
32
|
</script>
|
|
33
33
|
|
|
34
|
-
<div class={base({ class: clsx(
|
|
35
|
-
<select {disabled} {...restProps} bind:value bind:this={elementRef} class={select({ class: clsx(
|
|
34
|
+
<div class={base({ class: clsx(theme?.base, className) })}>
|
|
35
|
+
<select {disabled} {...restProps} bind:value bind:this={elementRef} class={select({ class: clsx(theme?.select, styling.select) })}>
|
|
36
36
|
{#if placeholder}
|
|
37
37
|
<option disabled selected={value === "" || value === undefined} value="">{placeholder}</option>
|
|
38
38
|
{/if}
|
|
@@ -48,6 +48,6 @@
|
|
|
48
48
|
{/if}
|
|
49
49
|
</select>
|
|
50
50
|
{#if value !== undefined && value !== "" && clearable}
|
|
51
|
-
<CloseButton onclick={clearAll} class={close({ class: clsx(
|
|
51
|
+
<CloseButton onclick={clearAll} class={close({ class: clsx(theme?.close, styling.close) })} color={clearableColor} aria-label="Clear search value" svgClass={clsx(styling.svg)} {disabled} />
|
|
52
52
|
{/if}
|
|
53
53
|
</div>
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { type SelectProps } from "../..";
|
|
2
|
+
declare function $$render<T>(): {
|
|
3
|
+
props: SelectProps<T>;
|
|
4
|
+
exports: {};
|
|
5
|
+
bindings: "value" | "elementRef";
|
|
6
|
+
slots: {};
|
|
7
|
+
events: {};
|
|
8
|
+
};
|
|
2
9
|
declare class __sveltets_Render<T> {
|
|
3
|
-
props():
|
|
4
|
-
events():
|
|
5
|
-
slots():
|
|
10
|
+
props(): ReturnType<typeof $$render<T>>['props'];
|
|
11
|
+
events(): ReturnType<typeof $$render<T>>['events'];
|
|
12
|
+
slots(): ReturnType<typeof $$render<T>>['slots'];
|
|
6
13
|
bindings(): "value" | "elementRef";
|
|
7
14
|
exports(): {};
|
|
8
15
|
}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
import type { ClassValue } from "svelte/elements";
|
|
3
2
|
import type { Classes } from "../../theme/themeUtils";
|
|
4
3
|
export type SelectVariants = VariantProps<typeof select> & Classes<typeof select>;
|
|
5
4
|
export type MultiSelectVariants = VariantProps<typeof multiSelect> & Classes<typeof multiSelect>;
|
|
6
|
-
export type SelectSlots = keyof typeof select.slots;
|
|
7
|
-
export type SelectTheme = Partial<Record<SelectSlots, ClassValue>>;
|
|
8
|
-
export type MultiSelectSlots = keyof typeof multiSelect.slots;
|
|
9
|
-
export type MultiSelectTheme = Partial<Record<MultiSelectSlots, ClassValue>>;
|
|
10
5
|
export declare const select: import("tailwind-variants").TVReturnType<{
|
|
11
6
|
underline: {
|
|
12
7
|
true: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { type TagsProps, CloseButton, P } from "../..";
|
|
4
|
-
import { tags
|
|
4
|
+
import { tags } from "./theme";
|
|
5
5
|
import { getTheme, warnThemeDeprecation } from "../../theme/themeUtils";
|
|
6
6
|
import { computePosition, offset, flip, shift, autoUpdate } from "@floating-ui/dom";
|
|
7
7
|
import { onDestroy } from "svelte";
|
|
@@ -150,15 +150,15 @@
|
|
|
150
150
|
<div
|
|
151
151
|
{...restProps}
|
|
152
152
|
class={base({
|
|
153
|
-
class: clsx(
|
|
153
|
+
class: clsx(theme?.base, className)
|
|
154
154
|
})}
|
|
155
155
|
>
|
|
156
156
|
{#each value as tag, index}
|
|
157
|
-
<div class={tagCls({ class: clsx(
|
|
158
|
-
<span class={spanCls({ class: clsx(
|
|
157
|
+
<div class={tagCls({ class: clsx(theme?.tag, styling.tag) })}>
|
|
158
|
+
<span class={spanCls({ class: clsx(theme?.span, styling.span) })}>
|
|
159
159
|
{tag}
|
|
160
160
|
</span>
|
|
161
|
-
<CloseButton size={closeBtnSize} class={close({ class: clsx(
|
|
161
|
+
<CloseButton size={closeBtnSize} class={close({ class: clsx(theme?.close, styling.close) })} onclick={() => deleteField(index)} />
|
|
162
162
|
</div>
|
|
163
163
|
{/each}
|
|
164
164
|
<div class="relative w-full" bind:this={inputContainer}>
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
@component
|
|
195
195
|
[Go to docs](https://flowbite-svelte.com/)
|
|
196
196
|
## Type
|
|
197
|
-
[TagsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
197
|
+
[TagsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L889)
|
|
198
198
|
## Props
|
|
199
199
|
@prop value = $bindable([])
|
|
200
200
|
@prop placeholder = "Enter tags"
|
|
@@ -2,7 +2,7 @@ import { type TagsProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [TagsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [TagsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L889)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop value = $bindable([])
|
|
8
8
|
* @prop placeholder = "Enter tags"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Tags } from "./Tags.svelte";
|
|
2
|
-
export { tags
|
|
2
|
+
export { tags } from "./theme";
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
import type { ClassValue } from "svelte/elements";
|
|
3
2
|
import type { Classes } from "../../theme/themeUtils";
|
|
4
3
|
export type TagsVariants = VariantProps<typeof tags> & Classes<typeof tags>;
|
|
5
|
-
export type TagsSlots = keyof typeof tags.slots;
|
|
6
|
-
export type TagsTheme = Partial<Record<TagsSlots, ClassValue>>;
|
|
7
4
|
export declare const tags: import("tailwind-variants").TVReturnType<{
|
|
8
5
|
[key: string]: {
|
|
9
6
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
10
|
-
|
|
7
|
+
input?: import("tailwind-variants").ClassValue;
|
|
11
8
|
span?: import("tailwind-variants").ClassValue;
|
|
9
|
+
base?: import("tailwind-variants").ClassValue;
|
|
12
10
|
close?: import("tailwind-variants").ClassValue;
|
|
13
11
|
tag?: import("tailwind-variants").ClassValue;
|
|
14
|
-
input?: import("tailwind-variants").ClassValue;
|
|
15
12
|
error?: import("tailwind-variants").ClassValue;
|
|
16
13
|
info?: import("tailwind-variants").ClassValue;
|
|
17
14
|
warning?: import("tailwind-variants").ClassValue;
|
|
@@ -20,11 +17,11 @@ export declare const tags: import("tailwind-variants").TVReturnType<{
|
|
|
20
17
|
} | {
|
|
21
18
|
[x: string]: {
|
|
22
19
|
[x: string]: import("tailwind-variants").ClassValue | {
|
|
23
|
-
|
|
20
|
+
input?: import("tailwind-variants").ClassValue;
|
|
24
21
|
span?: import("tailwind-variants").ClassValue;
|
|
22
|
+
base?: import("tailwind-variants").ClassValue;
|
|
25
23
|
close?: import("tailwind-variants").ClassValue;
|
|
26
24
|
tag?: import("tailwind-variants").ClassValue;
|
|
27
|
-
input?: import("tailwind-variants").ClassValue;
|
|
28
25
|
error?: import("tailwind-variants").ClassValue;
|
|
29
26
|
info?: import("tailwind-variants").ClassValue;
|
|
30
27
|
warning?: import("tailwind-variants").ClassValue;
|
|
@@ -42,11 +39,11 @@ export declare const tags: import("tailwind-variants").TVReturnType<{
|
|
|
42
39
|
}, undefined, {
|
|
43
40
|
[key: string]: {
|
|
44
41
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
45
|
-
|
|
42
|
+
input?: import("tailwind-variants").ClassValue;
|
|
46
43
|
span?: import("tailwind-variants").ClassValue;
|
|
44
|
+
base?: import("tailwind-variants").ClassValue;
|
|
47
45
|
close?: import("tailwind-variants").ClassValue;
|
|
48
46
|
tag?: import("tailwind-variants").ClassValue;
|
|
49
|
-
input?: import("tailwind-variants").ClassValue;
|
|
50
47
|
error?: import("tailwind-variants").ClassValue;
|
|
51
48
|
info?: import("tailwind-variants").ClassValue;
|
|
52
49
|
warning?: import("tailwind-variants").ClassValue;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { textarea
|
|
2
|
+
import { textarea } from ".";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { type TextareaProps, CloseButton } from "../..";
|
|
5
5
|
import { getTheme, warnThemeDeprecation } from "../../theme/themeUtils";
|
|
@@ -38,33 +38,33 @@
|
|
|
38
38
|
};
|
|
39
39
|
</script>
|
|
40
40
|
|
|
41
|
-
<div class={div({ class: clsx(
|
|
41
|
+
<div class={div({ class: clsx(theme?.div, styling.div) })}>
|
|
42
42
|
{#if !wrapped}
|
|
43
43
|
<textarea bind:value bind:this={elementRef} {disabled} {...restProps} class={wrapper({ class: clsx(className, classes?.wrapper) })}></textarea>
|
|
44
44
|
{:else}
|
|
45
|
-
<div class={wrapper({ class: clsx(
|
|
45
|
+
<div class={wrapper({ class: clsx(theme?.wrapper, classes?.wrapper) })}>
|
|
46
46
|
{#if header}
|
|
47
|
-
<div class={headerCls({ class: clsx(
|
|
47
|
+
<div class={headerCls({ class: clsx(theme?.header, styling.header) })}>
|
|
48
48
|
{@render header()}
|
|
49
49
|
</div>
|
|
50
50
|
{/if}
|
|
51
|
-
<div class={inner({ class: clsx(
|
|
51
|
+
<div class={inner({ class: clsx(theme?.inner, styling.inner) })}>
|
|
52
52
|
{#if addon}
|
|
53
|
-
<div class={addonCls({ class: clsx(
|
|
53
|
+
<div class={addonCls({ class: clsx(theme?.addon, styling.addon) })}>
|
|
54
54
|
{@render addon()}
|
|
55
55
|
</div>
|
|
56
56
|
{/if}
|
|
57
|
-
<textarea bind:value bind:this={elementRef} {disabled} {...restProps} class={base({ class: clsx(
|
|
57
|
+
<textarea bind:value bind:this={elementRef} {disabled} {...restProps} class={base({ class: clsx(theme?.base, className) })}></textarea>
|
|
58
58
|
</div>
|
|
59
59
|
{#if footer}
|
|
60
|
-
<div class={footerCls({ class: clsx(
|
|
60
|
+
<div class={footerCls({ class: clsx(theme?.footer, styling.footer) })}>
|
|
61
61
|
{@render footer()}
|
|
62
62
|
</div>
|
|
63
63
|
{/if}
|
|
64
64
|
</div>
|
|
65
65
|
{/if}
|
|
66
66
|
{#if value !== undefined && value !== "" && clearable}
|
|
67
|
-
<CloseButton onclick={clearAll} class={close({ class: clsx(
|
|
67
|
+
<CloseButton onclick={clearAll} class={close({ class: clsx(theme?.close, styling.close) })} color={clearableColor} aria-label="Clear search value" svgClass={clsx(styling.svg)} />
|
|
68
68
|
{/if}
|
|
69
69
|
</div>
|
|
70
70
|
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
@component
|
|
73
73
|
[Go to docs](https://flowbite-svelte.com/)
|
|
74
74
|
## Type
|
|
75
|
-
[TextareaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
75
|
+
[TextareaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L942)
|
|
76
76
|
## Props
|
|
77
77
|
@prop header
|
|
78
78
|
@prop footer
|
|
@@ -2,7 +2,7 @@ import { type TextareaProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [TextareaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [TextareaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L942)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop header
|
|
8
8
|
* @prop footer
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Textarea } from "./Textarea.svelte";
|
|
2
|
-
export { textarea
|
|
2
|
+
export { textarea } from "./theme";
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
import type { ClassValue } from "svelte/elements";
|
|
3
2
|
import type { Classes } from "../../theme/themeUtils";
|
|
4
3
|
export type TextareaVariants = VariantProps<typeof textarea> & Classes<typeof textarea>;
|
|
5
|
-
export type TextareaSlots = keyof typeof textarea.slots;
|
|
6
|
-
export type TextareaTheme = Partial<Record<TextareaSlots, ClassValue>>;
|
|
7
4
|
export declare const textarea: import("tailwind-variants").TVReturnType<{
|
|
8
5
|
wrapped: {
|
|
9
6
|
false: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { Dropdown, DropdownItem, Button, Input, ButtonGroup, Select, Label, Toggle, type TimepickerProps, type TimePickerOption } from "../..";
|
|
4
|
-
import { timepicker
|
|
4
|
+
import { timepicker } from ".";
|
|
5
5
|
import { parse, isValid, isBefore, isAfter } from "date-fns";
|
|
6
6
|
import { getTheme } from "../../theme/themeUtils";
|
|
7
7
|
|
|
@@ -155,10 +155,10 @@
|
|
|
155
155
|
</script>
|
|
156
156
|
|
|
157
157
|
{#if type !== "inline-buttons"}
|
|
158
|
-
<ButtonGroup {size} class={styles.buttonGroup({ class: clsx(
|
|
158
|
+
<ButtonGroup {size} class={styles.buttonGroup({ class: clsx(theme?.buttonGroup, divClass) })}>
|
|
159
159
|
{#if type === "default"}
|
|
160
|
-
<Input {id} color={inputColor} type="time" {min} {max} {required} {disabled} class={styles.input({ class: clsx(styles.inputWithIcon(),
|
|
161
|
-
<div class={styles.iconWrapper({ class: clsx(
|
|
160
|
+
<Input {id} color={inputColor} type="time" {min} {max} {required} {disabled} class={styles.input({ class: clsx(styles.inputWithIcon(), theme?.input, inputClass) })} bind:value oninput={(e) => handleTimeChange(e)} onchange={(e) => handleTimeChange(e)} />
|
|
161
|
+
<div class={styles.iconWrapper({ class: clsx(theme?.iconWrapper) })}>
|
|
162
162
|
{#if Icon}
|
|
163
163
|
<Icon class={iconClass} />
|
|
164
164
|
{:else}
|
|
@@ -168,13 +168,13 @@
|
|
|
168
168
|
{/if}
|
|
169
169
|
</div>
|
|
170
170
|
{:else if type === "select"}
|
|
171
|
-
<Input {id} color={inputColor} type="time" {min} {max} {required} {disabled} class={styles.input({ class: clsx(
|
|
172
|
-
<Select selectClass={styles.select({ class: clsx(
|
|
171
|
+
<Input {id} color={inputColor} type="time" {min} {max} {required} {disabled} class={styles.input({ class: clsx(theme?.input, inputClass) })} bind:value oninput={(e) => handleTimeChange(e)} onchange={(e) => handleTimeChange(e)} />
|
|
172
|
+
<Select selectClass={styles.select({ class: clsx(theme?.select, selectClass) })} onchange={handleOptionSelect} items={options} value={selectedOption} />
|
|
173
173
|
{:else if type === "dropdown"}
|
|
174
|
-
<Input {id} color={inputColor} type="time" {min} {max} {required} {disabled} class={styles.input({ class: clsx(
|
|
175
|
-
<Button color={buttonColor} class={styles.button({ class: clsx(
|
|
174
|
+
<Input {id} color={inputColor} type="time" {min} {max} {required} {disabled} class={styles.input({ class: clsx(theme?.input, inputClass) })} bind:value oninput={(e) => handleTimeChange(e)} onchange={(e) => handleTimeChange(e)} />
|
|
175
|
+
<Button color={buttonColor} class={styles.button({ class: clsx(theme?.button) })}>
|
|
176
176
|
{optionLabel}
|
|
177
|
-
<svg class={styles.buttonIcon({ class: clsx(
|
|
177
|
+
<svg class={styles.buttonIcon({ class: clsx(theme?.buttonIcon) })} aria-hidden="true" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
178
178
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path>
|
|
179
179
|
</svg>
|
|
180
180
|
</Button>
|
|
@@ -186,69 +186,69 @@
|
|
|
186
186
|
{/each}
|
|
187
187
|
</Dropdown>
|
|
188
188
|
{:else if type === "range"}
|
|
189
|
-
<div class={styles.rangeInputWrapper({ class: clsx(
|
|
190
|
-
<Input {id} color={inputColor} type="time" {min} {max} {required} {disabled} class={styles.input({ class: clsx(
|
|
191
|
-
<button type="button" class={styles.rangeButton({ class: clsx(
|
|
189
|
+
<div class={styles.rangeInputWrapper({ class: clsx(theme?.rangeInputWrapper) })}>
|
|
190
|
+
<Input {id} color={inputColor} type="time" {min} {max} {required} {disabled} class={styles.input({ class: clsx(theme?.rangeInput, styles.rangeInput(), inputClass) })} bind:value oninput={(e) => handleTimeChange(e)} onchange={(e) => handleTimeChange(e)} />
|
|
191
|
+
<button type="button" class={styles.rangeButton({ class: clsx(theme?.rangeButton) })} onclick={() => document.getElementById(id)?.click()} aria-label="Open time picker">
|
|
192
192
|
{#if Icon}
|
|
193
193
|
<Icon class={iconClass} />
|
|
194
194
|
{:else}
|
|
195
|
-
<svg class={styles.icon({ class: clsx(
|
|
195
|
+
<svg class={styles.icon({ class: clsx(theme?.icon) })} aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20">
|
|
196
196
|
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6v4l3.276 3.276M19 10a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" />
|
|
197
197
|
</svg>
|
|
198
198
|
{/if}
|
|
199
199
|
</button>
|
|
200
200
|
</div>
|
|
201
|
-
<span class={styles.rangeSeparator({ class: clsx(
|
|
202
|
-
<div class={styles.rangeInputWrapper({ class: clsx(
|
|
203
|
-
<Input id={endId} color={inputColor} type="time" {min} {max} {required} {disabled} class={styles.input({ class: clsx(styles.rangeInput(),
|
|
204
|
-
<button type="button" class={styles.rangeButton({ class: clsx(
|
|
201
|
+
<span class={styles.rangeSeparator({ class: clsx(theme?.rangeSeparator) })}>-</span>
|
|
202
|
+
<div class={styles.rangeInputWrapper({ class: clsx(theme?.rangeInputWrapper) })}>
|
|
203
|
+
<Input id={endId} color={inputColor} type="time" {min} {max} {required} {disabled} class={styles.input({ class: clsx(styles.rangeInput(), theme?.rangeInput, inputClass) })} bind:value={endValue} oninput={(e) => handleTimeChange(e, true)} onchange={(e) => handleTimeChange(e, true)} />
|
|
204
|
+
<button type="button" class={styles.rangeButton({ class: clsx(theme?.rangeButton) })} onclick={() => document.getElementById(endId)?.click()} aria-label="Open end time picker">
|
|
205
205
|
{#if Icon}
|
|
206
206
|
<Icon class={iconClass} />
|
|
207
207
|
{:else}
|
|
208
|
-
<svg class={styles.icon({ class: clsx(
|
|
208
|
+
<svg class={styles.icon({ class: clsx(theme?.icon) })} aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20">
|
|
209
209
|
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6v4l3.276 3.276M19 10a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" />
|
|
210
210
|
</svg>
|
|
211
211
|
{/if}
|
|
212
212
|
</button>
|
|
213
213
|
</div>
|
|
214
214
|
{:else if type === "timerange-dropdown"}
|
|
215
|
-
<Button color={buttonColor} {size} class={styles.button({ class: clsx(
|
|
215
|
+
<Button color={buttonColor} {size} class={styles.button({ class: clsx(theme?.button) })}>
|
|
216
216
|
{timerangeLabel}
|
|
217
|
-
<svg class={styles.buttonIcon({ class: clsx(
|
|
217
|
+
<svg class={styles.buttonIcon({ class: clsx(theme?.buttonIcon) })} aria-hidden="true" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
218
218
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path>
|
|
219
219
|
</svg>
|
|
220
220
|
</Button>
|
|
221
|
-
<Dropdown simple class={styles.dropdownContent({ class: clsx(
|
|
222
|
-
<div class={styles.dropdownInner({ class: clsx(
|
|
223
|
-
<div class={styles.dropdownTimeRow({ class: clsx(
|
|
224
|
-
<div class={styles.dropdownTimeCol({ class: clsx(
|
|
221
|
+
<Dropdown simple class={styles.dropdownContent({ class: clsx(theme?.dropdownContent) })}>
|
|
222
|
+
<div class={styles.dropdownInner({ class: clsx(theme?.dropdownInner) })}>
|
|
223
|
+
<div class={styles.dropdownTimeRow({ class: clsx(theme?.dropdownTimeRow) })}>
|
|
224
|
+
<div class={styles.dropdownTimeCol({ class: clsx(theme?.dropdownTimeCol) })}>
|
|
225
225
|
<Label for={id}>Start time:</Label>
|
|
226
|
-
<Input {id} color={inputColor} type="time" {min} {max} {required} {disabled} class={styles.dropdownTimeInput({ class: clsx(
|
|
226
|
+
<Input {id} color={inputColor} type="time" {min} {max} {required} {disabled} class={styles.dropdownTimeInput({ class: clsx(theme?.dropdownTimeInput, inputClass) })} bind:value oninput={(e) => handleTimeChange(e)} onchange={(e) => handleTimeChange(e)} />
|
|
227
227
|
</div>
|
|
228
|
-
<div class={styles.dropdownTimeCol({ class: clsx(
|
|
228
|
+
<div class={styles.dropdownTimeCol({ class: clsx(theme?.dropdownTimeCol) })}>
|
|
229
229
|
<Label for={endId}>End time:</Label>
|
|
230
|
-
<Input id={endId} color={inputColor} type="time" {min} {max} {required} {disabled} class={styles.dropdownTimeInput({ class: clsx(
|
|
230
|
+
<Input id={endId} color={inputColor} type="time" {min} {max} {required} {disabled} class={styles.dropdownTimeInput({ class: clsx(theme?.dropdownTimeInput, inputClass) })} bind:value={endValue} oninput={(e) => handleTimeChange(e, true)} onchange={(e) => handleTimeChange(e, true)} />
|
|
231
231
|
</div>
|
|
232
232
|
</div>
|
|
233
|
-
<Button color={buttonColor} class={styles.dropdownButton({ class: clsx(
|
|
233
|
+
<Button color={buttonColor} class={styles.dropdownButton({ class: clsx(theme?.dropdownButton) })} onclick={applyTimerange}>
|
|
234
234
|
{timerangeButtonLabel}
|
|
235
235
|
</Button>
|
|
236
236
|
</div>
|
|
237
237
|
</Dropdown>
|
|
238
238
|
{:else if type === "timerange-toggle"}
|
|
239
|
-
<div class={styles.toggleWrapper({ class: clsx(
|
|
240
|
-
<div class={styles.toggleRow({ class: clsx(
|
|
239
|
+
<div class={styles.toggleWrapper({ class: clsx(theme?.toggleWrapper) })}>
|
|
240
|
+
<div class={styles.toggleRow({ class: clsx(theme?.toggleRow) })}>
|
|
241
241
|
<Toggle id={`${id}-timerange-toggle`} checked={showTimerange} onchange={toggleTimerange} spanClass="me-0 rounded-lg" />
|
|
242
242
|
</div>
|
|
243
243
|
{#if showTimerange}
|
|
244
|
-
<div class={styles.toggleTimeRow({ class: clsx(
|
|
245
|
-
<div class={styles.toggleTimeCol({ class: clsx(
|
|
244
|
+
<div class={styles.toggleTimeRow({ class: clsx(theme?.toggleTimeRow) })}>
|
|
245
|
+
<div class={styles.toggleTimeCol({ class: clsx(theme?.toggleTimeCol) })}>
|
|
246
246
|
<Label for={id}>Start time:</Label>
|
|
247
|
-
<Input {id} color={inputColor} type="time" {min} {max} {required} {disabled} class={styles.toggleTimeInput({ class: clsx(
|
|
247
|
+
<Input {id} color={inputColor} type="time" {min} {max} {required} {disabled} class={styles.toggleTimeInput({ class: clsx(theme?.toggleTimeInput, inputClass) })} bind:value oninput={(e) => handleTimeChange(e)} onchange={(e) => handleTimeChange(e)} />
|
|
248
248
|
</div>
|
|
249
|
-
<div class={styles.toggleTimeCol({ class: clsx(
|
|
249
|
+
<div class={styles.toggleTimeCol({ class: clsx(theme?.toggleTimeCol) })}>
|
|
250
250
|
<Label for={endId}>End time:</Label>
|
|
251
|
-
<Input id={endId} color={inputColor} type="time" {min} {max} {required} {disabled} class={styles.toggleTimeInput({ class: clsx(
|
|
251
|
+
<Input id={endId} color={inputColor} type="time" {min} {max} {required} {disabled} class={styles.toggleTimeInput({ class: clsx(theme?.toggleTimeInput, inputClass) })} bind:value={endValue} oninput={(e) => handleTimeChange(e, true)} onchange={(e) => handleTimeChange(e, true)} />
|
|
252
252
|
</div>
|
|
253
253
|
</div>
|
|
254
254
|
{/if}
|
|
@@ -256,9 +256,9 @@
|
|
|
256
256
|
{/if}
|
|
257
257
|
</ButtonGroup>
|
|
258
258
|
{:else}
|
|
259
|
-
<div class={styles.inlineGrid({ class: clsx(
|
|
259
|
+
<div class={styles.inlineGrid({ class: clsx(theme?.inlineGrid) })}>
|
|
260
260
|
{#each timeIntervals as time}
|
|
261
|
-
<Button {size} color={value === time ? buttonColor : "light"} class={styles.inlineButton({ class: clsx(
|
|
261
|
+
<Button {size} color={value === time ? buttonColor : "light"} class={styles.inlineButton({ class: clsx(theme?.inlineButton) })} onclick={() => handleInlineButtonSelect(time)}>
|
|
262
262
|
{time}
|
|
263
263
|
</Button>
|
|
264
264
|
{/each}
|
|
@@ -269,7 +269,7 @@
|
|
|
269
269
|
@component
|
|
270
270
|
[Go to docs](https://flowbite-svelte.com/)
|
|
271
271
|
## Type
|
|
272
|
-
[TimepickerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
272
|
+
[TimepickerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L913)
|
|
273
273
|
## Props
|
|
274
274
|
@prop id = "time"
|
|
275
275
|
@prop endId = "end-time"
|
|
@@ -2,7 +2,7 @@ import { type TimepickerProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [TimepickerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [TimepickerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L913)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop id = "time"
|
|
8
8
|
* @prop endId = "end-time"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Timepicker } from "./Timepicker.svelte";
|
|
2
|
-
export { timepicker
|
|
2
|
+
export { timepicker } from "./theme";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
import type { ClassValue } from "svelte/elements";
|
|
3
2
|
import type { Classes } from "../../theme/themeUtils";
|
|
4
3
|
export type TimepickerVariants = VariantProps<typeof timepicker> & Classes<typeof timepicker>;
|
|
5
4
|
export declare const timepicker: import("tailwind-variants").TVReturnType<{
|
|
@@ -189,5 +188,3 @@ export declare const timepicker: import("tailwind-variants").TVReturnType<{
|
|
|
189
188
|
inlineGrid: string;
|
|
190
189
|
inlineButton: string;
|
|
191
190
|
}, undefined, unknown, unknown, undefined>>;
|
|
192
|
-
export type TimepickerSlots = keyof typeof timepicker.slots;
|
|
193
|
-
export type TimepickerTheme = Partial<Record<TimepickerSlots, ClassValue>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { toggle
|
|
2
|
+
import { toggle } from "./index";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { type ToggleProps, Label } from "../..";
|
|
5
5
|
import { getTheme, warnThemeDeprecation } from "../../theme/themeUtils";
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
const { input, label, span } = $derived(toggle({ color, checked, size, disabled, off_state_label: !!offLabel }));
|
|
15
15
|
</script>
|
|
16
16
|
|
|
17
|
-
<Label class={label({ class: clsx(
|
|
17
|
+
<Label class={label({ class: clsx(theme?.label, className) })}>
|
|
18
18
|
{#if offLabel}
|
|
19
19
|
{@render offLabel()}
|
|
20
20
|
{/if}
|
|
21
|
-
<input type="checkbox" bind:checked {value} {...restProps} {disabled} class={input({ class: clsx(
|
|
22
|
-
<span class={span({ class: clsx(
|
|
21
|
+
<input type="checkbox" bind:checked {value} {...restProps} {disabled} class={input({ class: clsx(theme?.input, styling.input) })} />
|
|
22
|
+
<span class={span({ class: clsx(theme?.span, styling.span) })}></span>
|
|
23
23
|
{#if children}
|
|
24
24
|
{@render children()}
|
|
25
25
|
{/if}
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
@component
|
|
30
30
|
[Go to docs](https://flowbite-svelte.com/)
|
|
31
31
|
## Type
|
|
32
|
-
[ToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
32
|
+
[ToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L964)
|
|
33
33
|
## Props
|
|
34
34
|
@prop children
|
|
35
35
|
@prop size = "default"
|
|
@@ -2,7 +2,7 @@ import { type ToggleProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L964)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop size = "default"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Toggle } from "./Toggle.svelte";
|
|
2
|
-
export { toggle
|
|
2
|
+
export { toggle } from "./theme";
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
import type { ClassValue } from "svelte/elements";
|
|
3
2
|
import type { Classes } from "../../theme/themeUtils";
|
|
4
3
|
export type ToggleVariants = VariantProps<typeof toggle> & Classes<typeof toggle>;
|
|
5
|
-
export type ToggleSlots = keyof typeof toggle.slots;
|
|
6
|
-
export type ToggleTheme = Partial<Record<ToggleSlots, ClassValue>>;
|
|
7
4
|
export declare const toggle: import("tailwind-variants").TVReturnType<{
|
|
8
5
|
disabled: {
|
|
9
6
|
true: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { gallery
|
|
2
|
+
import { gallery } from ".";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { type GalleryProps, type ImgType } from "..";
|
|
5
5
|
import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
|
|
21
21
|
{#snippet _figure(item: ImgType)}
|
|
22
22
|
<div>
|
|
23
|
-
<img src={item.src} alt={item.alt} class={image({ class: clsx(
|
|
23
|
+
<img src={item.src} alt={item.alt} class={image({ class: clsx(theme?.image, styling.image) })} {...restProps} />
|
|
24
24
|
</div>
|
|
25
25
|
{/snippet}
|
|
26
26
|
|
|
27
|
-
<div class={div({ class: clsx(
|
|
27
|
+
<div class={div({ class: clsx(theme?.div, className) })} use:init>
|
|
28
28
|
{#each items as item}
|
|
29
29
|
{#if figure}
|
|
30
30
|
{@render figure(item as ImgType)}
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
@component
|
|
43
43
|
[Go to docs](https://flowbite-svelte.com/)
|
|
44
44
|
## Type
|
|
45
|
-
[GalleryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
45
|
+
[GalleryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L981)
|
|
46
46
|
## Props
|
|
47
47
|
@prop children
|
|
48
48
|
@prop figure
|
|
@@ -2,7 +2,7 @@ import { type GalleryProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [GalleryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [GalleryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L981)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop figure
|
package/dist/gallery/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Gallery } from "./Gallery.svelte";
|
|
2
|
-
export { gallery
|
|
2
|
+
export { gallery } from "./theme";
|