diff --git a/src/app/(dashboard)/aprovacoes/pendentes/page.tsx b/src/app/(dashboard)/aprovacoes/pendentes/page.tsx
index 2836e3da..151c6c1d 100644
--- a/src/app/(dashboard)/aprovacoes/pendentes/page.tsx
+++ b/src/app/(dashboard)/aprovacoes/pendentes/page.tsx
@@ -1,9 +1,11 @@
import type { Metadata } from 'next'
+import { PendingPatientRequirements } from '@/modules/patient-requirements/pending-requirements'
+
export const metadata: Metadata = {
title: 'Envios pendentes',
}
export default function Page() {
- return
Envios pendentes
+ return
}
diff --git a/src/app/globals.css b/src/app/globals.css
index cc8badb2..3504c5d9 100644
--- a/src/app/globals.css
+++ b/src/app/globals.css
@@ -24,7 +24,7 @@
--color-accent-foreground: #0a0d14;
--color-success: #059669;
- --color-warning: #f17b2c;
+ --color-warning: #a16207;
--color-error: #df1c41;
--color-ring: #008b62;
diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsx
index 8032929a..3d6d7ee7 100644
--- a/src/components/ui/button.tsx
+++ b/src/components/ui/button.tsx
@@ -5,7 +5,7 @@ import { Loader2Icon } from 'lucide-react'
import { cn } from '@/utils/class-name-merge'
const buttonVariants = cva(
- 'ring-offset-background focus-visible:ring-ring inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 rounded-lg text-sm font-medium whitespace-nowrap transition-all focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 aria-readonly:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:transition-colors',
+ 'ring-offset-background focus-visible:ring-ring inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 rounded-lg font-medium whitespace-nowrap transition-all focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 aria-readonly:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:transition-colors',
{
variants: {
variant: {
@@ -23,9 +23,9 @@ const buttonVariants = cva(
},
size: {
default: 'h-10 min-h-10 px-4 [&_svg]:size-5',
- xs: 'h-8 min-h-8 rounded-md px-2.5 text-xs [&_svg]:size-4',
+ xs: 'h-8 min-h-8 rounded-md px-2.5 text-sm [&_svg]:size-4',
sm: 'h-9 min-h-9 px-4 [&_svg]:size-4',
- lg: 'h-11 min-h-11 rounded-xl px-3 text-base [&_svg]:size-5',
+ lg: 'h-11 min-h-11 rounded-xl px-3 [&_svg]:size-5',
icon: 'min-size-10 size-10 [&_svg]:size-5',
},
},
diff --git a/src/components/ui/card.tsx b/src/components/ui/card.tsx
index 703cd9ad..c95e1167 100644
--- a/src/components/ui/card.tsx
+++ b/src/components/ui/card.tsx
@@ -1,17 +1,26 @@
+import { cva, type VariantProps } from 'class-variance-authority'
import type { HTMLAttributes } from 'react'
import { cn } from '@/utils/class-name-merge'
-export type CardProps = HTMLAttributes
+const cardVariants = cva('overflow-hidden rounded-2xl border p-4', {
+ variants: {
+ variant: {
+ default: 'bg-card border-border shadow-xs',
+ info: 'bg-accent/75 border-border',
+ warning: 'bg-warning/5 border-warning/25',
+ error: 'bg-error/5 border-error/25',
+ success: 'bg-success/5 border-success/25',
+ },
+ },
+ defaultVariants: {
+ variant: 'default',
+ },
+})
-export function Card({ className, ...props }: Readonly) {
- return (
-
- )
+export type CardProps = HTMLAttributes &
+ VariantProps
+
+export function Card({ variant, className, ...props }: Readonly) {
+ return
}
diff --git a/src/components/ui/dialog/container.tsx b/src/components/ui/dialog/container.tsx
index a6dc81a4..91c2ab42 100644
--- a/src/components/ui/dialog/container.tsx
+++ b/src/components/ui/dialog/container.tsx
@@ -31,7 +31,7 @@ export function DialogContainer({
diff --git a/src/components/ui/dialog/description.tsx b/src/components/ui/dialog/description.tsx
index 204e153b..16b0ff23 100644
--- a/src/components/ui/dialog/description.tsx
+++ b/src/components/ui/dialog/description.tsx
@@ -8,7 +8,7 @@ export function DialogDescription({
}: Readonly>) {
return (
)
diff --git a/src/components/ui/dialog/header.tsx b/src/components/ui/dialog/header.tsx
index 3fe2c30d..4f1f7d4b 100644
--- a/src/components/ui/dialog/header.tsx
+++ b/src/components/ui/dialog/header.tsx
@@ -30,7 +30,7 @@ export function DialogHeader({
)}
- {props.children}
+ {props.children}
)
}
diff --git a/src/components/ui/dialog/title.tsx b/src/components/ui/dialog/title.tsx
index d7304719..d852b4b5 100644
--- a/src/components/ui/dialog/title.tsx
+++ b/src/components/ui/dialog/title.tsx
@@ -8,7 +8,7 @@ export function DialogTitle({
}: Readonly>) {
return (
)
diff --git a/src/components/ui/label.tsx b/src/components/ui/label.tsx
index 3d826853..c205fb64 100644
--- a/src/components/ui/label.tsx
+++ b/src/components/ui/label.tsx
@@ -14,7 +14,7 @@ export function Label({