@buoy-gg/assets 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.
Files changed (31) hide show
  1. package/lib/commonjs/components/AssetDetail.js +7 -7
  2. package/lib/commonjs/components/AssetDetail.js.map +1 -1
  3. package/lib/commonjs/components/AssetRow.js +8 -8
  4. package/lib/commonjs/components/AssetRow.js.map +1 -1
  5. package/lib/commonjs/components/AssetsFilterBar.js +4 -4
  6. package/lib/commonjs/components/AssetsFilterBar.js.map +1 -1
  7. package/lib/commonjs/components/AssetsListControls.js +7 -7
  8. package/lib/commonjs/components/AssetsListControls.js.map +1 -1
  9. package/lib/commonjs/components/AssetsModal.js +12 -10
  10. package/lib/commonjs/components/AssetsModal.js.map +1 -1
  11. package/lib/commonjs/components/BaselineBar.js +7 -7
  12. package/lib/commonjs/components/BaselineBar.js.map +1 -1
  13. package/lib/module/components/AssetDetail.js +8 -8
  14. package/lib/module/components/AssetDetail.js.map +1 -1
  15. package/lib/module/components/AssetRow.js +9 -9
  16. package/lib/module/components/AssetRow.js.map +1 -1
  17. package/lib/module/components/AssetsFilterBar.js +5 -5
  18. package/lib/module/components/AssetsFilterBar.js.map +1 -1
  19. package/lib/module/components/AssetsListControls.js +8 -8
  20. package/lib/module/components/AssetsListControls.js.map +1 -1
  21. package/lib/module/components/AssetsModal.js +13 -11
  22. package/lib/module/components/AssetsModal.js.map +1 -1
  23. package/lib/module/components/BaselineBar.js +8 -8
  24. package/lib/module/components/BaselineBar.js.map +1 -1
  25. package/package.json +2 -2
  26. package/src/components/AssetDetail.tsx +8 -8
  27. package/src/components/AssetRow.tsx +9 -9
  28. package/src/components/AssetsFilterBar.tsx +5 -5
  29. package/src/components/AssetsListControls.tsx +8 -8
  30. package/src/components/AssetsModal.tsx +13 -11
  31. package/src/components/BaselineBar.tsx +8 -8
@@ -12,7 +12,7 @@
12
12
  */
13
13
 
14
14
  import { Image, StyleSheet, Text, TouchableOpacity, View } from "react-native";
15
- import { macOSColors } from "@buoy-gg/shared-ui";
15
+ import { macOSColors, night } from "@buoy-gg/shared-ui";
16
16
  import { displaySource } from "../capture/measure";
17
17
  import {
18
18
  formatDimensions,
@@ -141,9 +141,9 @@ const styles = StyleSheet.create({
141
141
  marginHorizontal: 10,
142
142
  marginTop: 6,
143
143
  borderRadius: 10,
144
- backgroundColor: macOSColors.background.card,
144
+ backgroundColor: night.color.surface,
145
145
  borderWidth: 1,
146
- borderColor: macOSColors.border.default,
146
+ borderColor: night.color.border,
147
147
  overflow: "hidden",
148
148
  },
149
149
  body: {
@@ -160,7 +160,7 @@ const styles = StyleSheet.create({
160
160
  // Light plate so dark glyph assets stay visible on the dark card.
161
161
  backgroundColor: "rgba(255,255,255,0.10)",
162
162
  borderWidth: 1,
163
- borderColor: macOSColors.border.default,
163
+ borderColor: night.color.border,
164
164
  alignItems: "center",
165
165
  justifyContent: "center",
166
166
  overflow: "hidden",
@@ -179,12 +179,12 @@ const styles = StyleSheet.create({
179
179
  gap: 3,
180
180
  },
181
181
  name: {
182
- color: macOSColors.text.primary,
182
+ color: night.color.text,
183
183
  fontSize: 12,
184
184
  fontWeight: "600",
185
185
  },
186
186
  ext: {
187
- color: macOSColors.text.muted,
187
+ color: night.color.textTertiary,
188
188
  fontWeight: "400",
189
189
  },
190
190
  metaRow: {
@@ -193,7 +193,7 @@ const styles = StyleSheet.create({
193
193
  gap: 8,
194
194
  },
195
195
  meta: {
196
- color: macOSColors.text.secondary,
196
+ color: night.color.textSecondary,
197
197
  fontSize: 10,
198
198
  fontVariant: ["tabular-nums"],
199
199
  },
@@ -202,7 +202,7 @@ const styles = StyleSheet.create({
202
202
  gap: 4,
203
203
  },
204
204
  size: {
205
- color: macOSColors.text.primary,
205
+ color: night.color.text,
206
206
  fontSize: 12,
207
207
  fontWeight: "700",
208
208
  fontVariant: ["tabular-nums"],
@@ -226,7 +226,7 @@ const styles = StyleSheet.create({
226
226
  borderRadius: 2.5,
227
227
  },
228
228
  badgePillText: {
229
- color: macOSColors.text.secondary,
229
+ color: night.color.textSecondary,
230
230
  fontSize: 9,
231
231
  fontWeight: "600",
232
232
  letterSpacing: 0.3,
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import { StyleSheet, Text, TouchableOpacity, View } from "react-native";
9
- import { macOSColors } from "@buoy-gg/shared-ui";
9
+ import { night } from "@buoy-gg/shared-ui";
10
10
  import { KIND_COLORS, KIND_LABELS } from "../format";
11
11
  import type { AssetKind, AssetsStats } from "../types";
12
12
 
@@ -20,7 +20,7 @@ interface AssetsFilterBarProps {
20
20
 
21
21
  export function AssetsFilterBar({ stats, filter, onChange }: AssetsFilterBarProps) {
22
22
  const chips: Array<{ key: AssetFilter; label: string; accent: string }> = [
23
- { key: "all", label: `ALL ${stats.total}`, accent: macOSColors.text.secondary },
23
+ { key: "all", label: `ALL ${stats.total}`, accent: night.color.textSecondary },
24
24
  ];
25
25
  for (const kind of Object.keys(stats.byKind) as AssetKind[]) {
26
26
  const entry = stats.byKind[kind];
@@ -62,7 +62,7 @@ export function AssetsFilterBar({ stats, filter, onChange }: AssetsFilterBarProp
62
62
  <Text
63
63
  style={[
64
64
  styles.chipText,
65
- { color: active ? chip.accent : macOSColors.text.secondary },
65
+ { color: active ? chip.accent : night.color.textSecondary },
66
66
  ]}
67
67
  >
68
68
  {chip.label}
@@ -84,8 +84,8 @@ const styles = StyleSheet.create({
84
84
  },
85
85
  chip: {
86
86
  borderWidth: 1,
87
- borderColor: macOSColors.border.default,
88
- backgroundColor: macOSColors.background.card,
87
+ borderColor: night.color.border,
88
+ backgroundColor: night.color.surface,
89
89
  borderRadius: 999,
90
90
  paddingHorizontal: 10,
91
91
  paddingVertical: 5,
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import { StyleSheet, Text, TextInput, TouchableOpacity, View } from "react-native";
9
- import { macOSColors } from "@buoy-gg/shared-ui";
9
+ import { night } from "@buoy-gg/shared-ui";
10
10
  import { saveBaseline } from "../store/baseline";
11
11
 
12
12
  export type AssetSort = "size" | "name" | "type";
@@ -40,7 +40,7 @@ export function AssetsListControls({
40
40
  value={query}
41
41
  onChangeText={onQueryChange}
42
42
  placeholder="Search assets…"
43
- placeholderTextColor={macOSColors.text.muted}
43
+ placeholderTextColor={night.color.placeholder}
44
44
  autoCapitalize="none"
45
45
  autoCorrect={false}
46
46
  testID="buoy-assets-search"
@@ -75,25 +75,25 @@ const styles = StyleSheet.create({
75
75
  },
76
76
  input: {
77
77
  flex: 1,
78
- backgroundColor: macOSColors.background.input,
78
+ backgroundColor: night.color.surfaceElevated,
79
79
  borderWidth: 1,
80
- borderColor: macOSColors.border.default,
80
+ borderColor: night.color.border,
81
81
  borderRadius: 8,
82
82
  paddingHorizontal: 10,
83
83
  paddingVertical: 6,
84
- color: macOSColors.text.primary,
84
+ color: night.color.text,
85
85
  fontSize: 12,
86
86
  },
87
87
  button: {
88
- backgroundColor: macOSColors.background.card,
88
+ backgroundColor: night.color.surface,
89
89
  borderWidth: 1,
90
- borderColor: macOSColors.border.default,
90
+ borderColor: night.color.border,
91
91
  borderRadius: 8,
92
92
  paddingHorizontal: 10,
93
93
  paddingVertical: 7,
94
94
  },
95
95
  buttonText: {
96
- color: macOSColors.text.secondary,
96
+ color: night.color.textSecondary,
97
97
  fontSize: 10,
98
98
  fontWeight: "700",
99
99
  letterSpacing: 0.5,
@@ -7,7 +7,7 @@
7
7
 
8
8
  import { useEffect, useState } from "react";
9
9
  import { FlatList, StyleSheet, Text, View } from "react-native";
10
- import { EventStepperFooter, JsModal, macOSColors } from "@buoy-gg/shared-ui";
10
+ import { EventStepperFooter, JsModal, macOSColors, night } from "@buoy-gg/shared-ui";
11
11
  import type { ModalState } from "@buoy-gg/shared-ui";
12
12
  import { getScanStatus, installAssetCapture, rescan } from "../capture/install";
13
13
  import { formatAssetMarkdown, formatInventoryMarkdown } from "../export";
@@ -289,7 +289,9 @@ const styles = StyleSheet.create({
289
289
  inlineRoot: {
290
290
  flex: 1,
291
291
  minHeight: 0,
292
- backgroundColor: macOSColors.background.base,
292
+ // Transparent so the desktop workbench's hoisted sky (one field spanning
293
+ // sidebar + panel) shows through — the shell paints its base beneath it.
294
+ backgroundColor: "transparent",
293
295
  },
294
296
  inlineHeader: {
295
297
  paddingHorizontal: 12,
@@ -313,12 +315,12 @@ const styles = StyleSheet.create({
313
315
  padding: 10,
314
316
  borderRadius: 8,
315
317
  borderWidth: 1,
316
- borderColor: macOSColors.border.default,
317
- backgroundColor: macOSColors.background.card,
318
+ borderColor: night.color.border,
319
+ backgroundColor: night.color.surface,
318
320
  gap: 4,
319
321
  },
320
322
  noticeText: {
321
- color: macOSColors.text.secondary,
323
+ color: night.color.textSecondary,
322
324
  fontSize: 11,
323
325
  },
324
326
  fontsBox: {
@@ -326,11 +328,11 @@ const styles = StyleSheet.create({
326
328
  marginTop: 8,
327
329
  padding: 10,
328
330
  borderRadius: 8,
329
- backgroundColor: macOSColors.background.card,
331
+ backgroundColor: night.color.surface,
330
332
  gap: 6,
331
333
  },
332
334
  fontsTitle: {
333
- color: macOSColors.text.muted,
335
+ color: night.color.textTertiary,
334
336
  fontSize: 9,
335
337
  fontWeight: "700",
336
338
  letterSpacing: 0.5,
@@ -341,9 +343,9 @@ const styles = StyleSheet.create({
341
343
  gap: 6,
342
344
  },
343
345
  fontChip: {
344
- color: macOSColors.text.secondary,
346
+ color: night.color.textSecondary,
345
347
  fontSize: 10,
346
- backgroundColor: macOSColors.background.input,
348
+ backgroundColor: night.color.bg,
347
349
  borderRadius: 999,
348
350
  paddingHorizontal: 8,
349
351
  paddingVertical: 3,
@@ -355,12 +357,12 @@ const styles = StyleSheet.create({
355
357
  gap: 8,
356
358
  },
357
359
  emptyTitle: {
358
- color: macOSColors.text.primary,
360
+ color: night.color.text,
359
361
  fontSize: 13,
360
362
  fontWeight: "600",
361
363
  },
362
364
  emptyText: {
363
- color: macOSColors.text.secondary,
365
+ color: night.color.textSecondary,
364
366
  fontSize: 11,
365
367
  textAlign: "center",
366
368
  lineHeight: 16,
@@ -8,7 +8,7 @@
8
8
  */
9
9
 
10
10
  import { StyleSheet, Text, TouchableOpacity, View } from "react-native";
11
- import { macOSColors } from "@buoy-gg/shared-ui";
11
+ import { macOSColors, night } from "@buoy-gg/shared-ui";
12
12
  import { formatBytes } from "../format";
13
13
  import { clearBaseline, saveBaseline } from "../store/baseline";
14
14
  import type { AssetsDiff } from "../types";
@@ -67,30 +67,30 @@ const styles = StyleSheet.create({
67
67
  paddingHorizontal: 10,
68
68
  paddingVertical: 6,
69
69
  borderWidth: 1,
70
- borderColor: macOSColors.border.default,
70
+ borderColor: night.color.border,
71
71
  borderRadius: 8,
72
- backgroundColor: macOSColors.background.card,
72
+ backgroundColor: night.color.surface,
73
73
  },
74
74
  summary: {
75
75
  flex: 1,
76
- color: macOSColors.text.secondary,
76
+ color: night.color.textSecondary,
77
77
  fontSize: 10,
78
78
  fontWeight: "600",
79
79
  },
80
80
  age: {
81
- color: macOSColors.text.muted,
81
+ color: night.color.textTertiary,
82
82
  fontWeight: "400",
83
83
  },
84
84
  button: {
85
- backgroundColor: macOSColors.background.input,
85
+ backgroundColor: night.color.surfaceElevated,
86
86
  borderWidth: 1,
87
- borderColor: macOSColors.border.default,
87
+ borderColor: night.color.border,
88
88
  borderRadius: 6,
89
89
  paddingHorizontal: 8,
90
90
  paddingVertical: 5,
91
91
  },
92
92
  buttonText: {
93
- color: macOSColors.text.secondary,
93
+ color: night.color.textSecondary,
94
94
  fontSize: 9,
95
95
  fontWeight: "700",
96
96
  letterSpacing: 0.5,