@buoy-gg/console 7.0.26 → 7.0.28
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/lib/commonjs/components/ConsoleLogList.js +10 -9
- package/lib/commonjs/components/ConsoleLogList.js.map +1 -1
- package/lib/commonjs/devtools/ConsoleBody.js +14 -12
- package/lib/commonjs/devtools/ConsoleBody.js.map +1 -1
- package/lib/commonjs/devtools/ConsoleHeader.js +14 -14
- package/lib/commonjs/devtools/ConsoleHeader.js.map +1 -1
- package/lib/commonjs/devtools/ConsoleMessageRow.js +31 -21
- package/lib/commonjs/devtools/ConsoleMessageRow.js.map +1 -1
- package/lib/commonjs/devtools/ConsoleView.js +3 -1
- package/lib/commonjs/devtools/ConsoleView.js.map +1 -1
- package/lib/commonjs/devtools/theme.js +15 -20
- package/lib/commonjs/devtools/theme.js.map +1 -1
- package/lib/module/components/ConsoleLogList.js +11 -10
- package/lib/module/components/ConsoleLogList.js.map +1 -1
- package/lib/module/devtools/ConsoleBody.js +15 -13
- package/lib/module/devtools/ConsoleBody.js.map +1 -1
- package/lib/module/devtools/ConsoleHeader.js +15 -15
- package/lib/module/devtools/ConsoleHeader.js.map +1 -1
- package/lib/module/devtools/ConsoleMessageRow.js +31 -21
- package/lib/module/devtools/ConsoleMessageRow.js.map +1 -1
- package/lib/module/devtools/ConsoleView.js +3 -1
- package/lib/module/devtools/ConsoleView.js.map +1 -1
- package/lib/module/devtools/theme.js +16 -20
- package/lib/module/devtools/theme.js.map +1 -1
- package/lib/typescript/devtools/ConsoleMessageRow.d.ts.map +1 -1
- package/lib/typescript/devtools/theme.d.ts +6 -9
- package/lib/typescript/devtools/theme.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/components/ConsoleLogList.tsx +11 -10
- package/src/devtools/ConsoleBody.tsx +15 -12
- package/src/devtools/ConsoleHeader.tsx +15 -15
- package/src/devtools/ConsoleMessageRow.tsx +42 -20
- package/src/devtools/ConsoleView.tsx +3 -1
- package/src/devtools/theme.ts +13 -16
package/src/devtools/theme.ts
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Console palette — a dark theme
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
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 {
|
|
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) —
|
|
72
|
+
/** Dark theme (active) — night chrome, classic DevTools data colours. */
|
|
76
73
|
export const darkTheme: ConsoleColors = {
|
|
77
|
-
baseContainer: "#0A0A0C", //
|
|
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:
|
|
81
|
-
inputBackground:
|
|
82
|
-
menuBackground:
|
|
83
|
-
onSurface:
|
|
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:
|
|
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)
|