@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/components/threads.d.ts +28 -0
- package/dist/index.cjs.js +46 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +42 -1
- package/dist/index.es.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ElementType } from '../../node_modules/@types/react';
|
|
2
|
+
|
|
3
|
+
export interface ThreadsProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const Threads: ({ children }: ThreadsProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export interface ThreadLinkProps {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
as?: ElementType;
|
|
10
|
+
href?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
prefetch?: boolean;
|
|
13
|
+
to?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const ThreadLink: ({ children, as: Component, href, className, prefetch, to }: ThreadLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export interface ThreadListProps {
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
}
|
|
19
|
+
export declare const ThreadList: ({ children }: ThreadListProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export interface ThreadItemProps {
|
|
21
|
+
children: React.ReactNode;
|
|
22
|
+
isActive?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare const ThreadItem: ({ children, isActive }: ThreadItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export interface ThreadDeleteButtonProps {
|
|
26
|
+
onClick: () => void;
|
|
27
|
+
}
|
|
28
|
+
export declare const ThreadDeleteButton: ({ onClick }: ThreadDeleteButtonProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/index.cjs.js
CHANGED
|
@@ -8726,6 +8726,47 @@ const DataTable = ({
|
|
|
8726
8726
|
] });
|
|
8727
8727
|
};
|
|
8728
8728
|
|
|
8729
|
+
const Threads = ({ children }) => {
|
|
8730
|
+
return /* @__PURE__ */ jsxRuntime.jsx("nav", { className: "bg-surface2 border-r-sm border-border1 min-h-full overflow-hidden", children });
|
|
8731
|
+
};
|
|
8732
|
+
const ThreadLink = ({ children, as: Component = "a", href, className, prefetch, to }) => {
|
|
8733
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8734
|
+
Component,
|
|
8735
|
+
{
|
|
8736
|
+
href,
|
|
8737
|
+
prefetch,
|
|
8738
|
+
to,
|
|
8739
|
+
className: clsx("text-ui-sm flex h-full w-full flex-col justify-center font-medium", className),
|
|
8740
|
+
children
|
|
8741
|
+
}
|
|
8742
|
+
);
|
|
8743
|
+
};
|
|
8744
|
+
const ThreadList = ({ children }) => {
|
|
8745
|
+
return /* @__PURE__ */ jsxRuntime.jsx("ol", { children });
|
|
8746
|
+
};
|
|
8747
|
+
const ThreadItem = ({ children, isActive }) => {
|
|
8748
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8749
|
+
"li",
|
|
8750
|
+
{
|
|
8751
|
+
className: clsx(
|
|
8752
|
+
"border-b-sm border-border1 hover:bg-surface3 group flex h-[54px] items-center justify-between gap-2 px-5 py-2",
|
|
8753
|
+
isActive && "bg-surface4"
|
|
8754
|
+
),
|
|
8755
|
+
children
|
|
8756
|
+
}
|
|
8757
|
+
);
|
|
8758
|
+
};
|
|
8759
|
+
const ThreadDeleteButton = ({ onClick }) => {
|
|
8760
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8761
|
+
Button,
|
|
8762
|
+
{
|
|
8763
|
+
className: "shrink-0 border-none bg-transparent opacity-0 transition-all group-focus-within:opacity-100 group-hover:opacity-100",
|
|
8764
|
+
onClick,
|
|
8765
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { "aria-label": "delete thread", className: "text-icon3" }) })
|
|
8766
|
+
}
|
|
8767
|
+
);
|
|
8768
|
+
};
|
|
8769
|
+
|
|
8729
8770
|
const Breadcrumb = ({ children, label }) => {
|
|
8730
8771
|
return /* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": label, children: /* @__PURE__ */ jsxRuntime.jsx("ol", { className: "gap-sm flex items-center", children }) });
|
|
8731
8772
|
};
|
|
@@ -9016,6 +9057,11 @@ exports.Table = Table;
|
|
|
9016
9057
|
exports.Tbody = Tbody;
|
|
9017
9058
|
exports.Th = Th;
|
|
9018
9059
|
exports.Thead = Thead;
|
|
9060
|
+
exports.ThreadDeleteButton = ThreadDeleteButton;
|
|
9061
|
+
exports.ThreadItem = ThreadItem;
|
|
9062
|
+
exports.ThreadLink = ThreadLink;
|
|
9063
|
+
exports.ThreadList = ThreadList;
|
|
9064
|
+
exports.Threads = Threads;
|
|
9019
9065
|
exports.ToolsIcon = ToolsIcon;
|
|
9020
9066
|
exports.TraceContext = TraceContext;
|
|
9021
9067
|
exports.TraceIcon = TraceIcon;
|