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,132 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
|
|
3
|
-
import { zodResolver } from "@hookform/resolvers/zod"
|
|
4
|
-
import { useForm } from "react-hook-form"
|
|
5
|
-
import * as z from "zod"
|
|
6
|
-
|
|
7
|
-
import { Button } from "@/components/ui/button"
|
|
8
|
-
import { Checkbox } from "@/components/ui/checkbox"
|
|
9
|
-
import {
|
|
10
|
-
Form,
|
|
11
|
-
FormControl,
|
|
12
|
-
FormDescription,
|
|
13
|
-
FormField,
|
|
14
|
-
FormItem,
|
|
15
|
-
FormLabel,
|
|
16
|
-
FormMessage,
|
|
17
|
-
} from "@/components/ui/form"
|
|
18
|
-
import { toast } from "@/components/ui/use-toast"
|
|
19
|
-
|
|
20
|
-
const items = [
|
|
21
|
-
{
|
|
22
|
-
id: "recents",
|
|
23
|
-
label: "Recents",
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
id: "home",
|
|
27
|
-
label: "Home",
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
id: "applications",
|
|
31
|
-
label: "Applications",
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
id: "desktop",
|
|
35
|
-
label: "Desktop",
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
id: "downloads",
|
|
39
|
-
label: "Downloads",
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
id: "documents",
|
|
43
|
-
label: "Documents",
|
|
44
|
-
},
|
|
45
|
-
] as const
|
|
46
|
-
|
|
47
|
-
const displayFormSchema = z.object({
|
|
48
|
-
items: z.array(z.string()).refine((value) => value.some((item) => item), {
|
|
49
|
-
message: "You have to select at least one item.",
|
|
50
|
-
}),
|
|
51
|
-
})
|
|
52
|
-
|
|
53
|
-
type DisplayFormValues = z.infer<typeof displayFormSchema>
|
|
54
|
-
|
|
55
|
-
// This can come from your database or API.
|
|
56
|
-
const defaultValues: Partial<DisplayFormValues> = {
|
|
57
|
-
items: ["recents", "home"],
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function DisplayForm() {
|
|
61
|
-
const form = useForm<DisplayFormValues>({
|
|
62
|
-
resolver: zodResolver(displayFormSchema),
|
|
63
|
-
defaultValues,
|
|
64
|
-
})
|
|
65
|
-
|
|
66
|
-
function onSubmit(data: DisplayFormValues) {
|
|
67
|
-
toast({
|
|
68
|
-
title: "You submitted the following values:",
|
|
69
|
-
description: (
|
|
70
|
-
<pre className="mt-2 w-[340px] rounded-md bg-slate-950 p-4">
|
|
71
|
-
<code className="text-white">{JSON.stringify(data, null, 2)}</code>
|
|
72
|
-
</pre>
|
|
73
|
-
),
|
|
74
|
-
})
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
return (
|
|
78
|
-
<Form {...form}>
|
|
79
|
-
<form onSubmit={form.handleSubmit(onSubmit)} className="space-y-8">
|
|
80
|
-
<FormField
|
|
81
|
-
control={form.control}
|
|
82
|
-
name="items"
|
|
83
|
-
render={() => (
|
|
84
|
-
<FormItem>
|
|
85
|
-
<div className="mb-4">
|
|
86
|
-
<FormLabel className="text-base">Sidebar</FormLabel>
|
|
87
|
-
<FormDescription>
|
|
88
|
-
Select the items you want to display in the sidebar.
|
|
89
|
-
</FormDescription>
|
|
90
|
-
</div>
|
|
91
|
-
{items.map((item) => (
|
|
92
|
-
<FormField
|
|
93
|
-
key={item.id}
|
|
94
|
-
control={form.control}
|
|
95
|
-
name="items"
|
|
96
|
-
render={({ field }) => {
|
|
97
|
-
return (
|
|
98
|
-
<FormItem
|
|
99
|
-
key={item.id}
|
|
100
|
-
className="flex flex-row items-start space-x-3 space-y-0"
|
|
101
|
-
>
|
|
102
|
-
<FormControl>
|
|
103
|
-
<Checkbox
|
|
104
|
-
checked={field.value?.includes(item.id)}
|
|
105
|
-
onCheckedChange={(checked) => {
|
|
106
|
-
return checked
|
|
107
|
-
? field.onChange([...field.value, item.id])
|
|
108
|
-
: field.onChange(
|
|
109
|
-
field.value?.filter(
|
|
110
|
-
(value) => value !== item.id
|
|
111
|
-
)
|
|
112
|
-
)
|
|
113
|
-
}}
|
|
114
|
-
/>
|
|
115
|
-
</FormControl>
|
|
116
|
-
<FormLabel className="font-normal">
|
|
117
|
-
{item.label}
|
|
118
|
-
</FormLabel>
|
|
119
|
-
</FormItem>
|
|
120
|
-
)
|
|
121
|
-
}}
|
|
122
|
-
/>
|
|
123
|
-
))}
|
|
124
|
-
<FormMessage />
|
|
125
|
-
</FormItem>
|
|
126
|
-
)}
|
|
127
|
-
/>
|
|
128
|
-
<Button type="submit">Update display</Button>
|
|
129
|
-
</form>
|
|
130
|
-
</Form>
|
|
131
|
-
)
|
|
132
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Separator } from "@/components/ui/separator"
|
|
2
|
-
import { DisplayForm } from "@/app/examples/forms/display/display-form"
|
|
3
|
-
|
|
4
|
-
export default function SettingsDisplayPage() {
|
|
5
|
-
return (
|
|
6
|
-
<div className="space-y-6">
|
|
7
|
-
<div>
|
|
8
|
-
<h3 className="text-lg font-medium">Display</h3>
|
|
9
|
-
<p className="text-sm text-muted-foreground">
|
|
10
|
-
Turn items on or off to control what's displayed in the app.
|
|
11
|
-
</p>
|
|
12
|
-
</div>
|
|
13
|
-
<Separator />
|
|
14
|
-
<DisplayForm />
|
|
15
|
-
</div>
|
|
16
|
-
)
|
|
17
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Metadata } from "next"
|
|
2
|
-
import Image from "next/image"
|
|
3
|
-
|
|
4
|
-
import { Separator } from "@/components/ui/separator"
|
|
5
|
-
import { SidebarNav } from "@/app/examples/forms/components/sidebar-nav"
|
|
6
|
-
|
|
7
|
-
export const metadata: Metadata = {
|
|
8
|
-
title: "Forms",
|
|
9
|
-
description: "Advanced form example using react-hook-form and Zod.",
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const sidebarNavItems = [
|
|
13
|
-
{
|
|
14
|
-
title: "Profile",
|
|
15
|
-
href: "/examples/forms",
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
title: "Account",
|
|
19
|
-
href: "/examples/forms/account",
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
title: "Appearance",
|
|
23
|
-
href: "/examples/forms/appearance",
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
title: "Notifications",
|
|
27
|
-
href: "/examples/forms/notifications",
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
title: "Display",
|
|
31
|
-
href: "/examples/forms/display",
|
|
32
|
-
},
|
|
33
|
-
]
|
|
34
|
-
|
|
35
|
-
interface SettingsLayoutProps {
|
|
36
|
-
children: React.ReactNode
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export default function SettingsLayout({ children }: SettingsLayoutProps) {
|
|
40
|
-
return (
|
|
41
|
-
<>
|
|
42
|
-
<div className="space-y-6 p-10 pb-16 md:block">
|
|
43
|
-
<div className="space-y-0.5">
|
|
44
|
-
<h2 className="text-2xl font-bold tracking-tight">Settings</h2>
|
|
45
|
-
<p className="text-muted-foreground">
|
|
46
|
-
Manage your account settings and set e-mail preferences.
|
|
47
|
-
</p>
|
|
48
|
-
</div>
|
|
49
|
-
<Separator className="my-6" />
|
|
50
|
-
<div className="flex flex-col space-y-8 lg:flex-row lg:space-x-12 lg:space-y-0">
|
|
51
|
-
<aside className="-mx-4 lg:w-1/5">
|
|
52
|
-
<SidebarNav items={sidebarNavItems} />
|
|
53
|
-
</aside>
|
|
54
|
-
<div className="flex-1 lg:max-w-2xl">{children}</div>
|
|
55
|
-
</div>
|
|
56
|
-
</div>
|
|
57
|
-
</>
|
|
58
|
-
)
|
|
59
|
-
}
|
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
|
|
3
|
-
import Link from "next/link"
|
|
4
|
-
import { zodResolver } from "@hookform/resolvers/zod"
|
|
5
|
-
import { useForm } from "react-hook-form"
|
|
6
|
-
import * as z from "zod"
|
|
7
|
-
|
|
8
|
-
import { Button } from "@/components/ui/button"
|
|
9
|
-
import { Checkbox } from "@/components/ui/checkbox"
|
|
10
|
-
import {
|
|
11
|
-
Form,
|
|
12
|
-
FormControl,
|
|
13
|
-
FormDescription,
|
|
14
|
-
FormField,
|
|
15
|
-
FormItem,
|
|
16
|
-
FormLabel,
|
|
17
|
-
FormMessage,
|
|
18
|
-
} from "@/components/ui/form"
|
|
19
|
-
import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group"
|
|
20
|
-
import { Switch } from "@/components/ui/switch"
|
|
21
|
-
import { toast } from "@/components/ui/use-toast"
|
|
22
|
-
|
|
23
|
-
const notificationsFormSchema = z.object({
|
|
24
|
-
type: z.enum(["all", "mentions", "none"], {
|
|
25
|
-
required_error: "You need to select a notification type.",
|
|
26
|
-
}),
|
|
27
|
-
mobile: z.boolean().default(false).optional(),
|
|
28
|
-
communication_emails: z.boolean().default(false).optional(),
|
|
29
|
-
social_emails: z.boolean().default(false).optional(),
|
|
30
|
-
marketing_emails: z.boolean().default(false).optional(),
|
|
31
|
-
security_emails: z.boolean(),
|
|
32
|
-
})
|
|
33
|
-
|
|
34
|
-
type NotificationsFormValues = z.infer<typeof notificationsFormSchema>
|
|
35
|
-
|
|
36
|
-
// This can come from your database or API.
|
|
37
|
-
const defaultValues: Partial<NotificationsFormValues> = {
|
|
38
|
-
communication_emails: false,
|
|
39
|
-
marketing_emails: false,
|
|
40
|
-
social_emails: true,
|
|
41
|
-
security_emails: true,
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export function NotificationsForm() {
|
|
45
|
-
const form = useForm<NotificationsFormValues>({
|
|
46
|
-
resolver: zodResolver(notificationsFormSchema),
|
|
47
|
-
defaultValues,
|
|
48
|
-
})
|
|
49
|
-
|
|
50
|
-
function onSubmit(data: NotificationsFormValues) {
|
|
51
|
-
toast({
|
|
52
|
-
title: "You submitted the following values:",
|
|
53
|
-
description: (
|
|
54
|
-
<pre className="mt-2 w-[340px] rounded-md bg-slate-950 p-4">
|
|
55
|
-
<code className="text-white">{JSON.stringify(data, null, 2)}</code>
|
|
56
|
-
</pre>
|
|
57
|
-
),
|
|
58
|
-
})
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
return (
|
|
62
|
-
<Form {...form}>
|
|
63
|
-
<form onSubmit={form.handleSubmit(onSubmit)} className="space-y-8">
|
|
64
|
-
<FormField
|
|
65
|
-
control={form.control}
|
|
66
|
-
name="type"
|
|
67
|
-
render={({ field }) => (
|
|
68
|
-
<FormItem className="space-y-3">
|
|
69
|
-
<FormLabel>Notify me about...</FormLabel>
|
|
70
|
-
<FormControl>
|
|
71
|
-
<RadioGroup
|
|
72
|
-
onValueChange={field.onChange}
|
|
73
|
-
defaultValue={field.value}
|
|
74
|
-
className="flex flex-col space-y-1"
|
|
75
|
-
>
|
|
76
|
-
<FormItem className="flex items-center space-x-3 space-y-0">
|
|
77
|
-
<FormControl>
|
|
78
|
-
<RadioGroupItem value="all" />
|
|
79
|
-
</FormControl>
|
|
80
|
-
<FormLabel className="font-normal">
|
|
81
|
-
All new messages
|
|
82
|
-
</FormLabel>
|
|
83
|
-
</FormItem>
|
|
84
|
-
<FormItem className="flex items-center space-x-3 space-y-0">
|
|
85
|
-
<FormControl>
|
|
86
|
-
<RadioGroupItem value="mentions" />
|
|
87
|
-
</FormControl>
|
|
88
|
-
<FormLabel className="font-normal">
|
|
89
|
-
Direct messages and mentions
|
|
90
|
-
</FormLabel>
|
|
91
|
-
</FormItem>
|
|
92
|
-
<FormItem className="flex items-center space-x-3 space-y-0">
|
|
93
|
-
<FormControl>
|
|
94
|
-
<RadioGroupItem value="none" />
|
|
95
|
-
</FormControl>
|
|
96
|
-
<FormLabel className="font-normal">Nothing</FormLabel>
|
|
97
|
-
</FormItem>
|
|
98
|
-
</RadioGroup>
|
|
99
|
-
</FormControl>
|
|
100
|
-
<FormMessage />
|
|
101
|
-
</FormItem>
|
|
102
|
-
)}
|
|
103
|
-
/>
|
|
104
|
-
<div>
|
|
105
|
-
<h3 className="mb-4 text-lg font-medium">Email Notifications</h3>
|
|
106
|
-
<div className="space-y-4">
|
|
107
|
-
<FormField
|
|
108
|
-
control={form.control}
|
|
109
|
-
name="communication_emails"
|
|
110
|
-
render={({ field }) => (
|
|
111
|
-
<FormItem className="flex flex-row items-center justify-between rounded-lg border p-4">
|
|
112
|
-
<div className="space-y-0.5">
|
|
113
|
-
<FormLabel className="text-base">
|
|
114
|
-
Communication emails
|
|
115
|
-
</FormLabel>
|
|
116
|
-
<FormDescription>
|
|
117
|
-
Receive emails about your account activity.
|
|
118
|
-
</FormDescription>
|
|
119
|
-
</div>
|
|
120
|
-
<FormControl>
|
|
121
|
-
<Switch
|
|
122
|
-
checked={field.value}
|
|
123
|
-
onCheckedChange={field.onChange}
|
|
124
|
-
/>
|
|
125
|
-
</FormControl>
|
|
126
|
-
</FormItem>
|
|
127
|
-
)}
|
|
128
|
-
/>
|
|
129
|
-
<FormField
|
|
130
|
-
control={form.control}
|
|
131
|
-
name="marketing_emails"
|
|
132
|
-
render={({ field }) => (
|
|
133
|
-
<FormItem className="flex flex-row items-center justify-between rounded-lg border p-4">
|
|
134
|
-
<div className="space-y-0.5">
|
|
135
|
-
<FormLabel className="text-base">
|
|
136
|
-
Marketing emails
|
|
137
|
-
</FormLabel>
|
|
138
|
-
<FormDescription>
|
|
139
|
-
Receive emails about new products, features, and more.
|
|
140
|
-
</FormDescription>
|
|
141
|
-
</div>
|
|
142
|
-
<FormControl>
|
|
143
|
-
<Switch
|
|
144
|
-
checked={field.value}
|
|
145
|
-
onCheckedChange={field.onChange}
|
|
146
|
-
/>
|
|
147
|
-
</FormControl>
|
|
148
|
-
</FormItem>
|
|
149
|
-
)}
|
|
150
|
-
/>
|
|
151
|
-
<FormField
|
|
152
|
-
control={form.control}
|
|
153
|
-
name="social_emails"
|
|
154
|
-
render={({ field }) => (
|
|
155
|
-
<FormItem className="flex flex-row items-center justify-between rounded-lg border p-4">
|
|
156
|
-
<div className="space-y-0.5">
|
|
157
|
-
<FormLabel className="text-base">Social emails</FormLabel>
|
|
158
|
-
<FormDescription>
|
|
159
|
-
Receive emails for friend requests, follows, and more.
|
|
160
|
-
</FormDescription>
|
|
161
|
-
</div>
|
|
162
|
-
<FormControl>
|
|
163
|
-
<Switch
|
|
164
|
-
checked={field.value}
|
|
165
|
-
onCheckedChange={field.onChange}
|
|
166
|
-
/>
|
|
167
|
-
</FormControl>
|
|
168
|
-
</FormItem>
|
|
169
|
-
)}
|
|
170
|
-
/>
|
|
171
|
-
<FormField
|
|
172
|
-
control={form.control}
|
|
173
|
-
name="security_emails"
|
|
174
|
-
render={({ field }) => (
|
|
175
|
-
<FormItem className="flex flex-row items-center justify-between rounded-lg border p-4">
|
|
176
|
-
<div className="space-y-0.5">
|
|
177
|
-
<FormLabel className="text-base">Security emails</FormLabel>
|
|
178
|
-
<FormDescription>
|
|
179
|
-
Receive emails about your account activity and security.
|
|
180
|
-
</FormDescription>
|
|
181
|
-
</div>
|
|
182
|
-
<FormControl>
|
|
183
|
-
<Switch
|
|
184
|
-
checked={field.value}
|
|
185
|
-
onCheckedChange={field.onChange}
|
|
186
|
-
disabled
|
|
187
|
-
aria-readonly
|
|
188
|
-
/>
|
|
189
|
-
</FormControl>
|
|
190
|
-
</FormItem>
|
|
191
|
-
)}
|
|
192
|
-
/>
|
|
193
|
-
</div>
|
|
194
|
-
</div>
|
|
195
|
-
<FormField
|
|
196
|
-
control={form.control}
|
|
197
|
-
name="mobile"
|
|
198
|
-
render={({ field }) => (
|
|
199
|
-
<FormItem className="flex flex-row items-start space-x-3 space-y-0">
|
|
200
|
-
<FormControl>
|
|
201
|
-
<Checkbox
|
|
202
|
-
checked={field.value}
|
|
203
|
-
onCheckedChange={field.onChange}
|
|
204
|
-
/>
|
|
205
|
-
</FormControl>
|
|
206
|
-
<div className="space-y-1 leading-none">
|
|
207
|
-
<FormLabel>
|
|
208
|
-
Use different settings for my mobile devices
|
|
209
|
-
</FormLabel>
|
|
210
|
-
<FormDescription>
|
|
211
|
-
You can manage your mobile notifications in the{" "}
|
|
212
|
-
<Link href="/examples/forms">mobile settings</Link> page.
|
|
213
|
-
</FormDescription>
|
|
214
|
-
</div>
|
|
215
|
-
</FormItem>
|
|
216
|
-
)}
|
|
217
|
-
/>
|
|
218
|
-
<Button type="submit">Update notifications</Button>
|
|
219
|
-
</form>
|
|
220
|
-
</Form>
|
|
221
|
-
)
|
|
222
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Separator } from "@/components/ui/separator"
|
|
2
|
-
import { NotificationsForm } from "@/app/examples/forms/notifications/notifications-form"
|
|
3
|
-
|
|
4
|
-
export default function SettingsNotificationsPage() {
|
|
5
|
-
return (
|
|
6
|
-
<div className="space-y-6">
|
|
7
|
-
<div>
|
|
8
|
-
<h3 className="text-lg font-medium">Notifications</h3>
|
|
9
|
-
<p className="text-sm text-muted-foreground">
|
|
10
|
-
Configure how you receive notifications.
|
|
11
|
-
</p>
|
|
12
|
-
</div>
|
|
13
|
-
<Separator />
|
|
14
|
-
<NotificationsForm />
|
|
15
|
-
</div>
|
|
16
|
-
)
|
|
17
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Separator } from "@/components/ui/separator"
|
|
2
|
-
import { ProfileForm } from "@/app/examples/forms/components/profile-form"
|
|
3
|
-
|
|
4
|
-
export default function SettingsProfilePage() {
|
|
5
|
-
return (
|
|
6
|
-
<div className="space-y-6">
|
|
7
|
-
<div>
|
|
8
|
-
<h3 className="text-lg font-medium">Profile</h3>
|
|
9
|
-
<p className="text-sm text-muted-foreground">
|
|
10
|
-
This is how others will see you on the site.
|
|
11
|
-
</p>
|
|
12
|
-
</div>
|
|
13
|
-
<Separator />
|
|
14
|
-
<ProfileForm />
|
|
15
|
-
</div>
|
|
16
|
-
)
|
|
17
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import Image from "next/image"
|
|
2
|
-
import { PlusCircledIcon } from "@radix-ui/react-icons"
|
|
3
|
-
|
|
4
|
-
import { cn } from "@/lib/utils"
|
|
5
|
-
import {
|
|
6
|
-
ContextMenu,
|
|
7
|
-
ContextMenuContent,
|
|
8
|
-
ContextMenuItem,
|
|
9
|
-
ContextMenuSeparator,
|
|
10
|
-
ContextMenuSub,
|
|
11
|
-
ContextMenuSubContent,
|
|
12
|
-
ContextMenuSubTrigger,
|
|
13
|
-
ContextMenuTrigger,
|
|
14
|
-
} from "@/components/ui/context-menu"
|
|
15
|
-
|
|
16
|
-
import { Album } from "../data/albums"
|
|
17
|
-
import { playlists } from "../data/playlists"
|
|
18
|
-
|
|
19
|
-
interface AlbumArtworkProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
20
|
-
album: Album
|
|
21
|
-
aspectRatio?: "portrait" | "square"
|
|
22
|
-
width?: number
|
|
23
|
-
height?: number
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export function AlbumArtwork({
|
|
27
|
-
album,
|
|
28
|
-
aspectRatio = "portrait",
|
|
29
|
-
width,
|
|
30
|
-
height,
|
|
31
|
-
className,
|
|
32
|
-
...props
|
|
33
|
-
}: AlbumArtworkProps) {
|
|
34
|
-
return (
|
|
35
|
-
<div className={cn("space-y-3", className)} {...props}>
|
|
36
|
-
<ContextMenu>
|
|
37
|
-
<ContextMenuTrigger>
|
|
38
|
-
<div className="overflow-hidden rounded-md">
|
|
39
|
-
<Image
|
|
40
|
-
src={album.cover}
|
|
41
|
-
alt={album.name}
|
|
42
|
-
width={width}
|
|
43
|
-
height={height}
|
|
44
|
-
className={cn(
|
|
45
|
-
"h-auto w-auto object-cover transition-all hover:scale-105",
|
|
46
|
-
aspectRatio === "portrait" ? "aspect-[3/4]" : "aspect-square"
|
|
47
|
-
)}
|
|
48
|
-
/>
|
|
49
|
-
</div>
|
|
50
|
-
</ContextMenuTrigger>
|
|
51
|
-
<ContextMenuContent className="w-40">
|
|
52
|
-
<ContextMenuItem>Add to Library</ContextMenuItem>
|
|
53
|
-
<ContextMenuSub>
|
|
54
|
-
<ContextMenuSubTrigger>Add to Playlist</ContextMenuSubTrigger>
|
|
55
|
-
<ContextMenuSubContent className="w-48">
|
|
56
|
-
<ContextMenuItem>
|
|
57
|
-
<PlusCircledIcon className="mr-2 h-4 w-4" />
|
|
58
|
-
New Playlist
|
|
59
|
-
</ContextMenuItem>
|
|
60
|
-
<ContextMenuSeparator />
|
|
61
|
-
{playlists.map((playlist) => (
|
|
62
|
-
<ContextMenuItem key={playlist}>
|
|
63
|
-
<svg
|
|
64
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
65
|
-
fill="none"
|
|
66
|
-
stroke="currentColor"
|
|
67
|
-
strokeLinecap="round"
|
|
68
|
-
strokeLinejoin="round"
|
|
69
|
-
strokeWidth="2"
|
|
70
|
-
className="mr-2 h-4 w-4"
|
|
71
|
-
viewBox="0 0 24 24"
|
|
72
|
-
>
|
|
73
|
-
<path d="M21 15V6M18.5 18a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM12 12H3M16 6H3M12 18H3" />
|
|
74
|
-
</svg>
|
|
75
|
-
{playlist}
|
|
76
|
-
</ContextMenuItem>
|
|
77
|
-
))}
|
|
78
|
-
</ContextMenuSubContent>
|
|
79
|
-
</ContextMenuSub>
|
|
80
|
-
<ContextMenuSeparator />
|
|
81
|
-
<ContextMenuItem>Play Next</ContextMenuItem>
|
|
82
|
-
<ContextMenuItem>Play Later</ContextMenuItem>
|
|
83
|
-
<ContextMenuItem>Create Station</ContextMenuItem>
|
|
84
|
-
<ContextMenuSeparator />
|
|
85
|
-
<ContextMenuItem>Like</ContextMenuItem>
|
|
86
|
-
<ContextMenuItem>Share</ContextMenuItem>
|
|
87
|
-
</ContextMenuContent>
|
|
88
|
-
</ContextMenu>
|
|
89
|
-
<div className="space-y-1 text-sm">
|
|
90
|
-
<h3 className="font-medium leading-none">{album.name}</h3>
|
|
91
|
-
<p className="text-xs text-muted-foreground">{album.artist}</p>
|
|
92
|
-
</div>
|
|
93
|
-
</div>
|
|
94
|
-
)
|
|
95
|
-
}
|