commit compras1 2911
tests / ci (push) Waiting to run

This commit is contained in:
2026-11-29 05:28:30 +02:00
parent 1ddabbbdcc
commit 448948a487
137 changed files with 9481 additions and 1926 deletions
+10 -3
View File
@@ -124,8 +124,9 @@ export function Panel({
return (
<section
id={id}
tabIndex={id ? -1 : undefined}
aria-labelledby={headingId}
className="sgc-panel min-w-0 scroll-mt-24 rounded-xl border bg-card p-4 shadow-xs sm:p-5 print:rounded-none print:shadow-none"
className="sgc-panel min-w-0 scroll-mt-24 rounded-xl border bg-card p-4 shadow-xs sm:p-5 lg:scroll-mt-72 print:rounded-none print:shadow-none"
>
<h2
id={headingId}
@@ -160,14 +161,20 @@ export function Status({ value }: { value: string }) {
</Badge>
);
}
export function RequisitionTable({ rows }: { rows: Requisition[] }) {
export function RequisitionTable({
rows,
emptyDescription = 'Não existem pedidos disponíveis neste conjunto para o seu perfil.',
}: {
rows: Requisition[];
emptyDescription?: string;
}) {
if (!rows.length)
return (
<div className="py-12 text-center">
<ClipboardList className="mx-auto mb-3 size-9 text-muted-foreground/50" />
<p className="font-medium">Sem requisições para apresentar</p>
<p className="mt-1 text-sm text-muted-foreground">
Os pedidos de compra aparecem aqui depois de criados.
{emptyDescription}
</p>
</div>
);