Danial Soheili
164ea65250
Bugfix/modal destroy all with context ( #40281 )
...
* 🐞 FIX: destroyAll not working with useModal
* 🧪 TEST: add test
* Update components/modal/useModal/index.tsx
Co-authored-by: Amumu <yoyo837@hotmail.com>
Co-authored-by: Amumu <yoyo837@hotmail.com>
2023-01-17 14:54:34 +08:00
二货爱吃白萝卜
8f81298027
docs: Adjust Modal demos ( #40274 )
...
* docs: Adjust modal demo
* test: update snapshot
2023-01-16 23:48:26 +08:00
lijianan
8501adbd84
fix: add displayName ( #40092 )
...
* fix: add displayName
* rerun ci
* rerun ci
2023-01-08 21:30:41 +08:00
Peter Gassner
25ea3a7202
fix: Allow users to handle promise rejections in ActionButton's onOk callback ( #40018 )
...
* fix: Allow users to handle promise rejections in onOk callback
Components that rely on ActionButton swallow rejected promises. This makes it impossible for userland code to handle them.
* polish: Fix linting problems
* polish: Return rejected promise instead of throwing
* refact: Remove test for unhandled promise rejection
This test breaks when run in parallel by Jest. At the moment we have no way of changing the way Jest works and it prohibits us from testing for "unhandledRejection" events.
See: https://github.com/ant-design/ant-design/pull/40018#issuecomment-1373590259
* test: hack for rejection
Co-authored-by: 二货机器人 <smith3816@gmail.com>
2023-01-08 00:27:33 +08:00
lijianan
d3764fcce3
test: refactor test case demo CC => FC ( #40070 )
...
* test: refactor test case demo CC => FC
* add type
* type
2023-01-07 21:15:59 +08:00
洋
dc77959e7c
fix: useModal default okText ( #39884 )
2022-12-29 17:05:50 +08:00
MadCcc
663d1454f2
chore: fix ci ( #39811 )
...
* chore: fix ci
* chore: code clean
* chore: update form test
* chore: test
2022-12-26 15:48:50 +08:00
lijianan
8180bb983b
docs: use en link in EN_US ( #39808 )
2022-12-26 11:55:18 +08:00
黑雨
74262023ea
docs: update doc ( #39753 )
...
* feat: update doc
* feat: update doc
* feat: update doc
* feat: update doc
2022-12-26 10:08:15 +08:00
Peach
6236e356b5
docs: update all site anchors ( #39687 )
...
* docs: update all site anchors
* docs: handle hash change from Link component
2022-12-22 14:12:26 +08:00
lijianan
b35fbcf7ac
fix: type definition optimization & add key for useModal ( #39701 )
...
* fix: add key for useModal
* fix
* fix
* fix lint
* revert
2022-12-21 14:39:12 +08:00
MadCcc
bd15aaedd6
Merge branch 'master' into feature-merge-master
2022-12-18 14:28:58 +08:00
lijianan
120db80c25
type: Button type optimization ( #39533 )
...
* type: type optimization
* fix type
* fix type
* fix type
* update docs
2022-12-15 17:48:29 +08:00
Amumu
ca5b9a6ae0
docs: CN
it. ( #39519 )
2022-12-13 15:49:05 +08:00
二货爱吃白萝卜
fe8d59754e
fix: Modal hooks not pass CP ( #39513 )
...
* fix: CP pass not override
* test: Update test case
* docs: missing demo
2022-12-13 13:57:17 +08:00
Amumu
d689c7b855
feat: Remove locale-provider ( #39373 )
...
* feat: remove locale-provider
* chore: fix lint
* Empty-Commit
* test: remove test
* Revert "test: remove test"
This reverts commit 4f6b59883f6bf078f21a10898ef913c9e2adb913.
* chore: 阶段性兼容
* fix lint
* fix: fix lint
* fix: add index
* docs: update docs
* docs: update
* docs: update
* docs: update
2022-12-09 15:04:08 +08:00
xhh0223
451d2f6ee2
feat(Popconfirm): make title bold and add description prop ( #39250 )
...
* feat(popconfirm): make title bold and add description prop
* feat(popconfirm): make title bold and add description prop(update demos)
* feat(popconfirm): make title bold and add description prop(the update of demos translation)
* feat(popconfirm): make title bold and add description prop(the update of snapshot)
* feat(popconfirm): make title bold and add description prop(the update of popconfirm md)
* feat(popconfirm): make title bold and add description prop(the update of popconfirm md)2
* feat(popconfirm): make title bold and add description prop(run all test.ts.snaps and update popconfirm)
2022-12-08 16:39:42 +08:00
Jung Min O
a836a3a3fe
feat: Modal.xxx supports footer ( #39048 )
...
https://github.com/ant-design/ant-design/issues/16644
2022-12-07 21:33:44 +08:00
MadCcc
7b3adcb5ae
fix: wireframe style for popconfirm ( #39313 )
...
* fix: wireframe style for popconfirm
* chore: add demos
2022-12-06 23:14:30 +08:00
muxin
ecd2b7372b
style(Modal): fix content break lines ( #39249 )
...
close #39247
2022-12-04 23:34:58 +08:00
Jung Min O
d76636ac95
style: modal content width issue without modal icon ( #39047 )
...
* Fix modal width issue without modal icon
* Update index.tsx
* Update index.tsx
* Apply suggestions from code review
Co-authored-by: afc163 <afc163@gmail.com>
2022-12-01 15:15:30 +08:00
MadCcc
e7edfa42d7
docs: update overview img ( #38946 )
...
* docs: update overview img
* chore: code clean
* chore: code clean
* chore: update
* chore: code clean
2022-11-30 20:14:41 +08:00
afc163
5310a0fa0c
docs: fill documentation about message/notification/Modal.xxx ( #39068 )
...
close #39066
2022-11-29 10:39:57 +08:00
lijianan
4efa3b2896
test: console.error
should nullable in Console ( #39050 )
2022-11-28 14:19:25 +08:00
MadCcc
5d9cb2e50d
refactor: Optimize theme export and add docs ( #38902 )
...
* refactor: Optimize theme export and add docs
* chore: fix lint
* chore: fix lint
* chore: fix lint
2022-11-23 20:22:38 +08:00
thinkasany
9e8b834d4a
docs: Optimize documents ( #38882 )
2022-11-23 11:06:20 +08:00
Yuki Zhang
0b54a18afe
fix: context issues for Space.Compact ( #38870 )
...
* fix: context issues for Space.Compact
* test: update snapshots
2022-11-22 22:52:40 +08:00
Sonu Sharma
7728eec447
docs: spelling and grammar fix ( #38743 )
2022-11-19 22:56:58 +08:00
Tom Xu
77ea4038d1
chore: remo format and remove prettierrc arrowParens ( #38722 )
2022-11-19 13:47:33 +08:00
MadCcc
0162d2e2d8
feat: change transiton to mid duration ( #38648 )
2022-11-17 23:31:41 +08:00
afc163
e027cbec1c
docs: format all markdown ( #38629 )
...
* chore: add prettier-ignore in markdown demo
* docs: format markdown api table
* docs: format markdown api table
2022-11-17 17:31:26 +08:00
MadCcc
f36a01a647
chore: update snapshot
2022-11-17 14:07:37 +08:00
MadCcc
ab4bcc4463
Merge branch 'master' into next-merge-master
2022-11-17 14:04:31 +08:00
kiner-tang(文辉)
1ca984a19c
feat(modal): support pass mousePosition to control modal's animation origin position ( #38584 )
...
* feat: support pass mousePosition to control modal's animation target position
* feat: update test case
* Update components/modal/demo/custom-mouse-position.md
Co-authored-by: afc163 <afc163@gmail.com>
* docs: update docs
Co-authored-by: afc163 <afc163@gmail.com>
2022-11-15 22:20:02 +08:00
二货机器人
ac85fbec6f
chore: merge master
2022-11-13 14:33:07 +08:00
lijianan
d292257e47
chore: type optimization ( #38460 )
2022-11-09 17:36:49 +08:00
二货爱吃白萝卜
cbcfd38ca7
docs: v5 site upgrade ( #38328 )
...
* build: try to use dumi as doc tool
* docs: migrate demo structure to dumi way
* refactor: use type export & import
* docs: migrate demo previewer to dumi
* docs: create empty layout & components
* docs: apply custom rehype plugin
* docs: create empty extra pages
* docs: Add Banner component
* chore: move theme tsconfig.json
* docs: home page init
* docs: migrate header (#37896 )
* docs: header
* docs: update
* docs: home init
* clean up
* test: fix site lint
* chore: tsc ignore demo
* chore: dumi demo migrate script
* chore: cards
* docs: home layout
* docs: Update locale logic
* docs: fix getLink logic
* chore: fix ci (#37899 )
* chore: fix ci
* ci: remove check-ts-demo
* ci: preview build
* test: ignore demo.tsx
* chore: update script
* test: update snapshot
* test: update node and image test
* chore: add .surgeignore
* docs: layout providers (#37908 )
* docs: add components sidebar (#37923 )
* docs: sidebar
* docs: update docs title
* docs: update design doc
* chore: code clean
* docs: handle changelog page
* docs: add title
* docs: add subtitle
* docs: active header nav
* chore: code clean
* docs: overview
* chore: code clean
* docs: update intl (#37918 )
* docs: update intl
* chore: code clean
* docs: update favicons
* chore: update testPathIgnorePatterns
* chore: code clean
* chore: code clean
* chore: copy 404.html (#37996 )
* docs: Home page theme picker
* chore: Update migrate script
* docs: home page update
* docs: theme editor style
* docs: theme lang
* chore: update migrate.js
* docs: fix demo (#38094 )
* chore: update migrate.js
* docs: update md
* docs: update demo
* test: fix snapshot
* chore: move debug to code attr in migrate script
* chore: update md
Co-authored-by: PeachScript <scdzwyxst@gmail.com>
* feat: overview page
* feat: Migrate `404` page (#38118 )
* feat: migrate IconSearch component (#37916 )
* feat<site/IconSearch>: copy IconDisplay from site to .dumi
* feat<site/IconSearch>: change docs of icon
* feat<site/IconSearch>: tweak
* feat<site/IconSearch>: use useIntl instead of injectIntl
* feat<site/IconSearch>: fix ts type error
* feat<site/IconSearch>: use intl.formatMessage to render text
* docs: Adjust home btn sizw
* docs: Update doc
* feat: v5 site overview page (#38131 )
* feat: site
* fix: fix
* feat: v5 site overview page
* fix: fix path
* fix: fix
* fix: fix
* docs: fix margin logic
* feat: v5 site change-log page (#38137 )
* feat: v5 site change-log page (#38162 )
* docs: site redirect to home pag
* docs: theme picker
* docs: use react-intl from dumi (#38183 )
* docs: Theme Picker
* docs: update dumi config
* docs: home back fix
* docs: picker colorful
* docs: locale of it
* docs: update components desc
* docs: site of links
* docs: update components list
* docs: update desc
* feat: Migrate `DemoWrapper` component (#38166 )
* feat: Migrate `DemoWrapper` component
* feat: remove invalid comments and add comment for `key` prop
* docs: FloatButton pure panel
* chore: update demo
* chore: update dumi config
* Revert "chore: update demo"
This reverts commit 028265d3ba
.
* chore: test logic adjust to support cnpm modules
* chore: add locale alias
* docs: /index to /
* docs: add locale redirect head script
* chore: adjust compact
* docs: fix missing token
* feat: compact switch
* chore: code clean
* docs: update home
* docs: fix radius token
* docs: hash of it
* chore: adjust home page
* docs: Add background map
* docs: site theme bac logic
* docs: avatar
* docs: update logo color
* docs: home banner
* docs: adjust tour size
* docs: purepanl update
* docs: transfooter
* docs: update banner gif
* docs: content (#38361 )
* docs: title & EditButton
* docs: content
* chore: fix toc
* docs: resource page
* docs: transform resource data from hast
* docs: filename & Resource Card
* chore: enable prerender
* chore: remove less
* docs: toc style
* chore: fix lint
* docs: fix Layout page
* docs: fix CP page
* chore: update demos
* docs: workaround for export dynamic html
* chore: enable demo eslint
* docs: table style
* fix: header shadow
* chore: update snapshot
* fix: toc style
* docs: add title
* docs: Adjust site
* feat: helmet
* docs: site css
* fix: description
* feat: toc debug
* docs: update config-provider
* feat: use colorPanel
* fix: colorPanel value
* feat: anchor ink ball style
* feat: apply theme editor
* fix: code block style
* chore: update demo
* chore: fix lint
* chore: code clean
* chore: update snapshot
* feat: ts2js
* chore: description
* docs: site ready for ssr
includes:
- move client render logic to useEffect in site theme
- extract antd cssinjs to a single css file like bisheng
- workaround to support react@18 pipeableStream for emotion
* chore: bump testing lib
* docs: font size of title
* chore: remove react-sortable-hoc
* chore: update snapshot
* chore: update script
Co-authored-by: PeachScript <scdzwyxst@gmail.com>
Co-authored-by: MadCcc <1075746765@qq.com>
Co-authored-by: zqran <uuxnet@gmail.com>
Co-authored-by: TrickyPi <530257315@qq.com>
Co-authored-by: lijianan <574980606@qq.com>
2022-11-09 12:28:04 +08:00
二货机器人
d5cfd195dd
chore: merge master
2022-11-07 23:32:46 +08:00
afc163
f835c4bcc3
fix: Modal.confirm buttons should not be interative ( #38400 )
...
when modal is hiding
close #37329
2022-11-06 15:58:35 +08:00
MadCcc
9f88c1238a
feat: token update ( #38314 )
...
* feat: token update
* chore: update test
* chore: lint
* chore: code clean
* test: update test case
* feat: radius token update
* fix: form size
* chore: fix steps style
* chore: code clean
* chore: update test case
2022-11-01 15:06:38 +08:00
github-actions[bot]
6c6913c367
chore: auto merge branches ( #38278 )
...
chore: merge feature into master
2022-10-31 03:22:15 +00:00
hms181231
46c846a34c
test: Update modal test case ( #38288 )
2022-10-31 10:15:52 +08:00
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
ffc09a2a0d
feat: compact theme ( #38105 )
...
* feat: compact theme
* chore: code clean
* chore: code clean
* chore: show dynamic theme in preview
* chore: code clean
* feat: compact algorithm
2022-10-25 17:04:36 +08:00
MadCcc
2453e21744
fix: modal footer should be hidden if null ( #38138 )
2022-10-21 10:16:03 +08:00
MadCcc
630c24aa79
test: raise test covarage ( #38027 )
...
* test: raise test covarage
* chore: code clean
* chore: lock jest-dom to v28
* chore: lock jest-dom
* test: update setup
2022-10-14 20:01:50 +08:00
MadCcc
2471bf88aa
test: fix test
2022-10-11 21:33:29 +08:00
MadCcc
03a1ae427d
Merge branch 'feature' into next-merge-feature
2022-10-11 20:29:55 +08:00
二货机器人
5f28b2e5a4
chore: merge maaster
2022-10-11 14:54:30 +08:00
二货爱吃白萝卜
b7634968d7
test: Use SSR for testing demo ( #37890 )
...
* test: Use SSR for testing demo
* chore: fix lint
* test: align with react 18
2022-10-08 16:17:20 +08:00