Merge branch 'dev-main' into dev-kartik

This commit is contained in:
Kartik Datrika
2026-04-06 10:48:09 +05:30
95 changed files with 20807 additions and 10621 deletions

View File

@@ -20,8 +20,8 @@ export const AvatarLabelGroup = ({ title, subtitle, className, ...props }: Avata
<figure className={cx("group flex min-w-0 flex-1 items-center", styles[props.size].root, className)}>
<Avatar {...props} />
<figcaption className="min-w-0 flex-1">
<p className={cx("text-primary", styles[props.size].title)}>{title}</p>
<p className={cx("truncate text-tertiary", styles[props.size].subtitle)}>{subtitle}</p>
<p className={cx("text-white", styles[props.size].title)}>{title}</p>
<p className={cx("truncate text-white opacity-70", styles[props.size].subtitle)}>{subtitle}</p>
</figcaption>
</figure>
);

View File

@@ -0,0 +1,14 @@
import { cx } from "@/utils/cx";
interface AvatarCountProps {
count: number;
className?: string;
}
export const AvatarCount = ({ count, className }: AvatarCountProps) => (
<div className={cx("absolute right-0 bottom-0 p-px", className)}>
<div className="flex size-3.5 items-center justify-center rounded-full bg-fg-error-primary text-center text-[10px] leading-[13px] font-bold text-white">
{count}
</div>
</div>
);