diff --git a/.husky/pre-commit b/.husky/pre-commit index 846fbe5..6725413 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,5 +1,5 @@ #!/bin/bash -bun run typecheck +bun run check bun run bump:version git add package.json \ No newline at end of file diff --git a/avatar.tsx b/avatar.tsx new file mode 100644 index 0000000..5752419 --- /dev/null +++ b/avatar.tsx @@ -0,0 +1,40 @@ +"use client"; + +import * as AvatarPrimitive from "@radix-ui/react-avatar"; +import { type ComponentPropsWithoutRef, type ElementRef, forwardRef } from "react"; +import cn from "./cn"; + +const Avatar = forwardRef< + ElementRef, + ComponentPropsWithoutRef +>(({ className, ...rest }, ref) => ( + +)); + +const AvatarImage = forwardRef< + ElementRef, + ComponentPropsWithoutRef +>(({ className, ...rest }, ref) => ( + +)); + +const AvatarFallback = forwardRef< + ElementRef, + ComponentPropsWithoutRef +>(({ className, ...rest }, ref) => ( + +)); + +Avatar.displayName = AvatarPrimitive.Root.displayName; +AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName; +AvatarImage.displayName = AvatarPrimitive.Image.displayName; + +export { Avatar, AvatarImage, AvatarFallback }; diff --git a/package.json b/package.json index 56896ec..389dae2 100644 --- a/package.json +++ b/package.json @@ -1,18 +1,17 @@ { "name": "@risc0/ui", - "version": "0.0.29", + "version": "0.0.30", "sideEffects": false, "type": "module", "scripts": { "bump:version": "bunx changelogen --bump --no-output", - "check": "bunx @biomejs/biome check . --apply-unsafe", + "check": "tsc && bunx @biomejs/biome check . --apply-unsafe", "prepare": "npx husky", "sort-package": "bunx sort-package-json 'package.json'", - "test": "bun test spec", - "typecheck": "tsc", - "update-deps": "bunx npm-check-updates --root --format group -i" + "test": "bun test spec" }, "dependencies": { + "@radix-ui/react-avatar": "1.0.4", "@radix-ui/react-checkbox": "1.0.4", "@radix-ui/react-dialog": "1.0.5", "@radix-ui/react-dropdown-menu": "2.0.6", @@ -34,7 +33,7 @@ "cmdk": "1.0.0", "geist": "1.3.0", "lodash-es": "4.17.21", - "lucide-react": "0.363.0", + "lucide-react": "0.364.0", "next-themes": "0.3.0", "nprogress": "0.2.0", "react-hook-form": "7.51.2",