@the-portland-company/shell 0.40.0 → 0.41.0

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/index.cjs CHANGED
@@ -578,6 +578,30 @@ var components = {
578
578
  }
579
579
  }
580
580
  },
581
+ // Reference/UI-Platform: every top-bar control and every panel it opens share
582
+ // ONE surface treatment — one definition of background, border, blur and
583
+ // radius, not a per-component re-style. Chakra's stock Tooltip INVERTS
584
+ // (dark text surface in light mode, LIGHT surface in dark mode), so in dark
585
+ // mode every `div#tooltip-*` rendered a near-white #E8E8E8 slab against the
586
+ // black chrome — measured on 15 of 29 pages, including inside the
587
+ // Communications Fuel panel. Pin it to the shared panel surface instead, so a
588
+ // Chakra tooltip and the native chrome's TopBarTooltip look identical.
589
+ Tooltip: {
590
+ baseStyle: {
591
+ bg: "var(--panel-elevated, #1F1F1F)",
592
+ color: "var(--foreground, #E8E8E8)",
593
+ border: "1px solid",
594
+ borderColor: "var(--line, #333333)",
595
+ borderRadius: "var(--radius-lg, 0.5rem)",
596
+ boxShadow: "var(--shadow-soft)",
597
+ fontSize: "12px",
598
+ paddingX: 3,
599
+ paddingY: 2,
600
+ // Chakra draws the arrow with its own bg var; keep it on the same surface
601
+ // so the pointer never reads as a different colour than the bubble.
602
+ "--popper-arrow-bg": "var(--panel-elevated, #1F1F1F)"
603
+ }
604
+ },
581
605
  Alert: {
582
606
  baseStyle: {
583
607
  container: {
@@ -586,7 +610,16 @@ var components = {
586
610
  },
587
611
  variants: {
588
612
  subtle: (props) => {
589
- const { colorScheme: c } = props;
613
+ const { colorScheme: c, colorMode } = props;
614
+ if (colorMode === "dark") {
615
+ const accent = c === "blue" || c === "info" ? "#7CC0F5" : c === "green" || c === "success" ? "#68D391" : c === "orange" || c === "yellow" || c === "warning" ? "#F6AD55" : "var(--color-race-red-300, #EF6671)";
616
+ return {
617
+ container: { bg: "neutral.raised", borderLeftColor: accent },
618
+ icon: { color: accent },
619
+ title: { color: "neutral.text" },
620
+ description: { color: "neutral.textMuted" }
621
+ };
622
+ }
590
623
  if (c === "blue" || c === "info") {
591
624
  return {
592
625
  container: {
@@ -606,7 +639,16 @@ var components = {
606
639
  return {};
607
640
  },
608
641
  "left-accent": (props) => {
609
- const { colorScheme: c } = props;
642
+ const { colorScheme: c, colorMode } = props;
643
+ if (colorMode === "dark") {
644
+ const accent = c === "blue" || c === "info" ? "#7CC0F5" : c === "green" || c === "success" ? "#68D391" : c === "orange" || c === "yellow" || c === "warning" ? "#F6AD55" : "var(--color-race-red-300, #EF6671)";
645
+ return {
646
+ container: { bg: "neutral.raised", borderLeftColor: accent },
647
+ icon: { color: accent },
648
+ title: { color: "neutral.text" },
649
+ description: { color: "neutral.textMuted" }
650
+ };
651
+ }
610
652
  if (c === "blue" || c === "info") {
611
653
  return {
612
654
  container: {