@mastra/playground-ui 6.4.1 → 6.5.0-alpha.1
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/CHANGELOG.md +57 -0
- package/dist/index.cjs.js +1869 -1918
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1844 -1902
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/assistant-ui/messages/assistant-message.d.ts +1 -3
- package/dist/src/components/assistant-ui/thread.d.ts +1 -3
- package/dist/src/components/assistant-ui/tools/badges/agent-badge.d.ts +5 -8
- package/dist/src/components/assistant-ui/tools/badges/badge-wrapper.d.ts +2 -1
- package/dist/src/components/assistant-ui/tools/badges/tool-badge.d.ts +3 -5
- package/dist/src/components/assistant-ui/tools/badges/workflow-badge.d.ts +3 -5
- package/dist/src/components/assistant-ui/tools/tool-fallback.d.ts +6 -2
- package/dist/src/components/ui/containers/buttons-group.d.ts +6 -0
- package/dist/src/components/ui/containers/index.d.ts +2 -0
- package/dist/src/components/ui/containers/sections.d.ts +6 -0
- package/dist/src/components/ui/elements/entry-list/entry-list-entries-skeleton.d.ts +6 -0
- package/dist/src/components/ui/elements/entry-list/entry-list-entries.d.ts +6 -0
- package/dist/src/components/ui/elements/entry-list/entry-list-entry-col.d.ts +7 -0
- package/dist/src/components/ui/elements/entry-list/entry-list-entry.d.ts +11 -0
- package/dist/src/components/ui/elements/entry-list/entry-list-header.d.ts +6 -0
- package/dist/src/components/ui/elements/entry-list/entry-list-message.d.ts +8 -0
- package/dist/src/components/ui/elements/entry-list/entry-list-next-page-loading.d.ts +9 -0
- package/dist/src/components/ui/elements/entry-list/entry-list-pagination.d.ts +8 -0
- package/dist/src/components/ui/elements/entry-list/entry-list-root.d.ts +6 -0
- package/dist/src/components/ui/elements/entry-list/entry-list-skeleton.d.ts +2 -0
- package/dist/src/components/ui/elements/entry-list/entry-list-trim.d.ts +6 -0
- package/dist/src/components/ui/elements/entry-list/entry-list.d.ts +20 -18
- package/dist/src/components/ui/elements/entry-list/helpers.d.ts +10 -0
- package/dist/src/components/ui/elements/entry-list/index.d.ts +3 -4
- package/dist/src/components/ui/elements/entry-list/shared.d.ts +1 -5
- package/dist/src/components/ui/elements/entry-list/types.d.ts +5 -0
- package/dist/src/components/ui/elements/headers/page-header.d.ts +2 -2
- package/dist/src/components/ui/elements/index.d.ts +3 -0
- package/dist/src/components/ui/elements/main-sidebar/index.d.ts +1 -0
- package/dist/src/components/ui/elements/main-sidebar/main-sidebar-bottom.d.ts +6 -0
- package/dist/src/components/ui/elements/main-sidebar/main-sidebar-context.d.ts +12 -0
- package/dist/src/components/ui/elements/main-sidebar/main-sidebar-nav-header.d.ts +8 -0
- package/dist/src/components/ui/elements/main-sidebar/main-sidebar-nav-link.d.ts +17 -0
- package/dist/src/components/ui/elements/main-sidebar/main-sidebar-nav-list.d.ts +12 -0
- package/dist/src/components/ui/elements/main-sidebar/main-sidebar-nav-section.d.ts +13 -0
- package/dist/src/components/ui/elements/main-sidebar/main-sidebar-nav-separator.d.ts +5 -0
- package/dist/src/components/ui/elements/main-sidebar/main-sidebar-nav.d.ts +6 -0
- package/dist/src/components/ui/elements/main-sidebar/main-sidebar-root.d.ts +6 -0
- package/dist/src/components/ui/elements/main-sidebar/main-sidebar.d.ts +21 -0
- package/dist/src/components/ui/elements/notification/index.d.ts +1 -0
- package/dist/src/components/ui/elements/notification/notification.d.ts +9 -0
- package/dist/src/components/ui/elements/section/index.d.ts +1 -0
- package/dist/src/components/ui/elements/section/section-header.d.ts +7 -0
- package/dist/src/components/ui/elements/section/section-heading.d.ts +8 -0
- package/dist/src/components/ui/elements/section/section-root.d.ts +5 -0
- package/dist/src/components/ui/elements/section/section.d.ts +8 -0
- package/dist/src/components/ui/elements/side-dialog/index.d.ts +0 -6
- package/dist/src/components/ui/elements/side-dialog/side-dialog-code-section.d.ts +3 -1
- package/dist/src/components/ui/elements/side-dialog/side-dialog-content.d.ts +1 -14
- package/dist/src/components/ui/elements/side-dialog/side-dialog-nav.d.ts +6 -0
- package/dist/src/components/ui/elements/side-dialog/side-dialog-root.d.ts +11 -0
- package/dist/src/components/ui/elements/side-dialog/side-dialog-top.d.ts +2 -4
- package/dist/src/components/ui/elements/side-dialog/side-dialog.d.ts +16 -12
- package/dist/src/components/ui/elements/tabs/tabs-content.d.ts +7 -0
- package/dist/src/components/ui/elements/tabs/tabs-list.d.ts +7 -0
- package/dist/src/components/ui/elements/tabs/tabs-root.d.ts +9 -0
- package/dist/src/components/ui/elements/tabs/tabs-tab.d.ts +8 -0
- package/dist/src/components/ui/elements/tabs/tabs.d.ts +20 -36
- package/dist/src/domains/agents/components/agent-chat.d.ts +1 -1
- package/dist/src/domains/agents/index.d.ts +1 -0
- package/dist/src/domains/agents/utils/__tests__/extractPrompt.test.d.ts +1 -0
- package/dist/src/domains/agents/utils/extractPrompt.d.ts +2 -0
- package/dist/src/domains/observability/components/index.d.ts +4 -0
- package/dist/src/domains/observability/components/span-details.d.ts +1 -2
- package/dist/src/domains/observability/components/span-dialog.d.ts +8 -2
- package/dist/src/domains/observability/components/span-score-list.d.ts +17 -0
- package/dist/src/domains/observability/components/span-scoring.d.ts +6 -0
- package/dist/src/domains/observability/components/span-tabs.d.ts +16 -0
- package/dist/src/domains/observability/components/trace-dialog.d.ts +4 -2
- package/dist/src/domains/observability/components/trace-timeline.d.ts +1 -4
- package/dist/src/domains/observability/components/traces-list.d.ts +22 -0
- package/dist/src/domains/scores/components/score-dialog.d.ts +5 -3
- package/dist/src/domains/scores/components/scores-list.d.ts +21 -0
- package/dist/src/domains/scores/hooks/use-trace-span-scores.d.ts +7 -0
- package/dist/src/domains/scores/hooks/use-trigger-scorer.d.ts +1 -1
- package/dist/src/domains/scores/index.d.ts +2 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/services/mastra-runtime-provider.d.ts +1 -1
- package/dist/src/types.d.ts +3 -1
- package/package.json +12 -10
- package/dist/src/components/ui/elements/entry-list/entry-list-cell.d.ts +0 -7
- package/dist/src/components/ui/elements/entry-list/entry-list-item.d.ts +0 -9
- package/dist/src/components/ui/elements/entry-list/entry-list-page-header.d.ts +0 -8
- package/dist/src/domains/scores/components/scorers-dropdown.d.ts +0 -8
- package/dist/src/services/agent-network-message.d.ts +0 -2
- package/dist/src/services/stream-chunk-message.d.ts +0 -32
- package/dist/src/services/vnext-message-provider.d.ts +0 -10
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { ToolCallMessagePartComponent } from '@assistant-ui/react';
|
|
2
1
|
export interface AssistantMessageProps {
|
|
3
|
-
ToolFallback?: ToolCallMessagePartComponent;
|
|
4
2
|
hasModelList?: boolean;
|
|
5
3
|
}
|
|
6
|
-
export declare const AssistantMessage: ({
|
|
4
|
+
export declare const AssistantMessage: ({ hasModelList }: AssistantMessageProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { ToolCallMessagePartComponent } from '@assistant-ui/react';
|
|
2
1
|
export interface ThreadProps {
|
|
3
|
-
ToolFallback?: ToolCallMessagePartComponent;
|
|
4
2
|
agentName?: string;
|
|
5
3
|
agentId?: string;
|
|
6
4
|
hasMemory?: boolean;
|
|
7
5
|
hasModelList?: boolean;
|
|
8
6
|
}
|
|
9
|
-
export declare const Thread: ({
|
|
7
|
+
export declare const Thread: ({ agentName, agentId, hasMemory, hasModelList }: ThreadProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
8
|
export interface ThreadWelcomeProps {
|
|
11
9
|
agentName?: string;
|
|
12
10
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MastraUIMessage } from '@mastra/react';
|
|
1
2
|
type TextMessage = {
|
|
2
3
|
type: 'text';
|
|
3
4
|
content: string;
|
|
@@ -5,20 +6,16 @@ type TextMessage = {
|
|
|
5
6
|
type ToolMessage = {
|
|
6
7
|
type: 'tool';
|
|
7
8
|
toolName: string;
|
|
8
|
-
toolInput?: any;
|
|
9
9
|
toolOutput?: any;
|
|
10
10
|
args?: any;
|
|
11
11
|
toolCallId: string;
|
|
12
12
|
result?: any;
|
|
13
13
|
};
|
|
14
|
-
export type
|
|
14
|
+
export type AgentMessage = TextMessage | ToolMessage;
|
|
15
15
|
export interface AgentBadgeProps {
|
|
16
16
|
agentId: string;
|
|
17
|
-
messages:
|
|
18
|
-
|
|
19
|
-
selectionReason?: string;
|
|
20
|
-
input?: string | Record<string, unknown>;
|
|
21
|
-
};
|
|
17
|
+
messages: AgentMessage[];
|
|
18
|
+
metadata?: MastraUIMessage['metadata'];
|
|
22
19
|
}
|
|
23
|
-
export declare const AgentBadge: ({ agentId, messages,
|
|
20
|
+
export declare const AgentBadge: ({ agentId, messages, metadata }: AgentBadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
21
|
export {};
|
|
@@ -5,5 +5,6 @@ export interface BadgeWrapperProps {
|
|
|
5
5
|
icon?: React.ReactNode;
|
|
6
6
|
collapsible?: boolean;
|
|
7
7
|
extraInfo?: React.ReactNode;
|
|
8
|
+
'data-testid'?: string;
|
|
8
9
|
}
|
|
9
|
-
export declare const BadgeWrapper: ({ children, initialCollapsed, icon, title, collapsible, extraInfo, }: BadgeWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const BadgeWrapper: ({ children, initialCollapsed, icon, title, collapsible, extraInfo, "data-testid": dataTestId, }: BadgeWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { MastraUIMessage } from '@mastra/react';
|
|
1
2
|
export interface ToolBadgeProps {
|
|
2
3
|
toolName: string;
|
|
3
4
|
args: Record<string, unknown> | string;
|
|
4
5
|
result: any;
|
|
5
|
-
|
|
6
|
-
input?: string | Record<string, unknown>;
|
|
7
|
-
selectionReason?: string;
|
|
8
|
-
};
|
|
6
|
+
metadata?: MastraUIMessage['metadata'];
|
|
9
7
|
toolOutput: Array<{
|
|
10
8
|
toolId: string;
|
|
11
9
|
}>;
|
|
12
10
|
}
|
|
13
|
-
export declare const ToolBadge: ({ toolName, args, result,
|
|
11
|
+
export declare const ToolBadge: ({ toolName, args, result, metadata, toolOutput }: ToolBadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { GetWorkflowResponse } from '@mastra/client-js';
|
|
2
2
|
import { WorkflowRunStreamResult } from '../../../../domains/workflows/context/workflow-run-context';
|
|
3
|
+
import { MastraUIMessage } from '@mastra/react';
|
|
3
4
|
export interface WorkflowBadgeProps {
|
|
4
5
|
workflow: GetWorkflowResponse;
|
|
5
6
|
workflowId: string;
|
|
6
7
|
runId?: string;
|
|
7
8
|
isStreaming?: boolean;
|
|
8
|
-
|
|
9
|
-
input?: string | Record<string, unknown>;
|
|
10
|
-
selectionReason?: string;
|
|
11
|
-
};
|
|
9
|
+
metadata?: MastraUIMessage['metadata'];
|
|
12
10
|
}
|
|
13
|
-
export declare const WorkflowBadge: ({ workflow, runId, workflowId, isStreaming,
|
|
11
|
+
export declare const WorkflowBadge: ({ workflow, runId, workflowId, isStreaming, metadata }: WorkflowBadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
12
|
export declare const useWorkflowStream: (workflowFullState?: WorkflowRunStreamResult) => void;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { ToolCallMessagePartProps } from '@assistant-ui/react';
|
|
2
|
+
import { MastraUIMessage } from '@mastra/react';
|
|
3
|
+
export interface ToolFallbackProps extends ToolCallMessagePartProps<any, any> {
|
|
4
|
+
metadata?: MastraUIMessage['metadata'];
|
|
5
|
+
}
|
|
6
|
+
export declare const ToolFallback: ({ toolName, result, args, ...props }: ToolFallbackProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Column } from './types';
|
|
2
|
+
export type EntryListEntriesSkeletonProps = {
|
|
3
|
+
columns?: Column[];
|
|
4
|
+
numberOfRows?: number;
|
|
5
|
+
};
|
|
6
|
+
export declare function EntryListEntriesSkeleton({ columns, numberOfRows }: EntryListEntriesSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as React } from '../../../../../node_modules/@types/react';
|
|
2
|
+
type EntryListEntriesProps = {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
};
|
|
5
|
+
export declare function EntryListEntries({ children }: EntryListEntriesProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function EntryListEntryTextCol({ children, isLoading }: {
|
|
2
|
+
children: React.ReactNode;
|
|
3
|
+
isLoading?: boolean;
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function EntryListEntryStatusCol({ status }: {
|
|
6
|
+
status?: 'success' | 'failed';
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Column } from './types';
|
|
2
|
+
type EntryListEntryProps = {
|
|
3
|
+
entry?: any;
|
|
4
|
+
isSelected?: boolean;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
onClick?: (itemId: string) => void;
|
|
7
|
+
columns?: Column[];
|
|
8
|
+
isLoading?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare function EntryListEntry({ entry, isSelected, onClick, children, columns }: EntryListEntryProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type EntryListMessageProps = {
|
|
2
|
+
children?: React.ReactNode;
|
|
3
|
+
message?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
type?: 'info' | 'error';
|
|
6
|
+
};
|
|
7
|
+
export declare function EntryListMessage({ children, message, className, type }: EntryListMessageProps): import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type EntryListNextPageLoadingProps = {
|
|
2
|
+
isLoading?: boolean;
|
|
3
|
+
hasMore?: boolean;
|
|
4
|
+
setEndOfListElement?: (element: HTMLDivElement | null) => void;
|
|
5
|
+
loadingText?: string;
|
|
6
|
+
noMoreDataText?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function EntryListNextPageLoading({ isLoading, hasMore, setEndOfListElement, loadingText, noMoreDataText, }: EntryListNextPageLoadingProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type EntryListPaginationProps = {
|
|
2
|
+
currentPage?: number;
|
|
3
|
+
hasMore?: boolean;
|
|
4
|
+
onNextPage?: () => void;
|
|
5
|
+
onPrevPage?: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function EntryListPagination({ currentPage, hasMore, onNextPage, onPrevPage }: EntryListPaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { EntryListRoot } from './entry-list-root';
|
|
2
|
+
import { EntryListHeader } from './entry-list-header';
|
|
3
|
+
import { EntryListEntries } from './entry-list-entries';
|
|
4
|
+
import { EntryListTrim } from './entry-list-trim';
|
|
5
|
+
import { EntryListEntry } from './entry-list-entry';
|
|
6
|
+
import { EntryListMessage } from './entry-list-message';
|
|
7
|
+
import { EntryListNextPageLoading } from './entry-list-next-page-loading';
|
|
8
|
+
import { EntryListPagination } from './entry-list-pagination';
|
|
9
|
+
import { EntryListEntryStatusCol, EntryListEntryTextCol } from './entry-list-entry-col';
|
|
10
|
+
export declare const EntryList: typeof EntryListRoot & {
|
|
11
|
+
Header: typeof EntryListHeader;
|
|
12
|
+
Trim: typeof EntryListTrim;
|
|
13
|
+
Entries: typeof EntryListEntries;
|
|
14
|
+
Entry: typeof EntryListEntry;
|
|
15
|
+
Message: typeof EntryListMessage;
|
|
16
|
+
NextPageLoading: typeof EntryListNextPageLoading;
|
|
17
|
+
Pagination: typeof EntryListPagination;
|
|
18
|
+
EntryText: typeof EntryListEntryTextCol;
|
|
19
|
+
EntryStatus: typeof EntryListEntryStatusCol;
|
|
20
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type getToEntryFnParams = {
|
|
2
|
+
entries: {
|
|
3
|
+
id: string;
|
|
4
|
+
}[];
|
|
5
|
+
id: string | undefined;
|
|
6
|
+
update: (id: string) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare function getToNextEntryFn({ entries, id, update }: getToEntryFnParams): (() => void) | undefined;
|
|
9
|
+
export declare function getToPreviousEntryFn({ entries, id, update }: getToEntryFnParams): (() => void) | undefined;
|
|
10
|
+
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export * from './entry-list';
|
|
2
|
-
export * from './entry-list-
|
|
3
|
-
export * from './entry-list-cell';
|
|
4
|
-
export * from './entry-list-toolbar';
|
|
5
|
-
export * from './entry-list-page-header';
|
|
2
|
+
export * from './entry-list-skeleton';
|
|
6
3
|
export * from './shared';
|
|
4
|
+
export * from './types';
|
|
5
|
+
export * from './helpers';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './main-sidebar';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from '../../../../../node_modules/@types/react';
|
|
2
|
+
export type SidebarState = 'default' | 'collapsed';
|
|
3
|
+
type MainSidebarContext = {
|
|
4
|
+
state: SidebarState;
|
|
5
|
+
toggleSidebar: () => void;
|
|
6
|
+
};
|
|
7
|
+
declare const MainSidebarContext: React.Context<MainSidebarContext | null>;
|
|
8
|
+
export declare function useMainSidebar(): MainSidebarContext;
|
|
9
|
+
export declare function MainSidebarProvider({ children }: {
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SidebarState } from './main-sidebar-context';
|
|
2
|
+
type MainSidebarNavHeaderProps = {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
state?: SidebarState;
|
|
6
|
+
};
|
|
7
|
+
export declare function MainSidebarNavHeader({ children, className, state }: MainSidebarNavHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SidebarState } from './main-sidebar-context';
|
|
2
|
+
export type NavLink = {
|
|
3
|
+
name: string;
|
|
4
|
+
url: string;
|
|
5
|
+
icon?: React.ReactNode;
|
|
6
|
+
isActive?: boolean;
|
|
7
|
+
variant?: 'default' | 'featured';
|
|
8
|
+
};
|
|
9
|
+
type MainSidebarNavLinkProps = {
|
|
10
|
+
link?: NavLink;
|
|
11
|
+
isActive?: boolean;
|
|
12
|
+
state?: SidebarState;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
className?: string;
|
|
15
|
+
};
|
|
16
|
+
export declare function MainSidebarNavLink({ link, state, children, isActive, className, }: MainSidebarNavLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NavLink } from './main-sidebar-nav-link';
|
|
2
|
+
export type NavSection = {
|
|
3
|
+
key: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
links: NavLink[];
|
|
6
|
+
};
|
|
7
|
+
type MainSidebarNavListProps = {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare function MainSidebarNavList({ children, className }: MainSidebarNavListProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { NavLink } from './main-sidebar-nav-link';
|
|
2
|
+
export type NavSection = {
|
|
3
|
+
key: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
links: NavLink[];
|
|
6
|
+
separator?: boolean;
|
|
7
|
+
};
|
|
8
|
+
type MainSidebarNavSectionProps = {
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function MainSidebarNavSection({ children, className }: MainSidebarNavSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { MainSidebarRoot } from './main-sidebar-root';
|
|
2
|
+
import { MainSidebarBottom } from './main-sidebar-bottom';
|
|
3
|
+
import { MainSidebarNav } from './main-sidebar-nav';
|
|
4
|
+
import { MainSidebarNavSection } from './main-sidebar-nav-section';
|
|
5
|
+
import { MainSidebarNavLink } from './main-sidebar-nav-link';
|
|
6
|
+
import { MainSidebarNavHeader } from './main-sidebar-nav-header';
|
|
7
|
+
import { MainSidebarNavList } from './main-sidebar-nav-list';
|
|
8
|
+
import { MainSidebarNavSeparator } from './main-sidebar-nav-separator';
|
|
9
|
+
export { MainSidebarProvider } from './main-sidebar-context';
|
|
10
|
+
export { useMainSidebar } from './main-sidebar-context';
|
|
11
|
+
export { type NavLink } from './main-sidebar-nav-link';
|
|
12
|
+
export { type NavSection } from './main-sidebar-nav-section';
|
|
13
|
+
export declare const MainSidebar: typeof MainSidebarRoot & {
|
|
14
|
+
Bottom: typeof MainSidebarBottom;
|
|
15
|
+
Nav: typeof MainSidebarNav;
|
|
16
|
+
NavSection: typeof MainSidebarNavSection;
|
|
17
|
+
NavLink: typeof MainSidebarNavLink;
|
|
18
|
+
NavHeader: typeof MainSidebarNavHeader;
|
|
19
|
+
NavList: typeof MainSidebarNavList;
|
|
20
|
+
NavSeparator: typeof MainSidebarNavSeparator;
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './notification';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type Notification = {
|
|
2
|
+
children: React.ReactNode;
|
|
3
|
+
className?: string;
|
|
4
|
+
isVisible?: boolean;
|
|
5
|
+
autoDismiss?: boolean;
|
|
6
|
+
dismissTime?: number;
|
|
7
|
+
};
|
|
8
|
+
export declare function Notification({ children, className, isVisible, autoDismiss, dismissTime }: Notification): import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './section';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from '../../../../../node_modules/@types/react';
|
|
2
|
+
type SectionHeaderProps = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function SectionHeader({ children, className }: SectionHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from '../../../../../node_modules/@types/react';
|
|
2
|
+
type SectionHeadingProps = {
|
|
3
|
+
headingLevel?: 'h2' | 'h3' | 'h4';
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function SectionHeading({ headingLevel, children, className }: SectionHeadingProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SectionRoot } from './section-root';
|
|
2
|
+
import { SectionHeader } from './section-header';
|
|
3
|
+
import { SectionHeading } from './section-heading';
|
|
4
|
+
export { type SectionRootProps as SectionProps } from './section-root';
|
|
5
|
+
export declare const Section: typeof SectionRoot & {
|
|
6
|
+
Header: typeof SectionHeader;
|
|
7
|
+
Heading: typeof SectionHeading;
|
|
8
|
+
};
|
|
@@ -1,7 +1 @@
|
|
|
1
1
|
export * from './side-dialog';
|
|
2
|
-
export * from './side-dialog-header';
|
|
3
|
-
export * from './side-dialog-footer';
|
|
4
|
-
export * from './side-dialog-content';
|
|
5
|
-
export * from './side-dialog-top';
|
|
6
|
-
export * from './side-dialog-code-section';
|
|
7
|
-
export * from './side-dialog-heading';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export type SideDialogCodeSectionProps = {
|
|
2
2
|
title: string;
|
|
3
|
+
icon?: React.ReactNode;
|
|
3
4
|
codeStr?: string;
|
|
4
5
|
simplified?: boolean;
|
|
5
6
|
};
|
|
6
|
-
export declare function SideDialogCodeSection({ codeStr, title, simplified }: SideDialogCodeSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function SideDialogCodeSection({ codeStr, title, icon, simplified }: SideDialogCodeSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function containsInnerNewline(obj: unknown): boolean;
|
|
@@ -5,17 +5,4 @@ export type SideDialogContentProps = {
|
|
|
5
5
|
isFullHeight?: boolean;
|
|
6
6
|
variant?: 'default' | 'confirmation';
|
|
7
7
|
};
|
|
8
|
-
export declare function SideDialogContent({ children, className
|
|
9
|
-
export type SideDialogSectionProps = {
|
|
10
|
-
children?: React.ReactNode;
|
|
11
|
-
};
|
|
12
|
-
export declare function SideDialogSection({ children }: SideDialogSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
type SideDialogKeyValueListProps = {
|
|
14
|
-
items: {
|
|
15
|
-
key: string;
|
|
16
|
-
value: React.ReactNode;
|
|
17
|
-
}[];
|
|
18
|
-
className?: string;
|
|
19
|
-
};
|
|
20
|
-
export declare function SideDialogKeyValueList({ items, className }: SideDialogKeyValueListProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
export {};
|
|
8
|
+
export declare function SideDialogContent({ children, className }: SideDialogContentProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type SideDialogRootProps = {
|
|
2
|
+
variant?: 'default' | 'confirmation';
|
|
3
|
+
dialogTitle: string;
|
|
4
|
+
dialogDescription: string;
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
level?: 1 | 2 | 3;
|
|
10
|
+
};
|
|
11
|
+
export declare function SideDialogRoot({ dialogTitle, dialogDescription, isOpen, onClose, children, variant, level, className, }: SideDialogRootProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export type SideDialogTopProps = {
|
|
2
2
|
children?: React.ReactNode;
|
|
3
|
-
|
|
4
|
-
onPrevious?: (() => void) | null;
|
|
5
|
-
showInnerNav?: boolean;
|
|
3
|
+
withTopSeparator?: boolean;
|
|
6
4
|
className?: string;
|
|
7
5
|
};
|
|
8
|
-
export declare function SideDialogTop({ children,
|
|
6
|
+
export declare function SideDialogTop({ children, withTopSeparator, className }: SideDialogTopProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { SideDialogRoot } from './side-dialog-root';
|
|
2
|
+
import { SideDialogCodeSection } from './side-dialog-code-section';
|
|
3
|
+
import { SideDialogHeading } from './side-dialog-heading';
|
|
4
|
+
import { SideDialogContent } from './side-dialog-content';
|
|
5
|
+
import { SideDialogHeader } from './side-dialog-header';
|
|
6
|
+
import { SideDialogTop } from './side-dialog-top';
|
|
7
|
+
import { SideDialogNav } from './side-dialog-nav';
|
|
8
|
+
export { type SideDialogRootProps } from './side-dialog-root';
|
|
9
|
+
export declare const SideDialog: typeof SideDialogRoot & {
|
|
10
|
+
Top: typeof SideDialogTop;
|
|
11
|
+
Header: typeof SideDialogHeader;
|
|
12
|
+
Heading: typeof SideDialogHeading;
|
|
13
|
+
Content: typeof SideDialogContent;
|
|
14
|
+
CodeSection: typeof SideDialogCodeSection;
|
|
15
|
+
Nav: typeof SideDialogNav;
|
|
16
|
+
};
|