@patternfly/react-core 4.175.6 → 4.175.10

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 (45) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/esm/components/Alert/Alert.d.ts +2 -0
  3. package/dist/esm/components/Alert/Alert.d.ts.map +1 -1
  4. package/dist/esm/components/Alert/Alert.js +2 -2
  5. package/dist/esm/components/Alert/Alert.js.map +1 -1
  6. package/dist/esm/components/FileUpload/FileUpload.d.ts +1 -1
  7. package/dist/esm/components/FileUpload/FileUpload.d.ts.map +1 -1
  8. package/dist/esm/components/Pagination/Pagination.d.ts +1 -1
  9. package/dist/esm/components/Pagination/Pagination.d.ts.map +1 -1
  10. package/dist/esm/components/Select/Select.js +4 -4
  11. package/dist/esm/components/Select/Select.js.map +1 -1
  12. package/dist/esm/components/Toolbar/ToolbarContent.d.ts +1 -1
  13. package/dist/esm/components/Toolbar/ToolbarGroup.d.ts +1 -1
  14. package/dist/esm/components/Toolbar/ToolbarItem.d.ts +1 -1
  15. package/dist/esm/components/Toolbar/ToolbarToggleGroup.d.ts +1 -1
  16. package/dist/js/components/Alert/Alert.d.ts +2 -0
  17. package/dist/js/components/Alert/Alert.d.ts.map +1 -1
  18. package/dist/js/components/Alert/Alert.js +2 -2
  19. package/dist/js/components/Alert/Alert.js.map +1 -1
  20. package/dist/js/components/FileUpload/FileUpload.d.ts +1 -1
  21. package/dist/js/components/FileUpload/FileUpload.d.ts.map +1 -1
  22. package/dist/js/components/Pagination/Pagination.d.ts +1 -1
  23. package/dist/js/components/Pagination/Pagination.d.ts.map +1 -1
  24. package/dist/js/components/Select/Select.js +4 -4
  25. package/dist/js/components/Select/Select.js.map +1 -1
  26. package/dist/js/components/Toolbar/ToolbarContent.d.ts +1 -1
  27. package/dist/js/components/Toolbar/ToolbarGroup.d.ts +1 -1
  28. package/dist/js/components/Toolbar/ToolbarItem.d.ts +1 -1
  29. package/dist/js/components/Toolbar/ToolbarToggleGroup.d.ts +1 -1
  30. package/dist/umd/react-core.css +830 -830
  31. package/dist/umd/react-core.js +6 -6
  32. package/dist/umd/react-core.min.js +1 -1
  33. package/package.json +6 -6
  34. package/src/components/Alert/Alert.tsx +5 -2
  35. package/src/components/Alert/__tests__/Alert.test.tsx +9 -0
  36. package/src/components/Alert/__tests__/__snapshots__/Alert.test.tsx.snap +370 -40
  37. package/src/components/Alert/examples/Alert.md +2 -1
  38. package/src/components/FileUpload/FileUpload.tsx +1 -1
  39. package/src/components/Pagination/Pagination.tsx +1 -1
  40. package/src/components/Select/Select.tsx +4 -4
  41. package/src/components/Select/__tests__/__snapshots__/Select.test.tsx.snap +24 -24
  42. package/src/components/Toolbar/ToolbarContent.tsx +1 -1
  43. package/src/components/Toolbar/ToolbarGroup.tsx +1 -1
  44. package/src/components/Toolbar/ToolbarItem.tsx +1 -1
  45. package/src/components/Toolbar/ToolbarToggleGroup.tsx +1 -1
@@ -14,7 +14,7 @@ exports[`Alert - danger Action Close Button 1`] = `
14
14
  <div
15
15
  aria-label="Danger Alert"
16
16
  className="pf-c-alert pf-m-danger"
17
- data-ouia-component-id="OUIA-Generated-Alert-danger-4"
17
+ data-ouia-component-id="OUIA-Generated-Alert-danger-5"
18
18
  data-ouia-component-type="PF4/Alert"
19
19
  data-ouia-safe={true}
20
20
  onMouseEnter={[Function]}
@@ -145,7 +145,7 @@ exports[`Alert - danger Action Link 1`] = `
145
145
  <div
146
146
  aria-label="Danger Alert"
147
147
  className="pf-c-alert pf-m-danger"
148
- data-ouia-component-id="OUIA-Generated-Alert-danger-3"
148
+ data-ouia-component-id="OUIA-Generated-Alert-danger-4"
149
149
  data-ouia-component-type="PF4/Alert"
150
150
  data-ouia-safe={true}
151
151
  onMouseEnter={[Function]}
@@ -250,7 +250,7 @@ exports[`Alert - danger Action and Title 1`] = `
250
250
  <div
251
251
  aria-label="Danger Alert"
252
252
  className="pf-c-alert pf-m-danger"
253
- data-ouia-component-id="OUIA-Generated-Alert-danger-5"
253
+ data-ouia-component-id="OUIA-Generated-Alert-danger-6"
254
254
  data-ouia-component-type="PF4/Alert"
255
255
  data-ouia-safe={true}
256
256
  onMouseEnter={[Function]}
@@ -357,7 +357,7 @@ exports[`Alert - danger Custom aria label 1`] = `
357
357
  <div
358
358
  aria-label="Custom aria label for danger"
359
359
  className="pf-c-alert pf-m-danger"
360
- data-ouia-component-id="OUIA-Generated-Alert-danger-6"
360
+ data-ouia-component-id="OUIA-Generated-Alert-danger-7"
361
361
  data-ouia-component-type="PF4/Alert"
362
362
  data-ouia-safe={true}
363
363
  onMouseEnter={[Function]}
@@ -464,7 +464,7 @@ exports[`Alert - danger Custom icon 1`] = `
464
464
  <div
465
465
  aria-label="danger custom icon alert"
466
466
  className="pf-c-alert pf-m-danger"
467
- data-ouia-component-id="OUIA-Generated-Alert-danger-14"
467
+ data-ouia-component-id="OUIA-Generated-Alert-danger-15"
468
468
  data-ouia-component-type="PF4/Alert"
469
469
  data-ouia-safe={true}
470
470
  onMouseEnter={[Function]}
@@ -592,6 +592,72 @@ exports[`Alert - danger Description 1`] = `
592
592
  </Alert>
593
593
  `;
594
594
 
595
+ exports[`Alert - danger Heading level 1`] = `
596
+ <Alert
597
+ title="Some title"
598
+ titleHeadingLevel="h1"
599
+ variant="danger"
600
+ >
601
+ <div
602
+ aria-label="Danger Alert"
603
+ className="pf-c-alert pf-m-danger"
604
+ data-ouia-component-id="OUIA-Generated-Alert-danger-3"
605
+ data-ouia-component-type="PF4/Alert"
606
+ data-ouia-safe={true}
607
+ onMouseEnter={[Function]}
608
+ onMouseLeave={[Function]}
609
+ >
610
+ <AlertIcon
611
+ variant="danger"
612
+ >
613
+ <div
614
+ className="pf-c-alert__icon"
615
+ >
616
+ <ExclamationCircleIcon
617
+ color="currentColor"
618
+ noVerticalAlign={false}
619
+ size="sm"
620
+ >
621
+ <svg
622
+ aria-hidden={true}
623
+ aria-labelledby={null}
624
+ fill="currentColor"
625
+ height="1em"
626
+ role="img"
627
+ style={
628
+ Object {
629
+ "verticalAlign": "-0.125em",
630
+ }
631
+ }
632
+ viewBox="0 0 512 512"
633
+ width="1em"
634
+ >
635
+ <path
636
+ 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"
637
+ />
638
+ </svg>
639
+ </ExclamationCircleIcon>
640
+ </div>
641
+ </AlertIcon>
642
+ <h1
643
+ className="pf-c-alert__title"
644
+ >
645
+ <span
646
+ className="pf-u-screen-reader"
647
+ >
648
+ Danger alert:
649
+ </span>
650
+ Some title
651
+ </h1>
652
+ <div
653
+ className="pf-c-alert__description"
654
+ >
655
+ Some alert
656
+ </div>
657
+ </div>
658
+ </Alert>
659
+ `;
660
+
595
661
  exports[`Alert - danger Title 1`] = `
596
662
  <Alert
597
663
  title="Some title"
@@ -669,7 +735,7 @@ exports[`Alert - danger Toast alerts match snapsnot 1`] = `
669
735
  aria-label="danger toast alert"
670
736
  aria-live="polite"
671
737
  className="pf-c-alert pf-m-danger"
672
- data-ouia-component-id="OUIA-Generated-Alert-danger-10"
738
+ data-ouia-component-id="OUIA-Generated-Alert-danger-11"
673
739
  data-ouia-component-type="PF4/Alert"
674
740
  data-ouia-safe={true}
675
741
  onMouseEnter={[Function]}
@@ -735,7 +801,7 @@ exports[`Alert - danger expandable variation 1`] = `
735
801
  <div
736
802
  aria-label="Danger Alert"
737
803
  className="pf-c-alert pf-m-expandable pf-m-danger"
738
- data-ouia-component-id="OUIA-Generated-Alert-danger-8"
804
+ data-ouia-component-id="OUIA-Generated-Alert-danger-9"
739
805
  data-ouia-component-type="PF4/Alert"
740
806
  data-ouia-safe={true}
741
807
  onMouseEnter={[Function]}
@@ -864,7 +930,7 @@ exports[`Alert - danger inline variation 1`] = `
864
930
  <div
865
931
  aria-label="Danger Alert"
866
932
  className="pf-c-alert pf-m-inline pf-m-danger"
867
- data-ouia-component-id="OUIA-Generated-Alert-danger-7"
933
+ data-ouia-component-id="OUIA-Generated-Alert-danger-8"
868
934
  data-ouia-component-type="PF4/Alert"
869
935
  data-ouia-safe={true}
870
936
  onMouseEnter={[Function]}
@@ -935,7 +1001,7 @@ exports[`Alert - default Action Close Button 1`] = `
935
1001
  <div
936
1002
  aria-label="Default Alert"
937
1003
  className="pf-c-alert"
938
- data-ouia-component-id="OUIA-Generated-Alert-default-5"
1004
+ data-ouia-component-id="OUIA-Generated-Alert-default-6"
939
1005
  data-ouia-component-type="PF4/Alert"
940
1006
  data-ouia-safe={true}
941
1007
  onMouseEnter={[Function]}
@@ -1066,7 +1132,7 @@ exports[`Alert - default Action Link 1`] = `
1066
1132
  <div
1067
1133
  aria-label="Default Alert"
1068
1134
  className="pf-c-alert"
1069
- data-ouia-component-id="OUIA-Generated-Alert-default-4"
1135
+ data-ouia-component-id="OUIA-Generated-Alert-default-5"
1070
1136
  data-ouia-component-type="PF4/Alert"
1071
1137
  data-ouia-safe={true}
1072
1138
  onMouseEnter={[Function]}
@@ -1171,7 +1237,7 @@ exports[`Alert - default Action and Title 1`] = `
1171
1237
  <div
1172
1238
  aria-label="Default Alert"
1173
1239
  className="pf-c-alert"
1174
- data-ouia-component-id="OUIA-Generated-Alert-default-6"
1240
+ data-ouia-component-id="OUIA-Generated-Alert-default-7"
1175
1241
  data-ouia-component-type="PF4/Alert"
1176
1242
  data-ouia-safe={true}
1177
1243
  onMouseEnter={[Function]}
@@ -1278,7 +1344,7 @@ exports[`Alert - default Custom aria label 1`] = `
1278
1344
  <div
1279
1345
  aria-label="Custom aria label for default"
1280
1346
  className="pf-c-alert"
1281
- data-ouia-component-id="OUIA-Generated-Alert-default-7"
1347
+ data-ouia-component-id="OUIA-Generated-Alert-default-8"
1282
1348
  data-ouia-component-type="PF4/Alert"
1283
1349
  data-ouia-safe={true}
1284
1350
  onMouseEnter={[Function]}
@@ -1385,7 +1451,7 @@ exports[`Alert - default Custom icon 1`] = `
1385
1451
  <div
1386
1452
  aria-label="default custom icon alert"
1387
1453
  className="pf-c-alert"
1388
- data-ouia-component-id="OUIA-Generated-Alert-default-15"
1454
+ data-ouia-component-id="OUIA-Generated-Alert-default-16"
1389
1455
  data-ouia-component-type="PF4/Alert"
1390
1456
  data-ouia-safe={true}
1391
1457
  onMouseEnter={[Function]}
@@ -1513,6 +1579,72 @@ exports[`Alert - default Description 1`] = `
1513
1579
  </Alert>
1514
1580
  `;
1515
1581
 
1582
+ exports[`Alert - default Heading level 1`] = `
1583
+ <Alert
1584
+ title="Some title"
1585
+ titleHeadingLevel="h1"
1586
+ variant="default"
1587
+ >
1588
+ <div
1589
+ aria-label="Default Alert"
1590
+ className="pf-c-alert"
1591
+ data-ouia-component-id="OUIA-Generated-Alert-default-4"
1592
+ data-ouia-component-type="PF4/Alert"
1593
+ data-ouia-safe={true}
1594
+ onMouseEnter={[Function]}
1595
+ onMouseLeave={[Function]}
1596
+ >
1597
+ <AlertIcon
1598
+ variant="default"
1599
+ >
1600
+ <div
1601
+ className="pf-c-alert__icon"
1602
+ >
1603
+ <BellIcon
1604
+ color="currentColor"
1605
+ noVerticalAlign={false}
1606
+ size="sm"
1607
+ >
1608
+ <svg
1609
+ aria-hidden={true}
1610
+ aria-labelledby={null}
1611
+ fill="currentColor"
1612
+ height="1em"
1613
+ role="img"
1614
+ style={
1615
+ Object {
1616
+ "verticalAlign": "-0.125em",
1617
+ }
1618
+ }
1619
+ viewBox="0 0 896 1024"
1620
+ width="1em"
1621
+ >
1622
+ <path
1623
+ 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"
1624
+ />
1625
+ </svg>
1626
+ </BellIcon>
1627
+ </div>
1628
+ </AlertIcon>
1629
+ <h1
1630
+ className="pf-c-alert__title"
1631
+ >
1632
+ <span
1633
+ className="pf-u-screen-reader"
1634
+ >
1635
+ Default alert:
1636
+ </span>
1637
+ Some title
1638
+ </h1>
1639
+ <div
1640
+ className="pf-c-alert__description"
1641
+ >
1642
+ Some alert
1643
+ </div>
1644
+ </div>
1645
+ </Alert>
1646
+ `;
1647
+
1516
1648
  exports[`Alert - default Title 1`] = `
1517
1649
  <Alert
1518
1650
  title="Some title"
@@ -1590,7 +1722,7 @@ exports[`Alert - default Toast alerts match snapsnot 1`] = `
1590
1722
  aria-label="default toast alert"
1591
1723
  aria-live="polite"
1592
1724
  className="pf-c-alert"
1593
- data-ouia-component-id="OUIA-Generated-Alert-default-11"
1725
+ data-ouia-component-id="OUIA-Generated-Alert-default-12"
1594
1726
  data-ouia-component-type="PF4/Alert"
1595
1727
  data-ouia-safe={true}
1596
1728
  onMouseEnter={[Function]}
@@ -1656,7 +1788,7 @@ exports[`Alert - default expandable variation 1`] = `
1656
1788
  <div
1657
1789
  aria-label="Default Alert"
1658
1790
  className="pf-c-alert pf-m-expandable"
1659
- data-ouia-component-id="OUIA-Generated-Alert-default-9"
1791
+ data-ouia-component-id="OUIA-Generated-Alert-default-10"
1660
1792
  data-ouia-component-type="PF4/Alert"
1661
1793
  data-ouia-safe={true}
1662
1794
  onMouseEnter={[Function]}
@@ -1785,7 +1917,7 @@ exports[`Alert - default inline variation 1`] = `
1785
1917
  <div
1786
1918
  aria-label="Default Alert"
1787
1919
  className="pf-c-alert pf-m-inline"
1788
- data-ouia-component-id="OUIA-Generated-Alert-default-8"
1920
+ data-ouia-component-id="OUIA-Generated-Alert-default-9"
1789
1921
  data-ouia-component-type="PF4/Alert"
1790
1922
  data-ouia-safe={true}
1791
1923
  onMouseEnter={[Function]}
@@ -1856,7 +1988,7 @@ exports[`Alert - info Action Close Button 1`] = `
1856
1988
  <div
1857
1989
  aria-label="Info Alert"
1858
1990
  className="pf-c-alert pf-m-info"
1859
- data-ouia-component-id="OUIA-Generated-Alert-info-4"
1991
+ data-ouia-component-id="OUIA-Generated-Alert-info-5"
1860
1992
  data-ouia-component-type="PF4/Alert"
1861
1993
  data-ouia-safe={true}
1862
1994
  onMouseEnter={[Function]}
@@ -1987,7 +2119,7 @@ exports[`Alert - info Action Link 1`] = `
1987
2119
  <div
1988
2120
  aria-label="Info Alert"
1989
2121
  className="pf-c-alert pf-m-info"
1990
- data-ouia-component-id="OUIA-Generated-Alert-info-3"
2122
+ data-ouia-component-id="OUIA-Generated-Alert-info-4"
1991
2123
  data-ouia-component-type="PF4/Alert"
1992
2124
  data-ouia-safe={true}
1993
2125
  onMouseEnter={[Function]}
@@ -2092,7 +2224,7 @@ exports[`Alert - info Action and Title 1`] = `
2092
2224
  <div
2093
2225
  aria-label="Info Alert"
2094
2226
  className="pf-c-alert pf-m-info"
2095
- data-ouia-component-id="OUIA-Generated-Alert-info-5"
2227
+ data-ouia-component-id="OUIA-Generated-Alert-info-6"
2096
2228
  data-ouia-component-type="PF4/Alert"
2097
2229
  data-ouia-safe={true}
2098
2230
  onMouseEnter={[Function]}
@@ -2199,7 +2331,7 @@ exports[`Alert - info Custom aria label 1`] = `
2199
2331
  <div
2200
2332
  aria-label="Custom aria label for info"
2201
2333
  className="pf-c-alert pf-m-info"
2202
- data-ouia-component-id="OUIA-Generated-Alert-info-6"
2334
+ data-ouia-component-id="OUIA-Generated-Alert-info-7"
2203
2335
  data-ouia-component-type="PF4/Alert"
2204
2336
  data-ouia-safe={true}
2205
2337
  onMouseEnter={[Function]}
@@ -2306,7 +2438,7 @@ exports[`Alert - info Custom icon 1`] = `
2306
2438
  <div
2307
2439
  aria-label="info custom icon alert"
2308
2440
  className="pf-c-alert pf-m-info"
2309
- data-ouia-component-id="OUIA-Generated-Alert-info-14"
2441
+ data-ouia-component-id="OUIA-Generated-Alert-info-15"
2310
2442
  data-ouia-component-type="PF4/Alert"
2311
2443
  data-ouia-safe={true}
2312
2444
  onMouseEnter={[Function]}
@@ -2434,6 +2566,72 @@ exports[`Alert - info Description 1`] = `
2434
2566
  </Alert>
2435
2567
  `;
2436
2568
 
2569
+ exports[`Alert - info Heading level 1`] = `
2570
+ <Alert
2571
+ title="Some title"
2572
+ titleHeadingLevel="h1"
2573
+ variant="info"
2574
+ >
2575
+ <div
2576
+ aria-label="Info Alert"
2577
+ className="pf-c-alert pf-m-info"
2578
+ data-ouia-component-id="OUIA-Generated-Alert-info-3"
2579
+ data-ouia-component-type="PF4/Alert"
2580
+ data-ouia-safe={true}
2581
+ onMouseEnter={[Function]}
2582
+ onMouseLeave={[Function]}
2583
+ >
2584
+ <AlertIcon
2585
+ variant="info"
2586
+ >
2587
+ <div
2588
+ className="pf-c-alert__icon"
2589
+ >
2590
+ <InfoCircleIcon
2591
+ color="currentColor"
2592
+ noVerticalAlign={false}
2593
+ size="sm"
2594
+ >
2595
+ <svg
2596
+ aria-hidden={true}
2597
+ aria-labelledby={null}
2598
+ fill="currentColor"
2599
+ height="1em"
2600
+ role="img"
2601
+ style={
2602
+ Object {
2603
+ "verticalAlign": "-0.125em",
2604
+ }
2605
+ }
2606
+ viewBox="0 0 512 512"
2607
+ width="1em"
2608
+ >
2609
+ <path
2610
+ 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"
2611
+ />
2612
+ </svg>
2613
+ </InfoCircleIcon>
2614
+ </div>
2615
+ </AlertIcon>
2616
+ <h1
2617
+ className="pf-c-alert__title"
2618
+ >
2619
+ <span
2620
+ className="pf-u-screen-reader"
2621
+ >
2622
+ Info alert:
2623
+ </span>
2624
+ Some title
2625
+ </h1>
2626
+ <div
2627
+ className="pf-c-alert__description"
2628
+ >
2629
+ Some alert
2630
+ </div>
2631
+ </div>
2632
+ </Alert>
2633
+ `;
2634
+
2437
2635
  exports[`Alert - info Title 1`] = `
2438
2636
  <Alert
2439
2637
  title="Some title"
@@ -2511,7 +2709,7 @@ exports[`Alert - info Toast alerts match snapsnot 1`] = `
2511
2709
  aria-label="info toast alert"
2512
2710
  aria-live="polite"
2513
2711
  className="pf-c-alert pf-m-info"
2514
- data-ouia-component-id="OUIA-Generated-Alert-info-10"
2712
+ data-ouia-component-id="OUIA-Generated-Alert-info-11"
2515
2713
  data-ouia-component-type="PF4/Alert"
2516
2714
  data-ouia-safe={true}
2517
2715
  onMouseEnter={[Function]}
@@ -2577,7 +2775,7 @@ exports[`Alert - info expandable variation 1`] = `
2577
2775
  <div
2578
2776
  aria-label="Info Alert"
2579
2777
  className="pf-c-alert pf-m-expandable pf-m-info"
2580
- data-ouia-component-id="OUIA-Generated-Alert-info-8"
2778
+ data-ouia-component-id="OUIA-Generated-Alert-info-9"
2581
2779
  data-ouia-component-type="PF4/Alert"
2582
2780
  data-ouia-safe={true}
2583
2781
  onMouseEnter={[Function]}
@@ -2706,7 +2904,7 @@ exports[`Alert - info inline variation 1`] = `
2706
2904
  <div
2707
2905
  aria-label="Info Alert"
2708
2906
  className="pf-c-alert pf-m-inline pf-m-info"
2709
- data-ouia-component-id="OUIA-Generated-Alert-info-7"
2907
+ data-ouia-component-id="OUIA-Generated-Alert-info-8"
2710
2908
  data-ouia-component-type="PF4/Alert"
2711
2909
  data-ouia-safe={true}
2712
2910
  onMouseEnter={[Function]}
@@ -2777,7 +2975,7 @@ exports[`Alert - success Action Close Button 1`] = `
2777
2975
  <div
2778
2976
  aria-label="Success Alert"
2779
2977
  className="pf-c-alert pf-m-success"
2780
- data-ouia-component-id="OUIA-Generated-Alert-success-4"
2978
+ data-ouia-component-id="OUIA-Generated-Alert-success-5"
2781
2979
  data-ouia-component-type="PF4/Alert"
2782
2980
  data-ouia-safe={true}
2783
2981
  onMouseEnter={[Function]}
@@ -2908,7 +3106,7 @@ exports[`Alert - success Action Link 1`] = `
2908
3106
  <div
2909
3107
  aria-label="Success Alert"
2910
3108
  className="pf-c-alert pf-m-success"
2911
- data-ouia-component-id="OUIA-Generated-Alert-success-3"
3109
+ data-ouia-component-id="OUIA-Generated-Alert-success-4"
2912
3110
  data-ouia-component-type="PF4/Alert"
2913
3111
  data-ouia-safe={true}
2914
3112
  onMouseEnter={[Function]}
@@ -3013,7 +3211,7 @@ exports[`Alert - success Action and Title 1`] = `
3013
3211
  <div
3014
3212
  aria-label="Success Alert"
3015
3213
  className="pf-c-alert pf-m-success"
3016
- data-ouia-component-id="OUIA-Generated-Alert-success-5"
3214
+ data-ouia-component-id="OUIA-Generated-Alert-success-6"
3017
3215
  data-ouia-component-type="PF4/Alert"
3018
3216
  data-ouia-safe={true}
3019
3217
  onMouseEnter={[Function]}
@@ -3120,7 +3318,7 @@ exports[`Alert - success Custom aria label 1`] = `
3120
3318
  <div
3121
3319
  aria-label="Custom aria label for success"
3122
3320
  className="pf-c-alert pf-m-success"
3123
- data-ouia-component-id="OUIA-Generated-Alert-success-6"
3321
+ data-ouia-component-id="OUIA-Generated-Alert-success-7"
3124
3322
  data-ouia-component-type="PF4/Alert"
3125
3323
  data-ouia-safe={true}
3126
3324
  onMouseEnter={[Function]}
@@ -3227,7 +3425,7 @@ exports[`Alert - success Custom icon 1`] = `
3227
3425
  <div
3228
3426
  aria-label="success custom icon alert"
3229
3427
  className="pf-c-alert pf-m-success"
3230
- data-ouia-component-id="OUIA-Generated-Alert-success-14"
3428
+ data-ouia-component-id="OUIA-Generated-Alert-success-15"
3231
3429
  data-ouia-component-type="PF4/Alert"
3232
3430
  data-ouia-safe={true}
3233
3431
  onMouseEnter={[Function]}
@@ -3355,6 +3553,72 @@ exports[`Alert - success Description 1`] = `
3355
3553
  </Alert>
3356
3554
  `;
3357
3555
 
3556
+ exports[`Alert - success Heading level 1`] = `
3557
+ <Alert
3558
+ title="Some title"
3559
+ titleHeadingLevel="h1"
3560
+ variant="success"
3561
+ >
3562
+ <div
3563
+ aria-label="Success Alert"
3564
+ className="pf-c-alert pf-m-success"
3565
+ data-ouia-component-id="OUIA-Generated-Alert-success-3"
3566
+ data-ouia-component-type="PF4/Alert"
3567
+ data-ouia-safe={true}
3568
+ onMouseEnter={[Function]}
3569
+ onMouseLeave={[Function]}
3570
+ >
3571
+ <AlertIcon
3572
+ variant="success"
3573
+ >
3574
+ <div
3575
+ className="pf-c-alert__icon"
3576
+ >
3577
+ <CheckCircleIcon
3578
+ color="currentColor"
3579
+ noVerticalAlign={false}
3580
+ size="sm"
3581
+ >
3582
+ <svg
3583
+ aria-hidden={true}
3584
+ aria-labelledby={null}
3585
+ fill="currentColor"
3586
+ height="1em"
3587
+ role="img"
3588
+ style={
3589
+ Object {
3590
+ "verticalAlign": "-0.125em",
3591
+ }
3592
+ }
3593
+ viewBox="0 0 512 512"
3594
+ width="1em"
3595
+ >
3596
+ <path
3597
+ 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"
3598
+ />
3599
+ </svg>
3600
+ </CheckCircleIcon>
3601
+ </div>
3602
+ </AlertIcon>
3603
+ <h1
3604
+ className="pf-c-alert__title"
3605
+ >
3606
+ <span
3607
+ className="pf-u-screen-reader"
3608
+ >
3609
+ Success alert:
3610
+ </span>
3611
+ Some title
3612
+ </h1>
3613
+ <div
3614
+ className="pf-c-alert__description"
3615
+ >
3616
+ Some alert
3617
+ </div>
3618
+ </div>
3619
+ </Alert>
3620
+ `;
3621
+
3358
3622
  exports[`Alert - success Title 1`] = `
3359
3623
  <Alert
3360
3624
  title="Some title"
@@ -3432,7 +3696,7 @@ exports[`Alert - success Toast alerts match snapsnot 1`] = `
3432
3696
  aria-label="success toast alert"
3433
3697
  aria-live="polite"
3434
3698
  className="pf-c-alert pf-m-success"
3435
- data-ouia-component-id="OUIA-Generated-Alert-success-10"
3699
+ data-ouia-component-id="OUIA-Generated-Alert-success-11"
3436
3700
  data-ouia-component-type="PF4/Alert"
3437
3701
  data-ouia-safe={true}
3438
3702
  onMouseEnter={[Function]}
@@ -3498,7 +3762,7 @@ exports[`Alert - success expandable variation 1`] = `
3498
3762
  <div
3499
3763
  aria-label="Success Alert"
3500
3764
  className="pf-c-alert pf-m-expandable pf-m-success"
3501
- data-ouia-component-id="OUIA-Generated-Alert-success-8"
3765
+ data-ouia-component-id="OUIA-Generated-Alert-success-9"
3502
3766
  data-ouia-component-type="PF4/Alert"
3503
3767
  data-ouia-safe={true}
3504
3768
  onMouseEnter={[Function]}
@@ -3627,7 +3891,7 @@ exports[`Alert - success inline variation 1`] = `
3627
3891
  <div
3628
3892
  aria-label="Success Alert"
3629
3893
  className="pf-c-alert pf-m-inline pf-m-success"
3630
- data-ouia-component-id="OUIA-Generated-Alert-success-7"
3894
+ data-ouia-component-id="OUIA-Generated-Alert-success-8"
3631
3895
  data-ouia-component-type="PF4/Alert"
3632
3896
  data-ouia-safe={true}
3633
3897
  onMouseEnter={[Function]}
@@ -3698,7 +3962,7 @@ exports[`Alert - warning Action Close Button 1`] = `
3698
3962
  <div
3699
3963
  aria-label="Warning Alert"
3700
3964
  className="pf-c-alert pf-m-warning"
3701
- data-ouia-component-id="OUIA-Generated-Alert-warning-4"
3965
+ data-ouia-component-id="OUIA-Generated-Alert-warning-5"
3702
3966
  data-ouia-component-type="PF4/Alert"
3703
3967
  data-ouia-safe={true}
3704
3968
  onMouseEnter={[Function]}
@@ -3829,7 +4093,7 @@ exports[`Alert - warning Action Link 1`] = `
3829
4093
  <div
3830
4094
  aria-label="Warning Alert"
3831
4095
  className="pf-c-alert pf-m-warning"
3832
- data-ouia-component-id="OUIA-Generated-Alert-warning-3"
4096
+ data-ouia-component-id="OUIA-Generated-Alert-warning-4"
3833
4097
  data-ouia-component-type="PF4/Alert"
3834
4098
  data-ouia-safe={true}
3835
4099
  onMouseEnter={[Function]}
@@ -3934,7 +4198,7 @@ exports[`Alert - warning Action and Title 1`] = `
3934
4198
  <div
3935
4199
  aria-label="Warning Alert"
3936
4200
  className="pf-c-alert pf-m-warning"
3937
- data-ouia-component-id="OUIA-Generated-Alert-warning-5"
4201
+ data-ouia-component-id="OUIA-Generated-Alert-warning-6"
3938
4202
  data-ouia-component-type="PF4/Alert"
3939
4203
  data-ouia-safe={true}
3940
4204
  onMouseEnter={[Function]}
@@ -4041,7 +4305,7 @@ exports[`Alert - warning Custom aria label 1`] = `
4041
4305
  <div
4042
4306
  aria-label="Custom aria label for warning"
4043
4307
  className="pf-c-alert pf-m-warning"
4044
- data-ouia-component-id="OUIA-Generated-Alert-warning-6"
4308
+ data-ouia-component-id="OUIA-Generated-Alert-warning-7"
4045
4309
  data-ouia-component-type="PF4/Alert"
4046
4310
  data-ouia-safe={true}
4047
4311
  onMouseEnter={[Function]}
@@ -4148,7 +4412,7 @@ exports[`Alert - warning Custom icon 1`] = `
4148
4412
  <div
4149
4413
  aria-label="warning custom icon alert"
4150
4414
  className="pf-c-alert pf-m-warning"
4151
- data-ouia-component-id="OUIA-Generated-Alert-warning-14"
4415
+ data-ouia-component-id="OUIA-Generated-Alert-warning-15"
4152
4416
  data-ouia-component-type="PF4/Alert"
4153
4417
  data-ouia-safe={true}
4154
4418
  onMouseEnter={[Function]}
@@ -4276,6 +4540,72 @@ exports[`Alert - warning Description 1`] = `
4276
4540
  </Alert>
4277
4541
  `;
4278
4542
 
4543
+ exports[`Alert - warning Heading level 1`] = `
4544
+ <Alert
4545
+ title="Some title"
4546
+ titleHeadingLevel="h1"
4547
+ variant="warning"
4548
+ >
4549
+ <div
4550
+ aria-label="Warning Alert"
4551
+ className="pf-c-alert pf-m-warning"
4552
+ data-ouia-component-id="OUIA-Generated-Alert-warning-3"
4553
+ data-ouia-component-type="PF4/Alert"
4554
+ data-ouia-safe={true}
4555
+ onMouseEnter={[Function]}
4556
+ onMouseLeave={[Function]}
4557
+ >
4558
+ <AlertIcon
4559
+ variant="warning"
4560
+ >
4561
+ <div
4562
+ className="pf-c-alert__icon"
4563
+ >
4564
+ <ExclamationTriangleIcon
4565
+ color="currentColor"
4566
+ noVerticalAlign={false}
4567
+ size="sm"
4568
+ >
4569
+ <svg
4570
+ aria-hidden={true}
4571
+ aria-labelledby={null}
4572
+ fill="currentColor"
4573
+ height="1em"
4574
+ role="img"
4575
+ style={
4576
+ Object {
4577
+ "verticalAlign": "-0.125em",
4578
+ }
4579
+ }
4580
+ viewBox="0 0 576 512"
4581
+ width="1em"
4582
+ >
4583
+ <path
4584
+ 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"
4585
+ />
4586
+ </svg>
4587
+ </ExclamationTriangleIcon>
4588
+ </div>
4589
+ </AlertIcon>
4590
+ <h1
4591
+ className="pf-c-alert__title"
4592
+ >
4593
+ <span
4594
+ className="pf-u-screen-reader"
4595
+ >
4596
+ Warning alert:
4597
+ </span>
4598
+ Some title
4599
+ </h1>
4600
+ <div
4601
+ className="pf-c-alert__description"
4602
+ >
4603
+ Some alert
4604
+ </div>
4605
+ </div>
4606
+ </Alert>
4607
+ `;
4608
+
4279
4609
  exports[`Alert - warning Title 1`] = `
4280
4610
  <Alert
4281
4611
  title="Some title"
@@ -4353,7 +4683,7 @@ exports[`Alert - warning Toast alerts match snapsnot 1`] = `
4353
4683
  aria-label="warning toast alert"
4354
4684
  aria-live="polite"
4355
4685
  className="pf-c-alert pf-m-warning"
4356
- data-ouia-component-id="OUIA-Generated-Alert-warning-10"
4686
+ data-ouia-component-id="OUIA-Generated-Alert-warning-11"
4357
4687
  data-ouia-component-type="PF4/Alert"
4358
4688
  data-ouia-safe={true}
4359
4689
  onMouseEnter={[Function]}
@@ -4419,7 +4749,7 @@ exports[`Alert - warning expandable variation 1`] = `
4419
4749
  <div
4420
4750
  aria-label="Warning Alert"
4421
4751
  className="pf-c-alert pf-m-expandable pf-m-warning"
4422
- data-ouia-component-id="OUIA-Generated-Alert-warning-8"
4752
+ data-ouia-component-id="OUIA-Generated-Alert-warning-9"
4423
4753
  data-ouia-component-type="PF4/Alert"
4424
4754
  data-ouia-safe={true}
4425
4755
  onMouseEnter={[Function]}
@@ -4548,7 +4878,7 @@ exports[`Alert - warning inline variation 1`] = `
4548
4878
  <div
4549
4879
  aria-label="Warning Alert"
4550
4880
  className="pf-c-alert pf-m-inline pf-m-warning"
4551
- data-ouia-component-id="OUIA-Generated-Alert-warning-7"
4881
+ data-ouia-component-id="OUIA-Generated-Alert-warning-8"
4552
4882
  data-ouia-component-type="PF4/Alert"
4553
4883
  data-ouia-safe={true}
4554
4884
  onMouseEnter={[Function]}