Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit b9eb8ca

Browse files
author
Matt Goo
authored
chore(infrastructure): upgrade material deps to v0.39.0 (#249)
1 parent c400970 commit b9eb8ca

File tree

21 files changed

+202
-212
lines changed

21 files changed

+202
-212
lines changed

package-lock.json

+168-166
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+15-15
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,21 @@
4646
},
4747
"devDependencies": {
4848
"@google-cloud/storage": "^1.6.0",
49-
"@material/button": "^0.38.1",
50-
"@material/card": "^0.38.1",
51-
"@material/chips": "^0.38.1",
52-
"@material/fab": "^0.38.1",
53-
"@material/floating-label": "^0.38.0",
54-
"@material/line-ripple": "^0.38.0",
55-
"@material/list": "^0.38.1",
56-
"@material/notched-outline": "^0.38.0",
57-
"@material/ripple": "^0.38.1",
58-
"@material/select": "^0.38.1",
59-
"@material/tab": "^0.38.1",
60-
"@material/tab-indicator": "^0.38.0",
61-
"@material/textfield": "^0.38.1",
62-
"@material/top-app-bar": "^0.38.1",
63-
"@material/typography": "^0.38.0",
49+
"@material/button": "^0.39.0",
50+
"@material/card": "^0.39.0",
51+
"@material/chips": "^0.39.0",
52+
"@material/fab": "^0.39.0",
53+
"@material/floating-label": "^0.39.0",
54+
"@material/line-ripple": "^0.39.0",
55+
"@material/list": "^0.39.0",
56+
"@material/notched-outline": "^0.39.0",
57+
"@material/ripple": "^0.39.0",
58+
"@material/select": "^0.39.0",
59+
"@material/tab": "^0.39.0",
60+
"@material/tab-indicator": "^0.39.0",
61+
"@material/textfield": "^0.39.0",
62+
"@material/top-app-bar": "^0.39.0",
63+
"@material/typography": "^0.39.0",
6464
"autoprefixer": "^8.5.1",
6565
"babel-core": "^6.26.0",
6666
"babel-eslint": "^7.2.3",

packages/button/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"url": "https://github.com/material-components/material-components-web-react.git"
1717
},
1818
"dependencies": {
19-
"@material/button": "^0.38.1",
19+
"@material/button": "^0.39.0",
2020
"@material/react-ripple": "^0.4.2",
2121
"classnames": "^2.2.5",
2222
"prop-types": "^15.6.1",

packages/card/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"url": "https://github.com/material-components/material-components-web-react.git"
1717
},
1818
"dependencies": {
19-
"@material/card": "^0.38.1",
19+
"@material/card": "^0.39.0",
2020
"classnames": "^2.2.5",
2121
"prop-types": "^15.6.1",
2222
"react": "^16.4.2"

packages/chips/package_skip.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"url": "https://github.com/material-components/material-components-web-react.git"
1818
},
1919
"dependencies": {
20-
"@material/chips": "^0.38.1",
20+
"@material/chips": "^0.39.0",
2121
"@material/react-ripple": "^0.2.0",
2222
"classnames": "^2.2.5",
2323
"prop-types": "^15.6.1",

packages/fab/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"url": "https://github.com/material-components/material-components-web-react.git"
1717
},
1818
"dependencies": {
19-
"@material/fab": "^0.38.1",
19+
"@material/fab": "^0.39.0",
2020
"@material/react-ripple": "^0.4.2",
2121
"classnames": "^2.2.5",
2222
"prop-types": "^15.6.1",

packages/floating-label/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"url": "https://github.com/material-components/material-components-web-react.git"
1818
},
1919
"dependencies": {
20-
"@material/floating-label": "^0.38.0",
20+
"@material/floating-label": "^0.39.0",
2121
"classnames": "^2.2.5",
2222
"prop-types": "^15.6.1",
2323
"react": "^16.4.2"

packages/line-ripple/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"url": "https://github.com/material-components/material-components-web-react.git"
1717
},
1818
"dependencies": {
19-
"@material/line-ripple": "^0.38.0",
19+
"@material/line-ripple": "^0.39.0",
2020
"classnames": "^2.2.5",
2121
"prop-types": "^15.6.1",
2222
"react": "^16.4.2"

packages/notched-outline/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"url": "https://github.com/material-components/material-components-web-react.git"
1717
},
1818
"dependencies": {
19-
"@material/notched-outline": "^0.38.0",
19+
"@material/notched-outline": "^0.39.0",
2020
"classnames": "^2.2.5",
2121
"prop-types": "^15.6.1",
2222
"react": "^16.4.2"

packages/ripple/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"url": "https://github.com/material-components/material-components-web-react.git"
1616
},
1717
"dependencies": {
18-
"@material/ripple": "^0.38.1",
18+
"@material/ripple": "^0.39.0",
1919
"classnames": "^2.2.5",
2020
"prop-types": "^15.6.1",
2121
"react": "^16.4.2"

packages/select/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@material/react-floating-label": "^0.4.1",
1919
"@material/react-line-ripple": "^0.4.1",
2020
"@material/react-notched-outline": "^0.4.1",
21-
"@material/select": "^0.38.1",
21+
"@material/select": "^0.39.0",
2222
"classnames": "^2.2.5",
2323
"prop-types": "^15.6.1",
2424
"react": "^16.4.2"

packages/tab-indicator/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"url": "https://github.com/material-components/material-components-web-react.git"
1818
},
1919
"dependencies": {
20-
"@material/tab-indicator": "^0.38.0",
20+
"@material/tab-indicator": "^0.39.0",
2121
"classnames": "^2.2.5",
2222
"prop-types": "^15.6.1",
2323
"react": "^16.4.2"

packages/tab-scroller/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"url": "https://github.com/material-components/material-components-web-react.git"
1818
},
1919
"dependencies": {
20-
"@material/tab-scroller": "^0.38.1",
20+
"@material/tab-scroller": "^0.39.0",
2121
"classnames": "^2.2.5",
2222
"prop-types": "^15.6.1",
2323
"react": "^16.4.2"

packages/tab/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
"dependencies": {
1919
"@material/react-tab-indicator": "^0.4.1",
20-
"@material/tab": "^0.38.1",
20+
"@material/tab": "^0.39.0",
2121
"classnames": "^2.2.5",
2222
"prop-types": "^15.6.1",
2323
"react": "^16.3.2"

packages/text-field/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ class MyApp extends React.Component {
5555

5656
Prop Name | Type | Description
5757
--- | --- | ---
58-
box | Boolean | Enables box variant.
5958
children | Element | Mandatory. The input element of the text field.
6059
className | String | An optional class added to the `.mdc-text-field` element.
6160
dense | Boolean | Enables dense variant.

packages/text-field/index.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -91,23 +91,21 @@ class TextField extends React.Component {
9191

9292
get classes() {
9393
const {classList, disabled} = this.state;
94-
const {className, box, dense, outlined, fullWidth, textarea, trailingIcon, leadingIcon} = this.props;
94+
const {className, dense, outlined, fullWidth, textarea, trailingIcon, leadingIcon} = this.props;
9595
return classnames('mdc-text-field', Array.from(classList), className, {
9696
'mdc-text-field--outlined': outlined,
9797
'mdc-text-field--textarea': textarea,
9898
'mdc-text-field--fullwidth': fullWidth,
9999
'mdc-text-field--disabled': disabled,
100100
'mdc-text-field--with-trailing-icon': trailingIcon,
101101
'mdc-text-field--with-leading-icon': leadingIcon,
102-
'mdc-text-field--box': box,
103102
'mdc-text-field--dense': dense,
104103
});
105104
}
106105

107106
get otherProps() {
108107
const {
109108
/* eslint-disable no-unused-vars */
110-
box,
111109
children,
112110
className,
113111
dense,
@@ -350,7 +348,6 @@ class TextField extends React.Component {
350348
}
351349

352350
TextField.propTypes = {
353-
'box': PropTypes.bool,
354351
'children.props': PropTypes.shape(Input.propTypes),
355352
'children': PropTypes.element,
356353
'className': PropTypes.string,
@@ -369,7 +366,6 @@ TextField.propTypes = {
369366
};
370367

371368
TextField.defaultProps = {
372-
box: false,
373369
className: '',
374370
dense: false,
375371
floatingLabelClassName: '',

packages/text-field/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@material/react-floating-label": "^0.4.1",
2020
"@material/react-line-ripple": "^0.4.1",
2121
"@material/react-notched-outline": "^0.4.1",
22-
"@material/textfield": "^0.38.1",
22+
"@material/textfield": "^0.39.0",
2323
"classnames": "^2.2.5",
2424
"prop-types": "^15.6.1",
2525
"react": "^16.4.2"

packages/top-app-bar/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"topappbar"
1313
],
1414
"dependencies": {
15-
"@material/top-app-bar": "^0.38.1",
15+
"@material/top-app-bar": "^0.39.0",
1616
"classnames": "^2.2.5",
1717
"prop-types": "^15.6.1",
1818
"react": "^16.4.2"

test/screenshot/golden.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
"fab": "db36f52195c420062d91dd5ebe5432ad87247b3c1146fd547b0a195079bbce2f",
66
"floating-label": "1d4d4f2e57e1769b14fc84985d1e6f53410c49aef41c9cf4fde94f938adefe57",
77
"material-icon": "442b39fb22d2c7a74efb23ca098429b471501ce21df8662327bbf9871fe0bcb0",
8-
"notched-outline": "3b132ebd457668970d16356de51d14f310497ba2ff6868ddb3e8637274b2fb35",
9-
"select": "cef7604aff1573f4dfab18395598512a99fc9cd6c1cda7c2e2afd125809473d3",
8+
"notched-outline": "7770dd381c27608a1f43b6f83da92507fe53963f5e4409bd73184b86275538fe",
9+
"select": "ed9c021c8347f18e6ece48d55a8a3b30bb2380ec94276b002e9c064e7674e1c8",
1010
"tab": "0e53fa0ca9b2de4ff7941169a9b6a929a83b18e517c18404adeb40f7e644a2f1",
1111
"tab-indicator": "7ce7ce8fd50301c67d7ebfb0ba953208260ce2881bee0c7e640c46bf60dc90b6",
1212
"tab-scroller": "468866dd0c222b36b55485ab44a5760133a4ddfb2a6cf81e6ae4672d7e02a447",
13-
"text-field": "d3582f0159959da922d0666ab6357b6641bf529b1c6613267f753625d5464ec3",
14-
"text-field/helper-text": "dd523d5b6381a14be40f9c4994889ca908d317f7072b85b68be0c91b8b664b97",
13+
"text-field": "3467c006063732dbc46fad4dbf3ea806b97772be3c13f798bc74475c4ec63b21",
14+
"text-field/helper-text": "59604d0f39e0846fc97aae7573d317dded215282a677e4641c5e33426e3a2a1e",
1515
"text-field/icon": "c34dae5444deec222533b3f43448c0393b0c8543a5af4e50cc12d71611f366a7",
1616
"top-app-bar/fixed": "90534d59d40f8c050aae022e94b0afa022a00d1e00c19e3f92dcc1908efcd831",
1717
"top-app-bar/prominent": "34d03c5809067cc06a67dce1e03d3e1edaf306360479ac1955299d3eeffc6113",

test/screenshot/text-field/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ class TestField extends React.Component {
3131
const icon = <MaterialIcon icon='favorite' />;
3232
const variants = [
3333
{},
34-
{box: true},
3534
{outlined: true},
3635
{fullWidth: true},
3736
];

test/unit/text-field/index.test.js

-6
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,6 @@ test('classNames get leadingIcon class when prop.leadingIcon is passed an icon e
5353
assert.equal(textField.length, 1);
5454
});
5555

56-
test('classNames get box class when prop.box is true', () => {
57-
const wrapper = mount(<TextField label='my label' box><Input /></TextField>);
58-
const textField = wrapper.find('.mdc-text-field--box');
59-
assert.equal(textField.length, 1);
60-
});
61-
6256
test('classNames get dense class when prop.dense is true', () => {
6357
const wrapper = mount(<TextField label='my label' dense><Input /></TextField>);
6458
const textField = wrapper.find('.mdc-text-field--dense');

0 commit comments

Comments
 (0)