Yuki Zhang
3af410ab3f
fix: context issues for Space.Compact ( #38887 )
2 years ago
Yuki Zhang
c3e51506cc
feat: add Space.Compact ( #37652 )
* feat: add Space.Compact
* feat: update input style
* feat: add CompactItem for context memoize
* feat: add demo
* feat: update button style
* feat: update input style
* feat: 提取 getCompactClassNames 公用方法
* feat: update button style
* feat: update picker
* feat: add block prop for Space.Compact
* feat: use Space.Compact for Input#addonBefore/After
* feat: update addon
* refactor: compact
* feat: update
* feat: update
* feat: migrate styles to compact for new Input/Input.Search
* feat: organize input demo
* feat: add more button compact demo
* feat: resolve select border collapse
* feat: fix input addon select style
* feat: add input addon demo in Space
* feat: add useCompactItemContext hook
* feat: update compact-item style
* feat: rollback input#addon implements
* feat: rollback input#addon and input.search style
* feat: select border collapse
* feat: add Space.Compact demo
* feat: Space.Compact vertical for Button
* refactor: useCompactItemContext
* feat: update Button vertical demo
* feat: rtl for compact mixin
* feat: rtl for compact button
* feat: input rtl
* feat: add docs for Space.Compact
* test: add some tests for Space.Compact
* test: add tests
* feat: select style
* feat: handle select focus style
* feat: add useCompactItemContext for Picker and Cascader
* style: add compact-item style for cascader
* feat: support nested Space.Compact
* style: Input.Search in Space.Compact
* chore: clean
* feat: add useCompactItemContext for TreeSelect
* fix: lint issues
* fix: style lint
* docs: update demos for Space.Compact
* docs: update demo
* fix: add deps-lint-skip for space
* fix: add deps-lint-skip for space
* fix: handle edge case for useCompactItemContext
* test: add search test case
* chore: + bundlesize
* style: merge button compact style into one file
* style: improve style for nested compact
* fix: stylelint
* docs: update Space.Compact docs
* test: update demo snapshot
* test: update input debug test snapshot
* docs: update doccs for Space.Compact
* test: improve test cases for Compact
* docs: clean demos for Compact
* refactor: improve Space.Compact
* fix: add useCompactItemContext for Input.Search
* style: improve compact border-radius implementation
* refactor: use context to make nested compact works
* fix: input-number focused style
* refactor: remove useless style
* refactor: improve style for vertical compact
* test: update snapshot
* test: update snapshot for input
* refactor: improve compact-item-border-radius
* fix: search group in RTL
* style: improve style for button compact
* style: use after
* fix: stylelint
* chore: update snapshot
* style: improve button compact
* refactor: improve btn-icon-only style in compact
2 years ago
kiner-tang(文辉)
92a3c719dc
feat: Components under Form support custom disabled to override disabled of Form ( #37628 )
* feat: 当表单组件处于一个禁用的表单时, 该表单组件的禁用状态应该优先取决于表单组件本身的禁用状态
* Update components/checkbox/Checkbox.tsx
Co-authored-by: MadCcc <1075746765@qq.com>
* feat: reset mergedSize change
* feat: reset mergedSize change
* Update components/checkbox/Checkbox.tsx
Co-authored-by: MadCcc <1075746765@qq.com>
* feat: 优化 Checkbox 组件 disabled 逻辑判断
* Update components/switch/index.tsx
Co-authored-by: MadCcc <1075746765@qq.com>
* feat: remove upload default value
Co-authored-by: tangwenhui <tangwenhui@rd.netease.com>
Co-authored-by: MadCcc <1075746765@qq.com>
2 years ago
lijianan
7ca136230d
type: add type null ( #37421 )
* type: add type null
* fix: type fix
2 years ago
RainyLiao
7045aa7d7b
fix: repeat a css class in readOnly, which has been declared in rc-input-number ( #36120 )
Co-authored-by: afc163 <afc163@gmail.com>
2 years ago
MadCcc
1f080c299e
fix: Form.Item noStyle should not be affected by parent Form.Item ( #35849 )
* fix: Form.Item noStyle should not be affected by parent Form.Item
* test: update snapshot
* fix: status
* chore: code clean
* fix: modal and drawer
* test: fix lint
* chore: code clean
* refactor: noFormStyle
* chore: code clean
* revert: revert change in Form.Item
* chore: code clean
3 years ago
Tom Xu
1719748a29
chore: eslint add consistent-type-imports ( #35419 )
* chore: eslint add consistent-type-imports
* fix avatar
* Update Item.tsx
3 years ago
黑雨
b0a652580a
feat: Form disabled ( #35210 )
* feat: add form disabled
* feat: add form disabled
* feat: add radio disabled
* feat: update snap
* feat: add test case
3 years ago
MadCcc
7c4e12f99e
refactor: feedbackIcon provided by form ( #34712 )
* refactor: feedbackIcon migration
* test: update snapshot
3 years ago
MadCcc
0de1e66ff1
refactor: move override code in form ( #34694 )
* refactor: move override code in form
* refactor: radio and checkbox
* chore: code clean
* test: fix lint
* test: fix lint
3 years ago
MadCcc
4c666f5775
fix: clear status in input addon ( #34412 )
3 years ago
MadCcc
6a7acfbf6e
feat: inputNumber support status ( #34042 )
* feat: inputNumber support status
* test: fix test
* feat: custom status first
* refactor: getMergedStatus pass status in params
3 years ago
黑雨
ee17f7185d
feat: inputNumber controls support customize upIcon/downIcon ( #33914 )
* feat: inputNumber controls support customize upIcon/downIcon
* feat: 修改代码格式问题
* feat: 更新snapshot,修改代码开启prettier
* feat: 更新snapshot,order 属性修改
* feat: upIcon/downIcon写法调整
* feat: 更新snapshot
3 years ago
Austaras
d1f87ccc80
feat: input number support prefix ( #32600 )
3 years ago
Austaras
d86e1b5153
feat: InputNumber support addon ( #31432 )
* feat: InputNumber support addon
* docs: Update InputNumber doc
* chore: Update snapshot and fix lint
* chore: Add release version
Co-authored-by: afc163 <afc163@gmail.com>
Co-authored-by: afc163 <afc163@gmail.com>
3 years ago
Zuobin Wang
7f16838631
chore(all): delete useless Omit define ( #31661 )
3 years ago
二货机器人
bec5a08368
feat: InputNumber support stringMode ( #29373 )
* add input-number demo
* update snapshot
* update demo
* docs: Update desc
* update doc
* clean up React useLayoutEffect warning
* fix ts definition
* re-trigger
* update rc-uitl version
* bump rc-input-number
* update
* update
* fix ts
* update demo snapshot
* update doc
* update demo
4 years ago
xrkffgg
40663fb928
feat: InputNumber support bordered prop ( #29105 )
* feat: InputNumber support bordered prop
* update style
4 years ago
冷方冰
a4194baa25
fix: InputNumber的onChange的value的类型增加null ( #28769 )
Co-authored-by: 冷方冰 <lengfangbing@bytedance.com>
4 years ago
Tom Xu
b64d02fda9
refactor(input-number): useContext ( #27086 )
4 years ago
偏右
94cab40b04
feat: InputNumber support onStep ( #27075 )
* feat: InputNumber support onStep
* fix test case
* fix dep
4 years ago
xrkffgg
2626d5eb90
style: hidden handler when inputnumber readonly ( #25998 )
4 years ago
Jurriaan BW
5c8ffd473b
Fix for #12795 : InputNumber onChange type ( #23871 )
5 years ago
Tom Xu
4a3e01ff0b
refactor(input-number): rewrite with hook ( #23461 )
5 years ago
xrkffgg
1f79c76b80
style: add rtl.less of InputNumber ( #22434 )
* seyle: add rtl.less of InputNumber
* fix: snap
5 years ago
二货机器人
adb323cec2
chore: icons save bundle size without treeShaking ( #21752 )
* alert
* more icons
* another grouping
* all done
5 years ago
二货机器人
5ebac5f9d6
feat: Form & ConfigProvider support component size ( #20570 )
* feat: Support form & ConfigProvider set component size
* update snapshot
* fix lint
* rm only
* update doc
* Table & Card support sizing
* Update snapshot
* fix lint
* update snapshot
* flush rest snapshot
5 years ago
二货机器人
64b905e9bd
chore: Update `@ant-design/icons` deps ( #19979 )
* update icons deps
* update all icon ref
* fix lint
* update snapshot
5 years ago
偏右
c9cef60d89
🆙 Upgrade rc-input-number ( #18346 )
* fix react warning #9792
* support onPressEnter
close #12476
close #16080
5 years ago
vagusX
149729e524
use ant design icons 4.0 ( #18217 )
* feat: use @ant-design/icons@4.0
* feat: use createFromIconfontCN to make site works
* feat: update doc for Icon
* feat: use icon in component Alert
* feat: use icon in component Avatar
* feat: use icon in component Breadcrumb
* feat: use icon in component Button
* feat: use icon in component Cascader
* feat: use icon in component Collapse
* feat: use icon in component Datepicker
* feat: use icon in component Dropdown
* feat: use icon in component Form
* feat: use icon in component Input
* feat: use icon in component InputNumber
* feat: use icon in component Layout
* feat: use icon in component Mention
* feat: use icon in component Message
* feat: use icon in component Modal
* feat: use icon in component Notification
* feat: use icon in component PageHeader
* feat: use icon in component Pagination
* feat: use icon in component Popconfirm
* feat: use icon in component Progress
* feat: use icon in component Rate
* feat: use icon in component Result
* feat: use icon in component Select
* feat: use icon in component Step
* feat: use icon in component Switch
* feat: use icon in component Table
* feat: use icon in component Tab
* feat: use icon in component Tag
* feat: handle rest component which using Icon
* fix: remove unused vars
* feat: use latest alpha ant design icons
* fix: failed test in uploadlist.test.js
* test: update snapshot for icons
* doc: add Icon for site
* doc: use @ant-design/icons in site
* chore: use latest icons
* fix: tslint issue
* fix: test cases
* fix: types for react
* fix: lint rules for import orders
* fix: use @ant-design/icons@4.0.0-alpha.5 to avoid insert css in server render
* fix: eslint error in demo/**.md
* inject antd icons
* update snapshot
* fix site
* doc: update docs
* fix: code snippets icon in site
* feat: use latest @ant-design/icons
* fix: icon props in message
5 years ago
afc163
35e235923e
🐛 Fix Input parser type
close #15226
6 years ago
Rick Zhou
80e6204803
remove the lambda used in input-number render() function
6 years ago
Konrad Machlowski
18183ac2d5
Correct typings for change handlers
6 years ago
陈帅
8e11f0bdb9
merge support prettier
6 years ago
陈帅
dca9715186
support prettier
6 years ago
zombieJ
1a0a06fca9
ConfigProvider support prefixCls ( #13389 )
Basic support prefixCls.
6 years ago
amedora
eb4e6b7fd6
WIP: Add decimal separator prop ( #12329 )
* Add decimal separator prop
* Update API reference
6 years ago
HeskeyBaozi
318528dc4f
use svg icon in input-number component
6 years ago
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
7 years ago
Yury Kozyrev
88e0c9b436
More tabIndex properties ( #8936 )
* Update Checkbox.tsx
* Update Input.tsx
* Update index.tsx
7 years ago
Wei Zhu
05c702838d
Fix implicit any error for Input
7 years ago
Nokecy
08d27b92ee
inputNumber 添加onKeyDown属性声明 ( #8253 )
7 years ago
Wei Zhu
479a5cb743
Remove allowSyntheticDefaultImports ( #8218 )
7 years ago
delesseps
174c98cdca
Add focus and blur support to InputNumber ( #7615 )
* Add focus support to InputNumber
* Convert string ref to private ref
* Added blur method and fixed linting
7 years ago
afc163
f56e1a7de7
Fix InputNumber id ts type, close #7257
7 years ago
afc163
5ad194143f
Fix InputNumber[precision] ts definites, close #6715
7 years ago
Panjie Setiawan Wicaksono
1abbc1c31b
chore: add name props to input-related interfaces ( #6276 )
8 years ago
whtang906
851f8a8756
Add missing props(parser) into InputNumberProps
8 years ago
afc163
928126e3b3
fix formatter types
8 years ago
Hugo LEHMANN
a73d7d6f22
Add InputNumber typings for props formatter ( #5241 )
* Add InputNumber typings for props formatter
https://github.com/ant-design/ant-design/issues/5240
* InputNumber: Correct typings for formatter prop
8 years ago