@ai-matrx/design-system 0.50.7 → 0.50.11
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 +24 -0
- package/dist/data-table/index.cjs +5 -2
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.js +5 -2
- package/dist/data-table/index.js.map +1 -1
- package/dist/index.cjs +11 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -3
- package/dist/index.d.ts +19 -3
- package/dist/index.js +11 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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-
|
|
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":
|
|
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":
|
|
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
|
|