diff --git a/packages/button/package.json b/packages/button/package.json index fc20149d9..192424ae0 100644 --- a/packages/button/package.json +++ b/packages/button/package.json @@ -16,11 +16,13 @@ "type": "git", "url": "https://github.com/material-components/material-components-web-react.git" }, + "peerDependencies": { + "react": "^16.4.2" + }, "dependencies": { "@material/button": "^1.1.0", "@material/react-ripple": "^0.13.0", - "classnames": "^2.2.6", - "react": "^16.4.2" + "classnames": "^2.2.6" }, "publishConfig": { "access": "public" diff --git a/packages/card/package.json b/packages/card/package.json index 05a3b7975..62c8b3981 100644 --- a/packages/card/package.json +++ b/packages/card/package.json @@ -16,11 +16,13 @@ "type": "git", "url": "https://github.com/material-components/material-components-web-react.git" }, + "peerDependencies": { + "react": "^16.4.2" + }, "dependencies": { "@material/card": "^2.1.1", "@material/react-ripple": "^0.13.0", - "classnames": "^2.2.6", - "react": "^16.4.2" + "classnames": "^2.2.6" }, "publishConfig": { "access": "public" diff --git a/packages/checkbox/package.json b/packages/checkbox/package.json index f0a43a2c4..38b059c11 100644 --- a/packages/checkbox/package.json +++ b/packages/checkbox/package.json @@ -15,11 +15,13 @@ "type": "git", "url": "https://github.com/material-components/material-components-web-react.git" }, + "peerDependencies": { + "react": "^16.4.2" + }, "dependencies": { "@material/checkbox": "^2.1.1", "@material/react-ripple": "^0.13.0", - "classnames": "^2.2.6", - "react": "^16.3.2" + "classnames": "^2.2.6" }, "publishConfig": { "access": "public" diff --git a/packages/chips/package.json b/packages/chips/package.json index 1ac0b8ec3..908efb203 100644 --- a/packages/chips/package.json +++ b/packages/chips/package.json @@ -18,11 +18,13 @@ "type": "git", "url": "https://github.com/material-components/material-components-web-react.git" }, + "peerDependencies": { + "react": "^16.4.2" + }, "dependencies": { "@material/chips": "^2.3.0", "@material/react-ripple": "^0.13.0", "classnames": "^2.2.6", - "react": "^16.4.2", "react-is": "^16.8.6" }, "publishConfig": { diff --git a/packages/dialog/package.json b/packages/dialog/package.json index 2d5024149..99ff18706 100644 --- a/packages/dialog/package.json +++ b/packages/dialog/package.json @@ -14,13 +14,15 @@ "type": "git", "url": "https://github.com/material-components/material-components-web-react.git" }, + "peerDependencies": { + "react": "^16.4.2" + }, "dependencies": { "@material/dialog": "^2.2.0", "@material/dom": "^1.0.0", "@material/react-button": "^0.13.0", "classnames": "^2.2.6", - "focus-trap": "^4.0.2", - "react": "^16.4.2" + "focus-trap": "^4.0.2" }, "publishConfig": { "access": "public" diff --git a/packages/drawer/package.json b/packages/drawer/package.json index 24da0122c..9ef22845a 100644 --- a/packages/drawer/package.json +++ b/packages/drawer/package.json @@ -16,12 +16,14 @@ "type": "git", "url": "https://github.com/material-components/material-components-web-react.git" }, + "peerDependencies": { + "react": "^16.4.2" + }, "dependencies": { "@material/drawer": "^2.3.0", "@material/list": "^2.3.0", "classnames": "^2.2.6", - "focus-trap": "^4.0.2", - "react": "^16.4.2" + "focus-trap": "^4.0.2" }, "publishConfig": { "access": "public" diff --git a/packages/fab/package.json b/packages/fab/package.json index 195318500..75f087ae3 100644 --- a/packages/fab/package.json +++ b/packages/fab/package.json @@ -16,11 +16,13 @@ "type": "git", "url": "https://github.com/material-components/material-components-web-react.git" }, + "peerDependencies": { + "react": "^16.4.2" + }, "dependencies": { "@material/fab": "^2.1.1", "@material/react-ripple": "^0.13.0", - "classnames": "^2.2.6", - "react": "^16.4.2" + "classnames": "^2.2.6" }, "publishConfig": { "access": "public" diff --git a/packages/floating-label/package.json b/packages/floating-label/package.json index 8d9c7a1d7..afab6cb68 100644 --- a/packages/floating-label/package.json +++ b/packages/floating-label/package.json @@ -17,10 +17,12 @@ "type": "git", "url": "https://github.com/material-components/material-components-web-react.git" }, + "peerDependencies": { + "react": "^16.4.2" + }, "dependencies": { "@material/floating-label": "^1.0.0", - "classnames": "^2.2.6", - "react": "^16.4.2" + "classnames": "^2.2.6" }, "publishConfig": { "access": "public" diff --git a/packages/icon-button/package.json b/packages/icon-button/package.json index a43755df3..edfc9d197 100644 --- a/packages/icon-button/package.json +++ b/packages/icon-button/package.json @@ -16,11 +16,13 @@ "type": "git", "url": "https://github.com/material-components/material-components-web-react.git" }, + "peerDependencies": { + "react": "^16.4.2" + }, "dependencies": { "@material/icon-button": "^2.1.1", "@material/react-ripple": "^0.13.0", - "classnames": "^2.2.6", - "react": "^16.3.2" + "classnames": "^2.2.6" }, "publishConfig": { "access": "public" diff --git a/packages/layout-grid/package.json b/packages/layout-grid/package.json index 4a5bd8d8b..a244f3a99 100644 --- a/packages/layout-grid/package.json +++ b/packages/layout-grid/package.json @@ -16,10 +16,12 @@ "type": "git", "url": "https://github.com/material-components/material-components-web-react.git" }, + "peerDependencies": { + "react": "^16.4.2" + }, "dependencies": { "@material/layout-grid": "^0.41.0", - "classnames": "^2.2.6", - "react": "^16.4.2" + "classnames": "^2.2.6" }, "publishConfig": { "access": "public" diff --git a/packages/line-ripple/package.json b/packages/line-ripple/package.json index ca4f6fdab..917274d8f 100644 --- a/packages/line-ripple/package.json +++ b/packages/line-ripple/package.json @@ -16,10 +16,12 @@ "type": "git", "url": "https://github.com/material-components/material-components-web-react.git" }, + "peerDependencies": { + "react": "^16.4.2" + }, "dependencies": { "@material/line-ripple": "^1.0.0", - "classnames": "^2.2.6", - "react": "^16.4.2" + "classnames": "^2.2.6" }, "publishConfig": { "access": "public" diff --git a/packages/linear-progress/package.json b/packages/linear-progress/package.json index b19ef37da..952a5386d 100644 --- a/packages/linear-progress/package.json +++ b/packages/linear-progress/package.json @@ -16,10 +16,12 @@ "type": "git", "url": "https://github.com/material-components/material-components-web-react.git" }, + "peerDependencies": { + "react": "^16.4.2" + }, "dependencies": { "@material/linear-progress": "^1.1.0", - "classnames": "^2.2.6", - "react": "^16.4.2" + "classnames": "^2.2.6" }, "publishConfig": { "access": "public" diff --git a/packages/list/package.json b/packages/list/package.json index 1ae3576e7..88abf450d 100644 --- a/packages/list/package.json +++ b/packages/list/package.json @@ -15,6 +15,9 @@ "type": "git", "url": "https://github.com/material-components/material-components-web-react.git" }, + "peerDependencies": { + "react": "^16.4.2" + }, "dependencies": { "@material/dom": "^1.1.0", "@material/list": "^1.0.0", @@ -22,8 +25,7 @@ "@material/react-radio": "^0.13.0", "@material/react-ripple": "^0.13.0", "classnames": "^2.2.6", - "memoize-one": "^5.0.4", - "react": "^16.4.2" + "memoize-one": "^5.0.4" }, "publishConfig": { "access": "public" diff --git a/packages/material-icon/package.json b/packages/material-icon/package.json index 102de2d11..e891aa63b 100644 --- a/packages/material-icon/package.json +++ b/packages/material-icon/package.json @@ -16,10 +16,12 @@ "type": "git", "url": "https://github.com/material-components/material-components-web-react.git" }, + "peerDependencies": { + "react": "^16.4.2" + }, "dependencies": { "@material/react-ripple": "^0.13.0", - "classnames": "^2.2.6", - "react": "^16.4.2" + "classnames": "^2.2.6" }, "publishConfig": { "access": "public" diff --git a/packages/menu-surface/package.json b/packages/menu-surface/package.json index 3eaa0e1a5..b674bc63b 100644 --- a/packages/menu-surface/package.json +++ b/packages/menu-surface/package.json @@ -16,12 +16,14 @@ "type": "git", "url": "https://github.com/material-components/material-components-web-react.git" }, - "dependencies": { - "@material/menu-surface": "^1.0.1", - "classnames": "^2.2.6", + "peerDependencies": { "react": "^16.4.2", "react-dom": "^16.4.2" }, + "dependencies": { + "@material/menu-surface": "^1.0.1", + "classnames": "^2.2.6" + }, "publishConfig": { "access": "public" } diff --git a/packages/menu/package.json b/packages/menu/package.json index 3e31bc277..7959d6c6f 100644 --- a/packages/menu/package.json +++ b/packages/menu/package.json @@ -15,12 +15,14 @@ "type": "git", "url": "https://github.com/material-components/material-components-web-react.git" }, + "peerDependencies": { + "react": "^16.4.2" + }, "dependencies": { "@material/menu": "^1.1.0", "@material/react-list": "^0.13.2", "@material/react-menu-surface": "^0.13.0", - "classnames": "^2.2.6", - "react": "^16.4.2" + "classnames": "^2.2.6" }, "publishConfig": { "access": "public" diff --git a/packages/notched-outline/package.json b/packages/notched-outline/package.json index e6c82518a..fd9f836ac 100644 --- a/packages/notched-outline/package.json +++ b/packages/notched-outline/package.json @@ -16,10 +16,12 @@ "type": "git", "url": "https://github.com/material-components/material-components-web-react.git" }, + "peerDependencies": { + "react": "^16.4.2" + }, "dependencies": { "@material/notched-outline": "^1.1.1", - "classnames": "^2.2.6", - "react": "^16.4.2" + "classnames": "^2.2.6" }, "publishConfig": { "access": "public" diff --git a/packages/radio/package.json b/packages/radio/package.json index d9b3730d5..e7d1fe2b4 100644 --- a/packages/radio/package.json +++ b/packages/radio/package.json @@ -15,12 +15,14 @@ "type": "git", "url": "https://github.com/material-components/material-components-web-react.git" }, + "peerDependencies": { + "react": "^16.4.2" + }, "dependencies": { "@material/form-field": "^0.41.0", "@material/radio": "^1.1.0", "@material/react-ripple": "^0.13.0", - "classnames": "^2.2.6", - "react": "^16.4.2" + "classnames": "^2.2.6" }, "publishConfig": { "access": "public" diff --git a/packages/ripple/package.json b/packages/ripple/package.json index 01cd34e00..5a11c3edc 100644 --- a/packages/ripple/package.json +++ b/packages/ripple/package.json @@ -15,11 +15,13 @@ "type": "git", "url": "https://github.com/material-components/material-components-web-react.git" }, + "peerDependencies": { + "react": "^16.4.2" + }, "dependencies": { "@material/dom": "^1.0.0", "@material/ripple": "^1.0.0", "classnames": "^2.2.6", - "react": "^16.4.2", "utility-types": "^3.2.1" }, "publishConfig": { diff --git a/packages/select/package.json b/packages/select/package.json index 9fc539ad8..89e454b61 100644 --- a/packages/select/package.json +++ b/packages/select/package.json @@ -15,6 +15,9 @@ "type": "git", "url": "https://github.com/material-components/material-components-web-react.git" }, + "peerDependencies": { + "react": "^16.4.2" + }, "dependencies": { "@material/react-floating-label": "^0.13.0", "@material/react-line-ripple": "^0.13.0", @@ -22,8 +25,7 @@ "@material/react-menu-surface": "^0.13.0", "@material/react-notched-outline": "^0.13.0", "@material/select": "^1.1.1", - "classnames": "^2.2.6", - "react": "^16.4.2" + "classnames": "^2.2.6" }, "publishConfig": { "access": "public" diff --git a/packages/snackbar/package.json b/packages/snackbar/package.json index 8881ef441..bf19e96c3 100644 --- a/packages/snackbar/package.json +++ b/packages/snackbar/package.json @@ -16,10 +16,12 @@ "type": "git", "url": "https://github.com/material-components/material-components-web-react.git" }, + "peerDependencies": { + "react": "^16.4.2" + }, "dependencies": { "@material/snackbar": "^1.0.0", - "classnames": "^2.2.6", - "react": "^16.4.2" + "classnames": "^2.2.6" }, "publishConfig": { "access": "public" diff --git a/packages/switch/package.json b/packages/switch/package.json index 1c520a9fc..440a786ff 100644 --- a/packages/switch/package.json +++ b/packages/switch/package.json @@ -15,11 +15,13 @@ "type": "git", "url": "https://github.com/material-components/material-components-web-react.git" }, + "peerDependencies": { + "react": "^16.4.2" + }, "dependencies": { "@material/react-ripple": "^0.13.0", "@material/switch": "^1.0.0", - "classnames": "^2.2.6", - "react": "^16.3.2" + "classnames": "^2.2.6" }, "publishConfig": { "access": "public" diff --git a/packages/tab-bar/package.json b/packages/tab-bar/package.json index e473d906a..5a7417f0c 100644 --- a/packages/tab-bar/package.json +++ b/packages/tab-bar/package.json @@ -17,12 +17,14 @@ "type": "git", "url": "https://github.com/material-components/material-components-web-react.git" }, + "peerDependencies": { + "react": "^16.4.2" + }, "dependencies": { "@material/react-tab": "^0.13.0", "@material/react-tab-scroller": "^0.13.0", "@material/tab-bar": "^1.0.0", - "classnames": "^2.2.6", - "react": "^16.3.2" + "classnames": "^2.2.6" }, "publishConfig": { "access": "public" diff --git a/packages/tab-indicator/package.json b/packages/tab-indicator/package.json index 8e7f05053..c04028764 100644 --- a/packages/tab-indicator/package.json +++ b/packages/tab-indicator/package.json @@ -17,10 +17,12 @@ "type": "git", "url": "https://github.com/material-components/material-components-web-react.git" }, + "peerDependencies": { + "react": "^16.4.2" + }, "dependencies": { "@material/tab-indicator": "^1.0.0", - "classnames": "^2.2.6", - "react": "^16.4.2" + "classnames": "^2.2.6" }, "publishConfig": { "access": "public" diff --git a/packages/tab-scroller/package.json b/packages/tab-scroller/package.json index c6882b653..e65382932 100644 --- a/packages/tab-scroller/package.json +++ b/packages/tab-scroller/package.json @@ -17,11 +17,13 @@ "type": "git", "url": "https://github.com/material-components/material-components-web-react.git" }, + "peerDependencies": { + "react": "^16.4.2" + }, "dependencies": { "@material/dom": "^1.0.0", "@material/tab-scroller": "^1.0.0", - "classnames": "^2.2.6", - "react": "^16.4.2" + "classnames": "^2.2.6" }, "publishConfig": { "access": "public" diff --git a/packages/tab/package.json b/packages/tab/package.json index 465c20c9b..5419ad79f 100644 --- a/packages/tab/package.json +++ b/packages/tab/package.json @@ -16,12 +16,14 @@ "type": "git", "url": "https://github.com/material-components/material-components-web-react.git" }, + "peerDependencies": { + "react": "^16.4.2" + }, "dependencies": { "@material/react-ripple": "^0.13.0", "@material/react-tab-indicator": "^0.13.0", "@material/tab": "^1.0.0", - "classnames": "^2.2.6", - "react": "^16.3.2" + "classnames": "^2.2.6" }, "publishConfig": { "access": "public" diff --git a/packages/text-field/package.json b/packages/text-field/package.json index 5afac4fab..cecddf258 100644 --- a/packages/text-field/package.json +++ b/packages/text-field/package.json @@ -16,13 +16,15 @@ "type": "git", "url": "https://github.com/material-components/material-components-web-react.git" }, + "peerDependencies": { + "react": "^16.4.2" + }, "dependencies": { "@material/react-floating-label": "^0.13.0", "@material/react-line-ripple": "^0.13.0", "@material/react-notched-outline": "^0.13.0", "@material/textfield": "^1.1.1", - "classnames": "^2.2.6", - "react": "^16.4.2" + "classnames": "^2.2.6" }, "publishConfig": { "access": "public" diff --git a/packages/top-app-bar/package.json b/packages/top-app-bar/package.json index 19cf54f35..0acd9d04a 100644 --- a/packages/top-app-bar/package.json +++ b/packages/top-app-bar/package.json @@ -16,11 +16,13 @@ "type": "git", "url": "https://github.com/material-components/material-components-web-react.git" }, + "peerDependencies": { + "react": "^16.4.2" + }, "dependencies": { "@material/react-ripple": "^0.13.0", "@material/top-app-bar": "^1.1.0", - "classnames": "^2.2.6", - "react": "^16.4.2" + "classnames": "^2.2.6" }, "publishConfig": { "access": "public" diff --git a/packages/typography/package.json b/packages/typography/package.json index c02a8721b..d660a5410 100644 --- a/packages/typography/package.json +++ b/packages/typography/package.json @@ -16,10 +16,12 @@ "type": "git", "url": "https://github.com/material-components/material-components-web-react.git" }, + "peerDependencies": { + "react": "^16.4.2" + }, "dependencies": { "@material/typography": "^1.0.0", - "classnames": "^2.2.6", - "react": "^16.4.2" + "classnames": "^2.2.6" }, "publishConfig": { "access": "public"