He Linming
6ee61f6f0b
feat(Input.Password): password visibility controllable ( #38216 )
* feat: support controllable visible of password
* test: add some unit test for Password
* refactor: visibilityToggle API
* test: update snapshots
* Update components/input/Password.tsx
Co-authored-by: afc163 <afc163@gmail.com>
2 years ago
afc163
58fdfc0f62
style: fix TextArea custom border style not working
when allowClear is enable
close #38068
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(文辉)
6d253369d4
fix: when we apply style resize: none, TextArea should be not resizable when showCount is applied ( #37855 )
Co-authored-by: tangwenhui <tangwenhui@rd.netease.com>
2 years ago
二货机器人
069e44bcc3
chore: merge master
2 years ago
afc163
3ae7703303
chore: improve Input Intl.NumberFormat usage ( #37726 )
2 years ago
Dennis Chen
24a7da8ea8
docs(Input): add proper type for `inputRef` ( #36135 )
* docs(Input): add proper type for `inputRef`
* docs: use `InputRef` instead of `ElementRef`
Co-authored-by: afc163 <afc163@gmail.com>
2 years ago
章鱼
7fd093bd0a
docs: feat components TS demo ( #34742 )
* docs: add general components TS demo
* docs: add layout components TS demo
* docs: add navigation components TS demo
* docs: add data entry components TS demo
* chore(deps): add types for qs
* docs: add data display TS demo
* docs: add feedback components TS demo
* docs: add other components TS demo
* chore(deps): add types
* docs: unified demo code style
* docs: fix lint error
* docs: add demo TS type
* docs: fix demo TS type
* test: update snapshot
* docs: fix TS demo
* feat: update Rate character type
* docs: fix lint error
* feat: update Rate character type
* feat: update Rate character type
3 years ago
dingkang
58df74c38e
docs: replace class component with hooks ( #35519 )
* docs(badge): replace class component with hooks
* docs(button): replace class component with hooks
* docs(calendar): replace class component with hooks
* docs(card): replace class component with hooks
* docs(button): replace class component with hooks
* chore(deps): remove webpack devDependencies
* docs(cascader): replace class component with hooks
* docs(checkbox): replace class component with hooks
* docs(collapse): replace class component with hooks
* docs(comment): replace class component with hooks
* docs(descriptions): replace class component with hooks
* docs(config-provider): replace class component with hooks
* docs(date-picker): replace class component with hooks
* docs(drawer): replace class component with hooks
* docs(dropdown): replace class component with hooks
* docs(dropdown): replace class component with hooks
* docs(empty): replace class component with hooks
* docs(grid): replace class component with hooks
* docs(input): replace class component with hooks
* docs(input-number): replace class component with hooks
* docs(demo): fix lint error
3 years ago
afc163
0f0e2f9f43
docs: simplify demo code, #30853 ( #35050 )
3 years ago
maxin
3142c10b04
docs(input): use Intl.NumberFormat ( #34985 )
Co-authored-by: maxin <maxin@growingio.com>
3 years ago
MadCcc
6776bb8916
docs: demo support react18 ( #34843 )
* docs: update demo
* chore: add script
* test: fix demo test
* docs: convert demos
* chore: move script
* test: remove react-dom import
* chore: update deps
* docs: update riddle js
* test: fix image test
* docs: fix riddle demo
3 years ago
MadCcc
8054abe81f
feat: DatePicker and TimePicker support status ( #34073 )
* feat: DatePicker and TimePicker support status
* docs: demo add version
* chore: code clean
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
chenyizhongx
38b4a03c56
fix textarea maxlength issue ( #33910 )
* fix: textarea maxlength
* refactor: delete some useless code
* refactor: fix ci
* refactor and fix test case fall
* update snapshot
* add testcase
* refactor type defined
3 years ago
afc163
264b3514d8
fix: TextArea height bug ( #33055 )
* fix: TextArea height bug when has `showCount`
close #33049
* fix snapshot
* revert form demo
3 years ago
JounQin
3fafb7f8d5
fix: `Submit` typo ( #32933 )
close #32928
3 years ago
Karott Schu
491cc4f7ae
fix: borderLeftRadius error for Input.Search #32808 ( #32812 )
close #32808
3 years ago
afc163
958df3dd07
docs: add demo for Input.Group ( #32837 )
https://weibo.com/2259174311/L0gtIjb3Z
3 years ago
WeijieChen
e0de0249b2
feat: input support show count ( #32522 )
Co-authored-by: machixian <machixian@myweimai.com>
3 years ago
二货机器人
3a1a829708
fix: TextArea style missing ( #31391 )
3 years ago
afc163
2e3937ecbf
style: fix Cascader style inside Input addon ( #31350 )
close #31333
3 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
Homyee King
20c49b7bbb
docs: fix demo-focus layout ( #29028 )
* fix: demo-focus layout
* fix: update snap
* fix: form noStyle test case
* fix: update snap
Co-authored-by: wanghongye <wanghongye@kuaishou.com>
4 years ago
07akioni
2549e8176b
docs: Input, use Space to refactor search-input demo ( #28799 )
* docs: Input, use Space to refactor search-input demo
* fix
* test: update snap
4 years ago
二货机器人
6ae70059c9
feat: Input focus support cursor ( #28602 )
* feat: Input focus support cursor
* docs: clean up
* test: Fix lint
4 years ago
二货机器人
c373710ce2
chore: Adjust collapse arrow position align with first line ( #27363 )
* fix: border style of Input.Search when allowClear (#27325 )
* fix: border style of Input.Search when allowClear
* fix css
* update
* change name
* docs: 4.7.3 changelog (#27350 )
* docs: 4.7.3 changelog
* docs: Patch 27325
* chore: improve useCombinedRefs (#27352 )
* docs: 📝 update introduce
* chore: fix API table border
* chore: Adjust collapse arrow position align with first line
Co-authored-by: xrk <xrkffgg@gmail.com>
Co-authored-by: Tom Xu <ycxzhkx@gmail.com>
Co-authored-by: afc163 <afc163@gmail.com>
4 years ago
xrk
92f7f6dbb2
fix: border style of Input.Search when allowClear ( #27325 )
* fix: border style of Input.Search when allowClear
* fix css
* update
* change name
4 years ago
偏右
2788140d1a
Merge pull request #27137 from ant-design/master
chore: merge master into feature
4 years ago
偏右
3ef6ea3ead
refactor: 📦 some styles to reduce css bundle size ( #27129 )
* refactor: some styles to reduce css bundle size
* test: update snapshot
* fix snapshot
* fix test case
* fix addonAfter
* fix firefox style
* reduce riddon css size
* fix Input.Group border radius
* remove unused css selectors
* fix test cov
* fix search button hover border
* fix rtl textarea clear icon style
* update demos
* fix search rtl style
* fix input search style
4 years ago
zhangchen
138b953afd
feat: TextArea showCount ( #26952 )
* feat: TextArea showCount
* update: TextArea showCount test
* update: TextArea showCount test
* update: test
* update: test
* update: test
* update: interface
* revert: interface change
4 years ago
二货机器人
2803ccf658
docs: Update DatePicker docs and add legacy notice ( #25768 )
* docs: Update DatePicker docs and add legacy notice
* clean up
* only warning for QuarterPicker
* update docs
* fix lint
* note to warning
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
二手掉包工程师
39fe6fdcb6
refactor: refine some typos ( #25036 )
5 years ago
偏右
637aa09bc5
chore: ✅ fix some eslint problems ( #24836 )
* 💄 fix lint
* 💄 fix lint
5 years ago
xrkffgg
338733d70f
docs: optimize input demo ( #23990 )
* docs: optimize input demo
* docs: optimize input demo
* fix: style
* remove
5 years ago
xrkffgg
df1555c6c7
style: optimize input search style in rtl ( #23797 )
* style: optimize input search style in rtl
* fix lint
5 years ago
偏右
081604e253
feat: ㊙️ Input passowrd custom icon ( #23792 )
* ⚡ Support Input.Password iconRender
close #23778
close #23484
* ✅ fix snapshot
5 years ago
偏右
d2c541b4e2
fix: 🐛 Input.Search height affected by suffix ( #23527 )
* 🎬 improve Input demo code
* style: fix Input.Search height stretched by suffix
close #23523
* fix react key warning
* ✅ fix demo snapshot
5 years ago
二货机器人
deafd3fcce
fix: compact group style ( #23149 )
* fix: compact group style
* updat snapshot
5 years ago
偏右
b369717181
chore: 🦄 Add eslint-plugin-unicorn ( #22883 )
* 🦄 Add eslint-plugin-unicorn
* fix eslint errors
* fix eslint errors
* fix lint demo
* fix lint demo
5 years ago
zefeng
dda45e4796
feat: support compact theme ( #22126 )
* feat: support narrow theme mode
* chore: rename narrow to compact
* chore: height part
* chore: preview compact mode
* chore: to make site corrected
* chore: preview site
* docs: 📖 document compact theme usage
* docs: tweak theme doc
* docs: 📖 Add description about double css bundle size
* chore: preview
* chore: for preview
* chore: adjust pagination
* chore: compact mode done!
* chore: remove useless todo
* chore: fix review bug
* chore: fix review bug
* chore: fix card margin
* chore: fix review bug
* chore: fix review bug
* chore: improve i18n and transition
* Update site/theme/static/common.less
Co-Authored-By: 偏右 <afc163@gmail.com>
* chore: fix button size and description padding
* chore: update snapshots
* chore: add compact css bundlesize limit
* chore: compact dist support
Co-authored-by: afc163 <afc163@gmail.com>
5 years ago
二货机器人
e95603b599
fix: Input with suffix align issue ( #22603 )
* fix: Input prefix style
* update snapshot
* fix int
5 years ago
xrkffgg
6f4d27985e
fix: inputgroup search icon ( #22197 )
5 years ago
偏右
339b785815
🎬 improve input demo and test case ( #22016 )
5 years ago
xrkffgg
1d37cf3cdf
fix: input group demo ( #21751 )
5 years ago
信鑫-King
c17b40ae70
fix: dark background in different container ( #21299 )
* fix: comment and input
* fix: add @pagination-item-input-bg
* feat: add @list-customize-card-bg for dark hook component
* feat: add dark hook
* fix: checkbox color
* fix: popover-customize-border-color
* fix: table
* fix: style lint
* fix: debug
* fix: color
* fix: update colors
* fix: demo
* feat: popover container bg use mixins utils
* fix: less dark
* fix: table bg in dark
* fix: fixed table
* fix: lint
* fix: lint
* feat: add @table-expand-icon-bg
* fix: notification bg
* fix: remove dark.md
* fix: dropdown
* fix: table
* fix: data lint
* fix: style
* fix: dark less style
* fix: @steps-background
* fix: add thead dark style
* fix: unused styles
5 years ago
二货机器人
4192c1f6d9
fix: Some input style issue ( #21316 )
* fix firefox flex bug
* fix input wrapper style
* fix clear text style
* 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
二货机器人
996b7bc8f0
fix: Input suffix should work with append ( #21105 )
5 years ago