@mastra/playground-ui 24.0.1 → 24.0.2-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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @mastra/playground-ui
2
2
 
3
+ ## 24.0.2-alpha.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated the look and motion of `Dialog`. The surface is now lighter and translucent with a subtle backdrop blur, the typography is tighter, and the open/close animation feels snappier. `SideDialog` and `AlertDialog` pick up the refined ambient shadow as well, since they share the same shadow style. ([#15958](https://github.com/mastra-ai/mastra/pull/15958))
8
+
9
+ - Polished DataList visuals: removed the trailing "No more data to load" message and dropped the bottom border on the last row for a cleaner end-of-list appearance. ([#15959](https://github.com/mastra-ai/mastra/pull/15959))
10
+
11
+ - Refined the DataPanel loading state with a smaller spinner and tightened layout for a less prominent appearance. ([#15965](https://github.com/mastra-ai/mastra/pull/15965))
12
+
13
+ - Updated dependencies [[`920c757`](https://github.com/mastra-ai/mastra/commit/920c75799c6bd71787d86deaf654a35af4c839ca), [`1fe2533`](https://github.com/mastra-ai/mastra/commit/1fe2533c4382ca6858aac7c4b63e888c2eac6541), [`f8694b6`](https://github.com/mastra-ai/mastra/commit/f8694b6fa0b7a5cde71d794c3bbef4957c55bcb8)]:
14
+ - @mastra/core@1.30.0-alpha.1
15
+ - @mastra/client-js@1.15.2-alpha.1
16
+ - @mastra/react@0.2.32-alpha.1
17
+
18
+ ## 24.0.2-alpha.0
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies [[`d587199`](https://github.com/mastra-ai/mastra/commit/d5871993c0371bde2b0717d6b47194755baa1443), [`5339dbe`](https://github.com/mastra-ai/mastra/commit/5339dbef397378847975bb93856353d6c6a722ca)]:
23
+ - @mastra/core@1.29.2-alpha.0
24
+ - @mastra/client-js@1.15.2-alpha.0
25
+ - @mastra/react@0.2.32-alpha.0
26
+
3
27
  ## 24.0.1
4
28
 
5
29
  ### Patch Changes
package/dist/index.cjs.js CHANGED
@@ -6442,12 +6442,7 @@ const DialogOverlay = React__namespace.forwardRef(({ className, ...props }, ref)
6442
6442
  DialogPrimitive__namespace.Overlay,
6443
6443
  {
6444
6444
  ref,
6445
- className: cn(
6446
- "fixed inset-0 z-50 bg-overlay backdrop-blur-sm",
6447
- "data-[state=open]:animate-in data-[state=closed]:animate-out",
6448
- "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
6449
- className
6450
- ),
6445
+ className: cn("dialog-overlay-anim fixed inset-0 z-50 bg-overlay backdrop-blur-xs", className),
6451
6446
  ...props
6452
6447
  }
6453
6448
  ));
@@ -6459,51 +6454,26 @@ const DialogContent = React__namespace.forwardRef(({ className, children, ...pro
6459
6454
  {
6460
6455
  ref,
6461
6456
  className: cn(
6462
- "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%]",
6463
- "gap-4 border border-border1 bg-surface3 py-6 shadow-dialog rounded-lg",
6464
- "duration-slow",
6465
- "data-[state=open]:animate-in data-[state=closed]:animate-out",
6466
- "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
6467
- "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
6468
- "data-[state=closed]:slide-out-to-bottom-4",
6469
- "data-[state=open]:slide-in-from-bottom-4",
6457
+ "dialog-content-anim",
6458
+ "fixed left-[50%] top-[50%] z-50 grid translate-x-[-50%] translate-y-[-50%]",
6459
+ "w-full max-w-[calc(100%-2rem)] sm:max-w-lg",
6460
+ "rounded-xl border border-border1/40 bg-surface2/96 backdrop-blur-md shadow-dialog",
6470
6461
  className
6471
6462
  ),
6472
6463
  ...props,
6473
6464
  children: [
6474
6465
  children,
6475
- /* @__PURE__ */ jsxRuntime.jsxs(
6476
- DialogPrimitive__namespace.Close,
6477
- {
6478
- className: cn(
6479
- "absolute right-4 top-4 rounded-md p-1",
6480
- "text-neutral3 hover:text-neutral6 hover:bg-surface4",
6481
- "transition-all duration-normal ease-out-custom",
6482
- "focus:outline-hidden focus:ring-1 focus:ring-accent1 focus:shadow-focus-ring",
6483
- "disabled:pointer-events-none"
6484
- ),
6485
- children: [
6486
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-4 w-4" }),
6487
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
6488
- ]
6489
- }
6490
- )
6466
+ /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "ghost", size: "sm", className: "absolute top-3 right-3", "aria-label": "Close", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, {}) }) })
6491
6467
  ]
6492
6468
  }
6493
6469
  )
6494
6470
  ] }));
6495
6471
  DialogContent.displayName = DialogPrimitive__namespace.Content.displayName;
6496
- const DialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
6497
- "div",
6498
- {
6499
- className: cn("flex flex-col space-y-1.5 text-center sm:text-left border-b border-border1 pb-4 px-6", className),
6500
- ...props
6501
- }
6502
- );
6472
+ const DialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("flex flex-col gap-0.5 px-4 py-3 text-left", className), ...props });
6503
6473
  DialogHeader.displayName = "DialogHeader";
6504
- const DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
6474
+ const DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("flex flex-col-reverse gap-1.5 px-4 py-2.5 sm:flex-row sm:justify-end", className), ...props });
6505
6475
  DialogFooter.displayName = "DialogFooter";
6506
- const DialogBody = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("overflow-y-auto px-6 max-h-[50vh]", className), ...props });
6476
+ const DialogBody = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("overflow-y-auto px-4 py-3.5 max-h-[50vh]", className), ...props });
6507
6477
  DialogBody.displayName = "DialogBody";
6508
6478
  const DialogTitle = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Title, { ref, className: cn("text-ui-md font-medium", className), ...props }));
6509
6479
  DialogTitle.displayName = DialogPrimitive__namespace.Title.displayName;
@@ -12006,23 +11976,22 @@ function DataListDescriptionCell({ children, className }) {
12006
11976
 
12007
11977
  function DataListNextPageLoading({
12008
11978
  isLoading,
12009
- hasMore,
12010
11979
  setEndOfListElement,
12011
- loadingText = "Loading more data...",
12012
- noMoreDataText = "No more data to load"
11980
+ hasMore,
11981
+ loadingText = "Loading more data..."
12013
11982
  }) {
12014
11983
  if (!setEndOfListElement) {
12015
11984
  return null;
12016
11985
  }
12017
- return /* @__PURE__ */ jsxRuntime.jsxs(
11986
+ return /* @__PURE__ */ jsxRuntime.jsx(
12018
11987
  "div",
12019
11988
  {
12020
11989
  ref: setEndOfListElement,
12021
- className: "col-span-full text-ui-md text-neutral3 opacity-50 flex py-4 justify-center",
12022
- children: [
12023
- isLoading && loadingText,
12024
- !hasMore && !isLoading && noMoreDataText
12025
- ]
11990
+ className: cn("col-span-full text-ui-md text-neutral3 opacity-50 flex justify-center min-h-1", {
11991
+ "py-4": isLoading,
11992
+ "py-0": !hasMore
11993
+ }),
11994
+ children: isLoading && loadingText
12026
11995
  }
12027
11996
  );
12028
11997
  }
@@ -12081,6 +12050,7 @@ const dataListRowStyles = [
12081
12050
  "[.data-list-row:hover+&]:border-t-transparent [.data-list-row:focus-visible+&]:border-t-transparent",
12082
12051
  "[.data-list-subheader+&]:border-t-transparent",
12083
12052
  "[&:has(+.data-list-subheader)]:border-b-transparent",
12053
+ "[&:not(:has(~.data-list-row))]:border-b-transparent",
12084
12054
  "transition-colors duration-200 rounded-lg"
12085
12055
  ];
12086
12056
 
@@ -13657,8 +13627,8 @@ function DataPanelHeading({ className, children }) {
13657
13627
  }
13658
13628
 
13659
13629
  function DataPanelLoadingData({ children }) {
13660
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-center gap-2 px-4 py-6 text-ui-sm text-neutral3", children: [
13661
- /* @__PURE__ */ jsxRuntime.jsx(Spinner, {}),
13630
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-center gap-2 px-4 py-6 text-ui-sm text-neutral2 min-h-32", children: [
13631
+ /* @__PURE__ */ jsxRuntime.jsx(Spinner, { size: "sm", color: tokens.Colors.neutral1 }),
13662
13632
  " ",
13663
13633
  children ?? "Loading..."
13664
13634
  ] });