Skip to content

Commit

Permalink
IOS detection in Popover
Browse files Browse the repository at this point in the history
detect IOS devices in Popover component to fix popover positioning
  • Loading branch information
w01fgang committed Nov 27, 2016
1 parent d88a6ad commit 1838b34
Show file tree
Hide file tree
Showing 333 changed files with 5,107 additions and 3,425 deletions.
8 changes: 7 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"presets": ["es2015", "stage-1", "react"],
"presets": ["./tools/material-ui-babel-preset-es2015", "stage-1", "react"],
"plugins": [
["transform-replace-object-assign", "simple-assign"],
"transform-dev-warning"
Expand All @@ -15,6 +15,12 @@
"transform-react-constant-elements",
"transform-react-inline-elements"
]
},
"release": {
"plugins": [
"transform-runtime",
["transform-react-remove-prop-types", {"mode": "wrap"}]
]
}
}
}
54 changes: 33 additions & 21 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ module.exports = {
'material-ui',
],
rules: {
// Errors
'array-bracket-spacing': ['error', 'never'],
'arrow-spacing': 'error',
'arrow-parens': 'error',
Expand Down Expand Up @@ -79,61 +78,74 @@ module.exports = {
'space-unary-ops': ['error', { words: true, nonwords: false }],
'spaced-comment': 'error',
'yoda': 'error',

// Disabled
'strict': 'off',
'no-case-declarations': 'off',

// Babel
'babel/object-curly-spacing': ['error', 'never'],

// React
'babel/generator-star-spacing': 'error',
'babel/array-bracket-spacing': 'error',
'babel/arrow-parens': 'error',
'babel/no-await-in-loop': 'error',
'babel/func-params-comma-dangle': 'error',
'babel/flow-object-type': 'error',
'react/display-name': 'error',
'react/jsx-boolean-value': ['error', 'always'],
'react/jsx-closing-bracket-location': 'error',
'react/jsx-curly-spacing': 'error',
'react/jsx-equals-spacing': 'error',
'react/jsx-filename-extension': ['error', {extensions: ['.js']}],
'react/jsx-first-prop-new-line': ['error', 'multiline'],
'react/jsx-handler-names': 'error',
'react/jsx-indent': ['error', 2],
'react/jsx-indent-props': ['error', 2],
'react/jsx-max-props-per-line': ['error', {maximum: 3}],
'react/jsx-no-comment-textnodes': 'error',
'react/jsx-no-duplicate-props': 'error',
'react/jsx-no-undef': 'error',
'react/jsx-pascal-case': 'error',
'react/jsx-space-before-closing': 'error',
'react/jsx-uses-react': 'error',
'react/jsx-uses-vars': 'error',
'react/jsx-wrap-multilines': 'error',
'react/no-danger': 'error',
'react/no-deprecated': 'error',
'react/no-did-mount-set-state': 'error',
'react/no-did-update-set-state': 'error',
'react/no-direct-mutation-state': 'error',
'react/no-multi-comp': 'off', // Wishlist, one day
'react/no-unknown-property': 'error',
'react/no-render-return-value': 'error',
'react/no-is-mounted': 'error',
'react/no-unknown-property': 'error',
'react/prefer-arrow-callback': 'off', // Wishlist, one day
'react/prefer-es6-class': 'error',
'react/prop-types': 'error',
'react/react-in-jsx-scope': 'error',
'react/require-extension': 'error',
'react/require-render-return': 'error',
'react/self-closing-comp': 'error',
'react/sort-comp': 'error',
'react/sort-prop-types': 'error',
'react/wrap-multilines': 'error',
'react/jsx-indent': ['error', 2],

// React Disabled
'react/jsx-no-bind': 'off',
'react/jsx-no-literals': 'off',
'react/jsx-sort-props': 'off',
'react/no-set-state': 'off',

// Material-UI
'material-ui/docgen-ignore-before-comment': 'error',

'mocha/handle-done-callback': 'error',
'mocha/no-exclusive-tests': 'error',
'mocha/no-global-tests': 'error',
'mocha/no-pending-tests': 'error',
'mocha/no-skipped-tests': 'error',

'react/no-string-refs': 'warn', // Wishlist, one day.

'strict': 'off',
'no-case-declarations': 'off',
'react/jsx-key': 'off',
'react/jsx-no-bind': 'off',
'react/jsx-no-literals': 'off',
'react/jsx-no-target-blank': 'off',
'react/jsx-sort-props': 'off',
'react/no-set-state': 'off',
'react/forbid-prop-types': 'off',
'react/prefer-stateless-function': 'off',
'react/require-optimization': 'off',
'mocha/no-synchronous-tests': 'off',
'mocha/valid-suite-description': 'off',
'mocha/valid-test-description': 'off',
'babel/object-shorthand': 'off',
'babel/new-cap': 'off',
},
};
26 changes: 14 additions & 12 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
### Problem description

### Steps to reproduce

### Versions

- Material-UI:
- React:
- Browser:

<!-- Have a QUESTION? Please ask in [StackOverflow or gitter](http://tr.im/77pVj before opening an issue.
If you are having an issue with click events, please re-read the [README](http://tr.im/410Fg) (you did read the README, right? :-) ).
If you think you have found a _new_ issue that hasn't already been reported or fixed in HEAD, please complete the template above.
If you think you have found a _new_ issue that hasn't already been reported or fixed in HEAD, please complete the template below.
For feature requests, please delete the template above and use this one instead:
For feature requests, please delete the template below and use this one instead:
### Description
### Images & references
-->

### Problem description

### Link to minimally-working code that reproduces the issue

<!-- You may provide a repository or use our template-ready webpackbin http://www.webpackbin.com/4kSRu0OCb-->

### Versions

- Material-UI:
- React:
- Browser:
8 changes: 8 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[submodule "examples/webpack-example"]
path = examples/webpack-example
url = https://github.com/callemall/material-ui-webpack-example.git
branch = master
[submodule "examples/browserify-gulp-example"]
path = examples/browserify-gulp-example
url = https://github.com/callemall/material-ui-browserify-gulp-example.git
branch = master
Loading

0 comments on commit 1838b34

Please sign in to comment.