Skip to content

Commit 9cabf54

Browse files
dlabajdgutride
authored andcommitted
Updated to core 178 and refactor from patternfly-next to patternfly. (#1317)
* Updated to core 178 * Updated snapshots. * Updated with code review comments. * Updates from rebase with table.
1 parent 469477a commit 9cabf54

152 files changed

Lines changed: 290 additions & 239 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<html>
22

33
<head>
4-
<link rel="stylesheet" href="https://unpkg.com/@patternfly/patternfly-next@1.0.126/patternfly.min.css" type="text/css" />
4+
<link rel="stylesheet" href="https://unpkg.com/@patternfly/patternfly@1.0.126/patternfly.min.css" type="text/css" />
55
</head>
66

77
<body>

packages/patternfly-4/react-charts/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,9 @@ import '@patternfly/react-core/dist/styles/base.css';
4545
import React from 'react';
4646
import { Area } from '@patternfly/react-charts';
4747

48-
export default <Area/>;
49-
50-
<Area data={[{ x: 1, y: 1 }, { x: 2, y: 2 }]}/>
48+
export default <Area />;
5149

50+
<Area data={[{ x: 1, y: 1 }, { x: 2, y: 2 }]} />;
5251
```
5352

5453
All css related to each component is provided alongside it. There is no component level CSS to import.
@@ -106,5 +105,5 @@ Testing is done at the root of this repo. To only run the patternfly-react tests
106105
yarn test packages/patternfly-4/react-charts
107106
```
108107

109-
[patternfly-4]: https://github.com/patternfly/patternfly-next
108+
[patternfly-4]: https://github.com/patternfly/patternfly
110109
[docs]: https://patternfly-react.surge.sh/patternfly-4

packages/patternfly-4/react-charts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"victory": "^30.1.0"
4747
},
4848
"devDependencies": {
49-
"@patternfly/patternfly-next": "1.0.175",
49+
"@patternfly/patternfly": "1.0.178",
5050
"css": "^2.2.3",
5151
"fs-extra": "^6.0.1",
5252
"glob": "^7.1.2",

packages/patternfly-4/react-core/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,5 @@ Testing is done at the root of this repo. To only run the patternfly-react tests
103103
yarn test packages/patternfly-4/react-core
104104
```
105105

106-
[patternfly-4]: https://github.com/patternfly/patternfly-next
106+
[patternfly-4]: https://github.com/patternfly/-next
107107
[docs]: https://patternfly-react.surge.sh/patternfly-4

packages/patternfly-4/react-core/build/copyStyles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { parse: parseCSS, stringify: stringifyCSS } = require('css');
55

66
const baseCSSFilename = 'patternfly-base.css';
77
const stylesDir = resolve(__dirname, '../dist/styles');
8-
const pfDir = dirname(require.resolve(`@patternfly/patternfly-next/${baseCSSFilename}`));
8+
const pfDir = dirname(require.resolve(`@patternfly/patternfly/${baseCSSFilename}`));
99

1010
const css = readFileSync(join(pfDir, baseCSSFilename), 'utf8');
1111
const ast = parseCSS(css);

packages/patternfly-4/react-core/build/snapshot-serializer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const fs = require('fs');
22
const { createSerializer } = require('@patternfly/react-styles/snapshot-serializer');
33

4-
const pf4CSS = fs.readFileSync(require.resolve('@patternfly/patternfly-next/patternfly-base.css'), 'utf8');
4+
const pf4CSS = fs.readFileSync(require.resolve('@patternfly/patternfly/patternfly-base.css'), 'utf8');
55

66
module.exports = createSerializer({
77
globalCSS: pf4CSS.match(/:root\W?\{(.|\n)*?\}/)[0]

packages/patternfly-4/react-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"@babel/preset-env": "^7.0.0",
6565
"@babel/preset-react": "^7.0.0",
6666
"@babel/preset-typescript": "^7.0.0",
67-
"@patternfly/patternfly-next": "1.0.175",
67+
"@patternfly/patternfly": "1.0.178",
6868
"@types/enzyme": "^3.1.15",
6969
"@types/jest": "^23.3.10",
7070
"@types/prop-types": "^15.5.6",

packages/patternfly-4/react-core/src/components/AboutModal/AboutModal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import AboutModalContainer from './AboutModalContainer';
55
import { canUseDOM } from 'exenv';
66
import { KEY_CODES } from '../../internal/constants';
77
import { css } from '@patternfly/react-styles';
8-
import styles from '@patternfly/patternfly-next/components/Backdrop/backdrop.css';
8+
import styles from '@patternfly/patternfly/components/Backdrop/backdrop.css';
99

1010
const propTypes = {
1111
/** content rendered inside the About Modal. */

packages/patternfly-4/react-core/src/components/AboutModal/AboutModalBox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { css } from '@patternfly/react-styles';
33
import PropTypes from 'prop-types';
4-
import styles from '@patternfly/patternfly-next/components/AboutModalBox/about-modal-box.css';
4+
import styles from '@patternfly/patternfly/components/AboutModalBox/about-modal-box.css';
55

66
const propTypes = {
77
/** content rendered inside the AboutModelBox. */

packages/patternfly-4/react-core/src/components/AboutModal/AboutModalBoxBrand.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { css } from '@patternfly/react-styles';
33
import PropTypes from 'prop-types';
4-
import styles from '@patternfly/patternfly-next/components/AboutModalBox/about-modal-box.css';
4+
import styles from '@patternfly/patternfly/components/AboutModalBox/about-modal-box.css';
55

66
const propTypes = {
77
/** additional classes added to the About Modal Brand */

0 commit comments

Comments
 (0)