diff --git a/docs/package.json b/docs/package.json index caae11d3c9e2a2..1870f289c680fc 100644 --- a/docs/package.json +++ b/docs/package.json @@ -28,7 +28,7 @@ "@material-ui/docs": "^4.0.0-beta.0", "@material-ui/icons": "^4.2.1", "@material-ui/lab": "^4.0.0-alpha.18", - "@material-ui/pickers": "^3.2.5", + "@material-ui/pickers": "^3.2.9yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy", "@material-ui/react-transition-group": "^4.2.0", "@material-ui/styles": "^4.1.2", "@material-ui/system": "^4.3.0", diff --git a/docs/tsconfig.json b/docs/tsconfig.json index 5ed0ec3d68d3f8..a6e4be191fbeca 100644 --- a/docs/tsconfig.json +++ b/docs/tsconfig.json @@ -6,6 +6,7 @@ /* files are emmitted by babel */ "noEmit": true, "noUnusedLocals": true, - "types": ["react"] + "types": ["react"], + "noErrorTruncation": false } } diff --git a/patches/@material-ui+pickers+3.2.5.patch b/patches/@material-ui+pickers+3.2.5.patch deleted file mode 100644 index cf0651ad1cc170..00000000000000 --- a/patches/@material-ui+pickers+3.2.5.patch +++ /dev/null @@ -1,39 +0,0 @@ -diff --git a/node_modules/@material-ui/pickers/_helpers/text-field-helper.d.ts b/node_modules/@material-ui/pickers/_helpers/text-field-helper.d.ts -index 8b21990..dc3c9ec 100644 ---- a/node_modules/@material-ui/pickers/_helpers/text-field-helper.d.ts -+++ b/node_modules/@material-ui/pickers/_helpers/text-field-helper.d.ts -@@ -22,7 +22,7 @@ export interface DateValidationProps extends BaseValidationProps { - */ - maxDateMessage?: React.ReactNode; - } --export declare const validate: (value: ParsableDate, utils: IUtils, { maxDate, minDate, disablePast, disableFuture, maxDateMessage, minDateMessage, invalidDateMessage, strictCompareDates, }: Pick) => import("react").ReactNode; -+export declare const validate: (value: ParsableDate, utils: IUtils, { maxDate, minDate, disablePast, disableFuture, maxDateMessage, minDateMessage, invalidDateMessage, strictCompareDates, }: Pick) => import("react").ReactNode; - export declare function pick12hOr24hFormat(userFormat: string | undefined, ampm: boolean | undefined, formats: { - '12h': string; - '24h': string; -diff --git a/node_modules/@material-ui/pickers/_shared/KeyboardDateInput.d.ts b/node_modules/@material-ui/pickers/_shared/KeyboardDateInput.d.ts -index 9c36056..454cf03 100644 ---- a/node_modules/@material-ui/pickers/_shared/KeyboardDateInput.d.ts -+++ b/node_modules/@material-ui/pickers/_shared/KeyboardDateInput.d.ts -@@ -3,7 +3,7 @@ import { IconButtonProps } from '@material-ui/core/IconButton'; - import { InputAdornmentProps } from '@material-ui/core/InputAdornment'; - import { BaseTextFieldProps, TextFieldProps } from '@material-ui/core/TextField'; - import { ExtendMui } from '../typings/extendMui'; --export interface KeyboardDateInputProps extends ExtendMui { -+export interface KeyboardDateInputProps extends ExtendMui { - format: string; - onChange: (value: string | null) => void; - openPicker: () => void; -diff --git a/node_modules/@material-ui/pickers/_shared/PureDateInput.d.ts b/node_modules/@material-ui/pickers/_shared/PureDateInput.d.ts -index 88ceb51..7b6ff09 100644 ---- a/node_modules/@material-ui/pickers/_shared/PureDateInput.d.ts -+++ b/node_modules/@material-ui/pickers/_shared/PureDateInput.d.ts -@@ -2,7 +2,7 @@ import * as React from 'react'; - import { BaseTextFieldProps, TextFieldProps } from '@material-ui/core/TextField'; - import { ExtendMui } from '../typings/extendMui'; - export declare type NotOverridableProps = 'openPicker' | 'inputValue' | 'onChange' | 'format' | 'validationError' | 'format' | 'forwardedRef'; --export interface PureDateInputProps extends ExtendMui { -+export interface PureDateInputProps extends ExtendMui { - /** Pass material-ui text field variant down, bypass internal variant prop */ - inputVariant?: TextFieldProps['variant']; - /** Override input component */ diff --git a/patches/@material-ui+pickers+3.2.9.patch b/patches/@material-ui+pickers+3.2.9.patch new file mode 100644 index 00000000000000..8359b3e02ed13f --- /dev/null +++ b/patches/@material-ui+pickers+3.2.9.patch @@ -0,0 +1,48 @@ +diff --git a/node_modules/@material-ui/pickers/_shared/KeyboardDateInput.d.ts b/node_modules/@material-ui/pickers/_shared/KeyboardDateInput.d.ts +index 4979f6f..471c77f 100644 +--- a/node_modules/@material-ui/pickers/_shared/KeyboardDateInput.d.ts ++++ b/node_modules/@material-ui/pickers/_shared/KeyboardDateInput.d.ts +@@ -1,9 +1,9 @@ + import * as React from 'react'; +-import { TextFieldProps } from '@material-ui/core/TextField'; ++import { BaseTextFieldProps, TextFieldProps } from '@material-ui/core/TextField'; + import { IconButtonProps } from '@material-ui/core/IconButton'; + import { InputAdornmentProps } from '@material-ui/core/InputAdornment'; + import { ExtendMui } from '../typings/extendMui'; +-export interface KeyboardDateInputProps extends ExtendMui { ++export interface KeyboardDateInputProps extends ExtendMui { + format: string; + onChange: (value: string | null) => void; + openPicker: () => void; +@@ -11,6 +11,8 @@ export interface KeyboardDateInputProps extends ExtendMui; + /** Icon displaying for open picker button */ +diff --git a/node_modules/@material-ui/pickers/_shared/PureDateInput.d.ts b/node_modules/@material-ui/pickers/_shared/PureDateInput.d.ts +index 36dabf5..a61d376 100644 +--- a/node_modules/@material-ui/pickers/_shared/PureDateInput.d.ts ++++ b/node_modules/@material-ui/pickers/_shared/PureDateInput.d.ts +@@ -1,14 +1,16 @@ + import * as React from 'react'; +-import { TextFieldProps } from '@material-ui/core/TextField'; ++import { BaseTextFieldProps, TextFieldProps } from '@material-ui/core/TextField'; + import { ExtendMui } from '../typings/extendMui'; + export declare type NotOverridableProps = 'openPicker' | 'inputValue' | 'onChange' | 'format' | 'validationError' | 'format' | 'forwardedRef'; +-export interface PureDateInputProps extends ExtendMui { ++export interface PureDateInputProps extends ExtendMui { + /** Pass material-ui text field variant down, bypass internal variant prop */ + inputVariant?: TextFieldProps['variant']; + /** Override input component */ + TextFieldComponent?: React.ComponentType; + InputProps?: TextFieldProps['InputProps']; + inputProps?: TextFieldProps['inputProps']; ++ onBlur?: TextFieldProps['onBlur']; ++ onFocus?: TextFieldProps['onFocus']; + inputValue: string; + validationError?: React.ReactNode; + openPicker: () => void; diff --git a/yarn.lock b/yarn.lock index b19bd6f8d5e925..513c95dea1dc35 100644 --- a/yarn.lock +++ b/yarn.lock @@ -838,7 +838,7 @@ core-js "^2.6.5" regenerator-runtime "^0.13.2" -"@babel/runtime@7.0.0", "@babel/runtime@7.1.2", "@babel/runtime@^7.0.0", "@babel/runtime@^7.1.2", "@babel/runtime@^7.1.5", "@babel/runtime@^7.2.0", "@babel/runtime@^7.3.1", "@babel/runtime@^7.4.0", "@babel/runtime@^7.4.2", "@babel/runtime@^7.4.4", "@babel/runtime@^7.4.5", "@babel/runtime@^7.5.5", "@babel/runtime@^7.6.2", "@babel/runtime@^7.6.3", "@babel/runtime@^7.7.4", "@babel/runtime@^7.7.6": +"@babel/runtime@7.0.0", "@babel/runtime@7.1.2", "@babel/runtime@^7.0.0", "@babel/runtime@^7.1.2", "@babel/runtime@^7.1.5", "@babel/runtime@^7.2.0", "@babel/runtime@^7.3.1", "@babel/runtime@^7.4.0", "@babel/runtime@^7.4.2", "@babel/runtime@^7.4.4", "@babel/runtime@^7.4.5", "@babel/runtime@^7.5.5", "@babel/runtime@^7.6.0", "@babel/runtime@^7.6.2", "@babel/runtime@^7.6.3", "@babel/runtime@^7.7.4", "@babel/runtime@^7.7.6": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.8.3.tgz#0811944f73a6c926bb2ad35e918dcc1bfab279f1" integrity sha512-fVHx1rzEmwB130VTkLnxR+HmxcTjGzH12LYQcFFoBwakMd3aOMD4OsRN7tGG/UOYE2ektgFrS8uACAoRk1CY0w== @@ -878,7 +878,7 @@ lodash "^4.17.13" to-fast-properties "^2.0.0" -"@date-io/core@^1.3.13", "@date-io/core@^1.3.9": +"@date-io/core@1.x", "@date-io/core@^1.3.13", "@date-io/core@^1.3.9": version "1.3.13" resolved "https://registry.yarnpkg.com/@date-io/core/-/core-1.3.13.tgz#90c71da493f20204b7a972929cc5c482d078b3fa" integrity sha512-AlEKV7TxjeK+jxWVKcCFrfYAk8spX9aCyiToFIiLPtfQbsjmRGLIhb5VZgptQcJdHtLXo7+m0DuurwFgUToQuA== @@ -1785,17 +1785,17 @@ npmlog "^4.1.2" write-file-atomic "^2.3.0" -"@material-ui/pickers@^3.2.2", "@material-ui/pickers@^3.2.5": - version "3.2.5" - resolved "https://registry.yarnpkg.com/@material-ui/pickers/-/pickers-3.2.5.tgz#e5c9a56c8b57ceb8bca50c4fd7b7a03cb3c918e1" - integrity sha512-UV5UKslOcmcP4cB2wwOg1SFoXS6RTRRvCNkDclHtOa+Ni+gyZLEt3WcSQWH7oDx8A94gmkiZTpfweNFV7sC4sw== +"@material-ui/pickers@^3.2.2", "@material-ui/pickers@^3.2.9yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy": + version "3.2.9" + resolved "https://registry.yarnpkg.com/@material-ui/pickers/-/pickers-3.2.9.tgz#34feea26d0681264765ba41a94bf75b9f1c99ea9" + integrity sha512-OvrqmCwvroUzRrsG7VebWDr/m/6kq5USBTH54zA75WrTG1quo/xCLHRJhjBPnu6dpfmnjyhM6b1Lut18G2jwPQ== dependencies: - "@babel/runtime" "^7.2.0" + "@babel/runtime" "^7.6.0" + "@date-io/core" "1.x" "@types/styled-jsx" "^2.2.8" clsx "^1.0.2" react-transition-group "^4.0.0" rifm "^0.7.0" - tslib "^1.9.3" "@material-ui/react-transition-group@^4.2.0": version "4.2.0" @@ -14802,7 +14802,7 @@ ts-node@^8.3.0: source-map-support "^0.5.6" yn "3.1.1" -tslib@^1.8.0, tslib@^1.8.1, tslib@^1.9.0, tslib@^1.9.3: +tslib@^1.8.0, tslib@^1.8.1, tslib@^1.9.0: version "1.10.0" resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.10.0.tgz#c3c19f95973fb0a62973fb09d90d961ee43e5c8a" integrity sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==