Commit Graph

342 Commits

Author SHA1 Message Date
xrkffgg
f467df5fe2
feat: add rtl calendar (#23394) 2020-04-21 15:29:36 +08:00
二货机器人
4794bae529
fix: Calendar missing style (#23081) 2020-04-09 15:44:22 +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
3b77e610fe chore: Update snapshot 2020-04-03 12:19:41 +08:00
zombiej
913204282b merge master 2020-03-28 16:31:17 +08:00
偏右
9ff35a449b
style: 💄 fix calendar style details (#22676)
* 💄 fix calendar style details

close #22675

*  update calendar demo snapshot

* fix radius
2020-03-27 20:02:14 +08:00
zombiej
7878fb6edc fix test case 2020-03-27 13:25:18 +08:00
afc163
46a8cf7dc7 merge feature into master-to-merge-feature 2020-03-16 15:52:39 +08:00
hebingchang
81f7f839cb
fix: style of card mode of Calendar (#22231)
* fix: style of mini Calendar

* ignore lint

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2020-03-15 22:05:56 +08:00
偏右
71c8fac72f
Merge branch 'feature' into master-to-merge-feature 2020-03-13 11:52:28 +08:00
偏右
2a6f975acf
💄 Fix Calendar header select ellipsis (#22148)
close #22123
2020-03-12 13:53:50 +08:00
二货机器人
d23d53b2e8
chore: Update snapshot (#21966) 2020-03-07 15:05:19 +08:00
afc163
f287708db5 💄 optimize Calendar header style in small screen 2020-03-03 15:26:51 +08:00
xrkffgg
4584a62d54
style: optimization calendar year content (#21598) 2020-02-26 11:21:21 +08:00
Orkhan Huseynli
28a529274b
feat: Azerbaijani translation (#21387)
* add Azerbaijani translation

* fix: rename Azerbaijani translation file

* fix: add az_AZ.txs file into locale/ folder

* fix: linting error on tranling comma

* fix: duplicate locales in locale-provide, a typo

* https://github.com/ant-design/ant-design/issues/21343 - fix (#21344)

* fix(Form): label width not correct when screen less than xs (#21222)

* fix(Form): label width not correct when screen less than xs

* fix form item control width

* fix css selector priority

* fix: separate translation into multiple files for Azerbaijani locale

* fix: wrong import from tr_TR locales into az_AZ

* fix: typo in calendar locale az

* add Azerbaijani translation

* fix: rename Azerbaijani translation file

* fix: add az_AZ.txs file into locale/ folder

* fix: linting error on tranling comma

* fix: duplicate locales in locale-provide, a typo

* add: time picker az_AZ locale

* fix: separate translation into multiple files for Azerbaijani locale

* fix: wrong import from tr_TR locales into az_AZ

* fix: typo in calendar locale az

* update: rc-picker in package.json

Co-authored-by: ElliotAshby <47282526+ElliotAshby@users.noreply.github.com>
Co-authored-by: 骗你是小猫咪 <darryshaw@gmail.com>
2020-02-15 22:28:12 +08:00
xrkffgg
8a9e2c5784 style: 优化calendar若干样式 (#20790)
* style:优化calendar若干样式

1. 基本样式月份下拉框宽度
2. 通知事项的文字反向
3. 卡片模式,选择框的尺寸

* fix: css order

* fix css
2020-01-09 15:40:29 +08:00
偏右
90d819fc6f
docs: 📝 update title to Replace Moment.js (#20730)
* 📝 update title to Replace Moment.js

* Update and rename generate-picker.zh-CN.md to replace-moment.zh-CN.md

* 🔗 fix links
2020-01-08 11:29:37 +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
陈小聪
014bed6358 docs: generate picker (#20515)
* docs: faq How to use dayjs instead of moment

* adjust article position

* add steps and use cases

* change docs

* add bisheng config source

* translate title

* remove customize TimePicker

* simplified document

* Update docs/react/generate-picker.zh-CN.md

Co-Authored-By: 偏右 <afc163@gmail.com>

* Update docs/react/generate-picker.zh-CN.md

Co-Authored-By: 偏右 <afc163@gmail.com>

* add cra demo

* init demo refer 'Use in TypeScript'

Co-authored-by: 偏右 <afc163@gmail.com>
2020-01-02 16:05:59 +08:00
偏右
d8cea7489d
💄 fix stylelint warnings and errors (#20562) 2019-12-31 15:04:00 +08:00
ycjcl868
090f25845c fix: lint 2019-12-26 15:59:50 +08:00
ycjcl868
e5bc8bab5a fix: style:lint 2019-12-26 15:55:10 +08:00
ycjcl868
0306096356 chore: update snapshot 2019-12-26 15:15:46 +08:00
ycjcl868
4dc860decf Merge origin/4.0-prepare into feat-dark-palette 2019-12-25 19:32:38 +08:00
ycjcl868
f7cfb21d1c fix: calendar-full background 2019-12-25 18:06:50 +08:00
ycjcl868
957b1ac7d0 fix: calendar style hover 2019-12-25 15:04:41 +08:00
zombiej
4b5a3259c1 chore: Update rc-select deps & snapshot 2019-12-25 11:29:54 +08:00
ycjcl868
c10a6f029c fix: demo style 2019-12-24 20:58:42 +08:00
二货机器人
407a41a142
feat: New Picker (#20023)
* init generate

* basic style

* basic panel style

* update mode panel style

* update style

* generate More picker

* default clear icon

* chore: Update separator type

* feat: Add ranged start & end className

* update range style

* Add transition effect

* support size config

* adjust range style

* chore: Auto fill time by showTime

* auto set time by format

* update disabled style

* update seperator style

* ranges style

* support extra footer style

* remove useless test case
part is not usable anymore
part is already tested in rc-picker

* init calendar

* all demos

* fix calendar basic test

* fix time-picker test case

* update snapshot

* fix tooltip test case & lint

* fix locale & style lint

* fix compile

* fix style

* fix style lint

* fix calendar style

* update rc-picker version

* adjust style

* move picker placeholder into locale file

* update snapshot

* add hover style

* update picker version

* fix icon position & style

* update picker version

* update deps for pading

* fix: align of suffix

* feat: Year & Month support range effect

* adjust range style to support up-down placement

* update rc-picker

* update range picker style

* adjust extra footer line style

* update snapshot

* fix: Locale error

* fix: style lint

* fix: add missing button style deps

* update test case

* fix firefox additional white line style issue

* rollback demo

* fix ff additional blue color

* docs: Remove placeholder in demo

* rangepicker ranges is tag now

* connect start / end background color with picker range

* update deps

* update deps for fixing blur text issue

* hide start-end demo

* range hover style update

* hover range with ranged value

* black magic of inner hover style

* hover style of range adjust

* fix css select miss hit on DatePicker

* remove one eslint rule

* fade range hovered color

* week should alway not show the cell selection

* update style of selection

* update snapshot

* fix style

* add margin back

* update rc-picker deps

* update date & time picker & form style

* fix disabled demo & update form style

* update docs about allowEmpty

* hide arrow in time range picker

* add hover & focused style

* fix lint

* fix style & update snapshot

* raise disabled selector proirity

* fix disabled today border color

* extra footer provides an bottom line

* time picker hover support transition background

* add padding style

* fix Firefox not correct calculate inline-flex

* fix style

* fix week picker missing today border color

* rm useless padding

* Force padding to 0

* test coverage

* dedup eslint rule

* adjust logic to imporve coverage

* fix render cell logic
2019-12-11 23:32:19 +08:00
zombiej
d76283f2b9 merge master 2019-12-01 21:46:17 +08:00
zombiej
1d516d7f7f merge feature 2019-12-01 15:29:53 +08:00
zombiej
6e69bcc9ca fix test case 2019-12-01 15:28:49 +08:00
seognil LC
c93bd326f4 docs(update): removed 3.x version description in 4.0-prepare (#19827)
* docs(update): removed 3.x version description in 4.0-prepare

ref #19815

* docs(update): update docs

remove carousel/index.zh-CN.md empty version column

* docs(update): update docs

remove carousel/index.en-US.md empty version column
2019-11-20 20:31:43 +08:00
二货机器人
efd3b35830
feat: Col support flex prop (#16635)
* feat: Col support `flex` prop

* update snapshot

* update doc

* row component use flex type by default

* revert grid flex layout doc

* remove float style

* remove doc old FAQ

* revert .make-row

* col style use flex and max-width

* remove useless Col style and imorove base doc for a single Col

* update snapshots

* fix flex mode pseudo

* update snapshots

* back to old flex mode demo gray background color

* set default col flex => 1 auto

* change grid about flex mode description

* update snapshots

* improve grid introduce and fix with gutter bug

* update snapshots

* remove version
2019-11-20 11:13:24 +08:00
ycjcl868
ffd4371ab5 fix: remove @border-radius-sm 2019-11-15 10:01:35 +08:00
Stevche Radevski
52ab454715 feat: add a Macedonian translation (#19647) 2019-11-09 23:17:33 +08:00
zombiej
9bea463638 chore: fix ts define 2019-11-06 11:18:11 +08:00
二货机器人
2ea28af6ed
Virtual select component (#18658)
* init

* fix firefox

* add active style

* adjust arrow style

* update select

* update icon logic

* render empty

* init multiple

* fix ff display style

* sync font size

* adjust padding style

* add padding

* padding it

* hotfix of chrome

* single sm

* multiple size

* update option group style

* update snapshot

* clean up transition

* rm combobox in ts define

* auto complete init

* fix auto option def

* update demo

* update demo

* update uncertain demo

* update demo

* warning if user set `size` on AutoComplete

* add debug demo

* updat demo

* update demo of disabled

* update snapshot

* rm useless test

* fix pagination test

* fix Table test

* fix calendar test case

* fix calendar test case

* adjust style

* add big data demo

* support clean up

* fix ts define

* fix lint

* fix demo lint

* fix style lint fix

* rm useless deps

* update snapshot

* stop mock

* add space
2019-09-12 20:15:17 +08:00
zombiej
3d8a4f3612 merge master 2019-08-29 23:41:46 +08:00
afc163
a51f7a0508 test unmount 2019-08-27 18:31:01 +08:00
陈帅
b133c4a2c4
style: descriptions style update (#18270)
* padding bottom support size

* add toc readme

* add demo

* fix lint

* snapshot updated
2019-08-16 10:01:46 +08:00
偏右
19fc777351
Merge pull request #18274 from ant-design/master
Merge master into feature
2019-08-14 21:44:20 +08:00
afc163
760853e239 💄 eslint for all 2019-08-14 18:21:24 +08:00
vagusX
149729e524
use ant design icons 4.0 (#18217)
* feat: use @ant-design/icons@4.0

* feat: use createFromIconfontCN to make site works

* feat: update doc for Icon

* feat: use icon in component Alert

* feat: use icon in component Avatar

* feat: use icon in component Breadcrumb

* feat: use icon in component Button

* feat: use icon in component Cascader

* feat: use icon in component Collapse

* feat: use icon in component Datepicker

* feat: use icon in component Dropdown

* feat: use icon in component Form

* feat: use icon in component Input

* feat: use icon in component InputNumber

* feat: use icon in component Layout

* feat: use icon in component Mention

* feat: use icon in component Message

* feat: use icon in component Modal

* feat: use icon in component Notification

* feat: use icon in component PageHeader

* feat: use icon in component Pagination

* feat: use icon in component Popconfirm

* feat: use icon in component Progress

* feat: use icon in component Rate

* feat: use icon in component Result

* feat: use icon in component Select

* feat: use icon in component Step

* feat: use icon in component Switch

* feat: use icon in component Table

* feat: use icon in component Tab

* feat: use icon in component Tag

* feat: handle rest component which using Icon

* fix: remove unused vars

* feat: use latest alpha ant design icons

* fix: failed test in uploadlist.test.js

* test: update snapshot for icons

* doc: add Icon for site

* doc: use @ant-design/icons in site

* chore: use latest icons

* fix: tslint issue

* fix: test cases

* fix: types for react

* fix: lint rules for import orders

* fix: use @ant-design/icons@4.0.0-alpha.5 to avoid insert css in server render

* fix: eslint error in demo/**.md

* inject antd icons

* update snapshot

* fix site

* doc: update docs

* fix: code snippets icon in site

* feat: use latest @ant-design/icons

* fix: icon props in message
2019-08-13 14:07:17 +08:00
偏右
64dbcc5504
Merge pull request #18124 from ant-design/master
chore: 😊 Merge master into feature
2019-08-09 14:02:26 +08:00
Ștefan Filip
a5a8f38dde Added support for Romanian locale (#18163) 2019-08-08 17:24:31 +08:00
orzyyyy
28f39739df test: update snapshots 2019-08-06 15:36:13 +08:00
orzyyyy
63b33d4020 fix: unexpected changes of snapshots 2019-08-06 15:36:12 +08:00
afc163
4e57d8a5fe
fix snapshots 2019-08-04 22:45:12 +08:00