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,11 +1,11 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { cubicOut } from "svelte/easing";
|
|
3
|
-
import { twMerge } from "tailwind-merge";
|
|
4
|
-
import { Tween } from "svelte/motion";
|
|
5
2
|
import { progressradial } from "./theme";
|
|
6
3
|
import type { ProgressradialProps } from "../types";
|
|
4
|
+
import clsx from "clsx";
|
|
5
|
+
import { cubicOut } from "svelte/easing";
|
|
6
|
+
import { Tween } from "svelte/motion";
|
|
7
7
|
|
|
8
|
-
let { progress = 45, radius = 42, startingPosition = "top", precision = 0, tweenDuration = 400, animate = false, size = "h-24 w-24", thickness = 4, labelInside = false, labelOutside = "", easing = cubicOut, color = "primary",
|
|
8
|
+
let { progress = 45, radius = 42, startingPosition = "top", precision = 0, tweenDuration = 400, animate = false, size = "h-24 w-24", thickness = 4, labelInside = false, labelOutside = "", easing = cubicOut, color = "primary", class: className, classes, ...restProps }: ProgressradialProps = $props();
|
|
9
9
|
|
|
10
10
|
const _progress = new Tween(0, {
|
|
11
11
|
duration: animate ? tweenDuration : 0,
|
|
@@ -35,23 +35,23 @@
|
|
|
35
35
|
|
|
36
36
|
<div class="flex flex-col items-center">
|
|
37
37
|
{#if labelOutside}
|
|
38
|
-
<div class={outsideDiv({ class:
|
|
39
|
-
<span class={outsideSpan({ class:
|
|
40
|
-
<span class={outsideProgress({ class:
|
|
38
|
+
<div class={outsideDiv({ class: clsx(classes?.outsideDiv) })}>
|
|
39
|
+
<span class={outsideSpan({ class: clsx(classes?.outsideSpan) })}>{labelOutside}</span>
|
|
40
|
+
<span class={outsideProgress({ class: clsx(classes?.outsideProgress) })}>{formattedProgress}%</span>
|
|
41
41
|
</div>
|
|
42
42
|
{/if}
|
|
43
43
|
|
|
44
|
-
<div {...restProps} class={
|
|
44
|
+
<div {...restProps} class={base({ class: clsx(size, classes?.base, className) })}>
|
|
45
45
|
<svg viewBox="0 0 100 100" class="h-full w-full" style="transform: rotate({rotationAngle}deg)">
|
|
46
46
|
<!-- Background circle -->
|
|
47
|
-
<circle cx="50" cy="50" r={radius} class={circleBackground()} fill="none" stroke-width={thickness} />
|
|
47
|
+
<circle cx="50" cy="50" r={radius} class={circleBackground({ class: clsx(classes?.circleBackground) })} fill="none" stroke-width={thickness} />
|
|
48
48
|
|
|
49
49
|
<!-- Foreground circle (progress indicator) -->
|
|
50
|
-
<circle cx="50" cy="50" r={radius} class={circleForeground()} fill="none" stroke-width={thickness} stroke-dasharray={circumference} stroke-dashoffset={strokeDashoffset} stroke-linecap="round" />
|
|
50
|
+
<circle cx="50" cy="50" r={radius} class={circleForeground({ class: clsx(classes?.circleForeground) })} fill="none" stroke-width={thickness} stroke-dasharray={circumference} stroke-dashoffset={strokeDashoffset} stroke-linecap="round" />
|
|
51
51
|
</svg>
|
|
52
52
|
|
|
53
53
|
{#if labelInside}
|
|
54
|
-
<div class={labelInsideDiv()}>
|
|
54
|
+
<div class={labelInsideDiv({ class: clsx(classes?.labelInsideDiv) })}>
|
|
55
55
|
{formattedProgress}%
|
|
56
56
|
</div>
|
|
57
57
|
{/if}
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
@component
|
|
63
63
|
[Go to docs](https://flowbite-svelte.com/)
|
|
64
64
|
## Type
|
|
65
|
-
[ProgressradialProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
65
|
+
[ProgressradialProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1171)
|
|
66
66
|
## Props
|
|
67
67
|
@prop progress = 45
|
|
68
68
|
@prop radius = 42
|
|
@@ -76,10 +76,7 @@
|
|
|
76
76
|
@prop labelOutside = ""
|
|
77
77
|
@prop easing = cubicOut
|
|
78
78
|
@prop color = "primary"
|
|
79
|
-
@prop
|
|
80
|
-
@prop
|
|
81
|
-
@prop outsideProgressClass
|
|
82
|
-
@prop labelOutsideDivClass
|
|
83
|
-
@prop divClass
|
|
79
|
+
@prop class: className
|
|
80
|
+
@prop classes
|
|
84
81
|
@prop ...restProps
|
|
85
82
|
-->
|
|
@@ -2,7 +2,7 @@ import type { ProgressradialProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ProgressradialProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ProgressradialProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1171)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop progress = 45
|
|
8
8
|
* @prop radius = 42
|
|
@@ -16,11 +16,8 @@ import type { ProgressradialProps } from "../types";
|
|
|
16
16
|
* @prop labelOutside = ""
|
|
17
17
|
* @prop easing = cubicOut
|
|
18
18
|
* @prop color = "primary"
|
|
19
|
-
* @prop
|
|
20
|
-
* @prop
|
|
21
|
-
* @prop outsideProgressClass
|
|
22
|
-
* @prop labelOutsideDivClass
|
|
23
|
-
* @prop divClass
|
|
19
|
+
* @prop class: className
|
|
20
|
+
* @prop classes
|
|
24
21
|
* @prop ...restProps
|
|
25
22
|
*/
|
|
26
23
|
declare const Progressradial: import("svelte").Component<ProgressradialProps, {}, "">;
|
package/dist/progress/theme.d.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
import type { ClassValue } from "svelte/elements";
|
|
2
|
+
import { type VariantProps } from "tailwind-variants";
|
|
3
|
+
export type ProgressbarClasses = Partial<{
|
|
4
|
+
[K in keyof (typeof progressbar)["slots"]]: ClassValue;
|
|
5
|
+
}>;
|
|
6
|
+
export type ProgressbarVariants = VariantProps<typeof progressbar> & {
|
|
7
|
+
classes?: ProgressbarClasses;
|
|
8
|
+
};
|
|
1
9
|
export declare const progressbar: import("tailwind-variants").TVReturnType<{
|
|
2
10
|
color: {
|
|
3
11
|
primary: {
|
|
@@ -281,6 +289,12 @@ export declare const progressbar: import("tailwind-variants").TVReturnType<{
|
|
|
281
289
|
oustsideSpan: string;
|
|
282
290
|
outsideProgress: string;
|
|
283
291
|
}, undefined, unknown, unknown, undefined>>;
|
|
292
|
+
export type ProgressradialClasses = Partial<{
|
|
293
|
+
[K in keyof (typeof progressradial)["slots"]]: ClassValue;
|
|
294
|
+
}>;
|
|
295
|
+
export type ProgressradialVariants = VariantProps<typeof progressradial> & {
|
|
296
|
+
classes?: ProgressradialClasses;
|
|
297
|
+
};
|
|
284
298
|
export declare const progressradial: import("tailwind-variants").TVReturnType<{
|
|
285
299
|
color: {
|
|
286
300
|
primary: {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import { twMerge } from "tailwind-merge";
|
|
3
|
+
import clsx from "clsx";
|
|
2
4
|
import { advancedrating } from ".";
|
|
3
5
|
import type { AdvancedRatingProps } from "../types";
|
|
4
6
|
|
|
@@ -14,12 +16,12 @@
|
|
|
14
16
|
{@render globalText()}
|
|
15
17
|
{/if}
|
|
16
18
|
{#each ratings as { label, rating }}
|
|
17
|
-
<div class={base(
|
|
18
|
-
<span class={span(
|
|
19
|
-
<div class={div2(
|
|
20
|
-
<div class={div3(
|
|
19
|
+
<div class={twMerge(base(), clsx(divClass))}>
|
|
20
|
+
<span class={twMerge(span(), clsx(spanClass))}>{label}</span>
|
|
21
|
+
<div class={twMerge(div2(), clsx(div2Class))}>
|
|
22
|
+
<div class={twMerge(div3(), clsx(div3Class))} style="width: {rating}%"></div>
|
|
21
23
|
</div>
|
|
22
|
-
<span class={span2(
|
|
24
|
+
<span class={twMerge(span2(), clsx(span2Class))}>{rating}{unit}</span>
|
|
23
25
|
</div>
|
|
24
26
|
{/each}
|
|
25
27
|
|
|
@@ -27,7 +29,7 @@
|
|
|
27
29
|
@component
|
|
28
30
|
[Go to docs](https://flowbite-svelte.com/)
|
|
29
31
|
## Type
|
|
30
|
-
[AdvancedRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
32
|
+
[AdvancedRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1188)
|
|
31
33
|
## Props
|
|
32
34
|
@prop rating
|
|
33
35
|
@prop globalText
|
|
@@ -2,7 +2,7 @@ import type { AdvancedRatingProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [AdvancedRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [AdvancedRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1188)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop rating
|
|
8
8
|
* @prop globalText
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import clsx from "clsx";
|
|
2
3
|
import type { RatingIconProps } from "../types";
|
|
3
4
|
|
|
4
5
|
let { fillPercent = 100, fillColor = "#00ff00", strokeColor = "#00ff00", size = 24, ariaLabel = "custom icon", iconIndex = 0, groupId = "custom", role = "img", svgClass, pathd = "M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z", ...restProps }: RatingIconProps = $props();
|
|
@@ -6,7 +7,7 @@
|
|
|
6
7
|
const uniqueId = `${groupId}-${iconIndex}`;
|
|
7
8
|
</script>
|
|
8
9
|
|
|
9
|
-
<svg width={size} height={size} class={svgClass} {...restProps} aria-label={ariaLabel} viewBox="0 0 24 24" {role} stroke-width="1.5">
|
|
10
|
+
<svg width={size} height={size} class={clsx(svgClass)} {...restProps} aria-label={ariaLabel} viewBox="0 0 24 24" {role} stroke-width="1.5">
|
|
10
11
|
<defs>
|
|
11
12
|
<linearGradient id={uniqueId} x1="0%" y1="0%" x2="100%" y2="0%">
|
|
12
13
|
{#if fillPercent !== 100}
|
|
@@ -28,7 +29,7 @@
|
|
|
28
29
|
@component
|
|
29
30
|
[Go to docs](https://flowbite-svelte.com/)
|
|
30
31
|
## Type
|
|
31
|
-
[RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
32
|
+
[RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1274)
|
|
32
33
|
## Props
|
|
33
34
|
@prop fillPercent = 100
|
|
34
35
|
@prop fillColor = "#00ff00"
|
|
@@ -2,7 +2,7 @@ import type { RatingIconProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1274)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop fillPercent = 100
|
|
8
8
|
* @prop fillColor = "#00ff00"
|
package/dist/rating/Heart.svelte
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import clsx from "clsx";
|
|
2
3
|
import type { RatingIconProps } from "../types";
|
|
3
4
|
|
|
4
5
|
let { fillPercent = 100, fillColor = "#ff0000", strokeColor = "#ff0000", size = 24, ariaLabel = "star", iconIndex = 0, groupId = "star", role = "img", svgClass, ...restProps }: RatingIconProps = $props();
|
|
@@ -6,7 +7,7 @@
|
|
|
6
7
|
const uniqueId = `${groupId}-${iconIndex}`;
|
|
7
8
|
</script>
|
|
8
9
|
|
|
9
|
-
<svg width={size} height={size} class={svgClass} {...restProps} aria-label={ariaLabel} viewBox="0 0 24 24" {role} stroke-width="1.5" stroke="currentColor" fill="none">
|
|
10
|
+
<svg width={size} height={size} class={clsx(svgClass)} {...restProps} aria-label={ariaLabel} viewBox="0 0 24 24" {role} stroke-width="1.5" stroke="currentColor" fill="none">
|
|
10
11
|
<defs>
|
|
11
12
|
<linearGradient id={uniqueId}>
|
|
12
13
|
{#if fillPercent !== 100}
|
|
@@ -27,7 +28,7 @@
|
|
|
27
28
|
@component
|
|
28
29
|
[Go to docs](https://flowbite-svelte.com/)
|
|
29
30
|
## Type
|
|
30
|
-
[RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
31
|
+
[RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1274)
|
|
31
32
|
## Props
|
|
32
33
|
@prop fillPercent = 100
|
|
33
34
|
@prop fillColor = "#ff0000"
|
|
@@ -2,7 +2,7 @@ import type { RatingIconProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1274)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop fillPercent = 100
|
|
8
8
|
* @prop fillColor = "#ff0000"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import clsx from "clsx";
|
|
2
3
|
import Star from "./Star.svelte";
|
|
3
4
|
import { rating as ratingVariants } from ".";
|
|
4
5
|
import type { RatingProps } from "../types";
|
|
5
|
-
import clsx from "clsx";
|
|
6
6
|
|
|
7
|
-
let { children, text, class:
|
|
7
|
+
let { children, text, class: className, size = 24, total = 5, rating = 4, icon: Icon = Star, count = false, pClass, ...restProps }: RatingProps = $props();
|
|
8
8
|
|
|
9
9
|
const { base, p } = $derived(ratingVariants());
|
|
10
10
|
const ratingGroupId = crypto.randomUUID();
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
let grayStars: number = total - (fullStars + Math.ceil(rateDiffence));
|
|
15
15
|
</script>
|
|
16
16
|
|
|
17
|
-
<div class={base({ class: clsx(
|
|
17
|
+
<div {...restProps} class={base({ class: clsx(className) })}>
|
|
18
18
|
{#if count && children}
|
|
19
19
|
<Icon fillPercent={100} {size} iconIndex={0} groupId={ratingGroupId} />
|
|
20
|
-
<p class={p({ class: pClass })}>{rating}</p>
|
|
20
|
+
<p class={p({ class: clsx(pClass) })}>{rating}</p>
|
|
21
21
|
{@render children()}
|
|
22
22
|
{:else}
|
|
23
23
|
<!-- eslint-disable @typescript-eslint/no-unused-vars-->
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
@component
|
|
42
42
|
[Go to docs](https://flowbite-svelte.com/)
|
|
43
43
|
## Type
|
|
44
|
-
[RatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
44
|
+
[RatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1200)
|
|
45
45
|
## Props
|
|
46
46
|
@prop children
|
|
47
47
|
@prop text
|
|
48
|
-
@prop class:
|
|
48
|
+
@prop class: className
|
|
49
49
|
@prop size = 24
|
|
50
50
|
@prop total = 5
|
|
51
51
|
@prop rating = 4
|
|
@@ -2,11 +2,11 @@ import type { RatingProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [RatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [RatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1200)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop text
|
|
9
|
-
* @prop class:
|
|
9
|
+
* @prop class: className
|
|
10
10
|
* @prop size = 24
|
|
11
11
|
* @prop total = 5
|
|
12
12
|
* @prop rating = 4
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
@component
|
|
64
64
|
[Go to docs](https://flowbite-svelte.com/)
|
|
65
65
|
## Type
|
|
66
|
-
[RatingCommentProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
66
|
+
[RatingCommentProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1211)
|
|
67
67
|
## Props
|
|
68
68
|
@prop children
|
|
69
69
|
@prop evaluation
|
|
@@ -2,7 +2,7 @@ import type { RatingCommentProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [RatingCommentProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [RatingCommentProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1211)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop evaluation
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { twMerge } from "tailwind-merge";
|
|
3
|
+
import clsx from "clsx";
|
|
3
4
|
import { review as reviewVariants } from ".";
|
|
4
5
|
import type { ReviewProps } from "../types";
|
|
5
6
|
|
|
@@ -9,15 +10,15 @@
|
|
|
9
10
|
</script>
|
|
10
11
|
|
|
11
12
|
{#if review}
|
|
12
|
-
<article class={article(
|
|
13
|
+
<article class={twMerge(article(), clsx(articleClass))}>
|
|
13
14
|
<div>
|
|
14
|
-
<div class={div(
|
|
15
|
-
<img class={img(
|
|
16
|
-
<div class={div2(
|
|
15
|
+
<div class={twMerge(div(), clsx(divClass))}>
|
|
16
|
+
<img class={twMerge(img(), clsx(imgClass))} src={review.imgSrc} alt={review.imgAlt} />
|
|
17
|
+
<div class={twMerge(div2(), clsx(div2Class))}>
|
|
17
18
|
<p>{review.name}</p>
|
|
18
19
|
{#if review.address}
|
|
19
20
|
{#if address}
|
|
20
|
-
<div class={div3(
|
|
21
|
+
<div class={twMerge(div3(), clsx(div3Class))}>
|
|
21
22
|
{@render address()}
|
|
22
23
|
</div>
|
|
23
24
|
{/if}
|
|
@@ -25,23 +26,23 @@
|
|
|
25
26
|
</div>
|
|
26
27
|
</div>
|
|
27
28
|
{#if review.item1 || review.item2 || review.item3}
|
|
28
|
-
<ul class={ul(
|
|
29
|
+
<ul class={twMerge(ul(), clsx(ulClass))}>
|
|
29
30
|
{#if review.item1}
|
|
30
|
-
<li class={twMerge(li(
|
|
31
|
+
<li class={twMerge(twMerge(li(), clsx(liClass)))}>
|
|
31
32
|
{#if item1}
|
|
32
33
|
{@render item1()}
|
|
33
34
|
{/if}
|
|
34
35
|
</li>
|
|
35
36
|
{/if}
|
|
36
37
|
{#if review.item2}
|
|
37
|
-
<li class={liClass}>
|
|
38
|
+
<li class={clsx(liClass)}>
|
|
38
39
|
{#if item2}
|
|
39
40
|
{@render item2()}
|
|
40
41
|
{/if}
|
|
41
42
|
</li>
|
|
42
43
|
{/if}
|
|
43
44
|
{#if review.item3}
|
|
44
|
-
<li class={twMerge(liClass)}>
|
|
45
|
+
<li class={twMerge(clsx(liClass))}>
|
|
45
46
|
{#if item3}
|
|
46
47
|
{@render item3()}
|
|
47
48
|
{/if}
|
|
@@ -78,7 +79,7 @@
|
|
|
78
79
|
@component
|
|
79
80
|
[Go to docs](https://flowbite-svelte.com/)
|
|
80
81
|
## Type
|
|
81
|
-
[ReviewProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
82
|
+
[ReviewProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1247)
|
|
82
83
|
## Props
|
|
83
84
|
@prop children
|
|
84
85
|
@prop address
|
|
@@ -2,7 +2,7 @@ import type { ReviewProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ReviewProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ReviewProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1247)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop address
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
@component
|
|
66
66
|
[Go to docs](https://flowbite-svelte.com/)
|
|
67
67
|
## Type
|
|
68
|
-
[ScoreRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
68
|
+
[ScoreRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1263)
|
|
69
69
|
## Props
|
|
70
70
|
@prop ratings
|
|
71
71
|
@prop ratings2
|
|
@@ -2,7 +2,7 @@ import type { ScoreRatingProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ScoreRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ScoreRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1263)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop ratings
|
|
8
8
|
* @prop ratings2
|
package/dist/rating/Star.svelte
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import clsx from "clsx";
|
|
2
3
|
import type { RatingIconProps } from "../types";
|
|
3
4
|
|
|
4
5
|
let { fillPercent = 100, fillColor = "#F5CA14", strokeColor = "#F5CA14", size = 24, ariaLabel = "star", iconIndex = 0, groupId = "star", role = "img", svgClass, ...restProps }: RatingIconProps = $props();
|
|
@@ -6,7 +7,7 @@
|
|
|
6
7
|
const uniqueId = `${groupId}-${iconIndex}`;
|
|
7
8
|
</script>
|
|
8
9
|
|
|
9
|
-
<svg width={size} height={size} {...restProps} class={svgClass} aria-label={ariaLabel} viewBox="100 100 120 120" {role}>
|
|
10
|
+
<svg width={size} height={size} {...restProps} class={clsx(svgClass)} aria-label={ariaLabel} viewBox="100 100 120 120" {role}>
|
|
10
11
|
<defs>
|
|
11
12
|
<linearGradient id={uniqueId}>
|
|
12
13
|
{#if fillPercent !== 100}
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
@component
|
|
35
36
|
[Go to docs](https://flowbite-svelte.com/)
|
|
36
37
|
## Type
|
|
37
|
-
[RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
38
|
+
[RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1274)
|
|
38
39
|
## Props
|
|
39
40
|
@prop fillPercent = 100
|
|
40
41
|
@prop fillColor = "#F5CA14"
|
|
@@ -2,7 +2,7 @@ import type { RatingIconProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1274)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop fillPercent = 100
|
|
8
8
|
* @prop fillColor = "#F5CA14"
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import clsx from "clsx";
|
|
2
3
|
import type { RatingIconProps } from "../types";
|
|
3
4
|
|
|
4
5
|
let { fillPercent = 100, fillColor = "#00b500", strokeColor = "#00b500", size = 24, ariaLabel = "thumbup", iconIndex = 0, groupId = "star", role = "img", svgClass, ...restProps }: RatingIconProps = $props();
|
|
@@ -6,7 +7,7 @@
|
|
|
6
7
|
const uniqueId = `${groupId}-${iconIndex}`;
|
|
7
8
|
</script>
|
|
8
9
|
|
|
9
|
-
<svg width={size} height={size} {...restProps} class={svgClass} aria-label={ariaLabel} viewBox="0 0 24 24" {role} stroke-width="1.5" stroke="currentColor" fill="none">
|
|
10
|
+
<svg width={size} height={size} {...restProps} class={clsx(svgClass)} aria-label={ariaLabel} viewBox="0 0 24 24" {role} stroke-width="1.5" stroke="currentColor" fill="none">
|
|
10
11
|
<defs>
|
|
11
12
|
<linearGradient id={uniqueId}>
|
|
12
13
|
{#if fillPercent !== 100}
|
|
@@ -27,7 +28,7 @@
|
|
|
27
28
|
@component
|
|
28
29
|
[Go to docs](https://flowbite-svelte.com/)
|
|
29
30
|
## Type
|
|
30
|
-
[RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
31
|
+
[RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1274)
|
|
31
32
|
## Props
|
|
32
33
|
@prop fillPercent = 100
|
|
33
34
|
@prop fillColor = "#00b500"
|
|
@@ -2,7 +2,7 @@ import type { RatingIconProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1274)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop fillPercent = 100
|
|
8
8
|
* @prop fillColor = "#00b500"
|
package/dist/rating/theme.d.ts
CHANGED
|
@@ -83,10 +83,10 @@ export declare const review: import("tailwind-variants").TVReturnType<{
|
|
|
83
83
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
84
84
|
div?: import("tailwind-variants").ClassValue;
|
|
85
85
|
img?: import("tailwind-variants").ClassValue;
|
|
86
|
-
article?: import("tailwind-variants").ClassValue;
|
|
87
86
|
ul?: import("tailwind-variants").ClassValue;
|
|
88
87
|
div2?: import("tailwind-variants").ClassValue;
|
|
89
88
|
div3?: import("tailwind-variants").ClassValue;
|
|
89
|
+
article?: import("tailwind-variants").ClassValue;
|
|
90
90
|
li?: import("tailwind-variants").ClassValue;
|
|
91
91
|
};
|
|
92
92
|
};
|
|
@@ -95,10 +95,10 @@ export declare const review: import("tailwind-variants").TVReturnType<{
|
|
|
95
95
|
[x: string]: import("tailwind-variants").ClassValue | {
|
|
96
96
|
div?: import("tailwind-variants").ClassValue;
|
|
97
97
|
img?: import("tailwind-variants").ClassValue;
|
|
98
|
-
article?: import("tailwind-variants").ClassValue;
|
|
99
98
|
ul?: import("tailwind-variants").ClassValue;
|
|
100
99
|
div2?: import("tailwind-variants").ClassValue;
|
|
101
100
|
div3?: import("tailwind-variants").ClassValue;
|
|
101
|
+
article?: import("tailwind-variants").ClassValue;
|
|
102
102
|
li?: import("tailwind-variants").ClassValue;
|
|
103
103
|
};
|
|
104
104
|
};
|
|
@@ -115,10 +115,10 @@ export declare const review: import("tailwind-variants").TVReturnType<{
|
|
|
115
115
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
116
116
|
div?: import("tailwind-variants").ClassValue;
|
|
117
117
|
img?: import("tailwind-variants").ClassValue;
|
|
118
|
-
article?: import("tailwind-variants").ClassValue;
|
|
119
118
|
ul?: import("tailwind-variants").ClassValue;
|
|
120
119
|
div2?: import("tailwind-variants").ClassValue;
|
|
121
120
|
div3?: import("tailwind-variants").ClassValue;
|
|
121
|
+
article?: import("tailwind-variants").ClassValue;
|
|
122
122
|
li?: import("tailwind-variants").ClassValue;
|
|
123
123
|
};
|
|
124
124
|
};
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
import { writable } from "svelte/store";
|
|
5
5
|
import { sineIn } from "svelte/easing";
|
|
6
6
|
import { sidebar } from ".";
|
|
7
|
-
import clsx from "clsx";
|
|
8
7
|
import { trapFocus, type SidebarProps, type SidebarCtxType } from "..";
|
|
8
|
+
import { twMerge } from "tailwind-merge";
|
|
9
|
+
import clsx from "clsx";
|
|
9
10
|
|
|
10
11
|
let { children, isOpen = false, closeSidebar, isSingle = true, breakpoint = "md", alwaysOpen = false, position = "fixed", activateClickOutside = true, backdrop = true, backdropClass, transition = fly, params, divClass, ariaLabel, nonActiveClass, activeClass, activeUrl = "", class: className, ...restProps }: SidebarProps = $props();
|
|
11
12
|
|
|
@@ -34,10 +35,10 @@
|
|
|
34
35
|
return closeSidebar;
|
|
35
36
|
},
|
|
36
37
|
get activeClass() {
|
|
37
|
-
return active(
|
|
38
|
+
return twMerge(active(), clsx(activeClass));
|
|
38
39
|
},
|
|
39
40
|
get nonActiveClass() {
|
|
40
|
-
return nonactive(
|
|
41
|
+
return twMerge(nonactive(), clsx(nonActiveClass));
|
|
41
42
|
},
|
|
42
43
|
isSingle
|
|
43
44
|
};
|
|
@@ -57,17 +58,17 @@
|
|
|
57
58
|
{#if isOpen || isLargeScreen}
|
|
58
59
|
{#if isOpen && !alwaysOpen}
|
|
59
60
|
{#if backdrop && activateClickOutside}
|
|
60
|
-
<div role="presentation" class={backdropCls(
|
|
61
|
+
<div role="presentation" class={twMerge(backdropCls(), clsx(backdropClass))} onclick={closeSidebar}></div>
|
|
61
62
|
{:else if backdrop && !activateClickOutside}
|
|
62
|
-
<div role="presentation" class={backdropCls(
|
|
63
|
+
<div role="presentation" class={twMerge(backdropCls(), clsx(backdropClass))}></div>
|
|
63
64
|
{:else if !backdrop && activateClickOutside}
|
|
64
65
|
<div role="presentation" class="fixed start-0 top-0 z-50 h-full w-full" onclick={closeSidebar}></div>
|
|
65
66
|
{:else if !backdrop && !activateClickOutside}
|
|
66
67
|
<div role="presentation" class="fixed start-0 top-0 z-50 h-full w-full"></div>
|
|
67
68
|
{/if}
|
|
68
69
|
{/if}
|
|
69
|
-
<aside use:trapFocus={!isLargeScreen && isOpen && !alwaysOpen ? { onEscape: closeSidebar ? handleEscape : undefined } : null} transition:transition={!alwaysOpen ? transitionParams : undefined} {...restProps} class={base(
|
|
70
|
-
<div class={div(
|
|
70
|
+
<aside use:trapFocus={!isLargeScreen && isOpen && !alwaysOpen ? { onEscape: closeSidebar ? handleEscape : undefined } : null} transition:transition={!alwaysOpen ? transitionParams : undefined} {...restProps} class={twMerge(base(), clsx(clsx(className)))} aria-label={ariaLabel}>
|
|
71
|
+
<div class={twMerge(div(), clsx(divClass))}>
|
|
71
72
|
{@render children()}
|
|
72
73
|
</div>
|
|
73
74
|
</aside>
|
|
@@ -77,7 +78,7 @@
|
|
|
77
78
|
@component
|
|
78
79
|
[Go to docs](https://flowbite-svelte.com/)
|
|
79
80
|
## Type
|
|
80
|
-
[SidebarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
81
|
+
[SidebarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1297)
|
|
81
82
|
## Props
|
|
82
83
|
@prop children
|
|
83
84
|
@prop isOpen = false
|
|
@@ -2,7 +2,7 @@ import { type SidebarProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SidebarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SidebarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1297)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop isOpen = false
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import { twMerge } from "tailwind-merge";
|
|
2
3
|
import clsx from "clsx";
|
|
3
4
|
import { sitebarbrand } from ".";
|
|
4
5
|
import type { SidebarBrandProps } from "../types";
|
|
@@ -8,10 +9,10 @@
|
|
|
8
9
|
const { base, img, span } = $derived(sitebarbrand());
|
|
9
10
|
</script>
|
|
10
11
|
|
|
11
|
-
<a {...restProps} href={site?.href ? site.href : "/"} class={base(
|
|
12
|
+
<a {...restProps} href={site?.href ? site.href : "/"} class={twMerge(base(), clsx(className))}>
|
|
12
13
|
{#if site}
|
|
13
|
-
<img src={site.img} class={img(
|
|
14
|
-
<span class={span(
|
|
14
|
+
<img src={site.img} class={twMerge(img(), clsx(imgClass))} alt={site.name} />
|
|
15
|
+
<span class={twMerge(span(), clsx(spanClass))}>{site.name}</span>
|
|
15
16
|
{:else if children}
|
|
16
17
|
{@render children()}
|
|
17
18
|
{/if}
|
|
@@ -21,7 +22,7 @@
|
|
|
21
22
|
@component
|
|
22
23
|
[Go to docs](https://flowbite-svelte.com/)
|
|
23
24
|
## Type
|
|
24
|
-
[SidebarBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
25
|
+
[SidebarBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1332)
|
|
25
26
|
## Props
|
|
26
27
|
@prop children
|
|
27
28
|
@prop site
|
|
@@ -2,7 +2,7 @@ import type { SidebarBrandProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SidebarBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SidebarBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1332)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop site
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import { twMerge } from "tailwind-merge";
|
|
2
3
|
import clsx from "clsx";
|
|
3
4
|
import { sidebarbutton } from ".";
|
|
4
5
|
import type { SidebarButtonProps } from "../types";
|
|
5
6
|
let { breakpoint = "md", class: className, ...restProps }: SidebarButtonProps = $props();
|
|
6
7
|
|
|
7
|
-
const base = $derived(sidebarbutton({ breakpoint,
|
|
8
|
+
const base = $derived(twMerge(sidebarbutton({ breakpoint }), clsx(className)));
|
|
8
9
|
</script>
|
|
9
10
|
|
|
10
11
|
<button {...restProps} type="button" class={base}>
|
|
@@ -18,7 +19,7 @@
|
|
|
18
19
|
@component
|
|
19
20
|
[Go to docs](https://flowbite-svelte.com/)
|
|
20
21
|
## Type
|
|
21
|
-
[SidebarButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
22
|
+
[SidebarButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1315)
|
|
22
23
|
## Props
|
|
23
24
|
@prop breakpoint = "md"
|
|
24
25
|
@prop class: className
|