@mastra/playground-ui 30.0.1 → 30.0.2-alpha.2
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 +59 -0
- package/dist/index.cjs.js +109 -98
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +28 -58
- package/dist/index.es.js +117 -107
- package/dist/index.es.js.map +1 -1
- package/dist/src/ds/components/Drawer/drawer.d.ts +5 -26
- package/dist/src/ds/components/MainSidebar/main-sidebar-nav-link.d.ts +3 -2
- package/dist/src/ds/components/SideDialog/side-dialog-content.d.ts +0 -3
- package/dist/src/ds/primitives/visually-hidden.d.ts +2 -0
- package/package.json +6 -13
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Drawer as DrawerPrimitive } from '@base-ui/react/drawer';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
export type DrawerSide = 'top' | 'right' | 'bottom' | 'left';
|
|
4
|
+
export declare const useDrawerSide: () => DrawerSide;
|
|
4
5
|
export type DrawerProps<Payload = unknown> = Omit<DrawerPrimitive.Root.Props<Payload>, 'swipeDirection'> & {
|
|
5
6
|
/** Edge the drawer is anchored to. Defaults to `bottom`. */
|
|
6
7
|
side?: DrawerSide;
|
|
@@ -26,6 +27,7 @@ declare const DrawerIndent: React.ForwardRefExoticComponent<Omit<import('@base-u
|
|
|
26
27
|
declare const DrawerIndentBackground: React.ForwardRefExoticComponent<Omit<import('@base-ui/react').DrawerIndentBackgroundProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
27
28
|
declare const DrawerSwipeArea: React.ForwardRefExoticComponent<Omit<import('@base-ui/react').DrawerSwipeAreaProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
28
29
|
declare const createDrawerHandle: typeof DrawerPrimitive.createHandle;
|
|
30
|
+
declare const DrawerInteractive: React.ForwardRefExoticComponent<Omit<import('@base-ui/react').DrawerContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
29
31
|
type DrawerBackdropProps = Omit<DrawerPrimitive.Backdrop.Props, 'className'> & {
|
|
30
32
|
className?: string;
|
|
31
33
|
};
|
|
@@ -38,33 +40,10 @@ type DrawerPopupProps = Omit<DrawerPrimitive.Popup.Props, 'className'> & {
|
|
|
38
40
|
className?: string;
|
|
39
41
|
};
|
|
40
42
|
declare const DrawerPopup: React.ForwardRefExoticComponent<Omit<DrawerPopupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
41
|
-
type DrawerContentProps = Omit<DrawerPrimitive.Popup.Props, 'className'> & {
|
|
43
|
+
type DrawerContentProps = Omit<DrawerPrimitive.Popup.Props, 'className' | 'children'> & {
|
|
42
44
|
className?: string;
|
|
43
|
-
|
|
44
|
-
container?: HTMLElement | null;
|
|
45
|
-
/** Hide the dimmed backdrop layer (use for non-modal drawers). */
|
|
46
|
-
hideBackdrop?: boolean;
|
|
47
|
-
/** Hide the built-in close button. */
|
|
48
|
-
hideCloseButton?: boolean;
|
|
49
|
-
/** Hide the drag handle shown on top/bottom sheets. */
|
|
50
|
-
hideHandle?: boolean;
|
|
45
|
+
children?: React.ReactNode;
|
|
51
46
|
};
|
|
52
|
-
/**
|
|
53
|
-
* Convenience composition of Portal + Backdrop + Viewport + Popup.
|
|
54
|
-
*
|
|
55
|
-
* Children sit in a plain `<div>`, not Base UI's `Drawer.Content`. `Drawer.Content`
|
|
56
|
-
* marks its subtree as mouse-text-selectable, so a *pointer* drag inside it selects
|
|
57
|
-
* text instead of swiping (touch still swipes). A plain `<div>` keeps the entire
|
|
58
|
-
* panel drag-to-dismiss for pointer and touch alike. Pair this with not putting
|
|
59
|
-
* `pointer-events: none` on a modal viewport — that also blocks the swipe.
|
|
60
|
-
*
|
|
61
|
-
* `hideBackdrop` marks the drawer as non-modal: it drops the backdrop and switches the
|
|
62
|
-
* viewport to `pointer-events: none` (popup re-enables its own) so the page behind
|
|
63
|
-
* stays interactive — the only case where that opt-out is correct.
|
|
64
|
-
*
|
|
65
|
-
* For layouts that need their own structure, compose the styled parts
|
|
66
|
-
* (`DrawerPortal`, `DrawerBackdrop`, `DrawerViewport`, `DrawerPopup`) directly instead.
|
|
67
|
-
*/
|
|
68
47
|
declare const DrawerContent: React.ForwardRefExoticComponent<Omit<DrawerContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
69
48
|
declare const DrawerHeader: {
|
|
70
49
|
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -86,5 +65,5 @@ type DrawerDescriptionProps = Omit<DrawerPrimitive.Description.Props, 'className
|
|
|
86
65
|
className?: string;
|
|
87
66
|
};
|
|
88
67
|
declare const DrawerDescription: React.ForwardRefExoticComponent<Omit<DrawerDescriptionProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
89
|
-
export { Drawer, DrawerTrigger, DrawerClose, DrawerPortal, DrawerBackdrop, DrawerViewport, DrawerPopup, DrawerContent, DrawerHeader, DrawerFooter, DrawerBody, DrawerTitle, DrawerDescription, DrawerProvider, DrawerIndent, DrawerIndentBackground, DrawerSwipeArea, createDrawerHandle, };
|
|
68
|
+
export { Drawer, DrawerTrigger, DrawerClose, DrawerPortal, DrawerBackdrop, DrawerViewport, DrawerPopup, DrawerContent, DrawerHeader, DrawerFooter, DrawerBody, DrawerTitle, DrawerDescription, DrawerProvider, DrawerIndent, DrawerIndentBackground, DrawerSwipeArea, DrawerInteractive, createDrawerHandle, };
|
|
90
69
|
export type { DrawerTriggerProps, DrawerCloseProps, DrawerBackdropProps, DrawerViewportProps, DrawerPopupProps, DrawerContentProps, DrawerTitleProps, DrawerDescriptionProps, };
|
|
@@ -31,9 +31,10 @@ export type MainSidebarNavLinkProps = Omit<ComponentPropsWithoutRef<'li'>, 'chil
|
|
|
31
31
|
/** Override the Provider-level LinkComponent for this row. Defaults to `<a>` when neither is set. */
|
|
32
32
|
LinkComponent?: LinkComponent;
|
|
33
33
|
/**
|
|
34
|
-
* When true, render `children` as the interactive element
|
|
34
|
+
* When true, render `children` as the interactive element.
|
|
35
35
|
* Use for `<button>` items or custom router Links. Item classes are forwarded
|
|
36
|
-
* to the slotted element. `link` and `LinkComponent` are ignored
|
|
36
|
+
* to the slotted element. `link.url` and `LinkComponent` are ignored; other
|
|
37
|
+
* `link` presentation fields still apply when supplied.
|
|
37
38
|
*/
|
|
38
39
|
asChild?: boolean;
|
|
39
40
|
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
export type SideDialogContentProps = {
|
|
2
2
|
children?: React.ReactNode;
|
|
3
3
|
className?: string;
|
|
4
|
-
isCentered?: boolean;
|
|
5
|
-
isFullHeight?: boolean;
|
|
6
|
-
variant?: 'default' | 'confirmation';
|
|
7
4
|
};
|
|
8
5
|
export declare function SideDialogContent({ children, className }: SideDialogContentProps): import("react/jsx-runtime").JSX.Element;
|
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.2-alpha.2",
|
|
5
5
|
"description": "Mastra Playground components",
|
|
6
6
|
"main": "dist/index.umd.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
@@ -61,13 +61,6 @@
|
|
|
61
61
|
"@codemirror/view": "^6.40.0",
|
|
62
62
|
"@hello-pangea/dnd": "^18.0.1",
|
|
63
63
|
"@lezer/highlight": "^1.2.3",
|
|
64
|
-
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
65
|
-
"@radix-ui/react-collapsible": "^1.1.12",
|
|
66
|
-
"@radix-ui/react-dialog": "^1.1.15",
|
|
67
|
-
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
68
|
-
"@radix-ui/react-popover": "^1.1.15",
|
|
69
|
-
"@radix-ui/react-slot": "^1.2.4",
|
|
70
|
-
"@radix-ui/react-tooltip": "^1.2.8",
|
|
71
64
|
"@radix-ui/react-visually-hidden": "^1.2.4",
|
|
72
65
|
"@tanstack/react-virtual": "^3.13.22",
|
|
73
66
|
"@uiw/codemirror-theme-dracula": "^4.25.9",
|
|
@@ -92,8 +85,8 @@
|
|
|
92
85
|
"react": ">=19.0.0",
|
|
93
86
|
"react-dom": ">=19.0.0",
|
|
94
87
|
"tailwindcss": "^4.0.0",
|
|
95
|
-
"@mastra/client-js": "^1.21.
|
|
96
|
-
"@mastra/react": "0.4.2"
|
|
88
|
+
"@mastra/client-js": "^1.21.2-alpha.2",
|
|
89
|
+
"@mastra/react": "0.4.3-alpha.2"
|
|
97
90
|
},
|
|
98
91
|
"devDependencies": {
|
|
99
92
|
"@storybook/addon-a11y": "^10.3.6",
|
|
@@ -129,10 +122,10 @@
|
|
|
129
122
|
"vite-plugin-dts": "^4.5.4",
|
|
130
123
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
131
124
|
"vitest": "4.1.5",
|
|
125
|
+
"@mastra/react": "0.4.3-alpha.2",
|
|
126
|
+
"@mastra/core": "1.38.0-alpha.2",
|
|
132
127
|
"@internal/lint": "0.0.99",
|
|
133
|
-
"@mastra/
|
|
134
|
-
"@mastra/client-js": "^1.21.1",
|
|
135
|
-
"@mastra/core": "1.37.1"
|
|
128
|
+
"@mastra/client-js": "^1.21.2-alpha.2"
|
|
136
129
|
},
|
|
137
130
|
"homepage": "https://mastra.ai",
|
|
138
131
|
"repository": {
|