@patternfly/react-core 4.244.1 → 4.244.2

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 (24) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/esm/components/Alert/AlertActionCloseButton.js +2 -4
  3. package/dist/esm/components/Alert/AlertActionCloseButton.js.map +1 -1
  4. package/dist/esm/components/Alert/AlertToggleExpandButton.js +1 -1
  5. package/dist/esm/components/Alert/AlertToggleExpandButton.js.map +1 -1
  6. package/dist/js/components/Alert/AlertActionCloseButton.js +2 -4
  7. package/dist/js/components/Alert/AlertActionCloseButton.js.map +1 -1
  8. package/dist/js/components/Alert/AlertToggleExpandButton.js +1 -1
  9. package/dist/js/components/Alert/AlertToggleExpandButton.js.map +1 -1
  10. package/dist/umd/react-core.min.css +69 -69
  11. package/dist/umd/react-core.min.js +1 -1
  12. package/package.json +2 -2
  13. package/src/components/Alert/AlertActionCloseButton.tsx +2 -2
  14. package/src/components/Alert/AlertToggleExpandButton.tsx +2 -2
  15. package/src/components/Alert/__tests__/Alert.test.tsx +713 -199
  16. package/src/components/Alert/__tests__/AlertActionCloseButton.test.tsx +125 -0
  17. package/src/components/Alert/__tests__/AlertActionLink.test.tsx +59 -0
  18. package/src/components/Alert/__tests__/AlertIcon.test.tsx +83 -0
  19. package/src/components/Alert/__tests__/AlertToggleExpandButton.test.tsx +150 -0
  20. package/src/components/Alert/__tests__/__snapshots__/Alert.test.tsx.snap +12 -2569
  21. package/src/components/Alert/__tests__/__snapshots__/AlertActionCloseButton.test.tsx.snap +31 -0
  22. package/src/components/Alert/__tests__/__snapshots__/AlertActionLink.test.tsx.snap +17 -0
  23. package/src/components/Alert/__tests__/__snapshots__/AlertIcon.test.tsx.snap +11 -0
  24. package/src/components/Alert/__tests__/__snapshots__/AlertToggleExpandButton.test.tsx.snap +24 -0
@@ -0,0 +1,31 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Matches the snapshot 1`] = `
4
+ <DocumentFragment>
5
+ <button
6
+ aria-label="Close variantLabel alert: title"
7
+ >
8
+ <svg
9
+ aria-hidden="true"
10
+ fill="currentColor"
11
+ height="1em"
12
+ role="img"
13
+ style="vertical-align: -0.125em;"
14
+ viewBox="0 0 352 512"
15
+ width="1em"
16
+ >
17
+ <path
18
+ d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
19
+ />
20
+ </svg>
21
+ </button>
22
+ <p>
23
+ variant: plain
24
+ </p>
25
+ <p
26
+ id="labelling-id"
27
+ >
28
+ Test label
29
+ </p>
30
+ </DocumentFragment>
31
+ `;
@@ -0,0 +1,17 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Matches the snapshot 1`] = `
4
+ <DocumentFragment>
5
+ <button
6
+ class=""
7
+ >
8
+ Test
9
+ </button>
10
+ <p>
11
+ variant: link
12
+ </p>
13
+ <p>
14
+ isInline: true
15
+ </p>
16
+ </DocumentFragment>
17
+ `;
@@ -0,0 +1,11 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Matches snapshot 1`] = `
4
+ <DocumentFragment>
5
+ <div
6
+ class="pf-c-alert__icon"
7
+ >
8
+ Bell icon mock
9
+ </div>
10
+ </DocumentFragment>
11
+ `;
@@ -0,0 +1,24 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Matches snapshot 1`] = `
4
+ <DocumentFragment>
5
+ <button
6
+ aria-expanded="false"
7
+ aria-label="Toggle variantLabel alert: title"
8
+ >
9
+ <span
10
+ class="pf-c-alert__toggle-icon"
11
+ >
12
+ Icon mock
13
+ </span>
14
+ </button>
15
+ <p>
16
+ variant: plain
17
+ </p>
18
+ <p
19
+ id="labelling-id"
20
+ >
21
+ Test label
22
+ </p>
23
+ </DocumentFragment>
24
+ `;