@mastra/playground-ui 30.0.0 → 30.0.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 +67 -0
- package/dist/index.cjs.js +28 -261
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +9 -17
- package/dist/index.es.js +29 -259
- package/dist/index.es.js.map +1 -1
- package/dist/src/ds/components/DataList/{data-list-row.d.ts → data-list-row-wrapper.d.ts} +2 -2
- package/dist/src/ds/components/DataList/data-list.d.ts +1 -1
- package/dist/src/ds/components/DataList/shared.d.ts +3 -3
- package/dist/src/ds/components/LogsDataList/logs-data-list.d.ts +1 -1
- package/dist/src/index.d.ts +0 -2
- package/package.json +7 -7
- package/dist/src/ds/components/EntityList/entity-list-cells.d.ts +0 -9
- package/dist/src/ds/components/EntityList/entity-list-no-match.d.ts +0 -5
- package/dist/src/ds/components/EntityList/entity-list-pagination.d.ts +0 -7
- package/dist/src/ds/components/EntityList/entity-list-root.d.ts +0 -7
- package/dist/src/ds/components/EntityList/entity-list-row-link.d.ts +0 -9
- package/dist/src/ds/components/EntityList/entity-list-row.d.ts +0 -8
- package/dist/src/ds/components/EntityList/entity-list-rows.d.ts +0 -6
- package/dist/src/ds/components/EntityList/entity-list-skeleton.d.ts +0 -5
- package/dist/src/ds/components/EntityList/entity-list-top-cell.d.ts +0 -20
- package/dist/src/ds/components/EntityList/entity-list-top.d.ts +0 -6
- package/dist/src/ds/components/EntityList/entity-list.d.ts +0 -24
- package/dist/src/ds/components/EntityList/index.d.ts +0 -2
- package/dist/src/ds/components/EntityListPageLayout/entity-list-page-layout-root.d.ts +0 -5
- package/dist/src/ds/components/EntityListPageLayout/entity-list-page-layout-top.d.ts +0 -5
- package/dist/src/ds/components/EntityListPageLayout/entity-list-page-layout.d.ts +0 -5
- package/dist/src/ds/components/EntityListPageLayout/index.d.ts +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
export type
|
|
2
|
+
export type DataListRowWrapperProps = ComponentPropsWithoutRef<'div'>;
|
|
3
3
|
/**
|
|
4
4
|
* Non-interactive grid wrapper. Used to host a leading or trailing cell (e.g. a
|
|
5
5
|
* selection checkbox or row actions) alongside a `DataList.RowButton` so
|
|
@@ -9,4 +9,4 @@ export type DataListRowProps = ComponentPropsWithoutRef<'div'>;
|
|
|
9
9
|
* Carries the row-level border + `.data-list-row` marker so separators and
|
|
10
10
|
* sibling-aware rules behave the same in wrapped and standalone rows.
|
|
11
11
|
*/
|
|
12
|
-
export declare const
|
|
12
|
+
export declare const DataListRowWrapper: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -21,7 +21,7 @@ export declare const DataList: typeof DataListRoot & {
|
|
|
21
21
|
} & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "className" | "children" | "ref"> & import('react').RefAttributes<HTMLSpanElement>>;
|
|
22
22
|
TopCellWithTooltip: typeof DataListTopCellWithTooltip;
|
|
23
23
|
TopCellSmart: typeof DataListTopCellSmart;
|
|
24
|
-
|
|
24
|
+
RowWrapper: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
25
25
|
RowButton: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import('./shared').DataListRowSharedProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
26
26
|
RowLink: typeof DataListRowLink;
|
|
27
27
|
RowStatic: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('./shared').DataListRowSharedProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Row-level styling shared by anything that participates in the row sibling
|
|
3
3
|
* chain — applied to `DataList.RowButton` / `DataList.RowLink` when used
|
|
4
|
-
* standalone, and to `DataList.
|
|
4
|
+
* standalone, and to `DataList.RowWrapper` when used as a wrapper around them.
|
|
5
5
|
*
|
|
6
6
|
* Contains the `.data-list-row` marker class (used by the sibling-aware border
|
|
7
7
|
* rules), the bottom/top border treatment, and rounded corners.
|
|
@@ -15,13 +15,13 @@ export declare const dataListRowStyles: readonly ["mx-1 grid grid-cols-subgrid g
|
|
|
15
15
|
export type DataListRowSharedProps = {
|
|
16
16
|
/**
|
|
17
17
|
* Drop the row's default left margin. Use when the row is wrapped in a
|
|
18
|
-
* `DataList.
|
|
18
|
+
* `DataList.RowWrapper` that owns the leading inset (e.g. for selection rows where
|
|
19
19
|
* the checkbox cell sits on the left).
|
|
20
20
|
*/
|
|
21
21
|
flushLeft?: boolean;
|
|
22
22
|
/**
|
|
23
23
|
* Drop the row's default right margin. Use when the row is wrapped in a
|
|
24
|
-
* `DataList.
|
|
24
|
+
* `DataList.RowWrapper` that owns the trailing inset (e.g. for rows with a
|
|
25
25
|
* trailing actions cell on the right).
|
|
26
26
|
*/
|
|
27
27
|
flushRight?: boolean;
|
|
@@ -16,7 +16,7 @@ export declare const LogsDataList: typeof DataListRoot & {
|
|
|
16
16
|
} & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "className" | "children" | "ref"> & import('react').RefAttributes<HTMLSpanElement>>;
|
|
17
17
|
TopCellWithTooltip: typeof DataListTopCellWithTooltip;
|
|
18
18
|
TopCellSmart: typeof DataListTopCellSmart;
|
|
19
|
-
|
|
19
|
+
RowWrapper: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
20
20
|
RowButton: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import('../DataList/shared').DataListRowSharedProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
21
21
|
RowLink: typeof DataListRowLink;
|
|
22
22
|
Spacer: typeof DataListSpacer;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -76,9 +76,7 @@ export * from './ds/components/Chip';
|
|
|
76
76
|
export * from './ds/components/Tree';
|
|
77
77
|
export * from './ds/components/DataFilter';
|
|
78
78
|
export * from './ds/components/DataList';
|
|
79
|
-
export * from './ds/components/EntityList';
|
|
80
79
|
export * from './ds/components/LogsDataList';
|
|
81
|
-
export * from './ds/components/EntityListPageLayout';
|
|
82
80
|
export * from './ds/components/PageLayout';
|
|
83
81
|
export * from './ds/components/ListSearch';
|
|
84
82
|
export * from './ds/components/ErrorBoundary';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/playground-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "30.0.
|
|
4
|
+
"version": "30.0.1",
|
|
5
5
|
"description": "Mastra Playground components",
|
|
6
6
|
"main": "dist/index.umd.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
"react": ">=19.0.0",
|
|
93
93
|
"react-dom": ">=19.0.0",
|
|
94
94
|
"tailwindcss": "^4.0.0",
|
|
95
|
-
"@mastra/client-js": "^1.21.
|
|
96
|
-
"@mastra/react": "0.4.
|
|
95
|
+
"@mastra/client-js": "^1.21.1",
|
|
96
|
+
"@mastra/react": "0.4.2"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
99
|
"@storybook/addon-a11y": "^10.3.6",
|
|
@@ -129,10 +129,10 @@
|
|
|
129
129
|
"vite-plugin-dts": "^4.5.4",
|
|
130
130
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
131
131
|
"vitest": "4.1.5",
|
|
132
|
-
"@internal/lint": "0.0.
|
|
133
|
-
"@mastra/
|
|
134
|
-
"@mastra/
|
|
135
|
-
"@mastra/core": "1.37.
|
|
132
|
+
"@internal/lint": "0.0.99",
|
|
133
|
+
"@mastra/react": "0.4.2",
|
|
134
|
+
"@mastra/client-js": "^1.21.1",
|
|
135
|
+
"@mastra/core": "1.37.1"
|
|
136
136
|
},
|
|
137
137
|
"homepage": "https://mastra.ai",
|
|
138
138
|
"repository": {
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export type EntityListCellProps = {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
className?: string;
|
|
5
|
-
};
|
|
6
|
-
export declare function EntityListCell({ children, className }: EntityListCellProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare function EntityListTextCell({ children, className }: EntityListCellProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export declare function EntityListNameCell({ children, className }: EntityListCellProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export declare function EntityListDescriptionCell({ children, className }: EntityListCellProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export type EntityListPaginationProps = {
|
|
2
|
-
currentPage?: number;
|
|
3
|
-
hasMore?: boolean;
|
|
4
|
-
onNextPage?: () => void;
|
|
5
|
-
onPrevPage?: () => void;
|
|
6
|
-
};
|
|
7
|
-
export declare function EntityListPagination({ currentPage, hasMore, onNextPage, onPrevPage }: EntityListPaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export type EntityListRootProps = {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
columns: string;
|
|
5
|
-
className?: string;
|
|
6
|
-
};
|
|
7
|
-
export declare function EntityListRoot({ children, columns, className }: EntityListRootProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { LinkComponent } from '../../types/link-component';
|
|
3
|
-
export type EntityListRowLinkProps = {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
to: string;
|
|
6
|
-
className?: string;
|
|
7
|
-
LinkComponent: LinkComponent;
|
|
8
|
-
};
|
|
9
|
-
export declare function EntityListRowLink({ children, to, className, LinkComponent: Link }: EntityListRowLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export type EntityListRowProps = {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
className?: string;
|
|
5
|
-
onClick?: () => void;
|
|
6
|
-
selected?: boolean;
|
|
7
|
-
};
|
|
8
|
-
export declare function EntityListRow({ children, className, onClick, selected }: EntityListRowProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export type EntityListTopCellProps = {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
className?: string;
|
|
5
|
-
};
|
|
6
|
-
export declare const EntityListTopCell: import('react').ForwardRefExoticComponent<EntityListTopCellProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
7
|
-
export type EntityListTopCellWithTooltipProps = {
|
|
8
|
-
children: ReactNode;
|
|
9
|
-
tooltip: string;
|
|
10
|
-
className?: string;
|
|
11
|
-
};
|
|
12
|
-
export declare function EntityListTopCellWithTooltip({ children, tooltip, className }: EntityListTopCellWithTooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export type EntityListTopCellSmartProps = {
|
|
14
|
-
long: ReactNode;
|
|
15
|
-
short: ReactNode;
|
|
16
|
-
tooltip?: string;
|
|
17
|
-
breakpoint?: 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
18
|
-
className?: string;
|
|
19
|
-
};
|
|
20
|
-
export declare function EntityListTopCellSmart({ long, short, tooltip, breakpoint, className, }: EntityListTopCellSmartProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { EntityListCell, EntityListTextCell, EntityListNameCell, EntityListDescriptionCell } from './entity-list-cells';
|
|
2
|
-
import { EntityListNoMatch } from './entity-list-no-match';
|
|
3
|
-
import { EntityListPagination } from './entity-list-pagination';
|
|
4
|
-
import { EntityListRoot } from './entity-list-root';
|
|
5
|
-
import { EntityListRow } from './entity-list-row';
|
|
6
|
-
import { EntityListRowLink } from './entity-list-row-link';
|
|
7
|
-
import { EntityListRows } from './entity-list-rows';
|
|
8
|
-
import { EntityListTop } from './entity-list-top';
|
|
9
|
-
import { EntityListTopCellWithTooltip, EntityListTopCellSmart } from './entity-list-top-cell';
|
|
10
|
-
export declare const EntityList: typeof EntityListRoot & {
|
|
11
|
-
Top: typeof EntityListTop;
|
|
12
|
-
TopCell: import('react').ForwardRefExoticComponent<import('./entity-list-top-cell').EntityListTopCellProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
13
|
-
TopCellWithTooltip: typeof EntityListTopCellWithTooltip;
|
|
14
|
-
TopCellSmart: typeof EntityListTopCellSmart;
|
|
15
|
-
Rows: typeof EntityListRows;
|
|
16
|
-
Row: typeof EntityListRow;
|
|
17
|
-
RowLink: typeof EntityListRowLink;
|
|
18
|
-
Cell: typeof EntityListCell;
|
|
19
|
-
TextCell: typeof EntityListTextCell;
|
|
20
|
-
NameCell: typeof EntityListNameCell;
|
|
21
|
-
DescriptionCell: typeof EntityListDescriptionCell;
|
|
22
|
-
NoMatch: typeof EntityListNoMatch;
|
|
23
|
-
Pagination: typeof EntityListPagination;
|
|
24
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { EntityListPageLayoutRoot } from './entity-list-page-layout-root';
|
|
2
|
-
import { EntityListPageLayoutTop } from './entity-list-page-layout-top';
|
|
3
|
-
export declare const EntityListPageLayout: typeof EntityListPageLayoutRoot & {
|
|
4
|
-
Top: typeof EntityListPageLayoutTop;
|
|
5
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { EntityListPageLayout } from './entity-list-page-layout';
|