@patternfly/react-core 4.231.7 → 4.232.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 (49) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/esm/components/Alert/Alert.d.ts.map +1 -1
  3. package/dist/esm/components/Alert/Alert.js +2 -2
  4. package/dist/esm/components/Alert/Alert.js.map +1 -1
  5. package/dist/esm/deprecated/components/index.d.ts +2 -0
  6. package/dist/esm/deprecated/components/index.d.ts.map +1 -0
  7. package/dist/esm/deprecated/components/index.js +2 -0
  8. package/dist/esm/deprecated/components/index.js.map +1 -0
  9. package/dist/esm/deprecated/index.d.ts +2 -0
  10. package/dist/esm/deprecated/index.d.ts.map +1 -0
  11. package/dist/esm/deprecated/index.js +2 -0
  12. package/dist/esm/deprecated/index.js.map +1 -0
  13. package/dist/esm/next/components/index.d.ts +2 -0
  14. package/dist/esm/next/components/index.d.ts.map +1 -0
  15. package/dist/esm/next/components/index.js +2 -0
  16. package/dist/esm/next/components/index.js.map +1 -0
  17. package/dist/esm/next/index.d.ts +2 -0
  18. package/dist/esm/next/index.d.ts.map +1 -0
  19. package/dist/esm/next/index.js +2 -0
  20. package/dist/esm/next/index.js.map +1 -0
  21. package/dist/js/components/Alert/Alert.d.ts.map +1 -1
  22. package/dist/js/components/Alert/Alert.js +2 -2
  23. package/dist/js/components/Alert/Alert.js.map +1 -1
  24. package/dist/js/deprecated/components/index.d.ts +2 -0
  25. package/dist/js/deprecated/components/index.d.ts.map +1 -0
  26. package/dist/js/deprecated/components/index.js +5 -0
  27. package/dist/js/deprecated/components/index.js.map +1 -0
  28. package/dist/js/deprecated/index.d.ts +2 -0
  29. package/dist/js/deprecated/index.d.ts.map +1 -0
  30. package/dist/js/deprecated/index.js +5 -0
  31. package/dist/js/deprecated/index.js.map +1 -0
  32. package/dist/js/next/components/index.d.ts +2 -0
  33. package/dist/js/next/components/index.d.ts.map +1 -0
  34. package/dist/js/next/components/index.js +5 -0
  35. package/dist/js/next/components/index.js.map +1 -0
  36. package/dist/js/next/index.d.ts +2 -0
  37. package/dist/js/next/index.d.ts.map +1 -0
  38. package/dist/js/next/index.js +5 -0
  39. package/dist/js/next/index.js.map +1 -0
  40. package/dist/umd/react-core.css +404 -404
  41. package/dist/umd/react-core.js +2 -2
  42. package/dist/umd/react-core.min.js +1 -1
  43. package/package.json +21 -5
  44. package/src/components/Alert/Alert.tsx +2 -0
  45. package/src/components/Alert/__tests__/__snapshots__/Alert.test.tsx.snap +35 -0
  46. package/src/deprecated/components/index.ts +1 -0
  47. package/src/deprecated/index.ts +1 -0
  48. package/src/next/components/index.ts +1 -0
  49. package/src/next/index.ts +1 -0
package/package.json CHANGED
@@ -1,10 +1,26 @@
1
1
  {
2
2
  "name": "@patternfly/react-core",
3
- "version": "4.231.7",
3
+ "version": "4.232.0",
4
4
  "description": "This library provides a set of common React components for use with the PatternFly reference implementation.",
5
5
  "main": "dist/js/index.js",
6
6
  "module": "dist/esm/index.js",
7
7
  "types": "dist/esm/index.d.ts",
8
+ "exports": {
9
+ ".": "./dist/esm/index.js",
10
+ "./next": "./dist/esm/next/index.js",
11
+ "./deprecated": "./dist/esm/deprecated/index.js",
12
+ "./package.json": "./package.json"
13
+ },
14
+ "typesVersions": {
15
+ "*": {
16
+ "next": [
17
+ "dist/esm/next/index.d.ts"
18
+ ],
19
+ "deprecated": [
20
+ "dist/esm/deprecated/index.d.ts"
21
+ ]
22
+ }
23
+ },
8
24
  "patternfly:src": "src/",
9
25
  "sideEffects": [
10
26
  "*.css",
@@ -34,9 +50,9 @@
34
50
  "generate": "node scripts/copyStyles.js"
35
51
  },
36
52
  "dependencies": {
37
- "@patternfly/react-icons": "^4.82.7",
38
- "@patternfly/react-styles": "^4.81.7",
39
- "@patternfly/react-tokens": "^4.83.7",
53
+ "@patternfly/react-icons": "^4.83.0",
54
+ "@patternfly/react-styles": "^4.82.0",
55
+ "@patternfly/react-tokens": "^4.84.0",
40
56
  "focus-trap": "6.9.2",
41
57
  "react-dropzone": "9.0.0",
42
58
  "tippy.js": "5.1.2",
@@ -60,5 +76,5 @@
60
76
  "react": "^16.8.0 || ^17.0.0",
61
77
  "react-dom": "^16.8.0 || ^17.0.0"
62
78
  },
63
- "gitHead": "b636e21892691ac6c44914d61121086e953dccea"
79
+ "gitHead": "6faf7d797507f4ac5e1453f4755695a33c33a9ab"
64
80
  }
@@ -81,6 +81,7 @@ export const Alert: React.FunctionComponent<AlertProps> = ({
81
81
  isPlain = false,
82
82
  isLiveRegion = false,
83
83
  variantLabel = `${capitalize(variant)} alert:`,
84
+ 'aria-label': ariaLabel = `${capitalize(variant)} Alert`,
84
85
  actionClose,
85
86
  actionLinks,
86
87
  title,
@@ -202,6 +203,7 @@ export const Alert: React.FunctionComponent<AlertProps> = ({
202
203
  styles.modifiers[variant as 'success' | 'danger' | 'warning' | 'info'],
203
204
  className
204
205
  )}
206
+ aria-label={ariaLabel}
205
207
  {...ouiaProps}
206
208
  {...(isLiveRegion && {
207
209
  'aria-live': 'polite',
@@ -3,6 +3,7 @@
3
3
  exports[`Alert Alert - danger Action Link 1`] = `
4
4
  <DocumentFragment>
5
5
  <div
6
+ aria-label="Danger Alert"
6
7
  class="pf-c-alert pf-m-danger"
7
8
  data-ouia-component-id="OUIA-Generated-Alert-danger-4"
8
9
  data-ouia-component-type="PF4/Alert"
@@ -60,6 +61,7 @@ exports[`Alert Alert - danger Action Link 1`] = `
60
61
  exports[`Alert Alert - danger Action and Title 1`] = `
61
62
  <DocumentFragment>
62
63
  <div
64
+ aria-label="Danger Alert"
63
65
  class="pf-c-alert pf-m-danger"
64
66
  data-ouia-component-id="OUIA-Generated-Alert-danger-6"
65
67
  data-ouia-component-type="PF4/Alert"
@@ -222,6 +224,7 @@ exports[`Alert Alert - danger Custom icon 1`] = `
222
224
  exports[`Alert Alert - danger Description 1`] = `
223
225
  <DocumentFragment>
224
226
  <div
227
+ aria-label="Danger Alert"
225
228
  class="pf-c-alert pf-m-danger"
226
229
  data-ouia-component-id="OUIA-Generated-Alert-danger-1"
227
230
  data-ouia-component-type="PF4/Alert"
@@ -265,6 +268,7 @@ exports[`Alert Alert - danger Description 1`] = `
265
268
  exports[`Alert Alert - danger Heading level 1`] = `
266
269
  <DocumentFragment>
267
270
  <div
271
+ aria-label="Danger Alert"
268
272
  class="pf-c-alert pf-m-danger"
269
273
  data-ouia-component-id="OUIA-Generated-Alert-danger-3"
270
274
  data-ouia-component-type="PF4/Alert"
@@ -309,6 +313,7 @@ exports[`Alert Alert - danger Heading level 1`] = `
309
313
  exports[`Alert Alert - danger Title 1`] = `
310
314
  <DocumentFragment>
311
315
  <div
316
+ aria-label="Danger Alert"
312
317
  class="pf-c-alert pf-m-danger"
313
318
  data-ouia-component-id="OUIA-Generated-Alert-danger-2"
314
319
  data-ouia-component-type="PF4/Alert"
@@ -400,6 +405,7 @@ exports[`Alert Alert - danger Toast alerts match snapsnot 1`] = `
400
405
  exports[`Alert Alert - danger expandable variation 1`] = `
401
406
  <DocumentFragment>
402
407
  <div
408
+ aria-label="Danger Alert"
403
409
  class="pf-c-alert pf-m-expandable pf-m-danger"
404
410
  data-ouia-component-id="OUIA-Generated-Alert-danger-9"
405
411
  data-ouia-component-type="PF4/Alert"
@@ -471,6 +477,7 @@ exports[`Alert Alert - danger expandable variation 1`] = `
471
477
  exports[`Alert Alert - danger inline variation 1`] = `
472
478
  <DocumentFragment>
473
479
  <div
480
+ aria-label="Danger Alert"
474
481
  class="pf-c-alert pf-m-inline pf-m-danger"
475
482
  data-ouia-component-id="OUIA-Generated-Alert-danger-8"
476
483
  data-ouia-component-type="PF4/Alert"
@@ -515,6 +522,7 @@ exports[`Alert Alert - danger inline variation 1`] = `
515
522
  exports[`Alert Alert - default Action Link 1`] = `
516
523
  <DocumentFragment>
517
524
  <div
525
+ aria-label="Default Alert"
518
526
  class="pf-c-alert"
519
527
  data-ouia-component-id="OUIA-Generated-Alert-default-5"
520
528
  data-ouia-component-type="PF4/Alert"
@@ -572,6 +580,7 @@ exports[`Alert Alert - default Action Link 1`] = `
572
580
  exports[`Alert Alert - default Action and Title 1`] = `
573
581
  <DocumentFragment>
574
582
  <div
583
+ aria-label="Default Alert"
575
584
  class="pf-c-alert"
576
585
  data-ouia-component-id="OUIA-Generated-Alert-default-7"
577
586
  data-ouia-component-type="PF4/Alert"
@@ -734,6 +743,7 @@ exports[`Alert Alert - default Custom icon 1`] = `
734
743
  exports[`Alert Alert - default Description 1`] = `
735
744
  <DocumentFragment>
736
745
  <div
746
+ aria-label="Default Alert"
737
747
  class="pf-c-alert"
738
748
  data-ouia-component-id="OUIA-Generated-Alert-default-2"
739
749
  data-ouia-component-type="PF4/Alert"
@@ -777,6 +787,7 @@ exports[`Alert Alert - default Description 1`] = `
777
787
  exports[`Alert Alert - default Heading level 1`] = `
778
788
  <DocumentFragment>
779
789
  <div
790
+ aria-label="Default Alert"
780
791
  class="pf-c-alert"
781
792
  data-ouia-component-id="OUIA-Generated-Alert-default-4"
782
793
  data-ouia-component-type="PF4/Alert"
@@ -821,6 +832,7 @@ exports[`Alert Alert - default Heading level 1`] = `
821
832
  exports[`Alert Alert - default Title 1`] = `
822
833
  <DocumentFragment>
823
834
  <div
835
+ aria-label="Default Alert"
824
836
  class="pf-c-alert"
825
837
  data-ouia-component-id="OUIA-Generated-Alert-default-3"
826
838
  data-ouia-component-type="PF4/Alert"
@@ -912,6 +924,7 @@ exports[`Alert Alert - default Toast alerts match snapsnot 1`] = `
912
924
  exports[`Alert Alert - default expandable variation 1`] = `
913
925
  <DocumentFragment>
914
926
  <div
927
+ aria-label="Default Alert"
915
928
  class="pf-c-alert pf-m-expandable"
916
929
  data-ouia-component-id="OUIA-Generated-Alert-default-10"
917
930
  data-ouia-component-type="PF4/Alert"
@@ -983,6 +996,7 @@ exports[`Alert Alert - default expandable variation 1`] = `
983
996
  exports[`Alert Alert - default inline variation 1`] = `
984
997
  <DocumentFragment>
985
998
  <div
999
+ aria-label="Default Alert"
986
1000
  class="pf-c-alert pf-m-inline"
987
1001
  data-ouia-component-id="OUIA-Generated-Alert-default-9"
988
1002
  data-ouia-component-type="PF4/Alert"
@@ -1027,6 +1041,7 @@ exports[`Alert Alert - default inline variation 1`] = `
1027
1041
  exports[`Alert Alert - info Action Link 1`] = `
1028
1042
  <DocumentFragment>
1029
1043
  <div
1044
+ aria-label="Info Alert"
1030
1045
  class="pf-c-alert pf-m-info"
1031
1046
  data-ouia-component-id="OUIA-Generated-Alert-info-4"
1032
1047
  data-ouia-component-type="PF4/Alert"
@@ -1084,6 +1099,7 @@ exports[`Alert Alert - info Action Link 1`] = `
1084
1099
  exports[`Alert Alert - info Action and Title 1`] = `
1085
1100
  <DocumentFragment>
1086
1101
  <div
1102
+ aria-label="Info Alert"
1087
1103
  class="pf-c-alert pf-m-info"
1088
1104
  data-ouia-component-id="OUIA-Generated-Alert-info-6"
1089
1105
  data-ouia-component-type="PF4/Alert"
@@ -1246,6 +1262,7 @@ exports[`Alert Alert - info Custom icon 1`] = `
1246
1262
  exports[`Alert Alert - info Description 1`] = `
1247
1263
  <DocumentFragment>
1248
1264
  <div
1265
+ aria-label="Info Alert"
1249
1266
  class="pf-c-alert pf-m-info"
1250
1267
  data-ouia-component-id="OUIA-Generated-Alert-info-1"
1251
1268
  data-ouia-component-type="PF4/Alert"
@@ -1289,6 +1306,7 @@ exports[`Alert Alert - info Description 1`] = `
1289
1306
  exports[`Alert Alert - info Heading level 1`] = `
1290
1307
  <DocumentFragment>
1291
1308
  <div
1309
+ aria-label="Info Alert"
1292
1310
  class="pf-c-alert pf-m-info"
1293
1311
  data-ouia-component-id="OUIA-Generated-Alert-info-3"
1294
1312
  data-ouia-component-type="PF4/Alert"
@@ -1333,6 +1351,7 @@ exports[`Alert Alert - info Heading level 1`] = `
1333
1351
  exports[`Alert Alert - info Title 1`] = `
1334
1352
  <DocumentFragment>
1335
1353
  <div
1354
+ aria-label="Info Alert"
1336
1355
  class="pf-c-alert pf-m-info"
1337
1356
  data-ouia-component-id="OUIA-Generated-Alert-info-2"
1338
1357
  data-ouia-component-type="PF4/Alert"
@@ -1424,6 +1443,7 @@ exports[`Alert Alert - info Toast alerts match snapsnot 1`] = `
1424
1443
  exports[`Alert Alert - info expandable variation 1`] = `
1425
1444
  <DocumentFragment>
1426
1445
  <div
1446
+ aria-label="Info Alert"
1427
1447
  class="pf-c-alert pf-m-expandable pf-m-info"
1428
1448
  data-ouia-component-id="OUIA-Generated-Alert-info-9"
1429
1449
  data-ouia-component-type="PF4/Alert"
@@ -1495,6 +1515,7 @@ exports[`Alert Alert - info expandable variation 1`] = `
1495
1515
  exports[`Alert Alert - info inline variation 1`] = `
1496
1516
  <DocumentFragment>
1497
1517
  <div
1518
+ aria-label="Info Alert"
1498
1519
  class="pf-c-alert pf-m-inline pf-m-info"
1499
1520
  data-ouia-component-id="OUIA-Generated-Alert-info-8"
1500
1521
  data-ouia-component-type="PF4/Alert"
@@ -1539,6 +1560,7 @@ exports[`Alert Alert - info inline variation 1`] = `
1539
1560
  exports[`Alert Alert - success Action Link 1`] = `
1540
1561
  <DocumentFragment>
1541
1562
  <div
1563
+ aria-label="Success Alert"
1542
1564
  class="pf-c-alert pf-m-success"
1543
1565
  data-ouia-component-id="OUIA-Generated-Alert-success-4"
1544
1566
  data-ouia-component-type="PF4/Alert"
@@ -1596,6 +1618,7 @@ exports[`Alert Alert - success Action Link 1`] = `
1596
1618
  exports[`Alert Alert - success Action and Title 1`] = `
1597
1619
  <DocumentFragment>
1598
1620
  <div
1621
+ aria-label="Success Alert"
1599
1622
  class="pf-c-alert pf-m-success"
1600
1623
  data-ouia-component-id="OUIA-Generated-Alert-success-6"
1601
1624
  data-ouia-component-type="PF4/Alert"
@@ -1758,6 +1781,7 @@ exports[`Alert Alert - success Custom icon 1`] = `
1758
1781
  exports[`Alert Alert - success Description 1`] = `
1759
1782
  <DocumentFragment>
1760
1783
  <div
1784
+ aria-label="Success Alert"
1761
1785
  class="pf-c-alert pf-m-success"
1762
1786
  data-ouia-component-id="OUIA-Generated-Alert-success-1"
1763
1787
  data-ouia-component-type="PF4/Alert"
@@ -1801,6 +1825,7 @@ exports[`Alert Alert - success Description 1`] = `
1801
1825
  exports[`Alert Alert - success Heading level 1`] = `
1802
1826
  <DocumentFragment>
1803
1827
  <div
1828
+ aria-label="Success Alert"
1804
1829
  class="pf-c-alert pf-m-success"
1805
1830
  data-ouia-component-id="OUIA-Generated-Alert-success-3"
1806
1831
  data-ouia-component-type="PF4/Alert"
@@ -1845,6 +1870,7 @@ exports[`Alert Alert - success Heading level 1`] = `
1845
1870
  exports[`Alert Alert - success Title 1`] = `
1846
1871
  <DocumentFragment>
1847
1872
  <div
1873
+ aria-label="Success Alert"
1848
1874
  class="pf-c-alert pf-m-success"
1849
1875
  data-ouia-component-id="OUIA-Generated-Alert-success-2"
1850
1876
  data-ouia-component-type="PF4/Alert"
@@ -1936,6 +1962,7 @@ exports[`Alert Alert - success Toast alerts match snapsnot 1`] = `
1936
1962
  exports[`Alert Alert - success expandable variation 1`] = `
1937
1963
  <DocumentFragment>
1938
1964
  <div
1965
+ aria-label="Success Alert"
1939
1966
  class="pf-c-alert pf-m-expandable pf-m-success"
1940
1967
  data-ouia-component-id="OUIA-Generated-Alert-success-9"
1941
1968
  data-ouia-component-type="PF4/Alert"
@@ -2007,6 +2034,7 @@ exports[`Alert Alert - success expandable variation 1`] = `
2007
2034
  exports[`Alert Alert - success inline variation 1`] = `
2008
2035
  <DocumentFragment>
2009
2036
  <div
2037
+ aria-label="Success Alert"
2010
2038
  class="pf-c-alert pf-m-inline pf-m-success"
2011
2039
  data-ouia-component-id="OUIA-Generated-Alert-success-8"
2012
2040
  data-ouia-component-type="PF4/Alert"
@@ -2051,6 +2079,7 @@ exports[`Alert Alert - success inline variation 1`] = `
2051
2079
  exports[`Alert Alert - warning Action Link 1`] = `
2052
2080
  <DocumentFragment>
2053
2081
  <div
2082
+ aria-label="Warning Alert"
2054
2083
  class="pf-c-alert pf-m-warning"
2055
2084
  data-ouia-component-id="OUIA-Generated-Alert-warning-4"
2056
2085
  data-ouia-component-type="PF4/Alert"
@@ -2108,6 +2137,7 @@ exports[`Alert Alert - warning Action Link 1`] = `
2108
2137
  exports[`Alert Alert - warning Action and Title 1`] = `
2109
2138
  <DocumentFragment>
2110
2139
  <div
2140
+ aria-label="Warning Alert"
2111
2141
  class="pf-c-alert pf-m-warning"
2112
2142
  data-ouia-component-id="OUIA-Generated-Alert-warning-6"
2113
2143
  data-ouia-component-type="PF4/Alert"
@@ -2270,6 +2300,7 @@ exports[`Alert Alert - warning Custom icon 1`] = `
2270
2300
  exports[`Alert Alert - warning Description 1`] = `
2271
2301
  <DocumentFragment>
2272
2302
  <div
2303
+ aria-label="Warning Alert"
2273
2304
  class="pf-c-alert pf-m-warning"
2274
2305
  data-ouia-component-id="OUIA-Generated-Alert-warning-1"
2275
2306
  data-ouia-component-type="PF4/Alert"
@@ -2313,6 +2344,7 @@ exports[`Alert Alert - warning Description 1`] = `
2313
2344
  exports[`Alert Alert - warning Heading level 1`] = `
2314
2345
  <DocumentFragment>
2315
2346
  <div
2347
+ aria-label="Warning Alert"
2316
2348
  class="pf-c-alert pf-m-warning"
2317
2349
  data-ouia-component-id="OUIA-Generated-Alert-warning-3"
2318
2350
  data-ouia-component-type="PF4/Alert"
@@ -2357,6 +2389,7 @@ exports[`Alert Alert - warning Heading level 1`] = `
2357
2389
  exports[`Alert Alert - warning Title 1`] = `
2358
2390
  <DocumentFragment>
2359
2391
  <div
2392
+ aria-label="Warning Alert"
2360
2393
  class="pf-c-alert pf-m-warning"
2361
2394
  data-ouia-component-id="OUIA-Generated-Alert-warning-2"
2362
2395
  data-ouia-component-type="PF4/Alert"
@@ -2448,6 +2481,7 @@ exports[`Alert Alert - warning Toast alerts match snapsnot 1`] = `
2448
2481
  exports[`Alert Alert - warning expandable variation 1`] = `
2449
2482
  <DocumentFragment>
2450
2483
  <div
2484
+ aria-label="Warning Alert"
2451
2485
  class="pf-c-alert pf-m-expandable pf-m-warning"
2452
2486
  data-ouia-component-id="OUIA-Generated-Alert-warning-9"
2453
2487
  data-ouia-component-type="PF4/Alert"
@@ -2519,6 +2553,7 @@ exports[`Alert Alert - warning expandable variation 1`] = `
2519
2553
  exports[`Alert Alert - warning inline variation 1`] = `
2520
2554
  <DocumentFragment>
2521
2555
  <div
2556
+ aria-label="Warning Alert"
2522
2557
  class="pf-c-alert pf-m-inline pf-m-warning"
2523
2558
  data-ouia-component-id="OUIA-Generated-Alert-warning-8"
2524
2559
  data-ouia-component-type="PF4/Alert"
@@ -0,0 +1 @@
1
+ export * from './';
@@ -0,0 +1 @@
1
+ export * from './components';
@@ -0,0 +1 @@
1
+ export * from './';
@@ -0,0 +1 @@
1
+ export * from './components';