@mastra/playground-ui 5.0.0-alpha.7 → 5.0.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.
- package/dist/ds/components/Avatar/Avatar.d.ts +5 -0
- package/dist/ds/components/Avatar/index.d.ts +1 -0
- package/dist/ds/components/Button/Button.d.ts +3 -2
- package/dist/ds/components/EmptyState/EmptyState.d.ts +10 -0
- package/dist/ds/components/EmptyState/index.d.ts +1 -0
- package/dist/ds/components/Header/Header.d.ts +2 -1
- package/dist/ds/components/TraceTree/Span.d.ts +12 -0
- package/dist/ds/components/TraceTree/Spans.d.ts +6 -0
- package/dist/ds/components/TraceTree/Time.d.ts +7 -0
- package/dist/ds/components/TraceTree/Trace.context.d.ts +9 -0
- package/dist/ds/components/TraceTree/Trace.d.ts +10 -0
- package/dist/ds/components/TraceTree/TraceTree.d.ts +6 -0
- package/dist/ds/components/TraceTree/index.d.ts +1 -0
- package/dist/ds/components/Txt/Txt.d.ts +3 -2
- package/dist/ds/icons/AgentCoinIcon.d.ts +3 -0
- package/dist/ds/icons/ChevronIcon.d.ts +3 -0
- package/dist/ds/icons/EvaluatorCoinIcon.d.ts +3 -0
- package/dist/ds/icons/GithubCoinIcon.d.ts +3 -0
- package/dist/ds/icons/GithubIcon.d.ts +3 -0
- package/dist/ds/icons/GoogleIcon.d.ts +3 -0
- package/dist/ds/icons/{SpanIcon.d.ts → RepoIcon.d.ts} +1 -1
- package/dist/ds/icons/WorkflowCoinIcon.d.ts +3 -0
- package/dist/ds/icons/index.d.ts +8 -0
- package/dist/ds/tokens/sizes.d.ts +3 -1
- package/dist/index.cjs.js +279 -36
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +272 -37
- package/dist/index.es.js.map +1 -1
- package/dist/tokens.cjs.js +4 -2
- package/dist/tokens.cjs.js.map +1 -1
- package/dist/tokens.es.js +4 -2
- package/dist/tokens.es.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Avatar';
|
|
@@ -4,8 +4,9 @@ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
4
4
|
as?: React.ElementType;
|
|
5
5
|
className?: string;
|
|
6
6
|
href?: string;
|
|
7
|
-
to?: string;
|
|
8
7
|
prefetch?: boolean | null;
|
|
9
8
|
children: React.ReactNode;
|
|
9
|
+
size?: 'md' | 'lg';
|
|
10
|
+
variant?: 'default' | 'light';
|
|
10
11
|
}
|
|
11
|
-
export declare const Button: ({ className, as, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const Button: ({ className, as, size, variant, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ElementType, ReactNode } from '../../../../node_modules/@types/react';
|
|
2
|
+
|
|
3
|
+
export interface EmptyStateProps {
|
|
4
|
+
as?: ElementType;
|
|
5
|
+
iconSlot: ReactNode;
|
|
6
|
+
titleSlot: ReactNode;
|
|
7
|
+
descriptionSlot: ReactNode;
|
|
8
|
+
actionSlot: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare const EmptyState: ({ iconSlot, titleSlot, descriptionSlot, actionSlot, as: Component, }: EmptyStateProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './EmptyState';
|
|
@@ -2,8 +2,9 @@ import { default as React } from '../../../../node_modules/@types/react';
|
|
|
2
2
|
|
|
3
3
|
export interface HeaderProps {
|
|
4
4
|
children?: React.ReactNode;
|
|
5
|
+
border?: boolean;
|
|
5
6
|
}
|
|
6
|
-
export declare const Header: ({ children }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const Header: ({ children, border }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export declare const HeaderTitle: ({ children }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export declare const HeaderAction: ({ children }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export declare const HeaderGroup: ({ children }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from '../../../../node_modules/@types/react';
|
|
2
|
+
|
|
3
|
+
export interface SpanProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
durationMs: number;
|
|
6
|
+
variant: 'tool' | 'agent' | 'workflow' | 'memory' | 'rag' | 'storage' | 'eval' | 'other';
|
|
7
|
+
tokenCount?: number;
|
|
8
|
+
spans?: React.ReactNode;
|
|
9
|
+
isRoot?: boolean;
|
|
10
|
+
onClick?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const Span: ({ children, durationMs, variant, tokenCount, spans, isRoot, onClick }: SpanProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from '../../../../node_modules/@types/react';
|
|
2
|
+
|
|
3
|
+
export declare const TraceDurationContext: React.Context<number>;
|
|
4
|
+
export declare const useTraceDuration: () => number;
|
|
5
|
+
export interface TraceDurationProviderProps {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
durationMs: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const TraceDurationProvider: ({ children, durationMs }: TraceDurationProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from '../../../../node_modules/@types/react';
|
|
2
|
+
|
|
3
|
+
export interface TraceProps {
|
|
4
|
+
name: string;
|
|
5
|
+
spans: React.ReactNode;
|
|
6
|
+
durationMs: number;
|
|
7
|
+
tokenCount?: number;
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const Trace: ({ name, spans, durationMs, tokenCount, onClick }: TraceProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TraceTree';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { default as React } from '../../../../node_modules/@types/react';
|
|
2
2
|
import { FontSizes } from '../../tokens';
|
|
3
3
|
|
|
4
|
-
export interface TxtProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
|
|
4
|
+
export interface TxtProps extends React.HTMLAttributes<HTMLDivElement | HTMLLabelElement> {
|
|
5
|
+
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'label';
|
|
6
6
|
variant?: keyof typeof FontSizes;
|
|
7
7
|
font?: 'mono';
|
|
8
|
+
htmlFor?: string;
|
|
8
9
|
}
|
|
9
10
|
export declare const Txt: ({ as: Root, className, variant, font, ...props }: TxtProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { default as React } from '../../../node_modules/@types/react';
|
|
2
2
|
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const RepoIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
package/dist/ds/icons/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export * from './AgentIcon';
|
|
2
|
+
export * from './AgentCoinIcon';
|
|
2
3
|
export * from './AiIcon';
|
|
3
4
|
export * from './ApiIcon';
|
|
4
5
|
export * from './BranchIcon';
|
|
5
6
|
export * from './CheckIcon';
|
|
7
|
+
export * from './ChevronIcon';
|
|
6
8
|
export * from './CommitIcon';
|
|
7
9
|
export * from './CrossIcon';
|
|
8
10
|
export * from './DbIcon';
|
|
@@ -11,7 +13,12 @@ export * from './DeploymentIcon';
|
|
|
11
13
|
export * from './DividerIcon';
|
|
12
14
|
export * from './DocsIcon';
|
|
13
15
|
export * from './EnvIcon';
|
|
16
|
+
export * from './EvaluatorCoinIcon';
|
|
14
17
|
export * from './FiltersIcon';
|
|
18
|
+
export * from './GithubCoinIcon';
|
|
19
|
+
export * from './GithubIcon';
|
|
20
|
+
export * from './GoogleIcon';
|
|
21
|
+
export * from './RepoIcon';
|
|
15
22
|
export * from './HomeIcon';
|
|
16
23
|
export * from './Icon';
|
|
17
24
|
export * from './InfoIcon';
|
|
@@ -28,3 +35,4 @@ export * from './TraceIcon';
|
|
|
28
35
|
export * from './TsIcon';
|
|
29
36
|
export * from './VariablesIcon';
|
|
30
37
|
export * from './WorkflowIcon';
|
|
38
|
+
export * from './WorkflowCoinIcon';
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export declare const Sizes: {
|
|
2
2
|
'icon-default': string;
|
|
3
3
|
'icon-lg': string;
|
|
4
|
-
'button-
|
|
4
|
+
'button-md': string;
|
|
5
|
+
'button-lg': string;
|
|
5
6
|
'header-default': string;
|
|
6
7
|
'table-header': string;
|
|
7
8
|
'table-row': string;
|
|
8
9
|
'table-row-small': string;
|
|
9
10
|
'badge-default': string;
|
|
11
|
+
'avatar-default': string;
|
|
10
12
|
};
|