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,98 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import Button from '$lib/buttons/Button.svelte';
|
|
3
|
+
import DarkMode from '$lib/darkmode/DarkMode.svelte';
|
|
4
|
+
import Li from '$lib/typography/Li.svelte';
|
|
5
|
+
import List from '$lib/typography/List.svelte';
|
|
6
|
+
import ArrowRight from '../utils/icons/ArrowRight.svelte';
|
|
7
|
+
import Check from '../utils/icons/Check.svelte';
|
|
8
|
+
import Moon from '../utils/icons/Moon.svelte';
|
|
9
|
+
import Sun from '../utils/icons/Sun.svelte';
|
|
10
|
+
import A from './utils/A.svelte';
|
|
11
|
+
import H2 from './utils/H2.svelte';
|
|
12
|
+
import Row from './utils/Row.svelte';
|
|
13
|
+
import Section from './utils/Section.svelte';
|
|
14
|
+
|
|
15
|
+
const features = ['Huge collection of UI components', 'Open-source under the MIT License', 'Interactivity handled by Svelte', 'Utility classes based on Tailwind CSS', 'Based on the Flowbite ecosystem and design'];
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<Section class="lg:py-24" tinted>
|
|
19
|
+
<Row image="bg-[url('/images/code-example.png')] dark:bg-[url('/images/code-example-dark.png')]" divide h_full>
|
|
20
|
+
<div class="flex flex-col items-start gap-3 sm:gap-4 self-stretch">
|
|
21
|
+
<H2>Svelte UI components</H2>
|
|
22
|
+
<p class="text-lg text-gray-500 dark:text-gray-400">
|
|
23
|
+
<A href="/docs/pages/introduction">Flowbite Svelte</A> is a free and open-source UI component library built using Svelte based on Flowbite and Tailwind CSS.
|
|
24
|
+
</p>
|
|
25
|
+
<p class="text-lg text-gray-500 dark:text-gray-400">By installing the package via NPM you will be able to build modern looking web applications fast by leveraging Svelte, Tailwind CSS and Flowbite using ready-made UI components like dropdowns, navbars, modals, and more.</p>
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
<div class="flex flex-col items-start pt-8 self-stretch">
|
|
29
|
+
<List tag="ul" class="mb-6 lg:mb-8 space-y-4 font-medium text-gray-900 dark:text-white" list="none" ulClass="">
|
|
30
|
+
{#each features as feature}
|
|
31
|
+
<Li icon class="gap-2">
|
|
32
|
+
<Check class="w-5 h-5 p-1 rounded-full bg-primary-100 dark:bg-gray-700 text-primary-700" />
|
|
33
|
+
{feature}
|
|
34
|
+
</Li>
|
|
35
|
+
{/each}
|
|
36
|
+
</List>
|
|
37
|
+
|
|
38
|
+
<div class="flex flex-row gap-4">
|
|
39
|
+
<Button href="/docs/pages/introduction" color="primary" class="gap-2">
|
|
40
|
+
Start building <ArrowRight />
|
|
41
|
+
</Button>
|
|
42
|
+
<Button href="https://github.com/themesberg/flowbite-svelte" color="light" class="w-auto dark:!text-gray-400">View on GitHub</Button>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</Row>
|
|
46
|
+
|
|
47
|
+
<Row image="bg-[url('/images/graphs.png')] dark:bg-[url('/images/graphs-dark.png')]" reversed contain>
|
|
48
|
+
<div class="text-red-500 flex flex-row gap-8">
|
|
49
|
+
<div class="flex flex-col items-center gap-2 font-medium text-gray-900 dark:text-gray-400">
|
|
50
|
+
<DarkMode size="lg" class="hidden dark:block dark:bg-gray-700" />
|
|
51
|
+
<Sun class="dark:hidden w-11 h-11 p-2 rounded-lg bg-primary-700 dark:bg-gray-700 text-white" />
|
|
52
|
+
Light
|
|
53
|
+
</div>
|
|
54
|
+
<div class="flex flex-col items-center gap-2 font-medium text-gray-400 dark:text-white">
|
|
55
|
+
<Moon class="hidden dark:block w-11 h-11 p-2 rounded-lg bg-primary-700" />
|
|
56
|
+
<DarkMode size="lg" class="dark:hidden bg-gray-100 dark:bg-gray-700 hover:bg-gray-200" />
|
|
57
|
+
Dark
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
<div class="flex flex-col items-start py-4 gap-4 self-stretch">
|
|
61
|
+
<H2>Dark mode integration</H2>
|
|
62
|
+
<p class="text-lg text-gray-500 dark:text-gray-400 mb-2">
|
|
63
|
+
Flowbite Svelte supports <A href="/docs/components/darkmode">dark mode</A> and can be easily integrated into your project by following the official documentation based on Svelte.
|
|
64
|
+
</p>
|
|
65
|
+
<p class="text-lg text-gray-500 dark:text-gray-400">Enabling dark mode will allow users to either select the preferred method (light or dark) or automatically switch based on the operating system settings.</p>
|
|
66
|
+
</div>
|
|
67
|
+
<List tag="ul" ulClass="" class="space-y-4 self-stretch font-medium text-gray-900 dark:text-white border-t dark:border-gray-700 pt-8" list="none">
|
|
68
|
+
<Li icon class="gap-2">
|
|
69
|
+
<Check class="w-5 h-5 p-1 rounded-full bg-primary-100 dark:bg-gray-700 text-primary-700" />
|
|
70
|
+
Increased accessibility based on room brightness
|
|
71
|
+
</Li>
|
|
72
|
+
<Li icon class="gap-2">
|
|
73
|
+
<Check class="w-5 h-5 p-1 rounded-full bg-primary-100 dark:bg-gray-700 text-primary-700" />
|
|
74
|
+
Better visibility for users with low vision
|
|
75
|
+
</Li>
|
|
76
|
+
<Li icon class="gap-2">
|
|
77
|
+
<Check class="w-5 h-5 p-1 rounded-full bg-primary-100 dark:bg-gray-700 text-primary-700" />
|
|
78
|
+
Improved readability for users with light sensitivity
|
|
79
|
+
</Li>
|
|
80
|
+
</List>
|
|
81
|
+
<a href="/docs/components/darkmode" class="flex items-center gap-4 text-primary-600 hover:underline font-medium">
|
|
82
|
+
Learn more how to integrate dark mode <ArrowRight />
|
|
83
|
+
</a>
|
|
84
|
+
</Row>
|
|
85
|
+
|
|
86
|
+
<Row image="bg-[url('/images/tailwind-code.png')] dark:bg-[url('/images/tailwind-code-dark.png')]" divide>
|
|
87
|
+
<div class="flex flex-col items-start gap-4 self-stretch">
|
|
88
|
+
<H2>Works with Tailwind CSS</H2>
|
|
89
|
+
<p class="text-lg text-gray-500 dark:text-gray-400">Flowbite Svelte uses the Tailwind CSS utility classes under the hood which means it will be easy to customize the appearance and specifications of the UI components directly from the HTML code.</p>
|
|
90
|
+
<p class="text-lg text-gray-500 dark:text-gray-400">
|
|
91
|
+
<A href="https://tailwindcss.com">Tailwind CSS</A> is a popular and open-source utility-first CSS framework that you can use to speed up the development of your front-end projects.
|
|
92
|
+
</p>
|
|
93
|
+
<p class="text-lg text-gray-500 dark:text-gray-400">
|
|
94
|
+
Flowbite Svelte is also based on the core <A href="https://flowbite.com">Flowbite</A> UI component library the also features interactive UI components like dropdowns, modals, navbars, and more.
|
|
95
|
+
</p>
|
|
96
|
+
</div>
|
|
97
|
+
</Row>
|
|
98
|
+
</Section>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import Button from '$lib/buttons/Button.svelte';
|
|
3
|
+
import type { PageData } from '../$types';
|
|
4
|
+
import CompoCard from '../utils/CompoCard.svelte';
|
|
5
|
+
import Section from './utils/Section.svelte';
|
|
6
|
+
|
|
7
|
+
export let data: PageData;
|
|
8
|
+
|
|
9
|
+
let components = [...data.posts.forms, ...data.posts.components, ...data.posts.typography, ...data.posts.experimental].sort((a, b) => a.meta.component_title.localeCompare(b.meta.component_title));
|
|
10
|
+
|
|
11
|
+
const INIT_COUNT = 18;
|
|
12
|
+
let expanded: boolean = false;
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<Section class="flex flex-col gap-8 sm:gap-12 lg:pt-24">
|
|
16
|
+
<div class="flex flex-col items-center gap-4 sm:gap-4">
|
|
17
|
+
<h2 class="tracking-tight font-extrabold text-3xl lg:text-4xl text-gray-900 dark:text-white">Svelte UI components</h2>
|
|
18
|
+
<p class="text-lg font-normal text-gray-500 dark:text-gray-400 max-w-3xl mx-auto text-center">
|
|
19
|
+
Explore the whole collection of <span class="font-medium text-gray-900 dark:text-white">
|
|
20
|
+
over {components.length} open-source
|
|
21
|
+
</span>
|
|
22
|
+
UI components and interactive elements built with Svelte and Flowbite
|
|
23
|
+
</p>
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
<div class="grid grid-cols-1 gap-4 sm:gap-8 sm:grid-cols-2 xl:grid-cols-3">
|
|
27
|
+
{#each components.slice(0, INIT_COUNT) as { path, meta: { dir, component_title, thumnailSize } } (dir + path)}
|
|
28
|
+
<CompoCard name={component_title} {thumnailSize} {dir} {path} />
|
|
29
|
+
{/each}
|
|
30
|
+
{#if expanded}
|
|
31
|
+
{#each components.slice(INIT_COUNT) as { path, meta: { dir, component_title, thumnailSize } } (dir + path)}
|
|
32
|
+
<CompoCard name={component_title} {thumnailSize} {dir} {path} />
|
|
33
|
+
{/each}
|
|
34
|
+
{/if}
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
{#if !expanded}
|
|
38
|
+
<div class="w-full flex justify-center mb-4">
|
|
39
|
+
<Button size="md" class="whitespace-nowrap hover:text-primary-600 focus:text-primary-600" color="alternative" on:click={() => (expanded = true)}>View all components</Button>
|
|
40
|
+
</div>
|
|
41
|
+
{/if}
|
|
42
|
+
</Section>
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import Avatar from '$lib/avatar/Avatar.svelte';
|
|
3
|
+
import Tooltip from '$lib/tooltips/Tooltip.svelte';
|
|
4
|
+
import { ChevronRightSolid } from 'flowbite-svelte-icons';
|
|
5
|
+
import Community from '../utils/icons/Community.svelte';
|
|
6
|
+
import type { PageData } from '../$types';
|
|
7
|
+
import Section from './utils/Section.svelte';
|
|
8
|
+
|
|
9
|
+
export let data: PageData;
|
|
10
|
+
|
|
11
|
+
let name: string;
|
|
12
|
+
function on_show(e: CustomEvent<any>) {
|
|
13
|
+
if (e?.target instanceof HTMLElement) {
|
|
14
|
+
name = e?.target?.dataset.name ?? '';
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<Section class="lg:py-24">
|
|
20
|
+
<!-- containter -->
|
|
21
|
+
<div class="flex flex-col gap-12 items-center w-full max-w-7xl mx-auto">
|
|
22
|
+
<!-- heading -->
|
|
23
|
+
<div class="flex flex-col gap-4 items-center justify-center max-w-2xl">
|
|
24
|
+
<h2 class="tracking-tight text-center text-3xl lg:text-4xl font-extrabold text-gray-900 dark:text-white">Community contributors</h2>
|
|
25
|
+
<p class="text-lg font-normal text-center">Join the open-source community by contributing to the Flowbite Svelte Library and become one of the highlighted members</p>
|
|
26
|
+
</div>
|
|
27
|
+
<!-- avatars -->
|
|
28
|
+
<div class="flex flex-col gap-3 max-w-5xl px-4 lg:px-8">
|
|
29
|
+
<div class="flex flex-wrap items-center justify-center gap-3">
|
|
30
|
+
{#if data?.contributors}
|
|
31
|
+
{#each data?.contributors || [] as contributor}
|
|
32
|
+
<a href={contributor.html_url} rel="nofollow noreferrer" target="_blank">
|
|
33
|
+
<Avatar data-name={contributor.login} src={contributor.avatar_url} class="w-8 h-8 sm:w-12 sm:h-12 lg:w-16 lg:h-16" />
|
|
34
|
+
</a>
|
|
35
|
+
{/each}
|
|
36
|
+
{/if}
|
|
37
|
+
</div>
|
|
38
|
+
<Tooltip triggeredBy="[data-name]" on:show={on_show}>{name}</Tooltip>
|
|
39
|
+
</div>
|
|
40
|
+
<div class="flex flex-row items-center justify-between w-full max-w-5xl lg:px-4">
|
|
41
|
+
<div class="flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4 sm:gap-8 w-full p-4 bg-gray-50 dark:bg-gray-800 rounded-lg">
|
|
42
|
+
<div class="hidden lg:block lg:w-fit">
|
|
43
|
+
<Community />
|
|
44
|
+
</div>
|
|
45
|
+
<div class="flex flex-col w-full">
|
|
46
|
+
<h2 class="tracking-tight text-xl font-bold text-left text-gray-900 dark:text-white">Join the community</h2>
|
|
47
|
+
<p>Become a member of a community of developers supporting by Flowbite</p>
|
|
48
|
+
</div>
|
|
49
|
+
<a class="flex gap-2 items-center text-primary-700 text-base font-medium whitespace-nowrap hover:underline" href="http://github.com/themesberg/flowbite-svelte">
|
|
50
|
+
See our repository <ChevronRightSolid class="w-3 h-3" />
|
|
51
|
+
</a>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
</Section>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import Button from '$lib/buttons/Button.svelte';
|
|
3
|
+
import ArrowRight from '../utils/icons/ArrowRight.svelte';
|
|
4
|
+
import Figma from '../utils/icons/Figma.svelte';
|
|
5
|
+
import FlowbiteLogo from '../utils/icons/FlowbiteLogo.svelte';
|
|
6
|
+
import Section from './utils/Section.svelte';
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<Section tinted class="lg:py-24">
|
|
10
|
+
<div class="mx-auto max-w-8xl items-start justify-between gap-24 py-1 grid grid-cols-1 lg:grid-cols-2">
|
|
11
|
+
<div class="flex flex-col gap-8">
|
|
12
|
+
<div class="flex flex-col items-start gap-6">
|
|
13
|
+
<h2 class="leading-none text-3xl lg:text-4xl font-extrabold text-gray-900 dark:text-white">Design with Figma</h2>
|
|
14
|
+
<p class="text-lg">Track work across the enterprise through an open, collaborative platform. Link issues across Jira and ingest data from other software development tools.</p>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="flex flex-col items-center gap-4">
|
|
17
|
+
<p class="self-stretch">Our design system is being used by a large number of devs:</p>
|
|
18
|
+
<div class="flex flex-col items-start gap-4 isolate self-stretch max-w-l">
|
|
19
|
+
<Button color="light" class="self-stretch max-w-lg !px-4 !justify-start gap-5 sm:gap-7" size="xl" href="https://www.figma.com/file/5pHMkriSz9q98zawojb4mx/flowbite-pro-figma-v2.5.0?node-id=18-0&t=X431WUvSP7jsPiEI-0">
|
|
20
|
+
<Figma /> Preview in Figma
|
|
21
|
+
<div class="ml-auto hidden sm:block"><ArrowRight /></div>
|
|
22
|
+
</Button>
|
|
23
|
+
<Button color="light" class="self-stretch max-w-lg !px-4 !justify-start gap-4 sm:gap-6" size="xl" href="https://flowbite.com/figma/">
|
|
24
|
+
<FlowbiteLogo /> Learn more
|
|
25
|
+
<div class="ml-auto hidden sm:block"><ArrowRight /></div>
|
|
26
|
+
</Button>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="flex-col items-center justify-center hidden h-full lg:flex">
|
|
31
|
+
<div class="relative dark:hidden rounded-xl">
|
|
32
|
+
<img class="max-w-auto w-full" src="/images/figma.png" alt="Header" />
|
|
33
|
+
</div>
|
|
34
|
+
<div class="hidden relative dark:block">
|
|
35
|
+
<img class="max-w-auto rounded-xl w-full" src="/images/figma-dark.png" alt="Header" />
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
</Section>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import Dev from '../utils/icons/Dev.svelte';
|
|
3
|
+
import Reddit from '../utils/icons/Reddit.svelte';
|
|
4
|
+
import YouTubeFull from '../utils/icons/YouTubeFull.svelte';
|
|
5
|
+
import Hunt from '../utils/icons/Hunt.svelte';
|
|
6
|
+
import Combinator from '../utils/icons/Combinator.svelte';
|
|
7
|
+
import Section from './utils/Section.svelte';
|
|
8
|
+
|
|
9
|
+
const features = {
|
|
10
|
+
'#reddit': Reddit,
|
|
11
|
+
'#dev': Dev,
|
|
12
|
+
'#hunt': Hunt,
|
|
13
|
+
'#combinator': Combinator,
|
|
14
|
+
'#youtube': YouTubeFull
|
|
15
|
+
};
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<Section>
|
|
19
|
+
<div class="flex flex-col gap-2">
|
|
20
|
+
<div class="mx-auto text-base tracking-tight lg:hidden mb-4">Featured in:</div>
|
|
21
|
+
<div class="flex flex-wrap items-center gap-8 justify-center lg:hidden">
|
|
22
|
+
{#each Object.entries(features) as [href, comp]}
|
|
23
|
+
<!-- a {href} --><svelte:component this={comp} /><!-- /a -->
|
|
24
|
+
{/each}
|
|
25
|
+
</div>
|
|
26
|
+
<div class="items-center gap-8 justify-center self-stretch py-2 hidden lg:flex flex-wrap">
|
|
27
|
+
<div class="text-base tracking-tight">Featured in:</div>
|
|
28
|
+
{#each Object.entries(features) as [href, comp]}
|
|
29
|
+
<!-- a {href} --><svelte:component this={comp} /><!-- /a -->
|
|
30
|
+
{/each}
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</Section>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import Button from '$lib/buttons/Button.svelte';
|
|
3
|
+
import CopyCliboardInput from '../utils/CopyCliboardInput.svelte';
|
|
4
|
+
import ArrowRight from '../utils/icons/ArrowRight.svelte';
|
|
5
|
+
import Section from './utils/Section.svelte';
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<Section tinted class="lg:py-24">
|
|
9
|
+
<div class="flex flex-col items-center gap-4">
|
|
10
|
+
<div class="flex flex-col flex-start gap-4">
|
|
11
|
+
<h2 class="tracking-tight text-3xl lg:text-4xl font-extrabold text-center text-gray-900 dark:text-white">Get started</h2>
|
|
12
|
+
<p class="max-w-2xl text-lg text-center">Explore our Svelte UI components – easily create clean, accessible web designs. Begin your journey and enhance your projects today.</p>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="mt-4 md:mt-5 sm:flex justify-center sm:justify-start1 w-full">
|
|
15
|
+
<div class="flex flex-col sm:flex-row mx-0 gap-4 sm:gap-6 items-center max-w-2xl">
|
|
16
|
+
<CopyCliboardInput class="bg-white md:!w-80" />
|
|
17
|
+
<Button size="lg" class="gap-2 sm:max-w-sm w-full md:w-fit whitespace-nowrap hover:bg-primary-800" href="/docs/components/accordion" color="primary">
|
|
18
|
+
See our docs <ArrowRight />
|
|
19
|
+
</Button>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</Section>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import Button from '$lib/buttons/Button.svelte';
|
|
3
|
+
import CopyCliboardInput from '../utils/CopyCliboardInput.svelte';
|
|
4
|
+
import ArrowRight from '../utils/icons/ArrowRight.svelte';
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<section class="overflow-hidden mx-auto max-w-8xl flex flex-col pt-6 sm:pt-8 lg:pt-16 pb-6 sm:pb-8 lg:pb-24 px-4 lg:px-20">
|
|
8
|
+
<div class="flex flex-col gap-20">
|
|
9
|
+
<div class="flex items-center gap-10">
|
|
10
|
+
<div class="flex flex-col justify-start gap-10">
|
|
11
|
+
<div class="flex flex-col gap-4 lg:gap-6 text-left">
|
|
12
|
+
<h1 class="text-4xl lg:text-6xl leading-none font-extrabold text-gray-900 dark:text-white max-w-xl">
|
|
13
|
+
<span class="block1 xl:inline">Speed up your web development with</span>
|
|
14
|
+
<span class="block1 text-primary-700 dark:text-primary-700 xl:inline">Flowbite Svelte</span>
|
|
15
|
+
</h1>
|
|
16
|
+
<p class="text-lg lg:text-xl leading-normal text-gray-500 dark:text-gray-400 max-w-xl">Flowbite Svelte is an official Flowbite component library for Svelte. All interactivities are handled by Svelte.</p>
|
|
17
|
+
<div class="mt-4 md:mt-5 sm:flex justify-center sm:justify-start">
|
|
18
|
+
<div class="flex flex-row mx-0 gap-4 sm:gap-6 items-center max-w-2xl">
|
|
19
|
+
<CopyCliboardInput />
|
|
20
|
+
<Button size="lg" class="gap-2 max-w-sm md:w-fit whitespace-nowrap hover:bg-primary-800" href="/docs/pages/quickstart" color="primary">
|
|
21
|
+
Get started <ArrowRight />
|
|
22
|
+
</Button>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
<div class="p-0 hidden xl:block">
|
|
29
|
+
<div class="relative dark:hidden">
|
|
30
|
+
<img class="max-w-2xl" src="/images/gallery.png" alt="Header" />
|
|
31
|
+
</div>
|
|
32
|
+
<div class="hidden relative dark:block">
|
|
33
|
+
<img class="max-w-2xl" src="/images/gallery-dark.png" alt="Header" />
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</section>
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import Avatar from '$lib/avatar/Avatar.svelte';
|
|
3
|
+
import Discord from '../utils/icons/Discord.svelte';
|
|
4
|
+
import Figma from '../utils/icons/Figma.svelte';
|
|
5
|
+
import GitHub from '../utils/icons/GitHub.svelte';
|
|
6
|
+
import Npm from '../utils/icons/Npm.svelte';
|
|
7
|
+
import Quote from '../utils/icons/Quote.svelte';
|
|
8
|
+
import Section from './utils/Section.svelte';
|
|
9
|
+
import { page } from '$app/stores';
|
|
10
|
+
import type { PageData } from '../$types';
|
|
11
|
+
|
|
12
|
+
let data: PageData = $page.data;
|
|
13
|
+
|
|
14
|
+
let github = data.github?.['stargazers_count'] ?? 0;
|
|
15
|
+
let npm = data.npm?.['downloads'] ?? 0;
|
|
16
|
+
let figma = 5400;
|
|
17
|
+
let discord = data.discord?.['approximate_presence_count'] ?? 0;
|
|
18
|
+
|
|
19
|
+
function format(x: number) {
|
|
20
|
+
return x.toLocaleString('en', { notation: 'standard' });
|
|
21
|
+
}
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<Section>
|
|
25
|
+
<div class="flex flex-col lg:flex-row gap-4 lg:gap-20">
|
|
26
|
+
<div class="flex flex-col items-start justify-center gap-3 md:gap-5 w-full lg:mb-0 mb-4">
|
|
27
|
+
<div class="flex flex-col items-start justify-center gap-6 w-full">
|
|
28
|
+
<div class="flex flex-col items-start py-2">
|
|
29
|
+
<Quote />
|
|
30
|
+
</div>
|
|
31
|
+
<div class="flex flex-col items-start justify-center gap-5 max-w-2xl pr-8 self-stretch">
|
|
32
|
+
<p class="leading-relaxed text-lg font-medium text-gray-900 dark:text-white">Flowbite provides a robust set of design tokens and components based on the popular Tailwind CSS framework. From the most used UI components like forms and navigation bars to the whole app screens designed both for desktop and mobile, this UI kit provides a solid foundation for any project.</p>
|
|
33
|
+
<p class="leading-relaxed text-lg font-medium text-gray-900 dark:text-white">Designing with Figma components that can be easily translated to the utility classes of Tailwind CSS is a huge timesaver!</p>
|
|
34
|
+
</div>
|
|
35
|
+
<div class="flex flex-row items-center gap-3.5 self-stretch">
|
|
36
|
+
<Avatar src="/images/eugene.jpg" size="xs" />
|
|
37
|
+
<div class="flex items-center gap-3">
|
|
38
|
+
<span class="leading-tight font-semibold text-gray-900 dark:text-white">Eugene Fedorenko</span>
|
|
39
|
+
<span class="leading-tight font-semibold text-gray-900 dark:text-white">/</span>
|
|
40
|
+
<span class="leading-tight font-normal text-sm">Lead designer at Wildbit</span>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
<div class="flex flex-col items-start gap-6 md:gap-3 w-full">
|
|
46
|
+
<div class="flex flex-row items-start md:justify-between md:pr-16 lg:pr-0 lg:justify-end gap-2 md:gap-2 lg:gap-2 self-stretch">
|
|
47
|
+
<a href="https://github.com/themesberg/flowbite-svelte" class="flex flex-col items-start gap-4 text-gray-400 w-full max-w-[272px] lg:py-6 lg:px-8 hover:bg-gray-50 dark:hover:bg-gray-800 rounded-lg">
|
|
48
|
+
<GitHub />
|
|
49
|
+
<div class="flex flex-col items-start gap-2">
|
|
50
|
+
<p class="leading-tight text-2xl font-bold text-gray-900 dark:text-white">{format(github)}</p>
|
|
51
|
+
<p class="text-sm md:text-base text-gray-500 dark:text-gray-400">Stars on Github</p>
|
|
52
|
+
</div>
|
|
53
|
+
</a>
|
|
54
|
+
<a href="https://npmjs.com/package/flowbite-svelte" class="flex flex-col items-start gap-4 text-gray-400 w-full max-w-[272px] lg:py-6 lg:px-8 hover:bg-gray-50 dark:hover:bg-gray-800 rounded-lg">
|
|
55
|
+
<Npm />
|
|
56
|
+
<div class="flex flex-col mt-1 items-start gap-2">
|
|
57
|
+
<p class="leading-tight text-2xl font-bold text-gray-900 dark:text-white">{format(npm)}</p>
|
|
58
|
+
<p class="text-sm md:text-base text-gray-500 dark:text-gray-400">Downloads on NPM</p>
|
|
59
|
+
</div>
|
|
60
|
+
</a>
|
|
61
|
+
</div>
|
|
62
|
+
<div class="flex flex-row items-start md:justify-between md:pr-16 lg:pr-0 lg:justify-end gap-2 md:gap-12 lg:gap-2 self-stretch">
|
|
63
|
+
<a href="https://www.figma.com/community/file/1179442320711977498" class="flex flex-col items-start gap-4 text-gray-400 w-full max-w-[272px] lg:py-6 lg:px-8 hover:bg-gray-50 dark:hover:bg-gray-800 rounded-lg">
|
|
64
|
+
<Figma />
|
|
65
|
+
<div class="flex flex-col items-start gap-2">
|
|
66
|
+
<p class="leading-tight text-2xl font-bold text-gray-900 dark:text-white">{format(figma)}</p>
|
|
67
|
+
<p class="text-sm md:text-base text-gray-500 dark:text-gray-400">Figma duplicates</p>
|
|
68
|
+
</div>
|
|
69
|
+
</a>
|
|
70
|
+
<a href="https://discord.gg/4eeurUVvTy" rel="nofollow" class="flex flex-col items-start gap-4 text-gray-400 w-full max-w-[272px] lg:py-6 lg:px-8 hover:bg-gray-50 dark:hover:bg-gray-800 rounded-lg">
|
|
71
|
+
<Discord />
|
|
72
|
+
<div class="flex flex-col items-start gap-2">
|
|
73
|
+
<p class="leading-tight text-2xl font-bold text-gray-900 dark:text-white">{format(discord)}</p>
|
|
74
|
+
<p class="text-sm md:text-base text-gray-500 dark:text-gray-400">Discord members online</p>
|
|
75
|
+
</div>
|
|
76
|
+
</a>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
</Section>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<h2 class="leading-tight text-3xl lg:text-4xl font-extrabold text-gray-900 dark:text-white"><slot /></h2>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
export let image: string;
|
|
3
|
+
export let reversed: boolean = false;
|
|
4
|
+
export let divide: boolean = false;
|
|
5
|
+
export let contain: boolean = false;
|
|
6
|
+
export let h_full: boolean = false;
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<div class="flex py-6 lg:py-10 lg:gap-16 self-stretch {reversed ? 'flex-row-reverse' : 'flex-row'}">
|
|
10
|
+
<div class="hidden lg:flex w-1/2 items-center">
|
|
11
|
+
<div class:min-h-full={h_full} class:h-96={!h_full} class="flex-grow bg-no-repeat {contain ? 'bg-contain' : 'bg-cover'} rounded-lg {image}" />
|
|
12
|
+
</div>
|
|
13
|
+
<div class:divide-y={divide} class="flex flex-col items-start gap-4 lg:gap-8 flex-grow w-1/2 dark:divide-gray-700">
|
|
14
|
+
<slot />
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<script context="module">
|
|
2
|
+
import code from './code.svelte';
|
|
3
|
+
import h2 from './h2.svelte';
|
|
4
|
+
import h3 from './h3.svelte';
|
|
5
|
+
export { h2, h3, code };
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<script>
|
|
9
|
+
import Footer from '../../utils/Footer.svelte';
|
|
10
|
+
import MetaTag from '../../utils/MetaTag.svelte';
|
|
11
|
+
import Newsletter from '../../utils/Newsletter.svelte';
|
|
12
|
+
import PageHeadSection from '../../utils/PageHeadSection.svelte';
|
|
13
|
+
import Paging from '../../utils/Paging.svelte';
|
|
14
|
+
import Toc from '../../utils/Toc.svelte';
|
|
15
|
+
import { extract } from './Anchor.svelte';
|
|
16
|
+
|
|
17
|
+
export let /** @type {string} */ title;
|
|
18
|
+
export let /** @type {string} */ breadcrumb_title;
|
|
19
|
+
export let /** @type {string} */ component_title = '';
|
|
20
|
+
export let /** @type {string} */ dir;
|
|
21
|
+
export let /** @type {string} */ description;
|
|
22
|
+
export let /** @type {string} */ layout = '';
|
|
23
|
+
|
|
24
|
+
// calm down `unused export property` warrning
|
|
25
|
+
layout;
|
|
26
|
+
component_title;
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<MetaTag {breadcrumb_title} {title} {dir} {description} />
|
|
30
|
+
|
|
31
|
+
<div class="flex w-full">
|
|
32
|
+
<div class="flex flex-col max-w-4xl mx-auto px-4 min-w-0 pt-6 lg:px-8 lg:pt-8 pb:12 xl:pb-24 lg:pb-16 divide-y divide-gray-200 dark:divide-gray-800">
|
|
33
|
+
<PageHeadSection {dir} {breadcrumb_title} {title} {description} />
|
|
34
|
+
<div id="mainContent" class="py-8">
|
|
35
|
+
<slot />
|
|
36
|
+
<Paging />
|
|
37
|
+
</div>
|
|
38
|
+
<Newsletter />
|
|
39
|
+
<Footer />
|
|
40
|
+
</div>
|
|
41
|
+
<Toc {extract} headingSelector="#mainContent > :where(h2, h3)" />
|
|
42
|
+
</div>
|
|
43
|
+
|
|
44
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<script lang="ts" context="module">
|
|
2
|
+
import type { LinkType } from '$lib/types';
|
|
3
|
+
|
|
4
|
+
export function extract(x: HTMLElement): LinkType {
|
|
5
|
+
if (x.firstElementChild) return { rel: x.tagName, href: '#' + x.firstElementChild?.id, name: x?.firstChild?.nodeValue ?? '' };
|
|
6
|
+
return { name: '' };
|
|
7
|
+
}
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<script lang="ts">
|
|
11
|
+
import { twMerge } from 'tailwind-merge';
|
|
12
|
+
|
|
13
|
+
export let tag: string;
|
|
14
|
+
|
|
15
|
+
let content: string, slug: string;
|
|
16
|
+
|
|
17
|
+
function init(node: HTMLElement) {
|
|
18
|
+
content = node.firstChild?.nodeValue ?? '';
|
|
19
|
+
slug = content.replace(/\s/g, '_');
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
$: elemClass = twMerge('relative group', $$props.class);
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<svelte:element this={tag} {...$$restProps} class={elemClass} use:init>
|
|
26
|
+
<slot />
|
|
27
|
+
<span id={slug} class="absolute -top-[140px]" />
|
|
28
|
+
<a class="ml-2 text-primary-700 opacity-0 transition-opacity dark:text-primary-700 group-hover:opacity-100" href="#{slug}" aria-label="Link to this section: {content}"> # </a>
|
|
29
|
+
</svelte:element>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<code class="text-primary-700 dark:text-primary-700"><slot /></code>
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { browser } from '$app/environment';
|
|
3
|
+
import { onMount } from 'svelte';
|
|
4
|
+
import docsearch from '@docsearch/js';
|
|
5
|
+
|
|
6
|
+
let searchContainer: HTMLElement;
|
|
7
|
+
|
|
8
|
+
onMount(() => {
|
|
9
|
+
if (browser) {
|
|
10
|
+
// Algolia docsearch
|
|
11
|
+
docsearch({
|
|
12
|
+
container: searchContainer,
|
|
13
|
+
appId: 'JWUQIZ9PGE',
|
|
14
|
+
indexName: 'flowbite-svelte',
|
|
15
|
+
apiKey: 'db6396bd138ab613540d2a2bc07f958d',
|
|
16
|
+
placeholder: 'Search documentation'
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<div bind:this={searchContainer} id="docsearch" class="ml-3 xl:pl-4" />
|