create-tauri-ui 0.3.3 → 1.0.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/README.md +188 -97
- package/assets/debug-panel/debug-events.ts.tmpl +97 -0
- package/assets/debug-panel/debug-panel.tsx.tmpl +1354 -0
- package/assets/debug-panel/tauri.ts.tmpl +53 -0
- package/assets/release.yml.tmpl +74 -0
- package/dist/index.mjs +483 -52
- package/index.js +3 -3
- package/package.json +53 -55
- package/templates/.shared/.github/workflows/release.yml +0 -112
- package/templates/.shared/src-tauri/Cargo.lock +0 -3835
- package/templates/.shared/src-tauri/Cargo.toml +0 -39
- package/templates/.shared/src-tauri/build.rs +0 -3
- package/templates/.shared/src-tauri/icons/128x128.png +0 -0
- package/templates/.shared/src-tauri/icons/128x128@2x.png +0 -0
- package/templates/.shared/src-tauri/icons/32x32.png +0 -0
- package/templates/.shared/src-tauri/icons/Square107x107Logo.png +0 -0
- package/templates/.shared/src-tauri/icons/Square142x142Logo.png +0 -0
- package/templates/.shared/src-tauri/icons/Square150x150Logo.png +0 -0
- package/templates/.shared/src-tauri/icons/Square284x284Logo.png +0 -0
- package/templates/.shared/src-tauri/icons/Square30x30Logo.png +0 -0
- package/templates/.shared/src-tauri/icons/Square310x310Logo.png +0 -0
- package/templates/.shared/src-tauri/icons/Square44x44Logo.png +0 -0
- package/templates/.shared/src-tauri/icons/Square71x71Logo.png +0 -0
- package/templates/.shared/src-tauri/icons/Square89x89Logo.png +0 -0
- package/templates/.shared/src-tauri/icons/StoreLogo.png +0 -0
- package/templates/.shared/src-tauri/icons/android/mipmap-hdpi/ic_launcher.png +0 -0
- package/templates/.shared/src-tauri/icons/android/mipmap-hdpi/ic_launcher_foreground.png +0 -0
- package/templates/.shared/src-tauri/icons/android/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/templates/.shared/src-tauri/icons/android/mipmap-mdpi/ic_launcher.png +0 -0
- package/templates/.shared/src-tauri/icons/android/mipmap-mdpi/ic_launcher_foreground.png +0 -0
- package/templates/.shared/src-tauri/icons/android/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/templates/.shared/src-tauri/icons/android/mipmap-xhdpi/ic_launcher.png +0 -0
- package/templates/.shared/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_foreground.png +0 -0
- package/templates/.shared/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/templates/.shared/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/templates/.shared/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_foreground.png +0 -0
- package/templates/.shared/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/templates/.shared/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/templates/.shared/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_foreground.png +0 -0
- package/templates/.shared/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/templates/.shared/src-tauri/icons/icon.icns +0 -0
- package/templates/.shared/src-tauri/icons/icon.ico +0 -0
- package/templates/.shared/src-tauri/icons/icon.png +0 -0
- package/templates/.shared/src-tauri/icons/ios/AppIcon-20x20@1x.png +0 -0
- package/templates/.shared/src-tauri/icons/ios/AppIcon-20x20@2x-1.png +0 -0
- package/templates/.shared/src-tauri/icons/ios/AppIcon-20x20@2x.png +0 -0
- package/templates/.shared/src-tauri/icons/ios/AppIcon-20x20@3x.png +0 -0
- package/templates/.shared/src-tauri/icons/ios/AppIcon-29x29@1x.png +0 -0
- package/templates/.shared/src-tauri/icons/ios/AppIcon-29x29@2x-1.png +0 -0
- package/templates/.shared/src-tauri/icons/ios/AppIcon-29x29@2x.png +0 -0
- package/templates/.shared/src-tauri/icons/ios/AppIcon-29x29@3x.png +0 -0
- package/templates/.shared/src-tauri/icons/ios/AppIcon-40x40@1x.png +0 -0
- package/templates/.shared/src-tauri/icons/ios/AppIcon-40x40@2x-1.png +0 -0
- package/templates/.shared/src-tauri/icons/ios/AppIcon-40x40@2x.png +0 -0
- package/templates/.shared/src-tauri/icons/ios/AppIcon-40x40@3x.png +0 -0
- package/templates/.shared/src-tauri/icons/ios/AppIcon-512@2x.png +0 -0
- package/templates/.shared/src-tauri/icons/ios/AppIcon-60x60@2x.png +0 -0
- package/templates/.shared/src-tauri/icons/ios/AppIcon-60x60@3x.png +0 -0
- package/templates/.shared/src-tauri/icons/ios/AppIcon-76x76@1x.png +0 -0
- package/templates/.shared/src-tauri/icons/ios/AppIcon-76x76@2x.png +0 -0
- package/templates/.shared/src-tauri/icons/ios/AppIcon-83.5x83.5@2x.png +0 -0
- package/templates/.shared/src-tauri/src/main.rs +0 -22
- package/templates/.shared/src-tauri/tauri.conf.json +0 -71
- package/templates/next/.env +0 -1
- package/templates/next/.github/workflows/release.yml +0 -108
- package/templates/next/.vscode/extensions.json +0 -3
- package/templates/next/LICENSE +0 -21
- package/templates/next/README.md +0 -95
- package/templates/next/app-icon.png +0 -0
- package/templates/next/components.json +0 -16
- package/templates/next/next-env.d.ts +0 -5
- package/templates/next/next.config.js +0 -14
- package/templates/next/package.json +0 -87
- package/templates/next/pnpm-lock.yaml +0 -4911
- package/templates/next/postcss.config.js +0 -6
- package/templates/next/prettier.config.js +0 -35
- package/templates/next/public/avatars/01.png +0 -0
- package/templates/next/public/avatars/02.png +0 -0
- package/templates/next/public/avatars/03.png +0 -0
- package/templates/next/public/avatars/04.png +0 -0
- package/templates/next/public/avatars/05.png +0 -0
- package/templates/next/src/app/examples/authentication/components/user-auth-form.tsx +0 -71
- package/templates/next/src/app/examples/authentication/page.tsx +0 -88
- package/templates/next/src/app/examples/cards/components/cookie-settings.tsx +0 -60
- package/templates/next/src/app/examples/cards/components/create-account.tsx +0 -60
- package/templates/next/src/app/examples/cards/components/date-picker.tsx +0 -20
- package/templates/next/src/app/examples/cards/components/github-card.tsx +0 -88
- package/templates/next/src/app/examples/cards/components/notifications.tsx +0 -53
- package/templates/next/src/app/examples/cards/components/payment-method.tsx +0 -129
- package/templates/next/src/app/examples/cards/components/report-an-issue.tsx +0 -85
- package/templates/next/src/app/examples/cards/components/share-document.tsx +0 -120
- package/templates/next/src/app/examples/cards/components/team-members.tsx +0 -149
- package/templates/next/src/app/examples/cards/page.tsx +0 -76
- package/templates/next/src/app/examples/dashboard/components/date-range-picker.tsx +0 -65
- package/templates/next/src/app/examples/dashboard/components/main-nav.tsx +0 -40
- package/templates/next/src/app/examples/dashboard/components/overview.tsx +0 -78
- package/templates/next/src/app/examples/dashboard/components/recent-sales.tsx +0 -71
- package/templates/next/src/app/examples/dashboard/components/search.tsx +0 -13
- package/templates/next/src/app/examples/dashboard/components/team-switcher.tsx +0 -213
- package/templates/next/src/app/examples/dashboard/components/user-nav.tsx +0 -62
- package/templates/next/src/app/examples/dashboard/page.tsx +0 -197
- package/templates/next/src/app/examples/forms/account/account-form.tsx +0 -219
- package/templates/next/src/app/examples/forms/account/page.tsx +0 -18
- package/templates/next/src/app/examples/forms/appearance/appearance-form.tsx +0 -164
- package/templates/next/src/app/examples/forms/appearance/page.tsx +0 -18
- package/templates/next/src/app/examples/forms/components/profile-form.tsx +0 -191
- package/templates/next/src/app/examples/forms/components/sidebar-nav.tsx +0 -44
- package/templates/next/src/app/examples/forms/display/display-form.tsx +0 -132
- package/templates/next/src/app/examples/forms/display/page.tsx +0 -17
- package/templates/next/src/app/examples/forms/layout.tsx +0 -59
- package/templates/next/src/app/examples/forms/notifications/notifications-form.tsx +0 -222
- package/templates/next/src/app/examples/forms/notifications/page.tsx +0 -17
- package/templates/next/src/app/examples/forms/page.tsx +0 -17
- package/templates/next/src/app/examples/layout.tsx +0 -7
- package/templates/next/src/app/examples/music/components/album-artwork.tsx +0 -95
- package/templates/next/src/app/examples/music/components/menu.tsx +0 -200
- package/templates/next/src/app/examples/music/components/podcast-empty-placeholder.tsx +0 -64
- package/templates/next/src/app/examples/music/components/sidebar.tsx +0 -204
- package/templates/next/src/app/examples/music/data/albums.ts +0 -71
- package/templates/next/src/app/examples/music/data/playlists.ts +0 -16
- package/templates/next/src/app/examples/music/page.tsx +0 -141
- package/templates/next/src/app/examples/playground/components/code-viewer.tsx +0 -89
- package/templates/next/src/app/examples/playground/components/maxlength-selector.tsx +0 -55
- package/templates/next/src/app/examples/playground/components/model-selector.tsx +0 -163
- package/templates/next/src/app/examples/playground/components/preset-actions.tsx +0 -122
- package/templates/next/src/app/examples/playground/components/preset-save.tsx +0 -44
- package/templates/next/src/app/examples/playground/components/preset-selector.tsx +0 -82
- package/templates/next/src/app/examples/playground/components/preset-share.tsx +0 -46
- package/templates/next/src/app/examples/playground/components/temperature-selector.tsx +0 -57
- package/templates/next/src/app/examples/playground/components/top-p-selector.tsx +0 -54
- package/templates/next/src/app/examples/playground/data/models.ts +0 -62
- package/templates/next/src/app/examples/playground/data/presets.ts +0 -47
- package/templates/next/src/app/examples/playground/page.tsx +0 -313
- package/templates/next/src/app/examples/tasks/components/columns.tsx +0 -120
- package/templates/next/src/app/examples/tasks/components/data-table-column-header.tsx +0 -71
- package/templates/next/src/app/examples/tasks/components/data-table-faceted-filter.tsx +0 -147
- package/templates/next/src/app/examples/tasks/components/data-table-pagination.tsx +0 -97
- package/templates/next/src/app/examples/tasks/components/data-table-row-actions.tsx +0 -69
- package/templates/next/src/app/examples/tasks/components/data-table-toolbar.tsx +0 -61
- package/templates/next/src/app/examples/tasks/components/data-table-view-options.tsx +0 -59
- package/templates/next/src/app/examples/tasks/components/data-table.tsx +0 -126
- package/templates/next/src/app/examples/tasks/components/user-nav.tsx +0 -62
- package/templates/next/src/app/examples/tasks/data/data.tsx +0 -71
- package/templates/next/src/app/examples/tasks/data/schema.ts +0 -13
- package/templates/next/src/app/examples/tasks/data/seed.ts +0 -20
- package/templates/next/src/app/examples/tasks/data/tasks.json +0 -702
- package/templates/next/src/app/examples/tasks/page.tsx +0 -49
- package/templates/next/src/app/layout.tsx +0 -47
- package/templates/next/src/app/page.tsx +0 -5
- package/templates/next/src/assets/Inter-VariableFont_slnt,wght.ttf +0 -0
- package/templates/next/src/assets/logo.png +0 -0
- package/templates/next/src/components/about-dialog.tsx +0 -111
- package/templates/next/src/components/example/date-picker-with-range.tsx +0 -65
- package/templates/next/src/components/examples-nav.tsx +0 -70
- package/templates/next/src/components/greeting.tsx +0 -21
- package/templates/next/src/components/icons.tsx +0 -156
- package/templates/next/src/components/menu-mode-toggle.tsx +0 -47
- package/templates/next/src/components/menu.tsx +0 -224
- package/templates/next/src/components/mode-toggle.tsx +0 -43
- package/templates/next/src/components/page-header.tsx +0 -52
- package/templates/next/src/components/style-switcher.tsx +0 -19
- package/templates/next/src/components/tailwind-indicator.tsx +0 -18
- package/templates/next/src/components/theme-provider.tsx +0 -9
- package/templates/next/src/components/ui/accordion.tsx +0 -60
- package/templates/next/src/components/ui/alert-dialog.tsx +0 -145
- package/templates/next/src/components/ui/alert.tsx +0 -59
- package/templates/next/src/components/ui/aspect-ratio.tsx +0 -7
- package/templates/next/src/components/ui/avatar.tsx +0 -50
- package/templates/next/src/components/ui/badge.tsx +0 -36
- package/templates/next/src/components/ui/button.tsx +0 -56
- package/templates/next/src/components/ui/calendar.tsx +0 -64
- package/templates/next/src/components/ui/card.tsx +0 -79
- package/templates/next/src/components/ui/checkbox.tsx +0 -30
- package/templates/next/src/components/ui/collapsible.tsx +0 -11
- package/templates/next/src/components/ui/command.tsx +0 -155
- package/templates/next/src/components/ui/context-menu.tsx +0 -200
- package/templates/next/src/components/ui/dialog.tsx +0 -123
- package/templates/next/src/components/ui/dropdown-menu.tsx +0 -200
- package/templates/next/src/components/ui/form.tsx +0 -176
- package/templates/next/src/components/ui/hover-card.tsx +0 -29
- package/templates/next/src/components/ui/input.tsx +0 -25
- package/templates/next/src/components/ui/label.tsx +0 -26
- package/templates/next/src/components/ui/menubar.tsx +0 -236
- package/templates/next/src/components/ui/navigation-menu.tsx +0 -128
- package/templates/next/src/components/ui/popover.tsx +0 -31
- package/templates/next/src/components/ui/progress.tsx +0 -28
- package/templates/next/src/components/ui/radio-group.tsx +0 -44
- package/templates/next/src/components/ui/scroll-area.tsx +0 -48
- package/templates/next/src/components/ui/select.tsx +0 -121
- package/templates/next/src/components/ui/separator.tsx +0 -31
- package/templates/next/src/components/ui/sheet.tsx +0 -144
- package/templates/next/src/components/ui/skeleton.tsx +0 -15
- package/templates/next/src/components/ui/slider.tsx +0 -28
- package/templates/next/src/components/ui/switch.tsx +0 -29
- package/templates/next/src/components/ui/table.tsx +0 -114
- package/templates/next/src/components/ui/tabs.tsx +0 -55
- package/templates/next/src/components/ui/textarea.tsx +0 -24
- package/templates/next/src/components/ui/toast.tsx +0 -127
- package/templates/next/src/components/ui/toaster.tsx +0 -35
- package/templates/next/src/components/ui/toggle.tsx +0 -45
- package/templates/next/src/components/ui/tooltip.tsx +0 -30
- package/templates/next/src/components/ui/use-toast.ts +0 -192
- package/templates/next/src/data/albums.ts +0 -71
- package/templates/next/src/data/playlists.ts +0 -16
- package/templates/next/src/hooks/use-lock-body.ts +0 -12
- package/templates/next/src/hooks/use-mounted.ts +0 -11
- package/templates/next/src/hooks/use-mutation-observer.ts +0 -20
- package/templates/next/src/lib/fonts.ts +0 -11
- package/templates/next/src/lib/utils.ts +0 -6
- package/templates/next/src/styles/globals.css +0 -88
- package/templates/next/src-tauri/Cargo.lock +0 -3835
- package/templates/next/src-tauri/Cargo.toml +0 -39
- package/templates/next/src-tauri/build.rs +0 -3
- package/templates/next/src-tauri/icons/128x128.png +0 -0
- package/templates/next/src-tauri/icons/128x128@2x.png +0 -0
- package/templates/next/src-tauri/icons/32x32.png +0 -0
- package/templates/next/src-tauri/icons/Square107x107Logo.png +0 -0
- package/templates/next/src-tauri/icons/Square142x142Logo.png +0 -0
- package/templates/next/src-tauri/icons/Square150x150Logo.png +0 -0
- package/templates/next/src-tauri/icons/Square284x284Logo.png +0 -0
- package/templates/next/src-tauri/icons/Square30x30Logo.png +0 -0
- package/templates/next/src-tauri/icons/Square310x310Logo.png +0 -0
- package/templates/next/src-tauri/icons/Square44x44Logo.png +0 -0
- package/templates/next/src-tauri/icons/Square71x71Logo.png +0 -0
- package/templates/next/src-tauri/icons/Square89x89Logo.png +0 -0
- package/templates/next/src-tauri/icons/StoreLogo.png +0 -0
- package/templates/next/src-tauri/icons/android/mipmap-hdpi/ic_launcher.png +0 -0
- package/templates/next/src-tauri/icons/android/mipmap-hdpi/ic_launcher_foreground.png +0 -0
- package/templates/next/src-tauri/icons/android/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/templates/next/src-tauri/icons/android/mipmap-mdpi/ic_launcher.png +0 -0
- package/templates/next/src-tauri/icons/android/mipmap-mdpi/ic_launcher_foreground.png +0 -0
- package/templates/next/src-tauri/icons/android/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/templates/next/src-tauri/icons/android/mipmap-xhdpi/ic_launcher.png +0 -0
- package/templates/next/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_foreground.png +0 -0
- package/templates/next/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/templates/next/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/templates/next/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_foreground.png +0 -0
- package/templates/next/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/templates/next/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/templates/next/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_foreground.png +0 -0
- package/templates/next/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/templates/next/src-tauri/icons/icon.icns +0 -0
- package/templates/next/src-tauri/icons/icon.ico +0 -0
- package/templates/next/src-tauri/icons/icon.png +0 -0
- package/templates/next/src-tauri/icons/ios/AppIcon-20x20@1x.png +0 -0
- package/templates/next/src-tauri/icons/ios/AppIcon-20x20@2x-1.png +0 -0
- package/templates/next/src-tauri/icons/ios/AppIcon-20x20@2x.png +0 -0
- package/templates/next/src-tauri/icons/ios/AppIcon-20x20@3x.png +0 -0
- package/templates/next/src-tauri/icons/ios/AppIcon-29x29@1x.png +0 -0
- package/templates/next/src-tauri/icons/ios/AppIcon-29x29@2x-1.png +0 -0
- package/templates/next/src-tauri/icons/ios/AppIcon-29x29@2x.png +0 -0
- package/templates/next/src-tauri/icons/ios/AppIcon-29x29@3x.png +0 -0
- package/templates/next/src-tauri/icons/ios/AppIcon-40x40@1x.png +0 -0
- package/templates/next/src-tauri/icons/ios/AppIcon-40x40@2x-1.png +0 -0
- package/templates/next/src-tauri/icons/ios/AppIcon-40x40@2x.png +0 -0
- package/templates/next/src-tauri/icons/ios/AppIcon-40x40@3x.png +0 -0
- package/templates/next/src-tauri/icons/ios/AppIcon-512@2x.png +0 -0
- package/templates/next/src-tauri/icons/ios/AppIcon-60x60@2x.png +0 -0
- package/templates/next/src-tauri/icons/ios/AppIcon-60x60@3x.png +0 -0
- package/templates/next/src-tauri/icons/ios/AppIcon-76x76@1x.png +0 -0
- package/templates/next/src-tauri/icons/ios/AppIcon-76x76@2x.png +0 -0
- package/templates/next/src-tauri/icons/ios/AppIcon-83.5x83.5@2x.png +0 -0
- package/templates/next/src-tauri/src/main.rs +0 -22
- package/templates/next/src-tauri/tauri.conf.json +0 -71
- package/templates/next/tailwind.config.js +0 -78
- package/templates/next/tsconfig.json +0 -35
- package/templates/sveltekit/.github/workflows/release.yml +0 -108
- package/templates/sveltekit/.prettierignore +0 -13
- package/templates/sveltekit/.prettierrc +0 -8
- package/templates/sveltekit/README.md +0 -1
- package/templates/sveltekit/app-icon.png +0 -0
- package/templates/sveltekit/package.json +0 -85
- package/templates/sveltekit/pnpm-lock.yaml +0 -4177
- package/templates/sveltekit/postcss.config.cjs +0 -13
- package/templates/sveltekit/src/app.d.ts +0 -18
- package/templates/sveltekit/src/app.html +0 -16
- package/templates/sveltekit/src/assets/Inter.var.woff2 +0 -0
- package/templates/sveltekit/src/index.test.ts +0 -7
- package/templates/sveltekit/src/lib/components/docs/TailwindIndicator.svelte +0 -10
- package/templates/sveltekit/src/lib/components/docs/charts/Bar.svelte +0 -152
- package/templates/sveltekit/src/lib/components/docs/dashboard/DashboardPage.svelte +0 -108
- package/templates/sveltekit/src/lib/components/docs/dashboard/MainNav.svelte +0 -31
- package/templates/sveltekit/src/lib/components/docs/dashboard/Overview.svelte +0 -5
- package/templates/sveltekit/src/lib/components/docs/dashboard/RecentSales.svelte +0 -61
- package/templates/sveltekit/src/lib/components/docs/dashboard/Search.svelte +0 -7
- package/templates/sveltekit/src/lib/components/docs/dashboard/index.ts +0 -1
- package/templates/sveltekit/src/lib/components/docs/examples-nav/ExampleCodeLink.svelte +0 -19
- package/templates/sveltekit/src/lib/components/docs/examples-nav/ExamplesNav.svelte +0 -27
- package/templates/sveltekit/src/lib/components/docs/examples-nav/index.ts +0 -2
- package/templates/sveltekit/src/lib/components/docs/icons/Apple.svelte +0 -12
- package/templates/sveltekit/src/lib/components/docs/icons/Aria.svelte +0 -11
- package/templates/sveltekit/src/lib/components/docs/icons/GitHub.svelte +0 -12
- package/templates/sveltekit/src/lib/components/docs/icons/Google.svelte +0 -12
- package/templates/sveltekit/src/lib/components/docs/icons/Logo.svelte +0 -17
- package/templates/sveltekit/src/lib/components/docs/icons/Minimize.svelte +0 -12
- package/templates/sveltekit/src/lib/components/docs/icons/Npm.svelte +0 -12
- package/templates/sveltekit/src/lib/components/docs/icons/PayPal.svelte +0 -12
- package/templates/sveltekit/src/lib/components/docs/icons/Pnpm.svelte +0 -12
- package/templates/sveltekit/src/lib/components/docs/icons/Radix.svelte +0 -14
- package/templates/sveltekit/src/lib/components/docs/icons/RadixSvelte.svelte +0 -14
- package/templates/sveltekit/src/lib/components/docs/icons/Tailwind.svelte +0 -12
- package/templates/sveltekit/src/lib/components/docs/icons/Yarn.svelte +0 -12
- package/templates/sveltekit/src/lib/components/docs/icons/index.ts +0 -78
- package/templates/sveltekit/src/lib/components/docs/index.ts +0 -6
- package/templates/sveltekit/src/lib/components/docs/light-switch/LightSwitch.svelte +0 -75
- package/templates/sveltekit/src/lib/components/docs/light-switch/index.ts +0 -1
- package/templates/sveltekit/src/lib/components/docs/light-switch/light-switch.ts +0 -87
- package/templates/sveltekit/src/lib/components/docs/light-switch/local-storage-store.ts +0 -81
- package/templates/sveltekit/src/lib/components/ui/accordion/Accordion.svelte +0 -11
- package/templates/sveltekit/src/lib/components/ui/accordion/AccordionContent.svelte +0 -19
- package/templates/sveltekit/src/lib/components/ui/accordion/AccordionItem.svelte +0 -13
- package/templates/sveltekit/src/lib/components/ui/accordion/AccordionTrigger.svelte +0 -21
- package/templates/sveltekit/src/lib/components/ui/accordion/index.ts +0 -4
- package/templates/sveltekit/src/lib/components/ui/alert/Alert.svelte +0 -29
- package/templates/sveltekit/src/lib/components/ui/alert/AlertDescription.svelte +0 -10
- package/templates/sveltekit/src/lib/components/ui/alert/AlertTitle.svelte +0 -15
- package/templates/sveltekit/src/lib/components/ui/alert/index.ts +0 -3
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogAction.svelte +0 -12
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogCancel.svelte +0 -15
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogContent.svelte +0 -22
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogDescription.svelte +0 -14
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogFooter.svelte +0 -13
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogHeader.svelte +0 -10
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogOverlay.svelte +0 -15
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogPortal.svelte +0 -9
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogTitle.svelte +0 -11
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/index.ts +0 -12
- package/templates/sveltekit/src/lib/components/ui/aspect-ratio/AspectRatio.svelte +0 -13
- package/templates/sveltekit/src/lib/components/ui/aspect-ratio/index.ts +0 -1
- package/templates/sveltekit/src/lib/components/ui/avatar/Avatar.svelte +0 -14
- package/templates/sveltekit/src/lib/components/ui/avatar/AvatarFallback.svelte +0 -14
- package/templates/sveltekit/src/lib/components/ui/avatar/AvatarImage.svelte +0 -17
- package/templates/sveltekit/src/lib/components/ui/avatar/index.ts +0 -3
- package/templates/sveltekit/src/lib/components/ui/badge/Badge.svelte +0 -39
- package/templates/sveltekit/src/lib/components/ui/badge/index.ts +0 -21
- package/templates/sveltekit/src/lib/components/ui/button/Button.svelte +0 -47
- package/templates/sveltekit/src/lib/components/ui/button/index.ts +0 -28
- package/templates/sveltekit/src/lib/components/ui/card/Card.svelte +0 -18
- package/templates/sveltekit/src/lib/components/ui/card/CardContent.svelte +0 -10
- package/templates/sveltekit/src/lib/components/ui/card/CardDescription.svelte +0 -10
- package/templates/sveltekit/src/lib/components/ui/card/CardFooter.svelte +0 -10
- package/templates/sveltekit/src/lib/components/ui/card/CardHeader.svelte +0 -10
- package/templates/sveltekit/src/lib/components/ui/card/CardTitle.svelte +0 -16
- package/templates/sveltekit/src/lib/components/ui/card/index.ts +0 -6
- package/templates/sveltekit/src/lib/components/ui/checkbox/Checkbox.svelte +0 -23
- package/templates/sveltekit/src/lib/components/ui/checkbox/index.ts +0 -1
- package/templates/sveltekit/src/lib/components/ui/collapsible/index.ts +0 -7
- package/templates/sveltekit/src/lib/components/ui/dialog/DialogContent.svelte +0 -29
- package/templates/sveltekit/src/lib/components/ui/dialog/DialogDescription.svelte +0 -14
- package/templates/sveltekit/src/lib/components/ui/dialog/DialogFooter.svelte +0 -13
- package/templates/sveltekit/src/lib/components/ui/dialog/DialogHeader.svelte +0 -10
- package/templates/sveltekit/src/lib/components/ui/dialog/DialogOverlay.svelte +0 -15
- package/templates/sveltekit/src/lib/components/ui/dialog/DialogPortal.svelte +0 -13
- package/templates/sveltekit/src/lib/components/ui/dialog/DialogTitle.svelte +0 -14
- package/templates/sveltekit/src/lib/components/ui/dialog/index.ts +0 -12
- package/templates/sveltekit/src/lib/components/ui/hover-card/HoverCardContent.svelte +0 -24
- package/templates/sveltekit/src/lib/components/ui/hover-card/index.ts +0 -6
- package/templates/sveltekit/src/lib/components/ui/input/Input.svelte +0 -30
- package/templates/sveltekit/src/lib/components/ui/input/index.ts +0 -1
- package/templates/sveltekit/src/lib/components/ui/label/Label.svelte +0 -16
- package/templates/sveltekit/src/lib/components/ui/label/index.ts +0 -1
- package/templates/sveltekit/src/lib/components/ui/progress/Progress.svelte +0 -22
- package/templates/sveltekit/src/lib/components/ui/progress/index.ts +0 -1
- package/templates/sveltekit/src/lib/components/ui/radio-group/RadioGroup.svelte +0 -13
- package/templates/sveltekit/src/lib/components/ui/radio-group/RadioGroupItem.svelte +0 -23
- package/templates/sveltekit/src/lib/components/ui/radio-group/index.ts +0 -2
- package/templates/sveltekit/src/lib/components/ui/select/SelectContent.svelte +0 -26
- package/templates/sveltekit/src/lib/components/ui/select/SelectItem.svelte +0 -29
- package/templates/sveltekit/src/lib/components/ui/select/SelectLabel.svelte +0 -14
- package/templates/sveltekit/src/lib/components/ui/select/SelectSeparator.svelte +0 -9
- package/templates/sveltekit/src/lib/components/ui/select/SelectTrigger.svelte +0 -21
- package/templates/sveltekit/src/lib/components/ui/select/index.ts +0 -10
- package/templates/sveltekit/src/lib/components/ui/separator/Separator.svelte +0 -22
- package/templates/sveltekit/src/lib/components/ui/separator/index.ts +0 -1
- package/templates/sveltekit/src/lib/components/ui/sheet/SheetContent.svelte +0 -27
- package/templates/sveltekit/src/lib/components/ui/sheet/SheetDescription.svelte +0 -11
- package/templates/sveltekit/src/lib/components/ui/sheet/SheetFooter.svelte +0 -13
- package/templates/sveltekit/src/lib/components/ui/sheet/SheetHeader.svelte +0 -10
- package/templates/sveltekit/src/lib/components/ui/sheet/SheetOverlay.svelte +0 -15
- package/templates/sveltekit/src/lib/components/ui/sheet/SheetPortal.svelte +0 -28
- package/templates/sveltekit/src/lib/components/ui/sheet/SheetTitle.svelte +0 -14
- package/templates/sveltekit/src/lib/components/ui/sheet/index.ts +0 -102
- package/templates/sveltekit/src/lib/components/ui/skeleton/Skeleton.svelte +0 -8
- package/templates/sveltekit/src/lib/components/ui/skeleton/index.ts +0 -1
- package/templates/sveltekit/src/lib/components/ui/slider/Slider.svelte +0 -22
- package/templates/sveltekit/src/lib/components/ui/slider/index.ts +0 -1
- package/templates/sveltekit/src/lib/components/ui/switch/Switch.svelte +0 -32
- package/templates/sveltekit/src/lib/components/ui/switch/index.ts +0 -1
- package/templates/sveltekit/src/lib/components/ui/table/Table.svelte +0 -12
- package/templates/sveltekit/src/lib/components/ui/table/TableBody.svelte +0 -10
- package/templates/sveltekit/src/lib/components/ui/table/TableCaption.svelte +0 -10
- package/templates/sveltekit/src/lib/components/ui/table/TableCell.svelte +0 -10
- package/templates/sveltekit/src/lib/components/ui/table/TableFooter.svelte +0 -10
- package/templates/sveltekit/src/lib/components/ui/table/TableHead.svelte +0 -16
- package/templates/sveltekit/src/lib/components/ui/table/TableHeader.svelte +0 -10
- package/templates/sveltekit/src/lib/components/ui/table/TableRow.svelte +0 -16
- package/templates/sveltekit/src/lib/components/ui/table/index.ts +0 -8
- package/templates/sveltekit/src/lib/components/ui/tabs/TabsContent.svelte +0 -20
- package/templates/sveltekit/src/lib/components/ui/tabs/TabsList.svelte +0 -17
- package/templates/sveltekit/src/lib/components/ui/tabs/TabsTrigger.svelte +0 -20
- package/templates/sveltekit/src/lib/components/ui/tabs/index.ts +0 -7
- package/templates/sveltekit/src/lib/components/ui/textarea/Textarea.svelte +0 -30
- package/templates/sveltekit/src/lib/components/ui/textarea/index.ts +0 -1
- package/templates/sveltekit/src/lib/components/ui/toggle/Toggle.svelte +0 -44
- package/templates/sveltekit/src/lib/components/ui/toggle/index.ts +0 -1
- package/templates/sveltekit/src/lib/components/ui/tooltip/TooltipContent.svelte +0 -22
- package/templates/sveltekit/src/lib/components/ui/tooltip/index.ts +0 -6
- package/templates/sveltekit/src/lib/config/components.ts +0 -306
- package/templates/sveltekit/src/lib/config/docs.ts +0 -356
- package/templates/sveltekit/src/lib/config/site.ts +0 -15
- package/templates/sveltekit/src/lib/types/docs.ts +0 -50
- package/templates/sveltekit/src/lib/types/nav.ts +0 -18
- package/templates/sveltekit/src/lib/utils.ts +0 -75
- package/templates/sveltekit/src/routes/+layout.svelte +0 -48
- package/templates/sveltekit/src/routes/+layout.ts +0 -4
- package/templates/sveltekit/src/routes/+page.svelte +0 -0
- package/templates/sveltekit/src/routes/+page.ts +0 -6
- package/templates/sveltekit/src/routes/authentication/+page.svelte +0 -57
- package/templates/sveltekit/src/routes/authentication/+page.ts +0 -7
- package/templates/sveltekit/src/routes/authentication/UserAuthForm.svelte +0 -61
- package/templates/sveltekit/src/routes/cards/+page.svelte +0 -26
- package/templates/sveltekit/src/routes/cards/+page.ts +0 -7
- package/templates/sveltekit/src/routes/cards/CookieSettings.svelte +0 -52
- package/templates/sveltekit/src/routes/cards/CreateAccount.svelte +0 -52
- package/templates/sveltekit/src/routes/cards/DemoContainer.svelte +0 -10
- package/templates/sveltekit/src/routes/cards/Notifications.svelte +0 -38
- package/templates/sveltekit/src/routes/cards/PaymentMethod.svelte +0 -110
- package/templates/sveltekit/src/routes/cards/ReportAnIssue.svelte +0 -71
- package/templates/sveltekit/src/routes/cards/ShareDocument.svelte +0 -91
- package/templates/sveltekit/src/routes/dashboard/+page.svelte +0 -5
- package/templates/sveltekit/src/routes/dashboard/+page.ts +0 -7
- package/templates/sveltekit/src/routes/forms/+page.svelte +0 -0
- package/templates/sveltekit/src/routes/music/+page.svelte +0 -0
- package/templates/sveltekit/src/routes/music/albums.ts +0 -61
- package/templates/sveltekit/src/routes/music/playlists.ts +0 -16
- package/templates/sveltekit/src/routes/playground/+page.svelte +0 -0
- package/templates/sveltekit/src/routes/tasks/+page.svelte +0 -0
- package/templates/sveltekit/src/styles/globals.css +0 -125
- package/templates/sveltekit/src/styles/mdsvex.css +0 -80
- package/templates/sveltekit/src-tauri/Cargo.lock +0 -3835
- package/templates/sveltekit/src-tauri/Cargo.toml +0 -39
- package/templates/sveltekit/src-tauri/build.rs +0 -3
- package/templates/sveltekit/src-tauri/icons/128x128.png +0 -0
- package/templates/sveltekit/src-tauri/icons/128x128@2x.png +0 -0
- package/templates/sveltekit/src-tauri/icons/32x32.png +0 -0
- package/templates/sveltekit/src-tauri/icons/Square107x107Logo.png +0 -0
- package/templates/sveltekit/src-tauri/icons/Square142x142Logo.png +0 -0
- package/templates/sveltekit/src-tauri/icons/Square150x150Logo.png +0 -0
- package/templates/sveltekit/src-tauri/icons/Square284x284Logo.png +0 -0
- package/templates/sveltekit/src-tauri/icons/Square30x30Logo.png +0 -0
- package/templates/sveltekit/src-tauri/icons/Square310x310Logo.png +0 -0
- package/templates/sveltekit/src-tauri/icons/Square44x44Logo.png +0 -0
- package/templates/sveltekit/src-tauri/icons/Square71x71Logo.png +0 -0
- package/templates/sveltekit/src-tauri/icons/Square89x89Logo.png +0 -0
- package/templates/sveltekit/src-tauri/icons/StoreLogo.png +0 -0
- package/templates/sveltekit/src-tauri/icons/android/mipmap-hdpi/ic_launcher.png +0 -0
- package/templates/sveltekit/src-tauri/icons/android/mipmap-hdpi/ic_launcher_foreground.png +0 -0
- package/templates/sveltekit/src-tauri/icons/android/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/templates/sveltekit/src-tauri/icons/android/mipmap-mdpi/ic_launcher.png +0 -0
- package/templates/sveltekit/src-tauri/icons/android/mipmap-mdpi/ic_launcher_foreground.png +0 -0
- package/templates/sveltekit/src-tauri/icons/android/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/templates/sveltekit/src-tauri/icons/android/mipmap-xhdpi/ic_launcher.png +0 -0
- package/templates/sveltekit/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_foreground.png +0 -0
- package/templates/sveltekit/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/templates/sveltekit/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/templates/sveltekit/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_foreground.png +0 -0
- package/templates/sveltekit/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/templates/sveltekit/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/templates/sveltekit/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_foreground.png +0 -0
- package/templates/sveltekit/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/templates/sveltekit/src-tauri/icons/icon.icns +0 -0
- package/templates/sveltekit/src-tauri/icons/icon.ico +0 -0
- package/templates/sveltekit/src-tauri/icons/icon.png +0 -0
- package/templates/sveltekit/src-tauri/icons/ios/AppIcon-20x20@1x.png +0 -0
- package/templates/sveltekit/src-tauri/icons/ios/AppIcon-20x20@2x-1.png +0 -0
- package/templates/sveltekit/src-tauri/icons/ios/AppIcon-20x20@2x.png +0 -0
- package/templates/sveltekit/src-tauri/icons/ios/AppIcon-20x20@3x.png +0 -0
- package/templates/sveltekit/src-tauri/icons/ios/AppIcon-29x29@1x.png +0 -0
- package/templates/sveltekit/src-tauri/icons/ios/AppIcon-29x29@2x-1.png +0 -0
- package/templates/sveltekit/src-tauri/icons/ios/AppIcon-29x29@2x.png +0 -0
- package/templates/sveltekit/src-tauri/icons/ios/AppIcon-29x29@3x.png +0 -0
- package/templates/sveltekit/src-tauri/icons/ios/AppIcon-40x40@1x.png +0 -0
- package/templates/sveltekit/src-tauri/icons/ios/AppIcon-40x40@2x-1.png +0 -0
- package/templates/sveltekit/src-tauri/icons/ios/AppIcon-40x40@2x.png +0 -0
- package/templates/sveltekit/src-tauri/icons/ios/AppIcon-40x40@3x.png +0 -0
- package/templates/sveltekit/src-tauri/icons/ios/AppIcon-512@2x.png +0 -0
- package/templates/sveltekit/src-tauri/icons/ios/AppIcon-60x60@2x.png +0 -0
- package/templates/sveltekit/src-tauri/icons/ios/AppIcon-60x60@3x.png +0 -0
- package/templates/sveltekit/src-tauri/icons/ios/AppIcon-76x76@1x.png +0 -0
- package/templates/sveltekit/src-tauri/icons/ios/AppIcon-76x76@2x.png +0 -0
- package/templates/sveltekit/src-tauri/icons/ios/AppIcon-83.5x83.5@2x.png +0 -0
- package/templates/sveltekit/src-tauri/src/main.rs +0 -22
- package/templates/sveltekit/src-tauri/tauri.conf.json +0 -71
- package/templates/sveltekit/static/avatars/01.png +0 -0
- package/templates/sveltekit/static/avatars/02.png +0 -0
- package/templates/sveltekit/static/avatars/03.png +0 -0
- package/templates/sveltekit/static/avatars/04.png +0 -0
- package/templates/sveltekit/static/avatars/05.png +0 -0
- package/templates/sveltekit/static/favicon.ico +0 -0
- package/templates/sveltekit/svelte.config.js +0 -22
- package/templates/sveltekit/tailwind.config.js +0 -67
- package/templates/sveltekit/tsconfig.json +0 -13
- package/templates/sveltekit/vite.config.js +0 -12
- package/templates/vite/.github/workflows/release.yml +0 -108
- package/templates/vite/.vscode/extensions.json +0 -3
- package/templates/vite/README.md +0 -7
- package/templates/vite/app-icon.png +0 -0
- package/templates/vite/components.json +0 -16
- package/templates/vite/index.html +0 -16
- package/templates/vite/package.json +0 -83
- package/templates/vite/pnpm-lock.yaml +0 -5176
- package/templates/vite/postcss.config.js +0 -6
- package/templates/vite/prettier.config.cjs +0 -35
- package/templates/vite/public/avatars/01.png +0 -0
- package/templates/vite/public/avatars/02.png +0 -0
- package/templates/vite/public/avatars/03.png +0 -0
- package/templates/vite/public/avatars/04.png +0 -0
- package/templates/vite/public/avatars/05.png +0 -0
- package/templates/vite/src/App.tsx +0 -39
- package/templates/vite/src/assets/Inter-VariableFont_slnt,wght.ttf +0 -0
- package/templates/vite/src/components/about-dialog.tsx +0 -101
- package/templates/vite/src/components/icons.tsx +0 -154
- package/templates/vite/src/components/menu-mode-toggle.tsx +0 -47
- package/templates/vite/src/components/menu.tsx +0 -212
- package/templates/vite/src/components/tailwind-indicator.tsx +0 -18
- package/templates/vite/src/components/theme-provider.tsx +0 -9
- package/templates/vite/src/components/ui/accordion.tsx +0 -58
- package/templates/vite/src/components/ui/alert-dialog.tsx +0 -143
- package/templates/vite/src/components/ui/alert.tsx +0 -59
- package/templates/vite/src/components/ui/aspect-ratio.tsx +0 -5
- package/templates/vite/src/components/ui/avatar.tsx +0 -48
- package/templates/vite/src/components/ui/badge.tsx +0 -36
- package/templates/vite/src/components/ui/button.tsx +0 -56
- package/templates/vite/src/components/ui/calendar.tsx +0 -62
- package/templates/vite/src/components/ui/card.tsx +0 -79
- package/templates/vite/src/components/ui/checkbox.tsx +0 -28
- package/templates/vite/src/components/ui/collapsible.tsx +0 -9
- package/templates/vite/src/components/ui/command.tsx +0 -153
- package/templates/vite/src/components/ui/context-menu.tsx +0 -198
- package/templates/vite/src/components/ui/dialog.tsx +0 -121
- package/templates/vite/src/components/ui/dropdown-menu.tsx +0 -198
- package/templates/vite/src/components/ui/form.tsx +0 -176
- package/templates/vite/src/components/ui/hover-card.tsx +0 -27
- package/templates/vite/src/components/ui/input.tsx +0 -25
- package/templates/vite/src/components/ui/label.tsx +0 -24
- package/templates/vite/src/components/ui/menubar.tsx +0 -234
- package/templates/vite/src/components/ui/navigation-menu.tsx +0 -128
- package/templates/vite/src/components/ui/popover.tsx +0 -29
- package/templates/vite/src/components/ui/progress.tsx +0 -26
- package/templates/vite/src/components/ui/radio-group.tsx +0 -42
- package/templates/vite/src/components/ui/scroll-area.tsx +0 -46
- package/templates/vite/src/components/ui/select.tsx +0 -119
- package/templates/vite/src/components/ui/separator.tsx +0 -29
- package/templates/vite/src/components/ui/sheet.tsx +0 -142
- package/templates/vite/src/components/ui/skeleton.tsx +0 -15
- package/templates/vite/src/components/ui/slider.tsx +0 -26
- package/templates/vite/src/components/ui/switch.tsx +0 -27
- package/templates/vite/src/components/ui/table.tsx +0 -114
- package/templates/vite/src/components/ui/tabs.tsx +0 -53
- package/templates/vite/src/components/ui/textarea.tsx +0 -24
- package/templates/vite/src/components/ui/toast.tsx +0 -127
- package/templates/vite/src/components/ui/toaster.tsx +0 -33
- package/templates/vite/src/components/ui/toggle.tsx +0 -43
- package/templates/vite/src/components/ui/tooltip.tsx +0 -28
- package/templates/vite/src/components/ui/use-toast.ts +0 -192
- package/templates/vite/src/dashboard/components/date-range-picker.tsx +0 -65
- package/templates/vite/src/dashboard/components/main-nav.tsx +0 -38
- package/templates/vite/src/dashboard/components/overview.tsx +0 -78
- package/templates/vite/src/dashboard/components/recent-sales.tsx +0 -71
- package/templates/vite/src/dashboard/components/search.tsx +0 -13
- package/templates/vite/src/dashboard/components/team-switcher.tsx +0 -213
- package/templates/vite/src/dashboard/components/user-nav.tsx +0 -62
- package/templates/vite/src/dashboard/page.tsx +0 -191
- package/templates/vite/src/lib/utils.ts +0 -19
- package/templates/vite/src/main.tsx +0 -10
- package/templates/vite/src/styles/globals.css +0 -88
- package/templates/vite/src/vite-env.d.ts +0 -1
- package/templates/vite/src-tauri/Cargo.lock +0 -3835
- package/templates/vite/src-tauri/Cargo.toml +0 -39
- package/templates/vite/src-tauri/build.rs +0 -3
- package/templates/vite/src-tauri/icons/128x128.png +0 -0
- package/templates/vite/src-tauri/icons/128x128@2x.png +0 -0
- package/templates/vite/src-tauri/icons/32x32.png +0 -0
- package/templates/vite/src-tauri/icons/Square107x107Logo.png +0 -0
- package/templates/vite/src-tauri/icons/Square142x142Logo.png +0 -0
- package/templates/vite/src-tauri/icons/Square150x150Logo.png +0 -0
- package/templates/vite/src-tauri/icons/Square284x284Logo.png +0 -0
- package/templates/vite/src-tauri/icons/Square30x30Logo.png +0 -0
- package/templates/vite/src-tauri/icons/Square310x310Logo.png +0 -0
- package/templates/vite/src-tauri/icons/Square44x44Logo.png +0 -0
- package/templates/vite/src-tauri/icons/Square71x71Logo.png +0 -0
- package/templates/vite/src-tauri/icons/Square89x89Logo.png +0 -0
- package/templates/vite/src-tauri/icons/StoreLogo.png +0 -0
- package/templates/vite/src-tauri/icons/android/mipmap-hdpi/ic_launcher.png +0 -0
- package/templates/vite/src-tauri/icons/android/mipmap-hdpi/ic_launcher_foreground.png +0 -0
- package/templates/vite/src-tauri/icons/android/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/templates/vite/src-tauri/icons/android/mipmap-mdpi/ic_launcher.png +0 -0
- package/templates/vite/src-tauri/icons/android/mipmap-mdpi/ic_launcher_foreground.png +0 -0
- package/templates/vite/src-tauri/icons/android/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/templates/vite/src-tauri/icons/android/mipmap-xhdpi/ic_launcher.png +0 -0
- package/templates/vite/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_foreground.png +0 -0
- package/templates/vite/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/templates/vite/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/templates/vite/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_foreground.png +0 -0
- package/templates/vite/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/templates/vite/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/templates/vite/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_foreground.png +0 -0
- package/templates/vite/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/templates/vite/src-tauri/icons/icon.icns +0 -0
- package/templates/vite/src-tauri/icons/icon.ico +0 -0
- package/templates/vite/src-tauri/icons/icon.png +0 -0
- package/templates/vite/src-tauri/icons/ios/AppIcon-20x20@1x.png +0 -0
- package/templates/vite/src-tauri/icons/ios/AppIcon-20x20@2x-1.png +0 -0
- package/templates/vite/src-tauri/icons/ios/AppIcon-20x20@2x.png +0 -0
- package/templates/vite/src-tauri/icons/ios/AppIcon-20x20@3x.png +0 -0
- package/templates/vite/src-tauri/icons/ios/AppIcon-29x29@1x.png +0 -0
- package/templates/vite/src-tauri/icons/ios/AppIcon-29x29@2x-1.png +0 -0
- package/templates/vite/src-tauri/icons/ios/AppIcon-29x29@2x.png +0 -0
- package/templates/vite/src-tauri/icons/ios/AppIcon-29x29@3x.png +0 -0
- package/templates/vite/src-tauri/icons/ios/AppIcon-40x40@1x.png +0 -0
- package/templates/vite/src-tauri/icons/ios/AppIcon-40x40@2x-1.png +0 -0
- package/templates/vite/src-tauri/icons/ios/AppIcon-40x40@2x.png +0 -0
- package/templates/vite/src-tauri/icons/ios/AppIcon-40x40@3x.png +0 -0
- package/templates/vite/src-tauri/icons/ios/AppIcon-512@2x.png +0 -0
- package/templates/vite/src-tauri/icons/ios/AppIcon-60x60@2x.png +0 -0
- package/templates/vite/src-tauri/icons/ios/AppIcon-60x60@3x.png +0 -0
- package/templates/vite/src-tauri/icons/ios/AppIcon-76x76@1x.png +0 -0
- package/templates/vite/src-tauri/icons/ios/AppIcon-76x76@2x.png +0 -0
- package/templates/vite/src-tauri/icons/ios/AppIcon-83.5x83.5@2x.png +0 -0
- package/templates/vite/src-tauri/src/main.rs +0 -22
- package/templates/vite/src-tauri/tauri.conf.json +0 -71
- package/templates/vite/tailwind.config.js +0 -78
- package/templates/vite/tsconfig.json +0 -26
- package/templates/vite/tsconfig.node.json +0 -9
- package/templates/vite/vite.config.ts +0 -33
- /package/{templates/.shared → assets}/app-icon.png +0 -0
|
@@ -1,356 +0,0 @@
|
|
|
1
|
-
import type { NavItem, SidebarNavItem } from '$lib/types/nav';
|
|
2
|
-
|
|
3
|
-
interface DocsConfig {
|
|
4
|
-
mainNav: NavItem[];
|
|
5
|
-
sidebarNav: SidebarNavItem[];
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export const docsConfig: DocsConfig = {
|
|
9
|
-
mainNav: [
|
|
10
|
-
{
|
|
11
|
-
title: 'Documentation',
|
|
12
|
-
href: '/docs'
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
title: 'Components',
|
|
16
|
-
href: '/docs/components/accordion'
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
title: 'Examples',
|
|
20
|
-
href: '/dashboard'
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
title: 'Figma',
|
|
24
|
-
href: '/docs/figma'
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
title: 'GitHub',
|
|
28
|
-
href: 'https://github.com/huntabyte/shadcn-svelte',
|
|
29
|
-
external: true
|
|
30
|
-
}
|
|
31
|
-
],
|
|
32
|
-
sidebarNav: [
|
|
33
|
-
{
|
|
34
|
-
title: 'Getting Started',
|
|
35
|
-
items: [
|
|
36
|
-
{
|
|
37
|
-
title: 'Introduction',
|
|
38
|
-
href: '/docs',
|
|
39
|
-
items: []
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
title: 'Installation',
|
|
43
|
-
href: '/docs/installation',
|
|
44
|
-
items: []
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
title: 'Theming',
|
|
48
|
-
href: '/docs/theming',
|
|
49
|
-
items: []
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
title: 'CLI',
|
|
53
|
-
href: '/docs/cli',
|
|
54
|
-
items: []
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
title: 'Typography',
|
|
58
|
-
href: '/docs/typography',
|
|
59
|
-
items: []
|
|
60
|
-
}
|
|
61
|
-
]
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
title: 'Community',
|
|
65
|
-
items: [
|
|
66
|
-
{
|
|
67
|
-
title: 'Figma',
|
|
68
|
-
href: '/docs/figma',
|
|
69
|
-
items: []
|
|
70
|
-
}
|
|
71
|
-
]
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
title: 'Forms',
|
|
75
|
-
items: [
|
|
76
|
-
{
|
|
77
|
-
title: 'Superforms',
|
|
78
|
-
href: '#',
|
|
79
|
-
label: 'Soon',
|
|
80
|
-
disabled: true,
|
|
81
|
-
items: []
|
|
82
|
-
}
|
|
83
|
-
]
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
title: 'Components',
|
|
87
|
-
items: [
|
|
88
|
-
{
|
|
89
|
-
title: 'Accordion',
|
|
90
|
-
href: '/docs/components/accordion',
|
|
91
|
-
items: []
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
title: 'Alert',
|
|
95
|
-
href: '/docs/components/alert',
|
|
96
|
-
items: []
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
title: 'Alert Dialog',
|
|
100
|
-
href: '/docs/components/alert-dialog',
|
|
101
|
-
items: []
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
title: 'Aspect Ratio',
|
|
105
|
-
href: '/docs/components/aspect-ratio',
|
|
106
|
-
items: []
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
title: 'Avatar',
|
|
110
|
-
href: '/docs/components/avatar',
|
|
111
|
-
items: []
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
title: 'Badge',
|
|
115
|
-
href: '/docs/components/badge',
|
|
116
|
-
items: []
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
title: 'Button',
|
|
120
|
-
href: '/docs/components/button',
|
|
121
|
-
items: []
|
|
122
|
-
},
|
|
123
|
-
// {
|
|
124
|
-
// title: "Calendar",
|
|
125
|
-
// href: "#",
|
|
126
|
-
// label: "Soon",
|
|
127
|
-
// disabled: true,
|
|
128
|
-
// items: []
|
|
129
|
-
// },
|
|
130
|
-
{
|
|
131
|
-
title: 'Card',
|
|
132
|
-
href: '/docs/components/card',
|
|
133
|
-
items: []
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
title: 'Checkbox',
|
|
137
|
-
href: '/docs/components/checkbox',
|
|
138
|
-
items: []
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
title: 'Collapsible',
|
|
142
|
-
href: '/docs/components/collapsible',
|
|
143
|
-
items: []
|
|
144
|
-
},
|
|
145
|
-
// {
|
|
146
|
-
// title: "Combobox",
|
|
147
|
-
// href: "#",
|
|
148
|
-
// label: "Soon",
|
|
149
|
-
// items: [],
|
|
150
|
-
// disabled: true
|
|
151
|
-
// },
|
|
152
|
-
// {
|
|
153
|
-
// title: "Command",
|
|
154
|
-
// href: "#",
|
|
155
|
-
// label: "Soon",
|
|
156
|
-
// disabled: true,
|
|
157
|
-
// items: []
|
|
158
|
-
// },
|
|
159
|
-
// {
|
|
160
|
-
// title: "Context Menu",
|
|
161
|
-
// href: "#",
|
|
162
|
-
// label: "Soon",
|
|
163
|
-
// disabled: true,
|
|
164
|
-
// items: []
|
|
165
|
-
// },
|
|
166
|
-
{
|
|
167
|
-
title: 'Data Table',
|
|
168
|
-
href: '#',
|
|
169
|
-
label: 'Soon',
|
|
170
|
-
disabled: true,
|
|
171
|
-
items: []
|
|
172
|
-
},
|
|
173
|
-
// {
|
|
174
|
-
// title: "Date Picker",
|
|
175
|
-
// href: "#",
|
|
176
|
-
// label: "Soon",
|
|
177
|
-
// disabled: true,
|
|
178
|
-
// items: []
|
|
179
|
-
// },
|
|
180
|
-
{
|
|
181
|
-
title: 'Dialog',
|
|
182
|
-
href: '/docs/components/dialog',
|
|
183
|
-
items: []
|
|
184
|
-
},
|
|
185
|
-
// {
|
|
186
|
-
// title: "Dropdown Menu",
|
|
187
|
-
// href: "#",
|
|
188
|
-
// items: []
|
|
189
|
-
// },
|
|
190
|
-
{
|
|
191
|
-
title: 'Hover Card',
|
|
192
|
-
href: '/docs/components/hover-card',
|
|
193
|
-
items: []
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
title: 'Input',
|
|
197
|
-
href: '/docs/components/input',
|
|
198
|
-
items: []
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
title: 'Label',
|
|
202
|
-
href: '/docs/components/label',
|
|
203
|
-
items: []
|
|
204
|
-
},
|
|
205
|
-
// {
|
|
206
|
-
// title: "Menubar",
|
|
207
|
-
// href: "#",
|
|
208
|
-
// label: "Soon",
|
|
209
|
-
// disabled: true,
|
|
210
|
-
// items: []
|
|
211
|
-
// },
|
|
212
|
-
// {
|
|
213
|
-
// title: "Navigation Menu",
|
|
214
|
-
// href: "#",
|
|
215
|
-
// label: "Soon",
|
|
216
|
-
// disabled: true,
|
|
217
|
-
// items: []
|
|
218
|
-
// },
|
|
219
|
-
// {
|
|
220
|
-
// title: "Popover",
|
|
221
|
-
// href: "#",
|
|
222
|
-
// label: "Soon",
|
|
223
|
-
// disabled: true,
|
|
224
|
-
// items: []
|
|
225
|
-
// },
|
|
226
|
-
{
|
|
227
|
-
title: 'Progress',
|
|
228
|
-
href: '/docs/components/progress',
|
|
229
|
-
items: []
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
title: 'Radio Group',
|
|
233
|
-
href: '/docs/components/radio-group',
|
|
234
|
-
items: []
|
|
235
|
-
},
|
|
236
|
-
// {
|
|
237
|
-
// title: "Scroll Area",
|
|
238
|
-
// href: "#",
|
|
239
|
-
// label: "Soon",
|
|
240
|
-
// disabled: true,
|
|
241
|
-
// items: []
|
|
242
|
-
// },
|
|
243
|
-
{
|
|
244
|
-
title: 'Select',
|
|
245
|
-
href: '#',
|
|
246
|
-
label: 'Soon',
|
|
247
|
-
disabled: true,
|
|
248
|
-
items: []
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
title: 'Separator',
|
|
252
|
-
href: '/docs/components/separator',
|
|
253
|
-
items: []
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
title: 'Sheet',
|
|
257
|
-
href: '/docs/components/sheet',
|
|
258
|
-
items: []
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
title: 'Skeleton',
|
|
262
|
-
href: '/docs/components/skeleton',
|
|
263
|
-
items: []
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
title: 'Slider',
|
|
267
|
-
href: '/docs/components/slider',
|
|
268
|
-
items: []
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
title: 'Switch',
|
|
272
|
-
href: '/docs/components/switch',
|
|
273
|
-
items: []
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
title: 'Table',
|
|
277
|
-
href: '/docs/components/table',
|
|
278
|
-
items: []
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
title: 'Tabs',
|
|
282
|
-
href: '/docs/components/tabs',
|
|
283
|
-
items: []
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
title: 'Textarea',
|
|
287
|
-
href: '/docs/components/textarea',
|
|
288
|
-
items: []
|
|
289
|
-
},
|
|
290
|
-
// {
|
|
291
|
-
// title: "Toast",
|
|
292
|
-
// href: "#",
|
|
293
|
-
// label: "Soon",
|
|
294
|
-
// disabled: true,
|
|
295
|
-
// items: []
|
|
296
|
-
// },
|
|
297
|
-
{
|
|
298
|
-
title: 'Toggle',
|
|
299
|
-
href: '/docs/components/toggle',
|
|
300
|
-
items: []
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
title: 'Tooltip',
|
|
304
|
-
href: '/docs/components/tooltip',
|
|
305
|
-
items: []
|
|
306
|
-
}
|
|
307
|
-
]
|
|
308
|
-
}
|
|
309
|
-
]
|
|
310
|
-
};
|
|
311
|
-
|
|
312
|
-
type Example = {
|
|
313
|
-
name: string;
|
|
314
|
-
href: string;
|
|
315
|
-
label?: string;
|
|
316
|
-
code: string;
|
|
317
|
-
};
|
|
318
|
-
export const examples: Example[] = [
|
|
319
|
-
{
|
|
320
|
-
name: 'Dashboard',
|
|
321
|
-
href: '/dashboard',
|
|
322
|
-
code: 'https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/lib/components/docs/dashboard'
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
name: 'Cards',
|
|
326
|
-
href: '/cards',
|
|
327
|
-
code: 'https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/routes/examples/cards'
|
|
328
|
-
},
|
|
329
|
-
// {
|
|
330
|
-
// name: "Tasks",
|
|
331
|
-
// href: "/tasks",
|
|
332
|
-
// label: "New",
|
|
333
|
-
// code: "https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/apps/www/app/examples/tasks"
|
|
334
|
-
// },
|
|
335
|
-
// {
|
|
336
|
-
// name: "Playground",
|
|
337
|
-
// href: "/playground",
|
|
338
|
-
// code: "https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/apps/www/app/examples/playground"
|
|
339
|
-
// },
|
|
340
|
-
// {
|
|
341
|
-
// name: "Music",
|
|
342
|
-
// href: "/music",
|
|
343
|
-
// code: "https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/apps/www/app/examples/music"
|
|
344
|
-
// },
|
|
345
|
-
{
|
|
346
|
-
name: 'Authentication',
|
|
347
|
-
href: '/authentication',
|
|
348
|
-
code: 'https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/routes/examples/authentication'
|
|
349
|
-
}
|
|
350
|
-
// {
|
|
351
|
-
// name: "Forms",
|
|
352
|
-
// href: "#",
|
|
353
|
-
// label: "Soon",
|
|
354
|
-
// code: "https://github.com/huntabyte/shadcn-svelte/tree/main/apps/www/src/routes/examples/forms"
|
|
355
|
-
// }
|
|
356
|
-
];
|
|
@@ -1,15 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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>
|
|
File without changes
|
|
@@ -1,57 +0,0 @@
|
|
|
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>
|