@oxy.so/bloom 23.9.0 → 23.10.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.
Files changed (91) hide show
  1. package/docs/bloom-lang-spec.mdx +730 -0
  2. package/docs/bloom-language-classnames.mdx +6 -6
  3. package/docs/bloom-language-codemod.mdx +10 -0
  4. package/docs/bloom-language-for-agents.mdx +20 -4
  5. package/docs/bloom-language-from-jsx.mdx +1 -0
  6. package/docs/bloom-language-getting-started.mdx +2 -1
  7. package/docs/bloom-language-modifiers.mdx +28 -16
  8. package/docs/bloom-language-nodes.mdx +1301 -440
  9. package/docs/bloom-language-tokens.mdx +2 -0
  10. package/docs/bloom-language-tour.mdx +54 -9
  11. package/docs/bloom-language.mdx +142 -33
  12. package/docs/task-catalog.json +1 -1
  13. package/docs/task-catalog.mdx +1 -1
  14. package/lib/commonjs/agent-avatar/VectorCharacterAvatar.js +18 -10
  15. package/lib/commonjs/agent-avatar/VectorCharacterAvatar.js.map +1 -1
  16. package/lib/commonjs/agent-avatar/VectorStaticPortrait.js +102 -77
  17. package/lib/commonjs/agent-avatar/VectorStaticPortrait.js.map +1 -1
  18. package/lib/commonjs/agent-avatar/vector-halo.js +57 -0
  19. package/lib/commonjs/agent-avatar/vector-halo.js.map +1 -0
  20. package/lib/commonjs/avatar/Avatar.js +65 -62
  21. package/lib/commonjs/avatar/Avatar.js.map +1 -1
  22. package/lib/commonjs/avatar/CharacterFace.js +50 -45
  23. package/lib/commonjs/avatar/CharacterFace.js.map +1 -1
  24. package/lib/commonjs/avatar-group/AvatarGroupBase.js +311 -244
  25. package/lib/commonjs/avatar-group/AvatarGroupBase.js.map +1 -1
  26. package/lib/commonjs/data-table/DataTable.js +10 -11
  27. package/lib/commonjs/data-table/DataTable.js.map +1 -1
  28. package/lib/commonjs/image/BloomImage.js +3 -0
  29. package/lib/commonjs/image/BloomImage.js.map +1 -1
  30. package/lib/commonjs/stat-bar/StatBar.js +41 -43
  31. package/lib/commonjs/stat-bar/StatBar.js.map +1 -1
  32. package/lib/module/agent-avatar/VectorCharacterAvatar.js +18 -10
  33. package/lib/module/agent-avatar/VectorCharacterAvatar.js.map +1 -1
  34. package/lib/module/agent-avatar/VectorStaticPortrait.js +103 -78
  35. package/lib/module/agent-avatar/VectorStaticPortrait.js.map +1 -1
  36. package/lib/module/agent-avatar/vector-halo.js +52 -0
  37. package/lib/module/agent-avatar/vector-halo.js.map +1 -0
  38. package/lib/module/avatar/Avatar.js +65 -62
  39. package/lib/module/avatar/Avatar.js.map +1 -1
  40. package/lib/module/avatar/CharacterFace.js +50 -45
  41. package/lib/module/avatar/CharacterFace.js.map +1 -1
  42. package/lib/module/avatar-group/AvatarGroupBase.js +311 -244
  43. package/lib/module/avatar-group/AvatarGroupBase.js.map +1 -1
  44. package/lib/module/data-table/DataTable.js +10 -11
  45. package/lib/module/data-table/DataTable.js.map +1 -1
  46. package/lib/module/image/BloomImage.js +3 -0
  47. package/lib/module/image/BloomImage.js.map +1 -1
  48. package/lib/module/stat-bar/StatBar.js +41 -43
  49. package/lib/module/stat-bar/StatBar.js.map +1 -1
  50. package/lib/typescript/commonjs/agent-avatar/VectorCharacterAvatar.d.ts.map +1 -1
  51. package/lib/typescript/commonjs/agent-avatar/VectorStaticPortrait.d.ts +2 -2
  52. package/lib/typescript/commonjs/agent-avatar/VectorStaticPortrait.d.ts.map +1 -1
  53. package/lib/typescript/commonjs/agent-avatar/types.d.ts +6 -0
  54. package/lib/typescript/commonjs/agent-avatar/types.d.ts.map +1 -1
  55. package/lib/typescript/commonjs/agent-avatar/vector-halo.d.ts +32 -0
  56. package/lib/typescript/commonjs/agent-avatar/vector-halo.d.ts.map +1 -0
  57. package/lib/typescript/commonjs/avatar/Avatar.d.ts.map +1 -1
  58. package/lib/typescript/commonjs/avatar/CharacterFace.d.ts +4 -1
  59. package/lib/typescript/commonjs/avatar/CharacterFace.d.ts.map +1 -1
  60. package/lib/typescript/commonjs/avatar/types.d.ts +9 -0
  61. package/lib/typescript/commonjs/avatar/types.d.ts.map +1 -1
  62. package/lib/typescript/commonjs/avatar-group/AvatarGroupBase.d.ts.map +1 -1
  63. package/lib/typescript/commonjs/data-table/DataTable.d.ts.map +1 -1
  64. package/lib/typescript/commonjs/image/BloomImage.d.ts.map +1 -1
  65. package/lib/typescript/module/agent-avatar/VectorCharacterAvatar.d.ts.map +1 -1
  66. package/lib/typescript/module/agent-avatar/VectorStaticPortrait.d.ts +2 -2
  67. package/lib/typescript/module/agent-avatar/VectorStaticPortrait.d.ts.map +1 -1
  68. package/lib/typescript/module/agent-avatar/types.d.ts +6 -0
  69. package/lib/typescript/module/agent-avatar/types.d.ts.map +1 -1
  70. package/lib/typescript/module/agent-avatar/vector-halo.d.ts +32 -0
  71. package/lib/typescript/module/agent-avatar/vector-halo.d.ts.map +1 -0
  72. package/lib/typescript/module/avatar/Avatar.d.ts.map +1 -1
  73. package/lib/typescript/module/avatar/CharacterFace.d.ts +4 -1
  74. package/lib/typescript/module/avatar/CharacterFace.d.ts.map +1 -1
  75. package/lib/typescript/module/avatar/types.d.ts +9 -0
  76. package/lib/typescript/module/avatar/types.d.ts.map +1 -1
  77. package/lib/typescript/module/avatar-group/AvatarGroupBase.d.ts.map +1 -1
  78. package/lib/typescript/module/data-table/DataTable.d.ts.map +1 -1
  79. package/lib/typescript/module/image/BloomImage.d.ts.map +1 -1
  80. package/package.json +1 -1
  81. package/src/agent-avatar/VectorCharacterAvatar.tsx +26 -7
  82. package/src/agent-avatar/VectorStaticPortrait.tsx +18 -5
  83. package/src/agent-avatar/types.ts +6 -0
  84. package/src/agent-avatar/vector-halo.ts +52 -0
  85. package/src/avatar/Avatar.tsx +2 -0
  86. package/src/avatar/CharacterFace.tsx +6 -0
  87. package/src/avatar/types.ts +6 -0
  88. package/src/avatar-group/AvatarGroupBase.tsx +36 -4
  89. package/src/data-table/DataTable.tsx +8 -10
  90. package/src/image/BloomImage.tsx +3 -0
  91. package/src/stat-bar/StatBar.tsx +14 -14
@@ -0,0 +1,52 @@
1
+ import type { VectorDrawPath, VectorFrame } from './vector-types';
2
+ import { avatarViewBox } from './vector-viewbox';
3
+
4
+ /** A gap cut around a character's silhouette: painted in `color` (the surface), `width` pixels wide. */
5
+ export type VectorHalo = { color: string; width: number };
6
+
7
+ /** The id of the one path that carries a frame's halo. Not a part index, so no paint is looked up for it. */
8
+ export const HALO_PATH_ID = 'halo';
9
+
10
+ /**
11
+ * The frame with a gap around its silhouette: one extra path drawn first, that is every unclipped
12
+ * outline of the frame stroked and filled in the surface colour, and a viewBox widened so the gap
13
+ * is not cropped. It is part of the frame, so it moves with the character on every pose, is cached
14
+ * with it and is drawn by whichever renderer draws the frame (SVG, or the native surface for a
15
+ * single frame and for a loop alike). One path, whatever the character is made of, keeps a frame
16
+ * as cheap as it was.
17
+ */
18
+ export function withHalo(frame: VectorFrame, size: number, halo: VectorHalo): VectorFrame {
19
+ const [x = 0, y = 0, w = 1] = avatarViewBox(frame.viewBox)
20
+ .split(/[\s,]+/)
21
+ .map(Number);
22
+ // Units of the viewBox per pixel, so the gap is `width` pixels at any size.
23
+ const gap = (halo.width * w) / size;
24
+ let d = '';
25
+ for (const path of frame.paths) if (path.clip === undefined) d += path.d;
26
+ const outline: VectorDrawPath = {
27
+ id: HALO_PATH_ID,
28
+ d,
29
+ fill: halo.color,
30
+ opacity: 1,
31
+ fillOpacity: 1,
32
+ stroke: halo.color,
33
+ strokeWidth: gap * 2,
34
+ };
35
+ return {
36
+ viewBox: `${x - gap} ${y - gap} ${w + gap * 2} ${w + gap * 2}`,
37
+ paths: [outline, ...frame.paths],
38
+ };
39
+ }
40
+
41
+ /** The style of a drawing's surface: the avatar's box, or that box grown by the halo on every side. */
42
+ export function haloSurfaceStyle(size: number, halo: VectorHalo | undefined) {
43
+ return halo && halo.width > 0
44
+ ? ({
45
+ position: 'absolute',
46
+ left: -halo.width,
47
+ top: -halo.width,
48
+ width: size + halo.width * 2,
49
+ height: size + halo.width * 2,
50
+ } as const)
51
+ : ({ width: '100%', height: '100%' } as const);
52
+ }
@@ -361,6 +361,7 @@ const AvatarComponent: React.FC<AvatarProps> = ({
361
361
  liveLabel: liveLabelProp,
362
362
  liveColor,
363
363
  ring,
364
+ halo,
364
365
  testID,
365
366
  }) => {
366
367
  const theme = useTheme();
@@ -463,6 +464,7 @@ const AvatarComponent: React.FC<AvatarProps> = ({
463
464
  character={resolvedCharacter}
464
465
  still={characterStill}
465
466
  size={size}
467
+ halo={halo}
466
468
  motion={motion}
467
469
  activity={activity}
468
470
  reactionKey={reactionKey}
@@ -4,6 +4,7 @@ import { View } from 'react-native';
4
4
  import { AGENT_AVATAR_MESSAGES } from '../agent-avatar/messages';
5
5
  import { avatarCharacterOf, type ResolvedAvatarCharacter } from '../agent-avatar/character';
6
6
  import type { ImageSource } from '../shapes';
7
+ import type { VectorHalo } from '../agent-avatar/vector-halo';
7
8
  import { usePrefersReducedMotion } from '../hooks/use-prefers-reduced-motion';
8
9
  import { useMessages } from '../locale/messages';
9
10
  import type { AvatarMotion } from './types';
@@ -47,6 +48,8 @@ export interface CharacterFaceProps {
47
48
  alt?: string;
48
49
  /** The account's display name or handle, when it has one. */
49
50
  name?: string;
51
+ /** A gap cut around the silhouette, drawn with the character so it follows every pose. */
52
+ halo?: VectorHalo;
50
53
  /** Drawn at the same size until the picture is there: reserves the box, so nothing jumps. */
51
54
  placeholder: ReactNode;
52
55
  }
@@ -62,6 +65,7 @@ export function CharacterFace({
62
65
  reactionKey,
63
66
  alt,
64
67
  name,
68
+ halo,
65
69
  placeholder,
66
70
  }: CharacterFaceProps) {
67
71
  // Read here, not in `Avatar`: only an account with a character mounts this,
@@ -97,6 +101,7 @@ export function CharacterFace({
97
101
  <AgentAvatar
98
102
  character={written}
99
103
  size={size}
104
+ halo={halo}
100
105
  workingKey={workingKey ?? (episodes > 0 ? episodes : undefined)}
101
106
  reactionKey={reactionKey}
102
107
  onReady={() => setReady(true)}
@@ -115,6 +120,7 @@ export function CharacterFace({
115
120
  <AgentAvatar
116
121
  character={written}
117
122
  size={size}
123
+ halo={halo}
118
124
  portrait
119
125
  paused
120
126
  interactive={false}
@@ -180,5 +180,11 @@ export interface AvatarProps {
180
180
  liveColor?: string;
181
181
  /** Decorative inner border: one color or a gradient. Does not change layout size. */
182
182
  ring?: AvatarRingConfig;
183
+ /**
184
+ * A gap cut around a character's silhouette, in `color` (the surface behind), `width` pixels
185
+ * wide. For characters that overlap, as in an `AvatarGroup`; it overflows the avatar's box and
186
+ * does nothing for an avatar that is not a character.
187
+ */
188
+ halo?: { color: string; width: number };
183
189
  testID?: string;
184
190
  }
@@ -11,7 +11,9 @@ import {
11
11
  type ViewStyle,
12
12
  } from 'react-native';
13
13
 
14
+ import { tryResolveAvatarCharacter } from '../agent-avatar/character';
14
15
  import { Avatar } from '../avatar';
16
+ import { pickAccountCharacter } from '../avatar/account';
15
17
  import type { AvatarMotion } from '../avatar/types';
16
18
  import { useMessages } from '../locale/messages';
17
19
  import { useColorTokens } from '../theme/color-tokens';
@@ -83,6 +85,15 @@ function getItemKey(item: AvatarGroupItem, index: number): string {
83
85
  return firstNonBlank(item.id, item.username, item.uri) ?? `avatar-${index}`;
84
86
  }
85
87
 
88
+ /** Whether this member is drawn as a character (an agent) rather than a photo or initials. */
89
+ function hasCharacter(item: AvatarGroupItem): boolean {
90
+ return (
91
+ tryResolveAvatarCharacter(
92
+ pickAccountCharacter({ account: { kind: item.kind, character: item.character } }),
93
+ ) !== undefined
94
+ );
95
+ }
96
+
86
97
  /** Hover callbacks injected by the web fork; undefined (no-op) on native. */
87
98
  export interface AvatarGroupCellHoverHandlers {
88
99
  onHoverIn?: (item: AvatarGroupItem, index: number) => void;
@@ -139,10 +150,17 @@ function AvatarGroupCell({
139
150
  typeof hoverHandlers?.onHoverIn === 'function' ||
140
151
  typeof hoverHandlers?.onHoverOut === 'function';
141
152
 
142
- const expressive = shape !== undefined && shape !== 'circle';
153
+ // A character is its own silhouette: clipping it to the cell's circle would cut it and a circular
154
+ // ring would not follow it, so it is drawn unclipped with a gap cut around its outline instead.
155
+ const silhouette = hasCharacter(item);
156
+ const expressive = silhouette || (shape !== undefined && shape !== 'circle');
143
157
  const frame = StyleSheet.flatten(cellStyle);
158
+ const halo =
159
+ silhouette && typeof frame?.borderWidth === 'number' && frame.borderWidth > 0
160
+ ? { width: frame.borderWidth, color: String(frame.borderColor) }
161
+ : undefined;
144
162
  const shapeRing =
145
- expressive && typeof frame?.borderWidth === 'number' && frame.borderWidth > 0
163
+ expressive && !silhouette && typeof frame?.borderWidth === 'number' && frame.borderWidth > 0
146
164
  ? { width: frame.borderWidth, colors: String(frame.borderColor) }
147
165
  : undefined;
148
166
 
@@ -178,6 +196,7 @@ function AvatarGroupCell({
178
196
  motion={motion}
179
197
  size={innerSize + (shapeRing?.width ?? 0) * 2}
180
198
  ring={shapeRing}
199
+ halo={halo}
181
200
  shape={shape}
182
201
  testID={testID}
183
202
  />
@@ -371,6 +390,7 @@ const AvatarGroupBaseComponent: React.FC<AvatarGroupBaseProps> = ({
371
390
  ...(isRow ? {} : { zIndex: 0 }),
372
391
  }}
373
392
  textStyle={overflowTextStyle}
393
+ plain={shown.some(hasCharacter)}
374
394
  onPress={overflowOnPress}
375
395
  />
376
396
  )}
@@ -481,6 +501,7 @@ const ClusterAvatarGroup: React.FC<ClusterAvatarGroupProps> = ({
481
501
  fontSize: Math.max(fontSize._2xs, Math.round(diameter * 0.34)),
482
502
  fontWeight: '600',
483
503
  }}
504
+ plain={shown.some(hasCharacter)}
484
505
  onPress={overflowOnPress}
485
506
  />
486
507
  );
@@ -553,12 +574,15 @@ function OverflowCircle({
553
574
  cellStyle,
554
575
  wrapperStyle,
555
576
  textStyle,
577
+ plain = false,
556
578
  onPress,
557
579
  }: {
558
580
  count: number;
559
581
  cellStyle: StyleProp<ViewStyle>;
560
582
  wrapperStyle: StyleProp<ViewStyle>;
561
583
  textStyle: TextStyle;
584
+ /** Just the count, no chip: beside characters, whose silhouettes are not circles. */
585
+ plain?: boolean;
562
586
  onPress?: () => void;
563
587
  }) {
564
588
  const tokens = useColorTokens();
@@ -569,8 +593,15 @@ function OverflowCircle({
569
593
  // (margin for the facepile, absolute coords for the cluster) is supplied by
570
594
  // the caller via `wrapperStyle`.
571
595
  const circle = (
572
- <View style={[cellStyle, { backgroundColor: tokens.mutedForeground }]}>
573
- <Text allowFontScaling={false} style={textStyle}>
596
+ <View
597
+ style={[cellStyle, plain ? styles.plainCount : { backgroundColor: tokens.mutedForeground }]}
598
+ >
599
+ <Text
600
+ allowFontScaling={false}
601
+ style={
602
+ plain ? [textStyle, { color: tokens.mutedForeground, fontWeight: '700' }] : textStyle
603
+ }
604
+ >
574
605
  +{count}
575
606
  </Text>
576
607
  </View>
@@ -593,6 +624,7 @@ function OverflowCircle({
593
624
  }
594
625
 
595
626
  const styles = StyleSheet.create({
627
+ plainCount: { borderWidth: 0 },
596
628
  row: {
597
629
  flexDirection: 'row',
598
630
  alignItems: 'center',
@@ -14,8 +14,7 @@ import {
14
14
  } from '../segmented-control';
15
15
  import { BREAKPOINTS } from '../styles/breakpoints';
16
16
  import { Table, TableBody, TableCell, TableColumn, TableHeader, TableRow } from '../table';
17
- import type { Theme } from '../theme/types';
18
- import { useTheme } from '../theme/use-theme';
17
+ import { useColorTokens, type ColorTokens } from '../theme/color-tokens';
19
18
  import { Text, TYPE_SCALE } from '../typography';
20
19
  import { DATA_TABLE_MESSAGES } from './messages';
21
20
  import { clampPage, isSortable, nextSort, pageCount, sortRows } from './sorting';
@@ -63,13 +62,12 @@ interface DataTablePalette {
63
62
  text: string;
64
63
  }
65
64
 
66
- function resolveDataTablePalette(theme: Theme): DataTablePalette {
67
- const c = theme.colors;
65
+ function resolveDataTablePalette(tokens: ColorTokens): DataTablePalette {
68
66
  return {
69
- border: c.borderLight,
70
- separator: c.borderLight,
71
- textTertiary: c.textSecondary,
72
- text: c.text,
67
+ border: tokens.input,
68
+ separator: tokens.input,
69
+ textTertiary: tokens.mutedForeground,
70
+ text: tokens.foreground,
73
71
  };
74
72
  }
75
73
 
@@ -155,8 +153,8 @@ export function DataTable<T>({
155
153
  { size: defaultSize },
156
154
  { size: 'md', tone: 'neutral' },
157
155
  );
158
- const theme = useTheme();
159
- const palette = useMemo(() => resolveDataTablePalette(theme), [theme]);
156
+ const tokens = useColorTokens();
157
+ const palette = useMemo(() => resolveDataTablePalette(tokens), [tokens]);
160
158
 
161
159
  const [size, setSize] = useControllableState<DataTableSize>({
162
160
  value: sizeProp,
@@ -100,6 +100,9 @@ function FallbackImage({
100
100
  return (
101
101
  <NativeImage
102
102
  {...nativeRest}
103
+ // `alt` is the image's name, as expo-image and React Native's own Image read it;
104
+ // react-native-web's Image reads only `accessibilityLabel` (its `aria-label` and `<img alt>`).
105
+ accessibilityLabel={rest.accessibilityLabel ?? rest.alt}
103
106
  source={typeof source === 'string' ? { uri: source } : (source ?? undefined)}
104
107
  resizeMode={RESIZE_MODE[contentFit]}
105
108
  fadeDuration={transition}
@@ -3,7 +3,7 @@ import { SURFACE_SHAPES } from '../design-tokens/shapes';
3
3
  import React, { memo } from 'react';
4
4
  import { View, StyleSheet } from 'react-native';
5
5
 
6
- import { useTheme } from '../theme/use-theme';
6
+ import { useColorTokens } from '../theme/color-tokens';
7
7
  import { clamp } from '../styles/clamp';
8
8
  import { Text } from '../typography';
9
9
  import { Meter } from './Meter';
@@ -25,14 +25,14 @@ function clampPercent(value: number): number {
25
25
  *
26
26
  * The bar itself is `Meter`, so the geometry, the default colours and the
27
27
  * `progressbar` accessibility are the same ones every other bar in Bloom uses.
28
- * This family owns only the label row and the footer. Text comes from the theme
29
- * (`text`/`textSecondary`/`textTertiary`); the fill and the track default to
30
- * `resolveMeterColors` (the accent over `neutral-200` / dark `neutral-700`) and
31
- * stay overridable per-prop. Pure `<View>` composition, so it renders
32
- * identically on web and native.
28
+ * This family owns only the label row and the footer. Text paints through the
29
+ * colour tokens (`foreground`/`muted-foreground`/`faint-foreground`); the fill
30
+ * and the track default to `resolveMeterColors` (the accent over `neutral-200`
31
+ * / dark `neutral-700`) and stay overridable per-prop. Pure `<View>`
32
+ * composition, so it renders identically on web and native.
33
33
  */
34
34
  const StatBarComponent: React.FC<StatBarProps> = (props) => {
35
- const { colors } = useTheme();
35
+ const tokens = useColorTokens();
36
36
  const { label, fillColor, trackColor, height = 6, icon, style, testID } = props;
37
37
  const radius = height / 2;
38
38
 
@@ -43,10 +43,10 @@ const StatBarComponent: React.FC<StatBarProps> = (props) => {
43
43
  return (
44
44
  <View style={[styles.wrap, style]} testID={testID}>
45
45
  <View style={styles.labelRow}>
46
- <Text style={[styles.label, { color: colors.textSecondary }]} numberOfLines={1}>
46
+ <Text style={[styles.label, { color: tokens.mutedForeground }]} numberOfLines={1}>
47
47
  {label}
48
48
  </Text>
49
- <Text style={[styles.percent, { color: colors.text }]} numberOfLines={1}>
49
+ <Text style={[styles.percent, { color: tokens.foreground }]} numberOfLines={1}>
50
50
  {Math.round(leftPercent)}%
51
51
  </Text>
52
52
  </View>
@@ -64,10 +64,10 @@ const StatBarComponent: React.FC<StatBarProps> = (props) => {
64
64
  />
65
65
 
66
66
  <View style={styles.footerRow}>
67
- <Text style={[styles.footerValue, { color: colors.textTertiary }]} numberOfLines={1}>
67
+ <Text style={[styles.footerValue, { color: tokens.faintForeground }]} numberOfLines={1}>
68
68
  {leftValue}
69
69
  </Text>
70
- <Text style={[styles.footerValue, { color: colors.textTertiary }]} numberOfLines={1}>
70
+ <Text style={[styles.footerValue, { color: tokens.faintForeground }]} numberOfLines={1}>
71
71
  {rightValue}
72
72
  </Text>
73
73
  </View>
@@ -81,7 +81,7 @@ const StatBarComponent: React.FC<StatBarProps> = (props) => {
81
81
  return (
82
82
  <View style={[styles.wrap, style]} testID={testID}>
83
83
  <View style={styles.labelRow}>
84
- <Text style={[styles.label, { color: colors.textSecondary }]} numberOfLines={1}>
84
+ <Text style={[styles.label, { color: tokens.mutedForeground }]} numberOfLines={1}>
85
85
  {label}
86
86
  </Text>
87
87
  {icon != null && <View style={styles.icon}>{icon}</View>}
@@ -100,10 +100,10 @@ const StatBarComponent: React.FC<StatBarProps> = (props) => {
100
100
 
101
101
  {hasFooter && (
102
102
  <View style={styles.footerRow}>
103
- <Text style={[styles.footerValue, { color: colors.textTertiary }]} numberOfLines={1}>
103
+ <Text style={[styles.footerValue, { color: tokens.faintForeground }]} numberOfLines={1}>
104
104
  {minLabel ?? ''}
105
105
  </Text>
106
- <Text style={[styles.footerValue, { color: colors.textTertiary }]} numberOfLines={1}>
106
+ <Text style={[styles.footerValue, { color: tokens.faintForeground }]} numberOfLines={1}>
107
107
  {maxLabel ?? ''}
108
108
  </Text>
109
109
  </View>