@mastra/playground-ui 22.1.3-alpha.3 → 22.2.0-alpha.8
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 +53 -0
- package/dist/index.cjs.js +96 -9
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +79 -0
- package/dist/index.es.js +95 -10
- package/dist/index.es.js.map +1 -1
- package/dist/src/ds/components/BrandLoader/brand-loader.d.ts +7 -0
- package/dist/src/ds/components/BrandLoader/brand-loader.stories.d.ts +11 -0
- package/dist/src/ds/components/BrandLoader/index.d.ts +1 -0
- package/dist/src/ds/components/Combobox/combobox.d.ts +1 -1
- package/dist/src/ds/components/DataList/ScoresDataList/scores-data-list-cells.d.ts +20 -0
- package/dist/src/ds/components/DataList/ScoresDataList/scores-data-list.d.ts +21 -0
- package/dist/src/ds/components/DataList/TracesDataList/traces-data-list.d.ts +4 -1
- package/dist/src/ds/components/DataList/index.d.ts +1 -0
- package/dist/src/ds/tokens/tokens.stories.d.ts +10 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +6 -6
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type BrandLoaderProps = {
|
|
2
|
+
className?: string;
|
|
3
|
+
size?: 'sm' | 'md' | 'lg';
|
|
4
|
+
'aria-label'?: string;
|
|
5
|
+
};
|
|
6
|
+
declare function BrandLoader({ className, size, 'aria-label': ariaLabel }: BrandLoaderProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { BrandLoader };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { BrandLoader } from './brand-loader';
|
|
3
|
+
declare const meta: Meta<typeof BrandLoader>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof BrandLoader>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Small: Story;
|
|
8
|
+
export declare const Medium: Story;
|
|
9
|
+
export declare const Large: Story;
|
|
10
|
+
export declare const AllSizes: Story;
|
|
11
|
+
export declare const OnSurface: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './brand-loader';
|
|
@@ -17,7 +17,7 @@ export type ComboboxProps = {
|
|
|
17
17
|
emptyText?: string;
|
|
18
18
|
className?: string;
|
|
19
19
|
disabled?: boolean;
|
|
20
|
-
variant?: Extract<ButtonProps['variant'], 'inputLike' | 'ghost'>;
|
|
20
|
+
variant?: Extract<ButtonProps['variant'], 'inputLike' | 'ghost' | 'link'>;
|
|
21
21
|
size?: Exclude<FormElementSize, 'lg'>;
|
|
22
22
|
open?: boolean;
|
|
23
23
|
onOpenChange?: (open: boolean) => void;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface ScoresDataListDateCellProps {
|
|
2
|
+
timestamp: Date | string;
|
|
3
|
+
}
|
|
4
|
+
export declare function ScoresDataListDateCell({ timestamp }: ScoresDataListDateCellProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export interface ScoresDataListTimeCellProps {
|
|
6
|
+
timestamp: Date | string;
|
|
7
|
+
}
|
|
8
|
+
export declare function ScoresDataListTimeCell({ timestamp }: ScoresDataListTimeCellProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export interface ScoresDataListInputCellProps {
|
|
10
|
+
input?: unknown;
|
|
11
|
+
}
|
|
12
|
+
export declare function ScoresDataListInputCell({ input }: ScoresDataListInputCellProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export interface ScoresDataListEntityCellProps {
|
|
14
|
+
entityId?: string | null;
|
|
15
|
+
}
|
|
16
|
+
export declare function ScoresDataListEntityCell({ entityId }: ScoresDataListEntityCellProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export interface ScoresDataListScoreCellProps {
|
|
18
|
+
score?: unknown;
|
|
19
|
+
}
|
|
20
|
+
export declare function ScoresDataListScoreCell({ score }: ScoresDataListScoreCellProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentProps } from '../../../../../node_modules/@types/react';
|
|
2
|
+
import { DataListNextPageLoading } from '../data-list-next-page-loading';
|
|
3
|
+
import { DataListNoMatch } from '../data-list-no-match';
|
|
4
|
+
import { DataListRoot } from '../data-list-root';
|
|
5
|
+
import { DataListRowButton } from '../data-list-row-button';
|
|
6
|
+
import { DataListTop } from '../data-list-top';
|
|
7
|
+
import { ScoresDataListDateCell, ScoresDataListTimeCell, ScoresDataListInputCell, ScoresDataListEntityCell, ScoresDataListScoreCell } from './scores-data-list-cells';
|
|
8
|
+
declare function ScoresDataListRoot(props: ComponentProps<typeof DataListRoot>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const ScoresDataList: typeof ScoresDataListRoot & {
|
|
10
|
+
Top: typeof DataListTop;
|
|
11
|
+
TopCell: import('../../../../../node_modules/@types/react').ForwardRefExoticComponent<import('../data-list-top-cell').DataListTopCellProps & import('../../../../../node_modules/@types/react').RefAttributes<HTMLSpanElement>>;
|
|
12
|
+
RowButton: typeof DataListRowButton;
|
|
13
|
+
NoMatch: typeof DataListNoMatch;
|
|
14
|
+
NextPageLoading: typeof DataListNextPageLoading;
|
|
15
|
+
DateCell: typeof ScoresDataListDateCell;
|
|
16
|
+
TimeCell: typeof ScoresDataListTimeCell;
|
|
17
|
+
InputCell: typeof ScoresDataListInputCell;
|
|
18
|
+
EntityCell: typeof ScoresDataListEntityCell;
|
|
19
|
+
ScoreCell: typeof ScoresDataListScoreCell;
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ComponentProps } from '../../../../../node_modules/@types/react';
|
|
1
2
|
import { DataListNextPageLoading } from '../data-list-next-page-loading';
|
|
2
3
|
import { DataListNoMatch } from '../data-list-no-match';
|
|
3
4
|
import { DataListRoot } from '../data-list-root';
|
|
@@ -6,7 +7,8 @@ import { DataListSubheader } from '../data-list-subheader';
|
|
|
6
7
|
import { DataListSubHeading } from '../data-list-subheading';
|
|
7
8
|
import { DataListTop } from '../data-list-top';
|
|
8
9
|
import { TracesDataListIdCell, TracesDataListDateCell, TracesDataListTimeCell, TracesDataListNameCell, TracesDataListInputCell, TracesDataListEntityCell, TracesDataListStatusCell } from './traces-data-list-cells';
|
|
9
|
-
|
|
10
|
+
declare function TracesDataListRoot(props: ComponentProps<typeof DataListRoot>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const TracesDataList: typeof TracesDataListRoot & {
|
|
10
12
|
Top: typeof DataListTop;
|
|
11
13
|
TopCell: import('../../../../../node_modules/@types/react').ForwardRefExoticComponent<import('../data-list-top-cell').DataListTopCellProps & import('../../../../../node_modules/@types/react').RefAttributes<HTMLSpanElement>>;
|
|
12
14
|
RowButton: typeof DataListRowButton;
|
|
@@ -22,3 +24,4 @@ export declare const TracesDataList: typeof DataListRoot & {
|
|
|
22
24
|
StatusCell: typeof TracesDataListStatusCell;
|
|
23
25
|
NextPageLoading: typeof DataListNextPageLoading;
|
|
24
26
|
};
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
declare const meta: Meta;
|
|
3
|
+
export default meta;
|
|
4
|
+
type Story = StoryObj;
|
|
5
|
+
export declare const Typography: Story;
|
|
6
|
+
export declare const ColorsStory: Story;
|
|
7
|
+
export declare const Spacing: Story;
|
|
8
|
+
export declare const Radius: Story;
|
|
9
|
+
export declare const ShadowsStory: Story;
|
|
10
|
+
export declare const AnimationTokens: Story;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export * from './ds/components/Select';
|
|
|
41
41
|
export * from './ds/components/Skeleton';
|
|
42
42
|
export * from './ds/components/Slider';
|
|
43
43
|
export * from './ds/components/Spinner';
|
|
44
|
+
export * from './ds/components/BrandLoader';
|
|
44
45
|
export * from './ds/components/Switch';
|
|
45
46
|
export * from './ds/components/Tooltip';
|
|
46
47
|
export * from './ds/components/Truncate';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/playground-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "22.
|
|
4
|
+
"version": "22.2.0-alpha.8",
|
|
5
5
|
"description": "Mastra Playground components",
|
|
6
6
|
"main": "dist/index.umd.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
@@ -97,8 +97,8 @@
|
|
|
97
97
|
"lucide-react": "^0.474.0",
|
|
98
98
|
"react": ">=19.0.0",
|
|
99
99
|
"tailwindcss": "^4.0.0",
|
|
100
|
-
"@mastra/client-js": "^1.13.5-alpha.
|
|
101
|
-
"@mastra/react": "0.2.27-alpha.
|
|
100
|
+
"@mastra/client-js": "^1.13.5-alpha.8",
|
|
101
|
+
"@mastra/react": "0.2.27-alpha.8"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
104
|
"@storybook/addon-docs": "^9.1.20",
|
|
@@ -129,9 +129,9 @@
|
|
|
129
129
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
130
130
|
"vitest": "4.0.18",
|
|
131
131
|
"@internal/lint": "0.0.83",
|
|
132
|
-
"@mastra/
|
|
133
|
-
"@mastra/
|
|
134
|
-
"@mastra/react": "0.2.27-alpha.
|
|
132
|
+
"@mastra/client-js": "^1.13.5-alpha.8",
|
|
133
|
+
"@mastra/core": "1.26.0-alpha.8",
|
|
134
|
+
"@mastra/react": "0.2.27-alpha.8"
|
|
135
135
|
},
|
|
136
136
|
"homepage": "https://mastra.ai",
|
|
137
137
|
"repository": {
|