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
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
import { setContext, getContext } from "svelte";
|
|
3
3
|
import { writable } from "svelte/store";
|
|
4
4
|
import { accordion } from "./";
|
|
5
|
-
import type
|
|
6
|
-
import clsx from "clsx";
|
|
5
|
+
import { type AccordionProps, type BaseThemes, cn } from "..";
|
|
7
6
|
|
|
8
7
|
let { children, flush, activeClass, inactiveClass, multiple = false, class: className, transitionType, ...restProps }: AccordionProps = $props();
|
|
9
8
|
|
|
@@ -21,7 +20,7 @@
|
|
|
21
20
|
|
|
22
21
|
setContext("ctx", ctx);
|
|
23
22
|
setContext("ctxTransitionType", transitionType);
|
|
24
|
-
const base = $derived(accordionTheme({ flush,
|
|
23
|
+
const base = $derived(cn(accordionTheme({ flush }), className));
|
|
25
24
|
</script>
|
|
26
25
|
|
|
27
26
|
<div {...restProps} class={base}>
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { twMerge } from "tailwind-merge";
|
|
3
2
|
import { slide } from "svelte/transition";
|
|
4
3
|
import { getContext } from "svelte";
|
|
5
4
|
import { writable } from "svelte/store";
|
|
6
|
-
|
|
7
5
|
import { accordionitem } from ".";
|
|
8
|
-
import type
|
|
9
|
-
import clsx from "clsx";
|
|
6
|
+
import { type AccordionCtxType, type AccordionItemProps, type ParamsType, type BaseThemes, cn } from "..";
|
|
10
7
|
|
|
11
8
|
let { children, header, arrowup, arrowdown, open = $bindable(false), activeClass, inactiveClass, transitionType = slide, transitionParams, class: className, headerClass, contentClass }: AccordionItemProps = $props();
|
|
12
9
|
|
|
@@ -33,7 +30,7 @@
|
|
|
33
30
|
|
|
34
31
|
const { base, button, content, active, inactive } = $derived(accordionitemTheme({ flush: ctx.flush, open }));
|
|
35
32
|
|
|
36
|
-
let buttonClass = $derived(
|
|
33
|
+
let buttonClass = $derived(cn(button(), open && !ctx.flush && (activeClass || ctx.activeClass || active()), !open && !ctx.flush && (inactiveClass || ctx.inactiveClass || inactive()), className));
|
|
37
34
|
</script>
|
|
38
35
|
|
|
39
36
|
<h2 class={base({ class: headerClass })}>
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export { AccordionItem, accordionitem, Accordion, accordion };
|
|
1
|
+
export { default as Accordion } from "./Accordion.svelte";
|
|
2
|
+
export { default as AccordionItem } from "./AccordionItem.svelte";
|
|
3
|
+
export { accordion, accordionitem } from "./theme";
|
package/dist/accordion/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export { AccordionItem, accordionitem, Accordion, accordion };
|
|
1
|
+
export { default as Accordion } from "./Accordion.svelte";
|
|
2
|
+
export { default as AccordionItem } from "./AccordionItem.svelte";
|
|
3
|
+
export { accordion, accordionitem } from "./theme";
|
package/dist/alert/Alert.svelte
CHANGED
|
@@ -1,29 +1,26 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { CloseButton } from "..";
|
|
3
|
-
import type { ParamsType } from "../types";
|
|
4
2
|
import { getContext } from "svelte";
|
|
5
3
|
import { fade } from "svelte/transition";
|
|
6
4
|
import { alert } from ".";
|
|
7
|
-
import type
|
|
8
|
-
import clsx from "clsx";
|
|
5
|
+
import { type AlertProps, type BaseThemes, type ParamsType, CloseButton, cn } from "..";
|
|
9
6
|
|
|
10
7
|
let { children, icon, alertStatus = $bindable(true), closeIcon: CloseIcon, color = "primary", rounded = true, border, class: className, dismissable, transition = fade, params, onclick = () => (alertStatus = false), ...restProps }: AlertProps = $props();
|
|
11
8
|
|
|
12
|
-
// Theme context
|
|
13
|
-
|
|
14
9
|
const context = getContext<BaseThemes>("themeConfig");
|
|
15
10
|
// Use theme context if available, otherwise fallback to default
|
|
16
11
|
const alertTheme = context?.alert || alert;
|
|
17
12
|
|
|
18
13
|
let divCls = $derived(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
14
|
+
cn(
|
|
15
|
+
alertTheme({
|
|
16
|
+
color,
|
|
17
|
+
rounded,
|
|
18
|
+
border,
|
|
19
|
+
icon: !!icon,
|
|
20
|
+
dismissable
|
|
21
|
+
}),
|
|
22
|
+
className
|
|
23
|
+
)
|
|
27
24
|
);
|
|
28
25
|
</script>
|
|
29
26
|
|
|
@@ -57,7 +54,7 @@
|
|
|
57
54
|
@component
|
|
58
55
|
[Go to docs](https://flowbite-svelte.com/)
|
|
59
56
|
## Type
|
|
60
|
-
[AlertProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
57
|
+
[AlertProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L186)
|
|
61
58
|
## Props
|
|
62
59
|
@prop children
|
|
63
60
|
@prop icon
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type AlertProps } from "..";
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [AlertProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [AlertProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L186)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop icon
|
package/dist/alert/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { Alert, alert };
|
|
1
|
+
export { default as Alert } from "./Alert.svelte";
|
|
2
|
+
export { alert } from "./theme";
|
package/dist/alert/index.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { Alert, alert };
|
|
1
|
+
export { default as Alert } from "./Alert.svelte";
|
|
2
|
+
export { alert } from "./theme";
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { Indicator } from "..";
|
|
3
|
-
import clsx from "clsx";
|
|
4
2
|
import { getContext } from "svelte";
|
|
5
3
|
import { avatar } from ".";
|
|
6
|
-
import type
|
|
4
|
+
import { type AvatarProps, type BaseThemes, Indicator, cn } from "..";
|
|
7
5
|
|
|
8
6
|
let { children, indicator, src, href, target, cornerStyle = "circular", border = false, stacked = false, dot, class: className, alt, size = "md", onclick, ...restProps }: AvatarProps = $props();
|
|
9
7
|
|
|
@@ -15,13 +13,15 @@
|
|
|
15
13
|
dot = dot && { placement: "top-right", color: "gray", size: "lg", ...dot };
|
|
16
14
|
|
|
17
15
|
let avatarClass = $derived(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
cn(
|
|
17
|
+
avatarTheme({
|
|
18
|
+
cornerStyle,
|
|
19
|
+
border,
|
|
20
|
+
stacked,
|
|
21
|
+
size
|
|
22
|
+
}),
|
|
23
|
+
className
|
|
24
|
+
)
|
|
25
25
|
);
|
|
26
26
|
</script>
|
|
27
27
|
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
@component
|
|
52
52
|
[Go to docs](https://flowbite-svelte.com/)
|
|
53
53
|
## Type
|
|
54
|
-
[AvatarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
54
|
+
[AvatarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L197)
|
|
55
55
|
## Props
|
|
56
56
|
@prop children
|
|
57
57
|
@prop indicator
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type AvatarProps } from "..";
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [AvatarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [AvatarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L197)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop indicator
|
package/dist/avatar/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { Avatar, avatar };
|
|
1
|
+
export { default as Avatar } from "./Avatar.svelte";
|
|
2
|
+
export { avatar } from "./theme";
|
package/dist/avatar/index.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { Avatar, avatar };
|
|
1
|
+
export { default as Avatar } from "./Avatar.svelte";
|
|
2
|
+
export { avatar } from "./theme";
|
package/dist/badge/Badge.svelte
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { getContext } from "svelte";
|
|
3
|
-
import { badge } from "
|
|
4
|
-
import type { BadgeProps } from "../types";
|
|
5
|
-
import { CloseButton } from "..";
|
|
3
|
+
import { badge } from ".";
|
|
6
4
|
import { fade } from "svelte/transition";
|
|
7
|
-
import type
|
|
8
|
-
import clsx from "clsx";
|
|
5
|
+
import { type ParamsType, type BaseThemes, type BadgeProps, CloseButton, cn } from "..";
|
|
9
6
|
|
|
10
7
|
let { children, icon, badgeStatus = $bindable(true), color = "primary", large = false, dismissable = false, class: className, border, href, target, rounded, transition = fade, params, aClass, onclose, ...restProps }: BadgeProps = $props();
|
|
11
8
|
|
|
@@ -23,9 +20,9 @@
|
|
|
23
20
|
</script>
|
|
24
21
|
|
|
25
22
|
{#if badgeStatus}
|
|
26
|
-
<div {...restProps} transition:transition={params as ParamsType} class={base(
|
|
23
|
+
<div {...restProps} transition:transition={params as ParamsType} class={cn(base(), className)}>
|
|
27
24
|
{#if href}
|
|
28
|
-
<a {href} {target} class={hrefClass(
|
|
25
|
+
<a {href} {target} class={cn(hrefClass(), aClass)}>
|
|
29
26
|
{@render children()}
|
|
30
27
|
</a>
|
|
31
28
|
{:else}
|
|
@@ -49,7 +46,7 @@
|
|
|
49
46
|
@component
|
|
50
47
|
[Go to docs](https://flowbite-svelte.com/)
|
|
51
48
|
## Type
|
|
52
|
-
[BadgeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
49
|
+
[BadgeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L213)
|
|
53
50
|
## Props
|
|
54
51
|
@prop children
|
|
55
52
|
@prop icon
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type BadgeProps } from "..";
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BadgeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BadgeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L213)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop icon
|
package/dist/badge/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { Badge, badge };
|
|
1
|
+
export { default as Badge } from "./Badge.svelte";
|
|
2
|
+
export { badge } from "./theme";
|
package/dist/badge/index.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { Badge, badge };
|
|
1
|
+
export { default as Badge } from "./Badge.svelte";
|
|
2
|
+
export { badge } from "./theme";
|
|
@@ -1,25 +1,23 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { CloseButton } from "..";
|
|
3
2
|
import { fade } from "svelte/transition";
|
|
4
|
-
import { banner } from "
|
|
5
|
-
import type
|
|
6
|
-
import clsx from "clsx";
|
|
3
|
+
import { banner } from ".";
|
|
4
|
+
import { type ParamsType, type BannerProps, CloseButton, cn } from "..";
|
|
7
5
|
|
|
8
|
-
let { children, header, open = $bindable(true), dismissable = true, color = "gray", type, class: className, innerClass, transition = fade, params, ...restProps }: BannerProps = $props();
|
|
6
|
+
let { children, header, open = $bindable(true), dismissable = true, color = "gray", type, class: className, innerClass, transition = fade, params, closeClass, ...restProps }: BannerProps = $props();
|
|
9
7
|
|
|
10
8
|
const { base, insideDiv, dismissable: dismissableClass } = $derived(banner({ type, color }));
|
|
11
9
|
</script>
|
|
12
10
|
|
|
13
11
|
{#if open}
|
|
14
|
-
<div tabindex="-1" class={base(
|
|
15
|
-
<div class={insideDiv(
|
|
12
|
+
<div tabindex="-1" class={cn(base(), className)} {...restProps} transition:transition={params as ParamsType}>
|
|
13
|
+
<div class={cn(insideDiv(), innerClass)}>
|
|
16
14
|
{@render children?.()}
|
|
17
15
|
</div>
|
|
18
16
|
|
|
19
17
|
{#if dismissable}
|
|
20
18
|
<div class="flex items-center justify-end">
|
|
21
19
|
<CloseButton
|
|
22
|
-
class={dismissableClass()}
|
|
20
|
+
class={cn(dismissableClass(), closeClass)}
|
|
23
21
|
{color}
|
|
24
22
|
ariaLabel="Remove banner"
|
|
25
23
|
onclick={() => {
|
|
@@ -35,7 +33,7 @@
|
|
|
35
33
|
@component
|
|
36
34
|
[Go to docs](https://flowbite-svelte.com/)
|
|
37
35
|
## Type
|
|
38
|
-
[BannerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
36
|
+
[BannerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L228)
|
|
39
37
|
## Props
|
|
40
38
|
@prop children
|
|
41
39
|
@prop header
|
|
@@ -47,5 +45,6 @@
|
|
|
47
45
|
@prop innerClass
|
|
48
46
|
@prop transition = fade
|
|
49
47
|
@prop params
|
|
48
|
+
@prop closeClass
|
|
50
49
|
@prop ...restProps
|
|
51
50
|
-->
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type BannerProps } from "..";
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BannerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BannerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L228)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop header
|
|
@@ -14,6 +14,7 @@ import type { BannerProps } from "../types";
|
|
|
14
14
|
* @prop innerClass
|
|
15
15
|
* @prop transition = fade
|
|
16
16
|
* @prop params
|
|
17
|
+
* @prop closeClass
|
|
17
18
|
* @prop ...restProps
|
|
18
19
|
*/
|
|
19
20
|
declare const Banner: import("svelte").Component<BannerProps, {}, "open">;
|
package/dist/banner/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { Banner, banner };
|
|
1
|
+
export { default as Banner } from "./Banner.svelte";
|
|
2
|
+
export { banner } from "./theme";
|
package/dist/banner/index.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { Banner, banner };
|
|
1
|
+
export { default as Banner } from "./Banner.svelte";
|
|
2
|
+
export { banner } from "./theme";
|
|
@@ -1,34 +1,31 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { setContext } from "svelte";
|
|
3
|
-
import { twMerge } from "tailwind-merge";
|
|
4
3
|
import { writable } from "svelte/store";
|
|
5
|
-
import { bottomNav } from "
|
|
6
|
-
import type
|
|
4
|
+
import { bottomNav } from ".";
|
|
5
|
+
import { type BottomNavProps, type BottomNavContextType, cn } from "..";
|
|
7
6
|
|
|
8
7
|
let { children, header, position = "fixed", navType = "default", outerClass, innerClass, activeClass, activeUrl = "", ...restProps }: BottomNavProps = $props();
|
|
9
8
|
|
|
10
|
-
const activeCls =
|
|
9
|
+
const activeCls = cn("text-primary-700 dark:text-primary-700 hover:text-primary-900 dark:hover:text-primary-900", activeClass);
|
|
11
10
|
|
|
12
11
|
const activeUrlStore = writable("");
|
|
13
12
|
setContext("activeUrl", activeUrlStore);
|
|
14
13
|
setContext("navType", navType);
|
|
15
14
|
setContext<BottomNavContextType>("bottomNavType", { activeClass: activeCls });
|
|
16
15
|
|
|
17
|
-
const { outer, inner } = bottomNav({ position, navType });
|
|
18
|
-
const outerCls = $derived(outer({ class: outerClass }));
|
|
19
|
-
const innerCls = $derived(inner({ class: innerClass }));
|
|
16
|
+
const { outer, inner } = $derived(bottomNav({ position, navType }));
|
|
20
17
|
|
|
21
18
|
$effect(() => {
|
|
22
19
|
activeUrlStore.set(activeUrl);
|
|
23
20
|
});
|
|
24
21
|
</script>
|
|
25
22
|
|
|
26
|
-
<div {...restProps} class={
|
|
23
|
+
<div {...restProps} class={cn(outer(), outerClass)}>
|
|
27
24
|
{#if header}
|
|
28
25
|
{@render header()}
|
|
29
26
|
{/if}
|
|
30
27
|
|
|
31
|
-
<div class={
|
|
28
|
+
<div class={cn(inner(), innerClass)}>
|
|
32
29
|
{@render children()}
|
|
33
30
|
</div>
|
|
34
31
|
</div>
|
|
@@ -37,7 +34,7 @@
|
|
|
37
34
|
@component
|
|
38
35
|
[Go to docs](https://flowbite-svelte.com/)
|
|
39
36
|
## Type
|
|
40
|
-
[BottomNavProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
37
|
+
[BottomNavProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L250)
|
|
41
38
|
## Props
|
|
42
39
|
@prop children
|
|
43
40
|
@prop header
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type BottomNavProps } from "..";
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BottomNavProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BottomNavProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L250)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop header
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { bottomnavheader } from ".";
|
|
3
|
-
import type
|
|
3
|
+
import { type BottomNavHeaderProps, cn } from "..";
|
|
4
4
|
|
|
5
5
|
let { children, outerClass, innerClass, ...restProps }: BottomNavHeaderProps = $props();
|
|
6
6
|
const { innerDiv, outerDiv } = $derived(bottomnavheader());
|
|
7
7
|
</script>
|
|
8
8
|
|
|
9
|
-
<div {...restProps} class={outerDiv(
|
|
10
|
-
<div class={innerDiv(
|
|
9
|
+
<div {...restProps} class={cn(outerDiv(), outerClass)}>
|
|
10
|
+
<div class={cn(innerDiv(), innerClass)} role="group">
|
|
11
11
|
{@render children()}
|
|
12
12
|
</div>
|
|
13
13
|
</div>
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
@component
|
|
17
17
|
[Go to docs](https://flowbite-svelte.com/)
|
|
18
18
|
## Type
|
|
19
|
-
[BottomNavHeaderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
19
|
+
[BottomNavHeaderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L296)
|
|
20
20
|
## Props
|
|
21
21
|
@prop children
|
|
22
22
|
@prop outerClass
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type BottomNavHeaderProps } from "..";
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BottomNavHeaderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BottomNavHeaderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L296)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop outerClass
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import clsx from "clsx";
|
|
3
2
|
import { bottomnavheaderitem } from ".";
|
|
4
|
-
import type
|
|
3
|
+
import { type BottomNavHeaderItemProps, cn } from "..";
|
|
5
4
|
|
|
6
5
|
let { itemName, active, class: className, ...restProps }: BottomNavHeaderItemProps = $props();
|
|
7
|
-
let base = $derived(bottomnavheaderitem({ active
|
|
6
|
+
let base = $derived(bottomnavheaderitem({ active }));
|
|
8
7
|
</script>
|
|
9
8
|
|
|
10
|
-
<button {...restProps} class={base}>
|
|
9
|
+
<button {...restProps} class={cn(base, className)}>
|
|
11
10
|
{itemName}
|
|
12
11
|
</button>
|
|
13
12
|
|
|
@@ -15,7 +14,7 @@
|
|
|
15
14
|
@component
|
|
16
15
|
[Go to docs](https://flowbite-svelte.com/)
|
|
17
16
|
## Type
|
|
18
|
-
[BottomNavHeaderItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
17
|
+
[BottomNavHeaderItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L302)
|
|
19
18
|
## Props
|
|
20
19
|
@prop itemName
|
|
21
20
|
@prop active
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type BottomNavHeaderItemProps } from "..";
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BottomNavHeaderItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BottomNavHeaderItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L302)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop itemName
|
|
8
8
|
* @prop active
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { getContext } from "svelte";
|
|
3
3
|
import type { HTMLButtonAttributes, HTMLAnchorAttributes } from "svelte/elements";
|
|
4
|
-
import { bottomNavItem } from "
|
|
5
|
-
import type
|
|
6
|
-
import { twMerge } from "tailwind-merge";
|
|
4
|
+
import { bottomNavItem } from ".";
|
|
5
|
+
import { type BottomNavItemProps, type BottomNavContextType, type BottomNavVariantType, cn } from "..";
|
|
7
6
|
|
|
8
7
|
let { children, btnName, appBtnPosition = "middle", target, activeClass, href = "", btnClass, spanClass, active: manualActive, ...restProps }: BottomNavItemProps = $props();
|
|
9
8
|
|
|
@@ -17,17 +16,17 @@
|
|
|
17
16
|
navUrl = value;
|
|
18
17
|
});
|
|
19
18
|
|
|
20
|
-
const { base, span } = bottomNavItem({ navType, appBtnPosition });
|
|
19
|
+
const { base, span } = $derived(bottomNavItem({ navType, appBtnPosition }));
|
|
21
20
|
|
|
22
21
|
// Determine active state based on manual prop or URL matching
|
|
23
22
|
let isActive = $derived(manualActive !== undefined ? !!manualActive : navUrl ? (href === "/" ? navUrl === "/" : href && (navUrl === href || navUrl.startsWith(href + "/") || (href !== "/" && navUrl.replace(/^https?:\/\/[^/]+/, "").startsWith(href)))) : false);
|
|
24
23
|
|
|
25
24
|
function getCommonClass() {
|
|
26
|
-
return
|
|
25
|
+
return cn(base(), isActive && (activeClass ?? context.activeClass), btnClass);
|
|
27
26
|
}
|
|
28
27
|
|
|
29
28
|
function getSpanClass() {
|
|
30
|
-
return
|
|
29
|
+
return cn(span(), isActive && (activeClass ?? context.activeClass), spanClass);
|
|
31
30
|
}
|
|
32
31
|
|
|
33
32
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
@@ -65,7 +64,7 @@
|
|
|
65
64
|
@component
|
|
66
65
|
[Go to docs](https://flowbite-svelte.com/)
|
|
67
66
|
## Type
|
|
68
|
-
[BottomNavItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
67
|
+
[BottomNavItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L261)
|
|
69
68
|
## Props
|
|
70
69
|
@prop children
|
|
71
70
|
@prop btnName
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type BottomNavItemProps } from "..";
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BottomNavItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BottomNavItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L261)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop btnName
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export { BottomNav, BottomNavItem, bottomNav, bottomNavItem, BottomNavHeader, bottomnavheader, BottomNavHeaderItem, bottomnavheaderitem };
|
|
1
|
+
export { default as BottomNav } from "./BottomNav.svelte";
|
|
2
|
+
export { default as BottomNavItem } from "./BottomNavItem.svelte";
|
|
3
|
+
export { default as BottomNavHeaderItem } from "./BottomNavHeaderItem.svelte";
|
|
4
|
+
export { default as BottomNavHeader } from "./BottomNavHeader.svelte";
|
|
5
|
+
export { bottomNav, bottomNavItem, bottomnavheader, bottomnavheaderitem } from "./theme";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export { BottomNav, BottomNavItem, bottomNav, bottomNavItem, BottomNavHeader, bottomnavheader, BottomNavHeaderItem, bottomnavheaderitem };
|
|
1
|
+
export { default as BottomNav } from "./BottomNav.svelte";
|
|
2
|
+
export { default as BottomNavItem } from "./BottomNavItem.svelte";
|
|
3
|
+
export { default as BottomNavHeaderItem } from "./BottomNavHeaderItem.svelte";
|
|
4
|
+
export { default as BottomNavHeader } from "./BottomNavHeader.svelte";
|
|
5
|
+
export { bottomNav, bottomNavItem, bottomnavheader, bottomnavheaderitem } from "./theme";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { getContext } from "svelte";
|
|
3
|
-
import { breadcrumb } from "
|
|
4
|
-
import type
|
|
5
|
-
import clsx from "clsx";
|
|
3
|
+
import { breadcrumb } from ".";
|
|
4
|
+
import { type BreadcrumbProps, type BaseThemes, cn } from "..";
|
|
6
5
|
|
|
7
6
|
let { children, solid = false, class: className, olClass, ariaLabel = "Breadcrumb", ...restProps }: BreadcrumbProps = $props();
|
|
8
7
|
|
|
@@ -12,8 +11,8 @@
|
|
|
12
11
|
const breadcrumbTheme = context?.breadcrumb || breadcrumb;
|
|
13
12
|
|
|
14
13
|
const { nav, list } = breadcrumbTheme({ solid });
|
|
15
|
-
let classNav = $derived(nav(
|
|
16
|
-
let classList = $derived(list(
|
|
14
|
+
let classNav = $derived(cn(nav(), className));
|
|
15
|
+
let classList = $derived(cn(list(), olClass));
|
|
17
16
|
</script>
|
|
18
17
|
|
|
19
18
|
<nav aria-label={ariaLabel} {...restProps} class={classNav}>
|
|
@@ -26,7 +25,7 @@
|
|
|
26
25
|
@component
|
|
27
26
|
[Go to docs](https://flowbite-svelte.com/)
|
|
28
27
|
## Type
|
|
29
|
-
[BreadcrumbProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
28
|
+
[BreadcrumbProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L308)
|
|
30
29
|
## Props
|
|
31
30
|
@prop children
|
|
32
31
|
@prop solid = false
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type BreadcrumbProps } from "..";
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BreadcrumbProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BreadcrumbProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L308)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop solid = false
|