Commit Graph

579 Commits

Author SHA1 Message Date
zombiej
339246d316 chore: Merge master 2020-05-13 11:59:15 +08:00
偏右
c19685e0ea
fix: Child of Button should be interactive (#24095)
close #24090
2020-05-12 22:29:10 +08:00
afc163
acb4cb6859 Merge feature into master 2020-05-09 20:40:12 +08:00
偏右
4cb70b6f16
Merge pull request #23893 from ant-design/master
chore: merge master into feature
2020-05-06 10:58:50 +08:00
偏右
c5bcf57537
feat: 💄 Add text type Button (#22552)
* 🆕 Add text type Button

`<Button type="text" />`

close #15892

* Add test cases

* missing type

* missing type

* fix missing type

* Update components/button/index.zh-CN.md

Co-Authored-By: zefeng <zefengbao@outlook.com>

Co-authored-by: Amumu <yoyo837@hotmail.com>
Co-authored-by: zefeng <zefengbao@outlook.com>
2020-05-06 10:15:33 +08:00
twoye
2b2a6a3d22
Update index.zh-CN.md (#23868)
* Update index.zh-CN.md

* Update index.zh-CN.md

Co-authored-by: 偏右 <afc163@gmail.com>
2020-05-05 13:17:50 +08:00
二货机器人
dff19af744
chore: Update Popconfirm & Modal okType type (#23867)
* chore: Update Popconfirm & Modal okType type

* add test case

* update test case
2020-05-05 12:03:16 +08:00
xrkffgg
bd692bef71
style: optimize button loading style in rtl (#23776)
* style: optimize button loading style in rtl

* opt rtl

* reback
2020-05-02 09:00:47 +08:00
骗你是小猫咪
e34fc4a7c4
improve: Button loading smooth (#23783) 2020-04-30 17:18:24 +08:00
zombiej
2c531a827d merge master 2020-04-29 11:29:26 +08:00
偏右
c3c2c157d0
fix: correct Button type="danger" TypeScript definition (#23709)
* fix: remove Button type danger in TypeScript

close #23708

* docs: fix Table dataSource type in document

close #23697

* add warning about type="danger"

* reverse button type warning logic
2020-04-28 16:14:38 +08:00
xrkffgg
a823400b79
docs: optimize site of components 1 (#23670)
* docs: optimize site of components 1

* fix: lint

* fix: use space

* fix: snap

* revert: button demo

* fix snap
2020-04-27 21:40:52 +08:00
hengkx
9868a4dc59 Merge branch 'feature' into mergefeature 2020-04-27 21:02:16 +08:00
偏右
5e4d8f10ac
🐛 Fix Button icon only align issue (#23671)
https://github.com/ant-design/ant-design/pull/23670#discussion_r415662549
2020-04-27 17:54:13 +08:00
诸岳
a400014efe Merge branch 'master' of github.com:ant-design/ant-design into merge-master 2020-04-26 17:12:58 +08:00
偏右
89bccf5752
🐛 Fix Button loading style of icon-only (#23614)
close #23610
2020-04-26 16:21:07 +08:00
诸岳
f955620601 chore: Merge master branch and fix conflicts 2020-04-26 13:34:11 +08:00
Tom Xu
7379cfa4c2
feat: button support ref (#23571)
* feat: button support ref

* improve

* improve button displayName
2020-04-25 20:45:28 +08:00
二货机器人
22ffa61da0
fix: Legacy button group style (#23590) 2020-04-25 18:03:35 +08:00
xrkffgg
e2dacde754
style: fix button loading rtl (#23399) 2020-04-20 16:25:43 +08:00
Tom Xu
09e69c385e
refactor(button): rewrite with hook (#23367) 2020-04-18 13:06:04 +08:00
Eric Wang
7bc3d4f222
chore: Refactor the button test to use typescript (#22953)
* Refactor the button test to use typescript

* update tsconfig.json

* Change file name as a workaround

* update antd-tools
2020-04-13 13:36:23 +08:00
二货机器人
410de6112f
fix: Button loading switch animation (#23102)
* init

* motion it

* update snapshot

* adjust speed

* update snapshot

* Update index.less

* fix opacity mask

Co-authored-by: 偏右 <afc163@gmail.com>
2020-04-10 15:39:07 +08:00
afc163
e1b567d3cf fix lint 2020-04-06 12:15:28 +08:00
Eric Wang
095e21220f
chore: Introduce customer jest match to support matchRenderedSnapshot (#22947)
* Introduce customer jest match to support matchRenderedSnapshot

* lint:tsc stop emiting
2020-04-06 12:05:38 +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
偏右
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
zombiej
1ec7b2c068 merge master 2020-03-29 14:40:29 +08:00
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>
2020-03-29 10:39:46 +08:00
Mateusz Burzyński
2cb516b5b7
fix: narrow down types of string literals in a few defaultProps declarations (#22686) 2020-03-28 19:29:02 +08:00
Rustin
7b94e0bfb2
refactoring: replace deprecated React.SFC with React.FunctionComponent (#22691)
* refactor: replace deprecated React.SFC with React.FunctionComponent

* refactoring: use typedef FC
2020-03-28 11:56:57 +08:00
xrkffgg
f2c0ea3671
style: optimization Dropdown rtl style (#22519) 2020-03-23 16:39:30 +08:00
偏右
154d733fa1
Update index.zh-CN.md 2020-03-23 12:28:41 +08:00
偏右
4fcc6f66a7
fix: 🐛 empty disabled Button align issue (#22461)
* chore: add .ant-tooltip-disabled-compatible-wrapper

* fix: empty button align issue
2020-03-21 14:30:40 +08:00
xrkffgg
7f4c7b5978
style: fix rtl.less place and name (#22384) 2020-03-19 12:13:24 +08:00
xrkffgg
a4cf8430fd style: fix button rtl.less 2020-03-16 17:18:14 +08:00
xrkffgg
839a19af58
style: add rtl.less of button\typography\grid (#22252) 2020-03-16 15:16:05 +08:00
偏右
125c154ffe
💄 Avoid negative padding in less (#22003)
close #22003
2020-03-09 12:04:12 +08:00
二货机器人
adb323cec2
chore: icons save bundle size without treeShaking (#21752)
* alert

* more icons

* another grouping

* all done
2020-03-02 12:09:38 +08:00
GJ Wang
f78332171e
docs: fix size props (#21724) 2020-03-01 18:24:59 +08:00
偏右
aeb4643428
docs: 📝 optimize button doc image style (#21704)
* Update index.zh-CN.md

* Update index.en-US.md
2020-02-29 16:15:43 +08:00
二货机器人
06afc9cd9c
fix: Button.Group size style issue (#21307)
* remove useless fixing line-height

* update snapshot
2020-02-10 11:32:37 +08:00
Rick Zhou
4fa525b8a0
avoid reading innerText (#21217)
this resolves https://github.com/ant-design/ant-design/issues/21160
2020-02-04 17:10:28 +08:00
二货机器人
92998e67ef
refactor: Button disable autoInsertSpaceInButton will not calculate text length (#21176)
* skip check

* add test case
2020-02-02 18:03:38 +08:00
二货机器人
3fa274190e
Remove magic number of style align (#20869)
* fix: Adjust baseline align

* clean up

* Select style

* fix lint
2020-01-13 19:36:27 +08:00
信鑫-King
27f1835965 chore: dark site images address (#20796)
* fix: dark site images address

* fix: snapshot
2020-01-09 15:28:52 +08:00
zombiej
ff6c91537d docs: Fix typo 2020-01-06 10:38:51 +08:00
信鑫-King
cb528da8ed
fix: dark theme in 4.0 (#20642)
* fix: rtl direction bug

* 📝 dark theme usage docs

* fix: sketch download

* fix: theme dark

* 📝 empty image

* fix: dark form with mixture components like picker, input

* 📝 update sketch release download

* fix: remove inline-menu sub shadow
2020-01-03 19:00:01 +08:00
afc163
b15136f41f 📝 optimize button usage 2020-01-03 15:38:52 +08:00
afc163
7e1dc348a9 update snapshots 2020-01-03 15:38:51 +08:00
afc163
e1262b0d1d 📝 optimize button docs and demos 2020-01-03 15:38:50 +08:00
二货机器人
5ebac5f9d6
feat: Form & ConfigProvider support component size (#20570)
* feat: Support form & ConfigProvider set component size

* update snapshot

* fix lint

* rm only

* update doc

* Table & Card support sizing

* Update snapshot

* fix lint

* update snapshot

* flush rest snapshot
2020-01-03 13:38:16 +08:00
Saeed Rahimi
676de29eb4 feat: added rtl direction to all of ant-design components (#19380)
* rtl demo change en-us description

* change bundlesize css limit

* RTL: modal component (exclude confirm)

* RTL: table component

* RTL: pagination component

* cleanup rtl demo

* fix pagination.tsx compile error

* RTL: button and button-group

* RTL: Steps component

* fix rtl demo style

* fix input suffix icon alignment

* fix select component arrow issue

* RTL: form component

* add pagination rtl test

* fix test lint error

* RTL: rate component

* RTL: radio and radio group components

* RTL: tree-select component

* some fixes to RTL components

* RTL: badge component

* fix rtl issue in inline form

* fix input component rtl padding issue

* fix switch component text rtl issue

* fix table grouped header text-align

* add rtl support to whole demo with RTL button

* Update rtl demo responsive

* RTL: page-header component

* RTL: typography component

* RTL: Dropdown (Partial)

* update config-provider doc

* RTL: input component

* RTL: select component

* RTL: switch component

* RTL: tree component

* fix rtl demo lint

* rtl demo change en-us description

* RTL: modal component (exclude confirm)

* RTL: table component

* RTL: pagination component

* cleanup rtl demo

* RTL: button and button-group

* RTL: Steps component

* fix rtl demo style

* fix input suffix icon alignment

* RTL: form component

* RTL: rate component

* RTL: radio and radio group components

* RTL: tree-select component

* RTL: badge component

* fix rtl issue in inline form

* fix input component rtl padding issue

* add rtl support to whole demo with RTL button

* fix lost changes after rebase

* fix lint errors

* RTL: Transfer Component

* RTL: upload component

* RTL: update avatar demo

* RTL: comment component

* RTL: collapse component

* RTL: carousel component

* update snapshots

* RTL: Card component

* RTL: descriptions component

* RTL:  Empty component

* RTL: list component

* RTL: slider component

* slider component import/order

* add shared rtlTest

* RTL: Statistic component

* RTL: tooltip components

* RTL: popover component

* RTL: timeline component

* RTL: tag component

* RTL: alert component

* RTL: drawer component

* RTL: Tab component

* change direction definition

* RTL: progress component

* input.tsx, remove duplicate after rebase

* fix demo.less after rebase

* fix ant-row-rtl after rebase

* fix upload issues in rtl

* badge rtl demo margin fix

* fix: tabs with icon margin

* fix: radio-wrapper margin

* fix: table component after rebase

* fix: centered modal text-align

* update slider snapshot

* RTL: popconfirm component

* RTL: back-top component

* RTL: spin component

* RTL: result component

* RTL: skeleton component

* RTL: menu component

* RTL: time-picker component

* RTL: calendar component

* RTL: date-picker component

* RTL: home page

* update snapshots

* test: add auto-complete rtl test

* test: add avatar component rtl tests

* test: add badge component rtl tests

* test: add breadcrumb component rtl tests

* test: add button components rtl tests

* test: add card component rtl tests

* test: add carousel component rtl tests

* test: add cascader component rtl tests

* test: add checkbox component rtl tests

* test: add collapse component rtl tests

* test: add comment component rtl tests

* test: add dropdown component rtl tests

* test: add empty component rtl tests

* test: add form component rtl tests

* test: add grid component rtl tests

* test: add input component rtl tests

* test: add search component rtl tests

* test: add input-number component rtl tests

* test: add layout component rtl tests

* test: add list component rtl tests

* test: add mentions component rtl tests

* test: add modal component rtl tests

* test: add page-header component rtl tests

* test: add pagination component rtl tests

* test: add radio component rtl tests

* test: add rate component rtl tests

* test: add select component rtl tests

* test: add slider component rtl tests

* test: add steps component rtl tests

* test: add switch component rtl tests

* test: add table component rtl tests

* test: add transfer component rtl tests

* test: add tree component rtl tests

* test: add tree-select component rtl tests

* test: add typography component rtl tests

* test: add upload component rtl tests

* test: add affix component rtl tests

* update calendar tests

* increase css file maxSize

* update snapshots

* remove workflows to allow push

* remove duplicate reverse prop from slider

* fix: remove table demo from config-provider

* fix: remove table demo from config-provider

* fix lint error

* Added direction property to ConfigProvider

* cascader rtl tests added

* update config-provider doc

* RTL: grid system

* RTL: input component

* RTL: switch component

* fix rtl demo lint

* RTL: modal component (exclude confirm)

* RTL: table component

* RTL: pagination component

* cleanup rtl demo

* fix pagination.tsx compile error

* RTL: button and button-group

* RTL: Steps component

* fix rtl demo style

* RTL: form component

* add pagination rtl test

* RTL: rate component

* RTL: radio and radio group components

* RTL: tree-select component

* RTL: badge component

* fix rtl issue in inline form

* fix input component rtl padding issue

* add rtl support to whole demo with RTL button

* RTL: input component

* RTL: select component

* RTL: switch component

* RTL: tree component

* fix rtl demo lint

* rtl demo change en-us description

* RTL: modal component (exclude confirm)

* RTL: table component

* RTL: pagination component

* cleanup rtl demo

* RTL: button and button-group

* RTL: Steps component

* fix rtl demo style

* fix input suffix icon alignment

* RTL: form component

* RTL: rate component

* RTL: radio and radio group components

* RTL: tree-select component

* RTL: badge component

* fix rtl issue in inline form

* fix input component rtl padding issue

* add rtl support to whole demo with RTL button

* input.tsx, remove duplicate after rebase

* fix ant-row-rtl after rebase

* update snapshots

* test: add cascader component rtl tests

* test: add pagination component rtl tests

* update calendar tests

* update snapshots

* fix: remove table demo from config-provider

* fix: remove table demo from config-provider

* fix lint error

* update direction.md icons

* dropdown and cascader default placement in rtl

* update snapshots

* fix lint errors

* remove duplicate import

* update snapshots

* update snapshot

* update calendar snapshot

* update snapshots

* integrate with new rc-picker

* update snapshots

* fix lint errors

* update snapshot

* update snapshots

* update snapshots

* update snapshots :|

* update snapshots

* fix compile error.

* fix typo after rebase

* update snapshots

* remove workflows to allow push

* update snapshots

* update snapshots

* fix dist error

* front-page css fix

* update snapshots

* fix lint and test issues

* restore cascader index.less

* update snapshots

* fix logo in rtl and demo controls

* ci errors

* resolve steps/index.tsx conflicts

* tooltip family demo remove inline style

* resolve table/Table.tsx conflicts

* resolve modal/Modal.tsx conflicts

* resolve cascader/index.tsx conflicts

* add workflows from upstream

* update snapshots

* revert logo to default

* fix codebox demo direction of placements

* resolve tooltip overlayClassName conflicts

* update snapshots

* update popover test

* fix: cascader miss popupClassName

* fix: fix select missing dropdownClassName

* chore: Update snapshot

* chore: Adjust menu use rtl logic

* docs: Update demo line color

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2020-01-02 19:10:16 +08:00
信鑫-King
f88f383be6
fix: dark site in Form and iframe change (#20573)
* fix: suggestion dark bg

* fix: demo use autoComplete="off"

* feat: support iframe theme change

* fix: iframe dark theme

* upd: test snapshot

* fix: lint

* fix: lint

* tweak: use theme-switcher to handle iframe and parent

* feat: support iframe theme change

* fix: dark shadow

* fix: layout style

* fix: dark site style

* fix: snapshot
2020-01-02 17:54:11 +08:00
ycjcl868
0903e3924c fix: button dark hover,active 2019-12-31 15:12:18 +08:00
ycjcl868
f230ac58d6 fix: site dark, tweak style 2019-12-31 15:12:18 +08:00
ycjcl868
7c3beabd4c fix: button ghost color 2019-12-27 10:16:02 +08:00
ycjcl868
0306096356 chore: update snapshot 2019-12-26 15:15:46 +08:00
ycjcl868
bd2633d303 Merge 4.0-prepare into feat-dark-palette 2019-12-25 21:13:07 +08:00
ycjcl868
4dc860decf Merge origin/4.0-prepare into feat-dark-palette 2019-12-25 19:32:38 +08:00
zombiej
9e8ce489e9 merge master 2019-12-25 19:09:17 +08:00
骗你是小猫咪
0b0fd9a62c refactor(Button): Back to inline-block (#20440) 2019-12-25 17:08:34 +08:00
ycjcl868
52e9c20b10 Merge origin/4.0-prepare into feat-dark-palette 2019-12-24 10:42:07 +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
ycjcl868
6477b46fa8 fix: data-theme 2019-12-23 17:16:26 +08:00
ycjcl868
194bf3603f fix: site code action icon 2019-12-23 16:36:40 +08:00
骗你是小猫咪
5b29913174
refactor(Button): base style use flex (#20300)
* improvement(Button): base style use flex

* remove unnecessary style

* add vertical-align

* fix style lint order

* remove vertical-align and improve global line-height

* change line-height-base

* update form debug demo
2019-12-21 22:01:47 +08:00
vagusX
e0aeb4f4a9 fix: poweroff icon in button (#20338) 2019-12-19 11:51:12 +08:00
vagusX
871ab3da81 feat: add waring for icon props in Avatar, Button, Modal.method and Result (#20226) 2019-12-13 10:18:12 +08:00
ycjcl868
e15b9c5f37 fix: dark button color 2019-12-04 20:14:28 +08:00
偏右
43bf7965de
🐛 Fix Button text not align center in Chrome (#20059)
revert solution of 05181d552e

close #19972
close #20058
2019-12-03 18:06:07 +08:00
ycjcl868
e2251f515b fix: @theme condition 2019-12-03 15:39:32 +08:00
ycjcl868
5590ba0d4e Merge 4.0-prepare into fix-dark-theme 2019-12-01 22:46:15 +08:00
ycjcl868
327011da77 feat: @theme dark, default 2019-12-01 22:28:35 +08:00
zombiej
d76283f2b9 merge master 2019-12-01 21:46:17 +08:00
ycjcl868
b6b788b2e0 fix: stylelint fix 2019-11-29 09:04:39 +00:00
ycjcl868
09c00720b8 feat: add btn-default-ghost 2019-11-29 09:04:38 +00:00
ycjcl868
961cfeac43 test: update snapshot 2019-11-29 15:20:34 +08:00
ycjcl868
864ccc436e fix: button danger link 2019-11-29 15:09:17 +08:00
ycjcl868
beaf521835 fix: remove button group demo 2019-11-29 14:31:03 +08:00
ycjcl868
6ca5628417 Merge 4.0-prepare into fix-button-demo 2019-11-29 14:27:47 +08:00
二货机器人
64b905e9bd
chore: Update @ant-design/icons deps (#19979)
* update icons deps

* update all icon ref

* fix lint

* update snapshot
2019-11-28 12:34:33 +08:00
骗你是小猫咪
6030431121 fix(Button): Button disabled with loading not prevent pointer events (#19958) 2019-11-27 12:41:47 +08:00
ycjcl868
1d0f97d0a9 fix: lint 2019-11-25 07:02:24 +00:00
ycjcl868
ab15b3a84c fix: remove danger warning 2019-11-25 07:02:24 +00:00
ycjcl868
37a85366f3 feat: add Button danger 2019-11-25 07:02:24 +00:00
ycjcl868
3a6c76ecc3 feat: Button add danger-default type 2019-11-25 07:02:24 +00:00
ycjcl868
0e1998f643 feat: Button danger-link 2019-11-25 07:02:24 +00:00
ycjcl868
b01bed3f6f upd: snapshot 2019-11-25 07:02:24 +00:00
ycjcl868
ec0dba9323 fix: button group 2019-11-25 07:02:24 +00:00
ycjcl868
8f4c983e5a fix: Button demo icon search use tooltip 2019-11-25 07:02:24 +00:00
ycjcl868
86db97b055 fix: remove Button dashed 2019-11-25 07:02:24 +00:00
ycjcl868
55e34f6ac1 fix: icon error 2019-11-25 07:02:24 +00:00
zhangyanling77
eb91cbdfab feat: Button & Icon remove version column in 4.0-repare (#19845) 2019-11-21 10:16:58 +08:00
zombiej
7a12b2b1ae merge master 2019-10-30 16:28:28 +08:00
afc163
1d1e197527 🐛 Fix Icon Button align issue
close #19392
2019-10-28 15:26:06 +08:00
vagusX
d25dff397d Fix/legacy icon usage (#19446)
* fix: legacy icon usage in progress component demo

* fix: legacy icon usage in button test cases
2019-10-27 21:59:16 +08:00
Aaron Cawte
693d5a1434 General components doc tweaks (#19416)
* Documentation - Button Component

* Documentation - Icon Component

* Documentation  - Typography component
2019-10-25 09:56:30 +08:00
zombiej
e129e8dc7e merge master 2019-10-08 15:04:00 +08:00
afc163
47dee4c7d7 fix eslint problems 2019-10-05 18:02:16 +08:00