@patternfly/react-core 4.199.2 → 4.199.5

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 (44) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/umd/react-core.css +2 -2
  3. package/dist/umd/react-core.min.css +221 -221
  4. package/package.json +6 -6
  5. package/src/components/AboutModal/__tests__/AboutModal.test.tsx +41 -60
  6. package/src/components/Accordion/__tests__/Accordion.test.tsx +23 -17
  7. package/src/components/Alert/__tests__/Alert.test.tsx +195 -184
  8. package/src/components/Alert/__tests__/Generated/AlertActionCloseButton.test.tsx +19 -17
  9. package/src/components/Alert/__tests__/Generated/__snapshots__/AlertActionCloseButton.test.tsx.snap +26 -4
  10. package/src/components/Alert/__tests__/__snapshots__/Alert.test.tsx.snap +50 -700
  11. package/src/components/AlertGroup/__tests__/AlertGroup.test.tsx +68 -73
  12. package/src/components/AlertGroup/__tests__/__snapshots__/AlertGroup.test.tsx.snap +1 -893
  13. package/src/components/ApplicationLauncher/__tests__/Generated/ApplicationLauncherSeparator.test.tsx +13 -10
  14. package/src/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncherSeparator.test.tsx.snap +12 -1
  15. package/src/components/Button/__tests__/Button.test.tsx +116 -107
  16. package/src/components/Button/__tests__/__snapshots__/Button.test.tsx.snap +21 -21
  17. package/src/components/Card/__tests__/Card.test.tsx +119 -100
  18. package/src/components/Card/__tests__/CardBody.test.tsx +35 -28
  19. package/src/components/Card/__tests__/CardFooter.test.tsx +28 -24
  20. package/src/components/Card/__tests__/CardHeadMain.test.tsx +19 -14
  21. package/src/components/Card/__tests__/CardHeader.test.tsx +6 -22
  22. package/src/components/Card/__tests__/CardHeaderMain.test.tsx +19 -14
  23. package/src/components/Card/__tests__/CardTitle.test.tsx +25 -0
  24. package/src/components/Card/__tests__/__snapshots__/Card.test.tsx.snap +12 -28
  25. package/src/components/Card/__tests__/__snapshots__/CardBody.test.tsx.snap +2 -4
  26. package/src/components/Card/__tests__/__snapshots__/CardFooter.test.tsx.snap +1 -3
  27. package/src/components/Card/__tests__/__snapshots__/CardHeadMain.test.tsx.snap +1 -11
  28. package/src/components/Card/__tests__/__snapshots__/CardHeader.test.tsx.snap +1 -11
  29. package/src/components/Card/__tests__/__snapshots__/CardHeaderMain.test.tsx.snap +1 -11
  30. package/src/components/Card/__tests__/__snapshots__/CardTitle.test.tsx.snap +3 -0
  31. package/src/components/Checkbox/__tests__/Checkbox.test.tsx +66 -70
  32. package/src/components/Checkbox/__tests__/__snapshots__/Checkbox.test.tsx.snap +9 -204
  33. package/src/components/ClipboardCopy/examples/ClipboardCopy.md +11 -123
  34. package/src/components/ClipboardCopy/examples/ClipboardCopyBasic.tsx +8 -0
  35. package/src/components/ClipboardCopy/examples/ClipboardCopyExpanded.tsx +9 -0
  36. package/src/components/ClipboardCopy/examples/ClipboardCopyExpandedWithArray.tsx +14 -0
  37. package/src/components/ClipboardCopy/examples/ClipboardCopyInlineCompact.tsx +7 -0
  38. package/src/components/ClipboardCopy/examples/ClipboardCopyInlineCompactCode.tsx +8 -0
  39. package/src/components/ClipboardCopy/examples/ClipboardCopyInlineCompactInSentence.tsx +36 -0
  40. package/src/components/ClipboardCopy/examples/ClipboardCopyInlineCompactWithAdditionalAction.tsx +20 -0
  41. package/src/components/ClipboardCopy/examples/ClipboardCopyJSONObject.tsx +18 -0
  42. package/src/components/ClipboardCopy/examples/ClipboardCopyReadOnly.tsx +8 -0
  43. package/src/components/ClipboardCopy/examples/ClipboardCopyReadOnlyExpanded.tsx +9 -0
  44. package/src/components/ClipboardCopy/examples/ClipboardCopyReadOnlyExpandedByDefault.tsx +9 -0
@@ -1,136 +1,6 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`Alert - danger Action Close Button 1`] = `
4
- <Alert
5
- actionClose={
6
- <AlertActionCloseButton
7
- aria-label="Close"
8
- onClose={[MockFunction]}
9
- />
10
- }
11
- title="Sample danger alert"
12
- variant="danger"
13
- >
14
- <div
15
- aria-label="Danger Alert"
16
- className="pf-c-alert pf-m-danger"
17
- data-ouia-component-id="OUIA-Generated-Alert-danger-5"
18
- data-ouia-component-type="PF4/Alert"
19
- data-ouia-safe={true}
20
- onMouseEnter={[Function]}
21
- onMouseLeave={[Function]}
22
- >
23
- <AlertIcon
24
- variant="danger"
25
- >
26
- <div
27
- className="pf-c-alert__icon"
28
- >
29
- <ExclamationCircleIcon
30
- color="currentColor"
31
- noVerticalAlign={false}
32
- size="sm"
33
- >
34
- <svg
35
- aria-hidden={true}
36
- aria-labelledby={null}
37
- fill="currentColor"
38
- height="1em"
39
- role="img"
40
- style={
41
- Object {
42
- "verticalAlign": "-0.125em",
43
- }
44
- }
45
- viewBox="0 0 512 512"
46
- width="1em"
47
- >
48
- <path
49
- d="M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"
50
- />
51
- </svg>
52
- </ExclamationCircleIcon>
53
- </div>
54
- </AlertIcon>
55
- <h4
56
- className="pf-c-alert__title"
57
- >
58
- <span
59
- className="pf-u-screen-reader"
60
- >
61
- Danger alert:
62
- </span>
63
- Sample danger alert
64
- </h4>
65
- <div
66
- className="pf-c-alert__action"
67
- >
68
- <AlertActionCloseButton
69
- aria-label="Close"
70
- onClose={[MockFunction]}
71
- >
72
- <Button
73
- aria-label="Close"
74
- onClick={[MockFunction]}
75
- variant="plain"
76
- >
77
- <ButtonBase
78
- aria-label="Close"
79
- innerRef={null}
80
- onClick={[MockFunction]}
81
- variant="plain"
82
- >
83
- <button
84
- aria-disabled={false}
85
- aria-label="Close"
86
- className="pf-c-button pf-m-plain"
87
- data-ouia-component-id="OUIA-Generated-Button-plain-4"
88
- data-ouia-component-type="PF4/Button"
89
- data-ouia-safe={true}
90
- disabled={false}
91
- onClick={[MockFunction]}
92
- role={null}
93
- type="button"
94
- >
95
- <TimesIcon
96
- color="currentColor"
97
- noVerticalAlign={false}
98
- size="sm"
99
- >
100
- <svg
101
- aria-hidden={true}
102
- aria-labelledby={null}
103
- fill="currentColor"
104
- height="1em"
105
- role="img"
106
- style={
107
- Object {
108
- "verticalAlign": "-0.125em",
109
- }
110
- }
111
- viewBox="0 0 352 512"
112
- width="1em"
113
- >
114
- <path
115
- d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
116
- />
117
- </svg>
118
- </TimesIcon>
119
- </button>
120
- </ButtonBase>
121
- </Button>
122
- </AlertActionCloseButton>
123
- </div>
124
- <div
125
- className="pf-c-alert__description"
126
- >
127
- Some alert
128
- </div>
129
- </div>
130
- </Alert>
131
- `;
132
-
133
- exports[`Alert - danger Action Link 1`] = `
3
+ exports[`Alert Alert - danger Action Link 1`] = `
134
4
  <div>
135
5
  <div
136
6
  aria-label="Danger Alert"
@@ -189,7 +59,7 @@ exports[`Alert - danger Action Link 1`] = `
189
59
  </div>
190
60
  `;
191
61
 
192
- exports[`Alert - danger Action and Title 1`] = `
62
+ exports[`Alert Alert - danger Action and Title 1`] = `
193
63
  <div>
194
64
  <div
195
65
  aria-label="Danger Alert"
@@ -248,7 +118,7 @@ exports[`Alert - danger Action and Title 1`] = `
248
118
  </div>
249
119
  `;
250
120
 
251
- exports[`Alert - danger Custom aria label 1`] = `
121
+ exports[`Alert Alert - danger Custom aria label 1`] = `
252
122
  <div>
253
123
  <div
254
124
  aria-label="Custom aria label for danger"
@@ -307,7 +177,7 @@ exports[`Alert - danger Custom aria label 1`] = `
307
177
  </div>
308
178
  `;
309
179
 
310
- exports[`Alert - danger Custom icon 1`] = `
180
+ exports[`Alert Alert - danger Custom icon 1`] = `
311
181
  <div>
312
182
  <div
313
183
  aria-label="danger custom icon alert"
@@ -352,7 +222,7 @@ exports[`Alert - danger Custom icon 1`] = `
352
222
  </div>
353
223
  `;
354
224
 
355
- exports[`Alert - danger Description 1`] = `
225
+ exports[`Alert Alert - danger Description 1`] = `
356
226
  <div>
357
227
  <div
358
228
  aria-label="Danger Alert"
@@ -397,7 +267,7 @@ exports[`Alert - danger Description 1`] = `
397
267
  </div>
398
268
  `;
399
269
 
400
- exports[`Alert - danger Heading level 1`] = `
270
+ exports[`Alert Alert - danger Heading level 1`] = `
401
271
  <div>
402
272
  <div
403
273
  aria-label="Danger Alert"
@@ -442,7 +312,7 @@ exports[`Alert - danger Heading level 1`] = `
442
312
  </div>
443
313
  `;
444
314
 
445
- exports[`Alert - danger Title 1`] = `
315
+ exports[`Alert Alert - danger Title 1`] = `
446
316
  <div>
447
317
  <div
448
318
  aria-label="Danger Alert"
@@ -487,7 +357,7 @@ exports[`Alert - danger Title 1`] = `
487
357
  </div>
488
358
  `;
489
359
 
490
- exports[`Alert - danger Toast alerts match snapsnot 1`] = `
360
+ exports[`Alert Alert - danger Toast alerts match snapsnot 1`] = `
491
361
  <div>
492
362
  <div
493
363
  aria-atomic="false"
@@ -534,7 +404,7 @@ exports[`Alert - danger Toast alerts match snapsnot 1`] = `
534
404
  </div>
535
405
  `;
536
406
 
537
- exports[`Alert - danger expandable variation 1`] = `
407
+ exports[`Alert Alert - danger expandable variation 1`] = `
538
408
  <div>
539
409
  <div
540
410
  aria-label="Danger Alert"
@@ -606,7 +476,7 @@ exports[`Alert - danger expandable variation 1`] = `
606
476
  </div>
607
477
  `;
608
478
 
609
- exports[`Alert - danger inline variation 1`] = `
479
+ exports[`Alert Alert - danger inline variation 1`] = `
610
480
  <div>
611
481
  <div
612
482
  aria-label="Danger Alert"
@@ -651,137 +521,7 @@ exports[`Alert - danger inline variation 1`] = `
651
521
  </div>
652
522
  `;
653
523
 
654
- exports[`Alert - default Action Close Button 1`] = `
655
- <Alert
656
- actionClose={
657
- <AlertActionCloseButton
658
- aria-label="Close"
659
- onClose={[MockFunction]}
660
- />
661
- }
662
- title="Sample default alert"
663
- variant="default"
664
- >
665
- <div
666
- aria-label="Default Alert"
667
- className="pf-c-alert"
668
- data-ouia-component-id="OUIA-Generated-Alert-default-6"
669
- data-ouia-component-type="PF4/Alert"
670
- data-ouia-safe={true}
671
- onMouseEnter={[Function]}
672
- onMouseLeave={[Function]}
673
- >
674
- <AlertIcon
675
- variant="default"
676
- >
677
- <div
678
- className="pf-c-alert__icon"
679
- >
680
- <BellIcon
681
- color="currentColor"
682
- noVerticalAlign={false}
683
- size="sm"
684
- >
685
- <svg
686
- aria-hidden={true}
687
- aria-labelledby={null}
688
- fill="currentColor"
689
- height="1em"
690
- role="img"
691
- style={
692
- Object {
693
- "verticalAlign": "-0.125em",
694
- }
695
- }
696
- viewBox="0 0 896 1024"
697
- width="1em"
698
- >
699
- <path
700
- d="M448,0 C465.333333,0 480.333333,6.33333333 493,19 C505.666667,31.6666667 512,46.6666667 512,64 L512,106 L514.23,106.45 C587.89,121.39 648.48,157.24 696,214 C744,271.333333 768,338.666667 768,416 C768,500 780,568.666667 804,622 C818.666667,652.666667 841.333333,684 872,716 C873.773676,718.829136 875.780658,721.505113 878,724 C890,737.333333 896,752.333333 896,769 C896,785.666667 890,800.333333 878,813 C866,825.666667 850.666667,832 832,832 L63.3,832 C44.9533333,831.84 29.8533333,825.506667 18,813 C6,800.333333 0,785.666667 0,769 C0,752.333333 6,737.333333 18,724 L24,716 L25.06,714.9 C55.1933333,683.28 77.5066667,652.313333 92,622 C116,568.666667 128,500 128,416 C128,338.666667 152,271.333333 200,214 C248,156.666667 309.333333,120.666667 384,106 L384,63.31 C384.166667,46.27 390.5,31.5 403,19 C415.666667,6.33333333 430.666667,0 448,0 Z M576,896 L576,897.08 C575.74,932.6 563.073333,962.573333 538,987 C512.666667,1011.66667 482.666667,1024 448,1024 C413.333333,1024 383.333333,1011.66667 358,987 C332.666667,962.333333 320,932 320,896 L576,896 Z"
701
- />
702
- </svg>
703
- </BellIcon>
704
- </div>
705
- </AlertIcon>
706
- <h4
707
- className="pf-c-alert__title"
708
- >
709
- <span
710
- className="pf-u-screen-reader"
711
- >
712
- Default alert:
713
- </span>
714
- Sample default alert
715
- </h4>
716
- <div
717
- className="pf-c-alert__action"
718
- >
719
- <AlertActionCloseButton
720
- aria-label="Close"
721
- onClose={[MockFunction]}
722
- >
723
- <Button
724
- aria-label="Close"
725
- onClick={[MockFunction]}
726
- variant="plain"
727
- >
728
- <ButtonBase
729
- aria-label="Close"
730
- innerRef={null}
731
- onClick={[MockFunction]}
732
- variant="plain"
733
- >
734
- <button
735
- aria-disabled={false}
736
- aria-label="Close"
737
- className="pf-c-button pf-m-plain"
738
- data-ouia-component-id="OUIA-Generated-Button-plain-13"
739
- data-ouia-component-type="PF4/Button"
740
- data-ouia-safe={true}
741
- disabled={false}
742
- onClick={[MockFunction]}
743
- role={null}
744
- type="button"
745
- >
746
- <TimesIcon
747
- color="currentColor"
748
- noVerticalAlign={false}
749
- size="sm"
750
- >
751
- <svg
752
- aria-hidden={true}
753
- aria-labelledby={null}
754
- fill="currentColor"
755
- height="1em"
756
- role="img"
757
- style={
758
- Object {
759
- "verticalAlign": "-0.125em",
760
- }
761
- }
762
- viewBox="0 0 352 512"
763
- width="1em"
764
- >
765
- <path
766
- d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
767
- />
768
- </svg>
769
- </TimesIcon>
770
- </button>
771
- </ButtonBase>
772
- </Button>
773
- </AlertActionCloseButton>
774
- </div>
775
- <div
776
- className="pf-c-alert__description"
777
- >
778
- Some alert
779
- </div>
780
- </div>
781
- </Alert>
782
- `;
783
-
784
- exports[`Alert - default Action Link 1`] = `
524
+ exports[`Alert Alert - default Action Link 1`] = `
785
525
  <div>
786
526
  <div
787
527
  aria-label="Default Alert"
@@ -840,7 +580,7 @@ exports[`Alert - default Action Link 1`] = `
840
580
  </div>
841
581
  `;
842
582
 
843
- exports[`Alert - default Action and Title 1`] = `
583
+ exports[`Alert Alert - default Action and Title 1`] = `
844
584
  <div>
845
585
  <div
846
586
  aria-label="Default Alert"
@@ -899,7 +639,7 @@ exports[`Alert - default Action and Title 1`] = `
899
639
  </div>
900
640
  `;
901
641
 
902
- exports[`Alert - default Custom aria label 1`] = `
642
+ exports[`Alert Alert - default Custom aria label 1`] = `
903
643
  <div>
904
644
  <div
905
645
  aria-label="Custom aria label for default"
@@ -958,7 +698,7 @@ exports[`Alert - default Custom aria label 1`] = `
958
698
  </div>
959
699
  `;
960
700
 
961
- exports[`Alert - default Custom icon 1`] = `
701
+ exports[`Alert Alert - default Custom icon 1`] = `
962
702
  <div>
963
703
  <div
964
704
  aria-label="default custom icon alert"
@@ -1003,7 +743,7 @@ exports[`Alert - default Custom icon 1`] = `
1003
743
  </div>
1004
744
  `;
1005
745
 
1006
- exports[`Alert - default Description 1`] = `
746
+ exports[`Alert Alert - default Description 1`] = `
1007
747
  <div>
1008
748
  <div
1009
749
  aria-label="Default Alert"
@@ -1048,7 +788,7 @@ exports[`Alert - default Description 1`] = `
1048
788
  </div>
1049
789
  `;
1050
790
 
1051
- exports[`Alert - default Heading level 1`] = `
791
+ exports[`Alert Alert - default Heading level 1`] = `
1052
792
  <div>
1053
793
  <div
1054
794
  aria-label="Default Alert"
@@ -1093,7 +833,7 @@ exports[`Alert - default Heading level 1`] = `
1093
833
  </div>
1094
834
  `;
1095
835
 
1096
- exports[`Alert - default Title 1`] = `
836
+ exports[`Alert Alert - default Title 1`] = `
1097
837
  <div>
1098
838
  <div
1099
839
  aria-label="Default Alert"
@@ -1138,7 +878,7 @@ exports[`Alert - default Title 1`] = `
1138
878
  </div>
1139
879
  `;
1140
880
 
1141
- exports[`Alert - default Toast alerts match snapsnot 1`] = `
881
+ exports[`Alert Alert - default Toast alerts match snapsnot 1`] = `
1142
882
  <div>
1143
883
  <div
1144
884
  aria-atomic="false"
@@ -1185,7 +925,7 @@ exports[`Alert - default Toast alerts match snapsnot 1`] = `
1185
925
  </div>
1186
926
  `;
1187
927
 
1188
- exports[`Alert - default expandable variation 1`] = `
928
+ exports[`Alert Alert - default expandable variation 1`] = `
1189
929
  <div>
1190
930
  <div
1191
931
  aria-label="Default Alert"
@@ -1257,7 +997,7 @@ exports[`Alert - default expandable variation 1`] = `
1257
997
  </div>
1258
998
  `;
1259
999
 
1260
- exports[`Alert - default inline variation 1`] = `
1000
+ exports[`Alert Alert - default inline variation 1`] = `
1261
1001
  <div>
1262
1002
  <div
1263
1003
  aria-label="Default Alert"
@@ -1302,137 +1042,7 @@ exports[`Alert - default inline variation 1`] = `
1302
1042
  </div>
1303
1043
  `;
1304
1044
 
1305
- exports[`Alert - info Action Close Button 1`] = `
1306
- <Alert
1307
- actionClose={
1308
- <AlertActionCloseButton
1309
- aria-label="Close"
1310
- onClose={[MockFunction]}
1311
- />
1312
- }
1313
- title="Sample info alert"
1314
- variant="info"
1315
- >
1316
- <div
1317
- aria-label="Info Alert"
1318
- className="pf-c-alert pf-m-info"
1319
- data-ouia-component-id="OUIA-Generated-Alert-info-5"
1320
- data-ouia-component-type="PF4/Alert"
1321
- data-ouia-safe={true}
1322
- onMouseEnter={[Function]}
1323
- onMouseLeave={[Function]}
1324
- >
1325
- <AlertIcon
1326
- variant="info"
1327
- >
1328
- <div
1329
- className="pf-c-alert__icon"
1330
- >
1331
- <InfoCircleIcon
1332
- color="currentColor"
1333
- noVerticalAlign={false}
1334
- size="sm"
1335
- >
1336
- <svg
1337
- aria-hidden={true}
1338
- aria-labelledby={null}
1339
- fill="currentColor"
1340
- height="1em"
1341
- role="img"
1342
- style={
1343
- Object {
1344
- "verticalAlign": "-0.125em",
1345
- }
1346
- }
1347
- viewBox="0 0 512 512"
1348
- width="1em"
1349
- >
1350
- <path
1351
- d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"
1352
- />
1353
- </svg>
1354
- </InfoCircleIcon>
1355
- </div>
1356
- </AlertIcon>
1357
- <h4
1358
- className="pf-c-alert__title"
1359
- >
1360
- <span
1361
- className="pf-u-screen-reader"
1362
- >
1363
- Info alert:
1364
- </span>
1365
- Sample info alert
1366
- </h4>
1367
- <div
1368
- className="pf-c-alert__action"
1369
- >
1370
- <AlertActionCloseButton
1371
- aria-label="Close"
1372
- onClose={[MockFunction]}
1373
- >
1374
- <Button
1375
- aria-label="Close"
1376
- onClick={[MockFunction]}
1377
- variant="plain"
1378
- >
1379
- <ButtonBase
1380
- aria-label="Close"
1381
- innerRef={null}
1382
- onClick={[MockFunction]}
1383
- variant="plain"
1384
- >
1385
- <button
1386
- aria-disabled={false}
1387
- aria-label="Close"
1388
- className="pf-c-button pf-m-plain"
1389
- data-ouia-component-id="OUIA-Generated-Button-plain-10"
1390
- data-ouia-component-type="PF4/Button"
1391
- data-ouia-safe={true}
1392
- disabled={false}
1393
- onClick={[MockFunction]}
1394
- role={null}
1395
- type="button"
1396
- >
1397
- <TimesIcon
1398
- color="currentColor"
1399
- noVerticalAlign={false}
1400
- size="sm"
1401
- >
1402
- <svg
1403
- aria-hidden={true}
1404
- aria-labelledby={null}
1405
- fill="currentColor"
1406
- height="1em"
1407
- role="img"
1408
- style={
1409
- Object {
1410
- "verticalAlign": "-0.125em",
1411
- }
1412
- }
1413
- viewBox="0 0 352 512"
1414
- width="1em"
1415
- >
1416
- <path
1417
- d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
1418
- />
1419
- </svg>
1420
- </TimesIcon>
1421
- </button>
1422
- </ButtonBase>
1423
- </Button>
1424
- </AlertActionCloseButton>
1425
- </div>
1426
- <div
1427
- className="pf-c-alert__description"
1428
- >
1429
- Some alert
1430
- </div>
1431
- </div>
1432
- </Alert>
1433
- `;
1434
-
1435
- exports[`Alert - info Action Link 1`] = `
1045
+ exports[`Alert Alert - info Action Link 1`] = `
1436
1046
  <div>
1437
1047
  <div
1438
1048
  aria-label="Info Alert"
@@ -1491,7 +1101,7 @@ exports[`Alert - info Action Link 1`] = `
1491
1101
  </div>
1492
1102
  `;
1493
1103
 
1494
- exports[`Alert - info Action and Title 1`] = `
1104
+ exports[`Alert Alert - info Action and Title 1`] = `
1495
1105
  <div>
1496
1106
  <div
1497
1107
  aria-label="Info Alert"
@@ -1550,7 +1160,7 @@ exports[`Alert - info Action and Title 1`] = `
1550
1160
  </div>
1551
1161
  `;
1552
1162
 
1553
- exports[`Alert - info Custom aria label 1`] = `
1163
+ exports[`Alert Alert - info Custom aria label 1`] = `
1554
1164
  <div>
1555
1165
  <div
1556
1166
  aria-label="Custom aria label for info"
@@ -1609,7 +1219,7 @@ exports[`Alert - info Custom aria label 1`] = `
1609
1219
  </div>
1610
1220
  `;
1611
1221
 
1612
- exports[`Alert - info Custom icon 1`] = `
1222
+ exports[`Alert Alert - info Custom icon 1`] = `
1613
1223
  <div>
1614
1224
  <div
1615
1225
  aria-label="info custom icon alert"
@@ -1654,7 +1264,7 @@ exports[`Alert - info Custom icon 1`] = `
1654
1264
  </div>
1655
1265
  `;
1656
1266
 
1657
- exports[`Alert - info Description 1`] = `
1267
+ exports[`Alert Alert - info Description 1`] = `
1658
1268
  <div>
1659
1269
  <div
1660
1270
  aria-label="Info Alert"
@@ -1699,7 +1309,7 @@ exports[`Alert - info Description 1`] = `
1699
1309
  </div>
1700
1310
  `;
1701
1311
 
1702
- exports[`Alert - info Heading level 1`] = `
1312
+ exports[`Alert Alert - info Heading level 1`] = `
1703
1313
  <div>
1704
1314
  <div
1705
1315
  aria-label="Info Alert"
@@ -1744,7 +1354,7 @@ exports[`Alert - info Heading level 1`] = `
1744
1354
  </div>
1745
1355
  `;
1746
1356
 
1747
- exports[`Alert - info Title 1`] = `
1357
+ exports[`Alert Alert - info Title 1`] = `
1748
1358
  <div>
1749
1359
  <div
1750
1360
  aria-label="Info Alert"
@@ -1789,7 +1399,7 @@ exports[`Alert - info Title 1`] = `
1789
1399
  </div>
1790
1400
  `;
1791
1401
 
1792
- exports[`Alert - info Toast alerts match snapsnot 1`] = `
1402
+ exports[`Alert Alert - info Toast alerts match snapsnot 1`] = `
1793
1403
  <div>
1794
1404
  <div
1795
1405
  aria-atomic="false"
@@ -1836,7 +1446,7 @@ exports[`Alert - info Toast alerts match snapsnot 1`] = `
1836
1446
  </div>
1837
1447
  `;
1838
1448
 
1839
- exports[`Alert - info expandable variation 1`] = `
1449
+ exports[`Alert Alert - info expandable variation 1`] = `
1840
1450
  <div>
1841
1451
  <div
1842
1452
  aria-label="Info Alert"
@@ -1908,7 +1518,7 @@ exports[`Alert - info expandable variation 1`] = `
1908
1518
  </div>
1909
1519
  `;
1910
1520
 
1911
- exports[`Alert - info inline variation 1`] = `
1521
+ exports[`Alert Alert - info inline variation 1`] = `
1912
1522
  <div>
1913
1523
  <div
1914
1524
  aria-label="Info Alert"
@@ -1953,137 +1563,7 @@ exports[`Alert - info inline variation 1`] = `
1953
1563
  </div>
1954
1564
  `;
1955
1565
 
1956
- exports[`Alert - success Action Close Button 1`] = `
1957
- <Alert
1958
- actionClose={
1959
- <AlertActionCloseButton
1960
- aria-label="Close"
1961
- onClose={[MockFunction]}
1962
- />
1963
- }
1964
- title="Sample success alert"
1965
- variant="success"
1966
- >
1967
- <div
1968
- aria-label="Success Alert"
1969
- className="pf-c-alert pf-m-success"
1970
- data-ouia-component-id="OUIA-Generated-Alert-success-5"
1971
- data-ouia-component-type="PF4/Alert"
1972
- data-ouia-safe={true}
1973
- onMouseEnter={[Function]}
1974
- onMouseLeave={[Function]}
1975
- >
1976
- <AlertIcon
1977
- variant="success"
1978
- >
1979
- <div
1980
- className="pf-c-alert__icon"
1981
- >
1982
- <CheckCircleIcon
1983
- color="currentColor"
1984
- noVerticalAlign={false}
1985
- size="sm"
1986
- >
1987
- <svg
1988
- aria-hidden={true}
1989
- aria-labelledby={null}
1990
- fill="currentColor"
1991
- height="1em"
1992
- role="img"
1993
- style={
1994
- Object {
1995
- "verticalAlign": "-0.125em",
1996
- }
1997
- }
1998
- viewBox="0 0 512 512"
1999
- width="1em"
2000
- >
2001
- <path
2002
- d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"
2003
- />
2004
- </svg>
2005
- </CheckCircleIcon>
2006
- </div>
2007
- </AlertIcon>
2008
- <h4
2009
- className="pf-c-alert__title"
2010
- >
2011
- <span
2012
- className="pf-u-screen-reader"
2013
- >
2014
- Success alert:
2015
- </span>
2016
- Sample success alert
2017
- </h4>
2018
- <div
2019
- className="pf-c-alert__action"
2020
- >
2021
- <AlertActionCloseButton
2022
- aria-label="Close"
2023
- onClose={[MockFunction]}
2024
- >
2025
- <Button
2026
- aria-label="Close"
2027
- onClick={[MockFunction]}
2028
- variant="plain"
2029
- >
2030
- <ButtonBase
2031
- aria-label="Close"
2032
- innerRef={null}
2033
- onClick={[MockFunction]}
2034
- variant="plain"
2035
- >
2036
- <button
2037
- aria-disabled={false}
2038
- aria-label="Close"
2039
- className="pf-c-button pf-m-plain"
2040
- data-ouia-component-id="OUIA-Generated-Button-plain-1"
2041
- data-ouia-component-type="PF4/Button"
2042
- data-ouia-safe={true}
2043
- disabled={false}
2044
- onClick={[MockFunction]}
2045
- role={null}
2046
- type="button"
2047
- >
2048
- <TimesIcon
2049
- color="currentColor"
2050
- noVerticalAlign={false}
2051
- size="sm"
2052
- >
2053
- <svg
2054
- aria-hidden={true}
2055
- aria-labelledby={null}
2056
- fill="currentColor"
2057
- height="1em"
2058
- role="img"
2059
- style={
2060
- Object {
2061
- "verticalAlign": "-0.125em",
2062
- }
2063
- }
2064
- viewBox="0 0 352 512"
2065
- width="1em"
2066
- >
2067
- <path
2068
- d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
2069
- />
2070
- </svg>
2071
- </TimesIcon>
2072
- </button>
2073
- </ButtonBase>
2074
- </Button>
2075
- </AlertActionCloseButton>
2076
- </div>
2077
- <div
2078
- className="pf-c-alert__description"
2079
- >
2080
- Some alert
2081
- </div>
2082
- </div>
2083
- </Alert>
2084
- `;
2085
-
2086
- exports[`Alert - success Action Link 1`] = `
1566
+ exports[`Alert Alert - success Action Link 1`] = `
2087
1567
  <div>
2088
1568
  <div
2089
1569
  aria-label="Success Alert"
@@ -2142,7 +1622,7 @@ exports[`Alert - success Action Link 1`] = `
2142
1622
  </div>
2143
1623
  `;
2144
1624
 
2145
- exports[`Alert - success Action and Title 1`] = `
1625
+ exports[`Alert Alert - success Action and Title 1`] = `
2146
1626
  <div>
2147
1627
  <div
2148
1628
  aria-label="Success Alert"
@@ -2201,7 +1681,7 @@ exports[`Alert - success Action and Title 1`] = `
2201
1681
  </div>
2202
1682
  `;
2203
1683
 
2204
- exports[`Alert - success Custom aria label 1`] = `
1684
+ exports[`Alert Alert - success Custom aria label 1`] = `
2205
1685
  <div>
2206
1686
  <div
2207
1687
  aria-label="Custom aria label for success"
@@ -2260,7 +1740,7 @@ exports[`Alert - success Custom aria label 1`] = `
2260
1740
  </div>
2261
1741
  `;
2262
1742
 
2263
- exports[`Alert - success Custom icon 1`] = `
1743
+ exports[`Alert Alert - success Custom icon 1`] = `
2264
1744
  <div>
2265
1745
  <div
2266
1746
  aria-label="success custom icon alert"
@@ -2305,7 +1785,7 @@ exports[`Alert - success Custom icon 1`] = `
2305
1785
  </div>
2306
1786
  `;
2307
1787
 
2308
- exports[`Alert - success Description 1`] = `
1788
+ exports[`Alert Alert - success Description 1`] = `
2309
1789
  <div>
2310
1790
  <div
2311
1791
  aria-label="Success Alert"
@@ -2350,7 +1830,7 @@ exports[`Alert - success Description 1`] = `
2350
1830
  </div>
2351
1831
  `;
2352
1832
 
2353
- exports[`Alert - success Heading level 1`] = `
1833
+ exports[`Alert Alert - success Heading level 1`] = `
2354
1834
  <div>
2355
1835
  <div
2356
1836
  aria-label="Success Alert"
@@ -2395,7 +1875,7 @@ exports[`Alert - success Heading level 1`] = `
2395
1875
  </div>
2396
1876
  `;
2397
1877
 
2398
- exports[`Alert - success Title 1`] = `
1878
+ exports[`Alert Alert - success Title 1`] = `
2399
1879
  <div>
2400
1880
  <div
2401
1881
  aria-label="Success Alert"
@@ -2440,7 +1920,7 @@ exports[`Alert - success Title 1`] = `
2440
1920
  </div>
2441
1921
  `;
2442
1922
 
2443
- exports[`Alert - success Toast alerts match snapsnot 1`] = `
1923
+ exports[`Alert Alert - success Toast alerts match snapsnot 1`] = `
2444
1924
  <div>
2445
1925
  <div
2446
1926
  aria-atomic="false"
@@ -2487,7 +1967,7 @@ exports[`Alert - success Toast alerts match snapsnot 1`] = `
2487
1967
  </div>
2488
1968
  `;
2489
1969
 
2490
- exports[`Alert - success expandable variation 1`] = `
1970
+ exports[`Alert Alert - success expandable variation 1`] = `
2491
1971
  <div>
2492
1972
  <div
2493
1973
  aria-label="Success Alert"
@@ -2559,7 +2039,7 @@ exports[`Alert - success expandable variation 1`] = `
2559
2039
  </div>
2560
2040
  `;
2561
2041
 
2562
- exports[`Alert - success inline variation 1`] = `
2042
+ exports[`Alert Alert - success inline variation 1`] = `
2563
2043
  <div>
2564
2044
  <div
2565
2045
  aria-label="Success Alert"
@@ -2604,137 +2084,7 @@ exports[`Alert - success inline variation 1`] = `
2604
2084
  </div>
2605
2085
  `;
2606
2086
 
2607
- exports[`Alert - warning Action Close Button 1`] = `
2608
- <Alert
2609
- actionClose={
2610
- <AlertActionCloseButton
2611
- aria-label="Close"
2612
- onClose={[MockFunction]}
2613
- />
2614
- }
2615
- title="Sample warning alert"
2616
- variant="warning"
2617
- >
2618
- <div
2619
- aria-label="Warning Alert"
2620
- className="pf-c-alert pf-m-warning"
2621
- data-ouia-component-id="OUIA-Generated-Alert-warning-5"
2622
- data-ouia-component-type="PF4/Alert"
2623
- data-ouia-safe={true}
2624
- onMouseEnter={[Function]}
2625
- onMouseLeave={[Function]}
2626
- >
2627
- <AlertIcon
2628
- variant="warning"
2629
- >
2630
- <div
2631
- className="pf-c-alert__icon"
2632
- >
2633
- <ExclamationTriangleIcon
2634
- color="currentColor"
2635
- noVerticalAlign={false}
2636
- size="sm"
2637
- >
2638
- <svg
2639
- aria-hidden={true}
2640
- aria-labelledby={null}
2641
- fill="currentColor"
2642
- height="1em"
2643
- role="img"
2644
- style={
2645
- Object {
2646
- "verticalAlign": "-0.125em",
2647
- }
2648
- }
2649
- viewBox="0 0 576 512"
2650
- width="1em"
2651
- >
2652
- <path
2653
- d="M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"
2654
- />
2655
- </svg>
2656
- </ExclamationTriangleIcon>
2657
- </div>
2658
- </AlertIcon>
2659
- <h4
2660
- className="pf-c-alert__title"
2661
- >
2662
- <span
2663
- className="pf-u-screen-reader"
2664
- >
2665
- Warning alert:
2666
- </span>
2667
- Sample warning alert
2668
- </h4>
2669
- <div
2670
- className="pf-c-alert__action"
2671
- >
2672
- <AlertActionCloseButton
2673
- aria-label="Close"
2674
- onClose={[MockFunction]}
2675
- >
2676
- <Button
2677
- aria-label="Close"
2678
- onClick={[MockFunction]}
2679
- variant="plain"
2680
- >
2681
- <ButtonBase
2682
- aria-label="Close"
2683
- innerRef={null}
2684
- onClick={[MockFunction]}
2685
- variant="plain"
2686
- >
2687
- <button
2688
- aria-disabled={false}
2689
- aria-label="Close"
2690
- className="pf-c-button pf-m-plain"
2691
- data-ouia-component-id="OUIA-Generated-Button-plain-7"
2692
- data-ouia-component-type="PF4/Button"
2693
- data-ouia-safe={true}
2694
- disabled={false}
2695
- onClick={[MockFunction]}
2696
- role={null}
2697
- type="button"
2698
- >
2699
- <TimesIcon
2700
- color="currentColor"
2701
- noVerticalAlign={false}
2702
- size="sm"
2703
- >
2704
- <svg
2705
- aria-hidden={true}
2706
- aria-labelledby={null}
2707
- fill="currentColor"
2708
- height="1em"
2709
- role="img"
2710
- style={
2711
- Object {
2712
- "verticalAlign": "-0.125em",
2713
- }
2714
- }
2715
- viewBox="0 0 352 512"
2716
- width="1em"
2717
- >
2718
- <path
2719
- d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
2720
- />
2721
- </svg>
2722
- </TimesIcon>
2723
- </button>
2724
- </ButtonBase>
2725
- </Button>
2726
- </AlertActionCloseButton>
2727
- </div>
2728
- <div
2729
- className="pf-c-alert__description"
2730
- >
2731
- Some alert
2732
- </div>
2733
- </div>
2734
- </Alert>
2735
- `;
2736
-
2737
- exports[`Alert - warning Action Link 1`] = `
2087
+ exports[`Alert Alert - warning Action Link 1`] = `
2738
2088
  <div>
2739
2089
  <div
2740
2090
  aria-label="Warning Alert"
@@ -2793,7 +2143,7 @@ exports[`Alert - warning Action Link 1`] = `
2793
2143
  </div>
2794
2144
  `;
2795
2145
 
2796
- exports[`Alert - warning Action and Title 1`] = `
2146
+ exports[`Alert Alert - warning Action and Title 1`] = `
2797
2147
  <div>
2798
2148
  <div
2799
2149
  aria-label="Warning Alert"
@@ -2852,7 +2202,7 @@ exports[`Alert - warning Action and Title 1`] = `
2852
2202
  </div>
2853
2203
  `;
2854
2204
 
2855
- exports[`Alert - warning Custom aria label 1`] = `
2205
+ exports[`Alert Alert - warning Custom aria label 1`] = `
2856
2206
  <div>
2857
2207
  <div
2858
2208
  aria-label="Custom aria label for warning"
@@ -2911,7 +2261,7 @@ exports[`Alert - warning Custom aria label 1`] = `
2911
2261
  </div>
2912
2262
  `;
2913
2263
 
2914
- exports[`Alert - warning Custom icon 1`] = `
2264
+ exports[`Alert Alert - warning Custom icon 1`] = `
2915
2265
  <div>
2916
2266
  <div
2917
2267
  aria-label="warning custom icon alert"
@@ -2956,7 +2306,7 @@ exports[`Alert - warning Custom icon 1`] = `
2956
2306
  </div>
2957
2307
  `;
2958
2308
 
2959
- exports[`Alert - warning Description 1`] = `
2309
+ exports[`Alert Alert - warning Description 1`] = `
2960
2310
  <div>
2961
2311
  <div
2962
2312
  aria-label="Warning Alert"
@@ -3001,7 +2351,7 @@ exports[`Alert - warning Description 1`] = `
3001
2351
  </div>
3002
2352
  `;
3003
2353
 
3004
- exports[`Alert - warning Heading level 1`] = `
2354
+ exports[`Alert Alert - warning Heading level 1`] = `
3005
2355
  <div>
3006
2356
  <div
3007
2357
  aria-label="Warning Alert"
@@ -3046,7 +2396,7 @@ exports[`Alert - warning Heading level 1`] = `
3046
2396
  </div>
3047
2397
  `;
3048
2398
 
3049
- exports[`Alert - warning Title 1`] = `
2399
+ exports[`Alert Alert - warning Title 1`] = `
3050
2400
  <div>
3051
2401
  <div
3052
2402
  aria-label="Warning Alert"
@@ -3091,7 +2441,7 @@ exports[`Alert - warning Title 1`] = `
3091
2441
  </div>
3092
2442
  `;
3093
2443
 
3094
- exports[`Alert - warning Toast alerts match snapsnot 1`] = `
2444
+ exports[`Alert Alert - warning Toast alerts match snapsnot 1`] = `
3095
2445
  <div>
3096
2446
  <div
3097
2447
  aria-atomic="false"
@@ -3138,7 +2488,7 @@ exports[`Alert - warning Toast alerts match snapsnot 1`] = `
3138
2488
  </div>
3139
2489
  `;
3140
2490
 
3141
- exports[`Alert - warning expandable variation 1`] = `
2491
+ exports[`Alert Alert - warning expandable variation 1`] = `
3142
2492
  <div>
3143
2493
  <div
3144
2494
  aria-label="Warning Alert"
@@ -3210,7 +2560,7 @@ exports[`Alert - warning expandable variation 1`] = `
3210
2560
  </div>
3211
2561
  `;
3212
2562
 
3213
- exports[`Alert - warning inline variation 1`] = `
2563
+ exports[`Alert Alert - warning inline variation 1`] = `
3214
2564
  <div>
3215
2565
  <div
3216
2566
  aria-label="Warning Alert"