ant-design/components
Walter Barbagallo 4077ffb58c Enhanced InputNumber props with HTMLInputElement attributes. (#10608)
* Enhanced InputNumber props with HTMLInputElement attributes.

It is possibile to use additional props supported by the inner input
element:

```
const inputEl = <InputNumber autoFocus />
```

Before this commit the type checker did not recognize the `autoFocus`
prop.

Some attributes must be omitted because they conflict with props
defined on `InputNumberProps` interface

* Renamed type

Probably they conflicts with a reserved name?
@see https://travis-ci.org/ant-design/ant-design/jobs/381668406
> components/input-number/index.tsx(9,93): error TS4022: 'extends' clause of exported interface 'InputNumberProps' has or is using private name 'OmitAttributes'.

* Replace InputNumber onKeyDown typing with the typed one.

Extending HTMLInputElement attributes the `onKeyDown` props now have a
better typing.

For example before this commit accessing to the event `key` attribute resulted
in a type error.
@see https://reactjs.org/docs/events.html#keyboard-events

* Exporting type OmitAttrs on InputNumber component.

This is an attempt to solve the ci error:
> components/input-number/index.tsx(9,93): error TS4022: 'extends' clause of exported
> interface 'InputNumberProps' has or is using private name 'OmitAttrs'.

@see https://travis-ci.org/ant-design/ant-design/jobs/381678316
2018-05-22 10:46:20 +08:00
..
__tests__ remove bundle size warning in test env (#10363) 2018-05-14 17:13:27 +08:00
_util Extend CardProps from native div element attributes 2018-04-11 19:41:54 +08:00
affix fix Affix/index.tsx while offsetTop === 0 and offsetBottom is numberic (#10566) 2018-05-18 10:18:19 +08:00
alert fix text error (#10510) 2018-05-15 11:22:29 +08:00
anchor Fix type errors 2018-04-11 12:01:28 +08:00
auto-complete chore: upgrade menu (#10305) 2018-04-29 23:01:58 +08:00
avatar scale fallback string (#10184) 2018-04-22 13:09:42 +08:00
back-top Fix test cases 2018-03-06 21:47:05 +08:00
badge Add title prop to Badge that shows when hovering it 2018-04-12 11:53:32 +08:00
breadcrumb Use exact type for Breadcrumb.Item (#10372) 2018-05-05 00:47:44 +08:00
button Improve Button and Tag types 2018-05-18 18:22:33 +08:00
calendar chore: upgrade menu (#10305) 2018-04-29 23:01:58 +08:00
card should still have padding when card which set padding to 0 is loading 2018-05-03 15:17:04 +08:00
carousel fix snapshot ci 2018-04-28 11:09:15 +08:00
cascader Remove some typescript any types of cascader 2018-05-21 20:35:14 +08:00
checkbox fix: Revert checkbox z-index 2018-05-18 15:36:54 +08:00
col export components interface (#7654) 2017-09-25 22:14:49 +08:00
collapse Fix collapse focused style 2018-05-07 17:57:49 +08:00
date-picker doc: Update DatePicker document about locale (#10598) 2018-05-21 21:51:39 +08:00
divider Added missing API documentation (#10611) 2018-05-22 10:46:01 +08:00
dropdown fix dropdown any type 2018-05-21 21:02:03 +08:00
form Improved Form component typings (#10564) 2018-05-17 23:45:13 +08:00
grid Fix Row gutter type 2018-05-17 21:47:09 +08:00
icon Remove allowSyntheticDefaultImports (#8218) 2017-11-17 14:38:54 +08:00
input Improve Input type definitions 2018-05-21 21:31:59 +08:00
input-number Enhanced InputNumber props with HTMLInputElement attributes. (#10608) 2018-05-22 10:46:20 +08:00
layout Allow to use any CSS units for layout width (#10479) 2018-05-12 02:30:33 +08:00
list Remove the side effects in render method (#10357) 2018-05-04 17:37:31 +08:00
locale-provider chore: upgrade menu (#10305) 2018-04-29 23:01:58 +08:00
mention fix: focus editor (#9548) 2018-03-06 20:59:03 +08:00
menu style: fix hightlight link color in menu item 2018-05-17 21:17:20 +08:00
message Message doc update & change variable statement (#10420) 2018-05-08 21:59:28 +08:00
modal add docs for keyboard props on modal component #8818 (#10030) 2018-04-13 12:01:51 +08:00
notification Bump 3.5.0 (#10297) 2018-05-04 18:15:28 +08:00
pagination chore: upgrade menu (#10305) 2018-04-29 23:01:58 +08:00
popconfirm Fix typo (#10250) 2018-04-25 21:59:14 +08:00
popover Add explicit types for default props 2018-04-10 10:50:59 +08:00
progress chore: upgrade menu (#10305) 2018-04-29 23:01:58 +08:00
radio Improve table types 2018-05-07 12:32:26 +08:00
rate fix: cursor style of disabled Rate should be default, close #9747 2018-03-21 10:30:25 +08:00
row export components interface (#7654) 2017-09-25 22:14:49 +08:00
select demo: fix select demo order 2018-05-21 17:07:39 +08:00
slider Fix typo in link to InputNumber component (#9994) 2018-04-11 23:18:10 +08:00
spin fix spin loading 2018-04-26 16:06:18 +08:00
steps Update index.tsx (#9126) 2018-01-26 10:38:28 +08:00
style fix clearfix (#10563) 2018-05-21 21:52:15 +08:00
switch Fix <Switch /> small margin (#9602) 2018-03-24 21:52:47 +08:00
table site: add alt to images 2018-05-21 23:42:57 +08:00
tabs chore: upgrade menu (#10305) 2018-04-29 23:01:58 +08:00
tag Improve Button and Tag types 2018-05-18 18:22:33 +08:00
time-picker Slovenian locale added (sl_SI) (#9724) 2018-03-26 11:44:27 +08:00
timeline merge feature-3.5.0 2018-04-28 11:04:10 +08:00
tooltip Fix typo (#10193) 2018-04-23 16:00:24 +08:00
transfer Fix typo (#10582) 2018-05-20 00:50:19 +08:00
tree Adjust Tree icon vertical-align, fix #10603 2018-05-21 21:24:16 +08:00
tree-select treeSelect doc (#10302) 2018-05-03 11:26:59 +08:00
upload site: add alt to images 2018-05-21 23:47:22 +08:00
version
index.tsx remove bundle size warning in test env (#10363) 2018-05-14 17:13:27 +08:00