@patternfly/react-core 5.0.0-alpha.56 → 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.
- package/CHANGELOG.md +8 -0
- package/dist/esm/components/Nav/NavExpandable.d.ts +2 -2
- package/dist/esm/components/Nav/NavExpandable.d.ts.map +1 -1
- package/dist/esm/components/Nav/NavExpandable.js +4 -4
- package/dist/esm/components/Nav/NavExpandable.js.map +1 -1
- package/dist/esm/components/Pagination/Pagination.d.ts +2 -2
- package/dist/esm/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/esm/components/Switch/Switch.js +2 -2
- package/dist/esm/components/Switch/Switch.js.map +1 -1
- package/dist/js/components/Nav/NavExpandable.d.ts +2 -2
- package/dist/js/components/Nav/NavExpandable.d.ts.map +1 -1
- package/dist/js/components/Nav/NavExpandable.js +4 -4
- package/dist/js/components/Nav/NavExpandable.js.map +1 -1
- package/dist/js/components/Pagination/Pagination.d.ts +2 -2
- package/dist/js/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/js/components/Switch/Switch.js +2 -2
- package/dist/js/components/Switch/Switch.js.map +1 -1
- package/dist/umd/react-core.min.js +1 -1
- package/package.json +3 -3
- package/src/components/AboutModal/__tests__/__snapshots__/AboutModalBoxCloseButton.test.tsx.snap +3 -9
- package/src/components/Alert/__tests__/Generated/__snapshots__/AlertActionCloseButton.test.tsx.snap +1 -3
- package/src/components/Alert/__tests__/Generated/__snapshots__/AlertIcon.test.tsx.snap +1 -3
- package/src/components/Alert/__tests__/__snapshots__/AlertActionCloseButton.test.tsx.snap +1 -3
- package/src/components/BackToTop/__tests__/__snapshots__/BackToTop.test.tsx.snap +1 -3
- package/src/components/Breadcrumb/__tests__/__snapshots__/Breadcrumb.test.tsx.snap +1 -3
- package/src/components/Button/__tests__/__snapshots__/Button.test.tsx.snap +1 -3
- package/src/components/Card/__tests__/__snapshots__/CardHeader.test.tsx.snap +1 -3
- package/src/components/Chip/__tests__/__snapshots__/Chip.test.tsx.snap +4 -12
- package/src/components/ChipGroup/__tests__/__snapshots__/ChipGroup.test.tsx.snap +5 -15
- package/src/components/ClipboardCopy/__tests__/Generated/__snapshots__/ClipboardCopy.test.tsx.snap +1 -3
- package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopyButton.test.tsx.snap +1 -3
- package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopyToggle.test.tsx.snap +1 -3
- package/src/components/DataList/__tests__/Generated/__snapshots__/DataListToggle.test.tsx.snap +1 -3
- package/src/components/DataList/__tests__/__snapshots__/DataList.test.tsx.snap +1 -3
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.test.tsx.snap +5 -15
- package/src/components/Drawer/__tests__/__snapshots__/Drawer.test.tsx.snap +6 -18
- package/src/components/DualListSelector/__tests__/__snapshots__/DualListSelector.test.tsx.snap +27 -81
- package/src/components/EmptyState/__tests__/Generated/__snapshots__/EmptyStateIcon.test.tsx.snap +0 -3
- package/src/components/EmptyState/__tests__/__snapshots__/EmptyState.test.tsx.snap +0 -3
- package/src/components/ExpandableSection/__tests__/__snapshots__/ExpandableSection.test.tsx.snap +6 -18
- package/src/components/FileUpload/examples/FileUploadCustomPreview.tsx +1 -1
- package/src/components/Form/__tests__/__snapshots__/FormFieldGroup.test.tsx.snap +1 -3
- package/src/components/Form/examples/FormBasic.tsx +1 -1
- package/src/components/Form/examples/FormGroupLabelInfo.tsx +1 -1
- package/src/components/Form/examples/FormLimitWidth.tsx +1 -1
- package/src/components/HelperText/__tests__/__snapshots__/HelperText.test.tsx.snap +2 -6
- package/src/components/Icon/__tests__/__snapshots__/Icon.test.tsx.snap +3 -9
- package/src/components/JumpLinks/__tests__/__snapshots__/JumpLinks.test.tsx.snap +1 -3
- package/src/components/Label/__tests__/__snapshots__/Label.test.tsx.snap +3 -9
- package/src/components/LabelGroup/__tests__/__snapshots__/LabelGroup.test.tsx.snap +1 -3
- package/src/components/List/__tests__/__snapshots__/List.test.tsx.snap +6 -18
- package/src/components/LoginPage/__tests__/__snapshots__/LoginForm.test.tsx.snap +1 -3
- package/src/components/MenuToggle/__tests__/__snapshots__/MenuToggle.test.tsx.snap +10 -30
- package/src/components/Modal/__tests__/__snapshots__/ModalBoxTitle.test.tsx.snap +6 -18
- package/src/components/Modal/__tests__/__snapshots__/ModalContent.test.tsx.snap +8 -24
- package/src/components/Modal/examples/ModalWithForm.tsx +3 -3
- package/src/components/MultipleFileUpload/__tests__/__snapshots__/MultipleFileUploadStatus.test.tsx.snap +5 -15
- package/src/components/MultipleFileUpload/__tests__/__snapshots__/MultipleFileUploadStatusItem.test.tsx.snap +17 -51
- package/src/components/Nav/NavExpandable.tsx +5 -5
- package/src/components/Nav/__tests__/Generated/__snapshots__/NavExpandable.test.tsx.snap +1 -3
- package/src/components/Nav/__tests__/__snapshots__/Nav.test.tsx.snap +14 -42
- package/src/components/NotificationBadge/__tests__/__snapshots__/NotificationBadge.test.tsx.snap +1 -3
- package/src/components/NotificationDrawer/__tests__/__snapshots__/NotificationDrawerGroup.test.tsx.snap +4 -12
- package/src/components/NotificationDrawer/__tests__/__snapshots__/NotificationDrawerListItemHeader.test.tsx.snap +5 -15
- package/src/components/NumberInput/__tests__/__snapshots__/NumberInput.test.tsx.snap +26 -78
- package/src/components/Page/__tests__/__snapshots__/Page.test.tsx.snap +33 -99
- package/src/components/Pagination/Pagination.tsx +2 -2
- package/src/components/Pagination/__tests__/Generated/__snapshots__/Navigation.test.tsx.snap +4 -12
- package/src/components/Pagination/__tests__/Generated/__snapshots__/PaginationOptionsMenu.test.tsx.snap +1 -3
- package/src/components/Pagination/__tests__/__snapshots__/Pagination.test.tsx.snap +102 -306
- package/src/components/Popover/__tests__/Generated/__snapshots__/PopoverCloseButton.test.tsx.snap +1 -3
- package/src/components/Progress/__tests__/Generated/__snapshots__/ProgressContainer.test.tsx.snap +1 -3
- package/src/components/Progress/__tests__/__snapshots__/Progress.test.tsx.snap +3 -9
- package/src/components/SearchInput/__tests__/__snapshots__/SearchInput.test.tsx.snap +23 -69
- package/src/components/Select/__tests__/__snapshots__/Select.test.tsx.snap +27 -102
- package/src/components/Select/__tests__/__snapshots__/SelectOption.test.tsx.snap +1 -3
- package/src/components/Select/__tests__/__snapshots__/SelectToggle.test.tsx.snap +1 -3
- package/src/components/Switch/Switch.tsx +2 -2
- package/src/components/Switch/__tests__/__snapshots__/Switch.test.tsx.snap +4 -8
- package/src/components/Tabs/__tests__/__snapshots__/OverflowTab.test.tsx.snap +2 -6
- package/src/components/Tabs/__tests__/__snapshots__/Tabs.test.tsx.snap +1 -3
- package/src/components/Tile/__tests__/__snapshots__/Tile.test.tsx.snap +3 -9
- package/src/components/Timestamp/__tests__/__snapshots__/Timestamp.test.tsx.snap +1 -1
- package/src/components/Toolbar/__tests__/__snapshots__/Toolbar.test.tsx.snap +4 -12
- package/src/components/TreeView/__tests__/__snapshots__/TreeView.test.tsx.snap +68 -204
- package/src/components/Wizard/__tests__/Generated/__snapshots__/WizardToggle.test.tsx.snap +1 -3
- package/src/components/Wizard/__tests__/__snapshots__/Wizard.test.tsx.snap +6 -18
- package/src/demos/PasswordStrength.md +1 -1
- package/src/deprecated/components/ApplicationLauncher/__tests__/__snapshots__/ApplicationLauncher.test.tsx.snap +7 -21
- package/src/deprecated/components/ContextSelector/__tests__/__snapshots__/ContextSelector.test.tsx.snap +7 -21
- package/src/deprecated/components/ContextSelector/__tests__/__snapshots__/ContextSelectorToggle.test.tsx.snap +5 -15
- package/src/deprecated/components/Dropdown/__tests__/Generated/__snapshots__/KebabToggle.test.tsx.snap +1 -3
- package/src/deprecated/components/Dropdown/__tests__/__snapshots__/Dropdown.test.tsx.snap +16 -48
- package/src/deprecated/components/Dropdown/__tests__/__snapshots__/DropdownToggle.test.tsx.snap +9 -27
- package/src/deprecated/components/Dropdown/__tests__/__snapshots__/Toggle.test.tsx.snap +2 -6
- package/src/deprecated/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenuToggle.test.tsx.snap +1 -3
- package/src/deprecated/components/OptionsMenu/__tests__/__snapshots__/OptionsMenu.test.tsx.snap +7 -21
|
@@ -10,12 +10,10 @@ exports[`MultipleFileUploadStatusItem renders custom aria labels 1`] = `
|
|
|
10
10
|
>
|
|
11
11
|
<svg
|
|
12
12
|
aria-hidden="true"
|
|
13
|
+
class="pf-svg"
|
|
13
14
|
fill="currentColor"
|
|
14
|
-
height="1em"
|
|
15
15
|
role="img"
|
|
16
|
-
style="vertical-align: -0.125em;"
|
|
17
16
|
viewBox="0 0 384 512"
|
|
18
|
-
width="1em"
|
|
19
17
|
>
|
|
20
18
|
<path
|
|
21
19
|
d="M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm160-14.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"
|
|
@@ -99,12 +97,10 @@ exports[`MultipleFileUploadStatusItem renders custom aria labels 1`] = `
|
|
|
99
97
|
>
|
|
100
98
|
<svg
|
|
101
99
|
aria-hidden="true"
|
|
100
|
+
class="pf-svg"
|
|
102
101
|
fill="currentColor"
|
|
103
|
-
height="1em"
|
|
104
102
|
role="img"
|
|
105
|
-
style="vertical-align: -0.125em;"
|
|
106
103
|
viewBox="0 0 512 512"
|
|
107
|
-
width="1em"
|
|
108
104
|
>
|
|
109
105
|
<path
|
|
110
106
|
d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"
|
|
@@ -126,12 +122,10 @@ exports[`MultipleFileUploadStatusItem renders custom class names 1`] = `
|
|
|
126
122
|
>
|
|
127
123
|
<svg
|
|
128
124
|
aria-hidden="true"
|
|
125
|
+
class="pf-svg"
|
|
129
126
|
fill="currentColor"
|
|
130
|
-
height="1em"
|
|
131
127
|
role="img"
|
|
132
|
-
style="vertical-align: -0.125em;"
|
|
133
128
|
viewBox="0 0 384 512"
|
|
134
|
-
width="1em"
|
|
135
129
|
>
|
|
136
130
|
<path
|
|
137
131
|
d="M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm160-14.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"
|
|
@@ -212,12 +206,10 @@ exports[`MultipleFileUploadStatusItem renders custom class names 1`] = `
|
|
|
212
206
|
>
|
|
213
207
|
<svg
|
|
214
208
|
aria-hidden="true"
|
|
209
|
+
class="pf-svg"
|
|
215
210
|
fill="currentColor"
|
|
216
|
-
height="1em"
|
|
217
211
|
role="img"
|
|
218
|
-
style="vertical-align: -0.125em;"
|
|
219
212
|
viewBox="0 0 512 512"
|
|
220
|
-
width="1em"
|
|
221
213
|
>
|
|
222
214
|
<path
|
|
223
215
|
d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"
|
|
@@ -239,12 +231,10 @@ exports[`MultipleFileUploadStatusItem renders custom file name/size/icon/progres
|
|
|
239
231
|
>
|
|
240
232
|
<svg
|
|
241
233
|
aria-hidden="true"
|
|
234
|
+
class="pf-svg"
|
|
242
235
|
fill="currentColor"
|
|
243
|
-
height="1em"
|
|
244
236
|
role="img"
|
|
245
|
-
style="vertical-align: -0.125em;"
|
|
246
237
|
viewBox="0 0 384 512"
|
|
247
|
-
width="1em"
|
|
248
238
|
>
|
|
249
239
|
<path
|
|
250
240
|
d="M384 121.941V128H256V0h6.059a24 24 0 0 1 16.97 7.029l97.941 97.941a24.002 24.002 0 0 1 7.03 16.971zM248 160c-13.2 0-24-10.8-24-24V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248zm-135.455 16c26.51 0 48 21.49 48 48s-21.49 48-48 48-48-21.49-48-48 21.491-48 48-48zm208 240h-256l.485-48.485L104.545 328c4.686-4.686 11.799-4.201 16.485.485L160.545 368 264.06 264.485c4.686-4.686 12.284-4.686 16.971 0L320.545 304v112z"
|
|
@@ -327,12 +317,10 @@ exports[`MultipleFileUploadStatusItem renders custom file name/size/icon/progres
|
|
|
327
317
|
>
|
|
328
318
|
<svg
|
|
329
319
|
aria-hidden="true"
|
|
320
|
+
class="pf-svg"
|
|
330
321
|
fill="currentColor"
|
|
331
|
-
height="1em"
|
|
332
322
|
role="img"
|
|
333
|
-
style="vertical-align: -0.125em;"
|
|
334
323
|
viewBox="0 0 512 512"
|
|
335
|
-
width="1em"
|
|
336
324
|
>
|
|
337
325
|
<path
|
|
338
326
|
d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"
|
|
@@ -354,12 +342,10 @@ exports[`MultipleFileUploadStatusItem renders custom function progressAriaLiveMe
|
|
|
354
342
|
>
|
|
355
343
|
<svg
|
|
356
344
|
aria-hidden="true"
|
|
345
|
+
class="pf-svg"
|
|
357
346
|
fill="currentColor"
|
|
358
|
-
height="1em"
|
|
359
347
|
role="img"
|
|
360
|
-
style="vertical-align: -0.125em;"
|
|
361
348
|
viewBox="0 0 384 512"
|
|
362
|
-
width="1em"
|
|
363
349
|
>
|
|
364
350
|
<path
|
|
365
351
|
d="M384 121.941V128H256V0h6.059a24 24 0 0 1 16.97 7.029l97.941 97.941a24.002 24.002 0 0 1 7.03 16.971zM248 160c-13.2 0-24-10.8-24-24V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248zm-135.455 16c26.51 0 48 21.49 48 48s-21.49 48-48 48-48-21.49-48-48 21.491-48 48-48zm208 240h-256l.485-48.485L104.545 328c4.686-4.686 11.799-4.201 16.485.485L160.545 368 264.06 264.485c4.686-4.686 12.284-4.686 16.971 0L320.545 304v112z"
|
|
@@ -442,12 +428,10 @@ exports[`MultipleFileUploadStatusItem renders custom function progressAriaLiveMe
|
|
|
442
428
|
>
|
|
443
429
|
<svg
|
|
444
430
|
aria-hidden="true"
|
|
431
|
+
class="pf-svg"
|
|
445
432
|
fill="currentColor"
|
|
446
|
-
height="1em"
|
|
447
433
|
role="img"
|
|
448
|
-
style="vertical-align: -0.125em;"
|
|
449
434
|
viewBox="0 0 512 512"
|
|
450
|
-
width="1em"
|
|
451
435
|
>
|
|
452
436
|
<path
|
|
453
437
|
d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"
|
|
@@ -469,12 +453,10 @@ exports[`MultipleFileUploadStatusItem renders custom progress value/variant when
|
|
|
469
453
|
>
|
|
470
454
|
<svg
|
|
471
455
|
aria-hidden="true"
|
|
456
|
+
class="pf-svg"
|
|
472
457
|
fill="currentColor"
|
|
473
|
-
height="1em"
|
|
474
458
|
role="img"
|
|
475
|
-
style="vertical-align: -0.125em;"
|
|
476
459
|
viewBox="0 0 384 512"
|
|
477
|
-
width="1em"
|
|
478
460
|
>
|
|
479
461
|
<path
|
|
480
462
|
d="M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm160-14.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"
|
|
@@ -528,12 +510,10 @@ exports[`MultipleFileUploadStatusItem renders custom progress value/variant when
|
|
|
528
510
|
>
|
|
529
511
|
<svg
|
|
530
512
|
aria-hidden="true"
|
|
513
|
+
class="pf-svg"
|
|
531
514
|
fill="currentColor"
|
|
532
|
-
height="1em"
|
|
533
515
|
role="img"
|
|
534
|
-
style="vertical-align: -0.125em;"
|
|
535
516
|
viewBox="0 0 576 512"
|
|
536
|
-
width="1em"
|
|
537
517
|
>
|
|
538
518
|
<path
|
|
539
519
|
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"
|
|
@@ -574,12 +554,10 @@ exports[`MultipleFileUploadStatusItem renders custom progress value/variant when
|
|
|
574
554
|
>
|
|
575
555
|
<svg
|
|
576
556
|
aria-hidden="true"
|
|
557
|
+
class="pf-svg"
|
|
577
558
|
fill="currentColor"
|
|
578
|
-
height="1em"
|
|
579
559
|
role="img"
|
|
580
|
-
style="vertical-align: -0.125em;"
|
|
581
560
|
viewBox="0 0 512 512"
|
|
582
|
-
width="1em"
|
|
583
561
|
>
|
|
584
562
|
<path
|
|
585
563
|
d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"
|
|
@@ -601,12 +579,10 @@ exports[`MultipleFileUploadStatusItem renders expected values from a passed file
|
|
|
601
579
|
>
|
|
602
580
|
<svg
|
|
603
581
|
aria-hidden="true"
|
|
582
|
+
class="pf-svg"
|
|
604
583
|
fill="currentColor"
|
|
605
|
-
height="1em"
|
|
606
584
|
role="img"
|
|
607
|
-
style="vertical-align: -0.125em;"
|
|
608
585
|
viewBox="0 0 384 512"
|
|
609
|
-
width="1em"
|
|
610
586
|
>
|
|
611
587
|
<path
|
|
612
588
|
d="M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm160-14.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"
|
|
@@ -689,12 +665,10 @@ exports[`MultipleFileUploadStatusItem renders expected values from a passed file
|
|
|
689
665
|
>
|
|
690
666
|
<svg
|
|
691
667
|
aria-hidden="true"
|
|
668
|
+
class="pf-svg"
|
|
692
669
|
fill="currentColor"
|
|
693
|
-
height="1em"
|
|
694
670
|
role="img"
|
|
695
|
-
style="vertical-align: -0.125em;"
|
|
696
671
|
viewBox="0 0 512 512"
|
|
697
|
-
width="1em"
|
|
698
672
|
>
|
|
699
673
|
<path
|
|
700
674
|
d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"
|
|
@@ -716,12 +690,10 @@ exports[`MultipleFileUploadStatusItem renders with expected class names 1`] = `
|
|
|
716
690
|
>
|
|
717
691
|
<svg
|
|
718
692
|
aria-hidden="true"
|
|
693
|
+
class="pf-svg"
|
|
719
694
|
fill="currentColor"
|
|
720
|
-
height="1em"
|
|
721
695
|
role="img"
|
|
722
|
-
style="vertical-align: -0.125em;"
|
|
723
696
|
viewBox="0 0 384 512"
|
|
724
|
-
width="1em"
|
|
725
697
|
>
|
|
726
698
|
<path
|
|
727
699
|
d="M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm160-14.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"
|
|
@@ -802,12 +774,10 @@ exports[`MultipleFileUploadStatusItem renders with expected class names 1`] = `
|
|
|
802
774
|
>
|
|
803
775
|
<svg
|
|
804
776
|
aria-hidden="true"
|
|
777
|
+
class="pf-svg"
|
|
805
778
|
fill="currentColor"
|
|
806
|
-
height="1em"
|
|
807
779
|
role="img"
|
|
808
|
-
style="vertical-align: -0.125em;"
|
|
809
780
|
viewBox="0 0 512 512"
|
|
810
|
-
width="1em"
|
|
811
781
|
>
|
|
812
782
|
<path
|
|
813
783
|
d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"
|
|
@@ -829,12 +799,10 @@ exports[`MultipleFileUploadStatusItem rendersdefault progressAriaLiveMessage whe
|
|
|
829
799
|
>
|
|
830
800
|
<svg
|
|
831
801
|
aria-hidden="true"
|
|
802
|
+
class="pf-svg"
|
|
832
803
|
fill="currentColor"
|
|
833
|
-
height="1em"
|
|
834
804
|
role="img"
|
|
835
|
-
style="vertical-align: -0.125em;"
|
|
836
805
|
viewBox="0 0 384 512"
|
|
837
|
-
width="1em"
|
|
838
806
|
>
|
|
839
807
|
<path
|
|
840
808
|
d="M384 121.941V128H256V0h6.059a24 24 0 0 1 16.97 7.029l97.941 97.941a24.002 24.002 0 0 1 7.03 16.971zM248 160c-13.2 0-24-10.8-24-24V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248zm-135.455 16c26.51 0 48 21.49 48 48s-21.49 48-48 48-48-21.49-48-48 21.491-48 48-48zm208 240h-256l.485-48.485L104.545 328c4.686-4.686 11.799-4.201 16.485.485L160.545 368 264.06 264.485c4.686-4.686 12.284-4.686 16.971 0L320.545 304v112z"
|
|
@@ -917,12 +885,10 @@ exports[`MultipleFileUploadStatusItem rendersdefault progressAriaLiveMessage whe
|
|
|
917
885
|
>
|
|
918
886
|
<svg
|
|
919
887
|
aria-hidden="true"
|
|
888
|
+
class="pf-svg"
|
|
920
889
|
fill="currentColor"
|
|
921
|
-
height="1em"
|
|
922
890
|
role="img"
|
|
923
|
-
style="vertical-align: -0.125em;"
|
|
924
891
|
viewBox="0 0 512 512"
|
|
925
|
-
width="1em"
|
|
926
892
|
>
|
|
927
893
|
<path
|
|
928
894
|
d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"
|
|
@@ -29,7 +29,7 @@ export interface NavExpandableProps
|
|
|
29
29
|
/** Identifier to use for the section aria label */
|
|
30
30
|
id?: string;
|
|
31
31
|
/** allow consumer to optionally override this callback and manage expand state externally. if passed will not call Nav's onToggle. */
|
|
32
|
-
onExpand?: (
|
|
32
|
+
onExpand?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, val: boolean) => void;
|
|
33
33
|
/** Additional props added to the NavExpandable <button> */
|
|
34
34
|
buttonProps?: any;
|
|
35
35
|
/** Value to overwrite the randomly generated data-ouia-component-id.*/
|
|
@@ -71,7 +71,7 @@ export class NavExpandable extends React.Component<NavExpandableProps, NavExpand
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
onExpand = (
|
|
74
|
-
|
|
74
|
+
event: React.MouseEvent<HTMLButtonElement, MouseEvent>,
|
|
75
75
|
onToggle: (
|
|
76
76
|
event: React.MouseEvent<HTMLButtonElement, MouseEvent>,
|
|
77
77
|
groupId: string | number,
|
|
@@ -80,11 +80,11 @@ export class NavExpandable extends React.Component<NavExpandableProps, NavExpand
|
|
|
80
80
|
) => {
|
|
81
81
|
const { expandedState } = this.state;
|
|
82
82
|
if (this.props.onExpand) {
|
|
83
|
-
this.props.onExpand(
|
|
83
|
+
this.props.onExpand(event, !expandedState);
|
|
84
84
|
} else {
|
|
85
85
|
this.setState((prevState) => ({ expandedState: !prevState.expandedState }));
|
|
86
86
|
const { groupId } = this.props;
|
|
87
|
-
onToggle(
|
|
87
|
+
onToggle(event, groupId, !expandedState);
|
|
88
88
|
}
|
|
89
89
|
};
|
|
90
90
|
|
|
@@ -129,7 +129,7 @@ export class NavExpandable extends React.Component<NavExpandableProps, NavExpand
|
|
|
129
129
|
<button
|
|
130
130
|
className={styles.navLink}
|
|
131
131
|
id={srText ? null : this.id}
|
|
132
|
-
onClick={(
|
|
132
|
+
onClick={(event) => this.onExpand(event, context.onToggle)}
|
|
133
133
|
aria-expanded={expandedState}
|
|
134
134
|
tabIndex={isNavOpen ? null : -1}
|
|
135
135
|
{...buttonProps}
|
|
@@ -21,12 +21,10 @@ exports[`NavExpandable should match snapshot (auto-generated) 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 256 512"
|
|
29
|
-
width="1em"
|
|
30
28
|
>
|
|
31
29
|
<path
|
|
32
30
|
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"
|
|
@@ -243,12 +243,10 @@ exports[`Nav Expandable Nav List - Trigger toggle 1`] = `
|
|
|
243
243
|
>
|
|
244
244
|
<svg
|
|
245
245
|
aria-hidden="true"
|
|
246
|
+
class="pf-svg"
|
|
246
247
|
fill="currentColor"
|
|
247
|
-
height="1em"
|
|
248
248
|
role="img"
|
|
249
|
-
style="vertical-align: -0.125em;"
|
|
250
249
|
viewBox="0 0 256 512"
|
|
251
|
-
width="1em"
|
|
252
250
|
>
|
|
253
251
|
<path
|
|
254
252
|
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"
|
|
@@ -359,12 +357,10 @@ exports[`Nav Expandable Nav List 1`] = `
|
|
|
359
357
|
>
|
|
360
358
|
<svg
|
|
361
359
|
aria-hidden="true"
|
|
360
|
+
class="pf-svg"
|
|
362
361
|
fill="currentColor"
|
|
363
|
-
height="1em"
|
|
364
362
|
role="img"
|
|
365
|
-
style="vertical-align: -0.125em;"
|
|
366
363
|
viewBox="0 0 256 512"
|
|
367
|
-
width="1em"
|
|
368
364
|
>
|
|
369
365
|
<path
|
|
370
366
|
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"
|
|
@@ -474,12 +470,10 @@ exports[`Nav Expandable Nav List with aria label 1`] = `
|
|
|
474
470
|
>
|
|
475
471
|
<svg
|
|
476
472
|
aria-hidden="true"
|
|
473
|
+
class="pf-svg"
|
|
477
474
|
fill="currentColor"
|
|
478
|
-
height="1em"
|
|
479
475
|
role="img"
|
|
480
|
-
style="vertical-align: -0.125em;"
|
|
481
476
|
viewBox="0 0 256 512"
|
|
482
|
-
width="1em"
|
|
483
477
|
>
|
|
484
478
|
<path
|
|
485
479
|
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"
|
|
@@ -579,12 +573,10 @@ exports[`Nav Horizontal Nav List 1`] = `
|
|
|
579
573
|
>
|
|
580
574
|
<svg
|
|
581
575
|
aria-hidden="true"
|
|
576
|
+
class="pf-svg"
|
|
582
577
|
fill="currentColor"
|
|
583
|
-
height="1em"
|
|
584
578
|
role="img"
|
|
585
|
-
style="vertical-align: -0.125em;"
|
|
586
579
|
viewBox="0 0 256 512"
|
|
587
|
-
width="1em"
|
|
588
580
|
>
|
|
589
581
|
<path
|
|
590
582
|
d="M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"
|
|
@@ -655,12 +647,10 @@ exports[`Nav Horizontal Nav List 1`] = `
|
|
|
655
647
|
>
|
|
656
648
|
<svg
|
|
657
649
|
aria-hidden="true"
|
|
650
|
+
class="pf-svg"
|
|
658
651
|
fill="currentColor"
|
|
659
|
-
height="1em"
|
|
660
652
|
role="img"
|
|
661
|
-
style="vertical-align: -0.125em;"
|
|
662
653
|
viewBox="0 0 256 512"
|
|
663
|
-
width="1em"
|
|
664
654
|
>
|
|
665
655
|
<path
|
|
666
656
|
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"
|
|
@@ -687,12 +677,10 @@ exports[`Nav Horizontal SubNav List 1`] = `
|
|
|
687
677
|
>
|
|
688
678
|
<svg
|
|
689
679
|
aria-hidden="true"
|
|
680
|
+
class="pf-svg"
|
|
690
681
|
fill="currentColor"
|
|
691
|
-
height="1em"
|
|
692
682
|
role="img"
|
|
693
|
-
style="vertical-align: -0.125em;"
|
|
694
683
|
viewBox="0 0 256 512"
|
|
695
|
-
width="1em"
|
|
696
684
|
>
|
|
697
685
|
<path
|
|
698
686
|
d="M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"
|
|
@@ -763,12 +751,10 @@ exports[`Nav Horizontal SubNav List 1`] = `
|
|
|
763
751
|
>
|
|
764
752
|
<svg
|
|
765
753
|
aria-hidden="true"
|
|
754
|
+
class="pf-svg"
|
|
766
755
|
fill="currentColor"
|
|
767
|
-
height="1em"
|
|
768
756
|
role="img"
|
|
769
|
-
style="vertical-align: -0.125em;"
|
|
770
757
|
viewBox="0 0 256 512"
|
|
771
|
-
width="1em"
|
|
772
758
|
>
|
|
773
759
|
<path
|
|
774
760
|
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"
|
|
@@ -954,12 +940,10 @@ exports[`Nav Nav List with custom item nodes 1`] = `
|
|
|
954
940
|
>
|
|
955
941
|
<svg
|
|
956
942
|
aria-hidden="true"
|
|
943
|
+
class="pf-svg"
|
|
957
944
|
fill="currentColor"
|
|
958
|
-
height="1em"
|
|
959
945
|
role="img"
|
|
960
|
-
style="vertical-align: -0.125em;"
|
|
961
946
|
viewBox="0 0 256 512"
|
|
962
|
-
width="1em"
|
|
963
947
|
>
|
|
964
948
|
<path
|
|
965
949
|
d="M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"
|
|
@@ -990,12 +974,10 @@ exports[`Nav Nav List with custom item nodes 1`] = `
|
|
|
990
974
|
>
|
|
991
975
|
<svg
|
|
992
976
|
aria-hidden="true"
|
|
977
|
+
class="pf-svg"
|
|
993
978
|
fill="currentColor"
|
|
994
|
-
height="1em"
|
|
995
979
|
role="img"
|
|
996
|
-
style="vertical-align: -0.125em;"
|
|
997
980
|
viewBox="0 0 256 512"
|
|
998
|
-
width="1em"
|
|
999
981
|
>
|
|
1000
982
|
<path
|
|
1001
983
|
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"
|
|
@@ -1022,12 +1004,10 @@ exports[`Nav Nav List with flyout 1`] = `
|
|
|
1022
1004
|
>
|
|
1023
1005
|
<svg
|
|
1024
1006
|
aria-hidden="true"
|
|
1007
|
+
class="pf-svg"
|
|
1025
1008
|
fill="currentColor"
|
|
1026
|
-
height="1em"
|
|
1027
1009
|
role="img"
|
|
1028
|
-
style="vertical-align: -0.125em;"
|
|
1029
1010
|
viewBox="0 0 256 512"
|
|
1030
|
-
width="1em"
|
|
1031
1011
|
>
|
|
1032
1012
|
<path
|
|
1033
1013
|
d="M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"
|
|
@@ -1056,12 +1036,10 @@ exports[`Nav Nav List with flyout 1`] = `
|
|
|
1056
1036
|
>
|
|
1057
1037
|
<svg
|
|
1058
1038
|
aria-hidden="true"
|
|
1039
|
+
class="pf-svg"
|
|
1059
1040
|
fill="currentColor"
|
|
1060
|
-
height="1em"
|
|
1061
1041
|
role="img"
|
|
1062
|
-
style="vertical-align: -0.125em;"
|
|
1063
1042
|
viewBox="0 0 256 512"
|
|
1064
|
-
width="1em"
|
|
1065
1043
|
>
|
|
1066
1044
|
<path
|
|
1067
1045
|
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"
|
|
@@ -1079,12 +1057,10 @@ exports[`Nav Nav List with flyout 1`] = `
|
|
|
1079
1057
|
>
|
|
1080
1058
|
<svg
|
|
1081
1059
|
aria-hidden="true"
|
|
1060
|
+
class="pf-svg"
|
|
1082
1061
|
fill="currentColor"
|
|
1083
|
-
height="1em"
|
|
1084
1062
|
role="img"
|
|
1085
|
-
style="vertical-align: -0.125em;"
|
|
1086
1063
|
viewBox="0 0 256 512"
|
|
1087
|
-
width="1em"
|
|
1088
1064
|
>
|
|
1089
1065
|
<path
|
|
1090
1066
|
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"
|
|
@@ -1192,12 +1168,10 @@ exports[`Nav Tertiary Nav List 1`] = `
|
|
|
1192
1168
|
>
|
|
1193
1169
|
<svg
|
|
1194
1170
|
aria-hidden="true"
|
|
1171
|
+
class="pf-svg"
|
|
1195
1172
|
fill="currentColor"
|
|
1196
|
-
height="1em"
|
|
1197
1173
|
role="img"
|
|
1198
|
-
style="vertical-align: -0.125em;"
|
|
1199
1174
|
viewBox="0 0 256 512"
|
|
1200
|
-
width="1em"
|
|
1201
1175
|
>
|
|
1202
1176
|
<path
|
|
1203
1177
|
d="M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"
|
|
@@ -1268,12 +1242,10 @@ exports[`Nav Tertiary Nav List 1`] = `
|
|
|
1268
1242
|
>
|
|
1269
1243
|
<svg
|
|
1270
1244
|
aria-hidden="true"
|
|
1245
|
+
class="pf-svg"
|
|
1271
1246
|
fill="currentColor"
|
|
1272
|
-
height="1em"
|
|
1273
1247
|
role="img"
|
|
1274
|
-
style="vertical-align: -0.125em;"
|
|
1275
1248
|
viewBox="0 0 256 512"
|
|
1276
|
-
width="1em"
|
|
1277
1249
|
>
|
|
1278
1250
|
<path
|
|
1279
1251
|
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"
|
package/src/components/NotificationBadge/__tests__/__snapshots__/NotificationBadge.test.tsx.snap
CHANGED
|
@@ -16,12 +16,10 @@ exports[`NotificationBadge count 1`] = `
|
|
|
16
16
|
>
|
|
17
17
|
<svg
|
|
18
18
|
aria-hidden="true"
|
|
19
|
+
class="pf-svg"
|
|
19
20
|
fill="currentColor"
|
|
20
|
-
height="1em"
|
|
21
21
|
role="img"
|
|
22
|
-
style="vertical-align: -0.125em;"
|
|
23
22
|
viewBox="0 0 896 1024"
|
|
24
|
-
width="1em"
|
|
25
23
|
>
|
|
26
24
|
<path
|
|
27
25
|
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"
|
|
@@ -29,12 +29,10 @@ exports[`NotificationDrawerGroup drawer group with isExpanded applied 1`] = `
|
|
|
29
29
|
>
|
|
30
30
|
<svg
|
|
31
31
|
aria-hidden="true"
|
|
32
|
+
class="pf-svg"
|
|
32
33
|
fill="currentColor"
|
|
33
|
-
height="1em"
|
|
34
34
|
role="img"
|
|
35
|
-
style="vertical-align: -0.125em;"
|
|
36
35
|
viewBox="0 0 256 512"
|
|
37
|
-
width="1em"
|
|
38
36
|
>
|
|
39
37
|
<path
|
|
40
38
|
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"
|
|
@@ -76,12 +74,10 @@ exports[`NotificationDrawerGroup drawer group with isRead applied 1`] = `
|
|
|
76
74
|
>
|
|
77
75
|
<svg
|
|
78
76
|
aria-hidden="true"
|
|
77
|
+
class="pf-svg"
|
|
79
78
|
fill="currentColor"
|
|
80
|
-
height="1em"
|
|
81
79
|
role="img"
|
|
82
|
-
style="vertical-align: -0.125em;"
|
|
83
80
|
viewBox="0 0 256 512"
|
|
84
|
-
width="1em"
|
|
85
81
|
>
|
|
86
82
|
<path
|
|
87
83
|
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"
|
|
@@ -123,12 +119,10 @@ exports[`NotificationDrawerGroup renders correct heading level 1`] = `
|
|
|
123
119
|
>
|
|
124
120
|
<svg
|
|
125
121
|
aria-hidden="true"
|
|
122
|
+
class="pf-svg"
|
|
126
123
|
fill="currentColor"
|
|
127
|
-
height="1em"
|
|
128
124
|
role="img"
|
|
129
|
-
style="vertical-align: -0.125em;"
|
|
130
125
|
viewBox="0 0 256 512"
|
|
131
|
-
width="1em"
|
|
132
126
|
>
|
|
133
127
|
<path
|
|
134
128
|
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"
|
|
@@ -170,12 +164,10 @@ exports[`NotificationDrawerGroup renders with PatternFly Core styles 1`] = `
|
|
|
170
164
|
>
|
|
171
165
|
<svg
|
|
172
166
|
aria-hidden="true"
|
|
167
|
+
class="pf-svg"
|
|
173
168
|
fill="currentColor"
|
|
174
|
-
height="1em"
|
|
175
169
|
role="img"
|
|
176
|
-
style="vertical-align: -0.125em;"
|
|
177
170
|
viewBox="0 0 256 512"
|
|
178
|
-
width="1em"
|
|
179
171
|
>
|
|
180
172
|
<path
|
|
181
173
|
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"
|
|
@@ -10,12 +10,10 @@ exports[`NotificationDrawerListItemHeader list item header with custom icon appl
|
|
|
10
10
|
>
|
|
11
11
|
<svg
|
|
12
12
|
aria-hidden="true"
|
|
13
|
+
class="pf-svg"
|
|
13
14
|
fill="currentColor"
|
|
14
|
-
height="1em"
|
|
15
15
|
role="img"
|
|
16
|
-
style="vertical-align: -0.125em;"
|
|
17
16
|
viewBox="0 0 896 1024"
|
|
18
|
-
width="1em"
|
|
19
17
|
>
|
|
20
18
|
<path
|
|
21
19
|
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"
|
|
@@ -41,12 +39,10 @@ exports[`NotificationDrawerListItemHeader list item header with srTitle applied
|
|
|
41
39
|
>
|
|
42
40
|
<svg
|
|
43
41
|
aria-hidden="true"
|
|
42
|
+
class="pf-svg"
|
|
44
43
|
fill="currentColor"
|
|
45
|
-
height="1em"
|
|
46
44
|
role="img"
|
|
47
|
-
style="vertical-align: -0.125em;"
|
|
48
45
|
viewBox="0 0 896 1024"
|
|
49
|
-
width="1em"
|
|
50
46
|
>
|
|
51
47
|
<path
|
|
52
48
|
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"
|
|
@@ -77,12 +73,10 @@ exports[`NotificationDrawerListItemHeader list item header with variant applied
|
|
|
77
73
|
>
|
|
78
74
|
<svg
|
|
79
75
|
aria-hidden="true"
|
|
76
|
+
class="pf-svg"
|
|
80
77
|
fill="currentColor"
|
|
81
|
-
height="1em"
|
|
82
78
|
role="img"
|
|
83
|
-
style="vertical-align: -0.125em;"
|
|
84
79
|
viewBox="0 0 512 512"
|
|
85
|
-
width="1em"
|
|
86
80
|
>
|
|
87
81
|
<path
|
|
88
82
|
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"
|
|
@@ -108,12 +102,10 @@ exports[`NotificationDrawerListItemHeader renders with PatternFly Core styles 1`
|
|
|
108
102
|
>
|
|
109
103
|
<svg
|
|
110
104
|
aria-hidden="true"
|
|
105
|
+
class="pf-svg"
|
|
111
106
|
fill="currentColor"
|
|
112
|
-
height="1em"
|
|
113
107
|
role="img"
|
|
114
|
-
style="vertical-align: -0.125em;"
|
|
115
108
|
viewBox="0 0 896 1024"
|
|
116
|
-
width="1em"
|
|
117
109
|
>
|
|
118
110
|
<path
|
|
119
111
|
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"
|
|
@@ -139,12 +131,10 @@ exports[`NotificationDrawerListItemHeader renders with correct heading level 1`]
|
|
|
139
131
|
>
|
|
140
132
|
<svg
|
|
141
133
|
aria-hidden="true"
|
|
134
|
+
class="pf-svg"
|
|
142
135
|
fill="currentColor"
|
|
143
|
-
height="1em"
|
|
144
136
|
role="img"
|
|
145
|
-
style="vertical-align: -0.125em;"
|
|
146
137
|
viewBox="0 0 896 1024"
|
|
147
|
-
width="1em"
|
|
148
138
|
>
|
|
149
139
|
<path
|
|
150
140
|
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"
|