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
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
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
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
appleshell
8f18328aad
feat: add setSelectionRange for the ref of Input and TextArea ( #27584 )
Co-authored-by: lvpansen <pansen.lv@atzuche.com>
4 years ago
xrkffgg
36cdf0a129
refactor: direction type define ( #27540 )
4 years ago
偏右
c72ee71d6f
fix: clear Password value attribute in controlled mode ( #27191 )
close #27171
4 years ago
07akioni
f937a7fffe
feat: Input & Input.TextArea support bordered prop ( #25617 )
* feat: Input bordered prop
* fix: snapshot
* fix: borderless Input background-color -> transparent
4 years ago
偏右
4be9535926
fix: Password value still exists after blur it ( #24535 )
close #24526
5 years ago
二货机器人
2e284aa017
chore: small bundle size ( #24135 )
* update warning
* rm warning
* replace with dev warning
* fix test
* fix site
* Update webpack.config.js
Co-authored-by: 偏右 <afc163@gmail.com>
* Update webpack.config.js
* fix sytax
* adjust
* move into function
Co-authored-by: 偏右 <afc163@gmail.com>
5 years ago
二货机器人
a1e0c41c8b
feat: ConfigProvider support config Input `autoComplete` ( #23455 )
* support autoComplete
* update doc
* fix lint
5 years ago
Jay Fong
ed5abc246c
chore(Input): improve type types ( #23006 )
5 years ago
二货机器人
ed1959c13e
fix: Input click should get focus ( #21413 )
* fix: Click border should also focus
* update snapshot
* update snapshot
* fix TextArea
* update snapshot
5 years ago
Amumu
02a71d0ddd
fix: form item Input size error with prefix or suffix ( #21290 )
* fix form item Input size error with prefix and suffix
* snapshot
* add test case
* revert width
5 years ago
二货机器人
8bf66ce8be
fix: Input affix use inline-flex ( #20872 )
* fix: Input affix use inline-flex
* update snapshot
5 years ago
二货机器人
05ebf0f8cc
chore: Not block input when Input value is `undefined` ( #20783 )
* chore: Input should not block input when `value` is undefined
* add test casw
* Fix test case & add breaking change in changelog
* fix prevValue logic
* patch change log
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
Saeed Rahimi
676de29eb4
feat: added rtl direction to all of ant-design components ( #19380 )
* rtl demo change en-us description
* change bundlesize css limit
* RTL: modal component (exclude confirm)
* RTL: table component
* RTL: pagination component
* cleanup rtl demo
* fix pagination.tsx compile error
* RTL: button and button-group
* RTL: Steps component
* fix rtl demo style
* fix input suffix icon alignment
* fix select component arrow issue
* RTL: form component
* add pagination rtl test
* fix test lint error
* RTL: rate component
* RTL: radio and radio group components
* RTL: tree-select component
* some fixes to RTL components
* RTL: badge component
* fix rtl issue in inline form
* fix input component rtl padding issue
* fix switch component text rtl issue
* fix table grouped header text-align
* add rtl support to whole demo with RTL button
* Update rtl demo responsive
* RTL: page-header component
* RTL: typography component
* RTL: Dropdown (Partial)
* update config-provider doc
* RTL: input component
* RTL: select component
* RTL: switch component
* RTL: tree component
* fix rtl demo lint
* rtl demo change en-us description
* RTL: modal component (exclude confirm)
* RTL: table component
* RTL: pagination component
* cleanup rtl demo
* RTL: button and button-group
* RTL: Steps component
* fix rtl demo style
* fix input suffix icon alignment
* RTL: form component
* RTL: rate component
* RTL: radio and radio group components
* RTL: tree-select component
* RTL: badge component
* fix rtl issue in inline form
* fix input component rtl padding issue
* add rtl support to whole demo with RTL button
* fix lost changes after rebase
* fix lint errors
* RTL: Transfer Component
* RTL: upload component
* RTL: update avatar demo
* RTL: comment component
* RTL: collapse component
* RTL: carousel component
* update snapshots
* RTL: Card component
* RTL: descriptions component
* RTL: Empty component
* RTL: list component
* RTL: slider component
* slider component import/order
* add shared rtlTest
* RTL: Statistic component
* RTL: tooltip components
* RTL: popover component
* RTL: timeline component
* RTL: tag component
* RTL: alert component
* RTL: drawer component
* RTL: Tab component
* change direction definition
* RTL: progress component
* input.tsx, remove duplicate after rebase
* fix demo.less after rebase
* fix ant-row-rtl after rebase
* fix upload issues in rtl
* badge rtl demo margin fix
* fix: tabs with icon margin
* fix: radio-wrapper margin
* fix: table component after rebase
* fix: centered modal text-align
* update slider snapshot
* RTL: popconfirm component
* RTL: back-top component
* RTL: spin component
* RTL: result component
* RTL: skeleton component
* RTL: menu component
* RTL: time-picker component
* RTL: calendar component
* RTL: date-picker component
* RTL: home page
* update snapshots
* test: add auto-complete rtl test
* test: add avatar component rtl tests
* test: add badge component rtl tests
* test: add breadcrumb component rtl tests
* test: add button components rtl tests
* test: add card component rtl tests
* test: add carousel component rtl tests
* test: add cascader component rtl tests
* test: add checkbox component rtl tests
* test: add collapse component rtl tests
* test: add comment component rtl tests
* test: add dropdown component rtl tests
* test: add empty component rtl tests
* test: add form component rtl tests
* test: add grid component rtl tests
* test: add input component rtl tests
* test: add search component rtl tests
* test: add input-number component rtl tests
* test: add layout component rtl tests
* test: add list component rtl tests
* test: add mentions component rtl tests
* test: add modal component rtl tests
* test: add page-header component rtl tests
* test: add pagination component rtl tests
* test: add radio component rtl tests
* test: add rate component rtl tests
* test: add select component rtl tests
* test: add slider component rtl tests
* test: add steps component rtl tests
* test: add switch component rtl tests
* test: add table component rtl tests
* test: add transfer component rtl tests
* test: add tree component rtl tests
* test: add tree-select component rtl tests
* test: add typography component rtl tests
* test: add upload component rtl tests
* test: add affix component rtl tests
* update calendar tests
* increase css file maxSize
* update snapshots
* remove workflows to allow push
* remove duplicate reverse prop from slider
* fix: remove table demo from config-provider
* fix: remove table demo from config-provider
* fix lint error
* Added direction property to ConfigProvider
* cascader rtl tests added
* update config-provider doc
* RTL: grid system
* RTL: input component
* RTL: switch component
* fix rtl demo lint
* RTL: modal component (exclude confirm)
* RTL: table component
* RTL: pagination component
* cleanup rtl demo
* fix pagination.tsx compile error
* RTL: button and button-group
* RTL: Steps component
* fix rtl demo style
* RTL: form component
* add pagination rtl test
* RTL: rate component
* RTL: radio and radio group components
* RTL: tree-select component
* RTL: badge component
* fix rtl issue in inline form
* fix input component rtl padding issue
* add rtl support to whole demo with RTL button
* RTL: input component
* RTL: select component
* RTL: switch component
* RTL: tree component
* fix rtl demo lint
* rtl demo change en-us description
* RTL: modal component (exclude confirm)
* RTL: table component
* RTL: pagination component
* cleanup rtl demo
* RTL: button and button-group
* RTL: Steps component
* fix rtl demo style
* fix input suffix icon alignment
* RTL: form component
* RTL: rate component
* RTL: radio and radio group components
* RTL: tree-select component
* RTL: badge component
* fix rtl issue in inline form
* fix input component rtl padding issue
* add rtl support to whole demo with RTL button
* input.tsx, remove duplicate after rebase
* fix ant-row-rtl after rebase
* update snapshots
* test: add cascader component rtl tests
* test: add pagination component rtl tests
* update calendar tests
* update snapshots
* fix: remove table demo from config-provider
* fix: remove table demo from config-provider
* fix lint error
* update direction.md icons
* dropdown and cascader default placement in rtl
* update snapshots
* fix lint errors
* remove duplicate import
* update snapshots
* update snapshot
* update calendar snapshot
* update snapshots
* integrate with new rc-picker
* update snapshots
* fix lint errors
* update snapshot
* update snapshots
* update snapshots
* update snapshots :|
* update snapshots
* fix compile error.
* fix typo after rebase
* update snapshots
* remove workflows to allow push
* update snapshots
* update snapshots
* fix dist error
* front-page css fix
* update snapshots
* fix lint and test issues
* restore cascader index.less
* update snapshots
* fix logo in rtl and demo controls
* ci errors
* resolve steps/index.tsx conflicts
* tooltip family demo remove inline style
* resolve table/Table.tsx conflicts
* resolve modal/Modal.tsx conflicts
* resolve cascader/index.tsx conflicts
* add workflows from upstream
* update snapshots
* revert logo to default
* fix codebox demo direction of placements
* resolve tooltip overlayClassName conflicts
* update snapshots
* update popover test
* fix: cascader miss popupClassName
* fix: fix select missing dropdownClassName
* chore: Update snapshot
* chore: Adjust menu use rtl logic
* docs: Update demo line color
Co-authored-by: 二货机器人 <smith3816@gmail.com>
5 years ago
偏右
2adf8ced24
fix: 💄 Remove Input.Password value attribute from dom ( #20544 )
* 💄 Remove Input.Password value attribute in dom
close #20541
close #7761
close #19959
close #20536
close #12672
close #10952
* ✅ fix test coverage
* 🐛 fix defaultValue create `value` attribute in Input.Password
5 years ago