feat(dashboard): reuse reports filter on overview and add more operators (#31)

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-09-05 15:55:31 +02:00
parent 7e941080dc
commit 18b3bc3018
20 changed files with 464 additions and 168 deletions

View File

@@ -6,7 +6,7 @@ import { cva } from 'class-variance-authority';
import type { VariantProps } from 'class-variance-authority';
const badgeVariants = cva(
'inline-flex h-[20px] items-center rounded-full border px-1.5 text-sm font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',
'inline-flex h-[20px] items-center rounded-full border px-2 text-sm font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',
{
variants: {
variant: {
@@ -19,6 +19,7 @@ const badgeVariants = cva(
success:
'border-transparent bg-emerald-500 text-emerald-100 hover:bg-emerald-500/80',
outline: 'text-foreground',
muted: 'bg-def-100 text-foreground',
},
},
defaultVariants: {

View File

@@ -10,12 +10,13 @@ const inputVariant = cva(
{
variants: {
size: {
default: 'h-8 px-3 py-2 ',
sm: 'h-8 px-3 py-2 ',
default: 'h-10 px-3 py-2 ',
large: 'h-12 px-4 py-3 text-lg',
},
},
defaultVariants: {
size: 'default',
size: 'sm',
},
}
);