Commit Graph

104 Commits

Author SHA1 Message Date
AliRezaBeigy
1e91a4961c
chore: Compatible for @types/react@18 (#35075)
* chore: Compatible for @types/react@18

* chore: Compatible for @types/react@18
2022-04-18 18:39:23 +08:00
afc163
0f0e2f9f43
docs: simplify demo code, #30853 (#35050) 2022-04-15 16:20:56 +08:00
MadCcc
6776bb8916
docs: demo support react18 (#34843)
* docs: update demo

* chore: add script

* test: fix demo test

* docs: convert demos

* chore: move script

* test: remove react-dom import

* chore: update deps

* docs: update riddle js

* test: fix image test

* docs: fix riddle demo
2022-04-03 23:27:45 +08:00
zhao-huo-long
5588dae212
fix: Descriptions number 0 can't render span (#34696)
* fix: number 0 can't render span

* Update Cell.tsx

* chore: add test case
2022-03-25 09:38:55 +08:00
zombiej
6ed4d855b1 Merge remote-tracking branch 'origin/master' into feature-merge-master 2021-12-27 10:45:42 +08:00
afc163
0edf04253e
fix: Descriptions default overflow value (#33392)
close #33316
2021-12-23 16:40:36 +08:00
二货机器人
2df11184f4
test: Demo check popup content (#33378)
* auto demo

* chore: update demo snapshot

* fix: trigger mock ref logic

* chore: try 2 test case

* chore: more snapshot

* chore: update snapshot

* chore: fix ts

* chore: split test

* test: Update test case

* chore: fix test order
2021-12-23 11:51:10 +08:00
zombiej
dd1670a3b4 chore: merge master 2021-11-26 15:19:31 +08:00
dependabot[bot]
20d5502193
chore(deps-dev): bump eslint-config-airbnb from 18.2.1 to 19.0.0 (#32824)
* chore(deps-dev): bump eslint-config-airbnb from 18.2.1 to 19.0.0

Bumps [eslint-config-airbnb](https://github.com/airbnb/javascript) from 18.2.1 to 19.0.0.
- [Release notes](https://github.com/airbnb/javascript/releases)
- [Commits](https://github.com/airbnb/javascript/compare/eslint-config-airbnb-v18.2.1...eslint-config-airbnb-v19.0.0)

---
updated-dependencies:
- dependency-name: eslint-config-airbnb
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* chore: code style

* memoize-one

* add comment

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* improve useMemo deps

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: afc163 <afc163@gmail.com>
2021-11-26 12:18:21 +08:00
dependabot[bot]
b445baa001
chore(deps-dev): bump stylelint-config-prettier from 8.0.2 to 9.0.2 (#32451)
* chore(deps-dev): bump stylelint-config-prettier from 8.0.2 to 9.0.2

Bumps [stylelint-config-prettier](https://github.com/prettier/stylelint-config-prettier) from 8.0.2 to 9.0.2.
- [Release notes](https://github.com/prettier/stylelint-config-prettier/releases)
- [Commits](https://github.com/prettier/stylelint-config-prettier/compare/v8.0.2...v9.0.2)

---
updated-dependencies:
- dependency-name: stylelint-config-prettier
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: autofix stylelint errors

* chore: autofix stylelint errors

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: afc163 <afc163@gmail.com>
2021-10-13 15:38:59 +08:00
二货机器人
f0d9abb0ff
fix: antd.varaible.less mix with default theme (#32279) 2021-09-24 16:30:28 +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
Junwoo Ji
05d7176c74
docs: fix typo in descriptions API (#31742) 2021-08-10 15:38:25 +08:00
afc163
b9390b441c
fix: Desciptions border missing when inside Table (#31307)
close #31274
2021-07-08 13:08:21 +08:00
lisenenkov
6b419bd5ec
fix: Descriptions style import issue (#30602)
With @import '../../style/themes/default'; theme customization doesn't work
2021-05-24 17:58:18 +08:00
xrkffgg
7f15e7f38e
fix: Descriptions labelStyle unsuccessful (#29942)
* fix: Descriptions labelStyle unsuccessful

* use hook

* Update components/descriptions/demo/style.md

* fix lint

* fix ts
2021-03-30 17:38:50 +08:00
Tom Xu
e5d908a078
docs: format api (#29537) 2021-03-01 19:20:48 +08:00
二货机器人
a211756e6b
feat: desc support root level label & content style (#28613) 2020-12-30 17:08:43 +08:00
einq7
fa376f9c82
docs: prettier markdown (#28510) 2020-12-24 12:02:57 +08:00
dependabot[bot]
775d1800bb
chore(deps-dev): bump eslint-config-prettier from 6.15.0 to 7.0.0 (#28253)
* chore(deps-dev): bump eslint-config-prettier from 6.15.0 to 7.0.0

Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 6.15.0 to 7.0.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v6.15.0...v7.0.0)

Signed-off-by: dependabot[bot] <support@github.com>

* chore: fix eslint style

* chore: prettier code style

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: afc163 <afc163@gmail.com>
2020-12-09 17:12:32 +08:00
二货机器人
6fcebabd8b
Merge pull request #27738 from ant-design/feature
chore: merge feature into master
2020-11-30 16:17:12 +08:00
xrkffgg
e1663d1fc2
style: optimize descriptions border in rtl (#28010) 2020-11-26 09:58:32 +08:00
二货机器人
093a458026
feat: Support label & content style of Desc (#27897)
* feat: Support label & content style of Desc

* test: Update snasphot

* docs: fix desc
2020-11-20 13:41:58 +08:00
二货机器人
59a133274b
fix: Desc label with flex node (#27375)
* fix: Desc label with flex node

* test: Update snapshot

* rm useless css

* more style

* rm useless code
2020-10-26 18:40:26 +08:00
骗你是小猫咪
6fba4d1136
test: demo -> ui test (#24475)
* test: demo -> ui test

* improve comment image width

* use argos-ci

* use by cicleci

* fix circle run

* rebase master

* try pipeline var

* use another branch var

* fix commit id

* ignore image test file

* remove useless report

* fix test coverage
2020-10-23 18:50:46 +08:00
Tom Xu
b5dc079228
chore: improve code style (#27266) 2020-10-21 10:35:06 +08:00
Tom Xu
d44f404eae
docs: sort api (#27251)
* chore: improve sort api table scripts

* sort api

* add ignore

* Revert "sort api"

This reverts commit 343505d5f0.

* sort api

* Update package.json

* sort api

* Delete sort-api.js

* sort api

* sort api

* sort api

* fix

* Update index.zh-CN.md

* fix input-number

* fix input-number

* sort func

* fix

* Method moved to the end

* carousel method
2020-10-21 10:33:43 +08:00
KingxBeta
d4fd8f2698
style(descriptions): fix content overflow (#27195)
* fix: .ant-descriptions-item-content add word-break:break-word; style

* Update index.less

修改顺序

Co-authored-by: wangyk <wangyikan@mchz.com.cn>
2020-10-16 22:28:02 +08:00
Tom Xu
5f2588ffd1
docs: improve api type docs (#27038) 2020-10-09 10:08:52 +08:00
Tom Xu
3ab71222ef
style: fix description item long text (#26820)
* style: fix description item long text

* Update index.less
2020-09-19 23:17:42 +08:00
Alex
bf45c4c1b0
style: 💄 className prop ordering #26594 (#26602)
close #26594
2020-09-06 13:07:39 +08:00
陈帅
f928baf52a
fix: Optimize the display of elements of the block type. (#25903)
* add flex style

* add new demo

* update snapshot

* Merge branch feature into fix-descriptions

* update snapshot

* update snapshot
2020-08-06 14:32:13 +08:00
WuJiali
4ec1b8ae09
feat: Description list plus extra operation area (#25512)
* feat: Description list plus extra operation area

* 修复title与extra对齐,加版本等问题

* 去掉basic里extra

* 修改extra样式

* title与extra都没有的时候不展示header

* 更新测试用例

Co-authored-by: chenshuai2144 <qixian.cs@outlook.com>
2020-07-14 20:37:21 +08:00
xrkffgg
69416c904a
docs: format api calendar/descriptions/empty (#25366) 2020-07-01 22:37:55 +08:00
Harutaka Kawamura
87875eeb8a
fix: allow selecting only value on double click on Descriptions.Item (#24983)
* Wrap children with div

* Add display: inline

* Revert changes

* Wrap content by div

* Revert "Wrap content by div"

This reverts commit 90e827af1b.

* Insert invisible space

* Insert <i> before <span> for content

* Use @afc163's approach
2020-06-16 14:22:58 +08:00
07akioni
6899c327c7
fix: List label text not start aligned in safari (#25018) 2020-06-16 13:35:21 +08:00
偏右
882cec62d6
docs: 🌈 Add Components overview page (#24491)
* docs: Add components overview page

* fix detail

* remove ContributorsList form overview page

* fix components url

* improve code style

* remove extra file

* fix detail

* fix lint

* fix lint

* docs: Finish components overview page

* fix lint

* docs: Update cover

* fix lint

* update cover

* update menu

* improve overview page

* refactor code

* fix order

* update title

* add components count

* fix overview page ssr bug

* move less file

* update title margin

Co-authored-by: arvinxx <arvinx@foxmail.com>
2020-05-31 11:48:34 +08:00
zombiej
9f38c46039 merge master 2020-05-14 21:03:29 +08:00
二货机器人
2afab58ac8
chore: small bundle size follow up (#24164)
* update config

* replace react function

* fix alert
2020-05-14 20:54:49 +08:00
zombiej
e6b1b1a4e7 Merge remote-tracking branch 'origin/master' into feature-merge-master 2020-05-14 16:19:39 +08:00
二货机器人
2e284aa017
chore: small bundle size (#24135)
* update warning

* rm warning

* replace with dev warning

* fix test

* fix site

* Update webpack.config.js

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

* Update webpack.config.js

* fix sytax

* adjust

* move into function

Co-authored-by: 偏右 <afc163@gmail.com>
2020-05-14 15:57:04 +08:00
Tom Xu
d766472d94
feat: descriptions add less variable (#24032)
* feat:  add less variable @descriptions-item-trailing-colon,@descriptions-it,@descriptions-item-label-colon-margin-leftem-label-colon-margin-right,

* fix

* Update demo.test.js.snap
2020-05-11 15:54:25 +08:00
zefeng
14417f1614
feat(theme): adjust font-size in compact mode (#23135)
* feat(theme): adjust font-size in compact mode

With compact theme mode, we adjust default font-size from 14px to 12px.

Closes #23015

* patch: update docs min font-size

* patch

* patch

* patch

* patch

* patch

* patch
2020-04-28 11:16:01 +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
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
偏右
ef0cc699e4
fix: Descriptions should be able to fit width (#22407)
close #22350
2020-03-19 18:40:38 +08:00
xrkffgg
7f4c7b5978
style: fix rtl.less place and name (#22384) 2020-03-19 12:13:24 +08:00
xrkffgg
73afd36619
style: add rtl.less of Carousel\Descriptions\Empty (#22330) 2020-03-18 11:14:21 +08:00
二货机器人
4b0effbc0e
fix: Desctiption miss style when value is number 0 (#21901)
* fix: Desctiption miss style when value is number 0

* fix test case
2020-03-05 17:54:58 +08:00
二货机器人
85a07d168e
fix: Description key warning (#21688)
* fix: key warning

* add missing key

* rm fragment
2020-02-28 21:47:29 +08:00