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