@the-portland-company/shell 0.70.0 → 0.71.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 +15 -0
- package/dist/app-chrome.cjs +35 -52
- package/dist/app-chrome.cjs.map +1 -1
- package/dist/app-chrome.js +3 -3
- package/dist/app-chrome.js.map +1 -1
- package/dist/chrome.css +2 -2
- package/dist/{chunk-CZI66JVG.js → chunk-JBPJOPLW.js} +39 -46
- package/dist/chunk-JBPJOPLW.js.map +1 -0
- package/dist/native.cjs +36 -42
- 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 +1 -1
- package/package.json +1 -1
- package/dist/chunk-CZI66JVG.js.map +0 -1
package/dist/chrome.css
CHANGED
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
--sidebar-border: #E2E8F0;
|
|
156
156
|
--sidebar-brand-logo-height: 24px;
|
|
157
157
|
--sidebar-org-logo-max-height: 34px;
|
|
158
|
-
--sidebar-org-band-height:
|
|
158
|
+
--sidebar-org-band-height: 70px;
|
|
159
159
|
--sidebar-item-radius: 8px;
|
|
160
160
|
--sidebar-item-padding-x: 16px;
|
|
161
161
|
--sidebar-item-padding-y: 10px;
|
|
@@ -447,7 +447,7 @@
|
|
|
447
447
|
display: inline-flex !important;
|
|
448
448
|
align-items: center !important;
|
|
449
449
|
justify-content: center !important;
|
|
450
|
-
border: 1px solid
|
|
450
|
+
border: 1px solid transparent !important;
|
|
451
451
|
border-radius: var(--topbar-icon-button-radius, 5px) !important;
|
|
452
452
|
background: transparent !important;
|
|
453
453
|
color: var(--topbar-icon-color, var(--muted)) !important;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { warnDeprecated } from './chunk-LPSBSAF3.js';
|
|
2
2
|
import { readThemeCookie, THEME_STORAGE_KEY, isThemePreference, applyThemePreference, readPendingThemeChoice, writeThemeCookie, clearPendingThemeChoice, markThemeChoicePending } from './chunk-NHBNM5P3.js';
|
|
3
3
|
import { readRailPreference, writeRailPreference } from './chunk-7YVJ7HQG.js';
|
|
4
|
-
import { createContext, useRef, useState, useEffect, useContext, useCallback, useMemo, useSyncExternalStore } from 'react';
|
|
4
|
+
import { createContext, useRef, useState, useEffect, useContext, useCallback, useMemo, Fragment as Fragment$1, useSyncExternalStore } from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import { FiUser, FiSettings, FiMessageSquare, FiMail, FiInfo, FiSun, FiMoon, FiHelpCircle, FiLifeBuoy, FiAlertCircle, FiAlertTriangle, FiBell, FiGrid, FiZap, FiBatteryCharging, FiBattery } from 'react-icons/fi';
|
|
7
7
|
import { createPortal } from 'react-dom';
|
|
@@ -91,7 +91,7 @@ function topBarIconButtonClass(tone = "default") {
|
|
|
91
91
|
const toneClass = tone === "danger" || tone === "warning" ? "text-[color:var(--chrome-danger)] hover:text-[color:var(--chrome-danger)]" : "text-[color:var(--topbar-icon-color,var(--muted))] hover:text-[color:var(--topbar-icon-hover-color,var(--foreground))] hover:bg-[color:var(--topbar-icon-hover-bg,transparent)]";
|
|
92
92
|
return [
|
|
93
93
|
// `group/tbtip` powers the shared <TopBarTooltip> rendered inside the trigger.
|
|
94
|
-
"group/tbtip relative flex items-center justify-center rounded-[var(--topbar-icon-button-radius,5px)] border border-
|
|
94
|
+
"group/tbtip relative flex items-center justify-center rounded-[var(--topbar-icon-button-radius,5px)] border border-transparent transition",
|
|
95
95
|
"h-[var(--topbar-icon-button-size,34px)] w-[var(--topbar-icon-button-size,34px)]",
|
|
96
96
|
toneClass
|
|
97
97
|
].join(" ");
|
|
@@ -2074,6 +2074,12 @@ function hasActiveChild(item, pathname, activeFn) {
|
|
|
2074
2074
|
)
|
|
2075
2075
|
);
|
|
2076
2076
|
}
|
|
2077
|
+
function shortEnvLabel(label) {
|
|
2078
|
+
const l = label.trim().toLowerCase();
|
|
2079
|
+
if (l === "production") return "prod";
|
|
2080
|
+
if (l === "development") return "dev";
|
|
2081
|
+
return l;
|
|
2082
|
+
}
|
|
2077
2083
|
function envChipClasses(label) {
|
|
2078
2084
|
const l = label.toLowerCase();
|
|
2079
2085
|
if (l === "production" || l === "prod")
|
|
@@ -2287,7 +2293,7 @@ function NavSidebar({
|
|
|
2287
2293
|
}
|
|
2288
2294
|
),
|
|
2289
2295
|
org ? /* @__PURE__ */ jsxs("div", { className: rc("max-md:flex max-md:justify-center"), children: [
|
|
2290
|
-
/* @__PURE__ */ jsx("div", { className: `mb-[7px] flex items-center justify-between ${rc("max-md:hidden")}`, children: /* @__PURE__ */ jsx("p", { className: NAV_EYEBROW_CLASS, children: "Organization" }) }),
|
|
2296
|
+
/* @__PURE__ */ jsx("div", { className: `mb-[7px] mt-[7px] flex items-center justify-between ${rc("max-md:hidden")}`, children: /* @__PURE__ */ jsx("p", { className: NAV_EYEBROW_CLASS, children: "Organization" }) }),
|
|
2291
2297
|
org.loading ? /* @__PURE__ */ jsxs("div", { className: `flex w-full items-center gap-2.5 rounded-md border border-[color:var(--line)] bg-[color:var(--panel-elevated)] px-2.5 py-2 shadow-sm ${rc("max-md:w-auto max-md:border-0 max-md:bg-transparent max-md:p-0 max-md:shadow-none")}`, children: [
|
|
2292
2298
|
/* @__PURE__ */ jsx(
|
|
2293
2299
|
"span",
|
|
@@ -2313,7 +2319,7 @@ function NavSidebar({
|
|
|
2313
2319
|
className: `flex w-full cursor-pointer list-none flex-col overflow-hidden rounded-[5px] border border-[color:var(--sidebar-card-border,var(--sidebar-line,var(--line)))] bg-[color:var(--sidebar-card-bg,var(--panel-elevated))] text-left text-[color:var(--sidebar-text,var(--foreground))] transition hover:bg-[color:var(--sidebar-row-hover-bg,var(--panel))] [&::-webkit-details-marker]:hidden ${rc("max-md:w-auto max-md:items-center max-md:overflow-visible max-md:border-0 max-md:bg-transparent")}`,
|
|
2314
2320
|
children: [
|
|
2315
2321
|
/* @__PURE__ */ jsx(OrgIconMark, { org, logoSrc: orgLogoSrc }),
|
|
2316
|
-
/* @__PURE__ */ jsxs("span", { className: `relative flex h-[var(--sidebar-org-band-height,
|
|
2322
|
+
/* @__PURE__ */ jsxs("span", { className: `relative flex h-[var(--sidebar-org-band-height,70px)] w-full items-center justify-center bg-[#FFFFFF] px-3 py-[7px] ${rc("max-md:hidden")}`, children: [
|
|
2317
2323
|
orgLogoSrc ? /* @__PURE__ */ jsx("img", { src: orgLogoSrc, alt: "", className: "max-h-full max-w-[132px] object-contain" }) : org.canUploadLogo ? /* @__PURE__ */ jsx(
|
|
2318
2324
|
"a",
|
|
2319
2325
|
{
|
|
@@ -2325,7 +2331,7 @@ function NavSidebar({
|
|
|
2325
2331
|
) : /* @__PURE__ */ jsx("span", { className: "truncate text-sm font-semibold text-neutral-800", children: org.name ?? "Organization" }),
|
|
2326
2332
|
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "absolute inset-x-0 bottom-0 h-[3px]", style: { backgroundImage: orgGradient } })
|
|
2327
2333
|
] }),
|
|
2328
|
-
/* @__PURE__ */ jsxs("span", { className: `flex w-full min-w-0 items-center justify-between gap-[9px] px-[10px] py-
|
|
2334
|
+
/* @__PURE__ */ jsxs("span", { className: `flex w-full min-w-0 items-center justify-between gap-[9px] px-[10px] py-[10px] ${rc("max-md:hidden")}`, children: [
|
|
2329
2335
|
/* @__PURE__ */ jsxs("span", { className: "flex min-w-0 flex-col", children: [
|
|
2330
2336
|
/* @__PURE__ */ jsx(
|
|
2331
2337
|
"span",
|
|
@@ -2415,7 +2421,7 @@ function NavSidebar({
|
|
|
2415
2421
|
className: `flex w-full flex-col overflow-hidden rounded-[5px] border border-[color:var(--sidebar-card-border,var(--sidebar-line,var(--line)))] bg-[color:var(--sidebar-card-bg,var(--panel-elevated))] text-left text-[color:var(--sidebar-text,var(--foreground))] transition hover:bg-[color:var(--sidebar-row-hover-bg,var(--panel))] ${rc("max-md:w-auto max-md:items-center max-md:overflow-visible max-md:border-0 max-md:bg-transparent")}`,
|
|
2416
2422
|
children: [
|
|
2417
2423
|
/* @__PURE__ */ jsx(OrgIconMark, { org, logoSrc: orgLogoSrc }),
|
|
2418
|
-
/* @__PURE__ */ jsxs("span", { className: `relative flex h-[var(--sidebar-org-band-height,
|
|
2424
|
+
/* @__PURE__ */ jsxs("span", { className: `relative flex h-[var(--sidebar-org-band-height,70px)] w-full items-center justify-center bg-[#FFFFFF] px-3 py-[7px] ${rc("max-md:hidden")}`, children: [
|
|
2419
2425
|
orgLogoSrc ? /* @__PURE__ */ jsx("img", { src: orgLogoSrc, alt: "", className: "max-h-full max-w-[132px] object-contain" }) : org.canUploadLogo ? /* @__PURE__ */ jsx(
|
|
2420
2426
|
"a",
|
|
2421
2427
|
{
|
|
@@ -2427,7 +2433,7 @@ function NavSidebar({
|
|
|
2427
2433
|
) : /* @__PURE__ */ jsx("span", { className: "truncate text-sm font-semibold text-neutral-800", children: org.name ?? "Organization" }),
|
|
2428
2434
|
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "absolute inset-x-0 bottom-0 h-[3px]", style: { backgroundImage: orgGradient } })
|
|
2429
2435
|
] }),
|
|
2430
|
-
/* @__PURE__ */ jsxs("span", { className: `flex w-full min-w-0 items-center justify-between gap-[9px] px-[10px] py-
|
|
2436
|
+
/* @__PURE__ */ jsxs("span", { className: `flex w-full min-w-0 items-center justify-between gap-[9px] px-[10px] py-[10px] ${rc("max-md:hidden")}`, children: [
|
|
2431
2437
|
/* @__PURE__ */ jsxs("span", { className: "flex min-w-0 flex-col", children: [
|
|
2432
2438
|
/* @__PURE__ */ jsx(
|
|
2433
2439
|
"span",
|
|
@@ -2472,7 +2478,7 @@ function NavSidebar({
|
|
|
2472
2478
|
},
|
|
2473
2479
|
disabled: !available,
|
|
2474
2480
|
className: [
|
|
2475
|
-
|
|
2481
|
+
`flex flex-none items-center justify-center rounded-[5px] px-[9px] py-[6px] transition ${rc("max-md:flex-1")}`,
|
|
2476
2482
|
!available ? "cursor-not-allowed text-[color:var(--sidebar-text-muted,var(--muted))] opacity-35" : selected ? "bg-[color:var(--sidebar-mode-selected-bg,var(--mode-accent,var(--color-accent)))] text-[color:var(--mode-on-accent,white)]" : "text-[color:var(--sidebar-text-muted,var(--muted))] hover:bg-[#FFFFFF]/5 hover:text-[color:var(--sidebar-text,var(--foreground))]"
|
|
2477
2483
|
].join(" "),
|
|
2478
2484
|
children: OptIcon ? /* @__PURE__ */ jsx(OptIcon, { size: 15, className: "shrink-0" }) : null
|
|
@@ -2562,50 +2568,37 @@ function NavSidebar({
|
|
|
2562
2568
|
onSignOut: footer.onSignOut
|
|
2563
2569
|
}
|
|
2564
2570
|
) : null,
|
|
2565
|
-
footer.links && footer.links.length > 0 ? /* @__PURE__ */ jsx("div", { className: `flex flex-wrap items-center gap-[
|
|
2566
|
-
"
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2571
|
+
footer.links && footer.links.length > 0 ? /* @__PURE__ */ jsx("div", { className: `flex flex-wrap items-center justify-center gap-[6px] text-[11px] leading-[1.2] ${footer.user ? "mt-3" : ""} ${rc("max-md:hidden")}`, children: footer.links.map((l, i) => /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
2572
|
+
i > 0 ? /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "text-[color:var(--sidebar-caption,var(--sidebar-text-muted,var(--muted)))]", children: "\xB7" }) : null,
|
|
2573
|
+
/* @__PURE__ */ jsx(
|
|
2574
|
+
"a",
|
|
2575
|
+
{
|
|
2576
|
+
href: safeHref(l.href),
|
|
2577
|
+
className: "text-[color:var(--sidebar-caption,var(--sidebar-text-muted,var(--muted)))] hover:text-[color:var(--sidebar-text,var(--foreground))] hover:underline",
|
|
2578
|
+
children: l.label
|
|
2579
|
+
}
|
|
2580
|
+
)
|
|
2581
|
+
] }, l.label)) }) : null,
|
|
2582
|
+
footer.envLabel || footer.commit || footer.version ? /* @__PURE__ */ jsxs(
|
|
2575
2583
|
"div",
|
|
2576
2584
|
{
|
|
2577
2585
|
"data-shell-meta": true,
|
|
2578
|
-
className: `mt-1.5 flex flex-col items-
|
|
2586
|
+
className: `mt-1.5 flex flex-col items-center gap-0.5 font-[family-name:var(--font-plex-mono)] text-[11px] text-[color:var(--sidebar-meta-text,rgba(255,255,255,0.4))] ${rc("max-md:hidden")}`,
|
|
2579
2587
|
children: [
|
|
2580
|
-
/* @__PURE__ */
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
children: footer.envLabel
|
|
2589
|
-
}
|
|
2590
|
-
),
|
|
2591
|
-
footer.commit ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2592
|
-
/* @__PURE__ */ jsx("span", { className: "text-[color:var(--muted)]", children: "|" }),
|
|
2593
|
-
/* @__PURE__ */ jsx("span", { children: footer.commit.slice(-4) })
|
|
2594
|
-
] }) : null,
|
|
2595
|
-
footer.version ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2596
|
-
/* @__PURE__ */ jsx("span", { className: "text-[color:var(--muted)]", children: "|" }),
|
|
2597
|
-
/* @__PURE__ */ jsxs("span", { children: [
|
|
2598
|
-
"v",
|
|
2599
|
-
footer.version
|
|
2600
|
-
] })
|
|
2601
|
-
] }) : null
|
|
2602
|
-
] }),
|
|
2588
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-1.5", children: [
|
|
2589
|
+
footer.envLabel ? shortEnvLabel(footer.envLabel) : null,
|
|
2590
|
+
footer.commit ? footer.commit.slice(-4) : null,
|
|
2591
|
+
footer.version ? `v${footer.version.replace(/^v/, "")}` : null
|
|
2592
|
+
].filter((v) => Boolean(v)).map((v, i) => /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
2593
|
+
i > 0 ? /* @__PURE__ */ jsx("span", { children: "|" }) : null,
|
|
2594
|
+
/* @__PURE__ */ jsx("span", { children: v })
|
|
2595
|
+
] }, i)) }),
|
|
2603
2596
|
footer.commitDate || footer.commitAuthor ? /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5", children: [
|
|
2604
2597
|
footer.commitDate ? /* @__PURE__ */ jsx("span", { children: new Date(footer.commitDate).toLocaleDateString(void 0, {
|
|
2605
2598
|
month: "short",
|
|
2606
2599
|
day: "numeric"
|
|
2607
2600
|
}) }) : null,
|
|
2608
|
-
footer.commitDate && footer.commitAuthor ? /* @__PURE__ */ jsx("span", {
|
|
2601
|
+
footer.commitDate && footer.commitAuthor ? /* @__PURE__ */ jsx("span", { children: "|" }) : null,
|
|
2609
2602
|
footer.commitAuthor ? /* @__PURE__ */ jsx("span", { children: footer.commitAuthor.split(/\s+/)[0] }) : null
|
|
2610
2603
|
] }) : null
|
|
2611
2604
|
]
|
|
@@ -3722,6 +3715,6 @@ function NavAppShell({
|
|
|
3722
3715
|
);
|
|
3723
3716
|
}
|
|
3724
3717
|
|
|
3725
|
-
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, resolveOrgLogoUrl, standardPolitogyNav, topBarIconButtonClass, useChromeMe, useChromeOrgs, useNavChromeFetcher, useThemePreference };
|
|
3726
|
-
//# sourceMappingURL=chunk-
|
|
3727
|
-
//# sourceMappingURL=chunk-
|
|
3718
|
+
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, resolveOrgLogoUrl, shortEnvLabel, standardPolitogyNav, topBarIconButtonClass, useChromeMe, useChromeOrgs, useNavChromeFetcher, useThemePreference };
|
|
3719
|
+
//# sourceMappingURL=chunk-JBPJOPLW.js.map
|
|
3720
|
+
//# sourceMappingURL=chunk-JBPJOPLW.js.map
|