@orangecheck/app-design 1.4.1 → 1.6.0

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.
Files changed (45) hide show
  1. package/dist/chrome.d.mts +2 -2
  2. package/dist/chrome.d.ts +2 -2
  3. package/dist/chrome.js +162 -35
  4. package/dist/chrome.js.map +1 -1
  5. package/dist/chrome.mjs +163 -36
  6. package/dist/chrome.mjs.map +1 -1
  7. package/dist/components.d.mts +99 -6
  8. package/dist/components.d.ts +99 -6
  9. package/dist/components.js +546 -26
  10. package/dist/components.js.map +1 -1
  11. package/dist/components.mjs +535 -28
  12. package/dist/components.mjs.map +1 -1
  13. package/dist/index.d.mts +4 -4
  14. package/dist/index.d.ts +4 -4
  15. package/dist/index.js +737 -82
  16. package/dist/index.js.map +1 -1
  17. package/dist/index.mjs +727 -84
  18. package/dist/index.mjs.map +1 -1
  19. package/dist/mdx.js.map +1 -1
  20. package/dist/mdx.mjs.map +1 -1
  21. package/dist/primitives.d.mts +1 -0
  22. package/dist/primitives.d.ts +1 -0
  23. package/dist/primitives.js +27 -0
  24. package/dist/primitives.js.map +1 -1
  25. package/dist/primitives.mjs +27 -0
  26. package/dist/primitives.mjs.map +1 -1
  27. package/dist/session.d.mts +3 -3
  28. package/dist/session.d.ts +3 -3
  29. package/dist/session.js.map +1 -1
  30. package/dist/session.mjs.map +1 -1
  31. package/dist/styles/chart.css +76 -0
  32. package/dist/styles/theme.css +7 -0
  33. package/dist/styles/tokens.css +18 -0
  34. package/dist/styles.css +1 -0
  35. package/dist/tokens.d.mts +314 -21
  36. package/dist/tokens.d.ts +314 -21
  37. package/dist/tokens.js +166 -26
  38. package/dist/tokens.js.map +1 -1
  39. package/dist/tokens.mjs +165 -27
  40. package/dist/tokens.mjs.map +1 -1
  41. package/dist/{tool-shell-D8Q8XX11.d.mts → tool-shell-CQZNRUgH.d.mts} +8 -4
  42. package/dist/{tool-shell-gmlj47Ie.d.ts → tool-shell-CRmceGrV.d.ts} +8 -4
  43. package/dist/{tools-DFIxIj5p.d.mts → tools-Bg1gi2HO.d.mts} +1 -1
  44. package/dist/{tools-BggNN5DV.d.ts → tools-Bw7RhO92.d.ts} +1 -1
  45. package/package.json +2 -2
@@ -7,7 +7,7 @@ export { A as ApiRow, a as ApiTable, b as AppCard, c as AppCardProps, d as AppGr
7
7
  import { ExplorerKind, Network } from './format.mjs';
8
8
  import { j as ProtocolSlug } from './index-DmfyPYe5.mjs';
9
9
  import { S as Statement } from './status-badge-BJ9Sdsx8.mjs';
10
- export { A as AnchorState, a as AnchorStatus, b as ArtifactView, B as BlockCountdown, c as BlockHeight, C as ChosenFile, D as DropZone, F as FilterChips, d as FilterOption, e as FormSection, M as Meter, S as SectionStatus, f as StateBadge, g as StateDef, h as StateTone, T as ToolGrid, i as ToolItem, j as createStateBadge } from './tools-DFIxIj5p.mjs';
10
+ export { A as AnchorState, a as AnchorStatus, b as ArtifactView, B as BlockCountdown, c as BlockHeight, C as ChosenFile, D as DropZone, F as FilterChips, d as FilterOption, e as FormSection, M as Meter, S as SectionStatus, f as StateBadge, g as StateDef, h as StateTone, T as ToolGrid, i as ToolItem, j as createStateBadge } from './tools-Bg1gi2HO.mjs';
11
11
 
12
12
  declare function Eyebrow({ className, onInk, ...props }: HTMLAttributes<HTMLParagraphElement> & {
13
13
  onInk?: boolean;
@@ -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;
@@ -609,6 +618,84 @@ declare function ErrorPage({ code, title, detail, actions, home, protocol, art,
609
618
  className?: string;
610
619
  }): react.JSX.Element;
611
620
 
621
+ declare function CountdownRing({ period, remaining, warnAt, size, showSeconds, className, }: {
622
+ period: number;
623
+ remaining?: number;
624
+ warnAt?: number;
625
+ size?: number;
626
+ showSeconds?: boolean;
627
+ className?: string;
628
+ }): react.JSX.Element;
629
+ declare function PlanCard({ name, subtitle, price, period, footnote, features, action, badge, badgeTone, highlight, className, }: {
630
+ name: ReactNode;
631
+ subtitle?: ReactNode;
632
+ price: ReactNode;
633
+ period?: ReactNode;
634
+ footnote?: ReactNode;
635
+ features?: ReactNode[];
636
+ action?: ReactNode;
637
+ badge?: ReactNode;
638
+ badgeTone?: 'neutral' | 'brand' | 'success' | 'muted';
639
+ highlight?: boolean;
640
+ className?: string;
641
+ }): react.JSX.Element;
642
+ declare function LockedPreview({ title, description, action, children, className, }: {
643
+ title: ReactNode;
644
+ description?: ReactNode;
645
+ action: ReactNode;
646
+ children?: ReactNode;
647
+ className?: string;
648
+ }): react.JSX.Element;
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
+
612
699
  declare function SectionHeading({ eyebrow, title, lead, id, onInk, level, as, align, reveal, className, }: {
613
700
  eyebrow?: ReactNode;
614
701
  title: ReactNode;
@@ -758,7 +845,10 @@ declare function TextLink({ href: written, children, external, className, }: {
758
845
 
759
846
  interface SearchResult {
760
847
  id: string;
761
- href: string;
848
+ href?: string;
849
+ run?: () => void;
850
+ icon?: ReactNode;
851
+ meta?: ReactNode;
762
852
  title: ReactNode;
763
853
  section?: ReactNode;
764
854
  excerpt?: ReactNode;
@@ -774,7 +864,7 @@ declare const SearchButton: react.ForwardRefExoticComponent<{
774
864
  onClick?: () => void;
775
865
  className?: string;
776
866
  } & react.RefAttributes<HTMLButtonElement>>;
777
- declare function SearchDialog({ onQuery, open: openProp, onOpenChange, onSelect, button, hotkey, label, placeholder, idle, defaultQuery, debounceMs, className, }: {
867
+ interface SearchDialogProps {
778
868
  onQuery: SearchQuery;
779
869
  open?: boolean;
780
870
  onOpenChange?: (open: boolean) => void;
@@ -787,6 +877,9 @@ declare function SearchDialog({ onQuery, open: openProp, onOpenChange, onSelect,
787
877
  defaultQuery?: string;
788
878
  debounceMs?: number;
789
879
  className?: string;
790
- }): react.JSX.Element;
880
+ browse?: boolean;
881
+ }
882
+ declare function SearchDialog({ onQuery, open: openProp, onOpenChange, onSelect, button, hotkey, label, placeholder, idle, defaultQuery, debounceMs, browse, className, }: SearchDialogProps): react.JSX.Element;
883
+ declare function CommandDialog({ label, placeholder, ...props }: Omit<SearchDialogProps, 'browse' | 'button'>): react.JSX.Element;
791
884
 
792
- export { Accent, type ActivityItem, ActivityList, BrowserFrame, type CheckState, Closing, type Column, Container, CopyButton, type CopyButtonProps, 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, Monogram, Notice, PackageCard, type PackageItem, PageHeader, PhoneFrame, type ProgressStep, ProgressSteps, ProofStrip, Prose, Reveal, Sats, SatsFigure, type SatsProps, type SatsTextOptions, ScrollStory, SearchButton, SearchDialog, 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 };
@@ -7,7 +7,7 @@ export { A as ApiRow, a as ApiTable, b as AppCard, c as AppCardProps, d as AppGr
7
7
  import { ExplorerKind, Network } from './format.js';
8
8
  import { j as ProtocolSlug } from './index-DmfyPYe5.js';
9
9
  import { S as Statement } from './status-badge-Bt8x3RhO.js';
10
- export { A as AnchorState, a as AnchorStatus, b as ArtifactView, B as BlockCountdown, c as BlockHeight, C as ChosenFile, D as DropZone, F as FilterChips, d as FilterOption, e as FormSection, M as Meter, S as SectionStatus, f as StateBadge, g as StateDef, h as StateTone, T as ToolGrid, i as ToolItem, j as createStateBadge } from './tools-BggNN5DV.js';
10
+ export { A as AnchorState, a as AnchorStatus, b as ArtifactView, B as BlockCountdown, c as BlockHeight, C as ChosenFile, D as DropZone, F as FilterChips, d as FilterOption, e as FormSection, M as Meter, S as SectionStatus, f as StateBadge, g as StateDef, h as StateTone, T as ToolGrid, i as ToolItem, j as createStateBadge } from './tools-Bw7RhO92.js';
11
11
 
12
12
  declare function Eyebrow({ className, onInk, ...props }: HTMLAttributes<HTMLParagraphElement> & {
13
13
  onInk?: boolean;
@@ -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;
@@ -609,6 +618,84 @@ declare function ErrorPage({ code, title, detail, actions, home, protocol, art,
609
618
  className?: string;
610
619
  }): react.JSX.Element;
611
620
 
621
+ declare function CountdownRing({ period, remaining, warnAt, size, showSeconds, className, }: {
622
+ period: number;
623
+ remaining?: number;
624
+ warnAt?: number;
625
+ size?: number;
626
+ showSeconds?: boolean;
627
+ className?: string;
628
+ }): react.JSX.Element;
629
+ declare function PlanCard({ name, subtitle, price, period, footnote, features, action, badge, badgeTone, highlight, className, }: {
630
+ name: ReactNode;
631
+ subtitle?: ReactNode;
632
+ price: ReactNode;
633
+ period?: ReactNode;
634
+ footnote?: ReactNode;
635
+ features?: ReactNode[];
636
+ action?: ReactNode;
637
+ badge?: ReactNode;
638
+ badgeTone?: 'neutral' | 'brand' | 'success' | 'muted';
639
+ highlight?: boolean;
640
+ className?: string;
641
+ }): react.JSX.Element;
642
+ declare function LockedPreview({ title, description, action, children, className, }: {
643
+ title: ReactNode;
644
+ description?: ReactNode;
645
+ action: ReactNode;
646
+ children?: ReactNode;
647
+ className?: string;
648
+ }): react.JSX.Element;
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
+
612
699
  declare function SectionHeading({ eyebrow, title, lead, id, onInk, level, as, align, reveal, className, }: {
613
700
  eyebrow?: ReactNode;
614
701
  title: ReactNode;
@@ -758,7 +845,10 @@ declare function TextLink({ href: written, children, external, className, }: {
758
845
 
759
846
  interface SearchResult {
760
847
  id: string;
761
- href: string;
848
+ href?: string;
849
+ run?: () => void;
850
+ icon?: ReactNode;
851
+ meta?: ReactNode;
762
852
  title: ReactNode;
763
853
  section?: ReactNode;
764
854
  excerpt?: ReactNode;
@@ -774,7 +864,7 @@ declare const SearchButton: react.ForwardRefExoticComponent<{
774
864
  onClick?: () => void;
775
865
  className?: string;
776
866
  } & react.RefAttributes<HTMLButtonElement>>;
777
- declare function SearchDialog({ onQuery, open: openProp, onOpenChange, onSelect, button, hotkey, label, placeholder, idle, defaultQuery, debounceMs, className, }: {
867
+ interface SearchDialogProps {
778
868
  onQuery: SearchQuery;
779
869
  open?: boolean;
780
870
  onOpenChange?: (open: boolean) => void;
@@ -787,6 +877,9 @@ declare function SearchDialog({ onQuery, open: openProp, onOpenChange, onSelect,
787
877
  defaultQuery?: string;
788
878
  debounceMs?: number;
789
879
  className?: string;
790
- }): react.JSX.Element;
880
+ browse?: boolean;
881
+ }
882
+ declare function SearchDialog({ onQuery, open: openProp, onOpenChange, onSelect, button, hotkey, label, placeholder, idle, defaultQuery, debounceMs, browse, className, }: SearchDialogProps): react.JSX.Element;
883
+ declare function CommandDialog({ label, placeholder, ...props }: Omit<SearchDialogProps, 'browse' | 'button'>): react.JSX.Element;
791
884
 
792
- export { Accent, type ActivityItem, ActivityList, BrowserFrame, type CheckState, Closing, type Column, Container, CopyButton, type CopyButtonProps, 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, Monogram, Notice, PackageCard, type PackageItem, PageHeader, PhoneFrame, type ProgressStep, ProgressSteps, ProofStrip, Prose, Reveal, Sats, SatsFigure, type SatsProps, type SatsTextOptions, ScrollStory, SearchButton, SearchDialog, 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 };