Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
134 changes: 129 additions & 5 deletions app/blocks/charts/charts.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { Users } from "lucide-react";

import { ChartExample } from "@/components/ui/8bit/blocks/chart";
import ChartAreaStep from "@/components/ui/8bit/blocks/chart-area-step";
import ChartBarMultiple from "@/components/ui/8bit/blocks/chart-bar";
Expand Down Expand Up @@ -36,7 +34,49 @@ export default function ChartsBlocks() {
<CardTitle className="text-sm font-medium">
Total visitors in the last 6 months
</CardTitle>
<Users className="size-4 text-muted-foreground" />
<svg
width="50"
height="50"
viewBox="0 0 256 256"
fill="currentColor"
xmlns="http://www.w3.org/2000/svg"
stroke="currentColor"
strokeWidth="0.25"
className="size-6"
aria-label="user"
>
<rect x="64" y="144" width="14" height="14" rx="1"></rect>
<rect x="96" y="80" width="14" height="14" rx="1"></rect>
<rect x="144" y="80" width="14" height="14" rx="1"></rect>
<rect x="192" y="192" width="14" height="14" rx="1"></rect>
<rect x="176" y="192" width="14" height="14" rx="1"></rect>
<rect x="64" y="192" width="14" height="14" rx="1"></rect>
<rect x="48" y="176" width="14" height="14" rx="1"></rect>
<rect x="48" y="192" width="14" height="14" rx="1"></rect>
<rect x="192" y="160" width="14" height="14" rx="1"></rect>
<rect x="176" y="144" width="14" height="14" rx="1"></rect>
<rect x="192" y="176" width="14" height="14" rx="1"></rect>
<rect x="48" y="160" width="14" height="14" rx="1"></rect>
<rect x="96" y="64" width="14" height="14" rx="1"></rect>
<rect x="112" y="48" width="14" height="14" rx="1"></rect>
<rect x="128" y="48" width="14" height="14" rx="1"></rect>
<rect x="144" y="64" width="14" height="14" rx="1"></rect>
<rect x="144" y="64" width="14" height="14" rx="1"></rect>
<rect x="112" y="96" width="14" height="14" rx="1"></rect>
<rect x="128" y="96" width="14" height="14" rx="1"></rect>
<rect x="80" y="144" width="14" height="14" rx="1"></rect>
<rect x="96" y="144" width="14" height="14" rx="1"></rect>
<rect x="112" y="144" width="14" height="14" rx="1"></rect>
<rect x="128" y="144" width="14" height="14" rx="1"></rect>
<rect x="144" y="144" width="14" height="14" rx="1"></rect>
<rect x="160" y="144" width="14" height="14" rx="1"></rect>
<rect x="80" y="192" width="14" height="14" rx="1"></rect>
<rect x="96" y="192" width="14" height="14" rx="1"></rect>
<rect x="112" y="192" width="14" height="14" rx="1"></rect>
<rect x="128" y="192" width="14" height="14" rx="1"></rect>
<rect x="144" y="192" width="14" height="14" rx="1"></rect>
<rect x="160" y="192" width="14" height="14" rx="1"></rect>
</svg>
</CardHeader>
<CardContent>
<ChartExample />
Expand Down Expand Up @@ -64,7 +104,49 @@ export default function ChartsBlocks() {
<CardTitle className="text-sm font-medium">
Total visitors in the last 6 months
</CardTitle>
<Users className="size-4 text-muted-foreground" />
<svg
width="50"
height="50"
viewBox="0 0 256 256"
fill="currentColor"
xmlns="http://www.w3.org/2000/svg"
stroke="currentColor"
strokeWidth="0.25"
className="size-6"
aria-label="user"
>
<rect x="64" y="144" width="14" height="14" rx="1"></rect>
<rect x="96" y="80" width="14" height="14" rx="1"></rect>
<rect x="144" y="80" width="14" height="14" rx="1"></rect>
<rect x="192" y="192" width="14" height="14" rx="1"></rect>
<rect x="176" y="192" width="14" height="14" rx="1"></rect>
<rect x="64" y="192" width="14" height="14" rx="1"></rect>
<rect x="48" y="176" width="14" height="14" rx="1"></rect>
<rect x="48" y="192" width="14" height="14" rx="1"></rect>
<rect x="192" y="160" width="14" height="14" rx="1"></rect>
<rect x="176" y="144" width="14" height="14" rx="1"></rect>
<rect x="192" y="176" width="14" height="14" rx="1"></rect>
<rect x="48" y="160" width="14" height="14" rx="1"></rect>
<rect x="96" y="64" width="14" height="14" rx="1"></rect>
<rect x="112" y="48" width="14" height="14" rx="1"></rect>
<rect x="128" y="48" width="14" height="14" rx="1"></rect>
<rect x="144" y="64" width="14" height="14" rx="1"></rect>
<rect x="144" y="64" width="14" height="14" rx="1"></rect>
<rect x="112" y="96" width="14" height="14" rx="1"></rect>
<rect x="128" y="96" width="14" height="14" rx="1"></rect>
<rect x="80" y="144" width="14" height="14" rx="1"></rect>
<rect x="96" y="144" width="14" height="14" rx="1"></rect>
<rect x="112" y="144" width="14" height="14" rx="1"></rect>
<rect x="128" y="144" width="14" height="14" rx="1"></rect>
<rect x="144" y="144" width="14" height="14" rx="1"></rect>
<rect x="160" y="144" width="14" height="14" rx="1"></rect>
<rect x="80" y="192" width="14" height="14" rx="1"></rect>
<rect x="96" y="192" width="14" height="14" rx="1"></rect>
<rect x="112" y="192" width="14" height="14" rx="1"></rect>
<rect x="128" y="192" width="14" height="14" rx="1"></rect>
<rect x="144" y="192" width="14" height="14" rx="1"></rect>
<rect x="160" y="192" width="14" height="14" rx="1"></rect>
</svg>
</CardHeader>
<CardContent>
<ChartBarMultiple />
Expand Down Expand Up @@ -92,7 +174,49 @@ export default function ChartsBlocks() {
<CardTitle className="text-sm font-medium">
Total visitors in the last 6 months
</CardTitle>
<Users className="size-4 text-muted-foreground" />
<svg
width="50"
height="50"
viewBox="0 0 256 256"
fill="currentColor"
xmlns="http://www.w3.org/2000/svg"
stroke="currentColor"
strokeWidth="0.25"
className="size-6"
aria-label="user"
>
<rect x="64" y="144" width="14" height="14" rx="1"></rect>
<rect x="96" y="80" width="14" height="14" rx="1"></rect>
<rect x="144" y="80" width="14" height="14" rx="1"></rect>
<rect x="192" y="192" width="14" height="14" rx="1"></rect>
<rect x="176" y="192" width="14" height="14" rx="1"></rect>
<rect x="64" y="192" width="14" height="14" rx="1"></rect>
<rect x="48" y="176" width="14" height="14" rx="1"></rect>
<rect x="48" y="192" width="14" height="14" rx="1"></rect>
<rect x="192" y="160" width="14" height="14" rx="1"></rect>
<rect x="176" y="144" width="14" height="14" rx="1"></rect>
<rect x="192" y="176" width="14" height="14" rx="1"></rect>
<rect x="48" y="160" width="14" height="14" rx="1"></rect>
<rect x="96" y="64" width="14" height="14" rx="1"></rect>
<rect x="112" y="48" width="14" height="14" rx="1"></rect>
<rect x="128" y="48" width="14" height="14" rx="1"></rect>
<rect x="144" y="64" width="14" height="14" rx="1"></rect>
<rect x="144" y="64" width="14" height="14" rx="1"></rect>
<rect x="112" y="96" width="14" height="14" rx="1"></rect>
<rect x="128" y="96" width="14" height="14" rx="1"></rect>
<rect x="80" y="144" width="14" height="14" rx="1"></rect>
<rect x="96" y="144" width="14" height="14" rx="1"></rect>
<rect x="112" y="144" width="14" height="14" rx="1"></rect>
<rect x="128" y="144" width="14" height="14" rx="1"></rect>
<rect x="144" y="144" width="14" height="14" rx="1"></rect>
<rect x="160" y="144" width="14" height="14" rx="1"></rect>
<rect x="80" y="192" width="14" height="14" rx="1"></rect>
<rect x="96" y="192" width="14" height="14" rx="1"></rect>
<rect x="112" y="192" width="14" height="14" rx="1"></rect>
<rect x="128" y="192" width="14" height="14" rx="1"></rect>
<rect x="144" y="192" width="14" height="14" rx="1"></rect>
<rect x="160" y="192" width="14" height="14" rx="1"></rect>
</svg>
</CardHeader>
<CardContent>
<ChartAreaStep />
Expand Down
38 changes: 6 additions & 32 deletions app/docs/components/command/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,6 @@ export default function CommandPage() {
<CodeSnippet>{`"use client"

import * as React from "react"
import {
Calculator,
Calendar,
CreditCard,
Settings,
Smile,
User,
} from "lucide-react"

import {
Command,
Expand All @@ -89,28 +81,19 @@ const suggestionCommands = [
{
value: "Calendar",
symbol: (
<>
<Calendar />
<span>Calendar</span>
</>
<span>Calendar</span>
),
},
{
value: "Search Emoji",
symbol: (
<>
<Smile />
<span>Search Emoji</span>
</>
<span>Search Emoji</span>
),
},
{
value: "Calculator",
symbol: (
<>
<Calculator />
<span>Calculator</span>
</>
<span>Calculator</span>
),
},
]
Expand All @@ -119,30 +102,21 @@ const settingCommands = [
{
value: "Profile",
symbol: (
<>
<User />
<span>Profile</span>
</>
<span>Profile</span>
),
shortcut: "⌘P",
},
{
value: "Billing",
symbol: (
<>
<CreditCard />
<span>Billing</span>
</>
<span>Billing</span>
),
shortcut: "⌘B",
},
{
value: "Settings",
symbol: (
<>
<Settings />
<span>Settings</span>
</>
<span>Settings</span>
),
shortcut: "⌘S",
},
Expand Down
42 changes: 6 additions & 36 deletions components/examples/command.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,62 +25,32 @@ import {
const suggestionCommands = [
{
value: "Calendar",
symbol: (
<>
<Calendar />
<span>Calendar</span>
</>
),
symbol: <span>Calendar</span>,
},
{
value: "Search Emoji",
symbol: (
<>
<Smile />
<span>Search Emoji</span>
</>
),
symbol: <span>Search Emoji</span>,
},
{
value: "Calculator",
symbol: (
<>
<Calculator />
<span>Calculator</span>
</>
),
symbol: <span>Calculator</span>,
},
];

const settingCommands = [
{
value: "Profile",
symbol: (
<>
<User />
<span>Profile</span>
</>
),
symbol: <span>Profile</span>,
shortcut: "⌘P",
},
{
value: "Billing",
symbol: (
<>
<CreditCard />
<span>Billing</span>
</>
),
symbol: <span>Billing</span>,
shortcut: "⌘B",
},
{
value: "Settings",
symbol: (
<>
<Settings />
<span>Settings</span>
</>
),
symbol: <span>Settings</span>,
shortcut: "⌘S",
},
];
Expand Down
Loading