- Trending up by 5.2% this month
- {' '}
+ Trending up by 5.2% this month{" "}
diff --git a/apps/web/__registry__/default/block/chart-area-interactive.tsx b/apps/web/__registry__/default/block/chart-area-interactive.tsx
index 779569b6..2b90917f 100644
--- a/apps/web/__registry__/default/block/chart-area-interactive.tsx
+++ b/apps/web/__registry__/default/block/chart-area-interactive.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import * as React from 'react'
-import { Area, AreaChart, CartesianGrid, XAxis } from 'recharts'
+import * as React from "react"
+import { Area, AreaChart, CartesianGrid, XAxis } from "recharts"
import {
Card,
@@ -9,146 +9,143 @@ import {
CardDescription,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartLegend,
ChartLegendContent,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
-} from '~/registry/default/ui/select'
+} from "~/registry/default/ui/select"
-export const description = 'An interactive area chart'
+export const description = "An interactive area chart"
const chartData = [
- { date: '2024-04-01', desktop: 222, mobile: 150 },
- { date: '2024-04-02', desktop: 97, mobile: 180 },
- { date: '2024-04-03', desktop: 167, mobile: 120 },
- { date: '2024-04-04', desktop: 242, mobile: 260 },
- { date: '2024-04-05', desktop: 373, mobile: 290 },
- { date: '2024-04-06', desktop: 301, mobile: 340 },
- { date: '2024-04-07', desktop: 245, mobile: 180 },
- { date: '2024-04-08', desktop: 409, mobile: 320 },
- { date: '2024-04-09', desktop: 59, mobile: 110 },
- { date: '2024-04-10', desktop: 261, mobile: 190 },
- { date: '2024-04-11', desktop: 327, mobile: 350 },
- { date: '2024-04-12', desktop: 292, mobile: 210 },
- { date: '2024-04-13', desktop: 342, mobile: 380 },
- { date: '2024-04-14', desktop: 137, mobile: 220 },
- { date: '2024-04-15', desktop: 120, mobile: 170 },
- { date: '2024-04-16', desktop: 138, mobile: 190 },
- { date: '2024-04-17', desktop: 446, mobile: 360 },
- { date: '2024-04-18', desktop: 364, mobile: 410 },
- { date: '2024-04-19', desktop: 243, mobile: 180 },
- { date: '2024-04-20', desktop: 89, mobile: 150 },
- { date: '2024-04-21', desktop: 137, mobile: 200 },
- { date: '2024-04-22', desktop: 224, mobile: 170 },
- { date: '2024-04-23', desktop: 138, mobile: 230 },
- { date: '2024-04-24', desktop: 387, mobile: 290 },
- { date: '2024-04-25', desktop: 215, mobile: 250 },
- { date: '2024-04-26', desktop: 75, mobile: 130 },
- { date: '2024-04-27', desktop: 383, mobile: 420 },
- { date: '2024-04-28', desktop: 122, mobile: 180 },
- { date: '2024-04-29', desktop: 315, mobile: 240 },
- { date: '2024-04-30', desktop: 454, mobile: 380 },
- { date: '2024-05-01', desktop: 165, mobile: 220 },
- { date: '2024-05-02', desktop: 293, mobile: 310 },
- { date: '2024-05-03', desktop: 247, mobile: 190 },
- { date: '2024-05-04', desktop: 385, mobile: 420 },
- { date: '2024-05-05', desktop: 481, mobile: 390 },
- { date: '2024-05-06', desktop: 498, mobile: 520 },
- { date: '2024-05-07', desktop: 388, mobile: 300 },
- { date: '2024-05-08', desktop: 149, mobile: 210 },
- { date: '2024-05-09', desktop: 227, mobile: 180 },
- { date: '2024-05-10', desktop: 293, mobile: 330 },
- { date: '2024-05-11', desktop: 335, mobile: 270 },
- { date: '2024-05-12', desktop: 197, mobile: 240 },
- { date: '2024-05-13', desktop: 197, mobile: 160 },
- { date: '2024-05-14', desktop: 448, mobile: 490 },
- { date: '2024-05-15', desktop: 473, mobile: 380 },
- { date: '2024-05-16', desktop: 338, mobile: 400 },
- { date: '2024-05-17', desktop: 499, mobile: 420 },
- { date: '2024-05-18', desktop: 315, mobile: 350 },
- { date: '2024-05-19', desktop: 235, mobile: 180 },
- { date: '2024-05-20', desktop: 177, mobile: 230 },
- { date: '2024-05-21', desktop: 82, mobile: 140 },
- { date: '2024-05-22', desktop: 81, mobile: 120 },
- { date: '2024-05-23', desktop: 252, mobile: 290 },
- { date: '2024-05-24', desktop: 294, mobile: 220 },
- { date: '2024-05-25', desktop: 201, mobile: 250 },
- { date: '2024-05-26', desktop: 213, mobile: 170 },
- { date: '2024-05-27', desktop: 420, mobile: 460 },
- { date: '2024-05-28', desktop: 233, mobile: 190 },
- { date: '2024-05-29', desktop: 78, mobile: 130 },
- { date: '2024-05-30', desktop: 340, mobile: 280 },
- { date: '2024-05-31', desktop: 178, mobile: 230 },
- { date: '2024-06-01', desktop: 178, mobile: 200 },
- { date: '2024-06-02', desktop: 470, mobile: 410 },
- { date: '2024-06-03', desktop: 103, mobile: 160 },
- { date: '2024-06-04', desktop: 439, mobile: 380 },
- { date: '2024-06-05', desktop: 88, mobile: 140 },
- { date: '2024-06-06', desktop: 294, mobile: 250 },
- { date: '2024-06-07', desktop: 323, mobile: 370 },
- { date: '2024-06-08', desktop: 385, mobile: 320 },
- { date: '2024-06-09', desktop: 438, mobile: 480 },
- { date: '2024-06-10', desktop: 155, mobile: 200 },
- { date: '2024-06-11', desktop: 92, mobile: 150 },
- { date: '2024-06-12', desktop: 492, mobile: 420 },
- { date: '2024-06-13', desktop: 81, mobile: 130 },
- { date: '2024-06-14', desktop: 426, mobile: 380 },
- { date: '2024-06-15', desktop: 307, mobile: 350 },
- { date: '2024-06-16', desktop: 371, mobile: 310 },
- { date: '2024-06-17', desktop: 475, mobile: 520 },
- { date: '2024-06-18', desktop: 107, mobile: 170 },
- { date: '2024-06-19', desktop: 341, mobile: 290 },
- { date: '2024-06-20', desktop: 408, mobile: 450 },
- { date: '2024-06-21', desktop: 169, mobile: 210 },
- { date: '2024-06-22', desktop: 317, mobile: 270 },
- { date: '2024-06-23', desktop: 480, mobile: 530 },
- { date: '2024-06-24', desktop: 132, mobile: 180 },
- { date: '2024-06-25', desktop: 141, mobile: 190 },
- { date: '2024-06-26', desktop: 434, mobile: 380 },
- { date: '2024-06-27', desktop: 448, mobile: 490 },
- { date: '2024-06-28', desktop: 149, mobile: 200 },
- { date: '2024-06-29', desktop: 103, mobile: 160 },
- { date: '2024-06-30', desktop: 446, mobile: 400 },
+ { date: "2024-04-01", desktop: 222, mobile: 150 },
+ { date: "2024-04-02", desktop: 97, mobile: 180 },
+ { date: "2024-04-03", desktop: 167, mobile: 120 },
+ { date: "2024-04-04", desktop: 242, mobile: 260 },
+ { date: "2024-04-05", desktop: 373, mobile: 290 },
+ { date: "2024-04-06", desktop: 301, mobile: 340 },
+ { date: "2024-04-07", desktop: 245, mobile: 180 },
+ { date: "2024-04-08", desktop: 409, mobile: 320 },
+ { date: "2024-04-09", desktop: 59, mobile: 110 },
+ { date: "2024-04-10", desktop: 261, mobile: 190 },
+ { date: "2024-04-11", desktop: 327, mobile: 350 },
+ { date: "2024-04-12", desktop: 292, mobile: 210 },
+ { date: "2024-04-13", desktop: 342, mobile: 380 },
+ { date: "2024-04-14", desktop: 137, mobile: 220 },
+ { date: "2024-04-15", desktop: 120, mobile: 170 },
+ { date: "2024-04-16", desktop: 138, mobile: 190 },
+ { date: "2024-04-17", desktop: 446, mobile: 360 },
+ { date: "2024-04-18", desktop: 364, mobile: 410 },
+ { date: "2024-04-19", desktop: 243, mobile: 180 },
+ { date: "2024-04-20", desktop: 89, mobile: 150 },
+ { date: "2024-04-21", desktop: 137, mobile: 200 },
+ { date: "2024-04-22", desktop: 224, mobile: 170 },
+ { date: "2024-04-23", desktop: 138, mobile: 230 },
+ { date: "2024-04-24", desktop: 387, mobile: 290 },
+ { date: "2024-04-25", desktop: 215, mobile: 250 },
+ { date: "2024-04-26", desktop: 75, mobile: 130 },
+ { date: "2024-04-27", desktop: 383, mobile: 420 },
+ { date: "2024-04-28", desktop: 122, mobile: 180 },
+ { date: "2024-04-29", desktop: 315, mobile: 240 },
+ { date: "2024-04-30", desktop: 454, mobile: 380 },
+ { date: "2024-05-01", desktop: 165, mobile: 220 },
+ { date: "2024-05-02", desktop: 293, mobile: 310 },
+ { date: "2024-05-03", desktop: 247, mobile: 190 },
+ { date: "2024-05-04", desktop: 385, mobile: 420 },
+ { date: "2024-05-05", desktop: 481, mobile: 390 },
+ { date: "2024-05-06", desktop: 498, mobile: 520 },
+ { date: "2024-05-07", desktop: 388, mobile: 300 },
+ { date: "2024-05-08", desktop: 149, mobile: 210 },
+ { date: "2024-05-09", desktop: 227, mobile: 180 },
+ { date: "2024-05-10", desktop: 293, mobile: 330 },
+ { date: "2024-05-11", desktop: 335, mobile: 270 },
+ { date: "2024-05-12", desktop: 197, mobile: 240 },
+ { date: "2024-05-13", desktop: 197, mobile: 160 },
+ { date: "2024-05-14", desktop: 448, mobile: 490 },
+ { date: "2024-05-15", desktop: 473, mobile: 380 },
+ { date: "2024-05-16", desktop: 338, mobile: 400 },
+ { date: "2024-05-17", desktop: 499, mobile: 420 },
+ { date: "2024-05-18", desktop: 315, mobile: 350 },
+ { date: "2024-05-19", desktop: 235, mobile: 180 },
+ { date: "2024-05-20", desktop: 177, mobile: 230 },
+ { date: "2024-05-21", desktop: 82, mobile: 140 },
+ { date: "2024-05-22", desktop: 81, mobile: 120 },
+ { date: "2024-05-23", desktop: 252, mobile: 290 },
+ { date: "2024-05-24", desktop: 294, mobile: 220 },
+ { date: "2024-05-25", desktop: 201, mobile: 250 },
+ { date: "2024-05-26", desktop: 213, mobile: 170 },
+ { date: "2024-05-27", desktop: 420, mobile: 460 },
+ { date: "2024-05-28", desktop: 233, mobile: 190 },
+ { date: "2024-05-29", desktop: 78, mobile: 130 },
+ { date: "2024-05-30", desktop: 340, mobile: 280 },
+ { date: "2024-05-31", desktop: 178, mobile: 230 },
+ { date: "2024-06-01", desktop: 178, mobile: 200 },
+ { date: "2024-06-02", desktop: 470, mobile: 410 },
+ { date: "2024-06-03", desktop: 103, mobile: 160 },
+ { date: "2024-06-04", desktop: 439, mobile: 380 },
+ { date: "2024-06-05", desktop: 88, mobile: 140 },
+ { date: "2024-06-06", desktop: 294, mobile: 250 },
+ { date: "2024-06-07", desktop: 323, mobile: 370 },
+ { date: "2024-06-08", desktop: 385, mobile: 320 },
+ { date: "2024-06-09", desktop: 438, mobile: 480 },
+ { date: "2024-06-10", desktop: 155, mobile: 200 },
+ { date: "2024-06-11", desktop: 92, mobile: 150 },
+ { date: "2024-06-12", desktop: 492, mobile: 420 },
+ { date: "2024-06-13", desktop: 81, mobile: 130 },
+ { date: "2024-06-14", desktop: 426, mobile: 380 },
+ { date: "2024-06-15", desktop: 307, mobile: 350 },
+ { date: "2024-06-16", desktop: 371, mobile: 310 },
+ { date: "2024-06-17", desktop: 475, mobile: 520 },
+ { date: "2024-06-18", desktop: 107, mobile: 170 },
+ { date: "2024-06-19", desktop: 341, mobile: 290 },
+ { date: "2024-06-20", desktop: 408, mobile: 450 },
+ { date: "2024-06-21", desktop: 169, mobile: 210 },
+ { date: "2024-06-22", desktop: 317, mobile: 270 },
+ { date: "2024-06-23", desktop: 480, mobile: 530 },
+ { date: "2024-06-24", desktop: 132, mobile: 180 },
+ { date: "2024-06-25", desktop: 141, mobile: 190 },
+ { date: "2024-06-26", desktop: 434, mobile: 380 },
+ { date: "2024-06-27", desktop: 448, mobile: 490 },
+ { date: "2024-06-28", desktop: 149, mobile: 200 },
+ { date: "2024-06-29", desktop: 103, mobile: 160 },
+ { date: "2024-06-30", desktop: 446, mobile: 400 },
]
const chartConfig = {
visitors: {
- label: 'Visitors',
+ label: "Visitors",
},
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
mobile: {
- label: 'Mobile',
- color: 'hsl(var(--chart-2))',
+ label: "Mobile",
+ color: "hsl(var(--chart-2))",
},
} satisfies ChartConfig
export default function Component() {
- const [timeRange, setTimeRange] = React.useState('90d')
+ const [timeRange, setTimeRange] = React.useState("90d")
const filteredData = chartData.filter((item) => {
const date = new Date(item.date)
const now = new Date()
let daysToSubtract = 90
- if (timeRange === '30d') {
+ if (timeRange === "30d") {
daysToSubtract = 30
- }
- else if (timeRange === '7d') {
+ } else if (timeRange === "7d") {
daysToSubtract = 7
}
now.setDate(now.getDate() - daysToSubtract)
@@ -191,7 +188,13 @@ export default function Component() {
>
-
+
-
+
{
const date = new Date(value)
- return date.toLocaleDateString('en-US', {
- month: 'short',
- day: 'numeric',
+ return date.toLocaleDateString("en-US", {
+ month: "short",
+ day: "numeric",
})
}}
/>
{
- return new Date(value).toLocaleDateString('en-US', {
- month: 'short',
- day: 'numeric',
- })
+ return new Date(value).toLocaleDateString(
+ "en-US",
+ {
+ month: "short",
+ day: "numeric",
+ },
+ )
}}
indicator="dot"
/>
- )}
+ }
/>
value.slice(0, 3)}
+ tickFormatter={(value) => value.slice(0, 3)}
/>
- Trending up by 5.2% this month
- {' '}
+ Trending up by 5.2% this month{" "}
diff --git a/apps/web/__registry__/default/block/chart-area-linear.tsx b/apps/web/__registry__/default/block/chart-area-linear.tsx
index ac0533c9..420fb965 100644
--- a/apps/web/__registry__/default/block/chart-area-linear.tsx
+++ b/apps/web/__registry__/default/block/chart-area-linear.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { Area, AreaChart, CartesianGrid, XAxis } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { Area, AreaChart, CartesianGrid, XAxis } from "recharts"
import {
Card,
@@ -10,31 +10,29 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A linear area chart'
+export const description = "A linear area chart"
const chartData = [
- { month: 'January', desktop: 186 },
- { month: 'February', desktop: 305 },
- { month: 'March', desktop: 237 },
- { month: 'April', desktop: 73 },
- { month: 'May', desktop: 209 },
- { month: 'June', desktop: 214 },
+ { month: "January", desktop: 186 },
+ { month: "February", desktop: 305 },
+ { month: "March", desktop: 237 },
+ { month: "April", desktop: 73 },
+ { month: "May", desktop: 209 },
+ { month: "June", desktop: 214 },
]
const chartConfig = {
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
} satisfies ChartConfig
@@ -63,7 +61,7 @@ export default function Component() {
tickLine={false}
axisLine={false}
tickMargin={8}
- tickFormatter={value => value.slice(0, 3)}
+ tickFormatter={(value) => value.slice(0, 3)}
/>
- Trending up by 5.2% this month
- {' '}
+ Trending up by 5.2% this month{" "}
diff --git a/apps/web/__registry__/default/block/chart-area-stacked-expand.tsx b/apps/web/__registry__/default/block/chart-area-stacked-expand.tsx
index 51a62bac..8254f759 100644
--- a/apps/web/__registry__/default/block/chart-area-stacked-expand.tsx
+++ b/apps/web/__registry__/default/block/chart-area-stacked-expand.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { Area, AreaChart, CartesianGrid, XAxis } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { Area, AreaChart, CartesianGrid, XAxis } from "recharts"
import {
Card,
@@ -10,39 +10,37 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A stacked area chart with expand stacking'
+export const description = "A stacked area chart with expand stacking"
const chartData = [
- { month: 'January', desktop: 186, mobile: 80, other: 45 },
- { month: 'February', desktop: 305, mobile: 200, other: 100 },
- { month: 'March', desktop: 237, mobile: 120, other: 150 },
- { month: 'April', desktop: 73, mobile: 190, other: 50 },
- { month: 'May', desktop: 209, mobile: 130, other: 100 },
- { month: 'June', desktop: 214, mobile: 140, other: 160 },
+ { month: "January", desktop: 186, mobile: 80, other: 45 },
+ { month: "February", desktop: 305, mobile: 200, other: 100 },
+ { month: "March", desktop: 237, mobile: 120, other: 150 },
+ { month: "April", desktop: 73, mobile: 190, other: 50 },
+ { month: "May", desktop: 209, mobile: 130, other: 100 },
+ { month: "June", desktop: 214, mobile: 140, other: 160 },
]
const chartConfig = {
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
mobile: {
- label: 'Mobile',
- color: 'hsl(var(--chart-2))',
+ label: "Mobile",
+ color: "hsl(var(--chart-2))",
},
other: {
- label: 'Other',
- color: 'hsl(var(--chart-3))',
+ label: "Other",
+ color: "hsl(var(--chart-3))",
},
} satisfies ChartConfig
@@ -73,7 +71,7 @@ export default function Component() {
tickLine={false}
axisLine={false}
tickMargin={8}
- tickFormatter={value => value.slice(0, 3)}
+ tickFormatter={(value) => value.slice(0, 3)}
/>
- Trending up by 5.2% this month
- {' '}
+ Trending up by 5.2% this month{" "}
diff --git a/apps/web/__registry__/default/block/chart-area-stacked.tsx b/apps/web/__registry__/default/block/chart-area-stacked.tsx
index 3e34b73d..e6c3f80e 100644
--- a/apps/web/__registry__/default/block/chart-area-stacked.tsx
+++ b/apps/web/__registry__/default/block/chart-area-stacked.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { Area, AreaChart, CartesianGrid, XAxis } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { Area, AreaChart, CartesianGrid, XAxis } from "recharts"
import {
Card,
@@ -10,35 +10,33 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A stacked area chart'
+export const description = "A stacked area chart"
const chartData = [
- { month: 'January', desktop: 186, mobile: 80 },
- { month: 'February', desktop: 305, mobile: 200 },
- { month: 'March', desktop: 237, mobile: 120 },
- { month: 'April', desktop: 73, mobile: 190 },
- { month: 'May', desktop: 209, mobile: 130 },
- { month: 'June', desktop: 214, mobile: 140 },
+ { month: "January", desktop: 186, mobile: 80 },
+ { month: "February", desktop: 305, mobile: 200 },
+ { month: "March", desktop: 237, mobile: 120 },
+ { month: "April", desktop: 73, mobile: 190 },
+ { month: "May", desktop: 209, mobile: 130 },
+ { month: "June", desktop: 214, mobile: 140 },
]
const chartConfig = {
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
mobile: {
- label: 'Mobile',
- color: 'hsl(var(--chart-2))',
+ label: "Mobile",
+ color: "hsl(var(--chart-2))",
},
} satisfies ChartConfig
@@ -67,7 +65,7 @@ export default function Component() {
tickLine={false}
axisLine={false}
tickMargin={8}
- tickFormatter={value => value.slice(0, 3)}
+ tickFormatter={(value) => value.slice(0, 3)}
/>
- Trending up by 5.2% this month
- {' '}
+ Trending up by 5.2% this month{" "}
diff --git a/apps/web/__registry__/default/block/chart-area-step.tsx b/apps/web/__registry__/default/block/chart-area-step.tsx
index 2a51cd45..846e53b0 100644
--- a/apps/web/__registry__/default/block/chart-area-step.tsx
+++ b/apps/web/__registry__/default/block/chart-area-step.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { Activity, TrendingUp } from 'lucide-react'
-import { Area, AreaChart, CartesianGrid, XAxis } from 'recharts'
+import { Activity, TrendingUp } from "lucide-react"
+import { Area, AreaChart, CartesianGrid, XAxis } from "recharts"
import {
Card,
@@ -10,31 +10,29 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A step area chart'
+export const description = "A step area chart"
const chartData = [
- { month: 'January', desktop: 186 },
- { month: 'February', desktop: 305 },
- { month: 'March', desktop: 237 },
- { month: 'April', desktop: 73 },
- { month: 'May', desktop: 209 },
- { month: 'June', desktop: 214 },
+ { month: "January", desktop: 186 },
+ { month: "February", desktop: 305 },
+ { month: "March", desktop: 237 },
+ { month: "April", desktop: 73 },
+ { month: "May", desktop: 209 },
+ { month: "June", desktop: 214 },
]
const chartConfig = {
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
icon: Activity,
},
} satisfies ChartConfig
@@ -64,7 +62,7 @@ export default function Component() {
tickLine={false}
axisLine={false}
tickMargin={8}
- tickFormatter={value => value.slice(0, 3)}
+ tickFormatter={(value) => value.slice(0, 3)}
/>
- Trending up by 5.2% this month
- {' '}
+ Trending up by 5.2% this month{" "}
diff --git a/apps/web/__registry__/default/block/chart-bar-active.tsx b/apps/web/__registry__/default/block/chart-bar-active.tsx
index 037029db..e1425973 100644
--- a/apps/web/__registry__/default/block/chart-bar-active.tsx
+++ b/apps/web/__registry__/default/block/chart-bar-active.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { Bar, BarChart, CartesianGrid, Rectangle, XAxis } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { Bar, BarChart, CartesianGrid, Rectangle, XAxis } from "recharts"
import {
Card,
@@ -10,49 +10,47 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A bar chart with an active bar'
+export const description = "A bar chart with an active bar"
const chartData = [
- { browser: 'chrome', visitors: 187, fill: 'var(--color-chrome)' },
- { browser: 'safari', visitors: 200, fill: 'var(--color-safari)' },
- { browser: 'firefox', visitors: 275, fill: 'var(--color-firefox)' },
- { browser: 'edge', visitors: 173, fill: 'var(--color-edge)' },
- { browser: 'other', visitors: 90, fill: 'var(--color-other)' },
+ { browser: "chrome", visitors: 187, fill: "var(--color-chrome)" },
+ { browser: "safari", visitors: 200, fill: "var(--color-safari)" },
+ { browser: "firefox", visitors: 275, fill: "var(--color-firefox)" },
+ { browser: "edge", visitors: 173, fill: "var(--color-edge)" },
+ { browser: "other", visitors: 90, fill: "var(--color-other)" },
]
const chartConfig = {
visitors: {
- label: 'Visitors',
+ label: "Visitors",
},
chrome: {
- label: 'Chrome',
- color: 'hsl(var(--chart-1))',
+ label: "Chrome",
+ color: "hsl(var(--chart-1))",
},
safari: {
- label: 'Safari',
- color: 'hsl(var(--chart-2))',
+ label: "Safari",
+ color: "hsl(var(--chart-2))",
},
firefox: {
- label: 'Firefox',
- color: 'hsl(var(--chart-3))',
+ label: "Firefox",
+ color: "hsl(var(--chart-3))",
},
edge: {
- label: 'Edge',
- color: 'hsl(var(--chart-4))',
+ label: "Edge",
+ color: "hsl(var(--chart-4))",
},
other: {
- label: 'Other',
- color: 'hsl(var(--chart-5))',
+ label: "Other",
+ color: "hsl(var(--chart-5))",
},
} satisfies ChartConfig
@@ -72,8 +70,9 @@ export default function Component() {
tickLine={false}
tickMargin={10}
axisLine={false}
- tickFormatter={value =>
- chartConfig[value as keyof typeof chartConfig]?.label}
+ tickFormatter={(value) =>
+ chartConfig[value as keyof typeof chartConfig]?.label
+ }
/>
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
Showing total visitors for the last 6 months
diff --git a/apps/web/__registry__/default/block/chart-bar-default.tsx b/apps/web/__registry__/default/block/chart-bar-default.tsx
index 49330679..53ff48e4 100644
--- a/apps/web/__registry__/default/block/chart-bar-default.tsx
+++ b/apps/web/__registry__/default/block/chart-bar-default.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { Bar, BarChart, CartesianGrid, XAxis } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { Bar, BarChart, CartesianGrid, XAxis } from "recharts"
import {
Card,
@@ -10,31 +10,29 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A bar chart'
+export const description = "A bar chart"
const chartData = [
- { month: 'January', desktop: 186 },
- { month: 'February', desktop: 305 },
- { month: 'March', desktop: 237 },
- { month: 'April', desktop: 73 },
- { month: 'May', desktop: 209 },
- { month: 'June', desktop: 214 },
+ { month: "January", desktop: 186 },
+ { month: "February", desktop: 305 },
+ { month: "March", desktop: 237 },
+ { month: "April", desktop: 73 },
+ { month: "May", desktop: 209 },
+ { month: "June", desktop: 214 },
]
const chartConfig = {
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
} satisfies ChartConfig
@@ -54,21 +52,23 @@ export default function Component() {
tickLine={false}
tickMargin={10}
axisLine={false}
- tickFormatter={value => value.slice(0, 3)}
+ tickFormatter={(value) => value.slice(0, 3)}
/>
}
/>
-
+
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
Showing total visitors for the last 6 months
diff --git a/apps/web/__registry__/default/block/chart-bar-horizontal.tsx b/apps/web/__registry__/default/block/chart-bar-horizontal.tsx
index 144ef997..efb45344 100644
--- a/apps/web/__registry__/default/block/chart-bar-horizontal.tsx
+++ b/apps/web/__registry__/default/block/chart-bar-horizontal.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { Bar, BarChart, XAxis, YAxis } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { Bar, BarChart, XAxis, YAxis } from "recharts"
import {
Card,
@@ -10,31 +10,29 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A horizontal bar chart'
+export const description = "A horizontal bar chart"
const chartData = [
- { month: 'January', desktop: 186 },
- { month: 'February', desktop: 305 },
- { month: 'March', desktop: 237 },
- { month: 'April', desktop: 73 },
- { month: 'May', desktop: 209 },
- { month: 'June', desktop: 214 },
+ { month: "January", desktop: 186 },
+ { month: "February", desktop: 305 },
+ { month: "March", desktop: 237 },
+ { month: "April", desktop: 73 },
+ { month: "May", desktop: 209 },
+ { month: "June", desktop: 214 },
]
const chartConfig = {
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
} satisfies ChartConfig
@@ -62,21 +60,23 @@ export default function Component() {
tickLine={false}
tickMargin={10}
axisLine={false}
- tickFormatter={value => value.slice(0, 3)}
+ tickFormatter={(value) => value.slice(0, 3)}
/>
}
/>
-
+
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
Showing total visitors for the last 6 months
diff --git a/apps/web/__registry__/default/block/chart-bar-interactive.tsx b/apps/web/__registry__/default/block/chart-bar-interactive.tsx
index d86ee682..50b043a0 100644
--- a/apps/web/__registry__/default/block/chart-bar-interactive.tsx
+++ b/apps/web/__registry__/default/block/chart-bar-interactive.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import * as React from 'react'
-import { Bar, BarChart, CartesianGrid, XAxis } from 'recharts'
+import * as React from "react"
+import { Bar, BarChart, CartesianGrid, XAxis } from "recharts"
import {
Card,
@@ -9,129 +9,127 @@ import {
CardDescription,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'An interactive bar chart'
+export const description = "An interactive bar chart"
const chartData = [
- { date: '2024-04-01', desktop: 222, mobile: 150 },
- { date: '2024-04-02', desktop: 97, mobile: 180 },
- { date: '2024-04-03', desktop: 167, mobile: 120 },
- { date: '2024-04-04', desktop: 242, mobile: 260 },
- { date: '2024-04-05', desktop: 373, mobile: 290 },
- { date: '2024-04-06', desktop: 301, mobile: 340 },
- { date: '2024-04-07', desktop: 245, mobile: 180 },
- { date: '2024-04-08', desktop: 409, mobile: 320 },
- { date: '2024-04-09', desktop: 59, mobile: 110 },
- { date: '2024-04-10', desktop: 261, mobile: 190 },
- { date: '2024-04-11', desktop: 327, mobile: 350 },
- { date: '2024-04-12', desktop: 292, mobile: 210 },
- { date: '2024-04-13', desktop: 342, mobile: 380 },
- { date: '2024-04-14', desktop: 137, mobile: 220 },
- { date: '2024-04-15', desktop: 120, mobile: 170 },
- { date: '2024-04-16', desktop: 138, mobile: 190 },
- { date: '2024-04-17', desktop: 446, mobile: 360 },
- { date: '2024-04-18', desktop: 364, mobile: 410 },
- { date: '2024-04-19', desktop: 243, mobile: 180 },
- { date: '2024-04-20', desktop: 89, mobile: 150 },
- { date: '2024-04-21', desktop: 137, mobile: 200 },
- { date: '2024-04-22', desktop: 224, mobile: 170 },
- { date: '2024-04-23', desktop: 138, mobile: 230 },
- { date: '2024-04-24', desktop: 387, mobile: 290 },
- { date: '2024-04-25', desktop: 215, mobile: 250 },
- { date: '2024-04-26', desktop: 75, mobile: 130 },
- { date: '2024-04-27', desktop: 383, mobile: 420 },
- { date: '2024-04-28', desktop: 122, mobile: 180 },
- { date: '2024-04-29', desktop: 315, mobile: 240 },
- { date: '2024-04-30', desktop: 454, mobile: 380 },
- { date: '2024-05-01', desktop: 165, mobile: 220 },
- { date: '2024-05-02', desktop: 293, mobile: 310 },
- { date: '2024-05-03', desktop: 247, mobile: 190 },
- { date: '2024-05-04', desktop: 385, mobile: 420 },
- { date: '2024-05-05', desktop: 481, mobile: 390 },
- { date: '2024-05-06', desktop: 498, mobile: 520 },
- { date: '2024-05-07', desktop: 388, mobile: 300 },
- { date: '2024-05-08', desktop: 149, mobile: 210 },
- { date: '2024-05-09', desktop: 227, mobile: 180 },
- { date: '2024-05-10', desktop: 293, mobile: 330 },
- { date: '2024-05-11', desktop: 335, mobile: 270 },
- { date: '2024-05-12', desktop: 197, mobile: 240 },
- { date: '2024-05-13', desktop: 197, mobile: 160 },
- { date: '2024-05-14', desktop: 448, mobile: 490 },
- { date: '2024-05-15', desktop: 473, mobile: 380 },
- { date: '2024-05-16', desktop: 338, mobile: 400 },
- { date: '2024-05-17', desktop: 499, mobile: 420 },
- { date: '2024-05-18', desktop: 315, mobile: 350 },
- { date: '2024-05-19', desktop: 235, mobile: 180 },
- { date: '2024-05-20', desktop: 177, mobile: 230 },
- { date: '2024-05-21', desktop: 82, mobile: 140 },
- { date: '2024-05-22', desktop: 81, mobile: 120 },
- { date: '2024-05-23', desktop: 252, mobile: 290 },
- { date: '2024-05-24', desktop: 294, mobile: 220 },
- { date: '2024-05-25', desktop: 201, mobile: 250 },
- { date: '2024-05-26', desktop: 213, mobile: 170 },
- { date: '2024-05-27', desktop: 420, mobile: 460 },
- { date: '2024-05-28', desktop: 233, mobile: 190 },
- { date: '2024-05-29', desktop: 78, mobile: 130 },
- { date: '2024-05-30', desktop: 340, mobile: 280 },
- { date: '2024-05-31', desktop: 178, mobile: 230 },
- { date: '2024-06-01', desktop: 178, mobile: 200 },
- { date: '2024-06-02', desktop: 470, mobile: 410 },
- { date: '2024-06-03', desktop: 103, mobile: 160 },
- { date: '2024-06-04', desktop: 439, mobile: 380 },
- { date: '2024-06-05', desktop: 88, mobile: 140 },
- { date: '2024-06-06', desktop: 294, mobile: 250 },
- { date: '2024-06-07', desktop: 323, mobile: 370 },
- { date: '2024-06-08', desktop: 385, mobile: 320 },
- { date: '2024-06-09', desktop: 438, mobile: 480 },
- { date: '2024-06-10', desktop: 155, mobile: 200 },
- { date: '2024-06-11', desktop: 92, mobile: 150 },
- { date: '2024-06-12', desktop: 492, mobile: 420 },
- { date: '2024-06-13', desktop: 81, mobile: 130 },
- { date: '2024-06-14', desktop: 426, mobile: 380 },
- { date: '2024-06-15', desktop: 307, mobile: 350 },
- { date: '2024-06-16', desktop: 371, mobile: 310 },
- { date: '2024-06-17', desktop: 475, mobile: 520 },
- { date: '2024-06-18', desktop: 107, mobile: 170 },
- { date: '2024-06-19', desktop: 341, mobile: 290 },
- { date: '2024-06-20', desktop: 408, mobile: 450 },
- { date: '2024-06-21', desktop: 169, mobile: 210 },
- { date: '2024-06-22', desktop: 317, mobile: 270 },
- { date: '2024-06-23', desktop: 480, mobile: 530 },
- { date: '2024-06-24', desktop: 132, mobile: 180 },
- { date: '2024-06-25', desktop: 141, mobile: 190 },
- { date: '2024-06-26', desktop: 434, mobile: 380 },
- { date: '2024-06-27', desktop: 448, mobile: 490 },
- { date: '2024-06-28', desktop: 149, mobile: 200 },
- { date: '2024-06-29', desktop: 103, mobile: 160 },
- { date: '2024-06-30', desktop: 446, mobile: 400 },
+ { date: "2024-04-01", desktop: 222, mobile: 150 },
+ { date: "2024-04-02", desktop: 97, mobile: 180 },
+ { date: "2024-04-03", desktop: 167, mobile: 120 },
+ { date: "2024-04-04", desktop: 242, mobile: 260 },
+ { date: "2024-04-05", desktop: 373, mobile: 290 },
+ { date: "2024-04-06", desktop: 301, mobile: 340 },
+ { date: "2024-04-07", desktop: 245, mobile: 180 },
+ { date: "2024-04-08", desktop: 409, mobile: 320 },
+ { date: "2024-04-09", desktop: 59, mobile: 110 },
+ { date: "2024-04-10", desktop: 261, mobile: 190 },
+ { date: "2024-04-11", desktop: 327, mobile: 350 },
+ { date: "2024-04-12", desktop: 292, mobile: 210 },
+ { date: "2024-04-13", desktop: 342, mobile: 380 },
+ { date: "2024-04-14", desktop: 137, mobile: 220 },
+ { date: "2024-04-15", desktop: 120, mobile: 170 },
+ { date: "2024-04-16", desktop: 138, mobile: 190 },
+ { date: "2024-04-17", desktop: 446, mobile: 360 },
+ { date: "2024-04-18", desktop: 364, mobile: 410 },
+ { date: "2024-04-19", desktop: 243, mobile: 180 },
+ { date: "2024-04-20", desktop: 89, mobile: 150 },
+ { date: "2024-04-21", desktop: 137, mobile: 200 },
+ { date: "2024-04-22", desktop: 224, mobile: 170 },
+ { date: "2024-04-23", desktop: 138, mobile: 230 },
+ { date: "2024-04-24", desktop: 387, mobile: 290 },
+ { date: "2024-04-25", desktop: 215, mobile: 250 },
+ { date: "2024-04-26", desktop: 75, mobile: 130 },
+ { date: "2024-04-27", desktop: 383, mobile: 420 },
+ { date: "2024-04-28", desktop: 122, mobile: 180 },
+ { date: "2024-04-29", desktop: 315, mobile: 240 },
+ { date: "2024-04-30", desktop: 454, mobile: 380 },
+ { date: "2024-05-01", desktop: 165, mobile: 220 },
+ { date: "2024-05-02", desktop: 293, mobile: 310 },
+ { date: "2024-05-03", desktop: 247, mobile: 190 },
+ { date: "2024-05-04", desktop: 385, mobile: 420 },
+ { date: "2024-05-05", desktop: 481, mobile: 390 },
+ { date: "2024-05-06", desktop: 498, mobile: 520 },
+ { date: "2024-05-07", desktop: 388, mobile: 300 },
+ { date: "2024-05-08", desktop: 149, mobile: 210 },
+ { date: "2024-05-09", desktop: 227, mobile: 180 },
+ { date: "2024-05-10", desktop: 293, mobile: 330 },
+ { date: "2024-05-11", desktop: 335, mobile: 270 },
+ { date: "2024-05-12", desktop: 197, mobile: 240 },
+ { date: "2024-05-13", desktop: 197, mobile: 160 },
+ { date: "2024-05-14", desktop: 448, mobile: 490 },
+ { date: "2024-05-15", desktop: 473, mobile: 380 },
+ { date: "2024-05-16", desktop: 338, mobile: 400 },
+ { date: "2024-05-17", desktop: 499, mobile: 420 },
+ { date: "2024-05-18", desktop: 315, mobile: 350 },
+ { date: "2024-05-19", desktop: 235, mobile: 180 },
+ { date: "2024-05-20", desktop: 177, mobile: 230 },
+ { date: "2024-05-21", desktop: 82, mobile: 140 },
+ { date: "2024-05-22", desktop: 81, mobile: 120 },
+ { date: "2024-05-23", desktop: 252, mobile: 290 },
+ { date: "2024-05-24", desktop: 294, mobile: 220 },
+ { date: "2024-05-25", desktop: 201, mobile: 250 },
+ { date: "2024-05-26", desktop: 213, mobile: 170 },
+ { date: "2024-05-27", desktop: 420, mobile: 460 },
+ { date: "2024-05-28", desktop: 233, mobile: 190 },
+ { date: "2024-05-29", desktop: 78, mobile: 130 },
+ { date: "2024-05-30", desktop: 340, mobile: 280 },
+ { date: "2024-05-31", desktop: 178, mobile: 230 },
+ { date: "2024-06-01", desktop: 178, mobile: 200 },
+ { date: "2024-06-02", desktop: 470, mobile: 410 },
+ { date: "2024-06-03", desktop: 103, mobile: 160 },
+ { date: "2024-06-04", desktop: 439, mobile: 380 },
+ { date: "2024-06-05", desktop: 88, mobile: 140 },
+ { date: "2024-06-06", desktop: 294, mobile: 250 },
+ { date: "2024-06-07", desktop: 323, mobile: 370 },
+ { date: "2024-06-08", desktop: 385, mobile: 320 },
+ { date: "2024-06-09", desktop: 438, mobile: 480 },
+ { date: "2024-06-10", desktop: 155, mobile: 200 },
+ { date: "2024-06-11", desktop: 92, mobile: 150 },
+ { date: "2024-06-12", desktop: 492, mobile: 420 },
+ { date: "2024-06-13", desktop: 81, mobile: 130 },
+ { date: "2024-06-14", desktop: 426, mobile: 380 },
+ { date: "2024-06-15", desktop: 307, mobile: 350 },
+ { date: "2024-06-16", desktop: 371, mobile: 310 },
+ { date: "2024-06-17", desktop: 475, mobile: 520 },
+ { date: "2024-06-18", desktop: 107, mobile: 170 },
+ { date: "2024-06-19", desktop: 341, mobile: 290 },
+ { date: "2024-06-20", desktop: 408, mobile: 450 },
+ { date: "2024-06-21", desktop: 169, mobile: 210 },
+ { date: "2024-06-22", desktop: 317, mobile: 270 },
+ { date: "2024-06-23", desktop: 480, mobile: 530 },
+ { date: "2024-06-24", desktop: 132, mobile: 180 },
+ { date: "2024-06-25", desktop: 141, mobile: 190 },
+ { date: "2024-06-26", desktop: 434, mobile: 380 },
+ { date: "2024-06-27", desktop: 448, mobile: 490 },
+ { date: "2024-06-28", desktop: 149, mobile: 200 },
+ { date: "2024-06-29", desktop: 103, mobile: 160 },
+ { date: "2024-06-30", desktop: 446, mobile: 400 },
]
const chartConfig = {
views: {
- label: 'Page Views',
+ label: "Page Views",
},
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
mobile: {
- label: 'Mobile',
- color: 'hsl(var(--chart-2))',
+ label: "Mobile",
+ color: "hsl(var(--chart-2))",
},
} satisfies ChartConfig
export default function Component() {
- const [activeChart, setActiveChart]
- = React.useState('desktop')
+ const [activeChart, setActiveChart] =
+ React.useState("desktop")
const total = React.useMemo(
() => ({
@@ -151,7 +149,7 @@ export default function Component() {
- {['desktop', 'mobile'].map((key) => {
+ {["desktop", "mobile"].map((key) => {
const chart = key as keyof typeof chartConfig
return (
{
const date = new Date(value)
- return date.toLocaleDateString('en-US', {
- month: 'short',
- day: 'numeric',
+ return date.toLocaleDateString("en-US", {
+ month: "short",
+ day: "numeric",
})
}}
/>
{
- return new Date(value).toLocaleDateString('en-US', {
- month: 'short',
- day: 'numeric',
- year: 'numeric',
- })
+ return new Date(value).toLocaleDateString(
+ "en-US",
+ {
+ month: "short",
+ day: "numeric",
+ year: "numeric",
+ },
+ )
}}
/>
- )}
+ }
+ />
+
-
diff --git a/apps/web/__registry__/default/block/chart-bar-label-custom.tsx b/apps/web/__registry__/default/block/chart-bar-label-custom.tsx
index 9c7858c7..ac2f3575 100644
--- a/apps/web/__registry__/default/block/chart-bar-label-custom.tsx
+++ b/apps/web/__registry__/default/block/chart-bar-label-custom.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { Bar, BarChart, CartesianGrid, LabelList, XAxis, YAxis } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { Bar, BarChart, CartesianGrid, LabelList, XAxis, YAxis } from "recharts"
import {
Card,
@@ -10,38 +10,36 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A bar chart with a custom label'
+export const description = "A bar chart with a custom label"
const chartData = [
- { month: 'January', desktop: 186, mobile: 80 },
- { month: 'February', desktop: 305, mobile: 200 },
- { month: 'March', desktop: 237, mobile: 120 },
- { month: 'April', desktop: 73, mobile: 190 },
- { month: 'May', desktop: 209, mobile: 130 },
- { month: 'June', desktop: 214, mobile: 140 },
+ { month: "January", desktop: 186, mobile: 80 },
+ { month: "February", desktop: 305, mobile: 200 },
+ { month: "March", desktop: 237, mobile: 120 },
+ { month: "April", desktop: 73, mobile: 190 },
+ { month: "May", desktop: 209, mobile: 130 },
+ { month: "June", desktop: 214, mobile: 140 },
]
const chartConfig = {
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
mobile: {
- label: 'Mobile',
- color: 'hsl(var(--chart-2))',
+ label: "Mobile",
+ color: "hsl(var(--chart-2))",
},
label: {
- color: 'hsl(var(--background))',
+ color: "hsl(var(--background))",
},
} satisfies ChartConfig
@@ -69,7 +67,7 @@ export default function Component() {
tickLine={false}
tickMargin={10}
axisLine={false}
- tickFormatter={value => value.slice(0, 3)}
+ tickFormatter={(value) => value.slice(0, 3)}
hide
/>
@@ -103,9 +101,7 @@ export default function Component() {
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
Showing total visitors for the last 6 months
diff --git a/apps/web/__registry__/default/block/chart-bar-label.tsx b/apps/web/__registry__/default/block/chart-bar-label.tsx
index 293d5aeb..3f12107a 100644
--- a/apps/web/__registry__/default/block/chart-bar-label.tsx
+++ b/apps/web/__registry__/default/block/chart-bar-label.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { Bar, BarChart, CartesianGrid, LabelList, XAxis } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { Bar, BarChart, CartesianGrid, LabelList, XAxis } from "recharts"
import {
Card,
@@ -10,31 +10,29 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A bar chart with a label'
+export const description = "A bar chart with a label"
const chartData = [
- { month: 'January', desktop: 186 },
- { month: 'February', desktop: 305 },
- { month: 'March', desktop: 237 },
- { month: 'April', desktop: 73 },
- { month: 'May', desktop: 209 },
- { month: 'June', desktop: 214 },
+ { month: "January", desktop: 186 },
+ { month: "February", desktop: 305 },
+ { month: "March", desktop: 237 },
+ { month: "April", desktop: 73 },
+ { month: "May", desktop: 209 },
+ { month: "June", desktop: 214 },
]
const chartConfig = {
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
} satisfies ChartConfig
@@ -60,7 +58,7 @@ export default function Component() {
tickLine={false}
tickMargin={10}
axisLine={false}
- tickFormatter={value => value.slice(0, 3)}
+ tickFormatter={(value) => value.slice(0, 3)}
/>
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
Showing total visitors for the last 6 months
diff --git a/apps/web/__registry__/default/block/chart-bar-mixed.tsx b/apps/web/__registry__/default/block/chart-bar-mixed.tsx
index 0b3d790c..57cdb6bf 100644
--- a/apps/web/__registry__/default/block/chart-bar-mixed.tsx
+++ b/apps/web/__registry__/default/block/chart-bar-mixed.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { Bar, BarChart, XAxis, YAxis } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { Bar, BarChart, XAxis, YAxis } from "recharts"
import {
Card,
@@ -10,49 +10,47 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A mixed bar chart'
+export const description = "A mixed bar chart"
const chartData = [
- { browser: 'chrome', visitors: 275, fill: 'var(--color-chrome)' },
- { browser: 'safari', visitors: 200, fill: 'var(--color-safari)' },
- { browser: 'firefox', visitors: 187, fill: 'var(--color-firefox)' },
- { browser: 'edge', visitors: 173, fill: 'var(--color-edge)' },
- { browser: 'other', visitors: 90, fill: 'var(--color-other)' },
+ { browser: "chrome", visitors: 275, fill: "var(--color-chrome)" },
+ { browser: "safari", visitors: 200, fill: "var(--color-safari)" },
+ { browser: "firefox", visitors: 187, fill: "var(--color-firefox)" },
+ { browser: "edge", visitors: 173, fill: "var(--color-edge)" },
+ { browser: "other", visitors: 90, fill: "var(--color-other)" },
]
const chartConfig = {
visitors: {
- label: 'Visitors',
+ label: "Visitors",
},
chrome: {
- label: 'Chrome',
- color: 'hsl(var(--chart-1))',
+ label: "Chrome",
+ color: "hsl(var(--chart-1))",
},
safari: {
- label: 'Safari',
- color: 'hsl(var(--chart-2))',
+ label: "Safari",
+ color: "hsl(var(--chart-2))",
},
firefox: {
- label: 'Firefox',
- color: 'hsl(var(--chart-3))',
+ label: "Firefox",
+ color: "hsl(var(--chart-3))",
},
edge: {
- label: 'Edge',
- color: 'hsl(var(--chart-4))',
+ label: "Edge",
+ color: "hsl(var(--chart-4))",
},
other: {
- label: 'Other',
- color: 'hsl(var(--chart-5))',
+ label: "Other",
+ color: "hsl(var(--chart-5))",
},
} satisfies ChartConfig
@@ -79,8 +77,9 @@ export default function Component() {
tickLine={false}
tickMargin={10}
axisLine={false}
- tickFormatter={value =>
- chartConfig[value as keyof typeof chartConfig]?.label}
+ tickFormatter={(value) =>
+ chartConfig[value as keyof typeof chartConfig]?.label
+ }
/>
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
Showing total visitors for the last 6 months
diff --git a/apps/web/__registry__/default/block/chart-bar-multiple.tsx b/apps/web/__registry__/default/block/chart-bar-multiple.tsx
index 44a13a61..8e5a84f3 100644
--- a/apps/web/__registry__/default/block/chart-bar-multiple.tsx
+++ b/apps/web/__registry__/default/block/chart-bar-multiple.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { Bar, BarChart, CartesianGrid, XAxis } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { Bar, BarChart, CartesianGrid, XAxis } from "recharts"
import {
Card,
@@ -10,35 +10,33 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A multiple bar chart'
+export const description = "A multiple bar chart"
const chartData = [
- { month: 'January', desktop: 186, mobile: 80 },
- { month: 'February', desktop: 305, mobile: 200 },
- { month: 'March', desktop: 237, mobile: 120 },
- { month: 'April', desktop: 73, mobile: 190 },
- { month: 'May', desktop: 209, mobile: 130 },
- { month: 'June', desktop: 214, mobile: 140 },
+ { month: "January", desktop: 186, mobile: 80 },
+ { month: "February", desktop: 305, mobile: 200 },
+ { month: "March", desktop: 237, mobile: 120 },
+ { month: "April", desktop: 73, mobile: 190 },
+ { month: "May", desktop: 209, mobile: 130 },
+ { month: "June", desktop: 214, mobile: 140 },
]
const chartConfig = {
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
mobile: {
- label: 'Mobile',
- color: 'hsl(var(--chart-2))',
+ label: "Mobile",
+ color: "hsl(var(--chart-2))",
},
} satisfies ChartConfig
@@ -58,22 +56,24 @@ export default function Component() {
tickLine={false}
tickMargin={10}
axisLine={false}
- tickFormatter={value => value.slice(0, 3)}
+ tickFormatter={(value) => value.slice(0, 3)}
/>
}
/>
-
+
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
Showing total visitors for the last 6 months
diff --git a/apps/web/__registry__/default/block/chart-bar-negative.tsx b/apps/web/__registry__/default/block/chart-bar-negative.tsx
index 8a437e50..a3eb42d5 100644
--- a/apps/web/__registry__/default/block/chart-bar-negative.tsx
+++ b/apps/web/__registry__/default/block/chart-bar-negative.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { Bar, BarChart, CartesianGrid, Cell, LabelList } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { Bar, BarChart, CartesianGrid, Cell, LabelList } from "recharts"
import {
Card,
@@ -10,30 +10,28 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A bar chart with negative values'
+export const description = "A bar chart with negative values"
const chartData = [
- { month: 'January', visitors: 186 },
- { month: 'February', visitors: 205 },
- { month: 'March', visitors: -207 },
- { month: 'April', visitors: 173 },
- { month: 'May', visitors: -209 },
- { month: 'June', visitors: 214 },
+ { month: "January", visitors: 186 },
+ { month: "February", visitors: 205 },
+ { month: "March", visitors: -207 },
+ { month: "April", visitors: 173 },
+ { month: "May", visitors: -209 },
+ { month: "June", visitors: 214 },
]
const chartConfig = {
visitors: {
- label: 'Visitors',
+ label: "Visitors",
},
} satisfies ChartConfig
@@ -53,14 +51,18 @@ export default function Component() {
content={
}
/>
-
- {chartData.map(item => (
+
+ {chartData.map((item) => (
0
- ? 'hsl(var(--chart-1))'
- : 'hsl(var(--chart-2))'
+ ? "hsl(var(--chart-1))"
+ : "hsl(var(--chart-2))"
}
/>
))}
@@ -70,9 +72,7 @@ export default function Component() {
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
Showing total visitors for the last 6 months
diff --git a/apps/web/__registry__/default/block/chart-bar-stacked.tsx b/apps/web/__registry__/default/block/chart-bar-stacked.tsx
index 1f303ffa..bf326e4e 100644
--- a/apps/web/__registry__/default/block/chart-bar-stacked.tsx
+++ b/apps/web/__registry__/default/block/chart-bar-stacked.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { Bar, BarChart, CartesianGrid, XAxis } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { Bar, BarChart, CartesianGrid, XAxis } from "recharts"
import {
Card,
@@ -10,37 +10,35 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartLegend,
ChartLegendContent,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A stacked bar chart with a legend'
+export const description = "A stacked bar chart with a legend"
const chartData = [
- { month: 'January', desktop: 186, mobile: 80 },
- { month: 'February', desktop: 305, mobile: 200 },
- { month: 'March', desktop: 237, mobile: 120 },
- { month: 'April', desktop: 73, mobile: 190 },
- { month: 'May', desktop: 209, mobile: 130 },
- { month: 'June', desktop: 214, mobile: 140 },
+ { month: "January", desktop: 186, mobile: 80 },
+ { month: "February", desktop: 305, mobile: 200 },
+ { month: "March", desktop: 237, mobile: 120 },
+ { month: "April", desktop: 73, mobile: 190 },
+ { month: "May", desktop: 209, mobile: 130 },
+ { month: "June", desktop: 214, mobile: 140 },
]
const chartConfig = {
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
mobile: {
- label: 'Mobile',
- color: 'hsl(var(--chart-2))',
+ label: "Mobile",
+ color: "hsl(var(--chart-2))",
},
} satisfies ChartConfig
@@ -60,7 +58,7 @@ export default function Component() {
tickLine={false}
tickMargin={10}
axisLine={false}
- tickFormatter={value => value.slice(0, 3)}
+ tickFormatter={(value) => value.slice(0, 3)}
/>
} />
} />
@@ -81,9 +79,7 @@ export default function Component() {
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
Showing total visitors for the last 6 months
diff --git a/apps/web/__registry__/default/block/chart-line-default.tsx b/apps/web/__registry__/default/block/chart-line-default.tsx
index 19755abf..9ee684c8 100644
--- a/apps/web/__registry__/default/block/chart-line-default.tsx
+++ b/apps/web/__registry__/default/block/chart-line-default.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { CartesianGrid, Line, LineChart, XAxis } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { CartesianGrid, Line, LineChart, XAxis } from "recharts"
import {
Card,
@@ -10,31 +10,29 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A line chart'
+export const description = "A line chart"
const chartData = [
- { month: 'January', desktop: 186 },
- { month: 'February', desktop: 305 },
- { month: 'March', desktop: 237 },
- { month: 'April', desktop: 73 },
- { month: 'May', desktop: 209 },
- { month: 'June', desktop: 214 },
+ { month: "January", desktop: 186 },
+ { month: "February", desktop: 305 },
+ { month: "March", desktop: 237 },
+ { month: "April", desktop: 73 },
+ { month: "May", desktop: 209 },
+ { month: "June", desktop: 214 },
]
const chartConfig = {
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
} satisfies ChartConfig
@@ -61,7 +59,7 @@ export default function Component() {
tickLine={false}
axisLine={false}
tickMargin={8}
- tickFormatter={value => value.slice(0, 3)}
+ tickFormatter={(value) => value.slice(0, 3)}
/>
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
Showing total visitors for the last 6 months
diff --git a/apps/web/__registry__/default/block/chart-line-dots-colors.tsx b/apps/web/__registry__/default/block/chart-line-dots-colors.tsx
index 20c822ca..97950153 100644
--- a/apps/web/__registry__/default/block/chart-line-dots-colors.tsx
+++ b/apps/web/__registry__/default/block/chart-line-dots-colors.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { CartesianGrid, Dot, Line, LineChart } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { CartesianGrid, Dot, Line, LineChart } from "recharts"
import {
Card,
@@ -10,50 +10,48 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A line chart with dots and colors'
+export const description = "A line chart with dots and colors"
const chartData = [
- { browser: 'chrome', visitors: 275, fill: 'var(--color-chrome)' },
- { browser: 'safari', visitors: 200, fill: 'var(--color-safari)' },
- { browser: 'firefox', visitors: 187, fill: 'var(--color-firefox)' },
- { browser: 'edge', visitors: 173, fill: 'var(--color-edge)' },
- { browser: 'other', visitors: 90, fill: 'var(--color-other)' },
+ { browser: "chrome", visitors: 275, fill: "var(--color-chrome)" },
+ { browser: "safari", visitors: 200, fill: "var(--color-safari)" },
+ { browser: "firefox", visitors: 187, fill: "var(--color-firefox)" },
+ { browser: "edge", visitors: 173, fill: "var(--color-edge)" },
+ { browser: "other", visitors: 90, fill: "var(--color-other)" },
]
const chartConfig = {
visitors: {
- label: 'Visitors',
- color: 'hsl(var(--chart-2))',
+ label: "Visitors",
+ color: "hsl(var(--chart-2))",
},
chrome: {
- label: 'Chrome',
- color: 'hsl(var(--chart-1))',
+ label: "Chrome",
+ color: "hsl(var(--chart-1))",
},
safari: {
- label: 'Safari',
- color: 'hsl(var(--chart-2))',
+ label: "Safari",
+ color: "hsl(var(--chart-2))",
},
firefox: {
- label: 'Firefox',
- color: 'hsl(var(--chart-3))',
+ label: "Firefox",
+ color: "hsl(var(--chart-3))",
},
edge: {
- label: 'Edge',
- color: 'hsl(var(--chart-4))',
+ label: "Edge",
+ color: "hsl(var(--chart-4))",
},
other: {
- label: 'Other',
- color: 'hsl(var(--chart-5))',
+ label: "Other",
+ color: "hsl(var(--chart-5))",
},
} satisfies ChartConfig
@@ -78,13 +76,13 @@ export default function Component() {
- )}
+ }
/>
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
Showing total visitors for the last 6 months
diff --git a/apps/web/__registry__/default/block/chart-line-dots-custom.tsx b/apps/web/__registry__/default/block/chart-line-dots-custom.tsx
index 5d0db250..75052d21 100644
--- a/apps/web/__registry__/default/block/chart-line-dots-custom.tsx
+++ b/apps/web/__registry__/default/block/chart-line-dots-custom.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { GitCommitVertical, TrendingUp } from 'lucide-react'
-import { CartesianGrid, Line, LineChart, XAxis } from 'recharts'
+import { GitCommitVertical, TrendingUp } from "lucide-react"
+import { CartesianGrid, Line, LineChart, XAxis } from "recharts"
import {
Card,
@@ -10,35 +10,33 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A line chart with custom dots'
+export const description = "A line chart with custom dots"
const chartData = [
- { month: 'January', desktop: 186, mobile: 80 },
- { month: 'February', desktop: 305, mobile: 200 },
- { month: 'March', desktop: 237, mobile: 120 },
- { month: 'April', desktop: 73, mobile: 190 },
- { month: 'May', desktop: 209, mobile: 130 },
- { month: 'June', desktop: 214, mobile: 140 },
+ { month: "January", desktop: 186, mobile: 80 },
+ { month: "February", desktop: 305, mobile: 200 },
+ { month: "March", desktop: 237, mobile: 120 },
+ { month: "April", desktop: 73, mobile: 190 },
+ { month: "May", desktop: 209, mobile: 130 },
+ { month: "June", desktop: 214, mobile: 140 },
]
const chartConfig = {
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
mobile: {
- label: 'Mobile',
- color: 'hsl(var(--chart-2))',
+ label: "Mobile",
+ color: "hsl(var(--chart-2))",
},
} satisfies ChartConfig
@@ -65,7 +63,7 @@ export default function Component() {
tickLine={false}
axisLine={false}
tickMargin={8}
- tickFormatter={value => value.slice(0, 3)}
+ tickFormatter={(value) => value.slice(0, 3)}
/>
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
Showing total visitors for the last 6 months
diff --git a/apps/web/__registry__/default/block/chart-line-dots.tsx b/apps/web/__registry__/default/block/chart-line-dots.tsx
index 3372810a..64c52511 100644
--- a/apps/web/__registry__/default/block/chart-line-dots.tsx
+++ b/apps/web/__registry__/default/block/chart-line-dots.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { CartesianGrid, Line, LineChart, XAxis } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { CartesianGrid, Line, LineChart, XAxis } from "recharts"
import {
Card,
@@ -10,35 +10,33 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A line chart with dots'
+export const description = "A line chart with dots"
const chartData = [
- { month: 'January', desktop: 186, mobile: 80 },
- { month: 'February', desktop: 305, mobile: 200 },
- { month: 'March', desktop: 237, mobile: 120 },
- { month: 'April', desktop: 73, mobile: 190 },
- { month: 'May', desktop: 209, mobile: 130 },
- { month: 'June', desktop: 214, mobile: 140 },
+ { month: "January", desktop: 186, mobile: 80 },
+ { month: "February", desktop: 305, mobile: 200 },
+ { month: "March", desktop: 237, mobile: 120 },
+ { month: "April", desktop: 73, mobile: 190 },
+ { month: "May", desktop: 209, mobile: 130 },
+ { month: "June", desktop: 214, mobile: 140 },
]
const chartConfig = {
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
mobile: {
- label: 'Mobile',
- color: 'hsl(var(--chart-2))',
+ label: "Mobile",
+ color: "hsl(var(--chart-2))",
},
} satisfies ChartConfig
@@ -65,7 +63,7 @@ export default function Component() {
tickLine={false}
axisLine={false}
tickMargin={8}
- tickFormatter={value => value.slice(0, 3)}
+ tickFormatter={(value) => value.slice(0, 3)}
/>
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
Showing total visitors for the last 6 months
diff --git a/apps/web/__registry__/default/block/chart-line-interactive.tsx b/apps/web/__registry__/default/block/chart-line-interactive.tsx
index 4ea9d26f..899f5e65 100644
--- a/apps/web/__registry__/default/block/chart-line-interactive.tsx
+++ b/apps/web/__registry__/default/block/chart-line-interactive.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import * as React from 'react'
-import { CartesianGrid, Line, LineChart, XAxis } from 'recharts'
+import * as React from "react"
+import { CartesianGrid, Line, LineChart, XAxis } from "recharts"
import {
Card,
@@ -9,129 +9,127 @@ import {
CardDescription,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'An interactive line chart'
+export const description = "An interactive line chart"
const chartData = [
- { date: '2024-04-01', desktop: 222, mobile: 150 },
- { date: '2024-04-02', desktop: 97, mobile: 180 },
- { date: '2024-04-03', desktop: 167, mobile: 120 },
- { date: '2024-04-04', desktop: 242, mobile: 260 },
- { date: '2024-04-05', desktop: 373, mobile: 290 },
- { date: '2024-04-06', desktop: 301, mobile: 340 },
- { date: '2024-04-07', desktop: 245, mobile: 180 },
- { date: '2024-04-08', desktop: 409, mobile: 320 },
- { date: '2024-04-09', desktop: 59, mobile: 110 },
- { date: '2024-04-10', desktop: 261, mobile: 190 },
- { date: '2024-04-11', desktop: 327, mobile: 350 },
- { date: '2024-04-12', desktop: 292, mobile: 210 },
- { date: '2024-04-13', desktop: 342, mobile: 380 },
- { date: '2024-04-14', desktop: 137, mobile: 220 },
- { date: '2024-04-15', desktop: 120, mobile: 170 },
- { date: '2024-04-16', desktop: 138, mobile: 190 },
- { date: '2024-04-17', desktop: 446, mobile: 360 },
- { date: '2024-04-18', desktop: 364, mobile: 410 },
- { date: '2024-04-19', desktop: 243, mobile: 180 },
- { date: '2024-04-20', desktop: 89, mobile: 150 },
- { date: '2024-04-21', desktop: 137, mobile: 200 },
- { date: '2024-04-22', desktop: 224, mobile: 170 },
- { date: '2024-04-23', desktop: 138, mobile: 230 },
- { date: '2024-04-24', desktop: 387, mobile: 290 },
- { date: '2024-04-25', desktop: 215, mobile: 250 },
- { date: '2024-04-26', desktop: 75, mobile: 130 },
- { date: '2024-04-27', desktop: 383, mobile: 420 },
- { date: '2024-04-28', desktop: 122, mobile: 180 },
- { date: '2024-04-29', desktop: 315, mobile: 240 },
- { date: '2024-04-30', desktop: 454, mobile: 380 },
- { date: '2024-05-01', desktop: 165, mobile: 220 },
- { date: '2024-05-02', desktop: 293, mobile: 310 },
- { date: '2024-05-03', desktop: 247, mobile: 190 },
- { date: '2024-05-04', desktop: 385, mobile: 420 },
- { date: '2024-05-05', desktop: 481, mobile: 390 },
- { date: '2024-05-06', desktop: 498, mobile: 520 },
- { date: '2024-05-07', desktop: 388, mobile: 300 },
- { date: '2024-05-08', desktop: 149, mobile: 210 },
- { date: '2024-05-09', desktop: 227, mobile: 180 },
- { date: '2024-05-10', desktop: 293, mobile: 330 },
- { date: '2024-05-11', desktop: 335, mobile: 270 },
- { date: '2024-05-12', desktop: 197, mobile: 240 },
- { date: '2024-05-13', desktop: 197, mobile: 160 },
- { date: '2024-05-14', desktop: 448, mobile: 490 },
- { date: '2024-05-15', desktop: 473, mobile: 380 },
- { date: '2024-05-16', desktop: 338, mobile: 400 },
- { date: '2024-05-17', desktop: 499, mobile: 420 },
- { date: '2024-05-18', desktop: 315, mobile: 350 },
- { date: '2024-05-19', desktop: 235, mobile: 180 },
- { date: '2024-05-20', desktop: 177, mobile: 230 },
- { date: '2024-05-21', desktop: 82, mobile: 140 },
- { date: '2024-05-22', desktop: 81, mobile: 120 },
- { date: '2024-05-23', desktop: 252, mobile: 290 },
- { date: '2024-05-24', desktop: 294, mobile: 220 },
- { date: '2024-05-25', desktop: 201, mobile: 250 },
- { date: '2024-05-26', desktop: 213, mobile: 170 },
- { date: '2024-05-27', desktop: 420, mobile: 460 },
- { date: '2024-05-28', desktop: 233, mobile: 190 },
- { date: '2024-05-29', desktop: 78, mobile: 130 },
- { date: '2024-05-30', desktop: 340, mobile: 280 },
- { date: '2024-05-31', desktop: 178, mobile: 230 },
- { date: '2024-06-01', desktop: 178, mobile: 200 },
- { date: '2024-06-02', desktop: 470, mobile: 410 },
- { date: '2024-06-03', desktop: 103, mobile: 160 },
- { date: '2024-06-04', desktop: 439, mobile: 380 },
- { date: '2024-06-05', desktop: 88, mobile: 140 },
- { date: '2024-06-06', desktop: 294, mobile: 250 },
- { date: '2024-06-07', desktop: 323, mobile: 370 },
- { date: '2024-06-08', desktop: 385, mobile: 320 },
- { date: '2024-06-09', desktop: 438, mobile: 480 },
- { date: '2024-06-10', desktop: 155, mobile: 200 },
- { date: '2024-06-11', desktop: 92, mobile: 150 },
- { date: '2024-06-12', desktop: 492, mobile: 420 },
- { date: '2024-06-13', desktop: 81, mobile: 130 },
- { date: '2024-06-14', desktop: 426, mobile: 380 },
- { date: '2024-06-15', desktop: 307, mobile: 350 },
- { date: '2024-06-16', desktop: 371, mobile: 310 },
- { date: '2024-06-17', desktop: 475, mobile: 520 },
- { date: '2024-06-18', desktop: 107, mobile: 170 },
- { date: '2024-06-19', desktop: 341, mobile: 290 },
- { date: '2024-06-20', desktop: 408, mobile: 450 },
- { date: '2024-06-21', desktop: 169, mobile: 210 },
- { date: '2024-06-22', desktop: 317, mobile: 270 },
- { date: '2024-06-23', desktop: 480, mobile: 530 },
- { date: '2024-06-24', desktop: 132, mobile: 180 },
- { date: '2024-06-25', desktop: 141, mobile: 190 },
- { date: '2024-06-26', desktop: 434, mobile: 380 },
- { date: '2024-06-27', desktop: 448, mobile: 490 },
- { date: '2024-06-28', desktop: 149, mobile: 200 },
- { date: '2024-06-29', desktop: 103, mobile: 160 },
- { date: '2024-06-30', desktop: 446, mobile: 400 },
+ { date: "2024-04-01", desktop: 222, mobile: 150 },
+ { date: "2024-04-02", desktop: 97, mobile: 180 },
+ { date: "2024-04-03", desktop: 167, mobile: 120 },
+ { date: "2024-04-04", desktop: 242, mobile: 260 },
+ { date: "2024-04-05", desktop: 373, mobile: 290 },
+ { date: "2024-04-06", desktop: 301, mobile: 340 },
+ { date: "2024-04-07", desktop: 245, mobile: 180 },
+ { date: "2024-04-08", desktop: 409, mobile: 320 },
+ { date: "2024-04-09", desktop: 59, mobile: 110 },
+ { date: "2024-04-10", desktop: 261, mobile: 190 },
+ { date: "2024-04-11", desktop: 327, mobile: 350 },
+ { date: "2024-04-12", desktop: 292, mobile: 210 },
+ { date: "2024-04-13", desktop: 342, mobile: 380 },
+ { date: "2024-04-14", desktop: 137, mobile: 220 },
+ { date: "2024-04-15", desktop: 120, mobile: 170 },
+ { date: "2024-04-16", desktop: 138, mobile: 190 },
+ { date: "2024-04-17", desktop: 446, mobile: 360 },
+ { date: "2024-04-18", desktop: 364, mobile: 410 },
+ { date: "2024-04-19", desktop: 243, mobile: 180 },
+ { date: "2024-04-20", desktop: 89, mobile: 150 },
+ { date: "2024-04-21", desktop: 137, mobile: 200 },
+ { date: "2024-04-22", desktop: 224, mobile: 170 },
+ { date: "2024-04-23", desktop: 138, mobile: 230 },
+ { date: "2024-04-24", desktop: 387, mobile: 290 },
+ { date: "2024-04-25", desktop: 215, mobile: 250 },
+ { date: "2024-04-26", desktop: 75, mobile: 130 },
+ { date: "2024-04-27", desktop: 383, mobile: 420 },
+ { date: "2024-04-28", desktop: 122, mobile: 180 },
+ { date: "2024-04-29", desktop: 315, mobile: 240 },
+ { date: "2024-04-30", desktop: 454, mobile: 380 },
+ { date: "2024-05-01", desktop: 165, mobile: 220 },
+ { date: "2024-05-02", desktop: 293, mobile: 310 },
+ { date: "2024-05-03", desktop: 247, mobile: 190 },
+ { date: "2024-05-04", desktop: 385, mobile: 420 },
+ { date: "2024-05-05", desktop: 481, mobile: 390 },
+ { date: "2024-05-06", desktop: 498, mobile: 520 },
+ { date: "2024-05-07", desktop: 388, mobile: 300 },
+ { date: "2024-05-08", desktop: 149, mobile: 210 },
+ { date: "2024-05-09", desktop: 227, mobile: 180 },
+ { date: "2024-05-10", desktop: 293, mobile: 330 },
+ { date: "2024-05-11", desktop: 335, mobile: 270 },
+ { date: "2024-05-12", desktop: 197, mobile: 240 },
+ { date: "2024-05-13", desktop: 197, mobile: 160 },
+ { date: "2024-05-14", desktop: 448, mobile: 490 },
+ { date: "2024-05-15", desktop: 473, mobile: 380 },
+ { date: "2024-05-16", desktop: 338, mobile: 400 },
+ { date: "2024-05-17", desktop: 499, mobile: 420 },
+ { date: "2024-05-18", desktop: 315, mobile: 350 },
+ { date: "2024-05-19", desktop: 235, mobile: 180 },
+ { date: "2024-05-20", desktop: 177, mobile: 230 },
+ { date: "2024-05-21", desktop: 82, mobile: 140 },
+ { date: "2024-05-22", desktop: 81, mobile: 120 },
+ { date: "2024-05-23", desktop: 252, mobile: 290 },
+ { date: "2024-05-24", desktop: 294, mobile: 220 },
+ { date: "2024-05-25", desktop: 201, mobile: 250 },
+ { date: "2024-05-26", desktop: 213, mobile: 170 },
+ { date: "2024-05-27", desktop: 420, mobile: 460 },
+ { date: "2024-05-28", desktop: 233, mobile: 190 },
+ { date: "2024-05-29", desktop: 78, mobile: 130 },
+ { date: "2024-05-30", desktop: 340, mobile: 280 },
+ { date: "2024-05-31", desktop: 178, mobile: 230 },
+ { date: "2024-06-01", desktop: 178, mobile: 200 },
+ { date: "2024-06-02", desktop: 470, mobile: 410 },
+ { date: "2024-06-03", desktop: 103, mobile: 160 },
+ { date: "2024-06-04", desktop: 439, mobile: 380 },
+ { date: "2024-06-05", desktop: 88, mobile: 140 },
+ { date: "2024-06-06", desktop: 294, mobile: 250 },
+ { date: "2024-06-07", desktop: 323, mobile: 370 },
+ { date: "2024-06-08", desktop: 385, mobile: 320 },
+ { date: "2024-06-09", desktop: 438, mobile: 480 },
+ { date: "2024-06-10", desktop: 155, mobile: 200 },
+ { date: "2024-06-11", desktop: 92, mobile: 150 },
+ { date: "2024-06-12", desktop: 492, mobile: 420 },
+ { date: "2024-06-13", desktop: 81, mobile: 130 },
+ { date: "2024-06-14", desktop: 426, mobile: 380 },
+ { date: "2024-06-15", desktop: 307, mobile: 350 },
+ { date: "2024-06-16", desktop: 371, mobile: 310 },
+ { date: "2024-06-17", desktop: 475, mobile: 520 },
+ { date: "2024-06-18", desktop: 107, mobile: 170 },
+ { date: "2024-06-19", desktop: 341, mobile: 290 },
+ { date: "2024-06-20", desktop: 408, mobile: 450 },
+ { date: "2024-06-21", desktop: 169, mobile: 210 },
+ { date: "2024-06-22", desktop: 317, mobile: 270 },
+ { date: "2024-06-23", desktop: 480, mobile: 530 },
+ { date: "2024-06-24", desktop: 132, mobile: 180 },
+ { date: "2024-06-25", desktop: 141, mobile: 190 },
+ { date: "2024-06-26", desktop: 434, mobile: 380 },
+ { date: "2024-06-27", desktop: 448, mobile: 490 },
+ { date: "2024-06-28", desktop: 149, mobile: 200 },
+ { date: "2024-06-29", desktop: 103, mobile: 160 },
+ { date: "2024-06-30", desktop: 446, mobile: 400 },
]
const chartConfig = {
views: {
- label: 'Page Views',
+ label: "Page Views",
},
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
mobile: {
- label: 'Mobile',
- color: 'hsl(var(--chart-2))',
+ label: "Mobile",
+ color: "hsl(var(--chart-2))",
},
} satisfies ChartConfig
export default function Component() {
- const [activeChart, setActiveChart]
- = React.useState('desktop')
+ const [activeChart, setActiveChart] =
+ React.useState("desktop")
const total = React.useMemo(
() => ({
@@ -151,7 +149,7 @@ export default function Component() {
- {['desktop', 'mobile'].map((key) => {
+ {["desktop", "mobile"].map((key) => {
const chart = key as keyof typeof chartConfig
return (
{
const date = new Date(value)
- return date.toLocaleDateString('en-US', {
- month: 'short',
- day: 'numeric',
+ return date.toLocaleDateString("en-US", {
+ month: "short",
+ day: "numeric",
})
}}
/>
{
- return new Date(value).toLocaleDateString('en-US', {
- month: 'short',
- day: 'numeric',
- year: 'numeric',
- })
+ return new Date(value).toLocaleDateString(
+ "en-US",
+ {
+ month: "short",
+ day: "numeric",
+ year: "numeric",
+ },
+ )
}}
/>
- )}
+ }
/>
- )}
+ }
/>
- chartConfig[value]?.label}
+ chartConfig[value]?.label
+ }
/>
@@ -113,9 +112,7 @@ export default function Component() {
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
Showing total visitors for the last 6 months
diff --git a/apps/web/__registry__/default/block/chart-line-label.tsx b/apps/web/__registry__/default/block/chart-line-label.tsx
index 8c7b4292..52ff84ef 100644
--- a/apps/web/__registry__/default/block/chart-line-label.tsx
+++ b/apps/web/__registry__/default/block/chart-line-label.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { CartesianGrid, LabelList, Line, LineChart, XAxis } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { CartesianGrid, LabelList, Line, LineChart, XAxis } from "recharts"
import {
Card,
@@ -10,35 +10,33 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A line chart with a label'
+export const description = "A line chart with a label"
const chartData = [
- { month: 'January', desktop: 186, mobile: 80 },
- { month: 'February', desktop: 305, mobile: 200 },
- { month: 'March', desktop: 237, mobile: 120 },
- { month: 'April', desktop: 73, mobile: 190 },
- { month: 'May', desktop: 209, mobile: 130 },
- { month: 'June', desktop: 214, mobile: 140 },
+ { month: "January", desktop: 186, mobile: 80 },
+ { month: "February", desktop: 305, mobile: 200 },
+ { month: "March", desktop: 237, mobile: 120 },
+ { month: "April", desktop: 73, mobile: 190 },
+ { month: "May", desktop: 209, mobile: 130 },
+ { month: "June", desktop: 214, mobile: 140 },
]
const chartConfig = {
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
mobile: {
- label: 'Mobile',
- color: 'hsl(var(--chart-2))',
+ label: "Mobile",
+ color: "hsl(var(--chart-2))",
},
} satisfies ChartConfig
@@ -66,7 +64,7 @@ export default function Component() {
tickLine={false}
axisLine={false}
tickMargin={8}
- tickFormatter={value => value.slice(0, 3)}
+ tickFormatter={(value) => value.slice(0, 3)}
/>
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
Showing total visitors for the last 6 months
diff --git a/apps/web/__registry__/default/block/chart-line-linear.tsx b/apps/web/__registry__/default/block/chart-line-linear.tsx
index 2daee0af..f8e67cb2 100644
--- a/apps/web/__registry__/default/block/chart-line-linear.tsx
+++ b/apps/web/__registry__/default/block/chart-line-linear.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { CartesianGrid, Line, LineChart, XAxis } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { CartesianGrid, Line, LineChart, XAxis } from "recharts"
import {
Card,
@@ -10,31 +10,29 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A linear line chart'
+export const description = "A linear line chart"
const chartData = [
- { month: 'January', desktop: 186 },
- { month: 'February', desktop: 305 },
- { month: 'March', desktop: 237 },
- { month: 'April', desktop: 73 },
- { month: 'May', desktop: 209 },
- { month: 'June', desktop: 214 },
+ { month: "January", desktop: 186 },
+ { month: "February", desktop: 305 },
+ { month: "March", desktop: 237 },
+ { month: "April", desktop: 73 },
+ { month: "May", desktop: 209 },
+ { month: "June", desktop: 214 },
]
const chartConfig = {
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
} satisfies ChartConfig
@@ -61,7 +59,7 @@ export default function Component() {
tickLine={false}
axisLine={false}
tickMargin={8}
- tickFormatter={value => value.slice(0, 3)}
+ tickFormatter={(value) => value.slice(0, 3)}
/>
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
Showing total visitors for the last 6 months
diff --git a/apps/web/__registry__/default/block/chart-line-multiple.tsx b/apps/web/__registry__/default/block/chart-line-multiple.tsx
index 63ae0ef1..4fa93412 100644
--- a/apps/web/__registry__/default/block/chart-line-multiple.tsx
+++ b/apps/web/__registry__/default/block/chart-line-multiple.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { CartesianGrid, Line, LineChart, XAxis } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { CartesianGrid, Line, LineChart, XAxis } from "recharts"
import {
Card,
@@ -10,35 +10,33 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A multiple line chart'
+export const description = "A multiple line chart"
const chartData = [
- { month: 'January', desktop: 186, mobile: 80 },
- { month: 'February', desktop: 305, mobile: 200 },
- { month: 'March', desktop: 237, mobile: 120 },
- { month: 'April', desktop: 73, mobile: 190 },
- { month: 'May', desktop: 209, mobile: 130 },
- { month: 'June', desktop: 214, mobile: 140 },
+ { month: "January", desktop: 186, mobile: 80 },
+ { month: "February", desktop: 305, mobile: 200 },
+ { month: "March", desktop: 237, mobile: 120 },
+ { month: "April", desktop: 73, mobile: 190 },
+ { month: "May", desktop: 209, mobile: 130 },
+ { month: "June", desktop: 214, mobile: 140 },
]
const chartConfig = {
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
mobile: {
- label: 'Mobile',
- color: 'hsl(var(--chart-2))',
+ label: "Mobile",
+ color: "hsl(var(--chart-2))",
},
} satisfies ChartConfig
@@ -65,9 +63,12 @@ export default function Component() {
tickLine={false}
axisLine={false}
tickMargin={8}
- tickFormatter={value => value.slice(0, 3)}
+ tickFormatter={(value) => value.slice(0, 3)}
+ />
+ }
/>
- } />
- Trending up by 5.2% this month
- {' '}
+ Trending up by 5.2% this month{" "}
diff --git a/apps/web/__registry__/default/block/chart-line-step.tsx b/apps/web/__registry__/default/block/chart-line-step.tsx
index e6b327d3..c2089d1d 100644
--- a/apps/web/__registry__/default/block/chart-line-step.tsx
+++ b/apps/web/__registry__/default/block/chart-line-step.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { CartesianGrid, Line, LineChart, XAxis } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { CartesianGrid, Line, LineChart, XAxis } from "recharts"
import {
Card,
@@ -10,31 +10,29 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A line chart with step'
+export const description = "A line chart with step"
const chartData = [
- { month: 'January', desktop: 186 },
- { month: 'February', desktop: 305 },
- { month: 'March', desktop: 237 },
- { month: 'April', desktop: 73 },
- { month: 'May', desktop: 209 },
- { month: 'June', desktop: 214 },
+ { month: "January", desktop: 186 },
+ { month: "February", desktop: 305 },
+ { month: "March", desktop: 237 },
+ { month: "April", desktop: 73 },
+ { month: "May", desktop: 209 },
+ { month: "June", desktop: 214 },
]
const chartConfig = {
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
} satisfies ChartConfig
@@ -61,7 +59,7 @@ export default function Component() {
tickLine={false}
axisLine={false}
tickMargin={8}
- tickFormatter={value => value.slice(0, 3)}
+ tickFormatter={(value) => value.slice(0, 3)}
/>
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
Showing total visitors for the last 6 months
diff --git a/apps/web/__registry__/default/block/chart-pie-donut-active.tsx b/apps/web/__registry__/default/block/chart-pie-donut-active.tsx
index de29e1c3..ad3fddfa 100644
--- a/apps/web/__registry__/default/block/chart-pie-donut-active.tsx
+++ b/apps/web/__registry__/default/block/chart-pie-donut-active.tsx
@@ -1,8 +1,8 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { Label, Pie, PieChart, Sector } from 'recharts'
-import type { PieSectorDataItem } from 'recharts/types/polar/Pie'
+import { TrendingUp } from "lucide-react"
+import { Label, Pie, PieChart, Sector } from "recharts"
+import type { PieSectorDataItem } from "recharts/types/polar/Pie"
import {
Card,
@@ -11,49 +11,47 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A donut chart with an active sector'
+export const description = "A donut chart with an active sector"
const chartData = [
- { browser: 'chrome', visitors: 275, fill: 'var(--color-chrome)' },
- { browser: 'safari', visitors: 200, fill: 'var(--color-safari)' },
- { browser: 'firefox', visitors: 187, fill: 'var(--color-firefox)' },
- { browser: 'edge', visitors: 173, fill: 'var(--color-edge)' },
- { browser: 'other', visitors: 90, fill: 'var(--color-other)' },
+ { browser: "chrome", visitors: 275, fill: "var(--color-chrome)" },
+ { browser: "safari", visitors: 200, fill: "var(--color-safari)" },
+ { browser: "firefox", visitors: 187, fill: "var(--color-firefox)" },
+ { browser: "edge", visitors: 173, fill: "var(--color-edge)" },
+ { browser: "other", visitors: 90, fill: "var(--color-other)" },
]
const chartConfig = {
visitors: {
- label: 'Visitors',
+ label: "Visitors",
},
chrome: {
- label: 'Chrome',
- color: 'hsl(var(--chart-1))',
+ label: "Chrome",
+ color: "hsl(var(--chart-1))",
},
safari: {
- label: 'Safari',
- color: 'hsl(var(--chart-2))',
+ label: "Safari",
+ color: "hsl(var(--chart-2))",
},
firefox: {
- label: 'Firefox',
- color: 'hsl(var(--chart-3))',
+ label: "Firefox",
+ color: "hsl(var(--chart-3))",
},
edge: {
- label: 'Edge',
- color: 'hsl(var(--chart-4))',
+ label: "Edge",
+ color: "hsl(var(--chart-4))",
},
other: {
- label: 'Other',
- color: 'hsl(var(--chart-5))',
+ label: "Other",
+ color: "hsl(var(--chart-5))",
},
} satisfies ChartConfig
@@ -93,9 +91,7 @@ export default function Component() {
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
Showing total visitors for the last 6 months
diff --git a/apps/web/__registry__/default/block/chart-pie-donut-text.tsx b/apps/web/__registry__/default/block/chart-pie-donut-text.tsx
index b8d5a5fc..b02eeb3b 100644
--- a/apps/web/__registry__/default/block/chart-pie-donut-text.tsx
+++ b/apps/web/__registry__/default/block/chart-pie-donut-text.tsx
@@ -1,8 +1,8 @@
-'use client'
+"use client"
-import * as React from 'react'
-import { TrendingUp } from 'lucide-react'
-import { Label, Pie, PieChart } from 'recharts'
+import * as React from "react"
+import { TrendingUp } from "lucide-react"
+import { Label, Pie, PieChart } from "recharts"
import {
Card,
@@ -11,49 +11,47 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A donut chart with text'
+export const description = "A donut chart with text"
const chartData = [
- { browser: 'chrome', visitors: 275, fill: 'var(--color-chrome)' },
- { browser: 'safari', visitors: 200, fill: 'var(--color-safari)' },
- { browser: 'firefox', visitors: 287, fill: 'var(--color-firefox)' },
- { browser: 'edge', visitors: 173, fill: 'var(--color-edge)' },
- { browser: 'other', visitors: 190, fill: 'var(--color-other)' },
+ { browser: "chrome", visitors: 275, fill: "var(--color-chrome)" },
+ { browser: "safari", visitors: 200, fill: "var(--color-safari)" },
+ { browser: "firefox", visitors: 287, fill: "var(--color-firefox)" },
+ { browser: "edge", visitors: 173, fill: "var(--color-edge)" },
+ { browser: "other", visitors: 190, fill: "var(--color-other)" },
]
const chartConfig = {
visitors: {
- label: 'Visitors',
+ label: "Visitors",
},
chrome: {
- label: 'Chrome',
- color: 'hsl(var(--chart-1))',
+ label: "Chrome",
+ color: "hsl(var(--chart-1))",
},
safari: {
- label: 'Safari',
- color: 'hsl(var(--chart-2))',
+ label: "Safari",
+ color: "hsl(var(--chart-2))",
},
firefox: {
- label: 'Firefox',
- color: 'hsl(var(--chart-3))',
+ label: "Firefox",
+ color: "hsl(var(--chart-3))",
},
edge: {
- label: 'Edge',
- color: 'hsl(var(--chart-4))',
+ label: "Edge",
+ color: "hsl(var(--chart-4))",
},
other: {
- label: 'Other',
- color: 'hsl(var(--chart-5))',
+ label: "Other",
+ color: "hsl(var(--chart-5))",
},
} satisfies ChartConfig
@@ -87,7 +85,7 @@ export default function Component() {
>
{
- if (viewBox && 'cx' in viewBox && 'cy' in viewBox) {
+ if (viewBox && "cx" in viewBox && "cy" in viewBox) {
return (
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
Showing total visitors for the last 6 months
diff --git a/apps/web/__registry__/default/block/chart-pie-donut.tsx b/apps/web/__registry__/default/block/chart-pie-donut.tsx
index cfd3cb64..d43c1498 100644
--- a/apps/web/__registry__/default/block/chart-pie-donut.tsx
+++ b/apps/web/__registry__/default/block/chart-pie-donut.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { Pie, PieChart } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { Pie, PieChart } from "recharts"
import {
Card,
@@ -10,49 +10,47 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A donut chart'
+export const description = "A donut chart"
const chartData = [
- { browser: 'chrome', visitors: 275, fill: 'var(--color-chrome)' },
- { browser: 'safari', visitors: 200, fill: 'var(--color-safari)' },
- { browser: 'firefox', visitors: 187, fill: 'var(--color-firefox)' },
- { browser: 'edge', visitors: 173, fill: 'var(--color-edge)' },
- { browser: 'other', visitors: 90, fill: 'var(--color-other)' },
+ { browser: "chrome", visitors: 275, fill: "var(--color-chrome)" },
+ { browser: "safari", visitors: 200, fill: "var(--color-safari)" },
+ { browser: "firefox", visitors: 187, fill: "var(--color-firefox)" },
+ { browser: "edge", visitors: 173, fill: "var(--color-edge)" },
+ { browser: "other", visitors: 90, fill: "var(--color-other)" },
]
const chartConfig = {
visitors: {
- label: 'Visitors',
+ label: "Visitors",
},
chrome: {
- label: 'Chrome',
- color: 'hsl(var(--chart-1))',
+ label: "Chrome",
+ color: "hsl(var(--chart-1))",
},
safari: {
- label: 'Safari',
- color: 'hsl(var(--chart-2))',
+ label: "Safari",
+ color: "hsl(var(--chart-2))",
},
firefox: {
- label: 'Firefox',
- color: 'hsl(var(--chart-3))',
+ label: "Firefox",
+ color: "hsl(var(--chart-3))",
},
edge: {
- label: 'Edge',
- color: 'hsl(var(--chart-4))',
+ label: "Edge",
+ color: "hsl(var(--chart-4))",
},
other: {
- label: 'Other',
- color: 'hsl(var(--chart-5))',
+ label: "Other",
+ color: "hsl(var(--chart-5))",
},
} satisfies ChartConfig
@@ -84,9 +82,7 @@ export default function Component() {
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
Showing total visitors for the last 6 months
diff --git a/apps/web/__registry__/default/block/chart-pie-interactive.tsx b/apps/web/__registry__/default/block/chart-pie-interactive.tsx
index efec263a..b9b573cf 100644
--- a/apps/web/__registry__/default/block/chart-pie-interactive.tsx
+++ b/apps/web/__registry__/default/block/chart-pie-interactive.tsx
@@ -1,8 +1,8 @@
-'use client'
+"use client"
-import * as React from 'react'
-import { Label, Pie, PieChart, Sector } from 'recharts'
-import type { PieSectorDataItem } from 'recharts/types/polar/Pie'
+import * as React from "react"
+import { Label, Pie, PieChart, Sector } from "recharts"
+import type { PieSectorDataItem } from "recharts/types/polar/Pie"
import {
Card,
@@ -10,75 +10,73 @@ import {
CardDescription,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartStyle,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
-} from '~/registry/default/ui/select'
+} from "~/registry/default/ui/select"
-export const description = 'An interactive pie chart'
+export const description = "An interactive pie chart"
const desktopData = [
- { month: 'january', desktop: 186, fill: 'var(--color-january)' },
- { month: 'february', desktop: 305, fill: 'var(--color-february)' },
- { month: 'march', desktop: 237, fill: 'var(--color-march)' },
- { month: 'april', desktop: 173, fill: 'var(--color-april)' },
- { month: 'may', desktop: 209, fill: 'var(--color-may)' },
+ { month: "january", desktop: 186, fill: "var(--color-january)" },
+ { month: "february", desktop: 305, fill: "var(--color-february)" },
+ { month: "march", desktop: 237, fill: "var(--color-march)" },
+ { month: "april", desktop: 173, fill: "var(--color-april)" },
+ { month: "may", desktop: 209, fill: "var(--color-may)" },
]
const chartConfig = {
visitors: {
- label: 'Visitors',
+ label: "Visitors",
},
desktop: {
- label: 'Desktop',
+ label: "Desktop",
},
mobile: {
- label: 'Mobile',
+ label: "Mobile",
},
january: {
- label: 'January',
- color: 'hsl(var(--chart-1))',
+ label: "January",
+ color: "hsl(var(--chart-1))",
},
february: {
- label: 'February',
- color: 'hsl(var(--chart-2))',
+ label: "February",
+ color: "hsl(var(--chart-2))",
},
march: {
- label: 'March',
- color: 'hsl(var(--chart-3))',
+ label: "March",
+ color: "hsl(var(--chart-3))",
},
april: {
- label: 'April',
- color: 'hsl(var(--chart-4))',
+ label: "April",
+ color: "hsl(var(--chart-4))",
},
may: {
- label: 'May',
- color: 'hsl(var(--chart-5))',
+ label: "May",
+ color: "hsl(var(--chart-5))",
},
} satisfies ChartConfig
export default function Component() {
- const id = 'pie-interactive'
+ const id = "pie-interactive"
const [activeMonth, setActiveMonth] = React.useState(desktopData[0].month)
const activeIndex = React.useMemo(
- () => desktopData.findIndex(item => item.month === activeMonth),
+ () => desktopData.findIndex((item) => item.month === activeMonth),
[activeMonth],
)
- const months = React.useMemo(() => desktopData.map(item => item.month), [])
+ const months = React.useMemo(() => desktopData.map((item) => item.month), [])
return (
@@ -158,7 +156,7 @@ export default function Component() {
>
{
- if (viewBox && 'cx' in viewBox && 'cy' in viewBox) {
+ if (viewBox && "cx" in viewBox && "cy" in viewBox) {
return (
- {desktopData[activeIndex].desktop.toLocaleString()}
+ {desktopData[
+ activeIndex
+ ].desktop.toLocaleString()}
}
+ content={
+
+ }
/>
{`${
- chartConfig[payload.browser as keyof typeof chartConfig]
- ?.label
- } (${payload.visitors})`}
+ chartConfig[
+ payload.browser as keyof typeof chartConfig
+ ]?.label
+ } (${payload.visitors})`}
)
}}
@@ -101,9 +102,7 @@ export default function Component() {
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
Showing total visitors for the last 6 months
diff --git a/apps/web/__registry__/default/block/chart-pie-label-list.tsx b/apps/web/__registry__/default/block/chart-pie-label-list.tsx
index 8cf2e738..0b1a2b6a 100644
--- a/apps/web/__registry__/default/block/chart-pie-label-list.tsx
+++ b/apps/web/__registry__/default/block/chart-pie-label-list.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { LabelList, Pie, PieChart } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { LabelList, Pie, PieChart } from "recharts"
import {
Card,
@@ -10,49 +10,47 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A pie chart with a label list'
+export const description = "A pie chart with a label list"
const chartData = [
- { browser: 'chrome', visitors: 275, fill: 'var(--color-chrome)' },
- { browser: 'safari', visitors: 200, fill: 'var(--color-safari)' },
- { browser: 'firefox', visitors: 187, fill: 'var(--color-firefox)' },
- { browser: 'edge', visitors: 173, fill: 'var(--color-edge)' },
- { browser: 'other', visitors: 90, fill: 'var(--color-other)' },
+ { browser: "chrome", visitors: 275, fill: "var(--color-chrome)" },
+ { browser: "safari", visitors: 200, fill: "var(--color-safari)" },
+ { browser: "firefox", visitors: 187, fill: "var(--color-firefox)" },
+ { browser: "edge", visitors: 173, fill: "var(--color-edge)" },
+ { browser: "other", visitors: 90, fill: "var(--color-other)" },
]
const chartConfig = {
visitors: {
- label: 'Visitors',
+ label: "Visitors",
},
chrome: {
- label: 'Chrome',
- color: 'hsl(var(--chart-1))',
+ label: "Chrome",
+ color: "hsl(var(--chart-1))",
},
safari: {
- label: 'Safari',
- color: 'hsl(var(--chart-2))',
+ label: "Safari",
+ color: "hsl(var(--chart-2))",
},
firefox: {
- label: 'Firefox',
- color: 'hsl(var(--chart-3))',
+ label: "Firefox",
+ color: "hsl(var(--chart-3))",
},
edge: {
- label: 'Edge',
- color: 'hsl(var(--chart-4))',
+ label: "Edge",
+ color: "hsl(var(--chart-4))",
},
other: {
- label: 'Other',
- color: 'hsl(var(--chart-5))',
+ label: "Other",
+ color: "hsl(var(--chart-5))",
},
} satisfies ChartConfig
@@ -70,7 +68,9 @@ export default function Component() {
>
}
+ content={
+
+ }
/>
- chartConfig[value]?.label}
+ chartConfig[value]?.label
+ }
/>
@@ -87,9 +88,7 @@ export default function Component() {
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
Showing total visitors for the last 6 months
diff --git a/apps/web/__registry__/default/block/chart-pie-label.tsx b/apps/web/__registry__/default/block/chart-pie-label.tsx
index 39d835b4..fffb0e61 100644
--- a/apps/web/__registry__/default/block/chart-pie-label.tsx
+++ b/apps/web/__registry__/default/block/chart-pie-label.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { Pie, PieChart } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { Pie, PieChart } from "recharts"
import {
Card,
@@ -10,49 +10,47 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A pie chart with a label'
+export const description = "A pie chart with a label"
const chartData = [
- { browser: 'chrome', visitors: 275, fill: 'var(--color-chrome)' },
- { browser: 'safari', visitors: 200, fill: 'var(--color-safari)' },
- { browser: 'firefox', visitors: 187, fill: 'var(--color-firefox)' },
- { browser: 'edge', visitors: 173, fill: 'var(--color-edge)' },
- { browser: 'other', visitors: 90, fill: 'var(--color-other)' },
+ { browser: "chrome", visitors: 275, fill: "var(--color-chrome)" },
+ { browser: "safari", visitors: 200, fill: "var(--color-safari)" },
+ { browser: "firefox", visitors: 187, fill: "var(--color-firefox)" },
+ { browser: "edge", visitors: 173, fill: "var(--color-edge)" },
+ { browser: "other", visitors: 90, fill: "var(--color-other)" },
]
const chartConfig = {
visitors: {
- label: 'Visitors',
+ label: "Visitors",
},
chrome: {
- label: 'Chrome',
- color: 'hsl(var(--chart-1))',
+ label: "Chrome",
+ color: "hsl(var(--chart-1))",
},
safari: {
- label: 'Safari',
- color: 'hsl(var(--chart-2))',
+ label: "Safari",
+ color: "hsl(var(--chart-2))",
},
firefox: {
- label: 'Firefox',
- color: 'hsl(var(--chart-3))',
+ label: "Firefox",
+ color: "hsl(var(--chart-3))",
},
edge: {
- label: 'Edge',
- color: 'hsl(var(--chart-4))',
+ label: "Edge",
+ color: "hsl(var(--chart-4))",
},
other: {
- label: 'Other',
- color: 'hsl(var(--chart-5))',
+ label: "Other",
+ color: "hsl(var(--chart-5))",
},
} satisfies ChartConfig
@@ -70,15 +68,18 @@ export default function Component() {
>
} />
-
+
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
Showing total visitors for the last 6 months
diff --git a/apps/web/__registry__/default/block/chart-pie-legend.tsx b/apps/web/__registry__/default/block/chart-pie-legend.tsx
index fccfd705..a50f8a0a 100644
--- a/apps/web/__registry__/default/block/chart-pie-legend.tsx
+++ b/apps/web/__registry__/default/block/chart-pie-legend.tsx
@@ -1,6 +1,6 @@
-'use client'
+"use client"
-import { Pie, PieChart } from 'recharts'
+import { Pie, PieChart } from "recharts"
import {
Card,
@@ -8,49 +8,47 @@ import {
CardDescription,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartLegend,
ChartLegendContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A pie chart with a legend'
+export const description = "A pie chart with a legend"
const chartData = [
- { browser: 'chrome', visitors: 275, fill: 'var(--color-chrome)' },
- { browser: 'safari', visitors: 200, fill: 'var(--color-safari)' },
- { browser: 'firefox', visitors: 187, fill: 'var(--color-firefox)' },
- { browser: 'edge', visitors: 173, fill: 'var(--color-edge)' },
- { browser: 'other', visitors: 90, fill: 'var(--color-other)' },
+ { browser: "chrome", visitors: 275, fill: "var(--color-chrome)" },
+ { browser: "safari", visitors: 200, fill: "var(--color-safari)" },
+ { browser: "firefox", visitors: 187, fill: "var(--color-firefox)" },
+ { browser: "edge", visitors: 173, fill: "var(--color-edge)" },
+ { browser: "other", visitors: 90, fill: "var(--color-other)" },
]
const chartConfig = {
visitors: {
- label: 'Visitors',
+ label: "Visitors",
},
chrome: {
- label: 'Chrome',
- color: 'hsl(var(--chart-1))',
+ label: "Chrome",
+ color: "hsl(var(--chart-1))",
},
safari: {
- label: 'Safari',
- color: 'hsl(var(--chart-2))',
+ label: "Safari",
+ color: "hsl(var(--chart-2))",
},
firefox: {
- label: 'Firefox',
- color: 'hsl(var(--chart-3))',
+ label: "Firefox",
+ color: "hsl(var(--chart-3))",
},
edge: {
- label: 'Edge',
- color: 'hsl(var(--chart-4))',
+ label: "Edge",
+ color: "hsl(var(--chart-4))",
},
other: {
- label: 'Other',
- color: 'hsl(var(--chart-5))',
+ label: "Other",
+ color: "hsl(var(--chart-5))",
},
} satisfies ChartConfig
diff --git a/apps/web/__registry__/default/block/chart-pie-separator-none.tsx b/apps/web/__registry__/default/block/chart-pie-separator-none.tsx
index 24c7dc4b..38698099 100644
--- a/apps/web/__registry__/default/block/chart-pie-separator-none.tsx
+++ b/apps/web/__registry__/default/block/chart-pie-separator-none.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { Pie, PieChart } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { Pie, PieChart } from "recharts"
import {
Card,
@@ -10,49 +10,47 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A pie chart with no separator'
+export const description = "A pie chart with no separator"
const chartData = [
- { browser: 'chrome', visitors: 275, fill: 'var(--color-chrome)' },
- { browser: 'safari', visitors: 200, fill: 'var(--color-safari)' },
- { browser: 'firefox', visitors: 187, fill: 'var(--color-firefox)' },
- { browser: 'edge', visitors: 173, fill: 'var(--color-edge)' },
- { browser: 'other', visitors: 90, fill: 'var(--color-other)' },
+ { browser: "chrome", visitors: 275, fill: "var(--color-chrome)" },
+ { browser: "safari", visitors: 200, fill: "var(--color-safari)" },
+ { browser: "firefox", visitors: 187, fill: "var(--color-firefox)" },
+ { browser: "edge", visitors: 173, fill: "var(--color-edge)" },
+ { browser: "other", visitors: 90, fill: "var(--color-other)" },
]
const chartConfig = {
visitors: {
- label: 'Visitors',
+ label: "Visitors",
},
chrome: {
- label: 'Chrome',
- color: 'hsl(var(--chart-1))',
+ label: "Chrome",
+ color: "hsl(var(--chart-1))",
},
safari: {
- label: 'Safari',
- color: 'hsl(var(--chart-2))',
+ label: "Safari",
+ color: "hsl(var(--chart-2))",
},
firefox: {
- label: 'Firefox',
- color: 'hsl(var(--chart-3))',
+ label: "Firefox",
+ color: "hsl(var(--chart-3))",
},
edge: {
- label: 'Edge',
- color: 'hsl(var(--chart-4))',
+ label: "Edge",
+ color: "hsl(var(--chart-4))",
},
other: {
- label: 'Other',
- color: 'hsl(var(--chart-5))',
+ label: "Other",
+ color: "hsl(var(--chart-5))",
},
} satisfies ChartConfig
@@ -84,9 +82,7 @@ export default function Component() {
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
Showing total visitors for the last 6 months
diff --git a/apps/web/__registry__/default/block/chart-pie-simple.tsx b/apps/web/__registry__/default/block/chart-pie-simple.tsx
index cc9b3ed9..2d8272f3 100644
--- a/apps/web/__registry__/default/block/chart-pie-simple.tsx
+++ b/apps/web/__registry__/default/block/chart-pie-simple.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { Pie, PieChart } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { Pie, PieChart } from "recharts"
import {
Card,
@@ -10,49 +10,47 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A simple pie chart'
+export const description = "A simple pie chart"
const chartData = [
- { browser: 'chrome', visitors: 275, fill: 'var(--color-chrome)' },
- { browser: 'safari', visitors: 200, fill: 'var(--color-safari)' },
- { browser: 'firefox', visitors: 187, fill: 'var(--color-firefox)' },
- { browser: 'edge', visitors: 173, fill: 'var(--color-edge)' },
- { browser: 'other', visitors: 90, fill: 'var(--color-other)' },
+ { browser: "chrome", visitors: 275, fill: "var(--color-chrome)" },
+ { browser: "safari", visitors: 200, fill: "var(--color-safari)" },
+ { browser: "firefox", visitors: 187, fill: "var(--color-firefox)" },
+ { browser: "edge", visitors: 173, fill: "var(--color-edge)" },
+ { browser: "other", visitors: 90, fill: "var(--color-other)" },
]
const chartConfig = {
visitors: {
- label: 'Visitors',
+ label: "Visitors",
},
chrome: {
- label: 'Chrome',
- color: 'hsl(var(--chart-1))',
+ label: "Chrome",
+ color: "hsl(var(--chart-1))",
},
safari: {
- label: 'Safari',
- color: 'hsl(var(--chart-2))',
+ label: "Safari",
+ color: "hsl(var(--chart-2))",
},
firefox: {
- label: 'Firefox',
- color: 'hsl(var(--chart-3))',
+ label: "Firefox",
+ color: "hsl(var(--chart-3))",
},
edge: {
- label: 'Edge',
- color: 'hsl(var(--chart-4))',
+ label: "Edge",
+ color: "hsl(var(--chart-4))",
},
other: {
- label: 'Other',
- color: 'hsl(var(--chart-5))',
+ label: "Other",
+ color: "hsl(var(--chart-5))",
},
} satisfies ChartConfig
@@ -79,9 +77,7 @@ export default function Component() {
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
Showing total visitors for the last 6 months
diff --git a/apps/web/__registry__/default/block/chart-pie-stacked.tsx b/apps/web/__registry__/default/block/chart-pie-stacked.tsx
index 7b82fcd1..da310dcf 100644
--- a/apps/web/__registry__/default/block/chart-pie-stacked.tsx
+++ b/apps/web/__registry__/default/block/chart-pie-stacked.tsx
@@ -1,8 +1,8 @@
-'use client'
+"use client"
-import * as React from 'react'
-import { TrendingUp } from 'lucide-react'
-import { Label, Pie, PieChart } from 'recharts'
+import * as React from "react"
+import { TrendingUp } from "lucide-react"
+import { Label, Pie, PieChart } from "recharts"
import {
Card,
@@ -11,63 +11,61 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A pie chart with stacked sections'
+export const description = "A pie chart with stacked sections"
const desktopData = [
- { month: 'january', desktop: 186, fill: 'var(--color-january)' },
- { month: 'february', desktop: 305, fill: 'var(--color-february)' },
- { month: 'march', desktop: 237, fill: 'var(--color-march)' },
- { month: 'april', desktop: 173, fill: 'var(--color-april)' },
- { month: 'may', desktop: 209, fill: 'var(--color-may)' },
+ { month: "january", desktop: 186, fill: "var(--color-january)" },
+ { month: "february", desktop: 305, fill: "var(--color-february)" },
+ { month: "march", desktop: 237, fill: "var(--color-march)" },
+ { month: "april", desktop: 173, fill: "var(--color-april)" },
+ { month: "may", desktop: 209, fill: "var(--color-may)" },
]
const mobileData = [
- { month: 'january', mobile: 80, fill: 'var(--color-january)' },
- { month: 'february', mobile: 200, fill: 'var(--color-february)' },
- { month: 'march', mobile: 120, fill: 'var(--color-march)' },
- { month: 'april', mobile: 190, fill: 'var(--color-april)' },
- { month: 'may', mobile: 130, fill: 'var(--color-may)' },
+ { month: "january", mobile: 80, fill: "var(--color-january)" },
+ { month: "february", mobile: 200, fill: "var(--color-february)" },
+ { month: "march", mobile: 120, fill: "var(--color-march)" },
+ { month: "april", mobile: 190, fill: "var(--color-april)" },
+ { month: "may", mobile: 130, fill: "var(--color-may)" },
]
const chartConfig = {
visitors: {
- label: 'Visitors',
+ label: "Visitors",
},
desktop: {
- label: 'Desktop',
+ label: "Desktop",
},
mobile: {
- label: 'Mobile',
+ label: "Mobile",
},
january: {
- label: 'January',
- color: 'hsl(var(--chart-1))',
+ label: "January",
+ color: "hsl(var(--chart-1))",
},
february: {
- label: 'February',
- color: 'hsl(var(--chart-2))',
+ label: "February",
+ color: "hsl(var(--chart-2))",
},
march: {
- label: 'March',
- color: 'hsl(var(--chart-3))',
+ label: "March",
+ color: "hsl(var(--chart-3))",
},
april: {
- label: 'April',
- color: 'hsl(var(--chart-4))',
+ label: "April",
+ color: "hsl(var(--chart-4))",
},
may: {
- label: 'May',
- color: 'hsl(var(--chart-5))',
+ label: "May",
+ color: "hsl(var(--chart-5))",
},
} satisfies ChartConfig
@@ -85,18 +83,19 @@ export default function Component() {
>
{
return chartConfig[
- payload?.[0].dataKey as keyof typeof chartConfig
+ payload?.[0]
+ .dataKey as keyof typeof chartConfig
].label
}}
/>
- )}
+ }
/>
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
Showing total visitors for the last 6 months
diff --git a/apps/web/__registry__/default/block/chart-radar-default.tsx b/apps/web/__registry__/default/block/chart-radar-default.tsx
index d4105cb4..8095a212 100644
--- a/apps/web/__registry__/default/block/chart-radar-default.tsx
+++ b/apps/web/__registry__/default/block/chart-radar-default.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from "recharts"
import {
Card,
@@ -10,31 +10,29 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A radar chart'
+export const description = "A radar chart"
const chartData = [
- { month: 'January', desktop: 186 },
- { month: 'February', desktop: 305 },
- { month: 'March', desktop: 237 },
- { month: 'April', desktop: 273 },
- { month: 'May', desktop: 209 },
- { month: 'June', desktop: 214 },
+ { month: "January", desktop: 186 },
+ { month: "February", desktop: 305 },
+ { month: "March", desktop: 237 },
+ { month: "April", desktop: 273 },
+ { month: "May", desktop: 209 },
+ { month: "June", desktop: 214 },
]
const chartConfig = {
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
} satisfies ChartConfig
@@ -53,7 +51,10 @@ export default function Component() {
className="mx-auto aspect-square max-h-[250px]"
>
- } />
+ }
+ />
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
January - June 2024
diff --git a/apps/web/__registry__/default/block/chart-radar-dots.tsx b/apps/web/__registry__/default/block/chart-radar-dots.tsx
index 6e412568..960c623c 100644
--- a/apps/web/__registry__/default/block/chart-radar-dots.tsx
+++ b/apps/web/__registry__/default/block/chart-radar-dots.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from "recharts"
import {
Card,
@@ -10,31 +10,29 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A radar chart with dots'
+export const description = "A radar chart with dots"
const chartData = [
- { month: 'January', desktop: 186 },
- { month: 'February', desktop: 305 },
- { month: 'March', desktop: 237 },
- { month: 'April', desktop: 273 },
- { month: 'May', desktop: 209 },
- { month: 'June', desktop: 214 },
+ { month: "January", desktop: 186 },
+ { month: "February", desktop: 305 },
+ { month: "March", desktop: 237 },
+ { month: "April", desktop: 273 },
+ { month: "May", desktop: 209 },
+ { month: "June", desktop: 214 },
]
const chartConfig = {
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
} satisfies ChartConfig
@@ -53,7 +51,10 @@ export default function Component() {
className="mx-auto aspect-square max-h-[250px]"
>
- } />
+ }
+ />
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
January - June 2024
diff --git a/apps/web/__registry__/default/block/chart-radar-grid-circle-fill.tsx b/apps/web/__registry__/default/block/chart-radar-grid-circle-fill.tsx
index 5b29a8f8..a3784461 100644
--- a/apps/web/__registry__/default/block/chart-radar-grid-circle-fill.tsx
+++ b/apps/web/__registry__/default/block/chart-radar-grid-circle-fill.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from "recharts"
import {
Card,
@@ -10,31 +10,29 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A radar chart with a grid and circle fill'
+export const description = "A radar chart with a grid and circle fill"
const chartData = [
- { month: 'January', desktop: 186 },
- { month: 'February', desktop: 285 },
- { month: 'March', desktop: 237 },
- { month: 'April', desktop: 203 },
- { month: 'May', desktop: 209 },
- { month: 'June', desktop: 264 },
+ { month: "January", desktop: 186 },
+ { month: "February", desktop: 285 },
+ { month: "March", desktop: 237 },
+ { month: "April", desktop: 203 },
+ { month: "May", desktop: 209 },
+ { month: "June", desktop: 264 },
]
const chartConfig = {
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
} satisfies ChartConfig
@@ -53,7 +51,10 @@ export default function Component() {
className="mx-auto aspect-square max-h-[250px]"
>
- } />
+ }
+ />
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
January - June 2024
diff --git a/apps/web/__registry__/default/block/chart-radar-grid-circle-no-lines.tsx b/apps/web/__registry__/default/block/chart-radar-grid-circle-no-lines.tsx
index 0df38d20..b6bc9d67 100644
--- a/apps/web/__registry__/default/block/chart-radar-grid-circle-no-lines.tsx
+++ b/apps/web/__registry__/default/block/chart-radar-grid-circle-no-lines.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from "recharts"
import {
Card,
@@ -10,31 +10,29 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A radar chart with a grid and circle fill'
+export const description = "A radar chart with a grid and circle fill"
const chartData = [
- { month: 'January', desktop: 186 },
- { month: 'February', desktop: 305 },
- { month: 'March', desktop: 237 },
- { month: 'April', desktop: 203 },
- { month: 'May', desktop: 209 },
- { month: 'June', desktop: 214 },
+ { month: "January", desktop: 186 },
+ { month: "February", desktop: 305 },
+ { month: "March", desktop: 237 },
+ { month: "April", desktop: 203 },
+ { month: "May", desktop: 209 },
+ { month: "June", desktop: 214 },
]
const chartConfig = {
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
} satisfies ChartConfig
@@ -73,9 +71,7 @@ export default function Component() {
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
January - June 2024
diff --git a/apps/web/__registry__/default/block/chart-radar-grid-circle.tsx b/apps/web/__registry__/default/block/chart-radar-grid-circle.tsx
index 4ce7e306..a31334b6 100644
--- a/apps/web/__registry__/default/block/chart-radar-grid-circle.tsx
+++ b/apps/web/__registry__/default/block/chart-radar-grid-circle.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from "recharts"
import {
Card,
@@ -10,31 +10,29 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A radar chart with a grid and circle'
+export const description = "A radar chart with a grid and circle"
const chartData = [
- { month: 'January', desktop: 186 },
- { month: 'February', desktop: 305 },
- { month: 'March', desktop: 237 },
- { month: 'April', desktop: 273 },
- { month: 'May', desktop: 209 },
- { month: 'June', desktop: 214 },
+ { month: "January", desktop: 186 },
+ { month: "February", desktop: 305 },
+ { month: "March", desktop: 237 },
+ { month: "April", desktop: 273 },
+ { month: "May", desktop: 209 },
+ { month: "June", desktop: 214 },
]
const chartConfig = {
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
} satisfies ChartConfig
@@ -73,9 +71,7 @@ export default function Component() {
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
January - June 2024
diff --git a/apps/web/__registry__/default/block/chart-radar-grid-custom.tsx b/apps/web/__registry__/default/block/chart-radar-grid-custom.tsx
index 67965a88..fb953b55 100644
--- a/apps/web/__registry__/default/block/chart-radar-grid-custom.tsx
+++ b/apps/web/__registry__/default/block/chart-radar-grid-custom.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from "recharts"
import {
Card,
@@ -10,31 +10,29 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A radar chart with a custom grid'
+export const description = "A radar chart with a custom grid"
const chartData = [
- { month: 'January', desktop: 186 },
- { month: 'February', desktop: 305 },
- { month: 'March', desktop: 237 },
- { month: 'April', desktop: 273 },
- { month: 'May', desktop: 209 },
- { month: 'June', desktop: 214 },
+ { month: "January", desktop: 186 },
+ { month: "February", desktop: 305 },
+ { month: "March", desktop: 237 },
+ { month: "April", desktop: 273 },
+ { month: "May", desktop: 209 },
+ { month: "June", desktop: 214 },
]
const chartConfig = {
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
} satisfies ChartConfig
@@ -57,7 +55,11 @@ export default function Component() {
cursor={false}
content={ }
/>
-
+
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
January - June 2024
diff --git a/apps/web/__registry__/default/block/chart-radar-grid-fill.tsx b/apps/web/__registry__/default/block/chart-radar-grid-fill.tsx
index cc359b4f..d43623bd 100644
--- a/apps/web/__registry__/default/block/chart-radar-grid-fill.tsx
+++ b/apps/web/__registry__/default/block/chart-radar-grid-fill.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from "recharts"
import {
Card,
@@ -10,31 +10,29 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A radar chart with a grid filled'
+export const description = "A radar chart with a grid filled"
const chartData = [
- { month: 'January', desktop: 186 },
- { month: 'February', desktop: 285 },
- { month: 'March', desktop: 237 },
- { month: 'April', desktop: 203 },
- { month: 'May', desktop: 209 },
- { month: 'June', desktop: 264 },
+ { month: "January", desktop: 186 },
+ { month: "February", desktop: 285 },
+ { month: "March", desktop: 237 },
+ { month: "April", desktop: 203 },
+ { month: "May", desktop: 209 },
+ { month: "June", desktop: 264 },
]
const chartConfig = {
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
} satisfies ChartConfig
@@ -69,9 +67,7 @@ export default function Component() {
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
January - June 2024
diff --git a/apps/web/__registry__/default/block/chart-radar-grid-none.tsx b/apps/web/__registry__/default/block/chart-radar-grid-none.tsx
index ca243a36..7ef65393 100644
--- a/apps/web/__registry__/default/block/chart-radar-grid-none.tsx
+++ b/apps/web/__registry__/default/block/chart-radar-grid-none.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { PolarAngleAxis, Radar, RadarChart } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { PolarAngleAxis, Radar, RadarChart } from "recharts"
import {
Card,
@@ -10,31 +10,29 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A radar chart with no grid'
+export const description = "A radar chart with no grid"
const chartData = [
- { month: 'January', desktop: 186 },
- { month: 'February', desktop: 305 },
- { month: 'March', desktop: 237 },
- { month: 'April', desktop: 273 },
- { month: 'May', desktop: 209 },
- { month: 'June', desktop: 214 },
+ { month: "January", desktop: 186 },
+ { month: "February", desktop: 305 },
+ { month: "March", desktop: 237 },
+ { month: "April", desktop: 273 },
+ { month: "May", desktop: 209 },
+ { month: "June", desktop: 214 },
]
const chartConfig = {
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
} satisfies ChartConfig
@@ -72,9 +70,7 @@ export default function Component() {
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
January - June 2024
diff --git a/apps/web/__registry__/default/block/chart-radar-icons.tsx b/apps/web/__registry__/default/block/chart-radar-icons.tsx
index f287f913..d54c85ab 100644
--- a/apps/web/__registry__/default/block/chart-radar-icons.tsx
+++ b/apps/web/__registry__/default/block/chart-radar-icons.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { ArrowDownFromLine, ArrowUpFromLine, TrendingUp } from 'lucide-react'
-import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from 'recharts'
+import { ArrowDownFromLine, ArrowUpFromLine, TrendingUp } from "lucide-react"
+import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from "recharts"
import {
Card,
@@ -10,38 +10,36 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartLegend,
ChartLegendContent,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A radar chart with icons'
+export const description = "A radar chart with icons"
const chartData = [
- { month: 'January', desktop: 186, mobile: 80 },
- { month: 'February', desktop: 305, mobile: 200 },
- { month: 'March', desktop: 237, mobile: 120 },
- { month: 'April', desktop: 73, mobile: 190 },
- { month: 'May', desktop: 209, mobile: 130 },
- { month: 'June', desktop: 214, mobile: 140 },
+ { month: "January", desktop: 186, mobile: 80 },
+ { month: "February", desktop: 305, mobile: 200 },
+ { month: "March", desktop: 237, mobile: 120 },
+ { month: "April", desktop: 73, mobile: 190 },
+ { month: "May", desktop: 209, mobile: 130 },
+ { month: "June", desktop: 214, mobile: 140 },
]
const chartConfig = {
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
icon: ArrowDownFromLine,
},
mobile: {
- label: 'Mobile',
- color: 'hsl(var(--chart-2))',
+ label: "Mobile",
+ color: "hsl(var(--chart-2))",
icon: ArrowUpFromLine,
},
} satisfies ChartConfig
@@ -79,15 +77,16 @@ export default function Component() {
fillOpacity={0.6}
/>
- } />
+ }
+ />
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
January - June 2024
diff --git a/apps/web/__registry__/default/block/chart-radar-label-custom.tsx b/apps/web/__registry__/default/block/chart-radar-label-custom.tsx
index 59ac3355..ebfc8be3 100644
--- a/apps/web/__registry__/default/block/chart-radar-label-custom.tsx
+++ b/apps/web/__registry__/default/block/chart-radar-label-custom.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from "recharts"
import {
Card,
@@ -10,35 +10,33 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A radar chart with a custom label'
+export const description = "A radar chart with a custom label"
const chartData = [
- { month: 'January', desktop: 186, mobile: 80 },
- { month: 'February', desktop: 305, mobile: 200 },
- { month: 'March', desktop: 237, mobile: 120 },
- { month: 'April', desktop: 73, mobile: 190 },
- { month: 'May', desktop: 209, mobile: 130 },
- { month: 'June', desktop: 214, mobile: 140 },
+ { month: "January", desktop: 186, mobile: 80 },
+ { month: "February", desktop: 305, mobile: 200 },
+ { month: "March", desktop: 237, mobile: 120 },
+ { month: "April", desktop: 73, mobile: 190 },
+ { month: "May", desktop: 209, mobile: 130 },
+ { month: "June", desktop: 214, mobile: 140 },
]
const chartConfig = {
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
mobile: {
- label: 'Mobile',
- color: 'hsl(var(--chart-2))',
+ label: "Mobile",
+ color: "hsl(var(--chart-2))",
},
} satisfies ChartConfig
@@ -111,9 +109,7 @@ export default function Component() {
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
January - June 2024
diff --git a/apps/web/__registry__/default/block/chart-radar-legend.tsx b/apps/web/__registry__/default/block/chart-radar-legend.tsx
index 7a7cc4c8..465ebff1 100644
--- a/apps/web/__registry__/default/block/chart-radar-legend.tsx
+++ b/apps/web/__registry__/default/block/chart-radar-legend.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from "recharts"
import {
Card,
@@ -10,37 +10,35 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartLegend,
ChartLegendContent,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A radar chart with a legend'
+export const description = "A radar chart with a legend"
const chartData = [
- { month: 'January', desktop: 186, mobile: 80 },
- { month: 'February', desktop: 305, mobile: 200 },
- { month: 'March', desktop: 237, mobile: 120 },
- { month: 'April', desktop: 73, mobile: 190 },
- { month: 'May', desktop: 209, mobile: 130 },
- { month: 'June', desktop: 214, mobile: 140 },
+ { month: "January", desktop: 186, mobile: 80 },
+ { month: "February", desktop: 305, mobile: 200 },
+ { month: "March", desktop: 237, mobile: 120 },
+ { month: "April", desktop: 73, mobile: 190 },
+ { month: "May", desktop: 209, mobile: 130 },
+ { month: "June", desktop: 214, mobile: 140 },
]
const chartConfig = {
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
mobile: {
- label: 'Mobile',
- color: 'hsl(var(--chart-2))',
+ label: "Mobile",
+ color: "hsl(var(--chart-2))",
},
} satisfies ChartConfig
@@ -77,15 +75,16 @@ export default function Component() {
fillOpacity={0.6}
/>
- } />
+ }
+ />
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
January - June 2024
diff --git a/apps/web/__registry__/default/block/chart-radar-lines-only.tsx b/apps/web/__registry__/default/block/chart-radar-lines-only.tsx
index 77d26262..545adcad 100644
--- a/apps/web/__registry__/default/block/chart-radar-lines-only.tsx
+++ b/apps/web/__registry__/default/block/chart-radar-lines-only.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from "recharts"
import {
Card,
@@ -10,35 +10,33 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A radar chart with lines only'
+export const description = "A radar chart with lines only"
const chartData = [
- { month: 'January', desktop: 186, mobile: 160 },
- { month: 'February', desktop: 185, mobile: 170 },
- { month: 'March', desktop: 207, mobile: 180 },
- { month: 'April', desktop: 173, mobile: 160 },
- { month: 'May', desktop: 160, mobile: 190 },
- { month: 'June', desktop: 174, mobile: 204 },
+ { month: "January", desktop: 186, mobile: 160 },
+ { month: "February", desktop: 185, mobile: 170 },
+ { month: "March", desktop: 207, mobile: 180 },
+ { month: "April", desktop: 173, mobile: 160 },
+ { month: "May", desktop: 160, mobile: 190 },
+ { month: "June", desktop: 174, mobile: 204 },
]
const chartConfig = {
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
mobile: {
- label: 'Mobile',
- color: 'hsl(var(--chart-2))',
+ label: "Mobile",
+ color: "hsl(var(--chart-2))",
},
} satisfies ChartConfig
@@ -82,9 +80,7 @@ export default function Component() {
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
January - June 2024
diff --git a/apps/web/__registry__/default/block/chart-radar-multiple.tsx b/apps/web/__registry__/default/block/chart-radar-multiple.tsx
index 37d2a7f6..8f0e5449 100644
--- a/apps/web/__registry__/default/block/chart-radar-multiple.tsx
+++ b/apps/web/__registry__/default/block/chart-radar-multiple.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from "recharts"
import {
Card,
@@ -10,35 +10,33 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A radar chart with multiple data'
+export const description = "A radar chart with multiple data"
const chartData = [
- { month: 'January', desktop: 186, mobile: 80 },
- { month: 'February', desktop: 305, mobile: 200 },
- { month: 'March', desktop: 237, mobile: 120 },
- { month: 'April', desktop: 73, mobile: 190 },
- { month: 'May', desktop: 209, mobile: 130 },
- { month: 'June', desktop: 214, mobile: 140 },
+ { month: "January", desktop: 186, mobile: 80 },
+ { month: "February", desktop: 305, mobile: 200 },
+ { month: "March", desktop: 237, mobile: 120 },
+ { month: "April", desktop: 73, mobile: 190 },
+ { month: "May", desktop: 209, mobile: 130 },
+ { month: "June", desktop: 214, mobile: 140 },
]
const chartConfig = {
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
mobile: {
- label: 'Mobile',
- color: 'hsl(var(--chart-2))',
+ label: "Mobile",
+ color: "hsl(var(--chart-2))",
},
} satisfies ChartConfig
@@ -74,9 +72,7 @@ export default function Component() {
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
January - June 2024
diff --git a/apps/web/__registry__/default/block/chart-radar-radius.tsx b/apps/web/__registry__/default/block/chart-radar-radius.tsx
index b0103b6f..cf5b49eb 100644
--- a/apps/web/__registry__/default/block/chart-radar-radius.tsx
+++ b/apps/web/__registry__/default/block/chart-radar-radius.tsx
@@ -1,13 +1,13 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
+import { TrendingUp } from "lucide-react"
import {
PolarAngleAxis,
PolarGrid,
PolarRadiusAxis,
Radar,
RadarChart,
-} from 'recharts'
+} from "recharts"
import {
Card,
@@ -16,35 +16,33 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A radar chart with a radius axis'
+export const description = "A radar chart with a radius axis"
const chartData = [
- { month: 'January', desktop: 186, mobile: 80 },
- { month: 'February', desktop: 305, mobile: 200 },
- { month: 'March', desktop: 237, mobile: 120 },
- { month: 'April', desktop: 73, mobile: 190 },
- { month: 'May', desktop: 209, mobile: 130 },
- { month: 'June', desktop: 214, mobile: 140 },
+ { month: "January", desktop: 186, mobile: 80 },
+ { month: "February", desktop: 305, mobile: 200 },
+ { month: "March", desktop: 237, mobile: 120 },
+ { month: "April", desktop: 73, mobile: 190 },
+ { month: "May", desktop: 209, mobile: 130 },
+ { month: "June", desktop: 214, mobile: 140 },
]
const chartConfig = {
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
mobile: {
- label: 'Mobile',
- color: 'hsl(var(--chart-2))',
+ label: "Mobile",
+ color: "hsl(var(--chart-2))",
},
} satisfies ChartConfig
@@ -66,7 +64,10 @@ export default function Component() {
+
}
/>
@@ -87,9 +88,7 @@ export default function Component() {
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
January - June 2024
diff --git a/apps/web/__registry__/default/block/chart-radial-grid.tsx b/apps/web/__registry__/default/block/chart-radial-grid.tsx
index 38b6524f..a6ab9fd7 100644
--- a/apps/web/__registry__/default/block/chart-radial-grid.tsx
+++ b/apps/web/__registry__/default/block/chart-radial-grid.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { PolarGrid, RadialBar, RadialBarChart } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { PolarGrid, RadialBar, RadialBarChart } from "recharts"
import {
Card,
@@ -10,49 +10,47 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A radial chart with a grid'
+export const description = "A radial chart with a grid"
const chartData = [
- { browser: 'chrome', visitors: 275, fill: 'var(--color-chrome)' },
- { browser: 'safari', visitors: 200, fill: 'var(--color-safari)' },
- { browser: 'firefox', visitors: 187, fill: 'var(--color-firefox)' },
- { browser: 'edge', visitors: 173, fill: 'var(--color-edge)' },
- { browser: 'other', visitors: 90, fill: 'var(--color-other)' },
+ { browser: "chrome", visitors: 275, fill: "var(--color-chrome)" },
+ { browser: "safari", visitors: 200, fill: "var(--color-safari)" },
+ { browser: "firefox", visitors: 187, fill: "var(--color-firefox)" },
+ { browser: "edge", visitors: 173, fill: "var(--color-edge)" },
+ { browser: "other", visitors: 90, fill: "var(--color-other)" },
]
const chartConfig = {
visitors: {
- label: 'Visitors',
+ label: "Visitors",
},
chrome: {
- label: 'Chrome',
- color: 'hsl(var(--chart-1))',
+ label: "Chrome",
+ color: "hsl(var(--chart-1))",
},
safari: {
- label: 'Safari',
- color: 'hsl(var(--chart-2))',
+ label: "Safari",
+ color: "hsl(var(--chart-2))",
},
firefox: {
- label: 'Firefox',
- color: 'hsl(var(--chart-3))',
+ label: "Firefox",
+ color: "hsl(var(--chart-3))",
},
edge: {
- label: 'Edge',
- color: 'hsl(var(--chart-4))',
+ label: "Edge",
+ color: "hsl(var(--chart-4))",
},
other: {
- label: 'Other',
- color: 'hsl(var(--chart-5))',
+ label: "Other",
+ color: "hsl(var(--chart-5))",
},
} satisfies ChartConfig
@@ -68,10 +66,16 @@ export default function Component() {
config={chartConfig}
className="mx-auto aspect-square max-h-[250px]"
>
-
+
}
+ content={
+
+ }
/>
@@ -80,9 +84,7 @@ export default function Component() {
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
Showing total visitors for the last 6 months
diff --git a/apps/web/__registry__/default/block/chart-radial-label.tsx b/apps/web/__registry__/default/block/chart-radial-label.tsx
index a8e3c9f1..bb72d1ad 100644
--- a/apps/web/__registry__/default/block/chart-radial-label.tsx
+++ b/apps/web/__registry__/default/block/chart-radial-label.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { LabelList, RadialBar, RadialBarChart } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { LabelList, RadialBar, RadialBarChart } from "recharts"
import {
Card,
@@ -10,49 +10,47 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A radial chart with a label'
+export const description = "A radial chart with a label"
const chartData = [
- { browser: 'chrome', visitors: 275, fill: 'var(--color-chrome)' },
- { browser: 'safari', visitors: 200, fill: 'var(--color-safari)' },
- { browser: 'firefox', visitors: 187, fill: 'var(--color-firefox)' },
- { browser: 'edge', visitors: 173, fill: 'var(--color-edge)' },
- { browser: 'other', visitors: 90, fill: 'var(--color-other)' },
+ { browser: "chrome", visitors: 275, fill: "var(--color-chrome)" },
+ { browser: "safari", visitors: 200, fill: "var(--color-safari)" },
+ { browser: "firefox", visitors: 187, fill: "var(--color-firefox)" },
+ { browser: "edge", visitors: 173, fill: "var(--color-edge)" },
+ { browser: "other", visitors: 90, fill: "var(--color-other)" },
]
const chartConfig = {
visitors: {
- label: 'Visitors',
+ label: "Visitors",
},
chrome: {
- label: 'Chrome',
- color: 'hsl(var(--chart-1))',
+ label: "Chrome",
+ color: "hsl(var(--chart-1))",
},
safari: {
- label: 'Safari',
- color: 'hsl(var(--chart-2))',
+ label: "Safari",
+ color: "hsl(var(--chart-2))",
},
firefox: {
- label: 'Firefox',
- color: 'hsl(var(--chart-3))',
+ label: "Firefox",
+ color: "hsl(var(--chart-3))",
},
edge: {
- label: 'Edge',
- color: 'hsl(var(--chart-4))',
+ label: "Edge",
+ color: "hsl(var(--chart-4))",
},
other: {
- label: 'Other',
- color: 'hsl(var(--chart-5))',
+ label: "Other",
+ color: "hsl(var(--chart-5))",
},
} satisfies ChartConfig
@@ -77,7 +75,9 @@ export default function Component() {
>
}
+ content={
+
+ }
/>
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
Showing total visitors for the last 6 months
diff --git a/apps/web/__registry__/default/block/chart-radial-shape.tsx b/apps/web/__registry__/default/block/chart-radial-shape.tsx
index 3774a11c..4e7d07dd 100644
--- a/apps/web/__registry__/default/block/chart-radial-shape.tsx
+++ b/apps/web/__registry__/default/block/chart-radial-shape.tsx
@@ -1,13 +1,13 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
+import { TrendingUp } from "lucide-react"
import {
Label,
PolarGrid,
PolarRadiusAxis,
RadialBar,
RadialBarChart,
-} from 'recharts'
+} from "recharts"
import {
Card,
@@ -16,23 +16,23 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type { ChartConfig } from '~/registry/default/ui/chart'
-import { ChartContainer } from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
+import { ChartContainer } from "~/registry/default/ui/chart"
-export const description = 'A radial chart with a custom shape'
+export const description = "A radial chart with a custom shape"
const chartData = [
- { browser: 'safari', visitors: 1260, fill: 'var(--color-safari)' },
+ { browser: "safari", visitors: 1260, fill: "var(--color-safari)" },
]
const chartConfig = {
visitors: {
- label: 'Visitors',
+ label: "Visitors",
},
safari: {
- label: 'Safari',
- color: 'hsl(var(--chart-2))',
+ label: "Safari",
+ color: "hsl(var(--chart-2))",
},
} satisfies ChartConfig
@@ -62,10 +62,14 @@ export default function Component() {
polarRadius={[86, 74]}
/>
-
+
{
- if (viewBox && 'cx' in viewBox && 'cy' in viewBox) {
+ if (viewBox && "cx" in viewBox && "cy" in viewBox) {
return (
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
Showing total visitors for the last 6 months
diff --git a/apps/web/__registry__/default/block/chart-radial-simple.tsx b/apps/web/__registry__/default/block/chart-radial-simple.tsx
index d8ba77ed..0315d0dc 100644
--- a/apps/web/__registry__/default/block/chart-radial-simple.tsx
+++ b/apps/web/__registry__/default/block/chart-radial-simple.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { RadialBar, RadialBarChart } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { RadialBar, RadialBarChart } from "recharts"
import {
Card,
@@ -10,49 +10,47 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A radial chart'
+export const description = "A radial chart"
const chartData = [
- { browser: 'chrome', visitors: 275, fill: 'var(--color-chrome)' },
- { browser: 'safari', visitors: 200, fill: 'var(--color-safari)' },
- { browser: 'firefox', visitors: 187, fill: 'var(--color-firefox)' },
- { browser: 'edge', visitors: 173, fill: 'var(--color-edge)' },
- { browser: 'other', visitors: 90, fill: 'var(--color-other)' },
+ { browser: "chrome", visitors: 275, fill: "var(--color-chrome)" },
+ { browser: "safari", visitors: 200, fill: "var(--color-safari)" },
+ { browser: "firefox", visitors: 187, fill: "var(--color-firefox)" },
+ { browser: "edge", visitors: 173, fill: "var(--color-edge)" },
+ { browser: "other", visitors: 90, fill: "var(--color-other)" },
]
const chartConfig = {
visitors: {
- label: 'Visitors',
+ label: "Visitors",
},
chrome: {
- label: 'Chrome',
- color: 'hsl(var(--chart-1))',
+ label: "Chrome",
+ color: "hsl(var(--chart-1))",
},
safari: {
- label: 'Safari',
- color: 'hsl(var(--chart-2))',
+ label: "Safari",
+ color: "hsl(var(--chart-2))",
},
firefox: {
- label: 'Firefox',
- color: 'hsl(var(--chart-3))',
+ label: "Firefox",
+ color: "hsl(var(--chart-3))",
},
edge: {
- label: 'Edge',
- color: 'hsl(var(--chart-4))',
+ label: "Edge",
+ color: "hsl(var(--chart-4))",
},
other: {
- label: 'Other',
- color: 'hsl(var(--chart-5))',
+ label: "Other",
+ color: "hsl(var(--chart-5))",
},
} satisfies ChartConfig
@@ -68,10 +66,16 @@ export default function Component() {
config={chartConfig}
className="mx-auto aspect-square max-h-[250px]"
>
-
+
}
+ content={
+
+ }
/>
@@ -79,9 +83,7 @@ export default function Component() {
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
Showing total visitors for the last 6 months
diff --git a/apps/web/__registry__/default/block/chart-radial-stacked.tsx b/apps/web/__registry__/default/block/chart-radial-stacked.tsx
index e4fd832a..e1b66af4 100644
--- a/apps/web/__registry__/default/block/chart-radial-stacked.tsx
+++ b/apps/web/__registry__/default/block/chart-radial-stacked.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
-import { Label, PolarRadiusAxis, RadialBar, RadialBarChart } from 'recharts'
+import { TrendingUp } from "lucide-react"
+import { Label, PolarRadiusAxis, RadialBar, RadialBarChart } from "recharts"
import {
Card,
@@ -10,28 +10,26 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A radial chart with stacked sections'
+export const description = "A radial chart with stacked sections"
-const chartData = [{ month: 'january', desktop: 1260, mobile: 570 }]
+const chartData = [{ month: "january", desktop: 1260, mobile: 570 }]
const chartConfig = {
desktop: {
- label: 'Desktop',
- color: 'hsl(var(--chart-1))',
+ label: "Desktop",
+ color: "hsl(var(--chart-1))",
},
mobile: {
- label: 'Mobile',
- color: 'hsl(var(--chart-2))',
+ label: "Mobile",
+ color: "hsl(var(--chart-2))",
},
} satisfies ChartConfig
@@ -59,12 +57,20 @@ export default function Component() {
cursor={false}
content={ }
/>
-
+
{
- if (viewBox && 'cx' in viewBox && 'cy' in viewBox) {
+ if (viewBox && "cx" in viewBox && "cy" in viewBox) {
return (
-
+
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
Showing total visitors for the last 6 months
diff --git a/apps/web/__registry__/default/block/chart-radial-text.tsx b/apps/web/__registry__/default/block/chart-radial-text.tsx
index b0f373f1..db92f580 100644
--- a/apps/web/__registry__/default/block/chart-radial-text.tsx
+++ b/apps/web/__registry__/default/block/chart-radial-text.tsx
@@ -1,13 +1,13 @@
-'use client'
+"use client"
-import { TrendingUp } from 'lucide-react'
+import { TrendingUp } from "lucide-react"
import {
Label,
PolarGrid,
PolarRadiusAxis,
RadialBar,
RadialBarChart,
-} from 'recharts'
+} from "recharts"
import {
Card,
@@ -16,23 +16,23 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type { ChartConfig } from '~/registry/default/ui/chart'
-import { ChartContainer } from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
+import { ChartContainer } from "~/registry/default/ui/chart"
-export const description = 'A radial chart with text'
+export const description = "A radial chart with text"
const chartData = [
- { browser: 'safari', visitors: 200, fill: 'var(--color-safari)' },
+ { browser: "safari", visitors: 200, fill: "var(--color-safari)" },
]
const chartConfig = {
visitors: {
- label: 'Visitors',
+ label: "Visitors",
},
safari: {
- label: 'Safari',
- color: 'hsl(var(--chart-2))',
+ label: "Safari",
+ color: "hsl(var(--chart-2))",
},
} satisfies ChartConfig
@@ -63,10 +63,14 @@ export default function Component() {
polarRadius={[86, 74]}
/>
-
+
{
- if (viewBox && 'cx' in viewBox && 'cy' in viewBox) {
+ if (viewBox && "cx" in viewBox && "cy" in viewBox) {
return (
- Trending up by 5.2% this month
- {' '}
-
+ Trending up by 5.2% this month
Showing total visitors for the last 6 months
diff --git a/apps/web/__registry__/default/block/chart-tooltip-advanced.tsx b/apps/web/__registry__/default/block/chart-tooltip-advanced.tsx
index 6d6a5d91..a7eae2e9 100644
--- a/apps/web/__registry__/default/block/chart-tooltip-advanced.tsx
+++ b/apps/web/__registry__/default/block/chart-tooltip-advanced.tsx
@@ -1,6 +1,6 @@
-'use client'
+"use client"
-import { Bar, BarChart, XAxis } from 'recharts'
+import { Bar, BarChart, XAxis } from "recharts"
import {
Card,
@@ -8,35 +8,33 @@ import {
CardDescription,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A stacked bar chart with a legend'
+export const description = "A stacked bar chart with a legend"
const chartData = [
- { date: '2024-07-15', running: 450, swimming: 300 },
- { date: '2024-07-16', running: 380, swimming: 420 },
- { date: '2024-07-17', running: 520, swimming: 120 },
- { date: '2024-07-18', running: 140, swimming: 550 },
- { date: '2024-07-19', running: 600, swimming: 350 },
- { date: '2024-07-20', running: 480, swimming: 400 },
+ { date: "2024-07-15", running: 450, swimming: 300 },
+ { date: "2024-07-16", running: 380, swimming: 420 },
+ { date: "2024-07-17", running: 520, swimming: 120 },
+ { date: "2024-07-18", running: 140, swimming: 550 },
+ { date: "2024-07-19", running: 600, swimming: 350 },
+ { date: "2024-07-20", running: 480, swimming: 400 },
]
const chartConfig = {
running: {
- label: 'Running',
- color: 'hsl(var(--chart-1))',
+ label: "Running",
+ color: "hsl(var(--chart-1))",
},
swimming: {
- label: 'Swimming',
- color: 'hsl(var(--chart-2))',
+ label: "Swimming",
+ color: "hsl(var(--chart-2))",
},
} satisfies ChartConfig
@@ -58,8 +56,8 @@ export default function Component() {
tickMargin={10}
axisLine={false}
tickFormatter={(value) => {
- return new Date(value).toLocaleDateString('en-US', {
- weekday: 'short',
+ return new Date(value).toLocaleDateString("en-US", {
+ weekday: "short",
})
}}
/>
@@ -76,7 +74,7 @@ export default function Component() {
radius={[4, 4, 0, 0]}
/>
- {chartConfig[name as keyof typeof chartConfig]?.label
- || name}
+ {chartConfig[name as keyof typeof chartConfig]
+ ?.label || name}
{value}
@@ -103,7 +101,8 @@ export default function Component() {
Total
- {item.payload.running + item.payload.swimming}
+ {item.payload.running +
+ item.payload.swimming}
kcal
@@ -113,7 +112,7 @@ export default function Component() {
>
)}
/>
- )}
+ }
cursor={false}
defaultIndex={1}
/>
diff --git a/apps/web/__registry__/default/block/chart-tooltip-default.tsx b/apps/web/__registry__/default/block/chart-tooltip-default.tsx
index e1459cf7..1e8e209f 100644
--- a/apps/web/__registry__/default/block/chart-tooltip-default.tsx
+++ b/apps/web/__registry__/default/block/chart-tooltip-default.tsx
@@ -1,6 +1,6 @@
-'use client'
+"use client"
-import { Bar, BarChart, XAxis } from 'recharts'
+import { Bar, BarChart, XAxis } from "recharts"
import {
Card,
@@ -8,35 +8,33 @@ import {
CardDescription,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A stacked bar chart with a legend'
+export const description = "A stacked bar chart with a legend"
const chartData = [
- { date: '2024-07-15', running: 450, swimming: 300 },
- { date: '2024-07-16', running: 380, swimming: 420 },
- { date: '2024-07-17', running: 520, swimming: 120 },
- { date: '2024-07-18', running: 140, swimming: 550 },
- { date: '2024-07-19', running: 600, swimming: 350 },
- { date: '2024-07-20', running: 480, swimming: 400 },
+ { date: "2024-07-15", running: 450, swimming: 300 },
+ { date: "2024-07-16", running: 380, swimming: 420 },
+ { date: "2024-07-17", running: 520, swimming: 120 },
+ { date: "2024-07-18", running: 140, swimming: 550 },
+ { date: "2024-07-19", running: 600, swimming: 350 },
+ { date: "2024-07-20", running: 480, swimming: 400 },
]
const chartConfig = {
running: {
- label: 'Running',
- color: 'hsl(var(--chart-1))',
+ label: "Running",
+ color: "hsl(var(--chart-1))",
},
swimming: {
- label: 'Swimming',
- color: 'hsl(var(--chart-2))',
+ label: "Swimming",
+ color: "hsl(var(--chart-2))",
},
} satisfies ChartConfig
@@ -58,8 +56,8 @@ export default function Component() {
tickMargin={10}
axisLine={false}
tickFormatter={(value) => {
- return new Date(value).toLocaleDateString('en-US', {
- weekday: 'short',
+ return new Date(value).toLocaleDateString("en-US", {
+ weekday: "short",
})
}}
/>
diff --git a/apps/web/__registry__/default/block/chart-tooltip-formatter.tsx b/apps/web/__registry__/default/block/chart-tooltip-formatter.tsx
index 52cabbed..cdfb6e80 100644
--- a/apps/web/__registry__/default/block/chart-tooltip-formatter.tsx
+++ b/apps/web/__registry__/default/block/chart-tooltip-formatter.tsx
@@ -1,6 +1,6 @@
-'use client'
+"use client"
-import { Bar, BarChart, XAxis } from 'recharts'
+import { Bar, BarChart, XAxis } from "recharts"
import {
Card,
@@ -8,35 +8,33 @@ import {
CardDescription,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A stacked bar chart with a legend'
+export const description = "A stacked bar chart with a legend"
const chartData = [
- { date: '2024-07-15', running: 450, swimming: 300 },
- { date: '2024-07-16', running: 380, swimming: 420 },
- { date: '2024-07-17', running: 520, swimming: 120 },
- { date: '2024-07-18', running: 140, swimming: 550 },
- { date: '2024-07-19', running: 600, swimming: 350 },
- { date: '2024-07-20', running: 480, swimming: 400 },
+ { date: "2024-07-15", running: 450, swimming: 300 },
+ { date: "2024-07-16", running: 380, swimming: 420 },
+ { date: "2024-07-17", running: 520, swimming: 120 },
+ { date: "2024-07-18", running: 140, swimming: 550 },
+ { date: "2024-07-19", running: 600, swimming: 350 },
+ { date: "2024-07-20", running: 480, swimming: 400 },
]
const chartConfig = {
running: {
- label: 'Running',
- color: 'hsl(var(--chart-1))',
+ label: "Running",
+ color: "hsl(var(--chart-1))",
},
swimming: {
- label: 'Swimming',
- color: 'hsl(var(--chart-2))',
+ label: "Swimming",
+ color: "hsl(var(--chart-2))",
},
} satisfies ChartConfig
@@ -56,8 +54,8 @@ export default function Component() {
tickMargin={10}
axisLine={false}
tickFormatter={(value) => {
- return new Date(value).toLocaleDateString('en-US', {
- weekday: 'short',
+ return new Date(value).toLocaleDateString("en-US", {
+ weekday: "short",
})
}}
/>
@@ -74,13 +72,13 @@ export default function Component() {
radius={[4, 4, 0, 0]}
/>
(
- {chartConfig[name as keyof typeof chartConfig]?.label
- || name}
+ {chartConfig[name as keyof typeof chartConfig]
+ ?.label || name}
{value}
@@ -90,7 +88,7 @@ export default function Component() {
)}
/>
- )}
+ }
cursor={false}
defaultIndex={1}
/>
diff --git a/apps/web/__registry__/default/block/chart-tooltip-icons.tsx b/apps/web/__registry__/default/block/chart-tooltip-icons.tsx
index 2d04239d..d91a9a18 100644
--- a/apps/web/__registry__/default/block/chart-tooltip-icons.tsx
+++ b/apps/web/__registry__/default/block/chart-tooltip-icons.tsx
@@ -1,7 +1,7 @@
-'use client'
+"use client"
-import { Footprints, Waves } from 'lucide-react'
-import { Bar, BarChart, XAxis } from 'recharts'
+import { Footprints, Waves } from "lucide-react"
+import { Bar, BarChart, XAxis } from "recharts"
import {
Card,
@@ -9,36 +9,34 @@ import {
CardDescription,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A stacked bar chart with a legend'
+export const description = "A stacked bar chart with a legend"
const chartData = [
- { date: '2024-07-15', running: 450, swimming: 300 },
- { date: '2024-07-16', running: 380, swimming: 420 },
- { date: '2024-07-17', running: 520, swimming: 120 },
- { date: '2024-07-18', running: 140, swimming: 550 },
- { date: '2024-07-19', running: 600, swimming: 350 },
- { date: '2024-07-20', running: 480, swimming: 400 },
+ { date: "2024-07-15", running: 450, swimming: 300 },
+ { date: "2024-07-16", running: 380, swimming: 420 },
+ { date: "2024-07-17", running: 520, swimming: 120 },
+ { date: "2024-07-18", running: 140, swimming: 550 },
+ { date: "2024-07-19", running: 600, swimming: 350 },
+ { date: "2024-07-20", running: 480, swimming: 400 },
]
const chartConfig = {
running: {
- label: 'Running',
- color: 'hsl(var(--chart-1))',
+ label: "Running",
+ color: "hsl(var(--chart-1))",
icon: Footprints,
},
swimming: {
- label: 'Swimming',
- color: 'hsl(var(--chart-2))',
+ label: "Swimming",
+ color: "hsl(var(--chart-2))",
icon: Waves,
},
} satisfies ChartConfig
@@ -59,8 +57,8 @@ export default function Component() {
tickMargin={10}
axisLine={false}
tickFormatter={(value) => {
- return new Date(value).toLocaleDateString('en-US', {
- weekday: 'short',
+ return new Date(value).toLocaleDateString("en-US", {
+ weekday: "short",
})
}}
/>
diff --git a/apps/web/__registry__/default/block/chart-tooltip-indicator-line.tsx b/apps/web/__registry__/default/block/chart-tooltip-indicator-line.tsx
index 44befde0..5fdf6fc4 100644
--- a/apps/web/__registry__/default/block/chart-tooltip-indicator-line.tsx
+++ b/apps/web/__registry__/default/block/chart-tooltip-indicator-line.tsx
@@ -1,6 +1,6 @@
-'use client'
+"use client"
-import { Bar, BarChart, XAxis } from 'recharts'
+import { Bar, BarChart, XAxis } from "recharts"
import {
Card,
@@ -8,35 +8,33 @@ import {
CardDescription,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A stacked bar chart with a legend'
+export const description = "A stacked bar chart with a legend"
const chartData = [
- { date: '2024-07-15', running: 450, swimming: 300 },
- { date: '2024-07-16', running: 380, swimming: 420 },
- { date: '2024-07-17', running: 520, swimming: 120 },
- { date: '2024-07-18', running: 140, swimming: 550 },
- { date: '2024-07-19', running: 600, swimming: 350 },
- { date: '2024-07-20', running: 480, swimming: 400 },
+ { date: "2024-07-15", running: 450, swimming: 300 },
+ { date: "2024-07-16", running: 380, swimming: 420 },
+ { date: "2024-07-17", running: 520, swimming: 120 },
+ { date: "2024-07-18", running: 140, swimming: 550 },
+ { date: "2024-07-19", running: 600, swimming: 350 },
+ { date: "2024-07-20", running: 480, swimming: 400 },
]
const chartConfig = {
running: {
- label: 'Running',
- color: 'hsl(var(--chart-1))',
+ label: "Running",
+ color: "hsl(var(--chart-1))",
},
swimming: {
- label: 'Swimming',
- color: 'hsl(var(--chart-2))',
+ label: "Swimming",
+ color: "hsl(var(--chart-2))",
},
} satisfies ChartConfig
@@ -56,8 +54,8 @@ export default function Component() {
tickMargin={10}
axisLine={false}
tickFormatter={(value) => {
- return new Date(value).toLocaleDateString('en-US', {
- weekday: 'short',
+ return new Date(value).toLocaleDateString("en-US", {
+ weekday: "short",
})
}}
/>
diff --git a/apps/web/__registry__/default/block/chart-tooltip-indicator-none.tsx b/apps/web/__registry__/default/block/chart-tooltip-indicator-none.tsx
index d8eeb292..ba6b9636 100644
--- a/apps/web/__registry__/default/block/chart-tooltip-indicator-none.tsx
+++ b/apps/web/__registry__/default/block/chart-tooltip-indicator-none.tsx
@@ -1,6 +1,6 @@
-'use client'
+"use client"
-import { Bar, BarChart, XAxis } from 'recharts'
+import { Bar, BarChart, XAxis } from "recharts"
import {
Card,
@@ -8,35 +8,33 @@ import {
CardDescription,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A stacked bar chart with a legend'
+export const description = "A stacked bar chart with a legend"
const chartData = [
- { date: '2024-07-15', running: 450, swimming: 300 },
- { date: '2024-07-16', running: 380, swimming: 420 },
- { date: '2024-07-17', running: 520, swimming: 120 },
- { date: '2024-07-18', running: 140, swimming: 550 },
- { date: '2024-07-19', running: 600, swimming: 350 },
- { date: '2024-07-20', running: 480, swimming: 400 },
+ { date: "2024-07-15", running: 450, swimming: 300 },
+ { date: "2024-07-16", running: 380, swimming: 420 },
+ { date: "2024-07-17", running: 520, swimming: 120 },
+ { date: "2024-07-18", running: 140, swimming: 550 },
+ { date: "2024-07-19", running: 600, swimming: 350 },
+ { date: "2024-07-20", running: 480, swimming: 400 },
]
const chartConfig = {
running: {
- label: 'Running',
- color: 'hsl(var(--chart-1))',
+ label: "Running",
+ color: "hsl(var(--chart-1))",
},
swimming: {
- label: 'Swimming',
- color: 'hsl(var(--chart-2))',
+ label: "Swimming",
+ color: "hsl(var(--chart-2))",
},
} satisfies ChartConfig
@@ -56,8 +54,8 @@ export default function Component() {
tickMargin={10}
axisLine={false}
tickFormatter={(value) => {
- return new Date(value).toLocaleDateString('en-US', {
- weekday: 'short',
+ return new Date(value).toLocaleDateString("en-US", {
+ weekday: "short",
})
}}
/>
diff --git a/apps/web/__registry__/default/block/chart-tooltip-label-custom.tsx b/apps/web/__registry__/default/block/chart-tooltip-label-custom.tsx
index 92ded685..eef8d163 100644
--- a/apps/web/__registry__/default/block/chart-tooltip-label-custom.tsx
+++ b/apps/web/__registry__/default/block/chart-tooltip-label-custom.tsx
@@ -1,6 +1,6 @@
-'use client'
+"use client"
-import { Bar, BarChart, XAxis } from 'recharts'
+import { Bar, BarChart, XAxis } from "recharts"
import {
Card,
@@ -8,38 +8,36 @@ import {
CardDescription,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A stacked bar chart with a legend'
+export const description = "A stacked bar chart with a legend"
const chartData = [
- { date: '2024-07-15', running: 450, swimming: 300 },
- { date: '2024-07-16', running: 380, swimming: 420 },
- { date: '2024-07-17', running: 520, swimming: 120 },
- { date: '2024-07-18', running: 140, swimming: 550 },
- { date: '2024-07-19', running: 600, swimming: 350 },
- { date: '2024-07-20', running: 480, swimming: 400 },
+ { date: "2024-07-15", running: 450, swimming: 300 },
+ { date: "2024-07-16", running: 380, swimming: 420 },
+ { date: "2024-07-17", running: 520, swimming: 120 },
+ { date: "2024-07-18", running: 140, swimming: 550 },
+ { date: "2024-07-19", running: 600, swimming: 350 },
+ { date: "2024-07-20", running: 480, swimming: 400 },
]
const chartConfig = {
activities: {
- label: 'Activities',
+ label: "Activities",
},
running: {
- label: 'Running',
- color: 'hsl(var(--chart-1))',
+ label: "Running",
+ color: "hsl(var(--chart-1))",
},
swimming: {
- label: 'Swimming',
- color: 'hsl(var(--chart-2))',
+ label: "Swimming",
+ color: "hsl(var(--chart-2))",
},
} satisfies ChartConfig
@@ -61,8 +59,8 @@ export default function Component() {
tickMargin={10}
axisLine={false}
tickFormatter={(value) => {
- return new Date(value).toLocaleDateString('en-US', {
- weekday: 'short',
+ return new Date(value).toLocaleDateString("en-US", {
+ weekday: "short",
})
}}
/>
@@ -80,7 +78,10 @@ export default function Component() {
/>
+
}
cursor={false}
defaultIndex={1}
diff --git a/apps/web/__registry__/default/block/chart-tooltip-label-formatter.tsx b/apps/web/__registry__/default/block/chart-tooltip-label-formatter.tsx
index 14d73680..acbc8249 100644
--- a/apps/web/__registry__/default/block/chart-tooltip-label-formatter.tsx
+++ b/apps/web/__registry__/default/block/chart-tooltip-label-formatter.tsx
@@ -1,6 +1,6 @@
-'use client'
+"use client"
-import { Bar, BarChart, XAxis } from 'recharts'
+import { Bar, BarChart, XAxis } from "recharts"
import {
Card,
@@ -8,35 +8,33 @@ import {
CardDescription,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A stacked bar chart with a legend'
+export const description = "A stacked bar chart with a legend"
const chartData = [
- { date: '2024-07-15', running: 450, swimming: 300 },
- { date: '2024-07-16', running: 380, swimming: 420 },
- { date: '2024-07-17', running: 520, swimming: 120 },
- { date: '2024-07-18', running: 140, swimming: 550 },
- { date: '2024-07-19', running: 600, swimming: 350 },
- { date: '2024-07-20', running: 480, swimming: 400 },
+ { date: "2024-07-15", running: 450, swimming: 300 },
+ { date: "2024-07-16", running: 380, swimming: 420 },
+ { date: "2024-07-17", running: 520, swimming: 120 },
+ { date: "2024-07-18", running: 140, swimming: 550 },
+ { date: "2024-07-19", running: 600, swimming: 350 },
+ { date: "2024-07-20", running: 480, swimming: 400 },
]
const chartConfig = {
running: {
- label: 'Running',
- color: 'hsl(var(--chart-1))',
+ label: "Running",
+ color: "hsl(var(--chart-1))",
},
swimming: {
- label: 'Swimming',
- color: 'hsl(var(--chart-2))',
+ label: "Swimming",
+ color: "hsl(var(--chart-2))",
},
} satisfies ChartConfig
@@ -56,8 +54,8 @@ export default function Component() {
tickMargin={10}
axisLine={false}
tickFormatter={(value) => {
- return new Date(value).toLocaleDateString('en-US', {
- weekday: 'short',
+ return new Date(value).toLocaleDateString("en-US", {
+ weekday: "short",
})
}}
/>
@@ -74,17 +72,20 @@ export default function Component() {
radius={[4, 4, 0, 0]}
/>
{
- return new Date(value).toLocaleDateString('en-US', {
- day: 'numeric',
- month: 'long',
- year: 'numeric',
- })
+ return new Date(value).toLocaleDateString(
+ "en-US",
+ {
+ day: "numeric",
+ month: "long",
+ year: "numeric",
+ },
+ )
}}
/>
- )}
+ }
cursor={false}
defaultIndex={1}
/>
diff --git a/apps/web/__registry__/default/block/chart-tooltip-label-none.tsx b/apps/web/__registry__/default/block/chart-tooltip-label-none.tsx
index 2727a1b6..01b523c1 100644
--- a/apps/web/__registry__/default/block/chart-tooltip-label-none.tsx
+++ b/apps/web/__registry__/default/block/chart-tooltip-label-none.tsx
@@ -1,6 +1,6 @@
-'use client'
+"use client"
-import { Bar, BarChart, XAxis } from 'recharts'
+import { Bar, BarChart, XAxis } from "recharts"
import {
Card,
@@ -8,35 +8,33 @@ import {
CardDescription,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
-import type {
- ChartConfig,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/card"
+import type { ChartConfig } from "~/registry/default/ui/chart"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
+} from "~/registry/default/ui/chart"
-export const description = 'A stacked bar chart with a legend'
+export const description = "A stacked bar chart with a legend"
const chartData = [
- { date: '2024-07-15', running: 450, swimming: 300 },
- { date: '2024-07-16', running: 380, swimming: 420 },
- { date: '2024-07-17', running: 520, swimming: 120 },
- { date: '2024-07-18', running: 140, swimming: 550 },
- { date: '2024-07-19', running: 600, swimming: 350 },
- { date: '2024-07-20', running: 480, swimming: 400 },
+ { date: "2024-07-15", running: 450, swimming: 300 },
+ { date: "2024-07-16", running: 380, swimming: 420 },
+ { date: "2024-07-17", running: 520, swimming: 120 },
+ { date: "2024-07-18", running: 140, swimming: 550 },
+ { date: "2024-07-19", running: 600, swimming: 350 },
+ { date: "2024-07-20", running: 480, swimming: 400 },
]
const chartConfig = {
running: {
- label: 'Running',
- color: 'hsl(var(--chart-1))',
+ label: "Running",
+ color: "hsl(var(--chart-1))",
},
swimming: {
- label: 'Swimming',
- color: 'hsl(var(--chart-2))',
+ label: "Swimming",
+ color: "hsl(var(--chart-2))",
},
} satisfies ChartConfig
@@ -56,8 +54,8 @@ export default function Component() {
tickMargin={10}
axisLine={false}
tickFormatter={(value) => {
- return new Date(value).toLocaleDateString('en-US', {
- weekday: 'short',
+ return new Date(value).toLocaleDateString("en-US", {
+ weekday: "short",
})
}}
/>
diff --git a/apps/web/__registry__/default/block/charts-01.tsx b/apps/web/__registry__/default/block/charts-01.tsx
index 7a5d5b6d..1fa57a37 100644
--- a/apps/web/__registry__/default/block/charts-01.tsx
+++ b/apps/web/__registry__/default/block/charts-01.tsx
@@ -1,4 +1,4 @@
-'use client'
+"use client"
import {
Area,
@@ -17,7 +17,7 @@ import {
ReferenceLine,
XAxis,
YAxis,
-} from 'recharts'
+} from "recharts"
import {
Card,
@@ -26,32 +26,29 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
+} from "~/registry/default/ui/card"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
-} from '~/registry/default/ui/chart'
-import { Separator } from '~/registry/default/ui/separator'
+} from "~/registry/default/ui/chart"
+import { Separator } from "~/registry/default/ui/separator"
-export const description = 'A collection of health charts.'
+export const description = "A collection of health charts."
-export const iframeHeight = '900px'
+export const iframeHeight = "900px"
-export const containerClassName = 'min-h-screen py-12'
+export const containerClassName = "min-h-screen py-12"
export default function Charts() {
return (
-
+
Today
- 12,584
- {' '}
+ 12,584{" "}
steps
@@ -61,8 +58,8 @@ export default function Charts() {
@@ -74,31 +71,31 @@ export default function Charts() {
}}
data={[
{
- date: '2024-01-01',
+ date: "2024-01-01",
steps: 2000,
},
{
- date: '2024-01-02',
+ date: "2024-01-02",
steps: 2100,
},
{
- date: '2024-01-03',
+ date: "2024-01-03",
steps: 2200,
},
{
- date: '2024-01-04',
+ date: "2024-01-04",
steps: 1300,
},
{
- date: '2024-01-05',
+ date: "2024-01-05",
steps: 1400,
},
{
- date: '2024-01-06',
+ date: "2024-01-06",
steps: 2500,
},
{
- date: '2024-01-07',
+ date: "2024-01-07",
steps: 1600,
},
]}
@@ -116,25 +113,31 @@ export default function Charts() {
axisLine={false}
tickMargin={4}
tickFormatter={(value) => {
- return new Date(value).toLocaleDateString('en-US', {
- weekday: 'short',
- })
+ return new Date(value).toLocaleDateString(
+ "en-US",
+ {
+ weekday: "short",
+ },
+ )
}}
/>
{
- return new Date(value).toLocaleDateString('en-US', {
- day: 'numeric',
- month: 'long',
- year: 'numeric',
- })
+ return new Date(value).toLocaleDateString(
+ "en-US",
+ {
+ day: "numeric",
+ month: "long",
+ year: "numeric",
+ },
+ )
}}
/>
- )}
+ }
cursor={false}
/>
- Over the past 7 days, you have walked
- {' '}
- 53,305
- {' '}
+ Over the past 7 days, you have walked{" "}
+ 53,305 {" "}
steps.
- You need
- {' '}
- 12,584
- {' '}
- more
- steps to reach your goal.
+ You need{" "}
+ 12,584 {" "}
+ more steps to reach your goal.
@@ -206,8 +205,8 @@ export default function Charts() {
-
+
{
- return new Date(value).toLocaleDateString('en-US', {
- weekday: 'short',
- })
+ return new Date(value).toLocaleDateString(
+ "en-US",
+ {
+ weekday: "short",
+ },
+ )
}}
/>
{
- return new Date(value).toLocaleDateString('en-US', {
- day: 'numeric',
- month: 'long',
- year: 'numeric',
- })
+ return new Date(value).toLocaleDateString(
+ "en-US",
+ {
+ day: "numeric",
+ month: "long",
+ year: "numeric",
+ },
+ )
}}
/>
- )}
+ }
cursor={false}
/>
@@ -302,9 +307,7 @@ export default function Charts() {
-
+
Progress
@@ -322,8 +325,8 @@ export default function Charts() {
-
+
@@ -373,8 +381,8 @@ export default function Charts() {
-
+
-
+
Walking Distance
- Over the last 7 days, your distance walked and run was 12.5 miles
- per day.
+ Over the last 7 days, your distance walked and run was 12.5
+ miles per day.
@@ -436,8 +447,8 @@ export default function Charts() {
-
+
- Move
+
+ Move
+
562
@@ -584,9 +595,14 @@ export default function Charts() {
-
+
- Exercise
+
+ Exercise
+
73
@@ -594,9 +610,14 @@ export default function Charts() {
-
+
- Stand
+
+ Stand
+
14
@@ -609,13 +630,13 @@ export default function Charts() {
-
+
- Move
+
+ Move
+
562/600
@@ -624,7 +645,9 @@ export default function Charts() {
- Exercise
+
+ Exercise
+
73/120
@@ -633,7 +656,9 @@ export default function Charts() {
- Stand
+
+ Stand
+
8/12
@@ -645,16 +670,16 @@ export default function Charts() {
-
+
-
+
Active Energy
- You're burning an average of 754 calories per day. Good job!
+ You're burning an average of 754 calories per day. Good
+ job!
@@ -718,8 +746,8 @@ export default function Charts() {
-
+
Time in Bed
@@ -802,8 +828,8 @@ export default function Charts() {
@@ -811,31 +837,31 @@ export default function Charts() {
accessibilityLayer
data={[
{
- date: '2024-01-01',
+ date: "2024-01-01",
time: 8.5,
},
{
- date: '2024-01-02',
+ date: "2024-01-02",
time: 7.2,
},
{
- date: '2024-01-03',
+ date: "2024-01-03",
time: 8.1,
},
{
- date: '2024-01-04',
+ date: "2024-01-04",
time: 6.2,
},
{
- date: '2024-01-05',
+ date: "2024-01-05",
time: 5.2,
},
{
- date: '2024-01-06',
+ date: "2024-01-06",
time: 8.1,
},
{
- date: '2024-01-07',
+ date: "2024-01-07",
time: 7.0,
},
]}
@@ -847,9 +873,15 @@ export default function Charts() {
}}
>
-
+
-
+
}
- formatter={value => (
+ formatter={(value) => (
Time in bed
diff --git a/apps/web/__registry__/default/block/dashboard-01.tsx b/apps/web/__registry__/default/block/dashboard-01.tsx
index 32faac1e..fcd0e805 100644
--- a/apps/web/__registry__/default/block/dashboard-01.tsx
+++ b/apps/web/__registry__/default/block/dashboard-01.tsx
@@ -1,4 +1,4 @@
-import Link from 'next/link'
+import Link from "next/link"
import {
Activity,
ArrowUpRight,
@@ -9,22 +9,22 @@ import {
Package2,
Search,
Users,
-} from 'lucide-react'
+} from "lucide-react"
import {
Avatar,
AvatarFallback,
AvatarImage,
-} from '~/registry/default/ui/avatar'
-import { Badge } from '~/registry/default/ui/badge'
-import { Button } from '~/registry/default/ui/button'
+} from "~/registry/default/ui/avatar"
+import { Badge } from "~/registry/default/ui/badge"
+import { Button } from "~/registry/default/ui/button"
import {
Card,
CardContent,
CardDescription,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
+} from "~/registry/default/ui/card"
import {
DropdownMenu,
DropdownMenuContent,
@@ -32,9 +32,9 @@ import {
DropdownMenuLabel,
DropdownMenuSeparator,
DropdownMenuTrigger,
-} from '~/registry/default/ui/dropdown-menu'
-import { Input } from '~/registry/default/ui/input'
-import { Sheet, SheetContent, SheetTrigger } from '~/registry/default/ui/sheet'
+} from "~/registry/default/ui/dropdown-menu"
+import { Input } from "~/registry/default/ui/input"
+import { Sheet, SheetContent, SheetTrigger } from "~/registry/default/ui/sheet"
import {
Table,
TableBody,
@@ -42,14 +42,14 @@ import {
TableHead,
TableHeader,
TableRow,
-} from '~/registry/default/ui/table'
+} from "~/registry/default/ui/table"
-export const description
- = 'An application shell with a header and main content area. The header has a navbar, a search input and and a user nav dropdown. The user nav is toggled by a button with an avatar image.'
+export const description =
+ "An application shell with a header and main content area. The header has a navbar, a search input and and a user nav dropdown. The user nav is toggled by a button with an avatar image."
-export const iframeHeight = '825px'
+export const iframeHeight = "825px"
-export const containerClassName = 'w-full h-full'
+export const containerClassName = "w-full h-full"
export default function Dashboard() {
return (
@@ -157,7 +157,11 @@ export default function Dashboard() {
-
+
Toggle user menu
@@ -205,7 +209,9 @@ export default function Dashboard() {
- Sales
+
+ Sales
+
@@ -217,7 +223,9 @@ export default function Dashboard() {
- Active Now
+
+ Active Now
+
@@ -229,9 +237,7 @@ export default function Dashboard() {
-
+
Transactions
@@ -260,7 +266,9 @@ export default function Dashboard() {
Date
- Amount
+
+ Amount
+
@@ -282,7 +290,9 @@ export default function Dashboard() {
2023-06-23
- $250.00
+
+ $250.00
+
@@ -302,11 +312,15 @@ export default function Dashboard() {
2023-06-24
- $150.00
+
+ $150.00
+
- Noah Williams
+
+ Noah Williams
+
noah@example.com
@@ -322,7 +336,9 @@ export default function Dashboard() {
2023-06-25
- $350.00
+
+ $350.00
+
@@ -342,7 +358,9 @@ export default function Dashboard() {
2023-06-26
- $450.00
+
+ $450.00
+
@@ -362,7 +380,9 @@ export default function Dashboard() {
2023-06-27
- $550.00
+
+ $550.00
+
diff --git a/apps/web/__registry__/default/block/dashboard-02.tsx b/apps/web/__registry__/default/block/dashboard-02.tsx
index 3f23a6ff..5400ce1d 100644
--- a/apps/web/__registry__/default/block/dashboard-02.tsx
+++ b/apps/web/__registry__/default/block/dashboard-02.tsx
@@ -1,4 +1,4 @@
-import Link from 'next/link'
+import Link from "next/link"
import {
Bell,
CircleUser,
@@ -10,17 +10,17 @@ import {
Search,
ShoppingCart,
Users,
-} from 'lucide-react'
+} from "lucide-react"
-import { Badge } from '~/registry/default/ui/badge'
-import { Button } from '~/registry/default/ui/button'
+import { Badge } from "~/registry/default/ui/badge"
+import { Button } from "~/registry/default/ui/button"
import {
Card,
CardContent,
CardDescription,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
+} from "~/registry/default/ui/card"
import {
DropdownMenu,
DropdownMenuContent,
@@ -28,16 +28,16 @@ import {
DropdownMenuLabel,
DropdownMenuSeparator,
DropdownMenuTrigger,
-} from '~/registry/default/ui/dropdown-menu'
-import { Input } from '~/registry/default/ui/input'
-import { Sheet, SheetContent, SheetTrigger } from '~/registry/default/ui/sheet'
+} from "~/registry/default/ui/dropdown-menu"
+import { Input } from "~/registry/default/ui/input"
+import { Sheet, SheetContent, SheetTrigger } from "~/registry/default/ui/sheet"
-export const description
- = 'A products dashboard with a sidebar navigation and a main content area. The dashboard has a header with a search input and a user menu. The sidebar has a logo, navigation links, and a card with a call to action. The main content area shows an empty state with a call to action.'
+export const description =
+ "A products dashboard with a sidebar navigation and a main content area. The dashboard has a header with a search input and a user menu. The sidebar has a logo, navigation links, and a card with a call to action. The main content area shows an empty state with a call to action."
-export const iframeHeight = '800px'
+export const iframeHeight = "800px"
-export const containerClassName = 'w-full h-full'
+export const containerClassName = "w-full h-full"
export default function Dashboard() {
return (
@@ -45,11 +45,18 @@ export default function Dashboard() {
-
+
Acme Inc
-
+
Toggle notifications
@@ -78,8 +85,7 @@ export default function Dashboard() {
className="bg-muted text-primary hover:text-primary flex items-center gap-3 rounded-lg px-3 py-2 transition-all"
>
- Products
- {' '}
+ Products{" "}
Upgrade to Pro
- Unlock all features and get unlimited access to our support
- team.
+ Unlock all features and get unlimited access to our
+ support team.
@@ -181,8 +187,8 @@ export default function Dashboard() {
Upgrade to Pro
- Unlock all features and get unlimited access to our
- support team.
+ Unlock all features and get unlimited access to
+ our support team.
@@ -208,7 +214,11 @@ export default function Dashboard() {
-
+
Toggle user menu
@@ -225,10 +235,13 @@ export default function Dashboard() {
- Inventory
+
+ Inventory
+
diff --git a/apps/web/__registry__/default/block/dashboard-03.tsx b/apps/web/__registry__/default/block/dashboard-03.tsx
index b3da52a7..56f4f7a1 100644
--- a/apps/web/__registry__/default/block/dashboard-03.tsx
+++ b/apps/web/__registry__/default/block/dashboard-03.tsx
@@ -15,10 +15,10 @@ import {
SquareUser,
Triangle,
Turtle,
-} from 'lucide-react'
+} from "lucide-react"
-import { Badge } from '~/registry/default/ui/badge'
-import { Button } from '~/registry/default/ui/button'
+import { Badge } from "~/registry/default/ui/badge"
+import { Button } from "~/registry/default/ui/button"
import {
Drawer,
DrawerContent,
@@ -26,29 +26,29 @@ import {
DrawerHeader,
DrawerTitle,
DrawerTrigger,
-} from '~/registry/default/ui/drawer'
-import { Input } from '~/registry/default/ui/input'
-import { Label } from '~/registry/default/ui/label'
+} from "~/registry/default/ui/drawer"
+import { Input } from "~/registry/default/ui/input"
+import { Label } from "~/registry/default/ui/label"
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
-} from '~/registry/default/ui/select'
-import { Textarea } from '~/registry/default/ui/textarea'
+} from "~/registry/default/ui/select"
+import { Textarea } from "~/registry/default/ui/textarea"
import {
Tooltip,
TooltipContent,
TooltipTrigger,
-} from '~/registry/default/ui/tooltip'
+} from "~/registry/default/ui/tooltip"
-export const description
- = 'An AI playground with a sidebar navigation and a main content area. The playground has a header with a settings drawer and a share button. The sidebar has navigation links and a user menu. The main content area shows a form to configure the model and messages.'
+export const description =
+ "An AI playground with a sidebar navigation and a main content area. The playground has a header with a settings drawer and a share button. The sidebar has navigation links and a user menu. The main content area shows a form to configure the model and messages."
-export const iframeHeight = '740px'
+export const iframeHeight = "740px"
-export const containerClassName = 'w-full h-full'
+export const containerClassName = "w-full h-full"
export default function Dashboard() {
return (
@@ -206,14 +206,17 @@ export default function Dashboard() {
- Neural
- {' '}
+ Neural{" "}
Genesis
-
- Our fastest model for general use cases.
+
+ Our fastest model for general
+ use cases.
@@ -223,14 +226,17 @@ export default function Dashboard() {
- Neural
- {' '}
+ Neural{" "}
Explorer
-
- Performance and speed for efficiency.
+
+ Performance and speed for
+ efficiency.
@@ -240,15 +246,17 @@ export default function Dashboard() {
- Neural
- {' '}
+ Neural{" "}
Quantum
-
- The most powerful model for complex
- computations.
+
+ The most powerful model for
+ complex computations.
@@ -258,15 +266,27 @@ export default function Dashboard() {
Temperature
-
+
Top P
-
+
Top K
-
+
@@ -280,15 +300,22 @@ export default function Dashboard() {
- System
+
+ System
+
User
- Assistant
+
+ Assistant
+
Content
-
+
@@ -305,7 +332,8 @@ export default function Dashboard() {
@@ -344,14 +375,17 @@ export default function Dashboard() {
- Neural
- {' '}
+ Neural{" "}
Explorer
-
- Performance and speed for efficiency.
+
+ Performance and speed for
+ efficiency.
@@ -361,14 +395,17 @@ export default function Dashboard() {
- Neural
- {' '}
+ Neural{" "}
Quantum
-
- The most powerful model for complex computations.
+
+ The most powerful model for complex
+ computations.
@@ -378,16 +415,28 @@ export default function Dashboard() {
Temperature
-
+
@@ -404,7 +453,9 @@ export default function Dashboard() {
System
User
- Assistant
+
+ Assistant
+
@@ -425,7 +476,8 @@ export default function Dashboard() {
-
+
Toggle user menu
@@ -157,7 +161,8 @@ export default function Dashboard() {
General
@@ -189,8 +194,8 @@ export default function Dashboard() {
Plugins Directory
- The directory within your project, in which your plugins are
- located.
+ The directory within your project, in which your
+ plugins are located.
diff --git a/apps/web/__registry__/default/block/dashboard-05.tsx b/apps/web/__registry__/default/block/dashboard-05.tsx
index 43129993..73d570e5 100644
--- a/apps/web/__registry__/default/block/dashboard-05.tsx
+++ b/apps/web/__registry__/default/block/dashboard-05.tsx
@@ -1,5 +1,5 @@
-import Image from 'next/image'
-import Link from 'next/link'
+import Image from "next/image"
+import Link from "next/link"
import {
ChevronLeft,
ChevronRight,
@@ -18,9 +18,9 @@ import {
ShoppingCart,
Truck,
Users2,
-} from 'lucide-react'
+} from "lucide-react"
-import { Badge } from '~/registry/default/ui/badge'
+import { Badge } from "~/registry/default/ui/badge"
import {
Breadcrumb,
BreadcrumbItem,
@@ -28,8 +28,8 @@ import {
BreadcrumbList,
BreadcrumbPage,
BreadcrumbSeparator,
-} from '~/registry/default/ui/breadcrumb'
-import { Button } from '~/registry/default/ui/button'
+} from "~/registry/default/ui/breadcrumb"
+import { Button } from "~/registry/default/ui/button"
import {
Card,
CardContent,
@@ -37,7 +37,7 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
+} from "~/registry/default/ui/card"
import {
DropdownMenu,
DropdownMenuCheckboxItem,
@@ -46,16 +46,16 @@ import {
DropdownMenuLabel,
DropdownMenuSeparator,
DropdownMenuTrigger,
-} from '~/registry/default/ui/dropdown-menu'
-import { Input } from '~/registry/default/ui/input'
+} from "~/registry/default/ui/dropdown-menu"
+import { Input } from "~/registry/default/ui/input"
import {
Pagination,
PaginationContent,
PaginationItem,
-} from '~/registry/default/ui/pagination'
-import { Progress } from '~/registry/default/ui/progress'
-import { Separator } from '~/registry/default/ui/separator'
-import { Sheet, SheetContent, SheetTrigger } from '~/registry/default/ui/sheet'
+} from "~/registry/default/ui/pagination"
+import { Progress } from "~/registry/default/ui/progress"
+import { Separator } from "~/registry/default/ui/separator"
+import { Sheet, SheetContent, SheetTrigger } from "~/registry/default/ui/sheet"
import {
Table,
TableBody,
@@ -63,25 +63,25 @@ import {
TableHead,
TableHeader,
TableRow,
-} from '~/registry/default/ui/table'
+} from "~/registry/default/ui/table"
import {
Tabs,
TabsContent,
TabsList,
TabsTrigger,
-} from '~/registry/default/ui/tabs'
+} from "~/registry/default/ui/tabs"
import {
Tooltip,
TooltipContent,
TooltipTrigger,
-} from '~/registry/default/ui/tooltip'
+} from "~/registry/default/ui/tooltip"
-export const description
- = 'An orders dashboard with a sidebar navigation. The sidebar has icon navigation. The content area has a breadcrumb and search in the header. The main area has a list of recent orders with a filter and export button. The main area also has a detailed view of a single order with order details, shipping information, billing information, customer information, and payment information.'
+export const description =
+ "An orders dashboard with a sidebar navigation. The sidebar has icon navigation. The content area has a breadcrumb and search in the header. The main area has a list of recent orders with a filter and export button. The main area also has a detailed view of a single order with order details, shipping information, billing information, customer information, and payment information."
-export const iframeHeight = '1112px'
+export const iframeHeight = "1112px"
-export const containerClassName = 'w-full h-full'
+export const containerClassName = "w-full h-full"
export default function Dashboard() {
return (
@@ -175,7 +175,11 @@ export default function Dashboard() {
-
+
Toggle Menu
@@ -284,13 +288,14 @@ export default function Dashboard() {
Your Orders
- Introducing Our Dynamic Orders Dashboard for Seamless
- Management and Insightful Analysis.
+ Introducing Our Dynamic Orders Dashboard for
+ Seamless Management and Insightful Analysis.
@@ -342,11 +347,15 @@ export default function Dashboard() {
className="h-7 gap-1 text-sm"
>
- Filter
+
+ Filter
+
- Filter by
+
+ Filter by
+
Fulfilled
@@ -365,7 +374,9 @@ export default function Dashboard() {
className="h-7 gap-1 text-sm"
>
- Export
+
+ Export
+
@@ -391,13 +402,17 @@ export default function Dashboard() {
Date
- Amount
+
+ Amount
+
- Liam Johnson
+
+ Liam Johnson
+
liam@example.com
@@ -406,18 +421,25 @@ export default function Dashboard() {
Sale
-
+
Fulfilled
2023-06-23
- $250.00
+
+ $250.00
+
- Olivia Smith
+
+ Olivia Smith
+
olivia@example.com
@@ -426,18 +448,25 @@ export default function Dashboard() {
Refund
-
+
Declined
2023-06-24
- $150.00
+
+ $150.00
+
- Noah Williams
+
+ Noah Williams
+
noah@example.com
@@ -446,18 +475,25 @@ export default function Dashboard() {
Subscription
-
+
Fulfilled
2023-06-25
- $350.00
+
+ $350.00
+
- Emma Brown
+
+ Emma Brown
+
emma@example.com
@@ -466,18 +502,25 @@ export default function Dashboard() {
Sale
-
+
Fulfilled
2023-06-26
- $450.00
+
+ $450.00
+
- Liam Johnson
+
+ Liam Johnson
+
liam@example.com
@@ -486,18 +529,25 @@ export default function Dashboard() {
Sale
-
+
Fulfilled
2023-06-23
- $250.00
+
+ $250.00
+
- Liam Johnson
+
+ Liam Johnson
+
liam@example.com
@@ -506,18 +556,25 @@ export default function Dashboard() {
Sale
-
+
Fulfilled
2023-06-23
- $250.00
+
+ $250.00
+
- Olivia Smith
+
+ Olivia Smith
+
olivia@example.com
@@ -526,18 +583,25 @@ export default function Dashboard() {
Refund
-
+
Declined
2023-06-24
- $150.00
+
+ $150.00
+
- Emma Brown
+
+ Emma Brown
+
emma@example.com
@@ -546,14 +610,19 @@ export default function Dashboard() {
Sale
-
+
Fulfilled
2023-06-26
- $450.00
+
+ $450.00
+
@@ -564,7 +633,8 @@ export default function Dashboard() {
@@ -579,10 +649,16 @@ export default function Dashboard() {
Copy Order ID
- Date: November 23, 2023
+
+ Date: November 23, 2023
+
-
+
Track Order
@@ -590,7 +666,11 @@ export default function Dashboard() {
-
+
More
@@ -610,17 +690,13 @@ export default function Dashboard() {
- Glimmer Lamps x
- {' '}
- 2
+ Glimmer Lamps x 2
$250.00
- Aqua Filters x
- {' '}
- 1
+ Aqua Filters x 1
$49.00
@@ -628,19 +704,27 @@ export default function Dashboard() {
- Subtotal
+
+ Subtotal
+
$299.00
- Shipping
+
+ Shipping
+
$5.00
- Tax
+
+ Tax
+
$25.00
- Total
+
+ Total
+
$329.00
@@ -648,7 +732,9 @@ export default function Dashboard() {
- Shipping Information
+
+ Shipping Information
+
Liam Johnson
1234 Main St.
@@ -656,7 +742,9 @@ export default function Dashboard() {
- Billing Information
+
+ Billing Information
+
Same as shipping address
@@ -664,20 +752,28 @@ export default function Dashboard() {
- Customer Information
+
+ Customer Information
+
- Customer
+
+ Customer
+
Liam Johnson
- Phone
+
+ Phone
+
+1 234 567 890
@@ -686,7 +782,9 @@ export default function Dashboard() {
- Payment Information
+
+ Payment Information
+
@@ -700,20 +798,29 @@ export default function Dashboard() {
- Updated
- {' '}
+ Updated{" "}
November 23, 2023
-
+
- Previous Order
+
+ Previous Order
+
-
+
Next Order
diff --git a/apps/web/__registry__/default/block/dashboard-06.tsx b/apps/web/__registry__/default/block/dashboard-06.tsx
index 2c8a0ae6..2d083014 100644
--- a/apps/web/__registry__/default/block/dashboard-06.tsx
+++ b/apps/web/__registry__/default/block/dashboard-06.tsx
@@ -1,5 +1,5 @@
-import Image from 'next/image'
-import Link from 'next/link'
+import Image from "next/image"
+import Link from "next/link"
import {
File,
Home,
@@ -14,9 +14,9 @@ import {
Settings,
ShoppingCart,
Users2,
-} from 'lucide-react'
+} from "lucide-react"
-import { Badge } from '~/registry/default/ui/badge'
+import { Badge } from "~/registry/default/ui/badge"
import {
Breadcrumb,
BreadcrumbItem,
@@ -24,8 +24,8 @@ import {
BreadcrumbList,
BreadcrumbPage,
BreadcrumbSeparator,
-} from '~/registry/default/ui/breadcrumb'
-import { Button } from '~/registry/default/ui/button'
+} from "~/registry/default/ui/breadcrumb"
+import { Button } from "~/registry/default/ui/button"
import {
Card,
CardContent,
@@ -33,7 +33,7 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
+} from "~/registry/default/ui/card"
import {
DropdownMenu,
DropdownMenuCheckboxItem,
@@ -42,9 +42,9 @@ import {
DropdownMenuLabel,
DropdownMenuSeparator,
DropdownMenuTrigger,
-} from '~/registry/default/ui/dropdown-menu'
-import { Input } from '~/registry/default/ui/input'
-import { Sheet, SheetContent, SheetTrigger } from '~/registry/default/ui/sheet'
+} from "~/registry/default/ui/dropdown-menu"
+import { Input } from "~/registry/default/ui/input"
+import { Sheet, SheetContent, SheetTrigger } from "~/registry/default/ui/sheet"
import {
Table,
TableBody,
@@ -52,25 +52,25 @@ import {
TableHead,
TableHeader,
TableRow,
-} from '~/registry/default/ui/table'
+} from "~/registry/default/ui/table"
import {
Tabs,
TabsContent,
TabsList,
TabsTrigger,
-} from '~/registry/default/ui/tabs'
+} from "~/registry/default/ui/tabs"
import {
Tooltip,
TooltipContent,
TooltipTrigger,
-} from '~/registry/default/ui/tooltip'
+} from "~/registry/default/ui/tooltip"
-export const description
- = 'An products dashboard with a sidebar navigation. The sidebar has icon navigation. The content area has a breadcrumb and search in the header. It displays a list of products in a table with actions.'
+export const description =
+ "An products dashboard with a sidebar navigation. The sidebar has icon navigation. The content area has a breadcrumb and search in the header. It displays a list of products in a table with actions."
-export const iframeHeight = '938px'
+export const iframeHeight = "938px"
-export const containerClassName = 'w-full h-full'
+export const containerClassName = "w-full h-full"
export default function Dashboard() {
return (
@@ -164,7 +164,11 @@ export default function Dashboard() {
-
+
Toggle Menu
@@ -276,14 +280,21 @@ export default function Dashboard() {
All
Active
Draft
-
+
Archived
-
+
Filter
@@ -296,13 +307,19 @@ export default function Dashboard() {
Active
- Draft
+
+ Draft
+
Archived
-
+
Export
@@ -321,7 +338,8 @@ export default function Dashboard() {
Products
- Manage your products and view their sales performance.
+ Manage your products and view their sales
+ performance.
@@ -382,13 +400,21 @@ export default function Dashboard() {
variant="ghost"
>
- Toggle menu
+
+ Toggle menu
+
- Actions
- Edit
- Delete
+
+ Actions
+
+
+ Edit
+
+
+ Delete
+
@@ -427,13 +453,21 @@ export default function Dashboard() {
variant="ghost"
>
- Toggle menu
+
+ Toggle menu
+
- Actions
- Edit
- Delete
+
+ Actions
+
+
+ Edit
+
+
+ Delete
+
@@ -472,13 +506,21 @@ export default function Dashboard() {
variant="ghost"
>
- Toggle menu
+
+ Toggle menu
+
- Actions
- Edit
- Delete
+
+ Actions
+
+
+ Edit
+
+
+ Delete
+
@@ -517,13 +559,21 @@ export default function Dashboard() {
variant="ghost"
>
- Toggle menu
+
+ Toggle menu
+
- Actions
- Edit
- Delete
+
+ Actions
+
+
+ Edit
+
+
+ Delete
+
@@ -562,13 +612,21 @@ export default function Dashboard() {
variant="ghost"
>
- Toggle menu
+
+ Toggle menu
+
- Actions
- Edit
- Delete
+
+ Actions
+
+
+ Edit
+
+
+ Delete
+
@@ -607,13 +665,21 @@ export default function Dashboard() {
variant="ghost"
>
- Toggle menu
+
+ Toggle menu
+
- Actions
- Edit
- Delete
+
+ Actions
+
+
+ Edit
+
+
+ Delete
+
@@ -623,14 +689,8 @@ export default function Dashboard() {
- Showing
- {' '}
- 1-10
- {' '}
- of
- 32
- {' '}
- products
+ Showing 1-10 of
+ 32 products
diff --git a/apps/web/__registry__/default/block/dashboard-07.tsx b/apps/web/__registry__/default/block/dashboard-07.tsx
index ad4b6e3b..a1ad2a3a 100644
--- a/apps/web/__registry__/default/block/dashboard-07.tsx
+++ b/apps/web/__registry__/default/block/dashboard-07.tsx
@@ -1,5 +1,5 @@
-import Image from 'next/image'
-import Link from 'next/link'
+import Image from "next/image"
+import Link from "next/link"
import {
ChevronLeft,
Home,
@@ -13,9 +13,9 @@ import {
ShoppingCart,
Upload,
Users2,
-} from 'lucide-react'
+} from "lucide-react"
-import { Badge } from '~/registry/default/ui/badge'
+import { Badge } from "~/registry/default/ui/badge"
import {
Breadcrumb,
BreadcrumbItem,
@@ -23,8 +23,8 @@ import {
BreadcrumbList,
BreadcrumbPage,
BreadcrumbSeparator,
-} from '~/registry/default/ui/breadcrumb'
-import { Button } from '~/registry/default/ui/button'
+} from "~/registry/default/ui/breadcrumb"
+import { Button } from "~/registry/default/ui/button"
import {
Card,
CardContent,
@@ -32,7 +32,7 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from '~/registry/default/ui/card'
+} from "~/registry/default/ui/card"
import {
DropdownMenu,
DropdownMenuContent,
@@ -40,17 +40,17 @@ import {
DropdownMenuLabel,
DropdownMenuSeparator,
DropdownMenuTrigger,
-} from '~/registry/default/ui/dropdown-menu'
-import { Input } from '~/registry/default/ui/input'
-import { Label } from '~/registry/default/ui/label'
+} from "~/registry/default/ui/dropdown-menu"
+import { Input } from "~/registry/default/ui/input"
+import { Label } from "~/registry/default/ui/label"
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
-} from '~/registry/default/ui/select'
-import { Sheet, SheetContent, SheetTrigger } from '~/registry/default/ui/sheet'
+} from "~/registry/default/ui/select"
+import { Sheet, SheetContent, SheetTrigger } from "~/registry/default/ui/sheet"
import {
Table,
TableBody,
@@ -58,24 +58,24 @@ import {
TableHead,
TableHeader,
TableRow,
-} from '~/registry/default/ui/table'
-import { Textarea } from '~/registry/default/ui/textarea'
+} from "~/registry/default/ui/table"
+import { Textarea } from "~/registry/default/ui/textarea"
import {
ToggleGroup,
ToggleGroupItem,
-} from '~/registry/default/ui/toggle-group'
+} from "~/registry/default/ui/toggle-group"
import {
Tooltip,
TooltipContent,
TooltipTrigger,
-} from '~/registry/default/ui/tooltip'
+} from "~/registry/default/ui/tooltip"
-export const description
- = 'A product edit page. The product edit page has a form to edit the product details, stock, product category, product status, and product images. The product edit page has a sidebar navigation and a main content area. The main content area has a form to edit the product details, stock, product category, product status, and product images. The sidebar navigation has links to product details, stock, product category, product status, and product images.'
+export const description =
+ "A product edit page. The product edit page has a form to edit the product details, stock, product category, product status, and product images. The product edit page has a sidebar navigation and a main content area. The main content area has a form to edit the product details, stock, product category, product status, and product images. The sidebar navigation has links to product details, stock, product category, product status, and product images."
-export const iframeHeight = '1200px'
+export const iframeHeight = "1200px"
-export const containerClassName = 'w-full h-full'
+export const containerClassName = "w-full h-full"
export default function Dashboard() {
return (
@@ -169,7 +169,11 @@ export default function Dashboard() {
-
+
Toggle Menu
@@ -300,7 +304,8 @@ export default function Dashboard() {
Product Details
- Lipsum dolor sit amet, consectetur adipiscing elit
+ Lipsum dolor sit amet, consectetur adipiscing
+ elit
@@ -315,7 +320,9 @@ export default function Dashboard() {
/>
- Description
+
+ Description
+
|