@ai-matrx/design-system 0.61.19 → 0.61.20
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 +6 -0
- package/dist/desktop.cjs +5 -3
- package/dist/desktop.cjs.map +1 -1
- package/dist/desktop.d.cts +3 -0
- package/dist/desktop.d.ts +3 -0
- package/dist/desktop.js +5 -3
- package/dist/desktop.js.map +1 -1
- package/package.json +1 -1
package/dist/desktop.d.cts
CHANGED
|
@@ -334,6 +334,9 @@ interface SourceListItemProps extends React.ButtonHTMLAttributes<HTMLButtonEleme
|
|
|
334
334
|
badge?: React.ReactNode;
|
|
335
335
|
/** This row is the open page. */
|
|
336
336
|
current?: boolean;
|
|
337
|
+
/** Not built yet: drawn dimmed with no hint (it still opens its Coming soon page). One look for
|
|
338
|
+
* every unbuilt row, so no list repeats "Coming soon" row after row. */
|
|
339
|
+
soon?: boolean;
|
|
337
340
|
}
|
|
338
341
|
declare const SourceListItem: React.ForwardRefExoticComponent<SourceListItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
339
342
|
/** "Show more / Show less" under a long section. */
|
package/dist/desktop.d.ts
CHANGED
|
@@ -334,6 +334,9 @@ interface SourceListItemProps extends React.ButtonHTMLAttributes<HTMLButtonEleme
|
|
|
334
334
|
badge?: React.ReactNode;
|
|
335
335
|
/** This row is the open page. */
|
|
336
336
|
current?: boolean;
|
|
337
|
+
/** Not built yet: drawn dimmed with no hint (it still opens its Coming soon page). One look for
|
|
338
|
+
* every unbuilt row, so no list repeats "Coming soon" row after row. */
|
|
339
|
+
soon?: boolean;
|
|
337
340
|
}
|
|
338
341
|
declare const SourceListItem: React.ForwardRefExoticComponent<SourceListItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
339
342
|
/** "Show more / Show less" under a long section. */
|
package/dist/desktop.js
CHANGED
|
@@ -2175,7 +2175,7 @@ function SourceListSection({ title, action, className, children, ...props }) {
|
|
|
2175
2175
|
children
|
|
2176
2176
|
] });
|
|
2177
2177
|
}
|
|
2178
|
-
var SourceListItem = React19.forwardRef(function SourceListItem2({ icon, label, hint, badge, current, className, type = "button", ...props }, ref) {
|
|
2178
|
+
var SourceListItem = React19.forwardRef(function SourceListItem2({ icon, label, hint, badge, current, soon, className, type = "button", ...props }, ref) {
|
|
2179
2179
|
return /* @__PURE__ */ jsxs13(
|
|
2180
2180
|
"button",
|
|
2181
2181
|
{
|
|
@@ -2183,10 +2183,12 @@ var SourceListItem = React19.forwardRef(function SourceListItem2({ icon, label,
|
|
|
2183
2183
|
type,
|
|
2184
2184
|
"data-slot": "source-list-item",
|
|
2185
2185
|
"data-current": current || void 0,
|
|
2186
|
+
"data-soon": soon || void 0,
|
|
2186
2187
|
"aria-current": current ? "page" : void 0,
|
|
2187
2188
|
className: cn(
|
|
2188
2189
|
"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",
|
|
2189
|
-
hint ? "min-h-row py-1" : "h-sidebar-row",
|
|
2190
|
+
hint && !soon ? "min-h-row py-1" : "h-sidebar-row",
|
|
2191
|
+
soon && "text-label-tertiary",
|
|
2190
2192
|
current && "bg-selection-muted font-medium hover:bg-selection-muted [[data-window-active=false]_&]:bg-fill",
|
|
2191
2193
|
className
|
|
2192
2194
|
),
|
|
@@ -2195,7 +2197,7 @@ var SourceListItem = React19.forwardRef(function SourceListItem2({ icon, label,
|
|
|
2195
2197
|
icon ? /* @__PURE__ */ jsx23("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,
|
|
2196
2198
|
/* @__PURE__ */ jsxs13("span", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
2197
2199
|
/* @__PURE__ */ jsx23("span", { className: "truncate", children: label }),
|
|
2198
|
-
hint ? /* @__PURE__ */ jsx23("span", { className: "truncate text-callout font-normal text-label-secondary", children: hint }) : null
|
|
2200
|
+
hint && !soon ? /* @__PURE__ */ jsx23("span", { className: "truncate text-callout font-normal text-label-secondary", children: hint }) : null
|
|
2199
2201
|
] }),
|
|
2200
2202
|
badge ? /* @__PURE__ */ jsx23("span", { className: "flex shrink-0 items-center text-callout tabular-nums text-label-tertiary", children: badge }) : null
|
|
2201
2203
|
]
|