mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-11-03 03:18:52 +00:00
Upstream sync from shadcn-ui/ui (1686 commits since last merge base). Key changes: - packages/shadcn upgraded to 4.1.0 (CLI font transformers, scaffold from github, chart colors) - apps/v4 replaces apps/www as the primary docs/registry app - Font system: 25+ heading font registries, font markers utility, @supports override - Chart improvements: recharts v3 compat, radial chart fixes - templates/ updated with monorepo variants (astro, vite, react-router, start) - skills/shadcn AI skill definitions added - deprecated/ removed (auth, auth-firebase, cli, www) Preserved Hanzo-only paths: app/, pkg/, demo/, docs/, template/next/
60 lines
1.6 KiB
TypeScript
60 lines
1.6 KiB
TypeScript
"use client"
|
|
|
|
import * as React from "react"
|
|
|
|
import { Button } from "@/registry/bases/radix/ui/button"
|
|
import {
|
|
Card,
|
|
CardContent,
|
|
CardDescription,
|
|
CardFooter,
|
|
CardHeader,
|
|
CardTitle,
|
|
} from "@/registry/bases/radix/ui/card"
|
|
|
|
const FITNESS_WEEKLY_LOAD = [
|
|
{ day: "M", load: 84 },
|
|
{ day: "T", load: 52 },
|
|
{ day: "W", load: 73 },
|
|
{ day: "T", load: 66 },
|
|
{ day: "F", load: 91 },
|
|
{ day: "S", load: 48 },
|
|
{ day: "S", load: 61 },
|
|
]
|
|
|
|
export function WeeklyFitnessSummary() {
|
|
return (
|
|
<Card>
|
|
<CardHeader>
|
|
<CardTitle>Weekly Fitness Summary</CardTitle>
|
|
<CardDescription>Calories and workout load by day</CardDescription>
|
|
</CardHeader>
|
|
<CardContent className="flex flex-col gap-4">
|
|
<div className="grid grid-cols-7 gap-1.5">
|
|
{FITNESS_WEEKLY_LOAD.map((day, index) => (
|
|
<div
|
|
key={`${day.day}-${index}`}
|
|
className="rounded-md p-1.5 text-center ring ring-border"
|
|
>
|
|
<div className="text-sm text-muted-foreground">{day.day}</div>
|
|
<div className="relative mt-1 h-16 overflow-hidden rounded-sm bg-muted">
|
|
<div
|
|
className="absolute inset-x-0 bottom-0 rounded-sm bg-chart-3"
|
|
style={
|
|
{
|
|
height: `${day.load}%`,
|
|
} as React.CSSProperties
|
|
}
|
|
/>
|
|
</div>
|
|
</div>
|
|
))}
|
|
</div>
|
|
</CardContent>
|
|
<CardFooter>
|
|
<Button className="w-full">View details</Button>
|
|
</CardFooter>
|
|
</Card>
|
|
)
|
|
}
|