Commit Graph

527 Commits

Author SHA1 Message Date
afc163
91a64d0567 Tweak styles 2017-10-16 21:12:49 +08:00
Mohamed Seada
fa315e9f6d Add new locale (ar-EG: Arabic Egypt) #3 (#7888)
* Add new locale (ar-EG: Arabic Egypt)

* resolve snapshot testing problem

* Add new locale (ar-EG: Arabic Egypt) to docs
2017-10-14 14:30:54 +08:00
偏右
9053192ae9 Fix component style (#7848)
* fix components style

* fix snapshot

* update travis node version

* change upload action in ci
2017-10-11 12:01:27 +08:00
Wei Zhu
c5487ad1eb React 16 + Enzyme 3 2017-10-09 19:18:04 +08:00
偏右
2bced36f0c New component styles (#7731)
* Tweak button padding

* upgrade input and button size

* update form controls size

* update components size

* Add lemon color and update rate color

* Add new icons

* update layout style

* breadcrumb and dropdown

* update menu arrow width

* update layout and menu

* update steps

* fix var name

* update cascasder style

* Update DatePicker

* update InputNumber and Mention

* radio and switch

* select and transfer

* TimePicker & Upload

* more components

* calendar and list

* Tree Timeline Popover Tag

* divider modal popover

* update search input

* update card style

* update switch disabled opacity

* update shoadow and mask

* Add v2-compatible-reset.less

* Fix undefined className

* update snahshotssssssssssssssssss 👻
2017-09-27 22:32:49 +08:00
afc163
7bfe6878dd fix snapshot 2017-09-27 09:56:03 +08:00
Benjy Cui
829b5f87bf feat: make default locale to enUS (#7553)
* feat: make default locale to enUS

* test: fix CI

* docs: update getting started
2017-09-26 23:12:47 +08:00
afc163
4719309bd7 Merge branch 'master' into antd-3.0 2017-09-26 16:29:57 +08:00
778758944
4e726fdfd7 修复disabledTime interface定义错误 (#7740) 2017-09-26 16:11:28 +08:00
afc163
420c2666a9 docs: add chinese description for dateRender 2017-09-25 22:16:30 +08:00
Henri Normak
36a54a8a8c Expose renderDate function for DatePicker (#7710)
* Expose renderDate function for Calendar dates

* Use the original prop name
2017-09-25 22:10:26 +08:00
afc163
412d7eebba Merge branch 'master' into antd-3.0 2017-09-22 18:37:08 +08:00
偏右
759b0bb821 seperate reset styles (#7682)
* seperate reset styles

* not reset ul/ol/p/heading

* revert reset.less idea

* move label style into ant-form-item, #5851

* revert reset.less idea

* update base.less

* Better typography from bootstrap@4

use reboot replace normalize

ref:
b4d84b9cdf/scss/_reboot.scss

close #6162
2017-09-22 18:33:29 +08:00
Marco Afonso
81435e2798 feat: add Portuguese locale (#7449)
* Add pt_PT Locale

* Adding pt_PT Locale (fix comma)

* Adding pt_PT Locale to docs

* Add pt_PT locale to tests

* Update imports for rc-pagination and rc-calendar

* Add pt_PT Locale

* Adding pt_PT Locale (fix comma)

* Adding pt_PT Locale to docs

* Add pt_PT locale to tests

* Update imports for rc-pagination and rc-calendar

* Add pt_PT to tests
2017-09-21 21:02:01 -05:00
Wei Zhu
250c7a9c68 Revert "Mock rc-trigger"
This reverts commit 9d2c91598b.
2017-09-15 16:42:25 +08:00
Wei Zhu
9d2c91598b Mock rc-trigger
Ref #5522
2017-09-15 16:14:26 +08:00
Stefan Paunovic
0ac7ccaa8f feat: add is_IS locale (#7561) 2017-09-12 09:10:42 +08:00
afc163
ab6620f1f1 Fix WeekPicker style, #3825 2017-09-06 13:18:43 +08:00
afc163
0f778d2a4a Merge from master 2017-09-05 16:19:34 +08:00
偏右
f3911b3707 Feat week picker (#7404)
* New Component WeekPicker

close #212

* Add WeexPicker in API doc

* update snapshot

* Add test cases

* update snapshot
2017-08-31 20:44:22 +08:00
afc163
96dd7132e8 Merge branch 'master' into feature-2.13 2017-08-30 13:22:38 +08:00
afc163
429cdb448d Fix RangePicker text overlap 2017-08-29 15:08:55 +08:00
afc163
a5733f5de3 Fix RangePicker text overlap 2017-08-29 15:08:06 +08:00
Benjy Cui
2620318172 feat: support controlled panels for DatePicker and RangePicker, close: #5190 (#7049) 2017-08-21 21:15:44 +08:00
afc163
d4171badfd Merge from master 2017-08-19 12:40:40 +08:00
afc163
b84b17d981 Merge branch 'master' into antd-3.0 2017-08-17 18:03:28 +08:00
afc163
ad6dbcb9c6 Fix button in DatePicker 2017-08-16 15:38:12 +08:00
Stefan Paunovic
7d8c7d72b7 feat: add sr_RS locale (Serbian) (#7201) 2017-08-15 09:24:30 +08:00
nikogu
7d49cc18a9 Merge branch 'master' into feature-2.13 2017-08-12 11:16:33 +08:00
afc163
b48f749e26 Merge branch 'feature-2.13' into antd-3.0 2017-08-10 16:33:18 +08:00
afc163
43751c9930 revert eb3c274, close #7162 2017-08-10 10:54:02 +08:00
Vemund Santi
b69a6886d7 Locale/nb-NO (#7122)
* locale: Add Norwegian Bokmål locales to Ant Design

* Add Vemund Santi to authors.

* docs: add Norwegian to list of i18n language examples

* test: add tests for Norwegian Bokmål

* Update dependencies. Use locales from rc-pagination.
2017-08-09 20:36:01 +08:00
afc163
47c5de29f3 tweak range picker style 2017-08-09 16:21:18 +08:00
偏右
eb3c274e01 Fix extra space in RangePicker
https://gw.alipayobjects.com/zos/rmsportal/sTMIijZIrTkBDaGrEXmI.png
2017-08-09 15:33:30 +08:00
afc163
5a33774238 Fix ~ mis-position bug 2017-08-07 15:35:05 +08:00
Michalis Macheras
94d46e4c01 add el_GR locale (Greek) (#6928)
Update index.test.js

Syntactic error corrected
2017-08-07 10:41:38 +08:00
mkermani144
e8ef77b963 Add fa_IR locale 2017-08-07 10:40:34 +08:00
Benjy Cui
4880b6ec16 fix: should not throw error when select after clear, close: #7077 2017-08-04 16:50:05 +08:00
afc163
6748221ed3 tweak time-picker style 2017-08-03 22:08:14 +08:00
afc163
8618a387da tweak date-picker style 2017-08-02 21:15:03 +08:00
afc163
fb70e9d70b code style 2017-08-02 13:02:01 +08:00
afc163
50466ed281 Fix ok button style 2017-07-31 16:12:41 +08:00
afc163
dc8be3fcfd Tweak icon position of DatePicker 2017-07-25 19:45:58 +08:00
Benjy Cui
119d498935 chore: replace http with https, close: #6893 2017-07-19 14:00:11 +08:00
imosapatryk
79afe8ef89 Update pl_PL.tsx
You import wrong files.
2017-07-17 16:02:25 +02:00
Benjy Cui
43bf6c4846 test: fix CI, ref: 27a1742 2017-07-12 15:15:21 +08:00
afc163
19fa96754d Fix snapshot 2017-07-12 15:07:04 +08:00
Benjy Cui
9c7cec3e39 refactor: remove span[disabled] 2017-07-12 14:23:47 +08:00
Benjy Cui
27a17428de fix: should show correct panel, close: #6764 point 3 2017-07-12 14:00:20 +08:00
偏右
b653a2c055 Merge branch 'master' into feature-2.12 2017-07-07 19:41:37 +08:00
柚子男
6d06f2f4b4 fix lint 2017-07-06 23:06:21 +08:00
Sakol Assawasagool
bc7e0bad3e feat: add th_TH translation (#6721) 2017-07-04 17:54:36 +08:00
paranoidjk
ba168b826f refactor: use spread operator replace object-assign (#6677) 2017-07-03 16:57:11 +08:00
偏右
bb9957ff45 Merge pull request #6655 from megawac/date-picker-style
Make -clear and -icon styles consistent at different input sizes
2017-06-30 11:50:00 +08:00
Benjy Cui
950c321b25 fix: should generate showHour from format k 2017-06-29 11:22:12 +08:00
Graeme Yeates
9429aedffc Fix tilde placement on rangepickers 2017-06-28 15:23:00 -04:00
Graeme Yeates
974f544713 Make -clear and -icon styles consistent at different input sizes 2017-06-28 15:09:50 -04:00
Benjy Cui
00932da89b test: update snapshot for rc-calendar and rc-input-number 2017-06-28 16:29:26 +08:00
newraina
e560cb26c3 fix dataPicker onOk type definition (#6619) 2017-06-28 10:19:53 +08:00
Benjy Cui
1920d9af46 chore: update details for #6584 2017-06-27 15:32:18 +08:00
Alexander
9131a79377 chore: add className prop to DatePicker (#6584)
* Add className to DatePicker

* Add className to MonthPicker and RangePicker
2017-06-27 14:27:02 +08:00
afc163
fe564335bf Tweak range picker style 2017-06-26 21:25:47 +08:00
afc163
48b63734c6 Tweak date picker icon style 2017-06-26 21:19:23 +08:00
Graeme Yeates
aaf2a508be Fix calendar clear background color 2017-06-21 12:41:45 -04:00
Benjy Cui
c61bba1020 chore: make disabled today different from other disabled day 2017-06-19 15:14:53 +08:00
afc163
61d67f4563 Fix DatePicker footer extra border 2017-06-13 15:31:47 +08:00
Benjy Cui
9b025806b8 fix: remove align.offset, ref: 0a1c0712 2017-06-08 17:27:28 +08:00
Benjy Cui
b0040bfc37 test: update snapshot 2017-06-07 17:39:44 +08:00
Benjy Cui
14de57c32e test: update snapshot 2017-06-06 17:55:01 +08:00
Benjy Cui
2e313ef8f0 Merge branch 'master' into feature-2.11 2017-06-06 17:26:06 +08:00
偏右
920b32e94c Merge pull request #6344 from damiangreen/master
Add en-GB, it-IT, fr-FR + nl_BE locales
2017-06-05 18:05:22 +08:00
afc163
268336a651 update snapshots 2017-06-05 17:15:41 +08:00
afc163
6790e80f3e Add renderExtraFooter for DatePicker
close #6122, close #5188
2017-06-05 17:11:58 +08:00
afc163
d086ee253e update snapshots for #6347 2017-06-03 01:38:26 +08:00
afc163
0a1c0712a2 Fix DatePicker panel position, close #6347 2017-06-03 01:37:02 +08:00
Damian Green
6d74ea346f Add en-GB, it-IT, fr-FR + nl_BE locales 2017-06-02 14:40:32 +01:00
Patryk
e2be361cd0 Add Polish language support 2017-06-01 22:43:12 +02:00
Adrian Dimitrov
d629086c74 feat: added Bulgarian translation (#6297)
* Added Bulgarian translation

* Update bg_BG.tsx
2017-06-01 10:32:10 +08:00
afc163
fd625ef1a0 upgrade and fix tslint problems 2017-05-31 15:48:35 +08:00
Benjy Cui
35095fc776 test: fix CI 2017-05-31 11:19:17 +08:00
afc163
fa235b7876 Fix RangePicker test case 2017-05-29 16:19:59 +08:00
Benjy Cui
0e5431d21b deps: upgrade antd-tools and code style 2017-05-25 16:54:15 +08:00
afc163
f414398fae Fix disabledDate of Calendar, close #6074 2017-05-23 17:10:56 +08:00
Benjy Cui
1dae0b65f2 chore: improve UX of RangePicker (#6200)
* chore: improve UX of RangePicker

* test: fix CI
2017-05-22 09:42:04 +08:00
Benjy Cui
361df26f3a fix: should support DatePicker|RangePicker[showTime.defaultValue], (#6160)
close: #5691 #2375
2017-05-18 14:51:06 +08:00
Benjy Cui
8c06fc6527 test: update snapshot 2017-05-15 16:41:44 +08:00
afc163
29e54c2339 fix lint in demo 2017-05-15 16:40:10 +08:00
Benjy Cui
555dbb9b29 docs: add MonthPicker disableDate demo 2017-05-15 16:18:08 +08:00
Benjy Cui
12a6060304 docs: fix code style 2017-05-15 14:37:22 +08:00
Benjy Cui
61d6cf14ff deps: upgrade eslint relative deps 2017-05-15 12:10:28 +08:00
afc163
ed17464a5f Fix vertical align of RangePicker input in safari and 360, close #6061 2017-05-13 15:16:25 +08:00
偏右
1a775b1d3b Merge pull request #5964 from megawac/active-item-bg
Add @active-item-bg to control hover and active states
2017-05-04 12:02:55 +08:00
Graeme Yeates
98ba816bfb Add @time-picker-selected-bg to control the selected state of time-picker 2017-05-03 11:06:07 -04:00
Graeme Yeates
d8d17a6401 Seperate @active-item-bg into 2 variables 2017-05-03 10:57:14 -04:00
afc163
54f443a266 tweak clear icon position 2017-05-03 15:19:33 +08:00
Graeme Yeates
4eb2855871 Add @active-item-bg to control hover and active states 2017-05-02 11:05:28 -04:00
偏右
d3aa5f3cbf fix: time picker layout (#5983)
* Add popupClassName

* Fix showTime panel width bug, close #5959

* Add test case
2017-05-02 16:24:29 +08:00
偏右
5fde1e7550 Merge branch 'master' into background-color-base 2017-05-01 13:51:11 +08:00
偏右
6787e41257 Merge pull request #5962 from megawac/fix-calendar-input-background
Fix calendar input background to use @input-bg
2017-05-01 13:38:52 +08:00
Graeme Yeates
5841746ec9 Decompose @background-color-base into several variables 2017-04-28 16:04:41 -04:00
Graeme Yeates
ede77a8aa7 Consistently use @background-color-base for disabled states 2017-04-28 15:43:02 -04:00
Graeme Yeates
e6d619b3cf Fix calendar input background to use @input-bg 2017-04-28 13:24:12 -04:00
Benjy Cui
5f80e50d31 Merge branch 'feature-2.10' 2017-04-28 09:41:34 +08:00
Tino D
5c25452de8 fix: update locale es_ES (Spanish) (#5932)
* Update locale es_ES (Spanish)

* Fix indent
2017-04-28 09:39:35 +08:00
Hai Phan Nguyen
c6832d1235 feat: add Vietnamese localization support (#5927)
* Add Vietnamese locale

* add Vietnamese locale
2017-04-27 16:39:46 +08:00
Benjy Cui
44c4d5c167 fix: should not reset showDate when value is empty array, close: #5872 (#5898) 2017-04-26 14:44:07 +08:00
Kimmo Saari
b6eecef255 Add locale fi_FI (#5674) 2017-04-22 22:52:37 +08:00
OAwan
1903b75d38 Traditional Chinese locale provider added (#5665) 2017-04-22 22:52:01 +08:00
Benjy Cui
f5fa64c17b fix: hack to fix ts compile errors 2017-04-21 11:39:01 +08:00
Benjy Cui
5fe3cb9318 refactor: to ES6 class style 2017-04-20 17:12:14 +08:00
Yiming
c9a09a1d01 Update index.zh-CN.md
fix typo
2017-04-19 10:39:42 +08:00
afc163
6b1cec2bf6 Use height over padding for button size, close #5256 2017-04-16 19:01:46 +08:00
偏右
9319764eb8 Merge pull request #5663 from ant-design/ux-range-picker
chore: improve ux of RangeCalendar, close: #4985
2017-04-13 13:32:54 +08:00
Manjit Kumar
4e055ed5d0 use PropTypes from 'prop-types' mdoule instead of React
- as React.PropTypes is being deprecated
 - Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.
 - Solution: https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html#migrating-from-react.proptypes
2017-04-12 02:22:05 +05:30
leadream
193b2b7684 not aligned after customizing the size of input
For some reasons I customized the size of <Input/>. Now the default height of <Input> is 40px. But there's a problem in <RangePicker/> after doing that: the texts and icon inside it are not aligned vertically at center.

When I look into the code I found the height of `ant-calendar-range-picker-input` is 18px. I modified it to 100% and it aligned. I'm not sure if it can affect the other code.

----------------------------------------
因为某些原因我自定义了 <Input/> 的尺寸,现在它的默认高度是40px。但是当我使用 <RangePicker/> 组件时,我发现了一个问题:输入框里面的文字和图标在垂直方向不能居中对齐。我看了一下 css 代码,发现里面的 `ant-calendar-range-picker-input` 高度是固定的18px,我把它改成100%就可以垂直居中对齐了。我不知道这个改动是否会影响其他代码。
2017-04-11 18:48:03 +08:00
Benjy Cui
d8e465d579 css: fix height of MonthPicker 2017-04-10 15:30:24 +08:00
Benjy Cui
360a657264 chore: improve ux of RangeCalendar, close: #4985 2017-04-10 11:33:00 +08:00
Wei Zhu
6dd3304976 Revert "Traditional Chinese locale provider added (#5665)"
This reverts commit 65bac17e58.
2017-04-09 03:37:49 +08:00
OAwan
65bac17e58 Traditional Chinese locale provider added (#5665) 2017-04-07 19:19:38 +08:00
Benjy Cui
b643aa752f fix: month/year panel of DatePicker[showToday=false], close: #5620 (#5635) 2017-04-06 18:44:11 +08:00
Wei Zhu
1a8e738142 Set snapshotSerializers 2017-04-02 18:09:23 +08:00
Benjy Cui
30f55b923a deps: upgrade rc-calendar 2017-04-01 14:43:36 +08:00
乐仪
2bba8bee98 fix RangePicker placeholder color 2017-03-31 17:10:40 +08:00
Ayhan
2265a49dbf Turkish locale provider added (#5536) 2017-03-28 21:26:07 +08:00
afc163
4f89e54cb2 Merge from branch "master" 2017-03-28 15:58:41 +08:00
Yusuke Ito
b342dbefa2 Japanese locale (#5529)
* add ja_JP translation

* fix Japanese locale

* fix i18n docs

* update rc-pagination version

* add locale test for ja_JP
2017-03-28 15:11:33 +08:00
HJin.me
47589ba92c fix get(Popup|Calendar|Suggestion|Tooltip)Container ts type (#5528) 2017-03-28 13:20:05 +08:00
afc163
8f286d6700 change comments to English 2017-03-27 10:09:38 +08:00
偏右
0308138974 [WIP] upgrade deps (#5455)
* upgrade deps

* autofix some tslint problems

* Fix tslint problems manually
2017-03-27 10:09:38 +08:00
afc163
849c5fbf75 Fix getPopupContainer ts type 2017-03-27 10:09:06 +08:00
Madis Väin
7696c1cd05 feat: Add et_EE locale (Estonian) (#5266)
* add Estonian translations

* add other translations except pagination for Estonian

* add to tests

* linting fixes

* remove comments
2017-03-24 10:54:36 +08:00
Martin Litvaj
82b516c77f feat: SK Localization (#5304) 2017-03-24 10:30:37 +08:00
afc163
4a396c4d7b change comments to English 2017-03-23 21:32:29 +08:00
偏右
674255bd14 [WIP] upgrade deps (#5455)
* upgrade deps

* autofix some tslint problems

* Fix tslint problems manually
2017-03-23 21:15:49 +08:00
afc163
322e9efdc9 Fix getPopupContainer ts type 2017-03-21 16:35:31 +08:00
Wei Zhu
f6b1e942e3 Jest 19 (#5361)
* Upgeade to jest 19

* Use jest.spyOn
2017-03-17 18:56:30 +08:00
Benjy Cui
174c3b7d62 docs: MonthPicker doesn't support onOk, close: #5350 2017-03-17 10:24:32 +08:00
afc163
8bc0e8ab9d Remove used code and add test case for #5191 2017-03-07 18:49:22 +08:00
Graeme Yeates
18077894f2 Remove DatePicker temporary values [fix #5189] (#5191) 2017-03-07 18:00:51 +08:00
Wei Zhu
67bbae9ea8 Merge branch 'feature-2.8' 2017-03-05 21:34:57 +08:00
Minsung Ryu
914ee21a4d Add locale ko_KR(Korean) 2017-03-05 20:15:04 +08:00
Martin Novák
e59bb6b609 cz translation (#5169) 2017-03-05 20:11:24 +08:00
Graeme Yeates
7cd590b3b0 Use @input-color to set calendar's input color (#5147) 2017-03-03 10:46:51 +08:00
afc163
b3a325dc29 Fix disabled DatePicker hover border color 2017-03-01 15:26:12 +08:00
Benjy Cui
758559f718 test: update snapshots 2017-02-28 16:14:53 +08:00
Benjy Cui
69d9d1edda chore: add warning for typo, close: #5044 2017-02-28 14:44:12 +08:00
afc163
376806dab8 Merge from "master" 2017-02-26 18:45:16 +08:00
afc163
2bf6e22653 fix documentation for onOk, close #5044 2017-02-24 18:08:35 +08:00
Benjy Cui
3aac9adc40 docs: remove some demo 2017-02-24 16:17:52 +08:00
Graeme Yeates
19c11dd173 chore: RangePicker TimePicker component locking background to white (#5031) 2017-02-24 10:42:45 +08:00