flowbite-svelte 0.44.8 → 0.44.10
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/.env +2 -0
- package/.eslintrc.cjs +20 -0
- package/.github/ISSUE_TEMPLATE/bug_report.yml +33 -0
- package/.github/ISSUE_TEMPLATE/config.yml +5 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +17 -0
- package/.github/pull_request_template.md +71 -0
- package/.github/workflows/playwright-and-lint.yaml +47 -0
- package/.prettierignore +16 -0
- package/.prettierrc +9 -0
- package/CHANGELOG.md +3858 -0
- package/CONTRIBUTING.md +66 -0
- package/dist/bottom-nav/BottomNavItem.svelte +3 -1
- package/dist/bottom-nav/BottomNavItem.svelte.d.ts +2 -0
- package/dist/bottom-nav/BottomNavItem.svelte.d.ts.map +1 -1
- package/dist/carousels/Carousel.svelte +52 -153
- package/dist/carousels/Carousel.svelte.d.ts +22 -37
- package/dist/carousels/Carousel.svelte.d.ts.map +1 -1
- package/dist/carousels/ControlButton.svelte +31 -0
- package/dist/carousels/ControlButton.svelte.d.ts +29 -0
- package/dist/carousels/ControlButton.svelte.d.ts.map +1 -0
- package/dist/carousels/Controls.svelte +17 -0
- package/dist/carousels/Controls.svelte.d.ts +23 -0
- package/dist/carousels/Controls.svelte.d.ts.map +1 -0
- package/dist/carousels/Indicators.svelte +26 -0
- package/dist/carousels/Indicators.svelte.d.ts +32 -0
- package/dist/carousels/Indicators.svelte.d.ts.map +1 -0
- package/dist/carousels/Thumbnail.svelte +6 -23
- package/dist/carousels/Thumbnail.svelte.d.ts +5 -16
- package/dist/carousels/Thumbnail.svelte.d.ts.map +1 -1
- package/dist/carousels/Thumbnails.svelte +26 -0
- package/dist/carousels/Thumbnails.svelte.d.ts +33 -0
- package/dist/carousels/Thumbnails.svelte.d.ts.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/tables/TableSearch.svelte +2 -2
- package/dist/tables/TableSearch.svelte.d.ts +1 -1
- package/mdsvex.config.js +18 -0
- package/package.json +18 -80
- package/playwright.config.ts +12 -0
- package/postcss.config.cjs +12 -0
- package/src/app.css +45 -0
- package/src/app.d.ts +9 -0
- package/src/app.html +28 -0
- package/src/app.postcss +55 -0
- package/src/hooks.server.js +27 -0
- package/src/lib/accordion/Accordion.svelte +61 -0
- package/src/lib/accordion/AccordionItem.svelte +120 -0
- package/src/lib/alerts/Alert.svelte +60 -0
- package/src/lib/avatar/Avatar.svelte +56 -0
- package/src/lib/avatar/Placeholder.svelte +16 -0
- package/src/lib/badges/Badge.svelte +108 -0
- package/src/lib/banner/Banner.svelte +64 -0
- package/src/lib/bottom-nav/BottomNav.svelte +76 -0
- package/src/lib/bottom-nav/BottomNavHeader.svelte +19 -0
- package/src/lib/bottom-nav/BottomNavHeaderItem.svelte +23 -0
- package/src/lib/bottom-nav/BottomNavItem.svelte +76 -0
- package/src/lib/breadcrumbs/Breadcrumb.svelte +25 -0
- package/src/lib/breadcrumbs/BreadcrumbItem.svelte +51 -0
- package/src/lib/buttongroups/ButtonGroup.svelte +22 -0
- package/src/lib/buttons/Button.svelte +100 -0
- package/src/lib/buttons/GradientButton.svelte +79 -0
- package/src/lib/cards/Card.svelte +70 -0
- package/src/lib/carousels/Carousel.svelte +166 -0
- package/src/lib/carousels/ControlButton.svelte +34 -0
- package/src/lib/carousels/Controls.svelte +21 -0
- package/src/lib/carousels/Indicators.svelte +31 -0
- package/src/lib/carousels/Thumbnail.svelte +20 -0
- package/src/lib/carousels/Thumbnails.svelte +30 -0
- package/src/lib/charts/Chart.svelte +35 -0
- package/src/lib/darkmode/DarkMode.svelte +58 -0
- package/src/lib/datepicker/Calender.svelte +3 -0
- package/src/lib/datepicker/Datepicker.svelte +66 -0
- package/src/lib/device-mockup/Android.svelte +24 -0
- package/src/lib/device-mockup/DefaultMockup.svelte +21 -0
- package/src/lib/device-mockup/DeviceMockup.svelte +235 -0
- package/src/lib/device-mockup/Ios.svelte +21 -0
- package/src/lib/device-mockup/Smartwatch.svelte +15 -0
- package/src/lib/device-mockup/Tablet.svelte +21 -0
- package/src/lib/drawer/Drawer.svelte +87 -0
- package/src/lib/dropdowns/Dropdown.svelte +81 -0
- package/src/lib/dropdowns/DropdownDivider.svelte +13 -0
- package/src/lib/dropdowns/DropdownHeader.svelte +21 -0
- package/src/lib/dropdowns/DropdownItem.svelte +47 -0
- package/src/lib/footer/Footer.svelte +18 -0
- package/src/lib/footer/FooterBrand.svelte +39 -0
- package/src/lib/footer/FooterCopyright.svelte +38 -0
- package/src/lib/footer/FooterIcon.svelte +25 -0
- package/src/lib/footer/FooterLink.svelte +26 -0
- package/src/lib/footer/FooterLinkGroup.svelte +15 -0
- package/src/lib/forms/Checkbox.svelte +70 -0
- package/src/lib/forms/Dropzone.svelte +32 -0
- package/src/lib/forms/Fileupload.svelte +21 -0
- package/src/lib/forms/FloatingLabelInput.svelte +94 -0
- package/src/lib/forms/Helper.svelte +23 -0
- package/src/lib/forms/Input.svelte +83 -0
- package/src/lib/forms/InputAddon.svelte +47 -0
- package/src/lib/forms/Label.svelte +40 -0
- package/src/lib/forms/MultiSelect.svelte +126 -0
- package/src/lib/forms/NumberInput.svelte +16 -0
- package/src/lib/forms/Radio.svelte +53 -0
- package/src/lib/forms/RadioInline.svelte +9 -0
- package/src/lib/forms/Range.svelte +24 -0
- package/src/lib/forms/Search.svelte +44 -0
- package/src/lib/forms/Select.svelte +49 -0
- package/src/lib/forms/Textarea.svelte +51 -0
- package/src/lib/forms/Toggle.svelte +56 -0
- package/src/lib/forms/VoiceSearch.svelte +57 -0
- package/src/lib/gallery/Gallery.svelte +31 -0
- package/src/lib/index.ts +225 -0
- package/src/lib/indicators/Indicator.svelte +86 -0
- package/src/lib/kbd/ArrowKeyDown.svelte +15 -0
- package/src/lib/kbd/ArrowKeyLeft.svelte +15 -0
- package/src/lib/kbd/ArrowKeyRight.svelte +15 -0
- package/src/lib/kbd/ArrowKeyUp.svelte +15 -0
- package/src/lib/kbd/Kbd.svelte +15 -0
- package/src/lib/list-group/Listgroup.svelte +45 -0
- package/src/lib/list-group/ListgroupItem.svelte +57 -0
- package/src/lib/megamenu/MegaMenu.svelte +52 -0
- package/src/lib/modals/Modal.svelte +162 -0
- package/src/lib/navbar/Menu.svelte +38 -0
- package/src/lib/navbar/NavBrand.svelte +15 -0
- package/src/lib/navbar/NavHamburger.svelte +20 -0
- package/src/lib/navbar/NavLi.svelte +37 -0
- package/src/lib/navbar/NavSidebarHamburger.svelte +20 -0
- package/src/lib/navbar/NavUl.svelte +68 -0
- package/src/lib/navbar/Navbar.svelte +42 -0
- package/src/lib/navbar/SidebarMenu.svelte +37 -0
- package/src/lib/paginations/Pagination.svelte +59 -0
- package/src/lib/paginations/PaginationItem.svelte +40 -0
- package/src/lib/popover/Popover.svelte +34 -0
- package/src/lib/progressbars/Progressbar.svelte +52 -0
- package/src/lib/ratings/AdvancedRating.svelte +45 -0
- package/src/lib/ratings/Heart.svelte +39 -0
- package/src/lib/ratings/Rating.svelte +57 -0
- package/src/lib/ratings/RatingComment.svelte +85 -0
- package/src/lib/ratings/Review.svelte +78 -0
- package/src/lib/ratings/ScoreRating.svelte +76 -0
- package/src/lib/ratings/Star.svelte +47 -0
- package/src/lib/ratings/Thumbup.svelte +39 -0
- package/src/lib/sidebars/Sidebar.svelte +40 -0
- package/src/lib/sidebars/SidebarBrand.svelte +24 -0
- package/src/lib/sidebars/SidebarCta.svelte +28 -0
- package/src/lib/sidebars/SidebarDropdownItem.svelte +26 -0
- package/src/lib/sidebars/SidebarDropdownWrapper.svelte +71 -0
- package/src/lib/sidebars/SidebarGroup.svelte +24 -0
- package/src/lib/sidebars/SidebarItem.svelte +49 -0
- package/src/lib/sidebars/SidebarWrapper.svelte +16 -0
- package/src/lib/skeleton/CardPlaceholder.svelte +48 -0
- package/src/lib/skeleton/ImagePlaceholder.svelte +31 -0
- package/src/lib/skeleton/ListPlaceholder.svelte +50 -0
- package/src/lib/skeleton/Skeleton.svelte +38 -0
- package/src/lib/skeleton/TestimonialPlaceholder.svelte +24 -0
- package/src/lib/skeleton/TextPlaceholder.svelte +60 -0
- package/src/lib/skeleton/VideoPlaceholder.svelte +33 -0
- package/src/lib/skeleton/WidgetPlaceholder.svelte +26 -0
- package/src/lib/speed-dial/SpeedDial.svelte +80 -0
- package/src/lib/speed-dial/SpeedDialButton.svelte +49 -0
- package/src/lib/spinners/Spinner.svelte +49 -0
- package/src/lib/steps/StepIndicator.svelte +75 -0
- package/src/lib/tables/Table.svelte +49 -0
- package/src/lib/tables/TableBody.svelte +14 -0
- package/src/lib/tables/TableBodyCell.svelte +22 -0
- package/src/lib/tables/TableBodyRow.svelte +50 -0
- package/src/lib/tables/TableHead.svelte +45 -0
- package/src/lib/tables/TableHeadCell.svelte +15 -0
- package/src/lib/tables/TableSearch.svelte +73 -0
- package/src/lib/tabs/TabItem.svelte +61 -0
- package/src/lib/tabs/Tabs.svelte +78 -0
- package/src/lib/timeline/Activity.svelte +16 -0
- package/src/lib/timeline/ActivityItem.svelte +59 -0
- package/src/lib/timeline/Group.svelte +27 -0
- package/src/lib/timeline/GroupItem.svelte +59 -0
- package/src/lib/timeline/Timeline.svelte +25 -0
- package/src/lib/timeline/TimelineHorizontal.svelte +17 -0
- package/src/lib/timeline/TimelineItem.svelte +116 -0
- package/src/lib/timeline/TimelineItemHorizontal.svelte +72 -0
- package/src/lib/timeline/TimelineItemVertical.svelte +44 -0
- package/src/lib/toasts/Toast.svelte +99 -0
- package/src/lib/toolbar/Toolbar.svelte +52 -0
- package/src/lib/toolbar/ToolbarButton.svelte +67 -0
- package/src/lib/toolbar/ToolbarGroup.svelte +20 -0
- package/src/lib/tooltips/Tooltip.svelte +42 -0
- package/src/lib/types.ts +163 -0
- package/src/lib/typography/A.svelte +20 -0
- package/src/lib/typography/Blockquote.svelte +51 -0
- package/src/lib/typography/DescriptionList.svelte +22 -0
- package/src/lib/typography/Heading.svelte +28 -0
- package/src/lib/typography/Hr.svelte +37 -0
- package/src/lib/typography/Img.svelte +39 -0
- package/src/lib/typography/Layout.svelte +21 -0
- package/src/lib/typography/Li.svelte +19 -0
- package/src/lib/typography/List.svelte +33 -0
- package/src/lib/typography/Mark.svelte +20 -0
- package/src/lib/typography/P.svelte +102 -0
- package/src/lib/typography/Secondary.svelte +18 -0
- package/src/lib/typography/Span.svelte +35 -0
- package/src/lib/utils/CloseButton.svelte +19 -0
- package/src/lib/utils/Frame.svelte +142 -0
- package/src/lib/utils/Popper.svelte +206 -0
- package/src/lib/utils/Wrapper.svelte +22 -0
- package/src/lib/utils/backdrop.ts +101 -0
- package/src/lib/utils/clickOutside.ts +16 -0
- package/src/lib/utils/createEventDispatcher.ts +24 -0
- package/src/lib/utils/focusTrap.js +42 -0
- package/src/lib/utils/generateId.js +5 -0
- package/src/lib/video/Video.svelte +29 -0
- package/src/routes/+error.svelte +5 -0
- package/src/routes/+layout.svelte +98 -0
- package/src/routes/+page.server.ts +18 -0
- package/src/routes/+page.svelte +55 -0
- package/src/routes/api/posts/+server.js +7 -0
- package/src/routes/component-data/A.json +10 -0
- package/src/routes/component-data/Accordion.json +12 -0
- package/src/routes/component-data/AccordionItem.json +23 -0
- package/src/routes/component-data/Activity.json +1 -0
- package/src/routes/component-data/ActivityItem.json +16 -0
- package/src/routes/component-data/AdvancedRating.json +13 -0
- package/src/routes/component-data/Alert.json +9 -0
- package/src/routes/component-data/Android.json +12 -0
- package/src/routes/component-data/ArrowKeyDown.json +1 -0
- package/src/routes/component-data/ArrowKeyLeft.json +1 -0
- package/src/routes/component-data/ArrowKeyRight.json +1 -0
- package/src/routes/component-data/ArrowKeyUp.json +1 -0
- package/src/routes/component-data/Avatar.json +15 -0
- package/src/routes/component-data/Badge.json +10 -0
- package/src/routes/component-data/Banner.json +12 -0
- package/src/routes/component-data/Blockquote.json +15 -0
- package/src/routes/component-data/BottomNav.json +13 -0
- package/src/routes/component-data/BottomNavHeader.json +9 -0
- package/src/routes/component-data/BottomNavHeaderItem.json +11 -0
- package/src/routes/component-data/BottomNavItem.json +12 -0
- package/src/routes/component-data/Breadcrumb.json +11 -0
- package/src/routes/component-data/BreadcrumbItem.json +12 -0
- package/src/routes/component-data/Button.json +14 -0
- package/src/routes/component-data/ButtonGroup.json +9 -0
- package/src/routes/component-data/Calender.json +1 -0
- package/src/routes/component-data/Card.json +13 -0
- package/src/routes/component-data/CardPlaceholder.json +9 -0
- package/src/routes/component-data/Carousel.json +11 -0
- package/src/routes/component-data/Chart.json +1 -0
- package/src/routes/component-data/Checkbox.json +14 -0
- package/src/routes/component-data/CloseButton.json +1 -0
- package/src/routes/component-data/ControlButton.json +9 -0
- package/src/routes/component-data/Controls.json +1 -0
- package/src/routes/component-data/DarkMode.json +9 -0
- package/src/routes/component-data/Datepicker.json +14 -0
- package/src/routes/component-data/DefaultMockup.json +11 -0
- package/src/routes/component-data/DescriptionList.json +10 -0
- package/src/routes/component-data/DeviceMockup.json +50 -0
- package/src/routes/component-data/Drawer.json +23 -0
- package/src/routes/component-data/Dropdown.json +13 -0
- package/src/routes/component-data/DropdownDivider.json +1 -0
- package/src/routes/component-data/DropdownHeader.json +9 -0
- package/src/routes/component-data/DropdownItem.json +10 -0
- package/src/routes/component-data/Dropzone.json +10 -0
- package/src/routes/component-data/Fileupload.json +10 -0
- package/src/routes/component-data/FloatingLabelInput.json +14 -0
- package/src/routes/component-data/Footer.json +1 -0
- package/src/routes/component-data/FooterBrand.json +15 -0
- package/src/routes/component-data/FooterCopyright.json +14 -0
- package/src/routes/component-data/FooterIcon.json +11 -0
- package/src/routes/component-data/FooterLink.json +11 -0
- package/src/routes/component-data/FooterLinkGroup.json +1 -0
- package/src/routes/component-data/Frame.json +18 -0
- package/src/routes/component-data/Gallery.json +9 -0
- package/src/routes/component-data/GradientButton.json +9 -0
- package/src/routes/component-data/Group.json +11 -0
- package/src/routes/component-data/GroupItem.json +13 -0
- package/src/routes/component-data/Heading.json +10 -0
- package/src/routes/component-data/Heart.json +14 -0
- package/src/routes/component-data/Helper.json +9 -0
- package/src/routes/component-data/Hr.json +13 -0
- package/src/routes/component-data/ImagePlaceholder.json +9 -0
- package/src/routes/component-data/Img.json +17 -0
- package/src/routes/component-data/Indicator.json +13 -0
- package/src/routes/component-data/Indicators.json +9 -0
- package/src/routes/component-data/Input.json +13 -0
- package/src/routes/component-data/InputAddon.json +1 -0
- package/src/routes/component-data/Ios.json +11 -0
- package/src/routes/component-data/Kbd.json +1 -0
- package/src/routes/component-data/Label.json +10 -0
- package/src/routes/component-data/Layout.json +10 -0
- package/src/routes/component-data/Li.json +9 -0
- package/src/routes/component-data/List.json +10 -0
- package/src/routes/component-data/ListPlaceholder.json +1 -0
- package/src/routes/component-data/Listgroup.json +10 -0
- package/src/routes/component-data/ListgroupItem.json +17 -0
- package/src/routes/component-data/Mark.json +10 -0
- package/src/routes/component-data/MegaMenu.json +11 -0
- package/src/routes/component-data/Menu.json +11 -0
- package/src/routes/component-data/Modal.json +17 -0
- package/src/routes/component-data/MultiSelect.json +11 -0
- package/src/routes/component-data/NavBrand.json +1 -0
- package/src/routes/component-data/NavHamburger.json +9 -0
- package/src/routes/component-data/NavLi.json +10 -0
- package/src/routes/component-data/NavSidebarHamburger.json +9 -0
- package/src/routes/component-data/NavUl.json +14 -0
- package/src/routes/component-data/Navbar.json +10 -0
- package/src/routes/component-data/NumberInput.json +1 -0
- package/src/routes/component-data/P.json +19 -0
- package/src/routes/component-data/Pagination.json +13 -0
- package/src/routes/component-data/PaginationItem.json +12 -0
- package/src/routes/component-data/Placeholder.json +1 -0
- package/src/routes/component-data/Popover.json +9 -0
- package/src/routes/component-data/Popper.json +17 -0
- package/src/routes/component-data/Progressbar.json +14 -0
- package/src/routes/component-data/Radio.json +13 -0
- package/src/routes/component-data/RadioInline.json +1 -0
- package/src/routes/component-data/Range.json +9 -0
- package/src/routes/component-data/Rating.json +14 -0
- package/src/routes/component-data/RatingComment.json +10 -0
- package/src/routes/component-data/Review.json +13 -0
- package/src/routes/component-data/ScoreRating.json +13 -0
- package/src/routes/component-data/Search.json +10 -0
- package/src/routes/component-data/Secondary.json +9 -0
- package/src/routes/component-data/Select.json +14 -0
- package/src/routes/component-data/Sidebar.json +11 -0
- package/src/routes/component-data/SidebarBrand.json +11 -0
- package/src/routes/component-data/SidebarCta.json +11 -0
- package/src/routes/component-data/SidebarDropdownItem.json +12 -0
- package/src/routes/component-data/SidebarDropdownWrapper.json +14 -0
- package/src/routes/component-data/SidebarGroup.json +10 -0
- package/src/routes/component-data/SidebarItem.json +12 -0
- package/src/routes/component-data/SidebarMenu.json +11 -0
- package/src/routes/component-data/SidebarWrapper.json +1 -0
- package/src/routes/component-data/Skeleton.json +9 -0
- package/src/routes/component-data/Smartwatch.json +9 -0
- package/src/routes/component-data/Span.json +16 -0
- package/src/routes/component-data/SpeedDial.json +18 -0
- package/src/routes/component-data/SpeedDialButton.json +14 -0
- package/src/routes/component-data/Spinner.json +13 -0
- package/src/routes/component-data/Star.json +14 -0
- package/src/routes/component-data/StepIndicator.json +15 -0
- package/src/routes/component-data/TabItem.json +12 -0
- package/src/routes/component-data/Table.json +14 -0
- package/src/routes/component-data/TableBody.json +1 -0
- package/src/routes/component-data/TableBodyCell.json +1 -0
- package/src/routes/component-data/TableBodyRow.json +1 -0
- package/src/routes/component-data/TableHead.json +9 -0
- package/src/routes/component-data/TableHeadCell.json +1 -0
- package/src/routes/component-data/TableSearch.json +19 -0
- package/src/routes/component-data/Tablet.json +11 -0
- package/src/routes/component-data/Tabs.json +13 -0
- package/src/routes/component-data/TestimonialPlaceholder.json +1 -0
- package/src/routes/component-data/TextPlaceholder.json +9 -0
- package/src/routes/component-data/Textarea.json +11 -0
- package/src/routes/component-data/Thumbnail.json +10 -0
- package/src/routes/component-data/Thumbnails.json +9 -0
- package/src/routes/component-data/Thumbup.json +14 -0
- package/src/routes/component-data/Timeline.json +1 -0
- package/src/routes/component-data/TimelineHorizontal.json +1 -0
- package/src/routes/component-data/TimelineItem.json +10 -0
- package/src/routes/component-data/TimelineItemHorizontal.json +19 -0
- package/src/routes/component-data/TimelineItemVertical.json +13 -0
- package/src/routes/component-data/Toast.json +15 -0
- package/src/routes/component-data/Toggle.json +12 -0
- package/src/routes/component-data/Toolbar.json +9 -0
- package/src/routes/component-data/ToolbarButton.json +12 -0
- package/src/routes/component-data/ToolbarGroup.json +1 -0
- package/src/routes/component-data/Tooltip.json +9 -0
- package/src/routes/component-data/Video.json +12 -0
- package/src/routes/component-data/VideoPlaceholder.json +9 -0
- package/src/routes/component-data/VoiceSearch.json +16 -0
- package/src/routes/component-data/WidgetPlaceholder.json +1 -0
- package/src/routes/component-data/Wrapper.json +10 -0
- package/src/routes/component-data/backdrop.json +9 -0
- package/src/routes/component-data/clickOutside.json +1 -0
- package/src/routes/component-data/createEventDispatcher.json +1 -0
- package/src/routes/component-data/focusTrap.json +1 -0
- package/src/routes/component-data/generateId.json +1 -0
- package/src/routes/component-data/index.json +1 -0
- package/src/routes/component-data/types.json +1 -0
- package/src/routes/docs/+layout.js +10 -0
- package/src/routes/docs/+layout.svelte +74 -0
- package/src/routes/docs/components/[slug]/+page.js +13 -0
- package/src/routes/docs/components/[slug]/+page.svelte +6 -0
- package/src/routes/docs/components/accordion.md +315 -0
- package/src/routes/docs/components/alert.md +342 -0
- package/src/routes/docs/components/avatar.md +215 -0
- package/src/routes/docs/components/badge.md +269 -0
- package/src/routes/docs/components/banner.md +166 -0
- package/src/routes/docs/components/bottom-navigation.md +397 -0
- package/src/routes/docs/components/breadcrumb.md +112 -0
- package/src/routes/docs/components/button-group.md +198 -0
- package/src/routes/docs/components/button.md +314 -0
- package/src/routes/docs/components/card.md +423 -0
- package/src/routes/docs/components/carousel.md +242 -0
- package/src/routes/docs/components/darkmode.md +111 -0
- package/src/routes/docs/components/device-mockups.md +212 -0
- package/src/routes/docs/components/drawer.md +638 -0
- package/src/routes/docs/components/dropdown.md +748 -0
- package/src/routes/docs/components/footer.md +268 -0
- package/src/routes/docs/components/forms.md +254 -0
- package/src/routes/docs/components/gallery.md +230 -0
- package/src/routes/docs/components/imageData/+server.js +43 -0
- package/src/routes/docs/components/indicators.md +273 -0
- package/src/routes/docs/components/kbd.md +248 -0
- package/src/routes/docs/components/list-group.md +157 -0
- package/src/routes/docs/components/mega-menu.md +298 -0
- package/src/routes/docs/components/modal.md +413 -0
- package/src/routes/docs/components/navbar.md +342 -0
- package/src/routes/docs/components/pagination.md +350 -0
- package/src/routes/docs/components/popover.md +388 -0
- package/src/routes/docs/components/progress.md +170 -0
- package/src/routes/docs/components/rating.md +326 -0
- package/src/routes/docs/components/sidebar.md +568 -0
- package/src/routes/docs/components/skeleton.md +165 -0
- package/src/routes/docs/components/speed-dial.md +523 -0
- package/src/routes/docs/components/spinner.md +117 -0
- package/src/routes/docs/components/tab.md +341 -0
- package/src/routes/docs/components/table.md +871 -0
- package/src/routes/docs/components/timeline.md +267 -0
- package/src/routes/docs/components/toast.md +362 -0
- package/src/routes/docs/components/tooltip.md +156 -0
- package/src/routes/docs/components/typography.md +158 -0
- package/src/routes/docs/components/video.md +125 -0
- package/src/routes/docs/examples/[slug]/+page.js +13 -0
- package/src/routes/docs/examples/[slug]/+page.svelte +6 -0
- package/src/routes/docs/examples/sidebar-layout.md +20 -0
- package/src/routes/docs/examples/snapshot.md +59 -0
- package/src/routes/docs/examples/testsnap.svelte +49 -0
- package/src/routes/docs/experimental/[slug]/+page.js +13 -0
- package/src/routes/docs/experimental/[slug]/+page.svelte +6 -0
- package/src/routes/docs/experimental/datepicker.md +131 -0
- package/src/routes/docs/extend/CheckCircle.svelte +3 -0
- package/src/routes/docs/extend/[slug]/+page.js +13 -0
- package/src/routes/docs/extend/[slug]/+page.svelte +6 -0
- package/src/routes/docs/extend/flowbite-svelte-blocks.md +28 -0
- package/src/routes/docs/extend/flowbite-svelte-starter.md +34 -0
- package/src/routes/docs/extend/icons.md +204 -0
- package/src/routes/docs/extend/step-indicator.md +162 -0
- package/src/routes/docs/forms/[slug]/+page.js +13 -0
- package/src/routes/docs/forms/[slug]/+page.svelte +6 -0
- package/src/routes/docs/forms/checkbox.md +329 -0
- package/src/routes/docs/forms/file-input.md +171 -0
- package/src/routes/docs/forms/floating-label.md +176 -0
- package/src/routes/docs/forms/input-field.md +398 -0
- package/src/routes/docs/forms/radio.md +303 -0
- package/src/routes/docs/forms/range.md +110 -0
- package/src/routes/docs/forms/search-input.md +133 -0
- package/src/routes/docs/forms/select.md +280 -0
- package/src/routes/docs/forms/textarea.md +142 -0
- package/src/routes/docs/forms/toggle.md +86 -0
- package/src/routes/docs/pages/[slug]/+page.js +13 -0
- package/src/routes/docs/pages/[slug]/+page.svelte +6 -0
- package/src/routes/docs/pages/colors.md +152 -0
- package/src/routes/docs/pages/compiler-speed.md +116 -0
- package/src/routes/docs/pages/customization.md +103 -0
- package/src/routes/docs/pages/how-to-contribute.md +138 -0
- package/src/routes/docs/pages/ide-support.md +19 -0
- package/src/routes/docs/pages/introduction.md +131 -0
- package/src/routes/docs/pages/license.md +22 -0
- package/src/routes/docs/pages/quickstart.md +128 -0
- package/src/routes/docs/pages/typescript.md +25 -0
- package/src/routes/docs/plugins/[slug]/+page.js +13 -0
- package/src/routes/docs/plugins/[slug]/+page.svelte +6 -0
- package/src/routes/docs/plugins/charts.md +990 -0
- package/src/routes/docs/typography/[slug]/+page.js +13 -0
- package/src/routes/docs/typography/[slug]/+page.svelte +6 -0
- package/src/routes/docs/typography/blockquote.md +214 -0
- package/src/routes/docs/typography/heading.md +270 -0
- package/src/routes/docs/typography/hr.md +115 -0
- package/src/routes/docs/typography/image.md +244 -0
- package/src/routes/docs/typography/link.md +147 -0
- package/src/routes/docs/typography/list.md +358 -0
- package/src/routes/docs/typography/paragraph.md +265 -0
- package/src/routes/docs/typography/text.md +340 -0
- package/src/routes/docs/utilities/[slug]/+page.js +13 -0
- package/src/routes/docs/utilities/[slug]/+page.svelte +6 -0
- package/src/routes/docs/utilities/close-button.md +42 -0
- package/src/routes/docs/utilities/label.md +41 -0
- package/src/routes/docs/utilities/toolbar.md +157 -0
- package/src/routes/landing/CTA.svelte +98 -0
- package/src/routes/landing/Components.svelte +42 -0
- package/src/routes/landing/Contributors.svelte +55 -0
- package/src/routes/landing/DesignFigma.svelte +39 -0
- package/src/routes/landing/Featured.svelte +33 -0
- package/src/routes/landing/GetStarted.svelte +23 -0
- package/src/routes/landing/Hero.svelte +38 -0
- package/src/routes/landing/SocialProof.svelte +80 -0
- package/src/routes/landing/utils/A.svelte +5 -0
- package/src/routes/landing/utils/H2.svelte +1 -0
- package/src/routes/landing/utils/Row.svelte +16 -0
- package/src/routes/landing/utils/Section.svelte +9 -0
- package/src/routes/layouts/component/+page.svelte +44 -0
- package/src/routes/layouts/component/Anchor.svelte +29 -0
- package/src/routes/layouts/component/code.svelte +1 -0
- package/src/routes/layouts/component/h1.svelte +0 -0
- package/src/routes/layouts/component/h2.svelte +5 -0
- package/src/routes/layouts/component/h3.svelte +5 -0
- package/src/routes/layouts/testLayout/+page.svelte +5 -0
- package/src/routes/utils/AlgoliaSearch.svelte +22 -0
- package/src/routes/utils/CompoAttributesViewer.svelte +78 -0
- package/src/routes/utils/CompoCard.svelte +36 -0
- package/src/routes/utils/CompoDescription.svelte +7 -0
- package/src/routes/utils/CopyCliboardInput.svelte +45 -0
- package/src/routes/utils/DocBadge.svelte +7 -0
- package/src/routes/utils/DocBadgeList.svelte +10 -0
- package/src/routes/utils/ExampleDarkMode.svelte +16 -0
- package/src/routes/utils/ExampleWrapper.svelte +143 -0
- package/src/routes/utils/Footer.svelte +64 -0
- package/src/routes/utils/GitHubSource.svelte +13 -0
- package/src/routes/utils/GitHubSourceList.svelte +21 -0
- package/src/routes/utils/MetaTag.svelte +42 -0
- package/src/routes/utils/Newsletter.svelte +52 -0
- package/src/routes/utils/PageHeadSection.svelte +20 -0
- package/src/routes/utils/Paging.svelte +60 -0
- package/src/routes/utils/TableDefaultRow.svelte +81 -0
- package/src/routes/utils/TableProp.svelte +41 -0
- package/src/routes/utils/Toc.svelte +55 -0
- package/src/routes/utils/ToolbarLink.svelte +12 -0
- package/src/routes/utils/data.json +48 -0
- package/src/routes/utils/icons/Angular.svelte +3 -0
- package/src/routes/utils/icons/ArrowLeft.svelte +3 -0
- package/src/routes/utils/icons/ArrowRight.svelte +3 -0
- package/src/routes/utils/icons/Check.svelte +3 -0
- package/src/routes/utils/icons/China.svelte +9 -0
- package/src/routes/utils/icons/Clipboard.svelte +3 -0
- package/src/routes/utils/icons/CoinbaseWallet.svelte +4 -0
- package/src/routes/utils/icons/Combinator.svelte +35 -0
- package/src/routes/utils/icons/Community.svelte +5 -0
- package/src/routes/utils/icons/Dev.svelte +9 -0
- package/src/routes/utils/icons/Discord.svelte +5 -0
- package/src/routes/utils/icons/Dribble.svelte +3 -0
- package/src/routes/utils/icons/Figma.svelte +14 -0
- package/src/routes/utils/icons/FlowbiteLogo.svelte +49 -0
- package/src/routes/utils/icons/Fortmatic.svelte +4 -0
- package/src/routes/utils/icons/Germany.svelte +5 -0
- package/src/routes/utils/icons/GitHub.svelte +13 -0
- package/src/routes/utils/icons/Hunt.svelte +17 -0
- package/src/routes/utils/icons/Italy.svelte +7 -0
- package/src/routes/utils/icons/Mail.svelte +4 -0
- package/src/routes/utils/icons/MetaMask.svelte +31 -0
- package/src/routes/utils/icons/Moon.svelte +3 -0
- package/src/routes/utils/icons/Npm.svelte +3 -0
- package/src/routes/utils/icons/OperaWallet.svelte +17 -0
- package/src/routes/utils/icons/Quote.svelte +3 -0
- package/src/routes/utils/icons/React.svelte +4 -0
- package/src/routes/utils/icons/Reddit.svelte +23 -0
- package/src/routes/utils/icons/Sun.svelte +7 -0
- package/src/routes/utils/icons/Usa.svelte +31 -0
- package/src/routes/utils/icons/Vue.svelte +3 -0
- package/src/routes/utils/icons/WalletConnect.svelte +18 -0
- package/src/routes/utils/icons/YouTube.svelte +3 -0
- package/src/routes/utils/icons/YouTubeFull.svelte +17 -0
- package/src/routes/utils/index.ts +146 -0
- package/src/routes/utils/mdsvex.d.ts +8 -0
- package/static/images/alert-prop.png +0 -0
- package/static/images/carousel/cosmic-timetraveler-pYyOZ8q7AII-unsplash.webp +0 -0
- package/static/images/carousel/cristina-gottardi-CSpjU6hYo_0-unsplash.webp +0 -0
- package/static/images/carousel/johannes-plenio-RwHv7LgeC7s-unsplash.webp +0 -0
- package/static/images/carousel/jonatan-pie-3l3RwQdHRHg-unsplash.webp +0 -0
- package/static/images/carousel/mark-harpur-K2s_YE031CA-unsplash.webp +0 -0
- package/static/images/carousel/pietro-de-grandi-T7K4aEPoGGk-unsplash.webp +0 -0
- package/static/images/carousel/sergey-pesterev-tMvuB9se2uQ-unsplash.webp +0 -0
- package/static/images/carousel/solotravelgoals-7kLufxYoqWk-unsplash.webp +0 -0
- package/static/images/carousel-1.svg +4 -0
- package/static/images/carousel-2.svg +4 -0
- package/static/images/carousel-3.svg +4 -0
- package/static/images/carousel-4.svg +4 -0
- package/static/images/carousel-5.svg +4 -0
- package/static/images/code-example-dark.png +0 -0
- package/static/images/code-example.png +0 -0
- package/static/images/colors.webp +0 -0
- package/static/images/components/accordion-dark.svg +40 -0
- package/static/images/components/accordion.svg +40 -0
- package/static/images/components/alert-dark.svg +11 -0
- package/static/images/components/alert.svg +11 -0
- package/static/images/components/avatar-dark.svg +117 -0
- package/static/images/components/avatar.svg +117 -0
- package/static/images/components/badge-dark.svg +5 -0
- package/static/images/components/badge.svg +5 -0
- package/static/images/components/banner-dark.svg +34 -0
- package/static/images/components/banner.svg +33 -0
- package/static/images/components/bottom-navigation-dark.svg +44 -0
- package/static/images/components/bottom-navigation.svg +43 -0
- package/static/images/components/breadcrumb-dark.svg +7 -0
- package/static/images/components/breadcrumb.svg +7 -0
- package/static/images/components/button-dark.svg +10 -0
- package/static/images/components/button-group-dark.svg +10 -0
- package/static/images/components/button-group.svg +10 -0
- package/static/images/components/button.svg +10 -0
- package/static/images/components/card-dark.svg +31 -0
- package/static/images/components/card.svg +32 -0
- package/static/images/components/carousel-dark.svg +13 -0
- package/static/images/components/carousel.svg +13 -0
- package/static/images/components/charts-dark.svg +29 -0
- package/static/images/components/charts.svg +29 -0
- package/static/images/components/darkmode-dark.svg +7 -0
- package/static/images/components/darkmode.svg +3 -0
- package/static/images/components/device-mockups-dark.svg +17 -0
- package/static/images/components/device-mockups.svg +17 -0
- package/static/images/components/drawer-dark.svg +32 -0
- package/static/images/components/drawer.svg +32 -0
- package/static/images/components/dropdown-dark.svg +35 -0
- package/static/images/components/dropdown.svg +35 -0
- package/static/images/components/footer-dark.svg +52 -0
- package/static/images/components/footer.svg +50 -0
- package/static/images/components/forms-dark.svg +64 -0
- package/static/images/components/forms.svg +64 -0
- package/static/images/components/gallery-dark.svg +14 -0
- package/static/images/components/gallery.svg +14 -0
- package/static/images/components/indicators-dark.svg +38 -0
- package/static/images/components/indicators.svg +38 -0
- package/static/images/components/jumbotron-dark.svg +13 -0
- package/static/images/components/jumbotron.svg +13 -0
- package/static/images/components/kbd-dark.svg +460 -0
- package/static/images/components/kbd.svg +462 -0
- package/static/images/components/list-group-dark.svg +58 -0
- package/static/images/components/list-group.svg +58 -0
- package/static/images/components/mega-menu-dark.svg +71 -0
- package/static/images/components/mega-menu.svg +71 -0
- package/static/images/components/modal-dark.svg +32 -0
- package/static/images/components/modal.svg +33 -0
- package/static/images/components/navbar-dark.svg +78 -0
- package/static/images/components/navbar.svg +78 -0
- package/static/images/components/pagination-dark.svg +50 -0
- package/static/images/components/pagination.svg +50 -0
- package/static/images/components/popover-dark.svg +18 -0
- package/static/images/components/popover.svg +17 -0
- package/static/images/components/progress-dark.svg +10 -0
- package/static/images/components/progress.svg +10 -0
- package/static/images/components/rating-dark.svg +29 -0
- package/static/images/components/rating.svg +29 -0
- package/static/images/components/sidebar-dark.svg +17 -0
- package/static/images/components/sidebar.svg +18 -0
- package/static/images/components/skeleton-dark.svg +10 -0
- package/static/images/components/skeleton.svg +10 -0
- package/static/images/components/speed-dial-dark.svg +69 -0
- package/static/images/components/speed-dial.svg +69 -0
- package/static/images/components/spinner-dark.svg +6 -0
- package/static/images/components/spinner.svg +6 -0
- package/static/images/components/stepper-dark.svg +11 -0
- package/static/images/components/stepper.svg +10 -0
- package/static/images/components/tab-dark.svg +10 -0
- package/static/images/components/tab.svg +10 -0
- package/static/images/components/table-dark.svg +47 -0
- package/static/images/components/table.svg +47 -0
- package/static/images/components/timeline-dark.svg +20 -0
- package/static/images/components/timeline.svg +20 -0
- package/static/images/components/toast-dark.svg +49 -0
- package/static/images/components/toast.svg +49 -0
- package/static/images/components/tooltip-dark.svg +7 -0
- package/static/images/components/tooltip.svg +7 -0
- package/static/images/components/typography-dark.svg +13 -0
- package/static/images/components/typography.svg +13 -0
- package/static/images/components/video-dark.svg +4 -0
- package/static/images/components/video.svg +4 -0
- package/static/images/eugene.jpg +0 -0
- package/static/images/examples/content-gallery-3.png +0 -0
- package/static/images/examples/image-1.jpg +0 -0
- package/static/images/examples/image-1@2x.jpg +0 -0
- package/static/images/examples/image-2@2x.jpg +0 -0
- package/static/images/examples/image-3@2x.jpg +0 -0
- package/static/images/examples/image-4@2x.jpg +0 -0
- package/static/images/experimental/datepicker-dark.svg +67 -0
- package/static/images/experimental/datepicker.svg +67 -0
- package/static/images/favicon.png +0 -0
- package/static/images/favicon.svg +49 -0
- package/static/images/figma-dark.png +0 -0
- package/static/images/figma.png +0 -0
- package/static/images/flowbite-svelte-blocks-optimized.png +0 -0
- package/static/images/flowbite-svelte-icon-logo.svg +49 -0
- package/static/images/flowbite-svelte-icon.svg +49 -0
- package/static/images/flowbite-svelte-og-image.png +0 -0
- package/static/images/flowbite-svelte.png +0 -0
- package/static/images/forms/checkbox-dark.svg +14 -0
- package/static/images/forms/checkbox.svg +14 -0
- package/static/images/forms/file-input-dark.svg +59 -0
- package/static/images/forms/file-input.svg +46 -0
- package/static/images/forms/floating-label-dark.svg +11 -0
- package/static/images/forms/floating-label.svg +11 -0
- package/static/images/forms/input-field-dark.svg +65 -0
- package/static/images/forms/input-field.svg +66 -0
- package/static/images/forms/radio-dark.svg +14 -0
- package/static/images/forms/radio.svg +12 -0
- package/static/images/forms/range-dark.svg +38 -0
- package/static/images/forms/range.svg +38 -0
- package/static/images/forms/search-input-dark.svg +82 -0
- package/static/images/forms/search-input.svg +82 -0
- package/static/images/forms/select-dark.svg +64 -0
- package/static/images/forms/select.svg +64 -0
- package/static/images/forms/textarea-dark.svg +16 -0
- package/static/images/forms/textarea.svg +16 -0
- package/static/images/forms/toggle-dark.svg +12 -0
- package/static/images/forms/toggle.svg +12 -0
- package/static/images/gallery-dark.png +0 -0
- package/static/images/gallery.png +0 -0
- package/static/images/graphs-dark.png +0 -0
- package/static/images/graphs.png +0 -0
- package/static/images/image-1.jpeg +0 -0
- package/static/images/image-1.png +0 -0
- package/static/images/image-1.webp +0 -0
- package/static/images/image-2.jpeg +0 -0
- package/static/images/image-2.png +0 -0
- package/static/images/image-2.webp +0 -0
- package/static/images/image-4.jpeg +0 -0
- package/static/images/image-4.png +0 -0
- package/static/images/image-4.webp +0 -0
- package/static/images/italy.png +0 -0
- package/static/images/nature-1.jpeg +0 -0
- package/static/images/office1.webp +0 -0
- package/static/images/product-1.webp +0 -0
- package/static/images/profile-picture-1.webp +0 -0
- package/static/images/profile-picture-2.webp +0 -0
- package/static/images/profile-picture-3.webp +0 -0
- package/static/images/profile-picture-4.webp +0 -0
- package/static/images/profile-picture-5.webp +0 -0
- package/static/images/sveltekit-sidebar-layout-optimized.png +0 -0
- package/static/images/tailwind-code-dark.png +0 -0
- package/static/images/tailwind-code.png +0 -0
- package/static/images/typography/blockquote-dark.svg +8 -0
- package/static/images/typography/blockquote.svg +8 -0
- package/static/images/typography/heading-dark.svg +5 -0
- package/static/images/typography/heading.svg +5 -0
- package/static/images/typography/hr-dark.svg +7 -0
- package/static/images/typography/hr.svg +7 -0
- package/static/images/typography/image-dark.svg +6 -0
- package/static/images/typography/image.svg +6 -0
- package/static/images/typography/link-dark.svg +4 -0
- package/static/images/typography/link.svg +4 -0
- package/static/images/typography/list-dark.svg +26 -0
- package/static/images/typography/list.svg +26 -0
- package/static/images/typography/paragraph-dark.svg +13 -0
- package/static/images/typography/paragraph.svg +13 -0
- package/static/images/typography/text-dark.svg +11 -0
- package/static/images/typography/text.svg +11 -0
- package/static/site.webmanifest +12 -0
- package/static/styles/docs.css +537 -0
- package/static/videos/compo-doc.gif +0 -0
- package/static/videos/flowbite.mp4 +0 -0
- package/svelte.config.js +28 -0
- package/tailwind.config.cjs +89 -0
- package/tests/components.spec.ts +199 -0
- package/tests/examples.spec.ts +11 -0
- package/tests/extend.spec.ts +19 -0
- package/tests/forms.spec.ts +62 -0
- package/tests/page.spec.ts +46 -0
- package/tests/plugins.spec.ts +7 -0
- package/tests/redirect.spec.ts +175 -0
- package/tests/typography.spec.ts +52 -0
- package/tests/utilities.spec.ts +22 -0
- package/tsconfig.json +19 -0
- package/vite.config.ts +22 -0
- package/vite.config.ts.timestamp-1692816833518-844de2c3e2008.mjs +22 -0
- package/dist/carousels/Caption.svelte +0 -17
- package/dist/carousels/Caption.svelte.d.ts +0 -26
- package/dist/carousels/Caption.svelte.d.ts.map +0 -1
- package/dist/carousels/CarouselTransition.svelte +0 -174
- package/dist/carousels/CarouselTransition.svelte.d.ts +0 -68
- package/dist/carousels/CarouselTransition.svelte.d.ts.map +0 -1
- package/dist/carousels/Indicator.svelte +0 -20
- package/dist/carousels/Indicator.svelte.d.ts +0 -28
- package/dist/carousels/Indicator.svelte.d.ts.map +0 -1
- package/dist/carousels/Slide.svelte +0 -23
- package/dist/carousels/Slide.svelte.d.ts +0 -30
- package/dist/carousels/Slide.svelte.d.ts.map +0 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { twMerge } from 'tailwind-merge';
|
|
3
|
+
|
|
4
|
+
export let ulClass: string = 'space-y-2';
|
|
5
|
+
export let borderClass: string = 'pt-4 mt-4 border-t border-gray-200 dark:border-gray-700';
|
|
6
|
+
export let border: boolean = false;
|
|
7
|
+
|
|
8
|
+
if (border) {
|
|
9
|
+
ulClass += ' ' + borderClass;
|
|
10
|
+
}
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<ul {...$$restProps} class={twMerge(ulClass, $$props.class)}>
|
|
14
|
+
<slot />
|
|
15
|
+
</ul>
|
|
16
|
+
|
|
17
|
+
<!--
|
|
18
|
+
@component
|
|
19
|
+
[Go to docs](https://flowbite-svelte.com/)
|
|
20
|
+
## Props
|
|
21
|
+
@prop export let ulClass: string = 'space-y-2';
|
|
22
|
+
@prop export let borderClass: string = 'pt-4 mt-4 border-t border-gray-200 dark:border-gray-700';
|
|
23
|
+
@prop export let border: boolean = false;
|
|
24
|
+
-->
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { getContext } from 'svelte';
|
|
3
|
+
import { twMerge } from 'tailwind-merge';
|
|
4
|
+
import type { SidebarType } from './Sidebar.svelte';
|
|
5
|
+
|
|
6
|
+
export let href: string = '';
|
|
7
|
+
export let label: string = '';
|
|
8
|
+
export let spanClass: string = 'ml-3';
|
|
9
|
+
export let activeClass: string | undefined = undefined;
|
|
10
|
+
export let nonActiveClass: string | undefined = undefined;
|
|
11
|
+
// export let active: boolean = false;
|
|
12
|
+
|
|
13
|
+
const context = getContext<SidebarType>('sidebarContext') ?? {};
|
|
14
|
+
const activeUrlStore = getContext('activeUrl') as { subscribe: (callback: (value: string) => void) => void };
|
|
15
|
+
|
|
16
|
+
let sidebarUrl = '';
|
|
17
|
+
activeUrlStore.subscribe((value) => {
|
|
18
|
+
// console.log('value: ', value)
|
|
19
|
+
sidebarUrl = value;
|
|
20
|
+
});
|
|
21
|
+
// console.log('sidbarUrl: ', sidebarUrl)
|
|
22
|
+
// console.log('href: ', href)
|
|
23
|
+
$: active = sidebarUrl ? href === sidebarUrl : false;
|
|
24
|
+
// console.log('active: ', active)
|
|
25
|
+
|
|
26
|
+
$: aClass = twMerge(active ? activeClass ?? context.activeClass : nonActiveClass ?? context.nonActiveClass, $$props.class);
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<li>
|
|
30
|
+
<a {...$$restProps} {href} on:blur on:click on:focus on:keydown on:keypress on:keyup on:mouseenter on:mouseleave on:mouseover class={aClass}>
|
|
31
|
+
<slot name="icon" />
|
|
32
|
+
<span class={spanClass}>{label}</span>
|
|
33
|
+
{#if $$slots.subtext}
|
|
34
|
+
<slot name="subtext" />
|
|
35
|
+
{/if}
|
|
36
|
+
</a>
|
|
37
|
+
</li>
|
|
38
|
+
|
|
39
|
+
<!--
|
|
40
|
+
@component
|
|
41
|
+
[Go to docs](https://flowbite-svelte.com/)
|
|
42
|
+
## Props
|
|
43
|
+
@prop export let href: string = '';
|
|
44
|
+
@prop export let label: string = '';
|
|
45
|
+
@prop export let spanClass: string = 'ml-3';
|
|
46
|
+
@prop export let activeClass: string | undefined = undefined;
|
|
47
|
+
@prop export let nonActiveClass: string | undefined = undefined;
|
|
48
|
+
@prop export let active: boolean = false;
|
|
49
|
+
-->
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { twMerge } from 'tailwind-merge';
|
|
3
|
+
|
|
4
|
+
export let divClass: string = 'overflow-y-auto py-4 px-3 bg-gray-50 rounded dark:bg-gray-800';
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<div {...$$restProps} class={twMerge(divClass, $$props.class)}>
|
|
8
|
+
<slot />
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
<!--
|
|
12
|
+
@component
|
|
13
|
+
[Go to docs](https://flowbite-svelte.com/)
|
|
14
|
+
## Props
|
|
15
|
+
@prop export let divClass: string = 'overflow-y-auto py-4 px-3 bg-gray-50 rounded dark:bg-gray-800';
|
|
16
|
+
-->
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { twMerge } from 'tailwind-merge';
|
|
3
|
+
interface Sizes {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
const sizes: Sizes = {
|
|
8
|
+
sm: 'max-w-sm',
|
|
9
|
+
md: 'max-w-md',
|
|
10
|
+
lg: 'max-w-lg',
|
|
11
|
+
xl: 'max-w-xl',
|
|
12
|
+
xxl: 'max-w-2xl'
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export let divClass: string = 'p-4 rounded border border-gray-200 shadow animate-pulse md:p-6 dark:border-gray-700';
|
|
16
|
+
export let size: keyof Sizes = 'sm';
|
|
17
|
+
$: outDivclass = twMerge(sizes[size], divClass, $$props.class);
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<div role="status" class={outDivclass}>
|
|
21
|
+
<div class="flex justify-center items-center mb-4 h-48 bg-gray-300 rounded dark:bg-gray-700">
|
|
22
|
+
<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 640 512">
|
|
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" />
|
|
24
|
+
</svg>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-1/2 mb-4" />
|
|
27
|
+
<div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5" />
|
|
28
|
+
<div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5" />
|
|
29
|
+
<div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700" />
|
|
30
|
+
<div class="flex items-center mt-4 space-x-3">
|
|
31
|
+
<svg class="w-14 h-14 text-gray-200 dark:text-gray-700" aria-hidden="true" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
32
|
+
<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" />
|
|
33
|
+
</svg>
|
|
34
|
+
<div>
|
|
35
|
+
<div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-32 mb-2" />
|
|
36
|
+
<div class="w-48 h-2 bg-gray-200 rounded-full dark:bg-gray-700" />
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
<span class="sr-only">Loading...</span>
|
|
40
|
+
</div>
|
|
41
|
+
|
|
42
|
+
<!--
|
|
43
|
+
@component
|
|
44
|
+
[Go to docs](https://flowbite-svelte.com/)
|
|
45
|
+
## Props
|
|
46
|
+
@prop export let divClass: string = 'p-4 rounded border border-gray-200 shadow animate-pulse md:p-6 dark:border-gray-700';
|
|
47
|
+
@prop export let size: keyof Sizes = 'sm';
|
|
48
|
+
-->
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { twMerge } from 'tailwind-merge';
|
|
3
|
+
export let divClass: string = 'space-y-8 animate-pulse md:space-y-0 md:space-x-8 md:flex md:items-center';
|
|
4
|
+
export let imgHeight: string = '48';
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<div role="status" class={twMerge(divClass, $$props.class)}>
|
|
8
|
+
<div class="flex justify-center items-center w-full h-{imgHeight} bg-gray-300 rounded sm:w-96 dark:bg-gray-700">
|
|
9
|
+
<svg width="48" height="48" class="text-gray-200" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" viewBox="0 0 640 512">
|
|
10
|
+
<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" />
|
|
11
|
+
</svg>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="w-full">
|
|
14
|
+
<div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-1/2 mb-4" />
|
|
15
|
+
<div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 w-9/12 mb-2.5" />
|
|
16
|
+
<div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5" />
|
|
17
|
+
<div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5" />
|
|
18
|
+
<div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 w-10/12 mb-2.5" />
|
|
19
|
+
<div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 w-11/12 mb-2.5" />
|
|
20
|
+
<div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 w-9/12" />
|
|
21
|
+
</div>
|
|
22
|
+
<span class="sr-only">Loading...</span>
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
<!--
|
|
26
|
+
@component
|
|
27
|
+
[Go to docs](https://flowbite-svelte.com/)
|
|
28
|
+
## Props
|
|
29
|
+
@prop export let divClass: string = 'space-y-8 animate-pulse md:space-y-0 md:space-x-8 md:flex md:items-center';
|
|
30
|
+
@prop export let imgHeight: string = '48';
|
|
31
|
+
-->
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { twMerge } from 'tailwind-merge';
|
|
3
|
+
export let divClass: string = 'p-4 space-y-4 max-w-md rounded border border-gray-200 divide-y divide-gray-200 shadow animate-pulse dark:divide-gray-700 md:p-6 dark:border-gray-700';
|
|
4
|
+
</script>
|
|
5
|
+
|
|
6
|
+
<div role="status" class={twMerge(divClass, $$props.class)}>
|
|
7
|
+
<div class="flex justify-between items-center">
|
|
8
|
+
<div>
|
|
9
|
+
<div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-2.5" />
|
|
10
|
+
<div class="w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700" />
|
|
11
|
+
</div>
|
|
12
|
+
<div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-700 w-12" />
|
|
13
|
+
</div>
|
|
14
|
+
<div class="flex justify-between items-center pt-4">
|
|
15
|
+
<div>
|
|
16
|
+
<div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-2.5" />
|
|
17
|
+
<div class="w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700" />
|
|
18
|
+
</div>
|
|
19
|
+
<div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-700 w-12" />
|
|
20
|
+
</div>
|
|
21
|
+
<div class="flex justify-between items-center pt-4">
|
|
22
|
+
<div>
|
|
23
|
+
<div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-2.5" />
|
|
24
|
+
<div class="w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700" />
|
|
25
|
+
</div>
|
|
26
|
+
<div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-700 w-12" />
|
|
27
|
+
</div>
|
|
28
|
+
<div class="flex justify-between items-center pt-4">
|
|
29
|
+
<div>
|
|
30
|
+
<div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-2.5" />
|
|
31
|
+
<div class="w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700" />
|
|
32
|
+
</div>
|
|
33
|
+
<div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-700 w-12" />
|
|
34
|
+
</div>
|
|
35
|
+
<div class="flex justify-between items-center pt-4">
|
|
36
|
+
<div>
|
|
37
|
+
<div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-2.5" />
|
|
38
|
+
<div class="w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700" />
|
|
39
|
+
</div>
|
|
40
|
+
<div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-700 w-12" />
|
|
41
|
+
</div>
|
|
42
|
+
<span class="sr-only">Loading...</span>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<!--
|
|
46
|
+
@component
|
|
47
|
+
[Go to docs](https://flowbite-svelte.com/)
|
|
48
|
+
## Props
|
|
49
|
+
@prop export let divClass: string = 'p-4 space-y-4 max-w-md rounded border border-gray-200 divide-y divide-gray-200 shadow animate-pulse dark:divide-gray-700 md:p-6 dark:border-gray-700';
|
|
50
|
+
-->
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { twMerge } from 'tailwind-merge';
|
|
3
|
+
|
|
4
|
+
interface Sizes {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
const sizes: Sizes = {
|
|
9
|
+
sm: 'max-w-sm',
|
|
10
|
+
md: 'max-w-md',
|
|
11
|
+
lg: 'max-w-lg',
|
|
12
|
+
xl: 'max-w-xl',
|
|
13
|
+
xxl: 'max-w-2xl'
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export let divClass: string = 'animate-pulse';
|
|
17
|
+
export let size: keyof Sizes = 'sm';
|
|
18
|
+
$: outDivclass = twMerge(sizes[size], divClass, $$props.class);
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<div role="status" class={outDivclass}>
|
|
22
|
+
<div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-1/2 mb-4" />
|
|
23
|
+
<div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 w-9/12 mb-2.5" />
|
|
24
|
+
<div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5" />
|
|
25
|
+
<div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5" />
|
|
26
|
+
<div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 w-10/12 mb-2.5" />
|
|
27
|
+
<div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 w-11/12 mb-2.5" />
|
|
28
|
+
<div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 w-9/12" />
|
|
29
|
+
<span class="sr-only">Loading...</span>
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
<!--
|
|
33
|
+
@component
|
|
34
|
+
[Go to docs](https://flowbite-svelte.com/)
|
|
35
|
+
## Props
|
|
36
|
+
@prop export let divClass: string = 'animate-pulse';
|
|
37
|
+
@prop export let size: keyof Sizes = 'sm';
|
|
38
|
+
-->
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { twMerge } from 'tailwind-merge';
|
|
3
|
+
export let divClass: string = 'animate-pulse';
|
|
4
|
+
</script>
|
|
5
|
+
|
|
6
|
+
<div role="status" class={twMerge(divClass, $$props.class)}>
|
|
7
|
+
<div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-700 max-w-[640px] mb-2.5 mx-auto" />
|
|
8
|
+
<div class="h-2.5 mx-auto bg-gray-300 rounded-full dark:bg-gray-700 max-w-[540px]" />
|
|
9
|
+
<div class="flex justify-center items-center mt-4">
|
|
10
|
+
<svg class="mr-2 w-10 h-10 text-gray-200 dark:text-gray-700" aria-hidden="true" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
11
|
+
<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" />
|
|
12
|
+
</svg>
|
|
13
|
+
<div class="w-20 h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 mr-3" />
|
|
14
|
+
<div class="w-24 h-2 bg-gray-200 rounded-full dark:bg-gray-700" />
|
|
15
|
+
</div>
|
|
16
|
+
<span class="sr-only">Loading...</span>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<!--
|
|
20
|
+
@component
|
|
21
|
+
[Go to docs](https://flowbite-svelte.com/)
|
|
22
|
+
## Props
|
|
23
|
+
@prop export let divClass: string = 'animate-pulse';
|
|
24
|
+
-->
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { twMerge } from 'tailwind-merge';
|
|
3
|
+
interface Sizes {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
const sizes: Sizes = {
|
|
8
|
+
sm: 'max-w-sm',
|
|
9
|
+
md: 'max-w-md',
|
|
10
|
+
lg: 'max-w-lg',
|
|
11
|
+
xl: 'max-w-xl',
|
|
12
|
+
xxl: 'max-w-2xl'
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export let divClass: string = 'space-y-2.5 animate-pulse';
|
|
16
|
+
export let size: keyof Sizes = 'sm';
|
|
17
|
+
$: outDivclass = twMerge(sizes[size], divClass, $$props.class);
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<div role="status" class={outDivclass}>
|
|
21
|
+
<div class="flex items-center space-x-2 w-full">
|
|
22
|
+
<div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-32" />
|
|
23
|
+
<div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-24" />
|
|
24
|
+
<div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-full" />
|
|
25
|
+
</div>
|
|
26
|
+
<div class="flex items-center space-x-2 w-11/12">
|
|
27
|
+
<div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-full" />
|
|
28
|
+
<div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-full" />
|
|
29
|
+
<div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-24" />
|
|
30
|
+
</div>
|
|
31
|
+
<div class="flex items-center space-x-2 w-9/12">
|
|
32
|
+
<div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-full" />
|
|
33
|
+
<div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-80" />
|
|
34
|
+
<div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-full" />
|
|
35
|
+
</div>
|
|
36
|
+
<div class="flex items-center space-x-2 w-11/12">
|
|
37
|
+
<div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-full" />
|
|
38
|
+
<div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-full" />
|
|
39
|
+
<div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-24" />
|
|
40
|
+
</div>
|
|
41
|
+
<div class="flex items-center space-x-2 w-10/12">
|
|
42
|
+
<div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-32" />
|
|
43
|
+
<div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-24" />
|
|
44
|
+
<div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-full" />
|
|
45
|
+
</div>
|
|
46
|
+
<div class="flex items-center space-x-2 w-8/12">
|
|
47
|
+
<div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-full" />
|
|
48
|
+
<div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-80" />
|
|
49
|
+
<div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-full" />
|
|
50
|
+
</div>
|
|
51
|
+
<span class="sr-only">Loading...</span>
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
<!--
|
|
55
|
+
@component
|
|
56
|
+
[Go to docs](https://flowbite-svelte.com/)
|
|
57
|
+
## Props
|
|
58
|
+
@prop export let divClass: string = 'space-y-2.5 animate-pulse';
|
|
59
|
+
@prop export let size: keyof Sizes = 'sm';
|
|
60
|
+
-->
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { twMerge } from 'tailwind-merge';
|
|
3
|
+
interface Sizes {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
const sizes: Sizes = {
|
|
8
|
+
sm: 'max-w-sm',
|
|
9
|
+
md: 'max-w-md',
|
|
10
|
+
lg: 'max-w-lg',
|
|
11
|
+
xl: 'max-w-xl',
|
|
12
|
+
xxl: 'max-w-2xl'
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export let divClass: string = 'flex justify-center items-center h-56 bg-gray-300 rounded-lg animate-pulse dark:bg-gray-700';
|
|
16
|
+
export let size: keyof Sizes = 'sm';
|
|
17
|
+
$: outDivclass = twMerge(sizes[size], divClass, $$props.class);
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<div role="status" class={outDivclass}>
|
|
21
|
+
<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">
|
|
22
|
+
<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" />
|
|
23
|
+
</svg>
|
|
24
|
+
<span class="sr-only">Loading...</span>
|
|
25
|
+
</div>
|
|
26
|
+
|
|
27
|
+
<!--
|
|
28
|
+
@component
|
|
29
|
+
[Go to docs](https://flowbite-svelte.com/)
|
|
30
|
+
## Props
|
|
31
|
+
@prop export let divClass: string = 'flex justify-center items-center h-56 bg-gray-300 rounded-lg animate-pulse dark:bg-gray-700';
|
|
32
|
+
@prop export let size: keyof Sizes = 'sm';
|
|
33
|
+
-->
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { twMerge } from 'tailwind-merge';
|
|
3
|
+
export let divClass: string = 'p-4 max-w-sm rounded border border-gray-200 shadow animate-pulse md:p-6 dark:border-gray-700';
|
|
4
|
+
</script>
|
|
5
|
+
|
|
6
|
+
<div role="status" class={twMerge(divClass, $$props.class)}>
|
|
7
|
+
<div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-32 mb-2.5" />
|
|
8
|
+
<div class="mb-10 w-48 h-2 bg-gray-200 rounded-full dark:bg-gray-700" />
|
|
9
|
+
<div class="flex items-baseline mt-4 space-x-6">
|
|
10
|
+
<div class="w-full h-72 bg-gray-200 rounded-t-lg dark:bg-gray-700" />
|
|
11
|
+
<div class="w-full h-56 bg-gray-200 rounded-t-lg dark:bg-gray-700" />
|
|
12
|
+
<div class="w-full h-72 bg-gray-200 rounded-t-lg dark:bg-gray-700" />
|
|
13
|
+
<div class="w-full h-64 bg-gray-200 rounded-t-lg dark:bg-gray-700" />
|
|
14
|
+
<div class="w-full h-80 bg-gray-200 rounded-t-lg dark:bg-gray-700" />
|
|
15
|
+
<div class="w-full h-72 bg-gray-200 rounded-t-lg dark:bg-gray-700" />
|
|
16
|
+
<div class="w-full h-80 bg-gray-200 rounded-t-lg dark:bg-gray-700" />
|
|
17
|
+
</div>
|
|
18
|
+
<span class="sr-only">Loading...</span>
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<!--
|
|
22
|
+
@component
|
|
23
|
+
[Go to docs](https://flowbite-svelte.com/)
|
|
24
|
+
## Props
|
|
25
|
+
@prop export let divClass: string = 'p-4 max-w-sm rounded border border-gray-200 shadow animate-pulse md:p-6 dark:border-gray-700';
|
|
26
|
+
-->
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
<script context="module" lang="ts">
|
|
2
|
+
import type { Placement } from '@floating-ui/dom';
|
|
3
|
+
|
|
4
|
+
export interface SpeedCtxType {
|
|
5
|
+
pill: boolean;
|
|
6
|
+
tooltip: Placement | 'none';
|
|
7
|
+
textOutside: boolean;
|
|
8
|
+
}
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<script lang="ts">
|
|
12
|
+
import { twMerge } from 'tailwind-merge';
|
|
13
|
+
import Button from '$lib/buttons/Button.svelte';
|
|
14
|
+
import Popper from '$lib/utils/Popper.svelte';
|
|
15
|
+
import { setContext } from 'svelte';
|
|
16
|
+
import generateId from '$lib/utils/generateId';
|
|
17
|
+
import GradientButton from '$lib/buttons/GradientButton.svelte';
|
|
18
|
+
|
|
19
|
+
export let defaultClass: string = 'fixed right-6 bottom-6';
|
|
20
|
+
export let popperDefaultClass: string = 'flex items-center mb-4 gap-2';
|
|
21
|
+
export let placement: Placement = 'top';
|
|
22
|
+
export let pill: boolean = true;
|
|
23
|
+
export let tooltip: Placement | 'none' = 'left';
|
|
24
|
+
export let trigger: 'hover' | 'click' = 'hover';
|
|
25
|
+
export let textOutside: boolean = false;
|
|
26
|
+
export let id: string = generateId();
|
|
27
|
+
export let name: string = 'Open actions menu';
|
|
28
|
+
export let gradient: boolean = false;
|
|
29
|
+
export let open: boolean = false;
|
|
30
|
+
|
|
31
|
+
setContext<SpeedCtxType>('speed-dial', { pill, tooltip, textOutside });
|
|
32
|
+
|
|
33
|
+
let divClass: string;
|
|
34
|
+
$: divClass = twMerge(defaultClass, 'group', $$props.class);
|
|
35
|
+
|
|
36
|
+
let poperClass: string;
|
|
37
|
+
$: poperClass = twMerge(popperDefaultClass, ['top', 'bottom'].includes(placement.split('-')[0]) && 'flex-col');
|
|
38
|
+
</script>
|
|
39
|
+
|
|
40
|
+
<div class={divClass}>
|
|
41
|
+
{#if gradient}
|
|
42
|
+
<GradientButton {pill} {name} aria-controls={id} aria-expanded={open} {...$$restProps} class="!p-3">
|
|
43
|
+
<slot name="icon">
|
|
44
|
+
<svg aria-hidden="true" class="w-8 h-8 transition-transform group-hover:rotate-45" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
45
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6v6m0 0v6m0-6h6m-6 0H6" />
|
|
46
|
+
</svg>
|
|
47
|
+
</slot>
|
|
48
|
+
<span class="sr-only">{name}</span>
|
|
49
|
+
</GradientButton>
|
|
50
|
+
{:else}
|
|
51
|
+
<Button {pill} {name} aria-controls={id} aria-expanded={open} {...$$restProps} class="!p-3">
|
|
52
|
+
<slot name="icon">
|
|
53
|
+
<svg aria-hidden="true" class="w-8 h-8 transition-transform group-hover:rotate-45" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
54
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6v6m0 0v6m0-6h6m-6 0H6" />
|
|
55
|
+
</svg>
|
|
56
|
+
</slot>
|
|
57
|
+
<span class="sr-only">{name}</span>
|
|
58
|
+
</Button>
|
|
59
|
+
{/if}
|
|
60
|
+
<Popper {id} {trigger} arrow={false} color="none" activeContent {placement} class={poperClass} bind:open>
|
|
61
|
+
<slot />
|
|
62
|
+
</Popper>
|
|
63
|
+
</div>
|
|
64
|
+
|
|
65
|
+
<!--
|
|
66
|
+
@component
|
|
67
|
+
[Go to docs](https://flowbite-svelte.com/)
|
|
68
|
+
## Props
|
|
69
|
+
@prop export let defaultClass: string = 'fixed right-6 bottom-6';
|
|
70
|
+
@prop export let popperDefaultClass: string = 'flex items-center mb-4 gap-2';
|
|
71
|
+
@prop export let placement: Placement = 'top';
|
|
72
|
+
@prop export let pill: boolean = true;
|
|
73
|
+
@prop export let tooltip: Placement | 'none' = 'left';
|
|
74
|
+
@prop export let trigger: 'hover' | 'click' = 'hover';
|
|
75
|
+
@prop export let textOutside: boolean = false;
|
|
76
|
+
@prop export let id: string = generateId();
|
|
77
|
+
@prop export let name: string = 'Open actions menu';
|
|
78
|
+
@prop export let gradient: boolean = false;
|
|
79
|
+
@prop export let open: boolean = false;
|
|
80
|
+
-->
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import Button from '$lib/buttons/Button.svelte';
|
|
3
|
+
import Tooltip from '$lib/tooltips/Tooltip.svelte';
|
|
4
|
+
import type { Placement } from '@floating-ui/dom';
|
|
5
|
+
import { twMerge } from 'tailwind-merge';
|
|
6
|
+
import { getContext } from 'svelte';
|
|
7
|
+
import type { SpeedCtxType } from './SpeedDial.svelte';
|
|
8
|
+
|
|
9
|
+
const context = getContext<SpeedCtxType>('speed-dial');
|
|
10
|
+
|
|
11
|
+
export let btnDefaultClass: string = 'w-[52px] h-[52px] shadow-sm !p-2';
|
|
12
|
+
export let name: string = '';
|
|
13
|
+
export let tooltip: Placement | 'none' = context.tooltip;
|
|
14
|
+
export let pill: boolean = context.pill;
|
|
15
|
+
export let textOutside: boolean = context.textOutside;
|
|
16
|
+
export let textOutsideClass: string = 'block absolute -left-14 top-1/2 mb-px text-sm font-medium -translate-y-1/2';
|
|
17
|
+
export let textDefaultClass: string = 'block mb-px text-xs font-medium';
|
|
18
|
+
|
|
19
|
+
let btnClass: string;
|
|
20
|
+
$: btnClass = twMerge(btnDefaultClass, tooltip === 'none' && 'flex-col', textOutside && 'relative', $$props.class);
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<Button {pill} outline color="light" {...$$restProps} class={btnClass} on:click>
|
|
24
|
+
<slot />
|
|
25
|
+
{#if tooltip !== 'none'}
|
|
26
|
+
<span class="sr-only">{name}</span>
|
|
27
|
+
{:else if textOutside}
|
|
28
|
+
<span class={textOutsideClass}>{name}</span>
|
|
29
|
+
{:else}
|
|
30
|
+
<span class={textDefaultClass}>{name}</span>
|
|
31
|
+
{/if}
|
|
32
|
+
</Button>
|
|
33
|
+
|
|
34
|
+
{#if tooltip !== 'none'}
|
|
35
|
+
<Tooltip placement={tooltip} style="dark">{name}</Tooltip>
|
|
36
|
+
{/if}
|
|
37
|
+
|
|
38
|
+
<!--
|
|
39
|
+
@component
|
|
40
|
+
[Go to docs](https://flowbite-svelte.com/)
|
|
41
|
+
## Props
|
|
42
|
+
@prop export let btnDefaultClass: string = 'w-[52px] h-[52px] shadow-sm !p-2';
|
|
43
|
+
@prop export let name: string = '';
|
|
44
|
+
@prop export let tooltip: Placement | 'none' = context.tooltip;
|
|
45
|
+
@prop export let pill: boolean = context.pill;
|
|
46
|
+
@prop export let textOutside: boolean = context.textOutside;
|
|
47
|
+
@prop export let textOutsideClass: string = 'block absolute -left-14 top-1/2 mb-px text-sm font-medium -translate-y-1/2';
|
|
48
|
+
@prop export let textDefaultClass: string = 'block mb-px text-xs font-medium';
|
|
49
|
+
-->
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { twMerge } from 'tailwind-merge';
|
|
3
|
+
|
|
4
|
+
export let color: 'primary' | 'blue' | 'gray' | 'green' | 'red' | 'yellow' | 'pink' | 'purple' | 'white' | 'custom' | undefined = 'primary';
|
|
5
|
+
export let bg: string = 'text-gray-300';
|
|
6
|
+
export let customColor: string = '';
|
|
7
|
+
export let size: string = '8';
|
|
8
|
+
// these two props add fine control over the spinner colors
|
|
9
|
+
export let currentFill: string = 'currentFill';
|
|
10
|
+
export let currentColor: string = 'currentColor';
|
|
11
|
+
|
|
12
|
+
let iconsize = `w-${size} h-${size}`;
|
|
13
|
+
|
|
14
|
+
if (currentFill !== 'currentFill') {
|
|
15
|
+
color = undefined;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const fillColorClasses = {
|
|
19
|
+
primary: 'fill-primary-600',
|
|
20
|
+
blue: 'fill-blue-600',
|
|
21
|
+
gray: 'fill-gray-600 dark:fill-gray-300',
|
|
22
|
+
green: 'fill-green-500',
|
|
23
|
+
red: 'fill-red-600',
|
|
24
|
+
yellow: 'fill-yellow-400',
|
|
25
|
+
pink: 'fill-pink-600',
|
|
26
|
+
purple: 'fill-purple-600',
|
|
27
|
+
white: 'fill-white',
|
|
28
|
+
custom: customColor
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
let fillColorClass: string = color === undefined ? '' : fillColorClasses[color] ?? fillColorClasses.blue;
|
|
32
|
+
</script>
|
|
33
|
+
|
|
34
|
+
<svg {...$$restProps} role="status" class={twMerge('inline -mt-px animate-spin dark:text-gray-600', iconsize, bg, fillColorClass, $$props.class)} viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
35
|
+
<path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill={currentColor} />
|
|
36
|
+
<path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z" fill={currentFill} />
|
|
37
|
+
</svg>
|
|
38
|
+
|
|
39
|
+
<!--
|
|
40
|
+
@component
|
|
41
|
+
[Go to docs](https://flowbite-svelte.com/)
|
|
42
|
+
## Props
|
|
43
|
+
@prop export let color: 'primary' | 'blue' | 'gray' | 'green' | 'red' | 'yellow' | 'pink' | 'purple' | 'white' | 'custom' | undefined = 'primary';
|
|
44
|
+
@prop export let bg: string = 'text-gray-300';
|
|
45
|
+
@prop export let customColor: string = '';
|
|
46
|
+
@prop export let size: string = '8';
|
|
47
|
+
@prop export let currentFill: string = 'currentFill';
|
|
48
|
+
@prop export let currentColor: string = 'currentColor';
|
|
49
|
+
-->
|