@buoy-gg/console 7.0.26 → 7.0.27

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.
@@ -11,7 +11,7 @@ import { View, TextInput, TouchableOpacity, StyleSheet } from "react-native";
11
11
  import {
12
12
  ModalHeader,
13
13
  TabSelector,
14
- macOSColors,
14
+ night,
15
15
  Search,
16
16
  Filter,
17
17
  Trash2,
@@ -50,11 +50,11 @@ export function ConsoleHeader({ c, onBack }: ConsoleHeaderProps) {
50
50
  <ModalHeader.Content title="" noMargin>
51
51
  {c.searchActive ? (
52
52
  <View style={styles.searchContainer}>
53
- <Search size={14} color={macOSColors.text.secondary} />
53
+ <Search size={14} color={night.color.textSecondary} />
54
54
  <TextInput
55
55
  style={styles.searchInput}
56
56
  placeholder="Filter logs… /regex/ -exclude"
57
- placeholderTextColor={macOSColors.text.muted}
57
+ placeholderTextColor={night.color.placeholder}
58
58
  value={c.query}
59
59
  onChangeText={c.setQuery}
60
60
  autoCapitalize="none"
@@ -64,7 +64,7 @@ export function ConsoleHeader({ c, onBack }: ConsoleHeaderProps) {
64
64
  />
65
65
  {c.query.length > 0 ? (
66
66
  <TouchableOpacity onPress={() => c.setQuery("")} style={styles.searchClear}>
67
- <X size={14} color={macOSColors.text.secondary} />
67
+ <X size={14} color={night.color.textSecondary} />
68
68
  </TouchableOpacity>
69
69
  ) : null}
70
70
  </View>
@@ -83,7 +83,7 @@ export function ConsoleHeader({ c, onBack }: ConsoleHeaderProps) {
83
83
  style={[styles.actionBtn, c.searchActive && styles.actionBtnActive]}
84
84
  accessibilityLabel="Search logs"
85
85
  >
86
- <Search size={14} color={c.searchActive ? macOSColors.semantic.info : macOSColors.text.secondary} />
86
+ <Search size={14} color={c.searchActive ? night.color.accent : night.color.textSecondary} />
87
87
  </TouchableOpacity>
88
88
 
89
89
  <TouchableOpacity
@@ -91,7 +91,7 @@ export function ConsoleHeader({ c, onBack }: ConsoleHeaderProps) {
91
91
  style={[styles.actionBtn, c.isLevelCustom && styles.actionBtnActive]}
92
92
  accessibilityLabel="Filters"
93
93
  >
94
- <Filter size={14} color={c.isLevelCustom ? macOSColors.semantic.info : macOSColors.text.muted} />
94
+ <Filter size={14} color={c.isLevelCustom ? night.color.accent : night.color.textSecondary} />
95
95
  </TouchableOpacity>
96
96
 
97
97
  <TouchableOpacity
@@ -100,7 +100,7 @@ export function ConsoleHeader({ c, onBack }: ConsoleHeaderProps) {
100
100
  style={[styles.actionBtn, !hasRows && styles.actionBtnDisabled]}
101
101
  accessibilityLabel="Clear console"
102
102
  >
103
- <Trash2 size={14} color={hasRows ? macOSColors.text.muted : macOSColors.text.disabled} />
103
+ <Trash2 size={14} color={hasRows ? night.color.textSecondary : night.color.textTertiary} />
104
104
  </TouchableOpacity>
105
105
  </ModalHeader.Actions>
106
106
  </ModalHeader>
@@ -112,15 +112,15 @@ const styles = StyleSheet.create({
112
112
  width: 32,
113
113
  height: 32,
114
114
  borderRadius: 8,
115
- backgroundColor: macOSColors.background.hover,
115
+ backgroundColor: night.color.buttonSurface,
116
116
  borderWidth: 1,
117
- borderColor: macOSColors.border.default,
117
+ borderColor: night.color.border,
118
118
  alignItems: "center",
119
119
  justifyContent: "center",
120
120
  },
121
121
  actionBtnActive: {
122
- backgroundColor: macOSColors.semantic.infoBackground,
123
- borderColor: macOSColors.semantic.info + "40",
122
+ backgroundColor: night.color.accentSoft,
123
+ borderColor: night.color.accentBorderStrong,
124
124
  },
125
125
  actionBtnDisabled: {
126
126
  opacity: 0.55,
@@ -128,16 +128,16 @@ const styles = StyleSheet.create({
128
128
  searchContainer: {
129
129
  flexDirection: "row",
130
130
  alignItems: "center",
131
- backgroundColor: macOSColors.background.input,
132
- borderRadius: 10,
131
+ backgroundColor: night.color.surfaceElevated,
132
+ borderRadius: night.radius.row,
133
133
  borderWidth: 1,
134
- borderColor: macOSColors.border.default,
134
+ borderColor: night.color.border,
135
135
  paddingHorizontal: 12,
136
136
  paddingVertical: 5,
137
137
  },
138
138
  searchInput: {
139
139
  flex: 1,
140
- color: macOSColors.text.primary,
140
+ color: night.color.text,
141
141
  fontSize: 13,
142
142
  marginLeft: 6,
143
143
  paddingVertical: 2,
@@ -29,7 +29,9 @@ export function ConsoleView() {
29
29
  const styles = StyleSheet.create({
30
30
  container: {
31
31
  flex: 1,
32
- backgroundColor: consoleTheme.baseContainer,
32
+ // Transparent so the desktop workbench's hoisted sky (one field spanning
33
+ // sidebar + panel) shows through — the shell paints its base beneath it.
34
+ backgroundColor: "transparent",
33
35
  },
34
36
  headerBar: {
35
37
  paddingHorizontal: 12,
@@ -1,12 +1,9 @@
1
1
  /**
2
- * Console palette — a dark theme matched to Buoy's shared design tokens
3
- * (`macOSColors` in @buoy-gg/shared-ui) so the console reads as part of the
4
- * tool suite, tuned for contrast per WCAG AA:
5
- * - body text #F5F5F7 on #0A0A0C ≈ 17:1
6
- * - secondary #A1A1A6 on #0A0A0C ≈ 7:1
7
- * - links #40CCFF on #0A0A0C ≈ 9:1
8
- * - dividers / nesting guides lightened to ~#3A3A40 so lines are clearly
9
- * visible against the near-black surface.
2
+ * Console palette — a dark theme whose CHROME entries (surfaces, dividers,
3
+ * default/secondary text) come from Buoy's `night` tokens so the console reads
4
+ * as part of the night suite, while the Chrome-DevTools DATA colours (level
5
+ * rows, value types, links, ANSI) stay classic — they tell the user something
6
+ * about the logged data.
10
7
  * `lightTheme` below holds the exact DevTools light tokens and `consoleTheme`
11
8
  * picks between the two from the host app's surface. Every shipped theme is
12
9
  * dark today, so the light branch is currently unreachable — it is kept because
@@ -17,7 +14,7 @@
17
14
  */
18
15
 
19
16
  import { Platform } from "react-native";
20
- import { macOSColors } from "@buoy-gg/shared-ui";
17
+ import { night } from "@buoy-gg/shared-ui";
21
18
 
22
19
  /**
23
20
  * Monospace font. On the desktop dashboard (react-native-web) the generic
@@ -72,18 +69,18 @@ export const lightTheme: ConsoleColors = {
72
69
  valuePreview: "rgba(31,31,31,0.62)",
73
70
  };
74
71
 
75
- /** Dark theme (active) — matched to Buoy macOSColors, contrast-tuned. */
72
+ /** Dark theme (active) — night chrome, classic DevTools data colours. */
76
73
  export const darkTheme: ConsoleColors = {
77
- baseContainer: "#0A0A0C", // macOSColors.background.base
74
+ baseContainer: "#0A0A0C", // desktop inline shell base (modal path is transparent)
78
75
  surfaceError: "rgba(255,69,58,0.15)", // semantic.errorBackground
79
76
  surfaceYellow: "rgba(255,235,59,0.13)", // semantic.warningBackground
80
- divider: "#3A3A40", // lightened from border.default (#2D2D2F) for visible lines
81
- inputBackground: "#26262A", // background.input
82
- menuBackground: "#1A1A1C", // background.card
83
- onSurface: "#F5F5F7", // text.primary (~17:1)
77
+ divider: night.color.fillTertiary, // row hairlines + nesting guides (strong enough to stay visible)
78
+ inputBackground: night.color.surfaceElevated,
79
+ menuBackground: night.color.surface,
80
+ onSurface: night.color.text,
84
81
  onSurfaceYellow: "#FFE9A3", // light warm yellow on dark warning row
85
82
  onErrorContainer: "#FFB4AB", // light red on dark error row
86
- tokenSubtle: "#A1A1A6", // text.secondary (~7:1 — timestamps, previews)
83
+ tokenSubtle: night.color.textSecondary, // timestamps, previews
87
84
  primary: "#40CCFF", // semantic.infoLight (links, ~9:1)
88
85
  valueNumber: "#FF9F1C", // orange (number + boolean)
89
86
  valueString: "#7EE787", // green (string/regexp/symbol)