@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.
- package/docs/bloom-lang-spec.mdx +730 -0
- package/docs/bloom-language-classnames.mdx +6 -6
- package/docs/bloom-language-codemod.mdx +10 -0
- package/docs/bloom-language-for-agents.mdx +20 -4
- package/docs/bloom-language-from-jsx.mdx +1 -0
- package/docs/bloom-language-getting-started.mdx +2 -1
- package/docs/bloom-language-modifiers.mdx +28 -16
- package/docs/bloom-language-nodes.mdx +1301 -440
- package/docs/bloom-language-tokens.mdx +2 -0
- package/docs/bloom-language-tour.mdx +54 -9
- package/docs/bloom-language.mdx +142 -33
- package/docs/task-catalog.json +1 -1
- package/docs/task-catalog.mdx +1 -1
- package/lib/commonjs/agent-avatar/VectorCharacterAvatar.js +18 -10
- package/lib/commonjs/agent-avatar/VectorCharacterAvatar.js.map +1 -1
- package/lib/commonjs/agent-avatar/VectorStaticPortrait.js +102 -77
- package/lib/commonjs/agent-avatar/VectorStaticPortrait.js.map +1 -1
- package/lib/commonjs/agent-avatar/vector-halo.js +57 -0
- package/lib/commonjs/agent-avatar/vector-halo.js.map +1 -0
- package/lib/commonjs/avatar/Avatar.js +65 -62
- package/lib/commonjs/avatar/Avatar.js.map +1 -1
- package/lib/commonjs/avatar/CharacterFace.js +50 -45
- package/lib/commonjs/avatar/CharacterFace.js.map +1 -1
- package/lib/commonjs/avatar-group/AvatarGroupBase.js +311 -244
- package/lib/commonjs/avatar-group/AvatarGroupBase.js.map +1 -1
- package/lib/commonjs/data-table/DataTable.js +10 -11
- package/lib/commonjs/data-table/DataTable.js.map +1 -1
- package/lib/commonjs/image/BloomImage.js +3 -0
- package/lib/commonjs/image/BloomImage.js.map +1 -1
- package/lib/commonjs/stat-bar/StatBar.js +41 -43
- package/lib/commonjs/stat-bar/StatBar.js.map +1 -1
- package/lib/module/agent-avatar/VectorCharacterAvatar.js +18 -10
- package/lib/module/agent-avatar/VectorCharacterAvatar.js.map +1 -1
- package/lib/module/agent-avatar/VectorStaticPortrait.js +103 -78
- package/lib/module/agent-avatar/VectorStaticPortrait.js.map +1 -1
- package/lib/module/agent-avatar/vector-halo.js +52 -0
- package/lib/module/agent-avatar/vector-halo.js.map +1 -0
- package/lib/module/avatar/Avatar.js +65 -62
- package/lib/module/avatar/Avatar.js.map +1 -1
- package/lib/module/avatar/CharacterFace.js +50 -45
- package/lib/module/avatar/CharacterFace.js.map +1 -1
- package/lib/module/avatar-group/AvatarGroupBase.js +311 -244
- package/lib/module/avatar-group/AvatarGroupBase.js.map +1 -1
- package/lib/module/data-table/DataTable.js +10 -11
- package/lib/module/data-table/DataTable.js.map +1 -1
- package/lib/module/image/BloomImage.js +3 -0
- package/lib/module/image/BloomImage.js.map +1 -1
- package/lib/module/stat-bar/StatBar.js +41 -43
- package/lib/module/stat-bar/StatBar.js.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/VectorCharacterAvatar.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/VectorStaticPortrait.d.ts +2 -2
- package/lib/typescript/commonjs/agent-avatar/VectorStaticPortrait.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/types.d.ts +6 -0
- package/lib/typescript/commonjs/agent-avatar/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/vector-halo.d.ts +32 -0
- package/lib/typescript/commonjs/agent-avatar/vector-halo.d.ts.map +1 -0
- package/lib/typescript/commonjs/avatar/Avatar.d.ts.map +1 -1
- package/lib/typescript/commonjs/avatar/CharacterFace.d.ts +4 -1
- package/lib/typescript/commonjs/avatar/CharacterFace.d.ts.map +1 -1
- package/lib/typescript/commonjs/avatar/types.d.ts +9 -0
- package/lib/typescript/commonjs/avatar/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/avatar-group/AvatarGroupBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/data-table/DataTable.d.ts.map +1 -1
- package/lib/typescript/commonjs/image/BloomImage.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/VectorCharacterAvatar.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/VectorStaticPortrait.d.ts +2 -2
- package/lib/typescript/module/agent-avatar/VectorStaticPortrait.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/types.d.ts +6 -0
- package/lib/typescript/module/agent-avatar/types.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/vector-halo.d.ts +32 -0
- package/lib/typescript/module/agent-avatar/vector-halo.d.ts.map +1 -0
- package/lib/typescript/module/avatar/Avatar.d.ts.map +1 -1
- package/lib/typescript/module/avatar/CharacterFace.d.ts +4 -1
- package/lib/typescript/module/avatar/CharacterFace.d.ts.map +1 -1
- package/lib/typescript/module/avatar/types.d.ts +9 -0
- package/lib/typescript/module/avatar/types.d.ts.map +1 -1
- package/lib/typescript/module/avatar-group/AvatarGroupBase.d.ts.map +1 -1
- package/lib/typescript/module/data-table/DataTable.d.ts.map +1 -1
- package/lib/typescript/module/image/BloomImage.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/agent-avatar/VectorCharacterAvatar.tsx +26 -7
- package/src/agent-avatar/VectorStaticPortrait.tsx +18 -5
- package/src/agent-avatar/types.ts +6 -0
- package/src/agent-avatar/vector-halo.ts +52 -0
- package/src/avatar/Avatar.tsx +2 -0
- package/src/avatar/CharacterFace.tsx +6 -0
- package/src/avatar/types.ts +6 -0
- package/src/avatar-group/AvatarGroupBase.tsx +36 -4
- package/src/data-table/DataTable.tsx +8 -10
- package/src/image/BloomImage.tsx +3 -0
- package/src/stat-bar/StatBar.tsx +14 -14
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
import { c as _c } from "react/compiler-runtime";
|
|
4
4
|
import { memo, useMemo } from 'react';
|
|
5
5
|
import { Pressable, StyleSheet, Text, View } from 'react-native';
|
|
6
|
+
import { tryResolveAvatarCharacter } from "../agent-avatar/character.js";
|
|
6
7
|
import { Avatar } from "../avatar/index.js";
|
|
8
|
+
import { pickAccountCharacter } from "../avatar/account.js";
|
|
7
9
|
import { useMessages } from "../locale/messages.js";
|
|
8
10
|
import { useColorTokens } from "../theme/color-tokens.js";
|
|
9
11
|
import { fontSize } from "../styles/tokens.js";
|
|
@@ -73,6 +75,16 @@ function getItemKey(item, index) {
|
|
|
73
75
|
return firstNonBlank(item.id, item.username, item.uri) ?? `avatar-${index}`;
|
|
74
76
|
}
|
|
75
77
|
|
|
78
|
+
/** Whether this member is drawn as a character (an agent) rather than a photo or initials. */
|
|
79
|
+
function hasCharacter(item) {
|
|
80
|
+
return tryResolveAvatarCharacter(pickAccountCharacter({
|
|
81
|
+
account: {
|
|
82
|
+
kind: item.kind,
|
|
83
|
+
character: item.character
|
|
84
|
+
}
|
|
85
|
+
})) !== undefined;
|
|
86
|
+
}
|
|
87
|
+
|
|
76
88
|
/** Hover callbacks injected by the web fork; undefined (no-op) on native. */
|
|
77
89
|
|
|
78
90
|
/**
|
|
@@ -83,7 +95,7 @@ function getItemKey(item, index) {
|
|
|
83
95
|
* the caller-provided styles so this stays layout-agnostic.
|
|
84
96
|
*/
|
|
85
97
|
function AvatarGroupCell(t0) {
|
|
86
|
-
const $ = _c(
|
|
98
|
+
const $ = _c(64);
|
|
87
99
|
const {
|
|
88
100
|
item,
|
|
89
101
|
index,
|
|
@@ -119,180 +131,205 @@ function AvatarGroupCell(t0) {
|
|
|
119
131
|
const accessibilityLabel = handle ? `${name ?? handle} (@${handle})` : name;
|
|
120
132
|
const interactive = typeof onPressItem === "function";
|
|
121
133
|
const hoverable = typeof hoverHandlers?.onHoverIn === "function" || typeof hoverHandlers?.onHoverOut === "function";
|
|
122
|
-
const expressive = shape !== undefined && shape !== "circle";
|
|
123
134
|
let t3;
|
|
124
|
-
if ($[4] !==
|
|
125
|
-
t3 =
|
|
126
|
-
$[4] =
|
|
135
|
+
if ($[4] !== item) {
|
|
136
|
+
t3 = hasCharacter(item);
|
|
137
|
+
$[4] = item;
|
|
127
138
|
$[5] = t3;
|
|
128
139
|
} else {
|
|
129
140
|
t3 = $[5];
|
|
130
141
|
}
|
|
131
|
-
const
|
|
142
|
+
const silhouette = t3;
|
|
143
|
+
const expressive = silhouette || shape !== undefined && shape !== "circle";
|
|
132
144
|
let t4;
|
|
133
|
-
if ($[6] !==
|
|
134
|
-
t4 =
|
|
145
|
+
if ($[6] !== cellStyle) {
|
|
146
|
+
t4 = StyleSheet.flatten(cellStyle);
|
|
147
|
+
$[6] = cellStyle;
|
|
148
|
+
$[7] = t4;
|
|
149
|
+
} else {
|
|
150
|
+
t4 = $[7];
|
|
151
|
+
}
|
|
152
|
+
const frame = t4;
|
|
153
|
+
let t5;
|
|
154
|
+
if ($[8] !== frame || $[9] !== silhouette) {
|
|
155
|
+
t5 = silhouette && typeof frame?.borderWidth === "number" && frame.borderWidth > 0 ? {
|
|
156
|
+
width: frame.borderWidth,
|
|
157
|
+
color: String(frame.borderColor)
|
|
158
|
+
} : undefined;
|
|
159
|
+
$[8] = frame;
|
|
160
|
+
$[9] = silhouette;
|
|
161
|
+
$[10] = t5;
|
|
162
|
+
} else {
|
|
163
|
+
t5 = $[10];
|
|
164
|
+
}
|
|
165
|
+
const halo = t5;
|
|
166
|
+
let t6;
|
|
167
|
+
if ($[11] !== expressive || $[12] !== frame || $[13] !== silhouette) {
|
|
168
|
+
t6 = expressive && !silhouette && typeof frame?.borderWidth === "number" && frame.borderWidth > 0 ? {
|
|
135
169
|
width: frame.borderWidth,
|
|
136
170
|
colors: String(frame.borderColor)
|
|
137
171
|
} : undefined;
|
|
138
|
-
$[
|
|
139
|
-
$[
|
|
140
|
-
$[
|
|
172
|
+
$[11] = expressive;
|
|
173
|
+
$[12] = frame;
|
|
174
|
+
$[13] = silhouette;
|
|
175
|
+
$[14] = t6;
|
|
141
176
|
} else {
|
|
142
|
-
|
|
177
|
+
t6 = $[14];
|
|
143
178
|
}
|
|
144
|
-
const shapeRing =
|
|
145
|
-
let
|
|
146
|
-
if ($[
|
|
147
|
-
|
|
148
|
-
$[
|
|
149
|
-
$[
|
|
150
|
-
$[
|
|
179
|
+
const shapeRing = t6;
|
|
180
|
+
let t7;
|
|
181
|
+
if ($[15] !== hoverHandlers || $[16] !== index) {
|
|
182
|
+
t7 = hoverHandlers?.registerCellRef ? node => hoverHandlers.registerCellRef?.(index, node) : undefined;
|
|
183
|
+
$[15] = hoverHandlers;
|
|
184
|
+
$[16] = index;
|
|
185
|
+
$[17] = t7;
|
|
151
186
|
} else {
|
|
152
|
-
|
|
187
|
+
t7 = $[17];
|
|
153
188
|
}
|
|
154
|
-
let
|
|
155
|
-
if ($[
|
|
156
|
-
|
|
189
|
+
let t8;
|
|
190
|
+
if ($[18] !== cellStyle || $[19] !== expressive) {
|
|
191
|
+
t8 = expressive ? [cellStyle, {
|
|
157
192
|
borderWidth: 0,
|
|
158
193
|
borderRadius: 0,
|
|
159
194
|
overflow: "visible"
|
|
160
195
|
}] : cellStyle;
|
|
161
|
-
$[
|
|
162
|
-
$[
|
|
163
|
-
$[
|
|
196
|
+
$[18] = cellStyle;
|
|
197
|
+
$[19] = expressive;
|
|
198
|
+
$[20] = t8;
|
|
164
199
|
} else {
|
|
165
|
-
|
|
200
|
+
t8 = $[20];
|
|
166
201
|
}
|
|
167
|
-
const
|
|
168
|
-
let
|
|
169
|
-
if ($[
|
|
170
|
-
|
|
202
|
+
const t9 = item.uri ?? undefined;
|
|
203
|
+
let t10;
|
|
204
|
+
if ($[21] !== item.character || $[22] !== item.kind) {
|
|
205
|
+
t10 = {
|
|
171
206
|
kind: item.kind,
|
|
172
207
|
character: item.character
|
|
173
208
|
};
|
|
174
|
-
$[
|
|
175
|
-
$[
|
|
176
|
-
$[
|
|
209
|
+
$[21] = item.character;
|
|
210
|
+
$[22] = item.kind;
|
|
211
|
+
$[23] = t10;
|
|
177
212
|
} else {
|
|
178
|
-
|
|
213
|
+
t10 = $[23];
|
|
179
214
|
}
|
|
180
|
-
const
|
|
181
|
-
const
|
|
182
|
-
let
|
|
183
|
-
if ($[
|
|
184
|
-
|
|
185
|
-
source:
|
|
186
|
-
account:
|
|
187
|
-
name:
|
|
215
|
+
const t11 = showInitials ? name : undefined;
|
|
216
|
+
const t12 = innerSize + (shapeRing?.width ?? 0) * 2;
|
|
217
|
+
let t13;
|
|
218
|
+
if ($[24] !== halo || $[25] !== item.initials || $[26] !== motion || $[27] !== shape || $[28] !== shapeRing || $[29] !== t10 || $[30] !== t11 || $[31] !== t12 || $[32] !== t9 || $[33] !== testID || $[34] !== variant) {
|
|
219
|
+
t13 = /*#__PURE__*/_jsx(Avatar, {
|
|
220
|
+
source: t9,
|
|
221
|
+
account: t10,
|
|
222
|
+
name: t11,
|
|
188
223
|
initials: item.initials,
|
|
189
224
|
variant: variant,
|
|
190
225
|
motion: motion,
|
|
191
|
-
size:
|
|
226
|
+
size: t12,
|
|
192
227
|
ring: shapeRing,
|
|
228
|
+
halo: halo,
|
|
193
229
|
shape: shape,
|
|
194
230
|
testID: testID
|
|
195
231
|
});
|
|
196
|
-
$[
|
|
197
|
-
$[
|
|
198
|
-
$[
|
|
199
|
-
$[
|
|
200
|
-
$[
|
|
201
|
-
$[
|
|
202
|
-
$[
|
|
203
|
-
$[
|
|
204
|
-
$[
|
|
205
|
-
$[
|
|
206
|
-
$[
|
|
207
|
-
|
|
208
|
-
|
|
232
|
+
$[24] = halo;
|
|
233
|
+
$[25] = item.initials;
|
|
234
|
+
$[26] = motion;
|
|
235
|
+
$[27] = shape;
|
|
236
|
+
$[28] = shapeRing;
|
|
237
|
+
$[29] = t10;
|
|
238
|
+
$[30] = t11;
|
|
239
|
+
$[31] = t12;
|
|
240
|
+
$[32] = t9;
|
|
241
|
+
$[33] = testID;
|
|
242
|
+
$[34] = variant;
|
|
243
|
+
$[35] = t13;
|
|
244
|
+
} else {
|
|
245
|
+
t13 = $[35];
|
|
209
246
|
}
|
|
210
|
-
let
|
|
211
|
-
if ($[
|
|
212
|
-
|
|
213
|
-
ref:
|
|
247
|
+
let t14;
|
|
248
|
+
if ($[36] !== t13 || $[37] !== t7 || $[38] !== t8) {
|
|
249
|
+
t14 = /*#__PURE__*/_jsx(View, {
|
|
250
|
+
ref: t7,
|
|
214
251
|
collapsable: false,
|
|
215
|
-
style:
|
|
216
|
-
children:
|
|
252
|
+
style: t8,
|
|
253
|
+
children: t13
|
|
217
254
|
});
|
|
218
|
-
$[
|
|
219
|
-
$[
|
|
220
|
-
$[
|
|
221
|
-
$[
|
|
255
|
+
$[36] = t13;
|
|
256
|
+
$[37] = t7;
|
|
257
|
+
$[38] = t8;
|
|
258
|
+
$[39] = t14;
|
|
222
259
|
} else {
|
|
223
|
-
|
|
260
|
+
t14 = $[39];
|
|
224
261
|
}
|
|
225
|
-
const cell =
|
|
262
|
+
const cell = t14;
|
|
226
263
|
if (interactive || hoverable) {
|
|
227
|
-
let
|
|
228
|
-
if ($[
|
|
229
|
-
|
|
230
|
-
$[
|
|
231
|
-
$[
|
|
232
|
-
$[
|
|
233
|
-
$[
|
|
234
|
-
$[
|
|
264
|
+
let t15;
|
|
265
|
+
if ($[40] !== index || $[41] !== interactive || $[42] !== item || $[43] !== onPressItem) {
|
|
266
|
+
t15 = interactive ? () => onPressItem?.(item, index) : undefined;
|
|
267
|
+
$[40] = index;
|
|
268
|
+
$[41] = interactive;
|
|
269
|
+
$[42] = item;
|
|
270
|
+
$[43] = onPressItem;
|
|
271
|
+
$[44] = t15;
|
|
235
272
|
} else {
|
|
236
|
-
|
|
273
|
+
t15 = $[44];
|
|
237
274
|
}
|
|
238
|
-
let
|
|
239
|
-
if ($[
|
|
240
|
-
|
|
241
|
-
$[
|
|
242
|
-
$[
|
|
243
|
-
$[
|
|
244
|
-
$[
|
|
275
|
+
let t16;
|
|
276
|
+
if ($[45] !== hoverHandlers || $[46] !== index || $[47] !== item) {
|
|
277
|
+
t16 = hoverHandlers?.onHoverIn ? () => hoverHandlers.onHoverIn?.(item, index) : undefined;
|
|
278
|
+
$[45] = hoverHandlers;
|
|
279
|
+
$[46] = index;
|
|
280
|
+
$[47] = item;
|
|
281
|
+
$[48] = t16;
|
|
245
282
|
} else {
|
|
246
|
-
|
|
283
|
+
t16 = $[48];
|
|
247
284
|
}
|
|
248
|
-
let
|
|
249
|
-
if ($[
|
|
250
|
-
|
|
251
|
-
$[
|
|
252
|
-
$[
|
|
253
|
-
$[
|
|
254
|
-
$[
|
|
285
|
+
let t17;
|
|
286
|
+
if ($[49] !== hoverHandlers || $[50] !== index || $[51] !== item) {
|
|
287
|
+
t17 = hoverHandlers?.onHoverOut ? () => hoverHandlers.onHoverOut?.(item, index) : undefined;
|
|
288
|
+
$[49] = hoverHandlers;
|
|
289
|
+
$[50] = index;
|
|
290
|
+
$[51] = item;
|
|
291
|
+
$[52] = t17;
|
|
255
292
|
} else {
|
|
256
|
-
|
|
293
|
+
t17 = $[52];
|
|
257
294
|
}
|
|
258
|
-
const
|
|
259
|
-
let
|
|
260
|
-
if ($[
|
|
261
|
-
|
|
262
|
-
onPress:
|
|
263
|
-
onHoverIn:
|
|
264
|
-
onHoverOut:
|
|
265
|
-
accessibilityRole:
|
|
295
|
+
const t18 = interactive ? "button" : undefined;
|
|
296
|
+
let t19;
|
|
297
|
+
if ($[53] !== accessibilityLabel || $[54] !== cell || $[55] !== t15 || $[56] !== t16 || $[57] !== t17 || $[58] !== t18 || $[59] !== wrapperStyle) {
|
|
298
|
+
t19 = /*#__PURE__*/_jsx(Pressable, {
|
|
299
|
+
onPress: t15,
|
|
300
|
+
onHoverIn: t16,
|
|
301
|
+
onHoverOut: t17,
|
|
302
|
+
accessibilityRole: t18,
|
|
266
303
|
accessibilityLabel: accessibilityLabel,
|
|
267
304
|
style: wrapperStyle,
|
|
268
305
|
children: cell
|
|
269
306
|
});
|
|
270
|
-
$[
|
|
271
|
-
$[
|
|
272
|
-
$[
|
|
273
|
-
$[
|
|
274
|
-
$[
|
|
275
|
-
$[
|
|
276
|
-
$[
|
|
277
|
-
$[
|
|
307
|
+
$[53] = accessibilityLabel;
|
|
308
|
+
$[54] = cell;
|
|
309
|
+
$[55] = t15;
|
|
310
|
+
$[56] = t16;
|
|
311
|
+
$[57] = t17;
|
|
312
|
+
$[58] = t18;
|
|
313
|
+
$[59] = wrapperStyle;
|
|
314
|
+
$[60] = t19;
|
|
278
315
|
} else {
|
|
279
|
-
|
|
316
|
+
t19 = $[60];
|
|
280
317
|
}
|
|
281
|
-
return
|
|
318
|
+
return t19;
|
|
282
319
|
}
|
|
283
|
-
let
|
|
284
|
-
if ($[
|
|
285
|
-
|
|
320
|
+
let t15;
|
|
321
|
+
if ($[61] !== cell || $[62] !== wrapperStyle) {
|
|
322
|
+
t15 = /*#__PURE__*/_jsx(View, {
|
|
286
323
|
style: wrapperStyle,
|
|
287
324
|
children: cell
|
|
288
325
|
});
|
|
289
|
-
$[
|
|
290
|
-
$[
|
|
291
|
-
$[
|
|
326
|
+
$[61] = cell;
|
|
327
|
+
$[62] = wrapperStyle;
|
|
328
|
+
$[63] = t15;
|
|
292
329
|
} else {
|
|
293
|
-
|
|
330
|
+
t15 = $[63];
|
|
294
331
|
}
|
|
295
|
-
return
|
|
332
|
+
return t15;
|
|
296
333
|
}
|
|
297
334
|
const AvatarGroupBaseComponent = t0 => {
|
|
298
335
|
const $ = _c(85);
|
|
@@ -561,7 +598,7 @@ const AvatarGroupBaseComponent = t0 => {
|
|
|
561
598
|
t15 = $[57];
|
|
562
599
|
}
|
|
563
600
|
let t16;
|
|
564
|
-
if ($[70] !== cellStyle || $[71] !== isRow || $[72] !== itemMargin || $[73] !== overflow || $[74] !== overflowOnPress || $[75] !== overflowTextStyle || $[76] !== shown
|
|
601
|
+
if ($[70] !== cellStyle || $[71] !== isRow || $[72] !== itemMargin || $[73] !== overflow || $[74] !== overflowOnPress || $[75] !== overflowTextStyle || $[76] !== shown) {
|
|
565
602
|
t16 = overflow > 0 && /*#__PURE__*/_jsx(OverflowCircle, {
|
|
566
603
|
count: overflow,
|
|
567
604
|
cellStyle: cellStyle,
|
|
@@ -574,6 +611,7 @@ const AvatarGroupBaseComponent = t0 => {
|
|
|
574
611
|
})
|
|
575
612
|
},
|
|
576
613
|
textStyle: overflowTextStyle,
|
|
614
|
+
plain: shown.some(hasCharacter),
|
|
577
615
|
onPress: overflowOnPress
|
|
578
616
|
});
|
|
579
617
|
$[70] = cellStyle;
|
|
@@ -582,7 +620,7 @@ const AvatarGroupBaseComponent = t0 => {
|
|
|
582
620
|
$[73] = overflow;
|
|
583
621
|
$[74] = overflowOnPress;
|
|
584
622
|
$[75] = overflowTextStyle;
|
|
585
|
-
$[76] = shown
|
|
623
|
+
$[76] = shown;
|
|
586
624
|
$[77] = t16;
|
|
587
625
|
} else {
|
|
588
626
|
t16 = $[77];
|
|
@@ -617,7 +655,7 @@ const AvatarGroupBaseComponent = t0 => {
|
|
|
617
655
|
* uniform gap. Overflow beyond `max` collapses into a trailing "+N" bubble.
|
|
618
656
|
*/
|
|
619
657
|
const ClusterAvatarGroup = t0 => {
|
|
620
|
-
const $ = _c(
|
|
658
|
+
const $ = _c(82);
|
|
621
659
|
const {
|
|
622
660
|
conversation: t1,
|
|
623
661
|
shape,
|
|
@@ -757,53 +795,63 @@ const ClusterAvatarGroup = t0 => {
|
|
|
757
795
|
t13 = $[30];
|
|
758
796
|
}
|
|
759
797
|
let t14;
|
|
760
|
-
if ($[31] !==
|
|
761
|
-
t14 =
|
|
798
|
+
if ($[31] !== shown) {
|
|
799
|
+
t14 = shown.some(hasCharacter);
|
|
800
|
+
$[31] = shown;
|
|
801
|
+
$[32] = t14;
|
|
802
|
+
} else {
|
|
803
|
+
t14 = $[32];
|
|
804
|
+
}
|
|
805
|
+
let t15;
|
|
806
|
+
if ($[33] !== overflow || $[34] !== overflowOnPress || $[35] !== t10 || $[36] !== t13 || $[37] !== t14 || $[38] !== t7) {
|
|
807
|
+
t15 = /*#__PURE__*/_jsx(OverflowCircle, {
|
|
762
808
|
count: overflow,
|
|
763
809
|
cellStyle: t7,
|
|
764
810
|
wrapperStyle: t10,
|
|
765
811
|
textStyle: t13,
|
|
812
|
+
plain: t14,
|
|
766
813
|
onPress: overflowOnPress
|
|
767
814
|
});
|
|
768
|
-
$[
|
|
769
|
-
$[
|
|
770
|
-
$[
|
|
771
|
-
$[
|
|
772
|
-
$[
|
|
773
|
-
$[
|
|
815
|
+
$[33] = overflow;
|
|
816
|
+
$[34] = overflowOnPress;
|
|
817
|
+
$[35] = t10;
|
|
818
|
+
$[36] = t13;
|
|
819
|
+
$[37] = t14;
|
|
820
|
+
$[38] = t7;
|
|
821
|
+
$[39] = t15;
|
|
774
822
|
} else {
|
|
775
|
-
|
|
823
|
+
t15 = $[39];
|
|
776
824
|
}
|
|
777
|
-
overflowElement =
|
|
825
|
+
overflowElement = t15;
|
|
778
826
|
}
|
|
779
827
|
let t6;
|
|
780
|
-
if ($[
|
|
828
|
+
if ($[40] !== size) {
|
|
781
829
|
t6 = {
|
|
782
830
|
width: size,
|
|
783
831
|
height: size
|
|
784
832
|
};
|
|
785
|
-
$[
|
|
786
|
-
$[
|
|
833
|
+
$[40] = size;
|
|
834
|
+
$[41] = t6;
|
|
787
835
|
} else {
|
|
788
|
-
t6 = $[
|
|
836
|
+
t6 = $[41];
|
|
789
837
|
}
|
|
790
838
|
let t7;
|
|
791
|
-
if ($[
|
|
839
|
+
if ($[42] !== style || $[43] !== t6) {
|
|
792
840
|
t7 = [t6, style];
|
|
793
|
-
$[
|
|
794
|
-
$[
|
|
795
|
-
$[
|
|
841
|
+
$[42] = style;
|
|
842
|
+
$[43] = t6;
|
|
843
|
+
$[44] = t7;
|
|
796
844
|
} else {
|
|
797
|
-
t7 = $[
|
|
845
|
+
t7 = $[44];
|
|
798
846
|
}
|
|
799
847
|
const t8 = accessibilityLabel && !interactive ? "img" : undefined;
|
|
800
848
|
const t9 = conversation && !accessibilityLabel && !interactive && !hoverHandlers ? true : undefined;
|
|
801
849
|
const t10 = conversation && !accessibilityLabel && !interactive;
|
|
802
850
|
const t11 = conversation && !accessibilityLabel && !interactive ? "no-hide-descendants" : undefined;
|
|
803
851
|
let t12;
|
|
804
|
-
if ($[
|
|
852
|
+
if ($[45] !== bubbleCount || $[46] !== bubbles || $[47] !== hoverHandlers || $[48] !== motion || $[49] !== onPressItem || $[50] !== ring || $[51] !== ringWidth || $[52] !== shape || $[53] !== showInitials || $[54] !== shown || $[55] !== size || $[56] !== testID || $[57] !== variant) {
|
|
805
853
|
let t13;
|
|
806
|
-
if ($[
|
|
854
|
+
if ($[59] !== bubbleCount || $[60] !== bubbles || $[61] !== hoverHandlers || $[62] !== motion || $[63] !== onPressItem || $[64] !== ring || $[65] !== ringWidth || $[66] !== shape || $[67] !== showInitials || $[68] !== size || $[69] !== testID || $[70] !== variant) {
|
|
807
855
|
t13 = (item, index) => {
|
|
808
856
|
const bubble = bubbles[index];
|
|
809
857
|
if (!bubble) {
|
|
@@ -844,42 +892,42 @@ const ClusterAvatarGroup = t0 => {
|
|
|
844
892
|
hoverHandlers: hoverHandlers
|
|
845
893
|
}, getItemKey(item, index));
|
|
846
894
|
};
|
|
847
|
-
$[
|
|
848
|
-
$[
|
|
849
|
-
$[
|
|
850
|
-
$[
|
|
851
|
-
$[
|
|
852
|
-
$[
|
|
853
|
-
$[
|
|
854
|
-
$[
|
|
855
|
-
$[
|
|
856
|
-
$[
|
|
857
|
-
$[
|
|
858
|
-
$[
|
|
859
|
-
$[
|
|
895
|
+
$[59] = bubbleCount;
|
|
896
|
+
$[60] = bubbles;
|
|
897
|
+
$[61] = hoverHandlers;
|
|
898
|
+
$[62] = motion;
|
|
899
|
+
$[63] = onPressItem;
|
|
900
|
+
$[64] = ring;
|
|
901
|
+
$[65] = ringWidth;
|
|
902
|
+
$[66] = shape;
|
|
903
|
+
$[67] = showInitials;
|
|
904
|
+
$[68] = size;
|
|
905
|
+
$[69] = testID;
|
|
906
|
+
$[70] = variant;
|
|
907
|
+
$[71] = t13;
|
|
860
908
|
} else {
|
|
861
|
-
t13 = $[
|
|
909
|
+
t13 = $[71];
|
|
862
910
|
}
|
|
863
911
|
t12 = shown.map(t13);
|
|
864
|
-
$[
|
|
865
|
-
$[
|
|
866
|
-
$[
|
|
867
|
-
$[
|
|
868
|
-
$[
|
|
869
|
-
$[
|
|
870
|
-
$[
|
|
871
|
-
$[
|
|
872
|
-
$[
|
|
873
|
-
$[
|
|
874
|
-
$[
|
|
875
|
-
$[
|
|
876
|
-
$[
|
|
877
|
-
$[
|
|
878
|
-
} else {
|
|
879
|
-
t12 = $[
|
|
912
|
+
$[45] = bubbleCount;
|
|
913
|
+
$[46] = bubbles;
|
|
914
|
+
$[47] = hoverHandlers;
|
|
915
|
+
$[48] = motion;
|
|
916
|
+
$[49] = onPressItem;
|
|
917
|
+
$[50] = ring;
|
|
918
|
+
$[51] = ringWidth;
|
|
919
|
+
$[52] = shape;
|
|
920
|
+
$[53] = showInitials;
|
|
921
|
+
$[54] = shown;
|
|
922
|
+
$[55] = size;
|
|
923
|
+
$[56] = testID;
|
|
924
|
+
$[57] = variant;
|
|
925
|
+
$[58] = t12;
|
|
926
|
+
} else {
|
|
927
|
+
t12 = $[58];
|
|
880
928
|
}
|
|
881
929
|
let t13;
|
|
882
|
-
if ($[
|
|
930
|
+
if ($[72] !== accessibilityLabel || $[73] !== overflowElement || $[74] !== t10 || $[75] !== t11 || $[76] !== t12 || $[77] !== t7 || $[78] !== t8 || $[79] !== t9 || $[80] !== testID) {
|
|
883
931
|
t13 = /*#__PURE__*/_jsxs(View, {
|
|
884
932
|
style: t7,
|
|
885
933
|
testID: testID,
|
|
@@ -890,123 +938,142 @@ const ClusterAvatarGroup = t0 => {
|
|
|
890
938
|
importantForAccessibility: t11,
|
|
891
939
|
children: [t12, overflowElement]
|
|
892
940
|
});
|
|
893
|
-
$[
|
|
894
|
-
$[
|
|
895
|
-
$[
|
|
896
|
-
$[
|
|
897
|
-
$[
|
|
898
|
-
$[
|
|
899
|
-
$[
|
|
900
|
-
$[
|
|
901
|
-
$[
|
|
902
|
-
$[
|
|
903
|
-
} else {
|
|
904
|
-
t13 = $[
|
|
941
|
+
$[72] = accessibilityLabel;
|
|
942
|
+
$[73] = overflowElement;
|
|
943
|
+
$[74] = t10;
|
|
944
|
+
$[75] = t11;
|
|
945
|
+
$[76] = t12;
|
|
946
|
+
$[77] = t7;
|
|
947
|
+
$[78] = t8;
|
|
948
|
+
$[79] = t9;
|
|
949
|
+
$[80] = testID;
|
|
950
|
+
$[81] = t13;
|
|
951
|
+
} else {
|
|
952
|
+
t13 = $[81];
|
|
905
953
|
}
|
|
906
954
|
return t13;
|
|
907
955
|
};
|
|
908
956
|
function OverflowCircle(t0) {
|
|
909
|
-
const $ = _c(
|
|
957
|
+
const $ = _c(27);
|
|
910
958
|
const {
|
|
911
959
|
count,
|
|
912
960
|
cellStyle,
|
|
913
961
|
wrapperStyle,
|
|
914
962
|
textStyle,
|
|
963
|
+
plain: t1,
|
|
915
964
|
onPress
|
|
916
965
|
} = t0;
|
|
966
|
+
const plain = t1 === undefined ? false : t1;
|
|
917
967
|
const tokens = useColorTokens();
|
|
918
968
|
const {
|
|
919
969
|
messages
|
|
920
970
|
} = useMessages(AVATAR_GROUP_MESSAGES);
|
|
921
|
-
let
|
|
922
|
-
if ($[0] !== tokens
|
|
923
|
-
|
|
971
|
+
let t2;
|
|
972
|
+
if ($[0] !== plain || $[1] !== tokens) {
|
|
973
|
+
t2 = plain ? styles.plainCount : {
|
|
924
974
|
backgroundColor: tokens.mutedForeground
|
|
925
975
|
};
|
|
926
|
-
$[0] =
|
|
927
|
-
$[1] =
|
|
976
|
+
$[0] = plain;
|
|
977
|
+
$[1] = tokens;
|
|
978
|
+
$[2] = t2;
|
|
928
979
|
} else {
|
|
929
|
-
|
|
980
|
+
t2 = $[2];
|
|
930
981
|
}
|
|
931
|
-
let
|
|
932
|
-
if ($[
|
|
933
|
-
|
|
934
|
-
$[
|
|
935
|
-
$[3] = t1;
|
|
982
|
+
let t3;
|
|
983
|
+
if ($[3] !== cellStyle || $[4] !== t2) {
|
|
984
|
+
t3 = [cellStyle, t2];
|
|
985
|
+
$[3] = cellStyle;
|
|
936
986
|
$[4] = t2;
|
|
987
|
+
$[5] = t3;
|
|
988
|
+
} else {
|
|
989
|
+
t3 = $[5];
|
|
990
|
+
}
|
|
991
|
+
let t4;
|
|
992
|
+
if ($[6] !== plain || $[7] !== textStyle || $[8] !== tokens) {
|
|
993
|
+
t4 = plain ? [textStyle, {
|
|
994
|
+
color: tokens.mutedForeground,
|
|
995
|
+
fontWeight: "700"
|
|
996
|
+
}] : textStyle;
|
|
997
|
+
$[6] = plain;
|
|
998
|
+
$[7] = textStyle;
|
|
999
|
+
$[8] = tokens;
|
|
1000
|
+
$[9] = t4;
|
|
937
1001
|
} else {
|
|
938
|
-
|
|
1002
|
+
t4 = $[9];
|
|
939
1003
|
}
|
|
940
|
-
let
|
|
941
|
-
if ($[
|
|
942
|
-
|
|
1004
|
+
let t5;
|
|
1005
|
+
if ($[10] !== count || $[11] !== t4) {
|
|
1006
|
+
t5 = /*#__PURE__*/_jsxs(Text, {
|
|
943
1007
|
allowFontScaling: false,
|
|
944
|
-
style:
|
|
1008
|
+
style: t4,
|
|
945
1009
|
children: ["+", count]
|
|
946
1010
|
});
|
|
947
|
-
$[
|
|
948
|
-
$[
|
|
949
|
-
$[
|
|
1011
|
+
$[10] = count;
|
|
1012
|
+
$[11] = t4;
|
|
1013
|
+
$[12] = t5;
|
|
950
1014
|
} else {
|
|
951
|
-
|
|
1015
|
+
t5 = $[12];
|
|
952
1016
|
}
|
|
953
|
-
let
|
|
954
|
-
if ($[
|
|
955
|
-
|
|
956
|
-
style:
|
|
957
|
-
children:
|
|
1017
|
+
let t6;
|
|
1018
|
+
if ($[13] !== t3 || $[14] !== t5) {
|
|
1019
|
+
t6 = /*#__PURE__*/_jsx(View, {
|
|
1020
|
+
style: t3,
|
|
1021
|
+
children: t5
|
|
958
1022
|
});
|
|
959
|
-
$[
|
|
960
|
-
$[
|
|
961
|
-
$[
|
|
1023
|
+
$[13] = t3;
|
|
1024
|
+
$[14] = t5;
|
|
1025
|
+
$[15] = t6;
|
|
962
1026
|
} else {
|
|
963
|
-
|
|
1027
|
+
t6 = $[15];
|
|
964
1028
|
}
|
|
965
|
-
const circle =
|
|
1029
|
+
const circle = t6;
|
|
966
1030
|
if (onPress) {
|
|
967
|
-
let
|
|
968
|
-
if ($[
|
|
969
|
-
|
|
970
|
-
$[
|
|
971
|
-
$[
|
|
972
|
-
$[
|
|
1031
|
+
let t7;
|
|
1032
|
+
if ($[16] !== count || $[17] !== messages) {
|
|
1033
|
+
t7 = messages.more(count);
|
|
1034
|
+
$[16] = count;
|
|
1035
|
+
$[17] = messages;
|
|
1036
|
+
$[18] = t7;
|
|
973
1037
|
} else {
|
|
974
|
-
|
|
1038
|
+
t7 = $[18];
|
|
975
1039
|
}
|
|
976
|
-
let
|
|
977
|
-
if ($[
|
|
978
|
-
|
|
1040
|
+
let t8;
|
|
1041
|
+
if ($[19] !== circle || $[20] !== onPress || $[21] !== t7 || $[22] !== wrapperStyle) {
|
|
1042
|
+
t8 = /*#__PURE__*/_jsx(Pressable, {
|
|
979
1043
|
onPress: onPress,
|
|
980
1044
|
accessibilityRole: "button",
|
|
981
|
-
accessibilityLabel:
|
|
1045
|
+
accessibilityLabel: t7,
|
|
982
1046
|
style: wrapperStyle,
|
|
983
1047
|
children: circle
|
|
984
1048
|
});
|
|
985
|
-
$[
|
|
986
|
-
$[
|
|
987
|
-
$[
|
|
988
|
-
$[
|
|
989
|
-
$[
|
|
1049
|
+
$[19] = circle;
|
|
1050
|
+
$[20] = onPress;
|
|
1051
|
+
$[21] = t7;
|
|
1052
|
+
$[22] = wrapperStyle;
|
|
1053
|
+
$[23] = t8;
|
|
990
1054
|
} else {
|
|
991
|
-
|
|
1055
|
+
t8 = $[23];
|
|
992
1056
|
}
|
|
993
|
-
return
|
|
1057
|
+
return t8;
|
|
994
1058
|
}
|
|
995
|
-
let
|
|
996
|
-
if ($[
|
|
997
|
-
|
|
1059
|
+
let t7;
|
|
1060
|
+
if ($[24] !== circle || $[25] !== wrapperStyle) {
|
|
1061
|
+
t7 = /*#__PURE__*/_jsx(View, {
|
|
998
1062
|
style: wrapperStyle,
|
|
999
1063
|
children: circle
|
|
1000
1064
|
});
|
|
1001
|
-
$[
|
|
1002
|
-
$[
|
|
1003
|
-
$[
|
|
1065
|
+
$[24] = circle;
|
|
1066
|
+
$[25] = wrapperStyle;
|
|
1067
|
+
$[26] = t7;
|
|
1004
1068
|
} else {
|
|
1005
|
-
|
|
1069
|
+
t7 = $[26];
|
|
1006
1070
|
}
|
|
1007
|
-
return
|
|
1071
|
+
return t7;
|
|
1008
1072
|
}
|
|
1009
1073
|
const styles = StyleSheet.create({
|
|
1074
|
+
plainCount: {
|
|
1075
|
+
borderWidth: 0
|
|
1076
|
+
},
|
|
1010
1077
|
row: {
|
|
1011
1078
|
flexDirection: 'row',
|
|
1012
1079
|
alignItems: 'center'
|