@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.
Files changed (92) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/dist/index.cjs.js +1869 -1918
  3. package/dist/index.cjs.js.map +1 -1
  4. package/dist/index.es.js +1844 -1902
  5. package/dist/index.es.js.map +1 -1
  6. package/dist/src/components/assistant-ui/messages/assistant-message.d.ts +1 -3
  7. package/dist/src/components/assistant-ui/thread.d.ts +1 -3
  8. package/dist/src/components/assistant-ui/tools/badges/agent-badge.d.ts +5 -8
  9. package/dist/src/components/assistant-ui/tools/badges/badge-wrapper.d.ts +2 -1
  10. package/dist/src/components/assistant-ui/tools/badges/tool-badge.d.ts +3 -5
  11. package/dist/src/components/assistant-ui/tools/badges/workflow-badge.d.ts +3 -5
  12. package/dist/src/components/assistant-ui/tools/tool-fallback.d.ts +6 -2
  13. package/dist/src/components/ui/containers/buttons-group.d.ts +6 -0
  14. package/dist/src/components/ui/containers/index.d.ts +2 -0
  15. package/dist/src/components/ui/containers/sections.d.ts +6 -0
  16. package/dist/src/components/ui/elements/entry-list/entry-list-entries-skeleton.d.ts +6 -0
  17. package/dist/src/components/ui/elements/entry-list/entry-list-entries.d.ts +6 -0
  18. package/dist/src/components/ui/elements/entry-list/entry-list-entry-col.d.ts +7 -0
  19. package/dist/src/components/ui/elements/entry-list/entry-list-entry.d.ts +11 -0
  20. package/dist/src/components/ui/elements/entry-list/entry-list-header.d.ts +6 -0
  21. package/dist/src/components/ui/elements/entry-list/entry-list-message.d.ts +8 -0
  22. package/dist/src/components/ui/elements/entry-list/entry-list-next-page-loading.d.ts +9 -0
  23. package/dist/src/components/ui/elements/entry-list/entry-list-pagination.d.ts +8 -0
  24. package/dist/src/components/ui/elements/entry-list/entry-list-root.d.ts +6 -0
  25. package/dist/src/components/ui/elements/entry-list/entry-list-skeleton.d.ts +2 -0
  26. package/dist/src/components/ui/elements/entry-list/entry-list-trim.d.ts +6 -0
  27. package/dist/src/components/ui/elements/entry-list/entry-list.d.ts +20 -18
  28. package/dist/src/components/ui/elements/entry-list/helpers.d.ts +10 -0
  29. package/dist/src/components/ui/elements/entry-list/index.d.ts +3 -4
  30. package/dist/src/components/ui/elements/entry-list/shared.d.ts +1 -5
  31. package/dist/src/components/ui/elements/entry-list/types.d.ts +5 -0
  32. package/dist/src/components/ui/elements/headers/page-header.d.ts +2 -2
  33. package/dist/src/components/ui/elements/index.d.ts +3 -0
  34. package/dist/src/components/ui/elements/main-sidebar/index.d.ts +1 -0
  35. package/dist/src/components/ui/elements/main-sidebar/main-sidebar-bottom.d.ts +6 -0
  36. package/dist/src/components/ui/elements/main-sidebar/main-sidebar-context.d.ts +12 -0
  37. package/dist/src/components/ui/elements/main-sidebar/main-sidebar-nav-header.d.ts +8 -0
  38. package/dist/src/components/ui/elements/main-sidebar/main-sidebar-nav-link.d.ts +17 -0
  39. package/dist/src/components/ui/elements/main-sidebar/main-sidebar-nav-list.d.ts +12 -0
  40. package/dist/src/components/ui/elements/main-sidebar/main-sidebar-nav-section.d.ts +13 -0
  41. package/dist/src/components/ui/elements/main-sidebar/main-sidebar-nav-separator.d.ts +5 -0
  42. package/dist/src/components/ui/elements/main-sidebar/main-sidebar-nav.d.ts +6 -0
  43. package/dist/src/components/ui/elements/main-sidebar/main-sidebar-root.d.ts +6 -0
  44. package/dist/src/components/ui/elements/main-sidebar/main-sidebar.d.ts +21 -0
  45. package/dist/src/components/ui/elements/notification/index.d.ts +1 -0
  46. package/dist/src/components/ui/elements/notification/notification.d.ts +9 -0
  47. package/dist/src/components/ui/elements/section/index.d.ts +1 -0
  48. package/dist/src/components/ui/elements/section/section-header.d.ts +7 -0
  49. package/dist/src/components/ui/elements/section/section-heading.d.ts +8 -0
  50. package/dist/src/components/ui/elements/section/section-root.d.ts +5 -0
  51. package/dist/src/components/ui/elements/section/section.d.ts +8 -0
  52. package/dist/src/components/ui/elements/side-dialog/index.d.ts +0 -6
  53. package/dist/src/components/ui/elements/side-dialog/side-dialog-code-section.d.ts +3 -1
  54. package/dist/src/components/ui/elements/side-dialog/side-dialog-content.d.ts +1 -14
  55. package/dist/src/components/ui/elements/side-dialog/side-dialog-nav.d.ts +6 -0
  56. package/dist/src/components/ui/elements/side-dialog/side-dialog-root.d.ts +11 -0
  57. package/dist/src/components/ui/elements/side-dialog/side-dialog-top.d.ts +2 -4
  58. package/dist/src/components/ui/elements/side-dialog/side-dialog.d.ts +16 -12
  59. package/dist/src/components/ui/elements/tabs/tabs-content.d.ts +7 -0
  60. package/dist/src/components/ui/elements/tabs/tabs-list.d.ts +7 -0
  61. package/dist/src/components/ui/elements/tabs/tabs-root.d.ts +9 -0
  62. package/dist/src/components/ui/elements/tabs/tabs-tab.d.ts +8 -0
  63. package/dist/src/components/ui/elements/tabs/tabs.d.ts +20 -36
  64. package/dist/src/domains/agents/components/agent-chat.d.ts +1 -1
  65. package/dist/src/domains/agents/index.d.ts +1 -0
  66. package/dist/src/domains/agents/utils/__tests__/extractPrompt.test.d.ts +1 -0
  67. package/dist/src/domains/agents/utils/extractPrompt.d.ts +2 -0
  68. package/dist/src/domains/observability/components/index.d.ts +4 -0
  69. package/dist/src/domains/observability/components/span-details.d.ts +1 -2
  70. package/dist/src/domains/observability/components/span-dialog.d.ts +8 -2
  71. package/dist/src/domains/observability/components/span-score-list.d.ts +17 -0
  72. package/dist/src/domains/observability/components/span-scoring.d.ts +6 -0
  73. package/dist/src/domains/observability/components/span-tabs.d.ts +16 -0
  74. package/dist/src/domains/observability/components/trace-dialog.d.ts +4 -2
  75. package/dist/src/domains/observability/components/trace-timeline.d.ts +1 -4
  76. package/dist/src/domains/observability/components/traces-list.d.ts +22 -0
  77. package/dist/src/domains/scores/components/score-dialog.d.ts +5 -3
  78. package/dist/src/domains/scores/components/scores-list.d.ts +21 -0
  79. package/dist/src/domains/scores/hooks/use-trace-span-scores.d.ts +7 -0
  80. package/dist/src/domains/scores/hooks/use-trigger-scorer.d.ts +1 -1
  81. package/dist/src/domains/scores/index.d.ts +2 -0
  82. package/dist/src/index.d.ts +1 -0
  83. package/dist/src/services/mastra-runtime-provider.d.ts +1 -1
  84. package/dist/src/types.d.ts +3 -1
  85. package/package.json +12 -10
  86. package/dist/src/components/ui/elements/entry-list/entry-list-cell.d.ts +0 -7
  87. package/dist/src/components/ui/elements/entry-list/entry-list-item.d.ts +0 -9
  88. package/dist/src/components/ui/elements/entry-list/entry-list-page-header.d.ts +0 -8
  89. package/dist/src/domains/scores/components/scorers-dropdown.d.ts +0 -8
  90. package/dist/src/services/agent-network-message.d.ts +0 -2
  91. package/dist/src/services/stream-chunk-message.d.ts +0 -32
  92. 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: ({ ToolFallback: ToolFallbackCustom, hasModelList }: AssistantMessageProps) => import("react/jsx-runtime").JSX.Element;
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: ({ ToolFallback, agentName, agentId, hasMemory, hasModelList }: ThreadProps) => import("react/jsx-runtime").JSX.Element;
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 BadgeMessage = TextMessage | ToolMessage;
14
+ export type AgentMessage = TextMessage | ToolMessage;
15
15
  export interface AgentBadgeProps {
16
16
  agentId: string;
17
- messages: BadgeMessage[];
18
- networkMetadata?: {
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, networkMetadata }: AgentBadgeProps) => import("react/jsx-runtime").JSX.Element;
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
- networkMetadata?: {
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, networkMetadata, toolOutput }: ToolBadgeProps) => import("react/jsx-runtime").JSX.Element;
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
- networkMetadata?: {
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, networkMetadata }: WorkflowBadgeProps) => import("react/jsx-runtime").JSX.Element;
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 { ToolCallMessagePartComponent } from '@assistant-ui/react';
2
- export declare const ToolFallback: ToolCallMessagePartComponent;
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
+ type ButtonsGroupProps = {
2
+ children: React.ReactNode;
3
+ className?: string;
4
+ };
5
+ export declare function ButtonsGroup({ children, className }: ButtonsGroupProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,3 @@
1
1
  export * from './MainContent';
2
+ export * from './buttons-group';
3
+ export * from './sections';
@@ -0,0 +1,6 @@
1
+ type SectionsProps = {
2
+ children: React.ReactNode;
3
+ className?: string;
4
+ };
5
+ export declare function Sections({ children, className }: SectionsProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -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,6 @@
1
+ import { Column } from './types';
2
+ type EntryListHeaderProps = {
3
+ columns?: Column[];
4
+ };
5
+ export declare function EntryListHeader({ columns }: EntryListHeaderProps): import("react/jsx-runtime").JSX.Element;
6
+ 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 {};
@@ -0,0 +1,6 @@
1
+ import { default as React } from '../../../../../node_modules/@types/react';
2
+ type EntryListRootProps = {
3
+ children: React.ReactNode;
4
+ };
5
+ export declare function EntryListRoot({ children }: EntryListRootProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ import { EntryListEntriesSkeletonProps } from './entry-list-entries-skeleton';
2
+ export declare function EntryListSkeleton({ 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 EntryListTrimProps = {
3
+ children: React.ReactNode;
4
+ };
5
+ export declare function EntryListTrim({ children }: EntryListTrimProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1,18 +1,20 @@
1
- import { Column } from './shared';
2
- export declare function EntryList({ items: dataItems, selectedItemId, onItemClick, isLoading, isLoadingNextPage, total, page, hasMore, onNextPage, onPrevPage, perPage, columns, searchTerm, setEndOfListElement, errorMsg, }: {
3
- items: Record<string, any>[];
4
- selectedItemId?: string;
5
- onItemClick?: (item: string) => void;
6
- isLoading?: boolean;
7
- isLoadingNextPage?: boolean;
8
- total?: number;
9
- page?: number;
10
- hasMore?: boolean;
11
- onNextPage?: () => void;
12
- onPrevPage?: () => void;
13
- perPage?: number;
14
- columns?: Column[];
15
- searchTerm?: string;
16
- setEndOfListElement?: (element: HTMLDivElement | null) => void;
17
- errorMsg?: string;
18
- }): import("react/jsx-runtime").JSX.Element;
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-item';
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';
@@ -1,6 +1,2 @@
1
- export type Column = {
2
- name: string;
3
- label: string;
4
- size: string;
5
- };
1
+ import { Column } from './types';
6
2
  export declare function getColumnTemplate(columns?: Column[]): string;
@@ -0,0 +1,5 @@
1
+ export type Column = {
2
+ name: string;
3
+ label: string;
4
+ size: string;
5
+ };
@@ -1,6 +1,6 @@
1
1
  type PageHeaderProps = {
2
- title?: string;
3
- description?: string;
2
+ title?: string | 'loading';
3
+ description?: string | 'loading';
4
4
  icon?: React.ReactNode;
5
5
  className?: string;
6
6
  };
@@ -5,3 +5,6 @@ export * from './side-dialog';
5
5
  export * from './headers';
6
6
  export * from './date-time-picker';
7
7
  export * from './text';
8
+ export * from './notification';
9
+ export * from './section';
10
+ export * from './main-sidebar';
@@ -0,0 +1 @@
1
+ export * from './main-sidebar';
@@ -0,0 +1,6 @@
1
+ type MainSidebarBottomProps = {
2
+ children: React.ReactNode;
3
+ className?: string;
4
+ };
5
+ export declare function MainSidebarBottom({ children, className }: MainSidebarBottomProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -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,5 @@
1
+ type MainSidebarNavSeparatorProps = {
2
+ className?: string;
3
+ };
4
+ export declare function MainSidebarNavSeparator({ className }: MainSidebarNavSeparatorProps): import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1,6 @@
1
+ type MainSidebarNavProps = {
2
+ children: React.ReactNode;
3
+ className?: string;
4
+ };
5
+ export declare function MainSidebarNav({ children, className }: MainSidebarNavProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ type MainSidebarRootProps = {
2
+ children: React.ReactNode;
3
+ className?: string;
4
+ };
5
+ export declare function MainSidebarRoot({ children, className }: MainSidebarRootProps): import("react/jsx-runtime").JSX.Element;
6
+ 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,5 @@
1
+ export type SectionRootProps = {
2
+ children: React.ReactNode;
3
+ className?: string;
4
+ };
5
+ export declare function SectionRoot({ children, className }: SectionRootProps): import("react/jsx-runtime").JSX.Element;
@@ -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, isCentered, isFullHeight, variant }: SideDialogContentProps): import("react/jsx-runtime").JSX.Element;
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,6 @@
1
+ export type SideDialogNavProps = {
2
+ onNext?: (() => void) | null;
3
+ onPrevious?: (() => void) | null;
4
+ className?: string;
5
+ };
6
+ export declare function SideDialogNav({ onNext, onPrevious, className }: SideDialogNavProps): 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
- onNext?: (() => void) | null;
4
- onPrevious?: (() => void) | null;
5
- showInnerNav?: boolean;
3
+ withTopSeparator?: boolean;
6
4
  className?: string;
7
5
  };
8
- export declare function SideDialogTop({ children, onNext, onPrevious, showInnerNav, className }: SideDialogTopProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function SideDialogTop({ children, withTopSeparator, className }: SideDialogTopProps): import("react/jsx-runtime").JSX.Element;
@@ -1,12 +1,16 @@
1
- export declare function SideDialog({ dialogTitle, dialogDescription, isOpen, onClose, children, variant, hasCloseButton, className, }: {
2
- variant?: 'default' | 'confirmation';
3
- dialogTitle: string;
4
- dialogDescription: string;
5
- isOpen: boolean;
6
- onClose?: () => void;
7
- onNext?: (() => void) | null;
8
- onPrevious?: (() => void) | null;
9
- children?: React.ReactNode;
10
- hasCloseButton?: boolean;
11
- className?: string;
12
- }): import("react/jsx-runtime").JSX.Element;
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
+ };
@@ -0,0 +1,7 @@
1
+ type TabContentProps = {
2
+ children: React.ReactNode;
3
+ value: string;
4
+ className?: string;
5
+ };
6
+ export declare const TabContent: ({ children, value, className }: TabContentProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};