@ai-matrx/design-system 0.50.7 → 0.50.9

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,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.50.9
4
+
5
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
6
+ `git diff npm/design-system/v0.50.7..npm/design-system/v0.50.9 -- apps/shared/design-system`).
7
+ No source changes intended and no consumer action required.
8
+
9
+ ## 0.50.8
10
+
11
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
12
+ `git diff npm/design-system/v0.50.7..npm/design-system/v0.50.8 -- apps/shared/design-system`).
13
+ No source changes intended and no consumer action required.
14
+
3
15
  ## 0.50.7
4
16
 
5
17
  Automatic changed-only republish (docs/metadata drift since the last tag — see
package/dist/index.cjs CHANGED
@@ -5398,7 +5398,7 @@ var AppRailItem = React34.forwardRef(function AppRailItem2({ icon, label, shortc
5398
5398
  ] }) })
5399
5399
  ] });
5400
5400
  });
5401
- var AppRailAvatar = React34.forwardRef(function AppRailAvatar2({ initials, label, className, ...props }, ref) {
5401
+ var AppRailAvatar = React34.forwardRef(function AppRailAvatar2({ initials = "", label, className, children, ...props }, ref) {
5402
5402
  return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(Tooltip, { children: [
5403
5403
  /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
5404
5404
  "button",
@@ -5408,12 +5408,12 @@ var AppRailAvatar = React34.forwardRef(function AppRailAvatar2({ initials, label
5408
5408
  "data-slot": "app-rail-avatar",
5409
5409
  "aria-label": label,
5410
5410
  className: cn(
5411
- "flex size-7 items-center justify-center rounded-full bg-success text-[10px] font-semibold leading-none tracking-wide text-success-foreground outline-none",
5411
+ "flex size-6 items-center justify-center rounded-full bg-foreground/[0.12] text-[10px] font-semibold leading-none text-foreground/80 outline-none [&_svg]:size-3.5",
5412
5412
  "focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
5413
5413
  className
5414
5414
  ),
5415
5415
  ...props,
5416
- children: initials.slice(0, 2).toUpperCase()
5416
+ children: children ?? initials.slice(0, 2).toUpperCase()
5417
5417
  }
5418
5418
  ) }),
5419
5419
  /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(TooltipContent, { side: "right", align: "center", children: label })
@@ -5423,8 +5423,8 @@ var AppRailAvatar = React34.forwardRef(function AppRailAvatar2({ initials, label
5423
5423
  // src/app-shell/browser.tsx
5424
5424
  var React35 = __toESM(require("react"), 1);
5425
5425
  var import_jsx_runtime45 = require("react/jsx-runtime");
5426
- function BrowserTabs({ tabs, activeId, onSelect, onClose, onNew, className }) {
5427
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { "data-slot": "browser-tabs", role: "tablist", "aria-label": "Tabs", className: cn("flex min-w-0 flex-1 items-center gap-0.5", className), children: [
5426
+ function BrowserTabs({ tabs, activeId, onSelect, onClose, onNew, newLabel = "New tab", label = "Tabs", className }) {
5427
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { "data-slot": "browser-tabs", role: "tablist", "aria-label": label, className: cn("flex min-w-0 flex-1 items-center gap-0.5", className), children: [
5428
5428
  tabs.map((tab) => {
5429
5429
  const active = tab.id === activeId;
5430
5430
  return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
@@ -5448,8 +5448,9 @@ function BrowserTabs({ tabs, activeId, onSelect, onClose, onNew, className }) {
5448
5448
  "aria-selected:bg-background aria-selected:text-foreground aria-selected:shadow-[0_0_0_0.5px_hsl(var(--border)),0_1px_2px_hsl(var(--foreground)/0.06)]"
5449
5449
  ),
5450
5450
  children: [
5451
- tab.icon ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("img", { src: tab.icon, alt: "", className: "size-3.5 shrink-0 rounded-sm" }) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(GlobeIcon, { className: "size-3.5 shrink-0 opacity-70" }),
5451
+ tab.glyph ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "flex size-3.5 shrink-0 items-center justify-center opacity-70 [&_svg]:size-3.5", children: tab.glyph }) : tab.icon ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("img", { src: tab.icon, alt: "", className: "size-3.5 shrink-0 rounded-sm" }) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(GlobeIcon, { className: "size-3.5 shrink-0 opacity-70" }),
5452
5452
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "min-w-0 flex-1 truncate", children: tab.title || "New tab" }),
5453
+ tab.note ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { "data-slot": "browser-tab-note", className: "shrink-0 text-[11px] text-foreground/40", children: tab.note }) : null,
5453
5454
  /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
5454
5455
  "button",
5455
5456
  {
@@ -5477,7 +5478,7 @@ function BrowserTabs({ tabs, activeId, onSelect, onClose, onNew, className }) {
5477
5478
  "button",
5478
5479
  {
5479
5480
  type: "button",
5480
- "aria-label": "New tab",
5481
+ "aria-label": newLabel,
5481
5482
  "data-slot": "browser-tab-new",
5482
5483
  onClick: onNew,
5483
5484
  className: "flex size-6 shrink-0 items-center justify-center rounded-md text-foreground/55 outline-none hover:bg-foreground/[0.07] hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring [&_svg]:size-3.5",
@@ -5503,7 +5504,7 @@ function BarButton({ label, onClick, available = true, children }) {
5503
5504
  }
5504
5505
  );
5505
5506
  }
5506
- function BrowserBar({ url, canGoBack, canGoForward, onBack, onForward, onReload, onNavigate, className }) {
5507
+ function BrowserBar({ url, canGoBack, canGoForward, onBack, onForward, onReload, onNavigate, trailing, className }) {
5507
5508
  const [draft, setDraft] = React35.useState(url);
5508
5509
  const [editing, setEditing] = React35.useState(false);
5509
5510
  React35.useEffect(() => {
@@ -5545,7 +5546,8 @@ function BrowserBar({ url, canGoBack, canGoForward, onBack, onForward, onReload,
5545
5546
  }
5546
5547
  )
5547
5548
  }
5548
- )
5549
+ ),
5550
+ trailing ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { "data-slot": "browser-bar-trailing", className: "ml-1 flex shrink-0 items-center gap-0.5", children: trailing }) : null
5549
5551
  ] });
5550
5552
  }
5551
5553