create-tauri-ui 0.3.2 → 0.3.3
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/index.js +1 -1
- package/package.json +6 -6
- package/templates/.shared/.github/workflows/release.yml +112 -112
- package/templates/.shared/src-tauri/Cargo.lock +3835 -3835
- package/templates/.shared/src-tauri/Cargo.toml +4 -4
- package/templates/.shared/src-tauri/build.rs +3 -3
- package/templates/.shared/src-tauri/src/main.rs +22 -22
- package/templates/next/.github/workflows/release.yml +108 -108
- package/templates/next/.vscode/extensions.json +3 -3
- package/templates/next/README.md +95 -95
- package/templates/next/next-env.d.ts +5 -5
- package/templates/next/package.json +87 -87
- package/templates/next/pnpm-lock.yaml +4911 -4911
- package/templates/next/postcss.config.js +6 -6
- package/templates/next/prettier.config.js +35 -35
- package/templates/next/src/app/examples/layout.tsx +7 -7
- package/templates/next/src/app/page.tsx +5 -5
- package/templates/next/src/components/examples-nav.tsx +70 -70
- package/templates/next/src/components/greeting.tsx +21 -21
- package/templates/next/src/components/mode-toggle.tsx +43 -43
- package/templates/next/src/components/page-header.tsx +52 -52
- package/templates/next/src/components/style-switcher.tsx +19 -19
- package/templates/next/src/components/tailwind-indicator.tsx +18 -18
- package/templates/next/src/components/theme-provider.tsx +9 -9
- package/templates/next/src/components/ui/accordion.tsx +60 -60
- package/templates/next/src/components/ui/alert-dialog.tsx +145 -145
- package/templates/next/src/components/ui/alert.tsx +59 -59
- package/templates/next/src/components/ui/aspect-ratio.tsx +7 -7
- package/templates/next/src/components/ui/avatar.tsx +50 -50
- package/templates/next/src/components/ui/badge.tsx +36 -36
- package/templates/next/src/components/ui/button.tsx +56 -56
- package/templates/next/src/components/ui/calendar.tsx +64 -64
- package/templates/next/src/components/ui/card.tsx +79 -79
- package/templates/next/src/components/ui/checkbox.tsx +30 -30
- package/templates/next/src/components/ui/collapsible.tsx +11 -11
- package/templates/next/src/components/ui/command.tsx +155 -155
- package/templates/next/src/components/ui/context-menu.tsx +200 -200
- package/templates/next/src/components/ui/dialog.tsx +123 -123
- package/templates/next/src/components/ui/dropdown-menu.tsx +200 -200
- package/templates/next/src/components/ui/form.tsx +176 -176
- package/templates/next/src/components/ui/hover-card.tsx +29 -29
- package/templates/next/src/components/ui/input.tsx +25 -25
- package/templates/next/src/components/ui/label.tsx +26 -26
- package/templates/next/src/components/ui/menubar.tsx +236 -236
- package/templates/next/src/components/ui/navigation-menu.tsx +128 -128
- package/templates/next/src/components/ui/popover.tsx +31 -31
- package/templates/next/src/components/ui/progress.tsx +28 -28
- package/templates/next/src/components/ui/radio-group.tsx +44 -44
- package/templates/next/src/components/ui/scroll-area.tsx +48 -48
- package/templates/next/src/components/ui/select.tsx +121 -121
- package/templates/next/src/components/ui/separator.tsx +31 -31
- package/templates/next/src/components/ui/sheet.tsx +144 -144
- package/templates/next/src/components/ui/skeleton.tsx +15 -15
- package/templates/next/src/components/ui/slider.tsx +28 -28
- package/templates/next/src/components/ui/switch.tsx +29 -29
- package/templates/next/src/components/ui/table.tsx +114 -114
- package/templates/next/src/components/ui/tabs.tsx +55 -55
- package/templates/next/src/components/ui/textarea.tsx +24 -24
- package/templates/next/src/components/ui/toast.tsx +127 -127
- package/templates/next/src/components/ui/toaster.tsx +35 -35
- package/templates/next/src/components/ui/toggle.tsx +45 -45
- package/templates/next/src/components/ui/tooltip.tsx +30 -30
- package/templates/next/src/components/ui/use-toast.ts +192 -192
- package/templates/next/src/data/albums.ts +71 -71
- package/templates/next/src/data/playlists.ts +16 -16
- package/templates/next/src-tauri/Cargo.lock +3835 -3835
- package/templates/next/src-tauri/Cargo.toml +39 -39
- package/templates/next/src-tauri/build.rs +3 -3
- package/templates/sveltekit/.github/workflows/release.yml +108 -108
- package/templates/sveltekit/.prettierignore +13 -13
- package/templates/sveltekit/.prettierrc +8 -8
- package/templates/sveltekit/README.md +1 -1
- package/templates/sveltekit/package.json +85 -85
- package/templates/sveltekit/pnpm-lock.yaml +4177 -4177
- package/templates/sveltekit/postcss.config.cjs +13 -13
- package/templates/sveltekit/src/app.d.ts +18 -18
- package/templates/sveltekit/src/app.html +16 -16
- package/templates/sveltekit/src/index.test.ts +7 -7
- package/templates/sveltekit/src/lib/components/docs/TailwindIndicator.svelte +10 -10
- package/templates/sveltekit/src/lib/components/docs/charts/Bar.svelte +152 -152
- package/templates/sveltekit/src/lib/components/docs/dashboard/DashboardPage.svelte +108 -108
- package/templates/sveltekit/src/lib/components/docs/dashboard/MainNav.svelte +31 -31
- package/templates/sveltekit/src/lib/components/docs/dashboard/Overview.svelte +5 -5
- package/templates/sveltekit/src/lib/components/docs/dashboard/RecentSales.svelte +61 -61
- package/templates/sveltekit/src/lib/components/docs/dashboard/Search.svelte +7 -7
- package/templates/sveltekit/src/lib/components/docs/dashboard/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/docs/examples-nav/ExampleCodeLink.svelte +19 -19
- package/templates/sveltekit/src/lib/components/docs/examples-nav/ExamplesNav.svelte +27 -27
- package/templates/sveltekit/src/lib/components/docs/examples-nav/index.ts +2 -2
- package/templates/sveltekit/src/lib/components/docs/icons/Apple.svelte +12 -12
- package/templates/sveltekit/src/lib/components/docs/icons/Aria.svelte +11 -11
- package/templates/sveltekit/src/lib/components/docs/icons/GitHub.svelte +12 -12
- package/templates/sveltekit/src/lib/components/docs/icons/Google.svelte +12 -12
- package/templates/sveltekit/src/lib/components/docs/icons/Logo.svelte +17 -17
- package/templates/sveltekit/src/lib/components/docs/icons/Minimize.svelte +12 -12
- package/templates/sveltekit/src/lib/components/docs/icons/Npm.svelte +12 -12
- package/templates/sveltekit/src/lib/components/docs/icons/PayPal.svelte +12 -12
- package/templates/sveltekit/src/lib/components/docs/icons/Pnpm.svelte +12 -12
- package/templates/sveltekit/src/lib/components/docs/icons/Radix.svelte +14 -14
- package/templates/sveltekit/src/lib/components/docs/icons/RadixSvelte.svelte +14 -14
- package/templates/sveltekit/src/lib/components/docs/icons/Tailwind.svelte +12 -12
- package/templates/sveltekit/src/lib/components/docs/icons/Yarn.svelte +12 -12
- package/templates/sveltekit/src/lib/components/docs/icons/index.ts +78 -78
- package/templates/sveltekit/src/lib/components/docs/index.ts +6 -6
- package/templates/sveltekit/src/lib/components/docs/light-switch/LightSwitch.svelte +75 -75
- package/templates/sveltekit/src/lib/components/docs/light-switch/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/docs/light-switch/light-switch.ts +87 -87
- package/templates/sveltekit/src/lib/components/docs/light-switch/local-storage-store.ts +81 -81
- package/templates/sveltekit/src/lib/components/ui/accordion/Accordion.svelte +11 -11
- package/templates/sveltekit/src/lib/components/ui/accordion/AccordionContent.svelte +19 -19
- package/templates/sveltekit/src/lib/components/ui/accordion/AccordionItem.svelte +13 -13
- package/templates/sveltekit/src/lib/components/ui/accordion/AccordionTrigger.svelte +21 -21
- package/templates/sveltekit/src/lib/components/ui/accordion/index.ts +4 -4
- package/templates/sveltekit/src/lib/components/ui/alert/Alert.svelte +29 -29
- package/templates/sveltekit/src/lib/components/ui/alert/AlertDescription.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/alert/AlertTitle.svelte +15 -15
- package/templates/sveltekit/src/lib/components/ui/alert/index.ts +3 -3
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogAction.svelte +12 -12
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogCancel.svelte +15 -15
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogContent.svelte +22 -22
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogDescription.svelte +14 -14
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogFooter.svelte +13 -13
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogHeader.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogOverlay.svelte +15 -15
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogPortal.svelte +9 -9
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogTitle.svelte +11 -11
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/index.ts +12 -12
- package/templates/sveltekit/src/lib/components/ui/aspect-ratio/AspectRatio.svelte +13 -13
- package/templates/sveltekit/src/lib/components/ui/aspect-ratio/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/avatar/Avatar.svelte +14 -14
- package/templates/sveltekit/src/lib/components/ui/avatar/AvatarFallback.svelte +14 -14
- package/templates/sveltekit/src/lib/components/ui/avatar/AvatarImage.svelte +17 -17
- package/templates/sveltekit/src/lib/components/ui/avatar/index.ts +3 -3
- package/templates/sveltekit/src/lib/components/ui/badge/Badge.svelte +39 -39
- package/templates/sveltekit/src/lib/components/ui/badge/index.ts +21 -21
- package/templates/sveltekit/src/lib/components/ui/button/Button.svelte +47 -47
- package/templates/sveltekit/src/lib/components/ui/button/index.ts +28 -28
- package/templates/sveltekit/src/lib/components/ui/card/Card.svelte +18 -18
- package/templates/sveltekit/src/lib/components/ui/card/CardContent.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/card/CardDescription.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/card/CardFooter.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/card/CardHeader.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/card/CardTitle.svelte +16 -16
- package/templates/sveltekit/src/lib/components/ui/card/index.ts +6 -6
- package/templates/sveltekit/src/lib/components/ui/checkbox/Checkbox.svelte +23 -23
- package/templates/sveltekit/src/lib/components/ui/checkbox/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/collapsible/index.ts +7 -7
- package/templates/sveltekit/src/lib/components/ui/dialog/DialogContent.svelte +29 -29
- package/templates/sveltekit/src/lib/components/ui/dialog/DialogDescription.svelte +14 -14
- package/templates/sveltekit/src/lib/components/ui/dialog/DialogFooter.svelte +13 -13
- package/templates/sveltekit/src/lib/components/ui/dialog/DialogHeader.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/dialog/DialogOverlay.svelte +15 -15
- package/templates/sveltekit/src/lib/components/ui/dialog/DialogPortal.svelte +13 -13
- package/templates/sveltekit/src/lib/components/ui/dialog/DialogTitle.svelte +14 -14
- package/templates/sveltekit/src/lib/components/ui/dialog/index.ts +12 -12
- package/templates/sveltekit/src/lib/components/ui/hover-card/HoverCardContent.svelte +24 -24
- package/templates/sveltekit/src/lib/components/ui/hover-card/index.ts +6 -6
- package/templates/sveltekit/src/lib/components/ui/input/Input.svelte +30 -30
- package/templates/sveltekit/src/lib/components/ui/input/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/label/Label.svelte +16 -16
- package/templates/sveltekit/src/lib/components/ui/label/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/progress/Progress.svelte +22 -22
- package/templates/sveltekit/src/lib/components/ui/progress/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/radio-group/RadioGroup.svelte +13 -13
- package/templates/sveltekit/src/lib/components/ui/radio-group/RadioGroupItem.svelte +23 -23
- package/templates/sveltekit/src/lib/components/ui/radio-group/index.ts +2 -2
- package/templates/sveltekit/src/lib/components/ui/select/SelectContent.svelte +26 -26
- package/templates/sveltekit/src/lib/components/ui/select/SelectItem.svelte +29 -29
- package/templates/sveltekit/src/lib/components/ui/select/SelectLabel.svelte +14 -14
- package/templates/sveltekit/src/lib/components/ui/select/SelectSeparator.svelte +9 -9
- package/templates/sveltekit/src/lib/components/ui/select/SelectTrigger.svelte +21 -21
- package/templates/sveltekit/src/lib/components/ui/select/index.ts +10 -10
- package/templates/sveltekit/src/lib/components/ui/separator/Separator.svelte +22 -22
- package/templates/sveltekit/src/lib/components/ui/separator/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/sheet/SheetContent.svelte +27 -27
- package/templates/sveltekit/src/lib/components/ui/sheet/SheetDescription.svelte +11 -11
- package/templates/sveltekit/src/lib/components/ui/sheet/SheetFooter.svelte +13 -13
- package/templates/sveltekit/src/lib/components/ui/sheet/SheetHeader.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/sheet/SheetOverlay.svelte +15 -15
- package/templates/sveltekit/src/lib/components/ui/sheet/SheetPortal.svelte +28 -28
- package/templates/sveltekit/src/lib/components/ui/sheet/SheetTitle.svelte +14 -14
- package/templates/sveltekit/src/lib/components/ui/sheet/index.ts +102 -102
- package/templates/sveltekit/src/lib/components/ui/skeleton/Skeleton.svelte +8 -8
- package/templates/sveltekit/src/lib/components/ui/skeleton/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/slider/Slider.svelte +22 -22
- package/templates/sveltekit/src/lib/components/ui/slider/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/switch/Switch.svelte +32 -32
- package/templates/sveltekit/src/lib/components/ui/switch/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/table/Table.svelte +12 -12
- package/templates/sveltekit/src/lib/components/ui/table/TableBody.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/table/TableCaption.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/table/TableCell.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/table/TableFooter.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/table/TableHead.svelte +16 -16
- package/templates/sveltekit/src/lib/components/ui/table/TableHeader.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/table/TableRow.svelte +16 -16
- package/templates/sveltekit/src/lib/components/ui/table/index.ts +8 -8
- package/templates/sveltekit/src/lib/components/ui/tabs/TabsContent.svelte +20 -20
- package/templates/sveltekit/src/lib/components/ui/tabs/TabsList.svelte +17 -17
- package/templates/sveltekit/src/lib/components/ui/tabs/TabsTrigger.svelte +20 -20
- package/templates/sveltekit/src/lib/components/ui/tabs/index.ts +7 -7
- package/templates/sveltekit/src/lib/components/ui/textarea/Textarea.svelte +30 -30
- package/templates/sveltekit/src/lib/components/ui/textarea/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/toggle/Toggle.svelte +44 -44
- package/templates/sveltekit/src/lib/components/ui/toggle/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/tooltip/TooltipContent.svelte +22 -22
- package/templates/sveltekit/src/lib/components/ui/tooltip/index.ts +6 -6
- package/templates/sveltekit/src/lib/config/components.ts +306 -306
- package/templates/sveltekit/src/lib/config/docs.ts +356 -356
- package/templates/sveltekit/src/lib/config/site.ts +15 -15
- package/templates/sveltekit/src/lib/types/docs.ts +50 -50
- package/templates/sveltekit/src/lib/types/nav.ts +18 -18
- package/templates/sveltekit/src/lib/utils.ts +75 -75
- package/templates/sveltekit/src/routes/+layout.svelte +48 -48
- package/templates/sveltekit/src/routes/+page.ts +6 -6
- package/templates/sveltekit/src/routes/authentication/+page.svelte +57 -57
- package/templates/sveltekit/src/routes/authentication/+page.ts +7 -7
- package/templates/sveltekit/src/routes/authentication/UserAuthForm.svelte +61 -61
- package/templates/sveltekit/src/routes/cards/+page.svelte +26 -26
- package/templates/sveltekit/src/routes/cards/+page.ts +7 -7
- package/templates/sveltekit/src/routes/cards/CookieSettings.svelte +52 -52
- package/templates/sveltekit/src/routes/cards/CreateAccount.svelte +52 -52
- package/templates/sveltekit/src/routes/cards/DemoContainer.svelte +10 -10
- package/templates/sveltekit/src/routes/cards/Notifications.svelte +38 -38
- package/templates/sveltekit/src/routes/cards/PaymentMethod.svelte +110 -110
- package/templates/sveltekit/src/routes/cards/ReportAnIssue.svelte +71 -71
- package/templates/sveltekit/src/routes/cards/ShareDocument.svelte +91 -91
- package/templates/sveltekit/src/routes/dashboard/+page.svelte +5 -5
- package/templates/sveltekit/src/routes/dashboard/+page.ts +7 -7
- package/templates/sveltekit/src/routes/music/albums.ts +61 -61
- package/templates/sveltekit/src/routes/music/playlists.ts +16 -16
- package/templates/sveltekit/src/styles/globals.css +125 -125
- package/templates/sveltekit/src/styles/mdsvex.css +80 -80
- package/templates/sveltekit/src-tauri/Cargo.lock +3835 -3835
- package/templates/sveltekit/src-tauri/Cargo.toml +39 -39
- package/templates/sveltekit/src-tauri/build.rs +3 -3
- package/templates/sveltekit/src-tauri/tauri.conf.json +71 -71
- package/templates/sveltekit/svelte.config.js +22 -22
- package/templates/sveltekit/tailwind.config.js +67 -67
- package/templates/sveltekit/tsconfig.json +13 -13
- package/templates/vite/package.json +83 -83
- package/templates/vite/pnpm-lock.yaml +5176 -5176
- package/templates/vite/src-tauri/Cargo.lock +3835 -3835
- package/templates/vite/src-tauri/Cargo.toml +39 -39
- package/templates/vite/src-tauri/build.rs +3 -3
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export const siteConfig = {
|
|
2
|
-
name: 'shadcn-svelte',
|
|
3
|
-
url: 'https://shadcn-svelte.com',
|
|
4
|
-
ogImage: 'https://shadcn-svelte.com/og.jpg',
|
|
5
|
-
description: 'Beautifully designed components built with Radix Svelte and Tailwind CSS.',
|
|
6
|
-
links: {
|
|
7
|
-
twitter: 'https://twitter.com/huntabyte',
|
|
8
|
-
github: 'https://github.com/huntabyte/shadcn-svelte',
|
|
9
|
-
shadTwitter: 'https://twitter.com/shadcn',
|
|
10
|
-
shadGithub: 'https://github.com/shadcn/ui'
|
|
11
|
-
},
|
|
12
|
-
keywords: `shadcn,Svelte,SvelteKit,Svelte Components,TailwindCSS,Radix Svelte`
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export type SiteConfig = typeof siteConfig;
|
|
1
|
+
export const siteConfig = {
|
|
2
|
+
name: 'shadcn-svelte',
|
|
3
|
+
url: 'https://shadcn-svelte.com',
|
|
4
|
+
ogImage: 'https://shadcn-svelte.com/og.jpg',
|
|
5
|
+
description: 'Beautifully designed components built with Radix Svelte and Tailwind CSS.',
|
|
6
|
+
links: {
|
|
7
|
+
twitter: 'https://twitter.com/huntabyte',
|
|
8
|
+
github: 'https://github.com/huntabyte/shadcn-svelte',
|
|
9
|
+
shadTwitter: 'https://twitter.com/shadcn',
|
|
10
|
+
shadGithub: 'https://github.com/shadcn/ui'
|
|
11
|
+
},
|
|
12
|
+
keywords: `shadcn,Svelte,SvelteKit,Svelte Components,TailwindCSS,Radix Svelte`
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type SiteConfig = typeof siteConfig;
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
export type Metadata = {
|
|
2
|
-
title: string;
|
|
3
|
-
description: string;
|
|
4
|
-
openGraph: {
|
|
5
|
-
title: string;
|
|
6
|
-
description: string;
|
|
7
|
-
type: 'article';
|
|
8
|
-
url: string;
|
|
9
|
-
images: [
|
|
10
|
-
{
|
|
11
|
-
url: string;
|
|
12
|
-
width: number;
|
|
13
|
-
height: number;
|
|
14
|
-
alt: string;
|
|
15
|
-
}
|
|
16
|
-
];
|
|
17
|
-
};
|
|
18
|
-
twitter: {
|
|
19
|
-
card: 'summary_large_image';
|
|
20
|
-
title: string;
|
|
21
|
-
description: string;
|
|
22
|
-
images: string[];
|
|
23
|
-
creator: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export type FrontMatter = {
|
|
28
|
-
title: string;
|
|
29
|
-
description: string;
|
|
30
|
-
component: boolean;
|
|
31
|
-
source: string;
|
|
32
|
-
radix?: string;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export type DocFile = {
|
|
36
|
-
default: import('svelte/internal').SvelteComponent;
|
|
37
|
-
metadata: FrontMatter;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export type DocResolver = () => Promise<DocFile>;
|
|
41
|
-
|
|
42
|
-
export type TableOfContentsItem = {
|
|
43
|
-
title: string;
|
|
44
|
-
url: string;
|
|
45
|
-
items?: TableOfContentsItem[];
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export type TableOfContents = {
|
|
49
|
-
items: TableOfContentsItem[];
|
|
50
|
-
};
|
|
1
|
+
export type Metadata = {
|
|
2
|
+
title: string;
|
|
3
|
+
description: string;
|
|
4
|
+
openGraph: {
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
type: 'article';
|
|
8
|
+
url: string;
|
|
9
|
+
images: [
|
|
10
|
+
{
|
|
11
|
+
url: string;
|
|
12
|
+
width: number;
|
|
13
|
+
height: number;
|
|
14
|
+
alt: string;
|
|
15
|
+
}
|
|
16
|
+
];
|
|
17
|
+
};
|
|
18
|
+
twitter: {
|
|
19
|
+
card: 'summary_large_image';
|
|
20
|
+
title: string;
|
|
21
|
+
description: string;
|
|
22
|
+
images: string[];
|
|
23
|
+
creator: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export type FrontMatter = {
|
|
28
|
+
title: string;
|
|
29
|
+
description: string;
|
|
30
|
+
component: boolean;
|
|
31
|
+
source: string;
|
|
32
|
+
radix?: string;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export type DocFile = {
|
|
36
|
+
default: import('svelte/internal').SvelteComponent;
|
|
37
|
+
metadata: FrontMatter;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export type DocResolver = () => Promise<DocFile>;
|
|
41
|
+
|
|
42
|
+
export type TableOfContentsItem = {
|
|
43
|
+
title: string;
|
|
44
|
+
url: string;
|
|
45
|
+
items?: TableOfContentsItem[];
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export type TableOfContents = {
|
|
49
|
+
items: TableOfContentsItem[];
|
|
50
|
+
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import type { Icons } from '$components/docs/icons';
|
|
2
|
-
|
|
3
|
-
export type NavItem = {
|
|
4
|
-
title: string;
|
|
5
|
-
href?: string;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
external?: boolean;
|
|
8
|
-
icon?: keyof typeof Icons;
|
|
9
|
-
label?: string;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export type SidebarNavItem = NavItem & {
|
|
13
|
-
items: SidebarNavItem[];
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export type NavItemWithChildren = NavItem & {
|
|
17
|
-
items: NavItemWithChildren[];
|
|
18
|
-
};
|
|
1
|
+
import type { Icons } from '$components/docs/icons';
|
|
2
|
+
|
|
3
|
+
export type NavItem = {
|
|
4
|
+
title: string;
|
|
5
|
+
href?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
external?: boolean;
|
|
8
|
+
icon?: keyof typeof Icons;
|
|
9
|
+
label?: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export type SidebarNavItem = NavItem & {
|
|
13
|
+
items: SidebarNavItem[];
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type NavItemWithChildren = NavItem & {
|
|
17
|
+
items: NavItemWithChildren[];
|
|
18
|
+
};
|
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
import type { ClassValue } from 'clsx';
|
|
2
|
-
import { clsx } from 'clsx';
|
|
3
|
-
import { twMerge } from 'tailwind-merge';
|
|
4
|
-
|
|
5
|
-
export function cn(...inputs: ClassValue[]) {
|
|
6
|
-
return twMerge(clsx(inputs));
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export function slugFromPath(path: string) {
|
|
10
|
-
return path.replace('/src/content/', '').replace('.md', '');
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export function hexToHsl(hex: string): [number, number, number] {
|
|
14
|
-
if (hex) {
|
|
15
|
-
const sanitizedHex = hex.replace('#', '');
|
|
16
|
-
|
|
17
|
-
const red = parseInt(sanitizedHex.substring(0, 2), 16);
|
|
18
|
-
const green = parseInt(sanitizedHex.substring(2, 4), 16);
|
|
19
|
-
const blue = parseInt(sanitizedHex.substring(4, 6), 16);
|
|
20
|
-
|
|
21
|
-
const normalizedRed = red / 255;
|
|
22
|
-
const normalizedGreen = green / 255;
|
|
23
|
-
const normalizedBlue = blue / 255;
|
|
24
|
-
|
|
25
|
-
const max = Math.max(normalizedRed, normalizedGreen, normalizedBlue);
|
|
26
|
-
const min = Math.min(normalizedRed, normalizedGreen, normalizedBlue);
|
|
27
|
-
|
|
28
|
-
let hue, saturation, lightness;
|
|
29
|
-
|
|
30
|
-
if (max === min) {
|
|
31
|
-
hue = 0;
|
|
32
|
-
} else if (max === normalizedRed) {
|
|
33
|
-
hue = ((normalizedGreen - normalizedBlue) / (max - min)) % 6;
|
|
34
|
-
} else if (max === normalizedGreen) {
|
|
35
|
-
hue = (normalizedBlue - normalizedRed) / (max - min) + 2;
|
|
36
|
-
} else {
|
|
37
|
-
hue = (normalizedRed - normalizedGreen) / (max - min) + 4;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
hue = Math.round(hue * 60);
|
|
41
|
-
|
|
42
|
-
if (hue < 0) {
|
|
43
|
-
hue += 360;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
lightness = (max + min) / 2;
|
|
47
|
-
|
|
48
|
-
if (max === min) {
|
|
49
|
-
saturation = 0;
|
|
50
|
-
} else if (lightness <= 0.5) {
|
|
51
|
-
saturation = (max - min) / (max + min);
|
|
52
|
-
} else {
|
|
53
|
-
saturation = (max - min) / (2 - max - min);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
saturation = Math.round(saturation * 100);
|
|
57
|
-
lightness = Math.round(lightness * 100);
|
|
58
|
-
|
|
59
|
-
return [hue, saturation, lightness];
|
|
60
|
-
}
|
|
61
|
-
return [0, 0, 0];
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function hexToRgb(hex: string): [number, number, number] {
|
|
65
|
-
if (hex) {
|
|
66
|
-
const sanitizedHex = hex.replace('#', '');
|
|
67
|
-
|
|
68
|
-
const red = parseInt(sanitizedHex.substring(0, 2), 16);
|
|
69
|
-
const green = parseInt(sanitizedHex.substring(2, 4), 16);
|
|
70
|
-
const blue = parseInt(sanitizedHex.substring(4, 6), 16);
|
|
71
|
-
|
|
72
|
-
return [red, green, blue];
|
|
73
|
-
}
|
|
74
|
-
return [0, 0, 0];
|
|
75
|
-
}
|
|
1
|
+
import type { ClassValue } from 'clsx';
|
|
2
|
+
import { clsx } from 'clsx';
|
|
3
|
+
import { twMerge } from 'tailwind-merge';
|
|
4
|
+
|
|
5
|
+
export function cn(...inputs: ClassValue[]) {
|
|
6
|
+
return twMerge(clsx(inputs));
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function slugFromPath(path: string) {
|
|
10
|
+
return path.replace('/src/content/', '').replace('.md', '');
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export function hexToHsl(hex: string): [number, number, number] {
|
|
14
|
+
if (hex) {
|
|
15
|
+
const sanitizedHex = hex.replace('#', '');
|
|
16
|
+
|
|
17
|
+
const red = parseInt(sanitizedHex.substring(0, 2), 16);
|
|
18
|
+
const green = parseInt(sanitizedHex.substring(2, 4), 16);
|
|
19
|
+
const blue = parseInt(sanitizedHex.substring(4, 6), 16);
|
|
20
|
+
|
|
21
|
+
const normalizedRed = red / 255;
|
|
22
|
+
const normalizedGreen = green / 255;
|
|
23
|
+
const normalizedBlue = blue / 255;
|
|
24
|
+
|
|
25
|
+
const max = Math.max(normalizedRed, normalizedGreen, normalizedBlue);
|
|
26
|
+
const min = Math.min(normalizedRed, normalizedGreen, normalizedBlue);
|
|
27
|
+
|
|
28
|
+
let hue, saturation, lightness;
|
|
29
|
+
|
|
30
|
+
if (max === min) {
|
|
31
|
+
hue = 0;
|
|
32
|
+
} else if (max === normalizedRed) {
|
|
33
|
+
hue = ((normalizedGreen - normalizedBlue) / (max - min)) % 6;
|
|
34
|
+
} else if (max === normalizedGreen) {
|
|
35
|
+
hue = (normalizedBlue - normalizedRed) / (max - min) + 2;
|
|
36
|
+
} else {
|
|
37
|
+
hue = (normalizedRed - normalizedGreen) / (max - min) + 4;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
hue = Math.round(hue * 60);
|
|
41
|
+
|
|
42
|
+
if (hue < 0) {
|
|
43
|
+
hue += 360;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
lightness = (max + min) / 2;
|
|
47
|
+
|
|
48
|
+
if (max === min) {
|
|
49
|
+
saturation = 0;
|
|
50
|
+
} else if (lightness <= 0.5) {
|
|
51
|
+
saturation = (max - min) / (max + min);
|
|
52
|
+
} else {
|
|
53
|
+
saturation = (max - min) / (2 - max - min);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
saturation = Math.round(saturation * 100);
|
|
57
|
+
lightness = Math.round(lightness * 100);
|
|
58
|
+
|
|
59
|
+
return [hue, saturation, lightness];
|
|
60
|
+
}
|
|
61
|
+
return [0, 0, 0];
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function hexToRgb(hex: string): [number, number, number] {
|
|
65
|
+
if (hex) {
|
|
66
|
+
const sanitizedHex = hex.replace('#', '');
|
|
67
|
+
|
|
68
|
+
const red = parseInt(sanitizedHex.substring(0, 2), 16);
|
|
69
|
+
const green = parseInt(sanitizedHex.substring(2, 4), 16);
|
|
70
|
+
const blue = parseInt(sanitizedHex.substring(4, 6), 16);
|
|
71
|
+
|
|
72
|
+
return [red, green, blue];
|
|
73
|
+
}
|
|
74
|
+
return [0, 0, 0];
|
|
75
|
+
}
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { dev } from '$app/environment';
|
|
3
|
-
import '../styles/globals.css';
|
|
4
|
-
import { WindowTitlebar } from '@tauri-controls/svelte';
|
|
5
|
-
|
|
6
|
-
import { ExamplesNav, TailwindIndicator } from '$components/docs';
|
|
7
|
-
import { cn } from '$lib/utils';
|
|
8
|
-
import { Sailboat } from 'lucide-svelte';
|
|
9
|
-
|
|
10
|
-
import { onMount } from 'svelte';
|
|
11
|
-
import LightSwitch from '$components/docs/light-switch/LightSwitch.svelte';
|
|
12
|
-
import type { WebviewWindow } from '@tauri-apps/plugin-window';
|
|
13
|
-
|
|
14
|
-
let appWindow: WebviewWindow;
|
|
15
|
-
|
|
16
|
-
const closeWindow = async () => {
|
|
17
|
-
appWindow.close();
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
onMount(async () => {
|
|
21
|
-
const { appWindow: windowPlugin } = await import('@tauri-apps/plugin-window');
|
|
22
|
-
appWindow = windowPlugin;
|
|
23
|
-
});
|
|
24
|
-
</script>
|
|
25
|
-
|
|
26
|
-
<div class="h-screen overflow-clip">
|
|
27
|
-
<WindowTitlebar class="ml-2">
|
|
28
|
-
<div class="pl-2 flex items-center p-1">
|
|
29
|
-
<Sailboat class="h-5 w-5 " />
|
|
30
|
-
|
|
31
|
-
<ExamplesNav data-tauri-drag-region class="pl-1" />
|
|
32
|
-
<LightSwitch />
|
|
33
|
-
</div>
|
|
34
|
-
</WindowTitlebar>
|
|
35
|
-
|
|
36
|
-
<div
|
|
37
|
-
class={cn(
|
|
38
|
-
'h-screen overflow-auto border-t bg-background pb-8',
|
|
39
|
-
// "scrollbar-none"
|
|
40
|
-
'scrollbar scrollbar-track-transparent scrollbar-thumb-accent scrollbar-thumb-rounded-md'
|
|
41
|
-
)}
|
|
42
|
-
>
|
|
43
|
-
<slot />
|
|
44
|
-
</div>
|
|
45
|
-
{#if dev}
|
|
46
|
-
<TailwindIndicator />
|
|
47
|
-
{/if}
|
|
48
|
-
</div>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { dev } from '$app/environment';
|
|
3
|
+
import '../styles/globals.css';
|
|
4
|
+
import { WindowTitlebar } from '@tauri-controls/svelte';
|
|
5
|
+
|
|
6
|
+
import { ExamplesNav, TailwindIndicator } from '$components/docs';
|
|
7
|
+
import { cn } from '$lib/utils';
|
|
8
|
+
import { Sailboat } from 'lucide-svelte';
|
|
9
|
+
|
|
10
|
+
import { onMount } from 'svelte';
|
|
11
|
+
import LightSwitch from '$components/docs/light-switch/LightSwitch.svelte';
|
|
12
|
+
import type { WebviewWindow } from '@tauri-apps/plugin-window';
|
|
13
|
+
|
|
14
|
+
let appWindow: WebviewWindow;
|
|
15
|
+
|
|
16
|
+
const closeWindow = async () => {
|
|
17
|
+
appWindow.close();
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
onMount(async () => {
|
|
21
|
+
const { appWindow: windowPlugin } = await import('@tauri-apps/plugin-window');
|
|
22
|
+
appWindow = windowPlugin;
|
|
23
|
+
});
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<div class="h-screen overflow-clip">
|
|
27
|
+
<WindowTitlebar class="ml-2">
|
|
28
|
+
<div class="pl-2 flex items-center p-1">
|
|
29
|
+
<Sailboat class="h-5 w-5 " />
|
|
30
|
+
|
|
31
|
+
<ExamplesNav data-tauri-drag-region class="pl-1" />
|
|
32
|
+
<LightSwitch />
|
|
33
|
+
</div>
|
|
34
|
+
</WindowTitlebar>
|
|
35
|
+
|
|
36
|
+
<div
|
|
37
|
+
class={cn(
|
|
38
|
+
'h-screen overflow-auto border-t bg-background pb-8',
|
|
39
|
+
// "scrollbar-none"
|
|
40
|
+
'scrollbar scrollbar-track-transparent scrollbar-thumb-accent scrollbar-thumb-rounded-md'
|
|
41
|
+
)}
|
|
42
|
+
>
|
|
43
|
+
<slot />
|
|
44
|
+
</div>
|
|
45
|
+
{#if dev}
|
|
46
|
+
<TailwindIndicator />
|
|
47
|
+
{/if}
|
|
48
|
+
</div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { PageLoad } from './$types';
|
|
2
|
-
import { redirect } from '@sveltejs/kit';
|
|
3
|
-
|
|
4
|
-
export const load: PageLoad = async () => {
|
|
5
|
-
throw redirect(302, '/dashboard');
|
|
6
|
-
};
|
|
1
|
+
import type { PageLoad } from './$types';
|
|
2
|
+
import { redirect } from '@sveltejs/kit';
|
|
3
|
+
|
|
4
|
+
export const load: PageLoad = async () => {
|
|
5
|
+
throw redirect(302, '/dashboard');
|
|
6
|
+
};
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Button } from '$components/ui/button';
|
|
3
|
-
import UserAuthForm from './UserAuthForm.svelte';
|
|
4
|
-
</script>
|
|
5
|
-
|
|
6
|
-
<div
|
|
7
|
-
class="container relative h-[800px] flex-col items-center justify-center md:grid lg:max-w-none lg:grid-cols-2 lg:px-0"
|
|
8
|
-
>
|
|
9
|
-
<Button
|
|
10
|
-
href="/examples/authentication"
|
|
11
|
-
variant="ghost"
|
|
12
|
-
class="absolute right-4 top-4 md:right-8 md:top-8"
|
|
13
|
-
>
|
|
14
|
-
Login
|
|
15
|
-
</Button>
|
|
16
|
-
<div class="relative h-full flex-col bg-muted p-10 text-white dark:border-r lg:flex">
|
|
17
|
-
<div
|
|
18
|
-
class="absolute inset-0 bg-cover"
|
|
19
|
-
style="
|
|
20
|
-
background-image:
|
|
21
|
-
url(https://images.unsplash.com/photo-1590069261209-f8e9b8642343?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1376&q=80);"
|
|
22
|
-
/>
|
|
23
|
-
<div class="relative z-20 flex items-center text-lg font-medium">
|
|
24
|
-
<!-- <Command class="mr-2 h-6 w-6" /> -->
|
|
25
|
-
Acme Inc
|
|
26
|
-
</div>
|
|
27
|
-
<div class="relative z-20 mt-auto">
|
|
28
|
-
<blockquote class="space-y-2">
|
|
29
|
-
<p class="text-lg">
|
|
30
|
-
“This library has saved me countless hours of work and helped me deliver stunning
|
|
31
|
-
designs to my clients faster than ever before. Highly recommended!”
|
|
32
|
-
</p>
|
|
33
|
-
<footer class="text-sm">Sofia Davis</footer>
|
|
34
|
-
</blockquote>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
<div class="lg:p-8">
|
|
38
|
-
<div class="mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]">
|
|
39
|
-
<div class="flex flex-col space-y-2 text-center">
|
|
40
|
-
<h1 class="text-2xl font-semibold tracking-tight">Create an account</h1>
|
|
41
|
-
<p class="text-sm text-muted-foreground">Enter your email below to create your account</p>
|
|
42
|
-
</div>
|
|
43
|
-
<UserAuthForm />
|
|
44
|
-
<p class="px-8 text-center text-sm text-muted-foreground">
|
|
45
|
-
By clicking continue, you agree to our{' '}
|
|
46
|
-
<a href="/terms" class="underline underline-offset-4 hover:text-primary">
|
|
47
|
-
Terms of Service
|
|
48
|
-
</a>{' '}
|
|
49
|
-
and{' '}
|
|
50
|
-
<a href="/privacy" class="underline underline-offset-4 hover:text-primary">
|
|
51
|
-
Privacy Policy
|
|
52
|
-
</a>
|
|
53
|
-
.
|
|
54
|
-
</p>
|
|
55
|
-
</div>
|
|
56
|
-
</div>
|
|
57
|
-
</div>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { Button } from '$components/ui/button';
|
|
3
|
+
import UserAuthForm from './UserAuthForm.svelte';
|
|
4
|
+
</script>
|
|
5
|
+
|
|
6
|
+
<div
|
|
7
|
+
class="container relative h-[800px] flex-col items-center justify-center md:grid lg:max-w-none lg:grid-cols-2 lg:px-0"
|
|
8
|
+
>
|
|
9
|
+
<Button
|
|
10
|
+
href="/examples/authentication"
|
|
11
|
+
variant="ghost"
|
|
12
|
+
class="absolute right-4 top-4 md:right-8 md:top-8"
|
|
13
|
+
>
|
|
14
|
+
Login
|
|
15
|
+
</Button>
|
|
16
|
+
<div class="relative h-full flex-col bg-muted p-10 text-white dark:border-r lg:flex">
|
|
17
|
+
<div
|
|
18
|
+
class="absolute inset-0 bg-cover"
|
|
19
|
+
style="
|
|
20
|
+
background-image:
|
|
21
|
+
url(https://images.unsplash.com/photo-1590069261209-f8e9b8642343?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1376&q=80);"
|
|
22
|
+
/>
|
|
23
|
+
<div class="relative z-20 flex items-center text-lg font-medium">
|
|
24
|
+
<!-- <Command class="mr-2 h-6 w-6" /> -->
|
|
25
|
+
Acme Inc
|
|
26
|
+
</div>
|
|
27
|
+
<div class="relative z-20 mt-auto">
|
|
28
|
+
<blockquote class="space-y-2">
|
|
29
|
+
<p class="text-lg">
|
|
30
|
+
“This library has saved me countless hours of work and helped me deliver stunning
|
|
31
|
+
designs to my clients faster than ever before. Highly recommended!”
|
|
32
|
+
</p>
|
|
33
|
+
<footer class="text-sm">Sofia Davis</footer>
|
|
34
|
+
</blockquote>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="lg:p-8">
|
|
38
|
+
<div class="mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]">
|
|
39
|
+
<div class="flex flex-col space-y-2 text-center">
|
|
40
|
+
<h1 class="text-2xl font-semibold tracking-tight">Create an account</h1>
|
|
41
|
+
<p class="text-sm text-muted-foreground">Enter your email below to create your account</p>
|
|
42
|
+
</div>
|
|
43
|
+
<UserAuthForm />
|
|
44
|
+
<p class="px-8 text-center text-sm text-muted-foreground">
|
|
45
|
+
By clicking continue, you agree to our{' '}
|
|
46
|
+
<a href="/terms" class="underline underline-offset-4 hover:text-primary">
|
|
47
|
+
Terms of Service
|
|
48
|
+
</a>{' '}
|
|
49
|
+
and{' '}
|
|
50
|
+
<a href="/privacy" class="underline underline-offset-4 hover:text-primary">
|
|
51
|
+
Privacy Policy
|
|
52
|
+
</a>
|
|
53
|
+
.
|
|
54
|
+
</p>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { PageLoad } from './$types';
|
|
2
|
-
|
|
3
|
-
export const load: PageLoad = async () => {
|
|
4
|
-
return {
|
|
5
|
-
title: 'Authentication Example'
|
|
6
|
-
};
|
|
7
|
-
};
|
|
1
|
+
import type { PageLoad } from './$types';
|
|
2
|
+
|
|
3
|
+
export const load: PageLoad = async () => {
|
|
4
|
+
return {
|
|
5
|
+
title: 'Authentication Example'
|
|
6
|
+
};
|
|
7
|
+
};
|