@monoform-ui/react 0.0.0-stage → 0.2.0-beta.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 (162) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +228 -2
  3. package/THIRD_PARTY_NOTICES.md +37 -0
  4. package/dist/actions.d.ts +80 -0
  5. package/dist/advanced-forms.d.ts +107 -0
  6. package/dist/advanced-inputs.d.ts +103 -0
  7. package/dist/agent-chat.d.ts +98 -0
  8. package/dist/agent-input.d.ts +54 -0
  9. package/dist/ai-creation-input.d.ts +71 -0
  10. package/dist/ai-interactions.d.ts +90 -0
  11. package/dist/ai-status.d.ts +17 -0
  12. package/dist/ai.cjs +2 -0
  13. package/dist/ai.cjs.map +1 -0
  14. package/dist/ai.d.ts +6 -0
  15. package/dist/ai.js +29 -0
  16. package/dist/ai.js.map +1 -0
  17. package/dist/app-shell.d.ts +69 -0
  18. package/dist/assets/backgrounds/monolith-field-dark-desktop.avif +0 -0
  19. package/dist/assets/backgrounds/monolith-field-dark-desktop.webp +0 -0
  20. package/dist/assets/backgrounds/monolith-field-dark-mobile.avif +0 -0
  21. package/dist/assets/backgrounds/monolith-field-dark-mobile.webp +0 -0
  22. package/dist/assets/backgrounds/monolith-field-dark.svg +58 -0
  23. package/dist/assets/backgrounds/monolith-field-light-desktop.avif +0 -0
  24. package/dist/assets/backgrounds/monolith-field-light-desktop.webp +0 -0
  25. package/dist/assets/backgrounds/monolith-field-light-mobile.avif +0 -0
  26. package/dist/assets/backgrounds/monolith-field-light-mobile.webp +0 -0
  27. package/dist/assets/backgrounds/monolith-field-light.svg +58 -0
  28. package/dist/assets/backgrounds/optical-fog-dark-desktop.avif +0 -0
  29. package/dist/assets/backgrounds/optical-fog-dark-desktop.webp +0 -0
  30. package/dist/assets/backgrounds/optical-fog-dark-mobile.avif +0 -0
  31. package/dist/assets/backgrounds/optical-fog-dark-mobile.webp +0 -0
  32. package/dist/assets/backgrounds/optical-fog-dark.svg +50 -0
  33. package/dist/assets/backgrounds/optical-fog-light-desktop.avif +0 -0
  34. package/dist/assets/backgrounds/optical-fog-light-desktop.webp +0 -0
  35. package/dist/assets/backgrounds/optical-fog-light-mobile.avif +0 -0
  36. package/dist/assets/backgrounds/optical-fog-light-mobile.webp +0 -0
  37. package/dist/assets/backgrounds/optical-fog-light.svg +50 -0
  38. package/dist/assets/backgrounds/orbital-field-dark-desktop.avif +0 -0
  39. package/dist/assets/backgrounds/orbital-field-dark-desktop.webp +0 -0
  40. package/dist/assets/backgrounds/orbital-field-dark-mobile.avif +0 -0
  41. package/dist/assets/backgrounds/orbital-field-dark-mobile.webp +0 -0
  42. package/dist/assets/backgrounds/orbital-field-dark.svg +49 -0
  43. package/dist/assets/backgrounds/orbital-field-light-desktop.avif +0 -0
  44. package/dist/assets/backgrounds/orbital-field-light-desktop.webp +0 -0
  45. package/dist/assets/backgrounds/orbital-field-light-mobile.avif +0 -0
  46. package/dist/assets/backgrounds/orbital-field-light-mobile.webp +0 -0
  47. package/dist/assets/backgrounds/orbital-field-light.svg +49 -0
  48. package/dist/assets/backgrounds/signal-lattice-dark-desktop.avif +0 -0
  49. package/dist/assets/backgrounds/signal-lattice-dark-desktop.webp +0 -0
  50. package/dist/assets/backgrounds/signal-lattice-dark-mobile.avif +0 -0
  51. package/dist/assets/backgrounds/signal-lattice-dark-mobile.webp +0 -0
  52. package/dist/assets/backgrounds/signal-lattice-dark.svg +39 -0
  53. package/dist/assets/backgrounds/signal-lattice-light-desktop.avif +0 -0
  54. package/dist/assets/backgrounds/signal-lattice-light-desktop.webp +0 -0
  55. package/dist/assets/backgrounds/signal-lattice-light-mobile.avif +0 -0
  56. package/dist/assets/backgrounds/signal-lattice-light-mobile.webp +0 -0
  57. package/dist/assets/backgrounds/signal-lattice-light.svg +39 -0
  58. package/dist/background-assets.d.ts +144 -0
  59. package/dist/backgrounds.cjs +2 -0
  60. package/dist/backgrounds.cjs.map +1 -0
  61. package/dist/backgrounds.css +463 -0
  62. package/dist/backgrounds.d.ts +44 -0
  63. package/dist/backgrounds.js +256 -0
  64. package/dist/backgrounds.js.map +1 -0
  65. package/dist/catalog.cjs +2 -0
  66. package/dist/catalog.cjs.map +1 -0
  67. package/dist/catalog.d.ts +27 -0
  68. package/dist/catalog.js +307 -0
  69. package/dist/catalog.js.map +1 -0
  70. package/dist/collections-CXPc6huw.cjs +2 -0
  71. package/dist/collections-CXPc6huw.cjs.map +1 -0
  72. package/dist/collections-GglQdMPr.js +1308 -0
  73. package/dist/collections-GglQdMPr.js.map +1 -0
  74. package/dist/collections.d.ts +52 -0
  75. package/dist/command-palette-B4r2GzmF.cjs +2 -0
  76. package/dist/command-palette-B4r2GzmF.cjs.map +1 -0
  77. package/dist/command-palette-DwfgljM2.js +2773 -0
  78. package/dist/command-palette-DwfgljM2.js.map +1 -0
  79. package/dist/command-palette.d.ts +26 -0
  80. package/dist/core.cjs +2 -0
  81. package/dist/core.cjs.map +1 -0
  82. package/dist/core.css +8659 -0
  83. package/dist/core.d.ts +19 -0
  84. package/dist/core.js +176 -0
  85. package/dist/core.js.map +1 -0
  86. package/dist/data-grid.d.ts +62 -0
  87. package/dist/data-workbench.d.ts +103 -0
  88. package/dist/data.cjs +2 -0
  89. package/dist/data.cjs.map +1 -0
  90. package/dist/data.d.ts +6 -0
  91. package/dist/data.js +19 -0
  92. package/dist/data.js.map +1 -0
  93. package/dist/description-list.d.ts +8 -0
  94. package/dist/effects.cjs +2 -0
  95. package/dist/effects.cjs.map +1 -0
  96. package/dist/effects.css +442 -0
  97. package/dist/effects.d.ts +2 -0
  98. package/dist/effects.js +19 -0
  99. package/dist/effects.js.map +1 -0
  100. package/dist/feedback.d.ts +40 -0
  101. package/dist/forms.d.ts +89 -0
  102. package/dist/harness-D7tlTUb2.cjs +2 -0
  103. package/dist/harness-D7tlTUb2.cjs.map +1 -0
  104. package/dist/harness-Dcqe3-AP.js +2282 -0
  105. package/dist/harness-Dcqe3-AP.js.map +1 -0
  106. package/dist/harness.d.ts +89 -0
  107. package/dist/hooks.d.ts +6 -0
  108. package/dist/image-effects-BaXRloLB.js +164 -0
  109. package/dist/image-effects-BaXRloLB.js.map +1 -0
  110. package/dist/image-effects-D57JACXp.cjs +2 -0
  111. package/dist/image-effects-D57JACXp.cjs.map +1 -0
  112. package/dist/image-effects.d.ts +14 -0
  113. package/dist/index.cjs +2 -0
  114. package/dist/index.cjs.map +1 -0
  115. package/dist/index.d.ts +5 -0
  116. package/dist/index.js +239 -0
  117. package/dist/index.js.map +1 -0
  118. package/dist/locale.d.ts +358 -0
  119. package/dist/motion-effects-C1Rs4a2H.js +449 -0
  120. package/dist/motion-effects-C1Rs4a2H.js.map +1 -0
  121. package/dist/motion-effects-ze3SOVGs.cjs +2 -0
  122. package/dist/motion-effects-ze3SOVGs.cjs.map +1 -0
  123. package/dist/motion-effects.d.ts +76 -0
  124. package/dist/nav-menu.d.ts +45 -0
  125. package/dist/navigation-BG-qLyKt.cjs +2 -0
  126. package/dist/navigation-BG-qLyKt.cjs.map +1 -0
  127. package/dist/navigation-Bp7q1n-5.js +252 -0
  128. package/dist/navigation-Bp7q1n-5.js.map +1 -0
  129. package/dist/navigation.d.ts +53 -0
  130. package/dist/overlays-BhrWwlkN.js +1288 -0
  131. package/dist/overlays-BhrWwlkN.js.map +1 -0
  132. package/dist/overlays-DvozzH8D.cjs +2 -0
  133. package/dist/overlays-DvozzH8D.cjs.map +1 -0
  134. package/dist/overlays.d.ts +92 -0
  135. package/dist/people-picker.d.ts +65 -0
  136. package/dist/portal.d.ts +3 -0
  137. package/dist/primitives-Bb7v-uZh.js +217 -0
  138. package/dist/primitives-Bb7v-uZh.js.map +1 -0
  139. package/dist/primitives-CEcOVwUM.cjs +2 -0
  140. package/dist/primitives-CEcOVwUM.cjs.map +1 -0
  141. package/dist/primitives.d.ts +66 -0
  142. package/dist/rounded-card-border-B3d1HqwY.js +185 -0
  143. package/dist/rounded-card-border-B3d1HqwY.js.map +1 -0
  144. package/dist/rounded-card-border-CMiEPJIF.cjs +2 -0
  145. package/dist/rounded-card-border-CMiEPJIF.cjs.map +1 -0
  146. package/dist/rounded-card-border.d.ts +3 -0
  147. package/dist/sizes.d.ts +4 -0
  148. package/dist/status-toast.d.ts +20 -0
  149. package/dist/styles.css +9566 -0
  150. package/dist/theme-C3i6xkHd.cjs +2 -0
  151. package/dist/theme-C3i6xkHd.cjs.map +1 -0
  152. package/dist/theme-CHYnSgLv.js +914 -0
  153. package/dist/theme-CHYnSgLv.js.map +1 -0
  154. package/dist/theme.d.ts +24 -0
  155. package/dist/timeline.d.ts +15 -0
  156. package/dist/tree-view-Djlqyml-.js +132 -0
  157. package/dist/tree-view-Djlqyml-.js.map +1 -0
  158. package/dist/tree-view-iVh5jMNt.cjs +2 -0
  159. package/dist/tree-view-iVh5jMNt.cjs.map +1 -0
  160. package/dist/tree-view.d.ts +18 -0
  161. package/dist/utils.d.ts +2 -0
  162. package/package.json +162 -4
@@ -0,0 +1,98 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ export interface ChatThreadProps extends HTMLAttributes<HTMLDivElement> {
3
+ children?: ReactNode;
4
+ empty?: ReactNode;
5
+ autoScroll?: boolean;
6
+ /**
7
+ * @deprecated Use the native `aria-label` prop instead.
8
+ */
9
+ ariaLabel?: string;
10
+ }
11
+ export declare const ChatThread: import('react').ForwardRefExoticComponent<ChatThreadProps & import('react').RefAttributes<HTMLDivElement>>;
12
+ export type ChatMessageRole = "user" | "assistant" | "system" | "tool";
13
+ export type ChatMessageStatus = "idle" | "streaming" | "complete" | "error";
14
+ export interface ChatMessageProps extends HTMLAttributes<HTMLElement> {
15
+ role?: ChatMessageRole;
16
+ name?: ReactNode;
17
+ avatar?: ReactNode;
18
+ timestamp?: ReactNode;
19
+ status?: ChatMessageStatus;
20
+ actions?: ReactNode;
21
+ }
22
+ export declare function ChatMessage({ role, name, avatar, timestamp, status, actions, className, children, ...props }: ChatMessageProps): import("react").JSX.Element;
23
+ export interface StreamingTextProps extends Omit<HTMLAttributes<HTMLSpanElement>, "children"> {
24
+ text?: ReactNode;
25
+ children?: ReactNode;
26
+ state?: "streaming" | "complete" | "interrupted";
27
+ }
28
+ export declare function StreamingText({ text, children, state, className, ...props }: StreamingTextProps): import("react").JSX.Element;
29
+ export interface MessageActionsProps extends HTMLAttributes<HTMLDivElement> {
30
+ content?: string;
31
+ onCopy?: () => void | Promise<void>;
32
+ onRetry?: () => void;
33
+ onFeedback?: (feedback: "positive" | "negative") => void;
34
+ onMore?: () => void;
35
+ }
36
+ export declare function MessageActions({ content, onCopy, onRetry, onFeedback, onMore, className, ...props }: MessageActionsProps): import("react").JSX.Element;
37
+ export interface ReasoningPanelProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
38
+ title?: ReactNode;
39
+ status?: "thinking" | "complete" | "error";
40
+ duration?: ReactNode;
41
+ open?: boolean;
42
+ defaultOpen?: boolean;
43
+ onOpenChange?: (open: boolean) => void;
44
+ }
45
+ export declare function ReasoningPanel({ title, status, duration, open, defaultOpen, onOpenChange, className, children, ...props }: ReasoningPanelProps): import("react").JSX.Element;
46
+ export type AgentToolStatus = "pending" | "running" | "awaiting-approval" | "complete" | "error";
47
+ export interface ToolCallProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
48
+ name: string;
49
+ title?: ReactNode;
50
+ description?: ReactNode;
51
+ status?: AgentToolStatus;
52
+ parameters?: Record<string, ReactNode>;
53
+ icon?: ReactNode;
54
+ }
55
+ export declare function ToolCall({ name, title, description, status, parameters, icon, className, children, ...props }: ToolCallProps): import("react").JSX.Element;
56
+ export interface ToolResultProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
57
+ title?: ReactNode;
58
+ status?: "running" | "success" | "error";
59
+ output?: ReactNode;
60
+ onRetry?: () => void;
61
+ }
62
+ export declare function ToolResult({ title, status, output, onRetry, className, children, ...props }: ToolResultProps): import("react").JSX.Element;
63
+ export interface CitationProps extends Omit<HTMLAttributes<HTMLSpanElement>, "title"> {
64
+ index: number;
65
+ title: ReactNode;
66
+ source?: ReactNode;
67
+ locator?: ReactNode;
68
+ snippet?: ReactNode;
69
+ href?: string;
70
+ onClick?: () => void;
71
+ }
72
+ export declare function Citation({ index, title, source, locator, snippet, href, onClick, className, ...props }: CitationProps): import("react").JSX.Element;
73
+ export interface AgentAttachment {
74
+ id: string;
75
+ name: string;
76
+ size?: string;
77
+ type?: string;
78
+ status?: "uploading" | "ready" | "error";
79
+ progress?: number;
80
+ error?: ReactNode;
81
+ }
82
+ export interface AttachmentListProps extends HTMLAttributes<HTMLUListElement> {
83
+ files: AgentAttachment[];
84
+ onRemove?: (file: AgentAttachment) => void;
85
+ }
86
+ export declare function AttachmentList({ files, onRemove, className, ...props }: AttachmentListProps): import("react").JSX.Element;
87
+ export interface AgentSuggestion {
88
+ id: string;
89
+ label: string;
90
+ description?: string;
91
+ icon?: ReactNode;
92
+ onSelect: () => void;
93
+ }
94
+ export interface SuggestionListProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
95
+ suggestions: AgentSuggestion[];
96
+ title?: ReactNode;
97
+ }
98
+ export declare function SuggestionList({ suggestions, title, className, ...props }: SuggestionListProps): import("react").JSX.Element;
@@ -0,0 +1,54 @@
1
+ import { FormHTMLAttributes, ReactNode } from 'react';
2
+ import { BorderBeamColorVariant, BorderBeamSize } from './motion-effects';
3
+ import { SelectOption } from './forms';
4
+ export interface AgentInputOption extends SelectOption {
5
+ description?: ReactNode;
6
+ }
7
+ export interface AgentInputParameter {
8
+ name: string;
9
+ label: string;
10
+ options: AgentInputOption[];
11
+ defaultValue?: string;
12
+ }
13
+ export interface AgentInputSubmitPayload {
14
+ value: string;
15
+ model: string;
16
+ parameters: Record<string, string>;
17
+ files: File[];
18
+ }
19
+ export type AgentInputBeamState = BorderBeamSize | "auto" | "none";
20
+ export interface AgentInputProps extends Omit<FormHTMLAttributes<HTMLFormElement>, "defaultValue" | "onSubmit"> {
21
+ models?: AgentInputOption[];
22
+ model?: string;
23
+ defaultModel?: string;
24
+ onModelChange?: (model: string) => void;
25
+ parameters?: AgentInputParameter[];
26
+ parameterValues?: Record<string, string>;
27
+ defaultParameterValues?: Record<string, string>;
28
+ onParameterValuesChange?: (values: Record<string, string>) => void;
29
+ value?: string;
30
+ defaultValue?: string;
31
+ onValueChange?: (value: string) => void;
32
+ files?: File[];
33
+ defaultFiles?: File[];
34
+ onFilesChange?: (files: File[]) => void;
35
+ onSubmit: (payload: AgentInputSubmitPayload) => void | Promise<void>;
36
+ onError?: (error: unknown) => void;
37
+ placeholder?: string;
38
+ disabled?: boolean;
39
+ loading?: boolean;
40
+ maxLength?: number;
41
+ allowAttachments?: boolean;
42
+ accept?: string;
43
+ multipleAttachments?: boolean;
44
+ resetOnSubmit?: boolean;
45
+ showShortcutHint?: boolean;
46
+ submitLabel?: string;
47
+ textareaId?: string;
48
+ beam?: AgentInputBeamState;
49
+ beamColorVariant?: BorderBeamColorVariant;
50
+ beamActive?: boolean;
51
+ beamStrength?: number;
52
+ "aria-label"?: string;
53
+ }
54
+ export declare const AgentInput: import('react').ForwardRefExoticComponent<AgentInputProps & import('react').RefAttributes<HTMLFormElement>>;
@@ -0,0 +1,71 @@
1
+ import { FormHTMLAttributes, ReactNode } from 'react';
2
+ export type AICreationRatio = "smart" | "1:1" | "9:16" | "16:9" | "3:4" | "4:3" | "2:3" | "3:2" | "9:21" | "21:9";
3
+ export interface AICreationModeOption {
4
+ value: string;
5
+ label: string;
6
+ description?: string;
7
+ }
8
+ export interface AICreationModelOption {
9
+ value: string;
10
+ label: string;
11
+ description?: string;
12
+ premium?: boolean;
13
+ }
14
+ export interface AICreationRatioOption {
15
+ value: AICreationRatio;
16
+ label: string;
17
+ }
18
+ export interface AICreationResolutionOption {
19
+ value: string;
20
+ label: string;
21
+ baseSize?: number;
22
+ }
23
+ export interface AICreationReferenceOption {
24
+ id: string;
25
+ label: string;
26
+ description?: string;
27
+ thumbnail?: ReactNode;
28
+ }
29
+ export interface AICreationCost {
30
+ remaining: number;
31
+ total: number;
32
+ }
33
+ export interface AICreationDraft {
34
+ prompt: string;
35
+ mode: string;
36
+ model: string;
37
+ ratio: AICreationRatio;
38
+ resolution: string;
39
+ width: number;
40
+ height: number;
41
+ lockAspectRatio: boolean;
42
+ count: number;
43
+ referenceIds: string[];
44
+ files: File[];
45
+ }
46
+ export interface AICreationInputProps extends Omit<FormHTMLAttributes<HTMLFormElement>, "defaultValue" | "onSubmit"> {
47
+ modes?: AICreationModeOption[];
48
+ models?: AICreationModelOption[];
49
+ ratios?: AICreationRatioOption[];
50
+ resolutions?: AICreationResolutionOption[];
51
+ references?: AICreationReferenceOption[];
52
+ value?: AICreationDraft;
53
+ defaultValue?: Partial<AICreationDraft>;
54
+ onValueChange?: (value: AICreationDraft) => void;
55
+ onSubmit: (value: AICreationDraft) => void | Promise<void>;
56
+ onError?: (error: unknown) => void;
57
+ onCreateReference?: () => void;
58
+ cost?: AICreationCost;
59
+ placeholder?: string;
60
+ disabled?: boolean;
61
+ loading?: boolean;
62
+ maxFiles?: number;
63
+ maxCount?: number;
64
+ accept?: string;
65
+ resetOnSubmit?: boolean;
66
+ submitLabel?: string;
67
+ "aria-label"?: string;
68
+ }
69
+ export declare const aiCreationRatios: AICreationRatioOption[];
70
+ export declare const aiCreationResolutions: AICreationResolutionOption[];
71
+ export declare const AICreationInput: import('react').ForwardRefExoticComponent<AICreationInputProps & import('react').RefAttributes<HTMLFormElement>>;
@@ -0,0 +1,90 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ export interface ClarificationOption {
3
+ value: string;
4
+ label: ReactNode;
5
+ description?: ReactNode;
6
+ icon?: ReactNode;
7
+ disabled?: boolean;
8
+ }
9
+ export interface ClarificationPromptProps extends Omit<HTMLAttributes<HTMLDivElement>, "onSubmit" | "title"> {
10
+ title?: ReactNode;
11
+ description?: ReactNode;
12
+ mode?: "single" | "multiple";
13
+ options: ClarificationOption[];
14
+ value?: string | string[];
15
+ defaultValue?: string | string[];
16
+ onValueChange?: (value: string | string[]) => void;
17
+ onSubmit?: (value: string | string[]) => void | Promise<void>;
18
+ onSkip?: () => void;
19
+ submitLabel?: ReactNode;
20
+ skipLabel?: ReactNode;
21
+ allowSkip?: boolean;
22
+ disabled?: boolean;
23
+ loading?: boolean;
24
+ }
25
+ export declare const ClarificationPrompt: import('react').ForwardRefExoticComponent<ClarificationPromptProps & import('react').RefAttributes<HTMLDivElement>>;
26
+ export type ApprovalRequestStatus = "pending" | "approved" | "rejected";
27
+ export interface ApprovalRequestProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
28
+ title?: ReactNode;
29
+ description?: ReactNode;
30
+ risk?: "low" | "medium" | "high";
31
+ items?: Array<{
32
+ label: ReactNode;
33
+ value: ReactNode;
34
+ }>;
35
+ status?: ApprovalRequestStatus;
36
+ approveLabel?: ReactNode;
37
+ rejectLabel?: ReactNode;
38
+ onApprove?: () => void | Promise<void>;
39
+ onReject?: () => void | Promise<void>;
40
+ disabled?: boolean;
41
+ loading?: boolean;
42
+ }
43
+ export declare const ApprovalRequest: import('react').ForwardRefExoticComponent<ApprovalRequestProps & import('react').RefAttributes<HTMLDivElement>>;
44
+ export interface PlanReviewStep {
45
+ id: string;
46
+ label: ReactNode;
47
+ description?: ReactNode;
48
+ }
49
+ export type PlanReviewStatus = "pending" | "approved" | "changes-requested";
50
+ export interface PlanReviewProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
51
+ title?: ReactNode;
52
+ description?: ReactNode;
53
+ steps: PlanReviewStep[];
54
+ status?: PlanReviewStatus;
55
+ approveLabel?: ReactNode;
56
+ requestChangesLabel?: ReactNode;
57
+ onApprove?: () => void | Promise<void>;
58
+ onRequestChanges?: () => void | Promise<void>;
59
+ disabled?: boolean;
60
+ loading?: boolean;
61
+ }
62
+ export declare const PlanReview: import('react').ForwardRefExoticComponent<PlanReviewProps & import('react').RefAttributes<HTMLDivElement>>;
63
+ export interface ModelSelectorOption {
64
+ value: string;
65
+ label: ReactNode;
66
+ description?: ReactNode;
67
+ contextWindow?: ReactNode;
68
+ badges?: ReactNode[];
69
+ disabled?: boolean;
70
+ }
71
+ export interface ModelSelectorProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
72
+ options: ModelSelectorOption[];
73
+ value?: string;
74
+ defaultValue?: string;
75
+ onValueChange?: (value: string) => void;
76
+ label?: ReactNode;
77
+ placeholder?: ReactNode;
78
+ disabled?: boolean;
79
+ }
80
+ export declare const ModelSelector: import('react').ForwardRefExoticComponent<ModelSelectorProps & import('react').RefAttributes<HTMLDivElement>>;
81
+ export interface ContextMeterProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
82
+ used: number;
83
+ limit: number;
84
+ reserved?: number;
85
+ label?: ReactNode;
86
+ compact?: boolean;
87
+ warningAt?: number;
88
+ criticalAt?: number;
89
+ }
90
+ export declare const ContextMeter: import('react').ForwardRefExoticComponent<ContextMeterProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,17 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export type AIStatus = "thinking" | "searching" | "listening" | "solving" | "speaking" | "error";
3
+ export declare const aiStatusLabels: Record<AIStatus, string>;
4
+ export interface AIStatusOrbProps extends HTMLAttributes<HTMLDivElement> {
5
+ state?: AIStatus;
6
+ size?: number;
7
+ speed?: number;
8
+ paused?: boolean;
9
+ label?: string;
10
+ }
11
+ export declare const AIStatusOrb: import('react').ForwardRefExoticComponent<AIStatusOrbProps & import('react').RefAttributes<HTMLDivElement>>;
12
+ export interface AIStatusPillProps extends HTMLAttributes<HTMLDivElement> {
13
+ state?: AIStatus;
14
+ label?: string;
15
+ elapsed?: string;
16
+ }
17
+ export declare function AIStatusPill({ state, label, elapsed, className, ...props }: AIStatusPillProps): import("react").JSX.Element;
package/dist/ai.cjs ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./harness-D7tlTUb2.cjs");exports.AICreationInput=t.AICreationInput;exports.AIStatusOrb=t.AIStatusOrb;exports.AIStatusPill=t.AIStatusPill;exports.AgentInput=t.AgentInput;exports.ApprovalRequest=t.ApprovalRequest;exports.AttachmentList=t.AttachmentList;exports.ChatMessage=t.ChatMessage;exports.ChatThread=t.ChatThread;exports.Citation=t.Citation;exports.ClarificationPrompt=t.ClarificationPrompt;exports.ContextMeter=t.ContextMeter;exports.EvaluationSummary=t.EvaluationSummary;exports.MessageActions=t.MessageActions;exports.ModelSelector=t.ModelSelector;exports.PlanReview=t.PlanReview;exports.ReasoningPanel=t.ReasoningPanel;exports.RunOverview=t.RunOverview;exports.StreamingText=t.StreamingText;exports.SuggestionList=t.SuggestionList;exports.ToolCall=t.ToolCall;exports.ToolResult=t.ToolResult;exports.TraceViewer=t.TraceViewer;exports.aiCreationRatios=t.aiCreationRatios;exports.aiCreationResolutions=t.aiCreationResolutions;exports.aiStatusLabels=t.aiStatusLabels;
2
+ //# sourceMappingURL=ai.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/dist/ai.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ export * from './ai-status';
2
+ export * from './agent-input';
3
+ export * from './ai-creation-input';
4
+ export * from './ai-interactions';
5
+ export * from './agent-chat';
6
+ export * from './harness';
package/dist/ai.js ADDED
@@ -0,0 +1,29 @@
1
+ import { A as t, a as e, b as i, c as o, d as n, e as l, C as r, f as u, g as C, h as g, i as A, E as R, M as S, j as m, P as p, R as c, k as T, S as h, l as v, T as I, m as M, n as P, o as b, p as d, q as f } from "./harness-Dcqe3-AP.js";
2
+ export {
3
+ t as AICreationInput,
4
+ e as AIStatusOrb,
5
+ i as AIStatusPill,
6
+ o as AgentInput,
7
+ n as ApprovalRequest,
8
+ l as AttachmentList,
9
+ r as ChatMessage,
10
+ u as ChatThread,
11
+ C as Citation,
12
+ g as ClarificationPrompt,
13
+ A as ContextMeter,
14
+ R as EvaluationSummary,
15
+ S as MessageActions,
16
+ m as ModelSelector,
17
+ p as PlanReview,
18
+ c as ReasoningPanel,
19
+ T as RunOverview,
20
+ h as StreamingText,
21
+ v as SuggestionList,
22
+ I as ToolCall,
23
+ M as ToolResult,
24
+ P as TraceViewer,
25
+ b as aiCreationRatios,
26
+ d as aiCreationResolutions,
27
+ f as aiStatusLabels
28
+ };
29
+ //# sourceMappingURL=ai.js.map
package/dist/ai.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,69 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ export interface AppShellContextValue {
3
+ sidebarOpen: boolean;
4
+ setSidebarOpen: (open: boolean) => void;
5
+ sidebarCollapsed: boolean;
6
+ setSidebarCollapsed: (collapsed: boolean) => void;
7
+ contentId: string;
8
+ isMobile: boolean;
9
+ }
10
+ export declare function useAppShell(): AppShellContextValue;
11
+ export declare function useOptionalAppShell(): AppShellContextValue | null;
12
+ export interface SkipLinkProps extends HTMLAttributes<HTMLAnchorElement> {
13
+ href: string;
14
+ }
15
+ export declare const SkipLink: import('react').ForwardRefExoticComponent<SkipLinkProps & import('react').RefAttributes<HTMLAnchorElement>>;
16
+ export interface AppShellProps extends HTMLAttributes<HTMLDivElement> {
17
+ header?: ReactNode;
18
+ primarySidebar?: ReactNode;
19
+ sidebar?: ReactNode;
20
+ children: ReactNode;
21
+ sidebarOpen?: boolean;
22
+ defaultSidebarOpen?: boolean;
23
+ onSidebarOpenChange?: (open: boolean) => void;
24
+ sidebarCollapsed?: boolean;
25
+ defaultSidebarCollapsed?: boolean;
26
+ onSidebarCollapsedChange?: (collapsed: boolean) => void;
27
+ contentId?: string;
28
+ mainClassName?: string;
29
+ }
30
+ export declare const AppShell: import('react').ForwardRefExoticComponent<AppShellProps & import('react').RefAttributes<HTMLDivElement>>;
31
+ export interface PrimaryNavigationItem {
32
+ id: string;
33
+ label: string;
34
+ icon: ReactNode;
35
+ href?: string;
36
+ external?: boolean;
37
+ disabled?: boolean;
38
+ }
39
+ export interface PrimaryNavigationProps extends Omit<HTMLAttributes<HTMLElement>, "onSelect"> {
40
+ items: PrimaryNavigationItem[];
41
+ activeId?: string;
42
+ label?: string;
43
+ header?: ReactNode;
44
+ footer?: ReactNode;
45
+ onItemSelect?: (item: PrimaryNavigationItem) => void;
46
+ openSecondaryNavigation?: boolean;
47
+ }
48
+ export declare function PrimaryNavigation({ items, activeId, label, header, footer, onItemSelect, openSecondaryNavigation, className, ...props }: PrimaryNavigationProps): import("react").JSX.Element;
49
+ export declare namespace PrimaryNavigation {
50
+ var displayName: string;
51
+ }
52
+ export interface SidebarProps extends HTMLAttributes<HTMLElement> {
53
+ header?: ReactNode;
54
+ footer?: ReactNode;
55
+ collapsible?: boolean;
56
+ }
57
+ export declare function Sidebar({ header, footer, collapsible, className, children, ...props }: SidebarProps): import("react").JSX.Element;
58
+ export interface SidebarTriggerProps extends Omit<HTMLAttributes<HTMLButtonElement>, "onClick"> {
59
+ label?: string;
60
+ }
61
+ export declare const SidebarTrigger: import('react').ForwardRefExoticComponent<SidebarTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
62
+ export interface PageHeaderProps extends Omit<HTMLAttributes<HTMLElement>, "title"> {
63
+ breadcrumbs?: ReactNode;
64
+ title: ReactNode;
65
+ description?: ReactNode;
66
+ status?: ReactNode;
67
+ actions?: ReactNode;
68
+ }
69
+ export declare function PageHeader({ breadcrumbs, title, description, status, actions, className, ...props }: PageHeaderProps): import("react").JSX.Element;
@@ -0,0 +1,58 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="1600" height="1000" viewBox="0 0 1600 1000">
2
+ <defs>
3
+ <linearGradient id="paper" x1="0" y1="0" x2="1" y2="1">
4
+ <stop offset="0" stop-color="#191b1f"/>
5
+ <stop offset="0.55" stop-color="#0d0f12"/>
6
+ <stop offset="1" stop-color="#202328"/>
7
+ </linearGradient>
8
+ <linearGradient id="metal" x1="0.08" y1="0" x2="0.92" y2="1">
9
+ <stop offset="0" stop-color="#f5f7f9"/>
10
+ <stop offset="0.15" stop-color="#727b85"/>
11
+ <stop offset="0.43" stop-color="#111419"/>
12
+ <stop offset="0.68" stop-color="#252a31"/>
13
+ <stop offset="1" stop-color="#f5f7f9"/>
14
+ </linearGradient>
15
+ <linearGradient id="refraction" x1="0" y1="0" x2="1" y2="1">
16
+ <stop offset="0" stop-color="#8ee6ff"/>
17
+ <stop offset="0.52" stop-color="#55cfff"/>
18
+ <stop offset="1" stop-color="#b7b3c9"/>
19
+ </linearGradient>
20
+ <radialGradient id="light" cx="0.44" cy="0.34" r="0.52">
21
+ <stop offset="0" stop-color="#191b1f" stop-opacity="0.16"/>
22
+ <stop offset="1" stop-color="#191b1f" stop-opacity="0"/>
23
+ </radialGradient>
24
+ <filter id="shadow"><feGaussianBlur stdDeviation="24"/></filter>
25
+
26
+ <pattern id="micro-grid" width="32" height="32" patternUnits="userSpaceOnUse">
27
+ <path d="M32 0H0V32" fill="none" stroke="#d9e0e6" stroke-opacity="0.045"/>
28
+ </pattern>
29
+ <mask id="grid-fade">
30
+ <rect width="1600" height="1000" fill="url(#grid-mask)"/>
31
+ </mask>
32
+ <radialGradient id="grid-mask" cx="0.5" cy="0.45" r="0.72">
33
+ <stop offset="0.2" stop-color="white" stop-opacity="0.9"/>
34
+ <stop offset="0.72" stop-color="white" stop-opacity="0.34"/>
35
+ <stop offset="1" stop-color="white" stop-opacity="0"/>
36
+ </radialGradient>
37
+ </defs>
38
+ <rect width="1600" height="1000" fill="url(#paper)"/>
39
+ <rect width="1600" height="1000" fill="url(#micro-grid)" mask="url(#grid-fade)"/>
40
+ <ellipse cx="824" cy="390" rx="700" ry="520" fill="url(#light)"/>
41
+ <ellipse cx="826" cy="796" rx="500" ry="76" fill="#020304" opacity="0.35" filter="url(#shadow)"/>
42
+ <g>
43
+ <path d="M430 798 556 236l548-96 146 548-550 158Z" fill="#020304" opacity="0.15" transform="translate(18 24)" filter="url(#shadow)"/>
44
+ <path d="M430 798 556 236l548-96 146 548-550 158Z" fill="url(#metal)"/>
45
+ <path d="M676 804 786 286" stroke="url(#refraction)" stroke-width="76" opacity="0.56"/>
46
+ <path d="M920 750 1034 242" stroke="#f5f7f9" stroke-width="2" opacity="0.34"/>
47
+ <path d="M508 686 1098 500" stroke="#f5f7f9" stroke-width="1.2" opacity="0.2"/>
48
+ <path d="M738 890 888 70" stroke="#111419" stroke-width="15" opacity="0.45"/>
49
+ <path d="M556 236l548-96 146 549" fill="none" stroke="#f5f7f9" stroke-opacity="0.7" stroke-width="2"/>
50
+ <path d="M1104 140l146 549-550 158" fill="none" stroke="#111419" stroke-opacity="0.42" stroke-width="2"/>
51
+ </g>
52
+ <g transform="translate(120 152)" fill="none" stroke="#d9e0e6" stroke-opacity="0.28">
53
+ <circle r="27"/><circle r="4" fill="#55cfff" stroke="none"/><path d="M46 0h132"/>
54
+ </g>
55
+ <g transform="translate(1320 728)" fill="none" stroke="#d9e0e6" stroke-opacity="0.22">
56
+ <path d="M-122 0h172M0-122v172"/><circle r="8" fill="#55cfff" stroke="none"/>
57
+ </g>
58
+ </svg>
@@ -0,0 +1,58 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="1600" height="1000" viewBox="0 0 1600 1000">
2
+ <defs>
3
+ <linearGradient id="paper" x1="0" y1="0" x2="1" y2="1">
4
+ <stop offset="0" stop-color="#ffffff"/>
5
+ <stop offset="0.55" stop-color="#f4f4f1"/>
6
+ <stop offset="1" stop-color="#dfe2df"/>
7
+ </linearGradient>
8
+ <linearGradient id="metal" x1="0.08" y1="0" x2="0.92" y2="1">
9
+ <stop offset="0" stop-color="#ffffff"/>
10
+ <stop offset="0.15" stop-color="#7a838d"/>
11
+ <stop offset="0.43" stop-color="#171b21"/>
12
+ <stop offset="0.68" stop-color="#aab0b5"/>
13
+ <stop offset="1" stop-color="#ffffff"/>
14
+ </linearGradient>
15
+ <linearGradient id="refraction" x1="0" y1="0" x2="1" y2="1">
16
+ <stop offset="0" stop-color="#7bb7d9"/>
17
+ <stop offset="0.52" stop-color="#0073e5"/>
18
+ <stop offset="1" stop-color="#8d82a0"/>
19
+ </linearGradient>
20
+ <radialGradient id="light" cx="0.44" cy="0.34" r="0.52">
21
+ <stop offset="0" stop-color="#ffffff" stop-opacity="0.94"/>
22
+ <stop offset="1" stop-color="#ffffff" stop-opacity="0"/>
23
+ </radialGradient>
24
+ <filter id="shadow"><feGaussianBlur stdDeviation="24"/></filter>
25
+
26
+ <pattern id="micro-grid" width="32" height="32" patternUnits="userSpaceOnUse">
27
+ <path d="M32 0H0V32" fill="none" stroke="#151b22" stroke-opacity="0.035"/>
28
+ </pattern>
29
+ <mask id="grid-fade">
30
+ <rect width="1600" height="1000" fill="url(#grid-mask)"/>
31
+ </mask>
32
+ <radialGradient id="grid-mask" cx="0.5" cy="0.45" r="0.72">
33
+ <stop offset="0.2" stop-color="white" stop-opacity="0.9"/>
34
+ <stop offset="0.72" stop-color="white" stop-opacity="0.34"/>
35
+ <stop offset="1" stop-color="white" stop-opacity="0"/>
36
+ </radialGradient>
37
+ </defs>
38
+ <rect width="1600" height="1000" fill="url(#paper)"/>
39
+ <rect width="1600" height="1000" fill="url(#micro-grid)" mask="url(#grid-fade)"/>
40
+ <ellipse cx="824" cy="390" rx="700" ry="520" fill="url(#light)"/>
41
+ <ellipse cx="826" cy="796" rx="500" ry="76" fill="#56616b" opacity="0.18" filter="url(#shadow)"/>
42
+ <g>
43
+ <path d="M430 798 556 236l548-96 146 548-550 158Z" fill="#56616b" opacity="0.15" transform="translate(18 24)" filter="url(#shadow)"/>
44
+ <path d="M430 798 556 236l548-96 146 548-550 158Z" fill="url(#metal)"/>
45
+ <path d="M676 804 786 286" stroke="url(#refraction)" stroke-width="76" opacity="0.56"/>
46
+ <path d="M920 750 1034 242" stroke="#ffffff" stroke-width="2" opacity="0.34"/>
47
+ <path d="M508 686 1098 500" stroke="#ffffff" stroke-width="1.2" opacity="0.2"/>
48
+ <path d="M738 890 888 70" stroke="#171b21" stroke-width="15" opacity="0.45"/>
49
+ <path d="M556 236l548-96 146 549" fill="none" stroke="#ffffff" stroke-opacity="0.7" stroke-width="2"/>
50
+ <path d="M1104 140l146 549-550 158" fill="none" stroke="#171b21" stroke-opacity="0.42" stroke-width="2"/>
51
+ </g>
52
+ <g transform="translate(120 152)" fill="none" stroke="#151b22" stroke-opacity="0.2">
53
+ <circle r="27"/><circle r="4" fill="#0073e5" stroke="none"/><path d="M46 0h132"/>
54
+ </g>
55
+ <g transform="translate(1320 728)" fill="none" stroke="#151b22" stroke-opacity="0.15">
56
+ <path d="M-122 0h172M0-122v172"/><circle r="8" fill="#0073e5" stroke="none"/>
57
+ </g>
58
+ </svg>