@the-portland-company/shell 0.16.3 → 0.16.4
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/dist/native.cjs +8 -1
- package/dist/native.cjs.map +1 -1
- package/dist/native.d.cts +3 -1
- package/dist/native.d.ts +3 -1
- package/dist/native.js +8 -1
- package/dist/native.js.map +1 -1
- package/package.json +1 -1
package/dist/native.d.cts
CHANGED
|
@@ -271,8 +271,10 @@ declare function NavSidebar({ pathname, brand, nav, org, mode, footer, linkCompo
|
|
|
271
271
|
type NavUser = {
|
|
272
272
|
name: string | null;
|
|
273
273
|
email?: string | null;
|
|
274
|
-
/**
|
|
274
|
+
/** Profile PHOTO url — highest-precedence avatar source. */
|
|
275
275
|
avatarUrl?: string | null;
|
|
276
|
+
/** Memoji url — used when no photo is set; falls back to initials. */
|
|
277
|
+
memojiUrl?: string | null;
|
|
276
278
|
tier?: string | null;
|
|
277
279
|
role?: string | null;
|
|
278
280
|
};
|
package/dist/native.d.ts
CHANGED
|
@@ -271,8 +271,10 @@ declare function NavSidebar({ pathname, brand, nav, org, mode, footer, linkCompo
|
|
|
271
271
|
type NavUser = {
|
|
272
272
|
name: string | null;
|
|
273
273
|
email?: string | null;
|
|
274
|
-
/**
|
|
274
|
+
/** Profile PHOTO url — highest-precedence avatar source. */
|
|
275
275
|
avatarUrl?: string | null;
|
|
276
|
+
/** Memoji url — used when no photo is set; falls back to initials. */
|
|
277
|
+
memojiUrl?: string | null;
|
|
276
278
|
tier?: string | null;
|
|
277
279
|
role?: string | null;
|
|
278
280
|
};
|
package/dist/native.js
CHANGED
|
@@ -1132,7 +1132,14 @@ function NavTopBar({
|
|
|
1132
1132
|
themeToggle,
|
|
1133
1133
|
/* @__PURE__ */ jsxs("details", { className: "group/acct relative", children: [
|
|
1134
1134
|
/* @__PURE__ */ jsxs("summary", { className: "group/tbtip relative flex cursor-pointer list-none items-center gap-2.5 rounded-full py-1 pl-1 pr-2 transition hover:bg-[color:var(--panel-elevated)] [&::-webkit-details-marker]:hidden", children: [
|
|
1135
|
-
/* @__PURE__ */ jsx("span", { className: "flex h-[var(--topbar-icon-button-size,32px)] w-[var(--topbar-icon-button-size,32px)] items-center justify-center overflow-hidden rounded-full bg-[color:var(--color-race-red)] text-xs font-bold text-white", children: user?.avatarUrl ? /* @__PURE__ */ jsx(
|
|
1135
|
+
/* @__PURE__ */ jsx("span", { className: "flex h-[var(--topbar-icon-button-size,32px)] w-[var(--topbar-icon-button-size,32px)] items-center justify-center overflow-hidden rounded-full bg-[color:var(--color-race-red)] text-xs font-bold text-white", children: user?.avatarUrl || user?.memojiUrl ? /* @__PURE__ */ jsx(
|
|
1136
|
+
"img",
|
|
1137
|
+
{
|
|
1138
|
+
src: user.avatarUrl || user.memojiUrl,
|
|
1139
|
+
alt: "",
|
|
1140
|
+
className: "h-full w-full object-cover"
|
|
1141
|
+
}
|
|
1142
|
+
) : initials }),
|
|
1136
1143
|
/* @__PURE__ */ jsxs("span", { className: "hidden flex-col leading-tight md:flex", children: [
|
|
1137
1144
|
/* @__PURE__ */ jsx("span", { className: "text-sm font-semibold text-[color:var(--foreground)]", children: user?.name ?? "Signed in" }),
|
|
1138
1145
|
/* @__PURE__ */ jsx("span", { className: "text-xs text-[color:var(--muted)]", children: secondary })
|