@xbg.solutions/create-frontend 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/xbg-frontend.cjs +32 -0
- package/package.json +17 -3
- package/src/commands/add.cjs +470 -0
- package/src/commands/generate.cjs +24 -0
- package/src/manifest.json +1578 -0
- package/src/registry/advanced/ChartWrapper.svelte +587 -0
- package/src/registry/advanced/DataTable.svelte +645 -0
- package/src/registry/advanced/FormWizard.svelte +546 -0
- package/src/registry/advanced/ImageUpload.svelte +663 -0
- package/src/registry/advanced/index.ts +33 -0
- package/src/registry/atoms/calendar/Calendar.svelte +181 -0
- package/src/registry/atoms/calendar/index.ts +1 -0
- package/src/registry/atoms/dialog/Dialog.svelte +179 -0
- package/src/registry/atoms/dialog/DialogDescription.svelte +16 -0
- package/src/registry/atoms/dialog/DialogFooter.svelte +16 -0
- package/src/registry/atoms/dialog/DialogHeader.svelte +16 -0
- package/src/registry/atoms/dialog/DialogTitle.svelte +16 -0
- package/src/registry/atoms/dialog/index.ts +10 -0
- package/src/registry/atoms/icon/BrandIcon.svelte +47 -0
- package/src/registry/atoms/icon/DynamicIcon.svelte +49 -0
- package/src/registry/atoms/icon/index.ts +2 -0
- package/src/registry/atoms/legend/Legend.svelte +32 -0
- package/src/registry/atoms/legend/index.ts +1 -0
- package/src/registry/atoms/menu/MenuItem.svelte +85 -0
- package/src/registry/atoms/menu/index.ts +1 -0
- package/src/registry/atoms/message/Message.svelte +62 -0
- package/src/registry/atoms/message/index.ts +1 -0
- package/src/registry/atoms/nav/NavItem.svelte +67 -0
- package/src/registry/atoms/nav/index.ts +1 -0
- package/src/registry/atoms/notification-badge/NotificationBadge.svelte +30 -0
- package/src/registry/atoms/notification-badge/index.ts +1 -0
- package/src/registry/atoms/otp-input/OtpInput.svelte +108 -0
- package/src/registry/atoms/otp-input/index.ts +1 -0
- package/src/registry/atoms/select/Select.svelte +216 -0
- package/src/registry/atoms/select/index.ts +6 -0
- package/src/registry/atoms/settings-card/SettingsCard.svelte +48 -0
- package/src/registry/atoms/settings-card/index.ts +1 -0
- package/src/registry/atoms/sidebar-item/SidebarItem.svelte +90 -0
- package/src/registry/atoms/sidebar-item/index.ts +1 -0
- package/src/registry/atoms/statistic-card/StatisticCard.svelte +53 -0
- package/src/registry/atoms/statistic-card/index.ts +1 -0
- package/src/registry/atoms/text-editor/TextEditor.svelte +77 -0
- package/src/registry/atoms/text-editor/index.ts +1 -0
- package/src/registry/atoms/uploader/Uploader.svelte +102 -0
- package/src/registry/atoms/uploader/index.ts +1 -0
- package/src/registry/atoms/user-item/UserItem.svelte +39 -0
- package/src/registry/atoms/user-item/index.ts +1 -0
- package/src/registry/blocks/account-section/AccountSection01.svelte +112 -0
- package/src/registry/blocks/account-section/AccountSection02.svelte +190 -0
- package/src/registry/blocks/account-section/AccountSection03.svelte +161 -0
- package/src/registry/blocks/account-section/AccountSection04.svelte +164 -0
- package/src/registry/blocks/account-section/AccountSection05.svelte +76 -0
- package/src/registry/blocks/account-section/index.ts +5 -0
- package/src/registry/blocks/app-shell/AppShell01.svelte +74 -0
- package/src/registry/blocks/app-shell/AppShell02.svelte +87 -0
- package/src/registry/blocks/app-shell/AppShell03.svelte +79 -0
- package/src/registry/blocks/app-shell/AppShell04.svelte +177 -0
- package/src/registry/blocks/app-shell/index.ts +4 -0
- package/src/registry/blocks/auth/AuthSplitScreen.svelte +132 -0
- package/src/registry/blocks/auth/LoginBlock01.svelte +94 -0
- package/src/registry/blocks/auth/LoginBlock02.svelte +103 -0
- package/src/registry/blocks/auth/LoginBlock03.svelte +53 -0
- package/src/registry/blocks/auth/LoginBlock04.svelte +99 -0
- package/src/registry/blocks/auth/LoginBlock05.svelte +101 -0
- package/src/registry/blocks/auth/OtpBlock01.svelte +115 -0
- package/src/registry/blocks/auth/OtpBlock02.svelte +113 -0
- package/src/registry/blocks/auth/OtpBlock03.svelte +143 -0
- package/src/registry/blocks/auth/OtpBlock04.svelte +122 -0
- package/src/registry/blocks/auth/OtpBlock05.svelte +81 -0
- package/src/registry/blocks/auth/SignupBlock01.svelte +103 -0
- package/src/registry/blocks/auth/SignupBlock02.svelte +94 -0
- package/src/registry/blocks/auth/SignupBlock03.svelte +120 -0
- package/src/registry/blocks/auth/SignupBlock04.svelte +112 -0
- package/src/registry/blocks/auth/SignupBlock05.svelte +77 -0
- package/src/registry/blocks/auth/index.ts +31 -0
- package/src/registry/blocks/banner/Banner01.svelte +67 -0
- package/src/registry/blocks/banner/Banner02.svelte +61 -0
- package/src/registry/blocks/banner/Banner03.svelte +54 -0
- package/src/registry/blocks/banner/Banner04.svelte +49 -0
- package/src/registry/blocks/banner/Banner05.svelte +47 -0
- package/src/registry/blocks/banner/index.ts +5 -0
- package/src/registry/blocks/bento-grid/BentoGrid01.svelte +92 -0
- package/src/registry/blocks/bento-grid/BentoGrid02.svelte +79 -0
- package/src/registry/blocks/bento-grid/BentoGrid03.svelte +79 -0
- package/src/registry/blocks/bento-grid/BentoGrid04.svelte +58 -0
- package/src/registry/blocks/bento-grid/BentoGrid05.svelte +92 -0
- package/src/registry/blocks/bento-grid/BentoGrid06.svelte +42 -0
- package/src/registry/blocks/bento-grid/index.ts +14 -0
- package/src/registry/blocks/blog-section/BlogSection01.svelte +100 -0
- package/src/registry/blocks/blog-section/BlogSection02.svelte +93 -0
- package/src/registry/blocks/blog-section/BlogSection03.svelte +92 -0
- package/src/registry/blocks/blog-section/BlogSection04.svelte +97 -0
- package/src/registry/blocks/blog-section/BlogSection05.svelte +120 -0
- package/src/registry/blocks/blog-section/index.ts +15 -0
- package/src/registry/blocks/buttons/ButtonBookmark.svelte +37 -0
- package/src/registry/blocks/buttons/ButtonLike.svelte +37 -0
- package/src/registry/blocks/buttons/ButtonMenu.svelte +37 -0
- package/src/registry/blocks/buttons/ButtonSplitDropdown.svelte +46 -0
- package/src/registry/blocks/buttons/ButtonStepper.svelte +55 -0
- package/src/registry/blocks/buttons/ButtonSteps.svelte +73 -0
- package/src/registry/blocks/buttons/ButtonToggleGroup.svelte +35 -0
- package/src/registry/blocks/buttons/ButtonsGroup.svelte +63 -0
- package/src/registry/blocks/buttons/SocialButtonsHorizontal.svelte +41 -0
- package/src/registry/blocks/buttons/SocialButtonsVertical.svelte +53 -0
- package/src/registry/blocks/buttons/index.ts +10 -0
- package/src/registry/blocks/calendar/CalendarBlock01.svelte +169 -0
- package/src/registry/blocks/calendar/CalendarBlock02.svelte +133 -0
- package/src/registry/blocks/calendar/CalendarBlock03.svelte +194 -0
- package/src/registry/blocks/calendar/CalendarBlock04.svelte +96 -0
- package/src/registry/blocks/calendar/CalendarBlock05.svelte +97 -0
- package/src/registry/blocks/calendar/CalendarBlock06.svelte +98 -0
- package/src/registry/blocks/calendar/CalendarBlock07.svelte +109 -0
- package/src/registry/blocks/calendar/CalendarBlock08.svelte +71 -0
- package/src/registry/blocks/calendar/CalendarBlock09.svelte +99 -0
- package/src/registry/blocks/calendar/CalendarBlock10.svelte +88 -0
- package/src/registry/blocks/calendar/CalendarBlock11.svelte +99 -0
- package/src/registry/blocks/calendar/CalendarBlock12.svelte +121 -0
- package/src/registry/blocks/calendar/CalendarBlock13.svelte +92 -0
- package/src/registry/blocks/calendar/CalendarBlock14.svelte +71 -0
- package/src/registry/blocks/calendar/CalendarBlock15.svelte +96 -0
- package/src/registry/blocks/calendar/CalendarBlock16.svelte +98 -0
- package/src/registry/blocks/calendar/CalendarBlock17.svelte +88 -0
- package/src/registry/blocks/calendar/CalendarBlock18.svelte +84 -0
- package/src/registry/blocks/calendar/CalendarBlock19.svelte +105 -0
- package/src/registry/blocks/calendar/CalendarBlock20.svelte +78 -0
- package/src/registry/blocks/calendar/CalendarBlock21.svelte +115 -0
- package/src/registry/blocks/calendar/CalendarBlock22.svelte +136 -0
- package/src/registry/blocks/calendar/CalendarBlock23.svelte +112 -0
- package/src/registry/blocks/calendar/CalendarBlock24.svelte +116 -0
- package/src/registry/blocks/calendar/CalendarBlock25.svelte +144 -0
- package/src/registry/blocks/calendar/CalendarBlock26.svelte +163 -0
- package/src/registry/blocks/calendar/CalendarBlock27.svelte +112 -0
- package/src/registry/blocks/calendar/CalendarBlock28.svelte +109 -0
- package/src/registry/blocks/calendar/CalendarBlock29.svelte +126 -0
- package/src/registry/blocks/calendar/CalendarBlock30.svelte +122 -0
- package/src/registry/blocks/calendar/CalendarBlock31.svelte +161 -0
- package/src/registry/blocks/calendar/CalendarBlock32.svelte +154 -0
- package/src/registry/blocks/calendar/index.ts +32 -0
- package/src/registry/blocks/card/Card01.svelte +69 -0
- package/src/registry/blocks/card/Card02.svelte +50 -0
- package/src/registry/blocks/card/Card03.svelte +60 -0
- package/src/registry/blocks/card/Card04.svelte +89 -0
- package/src/registry/blocks/card/Card05.svelte +51 -0
- package/src/registry/blocks/card/Card06.svelte +77 -0
- package/src/registry/blocks/card/Card07.svelte +35 -0
- package/src/registry/blocks/card/Card08.svelte +36 -0
- package/src/registry/blocks/card/index.ts +8 -0
- package/src/registry/blocks/cart/Cart01.svelte +183 -0
- package/src/registry/blocks/cart/Cart02.svelte +103 -0
- package/src/registry/blocks/cart/Cart03.svelte +38 -0
- package/src/registry/blocks/cart/Cart04.svelte +174 -0
- package/src/registry/blocks/cart/index.ts +4 -0
- package/src/registry/blocks/checkout/Checkout01.svelte +237 -0
- package/src/registry/blocks/checkout/Checkout02.svelte +205 -0
- package/src/registry/blocks/checkout/Checkout03.svelte +189 -0
- package/src/registry/blocks/checkout/Checkout04.svelte +109 -0
- package/src/registry/blocks/checkout/index.ts +4 -0
- package/src/registry/blocks/comparison-section/ComparisonSection01.svelte +116 -0
- package/src/registry/blocks/comparison-section/ComparisonSection02.svelte +98 -0
- package/src/registry/blocks/comparison-section/ComparisonSection03.svelte +93 -0
- package/src/registry/blocks/comparison-section/ComparisonSection04.svelte +98 -0
- package/src/registry/blocks/comparison-section/ComparisonSection05.svelte +119 -0
- package/src/registry/blocks/comparison-section/ComparisonSection06.svelte +154 -0
- package/src/registry/blocks/comparison-section/index.ts +6 -0
- package/src/registry/blocks/contact-section/ContactSection01.svelte +64 -0
- package/src/registry/blocks/contact-section/ContactSection02.svelte +108 -0
- package/src/registry/blocks/contact-section/ContactSection03.svelte +64 -0
- package/src/registry/blocks/contact-section/ContactSection04.svelte +30 -0
- package/src/registry/blocks/contact-section/ContactSection05.svelte +71 -0
- package/src/registry/blocks/contact-section/ContactSection06.svelte +88 -0
- package/src/registry/blocks/contact-section/index.ts +6 -0
- package/src/registry/blocks/cta/CTA01.svelte +44 -0
- package/src/registry/blocks/cta/CTA02.svelte +48 -0
- package/src/registry/blocks/cta/CTA03.svelte +53 -0
- package/src/registry/blocks/cta/CTA04.svelte +60 -0
- package/src/registry/blocks/cta/CTA05.svelte +53 -0
- package/src/registry/blocks/cta/CTA06.svelte +44 -0
- package/src/registry/blocks/cta/CTA07.svelte +39 -0
- package/src/registry/blocks/cta/index.ts +7 -0
- package/src/registry/blocks/dashboard/ChartsBlock01.svelte +275 -0
- package/src/registry/blocks/dashboard/DashboardBlock01.svelte +207 -0
- package/src/registry/blocks/dashboard/DashboardBlock02.svelte +259 -0
- package/src/registry/blocks/dashboard/DashboardBlock03.svelte +315 -0
- package/src/registry/blocks/dashboard/DashboardBlock04.svelte +220 -0
- package/src/registry/blocks/dashboard/DashboardBlock05.svelte +158 -0
- package/src/registry/blocks/dashboard/DashboardBlock06.svelte +173 -0
- package/src/registry/blocks/dashboard/DashboardBlock07.svelte +103 -0
- package/src/registry/blocks/dashboard/index.ts +16 -0
- package/src/registry/blocks/description-list/DescriptionList01.svelte +75 -0
- package/src/registry/blocks/description-list/DescriptionList02.svelte +50 -0
- package/src/registry/blocks/description-list/DescriptionList03.svelte +74 -0
- package/src/registry/blocks/description-list/DescriptionList04.svelte +88 -0
- package/src/registry/blocks/description-list/index.ts +4 -0
- package/src/registry/blocks/empty-lp/EmptyLP01.svelte +46 -0
- package/src/registry/blocks/empty-lp/EmptyLP02.svelte +49 -0
- package/src/registry/blocks/empty-lp/EmptyLP03.svelte +61 -0
- package/src/registry/blocks/empty-lp/EmptyLP04.svelte +37 -0
- package/src/registry/blocks/empty-lp/index.ts +4 -0
- package/src/registry/blocks/empty-section/EmptySection01.svelte +47 -0
- package/src/registry/blocks/empty-section/EmptySection02.svelte +93 -0
- package/src/registry/blocks/empty-section/EmptySection03.svelte +101 -0
- package/src/registry/blocks/empty-section/EmptySection04.svelte +76 -0
- package/src/registry/blocks/empty-section/index.ts +4 -0
- package/src/registry/blocks/faq-section/FaqSection01.svelte +114 -0
- package/src/registry/blocks/faq-section/FaqSection02.svelte +137 -0
- package/src/registry/blocks/faq-section/FaqSection03.svelte +107 -0
- package/src/registry/blocks/faq-section/FaqSection04.svelte +74 -0
- package/src/registry/blocks/faq-section/FaqSection05.svelte +69 -0
- package/src/registry/blocks/faq-section/index.ts +11 -0
- package/src/registry/blocks/feature-section/FeatureSection01.svelte +94 -0
- package/src/registry/blocks/feature-section/FeatureSection02.svelte +61 -0
- package/src/registry/blocks/feature-section/FeatureSection03.svelte +85 -0
- package/src/registry/blocks/feature-section/FeatureSection04.svelte +67 -0
- package/src/registry/blocks/feature-section/FeatureSection05.svelte +61 -0
- package/src/registry/blocks/feature-section/FeatureSection06.svelte +58 -0
- package/src/registry/blocks/feature-section/FeatureSection07.svelte +79 -0
- package/src/registry/blocks/feature-section/FeatureSection08.svelte +92 -0
- package/src/registry/blocks/feature-section/FeatureSection09.svelte +58 -0
- package/src/registry/blocks/feature-section/FeatureSection10.svelte +87 -0
- package/src/registry/blocks/feature-section/FeatureSection11.svelte +118 -0
- package/src/registry/blocks/feature-section/FeatureSection12.svelte +76 -0
- package/src/registry/blocks/feature-section/FeatureSection13.svelte +88 -0
- package/src/registry/blocks/feature-section/FeatureSection14.svelte +119 -0
- package/src/registry/blocks/feature-section/FeatureSection15.svelte +122 -0
- package/src/registry/blocks/feature-section/FeatureSection16.svelte +113 -0
- package/src/registry/blocks/feature-section/FeatureSection17.svelte +93 -0
- package/src/registry/blocks/feature-section/FeatureSection18.svelte +97 -0
- package/src/registry/blocks/feature-section/FeatureSection19.svelte +74 -0
- package/src/registry/blocks/feature-section/FeatureSection20.svelte +69 -0
- package/src/registry/blocks/feature-section/index.ts +20 -0
- package/src/registry/blocks/footer/Footer01.svelte +62 -0
- package/src/registry/blocks/footer/Footer02.svelte +67 -0
- package/src/registry/blocks/footer/Footer03.svelte +87 -0
- package/src/registry/blocks/footer/Footer04.svelte +67 -0
- package/src/registry/blocks/footer/Footer05.svelte +20 -0
- package/src/registry/blocks/footer/Footer06.svelte +107 -0
- package/src/registry/blocks/footer/Footer07.svelte +88 -0
- package/src/registry/blocks/footer/Footer08.svelte +84 -0
- package/src/registry/blocks/footer/Footer09.svelte +65 -0
- package/src/registry/blocks/footer/index.ts +19 -0
- package/src/registry/blocks/forms/SettingsBlock.svelte +329 -0
- package/src/registry/blocks/forms/index.ts +1 -0
- package/src/registry/blocks/gallery-section/GallerySection01.svelte +43 -0
- package/src/registry/blocks/gallery-section/GallerySection02.svelte +45 -0
- package/src/registry/blocks/gallery-section/GallerySection03.svelte +43 -0
- package/src/registry/blocks/gallery-section/GallerySection04.svelte +49 -0
- package/src/registry/blocks/gallery-section/GallerySection05.svelte +45 -0
- package/src/registry/blocks/gallery-section/GallerySection06.svelte +49 -0
- package/src/registry/blocks/gallery-section/GallerySection07.svelte +48 -0
- package/src/registry/blocks/gallery-section/GallerySection08.svelte +43 -0
- package/src/registry/blocks/gallery-section/GallerySection09.svelte +55 -0
- package/src/registry/blocks/gallery-section/GallerySection10.svelte +43 -0
- package/src/registry/blocks/gallery-section/GallerySection11.svelte +75 -0
- package/src/registry/blocks/gallery-section/GallerySection12.svelte +76 -0
- package/src/registry/blocks/gallery-section/index.ts +12 -0
- package/src/registry/blocks/header-section/HeaderSection01.svelte +53 -0
- package/src/registry/blocks/header-section/HeaderSection02.svelte +53 -0
- package/src/registry/blocks/header-section/HeaderSection03.svelte +61 -0
- package/src/registry/blocks/header-section/HeaderSection04.svelte +63 -0
- package/src/registry/blocks/header-section/HeaderSection05.svelte +53 -0
- package/src/registry/blocks/header-section/HeaderSection06.svelte +70 -0
- package/src/registry/blocks/header-section/HeaderSection07.svelte +97 -0
- package/src/registry/blocks/header-section/HeaderSection08.svelte +61 -0
- package/src/registry/blocks/header-section/HeaderSection09.svelte +53 -0
- package/src/registry/blocks/header-section/HeaderSection10.svelte +63 -0
- package/src/registry/blocks/header-section/HeaderSection11.svelte +68 -0
- package/src/registry/blocks/header-section/HeaderSection12.svelte +60 -0
- package/src/registry/blocks/header-section/HeaderSection13.svelte +92 -0
- package/src/registry/blocks/header-section/HeaderSection14.svelte +77 -0
- package/src/registry/blocks/header-section/HeaderSection15.svelte +49 -0
- package/src/registry/blocks/header-section/HeaderSection16.svelte +74 -0
- package/src/registry/blocks/header-section/HeaderSection17.svelte +58 -0
- package/src/registry/blocks/header-section/HeaderSection18.svelte +66 -0
- package/src/registry/blocks/header-section/HeaderSection19.svelte +47 -0
- package/src/registry/blocks/header-section/HeaderSection20.svelte +53 -0
- package/src/registry/blocks/header-section/index.ts +20 -0
- package/src/registry/blocks/hero-section/HeroSection01.svelte +69 -0
- package/src/registry/blocks/hero-section/HeroSection02.svelte +47 -0
- package/src/registry/blocks/hero-section/HeroSection03.svelte +56 -0
- package/src/registry/blocks/hero-section/HeroSection04.svelte +69 -0
- package/src/registry/blocks/hero-section/HeroSection05.svelte +73 -0
- package/src/registry/blocks/hero-section/HeroSection06.svelte +78 -0
- package/src/registry/blocks/hero-section/HeroSection07.svelte +48 -0
- package/src/registry/blocks/hero-section/HeroSection08.svelte +73 -0
- package/src/registry/blocks/hero-section/HeroSection09.svelte +51 -0
- package/src/registry/blocks/hero-section/HeroSection10.svelte +47 -0
- package/src/registry/blocks/hero-section/HeroSection11.svelte +60 -0
- package/src/registry/blocks/hero-section/HeroSection12.svelte +74 -0
- package/src/registry/blocks/hero-section/HeroSection13.svelte +86 -0
- package/src/registry/blocks/hero-section/HeroSection14.svelte +116 -0
- package/src/registry/blocks/hero-section/HeroSection15.svelte +75 -0
- package/src/registry/blocks/hero-section/HeroSection16.svelte +92 -0
- package/src/registry/blocks/hero-section/HeroSection17.svelte +78 -0
- package/src/registry/blocks/hero-section/HeroSection18.svelte +82 -0
- package/src/registry/blocks/hero-section/HeroSection19.svelte +72 -0
- package/src/registry/blocks/hero-section/HeroSection20.svelte +79 -0
- package/src/registry/blocks/hero-section/HeroSection21.svelte +75 -0
- package/src/registry/blocks/hero-section/HeroSection22.svelte +103 -0
- package/src/registry/blocks/hero-section/index.ts +22 -0
- package/src/registry/blocks/logo-section/LogoSection01.svelte +54 -0
- package/src/registry/blocks/logo-section/LogoSection02.svelte +56 -0
- package/src/registry/blocks/logo-section/LogoSection03.svelte +58 -0
- package/src/registry/blocks/logo-section/LogoSection04.svelte +58 -0
- package/src/registry/blocks/logo-section/LogoSection05.svelte +43 -0
- package/src/registry/blocks/logo-section/LogoSection06.svelte +43 -0
- package/src/registry/blocks/logo-section/LogoSection07.svelte +56 -0
- package/src/registry/blocks/logo-section/index.ts +7 -0
- package/src/registry/blocks/lp-navbar/LPNavbar01.svelte +94 -0
- package/src/registry/blocks/lp-navbar/LPNavbar02.svelte +96 -0
- package/src/registry/blocks/lp-navbar/LPNavbar03.svelte +97 -0
- package/src/registry/blocks/lp-navbar/LPNavbar04.svelte +103 -0
- package/src/registry/blocks/lp-navbar/LPNavbar05.svelte +173 -0
- package/src/registry/blocks/lp-navbar/LPNavbar06.svelte +200 -0
- package/src/registry/blocks/lp-navbar/LPNavbar07.svelte +202 -0
- package/src/registry/blocks/lp-navbar/index.ts +7 -0
- package/src/registry/blocks/mail/MailBlock.svelte +321 -0
- package/src/registry/blocks/mail/index.ts +2 -0
- package/src/registry/blocks/music/MusicBlock.svelte +239 -0
- package/src/registry/blocks/music/index.ts +1 -0
- package/src/registry/blocks/navbar/Navbar01.svelte +234 -0
- package/src/registry/blocks/navbar/Navbar02.svelte +111 -0
- package/src/registry/blocks/navbar/Navbar03.svelte +88 -0
- package/src/registry/blocks/navbar/index.ts +3 -0
- package/src/registry/blocks/not-found/NotFound01.svelte +29 -0
- package/src/registry/blocks/not-found/NotFound02.svelte +28 -0
- package/src/registry/blocks/not-found/NotFound03.svelte +25 -0
- package/src/registry/blocks/not-found/index.ts +3 -0
- package/src/registry/blocks/order-history/OrderHistory01.svelte +208 -0
- package/src/registry/blocks/order-history/OrderHistory02.svelte +131 -0
- package/src/registry/blocks/order-history/OrderHistory03.svelte +133 -0
- package/src/registry/blocks/order-history/index.ts +3 -0
- package/src/registry/blocks/page-header/PageHeader01.svelte +39 -0
- package/src/registry/blocks/page-header/PageHeader02.svelte +58 -0
- package/src/registry/blocks/page-header/PageHeader03.svelte +64 -0
- package/src/registry/blocks/page-header/PageHeader04.svelte +49 -0
- package/src/registry/blocks/page-header/PageHeader05.svelte +49 -0
- package/src/registry/blocks/page-header/PageHeader06.svelte +58 -0
- package/src/registry/blocks/page-header/PageHeader07.svelte +64 -0
- package/src/registry/blocks/page-header/PageHeader08.svelte +68 -0
- package/src/registry/blocks/page-header/index.ts +8 -0
- package/src/registry/blocks/playground/PlaygroundBlock01.svelte +162 -0
- package/src/registry/blocks/playground/PlaygroundBlock02.svelte +156 -0
- package/src/registry/blocks/playground/index.ts +2 -0
- package/src/registry/blocks/pricing-section/PricingSection01.svelte +109 -0
- package/src/registry/blocks/pricing-section/PricingSection02.svelte +145 -0
- package/src/registry/blocks/pricing-section/PricingSection03.svelte +94 -0
- package/src/registry/blocks/pricing-section/PricingSection04.svelte +103 -0
- package/src/registry/blocks/pricing-section/PricingSection05.svelte +128 -0
- package/src/registry/blocks/pricing-section/index.ts +20 -0
- package/src/registry/blocks/product-card/ProductCard01.svelte +74 -0
- package/src/registry/blocks/product-card/ProductCard02.svelte +108 -0
- package/src/registry/blocks/product-card/ProductCard03.svelte +80 -0
- package/src/registry/blocks/product-card/ProductCard04.svelte +50 -0
- package/src/registry/blocks/product-card/ProductCard05.svelte +107 -0
- package/src/registry/blocks/product-card/index.ts +5 -0
- package/src/registry/blocks/product-detail/ProductDetail01.svelte +174 -0
- package/src/registry/blocks/product-detail/ProductDetail02.svelte +170 -0
- package/src/registry/blocks/product-detail/ProductDetail03.svelte +159 -0
- package/src/registry/blocks/product-detail/ProductDetail04.svelte +106 -0
- package/src/registry/blocks/product-detail/ProductDetail05.svelte +181 -0
- package/src/registry/blocks/product-detail/index.ts +5 -0
- package/src/registry/blocks/product-listing/ProductListing01.svelte +194 -0
- package/src/registry/blocks/product-listing/ProductListing02.svelte +163 -0
- package/src/registry/blocks/product-listing/ProductListing03.svelte +173 -0
- package/src/registry/blocks/product-listing/ProductListing04.svelte +179 -0
- package/src/registry/blocks/product-listing/ProductListing05.svelte +126 -0
- package/src/registry/blocks/product-listing/index.ts +5 -0
- package/src/registry/blocks/product-reviews/ProductReviews01.svelte +156 -0
- package/src/registry/blocks/product-reviews/ProductReviews02.svelte +139 -0
- package/src/registry/blocks/product-reviews/ProductReviews03.svelte +137 -0
- package/src/registry/blocks/product-reviews/ProductReviews04.svelte +129 -0
- package/src/registry/blocks/product-reviews/index.ts +4 -0
- package/src/registry/blocks/promo-section/PromoSection01.svelte +72 -0
- package/src/registry/blocks/promo-section/PromoSection02.svelte +61 -0
- package/src/registry/blocks/promo-section/PromoSection03.svelte +110 -0
- package/src/registry/blocks/promo-section/PromoSection04.svelte +103 -0
- package/src/registry/blocks/promo-section/index.ts +4 -0
- package/src/registry/blocks/rich-text/RichText01.svelte +30 -0
- package/src/registry/blocks/rich-text/RichText02.svelte +72 -0
- package/src/registry/blocks/rich-text/RichText03.svelte +52 -0
- package/src/registry/blocks/rich-text/RichText04.svelte +44 -0
- package/src/registry/blocks/rich-text/RichText05.svelte +56 -0
- package/src/registry/blocks/rich-text/index.ts +5 -0
- package/src/registry/blocks/section/Section01.svelte +38 -0
- package/src/registry/blocks/section/Section02.svelte +90 -0
- package/src/registry/blocks/section/Section03.svelte +95 -0
- package/src/registry/blocks/section/Section04.svelte +117 -0
- package/src/registry/blocks/section/index.ts +4 -0
- package/src/registry/blocks/section-footer/SectionFooter01.svelte +39 -0
- package/src/registry/blocks/section-footer/SectionFooter02.svelte +33 -0
- package/src/registry/blocks/section-footer/SectionFooter03.svelte +33 -0
- package/src/registry/blocks/section-footer/SectionFooter04.svelte +34 -0
- package/src/registry/blocks/section-footer/SectionFooter05.svelte +69 -0
- package/src/registry/blocks/section-footer/index.ts +5 -0
- package/src/registry/blocks/section-header/SectionHeader01.svelte +39 -0
- package/src/registry/blocks/section-header/SectionHeader02.svelte +58 -0
- package/src/registry/blocks/section-header/SectionHeader03.svelte +88 -0
- package/src/registry/blocks/section-header/SectionHeader04.svelte +45 -0
- package/src/registry/blocks/section-header/SectionHeader05.svelte +64 -0
- package/src/registry/blocks/section-header/index.ts +5 -0
- package/src/registry/blocks/settings/Settings01.svelte +202 -0
- package/src/registry/blocks/settings/Settings02.svelte +201 -0
- package/src/registry/blocks/settings/Settings03.svelte +156 -0
- package/src/registry/blocks/settings/Settings04.svelte +175 -0
- package/src/registry/blocks/settings/Settings05.svelte +248 -0
- package/src/registry/blocks/settings/Settings06.svelte +120 -0
- package/src/registry/blocks/settings/Settings07.svelte +136 -0
- package/src/registry/blocks/settings/index.ts +7 -0
- package/src/registry/blocks/sidebar/SidebarLayout01.svelte +108 -0
- package/src/registry/blocks/sidebar/SidebarLayout02.svelte +75 -0
- package/src/registry/blocks/sidebar/SidebarLayout03.svelte +108 -0
- package/src/registry/blocks/sidebar/SidebarLayout04.svelte +111 -0
- package/src/registry/blocks/sidebar/SidebarLayout05.svelte +103 -0
- package/src/registry/blocks/sidebar/SidebarLayout06.svelte +122 -0
- package/src/registry/blocks/sidebar/SidebarLayout07.svelte +183 -0
- package/src/registry/blocks/sidebar/SidebarLayout08.svelte +162 -0
- package/src/registry/blocks/sidebar/SidebarLayout09.svelte +167 -0
- package/src/registry/blocks/sidebar/SidebarLayout10.svelte +159 -0
- package/src/registry/blocks/sidebar/SidebarLayout11.svelte +135 -0
- package/src/registry/blocks/sidebar/SidebarLayout12.svelte +159 -0
- package/src/registry/blocks/sidebar/SidebarLayout13.svelte +103 -0
- package/src/registry/blocks/sidebar/SidebarLayout14.svelte +87 -0
- package/src/registry/blocks/sidebar/SidebarLayout15.svelte +228 -0
- package/src/registry/blocks/sidebar/index.ts +15 -0
- package/src/registry/blocks/sign-in/SignIn01.svelte +140 -0
- package/src/registry/blocks/sign-in/SignIn02.svelte +155 -0
- package/src/registry/blocks/sign-in/SignIn03.svelte +214 -0
- package/src/registry/blocks/sign-in/SignIn04.svelte +163 -0
- package/src/registry/blocks/sign-in/SignIn05.svelte +209 -0
- package/src/registry/blocks/sign-in/SignIn06.svelte +233 -0
- package/src/registry/blocks/sign-in/SignIn07.svelte +268 -0
- package/src/registry/blocks/sign-in/SignIn08.svelte +125 -0
- package/src/registry/blocks/sign-in/SignIn09.svelte +93 -0
- package/src/registry/blocks/sign-in/SignIn10.svelte +74 -0
- package/src/registry/blocks/sign-in/index.ts +10 -0
- package/src/registry/blocks/sign-up/SignUp01.svelte +124 -0
- package/src/registry/blocks/sign-up/SignUp02.svelte +110 -0
- package/src/registry/blocks/sign-up/SignUp03.svelte +182 -0
- package/src/registry/blocks/sign-up/SignUp04.svelte +126 -0
- package/src/registry/blocks/sign-up/SignUp05.svelte +182 -0
- package/src/registry/blocks/sign-up/SignUp06.svelte +221 -0
- package/src/registry/blocks/sign-up/SignUp07.svelte +98 -0
- package/src/registry/blocks/sign-up/index.ts +7 -0
- package/src/registry/blocks/stats-section/StatsSection01.svelte +66 -0
- package/src/registry/blocks/stats-section/StatsSection02.svelte +60 -0
- package/src/registry/blocks/stats-section/StatsSection03.svelte +66 -0
- package/src/registry/blocks/stats-section/StatsSection04.svelte +66 -0
- package/src/registry/blocks/stats-section/StatsSection05.svelte +60 -0
- package/src/registry/blocks/stats-section/StatsSection06.svelte +48 -0
- package/src/registry/blocks/stats-section/StatsSection07.svelte +66 -0
- package/src/registry/blocks/stats-section/index.ts +7 -0
- package/src/registry/blocks/store-navbar/StoreNavbar01.svelte +101 -0
- package/src/registry/blocks/store-navbar/StoreNavbar02.svelte +65 -0
- package/src/registry/blocks/store-navbar/StoreNavbar03.svelte +83 -0
- package/src/registry/blocks/store-navbar/StoreNavbar04.svelte +110 -0
- package/src/registry/blocks/store-navbar/StoreNavbar05.svelte +80 -0
- package/src/registry/blocks/store-navbar/index.ts +5 -0
- package/src/registry/blocks/table-header/TableHeader01.svelte +96 -0
- package/src/registry/blocks/table-header/TableHeader02.svelte +86 -0
- package/src/registry/blocks/table-header/TableHeader03.svelte +99 -0
- package/src/registry/blocks/table-header/TableHeader04.svelte +107 -0
- package/src/registry/blocks/table-header/index.ts +4 -0
- package/src/registry/blocks/tasks/TasksBlock.svelte +286 -0
- package/src/registry/blocks/tasks/index.ts +1 -0
- package/src/registry/blocks/team-section/TeamSection01.svelte +80 -0
- package/src/registry/blocks/team-section/TeamSection02.svelte +102 -0
- package/src/registry/blocks/team-section/TeamSection03.svelte +76 -0
- package/src/registry/blocks/team-section/TeamSection04.svelte +106 -0
- package/src/registry/blocks/team-section/index.ts +13 -0
- package/src/registry/blocks/testimonials/Testimonial01.svelte +74 -0
- package/src/registry/blocks/testimonials/Testimonial02.svelte +74 -0
- package/src/registry/blocks/testimonials/Testimonial03.svelte +79 -0
- package/src/registry/blocks/testimonials/Testimonial04.svelte +113 -0
- package/src/registry/blocks/testimonials/Testimonial05.svelte +74 -0
- package/src/registry/blocks/testimonials/Testimonial06.svelte +114 -0
- package/src/registry/blocks/testimonials/Testimonial07.svelte +131 -0
- package/src/registry/blocks/testimonials/Testimonials01.svelte +60 -0
- package/src/registry/blocks/testimonials/Testimonials02.svelte +61 -0
- package/src/registry/blocks/testimonials/Testimonials03.svelte +79 -0
- package/src/registry/blocks/testimonials/Testimonials04.svelte +74 -0
- package/src/registry/blocks/testimonials/Testimonials05.svelte +68 -0
- package/src/registry/blocks/testimonials/Testimonials06.svelte +82 -0
- package/src/registry/blocks/testimonials/Testimonials07.svelte +98 -0
- package/src/registry/blocks/testimonials/index.ts +16 -0
- package/src/registry/templates/cn.ts +42 -0
- package/src/index.ts +0 -2
- package/tsconfig.json +0 -20
- /package/src/{generate-component.cjs → commands/generate-component.cjs} +0 -0
- /package/src/{generate-route.cjs → commands/generate-route.cjs} +0 -0
- /package/src/{generate-service.cjs → commands/generate-service.cjs} +0 -0
- /package/src/{manage-auth-users.cjs → commands/manage-auth-users.cjs} +0 -0
- /package/src/{setup.cjs → commands/setup.cjs} +0 -0
- /package/src/{validate-setup.cjs → commands/validate.cjs} +0 -0
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
AppShell04.svelte
|
|
3
|
+
Doc-style left sidebar (grouped nav + version) + breadcrumb + page title + search + content slot.
|
|
4
|
+
Mirrors SidebarLayout01 pattern on the left.
|
|
5
|
+
-->
|
|
6
|
+
<script lang="ts">
|
|
7
|
+
import { cn } from '$lib/utils/cn';
|
|
8
|
+
import type { Snippet } from 'svelte';
|
|
9
|
+
|
|
10
|
+
interface SidebarGroup {
|
|
11
|
+
label: string;
|
|
12
|
+
items: Array<{ label: string; href?: string; icon?: string; current?: boolean; children?: Array<{ label: string; href?: string; current?: boolean }> }>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
let {
|
|
16
|
+
class: className = '',
|
|
17
|
+
sidebarTitle = 'Documentation',
|
|
18
|
+
sidebarVersion = 'v1.0.1',
|
|
19
|
+
sidebarGroups = defaultGroups(),
|
|
20
|
+
breadcrumbs = [{ label: 'Settings', href: '#' }, { label: 'API' }],
|
|
21
|
+
title = 'API Settings',
|
|
22
|
+
searchPlaceholder = 'Search',
|
|
23
|
+
user = { name: 'shadcn', email: 'm@example.com' },
|
|
24
|
+
children
|
|
25
|
+
}: {
|
|
26
|
+
class?: string;
|
|
27
|
+
sidebarTitle?: string;
|
|
28
|
+
sidebarVersion?: string;
|
|
29
|
+
sidebarGroups?: SidebarGroup[];
|
|
30
|
+
breadcrumbs?: Array<{ label: string; href?: string }>;
|
|
31
|
+
title?: string;
|
|
32
|
+
searchPlaceholder?: string;
|
|
33
|
+
user?: { name: string; email: string };
|
|
34
|
+
children?: Snippet;
|
|
35
|
+
} = $props();
|
|
36
|
+
|
|
37
|
+
function defaultGroups(): SidebarGroup[] {
|
|
38
|
+
return [
|
|
39
|
+
{
|
|
40
|
+
label: 'Platform',
|
|
41
|
+
items: [
|
|
42
|
+
{ label: 'Playground', href: '#', icon: 'layout' },
|
|
43
|
+
{ label: 'Models', href: '#', icon: 'cpu', children: [{ label: 'GPT-4', href: '#' }] },
|
|
44
|
+
{ label: 'Documentation', href: '#', icon: 'book', children: [{ label: 'API Reference', href: '#', current: true }] },
|
|
45
|
+
{ label: 'Settings', href: '#', icon: 'settings', children: [{ label: 'General', href: '#' }, { label: 'Team', href: '#' }, { label: 'API', href: '#', current: true }, { label: 'Limits', href: '#' }] }
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
label: 'Projects',
|
|
50
|
+
items: [
|
|
51
|
+
{ label: 'Design Engineering', href: '#', icon: 'grid' },
|
|
52
|
+
{ label: 'Sales & Marketing', href: '#', icon: 'clock' },
|
|
53
|
+
{ label: 'Travel', href: '#', icon: 'map' }
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
];
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
let expanded = $state<Set<string>>(new Set(['Settings']));
|
|
60
|
+
function toggle(label: string) {
|
|
61
|
+
const s = new Set(expanded);
|
|
62
|
+
s.has(label) ? s.delete(label) : s.add(label);
|
|
63
|
+
expanded = s;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function iconPath(icon?: string): string {
|
|
67
|
+
switch(icon) {
|
|
68
|
+
case 'layout': return 'M3 9h18v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9zm0 0V5a2 2 0 0 1 2-2h4v6';
|
|
69
|
+
case 'cpu': return 'M12 2H2v10l9.29 9.29c.94.94 2.48.94 3.42 0l6.58-6.58c.94-.94.94-2.48 0-3.42L12 2z M7 7h.01';
|
|
70
|
+
case 'book': return 'M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20';
|
|
71
|
+
case 'settings': return 'M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6z';
|
|
72
|
+
case 'grid': return 'M12 2H2v10l9.29 9.29c.94.94 2.48.94 3.42 0l6.58-6.58c.94-.94.94-2.48 0-3.42L12 2z';
|
|
73
|
+
case 'clock': return 'M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 5v5l3 3';
|
|
74
|
+
case 'map': return 'M3 7l6-3 6 3 6-3v13l-6 3-6-3-6 3V7z M9 4v13 M15 7v13';
|
|
75
|
+
default: return 'M3 12h18 M12 3v18';
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
</script>
|
|
79
|
+
|
|
80
|
+
<div class={cn('flex min-h-screen bg-muted/30', className)}>
|
|
81
|
+
<!-- Sidebar -->
|
|
82
|
+
<aside class="hidden w-56 flex-col border-r bg-background md:flex">
|
|
83
|
+
<!-- Header -->
|
|
84
|
+
<div class="flex h-14 items-center justify-between border-b px-4">
|
|
85
|
+
<div class="flex items-center gap-2">
|
|
86
|
+
<div class="flex h-6 w-6 items-center justify-center rounded bg-foreground text-background">
|
|
87
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M9 9h6M9 12h6M9 15h4"/></svg>
|
|
88
|
+
</div>
|
|
89
|
+
<div>
|
|
90
|
+
<p class="text-sm font-medium">{sidebarTitle}</p>
|
|
91
|
+
<p class="text-[10px] text-muted-foreground">{sidebarVersion}</p>
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
<button type="button" class="text-muted-foreground hover:text-foreground">
|
|
95
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>
|
|
96
|
+
</button>
|
|
97
|
+
</div>
|
|
98
|
+
|
|
99
|
+
<!-- Nav -->
|
|
100
|
+
<nav class="flex-1 overflow-y-auto p-2">
|
|
101
|
+
{#each sidebarGroups as group}
|
|
102
|
+
<p class="mb-1 mt-3 px-2 text-[10px] font-semibold uppercase tracking-wider text-muted-foreground">{group.label}</p>
|
|
103
|
+
{#each group.items as item}
|
|
104
|
+
{#if item.children}
|
|
105
|
+
<button
|
|
106
|
+
type="button"
|
|
107
|
+
onclick={() => toggle(item.label)}
|
|
108
|
+
class="flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-sm hover:bg-muted"
|
|
109
|
+
>
|
|
110
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" class="shrink-0 text-muted-foreground"><path d={iconPath(item.icon)}/></svg>
|
|
111
|
+
<span class="flex-1 text-left">{item.label}</span>
|
|
112
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class={cn('transition-transform', expanded.has(item.label) && 'rotate-180')}><path d="m6 9 6 6 6-6"/></svg>
|
|
113
|
+
</button>
|
|
114
|
+
{#if expanded.has(item.label)}
|
|
115
|
+
<div class="ml-5 flex flex-col border-l pl-2">
|
|
116
|
+
{#each item.children as child}
|
|
117
|
+
<a href={child.href ?? '#'} class={cn('rounded-sm px-2 py-1 text-sm hover:bg-muted', child.current && 'bg-muted font-medium')}>{child.label}</a>
|
|
118
|
+
{/each}
|
|
119
|
+
</div>
|
|
120
|
+
{/if}
|
|
121
|
+
{:else}
|
|
122
|
+
<a href={item.href ?? '#'} class={cn('flex items-center gap-2 rounded-md px-2 py-1.5 text-sm hover:bg-muted', item.current && 'bg-muted font-medium')}>
|
|
123
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" class="shrink-0 text-muted-foreground"><path d={iconPath(item.icon)}/></svg>
|
|
124
|
+
{item.label}
|
|
125
|
+
</a>
|
|
126
|
+
{/if}
|
|
127
|
+
{/each}
|
|
128
|
+
{/each}
|
|
129
|
+
</nav>
|
|
130
|
+
|
|
131
|
+
<!-- User footer -->
|
|
132
|
+
<div class="border-t p-3">
|
|
133
|
+
<button type="button" class="flex w-full items-center gap-2 rounded-md px-2 py-2 hover:bg-muted">
|
|
134
|
+
<div class="flex h-7 w-7 items-center justify-center rounded-full bg-muted text-xs font-semibold">{user.name[0]?.toUpperCase()}</div>
|
|
135
|
+
<div class="flex-1 text-left">
|
|
136
|
+
<p class="text-xs font-medium">{user.name}</p>
|
|
137
|
+
<p class="text-[10px] text-muted-foreground">{user.email}</p>
|
|
138
|
+
</div>
|
|
139
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-muted-foreground"><path d="m6 9 6 6 6-6"/></svg>
|
|
140
|
+
</button>
|
|
141
|
+
</div>
|
|
142
|
+
</aside>
|
|
143
|
+
|
|
144
|
+
<!-- Main -->
|
|
145
|
+
<div class="flex flex-1 flex-col">
|
|
146
|
+
<div class="flex-1 px-4 py-6 md:px-8">
|
|
147
|
+
<!-- Breadcrumb -->
|
|
148
|
+
<nav class="mb-4 flex items-center gap-1.5 text-sm text-muted-foreground">
|
|
149
|
+
{#each breadcrumbs as crumb, i}
|
|
150
|
+
{#if i > 0}<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6"/></svg>{/if}
|
|
151
|
+
{#if crumb.href && i < breadcrumbs.length - 1}
|
|
152
|
+
<a href={crumb.href} class="hover:text-foreground">{crumb.label}</a>
|
|
153
|
+
{:else}
|
|
154
|
+
<span class={i === breadcrumbs.length - 1 ? 'font-medium text-foreground' : ''}>{crumb.label}</span>
|
|
155
|
+
{/if}
|
|
156
|
+
{/each}
|
|
157
|
+
</nav>
|
|
158
|
+
|
|
159
|
+
<!-- Page header -->
|
|
160
|
+
<div class="mb-6 flex items-center justify-between gap-4">
|
|
161
|
+
<h1 class="text-2xl font-bold">{title}</h1>
|
|
162
|
+
<div class="flex items-center gap-2 rounded-md border bg-background px-3 py-1.5">
|
|
163
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-muted-foreground"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg>
|
|
164
|
+
<input type="text" placeholder={searchPlaceholder} class="bg-transparent text-sm outline-none placeholder:text-muted-foreground w-36" />
|
|
165
|
+
</div>
|
|
166
|
+
</div>
|
|
167
|
+
|
|
168
|
+
{#if children}
|
|
169
|
+
{@render children()}
|
|
170
|
+
{:else}
|
|
171
|
+
<div class="flex min-h-32 items-center justify-center rounded-lg border border-dashed bg-background text-sm text-muted-foreground">
|
|
172
|
+
Slot (swap it with your content)
|
|
173
|
+
</div>
|
|
174
|
+
{/if}
|
|
175
|
+
</div>
|
|
176
|
+
</div>
|
|
177
|
+
</div>
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
AuthSplitScreen.svelte
|
|
3
|
+
Split-screen auth layout with dark branded panel on left and form slot on right.
|
|
4
|
+
-->
|
|
5
|
+
<script lang="ts">
|
|
6
|
+
import type { Snippet } from 'svelte';
|
|
7
|
+
import { cn } from '$lib/utils/cn';
|
|
8
|
+
import {
|
|
9
|
+
Button,
|
|
10
|
+
Input,
|
|
11
|
+
Label,
|
|
12
|
+
Separator
|
|
13
|
+
} from '$lib/components/ui';
|
|
14
|
+
import { BrandIcon } from '$lib/components/ui/icon';
|
|
15
|
+
|
|
16
|
+
let {
|
|
17
|
+
class: className = '',
|
|
18
|
+
brandName = 'Acme Inc.',
|
|
19
|
+
brandLogo = '',
|
|
20
|
+
testimonialQuote = '',
|
|
21
|
+
testimonialAuthor = '',
|
|
22
|
+
onEmailSubmit = undefined,
|
|
23
|
+
onGithubLogin = undefined,
|
|
24
|
+
onTermsClick = undefined,
|
|
25
|
+
onPrivacyClick = undefined,
|
|
26
|
+
children = undefined
|
|
27
|
+
}: {
|
|
28
|
+
class?: string;
|
|
29
|
+
brandName?: string;
|
|
30
|
+
brandLogo?: string;
|
|
31
|
+
testimonialQuote?: string;
|
|
32
|
+
testimonialAuthor?: string;
|
|
33
|
+
onEmailSubmit?: ((email: string) => void) | undefined;
|
|
34
|
+
onGithubLogin?: (() => void) | undefined;
|
|
35
|
+
onTermsClick?: (() => void) | undefined;
|
|
36
|
+
onPrivacyClick?: (() => void) | undefined;
|
|
37
|
+
children?: Snippet;
|
|
38
|
+
} = $props();
|
|
39
|
+
|
|
40
|
+
let email = $state('');
|
|
41
|
+
|
|
42
|
+
function handleEmailSubmit() {
|
|
43
|
+
onEmailSubmit?.(email);
|
|
44
|
+
}
|
|
45
|
+
</script>
|
|
46
|
+
|
|
47
|
+
<div class={cn('grid min-h-screen lg:grid-cols-2', className)}>
|
|
48
|
+
<!-- Left panel: dark branded area -->
|
|
49
|
+
<div class="relative hidden bg-primary lg:flex lg:flex-col lg:justify-between lg:p-10">
|
|
50
|
+
<div class="flex items-center gap-2 text-primary-foreground">
|
|
51
|
+
{#if brandLogo}
|
|
52
|
+
<img src={brandLogo} alt={brandName} class="h-6 w-6" />
|
|
53
|
+
{:else}
|
|
54
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="h-6 w-6">
|
|
55
|
+
<path d="M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3" />
|
|
56
|
+
</svg>
|
|
57
|
+
{/if}
|
|
58
|
+
<span class="text-lg font-semibold">{brandName}</span>
|
|
59
|
+
</div>
|
|
60
|
+
|
|
61
|
+
{#if testimonialQuote}
|
|
62
|
+
<div class="text-primary-foreground">
|
|
63
|
+
<blockquote class="space-y-2">
|
|
64
|
+
<p class="text-lg">“{testimonialQuote}”</p>
|
|
65
|
+
{#if testimonialAuthor}
|
|
66
|
+
<footer class="text-sm text-primary-foreground/80">{testimonialAuthor}</footer>
|
|
67
|
+
{/if}
|
|
68
|
+
</blockquote>
|
|
69
|
+
</div>
|
|
70
|
+
{:else}
|
|
71
|
+
<div></div>
|
|
72
|
+
{/if}
|
|
73
|
+
</div>
|
|
74
|
+
|
|
75
|
+
<!-- Right panel: auth form -->
|
|
76
|
+
<div class="flex items-center justify-center p-6 lg:p-8">
|
|
77
|
+
<div class="w-full max-w-sm space-y-6">
|
|
78
|
+
{#if children}
|
|
79
|
+
{@render children()}
|
|
80
|
+
{:else}
|
|
81
|
+
<!-- Default content if no children is provided -->
|
|
82
|
+
<div class="space-y-2 text-center">
|
|
83
|
+
<h1 class="text-2xl font-semibold tracking-tight">Create an account</h1>
|
|
84
|
+
<p class="text-sm text-muted-foreground">Enter your email below to create your account</p>
|
|
85
|
+
</div>
|
|
86
|
+
|
|
87
|
+
<form onsubmit={(e) => { e.preventDefault(); handleEmailSubmit(); }} class="space-y-4">
|
|
88
|
+
<div class="space-y-2">
|
|
89
|
+
<Label htmlFor="split-email">Email</Label>
|
|
90
|
+
<Input
|
|
91
|
+
type="email"
|
|
92
|
+
placeholder="m@example.com"
|
|
93
|
+
bind:value={email}
|
|
94
|
+
/>
|
|
95
|
+
</div>
|
|
96
|
+
<Button type="submit" class="w-full">Sign in with Email</Button>
|
|
97
|
+
</form>
|
|
98
|
+
|
|
99
|
+
<div class="relative">
|
|
100
|
+
<Separator />
|
|
101
|
+
<span class="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 bg-background px-2 text-xs uppercase text-muted-foreground">
|
|
102
|
+
Or continue with
|
|
103
|
+
</span>
|
|
104
|
+
</div>
|
|
105
|
+
|
|
106
|
+
<Button variant="outline" class="w-full" onclick={onGithubLogin}>
|
|
107
|
+
<BrandIcon name="github" size={16} class="mr-2" />
|
|
108
|
+
GitHub
|
|
109
|
+
</Button>
|
|
110
|
+
|
|
111
|
+
<p class="text-center text-sm text-muted-foreground">
|
|
112
|
+
By clicking continue, you agree to our
|
|
113
|
+
<button
|
|
114
|
+
type="button"
|
|
115
|
+
class="underline underline-offset-4 hover:text-primary"
|
|
116
|
+
onclick={onTermsClick}
|
|
117
|
+
>
|
|
118
|
+
Terms of Service
|
|
119
|
+
</button>
|
|
120
|
+
and
|
|
121
|
+
<button
|
|
122
|
+
type="button"
|
|
123
|
+
class="underline underline-offset-4 hover:text-primary"
|
|
124
|
+
onclick={onPrivacyClick}
|
|
125
|
+
>
|
|
126
|
+
Privacy Policy
|
|
127
|
+
</button>.
|
|
128
|
+
</p>
|
|
129
|
+
{/if}
|
|
130
|
+
</div>
|
|
131
|
+
</div>
|
|
132
|
+
</div>
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
LoginBlock01.svelte
|
|
3
|
+
Simple centered login form with email/password and Google login.
|
|
4
|
+
-->
|
|
5
|
+
<script lang="ts">
|
|
6
|
+
import { cn } from '$lib/utils/cn';
|
|
7
|
+
import {
|
|
8
|
+
Button,
|
|
9
|
+
Card,
|
|
10
|
+
CardHeader,
|
|
11
|
+
CardContent,
|
|
12
|
+
CardTitle,
|
|
13
|
+
CardDescription,
|
|
14
|
+
CardFooter,
|
|
15
|
+
Input,
|
|
16
|
+
Label
|
|
17
|
+
} from '$lib/components/ui';
|
|
18
|
+
import { BrandIcon } from '$lib/components/ui/icon';
|
|
19
|
+
|
|
20
|
+
let {
|
|
21
|
+
class: className = '',
|
|
22
|
+
onSubmit = undefined,
|
|
23
|
+
onGoogleLogin = undefined,
|
|
24
|
+
onForgotPassword = undefined,
|
|
25
|
+
onSignUp = undefined
|
|
26
|
+
}: {
|
|
27
|
+
class?: string;
|
|
28
|
+
onSubmit?: ((email: string, password: string) => void) | undefined;
|
|
29
|
+
onGoogleLogin?: (() => void) | undefined;
|
|
30
|
+
onForgotPassword?: (() => void) | undefined;
|
|
31
|
+
onSignUp?: (() => void) | undefined;
|
|
32
|
+
} = $props();
|
|
33
|
+
|
|
34
|
+
let email = $state('');
|
|
35
|
+
let password = $state('');
|
|
36
|
+
|
|
37
|
+
function handleSubmit() {
|
|
38
|
+
onSubmit?.(email, password);
|
|
39
|
+
}
|
|
40
|
+
</script>
|
|
41
|
+
|
|
42
|
+
<div class={cn('flex min-h-screen items-center justify-center p-4', className)}>
|
|
43
|
+
<Card class="w-full max-w-md">
|
|
44
|
+
<CardHeader>
|
|
45
|
+
<CardTitle class="text-2xl">Login to your account</CardTitle>
|
|
46
|
+
<CardDescription>Enter your email below to login to your account</CardDescription>
|
|
47
|
+
</CardHeader>
|
|
48
|
+
<CardContent>
|
|
49
|
+
<form onsubmit={(e) => { e.preventDefault(); handleSubmit(); }} class="space-y-4">
|
|
50
|
+
<div class="space-y-2">
|
|
51
|
+
<Label htmlFor="login01-email">Email</Label>
|
|
52
|
+
<Input
|
|
53
|
+
type="email"
|
|
54
|
+
placeholder="m@example.com"
|
|
55
|
+
bind:value={email}
|
|
56
|
+
/>
|
|
57
|
+
</div>
|
|
58
|
+
<div class="space-y-2">
|
|
59
|
+
<div class="flex items-center justify-between">
|
|
60
|
+
<Label htmlFor="login01-password">Password</Label>
|
|
61
|
+
<button
|
|
62
|
+
type="button"
|
|
63
|
+
class="text-sm text-muted-foreground underline-offset-4 hover:underline"
|
|
64
|
+
onclick={onForgotPassword}
|
|
65
|
+
>
|
|
66
|
+
Forgot your password?
|
|
67
|
+
</button>
|
|
68
|
+
</div>
|
|
69
|
+
<Input
|
|
70
|
+
type="password"
|
|
71
|
+
bind:value={password}
|
|
72
|
+
/>
|
|
73
|
+
</div>
|
|
74
|
+
<Button type="submit" class="w-full">Login</Button>
|
|
75
|
+
<Button variant="outline" type="button" class="w-full" onclick={onGoogleLogin}>
|
|
76
|
+
<BrandIcon name="google" size={16} colored class="mr-2" />
|
|
77
|
+
Login with Google
|
|
78
|
+
</Button>
|
|
79
|
+
</form>
|
|
80
|
+
</CardContent>
|
|
81
|
+
<CardFooter class="justify-center">
|
|
82
|
+
<p class="text-sm text-muted-foreground">
|
|
83
|
+
Don't have an account?
|
|
84
|
+
<button
|
|
85
|
+
type="button"
|
|
86
|
+
class="text-primary underline-offset-4 hover:underline"
|
|
87
|
+
onclick={onSignUp}
|
|
88
|
+
>
|
|
89
|
+
Sign up
|
|
90
|
+
</button>
|
|
91
|
+
</p>
|
|
92
|
+
</CardFooter>
|
|
93
|
+
</Card>
|
|
94
|
+
</div>
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
LoginBlock02.svelte
|
|
3
|
+
Login form with "OR CONTINUE WITH" divider between password and social login.
|
|
4
|
+
-->
|
|
5
|
+
<script lang="ts">
|
|
6
|
+
import { cn } from '$lib/utils/cn';
|
|
7
|
+
import {
|
|
8
|
+
Button,
|
|
9
|
+
Card,
|
|
10
|
+
CardHeader,
|
|
11
|
+
CardContent,
|
|
12
|
+
CardTitle,
|
|
13
|
+
CardDescription,
|
|
14
|
+
CardFooter,
|
|
15
|
+
Input,
|
|
16
|
+
Label,
|
|
17
|
+
Separator
|
|
18
|
+
} from '$lib/components/ui';
|
|
19
|
+
import { BrandIcon } from '$lib/components/ui/icon';
|
|
20
|
+
|
|
21
|
+
let {
|
|
22
|
+
class: className = '',
|
|
23
|
+
onSubmit = undefined,
|
|
24
|
+
onGoogleLogin = undefined,
|
|
25
|
+
onForgotPassword = undefined,
|
|
26
|
+
onSignUp = undefined
|
|
27
|
+
}: {
|
|
28
|
+
class?: string;
|
|
29
|
+
onSubmit?: ((email: string, password: string) => void) | undefined;
|
|
30
|
+
onGoogleLogin?: (() => void) | undefined;
|
|
31
|
+
onForgotPassword?: (() => void) | undefined;
|
|
32
|
+
onSignUp?: (() => void) | undefined;
|
|
33
|
+
} = $props();
|
|
34
|
+
|
|
35
|
+
let email = $state('');
|
|
36
|
+
let password = $state('');
|
|
37
|
+
|
|
38
|
+
function handleSubmit() {
|
|
39
|
+
onSubmit?.(email, password);
|
|
40
|
+
}
|
|
41
|
+
</script>
|
|
42
|
+
|
|
43
|
+
<div class={cn('flex min-h-screen items-center justify-center p-4', className)}>
|
|
44
|
+
<Card class="w-full max-w-md">
|
|
45
|
+
<CardHeader>
|
|
46
|
+
<CardTitle class="text-2xl">Login to your account</CardTitle>
|
|
47
|
+
<CardDescription>Enter your email below to login to your account</CardDescription>
|
|
48
|
+
</CardHeader>
|
|
49
|
+
<CardContent>
|
|
50
|
+
<form onsubmit={(e) => { e.preventDefault(); handleSubmit(); }} class="space-y-4">
|
|
51
|
+
<div class="space-y-2">
|
|
52
|
+
<Label htmlFor="login02-email">Email</Label>
|
|
53
|
+
<Input
|
|
54
|
+
type="email"
|
|
55
|
+
placeholder="m@example.com"
|
|
56
|
+
bind:value={email}
|
|
57
|
+
/>
|
|
58
|
+
</div>
|
|
59
|
+
<div class="space-y-2">
|
|
60
|
+
<div class="flex items-center justify-between">
|
|
61
|
+
<Label htmlFor="login02-password">Password</Label>
|
|
62
|
+
<button
|
|
63
|
+
type="button"
|
|
64
|
+
class="text-sm text-muted-foreground underline-offset-4 hover:underline"
|
|
65
|
+
onclick={onForgotPassword}
|
|
66
|
+
>
|
|
67
|
+
Forgot your password?
|
|
68
|
+
</button>
|
|
69
|
+
</div>
|
|
70
|
+
<Input
|
|
71
|
+
type="password"
|
|
72
|
+
bind:value={password}
|
|
73
|
+
/>
|
|
74
|
+
</div>
|
|
75
|
+
<Button type="submit" class="w-full">Login</Button>
|
|
76
|
+
</form>
|
|
77
|
+
|
|
78
|
+
<div class="relative my-4">
|
|
79
|
+
<Separator />
|
|
80
|
+
<span class="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 bg-card px-2 text-xs uppercase text-muted-foreground">
|
|
81
|
+
Or continue with
|
|
82
|
+
</span>
|
|
83
|
+
</div>
|
|
84
|
+
|
|
85
|
+
<Button variant="outline" class="w-full" onclick={onGoogleLogin}>
|
|
86
|
+
<BrandIcon name="google" size={16} colored class="mr-2" />
|
|
87
|
+
Login with Google
|
|
88
|
+
</Button>
|
|
89
|
+
</CardContent>
|
|
90
|
+
<CardFooter class="justify-center">
|
|
91
|
+
<p class="text-sm text-muted-foreground">
|
|
92
|
+
Don't have an account?
|
|
93
|
+
<button
|
|
94
|
+
type="button"
|
|
95
|
+
class="text-primary underline-offset-4 hover:underline"
|
|
96
|
+
onclick={onSignUp}
|
|
97
|
+
>
|
|
98
|
+
Sign up
|
|
99
|
+
</button>
|
|
100
|
+
</p>
|
|
101
|
+
</CardFooter>
|
|
102
|
+
</Card>
|
|
103
|
+
</div>
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
LoginBlock03.svelte
|
|
3
|
+
Minimal email-only login form.
|
|
4
|
+
-->
|
|
5
|
+
<script lang="ts">
|
|
6
|
+
import { cn } from '$lib/utils/cn';
|
|
7
|
+
import {
|
|
8
|
+
Button,
|
|
9
|
+
Card,
|
|
10
|
+
CardHeader,
|
|
11
|
+
CardContent,
|
|
12
|
+
CardTitle,
|
|
13
|
+
CardDescription,
|
|
14
|
+
Input,
|
|
15
|
+
Label
|
|
16
|
+
} from '$lib/components/ui';
|
|
17
|
+
|
|
18
|
+
let {
|
|
19
|
+
class: className = '',
|
|
20
|
+
onSubmit = undefined
|
|
21
|
+
}: {
|
|
22
|
+
class?: string;
|
|
23
|
+
onSubmit?: ((email: string) => void) | undefined;
|
|
24
|
+
} = $props();
|
|
25
|
+
|
|
26
|
+
let email = $state('');
|
|
27
|
+
|
|
28
|
+
function handleSubmit() {
|
|
29
|
+
onSubmit?.(email);
|
|
30
|
+
}
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
<div class={cn('flex min-h-screen items-center justify-center p-4', className)}>
|
|
34
|
+
<Card class="w-full max-w-md">
|
|
35
|
+
<CardHeader>
|
|
36
|
+
<CardTitle class="text-2xl">Login to your account</CardTitle>
|
|
37
|
+
<CardDescription>Enter your email below to login to your account</CardDescription>
|
|
38
|
+
</CardHeader>
|
|
39
|
+
<CardContent>
|
|
40
|
+
<form onsubmit={(e) => { e.preventDefault(); handleSubmit(); }} class="space-y-4">
|
|
41
|
+
<div class="space-y-2">
|
|
42
|
+
<Label htmlFor="login03-email">Email</Label>
|
|
43
|
+
<Input
|
|
44
|
+
type="email"
|
|
45
|
+
placeholder="m@example.com"
|
|
46
|
+
bind:value={email}
|
|
47
|
+
/>
|
|
48
|
+
</div>
|
|
49
|
+
<Button type="submit" class="w-full">Login</Button>
|
|
50
|
+
</form>
|
|
51
|
+
</CardContent>
|
|
52
|
+
</Card>
|
|
53
|
+
</div>
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
LoginBlock04.svelte
|
|
3
|
+
Login form with email, password, and phone number option.
|
|
4
|
+
-->
|
|
5
|
+
<script lang="ts">
|
|
6
|
+
import { cn } from '$lib/utils/cn';
|
|
7
|
+
import {
|
|
8
|
+
Button,
|
|
9
|
+
Card,
|
|
10
|
+
CardHeader,
|
|
11
|
+
CardContent,
|
|
12
|
+
CardTitle,
|
|
13
|
+
CardDescription,
|
|
14
|
+
CardFooter,
|
|
15
|
+
Input,
|
|
16
|
+
Label
|
|
17
|
+
} from '$lib/components/ui';
|
|
18
|
+
import { BrandIcon } from '$lib/components/ui/icon';
|
|
19
|
+
|
|
20
|
+
let {
|
|
21
|
+
class: className = '',
|
|
22
|
+
onSubmit = undefined,
|
|
23
|
+
onGoogleLogin = undefined,
|
|
24
|
+
onForgotPassword = undefined,
|
|
25
|
+
onSignUp = undefined,
|
|
26
|
+
onPhoneLogin = undefined
|
|
27
|
+
}: {
|
|
28
|
+
class?: string;
|
|
29
|
+
onSubmit?: ((email: string, password: string) => void) | undefined;
|
|
30
|
+
onGoogleLogin?: (() => void) | undefined;
|
|
31
|
+
onForgotPassword?: (() => void) | undefined;
|
|
32
|
+
onSignUp?: (() => void) | undefined;
|
|
33
|
+
onPhoneLogin?: (() => void) | undefined;
|
|
34
|
+
} = $props();
|
|
35
|
+
|
|
36
|
+
let email = $state('');
|
|
37
|
+
let password = $state('');
|
|
38
|
+
|
|
39
|
+
function handleSubmit() {
|
|
40
|
+
onSubmit?.(email, password);
|
|
41
|
+
}
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
<div class={cn('flex min-h-screen items-center justify-center p-4', className)}>
|
|
45
|
+
<Card class="w-full max-w-md">
|
|
46
|
+
<CardHeader>
|
|
47
|
+
<CardTitle class="text-2xl">Login to your account</CardTitle>
|
|
48
|
+
<CardDescription>Enter your email below to login to your account</CardDescription>
|
|
49
|
+
</CardHeader>
|
|
50
|
+
<CardContent>
|
|
51
|
+
<form onsubmit={(e) => { e.preventDefault(); handleSubmit(); }} class="space-y-4">
|
|
52
|
+
<div class="space-y-2">
|
|
53
|
+
<Label htmlFor="login04-email">Email</Label>
|
|
54
|
+
<Input
|
|
55
|
+
type="email"
|
|
56
|
+
placeholder="m@example.com"
|
|
57
|
+
bind:value={email}
|
|
58
|
+
/>
|
|
59
|
+
</div>
|
|
60
|
+
<div class="space-y-2">
|
|
61
|
+
<div class="flex items-center justify-between">
|
|
62
|
+
<Label htmlFor="login04-password">Password</Label>
|
|
63
|
+
<button
|
|
64
|
+
type="button"
|
|
65
|
+
class="text-sm text-muted-foreground underline-offset-4 hover:underline"
|
|
66
|
+
onclick={onForgotPassword}
|
|
67
|
+
>
|
|
68
|
+
Forgot your password?
|
|
69
|
+
</button>
|
|
70
|
+
</div>
|
|
71
|
+
<Input
|
|
72
|
+
type="password"
|
|
73
|
+
bind:value={password}
|
|
74
|
+
/>
|
|
75
|
+
</div>
|
|
76
|
+
<Button type="submit" class="w-full">Login</Button>
|
|
77
|
+
<Button variant="outline" type="button" class="w-full" onclick={onGoogleLogin}>
|
|
78
|
+
<BrandIcon name="google" size={16} colored class="mr-2" />
|
|
79
|
+
Login with Google
|
|
80
|
+
</Button>
|
|
81
|
+
<Button variant="outline" type="button" class="w-full" onclick={onPhoneLogin}>
|
|
82
|
+
Login with Phone
|
|
83
|
+
</Button>
|
|
84
|
+
</form>
|
|
85
|
+
</CardContent>
|
|
86
|
+
<CardFooter class="justify-center">
|
|
87
|
+
<p class="text-sm text-muted-foreground">
|
|
88
|
+
Don't have an account?
|
|
89
|
+
<button
|
|
90
|
+
type="button"
|
|
91
|
+
class="text-primary underline-offset-4 hover:underline"
|
|
92
|
+
onclick={onSignUp}
|
|
93
|
+
>
|
|
94
|
+
Sign up
|
|
95
|
+
</button>
|
|
96
|
+
</p>
|
|
97
|
+
</CardFooter>
|
|
98
|
+
</Card>
|
|
99
|
+
</div>
|