create-tauri-ui 0.3.3 → 1.0.1
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,141 +0,0 @@
|
|
|
1
|
-
import { Metadata } from "next"
|
|
2
|
-
import Image from "next/image"
|
|
3
|
-
import { PlusCircledIcon } from "@radix-ui/react-icons"
|
|
4
|
-
|
|
5
|
-
import { Button } from "@/components/ui/button"
|
|
6
|
-
import { ScrollArea, ScrollBar } from "@/components/ui/scroll-area"
|
|
7
|
-
import { Separator } from "@/components/ui/separator"
|
|
8
|
-
import {
|
|
9
|
-
Tabs,
|
|
10
|
-
TabsContent,
|
|
11
|
-
TabsList,
|
|
12
|
-
TabsTrigger,
|
|
13
|
-
} from "@/components/ui/tabs"
|
|
14
|
-
|
|
15
|
-
import { AlbumArtwork } from "./components/album-artwork"
|
|
16
|
-
import { Menu } from "./components/menu"
|
|
17
|
-
import { PodcastEmptyPlaceholder } from "./components/podcast-empty-placeholder"
|
|
18
|
-
import { Sidebar } from "./components/sidebar"
|
|
19
|
-
import { listenNowAlbums, madeForYouAlbums } from "./data/albums"
|
|
20
|
-
import { playlists } from "./data/playlists"
|
|
21
|
-
|
|
22
|
-
export const metadata: Metadata = {
|
|
23
|
-
title: "Music App",
|
|
24
|
-
description: "Example music app using the components.",
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export default function MusicPage() {
|
|
28
|
-
return (
|
|
29
|
-
<>
|
|
30
|
-
<div>
|
|
31
|
-
{/* <Menu /> */}
|
|
32
|
-
<div className="border-t">
|
|
33
|
-
<div className="bg-background">
|
|
34
|
-
<div className="grid lg:grid-cols-5">
|
|
35
|
-
<Sidebar playlists={playlists} className="hidden lg:block" />
|
|
36
|
-
<div className="col-span-3 lg:col-span-4 lg:border-l">
|
|
37
|
-
<div className="h-full px-4 py-6 lg:px-8">
|
|
38
|
-
<Tabs defaultValue="music" className="h-full space-y-6">
|
|
39
|
-
<div className="space-between flex items-center">
|
|
40
|
-
<TabsList>
|
|
41
|
-
<TabsTrigger value="music" className="relative">
|
|
42
|
-
Music
|
|
43
|
-
</TabsTrigger>
|
|
44
|
-
<TabsTrigger value="podcasts">Podcasts</TabsTrigger>
|
|
45
|
-
<TabsTrigger value="live" disabled>
|
|
46
|
-
Live
|
|
47
|
-
</TabsTrigger>
|
|
48
|
-
</TabsList>
|
|
49
|
-
<div className="ml-auto mr-4">
|
|
50
|
-
<Button>
|
|
51
|
-
<PlusCircledIcon className="mr-2 h-4 w-4" />
|
|
52
|
-
Add music
|
|
53
|
-
</Button>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
<TabsContent
|
|
57
|
-
value="music"
|
|
58
|
-
className="border-none p-0 outline-none"
|
|
59
|
-
>
|
|
60
|
-
<div className="flex items-center justify-between">
|
|
61
|
-
<div className="space-y-1">
|
|
62
|
-
<h2 className="text-2xl font-semibold tracking-tight">
|
|
63
|
-
Listen Now
|
|
64
|
-
</h2>
|
|
65
|
-
<p className="text-sm text-muted-foreground">
|
|
66
|
-
Top picks for you. Updated daily.
|
|
67
|
-
</p>
|
|
68
|
-
</div>
|
|
69
|
-
</div>
|
|
70
|
-
<Separator className="my-4" />
|
|
71
|
-
<div className="relative">
|
|
72
|
-
<ScrollArea>
|
|
73
|
-
<div className="flex space-x-4 pb-4">
|
|
74
|
-
{listenNowAlbums.map((album) => (
|
|
75
|
-
<AlbumArtwork
|
|
76
|
-
key={album.name}
|
|
77
|
-
album={album}
|
|
78
|
-
className="w-[250px]"
|
|
79
|
-
aspectRatio="portrait"
|
|
80
|
-
width={250}
|
|
81
|
-
height={330}
|
|
82
|
-
/>
|
|
83
|
-
))}
|
|
84
|
-
</div>
|
|
85
|
-
<ScrollBar orientation="horizontal" />
|
|
86
|
-
</ScrollArea>
|
|
87
|
-
</div>
|
|
88
|
-
<div className="mt-6 space-y-1">
|
|
89
|
-
<h2 className="text-2xl font-semibold tracking-tight">
|
|
90
|
-
Made for You
|
|
91
|
-
</h2>
|
|
92
|
-
<p className="text-sm text-muted-foreground">
|
|
93
|
-
Your personal playlists. Updated daily.
|
|
94
|
-
</p>
|
|
95
|
-
</div>
|
|
96
|
-
<Separator className="my-4" />
|
|
97
|
-
<div className="relative">
|
|
98
|
-
<ScrollArea>
|
|
99
|
-
<div className="flex space-x-4 pb-4">
|
|
100
|
-
{madeForYouAlbums.map((album) => (
|
|
101
|
-
<AlbumArtwork
|
|
102
|
-
key={album.name}
|
|
103
|
-
album={album}
|
|
104
|
-
className="w-[150px]"
|
|
105
|
-
aspectRatio="square"
|
|
106
|
-
width={150}
|
|
107
|
-
height={150}
|
|
108
|
-
/>
|
|
109
|
-
))}
|
|
110
|
-
</div>
|
|
111
|
-
<ScrollBar orientation="horizontal" />
|
|
112
|
-
</ScrollArea>
|
|
113
|
-
</div>
|
|
114
|
-
</TabsContent>
|
|
115
|
-
<TabsContent
|
|
116
|
-
value="podcasts"
|
|
117
|
-
className="h-full flex-col border-none p-0 data-[state=active]:flex"
|
|
118
|
-
>
|
|
119
|
-
<div className="flex items-center justify-between">
|
|
120
|
-
<div className="space-y-1">
|
|
121
|
-
<h2 className="text-2xl font-semibold tracking-tight">
|
|
122
|
-
New Episodes
|
|
123
|
-
</h2>
|
|
124
|
-
<p className="text-sm text-muted-foreground">
|
|
125
|
-
Your favorite podcasts. Updated daily.
|
|
126
|
-
</p>
|
|
127
|
-
</div>
|
|
128
|
-
</div>
|
|
129
|
-
<Separator className="my-4" />
|
|
130
|
-
<PodcastEmptyPlaceholder />
|
|
131
|
-
</TabsContent>
|
|
132
|
-
</Tabs>
|
|
133
|
-
</div>
|
|
134
|
-
</div>
|
|
135
|
-
</div>
|
|
136
|
-
</div>
|
|
137
|
-
</div>
|
|
138
|
-
</div>
|
|
139
|
-
</>
|
|
140
|
-
)
|
|
141
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { Button } from "@/components/ui/button"
|
|
2
|
-
import {
|
|
3
|
-
Dialog,
|
|
4
|
-
DialogContent,
|
|
5
|
-
DialogDescription,
|
|
6
|
-
DialogHeader,
|
|
7
|
-
DialogTitle,
|
|
8
|
-
DialogTrigger,
|
|
9
|
-
} from "@/components/ui/dialog"
|
|
10
|
-
|
|
11
|
-
export function CodeViewer() {
|
|
12
|
-
return (
|
|
13
|
-
<Dialog>
|
|
14
|
-
<DialogTrigger asChild>
|
|
15
|
-
<Button variant="secondary">View code</Button>
|
|
16
|
-
</DialogTrigger>
|
|
17
|
-
<DialogContent className="sm:max-w-[625px]">
|
|
18
|
-
<DialogHeader>
|
|
19
|
-
<DialogTitle>View code</DialogTitle>
|
|
20
|
-
<DialogDescription>
|
|
21
|
-
You can use the following code to start integrating your current
|
|
22
|
-
prompt and settings into your application.
|
|
23
|
-
</DialogDescription>
|
|
24
|
-
</DialogHeader>
|
|
25
|
-
<div className="grid gap-4">
|
|
26
|
-
<div className="rounded-md bg-black p-6">
|
|
27
|
-
<pre>
|
|
28
|
-
<code className="grid gap-1 text-sm text-muted-foreground [&_span]:h-4">
|
|
29
|
-
<span>
|
|
30
|
-
<span className="text-sky-300">import</span> os
|
|
31
|
-
</span>
|
|
32
|
-
<span>
|
|
33
|
-
<span className="text-sky-300">import</span> openai
|
|
34
|
-
</span>
|
|
35
|
-
<span />
|
|
36
|
-
<span>
|
|
37
|
-
openai.api_key = os.getenv(
|
|
38
|
-
<span className="text-green-300">
|
|
39
|
-
"OPENAI_API_KEY"
|
|
40
|
-
</span>
|
|
41
|
-
)
|
|
42
|
-
</span>
|
|
43
|
-
<span />
|
|
44
|
-
<span>response = openai.Completion.create(</span>
|
|
45
|
-
<span>
|
|
46
|
-
{" "}
|
|
47
|
-
model=
|
|
48
|
-
<span className="text-green-300">"davinci"</span>,
|
|
49
|
-
</span>
|
|
50
|
-
<span>
|
|
51
|
-
{" "}
|
|
52
|
-
prompt=<span className="text-amber-300">""</span>,
|
|
53
|
-
</span>
|
|
54
|
-
<span>
|
|
55
|
-
{" "}
|
|
56
|
-
temperature=<span className="text-amber-300">0.9</span>,
|
|
57
|
-
</span>
|
|
58
|
-
<span>
|
|
59
|
-
{" "}
|
|
60
|
-
max_tokens=<span className="text-amber-300">5</span>,
|
|
61
|
-
</span>
|
|
62
|
-
<span>
|
|
63
|
-
{" "}
|
|
64
|
-
top_p=<span className="text-amber-300">1</span>,
|
|
65
|
-
</span>
|
|
66
|
-
<span>
|
|
67
|
-
{" "}
|
|
68
|
-
frequency_penalty=<span className="text-amber-300">0</span>,
|
|
69
|
-
</span>
|
|
70
|
-
<span>
|
|
71
|
-
{" "}
|
|
72
|
-
presence_penalty=<span className="text-green-300">0</span>,
|
|
73
|
-
</span>
|
|
74
|
-
<span>)</span>
|
|
75
|
-
</code>
|
|
76
|
-
</pre>
|
|
77
|
-
</div>
|
|
78
|
-
<div>
|
|
79
|
-
<p className="text-sm text-muted-foreground">
|
|
80
|
-
Your API Key can be found here. You should use environment
|
|
81
|
-
variables or a secret management tool to expose your key to your
|
|
82
|
-
applications.
|
|
83
|
-
</p>
|
|
84
|
-
</div>
|
|
85
|
-
</div>
|
|
86
|
-
</DialogContent>
|
|
87
|
-
</Dialog>
|
|
88
|
-
)
|
|
89
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
|
|
3
|
-
import * as React from "react"
|
|
4
|
-
import { SliderProps } from "@radix-ui/react-slider"
|
|
5
|
-
|
|
6
|
-
import {
|
|
7
|
-
HoverCard,
|
|
8
|
-
HoverCardContent,
|
|
9
|
-
HoverCardTrigger,
|
|
10
|
-
} from "@/components/ui/hover-card"
|
|
11
|
-
import { Label } from "@/components/ui/label"
|
|
12
|
-
import { Slider } from "@/components/ui/slider"
|
|
13
|
-
|
|
14
|
-
interface MaxLengthSelectorProps {
|
|
15
|
-
defaultValue: SliderProps["defaultValue"]
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export function MaxLengthSelector({ defaultValue }: MaxLengthSelectorProps) {
|
|
19
|
-
const [value, setValue] = React.useState(defaultValue)
|
|
20
|
-
|
|
21
|
-
return (
|
|
22
|
-
<div className="grid gap-2 pt-2">
|
|
23
|
-
<HoverCard openDelay={200}>
|
|
24
|
-
<HoverCardTrigger asChild>
|
|
25
|
-
<div className="grid gap-4">
|
|
26
|
-
<div className="flex items-center justify-between">
|
|
27
|
-
<Label htmlFor="maxlength">Maximum Length</Label>
|
|
28
|
-
<span className="w-12 rounded-md border border-transparent px-2 py-0.5 text-right text-sm text-muted-foreground hover:border-border">
|
|
29
|
-
{value}
|
|
30
|
-
</span>
|
|
31
|
-
</div>
|
|
32
|
-
<Slider
|
|
33
|
-
id="maxlength"
|
|
34
|
-
max={4000}
|
|
35
|
-
defaultValue={value}
|
|
36
|
-
step={10}
|
|
37
|
-
onValueChange={setValue}
|
|
38
|
-
className="[&_[role=slider]]:h-4 [&_[role=slider]]:w-4"
|
|
39
|
-
aria-label="Maximum Length"
|
|
40
|
-
/>
|
|
41
|
-
</div>
|
|
42
|
-
</HoverCardTrigger>
|
|
43
|
-
<HoverCardContent
|
|
44
|
-
align="start"
|
|
45
|
-
className="w-[260px] text-sm"
|
|
46
|
-
side="left"
|
|
47
|
-
>
|
|
48
|
-
The maximum number of tokens to generate. Requests can use up to 2,048
|
|
49
|
-
or 4,000 tokens, shared between prompt and completion. The exact limit
|
|
50
|
-
varies by model.
|
|
51
|
-
</HoverCardContent>
|
|
52
|
-
</HoverCard>
|
|
53
|
-
</div>
|
|
54
|
-
)
|
|
55
|
-
}
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
|
|
3
|
-
import * as React from "react"
|
|
4
|
-
import { CaretSortIcon, CheckIcon } from "@radix-ui/react-icons"
|
|
5
|
-
import { PopoverProps } from "@radix-ui/react-popover"
|
|
6
|
-
|
|
7
|
-
import { cn } from "@/lib/utils"
|
|
8
|
-
import { useMutationObserver } from "@/hooks/use-mutation-observer"
|
|
9
|
-
import { Button } from "@/components/ui/button"
|
|
10
|
-
import {
|
|
11
|
-
Command,
|
|
12
|
-
CommandEmpty,
|
|
13
|
-
CommandGroup,
|
|
14
|
-
CommandInput,
|
|
15
|
-
CommandItem,
|
|
16
|
-
CommandList,
|
|
17
|
-
} from "@/components/ui/command"
|
|
18
|
-
import {
|
|
19
|
-
HoverCard,
|
|
20
|
-
HoverCardContent,
|
|
21
|
-
HoverCardTrigger,
|
|
22
|
-
} from "@/components/ui/hover-card"
|
|
23
|
-
import { Label } from "@/components/ui/label"
|
|
24
|
-
import {
|
|
25
|
-
Popover,
|
|
26
|
-
PopoverContent,
|
|
27
|
-
PopoverTrigger,
|
|
28
|
-
} from "@/components/ui/popover"
|
|
29
|
-
|
|
30
|
-
import { Model, ModelType } from "../data/models"
|
|
31
|
-
|
|
32
|
-
interface ModelSelectorProps extends PopoverProps {
|
|
33
|
-
types: readonly ModelType[]
|
|
34
|
-
models: Model[]
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export function ModelSelector({ models, types, ...props }: ModelSelectorProps) {
|
|
38
|
-
const [open, setOpen] = React.useState(false)
|
|
39
|
-
const [selectedModel, setSelectedModel] = React.useState<Model>(models[0])
|
|
40
|
-
const [peekedModel, setPeekedModel] = React.useState<Model>(models[0])
|
|
41
|
-
|
|
42
|
-
return (
|
|
43
|
-
<div className="grid gap-2">
|
|
44
|
-
<HoverCard openDelay={200}>
|
|
45
|
-
<HoverCardTrigger asChild>
|
|
46
|
-
<Label htmlFor="model">Model</Label>
|
|
47
|
-
</HoverCardTrigger>
|
|
48
|
-
<HoverCardContent
|
|
49
|
-
align="start"
|
|
50
|
-
className="w-[260px] text-sm"
|
|
51
|
-
side="left"
|
|
52
|
-
>
|
|
53
|
-
The model which will generate the completion. Some models are suitable
|
|
54
|
-
for natural language tasks, others specialize in code. Learn more.
|
|
55
|
-
</HoverCardContent>
|
|
56
|
-
</HoverCard>
|
|
57
|
-
<Popover open={open} onOpenChange={setOpen} {...props}>
|
|
58
|
-
<PopoverTrigger asChild>
|
|
59
|
-
<Button
|
|
60
|
-
variant="outline"
|
|
61
|
-
role="combobox"
|
|
62
|
-
aria-expanded={open}
|
|
63
|
-
aria-label="Select a model"
|
|
64
|
-
className="w-full justify-between"
|
|
65
|
-
>
|
|
66
|
-
{selectedModel ? selectedModel.name : "Select a model..."}
|
|
67
|
-
<CaretSortIcon className="ml-2 h-4 w-4 shrink-0 opacity-50" />
|
|
68
|
-
</Button>
|
|
69
|
-
</PopoverTrigger>
|
|
70
|
-
<PopoverContent align="end" className="w-[250px] p-0">
|
|
71
|
-
<HoverCard>
|
|
72
|
-
<HoverCardContent
|
|
73
|
-
side="left"
|
|
74
|
-
align="start"
|
|
75
|
-
forceMount
|
|
76
|
-
className="min-h-[280px]"
|
|
77
|
-
>
|
|
78
|
-
<div className="grid gap-2">
|
|
79
|
-
<h4 className="font-medium leading-none">{peekedModel.name}</h4>
|
|
80
|
-
<div className="text-sm text-muted-foreground">
|
|
81
|
-
{peekedModel.description}
|
|
82
|
-
</div>
|
|
83
|
-
{peekedModel.strengths ? (
|
|
84
|
-
<div className="mt-4 grid gap-2">
|
|
85
|
-
<h5 className="text-sm font-medium leading-none">
|
|
86
|
-
Strengths
|
|
87
|
-
</h5>
|
|
88
|
-
<ul className="text-sm text-muted-foreground">
|
|
89
|
-
{peekedModel.strengths}
|
|
90
|
-
</ul>
|
|
91
|
-
</div>
|
|
92
|
-
) : null}
|
|
93
|
-
</div>
|
|
94
|
-
</HoverCardContent>
|
|
95
|
-
<Command loop>
|
|
96
|
-
<CommandList className="h-[var(--cmdk-list-height)] max-h-[400px]">
|
|
97
|
-
<CommandInput placeholder="Search Models..." />
|
|
98
|
-
<CommandEmpty>No Models found.</CommandEmpty>
|
|
99
|
-
<HoverCardTrigger />
|
|
100
|
-
{types.map((type) => (
|
|
101
|
-
<CommandGroup key={type} heading={type}>
|
|
102
|
-
{models
|
|
103
|
-
.filter((model) => model.type === type)
|
|
104
|
-
.map((model) => (
|
|
105
|
-
<ModelItem
|
|
106
|
-
key={model.id}
|
|
107
|
-
model={model}
|
|
108
|
-
isSelected={selectedModel?.id === model.id}
|
|
109
|
-
onPeek={(model) => setPeekedModel(model)}
|
|
110
|
-
onSelect={() => {
|
|
111
|
-
setSelectedModel(model)
|
|
112
|
-
setOpen(false)
|
|
113
|
-
}}
|
|
114
|
-
/>
|
|
115
|
-
))}
|
|
116
|
-
</CommandGroup>
|
|
117
|
-
))}
|
|
118
|
-
</CommandList>
|
|
119
|
-
</Command>
|
|
120
|
-
</HoverCard>
|
|
121
|
-
</PopoverContent>
|
|
122
|
-
</Popover>
|
|
123
|
-
</div>
|
|
124
|
-
)
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
interface ModelItemProps {
|
|
128
|
-
model: Model
|
|
129
|
-
isSelected: boolean
|
|
130
|
-
onSelect: () => void
|
|
131
|
-
onPeek: (model: Model) => void
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
function ModelItem({ model, isSelected, onSelect, onPeek }: ModelItemProps) {
|
|
135
|
-
const ref = React.useRef<HTMLDivElement>(null)
|
|
136
|
-
|
|
137
|
-
useMutationObserver(ref, (mutations) => {
|
|
138
|
-
for (const mutation of mutations) {
|
|
139
|
-
if (mutation.type === "attributes") {
|
|
140
|
-
if (mutation.attributeName === "aria-selected") {
|
|
141
|
-
onPeek(model)
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
})
|
|
146
|
-
|
|
147
|
-
return (
|
|
148
|
-
<CommandItem
|
|
149
|
-
key={model.id}
|
|
150
|
-
onSelect={onSelect}
|
|
151
|
-
ref={ref}
|
|
152
|
-
className="aria-selected:bg-primary aria-selected:text-primary-foreground"
|
|
153
|
-
>
|
|
154
|
-
{model.name}
|
|
155
|
-
<CheckIcon
|
|
156
|
-
className={cn(
|
|
157
|
-
"ml-auto h-4 w-4",
|
|
158
|
-
isSelected ? "opacity-100" : "opacity-0"
|
|
159
|
-
)}
|
|
160
|
-
/>
|
|
161
|
-
</CommandItem>
|
|
162
|
-
)
|
|
163
|
-
}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
|
|
3
|
-
import * as React from "react"
|
|
4
|
-
import { Dialog } from "@radix-ui/react-dialog"
|
|
5
|
-
import { DotsHorizontalIcon } from "@radix-ui/react-icons"
|
|
6
|
-
|
|
7
|
-
import {
|
|
8
|
-
AlertDialog,
|
|
9
|
-
AlertDialogCancel,
|
|
10
|
-
AlertDialogContent,
|
|
11
|
-
AlertDialogDescription,
|
|
12
|
-
AlertDialogFooter,
|
|
13
|
-
AlertDialogHeader,
|
|
14
|
-
AlertDialogTitle,
|
|
15
|
-
} from "@/components/ui/alert-dialog"
|
|
16
|
-
import { Button } from "@/components/ui/button"
|
|
17
|
-
import {
|
|
18
|
-
DialogContent,
|
|
19
|
-
DialogDescription,
|
|
20
|
-
DialogFooter,
|
|
21
|
-
DialogHeader,
|
|
22
|
-
DialogTitle,
|
|
23
|
-
} from "@/components/ui/dialog"
|
|
24
|
-
import {
|
|
25
|
-
DropdownMenu,
|
|
26
|
-
DropdownMenuContent,
|
|
27
|
-
DropdownMenuItem,
|
|
28
|
-
DropdownMenuSeparator,
|
|
29
|
-
DropdownMenuTrigger,
|
|
30
|
-
} from "@/components/ui/dropdown-menu"
|
|
31
|
-
import { Label } from "@/components/ui/label"
|
|
32
|
-
import { Switch } from "@/components/ui/switch"
|
|
33
|
-
import { toast } from "@/components/ui/use-toast"
|
|
34
|
-
|
|
35
|
-
export function PresetActions() {
|
|
36
|
-
const [open, setIsOpen] = React.useState(false)
|
|
37
|
-
const [showDeleteDialog, setShowDeleteDialog] = React.useState(false)
|
|
38
|
-
|
|
39
|
-
return (
|
|
40
|
-
<>
|
|
41
|
-
<DropdownMenu>
|
|
42
|
-
<DropdownMenuTrigger asChild>
|
|
43
|
-
<Button variant="secondary">
|
|
44
|
-
<span className="sr-only">Actions</span>
|
|
45
|
-
<DotsHorizontalIcon className="h-4 w-4" />
|
|
46
|
-
</Button>
|
|
47
|
-
</DropdownMenuTrigger>
|
|
48
|
-
<DropdownMenuContent align="end">
|
|
49
|
-
<DropdownMenuItem onSelect={() => setIsOpen(true)}>
|
|
50
|
-
Content filter preferences
|
|
51
|
-
</DropdownMenuItem>
|
|
52
|
-
<DropdownMenuSeparator />
|
|
53
|
-
<DropdownMenuItem
|
|
54
|
-
onSelect={() => setShowDeleteDialog(true)}
|
|
55
|
-
className="text-red-600"
|
|
56
|
-
>
|
|
57
|
-
Delete preset
|
|
58
|
-
</DropdownMenuItem>
|
|
59
|
-
</DropdownMenuContent>
|
|
60
|
-
</DropdownMenu>
|
|
61
|
-
<Dialog open={open} onOpenChange={setIsOpen}>
|
|
62
|
-
<DialogContent>
|
|
63
|
-
<DialogHeader>
|
|
64
|
-
<DialogTitle>Content filter preferences</DialogTitle>
|
|
65
|
-
<DialogDescription>
|
|
66
|
-
The content filter flags text that may violate our content policy.
|
|
67
|
-
It's powered by our moderation endpoint which is free to use
|
|
68
|
-
to moderate your OpenAI API traffic. Learn more.
|
|
69
|
-
</DialogDescription>
|
|
70
|
-
</DialogHeader>
|
|
71
|
-
<div className="py-6">
|
|
72
|
-
<h4 className="text-sm text-muted-foreground">
|
|
73
|
-
Playground Warnings
|
|
74
|
-
</h4>
|
|
75
|
-
<div className="flex items-start justify-between space-x-4 pt-3">
|
|
76
|
-
<Switch name="show" id="show" defaultChecked={true} />
|
|
77
|
-
<Label className="grid gap-1 font-normal" htmlFor="show">
|
|
78
|
-
<span className="font-semibold">
|
|
79
|
-
Show a warning when content is flagged
|
|
80
|
-
</span>
|
|
81
|
-
<span className="text-sm text-muted-foreground">
|
|
82
|
-
A warning will be shown when sexual, hateful, violent or
|
|
83
|
-
self-harm content is detected.
|
|
84
|
-
</span>
|
|
85
|
-
</Label>
|
|
86
|
-
</div>
|
|
87
|
-
</div>
|
|
88
|
-
<DialogFooter>
|
|
89
|
-
<Button variant="secondary" onClick={() => setIsOpen(false)}>
|
|
90
|
-
Close
|
|
91
|
-
</Button>
|
|
92
|
-
</DialogFooter>
|
|
93
|
-
</DialogContent>
|
|
94
|
-
</Dialog>
|
|
95
|
-
<AlertDialog open={showDeleteDialog} onOpenChange={setShowDeleteDialog}>
|
|
96
|
-
<AlertDialogContent>
|
|
97
|
-
<AlertDialogHeader>
|
|
98
|
-
<AlertDialogTitle>Are you sure absolutely sure?</AlertDialogTitle>
|
|
99
|
-
<AlertDialogDescription>
|
|
100
|
-
This action cannot be undone. This preset will no longer be
|
|
101
|
-
accessible by you or others you've shared it with.
|
|
102
|
-
</AlertDialogDescription>
|
|
103
|
-
</AlertDialogHeader>
|
|
104
|
-
<AlertDialogFooter>
|
|
105
|
-
<AlertDialogCancel>Cancel</AlertDialogCancel>
|
|
106
|
-
<Button
|
|
107
|
-
variant="destructive"
|
|
108
|
-
onClick={() => {
|
|
109
|
-
setShowDeleteDialog(false)
|
|
110
|
-
toast({
|
|
111
|
-
description: "This preset has been deleted.",
|
|
112
|
-
})
|
|
113
|
-
}}
|
|
114
|
-
>
|
|
115
|
-
Delete
|
|
116
|
-
</Button>
|
|
117
|
-
</AlertDialogFooter>
|
|
118
|
-
</AlertDialogContent>
|
|
119
|
-
</AlertDialog>
|
|
120
|
-
</>
|
|
121
|
-
)
|
|
122
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { Button } from "@/components/ui/button"
|
|
2
|
-
import {
|
|
3
|
-
Dialog,
|
|
4
|
-
DialogContent,
|
|
5
|
-
DialogDescription,
|
|
6
|
-
DialogFooter,
|
|
7
|
-
DialogHeader,
|
|
8
|
-
DialogTitle,
|
|
9
|
-
DialogTrigger,
|
|
10
|
-
} from "@/components/ui/dialog"
|
|
11
|
-
import { Input } from "@/components/ui/input"
|
|
12
|
-
import { Label } from "@/components/ui/label"
|
|
13
|
-
|
|
14
|
-
export function PresetSave() {
|
|
15
|
-
return (
|
|
16
|
-
<Dialog>
|
|
17
|
-
<DialogTrigger asChild>
|
|
18
|
-
<Button variant="secondary">Save</Button>
|
|
19
|
-
</DialogTrigger>
|
|
20
|
-
<DialogContent className="sm:max-w-[475px]">
|
|
21
|
-
<DialogHeader>
|
|
22
|
-
<DialogTitle>Save preset</DialogTitle>
|
|
23
|
-
<DialogDescription>
|
|
24
|
-
This will save the current playground state as a preset which you
|
|
25
|
-
can access later or share with others.
|
|
26
|
-
</DialogDescription>
|
|
27
|
-
</DialogHeader>
|
|
28
|
-
<div className="grid gap-4 py-4">
|
|
29
|
-
<div className="grid gap-2">
|
|
30
|
-
<Label htmlFor="name">Name</Label>
|
|
31
|
-
<Input id="name" autoFocus />
|
|
32
|
-
</div>
|
|
33
|
-
<div className="grid gap-2">
|
|
34
|
-
<Label htmlFor="description">Description</Label>
|
|
35
|
-
<Input id="description" />
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
38
|
-
<DialogFooter>
|
|
39
|
-
<Button type="submit">Save</Button>
|
|
40
|
-
</DialogFooter>
|
|
41
|
-
</DialogContent>
|
|
42
|
-
</Dialog>
|
|
43
|
-
)
|
|
44
|
-
}
|