Remove the hover-only brightening of the tactical dossier grid texture so it keeps a constant opacity across EmploymentCard, CampaignCard, and the operations surfaces (OperationSections, StrategicSummary, tokens).
53 lines
1.8 KiB
TypeScript
53 lines
1.8 KiB
TypeScript
import type { ReactNode } from "react";
|
|
import { cn } from "@/lib/utils";
|
|
import { ClassificationStrip } from "./ClassificationStrip";
|
|
import { CornerBrackets } from "./CornerBrackets";
|
|
import { LedgerRow, type ReadoutCell } from "./LedgerRow";
|
|
import { DOSSIER } from "./tokens";
|
|
|
|
/**
|
|
* Tactical strategic-summary surface: squared corners, faint 28px grid
|
|
* texture, classification strip, corner brackets, and an optional permanent
|
|
* readout footer. This is the reusable card primitive extracted from the
|
|
* approved campaign-card dossier conventions.
|
|
*
|
|
* NOT for dense data UI, forms, dialogs, buttons, or shadcn-styled controls:
|
|
* those keep the conventional shadcn baseline. Decorative layers are
|
|
* aria-hidden; all motion is transition-only and disabled under
|
|
* prefers-reduced-motion.
|
|
*/
|
|
export function StrategicSummary({
|
|
classificationLeft,
|
|
classificationRight,
|
|
readoutCells,
|
|
children,
|
|
className,
|
|
}: {
|
|
classificationLeft: string;
|
|
classificationRight: string;
|
|
readoutCells?: readonly ReadoutCell[];
|
|
children: ReactNode;
|
|
className?: string;
|
|
}) {
|
|
return (
|
|
<div
|
|
data-slot="strategic-summary"
|
|
className={cn(
|
|
"group relative overflow-hidden rounded-none border border-border/70 bg-card transition-colors duration-300 hover:border-foreground/30 motion-reduce:transition-none",
|
|
className,
|
|
)}
|
|
>
|
|
<div
|
|
aria-hidden="true"
|
|
className="pointer-events-none absolute inset-0 z-[5] opacity-[0.04]"
|
|
style={DOSSIER.gridTexture}
|
|
/>
|
|
<CornerBrackets />
|
|
<div className="relative z-10 flex flex-col">
|
|
<ClassificationStrip left={classificationLeft} right={classificationRight} />
|
|
<div className="px-5 py-4">{children}</div>
|
|
{readoutCells ? <LedgerRow cells={readoutCells} /> : null}
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|