@orangecheck/app-design 1.0.0 → 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 (62) hide show
  1. package/README.md +21 -5
  2. package/dist/chrome.d.mts +31 -42
  3. package/dist/chrome.d.ts +31 -42
  4. package/dist/chrome.js +500 -23
  5. package/dist/chrome.js.map +1 -1
  6. package/dist/chrome.mjs +495 -25
  7. package/dist/chrome.mjs.map +1 -1
  8. package/dist/code.d.mts +52 -0
  9. package/dist/code.d.ts +52 -0
  10. package/dist/code.js +534 -0
  11. package/dist/code.js.map +1 -0
  12. package/dist/code.mjs +522 -0
  13. package/dist/code.mjs.map +1 -0
  14. package/dist/components.d.mts +61 -117
  15. package/dist/components.d.ts +61 -117
  16. package/dist/components.js +2170 -105
  17. package/dist/components.js.map +1 -1
  18. package/dist/components.mjs +2142 -109
  19. package/dist/components.mjs.map +1 -1
  20. package/dist/docs-DhnstueM.d.ts +219 -0
  21. package/dist/docs-DiR6s43s.d.mts +219 -0
  22. package/dist/format.d.mts +12 -0
  23. package/dist/format.d.ts +12 -0
  24. package/dist/format.js +65 -0
  25. package/dist/format.js.map +1 -0
  26. package/dist/format.mjs +58 -0
  27. package/dist/format.mjs.map +1 -0
  28. package/dist/hero-Dn37il-9.d.mts +31 -0
  29. package/dist/hero-Dn37il-9.d.ts +31 -0
  30. package/dist/index.d.mts +10 -3
  31. package/dist/index.d.ts +10 -3
  32. package/dist/index.js +2668 -131
  33. package/dist/index.js.map +1 -1
  34. package/dist/index.mjs +2614 -134
  35. package/dist/index.mjs.map +1 -1
  36. package/dist/mdx.d.mts +58 -0
  37. package/dist/mdx.d.ts +58 -0
  38. package/dist/mdx.js +1712 -0
  39. package/dist/mdx.js.map +1 -0
  40. package/dist/mdx.mjs +1685 -0
  41. package/dist/mdx.mjs.map +1 -0
  42. package/dist/primitives.d.mts +22 -5
  43. package/dist/primitives.d.ts +22 -5
  44. package/dist/primitives.js +51 -5
  45. package/dist/primitives.js.map +1 -1
  46. package/dist/primitives.mjs +51 -7
  47. package/dist/primitives.mjs.map +1 -1
  48. package/dist/session.d.mts +18 -0
  49. package/dist/session.d.ts +18 -0
  50. package/dist/session.js +432 -0
  51. package/dist/session.js.map +1 -0
  52. package/dist/session.mjs +401 -0
  53. package/dist/session.mjs.map +1 -0
  54. package/dist/styles/code.css +97 -0
  55. package/dist/styles/theme.css +2 -0
  56. package/dist/styles/tokens.css +40 -0
  57. package/dist/styles.css +1 -0
  58. package/dist/tool-shell-B1C7ahKE.d.ts +81 -0
  59. package/dist/tool-shell-BDx_N5ai.d.mts +81 -0
  60. package/dist/tools-BggNN5DV.d.ts +131 -0
  61. package/dist/tools-DFIxIj5p.d.mts +131 -0
  62. package/package.json +31 -2
@@ -2,8 +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
- import { j as ProtocolSlug, S as SiteStatus, b as FamilyGroup, d as FamilySlug } from './index-C6hDqOOS.js';
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';
6
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';
7
11
 
8
12
  declare function Eyebrow({ className, onInk, ...props }: HTMLAttributes<HTMLParagraphElement> & {
9
13
  onInk?: boolean;
@@ -317,31 +321,6 @@ declare function SectionIntro({ className, align, reveal, children, style, }: Pi
317
321
  reveal?: boolean;
318
322
  }): react.JSX.Element;
319
323
 
320
- interface PageHeroProps {
321
- eyebrow?: ReactNode;
322
- title: ReactNode;
323
- lead?: ReactNode;
324
- actions?: ReactNode;
325
- art?: ReactNode;
326
- meta?: ReactNode;
327
- children?: ReactNode;
328
- variant?: 'page' | 'document';
329
- size?: 'lg' | 'xl';
330
- className?: string;
331
- }
332
- declare function PageHero({ eyebrow, title, lead, actions, art, meta, children, variant, size, className, }: PageHeroProps): react.JSX.Element;
333
- declare function DocHeader({ eyebrow, title, lead, meta, actions, children, className, }: Pick<PageHeroProps, 'eyebrow' | 'title' | 'lead' | 'meta' | 'actions' | 'children' | 'className'>): react.JSX.Element;
334
- interface TocItem {
335
- id: string;
336
- label: ReactNode;
337
- }
338
- declare function DocLayout({ toc, header, children, className, }: {
339
- toc?: TocItem[];
340
- header?: ReactNode;
341
- children: ReactNode;
342
- className?: string;
343
- }): react.JSX.Element;
344
-
345
324
  interface StepItem {
346
325
  title: ReactNode;
347
326
  body: ReactNode;
@@ -366,13 +345,6 @@ declare function PackageCard({ items, className }: {
366
345
  items: PackageItem[];
367
346
  className?: string;
368
347
  }): react.JSX.Element;
369
- declare function CodeBlock({ code, caption, copy, maxLines, className, }: {
370
- code: string;
371
- caption?: ReactNode;
372
- copy?: boolean;
373
- maxLines?: number;
374
- className?: string;
375
- }): react.JSX.Element;
376
348
 
377
349
  interface SplitSegment {
378
350
  pct: number;
@@ -433,9 +405,10 @@ interface StatCardProps {
433
405
  value: ReactNode;
434
406
  hint?: ReactNode;
435
407
  raw?: number | null;
408
+ size?: 'md' | 'sm';
436
409
  className?: string;
437
410
  }
438
- declare function StatCard({ label, value, hint, className }: StatCardProps): react.JSX.Element;
411
+ declare function StatCard({ label, value, hint, size, className }: StatCardProps): react.JSX.Element;
439
412
  declare function EmptyLine({ children, className }: {
440
413
  children: ReactNode;
441
414
  className?: string;
@@ -451,8 +424,9 @@ interface KeyValueItem {
451
424
  value: ReactNode;
452
425
  mono?: boolean;
453
426
  }
454
- declare function KeyValueList({ items, className }: {
427
+ declare function KeyValueList({ items, dense, className, }: {
455
428
  items: KeyValueItem[];
429
+ dense?: boolean;
456
430
  className?: string;
457
431
  }): react.JSX.Element;
458
432
  interface Column<T> {
@@ -468,13 +442,14 @@ interface Column<T> {
468
442
  primary?: boolean;
469
443
  hideOnPhone?: boolean;
470
444
  }
471
- declare function DataTable<T>({ columns, rows, rowKey, empty, caption, phone, className, }: {
445
+ declare function DataTable<T>({ columns, rows, rowKey, empty, caption, phone, dense, className, }: {
472
446
  columns: Column<T>[];
473
447
  rows: T[];
474
448
  rowKey: (row: T, i: number) => string;
475
449
  empty?: ReactNode;
476
450
  caption?: string;
477
451
  phone?: 'cards' | 'scroll';
452
+ dense?: boolean;
478
453
  className?: string;
479
454
  }): react.JSX.Element;
480
455
  declare function EmptyState({ title, children, action, icon, className, }: {
@@ -485,11 +460,12 @@ declare function EmptyState({ title, children, action, icon, className, }: {
485
460
  className?: string;
486
461
  }): react.JSX.Element;
487
462
  type NoticeTone = 'neutral' | 'brand' | 'danger' | 'info' | 'success' | 'warning';
488
- declare function Notice({ tone, title, children, action, className, }: {
463
+ declare function Notice({ tone, title, children, action, role, className, }: {
489
464
  tone?: NoticeTone;
490
465
  title?: ReactNode;
491
466
  children?: ReactNode;
492
467
  action?: ReactNode;
468
+ role?: 'alert' | 'status' | 'note';
493
469
  className?: string;
494
470
  }): react.JSX.Element;
495
471
  declare function LoadingBlock({ rows, timeoutMs, onRetry, label, className, }: {
@@ -501,19 +477,26 @@ declare function LoadingBlock({ rows, timeoutMs, onRetry, label, className, }: {
501
477
  }): react.JSX.Element;
502
478
  declare function useCopy(timeoutMs?: number): {
503
479
  copied: boolean;
504
- copy: (text: string) => Promise<void>;
480
+ copy: (text: string, opts?: {
481
+ clearAfter?: number;
482
+ }) => Promise<boolean>;
505
483
  };
506
- declare function CopyButton({ value, label, className }: {
507
- value: string;
484
+ interface CopyButtonProps {
485
+ value: string | (() => string);
508
486
  label?: string;
487
+ clearAfter?: number;
488
+ onCopied?: () => void;
509
489
  className?: string;
510
- }): react.JSX.Element;
511
- 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, }: {
512
493
  value: string;
513
494
  head?: number;
514
495
  tail?: number;
515
496
  copy?: boolean;
516
497
  href?: string;
498
+ explorer?: ExplorerKind;
499
+ network?: Network;
517
500
  className?: string;
518
501
  }): react.JSX.Element;
519
502
  type StepState = 'done' | 'current' | 'upcoming' | 'blocked';
@@ -734,86 +717,13 @@ declare function LegalDocument({ doc, className }: {
734
717
  className?: string;
735
718
  }): react.JSX.Element;
736
719
 
737
- declare function ProtocolGrid({ protocols, link, className, }: {
738
- protocols?: readonly ProtocolSlug[];
739
- link?: 'page' | 'tool';
740
- className?: string;
741
- }): react.JSX.Element;
742
- interface AppCardProps {
743
- name: ReactNode;
744
- line: ReactNode;
745
- href: string;
746
- protocols?: readonly ProtocolSlug[];
747
- status?: SiteStatus;
748
- className?: string;
749
- }
750
- declare function AppCard({ name, line, href, protocols, status, className }: AppCardProps): react.JSX.Element;
751
- declare function AppGrid({ group, sites, className, }: {
752
- group?: Extract<FamilyGroup, 'app' | 'public-good'>;
753
- sites?: readonly FamilySlug[];
754
- className?: string;
755
- }): react.JSX.Element;
756
-
757
- declare function ProtocolHero({ protocol, title, lead, actions, art, children, className, }: {
758
- protocol: ProtocolSlug;
759
- title: ReactNode;
760
- lead?: ReactNode;
761
- actions?: ReactNode;
762
- art?: ReactNode;
763
- children?: ReactNode;
764
- className?: string;
765
- }): react.JSX.Element;
766
- declare function ProtocolNav({ current, link, className, }: {
767
- current?: ProtocolSlug;
768
- link?: 'page' | 'tool';
769
- className?: string;
770
- }): react.JSX.Element;
771
- declare function SpecCard({ protocol, version, license, vectors, size, className, }: {
772
- protocol: ProtocolSlug;
773
- version: string;
774
- license?: string;
775
- vectors?: number;
776
- size?: 'md' | 'sm';
777
- className?: string;
778
- }): react.JSX.Element;
779
- declare function VerifyBox({ action, param, title, description, label, placeholder, hint, submitLabel, multiline, onVerify, className, }: {
780
- action: string;
781
- param?: string;
782
- title?: ReactNode;
783
- description?: ReactNode;
784
- label?: ReactNode;
785
- placeholder?: string;
786
- hint?: ReactNode;
787
- submitLabel?: string;
788
- multiline?: boolean;
789
- onVerify?: (value: string) => void;
790
- className?: string;
791
- }): react.JSX.Element;
792
- interface ComparisonColumn {
793
- key: string;
794
- label: ReactNode;
795
- highlight?: boolean;
796
- }
797
- interface ComparisonRow {
798
- label: ReactNode;
799
- note?: ReactNode;
800
- values: Record<string, ReactNode>;
801
- }
802
- declare function ComparisonTable({ columns, rows, label, propertyHeading, className, }: {
803
- columns: ComparisonColumn[];
804
- rows: ComparisonRow[];
805
- label: string;
806
- propertyHeading?: ReactNode;
807
- className?: string;
808
- }): react.JSX.Element;
809
-
810
720
  type CheckState = 'ok' | 'fail' | 'pending' | 'skipped' | 'unchecked';
811
721
  interface VerifyCheck {
812
722
  label: ReactNode;
813
723
  state: CheckState;
814
724
  note?: ReactNode;
815
725
  }
816
- declare function VerifyReport({ verdict, title, summary, checks, facts, notChecked, actions, className, }: {
726
+ declare function VerifyReport({ verdict, title, summary, checks, facts, notChecked, actions, as: Heading, className, }: {
817
727
  verdict: Statement;
818
728
  title: ReactNode;
819
729
  summary?: ReactNode;
@@ -821,6 +731,7 @@ declare function VerifyReport({ verdict, title, summary, checks, facts, notCheck
821
731
  facts?: KeyValueItem[];
822
732
  notChecked?: ReactNode[];
823
733
  actions?: ReactNode;
734
+ as?: 'h2' | 'h3';
824
735
  className?: string;
825
736
  }): react.JSX.Element;
826
737
  declare function SignMessage({ lead, address, message, wallets, busy, error, submitLabel, secondary, onSignature, className, }: {
@@ -843,4 +754,37 @@ declare function TextLink({ href, children, external, className, }: {
843
754
  className?: string;
844
755
  }): react.JSX.Element;
845
756
 
846
- export { Accent, type ActivityItem, ActivityList, AppCard, type AppCardProps, AppGrid, BrowserFrame, type CheckState, Closing, CodeBlock, type Column, type ComparisonColumn, type ComparisonRow, ComparisonTable, Container, CopyButton, DataTable, Display, type DisplayProps, DocHeader, DocLayout, 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, PageHero, type PageHeroProps, PhoneFrame, type ProgressStep, ProgressSteps, ProofStrip, Prose, ProtocolGrid, ProtocolHero, ProtocolNav, Reveal, Sats, SatsFigure, type SatsProps, type SatsTextOptions, ScrollStory, Section, SectionHeading, SectionIntro, type SectionProps, SignMessage, SpecCard, SplitBar, type SplitSegment, StatCard, type StatCardProps, StatGrid, type StatGridProps, StepGrid, type StepGridProps, type StepItem, type StepState, TextLink, Ticker, type TocItem, type TruthRow, type TruthStatus, TruthTable, UsdApprox, VerifyBox, type VerifyCheck, VerifyReport, monogramGround, monogramLetter, satsText, sectionVariants, useCopy, useInView };
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 };