@mastra/playground-ui 32.0.2 → 33.0.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.
@@ -1,5 +1,6 @@
1
1
  export type ErrorStateProps = {
2
2
  title: string;
3
3
  message: string;
4
+ action?: React.ReactNode;
4
5
  };
5
- export declare function ErrorState({ title, message }: ErrorStateProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function ErrorState({ title, message, action }: ErrorStateProps): import("react/jsx-runtime").JSX.Element;
@@ -3,6 +3,9 @@ import * as React from 'react';
3
3
  type SwitchProps = Omit<SwitchPrimitive.Root.Props, 'className'> & {
4
4
  className?: string;
5
5
  asChild?: boolean;
6
+ icon?: React.ReactNode;
7
+ checkedIcon?: React.ReactNode;
8
+ uncheckedIcon?: React.ReactNode;
6
9
  };
7
10
  declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
8
11
  export { Switch };
@@ -7,6 +7,8 @@ export declare const Default: Story;
7
7
  export declare const Checked: Story;
8
8
  export declare const Disabled: Story;
9
9
  export declare const DisabledChecked: Story;
10
+ export declare const WithIcon: Story;
11
+ export declare const WithStateIcons: Story;
10
12
  export declare const AllStates: Story;
11
13
  export declare const OnSurfaces: Story;
12
14
  export declare const WithLabel: Story;
@@ -9,6 +9,7 @@ export declare const sharedFormElementFocusStyle = "outline-hidden focus-visible
9
9
  export declare const sharedFormElementDisabledStyle = "disabled:opacity-50 disabled:cursor-not-allowed";
10
10
  export declare const inputFocusBorderVisible = "focus-visible:border-neutral5/50";
11
11
  export declare const inputFocusBorderWithin = "focus-within:border-neutral5/50";
12
+ export declare const inputHoverBorderVisible = "[&:hover:not(:focus-visible)]:border-border2";
12
13
  export declare const inputHoverBorderWithin = "[&:hover:not(:focus-within)]:border-border2";
13
14
  export declare const inputSurfaceAndFocusStyle: string;
14
15
  export declare const inputOutlineAndFocusStyle: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mastra/playground-ui",
3
3
  "type": "module",
4
- "version": "32.0.2",
4
+ "version": "33.0.0-alpha.1",
5
5
  "description": "Mastra Playground components",
6
6
  "main": "dist/index.umd.js",
7
7
  "module": "dist/index.es.js",
@@ -86,8 +86,8 @@
86
86
  "react": ">=19.0.0",
87
87
  "react-dom": ">=19.0.0",
88
88
  "tailwindcss": "^4.0.0",
89
- "@mastra/client-js": "^1.23.2",
90
- "@mastra/react": "0.5.2"
89
+ "@mastra/client-js": "^1.24.0-alpha.1",
90
+ "@mastra/react": "0.5.3-alpha.1"
91
91
  },
92
92
  "devDependencies": {
93
93
  "@storybook/addon-a11y": "^10.4.1",
@@ -107,9 +107,9 @@
107
107
  "@vitest/ui": "4.1.5",
108
108
  "class-variance-authority": "^0.7.1",
109
109
  "clsx": "^2.1.1",
110
- "eslint-plugin-react-hooks": "^7.1.0",
110
+ "eslint-plugin-react-hooks": "^7.1.1",
111
111
  "eslint-plugin-react-refresh": "^0.5.2",
112
- "eslint-plugin-storybook": "^10.3.6",
112
+ "eslint-plugin-storybook": "^10.4.2",
113
113
  "jsdom": "^26.1.0",
114
114
  "react": "^19.2.5",
115
115
  "react-dom": "^19.2.5",
@@ -124,9 +124,9 @@
124
124
  "vite-plugin-lib-inject-css": "^2.2.2",
125
125
  "vitest": "4.1.5",
126
126
  "@internal/lint": "0.0.103",
127
- "@mastra/react": "0.5.2",
128
- "@mastra/client-js": "^1.23.2",
129
- "@mastra/core": "1.41.0"
127
+ "@mastra/react": "0.5.3-alpha.1",
128
+ "@mastra/core": "1.42.0-alpha.1",
129
+ "@mastra/client-js": "^1.24.0-alpha.1"
130
130
  },
131
131
  "homepage": "https://mastra.ai",
132
132
  "repository": {