bake canonical build harness (deterministic /ship for forks) [dashboard]

This commit is contained in:
vibeasite-bot
2026-08-22 05:56:06 +01:00
parent 9d37692dc6
commit bbf19c07f9
77 changed files with 6513 additions and 363 deletions
+32 -10
View File
@@ -1,16 +1,38 @@
import * as React from "react";
import * as AvatarPrimitive from "@radix-ui/react-avatar";
import { cn } from "@/lib/utils";
export const Avatar = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
<div className={cn("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full bg-slate-100", className)} {...props} />
);
const Avatar = React.forwardRef<
React.ElementRef<typeof AvatarPrimitive.Root>,
React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>
>(({ className, ...props }, ref) => (
<AvatarPrimitive.Root
ref={ref}
className={cn("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", className)}
{...props}
/>
));
Avatar.displayName = AvatarPrimitive.Root.displayName;
export const AvatarImage = ({ className, ...props }: React.ImgHTMLAttributes<HTMLImageElement>) => (
<img className={cn("aspect-square h-full w-full object-cover", className)} {...props} />
);
const AvatarImage = React.forwardRef<
React.ElementRef<typeof AvatarPrimitive.Image>,
React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>
>(({ className, ...props }, ref) => (
<AvatarPrimitive.Image ref={ref} className={cn("aspect-square h-full w-full", className)} {...props} />
));
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
export const AvatarFallback = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
<div className={cn("flex h-full w-full items-center justify-center rounded-full bg-slate-200 text-sm font-medium text-slate-600", className)} {...props} />
);
const AvatarFallback = React.forwardRef<
React.ElementRef<typeof AvatarPrimitive.Fallback>,
React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>
>(({ className, ...props }, ref) => (
<AvatarPrimitive.Fallback
ref={ref}
className={cn("flex h-full w-full items-center justify-center rounded-full bg-muted", className)}
{...props}
/>
));
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
export default Avatar;
export { Avatar, AvatarImage, AvatarFallback };