Skip to content

Commit

Permalink
feat: upgrade material-ui to 4.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
vedrani committed Feb 10, 2020
1 parent 8f43895 commit 2ddc5b2
Show file tree
Hide file tree
Showing 13 changed files with 137 additions and 61 deletions.
2 changes: 1 addition & 1 deletion docs/contribution/css-naming.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ To maintain consistency within `Picasso` repository we try to follow some conven
```jsx
import React from 'react'
import cx from 'classnames'
import { capitalize } from '@material-ui/core/utils/helpers'
import capitalize from '@material-ui/core/utils/capitalize'

import styles from './styles'

Expand Down
4 changes: 2 additions & 2 deletions packages/picasso-lab/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"react-dom": "^16.12.0"
},
"dependencies": {
"@material-ui/core": "4.5.0",
"@material-ui/icons": "4.5.1",
"@material-ui/core": "4.9.2",
"@material-ui/icons": "4.9.1",
"classnames": "^2.2.6",
"date-fns": "^2.3.0",
"simple-react-calendar": "^1.9.2"
Expand Down
4 changes: 2 additions & 2 deletions packages/picasso/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"react-dom": "^16.12.0"
},
"dependencies": {
"@material-ui/core": "4.5.0",
"@material-ui/icons": "4.5.1",
"@material-ui/core": "4.9.2",
"@material-ui/icons": "4.9.1",
"@toptal/picasso-shared": "^1.3.0",
"classnames": "^2.2.6",
"notistack": "^0.9.7",
Expand Down
2 changes: 1 addition & 1 deletion packages/picasso/src/Autocomplete/Autocomplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import React, {
useRef
} from 'react'
import { withStyles } from '@material-ui/core/styles'
import { capitalize } from '@material-ui/core/utils/helpers'
import capitalize from '@material-ui/core/utils/capitalize'
import cx from 'classnames'
import { StandardProps } from '@toptal/picasso-shared'

Expand Down
2 changes: 1 addition & 1 deletion packages/picasso/src/Container/styles.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { capitalize } from '@material-ui/core/utils/helpers'
import capitalize from '@material-ui/core/utils/capitalize'
import { Theme, createStyles } from '@material-ui/core/styles'
import { Color } from '@material-ui/core'
import { SimplePaletteColorOptions } from '@material-ui/core/styles/createPalette'
Expand Down
2 changes: 1 addition & 1 deletion packages/picasso/src/InputLabel/InputLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type VariantType = 'standard' | 'outlined' | 'filled'

export interface Props
extends StandardProps,
LabelHTMLAttributes<HTMLLabelElement> {
Omit<LabelHTMLAttributes<HTMLLabelElement>, 'color'> {
variant?: VariantType
htmlFor?: string
/** Label content */
Expand Down
2 changes: 1 addition & 1 deletion packages/picasso/src/Loader/Loader.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { ReactNode, forwardRef, HTMLAttributes } from 'react'
import { withStyles } from '@material-ui/core/styles'
import { capitalize } from '@material-ui/core/utils/helpers'
import capitalize from '@material-ui/core/utils/capitalize'
import cx from 'classnames'
import { StandardProps, SizeType } from '@toptal/picasso-shared'

Expand Down
2 changes: 1 addition & 1 deletion packages/picasso/src/MenuItem/MenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import React, {
} from 'react'
import cx from 'classnames'
import { withStyles } from '@material-ui/core/styles'
import { capitalize } from '@material-ui/core/utils/helpers'
import capitalize from '@material-ui/core/utils/capitalize'
import MUIMenuItem from '@material-ui/core/MenuItem'
import {
StandardProps,
Expand Down
2 changes: 1 addition & 1 deletion packages/picasso/src/Notification/Notification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import React, {
import { withStyles } from '@material-ui/core/styles'
import SnackbarContent from '@material-ui/core/SnackbarContent'
import cx from 'classnames'
import { capitalize } from '@material-ui/core/utils/helpers'
import capitalize from '@material-ui/core/utils/capitalize'
import {
StandardProps,
PicassoComponentWithRef,
Expand Down
4 changes: 2 additions & 2 deletions packages/picasso/src/OutlinedInput/OutlinedInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import cx from 'classnames'
import { withStyles } from '@material-ui/core/styles'
import MUIOutlinedInput from '@material-ui/core/OutlinedInput'
import { InputBaseComponentProps } from '@material-ui/core/InputBase'
import { capitalize } from '@material-ui/core/utils/helpers'
import capitalize from '@material-ui/core/utils/capitalize'
import { StandardProps, SizeType, Classes } from '@toptal/picasso-shared'

import InputAdornment from '../InputAdornment'
Expand All @@ -29,7 +29,7 @@ export interface Props
extends StandardProps,
Omit<
InputHTMLAttributes<HTMLInputElement>,
'value' | 'defaultValue' | 'size'
'value' | 'defaultValue' | 'size' | 'color'
> {
/** Width of the component */
width?: 'full' | 'shrink' | 'auto'
Expand Down
4 changes: 2 additions & 2 deletions packages/picasso/src/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import React, {
import cx from 'classnames'
import NativeSelect from '@material-ui/core/NativeSelect'
import { withStyles } from '@material-ui/core/styles'
import { capitalize } from '@material-ui/core/utils/helpers'
import capitalize from '@material-ui/core/utils/capitalize'
import { StandardProps, SizeType } from '@toptal/picasso-shared'

import OutlinedInput from '../OutlinedInput'
Expand All @@ -37,7 +37,7 @@ const getOptionText = (option: Option | null) =>

export interface Props
extends StandardProps,
Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'size'> {
Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'size' | 'color'> {
/** If true, the 'Select' will be disabled */
disabled?: boolean
/** Indicate whether `Select` is in error state */
Expand Down
2 changes: 1 addition & 1 deletion packages/picasso/src/Typography/Typography.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { forwardRef, ReactNode, HTMLAttributes } from 'react'
import { withStyles } from '@material-ui/core/styles'
import { ThemeStyle as MUIVariant } from '@material-ui/core/styles/createTypography'
import { Variant as MUIVariant } from '@material-ui/core/styles/createTypography'
import { PropTypes } from '@material-ui/core'
import MUITypography from '@material-ui/core/Typography'
import cx from 'classnames'
Expand Down
Loading

0 comments on commit 2ddc5b2

Please sign in to comment.