@khanacademy/wonder-blocks-button 2.11.7 → 3.0.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.
@@ -1,5009 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`wonder-blocks-button example 1 1`] = `
4
- <div
5
- className=""
6
- style={
7
- Object {
8
- "alignItems": "stretch",
9
- "borderStyle": "solid",
10
- "borderWidth": 0,
11
- "boxSizing": "border-box",
12
- "display": "flex",
13
- "flexDirection": "row",
14
- "margin": 0,
15
- "minHeight": 0,
16
- "minWidth": 0,
17
- "padding": 0,
18
- "position": "relative",
19
- "zIndex": 0,
20
- }
21
- }
22
- >
23
- <button
24
- aria-disabled={false}
25
- className=""
26
- onBlur={[Function]}
27
- onClick={[Function]}
28
- onDragStart={[Function]}
29
- onFocus={[Function]}
30
- onKeyDown={[Function]}
31
- onKeyUp={[Function]}
32
- onMouseDown={[Function]}
33
- onMouseEnter={[Function]}
34
- onMouseLeave={[Function]}
35
- onMouseUp={[Function]}
36
- onTouchCancel={[Function]}
37
- onTouchEnd={[Function]}
38
- onTouchStart={[Function]}
39
- role="button"
40
- style={
41
- Object {
42
- "::MozFocusInner": Object {
43
- "border": 0,
44
- },
45
- ":focus": Object {
46
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
47
- },
48
- "alignItems": "center",
49
- "background": "#1865f2",
50
- "border": "none",
51
- "borderRadius": 4,
52
- "boxSizing": "border-box",
53
- "color": "#ffffff",
54
- "cursor": "pointer",
55
- "display": "inline-flex",
56
- "height": 40,
57
- "justifyContent": "center",
58
- "margin": 0,
59
- "marginRight": 10,
60
- "outline": "none",
61
- "paddingBottom": 0,
62
- "paddingLeft": 16,
63
- "paddingRight": 16,
64
- "paddingTop": 0,
65
- "position": "relative",
66
- "textDecoration": "none",
67
- "touchAction": "manipulation",
68
- "userSelect": "none",
69
- }
70
- }
71
- tabIndex={0}
72
- type="button"
73
- >
74
- <span
75
- className=""
76
- style={
77
- Object {
78
- "MozOsxFontSmoothing": "grayscale",
79
- "WebkitFontSmoothing": "antialiased",
80
- "alignItems": "center",
81
- "display": "inline-block",
82
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
83
- "fontSize": 16,
84
- "fontWeight": "bold",
85
- "lineHeight": "20px",
86
- "overflow": "hidden",
87
- "pointerEvents": "none",
88
- "textOverflow": "ellipsis",
89
- "whiteSpace": "nowrap",
90
- }
91
- }
92
- >
93
- Primary
94
- </span>
95
- </button>
96
- <button
97
- aria-disabled={false}
98
- className=""
99
- onBlur={[Function]}
100
- onClick={[Function]}
101
- onDragStart={[Function]}
102
- onFocus={[Function]}
103
- onKeyDown={[Function]}
104
- onKeyUp={[Function]}
105
- onMouseDown={[Function]}
106
- onMouseEnter={[Function]}
107
- onMouseLeave={[Function]}
108
- onMouseUp={[Function]}
109
- onTouchCancel={[Function]}
110
- onTouchEnd={[Function]}
111
- onTouchStart={[Function]}
112
- role="button"
113
- style={
114
- Object {
115
- "::MozFocusInner": Object {
116
- "border": 0,
117
- },
118
- ":focus": Object {
119
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
120
- },
121
- "alignItems": "center",
122
- "background": "none",
123
- "border": "none",
124
- "borderColor": "rgba(33,36,44,0.50)",
125
- "borderRadius": 4,
126
- "borderStyle": "solid",
127
- "borderWidth": 1,
128
- "boxSizing": "border-box",
129
- "color": "#1865f2",
130
- "cursor": "pointer",
131
- "display": "inline-flex",
132
- "height": 40,
133
- "justifyContent": "center",
134
- "margin": 0,
135
- "marginRight": 10,
136
- "outline": "none",
137
- "paddingBottom": 0,
138
- "paddingLeft": 16,
139
- "paddingRight": 16,
140
- "paddingTop": 0,
141
- "position": "relative",
142
- "textDecoration": "none",
143
- "touchAction": "manipulation",
144
- "userSelect": "none",
145
- }
146
- }
147
- tabIndex={0}
148
- type="button"
149
- >
150
- <span
151
- className=""
152
- style={
153
- Object {
154
- "MozOsxFontSmoothing": "grayscale",
155
- "WebkitFontSmoothing": "antialiased",
156
- "alignItems": "center",
157
- "display": "inline-block",
158
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
159
- "fontSize": 16,
160
- "fontWeight": "bold",
161
- "lineHeight": "20px",
162
- "overflow": "hidden",
163
- "pointerEvents": "none",
164
- "textOverflow": "ellipsis",
165
- "whiteSpace": "nowrap",
166
- }
167
- }
168
- >
169
- Secondary
170
- </span>
171
- </button>
172
- <button
173
- aria-disabled={false}
174
- className=""
175
- onBlur={[Function]}
176
- onClick={[Function]}
177
- onDragStart={[Function]}
178
- onFocus={[Function]}
179
- onKeyDown={[Function]}
180
- onKeyUp={[Function]}
181
- onMouseDown={[Function]}
182
- onMouseEnter={[Function]}
183
- onMouseLeave={[Function]}
184
- onMouseUp={[Function]}
185
- onTouchCancel={[Function]}
186
- onTouchEnd={[Function]}
187
- onTouchStart={[Function]}
188
- role="button"
189
- style={
190
- Object {
191
- "::MozFocusInner": Object {
192
- "border": 0,
193
- },
194
- ":focus": Object {
195
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
196
- },
197
- "alignItems": "center",
198
- "background": "none",
199
- "border": "none",
200
- "borderRadius": 4,
201
- "boxSizing": "border-box",
202
- "color": "#1865f2",
203
- "cursor": "pointer",
204
- "display": "inline-flex",
205
- "height": 40,
206
- "justifyContent": "center",
207
- "margin": 0,
208
- "marginRight": 10,
209
- "outline": "none",
210
- "paddingBottom": 0,
211
- "paddingLeft": 0,
212
- "paddingRight": 0,
213
- "paddingTop": 0,
214
- "position": "relative",
215
- "textDecoration": "none",
216
- "touchAction": "manipulation",
217
- "userSelect": "none",
218
- }
219
- }
220
- tabIndex={0}
221
- type="button"
222
- >
223
- <span
224
- className=""
225
- style={
226
- Object {
227
- "MozOsxFontSmoothing": "grayscale",
228
- "WebkitFontSmoothing": "antialiased",
229
- "alignItems": "center",
230
- "display": "inline-block",
231
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
232
- "fontSize": 16,
233
- "fontWeight": "bold",
234
- "lineHeight": "20px",
235
- "overflow": "hidden",
236
- "pointerEvents": "none",
237
- "position": "relative",
238
- "textOverflow": "ellipsis",
239
- "whiteSpace": "nowrap",
240
- }
241
- }
242
- >
243
- Tertiary
244
- </span>
245
- </button>
246
- </div>
247
- `;
248
-
249
- exports[`wonder-blocks-button example 2 1`] = `
250
- <div
251
- className=""
252
- style={
253
- Object {
254
- "alignItems": "stretch",
255
- "borderStyle": "solid",
256
- "borderWidth": 0,
257
- "boxSizing": "border-box",
258
- "display": "flex",
259
- "flexDirection": "row",
260
- "margin": 0,
261
- "minHeight": 0,
262
- "minWidth": 0,
263
- "padding": 0,
264
- "position": "relative",
265
- "zIndex": 0,
266
- }
267
- }
268
- >
269
- <button
270
- aria-disabled={false}
271
- className=""
272
- onBlur={[Function]}
273
- onClick={[Function]}
274
- onDragStart={[Function]}
275
- onFocus={[Function]}
276
- onKeyDown={[Function]}
277
- onKeyUp={[Function]}
278
- onMouseDown={[Function]}
279
- onMouseEnter={[Function]}
280
- onMouseLeave={[Function]}
281
- onMouseUp={[Function]}
282
- onTouchCancel={[Function]}
283
- onTouchEnd={[Function]}
284
- onTouchStart={[Function]}
285
- role="button"
286
- style={
287
- Object {
288
- "::MozFocusInner": Object {
289
- "border": 0,
290
- },
291
- ":focus": Object {
292
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
293
- },
294
- "alignItems": "center",
295
- "background": "#d92916",
296
- "border": "none",
297
- "borderRadius": 4,
298
- "boxSizing": "border-box",
299
- "color": "#ffffff",
300
- "cursor": "pointer",
301
- "display": "inline-flex",
302
- "height": 40,
303
- "justifyContent": "center",
304
- "margin": 0,
305
- "marginRight": 10,
306
- "outline": "none",
307
- "paddingBottom": 0,
308
- "paddingLeft": 16,
309
- "paddingRight": 16,
310
- "paddingTop": 0,
311
- "position": "relative",
312
- "textDecoration": "none",
313
- "touchAction": "manipulation",
314
- "userSelect": "none",
315
- }
316
- }
317
- tabIndex={0}
318
- type="button"
319
- >
320
- <span
321
- className=""
322
- style={
323
- Object {
324
- "MozOsxFontSmoothing": "grayscale",
325
- "WebkitFontSmoothing": "antialiased",
326
- "alignItems": "center",
327
- "display": "inline-block",
328
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
329
- "fontSize": 16,
330
- "fontWeight": "bold",
331
- "lineHeight": "20px",
332
- "overflow": "hidden",
333
- "pointerEvents": "none",
334
- "textOverflow": "ellipsis",
335
- "whiteSpace": "nowrap",
336
- }
337
- }
338
- >
339
- Primary
340
- </span>
341
- </button>
342
- <button
343
- aria-disabled={false}
344
- className=""
345
- onBlur={[Function]}
346
- onClick={[Function]}
347
- onDragStart={[Function]}
348
- onFocus={[Function]}
349
- onKeyDown={[Function]}
350
- onKeyUp={[Function]}
351
- onMouseDown={[Function]}
352
- onMouseEnter={[Function]}
353
- onMouseLeave={[Function]}
354
- onMouseUp={[Function]}
355
- onTouchCancel={[Function]}
356
- onTouchEnd={[Function]}
357
- onTouchStart={[Function]}
358
- role="button"
359
- style={
360
- Object {
361
- "::MozFocusInner": Object {
362
- "border": 0,
363
- },
364
- ":focus": Object {
365
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
366
- },
367
- "alignItems": "center",
368
- "background": "none",
369
- "border": "none",
370
- "borderColor": "rgba(33,36,44,0.50)",
371
- "borderRadius": 4,
372
- "borderStyle": "solid",
373
- "borderWidth": 1,
374
- "boxSizing": "border-box",
375
- "color": "#d92916",
376
- "cursor": "pointer",
377
- "display": "inline-flex",
378
- "height": 40,
379
- "justifyContent": "center",
380
- "margin": 0,
381
- "marginRight": 10,
382
- "outline": "none",
383
- "paddingBottom": 0,
384
- "paddingLeft": 16,
385
- "paddingRight": 16,
386
- "paddingTop": 0,
387
- "position": "relative",
388
- "textDecoration": "none",
389
- "touchAction": "manipulation",
390
- "userSelect": "none",
391
- }
392
- }
393
- tabIndex={0}
394
- type="button"
395
- >
396
- <span
397
- className=""
398
- style={
399
- Object {
400
- "MozOsxFontSmoothing": "grayscale",
401
- "WebkitFontSmoothing": "antialiased",
402
- "alignItems": "center",
403
- "display": "inline-block",
404
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
405
- "fontSize": 16,
406
- "fontWeight": "bold",
407
- "lineHeight": "20px",
408
- "overflow": "hidden",
409
- "pointerEvents": "none",
410
- "textOverflow": "ellipsis",
411
- "whiteSpace": "nowrap",
412
- }
413
- }
414
- >
415
- Secondary
416
- </span>
417
- </button>
418
- <button
419
- aria-disabled={false}
420
- className=""
421
- onBlur={[Function]}
422
- onClick={[Function]}
423
- onDragStart={[Function]}
424
- onFocus={[Function]}
425
- onKeyDown={[Function]}
426
- onKeyUp={[Function]}
427
- onMouseDown={[Function]}
428
- onMouseEnter={[Function]}
429
- onMouseLeave={[Function]}
430
- onMouseUp={[Function]}
431
- onTouchCancel={[Function]}
432
- onTouchEnd={[Function]}
433
- onTouchStart={[Function]}
434
- role="button"
435
- style={
436
- Object {
437
- "::MozFocusInner": Object {
438
- "border": 0,
439
- },
440
- ":focus": Object {
441
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
442
- },
443
- "alignItems": "center",
444
- "background": "none",
445
- "border": "none",
446
- "borderRadius": 4,
447
- "boxSizing": "border-box",
448
- "color": "#d92916",
449
- "cursor": "pointer",
450
- "display": "inline-flex",
451
- "height": 40,
452
- "justifyContent": "center",
453
- "margin": 0,
454
- "marginRight": 10,
455
- "outline": "none",
456
- "paddingBottom": 0,
457
- "paddingLeft": 0,
458
- "paddingRight": 0,
459
- "paddingTop": 0,
460
- "position": "relative",
461
- "textDecoration": "none",
462
- "touchAction": "manipulation",
463
- "userSelect": "none",
464
- }
465
- }
466
- tabIndex={0}
467
- type="button"
468
- >
469
- <span
470
- className=""
471
- style={
472
- Object {
473
- "MozOsxFontSmoothing": "grayscale",
474
- "WebkitFontSmoothing": "antialiased",
475
- "alignItems": "center",
476
- "display": "inline-block",
477
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
478
- "fontSize": 16,
479
- "fontWeight": "bold",
480
- "lineHeight": "20px",
481
- "overflow": "hidden",
482
- "pointerEvents": "none",
483
- "position": "relative",
484
- "textOverflow": "ellipsis",
485
- "whiteSpace": "nowrap",
486
- }
487
- }
488
- >
489
- Tertiary
490
- </span>
491
- </button>
492
- </div>
493
- `;
494
-
495
- exports[`wonder-blocks-button example 3 1`] = `
496
- <div
497
- className=""
498
- style={
499
- Object {
500
- "alignItems": "stretch",
501
- "borderStyle": "solid",
502
- "borderWidth": 0,
503
- "boxSizing": "border-box",
504
- "display": "flex",
505
- "flexDirection": "row",
506
- "margin": 0,
507
- "minHeight": 0,
508
- "minWidth": 0,
509
- "padding": 0,
510
- "position": "relative",
511
- "zIndex": 0,
512
- }
513
- }
514
- >
515
- <button
516
- aria-disabled={true}
517
- className=""
518
- onBlur={[Function]}
519
- onClick={[Function]}
520
- onDragStart={[Function]}
521
- onFocus={[Function]}
522
- onKeyDown={[Function]}
523
- onKeyUp={[Function]}
524
- onMouseDown={[Function]}
525
- onMouseEnter={[Function]}
526
- onMouseLeave={[Function]}
527
- onMouseUp={[Function]}
528
- onTouchCancel={[Function]}
529
- onTouchEnd={[Function]}
530
- onTouchStart={[Function]}
531
- role="button"
532
- style={
533
- Object {
534
- "::MozFocusInner": Object {
535
- "border": 0,
536
- },
537
- ":focus": Object {
538
- "boxShadow": "0 0 0 1px #ffffff, 0 0 0 3px rgba(33,36,44,0.32)",
539
- },
540
- "alignItems": "center",
541
- "background": "rgba(33,36,44,0.32)",
542
- "border": "none",
543
- "borderRadius": 4,
544
- "boxSizing": "border-box",
545
- "color": "rgba(255,255,255,0.64)",
546
- "cursor": "default",
547
- "display": "inline-flex",
548
- "height": 40,
549
- "justifyContent": "center",
550
- "margin": 0,
551
- "marginRight": 10,
552
- "outline": "none",
553
- "paddingBottom": 0,
554
- "paddingLeft": 16,
555
- "paddingRight": 16,
556
- "paddingTop": 0,
557
- "position": "relative",
558
- "textDecoration": "none",
559
- "touchAction": "manipulation",
560
- "userSelect": "none",
561
- }
562
- }
563
- tabIndex={0}
564
- type="button"
565
- >
566
- <span
567
- className=""
568
- style={
569
- Object {
570
- "MozOsxFontSmoothing": "grayscale",
571
- "WebkitFontSmoothing": "antialiased",
572
- "alignItems": "center",
573
- "display": "inline-block",
574
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
575
- "fontSize": 16,
576
- "fontWeight": "bold",
577
- "lineHeight": "20px",
578
- "overflow": "hidden",
579
- "pointerEvents": "none",
580
- "textOverflow": "ellipsis",
581
- "whiteSpace": "nowrap",
582
- }
583
- }
584
- >
585
- Primary
586
- </span>
587
- </button>
588
- <button
589
- aria-disabled={true}
590
- className=""
591
- onBlur={[Function]}
592
- onClick={[Function]}
593
- onDragStart={[Function]}
594
- onFocus={[Function]}
595
- onKeyDown={[Function]}
596
- onKeyUp={[Function]}
597
- onMouseDown={[Function]}
598
- onMouseEnter={[Function]}
599
- onMouseLeave={[Function]}
600
- onMouseUp={[Function]}
601
- onTouchCancel={[Function]}
602
- onTouchEnd={[Function]}
603
- onTouchStart={[Function]}
604
- role="button"
605
- style={
606
- Object {
607
- "::MozFocusInner": Object {
608
- "border": 0,
609
- },
610
- ":focus": Object {
611
- "borderColor": "rgba(33,36,44,0.32)",
612
- "borderWidth": 2,
613
- "paddingLeft": 15,
614
- "paddingRight": 15,
615
- },
616
- "alignItems": "center",
617
- "background": "none",
618
- "border": "none",
619
- "borderColor": "rgba(33,36,44,0.32)",
620
- "borderRadius": 4,
621
- "borderStyle": "solid",
622
- "borderWidth": 1,
623
- "boxSizing": "border-box",
624
- "color": "rgba(33,36,44,0.32)",
625
- "cursor": "default",
626
- "display": "inline-flex",
627
- "height": 40,
628
- "justifyContent": "center",
629
- "margin": 0,
630
- "marginRight": 10,
631
- "outline": "none",
632
- "paddingBottom": 0,
633
- "paddingLeft": 16,
634
- "paddingRight": 16,
635
- "paddingTop": 0,
636
- "position": "relative",
637
- "textDecoration": "none",
638
- "touchAction": "manipulation",
639
- "userSelect": "none",
640
- }
641
- }
642
- tabIndex={0}
643
- type="button"
644
- >
645
- <span
646
- className=""
647
- style={
648
- Object {
649
- "MozOsxFontSmoothing": "grayscale",
650
- "WebkitFontSmoothing": "antialiased",
651
- "alignItems": "center",
652
- "display": "inline-block",
653
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
654
- "fontSize": 16,
655
- "fontWeight": "bold",
656
- "lineHeight": "20px",
657
- "overflow": "hidden",
658
- "pointerEvents": "none",
659
- "textOverflow": "ellipsis",
660
- "whiteSpace": "nowrap",
661
- }
662
- }
663
- >
664
- Secondary
665
- </span>
666
- </button>
667
- <button
668
- aria-disabled={true}
669
- className=""
670
- onBlur={[Function]}
671
- onClick={[Function]}
672
- onDragStart={[Function]}
673
- onFocus={[Function]}
674
- onKeyDown={[Function]}
675
- onKeyUp={[Function]}
676
- onMouseDown={[Function]}
677
- onMouseEnter={[Function]}
678
- onMouseLeave={[Function]}
679
- onMouseUp={[Function]}
680
- onTouchCancel={[Function]}
681
- onTouchEnd={[Function]}
682
- onTouchStart={[Function]}
683
- role="button"
684
- style={
685
- Object {
686
- "::MozFocusInner": Object {
687
- "border": 0,
688
- },
689
- ":focus": Object {
690
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
691
- },
692
- "alignItems": "center",
693
- "background": "none",
694
- "border": "none",
695
- "borderRadius": 4,
696
- "boxSizing": "border-box",
697
- "color": "rgba(33,36,44,0.32)",
698
- "cursor": "default",
699
- "display": "inline-flex",
700
- "height": 40,
701
- "justifyContent": "center",
702
- "margin": 0,
703
- "marginRight": 10,
704
- "outline": "none",
705
- "paddingBottom": 0,
706
- "paddingLeft": 0,
707
- "paddingRight": 0,
708
- "paddingTop": 0,
709
- "position": "relative",
710
- "textDecoration": "none",
711
- "touchAction": "manipulation",
712
- "userSelect": "none",
713
- }
714
- }
715
- tabIndex={0}
716
- type="button"
717
- >
718
- <span
719
- className=""
720
- style={
721
- Object {
722
- "MozOsxFontSmoothing": "grayscale",
723
- "WebkitFontSmoothing": "antialiased",
724
- "alignItems": "center",
725
- "display": "inline-block",
726
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
727
- "fontSize": 16,
728
- "fontWeight": "bold",
729
- "lineHeight": "20px",
730
- "overflow": "hidden",
731
- "pointerEvents": "none",
732
- "position": "relative",
733
- "textOverflow": "ellipsis",
734
- "whiteSpace": "nowrap",
735
- }
736
- }
737
- >
738
- Tertiary
739
- </span>
740
- </button>
741
- </div>
742
- `;
743
-
744
- exports[`wonder-blocks-button example 4 1`] = `
745
- <div
746
- className=""
747
- style={
748
- Object {
749
- "alignItems": "stretch",
750
- "backgroundColor": "#0a2a66",
751
- "borderStyle": "solid",
752
- "borderWidth": 0,
753
- "boxSizing": "border-box",
754
- "display": "flex",
755
- "flexDirection": "row",
756
- "margin": 0,
757
- "minHeight": 0,
758
- "minWidth": 0,
759
- "padding": 10,
760
- "position": "relative",
761
- "zIndex": 0,
762
- }
763
- }
764
- >
765
- <button
766
- aria-disabled={false}
767
- className=""
768
- onBlur={[Function]}
769
- onClick={[Function]}
770
- onDragStart={[Function]}
771
- onFocus={[Function]}
772
- onKeyDown={[Function]}
773
- onKeyUp={[Function]}
774
- onMouseDown={[Function]}
775
- onMouseEnter={[Function]}
776
- onMouseLeave={[Function]}
777
- onMouseUp={[Function]}
778
- onTouchCancel={[Function]}
779
- onTouchEnd={[Function]}
780
- onTouchStart={[Function]}
781
- role="button"
782
- style={
783
- Object {
784
- "::MozFocusInner": Object {
785
- "border": 0,
786
- },
787
- ":focus": Object {
788
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
789
- },
790
- "alignItems": "center",
791
- "background": "#ffffff",
792
- "border": "none",
793
- "borderRadius": 4,
794
- "boxSizing": "border-box",
795
- "color": "#1865f2",
796
- "cursor": "pointer",
797
- "display": "inline-flex",
798
- "height": 40,
799
- "justifyContent": "center",
800
- "margin": 0,
801
- "marginRight": 10,
802
- "outline": "none",
803
- "paddingBottom": 0,
804
- "paddingLeft": 16,
805
- "paddingRight": 16,
806
- "paddingTop": 0,
807
- "position": "relative",
808
- "textDecoration": "none",
809
- "touchAction": "manipulation",
810
- "userSelect": "none",
811
- }
812
- }
813
- tabIndex={0}
814
- type="button"
815
- >
816
- <span
817
- className=""
818
- style={
819
- Object {
820
- "MozOsxFontSmoothing": "grayscale",
821
- "WebkitFontSmoothing": "antialiased",
822
- "alignItems": "center",
823
- "display": "inline-block",
824
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
825
- "fontSize": 16,
826
- "fontWeight": "bold",
827
- "lineHeight": "20px",
828
- "overflow": "hidden",
829
- "pointerEvents": "none",
830
- "textOverflow": "ellipsis",
831
- "whiteSpace": "nowrap",
832
- }
833
- }
834
- >
835
- Primary
836
- </span>
837
- </button>
838
- <button
839
- aria-disabled={false}
840
- className=""
841
- onBlur={[Function]}
842
- onClick={[Function]}
843
- onDragStart={[Function]}
844
- onFocus={[Function]}
845
- onKeyDown={[Function]}
846
- onKeyUp={[Function]}
847
- onMouseDown={[Function]}
848
- onMouseEnter={[Function]}
849
- onMouseLeave={[Function]}
850
- onMouseUp={[Function]}
851
- onTouchCancel={[Function]}
852
- onTouchEnd={[Function]}
853
- onTouchStart={[Function]}
854
- role="button"
855
- style={
856
- Object {
857
- "::MozFocusInner": Object {
858
- "border": 0,
859
- },
860
- ":focus": Object {
861
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
862
- },
863
- "alignItems": "center",
864
- "background": "none",
865
- "border": "none",
866
- "borderColor": "rgba(255,255,255,0.50)",
867
- "borderRadius": 4,
868
- "borderStyle": "solid",
869
- "borderWidth": 1,
870
- "boxSizing": "border-box",
871
- "color": "#ffffff",
872
- "cursor": "pointer",
873
- "display": "inline-flex",
874
- "height": 40,
875
- "justifyContent": "center",
876
- "margin": 0,
877
- "marginRight": 10,
878
- "outline": "none",
879
- "paddingBottom": 0,
880
- "paddingLeft": 16,
881
- "paddingRight": 16,
882
- "paddingTop": 0,
883
- "position": "relative",
884
- "textDecoration": "none",
885
- "touchAction": "manipulation",
886
- "userSelect": "none",
887
- }
888
- }
889
- tabIndex={0}
890
- type="button"
891
- >
892
- <span
893
- className=""
894
- style={
895
- Object {
896
- "MozOsxFontSmoothing": "grayscale",
897
- "WebkitFontSmoothing": "antialiased",
898
- "alignItems": "center",
899
- "display": "inline-block",
900
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
901
- "fontSize": 16,
902
- "fontWeight": "bold",
903
- "lineHeight": "20px",
904
- "overflow": "hidden",
905
- "pointerEvents": "none",
906
- "textOverflow": "ellipsis",
907
- "whiteSpace": "nowrap",
908
- }
909
- }
910
- >
911
- Secondary
912
- </span>
913
- </button>
914
- <button
915
- aria-disabled={false}
916
- className=""
917
- onBlur={[Function]}
918
- onClick={[Function]}
919
- onDragStart={[Function]}
920
- onFocus={[Function]}
921
- onKeyDown={[Function]}
922
- onKeyUp={[Function]}
923
- onMouseDown={[Function]}
924
- onMouseEnter={[Function]}
925
- onMouseLeave={[Function]}
926
- onMouseUp={[Function]}
927
- onTouchCancel={[Function]}
928
- onTouchEnd={[Function]}
929
- onTouchStart={[Function]}
930
- role="button"
931
- style={
932
- Object {
933
- "::MozFocusInner": Object {
934
- "border": 0,
935
- },
936
- ":focus": Object {
937
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
938
- },
939
- "alignItems": "center",
940
- "background": "none",
941
- "border": "none",
942
- "borderRadius": 4,
943
- "boxSizing": "border-box",
944
- "color": "#ffffff",
945
- "cursor": "pointer",
946
- "display": "inline-flex",
947
- "height": 40,
948
- "justifyContent": "center",
949
- "margin": 0,
950
- "marginRight": 10,
951
- "outline": "none",
952
- "paddingBottom": 0,
953
- "paddingLeft": 0,
954
- "paddingRight": 0,
955
- "paddingTop": 0,
956
- "position": "relative",
957
- "textDecoration": "none",
958
- "touchAction": "manipulation",
959
- "userSelect": "none",
960
- }
961
- }
962
- tabIndex={0}
963
- type="button"
964
- >
965
- <span
966
- className=""
967
- style={
968
- Object {
969
- "MozOsxFontSmoothing": "grayscale",
970
- "WebkitFontSmoothing": "antialiased",
971
- "alignItems": "center",
972
- "display": "inline-block",
973
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
974
- "fontSize": 16,
975
- "fontWeight": "bold",
976
- "lineHeight": "20px",
977
- "overflow": "hidden",
978
- "pointerEvents": "none",
979
- "position": "relative",
980
- "textOverflow": "ellipsis",
981
- "whiteSpace": "nowrap",
982
- }
983
- }
984
- >
985
- Tertiary
986
- </span>
987
- </button>
988
- <button
989
- aria-disabled={true}
990
- className=""
991
- onBlur={[Function]}
992
- onClick={[Function]}
993
- onDragStart={[Function]}
994
- onFocus={[Function]}
995
- onKeyDown={[Function]}
996
- onKeyUp={[Function]}
997
- onMouseDown={[Function]}
998
- onMouseEnter={[Function]}
999
- onMouseLeave={[Function]}
1000
- onMouseUp={[Function]}
1001
- onTouchCancel={[Function]}
1002
- onTouchEnd={[Function]}
1003
- onTouchStart={[Function]}
1004
- role="button"
1005
- style={
1006
- Object {
1007
- "::MozFocusInner": Object {
1008
- "border": 0,
1009
- },
1010
- ":focus": Object {
1011
- "boxShadow": "0 0 0 1px rgba(33,36,44,0.32), 0 0 0 3px #b5cefb",
1012
- },
1013
- "alignItems": "center",
1014
- "background": "#b5cefb",
1015
- "border": "none",
1016
- "borderRadius": 4,
1017
- "boxSizing": "border-box",
1018
- "color": "#1865f2",
1019
- "cursor": "default",
1020
- "display": "inline-flex",
1021
- "height": 40,
1022
- "justifyContent": "center",
1023
- "margin": 0,
1024
- "marginRight": 10,
1025
- "outline": "none",
1026
- "paddingBottom": 0,
1027
- "paddingLeft": 16,
1028
- "paddingRight": 16,
1029
- "paddingTop": 0,
1030
- "position": "relative",
1031
- "textDecoration": "none",
1032
- "touchAction": "manipulation",
1033
- "userSelect": "none",
1034
- }
1035
- }
1036
- tabIndex={0}
1037
- type="button"
1038
- >
1039
- <span
1040
- className=""
1041
- style={
1042
- Object {
1043
- "MozOsxFontSmoothing": "grayscale",
1044
- "WebkitFontSmoothing": "antialiased",
1045
- "alignItems": "center",
1046
- "display": "inline-block",
1047
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
1048
- "fontSize": 16,
1049
- "fontWeight": "bold",
1050
- "lineHeight": "20px",
1051
- "overflow": "hidden",
1052
- "pointerEvents": "none",
1053
- "textOverflow": "ellipsis",
1054
- "whiteSpace": "nowrap",
1055
- }
1056
- }
1057
- >
1058
- Primary
1059
- </span>
1060
- </button>
1061
- <button
1062
- aria-disabled={true}
1063
- className=""
1064
- onBlur={[Function]}
1065
- onClick={[Function]}
1066
- onDragStart={[Function]}
1067
- onFocus={[Function]}
1068
- onKeyDown={[Function]}
1069
- onKeyUp={[Function]}
1070
- onMouseDown={[Function]}
1071
- onMouseEnter={[Function]}
1072
- onMouseLeave={[Function]}
1073
- onMouseUp={[Function]}
1074
- onTouchCancel={[Function]}
1075
- onTouchEnd={[Function]}
1076
- onTouchStart={[Function]}
1077
- role="button"
1078
- style={
1079
- Object {
1080
- "::MozFocusInner": Object {
1081
- "border": 0,
1082
- },
1083
- ":focus": Object {
1084
- "borderColor": "rgba(255,255,255,0.50)",
1085
- "borderWidth": 2,
1086
- "paddingLeft": 15,
1087
- "paddingRight": 15,
1088
- },
1089
- "alignItems": "center",
1090
- "background": "none",
1091
- "border": "none",
1092
- "borderColor": "#b5cefb",
1093
- "borderRadius": 4,
1094
- "borderStyle": "solid",
1095
- "borderWidth": 1,
1096
- "boxSizing": "border-box",
1097
- "color": "rgba(255,255,255,0.50)",
1098
- "cursor": "default",
1099
- "display": "inline-flex",
1100
- "height": 40,
1101
- "justifyContent": "center",
1102
- "margin": 0,
1103
- "marginRight": 10,
1104
- "outline": "none",
1105
- "paddingBottom": 0,
1106
- "paddingLeft": 16,
1107
- "paddingRight": 16,
1108
- "paddingTop": 0,
1109
- "position": "relative",
1110
- "textDecoration": "none",
1111
- "touchAction": "manipulation",
1112
- "userSelect": "none",
1113
- }
1114
- }
1115
- tabIndex={0}
1116
- type="button"
1117
- >
1118
- <span
1119
- className=""
1120
- style={
1121
- Object {
1122
- "MozOsxFontSmoothing": "grayscale",
1123
- "WebkitFontSmoothing": "antialiased",
1124
- "alignItems": "center",
1125
- "display": "inline-block",
1126
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
1127
- "fontSize": 16,
1128
- "fontWeight": "bold",
1129
- "lineHeight": "20px",
1130
- "overflow": "hidden",
1131
- "pointerEvents": "none",
1132
- "textOverflow": "ellipsis",
1133
- "whiteSpace": "nowrap",
1134
- }
1135
- }
1136
- >
1137
- Secondary
1138
- </span>
1139
- </button>
1140
- <button
1141
- aria-disabled={true}
1142
- className=""
1143
- onBlur={[Function]}
1144
- onClick={[Function]}
1145
- onDragStart={[Function]}
1146
- onFocus={[Function]}
1147
- onKeyDown={[Function]}
1148
- onKeyUp={[Function]}
1149
- onMouseDown={[Function]}
1150
- onMouseEnter={[Function]}
1151
- onMouseLeave={[Function]}
1152
- onMouseUp={[Function]}
1153
- onTouchCancel={[Function]}
1154
- onTouchEnd={[Function]}
1155
- onTouchStart={[Function]}
1156
- role="button"
1157
- style={
1158
- Object {
1159
- "::MozFocusInner": Object {
1160
- "border": 0,
1161
- },
1162
- ":focus": Object {
1163
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
1164
- },
1165
- "alignItems": "center",
1166
- "background": "none",
1167
- "border": "none",
1168
- "borderRadius": 4,
1169
- "boxSizing": "border-box",
1170
- "color": "#b5cefb",
1171
- "cursor": "default",
1172
- "display": "inline-flex",
1173
- "height": 40,
1174
- "justifyContent": "center",
1175
- "margin": 0,
1176
- "marginRight": 10,
1177
- "outline": "none",
1178
- "paddingBottom": 0,
1179
- "paddingLeft": 0,
1180
- "paddingRight": 0,
1181
- "paddingTop": 0,
1182
- "position": "relative",
1183
- "textDecoration": "none",
1184
- "touchAction": "manipulation",
1185
- "userSelect": "none",
1186
- }
1187
- }
1188
- tabIndex={0}
1189
- type="button"
1190
- >
1191
- <span
1192
- className=""
1193
- style={
1194
- Object {
1195
- "MozOsxFontSmoothing": "grayscale",
1196
- "WebkitFontSmoothing": "antialiased",
1197
- "alignItems": "center",
1198
- "display": "inline-block",
1199
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
1200
- "fontSize": 16,
1201
- "fontWeight": "bold",
1202
- "lineHeight": "20px",
1203
- "overflow": "hidden",
1204
- "pointerEvents": "none",
1205
- "position": "relative",
1206
- "textOverflow": "ellipsis",
1207
- "whiteSpace": "nowrap",
1208
- }
1209
- }
1210
- >
1211
- Tertiary
1212
- </span>
1213
- </button>
1214
- </div>
1215
- `;
1216
-
1217
- exports[`wonder-blocks-button example 5 1`] = `
1218
- <div
1219
- className=""
1220
- style={
1221
- Object {
1222
- "alignItems": "stretch",
1223
- "borderStyle": "solid",
1224
- "borderWidth": 0,
1225
- "boxSizing": "border-box",
1226
- "display": "flex",
1227
- "flexDirection": "column",
1228
- "margin": 0,
1229
- "minHeight": 0,
1230
- "minWidth": 0,
1231
- "padding": 0,
1232
- "position": "relative",
1233
- "zIndex": 0,
1234
- }
1235
- }
1236
- >
1237
- <div
1238
- className=""
1239
- style={
1240
- Object {
1241
- "alignItems": "stretch",
1242
- "borderStyle": "solid",
1243
- "borderWidth": 0,
1244
- "boxSizing": "border-box",
1245
- "display": "flex",
1246
- "flexDirection": "row",
1247
- "margin": 0,
1248
- "marginBottom": 8,
1249
- "minHeight": 0,
1250
- "minWidth": 0,
1251
- "padding": 0,
1252
- "position": "relative",
1253
- "zIndex": 0,
1254
- }
1255
- }
1256
- >
1257
- <button
1258
- aria-disabled={false}
1259
- className=""
1260
- onBlur={[Function]}
1261
- onClick={[Function]}
1262
- onDragStart={[Function]}
1263
- onFocus={[Function]}
1264
- onKeyDown={[Function]}
1265
- onKeyUp={[Function]}
1266
- onMouseDown={[Function]}
1267
- onMouseEnter={[Function]}
1268
- onMouseLeave={[Function]}
1269
- onMouseUp={[Function]}
1270
- onTouchCancel={[Function]}
1271
- onTouchEnd={[Function]}
1272
- onTouchStart={[Function]}
1273
- role="button"
1274
- style={
1275
- Object {
1276
- "::MozFocusInner": Object {
1277
- "border": 0,
1278
- },
1279
- ":focus": Object {
1280
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
1281
- },
1282
- "alignItems": "center",
1283
- "background": "#1865f2",
1284
- "border": "none",
1285
- "borderRadius": 4,
1286
- "boxSizing": "border-box",
1287
- "color": "#ffffff",
1288
- "cursor": "pointer",
1289
- "display": "inline-flex",
1290
- "height": 32,
1291
- "justifyContent": "center",
1292
- "margin": 0,
1293
- "marginRight": 10,
1294
- "outline": "none",
1295
- "paddingBottom": 0,
1296
- "paddingLeft": 16,
1297
- "paddingRight": 16,
1298
- "paddingTop": 0,
1299
- "position": "relative",
1300
- "textDecoration": "none",
1301
- "touchAction": "manipulation",
1302
- "userSelect": "none",
1303
- }
1304
- }
1305
- tabIndex={0}
1306
- type="button"
1307
- >
1308
- <span
1309
- className=""
1310
- style={
1311
- Object {
1312
- "MozOsxFontSmoothing": "grayscale",
1313
- "WebkitFontSmoothing": "antialiased",
1314
- "alignItems": "center",
1315
- "display": "inline-block",
1316
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
1317
- "fontSize": 14,
1318
- "fontWeight": "bold",
1319
- "lineHeight": "18px",
1320
- "overflow": "hidden",
1321
- "pointerEvents": "none",
1322
- "textOverflow": "ellipsis",
1323
- "whiteSpace": "nowrap",
1324
- }
1325
- }
1326
- >
1327
- Label
1328
- </span>
1329
- </button>
1330
- <button
1331
- aria-disabled={false}
1332
- className=""
1333
- onBlur={[Function]}
1334
- onClick={[Function]}
1335
- onDragStart={[Function]}
1336
- onFocus={[Function]}
1337
- onKeyDown={[Function]}
1338
- onKeyUp={[Function]}
1339
- onMouseDown={[Function]}
1340
- onMouseEnter={[Function]}
1341
- onMouseLeave={[Function]}
1342
- onMouseUp={[Function]}
1343
- onTouchCancel={[Function]}
1344
- onTouchEnd={[Function]}
1345
- onTouchStart={[Function]}
1346
- role="button"
1347
- style={
1348
- Object {
1349
- "::MozFocusInner": Object {
1350
- "border": 0,
1351
- },
1352
- ":focus": Object {
1353
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
1354
- },
1355
- "alignItems": "center",
1356
- "background": "none",
1357
- "border": "none",
1358
- "borderColor": "rgba(33,36,44,0.50)",
1359
- "borderRadius": 4,
1360
- "borderStyle": "solid",
1361
- "borderWidth": 1,
1362
- "boxSizing": "border-box",
1363
- "color": "#1865f2",
1364
- "cursor": "pointer",
1365
- "display": "inline-flex",
1366
- "height": 32,
1367
- "justifyContent": "center",
1368
- "margin": 0,
1369
- "marginRight": 10,
1370
- "outline": "none",
1371
- "paddingBottom": 0,
1372
- "paddingLeft": 16,
1373
- "paddingRight": 16,
1374
- "paddingTop": 0,
1375
- "position": "relative",
1376
- "textDecoration": "none",
1377
- "touchAction": "manipulation",
1378
- "userSelect": "none",
1379
- }
1380
- }
1381
- tabIndex={0}
1382
- type="button"
1383
- >
1384
- <span
1385
- className=""
1386
- style={
1387
- Object {
1388
- "MozOsxFontSmoothing": "grayscale",
1389
- "WebkitFontSmoothing": "antialiased",
1390
- "alignItems": "center",
1391
- "display": "inline-block",
1392
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
1393
- "fontSize": 14,
1394
- "fontWeight": "bold",
1395
- "lineHeight": "18px",
1396
- "overflow": "hidden",
1397
- "pointerEvents": "none",
1398
- "textOverflow": "ellipsis",
1399
- "whiteSpace": "nowrap",
1400
- }
1401
- }
1402
- >
1403
- Label
1404
- </span>
1405
- </button>
1406
- <button
1407
- aria-disabled={false}
1408
- className=""
1409
- onBlur={[Function]}
1410
- onClick={[Function]}
1411
- onDragStart={[Function]}
1412
- onFocus={[Function]}
1413
- onKeyDown={[Function]}
1414
- onKeyUp={[Function]}
1415
- onMouseDown={[Function]}
1416
- onMouseEnter={[Function]}
1417
- onMouseLeave={[Function]}
1418
- onMouseUp={[Function]}
1419
- onTouchCancel={[Function]}
1420
- onTouchEnd={[Function]}
1421
- onTouchStart={[Function]}
1422
- role="button"
1423
- style={
1424
- Object {
1425
- "::MozFocusInner": Object {
1426
- "border": 0,
1427
- },
1428
- ":focus": Object {
1429
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
1430
- },
1431
- "alignItems": "center",
1432
- "background": "none",
1433
- "border": "none",
1434
- "borderRadius": 4,
1435
- "boxSizing": "border-box",
1436
- "color": "#1865f2",
1437
- "cursor": "pointer",
1438
- "display": "inline-flex",
1439
- "height": 32,
1440
- "justifyContent": "center",
1441
- "margin": 0,
1442
- "marginRight": 10,
1443
- "outline": "none",
1444
- "paddingBottom": 0,
1445
- "paddingLeft": 0,
1446
- "paddingRight": 0,
1447
- "paddingTop": 0,
1448
- "position": "relative",
1449
- "textDecoration": "none",
1450
- "touchAction": "manipulation",
1451
- "userSelect": "none",
1452
- }
1453
- }
1454
- tabIndex={0}
1455
- type="button"
1456
- >
1457
- <span
1458
- className=""
1459
- style={
1460
- Object {
1461
- "MozOsxFontSmoothing": "grayscale",
1462
- "WebkitFontSmoothing": "antialiased",
1463
- "alignItems": "center",
1464
- "display": "inline-block",
1465
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
1466
- "fontSize": 14,
1467
- "fontWeight": "bold",
1468
- "lineHeight": "18px",
1469
- "overflow": "hidden",
1470
- "pointerEvents": "none",
1471
- "position": "relative",
1472
- "textOverflow": "ellipsis",
1473
- "whiteSpace": "nowrap",
1474
- }
1475
- }
1476
- >
1477
- Label
1478
- </span>
1479
- </button>
1480
- </div>
1481
- <div
1482
- className=""
1483
- style={
1484
- Object {
1485
- "alignItems": "stretch",
1486
- "borderStyle": "solid",
1487
- "borderWidth": 0,
1488
- "boxSizing": "border-box",
1489
- "display": "flex",
1490
- "flexDirection": "row",
1491
- "margin": 0,
1492
- "marginBottom": 8,
1493
- "minHeight": 0,
1494
- "minWidth": 0,
1495
- "padding": 0,
1496
- "position": "relative",
1497
- "zIndex": 0,
1498
- }
1499
- }
1500
- >
1501
- <button
1502
- aria-disabled={false}
1503
- className=""
1504
- onBlur={[Function]}
1505
- onClick={[Function]}
1506
- onDragStart={[Function]}
1507
- onFocus={[Function]}
1508
- onKeyDown={[Function]}
1509
- onKeyUp={[Function]}
1510
- onMouseDown={[Function]}
1511
- onMouseEnter={[Function]}
1512
- onMouseLeave={[Function]}
1513
- onMouseUp={[Function]}
1514
- onTouchCancel={[Function]}
1515
- onTouchEnd={[Function]}
1516
- onTouchStart={[Function]}
1517
- role="button"
1518
- style={
1519
- Object {
1520
- "::MozFocusInner": Object {
1521
- "border": 0,
1522
- },
1523
- ":focus": Object {
1524
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
1525
- },
1526
- "alignItems": "center",
1527
- "background": "#1865f2",
1528
- "border": "none",
1529
- "borderRadius": 4,
1530
- "boxSizing": "border-box",
1531
- "color": "#ffffff",
1532
- "cursor": "pointer",
1533
- "display": "inline-flex",
1534
- "height": 40,
1535
- "justifyContent": "center",
1536
- "margin": 0,
1537
- "marginRight": 10,
1538
- "outline": "none",
1539
- "paddingBottom": 0,
1540
- "paddingLeft": 16,
1541
- "paddingRight": 16,
1542
- "paddingTop": 0,
1543
- "position": "relative",
1544
- "textDecoration": "none",
1545
- "touchAction": "manipulation",
1546
- "userSelect": "none",
1547
- }
1548
- }
1549
- tabIndex={0}
1550
- type="button"
1551
- >
1552
- <span
1553
- className=""
1554
- style={
1555
- Object {
1556
- "MozOsxFontSmoothing": "grayscale",
1557
- "WebkitFontSmoothing": "antialiased",
1558
- "alignItems": "center",
1559
- "display": "inline-block",
1560
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
1561
- "fontSize": 16,
1562
- "fontWeight": "bold",
1563
- "lineHeight": "20px",
1564
- "overflow": "hidden",
1565
- "pointerEvents": "none",
1566
- "textOverflow": "ellipsis",
1567
- "whiteSpace": "nowrap",
1568
- }
1569
- }
1570
- >
1571
- Label
1572
- </span>
1573
- </button>
1574
- <button
1575
- aria-disabled={false}
1576
- className=""
1577
- onBlur={[Function]}
1578
- onClick={[Function]}
1579
- onDragStart={[Function]}
1580
- onFocus={[Function]}
1581
- onKeyDown={[Function]}
1582
- onKeyUp={[Function]}
1583
- onMouseDown={[Function]}
1584
- onMouseEnter={[Function]}
1585
- onMouseLeave={[Function]}
1586
- onMouseUp={[Function]}
1587
- onTouchCancel={[Function]}
1588
- onTouchEnd={[Function]}
1589
- onTouchStart={[Function]}
1590
- role="button"
1591
- style={
1592
- Object {
1593
- "::MozFocusInner": Object {
1594
- "border": 0,
1595
- },
1596
- ":focus": Object {
1597
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
1598
- },
1599
- "alignItems": "center",
1600
- "background": "none",
1601
- "border": "none",
1602
- "borderColor": "rgba(33,36,44,0.50)",
1603
- "borderRadius": 4,
1604
- "borderStyle": "solid",
1605
- "borderWidth": 1,
1606
- "boxSizing": "border-box",
1607
- "color": "#1865f2",
1608
- "cursor": "pointer",
1609
- "display": "inline-flex",
1610
- "height": 40,
1611
- "justifyContent": "center",
1612
- "margin": 0,
1613
- "marginRight": 10,
1614
- "outline": "none",
1615
- "paddingBottom": 0,
1616
- "paddingLeft": 16,
1617
- "paddingRight": 16,
1618
- "paddingTop": 0,
1619
- "position": "relative",
1620
- "textDecoration": "none",
1621
- "touchAction": "manipulation",
1622
- "userSelect": "none",
1623
- }
1624
- }
1625
- tabIndex={0}
1626
- type="button"
1627
- >
1628
- <span
1629
- className=""
1630
- style={
1631
- Object {
1632
- "MozOsxFontSmoothing": "grayscale",
1633
- "WebkitFontSmoothing": "antialiased",
1634
- "alignItems": "center",
1635
- "display": "inline-block",
1636
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
1637
- "fontSize": 16,
1638
- "fontWeight": "bold",
1639
- "lineHeight": "20px",
1640
- "overflow": "hidden",
1641
- "pointerEvents": "none",
1642
- "textOverflow": "ellipsis",
1643
- "whiteSpace": "nowrap",
1644
- }
1645
- }
1646
- >
1647
- Label
1648
- </span>
1649
- </button>
1650
- <button
1651
- aria-disabled={false}
1652
- className=""
1653
- onBlur={[Function]}
1654
- onClick={[Function]}
1655
- onDragStart={[Function]}
1656
- onFocus={[Function]}
1657
- onKeyDown={[Function]}
1658
- onKeyUp={[Function]}
1659
- onMouseDown={[Function]}
1660
- onMouseEnter={[Function]}
1661
- onMouseLeave={[Function]}
1662
- onMouseUp={[Function]}
1663
- onTouchCancel={[Function]}
1664
- onTouchEnd={[Function]}
1665
- onTouchStart={[Function]}
1666
- role="button"
1667
- style={
1668
- Object {
1669
- "::MozFocusInner": Object {
1670
- "border": 0,
1671
- },
1672
- ":focus": Object {
1673
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
1674
- },
1675
- "alignItems": "center",
1676
- "background": "none",
1677
- "border": "none",
1678
- "borderRadius": 4,
1679
- "boxSizing": "border-box",
1680
- "color": "#1865f2",
1681
- "cursor": "pointer",
1682
- "display": "inline-flex",
1683
- "height": 40,
1684
- "justifyContent": "center",
1685
- "margin": 0,
1686
- "marginRight": 10,
1687
- "outline": "none",
1688
- "paddingBottom": 0,
1689
- "paddingLeft": 0,
1690
- "paddingRight": 0,
1691
- "paddingTop": 0,
1692
- "position": "relative",
1693
- "textDecoration": "none",
1694
- "touchAction": "manipulation",
1695
- "userSelect": "none",
1696
- }
1697
- }
1698
- tabIndex={0}
1699
- type="button"
1700
- >
1701
- <span
1702
- className=""
1703
- style={
1704
- Object {
1705
- "MozOsxFontSmoothing": "grayscale",
1706
- "WebkitFontSmoothing": "antialiased",
1707
- "alignItems": "center",
1708
- "display": "inline-block",
1709
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
1710
- "fontSize": 16,
1711
- "fontWeight": "bold",
1712
- "lineHeight": "20px",
1713
- "overflow": "hidden",
1714
- "pointerEvents": "none",
1715
- "position": "relative",
1716
- "textOverflow": "ellipsis",
1717
- "whiteSpace": "nowrap",
1718
- }
1719
- }
1720
- >
1721
- Label
1722
- </span>
1723
- </button>
1724
- </div>
1725
- <div
1726
- className=""
1727
- style={
1728
- Object {
1729
- "alignItems": "stretch",
1730
- "borderStyle": "solid",
1731
- "borderWidth": 0,
1732
- "boxSizing": "border-box",
1733
- "display": "flex",
1734
- "flexDirection": "row",
1735
- "margin": 0,
1736
- "marginBottom": 8,
1737
- "minHeight": 0,
1738
- "minWidth": 0,
1739
- "padding": 0,
1740
- "position": "relative",
1741
- "zIndex": 0,
1742
- }
1743
- }
1744
- >
1745
- <button
1746
- aria-disabled={false}
1747
- className=""
1748
- onBlur={[Function]}
1749
- onClick={[Function]}
1750
- onDragStart={[Function]}
1751
- onFocus={[Function]}
1752
- onKeyDown={[Function]}
1753
- onKeyUp={[Function]}
1754
- onMouseDown={[Function]}
1755
- onMouseEnter={[Function]}
1756
- onMouseLeave={[Function]}
1757
- onMouseUp={[Function]}
1758
- onTouchCancel={[Function]}
1759
- onTouchEnd={[Function]}
1760
- onTouchStart={[Function]}
1761
- role="button"
1762
- style={
1763
- Object {
1764
- "::MozFocusInner": Object {
1765
- "border": 0,
1766
- },
1767
- ":focus": Object {
1768
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
1769
- },
1770
- "alignItems": "center",
1771
- "background": "#1865f2",
1772
- "border": "none",
1773
- "borderRadius": 4,
1774
- "boxSizing": "border-box",
1775
- "color": "#ffffff",
1776
- "cursor": "pointer",
1777
- "display": "inline-flex",
1778
- "height": 60,
1779
- "justifyContent": "center",
1780
- "margin": 0,
1781
- "marginRight": 10,
1782
- "outline": "none",
1783
- "paddingBottom": 0,
1784
- "paddingLeft": 32,
1785
- "paddingRight": 32,
1786
- "paddingTop": 0,
1787
- "position": "relative",
1788
- "textDecoration": "none",
1789
- "touchAction": "manipulation",
1790
- "userSelect": "none",
1791
- }
1792
- }
1793
- tabIndex={0}
1794
- type="button"
1795
- >
1796
- <span
1797
- className=""
1798
- style={
1799
- Object {
1800
- "MozOsxFontSmoothing": "grayscale",
1801
- "WebkitFontSmoothing": "antialiased",
1802
- "alignItems": "center",
1803
- "display": "inline-block",
1804
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
1805
- "fontSize": 18,
1806
- "fontWeight": "bold",
1807
- "lineHeight": "20px",
1808
- "overflow": "hidden",
1809
- "pointerEvents": "none",
1810
- "textOverflow": "ellipsis",
1811
- "whiteSpace": "nowrap",
1812
- }
1813
- }
1814
- >
1815
- Label
1816
- </span>
1817
- </button>
1818
- <button
1819
- aria-disabled={false}
1820
- className=""
1821
- onBlur={[Function]}
1822
- onClick={[Function]}
1823
- onDragStart={[Function]}
1824
- onFocus={[Function]}
1825
- onKeyDown={[Function]}
1826
- onKeyUp={[Function]}
1827
- onMouseDown={[Function]}
1828
- onMouseEnter={[Function]}
1829
- onMouseLeave={[Function]}
1830
- onMouseUp={[Function]}
1831
- onTouchCancel={[Function]}
1832
- onTouchEnd={[Function]}
1833
- onTouchStart={[Function]}
1834
- role="button"
1835
- style={
1836
- Object {
1837
- "::MozFocusInner": Object {
1838
- "border": 0,
1839
- },
1840
- ":focus": Object {
1841
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
1842
- },
1843
- "alignItems": "center",
1844
- "background": "none",
1845
- "border": "none",
1846
- "borderColor": "rgba(33,36,44,0.50)",
1847
- "borderRadius": 4,
1848
- "borderStyle": "solid",
1849
- "borderWidth": 1,
1850
- "boxSizing": "border-box",
1851
- "color": "#1865f2",
1852
- "cursor": "pointer",
1853
- "display": "inline-flex",
1854
- "height": 60,
1855
- "justifyContent": "center",
1856
- "margin": 0,
1857
- "marginRight": 10,
1858
- "outline": "none",
1859
- "paddingBottom": 0,
1860
- "paddingLeft": 32,
1861
- "paddingRight": 32,
1862
- "paddingTop": 0,
1863
- "position": "relative",
1864
- "textDecoration": "none",
1865
- "touchAction": "manipulation",
1866
- "userSelect": "none",
1867
- }
1868
- }
1869
- tabIndex={0}
1870
- type="button"
1871
- >
1872
- <span
1873
- className=""
1874
- style={
1875
- Object {
1876
- "MozOsxFontSmoothing": "grayscale",
1877
- "WebkitFontSmoothing": "antialiased",
1878
- "alignItems": "center",
1879
- "display": "inline-block",
1880
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
1881
- "fontSize": 18,
1882
- "fontWeight": "bold",
1883
- "lineHeight": "20px",
1884
- "overflow": "hidden",
1885
- "pointerEvents": "none",
1886
- "textOverflow": "ellipsis",
1887
- "whiteSpace": "nowrap",
1888
- }
1889
- }
1890
- >
1891
- Label
1892
- </span>
1893
- </button>
1894
- <button
1895
- aria-disabled={false}
1896
- className=""
1897
- onBlur={[Function]}
1898
- onClick={[Function]}
1899
- onDragStart={[Function]}
1900
- onFocus={[Function]}
1901
- onKeyDown={[Function]}
1902
- onKeyUp={[Function]}
1903
- onMouseDown={[Function]}
1904
- onMouseEnter={[Function]}
1905
- onMouseLeave={[Function]}
1906
- onMouseUp={[Function]}
1907
- onTouchCancel={[Function]}
1908
- onTouchEnd={[Function]}
1909
- onTouchStart={[Function]}
1910
- role="button"
1911
- style={
1912
- Object {
1913
- "::MozFocusInner": Object {
1914
- "border": 0,
1915
- },
1916
- ":focus": Object {
1917
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
1918
- },
1919
- "alignItems": "center",
1920
- "background": "none",
1921
- "border": "none",
1922
- "borderRadius": 4,
1923
- "boxSizing": "border-box",
1924
- "color": "#1865f2",
1925
- "cursor": "pointer",
1926
- "display": "inline-flex",
1927
- "height": 60,
1928
- "justifyContent": "center",
1929
- "margin": 0,
1930
- "marginRight": 10,
1931
- "outline": "none",
1932
- "paddingBottom": 0,
1933
- "paddingLeft": 0,
1934
- "paddingRight": 0,
1935
- "paddingTop": 0,
1936
- "position": "relative",
1937
- "textDecoration": "none",
1938
- "touchAction": "manipulation",
1939
- "userSelect": "none",
1940
- }
1941
- }
1942
- tabIndex={0}
1943
- type="button"
1944
- >
1945
- <span
1946
- className=""
1947
- style={
1948
- Object {
1949
- "MozOsxFontSmoothing": "grayscale",
1950
- "WebkitFontSmoothing": "antialiased",
1951
- "alignItems": "center",
1952
- "display": "inline-block",
1953
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
1954
- "fontSize": 18,
1955
- "fontWeight": "bold",
1956
- "lineHeight": "20px",
1957
- "overflow": "hidden",
1958
- "pointerEvents": "none",
1959
- "position": "relative",
1960
- "textOverflow": "ellipsis",
1961
- "whiteSpace": "nowrap",
1962
- }
1963
- }
1964
- >
1965
- Label
1966
- </span>
1967
- </button>
1968
- </div>
1969
- </div>
1970
- `;
1971
-
1972
- exports[`wonder-blocks-button example 6 1`] = `
1973
- <div
1974
- className=""
1975
- style={
1976
- Object {
1977
- "alignItems": "center",
1978
- "borderStyle": "solid",
1979
- "borderWidth": 0,
1980
- "boxSizing": "border-box",
1981
- "display": "flex",
1982
- "flexDirection": "row",
1983
- "margin": 0,
1984
- "minHeight": 0,
1985
- "minWidth": 0,
1986
- "padding": 0,
1987
- "position": "relative",
1988
- "zIndex": 0,
1989
- }
1990
- }
1991
- >
1992
- <button
1993
- aria-disabled={true}
1994
- aria-label="loading"
1995
- className=""
1996
- onBlur={[Function]}
1997
- onClick={[Function]}
1998
- onDragStart={[Function]}
1999
- onFocus={[Function]}
2000
- onKeyDown={[Function]}
2001
- onKeyUp={[Function]}
2002
- onMouseDown={[Function]}
2003
- onMouseEnter={[Function]}
2004
- onMouseLeave={[Function]}
2005
- onMouseUp={[Function]}
2006
- onTouchCancel={[Function]}
2007
- onTouchEnd={[Function]}
2008
- onTouchStart={[Function]}
2009
- role="button"
2010
- style={
2011
- Object {
2012
- "::MozFocusInner": Object {
2013
- "border": 0,
2014
- },
2015
- ":focus": Object {
2016
- "boxShadow": "0 0 0 1px #ffffff, 0 0 0 3px rgba(33,36,44,0.32)",
2017
- },
2018
- "alignItems": "center",
2019
- "background": "rgba(33,36,44,0.32)",
2020
- "border": "none",
2021
- "borderRadius": 4,
2022
- "boxSizing": "border-box",
2023
- "color": "rgba(255,255,255,0.64)",
2024
- "cursor": "default",
2025
- "display": "inline-flex",
2026
- "height": 60,
2027
- "justifyContent": "center",
2028
- "margin": 0,
2029
- "marginRight": 10,
2030
- "outline": "none",
2031
- "paddingBottom": 0,
2032
- "paddingLeft": 32,
2033
- "paddingRight": 32,
2034
- "paddingTop": 0,
2035
- "position": "relative",
2036
- "textDecoration": "none",
2037
- "touchAction": "manipulation",
2038
- "userSelect": "none",
2039
- }
2040
- }
2041
- tabIndex={0}
2042
- type="button"
2043
- >
2044
- <span
2045
- className=""
2046
- style={
2047
- Object {
2048
- "MozOsxFontSmoothing": "grayscale",
2049
- "WebkitFontSmoothing": "antialiased",
2050
- "alignItems": "center",
2051
- "display": "inline-block",
2052
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
2053
- "fontSize": 18,
2054
- "fontWeight": "bold",
2055
- "lineHeight": "20px",
2056
- "overflow": "hidden",
2057
- "pointerEvents": "none",
2058
- "textOverflow": "ellipsis",
2059
- "visibility": "hidden",
2060
- "whiteSpace": "nowrap",
2061
- }
2062
- }
2063
- >
2064
- Click me!
2065
- </span>
2066
- <div
2067
- className=""
2068
- style={
2069
- Object {
2070
- "alignItems": "stretch",
2071
- "borderStyle": "solid",
2072
- "borderWidth": 0,
2073
- "boxSizing": "border-box",
2074
- "display": "flex",
2075
- "flexDirection": "column",
2076
- "justifyContent": "center",
2077
- "margin": 0,
2078
- "minHeight": 0,
2079
- "minWidth": 0,
2080
- "padding": 0,
2081
- "position": "absolute",
2082
- "zIndex": 0,
2083
- }
2084
- }
2085
- >
2086
- <svg
2087
- height={48}
2088
- viewBox="0 0 48 48"
2089
- width={48}
2090
- xmlns="http://www.w3.org/2000/svg"
2091
- >
2092
- <path
2093
- className=""
2094
- d="M44.19 23.455a1.91 1.91 0 1 1 3.801 0h.003c.004.18.006.363.006.545 0 13.255-10.745 24-24 24S0 37.255 0 24 10.745 0 24 0c.182 0 .364.002.545.006V.01a1.91 1.91 0 1 1 0 3.801v.015A20.564 20.564 0 0 0 24 3.818C12.854 3.818 3.818 12.854 3.818 24c0 11.146 9.036 20.182 20.182 20.182 11.146 0 20.182-9.036 20.182-20.182 0-.182-.003-.364-.007-.545h.015z"
2095
- fillRule="nonzero"
2096
- style={
2097
- Object {
2098
- "animationDuration": "1.1s",
2099
- "animationIterationCount": "infinite",
2100
- "animationName": Object {
2101
- "0%": Object {
2102
- "transform": "rotate(0deg)",
2103
- },
2104
- "100%": Object {
2105
- "transform": "rotate(360deg)",
2106
- },
2107
- "50%": Object {
2108
- "transform": "rotate(180deg)",
2109
- },
2110
- },
2111
- "animationTimingFunction": "linear",
2112
- "fill": "#ffffff",
2113
- "transformOrigin": "50% 50%",
2114
- }
2115
- }
2116
- />
2117
- </svg>
2118
- </div>
2119
- </button>
2120
- <button
2121
- aria-disabled={true}
2122
- aria-label="loading"
2123
- className=""
2124
- onBlur={[Function]}
2125
- onClick={[Function]}
2126
- onDragStart={[Function]}
2127
- onFocus={[Function]}
2128
- onKeyDown={[Function]}
2129
- onKeyUp={[Function]}
2130
- onMouseDown={[Function]}
2131
- onMouseEnter={[Function]}
2132
- onMouseLeave={[Function]}
2133
- onMouseUp={[Function]}
2134
- onTouchCancel={[Function]}
2135
- onTouchEnd={[Function]}
2136
- onTouchStart={[Function]}
2137
- role="button"
2138
- style={
2139
- Object {
2140
- "::MozFocusInner": Object {
2141
- "border": 0,
2142
- },
2143
- ":focus": Object {
2144
- "boxShadow": "0 0 0 1px #ffffff, 0 0 0 3px rgba(33,36,44,0.32)",
2145
- },
2146
- "alignItems": "center",
2147
- "background": "rgba(33,36,44,0.32)",
2148
- "border": "none",
2149
- "borderRadius": 4,
2150
- "boxSizing": "border-box",
2151
- "color": "rgba(255,255,255,0.64)",
2152
- "cursor": "default",
2153
- "display": "inline-flex",
2154
- "height": 40,
2155
- "justifyContent": "center",
2156
- "margin": 0,
2157
- "marginRight": 10,
2158
- "outline": "none",
2159
- "paddingBottom": 0,
2160
- "paddingLeft": 16,
2161
- "paddingRight": 16,
2162
- "paddingTop": 0,
2163
- "position": "relative",
2164
- "textDecoration": "none",
2165
- "touchAction": "manipulation",
2166
- "userSelect": "none",
2167
- }
2168
- }
2169
- tabIndex={0}
2170
- type="button"
2171
- >
2172
- <span
2173
- className=""
2174
- style={
2175
- Object {
2176
- "MozOsxFontSmoothing": "grayscale",
2177
- "WebkitFontSmoothing": "antialiased",
2178
- "alignItems": "center",
2179
- "display": "inline-block",
2180
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
2181
- "fontSize": 16,
2182
- "fontWeight": "bold",
2183
- "lineHeight": "20px",
2184
- "overflow": "hidden",
2185
- "pointerEvents": "none",
2186
- "textOverflow": "ellipsis",
2187
- "visibility": "hidden",
2188
- "whiteSpace": "nowrap",
2189
- }
2190
- }
2191
- >
2192
- Click me!
2193
- </span>
2194
- <div
2195
- className=""
2196
- style={
2197
- Object {
2198
- "alignItems": "stretch",
2199
- "borderStyle": "solid",
2200
- "borderWidth": 0,
2201
- "boxSizing": "border-box",
2202
- "display": "flex",
2203
- "flexDirection": "column",
2204
- "justifyContent": "center",
2205
- "margin": 0,
2206
- "minHeight": 0,
2207
- "minWidth": 0,
2208
- "padding": 0,
2209
- "position": "absolute",
2210
- "zIndex": 0,
2211
- }
2212
- }
2213
- >
2214
- <svg
2215
- height={24}
2216
- viewBox="0 0 24 24"
2217
- width={24}
2218
- xmlns="http://www.w3.org/2000/svg"
2219
- >
2220
- <path
2221
- className=""
2222
- d="M10.598.943c-.093-.449-.362-.748-.732-.875a1.314 1.314 0 0 0-.723-.033C3.83 1.417 0 6.317 0 11.864 0 18.538 5.398 24 12 24c6.598 0 12-5.471 12-12.16a1.333 1.333 0 0 0-.154-.548c-.193-.368-.544-.606-1.023-.606-.472 0-.825.229-1.035.585-.117.2-.169.39-.189.582-.124 5.472-4.294 9.73-9.599 9.73-5.349 0-9.599-4.3-9.599-9.72 0-4.46 3.036-8.299 7.28-9.444.127-.036.291-.107.458-.232.373-.28.57-.711.46-1.244z"
2223
- fillRule="nonzero"
2224
- style={
2225
- Object {
2226
- "animationDuration": "1.1s",
2227
- "animationIterationCount": "infinite",
2228
- "animationName": Object {
2229
- "0%": Object {
2230
- "transform": "rotate(0deg)",
2231
- },
2232
- "100%": Object {
2233
- "transform": "rotate(360deg)",
2234
- },
2235
- "50%": Object {
2236
- "transform": "rotate(180deg)",
2237
- },
2238
- },
2239
- "animationTimingFunction": "linear",
2240
- "fill": "#ffffff",
2241
- "transformOrigin": "50% 50%",
2242
- }
2243
- }
2244
- />
2245
- </svg>
2246
- </div>
2247
- </button>
2248
- <button
2249
- aria-disabled={true}
2250
- aria-label="loading"
2251
- className=""
2252
- onBlur={[Function]}
2253
- onClick={[Function]}
2254
- onDragStart={[Function]}
2255
- onFocus={[Function]}
2256
- onKeyDown={[Function]}
2257
- onKeyUp={[Function]}
2258
- onMouseDown={[Function]}
2259
- onMouseEnter={[Function]}
2260
- onMouseLeave={[Function]}
2261
- onMouseUp={[Function]}
2262
- onTouchCancel={[Function]}
2263
- onTouchEnd={[Function]}
2264
- onTouchStart={[Function]}
2265
- role="button"
2266
- style={
2267
- Object {
2268
- "::MozFocusInner": Object {
2269
- "border": 0,
2270
- },
2271
- ":focus": Object {
2272
- "boxShadow": "0 0 0 1px #ffffff, 0 0 0 3px rgba(33,36,44,0.32)",
2273
- },
2274
- "alignItems": "center",
2275
- "background": "rgba(33,36,44,0.32)",
2276
- "border": "none",
2277
- "borderRadius": 4,
2278
- "boxSizing": "border-box",
2279
- "color": "rgba(255,255,255,0.64)",
2280
- "cursor": "default",
2281
- "display": "inline-flex",
2282
- "height": 32,
2283
- "justifyContent": "center",
2284
- "margin": 0,
2285
- "marginRight": 10,
2286
- "outline": "none",
2287
- "paddingBottom": 0,
2288
- "paddingLeft": 16,
2289
- "paddingRight": 16,
2290
- "paddingTop": 0,
2291
- "position": "relative",
2292
- "textDecoration": "none",
2293
- "touchAction": "manipulation",
2294
- "userSelect": "none",
2295
- }
2296
- }
2297
- tabIndex={0}
2298
- type="button"
2299
- >
2300
- <span
2301
- className=""
2302
- style={
2303
- Object {
2304
- "MozOsxFontSmoothing": "grayscale",
2305
- "WebkitFontSmoothing": "antialiased",
2306
- "alignItems": "center",
2307
- "display": "inline-block",
2308
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
2309
- "fontSize": 14,
2310
- "fontWeight": "bold",
2311
- "lineHeight": "18px",
2312
- "overflow": "hidden",
2313
- "pointerEvents": "none",
2314
- "textOverflow": "ellipsis",
2315
- "visibility": "hidden",
2316
- "whiteSpace": "nowrap",
2317
- }
2318
- }
2319
- >
2320
- Click me!
2321
- </span>
2322
- <div
2323
- className=""
2324
- style={
2325
- Object {
2326
- "alignItems": "stretch",
2327
- "borderStyle": "solid",
2328
- "borderWidth": 0,
2329
- "boxSizing": "border-box",
2330
- "display": "flex",
2331
- "flexDirection": "column",
2332
- "justifyContent": "center",
2333
- "margin": 0,
2334
- "minHeight": 0,
2335
- "minWidth": 0,
2336
- "padding": 0,
2337
- "position": "absolute",
2338
- "zIndex": 0,
2339
- }
2340
- }
2341
- >
2342
- <svg
2343
- height={16}
2344
- viewBox="0 0 16 16"
2345
- width={16}
2346
- xmlns="http://www.w3.org/2000/svg"
2347
- >
2348
- <path
2349
- className=""
2350
- d="M7.237.741C7.165.393 6.95.154 6.656.053A1.01 1.01 0 0 0 6.18.01c-.053.009-.053.009-.087.017C2.553.949 0 4.214 0 7.91 0 12.36 3.598 16 8 16c4.4 0 8-3.647 8-8.112a1.02 1.02 0 0 0-.118-.423.877.877 0 0 0-.808-.48.909.909 0 0 0-.81.46c-.09.151-.13.296-.146.455-.08 3.493-2.737 6.207-6.118 6.207-3.41 0-6.118-2.74-6.118-6.196 0-2.843 1.936-5.291 4.644-6.022.1-.028.224-.082.352-.177a.928.928 0 0 0 .36-.97z"
2351
- fillRule="nonzero"
2352
- style={
2353
- Object {
2354
- "animationDuration": "1.1s",
2355
- "animationIterationCount": "infinite",
2356
- "animationName": Object {
2357
- "0%": Object {
2358
- "transform": "rotate(0deg)",
2359
- },
2360
- "100%": Object {
2361
- "transform": "rotate(360deg)",
2362
- },
2363
- "50%": Object {
2364
- "transform": "rotate(180deg)",
2365
- },
2366
- },
2367
- "animationTimingFunction": "linear",
2368
- "fill": "#ffffff",
2369
- "transformOrigin": "50% 50%",
2370
- }
2371
- }
2372
- />
2373
- </svg>
2374
- </div>
2375
- </button>
2376
- </div>
2377
- `;
2378
-
2379
- exports[`wonder-blocks-button example 7 1`] = `
2380
- <div
2381
- className=""
2382
- style={
2383
- Object {
2384
- "alignItems": "stretch",
2385
- "borderStyle": "solid",
2386
- "borderWidth": 0,
2387
- "boxSizing": "border-box",
2388
- "display": "flex",
2389
- "flexDirection": "row",
2390
- "margin": 0,
2391
- "minHeight": 0,
2392
- "minWidth": 0,
2393
- "padding": 0,
2394
- "position": "relative",
2395
- "zIndex": 0,
2396
- }
2397
- }
2398
- >
2399
- <a
2400
- className=""
2401
- href="#button-1"
2402
- onBlur={[Function]}
2403
- onClick={[Function]}
2404
- onDragStart={[Function]}
2405
- onFocus={[Function]}
2406
- onKeyDown={[Function]}
2407
- onKeyUp={[Function]}
2408
- onMouseDown={[Function]}
2409
- onMouseEnter={[Function]}
2410
- onMouseLeave={[Function]}
2411
- onMouseUp={[Function]}
2412
- onTouchCancel={[Function]}
2413
- onTouchEnd={[Function]}
2414
- onTouchStart={[Function]}
2415
- role="button"
2416
- style={
2417
- Object {
2418
- ":focus": Object {
2419
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
2420
- },
2421
- "alignItems": "center",
2422
- "background": "#1865f2",
2423
- "border": "none",
2424
- "borderRadius": 4,
2425
- "boxSizing": "border-box",
2426
- "color": "#ffffff",
2427
- "cursor": "pointer",
2428
- "display": "inline-flex",
2429
- "height": 40,
2430
- "justifyContent": "center",
2431
- "marginRight": 10,
2432
- "outline": "none",
2433
- "paddingBottom": 0,
2434
- "paddingLeft": 16,
2435
- "paddingRight": 16,
2436
- "paddingTop": 0,
2437
- "position": "relative",
2438
- "textDecoration": "none",
2439
- "touchAction": "manipulation",
2440
- "userSelect": "none",
2441
- }
2442
- }
2443
- tabIndex={0}
2444
- >
2445
- <span
2446
- className=""
2447
- style={
2448
- Object {
2449
- "MozOsxFontSmoothing": "grayscale",
2450
- "WebkitFontSmoothing": "antialiased",
2451
- "alignItems": "center",
2452
- "display": "inline-block",
2453
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
2454
- "fontSize": 16,
2455
- "fontWeight": "bold",
2456
- "lineHeight": "20px",
2457
- "overflow": "hidden",
2458
- "pointerEvents": "none",
2459
- "textOverflow": "ellipsis",
2460
- "whiteSpace": "nowrap",
2461
- }
2462
- }
2463
- >
2464
- href
2465
- </span>
2466
- </a>
2467
- <button
2468
- aria-disabled={false}
2469
- className=""
2470
- onBlur={[Function]}
2471
- onClick={[Function]}
2472
- onDragStart={[Function]}
2473
- onFocus={[Function]}
2474
- onKeyDown={[Function]}
2475
- onKeyUp={[Function]}
2476
- onMouseDown={[Function]}
2477
- onMouseEnter={[Function]}
2478
- onMouseLeave={[Function]}
2479
- onMouseUp={[Function]}
2480
- onTouchCancel={[Function]}
2481
- onTouchEnd={[Function]}
2482
- onTouchStart={[Function]}
2483
- role="button"
2484
- style={
2485
- Object {
2486
- "::MozFocusInner": Object {
2487
- "border": 0,
2488
- },
2489
- ":focus": Object {
2490
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
2491
- },
2492
- "alignItems": "center",
2493
- "background": "none",
2494
- "border": "none",
2495
- "borderColor": "rgba(33,36,44,0.50)",
2496
- "borderRadius": 4,
2497
- "borderStyle": "solid",
2498
- "borderWidth": 1,
2499
- "boxSizing": "border-box",
2500
- "color": "#1865f2",
2501
- "cursor": "pointer",
2502
- "display": "inline-flex",
2503
- "height": 40,
2504
- "justifyContent": "center",
2505
- "margin": 0,
2506
- "marginRight": 10,
2507
- "outline": "none",
2508
- "paddingBottom": 0,
2509
- "paddingLeft": 16,
2510
- "paddingRight": 16,
2511
- "paddingTop": 0,
2512
- "position": "relative",
2513
- "textDecoration": "none",
2514
- "touchAction": "manipulation",
2515
- "userSelect": "none",
2516
- }
2517
- }
2518
- tabIndex={0}
2519
- type="button"
2520
- >
2521
- <span
2522
- className=""
2523
- style={
2524
- Object {
2525
- "MozOsxFontSmoothing": "grayscale",
2526
- "WebkitFontSmoothing": "antialiased",
2527
- "alignItems": "center",
2528
- "display": "inline-block",
2529
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
2530
- "fontSize": 16,
2531
- "fontWeight": "bold",
2532
- "lineHeight": "20px",
2533
- "overflow": "hidden",
2534
- "pointerEvents": "none",
2535
- "textOverflow": "ellipsis",
2536
- "whiteSpace": "nowrap",
2537
- }
2538
- }
2539
- >
2540
- onClick
2541
- </span>
2542
- </button>
2543
- <a
2544
- className=""
2545
- href="#button-1"
2546
- onBlur={[Function]}
2547
- onClick={[Function]}
2548
- onDragStart={[Function]}
2549
- onFocus={[Function]}
2550
- onKeyDown={[Function]}
2551
- onKeyUp={[Function]}
2552
- onMouseDown={[Function]}
2553
- onMouseEnter={[Function]}
2554
- onMouseLeave={[Function]}
2555
- onMouseUp={[Function]}
2556
- onTouchCancel={[Function]}
2557
- onTouchEnd={[Function]}
2558
- onTouchStart={[Function]}
2559
- role="button"
2560
- style={
2561
- Object {
2562
- ":focus": Object {
2563
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
2564
- },
2565
- "alignItems": "center",
2566
- "background": "none",
2567
- "border": "none",
2568
- "borderRadius": 4,
2569
- "boxSizing": "border-box",
2570
- "color": "#1865f2",
2571
- "cursor": "pointer",
2572
- "display": "inline-flex",
2573
- "height": 40,
2574
- "justifyContent": "center",
2575
- "marginRight": 10,
2576
- "outline": "none",
2577
- "paddingBottom": 0,
2578
- "paddingLeft": 0,
2579
- "paddingRight": 0,
2580
- "paddingTop": 0,
2581
- "position": "relative",
2582
- "textDecoration": "none",
2583
- "touchAction": "manipulation",
2584
- "userSelect": "none",
2585
- }
2586
- }
2587
- tabIndex={0}
2588
- >
2589
- <span
2590
- className=""
2591
- style={
2592
- Object {
2593
- "MozOsxFontSmoothing": "grayscale",
2594
- "WebkitFontSmoothing": "antialiased",
2595
- "alignItems": "center",
2596
- "display": "inline-block",
2597
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
2598
- "fontSize": 16,
2599
- "fontWeight": "bold",
2600
- "lineHeight": "20px",
2601
- "overflow": "hidden",
2602
- "pointerEvents": "none",
2603
- "position": "relative",
2604
- "textOverflow": "ellipsis",
2605
- "whiteSpace": "nowrap",
2606
- }
2607
- }
2608
- >
2609
- both
2610
- </span>
2611
- </a>
2612
- </div>
2613
- `;
2614
-
2615
- exports[`wonder-blocks-button example 8 1`] = `
2616
- <div
2617
- className=""
2618
- style={
2619
- Object {
2620
- "alignItems": "center",
2621
- "borderStyle": "solid",
2622
- "borderWidth": 0,
2623
- "boxSizing": "border-box",
2624
- "display": "flex",
2625
- "flexDirection": "row",
2626
- "margin": 0,
2627
- "minHeight": 0,
2628
- "minWidth": 0,
2629
- "padding": 0,
2630
- "position": "relative",
2631
- "zIndex": 0,
2632
- }
2633
- }
2634
- >
2635
- <a
2636
- className=""
2637
- href="/foo"
2638
- onBlur={[Function]}
2639
- onClick={[Function]}
2640
- onDragStart={[Function]}
2641
- onFocus={[Function]}
2642
- onKeyDown={[Function]}
2643
- onKeyUp={[Function]}
2644
- onMouseDown={[Function]}
2645
- onMouseEnter={[Function]}
2646
- onMouseLeave={[Function]}
2647
- onMouseUp={[Function]}
2648
- onTouchCancel={[Function]}
2649
- onTouchEnd={[Function]}
2650
- onTouchStart={[Function]}
2651
- role="button"
2652
- style={
2653
- Object {
2654
- ":focus": Object {
2655
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
2656
- },
2657
- "alignItems": "center",
2658
- "background": "#1865f2",
2659
- "border": "none",
2660
- "borderRadius": 4,
2661
- "boxSizing": "border-box",
2662
- "color": "#ffffff",
2663
- "cursor": "pointer",
2664
- "display": "inline-flex",
2665
- "height": 40,
2666
- "justifyContent": "center",
2667
- "marginRight": 10,
2668
- "outline": "none",
2669
- "paddingBottom": 0,
2670
- "paddingLeft": 16,
2671
- "paddingRight": 16,
2672
- "paddingTop": 0,
2673
- "position": "relative",
2674
- "textDecoration": "none",
2675
- "touchAction": "manipulation",
2676
- "userSelect": "none",
2677
- }
2678
- }
2679
- tabIndex={0}
2680
- >
2681
- <span
2682
- className=""
2683
- style={
2684
- Object {
2685
- "MozOsxFontSmoothing": "grayscale",
2686
- "WebkitFontSmoothing": "antialiased",
2687
- "alignItems": "center",
2688
- "display": "inline-block",
2689
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
2690
- "fontSize": 16,
2691
- "fontWeight": "bold",
2692
- "lineHeight": "20px",
2693
- "overflow": "hidden",
2694
- "pointerEvents": "none",
2695
- "textOverflow": "ellipsis",
2696
- "whiteSpace": "nowrap",
2697
- }
2698
- }
2699
- >
2700
- Uses Client-side Nav
2701
- </span>
2702
- </a>
2703
- <a
2704
- className=""
2705
- href="/foo"
2706
- onBlur={[Function]}
2707
- onClick={[Function]}
2708
- onDragStart={[Function]}
2709
- onFocus={[Function]}
2710
- onKeyDown={[Function]}
2711
- onKeyUp={[Function]}
2712
- onMouseDown={[Function]}
2713
- onMouseEnter={[Function]}
2714
- onMouseLeave={[Function]}
2715
- onMouseUp={[Function]}
2716
- onTouchCancel={[Function]}
2717
- onTouchEnd={[Function]}
2718
- onTouchStart={[Function]}
2719
- role="button"
2720
- style={
2721
- Object {
2722
- ":focus": Object {
2723
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
2724
- },
2725
- "alignItems": "center",
2726
- "background": "#1865f2",
2727
- "border": "none",
2728
- "borderRadius": 4,
2729
- "boxSizing": "border-box",
2730
- "color": "#ffffff",
2731
- "cursor": "pointer",
2732
- "display": "inline-flex",
2733
- "height": 40,
2734
- "justifyContent": "center",
2735
- "marginRight": 10,
2736
- "outline": "none",
2737
- "paddingBottom": 0,
2738
- "paddingLeft": 16,
2739
- "paddingRight": 16,
2740
- "paddingTop": 0,
2741
- "position": "relative",
2742
- "textDecoration": "none",
2743
- "touchAction": "manipulation",
2744
- "userSelect": "none",
2745
- }
2746
- }
2747
- tabIndex={0}
2748
- >
2749
- <span
2750
- className=""
2751
- style={
2752
- Object {
2753
- "MozOsxFontSmoothing": "grayscale",
2754
- "WebkitFontSmoothing": "antialiased",
2755
- "alignItems": "center",
2756
- "display": "inline-block",
2757
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
2758
- "fontSize": 16,
2759
- "fontWeight": "bold",
2760
- "lineHeight": "20px",
2761
- "overflow": "hidden",
2762
- "pointerEvents": "none",
2763
- "textOverflow": "ellipsis",
2764
- "whiteSpace": "nowrap",
2765
- }
2766
- }
2767
- >
2768
- Avoids Client-side Nav
2769
- </span>
2770
- </a>
2771
- </div>
2772
- `;
2773
-
2774
- exports[`wonder-blocks-button example 9 1`] = `
2775
- <div
2776
- className=""
2777
- style={
2778
- Object {
2779
- "alignItems": "center",
2780
- "borderStyle": "solid",
2781
- "borderWidth": 0,
2782
- "boxSizing": "border-box",
2783
- "display": "flex",
2784
- "flexDirection": "row",
2785
- "margin": 0,
2786
- "minHeight": 0,
2787
- "minWidth": 0,
2788
- "padding": 0,
2789
- "position": "relative",
2790
- "zIndex": 0,
2791
- }
2792
- }
2793
- >
2794
- <a
2795
- className=""
2796
- href="/foo"
2797
- onBlur={[Function]}
2798
- onClick={[Function]}
2799
- onDragStart={[Function]}
2800
- onFocus={[Function]}
2801
- onKeyDown={[Function]}
2802
- onKeyUp={[Function]}
2803
- onMouseDown={[Function]}
2804
- onMouseEnter={[Function]}
2805
- onMouseLeave={[Function]}
2806
- onMouseUp={[Function]}
2807
- onTouchCancel={[Function]}
2808
- onTouchEnd={[Function]}
2809
- onTouchStart={[Function]}
2810
- role="button"
2811
- style={
2812
- Object {
2813
- ":focus": Object {
2814
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
2815
- },
2816
- "alignItems": "center",
2817
- "background": "#1865f2",
2818
- "border": "none",
2819
- "borderRadius": 4,
2820
- "boxSizing": "border-box",
2821
- "color": "#ffffff",
2822
- "cursor": "pointer",
2823
- "display": "inline-flex",
2824
- "height": 40,
2825
- "justifyContent": "center",
2826
- "marginRight": 10,
2827
- "outline": "none",
2828
- "paddingBottom": 0,
2829
- "paddingLeft": 16,
2830
- "paddingRight": 16,
2831
- "paddingTop": 0,
2832
- "position": "relative",
2833
- "textDecoration": "none",
2834
- "touchAction": "manipulation",
2835
- "userSelect": "none",
2836
- }
2837
- }
2838
- tabIndex={0}
2839
- >
2840
- <span
2841
- className=""
2842
- style={
2843
- Object {
2844
- "MozOsxFontSmoothing": "grayscale",
2845
- "WebkitFontSmoothing": "antialiased",
2846
- "alignItems": "center",
2847
- "display": "inline-block",
2848
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
2849
- "fontSize": 16,
2850
- "fontWeight": "bold",
2851
- "lineHeight": "20px",
2852
- "overflow": "hidden",
2853
- "pointerEvents": "none",
2854
- "textOverflow": "ellipsis",
2855
- "whiteSpace": "nowrap",
2856
- }
2857
- }
2858
- >
2859
- beforeNav, client-side nav
2860
- </span>
2861
- </a>
2862
- <a
2863
- className=""
2864
- href="/foo"
2865
- onBlur={[Function]}
2866
- onClick={[Function]}
2867
- onDragStart={[Function]}
2868
- onFocus={[Function]}
2869
- onKeyDown={[Function]}
2870
- onKeyUp={[Function]}
2871
- onMouseDown={[Function]}
2872
- onMouseEnter={[Function]}
2873
- onMouseLeave={[Function]}
2874
- onMouseUp={[Function]}
2875
- onTouchCancel={[Function]}
2876
- onTouchEnd={[Function]}
2877
- onTouchStart={[Function]}
2878
- role="button"
2879
- style={
2880
- Object {
2881
- ":focus": Object {
2882
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
2883
- },
2884
- "alignItems": "center",
2885
- "background": "#1865f2",
2886
- "border": "none",
2887
- "borderRadius": 4,
2888
- "boxSizing": "border-box",
2889
- "color": "#ffffff",
2890
- "cursor": "pointer",
2891
- "display": "inline-flex",
2892
- "height": 40,
2893
- "justifyContent": "center",
2894
- "marginRight": 10,
2895
- "outline": "none",
2896
- "paddingBottom": 0,
2897
- "paddingLeft": 16,
2898
- "paddingRight": 16,
2899
- "paddingTop": 0,
2900
- "position": "relative",
2901
- "textDecoration": "none",
2902
- "touchAction": "manipulation",
2903
- "userSelect": "none",
2904
- }
2905
- }
2906
- tabIndex={0}
2907
- >
2908
- <span
2909
- className=""
2910
- style={
2911
- Object {
2912
- "MozOsxFontSmoothing": "grayscale",
2913
- "WebkitFontSmoothing": "antialiased",
2914
- "alignItems": "center",
2915
- "display": "inline-block",
2916
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
2917
- "fontSize": 16,
2918
- "fontWeight": "bold",
2919
- "lineHeight": "20px",
2920
- "overflow": "hidden",
2921
- "pointerEvents": "none",
2922
- "textOverflow": "ellipsis",
2923
- "whiteSpace": "nowrap",
2924
- }
2925
- }
2926
- >
2927
- beforeNav, server-side nav
2928
- </span>
2929
- </a>
2930
- <a
2931
- className=""
2932
- href="https://google.com"
2933
- onBlur={[Function]}
2934
- onClick={[Function]}
2935
- onDragStart={[Function]}
2936
- onFocus={[Function]}
2937
- onKeyDown={[Function]}
2938
- onKeyUp={[Function]}
2939
- onMouseDown={[Function]}
2940
- onMouseEnter={[Function]}
2941
- onMouseLeave={[Function]}
2942
- onMouseUp={[Function]}
2943
- onTouchCancel={[Function]}
2944
- onTouchEnd={[Function]}
2945
- onTouchStart={[Function]}
2946
- role="button"
2947
- style={
2948
- Object {
2949
- ":focus": Object {
2950
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
2951
- },
2952
- "alignItems": "center",
2953
- "background": "#1865f2",
2954
- "border": "none",
2955
- "borderRadius": 4,
2956
- "boxSizing": "border-box",
2957
- "color": "#ffffff",
2958
- "cursor": "pointer",
2959
- "display": "inline-flex",
2960
- "height": 40,
2961
- "justifyContent": "center",
2962
- "marginRight": 10,
2963
- "outline": "none",
2964
- "paddingBottom": 0,
2965
- "paddingLeft": 16,
2966
- "paddingRight": 16,
2967
- "paddingTop": 0,
2968
- "position": "relative",
2969
- "textDecoration": "none",
2970
- "touchAction": "manipulation",
2971
- "userSelect": "none",
2972
- }
2973
- }
2974
- tabIndex={0}
2975
- target="_blank"
2976
- >
2977
- <span
2978
- className=""
2979
- style={
2980
- Object {
2981
- "MozOsxFontSmoothing": "grayscale",
2982
- "WebkitFontSmoothing": "antialiased",
2983
- "alignItems": "center",
2984
- "display": "inline-block",
2985
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
2986
- "fontSize": 16,
2987
- "fontWeight": "bold",
2988
- "lineHeight": "20px",
2989
- "overflow": "hidden",
2990
- "pointerEvents": "none",
2991
- "textOverflow": "ellipsis",
2992
- "whiteSpace": "nowrap",
2993
- }
2994
- }
2995
- >
2996
- beforeNav, open URL in new tab
2997
- </span>
2998
- </a>
2999
- </div>
3000
- `;
3001
-
3002
- exports[`wonder-blocks-button example 10 1`] = `
3003
- <div
3004
- className=""
3005
- style={
3006
- Object {
3007
- "alignItems": "center",
3008
- "borderStyle": "solid",
3009
- "borderWidth": 0,
3010
- "boxSizing": "border-box",
3011
- "display": "flex",
3012
- "flexDirection": "row",
3013
- "margin": 0,
3014
- "minHeight": 0,
3015
- "minWidth": 0,
3016
- "padding": 0,
3017
- "position": "relative",
3018
- "zIndex": 0,
3019
- }
3020
- }
3021
- >
3022
- <a
3023
- className=""
3024
- href="/foo"
3025
- onBlur={[Function]}
3026
- onClick={[Function]}
3027
- onDragStart={[Function]}
3028
- onFocus={[Function]}
3029
- onKeyDown={[Function]}
3030
- onKeyUp={[Function]}
3031
- onMouseDown={[Function]}
3032
- onMouseEnter={[Function]}
3033
- onMouseLeave={[Function]}
3034
- onMouseUp={[Function]}
3035
- onTouchCancel={[Function]}
3036
- onTouchEnd={[Function]}
3037
- onTouchStart={[Function]}
3038
- role="button"
3039
- style={
3040
- Object {
3041
- ":focus": Object {
3042
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
3043
- },
3044
- "alignItems": "center",
3045
- "background": "#1865f2",
3046
- "border": "none",
3047
- "borderRadius": 4,
3048
- "boxSizing": "border-box",
3049
- "color": "#ffffff",
3050
- "cursor": "pointer",
3051
- "display": "inline-flex",
3052
- "height": 40,
3053
- "justifyContent": "center",
3054
- "marginRight": 10,
3055
- "outline": "none",
3056
- "paddingBottom": 0,
3057
- "paddingLeft": 16,
3058
- "paddingRight": 16,
3059
- "paddingTop": 0,
3060
- "position": "relative",
3061
- "textDecoration": "none",
3062
- "touchAction": "manipulation",
3063
- "userSelect": "none",
3064
- }
3065
- }
3066
- tabIndex={0}
3067
- >
3068
- <span
3069
- className=""
3070
- style={
3071
- Object {
3072
- "MozOsxFontSmoothing": "grayscale",
3073
- "WebkitFontSmoothing": "antialiased",
3074
- "alignItems": "center",
3075
- "display": "inline-block",
3076
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
3077
- "fontSize": 16,
3078
- "fontWeight": "bold",
3079
- "lineHeight": "20px",
3080
- "overflow": "hidden",
3081
- "pointerEvents": "none",
3082
- "textOverflow": "ellipsis",
3083
- "whiteSpace": "nowrap",
3084
- }
3085
- }
3086
- >
3087
- safeWithNav, client-side nav
3088
- </span>
3089
- </a>
3090
- <a
3091
- className=""
3092
- href="/foo"
3093
- onBlur={[Function]}
3094
- onClick={[Function]}
3095
- onDragStart={[Function]}
3096
- onFocus={[Function]}
3097
- onKeyDown={[Function]}
3098
- onKeyUp={[Function]}
3099
- onMouseDown={[Function]}
3100
- onMouseEnter={[Function]}
3101
- onMouseLeave={[Function]}
3102
- onMouseUp={[Function]}
3103
- onTouchCancel={[Function]}
3104
- onTouchEnd={[Function]}
3105
- onTouchStart={[Function]}
3106
- role="button"
3107
- style={
3108
- Object {
3109
- ":focus": Object {
3110
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
3111
- },
3112
- "alignItems": "center",
3113
- "background": "#1865f2",
3114
- "border": "none",
3115
- "borderRadius": 4,
3116
- "boxSizing": "border-box",
3117
- "color": "#ffffff",
3118
- "cursor": "pointer",
3119
- "display": "inline-flex",
3120
- "height": 40,
3121
- "justifyContent": "center",
3122
- "marginRight": 10,
3123
- "outline": "none",
3124
- "paddingBottom": 0,
3125
- "paddingLeft": 16,
3126
- "paddingRight": 16,
3127
- "paddingTop": 0,
3128
- "position": "relative",
3129
- "textDecoration": "none",
3130
- "touchAction": "manipulation",
3131
- "userSelect": "none",
3132
- }
3133
- }
3134
- tabIndex={0}
3135
- >
3136
- <span
3137
- className=""
3138
- style={
3139
- Object {
3140
- "MozOsxFontSmoothing": "grayscale",
3141
- "WebkitFontSmoothing": "antialiased",
3142
- "alignItems": "center",
3143
- "display": "inline-block",
3144
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
3145
- "fontSize": 16,
3146
- "fontWeight": "bold",
3147
- "lineHeight": "20px",
3148
- "overflow": "hidden",
3149
- "pointerEvents": "none",
3150
- "textOverflow": "ellipsis",
3151
- "whiteSpace": "nowrap",
3152
- }
3153
- }
3154
- >
3155
- safeWithNav, server-side nav
3156
- </span>
3157
- </a>
3158
- <a
3159
- className=""
3160
- href="https://google.com"
3161
- onBlur={[Function]}
3162
- onClick={[Function]}
3163
- onDragStart={[Function]}
3164
- onFocus={[Function]}
3165
- onKeyDown={[Function]}
3166
- onKeyUp={[Function]}
3167
- onMouseDown={[Function]}
3168
- onMouseEnter={[Function]}
3169
- onMouseLeave={[Function]}
3170
- onMouseUp={[Function]}
3171
- onTouchCancel={[Function]}
3172
- onTouchEnd={[Function]}
3173
- onTouchStart={[Function]}
3174
- rel="noopener noreferrer"
3175
- role="button"
3176
- style={
3177
- Object {
3178
- ":focus": Object {
3179
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
3180
- },
3181
- "alignItems": "center",
3182
- "background": "#1865f2",
3183
- "border": "none",
3184
- "borderRadius": 4,
3185
- "boxSizing": "border-box",
3186
- "color": "#ffffff",
3187
- "cursor": "pointer",
3188
- "display": "inline-flex",
3189
- "height": 40,
3190
- "justifyContent": "center",
3191
- "marginRight": 10,
3192
- "outline": "none",
3193
- "paddingBottom": 0,
3194
- "paddingLeft": 16,
3195
- "paddingRight": 16,
3196
- "paddingTop": 0,
3197
- "position": "relative",
3198
- "textDecoration": "none",
3199
- "touchAction": "manipulation",
3200
- "userSelect": "none",
3201
- }
3202
- }
3203
- tabIndex={0}
3204
- target="_blank"
3205
- >
3206
- <span
3207
- className=""
3208
- style={
3209
- Object {
3210
- "MozOsxFontSmoothing": "grayscale",
3211
- "WebkitFontSmoothing": "antialiased",
3212
- "alignItems": "center",
3213
- "display": "inline-block",
3214
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
3215
- "fontSize": 16,
3216
- "fontWeight": "bold",
3217
- "lineHeight": "20px",
3218
- "overflow": "hidden",
3219
- "pointerEvents": "none",
3220
- "textOverflow": "ellipsis",
3221
- "whiteSpace": "nowrap",
3222
- }
3223
- }
3224
- >
3225
- safeWithNav, open URL in new tab
3226
- </span>
3227
- </a>
3228
- </div>
3229
- `;
3230
-
3231
- exports[`wonder-blocks-button example 11 1`] = `
3232
- <div
3233
- className=""
3234
- style={
3235
- Object {
3236
- "alignItems": "center",
3237
- "borderStyle": "solid",
3238
- "borderWidth": 0,
3239
- "boxSizing": "border-box",
3240
- "display": "flex",
3241
- "flexDirection": "row",
3242
- "margin": 0,
3243
- "minHeight": 0,
3244
- "minWidth": 0,
3245
- "padding": 0,
3246
- "position": "relative",
3247
- "zIndex": 0,
3248
- }
3249
- }
3250
- >
3251
- <a
3252
- className=""
3253
- href="/foo"
3254
- onBlur={[Function]}
3255
- onClick={[Function]}
3256
- onDragStart={[Function]}
3257
- onFocus={[Function]}
3258
- onKeyDown={[Function]}
3259
- onKeyUp={[Function]}
3260
- onMouseDown={[Function]}
3261
- onMouseEnter={[Function]}
3262
- onMouseLeave={[Function]}
3263
- onMouseUp={[Function]}
3264
- onTouchCancel={[Function]}
3265
- onTouchEnd={[Function]}
3266
- onTouchStart={[Function]}
3267
- role="button"
3268
- style={
3269
- Object {
3270
- ":focus": Object {
3271
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
3272
- },
3273
- "alignItems": "center",
3274
- "background": "#1865f2",
3275
- "border": "none",
3276
- "borderRadius": 4,
3277
- "boxSizing": "border-box",
3278
- "color": "#ffffff",
3279
- "cursor": "pointer",
3280
- "display": "inline-flex",
3281
- "height": 40,
3282
- "justifyContent": "center",
3283
- "marginRight": 10,
3284
- "outline": "none",
3285
- "paddingBottom": 0,
3286
- "paddingLeft": 16,
3287
- "paddingRight": 16,
3288
- "paddingTop": 0,
3289
- "position": "relative",
3290
- "textDecoration": "none",
3291
- "touchAction": "manipulation",
3292
- "userSelect": "none",
3293
- }
3294
- }
3295
- tabIndex={0}
3296
- >
3297
- <span
3298
- className=""
3299
- style={
3300
- Object {
3301
- "MozOsxFontSmoothing": "grayscale",
3302
- "WebkitFontSmoothing": "antialiased",
3303
- "alignItems": "center",
3304
- "display": "inline-block",
3305
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
3306
- "fontSize": 16,
3307
- "fontWeight": "bold",
3308
- "lineHeight": "20px",
3309
- "overflow": "hidden",
3310
- "pointerEvents": "none",
3311
- "textOverflow": "ellipsis",
3312
- "whiteSpace": "nowrap",
3313
- }
3314
- }
3315
- >
3316
- This button prevents navigation.
3317
- </span>
3318
- </a>
3319
- </div>
3320
- `;
3321
-
3322
- exports[`wonder-blocks-button example 12 1`] = `
3323
- <div
3324
- className=""
3325
- style={
3326
- Object {
3327
- "alignItems": "stretch",
3328
- "borderStyle": "solid",
3329
- "borderWidth": 0,
3330
- "boxSizing": "border-box",
3331
- "display": "flex",
3332
- "flexDirection": "column",
3333
- "margin": 0,
3334
- "minHeight": 0,
3335
- "minWidth": 0,
3336
- "padding": 0,
3337
- "position": "relative",
3338
- "zIndex": 0,
3339
- }
3340
- }
3341
- >
3342
- <div
3343
- className=""
3344
- style={
3345
- Object {
3346
- "alignItems": "stretch",
3347
- "borderStyle": "solid",
3348
- "borderWidth": 0,
3349
- "boxSizing": "border-box",
3350
- "display": "flex",
3351
- "flexDirection": "row",
3352
- "margin": 0,
3353
- "marginBottom": 10,
3354
- "minHeight": 0,
3355
- "minWidth": 0,
3356
- "padding": 0,
3357
- "position": "relative",
3358
- "zIndex": 0,
3359
- }
3360
- }
3361
- >
3362
- <button
3363
- aria-disabled={false}
3364
- className=""
3365
- onBlur={[Function]}
3366
- onClick={[Function]}
3367
- onDragStart={[Function]}
3368
- onFocus={[Function]}
3369
- onKeyDown={[Function]}
3370
- onKeyUp={[Function]}
3371
- onMouseDown={[Function]}
3372
- onMouseEnter={[Function]}
3373
- onMouseLeave={[Function]}
3374
- onMouseUp={[Function]}
3375
- onTouchCancel={[Function]}
3376
- onTouchEnd={[Function]}
3377
- onTouchStart={[Function]}
3378
- role="button"
3379
- style={
3380
- Object {
3381
- "::MozFocusInner": Object {
3382
- "border": 0,
3383
- },
3384
- ":focus": Object {
3385
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
3386
- },
3387
- "alignItems": "center",
3388
- "background": "#1865f2",
3389
- "border": "none",
3390
- "borderRadius": 4,
3391
- "boxSizing": "border-box",
3392
- "color": "#ffffff",
3393
- "cursor": "pointer",
3394
- "display": "inline-flex",
3395
- "height": 40,
3396
- "justifyContent": "center",
3397
- "margin": 0,
3398
- "marginRight": 10,
3399
- "outline": "none",
3400
- "paddingBottom": 0,
3401
- "paddingLeft": 16,
3402
- "paddingRight": 16,
3403
- "paddingTop": 0,
3404
- "position": "relative",
3405
- "textDecoration": "none",
3406
- "touchAction": "manipulation",
3407
- "userSelect": "none",
3408
- }
3409
- }
3410
- tabIndex={0}
3411
- type="button"
3412
- >
3413
- <span
3414
- className=""
3415
- style={
3416
- Object {
3417
- "MozOsxFontSmoothing": "grayscale",
3418
- "WebkitFontSmoothing": "antialiased",
3419
- "alignItems": "center",
3420
- "display": "flex",
3421
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
3422
- "fontSize": 16,
3423
- "fontWeight": "bold",
3424
- "lineHeight": "20px",
3425
- "overflow": "hidden",
3426
- "pointerEvents": "none",
3427
- "textOverflow": "ellipsis",
3428
- "whiteSpace": "nowrap",
3429
- }
3430
- }
3431
- >
3432
- <svg
3433
- className=""
3434
- height={24}
3435
- style={
3436
- Object {
3437
- "display": "inline-block",
3438
- "flexGrow": 0,
3439
- "flexShrink": 0,
3440
- "paddingRight": 8,
3441
- "verticalAlign": "text-bottom",
3442
- }
3443
- }
3444
- viewBox="0 0 24 24"
3445
- width={24}
3446
- >
3447
- <path
3448
- d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10zm-.5-11.086l1.586 1.586-2.5 2.5H9v-1.586l2.5-2.5zM12.914 9.5L14 8.414 15.586 10 14.5 11.086 12.914 9.5zM12 24C5.373 24 0 18.627 0 12S5.373 0 12 0s12 5.373 12 12-5.373 12-12 12zM7 13v3a1 1 0 0 0 1 1h3a1 1 0 0 0 .707-.293l6-6a1 1 0 0 0 0-1.414l-3-3a1 1 0 0 0-1.414 0l-6 6A1 1 0 0 0 7 13z"
3449
- fill="currentColor"
3450
- />
3451
- </svg>
3452
- primary
3453
- </span>
3454
- </button>
3455
- <button
3456
- aria-disabled={false}
3457
- className=""
3458
- onBlur={[Function]}
3459
- onClick={[Function]}
3460
- onDragStart={[Function]}
3461
- onFocus={[Function]}
3462
- onKeyDown={[Function]}
3463
- onKeyUp={[Function]}
3464
- onMouseDown={[Function]}
3465
- onMouseEnter={[Function]}
3466
- onMouseLeave={[Function]}
3467
- onMouseUp={[Function]}
3468
- onTouchCancel={[Function]}
3469
- onTouchEnd={[Function]}
3470
- onTouchStart={[Function]}
3471
- role="button"
3472
- style={
3473
- Object {
3474
- "::MozFocusInner": Object {
3475
- "border": 0,
3476
- },
3477
- ":focus": Object {
3478
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
3479
- },
3480
- "alignItems": "center",
3481
- "background": "none",
3482
- "border": "none",
3483
- "borderColor": "rgba(33,36,44,0.50)",
3484
- "borderRadius": 4,
3485
- "borderStyle": "solid",
3486
- "borderWidth": 1,
3487
- "boxSizing": "border-box",
3488
- "color": "#1865f2",
3489
- "cursor": "pointer",
3490
- "display": "inline-flex",
3491
- "height": 40,
3492
- "justifyContent": "center",
3493
- "margin": 0,
3494
- "marginRight": 10,
3495
- "outline": "none",
3496
- "paddingBottom": 0,
3497
- "paddingLeft": 12,
3498
- "paddingRight": 16,
3499
- "paddingTop": 0,
3500
- "position": "relative",
3501
- "textDecoration": "none",
3502
- "touchAction": "manipulation",
3503
- "userSelect": "none",
3504
- }
3505
- }
3506
- tabIndex={0}
3507
- type="button"
3508
- >
3509
- <span
3510
- className=""
3511
- style={
3512
- Object {
3513
- "MozOsxFontSmoothing": "grayscale",
3514
- "WebkitFontSmoothing": "antialiased",
3515
- "alignItems": "center",
3516
- "display": "flex",
3517
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
3518
- "fontSize": 16,
3519
- "fontWeight": "bold",
3520
- "lineHeight": "20px",
3521
- "overflow": "hidden",
3522
- "pointerEvents": "none",
3523
- "textOverflow": "ellipsis",
3524
- "whiteSpace": "nowrap",
3525
- }
3526
- }
3527
- >
3528
- <svg
3529
- className=""
3530
- height={24}
3531
- style={
3532
- Object {
3533
- "display": "inline-block",
3534
- "flexGrow": 0,
3535
- "flexShrink": 0,
3536
- "paddingRight": 8,
3537
- "verticalAlign": "text-bottom",
3538
- }
3539
- }
3540
- viewBox="0 0 24 24"
3541
- width={24}
3542
- >
3543
- <path
3544
- d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10zm-.5-11.086l1.586 1.586-2.5 2.5H9v-1.586l2.5-2.5zM12.914 9.5L14 8.414 15.586 10 14.5 11.086 12.914 9.5zM12 24C5.373 24 0 18.627 0 12S5.373 0 12 0s12 5.373 12 12-5.373 12-12 12zM7 13v3a1 1 0 0 0 1 1h3a1 1 0 0 0 .707-.293l6-6a1 1 0 0 0 0-1.414l-3-3a1 1 0 0 0-1.414 0l-6 6A1 1 0 0 0 7 13z"
3545
- fill="currentColor"
3546
- />
3547
- </svg>
3548
- secondary
3549
- </span>
3550
- </button>
3551
- <button
3552
- aria-disabled={false}
3553
- className=""
3554
- onBlur={[Function]}
3555
- onClick={[Function]}
3556
- onDragStart={[Function]}
3557
- onFocus={[Function]}
3558
- onKeyDown={[Function]}
3559
- onKeyUp={[Function]}
3560
- onMouseDown={[Function]}
3561
- onMouseEnter={[Function]}
3562
- onMouseLeave={[Function]}
3563
- onMouseUp={[Function]}
3564
- onTouchCancel={[Function]}
3565
- onTouchEnd={[Function]}
3566
- onTouchStart={[Function]}
3567
- role="button"
3568
- style={
3569
- Object {
3570
- "::MozFocusInner": Object {
3571
- "border": 0,
3572
- },
3573
- ":focus": Object {
3574
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
3575
- },
3576
- "alignItems": "center",
3577
- "background": "none",
3578
- "border": "none",
3579
- "borderRadius": 4,
3580
- "boxSizing": "border-box",
3581
- "color": "#1865f2",
3582
- "cursor": "pointer",
3583
- "display": "inline-flex",
3584
- "height": 40,
3585
- "justifyContent": "center",
3586
- "margin": 0,
3587
- "marginRight": 10,
3588
- "outline": "none",
3589
- "paddingBottom": 0,
3590
- "paddingLeft": 0,
3591
- "paddingRight": 0,
3592
- "paddingTop": 0,
3593
- "position": "relative",
3594
- "textDecoration": "none",
3595
- "touchAction": "manipulation",
3596
- "userSelect": "none",
3597
- }
3598
- }
3599
- tabIndex={0}
3600
- type="button"
3601
- >
3602
- <span
3603
- className=""
3604
- style={
3605
- Object {
3606
- "MozOsxFontSmoothing": "grayscale",
3607
- "WebkitFontSmoothing": "antialiased",
3608
- "alignItems": "center",
3609
- "display": "flex",
3610
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
3611
- "fontSize": 16,
3612
- "fontWeight": "bold",
3613
- "lineHeight": "20px",
3614
- "overflow": "hidden",
3615
- "pointerEvents": "none",
3616
- "position": "relative",
3617
- "textOverflow": "ellipsis",
3618
- "whiteSpace": "nowrap",
3619
- }
3620
- }
3621
- >
3622
- <svg
3623
- className=""
3624
- height={24}
3625
- style={
3626
- Object {
3627
- "display": "inline-block",
3628
- "flexGrow": 0,
3629
- "flexShrink": 0,
3630
- "paddingRight": 8,
3631
- "verticalAlign": "text-bottom",
3632
- }
3633
- }
3634
- viewBox="0 0 24 24"
3635
- width={24}
3636
- >
3637
- <path
3638
- d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10zm-.5-11.086l1.586 1.586-2.5 2.5H9v-1.586l2.5-2.5zM12.914 9.5L14 8.414 15.586 10 14.5 11.086 12.914 9.5zM12 24C5.373 24 0 18.627 0 12S5.373 0 12 0s12 5.373 12 12-5.373 12-12 12zM7 13v3a1 1 0 0 0 1 1h3a1 1 0 0 0 .707-.293l6-6a1 1 0 0 0 0-1.414l-3-3a1 1 0 0 0-1.414 0l-6 6A1 1 0 0 0 7 13z"
3639
- fill="currentColor"
3640
- />
3641
- </svg>
3642
- tertiary
3643
- </span>
3644
- </button>
3645
- </div>
3646
- <div
3647
- className=""
3648
- style={
3649
- Object {
3650
- "alignItems": "stretch",
3651
- "borderStyle": "solid",
3652
- "borderWidth": 0,
3653
- "boxSizing": "border-box",
3654
- "display": "flex",
3655
- "flexDirection": "row",
3656
- "margin": 0,
3657
- "marginBottom": 10,
3658
- "minHeight": 0,
3659
- "minWidth": 0,
3660
- "padding": 0,
3661
- "position": "relative",
3662
- "zIndex": 0,
3663
- }
3664
- }
3665
- >
3666
- <button
3667
- aria-disabled={false}
3668
- className=""
3669
- onBlur={[Function]}
3670
- onClick={[Function]}
3671
- onDragStart={[Function]}
3672
- onFocus={[Function]}
3673
- onKeyDown={[Function]}
3674
- onKeyUp={[Function]}
3675
- onMouseDown={[Function]}
3676
- onMouseEnter={[Function]}
3677
- onMouseLeave={[Function]}
3678
- onMouseUp={[Function]}
3679
- onTouchCancel={[Function]}
3680
- onTouchEnd={[Function]}
3681
- onTouchStart={[Function]}
3682
- role="button"
3683
- style={
3684
- Object {
3685
- "::MozFocusInner": Object {
3686
- "border": 0,
3687
- },
3688
- ":focus": Object {
3689
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
3690
- },
3691
- "alignItems": "center",
3692
- "background": "#1865f2",
3693
- "border": "none",
3694
- "borderRadius": 4,
3695
- "boxSizing": "border-box",
3696
- "color": "#ffffff",
3697
- "cursor": "pointer",
3698
- "display": "inline-flex",
3699
- "height": 32,
3700
- "justifyContent": "center",
3701
- "margin": 0,
3702
- "marginRight": 10,
3703
- "outline": "none",
3704
- "paddingBottom": 0,
3705
- "paddingLeft": 16,
3706
- "paddingRight": 16,
3707
- "paddingTop": 0,
3708
- "position": "relative",
3709
- "textDecoration": "none",
3710
- "touchAction": "manipulation",
3711
- "userSelect": "none",
3712
- }
3713
- }
3714
- tabIndex={0}
3715
- type="button"
3716
- >
3717
- <span
3718
- className=""
3719
- style={
3720
- Object {
3721
- "MozOsxFontSmoothing": "grayscale",
3722
- "WebkitFontSmoothing": "antialiased",
3723
- "alignItems": "center",
3724
- "display": "flex",
3725
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
3726
- "fontSize": 14,
3727
- "fontWeight": "bold",
3728
- "lineHeight": "18px",
3729
- "overflow": "hidden",
3730
- "pointerEvents": "none",
3731
- "textOverflow": "ellipsis",
3732
- "whiteSpace": "nowrap",
3733
- }
3734
- }
3735
- >
3736
- <svg
3737
- className=""
3738
- height={16}
3739
- style={
3740
- Object {
3741
- "display": "inline-block",
3742
- "flexGrow": 0,
3743
- "flexShrink": 0,
3744
- "paddingRight": 8,
3745
- "verticalAlign": "text-bottom",
3746
- }
3747
- }
3748
- viewBox="0 0 16 16"
3749
- width={16}
3750
- >
3751
- <path
3752
- d="M7.5 6.914L5 9.414V11h1.586l2.5-2.5L7.5 6.914zM8.914 5.5L10.5 7.086 11.586 6 10 4.414 8.914 5.5zM3 9a1 1 0 0 1 .293-.707l6-6a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1 0 1.414l-6 6A1 1 0 0 1 7 13H4a1 1 0 0 1-1-1V9z"
3753
- fill="currentColor"
3754
- />
3755
- </svg>
3756
- primary
3757
- small
3758
- </span>
3759
- </button>
3760
- <button
3761
- aria-disabled={false}
3762
- className=""
3763
- onBlur={[Function]}
3764
- onClick={[Function]}
3765
- onDragStart={[Function]}
3766
- onFocus={[Function]}
3767
- onKeyDown={[Function]}
3768
- onKeyUp={[Function]}
3769
- onMouseDown={[Function]}
3770
- onMouseEnter={[Function]}
3771
- onMouseLeave={[Function]}
3772
- onMouseUp={[Function]}
3773
- onTouchCancel={[Function]}
3774
- onTouchEnd={[Function]}
3775
- onTouchStart={[Function]}
3776
- role="button"
3777
- style={
3778
- Object {
3779
- "::MozFocusInner": Object {
3780
- "border": 0,
3781
- },
3782
- ":focus": Object {
3783
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
3784
- },
3785
- "alignItems": "center",
3786
- "background": "none",
3787
- "border": "none",
3788
- "borderColor": "rgba(33,36,44,0.50)",
3789
- "borderRadius": 4,
3790
- "borderStyle": "solid",
3791
- "borderWidth": 1,
3792
- "boxSizing": "border-box",
3793
- "color": "#1865f2",
3794
- "cursor": "pointer",
3795
- "display": "inline-flex",
3796
- "height": 32,
3797
- "justifyContent": "center",
3798
- "margin": 0,
3799
- "marginRight": 10,
3800
- "outline": "none",
3801
- "paddingBottom": 0,
3802
- "paddingLeft": 12,
3803
- "paddingRight": 16,
3804
- "paddingTop": 0,
3805
- "position": "relative",
3806
- "textDecoration": "none",
3807
- "touchAction": "manipulation",
3808
- "userSelect": "none",
3809
- }
3810
- }
3811
- tabIndex={0}
3812
- type="button"
3813
- >
3814
- <span
3815
- className=""
3816
- style={
3817
- Object {
3818
- "MozOsxFontSmoothing": "grayscale",
3819
- "WebkitFontSmoothing": "antialiased",
3820
- "alignItems": "center",
3821
- "display": "flex",
3822
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
3823
- "fontSize": 14,
3824
- "fontWeight": "bold",
3825
- "lineHeight": "18px",
3826
- "overflow": "hidden",
3827
- "pointerEvents": "none",
3828
- "textOverflow": "ellipsis",
3829
- "whiteSpace": "nowrap",
3830
- }
3831
- }
3832
- >
3833
- <svg
3834
- className=""
3835
- height={16}
3836
- style={
3837
- Object {
3838
- "display": "inline-block",
3839
- "flexGrow": 0,
3840
- "flexShrink": 0,
3841
- "paddingRight": 8,
3842
- "verticalAlign": "text-bottom",
3843
- }
3844
- }
3845
- viewBox="0 0 16 16"
3846
- width={16}
3847
- >
3848
- <path
3849
- d="M7.5 6.914L5 9.414V11h1.586l2.5-2.5L7.5 6.914zM8.914 5.5L10.5 7.086 11.586 6 10 4.414 8.914 5.5zM3 9a1 1 0 0 1 .293-.707l6-6a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1 0 1.414l-6 6A1 1 0 0 1 7 13H4a1 1 0 0 1-1-1V9z"
3850
- fill="currentColor"
3851
- />
3852
- </svg>
3853
- secondary
3854
- small
3855
- </span>
3856
- </button>
3857
- <button
3858
- aria-disabled={false}
3859
- className=""
3860
- onBlur={[Function]}
3861
- onClick={[Function]}
3862
- onDragStart={[Function]}
3863
- onFocus={[Function]}
3864
- onKeyDown={[Function]}
3865
- onKeyUp={[Function]}
3866
- onMouseDown={[Function]}
3867
- onMouseEnter={[Function]}
3868
- onMouseLeave={[Function]}
3869
- onMouseUp={[Function]}
3870
- onTouchCancel={[Function]}
3871
- onTouchEnd={[Function]}
3872
- onTouchStart={[Function]}
3873
- role="button"
3874
- style={
3875
- Object {
3876
- "::MozFocusInner": Object {
3877
- "border": 0,
3878
- },
3879
- ":focus": Object {
3880
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
3881
- },
3882
- "alignItems": "center",
3883
- "background": "none",
3884
- "border": "none",
3885
- "borderRadius": 4,
3886
- "boxSizing": "border-box",
3887
- "color": "#1865f2",
3888
- "cursor": "pointer",
3889
- "display": "inline-flex",
3890
- "height": 32,
3891
- "justifyContent": "center",
3892
- "margin": 0,
3893
- "marginRight": 10,
3894
- "outline": "none",
3895
- "paddingBottom": 0,
3896
- "paddingLeft": 0,
3897
- "paddingRight": 0,
3898
- "paddingTop": 0,
3899
- "position": "relative",
3900
- "textDecoration": "none",
3901
- "touchAction": "manipulation",
3902
- "userSelect": "none",
3903
- }
3904
- }
3905
- tabIndex={0}
3906
- type="button"
3907
- >
3908
- <span
3909
- className=""
3910
- style={
3911
- Object {
3912
- "MozOsxFontSmoothing": "grayscale",
3913
- "WebkitFontSmoothing": "antialiased",
3914
- "alignItems": "center",
3915
- "display": "flex",
3916
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
3917
- "fontSize": 14,
3918
- "fontWeight": "bold",
3919
- "lineHeight": "18px",
3920
- "overflow": "hidden",
3921
- "pointerEvents": "none",
3922
- "position": "relative",
3923
- "textOverflow": "ellipsis",
3924
- "whiteSpace": "nowrap",
3925
- }
3926
- }
3927
- >
3928
- <svg
3929
- className=""
3930
- height={16}
3931
- style={
3932
- Object {
3933
- "display": "inline-block",
3934
- "flexGrow": 0,
3935
- "flexShrink": 0,
3936
- "paddingRight": 8,
3937
- "verticalAlign": "text-bottom",
3938
- }
3939
- }
3940
- viewBox="0 0 16 16"
3941
- width={16}
3942
- >
3943
- <path
3944
- d="M7.5 6.914L5 9.414V11h1.586l2.5-2.5L7.5 6.914zM8.914 5.5L10.5 7.086 11.586 6 10 4.414 8.914 5.5zM3 9a1 1 0 0 1 .293-.707l6-6a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1 0 1.414l-6 6A1 1 0 0 1 7 13H4a1 1 0 0 1-1-1V9z"
3945
- fill="currentColor"
3946
- />
3947
- </svg>
3948
- tertiary
3949
- small
3950
- </span>
3951
- </button>
3952
- </div>
3953
- </div>
3954
- `;
3955
-
3956
- exports[`wonder-blocks-button example 13 1`] = `
3957
- <div
3958
- className=""
3959
- style={
3960
- Object {
3961
- "alignItems": "stretch",
3962
- "borderStyle": "solid",
3963
- "borderWidth": 0,
3964
- "boxSizing": "border-box",
3965
- "display": "flex",
3966
- "flexDirection": "column",
3967
- "margin": 0,
3968
- "minHeight": 0,
3969
- "minWidth": 0,
3970
- "padding": 0,
3971
- "position": "relative",
3972
- "zIndex": 0,
3973
- }
3974
- }
3975
- >
3976
- <form
3977
- onSubmit={[Function]}
3978
- >
3979
- <button
3980
- aria-disabled={false}
3981
- className=""
3982
- onBlur={[Function]}
3983
- onClick={[Function]}
3984
- onDragStart={[Function]}
3985
- onFocus={[Function]}
3986
- onKeyDown={[Function]}
3987
- onKeyUp={[Function]}
3988
- onMouseDown={[Function]}
3989
- onMouseEnter={[Function]}
3990
- onMouseLeave={[Function]}
3991
- onMouseUp={[Function]}
3992
- onTouchCancel={[Function]}
3993
- onTouchEnd={[Function]}
3994
- onTouchStart={[Function]}
3995
- role="button"
3996
- style={
3997
- Object {
3998
- "::MozFocusInner": Object {
3999
- "border": 0,
4000
- },
4001
- ":focus": Object {
4002
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
4003
- },
4004
- "alignItems": "center",
4005
- "background": "#1865f2",
4006
- "border": "none",
4007
- "borderRadius": 4,
4008
- "boxSizing": "border-box",
4009
- "color": "#ffffff",
4010
- "cursor": "pointer",
4011
- "display": "inline-flex",
4012
- "height": 40,
4013
- "justifyContent": "center",
4014
- "margin": 0,
4015
- "outline": "none",
4016
- "paddingBottom": 0,
4017
- "paddingLeft": 16,
4018
- "paddingRight": 16,
4019
- "paddingTop": 0,
4020
- "position": "relative",
4021
- "textDecoration": "none",
4022
- "touchAction": "manipulation",
4023
- "userSelect": "none",
4024
- }
4025
- }
4026
- tabIndex={0}
4027
- type="submit"
4028
- >
4029
- <span
4030
- className=""
4031
- style={
4032
- Object {
4033
- "MozOsxFontSmoothing": "grayscale",
4034
- "WebkitFontSmoothing": "antialiased",
4035
- "alignItems": "center",
4036
- "display": "inline-block",
4037
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
4038
- "fontSize": 16,
4039
- "fontWeight": "bold",
4040
- "lineHeight": "20px",
4041
- "overflow": "hidden",
4042
- "pointerEvents": "none",
4043
- "textOverflow": "ellipsis",
4044
- "whiteSpace": "nowrap",
4045
- }
4046
- }
4047
- >
4048
- Submit
4049
- </span>
4050
- </button>
4051
- </form>
4052
- </div>
4053
- `;
4054
-
4055
- exports[`wonder-blocks-button example 14 1`] = `
4056
- <div
4057
- className=""
4058
- style={
4059
- Object {
4060
- "alignItems": "stretch",
4061
- "borderStyle": "solid",
4062
- "borderWidth": 0,
4063
- "boxSizing": "border-box",
4064
- "display": "flex",
4065
- "flexDirection": "column",
4066
- "margin": 0,
4067
- "minHeight": 0,
4068
- "minWidth": 0,
4069
- "padding": 0,
4070
- "position": "relative",
4071
- "zIndex": 0,
4072
- }
4073
- }
4074
- >
4075
- <button
4076
- aria-disabled={false}
4077
- className=""
4078
- onBlur={[Function]}
4079
- onClick={[Function]}
4080
- onDragStart={[Function]}
4081
- onFocus={[Function]}
4082
- onKeyDown={[Function]}
4083
- onKeyUp={[Function]}
4084
- onMouseDown={[Function]}
4085
- onMouseEnter={[Function]}
4086
- onMouseLeave={[Function]}
4087
- onMouseUp={[Function]}
4088
- onTouchCancel={[Function]}
4089
- onTouchEnd={[Function]}
4090
- onTouchStart={[Function]}
4091
- role="button"
4092
- style={
4093
- Object {
4094
- "::MozFocusInner": Object {
4095
- "border": 0,
4096
- },
4097
- ":focus": Object {
4098
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
4099
- },
4100
- "alignItems": "center",
4101
- "background": "#1865f2",
4102
- "border": "none",
4103
- "borderRadius": 4,
4104
- "boxSizing": "border-box",
4105
- "color": "#ffffff",
4106
- "cursor": "pointer",
4107
- "display": "inline-flex",
4108
- "height": 40,
4109
- "justifyContent": "center",
4110
- "margin": 0,
4111
- "outline": "none",
4112
- "paddingBottom": 0,
4113
- "paddingLeft": 16,
4114
- "paddingRight": 16,
4115
- "paddingTop": 0,
4116
- "position": "relative",
4117
- "textDecoration": "none",
4118
- "touchAction": "manipulation",
4119
- "userSelect": "none",
4120
- }
4121
- }
4122
- tabIndex={0}
4123
- type="button"
4124
- >
4125
- <span
4126
- className=""
4127
- style={
4128
- Object {
4129
- "MozOsxFontSmoothing": "grayscale",
4130
- "WebkitFontSmoothing": "antialiased",
4131
- "alignItems": "center",
4132
- "display": "inline-block",
4133
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
4134
- "fontSize": 16,
4135
- "fontWeight": "bold",
4136
- "lineHeight": "20px",
4137
- "overflow": "hidden",
4138
- "pointerEvents": "none",
4139
- "textOverflow": "ellipsis",
4140
- "whiteSpace": "nowrap",
4141
- }
4142
- }
4143
- >
4144
- Label
4145
- </span>
4146
- </button>
4147
- </div>
4148
- `;
4149
-
4150
- exports[`wonder-blocks-button example 15 1`] = `
4151
- <div
4152
- className=""
4153
- style={
4154
- Object {
4155
- "alignItems": "stretch",
4156
- "borderStyle": "solid",
4157
- "borderWidth": 0,
4158
- "boxSizing": "border-box",
4159
- "display": "flex",
4160
- "flexDirection": "column",
4161
- "margin": 0,
4162
- "minHeight": 0,
4163
- "minWidth": 0,
4164
- "padding": 0,
4165
- "position": "relative",
4166
- "zIndex": 0,
4167
- }
4168
- }
4169
- >
4170
- <div
4171
- className=""
4172
- style={
4173
- Object {
4174
- "alignItems": "stretch",
4175
- "borderStyle": "solid",
4176
- "borderWidth": 0,
4177
- "boxSizing": "border-box",
4178
- "display": "flex",
4179
- "flexDirection": "row",
4180
- "margin": 0,
4181
- "minHeight": 0,
4182
- "minWidth": 0,
4183
- "padding": 0,
4184
- "position": "relative",
4185
- "zIndex": 0,
4186
- }
4187
- }
4188
- >
4189
- <button
4190
- aria-disabled={false}
4191
- className=""
4192
- onBlur={[Function]}
4193
- onClick={[Function]}
4194
- onDragStart={[Function]}
4195
- onFocus={[Function]}
4196
- onKeyDown={[Function]}
4197
- onKeyUp={[Function]}
4198
- onMouseDown={[Function]}
4199
- onMouseEnter={[Function]}
4200
- onMouseLeave={[Function]}
4201
- onMouseUp={[Function]}
4202
- onTouchCancel={[Function]}
4203
- onTouchEnd={[Function]}
4204
- onTouchStart={[Function]}
4205
- role="button"
4206
- style={
4207
- Object {
4208
- "::MozFocusInner": Object {
4209
- "border": 0,
4210
- },
4211
- ":focus": Object {
4212
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
4213
- },
4214
- "alignItems": "center",
4215
- "background": "#1865f2",
4216
- "border": "none",
4217
- "borderRadius": 4,
4218
- "boxSizing": "border-box",
4219
- "color": "#ffffff",
4220
- "cursor": "pointer",
4221
- "display": "inline-flex",
4222
- "height": 40,
4223
- "justifyContent": "center",
4224
- "margin": 0,
4225
- "outline": "none",
4226
- "paddingBottom": 0,
4227
- "paddingLeft": 16,
4228
- "paddingRight": 16,
4229
- "paddingTop": 0,
4230
- "position": "relative",
4231
- "textDecoration": "none",
4232
- "touchAction": "manipulation",
4233
- "userSelect": "none",
4234
- }
4235
- }
4236
- tabIndex={0}
4237
- type="button"
4238
- >
4239
- <span
4240
- className=""
4241
- style={
4242
- Object {
4243
- "MozOsxFontSmoothing": "grayscale",
4244
- "WebkitFontSmoothing": "antialiased",
4245
- "alignItems": "center",
4246
- "display": "inline-block",
4247
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
4248
- "fontSize": 16,
4249
- "fontWeight": "bold",
4250
- "lineHeight": "20px",
4251
- "overflow": "hidden",
4252
- "pointerEvents": "none",
4253
- "textOverflow": "ellipsis",
4254
- "whiteSpace": "nowrap",
4255
- }
4256
- }
4257
- >
4258
- Button in a row
4259
- </span>
4260
- </button>
4261
- </div>
4262
- <div
4263
- className=""
4264
- style={
4265
- Object {
4266
- "alignItems": "stretch",
4267
- "borderStyle": "solid",
4268
- "borderWidth": 0,
4269
- "boxSizing": "border-box",
4270
- "display": "flex",
4271
- "flexDirection": "column",
4272
- "height": 16,
4273
- "margin": 0,
4274
- "minHeight": 0,
4275
- "minWidth": 0,
4276
- "padding": 0,
4277
- "position": "relative",
4278
- "zIndex": 0,
4279
- }
4280
- }
4281
- />
4282
- <div
4283
- className=""
4284
- style={
4285
- Object {
4286
- "alignItems": "flex-start",
4287
- "borderStyle": "solid",
4288
- "borderWidth": 0,
4289
- "boxSizing": "border-box",
4290
- "display": "flex",
4291
- "flexDirection": "column",
4292
- "margin": 0,
4293
- "minHeight": 0,
4294
- "minWidth": 0,
4295
- "padding": 0,
4296
- "position": "relative",
4297
- "zIndex": 0,
4298
- }
4299
- }
4300
- >
4301
- <button
4302
- aria-disabled={false}
4303
- className=""
4304
- onBlur={[Function]}
4305
- onClick={[Function]}
4306
- onDragStart={[Function]}
4307
- onFocus={[Function]}
4308
- onKeyDown={[Function]}
4309
- onKeyUp={[Function]}
4310
- onMouseDown={[Function]}
4311
- onMouseEnter={[Function]}
4312
- onMouseLeave={[Function]}
4313
- onMouseUp={[Function]}
4314
- onTouchCancel={[Function]}
4315
- onTouchEnd={[Function]}
4316
- onTouchStart={[Function]}
4317
- role="button"
4318
- style={
4319
- Object {
4320
- "::MozFocusInner": Object {
4321
- "border": 0,
4322
- },
4323
- ":focus": Object {
4324
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
4325
- },
4326
- "alignItems": "center",
4327
- "background": "#1865f2",
4328
- "border": "none",
4329
- "borderRadius": 4,
4330
- "boxSizing": "border-box",
4331
- "color": "#ffffff",
4332
- "cursor": "pointer",
4333
- "display": "inline-flex",
4334
- "height": 40,
4335
- "justifyContent": "center",
4336
- "margin": 0,
4337
- "outline": "none",
4338
- "paddingBottom": 0,
4339
- "paddingLeft": 16,
4340
- "paddingRight": 16,
4341
- "paddingTop": 0,
4342
- "position": "relative",
4343
- "textDecoration": "none",
4344
- "touchAction": "manipulation",
4345
- "userSelect": "none",
4346
- }
4347
- }
4348
- tabIndex={0}
4349
- type="button"
4350
- >
4351
- <span
4352
- className=""
4353
- style={
4354
- Object {
4355
- "MozOsxFontSmoothing": "grayscale",
4356
- "WebkitFontSmoothing": "antialiased",
4357
- "alignItems": "center",
4358
- "display": "inline-block",
4359
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
4360
- "fontSize": 16,
4361
- "fontWeight": "bold",
4362
- "lineHeight": "20px",
4363
- "overflow": "hidden",
4364
- "pointerEvents": "none",
4365
- "textOverflow": "ellipsis",
4366
- "whiteSpace": "nowrap",
4367
- }
4368
- }
4369
- >
4370
- Button in a column
4371
- </span>
4372
- </button>
4373
- </div>
4374
- </div>
4375
- `;
4376
-
4377
- exports[`wonder-blocks-button example 16 1`] = `
4378
- <div
4379
- className=""
4380
- style={
4381
- Object {
4382
- "alignItems": "stretch",
4383
- "borderStyle": "solid",
4384
- "borderWidth": 0,
4385
- "boxSizing": "border-box",
4386
- "display": "flex",
4387
- "flexDirection": "row",
4388
- "margin": 0,
4389
- "minHeight": 0,
4390
- "minWidth": 0,
4391
- "padding": 0,
4392
- "position": "relative",
4393
- "zIndex": 0,
4394
- }
4395
- }
4396
- >
4397
- <button
4398
- aria-disabled={false}
4399
- className=""
4400
- onBlur={[Function]}
4401
- onClick={[Function]}
4402
- onDragStart={[Function]}
4403
- onFocus={[Function]}
4404
- onKeyDown={[Function]}
4405
- onKeyUp={[Function]}
4406
- onMouseDown={[Function]}
4407
- onMouseEnter={[Function]}
4408
- onMouseLeave={[Function]}
4409
- onMouseUp={[Function]}
4410
- onTouchCancel={[Function]}
4411
- onTouchEnd={[Function]}
4412
- onTouchStart={[Function]}
4413
- role="button"
4414
- style={
4415
- Object {
4416
- "::MozFocusInner": Object {
4417
- "border": 0,
4418
- },
4419
- ":focus": Object {
4420
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
4421
- },
4422
- "alignItems": "center",
4423
- "background": "none",
4424
- "border": "none",
4425
- "borderColor": "rgba(33,36,44,0.50)",
4426
- "borderRadius": 4,
4427
- "borderStyle": "solid",
4428
- "borderWidth": 1,
4429
- "boxSizing": "border-box",
4430
- "color": "#1865f2",
4431
- "cursor": "pointer",
4432
- "display": "inline-flex",
4433
- "height": 40,
4434
- "justifyContent": "center",
4435
- "margin": 0,
4436
- "marginRight": 10,
4437
- "minWidth": 144,
4438
- "outline": "none",
4439
- "paddingBottom": 0,
4440
- "paddingLeft": 16,
4441
- "paddingRight": 16,
4442
- "paddingTop": 0,
4443
- "position": "relative",
4444
- "textDecoration": "none",
4445
- "touchAction": "manipulation",
4446
- "userSelect": "none",
4447
- }
4448
- }
4449
- tabIndex={0}
4450
- type="button"
4451
- >
4452
- <span
4453
- className=""
4454
- style={
4455
- Object {
4456
- "MozOsxFontSmoothing": "grayscale",
4457
- "WebkitFontSmoothing": "antialiased",
4458
- "alignItems": "center",
4459
- "display": "inline-block",
4460
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
4461
- "fontSize": 16,
4462
- "fontWeight": "bold",
4463
- "lineHeight": "20px",
4464
- "overflow": "hidden",
4465
- "pointerEvents": "none",
4466
- "textOverflow": "ellipsis",
4467
- "whiteSpace": "nowrap",
4468
- }
4469
- }
4470
- >
4471
- label
4472
- </span>
4473
- </button>
4474
- <button
4475
- aria-disabled={false}
4476
- className=""
4477
- onBlur={[Function]}
4478
- onClick={[Function]}
4479
- onDragStart={[Function]}
4480
- onFocus={[Function]}
4481
- onKeyDown={[Function]}
4482
- onKeyUp={[Function]}
4483
- onMouseDown={[Function]}
4484
- onMouseEnter={[Function]}
4485
- onMouseLeave={[Function]}
4486
- onMouseUp={[Function]}
4487
- onTouchCancel={[Function]}
4488
- onTouchEnd={[Function]}
4489
- onTouchStart={[Function]}
4490
- role="button"
4491
- style={
4492
- Object {
4493
- "::MozFocusInner": Object {
4494
- "border": 0,
4495
- },
4496
- ":focus": Object {
4497
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
4498
- },
4499
- "alignItems": "center",
4500
- "background": "#1865f2",
4501
- "border": "none",
4502
- "borderRadius": 4,
4503
- "boxSizing": "border-box",
4504
- "color": "#ffffff",
4505
- "cursor": "pointer",
4506
- "display": "inline-flex",
4507
- "height": 40,
4508
- "justifyContent": "center",
4509
- "margin": 0,
4510
- "marginRight": 10,
4511
- "minWidth": 144,
4512
- "outline": "none",
4513
- "paddingBottom": 0,
4514
- "paddingLeft": 16,
4515
- "paddingRight": 16,
4516
- "paddingTop": 0,
4517
- "position": "relative",
4518
- "textDecoration": "none",
4519
- "touchAction": "manipulation",
4520
- "userSelect": "none",
4521
- }
4522
- }
4523
- tabIndex={0}
4524
- type="button"
4525
- >
4526
- <span
4527
- className=""
4528
- style={
4529
- Object {
4530
- "MozOsxFontSmoothing": "grayscale",
4531
- "WebkitFontSmoothing": "antialiased",
4532
- "alignItems": "center",
4533
- "display": "inline-block",
4534
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
4535
- "fontSize": 16,
4536
- "fontWeight": "bold",
4537
- "lineHeight": "20px",
4538
- "overflow": "hidden",
4539
- "pointerEvents": "none",
4540
- "textOverflow": "ellipsis",
4541
- "whiteSpace": "nowrap",
4542
- }
4543
- }
4544
- >
4545
- label in a different language
4546
- </span>
4547
- </button>
4548
- </div>
4549
- `;
4550
-
4551
- exports[`wonder-blocks-button example 17 1`] = `
4552
- <div
4553
- className=""
4554
- style={
4555
- Object {
4556
- "alignItems": "stretch",
4557
- "borderStyle": "solid",
4558
- "borderWidth": 0,
4559
- "boxSizing": "border-box",
4560
- "display": "flex",
4561
- "flexDirection": "row",
4562
- "margin": 0,
4563
- "minHeight": 0,
4564
- "minWidth": 0,
4565
- "padding": 0,
4566
- "position": "relative",
4567
- "width": 300,
4568
- "zIndex": 0,
4569
- }
4570
- }
4571
- >
4572
- <button
4573
- aria-disabled={false}
4574
- className=""
4575
- onBlur={[Function]}
4576
- onClick={[Function]}
4577
- onDragStart={[Function]}
4578
- onFocus={[Function]}
4579
- onKeyDown={[Function]}
4580
- onKeyUp={[Function]}
4581
- onMouseDown={[Function]}
4582
- onMouseEnter={[Function]}
4583
- onMouseLeave={[Function]}
4584
- onMouseUp={[Function]}
4585
- onTouchCancel={[Function]}
4586
- onTouchEnd={[Function]}
4587
- onTouchStart={[Function]}
4588
- role="button"
4589
- style={
4590
- Object {
4591
- "::MozFocusInner": Object {
4592
- "border": 0,
4593
- },
4594
- ":focus": Object {
4595
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
4596
- },
4597
- "alignItems": "center",
4598
- "background": "none",
4599
- "border": "none",
4600
- "borderColor": "rgba(33,36,44,0.50)",
4601
- "borderRadius": 4,
4602
- "borderStyle": "solid",
4603
- "borderWidth": 1,
4604
- "boxSizing": "border-box",
4605
- "color": "#1865f2",
4606
- "cursor": "pointer",
4607
- "display": "inline-flex",
4608
- "height": 40,
4609
- "justifyContent": "center",
4610
- "margin": 0,
4611
- "marginRight": 10,
4612
- "minWidth": 144,
4613
- "outline": "none",
4614
- "paddingBottom": 0,
4615
- "paddingLeft": 16,
4616
- "paddingRight": 16,
4617
- "paddingTop": 0,
4618
- "position": "relative",
4619
- "textDecoration": "none",
4620
- "touchAction": "manipulation",
4621
- "userSelect": "none",
4622
- }
4623
- }
4624
- tabIndex={0}
4625
- type="button"
4626
- >
4627
- <span
4628
- className=""
4629
- style={
4630
- Object {
4631
- "MozOsxFontSmoothing": "grayscale",
4632
- "WebkitFontSmoothing": "antialiased",
4633
- "alignItems": "center",
4634
- "display": "inline-block",
4635
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
4636
- "fontSize": 16,
4637
- "fontWeight": "bold",
4638
- "lineHeight": "20px",
4639
- "overflow": "hidden",
4640
- "pointerEvents": "none",
4641
- "textOverflow": "ellipsis",
4642
- "whiteSpace": "nowrap",
4643
- }
4644
- }
4645
- >
4646
- label
4647
- </span>
4648
- </button>
4649
- <button
4650
- aria-disabled={false}
4651
- className=""
4652
- onBlur={[Function]}
4653
- onClick={[Function]}
4654
- onDragStart={[Function]}
4655
- onFocus={[Function]}
4656
- onKeyDown={[Function]}
4657
- onKeyUp={[Function]}
4658
- onMouseDown={[Function]}
4659
- onMouseEnter={[Function]}
4660
- onMouseLeave={[Function]}
4661
- onMouseUp={[Function]}
4662
- onTouchCancel={[Function]}
4663
- onTouchEnd={[Function]}
4664
- onTouchStart={[Function]}
4665
- role="button"
4666
- style={
4667
- Object {
4668
- "::MozFocusInner": Object {
4669
- "border": 0,
4670
- },
4671
- ":focus": Object {
4672
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
4673
- },
4674
- "alignItems": "center",
4675
- "background": "#1865f2",
4676
- "border": "none",
4677
- "borderRadius": 4,
4678
- "boxSizing": "border-box",
4679
- "color": "#ffffff",
4680
- "cursor": "pointer",
4681
- "display": "inline-flex",
4682
- "height": 40,
4683
- "justifyContent": "center",
4684
- "margin": 0,
4685
- "marginRight": 10,
4686
- "minWidth": 144,
4687
- "outline": "none",
4688
- "paddingBottom": 0,
4689
- "paddingLeft": 16,
4690
- "paddingRight": 16,
4691
- "paddingTop": 0,
4692
- "position": "relative",
4693
- "textDecoration": "none",
4694
- "touchAction": "manipulation",
4695
- "userSelect": "none",
4696
- }
4697
- }
4698
- tabIndex={0}
4699
- type="button"
4700
- >
4701
- <span
4702
- className=""
4703
- style={
4704
- Object {
4705
- "MozOsxFontSmoothing": "grayscale",
4706
- "WebkitFontSmoothing": "antialiased",
4707
- "alignItems": "center",
4708
- "display": "inline-block",
4709
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
4710
- "fontSize": 16,
4711
- "fontWeight": "bold",
4712
- "lineHeight": "20px",
4713
- "overflow": "hidden",
4714
- "pointerEvents": "none",
4715
- "textOverflow": "ellipsis",
4716
- "whiteSpace": "nowrap",
4717
- }
4718
- }
4719
- >
4720
- label too long for the parent container
4721
- </span>
4722
- </button>
4723
- </div>
4724
- `;
4725
-
4726
- exports[`wonder-blocks-button example 18 1`] = `
4727
- <div
4728
- className=""
4729
- style={
4730
- Object {
4731
- "alignItems": "stretch",
4732
- "borderStyle": "solid",
4733
- "borderWidth": 0,
4734
- "boxSizing": "border-box",
4735
- "display": "flex",
4736
- "flexDirection": "column",
4737
- "margin": 0,
4738
- "minHeight": 0,
4739
- "minWidth": 0,
4740
- "padding": 0,
4741
- "position": "relative",
4742
- "zIndex": 0,
4743
- }
4744
- }
4745
- >
4746
- <div
4747
- className=""
4748
- style={
4749
- Object {
4750
- "alignItems": "stretch",
4751
- "borderStyle": "solid",
4752
- "borderWidth": 0,
4753
- "boxSizing": "border-box",
4754
- "display": "flex",
4755
- "flexDirection": "row",
4756
- "margin": 0,
4757
- "minHeight": 0,
4758
- "minWidth": 0,
4759
- "padding": 0,
4760
- "position": "relative",
4761
- "zIndex": 0,
4762
- }
4763
- }
4764
- >
4765
- <button
4766
- aria-disabled={false}
4767
- className=""
4768
- onBlur={[Function]}
4769
- onClick={[Function]}
4770
- onDragStart={[Function]}
4771
- onFocus={[Function]}
4772
- onKeyDown={[Function]}
4773
- onKeyUp={[Function]}
4774
- onMouseDown={[Function]}
4775
- onMouseEnter={[Function]}
4776
- onMouseLeave={[Function]}
4777
- onMouseUp={[Function]}
4778
- onTouchCancel={[Function]}
4779
- onTouchEnd={[Function]}
4780
- onTouchStart={[Function]}
4781
- role="button"
4782
- style={
4783
- Object {
4784
- "::MozFocusInner": Object {
4785
- "border": 0,
4786
- },
4787
- ":focus": Object {
4788
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
4789
- },
4790
- "alignItems": "center",
4791
- "background": "none",
4792
- "border": "none",
4793
- "borderRadius": 4,
4794
- "boxSizing": "border-box",
4795
- "color": "#1865f2",
4796
- "cursor": "pointer",
4797
- "display": "inline-flex",
4798
- "height": 40,
4799
- "justifyContent": "center",
4800
- "margin": 0,
4801
- "marginRight": 10,
4802
- "outline": "none",
4803
- "paddingBottom": 0,
4804
- "paddingLeft": 0,
4805
- "paddingRight": 0,
4806
- "paddingTop": 0,
4807
- "position": "relative",
4808
- "textDecoration": "none",
4809
- "touchAction": "manipulation",
4810
- "userSelect": "none",
4811
- }
4812
- }
4813
- tabIndex={0}
4814
- type="button"
4815
- >
4816
- <span
4817
- className=""
4818
- style={
4819
- Object {
4820
- "MozOsxFontSmoothing": "grayscale",
4821
- "WebkitFontSmoothing": "antialiased",
4822
- "alignItems": "center",
4823
- "display": "inline-block",
4824
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
4825
- "fontSize": 16,
4826
- "fontWeight": "bold",
4827
- "lineHeight": "20px",
4828
- "overflow": "hidden",
4829
- "pointerEvents": "none",
4830
- "position": "relative",
4831
- "textOverflow": "ellipsis",
4832
- "whiteSpace": "nowrap",
4833
- }
4834
- }
4835
- >
4836
- Tertiary
4837
- </span>
4838
- </button>
4839
- <button
4840
- aria-disabled={false}
4841
- className=""
4842
- onBlur={[Function]}
4843
- onClick={[Function]}
4844
- onDragStart={[Function]}
4845
- onFocus={[Function]}
4846
- onKeyDown={[Function]}
4847
- onKeyUp={[Function]}
4848
- onMouseDown={[Function]}
4849
- onMouseEnter={[Function]}
4850
- onMouseLeave={[Function]}
4851
- onMouseUp={[Function]}
4852
- onTouchCancel={[Function]}
4853
- onTouchEnd={[Function]}
4854
- onTouchStart={[Function]}
4855
- role="button"
4856
- style={
4857
- Object {
4858
- "::MozFocusInner": Object {
4859
- "border": 0,
4860
- },
4861
- ":focus": Object {
4862
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
4863
- },
4864
- "alignItems": "center",
4865
- "background": "#1865f2",
4866
- "border": "none",
4867
- "borderRadius": 4,
4868
- "boxSizing": "border-box",
4869
- "color": "#ffffff",
4870
- "cursor": "pointer",
4871
- "display": "inline-flex",
4872
- "height": 40,
4873
- "justifyContent": "center",
4874
- "margin": 0,
4875
- "outline": "none",
4876
- "paddingBottom": 0,
4877
- "paddingLeft": 16,
4878
- "paddingRight": 16,
4879
- "paddingTop": 0,
4880
- "position": "relative",
4881
- "textDecoration": "none",
4882
- "touchAction": "manipulation",
4883
- "userSelect": "none",
4884
- }
4885
- }
4886
- tabIndex={0}
4887
- type="button"
4888
- >
4889
- <span
4890
- className=""
4891
- style={
4892
- Object {
4893
- "MozOsxFontSmoothing": "grayscale",
4894
- "WebkitFontSmoothing": "antialiased",
4895
- "alignItems": "center",
4896
- "display": "inline-block",
4897
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
4898
- "fontSize": 16,
4899
- "fontWeight": "bold",
4900
- "lineHeight": "20px",
4901
- "overflow": "hidden",
4902
- "pointerEvents": "none",
4903
- "textOverflow": "ellipsis",
4904
- "whiteSpace": "nowrap",
4905
- }
4906
- }
4907
- >
4908
- Primary
4909
- </span>
4910
- </button>
4911
- </div>
4912
- </div>
4913
- `;
4914
-
4915
- exports[`wonder-blocks-button example 19 1`] = `
4916
- <div
4917
- className=""
4918
- style={
4919
- Object {
4920
- "alignItems": "stretch",
4921
- "borderStyle": "solid",
4922
- "borderWidth": 0,
4923
- "boxSizing": "border-box",
4924
- "display": "flex",
4925
- "flexDirection": "row",
4926
- "margin": 0,
4927
- "minHeight": 0,
4928
- "minWidth": 0,
4929
- "padding": 0,
4930
- "position": "relative",
4931
- "zIndex": 0,
4932
- }
4933
- }
4934
- >
4935
- <button
4936
- aria-disabled={false}
4937
- aria-label=""
4938
- className=""
4939
- onBlur={[Function]}
4940
- onClick={[Function]}
4941
- onDragStart={[Function]}
4942
- onFocus={[Function]}
4943
- onKeyDown={[Function]}
4944
- onKeyUp={[Function]}
4945
- onMouseDown={[Function]}
4946
- onMouseEnter={[Function]}
4947
- onMouseLeave={[Function]}
4948
- onMouseUp={[Function]}
4949
- onTouchCancel={[Function]}
4950
- onTouchEnd={[Function]}
4951
- onTouchStart={[Function]}
4952
- role="button"
4953
- style={
4954
- Object {
4955
- "::MozFocusInner": Object {
4956
- "border": 0,
4957
- },
4958
- ":focus": Object {
4959
- "WebkitTapHighlightColor": "rgba(0,0,0,0)",
4960
- },
4961
- "alignItems": "center",
4962
- "background": "#1865f2",
4963
- "border": "none",
4964
- "borderRadius": 4,
4965
- "boxSizing": "border-box",
4966
- "color": "#ffffff",
4967
- "cursor": "pointer",
4968
- "display": "inline-flex",
4969
- "height": 40,
4970
- "justifyContent": "center",
4971
- "margin": 0,
4972
- "outline": "none",
4973
- "paddingBottom": 0,
4974
- "paddingLeft": 16,
4975
- "paddingRight": 16,
4976
- "paddingTop": 0,
4977
- "position": "relative",
4978
- "textDecoration": "none",
4979
- "touchAction": "manipulation",
4980
- "userSelect": "none",
4981
- }
4982
- }
4983
- tabIndex={0}
4984
- type="button"
4985
- >
4986
- <span
4987
- className=""
4988
- style={
4989
- Object {
4990
- "MozOsxFontSmoothing": "grayscale",
4991
- "WebkitFontSmoothing": "antialiased",
4992
- "alignItems": "center",
4993
- "display": "inline-block",
4994
- "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
4995
- "fontSize": 16,
4996
- "fontWeight": "bold",
4997
- "lineHeight": "20px",
4998
- "overflow": "hidden",
4999
- "pointerEvents": "none",
5000
- "textOverflow": "ellipsis",
5001
- "whiteSpace": "nowrap",
5002
- }
5003
- }
5004
- >
5005
- Click me!
5006
- </span>
5007
- </button>
5008
- </div>
5009
- `;