Skip to content

Commit

Permalink
Bump @material-ui/pickers to 3.2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jan 24, 2020
1 parent 4c69933 commit ef1e12a
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 50 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
/* files are emmitted by babel */
"noEmit": true,
"noUnusedLocals": true,
"types": ["react"]
"types": ["react"],
"noErrorTruncation": false
}
}
39 changes: 0 additions & 39 deletions patches/@material-ui+pickers+3.2.5.patch

This file was deleted.

48 changes: 48 additions & 0 deletions patches/@material-ui+pickers+3.2.9.patch
Original file line number Diff line number Diff line change
@@ -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<TextFieldProps, 'variant' | 'onError' | 'onChange' | 'value'> {
+export interface KeyboardDateInputProps extends ExtendMui<BaseTextFieldProps, 'onError' | 'value' | 'variant'> {
format: string;
onChange: (value: string | null) => void;
openPicker: () => void;
@@ -11,6 +11,8 @@ export interface KeyboardDateInputProps extends ExtendMui<TextFieldProps, 'varia
inputValue: string;
inputProps?: TextFieldProps['inputProps'];
InputProps?: TextFieldProps['InputProps'];
+ onBlur?: TextFieldProps['onBlur'];
+ onFocus?: TextFieldProps['onFocus'];
/** Override input component */
TextFieldComponent?: React.ComponentType<TextFieldProps>;
/** 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<TextFieldProps, 'variant' | 'onError' | 'onChange' | 'value'> {
+export interface PureDateInputProps extends ExtendMui<BaseTextFieldProps, 'onError' | 'value' | 'variant'> {
/** Pass material-ui text field variant down, bypass internal variant prop */
inputVariant?: TextFieldProps['variant'];
/** Override input component */
TextFieldComponent?: React.ComponentType<TextFieldProps>;
InputProps?: TextFieldProps['InputProps'];
inputProps?: TextFieldProps['inputProps'];
+ onBlur?: TextFieldProps['onBlur'];
+ onFocus?: TextFieldProps['onFocus'];
inputValue: string;
validationError?: React.ReactNode;
openPicker: () => void;
Loading

0 comments on commit ef1e12a

Please sign in to comment.