@mastra/playground-ui 27.0.0-alpha.6 → 27.0.0-alpha.7

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,16 @@
1
1
  # @mastra/playground-ui
2
2
 
3
+ ## 27.0.0-alpha.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Refined Combobox and Select trigger interactions with an active state and fixed value truncation when a leading badge is rendered. Refreshed PanelSeparator with a clearer hover/active affordance, an enlarged hit area, and a focus-visible accent. Removed the default `bg-surface2` background from `Threads` so consumers can control the surface color. ([#16269](https://github.com/mastra-ai/mastra/pull/16269))
8
+
9
+ - Updated dependencies [[`6742347`](https://github.com/mastra-ai/mastra/commit/6742347d71955d7639adc9ddf6ff8282de7ee3ba), [`7b0ad1f`](https://github.com/mastra-ai/mastra/commit/7b0ad1f5c53dc118c6da12ae82ae2587037dc2b8), [`62666c3`](https://github.com/mastra-ai/mastra/commit/62666c367eaeac3941ead454b1d38810cc855721), [`4af2160`](https://github.com/mastra-ai/mastra/commit/4af2160322f4718cac421930cce85641e9512389), [`136c959`](https://github.com/mastra-ai/mastra/commit/136c9592fb0eeb0cd212f28629d8a29b7557a2fc), [`4df7cc7`](https://github.com/mastra-ai/mastra/commit/4df7cc79342fd065fe7fdeef93c094db14b12bcd), [`284b0d7`](https://github.com/mastra-ai/mastra/commit/284b0d78d0edb306413447e5268007491006937c), [`aca3121`](https://github.com/mastra-ai/mastra/commit/aca31211233dac25459f140ea4fcfb3a5af64c18), [`9cdf38e`](https://github.com/mastra-ai/mastra/commit/9cdf38e58506e1109c8b38f97cd7770978a4218e), [`990851e`](https://github.com/mastra-ai/mastra/commit/990851edcb0e30be5c2c18b6532f1a876cc2d335), [`6068a6c`](https://github.com/mastra-ai/mastra/commit/6068a6c42950fad3ebfc92346417896ba60803d2), [`00106be`](https://github.com/mastra-ai/mastra/commit/00106bede59b81e5b0e9cd6aad8d3b5dbc336387), [`e2a079c`](https://github.com/mastra-ai/mastra/commit/e2a079cc3755b1895f7bd5dc36e9be81b11c7c22), [`534a456`](https://github.com/mastra-ai/mastra/commit/534a456a25e4df1e5407e7e632f4cb3b1fa14f9d), [`36bae07`](https://github.com/mastra-ai/mastra/commit/36bae07c0e70b1b3006f2fd20830e8883dcbd066)]:
10
+ - @mastra/core@1.33.0-alpha.7
11
+ - @mastra/client-js@1.18.0-alpha.7
12
+ - @mastra/react@0.2.36-alpha.7
13
+
3
14
  ## 27.0.0-alpha.6
4
15
 
5
16
  ### Patch Changes
package/dist/index.cjs.js CHANGED
@@ -3598,7 +3598,7 @@ const focusRing = {
3598
3598
  };
3599
3599
 
3600
3600
  const Threads = ({ children }) => {
3601
- return /* @__PURE__ */ jsxRuntime.jsx("nav", { className: "bg-surface2 min-h-full overflow-hidden", children });
3601
+ return /* @__PURE__ */ jsxRuntime.jsx("nav", { className: "min-h-full overflow-hidden", children });
3602
3602
  };
3603
3603
  const ThreadLink = ({ children, as: Component = "a", href, className, prefetch, to }) => {
3604
3604
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -6078,13 +6078,12 @@ CollapsibleContent.displayName = CollapsiblePrimitive__namespace.CollapsibleCont
6078
6078
  const comboboxStyles = {
6079
6079
  /** Root wrapper */
6080
6080
  root: "flex flex-col gap-1.5",
6081
- /** Trigger — form input look (rounded-lg, single border, subtle hover/open state).
6082
- * Sized to mirror SelectTrigger: bg-transparent, no pill, no accent ring on focus. */
6081
+ /** Trigger — form input look, sized to mirror SelectTrigger. */
6083
6082
  trigger: cn(
6084
6083
  "inline-flex w-full min-w-32 select-none items-center justify-between gap-1.5 whitespace-nowrap",
6085
6084
  "rounded-lg border border-border1 bg-transparent px-2.5 text-ui-smd leading-ui-sm text-neutral4",
6086
6085
  "outline-none transition-colors duration-normal ease-out-custom",
6087
- "hover:bg-surface3 hover:text-neutral6 hover:border-border2",
6086
+ "hover:bg-surface3 hover:text-neutral6 hover:border-border2 active:bg-surface4",
6088
6087
  "focus:outline-none focus-visible:outline-none focus-visible:border-border2",
6089
6088
  "data-[popup-open]:bg-surface3 data-[popup-open]:text-neutral6 data-[popup-open]:border-border2",
6090
6089
  "disabled:cursor-not-allowed disabled:opacity-50"
@@ -6199,9 +6198,9 @@ function Combobox({
6199
6198
  className
6200
6199
  ),
6201
6200
  children: [
6202
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "truncate flex items-center gap-2", children: [
6201
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex items-center gap-2 min-w-0 flex-1", children: [
6203
6202
  selectedOption?.start,
6204
- /* @__PURE__ */ jsxRuntime.jsx(combobox.Combobox.Value, { placeholder })
6203
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate", children: /* @__PURE__ */ jsxRuntime.jsx(combobox.Combobox.Value, { placeholder }) })
6205
6204
  ] }),
6206
6205
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronsUpDown, { className: comboboxStyles.chevron })
6207
6206
  ]
@@ -6498,7 +6497,7 @@ const SelectTrigger = React__namespace.forwardRef(
6498
6497
  formElementSizes[size],
6499
6498
  "rounded-lg border border-border1 bg-transparent px-2.5 text-ui-smd leading-ui-sm text-neutral4",
6500
6499
  "outline-none transition-colors duration-normal ease-out-custom",
6501
- "hover:bg-surface3 hover:text-neutral6 hover:border-border2",
6500
+ "hover:bg-surface3 hover:text-neutral6 hover:border-border2 active:bg-surface4",
6502
6501
  "focus:outline-none focus-visible:outline-none focus-visible:border-border2",
6503
6502
  "data-[state=open]:bg-surface3 data-[state=open]:text-neutral6 data-[state=open]:border-border2",
6504
6503
  "data-[placeholder]:text-neutral3",
@@ -15654,10 +15653,31 @@ const PanelSeparator = () => {
15654
15653
  reactResizablePanels.Separator,
15655
15654
  {
15656
15655
  className: cn(
15657
- "w-1.5 bg-surface3",
15658
- "data-[separator='hover']:bg-surface4!",
15659
- "data-[separator='active']:bg-surface5!",
15660
- "focus:outline-hidden"
15656
+ "group/separator relative w-0 bg-transparent z-10",
15657
+ "focus:outline-hidden focus-visible:outline-hidden"
15658
+ ),
15659
+ children: /* @__PURE__ */ jsxRuntime.jsx(
15660
+ "span",
15661
+ {
15662
+ "aria-hidden": true,
15663
+ className: cn(
15664
+ "absolute inset-y-0 -left-1 -right-1 flex items-center justify-center",
15665
+ "cursor-col-resize touch-none"
15666
+ ),
15667
+ children: /* @__PURE__ */ jsxRuntime.jsx(
15668
+ "span",
15669
+ {
15670
+ className: cn(
15671
+ "block h-full w-px bg-border1 pointer-events-none",
15672
+ "transition-[width,background-color] duration-150 ease-out motion-reduce:transition-none",
15673
+ "group-hover/separator:w-0.5 group-hover/separator:bg-surface5",
15674
+ "group-data-[separator='hover']/separator:w-0.5 group-data-[separator='hover']/separator:bg-surface5",
15675
+ "group-data-[separator='active']/separator:w-0.5 group-data-[separator='active']/separator:bg-accent1",
15676
+ "group-focus-visible/separator:w-0.5 group-focus-visible/separator:bg-accent1"
15677
+ )
15678
+ }
15679
+ )
15680
+ }
15661
15681
  )
15662
15682
  }
15663
15683
  );