@orangecheck/app-design 0.2.1 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -314,6 +314,31 @@ declare function SectionIntro({ className, align, ...props }: HTMLAttributes<HTM
314
314
  align?: 'start' | 'center';
315
315
  }): react.JSX.Element;
316
316
 
317
+ interface PageHeroProps {
318
+ eyebrow?: ReactNode;
319
+ title: ReactNode;
320
+ lead?: ReactNode;
321
+ actions?: ReactNode;
322
+ art?: ReactNode;
323
+ meta?: ReactNode;
324
+ children?: ReactNode;
325
+ variant?: 'page' | 'document';
326
+ size?: 'lg' | 'xl';
327
+ className?: string;
328
+ }
329
+ declare function PageHero({ eyebrow, title, lead, actions, art, meta, children, variant, size, className, }: PageHeroProps): react.JSX.Element;
330
+ declare function DocHeader({ eyebrow, title, lead, meta, actions, children, className, }: Pick<PageHeroProps, 'eyebrow' | 'title' | 'lead' | 'meta' | 'actions' | 'children' | 'className'>): react.JSX.Element;
331
+ interface TocItem {
332
+ id: string;
333
+ label: ReactNode;
334
+ }
335
+ declare function DocLayout({ toc, header, children, className, }: {
336
+ toc?: TocItem[];
337
+ header?: ReactNode;
338
+ children: ReactNode;
339
+ className?: string;
340
+ }): react.JSX.Element;
341
+
317
342
  interface StepItem {
318
343
  title: ReactNode;
319
344
  body: ReactNode;
@@ -338,9 +363,11 @@ declare function PackageCard({ items, className }: {
338
363
  items: PackageItem[];
339
364
  className?: string;
340
365
  }): react.JSX.Element;
341
- declare function CodeBlock({ code, caption, className, }: {
366
+ declare function CodeBlock({ code, caption, copy, maxLines, className, }: {
342
367
  code: string;
343
368
  caption?: ReactNode;
369
+ copy?: boolean;
370
+ maxLines?: number;
344
371
  className?: string;
345
372
  }): react.JSX.Element;
346
373
 
@@ -397,13 +424,24 @@ declare function PageHeader({ eyebrow, title, description, actions, className, }
397
424
  actions?: ReactNode;
398
425
  className?: string;
399
426
  }): react.JSX.Element;
400
- declare function StatCard({ label, value, hint, className, }: {
427
+ interface StatCardProps {
401
428
  label: ReactNode;
402
429
  value: ReactNode;
403
430
  hint?: ReactNode;
431
+ raw?: number | null;
432
+ className?: string;
433
+ }
434
+ declare function StatCard({ label, value, hint, className }: StatCardProps): react.JSX.Element;
435
+ declare function EmptyLine({ children, className }: {
436
+ children: ReactNode;
404
437
  className?: string;
405
438
  }): react.JSX.Element;
406
- declare function StatGrid({ className, ...props }: HTMLAttributes<HTMLDivElement>): react.JSX.Element;
439
+ interface StatGridProps extends HTMLAttributes<HTMLDivElement> {
440
+ columns?: 1 | 2 | 3 | 4 | 5;
441
+ empty?: ReactNode;
442
+ isEmpty?: boolean;
443
+ }
444
+ declare function StatGrid({ columns, empty, isEmpty, className, children, ...props }: StatGridProps): react.JSX.Element;
407
445
  interface KeyValueItem {
408
446
  label: ReactNode;
409
447
  value: ReactNode;
@@ -418,23 +456,31 @@ interface Column<T> {
418
456
  header: ReactNode;
419
457
  cell: (row: T) => ReactNode;
420
458
  align?: 'start' | 'end';
459
+ numeric?: boolean;
421
460
  wide?: boolean;
461
+ width?: string;
462
+ minWidth?: string;
463
+ truncate?: boolean;
464
+ primary?: boolean;
465
+ hideOnPhone?: boolean;
422
466
  }
423
- declare function DataTable<T>({ columns, rows, rowKey, empty, caption, className, }: {
467
+ declare function DataTable<T>({ columns, rows, rowKey, empty, caption, phone, className, }: {
424
468
  columns: Column<T>[];
425
469
  rows: T[];
426
470
  rowKey: (row: T, i: number) => string;
427
471
  empty?: ReactNode;
428
472
  caption?: string;
473
+ phone?: 'cards' | 'scroll';
429
474
  className?: string;
430
475
  }): react.JSX.Element;
431
- declare function EmptyState({ title, children, action, className, }: {
476
+ declare function EmptyState({ title, children, action, icon, className, }: {
432
477
  title: ReactNode;
433
478
  children?: ReactNode;
434
479
  action?: ReactNode;
480
+ icon?: ReactNode;
435
481
  className?: string;
436
482
  }): react.JSX.Element;
437
- type NoticeTone = 'neutral' | 'info' | 'success' | 'warning' | 'danger' | 'brand';
483
+ type NoticeTone = 'neutral' | 'brand' | 'danger' | 'info' | 'success' | 'warning';
438
484
  declare function Notice({ tone, title, children, action, className, }: {
439
485
  tone?: NoticeTone;
440
486
  title?: ReactNode;
@@ -442,6 +488,13 @@ declare function Notice({ tone, title, children, action, className, }: {
442
488
  action?: ReactNode;
443
489
  className?: string;
444
490
  }): react.JSX.Element;
491
+ declare function LoadingBlock({ rows, timeoutMs, onRetry, label, className, }: {
492
+ rows?: number;
493
+ timeoutMs?: number;
494
+ onRetry?: () => void;
495
+ label?: string;
496
+ className?: string;
497
+ }): react.JSX.Element;
445
498
  declare function useCopy(timeoutMs?: number): {
446
499
  copied: boolean;
447
500
  copy: (text: string) => Promise<void>;
@@ -482,4 +535,4 @@ declare function ActivityList({ items, empty, className }: {
482
535
  className?: string;
483
536
  }): react.JSX.Element;
484
537
 
485
- export { Accent, type ActivityItem, ActivityList, CodeBlock, type Column, Container, CopyButton, DataTable, Display, type DisplayProps, EmptyState, Eyebrow, Footnote, HashChip, type KeyValueItem, KeyValueList, Lead, Notice, PackageCard, type PackageItem, PageHeader, type ProgressStep, ProgressSteps, Prose, Sats, SatsFigure, type SatsProps, type SatsTextOptions, Section, SectionIntro, type SectionProps, SplitBar, type SplitSegment, StatCard, StatGrid, StepGrid, type StepGridProps, type StepItem, type StepState, type TruthRow, type TruthStatus, TruthTable, UsdApprox, satsText, sectionVariants, useCopy };
538
+ export { Accent, type ActivityItem, ActivityList, CodeBlock, type Column, Container, CopyButton, DataTable, Display, type DisplayProps, DocHeader, DocLayout, EmptyLine, EmptyState, Eyebrow, Footnote, HashChip, type KeyValueItem, KeyValueList, Lead, LoadingBlock, Notice, PackageCard, type PackageItem, PageHeader, PageHero, type PageHeroProps, type ProgressStep, ProgressSteps, Prose, Sats, SatsFigure, type SatsProps, type SatsTextOptions, Section, SectionIntro, type SectionProps, SplitBar, type SplitSegment, StatCard, type StatCardProps, StatGrid, type StatGridProps, StepGrid, type StepGridProps, type StepItem, type StepState, type TocItem, type TruthRow, type TruthStatus, TruthTable, UsdApprox, satsText, sectionVariants, useCopy };