create-tauri-ui 0.3.2 → 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 +2 -2
- 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,82 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
|
|
3
|
-
import * as React from "react"
|
|
4
|
-
import { useRouter } from "next/navigation"
|
|
5
|
-
import { CaretSortIcon, CheckIcon } from "@radix-ui/react-icons"
|
|
6
|
-
import { PopoverProps } from "@radix-ui/react-popover"
|
|
7
|
-
|
|
8
|
-
import { cn } from "@/lib/utils"
|
|
9
|
-
import { Button } from "@/components/ui/button"
|
|
10
|
-
import {
|
|
11
|
-
Command,
|
|
12
|
-
CommandEmpty,
|
|
13
|
-
CommandGroup,
|
|
14
|
-
CommandInput,
|
|
15
|
-
CommandItem,
|
|
16
|
-
} from "@/components/ui/command"
|
|
17
|
-
import {
|
|
18
|
-
Popover,
|
|
19
|
-
PopoverContent,
|
|
20
|
-
PopoverTrigger,
|
|
21
|
-
} from "@/components/ui/popover"
|
|
22
|
-
|
|
23
|
-
import { Preset } from "../data/presets"
|
|
24
|
-
|
|
25
|
-
interface PresetSelectorProps extends PopoverProps {
|
|
26
|
-
presets: Preset[]
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export function PresetSelector({ presets, ...props }: PresetSelectorProps) {
|
|
30
|
-
const [open, setOpen] = React.useState(false)
|
|
31
|
-
const [selectedPreset, setSelectedPreset] = React.useState<Preset>()
|
|
32
|
-
const router = useRouter()
|
|
33
|
-
|
|
34
|
-
return (
|
|
35
|
-
<Popover open={open} onOpenChange={setOpen} {...props}>
|
|
36
|
-
<PopoverTrigger asChild>
|
|
37
|
-
<Button
|
|
38
|
-
variant="outline"
|
|
39
|
-
role="combobox"
|
|
40
|
-
aria-label="Load a preset..."
|
|
41
|
-
aria-expanded={open}
|
|
42
|
-
className="flex-1 justify-between md:max-w-[200px] lg:max-w-[300px]"
|
|
43
|
-
>
|
|
44
|
-
{selectedPreset ? selectedPreset.name : "Load a preset..."}
|
|
45
|
-
<CaretSortIcon className="ml-2 h-4 w-4 shrink-0 opacity-50" />
|
|
46
|
-
</Button>
|
|
47
|
-
</PopoverTrigger>
|
|
48
|
-
<PopoverContent className="w-[300px] p-0">
|
|
49
|
-
<Command>
|
|
50
|
-
<CommandInput placeholder="Search presets..." />
|
|
51
|
-
<CommandEmpty>No presets found.</CommandEmpty>
|
|
52
|
-
<CommandGroup heading="Examples">
|
|
53
|
-
{presets.map((preset) => (
|
|
54
|
-
<CommandItem
|
|
55
|
-
key={preset.id}
|
|
56
|
-
onSelect={() => {
|
|
57
|
-
setSelectedPreset(preset)
|
|
58
|
-
setOpen(false)
|
|
59
|
-
}}
|
|
60
|
-
>
|
|
61
|
-
{preset.name}
|
|
62
|
-
<CheckIcon
|
|
63
|
-
className={cn(
|
|
64
|
-
"ml-auto h-4 w-4",
|
|
65
|
-
selectedPreset?.id === preset.id
|
|
66
|
-
? "opacity-100"
|
|
67
|
-
: "opacity-0"
|
|
68
|
-
)}
|
|
69
|
-
/>
|
|
70
|
-
</CommandItem>
|
|
71
|
-
))}
|
|
72
|
-
</CommandGroup>
|
|
73
|
-
<CommandGroup className="pt-0">
|
|
74
|
-
<CommandItem onSelect={() => router.push("/examples")}>
|
|
75
|
-
More examples
|
|
76
|
-
</CommandItem>
|
|
77
|
-
</CommandGroup>
|
|
78
|
-
</Command>
|
|
79
|
-
</PopoverContent>
|
|
80
|
-
</Popover>
|
|
81
|
-
)
|
|
82
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { CopyIcon } from "@radix-ui/react-icons"
|
|
2
|
-
|
|
3
|
-
import { Button } from "@/components/ui/button"
|
|
4
|
-
import { Input } from "@/components/ui/input"
|
|
5
|
-
import { Label } from "@/components/ui/label"
|
|
6
|
-
import {
|
|
7
|
-
Popover,
|
|
8
|
-
PopoverContent,
|
|
9
|
-
PopoverTrigger,
|
|
10
|
-
} from "@/components/ui/popover"
|
|
11
|
-
|
|
12
|
-
export function PresetShare() {
|
|
13
|
-
return (
|
|
14
|
-
<Popover>
|
|
15
|
-
<PopoverTrigger asChild>
|
|
16
|
-
<Button variant="secondary">Share</Button>
|
|
17
|
-
</PopoverTrigger>
|
|
18
|
-
<PopoverContent align="end" className="w-[520px]">
|
|
19
|
-
<div className="flex flex-col space-y-2 text-center sm:text-left">
|
|
20
|
-
<h3 className="text-lg font-semibold">Share preset</h3>
|
|
21
|
-
<p className="text-sm text-muted-foreground">
|
|
22
|
-
Anyone who has this link and an OpenAI account will be able to view
|
|
23
|
-
this.
|
|
24
|
-
</p>
|
|
25
|
-
</div>
|
|
26
|
-
<div className="flex items-center space-x-2 pt-4">
|
|
27
|
-
<div className="grid flex-1 gap-2">
|
|
28
|
-
<Label htmlFor="link" className="sr-only">
|
|
29
|
-
Link
|
|
30
|
-
</Label>
|
|
31
|
-
<Input
|
|
32
|
-
id="link"
|
|
33
|
-
defaultValue="https://platform.openai.com/playground/p/7bbKYQvsVkNmVb8NGcdUOLae?model=text-davinci-003"
|
|
34
|
-
readOnly
|
|
35
|
-
className="h-9"
|
|
36
|
-
/>
|
|
37
|
-
</div>
|
|
38
|
-
<Button type="submit" size="sm" className="px-3">
|
|
39
|
-
<span className="sr-only">Copy</span>
|
|
40
|
-
<CopyIcon className="h-4 w-4" />
|
|
41
|
-
</Button>
|
|
42
|
-
</div>
|
|
43
|
-
</PopoverContent>
|
|
44
|
-
</Popover>
|
|
45
|
-
)
|
|
46
|
-
}
|
|
@@ -1,57 +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 TemperatureSelectorProps {
|
|
15
|
-
defaultValue: SliderProps["defaultValue"]
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export function TemperatureSelector({
|
|
19
|
-
defaultValue,
|
|
20
|
-
}: TemperatureSelectorProps) {
|
|
21
|
-
const [value, setValue] = React.useState(defaultValue)
|
|
22
|
-
|
|
23
|
-
return (
|
|
24
|
-
<div className="grid gap-2 pt-2">
|
|
25
|
-
<HoverCard openDelay={200}>
|
|
26
|
-
<HoverCardTrigger asChild>
|
|
27
|
-
<div className="grid gap-4">
|
|
28
|
-
<div className="flex items-center justify-between">
|
|
29
|
-
<Label htmlFor="temperature">Temperature</Label>
|
|
30
|
-
<span className="w-12 rounded-md border border-transparent px-2 py-0.5 text-right text-sm text-muted-foreground hover:border-border">
|
|
31
|
-
{value}
|
|
32
|
-
</span>
|
|
33
|
-
</div>
|
|
34
|
-
<Slider
|
|
35
|
-
id="temperature"
|
|
36
|
-
max={1}
|
|
37
|
-
defaultValue={value}
|
|
38
|
-
step={0.1}
|
|
39
|
-
onValueChange={setValue}
|
|
40
|
-
className="[&_[role=slider]]:h-4 [&_[role=slider]]:w-4"
|
|
41
|
-
aria-label="Temperature"
|
|
42
|
-
/>
|
|
43
|
-
</div>
|
|
44
|
-
</HoverCardTrigger>
|
|
45
|
-
<HoverCardContent
|
|
46
|
-
align="start"
|
|
47
|
-
className="w-[260px] text-sm"
|
|
48
|
-
side="left"
|
|
49
|
-
>
|
|
50
|
-
Controls randomness: lowering results in less random completions. As
|
|
51
|
-
the temperature approaches zero, the model will become deterministic
|
|
52
|
-
and repetitive.
|
|
53
|
-
</HoverCardContent>
|
|
54
|
-
</HoverCard>
|
|
55
|
-
</div>
|
|
56
|
-
)
|
|
57
|
-
}
|
|
@@ -1,54 +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 TopPSelectorProps {
|
|
15
|
-
defaultValue: SliderProps["defaultValue"]
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export function TopPSelector({ defaultValue }: TopPSelectorProps) {
|
|
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="top-p">Top P</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="top-p"
|
|
34
|
-
max={1}
|
|
35
|
-
defaultValue={value}
|
|
36
|
-
step={0.1}
|
|
37
|
-
onValueChange={setValue}
|
|
38
|
-
className="[&_[role=slider]]:h-4 [&_[role=slider]]:w-4"
|
|
39
|
-
aria-label="Top P"
|
|
40
|
-
/>
|
|
41
|
-
</div>
|
|
42
|
-
</HoverCardTrigger>
|
|
43
|
-
<HoverCardContent
|
|
44
|
-
align="start"
|
|
45
|
-
className="w-[260px] text-sm"
|
|
46
|
-
side="left"
|
|
47
|
-
>
|
|
48
|
-
Control diversity via nucleus sampling: 0.5 means half of all
|
|
49
|
-
likelihood-weighted options are considered.
|
|
50
|
-
</HoverCardContent>
|
|
51
|
-
</HoverCard>
|
|
52
|
-
</div>
|
|
53
|
-
)
|
|
54
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
export const types = ["GPT-3", "Codex"] as const
|
|
2
|
-
|
|
3
|
-
export type ModelType = (typeof types)[number]
|
|
4
|
-
|
|
5
|
-
export interface Model<Type = string> {
|
|
6
|
-
id: string
|
|
7
|
-
name: string
|
|
8
|
-
description: string
|
|
9
|
-
strengths?: string
|
|
10
|
-
type: Type
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export const models: Model<ModelType>[] = [
|
|
14
|
-
{
|
|
15
|
-
id: "c305f976-8e38-42b1-9fb7-d21b2e34f0da",
|
|
16
|
-
name: "text-davinci-003",
|
|
17
|
-
description:
|
|
18
|
-
"Most capable GPT-3 model. Can do any task the other models can do, often with higher quality, longer output and better instruction-following. Also supports inserting completions within text.",
|
|
19
|
-
type: "GPT-3",
|
|
20
|
-
strengths:
|
|
21
|
-
"Complex intent, cause and effect, creative generation, search, summarization for audience",
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
id: "464a47c3-7ab5-44d7-b669-f9cb5a9e8465",
|
|
25
|
-
name: "text-curie-001",
|
|
26
|
-
description: "Very capable, but faster and lower cost than Davinci.",
|
|
27
|
-
type: "GPT-3",
|
|
28
|
-
strengths:
|
|
29
|
-
"Language translation, complex classification, sentiment, summarization",
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
id: "ac0797b0-7e31-43b6-a494-da7e2ab43445",
|
|
33
|
-
name: "text-babbage-001",
|
|
34
|
-
description: "Capable of straightforward tasks, very fast, and lower cost.",
|
|
35
|
-
type: "GPT-3",
|
|
36
|
-
strengths: "Moderate classification, semantic search",
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
id: " be638fb1-973b-4471-a49c-290325085802",
|
|
40
|
-
name: "text-ada-001",
|
|
41
|
-
description:
|
|
42
|
-
"Capable of very simple tasks, usually the fastest model in the GPT-3 series, and lowest cost.",
|
|
43
|
-
type: "GPT-3",
|
|
44
|
-
strengths:
|
|
45
|
-
"Parsing text, simple classification, address correction, keywords",
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
id: "b43c0ea9-5ad4-456a-ae29-26cd77b6d0fb",
|
|
49
|
-
name: "code-davinci-002",
|
|
50
|
-
description:
|
|
51
|
-
"Most capable Codex model. Particularly good at translating natural language to code. In addition to completing code, also supports inserting completions within code.",
|
|
52
|
-
type: "Codex",
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
id: "bbd57291-4622-4a21-9eed-dd6bd786fdd1",
|
|
56
|
-
name: "code-cushman-001",
|
|
57
|
-
description:
|
|
58
|
-
"Almost as capable as Davinci Codex, but slightly faster. This speed advantage may make it preferable for real-time applications.",
|
|
59
|
-
type: "Codex",
|
|
60
|
-
strengths: "Real-time application where low-latency is preferable",
|
|
61
|
-
},
|
|
62
|
-
]
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
export interface Preset {
|
|
2
|
-
id: string
|
|
3
|
-
name: string
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export const presets: Preset[] = [
|
|
7
|
-
{
|
|
8
|
-
id: "9cb0e66a-9937-465d-a188-2c4c4ae2401f",
|
|
9
|
-
name: "Grammatical Standard English",
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
id: "61eb0e32-2391-4cd3-adc3-66efe09bc0b7",
|
|
13
|
-
name: "Summarize for a 2nd grader",
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
id: "a4e1fa51-f4ce-4e45-892c-224030a00bdd",
|
|
17
|
-
name: "Text to command",
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
id: "cc198b13-4933-43aa-977e-dcd95fa30770",
|
|
21
|
-
name: "Q&A",
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
id: "adfa95be-a575-45fd-a9ef-ea45386c64de",
|
|
25
|
-
name: "English to other languages",
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
id: "c569a06a-0bd6-43a7-adf9-bf68c09e7a79",
|
|
29
|
-
name: "Parse unstructured data",
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
id: "15ccc0d7-f37a-4f0a-8163-a37e162877dc",
|
|
33
|
-
name: "Classification",
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
id: "4641ef41-1c0f-421d-b4b2-70fe431081f3",
|
|
37
|
-
name: "Natural language to Python",
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
id: "48d34082-72f3-4a1b-a14d-f15aca4f57a0",
|
|
41
|
-
name: "Explain code",
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
id: "dfd42fd5-0394-4810-92c6-cc907d3bfd1a",
|
|
45
|
-
name: "Chat",
|
|
46
|
-
},
|
|
47
|
-
]
|
|
@@ -1,313 +0,0 @@
|
|
|
1
|
-
import { Metadata } from "next"
|
|
2
|
-
import Image from "next/image"
|
|
3
|
-
import { CounterClockwiseClockIcon } from "@radix-ui/react-icons"
|
|
4
|
-
|
|
5
|
-
import { Button } from "@/components/ui/button"
|
|
6
|
-
import {
|
|
7
|
-
HoverCard,
|
|
8
|
-
HoverCardContent,
|
|
9
|
-
HoverCardTrigger,
|
|
10
|
-
} from "@/components/ui/hover-card"
|
|
11
|
-
import { Label } from "@/components/ui/label"
|
|
12
|
-
import { Separator } from "@/components/ui/separator"
|
|
13
|
-
import {
|
|
14
|
-
Tabs,
|
|
15
|
-
TabsContent,
|
|
16
|
-
TabsList,
|
|
17
|
-
TabsTrigger,
|
|
18
|
-
} from "@/components/ui/tabs"
|
|
19
|
-
import { Textarea } from "@/components/ui/textarea"
|
|
20
|
-
|
|
21
|
-
import { CodeViewer } from "./components/code-viewer"
|
|
22
|
-
import { MaxLengthSelector } from "./components/maxlength-selector"
|
|
23
|
-
import { ModelSelector } from "./components/model-selector"
|
|
24
|
-
import { PresetActions } from "./components/preset-actions"
|
|
25
|
-
import { PresetSave } from "./components/preset-save"
|
|
26
|
-
import { PresetSelector } from "./components/preset-selector"
|
|
27
|
-
import { PresetShare } from "./components/preset-share"
|
|
28
|
-
import { TemperatureSelector } from "./components/temperature-selector"
|
|
29
|
-
import { TopPSelector } from "./components/top-p-selector"
|
|
30
|
-
import { models, types } from "./data/models"
|
|
31
|
-
import { presets } from "./data/presets"
|
|
32
|
-
|
|
33
|
-
export const metadata: Metadata = {
|
|
34
|
-
title: "Playground",
|
|
35
|
-
description: "The OpenAI Playground built using the components.",
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export default function PlaygroundPage() {
|
|
39
|
-
return (
|
|
40
|
-
<>
|
|
41
|
-
<div className="h-full flex-col md:flex">
|
|
42
|
-
<div className="container flex flex-col items-start justify-between space-y-2 py-4 sm:flex-row sm:items-center sm:space-y-0 md:h-16">
|
|
43
|
-
<h2 className="text-lg font-semibold">Playground</h2>
|
|
44
|
-
<div className="ml-auto flex w-full space-x-2 sm:justify-end">
|
|
45
|
-
<PresetSelector presets={presets} />
|
|
46
|
-
<PresetSave />
|
|
47
|
-
<div className="hidden space-x-2 md:flex">
|
|
48
|
-
<CodeViewer />
|
|
49
|
-
<PresetShare />
|
|
50
|
-
</div>
|
|
51
|
-
<PresetActions />
|
|
52
|
-
</div>
|
|
53
|
-
</div>
|
|
54
|
-
<Separator />
|
|
55
|
-
<Tabs defaultValue="complete" className="flex-1">
|
|
56
|
-
<div className="container h-full py-6">
|
|
57
|
-
<div className="grid h-full items-stretch gap-6 md:grid-cols-[1fr_200px]">
|
|
58
|
-
<div className="hidden flex-col space-y-4 sm:flex md:order-2">
|
|
59
|
-
<div className="grid gap-2">
|
|
60
|
-
<HoverCard openDelay={200}>
|
|
61
|
-
<HoverCardTrigger asChild>
|
|
62
|
-
<span className="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70">
|
|
63
|
-
Mode
|
|
64
|
-
</span>
|
|
65
|
-
</HoverCardTrigger>
|
|
66
|
-
<HoverCardContent className="w-[320px] text-sm" side="left">
|
|
67
|
-
Choose the interface that best suits your task. You can
|
|
68
|
-
provide: a simple prompt to complete, starting and ending
|
|
69
|
-
text to insert a completion within, or some text with
|
|
70
|
-
instructions to edit it.
|
|
71
|
-
</HoverCardContent>
|
|
72
|
-
</HoverCard>
|
|
73
|
-
<TabsList className="grid grid-cols-3">
|
|
74
|
-
<TabsTrigger value="complete">
|
|
75
|
-
<span className="sr-only">Complete</span>
|
|
76
|
-
<svg
|
|
77
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
78
|
-
viewBox="0 0 20 20"
|
|
79
|
-
fill="none"
|
|
80
|
-
className="h-5 w-5"
|
|
81
|
-
>
|
|
82
|
-
<rect
|
|
83
|
-
x="4"
|
|
84
|
-
y="3"
|
|
85
|
-
width="12"
|
|
86
|
-
height="2"
|
|
87
|
-
rx="1"
|
|
88
|
-
fill="currentColor"
|
|
89
|
-
></rect>
|
|
90
|
-
<rect
|
|
91
|
-
x="4"
|
|
92
|
-
y="7"
|
|
93
|
-
width="12"
|
|
94
|
-
height="2"
|
|
95
|
-
rx="1"
|
|
96
|
-
fill="currentColor"
|
|
97
|
-
></rect>
|
|
98
|
-
<rect
|
|
99
|
-
x="4"
|
|
100
|
-
y="11"
|
|
101
|
-
width="3"
|
|
102
|
-
height="2"
|
|
103
|
-
rx="1"
|
|
104
|
-
fill="currentColor"
|
|
105
|
-
></rect>
|
|
106
|
-
<rect
|
|
107
|
-
x="4"
|
|
108
|
-
y="15"
|
|
109
|
-
width="3"
|
|
110
|
-
height="2"
|
|
111
|
-
rx="1"
|
|
112
|
-
fill="currentColor"
|
|
113
|
-
></rect>
|
|
114
|
-
<rect
|
|
115
|
-
x="8.5"
|
|
116
|
-
y="11"
|
|
117
|
-
width="3"
|
|
118
|
-
height="2"
|
|
119
|
-
rx="1"
|
|
120
|
-
fill="currentColor"
|
|
121
|
-
></rect>
|
|
122
|
-
<rect
|
|
123
|
-
x="8.5"
|
|
124
|
-
y="15"
|
|
125
|
-
width="3"
|
|
126
|
-
height="2"
|
|
127
|
-
rx="1"
|
|
128
|
-
fill="currentColor"
|
|
129
|
-
></rect>
|
|
130
|
-
<rect
|
|
131
|
-
x="13"
|
|
132
|
-
y="11"
|
|
133
|
-
width="3"
|
|
134
|
-
height="2"
|
|
135
|
-
rx="1"
|
|
136
|
-
fill="currentColor"
|
|
137
|
-
></rect>
|
|
138
|
-
</svg>
|
|
139
|
-
</TabsTrigger>
|
|
140
|
-
<TabsTrigger value="insert">
|
|
141
|
-
<span className="sr-only">Insert</span>
|
|
142
|
-
<svg
|
|
143
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
144
|
-
viewBox="0 0 20 20"
|
|
145
|
-
fill="none"
|
|
146
|
-
className="h-5 w-5"
|
|
147
|
-
>
|
|
148
|
-
<path
|
|
149
|
-
fillRule="evenodd"
|
|
150
|
-
clipRule="evenodd"
|
|
151
|
-
d="M14.491 7.769a.888.888 0 0 1 .287.648.888.888 0 0 1-.287.648l-3.916 3.667a1.013 1.013 0 0 1-.692.268c-.26 0-.509-.097-.692-.268L5.275 9.065A.886.886 0 0 1 5 8.42a.889.889 0 0 1 .287-.64c.181-.17.427-.267.683-.269.257-.002.504.09.69.258L8.903 9.87V3.917c0-.243.103-.477.287-.649.183-.171.432-.268.692-.268.26 0 .509.097.692.268a.888.888 0 0 1 .287.649V9.87l2.245-2.102c.183-.172.432-.269.692-.269.26 0 .508.097.692.269Z"
|
|
152
|
-
fill="currentColor"
|
|
153
|
-
></path>
|
|
154
|
-
<rect
|
|
155
|
-
x="4"
|
|
156
|
-
y="15"
|
|
157
|
-
width="3"
|
|
158
|
-
height="2"
|
|
159
|
-
rx="1"
|
|
160
|
-
fill="currentColor"
|
|
161
|
-
></rect>
|
|
162
|
-
<rect
|
|
163
|
-
x="8.5"
|
|
164
|
-
y="15"
|
|
165
|
-
width="3"
|
|
166
|
-
height="2"
|
|
167
|
-
rx="1"
|
|
168
|
-
fill="currentColor"
|
|
169
|
-
></rect>
|
|
170
|
-
<rect
|
|
171
|
-
x="13"
|
|
172
|
-
y="15"
|
|
173
|
-
width="3"
|
|
174
|
-
height="2"
|
|
175
|
-
rx="1"
|
|
176
|
-
fill="currentColor"
|
|
177
|
-
></rect>
|
|
178
|
-
</svg>
|
|
179
|
-
</TabsTrigger>
|
|
180
|
-
<TabsTrigger value="edit">
|
|
181
|
-
<span className="sr-only">Edit</span>
|
|
182
|
-
<svg
|
|
183
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
184
|
-
viewBox="0 0 20 20"
|
|
185
|
-
fill="none"
|
|
186
|
-
className="h-5 w-5"
|
|
187
|
-
>
|
|
188
|
-
<rect
|
|
189
|
-
x="4"
|
|
190
|
-
y="3"
|
|
191
|
-
width="12"
|
|
192
|
-
height="2"
|
|
193
|
-
rx="1"
|
|
194
|
-
fill="currentColor"
|
|
195
|
-
></rect>
|
|
196
|
-
<rect
|
|
197
|
-
x="4"
|
|
198
|
-
y="7"
|
|
199
|
-
width="12"
|
|
200
|
-
height="2"
|
|
201
|
-
rx="1"
|
|
202
|
-
fill="currentColor"
|
|
203
|
-
></rect>
|
|
204
|
-
<rect
|
|
205
|
-
x="4"
|
|
206
|
-
y="11"
|
|
207
|
-
width="3"
|
|
208
|
-
height="2"
|
|
209
|
-
rx="1"
|
|
210
|
-
fill="currentColor"
|
|
211
|
-
></rect>
|
|
212
|
-
<rect
|
|
213
|
-
x="4"
|
|
214
|
-
y="15"
|
|
215
|
-
width="4"
|
|
216
|
-
height="2"
|
|
217
|
-
rx="1"
|
|
218
|
-
fill="currentColor"
|
|
219
|
-
></rect>
|
|
220
|
-
<rect
|
|
221
|
-
x="8.5"
|
|
222
|
-
y="11"
|
|
223
|
-
width="3"
|
|
224
|
-
height="2"
|
|
225
|
-
rx="1"
|
|
226
|
-
fill="currentColor"
|
|
227
|
-
></rect>
|
|
228
|
-
<path
|
|
229
|
-
d="M17.154 11.346a1.182 1.182 0 0 0-1.671 0L11 15.829V17.5h1.671l4.483-4.483a1.182 1.182 0 0 0 0-1.671Z"
|
|
230
|
-
fill="currentColor"
|
|
231
|
-
></path>
|
|
232
|
-
</svg>
|
|
233
|
-
</TabsTrigger>
|
|
234
|
-
</TabsList>
|
|
235
|
-
</div>
|
|
236
|
-
<ModelSelector types={types} models={models} />
|
|
237
|
-
<TemperatureSelector defaultValue={[0.56]} />
|
|
238
|
-
<MaxLengthSelector defaultValue={[256]} />
|
|
239
|
-
<TopPSelector defaultValue={[0.9]} />
|
|
240
|
-
</div>
|
|
241
|
-
<div className="md:order-1">
|
|
242
|
-
<TabsContent value="complete" className="mt-0 border-0 p-0">
|
|
243
|
-
<div className="flex h-full flex-col space-y-4">
|
|
244
|
-
<Textarea
|
|
245
|
-
placeholder="Write a tagline for an ice cream shop"
|
|
246
|
-
className="min-h-[400px] flex-1 p-4 md:min-h-[700px] lg:min-h-[700px]"
|
|
247
|
-
/>
|
|
248
|
-
<div className="flex items-center space-x-2">
|
|
249
|
-
<Button>Submit</Button>
|
|
250
|
-
<Button variant="secondary">
|
|
251
|
-
<span className="sr-only">Show history</span>
|
|
252
|
-
<CounterClockwiseClockIcon className="h-4 w-4" />
|
|
253
|
-
</Button>
|
|
254
|
-
</div>
|
|
255
|
-
</div>
|
|
256
|
-
</TabsContent>
|
|
257
|
-
<TabsContent value="insert" className="mt-0 border-0 p-0">
|
|
258
|
-
<div className="flex flex-col space-y-4">
|
|
259
|
-
<div className="grid h-full grid-rows-2 gap-6 lg:grid-cols-2 lg:grid-rows-1">
|
|
260
|
-
<Textarea
|
|
261
|
-
placeholder="We're writing to [inset]. Congrats from OpenAI!"
|
|
262
|
-
className="h-full min-h-[300px] lg:min-h-[700px] xl:min-h-[700px]"
|
|
263
|
-
/>
|
|
264
|
-
<div className="rounded-md border bg-muted"></div>
|
|
265
|
-
</div>
|
|
266
|
-
<div className="flex items-center space-x-2">
|
|
267
|
-
<Button>Submit</Button>
|
|
268
|
-
<Button variant="secondary">
|
|
269
|
-
<span className="sr-only">Show history</span>
|
|
270
|
-
<CounterClockwiseClockIcon className="h-4 w-4" />
|
|
271
|
-
</Button>
|
|
272
|
-
</div>
|
|
273
|
-
</div>
|
|
274
|
-
</TabsContent>
|
|
275
|
-
<TabsContent value="edit" className="mt-0 border-0 p-0">
|
|
276
|
-
<div className="flex flex-col space-y-4">
|
|
277
|
-
<div className="grid h-full gap-6 lg:grid-cols-2">
|
|
278
|
-
<div className="flex flex-col space-y-4">
|
|
279
|
-
<div className="flex flex-1 flex-col space-y-2">
|
|
280
|
-
<Label htmlFor="input">Input</Label>
|
|
281
|
-
<Textarea
|
|
282
|
-
id="input"
|
|
283
|
-
placeholder="We is going to the market."
|
|
284
|
-
className="flex-1 lg:min-h-[580px]"
|
|
285
|
-
/>
|
|
286
|
-
</div>
|
|
287
|
-
<div className="flex flex-col space-y-2">
|
|
288
|
-
<Label htmlFor="instructions">Instructions</Label>
|
|
289
|
-
<Textarea
|
|
290
|
-
id="instructions"
|
|
291
|
-
placeholder="Fix the grammar."
|
|
292
|
-
/>
|
|
293
|
-
</div>
|
|
294
|
-
</div>
|
|
295
|
-
<div className="mt-[21px] min-h-[400px] rounded-md border bg-muted lg:min-h-[700px]" />
|
|
296
|
-
</div>
|
|
297
|
-
<div className="flex items-center space-x-2">
|
|
298
|
-
<Button>Submit</Button>
|
|
299
|
-
<Button variant="secondary">
|
|
300
|
-
<span className="sr-only">Show history</span>
|
|
301
|
-
<CounterClockwiseClockIcon className="h-4 w-4" />
|
|
302
|
-
</Button>
|
|
303
|
-
</div>
|
|
304
|
-
</div>
|
|
305
|
-
</TabsContent>
|
|
306
|
-
</div>
|
|
307
|
-
</div>
|
|
308
|
-
</div>
|
|
309
|
-
</Tabs>
|
|
310
|
-
</div>
|
|
311
|
-
</>
|
|
312
|
-
)
|
|
313
|
-
}
|