diff --git a/.gitignore b/.gitignore
index d0f49bb62e5..ed26ae50fd8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,7 +3,7 @@ node_modules
dist
tsc_out
.out
-/.changelog
+.changelog
.DS_Store
coverage
.cache
@@ -14,21 +14,20 @@ yarn-error.log
lerna-debug.log
# IDEs and editors
-/.idea
+.idea
.project
.classpath
-.c9/
+.c9
*.launch
-.settings/
+.settings
*.sublime-workspace
-.history/*
+.history
+.vscode
# IDE - VSCode
-.vscode/*
+.vscode
+# For prettier
!.vscode/settings.json
-!.vscode/tasks.json
-!.vscode/launch.json
-!.vscode/extensions.json
# Deploy directory
.public
diff --git a/.vscode/launch.json b/.vscode/launch.json
deleted file mode 100644
index d70287e9e8c..00000000000
--- a/.vscode/launch.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- // Use IntelliSense to learn about possible attributes.
- // Hover to view descriptions of existing attributes.
- // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
- "version": "0.2.0",
- "configurations": [
- {
- "type": "chrome",
- "request": "launch",
- "name": "Chrome",
- "url": "http://localhost:6006",
- "webRoot": "${workspaceFolder}/src"
- }
- ]
-}
diff --git a/package.json b/package.json
index 234d8dbfc68..a81ff35f2b5 100644
--- a/package.json
+++ b/package.json
@@ -23,7 +23,6 @@
},
"homepage": "https://github.com/patternfly/patternfly-react#readme",
"devDependencies": {
- "@commitlint/cli": "^7.1.2",
"@storybook/addon-actions": "^v3.4.11",
"@storybook/addon-info": "^v3.4.11",
"@storybook/addon-knobs": "^v3.4.11",
@@ -34,9 +33,9 @@
"@storybook/addons": "^3.3.0",
"@storybook/react": "^v3.4.11",
"@storybook/storybook-deployer": "^2.1.0",
- "@types/jest": "^23.3.10",
- "@types/prop-types": "^15.5.6",
- "@types/react": "^16.7.13",
+ "@types/enzyme": "3.9.0",
+ "@types/jest": "^24.0.11",
+ "@types/react": "~16.8.7",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-eslint": "^9.0.0",
@@ -50,23 +49,20 @@
"babel-preset-react": "^6.24.1",
"change-case": "^3.0.2",
"codecov": "^3.2.0",
- "commitizen": "^3.0.1",
- "commitlint-config-cz": "^0.10.1",
+ "commitizen": "^3.0.7",
"concurrently": "^3.5.1",
- "conventional-changelog-cli": "^2.0.5",
"cross-env": "^5.1.4",
"css-loader": "^0.28.11",
"cypress": "^3.1.4",
"cz-conventional-changelog": "^2.1.0",
- "enzyme": "^3.3.0",
- "enzyme-adapter-react-16.3": "^1.2.0",
- "enzyme-to-json": "^3.3.3",
+ "enzyme": "3.9.0",
+ "enzyme-adapter-react-16": "1.10.0",
+ "enzyme-to-json": "3.3.5",
"eslint": "^5.13.0",
"eslint-import-resolver-webpack": "^0.9.0",
"eslint-plugin-patternfly-react": "file:packages/eslint-plugin-patternfly-react",
"fs-extra": "^6.0.1",
"glob": "^7.1.2",
- "husky": "^0.14.3",
"istanbul-api": "1.3.1",
"istanbul-reports": "1.3.0",
"jest": "^23.6.0",
@@ -79,8 +75,7 @@
"plop": "^2.0.0",
"prettier": "^1.16.1",
"prettier-eslint": "^8.8.1",
- "prop-types": "^15.6.1",
- "react": "^16.3.0",
+ "react": "~16.8.4",
"react-dev-utils": "^5.0.0",
"react-dom": "^16.3.0",
"react-scripts": "2.1.3",
@@ -89,7 +84,7 @@
"stylelint": "^9.10.1",
"stylelint-config-standard": "^18.2.0",
"surge": "^0.20.1",
- "ts-jest": "^23.10.5"
+ "ts-jest": "23.10.5"
},
"optionalDependencies": {
"sortabular": "^1.5.1",
@@ -103,13 +98,12 @@
"scripts": {
"bootstrap": "lerna bootstrap",
"build": "yarn prebuild:pf4 && lerna run --parallel build",
+ "commit": "git-cz",
"prebuild:pf4": "lerna run --scope='@patternfly/react-styles' build",
"build:docs": "yarn build && lerna run docbuild",
"build:prdocs": "lerna run pr-build --stream",
"build:storybook": "build-storybook -c storybook -o .out",
"clean": "lerna run clean --parallel",
- "commit": "git-cz",
- "commitmsg": "commitlint -e",
"generate": "yarn plop",
"lint": "lerna run lint --parallel",
"lint:fix": "lerna run lint:fix --parallel",
@@ -129,15 +123,14 @@
"test:watch": "jest --watchAll",
"uninstall": "find . -name node_modules -type d | xargs rm -rf"
},
- "config": {
- "commitizen": {
- "path": "node_modules/cz-conventional-changelog"
- },
- "access": "public"
- },
"workspaces": {
"packages": [
"packages/**"
]
+ },
+ "config": {
+ "commitizen": {
+ "path": "node_modules/cz-conventional-changelog"
+ }
}
}
\ No newline at end of file
diff --git a/packages/patternfly-3/patternfly-react-extensions/package.json b/packages/patternfly-3/patternfly-react-extensions/package.json
index 32eb9373a36..4353b338d06 100644
--- a/packages/patternfly-3/patternfly-react-extensions/package.json
+++ b/packages/patternfly-3/patternfly-react-extensions/package.json
@@ -30,7 +30,7 @@
},
"scripts": {
"build": "yarn build:sass && yarn build:less && yarn build:babel",
- "build:babel": "concurrently \"yarn build:babel:cjs\" \"yarn build:babel:esm\"",
+ "build:babel": "concurrently 'yarn build:babel:cjs' 'yarn build:babel:esm'",
"build:babel:cjs": "cross-env BABEL_ENV=production:cjs babel src --out-dir dist/js",
"build:babel:esm": "cross-env BABEL_ENV=production:esm babel src --out-dir dist/esm",
"build:less": "shx mkdir -p dist/less && shx cp -r less/* dist/less",
@@ -57,4 +57,4 @@
"react": "^16.3.2",
"react-dom": "^16.3.2"
}
-}
+}
\ No newline at end of file
diff --git a/packages/patternfly-3/patternfly-react-extensions/src/components/TableGrid/__snapshots__/TableGrid.test.js.snap b/packages/patternfly-3/patternfly-react-extensions/src/components/TableGrid/__snapshots__/TableGrid.test.js.snap
index 952060ffe7e..d7187a0418b 100644
--- a/packages/patternfly-3/patternfly-react-extensions/src/components/TableGrid/__snapshots__/TableGrid.test.js.snap
+++ b/packages/patternfly-3/patternfly-react-extensions/src/components/TableGrid/__snapshots__/TableGrid.test.js.snap
@@ -9,7 +9,7 @@ exports[`Bordered TableGrid renders properly 1`] = `
class="table-grid-pf-head row"
>
Column 2
@@ -61,25 +61,25 @@ exports[`Bordered TableGrid renders properly 1`] = `
/>
item 1 column 1
item 1 column 2
item 1 column 3
item 1 column 4
@@ -104,7 +104,7 @@ exports[`Bordered TableGrid renders properly 1`] = `
item 2 column 1
@@ -115,7 +115,7 @@ exports[`Bordered TableGrid renders properly 1`] = `
item 2 column 4
@@ -144,7 +144,7 @@ exports[`TableGrid renders properly 1`] = `
class="table-grid-pf-head row"
>
Column 2
@@ -196,25 +196,25 @@ exports[`TableGrid renders properly 1`] = `
/>
item 1 column 1
item 1 column 2
item 1 column 3
item 1 column 4
@@ -239,7 +239,7 @@ exports[`TableGrid renders properly 1`] = `
item 2 column 1
@@ -250,7 +250,7 @@ exports[`TableGrid renders properly 1`] = `
item 2 column 4
@@ -279,7 +279,7 @@ exports[`TableGrid with Cell select renders properly 1`] = `
class="table-grid-pf-head row"
>
Column 2
@@ -331,7 +331,7 @@ exports[`TableGrid with Cell select renders properly 1`] = `
/>
Column 2
@@ -512,7 +512,7 @@ exports[`TableGrid with Checkbox select renders properly 1`] = `
/>
Column 2
@@ -679,25 +679,25 @@ exports[`TableGrid with Row select renders properly 1`] = `
/>
item 1 column 1
item 1 column 2
item 1 column 3
item 1 column 4
@@ -712,6 +712,7 @@ exports[`TableGrid with Row select renders properly 1`] = `
>
@@ -722,7 +723,7 @@ exports[`TableGrid with Row select renders properly 1`] = `
item 2 column 1
@@ -733,7 +734,7 @@ exports[`TableGrid with Row select renders properly 1`] = `
item 2 column 4
@@ -768,7 +769,7 @@ exports[`TableGrid with Row select renders properly 1`] = `
item 3 column 1
@@ -779,7 +780,7 @@ exports[`TableGrid with Row select renders properly 1`] = `
item 3 column 4
@@ -809,17 +810,17 @@ exports[`TableGridHead renders options properly 1`] = `
id="all-selected-no-checkbox"
>
Col 1
Col 2
Col 3
@@ -843,17 +844,17 @@ exports[`TableGridHead renders options properly 1`] = `
Col 1
Col 2
Col 3
@@ -877,17 +878,17 @@ exports[`TableGridHead renders options properly 1`] = `
Col 1
Col 2
Col 3
@@ -911,17 +912,17 @@ exports[`TableGridHead renders options properly 1`] = `
Col 1
Col 2
Col 3
@@ -945,17 +946,17 @@ exports[`TableGridHead renders options properly 1`] = `
Col 1
Col 2
Col 3
@@ -979,17 +980,17 @@ exports[`TableGridHead renders options properly 1`] = `
Col 1
Col 2
Col 3
@@ -1013,17 +1014,17 @@ exports[`TableGridHead renders options properly 1`] = `
Col 1
Col 2
Col 3
@@ -1047,17 +1048,17 @@ exports[`TableGridHead renders options properly 1`] = `
Col 1
Col 2
Col 3
diff --git a/packages/patternfly-3/patternfly-react-extensions/src/components/TableGrid/__snapshots__/VirtualTableGrid.test.js.snap b/packages/patternfly-3/patternfly-react-extensions/src/components/TableGrid/__snapshots__/VirtualTableGrid.test.js.snap
index 3514efe6165..451ae989835 100644
--- a/packages/patternfly-3/patternfly-react-extensions/src/components/TableGrid/__snapshots__/VirtualTableGrid.test.js.snap
+++ b/packages/patternfly-3/patternfly-react-extensions/src/components/TableGrid/__snapshots__/VirtualTableGrid.test.js.snap
@@ -64,7 +64,7 @@ exports[`Bordered TableGrid renders properly 1`] = `
aria-readonly="true"
class="ReactVirtualized__Grid ReactVirtualized__List"
role="grid"
- style="box-sizing: border-box; direction: ltr; height: auto; position: relative; width: 0px; overflow-x: hidden; overflow-y: auto;"
+ style="box-sizing: border-box; direction: ltr; height: auto; position: relative; width: 0px; will-change: transform; overflow-x: hidden; overflow-y: auto;"
/>
@@ -150,7 +150,7 @@ exports[`TableGrid with Cell select renders properly 1`] = `
aria-readonly="true"
class="ReactVirtualized__Grid ReactVirtualized__List"
role="grid"
- style="box-sizing: border-box; direction: ltr; height: auto; position: relative; width: 0px; overflow-x: hidden; overflow-y: auto;"
+ style="box-sizing: border-box; direction: ltr; height: auto; position: relative; width: 0px; will-change: transform; overflow-x: hidden; overflow-y: auto;"
/>
@@ -250,7 +250,7 @@ exports[`TableGrid with Checkbox select and everything selected renders properly
aria-readonly="true"
class="ReactVirtualized__Grid ReactVirtualized__List"
role="grid"
- style="box-sizing: border-box; direction: ltr; height: auto; position: relative; width: 0px; overflow-x: hidden; overflow-y: auto;"
+ style="box-sizing: border-box; direction: ltr; height: auto; position: relative; width: 0px; will-change: transform; overflow-x: hidden; overflow-y: auto;"
/>
@@ -350,7 +350,7 @@ exports[`TableGrid with Checkbox select and no selections renders properly 1`] =
aria-readonly="true"
class="ReactVirtualized__Grid ReactVirtualized__List"
role="grid"
- style="box-sizing: border-box; direction: ltr; height: auto; position: relative; width: 0px; overflow-x: hidden; overflow-y: auto;"
+ style="box-sizing: border-box; direction: ltr; height: auto; position: relative; width: 0px; will-change: transform; overflow-x: hidden; overflow-y: auto;"
/>
@@ -450,7 +450,7 @@ exports[`TableGrid with Checkbox select and partial selections renders properly
aria-readonly="true"
class="ReactVirtualized__Grid ReactVirtualized__List"
role="grid"
- style="box-sizing: border-box; direction: ltr; height: auto; position: relative; width: 0px; overflow-x: hidden; overflow-y: auto;"
+ style="box-sizing: border-box; direction: ltr; height: auto; position: relative; width: 0px; will-change: transform; overflow-x: hidden; overflow-y: auto;"
/>
@@ -536,7 +536,7 @@ exports[`TableGrid with Row select renders properly 1`] = `
aria-readonly="true"
class="ReactVirtualized__Grid ReactVirtualized__List"
role="grid"
- style="box-sizing: border-box; direction: ltr; height: auto; position: relative; width: 0px; overflow-x: hidden; overflow-y: auto;"
+ style="box-sizing: border-box; direction: ltr; height: auto; position: relative; width: 0px; will-change: transform; overflow-x: hidden; overflow-y: auto;"
/>
@@ -622,7 +622,7 @@ exports[`VirtualTableGrid renders properly 1`] = `
aria-readonly="true"
class="ReactVirtualized__Grid ReactVirtualized__List"
role="grid"
- style="box-sizing: border-box; direction: ltr; height: auto; position: relative; width: 0px; overflow-x: hidden; overflow-y: auto;"
+ style="box-sizing: border-box; direction: ltr; height: auto; position: relative; width: 0px; will-change: transform; overflow-x: hidden; overflow-y: auto;"
/>
diff --git a/packages/patternfly-3/patternfly-react/package.json b/packages/patternfly-3/patternfly-react/package.json
index ebc14597f42..02c927d600f 100644
--- a/packages/patternfly-3/patternfly-react/package.json
+++ b/packages/patternfly-3/patternfly-react/package.json
@@ -58,7 +58,7 @@
},
"scripts": {
"build": "yarn build:sass && yarn build:less && yarn build:babel",
- "build:babel": "concurrently \"yarn build:babel:cjs\" \"yarn build:babel:esm\"",
+ "build:babel": "concurrently 'yarn build:babel:cjs' 'yarn build:babel:esm'",
"build:babel:cjs": "cross-env BABEL_ENV=production:cjs babel src --out-dir dist/js",
"build:babel:esm": "cross-env BABEL_ENV=production:esm babel src --out-dir dist/esm",
"build:less": "shx mkdir -p dist/less && shx cp -r less/* dist/less",
@@ -71,4 +71,4 @@
"rimraf": "^2.6.2",
"shx": "^0.3.2"
}
-}
+}
\ No newline at end of file
diff --git a/packages/patternfly-3/patternfly-react/src/components/DualListSelector/DualList.test.js b/packages/patternfly-3/patternfly-react/src/components/DualListSelector/DualList.test.js
index fe2145c1e0d..35990252790 100644
--- a/packages/patternfly-3/patternfly-react/src/components/DualListSelector/DualList.test.js
+++ b/packages/patternfly-3/patternfly-react/src/components/DualListSelector/DualList.test.js
@@ -70,7 +70,7 @@ test('Footer updates when items are selected ', () => {
test('selecting child items works properly', () => {
const props = getProps();
const component = mount();
- const childItemsCheckbox = component.find('label.dual-list-pf-item .child > input[type="checkbox"]');
+ const childItemsCheckbox = component.find('label.dual-list-pf-item.child > input[type="checkbox"]');
const {
'data-side': side,
'data-position': position,
@@ -86,7 +86,7 @@ test('selecting child items works properly', () => {
test('move child items works properly', () => {
const props = getProps();
const component = mount();
- const childItemsCheckbox = component.find('label.dual-list-pf-item .child > input[type="checkbox"]');
+ const childItemsCheckbox = component.find('label.dual-list-pf-item.child > input[type="checkbox"]');
const {
'data-side': side,
'data-position': position,
diff --git a/packages/patternfly-3/patternfly-react/src/components/MessageDialog/MessageDialog.test.js b/packages/patternfly-3/patternfly-react/src/components/MessageDialog/MessageDialog.test.js
index cc372a9fb56..7fb11a2e4e2 100644
--- a/packages/patternfly-3/patternfly-react/src/components/MessageDialog/MessageDialog.test.js
+++ b/packages/patternfly-3/patternfly-react/src/components/MessageDialog/MessageDialog.test.js
@@ -70,11 +70,7 @@ describe('rendering with options', () => {
});
test('renders with a custom footer', () => {
- const footer = (
-
-
-
- );
+ const footer = ;
const wrapper = shallow();
expect(wrapper.contains(footer)).toBe(true);
diff --git a/packages/patternfly-3/patternfly-react/src/components/Notification/Wrappers/__snapshots__/Wrappers.test.js.snap b/packages/patternfly-3/patternfly-react/src/components/Notification/Wrappers/__snapshots__/Wrappers.test.js.snap
index 7f85667aa12..64e4b1860ef 100644
--- a/packages/patternfly-3/patternfly-react/src/components/Notification/Wrappers/__snapshots__/Wrappers.test.js.snap
+++ b/packages/patternfly-3/patternfly-react/src/components/Notification/Wrappers/__snapshots__/Wrappers.test.js.snap
@@ -755,7 +755,7 @@ exports[`NotificationDrawerPanelWraper is working properly 1`] = `
exports[`StatefulNotificationDrawerWrapper is working properly 1`] = `
Notification Tab 1
@@ -803,7 +803,7 @@ exports[`StatefulNotificationDrawerWrapper is working properly 1`] = `
-
-
-
-
-
-
-
- Notifications
-
-
-
-
-
-
-
- 0 Unread Events
-
-
-
-
-
-
-
-
- No Notifications Available
-
-
-
-
-
-
`;
diff --git a/packages/patternfly-3/patternfly-react/src/components/Pagination/__snapshots__/Paginate.test.js.snap b/packages/patternfly-3/patternfly-react/src/components/Pagination/__snapshots__/Paginate.test.js.snap
index faafbc0313e..3679aacc1a6 100644
--- a/packages/patternfly-3/patternfly-react/src/components/Pagination/__snapshots__/Paginate.test.js.snap
+++ b/packages/patternfly-3/patternfly-react/src/components/Pagination/__snapshots__/Paginate.test.js.snap
@@ -2,7 +2,7 @@
exports[`PaginationRow card renders properly 1`] = `