@buoy-gg/js-top 7.0.25 → 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.
@@ -7,7 +7,7 @@
7
7
 
8
8
  import { useEffect, useState } from "react";
9
9
  import { StyleSheet, Text, View } from "react-native";
10
- import { macOSColors } from "@buoy-gg/shared-ui";
10
+ import { macOSColors, night } from "@buoy-gg/shared-ui";
11
11
  import type { JsTopSnapshot } from "../types";
12
12
  import { JsTopController } from "../engine/JsTopController";
13
13
 
@@ -57,9 +57,9 @@ const styles = StyleSheet.create({
57
57
  flexDirection: "row",
58
58
  alignItems: "center",
59
59
  gap: 6,
60
- backgroundColor: "rgba(10,10,12,0.85)",
60
+ backgroundColor: night.color.buttonSurface,
61
61
  borderWidth: 1,
62
- borderColor: macOSColors.border.default,
62
+ borderColor: night.color.border,
63
63
  borderRadius: 6,
64
64
  paddingHorizontal: 8,
65
65
  paddingVertical: 4,
@@ -71,7 +71,7 @@ const styles = StyleSheet.create({
71
71
  fontVariant: ["tabular-nums"],
72
72
  },
73
73
  label: {
74
- color: macOSColors.text.secondary ?? macOSColors.text.primary,
74
+ color: night.color.textSecondary,
75
75
  fontSize: 10,
76
76
  flexShrink: 1,
77
77
  },
@@ -22,6 +22,7 @@ import {
22
22
  Activity,
23
23
  JsModal,
24
24
  macOSColors,
25
+ night,
25
26
  ModalHeader,
26
27
  Pause,
27
28
  Play,
@@ -222,9 +223,9 @@ export function JsTopModal({
222
223
  accessibilityLabel={paused ? "Resume sampling" : "Pause sampling"}
223
224
  >
224
225
  {paused ? (
225
- <Play size={14} color={macOSColors.semantic.info} />
226
+ <Play size={14} color={night.color.accent} />
226
227
  ) : (
227
- <Pause size={14} color={macOSColors.text.secondary} />
228
+ <Pause size={14} color={night.color.textSecondary} />
228
229
  )}
229
230
  </TouchableOpacity>
230
231
  <TouchableOpacity
@@ -235,7 +236,9 @@ export function JsTopModal({
235
236
  >
236
237
  <Trash2
237
238
  size={14}
238
- color={hasData ? macOSColors.text.muted : macOSColors.text.muted}
239
+ color={
240
+ hasData ? night.color.textTertiary : night.color.textTertiary
241
+ }
239
242
  />
240
243
  </TouchableOpacity>
241
244
  </ModalHeader.Actions>
@@ -324,7 +327,7 @@ const styles = StyleSheet.create({
324
327
  gap: 8,
325
328
  },
326
329
  title: {
327
- color: macOSColors.text.primary,
330
+ color: night.color.text,
328
331
  fontSize: 14,
329
332
  fontWeight: "500",
330
333
  },
@@ -343,15 +346,15 @@ const styles = StyleSheet.create({
343
346
  width: 32,
344
347
  height: 32,
345
348
  borderRadius: 8,
346
- backgroundColor: macOSColors.background.hover,
349
+ backgroundColor: night.color.buttonSurface,
347
350
  borderWidth: 1,
348
- borderColor: macOSColors.border.default,
351
+ borderColor: night.color.border,
349
352
  alignItems: "center",
350
353
  justifyContent: "center",
351
354
  },
352
355
  actionBtnActive: {
353
- backgroundColor: macOSColors.semantic.infoBackground,
354
- borderColor: macOSColors.semantic.info + "40",
356
+ backgroundColor: night.color.accentSoft,
357
+ borderColor: night.color.accentBorderStrong,
355
358
  },
356
359
  actionBtnDisabled: {
357
360
  opacity: 0.55,
@@ -359,7 +362,9 @@ const styles = StyleSheet.create({
359
362
  body: {
360
363
  flex: 1,
361
364
  minHeight: 0,
362
- backgroundColor: macOSColors.background.base,
365
+ // Transparent so JsModal's ToolBackground shows through (the modal paints
366
+ // opaque base beneath it). The embedded path keeps `embeddedRoot`'s base fill.
367
+ backgroundColor: "transparent",
363
368
  },
364
369
  diagnosis: {
365
370
  flexDirection: "row",
@@ -369,7 +374,7 @@ const styles = StyleSheet.create({
369
374
  marginTop: 8,
370
375
  paddingHorizontal: 10,
371
376
  paddingVertical: 8,
372
- backgroundColor: macOSColors.background.card,
377
+ backgroundColor: night.color.surface,
373
378
  borderRadius: 6,
374
379
  borderLeftWidth: 3,
375
380
  },
@@ -379,7 +384,7 @@ const styles = StyleSheet.create({
379
384
  },
380
385
  diagnosisText: {
381
386
  flex: 1,
382
- color: macOSColors.text.primary,
387
+ color: night.color.text,
383
388
  fontSize: 12,
384
389
  lineHeight: 16,
385
390
  },
@@ -389,19 +394,19 @@ const styles = StyleSheet.create({
389
394
  gap: 4,
390
395
  },
391
396
  sparklineCaption: {
392
- color: macOSColors.text.muted,
397
+ color: night.color.textTertiary,
393
398
  fontSize: 8,
394
399
  fontWeight: "700",
395
400
  letterSpacing: 0.5,
396
401
  },
397
402
  tierBanner: {
398
- color: macOSColors.text.muted,
403
+ color: night.color.textTertiary,
399
404
  fontSize: 10,
400
405
  paddingHorizontal: 10,
401
406
  paddingBottom: 6,
402
407
  },
403
408
  waiting: {
404
- color: macOSColors.text.muted,
409
+ color: night.color.textTertiary,
405
410
  fontSize: 12,
406
411
  textAlign: "center",
407
412
  paddingVertical: 32,
@@ -11,7 +11,7 @@
11
11
 
12
12
  import { memo } from "react";
13
13
  import { ScrollView, StyleSheet, Text, View } from "react-native";
14
- import { macOSColors, useSafeAreaInsets } from "@buoy-gg/shared-ui";
14
+ import { macOSColors, night, useSafeAreaInsets } from "@buoy-gg/shared-ui";
15
15
  import type { JsTopOriginDetail, TaskApi } from "../types";
16
16
  import { badgeFor, displayName } from "./TaskTable";
17
17
 
@@ -211,7 +211,8 @@ export const TaskDetailView = memo(function TaskDetailView({
211
211
  const styles = StyleSheet.create({
212
212
  root: {
213
213
  flex: 1,
214
- backgroundColor: macOSColors.background.base,
214
+ // Transparent so JsModal's ToolBackground shows through (the modal paints opaque base beneath it).
215
+ backgroundColor: "transparent",
215
216
  paddingHorizontal: 12,
216
217
  },
217
218
  identityRow: {
@@ -233,19 +234,19 @@ const styles = StyleSheet.create({
233
234
  },
234
235
  name: {
235
236
  flex: 1,
236
- color: macOSColors.text.primary,
237
+ color: night.color.text,
237
238
  fontSize: 15,
238
239
  fontWeight: "600",
239
240
  },
240
241
  explainer: {
241
- color: macOSColors.text.muted,
242
+ color: night.color.textTertiary,
242
243
  fontSize: 11,
243
244
  lineHeight: 15,
244
245
  marginTop: 6,
245
246
  marginBottom: 4,
246
247
  },
247
248
  sectionTitle: {
248
- color: macOSColors.text.muted,
249
+ color: night.color.textTertiary,
249
250
  fontSize: 9,
250
251
  fontWeight: "700",
251
252
  letterSpacing: 0.5,
@@ -257,10 +258,10 @@ const styles = StyleSheet.create({
257
258
  alignItems: "flex-end",
258
259
  height: 48,
259
260
  gap: 2,
260
- backgroundColor: macOSColors.background.card,
261
+ backgroundColor: night.color.surface,
261
262
  borderRadius: 6,
262
263
  borderWidth: 1,
263
- borderColor: macOSColors.border.default,
264
+ borderColor: night.color.border,
264
265
  paddingHorizontal: 6,
265
266
  paddingTop: 2,
266
267
  },
@@ -281,7 +282,7 @@ const styles = StyleSheet.create({
281
282
  marginTop: 4,
282
283
  },
283
284
  chartLegendText: {
284
- color: macOSColors.text.muted,
285
+ color: night.color.textTertiary,
285
286
  fontSize: 10,
286
287
  fontVariant: ["tabular-nums"],
287
288
  },
@@ -294,56 +295,56 @@ const styles = StyleSheet.create({
294
295
  width: "23%",
295
296
  minWidth: 76,
296
297
  flexGrow: 1,
297
- backgroundColor: macOSColors.background.card,
298
+ backgroundColor: night.color.surface,
298
299
  borderWidth: 1,
299
- borderColor: macOSColors.border.default,
300
+ borderColor: night.color.border,
300
301
  borderRadius: 6,
301
302
  paddingHorizontal: 8,
302
303
  paddingVertical: 6,
303
304
  },
304
305
  statLabel: {
305
- color: macOSColors.text.muted,
306
+ color: night.color.textTertiary,
306
307
  fontSize: 8,
307
308
  fontWeight: "700",
308
309
  letterSpacing: 0.4,
309
310
  marginBottom: 3,
310
311
  },
311
312
  statValue: {
312
- color: macOSColors.text.primary,
313
+ color: night.color.text,
313
314
  fontSize: 13,
314
315
  fontWeight: "600",
315
316
  fontVariant: ["tabular-nums"],
316
317
  },
317
318
  siteCard: {
318
- backgroundColor: macOSColors.background.card,
319
+ backgroundColor: night.color.surface,
319
320
  borderWidth: 1,
320
- borderColor: macOSColors.border.default,
321
+ borderColor: night.color.border,
321
322
  borderRadius: 6,
322
323
  padding: 10,
323
324
  gap: 3,
324
325
  },
325
326
  siteCaller: {
326
- color: macOSColors.text.primary,
327
+ color: night.color.text,
327
328
  fontSize: 13,
328
329
  fontWeight: "600",
329
330
  },
330
331
  siteFile: {
331
- color: macOSColors.semantic.info,
332
+ color: night.color.info,
332
333
  fontSize: 11,
333
334
  },
334
335
  siteFrame: {
335
- color: macOSColors.text.muted,
336
+ color: night.color.textTertiary,
336
337
  fontSize: 10,
337
338
  fontVariant: ["tabular-nums"],
338
339
  },
339
340
  siteNote: {
340
- color: macOSColors.text.muted,
341
+ color: night.color.textTertiary,
341
342
  fontSize: 9,
342
343
  opacity: 0.8,
343
344
  marginTop: 4,
344
345
  },
345
346
  sitePending: {
346
- color: macOSColors.text.muted,
347
+ color: night.color.textTertiary,
347
348
  fontSize: 11,
348
349
  },
349
350
  });
@@ -22,7 +22,7 @@ import {
22
22
  TouchableOpacity,
23
23
  View,
24
24
  } from "react-native";
25
- import { macOSColors } from "@buoy-gg/shared-ui";
25
+ import { macOSColors, night } from "@buoy-gg/shared-ui";
26
26
  import type { JsTopRow, TaskApi } from "../types";
27
27
 
28
28
  export type SortKey = "windowMs" | "calls" | "avgMs" | "maxMs" | "totalMs";
@@ -234,11 +234,11 @@ const styles = StyleSheet.create({
234
234
  paddingHorizontal: 10,
235
235
  paddingVertical: 6,
236
236
  borderBottomWidth: 1,
237
- borderBottomColor: macOSColors.border.default,
238
- backgroundColor: macOSColors.background.card,
237
+ borderBottomColor: night.color.border,
238
+ backgroundColor: night.color.surface,
239
239
  },
240
240
  sortLabel: {
241
- color: macOSColors.text.muted,
241
+ color: night.color.textTertiary,
242
242
  fontSize: 9,
243
243
  fontWeight: "700",
244
244
  letterSpacing: 0.5,
@@ -246,25 +246,25 @@ const styles = StyleSheet.create({
246
246
  },
247
247
  sortChip: {
248
248
  borderWidth: 1,
249
- borderColor: macOSColors.border.default,
249
+ borderColor: night.color.border,
250
250
  borderRadius: 4,
251
251
  paddingHorizontal: 7,
252
252
  paddingVertical: 3,
253
253
  },
254
254
  sortChipOn: {
255
- borderColor: macOSColors.semantic.info,
256
- backgroundColor: `${macOSColors.semantic.info}1A`,
255
+ borderColor: night.color.accentBorderStrong,
256
+ backgroundColor: night.color.accentSoft,
257
257
  },
258
258
  sortChipText: {
259
- color: macOSColors.text.muted,
259
+ color: night.color.textTertiary,
260
260
  fontSize: 9,
261
261
  fontWeight: "600",
262
262
  fontVariant: ["tabular-nums"],
263
263
  },
264
- sortChipTextOn: { color: macOSColors.semantic.info },
264
+ sortChipTextOn: { color: night.color.accent },
265
265
  body: { flex: 1 },
266
266
  empty: {
267
- color: macOSColors.text.muted,
267
+ color: night.color.textTertiary,
268
268
  fontSize: 12,
269
269
  textAlign: "center",
270
270
  paddingVertical: 24,
@@ -276,7 +276,7 @@ const rowStyles = StyleSheet.create({
276
276
  paddingHorizontal: 10,
277
277
  paddingVertical: 8,
278
278
  borderBottomWidth: StyleSheet.hairlineWidth,
279
- borderBottomColor: macOSColors.border.default,
279
+ borderBottomColor: night.color.border,
280
280
  gap: 5,
281
281
  },
282
282
  topLine: {
@@ -286,7 +286,7 @@ const rowStyles = StyleSheet.create({
286
286
  },
287
287
  rank: {
288
288
  width: 16,
289
- color: macOSColors.text.muted,
289
+ color: night.color.textTertiary,
290
290
  fontSize: 10,
291
291
  fontVariant: ["tabular-nums"],
292
292
  },
@@ -303,7 +303,7 @@ const rowStyles = StyleSheet.create({
303
303
  },
304
304
  name: {
305
305
  flex: 1,
306
- color: macOSColors.text.primary,
306
+ color: night.color.text,
307
307
  fontSize: 13,
308
308
  fontWeight: "500",
309
309
  },
@@ -317,26 +317,26 @@ const rowStyles = StyleSheet.create({
317
317
  color: macOSColors.semantic.error,
318
318
  },
319
319
  windowMs: {
320
- color: macOSColors.text.primary,
320
+ color: night.color.text,
321
321
  fontSize: 13,
322
322
  fontWeight: "700",
323
323
  fontVariant: ["tabular-nums"],
324
324
  },
325
325
  unit: {
326
- color: macOSColors.text.muted,
326
+ color: night.color.textTertiary,
327
327
  fontSize: 10,
328
328
  fontWeight: "400",
329
329
  },
330
330
  pct: {
331
331
  width: 38,
332
332
  textAlign: "right",
333
- color: macOSColors.text.secondary,
333
+ color: night.color.textSecondary,
334
334
  fontSize: 12,
335
335
  fontWeight: "600",
336
336
  fontVariant: ["tabular-nums"],
337
337
  },
338
338
  pctMuted: {
339
- color: macOSColors.text.muted,
339
+ color: night.color.textTertiary,
340
340
  },
341
341
  subLine: {
342
342
  flexDirection: "row",
@@ -348,7 +348,7 @@ const rowStyles = StyleSheet.create({
348
348
  width: 72,
349
349
  height: 4,
350
350
  borderRadius: 2,
351
- backgroundColor: macOSColors.background.input,
351
+ backgroundColor: night.color.fillSecondary,
352
352
  overflow: "hidden",
353
353
  },
354
354
  barFill: {
@@ -358,7 +358,7 @@ const rowStyles = StyleSheet.create({
358
358
  },
359
359
  stats: {
360
360
  flex: 1,
361
- color: macOSColors.text.muted,
361
+ color: night.color.textTertiary,
362
362
  fontSize: 10,
363
363
  fontVariant: ["tabular-nums"],
364
364
  },