flowbite-svelte 1.4.3 → 1.5.1
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 +2 -3
- package/dist/accordion/Accordion.svelte.d.ts +1 -1
- package/dist/accordion/AccordionItem.svelte +2 -5
- package/dist/accordion/AccordionItem.svelte.d.ts +1 -1
- package/dist/accordion/index.d.ts +3 -4
- package/dist/accordion/index.js +3 -4
- package/dist/alert/Alert.svelte +12 -15
- package/dist/alert/Alert.svelte.d.ts +2 -2
- package/dist/alert/index.d.ts +2 -3
- package/dist/alert/index.js +2 -3
- package/dist/avatar/Avatar.svelte +11 -11
- package/dist/avatar/Avatar.svelte.d.ts +2 -2
- package/dist/avatar/index.d.ts +2 -3
- package/dist/avatar/index.js +2 -3
- package/dist/badge/Badge.svelte +5 -8
- package/dist/badge/Badge.svelte.d.ts +2 -2
- package/dist/badge/index.d.ts +2 -3
- package/dist/badge/index.js +2 -3
- package/dist/banner/Banner.svelte +8 -9
- package/dist/banner/Banner.svelte.d.ts +3 -2
- package/dist/banner/index.d.ts +2 -3
- package/dist/banner/index.js +2 -3
- package/dist/bottom-navigation/BottomNav.svelte +7 -10
- package/dist/bottom-navigation/BottomNav.svelte.d.ts +2 -2
- package/dist/bottom-navigation/BottomNavHeader.svelte +4 -4
- package/dist/bottom-navigation/BottomNavHeader.svelte.d.ts +2 -2
- package/dist/bottom-navigation/BottomNavHeaderItem.svelte +4 -5
- package/dist/bottom-navigation/BottomNavHeaderItem.svelte.d.ts +2 -2
- package/dist/bottom-navigation/BottomNavItem.svelte +6 -7
- package/dist/bottom-navigation/BottomNavItem.svelte.d.ts +2 -2
- package/dist/bottom-navigation/index.d.ts +5 -6
- package/dist/bottom-navigation/index.js +5 -6
- package/dist/breadcrumb/Breadcrumb.svelte +5 -6
- package/dist/breadcrumb/Breadcrumb.svelte.d.ts +2 -2
- package/dist/breadcrumb/BreadcrumbItem.svelte +12 -13
- package/dist/breadcrumb/BreadcrumbItem.svelte.d.ts +2 -2
- package/dist/breadcrumb/index.d.ts +3 -4
- package/dist/breadcrumb/index.js +3 -4
- package/dist/button-group/ButtonGroup.svelte +3 -3
- package/dist/button-group/ButtonGroup.svelte.d.ts +2 -2
- package/dist/button-group/index.d.ts +2 -3
- package/dist/button-group/index.js +2 -3
- package/dist/buttons/Button.svelte +7 -11
- package/dist/buttons/Button.svelte.d.ts +3 -4
- package/dist/buttons/GradientButton.svelte +7 -9
- package/dist/buttons/GradientButton.svelte.d.ts +3 -2
- package/dist/buttons/index.d.ts +3 -4
- package/dist/buttons/index.js +3 -4
- package/dist/card/Card.svelte +11 -27
- package/dist/card/Card.svelte.d.ts +2 -3
- package/dist/card/index.d.ts +2 -3
- package/dist/card/index.js +2 -3
- package/dist/card/theme.d.ts +2 -0
- package/dist/carousel/Carousel.svelte +6 -11
- package/dist/carousel/Carousel.svelte.d.ts +2 -2
- package/dist/carousel/ControlButton.svelte +6 -6
- package/dist/carousel/ControlButton.svelte.d.ts +3 -2
- package/dist/carousel/Controls.svelte +5 -6
- package/dist/carousel/Controls.svelte.d.ts +2 -2
- package/dist/carousel/Indicators.svelte +5 -6
- package/dist/carousel/Indicators.svelte.d.ts +1 -1
- package/dist/carousel/Slide.svelte +3 -4
- package/dist/carousel/Slide.svelte.d.ts +2 -2
- package/dist/carousel/Thumbnail.svelte +3 -3
- package/dist/carousel/Thumbnail.svelte.d.ts +2 -2
- package/dist/carousel/Thumbnails.svelte +8 -9
- package/dist/carousel/Thumbnails.svelte.d.ts +3 -3
- package/dist/carousel/index.d.ts +8 -7
- package/dist/carousel/index.js +8 -7
- package/dist/chart/Chart.svelte +3 -3
- package/dist/chart/Chart.svelte.d.ts +2 -2
- package/dist/chart/index.d.ts +1 -2
- package/dist/chart/index.js +1 -2
- package/dist/clipboard/Clipboard.svelte +55 -0
- package/dist/clipboard/Clipboard.svelte.d.ts +17 -0
- package/dist/clipboard/index.d.ts +2 -0
- package/dist/clipboard/index.js +2 -0
- package/dist/clipboard/theme.d.ts +18 -0
- package/dist/clipboard/theme.js +13 -0
- package/dist/darkmode/DarkMode.svelte +4 -5
- package/dist/darkmode/DarkMode.svelte.d.ts +2 -2
- package/dist/darkmode/index.d.ts +2 -3
- package/dist/darkmode/index.js +2 -3
- package/dist/datepicker/Datepicker.svelte +8 -6
- package/dist/datepicker/Datepicker.svelte.d.ts +3 -1
- package/dist/datepicker/index.d.ts +2 -3
- package/dist/datepicker/index.js +2 -3
- package/dist/device-mockups/Android.svelte +9 -9
- package/dist/device-mockups/Android.svelte.d.ts +2 -2
- package/dist/device-mockups/DefaultMockup.svelte +8 -8
- package/dist/device-mockups/DefaultMockup.svelte.d.ts +2 -2
- package/dist/device-mockups/Desktop.svelte +6 -6
- package/dist/device-mockups/Desktop.svelte.d.ts +2 -2
- package/dist/device-mockups/DeviceMockup.svelte +1 -1
- package/dist/device-mockups/DeviceMockup.svelte.d.ts +1 -1
- package/dist/device-mockups/Ios.svelte +8 -8
- package/dist/device-mockups/Ios.svelte.d.ts +2 -2
- package/dist/device-mockups/Laptop.svelte +6 -6
- package/dist/device-mockups/Laptop.svelte.d.ts +2 -2
- package/dist/device-mockups/Smartwatch.svelte +8 -8
- package/dist/device-mockups/Smartwatch.svelte.d.ts +2 -2
- package/dist/device-mockups/Tablet.svelte +8 -8
- package/dist/device-mockups/Tablet.svelte.d.ts +2 -2
- package/dist/device-mockups/index.d.ts +9 -10
- package/dist/device-mockups/index.js +9 -10
- package/dist/device-mockups/theme.d.ts +30 -30
- package/dist/drawer/Drawer.svelte +4 -5
- package/dist/drawer/Drawer.svelte.d.ts +1 -1
- package/dist/drawer/Drawerhead.svelte +5 -6
- package/dist/drawer/Drawerhead.svelte.d.ts +2 -2
- package/dist/drawer/index.d.ts +3 -4
- package/dist/drawer/index.js +3 -4
- package/dist/dropdown/Dropdown.svelte +4 -8
- package/dist/dropdown/Dropdown.svelte.d.ts +2 -3
- package/dist/dropdown/DropdownDivider.svelte +6 -8
- package/dist/dropdown/DropdownDivider.svelte.d.ts +3 -3
- package/dist/dropdown/DropdownGroup.svelte +3 -6
- package/dist/dropdown/DropdownGroup.svelte.d.ts +2 -2
- package/dist/dropdown/DropdownHeader.svelte +3 -5
- package/dist/dropdown/DropdownHeader.svelte.d.ts +2 -2
- package/dist/dropdown/DropdownItem.svelte +13 -15
- package/dist/dropdown/DropdownItem.svelte.d.ts +2 -3
- package/dist/dropdown/index.d.ts +6 -7
- package/dist/dropdown/index.js +6 -7
- package/dist/footer/Footer.svelte +4 -4
- package/dist/footer/Footer.svelte.d.ts +2 -2
- package/dist/footer/FooterBrand.svelte +6 -6
- package/dist/footer/FooterBrand.svelte.d.ts +2 -2
- package/dist/footer/FooterCopyright.svelte +8 -7
- package/dist/footer/FooterCopyright.svelte.d.ts +3 -2
- package/dist/footer/FooterIcon.svelte +5 -7
- package/dist/footer/FooterIcon.svelte.d.ts +3 -3
- package/dist/footer/FooterLink.svelte +5 -5
- package/dist/footer/FooterLink.svelte.d.ts +2 -2
- package/dist/footer/FooterLinkGroup.svelte +5 -6
- package/dist/footer/FooterLinkGroup.svelte.d.ts +3 -3
- package/dist/footer/index.d.ts +7 -8
- package/dist/footer/index.js +7 -8
- package/dist/forms/button-toggle/ButtonToggle.svelte +9 -9
- package/dist/forms/button-toggle/ButtonToggle.svelte.d.ts +2 -1
- package/dist/forms/button-toggle/ButtonToggleGroup.svelte +4 -5
- package/dist/forms/button-toggle/CheckIcon.svelte +13 -2
- package/dist/forms/button-toggle/CheckIcon.svelte.d.ts +10 -3
- package/dist/forms/button-toggle/theme.d.ts +2 -2
- package/dist/forms/button-toggle/theme.js +1 -1
- package/dist/forms/checkbox/Checkbox.svelte +5 -7
- package/dist/forms/checkbox/CheckboxButton.svelte +3 -4
- package/dist/forms/checkbox/CheckboxButton.svelte.d.ts +2 -2
- package/dist/forms/checkbox/theme.d.ts +2 -0
- package/dist/forms/dropzone/Dropzone.svelte +3 -5
- package/dist/forms/dropzone/Dropzone.svelte.d.ts +2 -2
- package/dist/forms/fileupload/Fileupload.svelte +7 -7
- package/dist/forms/fileupload/Fileupload.svelte.d.ts +2 -1
- package/dist/forms/floating-label/FloatingLabelInput.svelte +9 -10
- package/dist/forms/floating-label/FloatingLabelInput.svelte.d.ts +2 -2
- package/dist/forms/helper/Helper.svelte +3 -4
- package/dist/forms/helper/Helper.svelte.d.ts +2 -2
- package/dist/forms/input-addon/InputAddon.svelte +3 -5
- package/dist/forms/input-addon/InputAddon.svelte.d.ts +2 -2
- package/dist/forms/input-addon/index.d.ts +1 -2
- package/dist/forms/input-addon/index.js +1 -2
- package/dist/forms/input-field/Input.svelte +11 -13
- package/dist/forms/input-field/index.d.ts +3 -4
- package/dist/forms/input-field/index.js +3 -4
- package/dist/forms/label/Label.svelte +3 -4
- package/dist/forms/label/Label.svelte.d.ts +2 -2
- package/dist/forms/label/index.d.ts +2 -3
- package/dist/forms/label/index.js +2 -3
- package/dist/forms/radio/Radio.svelte +4 -6
- package/dist/forms/radio/Radio.svelte.d.ts +1 -1
- package/dist/forms/radio/RadioButton.svelte +2 -3
- package/dist/forms/range/Range.svelte +5 -6
- package/dist/forms/range/Range.svelte.d.ts +3 -3
- package/dist/forms/range/index.d.ts +2 -3
- package/dist/forms/range/index.js +2 -3
- package/dist/forms/search/Search.svelte +6 -7
- package/dist/forms/search/Search.svelte.d.ts +2 -2
- package/dist/forms/search/index.d.ts +2 -3
- package/dist/forms/search/index.js +2 -3
- package/dist/forms/select/MultiSelect.svelte +4 -6
- package/dist/forms/select/Select.svelte +4 -5
- package/dist/forms/tags/Tags.svelte +7 -7
- package/dist/forms/tags/Tags.svelte.d.ts +1 -1
- package/dist/forms/textarea/Textarea.svelte +12 -12
- package/dist/forms/textarea/Textarea.svelte.d.ts +2 -1
- package/dist/forms/textarea/index.d.ts +2 -3
- package/dist/forms/textarea/index.js +2 -3
- package/dist/forms/timepicker/Timepicker.svelte +51 -26
- package/dist/forms/timepicker/Timepicker.svelte.d.ts +5 -5
- package/dist/forms/timepicker/index.d.ts +1 -2
- package/dist/forms/timepicker/index.js +1 -3
- package/dist/forms/toggle/Toggle.svelte +5 -7
- package/dist/forms/toggle/Toggle.svelte.d.ts +2 -2
- package/dist/forms/toggle/index.d.ts +2 -3
- package/dist/forms/toggle/index.js +2 -3
- package/dist/gallery/Gallery.svelte +4 -5
- package/dist/gallery/Gallery.svelte.d.ts +2 -2
- package/dist/gallery/index.d.ts +2 -3
- package/dist/gallery/index.js +2 -3
- package/dist/gallery/theme.d.ts +3 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/indicator/Indicator.svelte +3 -4
- package/dist/indicator/Indicator.svelte.d.ts +2 -2
- package/dist/indicator/index.d.ts +2 -3
- package/dist/indicator/index.js +2 -3
- package/dist/kbd/Kbd.svelte +3 -4
- package/dist/kbd/Kbd.svelte.d.ts +2 -2
- package/dist/kbd/index.d.ts +2 -3
- package/dist/kbd/index.js +2 -3
- package/dist/list-group/Listgroup.svelte +6 -8
- package/dist/list-group/Listgroup.svelte.d.ts +2 -2
- package/dist/list-group/ListgroupItem.svelte +9 -11
- package/dist/list-group/ListgroupItem.svelte.d.ts +3 -4
- package/dist/list-group/index.d.ts +3 -4
- package/dist/list-group/index.js +3 -4
- package/dist/list-group/theme.d.ts +4 -4
- package/dist/list-group/theme.js +2 -2
- package/dist/mega-menu/MegaMenu.svelte +7 -11
- package/dist/mega-menu/MegaMenu.svelte.d.ts +3 -2
- package/dist/mega-menu/index.d.ts +2 -3
- package/dist/mega-menu/index.js +2 -3
- package/dist/modal/Modal.svelte +7 -6
- package/dist/modal/Modal.svelte.d.ts +1 -1
- package/dist/navbar/Menu.svelte +3 -2
- package/dist/navbar/Menu.svelte.d.ts +1 -1
- package/dist/navbar/NavBrand.svelte +3 -2
- package/dist/navbar/NavBrand.svelte.d.ts +1 -1
- package/dist/navbar/NavContainer.svelte +3 -2
- package/dist/navbar/NavContainer.svelte.d.ts +1 -1
- package/dist/navbar/NavHamburger.svelte +4 -3
- package/dist/navbar/NavHamburger.svelte.d.ts +10 -3
- package/dist/navbar/NavLi.svelte +5 -5
- package/dist/navbar/NavLi.svelte.d.ts +1 -2
- package/dist/navbar/NavUl.svelte +10 -10
- package/dist/navbar/NavUl.svelte.d.ts +1 -1
- package/dist/navbar/Navbar.svelte +4 -3
- package/dist/navbar/Navbar.svelte.d.ts +1 -1
- package/dist/pagination/Pagination.svelte +1 -1
- package/dist/pagination/Pagination.svelte.d.ts +1 -1
- package/dist/pagination/PaginationButton.svelte +6 -6
- package/dist/pagination/PaginationButton.svelte.d.ts +1 -1
- package/dist/pagination/PaginationItem.svelte +5 -4
- package/dist/pagination/PaginationItem.svelte.d.ts +1 -1
- package/dist/pagination/PaginationNav.svelte +9 -7
- package/dist/pagination/PaginationNav.svelte.d.ts +1 -1
- package/dist/popover/Popover.svelte +4 -3
- package/dist/popover/Popover.svelte.d.ts +1 -1
- package/dist/progress/Progressbar.svelte +12 -15
- package/dist/progress/Progressbar.svelte.d.ts +3 -6
- package/dist/progress/Progressradial.svelte +14 -17
- package/dist/progress/Progressradial.svelte.d.ts +3 -6
- package/dist/progress/theme.d.ts +14 -0
- package/dist/rating/AdvancedRating.svelte +8 -6
- package/dist/rating/AdvancedRating.svelte.d.ts +1 -1
- package/dist/rating/CustomIcon.svelte +3 -2
- package/dist/rating/CustomIcon.svelte.d.ts +1 -1
- package/dist/rating/Heart.svelte +3 -2
- package/dist/rating/Heart.svelte.d.ts +1 -1
- package/dist/rating/Rating.svelte +6 -6
- package/dist/rating/Rating.svelte.d.ts +2 -2
- package/dist/rating/RatingComment.svelte +1 -1
- package/dist/rating/RatingComment.svelte.d.ts +1 -1
- package/dist/rating/Review.svelte +11 -10
- package/dist/rating/Review.svelte.d.ts +1 -1
- package/dist/rating/ScoreRating.svelte +1 -1
- package/dist/rating/ScoreRating.svelte.d.ts +1 -1
- package/dist/rating/Star.svelte +3 -2
- package/dist/rating/Star.svelte.d.ts +1 -1
- package/dist/rating/Thumbup.svelte +3 -2
- package/dist/rating/Thumbup.svelte.d.ts +1 -1
- package/dist/rating/theme.d.ts +3 -3
- package/dist/sidebar/Sidebar.svelte +9 -8
- package/dist/sidebar/Sidebar.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarBrand.svelte +5 -4
- package/dist/sidebar/SidebarBrand.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarButton.svelte +3 -2
- package/dist/sidebar/SidebarButton.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarCta.svelte +5 -4
- package/dist/sidebar/SidebarCta.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarDropdownWrapper.svelte +9 -8
- package/dist/sidebar/SidebarDropdownWrapper.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarGroup.svelte +3 -2
- package/dist/sidebar/SidebarGroup.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarItem.svelte +5 -10
- package/dist/sidebar/SidebarItem.svelte.d.ts +2 -2
- package/dist/sidebar/theme.d.ts +9 -9
- package/dist/skeleton/CardPlaceholder.svelte +3 -2
- package/dist/skeleton/CardPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ImagePlaceholder.svelte +3 -2
- package/dist/skeleton/ImagePlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ListPlaceholder.svelte +3 -2
- package/dist/skeleton/ListPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/Skeleton.svelte +3 -2
- package/dist/skeleton/Skeleton.svelte.d.ts +1 -1
- package/dist/skeleton/TestimonialPlaceholder.svelte +8 -4
- package/dist/skeleton/TestimonialPlaceholder.svelte.d.ts +6 -3
- package/dist/skeleton/TextPlaceholder.svelte +3 -2
- package/dist/skeleton/TextPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/VideoPlaceholder.svelte +4 -3
- package/dist/skeleton/VideoPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/WidgetPlaceholder.svelte +7 -4
- package/dist/skeleton/WidgetPlaceholder.svelte.d.ts +5 -3
- package/dist/speed-dial/SpeedDial.svelte +5 -4
- package/dist/speed-dial/SpeedDial.svelte.d.ts +1 -1
- package/dist/speed-dial/SpeedDialButton.svelte +4 -3
- package/dist/speed-dial/SpeedDialButton.svelte.d.ts +1 -1
- package/dist/speed-dial/SpeedDialTrigger.svelte +3 -2
- package/dist/speed-dial/SpeedDialTrigger.svelte.d.ts +1 -1
- package/dist/spinner/Spinner.svelte +4 -3
- package/dist/spinner/Spinner.svelte.d.ts +1 -1
- package/dist/stepindicator/StepIndicator.svelte +5 -3
- package/dist/stepindicator/StepIndicator.svelte.d.ts +1 -1
- package/dist/table/Table.svelte +4 -3
- package/dist/table/Table.svelte.d.ts +1 -1
- package/dist/table/TableBody.svelte +3 -2
- package/dist/table/TableBody.svelte.d.ts +1 -1
- package/dist/table/TableBodyCell.svelte +3 -4
- package/dist/table/TableBodyCell.svelte.d.ts +1 -1
- package/dist/table/TableBodyRow.svelte +4 -3
- package/dist/table/TableBodyRow.svelte.d.ts +1 -1
- package/dist/table/TableHead.svelte +4 -3
- package/dist/table/TableHead.svelte.d.ts +1 -1
- package/dist/table/TableHeadCell.svelte +3 -3
- 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/tabs/TabItem.svelte +4 -16
- package/dist/tabs/TabItem.svelte.d.ts +2 -2
- package/dist/tabs/Tabs.svelte +5 -3
- package/dist/tabs/Tabs.svelte.d.ts +1 -1
- package/dist/theme/Theme.svelte +1 -1
- package/dist/theme/Theme.svelte.d.ts +1 -1
- package/dist/theme/index.d.ts +77 -61
- package/dist/theme/index.js +2 -1
- package/dist/timeline/Activity.svelte +1 -1
- package/dist/timeline/Activity.svelte.d.ts +1 -1
- package/dist/timeline/ActivityItem.svelte +1 -1
- package/dist/timeline/ActivityItem.svelte.d.ts +1 -1
- package/dist/timeline/Group.svelte +1 -1
- package/dist/timeline/Group.svelte.d.ts +1 -1
- package/dist/timeline/GroupItem.svelte +1 -1
- package/dist/timeline/GroupItem.svelte.d.ts +1 -1
- package/dist/timeline/Timeline.svelte +1 -1
- package/dist/timeline/Timeline.svelte.d.ts +1 -1
- package/dist/timeline/TimelineItem.svelte +1 -1
- package/dist/timeline/TimelineItem.svelte.d.ts +1 -1
- package/dist/timeline/theme.d.ts +12 -12
- package/dist/toast/Toast.svelte +1 -1
- package/dist/toast/Toast.svelte.d.ts +1 -1
- package/dist/toolbar/Toolbar.svelte +1 -1
- package/dist/toolbar/Toolbar.svelte.d.ts +1 -1
- package/dist/toolbar/ToolbarButton.svelte +3 -6
- package/dist/toolbar/ToolbarButton.svelte.d.ts +1 -2
- package/dist/toolbar/ToolbarGroup.svelte +1 -1
- package/dist/toolbar/ToolbarGroup.svelte.d.ts +1 -1
- package/dist/tooltip/Tooltip.svelte +1 -1
- package/dist/tooltip/Tooltip.svelte.d.ts +1 -1
- package/dist/types.d.ts +279 -313
- package/dist/typography/anchor/A.svelte +1 -1
- package/dist/typography/anchor/A.svelte.d.ts +1 -1
- package/dist/typography/blockquote/Blockquote.svelte +1 -1
- package/dist/typography/blockquote/Blockquote.svelte.d.ts +1 -1
- package/dist/typography/descriptionlist/DescriptionList.svelte +1 -1
- package/dist/typography/descriptionlist/DescriptionList.svelte.d.ts +1 -1
- package/dist/typography/heading/Heading.svelte +1 -1
- package/dist/typography/heading/Heading.svelte.d.ts +1 -1
- package/dist/typography/hr/Hr.svelte +1 -1
- package/dist/typography/hr/Hr.svelte.d.ts +1 -1
- package/dist/typography/img/EnhancedImg.svelte +1 -1
- package/dist/typography/img/EnhancedImg.svelte.d.ts +1 -1
- package/dist/typography/img/Img.svelte +1 -1
- package/dist/typography/img/Img.svelte.d.ts +1 -1
- package/dist/typography/layout/Layout.svelte +1 -1
- package/dist/typography/layout/Layout.svelte.d.ts +1 -1
- package/dist/typography/list/Li.svelte +1 -1
- package/dist/typography/list/Li.svelte.d.ts +1 -1
- package/dist/typography/list/List.svelte +1 -1
- package/dist/typography/list/List.svelte.d.ts +1 -1
- package/dist/typography/mark/Mark.svelte +1 -1
- package/dist/typography/mark/Mark.svelte.d.ts +1 -1
- package/dist/typography/paragraph/P.svelte +1 -1
- package/dist/typography/paragraph/P.svelte.d.ts +1 -1
- package/dist/typography/secondary/Secondary.svelte +1 -1
- package/dist/typography/secondary/Secondary.svelte.d.ts +1 -1
- package/dist/typography/span/Span.svelte +1 -1
- package/dist/typography/span/Span.svelte.d.ts +1 -1
- package/dist/utils/Arrow.svelte +1 -1
- package/dist/utils/Arrow.svelte.d.ts +1 -1
- package/dist/utils/CloseButton.svelte +1 -1
- package/dist/utils/CloseButton.svelte.d.ts +1 -1
- package/dist/utils/Popper.svelte +11 -9
- package/dist/utils/Popper.svelte.d.ts +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/video/Video.svelte +1 -1
- package/dist/video/Video.svelte.d.ts +1 -1
- package/package.json +19 -15
- package/dist/kbd/type.d.ts +0 -0
- package/dist/kbd/type.js +0 -7
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { setContext } from "svelte";
|
|
3
|
-
import {
|
|
4
|
-
import { type ButtonToggleGroupProps, buttonToggleGroup } from "../..";
|
|
3
|
+
import { type ButtonToggleGroupProps, buttonToggleGroup, cn } from "../..";
|
|
5
4
|
|
|
6
5
|
let { multiSelect = false, name = "toggle-group", value = multiSelect ? [] : null, color, size = "md", roundedSize = "md", onSelect = (val: any) => {}, children, ctxIconClass, ctxBtnClass, class: className, ...restProps }: ButtonToggleGroupProps = $props();
|
|
7
6
|
|
|
@@ -57,12 +56,12 @@
|
|
|
57
56
|
setContext("buttonToggleColor", color);
|
|
58
57
|
setContext("buttonToggleSize", size);
|
|
59
58
|
setContext("buttonToggleRounded", roundedSize);
|
|
60
|
-
setContext("ctxIconClass", ctxIconClass);
|
|
61
|
-
setContext("ctxBtnClass", ctxBtnClass);
|
|
59
|
+
setContext("ctxIconClass", cn(ctxIconClass));
|
|
60
|
+
setContext("ctxBtnClass", cn(ctxBtnClass));
|
|
62
61
|
</script>
|
|
63
62
|
|
|
64
63
|
<div class="inline">
|
|
65
|
-
<div class={
|
|
64
|
+
<div class={cn(base, className)} role={multiSelect ? "group" : "radiogroup"} aria-label={name} {...restProps}>
|
|
66
65
|
{@render children()}
|
|
67
66
|
</div>
|
|
68
67
|
</div>
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
|
|
2
|
+
import { type CheckIconProps, cn } from "../..";
|
|
3
|
+
let { class: className, ...restProps }: CheckIconProps = $props();
|
|
3
4
|
</script>
|
|
4
5
|
|
|
5
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class={className} {...restProps}>
|
|
6
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class={cn(className)} {...restProps}>
|
|
6
7
|
<polyline points="20 6 9 17 4 12"></polyline>
|
|
7
8
|
</svg>
|
|
9
|
+
|
|
10
|
+
<!--
|
|
11
|
+
@component
|
|
12
|
+
[Go to docs](https://flowbite-svelte.com/)
|
|
13
|
+
## Type
|
|
14
|
+
[CheckIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L385)
|
|
15
|
+
## Props
|
|
16
|
+
@prop class: className
|
|
17
|
+
@prop ...restProps
|
|
18
|
+
-->
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { type CheckIconProps } from "../..";
|
|
2
|
+
/**
|
|
3
|
+
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
|
+
* ## Type
|
|
5
|
+
* [CheckIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L385)
|
|
6
|
+
* ## Props
|
|
7
|
+
* @prop class: className
|
|
8
|
+
* @prop ...restProps
|
|
9
|
+
*/
|
|
10
|
+
declare const CheckIcon: import("svelte").Component<CheckIconProps, {}, "">;
|
|
4
11
|
type CheckIcon = ReturnType<typeof CheckIcon>;
|
|
5
12
|
export default CheckIcon;
|
|
@@ -65,7 +65,7 @@ export declare const buttonToggle: import("tailwind-variants").TVReturnType<{
|
|
|
65
65
|
rose: string;
|
|
66
66
|
none: string;
|
|
67
67
|
};
|
|
68
|
-
}, undefined, "relative flex items-center transition-all duration-200 focus:outline-none border-r last:border-r-0", {
|
|
68
|
+
}, undefined, "relative flex items-center transition-all duration-200 focus:outline-none border-r last:border-r-0 dark:bg-white dark:text-gray-800", {
|
|
69
69
|
selected: {
|
|
70
70
|
true: string;
|
|
71
71
|
false: string;
|
|
@@ -147,7 +147,7 @@ export declare const buttonToggle: import("tailwind-variants").TVReturnType<{
|
|
|
147
147
|
rose: string;
|
|
148
148
|
none: string;
|
|
149
149
|
};
|
|
150
|
-
}, undefined, "relative flex items-center transition-all duration-200 focus:outline-none border-r last:border-r-0", unknown, unknown, undefined>>;
|
|
150
|
+
}, undefined, "relative flex items-center transition-all duration-200 focus:outline-none border-r last:border-r-0 dark:bg-white dark:text-gray-800", unknown, unknown, undefined>>;
|
|
151
151
|
export declare const buttonToggleContent: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "flex items-center w-full overflow-hidden relative", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "flex items-center w-full overflow-hidden relative", unknown, unknown, undefined>>;
|
|
152
152
|
export declare const buttonToggleText: import("tailwind-variants").TVReturnType<{
|
|
153
153
|
selected: {
|
|
@@ -12,7 +12,7 @@ export const buttonToggleGroup = tv({
|
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
export const buttonToggle = tv({
|
|
15
|
-
base: "relative flex items-center transition-all duration-200 focus:outline-none border-r last:border-r-0",
|
|
15
|
+
base: "relative flex items-center transition-all duration-200 focus:outline-none border-r last:border-r-0 dark:bg-white dark:text-gray-800",
|
|
16
16
|
variants: {
|
|
17
17
|
selected: {
|
|
18
18
|
true: "",
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import Label from "../label/Label.svelte";
|
|
3
2
|
import { checkbox } from ".";
|
|
4
|
-
import { type CheckboxProps, type CheckboxItem } from "../..";
|
|
5
|
-
import clsx from "clsx";
|
|
3
|
+
import { type CheckboxProps, type CheckboxItem, Label, cn } from "../..";
|
|
6
4
|
|
|
7
5
|
let { children, color = "primary", custom, inline, tinted, rounded, group = $bindable([]), choices = [], checked = $bindable(false), indeterminate, class: className, divClass, disabled = false, value, labelProps = {}, ...restProps }: CheckboxProps = $props();
|
|
8
6
|
|
|
@@ -22,16 +20,16 @@
|
|
|
22
20
|
|
|
23
21
|
{#if choices.length > 0}
|
|
24
22
|
{#each choices as choice, i}
|
|
25
|
-
<div class={divStyle(
|
|
26
|
-
<input type="checkbox" value={choice.value} checked={choice.checked ?? false} {disabled} bind:group {...restProps} class={base(
|
|
23
|
+
<div class={cn(divStyle(), divClass)}>
|
|
24
|
+
<input type="checkbox" value={choice.value} checked={choice.checked ?? false} {disabled} bind:group {...restProps} class={cn(base(), className)} />
|
|
27
25
|
<Label show={true} {...labelProps}>
|
|
28
26
|
{renderLabel(choice)}
|
|
29
27
|
</Label>
|
|
30
28
|
</div>
|
|
31
29
|
{/each}
|
|
32
30
|
{:else}
|
|
33
|
-
<div class={divStyle(
|
|
34
|
-
<input type="checkbox" {value} bind:checked {indeterminate} {disabled} {...restProps} class={base(
|
|
31
|
+
<div class={cn(divStyle(), divClass)}>
|
|
32
|
+
<input type="checkbox" {value} bind:checked {indeterminate} {disabled} {...restProps} class={cn(base(), className)} />
|
|
35
33
|
{#if children}
|
|
36
34
|
{@render children({ value, checked, disabled })}
|
|
37
35
|
{/if}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import Button from "../../buttons/Button.svelte";
|
|
3
|
-
import
|
|
4
|
-
import type { CheckboxButtonProps } from "../../types";
|
|
3
|
+
import { type CheckboxButtonProps, cn } from "../..";
|
|
5
4
|
import { checkboxbutton } from "./theme";
|
|
6
5
|
|
|
7
6
|
let { children, class: className, group = $bindable([]), value, checked, inline, pill, outline, size, color, shadow, ...restProps }: CheckboxButtonProps = $props();
|
|
@@ -43,7 +42,7 @@
|
|
|
43
42
|
}
|
|
44
43
|
}
|
|
45
44
|
|
|
46
|
-
let buttonClass: string = $derived(checkboxbutton({ inline, checked,
|
|
45
|
+
let buttonClass: string = $derived(cn(checkboxbutton({ inline, checked }), className));
|
|
47
46
|
</script>
|
|
48
47
|
|
|
49
48
|
<Button tag="label" {checked} {pill} {outline} {size} {color} {shadow} class={buttonClass}>
|
|
@@ -55,7 +54,7 @@
|
|
|
55
54
|
@component
|
|
56
55
|
[Go to docs](https://flowbite-svelte.com/)
|
|
57
56
|
## Type
|
|
58
|
-
[CheckboxButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
57
|
+
[CheckboxButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L692)
|
|
59
58
|
## Props
|
|
60
59
|
@prop children
|
|
61
60
|
@prop class: className
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type CheckboxButtonProps } from "../..";
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [CheckboxButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [CheckboxButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L692)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { DragEventHandler, ChangeEventHandler } from "svelte/elements";
|
|
3
3
|
import { dropzone } from ".";
|
|
4
|
-
import type
|
|
5
|
-
import clsx from "clsx";
|
|
4
|
+
import { type DropzoneProps, cn } from "../..";
|
|
6
5
|
|
|
7
6
|
type HTMLInputElementWithFiles = HTMLInputElement & { files: FileList | null };
|
|
8
7
|
|
|
9
8
|
let { children, files = $bindable<FileList | null>(), class: className, ...restProps }: DropzoneProps = $props();
|
|
10
9
|
|
|
11
|
-
const base = $derived(dropzone({ class: clsx(className) }));
|
|
12
10
|
let input: HTMLInputElement;
|
|
13
11
|
|
|
14
12
|
function keydown(ev: KeyboardEvent) {
|
|
@@ -51,7 +49,7 @@
|
|
|
51
49
|
};
|
|
52
50
|
</script>
|
|
53
51
|
|
|
54
|
-
<button class={
|
|
52
|
+
<button class={cn(dropzone(), className)} onkeydown={keydown} onclick={onClick} ondrop={onDrop} ondragover={onDragOver} type="button">
|
|
55
53
|
{@render children()}
|
|
56
54
|
</button>
|
|
57
55
|
<label class="hidden">
|
|
@@ -62,7 +60,7 @@
|
|
|
62
60
|
@component
|
|
63
61
|
[Go to docs](https://flowbite-svelte.com/)
|
|
64
62
|
## Type
|
|
65
|
-
[DropzoneProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
63
|
+
[DropzoneProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L705)
|
|
66
64
|
## Props
|
|
67
65
|
@prop children
|
|
68
66
|
@prop files = $bindable<FileList | null>()
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type
|
|
1
|
+
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#L705)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop files = $bindable<FileList | null>()
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { fileupload } from ".";
|
|
3
|
-
import { CloseButton, type FileuploadProps } from "../..";
|
|
4
|
-
import clsx from "clsx";
|
|
3
|
+
import { CloseButton, type FileuploadProps, cn } from "../..";
|
|
5
4
|
|
|
6
|
-
let { files = $bindable(), size = "md", clearable = false, elementRef = $bindable(), class: className, clearableSvgClass, clearableColor = "none", clearableClass, clearableOnClick, ...restProps }: FileuploadProps = $props();
|
|
5
|
+
let { files = $bindable(), size = "md", clearable = false, elementRef = $bindable(), class: className, clearableSvgClass, clearableColor = "none", clearableClass, clearableOnClick, wrapperClass, ...restProps }: FileuploadProps = $props();
|
|
7
6
|
|
|
8
7
|
const { base, wrapper, right } = fileupload();
|
|
9
8
|
|
|
@@ -16,10 +15,10 @@
|
|
|
16
15
|
};
|
|
17
16
|
</script>
|
|
18
17
|
|
|
19
|
-
<div class={wrapper()}>
|
|
20
|
-
<input type="file" bind:files bind:this={elementRef} {...restProps} class={base({ size,
|
|
18
|
+
<div class={cn(wrapper(), wrapperClass)}>
|
|
19
|
+
<input type="file" bind:files bind:this={elementRef} {...restProps} class={cn(base({ size }), className)} />
|
|
21
20
|
{#if files && files.length > 0 && clearable}
|
|
22
|
-
<CloseButton onclick={clearAll} class={right(
|
|
21
|
+
<CloseButton onclick={clearAll} class={cn(right(), clearableClass)} color={clearableColor} aria-label="Clear selected files" svgClass={cn(clearableSvgClass)} />
|
|
23
22
|
{/if}
|
|
24
23
|
</div>
|
|
25
24
|
|
|
@@ -27,7 +26,7 @@
|
|
|
27
26
|
@component
|
|
28
27
|
[Go to docs](https://flowbite-svelte.com/)
|
|
29
28
|
## Type
|
|
30
|
-
[FileuploadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
29
|
+
[FileuploadProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L711)
|
|
31
30
|
## Props
|
|
32
31
|
@prop files = $bindable()
|
|
33
32
|
@prop size = "md"
|
|
@@ -38,5 +37,6 @@
|
|
|
38
37
|
@prop clearableColor = "none"
|
|
39
38
|
@prop clearableClass
|
|
40
39
|
@prop clearableOnClick
|
|
40
|
+
@prop wrapperClass
|
|
41
41
|
@prop ...restProps
|
|
42
42
|
-->
|
|
@@ -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#L711)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop files = $bindable()
|
|
8
8
|
* @prop size = "md"
|
|
@@ -13,6 +13,7 @@ import { type FileuploadProps } from "../..";
|
|
|
13
13
|
* @prop clearableColor = "none"
|
|
14
14
|
* @prop clearableClass
|
|
15
15
|
* @prop clearableOnClick
|
|
16
|
+
* @prop wrapperClass
|
|
16
17
|
* @prop ...restProps
|
|
17
18
|
*/
|
|
18
19
|
declare const Fileupload: import("svelte").Component<FileuploadProps, {}, "elementRef" | "files">;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { idGenerator } from "../../uiHelpers.svelte";
|
|
3
3
|
import { floatingLabelInput } from ".";
|
|
4
|
-
import { type FloatingLabelInputProps, CloseButton } from "../..";
|
|
5
|
-
import clsx from "clsx";
|
|
4
|
+
import { type FloatingLabelInputProps, CloseButton, cn } from "../..";
|
|
6
5
|
|
|
7
|
-
let { children, id = idGenerator(), value = $bindable(), elementRef = $bindable(), "aria-describedby": ariaDescribedby, variant = "standard", size = "default", color = "default", class:
|
|
6
|
+
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();
|
|
8
7
|
|
|
9
8
|
const { base, input, label, clearbtn, combo } = $derived(floatingLabelInput({ variant, size, color }));
|
|
10
9
|
|
|
@@ -124,17 +123,17 @@
|
|
|
124
123
|
<div tabindex="-1" bind:this={dummyFocusDiv} class="sr-only"></div>
|
|
125
124
|
{/if}
|
|
126
125
|
|
|
127
|
-
<div class={
|
|
128
|
-
<input {id} placeholder=" " bind:value bind:this={elementRef} {...restProps} aria-describedby={ariaDescribedby} class={input(
|
|
126
|
+
<div class={cn(base(), isCombobox ? "relative" : "", className)}>
|
|
127
|
+
<input {id} placeholder=" " bind:value bind:this={elementRef} {...restProps} aria-describedby={ariaDescribedby} class={cn(input(), inputClass)} oninput={handleInput} onfocus={handleFocus} onblur={handleBlur} onkeydown={handleKeydown} />
|
|
129
128
|
{#if value !== undefined && value !== "" && clearable}
|
|
130
|
-
<CloseButton onclick={clearAll} class={clearbtn(
|
|
129
|
+
<CloseButton onclick={clearAll} class={cn(clearbtn(), clearableClass)} color={clearableColor} aria-label="Clear search value" svgClass={cn(clearableSvgClass)} />
|
|
131
130
|
{/if}
|
|
132
|
-
<label for={id} class={label(
|
|
131
|
+
<label for={id} class={cn(label(), labelClass)}>
|
|
133
132
|
{@render children()}
|
|
134
133
|
</label>
|
|
135
134
|
|
|
136
135
|
{#if isCombobox && isFocused && filteredSuggestions.length > 0}
|
|
137
|
-
<div class={combo(
|
|
136
|
+
<div class={cn(combo(), comboClass)}>
|
|
138
137
|
{#each filteredSuggestions as item, i}
|
|
139
138
|
<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)}>
|
|
140
139
|
{item}
|
|
@@ -148,7 +147,7 @@
|
|
|
148
147
|
@component
|
|
149
148
|
[Go to docs](https://flowbite-svelte.com/)
|
|
150
149
|
## Type
|
|
151
|
-
[FloatingLabelInputProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
150
|
+
[FloatingLabelInputProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L725)
|
|
152
151
|
## Props
|
|
153
152
|
@prop children
|
|
154
153
|
@prop id = idGenerator()
|
|
@@ -158,7 +157,7 @@
|
|
|
158
157
|
@prop variant = "standard"
|
|
159
158
|
@prop size = "default"
|
|
160
159
|
@prop color = "default"
|
|
161
|
-
@prop class:
|
|
160
|
+
@prop class: className
|
|
162
161
|
@prop inputClass
|
|
163
162
|
@prop labelClass
|
|
164
163
|
@prop clearable
|
|
@@ -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#L725)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop id = idGenerator()
|
|
@@ -12,7 +12,7 @@ import { type FloatingLabelInputProps } from "../..";
|
|
|
12
12
|
* @prop variant = "standard"
|
|
13
13
|
* @prop size = "default"
|
|
14
14
|
* @prop color = "default"
|
|
15
|
-
* @prop class:
|
|
15
|
+
* @prop class: className
|
|
16
16
|
* @prop inputClass
|
|
17
17
|
* @prop labelClass
|
|
18
18
|
* @prop clearable
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import clsx from "clsx";
|
|
3
2
|
import { helper } from ".";
|
|
4
|
-
import type
|
|
3
|
+
import { type HelperProps, cn } from "../..";
|
|
5
4
|
|
|
6
5
|
let { children, class: className, color = "gray", ...restProps }: HelperProps = $props();
|
|
7
6
|
|
|
8
|
-
const base = $derived(helper({ color,
|
|
7
|
+
const base = $derived(cn(helper({ color }), className));
|
|
9
8
|
</script>
|
|
10
9
|
|
|
11
10
|
<p {...restProps} class={base}>
|
|
@@ -16,7 +15,7 @@
|
|
|
16
15
|
@component
|
|
17
16
|
[Go to docs](https://flowbite-svelte.com/)
|
|
18
17
|
## Type
|
|
19
|
-
[HelperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
18
|
+
[HelperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L748)
|
|
20
19
|
## Props
|
|
21
20
|
@prop children
|
|
22
21
|
@prop class: className
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type
|
|
1
|
+
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#L748)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { SizeType } from "../../types";
|
|
3
|
-
import { twMerge } from "tailwind-merge";
|
|
4
3
|
import { getContext } from "svelte";
|
|
5
|
-
import { clampSize } from "../..";
|
|
6
|
-
import type { InputAddonProps } from "../../types";
|
|
4
|
+
import { type InputAddonProps, clampSize, cn } from "../..";
|
|
7
5
|
|
|
8
6
|
let { children, class: className, size, ...restProps }: InputAddonProps = $props();
|
|
9
7
|
let background: boolean = getContext("background");
|
|
@@ -30,7 +28,7 @@
|
|
|
30
28
|
// size: explicit, inherited, default
|
|
31
29
|
let _size = size || clampSize(group?.size) || "md";
|
|
32
30
|
|
|
33
|
-
let divClass: string =
|
|
31
|
+
let divClass: string = cn(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", className);
|
|
34
32
|
</script>
|
|
35
33
|
|
|
36
34
|
<div {...restProps} class={divClass}>
|
|
@@ -41,7 +39,7 @@
|
|
|
41
39
|
@component
|
|
42
40
|
[Go to docs](https://flowbite-svelte.com/)
|
|
43
41
|
## Type
|
|
44
|
-
[InputAddonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
42
|
+
[InputAddonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L777)
|
|
45
43
|
## Props
|
|
46
44
|
@prop children
|
|
47
45
|
@prop class: className
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type
|
|
1
|
+
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#L777)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { InputAddon };
|
|
1
|
+
export { default as InputAddon } from "./InputAddon.svelte";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { InputAddon };
|
|
1
|
+
export { default as InputAddon } from "./InputAddon.svelte";
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { getContext } from "svelte";
|
|
3
|
-
import { CloseButton, type SizeType, type InputProps, type InputValue } from "../..";
|
|
4
|
-
import { twMerge } from "tailwind-merge";
|
|
3
|
+
import { CloseButton, type SizeType, type InputProps, type InputValue, cn } from "../..";
|
|
5
4
|
import { input, clampSize } from ".";
|
|
6
|
-
import clsx from "clsx";
|
|
7
5
|
|
|
8
|
-
let { children, left, right, value = $bindable(), elementRef = $bindable(), clearable = false, size, color = "default", class: className, wrapperClass,
|
|
6
|
+
let { children, left, right, value = $bindable(), elementRef = $bindable(), clearable = false, size, color = "default", class: className, wrapperClass, leftClass, rightClass, divClass, clearableSvgClass, clearableColor = "none", clearableClass, clearableOnClick, data = [], maxSuggestions = 5, onSelect, comboClass, ...restProps }: InputProps<InputValue> = $props();
|
|
9
7
|
|
|
10
8
|
// Automatically enable combobox when data is provided
|
|
11
9
|
const isCombobox = $derived(Array.isArray(data) && data.length > 0);
|
|
@@ -21,7 +19,7 @@
|
|
|
21
19
|
let _size = $derived(size || clampSize(group?.size) || "md");
|
|
22
20
|
const _color = $derived(color === "default" && background ? "tinted" : color);
|
|
23
21
|
|
|
24
|
-
const { base, input: inputCls, left: leftCls, right: rightCls, clearbtn, combo } = $derived(input({ size: _size, color: _color, group: isGroup
|
|
22
|
+
const { base, input: inputCls, left: leftCls, right: rightCls, clearbtn, combo } = $derived(input({ size: _size, color: _color, group: isGroup }));
|
|
25
23
|
|
|
26
24
|
const clearAll = () => {
|
|
27
25
|
if (elementRef) {
|
|
@@ -161,9 +159,9 @@
|
|
|
161
159
|
{/if}
|
|
162
160
|
|
|
163
161
|
{#if isCombobox}
|
|
164
|
-
<div class={
|
|
162
|
+
<div class={cn(isCombobox ? "relative w-full" : "", wrapperClass)}>
|
|
165
163
|
{#if right || left || clearable}
|
|
166
|
-
<div class={base(
|
|
164
|
+
<div class={cn(base(), divClass)}>
|
|
167
165
|
{@render inputContent()}
|
|
168
166
|
</div>
|
|
169
167
|
{:else}
|
|
@@ -171,7 +169,7 @@
|
|
|
171
169
|
{/if}
|
|
172
170
|
|
|
173
171
|
{#if isCombobox && isFocused && filteredSuggestions.length > 0}
|
|
174
|
-
<div class={combo(
|
|
172
|
+
<div class={cn(combo(), comboClass)}>
|
|
175
173
|
{#each filteredSuggestions as item, i}
|
|
176
174
|
<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)}>
|
|
177
175
|
{item}
|
|
@@ -183,7 +181,7 @@
|
|
|
183
181
|
{:else if group}
|
|
184
182
|
{@render inputContent()}
|
|
185
183
|
{:else if right || left || clearable}
|
|
186
|
-
<div class={base(
|
|
184
|
+
<div class={cn(base(), divClass)}>
|
|
187
185
|
{@render inputContent()}
|
|
188
186
|
</div>
|
|
189
187
|
{:else}
|
|
@@ -192,20 +190,20 @@
|
|
|
192
190
|
|
|
193
191
|
{#snippet inputContent()}
|
|
194
192
|
{#if left}
|
|
195
|
-
<div class={leftCls(
|
|
193
|
+
<div class={cn(leftCls(), leftClass)}>
|
|
196
194
|
{@render left()}
|
|
197
195
|
</div>
|
|
198
196
|
{/if}
|
|
199
197
|
{#if children}
|
|
200
198
|
{@render children({ ...restProps, class: inputCls() })}
|
|
201
199
|
{:else}
|
|
202
|
-
<input {...restProps} bind:value bind:this={elementRef} oninput={handleInput} onfocus={handleFocus} onblur={handleBlur} onkeydown={handleKeydown} class={inputCls(
|
|
200
|
+
<input {...restProps} bind:value bind:this={elementRef} oninput={handleInput} onfocus={handleFocus} onblur={handleBlur} onkeydown={handleKeydown} class={cn(inputCls(), className)} />
|
|
203
201
|
{#if value !== undefined && value !== "" && clearable}
|
|
204
|
-
<CloseButton onclick={clearAll} class={clearbtn(
|
|
202
|
+
<CloseButton onclick={clearAll} class={cn(clearbtn(), clearableClass)} color={clearableColor} aria-label="Clear search value" svgClass={cn(clearableSvgClass)} />
|
|
205
203
|
{/if}
|
|
206
204
|
{/if}
|
|
207
205
|
{#if right}
|
|
208
|
-
<div class={rightCls(
|
|
206
|
+
<div class={cn(rightCls(), rightClass)}>
|
|
209
207
|
{@render right()}
|
|
210
208
|
</div>
|
|
211
209
|
{/if}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
export { default as Input } from "./Input.svelte";
|
|
2
2
|
import type { SizeType } from "../../types";
|
|
3
|
-
|
|
4
|
-
declare function clampSize(s: SizeType): "
|
|
5
|
-
export { Input, input, clampSize };
|
|
3
|
+
export { input } from "./theme";
|
|
4
|
+
export declare function clampSize(s: SizeType): "md" | "sm" | "lg";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
function clampSize(s) {
|
|
1
|
+
export { default as Input } from "./Input.svelte";
|
|
2
|
+
export { input } from "./theme";
|
|
3
|
+
export function clampSize(s) {
|
|
4
4
|
return s && s === "xs" ? "sm" : s === "xl" ? "lg" : s;
|
|
5
5
|
}
|
|
6
|
-
export { Input, input, clampSize };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import clsx from "clsx";
|
|
3
2
|
import { label } from ".";
|
|
4
|
-
import type
|
|
3
|
+
import { type LabelProps, cn } from "../..";
|
|
5
4
|
|
|
6
5
|
let { children, color = "gray", show = true, class: className, ...restProps }: LabelProps = $props();
|
|
7
6
|
|
|
8
|
-
let base = $derived(label({ color,
|
|
7
|
+
let base = $derived(cn(label({ color }), className));
|
|
9
8
|
</script>
|
|
10
9
|
|
|
11
10
|
{#if show}
|
|
@@ -20,7 +19,7 @@
|
|
|
20
19
|
@component
|
|
21
20
|
[Go to docs](https://flowbite-svelte.com/)
|
|
22
21
|
## Type
|
|
23
|
-
[LabelProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
22
|
+
[LabelProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L783)
|
|
24
23
|
## Props
|
|
25
24
|
@prop children
|
|
26
25
|
@prop color = "gray"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type
|
|
1
|
+
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#L783)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop color = "gray"
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { Label, label };
|
|
1
|
+
export { default as Label } from "./Label.svelte";
|
|
2
|
+
export { label } from "./theme";
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { Label, label };
|
|
1
|
+
export { default as Label } from "./Label.svelte";
|
|
2
|
+
export { label } from "./theme";
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
<script lang="ts" generics="T">
|
|
2
2
|
import { getContext } from "svelte";
|
|
3
|
-
import Label from "../label/Label.svelte";
|
|
4
3
|
import { radio } from ".";
|
|
5
|
-
import type
|
|
6
|
-
import clsx from "clsx";
|
|
4
|
+
import { type RadioProps, Label, cn } from "../..";
|
|
7
5
|
|
|
8
|
-
let { children, "aria-describedby": ariaDescribedby, inline = false,
|
|
6
|
+
let { children, "aria-describedby": ariaDescribedby, inline = false, labelClass, color = "primary", custom = false, group = $bindable<T>(), value = $bindable<T>(), inputClass, ...restProps }: RadioProps<T> = $props();
|
|
9
7
|
|
|
10
8
|
const { input, label } = $derived(radio({ color, tinted: !!getContext("background"), custom, inline }));
|
|
11
9
|
</script>
|
|
12
10
|
|
|
13
|
-
<Label class={label(
|
|
14
|
-
<input type="radio" bind:group {value} aria-describedby={ariaDescribedby} {...restProps} class={input(
|
|
11
|
+
<Label class={cn(label(), labelClass)}>
|
|
12
|
+
<input type="radio" bind:group {value} aria-describedby={ariaDescribedby} {...restProps} class={cn(input(), inputClass)} />
|
|
15
13
|
{@render children?.()}
|
|
16
14
|
</Label>
|
|
17
15
|
|