@mastra/playground-ui 22.0.1 → 22.1.0-alpha.0
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 +22 -0
- package/dist/index.cjs.js +44 -17
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +24 -10
- package/dist/index.es.js +44 -17
- package/dist/index.es.js.map +1 -1
- package/dist/src/ds/components/DataCodeSection/data-code-section.d.ts +9 -0
- package/dist/src/ds/components/DataCodeSection/data-code-section.stories.d.ts +12 -0
- package/dist/src/ds/components/DataCodeSection/index.d.ts +1 -0
- package/dist/src/ds/components/DataKeysAndValues/data-keys-and-values-header.d.ts +5 -0
- package/dist/src/ds/components/DataKeysAndValues/data-keys-and-values-key.d.ts +5 -0
- package/dist/src/ds/components/DataKeysAndValues/data-keys-and-values-root.d.ts +6 -0
- package/dist/src/ds/components/DataKeysAndValues/data-keys-and-values-value.d.ts +5 -0
- package/dist/src/ds/components/DataKeysAndValues/data-keys-and-values.d.ts +9 -0
- package/dist/src/ds/components/DataKeysAndValues/data-keys-and-values.stories.d.ts +11 -0
- package/dist/src/ds/components/DataKeysAndValues/index.d.ts +5 -0
- package/dist/src/ds/components/DataPanel/data-panel-close-button.d.ts +6 -0
- package/dist/src/ds/components/DataPanel/data-panel-content.d.ts +6 -0
- package/dist/src/ds/components/DataPanel/data-panel-header.d.ts +5 -0
- package/dist/src/ds/components/DataPanel/data-panel-heading.d.ts +5 -0
- package/dist/src/ds/components/DataPanel/data-panel-loading-data.d.ts +5 -0
- package/dist/src/ds/components/DataPanel/data-panel-next-prev-nav.d.ts +7 -0
- package/dist/src/ds/components/DataPanel/data-panel-no-data.d.ts +4 -0
- package/dist/src/ds/components/DataPanel/data-panel-root.d.ts +5 -0
- package/dist/src/ds/components/DataPanel/data-panel.d.ts +17 -0
- package/dist/src/ds/components/DataPanel/data-panel.stories.d.ts +12 -0
- package/dist/src/ds/components/DataPanel/index.d.ts +9 -0
- package/dist/src/ds/components/DateTimeRangePicker/date-time-range-picker.d.ts +10 -0
- package/dist/src/ds/components/DateTimeRangePicker/date-time-range-picker.stories.d.ts +9 -0
- package/dist/src/ds/components/DateTimeRangePicker/index.d.ts +2 -0
- package/dist/src/ds/components/FormFieldBlocks/fields/search-field-block.d.ts +3 -1
- package/dist/src/ds/components/FormFieldBlocks/fields/search-field-block.stories.d.ts +1 -0
- package/package.json +13 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @mastra/playground-ui
|
|
2
2
|
|
|
3
|
+
## 22.1.0-alpha.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Search input can now be collapsed into a compact icon button with tooltip and auto-focuses when expanded ([#15130](https://github.com/mastra-ai/mastra/pull/15130))
|
|
8
|
+
|
|
9
|
+
- Added DataKeysAndValues component — a compound component for displaying key-value pairs in a grid layout with support for single or two-column modes and section headers ([#15126](https://github.com/mastra-ai/mastra/pull/15126))
|
|
10
|
+
|
|
11
|
+
- Added DateTimeRangePicker component — a date range selector with preset options (last 24h, 7d, 30d, etc.) and a custom range mode with dual calendar and time pickers ([#15128](https://github.com/mastra-ai/mastra/pull/15128))
|
|
12
|
+
|
|
13
|
+
- Added DataCodeSection component — a read-only code viewer with JSON syntax highlighting, search, multiline toggle, and an expandable fullscreen dialog ([#15125](https://github.com/mastra-ai/mastra/pull/15125))
|
|
14
|
+
|
|
15
|
+
- Added DataPanel compound component — a container for detail panels with header, navigation, close button, loading, and empty states ([#15127](https://github.com/mastra-ai/mastra/pull/15127))
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [[`153e864`](https://github.com/mastra-ai/mastra/commit/153e86476b425db7cd0dc8490050096e92964a38), [`153e864`](https://github.com/mastra-ai/mastra/commit/153e86476b425db7cd0dc8490050096e92964a38), [`b0190af`](https://github.com/mastra-ai/mastra/commit/b0190af9179181aa051fa62162dc0dc686999ffe)]:
|
|
20
|
+
- @mastra/core@1.23.1-alpha.0
|
|
21
|
+
- @mastra/ai-sdk@1.3.3-alpha.0
|
|
22
|
+
- @mastra/client-js@1.13.2-alpha.0
|
|
23
|
+
- @mastra/react@0.2.24-alpha.0
|
|
24
|
+
|
|
3
25
|
## 22.0.1
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/dist/index.cjs.js
CHANGED
|
@@ -35798,8 +35798,31 @@ function SearchFieldBlock({
|
|
|
35798
35798
|
onChange,
|
|
35799
35799
|
onReset,
|
|
35800
35800
|
className,
|
|
35801
|
-
size
|
|
35801
|
+
size,
|
|
35802
|
+
isMinimized,
|
|
35803
|
+
onMinimizedChange
|
|
35802
35804
|
}) {
|
|
35805
|
+
const inputRef = React.useRef(null);
|
|
35806
|
+
React.useEffect(() => {
|
|
35807
|
+
if (isMinimized === false) {
|
|
35808
|
+
inputRef.current?.focus();
|
|
35809
|
+
}
|
|
35810
|
+
}, [isMinimized]);
|
|
35811
|
+
if (isMinimized) {
|
|
35812
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Tooltip, { children: [
|
|
35813
|
+
/* @__PURE__ */ jsxRuntime.jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
35814
|
+
Button,
|
|
35815
|
+
{
|
|
35816
|
+
size: size || "sm",
|
|
35817
|
+
"aria-label": label || "Search",
|
|
35818
|
+
disabled,
|
|
35819
|
+
onClick: () => onMinimizedChange?.(false),
|
|
35820
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.SearchIcon, {})
|
|
35821
|
+
}
|
|
35822
|
+
) }),
|
|
35823
|
+
/* @__PURE__ */ jsxRuntime.jsx(TooltipContent, { children: label || "Search" })
|
|
35824
|
+
] });
|
|
35825
|
+
}
|
|
35803
35826
|
return /* @__PURE__ */ jsxRuntime.jsxs(FieldBlock.Layout, { layout, className, children: [
|
|
35804
35827
|
layout === "horizontal" ? /* @__PURE__ */ jsxRuntime.jsx(FieldBlock.Column, { children: /* @__PURE__ */ jsxRuntime.jsx(FieldBlock.Label, { name, required, children: labelIsHidden ? /* @__PURE__ */ jsxRuntime.jsx(VisuallyHidden.VisuallyHidden, { children: label }) : label }) }) : null,
|
|
35805
35828
|
/* @__PURE__ */ jsxRuntime.jsxs(FieldBlock.Column, { children: [
|
|
@@ -35808,6 +35831,7 @@ function SearchFieldBlock({
|
|
|
35808
35831
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
35809
35832
|
Input,
|
|
35810
35833
|
{
|
|
35834
|
+
ref: inputRef,
|
|
35811
35835
|
name,
|
|
35812
35836
|
disabled,
|
|
35813
35837
|
value,
|
|
@@ -35815,10 +35839,10 @@ function SearchFieldBlock({
|
|
|
35815
35839
|
onChange,
|
|
35816
35840
|
size,
|
|
35817
35841
|
className: cn(
|
|
35818
|
-
size === "sm" && "pl-8",
|
|
35819
|
-
size === "md" && "pl-9",
|
|
35820
|
-
(!size || size === "default") && "pl-10",
|
|
35821
|
-
size === "lg" && "pl-11"
|
|
35842
|
+
size === "sm" && "pl-8 pr-8",
|
|
35843
|
+
size === "md" && "pl-9 pr-9",
|
|
35844
|
+
(!size || size === "default") && "pl-10 pr-10",
|
|
35845
|
+
size === "lg" && "pl-11 pr-11"
|
|
35822
35846
|
)
|
|
35823
35847
|
}
|
|
35824
35848
|
),
|
|
@@ -35835,19 +35859,22 @@ function SearchFieldBlock({
|
|
|
35835
35859
|
)
|
|
35836
35860
|
}
|
|
35837
35861
|
),
|
|
35838
|
-
onReset && value && /* @__PURE__ */ jsxRuntime.jsx(
|
|
35839
|
-
|
|
35862
|
+
onReset && (value || isMinimized === false) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
35863
|
+
Button,
|
|
35840
35864
|
{
|
|
35841
|
-
|
|
35842
|
-
|
|
35843
|
-
|
|
35844
|
-
|
|
35845
|
-
|
|
35846
|
-
|
|
35847
|
-
|
|
35848
|
-
|
|
35849
|
-
|
|
35850
|
-
|
|
35865
|
+
variant: "ghost",
|
|
35866
|
+
size: size || "default",
|
|
35867
|
+
"aria-label": "Clear search",
|
|
35868
|
+
onClick: () => {
|
|
35869
|
+
if (value) {
|
|
35870
|
+
onReset();
|
|
35871
|
+
}
|
|
35872
|
+
if (isMinimized === false) {
|
|
35873
|
+
onMinimizedChange?.(true);
|
|
35874
|
+
}
|
|
35875
|
+
},
|
|
35876
|
+
className: "absolute top-1/2 right-0 -translate-y-1/2",
|
|
35877
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.XIcon, {})
|
|
35851
35878
|
}
|
|
35852
35879
|
)
|
|
35853
35880
|
] }),
|