@lumx/react 2.2.0 → 2.2.2
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/esm/_internal/Avatar2.js +5 -1
- package/esm/_internal/Avatar2.js.map +1 -1
- package/esm/_internal/Thumbnail2.js +2 -0
- package/esm/_internal/Thumbnail2.js.map +1 -1
- package/esm/_internal/Tooltip2.js +0 -5
- package/esm/_internal/Tooltip2.js.map +1 -1
- package/esm/_internal/UserBlock.js +42 -17
- package/esm/_internal/UserBlock.js.map +1 -1
- package/esm/_internal/user-block.js +2 -0
- package/esm/_internal/user-block.js.map +1 -1
- package/package.json +4 -4
- package/src/components/avatar/Avatar.stories.tsx +30 -53
- package/src/components/avatar/Avatar.tsx +8 -0
- package/src/components/avatar/__snapshots__/Avatar.test.tsx.snap +193 -330
- package/src/components/thumbnail/Thumbnail.stories.tsx +8 -7
- package/src/components/thumbnail/Thumbnail.test.tsx +1 -7
- package/src/components/thumbnail/Thumbnail.tsx +2 -0
- package/src/components/thumbnail/__snapshots__/Thumbnail.test.tsx.snap +4 -2
- package/src/components/tooltip/Tooltip.stories.tsx +7 -4
- package/src/components/tooltip/useInjectTooltipRef.tsx +1 -3
- package/src/components/user-block/UserBlock.stories.tsx +65 -105
- package/src/components/user-block/UserBlock.test.tsx +6 -0
- package/src/components/user-block/UserBlock.tsx +51 -25
- package/src/components/user-block/__snapshots__/UserBlock.test.tsx.snap +113 -143
- package/src/stories/generated/Badge/Demos.stories.tsx +1 -0
- package/src/stories/generated/Flag/Demos.stories.tsx +6 -0
- package/src/stories/generated/Thumbnail/Demos.stories.tsx +1 -0
- package/src/stories/utils/CustomLink.tsx +7 -0
- package/types.d.ts +14 -4
|
@@ -1,57 +1,12 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`<Avatar> Snapshots and structure should render story '
|
|
3
|
+
exports[`<Avatar> Snapshots and structure should render story 'Clickable' 1`] = `
|
|
4
4
|
Array [
|
|
5
5
|
<div
|
|
6
|
-
className="lumx-
|
|
7
|
-
>
|
|
8
|
-
<Thumbnail
|
|
9
|
-
alt="xs"
|
|
10
|
-
aspectRatio="square"
|
|
11
|
-
className="lumx-avatar__thumbnail"
|
|
12
|
-
fallback="M19,3A2,2 0 0,1 21,5V11H19V13H19L17,13V15H15V17H13V19H11V21H5C3.89,21 3,20.1 3,19V5A2,2 0 0,1 5,3H19M21,15V19A2,2 0 0,1 19,21H19L15,21V19H17V17H19V15H21M19,8.5A0.5,0.5 0 0,0 18.5,8H5.5A0.5,0.5 0 0,0 5,8.5V15.5A0.5,0.5 0 0,0 5.5,16H11V15H13V13H15V11H17V9H19V8.5Z"
|
|
13
|
-
image="/demo-assets/avatar2.jpg"
|
|
14
|
-
loading="lazy"
|
|
15
|
-
onClick={[Function]}
|
|
16
|
-
size="xs"
|
|
17
|
-
theme="light"
|
|
18
|
-
/>
|
|
19
|
-
</div>,
|
|
20
|
-
<div
|
|
21
|
-
className="lumx-spacing-margin-bottom lumx-avatar lumx-avatar--size-s lumx-avatar--theme-light"
|
|
22
|
-
>
|
|
23
|
-
<Thumbnail
|
|
24
|
-
alt="s"
|
|
25
|
-
aspectRatio="square"
|
|
26
|
-
className="lumx-avatar__thumbnail"
|
|
27
|
-
fallback="M19,3A2,2 0 0,1 21,5V11H19V13H19L17,13V15H15V17H13V19H11V21H5C3.89,21 3,20.1 3,19V5A2,2 0 0,1 5,3H19M21,15V19A2,2 0 0,1 19,21H19L15,21V19H17V17H19V15H21M19,8.5A0.5,0.5 0 0,0 18.5,8H5.5A0.5,0.5 0 0,0 5,8.5V15.5A0.5,0.5 0 0,0 5.5,16H11V15H13V13H15V11H17V9H19V8.5Z"
|
|
28
|
-
image="/demo-assets/avatar2.jpg"
|
|
29
|
-
loading="lazy"
|
|
30
|
-
onClick={[Function]}
|
|
31
|
-
size="s"
|
|
32
|
-
theme="light"
|
|
33
|
-
/>
|
|
34
|
-
</div>,
|
|
35
|
-
<div
|
|
36
|
-
className="lumx-spacing-margin-bottom lumx-avatar lumx-avatar--size-m lumx-avatar--theme-light"
|
|
37
|
-
>
|
|
38
|
-
<Thumbnail
|
|
39
|
-
alt="m"
|
|
40
|
-
aspectRatio="square"
|
|
41
|
-
className="lumx-avatar__thumbnail"
|
|
42
|
-
fallback="M19,3A2,2 0 0,1 21,5V11H19V13H19L17,13V15H15V17H13V19H11V21H5C3.89,21 3,20.1 3,19V5A2,2 0 0,1 5,3H19M21,15V19A2,2 0 0,1 19,21H19L15,21V19H17V17H19V15H21M19,8.5A0.5,0.5 0 0,0 18.5,8H5.5A0.5,0.5 0 0,0 5,8.5V15.5A0.5,0.5 0 0,0 5.5,16H11V15H13V13H15V11H17V9H19V8.5Z"
|
|
43
|
-
image="/demo-assets/avatar2.jpg"
|
|
44
|
-
loading="lazy"
|
|
45
|
-
onClick={[Function]}
|
|
46
|
-
size="m"
|
|
47
|
-
theme="light"
|
|
48
|
-
/>
|
|
49
|
-
</div>,
|
|
50
|
-
<div
|
|
51
|
-
className="lumx-spacing-margin-bottom lumx-avatar lumx-avatar--size-l lumx-avatar--theme-light"
|
|
6
|
+
className="lumx-avatar lumx-avatar--size-l lumx-avatar--theme-light"
|
|
52
7
|
>
|
|
53
8
|
<Thumbnail
|
|
54
|
-
alt="
|
|
9
|
+
alt="avatar2"
|
|
55
10
|
aspectRatio="square"
|
|
56
11
|
className="lumx-avatar__thumbnail"
|
|
57
12
|
fallback="M19,3A2,2 0 0,1 21,5V11H19V13H19L17,13V15H15V17H13V19H11V21H5C3.89,21 3,20.1 3,19V5A2,2 0 0,1 5,3H19M21,15V19A2,2 0 0,1 19,21H19L15,21V19H17V17H19V15H21M19,8.5A0.5,0.5 0 0,0 18.5,8H5.5A0.5,0.5 0 0,0 5,8.5V15.5A0.5,0.5 0 0,0 5.5,16H11V15H13V13H15V11H17V9H19V8.5Z"
|
|
@@ -63,39 +18,43 @@ Array [
|
|
|
63
18
|
/>
|
|
64
19
|
</div>,
|
|
65
20
|
<div
|
|
66
|
-
className="lumx-
|
|
21
|
+
className="lumx-avatar lumx-avatar--size-l lumx-avatar--theme-light"
|
|
67
22
|
>
|
|
68
23
|
<Thumbnail
|
|
69
|
-
alt="
|
|
24
|
+
alt="avatar2"
|
|
70
25
|
aspectRatio="square"
|
|
71
26
|
className="lumx-avatar__thumbnail"
|
|
72
27
|
fallback="M19,3A2,2 0 0,1 21,5V11H19V13H19L17,13V15H15V17H13V19H11V21H5C3.89,21 3,20.1 3,19V5A2,2 0 0,1 5,3H19M21,15V19A2,2 0 0,1 19,21H19L15,21V19H17V17H19V15H21M19,8.5A0.5,0.5 0 0,0 18.5,8H5.5A0.5,0.5 0 0,0 5,8.5V15.5A0.5,0.5 0 0,0 5.5,16H11V15H13V13H15V11H17V9H19V8.5Z"
|
|
73
28
|
image="/demo-assets/avatar2.jpg"
|
|
29
|
+
linkProps={
|
|
30
|
+
Object {
|
|
31
|
+
"href": "https://example.com",
|
|
32
|
+
}
|
|
33
|
+
}
|
|
74
34
|
loading="lazy"
|
|
75
|
-
|
|
76
|
-
size="xl"
|
|
35
|
+
size="l"
|
|
77
36
|
theme="light"
|
|
78
37
|
/>
|
|
79
38
|
</div>,
|
|
80
39
|
<div
|
|
81
|
-
className="lumx-
|
|
40
|
+
className="lumx-avatar lumx-avatar--size-l lumx-avatar--theme-light"
|
|
82
41
|
>
|
|
83
42
|
<Thumbnail
|
|
84
|
-
alt="
|
|
43
|
+
alt="avatar2"
|
|
85
44
|
aspectRatio="square"
|
|
86
45
|
className="lumx-avatar__thumbnail"
|
|
87
46
|
fallback="M19,3A2,2 0 0,1 21,5V11H19V13H19L17,13V15H15V17H13V19H11V21H5C3.89,21 3,20.1 3,19V5A2,2 0 0,1 5,3H19M21,15V19A2,2 0 0,1 19,21H19L15,21V19H17V17H19V15H21M19,8.5A0.5,0.5 0 0,0 18.5,8H5.5A0.5,0.5 0 0,0 5,8.5V15.5A0.5,0.5 0 0,0 5.5,16H11V15H13V13H15V11H17V9H19V8.5Z"
|
|
88
47
|
image="/demo-assets/avatar2.jpg"
|
|
48
|
+
linkAs={[Function]}
|
|
89
49
|
loading="lazy"
|
|
90
|
-
|
|
91
|
-
size="xxl"
|
|
50
|
+
size="l"
|
|
92
51
|
theme="light"
|
|
93
52
|
/>
|
|
94
53
|
</div>,
|
|
95
54
|
]
|
|
96
55
|
`;
|
|
97
56
|
|
|
98
|
-
exports[`<Avatar> Snapshots and structure should render story '
|
|
57
|
+
exports[`<Avatar> Snapshots and structure should render story 'Sizes' 1`] = `
|
|
99
58
|
Array [
|
|
100
59
|
<div
|
|
101
60
|
className="lumx-spacing-margin-bottom lumx-avatar lumx-avatar--size-xs lumx-avatar--theme-light"
|
|
@@ -184,7 +143,7 @@ Array [
|
|
|
184
143
|
]
|
|
185
144
|
`;
|
|
186
145
|
|
|
187
|
-
exports[`<Avatar> Snapshots and structure should render story '
|
|
146
|
+
exports[`<Avatar> Snapshots and structure should render story 'WithActions' 1`] = `
|
|
188
147
|
Array [
|
|
189
148
|
<div
|
|
190
149
|
className="lumx-avatar lumx-avatar--size-xs lumx-avatar--theme-light"
|
|
@@ -202,52 +161,36 @@ Array [
|
|
|
202
161
|
<div
|
|
203
162
|
className="lumx-avatar__actions"
|
|
204
163
|
>
|
|
205
|
-
<
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
"justifyContent": "center",
|
|
210
|
-
}
|
|
211
|
-
}
|
|
164
|
+
<FlexBox
|
|
165
|
+
gap="regular"
|
|
166
|
+
orientation="horizontal"
|
|
167
|
+
vAlign="center"
|
|
212
168
|
>
|
|
213
|
-
<
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
</div>
|
|
239
|
-
<div>
|
|
240
|
-
<IconButton
|
|
241
|
-
color="dark"
|
|
242
|
-
emphasis="low"
|
|
243
|
-
hasBackground={true}
|
|
244
|
-
icon="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"
|
|
245
|
-
label="Delete"
|
|
246
|
-
size="s"
|
|
247
|
-
theme="light"
|
|
248
|
-
/>
|
|
249
|
-
</div>
|
|
250
|
-
</div>
|
|
169
|
+
<IconButton
|
|
170
|
+
emphasis="low"
|
|
171
|
+
hasBackground={true}
|
|
172
|
+
icon="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z"
|
|
173
|
+
label="Edit"
|
|
174
|
+
size="s"
|
|
175
|
+
theme="light"
|
|
176
|
+
/>
|
|
177
|
+
<IconButton
|
|
178
|
+
emphasis="low"
|
|
179
|
+
hasBackground={true}
|
|
180
|
+
icon="M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z"
|
|
181
|
+
label="See"
|
|
182
|
+
size="s"
|
|
183
|
+
theme="light"
|
|
184
|
+
/>
|
|
185
|
+
<IconButton
|
|
186
|
+
emphasis="low"
|
|
187
|
+
hasBackground={true}
|
|
188
|
+
icon="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"
|
|
189
|
+
label="Delete"
|
|
190
|
+
size="s"
|
|
191
|
+
theme="light"
|
|
192
|
+
/>
|
|
193
|
+
</FlexBox>
|
|
251
194
|
</div>
|
|
252
195
|
</div>,
|
|
253
196
|
<div
|
|
@@ -266,52 +209,36 @@ Array [
|
|
|
266
209
|
<div
|
|
267
210
|
className="lumx-avatar__actions"
|
|
268
211
|
>
|
|
269
|
-
<
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
"justifyContent": "center",
|
|
274
|
-
}
|
|
275
|
-
}
|
|
212
|
+
<FlexBox
|
|
213
|
+
gap="regular"
|
|
214
|
+
orientation="horizontal"
|
|
215
|
+
vAlign="center"
|
|
276
216
|
>
|
|
277
|
-
<
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
</div>
|
|
303
|
-
<div>
|
|
304
|
-
<IconButton
|
|
305
|
-
color="dark"
|
|
306
|
-
emphasis="low"
|
|
307
|
-
hasBackground={true}
|
|
308
|
-
icon="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"
|
|
309
|
-
label="Delete"
|
|
310
|
-
size="s"
|
|
311
|
-
theme="light"
|
|
312
|
-
/>
|
|
313
|
-
</div>
|
|
314
|
-
</div>
|
|
217
|
+
<IconButton
|
|
218
|
+
emphasis="low"
|
|
219
|
+
hasBackground={true}
|
|
220
|
+
icon="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z"
|
|
221
|
+
label="Edit"
|
|
222
|
+
size="s"
|
|
223
|
+
theme="light"
|
|
224
|
+
/>
|
|
225
|
+
<IconButton
|
|
226
|
+
emphasis="low"
|
|
227
|
+
hasBackground={true}
|
|
228
|
+
icon="M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z"
|
|
229
|
+
label="See"
|
|
230
|
+
size="s"
|
|
231
|
+
theme="light"
|
|
232
|
+
/>
|
|
233
|
+
<IconButton
|
|
234
|
+
emphasis="low"
|
|
235
|
+
hasBackground={true}
|
|
236
|
+
icon="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"
|
|
237
|
+
label="Delete"
|
|
238
|
+
size="s"
|
|
239
|
+
theme="light"
|
|
240
|
+
/>
|
|
241
|
+
</FlexBox>
|
|
315
242
|
</div>
|
|
316
243
|
</div>,
|
|
317
244
|
<div
|
|
@@ -330,52 +257,36 @@ Array [
|
|
|
330
257
|
<div
|
|
331
258
|
className="lumx-avatar__actions"
|
|
332
259
|
>
|
|
333
|
-
<
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
"justifyContent": "center",
|
|
338
|
-
}
|
|
339
|
-
}
|
|
260
|
+
<FlexBox
|
|
261
|
+
gap="regular"
|
|
262
|
+
orientation="horizontal"
|
|
263
|
+
vAlign="center"
|
|
340
264
|
>
|
|
341
|
-
<
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
</div>
|
|
367
|
-
<div>
|
|
368
|
-
<IconButton
|
|
369
|
-
color="dark"
|
|
370
|
-
emphasis="low"
|
|
371
|
-
hasBackground={true}
|
|
372
|
-
icon="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"
|
|
373
|
-
label="Delete"
|
|
374
|
-
size="s"
|
|
375
|
-
theme="light"
|
|
376
|
-
/>
|
|
377
|
-
</div>
|
|
378
|
-
</div>
|
|
265
|
+
<IconButton
|
|
266
|
+
emphasis="low"
|
|
267
|
+
hasBackground={true}
|
|
268
|
+
icon="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z"
|
|
269
|
+
label="Edit"
|
|
270
|
+
size="s"
|
|
271
|
+
theme="light"
|
|
272
|
+
/>
|
|
273
|
+
<IconButton
|
|
274
|
+
emphasis="low"
|
|
275
|
+
hasBackground={true}
|
|
276
|
+
icon="M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z"
|
|
277
|
+
label="See"
|
|
278
|
+
size="s"
|
|
279
|
+
theme="light"
|
|
280
|
+
/>
|
|
281
|
+
<IconButton
|
|
282
|
+
emphasis="low"
|
|
283
|
+
hasBackground={true}
|
|
284
|
+
icon="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"
|
|
285
|
+
label="Delete"
|
|
286
|
+
size="s"
|
|
287
|
+
theme="light"
|
|
288
|
+
/>
|
|
289
|
+
</FlexBox>
|
|
379
290
|
</div>
|
|
380
291
|
</div>,
|
|
381
292
|
<div
|
|
@@ -394,52 +305,36 @@ Array [
|
|
|
394
305
|
<div
|
|
395
306
|
className="lumx-avatar__actions"
|
|
396
307
|
>
|
|
397
|
-
<
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
"justifyContent": "center",
|
|
402
|
-
}
|
|
403
|
-
}
|
|
308
|
+
<FlexBox
|
|
309
|
+
gap="regular"
|
|
310
|
+
orientation="horizontal"
|
|
311
|
+
vAlign="center"
|
|
404
312
|
>
|
|
405
|
-
<
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
</div>
|
|
431
|
-
<div>
|
|
432
|
-
<IconButton
|
|
433
|
-
color="dark"
|
|
434
|
-
emphasis="low"
|
|
435
|
-
hasBackground={true}
|
|
436
|
-
icon="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"
|
|
437
|
-
label="Delete"
|
|
438
|
-
size="s"
|
|
439
|
-
theme="light"
|
|
440
|
-
/>
|
|
441
|
-
</div>
|
|
442
|
-
</div>
|
|
313
|
+
<IconButton
|
|
314
|
+
emphasis="low"
|
|
315
|
+
hasBackground={true}
|
|
316
|
+
icon="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z"
|
|
317
|
+
label="Edit"
|
|
318
|
+
size="s"
|
|
319
|
+
theme="light"
|
|
320
|
+
/>
|
|
321
|
+
<IconButton
|
|
322
|
+
emphasis="low"
|
|
323
|
+
hasBackground={true}
|
|
324
|
+
icon="M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z"
|
|
325
|
+
label="See"
|
|
326
|
+
size="s"
|
|
327
|
+
theme="light"
|
|
328
|
+
/>
|
|
329
|
+
<IconButton
|
|
330
|
+
emphasis="low"
|
|
331
|
+
hasBackground={true}
|
|
332
|
+
icon="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"
|
|
333
|
+
label="Delete"
|
|
334
|
+
size="s"
|
|
335
|
+
theme="light"
|
|
336
|
+
/>
|
|
337
|
+
</FlexBox>
|
|
443
338
|
</div>
|
|
444
339
|
</div>,
|
|
445
340
|
<div
|
|
@@ -458,52 +353,36 @@ Array [
|
|
|
458
353
|
<div
|
|
459
354
|
className="lumx-avatar__actions"
|
|
460
355
|
>
|
|
461
|
-
<
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
"justifyContent": "center",
|
|
466
|
-
}
|
|
467
|
-
}
|
|
356
|
+
<FlexBox
|
|
357
|
+
gap="regular"
|
|
358
|
+
orientation="horizontal"
|
|
359
|
+
vAlign="center"
|
|
468
360
|
>
|
|
469
|
-
<
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
</div>
|
|
495
|
-
<div>
|
|
496
|
-
<IconButton
|
|
497
|
-
color="dark"
|
|
498
|
-
emphasis="low"
|
|
499
|
-
hasBackground={true}
|
|
500
|
-
icon="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"
|
|
501
|
-
label="Delete"
|
|
502
|
-
size="s"
|
|
503
|
-
theme="light"
|
|
504
|
-
/>
|
|
505
|
-
</div>
|
|
506
|
-
</div>
|
|
361
|
+
<IconButton
|
|
362
|
+
emphasis="low"
|
|
363
|
+
hasBackground={true}
|
|
364
|
+
icon="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z"
|
|
365
|
+
label="Edit"
|
|
366
|
+
size="s"
|
|
367
|
+
theme="light"
|
|
368
|
+
/>
|
|
369
|
+
<IconButton
|
|
370
|
+
emphasis="low"
|
|
371
|
+
hasBackground={true}
|
|
372
|
+
icon="M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z"
|
|
373
|
+
label="See"
|
|
374
|
+
size="s"
|
|
375
|
+
theme="light"
|
|
376
|
+
/>
|
|
377
|
+
<IconButton
|
|
378
|
+
emphasis="low"
|
|
379
|
+
hasBackground={true}
|
|
380
|
+
icon="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"
|
|
381
|
+
label="Delete"
|
|
382
|
+
size="s"
|
|
383
|
+
theme="light"
|
|
384
|
+
/>
|
|
385
|
+
</FlexBox>
|
|
507
386
|
</div>
|
|
508
387
|
</div>,
|
|
509
388
|
<div
|
|
@@ -522,58 +401,42 @@ Array [
|
|
|
522
401
|
<div
|
|
523
402
|
className="lumx-avatar__actions"
|
|
524
403
|
>
|
|
525
|
-
<
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
"justifyContent": "center",
|
|
530
|
-
}
|
|
531
|
-
}
|
|
404
|
+
<FlexBox
|
|
405
|
+
gap="regular"
|
|
406
|
+
orientation="horizontal"
|
|
407
|
+
vAlign="center"
|
|
532
408
|
>
|
|
533
|
-
<
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
</div>
|
|
559
|
-
<div>
|
|
560
|
-
<IconButton
|
|
561
|
-
color="dark"
|
|
562
|
-
emphasis="low"
|
|
563
|
-
hasBackground={true}
|
|
564
|
-
icon="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"
|
|
565
|
-
label="Delete"
|
|
566
|
-
size="s"
|
|
567
|
-
theme="light"
|
|
568
|
-
/>
|
|
569
|
-
</div>
|
|
570
|
-
</div>
|
|
409
|
+
<IconButton
|
|
410
|
+
emphasis="low"
|
|
411
|
+
hasBackground={true}
|
|
412
|
+
icon="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z"
|
|
413
|
+
label="Edit"
|
|
414
|
+
size="s"
|
|
415
|
+
theme="light"
|
|
416
|
+
/>
|
|
417
|
+
<IconButton
|
|
418
|
+
emphasis="low"
|
|
419
|
+
hasBackground={true}
|
|
420
|
+
icon="M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z"
|
|
421
|
+
label="See"
|
|
422
|
+
size="s"
|
|
423
|
+
theme="light"
|
|
424
|
+
/>
|
|
425
|
+
<IconButton
|
|
426
|
+
emphasis="low"
|
|
427
|
+
hasBackground={true}
|
|
428
|
+
icon="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"
|
|
429
|
+
label="Delete"
|
|
430
|
+
size="s"
|
|
431
|
+
theme="light"
|
|
432
|
+
/>
|
|
433
|
+
</FlexBox>
|
|
571
434
|
</div>
|
|
572
435
|
</div>,
|
|
573
436
|
]
|
|
574
437
|
`;
|
|
575
438
|
|
|
576
|
-
exports[`<Avatar> Snapshots and structure should render story '
|
|
439
|
+
exports[`<Avatar> Snapshots and structure should render story 'WithBadge' 1`] = `
|
|
577
440
|
Array [
|
|
578
441
|
<div
|
|
579
442
|
className="lumx-spacing-margin-bottom lumx-avatar lumx-avatar--size-xs lumx-avatar--theme-light"
|
|
@@ -728,7 +591,7 @@ Array [
|
|
|
728
591
|
]
|
|
729
592
|
`;
|
|
730
593
|
|
|
731
|
-
exports[`<Avatar> Snapshots and structure should render story '
|
|
594
|
+
exports[`<Avatar> Snapshots and structure should render story 'WithRectangularImage' 1`] = `
|
|
732
595
|
Array [
|
|
733
596
|
<div
|
|
734
597
|
className="lumx-spacing-margin-bottom lumx-avatar lumx-avatar--size-xs lumx-avatar--theme-light"
|