Commit Graph

453 Commits

Author SHA1 Message Date
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
Benjy Cui
4e59e9e769 docs: recommend to use LocaleProvider, ref: #5017 2017-02-24 10:22:21 +08:00
Benjy Cui
1c837963e2 chore: add warning for deprecated API 2017-02-23 16:04:27 +08:00
afc163
5068343b0c fix tslint 2017-02-23 13:18:06 +08:00
afc163
a7c6c027ce Fix ts definition of Table & RangePicker
close https://segmentfault.com/q/1010000008423156
2017-02-23 12:51:40 +08:00
afc163
7181e3c9e8 revert d9ec4bf and ef0b708, close #4997 2017-02-22 16:50:24 +08:00
Benjy Cui
e4d9e5af54 test: update snapshot 2017-02-22 15:52:43 +08:00
Benjy Cui
d9ec4bf732 fix: RangePicker style 2017-02-22 15:33:21 +08:00
afc163
a9a564779e Merge from "master" 2017-02-20 12:18:41 +08:00
afc163
3308bce9b9 fix snapshot test 2017-02-20 11:36:57 +08:00
afc163
626e0c9d1e Fix DatePicker default width, close #4947, ref #4920 2017-02-20 11:36:19 +08:00
Aaron Planell López
05fd5a6825 Add locale ca_ES (Catalan) (#4929)
* Add locale ca_ES (Catalan)

* Add locale ca_ES (Catalan). Modify global locale in local-provider.
2017-02-19 14:27:14 +08:00
afc163
28dbdd17ed fix for #4920 2017-02-17 14:11:10 +08:00
afc163
a87016ce54 Make sure DatePicker style.width can be effective, close #4920 2017-02-17 12:05:22 +08:00
afc163
e801cd022e fix snapshot 2017-02-15 16:40:26 +08:00
afc163
ec81fe4f1c update MonthPicker demo 2017-02-15 16:32:20 +08:00
Benjy Cui
63476d0bc0 Merge branch 'master' into feature-2.8 2017-02-14 10:56:33 +08:00
corneyl
28961856aa feat: Added Dutch locale and bumped dep versions so they include Dutch locales (#4785)
* Added Dutch locale and bumped dep versions so they include Dutch locales

Bumped versions so they include Dutch locales
- rc-calendar to ~7.6.2
- rc-pagination to ~1.6.6

* Added dutch locale to LocaleProvider test
2017-02-13 15:46:13 +08:00
Benjy Cui
200b88246f docs: update docs format 2017-02-13 10:55:53 +08:00
Benjy Cui
251930f183 docs: fix some link 2017-02-09 17:55:26 +08:00
偏右
75a4b06e44 Unified border radius, close #4772 (#4773) 2017-02-08 14:21:29 +08:00
Benjy Cui
5d7fc8c2b8 chore: add comment for tricky code 2017-02-07 12:10:20 +08:00
Benjy Cui
c565d42847 Revert "chore: remove useless code, close: #4402"
This reverts commit 9b77a21a16.
2017-02-07 12:05:12 +08:00
Benjy Cui
9b77a21a16 chore: remove useless code, close: #4402 2017-02-06 18:04:37 +08:00
Graeme Yeates
1006015ef0 Add border customization variables (#4734)
* Add border customization variables (#4712)

* Make border styles customizable (fixes #4712)
2017-01-31 16:05:10 +08:00
afc163
f2bb4afd4d Merge from master 2017-01-27 17:23:51 +08:00
Simon Waloschek
fd233cf430 Added German locale (#4686)
* Added German locale

* Added German locale for pagination
2017-01-25 21:12:27 +08:00
Wei Zhu
77b78a9389 docs: Unify type naming (#4636)
* Unify name of ReactNode type in document

* Lowser all string type name

* Lowercase all number type name

* Lowercase all boolean type name

* Unify array type

* Lowercase all object type name

* Unify mutilple types
2017-01-20 20:10:50 +08:00
afc163
35523be6e9 Merge from master 2017-01-20 18:28:09 +08:00
afc163
9c6ce3fe48 fix RangePicker snapshot 2017-01-20 14:12:06 +08:00
Benjy Cui
3e17551b7e site: improve build speed 2017-01-19 15:22:53 +08:00
Benjy Cui
e3758168e4 fix: should switch to right panels, close: #4561 (#4614)
* fix: should switch to right panels, close: #4561

* docs: update demo
2017-01-19 13:55:04 +08:00
afc163
784915e55b Fix DatePicker time scroll issue, close #4412 2017-01-15 14:10:20 +08:00
Benjy Cui
97221a6f63 css: fix style issue, close: #4415 2017-01-12 10:35:17 +08:00
bokzor
47fcd7651f feat: Add french locale (#4538)
* add french locale

* Add french locale
2017-01-11 10:28:47 +08:00
Benjy Cui
3fa5d10da3 Merge branch 'master' into feature-2.7 2017-01-10 10:50:40 +08:00
Benjy Cui
0aabdb3d8b fix: locale should follow LocaleProvider, close: #4495 (#4503)
* fix: locale should follow LocaleProvider, close: #4495

* test: update snapshot

* fix: fix some bugs
2017-01-09 16:25:58 +08:00
afc163
7d75a2673a components/date-picker/locale/sv_SE.jsx 2017-01-08 19:24:55 +08:00
Jesper We
c6f6de3605 feat: Add support for Swedish locale (#4455)
* Swedish locale

* Create sv_SE.tsx

* Create sv_SE.tsx

* Create sv_SE.tsx
2017-01-08 19:14:28 +08:00
Benjy Cui
df18edda79 chore: update link to locale format 2017-01-08 19:14:02 +08:00
Jesper We
11ebc915eb feat: Add support for Swedish locale (#4455)
* Swedish locale

* Create sv_SE.tsx

* Create sv_SE.tsx

* Create sv_SE.tsx
2017-01-08 19:14:01 +08:00
afc163
56bd431cc6 clean demo 2017-01-04 11:07:49 +08:00
afc163
11f509a972 clean demo 2017-01-04 11:00:58 +08:00
Benjy Cui
9d92066d1f chore: update data-picker detail, ref: #4415 2017-01-04 10:48:40 +08:00
偏右
d811ebee5c New color system (#4426)
* Add new color patterns algorithm

* Add color palettes

* update other colors

* fix gray color

* update more tint/shade to colorPalette

* new font color

* Update doc for new color system

* improve doc style
2017-01-01 22:20:06 +08:00
afc163
c3982b02aa Fix monthCellContentRender and wrong documentation, close #4394 2016-12-30 15:04:13 +08:00
afc163
ecd2e57ef2 controlled DatePicker should not be clear 2016-12-20 11:01:10 +08:00
Benjy Cui
f3c55c6ef8 Revert "site: use cdn to improve performance, close: #3646"
This reverts commit 47f56eab23.
2016-12-20 10:19:06 +08:00
Benjy Cui
47f56eab23 site: use cdn to improve performance, close: #3646 2016-12-19 20:22:29 +08:00
Wei Zhu
666e80a1ba tests: Fix table import 2016-12-14 15:38:26 +08:00
Wei Zhu
07103b9fb6 Don't ignore test files. 2016-12-14 14:48:09 +08:00
Wei Zhu
17a0a33283 Restructure tests. 2016-12-14 14:41:39 +08:00
afc163
b912f1cea6 Fix DatePicker[showTime] default width 2016-12-11 13:59:06 +08:00
Benjy Cui
904be38493 docs: update locale format (#4150) 2016-12-07 10:45:20 +08:00
kdenz
aab32236c6 hours array should be from 0 to 23, not 0 to 59 (#4157) 2016-12-07 10:05:31 +08:00
Benjy Cui
273faafaa2 fix: should use moment.isMoment, close: #4147 2016-12-06 14:21:17 +08:00
afc163
f9bad27469 Fix DatePicker input style 2016-12-05 00:27:03 +08:00
afc163
8df23e2d06 revert value undefined for resetFields, close #3846 2016-12-03 15:50:36 +08:00
afc163
edd57defa5 use moment.isMoment
http://momentjs.com/docs/#/query/is-a-moment/
2016-12-03 14:48:44 +08:00
Benjy Cui
c4d8c4770c Add upgrade warning (#4028)
* chore: add upgrade warning for time related value

* chore: update warning

* chore: update demo url
2016-12-02 15:07:33 +08:00
Benjy Cui
932443099a css: use @component-background, ref: #4040 2016-11-29 11:56:10 +08:00
cathayandy
addb6e44dc Fix #4039. Replace background-color: #fff with background: @body-background (#4040) 2016-11-29 09:54:54 +08:00
Wei Zhu
bd55d21f83 style: Fix jsx-no-multiline-js (#3994)
* Fix jsx-no-multiline-js

* TimePicker addon test

* Transfer search test
2016-11-25 12:03:39 +08:00
Nathan Tavares Nascimento
c97e687edd feature: add pt_BR locale support (#4004) 2016-11-25 09:44:28 +08:00
afc163
f3df6205a4 fix RangePicker placeholder not working bug 2016-11-23 20:35:34 +08:00
Wei Zhu
ccbebe60cc style: Fix jsx alignment, #3966 (#3967) 2016-11-23 17:53:10 +08:00
afc163
7b61b84145 Add missing doc for DatePicker[placeholder] 2016-11-23 11:30:05 +08:00
afc163
3b8ac48e6b update DatePicker demo format 2016-11-23 11:23:18 +08:00
Benjy Cui
1ae5bb9845 chore: remove quick selector label, ref: #3753 2016-11-21 11:41:33 +08:00
Benjy Cui
38fd7f6feb chore: improve detail 2016-11-18 10:22:11 +08:00
Benjy Cui
e5deba620d css: improve style according to design, ref: #1418 2016-11-18 10:22:11 +08:00
Benjy Cui
f499a026ce feat: basic impl of RangePicker[ranges], ref: #1418 2016-11-18 10:22:11 +08:00
RaoHai
d4269f8f30 fix format props of RangePicker
+ close #3808
2016-11-14 20:27:51 +08:00
afc163
fc3d320872 much better way for #3748 and fix ok close animation 2016-11-14 19:38:24 +08:00
afc163
82fa3ed2a5 update DatePicker doc and demo 2016-11-14 19:13:37 +08:00