Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Material-UI v4 #80

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mtnori
Copy link
Contributor

@mtnori mtnori commented May 25, 2019

  • Update to Material-UI v4

@Domino987
Copy link

Can this version be pushed pls? :)

@cvanem
Copy link
Collaborator

cvanem commented May 30, 2019

@techniq @mtnori
This is close to being ready. I did notice 1 JS warning on the 'with custom adornments' example. Once that is fixed (and also check all the other examples to ensure no errors), I think this is ready.

@techniq
Copy link
Owner

techniq commented May 31, 2019 via email

@Domino987
Copy link

Domino987 commented Jun 1, 2019

I think bumbping up react and material-ui looks good.

It works for me with this package.json:

{
"name": "mui-downshift",
"version": "1.4.1",
"author": "Sean Lynch techniq35@gmail.com",
"license": "MIT",
"repository": "techniq/mui-downshift",
"files": [
"dist"
],
"main": "dist/index.js",
"keywords": [
"react",
"downshift",
"material-ui"
],
"peerDependencies": {
"@material-ui/core": "^4.0.1",
"@material-ui/icons": "^4.0.1",
"react": "^16.8.6",
"react-dom": "^16.8.6"
},
"dependencies": {
"classnames": "^2.2.6",
"downshift": "^2.2.0",
"prop-types": "^15.7.2",
"react-virtualized": "^9.20.1"
},
"devDependencies": {
"@material-ui/core": "^4.0.1",
"@material-ui/icons": "^4.0.1",
"@storybook/addon-actions": "^3.4.10",
"@storybook/react": "^3.4.10",
"babel-cli": "^6.26.0",
"babel-eslint": "^8.2.6",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-react-jsx": "^6.24.1",
"babel-preset-env": "^1.6.0",
"eslint": "^5.4.0",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-babel": "^5.1.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-prettier": "^2.6.2",
"eslint-plugin-react": "^7.11.1",
"gh-pages": "^1.2.0",
"prettier": "^1.14.2",
"react": "^16.8.6",
"react-dom": "^16.8.6"
},
"scripts": {
"build": "NODE_ENV=production babel src -d dist",
"storybook": "start-storybook -p 9009 -c stories",
"build-docs": "cd stories && yarn install && cd .. && build-storybook -c stories -o docs",
"deploy-docs": "gh-pages -d docs",
"preversion": "yarn build",
"postpublish": "yarn build-docs && yarn deploy-docs"
}
}

Hope that helps!!

@cvanem
Copy link
Collaborator

cvanem commented Jun 1, 2019

@Domino987 I am still getting JS warnings on the following demo examples:

  • Basic -> with custom adornments
  • Variants -> outlined with custom adornments
  • Variants -> outlined with custom adornments and label
  • List item -> loading footer
  • Menu -> isOpen = true
  • Menu -> on Dialog
  • Menu -> on Drawer

@MaxLeiter
Copy link

Any progress on this?

@BenDiuguid
Copy link

Friendly ping :)

@cvanem
Copy link
Collaborator

cvanem commented Jul 23, 2019

If someone could submit a PR that doesn't have JS errors or warnings on the examples, we can merge this. I spent some time on this initially but hit a dead end and couldn't resolve all of the warnings. Right now I don't have a whole lot of time to spend on this.

@techniq We could merge with the warnings, but I don't think that is a good idea?

@techniq
Copy link
Owner

techniq commented Jul 24, 2019

@cvanem I wouldn't want to merge with warnings. If someone sends a PR without errors, I'll definitely merge and cut a release.

@BenDiuguid
Copy link

I created #83 to update to Material-UI to v4 and fixed all of the warnings / errors except 1.

@cvanem
Copy link
Collaborator

cvanem commented Jul 26, 2019

@BenDiuguid I took a quick look at your PR but it looks like there are still numerous JS errors. If you launch the storybook and click through each example you can see the different JS errors in the console. The examples that have errors are outlined above. Those are what need to be resolved still.

@BenDiuguid
Copy link

@cvanem Ahh I wasn't sure which JS errors / warnings you were referring to. To clarify also the storybook stories/ are the only examples right?

I may be busy this weekend, but I'll get around to this soon, and IIRC these issues are mostly related to PropTypes validation.

@techniq techniq mentioned this pull request Aug 15, 2019
@BenDiuguid
Copy link

PR #83 Is ready to be reviewed 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants