@orangecheck/app-design 1.5.0 → 1.6.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.
@@ -406,9 +406,15 @@ interface StatCardProps {
406
406
  hint?: ReactNode;
407
407
  raw?: number | null;
408
408
  size?: 'md' | 'sm';
409
+ delta?: {
410
+ value: number;
411
+ suffix?: string;
412
+ good?: 'up' | 'down';
413
+ label?: string;
414
+ };
409
415
  className?: string;
410
416
  }
411
- declare function StatCard({ label, value, hint, size, className }: StatCardProps): react.JSX.Element;
417
+ declare function StatCard({ label, value, hint, size, delta, className }: StatCardProps): react.JSX.Element;
412
418
  declare function EmptyLine({ children, className }: {
413
419
  children: ReactNode;
414
420
  className?: string;
@@ -423,7 +429,10 @@ interface KeyValueItem {
423
429
  label: ReactNode;
424
430
  value: ReactNode;
425
431
  mono?: boolean;
432
+ note?: ReactNode;
433
+ tone?: ValueTone;
426
434
  }
435
+ type ValueTone = 'good' | 'caution' | 'bad' | 'brand' | 'muted';
427
436
  declare function KeyValueList({ items, dense, className, }: {
428
437
  items: KeyValueItem[];
429
438
  dense?: boolean;
@@ -638,6 +647,55 @@ declare function LockedPreview({ title, description, action, children, className
638
647
  className?: string;
639
648
  }): react.JSX.Element;
640
649
 
650
+ type ChartTone = 1 | 2 | 3 | 4 | 'neutral' | 'up' | 'down';
651
+ declare function chartColor(series: number | ChartTone): string;
652
+ interface LegendItem {
653
+ label: ReactNode;
654
+ color: ChartTone | string;
655
+ dashed?: boolean;
656
+ }
657
+ declare function ChartFrame({ legend, caption, children, className, }: {
658
+ legend?: LegendItem[];
659
+ caption?: ReactNode;
660
+ children: ReactNode;
661
+ className?: string;
662
+ }): react.JSX.Element;
663
+ declare function Sparkline({ values, label, tone, area, width, height, className, }: {
664
+ values: readonly number[];
665
+ label: string;
666
+ tone?: 'ink' | 'muted' | 'trend' | ChartTone;
667
+ area?: boolean;
668
+ width?: number;
669
+ height?: number;
670
+ className?: string;
671
+ }): react.JSX.Element;
672
+ interface SourceNoteProps {
673
+ source: ReactNode;
674
+ href?: string;
675
+ detail?: ReactNode;
676
+ updated?: ReactNode;
677
+ variant?: 'popover' | 'line';
678
+ className?: string;
679
+ }
680
+ declare function SourceNote({ source, href, detail, updated, variant, className }: SourceNoteProps): react.JSX.Element;
681
+ declare function Panel({ title, description, actions, source, expandable, children, className, }: {
682
+ title: ReactNode;
683
+ description?: ReactNode;
684
+ actions?: ReactNode;
685
+ source?: ReactNode;
686
+ expandable?: boolean;
687
+ children: ReactNode | ((expanded: boolean) => ReactNode);
688
+ className?: string;
689
+ }): react.JSX.Element;
690
+ declare function HudCard({ eyebrow, live, title, children, footer, className, }: {
691
+ eyebrow?: ReactNode;
692
+ live?: boolean;
693
+ title?: ReactNode;
694
+ children?: ReactNode;
695
+ footer?: ReactNode;
696
+ className?: string;
697
+ }): react.JSX.Element;
698
+
641
699
  declare function SectionHeading({ eyebrow, title, lead, id, onInk, level, as, align, reveal, className, }: {
642
700
  eyebrow?: ReactNode;
643
701
  title: ReactNode;
@@ -824,4 +882,4 @@ interface SearchDialogProps {
824
882
  declare function SearchDialog({ onQuery, open: openProp, onOpenChange, onSelect, button, hotkey, label, placeholder, idle, defaultQuery, debounceMs, browse, className, }: SearchDialogProps): react.JSX.Element;
825
883
  declare function CommandDialog({ label, placeholder, ...props }: Omit<SearchDialogProps, 'browse' | 'button'>): react.JSX.Element;
826
884
 
827
- export { Accent, type ActivityItem, ActivityList, BrowserFrame, type CheckState, Closing, type Column, CommandDialog, Container, CopyButton, type CopyButtonProps, CountdownRing, DataTable, Display, type DisplayProps, EmptyLine, EmptyState, type Endpoint, EndpointList, ErrorBoundary, ErrorPage, Eyebrow, FactBlock, type FactRow, FactRows, Faq, FloatChip, Footnote, HashChip, type KeyValueItem, KeyValueList, Lead, type LegalBlock, LegalDocument, type LegalSource, LoadingBlock, LockedPreview, Monogram, Notice, PackageCard, type PackageItem, PageHeader, PhoneFrame, PlanCard, type ProgressStep, ProgressSteps, ProofStrip, Prose, Reveal, Sats, SatsFigure, type SatsProps, type SatsTextOptions, ScrollStory, SearchButton, SearchDialog, type SearchDialogProps, type SearchGroup, type SearchQuery, type SearchResult, Section, SectionHeading, SectionIntro, type SectionProps, SignMessage, SplitBar, type SplitSegment, StatCard, type StatCardProps, StatGrid, type StatGridProps, StepGrid, type StepGridProps, type StepItem, type StepState, TextLink, Ticker, type TruthRow, type TruthStatus, TruthTable, UsdApprox, type VerifyCheck, VerifyReport, monogramGround, monogramLetter, satsText, sectionVariants, useCopy, useInView };
885
+ export { Accent, type ActivityItem, ActivityList, BrowserFrame, ChartFrame, type ChartTone, type CheckState, Closing, type Column, CommandDialog, Container, CopyButton, type CopyButtonProps, CountdownRing, DataTable, Display, type DisplayProps, EmptyLine, EmptyState, type Endpoint, EndpointList, ErrorBoundary, ErrorPage, Eyebrow, FactBlock, type FactRow, FactRows, Faq, FloatChip, Footnote, HashChip, HudCard, type KeyValueItem, KeyValueList, Lead, type LegalBlock, LegalDocument, type LegalSource, type LegendItem, LoadingBlock, LockedPreview, Monogram, Notice, PackageCard, type PackageItem, PageHeader, Panel, PhoneFrame, PlanCard, type ProgressStep, ProgressSteps, ProofStrip, Prose, Reveal, Sats, SatsFigure, type SatsProps, type SatsTextOptions, ScrollStory, SearchButton, SearchDialog, type SearchDialogProps, type SearchGroup, type SearchQuery, type SearchResult, Section, SectionHeading, SectionIntro, type SectionProps, SignMessage, SourceNote, type SourceNoteProps, Sparkline, SplitBar, type SplitSegment, StatCard, type StatCardProps, StatGrid, type StatGridProps, StepGrid, type StepGridProps, type StepItem, type StepState, TextLink, Ticker, type TruthRow, type TruthStatus, TruthTable, UsdApprox, type ValueTone, type VerifyCheck, VerifyReport, chartColor, monogramGround, monogramLetter, satsText, sectionVariants, useCopy, useInView };
@@ -406,9 +406,15 @@ interface StatCardProps {
406
406
  hint?: ReactNode;
407
407
  raw?: number | null;
408
408
  size?: 'md' | 'sm';
409
+ delta?: {
410
+ value: number;
411
+ suffix?: string;
412
+ good?: 'up' | 'down';
413
+ label?: string;
414
+ };
409
415
  className?: string;
410
416
  }
411
- declare function StatCard({ label, value, hint, size, className }: StatCardProps): react.JSX.Element;
417
+ declare function StatCard({ label, value, hint, size, delta, className }: StatCardProps): react.JSX.Element;
412
418
  declare function EmptyLine({ children, className }: {
413
419
  children: ReactNode;
414
420
  className?: string;
@@ -423,7 +429,10 @@ interface KeyValueItem {
423
429
  label: ReactNode;
424
430
  value: ReactNode;
425
431
  mono?: boolean;
432
+ note?: ReactNode;
433
+ tone?: ValueTone;
426
434
  }
435
+ type ValueTone = 'good' | 'caution' | 'bad' | 'brand' | 'muted';
427
436
  declare function KeyValueList({ items, dense, className, }: {
428
437
  items: KeyValueItem[];
429
438
  dense?: boolean;
@@ -638,6 +647,55 @@ declare function LockedPreview({ title, description, action, children, className
638
647
  className?: string;
639
648
  }): react.JSX.Element;
640
649
 
650
+ type ChartTone = 1 | 2 | 3 | 4 | 'neutral' | 'up' | 'down';
651
+ declare function chartColor(series: number | ChartTone): string;
652
+ interface LegendItem {
653
+ label: ReactNode;
654
+ color: ChartTone | string;
655
+ dashed?: boolean;
656
+ }
657
+ declare function ChartFrame({ legend, caption, children, className, }: {
658
+ legend?: LegendItem[];
659
+ caption?: ReactNode;
660
+ children: ReactNode;
661
+ className?: string;
662
+ }): react.JSX.Element;
663
+ declare function Sparkline({ values, label, tone, area, width, height, className, }: {
664
+ values: readonly number[];
665
+ label: string;
666
+ tone?: 'ink' | 'muted' | 'trend' | ChartTone;
667
+ area?: boolean;
668
+ width?: number;
669
+ height?: number;
670
+ className?: string;
671
+ }): react.JSX.Element;
672
+ interface SourceNoteProps {
673
+ source: ReactNode;
674
+ href?: string;
675
+ detail?: ReactNode;
676
+ updated?: ReactNode;
677
+ variant?: 'popover' | 'line';
678
+ className?: string;
679
+ }
680
+ declare function SourceNote({ source, href, detail, updated, variant, className }: SourceNoteProps): react.JSX.Element;
681
+ declare function Panel({ title, description, actions, source, expandable, children, className, }: {
682
+ title: ReactNode;
683
+ description?: ReactNode;
684
+ actions?: ReactNode;
685
+ source?: ReactNode;
686
+ expandable?: boolean;
687
+ children: ReactNode | ((expanded: boolean) => ReactNode);
688
+ className?: string;
689
+ }): react.JSX.Element;
690
+ declare function HudCard({ eyebrow, live, title, children, footer, className, }: {
691
+ eyebrow?: ReactNode;
692
+ live?: boolean;
693
+ title?: ReactNode;
694
+ children?: ReactNode;
695
+ footer?: ReactNode;
696
+ className?: string;
697
+ }): react.JSX.Element;
698
+
641
699
  declare function SectionHeading({ eyebrow, title, lead, id, onInk, level, as, align, reveal, className, }: {
642
700
  eyebrow?: ReactNode;
643
701
  title: ReactNode;
@@ -824,4 +882,4 @@ interface SearchDialogProps {
824
882
  declare function SearchDialog({ onQuery, open: openProp, onOpenChange, onSelect, button, hotkey, label, placeholder, idle, defaultQuery, debounceMs, browse, className, }: SearchDialogProps): react.JSX.Element;
825
883
  declare function CommandDialog({ label, placeholder, ...props }: Omit<SearchDialogProps, 'browse' | 'button'>): react.JSX.Element;
826
884
 
827
- export { Accent, type ActivityItem, ActivityList, BrowserFrame, type CheckState, Closing, type Column, CommandDialog, Container, CopyButton, type CopyButtonProps, CountdownRing, DataTable, Display, type DisplayProps, EmptyLine, EmptyState, type Endpoint, EndpointList, ErrorBoundary, ErrorPage, Eyebrow, FactBlock, type FactRow, FactRows, Faq, FloatChip, Footnote, HashChip, type KeyValueItem, KeyValueList, Lead, type LegalBlock, LegalDocument, type LegalSource, LoadingBlock, LockedPreview, Monogram, Notice, PackageCard, type PackageItem, PageHeader, PhoneFrame, PlanCard, type ProgressStep, ProgressSteps, ProofStrip, Prose, Reveal, Sats, SatsFigure, type SatsProps, type SatsTextOptions, ScrollStory, SearchButton, SearchDialog, type SearchDialogProps, type SearchGroup, type SearchQuery, type SearchResult, Section, SectionHeading, SectionIntro, type SectionProps, SignMessage, SplitBar, type SplitSegment, StatCard, type StatCardProps, StatGrid, type StatGridProps, StepGrid, type StepGridProps, type StepItem, type StepState, TextLink, Ticker, type TruthRow, type TruthStatus, TruthTable, UsdApprox, type VerifyCheck, VerifyReport, monogramGround, monogramLetter, satsText, sectionVariants, useCopy, useInView };
885
+ export { Accent, type ActivityItem, ActivityList, BrowserFrame, ChartFrame, type ChartTone, type CheckState, Closing, type Column, CommandDialog, Container, CopyButton, type CopyButtonProps, CountdownRing, DataTable, Display, type DisplayProps, EmptyLine, EmptyState, type Endpoint, EndpointList, ErrorBoundary, ErrorPage, Eyebrow, FactBlock, type FactRow, FactRows, Faq, FloatChip, Footnote, HashChip, HudCard, type KeyValueItem, KeyValueList, Lead, type LegalBlock, LegalDocument, type LegalSource, type LegendItem, LoadingBlock, LockedPreview, Monogram, Notice, PackageCard, type PackageItem, PageHeader, Panel, PhoneFrame, PlanCard, type ProgressStep, ProgressSteps, ProofStrip, Prose, Reveal, Sats, SatsFigure, type SatsProps, type SatsTextOptions, ScrollStory, SearchButton, SearchDialog, type SearchDialogProps, type SearchGroup, type SearchQuery, type SearchResult, Section, SectionHeading, SectionIntro, type SectionProps, SignMessage, SourceNote, type SourceNoteProps, Sparkline, SplitBar, type SplitSegment, StatCard, type StatCardProps, StatGrid, type StatGridProps, StepGrid, type StepGridProps, type StepItem, type StepState, TextLink, Ticker, type TruthRow, type TruthStatus, TruthTable, UsdApprox, type ValueTone, type VerifyCheck, VerifyReport, chartColor, monogramGround, monogramLetter, satsText, sectionVariants, useCopy, useInView };