@patternfly/react-icons 4.57.5 → 4.59.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,36 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # 4.59.0 (2022-05-02)
7
+
8
+
9
+ ### Features
10
+
11
+ * **divider:** add support for switching orientation at various breakpoints ([#7285](https://github.com/patternfly/patternfly-react/issues/7285)) ([6e47917](https://github.com/patternfly/patternfly-react/commit/6e47917a59fdbd0f9f647998d79d024a691a49e2))
12
+
13
+
14
+
15
+
16
+
17
+ # 4.58.0 (2022-04-28)
18
+
19
+
20
+ ### Features
21
+
22
+ * **CodeBlock:** add class to code component ([#7281](https://github.com/patternfly/patternfly-react/issues/7281)) ([844e162](https://github.com/patternfly/patternfly-react/commit/844e1621bc695c97f911f5cc64998c5d36911a4d))
23
+
24
+
25
+
26
+
27
+
28
+ ## 4.57.6 (2022-04-27)
29
+
30
+ **Note:** Version bump only for package @patternfly/react-icons
31
+
32
+
33
+
34
+
35
+
6
36
  ## 4.57.5 (2022-04-26)
7
37
 
8
38
  **Note:** Version bump only for package @patternfly/react-icons
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-icons",
3
- "version": "4.57.5",
3
+ "version": "4.59.0",
4
4
  "description": "PatternFly 4 Icons as React Components",
5
5
  "main": "dist/js/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -32,7 +32,7 @@
32
32
  "@fortawesome/free-brands-svg-icons": "^5.14.0",
33
33
  "@fortawesome/free-regular-svg-icons": "^5.14.0",
34
34
  "@fortawesome/free-solid-svg-icons": "^5.14.0",
35
- "@patternfly/patternfly": "4.192.1",
35
+ "@patternfly/patternfly": "4.192.4",
36
36
  "fs-extra": "^6.0.1",
37
37
  "glob": "^7.1.2",
38
38
  "rimraf": "^2.6.2",
@@ -43,5 +43,5 @@
43
43
  "react": "^16.8.0 || ^17.0.0",
44
44
  "react-dom": "^16.8.0 || ^17.0.0"
45
45
  },
46
- "gitHead": "c0f634afc3fb81b215b00b14cf337f09fd8f37cd"
46
+ "gitHead": "59b129df4098359eed9dc2c2cb7e67ef1f000136"
47
47
  }
@@ -1,8 +1,5 @@
1
1
  import React from 'react';
2
-
3
2
  import { render, screen } from '@testing-library/react';
4
- import '@testing-library/jest-dom';
5
-
6
3
  import { createIcon, IconSize } from '../createIcon';
7
4
 
8
5
  const iconDef = {
@@ -16,7 +13,8 @@ const SVGIcon = createIcon(iconDef);
16
13
 
17
14
  test('sets correct viewBox', () => {
18
15
  render(<SVGIcon />);
19
- expect(screen.getByRole('img', { hidden: true }).getAttribute('viewBox')).toEqual(
16
+ expect(screen.getByRole('img', { hidden: true })).toHaveAttribute(
17
+ 'viewBox',
20
18
  `0 0 ${iconDef.width} ${iconDef.height}`
21
19
  );
22
20
  });
@@ -27,21 +25,20 @@ test('sets correct svgPath', () => {
27
25
  screen
28
26
  .getByRole('img', { hidden: true })
29
27
  .querySelector('path')
30
- .getAttribute('d')
31
- ).toEqual(iconDef.svgPath);
28
+ ).toHaveAttribute('d', iconDef.svgPath);
32
29
  });
33
30
 
34
31
  test('height and width are set from size', () => {
35
32
  render(<SVGIcon size={IconSize.sm} />);
36
33
 
37
34
  const svg = screen.getByRole('img', { hidden: true });
38
- expect(svg.getAttribute('width')).toEqual('1em');
39
- expect(svg.getAttribute('height')).toEqual('1em');
35
+ expect(svg).toHaveAttribute('width', '1em');
36
+ expect(svg).toHaveAttribute('height', '1em');
40
37
  });
41
38
 
42
39
  test('aria-hidden is true if no title is specified', () => {
43
40
  render(<SVGIcon />);
44
- expect(screen.getByRole('img', { hidden: true }).getAttribute('aria-hidden')).toEqual('true');
41
+ expect(screen.getByRole('img', { hidden: true })).toHaveAttribute('aria-hidden', 'true');
45
42
  });
46
43
 
47
44
  test('title is not renderd if a title is not passed', () => {