@the-portland-company/shell 0.9.0 → 0.10.2
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 +32 -0
- package/dist/chrome.css +20 -20
- package/dist/index.cjs +23 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +23 -15
- package/dist/index.js.map +1 -1
- package/dist/native.cjs +5 -4
- package/dist/native.cjs.map +1 -1
- package/dist/native.js +5 -4
- package/dist/native.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -9,11 +9,11 @@ import { keyframes } from '@emotion/react';
|
|
|
9
9
|
// src/theme/index.ts
|
|
10
10
|
|
|
11
11
|
// src/theme/tokens.generated.ts
|
|
12
|
-
var brandRamp = { 50: "#
|
|
12
|
+
var brandRamp = { 50: "#FDECEE", 100: "#FCE0E3", 200: "#F8B6BD", 300: "#EF6671", 400: "#EA4751", 500: "#E63946", 600: "#C42E3A", 700: "#9F252E", 800: "#660F17", 900: "#39080D" };
|
|
13
13
|
|
|
14
14
|
// src/theme/colors.ts
|
|
15
15
|
var colors = {
|
|
16
|
-
// Primary brand
|
|
16
|
+
// Primary brand = Specs race-red (#E63946 ramp). Generated via gen:tokens.
|
|
17
17
|
brand: { ...brandRamp },
|
|
18
18
|
// Politogy Brand Colors
|
|
19
19
|
politogy: {
|
|
@@ -30,7 +30,7 @@ var colors = {
|
|
|
30
30
|
800: "#2a4365",
|
|
31
31
|
900: "#1a365d"
|
|
32
32
|
},
|
|
33
|
-
//
|
|
33
|
+
// Race-red (Specs primary brand). Same ramp as `brand`.
|
|
34
34
|
red: { ...brandRamp },
|
|
35
35
|
// Navy - Professional & Authoritative
|
|
36
36
|
navy: {
|
|
@@ -1866,7 +1866,7 @@ function NavItem({
|
|
|
1866
1866
|
/* @__PURE__ */ jsxs(Box, { flex: "1", children: [
|
|
1867
1867
|
/* @__PURE__ */ jsx(Box, { children }),
|
|
1868
1868
|
subLabel ? /* @__PURE__ */ jsx(Text, { mt: 0.5, fontSize: "10px", lineHeight: "1.3", color: "gray.400", children: subLabel }) : null,
|
|
1869
|
-
badge && /* @__PURE__ */ jsx(Badge, { colorScheme: "
|
|
1869
|
+
badge && /* @__PURE__ */ jsx(Badge, { colorScheme: "red", size: "xs", mt: 1, fontSize: "xs", display: "block", children: badge })
|
|
1870
1870
|
] })
|
|
1871
1871
|
]
|
|
1872
1872
|
}
|
|
@@ -2007,7 +2007,7 @@ function OrgPill() {
|
|
|
2007
2007
|
() => currentOrg ? getOrganizationBrandColor(currentOrg) : null,
|
|
2008
2008
|
[currentOrg]
|
|
2009
2009
|
);
|
|
2010
|
-
const selectedOrgColor = selectedOrgBrandColor || "var(--mode-primary-color, #
|
|
2010
|
+
const selectedOrgColor = selectedOrgBrandColor || "var(--mode-primary-color, var(--color-race-red-500, #E63946))";
|
|
2011
2011
|
const selectedOrgMenuBg = selectedOrgBrandColor && lightenHexColor(selectedOrgBrandColor, 0.12) || "#4a4a4a";
|
|
2012
2012
|
if (!org) return null;
|
|
2013
2013
|
return /* @__PURE__ */ jsxs(Box, { mx: "4", mb: "3", children: [
|
|
@@ -2052,7 +2052,7 @@ function OrgPill() {
|
|
|
2052
2052
|
name: currentOrg?.name,
|
|
2053
2053
|
logoUrl: currentOrg?.logoUrl,
|
|
2054
2054
|
brandColor: selectedOrgBrandColor,
|
|
2055
|
-
size: "
|
|
2055
|
+
size: "20px"
|
|
2056
2056
|
}
|
|
2057
2057
|
),
|
|
2058
2058
|
/* @__PURE__ */ jsx(Text, { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", children: currentOrg?.name || "No organizations" })
|
|
@@ -2081,15 +2081,15 @@ function OrgPill() {
|
|
|
2081
2081
|
bg: "transparent",
|
|
2082
2082
|
color: currentOrg?.id ? "white" : "inherit",
|
|
2083
2083
|
_hover: {
|
|
2084
|
-
bg: currentOrg?.id ? lightenHexColor(selectedOrgBrandColor || "#
|
|
2084
|
+
bg: currentOrg?.id ? lightenHexColor(selectedOrgBrandColor || "#E63946", 0.2) || "#555555" : "gray.100",
|
|
2085
2085
|
color: currentOrg?.id ? "white" : "gray.900"
|
|
2086
2086
|
},
|
|
2087
2087
|
_focus: {
|
|
2088
|
-
bg: currentOrg?.id ? lightenHexColor(selectedOrgBrandColor || "#
|
|
2088
|
+
bg: currentOrg?.id ? lightenHexColor(selectedOrgBrandColor || "#E63946", 0.2) || "#555555" : "gray.100",
|
|
2089
2089
|
color: currentOrg?.id ? "white" : "gray.900"
|
|
2090
2090
|
},
|
|
2091
2091
|
_active: {
|
|
2092
|
-
bg: currentOrg?.id ? lightenHexColor(selectedOrgBrandColor || "#
|
|
2092
|
+
bg: currentOrg?.id ? lightenHexColor(selectedOrgBrandColor || "#E63946", 0.24) || "#5d5d5d" : "gray.200",
|
|
2093
2093
|
color: currentOrg?.id ? "white" : "gray.900"
|
|
2094
2094
|
},
|
|
2095
2095
|
children: /* @__PURE__ */ jsxs(Flex, { justify: "space-between", align: "center", width: "100%", overflow: "hidden", children: [
|
|
@@ -2139,15 +2139,15 @@ function OrgPill() {
|
|
|
2139
2139
|
color: currentOrg?.id ? "white" : "inherit",
|
|
2140
2140
|
my: 0,
|
|
2141
2141
|
_hover: {
|
|
2142
|
-
bg: currentOrg?.id ? lightenHexColor(selectedOrgBrandColor || "#
|
|
2142
|
+
bg: currentOrg?.id ? lightenHexColor(selectedOrgBrandColor || "#E63946", 0.2) || "#555555" : "gray.100",
|
|
2143
2143
|
color: currentOrg?.id ? "white" : "gray.900"
|
|
2144
2144
|
},
|
|
2145
2145
|
_focus: {
|
|
2146
|
-
bg: currentOrg?.id ? lightenHexColor(selectedOrgBrandColor || "#
|
|
2146
|
+
bg: currentOrg?.id ? lightenHexColor(selectedOrgBrandColor || "#E63946", 0.2) || "#555555" : "gray.100",
|
|
2147
2147
|
color: currentOrg?.id ? "white" : "gray.900"
|
|
2148
2148
|
},
|
|
2149
2149
|
_active: {
|
|
2150
|
-
bg: currentOrg?.id ? lightenHexColor(selectedOrgBrandColor || "#
|
|
2150
|
+
bg: currentOrg?.id ? lightenHexColor(selectedOrgBrandColor || "#E63946", 0.24) || "#5d5d5d" : "gray.200",
|
|
2151
2151
|
color: currentOrg?.id ? "white" : "gray.900"
|
|
2152
2152
|
},
|
|
2153
2153
|
fontSize: "sm",
|
|
@@ -2565,7 +2565,11 @@ function Sidebar({ onClose, id }) {
|
|
|
2565
2565
|
{
|
|
2566
2566
|
href: l.href,
|
|
2567
2567
|
isExternal: true,
|
|
2568
|
-
|
|
2568
|
+
color: "var(--color-race-red-500, #E63946)",
|
|
2569
|
+
_hover: {
|
|
2570
|
+
color: "var(--color-race-red-600, #C42E3A)",
|
|
2571
|
+
textDecoration: "underline"
|
|
2572
|
+
},
|
|
2569
2573
|
children: l.label
|
|
2570
2574
|
}
|
|
2571
2575
|
) : /* @__PURE__ */ jsx(
|
|
@@ -2573,7 +2577,11 @@ function Sidebar({ onClose, id }) {
|
|
|
2573
2577
|
{
|
|
2574
2578
|
as: NavLink,
|
|
2575
2579
|
to: l.href,
|
|
2576
|
-
|
|
2580
|
+
color: "var(--color-race-red-500, #E63946)",
|
|
2581
|
+
_hover: {
|
|
2582
|
+
color: "var(--color-race-red-600, #C42E3A)",
|
|
2583
|
+
textDecoration: "underline"
|
|
2584
|
+
},
|
|
2577
2585
|
children: l.label
|
|
2578
2586
|
}
|
|
2579
2587
|
)
|
|
@@ -2888,7 +2896,7 @@ ${formatted}` : formatted,
|
|
|
2888
2896
|
/* @__PURE__ */ jsx(
|
|
2889
2897
|
Button,
|
|
2890
2898
|
{
|
|
2891
|
-
colorScheme: "
|
|
2899
|
+
colorScheme: "red",
|
|
2892
2900
|
onClick: () => void handleSubmit(),
|
|
2893
2901
|
isLoading: isSubmitting,
|
|
2894
2902
|
loadingText: "Sending",
|