@ciridae/ui 0.2.5 → 0.3.2

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 (150) hide show
  1. package/dist/components/ui/app-shell-page.js +1 -1
  2. package/dist/components/ui/app-shell.js +1 -1
  3. package/dist/components/ui/button-group.js +1 -1
  4. package/dist/components/ui/card.js +1 -1
  5. package/dist/components/ui/ciridae-ui-provider.d.ts +8 -0
  6. package/dist/components/ui/ciridae-ui-provider.js +14 -0
  7. package/dist/components/ui/color-theme.d.ts +1 -0
  8. package/dist/components/ui/color-theme.js +1 -0
  9. package/dist/components/ui/combobox.js +2 -2
  10. package/dist/components/ui/command.js +1 -1
  11. package/dist/components/ui/context-menu.js +2 -2
  12. package/dist/components/ui/data-table-grid.js +1 -1
  13. package/dist/components/ui/data-table.js +1 -1
  14. package/dist/components/ui/dropdown-menu.js +2 -2
  15. package/dist/components/ui/input-group.js +1 -1
  16. package/dist/components/ui/item.d.ts +1 -1
  17. package/dist/components/ui/menubar.js +2 -2
  18. package/dist/components/ui/page-header.js +1 -1
  19. package/dist/components/ui/registry-docs-api.js +1 -1
  20. package/dist/components/ui/registry-docs-showcase.js +1 -1
  21. package/dist/components/ui/select.js +1 -1
  22. package/dist/components/ui/sidebar/group.js +2 -2
  23. package/dist/components/ui/sidebar/menu.js +3 -3
  24. package/dist/components/ui/sidebar-account-menu-theme.js +2 -2
  25. package/dist/components/ui/sidebar-account-menu.js +3 -3
  26. package/dist/styled-system/styles.css +393 -61
  27. package/dist/styles.css +2 -0
  28. package/package.json +7 -260
  29. package/dist/components/agentic/agent-card.d.ts +0 -28
  30. package/dist/components/agentic/agent-card.js +0 -27
  31. package/dist/components/agentic/agent-composer.d.ts +0 -44
  32. package/dist/components/agentic/agent-composer.js +0 -104
  33. package/dist/components/agentic/agent-context.d.ts +0 -28
  34. package/dist/components/agentic/agent-context.js +0 -102
  35. package/dist/components/agentic/agent-plan.d.ts +0 -27
  36. package/dist/components/agentic/agent-plan.js +0 -43
  37. package/dist/components/agentic/agent-queue.d.ts +0 -46
  38. package/dist/components/agentic/agent-queue.js +0 -53
  39. package/dist/components/agentic/agent-task.d.ts +0 -16
  40. package/dist/components/agentic/agent-task.js +0 -20
  41. package/dist/components/agentic/approval-request.d.ts +0 -24
  42. package/dist/components/agentic/approval-request.js +0 -57
  43. package/dist/components/agentic/artifact.d.ts +0 -24
  44. package/dist/components/agentic/artifact.js +0 -72
  45. package/dist/components/agentic/attachments.d.ts +0 -124
  46. package/dist/components/agentic/attachments.js +0 -595
  47. package/dist/components/agentic/audio-player.d.ts +0 -16
  48. package/dist/components/agentic/audio-player.js +0 -21
  49. package/dist/components/agentic/canvas.d.ts +0 -10
  50. package/dist/components/agentic/canvas.js +0 -22
  51. package/dist/components/agentic/clipboard.d.ts +0 -2
  52. package/dist/components/agentic/clipboard.js +0 -12
  53. package/dist/components/agentic/code-block.d.ts +0 -43
  54. package/dist/components/agentic/code-block.js +0 -92
  55. package/dist/components/agentic/commit.d.ts +0 -57
  56. package/dist/components/agentic/commit.js +0 -85
  57. package/dist/components/agentic/connection.d.ts +0 -3
  58. package/dist/components/agentic/connection.js +0 -8
  59. package/dist/components/agentic/controls.d.ts +0 -6
  60. package/dist/components/agentic/controls.js +0 -7
  61. package/dist/components/agentic/conversation.d.ts +0 -25
  62. package/dist/components/agentic/conversation.js +0 -56
  63. package/dist/components/agentic/edge.d.ts +0 -8
  64. package/dist/components/agentic/edge.js +0 -65
  65. package/dist/components/agentic/effort-selector.d.ts +0 -43
  66. package/dist/components/agentic/effort-selector.js +0 -47
  67. package/dist/components/agentic/environment-variables.d.ts +0 -32
  68. package/dist/components/agentic/environment-variables.js +0 -66
  69. package/dist/components/agentic/file-tree.d.ts +0 -24
  70. package/dist/components/agentic/file-tree.js +0 -56
  71. package/dist/components/agentic/image.d.ts +0 -9
  72. package/dist/components/agentic/image.js +0 -11
  73. package/dist/components/agentic/inline-citation.d.ts +0 -40
  74. package/dist/components/agentic/inline-citation.js +0 -111
  75. package/dist/components/agentic/jsx-preview.d.ts +0 -19
  76. package/dist/components/agentic/jsx-preview.js +0 -34
  77. package/dist/components/agentic/message-branch.d.ts +0 -20
  78. package/dist/components/agentic/message-branch.js +0 -83
  79. package/dist/components/agentic/message-response.css +0 -265
  80. package/dist/components/agentic/message-response.css.d.ts +0 -2
  81. package/dist/components/agentic/message.d.ts +0 -27
  82. package/dist/components/agentic/message.js +0 -57
  83. package/dist/components/agentic/mic-selector.d.ts +0 -58
  84. package/dist/components/agentic/mic-selector.js +0 -173
  85. package/dist/components/agentic/model-selector.d.ts +0 -39
  86. package/dist/components/agentic/model-selector.js +0 -47
  87. package/dist/components/agentic/node.d.ts +0 -26
  88. package/dist/components/agentic/node.js +0 -29
  89. package/dist/components/agentic/open-in-chat.d.ts +0 -9
  90. package/dist/components/agentic/open-in-chat.js +0 -8
  91. package/dist/components/agentic/package-info.d.ts +0 -30
  92. package/dist/components/agentic/package-info.js +0 -44
  93. package/dist/components/agentic/panel.d.ts +0 -6
  94. package/dist/components/agentic/panel.js +0 -7
  95. package/dist/components/agentic/persona.d.ts +0 -16
  96. package/dist/components/agentic/persona.js +0 -116
  97. package/dist/components/agentic/prompt-input-action-menu.d.ts +0 -16
  98. package/dist/components/agentic/prompt-input-action-menu.js +0 -22
  99. package/dist/components/agentic/prompt-input-command.d.ts +0 -18
  100. package/dist/components/agentic/prompt-input-command.js +0 -25
  101. package/dist/components/agentic/prompt-input-hover-card.d.ts +0 -10
  102. package/dist/components/agentic/prompt-input-hover-card.js +0 -13
  103. package/dist/components/agentic/prompt-input-select.d.ts +0 -14
  104. package/dist/components/agentic/prompt-input-select.js +0 -19
  105. package/dist/components/agentic/prompt-input-tabs.d.ts +0 -17
  106. package/dist/components/agentic/prompt-input-tabs.js +0 -45
  107. package/dist/components/agentic/prompt-input.d.ts +0 -79
  108. package/dist/components/agentic/prompt-input.js +0 -206
  109. package/dist/components/agentic/reasoning.d.ts +0 -21
  110. package/dist/components/agentic/reasoning.js +0 -106
  111. package/dist/components/agentic/run-checkpoint.d.ts +0 -13
  112. package/dist/components/agentic/run-checkpoint.js +0 -19
  113. package/dist/components/agentic/run-trace.d.ts +0 -30
  114. package/dist/components/agentic/run-trace.js +0 -56
  115. package/dist/components/agentic/sandbox.d.ts +0 -24
  116. package/dist/components/agentic/sandbox.js +0 -33
  117. package/dist/components/agentic/schema-display.d.ts +0 -39
  118. package/dist/components/agentic/schema-display.js +0 -56
  119. package/dist/components/agentic/shimmer.d.ts +0 -11
  120. package/dist/components/agentic/shimmer.js +0 -16
  121. package/dist/components/agentic/snippet.d.ts +0 -18
  122. package/dist/components/agentic/snippet.js +0 -35
  123. package/dist/components/agentic/sources.d.ts +0 -16
  124. package/dist/components/agentic/sources.js +0 -17
  125. package/dist/components/agentic/speech-input.d.ts +0 -24
  126. package/dist/components/agentic/speech-input.js +0 -30
  127. package/dist/components/agentic/stack-trace.d.ts +0 -27
  128. package/dist/components/agentic/stack-trace.js +0 -76
  129. package/dist/components/agentic/suggestion.d.ts +0 -12
  130. package/dist/components/agentic/suggestion.js +0 -15
  131. package/dist/components/agentic/terminal.d.ts +0 -24
  132. package/dist/components/agentic/terminal.js +0 -47
  133. package/dist/components/agentic/test-results.d.ts +0 -51
  134. package/dist/components/agentic/test-results.js +0 -83
  135. package/dist/components/agentic/theme.d.ts +0 -5
  136. package/dist/components/agentic/theme.js +0 -31
  137. package/dist/components/agentic/tool.d.ts +0 -25
  138. package/dist/components/agentic/tool.js +0 -73
  139. package/dist/components/agentic/toolbar.d.ts +0 -6
  140. package/dist/components/agentic/toolbar.js +0 -7
  141. package/dist/components/agentic/transcription.d.ts +0 -20
  142. package/dist/components/agentic/transcription.js +0 -32
  143. package/dist/components/agentic/types.d.ts +0 -172
  144. package/dist/components/agentic/types.js +0 -1
  145. package/dist/components/agentic/use-controllable-state.d.ts +0 -6
  146. package/dist/components/agentic/use-controllable-state.js +0 -13
  147. package/dist/components/agentic/voice-selector.d.ts +0 -69
  148. package/dist/components/agentic/voice-selector.js +0 -122
  149. package/dist/components/agentic/web-preview.d.ts +0 -25
  150. package/dist/components/agentic/web-preview.js +0 -33
@@ -1,39 +0,0 @@
1
- import type * as React from "react";
2
- import { Badge } from "@ciridae/ui/badge";
3
- import { Collapsible } from "@ciridae/ui/collapsible";
4
- type HttpMethod = "DELETE" | "GET" | "PATCH" | "POST" | "PUT";
5
- type SchemaDisplayProps = React.ComponentProps<"div"> & {
6
- method?: HttpMethod;
7
- path?: string;
8
- };
9
- type SchemaDisplayHeaderProps = React.ComponentProps<"div">;
10
- type SchemaDisplayMethodProps = React.ComponentProps<typeof Badge>;
11
- type SchemaDisplayPathProps = React.ComponentProps<"span">;
12
- type SchemaDisplayDescriptionProps = React.ComponentProps<"p">;
13
- type SchemaDisplayContentProps = React.ComponentProps<"div">;
14
- type SchemaDisplayBodyProps = React.ComponentProps<"div">;
15
- type SchemaDisplayParameterProps = React.ComponentProps<"div"> & {
16
- name: string;
17
- required?: boolean;
18
- type?: string;
19
- };
20
- type SchemaDisplayParametersProps = React.ComponentProps<typeof Collapsible>;
21
- type SchemaDisplayPropertyProps = SchemaDisplayParameterProps;
22
- type SchemaDisplayRequestProps = React.ComponentProps<typeof Collapsible>;
23
- type SchemaDisplayResponseProps = React.ComponentProps<typeof Collapsible>;
24
- type SchemaDisplayExampleProps = React.ComponentProps<"pre">;
25
- declare function SchemaDisplay({ children, className, method, path, ...props }: SchemaDisplayProps): React.JSX.Element;
26
- declare function SchemaDisplayHeader({ className, ...props }: SchemaDisplayHeaderProps): React.JSX.Element;
27
- declare function SchemaDisplayMethod({ children, variant, ...props }: SchemaDisplayMethodProps): React.JSX.Element;
28
- declare function SchemaDisplayPath({ className, ...props }: SchemaDisplayPathProps): React.JSX.Element;
29
- declare function SchemaDisplayDescription({ className, ...props }: SchemaDisplayDescriptionProps): React.JSX.Element;
30
- declare function SchemaDisplayContent({ className, ...props }: SchemaDisplayContentProps): React.JSX.Element;
31
- declare function SchemaDisplayBody({ className, ...props }: SchemaDisplayBodyProps): React.JSX.Element;
32
- declare function SchemaDisplayParameter({ className, name, required, type, ...props }: SchemaDisplayParameterProps): React.JSX.Element;
33
- declare function SchemaDisplayParameters(props: SchemaDisplayParametersProps): React.JSX.Element;
34
- declare function SchemaDisplayProperty(props: SchemaDisplayPropertyProps): React.JSX.Element;
35
- declare function SchemaDisplayRequest(props: SchemaDisplayRequestProps): React.JSX.Element;
36
- declare function SchemaDisplayResponse(props: SchemaDisplayResponseProps): React.JSX.Element;
37
- declare function SchemaDisplayExample({ className, ...props }: SchemaDisplayExampleProps): React.JSX.Element;
38
- export { SchemaDisplay, SchemaDisplayBody, SchemaDisplayContent, SchemaDisplayDescription, SchemaDisplayExample, SchemaDisplayHeader, SchemaDisplayMethod, SchemaDisplayParameter, SchemaDisplayParameters, SchemaDisplayPath, SchemaDisplayProperty, SchemaDisplayRequest, SchemaDisplayResponse, };
39
- export type { HttpMethod, SchemaDisplayBodyProps, SchemaDisplayContentProps, SchemaDisplayDescriptionProps, SchemaDisplayExampleProps, SchemaDisplayHeaderProps, SchemaDisplayMethodProps, SchemaDisplayParameterProps, SchemaDisplayParametersProps, SchemaDisplayPathProps, SchemaDisplayPropertyProps, SchemaDisplayProps, SchemaDisplayRequestProps, SchemaDisplayResponseProps, };
@@ -1,56 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { ChevronDownIcon } from "lucide-react";
3
- import { createContext, useContext, useMemo } from "react";
4
- import { Badge } from "@ciridae/ui/badge";
5
- import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@ciridae/ui/collapsible";
6
- import { cn } from "@ciridae/ui/utils";
7
- const SchemaDisplayContext = createContext({});
8
- function useSchemaDisplay() {
9
- return useContext(SchemaDisplayContext);
10
- }
11
- function SchemaDisplay({ children, className, method, path, ...props }) {
12
- const contextValue = useMemo(() => ({ method, path }), [method, path]);
13
- return (_jsx(SchemaDisplayContext.Provider, { value: contextValue, children: _jsx("div", { "data-slot": "schema-display", className: cn("grid gap-3 rounded-lg border bg-card p-4", className), ...props, children: children }) }));
14
- }
15
- function SchemaDisplayHeader({ className, ...props }) {
16
- return (_jsx("div", { "data-slot": "schema-display-header", className: cn("flex min-w-0 flex-wrap items-center gap-2", className), ...props }));
17
- }
18
- function SchemaDisplayMethod({ children, variant = "outline", ...props }) {
19
- const { method } = useSchemaDisplay();
20
- return (_jsx(Badge, { "data-slot": "schema-display-method", variant: variant, ...props, children: children ?? method }));
21
- }
22
- function SchemaDisplayPath({ className, ...props }) {
23
- const { path } = useSchemaDisplay();
24
- return (_jsx("span", { "data-slot": "schema-display-path", className: cn("min-w-0 truncate font-mono text-sm", className), ...props, children: props.children ?? path }));
25
- }
26
- function SchemaDisplayDescription({ className, ...props }) {
27
- return (_jsx("p", { "data-slot": "schema-display-description", className: cn("text-sm text-muted-foreground", className), ...props }));
28
- }
29
- function SchemaDisplayContent({ className, ...props }) {
30
- return (_jsx("div", { "data-slot": "schema-display-content", className: cn("grid gap-3", className), ...props }));
31
- }
32
- function SchemaDisplayBody({ className, ...props }) {
33
- return _jsx("div", { "data-slot": "schema-display-body", className: cn("grid gap-2", className), ...props });
34
- }
35
- function SchemaDisplayParameter({ className, name, required, type = "string", ...props }) {
36
- return (_jsxs("div", { "data-slot": "schema-display-parameter", className: cn("grid gap-1 rounded-md border bg-muted/30 p-2", className), ...props, children: [_jsxs("div", { className: "flex min-w-0 items-center justify-between gap-3", children: [_jsx("span", { className: "truncate font-mono text-xs", children: name }), _jsx("span", { className: "shrink-0 font-mono text-xs text-muted-foreground", children: type })] }), required ? _jsx("div", { className: "text-meta text-muted-foreground", children: "required" }) : null] }));
37
- }
38
- function SchemaDisplayParameters(props) {
39
- return _jsx(SchemaSection, { dataSlot: "schema-display-parameters", label: "Parameters", ...props });
40
- }
41
- function SchemaDisplayProperty(props) {
42
- return _jsx(SchemaDisplayParameter, { "data-slot": "schema-display-property", ...props });
43
- }
44
- function SchemaDisplayRequest(props) {
45
- return _jsx(SchemaSection, { dataSlot: "schema-display-request", label: "Request", ...props });
46
- }
47
- function SchemaDisplayResponse(props) {
48
- return _jsx(SchemaSection, { dataSlot: "schema-display-response", label: "Response", ...props });
49
- }
50
- function SchemaDisplayExample({ className, ...props }) {
51
- return (_jsx("pre", { "data-slot": "schema-display-example", className: cn("overflow-auto rounded-md bg-muted/50 p-3 font-mono text-xs", className), ...props }));
52
- }
53
- function SchemaSection({ children, className, dataSlot, defaultOpen = true, label, ...props }) {
54
- return (_jsxs(Collapsible, { "data-slot": dataSlot, className: cn("rounded-md border", className), defaultOpen: defaultOpen, ...props, children: [_jsxs(CollapsibleTrigger, { className: "group flex w-full items-center justify-between px-3 py-2 text-sm font-medium", children: [_jsx("span", { children: label }), _jsx(ChevronDownIcon, { "aria-hidden": "true", className: "size-4 transition-transform group-data-[state=open]:rotate-180" })] }), _jsx(CollapsibleContent, { className: "grid gap-2 border-t p-3", children: children })] }));
55
- }
56
- export { SchemaDisplay, SchemaDisplayBody, SchemaDisplayContent, SchemaDisplayDescription, SchemaDisplayExample, SchemaDisplayHeader, SchemaDisplayMethod, SchemaDisplayParameter, SchemaDisplayParameters, SchemaDisplayPath, SchemaDisplayProperty, SchemaDisplayRequest, SchemaDisplayResponse, };
@@ -1,11 +0,0 @@
1
- import type { ElementType, HTMLAttributes } from "react";
2
- type ShimmerProps = HTMLAttributes<HTMLElement> & {
3
- as?: ElementType;
4
- children: string;
5
- duration?: number;
6
- spread?: number;
7
- };
8
- declare function ShimmerComponent({ as: Component, children, className, duration, spread, style, ...props }: ShimmerProps): import("react").JSX.Element;
9
- declare const Shimmer: import("react").MemoExoticComponent<typeof ShimmerComponent>;
10
- export { Shimmer };
11
- export type { ShimmerProps };
@@ -1,16 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { memo, useMemo } from "react";
3
- import { cn } from "@ciridae/ui/utils";
4
- function ShimmerComponent({ as: Component = "p", children, className, duration = 2, spread = 2, style, ...props }) {
5
- const dynamicSpread = useMemo(() => (children?.length ?? 0) * spread, [children, spread]);
6
- const trackWidth = useMemo(() => Math.max((children?.length ?? 0) * 0.62, 12), [children]);
7
- const shimmerStyle = {
8
- "--agentic-shimmer-duration": `${duration}s`,
9
- "--agentic-shimmer-spread": `${Math.max(dynamicSpread, 80)}px`,
10
- "--agentic-shimmer-track-width": `${trackWidth}ch`,
11
- ...style,
12
- };
13
- return (_jsx(Component, { "data-slot": "shimmer", className: cn("agentic-shimmer relative inline-block text-muted-foreground", className), style: shimmerStyle, ...props, children: children }));
14
- }
15
- const Shimmer = memo(ShimmerComponent);
16
- export { Shimmer };
@@ -1,18 +0,0 @@
1
- import type * as React from "react";
2
- import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText } from "@ciridae/ui/input-group";
3
- type SnippetProps = React.ComponentProps<typeof InputGroup> & {
4
- value: string;
5
- };
6
- type SnippetAddonProps = React.ComponentProps<typeof InputGroupAddon>;
7
- type SnippetTextProps = React.ComponentProps<typeof InputGroupText>;
8
- type SnippetInputProps = Omit<React.ComponentProps<typeof InputGroupInput>, "value"> & {
9
- value?: string;
10
- };
11
- type SnippetCopyButtonProps = React.ComponentProps<typeof InputGroupButton>;
12
- declare function Snippet({ children, className, value, ...props }: SnippetProps): React.JSX.Element;
13
- declare function SnippetAddon(props: SnippetAddonProps): React.JSX.Element;
14
- declare function SnippetText({ className, ...props }: SnippetTextProps): React.JSX.Element;
15
- declare function SnippetInput({ className, value, ...props }: SnippetInputProps): React.JSX.Element;
16
- declare function SnippetCopyButton({ children, ...props }: SnippetCopyButtonProps): React.JSX.Element;
17
- export { Snippet, SnippetAddon, SnippetCopyButton, SnippetInput, SnippetText };
18
- export type { SnippetAddonProps, SnippetCopyButtonProps, SnippetInputProps, SnippetProps, SnippetTextProps, };
@@ -1,35 +0,0 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { CheckIcon, CopyIcon } from "lucide-react";
3
- import { createContext, useContext, useMemo, useState } from "react";
4
- import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, } from "@ciridae/ui/input-group";
5
- import { cn } from "@ciridae/ui/utils";
6
- import { copyToClipboard } from "./clipboard";
7
- const SnippetContext = createContext({ value: "" });
8
- function useSnippet() {
9
- return useContext(SnippetContext);
10
- }
11
- function Snippet({ children, className, value, ...props }) {
12
- const contextValue = useMemo(() => ({ value }), [value]);
13
- return (_jsx(SnippetContext.Provider, { value: contextValue, children: _jsx(InputGroup, { "data-slot": "snippet", className: cn("font-mono", className), ...props, children: children ?? (_jsxs(_Fragment, { children: [_jsx(SnippetInput, { readOnly: true }), _jsx(SnippetCopyButton, {})] })) }) }));
14
- }
15
- function SnippetAddon(props) {
16
- return _jsx(InputGroupAddon, { "data-slot": "snippet-addon", ...props });
17
- }
18
- function SnippetText({ className, ...props }) {
19
- return (_jsx(InputGroupText, { "data-slot": "snippet-text", className: cn("font-mono", className), ...props }));
20
- }
21
- function SnippetInput({ className, value, ...props }) {
22
- const context = useSnippet();
23
- return (_jsx(InputGroupInput, { "data-slot": "snippet-input", className: cn("font-mono", className), value: value ?? context.value, ...props }));
24
- }
25
- function SnippetCopyButton({ children, ...props }) {
26
- const { value } = useSnippet();
27
- const [copied, setCopied] = useState(false);
28
- const Icon = copied ? CheckIcon : CopyIcon;
29
- return (_jsx(InputGroupButton, { "aria-label": copied ? "Copied" : "Copy snippet", type: "button", ...props, onClick: (event) => {
30
- props.onClick?.(event);
31
- if (!event.defaultPrevented)
32
- void copyToClipboard(value, setCopied);
33
- }, children: children ?? _jsx(Icon, { "aria-hidden": "true", className: "size-4" }) }));
34
- }
35
- export { Snippet, SnippetAddon, SnippetCopyButton, SnippetInput, SnippetText };
@@ -1,16 +0,0 @@
1
- import type * as React from "react";
2
- import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@ciridae/ui/collapsible";
3
- type SourcesProps = React.ComponentProps<typeof Collapsible>;
4
- type SourcesTriggerProps = React.ComponentProps<typeof CollapsibleTrigger> & {
5
- count: number;
6
- };
7
- type SourcesContentProps = React.ComponentProps<typeof CollapsibleContent>;
8
- type SourceProps = React.ComponentProps<"a"> & {
9
- title?: string;
10
- };
11
- declare function Sources({ ...props }: SourcesProps): React.JSX.Element;
12
- declare function SourcesTrigger({ children, className, count, ...props }: SourcesTriggerProps): React.JSX.Element;
13
- declare function SourcesContent({ className, ...props }: SourcesContentProps): React.JSX.Element;
14
- declare function Source({ children, className, href, title, ...props }: SourceProps): React.JSX.Element;
15
- export { Source, Sources, SourcesContent, SourcesTrigger };
16
- export type { SourceProps, SourcesContentProps, SourcesProps, SourcesTriggerProps };
@@ -1,17 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { BookOpenIcon, ChevronDownIcon, ExternalLinkIcon } from "lucide-react";
3
- import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@ciridae/ui/collapsible";
4
- import { cn } from "@ciridae/ui/utils";
5
- function Sources({ ...props }) {
6
- return _jsx(Collapsible, { "data-slot": "sources", ...props });
7
- }
8
- function SourcesTrigger({ children, className, count, ...props }) {
9
- return (_jsxs(CollapsibleTrigger, { "data-slot": "sources-trigger", className: cn("group flex w-full items-center justify-between gap-3 rounded-md border bg-card px-3 py-2 text-sm text-card-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:ring-[var(--focus-ring-width)] focus-visible:ring-ring focus-visible:outline-none", className), ...props, children: [_jsxs("span", { className: "flex min-w-0 items-center gap-2", children: [_jsx(BookOpenIcon, { "aria-hidden": "true", className: "size-4 shrink-0 text-muted-foreground" }), _jsx("span", { className: "truncate", children: children ?? `${count} sources` })] }), _jsx(ChevronDownIcon, { "aria-hidden": "true", className: "size-4 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-180" })] }));
10
- }
11
- function SourcesContent({ className, ...props }) {
12
- return (_jsx(CollapsibleContent, { "data-slot": "sources-content", className: cn("mt-2 grid gap-2 overflow-hidden data-[state=closed]:animate-out", className), ...props }));
13
- }
14
- function Source({ children, className, href, title, ...props }) {
15
- return (_jsxs("a", { "data-slot": "source", href: href, target: href ? "_blank" : undefined, rel: href ? "noreferrer" : undefined, className: cn("flex min-w-0 items-center gap-2 rounded-md border bg-background px-3 py-2 text-sm text-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:ring-[var(--focus-ring-width)] focus-visible:ring-ring focus-visible:outline-none", className), ...props, children: [_jsx("span", { className: "min-w-0 flex-1 truncate", children: children ?? title ?? href }), href ? (_jsx(ExternalLinkIcon, { "aria-hidden": "true", className: "size-3.5 shrink-0 text-muted-foreground" })) : null] }));
16
- }
17
- export { Source, Sources, SourcesContent, SourcesTrigger };
@@ -1,24 +0,0 @@
1
- import type * as React from "react";
2
- import type { AgenticSpeechStatus } from "@ciridae/ui/types";
3
- import { Button } from "@ciridae/ui/button";
4
- type SpeechInputProps = React.ComponentProps<"div"> & {
5
- disabled?: boolean;
6
- onStart?: () => void;
7
- onStop?: () => void;
8
- status?: AgenticSpeechStatus;
9
- };
10
- type SpeechInputButtonProps = React.ComponentProps<typeof Button> & {
11
- status?: AgenticSpeechStatus;
12
- };
13
- type SpeechInputStatusProps = React.ComponentProps<"p"> & {
14
- status?: AgenticSpeechStatus;
15
- };
16
- type SpeechInputWaveformProps = React.ComponentProps<"div"> & {
17
- active?: boolean;
18
- };
19
- declare function SpeechInput({ children, className, disabled, onStart, onStop, status, ...props }: SpeechInputProps): React.JSX.Element;
20
- declare function SpeechInputButton({ children, className, status, type, ...props }: SpeechInputButtonProps): React.JSX.Element;
21
- declare function SpeechInputStatus({ className, status, ...props }: SpeechInputStatusProps): React.JSX.Element;
22
- declare function SpeechInputWaveform({ active, className, ...props }: SpeechInputWaveformProps): React.JSX.Element;
23
- export { SpeechInput, SpeechInputButton, SpeechInputStatus, SpeechInputWaveform };
24
- export type { SpeechInputButtonProps, SpeechInputProps, SpeechInputStatusProps, SpeechInputWaveformProps, };
@@ -1,30 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { AudioLinesIcon, MicIcon, SquareIcon } from "lucide-react";
3
- import { Button } from "@ciridae/ui/button";
4
- import { cn } from "@ciridae/ui/utils";
5
- function SpeechInput({ children, className, disabled, onStart, onStop, status = "idle", ...props }) {
6
- const active = status === "listening" || status === "processing" || status === "speaking";
7
- return (_jsx("div", { "data-slot": "speech-input", "data-status": status, className: cn("flex min-w-0 items-center gap-3 rounded-lg border bg-card p-3", "data-[status=error]:border-destructive/40 data-[status=error]:bg-destructive/5", className), ...props, children: children ?? (_jsxs(_Fragment, { children: [_jsx(SpeechInputButton, { disabled: disabled, onClick: active ? onStop : onStart, status: status }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsx(SpeechInputStatus, { status: status }), _jsx(SpeechInputWaveform, { active: active })] })] })) }));
8
- }
9
- function SpeechInputButton({ children, className, status = "idle", type = "button", ...props }) {
10
- const active = status === "listening" || status === "processing" || status === "speaking";
11
- const Icon = active ? SquareIcon : MicIcon;
12
- return (_jsx(Button, { "aria-label": active ? "Stop speech input" : "Start speech input", "data-slot": "speech-input-button", size: "icon", type: type, variant: active ? "default" : "outline", className: cn("size-10 shrink-0 rounded-full", className), ...props, children: children ?? _jsx(Icon, { "aria-hidden": "true", className: "size-4" }) }));
13
- }
14
- function SpeechInputStatus({ className, status = "idle", ...props }) {
15
- return (_jsx("p", { "data-slot": "speech-input-status", className: cn("truncate text-sm font-medium", className), ...props, children: getSpeechInputLabel(status) }));
16
- }
17
- function SpeechInputWaveform({ active, className, ...props }) {
18
- return (_jsxs("div", { "aria-hidden": "true", "data-active": active ? "true" : undefined, "data-slot": "speech-input-waveform", className: cn("mt-2 flex h-4 items-center gap-1", className), ...props, children: [[0.3, 0.55, 0.85, 0.45, 0.7, 0.4, 0.6].map((scale, index) => (_jsx("span", { className: "h-full w-1 rounded-full bg-muted-foreground/30 data-[active=true]:bg-primary/70", "data-active": active ? "true" : undefined, style: { transform: `scaleY(${active ? scale : 0.28})` } }, index))), _jsx(AudioLinesIcon, { className: "ml-1 size-3.5 text-muted-foreground" })] }));
19
- }
20
- function getSpeechInputLabel(status) {
21
- const labels = {
22
- error: "Voice input needs attention",
23
- idle: "Ready for voice input",
24
- listening: "Listening",
25
- processing: "Processing speech",
26
- speaking: "Speaking response",
27
- };
28
- return labels[status];
29
- }
30
- export { SpeechInput, SpeechInputButton, SpeechInputStatus, SpeechInputWaveform };
@@ -1,27 +0,0 @@
1
- import type * as React from "react";
2
- import { Button } from "@ciridae/ui/button";
3
- import { Collapsible, CollapsibleContent } from "@ciridae/ui/collapsible";
4
- type StackTraceProps = React.ComponentProps<typeof Collapsible> & {
5
- stack: string;
6
- };
7
- type StackTraceHeaderProps = React.ComponentProps<"div">;
8
- type StackTraceErrorProps = React.ComponentProps<"div">;
9
- type StackTraceErrorTypeProps = React.ComponentProps<"span">;
10
- type StackTraceErrorMessageProps = React.ComponentProps<"span">;
11
- type StackTraceActionsProps = React.ComponentProps<"div">;
12
- type StackTraceCopyButtonProps = React.ComponentProps<typeof Button>;
13
- type StackTraceExpandButtonProps = React.ComponentProps<typeof Button>;
14
- type StackTraceContentProps = React.ComponentProps<typeof CollapsibleContent>;
15
- type StackTraceFramesProps = React.ComponentProps<"div">;
16
- declare function StackTrace({ children, className, defaultOpen, stack, ...props }: StackTraceProps): React.JSX.Element;
17
- declare function StackTraceHeader({ children, className, ...props }: StackTraceHeaderProps): React.JSX.Element;
18
- declare function StackTraceError({ className, ...props }: StackTraceErrorProps): React.JSX.Element;
19
- declare function StackTraceErrorType({ className, ...props }: StackTraceErrorTypeProps): React.JSX.Element;
20
- declare function StackTraceErrorMessage({ className, ...props }: StackTraceErrorMessageProps): React.JSX.Element;
21
- declare function StackTraceActions({ className, ...props }: StackTraceActionsProps): React.JSX.Element;
22
- declare function StackTraceCopyButton({ children, ...props }: StackTraceCopyButtonProps): React.JSX.Element;
23
- declare function StackTraceExpandButton({ children, className, ...props }: StackTraceExpandButtonProps): React.JSX.Element;
24
- declare function StackTraceContent({ className, ...props }: StackTraceContentProps): React.JSX.Element;
25
- declare function StackTraceFrames({ className, ...props }: StackTraceFramesProps): React.JSX.Element;
26
- export { StackTrace, StackTraceActions, StackTraceContent, StackTraceCopyButton, StackTraceError, StackTraceErrorMessage, StackTraceErrorType, StackTraceExpandButton, StackTraceFrames, StackTraceHeader, };
27
- export type { StackTraceActionsProps, StackTraceContentProps, StackTraceCopyButtonProps, StackTraceErrorMessageProps, StackTraceErrorProps, StackTraceErrorTypeProps, StackTraceExpandButtonProps, StackTraceFramesProps, StackTraceHeaderProps, StackTraceProps, };
@@ -1,76 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { CheckIcon, ChevronDownIcon, CopyIcon } from "lucide-react";
3
- import { createContext, useContext, useMemo, useState } from "react";
4
- import { Button } from "@ciridae/ui/button";
5
- import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@ciridae/ui/collapsible";
6
- import { cn } from "@ciridae/ui/utils";
7
- import { copyToClipboard } from "./clipboard";
8
- const StackTraceContext = createContext(null);
9
- function useStackTrace() {
10
- const context = useContext(StackTraceContext);
11
- if (!context)
12
- throw new Error("StackTrace components must be used within StackTrace");
13
- return context;
14
- }
15
- function StackTrace({ children, className, defaultOpen = true, stack, ...props }) {
16
- const frames = useMemo(() => parseStackFrames(stack), [stack]);
17
- const contextValue = useMemo(() => ({ frames, stack }), [frames, stack]);
18
- return (_jsx(StackTraceContext.Provider, { value: contextValue, children: _jsx(Collapsible, { "data-slot": "stack-trace", className: cn("w-full overflow-hidden rounded-lg border bg-card text-card-foreground", className), defaultOpen: defaultOpen, ...props, children: children }) }));
19
- }
20
- function StackTraceHeader({ children, className, ...props }) {
21
- return (_jsx("div", { "data-slot": "stack-trace-header", className: cn("flex w-full items-center justify-between gap-3 border-b px-3 py-2 text-left", className), ...props, children: children }));
22
- }
23
- function StackTraceError({ className, ...props }) {
24
- return (_jsx("div", { "data-slot": "stack-trace-error", className: cn("min-w-0 flex-1 truncate text-sm", className), ...props }));
25
- }
26
- function StackTraceErrorType({ className, ...props }) {
27
- return (_jsx("span", { "data-slot": "stack-trace-error-type", className: cn("font-medium text-destructive", className), ...props }));
28
- }
29
- function StackTraceErrorMessage({ className, ...props }) {
30
- return (_jsx("span", { "data-slot": "stack-trace-error-message", className: cn("text-muted-foreground", className), ...props }));
31
- }
32
- function StackTraceActions({ className, ...props }) {
33
- return (_jsx("div", { "data-slot": "stack-trace-actions", className: cn("flex shrink-0 items-center gap-1", className), ...props }));
34
- }
35
- function StackTraceCopyButton({ children, ...props }) {
36
- const { stack } = useStackTrace();
37
- const [copied, setCopied] = useState(false);
38
- const Icon = copied ? CheckIcon : CopyIcon;
39
- return (_jsx(Button, { "aria-label": copied ? "Copied" : "Copy stack trace", size: "icon", type: "button", variant: "ghost", ...props, onClick: (event) => {
40
- props.onClick?.(event);
41
- if (!event.defaultPrevented)
42
- void copyToClipboard(stack, setCopied);
43
- }, children: children ?? _jsx(Icon, { "aria-hidden": "true", className: "size-4" }) }));
44
- }
45
- function StackTraceExpandButton({ children, className, ...props }) {
46
- return (_jsx(CollapsibleTrigger, { asChild: true, children: _jsx(Button, { "aria-label": "Toggle stack trace", "data-slot": "stack-trace-expand-button", size: "icon", type: "button", variant: "ghost", ...props, className: cn("group/stack-trace-toggle shrink-0", className), children: children ?? (_jsx(ChevronDownIcon, { "aria-hidden": "true", className: "size-4 transition-transform group-data-[state=open]/stack-trace-toggle:rotate-180" })) }) }));
47
- }
48
- function StackTraceContent({ className, ...props }) {
49
- return (_jsx(CollapsibleContent, { "data-slot": "stack-trace-content", className: cn("p-3", className), ...props }));
50
- }
51
- function StackTraceFrames({ className, ...props }) {
52
- const { frames } = useStackTrace();
53
- return (_jsx("div", { "data-slot": "stack-trace-frames", className: cn("grid gap-1 font-mono text-xs", className), ...props, children: frames.map((frame) => (_jsx(StackTraceFrame, { frame: frame }, `${frame.file}:${frame.line}:${frame.column}:${frame.method}`))) }));
54
- }
55
- function StackTraceFrame({ frame }) {
56
- return (_jsxs("div", { className: "grid min-w-0 grid-cols-[1fr_auto] gap-3 rounded-md px-2 py-1 text-muted-foreground hover:bg-muted/50", children: [_jsx("span", { className: "truncate", children: frame.method ?? frame.file }), _jsx("span", { className: "shrink-0 text-foreground", children: formatLocation(frame) })] }));
57
- }
58
- function parseStackFrames(stack) {
59
- return stack
60
- .split("\n")
61
- .map(parseStackLine)
62
- .filter((frame) => frame !== null);
63
- }
64
- function parseStackLine(line) {
65
- const trimmed = line.trim().replace(/^at\s+/, "");
66
- const match = /^(?:(.+?)\s+\()?(.+):(\d+):(\d+)\)?$/.exec(trimmed);
67
- if (!match)
68
- return null;
69
- return { column: match[4], file: match[2], line: match[3], method: match[1] };
70
- }
71
- function formatLocation(frame) {
72
- if (!frame.line)
73
- return frame.file;
74
- return `${frame.file}:${frame.line}${frame.column ? `:${frame.column}` : ""}`;
75
- }
76
- export { StackTrace, StackTraceActions, StackTraceContent, StackTraceCopyButton, StackTraceError, StackTraceErrorMessage, StackTraceErrorType, StackTraceExpandButton, StackTraceFrames, StackTraceHeader, };
@@ -1,12 +0,0 @@
1
- import type * as React from "react";
2
- import { Button } from "@ciridae/ui/button";
3
- import { ScrollArea } from "@ciridae/ui/scroll-area";
4
- type SuggestionsProps = React.ComponentProps<typeof ScrollArea>;
5
- type SuggestionProps = Omit<React.ComponentProps<typeof Button>, "onClick"> & {
6
- onClick?: (suggestion: string) => void;
7
- suggestion: string;
8
- };
9
- declare function Suggestions({ children, className, ...props }: SuggestionsProps): React.JSX.Element;
10
- declare function Suggestion({ children, className, onClick, size, suggestion, type, variant, ...props }: SuggestionProps): React.JSX.Element;
11
- export { Suggestion, Suggestions };
12
- export type { SuggestionProps, SuggestionsProps };
@@ -1,15 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useCallback } from "react";
3
- import { Button } from "@ciridae/ui/button";
4
- import { ScrollArea } from "@ciridae/ui/scroll-area";
5
- import { cn } from "@ciridae/ui/utils";
6
- function Suggestions({ children, className, ...props }) {
7
- return (_jsx(ScrollArea, { "data-slot": "suggestions", scrollbars: "horizontal", className: cn("w-full overflow-hidden whitespace-nowrap", className), ...props, children: _jsx("div", { className: "flex w-max min-w-full flex-nowrap items-center gap-2 px-1 py-1 pb-3", children: children }) }));
8
- }
9
- function Suggestion({ children, className, onClick, size = "sm", suggestion, type = "button", variant = "outline", ...props }) {
10
- const handleClick = useCallback(() => {
11
- onClick?.(suggestion);
12
- }, [onClick, suggestion]);
13
- return (_jsx(Button, { "data-slot": "suggestion", className: cn("max-w-80 shrink-0 justify-start truncate rounded-full", className), onClick: handleClick, size: size, type: type, variant: variant, ...props, children: _jsx("span", { className: "truncate", children: children ?? suggestion }) }));
14
- }
15
- export { Suggestion, Suggestions };
@@ -1,24 +0,0 @@
1
- import type * as React from "react";
2
- import { Button } from "@ciridae/ui/button";
3
- type TerminalProps = React.ComponentProps<"div"> & {
4
- output?: string;
5
- };
6
- type TerminalHeaderProps = React.ComponentProps<"div">;
7
- type TerminalTitleProps = React.ComponentProps<"div">;
8
- type TerminalStatusProps = React.ComponentProps<"div"> & {
9
- status?: "idle" | "running" | "success" | "error";
10
- };
11
- type TerminalActionsProps = React.ComponentProps<"div">;
12
- type TerminalCopyButtonProps = React.ComponentProps<typeof Button>;
13
- type TerminalClearButtonProps = React.ComponentProps<typeof Button>;
14
- type TerminalContentProps = React.ComponentProps<"pre">;
15
- declare function Terminal({ children, className, output, ...props }: TerminalProps): React.JSX.Element;
16
- declare function TerminalHeader({ className, ...props }: TerminalHeaderProps): React.JSX.Element;
17
- declare function TerminalTitle({ className, ...props }: TerminalTitleProps): React.JSX.Element;
18
- declare function TerminalStatus({ className, status, ...props }: TerminalStatusProps): React.JSX.Element;
19
- declare function TerminalActions({ className, ...props }: TerminalActionsProps): React.JSX.Element;
20
- declare function TerminalCopyButton({ children, ...props }: TerminalCopyButtonProps): React.JSX.Element;
21
- declare function TerminalClearButton({ children, ...props }: TerminalClearButtonProps): React.JSX.Element;
22
- declare function TerminalContent({ children, className, ...props }: TerminalContentProps): React.JSX.Element;
23
- export { Terminal, TerminalActions, TerminalClearButton, TerminalContent, TerminalCopyButton, TerminalHeader, TerminalStatus, TerminalTitle, };
24
- export type { TerminalActionsProps, TerminalClearButtonProps, TerminalContentProps, TerminalCopyButtonProps, TerminalHeaderProps, TerminalProps, TerminalStatusProps, TerminalTitleProps, };
@@ -1,47 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { CheckIcon, CopyIcon, SquareIcon, XIcon } from "lucide-react";
3
- import { createContext, useContext, useMemo, useState } from "react";
4
- import { Button } from "@ciridae/ui/button";
5
- import { cn } from "@ciridae/ui/utils";
6
- import { copyToClipboard } from "./clipboard";
7
- const TerminalContext = createContext({ output: "" });
8
- const statusLabel = { error: "error", idle: "idle", running: "running", success: "success" };
9
- const statusClass = {
10
- error: "text-destructive",
11
- idle: "text-muted-foreground",
12
- running: "text-foreground",
13
- success: "text-foreground",
14
- };
15
- function Terminal({ children, className, output = "", ...props }) {
16
- const contextValue = useMemo(() => ({ output }), [output]);
17
- return (_jsx(TerminalContext.Provider, { value: contextValue, children: _jsx("div", { "data-slot": "terminal", className: cn("w-full overflow-hidden rounded-lg border bg-card text-card-foreground", className), ...props, children: children ?? _jsx(TerminalContent, { children: output }) }) }));
18
- }
19
- function TerminalHeader({ className, ...props }) {
20
- return (_jsx("div", { "data-slot": "terminal-header", className: cn("flex min-w-0 items-center justify-between gap-3 border-b px-3 py-2", className), ...props }));
21
- }
22
- function TerminalTitle({ className, ...props }) {
23
- return (_jsx("div", { "data-slot": "terminal-title", className: cn("truncate text-sm font-medium", className), ...props }));
24
- }
25
- function TerminalStatus({ className, status = "idle", ...props }) {
26
- return (_jsxs("div", { "data-slot": "terminal-status", className: cn("flex items-center gap-1 text-xs", statusClass[status], className), ...props, children: [_jsx(SquareIcon, { "aria-hidden": "true", className: "size-2 fill-current" }), _jsx("span", { children: statusLabel[status] })] }));
27
- }
28
- function TerminalActions({ className, ...props }) {
29
- return (_jsx("div", { "data-slot": "terminal-actions", className: cn("flex shrink-0 items-center gap-1", className), ...props }));
30
- }
31
- function TerminalCopyButton({ children, ...props }) {
32
- const { output } = useContext(TerminalContext);
33
- const [copied, setCopied] = useState(false);
34
- const Icon = copied ? CheckIcon : CopyIcon;
35
- return (_jsx(Button, { "aria-label": copied ? "Copied" : "Copy terminal output", size: "icon", type: "button", variant: "ghost", ...props, onClick: (event) => {
36
- props.onClick?.(event);
37
- if (!event.defaultPrevented)
38
- void copyToClipboard(output, setCopied);
39
- }, children: children ?? _jsx(Icon, { "aria-hidden": "true", className: "size-4" }) }));
40
- }
41
- function TerminalClearButton({ children, ...props }) {
42
- return (_jsx(Button, { "aria-label": "Clear terminal", size: "icon", type: "button", variant: "ghost", ...props, children: children ?? _jsx(XIcon, { "aria-hidden": "true", className: "size-4" }) }));
43
- }
44
- function TerminalContent({ children, className, ...props }) {
45
- return (_jsx("pre", { "data-slot": "terminal-content", className: cn("max-h-96 overflow-auto bg-muted/30 p-4 font-mono text-sm leading-6", className), ...props, children: children }));
46
- }
47
- export { Terminal, TerminalActions, TerminalClearButton, TerminalContent, TerminalCopyButton, TerminalHeader, TerminalStatus, TerminalTitle, };
@@ -1,51 +0,0 @@
1
- import type * as React from "react";
2
- import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@ciridae/ui/collapsible";
3
- import { Progress } from "@ciridae/ui/progress";
4
- type TestStatusValue = "failed" | "passed" | "running" | "skipped";
5
- type TestResultsContextValue = {
6
- failed?: number;
7
- passed?: number;
8
- running?: number;
9
- skipped?: number;
10
- total?: number;
11
- };
12
- type TestResultsProps = React.ComponentProps<"div"> & TestResultsContextValue;
13
- type TestResultsHeaderProps = React.ComponentProps<"div">;
14
- type TestResultsDurationProps = React.ComponentProps<"span">;
15
- type TestResultsSummaryProps = React.ComponentProps<"div">;
16
- type TestResultsProgressProps = React.ComponentProps<typeof Progress>;
17
- type TestResultsContentProps = React.ComponentProps<"div">;
18
- type TestSuiteProps = React.ComponentProps<typeof Collapsible> & {
19
- status?: TestStatusValue;
20
- };
21
- type TestSuiteNameProps = React.ComponentProps<typeof CollapsibleTrigger>;
22
- type TestSuiteStatsProps = React.ComponentProps<"div">;
23
- type TestSuiteContentProps = React.ComponentProps<typeof CollapsibleContent>;
24
- type TestProps = React.ComponentProps<"div"> & {
25
- status?: TestStatusValue;
26
- };
27
- type TestNameProps = React.ComponentProps<"span">;
28
- type TestDurationProps = React.ComponentProps<"span">;
29
- type TestStatusProps = React.ComponentProps<"span">;
30
- type TestErrorProps = React.ComponentProps<"div">;
31
- type TestErrorMessageProps = React.ComponentProps<"p">;
32
- type TestErrorStackProps = React.ComponentProps<"pre">;
33
- declare function TestResults({ children, className, failed, passed, running, skipped, total, ...props }: TestResultsProps): React.JSX.Element;
34
- declare function TestResultsHeader({ className, ...props }: TestResultsHeaderProps): React.JSX.Element;
35
- declare function TestResultsDuration({ className, ...props }: TestResultsDurationProps): React.JSX.Element;
36
- declare function TestResultsSummary({ className, ...props }: TestResultsSummaryProps): React.JSX.Element;
37
- declare function TestResultsProgress(props: TestResultsProgressProps): React.JSX.Element;
38
- declare function TestResultsContent({ className, ...props }: TestResultsContentProps): React.JSX.Element;
39
- declare function TestSuite({ children, className, defaultOpen, status, ...props }: TestSuiteProps): React.JSX.Element;
40
- declare function TestSuiteName({ className, ...props }: TestSuiteNameProps): React.JSX.Element;
41
- declare function TestSuiteStats({ className, ...props }: TestSuiteStatsProps): React.JSX.Element;
42
- declare function TestSuiteContent({ className, ...props }: TestSuiteContentProps): React.JSX.Element;
43
- declare function Test({ children, className, status, ...props }: TestProps): React.JSX.Element;
44
- declare function TestName({ className, ...props }: TestNameProps): React.JSX.Element;
45
- declare function TestDuration({ className, ...props }: TestDurationProps): React.JSX.Element;
46
- declare function TestStatus({ className, ...props }: TestStatusProps): React.JSX.Element;
47
- declare function TestError({ className, ...props }: TestErrorProps): React.JSX.Element;
48
- declare function TestErrorMessage({ className, ...props }: TestErrorMessageProps): React.JSX.Element;
49
- declare function TestErrorStack({ className, ...props }: TestErrorStackProps): React.JSX.Element;
50
- export { Test, TestDuration, TestError, TestErrorMessage, TestErrorStack, TestName, TestResults, TestResultsContent, TestResultsDuration, TestResultsHeader, TestResultsProgress, TestResultsSummary, TestStatus, TestSuite, TestSuiteContent, TestSuiteName, TestSuiteStats, };
51
- export type { TestDurationProps, TestErrorMessageProps, TestErrorProps, TestErrorStackProps, TestNameProps, TestProps, TestResultsContentProps, TestResultsDurationProps, TestResultsHeaderProps, TestResultsProgressProps, TestResultsProps, TestResultsSummaryProps, TestStatusProps, TestStatusValue, TestSuiteContentProps, TestSuiteNameProps, TestSuiteProps, TestSuiteStatsProps, };