Commit Graph

88 Commits

Author SHA1 Message Date
Ferdy Budhidharma
ffc8351127 [prop-types] use conditional types for better prop type inference (#27378)
* feat(prop-types): use conditional types for better prop type inference

* fix(tests): fix publish tests

* fix(prop-types): add custom prop validator, and switch requireables

* fix(test): revert ReactFragment change

* fix(prop-types): namespace imports from react like a good boy

* CR changes

* actually remove param from validator

* remove anyvalidationmap

* everyday i'm test...ering

* SEMICOLONS WHY

* retain null in undefaultize
2018-07-21 13:41:15 +01:00
Jonathan Skeate
fc1bfd0f9e [material-ui] Add placeholder, title to TextFieldProps (#27082) 2018-07-15 12:44:37 -07:00
Martin Hochel
98f3e2fb2f fix: apply new state/props type safety constraints on all dependand packages 2018-06-26 11:06:37 +02:00
Tim de Koning
5198e9acdc Updated support for <List> (Thanks @samwalshnz) 2018-06-21 10:04:49 +02:00
Tim de Koning
9208b5ad27 Add support for <List> 2018-06-07 17:55:57 +02:00
kylegong
08e6b3d918 Fix version comment in material-ui, should be 0.20 (#25344)
* Fix version comment in material-ui, should be v0.20.0

* Conform to dslint: use version 0.20
2018-05-07 13:52:06 -07:00
Sam Walsh
d29b31e5db @types/material-ui -ToggleProps.label change string to React.ReactNode (#25241)
* @types/material-ui - Change `ToggleProps` `label` type to `React.ReactNode` instead of `string`

* Amend samwalshnz github username to authors list for material-ui
2018-04-24 16:13:27 -07:00
Bowden Kelly
71ab18345e
Merge pull request #23859 from donaldtf/@types/material-ui/add-delete-icon-style-to-chip
@types/material-ui: add deleteIconStyle prop to ChipProps interface
2018-03-01 11:29:45 -08:00
Daniel Rosenwasser
48561aeea5
Merge pull request #23531 from skywhale/fixdialog
Add missing properties to material-ui/DialogProps.
2018-02-24 00:31:32 -08:00
Ryo Kawaguchi
dfde552d04 Re-enble dt-header lint rule. 2018-02-24 17:06:08 +09:00
donaldFord
3c1bb15cb0 added deleteIconStyle prop to ChipProps 2018-02-22 11:29:52 -07:00
Andy Hanson
45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
Daniel Rosenwasser
8f42ac36e7
Merge pull request #23387 from mtgto/material-ui-iconmenu-children
[material-ui] Delete IconMenu.children type definition.
2018-02-13 13:08:56 -08:00
Forbes Lindesay
8f8f6c4392 [react] Use HTMLDialogElement for the dialog node (#23053)
* [react] Use HTMLDialogElement for the dialog node

* Actually add the `open` property

* This update requires typescript 2.6

* Update dependents of react to also require typescript 2.6
2018-02-12 12:55:52 +00:00
Ryo Kawaguchi
5d912ee085 Increment version. 2018-02-09 22:58:42 +09:00
Ryo Kawaguchi
424c62b965 Add missing properties to material-ui/DialogProps. 2018-02-09 21:22:29 +09:00
Andy
bef4d2b27d
Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
mtgto
67f47f95bd [material-ui] Delete IconMenu.children 2018-02-03 11:47:47 +09:00
mtgto
1350967a06 material-ui: Fix IconMenu#children (#22910) 2018-01-23 11:40:52 -08:00
daniel tea
6127769a30 material-ui: Add dropDownMenuProps to SelectField (#22857) 2018-01-17 10:04:41 -08:00
mtgto
a2f0dc2938 material-ui: Fix IconMenu properties. (#22663)
* material-ui: Fix IconMenu properties.

* material-ui: Bug Fix IconMenu#onClick argument

* material-ui: Bug Fix IconMenu#children typedef.
2018-01-12 10:02:26 -08:00
Michael Ledin
6cebbd5623 material-ui 0.20.0: replace TouchTap with Click (#22726) 2018-01-09 11:31:47 -08:00
Maarten Mulders
8ebd2dfd05 Implement suggestion from @openscript 2017-12-29 20:04:24 +01:00
Maarten Mulders
82acd03b68 Replace on*IconButtonTouchTap with on*IconButtonClick 2017-12-21 20:34:08 +01:00
devuxer
59141deed1
Updated material-ui version in header 2017-12-18 17:41:57 -08:00
devuxer
ad6ae77e6d
Replaced TouchTap w/ Click in Snackbar 2017-12-08 09:13:52 -08:00
devuxer
e9538b2994
Replaced onActionTouchTap w/ onActionClick
Snackbar property `onActionTouchTap` was replaced with `onActionClick` in [release 0.20.0](https://github.com/mui-org/material-ui/releases/tag/v0.20.0).

This relates to [pull request 9058](https://github.com/mui-org/material-ui/pull/9058) and specifically [this commit](bc97082dd3).
2017-12-06 22:27:40 -08:00
Raul Tomescu
611b5939d1 Added name to SelectFieldProps 2017-11-28 11:40:06 +01:00
Igor Oleinikov
ecabf5526f
Merge pull request #20987 from pelotom/patch-10
[react] Make component constructor props non-optional
2017-11-08 13:58:44 -08:00
Tim Kang
ec90ab0cab material-ui: fix Chip missing containerElement prop 2017-11-06 17:18:00 -08:00
Tom Crockett
73216e2ef2 Propagate non-optional props change to dependent libraries 2017-10-24 22:04:50 -07:00
John Gozde
bbf3e9cb0b [react]: Remove deprecated+removed APIs (#20409)
* create-react-class: add definitions

* react-dom-factories: add definitions

* create-react-class: add tests, fix errors

* react-dom-factories: add tests, fix lint

* react: remove previously deprecated APIs

* Remove deprecated usages in other definitions

* redux-form: disable strictFunctionTypes

Changes to react typings revealed errors in redux-form that are present
in 'master'. This needs to be handled separately.

* Update create-react-class, react-dom-factories author

* Avoid importing create-react-class where possible

* Move top-level createReactClass tests to create-react-class
2017-10-16 15:22:04 -07:00
Weronika Terpilowska
20d9360ff1 Material-ui: fix Stepper import/export statements (#20457) 2017-10-10 12:55:33 -07:00
Andy
947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Ed Staub
146a036764 Add onClick to Avatar, Chip (#20079)
* Add onClick to Avatar

This superficially addresses https://github.com/DefinitelyTyped/DefinitelyTyped/issues/19988, which should probably be closed when this is pulled, for lack of interest.

* Added onClick to ChipProps
2017-09-27 11:46:24 -07:00
Andy
8725002bd4 Add tslint disables for "no-declare-current-package" (#20044) 2017-09-26 11:12:15 -07:00
Jonas Schürmann
08d64685bc material-ui: Tighten type definition
If Table.onRowSelection returns a string, it should always be 'all'
2017-09-13 11:29:11 +02:00
Andy Hanson
17895ba275 material-ui: Move scripts from scripts/material-ui to material-ui/scripts 2017-09-05 09:30:20 -07:00
Andy
cb2dbfbb50 Add ignores for new lint rules (#19504) 2017-09-01 07:47:52 -07:00
Andy
5d6c651a1a Apply stricter lint rules (#19063) 2017-08-17 14:53:41 -07:00
Daisuke Mino
193d9dc3bf [material-ui] Update svg-icons (#18931)
* [material-ui] Update svg-icons

* Update mark for code generation

* Add a code generation script for material-ui

* Remove .js in ./scripts
2017-08-17 07:58:09 -07:00
Tej Qu Nair
e21abb3dab Update index.d.ts (#18893)
Fixed a typo in TextFieldProperties
2017-08-14 11:16:11 -07:00
Daisuke Mino
2b74a91e5f Export component props (#18856)
This change makes it possible to define interfaces that inherit those
props.
2017-08-11 10:15:37 -07:00
Dan
1c7db8183d [material-ui] Added missing prop definitions for <DropDownMenu /> 2017-08-08 10:14:42 +10:00
Oscar Franco
8a10ec0251 Add maxLength type for material ui text field (#18345)
* Add maxLength type for material ui text field

* Add minlength property and change maxLength to lowercase only
2017-08-02 13:18:24 -07:00
Ed Staub
9334216df7 material-ui: Add missing DropDownMenuProps (#18541)
* material-ui: Add missing DropDownMenuProps

selectedMenuItemStyle, selectionRenderer, iconButton

* Material-ui: DropDownMenuProps: fix missing colon

* Nit: use function format rather than arrow
2017-08-02 13:10:45 -07:00
Dan
03c50b2890 Added missing inputStyle prop to <Checkbox /> (#18438) 2017-07-27 08:02:31 -07:00
Nick Graham
910023509a [material-ui] Adds missing subtitleStyleProps to GridTile (#18271)
* Adds props to GridTile

* Removes the children prop that I added
2017-07-24 10:33:52 -07:00
Nick Graham
4cfe41dc6b [material-ui] Adds linting (#18189)
* Adds props to GridTile

* Adds ts line

* Fixes lint array error

Array type using 'T[]' is forbidden for non-simple types. Use 'Array<T>' instead.

* Fixes lint consecutive blank line error

* Fixes whitespace and semicolon lint errors

* Fixes lint whitespace error

Don't use blank line after '{'

* Fixes lint type error

 Use an interface instead of a type literal

* Fixes lint interface error

 An empty interface is equivalent to `{}`.

* Lint: Replaces var with let

Do not use 'var'

* Lint: Prefer method signature

* Lint: Fixes array type

Array type using 'T[]' is forbidden for non-simple types. Use 'Array<T>'

* Lint: Fixes boolean type

 Don't use 'Boolean' as a type. Avoid using the `Boolean` type. Did you mean `boolean`?

* Lint: Ignore unneccesary exports

* Lint : fix errors

* Lint: adds missing semi-colons

* Lint: Removes spaces

* Lint: Ignore no empty interfaces (We could just delete them)

* Lint: Ignore "dt-header" (could remove patch number)

* Lint: Ignore ban-types so we can use Function

* Remove new props that I added

* Fixes var -> let over replacement
2017-07-22 12:16:13 -07:00
Pan
2b46b16e14 Add rowSpan to table columns
Like colSpan, passing rowSpan to table header and row column as they are useful for td/th as well.
2017-07-14 17:33:36 -04:00