MadCcc
72a03efead
feat: input semantic dom ( #41493 )
* feat: input semantic dom
* chore: update deps
* docs: add toc
2 years ago
carla-cn
fd2db7614f
fix: diabled Input abbdon should not have status style ( #40744 )
Co-authored-by: zhouling <zhouling@kezaihui.com>
2 years ago
二货爱吃白萝卜
1fc374495f
chore: patch for missing rootClassName ( #40217 )
* chore: init test
* test: rootClassName inject
* test: part of test
* chore: patch qrcode rootCls
* chore: part rootClassName
* chore: part rootClassName
* test: more test
* test: more test
* test: more test
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* test: more test
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: fix lint
* chore: fix lint
* chore: ignore part of lint
* test: update snapshot
* test: fix test case
* chore: fix node test
* chore: adjust render logic
* fix: test
* test: update snapshot
* test: update
* refactor
* chore: fix require module logic
2 years ago
lijianan
a318fabe6c
chore: ts optimization ( #40258 )
2 years ago
lijianan
28d1157d6b
type: optimization undefined type ( #40241 )
* type: optimization undefined type
* fix type
* fix type
* add
* revert
* revert
* revert
2 years ago
MadCcc
642bb582eb
refactor: TextArea ( #40045 )
* refactor: TextArea
* chore: update snapshot
* chore: update snapshot
* chore: fix lint
* chore: classes
* refactor: mentions
* chore: bump rc-textarea
* chore: code clean
* chore: code clean
* chore: UPDATE SNAPSHOT
* chore: code clean
* test: cov
* fix: textarea size
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
linxianxi
23285382f1
fix(Input): should not have value prop on input after click toggle icon ( #37900 )
* fix(Input): should not have value prop on input when click toggle icon
* fix: 修改参数名
* fix: 修改传参
2 years ago
lijianan
480cb3cbc3
fix: remove defaultProps ( #37815 )
* fix: remove defaultProps
* fix: remove defaultProps
* fix: update snap
* fix: fix
* fix: fix
2 years ago
MadCcc
c8f9b31168
fix: password should not have value prop during inputing ( #37801 )
ref #20544
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
yifanwww
8dfef70868
chore: Make `data-${string}` undefinable ( #36858 )
2 years ago
Zheeeng
fd5d463213
chore: write React.ChangeEvent<E> once ( #36644 )
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
MadCcc
f07e538205
chore: lint
3 years ago
Karott
338ec7dad7
perf: refactor devWarning for production code size ( #35411 )
* pref: better code style for production
* refactor `devWarning`
* don't use `useEffect` only wrap `devWarning`
* chore: add 'noop' to coverage
* chore: add test cases for devWarning
* chore: add test case
* chore: update test cases for devWarning
* chore: restore test script command
* fix: remove 'throw new Error'
* should not use `throw` for browser
* chore: update test case for AutoComplete
* perf: add prefix for `devWarning`
* update RegExp for UMD
* add prefix for ES and CJS
* chore: better code style
* perf:
* upgrade antd-tools
* remove `injectWarningCondition`
* rename `devWarning` to `warning`
* chore: better code style
* chore: better code style
* chore: restore hasValidName
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
e5efbee968
refactor: Components based on Input migrate to genHook ( #34884 )
* refactor: Input base components use genHook
* chore: code style
* chore: code clean
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
vagusX
4eb097cef9
fix: typos in Input.tsx ( #34534 )
3 years ago
MadCcc
c9b6a24978
chore: add focus warning for Input ( #34475 )
* chore: add focus warning for Input
* chore: code clean
* chore: remove duplicate variables
3 years ago
MadCcc
14e719295e
fix: input classname in affix wrapper ( #34474 )
3 years ago
高喵喵
fbb98f2b4f
Fix InputProps supports data attributes ( #34410 )
* fix: add data-xx for inputProps and convert input/_tests/index.test.js to tsx file
* fix: run tests
3 years ago
MadCcc
4c666f5775
fix: clear status in input addon ( #34412 )
3 years ago
MadCcc
228d451832
refactor: input support cssinjs ( #34288 )
* refactor: input with cssinjs
* refactor: input cssinjs
* refactor: rtl
* chore: code clean
* chore: code clean
* refactor: adapt hash
* refactor: use input token
* refactor: status
* fix: style
* fix: rtl
* chore: update token
* chore: code clean
* chore: code clean
* chore: code clean
* refactor: enhance token
* fix: enhance padding
* perf: replace rtl styles
* refactor: place placeholder in input
* perf: rtl
* refactor: code perf
* style: code style
* fix: prefixCls
3 years ago
MadCcc
c7f6e1f199
refactor: clearIcon in allowClear ( #34340 )
* refactor: Input allowClear api upadte
* test: add test
3 years ago
MadCcc
77960c3f75
feat: Input support clearIcon ( #34325 )
* feat: Input support clearIcon
* docs: update Input api
3 years ago
MadCcc
5d51e8b5b4
fix: limit input class due to rc-input won't override input class ( #34294 )
* fix: limit input class due to rc-input won't override input class
* fix: add feedback into affix judgement
3 years ago
MadCcc
bfebb88bdb
feat: introduce rc-input ( #34206 )
* feat: introduce rc-input
* fix: export InputRef alias
* docs: fix demo
* chore: code clean
* test: fix lint
* test: test coverage
* chore: code clean
* chore: code clean
* test: update snapshot
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
MadCcc
37e042358d
feat: Input support status ( #33995 )
* feat: remove form status style && input support status
* test: update snapshot
* feat: update status prop in config provider
* fix: form item validateStatus support
* chore: code clean
* feat: status classname change
* test: update snapshot
* refactor: move formItemStatusContext to form folder
* refactor: merge utils
* refactor: rename statusUtils
* chore: code clean
* test: fix coverage
* chore: remove status prop of Form.Item
* chore: code clean
* docs: update demo
* test: fix lint
* feat: status only success and warning
* test: fix lint
* docs: update deamo
3 years ago
whwangms
1c38ef941d
fix: remove input showCount attribute from parent component ( #33686 )
3 years ago
Jason Miller
36a5485870
fix: Avoid mutating Event properties that are supposed to be getters ( #33536 )
* Avoid mutating Event properties that are supposed to be getters
React's synthetic Event objects have mutable `target` and `currentTarget` properties. These are an incorrect emulation of the corresponding DOM Event properties, which are _getters_ and cannot be assigned-to. AntD's input handling attempts to assign to these getters, which fails in Preact because it uses native Event objects. The solution is to replace the simple property assignments with property definitions, which is likely smaller anyway due to the existing use of `Object.create()` to construct a prototypal facade of Event objects.
* Apply suggestions from code review
* Apply suggestions from code review
Co-authored-by: afc163 <afc163@gmail.com>
3 years ago
二货机器人
0c621c4832
fix: input not support number value ( #33462 )
3 years ago
二货机器人
9fa79dc09d
fix: Input disabled should not keep focus style ( #32739 )
3 years ago
WeijieChen
e0de0249b2
feat: input support show count ( #32522 )
Co-authored-by: machixian <machixian@myweimai.com>
3 years ago
afc163
9c17f94cab
feat: Table filterMode and filterSearch functions ( #31809 )
* feat: Table supports filterMode="tree-select"
* add tree component
* fix detail
* use tree
* add @table-filter-dropdown-max-height
* feat: add check all to filter tree
* feat: add search
* feat: use filterTreeNode
* fix code style
* fix style
* style: tree node selected bg
* fix demo
* feat: add filterSearch
* fix: clear search value after close filter dropdown
* update snapshot
* code style
* fix test case
* chore: new FilterDropdown.tsx file
* chore: searchValueMatched function
* add test case
* test: add test cases
* feat: reset only works on dropdown state now
* chore: add table locales
* fix search input width
* tweak style
* style: update transfer search input style
* perf: improve table perf
* fix: filterMuiltiple={false}
* test: add test for selecting
* chore: fix table filter selection
* fix lint
* remove unused code
* fix: style dependencies
* test: turn off bail config for duplidated-package-plugin in feature branch
* Update components/table/hooks/useFilter/FilterSearch.tsx
Co-authored-by: Peach <scdzwyxst@gmail.com>
* fix locale link
* Apply suggestions from code review
* Apply suggestions from code review
Co-authored-by: Peach <scdzwyxst@gmail.com>
3 years ago
Aex
01e53132b6
fix(input): Improve resolveOnChange method ( #31931 )
* fix: Improve input resolveOnChange method
* fix(input): add test case for allowClear
3 years ago
zhyupe
4097a6c7c6
fix: circular dependencies in Modal & Input ( #31817 )
* fix(input): fix circular dependencies
* fix(input): fix circular dependencies
* fix(modal): fix circular dependencies
* fix(modal): fix test
3 years ago
Zuobin Wang
7f16838631
chore(all): delete useless Omit define ( #31661 )
3 years ago
qqabcv520
47dfa1f2ca
fix: fix type declaration ( #30776 )
4 years ago
二货机器人
5f38753f6c
fix: align TextArea `maxLength` logic ( #29867 )
* fix composition
* fix input
* update doc
* fix tst
* more test case
* more test case
4 years ago
二货机器人
9e5e4c8743
chore: Fix ts ( #29383 )
4 years ago
afc163
99c2c2ff0b
refactor: use optional chaining instead of if ( #29368 )
* refactor: use optional chaining instead of if
* revert some code
4 years ago
二货机器人
4315ac567c
chore: replace omit ( #28846 )
* chore: Replace omit.js with rc-util omit
* chore: Replace omit.js with rc-util omit
* fix ts
* fix ts
* fix ts
4 years ago
二货机器人
6ae70059c9
feat: Input focus support cursor ( #28602 )
* feat: Input focus support cursor
* docs: clean up
* test: Fix lint
4 years ago
Tom Xu
dfdea4c347
Revert "refactor: input remove not use code ( #27895 )"
This reverts commit d5b63f8a61
.
4 years ago
Tom Xu
d5b63f8a61
refactor: input remove not use code ( #27895 )
4 years ago