Commit Graph

96 Commits

Author SHA1 Message Date
Chuns Chen
cc5c4fed51
refactor: locale files reference path (#38194)
* chore: add locale files to npm pkg

* docs: locale files reference path

* docs: fix locale path

* chore: bump @ant-design/tools

* refactor: default locale file

* chore: add site wepack alias

* chore: bump @ant-design/tools

* fix: site theme locale reference path

* chore: add locale files to eslint ignore

* fix: markdown demo unable to resolve path to module antd/locale
2022-10-26 14:38:54 +08:00
MadCcc
03a1ae427d Merge branch 'feature' into next-merge-feature 2022-10-11 20:29:55 +08:00
Zheeeng
dcac4f66a4
fix: signatures for Upload (#37861) 2022-10-06 18:53:06 +08:00
Zheeeng
ea9b013bb1
refactor(locale): refine signature (#37824)
* chore: prefer using @internal annotation over other markups

* fix: typo

* fix: locale types
2022-10-01 22:17:14 +08:00
MadCcc
870f9e504d
fix: v5 component style (#37413)
* fix: v5 component style

* chore: fix csp
2022-09-06 10:13:18 +08:00
MadCcc
d2b219dbf8
fix: iconPrefixCls should affect cssinjs (#37259) 2022-08-26 19:31:53 +08:00
MadCcc
8c50cc135b
feat: algorithm array (#37082)
* feat: algorithm array

* chore: update deps

* chore: add default
2022-08-16 21:06:25 +08:00
二货机器人
bd2b80fb88
chore: Use cssinjs createTheme which support auto cache (#36329)
* chore: bump

* chore: use cssinjs cache version
2022-07-04 11:00:19 +08:00
二货机器人
66a3594e95
refactor: Provide top theme export and theme adjuster (#36302)
* chore: change theme mode

* refactor: export theme

* refactor: top of theme

* chore: map of token

* chore: fix lint

* chore: rename

* test: fix test case
2022-06-29 20:34:00 +08:00
二货机器人
fe907cc57b
refactor: Export theme useDesignToken as root hooks (#36267)
* refactor: export useDesignToken

* chore: site update

* chore: not conflict with react version

* chore: update snapshot

* chore: update snapshot
2022-06-28 15:38:30 +08:00
二货机器人
de2992f96f
chore: move path (#36243)
* chore: base move

* chore: all path

* chore: fix script
2022-06-27 14:25:59 +08:00
MadCcc
9f2f9bb57f
refactor: default theme with algorithm (#36175)
* refactor: alias token

* refactor: use palettes

* refactor: default theme

* chore: code clean

* refactor: component token

* feat: light tokens

* feat: add dark theme

* feat: dark derivative

* chore: code clean

* refactor: fix colorBgContainer

* refactor: rename token

* test: fix lint

* chore: code clean

* chore: code clen

* refactor: badge shadow color

* test: add test case
2022-06-24 11:11:42 +08:00
MadCcc
711601e93e
feat: support custom token (#36057)
* feat: useCustomToken

* feat: simplify useCustomToken

* test: fix lint

* feat: genGenComponentStyle

* test: fix lint

* feat: use prefixCls

* feat: default genStyleHook

* test: fix lint

* test: fix lint

* docs: add jsdoc

* feat: remove  in useCustomToken params

* feat: useStyle

* feat: useStyel

* chore: code clean
2022-06-17 18:17:39 +08:00
MadCcc
47493c0e90
chore: collect statistic after compile (#35813)
* chore: collect statistic after compile

* chore: code clean

* chore: code clean

* chore: code clean

* chore: remove export in ConfigProvider

* chore: only lib

* test: fix lint

* chore: code clean
2022-05-30 20:22:48 +08:00
zombiej
461b605555 chore: next merge feature 2022-05-27 16:40:17 +08:00
二货机器人
1ed1fda421
feat: Config provider pagination showSizeChanger (#35750)
* feat: support showSizeChanger

* test: test case
2022-05-26 17:14:05 +08:00
MadCcc
3dc72c00d0 Merge branch 'feature' into next-merge-feature 2022-05-25 15:02:26 +08:00
MadCcc
414f049697
feat: config provider support componentDisabled (#35718)
* feat: config provider support componentDisable

* test: update snapshot

* docs: update

* chore: code
2022-05-25 14:57:58 +08:00
MadCcc
2077af6795
feat: component token in statistic (#35705)
* feat: component token in statistic

* chore: rearrange
2022-05-24 19:48:44 +08:00
二货机器人
178d8d6f19
chore: Patch Notification tmpl (#35568)
* chore: init notification style

* chore: comment style

* chore: clean up recv deps

* chore: trigger
2022-05-16 18:02:46 +08:00
zombiej
8613d2ff2e chore: merge feature 2022-05-16 17:16:52 +08:00
二货机器人
3d21ec54e2
refactor: reduce empty cycling deps (#35570)
* chore: rm in root

* chore: fix ts

* test: Update snapshot

* chore: ignore part
2022-05-16 16:34:42 +08:00
二货机器人
2341a25d91
feat: refactor useNotification (#35423)
* more refactor

* chore: motion support

* chore: tmp test

* test: Hooks

* chore: static function

* tmp of it

* all of it

* mv prefix

* chore: clean up

* chore: clean up

* more test case

* test: all base test

* test: all test case

* init

* refactor: rm notification.open instance related code

* follow up

* refactor: singlton

* test: notification test case

* refactor to destroy

* refactor: message base

* test: part test case

* test: more

* test: more

* test: all test

* chore: clean up

* docs: reorder

* chore: fix lint

* test: fix test case

* chore: add act

* chore: back

* chore: fix style

* test: notification test

* test: more and more

* test: fix more test

* test: index

* test: more & more

* test: fix placement

* test: fix coverage

* chore: clean up

* chore: bundle size

* fix: 17

* chore: more

* test: message

* test: more test

* fix: lint

* test: rm class in static

* chore: clean up

* test: coverage

* chore: fix lint
2022-05-11 14:26:18 +08:00
MadCcc
1f5e271eb6 Merge branch 'master' into next-merge-master 2022-05-09 21:26:25 +08:00
Tom Xu
1719748a29
chore: eslint add consistent-type-imports (#35419)
* chore: eslint add consistent-type-imports

* fix avatar

* Update Item.tsx
2022-05-07 14:31:54 +08:00
二货机器人
ebf52122a2
refactor: Button use full token & remove all withPrefixCls & support overrides (#34690)
* chore: init

* chore: button token

* chore: rm all withPrefixCls

* feat: overrides work

* feat: theme can be nest

* test: Update snapshot

* fix: memo logic
2022-03-24 18:44:42 +08:00
二货机器人
b967f9eb81
refactor: More alias token (#34658)
* chore: rm disabled color

* chore: color heading

* chore: shows tokn

* chore: fix color mapping

* chore: status colors

* chore: durations

* chore: outline color

* chore: comment info

* chore: background color

* chore: merge nexr
2022-03-22 20:02:04 +08:00
二货机器人
f3f1dbf1b1
refactor: Move design token in (#34624)
* chore: move in

* wip: refactor the structure of design token

* refactor: merge override

* chore: mv in

* chore: fix ts

* chore: tmp all

* chore: comment

* chore: comment

* chore: use variables

* fix: compile error

Co-authored-by: arvinxx <arvinx@foxmail.com>
2022-03-21 16:48:25 +08:00
github-actions[bot]
6bc219b13b
chore: auto merge branchs (#34358)
chore: merge master into next
2022-03-08 06:56:08 +00:00
二货机器人
8fe8df777e
fix: csp not work on icon (#34356) 2022-03-08 14:01:53 +08:00
二货机器人
43eaa357b4
chore: cssinjs hashed as default (#34272)
* checkbox hashId support

* chore: tree hashed

* chore: fix lint

* fix: compile
2022-03-03 14:55:19 +08:00
二货机器人
912ffb15d0
refactor: Button with cssinjs (#33890)
* init

* chore: cssinjs base button

* chore: more style

* chore: mix style

* chore: size

* chore: more style

* misc

* chore: re-structrue

* chore: icon onlt

* chore: back of disabled

* chore: loading status

* chore: loading motion

* chore: add active style

* docs: site prepare dynamic theme

* chore: bump antd cssinjs

* chore: color type check

* chore: bump cssinjs version

* chore: clean up useless ts def

* chore: ignore button style

* chore: rename ci

* chore: update cssinjs ver

* chore: ssr default wrapper

* chore: bump cssinjs version

* chore: ssr support

* chore: fix script

* test: fix node snapshot

* chore: move cssinjs pkg size from css to js

* test: coverage
2022-02-18 14:17:32 +08:00
afc163
2d484bbe47
fix: Form validateMessages in nested ConfigProvider (#33705)
close #33691
2022-01-13 13:50:18 +08:00
afc163
a926aa52c6
fix: Form should have default validateMessages in en locale (#33511) 2021-12-31 16:56:21 +08:00
seaSuper
9bc148abcc
feat: ConfigProvider add form colon (#32818)
* feat: ConfigProvider add form colon

* add: test for ant-design#32799

* fix: Modify FormItemLabel get ConfigColon from From

* refactor: Simplify the code
2021-11-11 17:51:33 +08:00
Michael Adams
bdbbbb9f9e
fix: typescript error in ConfigProvider. (#32406) 2021-10-09 10:24:41 +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
afc163
b56f6110fa merge feature into master 2021-08-16 14:42:04 +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
二货机器人
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
Kermit
9275866f24
chore(config-provider): support dynamic prefixCls (#30625) 2021-05-24 11:46:12 +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
二货机器人
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
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
叶枫
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
二货机器人
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
xinhui.zxh
6029b18056 fix: remove reduant getConfig call 2021-01-15 23:11:11 +08:00
xinhui.zxh
0418448571 fix: undo change for configConsumerProps 2021-01-13 17:52:01 +08:00