create-tauri-ui 0.1.5 → 0.2.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 +56 -12
- package/dist/index.mjs +26 -27
- package/index.js +1 -1
- package/package.json +10 -19
- package/templates/.shared/.github/workflows/release.yml +112 -0
- package/templates/.shared/app-icon.png +0 -0
- package/templates/.shared/src-tauri/Cargo.lock +3701 -0
- package/templates/.shared/src-tauri/Cargo.toml +36 -0
- package/templates/.shared/src-tauri/build.rs +3 -0
- 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 +19 -0
- package/templates/.shared/src-tauri/tauri.conf.json +79 -0
- package/templates/next/.env +1 -1
- package/templates/next/.github/workflows/release.yml +108 -108
- package/templates/next/.vscode/extensions.json +3 -3
- package/templates/next/README.md +95 -88
- package/templates/next/components.json +16 -0
- package/templates/next/next-env.d.ts +5 -5
- package/templates/next/next.config.js +0 -3
- package/templates/next/package.json +25 -24
- package/templates/next/pnpm-lock.yaml +4869 -4754
- package/templates/next/postcss.config.js +6 -6
- package/templates/next/prettier.config.js +35 -35
- package/templates/next/src/app/examples/authentication/components/user-auth-form.tsx +1 -1
- package/templates/next/src/app/examples/authentication/page.tsx +67 -59
- package/templates/next/src/app/examples/cards/components/create-account.tsx +1 -1
- package/templates/next/src/app/examples/cards/components/date-picker.tsx +2 -2
- package/templates/next/src/app/examples/cards/components/github-card.tsx +15 -10
- package/templates/next/src/app/examples/cards/components/notifications.tsx +9 -9
- package/templates/next/src/app/examples/cards/components/payment-method.tsx +14 -4
- package/templates/next/src/app/examples/cards/components/report-an-issue.tsx +4 -1
- package/templates/next/src/app/examples/cards/components/share-document.tsx +5 -1
- package/templates/next/src/app/examples/cards/components/team-members.tsx +8 -4
- package/templates/next/src/app/examples/cards/page.tsx +37 -36
- package/templates/next/src/app/examples/dashboard/components/date-range-picker.tsx +2 -3
- package/templates/next/src/app/examples/dashboard/components/main-nav.tsx +10 -8
- package/templates/next/src/app/examples/dashboard/components/recent-sales.tsx +5 -1
- package/templates/next/src/app/examples/dashboard/components/search.tsx +1 -1
- package/templates/next/src/app/examples/dashboard/components/team-switcher.tsx +15 -7
- package/templates/next/src/app/examples/dashboard/components/user-nav.tsx +10 -15
- package/templates/next/src/app/examples/dashboard/page.tsx +164 -114
- package/templates/next/src/app/examples/forms/account/account-form.tsx +13 -13
- package/templates/next/src/app/examples/forms/appearance/appearance-form.tsx +5 -5
- package/templates/next/src/app/examples/forms/components/sidebar-nav.tsx +3 -2
- package/templates/next/src/app/examples/forms/display/display-form.tsx +2 -2
- package/templates/next/src/app/examples/forms/layout.tsx +16 -14
- package/templates/next/src/app/examples/forms/notifications/notifications-form.tsx +6 -5
- package/templates/next/src/app/examples/forms/notifications/page.tsx +0 -1
- package/templates/next/src/app/examples/forms/profile-form.tsx +16 -15
- package/templates/next/src/app/examples/layout.tsx +7 -7
- package/templates/next/src/app/examples/music/components/album-artwork.tsx +15 -4
- package/templates/next/src/app/examples/music/components/menu.tsx +27 -5
- package/templates/next/src/app/examples/music/components/podcast-empty-placeholder.tsx +15 -4
- package/templates/next/src/app/examples/music/components/sidebar.tsx +147 -43
- package/templates/next/src/app/examples/music/page.tsx +113 -106
- package/templates/next/src/app/examples/playground/components/model-selector.tsx +3 -3
- package/templates/next/src/app/examples/playground/components/preset-actions.tsx +2 -4
- package/templates/next/src/app/examples/playground/components/preset-selector.tsx +4 -4
- package/templates/next/src/app/examples/playground/components/preset-share.tsx +2 -2
- package/templates/next/src/app/examples/playground/page.tsx +268 -115
- package/templates/next/src/app/examples/tasks/components/data-table-column-header.tsx +12 -7
- package/templates/next/src/app/examples/tasks/components/data-table-faceted-filter.tsx +4 -4
- package/templates/next/src/app/examples/tasks/components/data-table-pagination.tsx +10 -10
- package/templates/next/src/app/examples/tasks/components/data-table-row-actions.tsx +6 -19
- package/templates/next/src/app/examples/tasks/components/data-table-toolbar.tsx +3 -5
- package/templates/next/src/app/examples/tasks/components/data-table-view-options.tsx +2 -2
- package/templates/next/src/app/examples/tasks/components/user-nav.tsx +10 -15
- package/templates/next/src/app/examples/tasks/data/data.tsx +17 -17
- package/templates/next/src/app/examples/tasks/data/tasks.json +1 -1
- package/templates/next/src/app/examples/tasks/page.tsx +14 -12
- package/templates/next/src/app/layout.tsx +5 -1
- package/templates/next/src/app/page.tsx +5 -5
- package/templates/next/src/components/{examples/date-picker/with-range.tsx → example/date-picker-with-range.tsx} +1 -1
- package/templates/next/src/components/examples-nav.tsx +70 -70
- package/templates/next/src/components/greeting.tsx +21 -21
- package/templates/next/src/components/icons.tsx +154 -154
- package/templates/next/src/components/menu-mode-toggle.tsx +46 -46
- package/templates/next/src/components/menu.tsx +1 -1
- package/templates/next/src/components/mode-toggle.tsx +43 -43
- package/templates/next/src/components/page-header.tsx +50 -50
- package/templates/next/src/components/style-switcher.tsx +19 -19
- package/templates/next/src/components/tailwind-indicator.tsx +18 -18
- package/templates/next/src/components/theme-provider.tsx +9 -9
- package/templates/next/src/components/ui/accordion.tsx +1 -1
- package/templates/next/src/components/ui/alert-dialog.tsx +3 -8
- package/templates/next/src/components/ui/alert.tsx +3 -5
- package/templates/next/src/components/ui/badge.tsx +5 -5
- package/templates/next/src/components/ui/button.tsx +15 -10
- package/templates/next/src/components/ui/card.tsx +1 -3
- package/templates/next/src/components/ui/checkbox.tsx +2 -2
- package/templates/next/src/components/ui/command.tsx +2 -2
- package/templates/next/src/components/ui/context-menu.tsx +6 -6
- package/templates/next/src/components/ui/dialog.tsx +4 -9
- package/templates/next/src/components/ui/dropdown-menu.tsx +6 -6
- package/templates/next/src/components/ui/hover-card.tsx +1 -1
- package/templates/next/src/components/ui/input.tsx +1 -3
- package/templates/next/src/components/ui/label.tsx +1 -1
- package/templates/next/src/components/ui/menubar.tsx +7 -7
- package/templates/next/src/components/ui/navigation-menu.tsx +2 -4
- package/templates/next/src/components/ui/popover.tsx +1 -1
- package/templates/next/src/components/ui/radio-group.tsx +2 -2
- package/templates/next/src/components/ui/select.tsx +4 -3
- package/templates/next/src/components/ui/sheet.tsx +22 -108
- package/templates/next/src/components/ui/skeleton.tsx +0 -2
- package/templates/next/src/components/ui/switch.tsx +1 -1
- package/templates/next/src/components/ui/table.tsx +1 -1
- package/templates/next/src/components/ui/tabs.tsx +1 -1
- package/templates/next/src/components/ui/textarea.tsx +1 -3
- package/templates/next/src/components/ui/toast.tsx +6 -8
- package/templates/next/src/components/ui/toggle.tsx +3 -3
- package/templates/next/src/components/ui/tooltip.tsx +1 -1
- package/templates/next/src/components/ui/use-toast.ts +5 -4
- package/templates/next/src/data/albums.ts +71 -71
- package/templates/next/src/data/playlists.ts +16 -16
- package/templates/next/src/lib/utils.ts +2 -15
- package/templates/next/src/styles/globals.css +1 -39
- package/templates/next/src-tauri/Cargo.lock +307 -243
- package/templates/next/src-tauri/Cargo.toml +5 -5
- package/templates/next/src-tauri/build.rs +3 -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 +19 -19
- package/templates/next/src-tauri/tauri.conf.json +18 -2
- package/templates/next/tailwind.config.js +1 -3
- package/templates/next/tsconfig.json +5 -5
- package/templates/sveltekit/.github/workflows/release.yml +108 -0
- package/templates/sveltekit/package.json +84 -84
- package/templates/sveltekit/src-tauri/Cargo.lock +3701 -3639
- package/templates/sveltekit/src-tauri/Cargo.toml +36 -34
- package/templates/sveltekit/src-tauri/build.rs +3 -3
- package/templates/sveltekit/src-tauri/tauri.conf.json +79 -62
- package/templates/vite/components.json +16 -0
- package/templates/vite/package.json +76 -75
- package/templates/vite/pnpm-lock.yaml +5110 -5005
- 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/components/menu.tsx +1 -1
- package/templates/vite/src/dashboard/components/date-range-picker.tsx +2 -3
- package/templates/vite/src/dashboard/components/recent-sales.tsx +5 -1
- package/templates/vite/src/dashboard/components/search.tsx +1 -1
- package/templates/vite/src/dashboard/components/team-switcher.tsx +15 -7
- package/templates/vite/src/dashboard/components/user-nav.tsx +10 -15
- package/templates/vite/src/dashboard/page.tsx +172 -121
- package/templates/vite/src/styles/globals.css +1 -39
- package/templates/vite/src-tauri/Cargo.lock +3701 -3637
- package/templates/vite/src-tauri/Cargo.toml +36 -33
- package/templates/vite/src-tauri/build.rs +3 -3
- package/templates/vite/src-tauri/tauri.conf.json +17 -1
- package/templates/viteuno/.github/workflows/release.yml +108 -0
- package/templates/viteuno/.vscode/extensions.json +3 -0
- package/templates/viteuno/README.md +1 -0
- package/templates/viteuno/app-icon.png +0 -0
- package/templates/viteuno/components.json +16 -0
- package/templates/viteuno/index.html +16 -0
- package/templates/viteuno/package.json +73 -0
- package/templates/viteuno/pnpm-lock.yaml +5298 -0
- package/templates/viteuno/preset.shadcn.ts +160 -0
- package/templates/viteuno/prettier.config.cjs +34 -0
- package/templates/viteuno/public/avatars/01.png +0 -0
- package/templates/viteuno/public/avatars/02.png +0 -0
- package/templates/viteuno/public/avatars/03.png +0 -0
- package/templates/viteuno/public/avatars/04.png +0 -0
- package/templates/viteuno/public/avatars/05.png +0 -0
- package/templates/viteuno/src/App.tsx +39 -0
- package/templates/viteuno/src/assets/Inter.var.woff2 +0 -0
- package/templates/viteuno/src/components/icons.tsx +154 -0
- package/templates/viteuno/src/components/menu-mode-toggle.tsx +46 -0
- package/templates/viteuno/src/components/menu.tsx +232 -0
- package/templates/viteuno/src/components/tailwind-indicator.tsx +18 -0
- package/templates/viteuno/src/components/theme-provider.tsx +9 -0
- package/templates/viteuno/src/components/ui/accordion.tsx +60 -0
- package/templates/viteuno/src/components/ui/alert-dialog.tsx +150 -0
- package/templates/viteuno/src/components/ui/alert.tsx +61 -0
- package/templates/viteuno/src/components/ui/aspect-ratio.tsx +7 -0
- package/templates/viteuno/src/components/ui/avatar.tsx +50 -0
- package/templates/viteuno/src/components/ui/badge.tsx +36 -0
- package/templates/viteuno/src/components/ui/button.tsx +51 -0
- package/templates/viteuno/src/components/ui/calendar.tsx +64 -0
- package/templates/viteuno/src/components/ui/card.tsx +81 -0
- package/templates/viteuno/src/components/ui/checkbox.tsx +30 -0
- package/templates/viteuno/src/components/ui/collapsible.tsx +11 -0
- package/templates/viteuno/src/components/ui/command.tsx +155 -0
- package/templates/viteuno/src/components/ui/context-menu.tsx +200 -0
- package/templates/viteuno/src/components/ui/dialog.tsx +128 -0
- package/templates/viteuno/src/components/ui/dropdown-menu.tsx +200 -0
- package/templates/viteuno/src/components/ui/hover-card.tsx +29 -0
- package/templates/viteuno/src/components/ui/index.ts +0 -0
- package/templates/viteuno/src/components/ui/input.tsx +27 -0
- package/templates/viteuno/src/components/ui/label.tsx +26 -0
- package/templates/viteuno/src/components/ui/menubar.tsx +236 -0
- package/templates/viteuno/src/components/ui/navigation-menu.tsx +130 -0
- package/templates/viteuno/src/components/ui/popover.tsx +31 -0
- package/templates/viteuno/src/components/ui/progress.tsx +28 -0
- package/templates/viteuno/src/components/ui/radio-group.tsx +44 -0
- package/templates/viteuno/src/components/ui/scroll-area.tsx +48 -0
- package/templates/viteuno/src/components/ui/select.tsx +120 -0
- package/templates/viteuno/src/components/ui/separator.tsx +31 -0
- package/templates/viteuno/src/components/ui/sheet.tsx +230 -0
- package/templates/viteuno/src/components/ui/skeleton.tsx +17 -0
- package/templates/viteuno/src/components/ui/slider.tsx +28 -0
- package/templates/viteuno/src/components/ui/switch.tsx +29 -0
- package/templates/viteuno/src/components/ui/table.tsx +114 -0
- package/templates/viteuno/src/components/ui/tabs.tsx +55 -0
- package/templates/viteuno/src/components/ui/textarea.tsx +26 -0
- package/templates/viteuno/src/components/ui/toast.tsx +129 -0
- package/templates/viteuno/src/components/ui/toaster.tsx +35 -0
- package/templates/viteuno/src/components/ui/toggle.tsx +45 -0
- package/templates/viteuno/src/components/ui/tooltip.tsx +30 -0
- package/templates/viteuno/src/components/ui/use-toast.ts +191 -0
- package/templates/{next/src/components/examples/calendar → viteuno/src/dashboard/components}/date-range-picker.tsx +5 -4
- package/templates/viteuno/src/dashboard/components/main-nav.tsx +38 -0
- package/templates/viteuno/src/dashboard/components/overview.tsx +78 -0
- package/templates/viteuno/src/dashboard/components/recent-sales.tsx +67 -0
- package/templates/viteuno/src/dashboard/components/search.tsx +13 -0
- package/templates/viteuno/src/dashboard/components/team-switcher.tsx +205 -0
- package/templates/viteuno/src/dashboard/components/user-nav.tsx +67 -0
- package/templates/viteuno/src/dashboard/page.tsx +140 -0
- package/templates/viteuno/src/lib/utils.ts +19 -0
- package/templates/viteuno/src/main.tsx +14 -0
- package/templates/viteuno/src/styles/globals.css +4 -0
- package/templates/viteuno/src/vite-env.d.ts +1 -0
- package/templates/viteuno/src-tauri/Cargo.lock +3701 -0
- package/templates/viteuno/src-tauri/Cargo.toml +36 -0
- package/templates/viteuno/src-tauri/build.rs +3 -0
- package/templates/viteuno/src-tauri/icons/128x128.png +0 -0
- package/templates/viteuno/src-tauri/icons/128x128@2x.png +0 -0
- package/templates/viteuno/src-tauri/icons/32x32.png +0 -0
- package/templates/viteuno/src-tauri/icons/Square107x107Logo.png +0 -0
- package/templates/viteuno/src-tauri/icons/Square142x142Logo.png +0 -0
- package/templates/viteuno/src-tauri/icons/Square150x150Logo.png +0 -0
- package/templates/viteuno/src-tauri/icons/Square284x284Logo.png +0 -0
- package/templates/viteuno/src-tauri/icons/Square30x30Logo.png +0 -0
- package/templates/viteuno/src-tauri/icons/Square310x310Logo.png +0 -0
- package/templates/viteuno/src-tauri/icons/Square44x44Logo.png +0 -0
- package/templates/viteuno/src-tauri/icons/Square71x71Logo.png +0 -0
- package/templates/viteuno/src-tauri/icons/Square89x89Logo.png +0 -0
- package/templates/viteuno/src-tauri/icons/StoreLogo.png +0 -0
- package/templates/viteuno/src-tauri/icons/android/mipmap-hdpi/ic_launcher.png +0 -0
- package/templates/viteuno/src-tauri/icons/android/mipmap-hdpi/ic_launcher_foreground.png +0 -0
- package/templates/viteuno/src-tauri/icons/android/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/templates/viteuno/src-tauri/icons/android/mipmap-mdpi/ic_launcher.png +0 -0
- package/templates/viteuno/src-tauri/icons/android/mipmap-mdpi/ic_launcher_foreground.png +0 -0
- package/templates/viteuno/src-tauri/icons/android/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/templates/viteuno/src-tauri/icons/android/mipmap-xhdpi/ic_launcher.png +0 -0
- package/templates/viteuno/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_foreground.png +0 -0
- package/templates/viteuno/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/templates/viteuno/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/templates/viteuno/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_foreground.png +0 -0
- package/templates/viteuno/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/templates/viteuno/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/templates/viteuno/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_foreground.png +0 -0
- package/templates/viteuno/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/templates/viteuno/src-tauri/icons/icon.icns +0 -0
- package/templates/viteuno/src-tauri/icons/icon.ico +0 -0
- package/templates/viteuno/src-tauri/icons/icon.png +0 -0
- package/templates/viteuno/src-tauri/icons/ios/AppIcon-20x20@1x.png +0 -0
- package/templates/viteuno/src-tauri/icons/ios/AppIcon-20x20@2x-1.png +0 -0
- package/templates/viteuno/src-tauri/icons/ios/AppIcon-20x20@2x.png +0 -0
- package/templates/viteuno/src-tauri/icons/ios/AppIcon-20x20@3x.png +0 -0
- package/templates/viteuno/src-tauri/icons/ios/AppIcon-29x29@1x.png +0 -0
- package/templates/viteuno/src-tauri/icons/ios/AppIcon-29x29@2x-1.png +0 -0
- package/templates/viteuno/src-tauri/icons/ios/AppIcon-29x29@2x.png +0 -0
- package/templates/viteuno/src-tauri/icons/ios/AppIcon-29x29@3x.png +0 -0
- package/templates/viteuno/src-tauri/icons/ios/AppIcon-40x40@1x.png +0 -0
- package/templates/viteuno/src-tauri/icons/ios/AppIcon-40x40@2x-1.png +0 -0
- package/templates/viteuno/src-tauri/icons/ios/AppIcon-40x40@2x.png +0 -0
- package/templates/viteuno/src-tauri/icons/ios/AppIcon-40x40@3x.png +0 -0
- package/templates/viteuno/src-tauri/icons/ios/AppIcon-512@2x.png +0 -0
- package/templates/viteuno/src-tauri/icons/ios/AppIcon-60x60@2x.png +0 -0
- package/templates/viteuno/src-tauri/icons/ios/AppIcon-60x60@3x.png +0 -0
- package/templates/viteuno/src-tauri/icons/ios/AppIcon-76x76@1x.png +0 -0
- package/templates/viteuno/src-tauri/icons/ios/AppIcon-76x76@2x.png +0 -0
- package/templates/viteuno/src-tauri/icons/ios/AppIcon-83.5x83.5@2x.png +0 -0
- package/templates/viteuno/src-tauri/src/main.rs +16 -0
- package/templates/viteuno/src-tauri/tauri.conf.json +79 -0
- package/templates/viteuno/tsconfig.json +26 -0
- package/templates/viteuno/tsconfig.node.json +9 -0
- package/templates/viteuno/uno.config.ts +111 -0
- package/templates/viteuno/vite.config.ts +33 -0
- package/templates/next/src/app/examples/cards/styles.css +0 -63
- package/templates/next/src/app/examples/music/styles.css +0 -65
- package/templates/next/src/app/examples/playground/components/icons.tsx +0 -153
- package/templates/next/src/app/examples/playground/styles.css +0 -65
- package/templates/next/src/components/examples/.eslintrc.json +0 -6
- package/templates/next/src/components/examples/accordion/demo.tsx +0 -32
- package/templates/next/src/components/examples/alert/demo.tsx +0 -15
- package/templates/next/src/components/examples/alert/destructive.tsx +0 -15
- package/templates/next/src/components/examples/alert-dialog/demo.tsx +0 -35
- package/templates/next/src/components/examples/aspect-ratio/demo.tsx +0 -16
- package/templates/next/src/components/examples/avatar/demo.tsx +0 -10
- package/templates/next/src/components/examples/badge/demo.tsx +0 -5
- package/templates/next/src/components/examples/badge/destructive.tsx +0 -5
- package/templates/next/src/components/examples/badge/outline.tsx +0 -5
- package/templates/next/src/components/examples/badge/secondary.tsx +0 -5
- package/templates/next/src/components/examples/button/as-child.tsx +0 -10
- package/templates/next/src/components/examples/button/demo.tsx +0 -5
- package/templates/next/src/components/examples/button/destructive.tsx +0 -5
- package/templates/next/src/components/examples/button/ghost.tsx +0 -5
- package/templates/next/src/components/examples/button/link.tsx +0 -5
- package/templates/next/src/components/examples/button/loading.tsx +0 -12
- package/templates/next/src/components/examples/button/outline.tsx +0 -5
- package/templates/next/src/components/examples/button/secondary.tsx +0 -5
- package/templates/next/src/components/examples/button/with-icon.tsx +0 -11
- package/templates/next/src/components/examples/calendar/date-picker.tsx +0 -43
- package/templates/next/src/components/examples/calendar/demo.tsx +0 -18
- package/templates/next/src/components/examples/calendar/react-hook-form.tsx +0 -101
- package/templates/next/src/components/examples/calendar/with-presets.tsx +0 -62
- package/templates/next/src/components/examples/card/demo.tsx +0 -79
- package/templates/next/src/components/examples/card/with-form.tsx +0 -59
- package/templates/next/src/components/examples/checkbox/demo.tsx +0 -17
- package/templates/next/src/components/examples/checkbox/disabled.tsx +0 -15
- package/templates/next/src/components/examples/checkbox/react-hook-form-multiple.tsx +0 -127
- package/templates/next/src/components/examples/checkbox/react-hook-form-single.tsx +0 -72
- package/templates/next/src/components/examples/checkbox/with-text.tsx +0 -22
- package/templates/next/src/components/examples/collapsible/demo.tsx +0 -46
- package/templates/next/src/components/examples/combobox/demo.tsx +0 -90
- package/templates/next/src/components/examples/combobox/dropdown-menu.tsx +0 -110
- package/templates/next/src/components/examples/combobox/popover.tsx +0 -124
- package/templates/next/src/components/examples/combobox/react-hook-form.tsx +0 -135
- package/templates/next/src/components/examples/command/combobox.tsx +0 -90
- package/templates/next/src/components/examples/command/demo.tsx +0 -62
- package/templates/next/src/components/examples/command/dialog.tsx +0 -86
- package/templates/next/src/components/examples/command/dropdown-menu.tsx +0 -110
- package/templates/next/src/components/examples/command/popover.tsx +0 -124
- package/templates/next/src/components/examples/context-menu/demo.tsx +0 -67
- package/templates/next/src/components/examples/data-table/columns.tsx +0 -110
- package/templates/next/src/components/examples/data-table/data-table.tsx +0 -185
- package/templates/next/src/components/examples/data-table/demo.tsx +0 -41
- package/templates/next/src/components/examples/date-picker/demo.tsx +0 -43
- package/templates/next/src/components/examples/date-picker/react-hook-form.tsx +0 -101
- package/templates/next/src/components/examples/date-picker/with-presets.tsx +0 -62
- package/templates/next/src/components/examples/dialog/demo.tsx +0 -47
- package/templates/next/src/components/examples/dropdown-menu/checkboxes.tsx +0 -53
- package/templates/next/src/components/examples/dropdown-menu/demo.tsx +0 -122
- package/templates/next/src/components/examples/dropdown-menu/radio-group.tsx +0 -37
- package/templates/next/src/components/examples/hover-card/demo.tsx +0 -39
- package/templates/next/src/components/examples/index.tsx +0 -213
- package/templates/next/src/components/examples/input/demo.tsx +0 -5
- package/templates/next/src/components/examples/input/disabled.tsx +0 -5
- package/templates/next/src/components/examples/input/file.tsx +0 -11
- package/templates/next/src/components/examples/input/react-hook-form.tsx +0 -65
- package/templates/next/src/components/examples/input/with-button.tsx +0 -11
- package/templates/next/src/components/examples/input/with-label.tsx +0 -11
- package/templates/next/src/components/examples/input/with-text.tsx +0 -12
- package/templates/next/src/components/examples/label/demo.tsx +0 -13
- package/templates/next/src/components/examples/menubar/demo.tsx +0 -107
- package/templates/next/src/components/examples/navigation-menu/demo.tsx +0 -144
- package/templates/next/src/components/examples/popover/demo.tsx +0 -67
- package/templates/next/src/components/examples/progress/demo.tsx +0 -16
- package/templates/next/src/components/examples/radio-group/demo.tsx +0 -21
- package/templates/next/src/components/examples/radio-group/react-hook-form.tsx +0 -88
- package/templates/next/src/components/examples/scroll-area/demo.tsx +0 -26
- package/templates/next/src/components/examples/select/demo.tsx +0 -31
- package/templates/next/src/components/examples/select/react-hook-form.tsx +0 -83
- package/templates/next/src/components/examples/separator/demo.tsx +0 -22
- package/templates/next/src/components/examples/sheet/demo.tsx +0 -47
- package/templates/next/src/components/examples/sheet/position.tsx +0 -75
- package/templates/next/src/components/examples/sheet/size.tsx +0 -75
- package/templates/next/src/components/examples/skeleton/demo.tsx +0 -13
- package/templates/next/src/components/examples/slider/demo.tsx +0 -16
- package/templates/next/src/components/examples/switch/demo.tsx +0 -11
- package/templates/next/src/components/examples/switch/react-hook-form.tsx +0 -101
- package/templates/next/src/components/examples/table/demo.tsx +0 -80
- package/templates/next/src/components/examples/tabs/demo.tsx +0 -69
- package/templates/next/src/components/examples/textarea/demo.tsx +0 -5
- package/templates/next/src/components/examples/textarea/disabled.tsx +0 -5
- package/templates/next/src/components/examples/textarea/react-hook-form.tsx +0 -77
- package/templates/next/src/components/examples/textarea/with-button.tsx +0 -11
- package/templates/next/src/components/examples/textarea/with-label.tsx +0 -11
- package/templates/next/src/components/examples/textarea/with-text.tsx +0 -14
- package/templates/next/src/components/examples/toast/demo.tsx +0 -26
- package/templates/next/src/components/examples/toast/destructive.tsx +0 -25
- package/templates/next/src/components/examples/toast/simple.tsx +0 -21
- package/templates/next/src/components/examples/toast/with-action.tsx +0 -24
- package/templates/next/src/components/examples/toast/with-title.tsx +0 -22
- package/templates/next/src/components/examples/toggle/demo.tsx +0 -11
- package/templates/next/src/components/examples/toggle/disabled.tsx +0 -11
- package/templates/next/src/components/examples/toggle/lg.tsx +0 -11
- package/templates/next/src/components/examples/toggle/outline.tsx +0 -11
- package/templates/next/src/components/examples/toggle/sm.tsx +0 -11
- package/templates/next/src/components/examples/toggle/with-text.tsx +0 -12
- package/templates/next/src/components/examples/tooltip/demo.tsx +0 -27
- package/templates/next/src/components/examples/typography/blockquote.tsx +0 -8
- package/templates/next/src/components/examples/typography/demo.tsx +0 -119
- package/templates/next/src/components/examples/typography/h1.tsx +0 -7
- package/templates/next/src/components/examples/typography/h2.tsx +0 -7
- package/templates/next/src/components/examples/typography/h3.tsx +0 -7
- package/templates/next/src/components/examples/typography/h4.tsx +0 -7
- package/templates/next/src/components/examples/typography/inline-code.tsx +0 -7
- package/templates/next/src/components/examples/typography/large.tsx +0 -5
- package/templates/next/src/components/examples/typography/lead.tsx +0 -8
- package/templates/next/src/components/examples/typography/list.tsx +0 -9
- package/templates/next/src/components/examples/typography/muted.tsx +0 -5
- package/templates/next/src/components/examples/typography/p.tsx +0 -8
- package/templates/next/src/components/examples/typography/small.tsx +0 -5
- package/templates/next/src/components/examples/typography/table.tsx +0 -44
- package/templates/sveltekit/static/favicon.ico +0 -0
- /package/templates/next/src/components/{react-hook-form → ui}/form.tsx +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Metadata } from "next"
|
|
2
|
-
import
|
|
2
|
+
import Image from "next/image"
|
|
3
|
+
import { CounterClockwiseClockIcon } from "@radix-ui/react-icons"
|
|
3
4
|
|
|
4
5
|
import { Button } from "@/components/ui/button"
|
|
5
6
|
import {
|
|
@@ -9,11 +10,15 @@ import {
|
|
|
9
10
|
} from "@/components/ui/hover-card"
|
|
10
11
|
import { Label } from "@/components/ui/label"
|
|
11
12
|
import { Separator } from "@/components/ui/separator"
|
|
12
|
-
import {
|
|
13
|
+
import {
|
|
14
|
+
Tabs,
|
|
15
|
+
TabsContent,
|
|
16
|
+
TabsList,
|
|
17
|
+
TabsTrigger,
|
|
18
|
+
} from "@/components/ui/tabs"
|
|
13
19
|
import { Textarea } from "@/components/ui/textarea"
|
|
14
20
|
|
|
15
21
|
import { CodeViewer } from "./components/code-viewer"
|
|
16
|
-
import { Icons } from "./components/icons"
|
|
17
22
|
import { MaxLengthSelector } from "./components/maxlength-selector"
|
|
18
23
|
import { ModelSelector } from "./components/model-selector"
|
|
19
24
|
import { PresetActions } from "./components/preset-actions"
|
|
@@ -24,8 +29,6 @@ import { TemperatureSelector } from "./components/temperature-selector"
|
|
|
24
29
|
import { TopPSelector } from "./components/top-p-selector"
|
|
25
30
|
import { models, types } from "./data/models"
|
|
26
31
|
import { presets } from "./data/presets"
|
|
27
|
-
import "./styles.css"
|
|
28
|
-
import Image from "next/image"
|
|
29
32
|
|
|
30
33
|
export const metadata: Metadata = {
|
|
31
34
|
title: "Playground",
|
|
@@ -34,127 +37,277 @@ export const metadata: Metadata = {
|
|
|
34
37
|
|
|
35
38
|
export default function PlaygroundPage() {
|
|
36
39
|
return (
|
|
37
|
-
|
|
38
|
-
<div className="
|
|
39
|
-
<
|
|
40
|
-
|
|
41
|
-
<
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
<
|
|
45
|
-
|
|
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 />
|
|
46
52
|
</div>
|
|
47
|
-
<PresetActions />
|
|
48
53
|
</div>
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
</
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
</
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
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>
|
|
103
235
|
</div>
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
<
|
|
107
|
-
|
|
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">
|
|
108
244
|
<Textarea
|
|
109
|
-
placeholder="
|
|
110
|
-
className="
|
|
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]"
|
|
111
247
|
/>
|
|
112
|
-
<div className="
|
|
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>
|
|
113
255
|
</div>
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
<
|
|
119
|
-
|
|
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>
|
|
120
273
|
</div>
|
|
121
|
-
</
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
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>
|
|
141
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>
|
|
142
303
|
</div>
|
|
143
|
-
<div className="mt-[21px] min-h-[400px] rounded-md border bg-muted lg:min-h-[700px]" />
|
|
144
|
-
</div>
|
|
145
|
-
<div className="flex items-center space-x-2">
|
|
146
|
-
<Button>Submit</Button>
|
|
147
|
-
<Button variant="secondary">
|
|
148
|
-
<span className="sr-only">Show history</span>
|
|
149
|
-
<History className="h-4 w-4" />
|
|
150
|
-
</Button>
|
|
151
304
|
</div>
|
|
152
|
-
</
|
|
153
|
-
</
|
|
305
|
+
</TabsContent>
|
|
306
|
+
</div>
|
|
154
307
|
</div>
|
|
155
308
|
</div>
|
|
156
|
-
</
|
|
157
|
-
</
|
|
158
|
-
|
|
309
|
+
</Tabs>
|
|
310
|
+
</div>
|
|
311
|
+
</>
|
|
159
312
|
)
|
|
160
313
|
}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ArrowDownIcon,
|
|
3
|
+
ArrowUpIcon,
|
|
4
|
+
CaretSortIcon,
|
|
5
|
+
EyeNoneIcon,
|
|
6
|
+
} from "@radix-ui/react-icons"
|
|
1
7
|
import { Column } from "@tanstack/react-table"
|
|
2
|
-
import { ChevronsUpDown, EyeOff, SortAsc, SortDesc } from "lucide-react"
|
|
3
8
|
|
|
4
9
|
import { cn } from "@/lib/utils"
|
|
5
10
|
import { Button } from "@/components/ui/button"
|
|
@@ -37,26 +42,26 @@ export function DataTableColumnHeader<TData, TValue>({
|
|
|
37
42
|
>
|
|
38
43
|
<span>{title}</span>
|
|
39
44
|
{column.getIsSorted() === "desc" ? (
|
|
40
|
-
<
|
|
45
|
+
<ArrowDownIcon className="ml-2 h-4 w-4" />
|
|
41
46
|
) : column.getIsSorted() === "asc" ? (
|
|
42
|
-
<
|
|
47
|
+
<ArrowUpIcon className="ml-2 h-4 w-4" />
|
|
43
48
|
) : (
|
|
44
|
-
<
|
|
49
|
+
<CaretSortIcon className="ml-2 h-4 w-4" />
|
|
45
50
|
)}
|
|
46
51
|
</Button>
|
|
47
52
|
</DropdownMenuTrigger>
|
|
48
53
|
<DropdownMenuContent align="start">
|
|
49
54
|
<DropdownMenuItem onClick={() => column.toggleSorting(false)}>
|
|
50
|
-
<
|
|
55
|
+
<ArrowUpIcon className="mr-2 h-3.5 w-3.5 text-muted-foreground/70" />
|
|
51
56
|
Asc
|
|
52
57
|
</DropdownMenuItem>
|
|
53
58
|
<DropdownMenuItem onClick={() => column.toggleSorting(true)}>
|
|
54
|
-
<
|
|
59
|
+
<ArrowDownIcon className="mr-2 h-3.5 w-3.5 text-muted-foreground/70" />
|
|
55
60
|
Desc
|
|
56
61
|
</DropdownMenuItem>
|
|
57
62
|
<DropdownMenuSeparator />
|
|
58
63
|
<DropdownMenuItem onClick={() => column.toggleVisibility(false)}>
|
|
59
|
-
<
|
|
64
|
+
<EyeNoneIcon className="mr-2 h-3.5 w-3.5 text-muted-foreground/70" />
|
|
60
65
|
Hide
|
|
61
66
|
</DropdownMenuItem>
|
|
62
67
|
</DropdownMenuContent>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react"
|
|
2
|
+
import { CheckIcon, PlusCircledIcon } from "@radix-ui/react-icons"
|
|
2
3
|
import { Column } from "@tanstack/react-table"
|
|
3
|
-
import { Check, LucideIcon, PlusCircle } from "lucide-react"
|
|
4
4
|
|
|
5
5
|
import { cn } from "@/lib/utils"
|
|
6
6
|
import { Badge } from "@/components/ui/badge"
|
|
@@ -27,7 +27,7 @@ interface DataTableFacetedFilter<TData, TValue> {
|
|
|
27
27
|
options: {
|
|
28
28
|
label: string
|
|
29
29
|
value: string
|
|
30
|
-
icon?:
|
|
30
|
+
icon?: React.ComponentType<{ className?: string }>
|
|
31
31
|
}[]
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -43,7 +43,7 @@ export function DataTableFacetedFilter<TData, TValue>({
|
|
|
43
43
|
<Popover>
|
|
44
44
|
<PopoverTrigger asChild>
|
|
45
45
|
<Button variant="outline" size="sm" className="h-8 border-dashed">
|
|
46
|
-
<
|
|
46
|
+
<PlusCircledIcon className="mr-2 h-4 w-4" />
|
|
47
47
|
{title}
|
|
48
48
|
{selectedValues?.size > 0 && (
|
|
49
49
|
<>
|
|
@@ -111,7 +111,7 @@ export function DataTableFacetedFilter<TData, TValue>({
|
|
|
111
111
|
: "opacity-50 [&_svg]:invisible"
|
|
112
112
|
)}
|
|
113
113
|
>
|
|
114
|
-
<
|
|
114
|
+
<CheckIcon className={cn("h-4 w-4")} />
|
|
115
115
|
</div>
|
|
116
116
|
{option.icon && (
|
|
117
117
|
<option.icon className="mr-2 h-4 w-4 text-muted-foreground" />
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Table } from "@tanstack/react-table"
|
|
2
1
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "
|
|
2
|
+
ChevronLeftIcon,
|
|
3
|
+
ChevronRightIcon,
|
|
4
|
+
DoubleArrowLeftIcon,
|
|
5
|
+
DoubleArrowRightIcon,
|
|
6
|
+
} from "@radix-ui/react-icons"
|
|
7
|
+
import { Table } from "@tanstack/react-table"
|
|
8
8
|
|
|
9
9
|
import { Button } from "@/components/ui/button"
|
|
10
10
|
import {
|
|
@@ -61,7 +61,7 @@ export function DataTablePagination<TData>({
|
|
|
61
61
|
disabled={!table.getCanPreviousPage()}
|
|
62
62
|
>
|
|
63
63
|
<span className="sr-only">Go to first page</span>
|
|
64
|
-
<
|
|
64
|
+
<DoubleArrowLeftIcon className="h-4 w-4" />
|
|
65
65
|
</Button>
|
|
66
66
|
<Button
|
|
67
67
|
variant="outline"
|
|
@@ -70,7 +70,7 @@ export function DataTablePagination<TData>({
|
|
|
70
70
|
disabled={!table.getCanPreviousPage()}
|
|
71
71
|
>
|
|
72
72
|
<span className="sr-only">Go to previous page</span>
|
|
73
|
-
<
|
|
73
|
+
<ChevronLeftIcon className="h-4 w-4" />
|
|
74
74
|
</Button>
|
|
75
75
|
<Button
|
|
76
76
|
variant="outline"
|
|
@@ -79,7 +79,7 @@ export function DataTablePagination<TData>({
|
|
|
79
79
|
disabled={!table.getCanNextPage()}
|
|
80
80
|
>
|
|
81
81
|
<span className="sr-only">Go to next page</span>
|
|
82
|
-
<
|
|
82
|
+
<ChevronRightIcon className="h-4 w-4" />
|
|
83
83
|
</Button>
|
|
84
84
|
<Button
|
|
85
85
|
variant="outline"
|
|
@@ -88,7 +88,7 @@ export function DataTablePagination<TData>({
|
|
|
88
88
|
disabled={!table.getCanNextPage()}
|
|
89
89
|
>
|
|
90
90
|
<span className="sr-only">Go to last page</span>
|
|
91
|
-
<
|
|
91
|
+
<DoubleArrowRightIcon className="h-4 w-4" />
|
|
92
92
|
</Button>
|
|
93
93
|
</div>
|
|
94
94
|
</div>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
+
import { DotsHorizontalIcon } from "@radix-ui/react-icons"
|
|
3
4
|
import { Row } from "@tanstack/react-table"
|
|
4
|
-
import { Copy, MoreHorizontal, Pen, Star, Tags, Trash } from "lucide-react"
|
|
5
5
|
|
|
6
6
|
import { Button } from "@/components/ui/button"
|
|
7
7
|
import {
|
|
@@ -37,29 +37,17 @@ export function DataTableRowActions<TData>({
|
|
|
37
37
|
variant="ghost"
|
|
38
38
|
className="flex h-8 w-8 p-0 data-[state=open]:bg-muted"
|
|
39
39
|
>
|
|
40
|
-
<
|
|
40
|
+
<DotsHorizontalIcon className="h-4 w-4" />
|
|
41
41
|
<span className="sr-only">Open menu</span>
|
|
42
42
|
</Button>
|
|
43
43
|
</DropdownMenuTrigger>
|
|
44
44
|
<DropdownMenuContent align="end" className="w-[160px]">
|
|
45
|
-
<DropdownMenuItem>
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</DropdownMenuItem>
|
|
49
|
-
<DropdownMenuItem>
|
|
50
|
-
<Copy className="mr-2 h-3.5 w-3.5 text-muted-foreground/70" />
|
|
51
|
-
Make a copy
|
|
52
|
-
</DropdownMenuItem>
|
|
53
|
-
<DropdownMenuItem>
|
|
54
|
-
<Star className="mr-2 h-3.5 w-3.5 text-muted-foreground/70" />
|
|
55
|
-
Favorite
|
|
56
|
-
</DropdownMenuItem>
|
|
45
|
+
<DropdownMenuItem>Edit</DropdownMenuItem>
|
|
46
|
+
<DropdownMenuItem>Make a copy</DropdownMenuItem>
|
|
47
|
+
<DropdownMenuItem>Favorite</DropdownMenuItem>
|
|
57
48
|
<DropdownMenuSeparator />
|
|
58
49
|
<DropdownMenuSub>
|
|
59
|
-
<DropdownMenuSubTrigger>
|
|
60
|
-
<Tags className="mr-2 h-3.5 w-3.5 text-muted-foreground/70" />
|
|
61
|
-
Labels
|
|
62
|
-
</DropdownMenuSubTrigger>
|
|
50
|
+
<DropdownMenuSubTrigger>Labels</DropdownMenuSubTrigger>
|
|
63
51
|
<DropdownMenuSubContent>
|
|
64
52
|
<DropdownMenuRadioGroup value={task.label}>
|
|
65
53
|
{labels.map((label) => (
|
|
@@ -72,7 +60,6 @@ export function DataTableRowActions<TData>({
|
|
|
72
60
|
</DropdownMenuSub>
|
|
73
61
|
<DropdownMenuSeparator />
|
|
74
62
|
<DropdownMenuItem>
|
|
75
|
-
<Trash className="mr-2 h-3.5 w-3.5 text-muted-foreground/70" />
|
|
76
63
|
Delete
|
|
77
64
|
<DropdownMenuShortcut>⌘⌫</DropdownMenuShortcut>
|
|
78
65
|
</DropdownMenuItem>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
+
import { Cross2Icon } from "@radix-ui/react-icons"
|
|
3
4
|
import { Table } from "@tanstack/react-table"
|
|
4
|
-
import { X } from "lucide-react"
|
|
5
5
|
|
|
6
6
|
import { Button } from "@/components/ui/button"
|
|
7
7
|
import { Input } from "@/components/ui/input"
|
|
@@ -17,9 +17,7 @@ interface DataTableToolbarProps<TData> {
|
|
|
17
17
|
export function DataTableToolbar<TData>({
|
|
18
18
|
table,
|
|
19
19
|
}: DataTableToolbarProps<TData>) {
|
|
20
|
-
const isFiltered =
|
|
21
|
-
table.getPreFilteredRowModel().rows.length >
|
|
22
|
-
table.getFilteredRowModel().rows.length
|
|
20
|
+
const isFiltered = table.getState().columnFilters.length > 0
|
|
23
21
|
|
|
24
22
|
return (
|
|
25
23
|
<div className="flex items-center justify-between">
|
|
@@ -53,7 +51,7 @@ export function DataTableToolbar<TData>({
|
|
|
53
51
|
className="h-8 px-2 lg:px-3"
|
|
54
52
|
>
|
|
55
53
|
Reset
|
|
56
|
-
<
|
|
54
|
+
<Cross2Icon className="ml-2 h-4 w-4" />
|
|
57
55
|
</Button>
|
|
58
56
|
)}
|
|
59
57
|
</div>
|