-
Notifications
You must be signed in to change notification settings - Fork 37
/
SquareAppIcon.spec.js.snap
460 lines (451 loc) · 16.6 KB
/
SquareAppIcon.spec.js.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
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
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
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
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
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
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
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
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`SquareAppIcon component should render an app correctly with the app name 1`] = `
<div
class="makeStyles-tileWrapper-38"
data-testid="square-app-icon"
>
<div
class="CozyTheme--normal"
>
<span
class="MuiBadge-root-40"
>
<span
class="MuiBadge-root-40 styles__SquareAppIcon-wrapper___2SEuM makeStyles-shadow-36"
>
<div
class="styles__SquareAppIcon-icon-container___39MRl"
>
<div
class="styles__onEnd___1O6Q7"
/>
<svg
class="styles__c-app-icon___2_O40 styles__c-app-icon-default___3CEmt styles__icon___23x3R"
height="100%"
style="fill: var(--coolGrey);"
viewBox="0 0 16 16"
width="100%"
>
<path
d="M1 11.009V5.5c0-.55.39-.773.872-.498l5.256 3.003c.476.272.872.944.872 1.495v5.508c0 .549-.39.772-.872.497l-5.256-3.003C1.396 12.231 1 11.56 1 11.01zm15 0c0 .55-.396 1.222-.872 1.494l-5.256 3.003c-.481.275-.872.052-.872-.497V9.5c0-.55.396-1.223.872-1.495l5.256-3.003c.481-.275.872-.052.872.498v5.508zM9.35 6.982c-.47.288-1.237.284-1.7 0l-4.8-2.954c-.47-.29-.463-.732.027-.995L7.623.477c.485-.261 1.264-.264 1.754 0l4.746 2.556c.485.26.49.71.027.995l-4.8 2.954z"
/>
</svg>
</div>
<span
class="MuiBadge-badge-41 badgeSizeLarge MuiBadge-anchorOriginTopRightRectangular-47"
/>
</span>
<span
class="MuiBadge-badge-41 Component-qualifier-39 MuiBadge-anchorOriginBottomRightRectangular-49 MuiBadge-invisible-62"
/>
</span>
</div>
<h6
class="MuiTypography-root makeStyles-name-32 u-spacellipsis MuiTypography-h6 MuiTypography-colorTextPrimary MuiTypography-alignCenter"
>
Test
</h6>
</div>
`;
exports[`SquareAppIcon component should render an app correctly with the given name 1`] = `
<div
class="makeStyles-tileWrapper-7"
data-testid="square-app-icon"
>
<div
class="CozyTheme--normal"
>
<span
class="MuiBadge-root-9"
>
<span
class="MuiBadge-root-9 styles__SquareAppIcon-wrapper___2SEuM makeStyles-shadow-5"
>
<div
class="styles__SquareAppIcon-icon-container___39MRl"
>
<div
class="styles__onEnd___1O6Q7"
/>
<svg
class="styles__c-app-icon___2_O40 styles__c-app-icon-default___3CEmt styles__icon___23x3R"
height="100%"
style="fill: var(--coolGrey);"
viewBox="0 0 16 16"
width="100%"
>
<path
d="M1 11.009V5.5c0-.55.39-.773.872-.498l5.256 3.003c.476.272.872.944.872 1.495v5.508c0 .549-.39.772-.872.497l-5.256-3.003C1.396 12.231 1 11.56 1 11.01zm15 0c0 .55-.396 1.222-.872 1.494l-5.256 3.003c-.481.275-.872.052-.872-.497V9.5c0-.55.396-1.223.872-1.495l5.256-3.003c.481-.275.872-.052.872.498v5.508zM9.35 6.982c-.47.288-1.237.284-1.7 0l-4.8-2.954c-.47-.29-.463-.732.027-.995L7.623.477c.485-.261 1.264-.264 1.754 0l4.746 2.556c.485.26.49.71.027.995l-4.8 2.954z"
/>
</svg>
</div>
<span
class="MuiBadge-badge-10 badgeSizeLarge MuiBadge-anchorOriginTopRightRectangular-16"
/>
</span>
<span
class="MuiBadge-badge-10 Component-qualifier-8 MuiBadge-anchorOriginBottomRightRectangular-18 MuiBadge-invisible-31"
/>
</span>
</div>
<h6
class="MuiTypography-root makeStyles-name-1 u-spacellipsis MuiTypography-h6 MuiTypography-colorTextPrimary MuiTypography-alignCenter"
>
modified
</h6>
</div>
`;
exports[`SquareAppIcon component should render an app with the app slug if no name prop and app is a string 1`] = `
<div
class="makeStyles-tileWrapper-69"
data-testid="square-app-icon"
>
<div
class="CozyTheme--normal"
>
<span
class="MuiBadge-root-71"
>
<span
class="MuiBadge-root-71 styles__SquareAppIcon-wrapper___2SEuM makeStyles-shadow-67"
>
<div
class="styles__SquareAppIcon-icon-container___39MRl"
>
<div
class="styles__onEnd___1O6Q7"
/>
<svg
class="styles__c-app-icon___2_O40 styles__c-app-icon-default___3CEmt styles__icon___23x3R"
height="100%"
style="fill: var(--coolGrey);"
viewBox="0 0 16 16"
width="100%"
>
<path
d="M1 11.009V5.5c0-.55.39-.773.872-.498l5.256 3.003c.476.272.872.944.872 1.495v5.508c0 .549-.39.772-.872.497l-5.256-3.003C1.396 12.231 1 11.56 1 11.01zm15 0c0 .55-.396 1.222-.872 1.494l-5.256 3.003c-.481.275-.872.052-.872-.497V9.5c0-.55.396-1.223.872-1.495l5.256-3.003c.481-.275.872-.052.872.498v5.508zM9.35 6.982c-.47.288-1.237.284-1.7 0l-4.8-2.954c-.47-.29-.463-.732.027-.995L7.623.477c.485-.261 1.264-.264 1.754 0l4.746 2.556c.485.26.49.71.027.995l-4.8 2.954z"
/>
</svg>
</div>
<span
class="MuiBadge-badge-72 badgeSizeLarge MuiBadge-anchorOriginTopRightRectangular-78"
/>
</span>
<span
class="MuiBadge-badge-72 Component-qualifier-70 MuiBadge-anchorOriginBottomRightRectangular-80 MuiBadge-invisible-93"
/>
</span>
</div>
<h6
class="MuiTypography-root makeStyles-name-63 u-spacellipsis MuiTypography-h6 MuiTypography-colorTextPrimary MuiTypography-alignCenter"
>
testslug
</h6>
</div>
`;
exports[`SquareAppIcon component should render correctly an app in add state 1`] = `
<div
class="makeStyles-tileWrapper-193"
data-testid="square-app-icon"
>
<div
class=""
>
<span
class="MuiBadge-root-195"
>
<span
class="MuiBadge-root-195 styles__SquareAppIcon-wrapper___2SEuM makeStyles-squareAppIconGhost-189"
>
<div
class="styles__SquareAppIcon-icon-container___39MRl"
>
<div
class="styles__onEnd___1O6Q7"
/>
<svg
class="styles__icon___23x3R"
height="16"
style="fill: var(--primaryColor);"
viewBox="0 0 16 16"
width="16"
>
<defs>
<path
d="M7 0h2v7h7v2H9v7H7V9H0V7h7z"
id="plus_svg__a"
/>
</defs>
<use
fill-rule="evenodd"
xlink:href="#plus_svg__a"
/>
</svg>
</div>
<span
class="MuiBadge-badge-196 badgeSizeLarge MuiBadge-anchorOriginTopRightRectangular-202"
/>
</span>
<span
class="MuiBadge-badge-196 Component-qualifier-194 MuiBadge-anchorOriginBottomRightRectangular-204 MuiBadge-invisible-217"
/>
</span>
</div>
<h6
class="MuiTypography-root makeStyles-name-187 u-spacellipsis MuiTypography-h6 MuiTypography-colorTextPrimary MuiTypography-alignCenter"
/>
</div>
`;
exports[`SquareAppIcon component should render correctly an app in error state 1`] = `
<div
class="makeStyles-tileWrapper-162"
data-testid="square-app-icon"
>
<div
class="CozyTheme--normal"
>
<span
class="MuiBadge-root-164"
>
<span
class="MuiBadge-root-164 styles__SquareAppIcon-wrapper___2SEuM makeStyles-shadow-160"
>
<div
class="styles__SquareAppIcon-icon-container___39MRl"
>
<div
class="styles__onEnd___1O6Q7"
/>
<svg
class="styles__c-app-icon___2_O40 styles__c-app-icon-default___3CEmt styles__icon___23x3R"
height="100%"
style="fill: var(--coolGrey);"
viewBox="0 0 16 16"
width="100%"
>
<path
d="M1 11.009V5.5c0-.55.39-.773.872-.498l5.256 3.003c.476.272.872.944.872 1.495v5.508c0 .549-.39.772-.872.497l-5.256-3.003C1.396 12.231 1 11.56 1 11.01zm15 0c0 .55-.396 1.222-.872 1.494l-5.256 3.003c-.481.275-.872.052-.872-.497V9.5c0-.55.396-1.223.872-1.495l5.256-3.003c.481-.275.872-.052.872.498v5.508zM9.35 6.982c-.47.288-1.237.284-1.7 0l-4.8-2.954c-.47-.29-.463-.732.027-.995L7.623.477c.485-.261 1.264-.264 1.754 0l4.746 2.556c.485.26.49.71.027.995l-4.8 2.954z"
/>
</svg>
</div>
<span
class="MuiBadge-badge-165 badgeSizeLarge MuiBadge-anchorOriginTopRightRectangular-171 MuiBadge-colorError-168"
>
<svg
class="makeStyles-errorIcon-161 styles__icon___23x3R"
height="16"
viewBox="0 0 16 16"
width="16"
>
<path
d="M8 0C12.4183 0 16 3.58172 16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0ZM8 9.75C7.30964 9.75 6.75 10.3096 6.75 11C6.75 11.6904 7.30964 12.25 8 12.25C8.69036 12.25 9.25 11.6904 9.25 11C9.25 10.3096 8.69036 9.75 8 9.75ZM8 4C7.48716 4 7.06449 4.38604 7.00673 4.88338L7 5V8C7 8.55228 7.44772 9 8 9C8.51284 9 8.93551 8.61396 8.99327 8.11662L9 8V5C9 4.44772 8.55228 4 8 4Z"
fill-rule="evenodd"
/>
</svg>
</span>
</span>
<span
class="MuiBadge-badge-165 Component-qualifier-163 MuiBadge-anchorOriginBottomRightRectangular-173 MuiBadge-invisible-186"
/>
</span>
</div>
<h6
class="MuiTypography-root makeStyles-name-156 u-spacellipsis MuiTypography-h6 MuiTypography-colorTextPrimary MuiTypography-alignCenter"
>
Test
</h6>
</div>
`;
exports[`SquareAppIcon component should render correctly an app in ghost state 1`] = `
<div
class="makeStyles-tileWrapper-131"
data-testid="square-app-icon"
>
<div
class=""
>
<span
class="MuiBadge-root-133"
>
<span
class="MuiBadge-root-133 styles__SquareAppIcon-wrapper___2SEuM styles__SquareAppIcon-wrapper-ghost___1ZALZ makeStyles-squareAppIconGhost-127"
>
<div
class="styles__SquareAppIcon-icon-container___39MRl"
>
<div
class="styles__onEnd___1O6Q7"
/>
<svg
class="styles__c-app-icon___2_O40 styles__c-app-icon-default___3CEmt styles__icon___23x3R"
height="100%"
style="fill: var(--coolGrey);"
viewBox="0 0 16 16"
width="100%"
>
<path
d="M1 11.009V5.5c0-.55.39-.773.872-.498l5.256 3.003c.476.272.872.944.872 1.495v5.508c0 .549-.39.772-.872.497l-5.256-3.003C1.396 12.231 1 11.56 1 11.01zm15 0c0 .55-.396 1.222-.872 1.494l-5.256 3.003c-.481.275-.872.052-.872-.497V9.5c0-.55.396-1.223.872-1.495l5.256-3.003c.481-.275.872-.052.872.498v5.508zM9.35 6.982c-.47.288-1.237.284-1.7 0l-4.8-2.954c-.47-.29-.463-.732.027-.995L7.623.477c.485-.261 1.264-.264 1.754 0l4.746 2.556c.485.26.49.71.027.995l-4.8 2.954z"
/>
</svg>
</div>
<span
class="MuiBadge-badge-134 badgeSizeLarge MuiBadge-anchorOriginTopRightRectangular-140"
/>
</span>
<span
class="MuiBadge-badge-134 Component-qualifier-132 MuiBadge-anchorOriginBottomRightRectangular-142 MuiBadge-invisible-155"
/>
</span>
</div>
<h6
class="MuiTypography-root makeStyles-name-125 u-spacellipsis MuiTypography-h6 MuiTypography-colorTextPrimary MuiTypography-alignCenter"
>
Test
</h6>
</div>
`;
exports[`SquareAppIcon component should render correctly an app in maintenance state 1`] = `
<div
class="makeStyles-tileWrapper-100"
data-testid="square-app-icon"
>
<div
class="CozyTheme--normal"
>
<span
class="MuiBadge-root-102"
>
<span
class="MuiBadge-root-102 styles__SquareAppIcon-wrapper___2SEuM styles__SquareAppIcon-wrapper-maintenance___2ne2n makeStyles-shadow-98"
>
<div
class="styles__SquareAppIcon-icon-container___39MRl"
>
<div
class="styles__onEnd___1O6Q7"
/>
<svg
class="styles__c-app-icon___2_O40 styles__c-app-icon-default___3CEmt styles__icon___23x3R"
height="100%"
style="fill: var(--coolGrey);"
viewBox="0 0 16 16"
width="100%"
>
<path
d="M1 11.009V5.5c0-.55.39-.773.872-.498l5.256 3.003c.476.272.872.944.872 1.495v5.508c0 .549-.39.772-.872.497l-5.256-3.003C1.396 12.231 1 11.56 1 11.01zm15 0c0 .55-.396 1.222-.872 1.494l-5.256 3.003c-.481.275-.872.052-.872-.497V9.5c0-.55.396-1.223.872-1.495l5.256-3.003c.481-.275.872-.052.872.498v5.508zM9.35 6.982c-.47.288-1.237.284-1.7 0l-4.8-2.954c-.47-.29-.463-.732.027-.995L7.623.477c.485-.261 1.264-.264 1.754 0l4.746 2.556c.485.26.49.71.027.995l-4.8 2.954z"
/>
</svg>
</div>
<span
class="MuiBadge-badge-103 badgeSizeLarge MuiBadge-anchorOriginTopRightRectangular-109"
/>
</span>
<span
class="MuiBadge-badge-103 Component-qualifier-101 MuiBadge-anchorOriginBottomRightRectangular-111 MuiBadge-invisible-124"
/>
</span>
</div>
<h6
class="MuiTypography-root makeStyles-name-94 u-spacellipsis MuiTypography-h6 MuiTypography-colorTextPrimary MuiTypography-alignCenter"
>
Test
</h6>
</div>
`;
exports[`SquareAppIcon component should render correctly an app in shortcut state 1`] = `
<div
class="makeStyles-tileWrapper-224"
data-testid="square-app-icon"
>
<div
class="CozyTheme--normal"
>
<span
class="MuiBadge-root-226"
>
<span
class="MuiBadge-root-226 styles__SquareAppIcon-wrapper___2SEuM makeStyles-shadow-222"
style="background-color: rgb(61, 166, 126);"
>
<h2
class="MuiTypography-root-249 makeStyles-letter-221 MuiTypography-h2-255 MuiTypography-colorTextPrimary-274 MuiTypography-alignCenter-265"
>
S
</h2>
<span
class="MuiBadge-badge-227 badgeSizeLarge MuiBadge-anchorOriginTopRightRectangular-233"
/>
</span>
<span
class="MuiBadge-badge-227 Component-qualifier-225 MuiBadge-anchorOriginBottomRightRectangular-235"
>
<svg
class="styles__icon___23x3R"
height="10"
viewBox="0 0 16 16"
width="10"
>
<path
d="M9 0v2h3.5L6 8.5 7.5 10 14 3.5V7h2V1.003A.996.996 0 0014.997 0H9zM7 2V0H1.003A1 1 0 000 1v14c0 .552.445 1 1 1h14c.552 0 1-.438 1-1.003V9h-2v5H2V2h5z"
fill-rule="evenodd"
/>
</svg>
</span>
</span>
</div>
<h6
class="MuiTypography-root makeStyles-name-218 u-spacellipsis MuiTypography-h6 MuiTypography-colorTextPrimary MuiTypography-alignCenter"
>
shortcut
</h6>
</div>
`;
exports[`SquareAppIcon component should render correctly an app with custom content 1`] = `
<div
class="makeStyles-tileWrapper-316"
data-testid="square-app-icon"
>
<div
class="CozyTheme--normal"
>
<span
class="MuiBadge-root-318"
>
<span
class="MuiBadge-root-318 styles__SquareAppIcon-wrapper___2SEuM makeStyles-shadow-314"
>
<div
class="styles__SquareAppIcon-icon-container___39MRl"
>
<div
class="styles__onEnd___1O6Q7"
/>
<svg
class="styles__icon___23x3R"
height="16"
viewBox="0 0 52 52"
width="16"
>
<path
d="M38.231 44H13.769C6.175 44 0 37.756 0 30.08c0-3.66 1.394-7.117 3.927-9.733 2.219-2.29 5.093-3.715 8.203-4.086a13.887 13.887 0 014.042-8.292A13.608 13.608 0 0125.801 4c3.62 0 7.04 1.407 9.629 3.968a13.897 13.897 0 014.038 8.25C46.482 16.853 52 22.828 52 30.082 52 37.756 45.82 44 38.23 44h.001zm-.163-3.001h.104c5.97 0 10.828-4.91 10.828-10.947 0-6.035-4.857-10.946-10.828-10.946h-.11c-.779 0-1.417-.627-1.435-1.417C36.492 11.794 31.637 7 25.803 7c-5.835 0-10.692 4.796-10.826 10.69a1.445 1.445 0 01-1.403 1.42C7.744 19.244 3 24.153 3 30.052 3 36.09 7.857 41 13.828 41h.088l.035-.002c.03 0 .062 0 .093.002h24.021l.003-.001zm-4.302-11.776c-.875-.585-.918-1.659-.92-1.706A.52.52 0 0032.32 27a.523.523 0 00-.506.536c.002.039.016.543.251 1.137a7.99 7.99 0 01-11.138.019 3.554 3.554 0 00.257-1.155.523.523 0 00-.503-.536.526.526 0 00-.528.515c0 .043-.042 1.121-.92 1.706a.536.536 0 00-.15.731.51.51 0 00.714.154c.225-.15.414-.322.572-.505a9.006 9.006 0 0012.251-.01c.16.184.35.36.582.515a.503.503 0 00.281.085.516.516 0 00.432-.24.537.537 0 00-.15-.731v.002z"
fill="#297EF2"
fill-rule="evenodd"
/>
</svg>
</div>
<span
class="MuiBadge-badge-319 badgeSizeLarge MuiBadge-anchorOriginTopRightRectangular-325"
/>
</span>
<span
class="MuiBadge-badge-319 Component-qualifier-317 MuiBadge-anchorOriginBottomRightRectangular-327 MuiBadge-invisible-340"
/>
</span>
</div>
<h6
class="MuiTypography-root makeStyles-name-310 u-spacellipsis MuiTypography-h6 MuiTypography-colorTextPrimary MuiTypography-alignCenter"
>
custom icon
</h6>
</div>
`;