Commit Graph

390 Commits

Author SHA1 Message Date
Shengnan
e4cbb9cedd
chore: update rc-drawer & fix snap (#32007)
* chore: bump rc-drawer to 4.4.2

* feat: DrawerProps interface add autoFocus support

* docs: add autoFocus to Drawer doc

* fix: snapshot update

* fix: snapshot update

* Update components/drawer/index.en-US.md

Co-authored-by: xrkffgg <xrkffgg@vip.qq.com>

Co-authored-by: xrkffgg <xrkffgg@vip.qq.com>
2021-09-02 18:57:25 +08:00
二货机器人
93dd93bf45
docs: add 4.17.0-alpha.0 changelog (#31987)
* chore: 4.17.0 changelog

* chore: Update emoji

* docs: Update changelog

* docs: dynamic theme ref

* chore: bump version

* docs: Update content

* docs: Add ref

* docs: Add rc changelog

* chore: bump version

* test: Update snapshot
2021-09-01 15:39:09 +08:00
二货机器人
36bcaaef85
Add variable.less to support css variable (#31496)
* chore: use varaible.less

* chore: basic primary varaible

* chore: Move to variable

* chore: align active color

* chore: global fix of css variable

* chore: primary colors

* chore: button danger

* chore: btn default error color

* chore: button series

* chore: More examples

* chore: More components

* chore: Form demo

* chore: form style

* fix: Tag & Alert variable

* chore: update footer

* chore: rm tmp code

* chore: transfer

* fix: picker column active color

* chore: Adjust active bg color

* chore: table hover color

* chore: all css variables

* chore: Global using variables

* chore: Test case

* chore: Update test logic

* chore: back of default less

* chore: entry of site use proxy style

* chore: update entry

* chore: split of variables

* refactor: quick dist speed

* fix: site use variable version

* chore: Update less config

* chore: add mv script

* chore: Update repalcement script

* chore: Add inject variables

* chore: Update script

* fix: script path

* chore: Move to component instead

* chore: fix condition

* chore: update config

* chore: Update in less transform

* chore: Modify logic

* chore: change to variables

* chore: Update name

* fix: script name

* chore: do inject

* revert: back of path

* chore: 2 way of generate

* bump tools

* chore: Add auto replacement script

* chore: auto genrate less file

* chore: fix test

* test: More test case

* chore: Update limit config

* test: coverage

* docs: Update doc
2021-09-01 10:56:50 +08:00
二货机器人
282b7c8575
feat: Cascader support multiple mode (#31936)
* chore: Update cascader version

* chore: replace cascader

* chore: default allowClear

* chore: Update docs

* test: Back of part

* test: More snapshot

* test: more and more

* test: Failed of defaultValue

* test: all basic test case

* test: All snapshot

* chore: Update cascader

* chore: disable react/jsx-no-bind

* chore: fix lint

* chore: fix less order

* chore: fix deps

* docs: Update multiple demo

* docs: Add multiple example

* test: Update snapshot

* test: update snapshot
2021-08-31 15:51:02 +08:00
二货机器人
47f2bd47e1
feat: Select & TreeSelect support fieldNames (#31925)
* feat: Select & TreeSelect support fieldNames

* test: Update snapshot

* chore: force trigger CI
2021-08-27 11:48:59 +08:00
afc163
b56f6110fa merge feature into master 2021-08-16 14:42:04 +08:00
afc163
f0163aa337
fix: Form label hide title on help icon and optional text (#31785)
close #31769
2021-08-13 17:06:30 +08:00
afc163
7084654731
docs(): release 4.16.11 (#31710)
* docs(): release 4.16.11

* update pagination snapshot
2021-08-08 20:02:13 +08:00
Map1en_
8f3f0076de
fix: ConfigProvider rerender unexpectedly when switching some language (#31630)
* fix: ConfigProvide could not maintain the state of components when switching some lang

close #31592

* chore: add test case

* Update components/config-provider/index.tsx

Co-authored-by: afc163 <afc163@gmail.com>

* chore: fix checks

Co-authored-by: afc163 <afc163@gmail.com>
2021-08-04 13:45:35 +08:00
二货机器人
86c5bf6e60
feat: Tree support fieldNames (#31395)
* feat: Tree support fieldNames

* docs: Update desc

* chore: Update snapshot
2021-07-14 14:23:50 +08:00
afc163
c3eda10999 chore: sync feature into master 2021-07-12 19:28:42 +08:00
afc163
a145336687
fix: BackTop should disappear when fade out (#31357)
* fix: BackTop should disappear when fade out

close #31253

* remove default value of removeOnLeave and motionAppear

* fix snapshot
2021-07-12 19:25:45 +08:00
afc163
993b934c7f merge feature into master 2021-06-29 17:09:39 +08:00
netcon
6ee413c604
fix: span element should not contains p element in Badge (#31042)
fixes #30916
2021-06-22 22:53:55 +08:00
afc163
62949a6bd6
feat: change Drawer close icon placement and add extra property (#30908)
* feat: Drawer supports extra

* docs: add description for drawer extra demo

* docs: add extra in API

* update snapshot

* fix rtl style

* fix demo typescript errors

* update snapshot

* design for close icon only

* update snapshot

* update demo and default width

* add size prop

* improve demo

* update snapshot

* update demo

* update snapshot
2021-06-11 08:39:17 +08:00
二货机器人
eb70f00513
feat: ConfigProvider static function support iconPrefixCls (#30925)
* feat: Static iconPrefixCls

* feat: message & notification support iconPrefixCls

* docs: Update doc

* chore: Force update

* fix: ts def
2021-06-09 15:36:59 +08:00
二货机器人
93c33fbf93
fix: patch more style of errorList (#30887)
* fix: patch more style of errorList

* chore: Use className instead

* test: Update snapshot

* test: Update snapshot
2021-06-07 14:32:07 +08:00
二货机器人
7a3bf8287f
feat: Form rule support warningOnly that not block form submit (#30829)
* chore: bump rc-field-form

* docs: Demo driven

* refactor: Use event instead

* chore: collection logic update

* chore: clean up

* chore: show warning

* chore: warning no need required mark

* feat: warning example

* docs: mix error

* chore: tmp list

* chore: magic code

* chore: fix motion

* chore: fix style

* chore: clean up useless code

* chore: RM useless import

* chore: RM useless file

* test: Update snapshot

* chore: Should reset

* fix: Memo logic

* fix: Form basic test case

* fix: lint

* chore: back of ref

* test: Update snapshot

* test: RM ueseless test case

* chore: RM useless code
2021-06-04 14:44:41 +08:00
afc163
9f0dbf2b4d
chore: upgrade to jest 27 (#30783)
* chore: upgrade devDeps

* upgrade @ant-design/tools

* support  CSS Minification

* test: jsdom as testEnvironment

* fix setImmediate

* update snapshot

* fix test

* fix test

* fix test

* fix test
2021-06-01 10:11:24 +08:00
afc163
7427f52a64
fix: Table column align with sorter and filter (#30744)
* fix: Table column align with sorter and filter

close #30741

* update snapshot
2021-05-28 13:27:58 +08:00
zombiej
737c172c2b test: Update snapshot 2021-05-28 11:44:16 +08:00
二货机器人
0a0fa61cb5
fix: Long text of menu ellipsis issue (#30682)
* fix: menu item long text ellipsis

* test: Update snapshot

* test: Update snapshot
2021-05-25 20:52:52 +08:00
afc163
082f626a3e
style: redesign Table header action (#30651)
* feat: improve Table filter and sorter position

* fix: edge cases of th border

* fix lint

* style: apply new design

* fix css detail

* fix stylelint

* fix css error

* style: sorter icon hover color

* fix test cases

* update snapshot

* fix th padding

* fix calc

* style: fix dark theme
2021-05-24 22:16:06 +08:00
陈帅
0d1b1c40a6
merge featrue into master (#30636)
* feat: add Table expandable fixed (#29959)

* fix: Use flex gap of space (#30023)

* fix: use flex gap when supported

* test: update snapshot

* refactor: Use single hooks

* feat: Allow breadcrumb component in PageHeader (#30019)

* Allow breadcrumb component in PageHeader

* Allow breadcrumb component in PageHeader

* Allow breadcrumb component in PageHeader

* Rename variable

rename var from _breadcrumbRender to breadcrumbRenderDomFromProps

* feat: add onChange for Statistic.Countdown (#30265)

* feat: add onChange for countdown

* update the demo

* feat(upload): add onDrop (#30319)

* feat(upload): Add onDrop

* Replace "if prop" logic with existential operator

* Remove redundant conditional

* feat(upload): itemRender add actions params (#30236)

* feat(upload): itemRender add actions params

* chore: optimize type definition

* chore: update doc

* chore: rename actions

* chore: trigger ci

* chore: rename method name of actions

* feat: Add missing dutch translations (#30389)

* feat: Add missing dutch translations

* fix: Translate remaining english values

* fix: Update snapshot for ui tests

* test: increase code coverage to 100% (#30415)

* test: fix Space code coverage

* test: should use nl_BE locale for DatePicker

* fix: Switch tabIndex type (#30416)

* feat: updated Romanian internationalization (#30419)

* feat: updated Romanian internationalization

* fixed lint error

* feat: Menu support accessibility & keyboard access (#30382)

* chore: Use focus style

* fix: prefixCls

* fix: prefixCls

* fix: inline tooltip

* fix: inlineCollapse logic

* fix: ts definition

* test: Update snapshot

* test: Update snapshot

* fix: dropdown logic

* test: Update snapshot

* test: Fix some test  case

* bump rc-menu

* test: More test case

* fix test finder

* test: fix test case

* test: Update snapshot

* test: Update snapshot

* chore: Update ssr effect

* test: Update ConfigProvider snapshot

* test: Fix Table Filter test case

* test: Fix table test case

* chore: Update style

* chore: beauti css

* bump rc-menu

* test: update snapshot

* test: update snapshot

* test: Fix menu test

* test: Fix test case

* test: Coverage

* chore: clean up

* bump rc-menu

* ehance accessibility style

* feat(radioGroup): support data-* and aria-* props (#30507)

close #30501

* feat: Typography add italic type (#30458)

* Typography增加斜体字支持

* update snapshot

* 文档添加版本号

Co-authored-by: lidahao <lidahao@sisyphe.com.cn>

* chore: alpha Menu fix merge (#30546)

* chore: Update script

* bump alpha version

* chore: Update script desc

* chore: bump rc-tabs & rc-mentions

* chore: Adjust style

* chore: 4.16.0-alpha.1

* test: Fix mention test case

* fix: sider of layout width style

* chore: bump 4.16.0-alpha.2

* fix: Tabs tabBarGutter should work as expected (#30545)

close #30526

* feat: Table summary support sticky mode (#30631)

* chore: Bump rc-table

* feat: Patch summary fixed color

* fix: style className

* test: Update snapshot

Co-authored-by: xrkffgg <xrkffgg@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: 二货机器人 <smith3816@gmail.com>
Co-authored-by: gepd <guillermoepd@hotmail.com>
Co-authored-by: appleshell <appleshell@outlook.com>
Co-authored-by: Eric Bonow <ebonow@hotmail.com>
Co-authored-by: xrkffgg <xrkffgg@vip.qq.com>
Co-authored-by: Kermit <kermitlx@outlook.com>
Co-authored-by: Lewis <lewisfidlers@gmail.com>
Co-authored-by: afc163 <afc163@gmail.com>
Co-authored-by: Ștefan Filip <stefy.filip@gmail.com>
Co-authored-by: vldh <alwaysloseall@sina.com>
Co-authored-by: lidahao <lidahao@sisyphe.com.cn>
2021-05-24 16:24:00 +08:00
Kermit
9275866f24
chore(config-provider): support dynamic prefixCls (#30625) 2021-05-24 11:46:12 +08:00
Bernard Niset
e49281c7f5
feat: Apply ConfigProvider componentSize on Tabs component (#29844) 2021-03-24 12:23:24 +08:00
二货机器人
2e35b4ee05
refactor: use rc-util for csp (#29804)
* refactor: use rc-util for csp

* update icons version

* add csp support

* update deps
2021-03-19 16:23:25 +08:00
afc163
99289a0856
style: better Checkbox/Radio label text layout (#29788)
* style: optimize checkbox label text layout

* style: optimize radio label text layout

* fix transfer checkbox position

* fix checkbox align issue in Transfer

* fix snapshot
2021-03-17 14:56:32 +08:00
xrkffgg
b5ac892ada docs: perf website 2021-03-16 09:33:16 +08:00
杨兴洲
d775fb830d
docs: fix ConfigProvider doc typo (#29776) 2021-03-15 22:40:40 +08:00
二货机器人
2e5c848799
fix: message with prefixCls should not break (#29574)
* fix: compitable for legacy usage

* chore: Add modal warning

* fix lint

* test: ConfigProvider.config
2021-03-02 11:53:12 +08:00
afc163
ba7fa15058 merge feature into master 2021-02-23 13:20:07 +08:00
afc163
76434a15df
chore(🆙): upgrade devDeps (#29418)
* chore(🆙): upgrade devDeps

* prettier code

* fix dnd demo

* fix react-dnd demo

* fix npm start and demo tsx compile

* fix snapshot
2021-02-23 10:45:11 +08:00
二货机器人
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
2021-02-22 22:07:19 +08:00
叶枫
10c326ee94
feat: 添加全局静态配置 (#29285)
* feat: 添加全局静态配置

* chore: change globalConfig

* chore: change globalPrefixCls

* chore: review

* feat: 恢复 message 静态 prefix

* feat: modal

* feat: notification

* fix: prefix

* fix: prefix

* fix: 添加 test

* chore: review

* docs: doc

* chore: en

* chore: test

* fix: notification config set empty

* chore: link

* chore: change name

* chore: doc

* chore: doc
2021-02-09 21:49:15 +08:00
xrkffgg
dcc0ffa016
chore : prettier code (#29123)
* style: prettier code

* update

* Update index.less
2021-01-30 19:39:02 +08:00
二货机器人
f1568a656a
Badge number (#29100)
* init number component

* use single nodes

* clean up

* add current class

* clean up

* fallback

* fix: Safari render issue

* test: fix test case

* test: fix test case

* test: fix test case

* test: fix test case

* test: fix test case

* test: fix test case

* test : Update snaposhot

* test : Update cp snaposhot
2021-01-29 14:27:36 +08:00
二货机器人
cbbffe4a98
chore: Import IconContext directly (#29045) 2021-01-26 16:18:13 +08:00
陈帅
0afdbe4d4a
fix: exporting common types (#28963)
* exporting common types

* no use importype

* fix test

* try fix test

* Update components/index.tsx

Co-authored-by: 偏右 <afc163@gmail.com>

* remove typo

* fix test

Co-authored-by: 偏右 <afc163@gmail.com>
2021-01-24 23:24:06 +08:00
二货机器人
f01066467e
feat: ConfigProvider support iconPrefixCls (#28924)
* add iconPrefixCls support

* test: Update test case

* update less variable
2021-01-19 17:33:05 +08:00
二货机器人
aea8c34958
Merge pull request #28792 from zxc0328/config-provider-fix
fix: add memorization for ConfigProvider (#27617)
2021-01-19 15:33:05 +08:00
xinhui.zxh
ccc56546ad feat: rm Consumer usage in test case 2021-01-18 16:51:34 +08:00
xinhui.zxh
6029b18056 fix: remove reduant getConfig call 2021-01-15 23:11:11 +08:00
偏右
ec6f198b0d
fix: Empty description validateDOMNesting warning (#28862)
* fix: Empty description validateDOMNesting warning

close #28860

* update snapshot
2021-01-14 16:29:48 +08:00
xinhui.zxh
0418448571 fix: undo change for configConsumerProps 2021-01-13 17:52:01 +08:00
xinhui.zxh
6292e8b53c feat: use rc-util's useMemo for config provider 2021-01-13 17:05:05 +08:00
xinhui.zxh
749f03e424 feat: use useCallback for getPrefixCls 2021-01-13 13:02:56 +08:00
xinhui.zxh
2dd4d9b0d4 feat: use useMemo for config-provider 2021-01-12 21:02:53 +08:00
xinhui.zxh
81129554ce feat: use hooks to memo config-provider config 2021-01-12 10:40:15 +08:00
xinhui.zxh
91c4cb2793 fix: add memorization for ConfigProvider (#27617) 2021-01-09 15:23:28 +08:00