@lotics/ui 43.3.2 → 43.4.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lotics/ui",
3
- "version": "43.3.2",
3
+ "version": "43.4.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./vite": {
@@ -15,6 +15,11 @@ interface MemberChipProps {
15
15
  /** A rung on the shared avatar scale. Default `md`, which is sized to seat in a
16
16
  * 40px control band; drop to `sm` for a dense cell. See `AVATAR_PX`. */
17
17
  size?: AvatarSize;
18
+ /** This person is no longer active — they left, their account was closed.
19
+ * Mutes the name so a record that still names them reads as history rather
20
+ * than as a current assignment. The chip keeps its height, because its usual
21
+ * home is a fixed row: this is a colour change, never an extra line. */
22
+ inactive?: boolean;
18
23
  style?: StyleProp<ViewStyle>;
19
24
  }
20
25
 
@@ -34,7 +39,14 @@ interface MemberChipProps {
34
39
  * preserve by hand: it is why `md` is 28 rather than the 36 that used to grow
35
40
  * those three surfaces to 46, 50 and 54 for the very same chip.
36
41
  */
37
- export function MemberChip({ name, image, secondary, size = "md", style }: MemberChipProps) {
42
+ export function MemberChip({
43
+ name,
44
+ image,
45
+ secondary,
46
+ size = "md",
47
+ inactive,
48
+ style,
49
+ }: MemberChipProps) {
38
50
  const displayName = name?.trim() || "Unknown";
39
51
  // THE TEXT FOLLOWS THE RUNG. `size` used to scale the avatar alone, so a chip
40
52
  // asked for the dense rung got a 24px avatar beside a 14px name — half-dense,
@@ -50,7 +62,12 @@ export function MemberChip({ name, image, secondary, size = "md", style }: Membe
50
62
  <View style={[styles.row, style]}>
51
63
  <Avatar size={size} name={displayName} source={image ? { uri: image } : undefined} />
52
64
  <View style={styles.text}>
53
- <Text userSelect="none" size={textSize} numberOfLines={1}>
65
+ <Text
66
+ userSelect="none"
67
+ size={textSize}
68
+ color={inactive ? "zinc-500" : undefined}
69
+ numberOfLines={1}
70
+ >
54
71
  {displayName}
55
72
  </Text>
56
73
  {secondary ? (