@khanacademy/wonder-blocks-button 2.9.13

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