Commit Graph

157 Commits

Author SHA1 Message Date
Jay Fong
b41301b168
chore(Tag): improve color types (#22999) 2020-04-07 22:10:07 +08:00
偏右
c6a1c3f743
test TransButton focus and blur (#22979) 2020-04-07 15:41:05 +08:00
Eric Wang
316b925f94
chore: Use unreachable exception in favor of type safety (#22933)
* Use unreachable exception in favor of type safety

* Add tests

* add test
2020-04-05 21:18:28 +08:00
Chiciuc Nicușor
f67d09b28e
fix: Extract type of the element of a tuple without indexing. (#22916)
* Extract type of the element of a tuple without indexing.

* Amend ElementOf<T> to also support readonly arrays.
2020-04-04 12:32:56 +08:00
偏右
b369717181
chore: 🦄 Add eslint-plugin-unicorn (#22883)
* 🦄 Add eslint-plugin-unicorn

* fix eslint errors

* fix eslint errors

* fix lint demo

* fix lint demo
2020-04-03 15:02:11 +08:00
偏右
aca2656721
fix: ⬆️ BackTop not working in iframe (#22788)
* docs: 🎬 improve BackTop demo

* fix Backtop not working in iframe

* fix lint

* fix ci

* fix ci

*  add more test case

*  add more test cases

* fix ci
2020-04-01 17:38:21 +08:00
偏右
a399d05ace
Merge pull request #22435 from ant-design/master
chore: 🔀 merge master into feature
2020-03-20 16:04:26 +08:00
偏右
66f67051af
test: improve test for requestAnimationFrame (#22433)
* test: improve test for requestAnimationFrame

*  fix test coverage

* fix test case

* fix test case
2020-03-20 15:07:47 +08:00
偏右
813a93ab24
test: Add test cases for wave (#22393)
*  Add test cases for wave

* refactor code
2020-03-19 19:27:02 +08:00
Gibson C
428f743b50
feat: Support render props for <Popover/> and <Popconfirm/> (#22034)
* feat: Support render props for <Popover/>

* feat: Support render props for <Popconfirm/>

* docs: Update Popconfirm docs
2020-03-10 13:57:02 +08:00
二货机器人
d02c486052
feat: Modal support hooks (#20949)
* init hooks

* portal it in

* children with 2 context demo

* Remove config since not more second demo

* Quit with same Component for logic reuse

* add rest functions

* use localeReceiver

* use localeReceiver

* update test case

* fix lint

* update docs

* update demo title
2020-02-03 13:00:35 +08:00
偏右
37b61c1ada 🐛 Fix Grid initial gutter (#20762)
like SSR situation
2020-01-08 17:14:29 +08:00
zombiej
e38a88181d chore: Merge 4.0-prepare 2020-01-06 11:13:39 +08:00
偏右
7dea548551 refactor: 🗑 remove deprecated or compatibility css code (#20547)
* 🗑️ remove deprecated or compatibility css code

*  update snapshots

*  fix test case and compile error

*  fix stylelint
2019-12-31 11:54:39 +08:00
二货机器人
4047e2632e
fix: responsiveObserve init miss sizing (#20400)
* fix: init miss sizing

* update mock test
2019-12-23 23:24:47 +08:00
偏右
8501b708ea refactor: 📦 smaller bundlesize limit (#20356)
* 📦 samller bundlesize limit

* 🗑️ remove React static PropTypes

* 🗑️ remove react-lifecycles-compat

* 🗑️ remove matchMedia polyfill

* 🗑️ remove Transfer buggy lazy prop

* 🗑️ remove enquire.js dep

* 🗑️ remove Transfer lazy related code and fix ci

* 🗑️ remove used dom-closest

*  replace dom-scroll-into-view to scroll-into-view for bundle size

*  fix eslint

* 🆙 upgrade browserslist

*  fix test cases

* 🗑️ remove @ant-design/create-react-context

* 🆙 upgrade @ant-design/bisheng-plugin

* 🆙 upgrade rc-slider

*  fix ci

* 🆙 upgrade rc-tabs and rc-mentions

* 📦 scroll-into-view -> scroll-into-view-if-needed

* remove unused devDep

* docs: 📝 update instruction about IE9/10

* 📦 reduce css bundle size by drop IE9/10 support

* 🆙 upgrade rc-upload

* 🗑️ drop unused swing motion css

*  update upload snapshots

* 📦 lift css bundlesize limit to 55kb
2019-12-23 18:33:08 +08:00
QingLance
3ddc3a267a feat: Preset status color into Tag (#19399)
* feat: Tag add status props

* feat: change solution for status tag

* fix: fix coding specification issues

* fix coding specification issues in demo
2019-10-25 23:17:25 +08:00
zombiej
e129e8dc7e merge master 2019-10-08 15:04:00 +08:00
二货机器人
4680ddc009
fix: Typography warning for ref error (#19074)
* Revert "fix: Typography funtion compoent use Ref console log warning (#19066)"

This reverts commit 3d378f2fd8.

* fix: Typography warning for ref

* not crash on react 15

* still use class if react15

* fix ts define

* clean up

* react 15 lock ref obj

* Use rc-util findDOMNode instead
2019-10-01 01:06:09 -05:00
zombiej
867910e6f4 merge master 2019-09-29 18:11:24 +08:00
二货机器人
e07bba91fa
chore: replace resizeObserver with rc-resize-observer (#19057)
* replace resizeObserver with rc-resize-observer

* fix affix lint

* fix es lint
2019-09-29 04:56:56 -05:00
zombiej
f30b92ec21 merge master 2019-09-17 19:31:37 +08:00
ztplz
fe30adc18d Improve code for better compatibility 2019-09-16 20:11:20 +08:00
愚道
2f5537a65b Merge branch 'master' into chore/mergemaster 2019-09-02 10:47:32 +08:00
zombiej
3d8a4f3612 merge master 2019-08-29 23:41:46 +08:00
Tay Zheng Yu
414de6b5c9 fix next.js serverless error (#18541)
https://github.com/zeit/next.js/issues/8151
2019-08-29 13:57:33 +08:00
偏右
8345554cd7
Merge pull request #18324 from ant-design/master
chore: Merge master into feature
2019-08-17 22:39:04 +08:00
shao
4968052574 test: fix lint fail 2019-08-16 18:15:28 +08:00
shaodahong
83022a4cff test: try mock Date.now to reduce test time 2019-08-16 17:59:28 +08:00
shaodahong
b277a963f0 fix: eslint fail 2019-08-16 17:59:27 +08:00
shaodahong
b1cd8e32d9 test: add easings.ts test suite 2019-08-16 17:59:26 +08:00
shaodahong
3b692bc8b6 test: fix test fail 2019-08-16 17:59:24 +08:00
shao
3ab3b014e0 test: use jest.useFakeTimers replace sleep 2019-08-16 17:59:22 +08:00
shao
554d8cb3e3 fix: review change 2019-08-16 17:58:43 +08:00
shao
d45dc1b347 feat(Anchor): fix test fail 2019-08-16 17:58:41 +08:00
shao
a266f45395 feat(Anchor): remove scrollTo option 2019-08-16 17:58:40 +08:00
shao
32b09fc8f3 feat(Anchor): perf easings export 2019-08-16 17:58:39 +08:00
shao
5f153c1d83 fix: remove Easings easeOutCubic func 2019-08-16 17:58:38 +08:00
shao
b6c5db845c fix: modify naming 2019-08-16 17:58:37 +08:00
shao
fcd39e574c fix: modify naming 2019-08-16 17:58:36 +08:00
shao
06abd9503c fix: some bad writing 2019-08-16 17:58:35 +08:00
shao
ccef30885a perf: optimization BackTop and Anchor components scrollTo func 2019-08-16 17:58:34 +08:00
zombieJ
fd284ecc47
fix: ResizeObserver should ignore shaking (#18289)
* fix: ResizeObserver should ignore shaking

* fix lint

* fix domHook
2019-08-15 15:52:36 +08:00
vagusX
ab9d8589a3 feat: use warning from rc-util (#18287) 2019-08-15 15:08:53 +08:00
afc163
760853e239 💄 eslint for all 2019-08-14 18:21:24 +08:00
afc163
5e99ed7bbe Fix eslint warnings 2019-08-12 19:04:33 +08:00
afc163
2bddeef1e5 🆙 upgrade eslint-config-airbnb 2019-08-12 19:04:30 +08:00
zombiej
b30dc1c3bc merge master 2019-08-06 17:46:53 +08:00
orzyyyy
47fd80c8ad fix: disable next line instead of the whole file 2019-08-06 15:36:13 +08:00
orzyyyy
63b33d4020 fix: unexpected changes of snapshots 2019-08-06 15:36:12 +08:00