@khanacademy/wonder-blocks-tooltip 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/LICENSE +21 -0
  2. package/dist/es/index.js +1133 -0
  3. package/dist/index.js +1389 -0
  4. package/dist/index.js.flow +2 -0
  5. package/docs.md +11 -0
  6. package/package.json +37 -0
  7. package/src/__tests__/__snapshots__/generated-snapshot.test.js.snap +2674 -0
  8. package/src/__tests__/generated-snapshot.test.js +475 -0
  9. package/src/components/__tests__/__snapshots__/tooltip-tail.test.js.snap +9 -0
  10. package/src/components/__tests__/__snapshots__/tooltip.test.js.snap +47 -0
  11. package/src/components/__tests__/tooltip-anchor.test.js +987 -0
  12. package/src/components/__tests__/tooltip-bubble.test.js +80 -0
  13. package/src/components/__tests__/tooltip-popper.test.js +71 -0
  14. package/src/components/__tests__/tooltip-tail.test.js +117 -0
  15. package/src/components/__tests__/tooltip.integration.test.js +79 -0
  16. package/src/components/__tests__/tooltip.test.js +401 -0
  17. package/src/components/tooltip-anchor.js +330 -0
  18. package/src/components/tooltip-bubble.js +150 -0
  19. package/src/components/tooltip-bubble.md +92 -0
  20. package/src/components/tooltip-content.js +76 -0
  21. package/src/components/tooltip-content.md +34 -0
  22. package/src/components/tooltip-popper.js +101 -0
  23. package/src/components/tooltip-tail.js +462 -0
  24. package/src/components/tooltip-tail.md +143 -0
  25. package/src/components/tooltip.js +235 -0
  26. package/src/components/tooltip.md +194 -0
  27. package/src/components/tooltip.stories.js +76 -0
  28. package/src/index.js +12 -0
  29. package/src/util/__tests__/__snapshots__/active-tracker.test.js.snap +3 -0
  30. package/src/util/__tests__/__snapshots__/ref-tracker.test.js.snap +3 -0
  31. package/src/util/__tests__/active-tracker.test.js +142 -0
  32. package/src/util/__tests__/ref-tracker.test.js +153 -0
  33. package/src/util/active-tracker.js +94 -0
  34. package/src/util/constants.js +7 -0
  35. package/src/util/ref-tracker.js +46 -0
  36. package/src/util/types.js +29 -0
@@ -0,0 +1,2674 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`wonder-blocks-tooltip example 1 1`] = `
4
+ <span
5
+ aria-describedby="uid-tooltip-0-aria-content"
6
+ className=""
7
+ style={
8
+ Object {
9
+ "MozOsxFontSmoothing": "grayscale",
10
+ "WebkitFontSmoothing": "antialiased",
11
+ }
12
+ }
13
+ >
14
+ Some text
15
+ </span>
16
+ `;
17
+
18
+ exports[`wonder-blocks-tooltip example 2 1`] = `
19
+ <div
20
+ className=""
21
+ style={
22
+ Object {
23
+ "alignItems": "stretch",
24
+ "borderStyle": "solid",
25
+ "borderWidth": 0,
26
+ "boxSizing": "border-box",
27
+ "display": "flex",
28
+ "flexDirection": "column",
29
+ "margin": 0,
30
+ "minHeight": 0,
31
+ "minWidth": 0,
32
+ "padding": 0,
33
+ "position": "relative",
34
+ "zIndex": 0,
35
+ }
36
+ }
37
+ >
38
+ Some text
39
+ <input
40
+ aria-describedby="my-a11y-tooltip"
41
+ />
42
+ </div>
43
+ `;
44
+
45
+ exports[`wonder-blocks-tooltip example 3 1`] = `
46
+ <div
47
+ className=""
48
+ style={
49
+ Object {
50
+ "alignItems": "stretch",
51
+ "borderStyle": "solid",
52
+ "borderWidth": 0,
53
+ "boxSizing": "border-box",
54
+ "display": "flex",
55
+ "flexDirection": "column",
56
+ "margin": 0,
57
+ "minHeight": 0,
58
+ "minWidth": 0,
59
+ "padding": 0,
60
+ "position": "relative",
61
+ "zIndex": 0,
62
+ }
63
+ }
64
+ >
65
+ <div
66
+ className=""
67
+ style={
68
+ Object {
69
+ "alignItems": "stretch",
70
+ "border": "1px solid black",
71
+ "borderStyle": "solid",
72
+ "borderWidth": 0,
73
+ "boxSizing": "border-box",
74
+ "display": "flex",
75
+ "flexDirection": "column",
76
+ "height": 100,
77
+ "margin": 10,
78
+ "minHeight": 0,
79
+ "minWidth": 0,
80
+ "overflow": "auto",
81
+ "padding": 0,
82
+ "position": "relative",
83
+ "zIndex": 0,
84
+ }
85
+ }
86
+ >
87
+ <div
88
+ className=""
89
+ style={
90
+ Object {
91
+ "alignItems": "stretch",
92
+ "borderStyle": "solid",
93
+ "borderWidth": 0,
94
+ "boxSizing": "border-box",
95
+ "display": "flex",
96
+ "flexDirection": "column",
97
+ "margin": 0,
98
+ "minHeight": "200vh",
99
+ "minWidth": 0,
100
+ "padding": 0,
101
+ "position": "relative",
102
+ "zIndex": 0,
103
+ }
104
+ }
105
+ >
106
+ <span
107
+ className=""
108
+ style={
109
+ Object {
110
+ "MozOsxFontSmoothing": "grayscale",
111
+ "WebkitFontSmoothing": "antialiased",
112
+ "display": "block",
113
+ "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
114
+ "fontSize": 16,
115
+ "fontWeight": 400,
116
+ "lineHeight": "22px",
117
+ }
118
+ }
119
+ >
120
+ This is a big long piece of text with a
121
+ <span
122
+ aria-describedby="uid-tooltip-1-aria-content"
123
+ className=""
124
+ style={
125
+ Object {
126
+ "MozOsxFontSmoothing": "grayscale",
127
+ "WebkitFontSmoothing": "antialiased",
128
+ }
129
+ }
130
+ >
131
+ [tooltip]
132
+ </span>
133
+ <span>
134
+
135
+ </span>
136
+ in the middle.
137
+ </span>
138
+ </div>
139
+ </div>
140
+ </div>
141
+ `;
142
+
143
+ exports[`wonder-blocks-tooltip example 4 1`] = `
144
+ <button
145
+ className=""
146
+ disabled={false}
147
+ onBlur={[Function]}
148
+ onClick={[Function]}
149
+ onDragStart={[Function]}
150
+ onFocus={[Function]}
151
+ onKeyDown={[Function]}
152
+ onKeyUp={[Function]}
153
+ onMouseDown={[Function]}
154
+ onMouseEnter={[Function]}
155
+ onMouseLeave={[Function]}
156
+ onMouseUp={[Function]}
157
+ onTouchCancel={[Function]}
158
+ onTouchEnd={[Function]}
159
+ onTouchStart={[Function]}
160
+ role="button"
161
+ style={
162
+ Object {
163
+ "::MozFocusInner": Object {
164
+ "border": 0,
165
+ },
166
+ ":focus": Object {
167
+ "WebkitTapHighlightColor": "rgba(0,0,0,0)",
168
+ },
169
+ "alignItems": "center",
170
+ "background": "#1865f2",
171
+ "border": "none",
172
+ "borderRadius": 4,
173
+ "boxSizing": "border-box",
174
+ "color": "#ffffff",
175
+ "cursor": "pointer",
176
+ "display": "inline-flex",
177
+ "height": 40,
178
+ "justifyContent": "center",
179
+ "margin": 0,
180
+ "outline": "none",
181
+ "paddingBottom": 0,
182
+ "paddingLeft": 16,
183
+ "paddingRight": 16,
184
+ "paddingTop": 0,
185
+ "position": "relative",
186
+ "textDecoration": "none",
187
+ "touchAction": "manipulation",
188
+ "userSelect": "none",
189
+ }
190
+ }
191
+ tabIndex={0}
192
+ type="button"
193
+ >
194
+ <span
195
+ className=""
196
+ style={
197
+ Object {
198
+ "MozOsxFontSmoothing": "grayscale",
199
+ "WebkitFontSmoothing": "antialiased",
200
+ "alignItems": "center",
201
+ "display": "inline-block",
202
+ "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
203
+ "fontSize": 16,
204
+ "fontWeight": "bold",
205
+ "lineHeight": "20px",
206
+ "overflow": "hidden",
207
+ "pointerEvents": "none",
208
+ "textOverflow": "ellipsis",
209
+ "whiteSpace": "nowrap",
210
+ }
211
+ }
212
+ >
213
+ Click here!
214
+ </span>
215
+ </button>
216
+ `;
217
+
218
+ exports[`wonder-blocks-tooltip example 5 1`] = `
219
+ <div
220
+ className=""
221
+ style={
222
+ Object {
223
+ "alignItems": "stretch",
224
+ "borderStyle": "solid",
225
+ "borderWidth": 0,
226
+ "boxSizing": "border-box",
227
+ "display": "flex",
228
+ "flexDirection": "column",
229
+ "margin": 0,
230
+ "minHeight": 0,
231
+ "minWidth": 0,
232
+ "padding": 0,
233
+ "position": "relative",
234
+ "zIndex": 0,
235
+ }
236
+ }
237
+ >
238
+ <span
239
+ className=""
240
+ style={
241
+ Object {
242
+ "MozOsxFontSmoothing": "grayscale",
243
+ "WebkitFontSmoothing": "antialiased",
244
+ "display": "block",
245
+ "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
246
+ "fontSize": 14,
247
+ "fontWeight": 400,
248
+ "lineHeight": "18px",
249
+ }
250
+ }
251
+ >
252
+ Here, we can see that the first tooltip shown has an initial delay before it appears, as does the last tooltip shown, yet when moving between tooltipped items, the transition from one to another is instantaneous.
253
+ </span>
254
+ <div
255
+ className=""
256
+ style={
257
+ Object {
258
+ "alignItems": "stretch",
259
+ "borderStyle": "solid",
260
+ "borderWidth": 0,
261
+ "boxSizing": "border-box",
262
+ "display": "flex",
263
+ "flexDirection": "row",
264
+ "margin": 0,
265
+ "minHeight": 0,
266
+ "minWidth": 0,
267
+ "padding": 0,
268
+ "position": "relative",
269
+ "zIndex": 0,
270
+ }
271
+ }
272
+ >
273
+ <div
274
+ aria-describedby="uid-tooltip-2-aria-content"
275
+ className=""
276
+ style={
277
+ Object {
278
+ "alignItems": "center",
279
+ "border": "solid 1px steelblue",
280
+ "borderStyle": "solid",
281
+ "borderWidth": 0,
282
+ "boxSizing": "border-box",
283
+ "display": "flex",
284
+ "flexDirection": "column",
285
+ "height": 32,
286
+ "justifyContent": "center",
287
+ "margin": 0,
288
+ "minHeight": 0,
289
+ "minWidth": 0,
290
+ "padding": 0,
291
+ "position": "relative",
292
+ "width": 32,
293
+ "zIndex": 0,
294
+ }
295
+ }
296
+ >
297
+ A
298
+ </div>
299
+ <div
300
+ aria-describedby="uid-tooltip-3-aria-content"
301
+ className=""
302
+ style={
303
+ Object {
304
+ "alignItems": "center",
305
+ "border": "solid 1px steelblue",
306
+ "borderStyle": "solid",
307
+ "borderWidth": 0,
308
+ "boxSizing": "border-box",
309
+ "display": "flex",
310
+ "flexDirection": "column",
311
+ "height": 32,
312
+ "justifyContent": "center",
313
+ "margin": 0,
314
+ "minHeight": 0,
315
+ "minWidth": 0,
316
+ "padding": 0,
317
+ "position": "relative",
318
+ "width": 32,
319
+ "zIndex": 0,
320
+ }
321
+ }
322
+ >
323
+ B
324
+ </div>
325
+ <div
326
+ aria-describedby="uid-tooltip-4-aria-content"
327
+ className=""
328
+ style={
329
+ Object {
330
+ "alignItems": "center",
331
+ "border": "solid 1px steelblue",
332
+ "borderStyle": "solid",
333
+ "borderWidth": 0,
334
+ "boxSizing": "border-box",
335
+ "display": "flex",
336
+ "flexDirection": "column",
337
+ "height": 32,
338
+ "justifyContent": "center",
339
+ "margin": 0,
340
+ "minHeight": 0,
341
+ "minWidth": 0,
342
+ "padding": 0,
343
+ "position": "relative",
344
+ "width": 32,
345
+ "zIndex": 0,
346
+ }
347
+ }
348
+ >
349
+ C
350
+ </div>
351
+ <div
352
+ aria-describedby="uid-tooltip-5-aria-content"
353
+ className=""
354
+ style={
355
+ Object {
356
+ "alignItems": "center",
357
+ "border": "solid 1px steelblue",
358
+ "borderStyle": "solid",
359
+ "borderWidth": 0,
360
+ "boxSizing": "border-box",
361
+ "display": "flex",
362
+ "flexDirection": "column",
363
+ "height": 32,
364
+ "justifyContent": "center",
365
+ "margin": 0,
366
+ "minHeight": 0,
367
+ "minWidth": 0,
368
+ "padding": 0,
369
+ "position": "relative",
370
+ "width": 32,
371
+ "zIndex": 0,
372
+ }
373
+ }
374
+ >
375
+ D
376
+ </div>
377
+ </div>
378
+ </div>
379
+ `;
380
+
381
+ exports[`wonder-blocks-tooltip example 6 1`] = `
382
+ <div
383
+ className=""
384
+ style={
385
+ Object {
386
+ "alignItems": "center",
387
+ "borderStyle": "solid",
388
+ "borderWidth": 0,
389
+ "boxSizing": "border-box",
390
+ "display": "flex",
391
+ "flexDirection": "row",
392
+ "margin": 0,
393
+ "minHeight": 0,
394
+ "minWidth": 0,
395
+ "padding": 0,
396
+ "position": "relative",
397
+ "zIndex": 0,
398
+ }
399
+ }
400
+ >
401
+ <button
402
+ aria-describedby="uid-tooltip-6-aria-content"
403
+ className=""
404
+ disabled={false}
405
+ onBlur={[Function]}
406
+ onClick={[Function]}
407
+ onDragStart={[Function]}
408
+ onFocus={[Function]}
409
+ onKeyDown={[Function]}
410
+ onKeyUp={[Function]}
411
+ onMouseDown={[Function]}
412
+ onMouseEnter={[Function]}
413
+ onMouseLeave={[Function]}
414
+ onMouseUp={[Function]}
415
+ onTouchCancel={[Function]}
416
+ onTouchEnd={[Function]}
417
+ onTouchStart={[Function]}
418
+ role="button"
419
+ style={
420
+ Object {
421
+ "::MozFocusInner": Object {
422
+ "border": 0,
423
+ },
424
+ ":focus": Object {
425
+ "WebkitTapHighlightColor": "rgba(0,0,0,0)",
426
+ },
427
+ "alignItems": "center",
428
+ "background": "#1865f2",
429
+ "border": "none",
430
+ "borderRadius": 4,
431
+ "boxSizing": "border-box",
432
+ "color": "#ffffff",
433
+ "cursor": "pointer",
434
+ "display": "inline-flex",
435
+ "height": 40,
436
+ "justifyContent": "center",
437
+ "margin": 0,
438
+ "outline": "none",
439
+ "paddingBottom": 0,
440
+ "paddingLeft": 16,
441
+ "paddingRight": 16,
442
+ "paddingTop": 0,
443
+ "position": "relative",
444
+ "textDecoration": "none",
445
+ "touchAction": "manipulation",
446
+ "userSelect": "none",
447
+ }
448
+ }
449
+ tabIndex={0}
450
+ type="button"
451
+ >
452
+ <span
453
+ className=""
454
+ style={
455
+ Object {
456
+ "MozOsxFontSmoothing": "grayscale",
457
+ "WebkitFontSmoothing": "antialiased",
458
+ "alignItems": "center",
459
+ "display": "inline-block",
460
+ "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
461
+ "fontSize": 16,
462
+ "fontWeight": "bold",
463
+ "lineHeight": "20px",
464
+ "overflow": "hidden",
465
+ "pointerEvents": "none",
466
+ "textOverflow": "ellipsis",
467
+ "whiteSpace": "nowrap",
468
+ }
469
+ }
470
+ >
471
+ Click me!
472
+ </span>
473
+ </button>
474
+ <div
475
+ aria-hidden="true"
476
+ className=""
477
+ style={
478
+ Object {
479
+ "MsFlexBasis": 16,
480
+ "MsFlexPreferredSize": 16,
481
+ "WebkitFlexBasis": 16,
482
+ "alignItems": "stretch",
483
+ "borderStyle": "solid",
484
+ "borderWidth": 0,
485
+ "boxSizing": "border-box",
486
+ "display": "flex",
487
+ "flexBasis": 16,
488
+ "flexDirection": "column",
489
+ "flexShrink": 0,
490
+ "margin": 0,
491
+ "minHeight": 0,
492
+ "minWidth": 0,
493
+ "padding": 0,
494
+ "position": "relative",
495
+ "width": 16,
496
+ "zIndex": 0,
497
+ }
498
+ }
499
+ />
500
+ <button
501
+ aria-describedby="uid-tooltip-7-aria-content"
502
+ aria-label="search"
503
+ className=""
504
+ disabled={false}
505
+ onBlur={[Function]}
506
+ onClick={[Function]}
507
+ onDragStart={[Function]}
508
+ onFocus={[Function]}
509
+ onKeyDown={[Function]}
510
+ onKeyUp={[Function]}
511
+ onMouseDown={[Function]}
512
+ onMouseEnter={[Function]}
513
+ onMouseLeave={[Function]}
514
+ onMouseUp={[Function]}
515
+ onTouchCancel={[Function]}
516
+ onTouchEnd={[Function]}
517
+ onTouchStart={[Function]}
518
+ style={
519
+ Object {
520
+ "::MozFocusInner": Object {
521
+ "border": 0,
522
+ },
523
+ ":focus": Object {
524
+ "WebkitTapHighlightColor": "rgba(0,0,0,0)",
525
+ },
526
+ "alignItems": "center",
527
+ "background": "none",
528
+ "border": "none",
529
+ "boxSizing": "border-box",
530
+ "color": "#1865f2",
531
+ "cursor": "pointer",
532
+ "display": "inline-flex",
533
+ "height": 40,
534
+ "justifyContent": "center",
535
+ "margin": -8,
536
+ "outline": "none",
537
+ "padding": 0,
538
+ "position": "relative",
539
+ "textDecoration": "none",
540
+ "touchAction": "manipulation",
541
+ "width": 40,
542
+ }
543
+ }
544
+ tabIndex={0}
545
+ type="button"
546
+ >
547
+ <svg
548
+ className=""
549
+ height={24}
550
+ style={
551
+ Object {
552
+ "display": "inline-block",
553
+ "flexGrow": 0,
554
+ "flexShrink": 0,
555
+ "verticalAlign": "text-bottom",
556
+ }
557
+ }
558
+ viewBox="0 0 24 24"
559
+ width={24}
560
+ >
561
+ <path
562
+ d="M11 17a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm6.32-1.094l3.387 3.387a1 1 0 0 1-1.414 1.414l-3.387-3.387a8 8 0 1 1 1.414-1.414z"
563
+ fill="currentColor"
564
+ />
565
+ </svg>
566
+ </button>
567
+ </div>
568
+ `;
569
+
570
+ exports[`wonder-blocks-tooltip example 7 1`] = `
571
+ <div
572
+ className=""
573
+ style={
574
+ Object {
575
+ "alignItems": "stretch",
576
+ "borderStyle": "solid",
577
+ "borderWidth": 0,
578
+ "boxSizing": "border-box",
579
+ "display": "flex",
580
+ "flexDirection": "column",
581
+ "margin": 0,
582
+ "minHeight": 0,
583
+ "minWidth": 0,
584
+ "padding": "10px 16px",
585
+ "position": "relative",
586
+ "zIndex": 0,
587
+ }
588
+ }
589
+ >
590
+ <span
591
+ className=""
592
+ style={
593
+ Object {
594
+ "MozOsxFontSmoothing": "grayscale",
595
+ "WebkitFontSmoothing": "antialiased",
596
+ "display": "block",
597
+ "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
598
+ "fontSize": 16,
599
+ "fontWeight": 400,
600
+ "lineHeight": "20px",
601
+ }
602
+ }
603
+ >
604
+ Only the content
605
+ </span>
606
+ </div>
607
+ `;
608
+
609
+ exports[`wonder-blocks-tooltip example 8 1`] = `
610
+ <div
611
+ className=""
612
+ style={
613
+ Object {
614
+ "alignItems": "stretch",
615
+ "borderStyle": "solid",
616
+ "borderWidth": 0,
617
+ "boxSizing": "border-box",
618
+ "display": "flex",
619
+ "flexDirection": "column",
620
+ "margin": 0,
621
+ "minHeight": 0,
622
+ "minWidth": 0,
623
+ "padding": 16,
624
+ "position": "relative",
625
+ "zIndex": 0,
626
+ }
627
+ }
628
+ >
629
+ <h4
630
+ className=""
631
+ style={
632
+ Object {
633
+ "MozOsxFontSmoothing": "grayscale",
634
+ "WebkitFontSmoothing": "antialiased",
635
+ "display": "block",
636
+ "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
637
+ "fontSize": 20,
638
+ "fontWeight": 700,
639
+ "lineHeight": "24px",
640
+ "marginBottom": 0,
641
+ "marginTop": 0,
642
+ }
643
+ }
644
+ >
645
+ Title text!
646
+ </h4>
647
+ <div
648
+ aria-hidden="true"
649
+ className=""
650
+ style={
651
+ Object {
652
+ "MsFlexBasis": 4,
653
+ "MsFlexPreferredSize": 4,
654
+ "WebkitFlexBasis": 4,
655
+ "alignItems": "stretch",
656
+ "borderStyle": "solid",
657
+ "borderWidth": 0,
658
+ "boxSizing": "border-box",
659
+ "display": "flex",
660
+ "flexBasis": 4,
661
+ "flexDirection": "column",
662
+ "flexShrink": 0,
663
+ "margin": 0,
664
+ "minHeight": 0,
665
+ "minWidth": 0,
666
+ "padding": 0,
667
+ "position": "relative",
668
+ "width": 4,
669
+ "zIndex": 0,
670
+ }
671
+ }
672
+ />
673
+ <span
674
+ className=""
675
+ style={
676
+ Object {
677
+ "MozOsxFontSmoothing": "grayscale",
678
+ "WebkitFontSmoothing": "antialiased",
679
+ "display": "block",
680
+ "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
681
+ "fontSize": 16,
682
+ "fontWeight": 400,
683
+ "lineHeight": "20px",
684
+ }
685
+ }
686
+ >
687
+ Some content in my content
688
+ </span>
689
+ </div>
690
+ `;
691
+
692
+ exports[`wonder-blocks-tooltip example 9 1`] = `
693
+ <div
694
+ className=""
695
+ style={
696
+ Object {
697
+ "alignItems": "stretch",
698
+ "borderStyle": "solid",
699
+ "borderWidth": 0,
700
+ "boxSizing": "border-box",
701
+ "display": "flex",
702
+ "flexDirection": "column",
703
+ "margin": 0,
704
+ "minHeight": 0,
705
+ "minWidth": 0,
706
+ "padding": 16,
707
+ "position": "relative",
708
+ "zIndex": 0,
709
+ }
710
+ }
711
+ >
712
+ <span
713
+ className=""
714
+ style={
715
+ Object {
716
+ "MozOsxFontSmoothing": "grayscale",
717
+ "WebkitFontSmoothing": "antialiased",
718
+ "display": "block",
719
+ "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
720
+ "fontSize": 16,
721
+ "fontWeight": 400,
722
+ "lineHeight": "22px",
723
+ }
724
+ }
725
+ >
726
+ Body text title!
727
+ </span>
728
+ <div
729
+ aria-hidden="true"
730
+ className=""
731
+ style={
732
+ Object {
733
+ "MsFlexBasis": 4,
734
+ "MsFlexPreferredSize": 4,
735
+ "WebkitFlexBasis": 4,
736
+ "alignItems": "stretch",
737
+ "borderStyle": "solid",
738
+ "borderWidth": 0,
739
+ "boxSizing": "border-box",
740
+ "display": "flex",
741
+ "flexBasis": 4,
742
+ "flexDirection": "column",
743
+ "flexShrink": 0,
744
+ "margin": 0,
745
+ "minHeight": 0,
746
+ "minWidth": 0,
747
+ "padding": 0,
748
+ "position": "relative",
749
+ "width": 4,
750
+ "zIndex": 0,
751
+ }
752
+ }
753
+ />
754
+ <span
755
+ className=""
756
+ style={
757
+ Object {
758
+ "MozOsxFontSmoothing": "grayscale",
759
+ "WebkitFontSmoothing": "antialiased",
760
+ "display": "block",
761
+ "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
762
+ "fontSize": 16,
763
+ "fontWeight": 400,
764
+ "lineHeight": "22px",
765
+ }
766
+ }
767
+ >
768
+ Body text content!
769
+ </span>
770
+ <span
771
+ className=""
772
+ style={
773
+ Object {
774
+ "MozOsxFontSmoothing": "grayscale",
775
+ "WebkitFontSmoothing": "antialiased",
776
+ "display": "block",
777
+ "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
778
+ "fontSize": 14,
779
+ "fontWeight": 400,
780
+ "lineHeight": "18px",
781
+ }
782
+ }
783
+ >
784
+ And LabelSmall!
785
+ </span>
786
+ </div>
787
+ `;
788
+
789
+ exports[`wonder-blocks-tooltip example 10 1`] = `
790
+ <div
791
+ className=""
792
+ style={
793
+ Object {
794
+ "alignItems": "stretch",
795
+ "borderStyle": "solid",
796
+ "borderWidth": 0,
797
+ "boxSizing": "border-box",
798
+ "display": "flex",
799
+ "flexDirection": "column",
800
+ "margin": 0,
801
+ "minHeight": 0,
802
+ "minWidth": 0,
803
+ "padding": 0,
804
+ "position": "relative",
805
+ "zIndex": 0,
806
+ }
807
+ }
808
+ >
809
+ <div
810
+ className=""
811
+ data-placement="top"
812
+ style={
813
+ Object {
814
+ "alignItems": "stretch",
815
+ "borderStyle": "solid",
816
+ "borderWidth": 0,
817
+ "boxSizing": "border-box",
818
+ "display": "flex",
819
+ "flexDirection": "column",
820
+ "height": 20,
821
+ "margin": 0,
822
+ "minHeight": 0,
823
+ "minWidth": 0,
824
+ "padding": 0,
825
+ "pointerEvents": "none",
826
+ "position": "relative",
827
+ "top": -1,
828
+ "width": 40,
829
+ "zIndex": 0,
830
+ }
831
+ }
832
+ >
833
+ <svg
834
+ className="arrow_oo4scr"
835
+ height={12}
836
+ style={
837
+ Object {
838
+ "marginLeft": 8,
839
+ "marginRight": 8,
840
+ "paddingBottom": 8,
841
+ }
842
+ }
843
+ width={24}
844
+ >
845
+ <filter
846
+ height="200%"
847
+ id="tooltip-dropshadow-top-0"
848
+ width="200%"
849
+ x="-50%"
850
+ y="-50%"
851
+ >
852
+ <feGaussianBlur
853
+ in="SourceAlpha"
854
+ stdDeviation={3}
855
+ />
856
+ <feComponentTransfer>
857
+ <feFuncA
858
+ slope="0.3"
859
+ type="linear"
860
+ />
861
+ </feComponentTransfer>
862
+ </filter>
863
+ <g
864
+ transform="translate(0,5.5)"
865
+ >
866
+ <polyline
867
+ fill="rgba(33,36,44,0.16)"
868
+ filter="url(#tooltip-dropshadow-top-0)"
869
+ points="0,0 12,12 24,0"
870
+ stroke="rgba(33,36,44,0.32)"
871
+ />
872
+ </g>
873
+ <polyline
874
+ fill="#ffffff"
875
+ points="0,0 12,12 24,0"
876
+ stroke="#ffffff"
877
+ />
878
+ <polyline
879
+ fill="#ffffff"
880
+ points="0,0 12,12 24,0"
881
+ stroke="rgba(33,36,44,0.16)"
882
+ />
883
+ <polyline
884
+ points="0,-0.5 24,-0.5"
885
+ stroke="#ffffff"
886
+ />
887
+ </svg>
888
+ </div>
889
+ <div
890
+ className=""
891
+ style={
892
+ Object {
893
+ "alignItems": "stretch",
894
+ "borderStyle": "solid",
895
+ "borderWidth": 0,
896
+ "boxSizing": "border-box",
897
+ "display": "flex",
898
+ "flexDirection": "row",
899
+ "height": 4,
900
+ "margin": 0,
901
+ "minHeight": 0,
902
+ "minWidth": 0,
903
+ "padding": 0,
904
+ "position": "relative",
905
+ "zIndex": 0,
906
+ }
907
+ }
908
+ >
909
+ <div
910
+ className=""
911
+ style={
912
+ Object {
913
+ "alignItems": "stretch",
914
+ "backgroundColor": "bisque",
915
+ "borderStyle": "solid",
916
+ "borderWidth": 0,
917
+ "boxSizing": "border-box",
918
+ "display": "flex",
919
+ "flexDirection": "column",
920
+ "margin": 0,
921
+ "minHeight": 0,
922
+ "minWidth": 0,
923
+ "padding": 0,
924
+ "position": "relative",
925
+ "width": 8,
926
+ "zIndex": 0,
927
+ }
928
+ }
929
+ />
930
+ <div
931
+ className=""
932
+ style={
933
+ Object {
934
+ "alignItems": "stretch",
935
+ "backgroundColor": "green",
936
+ "borderStyle": "solid",
937
+ "borderWidth": 0,
938
+ "boxSizing": "border-box",
939
+ "display": "flex",
940
+ "flexDirection": "column",
941
+ "margin": 0,
942
+ "minHeight": 0,
943
+ "minWidth": 0,
944
+ "padding": 0,
945
+ "position": "relative",
946
+ "width": 24,
947
+ "zIndex": 0,
948
+ }
949
+ }
950
+ />
951
+ <div
952
+ className=""
953
+ style={
954
+ Object {
955
+ "alignItems": "stretch",
956
+ "backgroundColor": "bisque",
957
+ "borderStyle": "solid",
958
+ "borderWidth": 0,
959
+ "boxSizing": "border-box",
960
+ "display": "flex",
961
+ "flexDirection": "column",
962
+ "margin": 0,
963
+ "minHeight": 0,
964
+ "minWidth": 0,
965
+ "padding": 0,
966
+ "position": "relative",
967
+ "width": 8,
968
+ "zIndex": 0,
969
+ }
970
+ }
971
+ />
972
+ <div
973
+ aria-hidden="true"
974
+ className=""
975
+ style={
976
+ Object {
977
+ "alignItems": "stretch",
978
+ "borderStyle": "solid",
979
+ "borderWidth": 0,
980
+ "boxSizing": "border-box",
981
+ "display": "flex",
982
+ "flexDirection": "column",
983
+ "flexGrow": 1,
984
+ "margin": 0,
985
+ "minHeight": 0,
986
+ "minWidth": 0,
987
+ "padding": 0,
988
+ "position": "relative",
989
+ "zIndex": 0,
990
+ }
991
+ }
992
+ />
993
+ </div>
994
+ </div>
995
+ `;
996
+
997
+ exports[`wonder-blocks-tooltip example 11 1`] = `
998
+ <div
999
+ className=""
1000
+ style={
1001
+ Object {
1002
+ "alignItems": "stretch",
1003
+ "borderStyle": "solid",
1004
+ "borderWidth": 0,
1005
+ "boxSizing": "border-box",
1006
+ "display": "flex",
1007
+ "flexDirection": "row",
1008
+ "margin": 0,
1009
+ "minHeight": 0,
1010
+ "minWidth": 0,
1011
+ "padding": 0,
1012
+ "position": "relative",
1013
+ "zIndex": 0,
1014
+ }
1015
+ }
1016
+ >
1017
+ <div
1018
+ className=""
1019
+ style={
1020
+ Object {
1021
+ "alignItems": "stretch",
1022
+ "borderStyle": "solid",
1023
+ "borderWidth": 0,
1024
+ "boxSizing": "border-box",
1025
+ "display": "flex",
1026
+ "flexDirection": "column",
1027
+ "margin": 0,
1028
+ "minHeight": 0,
1029
+ "minWidth": 0,
1030
+ "padding": 0,
1031
+ "position": "relative",
1032
+ "width": 4,
1033
+ "zIndex": 0,
1034
+ }
1035
+ }
1036
+ >
1037
+ <div
1038
+ className=""
1039
+ style={
1040
+ Object {
1041
+ "alignItems": "stretch",
1042
+ "backgroundColor": "bisque",
1043
+ "borderStyle": "solid",
1044
+ "borderWidth": 0,
1045
+ "boxSizing": "border-box",
1046
+ "display": "flex",
1047
+ "flexDirection": "column",
1048
+ "height": 8,
1049
+ "margin": 0,
1050
+ "minHeight": 0,
1051
+ "minWidth": 0,
1052
+ "padding": 0,
1053
+ "position": "relative",
1054
+ "zIndex": 0,
1055
+ }
1056
+ }
1057
+ />
1058
+ <div
1059
+ className=""
1060
+ style={
1061
+ Object {
1062
+ "alignItems": "stretch",
1063
+ "backgroundColor": "green",
1064
+ "borderStyle": "solid",
1065
+ "borderWidth": 0,
1066
+ "boxSizing": "border-box",
1067
+ "display": "flex",
1068
+ "flexDirection": "column",
1069
+ "height": 24,
1070
+ "margin": 0,
1071
+ "minHeight": 0,
1072
+ "minWidth": 0,
1073
+ "padding": 0,
1074
+ "position": "relative",
1075
+ "zIndex": 0,
1076
+ }
1077
+ }
1078
+ />
1079
+ <div
1080
+ className=""
1081
+ style={
1082
+ Object {
1083
+ "alignItems": "stretch",
1084
+ "backgroundColor": "bisque",
1085
+ "borderStyle": "solid",
1086
+ "borderWidth": 0,
1087
+ "boxSizing": "border-box",
1088
+ "display": "flex",
1089
+ "flexDirection": "column",
1090
+ "height": 8,
1091
+ "margin": 0,
1092
+ "minHeight": 0,
1093
+ "minWidth": 0,
1094
+ "padding": 0,
1095
+ "position": "relative",
1096
+ "zIndex": 0,
1097
+ }
1098
+ }
1099
+ />
1100
+ <div
1101
+ aria-hidden="true"
1102
+ className=""
1103
+ style={
1104
+ Object {
1105
+ "alignItems": "stretch",
1106
+ "borderStyle": "solid",
1107
+ "borderWidth": 0,
1108
+ "boxSizing": "border-box",
1109
+ "display": "flex",
1110
+ "flexDirection": "column",
1111
+ "flexGrow": 1,
1112
+ "margin": 0,
1113
+ "minHeight": 0,
1114
+ "minWidth": 0,
1115
+ "padding": 0,
1116
+ "position": "relative",
1117
+ "zIndex": 0,
1118
+ }
1119
+ }
1120
+ />
1121
+ </div>
1122
+ <div
1123
+ className=""
1124
+ data-placement="right"
1125
+ style={
1126
+ Object {
1127
+ "alignItems": "stretch",
1128
+ "borderStyle": "solid",
1129
+ "borderWidth": 0,
1130
+ "boxSizing": "border-box",
1131
+ "display": "flex",
1132
+ "flexDirection": "column",
1133
+ "height": 40,
1134
+ "left": 1,
1135
+ "margin": 0,
1136
+ "minHeight": 0,
1137
+ "minWidth": 0,
1138
+ "padding": 0,
1139
+ "pointerEvents": "none",
1140
+ "position": "relative",
1141
+ "width": 20,
1142
+ "zIndex": 0,
1143
+ }
1144
+ }
1145
+ >
1146
+ <svg
1147
+ className="arrow_oo4scr"
1148
+ height={24}
1149
+ style={
1150
+ Object {
1151
+ "marginBottom": 8,
1152
+ "marginTop": 8,
1153
+ "paddingLeft": 8,
1154
+ }
1155
+ }
1156
+ width={12}
1157
+ >
1158
+ <filter
1159
+ height="200%"
1160
+ id="tooltip-dropshadow-right-1"
1161
+ width="200%"
1162
+ x="-100%"
1163
+ y="-50%"
1164
+ >
1165
+ <feGaussianBlur
1166
+ in="SourceAlpha"
1167
+ stdDeviation={3}
1168
+ />
1169
+ <feComponentTransfer>
1170
+ <feFuncA
1171
+ slope="0.3"
1172
+ type="linear"
1173
+ />
1174
+ </feComponentTransfer>
1175
+ </filter>
1176
+ <g
1177
+ transform="translate(-1,5.5)"
1178
+ >
1179
+ <polyline
1180
+ fill="rgba(33,36,44,0.16)"
1181
+ filter="url(#tooltip-dropshadow-right-1)"
1182
+ points="12,0 0,12 12,24"
1183
+ stroke="rgba(33,36,44,0.32)"
1184
+ />
1185
+ </g>
1186
+ <polyline
1187
+ fill="#ffffff"
1188
+ points="12,0 0,12 12,24"
1189
+ stroke="#ffffff"
1190
+ />
1191
+ <polyline
1192
+ fill="#ffffff"
1193
+ points="12,0 0,12 12,24"
1194
+ stroke="rgba(33,36,44,0.16)"
1195
+ />
1196
+ <polyline
1197
+ points="12.5,0 12.5,24"
1198
+ stroke="#ffffff"
1199
+ />
1200
+ </svg>
1201
+ </div>
1202
+ </div>
1203
+ `;
1204
+
1205
+ exports[`wonder-blocks-tooltip example 12 1`] = `
1206
+ <div
1207
+ className=""
1208
+ style={
1209
+ Object {
1210
+ "alignItems": "stretch",
1211
+ "borderStyle": "solid",
1212
+ "borderWidth": 0,
1213
+ "boxSizing": "border-box",
1214
+ "display": "flex",
1215
+ "flexDirection": "column",
1216
+ "margin": 0,
1217
+ "minHeight": 0,
1218
+ "minWidth": 0,
1219
+ "padding": 0,
1220
+ "position": "relative",
1221
+ "zIndex": 0,
1222
+ }
1223
+ }
1224
+ >
1225
+ <div
1226
+ className=""
1227
+ style={
1228
+ Object {
1229
+ "alignItems": "stretch",
1230
+ "borderStyle": "solid",
1231
+ "borderWidth": 0,
1232
+ "boxSizing": "border-box",
1233
+ "display": "flex",
1234
+ "flexDirection": "row",
1235
+ "height": 4,
1236
+ "margin": 0,
1237
+ "minHeight": 0,
1238
+ "minWidth": 0,
1239
+ "padding": 0,
1240
+ "position": "relative",
1241
+ "zIndex": 0,
1242
+ }
1243
+ }
1244
+ >
1245
+ <div
1246
+ className=""
1247
+ style={
1248
+ Object {
1249
+ "alignItems": "stretch",
1250
+ "backgroundColor": "bisque",
1251
+ "borderStyle": "solid",
1252
+ "borderWidth": 0,
1253
+ "boxSizing": "border-box",
1254
+ "display": "flex",
1255
+ "flexDirection": "column",
1256
+ "margin": 0,
1257
+ "minHeight": 0,
1258
+ "minWidth": 0,
1259
+ "padding": 0,
1260
+ "position": "relative",
1261
+ "width": 8,
1262
+ "zIndex": 0,
1263
+ }
1264
+ }
1265
+ />
1266
+ <div
1267
+ className=""
1268
+ style={
1269
+ Object {
1270
+ "alignItems": "stretch",
1271
+ "backgroundColor": "green",
1272
+ "borderStyle": "solid",
1273
+ "borderWidth": 0,
1274
+ "boxSizing": "border-box",
1275
+ "display": "flex",
1276
+ "flexDirection": "column",
1277
+ "margin": 0,
1278
+ "minHeight": 0,
1279
+ "minWidth": 0,
1280
+ "padding": 0,
1281
+ "position": "relative",
1282
+ "width": 24,
1283
+ "zIndex": 0,
1284
+ }
1285
+ }
1286
+ />
1287
+ <div
1288
+ className=""
1289
+ style={
1290
+ Object {
1291
+ "alignItems": "stretch",
1292
+ "backgroundColor": "bisque",
1293
+ "borderStyle": "solid",
1294
+ "borderWidth": 0,
1295
+ "boxSizing": "border-box",
1296
+ "display": "flex",
1297
+ "flexDirection": "column",
1298
+ "margin": 0,
1299
+ "minHeight": 0,
1300
+ "minWidth": 0,
1301
+ "padding": 0,
1302
+ "position": "relative",
1303
+ "width": 8,
1304
+ "zIndex": 0,
1305
+ }
1306
+ }
1307
+ />
1308
+ <div
1309
+ aria-hidden="true"
1310
+ className=""
1311
+ style={
1312
+ Object {
1313
+ "alignItems": "stretch",
1314
+ "borderStyle": "solid",
1315
+ "borderWidth": 0,
1316
+ "boxSizing": "border-box",
1317
+ "display": "flex",
1318
+ "flexDirection": "column",
1319
+ "flexGrow": 1,
1320
+ "margin": 0,
1321
+ "minHeight": 0,
1322
+ "minWidth": 0,
1323
+ "padding": 0,
1324
+ "position": "relative",
1325
+ "zIndex": 0,
1326
+ }
1327
+ }
1328
+ />
1329
+ </div>
1330
+ <div
1331
+ className=""
1332
+ data-placement="bottom"
1333
+ style={
1334
+ Object {
1335
+ "alignItems": "stretch",
1336
+ "borderStyle": "solid",
1337
+ "borderWidth": 0,
1338
+ "boxSizing": "border-box",
1339
+ "display": "flex",
1340
+ "flexDirection": "column",
1341
+ "height": 20,
1342
+ "margin": 0,
1343
+ "minHeight": 0,
1344
+ "minWidth": 0,
1345
+ "padding": 0,
1346
+ "pointerEvents": "none",
1347
+ "position": "relative",
1348
+ "top": 1,
1349
+ "width": 40,
1350
+ "zIndex": 0,
1351
+ }
1352
+ }
1353
+ >
1354
+ <svg
1355
+ className="arrow_oo4scr"
1356
+ height={12}
1357
+ style={
1358
+ Object {
1359
+ "marginLeft": 8,
1360
+ "marginRight": 8,
1361
+ "paddingTop": 8,
1362
+ }
1363
+ }
1364
+ width={24}
1365
+ >
1366
+ <polyline
1367
+ fill="#ffffff"
1368
+ points="0, 12 12,0 24,12"
1369
+ stroke="#ffffff"
1370
+ />
1371
+ <polyline
1372
+ fill="#ffffff"
1373
+ points="0, 12 12,0 24,12"
1374
+ stroke="rgba(33,36,44,0.16)"
1375
+ />
1376
+ <polyline
1377
+ points="0, 12.5 24,12.5"
1378
+ stroke="#ffffff"
1379
+ />
1380
+ </svg>
1381
+ </div>
1382
+ </div>
1383
+ `;
1384
+
1385
+ exports[`wonder-blocks-tooltip example 13 1`] = `
1386
+ <div
1387
+ className=""
1388
+ style={
1389
+ Object {
1390
+ "alignItems": "stretch",
1391
+ "borderStyle": "solid",
1392
+ "borderWidth": 0,
1393
+ "boxSizing": "border-box",
1394
+ "display": "flex",
1395
+ "flexDirection": "row",
1396
+ "margin": 0,
1397
+ "minHeight": 0,
1398
+ "minWidth": 0,
1399
+ "padding": 0,
1400
+ "position": "relative",
1401
+ "zIndex": 0,
1402
+ }
1403
+ }
1404
+ >
1405
+ <div
1406
+ className=""
1407
+ data-placement="left"
1408
+ style={
1409
+ Object {
1410
+ "alignItems": "stretch",
1411
+ "borderStyle": "solid",
1412
+ "borderWidth": 0,
1413
+ "boxSizing": "border-box",
1414
+ "display": "flex",
1415
+ "flexDirection": "column",
1416
+ "height": 40,
1417
+ "left": -1,
1418
+ "margin": 0,
1419
+ "minHeight": 0,
1420
+ "minWidth": 0,
1421
+ "padding": 0,
1422
+ "pointerEvents": "none",
1423
+ "position": "relative",
1424
+ "width": 20,
1425
+ "zIndex": 0,
1426
+ }
1427
+ }
1428
+ >
1429
+ <svg
1430
+ className="arrow_oo4scr"
1431
+ height={24}
1432
+ style={
1433
+ Object {
1434
+ "marginBottom": 8,
1435
+ "marginTop": 8,
1436
+ "paddingRight": 8,
1437
+ }
1438
+ }
1439
+ width={12}
1440
+ >
1441
+ <filter
1442
+ height="200%"
1443
+ id="tooltip-dropshadow-left-2"
1444
+ width="200%"
1445
+ x="0%"
1446
+ y="-50%"
1447
+ >
1448
+ <feGaussianBlur
1449
+ in="SourceAlpha"
1450
+ stdDeviation={3}
1451
+ />
1452
+ <feComponentTransfer>
1453
+ <feFuncA
1454
+ slope="0.3"
1455
+ type="linear"
1456
+ />
1457
+ </feComponentTransfer>
1458
+ </filter>
1459
+ <g
1460
+ transform="translate(1,5.5)"
1461
+ >
1462
+ <polyline
1463
+ fill="rgba(33,36,44,0.16)"
1464
+ filter="url(#tooltip-dropshadow-left-2)"
1465
+ points="0,0 12,12 0,24"
1466
+ stroke="rgba(33,36,44,0.32)"
1467
+ />
1468
+ </g>
1469
+ <polyline
1470
+ fill="#ffffff"
1471
+ points="0,0 12,12 0,24"
1472
+ stroke="#ffffff"
1473
+ />
1474
+ <polyline
1475
+ fill="#ffffff"
1476
+ points="0,0 12,12 0,24"
1477
+ stroke="rgba(33,36,44,0.16)"
1478
+ />
1479
+ <polyline
1480
+ points="-0.5,0 -0.5,24"
1481
+ stroke="#ffffff"
1482
+ />
1483
+ </svg>
1484
+ </div>
1485
+ <div
1486
+ className=""
1487
+ style={
1488
+ Object {
1489
+ "alignItems": "stretch",
1490
+ "borderStyle": "solid",
1491
+ "borderWidth": 0,
1492
+ "boxSizing": "border-box",
1493
+ "display": "flex",
1494
+ "flexDirection": "column",
1495
+ "margin": 0,
1496
+ "minHeight": 0,
1497
+ "minWidth": 0,
1498
+ "padding": 0,
1499
+ "position": "relative",
1500
+ "width": 4,
1501
+ "zIndex": 0,
1502
+ }
1503
+ }
1504
+ >
1505
+ <div
1506
+ className=""
1507
+ style={
1508
+ Object {
1509
+ "alignItems": "stretch",
1510
+ "backgroundColor": "bisque",
1511
+ "borderStyle": "solid",
1512
+ "borderWidth": 0,
1513
+ "boxSizing": "border-box",
1514
+ "display": "flex",
1515
+ "flexDirection": "column",
1516
+ "height": 8,
1517
+ "margin": 0,
1518
+ "minHeight": 0,
1519
+ "minWidth": 0,
1520
+ "padding": 0,
1521
+ "position": "relative",
1522
+ "zIndex": 0,
1523
+ }
1524
+ }
1525
+ />
1526
+ <div
1527
+ className=""
1528
+ style={
1529
+ Object {
1530
+ "alignItems": "stretch",
1531
+ "backgroundColor": "green",
1532
+ "borderStyle": "solid",
1533
+ "borderWidth": 0,
1534
+ "boxSizing": "border-box",
1535
+ "display": "flex",
1536
+ "flexDirection": "column",
1537
+ "height": 24,
1538
+ "margin": 0,
1539
+ "minHeight": 0,
1540
+ "minWidth": 0,
1541
+ "padding": 0,
1542
+ "position": "relative",
1543
+ "zIndex": 0,
1544
+ }
1545
+ }
1546
+ />
1547
+ <div
1548
+ className=""
1549
+ style={
1550
+ Object {
1551
+ "alignItems": "stretch",
1552
+ "backgroundColor": "bisque",
1553
+ "borderStyle": "solid",
1554
+ "borderWidth": 0,
1555
+ "boxSizing": "border-box",
1556
+ "display": "flex",
1557
+ "flexDirection": "column",
1558
+ "height": 8,
1559
+ "margin": 0,
1560
+ "minHeight": 0,
1561
+ "minWidth": 0,
1562
+ "padding": 0,
1563
+ "position": "relative",
1564
+ "zIndex": 0,
1565
+ }
1566
+ }
1567
+ />
1568
+ <div
1569
+ aria-hidden="true"
1570
+ className=""
1571
+ style={
1572
+ Object {
1573
+ "alignItems": "stretch",
1574
+ "borderStyle": "solid",
1575
+ "borderWidth": 0,
1576
+ "boxSizing": "border-box",
1577
+ "display": "flex",
1578
+ "flexDirection": "column",
1579
+ "flexGrow": 1,
1580
+ "margin": 0,
1581
+ "minHeight": 0,
1582
+ "minWidth": 0,
1583
+ "padding": 0,
1584
+ "position": "relative",
1585
+ "zIndex": 0,
1586
+ }
1587
+ }
1588
+ />
1589
+ </div>
1590
+ </div>
1591
+ `;
1592
+
1593
+ exports[`wonder-blocks-tooltip example 14 1`] = `
1594
+ <div
1595
+ className=""
1596
+ style={
1597
+ Object {
1598
+ "alignItems": "stretch",
1599
+ "borderStyle": "solid",
1600
+ "borderWidth": 0,
1601
+ "boxSizing": "border-box",
1602
+ "display": "flex",
1603
+ "flexDirection": "column",
1604
+ "margin": 0,
1605
+ "minHeight": 0,
1606
+ "minWidth": 0,
1607
+ "padding": 0,
1608
+ "position": "relative",
1609
+ "zIndex": 0,
1610
+ }
1611
+ }
1612
+ >
1613
+ <div
1614
+ className=""
1615
+ data-placement="top"
1616
+ onMouseEnter={[Function]}
1617
+ onMouseLeave={[Function]}
1618
+ role="tooltip"
1619
+ style={
1620
+ Object {
1621
+ "alignItems": "stretch",
1622
+ "borderStyle": "solid",
1623
+ "borderWidth": 0,
1624
+ "boxSizing": "border-box",
1625
+ "display": "flex",
1626
+ "flexDirection": "column",
1627
+ "margin": 0,
1628
+ "minHeight": 0,
1629
+ "minWidth": 0,
1630
+ "padding": 0,
1631
+ "position": "relative",
1632
+ "zIndex": 0,
1633
+ }
1634
+ }
1635
+ >
1636
+ <div
1637
+ className=""
1638
+ style={
1639
+ Object {
1640
+ "alignItems": "stretch",
1641
+ "backgroundColor": "#ffffff",
1642
+ "border": "solid 1px rgba(33,36,44,0.16)",
1643
+ "borderRadius": 4,
1644
+ "borderStyle": "solid",
1645
+ "borderWidth": 0,
1646
+ "boxShadow": "0 8px 8px 0 rgba(33,36,44,0.08)",
1647
+ "boxSizing": "border-box",
1648
+ "display": "flex",
1649
+ "flexDirection": "column",
1650
+ "justifyContent": "center",
1651
+ "margin": 0,
1652
+ "maxWidth": 472,
1653
+ "minHeight": 0,
1654
+ "minWidth": 0,
1655
+ "padding": 0,
1656
+ "position": "relative",
1657
+ "zIndex": 0,
1658
+ }
1659
+ }
1660
+ >
1661
+ <div
1662
+ className=""
1663
+ style={
1664
+ Object {
1665
+ "alignItems": "stretch",
1666
+ "borderStyle": "solid",
1667
+ "borderWidth": 0,
1668
+ "boxSizing": "border-box",
1669
+ "display": "flex",
1670
+ "flexDirection": "column",
1671
+ "margin": 0,
1672
+ "minHeight": 0,
1673
+ "minWidth": 0,
1674
+ "padding": "10px 16px",
1675
+ "position": "relative",
1676
+ "zIndex": 0,
1677
+ }
1678
+ }
1679
+ >
1680
+ <span
1681
+ className=""
1682
+ style={
1683
+ Object {
1684
+ "MozOsxFontSmoothing": "grayscale",
1685
+ "WebkitFontSmoothing": "antialiased",
1686
+ "display": "block",
1687
+ "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
1688
+ "fontSize": 16,
1689
+ "fontWeight": 400,
1690
+ "lineHeight": "20px",
1691
+ }
1692
+ }
1693
+ >
1694
+ I'm on the top!
1695
+ </span>
1696
+ </div>
1697
+ </div>
1698
+ <div
1699
+ className=""
1700
+ data-placement="top"
1701
+ style={
1702
+ Object {
1703
+ "alignItems": "stretch",
1704
+ "borderStyle": "solid",
1705
+ "borderWidth": 0,
1706
+ "boxSizing": "border-box",
1707
+ "display": "flex",
1708
+ "flexDirection": "column",
1709
+ "height": 20,
1710
+ "margin": 0,
1711
+ "minHeight": 0,
1712
+ "minWidth": 0,
1713
+ "padding": 0,
1714
+ "pointerEvents": "none",
1715
+ "position": "relative",
1716
+ "top": -1,
1717
+ "width": 40,
1718
+ "zIndex": 0,
1719
+ }
1720
+ }
1721
+ >
1722
+ <svg
1723
+ className="arrow_oo4scr"
1724
+ height={12}
1725
+ style={
1726
+ Object {
1727
+ "marginLeft": 8,
1728
+ "marginRight": 8,
1729
+ "paddingBottom": 8,
1730
+ }
1731
+ }
1732
+ width={24}
1733
+ >
1734
+ <filter
1735
+ height="200%"
1736
+ id="tooltip-dropshadow-top-3"
1737
+ width="200%"
1738
+ x="-50%"
1739
+ y="-50%"
1740
+ >
1741
+ <feGaussianBlur
1742
+ in="SourceAlpha"
1743
+ stdDeviation={3}
1744
+ />
1745
+ <feComponentTransfer>
1746
+ <feFuncA
1747
+ slope="0.3"
1748
+ type="linear"
1749
+ />
1750
+ </feComponentTransfer>
1751
+ </filter>
1752
+ <g
1753
+ transform="translate(0,5.5)"
1754
+ >
1755
+ <polyline
1756
+ fill="rgba(33,36,44,0.16)"
1757
+ filter="url(#tooltip-dropshadow-top-3)"
1758
+ points="0,0 12,12 24,0"
1759
+ stroke="rgba(33,36,44,0.32)"
1760
+ />
1761
+ </g>
1762
+ <polyline
1763
+ fill="#ffffff"
1764
+ points="0,0 12,12 24,0"
1765
+ stroke="#ffffff"
1766
+ />
1767
+ <polyline
1768
+ fill="#ffffff"
1769
+ points="0,0 12,12 24,0"
1770
+ stroke="rgba(33,36,44,0.16)"
1771
+ />
1772
+ <polyline
1773
+ points="0,-0.5 24,-0.5"
1774
+ stroke="#ffffff"
1775
+ />
1776
+ </svg>
1777
+ </div>
1778
+ </div>
1779
+ </div>
1780
+ `;
1781
+
1782
+ exports[`wonder-blocks-tooltip example 15 1`] = `
1783
+ <div
1784
+ className=""
1785
+ style={
1786
+ Object {
1787
+ "alignItems": "flex-start",
1788
+ "borderStyle": "solid",
1789
+ "borderWidth": 0,
1790
+ "boxSizing": "border-box",
1791
+ "display": "flex",
1792
+ "flexDirection": "column",
1793
+ "margin": 0,
1794
+ "minHeight": 0,
1795
+ "minWidth": 0,
1796
+ "padding": 0,
1797
+ "position": "relative",
1798
+ "zIndex": 0,
1799
+ }
1800
+ }
1801
+ >
1802
+ <div
1803
+ className=""
1804
+ data-placement="right"
1805
+ onMouseEnter={[Function]}
1806
+ onMouseLeave={[Function]}
1807
+ role="tooltip"
1808
+ style={
1809
+ Object {
1810
+ "alignItems": "stretch",
1811
+ "borderStyle": "solid",
1812
+ "borderWidth": 0,
1813
+ "boxSizing": "border-box",
1814
+ "display": "flex",
1815
+ "flexDirection": "row-reverse",
1816
+ "margin": 0,
1817
+ "minHeight": 0,
1818
+ "minWidth": 0,
1819
+ "padding": 0,
1820
+ "position": "relative",
1821
+ "zIndex": 0,
1822
+ }
1823
+ }
1824
+ >
1825
+ <div
1826
+ className=""
1827
+ style={
1828
+ Object {
1829
+ "alignItems": "stretch",
1830
+ "backgroundColor": "#ffffff",
1831
+ "border": "solid 1px rgba(33,36,44,0.16)",
1832
+ "borderRadius": 4,
1833
+ "borderStyle": "solid",
1834
+ "borderWidth": 0,
1835
+ "boxShadow": "0 8px 8px 0 rgba(33,36,44,0.08)",
1836
+ "boxSizing": "border-box",
1837
+ "display": "flex",
1838
+ "flexDirection": "column",
1839
+ "justifyContent": "center",
1840
+ "margin": 0,
1841
+ "maxWidth": 472,
1842
+ "minHeight": 0,
1843
+ "minWidth": 0,
1844
+ "padding": 0,
1845
+ "position": "relative",
1846
+ "zIndex": 0,
1847
+ }
1848
+ }
1849
+ >
1850
+ <div
1851
+ className=""
1852
+ style={
1853
+ Object {
1854
+ "alignItems": "stretch",
1855
+ "borderStyle": "solid",
1856
+ "borderWidth": 0,
1857
+ "boxSizing": "border-box",
1858
+ "display": "flex",
1859
+ "flexDirection": "column",
1860
+ "margin": 0,
1861
+ "minHeight": 0,
1862
+ "minWidth": 0,
1863
+ "padding": "10px 16px",
1864
+ "position": "relative",
1865
+ "zIndex": 0,
1866
+ }
1867
+ }
1868
+ >
1869
+ <span
1870
+ className=""
1871
+ style={
1872
+ Object {
1873
+ "MozOsxFontSmoothing": "grayscale",
1874
+ "WebkitFontSmoothing": "antialiased",
1875
+ "display": "block",
1876
+ "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
1877
+ "fontSize": 16,
1878
+ "fontWeight": 400,
1879
+ "lineHeight": "20px",
1880
+ }
1881
+ }
1882
+ >
1883
+ I'm on the right!
1884
+ </span>
1885
+ </div>
1886
+ </div>
1887
+ <div
1888
+ className=""
1889
+ data-placement="right"
1890
+ style={
1891
+ Object {
1892
+ "alignItems": "stretch",
1893
+ "borderStyle": "solid",
1894
+ "borderWidth": 0,
1895
+ "boxSizing": "border-box",
1896
+ "display": "flex",
1897
+ "flexDirection": "column",
1898
+ "height": 40,
1899
+ "left": 1,
1900
+ "margin": 0,
1901
+ "minHeight": 0,
1902
+ "minWidth": 0,
1903
+ "padding": 0,
1904
+ "pointerEvents": "none",
1905
+ "position": "relative",
1906
+ "width": 20,
1907
+ "zIndex": 0,
1908
+ }
1909
+ }
1910
+ >
1911
+ <svg
1912
+ className="arrow_oo4scr"
1913
+ height={24}
1914
+ style={
1915
+ Object {
1916
+ "marginBottom": 8,
1917
+ "marginTop": 8,
1918
+ "paddingLeft": 8,
1919
+ }
1920
+ }
1921
+ width={12}
1922
+ >
1923
+ <filter
1924
+ height="200%"
1925
+ id="tooltip-dropshadow-right-4"
1926
+ width="200%"
1927
+ x="-100%"
1928
+ y="-50%"
1929
+ >
1930
+ <feGaussianBlur
1931
+ in="SourceAlpha"
1932
+ stdDeviation={3}
1933
+ />
1934
+ <feComponentTransfer>
1935
+ <feFuncA
1936
+ slope="0.3"
1937
+ type="linear"
1938
+ />
1939
+ </feComponentTransfer>
1940
+ </filter>
1941
+ <g
1942
+ transform="translate(-1,5.5)"
1943
+ >
1944
+ <polyline
1945
+ fill="rgba(33,36,44,0.16)"
1946
+ filter="url(#tooltip-dropshadow-right-4)"
1947
+ points="12,0 0,12 12,24"
1948
+ stroke="rgba(33,36,44,0.32)"
1949
+ />
1950
+ </g>
1951
+ <polyline
1952
+ fill="#ffffff"
1953
+ points="12,0 0,12 12,24"
1954
+ stroke="#ffffff"
1955
+ />
1956
+ <polyline
1957
+ fill="#ffffff"
1958
+ points="12,0 0,12 12,24"
1959
+ stroke="rgba(33,36,44,0.16)"
1960
+ />
1961
+ <polyline
1962
+ points="12.5,0 12.5,24"
1963
+ stroke="#ffffff"
1964
+ />
1965
+ </svg>
1966
+ </div>
1967
+ </div>
1968
+ </div>
1969
+ `;
1970
+
1971
+ exports[`wonder-blocks-tooltip example 16 1`] = `
1972
+ <div
1973
+ className=""
1974
+ style={
1975
+ Object {
1976
+ "alignItems": "stretch",
1977
+ "borderStyle": "solid",
1978
+ "borderWidth": 0,
1979
+ "boxSizing": "border-box",
1980
+ "display": "flex",
1981
+ "flexDirection": "column",
1982
+ "margin": 0,
1983
+ "minHeight": 0,
1984
+ "minWidth": 0,
1985
+ "padding": 0,
1986
+ "position": "relative",
1987
+ "zIndex": 0,
1988
+ }
1989
+ }
1990
+ >
1991
+ <div
1992
+ className=""
1993
+ data-placement="bottom"
1994
+ onMouseEnter={[Function]}
1995
+ onMouseLeave={[Function]}
1996
+ role="tooltip"
1997
+ style={
1998
+ Object {
1999
+ "alignItems": "stretch",
2000
+ "borderStyle": "solid",
2001
+ "borderWidth": 0,
2002
+ "boxSizing": "border-box",
2003
+ "display": "flex",
2004
+ "flexDirection": "column-reverse",
2005
+ "margin": 0,
2006
+ "minHeight": 0,
2007
+ "minWidth": 0,
2008
+ "padding": 0,
2009
+ "position": "relative",
2010
+ "zIndex": 0,
2011
+ }
2012
+ }
2013
+ >
2014
+ <div
2015
+ className=""
2016
+ style={
2017
+ Object {
2018
+ "alignItems": "stretch",
2019
+ "backgroundColor": "#ffffff",
2020
+ "border": "solid 1px rgba(33,36,44,0.16)",
2021
+ "borderRadius": 4,
2022
+ "borderStyle": "solid",
2023
+ "borderWidth": 0,
2024
+ "boxShadow": "0 8px 8px 0 rgba(33,36,44,0.08)",
2025
+ "boxSizing": "border-box",
2026
+ "display": "flex",
2027
+ "flexDirection": "column",
2028
+ "justifyContent": "center",
2029
+ "margin": 0,
2030
+ "maxWidth": 472,
2031
+ "minHeight": 0,
2032
+ "minWidth": 0,
2033
+ "padding": 0,
2034
+ "position": "relative",
2035
+ "zIndex": 0,
2036
+ }
2037
+ }
2038
+ >
2039
+ <div
2040
+ className=""
2041
+ style={
2042
+ Object {
2043
+ "alignItems": "stretch",
2044
+ "borderStyle": "solid",
2045
+ "borderWidth": 0,
2046
+ "boxSizing": "border-box",
2047
+ "display": "flex",
2048
+ "flexDirection": "column",
2049
+ "margin": 0,
2050
+ "minHeight": 0,
2051
+ "minWidth": 0,
2052
+ "padding": "10px 16px",
2053
+ "position": "relative",
2054
+ "zIndex": 0,
2055
+ }
2056
+ }
2057
+ >
2058
+ <span
2059
+ className=""
2060
+ style={
2061
+ Object {
2062
+ "MozOsxFontSmoothing": "grayscale",
2063
+ "WebkitFontSmoothing": "antialiased",
2064
+ "display": "block",
2065
+ "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
2066
+ "fontSize": 16,
2067
+ "fontWeight": 400,
2068
+ "lineHeight": "20px",
2069
+ }
2070
+ }
2071
+ >
2072
+ I'm on the bottom!
2073
+ </span>
2074
+ </div>
2075
+ </div>
2076
+ <div
2077
+ className=""
2078
+ data-placement="bottom"
2079
+ style={
2080
+ Object {
2081
+ "alignItems": "stretch",
2082
+ "borderStyle": "solid",
2083
+ "borderWidth": 0,
2084
+ "boxSizing": "border-box",
2085
+ "display": "flex",
2086
+ "flexDirection": "column",
2087
+ "height": 20,
2088
+ "margin": 0,
2089
+ "minHeight": 0,
2090
+ "minWidth": 0,
2091
+ "padding": 0,
2092
+ "pointerEvents": "none",
2093
+ "position": "relative",
2094
+ "top": 1,
2095
+ "width": 40,
2096
+ "zIndex": 0,
2097
+ }
2098
+ }
2099
+ >
2100
+ <svg
2101
+ className="arrow_oo4scr"
2102
+ height={12}
2103
+ style={
2104
+ Object {
2105
+ "marginLeft": 8,
2106
+ "marginRight": 8,
2107
+ "paddingTop": 8,
2108
+ }
2109
+ }
2110
+ width={24}
2111
+ >
2112
+ <polyline
2113
+ fill="#ffffff"
2114
+ points="0, 12 12,0 24,12"
2115
+ stroke="#ffffff"
2116
+ />
2117
+ <polyline
2118
+ fill="#ffffff"
2119
+ points="0, 12 12,0 24,12"
2120
+ stroke="rgba(33,36,44,0.16)"
2121
+ />
2122
+ <polyline
2123
+ points="0, 12.5 24,12.5"
2124
+ stroke="#ffffff"
2125
+ />
2126
+ </svg>
2127
+ </div>
2128
+ </div>
2129
+ </div>
2130
+ `;
2131
+
2132
+ exports[`wonder-blocks-tooltip example 17 1`] = `
2133
+ <div
2134
+ className=""
2135
+ style={
2136
+ Object {
2137
+ "alignItems": "stretch",
2138
+ "borderStyle": "solid",
2139
+ "borderWidth": 0,
2140
+ "boxSizing": "border-box",
2141
+ "display": "flex",
2142
+ "flexDirection": "column",
2143
+ "margin": 0,
2144
+ "minHeight": 0,
2145
+ "minWidth": 0,
2146
+ "padding": 0,
2147
+ "position": "relative",
2148
+ "zIndex": 0,
2149
+ }
2150
+ }
2151
+ >
2152
+ <div
2153
+ className=""
2154
+ data-placement="left"
2155
+ onMouseEnter={[Function]}
2156
+ onMouseLeave={[Function]}
2157
+ role="tooltip"
2158
+ style={
2159
+ Object {
2160
+ "alignItems": "stretch",
2161
+ "borderStyle": "solid",
2162
+ "borderWidth": 0,
2163
+ "boxSizing": "border-box",
2164
+ "display": "flex",
2165
+ "flexDirection": "row",
2166
+ "margin": 0,
2167
+ "minHeight": 0,
2168
+ "minWidth": 0,
2169
+ "padding": 0,
2170
+ "position": "relative",
2171
+ "zIndex": 0,
2172
+ }
2173
+ }
2174
+ >
2175
+ <div
2176
+ className=""
2177
+ style={
2178
+ Object {
2179
+ "alignItems": "stretch",
2180
+ "backgroundColor": "#ffffff",
2181
+ "border": "solid 1px rgba(33,36,44,0.16)",
2182
+ "borderRadius": 4,
2183
+ "borderStyle": "solid",
2184
+ "borderWidth": 0,
2185
+ "boxShadow": "0 8px 8px 0 rgba(33,36,44,0.08)",
2186
+ "boxSizing": "border-box",
2187
+ "display": "flex",
2188
+ "flexDirection": "column",
2189
+ "justifyContent": "center",
2190
+ "margin": 0,
2191
+ "maxWidth": 472,
2192
+ "minHeight": 0,
2193
+ "minWidth": 0,
2194
+ "padding": 0,
2195
+ "position": "relative",
2196
+ "zIndex": 0,
2197
+ }
2198
+ }
2199
+ >
2200
+ <div
2201
+ className=""
2202
+ style={
2203
+ Object {
2204
+ "alignItems": "stretch",
2205
+ "borderStyle": "solid",
2206
+ "borderWidth": 0,
2207
+ "boxSizing": "border-box",
2208
+ "display": "flex",
2209
+ "flexDirection": "column",
2210
+ "margin": 0,
2211
+ "minHeight": 0,
2212
+ "minWidth": 0,
2213
+ "padding": "10px 16px",
2214
+ "position": "relative",
2215
+ "zIndex": 0,
2216
+ }
2217
+ }
2218
+ >
2219
+ <span
2220
+ className=""
2221
+ style={
2222
+ Object {
2223
+ "MozOsxFontSmoothing": "grayscale",
2224
+ "WebkitFontSmoothing": "antialiased",
2225
+ "display": "block",
2226
+ "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
2227
+ "fontSize": 16,
2228
+ "fontWeight": 400,
2229
+ "lineHeight": "20px",
2230
+ }
2231
+ }
2232
+ >
2233
+ I'm on the left!
2234
+ </span>
2235
+ </div>
2236
+ </div>
2237
+ <div
2238
+ className=""
2239
+ data-placement="left"
2240
+ style={
2241
+ Object {
2242
+ "alignItems": "stretch",
2243
+ "borderStyle": "solid",
2244
+ "borderWidth": 0,
2245
+ "boxSizing": "border-box",
2246
+ "display": "flex",
2247
+ "flexDirection": "column",
2248
+ "height": 40,
2249
+ "left": -1,
2250
+ "margin": 0,
2251
+ "minHeight": 0,
2252
+ "minWidth": 0,
2253
+ "padding": 0,
2254
+ "pointerEvents": "none",
2255
+ "position": "relative",
2256
+ "width": 20,
2257
+ "zIndex": 0,
2258
+ }
2259
+ }
2260
+ >
2261
+ <svg
2262
+ className="arrow_oo4scr"
2263
+ height={24}
2264
+ style={
2265
+ Object {
2266
+ "marginBottom": 8,
2267
+ "marginTop": 8,
2268
+ "paddingRight": 8,
2269
+ }
2270
+ }
2271
+ width={12}
2272
+ >
2273
+ <filter
2274
+ height="200%"
2275
+ id="tooltip-dropshadow-left-5"
2276
+ width="200%"
2277
+ x="0%"
2278
+ y="-50%"
2279
+ >
2280
+ <feGaussianBlur
2281
+ in="SourceAlpha"
2282
+ stdDeviation={3}
2283
+ />
2284
+ <feComponentTransfer>
2285
+ <feFuncA
2286
+ slope="0.3"
2287
+ type="linear"
2288
+ />
2289
+ </feComponentTransfer>
2290
+ </filter>
2291
+ <g
2292
+ transform="translate(1,5.5)"
2293
+ >
2294
+ <polyline
2295
+ fill="rgba(33,36,44,0.16)"
2296
+ filter="url(#tooltip-dropshadow-left-5)"
2297
+ points="0,0 12,12 0,24"
2298
+ stroke="rgba(33,36,44,0.32)"
2299
+ />
2300
+ </g>
2301
+ <polyline
2302
+ fill="#ffffff"
2303
+ points="0,0 12,12 0,24"
2304
+ stroke="#ffffff"
2305
+ />
2306
+ <polyline
2307
+ fill="#ffffff"
2308
+ points="0,0 12,12 0,24"
2309
+ stroke="rgba(33,36,44,0.16)"
2310
+ />
2311
+ <polyline
2312
+ points="-0.5,0 -0.5,24"
2313
+ stroke="#ffffff"
2314
+ />
2315
+ </svg>
2316
+ </div>
2317
+ </div>
2318
+ </div>
2319
+ `;
2320
+
2321
+ exports[`wonder-blocks-tooltip example 18 1`] = `
2322
+ <div
2323
+ className=""
2324
+ style={
2325
+ Object {
2326
+ "alignItems": "stretch",
2327
+ "borderStyle": "solid",
2328
+ "borderWidth": 0,
2329
+ "boxSizing": "border-box",
2330
+ "display": "flex",
2331
+ "flexDirection": "column",
2332
+ "margin": 0,
2333
+ "minHeight": 0,
2334
+ "minWidth": 0,
2335
+ "padding": 0,
2336
+ "position": "relative",
2337
+ "zIndex": 0,
2338
+ }
2339
+ }
2340
+ >
2341
+ <div
2342
+ className=""
2343
+ data-placement="bottom"
2344
+ onMouseEnter={[Function]}
2345
+ onMouseLeave={[Function]}
2346
+ role="tooltip"
2347
+ style={
2348
+ Object {
2349
+ "alignItems": "stretch",
2350
+ "borderStyle": "solid",
2351
+ "borderWidth": 0,
2352
+ "boxSizing": "border-box",
2353
+ "display": "flex",
2354
+ "flexDirection": "column-reverse",
2355
+ "margin": 0,
2356
+ "minHeight": 0,
2357
+ "minWidth": 0,
2358
+ "padding": 0,
2359
+ "position": "relative",
2360
+ "zIndex": 0,
2361
+ }
2362
+ }
2363
+ >
2364
+ <div
2365
+ className=""
2366
+ style={
2367
+ Object {
2368
+ "alignItems": "stretch",
2369
+ "backgroundColor": "#ffffff",
2370
+ "border": "solid 1px rgba(33,36,44,0.16)",
2371
+ "borderRadius": 4,
2372
+ "borderStyle": "solid",
2373
+ "borderWidth": 0,
2374
+ "boxShadow": "0 8px 8px 0 rgba(33,36,44,0.08)",
2375
+ "boxSizing": "border-box",
2376
+ "display": "flex",
2377
+ "flexDirection": "column",
2378
+ "justifyContent": "center",
2379
+ "margin": 0,
2380
+ "maxWidth": 472,
2381
+ "minHeight": 0,
2382
+ "minWidth": 0,
2383
+ "padding": 0,
2384
+ "position": "relative",
2385
+ "zIndex": 0,
2386
+ }
2387
+ }
2388
+ >
2389
+ <div
2390
+ className=""
2391
+ style={
2392
+ Object {
2393
+ "alignItems": "stretch",
2394
+ "borderStyle": "solid",
2395
+ "borderWidth": 0,
2396
+ "boxSizing": "border-box",
2397
+ "display": "flex",
2398
+ "flexDirection": "column",
2399
+ "margin": 0,
2400
+ "minHeight": 0,
2401
+ "minWidth": 0,
2402
+ "padding": "10px 16px",
2403
+ "position": "relative",
2404
+ "zIndex": 0,
2405
+ }
2406
+ }
2407
+ >
2408
+ <span
2409
+ className=""
2410
+ style={
2411
+ Object {
2412
+ "MozOsxFontSmoothing": "grayscale",
2413
+ "WebkitFontSmoothing": "antialiased",
2414
+ "display": "block",
2415
+ "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
2416
+ "fontSize": 16,
2417
+ "fontWeight": 400,
2418
+ "lineHeight": "20px",
2419
+ }
2420
+ }
2421
+ >
2422
+ I'm on the bottom with a tail 50px in!
2423
+ </span>
2424
+ </div>
2425
+ </div>
2426
+ <div
2427
+ className=""
2428
+ data-placement="bottom"
2429
+ style={
2430
+ Object {
2431
+ "alignItems": "stretch",
2432
+ "borderStyle": "solid",
2433
+ "borderWidth": 0,
2434
+ "boxSizing": "border-box",
2435
+ "display": "flex",
2436
+ "flexDirection": "column",
2437
+ "height": 20,
2438
+ "left": 50,
2439
+ "margin": 0,
2440
+ "minHeight": 0,
2441
+ "minWidth": 0,
2442
+ "padding": 0,
2443
+ "pointerEvents": "none",
2444
+ "position": "relative",
2445
+ "top": 1,
2446
+ "width": 40,
2447
+ "zIndex": 0,
2448
+ }
2449
+ }
2450
+ >
2451
+ <svg
2452
+ className="arrow_oo4scr"
2453
+ height={12}
2454
+ style={
2455
+ Object {
2456
+ "marginLeft": 8,
2457
+ "marginRight": 8,
2458
+ "paddingTop": 8,
2459
+ }
2460
+ }
2461
+ width={24}
2462
+ >
2463
+ <polyline
2464
+ fill="#ffffff"
2465
+ points="0, 12 12,0 24,12"
2466
+ stroke="#ffffff"
2467
+ />
2468
+ <polyline
2469
+ fill="#ffffff"
2470
+ points="0, 12 12,0 24,12"
2471
+ stroke="rgba(33,36,44,0.16)"
2472
+ />
2473
+ <polyline
2474
+ points="0, 12.5 24,12.5"
2475
+ stroke="#ffffff"
2476
+ />
2477
+ </svg>
2478
+ </div>
2479
+ </div>
2480
+ </div>
2481
+ `;
2482
+
2483
+ exports[`wonder-blocks-tooltip example 19 1`] = `
2484
+ <div
2485
+ className=""
2486
+ style={
2487
+ Object {
2488
+ "alignItems": "stretch",
2489
+ "borderStyle": "solid",
2490
+ "borderWidth": 0,
2491
+ "boxSizing": "border-box",
2492
+ "display": "flex",
2493
+ "flexDirection": "column",
2494
+ "margin": 0,
2495
+ "minHeight": 0,
2496
+ "minWidth": 0,
2497
+ "padding": 0,
2498
+ "position": "relative",
2499
+ "zIndex": 0,
2500
+ }
2501
+ }
2502
+ >
2503
+ <div
2504
+ className=""
2505
+ data-placement="top"
2506
+ onMouseEnter={[Function]}
2507
+ onMouseLeave={[Function]}
2508
+ role="tooltip"
2509
+ style={
2510
+ Object {
2511
+ "alignItems": "stretch",
2512
+ "backgroundColor": "transparent",
2513
+ "borderStyle": "solid",
2514
+ "borderWidth": 0,
2515
+ "boxSizing": "border-box",
2516
+ "color": "transparent",
2517
+ "display": "flex",
2518
+ "flexDirection": "column",
2519
+ "margin": 0,
2520
+ "minHeight": 0,
2521
+ "minWidth": 0,
2522
+ "opacity": 0,
2523
+ "padding": 0,
2524
+ "pointerEvents": "none",
2525
+ "position": "relative",
2526
+ "zIndex": 0,
2527
+ }
2528
+ }
2529
+ >
2530
+ <div
2531
+ className=""
2532
+ style={
2533
+ Object {
2534
+ "alignItems": "stretch",
2535
+ "backgroundColor": "#ffffff",
2536
+ "border": "solid 1px rgba(33,36,44,0.16)",
2537
+ "borderRadius": 4,
2538
+ "borderStyle": "solid",
2539
+ "borderWidth": 0,
2540
+ "boxShadow": "0 8px 8px 0 rgba(33,36,44,0.08)",
2541
+ "boxSizing": "border-box",
2542
+ "display": "flex",
2543
+ "flexDirection": "column",
2544
+ "justifyContent": "center",
2545
+ "margin": 0,
2546
+ "maxWidth": 472,
2547
+ "minHeight": 0,
2548
+ "minWidth": 0,
2549
+ "padding": 0,
2550
+ "position": "relative",
2551
+ "zIndex": 0,
2552
+ }
2553
+ }
2554
+ >
2555
+ <div
2556
+ className=""
2557
+ style={
2558
+ Object {
2559
+ "alignItems": "stretch",
2560
+ "borderStyle": "solid",
2561
+ "borderWidth": 0,
2562
+ "boxSizing": "border-box",
2563
+ "display": "flex",
2564
+ "flexDirection": "column",
2565
+ "margin": 0,
2566
+ "minHeight": 0,
2567
+ "minWidth": 0,
2568
+ "padding": "10px 16px",
2569
+ "position": "relative",
2570
+ "zIndex": 0,
2571
+ }
2572
+ }
2573
+ >
2574
+ <span
2575
+ className=""
2576
+ style={
2577
+ Object {
2578
+ "MozOsxFontSmoothing": "grayscale",
2579
+ "WebkitFontSmoothing": "antialiased",
2580
+ "display": "block",
2581
+ "fontFamily": "Lato, \\"Noto Sans\\", sans-serif",
2582
+ "fontSize": 16,
2583
+ "fontWeight": 400,
2584
+ "lineHeight": "20px",
2585
+ }
2586
+ }
2587
+ >
2588
+ I'm hidden. So hidden. Shhhhh!
2589
+ </span>
2590
+ </div>
2591
+ </div>
2592
+ <div
2593
+ className=""
2594
+ data-placement="top"
2595
+ style={
2596
+ Object {
2597
+ "alignItems": "stretch",
2598
+ "borderStyle": "solid",
2599
+ "borderWidth": 0,
2600
+ "boxSizing": "border-box",
2601
+ "display": "flex",
2602
+ "flexDirection": "column",
2603
+ "height": 20,
2604
+ "margin": 0,
2605
+ "minHeight": 0,
2606
+ "minWidth": 0,
2607
+ "padding": 0,
2608
+ "pointerEvents": "none",
2609
+ "position": "relative",
2610
+ "top": -1,
2611
+ "width": 40,
2612
+ "zIndex": 0,
2613
+ }
2614
+ }
2615
+ >
2616
+ <svg
2617
+ className="arrow_oo4scr"
2618
+ height={12}
2619
+ style={
2620
+ Object {
2621
+ "marginLeft": 8,
2622
+ "marginRight": 8,
2623
+ "paddingBottom": 8,
2624
+ }
2625
+ }
2626
+ width={24}
2627
+ >
2628
+ <filter
2629
+ height="200%"
2630
+ id="tooltip-dropshadow-top-6"
2631
+ width="200%"
2632
+ x="-50%"
2633
+ y="-50%"
2634
+ >
2635
+ <feGaussianBlur
2636
+ in="SourceAlpha"
2637
+ stdDeviation={3}
2638
+ />
2639
+ <feComponentTransfer>
2640
+ <feFuncA
2641
+ slope="0.3"
2642
+ type="linear"
2643
+ />
2644
+ </feComponentTransfer>
2645
+ </filter>
2646
+ <g
2647
+ transform="translate(0,5.5)"
2648
+ >
2649
+ <polyline
2650
+ fill="rgba(33,36,44,0.16)"
2651
+ filter="url(#tooltip-dropshadow-top-6)"
2652
+ points="0,0 12,12 24,0"
2653
+ stroke="rgba(33,36,44,0.32)"
2654
+ />
2655
+ </g>
2656
+ <polyline
2657
+ fill="#ffffff"
2658
+ points="0,0 12,12 24,0"
2659
+ stroke="#ffffff"
2660
+ />
2661
+ <polyline
2662
+ fill="#ffffff"
2663
+ points="0,0 12,12 24,0"
2664
+ stroke="rgba(33,36,44,0.16)"
2665
+ />
2666
+ <polyline
2667
+ points="0,-0.5 24,-0.5"
2668
+ stroke="#ffffff"
2669
+ />
2670
+ </svg>
2671
+ </div>
2672
+ </div>
2673
+ </div>
2674
+ `;