create-tauri-ui 0.1.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 +41 -0
- package/dist/index.mjs +53 -0
- package/index.js +3 -0
- package/package.json +62 -0
- package/templates/next/.env +1 -0
- package/templates/next/.github/workflows/release.yml +108 -0
- package/templates/next/.vscode/extensions.json +3 -0
- package/templates/next/LICENSE +21 -0
- package/templates/next/README.md +82 -0
- package/templates/next/app-icon.png +0 -0
- package/templates/next/next-env.d.ts +5 -0
- package/templates/next/next.config.js +17 -0
- package/templates/next/package.json +82 -0
- package/templates/next/pnpm-lock.yaml +4318 -0
- package/templates/next/postcss.config.js +6 -0
- package/templates/next/prettier.config.js +35 -0
- 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 +71 -0
- package/templates/next/src/app/examples/authentication/page.tsx +80 -0
- package/templates/next/src/app/examples/cards/components/cookie-settings.tsx +60 -0
- package/templates/next/src/app/examples/cards/components/create-account.tsx +60 -0
- package/templates/next/src/app/examples/cards/components/date-picker.tsx +18 -0
- package/templates/next/src/app/examples/cards/components/github-card.tsx +81 -0
- package/templates/next/src/app/examples/cards/components/notifications.tsx +51 -0
- package/templates/next/src/app/examples/cards/components/payment-method.tsx +117 -0
- package/templates/next/src/app/examples/cards/components/report-an-issue.tsx +82 -0
- package/templates/next/src/app/examples/cards/components/share-document.tsx +116 -0
- package/templates/next/src/app/examples/cards/components/team-members.tsx +147 -0
- package/templates/next/src/app/examples/cards/page.tsx +75 -0
- package/templates/next/src/app/examples/cards/styles.css +63 -0
- package/templates/next/src/app/examples/dashboard/components/date-range-picker.tsx +66 -0
- package/templates/next/src/app/examples/dashboard/components/main-nav.tsx +38 -0
- package/templates/next/src/app/examples/dashboard/components/overview.tsx +78 -0
- package/templates/next/src/app/examples/dashboard/components/recent-sales.tsx +67 -0
- package/templates/next/src/app/examples/dashboard/components/search.tsx +13 -0
- package/templates/next/src/app/examples/dashboard/components/team-switcher.tsx +205 -0
- package/templates/next/src/app/examples/dashboard/components/user-nav.tsx +67 -0
- package/templates/next/src/app/examples/dashboard/page.tsx +147 -0
- package/templates/next/src/app/examples/forms/account/account-form.tsx +219 -0
- package/templates/next/src/app/examples/forms/account/page.tsx +18 -0
- package/templates/next/src/app/examples/forms/appearance/appearance-form.tsx +164 -0
- package/templates/next/src/app/examples/forms/appearance/page.tsx +18 -0
- package/templates/next/src/app/examples/forms/components/sidebar-nav.tsx +43 -0
- package/templates/next/src/app/examples/forms/display/display-form.tsx +132 -0
- package/templates/next/src/app/examples/forms/display/page.tsx +17 -0
- package/templates/next/src/app/examples/forms/layout.tsx +57 -0
- package/templates/next/src/app/examples/forms/notifications/notifications-form.tsx +221 -0
- package/templates/next/src/app/examples/forms/notifications/page.tsx +18 -0
- package/templates/next/src/app/examples/forms/page.tsx +17 -0
- package/templates/next/src/app/examples/forms/profile-form.tsx +190 -0
- package/templates/next/src/app/examples/layout.tsx +7 -0
- package/templates/next/src/app/examples/music/components/album-artwork.tsx +84 -0
- package/templates/next/src/app/examples/music/components/menu.tsx +178 -0
- package/templates/next/src/app/examples/music/components/podcast-empty-placeholder.tsx +53 -0
- package/templates/next/src/app/examples/music/components/sidebar.tsx +100 -0
- package/templates/next/src/app/examples/music/data/albums.ts +71 -0
- package/templates/next/src/app/examples/music/data/playlists.ts +16 -0
- package/templates/next/src/app/examples/music/page.tsx +134 -0
- package/templates/next/src/app/examples/music/styles.css +65 -0
- package/templates/next/src/app/examples/playground/components/code-viewer.tsx +89 -0
- package/templates/next/src/app/examples/playground/components/icons.tsx +153 -0
- package/templates/next/src/app/examples/playground/components/maxlength-selector.tsx +55 -0
- package/templates/next/src/app/examples/playground/components/model-selector.tsx +163 -0
- package/templates/next/src/app/examples/playground/components/preset-actions.tsx +124 -0
- package/templates/next/src/app/examples/playground/components/preset-save.tsx +44 -0
- package/templates/next/src/app/examples/playground/components/preset-selector.tsx +82 -0
- package/templates/next/src/app/examples/playground/components/preset-share.tsx +46 -0
- package/templates/next/src/app/examples/playground/components/temperature-selector.tsx +57 -0
- package/templates/next/src/app/examples/playground/components/top-p-selector.tsx +54 -0
- package/templates/next/src/app/examples/playground/data/models.ts +62 -0
- package/templates/next/src/app/examples/playground/data/presets.ts +47 -0
- package/templates/next/src/app/examples/playground/page.tsx +160 -0
- package/templates/next/src/app/examples/playground/styles.css +65 -0
- package/templates/next/src/app/examples/tasks/components/columns.tsx +120 -0
- package/templates/next/src/app/examples/tasks/components/data-table-column-header.tsx +66 -0
- package/templates/next/src/app/examples/tasks/components/data-table-faceted-filter.tsx +147 -0
- package/templates/next/src/app/examples/tasks/components/data-table-pagination.tsx +97 -0
- package/templates/next/src/app/examples/tasks/components/data-table-row-actions.tsx +82 -0
- package/templates/next/src/app/examples/tasks/components/data-table-toolbar.tsx +63 -0
- package/templates/next/src/app/examples/tasks/components/data-table-view-options.tsx +59 -0
- package/templates/next/src/app/examples/tasks/components/data-table.tsx +126 -0
- package/templates/next/src/app/examples/tasks/components/user-nav.tsx +67 -0
- package/templates/next/src/app/examples/tasks/data/data.tsx +71 -0
- package/templates/next/src/app/examples/tasks/data/schema.ts +13 -0
- package/templates/next/src/app/examples/tasks/data/seed.ts +20 -0
- package/templates/next/src/app/examples/tasks/data/tasks.json +702 -0
- package/templates/next/src/app/examples/tasks/page.tsx +47 -0
- package/templates/next/src/app/layout.tsx +43 -0
- package/templates/next/src/app/page.tsx +5 -0
- package/templates/next/src/assets/Inter.var.woff2 +0 -0
- package/templates/next/src/assets/logo.png +0 -0
- package/templates/next/src/components/examples/.eslintrc.json +6 -0
- package/templates/next/src/components/examples/accordion/demo.tsx +32 -0
- package/templates/next/src/components/examples/alert/demo.tsx +15 -0
- package/templates/next/src/components/examples/alert/destructive.tsx +15 -0
- package/templates/next/src/components/examples/alert-dialog/demo.tsx +35 -0
- package/templates/next/src/components/examples/aspect-ratio/demo.tsx +16 -0
- package/templates/next/src/components/examples/avatar/demo.tsx +10 -0
- package/templates/next/src/components/examples/badge/demo.tsx +5 -0
- package/templates/next/src/components/examples/badge/destructive.tsx +5 -0
- package/templates/next/src/components/examples/badge/outline.tsx +5 -0
- package/templates/next/src/components/examples/badge/secondary.tsx +5 -0
- package/templates/next/src/components/examples/button/as-child.tsx +10 -0
- package/templates/next/src/components/examples/button/demo.tsx +5 -0
- package/templates/next/src/components/examples/button/destructive.tsx +5 -0
- package/templates/next/src/components/examples/button/ghost.tsx +5 -0
- package/templates/next/src/components/examples/button/link.tsx +5 -0
- package/templates/next/src/components/examples/button/loading.tsx +12 -0
- package/templates/next/src/components/examples/button/outline.tsx +5 -0
- package/templates/next/src/components/examples/button/secondary.tsx +5 -0
- package/templates/next/src/components/examples/button/with-icon.tsx +11 -0
- package/templates/next/src/components/examples/calendar/date-picker.tsx +43 -0
- package/templates/next/src/components/examples/calendar/date-range-picker.tsx +65 -0
- package/templates/next/src/components/examples/calendar/demo.tsx +18 -0
- package/templates/next/src/components/examples/calendar/react-hook-form.tsx +101 -0
- package/templates/next/src/components/examples/calendar/with-presets.tsx +62 -0
- package/templates/next/src/components/examples/card/demo.tsx +79 -0
- package/templates/next/src/components/examples/card/with-form.tsx +59 -0
- package/templates/next/src/components/examples/checkbox/demo.tsx +17 -0
- package/templates/next/src/components/examples/checkbox/disabled.tsx +15 -0
- package/templates/next/src/components/examples/checkbox/react-hook-form-multiple.tsx +127 -0
- package/templates/next/src/components/examples/checkbox/react-hook-form-single.tsx +72 -0
- package/templates/next/src/components/examples/checkbox/with-text.tsx +22 -0
- package/templates/next/src/components/examples/collapsible/demo.tsx +46 -0
- package/templates/next/src/components/examples/combobox/demo.tsx +90 -0
- package/templates/next/src/components/examples/combobox/dropdown-menu.tsx +110 -0
- package/templates/next/src/components/examples/combobox/popover.tsx +124 -0
- package/templates/next/src/components/examples/combobox/react-hook-form.tsx +135 -0
- package/templates/next/src/components/examples/command/combobox.tsx +90 -0
- package/templates/next/src/components/examples/command/demo.tsx +62 -0
- package/templates/next/src/components/examples/command/dialog.tsx +86 -0
- package/templates/next/src/components/examples/command/dropdown-menu.tsx +110 -0
- package/templates/next/src/components/examples/command/popover.tsx +124 -0
- package/templates/next/src/components/examples/context-menu/demo.tsx +67 -0
- package/templates/next/src/components/examples/data-table/columns.tsx +110 -0
- package/templates/next/src/components/examples/data-table/data-table.tsx +185 -0
- package/templates/next/src/components/examples/data-table/demo.tsx +41 -0
- package/templates/next/src/components/examples/date-picker/demo.tsx +43 -0
- package/templates/next/src/components/examples/date-picker/react-hook-form.tsx +101 -0
- package/templates/next/src/components/examples/date-picker/with-presets.tsx +62 -0
- package/templates/next/src/components/examples/date-picker/with-range.tsx +65 -0
- package/templates/next/src/components/examples/dialog/demo.tsx +47 -0
- package/templates/next/src/components/examples/dropdown-menu/checkboxes.tsx +53 -0
- package/templates/next/src/components/examples/dropdown-menu/demo.tsx +122 -0
- package/templates/next/src/components/examples/dropdown-menu/radio-group.tsx +37 -0
- package/templates/next/src/components/examples/hover-card/demo.tsx +39 -0
- package/templates/next/src/components/examples/index.tsx +213 -0
- package/templates/next/src/components/examples/input/demo.tsx +5 -0
- package/templates/next/src/components/examples/input/disabled.tsx +5 -0
- package/templates/next/src/components/examples/input/file.tsx +11 -0
- package/templates/next/src/components/examples/input/react-hook-form.tsx +65 -0
- package/templates/next/src/components/examples/input/with-button.tsx +11 -0
- package/templates/next/src/components/examples/input/with-label.tsx +11 -0
- package/templates/next/src/components/examples/input/with-text.tsx +12 -0
- package/templates/next/src/components/examples/label/demo.tsx +13 -0
- package/templates/next/src/components/examples/menubar/demo.tsx +107 -0
- package/templates/next/src/components/examples/navigation-menu/demo.tsx +144 -0
- package/templates/next/src/components/examples/popover/demo.tsx +67 -0
- package/templates/next/src/components/examples/progress/demo.tsx +16 -0
- package/templates/next/src/components/examples/radio-group/demo.tsx +21 -0
- package/templates/next/src/components/examples/radio-group/react-hook-form.tsx +88 -0
- package/templates/next/src/components/examples/scroll-area/demo.tsx +26 -0
- package/templates/next/src/components/examples/select/demo.tsx +31 -0
- package/templates/next/src/components/examples/select/react-hook-form.tsx +83 -0
- package/templates/next/src/components/examples/separator/demo.tsx +22 -0
- package/templates/next/src/components/examples/sheet/demo.tsx +47 -0
- package/templates/next/src/components/examples/sheet/position.tsx +75 -0
- package/templates/next/src/components/examples/sheet/size.tsx +75 -0
- package/templates/next/src/components/examples/skeleton/demo.tsx +13 -0
- package/templates/next/src/components/examples/slider/demo.tsx +16 -0
- package/templates/next/src/components/examples/switch/demo.tsx +11 -0
- package/templates/next/src/components/examples/switch/react-hook-form.tsx +101 -0
- package/templates/next/src/components/examples/table/demo.tsx +80 -0
- package/templates/next/src/components/examples/tabs/demo.tsx +69 -0
- package/templates/next/src/components/examples/textarea/demo.tsx +5 -0
- package/templates/next/src/components/examples/textarea/disabled.tsx +5 -0
- package/templates/next/src/components/examples/textarea/react-hook-form.tsx +77 -0
- package/templates/next/src/components/examples/textarea/with-button.tsx +11 -0
- package/templates/next/src/components/examples/textarea/with-label.tsx +11 -0
- package/templates/next/src/components/examples/textarea/with-text.tsx +14 -0
- package/templates/next/src/components/examples/toast/demo.tsx +26 -0
- package/templates/next/src/components/examples/toast/destructive.tsx +25 -0
- package/templates/next/src/components/examples/toast/simple.tsx +21 -0
- package/templates/next/src/components/examples/toast/with-action.tsx +24 -0
- package/templates/next/src/components/examples/toast/with-title.tsx +22 -0
- package/templates/next/src/components/examples/toggle/demo.tsx +11 -0
- package/templates/next/src/components/examples/toggle/disabled.tsx +11 -0
- package/templates/next/src/components/examples/toggle/lg.tsx +11 -0
- package/templates/next/src/components/examples/toggle/outline.tsx +11 -0
- package/templates/next/src/components/examples/toggle/sm.tsx +11 -0
- package/templates/next/src/components/examples/toggle/with-text.tsx +12 -0
- package/templates/next/src/components/examples/tooltip/demo.tsx +27 -0
- package/templates/next/src/components/examples/typography/blockquote.tsx +8 -0
- package/templates/next/src/components/examples/typography/demo.tsx +119 -0
- package/templates/next/src/components/examples/typography/h1.tsx +7 -0
- package/templates/next/src/components/examples/typography/h2.tsx +7 -0
- package/templates/next/src/components/examples/typography/h3.tsx +7 -0
- package/templates/next/src/components/examples/typography/h4.tsx +7 -0
- package/templates/next/src/components/examples/typography/inline-code.tsx +7 -0
- package/templates/next/src/components/examples/typography/large.tsx +5 -0
- package/templates/next/src/components/examples/typography/lead.tsx +8 -0
- package/templates/next/src/components/examples/typography/list.tsx +9 -0
- package/templates/next/src/components/examples/typography/muted.tsx +5 -0
- package/templates/next/src/components/examples/typography/p.tsx +8 -0
- package/templates/next/src/components/examples/typography/small.tsx +5 -0
- package/templates/next/src/components/examples/typography/table.tsx +44 -0
- package/templates/next/src/components/examples-nav.tsx +70 -0
- package/templates/next/src/components/greeting.tsx +21 -0
- package/templates/next/src/components/icons.tsx +154 -0
- package/templates/next/src/components/menu-mode-toggle.tsx +46 -0
- package/templates/next/src/components/menu.tsx +268 -0
- package/templates/next/src/components/mode-toggle.tsx +43 -0
- package/templates/next/src/components/page-header.tsx +50 -0
- package/templates/next/src/components/react-hook-form/form.tsx +176 -0
- package/templates/next/src/components/style-switcher.tsx +19 -0
- package/templates/next/src/components/tailwind-indicator.tsx +18 -0
- package/templates/next/src/components/theme-provider.tsx +9 -0
- package/templates/next/src/components/ui/accordion.tsx +60 -0
- package/templates/next/src/components/ui/alert-dialog.tsx +150 -0
- package/templates/next/src/components/ui/alert.tsx +61 -0
- package/templates/next/src/components/ui/aspect-ratio.tsx +7 -0
- package/templates/next/src/components/ui/avatar.tsx +50 -0
- package/templates/next/src/components/ui/badge.tsx +36 -0
- package/templates/next/src/components/ui/button.tsx +51 -0
- package/templates/next/src/components/ui/calendar.tsx +64 -0
- package/templates/next/src/components/ui/card.tsx +81 -0
- package/templates/next/src/components/ui/checkbox.tsx +30 -0
- package/templates/next/src/components/ui/collapsible.tsx +11 -0
- package/templates/next/src/components/ui/command.tsx +155 -0
- package/templates/next/src/components/ui/context-menu.tsx +200 -0
- package/templates/next/src/components/ui/dialog.tsx +128 -0
- package/templates/next/src/components/ui/dropdown-menu.tsx +200 -0
- package/templates/next/src/components/ui/hover-card.tsx +29 -0
- package/templates/next/src/components/ui/input.tsx +27 -0
- package/templates/next/src/components/ui/label.tsx +26 -0
- package/templates/next/src/components/ui/menubar.tsx +236 -0
- package/templates/next/src/components/ui/navigation-menu.tsx +130 -0
- package/templates/next/src/components/ui/popover.tsx +31 -0
- package/templates/next/src/components/ui/progress.tsx +28 -0
- package/templates/next/src/components/ui/radio-group.tsx +44 -0
- package/templates/next/src/components/ui/scroll-area.tsx +48 -0
- package/templates/next/src/components/ui/select.tsx +120 -0
- package/templates/next/src/components/ui/separator.tsx +31 -0
- package/templates/next/src/components/ui/sheet.tsx +230 -0
- package/templates/next/src/components/ui/skeleton.tsx +17 -0
- package/templates/next/src/components/ui/slider.tsx +28 -0
- package/templates/next/src/components/ui/switch.tsx +29 -0
- package/templates/next/src/components/ui/table.tsx +114 -0
- package/templates/next/src/components/ui/tabs.tsx +55 -0
- package/templates/next/src/components/ui/textarea.tsx +26 -0
- package/templates/next/src/components/ui/toast.tsx +129 -0
- package/templates/next/src/components/ui/toaster.tsx +35 -0
- package/templates/next/src/components/ui/toggle.tsx +45 -0
- package/templates/next/src/components/ui/tooltip.tsx +30 -0
- package/templates/next/src/components/ui/use-toast.ts +191 -0
- package/templates/next/src/data/albums.ts +71 -0
- package/templates/next/src/data/playlists.ts +16 -0
- package/templates/next/src/hooks/use-lock-body.ts +12 -0
- package/templates/next/src/hooks/use-mounted.ts +11 -0
- package/templates/next/src/hooks/use-mutation-observer.ts +20 -0
- package/templates/next/src/lib/fonts.ts +11 -0
- package/templates/next/src/lib/utils.ts +19 -0
- package/templates/next/src/styles/globals.css +124 -0
- package/templates/next/src-tauri/Cargo.lock +3636 -0
- package/templates/next/src-tauri/Cargo.toml +36 -0
- package/templates/next/src-tauri/build.rs +3 -0
- 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 -0
- package/templates/next/src-tauri/tauri.conf.json +63 -0
- package/templates/next/tailwind.config.js +80 -0
- package/templates/next/tsconfig.json +35 -0
- package/templates/vite/.github/workflows/release.yml +108 -0
- package/templates/vite/.vscode/extensions.json +3 -0
- package/templates/vite/README.md +7 -0
- package/templates/vite/app-icon.png +0 -0
- package/templates/vite/index.html +16 -0
- package/templates/vite/package.json +75 -0
- package/templates/vite/pnpm-lock.yaml +4569 -0
- package/templates/vite/postcss.config.js +6 -0
- package/templates/vite/prettier.config.cjs +35 -0
- package/templates/vite/src/App.tsx +39 -0
- package/templates/vite/src/aa +34 -0
- package/templates/vite/src/assets/Inter.var.woff2 +0 -0
- package/templates/vite/src/components/icons.tsx +154 -0
- package/templates/vite/src/components/menu-mode-toggle.tsx +46 -0
- package/templates/vite/src/components/menu.tsx +232 -0
- package/templates/vite/src/components/tailwind-indicator.tsx +18 -0
- package/templates/vite/src/components/theme-provider.tsx +9 -0
- package/templates/vite/src/components/ui/accordion.tsx +60 -0
- package/templates/vite/src/components/ui/alert-dialog.tsx +150 -0
- package/templates/vite/src/components/ui/alert.tsx +61 -0
- package/templates/vite/src/components/ui/aspect-ratio.tsx +7 -0
- package/templates/vite/src/components/ui/avatar.tsx +50 -0
- package/templates/vite/src/components/ui/badge.tsx +36 -0
- package/templates/vite/src/components/ui/button.tsx +51 -0
- package/templates/vite/src/components/ui/calendar.tsx +64 -0
- package/templates/vite/src/components/ui/card.tsx +81 -0
- package/templates/vite/src/components/ui/checkbox.tsx +30 -0
- package/templates/vite/src/components/ui/collapsible.tsx +11 -0
- package/templates/vite/src/components/ui/command.tsx +155 -0
- package/templates/vite/src/components/ui/context-menu.tsx +200 -0
- package/templates/vite/src/components/ui/dialog.tsx +128 -0
- package/templates/vite/src/components/ui/dropdown-menu.tsx +200 -0
- package/templates/vite/src/components/ui/hover-card.tsx +29 -0
- package/templates/vite/src/components/ui/input.tsx +27 -0
- package/templates/vite/src/components/ui/label.tsx +26 -0
- package/templates/vite/src/components/ui/menubar.tsx +236 -0
- package/templates/vite/src/components/ui/navigation-menu.tsx +130 -0
- package/templates/vite/src/components/ui/popover.tsx +31 -0
- package/templates/vite/src/components/ui/progress.tsx +28 -0
- package/templates/vite/src/components/ui/radio-group.tsx +44 -0
- package/templates/vite/src/components/ui/scroll-area.tsx +48 -0
- package/templates/vite/src/components/ui/select.tsx +120 -0
- package/templates/vite/src/components/ui/separator.tsx +31 -0
- package/templates/vite/src/components/ui/sheet.tsx +230 -0
- package/templates/vite/src/components/ui/skeleton.tsx +17 -0
- package/templates/vite/src/components/ui/slider.tsx +28 -0
- package/templates/vite/src/components/ui/switch.tsx +29 -0
- package/templates/vite/src/components/ui/table.tsx +114 -0
- package/templates/vite/src/components/ui/tabs.tsx +55 -0
- package/templates/vite/src/components/ui/textarea.tsx +26 -0
- package/templates/vite/src/components/ui/toast.tsx +129 -0
- package/templates/vite/src/components/ui/toaster.tsx +35 -0
- package/templates/vite/src/components/ui/toggle.tsx +45 -0
- package/templates/vite/src/components/ui/tooltip.tsx +30 -0
- package/templates/vite/src/components/ui/use-toast.ts +191 -0
- package/templates/vite/src/dashboard/components/date-range-picker.tsx +66 -0
- package/templates/vite/src/dashboard/components/main-nav.tsx +38 -0
- package/templates/vite/src/dashboard/components/overview.tsx +78 -0
- package/templates/vite/src/dashboard/components/recent-sales.tsx +67 -0
- package/templates/vite/src/dashboard/components/search.tsx +13 -0
- package/templates/vite/src/dashboard/components/team-switcher.tsx +205 -0
- package/templates/vite/src/dashboard/components/user-nav.tsx +67 -0
- package/templates/vite/src/dashboard/page.tsx +140 -0
- package/templates/vite/src/lib/utils.ts +19 -0
- package/templates/vite/src/main.tsx +10 -0
- package/templates/vite/src/styles/globals.css +124 -0
- package/templates/vite/src/vite-env.d.ts +1 -0
- package/templates/vite/src-tauri/Cargo.lock +3636 -0
- package/templates/vite/src-tauri/Cargo.toml +33 -0
- package/templates/vite/src-tauri/build.rs +3 -0
- 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 +16 -0
- package/templates/vite/src-tauri/tauri.conf.json +63 -0
- package/templates/vite/tailwind.config.js +78 -0
- package/templates/vite/tsconfig.json +26 -0
- package/templates/vite/tsconfig.node.json +9 -0
- package/templates/vite/vite.config.ts +33 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { Globe, Mic } from "lucide-react"
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
Menubar,
|
|
5
|
+
MenubarCheckboxItem,
|
|
6
|
+
MenubarContent,
|
|
7
|
+
MenubarItem,
|
|
8
|
+
MenubarLabel,
|
|
9
|
+
MenubarMenu,
|
|
10
|
+
MenubarRadioGroup,
|
|
11
|
+
MenubarRadioItem,
|
|
12
|
+
MenubarSeparator,
|
|
13
|
+
MenubarShortcut,
|
|
14
|
+
MenubarSub,
|
|
15
|
+
MenubarSubContent,
|
|
16
|
+
MenubarSubTrigger,
|
|
17
|
+
MenubarTrigger,
|
|
18
|
+
} from "@/components/ui/menubar"
|
|
19
|
+
|
|
20
|
+
export function Menu() {
|
|
21
|
+
return (
|
|
22
|
+
<Menubar className="rounded-none border-b border-none px-2 lg:px-4">
|
|
23
|
+
<MenubarMenu>
|
|
24
|
+
<MenubarTrigger className="font-bold">Music</MenubarTrigger>
|
|
25
|
+
<MenubarContent>
|
|
26
|
+
<MenubarItem>About Music</MenubarItem>
|
|
27
|
+
<MenubarSeparator />
|
|
28
|
+
<MenubarItem>
|
|
29
|
+
Preferences... <MenubarShortcut>⌘,</MenubarShortcut>
|
|
30
|
+
</MenubarItem>
|
|
31
|
+
<MenubarSeparator />
|
|
32
|
+
<MenubarItem>
|
|
33
|
+
Hide Music... <MenubarShortcut>⌘H</MenubarShortcut>
|
|
34
|
+
</MenubarItem>
|
|
35
|
+
<MenubarItem>
|
|
36
|
+
Hide Others... <MenubarShortcut>⇧⌘H</MenubarShortcut>
|
|
37
|
+
</MenubarItem>
|
|
38
|
+
<MenubarShortcut />
|
|
39
|
+
<MenubarItem>
|
|
40
|
+
Quit Music <MenubarShortcut>⌘Q</MenubarShortcut>
|
|
41
|
+
</MenubarItem>
|
|
42
|
+
</MenubarContent>
|
|
43
|
+
</MenubarMenu>
|
|
44
|
+
<MenubarMenu>
|
|
45
|
+
<MenubarTrigger className="relative">File</MenubarTrigger>
|
|
46
|
+
<MenubarContent>
|
|
47
|
+
<MenubarSub>
|
|
48
|
+
<MenubarSubTrigger>New</MenubarSubTrigger>
|
|
49
|
+
<MenubarSubContent className="w-[230px]">
|
|
50
|
+
<MenubarItem>
|
|
51
|
+
Playlist <MenubarShortcut>⌘N</MenubarShortcut>
|
|
52
|
+
</MenubarItem>
|
|
53
|
+
<MenubarItem disabled>
|
|
54
|
+
Playlist from Selection <MenubarShortcut>⇧⌘N</MenubarShortcut>
|
|
55
|
+
</MenubarItem>
|
|
56
|
+
<MenubarItem>
|
|
57
|
+
Smart Playlist... <MenubarShortcut>⌥⌘N</MenubarShortcut>
|
|
58
|
+
</MenubarItem>
|
|
59
|
+
<MenubarItem>Playlist Folder</MenubarItem>
|
|
60
|
+
<MenubarItem disabled>Genius Playlist</MenubarItem>
|
|
61
|
+
</MenubarSubContent>
|
|
62
|
+
</MenubarSub>
|
|
63
|
+
<MenubarItem>
|
|
64
|
+
Open Stream URL... <MenubarShortcut>⌘U</MenubarShortcut>
|
|
65
|
+
</MenubarItem>
|
|
66
|
+
<MenubarItem>
|
|
67
|
+
Close Window <MenubarShortcut>⌘W</MenubarShortcut>
|
|
68
|
+
</MenubarItem>
|
|
69
|
+
<MenubarSeparator />
|
|
70
|
+
<MenubarSub>
|
|
71
|
+
<MenubarSubTrigger>Library</MenubarSubTrigger>
|
|
72
|
+
<MenubarSubContent>
|
|
73
|
+
<MenubarItem>Update Cloud Library</MenubarItem>
|
|
74
|
+
<MenubarItem>Update Genius</MenubarItem>
|
|
75
|
+
<MenubarSeparator />
|
|
76
|
+
<MenubarItem>Organize Library...</MenubarItem>
|
|
77
|
+
<MenubarItem>Export Library...</MenubarItem>
|
|
78
|
+
<MenubarSeparator />
|
|
79
|
+
<MenubarItem>Import Playlist...</MenubarItem>
|
|
80
|
+
<MenubarItem disabled>Export Playlist...</MenubarItem>
|
|
81
|
+
<MenubarItem>Show Duplicate Items</MenubarItem>
|
|
82
|
+
<MenubarSeparator />
|
|
83
|
+
<MenubarItem>Get Album Artwork</MenubarItem>
|
|
84
|
+
<MenubarItem disabled>Get Track Names</MenubarItem>
|
|
85
|
+
</MenubarSubContent>
|
|
86
|
+
</MenubarSub>
|
|
87
|
+
<MenubarItem>
|
|
88
|
+
Import... <MenubarShortcut>⌘O</MenubarShortcut>
|
|
89
|
+
</MenubarItem>
|
|
90
|
+
<MenubarItem disabled>Burn Playlist to Disc...</MenubarItem>
|
|
91
|
+
<MenubarSeparator />
|
|
92
|
+
<MenubarItem>
|
|
93
|
+
Show in Finder <MenubarShortcut>⇧⌘R</MenubarShortcut>{" "}
|
|
94
|
+
</MenubarItem>
|
|
95
|
+
<MenubarItem>Convert</MenubarItem>
|
|
96
|
+
<MenubarSeparator />
|
|
97
|
+
<MenubarItem>Page Setup...</MenubarItem>
|
|
98
|
+
<MenubarItem disabled>
|
|
99
|
+
Print... <MenubarShortcut>⌘P</MenubarShortcut>
|
|
100
|
+
</MenubarItem>
|
|
101
|
+
</MenubarContent>
|
|
102
|
+
</MenubarMenu>
|
|
103
|
+
<MenubarMenu>
|
|
104
|
+
<MenubarTrigger>Edit</MenubarTrigger>
|
|
105
|
+
<MenubarContent>
|
|
106
|
+
<MenubarItem disabled>
|
|
107
|
+
Undo <MenubarShortcut>⌘Z</MenubarShortcut>
|
|
108
|
+
</MenubarItem>
|
|
109
|
+
<MenubarItem disabled>
|
|
110
|
+
Redo <MenubarShortcut>⇧⌘Z</MenubarShortcut>
|
|
111
|
+
</MenubarItem>
|
|
112
|
+
<MenubarSeparator />
|
|
113
|
+
<MenubarItem disabled>
|
|
114
|
+
Cut <MenubarShortcut>⌘X</MenubarShortcut>
|
|
115
|
+
</MenubarItem>
|
|
116
|
+
<MenubarItem disabled>
|
|
117
|
+
Copy <MenubarShortcut>⌘C</MenubarShortcut>
|
|
118
|
+
</MenubarItem>
|
|
119
|
+
<MenubarItem disabled>
|
|
120
|
+
Paste <MenubarShortcut>⌘V</MenubarShortcut>
|
|
121
|
+
</MenubarItem>
|
|
122
|
+
<MenubarSeparator />
|
|
123
|
+
<MenubarItem>
|
|
124
|
+
Select All <MenubarShortcut>⌘A</MenubarShortcut>
|
|
125
|
+
</MenubarItem>
|
|
126
|
+
<MenubarItem disabled>
|
|
127
|
+
Deselect All <MenubarShortcut>⇧⌘A</MenubarShortcut>
|
|
128
|
+
</MenubarItem>
|
|
129
|
+
<MenubarSeparator />
|
|
130
|
+
<MenubarItem>
|
|
131
|
+
Smart Dictation...{" "}
|
|
132
|
+
<MenubarShortcut>
|
|
133
|
+
<Mic className="h-4 w-4" />
|
|
134
|
+
</MenubarShortcut>
|
|
135
|
+
</MenubarItem>
|
|
136
|
+
<MenubarItem>
|
|
137
|
+
Emoji & Symbols{" "}
|
|
138
|
+
<MenubarShortcut>
|
|
139
|
+
<Globe className="h-4 w-4" />
|
|
140
|
+
</MenubarShortcut>
|
|
141
|
+
</MenubarItem>
|
|
142
|
+
</MenubarContent>
|
|
143
|
+
</MenubarMenu>
|
|
144
|
+
<MenubarMenu>
|
|
145
|
+
<MenubarTrigger>View</MenubarTrigger>
|
|
146
|
+
<MenubarContent>
|
|
147
|
+
<MenubarCheckboxItem>Show Playing Next</MenubarCheckboxItem>
|
|
148
|
+
<MenubarCheckboxItem checked>Show Lyrics</MenubarCheckboxItem>
|
|
149
|
+
<MenubarSeparator />
|
|
150
|
+
<MenubarItem inset disabled>
|
|
151
|
+
Show Status Bar
|
|
152
|
+
</MenubarItem>
|
|
153
|
+
<MenubarSeparator />
|
|
154
|
+
<MenubarItem inset>Hide Sidebar</MenubarItem>
|
|
155
|
+
<MenubarItem disabled inset>
|
|
156
|
+
Enter Full Screen
|
|
157
|
+
</MenubarItem>
|
|
158
|
+
</MenubarContent>
|
|
159
|
+
</MenubarMenu>
|
|
160
|
+
<MenubarMenu>
|
|
161
|
+
<MenubarTrigger className="hidden md:block">Account</MenubarTrigger>
|
|
162
|
+
<MenubarContent forceMount>
|
|
163
|
+
<MenubarLabel inset>Switch Account</MenubarLabel>
|
|
164
|
+
<MenubarSeparator />
|
|
165
|
+
<MenubarRadioGroup value="benoit">
|
|
166
|
+
<MenubarRadioItem value="andy">Andy</MenubarRadioItem>
|
|
167
|
+
<MenubarRadioItem value="benoit">Benoit</MenubarRadioItem>
|
|
168
|
+
<MenubarRadioItem value="Luis">Luis</MenubarRadioItem>
|
|
169
|
+
</MenubarRadioGroup>
|
|
170
|
+
<MenubarSeparator />
|
|
171
|
+
<MenubarItem inset>Manage Famliy...</MenubarItem>
|
|
172
|
+
<MenubarSeparator />
|
|
173
|
+
<MenubarItem inset>Add Account...</MenubarItem>
|
|
174
|
+
</MenubarContent>
|
|
175
|
+
</MenubarMenu>
|
|
176
|
+
</Menubar>
|
|
177
|
+
)
|
|
178
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Plus, Podcast } from "lucide-react"
|
|
2
|
+
|
|
3
|
+
import { Button } from "@/components/ui/button"
|
|
4
|
+
import {
|
|
5
|
+
Dialog,
|
|
6
|
+
DialogContent,
|
|
7
|
+
DialogDescription,
|
|
8
|
+
DialogFooter,
|
|
9
|
+
DialogHeader,
|
|
10
|
+
DialogTitle,
|
|
11
|
+
DialogTrigger,
|
|
12
|
+
} from "@/components/ui/dialog"
|
|
13
|
+
import { Input } from "@/components/ui/input"
|
|
14
|
+
import { Label } from "@/components/ui/label"
|
|
15
|
+
|
|
16
|
+
export function PodcastEmptyPlaceholder() {
|
|
17
|
+
return (
|
|
18
|
+
<div className="flex h-[450px] shrink-0 items-center justify-center rounded-md border border-dashed">
|
|
19
|
+
<div className="mx-auto flex max-w-[420px] flex-col items-center justify-center text-center">
|
|
20
|
+
<Podcast className="h-10 w-10 text-muted-foreground" />
|
|
21
|
+
<h3 className="mt-4 text-lg font-semibold">No episodes added</h3>
|
|
22
|
+
<p className="mb-4 mt-2 text-sm text-muted-foreground">
|
|
23
|
+
You have not added any podcasts. Add one below.
|
|
24
|
+
</p>
|
|
25
|
+
<Dialog>
|
|
26
|
+
<DialogTrigger>
|
|
27
|
+
<Button size="sm" className="relative">
|
|
28
|
+
<Plus className="mr-2 h-4 w-4" />
|
|
29
|
+
Add Podcast
|
|
30
|
+
</Button>
|
|
31
|
+
</DialogTrigger>
|
|
32
|
+
<DialogContent>
|
|
33
|
+
<DialogHeader>
|
|
34
|
+
<DialogTitle>Add Podcast</DialogTitle>
|
|
35
|
+
<DialogDescription>
|
|
36
|
+
Copy and paste the podcast feed URL to import.
|
|
37
|
+
</DialogDescription>
|
|
38
|
+
</DialogHeader>
|
|
39
|
+
<div className="grid gap-4 py-4">
|
|
40
|
+
<div className="grid gap-2">
|
|
41
|
+
<Label htmlFor="url">Podcast URL</Label>
|
|
42
|
+
<Input id="url" placeholder="https://example.com/feed.xml" />
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
<DialogFooter>
|
|
46
|
+
<Button>Import Podcast</Button>
|
|
47
|
+
</DialogFooter>
|
|
48
|
+
</DialogContent>
|
|
49
|
+
</Dialog>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
)
|
|
53
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import {
|
|
2
|
+
LayoutGrid,
|
|
3
|
+
Library,
|
|
4
|
+
ListMusic,
|
|
5
|
+
Mic2,
|
|
6
|
+
Music,
|
|
7
|
+
Music2,
|
|
8
|
+
PlayCircle,
|
|
9
|
+
Radio,
|
|
10
|
+
User,
|
|
11
|
+
} from "lucide-react"
|
|
12
|
+
|
|
13
|
+
import { cn } from "@/lib/utils"
|
|
14
|
+
import { Button } from "@/components/ui/button"
|
|
15
|
+
import { ScrollArea } from "@/components/ui/scroll-area"
|
|
16
|
+
|
|
17
|
+
import { Playlist } from "../data/playlists"
|
|
18
|
+
|
|
19
|
+
interface SidebarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
20
|
+
playlists: Playlist[]
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function Sidebar({ className, playlists }: SidebarProps) {
|
|
24
|
+
return (
|
|
25
|
+
<div className={cn("h-screen pb-12", className)}>
|
|
26
|
+
<div className="space-y-4 py-4">
|
|
27
|
+
<div className="px-4 py-2">
|
|
28
|
+
<h2 className="mb-2 px-2 text-lg font-semibold tracking-tight">
|
|
29
|
+
Discover
|
|
30
|
+
</h2>
|
|
31
|
+
<div className="space-y-1">
|
|
32
|
+
<Button
|
|
33
|
+
variant="secondary"
|
|
34
|
+
size="sm"
|
|
35
|
+
className="w-full justify-start"
|
|
36
|
+
>
|
|
37
|
+
<PlayCircle className="mr-2 h-4 w-4" />
|
|
38
|
+
Listen Now
|
|
39
|
+
</Button>
|
|
40
|
+
<Button variant="ghost" size="sm" className="w-full justify-start">
|
|
41
|
+
<LayoutGrid className="mr-2 h-4 w-4" />
|
|
42
|
+
Browse
|
|
43
|
+
</Button>
|
|
44
|
+
<Button variant="ghost" size="sm" className="w-full justify-start">
|
|
45
|
+
<Radio className="mr-2 h-4 w-4" />
|
|
46
|
+
Radio
|
|
47
|
+
</Button>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
<div className="px-4 py-2">
|
|
51
|
+
<h2 className="mb-2 px-2 text-lg font-semibold tracking-tight">
|
|
52
|
+
Library
|
|
53
|
+
</h2>
|
|
54
|
+
<div className="space-y-1">
|
|
55
|
+
<Button variant="ghost" size="sm" className="w-full justify-start">
|
|
56
|
+
<ListMusic className="mr-2 h-4 w-4" />
|
|
57
|
+
Playlists
|
|
58
|
+
</Button>
|
|
59
|
+
<Button variant="ghost" size="sm" className="w-full justify-start">
|
|
60
|
+
<Music2 className="mr-2 h-4 w-4" />
|
|
61
|
+
Songs
|
|
62
|
+
</Button>
|
|
63
|
+
<Button variant="ghost" size="sm" className="w-full justify-start">
|
|
64
|
+
<User className="mr-2 h-4 w-4" />
|
|
65
|
+
Made for You
|
|
66
|
+
</Button>
|
|
67
|
+
<Button variant="ghost" size="sm" className="w-full justify-start">
|
|
68
|
+
<Mic2 className="mr-2 h-4 w-4" />
|
|
69
|
+
Artists
|
|
70
|
+
</Button>
|
|
71
|
+
<Button variant="ghost" size="sm" className="w-full justify-start">
|
|
72
|
+
<Library className="mr-2 h-4 w-4" />
|
|
73
|
+
Albums
|
|
74
|
+
</Button>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
<div className="py-2">
|
|
78
|
+
<h2 className="relative px-6 text-lg font-semibold tracking-tight">
|
|
79
|
+
Playlists
|
|
80
|
+
</h2>
|
|
81
|
+
<ScrollArea className="h-[300px] px-2">
|
|
82
|
+
<div className="space-y-1 p-2">
|
|
83
|
+
{playlists?.map((playlist) => (
|
|
84
|
+
<Button
|
|
85
|
+
key={playlist}
|
|
86
|
+
variant="ghost"
|
|
87
|
+
size="sm"
|
|
88
|
+
className="w-full justify-start font-normal"
|
|
89
|
+
>
|
|
90
|
+
<ListMusic className="mr-2 h-4 w-4" />
|
|
91
|
+
{playlist}
|
|
92
|
+
</Button>
|
|
93
|
+
))}
|
|
94
|
+
</div>
|
|
95
|
+
</ScrollArea>
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
)
|
|
100
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
export interface Album {
|
|
2
|
+
name: string
|
|
3
|
+
artist: string
|
|
4
|
+
cover: string
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export const listenNowAlbums: Album[] = [
|
|
8
|
+
{
|
|
9
|
+
name: "React Rendezvous",
|
|
10
|
+
artist: "Ethan Byte",
|
|
11
|
+
cover:
|
|
12
|
+
"https://images.unsplash.com/photo-1611348586804-61bf6c080437?w=300&dpr=2&q=80",
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
name: "Async Awakenings",
|
|
16
|
+
artist: "Nina Netcode",
|
|
17
|
+
cover:
|
|
18
|
+
"https://images.unsplash.com/photo-1468817814611-b7edf94b5d60?w=300&dpr=2&q=80",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: "The Art of Reusability",
|
|
22
|
+
artist: "Lena Logic",
|
|
23
|
+
cover:
|
|
24
|
+
"https://images.unsplash.com/photo-1528143358888-6d3c7f67bd5d?w=300&dpr=2&q=80",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: "Stateful Symphony",
|
|
28
|
+
artist: "Beth Binary",
|
|
29
|
+
cover:
|
|
30
|
+
"https://images.unsplash.com/photo-1490300472339-79e4adc6be4a?w=300&dpr=2&q=80",
|
|
31
|
+
},
|
|
32
|
+
]
|
|
33
|
+
|
|
34
|
+
export const madeForYouAlbums: Album[] = [
|
|
35
|
+
{
|
|
36
|
+
name: "Thinking Components",
|
|
37
|
+
artist: "Lena Logic",
|
|
38
|
+
cover:
|
|
39
|
+
"https://images.unsplash.com/photo-1615247001958-f4bc92fa6a4a?w=300&dpr=2&q=80",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: "Functional Fury",
|
|
43
|
+
artist: "Beth Binary",
|
|
44
|
+
cover:
|
|
45
|
+
"https://images.unsplash.com/photo-1513745405825-efaf9a49315f?w=300&dpr=2&q=80",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: "React Rendezvous",
|
|
49
|
+
artist: "Ethan Byte",
|
|
50
|
+
cover:
|
|
51
|
+
"https://images.unsplash.com/photo-1614113489855-66422ad300a4?w=300&dpr=2&q=80",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: "Stateful Symphony",
|
|
55
|
+
artist: "Beth Binary",
|
|
56
|
+
cover:
|
|
57
|
+
"https://images.unsplash.com/photo-1446185250204-f94591f7d702?w=300&dpr=2&q=80",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: "Async Awakenings",
|
|
61
|
+
artist: "Nina Netcode",
|
|
62
|
+
cover:
|
|
63
|
+
"https://images.unsplash.com/photo-1468817814611-b7edf94b5d60?w=300&dpr=2&q=80",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: "The Art of Reusability",
|
|
67
|
+
artist: "Lena Logic",
|
|
68
|
+
cover:
|
|
69
|
+
"https://images.unsplash.com/photo-1490300472339-79e4adc6be4a?w=300&dpr=2&q=80",
|
|
70
|
+
},
|
|
71
|
+
]
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type Playlist = (typeof playlists)[number]
|
|
2
|
+
|
|
3
|
+
export const playlists = [
|
|
4
|
+
"Recently Added",
|
|
5
|
+
"Recently Played",
|
|
6
|
+
"Top Songs",
|
|
7
|
+
"Top Albums",
|
|
8
|
+
"Top Artists",
|
|
9
|
+
"Logic Discography",
|
|
10
|
+
"Bedtime Beats",
|
|
11
|
+
"Feeling Happy",
|
|
12
|
+
"I miss Y2K Pop",
|
|
13
|
+
"Runtober",
|
|
14
|
+
"Mellow Days",
|
|
15
|
+
"Eminem Essentials",
|
|
16
|
+
]
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { Metadata } from "next"
|
|
2
|
+
|
|
3
|
+
import { ScrollArea, ScrollBar } from "@/components/ui/scroll-area"
|
|
4
|
+
import { Separator } from "@/components/ui/separator"
|
|
5
|
+
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"
|
|
6
|
+
|
|
7
|
+
import { AlbumArtwork } from "./components/album-artwork"
|
|
8
|
+
import { Menu } from "./components/menu"
|
|
9
|
+
import { PodcastEmptyPlaceholder } from "./components/podcast-empty-placeholder"
|
|
10
|
+
import { Sidebar } from "./components/sidebar"
|
|
11
|
+
import { listenNowAlbums, madeForYouAlbums } from "./data/albums"
|
|
12
|
+
import { playlists } from "./data/playlists"
|
|
13
|
+
import "./styles.css"
|
|
14
|
+
import Image from "next/image"
|
|
15
|
+
import { PlusCircle } from "lucide-react"
|
|
16
|
+
|
|
17
|
+
import { Button } from "@/components/ui/button"
|
|
18
|
+
|
|
19
|
+
export const metadata: Metadata = {
|
|
20
|
+
title: "Music App",
|
|
21
|
+
description: "Example music app using the components.",
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export default function MusicPage() {
|
|
25
|
+
return (
|
|
26
|
+
<div>
|
|
27
|
+
{/* <Menu /> */}
|
|
28
|
+
<div className="bg-background">
|
|
29
|
+
<div className="grid lg:grid-cols-5">
|
|
30
|
+
<Sidebar playlists={playlists} className="hidden lg:block" />
|
|
31
|
+
<div className="col-span-3 lg:col-span-4 lg:border-l">
|
|
32
|
+
<div className="h-full px-4 py-6 lg:px-8">
|
|
33
|
+
<Tabs defaultValue="music" className="h-full space-y-6">
|
|
34
|
+
<div className="space-between flex items-center">
|
|
35
|
+
<TabsList>
|
|
36
|
+
<TabsTrigger value="music" className="relative">
|
|
37
|
+
Music
|
|
38
|
+
</TabsTrigger>
|
|
39
|
+
<TabsTrigger value="podcasts">Podcasts</TabsTrigger>
|
|
40
|
+
<TabsTrigger value="live" disabled>
|
|
41
|
+
Live
|
|
42
|
+
</TabsTrigger>
|
|
43
|
+
</TabsList>
|
|
44
|
+
<div className="ml-auto mr-4">
|
|
45
|
+
<Button>
|
|
46
|
+
<PlusCircle className="mr-2 h-4 w-4" />
|
|
47
|
+
Add music
|
|
48
|
+
</Button>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
<TabsContent
|
|
52
|
+
value="music"
|
|
53
|
+
className="border-none p-0 outline-none"
|
|
54
|
+
>
|
|
55
|
+
<div className="flex items-center justify-between">
|
|
56
|
+
<div className="space-y-1">
|
|
57
|
+
<h2 className="text-2xl font-semibold tracking-tight">
|
|
58
|
+
Listen Now
|
|
59
|
+
</h2>
|
|
60
|
+
<p className="text-sm text-muted-foreground">
|
|
61
|
+
Top picks for you. Updated daily.
|
|
62
|
+
</p>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
<Separator className="my-4" />
|
|
66
|
+
<div className="relative">
|
|
67
|
+
<ScrollArea>
|
|
68
|
+
<div className="flex space-x-4 pb-4">
|
|
69
|
+
{listenNowAlbums.map((album) => (
|
|
70
|
+
<AlbumArtwork
|
|
71
|
+
key={album.name}
|
|
72
|
+
album={album}
|
|
73
|
+
className="w-[250px]"
|
|
74
|
+
aspectRatio="portrait"
|
|
75
|
+
width={250}
|
|
76
|
+
height={330}
|
|
77
|
+
/>
|
|
78
|
+
))}
|
|
79
|
+
</div>
|
|
80
|
+
<ScrollBar orientation="horizontal" />
|
|
81
|
+
</ScrollArea>
|
|
82
|
+
</div>
|
|
83
|
+
<div className="mt-6 space-y-1">
|
|
84
|
+
<h2 className="text-2xl font-semibold tracking-tight">
|
|
85
|
+
Made for You
|
|
86
|
+
</h2>
|
|
87
|
+
<p className="text-sm text-muted-foreground">
|
|
88
|
+
Your personal playlists. Updated daily.
|
|
89
|
+
</p>
|
|
90
|
+
</div>
|
|
91
|
+
<Separator className="my-4" />
|
|
92
|
+
<div className="relative">
|
|
93
|
+
<ScrollArea>
|
|
94
|
+
<div className="flex space-x-4 pb-4">
|
|
95
|
+
{madeForYouAlbums.map((album) => (
|
|
96
|
+
<AlbumArtwork
|
|
97
|
+
key={album.name}
|
|
98
|
+
album={album}
|
|
99
|
+
className="w-[150px]"
|
|
100
|
+
aspectRatio="square"
|
|
101
|
+
width={150}
|
|
102
|
+
height={150}
|
|
103
|
+
/>
|
|
104
|
+
))}
|
|
105
|
+
</div>
|
|
106
|
+
<ScrollBar orientation="horizontal" />
|
|
107
|
+
</ScrollArea>
|
|
108
|
+
</div>
|
|
109
|
+
</TabsContent>
|
|
110
|
+
<TabsContent
|
|
111
|
+
value="podcasts"
|
|
112
|
+
className="h-full flex-col border-none p-0 data-[state=active]:flex"
|
|
113
|
+
>
|
|
114
|
+
<div className="flex items-center justify-between">
|
|
115
|
+
<div className="space-y-1">
|
|
116
|
+
<h2 className="text-2xl font-semibold tracking-tight">
|
|
117
|
+
New Episodes
|
|
118
|
+
</h2>
|
|
119
|
+
<p className="text-sm text-muted-foreground">
|
|
120
|
+
Your favorite podcasts. Updated daily.
|
|
121
|
+
</p>
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
<Separator className="my-4" />
|
|
125
|
+
<PodcastEmptyPlaceholder />
|
|
126
|
+
</TabsContent>
|
|
127
|
+
</Tabs>
|
|
128
|
+
</div>
|
|
129
|
+
</div>
|
|
130
|
+
</div>
|
|
131
|
+
</div>
|
|
132
|
+
</div>
|
|
133
|
+
)
|
|
134
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
[data-section="music"] {
|
|
2
|
+
--background: 0 0% 100%;
|
|
3
|
+
--foreground: 222.2 47.4% 11.2%;
|
|
4
|
+
|
|
5
|
+
--muted: 243 5% 96%;
|
|
6
|
+
--muted-foreground: 215.4 16.3% 46.9%;
|
|
7
|
+
|
|
8
|
+
--popover: 0 0% 100%;
|
|
9
|
+
--popover-foreground: 222.2 47.4% 11.2%;
|
|
10
|
+
|
|
11
|
+
--border: 214.3 31.8% 91.4%;
|
|
12
|
+
--input: 214.3 31.8% 91.4%;
|
|
13
|
+
|
|
14
|
+
--card: 0 0% 100%;
|
|
15
|
+
--card-foreground: 222.2 47.4% 11.2%;
|
|
16
|
+
|
|
17
|
+
--primary: 349 89% 60%;
|
|
18
|
+
--primary-foreground: 0 0% 100%;
|
|
19
|
+
|
|
20
|
+
--secondary: 243 11% 4%;
|
|
21
|
+
--secondary-foreground: 0 0% 98%;
|
|
22
|
+
|
|
23
|
+
--accent: 243 11% 4%;
|
|
24
|
+
--accent-foreground: 0 0% 100%;
|
|
25
|
+
|
|
26
|
+
--destructive: 0 100% 50%;
|
|
27
|
+
--destructive-foreground: 210 40% 98%;
|
|
28
|
+
|
|
29
|
+
--ring: 349 89% 60%;
|
|
30
|
+
|
|
31
|
+
--radius: 0.5rem;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.dark [data-section="music"] {
|
|
35
|
+
--background: 224 71% 4%;
|
|
36
|
+
--foreground: 213 31% 91%;
|
|
37
|
+
|
|
38
|
+
--muted: 223 47% 11%;
|
|
39
|
+
--muted-foreground: 215.4 16.3% 56.9%;
|
|
40
|
+
|
|
41
|
+
--accent: 216 34% 17%;
|
|
42
|
+
--accent-foreground: 210 40% 98%;
|
|
43
|
+
|
|
44
|
+
--popover: 224 71% 4%;
|
|
45
|
+
--popover-foreground: 215 20.2% 65.1%;
|
|
46
|
+
|
|
47
|
+
--border: 216 34% 17%;
|
|
48
|
+
--input: 216 34% 17%;
|
|
49
|
+
|
|
50
|
+
--card: 224 71% 4%;
|
|
51
|
+
--card-foreground: 213 31% 91%;
|
|
52
|
+
|
|
53
|
+
--primary: 349 89% 60%;
|
|
54
|
+
--primary-foreground: 0 0% 100%;
|
|
55
|
+
|
|
56
|
+
--secondary: 222.2 47.4% 11.2%;
|
|
57
|
+
--secondary-foreground: 210 40% 98%;
|
|
58
|
+
|
|
59
|
+
--destructive: 0 63% 31%;
|
|
60
|
+
--destructive-foreground: 210 40% 98%;
|
|
61
|
+
|
|
62
|
+
--ring: 216 34% 17%;
|
|
63
|
+
|
|
64
|
+
--radius: 0.5rem;
|
|
65
|
+
}
|