@mastra/playground-ui 26.0.1 → 26.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.
Files changed (39) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/dist/index.cjs.js +1030 -427
  3. package/dist/index.cjs.js.map +1 -1
  4. package/dist/index.css +646 -307
  5. package/dist/index.es.js +1025 -426
  6. package/dist/index.es.js.map +1 -1
  7. package/dist/src/ds/components/Badge/badge.stories.d.ts +1 -7
  8. package/dist/src/ds/components/CodeBlock/code-block.d.ts +18 -0
  9. package/dist/src/ds/components/CodeBlock/code-block.stories.d.ts +12 -0
  10. package/dist/src/ds/components/CodeBlock/index.d.ts +1 -0
  11. package/dist/src/ds/components/Combobox/combobox-styles.d.ts +17 -16
  12. package/dist/src/ds/components/Combobox/combobox.d.ts +3 -3
  13. package/dist/src/ds/components/Combobox/multi-combobox.d.ts +2 -1
  14. package/dist/src/ds/components/MainSidebar/main-sidebar-bottom.d.ts +3 -5
  15. package/dist/src/ds/components/MainSidebar/main-sidebar-context.d.ts +49 -3
  16. package/dist/src/ds/components/MainSidebar/main-sidebar-mobile-trigger.d.ts +6 -0
  17. package/dist/src/ds/components/MainSidebar/main-sidebar-nav-header.d.ts +4 -3
  18. package/dist/src/ds/components/MainSidebar/main-sidebar-nav-label.d.ts +18 -0
  19. package/dist/src/ds/components/MainSidebar/main-sidebar-nav-link.d.ts +25 -5
  20. package/dist/src/ds/components/MainSidebar/main-sidebar-nav-list.d.ts +3 -11
  21. package/dist/src/ds/components/MainSidebar/main-sidebar-nav-section.d.ts +4 -5
  22. package/dist/src/ds/components/MainSidebar/main-sidebar-nav-separator.d.ts +3 -4
  23. package/dist/src/ds/components/MainSidebar/main-sidebar-nav.d.ts +3 -5
  24. package/dist/src/ds/components/MainSidebar/main-sidebar-sections.d.ts +19 -0
  25. package/dist/src/ds/components/MainSidebar/main-sidebar-trigger.d.ts +3 -4
  26. package/dist/src/ds/components/MainSidebar/main-sidebar.d.ts +10 -2
  27. package/dist/src/ds/components/MainSidebar/main-sidebar.stories.d.ts +7 -0
  28. package/dist/src/ds/components/Notice/notice.stories.d.ts +1 -0
  29. package/dist/src/ds/components/ScrollArea/scroll-area.d.ts +4 -0
  30. package/dist/src/ds/components/Select/select.d.ts +2 -0
  31. package/dist/src/ds/components/SettingsRow/index.d.ts +1 -0
  32. package/dist/src/ds/components/SettingsRow/settings-row.d.ts +9 -0
  33. package/dist/src/ds/components/SettingsRow/settings-row.stories.d.ts +9 -0
  34. package/dist/src/ds/primitives/form-element.d.ts +1 -1
  35. package/dist/src/index.d.ts +2 -1
  36. package/package.json +7 -6
  37. package/dist/src/ds/components/FormFields/index.d.ts +0 -1
  38. package/dist/src/ds/components/FormFields/select-field.d.ts +0 -23
  39. package/dist/src/ds/components/FormFields/select-field.stories.d.ts +0 -14
package/CHANGELOG.md CHANGED
@@ -1,5 +1,75 @@
1
1
  # @mastra/playground-ui
2
2
 
3
+ ## 26.1.0-alpha.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Added CodeBlock component with select/tabs switcher, optional shiki syntax highlighting, and Notion-style hover-only copy button (always visible on touch devices via media query). ([#16202](https://github.com/mastra-ai/mastra/pull/16202))
8
+
9
+ - **Added** `MainSidebar.NavLabel` — collapse-aware label slot for `asChild` nav items. When the sidebar collapses to icon-only mode, the label hides via `VisuallyHidden` (still announced by screen readers) instead of leaking outside the 36px icon rail. The default `link={...}` path was already collapse-aware; `asChild` consumers now have a matching primitive. ([#16167](https://github.com/mastra-ai/mastra/pull/16167))
10
+
11
+ ```tsx
12
+ // Before: text leaked visually when the sidebar collapsed
13
+ <MainSidebar.NavLink asChild>
14
+ <button>
15
+ <Bot />
16
+ Agents
17
+ </button>
18
+ </MainSidebar.NavLink>
19
+
20
+ // After: wrap labels in MainSidebar.NavLabel
21
+ <MainSidebar.NavLink asChild>
22
+ <button>
23
+ <Bot />
24
+ <MainSidebar.NavLabel>Agents</MainSidebar.NavLabel>
25
+ </button>
26
+ </MainSidebar.NavLink>
27
+ ```
28
+
29
+ **Improved** truncation handling for nav items and section headers. Long labels now clip with a single-line ellipsis instead of wrapping to a second line during the collapse/expand transition, eliminating layout jumps at narrow widths.
30
+
31
+ - Added SettingsRow primitive for label/description + control rows in settings pages. Markup mirrors the existing platform settings row pattern (flex justify-between with title + optional description on the left, control on the right) so consumers can adopt it without visual regressions. ([#16150](https://github.com/mastra-ai/mastra/pull/16150))
32
+
33
+ Removed the redundant SelectField wrapper. Its only internal consumer (Studio settings) was migrated to SettingsRow + Select primitives. For form fields use SelectFieldBlock; for settings rows use SettingsRow.
34
+
35
+ **Before**
36
+
37
+ ```tsx
38
+ <SelectField name="theme" label="Theme mode" value={theme} onValueChange={setTheme} options={THEME_OPTIONS} />
39
+ ```
40
+
41
+ **After**
42
+
43
+ ```tsx
44
+ <SettingsRow label="Theme mode" htmlFor="theme">
45
+ <Select value={theme} onValueChange={setTheme}>
46
+ <SelectTrigger id="theme" className="w-full sm:w-48">
47
+ <SelectValue />
48
+ </SelectTrigger>
49
+ <SelectContent>{/* items */}</SelectContent>
50
+ </Select>
51
+ </SettingsRow>
52
+ ```
53
+
54
+ ### Patch Changes
55
+
56
+ - Refreshed the visual style of form controls and popups for a softer, more consistent look: ([#16150](https://github.com/mastra-ai/mastra/pull/16150))
57
+ - **Button:** thinner border (`border` instead of `border-2`); text-mode buttons use `rounded-full`; icon-mode buttons are circular.
58
+ - **Combobox / Select / DropdownMenu / Command:** triggers and items aligned on the form-input look — `rounded-lg` border, transparent background, soft hover/open states, consistent `text-ui-smd` typography.
59
+ - **Popups (Popover / Tooltip / Select / Dropdown content):** `rounded-xl` containers with `shadow-dialog`; inner items `rounded-lg` inside `p-1`.
60
+ - **Tokens:** bumped the radius scale (`sm` 2→4px, `md` 4→6px, `lg` 6→10px, `xl` 12→14px); replaced `--shadow-dialog`'s outer 1px ring with an inset top gloss so the dialog shadow stops doubling up with each consumer's own border.
61
+
62
+ - Aligned Badge variant colors with the Notice and Toast palette so the design system uses one consistent set of semantic colors. Default badges keep their neutral surface, while success, error, info and warning variants now use the same notice tokens as Notices and Toasts. Icons inside badges are sized down to match the badge height. ([#16215](https://github.com/mastra-ai/mastra/pull/16215))
63
+
64
+ - Restored auto-refresh on the traces list page, polling every 10 seconds. Polling is paused while the request is forbidden (HTTP 403) to avoid flicker. ([#16204](https://github.com/mastra-ai/mastra/pull/16204))
65
+
66
+ - Fixed Notice component alignment with action: button now stays at default sm size, vertically aligns to first text line via negative margin compensation, and stacks below the message as a full-width button on narrow containers. ([#16150](https://github.com/mastra-ai/mastra/pull/16150))
67
+
68
+ - Updated dependencies [[`ac47842`](https://github.com/mastra-ai/mastra/commit/ac478427aa7a5f5fdaed633a911218689b438c60)]:
69
+ - @mastra/core@1.33.0-alpha.0
70
+ - @mastra/client-js@1.17.2-alpha.0
71
+ - @mastra/react@0.2.36-alpha.0
72
+
3
73
  ## 26.0.1
4
74
 
5
75
  ### Patch Changes