import React from 'react'; // --- SHARED SUB-COMPONENTS --- const Card = ({ title, children, className = '', }: { title?: string; children: React.ReactNode; className?: string; }) => (
{title && (

{title}

)}
{children}
); const Badge = ({ children, variant = 'info', }: { children: React.ReactNode; variant?: 'success' | 'error' | 'warning' | 'info'; }) => { const styles = { success: 'bg-green-50 text-green-600 border-green-100', error: 'bg-red-50 text-red-600 border-red-100', warning: 'bg-amber-50 text-amber-600 border-amber-100', info: 'bg-brand-50 text-brand-600 border-brand-100', }; return ( {children} ); }; // --- MAIN PAGE COMPONENT --- export function StyleGuideOne() { return (
{/* 1. OBJECT HEADER (SAP Pattern) */}

PO #4500019283 Released

{/* 2. ANALYTICS / KPI SECTION */}
{[ { label: 'Total Value', val: '$12,450.00', color: 'text-gray-900' }, { label: 'Items Count', val: '24 SKUs', color: 'text-gray-900' }, { label: 'Days Overdue', val: '5 Days', color: 'text-red-500' }, { label: 'Vendor Rating', val: '4.8 / 5.0', color: 'text-green-600' }, ].map((kpi, i) => (

{kpi.label}

{kpi.val}

))}
{/* LEFT: FORM & CONTROLS */}
    {[ { time: '10:00 AM', msg: 'Order Created', user: 'System' }, { time: '11:30 AM', msg: 'Manager Approved', user: 'Budi Santoso' }, ].map((log, i) => (
  • {log.msg}

    {log.time} • By {log.user}

  • ))}
{/* RIGHT: DATA TABLE (The Core of ERP) */}

Line Items

{[1, 2, 3, 4, 5].map((item) => ( ))}
Material Description Qty Price Total
M-1000{item} Industrial Steel Pipe 2.5" - Grade {item === 2 ? 'B' : 'A'} 100.00 150.00 15,000.00
Grand Total (Net) $ 75,000.00
⚠️

Budget Warning

This purchase order exceeds the quarterly budget for Department "Steel Fabrication" by 12%.

); }