@orangecheck/app-design 0.6.1 → 1.1.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 (81) hide show
  1. package/README.md +23 -6
  2. package/dist/brand.js.map +1 -1
  3. package/dist/brand.mjs.map +1 -1
  4. package/dist/chrome.d.mts +78 -55
  5. package/dist/chrome.d.ts +78 -55
  6. package/dist/chrome.js +1100 -59
  7. package/dist/chrome.js.map +1 -1
  8. package/dist/chrome.mjs +1091 -61
  9. package/dist/chrome.mjs.map +1 -1
  10. package/dist/code.d.mts +52 -0
  11. package/dist/code.d.ts +52 -0
  12. package/dist/code.js +534 -0
  13. package/dist/code.js.map +1 -0
  14. package/dist/code.mjs +522 -0
  15. package/dist/code.mjs.map +1 -0
  16. package/dist/components.d.mts +216 -42
  17. package/dist/components.d.ts +216 -42
  18. package/dist/components.js +3350 -100
  19. package/dist/components.js.map +1 -1
  20. package/dist/components.mjs +3293 -103
  21. package/dist/components.mjs.map +1 -1
  22. package/dist/docs-DhnstueM.d.ts +219 -0
  23. package/dist/docs-DiR6s43s.d.mts +219 -0
  24. package/dist/family.d.mts +2 -0
  25. package/dist/family.d.ts +2 -0
  26. package/dist/family.js +167 -0
  27. package/dist/family.js.map +1 -0
  28. package/dist/family.mjs +154 -0
  29. package/dist/family.mjs.map +1 -0
  30. package/dist/format.d.mts +12 -0
  31. package/dist/format.d.ts +12 -0
  32. package/dist/format.js +65 -0
  33. package/dist/format.js.map +1 -0
  34. package/dist/format.mjs +58 -0
  35. package/dist/format.mjs.map +1 -0
  36. package/dist/hero-Dn37il-9.d.mts +31 -0
  37. package/dist/hero-Dn37il-9.d.ts +31 -0
  38. package/dist/index-C6hDqOOS.d.mts +58 -0
  39. package/dist/index-C6hDqOOS.d.ts +58 -0
  40. package/dist/index.d.mts +12 -3
  41. package/dist/index.d.ts +12 -3
  42. package/dist/index.js +4319 -295
  43. package/dist/index.js.map +1 -1
  44. package/dist/index.mjs +4219 -298
  45. package/dist/index.mjs.map +1 -1
  46. package/dist/mdx.d.mts +58 -0
  47. package/dist/mdx.d.ts +58 -0
  48. package/dist/mdx.js +1712 -0
  49. package/dist/mdx.js.map +1 -0
  50. package/dist/mdx.mjs +1685 -0
  51. package/dist/mdx.mjs.map +1 -0
  52. package/dist/primitives.d.mts +73 -5
  53. package/dist/primitives.d.ts +73 -5
  54. package/dist/primitives.js +331 -8
  55. package/dist/primitives.js.map +1 -1
  56. package/dist/primitives.mjs +320 -11
  57. package/dist/primitives.mjs.map +1 -1
  58. package/dist/session.d.mts +18 -0
  59. package/dist/session.d.ts +18 -0
  60. package/dist/session.js +432 -0
  61. package/dist/session.js.map +1 -0
  62. package/dist/session.mjs +401 -0
  63. package/dist/session.mjs.map +1 -0
  64. package/dist/status-badge-BEOxeY9j.d.ts +13 -0
  65. package/dist/status-badge-DRwGhB0h.d.mts +13 -0
  66. package/dist/styles/code.css +97 -0
  67. package/dist/styles/fonts.css +1 -1
  68. package/dist/styles/theme.css +2 -0
  69. package/dist/styles/tokens.css +44 -2
  70. package/dist/styles.css +1 -0
  71. package/dist/tokens.d.mts +3 -1
  72. package/dist/tokens.d.ts +3 -1
  73. package/dist/tokens.js +5 -3
  74. package/dist/tokens.js.map +1 -1
  75. package/dist/tokens.mjs +5 -3
  76. package/dist/tokens.mjs.map +1 -1
  77. package/dist/tool-shell-B1C7ahKE.d.ts +81 -0
  78. package/dist/tool-shell-BDx_N5ai.d.mts +81 -0
  79. package/dist/tools-BggNN5DV.d.ts +131 -0
  80. package/dist/tools-DFIxIj5p.d.mts +131 -0
  81. package/package.json +38 -2
@@ -2,6 +2,12 @@ import * as react from 'react';
2
2
  import { ReactNode, HTMLAttributes, ElementType, CSSProperties, Component, ErrorInfo } from 'react';
3
3
  import * as class_variance_authority_types from 'class-variance-authority/types';
4
4
  import { VariantProps } from 'class-variance-authority';
5
+ export { D as DocHeader, a as DocLayout, P as PageHero, b as PageHeroProps, T as TocItem, u as useActiveHeading } from './hero-Dn37il-9.js';
6
+ export { A as ApiRow, a as ApiTable, b as AppCard, c as AppCardProps, d as AppGrid, B as Breadcrumbs, C as Callout, e as CardGrid, f as CodeBlock, g as CodeBlockProps, h as CodeTab, i as CodeTabs, j as ComparisonColumn, k as ComparisonRow, l as ComparisonTable, m as Crumb, D as Diagram, n as DocsHeading, o as DocsPager, I as InstallTabs, L as LinkCard, M as MdxTable, p as MermaidLike, q as MermaidLoader, O as OnThisPage, P as PagerLink, r as ProtocolGrid, s as ProtocolHero, t as ProtocolNav, S as SpecCard, u as Step, v as Steps, V as VerifyBox, w as languageName, x as useHeadings } from './docs-DhnstueM.js';
7
+ import { ExplorerKind, Network } from './format.js';
8
+ import { S as Statement } from './status-badge-BEOxeY9j.js';
9
+ 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
+ import './index-C6hDqOOS.js';
5
11
 
6
12
  declare function Eyebrow({ className, onInk, ...props }: HTMLAttributes<HTMLParagraphElement> & {
7
13
  onInk?: boolean;
@@ -315,31 +321,6 @@ declare function SectionIntro({ className, align, reveal, children, style, }: Pi
315
321
  reveal?: boolean;
316
322
  }): react.JSX.Element;
317
323
 
318
- interface PageHeroProps {
319
- eyebrow?: ReactNode;
320
- title: ReactNode;
321
- lead?: ReactNode;
322
- actions?: ReactNode;
323
- art?: ReactNode;
324
- meta?: ReactNode;
325
- children?: ReactNode;
326
- variant?: 'page' | 'document';
327
- size?: 'lg' | 'xl';
328
- className?: string;
329
- }
330
- declare function PageHero({ eyebrow, title, lead, actions, art, meta, children, variant, size, className, }: PageHeroProps): react.JSX.Element;
331
- declare function DocHeader({ eyebrow, title, lead, meta, actions, children, className, }: Pick<PageHeroProps, 'eyebrow' | 'title' | 'lead' | 'meta' | 'actions' | 'children' | 'className'>): react.JSX.Element;
332
- interface TocItem {
333
- id: string;
334
- label: ReactNode;
335
- }
336
- declare function DocLayout({ toc, header, children, className, }: {
337
- toc?: TocItem[];
338
- header?: ReactNode;
339
- children: ReactNode;
340
- className?: string;
341
- }): react.JSX.Element;
342
-
343
324
  interface StepItem {
344
325
  title: ReactNode;
345
326
  body: ReactNode;
@@ -364,13 +345,6 @@ declare function PackageCard({ items, className }: {
364
345
  items: PackageItem[];
365
346
  className?: string;
366
347
  }): react.JSX.Element;
367
- declare function CodeBlock({ code, caption, copy, maxLines, className, }: {
368
- code: string;
369
- caption?: ReactNode;
370
- copy?: boolean;
371
- maxLines?: number;
372
- className?: string;
373
- }): react.JSX.Element;
374
348
 
375
349
  interface SplitSegment {
376
350
  pct: number;
@@ -431,9 +405,10 @@ interface StatCardProps {
431
405
  value: ReactNode;
432
406
  hint?: ReactNode;
433
407
  raw?: number | null;
408
+ size?: 'md' | 'sm';
434
409
  className?: string;
435
410
  }
436
- declare function StatCard({ label, value, hint, className }: StatCardProps): react.JSX.Element;
411
+ declare function StatCard({ label, value, hint, size, className }: StatCardProps): react.JSX.Element;
437
412
  declare function EmptyLine({ children, className }: {
438
413
  children: ReactNode;
439
414
  className?: string;
@@ -449,8 +424,9 @@ interface KeyValueItem {
449
424
  value: ReactNode;
450
425
  mono?: boolean;
451
426
  }
452
- declare function KeyValueList({ items, className }: {
427
+ declare function KeyValueList({ items, dense, className, }: {
453
428
  items: KeyValueItem[];
429
+ dense?: boolean;
454
430
  className?: string;
455
431
  }): react.JSX.Element;
456
432
  interface Column<T> {
@@ -466,13 +442,14 @@ interface Column<T> {
466
442
  primary?: boolean;
467
443
  hideOnPhone?: boolean;
468
444
  }
469
- declare function DataTable<T>({ columns, rows, rowKey, empty, caption, phone, className, }: {
445
+ declare function DataTable<T>({ columns, rows, rowKey, empty, caption, phone, dense, className, }: {
470
446
  columns: Column<T>[];
471
447
  rows: T[];
472
448
  rowKey: (row: T, i: number) => string;
473
449
  empty?: ReactNode;
474
450
  caption?: string;
475
451
  phone?: 'cards' | 'scroll';
452
+ dense?: boolean;
476
453
  className?: string;
477
454
  }): react.JSX.Element;
478
455
  declare function EmptyState({ title, children, action, icon, className, }: {
@@ -483,11 +460,12 @@ declare function EmptyState({ title, children, action, icon, className, }: {
483
460
  className?: string;
484
461
  }): react.JSX.Element;
485
462
  type NoticeTone = 'neutral' | 'brand' | 'danger' | 'info' | 'success' | 'warning';
486
- declare function Notice({ tone, title, children, action, className, }: {
463
+ declare function Notice({ tone, title, children, action, role, className, }: {
487
464
  tone?: NoticeTone;
488
465
  title?: ReactNode;
489
466
  children?: ReactNode;
490
467
  action?: ReactNode;
468
+ role?: 'alert' | 'status' | 'note';
491
469
  className?: string;
492
470
  }): react.JSX.Element;
493
471
  declare function LoadingBlock({ rows, timeoutMs, onRetry, label, className, }: {
@@ -499,19 +477,26 @@ declare function LoadingBlock({ rows, timeoutMs, onRetry, label, className, }: {
499
477
  }): react.JSX.Element;
500
478
  declare function useCopy(timeoutMs?: number): {
501
479
  copied: boolean;
502
- copy: (text: string) => Promise<void>;
480
+ copy: (text: string, opts?: {
481
+ clearAfter?: number;
482
+ }) => Promise<boolean>;
503
483
  };
504
- declare function CopyButton({ value, label, className }: {
505
- value: string;
484
+ interface CopyButtonProps {
485
+ value: string | (() => string);
506
486
  label?: string;
487
+ clearAfter?: number;
488
+ onCopied?: () => void;
507
489
  className?: string;
508
- }): react.JSX.Element;
509
- declare function HashChip({ value, head, tail, copy, href, className, }: {
490
+ }
491
+ declare function CopyButton({ value, label, clearAfter, onCopied, className }: CopyButtonProps): react.JSX.Element;
492
+ declare function HashChip({ value, head, tail, copy, href, explorer, network, className, }: {
510
493
  value: string;
511
494
  head?: number;
512
495
  tail?: number;
513
496
  copy?: boolean;
514
497
  href?: string;
498
+ explorer?: ExplorerKind;
499
+ network?: Network;
515
500
  className?: string;
516
501
  }): react.JSX.Element;
517
502
  type StepState = 'done' | 'current' | 'upcoming' | 'blocked';
@@ -613,4 +598,193 @@ declare class ErrorBoundary extends Component<Props, State> {
613
598
  render(): ReactNode;
614
599
  }
615
600
 
616
- export { Accent, type ActivityItem, ActivityList, BrowserFrame, CodeBlock, type Column, Container, CopyButton, DataTable, Display, type DisplayProps, DocHeader, DocLayout, EmptyLine, EmptyState, ErrorBoundary, Eyebrow, FloatChip, Footnote, HashChip, type KeyValueItem, KeyValueList, Lead, LoadingBlock, Monogram, Notice, PackageCard, type PackageItem, PageHeader, PageHero, type PageHeroProps, PhoneFrame, type ProgressStep, ProgressSteps, Prose, Reveal, Sats, SatsFigure, type SatsProps, type SatsTextOptions, ScrollStory, Section, SectionIntro, type SectionProps, SplitBar, type SplitSegment, StatCard, type StatCardProps, StatGrid, type StatGridProps, StepGrid, type StepGridProps, type StepItem, type StepState, Ticker, type TocItem, type TruthRow, type TruthStatus, TruthTable, UsdApprox, monogramGround, monogramLetter, satsText, sectionVariants, useCopy, useInView };
601
+ declare function ErrorPage({ code, title, detail, actions, home, art, className, }: {
602
+ code?: number;
603
+ title?: ReactNode;
604
+ detail?: ReactNode;
605
+ actions?: ReactNode;
606
+ home?: string;
607
+ art?: ReactNode;
608
+ className?: string;
609
+ }): react.JSX.Element;
610
+
611
+ declare function SectionHeading({ eyebrow, title, lead, id, onInk, level, as, align, reveal, className, }: {
612
+ eyebrow?: ReactNode;
613
+ title: ReactNode;
614
+ lead?: ReactNode;
615
+ id?: string;
616
+ onInk?: boolean;
617
+ level?: 2 | 3;
618
+ as?: 'h2' | 'h3';
619
+ align?: 'start' | 'center';
620
+ reveal?: boolean;
621
+ className?: string;
622
+ }): react.JSX.Element;
623
+ declare function FactBlock({ id, title, description, aside, children, className, }: {
624
+ id?: string;
625
+ title: ReactNode;
626
+ description?: ReactNode;
627
+ aside?: ReactNode;
628
+ children?: ReactNode;
629
+ className?: string;
630
+ }): react.JSX.Element;
631
+ interface FactRow {
632
+ key: string;
633
+ title: ReactNode;
634
+ figure?: ReactNode;
635
+ fields: {
636
+ label: ReactNode;
637
+ value: ReactNode;
638
+ }[];
639
+ }
640
+ declare function FactRows({ rows, columns, label, className, }: {
641
+ rows: FactRow[];
642
+ columns?: 1 | 2;
643
+ label: string;
644
+ className?: string;
645
+ }): react.JSX.Element;
646
+ interface Endpoint {
647
+ href: string;
648
+ description: ReactNode;
649
+ label?: string;
650
+ }
651
+ declare function EndpointList({ items, label, className }: {
652
+ items: Endpoint[];
653
+ label?: string;
654
+ className?: string;
655
+ }): react.JSX.Element;
656
+ declare function ProofStrip({ items, className }: {
657
+ items: {
658
+ icon?: ReactNode;
659
+ label: ReactNode;
660
+ }[];
661
+ className?: string;
662
+ }): react.JSX.Element;
663
+ declare function Closing({ title, lead, actions, art, className, }: {
664
+ title: ReactNode;
665
+ lead?: ReactNode;
666
+ actions?: ReactNode;
667
+ art?: ReactNode;
668
+ className?: string;
669
+ }): react.JSX.Element;
670
+ declare function Faq({ items, className, }: {
671
+ items: {
672
+ q: ReactNode;
673
+ a: ReactNode;
674
+ id?: string;
675
+ }[];
676
+ className?: string;
677
+ }): react.JSX.Element;
678
+
679
+ type LegalBlock = {
680
+ kind: 'para';
681
+ text: string;
682
+ } | {
683
+ kind: 'subhead';
684
+ text: string;
685
+ } | {
686
+ kind: 'bullets';
687
+ items: (string | {
688
+ k: string;
689
+ v: string;
690
+ })[];
691
+ } | {
692
+ kind: 'callout';
693
+ text: string;
694
+ emphatic?: boolean;
695
+ } | {
696
+ kind: 'stub';
697
+ text: string;
698
+ };
699
+ interface LegalSource {
700
+ eyebrow: string;
701
+ title: string;
702
+ description: string;
703
+ effective: string;
704
+ updated: string;
705
+ preamble?: LegalBlock[];
706
+ sections: {
707
+ id: string;
708
+ num?: string;
709
+ heading: string;
710
+ hint?: string;
711
+ blocks: LegalBlock[];
712
+ }[];
713
+ summary?: string;
714
+ }
715
+ declare function LegalDocument({ doc, className }: {
716
+ doc: LegalSource;
717
+ className?: string;
718
+ }): react.JSX.Element;
719
+
720
+ type CheckState = 'ok' | 'fail' | 'pending' | 'skipped' | 'unchecked';
721
+ interface VerifyCheck {
722
+ label: ReactNode;
723
+ state: CheckState;
724
+ note?: ReactNode;
725
+ }
726
+ declare function VerifyReport({ verdict, title, summary, checks, facts, notChecked, actions, as: Heading, className, }: {
727
+ verdict: Statement;
728
+ title: ReactNode;
729
+ summary?: ReactNode;
730
+ checks: VerifyCheck[];
731
+ facts?: KeyValueItem[];
732
+ notChecked?: ReactNode[];
733
+ actions?: ReactNode;
734
+ as?: 'h2' | 'h3';
735
+ className?: string;
736
+ }): react.JSX.Element;
737
+ declare function SignMessage({ lead, address, message, wallets, busy, error, submitLabel, secondary, onSignature, className, }: {
738
+ lead?: ReactNode;
739
+ address: string;
740
+ message: string;
741
+ wallets?: ReactNode;
742
+ busy?: boolean;
743
+ error?: ReactNode;
744
+ submitLabel?: string;
745
+ secondary?: ReactNode;
746
+ onSignature: (signature: string) => void;
747
+ className?: string;
748
+ }): react.JSX.Element;
749
+
750
+ declare function TextLink({ href, children, external, className, }: {
751
+ href: string;
752
+ children: ReactNode;
753
+ external?: boolean;
754
+ className?: string;
755
+ }): react.JSX.Element;
756
+
757
+ interface SearchResult {
758
+ id: string;
759
+ href: string;
760
+ title: ReactNode;
761
+ section?: ReactNode;
762
+ excerpt?: ReactNode;
763
+ excerptHtml?: string;
764
+ }
765
+ interface SearchGroup {
766
+ label: ReactNode;
767
+ results: SearchResult[];
768
+ }
769
+ type SearchQuery = (query: string, signal: AbortSignal) => Promise<SearchGroup[]> | SearchGroup[];
770
+ declare const SearchButton: react.ForwardRefExoticComponent<{
771
+ label?: string;
772
+ onClick?: () => void;
773
+ className?: string;
774
+ } & react.RefAttributes<HTMLButtonElement>>;
775
+ declare function SearchDialog({ onQuery, open: openProp, onOpenChange, onSelect, button, hotkey, label, placeholder, idle, defaultQuery, debounceMs, className, }: {
776
+ onQuery: SearchQuery;
777
+ open?: boolean;
778
+ onOpenChange?: (open: boolean) => void;
779
+ onSelect?: (result: SearchResult) => void;
780
+ button?: boolean;
781
+ hotkey?: boolean;
782
+ label?: string;
783
+ placeholder?: string;
784
+ idle?: ReactNode;
785
+ defaultQuery?: string;
786
+ debounceMs?: number;
787
+ className?: string;
788
+ }): react.JSX.Element;
789
+
790
+ 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 };