flowbite-svelte 1.10.5 → 1.10.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion/Accordion.svelte +5 -5
- package/dist/accordion/Accordion.svelte.d.ts +1 -1
- package/dist/accordion/AccordionItem.svelte +16 -10
- package/dist/accordion/AccordionItem.svelte.d.ts +2 -1
- package/dist/accordion/theme.d.ts +7 -2
- package/dist/alert/Alert.svelte +11 -13
- package/dist/alert/Alert.svelte.d.ts +1 -1
- package/dist/alert/theme.d.ts +2 -1
- package/dist/avatar/Avatar.svelte +10 -12
- package/dist/avatar/Avatar.svelte.d.ts +1 -1
- package/dist/avatar/theme.d.ts +4 -1
- package/dist/badge/Badge.svelte +13 -7
- package/dist/badge/Badge.svelte.d.ts +2 -1
- package/dist/badge/theme.d.ts +4 -2
- package/dist/banner/Banner.svelte +12 -7
- package/dist/banner/Banner.svelte.d.ts +2 -1
- package/dist/banner/theme.d.ts +4 -2
- package/dist/bottom-navigation/BottomNav.svelte +17 -11
- package/dist/bottom-navigation/BottomNav.svelte.d.ts +3 -1
- package/dist/bottom-navigation/BottomNavHeader.svelte +13 -7
- package/dist/bottom-navigation/BottomNavHeader.svelte.d.ts +3 -1
- package/dist/bottom-navigation/BottomNavHeaderItem.svelte +5 -4
- package/dist/bottom-navigation/BottomNavHeaderItem.svelte.d.ts +1 -1
- package/dist/bottom-navigation/BottomNavItem.svelte +25 -26
- package/dist/bottom-navigation/BottomNavItem.svelte.d.ts +3 -3
- package/dist/bottom-navigation/theme.d.ts +59 -52
- package/dist/bottom-navigation/theme.js +16 -16
- package/dist/breadcrumb/Breadcrumb.svelte +5 -4
- package/dist/breadcrumb/Breadcrumb.svelte.d.ts +1 -1
- package/dist/breadcrumb/BreadcrumbItem.svelte +8 -7
- package/dist/breadcrumb/BreadcrumbItem.svelte.d.ts +1 -1
- package/dist/breadcrumb/theme.d.ts +3 -2
- package/dist/button-group/ButtonGroup.svelte +4 -3
- package/dist/button-group/ButtonGroup.svelte.d.ts +1 -1
- package/dist/button-group/theme.d.ts +2 -1
- package/dist/buttons/Button.svelte +4 -3
- package/dist/buttons/Button.svelte.d.ts +1 -1
- package/dist/buttons/GradientButton.svelte +6 -5
- package/dist/buttons/GradientButton.svelte.d.ts +1 -1
- package/dist/buttons/theme.d.ts +3 -2
- package/dist/card/Card.svelte +5 -5
- package/dist/card/Card.svelte.d.ts +1 -1
- package/dist/card/theme.d.ts +2 -1
- package/dist/carousel/Carousel.svelte +6 -5
- package/dist/carousel/Carousel.svelte.d.ts +1 -1
- package/dist/carousel/CarouselIndicators.svelte +5 -4
- package/dist/carousel/CarouselIndicators.svelte.d.ts +1 -1
- package/dist/carousel/ControlButton.svelte +8 -5
- package/dist/carousel/ControlButton.svelte.d.ts +1 -1
- package/dist/carousel/Controls.svelte +5 -4
- package/dist/carousel/Controls.svelte.d.ts +1 -1
- package/dist/carousel/Slide.svelte +4 -3
- package/dist/carousel/Slide.svelte.d.ts +1 -1
- package/dist/carousel/Thumbnail.svelte +3 -3
- package/dist/carousel/Thumbnail.svelte.d.ts +1 -1
- package/dist/carousel/Thumbnails.svelte +4 -4
- package/dist/carousel/Thumbnails.svelte.d.ts +1 -1
- package/dist/carousel/theme.d.ts +20 -9
- package/dist/carousel/theme.js +4 -1
- package/dist/clipboard/Clipboard.svelte +3 -3
- package/dist/clipboard/Clipboard.svelte.d.ts +1 -1
- package/dist/clipboard/theme.d.ts +2 -1
- package/dist/darkmode/DarkMode.svelte +4 -3
- package/dist/darkmode/DarkMode.svelte.d.ts +1 -1
- package/dist/darkmode/theme.d.ts +2 -1
- package/dist/datepicker/Datepicker.svelte +28 -24
- package/dist/datepicker/Datepicker.svelte.d.ts +1 -1
- package/dist/datepicker/theme.d.ts +1 -1
- package/dist/device-mockups/Android.svelte +1 -1
- package/dist/device-mockups/Android.svelte.d.ts +1 -1
- package/dist/device-mockups/DefaultMockup.svelte +1 -1
- package/dist/device-mockups/DefaultMockup.svelte.d.ts +1 -1
- package/dist/device-mockups/Desktop.svelte +1 -1
- package/dist/device-mockups/Desktop.svelte.d.ts +1 -1
- package/dist/device-mockups/DeviceMockup.svelte +1 -1
- package/dist/device-mockups/DeviceMockup.svelte.d.ts +1 -1
- package/dist/device-mockups/Ios.svelte +1 -1
- package/dist/device-mockups/Ios.svelte.d.ts +1 -1
- package/dist/device-mockups/Laptop.svelte +1 -1
- package/dist/device-mockups/Laptop.svelte.d.ts +1 -1
- package/dist/device-mockups/Smartwatch.svelte +1 -1
- package/dist/device-mockups/Smartwatch.svelte.d.ts +1 -1
- package/dist/device-mockups/Tablet.svelte +1 -1
- package/dist/device-mockups/Tablet.svelte.d.ts +1 -1
- package/dist/drawer/Drawer.svelte +5 -4
- package/dist/drawer/Drawer.svelte.d.ts +1 -1
- package/dist/drawer/Drawerhead.svelte +6 -5
- package/dist/drawer/Drawerhead.svelte.d.ts +1 -1
- package/dist/drawer/theme.d.ts +3 -2
- package/dist/dropdown/Dropdown.svelte +4 -3
- package/dist/dropdown/Dropdown.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownDivider.svelte +4 -3
- package/dist/dropdown/DropdownDivider.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownGroup.svelte +4 -3
- package/dist/dropdown/DropdownGroup.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownHeader.svelte +4 -3
- package/dist/dropdown/DropdownHeader.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownItem.svelte +5 -4
- package/dist/dropdown/DropdownItem.svelte.d.ts +1 -1
- package/dist/dropdown/theme.d.ts +6 -5
- package/dist/footer/Footer.svelte +5 -4
- package/dist/footer/Footer.svelte.d.ts +1 -1
- package/dist/footer/FooterBrand.svelte +7 -6
- package/dist/footer/FooterBrand.svelte.d.ts +1 -1
- package/dist/footer/FooterCopyright.svelte +6 -5
- package/dist/footer/FooterCopyright.svelte.d.ts +1 -1
- package/dist/footer/FooterIcon.svelte +4 -3
- package/dist/footer/FooterIcon.svelte.d.ts +1 -1
- package/dist/footer/FooterLink.svelte +5 -4
- package/dist/footer/FooterLink.svelte.d.ts +1 -1
- package/dist/footer/FooterLinkGroup.svelte +4 -3
- package/dist/footer/FooterLinkGroup.svelte.d.ts +1 -1
- package/dist/footer/theme.d.ts +7 -6
- package/dist/forms/button-toggle/ButtonToggle.svelte +8 -7
- package/dist/forms/button-toggle/ButtonToggle.svelte.d.ts +1 -1
- package/dist/forms/button-toggle/ButtonToggleGroup.svelte +6 -5
- package/dist/forms/button-toggle/CheckIcon.svelte +4 -3
- package/dist/forms/button-toggle/CheckIcon.svelte.d.ts +1 -1
- package/dist/forms/button-toggle/theme.d.ts +5 -4
- package/dist/forms/checkbox/Checkbox.svelte +6 -5
- package/dist/forms/checkbox/CheckboxButton.svelte +4 -3
- package/dist/forms/checkbox/CheckboxButton.svelte.d.ts +1 -1
- package/dist/forms/checkbox/theme.d.ts +3 -2
- package/dist/forms/dropzone/Dropzone.svelte +23 -31
- package/dist/forms/dropzone/Dropzone.svelte.d.ts +4 -1
- package/dist/forms/dropzone/theme.d.ts +2 -1
- package/dist/forms/fileupload/Fileupload.svelte +6 -5
- package/dist/forms/fileupload/Fileupload.svelte.d.ts +1 -1
- package/dist/forms/fileupload/theme.d.ts +2 -1
- package/dist/forms/floating-label/FloatingLabelInput.svelte +8 -7
- package/dist/forms/floating-label/FloatingLabelInput.svelte.d.ts +1 -1
- package/dist/forms/floating-label/theme.d.ts +2 -1
- package/dist/forms/helper/Helper.svelte +4 -3
- package/dist/forms/helper/Helper.svelte.d.ts +1 -1
- package/dist/forms/helper/theme.d.ts +2 -1
- package/dist/forms/input-addon/InputAddon.svelte +4 -3
- package/dist/forms/input-addon/InputAddon.svelte.d.ts +1 -1
- package/dist/forms/input-field/Input.svelte +11 -10
- package/dist/forms/input-field/theme.d.ts +2 -1
- package/dist/forms/label/Label.svelte +4 -3
- package/dist/forms/label/Label.svelte.d.ts +1 -1
- package/dist/forms/label/theme.d.ts +2 -1
- package/dist/forms/phoneinput/PhoneInput.svelte +7 -7
- package/dist/forms/phoneinput/theme.d.ts +1 -1
- package/dist/forms/radio/Radio.svelte +4 -3
- package/dist/forms/radio/RadioButton.svelte +3 -2
- package/dist/forms/radio/theme.d.ts +3 -2
- package/dist/forms/range/Range.svelte +4 -3
- package/dist/forms/range/Range.svelte.d.ts +1 -1
- package/dist/forms/range/theme.d.ts +2 -1
- package/dist/forms/search/Search.svelte +9 -8
- package/dist/forms/search/Search.svelte.d.ts +1 -1
- package/dist/forms/search/theme.d.ts +2 -1
- package/dist/forms/select/MultiSelect.svelte +7 -6
- package/dist/forms/select/Select.svelte +5 -4
- package/dist/forms/select/theme.d.ts +3 -2
- package/dist/forms/tags/Tags.svelte +8 -7
- package/dist/forms/tags/Tags.svelte.d.ts +1 -1
- package/dist/forms/tags/theme.d.ts +2 -1
- package/dist/forms/textarea/Textarea.svelte +12 -11
- package/dist/forms/textarea/Textarea.svelte.d.ts +1 -1
- package/dist/forms/textarea/theme.d.ts +2 -1
- package/dist/forms/timepicker/Timepicker.svelte +39 -38
- package/dist/forms/timepicker/Timepicker.svelte.d.ts +1 -1
- package/dist/forms/timepicker/theme.d.ts +2 -1
- package/dist/forms/toggle/Toggle.svelte +6 -5
- package/dist/forms/toggle/Toggle.svelte.d.ts +1 -1
- package/dist/forms/toggle/theme.d.ts +2 -1
- package/dist/gallery/Gallery.svelte +5 -4
- package/dist/gallery/Gallery.svelte.d.ts +1 -1
- package/dist/gallery/theme.d.ts +2 -1
- package/dist/indicator/Indicator.svelte +6 -4
- package/dist/indicator/Indicator.svelte.d.ts +1 -1
- package/dist/indicator/theme.d.ts +2 -1
- package/dist/kbd/Kbd.svelte +4 -3
- package/dist/kbd/Kbd.svelte.d.ts +1 -1
- package/dist/kbd/theme.d.ts +2 -1
- package/dist/list-group/Listgroup.svelte +7 -6
- package/dist/list-group/Listgroup.svelte.d.ts +1 -1
- package/dist/list-group/ListgroupItem.svelte +8 -7
- package/dist/list-group/ListgroupItem.svelte.d.ts +1 -1
- package/dist/list-group/theme.d.ts +3 -2
- package/dist/mega-menu/MegaMenu.svelte +7 -6
- package/dist/mega-menu/MegaMenu.svelte.d.ts +1 -1
- package/dist/mega-menu/theme.d.ts +2 -1
- package/dist/modal/Modal.svelte +8 -8
- package/dist/modal/Modal.svelte.d.ts +1 -1
- package/dist/modal/theme.d.ts +2 -1
- package/dist/navbar/Menu.svelte +2 -3
- package/dist/navbar/Menu.svelte.d.ts +1 -1
- package/dist/navbar/NavBrand.svelte +2 -3
- package/dist/navbar/NavBrand.svelte.d.ts +1 -1
- package/dist/navbar/NavContainer.svelte +2 -3
- package/dist/navbar/NavContainer.svelte.d.ts +1 -1
- package/dist/navbar/NavHamburger.svelte +3 -4
- package/dist/navbar/NavHamburger.svelte.d.ts +2 -3
- package/dist/navbar/NavLi.svelte +2 -3
- package/dist/navbar/NavLi.svelte.d.ts +1 -1
- package/dist/navbar/NavUl.svelte +5 -6
- package/dist/navbar/NavUl.svelte.d.ts +1 -1
- package/dist/navbar/Navbar.svelte +3 -3
- package/dist/navbar/Navbar.svelte.d.ts +1 -1
- package/dist/navbar/theme.d.ts +6 -5
- package/dist/pagination/Pagination.svelte +3 -3
- package/dist/pagination/Pagination.svelte.d.ts +1 -1
- package/dist/pagination/PaginationButton.svelte +11 -14
- package/dist/pagination/PaginationButton.svelte.d.ts +1 -1
- package/dist/pagination/PaginationItem.svelte +2 -3
- package/dist/pagination/PaginationItem.svelte.d.ts +1 -1
- package/dist/pagination/PaginationNav.svelte +8 -8
- package/dist/pagination/PaginationNav.svelte.d.ts +1 -1
- package/dist/pagination/theme.d.ts +5 -4
- package/dist/popover/Popover.svelte +5 -6
- package/dist/popover/Popover.svelte.d.ts +1 -1
- package/dist/popover/theme.d.ts +2 -1
- package/dist/progress/Progressbar.svelte +7 -8
- package/dist/progress/Progressbar.svelte.d.ts +1 -1
- package/dist/progress/Progressradial.svelte +8 -9
- package/dist/progress/Progressradial.svelte.d.ts +1 -1
- package/dist/progress/theme.d.ts +2 -2
- package/dist/rating/AdvancedRating.svelte +6 -7
- package/dist/rating/AdvancedRating.svelte.d.ts +1 -1
- package/dist/rating/CustomIcon.svelte +1 -1
- package/dist/rating/CustomIcon.svelte.d.ts +1 -1
- package/dist/rating/Heart.svelte +1 -1
- package/dist/rating/Heart.svelte.d.ts +1 -1
- package/dist/rating/Rating.svelte +3 -4
- package/dist/rating/Rating.svelte.d.ts +1 -1
- package/dist/rating/RatingComment.svelte +1 -1
- package/dist/rating/RatingComment.svelte.d.ts +1 -1
- package/dist/rating/Review.svelte +8 -9
- package/dist/rating/Review.svelte.d.ts +1 -1
- package/dist/rating/ScoreRating.svelte +9 -9
- package/dist/rating/ScoreRating.svelte.d.ts +1 -1
- package/dist/rating/Star.svelte +1 -1
- package/dist/rating/Star.svelte.d.ts +1 -1
- package/dist/rating/Thumbup.svelte +1 -1
- package/dist/rating/Thumbup.svelte.d.ts +1 -1
- package/dist/rating/theme.d.ts +5 -4
- package/dist/sidebar/Sidebar.svelte +9 -10
- package/dist/sidebar/Sidebar.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarBrand.svelte +4 -5
- package/dist/sidebar/SidebarBrand.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarButton.svelte +2 -3
- package/dist/sidebar/SidebarButton.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarCta.svelte +4 -5
- package/dist/sidebar/SidebarCta.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarDropdownWrapper.svelte +7 -8
- package/dist/sidebar/SidebarDropdownWrapper.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarGroup.svelte +1 -1
- package/dist/sidebar/SidebarGroup.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarItem.svelte +6 -5
- package/dist/sidebar/SidebarItem.svelte.d.ts +1 -1
- package/dist/sidebar/theme.d.ts +9 -8
- package/dist/skeleton/CardPlaceholder.svelte +12 -13
- package/dist/skeleton/CardPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ImagePlaceholder.svelte +40 -13
- package/dist/skeleton/ImagePlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ListPlaceholder.svelte +27 -9
- package/dist/skeleton/ListPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/Skeleton.svelte +25 -10
- package/dist/skeleton/Skeleton.svelte.d.ts +1 -1
- package/dist/skeleton/TestimonialPlaceholder.svelte +28 -9
- package/dist/skeleton/TestimonialPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/TextPlaceholder.svelte +50 -27
- package/dist/skeleton/TextPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/VideoPlaceholder.svelte +3 -4
- package/dist/skeleton/VideoPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/WidgetPlaceholder.svelte +2 -3
- package/dist/skeleton/WidgetPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/theme.d.ts +9 -8
- package/dist/speed-dial/SpeedDial.svelte +4 -4
- package/dist/speed-dial/SpeedDial.svelte.d.ts +1 -1
- package/dist/speed-dial/SpeedDialButton.svelte +4 -4
- package/dist/speed-dial/SpeedDialButton.svelte.d.ts +1 -1
- package/dist/speed-dial/SpeedDialTrigger.svelte +1 -1
- package/dist/speed-dial/SpeedDialTrigger.svelte.d.ts +1 -1
- package/dist/speed-dial/theme.d.ts +3 -2
- package/dist/spinner/Spinner.svelte +3 -4
- package/dist/spinner/Spinner.svelte.d.ts +1 -1
- package/dist/spinner/theme.d.ts +2 -1
- package/dist/stepindicator/StepIndicator.svelte +11 -10
- package/dist/stepindicator/StepIndicator.svelte.d.ts +1 -1
- package/dist/stepindicator/theme.d.ts +2 -1
- package/dist/stepper/BreadcrumbStepper.svelte +10 -11
- package/dist/stepper/BreadcrumbStepper.svelte.d.ts +1 -1
- package/dist/stepper/DetailedStepper.svelte +5 -5
- package/dist/stepper/DetailedStepper.svelte.d.ts +1 -1
- package/dist/stepper/ProgressStepper.svelte +9 -12
- package/dist/stepper/ProgressStepper.svelte.d.ts +1 -1
- package/dist/stepper/Stepper.svelte +13 -19
- package/dist/stepper/Stepper.svelte.d.ts +1 -1
- package/dist/stepper/TimelineStepper.svelte +5 -5
- package/dist/stepper/TimelineStepper.svelte.d.ts +1 -1
- package/dist/stepper/VerticalStepper.svelte +5 -5
- package/dist/stepper/VerticalStepper.svelte.d.ts +1 -1
- package/dist/table/Table.svelte +4 -4
- package/dist/table/Table.svelte.d.ts +1 -1
- package/dist/table/TableBody.svelte +2 -3
- package/dist/table/TableBody.svelte.d.ts +1 -1
- package/dist/table/TableBodyCell.svelte +2 -3
- package/dist/table/TableBodyCell.svelte.d.ts +1 -1
- package/dist/table/TableBodyRow.svelte +3 -4
- package/dist/table/TableBodyRow.svelte.d.ts +1 -1
- package/dist/table/TableHead.svelte +3 -4
- package/dist/table/TableHead.svelte.d.ts +1 -1
- package/dist/table/TableHeadCell.svelte +2 -3
- package/dist/table/TableHeadCell.svelte.d.ts +1 -1
- package/dist/table/TableSearch.svelte +10 -10
- package/dist/table/TableSearch.svelte.d.ts +1 -1
- package/dist/table/theme.d.ts +6 -6
- package/dist/tabs/TabItem.svelte +6 -5
- package/dist/tabs/TabItem.svelte.d.ts +1 -1
- package/dist/tabs/Tabs.svelte +4 -5
- package/dist/tabs/Tabs.svelte.d.ts +1 -1
- package/dist/tabs/theme.d.ts +3 -2
- package/dist/theme/themeUtils.d.ts +13 -0
- package/dist/theme/themeUtils.js +9 -1
- package/dist/timeline/Activity.svelte +2 -3
- package/dist/timeline/Activity.svelte.d.ts +1 -1
- package/dist/timeline/ActivityItem.svelte +10 -10
- package/dist/timeline/ActivityItem.svelte.d.ts +1 -1
- package/dist/timeline/Group.svelte +5 -5
- package/dist/timeline/Group.svelte.d.ts +1 -1
- package/dist/timeline/GroupItem.svelte +7 -7
- package/dist/timeline/GroupItem.svelte.d.ts +1 -1
- package/dist/timeline/Timeline.svelte +3 -4
- package/dist/timeline/Timeline.svelte.d.ts +1 -1
- package/dist/timeline/TimelineItem.svelte +8 -8
- package/dist/timeline/TimelineItem.svelte.d.ts +1 -1
- package/dist/timeline/theme.d.ts +19 -18
- package/dist/toast/Toast.svelte +6 -6
- package/dist/toast/Toast.svelte.d.ts +1 -1
- package/dist/toast/theme.d.ts +2 -1
- package/dist/toolbar/Toolbar.svelte +3 -4
- package/dist/toolbar/Toolbar.svelte.d.ts +1 -1
- package/dist/toolbar/ToolbarButton.svelte +5 -6
- package/dist/toolbar/ToolbarButton.svelte.d.ts +1 -1
- package/dist/toolbar/ToolbarGroup.svelte +3 -4
- package/dist/toolbar/ToolbarGroup.svelte.d.ts +1 -1
- package/dist/toolbar/theme.d.ts +4 -3
- package/dist/tooltip/Tooltip.svelte +2 -3
- package/dist/tooltip/Tooltip.svelte.d.ts +1 -1
- package/dist/tooltip/theme.d.ts +2 -1
- package/dist/types.d.ts +19 -44
- package/dist/types.js +0 -1
- package/dist/typography/anchor/A.svelte +4 -5
- package/dist/typography/anchor/A.svelte.d.ts +1 -1
- package/dist/typography/anchor/theme.d.ts +2 -1
- package/dist/typography/blockquote/Blockquote.svelte +4 -5
- package/dist/typography/blockquote/Blockquote.svelte.d.ts +1 -1
- package/dist/typography/blockquote/theme.d.ts +2 -1
- package/dist/typography/descriptionlist/DescriptionList.svelte +3 -4
- package/dist/typography/descriptionlist/DescriptionList.svelte.d.ts +1 -1
- package/dist/typography/descriptionlist/theme.d.ts +2 -1
- package/dist/typography/heading/Heading.svelte +3 -4
- package/dist/typography/heading/Heading.svelte.d.ts +1 -1
- package/dist/typography/heading/theme.d.ts +2 -1
- package/dist/typography/hr/Hr.svelte +5 -6
- package/dist/typography/hr/Hr.svelte.d.ts +1 -1
- package/dist/typography/hr/theme.d.ts +2 -1
- package/dist/typography/img/EnhancedImg.svelte +5 -6
- package/dist/typography/img/EnhancedImg.svelte.d.ts +1 -1
- package/dist/typography/img/Img.svelte +5 -6
- package/dist/typography/img/Img.svelte.d.ts +1 -1
- package/dist/typography/img/theme.d.ts +2 -1
- package/dist/typography/layout/Layout.svelte +3 -4
- package/dist/typography/layout/Layout.svelte.d.ts +1 -1
- package/dist/typography/layout/theme.d.ts +2 -1
- package/dist/typography/list/Li.svelte +2 -3
- package/dist/typography/list/Li.svelte.d.ts +1 -1
- package/dist/typography/list/List.svelte +3 -4
- package/dist/typography/list/List.svelte.d.ts +1 -1
- package/dist/typography/list/theme.d.ts +2 -1
- package/dist/typography/mark/Mark.svelte +2 -2
- package/dist/typography/mark/Mark.svelte.d.ts +1 -1
- package/dist/typography/mark/theme.d.ts +2 -1
- package/dist/typography/paragraph/P.svelte +3 -4
- package/dist/typography/paragraph/P.svelte.d.ts +1 -1
- package/dist/typography/paragraph/theme.d.ts +2 -1
- package/dist/typography/secondary/Secondary.svelte +2 -3
- package/dist/typography/secondary/Secondary.svelte.d.ts +1 -1
- package/dist/typography/secondary/theme.d.ts +2 -1
- package/dist/typography/span/Span.svelte +3 -4
- package/dist/typography/span/Span.svelte.d.ts +1 -1
- package/dist/typography/span/theme.d.ts +2 -1
- package/dist/utils/Arrow.svelte +1 -1
- package/dist/utils/Arrow.svelte.d.ts +1 -1
- package/dist/utils/CloseButton.svelte +1 -1
- package/dist/utils/CloseButton.svelte.d.ts +1 -1
- package/dist/utils/Popper.svelte +1 -1
- package/dist/utils/Popper.svelte.d.ts +1 -1
- package/dist/video/Video.svelte +3 -3
- package/dist/video/Video.svelte.d.ts +1 -1
- package/package.json +1 -1
|
@@ -2,11 +2,14 @@ import { type DropzoneProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [DropzoneProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [DropzoneProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L696)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop files = $bindable<FileList | null>()
|
|
9
9
|
* @prop class: className
|
|
10
|
+
* @prop onDrop
|
|
11
|
+
* @prop onDragOver
|
|
12
|
+
* @prop onChange
|
|
10
13
|
* @prop ...restProps
|
|
11
14
|
*/
|
|
12
15
|
declare const Dropzone: import("svelte").Component<DropzoneProps, {}, "files">;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import type { ClassValue } from "svelte/elements";
|
|
1
2
|
export declare const dropzone: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "flex flex-col justify-center items-center w-full h-64 bg-gray-50 rounded-lg border-2 border-gray-300 border-dashed cursor-pointer dark:hover:bg-bray-800 dark:bg-gray-700 hover:bg-gray-100 dark:border-gray-600 dark:hover:border-gray-500 dark:hover:bg-gray-600", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "flex flex-col justify-center items-center w-full h-64 bg-gray-50 rounded-lg border-2 border-gray-300 border-dashed cursor-pointer dark:hover:bg-bray-800 dark:bg-gray-700 hover:bg-gray-100 dark:border-gray-600 dark:hover:border-gray-500 dark:hover:bg-gray-600", unknown, unknown, undefined>>;
|
|
2
|
-
export type DropzoneTheme =
|
|
3
|
+
export type DropzoneTheme = ClassValue;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { fileupload, type FileuploadTheme } from ".";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { CloseButton, type FileuploadProps } from "../..";
|
|
4
5
|
import { getTheme } from "../../theme/themeUtils";
|
|
5
6
|
|
|
6
7
|
let { files = $bindable(), size = "md", clearable = false, elementRef = $bindable(), class: className, clearableSvgClass, clearableColor = "none", clearableClass, clearableOnClick, wrapperClass, ...restProps }: FileuploadProps = $props();
|
|
@@ -18,10 +19,10 @@
|
|
|
18
19
|
};
|
|
19
20
|
</script>
|
|
20
21
|
|
|
21
|
-
<div class={
|
|
22
|
-
<input type="file" bind:files bind:this={elementRef} {...restProps} class={
|
|
22
|
+
<div class={wrapper({ class: clsx((theme as FileuploadTheme)?.wrapper, wrapperClass) })}>
|
|
23
|
+
<input type="file" bind:files bind:this={elementRef} {...restProps} class={base({ size, class: clsx((theme as FileuploadTheme)?.base, className) })} />
|
|
23
24
|
{#if files && files.length > 0 && clearable}
|
|
24
|
-
<CloseButton onclick={clearAll} class={
|
|
25
|
+
<CloseButton onclick={clearAll} class={right({ class: clsx((theme as FileuploadTheme)?.right, clearableClass) })} color={clearableColor} aria-label="Clear selected files" svgClass={clsx(clearableSvgClass)} />
|
|
25
26
|
{/if}
|
|
26
27
|
</div>
|
|
27
28
|
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
@component
|
|
30
31
|
[Go to docs](https://flowbite-svelte.com/)
|
|
31
32
|
## Type
|
|
32
|
-
[FileuploadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
33
|
+
[FileuploadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L705)
|
|
33
34
|
## Props
|
|
34
35
|
@prop files = $bindable()
|
|
35
36
|
@prop size = "md"
|
|
@@ -2,7 +2,7 @@ import { type FileuploadProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [FileuploadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [FileuploadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L705)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop files = $bindable()
|
|
8
8
|
* @prop size = "md"
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
+
import type { ClassValue } from "svelte/elements";
|
|
2
3
|
export type FileuploadViariants = VariantProps<typeof fileupload>;
|
|
3
4
|
export declare const fileupload: import("tailwind-variants").TVReturnType<{
|
|
4
5
|
size: {
|
|
@@ -50,4 +51,4 @@ export declare const fileupload: import("tailwind-variants").TVReturnType<{
|
|
|
50
51
|
right: string;
|
|
51
52
|
}, undefined, unknown, unknown, undefined>>;
|
|
52
53
|
export type FileuploadSlots = keyof typeof fileupload.slots;
|
|
53
|
-
export type FileuploadTheme = Partial<Record<FileuploadSlots,
|
|
54
|
+
export type FileuploadTheme = Partial<Record<FileuploadSlots, ClassValue>>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { idGenerator } from "../../utils";
|
|
3
3
|
import { floatingLabelInput, type FloatingLabelInputTheme } from ".";
|
|
4
|
-
import
|
|
4
|
+
import clsx from "clsx";
|
|
5
|
+
import { type FloatingLabelInputProps, CloseButton } from "../..";
|
|
5
6
|
import { getTheme } from "../../theme/themeUtils";
|
|
6
7
|
|
|
7
8
|
let { children, id = idGenerator(), value = $bindable(), elementRef = $bindable(), "aria-describedby": ariaDescribedby, variant = "standard", size = "default", color = "default", class: className, inputClass, labelClass, clearable, clearableSvgClass, clearableColor = "none", clearableClass, clearableOnClick, data = [], maxSuggestions = 5, onSelect, comboClass, ...restProps }: FloatingLabelInputProps = $props();
|
|
@@ -136,17 +137,17 @@
|
|
|
136
137
|
<div tabindex="-1" bind:this={dummyFocusDiv} class="sr-only"></div>
|
|
137
138
|
{/if}
|
|
138
139
|
|
|
139
|
-
<div class={
|
|
140
|
-
<input {id} placeholder=" " bind:value bind:this={elementRef} {...restProps} aria-describedby={ariaDescribedby} class={
|
|
140
|
+
<div class={base({ class: clsx(isCombobox ? "relative" : "", (theme as FloatingLabelInputTheme)?.base, className) })}>
|
|
141
|
+
<input {id} placeholder=" " bind:value bind:this={elementRef} {...restProps} aria-describedby={ariaDescribedby} class={input({ class: clsx((theme as FloatingLabelInputTheme)?.input, inputClass) })} oninput={handleInput} onfocus={handleFocus} onblur={handleBlur} onkeydown={handleKeydown} />
|
|
141
142
|
{#if value !== undefined && value !== "" && clearable}
|
|
142
|
-
<CloseButton onclick={clearAll} class={
|
|
143
|
+
<CloseButton onclick={clearAll} class={closebutton({ class: clsx((theme as FloatingLabelInputTheme)?.closebutton, clearableClass) })} color={clearableColor} aria-label="Clear search value" svgClass={clsx(clearableSvgClass)} />
|
|
143
144
|
{/if}
|
|
144
|
-
<label for={id} class={
|
|
145
|
+
<label for={id} class={label({ class: clsx((theme as FloatingLabelInputTheme)?.label, labelClass) })}>
|
|
145
146
|
{@render children()}
|
|
146
147
|
</label>
|
|
147
148
|
|
|
148
149
|
{#if isCombobox && isFocused && filteredSuggestions.length > 0}
|
|
149
|
-
<div class={
|
|
150
|
+
<div class={combo({ class: clsx((theme as FloatingLabelInputTheme)?.combo, comboClass) })}>
|
|
150
151
|
{#each filteredSuggestions as item, i}
|
|
151
152
|
<button type="button" class="w-full px-3 py-2 text-left {i === selectedIndex ? 'bg-gray-100 dark:bg-gray-700' : 'hover:bg-gray-50 dark:hover:bg-gray-700'} focus:outline-none" onclick={() => selectItem(item)} onmouseenter={() => (selectedIndex = i)}>
|
|
152
153
|
{item}
|
|
@@ -160,7 +161,7 @@
|
|
|
160
161
|
@component
|
|
161
162
|
[Go to docs](https://flowbite-svelte.com/)
|
|
162
163
|
## Type
|
|
163
|
-
[FloatingLabelInputProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
164
|
+
[FloatingLabelInputProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L719)
|
|
164
165
|
## Props
|
|
165
166
|
@prop children
|
|
166
167
|
@prop id = idGenerator()
|
|
@@ -2,7 +2,7 @@ import { type FloatingLabelInputProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [FloatingLabelInputProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [FloatingLabelInputProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L719)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop id = idGenerator()
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
+
import type { ClassValue } from "svelte/elements";
|
|
2
3
|
export type FloatingLabelInputVaratiants = VariantProps<typeof floatingLabelInput>;
|
|
3
4
|
export declare const floatingLabelInput: import("tailwind-variants").TVReturnType<{
|
|
4
5
|
variant: {
|
|
@@ -344,4 +345,4 @@ export declare const floatingLabelInput: import("tailwind-variants").TVReturnTyp
|
|
|
344
345
|
combo: string;
|
|
345
346
|
}, undefined, unknown, unknown, undefined>>;
|
|
346
347
|
export type FloatingLabelInputSlots = keyof typeof floatingLabelInput.slots;
|
|
347
|
-
export type FloatingLabelInputTheme = Partial<Record<FloatingLabelInputSlots,
|
|
348
|
+
export type FloatingLabelInputTheme = Partial<Record<FloatingLabelInputSlots, ClassValue>>;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { helper } from ".";
|
|
3
|
-
import { type HelperProps
|
|
3
|
+
import { type HelperProps } from "../..";
|
|
4
|
+
import clsx from "clsx";
|
|
4
5
|
import { getTheme } from "../../theme/themeUtils";
|
|
5
6
|
|
|
6
7
|
let { children, class: className, color = "gray", ...restProps }: HelperProps = $props();
|
|
7
8
|
|
|
8
9
|
const theme = getTheme("helper");
|
|
9
10
|
|
|
10
|
-
const base = $derived(
|
|
11
|
+
const base = $derived(helper({ color, class: clsx(theme, className) }));
|
|
11
12
|
</script>
|
|
12
13
|
|
|
13
14
|
<p {...restProps} class={base}>
|
|
@@ -18,7 +19,7 @@
|
|
|
18
19
|
@component
|
|
19
20
|
[Go to docs](https://flowbite-svelte.com/)
|
|
20
21
|
## Type
|
|
21
|
-
[HelperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
22
|
+
[HelperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L742)
|
|
22
23
|
## Props
|
|
23
24
|
@prop children
|
|
24
25
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import { type HelperProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [HelperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [HelperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L742)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
+
import type { ClassValue } from "svelte/elements";
|
|
2
3
|
export type HelperVariants = VariantProps<typeof helper>;
|
|
3
4
|
export declare const helper: import("tailwind-variants").TVReturnType<{
|
|
4
5
|
color: {
|
|
@@ -73,4 +74,4 @@ export declare const helper: import("tailwind-variants").TVReturnType<{
|
|
|
73
74
|
rose: string;
|
|
74
75
|
};
|
|
75
76
|
}, undefined, "text-xs font-normal text-gray-500 dark:text-gray-300", unknown, unknown, undefined>>;
|
|
76
|
-
export type HelperTheme =
|
|
77
|
+
export type HelperTheme = ClassValue;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { SizeType } from "../../types";
|
|
3
3
|
import { getContext } from "svelte";
|
|
4
|
-
import
|
|
4
|
+
import clsx from "clsx";
|
|
5
|
+
import { type InputAddonProps, clampSize } from "../..";
|
|
5
6
|
import { getTheme } from "../../theme/themeUtils";
|
|
6
7
|
|
|
7
8
|
let { children, class: className, size, ...restProps }: InputAddonProps = $props();
|
|
@@ -32,7 +33,7 @@
|
|
|
32
33
|
// size: explicit, inherited, default
|
|
33
34
|
let _size = size || clampSize(group?.size) || "md";
|
|
34
35
|
|
|
35
|
-
let divClass: string =
|
|
36
|
+
let divClass: string = clsx(textSizes[_size], prefixPadding[_size], "text-gray-500 bg-gray-200", background ? darkBgClasses.tinted : darkBgClasses.base, background ? divider.tinted : divider.base, background ? borderClasses["tinted"] : borderClasses["base"], "inline-flex items-center border", group && "not-first:-ms-px", "first:rounded-s-lg last:rounded-e-lg", theme, className);
|
|
36
37
|
</script>
|
|
37
38
|
|
|
38
39
|
<div {...restProps} class={divClass}>
|
|
@@ -43,7 +44,7 @@
|
|
|
43
44
|
@component
|
|
44
45
|
[Go to docs](https://flowbite-svelte.com/)
|
|
45
46
|
## Type
|
|
46
|
-
[InputAddonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
47
|
+
[InputAddonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L784)
|
|
47
48
|
## Props
|
|
48
49
|
@prop children
|
|
49
50
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import { type InputAddonProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [InputAddonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [InputAddonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L784)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { getContext } from "svelte";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { CloseButton, type SizeType, type InputProps, type InputValue } from "../..";
|
|
4
5
|
import { input, clampSize, type InputTheme } from ".";
|
|
5
6
|
import { getTheme } from "../../theme/themeUtils";
|
|
6
7
|
|
|
@@ -208,9 +209,9 @@
|
|
|
208
209
|
{/if}
|
|
209
210
|
|
|
210
211
|
{#if isCombobox}
|
|
211
|
-
<div class={
|
|
212
|
+
<div class={clsx(isCombobox ? "relative w-full" : "", wrapperClass)}>
|
|
212
213
|
{#if right || left || clearable}
|
|
213
|
-
<div class={
|
|
214
|
+
<div class={base({ class: clsx((theme as InputTheme)?.base, divClass) })}>
|
|
214
215
|
{@render inputContent()}
|
|
215
216
|
</div>
|
|
216
217
|
{:else}
|
|
@@ -218,10 +219,10 @@
|
|
|
218
219
|
{/if}
|
|
219
220
|
|
|
220
221
|
{#if isCombobox && isFocused && filteredSuggestions.length > 0}
|
|
221
|
-
<div class={
|
|
222
|
+
<div class={combo({ class: clsx((theme as InputTheme)?.combo, comboClass) })}>
|
|
222
223
|
{#each filteredSuggestions as item, i}
|
|
223
224
|
<button type="button" class="w-full px-3 py-2 text-left {i === selectedIndex ? 'bg-gray-100 dark:bg-gray-700' : 'hover:bg-gray-50 dark:hover:bg-gray-700'} focus:outline-none" onclick={() => selectItem(item)} onmouseenter={() => (selectedIndex = i)}>
|
|
224
|
-
<p class={
|
|
225
|
+
<p class={comboItem({ class: clsx((theme as InputTheme)?.comboItem, comboItemClass) })}>{item}</p>
|
|
225
226
|
</button>
|
|
226
227
|
{/each}
|
|
227
228
|
</div>
|
|
@@ -230,7 +231,7 @@
|
|
|
230
231
|
{:else if group}
|
|
231
232
|
{@render inputContent()}
|
|
232
233
|
{:else if right || left || clearable}
|
|
233
|
-
<div class={
|
|
234
|
+
<div class={base({ class: clsx((theme as InputTheme)?.base, divClass) })}>
|
|
234
235
|
{@render inputContent()}
|
|
235
236
|
</div>
|
|
236
237
|
{:else}
|
|
@@ -239,20 +240,20 @@
|
|
|
239
240
|
|
|
240
241
|
{#snippet inputContent()}
|
|
241
242
|
{#if left}
|
|
242
|
-
<div class={
|
|
243
|
+
<div class={leftCls({ class: clsx((theme as InputTheme)?.left, leftClass) })}>
|
|
243
244
|
{@render left()}
|
|
244
245
|
</div>
|
|
245
246
|
{/if}
|
|
246
247
|
{#if children}
|
|
247
248
|
{@render children({ ...restProps, class: inputCls() })}
|
|
248
249
|
{:else}
|
|
249
|
-
<input {...restProps} bind:value bind:this={elementRef} oninput={handleInput} onfocus={handleFocus} onblur={handleBlur} onkeydown={handleKeydown} class={
|
|
250
|
+
<input {...restProps} bind:value bind:this={elementRef} oninput={handleInput} onfocus={handleFocus} onblur={handleBlur} onkeydown={handleKeydown} class={inputCls({ class: clsx((theme as InputTheme)?.input, className) })} />
|
|
250
251
|
{#if value !== undefined && value !== "" && clearable}
|
|
251
|
-
<CloseButton onclick={clearAll} class={
|
|
252
|
+
<CloseButton onclick={clearAll} class={closebutton({ class: clsx((theme as InputTheme)?.closebutton, clearableClass) })} color={clearableColor} aria-label="Clear search value" svgClass={clsx(clearableSvgClass)} />
|
|
252
253
|
{/if}
|
|
253
254
|
{/if}
|
|
254
255
|
{#if right}
|
|
255
|
-
<div class={
|
|
256
|
+
<div class={rightCls({ class: clsx((theme as InputTheme)?.right, rightClass) })}>
|
|
256
257
|
{@render right()}
|
|
257
258
|
</div>
|
|
258
259
|
{/if}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
+
import type { ClassValue } from "svelte/elements";
|
|
2
3
|
export type InputVariants = VariantProps<typeof input>;
|
|
3
4
|
export declare const input: import("tailwind-variants").TVReturnType<{
|
|
4
5
|
size: {
|
|
@@ -290,4 +291,4 @@ export declare const input: import("tailwind-variants").TVReturnType<{
|
|
|
290
291
|
comboItem: string;
|
|
291
292
|
}, undefined, unknown, unknown, undefined>>;
|
|
292
293
|
export type InputSlots = keyof typeof input.slots;
|
|
293
|
-
export type InputTheme = Partial<Record<InputSlots,
|
|
294
|
+
export type InputTheme = Partial<Record<InputSlots, ClassValue>>;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { label } from ".";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { type LabelProps } from "../..";
|
|
4
5
|
import { getTheme } from "../../theme/themeUtils";
|
|
5
6
|
|
|
6
7
|
let { children, color = "gray", show = true, class: className, ...restProps }: LabelProps = $props();
|
|
7
8
|
|
|
8
9
|
const theme = getTheme("label");
|
|
9
10
|
|
|
10
|
-
let base = $derived(
|
|
11
|
+
let base = $derived(label({ color, class: clsx(theme, className) }));
|
|
11
12
|
</script>
|
|
12
13
|
|
|
13
14
|
{#if show}
|
|
@@ -22,7 +23,7 @@
|
|
|
22
23
|
@component
|
|
23
24
|
[Go to docs](https://flowbite-svelte.com/)
|
|
24
25
|
## Type
|
|
25
|
-
[LabelProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
26
|
+
[LabelProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L799)
|
|
26
27
|
## Props
|
|
27
28
|
@prop children
|
|
28
29
|
@prop color = "gray"
|
|
@@ -2,7 +2,7 @@ import { type LabelProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [LabelProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [LabelProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L799)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop color = "gray"
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
+
import type { ClassValue } from "svelte/elements";
|
|
2
3
|
export type LabelVariants = VariantProps<typeof label>;
|
|
3
4
|
export declare const label: import("tailwind-variants").TVReturnType<{
|
|
4
5
|
color: {
|
|
@@ -73,4 +74,4 @@ export declare const label: import("tailwind-variants").TVReturnType<{
|
|
|
73
74
|
rose: string;
|
|
74
75
|
};
|
|
75
76
|
}, undefined, "text-sm rtl:text-right font-medium block", unknown, unknown, undefined>>;
|
|
76
|
-
export type LabelTheme =
|
|
77
|
+
export type LabelTheme = ClassValue;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { type PhoneInputProps
|
|
2
|
+
import { type PhoneInputProps } from "../..";
|
|
3
3
|
import { phoneinput, type PhoneInputTheme } from ".";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { getTheme } from "../../theme/themeUtils";
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
</script>
|
|
13
13
|
|
|
14
14
|
{#snippet phoneIconSnippet()}
|
|
15
|
-
<svg class={
|
|
15
|
+
<svg class={phonesvg({ class: clsx((theme as PhoneInputTheme)?.phonesvg) })} aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 19 18">
|
|
16
16
|
<path d="M18 13.446a3.02 3.02 0 0 0-.946-1.985l-1.4-1.4a3.054 3.054 0 0 0-4.218 0l-.7.7a.983.983 0 0 1-1.39 0l-2.1-2.1a.983.983 0 0 1 0-1.389l.7-.7a2.98 2.98 0 0 0 0-4.217l-1.4-1.4a2.824 2.824 0 0 0-4.218 0c-3.619 3.619-3 8.229 1.752 12.979C6.785 16.639 9.45 18 11.912 18a7.175 7.175 0 0 0 5.139-2.325A2.9 2.9 0 0 0 18 13.446Z" />
|
|
17
17
|
</svg>
|
|
18
18
|
{/snippet}
|
|
@@ -20,20 +20,20 @@
|
|
|
20
20
|
{#if phoneType === "default" || phoneType === "countryCode"}
|
|
21
21
|
<div class="relative">
|
|
22
22
|
{#if phoneIcon}
|
|
23
|
-
<div class={
|
|
23
|
+
<div class={defaultDiv({ class: clsx((theme as PhoneInputTheme)?.defaultDiv, classes?.defaultDiv) })}>
|
|
24
24
|
{@render phoneIconSnippet()}
|
|
25
25
|
</div>
|
|
26
26
|
{/if}
|
|
27
|
-
<input type="tel" {pattern} {...restProps} class={
|
|
27
|
+
<input type="tel" {pattern} {...restProps} class={defaultInput({ class: clsx((theme as PhoneInputTheme)?.defaultInput, classes?.defaultInput) })} />
|
|
28
28
|
</div>
|
|
29
29
|
{:else if phoneType === "floating"}
|
|
30
30
|
<div class="relative">
|
|
31
31
|
{#if phoneIcon}
|
|
32
|
-
<span class={
|
|
32
|
+
<span class={floatingSpan({ class: clsx((theme as PhoneInputTheme)?.floatingSpan, classes?.floatingSpan) })}>
|
|
33
33
|
{@render phoneIconSnippet()}
|
|
34
34
|
</span>
|
|
35
35
|
{/if}
|
|
36
|
-
<input type="tel" class={
|
|
37
|
-
<label for={labelFor} class={
|
|
36
|
+
<input type="tel" class={floatingInput({ class: clsx((theme as PhoneInputTheme)?.floatingInput, classes?.floatingInput) })} {pattern} {...restProps} />
|
|
37
|
+
<label for={labelFor} class={labelFloating({ class: clsx((theme as PhoneInputTheme)?.labelFloating, classes?.labelFloating) })}>{floatingLabel}</label>
|
|
38
38
|
</div>
|
|
39
39
|
{/if}
|
|
@@ -83,4 +83,4 @@ export declare const phoneinput: import("tailwind-variants").TVReturnType<{
|
|
|
83
83
|
labelFloating: string;
|
|
84
84
|
}, undefined, unknown, unknown, undefined>>;
|
|
85
85
|
export type PhoneInputSlots = keyof typeof phoneinput.slots;
|
|
86
|
-
export type PhoneInputTheme = Partial<Record<PhoneInputSlots,
|
|
86
|
+
export type PhoneInputTheme = Partial<Record<PhoneInputSlots, ClassValue>>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<script lang="ts" generics="T">
|
|
2
2
|
import { getContext } from "svelte";
|
|
3
3
|
import { radio, type RadioTheme } from ".";
|
|
4
|
-
import
|
|
4
|
+
import clsx from "clsx";
|
|
5
|
+
import { type RadioProps, Label } from "../..";
|
|
5
6
|
import { getTheme } from "../../theme/themeUtils";
|
|
6
7
|
|
|
7
8
|
let { children, "aria-describedby": ariaDescribedby, inline = false, labelClass, color = "primary", custom = false, group = $bindable<T>(), value = $bindable<T>(), inputClass, ...restProps }: RadioProps<T> = $props();
|
|
@@ -11,8 +12,8 @@
|
|
|
11
12
|
const { input, label } = $derived(radio({ color, tinted: !!getContext("background"), custom, inline }));
|
|
12
13
|
</script>
|
|
13
14
|
|
|
14
|
-
<Label class={
|
|
15
|
-
<input type="radio" bind:group {value} aria-describedby={ariaDescribedby} {...restProps} class={
|
|
15
|
+
<Label class={label({ class: clsx((theme as RadioTheme)?.label, labelClass) })}>
|
|
16
|
+
<input type="radio" bind:group {value} aria-describedby={ariaDescribedby} {...restProps} class={input({ class: clsx((theme as RadioTheme)?.input, inputClass) })} />
|
|
16
17
|
{@render children?.()}
|
|
17
18
|
</Label>
|
|
18
19
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script lang="ts" generics="T">
|
|
2
|
-
import
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import { Button, type RadioButtonProps } from "../..";
|
|
3
4
|
import { radiobutton } from ".";
|
|
4
5
|
import { getTheme } from "../../theme/themeUtils";
|
|
5
6
|
|
|
@@ -9,7 +10,7 @@
|
|
|
9
10
|
|
|
10
11
|
let inputEl: HTMLInputElement;
|
|
11
12
|
let isChecked = $derived(value == group);
|
|
12
|
-
let base = $derived(
|
|
13
|
+
let base = $derived(radiobutton({ inline, class: clsx(isChecked && checkedClass, theme, className) }));
|
|
13
14
|
|
|
14
15
|
function clickHandler() {
|
|
15
16
|
inputEl?.click(); // manually trigger the click on the hidden input
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
+
import type { ClassValue } from "svelte/elements";
|
|
2
3
|
export type RadioVariants = VariantProps<typeof radio>;
|
|
3
4
|
export declare const radio: import("tailwind-variants").TVReturnType<{
|
|
4
5
|
color: {
|
|
@@ -272,7 +273,7 @@ export declare const radio: import("tailwind-variants").TVReturnType<{
|
|
|
272
273
|
label: string;
|
|
273
274
|
}, undefined, unknown, unknown, undefined>>;
|
|
274
275
|
export type RadioSlots = keyof typeof radio.slots;
|
|
275
|
-
export type RadioTheme = Partial<Record<RadioSlots,
|
|
276
|
+
export type RadioTheme = Partial<Record<RadioSlots, ClassValue>>;
|
|
276
277
|
export declare const radiobutton: import("tailwind-variants").TVReturnType<{
|
|
277
278
|
inline: {
|
|
278
279
|
true: string;
|
|
@@ -289,4 +290,4 @@ export declare const radiobutton: import("tailwind-variants").TVReturnType<{
|
|
|
289
290
|
false: string;
|
|
290
291
|
};
|
|
291
292
|
}, undefined, "", unknown, unknown, undefined>>;
|
|
292
|
-
export type RadioButtonTheme =
|
|
293
|
+
export type RadioButtonTheme = ClassValue;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { range } from "./";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { type RangeProps } from "../..";
|
|
4
5
|
import { getTheme } from "../../theme/themeUtils";
|
|
5
6
|
|
|
6
7
|
let { value = $bindable(), appearance = "none", color = "blue", size = "md", inputClass, ...restProps }: RangeProps = $props();
|
|
7
8
|
|
|
8
9
|
const theme = getTheme("range");
|
|
9
10
|
|
|
10
|
-
const inputCls = $derived(
|
|
11
|
+
const inputCls = $derived(range({ appearance, color, size, class: clsx(theme, inputClass) }));
|
|
11
12
|
</script>
|
|
12
13
|
|
|
13
14
|
<input type="range" bind:value {...restProps} class={inputCls} />
|
|
@@ -16,7 +17,7 @@
|
|
|
16
17
|
@component
|
|
17
18
|
[Go to docs](https://flowbite-svelte.com/)
|
|
18
19
|
## Type
|
|
19
|
-
[RangeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
20
|
+
[RangeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L827)
|
|
20
21
|
## Props
|
|
21
22
|
@prop value = $bindable()
|
|
22
23
|
@prop appearance = "none"
|
|
@@ -2,7 +2,7 @@ import { type RangeProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [RangeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [RangeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L827)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop value = $bindable()
|
|
8
8
|
* @prop appearance = "none"
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
+
import type { ClassValue } from "svelte/elements";
|
|
2
3
|
export type RangeVariants = VariantProps<typeof range>;
|
|
3
4
|
export declare const range: import("tailwind-variants").TVReturnType<{
|
|
4
5
|
size: {
|
|
@@ -64,4 +65,4 @@ export declare const range: import("tailwind-variants").TVReturnType<{
|
|
|
64
65
|
none: string;
|
|
65
66
|
};
|
|
66
67
|
}, undefined, "w-full bg-gray-200 rounded-lg cursor-pointer dark:bg-gray-700", unknown, unknown, undefined>>;
|
|
67
|
-
export type RangeTheme =
|
|
68
|
+
export type RangeTheme = ClassValue;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { search, type SearchTheme } from ".";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { CloseButton, type SearchProps } from "../..";
|
|
4
5
|
import { getTheme } from "../../theme/themeUtils";
|
|
5
6
|
|
|
6
7
|
let { children, inputClass, size, placeholder = "Search", value = $bindable(), elementRef = $bindable(), clearable = false, clearableSvgClass, clearableColor = "none", clearableClass, clearableOnClick, ...restProps }: SearchProps = $props();
|
|
@@ -18,20 +19,20 @@
|
|
|
18
19
|
};
|
|
19
20
|
</script>
|
|
20
21
|
|
|
21
|
-
<div class={
|
|
22
|
-
<div class={
|
|
23
|
-
<svg class={
|
|
22
|
+
<div class={base({ class: clsx((theme as SearchTheme)?.base) })}>
|
|
23
|
+
<div class={leftDiv({ class: clsx((theme as SearchTheme)?.leftDiv) })}>
|
|
24
|
+
<svg class={icon({ class: clsx((theme as SearchTheme)?.icon) })} aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20">
|
|
24
25
|
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z" />
|
|
25
26
|
</svg>
|
|
26
27
|
</div>
|
|
27
|
-
<input type="search" bind:value bind:this={elementRef} class={
|
|
28
|
+
<input type="search" bind:value bind:this={elementRef} class={inputCls({ class: clsx((theme as SearchTheme)?.input, inputClass) })} {placeholder} required {...restProps} />
|
|
28
29
|
{#if children}
|
|
29
|
-
<div class={
|
|
30
|
+
<div class={content({ class: clsx((theme as SearchTheme)?.content) })}>
|
|
30
31
|
{@render children()}
|
|
31
32
|
</div>
|
|
32
33
|
{/if}
|
|
33
34
|
{#if value !== undefined && value !== "" && clearable}
|
|
34
|
-
<CloseButton onclick={clearAll} class={
|
|
35
|
+
<CloseButton onclick={clearAll} class={closebutton({ class: clsx((theme as SearchTheme)?.closebutton, clearableClass) })} color={clearableColor} aria-label="Clear search value" svgClass={clsx(clearableSvgClass)} />
|
|
35
36
|
{/if}
|
|
36
37
|
</div>
|
|
37
38
|
|
|
@@ -39,7 +40,7 @@
|
|
|
39
40
|
@component
|
|
40
41
|
[Go to docs](https://flowbite-svelte.com/)
|
|
41
42
|
## Type
|
|
42
|
-
[SearchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
43
|
+
[SearchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L833)
|
|
43
44
|
## Props
|
|
44
45
|
@prop children
|
|
45
46
|
@prop inputClass
|
|
@@ -2,7 +2,7 @@ import { type SearchProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SearchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SearchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L833)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop inputClass
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
+
import type { ClassValue } from "svelte/elements";
|
|
2
3
|
export type SearchVariants = VariantProps<typeof search>;
|
|
3
4
|
export declare const search: import("tailwind-variants").TVReturnType<{
|
|
4
5
|
size: {
|
|
@@ -68,4 +69,4 @@ export declare const search: import("tailwind-variants").TVReturnType<{
|
|
|
68
69
|
closebutton: string;
|
|
69
70
|
}, undefined, unknown, unknown, undefined>>;
|
|
70
71
|
export type SearchSlots = keyof typeof search.slots;
|
|
71
|
-
export type SearchTheme = Partial<Record<SearchSlots,
|
|
72
|
+
export type SearchTheme = Partial<Record<SearchSlots, ClassValue>>;
|