mirror of
https://github.com/documenso/documenso.git
synced 2025-11-26 06:32:08 +10:00
**Description:** - Updated mobile header with respect to latest designs <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added a new `showText` property to the `MenuSwitcher` component to control text visibility. - Added a `textSectionClassName` property to the `AvatarWithText` component for conditional text section styling. - Updated the `CommandDialog` and `DialogContent` components with new positioning and styling properties. - **Style Updates** - Adjusted text size responsiveness in the `Hero` component for various screen sizes. - Modified text truncation and input styling in the `Widget` component. - Changed the width of the `SheetContent` element in `MobileNavigation` and adjusted footer layout. - **Documentation** - Added instructions for certificate placement in `SIGNING.md`. - **Refactor** - Standardized type imports across various components and utilities for improved type checking. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Adithya Krishna <adithya@documenso.com> Signed-off-by: Adithya Krishna <aadithya794@gmail.com> Co-authored-by: David Nguyen <davidngu28@gmail.com>
19 lines
549 B
TypeScript
19 lines
549 B
TypeScript
import type { HTMLAttributes } from 'react';
|
|
|
|
import { cn } from '@documenso/ui/lib/utils';
|
|
|
|
export type MetricCardProps = HTMLAttributes<HTMLDivElement> & {
|
|
title: string;
|
|
value: string;
|
|
};
|
|
|
|
export const MetricCard = ({ className, title, value, ...props }: MetricCardProps) => {
|
|
return (
|
|
<div className={cn('rounded-md border p-4 shadow-sm hover:shadow', className)} {...props}>
|
|
<h4 className="text-muted-foreground text-sm font-medium">{title}</h4>
|
|
|
|
<p className="mb-2 mt-6 text-4xl font-bold">{value}</p>
|
|
</div>
|
|
);
|
|
};
|