@the-portland-company/shell 0.75.0 → 0.75.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.
- package/CHANGELOG.md +8 -0
- package/dist/app-chrome.cjs +8 -8
- package/dist/app-chrome.cjs.map +1 -1
- package/dist/app-chrome.js +6 -6
- package/dist/app-chrome.js.map +1 -1
- package/dist/chrome.css +22 -2
- package/dist/{chunk-QUXD4PZ7.js → chunk-AQMSMAK2.js} +10 -8
- package/dist/chunk-AQMSMAK2.js.map +1 -0
- package/dist/index.cjs +33 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.js +33 -3
- package/dist/index.js.map +1 -1
- package/dist/native.cjs +8 -6
- package/dist/native.cjs.map +1 -1
- package/dist/native.d.cts +6 -3
- package/dist/native.d.ts +6 -3
- package/dist/native.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-QUXD4PZ7.js.map +0 -1
package/dist/chrome.css
CHANGED
|
@@ -47,6 +47,16 @@
|
|
|
47
47
|
|
|
48
48
|
/* Typography */
|
|
49
49
|
--font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
|
|
50
|
+
/* The shared mono font token (Reference/UI-Platform → Typography:
|
|
51
|
+
"Monospace metadata surfaces ... use the shared mono font token, not a
|
|
52
|
+
hand-picked monospace stack"). The Brand API has no mono family of its
|
|
53
|
+
own, so this is the ONE name every mono-context surface in the shell
|
|
54
|
+
consumes (counts, the Debug info modal, the short org ID, build-meta
|
|
55
|
+
rows) — previously scattered across three different, never-defined var
|
|
56
|
+
names (--font-sans, --font-mono, --font-plex-mono), none of which this
|
|
57
|
+
stylesheet emitted, so every one of those surfaces silently fell back to
|
|
58
|
+
a hardcoded stack instead of a token the shell actually controls. */
|
|
59
|
+
--font-mono: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
|
|
50
60
|
--type-h1-size: 2.25rem;
|
|
51
61
|
--type-h1-weight: 700;
|
|
52
62
|
--type-h1-line-height: 1.25;
|
|
@@ -283,9 +293,19 @@
|
|
|
283
293
|
--color-bg: var(--surface-2, var(--color-layer-1));
|
|
284
294
|
--color-surface: var(--surface-1, var(--color-layer-3));
|
|
285
295
|
--color-surface-2: var(--color-layer-2);
|
|
286
|
-
--color-panel
|
|
296
|
+
/* --color-panel is the CARD surface apps render content on — distinct from
|
|
297
|
+
--color-surface (the page background, aliased to --surface-1 /
|
|
298
|
+
#F0F4F7). It used to alias --color-surface, so every card rendered in
|
|
299
|
+
the muted page-surface tint instead of the Brand "Card" white (Brand
|
|
300
|
+
guideline "Card"). */
|
|
301
|
+
--color-panel: var(--color-layer-3);
|
|
287
302
|
--color-panel-2: var(--color-surface-2);
|
|
288
|
-
--color-border
|
|
303
|
+
/* --color-border is the border apps draw around CONTENT (cards, panels,
|
|
304
|
+
dividers) — it used to alias --line / --sidebar-border, a token scoped
|
|
305
|
+
to the always-dark left rail. On a light card that read as a dark
|
|
306
|
+
border leaking out of the rail's palette. Content borders are the
|
|
307
|
+
neutral Brand G3 ramp step instead. */
|
|
308
|
+
--color-border: var(--color-g3);
|
|
289
309
|
--color-text: var(--foreground);
|
|
290
310
|
--color-text-muted: var(--muted);
|
|
291
311
|
--color-muted: var(--muted);
|
|
@@ -2649,7 +2649,7 @@ function NavSidebar({
|
|
|
2649
2649
|
"div",
|
|
2650
2650
|
{
|
|
2651
2651
|
"data-shell-meta": true,
|
|
2652
|
-
className: `mt-1.5 flex flex-col items-center gap-0.5 font-[family-name:var(--font-
|
|
2652
|
+
className: `mt-1.5 flex flex-col items-center gap-0.5 font-[family-name:var(--font-mono,ui-monospace,monospace)] text-[11px] text-[color:var(--sidebar-meta-text,rgba(255,255,255,0.4))] ${rc("max-md:hidden")}`,
|
|
2653
2653
|
children: [
|
|
2654
2654
|
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-1.5", children: [
|
|
2655
2655
|
footer.envLabel ? shortEnvLabel(footer.envLabel) : null,
|
|
@@ -2799,7 +2799,7 @@ function NavActiveRail() {
|
|
|
2799
2799
|
function NavRowBadge({ value }) {
|
|
2800
2800
|
const rc = useRailCollapse();
|
|
2801
2801
|
if (value === void 0 || value === null || value === "") return null;
|
|
2802
|
-
return /* @__PURE__ */ jsx("span", { className: `ml-auto shrink-0 font-[family-name:var(--font-
|
|
2802
|
+
return /* @__PURE__ */ jsx("span", { className: `ml-auto shrink-0 font-[family-name:var(--font-mono,ui-monospace,monospace)] text-[11px] font-semibold leading-none text-[color:var(--sidebar-caption,var(--sidebar-text-muted,var(--muted)))] ${rc("max-md:hidden")}`, children: value });
|
|
2803
2803
|
}
|
|
2804
2804
|
function NavSectionRow({
|
|
2805
2805
|
label,
|
|
@@ -2913,7 +2913,7 @@ function OrgIdCopyButton({ id }) {
|
|
|
2913
2913
|
setTimeout(() => setCopied(false), 1500);
|
|
2914
2914
|
},
|
|
2915
2915
|
title: "Copy organization id",
|
|
2916
|
-
className: "-ml-1 rounded px-1 text-left font-[family-name:var(--font-
|
|
2916
|
+
className: "-ml-1 rounded px-1 text-left font-[family-name:var(--font-mono,ui-monospace,monospace)] text-[12px] leading-[1.2] text-[color:var(--sidebar-caption,var(--sidebar-text-muted,var(--muted)))] hover:bg-[color:var(--sidebar-row-hover-bg,var(--panel))]",
|
|
2917
2917
|
children: copied ? "Copied" : `\u2026${id.slice(-8)}`
|
|
2918
2918
|
}
|
|
2919
2919
|
);
|
|
@@ -2973,7 +2973,7 @@ function NavTopBar({
|
|
|
2973
2973
|
"kbd",
|
|
2974
2974
|
{
|
|
2975
2975
|
"aria-hidden": true,
|
|
2976
|
-
className: "pointer-events-none absolute right-[10px] hidden md:block rounded-[3px] border border-[color:var(--line)] px-[5px] py-px font-[family-name:var(--font-
|
|
2976
|
+
className: "pointer-events-none absolute right-[10px] hidden md:block rounded-[3px] border border-[color:var(--line)] px-[5px] py-px font-[family-name:var(--font-mono,ui-monospace,monospace)] text-[12px] leading-[1.2] text-[color:var(--muted)]",
|
|
2977
2977
|
children: "/"
|
|
2978
2978
|
}
|
|
2979
2979
|
)
|
|
@@ -3375,15 +3375,17 @@ function NavTabButton({
|
|
|
3375
3375
|
Link,
|
|
3376
3376
|
size
|
|
3377
3377
|
}) {
|
|
3378
|
-
const { label, count, href, onSelect, selected, disabled, disabledTitle } = tab;
|
|
3378
|
+
const { label, icon: Icon, count, href, onSelect, selected, disabled, disabledTitle } = tab;
|
|
3379
3379
|
const base = "-mb-px inline-flex shrink-0 items-center gap-2 border-b-2 font-semibold leading-none transition-colors";
|
|
3380
3380
|
const sizeClass = size === "sm" ? "py-2 text-[12px]" : "py-3 text-[13px]";
|
|
3381
3381
|
const stateClass = disabled ? "cursor-not-allowed border-transparent text-[color:var(--color-g4,#929599)] opacity-50" : selected ? "text-[color:var(--tab-selected-color,#2F3136)]" : "border-transparent text-[color:var(--color-g4,#929599)] hover:text-[color:var(--tab-hover-color,#2F3136)]";
|
|
3382
3382
|
const className = `${base} ${sizeClass} ${stateClass}`;
|
|
3383
3383
|
const style = selected && !disabled ? { borderBottomColor: TAB_UNDERLINE_COLOR } : void 0;
|
|
3384
|
+
const iconSize = size === "sm" ? 13 : 15;
|
|
3384
3385
|
const content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3386
|
+
Icon ? /* @__PURE__ */ jsx(Icon, { size: iconSize, className: "shrink-0 text-current", strokeWidth: 1.75 }) : null,
|
|
3385
3387
|
/* @__PURE__ */ jsx("span", { children: label }),
|
|
3386
|
-
count !== void 0 && count !== null && count !== "" ? /* @__PURE__ */ jsx("span", { className: "rounded-full bg-[color:var(--color-g2,#ECEEEF)] px-1.5 py-0.5 font-[family-name:var(--font-
|
|
3388
|
+
count !== void 0 && count !== null && count !== "" ? /* @__PURE__ */ jsx("span", { className: "rounded-full bg-[color:var(--color-g2,#ECEEEF)] px-1.5 py-0.5 font-[family-name:var(--font-mono,ui-monospace,monospace)] text-[11px] font-semibold leading-none", children: count }) : null
|
|
3387
3389
|
] });
|
|
3388
3390
|
if (disabled) {
|
|
3389
3391
|
return /* @__PURE__ */ jsx(
|
|
@@ -3647,5 +3649,5 @@ function NavAppShell({
|
|
|
3647
3649
|
}
|
|
3648
3650
|
|
|
3649
3651
|
export { BETA_BANNER_DISMISS_KEY, CAMPAIGN_FEATURE_AVAILABILITY, CORE_APP_ORIGIN, CORE_BILLING_PATH, FuelAction, NavAppShell, NavBetaBanner, NavChromeProvider, NavDisplayAction, NavSidebar, NavTabStrip, NavThemeControl, NavTopBar, NotificationsAction, SPECS_ORIGIN, SpecOverlayAction, SupportAction, TopBarCountBadge, TopBarPanelArrow, TopBarPopover, TopBarTooltip, TopBarWidgetSlot, clearBetaBannerDismissal, envChipClasses, isNavItemActive, modeIdFromLabel, resolveOrgLogoUrl, shortEnvLabel, shortUserName, standardNavIcons, standardPolitogyNav, topBarIconButtonClass, useChromeMe, useChromeOrgs, useNavChromeFetcher, useThemePreference };
|
|
3650
|
-
//# sourceMappingURL=chunk-
|
|
3651
|
-
//# sourceMappingURL=chunk-
|
|
3652
|
+
//# sourceMappingURL=chunk-AQMSMAK2.js.map
|
|
3653
|
+
//# sourceMappingURL=chunk-AQMSMAK2.js.map
|