@mohasinac/appkit 4.8.0 → 4.8.1
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.
|
@@ -18,7 +18,7 @@ const STATUS_TONE_CLASSES = {
|
|
|
18
18
|
};
|
|
19
19
|
function RowAvatar({ image, alt, icon, size = "9" }) {
|
|
20
20
|
const dims = size === "12" ? "h-12 w-12" : "h-9 w-9";
|
|
21
|
-
return (_jsx(Div, { className: `relative ${dims} shrink-0 overflow
|
|
21
|
+
return (_jsx(Div, { className: `relative ${dims} shrink-0`, overflow: "hidden", rounded: "full", children: _jsx(MediaImage, { src: image, alt: alt, size: "avatar", fallback: icon }) }));
|
|
22
22
|
}
|
|
23
23
|
const FLAG_BADGES = [
|
|
24
24
|
{ key: "featured", label: "Featured", color: "bg-warning-surface text-warning dark:bg-warning-surface dark:text-warning" },
|
|
@@ -20,7 +20,7 @@ function buildDefaultColumns(resourceIcon) {
|
|
|
20
20
|
{
|
|
21
21
|
key: "primary",
|
|
22
22
|
header: "Name",
|
|
23
|
-
render: (row) => (_jsxs(Row, { gap: "sm", align: "center", children: [_jsx(Div, { className: "relative h-8 w-8 shrink-0 overflow
|
|
23
|
+
render: (row) => (_jsxs(Row, { gap: "sm", align: "center", children: [_jsx(Div, { className: "relative h-8 w-8 shrink-0", overflow: "hidden", rounded: "full", children: _jsx(MediaImage, { src: typeof row.image === "string" ? row.image : undefined, alt: String(row.primary ?? ""), size: "avatar", fallback: resourceIcon }) }), _jsxs(Stack, { gap: "none", className: "min-w-0", children: [_jsx(Text, { weight: "medium", color: "primary", className: "truncate", children: String(row.primary ?? "") }), row.secondary ? _jsx(Text, { size: "xs", color: "muted", className: "truncate", children: String(row.secondary) }) : null] })] })),
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
key: "status",
|