flowbite-svelte 1.9.0 → 1.10.0
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 +8 -9
- package/dist/accordion/Accordion.svelte.d.ts +1 -1
- package/dist/accordion/AccordionItem.svelte +10 -11
- package/dist/accordion/AccordionItem.svelte.d.ts +1 -1
- package/dist/accordion/index.d.ts +1 -1
- package/dist/accordion/index.js +1 -1
- package/dist/accordion/theme.d.ts +18 -3
- package/dist/accordion/theme.js +6 -2
- package/dist/alert/Alert.svelte +8 -8
- package/dist/alert/Alert.svelte.d.ts +1 -1
- package/dist/alert/index.d.ts +1 -1
- package/dist/alert/theme.d.ts +1 -0
- package/dist/avatar/Avatar.svelte +8 -9
- package/dist/avatar/Avatar.svelte.d.ts +1 -1
- package/dist/avatar/index.d.ts +1 -1
- package/dist/avatar/theme.d.ts +1 -0
- package/dist/badge/Badge.svelte +9 -11
- package/dist/badge/Badge.svelte.d.ts +1 -1
- package/dist/badge/index.d.ts +1 -1
- package/dist/badge/theme.d.ts +5 -3
- package/dist/badge/theme.js +1 -1
- package/dist/banner/Banner.svelte +9 -5
- package/dist/banner/Banner.svelte.d.ts +1 -1
- package/dist/banner/index.d.ts +1 -1
- package/dist/banner/theme.d.ts +2 -0
- package/dist/bottom-navigation/BottomNav.svelte +8 -4
- package/dist/bottom-navigation/BottomNav.svelte.d.ts +1 -1
- package/dist/bottom-navigation/BottomNavHeader.svelte +11 -6
- package/dist/bottom-navigation/BottomNavHeader.svelte.d.ts +1 -1
- package/dist/bottom-navigation/BottomNavHeaderItem.svelte +9 -4
- package/dist/bottom-navigation/BottomNavHeaderItem.svelte.d.ts +1 -1
- package/dist/bottom-navigation/BottomNavItem.svelte +8 -4
- package/dist/bottom-navigation/BottomNavItem.svelte.d.ts +1 -1
- package/dist/bottom-navigation/index.d.ts +1 -1
- package/dist/bottom-navigation/index.js +1 -1
- package/dist/bottom-navigation/theme.d.ts +10 -2
- package/dist/bottom-navigation/theme.js +2 -2
- package/dist/breadcrumb/Breadcrumb.svelte +7 -10
- package/dist/breadcrumb/Breadcrumb.svelte.d.ts +1 -1
- package/dist/breadcrumb/BreadcrumbItem.svelte +13 -10
- package/dist/breadcrumb/BreadcrumbItem.svelte.d.ts +1 -1
- package/dist/breadcrumb/index.d.ts +1 -1
- package/dist/breadcrumb/index.js +1 -1
- package/dist/breadcrumb/theme.d.ts +33 -22
- package/dist/breadcrumb/theme.js +18 -12
- package/dist/button-group/ButtonGroup.svelte +5 -2
- package/dist/button-group/ButtonGroup.svelte.d.ts +1 -1
- package/dist/button-group/index.d.ts +1 -1
- package/dist/button-group/theme.d.ts +1 -0
- package/dist/buttons/Button.svelte +7 -3
- package/dist/buttons/Button.svelte.d.ts +1 -1
- package/dist/buttons/GradientButton.svelte +8 -5
- package/dist/buttons/GradientButton.svelte.d.ts +1 -1
- package/dist/buttons/index.d.ts +1 -1
- package/dist/buttons/theme.d.ts +4 -0
- package/dist/card/Card.svelte +9 -6
- package/dist/card/Card.svelte.d.ts +2 -2
- package/dist/card/index.d.ts +1 -1
- package/dist/card/theme.d.ts +2 -0
- package/dist/carousel/Carousel.svelte +5 -2
- package/dist/carousel/Carousel.svelte.d.ts +1 -1
- package/dist/carousel/{Indicators.svelte → CarouselIndicators.svelte} +8 -5
- package/dist/carousel/{Indicators.svelte.d.ts → CarouselIndicators.svelte.d.ts} +4 -4
- package/dist/carousel/ControlButton.svelte +5 -2
- package/dist/carousel/ControlButton.svelte.d.ts +1 -1
- package/dist/carousel/Controls.svelte +6 -3
- package/dist/carousel/Controls.svelte.d.ts +1 -1
- package/dist/carousel/Slide.svelte +5 -2
- package/dist/carousel/Slide.svelte.d.ts +1 -1
- package/dist/carousel/Thumbnail.svelte +5 -2
- package/dist/carousel/Thumbnail.svelte.d.ts +1 -1
- package/dist/carousel/Thumbnails.svelte +5 -2
- package/dist/carousel/Thumbnails.svelte.d.ts +1 -1
- package/dist/carousel/index.d.ts +2 -2
- package/dist/carousel/index.js +2 -2
- package/dist/carousel/theme.d.ts +8 -1
- package/dist/carousel/theme.js +1 -2
- package/dist/clipboard/Clipboard.svelte +6 -3
- package/dist/clipboard/Clipboard.svelte.d.ts +2 -2
- package/dist/clipboard/index.d.ts +1 -1
- package/dist/clipboard/theme.d.ts +1 -0
- package/dist/darkmode/DarkMode.svelte +5 -2
- package/dist/darkmode/DarkMode.svelte.d.ts +1 -1
- package/dist/darkmode/index.d.ts +1 -1
- package/dist/darkmode/theme.d.ts +1 -0
- package/dist/datepicker/Datepicker.svelte +25 -20
- package/dist/datepicker/Datepicker.svelte.d.ts +2 -2
- package/dist/datepicker/index.d.ts +1 -1
- package/dist/datepicker/theme.d.ts +2 -0
- package/dist/device-mockups/Android.svelte +1 -1
- package/dist/device-mockups/Android.svelte.d.ts +1 -1
- package/dist/device-mockups/DefaultMockup.svelte +1 -1
- package/dist/device-mockups/DefaultMockup.svelte.d.ts +1 -1
- package/dist/device-mockups/Desktop.svelte +1 -1
- package/dist/device-mockups/Desktop.svelte.d.ts +1 -1
- package/dist/device-mockups/DeviceMockup.svelte +1 -1
- package/dist/device-mockups/DeviceMockup.svelte.d.ts +1 -1
- package/dist/device-mockups/Ios.svelte +1 -1
- package/dist/device-mockups/Ios.svelte.d.ts +1 -1
- package/dist/device-mockups/Laptop.svelte +1 -1
- package/dist/device-mockups/Laptop.svelte.d.ts +1 -1
- package/dist/device-mockups/Smartwatch.svelte +1 -1
- package/dist/device-mockups/Smartwatch.svelte.d.ts +1 -1
- package/dist/device-mockups/Tablet.svelte +1 -1
- package/dist/device-mockups/Tablet.svelte.d.ts +1 -1
- package/dist/device-mockups/theme.d.ts +21 -21
- package/dist/drawer/Drawer.svelte +8 -5
- package/dist/drawer/Drawer.svelte.d.ts +1 -1
- package/dist/drawer/Drawerhead.svelte +8 -5
- package/dist/drawer/Drawerhead.svelte.d.ts +1 -1
- package/dist/drawer/index.d.ts +1 -1
- package/dist/drawer/theme.d.ts +16 -12
- package/dist/drawer/theme.js +4 -4
- package/dist/dropdown/Dropdown.svelte +5 -2
- package/dist/dropdown/Dropdown.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownDivider.svelte +5 -2
- package/dist/dropdown/DropdownDivider.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownGroup.svelte +5 -2
- package/dist/dropdown/DropdownGroup.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownHeader.svelte +5 -2
- package/dist/dropdown/DropdownHeader.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownItem.svelte +6 -3
- package/dist/dropdown/DropdownItem.svelte.d.ts +1 -1
- package/dist/dropdown/index.d.ts +1 -1
- package/dist/dropdown/theme.d.ts +7 -0
- package/dist/footer/Footer.svelte +5 -2
- package/dist/footer/Footer.svelte.d.ts +1 -1
- package/dist/footer/FooterBrand.svelte +8 -5
- package/dist/footer/FooterBrand.svelte.d.ts +1 -1
- package/dist/footer/FooterCopyright.svelte +8 -5
- package/dist/footer/FooterCopyright.svelte.d.ts +1 -1
- package/dist/footer/FooterIcon.svelte +5 -2
- package/dist/footer/FooterIcon.svelte.d.ts +1 -1
- package/dist/footer/FooterLink.svelte +8 -4
- package/dist/footer/FooterLink.svelte.d.ts +1 -1
- package/dist/footer/FooterLinkGroup.svelte +5 -2
- package/dist/footer/FooterLinkGroup.svelte.d.ts +1 -1
- package/dist/footer/index.d.ts +1 -1
- package/dist/footer/theme.d.ts +18 -10
- package/dist/footer/theme.js +6 -7
- package/dist/forms/button-toggle/ButtonToggle.svelte +8 -5
- package/dist/forms/button-toggle/ButtonToggle.svelte.d.ts +1 -1
- package/dist/forms/button-toggle/ButtonToggleGroup.svelte +4 -1
- package/dist/forms/button-toggle/CheckIcon.svelte +1 -1
- package/dist/forms/button-toggle/CheckIcon.svelte.d.ts +1 -1
- package/dist/forms/button-toggle/index.d.ts +1 -1
- package/dist/forms/button-toggle/theme.d.ts +152 -144
- package/dist/forms/button-toggle/theme.js +65 -63
- package/dist/forms/checkbox/Checkbox.svelte +8 -5
- package/dist/forms/checkbox/CheckboxButton.svelte +5 -2
- package/dist/forms/checkbox/CheckboxButton.svelte.d.ts +1 -1
- package/dist/forms/checkbox/index.d.ts +1 -1
- package/dist/forms/checkbox/theme.d.ts +3 -0
- package/dist/forms/dropzone/Dropzone.svelte +5 -2
- package/dist/forms/dropzone/Dropzone.svelte.d.ts +1 -1
- package/dist/forms/dropzone/index.d.ts +1 -1
- package/dist/forms/dropzone/theme.d.ts +1 -0
- package/dist/forms/fileupload/Fileupload.svelte +8 -5
- package/dist/forms/fileupload/Fileupload.svelte.d.ts +1 -1
- package/dist/forms/fileupload/index.d.ts +1 -1
- package/dist/forms/fileupload/theme.d.ts +2 -0
- package/dist/forms/floating-label/FloatingLabelInput.svelte +11 -8
- package/dist/forms/floating-label/FloatingLabelInput.svelte.d.ts +1 -1
- package/dist/forms/floating-label/index.d.ts +1 -1
- package/dist/forms/floating-label/theme.d.ts +5 -3
- package/dist/forms/floating-label/theme.js +1 -1
- package/dist/forms/helper/Helper.svelte +5 -2
- package/dist/forms/helper/Helper.svelte.d.ts +1 -1
- package/dist/forms/helper/index.d.ts +1 -1
- package/dist/forms/helper/theme.d.ts +1 -0
- package/dist/forms/input-addon/InputAddon.svelte +6 -2
- package/dist/forms/input-addon/InputAddon.svelte.d.ts +1 -1
- package/dist/forms/input-field/Input.svelte +13 -10
- package/dist/forms/input-field/index.d.ts +1 -1
- package/dist/forms/input-field/theme.d.ts +5 -3
- package/dist/forms/input-field/theme.js +1 -1
- package/dist/forms/label/Label.svelte +5 -2
- package/dist/forms/label/Label.svelte.d.ts +1 -1
- package/dist/forms/label/index.d.ts +1 -1
- package/dist/forms/label/theme.d.ts +1 -0
- package/dist/forms/phoneinput/PhoneInput.svelte +11 -8
- package/dist/forms/phoneinput/PhoneInput.svelte.d.ts +1 -1
- package/dist/forms/phoneinput/index.d.ts +1 -1
- package/dist/forms/phoneinput/theme.d.ts +2 -0
- package/dist/forms/radio/Radio.svelte +6 -3
- package/dist/forms/radio/RadioButton.svelte +4 -1
- package/dist/forms/radio/index.d.ts +1 -1
- package/dist/forms/radio/theme.d.ts +3 -0
- package/dist/forms/range/Range.svelte +5 -2
- package/dist/forms/range/Range.svelte.d.ts +1 -1
- package/dist/forms/range/theme.d.ts +1 -0
- package/dist/forms/search/Search.svelte +12 -9
- package/dist/forms/search/Search.svelte.d.ts +1 -1
- package/dist/forms/search/index.d.ts +1 -1
- package/dist/forms/search/theme.d.ts +5 -3
- package/dist/forms/search/theme.js +1 -1
- package/dist/forms/select/MultiSelect.svelte +7 -4
- package/dist/forms/select/Select.svelte +8 -5
- package/dist/forms/select/index.d.ts +1 -1
- package/dist/forms/select/index.js +1 -1
- package/dist/forms/select/theme.d.ts +7 -3
- package/dist/forms/select/theme.js +1 -1
- package/dist/forms/tags/Tags.svelte +10 -7
- package/dist/forms/tags/Tags.svelte.d.ts +1 -1
- package/dist/forms/tags/index.d.ts +1 -1
- package/dist/forms/tags/theme.d.ts +11 -9
- package/dist/forms/tags/theme.js +1 -1
- package/dist/forms/textarea/Textarea.svelte +14 -11
- package/dist/forms/textarea/Textarea.svelte.d.ts +1 -1
- package/dist/forms/textarea/index.d.ts +1 -1
- package/dist/forms/textarea/theme.d.ts +5 -3
- package/dist/forms/textarea/theme.js +1 -1
- package/dist/forms/timepicker/Timepicker.svelte +107 -64
- package/dist/forms/timepicker/Timepicker.svelte.d.ts +1 -1
- package/dist/forms/timepicker/index.d.ts +1 -0
- package/dist/forms/timepicker/index.js +1 -0
- package/dist/forms/timepicker/theme.d.ts +191 -0
- package/dist/forms/timepicker/theme.js +72 -0
- package/dist/forms/toggle/Toggle.svelte +8 -5
- package/dist/forms/toggle/Toggle.svelte.d.ts +1 -1
- package/dist/forms/toggle/index.d.ts +1 -1
- package/dist/forms/toggle/theme.d.ts +2 -0
- package/dist/gallery/Gallery.svelte +7 -4
- package/dist/gallery/Gallery.svelte.d.ts +1 -1
- package/dist/gallery/index.d.ts +1 -1
- package/dist/gallery/theme.d.ts +5 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -2
- package/dist/indicator/Indicator.svelte +6 -3
- package/dist/indicator/Indicator.svelte.d.ts +1 -1
- package/dist/indicator/index.d.ts +1 -1
- package/dist/indicator/theme.d.ts +121 -360
- package/dist/indicator/theme.js +48 -56
- package/dist/kbd/Kbd.svelte +6 -2
- package/dist/kbd/Kbd.svelte.d.ts +1 -1
- package/dist/kbd/index.d.ts +1 -1
- package/dist/kbd/theme.d.ts +1 -0
- package/dist/list-group/Listgroup.svelte +5 -2
- package/dist/list-group/Listgroup.svelte.d.ts +1 -1
- package/dist/list-group/ListgroupItem.svelte +7 -4
- package/dist/list-group/ListgroupItem.svelte.d.ts +1 -1
- package/dist/list-group/index.d.ts +1 -1
- package/dist/list-group/theme.d.ts +2 -0
- package/dist/mega-menu/MegaMenu.svelte +9 -6
- package/dist/mega-menu/MegaMenu.svelte.d.ts +1 -1
- package/dist/mega-menu/index.d.ts +1 -1
- package/dist/mega-menu/theme.d.ts +2 -0
- package/dist/modal/Modal.svelte +13 -10
- package/dist/modal/Modal.svelte.d.ts +1 -1
- package/dist/modal/index.d.ts +2 -3
- package/dist/modal/index.js +2 -3
- package/dist/modal/theme.d.ts +5 -3
- package/dist/modal/theme.js +1 -1
- package/dist/navbar/Menu.svelte +6 -2
- package/dist/navbar/Menu.svelte.d.ts +1 -1
- package/dist/navbar/NavBrand.svelte +7 -4
- package/dist/navbar/NavBrand.svelte.d.ts +1 -1
- package/dist/navbar/NavContainer.svelte +7 -4
- package/dist/navbar/NavContainer.svelte.d.ts +1 -1
- package/dist/navbar/NavHamburger.svelte +9 -6
- package/dist/navbar/NavHamburger.svelte.d.ts +1 -1
- package/dist/navbar/NavLi.svelte +7 -4
- package/dist/navbar/NavLi.svelte.d.ts +1 -1
- package/dist/navbar/NavUl.svelte +11 -8
- package/dist/navbar/NavUl.svelte.d.ts +1 -1
- package/dist/navbar/Navbar.svelte +6 -4
- package/dist/navbar/Navbar.svelte.d.ts +1 -1
- package/dist/navbar/index.d.ts +7 -7
- package/dist/navbar/index.js +7 -7
- package/dist/navbar/theme.d.ts +12 -5
- package/dist/navbar/theme.js +5 -5
- package/dist/pagination/Pagination.svelte +7 -3
- package/dist/pagination/Pagination.svelte.d.ts +1 -1
- package/dist/pagination/PaginationButton.svelte +18 -12
- package/dist/pagination/PaginationButton.svelte.d.ts +1 -1
- package/dist/pagination/PaginationItem.svelte +7 -4
- package/dist/pagination/PaginationItem.svelte.d.ts +1 -1
- package/dist/pagination/PaginationNav.svelte +13 -11
- package/dist/pagination/PaginationNav.svelte.d.ts +1 -1
- package/dist/pagination/index.d.ts +1 -1
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/theme.d.ts +7 -2
- package/dist/pagination/theme.js +2 -2
- package/dist/popover/Popover.svelte +10 -7
- package/dist/popover/Popover.svelte.d.ts +1 -1
- package/dist/popover/index.d.ts +2 -3
- package/dist/popover/index.js +2 -3
- package/dist/popover/theme.d.ts +2 -3
- package/dist/popover/theme.js +1 -2
- package/dist/progress/Progressbar.svelte +12 -8
- package/dist/progress/Progressbar.svelte.d.ts +1 -1
- package/dist/progress/Progressradial.svelte +13 -9
- package/dist/progress/Progressradial.svelte.d.ts +1 -1
- package/dist/progress/index.d.ts +1 -1
- package/dist/progress/index.js +1 -1
- package/dist/progress/theme.d.ts +4 -0
- package/dist/rating/AdvancedRating.svelte +12 -9
- package/dist/rating/AdvancedRating.svelte.d.ts +1 -1
- package/dist/rating/CustomIcon.svelte +1 -1
- package/dist/rating/CustomIcon.svelte.d.ts +1 -1
- package/dist/rating/Heart.svelte +1 -1
- package/dist/rating/Heart.svelte.d.ts +1 -1
- package/dist/rating/Rating.svelte +8 -4
- package/dist/rating/Rating.svelte.d.ts +1 -1
- package/dist/rating/RatingComment.svelte +1 -1
- package/dist/rating/RatingComment.svelte.d.ts +1 -1
- package/dist/rating/Review.svelte +14 -11
- package/dist/rating/Review.svelte.d.ts +1 -1
- package/dist/rating/ScoreRating.svelte +14 -10
- package/dist/rating/ScoreRating.svelte.d.ts +1 -1
- package/dist/rating/Star.svelte +1 -1
- package/dist/rating/Star.svelte.d.ts +1 -1
- package/dist/rating/Thumbup.svelte +1 -1
- package/dist/rating/Thumbup.svelte.d.ts +1 -1
- package/dist/rating/index.d.ts +10 -11
- package/dist/rating/index.js +10 -11
- package/dist/rating/theme.d.ts +16 -14
- package/dist/rating/theme.js +2 -3
- package/dist/sidebar/Sidebar.svelte +12 -9
- package/dist/sidebar/Sidebar.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarBrand.svelte +10 -7
- package/dist/sidebar/SidebarBrand.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarButton.svelte +8 -4
- package/dist/sidebar/SidebarButton.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarCta.svelte +11 -7
- package/dist/sidebar/SidebarCta.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarDropdownWrapper.svelte +13 -10
- package/dist/sidebar/SidebarDropdownWrapper.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarGroup.svelte +1 -1
- package/dist/sidebar/SidebarGroup.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarItem.svelte +1 -1
- package/dist/sidebar/SidebarItem.svelte.d.ts +1 -1
- package/dist/sidebar/index.d.ts +10 -11
- package/dist/sidebar/index.js +10 -11
- package/dist/sidebar/theme.d.ts +22 -13
- package/dist/sidebar/theme.js +4 -4
- package/dist/skeleton/CardPlaceholder.svelte +17 -14
- package/dist/skeleton/CardPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ImagePlaceholder.svelte +17 -14
- package/dist/skeleton/ImagePlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ListPlaceholder.svelte +12 -9
- package/dist/skeleton/ListPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/Skeleton.svelte +15 -11
- package/dist/skeleton/Skeleton.svelte.d.ts +1 -1
- package/dist/skeleton/TestimonialPlaceholder.svelte +14 -10
- package/dist/skeleton/TestimonialPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/TextPlaceholder.svelte +32 -28
- package/dist/skeleton/TextPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/VideoPlaceholder.svelte +7 -3
- package/dist/skeleton/VideoPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/WidgetPlaceholder.svelte +8 -4
- package/dist/skeleton/WidgetPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/index.d.ts +9 -10
- package/dist/skeleton/index.js +9 -10
- package/dist/skeleton/theme.d.ts +29 -15
- package/dist/skeleton/theme.js +8 -9
- package/dist/speed-dial/SpeedDial.svelte +9 -9
- package/dist/speed-dial/SpeedDial.svelte.d.ts +1 -1
- package/dist/speed-dial/SpeedDialButton.svelte +9 -8
- package/dist/speed-dial/SpeedDialButton.svelte.d.ts +1 -1
- package/dist/speed-dial/SpeedDialTrigger.svelte +1 -1
- package/dist/speed-dial/SpeedDialTrigger.svelte.d.ts +1 -1
- package/dist/speed-dial/index.d.ts +4 -5
- package/dist/speed-dial/index.js +4 -5
- package/dist/speed-dial/theme.d.ts +8 -4
- package/dist/speed-dial/theme.js +2 -2
- package/dist/spinner/Spinner.svelte +6 -3
- package/dist/spinner/Spinner.svelte.d.ts +1 -1
- package/dist/spinner/index.d.ts +2 -3
- package/dist/spinner/index.js +2 -3
- package/dist/spinner/theme.d.ts +1 -0
- package/dist/stepindicator/StepIndicator.svelte +28 -49
- package/dist/stepindicator/StepIndicator.svelte.d.ts +3 -3
- package/dist/stepindicator/index.d.ts +1 -0
- package/dist/stepindicator/index.js +1 -0
- package/dist/stepindicator/theme.d.ts +246 -0
- package/dist/stepindicator/theme.js +103 -0
- package/dist/stepper/BreadcrumbStepper.svelte +15 -11
- package/dist/stepper/BreadcrumbStepper.svelte.d.ts +1 -1
- package/dist/stepper/DetailedStepper.svelte +9 -9
- package/dist/stepper/DetailedStepper.svelte.d.ts +1 -1
- package/dist/stepper/ProgressStepper.svelte +13 -11
- package/dist/stepper/ProgressStepper.svelte.d.ts +1 -1
- package/dist/stepper/Stepper.svelte +15 -13
- package/dist/stepper/Stepper.svelte.d.ts +1 -1
- package/dist/stepper/TimelineStepper.svelte +9 -9
- package/dist/stepper/TimelineStepper.svelte.d.ts +1 -1
- package/dist/stepper/VerticalStepper.svelte +9 -10
- package/dist/stepper/VerticalStepper.svelte.d.ts +1 -1
- package/dist/stepper/index.d.ts +1 -1
- package/dist/stepper/index.js +1 -1
- package/dist/stepper/theme.d.ts +303 -261
- package/dist/stepper/theme.js +198 -186
- package/dist/table/Table.svelte +8 -6
- package/dist/table/Table.svelte.d.ts +2 -2
- package/dist/table/TableBody.svelte +6 -2
- package/dist/table/TableBody.svelte.d.ts +1 -1
- package/dist/table/TableBodyCell.svelte +7 -4
- package/dist/table/TableBodyCell.svelte.d.ts +1 -1
- package/dist/table/TableBodyRow.svelte +8 -5
- package/dist/table/TableBodyRow.svelte.d.ts +1 -1
- package/dist/table/TableHead.svelte +8 -5
- package/dist/table/TableHead.svelte.d.ts +1 -1
- package/dist/table/TableHeadCell.svelte +7 -4
- package/dist/table/TableHeadCell.svelte.d.ts +1 -1
- package/dist/table/TableSearch.svelte +35 -30
- package/dist/table/TableSearch.svelte.d.ts +8 -8
- package/dist/table/index.d.ts +8 -9
- package/dist/table/index.js +8 -9
- package/dist/table/theme.d.ts +192 -4
- package/dist/table/theme.js +68 -4
- package/dist/tabs/TabItem.svelte +8 -5
- package/dist/tabs/TabItem.svelte.d.ts +1 -1
- package/dist/tabs/Tabs.svelte +9 -6
- package/dist/tabs/Tabs.svelte.d.ts +1 -1
- package/dist/tabs/index.d.ts +3 -4
- package/dist/tabs/index.js +3 -4
- package/dist/tabs/theme.d.ts +4 -0
- package/dist/theme/ThemeProvider.svelte +30 -0
- package/dist/theme/ThemeProvider.svelte.d.ts +17 -0
- package/dist/theme/index.d.ts +0 -10296
- package/dist/theme/index.js +2 -119
- package/dist/theme/themeUtils.d.ts +2 -0
- package/dist/theme/themeUtils.js +6 -0
- package/dist/timeline/Activity.svelte +6 -3
- package/dist/timeline/Activity.svelte.d.ts +1 -1
- package/dist/timeline/ActivityItem.svelte +15 -11
- package/dist/timeline/ActivityItem.svelte.d.ts +1 -1
- package/dist/timeline/Group.svelte +11 -5
- package/dist/timeline/Group.svelte.d.ts +1 -1
- package/dist/timeline/GroupItem.svelte +13 -8
- package/dist/timeline/GroupItem.svelte.d.ts +1 -1
- package/dist/timeline/Timeline.svelte +6 -2
- package/dist/timeline/Timeline.svelte.d.ts +1 -1
- package/dist/timeline/TimelineItem.svelte +13 -9
- package/dist/timeline/TimelineItem.svelte.d.ts +1 -1
- package/dist/timeline/index.d.ts +7 -8
- package/dist/timeline/index.js +7 -8
- package/dist/timeline/theme.d.ts +25 -15
- package/dist/timeline/theme.js +3 -3
- package/dist/toast/Toast.svelte +10 -6
- package/dist/toast/Toast.svelte.d.ts +1 -1
- package/dist/toast/index.d.ts +2 -3
- package/dist/toast/index.js +2 -3
- package/dist/toast/theme.d.ts +2 -0
- package/dist/toolbar/Toolbar.svelte +8 -4
- package/dist/toolbar/Toolbar.svelte.d.ts +1 -1
- package/dist/toolbar/ToolbarButton.svelte +6 -2
- package/dist/toolbar/ToolbarButton.svelte.d.ts +1 -1
- package/dist/toolbar/ToolbarGroup.svelte +6 -2
- package/dist/toolbar/ToolbarGroup.svelte.d.ts +1 -1
- package/dist/toolbar/index.d.ts +4 -5
- package/dist/toolbar/index.js +4 -5
- package/dist/toolbar/theme.d.ts +4 -0
- package/dist/tooltip/Tooltip.svelte +7 -3
- package/dist/tooltip/Tooltip.svelte.d.ts +1 -1
- package/dist/tooltip/index.d.ts +2 -3
- package/dist/tooltip/index.js +2 -3
- package/dist/tooltip/theme.d.ts +2 -0
- package/dist/types.d.ts +25 -25
- package/dist/types.js +1 -1
- package/dist/typography/anchor/A.svelte +7 -3
- package/dist/typography/anchor/A.svelte.d.ts +1 -1
- package/dist/typography/anchor/index.d.ts +2 -3
- package/dist/typography/anchor/index.js +2 -3
- package/dist/typography/anchor/theme.d.ts +1 -0
- package/dist/typography/blockquote/Blockquote.svelte +6 -2
- package/dist/typography/blockquote/Blockquote.svelte.d.ts +1 -1
- package/dist/typography/blockquote/theme.d.ts +1 -0
- package/dist/typography/descriptionlist/DescriptionList.svelte +7 -3
- package/dist/typography/descriptionlist/DescriptionList.svelte.d.ts +1 -1
- package/dist/typography/descriptionlist/index.d.ts +2 -3
- package/dist/typography/descriptionlist/index.js +2 -3
- package/dist/typography/descriptionlist/theme.d.ts +1 -0
- package/dist/typography/heading/Heading.svelte +7 -3
- package/dist/typography/heading/Heading.svelte.d.ts +1 -1
- package/dist/typography/heading/index.d.ts +2 -3
- package/dist/typography/heading/index.js +2 -3
- package/dist/typography/heading/theme.d.ts +1 -0
- package/dist/typography/hr/Hr.svelte +10 -6
- package/dist/typography/hr/Hr.svelte.d.ts +1 -1
- package/dist/typography/hr/index.d.ts +2 -3
- package/dist/typography/hr/index.js +2 -3
- package/dist/typography/hr/theme.d.ts +2 -0
- package/dist/typography/img/EnhancedImg.svelte +10 -6
- package/dist/typography/img/EnhancedImg.svelte.d.ts +1 -1
- package/dist/typography/img/Img.svelte +10 -6
- package/dist/typography/img/Img.svelte.d.ts +1 -1
- package/dist/typography/img/index.d.ts +3 -4
- package/dist/typography/img/index.js +3 -4
- package/dist/typography/img/theme.d.ts +2 -0
- package/dist/typography/layout/Layout.svelte +6 -2
- package/dist/typography/layout/Layout.svelte.d.ts +1 -1
- package/dist/typography/layout/index.d.ts +2 -3
- package/dist/typography/layout/index.js +2 -3
- package/dist/typography/layout/theme.d.ts +1 -0
- package/dist/typography/list/Li.svelte +6 -3
- package/dist/typography/list/Li.svelte.d.ts +1 -1
- package/dist/typography/list/List.svelte +6 -2
- package/dist/typography/list/List.svelte.d.ts +1 -1
- package/dist/typography/list/index.d.ts +3 -4
- package/dist/typography/list/index.js +3 -4
- package/dist/typography/list/theme.d.ts +1 -0
- package/dist/typography/mark/Mark.svelte +6 -2
- package/dist/typography/mark/Mark.svelte.d.ts +1 -1
- package/dist/typography/mark/index.d.ts +2 -3
- package/dist/typography/mark/index.js +2 -3
- package/dist/typography/mark/theme.d.ts +1 -0
- package/dist/typography/paragraph/P.svelte +6 -2
- package/dist/typography/paragraph/P.svelte.d.ts +1 -1
- package/dist/typography/paragraph/index.d.ts +2 -3
- package/dist/typography/paragraph/index.js +2 -3
- package/dist/typography/paragraph/theme.d.ts +1 -0
- package/dist/typography/secondary/Secondary.svelte +6 -2
- package/dist/typography/secondary/Secondary.svelte.d.ts +1 -1
- package/dist/typography/secondary/index.d.ts +2 -3
- package/dist/typography/secondary/index.js +2 -3
- package/dist/typography/secondary/theme.d.ts +1 -0
- package/dist/typography/span/Span.svelte +6 -2
- package/dist/typography/span/Span.svelte.d.ts +1 -1
- package/dist/typography/span/index.d.ts +2 -3
- package/dist/typography/span/index.js +2 -3
- package/dist/typography/span/theme.d.ts +1 -0
- package/dist/utils/Arrow.svelte +1 -1
- package/dist/utils/Arrow.svelte.d.ts +1 -1
- package/dist/utils/CloseButton.svelte +1 -1
- package/dist/utils/CloseButton.svelte.d.ts +1 -1
- package/dist/utils/Popper.svelte +1 -1
- package/dist/utils/Popper.svelte.d.ts +1 -1
- package/dist/video/Video.svelte +6 -2
- package/dist/video/Video.svelte.d.ts +1 -1
- package/dist/video/index.d.ts +1 -2
- package/dist/video/index.js +1 -2
- package/package.json +9 -12
- package/dist/chart/Chart.svelte +0 -45
- package/dist/chart/Chart.svelte.d.ts +0 -13
- package/dist/chart/chart.css +0 -166
- package/dist/chart/index.d.ts +0 -1
- package/dist/chart/index.js +0 -1
- package/dist/forms/button-toggle/button-toggle.txt +0 -25
- package/dist/theme/Theme.svelte +0 -60
- package/dist/theme/Theme.svelte.d.ts +0 -12
package/dist/sidebar/theme.d.ts
CHANGED
|
@@ -148,7 +148,9 @@ export declare const sidebar: import("tailwind-variants").TVReturnType<{
|
|
|
148
148
|
div: string;
|
|
149
149
|
backdrop: string;
|
|
150
150
|
}, undefined, unknown, unknown, undefined>>;
|
|
151
|
-
export
|
|
151
|
+
export type SidebarSlots = keyof typeof sidebar.slots;
|
|
152
|
+
export type SidebarTheme = Partial<Record<SidebarSlots, string>>;
|
|
153
|
+
export declare const sidebarButton: import("tailwind-variants").TVReturnType<{
|
|
152
154
|
breakpoint: {
|
|
153
155
|
sm: string;
|
|
154
156
|
md: string;
|
|
@@ -173,20 +175,21 @@ export declare const sidebarbutton: import("tailwind-variants").TVReturnType<{
|
|
|
173
175
|
"2xl": string;
|
|
174
176
|
};
|
|
175
177
|
}, undefined, "inline-flex items-center p-0 mt-0 ms-3 text-sm text-gray-500 rounded-lg hover:bg-gray-100 focus:outline-hidden focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600", unknown, unknown, undefined>>;
|
|
176
|
-
export
|
|
178
|
+
export type SidebarButtonTheme = string;
|
|
179
|
+
export declare const sidebarCta: import("tailwind-variants").TVReturnType<{
|
|
177
180
|
[key: string]: {
|
|
178
181
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
182
|
+
div?: import("tailwind-variants").ClassValue;
|
|
179
183
|
base?: import("tailwind-variants").ClassValue;
|
|
180
184
|
span?: import("tailwind-variants").ClassValue;
|
|
181
|
-
div?: import("tailwind-variants").ClassValue;
|
|
182
185
|
};
|
|
183
186
|
};
|
|
184
187
|
} | {
|
|
185
188
|
[x: string]: {
|
|
186
189
|
[x: string]: import("tailwind-variants").ClassValue | {
|
|
190
|
+
div?: import("tailwind-variants").ClassValue;
|
|
187
191
|
base?: import("tailwind-variants").ClassValue;
|
|
188
192
|
span?: import("tailwind-variants").ClassValue;
|
|
189
|
-
div?: import("tailwind-variants").ClassValue;
|
|
190
193
|
};
|
|
191
194
|
};
|
|
192
195
|
} | {}, {
|
|
@@ -196,9 +199,9 @@ export declare const sidebarcta: import("tailwind-variants").TVReturnType<{
|
|
|
196
199
|
}, undefined, {
|
|
197
200
|
[key: string]: {
|
|
198
201
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
202
|
+
div?: import("tailwind-variants").ClassValue;
|
|
199
203
|
base?: import("tailwind-variants").ClassValue;
|
|
200
204
|
span?: import("tailwind-variants").ClassValue;
|
|
201
|
-
div?: import("tailwind-variants").ClassValue;
|
|
202
205
|
};
|
|
203
206
|
};
|
|
204
207
|
} | {}, {
|
|
@@ -210,20 +213,22 @@ export declare const sidebarcta: import("tailwind-variants").TVReturnType<{
|
|
|
210
213
|
div: string;
|
|
211
214
|
span: string;
|
|
212
215
|
}, undefined, unknown, unknown, undefined>>;
|
|
213
|
-
export
|
|
216
|
+
export type SidebarCtaSlots = keyof typeof sidebarCta.slots;
|
|
217
|
+
export type SidebarCtaTheme = Partial<Record<SidebarCtaSlots, string>>;
|
|
218
|
+
export declare const sidebarBrand: import("tailwind-variants").TVReturnType<{
|
|
214
219
|
[key: string]: {
|
|
215
220
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
216
221
|
base?: import("tailwind-variants").ClassValue;
|
|
217
|
-
span?: import("tailwind-variants").ClassValue;
|
|
218
222
|
img?: import("tailwind-variants").ClassValue;
|
|
223
|
+
span?: import("tailwind-variants").ClassValue;
|
|
219
224
|
};
|
|
220
225
|
};
|
|
221
226
|
} | {
|
|
222
227
|
[x: string]: {
|
|
223
228
|
[x: string]: import("tailwind-variants").ClassValue | {
|
|
224
229
|
base?: import("tailwind-variants").ClassValue;
|
|
225
|
-
span?: import("tailwind-variants").ClassValue;
|
|
226
230
|
img?: import("tailwind-variants").ClassValue;
|
|
231
|
+
span?: import("tailwind-variants").ClassValue;
|
|
227
232
|
};
|
|
228
233
|
};
|
|
229
234
|
} | {}, {
|
|
@@ -234,8 +239,8 @@ export declare const sitebarbrand: import("tailwind-variants").TVReturnType<{
|
|
|
234
239
|
[key: string]: {
|
|
235
240
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
236
241
|
base?: import("tailwind-variants").ClassValue;
|
|
237
|
-
span?: import("tailwind-variants").ClassValue;
|
|
238
242
|
img?: import("tailwind-variants").ClassValue;
|
|
243
|
+
span?: import("tailwind-variants").ClassValue;
|
|
239
244
|
};
|
|
240
245
|
};
|
|
241
246
|
} | {}, {
|
|
@@ -247,12 +252,14 @@ export declare const sitebarbrand: import("tailwind-variants").TVReturnType<{
|
|
|
247
252
|
img: string;
|
|
248
253
|
span: string;
|
|
249
254
|
}, undefined, unknown, unknown, undefined>>;
|
|
250
|
-
export
|
|
255
|
+
export type SidebarBrandSlots = keyof typeof sidebarBrand.slots;
|
|
256
|
+
export type SidebarBrandTheme = Partial<Record<SidebarBrandSlots, string>>;
|
|
257
|
+
export declare const sidebarDropdownWrapper: import("tailwind-variants").TVReturnType<{
|
|
251
258
|
[key: string]: {
|
|
252
259
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
253
260
|
base?: import("tailwind-variants").ClassValue;
|
|
254
|
-
span?: import("tailwind-variants").ClassValue;
|
|
255
261
|
svg?: import("tailwind-variants").ClassValue;
|
|
262
|
+
span?: import("tailwind-variants").ClassValue;
|
|
256
263
|
ul?: import("tailwind-variants").ClassValue;
|
|
257
264
|
btn?: import("tailwind-variants").ClassValue;
|
|
258
265
|
};
|
|
@@ -261,8 +268,8 @@ export declare const sidebardropdownwrapper: import("tailwind-variants").TVRetur
|
|
|
261
268
|
[x: string]: {
|
|
262
269
|
[x: string]: import("tailwind-variants").ClassValue | {
|
|
263
270
|
base?: import("tailwind-variants").ClassValue;
|
|
264
|
-
span?: import("tailwind-variants").ClassValue;
|
|
265
271
|
svg?: import("tailwind-variants").ClassValue;
|
|
272
|
+
span?: import("tailwind-variants").ClassValue;
|
|
266
273
|
ul?: import("tailwind-variants").ClassValue;
|
|
267
274
|
btn?: import("tailwind-variants").ClassValue;
|
|
268
275
|
};
|
|
@@ -277,8 +284,8 @@ export declare const sidebardropdownwrapper: import("tailwind-variants").TVRetur
|
|
|
277
284
|
[key: string]: {
|
|
278
285
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
279
286
|
base?: import("tailwind-variants").ClassValue;
|
|
280
|
-
span?: import("tailwind-variants").ClassValue;
|
|
281
287
|
svg?: import("tailwind-variants").ClassValue;
|
|
288
|
+
span?: import("tailwind-variants").ClassValue;
|
|
282
289
|
ul?: import("tailwind-variants").ClassValue;
|
|
283
290
|
btn?: import("tailwind-variants").ClassValue;
|
|
284
291
|
};
|
|
@@ -296,3 +303,5 @@ export declare const sidebardropdownwrapper: import("tailwind-variants").TVRetur
|
|
|
296
303
|
svg: string;
|
|
297
304
|
ul: string;
|
|
298
305
|
}, undefined, unknown, unknown, undefined>>;
|
|
306
|
+
export type SidebarDropdownWrapperSlots = keyof typeof sidebarDropdownWrapper.slots;
|
|
307
|
+
export type SidebarDropdownWrapperTheme = Partial<Record<SidebarDropdownWrapperSlots, string>>;
|
package/dist/sidebar/theme.js
CHANGED
|
@@ -41,7 +41,7 @@ export const sidebar = tv({
|
|
|
41
41
|
}
|
|
42
42
|
]
|
|
43
43
|
});
|
|
44
|
-
export const
|
|
44
|
+
export const sidebarButton = tv({
|
|
45
45
|
base: "inline-flex items-center p-0 mt-0 ms-3 text-sm text-gray-500 rounded-lg hover:bg-gray-100 focus:outline-hidden focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600",
|
|
46
46
|
variants: {
|
|
47
47
|
breakpoint: {
|
|
@@ -53,21 +53,21 @@ export const sidebarbutton = tv({
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
|
-
export const
|
|
56
|
+
export const sidebarCta = tv({
|
|
57
57
|
slots: {
|
|
58
58
|
base: "p-4 mt-6 bg-primary-50 rounded-lg dark:bg-primary-900",
|
|
59
59
|
div: "flex items-center mb-3",
|
|
60
60
|
span: "bg-primary-100 text-primary-800 text-sm font-semibold me-2 px-2.5 py-0.5 rounded-sm dark:bg-primary-200 dark:text-primary-900"
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
|
-
export const
|
|
63
|
+
export const sidebarBrand = tv({
|
|
64
64
|
slots: {
|
|
65
65
|
base: "flex items-center ps-2.5 mb-5",
|
|
66
66
|
img: "h-6 me-3 sm:h-7",
|
|
67
67
|
span: "self-center text-xl font-semibold whitespace-nowrap dark:text-white"
|
|
68
68
|
}
|
|
69
69
|
});
|
|
70
|
-
export const
|
|
70
|
+
export const sidebarDropdownWrapper = tv({
|
|
71
71
|
slots: {
|
|
72
72
|
base: "group",
|
|
73
73
|
btn: "flex items-center p-2 w-full text-base font-normal text-gray-900 rounded-sm transition duration-75 group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700",
|
|
@@ -1,30 +1,33 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { twMerge } from "tailwind-merge";
|
|
3
2
|
import clsx from "clsx";
|
|
4
|
-
import { cardPlaceholder } from ".";
|
|
3
|
+
import { cardPlaceholder, type CardPlaceholderTheme } from ".";
|
|
5
4
|
import type { CardPlaceholderProps } from "../types";
|
|
5
|
+
import { cn } from "..";
|
|
6
|
+
import { getTheme } from "../theme/themeUtils";
|
|
6
7
|
|
|
7
8
|
let { size = "sm", class: className, ...restProps }: CardPlaceholderProps = $props();
|
|
8
9
|
|
|
10
|
+
const theme = getTheme("cardPlaceholder");
|
|
11
|
+
|
|
9
12
|
const { base, imageArea, imageIcon, line, footerArea } = $derived(cardPlaceholder({ size }));
|
|
10
13
|
</script>
|
|
11
14
|
|
|
12
|
-
<div role="status" {...restProps} class={
|
|
13
|
-
<div class={imageArea()}>
|
|
14
|
-
<svg width="48" height="48" class={imageIcon()} xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" viewBox="0 0 640 512">
|
|
15
|
+
<div role="status" {...restProps} class={cn(base(), clsx(className), (theme as CardPlaceholderTheme)?.base)}>
|
|
16
|
+
<div class={cn(imageArea(), (theme as CardPlaceholderTheme)?.imageArea)}>
|
|
17
|
+
<svg width="48" height="48" class={cn(imageIcon(), (theme as CardPlaceholderTheme)?.imageIcon)} xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" viewBox="0 0 640 512">
|
|
15
18
|
<path d="M480 80C480 35.82 515.8 0 560 0C604.2 0 640 35.82 640 80C640 124.2 604.2 160 560 160C515.8 160 480 124.2 480 80zM0 456.1C0 445.6 2.964 435.3 8.551 426.4L225.3 81.01C231.9 70.42 243.5 64 256 64C268.5 64 280.1 70.42 286.8 81.01L412.7 281.7L460.9 202.7C464.1 196.1 472.2 192 480 192C487.8 192 495 196.1 499.1 202.7L631.1 419.1C636.9 428.6 640 439.7 640 450.9C640 484.6 612.6 512 578.9 512H55.91C25.03 512 .0006 486.1 .0006 456.1L0 456.1z"></path>
|
|
16
19
|
</svg>
|
|
17
20
|
</div>
|
|
18
|
-
<div class={line({ class: "mb-4 h-2.5 w-1/2" })}></div>
|
|
19
|
-
<div class={line({ class: "mb-2.5 h-2" })}></div>
|
|
20
|
-
<div class={line({ class: "mb-2.5 h-2" })}></div>
|
|
21
|
-
<div class={line({ class: "h-2" })}></div>
|
|
22
|
-
<div class={footerArea()}>
|
|
23
|
-
<svg class={line({ class: "h-14 w-14" })} aria-hidden="true" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
21
|
+
<div class={cn(line({ class: "mb-4 h-2.5 w-1/2" }), (theme as CardPlaceholderTheme)?.line)}></div>
|
|
22
|
+
<div class={cn(line({ class: "mb-2.5 h-2" }), (theme as CardPlaceholderTheme)?.line)}></div>
|
|
23
|
+
<div class={cn(line({ class: "mb-2.5 h-2" }), (theme as CardPlaceholderTheme)?.line)}></div>
|
|
24
|
+
<div class={cn(line({ class: "h-2" }), (theme as CardPlaceholderTheme)?.line)}></div>
|
|
25
|
+
<div class={cn(footerArea(), (theme as CardPlaceholderTheme)?.footerArea)}>
|
|
26
|
+
<svg class={cn(line({ class: "h-14 w-14" }), (theme as CardPlaceholderTheme)?.line)} aria-hidden="true" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
24
27
|
<path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z" clip-rule="evenodd"></path>
|
|
25
28
|
</svg>
|
|
26
|
-
<div class={line({ class: "mb-2 h-2.5 w-32" })}></div>
|
|
27
|
-
<div class={line({ class: "mb-2 h-2 w-32" })}></div>
|
|
29
|
+
<div class={cn(line({ class: "mb-2 h-2.5 w-32" }), (theme as CardPlaceholderTheme)?.line)}></div>
|
|
30
|
+
<div class={cn(line({ class: "mb-2 h-2 w-32" }), (theme as CardPlaceholderTheme)?.line)}></div>
|
|
28
31
|
</div>
|
|
29
32
|
<span class="sr-only">Loading...</span>
|
|
30
33
|
</div>
|
|
@@ -33,7 +36,7 @@
|
|
|
33
36
|
@component
|
|
34
37
|
[Go to docs](https://flowbite-svelte.com/)
|
|
35
38
|
## Type
|
|
36
|
-
[CardPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
39
|
+
[CardPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1424)
|
|
37
40
|
## Props
|
|
38
41
|
@prop size = "sm"
|
|
39
42
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { CardPlaceholderProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [CardPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [CardPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1424)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop size = "sm"
|
|
8
8
|
* @prop class: className
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { twMerge } from "tailwind-merge";
|
|
3
2
|
import clsx from "clsx";
|
|
4
|
-
import { imagePlaceholder } from ".";
|
|
3
|
+
import { imagePlaceholder, type ImagePlaceholderTheme } from ".";
|
|
5
4
|
import type { ImagePlaceholderProps } from "../types";
|
|
5
|
+
import { cn } from "..";
|
|
6
|
+
import { getTheme } from "../theme/themeUtils";
|
|
6
7
|
|
|
7
8
|
let { size = "md", rounded, imgOnly = false, class: className, ...restProps }: ImagePlaceholderProps = $props();
|
|
8
9
|
|
|
10
|
+
const theme = getTheme("imagePlaceholder");
|
|
11
|
+
|
|
9
12
|
const { base, image, svg, content, line } = $derived(
|
|
10
13
|
imagePlaceholder({
|
|
11
14
|
size,
|
|
@@ -14,21 +17,21 @@
|
|
|
14
17
|
);
|
|
15
18
|
</script>
|
|
16
19
|
|
|
17
|
-
<div role="status" {...restProps} class={
|
|
18
|
-
<div class={image()}>
|
|
19
|
-
<svg width="48" height="48" class={svg()} xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" viewBox="0 0 640 512">
|
|
20
|
+
<div role="status" {...restProps} class={cn(base(), clsx(className), (theme as ImagePlaceholderTheme)?.base)}>
|
|
21
|
+
<div class={cn(image(), (theme as ImagePlaceholderTheme)?.image)}>
|
|
22
|
+
<svg width="48" height="48" class={cn(svg(), (theme as ImagePlaceholderTheme)?.svg)} xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" viewBox="0 0 640 512">
|
|
20
23
|
<path d="M480 80C480 35.82 515.8 0 560 0C604.2 0 640 35.82 640 80C640 124.2 604.2 160 560 160C515.8 160 480 124.2 480 80zM0 456.1C0 445.6 2.964 435.3 8.551 426.4L225.3 81.01C231.9 70.42 243.5 64 256 64C268.5 64 280.1 70.42 286.8 81.01L412.7 281.7L460.9 202.7C464.1 196.1 472.2 192 480 192C487.8 192 495 196.1 499.1 202.7L631.1 419.1C636.9 428.6 640 439.7 640 450.9C640 484.6 612.6 512 578.9 512H55.91C25.03 512 .0006 486.1 .0006 456.1L0 456.1z"></path>
|
|
21
24
|
</svg>
|
|
22
25
|
</div>
|
|
23
26
|
{#if !imgOnly}
|
|
24
|
-
<div class={content()}>
|
|
25
|
-
<div class={line({ class: "mb-4 h-2.5 w-1/2" })}></div>
|
|
26
|
-
<div class={line({ class: "mb-2.5 h-2 w-9/12" })}></div>
|
|
27
|
-
<div class={line({ class: "mb-2.5 h-2" })}></div>
|
|
28
|
-
<div class={line({ class: "mb-2.5 h-2" })}></div>
|
|
29
|
-
<div class={line({ class: "mb-2.5 h-2 w-10/12" })}></div>
|
|
30
|
-
<div class={line({ class: "mb-2.5 h-2 w-11/12" })}></div>
|
|
31
|
-
<div class={line({ class: "h-2 w-9/12" })}></div>
|
|
27
|
+
<div class={cn(content(), (theme as ImagePlaceholderTheme)?.content)}>
|
|
28
|
+
<div class={cn(line({ class: "mb-4 h-2.5 w-1/2" }), (theme as ImagePlaceholderTheme)?.line)}></div>
|
|
29
|
+
<div class={cn(line({ class: "mb-2.5 h-2 w-9/12" }), (theme as ImagePlaceholderTheme)?.line)}></div>
|
|
30
|
+
<div class={cn(line({ class: "mb-2.5 h-2" }), (theme as ImagePlaceholderTheme)?.line)}></div>
|
|
31
|
+
<div class={cn(line({ class: "mb-2.5 h-2" }), (theme as ImagePlaceholderTheme)?.line)}></div>
|
|
32
|
+
<div class={cn(line({ class: "mb-2.5 h-2 w-10/12" }), (theme as ImagePlaceholderTheme)?.line)}></div>
|
|
33
|
+
<div class={cn(line({ class: "mb-2.5 h-2 w-11/12" }), (theme as ImagePlaceholderTheme)?.line)}></div>
|
|
34
|
+
<div class={cn(line({ class: "h-2 w-9/12" }), (theme as ImagePlaceholderTheme)?.line)}></div>
|
|
32
35
|
</div>
|
|
33
36
|
{/if}
|
|
34
37
|
<span class="sr-only">Loading...</span>
|
|
@@ -38,7 +41,7 @@
|
|
|
38
41
|
@component
|
|
39
42
|
[Go to docs](https://flowbite-svelte.com/)
|
|
40
43
|
## Type
|
|
41
|
-
[ImagePlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
44
|
+
[ImagePlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1428)
|
|
42
45
|
## Props
|
|
43
46
|
@prop size = "md"
|
|
44
47
|
@prop rounded
|
|
@@ -2,7 +2,7 @@ import type { ImagePlaceholderProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ImagePlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ImagePlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1428)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop size = "md"
|
|
8
8
|
* @prop rounded
|
|
@@ -1,25 +1,28 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { twMerge } from "tailwind-merge";
|
|
3
2
|
import clsx from "clsx";
|
|
4
|
-
import { listPlaceholder } from ".";
|
|
3
|
+
import { listPlaceholder, type ListPlaceholderTheme } from ".";
|
|
5
4
|
import type { ListPlaceholderProps } from "../types";
|
|
5
|
+
import { cn } from "..";
|
|
6
|
+
import { getTheme } from "../theme/themeUtils";
|
|
6
7
|
|
|
7
8
|
let { itemNumber = 5, size = "md", rounded, class: className, ...restProps }: ListPlaceholderProps = $props();
|
|
8
9
|
|
|
10
|
+
const theme = getTheme("listPlaceholder");
|
|
11
|
+
|
|
9
12
|
const { base, item, itemContent, itemTitle, itemSubtitle, itemExtra } = $derived(listPlaceholder({ size, rounded }));
|
|
10
13
|
|
|
11
14
|
let items = $derived([...Array(itemNumber).keys()]);
|
|
12
15
|
</script>
|
|
13
16
|
|
|
14
|
-
<div role="status" {...restProps} class={
|
|
17
|
+
<div role="status" {...restProps} class={cn(base(), clsx(className), (theme as ListPlaceholderTheme)?.base)}>
|
|
15
18
|
<!-- eslint-disable-next-line @typescript-eslint/no-unused-vars -->
|
|
16
19
|
{#each items as _, i}
|
|
17
|
-
<div class={item({ class: i > 0 ? "pt-4" : "" })}>
|
|
18
|
-
<div class={itemContent()}>
|
|
19
|
-
<div class={itemTitle()}></div>
|
|
20
|
-
<div class={itemSubtitle()}></div>
|
|
20
|
+
<div class={cn(item({ class: i > 0 ? "pt-4" : "" }), (theme as ListPlaceholderTheme)?.item)}>
|
|
21
|
+
<div class={cn(itemContent(), (theme as ListPlaceholderTheme)?.itemContent)}>
|
|
22
|
+
<div class={cn(itemTitle(), (theme as ListPlaceholderTheme)?.itemTitle)}></div>
|
|
23
|
+
<div class={cn(itemSubtitle(), (theme as ListPlaceholderTheme)?.itemSubtitle)}></div>
|
|
21
24
|
</div>
|
|
22
|
-
<div class={itemExtra()}></div>
|
|
25
|
+
<div class={cn(itemExtra(), (theme as ListPlaceholderTheme)?.itemExtra)}></div>
|
|
23
26
|
</div>
|
|
24
27
|
{/each}
|
|
25
28
|
<span class="sr-only">Loading...</span>
|
|
@@ -29,7 +32,7 @@
|
|
|
29
32
|
@component
|
|
30
33
|
[Go to docs](https://flowbite-svelte.com/)
|
|
31
34
|
## Type
|
|
32
|
-
[ListPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
35
|
+
[ListPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1434)
|
|
33
36
|
## Props
|
|
34
37
|
@prop itemNumber = 5
|
|
35
38
|
@prop size = "md"
|
|
@@ -2,7 +2,7 @@ import type { ListPlaceholderProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ListPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ListPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1434)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop itemNumber = 5
|
|
8
8
|
* @prop size = "md"
|
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { twMerge } from "tailwind-merge";
|
|
3
2
|
import clsx from "clsx";
|
|
4
|
-
import { skeleton } from ".";
|
|
3
|
+
import { skeleton, type SkeletonTheme } from ".";
|
|
5
4
|
import type { SkeletonProps } from "../types";
|
|
5
|
+
import { cn } from "..";
|
|
6
|
+
import { getTheme } from "../theme/themeUtils";
|
|
6
7
|
|
|
7
8
|
let { size = "sm", class: className, ...restProps }: SkeletonProps = $props();
|
|
9
|
+
|
|
10
|
+
const theme = getTheme("skeleton");
|
|
11
|
+
|
|
8
12
|
const { wrapper, line } = $derived(skeleton({ size }));
|
|
9
13
|
</script>
|
|
10
14
|
|
|
11
|
-
<div role="status" {...restProps} class={
|
|
12
|
-
<div class={line({ class: "mb-4 h-2.5 w-1/2" })}></div>
|
|
13
|
-
<div class={line({ class: "mb-2.5 h-2 w-9/12" })}></div>
|
|
14
|
-
<div class={line({ class: "mb-2.5 h-2" })}></div>
|
|
15
|
-
<div class={line({ class: "mb-2.5 h-2" })}></div>
|
|
16
|
-
<div class={line({ class: "mb-2.5 h-2 w-10/12" })}></div>
|
|
17
|
-
<div class={line({ class: "mb-2.5 h-2 w-11/12" })}></div>
|
|
18
|
-
<div class={line({ class: "h-2 w-9/12" })}></div>
|
|
15
|
+
<div role="status" {...restProps} class={cn(wrapper(), clsx(className), (theme as SkeletonTheme)?.wrapper)}>
|
|
16
|
+
<div class={cn(line({ class: "mb-4 h-2.5 w-1/2" }), (theme as SkeletonTheme)?.line)}></div>
|
|
17
|
+
<div class={cn(line({ class: "mb-2.5 h-2 w-9/12" }), (theme as SkeletonTheme)?.line)}></div>
|
|
18
|
+
<div class={cn(line({ class: "mb-2.5 h-2" }), (theme as SkeletonTheme)?.line)}></div>
|
|
19
|
+
<div class={cn(line({ class: "mb-2.5 h-2" }), (theme as SkeletonTheme)?.line)}></div>
|
|
20
|
+
<div class={cn(line({ class: "mb-2.5 h-2 w-10/12" }), (theme as SkeletonTheme)?.line)}></div>
|
|
21
|
+
<div class={cn(line({ class: "mb-2.5 h-2 w-11/12" }), (theme as SkeletonTheme)?.line)}></div>
|
|
22
|
+
<div class={cn(line({ class: "h-2 w-9/12" }), (theme as SkeletonTheme)?.line)}></div>
|
|
19
23
|
<span class="sr-only">Loading...</span>
|
|
20
24
|
</div>
|
|
21
25
|
|
|
@@ -23,7 +27,7 @@
|
|
|
23
27
|
@component
|
|
24
28
|
[Go to docs](https://flowbite-svelte.com/)
|
|
25
29
|
## Type
|
|
26
|
-
[SkeletonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
30
|
+
[SkeletonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1440)
|
|
27
31
|
## Props
|
|
28
32
|
@prop size = "sm"
|
|
29
33
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { SkeletonProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SkeletonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SkeletonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1440)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop size = "sm"
|
|
8
8
|
* @prop class: className
|
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {
|
|
3
|
-
import { testimonialPlaceholder } from ".";
|
|
2
|
+
import { testimonialPlaceholder, type TestimonialPlaceholderTheme } from ".";
|
|
4
3
|
import clsx from "clsx";
|
|
5
4
|
import { type TestimonialPlaceholderProps } from "..";
|
|
5
|
+
import { cn } from "..";
|
|
6
|
+
import { getTheme } from "../theme/themeUtils";
|
|
6
7
|
|
|
7
8
|
let { class: className, ...restProps }: TestimonialPlaceholderProps = $props();
|
|
9
|
+
|
|
10
|
+
const theme = getTheme("testimonialPlaceholder");
|
|
11
|
+
|
|
8
12
|
const { wrapper, line1, line2, svg, subContent } = testimonialPlaceholder();
|
|
9
13
|
</script>
|
|
10
14
|
|
|
11
|
-
<div role="status" {...restProps} class={
|
|
12
|
-
<div class={line2({ class: "mx-auto mb-2.5 h-2.5 max-w-[640px]" })}></div>
|
|
13
|
-
<div class={line2({ class: "mx-auto h-2.5 max-w-[540px]" })}></div>
|
|
14
|
-
<div class={subContent()}>
|
|
15
|
-
<svg class={svg()} aria-hidden="true" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
15
|
+
<div role="status" {...restProps} class={cn(wrapper(), clsx(className), (theme as TestimonialPlaceholderTheme)?.wrapper)}>
|
|
16
|
+
<div class={cn(line2({ class: "mx-auto mb-2.5 h-2.5 max-w-[640px]" }), (theme as TestimonialPlaceholderTheme)?.line2)}></div>
|
|
17
|
+
<div class={cn(line2({ class: "mx-auto h-2.5 max-w-[540px]" }), (theme as TestimonialPlaceholderTheme)?.line2)}></div>
|
|
18
|
+
<div class={cn(subContent(), (theme as TestimonialPlaceholderTheme)?.subContent)}>
|
|
19
|
+
<svg class={cn(svg(), (theme as TestimonialPlaceholderTheme)?.svg)} aria-hidden="true" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
16
20
|
<path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z" clip-rule="evenodd"></path>
|
|
17
21
|
</svg>
|
|
18
|
-
<div class={line1({ class: "me-3 h-2.5 w-20" })}></div>
|
|
19
|
-
<div class={line1({ class: "h-2 w-24" })}></div>
|
|
22
|
+
<div class={cn(line1({ class: "me-3 h-2.5 w-20" }), (theme as TestimonialPlaceholderTheme)?.line1)}></div>
|
|
23
|
+
<div class={cn(line1({ class: "h-2 w-24" }), (theme as TestimonialPlaceholderTheme)?.line1)}></div>
|
|
20
24
|
</div>
|
|
21
25
|
<span class="sr-only">Loading...</span>
|
|
22
26
|
</div>
|
|
@@ -25,7 +29,7 @@
|
|
|
25
29
|
@component
|
|
26
30
|
[Go to docs](https://flowbite-svelte.com/)
|
|
27
31
|
## Type
|
|
28
|
-
[TestimonialPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
32
|
+
[TestimonialPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1444)
|
|
29
33
|
## Props
|
|
30
34
|
@prop class: className
|
|
31
35
|
@prop ...restProps
|
|
@@ -2,7 +2,7 @@ import { type TestimonialPlaceholderProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [TestimonialPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [TestimonialPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1444)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop class: className
|
|
8
8
|
* @prop ...restProps
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { twMerge } from "tailwind-merge";
|
|
3
2
|
import clsx from "clsx";
|
|
4
|
-
import { textPlaceholder } from ".";
|
|
3
|
+
import { textPlaceholder, type TextPlaceholderTheme } from ".";
|
|
5
4
|
import type { TextPlaceholderProps } from "../types";
|
|
5
|
+
import { cn } from "..";
|
|
6
|
+
import { getTheme } from "../theme/themeUtils";
|
|
6
7
|
|
|
7
8
|
let { size = "sm", class: className, ...restProps }: TextPlaceholderProps = $props();
|
|
9
|
+
|
|
10
|
+
const theme = getTheme("textPlaceholder");
|
|
11
|
+
|
|
8
12
|
const { baseWrapper, divWrapper, lineA, lineB } = $derived(
|
|
9
13
|
textPlaceholder({
|
|
10
14
|
size
|
|
@@ -12,36 +16,36 @@
|
|
|
12
16
|
);
|
|
13
17
|
</script>
|
|
14
18
|
|
|
15
|
-
<div role="status" {...restProps} class={
|
|
16
|
-
<div class={divWrapper({ class: "w-full" })}>
|
|
17
|
-
<div class={lineA({ class: "h-2.5 w-32" })}></div>
|
|
18
|
-
<div class={lineB({ class: "h-2.5 w-24" })}></div>
|
|
19
|
-
<div class={lineB({ class: "h-2.5 w-full" })}></div>
|
|
19
|
+
<div role="status" {...restProps} class={cn(baseWrapper(), clsx(className), (theme as TextPlaceholderTheme)?.baseWrapper)}>
|
|
20
|
+
<div class={cn(divWrapper({ class: "w-full" }), (theme as TextPlaceholderTheme)?.divWrapper)}>
|
|
21
|
+
<div class={cn(lineA({ class: "h-2.5 w-32" }), (theme as TextPlaceholderTheme)?.lineA)}></div>
|
|
22
|
+
<div class={cn(lineB({ class: "h-2.5 w-24" }), (theme as TextPlaceholderTheme)?.lineB)}></div>
|
|
23
|
+
<div class={cn(lineB({ class: "h-2.5 w-full" }), (theme as TextPlaceholderTheme)?.lineB)}></div>
|
|
20
24
|
</div>
|
|
21
|
-
<div class={divWrapper({ class: "w-11/12" })}>
|
|
22
|
-
<div class={lineA({ class: "h-2.5 w-full" })}></div>
|
|
23
|
-
<div class={lineB({ class: "h-2.5 w-full" })}></div>
|
|
24
|
-
<div class={lineB({ class: "h-2.5 w-24" })}></div>
|
|
25
|
+
<div class={cn(divWrapper({ class: "w-11/12" }), (theme as TextPlaceholderTheme)?.divWrapper)}>
|
|
26
|
+
<div class={cn(lineA({ class: "h-2.5 w-full" }), (theme as TextPlaceholderTheme)?.lineA)}></div>
|
|
27
|
+
<div class={cn(lineB({ class: "h-2.5 w-full" }), (theme as TextPlaceholderTheme)?.lineB)}></div>
|
|
28
|
+
<div class={cn(lineB({ class: "h-2.5 w-24" }), (theme as TextPlaceholderTheme)?.lineB)}></div>
|
|
25
29
|
</div>
|
|
26
|
-
<div class={divWrapper({ class: "w-9/12" })}>
|
|
27
|
-
<div class={lineB({ class: "h-2.5 w-full" })}></div>
|
|
28
|
-
<div class={lineA({ class: "h-2.5 w-80" })}></div>
|
|
29
|
-
<div class={lineB({ class: "h-2.5 w-full" })}></div>
|
|
30
|
+
<div class={cn(divWrapper({ class: "w-9/12" }), (theme as TextPlaceholderTheme)?.divWrapper)}>
|
|
31
|
+
<div class={cn(lineB({ class: "h-2.5 w-full" }), (theme as TextPlaceholderTheme)?.lineB)}></div>
|
|
32
|
+
<div class={cn(lineA({ class: "h-2.5 w-80" }), (theme as TextPlaceholderTheme)?.lineA)}></div>
|
|
33
|
+
<div class={cn(lineB({ class: "h-2.5 w-full" }), (theme as TextPlaceholderTheme)?.lineB)}></div>
|
|
30
34
|
</div>
|
|
31
|
-
<div class={divWrapper({ class: "w-11/12" })}>
|
|
32
|
-
<div class={lineA({ class: "h-2.5 w-full" })}></div>
|
|
33
|
-
<div class={lineB({ class: "h-2.5 w-full" })}></div>
|
|
34
|
-
<div class={lineB({ class: "h-2.5 w-24" })}></div>
|
|
35
|
+
<div class={cn(divWrapper({ class: "w-11/12" }), (theme as TextPlaceholderTheme)?.divWrapper)}>
|
|
36
|
+
<div class={cn(lineA({ class: "h-2.5 w-full" }), (theme as TextPlaceholderTheme)?.lineA)}></div>
|
|
37
|
+
<div class={cn(lineB({ class: "h-2.5 w-full" }), (theme as TextPlaceholderTheme)?.lineB)}></div>
|
|
38
|
+
<div class={cn(lineB({ class: "h-2.5 w-24" }), (theme as TextPlaceholderTheme)?.lineB)}></div>
|
|
35
39
|
</div>
|
|
36
|
-
<div class={divWrapper({ class: "w-10/12" })}>
|
|
37
|
-
<div class={lineB({ class: "h-2.5 w-32" })}></div>
|
|
38
|
-
<div class={lineB({ class: "h-2.5 w-24" })}></div>
|
|
39
|
-
<div class={lineA({ class: "h-2.5 w-full" })}></div>
|
|
40
|
+
<div class={cn(divWrapper({ class: "w-10/12" }), (theme as TextPlaceholderTheme)?.divWrapper)}>
|
|
41
|
+
<div class={cn(lineB({ class: "h-2.5 w-32" }), (theme as TextPlaceholderTheme)?.lineB)}></div>
|
|
42
|
+
<div class={cn(lineB({ class: "h-2.5 w-24" }), (theme as TextPlaceholderTheme)?.lineB)}></div>
|
|
43
|
+
<div class={cn(lineA({ class: "h-2.5 w-full" }), (theme as TextPlaceholderTheme)?.lineA)}></div>
|
|
40
44
|
</div>
|
|
41
|
-
<div class={divWrapper({ class: "w-8/12" })}>
|
|
42
|
-
<div class={lineB({ class: "h-2.5 w-full" })}></div>
|
|
43
|
-
<div class={lineA({ class: "h-2.5 w-80" })}></div>
|
|
44
|
-
<div class={lineB({ class: "h-2.5 w-full" })}></div>
|
|
45
|
+
<div class={cn(divWrapper({ class: "w-8/12" }), (theme as TextPlaceholderTheme)?.divWrapper)}>
|
|
46
|
+
<div class={cn(lineB({ class: "h-2.5 w-full" }), (theme as TextPlaceholderTheme)?.lineB)}></div>
|
|
47
|
+
<div class={cn(lineA({ class: "h-2.5 w-80" }), (theme as TextPlaceholderTheme)?.lineA)}></div>
|
|
48
|
+
<div class={cn(lineB({ class: "h-2.5 w-full" }), (theme as TextPlaceholderTheme)?.lineB)}></div>
|
|
45
49
|
</div>
|
|
46
50
|
<span class="sr-only">Loading...</span>
|
|
47
51
|
</div>
|
|
@@ -50,7 +54,7 @@
|
|
|
50
54
|
@component
|
|
51
55
|
[Go to docs](https://flowbite-svelte.com/)
|
|
52
56
|
## Type
|
|
53
|
-
[TextPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
57
|
+
[TextPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1446)
|
|
54
58
|
## Props
|
|
55
59
|
@prop size = "sm"
|
|
56
60
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { TextPlaceholderProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [TextPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [TextPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1446)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop size = "sm"
|
|
8
8
|
* @prop class: className
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { twMerge } from "tailwind-merge";
|
|
3
2
|
import clsx from "clsx";
|
|
4
3
|
import { videoPlaceholder } from ".";
|
|
5
4
|
import type { VideoPlaceholderProps } from "../types";
|
|
5
|
+
import { cn } from "..";
|
|
6
|
+
import { getTheme } from "../theme/themeUtils";
|
|
6
7
|
|
|
7
8
|
let { size = "sm", class: className }: VideoPlaceholderProps = $props();
|
|
9
|
+
|
|
10
|
+
const theme = getTheme("videoPlaceholder");
|
|
11
|
+
|
|
8
12
|
const base = $derived(videoPlaceholder({ size }));
|
|
9
13
|
</script>
|
|
10
14
|
|
|
11
|
-
<div role="status" class={
|
|
15
|
+
<div role="status" class={cn(base, clsx(className), theme)}>
|
|
12
16
|
<svg width="48" height="48" class="text-gray-200 dark:text-gray-600" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" viewBox="0 0 384 512">
|
|
13
17
|
<path d="M361 215C375.3 223.8 384 239.3 384 256C384 272.7 375.3 288.2 361 296.1L73.03 472.1C58.21 482 39.66 482.4 24.52 473.9C9.377 465.4 0 449.4 0 432V80C0 62.64 9.377 46.63 24.52 38.13C39.66 29.64 58.21 29.99 73.03 39.04L361 215z"></path>
|
|
14
18
|
</svg>
|
|
@@ -19,7 +23,7 @@
|
|
|
19
23
|
@component
|
|
20
24
|
[Go to docs](https://flowbite-svelte.com/)
|
|
21
25
|
## Type
|
|
22
|
-
[VideoPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
26
|
+
[VideoPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1450)
|
|
23
27
|
## Props
|
|
24
28
|
@prop size = "sm"
|
|
25
29
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { VideoPlaceholderProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [VideoPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [VideoPlaceholderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1450)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop size = "sm"
|
|
8
8
|
* @prop class: className
|