chore: add Dashboard06 and Dashboard07
This commit is contained in:
parent
f696f17599
commit
eacabcf78b
|
|
@ -1165,6 +1165,20 @@ export const Index = {
|
||||||
component: () => import("../src/lib/registry/default/block/Dashboard05.vue").then((m) => m.default),
|
component: () => import("../src/lib/registry/default/block/Dashboard05.vue").then((m) => m.default),
|
||||||
files: ["../src/lib/registry/default/block/Dashboard05.vue"],
|
files: ["../src/lib/registry/default/block/Dashboard05.vue"],
|
||||||
},
|
},
|
||||||
|
"Dashboard06": {
|
||||||
|
name: "Dashboard06",
|
||||||
|
type: "components:block",
|
||||||
|
registryDependencies: ["badge","button","card","dropdown-menu","input","breadcrumb","sheet","pagination","progress","separator","table","tabs","tooltip","checkbox"],
|
||||||
|
component: () => import("../src/lib/registry/default/block/Dashboard05.vue").then((m) => m.default),
|
||||||
|
files: ["../src/lib/registry/default/block/Dashboard06.vue"],
|
||||||
|
},
|
||||||
|
"Dashboard07": {
|
||||||
|
name: "Dashboard07",
|
||||||
|
type: "components:block",
|
||||||
|
registryDependencies: ["badge","button","card","dropdown-menu","input","breadcrumb","sheet","pagination","progress","separator","table","tabs","tooltip","checkbox"],
|
||||||
|
component: () => import("../src/lib/registry/default/block/Dashboard07.vue").then((m) => m.default),
|
||||||
|
files: ["../src/lib/registry/default/block/Dashboard07.vue"],
|
||||||
|
},
|
||||||
}, "new-york": {
|
}, "new-york": {
|
||||||
"AccordionDemo": {
|
"AccordionDemo": {
|
||||||
name: "AccordionDemo",
|
name: "AccordionDemo",
|
||||||
|
|
@ -2328,5 +2342,19 @@ export const Index = {
|
||||||
component: () => import("../src/lib/registry/new-york/block/Dashboard05.vue").then((m) => m.default),
|
component: () => import("../src/lib/registry/new-york/block/Dashboard05.vue").then((m) => m.default),
|
||||||
files: ["../src/lib/registry/new-york/block/Dashboard05.vue"],
|
files: ["../src/lib/registry/new-york/block/Dashboard05.vue"],
|
||||||
},
|
},
|
||||||
|
"Dashboard06": {
|
||||||
|
name: "Dashboard06",
|
||||||
|
type: "components:block",
|
||||||
|
registryDependencies: ["badge","button","card","dropdown-menu","input","breadcrumb","sheet","pagination","progress","separator","table","tabs","tooltip","checkbox"],
|
||||||
|
component: () => import("../src/lib/registry/new-york/block/Dashboard06.vue").then((m) => m.default),
|
||||||
|
files: ["../src/lib/registry/new-york/block/Dashboard06.vue"],
|
||||||
|
},
|
||||||
|
"Dashboard07": {
|
||||||
|
name: "Dashboard07",
|
||||||
|
type: "components:block",
|
||||||
|
registryDependencies: ["badge","button","card","dropdown-menu","input","breadcrumb","sheet","pagination","progress","separator","table","tabs","tooltip","checkbox"],
|
||||||
|
component: () => import("../src/lib/registry/new-york/block/Dashboard07.vue").then((m) => m.default),
|
||||||
|
files: ["../src/lib/registry/new-york/block/Dashboard07.vue"],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
627
apps/www/src/lib/registry/default/block/Dashboard06.vue
Normal file
627
apps/www/src/lib/registry/default/block/Dashboard06.vue
Normal file
|
|
@ -0,0 +1,627 @@
|
||||||
|
<script lang="ts">
|
||||||
|
export const description = 'A products page.'
|
||||||
|
export const iframeHeight = '780px'
|
||||||
|
export const containerClass = 'w-full h-full'
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script setup lang="ts">
|
||||||
|
import {
|
||||||
|
CircleUser,
|
||||||
|
File,
|
||||||
|
Home,
|
||||||
|
LineChart,
|
||||||
|
ListFilter,
|
||||||
|
MoreHorizontal,
|
||||||
|
Package,
|
||||||
|
Package2,
|
||||||
|
PanelLeft,
|
||||||
|
PlusCircle,
|
||||||
|
Search,
|
||||||
|
Settings,
|
||||||
|
ShoppingCart,
|
||||||
|
Users2,
|
||||||
|
} from 'lucide-vue-next'
|
||||||
|
|
||||||
|
import { Badge } from '@/lib/registry/default/ui/badge'
|
||||||
|
import { Button } from '@/lib/registry/default/ui/button'
|
||||||
|
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from '@/lib/registry/default/ui/card'
|
||||||
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from '@/lib/registry/default/ui/dropdown-menu'
|
||||||
|
import { Input } from '@/lib/registry/default/ui/input'
|
||||||
|
import {
|
||||||
|
Breadcrumb,
|
||||||
|
BreadcrumbItem,
|
||||||
|
BreadcrumbLink,
|
||||||
|
BreadcrumbList,
|
||||||
|
BreadcrumbPage,
|
||||||
|
BreadcrumbSeparator,
|
||||||
|
} from '@/lib/registry/default/ui/breadcrumb'
|
||||||
|
import { Sheet, SheetContent, SheetTrigger } from '@/lib/registry/default/ui/sheet'
|
||||||
|
import {
|
||||||
|
Table,
|
||||||
|
TableBody,
|
||||||
|
TableCell,
|
||||||
|
TableHead,
|
||||||
|
TableHeader,
|
||||||
|
TableRow,
|
||||||
|
} from '@/lib/registry/default/ui/table'
|
||||||
|
import {
|
||||||
|
Tabs,
|
||||||
|
TabsContent,
|
||||||
|
TabsList,
|
||||||
|
TabsTrigger,
|
||||||
|
} from '@/lib/registry/default/ui/tabs'
|
||||||
|
import {
|
||||||
|
Tooltip,
|
||||||
|
TooltipContent,
|
||||||
|
TooltipTrigger,
|
||||||
|
} from '@/lib/registry/default/ui/tooltip'
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div class="flex min-h-screen w-full flex-col bg-muted/40">
|
||||||
|
<aside class="fixed inset-y-0 left-0 z-10 hidden w-14 flex-col border-r bg-background sm:flex">
|
||||||
|
<nav class="flex flex-col items-center gap-4 px-2 py-4">
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="group flex h-9 w-9 shrink-0 items-center justify-center gap-2 rounded-full bg-primary text-lg font-semibold text-primary-foreground md:h-8 md:w-8 md:text-base"
|
||||||
|
>
|
||||||
|
<Package2 class="h-4 w-4 transition-all group-hover:scale-110" />
|
||||||
|
<span class="sr-only">Acme Inc</span>
|
||||||
|
</a>
|
||||||
|
<Tooltip>
|
||||||
|
<TooltipTrigger as-child>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex h-9 w-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:text-foreground md:h-8 md:w-8"
|
||||||
|
>
|
||||||
|
<Home class="h-5 w-5" />
|
||||||
|
<span class="sr-only">Dashboard</span>
|
||||||
|
</a>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent side="right">
|
||||||
|
Dashboard
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
<Tooltip>
|
||||||
|
<TooltipTrigger as-child>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex h-9 w-9 items-center justify-center rounded-lg transition-colors hover:text-foreground md:h-8 md:w-8"
|
||||||
|
>
|
||||||
|
<ShoppingCart class="h-5 w-5" />
|
||||||
|
<span class="sr-only">Orders</span>
|
||||||
|
</a>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent side="right">
|
||||||
|
Orders
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
<Tooltip>
|
||||||
|
<TooltipTrigger as-child>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex h-9 w-9 items-center justify-center rounded-lg bg-accent text-accent-foreground transition-colors hover:text-foreground md:h-8 md:w-8"
|
||||||
|
>
|
||||||
|
<Package class="h-5 w-5" />
|
||||||
|
<span class="sr-only">Products</span>
|
||||||
|
</a>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent side="right">
|
||||||
|
Products
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
<Tooltip>
|
||||||
|
<TooltipTrigger as-child>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex h-9 w-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:text-foreground md:h-8 md:w-8"
|
||||||
|
>
|
||||||
|
<Users2 class="h-5 w-5" />
|
||||||
|
<span class="sr-only">Customers</span>
|
||||||
|
</a>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent side="right">
|
||||||
|
Customers
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
<Tooltip>
|
||||||
|
<TooltipTrigger as-child>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex h-9 w-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:text-foreground md:h-8 md:w-8"
|
||||||
|
>
|
||||||
|
<LineChart class="h-5 w-5" />
|
||||||
|
<span class="sr-only">Analytics</span>
|
||||||
|
</a>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent side="right">
|
||||||
|
Analytics
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
</nav>
|
||||||
|
<nav class="mt-auto flex flex-col items-center gap-4 px-2 py-4">
|
||||||
|
<Tooltip>
|
||||||
|
<TooltipTrigger as-child>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex h-9 w-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:text-foreground md:h-8 md:w-8"
|
||||||
|
>
|
||||||
|
<Settings class="h-5 w-5" />
|
||||||
|
<span class="sr-only">Settings</span>
|
||||||
|
</a>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent side="right">
|
||||||
|
Settings
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
</nav>
|
||||||
|
</aside>
|
||||||
|
<div class="flex flex-col sm:gap-4 sm:py-4 sm:pl-14">
|
||||||
|
<header class="sticky top-0 z-30 flex h-14 items-center gap-4 border-b bg-background px-4 sm:static sm:h-auto sm:border-0 sm:bg-transparent sm:px-6">
|
||||||
|
<Sheet>
|
||||||
|
<SheetTrigger as-child>
|
||||||
|
<Button size="icon" variant="outline" class="sm:hidden">
|
||||||
|
<PanelLeft class="h-5 w-5" />
|
||||||
|
<span class="sr-only">Toggle Menu</span>
|
||||||
|
</Button>
|
||||||
|
</SheetTrigger>
|
||||||
|
<SheetContent side="left" class="sm:max-w-xs">
|
||||||
|
<nav class="grid gap-6 text-lg font-medium">
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="group flex h-10 w-10 shrink-0 items-center justify-center gap-2 rounded-full bg-primary text-lg font-semibold text-primary-foreground md:text-base"
|
||||||
|
>
|
||||||
|
<Package2 class="h-5 w-5 transition-all group-hover:scale-110" />
|
||||||
|
<span class="sr-only">Acme Inc</span>
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
|
||||||
|
>
|
||||||
|
<Home class="h-5 w-5" />
|
||||||
|
Dashboard
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
|
||||||
|
>
|
||||||
|
<ShoppingCart class="h-5 w-5" />
|
||||||
|
Orders
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex items-center gap-4 px-2.5 text-foreground"
|
||||||
|
>
|
||||||
|
<Package class="h-5 w-5" />
|
||||||
|
Products
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
|
||||||
|
>
|
||||||
|
<Users2 class="h-5 w-5" />
|
||||||
|
Customers
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
|
||||||
|
>
|
||||||
|
<LineChart class="h-5 w-5" />
|
||||||
|
Settings
|
||||||
|
</a>
|
||||||
|
</nav>
|
||||||
|
</SheetContent>
|
||||||
|
</Sheet>
|
||||||
|
<Breadcrumb class="hidden md:flex">
|
||||||
|
<BreadcrumbList>
|
||||||
|
<BreadcrumbItem>
|
||||||
|
<BreadcrumbLink as-child>
|
||||||
|
<a href="#">Dashboard</a>
|
||||||
|
</BreadcrumbLink>
|
||||||
|
</BreadcrumbItem>
|
||||||
|
<BreadcrumbSeparator />
|
||||||
|
<BreadcrumbItem>
|
||||||
|
<BreadcrumbLink as-child>
|
||||||
|
<a href="#">Products</a>
|
||||||
|
</BreadcrumbLink>
|
||||||
|
</BreadcrumbItem>
|
||||||
|
<BreadcrumbSeparator />
|
||||||
|
<BreadcrumbItem>
|
||||||
|
<BreadcrumbPage>All Products</BreadcrumbPage>
|
||||||
|
</BreadcrumbItem>
|
||||||
|
</BreadcrumbList>
|
||||||
|
</Breadcrumb>
|
||||||
|
<div class="relative ml-auto flex-1 md:grow-0">
|
||||||
|
<Search class="absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground" />
|
||||||
|
<Input
|
||||||
|
type="search"
|
||||||
|
placeholder="Search..."
|
||||||
|
class="w-full rounded-lg bg-background pl-8 md:w-[200px] lg:w-[320px]"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<DropdownMenu>
|
||||||
|
<DropdownMenuTrigger as-child>
|
||||||
|
<Button variant="secondary" size="icon" class="rounded-full">
|
||||||
|
<CircleUser class="h-5 w-5" />
|
||||||
|
<span class="sr-only">Toggle user menu</span>
|
||||||
|
</Button>
|
||||||
|
</DropdownMenuTrigger>
|
||||||
|
<DropdownMenuContent align="end">
|
||||||
|
<DropdownMenuLabel>My Account</DropdownMenuLabel>
|
||||||
|
<DropdownMenuSeparator />
|
||||||
|
<DropdownMenuItem>Settings</DropdownMenuItem>
|
||||||
|
<DropdownMenuItem>Support</DropdownMenuItem>
|
||||||
|
<DropdownMenuSeparator />
|
||||||
|
<DropdownMenuItem>Logout</DropdownMenuItem>
|
||||||
|
</DropdownMenuContent>
|
||||||
|
</DropdownMenu>
|
||||||
|
</header>
|
||||||
|
<main class="grid flex-1 items-start gap-4 p-4 sm:px-6 sm:py-0 md:gap-8">
|
||||||
|
<Tabs default-value="all">
|
||||||
|
<div class="flex items-center">
|
||||||
|
<TabsList>
|
||||||
|
<TabsTrigger value="all">
|
||||||
|
All
|
||||||
|
</TabsTrigger>
|
||||||
|
<TabsTrigger value="active">
|
||||||
|
Active
|
||||||
|
</TabsTrigger>
|
||||||
|
<TabsTrigger value="draft">
|
||||||
|
Draft
|
||||||
|
</TabsTrigger>
|
||||||
|
<TabsTrigger value="archived" class="hidden sm:flex">
|
||||||
|
Archived
|
||||||
|
</TabsTrigger>
|
||||||
|
</TabsList>
|
||||||
|
<div class="ml-auto flex items-center gap-2">
|
||||||
|
<DropdownMenu>
|
||||||
|
<DropdownMenuTrigger as-child>
|
||||||
|
<Button variant="outline" size="sm" class="h-7 gap-1">
|
||||||
|
<ListFilter class="h-3.5 w-3.5" />
|
||||||
|
<span class="sr-only sm:not-sr-only sm:whitespace-nowrap">
|
||||||
|
Filter
|
||||||
|
</span>
|
||||||
|
</Button>
|
||||||
|
</DropdownMenuTrigger>
|
||||||
|
<DropdownMenuContent align="end">
|
||||||
|
<DropdownMenuLabel>Filter by</DropdownMenuLabel>
|
||||||
|
<DropdownMenuSeparator />
|
||||||
|
<DropdownMenuItem checked>
|
||||||
|
Active
|
||||||
|
</DropdownMenuItem>
|
||||||
|
<DropdownMenuItem>Draft</DropdownMenuItem>
|
||||||
|
<DropdownMenuItem>
|
||||||
|
Archived
|
||||||
|
</DropdownMenuItem>
|
||||||
|
</DropdownMenuContent>
|
||||||
|
</DropdownMenu>
|
||||||
|
<Button size="sm" variant="outline" class="h-7 gap-1">
|
||||||
|
<File class="h-3.5 w-3.5" />
|
||||||
|
<span class="sr-only sm:not-sr-only sm:whitespace-nowrap">
|
||||||
|
Export
|
||||||
|
</span>
|
||||||
|
</Button>
|
||||||
|
<Button size="sm" class="h-7 gap-1">
|
||||||
|
<PlusCircle class="h-3.5 w-3.5" />
|
||||||
|
<span class="sr-only sm:not-sr-only sm:whitespace-nowrap">
|
||||||
|
Add Product
|
||||||
|
</span>
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<TabsContent value="all">
|
||||||
|
<Card>
|
||||||
|
<CardHeader>
|
||||||
|
<CardTitle>Products</CardTitle>
|
||||||
|
<CardDescription>
|
||||||
|
Manage your products and view their sales performance.
|
||||||
|
</CardDescription>
|
||||||
|
</CardHeader>
|
||||||
|
<CardContent>
|
||||||
|
<Table>
|
||||||
|
<TableHeader>
|
||||||
|
<TableRow>
|
||||||
|
<TableHead class="hidden w-[100px] sm:table-cell">
|
||||||
|
<span class="sr-only">img</span>
|
||||||
|
</TableHead>
|
||||||
|
<TableHead>Name</TableHead>
|
||||||
|
<TableHead>Status</TableHead>
|
||||||
|
<TableHead>Price</TableHead>
|
||||||
|
<TableHead class="hidden md:table-cell">
|
||||||
|
Total Sales
|
||||||
|
</TableHead>
|
||||||
|
<TableHead class="hidden md:table-cell">
|
||||||
|
Created at
|
||||||
|
</TableHead>
|
||||||
|
<TableHead>
|
||||||
|
<span class="sr-only">Actions</span>
|
||||||
|
</TableHead>
|
||||||
|
</TableRow>
|
||||||
|
</TableHeader>
|
||||||
|
<TableBody>
|
||||||
|
<TableRow>
|
||||||
|
<TableCell class="hidden sm:table-cell">
|
||||||
|
<img
|
||||||
|
alt="Product image"
|
||||||
|
class="aspect-square rounded-md object-cover"
|
||||||
|
height="64"
|
||||||
|
src="/placeholder.svg"
|
||||||
|
width="64"
|
||||||
|
>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell class="font-medium">
|
||||||
|
Laser Lemonade Machine
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<Badge variant="outline">
|
||||||
|
Draft
|
||||||
|
</Badge>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>$499.99</TableCell>
|
||||||
|
<TableCell class="hidden md:table-cell">
|
||||||
|
25
|
||||||
|
</TableCell>
|
||||||
|
<TableCell class="hidden md:table-cell">
|
||||||
|
2023-07-12 10:42 AM
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<DropdownMenu>
|
||||||
|
<DropdownMenuTrigger as-child>
|
||||||
|
<Button
|
||||||
|
aria-haspopup="true"
|
||||||
|
size="icon"
|
||||||
|
variant="ghost"
|
||||||
|
>
|
||||||
|
<MoreHorizontal class="h-4 w-4" />
|
||||||
|
<span class="sr-only">Toggle menu</span>
|
||||||
|
</Button>
|
||||||
|
</DropdownMenuTrigger>
|
||||||
|
<DropdownMenuContent align="end">
|
||||||
|
<DropdownMenuLabel>Actions</DropdownMenuLabel>
|
||||||
|
<DropdownMenuItem>Edit</DropdownMenuItem>
|
||||||
|
<DropdownMenuItem>Delete</DropdownMenuItem>
|
||||||
|
</DropdownMenuContent>
|
||||||
|
</DropdownMenu>
|
||||||
|
</TableCell>
|
||||||
|
</TableRow>
|
||||||
|
<TableRow>
|
||||||
|
<TableCell class="hidden sm:table-cell">
|
||||||
|
<img
|
||||||
|
alt="Product image"
|
||||||
|
class="aspect-square rounded-md object-cover"
|
||||||
|
height="64"
|
||||||
|
src="/placeholder.svg"
|
||||||
|
width="64"
|
||||||
|
>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell class="font-medium">
|
||||||
|
Hypernova Headphones
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<Badge variant="outline">
|
||||||
|
Active
|
||||||
|
</Badge>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>$129.99</TableCell>
|
||||||
|
<TableCell class="hidden md:table-cell">
|
||||||
|
100
|
||||||
|
</TableCell>
|
||||||
|
<TableCell class="hidden md:table-cell">
|
||||||
|
2023-10-18 03:21 PM
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<DropdownMenu>
|
||||||
|
<DropdownMenuTrigger as-child>
|
||||||
|
<Button
|
||||||
|
aria-haspopup="true"
|
||||||
|
size="icon"
|
||||||
|
variant="ghost"
|
||||||
|
>
|
||||||
|
<MoreHorizontal class="h-4 w-4" />
|
||||||
|
<span class="sr-only">Toggle menu</span>
|
||||||
|
</Button>
|
||||||
|
</DropdownMenuTrigger>
|
||||||
|
<DropdownMenuContent align="end">
|
||||||
|
<DropdownMenuLabel>Actions</DropdownMenuLabel>
|
||||||
|
<DropdownMenuItem>Edit</DropdownMenuItem>
|
||||||
|
<DropdownMenuItem>Delete</DropdownMenuItem>
|
||||||
|
</DropdownMenuContent>
|
||||||
|
</DropdownMenu>
|
||||||
|
</TableCell>
|
||||||
|
</TableRow>
|
||||||
|
<TableRow>
|
||||||
|
<TableCell class="hidden sm:table-cell">
|
||||||
|
<img
|
||||||
|
alt="Product image"
|
||||||
|
class="aspect-square rounded-md object-cover"
|
||||||
|
height="64"
|
||||||
|
src="/placeholder.svg"
|
||||||
|
width="64"
|
||||||
|
>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell class="font-medium">
|
||||||
|
AeroGlow Desk Lamp
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<Badge variant="outline">
|
||||||
|
Active
|
||||||
|
</Badge>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>$39.99</TableCell>
|
||||||
|
<TableCell class="hidden md:table-cell">
|
||||||
|
50
|
||||||
|
</TableCell>
|
||||||
|
<TableCell class="hidden md:table-cell">
|
||||||
|
2023-11-29 08:15 AM
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<DropdownMenu>
|
||||||
|
<DropdownMenuTrigger as-child>
|
||||||
|
<Button
|
||||||
|
aria-haspopup="true"
|
||||||
|
size="icon"
|
||||||
|
variant="ghost"
|
||||||
|
>
|
||||||
|
<MoreHorizontal class="h-4 w-4" />
|
||||||
|
<span class="sr-only">Toggle menu</span>
|
||||||
|
</Button>
|
||||||
|
</DropdownMenuTrigger>
|
||||||
|
<DropdownMenuContent align="end">
|
||||||
|
<DropdownMenuLabel>Actions</DropdownMenuLabel>
|
||||||
|
<DropdownMenuItem>Edit</DropdownMenuItem>
|
||||||
|
<DropdownMenuItem>Delete</DropdownMenuItem>
|
||||||
|
</DropdownMenuContent>
|
||||||
|
</DropdownMenu>
|
||||||
|
</TableCell>
|
||||||
|
</TableRow>
|
||||||
|
<TableRow>
|
||||||
|
<TableCell class="hidden sm:table-cell">
|
||||||
|
<img
|
||||||
|
alt="Product image"
|
||||||
|
class="aspect-square rounded-md object-cover"
|
||||||
|
height="64"
|
||||||
|
src="/placeholder.svg"
|
||||||
|
width="64"
|
||||||
|
>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell class="font-medium">
|
||||||
|
TechTonic Energy Drink
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<Badge variant="secondary">
|
||||||
|
Draft
|
||||||
|
</Badge>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>$2.99</TableCell>
|
||||||
|
<TableCell class="hidden md:table-cell">
|
||||||
|
0
|
||||||
|
</TableCell>
|
||||||
|
<TableCell class="hidden md:table-cell">
|
||||||
|
2023-12-25 11:59 PM
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<DropdownMenu>
|
||||||
|
<DropdownMenuTrigger as-child>
|
||||||
|
<Button
|
||||||
|
aria-haspopup="true"
|
||||||
|
size="icon"
|
||||||
|
variant="ghost"
|
||||||
|
>
|
||||||
|
<MoreHorizontal class="h-4 w-4" />
|
||||||
|
<span class="sr-only">Toggle menu</span>
|
||||||
|
</Button>
|
||||||
|
</DropdownMenuTrigger>
|
||||||
|
<DropdownMenuContent align="end">
|
||||||
|
<DropdownMenuLabel>Actions</DropdownMenuLabel>
|
||||||
|
<DropdownMenuItem>Edit</DropdownMenuItem>
|
||||||
|
<DropdownMenuItem>Delete</DropdownMenuItem>
|
||||||
|
</DropdownMenuContent>
|
||||||
|
</DropdownMenu>
|
||||||
|
</TableCell>
|
||||||
|
</TableRow>
|
||||||
|
<TableRow>
|
||||||
|
<TableCell class="hidden sm:table-cell">
|
||||||
|
<img
|
||||||
|
alt="Product image"
|
||||||
|
class="aspect-square rounded-md object-cover"
|
||||||
|
height="64"
|
||||||
|
src="/placeholder.svg"
|
||||||
|
width="64"
|
||||||
|
>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell class="font-medium">
|
||||||
|
Gamer Gear Pro Controller
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<Badge variant="outline">
|
||||||
|
Active
|
||||||
|
</Badge>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>$59.99</TableCell>
|
||||||
|
<TableCell class="hidden md:table-cell">
|
||||||
|
75
|
||||||
|
</TableCell>
|
||||||
|
<TableCell class="hidden md:table-cell">
|
||||||
|
2024-01-01 12:00 AM
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<DropdownMenu>
|
||||||
|
<DropdownMenuTrigger as-child>
|
||||||
|
<Button
|
||||||
|
aria-haspopup="true"
|
||||||
|
size="icon"
|
||||||
|
variant="ghost"
|
||||||
|
>
|
||||||
|
<MoreHorizontal class="h-4 w-4" />
|
||||||
|
<span class="sr-only">Toggle menu</span>
|
||||||
|
</Button>
|
||||||
|
</DropdownMenuTrigger>
|
||||||
|
<DropdownMenuContent align="end">
|
||||||
|
<DropdownMenuLabel>Actions</DropdownMenuLabel>
|
||||||
|
<DropdownMenuItem>Edit</DropdownMenuItem>
|
||||||
|
<DropdownMenuItem>Delete</DropdownMenuItem>
|
||||||
|
</DropdownMenuContent>
|
||||||
|
</DropdownMenu>
|
||||||
|
</TableCell>
|
||||||
|
</TableRow>
|
||||||
|
<TableRow>
|
||||||
|
<TableCell class="hidden sm:table-cell">
|
||||||
|
<img
|
||||||
|
alt="Product image"
|
||||||
|
class="aspect-square rounded-md object-cover"
|
||||||
|
height="64"
|
||||||
|
src="/placeholder.svg"
|
||||||
|
width="64"
|
||||||
|
>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell class="font-medium">
|
||||||
|
Luminous VR Headset
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<Badge variant="outline">
|
||||||
|
Active
|
||||||
|
</Badge>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>$199.99</TableCell>
|
||||||
|
<TableCell class="hidden md:table-cell">
|
||||||
|
30
|
||||||
|
</TableCell>
|
||||||
|
<TableCell class="hidden md:table-cell">
|
||||||
|
2024-02-14 02:14 PM
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<DropdownMenu>
|
||||||
|
<DropdownMenuTrigger as-child>
|
||||||
|
<Button
|
||||||
|
aria-haspopup="true"
|
||||||
|
size="icon"
|
||||||
|
variant="ghost"
|
||||||
|
>
|
||||||
|
<MoreHorizontal class="h-4 w-4" />
|
||||||
|
<span class="sr-only">Toggle menu</span>
|
||||||
|
</Button>
|
||||||
|
</DropdownMenuTrigger>
|
||||||
|
<DropdownMenuContent align="end">
|
||||||
|
<DropdownMenuLabel>Actions</DropdownMenuLabel>
|
||||||
|
<DropdownMenuItem>Edit</DropdownMenuItem>
|
||||||
|
<DropdownMenuItem>Delete</DropdownMenuItem>
|
||||||
|
</DropdownMenuContent>
|
||||||
|
</DropdownMenu>
|
||||||
|
</TableCell>
|
||||||
|
</TableRow>
|
||||||
|
</TableBody>
|
||||||
|
</Table>
|
||||||
|
</CardContent>
|
||||||
|
<CardFooter>
|
||||||
|
<div class="text-xs text-muted-foreground">
|
||||||
|
Showing <strong>1-10</strong> of <strong>32</strong>
|
||||||
|
products
|
||||||
|
</div>
|
||||||
|
</CardFooter>
|
||||||
|
</Card>
|
||||||
|
</TabsContent>
|
||||||
|
</Tabs>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
629
apps/www/src/lib/registry/default/block/Dashboard07.vue
Normal file
629
apps/www/src/lib/registry/default/block/Dashboard07.vue
Normal file
|
|
@ -0,0 +1,629 @@
|
||||||
|
<script lang="ts">
|
||||||
|
export const description = 'A product details page.'
|
||||||
|
export const iframeHeight = '780px'
|
||||||
|
export const containerClass = 'w-full h-full'
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script setup lang="ts">
|
||||||
|
import {
|
||||||
|
ChevronLeft,
|
||||||
|
CircleUser,
|
||||||
|
Home,
|
||||||
|
LineChart,
|
||||||
|
Package,
|
||||||
|
Package2,
|
||||||
|
PanelLeft,
|
||||||
|
PlusCircle,
|
||||||
|
Search,
|
||||||
|
Settings,
|
||||||
|
ShoppingCart,
|
||||||
|
Upload,
|
||||||
|
Users2,
|
||||||
|
} from 'lucide-vue-next'
|
||||||
|
|
||||||
|
import { Badge } from '@/lib/registry/default/ui/badge'
|
||||||
|
import { Button } from '@/lib/registry/default/ui/button'
|
||||||
|
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from '@/lib/registry/default/ui/card'
|
||||||
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from '@/lib/registry/default/ui/dropdown-menu'
|
||||||
|
import { Input } from '@/lib/registry/default/ui/input'
|
||||||
|
import { Textarea } from '@/lib/registry/default/ui/textarea'
|
||||||
|
import { Label } from '@/lib/registry/default/ui/label'
|
||||||
|
import { ToggleGroup, ToggleGroupItem } from '@/lib/registry/default/ui/toggle-group'
|
||||||
|
import {
|
||||||
|
Breadcrumb,
|
||||||
|
BreadcrumbItem,
|
||||||
|
BreadcrumbLink,
|
||||||
|
BreadcrumbList,
|
||||||
|
BreadcrumbPage,
|
||||||
|
BreadcrumbSeparator,
|
||||||
|
} from '@/lib/registry/default/ui/breadcrumb'
|
||||||
|
import { Sheet, SheetContent, SheetTrigger } from '@/lib/registry/default/ui/sheet'
|
||||||
|
import {
|
||||||
|
Table,
|
||||||
|
TableBody,
|
||||||
|
TableCell,
|
||||||
|
TableHead,
|
||||||
|
TableHeader,
|
||||||
|
TableRow,
|
||||||
|
} from '@/lib/registry/default/ui/table'
|
||||||
|
import {
|
||||||
|
Select,
|
||||||
|
SelectContent,
|
||||||
|
SelectItem,
|
||||||
|
SelectTrigger,
|
||||||
|
SelectValue,
|
||||||
|
} from '@/lib/registry/default/ui/select'
|
||||||
|
import {
|
||||||
|
Tooltip,
|
||||||
|
TooltipContent,
|
||||||
|
TooltipTrigger,
|
||||||
|
} from '@/lib/registry/default/ui/tooltip'
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div class="flex min-h-screen w-full flex-col bg-muted/40">
|
||||||
|
<aside class="fixed inset-y-0 left-0 z-10 hidden w-14 flex-col border-r bg-background sm:flex">
|
||||||
|
<nav class="flex flex-col items-center gap-4 px-2 sm:py-5">
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="group flex h-9 w-9 shrink-0 items-center justify-center gap-2 rounded-full bg-primary text-lg font-semibold text-primary-foreground md:h-8 md:w-8 md:text-base"
|
||||||
|
>
|
||||||
|
<Package2 class="h-4 w-4 transition-all group-hover:scale-110" />
|
||||||
|
<span class="sr-only">Acme Inc</span>
|
||||||
|
</a>
|
||||||
|
<Tooltip>
|
||||||
|
<TooltipTrigger as-child>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex h-9 w-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:text-foreground md:h-8 md:w-8"
|
||||||
|
>
|
||||||
|
<Home class="h-5 w-5" />
|
||||||
|
<span class="sr-only">Dashboard</span>
|
||||||
|
</a>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent side="right">
|
||||||
|
Dashboard
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
<Tooltip>
|
||||||
|
<TooltipTrigger as-child>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex h-9 w-9 items-center justify-center rounded-lg bg-accent text-accent-foreground transition-colors hover:text-foreground md:h-8 md:w-8"
|
||||||
|
>
|
||||||
|
<ShoppingCart class="h-5 w-5" />
|
||||||
|
<span class="sr-only">Orders</span>
|
||||||
|
</a>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent side="right">
|
||||||
|
Orders
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
<Tooltip>
|
||||||
|
<TooltipTrigger as-child>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex h-9 w-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:text-foreground md:h-8 md:w-8"
|
||||||
|
>
|
||||||
|
<Package class="h-5 w-5" />
|
||||||
|
<span class="sr-only">Products</span>
|
||||||
|
</a>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent side="right">
|
||||||
|
Products
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
<Tooltip>
|
||||||
|
<TooltipTrigger as-child>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex h-9 w-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:text-foreground md:h-8 md:w-8"
|
||||||
|
>
|
||||||
|
<Users2 class="h-5 w-5" />
|
||||||
|
<span class="sr-only">Customers</span>
|
||||||
|
</a>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent side="right">
|
||||||
|
Customers
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
<Tooltip>
|
||||||
|
<TooltipTrigger as-child>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex h-9 w-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:text-foreground md:h-8 md:w-8"
|
||||||
|
>
|
||||||
|
<LineChart class="h-5 w-5" />
|
||||||
|
<span class="sr-only">Analytics</span>
|
||||||
|
</a>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent side="right">
|
||||||
|
Analytics
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
</nav>
|
||||||
|
<nav class="mt-auto flex flex-col items-center gap-4 px-2 sm:py-5">
|
||||||
|
<Tooltip>
|
||||||
|
<TooltipTrigger as-child>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex h-9 w-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:text-foreground md:h-8 md:w-8"
|
||||||
|
>
|
||||||
|
<Settings class="h-5 w-5" />
|
||||||
|
<span class="sr-only">Settings</span>
|
||||||
|
</a>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent side="right">
|
||||||
|
Settings
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
</nav>
|
||||||
|
</aside>
|
||||||
|
<div class="flex flex-col sm:gap-4 sm:py-4 sm:pl-14">
|
||||||
|
<header class="sticky top-0 z-30 flex h-14 items-center gap-4 border-b bg-background px-4 sm:static sm:h-auto sm:border-0 sm:bg-transparent sm:px-6">
|
||||||
|
<Sheet>
|
||||||
|
<SheetTrigger as-child>
|
||||||
|
<Button size="icon" variant="outline" class="sm:hidden">
|
||||||
|
<PanelLeft class="h-5 w-5" />
|
||||||
|
<span class="sr-only">Toggle Menu</span>
|
||||||
|
</Button>
|
||||||
|
</SheetTrigger>
|
||||||
|
<SheetContent side="left" class="sm:max-w-xs">
|
||||||
|
<nav class="grid gap-6 text-lg font-medium">
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="group flex h-10 w-10 shrink-0 items-center justify-center gap-2 rounded-full bg-primary text-lg font-semibold text-primary-foreground md:text-base"
|
||||||
|
>
|
||||||
|
<Package2 class="h-5 w-5 transition-all group-hover:scale-110" />
|
||||||
|
<span class="sr-only">Acme Inc</span>
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
|
||||||
|
>
|
||||||
|
<Home class="h-5 w-5" />
|
||||||
|
Dashboard
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
|
||||||
|
>
|
||||||
|
<ShoppingCart class="h-5 w-5" />
|
||||||
|
Orders
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex items-center gap-4 px-2.5 text-foreground"
|
||||||
|
>
|
||||||
|
<Package class="h-5 w-5" />
|
||||||
|
Products
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
|
||||||
|
>
|
||||||
|
<Users2 class="h-5 w-5" />
|
||||||
|
Customers
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
|
||||||
|
>
|
||||||
|
<LineChart class="h-5 w-5" />
|
||||||
|
Settings
|
||||||
|
</a>
|
||||||
|
</nav>
|
||||||
|
</SheetContent>
|
||||||
|
</Sheet>
|
||||||
|
<Breadcrumb class="hidden md:flex">
|
||||||
|
<BreadcrumbList>
|
||||||
|
<BreadcrumbItem>
|
||||||
|
<BreadcrumbLink as-child>
|
||||||
|
<a href="#">Dashboard</a>
|
||||||
|
</BreadcrumbLink>
|
||||||
|
</BreadcrumbItem>
|
||||||
|
<BreadcrumbSeparator />
|
||||||
|
<BreadcrumbItem>
|
||||||
|
<BreadcrumbLink as-child>
|
||||||
|
<a href="#">Products</a>
|
||||||
|
</BreadcrumbLink>
|
||||||
|
</BreadcrumbItem>
|
||||||
|
<BreadcrumbSeparator />
|
||||||
|
<BreadcrumbItem>
|
||||||
|
<BreadcrumbPage>Edit Product</BreadcrumbPage>
|
||||||
|
</BreadcrumbItem>
|
||||||
|
</BreadcrumbList>
|
||||||
|
</Breadcrumb>
|
||||||
|
<div class="relative ml-auto flex-1 md:grow-0">
|
||||||
|
<Search class="absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground" />
|
||||||
|
<Input
|
||||||
|
type="search"
|
||||||
|
placeholder="Search..."
|
||||||
|
class="w-full rounded-lg bg-background pl-8 md:w-[200px] lg:w-[336px]"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<DropdownMenu>
|
||||||
|
<DropdownMenuTrigger as-child>
|
||||||
|
<Button variant="secondary" size="icon" class="rounded-full">
|
||||||
|
<CircleUser class="h-5 w-5" />
|
||||||
|
<span class="sr-only">Toggle user menu</span>
|
||||||
|
</Button>
|
||||||
|
</DropdownMenuTrigger>
|
||||||
|
<DropdownMenuContent align="end">
|
||||||
|
<DropdownMenuLabel>My Account</DropdownMenuLabel>
|
||||||
|
<DropdownMenuSeparator />
|
||||||
|
<DropdownMenuItem>Settings</DropdownMenuItem>
|
||||||
|
<DropdownMenuItem>Support</DropdownMenuItem>
|
||||||
|
<DropdownMenuSeparator />
|
||||||
|
<DropdownMenuItem>Logout</DropdownMenuItem>
|
||||||
|
</DropdownMenuContent>
|
||||||
|
</DropdownMenu>
|
||||||
|
</header>
|
||||||
|
<main class="grid flex-1 items-start gap-4 p-4 sm:px-6 sm:py-0 md:gap-8">
|
||||||
|
<div class="mx-auto grid max-w-[59rem] flex-1 auto-rows-max gap-4">
|
||||||
|
<div class="flex items-center gap-4">
|
||||||
|
<Button variant="outline" size="icon" class="h-7 w-7">
|
||||||
|
<ChevronLeft class="h-4 w-4" />
|
||||||
|
<span class="sr-only">Back</span>
|
||||||
|
</Button>
|
||||||
|
<h1 class="flex-1 shrink-0 whitespace-nowrap text-xl font-semibold tracking-tight sm:grow-0">
|
||||||
|
Pro Controller
|
||||||
|
</h1>
|
||||||
|
<Badge variant="outline" class="ml-auto sm:ml-0">
|
||||||
|
In stock
|
||||||
|
</Badge>
|
||||||
|
<div class="hidden items-center gap-2 md:ml-auto md:flex">
|
||||||
|
<Button variant="outline" size="sm">
|
||||||
|
Discard
|
||||||
|
</Button>
|
||||||
|
<Button size="sm">
|
||||||
|
Save Product
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="grid gap-4 md:grid-cols-[1fr_250px] lg:grid-cols-3 lg:gap-8">
|
||||||
|
<div class="grid auto-rows-max items-start gap-4 lg:col-span-2 lg:gap-8">
|
||||||
|
<Card>
|
||||||
|
<CardHeader>
|
||||||
|
<CardTitle>Product Details</CardTitle>
|
||||||
|
<CardDescription>
|
||||||
|
Lipsum dolor sit amet, consectetur adipiscing elit
|
||||||
|
</CardDescription>
|
||||||
|
</CardHeader>
|
||||||
|
<CardContent>
|
||||||
|
<div class="grid gap-6">
|
||||||
|
<div class="grid gap-3">
|
||||||
|
<Label html-for="name">Name</Label>
|
||||||
|
<Input
|
||||||
|
id="name"
|
||||||
|
type="text"
|
||||||
|
class="w-full"
|
||||||
|
default-value="Gamer Gear Pro Controller"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="grid gap-3">
|
||||||
|
<Label html-for="description">Description</Label>
|
||||||
|
<Textarea
|
||||||
|
id="description"
|
||||||
|
default-value="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam auctor, nisl nec ultricies ultricies, nunc nisl ultricies nunc, nec ultricies nunc nisl nec nunc."
|
||||||
|
class="min-h-32"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
|
<Card>
|
||||||
|
<CardHeader>
|
||||||
|
<CardTitle>Stock</CardTitle>
|
||||||
|
<CardDescription>
|
||||||
|
Lipsum dolor sit amet, consectetur adipiscing elit
|
||||||
|
</CardDescription>
|
||||||
|
</CardHeader>
|
||||||
|
<CardContent>
|
||||||
|
<Table>
|
||||||
|
<TableHeader>
|
||||||
|
<TableRow>
|
||||||
|
<TableHead class="w-[100px]">
|
||||||
|
SKU
|
||||||
|
</TableHead>
|
||||||
|
<TableHead>Stock</TableHead>
|
||||||
|
<TableHead>Price</TableHead>
|
||||||
|
<TableHead class="w-[100px]">
|
||||||
|
Size
|
||||||
|
</TableHead>
|
||||||
|
</TableRow>
|
||||||
|
</TableHeader>
|
||||||
|
<TableBody>
|
||||||
|
<TableRow>
|
||||||
|
<TableCell class="font-semibold">
|
||||||
|
GGPC-001
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<Label html-for="stock-1" class="sr-only">
|
||||||
|
Stock
|
||||||
|
</Label>
|
||||||
|
<Input
|
||||||
|
id="stock-1"
|
||||||
|
type="number"
|
||||||
|
default-value="100"
|
||||||
|
/>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<Label html-for="price-1" class="sr-only">
|
||||||
|
Price
|
||||||
|
</Label>
|
||||||
|
<Input
|
||||||
|
id="price-1"
|
||||||
|
type="number"
|
||||||
|
default-value="99.99"
|
||||||
|
/>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<ToggleGroup
|
||||||
|
type="single"
|
||||||
|
default-value="s"
|
||||||
|
variant="outline"
|
||||||
|
>
|
||||||
|
<ToggleGroupItem value="s">
|
||||||
|
S
|
||||||
|
</ToggleGroupItem>
|
||||||
|
<ToggleGroupItem value="m">
|
||||||
|
M
|
||||||
|
</ToggleGroupItem>
|
||||||
|
<ToggleGroupItem value="l">
|
||||||
|
L
|
||||||
|
</ToggleGroupItem>
|
||||||
|
</ToggleGroup>
|
||||||
|
</TableCell>
|
||||||
|
</TableRow>
|
||||||
|
<TableRow>
|
||||||
|
<TableCell class="font-semibold">
|
||||||
|
GGPC-002
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<Label html-for="stock-2" class="sr-only">
|
||||||
|
Stock
|
||||||
|
</Label>
|
||||||
|
<Input
|
||||||
|
id="stock-2"
|
||||||
|
type="number"
|
||||||
|
default-value="143"
|
||||||
|
/>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<Label html-for="price-2" class="sr-only">
|
||||||
|
Price
|
||||||
|
</Label>
|
||||||
|
<Input
|
||||||
|
id="price-2"
|
||||||
|
type="number"
|
||||||
|
default-value="99.99"
|
||||||
|
/>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<ToggleGroup
|
||||||
|
type="single"
|
||||||
|
default-value="m"
|
||||||
|
variant="outline"
|
||||||
|
>
|
||||||
|
<ToggleGroupItem value="s">
|
||||||
|
S
|
||||||
|
</ToggleGroupItem>
|
||||||
|
<ToggleGroupItem value="m">
|
||||||
|
M
|
||||||
|
</ToggleGroupItem>
|
||||||
|
<ToggleGroupItem value="l">
|
||||||
|
L
|
||||||
|
</ToggleGroupItem>
|
||||||
|
</ToggleGroup>
|
||||||
|
</TableCell>
|
||||||
|
</TableRow>
|
||||||
|
<TableRow>
|
||||||
|
<TableCell class="font-semibold">
|
||||||
|
GGPC-003
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<Label html-for="stock-3" class="sr-only">
|
||||||
|
Stock
|
||||||
|
</Label>
|
||||||
|
<Input
|
||||||
|
id="stock-3"
|
||||||
|
type="number"
|
||||||
|
default-value="32"
|
||||||
|
/>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<Label html-for="price-3" class="sr-only">
|
||||||
|
Stock
|
||||||
|
</Label>
|
||||||
|
<Input
|
||||||
|
id="price-3"
|
||||||
|
type="number"
|
||||||
|
default-value="99.99"
|
||||||
|
/>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<ToggleGroup
|
||||||
|
type="single"
|
||||||
|
default-value="s"
|
||||||
|
variant="outline"
|
||||||
|
>
|
||||||
|
<ToggleGroupItem value="s">
|
||||||
|
S
|
||||||
|
</ToggleGroupItem>
|
||||||
|
<ToggleGroupItem value="m">
|
||||||
|
M
|
||||||
|
</ToggleGroupItem>
|
||||||
|
<ToggleGroupItem value="l">
|
||||||
|
L
|
||||||
|
</ToggleGroupItem>
|
||||||
|
</ToggleGroup>
|
||||||
|
</TableCell>
|
||||||
|
</TableRow>
|
||||||
|
</TableBody>
|
||||||
|
</Table>
|
||||||
|
</CardContent>
|
||||||
|
<CardFooter class="justify-center border-t p-4">
|
||||||
|
<Button size="sm" variant="ghost" class="gap-1">
|
||||||
|
<PlusCircle class="h-3.5 w-3.5" />
|
||||||
|
Add Variant
|
||||||
|
</Button>
|
||||||
|
</CardFooter>
|
||||||
|
</Card>
|
||||||
|
<Card>
|
||||||
|
<CardHeader>
|
||||||
|
<CardTitle>Product Category</CardTitle>
|
||||||
|
</CardHeader>
|
||||||
|
<CardContent>
|
||||||
|
<div class="grid gap-6 sm:grid-cols-3">
|
||||||
|
<div class="grid gap-3">
|
||||||
|
<Label html-for="category">Category</Label>
|
||||||
|
<Select>
|
||||||
|
<SelectTrigger
|
||||||
|
id="category"
|
||||||
|
aria-label="Select category"
|
||||||
|
>
|
||||||
|
<SelectValue placeholder="Select category" />
|
||||||
|
</SelectTrigger>
|
||||||
|
<SelectContent>
|
||||||
|
<SelectItem value="clothing">
|
||||||
|
Clothing
|
||||||
|
</SelectItem>
|
||||||
|
<SelectItem value="electronics">
|
||||||
|
Electronics
|
||||||
|
</SelectItem>
|
||||||
|
<SelectItem value="accessories">
|
||||||
|
Accessories
|
||||||
|
</SelectItem>
|
||||||
|
</SelectContent>
|
||||||
|
</Select>
|
||||||
|
</div>
|
||||||
|
<div class="grid gap-3">
|
||||||
|
<Label html-for="subcategory">
|
||||||
|
Subcategory (optional)
|
||||||
|
</Label>
|
||||||
|
<Select>
|
||||||
|
<SelectTrigger
|
||||||
|
id="subcategory"
|
||||||
|
aria-label="Select subcategory"
|
||||||
|
>
|
||||||
|
<SelectValue placeholder="Select subcategory" />
|
||||||
|
</SelectTrigger>
|
||||||
|
<SelectContent>
|
||||||
|
<SelectItem value="t-shirts">
|
||||||
|
T-Shirts
|
||||||
|
</SelectItem>
|
||||||
|
<SelectItem value="hoodies">
|
||||||
|
Hoodies
|
||||||
|
</SelectItem>
|
||||||
|
<SelectItem value="sweatshirts">
|
||||||
|
Sweatshirts
|
||||||
|
</SelectItem>
|
||||||
|
</SelectContent>
|
||||||
|
</Select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
|
</div>
|
||||||
|
<div class="grid auto-rows-max items-start gap-4 lg:gap-8">
|
||||||
|
<Card>
|
||||||
|
<CardHeader>
|
||||||
|
<CardTitle>Product Status</CardTitle>
|
||||||
|
</CardHeader>
|
||||||
|
<CardContent>
|
||||||
|
<div class="grid gap-6">
|
||||||
|
<div class="grid gap-3">
|
||||||
|
<Label html-for="status">Status</Label>
|
||||||
|
<Select>
|
||||||
|
<SelectTrigger id="status" aria-label="Select status">
|
||||||
|
<SelectValue placeholder="Select status" />
|
||||||
|
</SelectTrigger>
|
||||||
|
<SelectContent>
|
||||||
|
<SelectItem value="draft">
|
||||||
|
Draft
|
||||||
|
</SelectItem>
|
||||||
|
<SelectItem value="published">
|
||||||
|
Active
|
||||||
|
</SelectItem>
|
||||||
|
<SelectItem value="archived">
|
||||||
|
Archived
|
||||||
|
</SelectItem>
|
||||||
|
</SelectContent>
|
||||||
|
</Select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
|
<Card class="overflow-hidden">
|
||||||
|
<CardHeader>
|
||||||
|
<CardTitle>Product imgs</CardTitle>
|
||||||
|
<CardDescription>
|
||||||
|
Lipsum dolor sit amet, consectetur adipiscing elit
|
||||||
|
</CardDescription>
|
||||||
|
</CardHeader>
|
||||||
|
<CardContent>
|
||||||
|
<div class="grid gap-2">
|
||||||
|
<img
|
||||||
|
alt="Product image"
|
||||||
|
class="aspect-square w-full rounded-md object-cover"
|
||||||
|
height="300"
|
||||||
|
src="/placeholder.svg"
|
||||||
|
width="300"
|
||||||
|
>
|
||||||
|
<div class="grid grid-cols-3 gap-2">
|
||||||
|
<button>
|
||||||
|
<img
|
||||||
|
alt="Product image"
|
||||||
|
class="aspect-square w-full rounded-md object-cover"
|
||||||
|
height="84"
|
||||||
|
src="/placeholder.svg"
|
||||||
|
width="84"
|
||||||
|
>
|
||||||
|
</button>
|
||||||
|
<button>
|
||||||
|
<img
|
||||||
|
alt="Product image"
|
||||||
|
class="aspect-square w-full rounded-md object-cover"
|
||||||
|
height="84"
|
||||||
|
src="/placeholder.svg"
|
||||||
|
width="84"
|
||||||
|
>
|
||||||
|
</button>
|
||||||
|
<button class="flex aspect-square w-full items-center justify-center rounded-md border border-dashed">
|
||||||
|
<Upload class="h-4 w-4 text-muted-foreground" />
|
||||||
|
<span class="sr-only">Upload</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
|
<Card>
|
||||||
|
<CardHeader>
|
||||||
|
<CardTitle>Archive Product</CardTitle>
|
||||||
|
<CardDescription>
|
||||||
|
Lipsum dolor sit amet, consectetur adipiscing elit.
|
||||||
|
</CardDescription>
|
||||||
|
</CardHeader>
|
||||||
|
<CardContent>
|
||||||
|
<div />
|
||||||
|
<Button size="sm" variant="secondary">
|
||||||
|
Archive Product
|
||||||
|
</Button>
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="flex items-center justify-center gap-2 md:hidden">
|
||||||
|
<Button variant="outline" size="sm">
|
||||||
|
Discard
|
||||||
|
</Button>
|
||||||
|
<Button size="sm">
|
||||||
|
Save Product
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
627
apps/www/src/lib/registry/new-york/block/Dashboard06.vue
Normal file
627
apps/www/src/lib/registry/new-york/block/Dashboard06.vue
Normal file
|
|
@ -0,0 +1,627 @@
|
||||||
|
<script lang="ts">
|
||||||
|
export const description = 'A products page.'
|
||||||
|
export const iframeHeight = '780px'
|
||||||
|
export const containerClass = 'w-full h-full'
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script setup lang="ts">
|
||||||
|
import {
|
||||||
|
CircleUser,
|
||||||
|
File,
|
||||||
|
Home,
|
||||||
|
LineChart,
|
||||||
|
ListFilter,
|
||||||
|
MoreHorizontal,
|
||||||
|
Package,
|
||||||
|
Package2,
|
||||||
|
PanelLeft,
|
||||||
|
PlusCircle,
|
||||||
|
Search,
|
||||||
|
Settings,
|
||||||
|
ShoppingCart,
|
||||||
|
Users2,
|
||||||
|
} from 'lucide-vue-next'
|
||||||
|
|
||||||
|
import { Badge } from '@/lib/registry/new-york/ui/badge'
|
||||||
|
import { Button } from '@/lib/registry/new-york/ui/button'
|
||||||
|
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from '@/lib/registry/new-york/ui/card'
|
||||||
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from '@/lib/registry/new-york/ui/dropdown-menu'
|
||||||
|
import { Input } from '@/lib/registry/new-york/ui/input'
|
||||||
|
import {
|
||||||
|
Breadcrumb,
|
||||||
|
BreadcrumbItem,
|
||||||
|
BreadcrumbLink,
|
||||||
|
BreadcrumbList,
|
||||||
|
BreadcrumbPage,
|
||||||
|
BreadcrumbSeparator,
|
||||||
|
} from '@/lib/registry/new-york/ui/breadcrumb'
|
||||||
|
import { Sheet, SheetContent, SheetTrigger } from '@/lib/registry/new-york/ui/sheet'
|
||||||
|
import {
|
||||||
|
Table,
|
||||||
|
TableBody,
|
||||||
|
TableCell,
|
||||||
|
TableHead,
|
||||||
|
TableHeader,
|
||||||
|
TableRow,
|
||||||
|
} from '@/lib/registry/new-york/ui/table'
|
||||||
|
import {
|
||||||
|
Tabs,
|
||||||
|
TabsContent,
|
||||||
|
TabsList,
|
||||||
|
TabsTrigger,
|
||||||
|
} from '@/lib/registry/new-york/ui/tabs'
|
||||||
|
import {
|
||||||
|
Tooltip,
|
||||||
|
TooltipContent,
|
||||||
|
TooltipTrigger,
|
||||||
|
} from '@/lib/registry/new-york/ui/tooltip'
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div class="flex min-h-screen w-full flex-col bg-muted/40">
|
||||||
|
<aside class="fixed inset-y-0 left-0 z-10 hidden w-14 flex-col border-r bg-background sm:flex">
|
||||||
|
<nav class="flex flex-col items-center gap-4 px-2 py-4">
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="group flex h-9 w-9 shrink-0 items-center justify-center gap-2 rounded-full bg-primary text-lg font-semibold text-primary-foreground md:h-8 md:w-8 md:text-base"
|
||||||
|
>
|
||||||
|
<Package2 class="h-4 w-4 transition-all group-hover:scale-110" />
|
||||||
|
<span class="sr-only">Acme Inc</span>
|
||||||
|
</a>
|
||||||
|
<Tooltip>
|
||||||
|
<TooltipTrigger as-child>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex h-9 w-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:text-foreground md:h-8 md:w-8"
|
||||||
|
>
|
||||||
|
<Home class="h-5 w-5" />
|
||||||
|
<span class="sr-only">Dashboard</span>
|
||||||
|
</a>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent side="right">
|
||||||
|
Dashboard
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
<Tooltip>
|
||||||
|
<TooltipTrigger as-child>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex h-9 w-9 items-center justify-center rounded-lg transition-colors hover:text-foreground md:h-8 md:w-8"
|
||||||
|
>
|
||||||
|
<ShoppingCart class="h-5 w-5" />
|
||||||
|
<span class="sr-only">Orders</span>
|
||||||
|
</a>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent side="right">
|
||||||
|
Orders
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
<Tooltip>
|
||||||
|
<TooltipTrigger as-child>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex h-9 w-9 items-center justify-center rounded-lg bg-accent text-accent-foreground transition-colors hover:text-foreground md:h-8 md:w-8"
|
||||||
|
>
|
||||||
|
<Package class="h-5 w-5" />
|
||||||
|
<span class="sr-only">Products</span>
|
||||||
|
</a>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent side="right">
|
||||||
|
Products
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
<Tooltip>
|
||||||
|
<TooltipTrigger as-child>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex h-9 w-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:text-foreground md:h-8 md:w-8"
|
||||||
|
>
|
||||||
|
<Users2 class="h-5 w-5" />
|
||||||
|
<span class="sr-only">Customers</span>
|
||||||
|
</a>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent side="right">
|
||||||
|
Customers
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
<Tooltip>
|
||||||
|
<TooltipTrigger as-child>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex h-9 w-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:text-foreground md:h-8 md:w-8"
|
||||||
|
>
|
||||||
|
<LineChart class="h-5 w-5" />
|
||||||
|
<span class="sr-only">Analytics</span>
|
||||||
|
</a>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent side="right">
|
||||||
|
Analytics
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
</nav>
|
||||||
|
<nav class="mt-auto flex flex-col items-center gap-4 px-2 py-4">
|
||||||
|
<Tooltip>
|
||||||
|
<TooltipTrigger as-child>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex h-9 w-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:text-foreground md:h-8 md:w-8"
|
||||||
|
>
|
||||||
|
<Settings class="h-5 w-5" />
|
||||||
|
<span class="sr-only">Settings</span>
|
||||||
|
</a>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent side="right">
|
||||||
|
Settings
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
</nav>
|
||||||
|
</aside>
|
||||||
|
<div class="flex flex-col sm:gap-4 sm:py-4 sm:pl-14">
|
||||||
|
<header class="sticky top-0 z-30 flex h-14 items-center gap-4 border-b bg-background px-4 sm:static sm:h-auto sm:border-0 sm:bg-transparent sm:px-6">
|
||||||
|
<Sheet>
|
||||||
|
<SheetTrigger as-child>
|
||||||
|
<Button size="icon" variant="outline" class="sm:hidden">
|
||||||
|
<PanelLeft class="h-5 w-5" />
|
||||||
|
<span class="sr-only">Toggle Menu</span>
|
||||||
|
</Button>
|
||||||
|
</SheetTrigger>
|
||||||
|
<SheetContent side="left" class="sm:max-w-xs">
|
||||||
|
<nav class="grid gap-6 text-lg font-medium">
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="group flex h-10 w-10 shrink-0 items-center justify-center gap-2 rounded-full bg-primary text-lg font-semibold text-primary-foreground md:text-base"
|
||||||
|
>
|
||||||
|
<Package2 class="h-5 w-5 transition-all group-hover:scale-110" />
|
||||||
|
<span class="sr-only">Acme Inc</span>
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
|
||||||
|
>
|
||||||
|
<Home class="h-5 w-5" />
|
||||||
|
Dashboard
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
|
||||||
|
>
|
||||||
|
<ShoppingCart class="h-5 w-5" />
|
||||||
|
Orders
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex items-center gap-4 px-2.5 text-foreground"
|
||||||
|
>
|
||||||
|
<Package class="h-5 w-5" />
|
||||||
|
Products
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
|
||||||
|
>
|
||||||
|
<Users2 class="h-5 w-5" />
|
||||||
|
Customers
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
|
||||||
|
>
|
||||||
|
<LineChart class="h-5 w-5" />
|
||||||
|
Settings
|
||||||
|
</a>
|
||||||
|
</nav>
|
||||||
|
</SheetContent>
|
||||||
|
</Sheet>
|
||||||
|
<Breadcrumb class="hidden md:flex">
|
||||||
|
<BreadcrumbList>
|
||||||
|
<BreadcrumbItem>
|
||||||
|
<BreadcrumbLink as-child>
|
||||||
|
<a href="#">Dashboard</a>
|
||||||
|
</BreadcrumbLink>
|
||||||
|
</BreadcrumbItem>
|
||||||
|
<BreadcrumbSeparator />
|
||||||
|
<BreadcrumbItem>
|
||||||
|
<BreadcrumbLink as-child>
|
||||||
|
<a href="#">Products</a>
|
||||||
|
</BreadcrumbLink>
|
||||||
|
</BreadcrumbItem>
|
||||||
|
<BreadcrumbSeparator />
|
||||||
|
<BreadcrumbItem>
|
||||||
|
<BreadcrumbPage>All Products</BreadcrumbPage>
|
||||||
|
</BreadcrumbItem>
|
||||||
|
</BreadcrumbList>
|
||||||
|
</Breadcrumb>
|
||||||
|
<div class="relative ml-auto flex-1 md:grow-0">
|
||||||
|
<Search class="absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground" />
|
||||||
|
<Input
|
||||||
|
type="search"
|
||||||
|
placeholder="Search..."
|
||||||
|
class="w-full rounded-lg bg-background pl-8 md:w-[200px] lg:w-[320px]"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<DropdownMenu>
|
||||||
|
<DropdownMenuTrigger as-child>
|
||||||
|
<Button variant="secondary" size="icon" class="rounded-full">
|
||||||
|
<CircleUser class="h-5 w-5" />
|
||||||
|
<span class="sr-only">Toggle user menu</span>
|
||||||
|
</Button>
|
||||||
|
</DropdownMenuTrigger>
|
||||||
|
<DropdownMenuContent align="end">
|
||||||
|
<DropdownMenuLabel>My Account</DropdownMenuLabel>
|
||||||
|
<DropdownMenuSeparator />
|
||||||
|
<DropdownMenuItem>Settings</DropdownMenuItem>
|
||||||
|
<DropdownMenuItem>Support</DropdownMenuItem>
|
||||||
|
<DropdownMenuSeparator />
|
||||||
|
<DropdownMenuItem>Logout</DropdownMenuItem>
|
||||||
|
</DropdownMenuContent>
|
||||||
|
</DropdownMenu>
|
||||||
|
</header>
|
||||||
|
<main class="grid flex-1 items-start gap-4 p-4 sm:px-6 sm:py-0 md:gap-8">
|
||||||
|
<Tabs default-value="all">
|
||||||
|
<div class="flex items-center">
|
||||||
|
<TabsList>
|
||||||
|
<TabsTrigger value="all">
|
||||||
|
All
|
||||||
|
</TabsTrigger>
|
||||||
|
<TabsTrigger value="active">
|
||||||
|
Active
|
||||||
|
</TabsTrigger>
|
||||||
|
<TabsTrigger value="draft">
|
||||||
|
Draft
|
||||||
|
</TabsTrigger>
|
||||||
|
<TabsTrigger value="archived" class="hidden sm:flex">
|
||||||
|
Archived
|
||||||
|
</TabsTrigger>
|
||||||
|
</TabsList>
|
||||||
|
<div class="ml-auto flex items-center gap-2">
|
||||||
|
<DropdownMenu>
|
||||||
|
<DropdownMenuTrigger as-child>
|
||||||
|
<Button variant="outline" size="sm" class="h-7 gap-1">
|
||||||
|
<ListFilter class="h-3.5 w-3.5" />
|
||||||
|
<span class="sr-only sm:not-sr-only sm:whitespace-nowrap">
|
||||||
|
Filter
|
||||||
|
</span>
|
||||||
|
</Button>
|
||||||
|
</DropdownMenuTrigger>
|
||||||
|
<DropdownMenuContent align="end">
|
||||||
|
<DropdownMenuLabel>Filter by</DropdownMenuLabel>
|
||||||
|
<DropdownMenuSeparator />
|
||||||
|
<DropdownMenuItem checked>
|
||||||
|
Active
|
||||||
|
</DropdownMenuItem>
|
||||||
|
<DropdownMenuItem>Draft</DropdownMenuItem>
|
||||||
|
<DropdownMenuItem>
|
||||||
|
Archived
|
||||||
|
</DropdownMenuItem>
|
||||||
|
</DropdownMenuContent>
|
||||||
|
</DropdownMenu>
|
||||||
|
<Button size="sm" variant="outline" class="h-7 gap-1">
|
||||||
|
<File class="h-3.5 w-3.5" />
|
||||||
|
<span class="sr-only sm:not-sr-only sm:whitespace-nowrap">
|
||||||
|
Export
|
||||||
|
</span>
|
||||||
|
</Button>
|
||||||
|
<Button size="sm" class="h-7 gap-1">
|
||||||
|
<PlusCircle class="h-3.5 w-3.5" />
|
||||||
|
<span class="sr-only sm:not-sr-only sm:whitespace-nowrap">
|
||||||
|
Add Product
|
||||||
|
</span>
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<TabsContent value="all">
|
||||||
|
<Card>
|
||||||
|
<CardHeader>
|
||||||
|
<CardTitle>Products</CardTitle>
|
||||||
|
<CardDescription>
|
||||||
|
Manage your products and view their sales performance.
|
||||||
|
</CardDescription>
|
||||||
|
</CardHeader>
|
||||||
|
<CardContent>
|
||||||
|
<Table>
|
||||||
|
<TableHeader>
|
||||||
|
<TableRow>
|
||||||
|
<TableHead class="hidden w-[100px] sm:table-cell">
|
||||||
|
<span class="sr-only">img</span>
|
||||||
|
</TableHead>
|
||||||
|
<TableHead>Name</TableHead>
|
||||||
|
<TableHead>Status</TableHead>
|
||||||
|
<TableHead>Price</TableHead>
|
||||||
|
<TableHead class="hidden md:table-cell">
|
||||||
|
Total Sales
|
||||||
|
</TableHead>
|
||||||
|
<TableHead class="hidden md:table-cell">
|
||||||
|
Created at
|
||||||
|
</TableHead>
|
||||||
|
<TableHead>
|
||||||
|
<span class="sr-only">Actions</span>
|
||||||
|
</TableHead>
|
||||||
|
</TableRow>
|
||||||
|
</TableHeader>
|
||||||
|
<TableBody>
|
||||||
|
<TableRow>
|
||||||
|
<TableCell class="hidden sm:table-cell">
|
||||||
|
<img
|
||||||
|
alt="Product image"
|
||||||
|
class="aspect-square rounded-md object-cover"
|
||||||
|
height="64"
|
||||||
|
src="/placeholder.svg"
|
||||||
|
width="64"
|
||||||
|
>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell class="font-medium">
|
||||||
|
Laser Lemonade Machine
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<Badge variant="outline">
|
||||||
|
Draft
|
||||||
|
</Badge>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>$499.99</TableCell>
|
||||||
|
<TableCell class="hidden md:table-cell">
|
||||||
|
25
|
||||||
|
</TableCell>
|
||||||
|
<TableCell class="hidden md:table-cell">
|
||||||
|
2023-07-12 10:42 AM
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<DropdownMenu>
|
||||||
|
<DropdownMenuTrigger as-child>
|
||||||
|
<Button
|
||||||
|
aria-haspopup="true"
|
||||||
|
size="icon"
|
||||||
|
variant="ghost"
|
||||||
|
>
|
||||||
|
<MoreHorizontal class="h-4 w-4" />
|
||||||
|
<span class="sr-only">Toggle menu</span>
|
||||||
|
</Button>
|
||||||
|
</DropdownMenuTrigger>
|
||||||
|
<DropdownMenuContent align="end">
|
||||||
|
<DropdownMenuLabel>Actions</DropdownMenuLabel>
|
||||||
|
<DropdownMenuItem>Edit</DropdownMenuItem>
|
||||||
|
<DropdownMenuItem>Delete</DropdownMenuItem>
|
||||||
|
</DropdownMenuContent>
|
||||||
|
</DropdownMenu>
|
||||||
|
</TableCell>
|
||||||
|
</TableRow>
|
||||||
|
<TableRow>
|
||||||
|
<TableCell class="hidden sm:table-cell">
|
||||||
|
<img
|
||||||
|
alt="Product image"
|
||||||
|
class="aspect-square rounded-md object-cover"
|
||||||
|
height="64"
|
||||||
|
src="/placeholder.svg"
|
||||||
|
width="64"
|
||||||
|
>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell class="font-medium">
|
||||||
|
Hypernova Headphones
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<Badge variant="outline">
|
||||||
|
Active
|
||||||
|
</Badge>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>$129.99</TableCell>
|
||||||
|
<TableCell class="hidden md:table-cell">
|
||||||
|
100
|
||||||
|
</TableCell>
|
||||||
|
<TableCell class="hidden md:table-cell">
|
||||||
|
2023-10-18 03:21 PM
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<DropdownMenu>
|
||||||
|
<DropdownMenuTrigger as-child>
|
||||||
|
<Button
|
||||||
|
aria-haspopup="true"
|
||||||
|
size="icon"
|
||||||
|
variant="ghost"
|
||||||
|
>
|
||||||
|
<MoreHorizontal class="h-4 w-4" />
|
||||||
|
<span class="sr-only">Toggle menu</span>
|
||||||
|
</Button>
|
||||||
|
</DropdownMenuTrigger>
|
||||||
|
<DropdownMenuContent align="end">
|
||||||
|
<DropdownMenuLabel>Actions</DropdownMenuLabel>
|
||||||
|
<DropdownMenuItem>Edit</DropdownMenuItem>
|
||||||
|
<DropdownMenuItem>Delete</DropdownMenuItem>
|
||||||
|
</DropdownMenuContent>
|
||||||
|
</DropdownMenu>
|
||||||
|
</TableCell>
|
||||||
|
</TableRow>
|
||||||
|
<TableRow>
|
||||||
|
<TableCell class="hidden sm:table-cell">
|
||||||
|
<img
|
||||||
|
alt="Product image"
|
||||||
|
class="aspect-square rounded-md object-cover"
|
||||||
|
height="64"
|
||||||
|
src="/placeholder.svg"
|
||||||
|
width="64"
|
||||||
|
>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell class="font-medium">
|
||||||
|
AeroGlow Desk Lamp
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<Badge variant="outline">
|
||||||
|
Active
|
||||||
|
</Badge>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>$39.99</TableCell>
|
||||||
|
<TableCell class="hidden md:table-cell">
|
||||||
|
50
|
||||||
|
</TableCell>
|
||||||
|
<TableCell class="hidden md:table-cell">
|
||||||
|
2023-11-29 08:15 AM
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<DropdownMenu>
|
||||||
|
<DropdownMenuTrigger as-child>
|
||||||
|
<Button
|
||||||
|
aria-haspopup="true"
|
||||||
|
size="icon"
|
||||||
|
variant="ghost"
|
||||||
|
>
|
||||||
|
<MoreHorizontal class="h-4 w-4" />
|
||||||
|
<span class="sr-only">Toggle menu</span>
|
||||||
|
</Button>
|
||||||
|
</DropdownMenuTrigger>
|
||||||
|
<DropdownMenuContent align="end">
|
||||||
|
<DropdownMenuLabel>Actions</DropdownMenuLabel>
|
||||||
|
<DropdownMenuItem>Edit</DropdownMenuItem>
|
||||||
|
<DropdownMenuItem>Delete</DropdownMenuItem>
|
||||||
|
</DropdownMenuContent>
|
||||||
|
</DropdownMenu>
|
||||||
|
</TableCell>
|
||||||
|
</TableRow>
|
||||||
|
<TableRow>
|
||||||
|
<TableCell class="hidden sm:table-cell">
|
||||||
|
<img
|
||||||
|
alt="Product image"
|
||||||
|
class="aspect-square rounded-md object-cover"
|
||||||
|
height="64"
|
||||||
|
src="/placeholder.svg"
|
||||||
|
width="64"
|
||||||
|
>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell class="font-medium">
|
||||||
|
TechTonic Energy Drink
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<Badge variant="secondary">
|
||||||
|
Draft
|
||||||
|
</Badge>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>$2.99</TableCell>
|
||||||
|
<TableCell class="hidden md:table-cell">
|
||||||
|
0
|
||||||
|
</TableCell>
|
||||||
|
<TableCell class="hidden md:table-cell">
|
||||||
|
2023-12-25 11:59 PM
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<DropdownMenu>
|
||||||
|
<DropdownMenuTrigger as-child>
|
||||||
|
<Button
|
||||||
|
aria-haspopup="true"
|
||||||
|
size="icon"
|
||||||
|
variant="ghost"
|
||||||
|
>
|
||||||
|
<MoreHorizontal class="h-4 w-4" />
|
||||||
|
<span class="sr-only">Toggle menu</span>
|
||||||
|
</Button>
|
||||||
|
</DropdownMenuTrigger>
|
||||||
|
<DropdownMenuContent align="end">
|
||||||
|
<DropdownMenuLabel>Actions</DropdownMenuLabel>
|
||||||
|
<DropdownMenuItem>Edit</DropdownMenuItem>
|
||||||
|
<DropdownMenuItem>Delete</DropdownMenuItem>
|
||||||
|
</DropdownMenuContent>
|
||||||
|
</DropdownMenu>
|
||||||
|
</TableCell>
|
||||||
|
</TableRow>
|
||||||
|
<TableRow>
|
||||||
|
<TableCell class="hidden sm:table-cell">
|
||||||
|
<img
|
||||||
|
alt="Product image"
|
||||||
|
class="aspect-square rounded-md object-cover"
|
||||||
|
height="64"
|
||||||
|
src="/placeholder.svg"
|
||||||
|
width="64"
|
||||||
|
>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell class="font-medium">
|
||||||
|
Gamer Gear Pro Controller
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<Badge variant="outline">
|
||||||
|
Active
|
||||||
|
</Badge>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>$59.99</TableCell>
|
||||||
|
<TableCell class="hidden md:table-cell">
|
||||||
|
75
|
||||||
|
</TableCell>
|
||||||
|
<TableCell class="hidden md:table-cell">
|
||||||
|
2024-01-01 12:00 AM
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<DropdownMenu>
|
||||||
|
<DropdownMenuTrigger as-child>
|
||||||
|
<Button
|
||||||
|
aria-haspopup="true"
|
||||||
|
size="icon"
|
||||||
|
variant="ghost"
|
||||||
|
>
|
||||||
|
<MoreHorizontal class="h-4 w-4" />
|
||||||
|
<span class="sr-only">Toggle menu</span>
|
||||||
|
</Button>
|
||||||
|
</DropdownMenuTrigger>
|
||||||
|
<DropdownMenuContent align="end">
|
||||||
|
<DropdownMenuLabel>Actions</DropdownMenuLabel>
|
||||||
|
<DropdownMenuItem>Edit</DropdownMenuItem>
|
||||||
|
<DropdownMenuItem>Delete</DropdownMenuItem>
|
||||||
|
</DropdownMenuContent>
|
||||||
|
</DropdownMenu>
|
||||||
|
</TableCell>
|
||||||
|
</TableRow>
|
||||||
|
<TableRow>
|
||||||
|
<TableCell class="hidden sm:table-cell">
|
||||||
|
<img
|
||||||
|
alt="Product image"
|
||||||
|
class="aspect-square rounded-md object-cover"
|
||||||
|
height="64"
|
||||||
|
src="/placeholder.svg"
|
||||||
|
width="64"
|
||||||
|
>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell class="font-medium">
|
||||||
|
Luminous VR Headset
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<Badge variant="outline">
|
||||||
|
Active
|
||||||
|
</Badge>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>$199.99</TableCell>
|
||||||
|
<TableCell class="hidden md:table-cell">
|
||||||
|
30
|
||||||
|
</TableCell>
|
||||||
|
<TableCell class="hidden md:table-cell">
|
||||||
|
2024-02-14 02:14 PM
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<DropdownMenu>
|
||||||
|
<DropdownMenuTrigger as-child>
|
||||||
|
<Button
|
||||||
|
aria-haspopup="true"
|
||||||
|
size="icon"
|
||||||
|
variant="ghost"
|
||||||
|
>
|
||||||
|
<MoreHorizontal class="h-4 w-4" />
|
||||||
|
<span class="sr-only">Toggle menu</span>
|
||||||
|
</Button>
|
||||||
|
</DropdownMenuTrigger>
|
||||||
|
<DropdownMenuContent align="end">
|
||||||
|
<DropdownMenuLabel>Actions</DropdownMenuLabel>
|
||||||
|
<DropdownMenuItem>Edit</DropdownMenuItem>
|
||||||
|
<DropdownMenuItem>Delete</DropdownMenuItem>
|
||||||
|
</DropdownMenuContent>
|
||||||
|
</DropdownMenu>
|
||||||
|
</TableCell>
|
||||||
|
</TableRow>
|
||||||
|
</TableBody>
|
||||||
|
</Table>
|
||||||
|
</CardContent>
|
||||||
|
<CardFooter>
|
||||||
|
<div class="text-xs text-muted-foreground">
|
||||||
|
Showing <strong>1-10</strong> of <strong>32</strong>
|
||||||
|
products
|
||||||
|
</div>
|
||||||
|
</CardFooter>
|
||||||
|
</Card>
|
||||||
|
</TabsContent>
|
||||||
|
</Tabs>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
629
apps/www/src/lib/registry/new-york/block/Dashboard07.vue
Normal file
629
apps/www/src/lib/registry/new-york/block/Dashboard07.vue
Normal file
|
|
@ -0,0 +1,629 @@
|
||||||
|
<script lang="ts">
|
||||||
|
export const description = 'A product details page.'
|
||||||
|
export const iframeHeight = '780px'
|
||||||
|
export const containerClass = 'w-full h-full'
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script setup lang="ts">
|
||||||
|
import {
|
||||||
|
ChevronLeft,
|
||||||
|
CircleUser,
|
||||||
|
Home,
|
||||||
|
LineChart,
|
||||||
|
Package,
|
||||||
|
Package2,
|
||||||
|
PanelLeft,
|
||||||
|
PlusCircle,
|
||||||
|
Search,
|
||||||
|
Settings,
|
||||||
|
ShoppingCart,
|
||||||
|
Upload,
|
||||||
|
Users2,
|
||||||
|
} from 'lucide-vue-next'
|
||||||
|
|
||||||
|
import { Badge } from '@/lib/registry/new-york/ui/badge'
|
||||||
|
import { Button } from '@/lib/registry/new-york/ui/button'
|
||||||
|
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from '@/lib/registry/new-york/ui/card'
|
||||||
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from '@/lib/registry/new-york/ui/dropdown-menu'
|
||||||
|
import { Input } from '@/lib/registry/new-york/ui/input'
|
||||||
|
import { Textarea } from '@/lib/registry/new-york/ui/textarea'
|
||||||
|
import { Label } from '@/lib/registry/new-york/ui/label'
|
||||||
|
import { ToggleGroup, ToggleGroupItem } from '@/lib/registry/new-york/ui/toggle-group'
|
||||||
|
import {
|
||||||
|
Breadcrumb,
|
||||||
|
BreadcrumbItem,
|
||||||
|
BreadcrumbLink,
|
||||||
|
BreadcrumbList,
|
||||||
|
BreadcrumbPage,
|
||||||
|
BreadcrumbSeparator,
|
||||||
|
} from '@/lib/registry/new-york/ui/breadcrumb'
|
||||||
|
import { Sheet, SheetContent, SheetTrigger } from '@/lib/registry/new-york/ui/sheet'
|
||||||
|
import {
|
||||||
|
Table,
|
||||||
|
TableBody,
|
||||||
|
TableCell,
|
||||||
|
TableHead,
|
||||||
|
TableHeader,
|
||||||
|
TableRow,
|
||||||
|
} from '@/lib/registry/new-york/ui/table'
|
||||||
|
import {
|
||||||
|
Select,
|
||||||
|
SelectContent,
|
||||||
|
SelectItem,
|
||||||
|
SelectTrigger,
|
||||||
|
SelectValue,
|
||||||
|
} from '@/lib/registry/new-york/ui/select'
|
||||||
|
import {
|
||||||
|
Tooltip,
|
||||||
|
TooltipContent,
|
||||||
|
TooltipTrigger,
|
||||||
|
} from '@/lib/registry/new-york/ui/tooltip'
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div class="flex min-h-screen w-full flex-col bg-muted/40">
|
||||||
|
<aside class="fixed inset-y-0 left-0 z-10 hidden w-14 flex-col border-r bg-background sm:flex">
|
||||||
|
<nav class="flex flex-col items-center gap-4 px-2 sm:py-5">
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="group flex h-9 w-9 shrink-0 items-center justify-center gap-2 rounded-full bg-primary text-lg font-semibold text-primary-foreground md:h-8 md:w-8 md:text-base"
|
||||||
|
>
|
||||||
|
<Package2 class="h-4 w-4 transition-all group-hover:scale-110" />
|
||||||
|
<span class="sr-only">Acme Inc</span>
|
||||||
|
</a>
|
||||||
|
<Tooltip>
|
||||||
|
<TooltipTrigger as-child>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex h-9 w-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:text-foreground md:h-8 md:w-8"
|
||||||
|
>
|
||||||
|
<Home class="h-5 w-5" />
|
||||||
|
<span class="sr-only">Dashboard</span>
|
||||||
|
</a>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent side="right">
|
||||||
|
Dashboard
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
<Tooltip>
|
||||||
|
<TooltipTrigger as-child>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex h-9 w-9 items-center justify-center rounded-lg bg-accent text-accent-foreground transition-colors hover:text-foreground md:h-8 md:w-8"
|
||||||
|
>
|
||||||
|
<ShoppingCart class="h-5 w-5" />
|
||||||
|
<span class="sr-only">Orders</span>
|
||||||
|
</a>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent side="right">
|
||||||
|
Orders
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
<Tooltip>
|
||||||
|
<TooltipTrigger as-child>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex h-9 w-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:text-foreground md:h-8 md:w-8"
|
||||||
|
>
|
||||||
|
<Package class="h-5 w-5" />
|
||||||
|
<span class="sr-only">Products</span>
|
||||||
|
</a>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent side="right">
|
||||||
|
Products
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
<Tooltip>
|
||||||
|
<TooltipTrigger as-child>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex h-9 w-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:text-foreground md:h-8 md:w-8"
|
||||||
|
>
|
||||||
|
<Users2 class="h-5 w-5" />
|
||||||
|
<span class="sr-only">Customers</span>
|
||||||
|
</a>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent side="right">
|
||||||
|
Customers
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
<Tooltip>
|
||||||
|
<TooltipTrigger as-child>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex h-9 w-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:text-foreground md:h-8 md:w-8"
|
||||||
|
>
|
||||||
|
<LineChart class="h-5 w-5" />
|
||||||
|
<span class="sr-only">Analytics</span>
|
||||||
|
</a>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent side="right">
|
||||||
|
Analytics
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
</nav>
|
||||||
|
<nav class="mt-auto flex flex-col items-center gap-4 px-2 sm:py-5">
|
||||||
|
<Tooltip>
|
||||||
|
<TooltipTrigger as-child>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex h-9 w-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:text-foreground md:h-8 md:w-8"
|
||||||
|
>
|
||||||
|
<Settings class="h-5 w-5" />
|
||||||
|
<span class="sr-only">Settings</span>
|
||||||
|
</a>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent side="right">
|
||||||
|
Settings
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
</nav>
|
||||||
|
</aside>
|
||||||
|
<div class="flex flex-col sm:gap-4 sm:py-4 sm:pl-14">
|
||||||
|
<header class="sticky top-0 z-30 flex h-14 items-center gap-4 border-b bg-background px-4 sm:static sm:h-auto sm:border-0 sm:bg-transparent sm:px-6">
|
||||||
|
<Sheet>
|
||||||
|
<SheetTrigger as-child>
|
||||||
|
<Button size="icon" variant="outline" class="sm:hidden">
|
||||||
|
<PanelLeft class="h-5 w-5" />
|
||||||
|
<span class="sr-only">Toggle Menu</span>
|
||||||
|
</Button>
|
||||||
|
</SheetTrigger>
|
||||||
|
<SheetContent side="left" class="sm:max-w-xs">
|
||||||
|
<nav class="grid gap-6 text-lg font-medium">
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="group flex h-10 w-10 shrink-0 items-center justify-center gap-2 rounded-full bg-primary text-lg font-semibold text-primary-foreground md:text-base"
|
||||||
|
>
|
||||||
|
<Package2 class="h-5 w-5 transition-all group-hover:scale-110" />
|
||||||
|
<span class="sr-only">Acme Inc</span>
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
|
||||||
|
>
|
||||||
|
<Home class="h-5 w-5" />
|
||||||
|
Dashboard
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
|
||||||
|
>
|
||||||
|
<ShoppingCart class="h-5 w-5" />
|
||||||
|
Orders
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex items-center gap-4 px-2.5 text-foreground"
|
||||||
|
>
|
||||||
|
<Package class="h-5 w-5" />
|
||||||
|
Products
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
|
||||||
|
>
|
||||||
|
<Users2 class="h-5 w-5" />
|
||||||
|
Customers
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
class="flex items-center gap-4 px-2.5 text-muted-foreground hover:text-foreground"
|
||||||
|
>
|
||||||
|
<LineChart class="h-5 w-5" />
|
||||||
|
Settings
|
||||||
|
</a>
|
||||||
|
</nav>
|
||||||
|
</SheetContent>
|
||||||
|
</Sheet>
|
||||||
|
<Breadcrumb class="hidden md:flex">
|
||||||
|
<BreadcrumbList>
|
||||||
|
<BreadcrumbItem>
|
||||||
|
<BreadcrumbLink as-child>
|
||||||
|
<a href="#">Dashboard</a>
|
||||||
|
</BreadcrumbLink>
|
||||||
|
</BreadcrumbItem>
|
||||||
|
<BreadcrumbSeparator />
|
||||||
|
<BreadcrumbItem>
|
||||||
|
<BreadcrumbLink as-child>
|
||||||
|
<a href="#">Products</a>
|
||||||
|
</BreadcrumbLink>
|
||||||
|
</BreadcrumbItem>
|
||||||
|
<BreadcrumbSeparator />
|
||||||
|
<BreadcrumbItem>
|
||||||
|
<BreadcrumbPage>Edit Product</BreadcrumbPage>
|
||||||
|
</BreadcrumbItem>
|
||||||
|
</BreadcrumbList>
|
||||||
|
</Breadcrumb>
|
||||||
|
<div class="relative ml-auto flex-1 md:grow-0">
|
||||||
|
<Search class="absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground" />
|
||||||
|
<Input
|
||||||
|
type="search"
|
||||||
|
placeholder="Search..."
|
||||||
|
class="w-full rounded-lg bg-background pl-8 md:w-[200px] lg:w-[336px]"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<DropdownMenu>
|
||||||
|
<DropdownMenuTrigger as-child>
|
||||||
|
<Button variant="secondary" size="icon" class="rounded-full">
|
||||||
|
<CircleUser class="h-5 w-5" />
|
||||||
|
<span class="sr-only">Toggle user menu</span>
|
||||||
|
</Button>
|
||||||
|
</DropdownMenuTrigger>
|
||||||
|
<DropdownMenuContent align="end">
|
||||||
|
<DropdownMenuLabel>My Account</DropdownMenuLabel>
|
||||||
|
<DropdownMenuSeparator />
|
||||||
|
<DropdownMenuItem>Settings</DropdownMenuItem>
|
||||||
|
<DropdownMenuItem>Support</DropdownMenuItem>
|
||||||
|
<DropdownMenuSeparator />
|
||||||
|
<DropdownMenuItem>Logout</DropdownMenuItem>
|
||||||
|
</DropdownMenuContent>
|
||||||
|
</DropdownMenu>
|
||||||
|
</header>
|
||||||
|
<main class="grid flex-1 items-start gap-4 p-4 sm:px-6 sm:py-0 md:gap-8">
|
||||||
|
<div class="mx-auto grid max-w-[59rem] flex-1 auto-rows-max gap-4">
|
||||||
|
<div class="flex items-center gap-4">
|
||||||
|
<Button variant="outline" size="icon" class="h-7 w-7">
|
||||||
|
<ChevronLeft class="h-4 w-4" />
|
||||||
|
<span class="sr-only">Back</span>
|
||||||
|
</Button>
|
||||||
|
<h1 class="flex-1 shrink-0 whitespace-nowrap text-xl font-semibold tracking-tight sm:grow-0">
|
||||||
|
Pro Controller
|
||||||
|
</h1>
|
||||||
|
<Badge variant="outline" class="ml-auto sm:ml-0">
|
||||||
|
In stock
|
||||||
|
</Badge>
|
||||||
|
<div class="hidden items-center gap-2 md:ml-auto md:flex">
|
||||||
|
<Button variant="outline" size="sm">
|
||||||
|
Discard
|
||||||
|
</Button>
|
||||||
|
<Button size="sm">
|
||||||
|
Save Product
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="grid gap-4 md:grid-cols-[1fr_250px] lg:grid-cols-3 lg:gap-8">
|
||||||
|
<div class="grid auto-rows-max items-start gap-4 lg:col-span-2 lg:gap-8">
|
||||||
|
<Card>
|
||||||
|
<CardHeader>
|
||||||
|
<CardTitle>Product Details</CardTitle>
|
||||||
|
<CardDescription>
|
||||||
|
Lipsum dolor sit amet, consectetur adipiscing elit
|
||||||
|
</CardDescription>
|
||||||
|
</CardHeader>
|
||||||
|
<CardContent>
|
||||||
|
<div class="grid gap-6">
|
||||||
|
<div class="grid gap-3">
|
||||||
|
<Label html-for="name">Name</Label>
|
||||||
|
<Input
|
||||||
|
id="name"
|
||||||
|
type="text"
|
||||||
|
class="w-full"
|
||||||
|
default-value="Gamer Gear Pro Controller"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="grid gap-3">
|
||||||
|
<Label html-for="description">Description</Label>
|
||||||
|
<Textarea
|
||||||
|
id="description"
|
||||||
|
default-value="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam auctor, nisl nec ultricies ultricies, nunc nisl ultricies nunc, nec ultricies nunc nisl nec nunc."
|
||||||
|
class="min-h-32"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
|
<Card>
|
||||||
|
<CardHeader>
|
||||||
|
<CardTitle>Stock</CardTitle>
|
||||||
|
<CardDescription>
|
||||||
|
Lipsum dolor sit amet, consectetur adipiscing elit
|
||||||
|
</CardDescription>
|
||||||
|
</CardHeader>
|
||||||
|
<CardContent>
|
||||||
|
<Table>
|
||||||
|
<TableHeader>
|
||||||
|
<TableRow>
|
||||||
|
<TableHead class="w-[100px]">
|
||||||
|
SKU
|
||||||
|
</TableHead>
|
||||||
|
<TableHead>Stock</TableHead>
|
||||||
|
<TableHead>Price</TableHead>
|
||||||
|
<TableHead class="w-[100px]">
|
||||||
|
Size
|
||||||
|
</TableHead>
|
||||||
|
</TableRow>
|
||||||
|
</TableHeader>
|
||||||
|
<TableBody>
|
||||||
|
<TableRow>
|
||||||
|
<TableCell class="font-semibold">
|
||||||
|
GGPC-001
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<Label html-for="stock-1" class="sr-only">
|
||||||
|
Stock
|
||||||
|
</Label>
|
||||||
|
<Input
|
||||||
|
id="stock-1"
|
||||||
|
type="number"
|
||||||
|
default-value="100"
|
||||||
|
/>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<Label html-for="price-1" class="sr-only">
|
||||||
|
Price
|
||||||
|
</Label>
|
||||||
|
<Input
|
||||||
|
id="price-1"
|
||||||
|
type="number"
|
||||||
|
default-value="99.99"
|
||||||
|
/>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<ToggleGroup
|
||||||
|
type="single"
|
||||||
|
default-value="s"
|
||||||
|
variant="outline"
|
||||||
|
>
|
||||||
|
<ToggleGroupItem value="s">
|
||||||
|
S
|
||||||
|
</ToggleGroupItem>
|
||||||
|
<ToggleGroupItem value="m">
|
||||||
|
M
|
||||||
|
</ToggleGroupItem>
|
||||||
|
<ToggleGroupItem value="l">
|
||||||
|
L
|
||||||
|
</ToggleGroupItem>
|
||||||
|
</ToggleGroup>
|
||||||
|
</TableCell>
|
||||||
|
</TableRow>
|
||||||
|
<TableRow>
|
||||||
|
<TableCell class="font-semibold">
|
||||||
|
GGPC-002
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<Label html-for="stock-2" class="sr-only">
|
||||||
|
Stock
|
||||||
|
</Label>
|
||||||
|
<Input
|
||||||
|
id="stock-2"
|
||||||
|
type="number"
|
||||||
|
default-value="143"
|
||||||
|
/>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<Label html-for="price-2" class="sr-only">
|
||||||
|
Price
|
||||||
|
</Label>
|
||||||
|
<Input
|
||||||
|
id="price-2"
|
||||||
|
type="number"
|
||||||
|
default-value="99.99"
|
||||||
|
/>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<ToggleGroup
|
||||||
|
type="single"
|
||||||
|
default-value="m"
|
||||||
|
variant="outline"
|
||||||
|
>
|
||||||
|
<ToggleGroupItem value="s">
|
||||||
|
S
|
||||||
|
</ToggleGroupItem>
|
||||||
|
<ToggleGroupItem value="m">
|
||||||
|
M
|
||||||
|
</ToggleGroupItem>
|
||||||
|
<ToggleGroupItem value="l">
|
||||||
|
L
|
||||||
|
</ToggleGroupItem>
|
||||||
|
</ToggleGroup>
|
||||||
|
</TableCell>
|
||||||
|
</TableRow>
|
||||||
|
<TableRow>
|
||||||
|
<TableCell class="font-semibold">
|
||||||
|
GGPC-003
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<Label html-for="stock-3" class="sr-only">
|
||||||
|
Stock
|
||||||
|
</Label>
|
||||||
|
<Input
|
||||||
|
id="stock-3"
|
||||||
|
type="number"
|
||||||
|
default-value="32"
|
||||||
|
/>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<Label html-for="price-3" class="sr-only">
|
||||||
|
Stock
|
||||||
|
</Label>
|
||||||
|
<Input
|
||||||
|
id="price-3"
|
||||||
|
type="number"
|
||||||
|
default-value="99.99"
|
||||||
|
/>
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<ToggleGroup
|
||||||
|
type="single"
|
||||||
|
default-value="s"
|
||||||
|
variant="outline"
|
||||||
|
>
|
||||||
|
<ToggleGroupItem value="s">
|
||||||
|
S
|
||||||
|
</ToggleGroupItem>
|
||||||
|
<ToggleGroupItem value="m">
|
||||||
|
M
|
||||||
|
</ToggleGroupItem>
|
||||||
|
<ToggleGroupItem value="l">
|
||||||
|
L
|
||||||
|
</ToggleGroupItem>
|
||||||
|
</ToggleGroup>
|
||||||
|
</TableCell>
|
||||||
|
</TableRow>
|
||||||
|
</TableBody>
|
||||||
|
</Table>
|
||||||
|
</CardContent>
|
||||||
|
<CardFooter class="justify-center border-t p-4">
|
||||||
|
<Button size="sm" variant="ghost" class="gap-1">
|
||||||
|
<PlusCircle class="h-3.5 w-3.5" />
|
||||||
|
Add Variant
|
||||||
|
</Button>
|
||||||
|
</CardFooter>
|
||||||
|
</Card>
|
||||||
|
<Card>
|
||||||
|
<CardHeader>
|
||||||
|
<CardTitle>Product Category</CardTitle>
|
||||||
|
</CardHeader>
|
||||||
|
<CardContent>
|
||||||
|
<div class="grid gap-6 sm:grid-cols-3">
|
||||||
|
<div class="grid gap-3">
|
||||||
|
<Label html-for="category">Category</Label>
|
||||||
|
<Select>
|
||||||
|
<SelectTrigger
|
||||||
|
id="category"
|
||||||
|
aria-label="Select category"
|
||||||
|
>
|
||||||
|
<SelectValue placeholder="Select category" />
|
||||||
|
</SelectTrigger>
|
||||||
|
<SelectContent>
|
||||||
|
<SelectItem value="clothing">
|
||||||
|
Clothing
|
||||||
|
</SelectItem>
|
||||||
|
<SelectItem value="electronics">
|
||||||
|
Electronics
|
||||||
|
</SelectItem>
|
||||||
|
<SelectItem value="accessories">
|
||||||
|
Accessories
|
||||||
|
</SelectItem>
|
||||||
|
</SelectContent>
|
||||||
|
</Select>
|
||||||
|
</div>
|
||||||
|
<div class="grid gap-3">
|
||||||
|
<Label html-for="subcategory">
|
||||||
|
Subcategory (optional)
|
||||||
|
</Label>
|
||||||
|
<Select>
|
||||||
|
<SelectTrigger
|
||||||
|
id="subcategory"
|
||||||
|
aria-label="Select subcategory"
|
||||||
|
>
|
||||||
|
<SelectValue placeholder="Select subcategory" />
|
||||||
|
</SelectTrigger>
|
||||||
|
<SelectContent>
|
||||||
|
<SelectItem value="t-shirts">
|
||||||
|
T-Shirts
|
||||||
|
</SelectItem>
|
||||||
|
<SelectItem value="hoodies">
|
||||||
|
Hoodies
|
||||||
|
</SelectItem>
|
||||||
|
<SelectItem value="sweatshirts">
|
||||||
|
Sweatshirts
|
||||||
|
</SelectItem>
|
||||||
|
</SelectContent>
|
||||||
|
</Select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
|
</div>
|
||||||
|
<div class="grid auto-rows-max items-start gap-4 lg:gap-8">
|
||||||
|
<Card>
|
||||||
|
<CardHeader>
|
||||||
|
<CardTitle>Product Status</CardTitle>
|
||||||
|
</CardHeader>
|
||||||
|
<CardContent>
|
||||||
|
<div class="grid gap-6">
|
||||||
|
<div class="grid gap-3">
|
||||||
|
<Label html-for="status">Status</Label>
|
||||||
|
<Select>
|
||||||
|
<SelectTrigger id="status" aria-label="Select status">
|
||||||
|
<SelectValue placeholder="Select status" />
|
||||||
|
</SelectTrigger>
|
||||||
|
<SelectContent>
|
||||||
|
<SelectItem value="draft">
|
||||||
|
Draft
|
||||||
|
</SelectItem>
|
||||||
|
<SelectItem value="published">
|
||||||
|
Active
|
||||||
|
</SelectItem>
|
||||||
|
<SelectItem value="archived">
|
||||||
|
Archived
|
||||||
|
</SelectItem>
|
||||||
|
</SelectContent>
|
||||||
|
</Select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
|
<Card class="overflow-hidden">
|
||||||
|
<CardHeader>
|
||||||
|
<CardTitle>Product imgs</CardTitle>
|
||||||
|
<CardDescription>
|
||||||
|
Lipsum dolor sit amet, consectetur adipiscing elit
|
||||||
|
</CardDescription>
|
||||||
|
</CardHeader>
|
||||||
|
<CardContent>
|
||||||
|
<div class="grid gap-2">
|
||||||
|
<img
|
||||||
|
alt="Product image"
|
||||||
|
class="aspect-square w-full rounded-md object-cover"
|
||||||
|
height="300"
|
||||||
|
src="/placeholder.svg"
|
||||||
|
width="300"
|
||||||
|
>
|
||||||
|
<div class="grid grid-cols-3 gap-2">
|
||||||
|
<button>
|
||||||
|
<img
|
||||||
|
alt="Product image"
|
||||||
|
class="aspect-square w-full rounded-md object-cover"
|
||||||
|
height="84"
|
||||||
|
src="/placeholder.svg"
|
||||||
|
width="84"
|
||||||
|
>
|
||||||
|
</button>
|
||||||
|
<button>
|
||||||
|
<img
|
||||||
|
alt="Product image"
|
||||||
|
class="aspect-square w-full rounded-md object-cover"
|
||||||
|
height="84"
|
||||||
|
src="/placeholder.svg"
|
||||||
|
width="84"
|
||||||
|
>
|
||||||
|
</button>
|
||||||
|
<button class="flex aspect-square w-full items-center justify-center rounded-md border border-dashed">
|
||||||
|
<Upload class="h-4 w-4 text-muted-foreground" />
|
||||||
|
<span class="sr-only">Upload</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
|
<Card>
|
||||||
|
<CardHeader>
|
||||||
|
<CardTitle>Archive Product</CardTitle>
|
||||||
|
<CardDescription>
|
||||||
|
Lipsum dolor sit amet, consectetur adipiscing elit.
|
||||||
|
</CardDescription>
|
||||||
|
</CardHeader>
|
||||||
|
<CardContent>
|
||||||
|
<div />
|
||||||
|
<Button size="sm" variant="secondary">
|
||||||
|
Archive Product
|
||||||
|
</Button>
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="flex items-center justify-center gap-2 md:hidden">
|
||||||
|
<Button variant="outline" size="sm">
|
||||||
|
Discard
|
||||||
|
</Button>
|
||||||
|
<Button size="sm">
|
||||||
|
Save Product
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
Loading…
Reference in New Issue
Block a user