@ai-matrx/design-system 0.61.19 → 0.61.21
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 +12 -0
- package/dist/desktop.cjs +38 -3
- package/dist/desktop.cjs.map +1 -1
- package/dist/desktop.d.cts +21 -1
- package/dist/desktop.d.ts +21 -1
- package/dist/desktop.js +38 -3
- package/dist/desktop.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.61.21
|
|
4
|
+
|
|
5
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
6
|
+
`git diff npm/design-system/v0.61.20..npm/design-system/v0.61.21 -- apps/shared/design-system`).
|
|
7
|
+
No source changes intended and no consumer action required.
|
|
8
|
+
|
|
9
|
+
## 0.61.20
|
|
10
|
+
|
|
11
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
12
|
+
`git diff npm/design-system/v0.61.19..npm/design-system/v0.61.20 -- apps/shared/design-system`).
|
|
13
|
+
No source changes intended and no consumer action required.
|
|
14
|
+
|
|
3
15
|
## 0.61.19 — a switch is not an off-centre pill
|
|
4
16
|
|
|
5
17
|
- Pill-inset guard: a `role="switch"`, `checkbox`, `slider` or `radio` carries state, not a
|
package/dist/desktop.cjs
CHANGED
|
@@ -87,6 +87,8 @@ __export(desktop_exports, {
|
|
|
87
87
|
OrganizationMark: () => OrganizationMark,
|
|
88
88
|
Page: () => Page,
|
|
89
89
|
PageHeader: () => PageHeader,
|
|
90
|
+
PlaceMark: () => PlaceMark,
|
|
91
|
+
PlaceStrip: () => PlaceStrip,
|
|
90
92
|
Popover: () => Popover,
|
|
91
93
|
PopoverAnchor: () => PopoverAnchor,
|
|
92
94
|
PopoverContent: () => PopoverContent,
|
|
@@ -2309,7 +2311,7 @@ function SourceListSection({ title, action, className, children, ...props }) {
|
|
|
2309
2311
|
children
|
|
2310
2312
|
] });
|
|
2311
2313
|
}
|
|
2312
|
-
var SourceListItem = React19.forwardRef(function SourceListItem2({ icon, label, hint, badge, current, className, type = "button", ...props }, ref) {
|
|
2314
|
+
var SourceListItem = React19.forwardRef(function SourceListItem2({ icon, label, hint, badge, current, soon, className, type = "button", ...props }, ref) {
|
|
2313
2315
|
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
2314
2316
|
"button",
|
|
2315
2317
|
{
|
|
@@ -2317,10 +2319,12 @@ var SourceListItem = React19.forwardRef(function SourceListItem2({ icon, label,
|
|
|
2317
2319
|
type,
|
|
2318
2320
|
"data-slot": "source-list-item",
|
|
2319
2321
|
"data-current": current || void 0,
|
|
2322
|
+
"data-soon": soon || void 0,
|
|
2320
2323
|
"aria-current": current ? "page" : void 0,
|
|
2321
2324
|
className: cn(
|
|
2322
2325
|
"focus-ring group/item flex w-full items-center gap-2 rounded-control px-2 text-left text-body text-label transition-colors duration-100 hover:bg-fill disabled:opacity-40",
|
|
2323
|
-
hint ? "min-h-row py-1" : "h-sidebar-row",
|
|
2326
|
+
hint && !soon ? "min-h-row py-1" : "h-sidebar-row",
|
|
2327
|
+
soon && "text-label-tertiary",
|
|
2324
2328
|
current && "bg-selection-muted font-medium hover:bg-selection-muted [[data-window-active=false]_&]:bg-fill",
|
|
2325
2329
|
className
|
|
2326
2330
|
),
|
|
@@ -2329,7 +2333,7 @@ var SourceListItem = React19.forwardRef(function SourceListItem2({ icon, label,
|
|
|
2329
2333
|
icon ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: cn("flex size-icon shrink-0 items-center justify-center text-label-secondary [&_svg]:size-icon", hint && "self-start mt-px"), children: icon }) : null,
|
|
2330
2334
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("span", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
2331
2335
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "truncate", children: label }),
|
|
2332
|
-
hint ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "truncate text-callout font-normal text-label-secondary", children: hint }) : null
|
|
2336
|
+
hint && !soon ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "truncate text-callout font-normal text-label-secondary", children: hint }) : null
|
|
2333
2337
|
] }),
|
|
2334
2338
|
badge ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "flex shrink-0 items-center text-callout tabular-nums text-label-tertiary", children: badge }) : null
|
|
2335
2339
|
]
|
|
@@ -2510,6 +2514,37 @@ function Kbd({ className, ...props }) {
|
|
|
2510
2514
|
}
|
|
2511
2515
|
);
|
|
2512
2516
|
}
|
|
2517
|
+
var PLACE = {
|
|
2518
|
+
in: "bg-tint",
|
|
2519
|
+
out: "border border-label-tertiary",
|
|
2520
|
+
hidden: "border-2 border-tint",
|
|
2521
|
+
open: "bg-system-green"
|
|
2522
|
+
};
|
|
2523
|
+
var PLACE_DOT = {
|
|
2524
|
+
in: "bg-window",
|
|
2525
|
+
out: "bg-label-secondary",
|
|
2526
|
+
hidden: "bg-tint",
|
|
2527
|
+
open: "bg-window"
|
|
2528
|
+
};
|
|
2529
|
+
function PlaceMark({ state, marked = false, label, className, ...props }) {
|
|
2530
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2531
|
+
"span",
|
|
2532
|
+
{
|
|
2533
|
+
role: "img",
|
|
2534
|
+
"aria-label": label,
|
|
2535
|
+
title: label,
|
|
2536
|
+
"data-slot": "place-mark",
|
|
2537
|
+
"data-state": state,
|
|
2538
|
+
"data-marked": marked ? "true" : void 0,
|
|
2539
|
+
className: cn("inline-flex size-3 shrink-0 items-center justify-center rounded-full", PLACE[state], className),
|
|
2540
|
+
...props,
|
|
2541
|
+
children: marked ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: cn("size-1.5 rounded-full", PLACE_DOT[state]) }) : null
|
|
2542
|
+
}
|
|
2543
|
+
);
|
|
2544
|
+
}
|
|
2545
|
+
function PlaceStrip({ className, ...props }) {
|
|
2546
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { "data-slot": "place-strip", className: cn("inline-flex items-center gap-1", className), ...props });
|
|
2547
|
+
}
|
|
2513
2548
|
|
|
2514
2549
|
// src/desktop/coming-soon.tsx
|
|
2515
2550
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|