@patternfly/react-core 5.0.0-alpha.57 → 5.0.0-alpha.58

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 (83) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/esm/components/Switch/Switch.js +2 -2
  3. package/dist/esm/components/Switch/Switch.js.map +1 -1
  4. package/dist/js/components/Switch/Switch.js +2 -2
  5. package/dist/js/components/Switch/Switch.js.map +1 -1
  6. package/dist/umd/react-core.min.js +1 -1
  7. package/package.json +3 -3
  8. package/src/components/AboutModal/__tests__/__snapshots__/AboutModalBoxCloseButton.test.tsx.snap +3 -9
  9. package/src/components/Alert/__tests__/Generated/__snapshots__/AlertActionCloseButton.test.tsx.snap +1 -3
  10. package/src/components/Alert/__tests__/Generated/__snapshots__/AlertIcon.test.tsx.snap +1 -3
  11. package/src/components/Alert/__tests__/__snapshots__/AlertActionCloseButton.test.tsx.snap +1 -3
  12. package/src/components/BackToTop/__tests__/__snapshots__/BackToTop.test.tsx.snap +1 -3
  13. package/src/components/Breadcrumb/__tests__/__snapshots__/Breadcrumb.test.tsx.snap +1 -3
  14. package/src/components/Button/__tests__/__snapshots__/Button.test.tsx.snap +1 -3
  15. package/src/components/Card/__tests__/__snapshots__/CardHeader.test.tsx.snap +1 -3
  16. package/src/components/Chip/__tests__/__snapshots__/Chip.test.tsx.snap +4 -12
  17. package/src/components/ChipGroup/__tests__/__snapshots__/ChipGroup.test.tsx.snap +5 -15
  18. package/src/components/ClipboardCopy/__tests__/Generated/__snapshots__/ClipboardCopy.test.tsx.snap +1 -3
  19. package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopyButton.test.tsx.snap +1 -3
  20. package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopyToggle.test.tsx.snap +1 -3
  21. package/src/components/DataList/__tests__/Generated/__snapshots__/DataListToggle.test.tsx.snap +1 -3
  22. package/src/components/DataList/__tests__/__snapshots__/DataList.test.tsx.snap +1 -3
  23. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.test.tsx.snap +5 -15
  24. package/src/components/Drawer/__tests__/__snapshots__/Drawer.test.tsx.snap +6 -18
  25. package/src/components/DualListSelector/__tests__/__snapshots__/DualListSelector.test.tsx.snap +27 -81
  26. package/src/components/EmptyState/__tests__/Generated/__snapshots__/EmptyStateIcon.test.tsx.snap +0 -3
  27. package/src/components/EmptyState/__tests__/__snapshots__/EmptyState.test.tsx.snap +0 -3
  28. package/src/components/ExpandableSection/__tests__/__snapshots__/ExpandableSection.test.tsx.snap +6 -18
  29. package/src/components/FileUpload/examples/FileUploadCustomPreview.tsx +1 -1
  30. package/src/components/Form/__tests__/__snapshots__/FormFieldGroup.test.tsx.snap +1 -3
  31. package/src/components/Form/examples/FormBasic.tsx +1 -1
  32. package/src/components/Form/examples/FormGroupLabelInfo.tsx +1 -1
  33. package/src/components/Form/examples/FormLimitWidth.tsx +1 -1
  34. package/src/components/HelperText/__tests__/__snapshots__/HelperText.test.tsx.snap +2 -6
  35. package/src/components/Icon/__tests__/__snapshots__/Icon.test.tsx.snap +3 -9
  36. package/src/components/JumpLinks/__tests__/__snapshots__/JumpLinks.test.tsx.snap +1 -3
  37. package/src/components/Label/__tests__/__snapshots__/Label.test.tsx.snap +3 -9
  38. package/src/components/LabelGroup/__tests__/__snapshots__/LabelGroup.test.tsx.snap +1 -3
  39. package/src/components/List/__tests__/__snapshots__/List.test.tsx.snap +6 -18
  40. package/src/components/LoginPage/__tests__/__snapshots__/LoginForm.test.tsx.snap +1 -3
  41. package/src/components/MenuToggle/__tests__/__snapshots__/MenuToggle.test.tsx.snap +10 -30
  42. package/src/components/Modal/__tests__/__snapshots__/ModalBoxTitle.test.tsx.snap +6 -18
  43. package/src/components/Modal/__tests__/__snapshots__/ModalContent.test.tsx.snap +8 -24
  44. package/src/components/Modal/examples/ModalWithForm.tsx +3 -3
  45. package/src/components/MultipleFileUpload/__tests__/__snapshots__/MultipleFileUploadStatus.test.tsx.snap +5 -15
  46. package/src/components/MultipleFileUpload/__tests__/__snapshots__/MultipleFileUploadStatusItem.test.tsx.snap +17 -51
  47. package/src/components/Nav/__tests__/Generated/__snapshots__/NavExpandable.test.tsx.snap +1 -3
  48. package/src/components/Nav/__tests__/__snapshots__/Nav.test.tsx.snap +14 -42
  49. package/src/components/NotificationBadge/__tests__/__snapshots__/NotificationBadge.test.tsx.snap +1 -3
  50. package/src/components/NotificationDrawer/__tests__/__snapshots__/NotificationDrawerGroup.test.tsx.snap +4 -12
  51. package/src/components/NotificationDrawer/__tests__/__snapshots__/NotificationDrawerListItemHeader.test.tsx.snap +5 -15
  52. package/src/components/NumberInput/__tests__/__snapshots__/NumberInput.test.tsx.snap +26 -78
  53. package/src/components/Page/__tests__/__snapshots__/Page.test.tsx.snap +33 -99
  54. package/src/components/Pagination/__tests__/Generated/__snapshots__/Navigation.test.tsx.snap +4 -12
  55. package/src/components/Pagination/__tests__/Generated/__snapshots__/PaginationOptionsMenu.test.tsx.snap +1 -3
  56. package/src/components/Pagination/__tests__/__snapshots__/Pagination.test.tsx.snap +102 -306
  57. package/src/components/Popover/__tests__/Generated/__snapshots__/PopoverCloseButton.test.tsx.snap +1 -3
  58. package/src/components/Progress/__tests__/Generated/__snapshots__/ProgressContainer.test.tsx.snap +1 -3
  59. package/src/components/Progress/__tests__/__snapshots__/Progress.test.tsx.snap +3 -9
  60. package/src/components/SearchInput/__tests__/__snapshots__/SearchInput.test.tsx.snap +23 -69
  61. package/src/components/Select/__tests__/__snapshots__/Select.test.tsx.snap +27 -102
  62. package/src/components/Select/__tests__/__snapshots__/SelectOption.test.tsx.snap +1 -3
  63. package/src/components/Select/__tests__/__snapshots__/SelectToggle.test.tsx.snap +1 -3
  64. package/src/components/Switch/Switch.tsx +2 -2
  65. package/src/components/Switch/__tests__/__snapshots__/Switch.test.tsx.snap +4 -8
  66. package/src/components/Tabs/__tests__/__snapshots__/OverflowTab.test.tsx.snap +2 -6
  67. package/src/components/Tabs/__tests__/__snapshots__/Tabs.test.tsx.snap +1 -3
  68. package/src/components/Tile/__tests__/__snapshots__/Tile.test.tsx.snap +3 -9
  69. package/src/components/Timestamp/__tests__/__snapshots__/Timestamp.test.tsx.snap +1 -1
  70. package/src/components/Toolbar/__tests__/__snapshots__/Toolbar.test.tsx.snap +4 -12
  71. package/src/components/TreeView/__tests__/__snapshots__/TreeView.test.tsx.snap +68 -204
  72. package/src/components/Wizard/__tests__/Generated/__snapshots__/WizardToggle.test.tsx.snap +1 -3
  73. package/src/components/Wizard/__tests__/__snapshots__/Wizard.test.tsx.snap +6 -18
  74. package/src/demos/PasswordStrength.md +1 -1
  75. package/src/deprecated/components/ApplicationLauncher/__tests__/__snapshots__/ApplicationLauncher.test.tsx.snap +7 -21
  76. package/src/deprecated/components/ContextSelector/__tests__/__snapshots__/ContextSelector.test.tsx.snap +7 -21
  77. package/src/deprecated/components/ContextSelector/__tests__/__snapshots__/ContextSelectorToggle.test.tsx.snap +5 -15
  78. package/src/deprecated/components/Dropdown/__tests__/Generated/__snapshots__/KebabToggle.test.tsx.snap +1 -3
  79. package/src/deprecated/components/Dropdown/__tests__/__snapshots__/Dropdown.test.tsx.snap +16 -48
  80. package/src/deprecated/components/Dropdown/__tests__/__snapshots__/DropdownToggle.test.tsx.snap +9 -27
  81. package/src/deprecated/components/Dropdown/__tests__/__snapshots__/Toggle.test.tsx.snap +2 -6
  82. package/src/deprecated/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenuToggle.test.tsx.snap +1 -3
  83. package/src/deprecated/components/OptionsMenu/__tests__/__snapshots__/OptionsMenu.test.tsx.snap +7 -21
@@ -28,12 +28,10 @@ exports[`DropdownToggle state action split button - renders primary variant 1`]
28
28
  >
29
29
  <svg
30
30
  aria-hidden="true"
31
+ class="pf-svg"
31
32
  fill="currentColor"
32
- height="1em"
33
33
  role="img"
34
- style="vertical-align: -0.125em;"
35
34
  viewBox="0 0 320 512"
36
- width="1em"
37
35
  >
38
36
  <path
39
37
  d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
@@ -66,12 +64,10 @@ exports[`DropdownToggle state active 1`] = `
66
64
  >
67
65
  <svg
68
66
  aria-hidden="true"
67
+ class="pf-svg"
69
68
  fill="currentColor"
70
- height="1em"
71
69
  role="img"
72
- style="vertical-align: -0.125em;"
73
70
  viewBox="0 0 320 512"
74
- width="1em"
75
71
  >
76
72
  <path
77
73
  d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
@@ -103,12 +99,10 @@ exports[`DropdownToggle state button variant - plain with text 1`] = `
103
99
  >
104
100
  <svg
105
101
  aria-hidden="true"
102
+ class="pf-svg"
106
103
  fill="currentColor"
107
- height="1em"
108
104
  role="img"
109
- style="vertical-align: -0.125em;"
110
105
  viewBox="0 0 320 512"
111
- width="1em"
112
106
  >
113
107
  <path
114
108
  d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
@@ -140,12 +134,10 @@ exports[`DropdownToggle state button variant - primary 1`] = `
140
134
  >
141
135
  <svg
142
136
  aria-hidden="true"
137
+ class="pf-svg"
143
138
  fill="currentColor"
144
- height="1em"
145
139
  role="img"
146
- style="vertical-align: -0.125em;"
147
140
  viewBox="0 0 320 512"
148
- width="1em"
149
141
  >
150
142
  <path
151
143
  d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
@@ -177,12 +169,10 @@ exports[`DropdownToggle state button variant - secondary 1`] = `
177
169
  >
178
170
  <svg
179
171
  aria-hidden="true"
172
+ class="pf-svg"
180
173
  fill="currentColor"
181
- height="1em"
182
174
  role="img"
183
- style="vertical-align: -0.125em;"
184
175
  viewBox="0 0 320 512"
185
- width="1em"
186
176
  >
187
177
  <path
188
178
  d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
@@ -214,12 +204,10 @@ exports[`DropdownToggle state class changes 1`] = `
214
204
  >
215
205
  <svg
216
206
  aria-hidden="true"
207
+ class="pf-svg"
217
208
  fill="currentColor"
218
- height="1em"
219
209
  role="img"
220
- style="vertical-align: -0.125em;"
221
210
  viewBox="0 0 320 512"
222
- width="1em"
223
211
  >
224
212
  <path
225
213
  d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
@@ -251,12 +239,10 @@ exports[`DropdownToggle state focus 1`] = `
251
239
  >
252
240
  <svg
253
241
  aria-hidden="true"
242
+ class="pf-svg"
254
243
  fill="currentColor"
255
- height="1em"
256
244
  role="img"
257
- style="vertical-align: -0.125em;"
258
245
  viewBox="0 0 320 512"
259
- width="1em"
260
246
  >
261
247
  <path
262
248
  d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
@@ -288,12 +274,10 @@ exports[`DropdownToggle state hover 1`] = `
288
274
  >
289
275
  <svg
290
276
  aria-hidden="true"
277
+ class="pf-svg"
291
278
  fill="currentColor"
292
- height="1em"
293
279
  role="img"
294
- style="vertical-align: -0.125em;"
295
280
  viewBox="0 0 320 512"
296
- width="1em"
297
281
  >
298
282
  <path
299
283
  d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
@@ -332,12 +316,10 @@ exports[`DropdownToggle state split button - does not render primary variant 1`]
332
316
  >
333
317
  <svg
334
318
  aria-hidden="true"
319
+ class="pf-svg"
335
320
  fill="currentColor"
336
- height="1em"
337
321
  role="img"
338
- style="vertical-align: -0.125em;"
339
322
  viewBox="0 0 320 512"
340
- width="1em"
341
323
  >
342
324
  <path
343
325
  d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
@@ -21,12 +21,10 @@ exports[`Dropdown toggle 1`] = `
21
21
  >
22
22
  <svg
23
23
  aria-hidden="true"
24
+ class="pf-svg"
24
25
  fill="currentColor"
25
- height="1em"
26
26
  role="img"
27
- style="vertical-align: -0.125em;"
28
27
  viewBox="0 0 320 512"
29
- width="1em"
30
28
  >
31
29
  <path
32
30
  d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
@@ -48,12 +46,10 @@ exports[`Kebab toggle 1`] = `
48
46
  >
49
47
  <svg
50
48
  aria-hidden="true"
49
+ class="pf-svg"
51
50
  fill="currentColor"
52
- height="1em"
53
51
  role="img"
54
- style="vertical-align: -0.125em;"
55
52
  viewBox="0 0 192 512"
56
- width="1em"
57
53
  >
58
54
  <path
59
55
  d="M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"
@@ -25,12 +25,10 @@ exports[`OptionsMenuToggle should match snapshot (auto-generated) 1`] = `
25
25
  >
26
26
  <svg
27
27
  aria-hidden="true"
28
+ class="pf-svg"
28
29
  fill="currentColor"
29
- height="1em"
30
30
  role="img"
31
- style="vertical-align: -0.125em;"
32
31
  viewBox="0 0 320 512"
33
- width="1em"
34
32
  >
35
33
  <path
36
34
  d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
@@ -28,12 +28,10 @@ exports[`optionsMenu expanded 1`] = `
28
28
  >
29
29
  <svg
30
30
  aria-hidden="true"
31
+ class="pf-svg"
31
32
  fill="currentColor"
32
- height="1em"
33
33
  role="img"
34
- style="vertical-align: -0.125em;"
35
34
  viewBox="0 0 320 512"
36
- width="1em"
37
35
  >
38
36
  <path
39
37
  d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
@@ -225,12 +223,10 @@ exports[`optionsMenu isDisabled 1`] = `
225
223
  >
226
224
  <svg
227
225
  aria-hidden="true"
226
+ class="pf-svg"
228
227
  fill="currentColor"
229
- height="1em"
230
228
  role="img"
231
- style="vertical-align: -0.125em;"
232
229
  viewBox="0 0 320 512"
233
- width="1em"
234
230
  >
235
231
  <path
236
232
  d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
@@ -270,12 +266,10 @@ exports[`optionsMenu open up 1`] = `
270
266
  >
271
267
  <svg
272
268
  aria-hidden="true"
269
+ class="pf-svg"
273
270
  fill="currentColor"
274
- height="1em"
275
271
  role="img"
276
- style="vertical-align: -0.125em;"
277
272
  viewBox="0 0 320 512"
278
- width="1em"
279
273
  >
280
274
  <path
281
275
  d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
@@ -341,12 +335,10 @@ exports[`optionsMenu regular 1`] = `
341
335
  >
342
336
  <svg
343
337
  aria-hidden="true"
338
+ class="pf-svg"
344
339
  fill="currentColor"
345
- height="1em"
346
340
  role="img"
347
- style="vertical-align: -0.125em;"
348
341
  viewBox="0 0 320 512"
349
- width="1em"
350
342
  >
351
343
  <path
352
344
  d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
@@ -386,12 +378,10 @@ exports[`optionsMenu renders in strict mode 1`] = `
386
378
  >
387
379
  <svg
388
380
  aria-hidden="true"
381
+ class="pf-svg"
389
382
  fill="currentColor"
390
- height="1em"
391
383
  role="img"
392
- style="vertical-align: -0.125em;"
393
384
  viewBox="0 0 320 512"
394
- width="1em"
395
385
  >
396
386
  <path
397
387
  d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
@@ -582,12 +572,10 @@ exports[`optionsMenu right aligned + open up 1`] = `
582
572
  >
583
573
  <svg
584
574
  aria-hidden="true"
575
+ class="pf-svg"
585
576
  fill="currentColor"
586
- height="1em"
587
577
  role="img"
588
- style="vertical-align: -0.125em;"
589
578
  viewBox="0 0 320 512"
590
- width="1em"
591
579
  >
592
580
  <path
593
581
  d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
@@ -627,12 +615,10 @@ exports[`optionsMenu right aligned 1`] = `
627
615
  >
628
616
  <svg
629
617
  aria-hidden="true"
618
+ class="pf-svg"
630
619
  fill="currentColor"
631
- height="1em"
632
620
  role="img"
633
- style="vertical-align: -0.125em;"
634
621
  viewBox="0 0 320 512"
635
- width="1em"
636
622
  >
637
623
  <path
638
624
  d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"