@mastra/playground-ui 5.0.2-alpha.3 → 5.0.2-alpha.4

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/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export * from './domains/workflows/index';
5
5
  export * from './domains/resizable-panel';
6
6
  export * from './components/dynamic-form/index';
7
7
  export * from './components/ui/data-table';
8
+ export * from './components/threads';
8
9
  export * from './types';
9
10
  export * from './ds/components/Badge/index';
10
11
  export * from './ds/components/Button/index';
package/dist/index.es.js CHANGED
@@ -8694,6 +8694,47 @@ const DataTable = ({
8694
8694
  ] });
8695
8695
  };
8696
8696
 
8697
+ const Threads = ({ children }) => {
8698
+ return /* @__PURE__ */ jsx("nav", { className: "bg-surface2 border-r-sm border-border1 min-h-full overflow-hidden", children });
8699
+ };
8700
+ const ThreadLink = ({ children, as: Component = "a", href, className, prefetch, to }) => {
8701
+ return /* @__PURE__ */ jsx(
8702
+ Component,
8703
+ {
8704
+ href,
8705
+ prefetch,
8706
+ to,
8707
+ className: clsx("text-ui-sm flex h-full w-full flex-col justify-center font-medium", className),
8708
+ children
8709
+ }
8710
+ );
8711
+ };
8712
+ const ThreadList = ({ children }) => {
8713
+ return /* @__PURE__ */ jsx("ol", { children });
8714
+ };
8715
+ const ThreadItem = ({ children, isActive }) => {
8716
+ return /* @__PURE__ */ jsx(
8717
+ "li",
8718
+ {
8719
+ className: clsx(
8720
+ "border-b-sm border-border1 hover:bg-surface3 group flex h-[54px] items-center justify-between gap-2 px-5 py-2",
8721
+ isActive && "bg-surface4"
8722
+ ),
8723
+ children
8724
+ }
8725
+ );
8726
+ };
8727
+ const ThreadDeleteButton = ({ onClick }) => {
8728
+ return /* @__PURE__ */ jsx(
8729
+ Button,
8730
+ {
8731
+ className: "shrink-0 border-none bg-transparent opacity-0 transition-all group-focus-within:opacity-100 group-hover:opacity-100",
8732
+ onClick,
8733
+ children: /* @__PURE__ */ jsx(Icon, { children: /* @__PURE__ */ jsx(X, { "aria-label": "delete thread", className: "text-icon3" }) })
8734
+ }
8735
+ );
8736
+ };
8737
+
8697
8738
  const Breadcrumb = ({ children, label }) => {
8698
8739
  return /* @__PURE__ */ jsx("nav", { "aria-label": label, children: /* @__PURE__ */ jsx("ol", { className: "gap-sm flex items-center", children }) });
8699
8740
  };
@@ -8923,5 +8964,5 @@ const useTraces = (componentName, baseUrl, isWorkflow = false) => {
8923
8964
  return { traces, firstCallLoading, error };
8924
8965
  };
8925
8966
 
8926
- export { AgentChat, AgentCoinIcon, AgentContext, AgentEvals, AgentIcon, AgentProvider, AgentTraces, AiIcon, ApiIcon, Badge$1 as Badge, BranchIcon, Breadcrumb, Button, Cell, CheckIcon, ChevronIcon, CommitIcon, CrossIcon, Crumb, DarkLogo, DataTable, DateTimeCell, DbIcon, DebugIcon, DeploymentIcon, DividerIcon, DocsIcon, DynamicForm, EntryCell, EnvIcon, EvaluatorCoinIcon, FiltersIcon, GithubCoinIcon, GithubIcon, GoogleIcon, Header, HeaderAction, HeaderGroup, HeaderTitle, HomeIcon, Icon, InfoIcon, JudgeIcon, LatencyIcon, LogsIcon, MastraResizablePanel, MemoryIcon, NetworkChat, NetworkContext, NetworkProvider, OpenAIIcon, PromptIcon, RepoIcon, Row, ScoreIcon, SettingsIcon, SlashIcon, Table, Tbody, Th, Thead, ToolsIcon, TraceContext, TraceIcon, TraceProvider, TsIcon, Txt, TxtCell, UnitCell, VNextWorkflowGraph, VNextWorkflowTrigger, VariablesIcon, WorkflowCoinIcon, WorkflowGraph, WorkflowIcon, WorkflowRunContext, WorkflowRunProvider, WorkflowTraces, WorkflowTrigger, refineTraces, useTraces };
8967
+ export { AgentChat, AgentCoinIcon, AgentContext, AgentEvals, AgentIcon, AgentProvider, AgentTraces, AiIcon, ApiIcon, Badge$1 as Badge, BranchIcon, Breadcrumb, Button, Cell, CheckIcon, ChevronIcon, CommitIcon, CrossIcon, Crumb, DarkLogo, DataTable, DateTimeCell, DbIcon, DebugIcon, DeploymentIcon, DividerIcon, DocsIcon, DynamicForm, EntryCell, EnvIcon, EvaluatorCoinIcon, FiltersIcon, GithubCoinIcon, GithubIcon, GoogleIcon, Header, HeaderAction, HeaderGroup, HeaderTitle, HomeIcon, Icon, InfoIcon, JudgeIcon, LatencyIcon, LogsIcon, MastraResizablePanel, MemoryIcon, NetworkChat, NetworkContext, NetworkProvider, OpenAIIcon, PromptIcon, RepoIcon, Row, ScoreIcon, SettingsIcon, SlashIcon, Table, Tbody, Th, Thead, ThreadDeleteButton, ThreadItem, ThreadLink, ThreadList, Threads, ToolsIcon, TraceContext, TraceIcon, TraceProvider, TsIcon, Txt, TxtCell, UnitCell, VNextWorkflowGraph, VNextWorkflowTrigger, VariablesIcon, WorkflowCoinIcon, WorkflowGraph, WorkflowIcon, WorkflowRunContext, WorkflowRunProvider, WorkflowTraces, WorkflowTrigger, refineTraces, useTraces };
8927
8968
  //# sourceMappingURL=index.es.js.map