├── .codecov.yml ├── components ├── style │ ├── index.tsx │ ├── v2-compatible-reset.tsx │ ├── index.less │ ├── core │ │ ├── index.less │ │ ├── iconfont.less │ │ ├── motion.less │ │ └── motion │ │ │ └── fade.less │ ├── mixins │ │ ├── size.less │ │ ├── index.less │ │ ├── clearfix.less │ │ ├── reset.less │ │ └── compatibility.less │ ├── v2-compatible-reset.less │ └── themes │ │ └── default.deperated.less ├── mention │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ └── demo.test.js │ └── demo │ │ ├── multilines.md │ │ ├── placement.md │ │ └── basic.md ├── locale-provider │ ├── style │ │ ├── index.tsx │ │ └── index.less │ ├── en_US.tsx │ ├── __tests__ │ │ └── demo.test.js │ └── demo │ │ └── basic.md ├── calendar │ ├── Constants.tsx │ ├── locale │ │ ├── ar_EG.tsx │ │ ├── bg_BG.tsx │ │ ├── ca_ES.tsx │ │ ├── cs_CZ.tsx │ │ ├── de_DE.tsx │ │ ├── el_GR.tsx │ │ ├── en_GB.tsx │ │ ├── en_US.tsx │ │ ├── es_ES.tsx │ │ ├── et_EE.tsx │ │ ├── fa_IR.tsx │ │ ├── fi_FI.tsx │ │ ├── fr_BE.tsx │ │ ├── fr_FR.tsx │ │ ├── is_IS.tsx │ │ ├── it_IT.tsx │ │ ├── ja_JP.tsx │ │ ├── ko_KR.tsx │ │ ├── ku_IQ.tsx │ │ ├── mn_MN.tsx │ │ ├── nb_NO.tsx │ │ ├── nl_BE.tsx │ │ ├── nl_NL.tsx │ │ ├── pl_PL.tsx │ │ ├── pt_BR.tsx │ │ ├── pt_PT.tsx │ │ ├── ru_RU.tsx │ │ ├── sk_SK.tsx │ │ ├── sl_SI.tsx │ │ ├── sr_RS.tsx │ │ ├── sv_SE.tsx │ │ ├── th_TH.tsx │ │ ├── tr_TR.tsx │ │ ├── uk_UA.tsx │ │ ├── vi_VN.tsx │ │ ├── zh_CN.tsx │ │ └── zh_TW.tsx │ ├── __tests__ │ │ └── demo.test.js │ ├── style │ │ └── index.tsx │ └── demo │ │ ├── basic.md │ │ └── card.md ├── affix │ ├── style │ │ ├── index.tsx │ │ └── index.less │ ├── __tests__ │ │ └── demo.test.js │ ├── demo │ │ └── on-change.md │ └── index.zh-CN.md ├── alert │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ └── demo.test.js │ └── demo │ │ ├── close-text.md │ │ ├── basic.md │ │ ├── style.md │ │ └── banner.md ├── anchor │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ └── demo.test.js │ ├── index.tsx │ └── demo │ │ ├── static.md │ │ └── basic.md ├── avatar │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ └── demo.test.js │ ├── demo │ │ └── badge.md │ └── index.zh-CN.md ├── badge │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ └── demo.test.js │ └── demo │ │ ├── link.md │ │ ├── no-wrapper.md │ │ └── title.md ├── button │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ └── demo.test.js │ ├── index.tsx │ └── demo │ │ ├── block.md │ │ ├── basic.md │ │ └── ghost.md ├── divider │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ └── demo.test.js │ ├── demo │ │ └── vertical.md │ └── index.zh-CN.md ├── grid │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ ├── demo.test.js │ │ ├── __snapshots__ │ │ │ └── index.test.js.snap │ │ └── index.test.js │ ├── index.tsx │ └── demo │ │ ├── sort.md │ │ ├── flex-order.md │ │ └── responsive.md ├── icon │ ├── style │ │ ├── index.tsx │ │ └── index.less │ ├── twoTonePrimaryColor.ts │ └── demo │ │ └── two-tone.md ├── layout │ ├── style │ │ ├── index.tsx │ │ └── light.less │ ├── __tests__ │ │ ├── demo.test.js │ │ └── __snapshots__ │ │ │ └── index.test.js.snap │ └── index.tsx ├── message │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ └── demo.test.js │ └── demo │ │ ├── info.md │ │ ├── duration.md │ │ └── loading.md ├── popover │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ ├── demo.test.js │ │ └── __snapshots__ │ │ │ └── index.test.js.snap │ ├── index.zh-CN.md │ └── demo │ │ └── basic.md ├── radio │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ ├── demo.test.js │ │ └── __snapshots__ │ │ │ └── radio.test.js.snap │ ├── index.tsx │ └── demo │ │ └── basic.md ├── rate │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ ├── demo.test.js │ │ └── index.test.js │ └── demo │ │ ├── basic.md │ │ ├── half.md │ │ ├── disabled.md │ │ ├── clear.md │ │ └── character.md ├── spin │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ ├── demo.test.js │ │ └── __snapshots__ │ │ │ └── index.test.js.snap │ ├── demo │ │ ├── basic.md │ │ ├── custom-indicator.md │ │ ├── tip.md │ │ ├── inside.md │ │ └── size.md │ └── index.zh-CN.md ├── steps │ ├── style │ │ ├── index.tsx │ │ ├── custom-icon.less │ │ └── label-placement.less │ ├── __tests__ │ │ └── demo.test.js │ └── demo │ │ ├── small-size.md │ │ ├── simple.md │ │ ├── progress-dot.md │ │ ├── vertical.md │ │ ├── error.md │ │ ├── vertical-small.md │ │ └── icon.md ├── switch │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ ├── demo.test.js │ │ └── index.test.js │ └── demo │ │ ├── loading.md │ │ ├── size.md │ │ ├── basic.md │ │ └── text.md ├── tabs │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ └── demo.test.js │ └── demo │ │ ├── disabled.md │ │ ├── icon.md │ │ ├── basic.md │ │ ├── extra.md │ │ └── card.md ├── tag │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ └── demo.test.js │ └── index.zh-CN.md ├── tooltip │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ ├── demo.test.js │ │ └── __snapshots__ │ │ │ └── tooltip.test.js.snap │ └── demo │ │ └── basic.md ├── _util │ ├── type.ts │ ├── interopDefault.ts │ ├── isNumeric.ts │ ├── triggerEvent.tsx │ ├── warning.tsx │ ├── getDataOrAriaProps.ts │ ├── isFlexSupported.tsx │ └── getScroll.tsx ├── back-top │ ├── style │ │ ├── index.tsx │ │ └── responsive.less │ ├── __tests__ │ │ ├── demo.test.js │ │ ├── __snapshots__ │ │ │ └── demo.test.js.snap │ │ └── index.test.js │ ├── demo │ │ └── basic.md │ └── index.zh-CN.md ├── breadcrumb │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ └── demo.test.js │ ├── index.tsx │ └── demo │ │ ├── basic.md │ │ ├── withIcon.md │ │ └── separator.md ├── carousel │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ └── demo.test.js │ └── demo │ │ ├── vertical.md │ │ └── fade.md ├── checkbox │ ├── style │ │ ├── index.tsx │ │ └── index.less │ ├── __tests__ │ │ ├── demo.test.js │ │ └── checkbox.test.js │ ├── index.tsx │ └── demo │ │ ├── disabled.md │ │ └── basic.md ├── collapse │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ └── demo.test.js │ └── index.tsx ├── input-number │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ ├── demo.test.js │ │ └── index.test.js │ └── demo │ │ ├── basic.md │ │ └── digit.md ├── notification │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ └── demo.test.js │ └── demo │ │ └── basic.md ├── progress │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ └── demo.test.js │ ├── index.tsx │ └── demo │ │ ├── dashboard.md │ │ ├── segment.md │ │ ├── line.md │ │ ├── circle-mini.md │ │ ├── line-mini.md │ │ ├── linecap.md │ │ ├── circle.md │ │ └── format.md ├── skeleton │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ └── demo.test.js │ ├── demo │ │ ├── basic.md │ │ ├── active.md │ │ └── complex.md │ └── Title.tsx ├── timeline │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ └── demo.test.js │ ├── index.tsx │ └── demo │ │ ├── basic.md │ │ ├── right.md │ │ └── custom.md ├── col │ ├── style │ │ └── index.tsx │ └── index.tsx ├── row │ ├── style │ │ └── index.tsx │ └── index.tsx ├── version │ ├── index.tsx │ └── style │ │ └── index.tsx ├── card │ ├── __tests__ │ │ └── demo.test.js │ ├── style │ │ └── index.tsx │ ├── demo │ │ ├── simple.md │ │ ├── border-less.md │ │ ├── basic.md │ │ └── flexible-content.md │ └── Grid.tsx ├── form │ ├── __tests__ │ │ └── demo.test.js │ ├── constants.tsx │ ├── style │ │ └── index.tsx │ └── index.tsx ├── input │ ├── __tests__ │ │ └── demo.test.js │ ├── style │ │ └── index.tsx │ ├── demo │ │ ├── basic.md │ │ ├── textarea.md │ │ └── size.md │ └── index.tsx ├── list │ ├── __tests__ │ │ ├── demo.test.js │ │ ├── empty.test.js │ │ ├── __snapshots__ │ │ │ └── empty.test.js.snap │ │ └── index.test.js │ └── style │ │ └── index.tsx ├── menu │ ├── __tests__ │ │ └── demo.test.js │ └── style │ │ └── index.tsx ├── select │ ├── __tests__ │ │ └── demo.test.js │ └── style │ │ └── index.tsx ├── slider │ ├── __tests__ │ │ ├── demo.test.js │ │ └── index.test.js │ ├── style │ │ └── index.tsx │ └── demo │ │ └── tip-formatter.md ├── table │ ├── index.tsx │ ├── __tests__ │ │ └── demo.test.js │ ├── Column.tsx │ ├── style │ │ └── index.tsx │ ├── ColumnGroup.tsx │ └── FilterDropdownMenuWrapper.tsx ├── time-picker │ ├── locale │ │ ├── ja_JP.tsx │ │ ├── ko_KR.tsx │ │ ├── pt_BR.tsx │ │ ├── pt_PT.tsx │ │ ├── zh_CN.tsx │ │ ├── zh_TW.tsx │ │ ├── cs_CZ.tsx │ │ ├── en_GB.tsx │ │ ├── en_US.tsx │ │ ├── et_EE.tsx │ │ ├── fa_IR.tsx │ │ ├── is_IS.tsx │ │ ├── mn_MN.tsx │ │ ├── nb_NO.tsx │ │ ├── sk_SK.tsx │ │ ├── sv_SE.tsx │ │ ├── th_TH.tsx │ │ ├── tr_TR.tsx │ │ ├── uk_UA.tsx │ │ ├── ar_EG.tsx │ │ ├── bg_BG.tsx │ │ ├── ca_ES.tsx │ │ ├── de_DE.tsx │ │ ├── el_GR.tsx │ │ ├── es_ES.tsx │ │ ├── fi_FI.tsx │ │ ├── ku_IQ.tsx │ │ ├── nl_BE.tsx │ │ ├── nl_NL.tsx │ │ ├── pl_PL.tsx │ │ ├── sl_SI.tsx │ │ ├── sr_RS.tsx │ │ ├── vi_VN.tsx │ │ ├── fr_BE.tsx │ │ ├── fr_FR.tsx │ │ ├── it_IT.tsx │ │ └── ru_RU.tsx │ ├── __tests__ │ │ ├── demo.test.js │ │ ├── __snapshots__ │ │ │ └── index.test.js.snap │ │ └── index.test.js │ ├── style │ │ └── index.tsx │ └── demo │ │ ├── disabled.md │ │ ├── interval-options.md │ │ ├── hide-column.md │ │ ├── basic.md │ │ ├── value.md │ │ ├── size.md │ │ └── 12hours.md ├── tree │ ├── __tests__ │ │ └── demo.test.js │ ├── style │ │ └── index.tsx │ └── index.tsx ├── upload │ ├── __tests__ │ │ ├── demo.test.js │ │ ├── requests.js │ │ └── mock.js │ ├── style │ │ └── index.tsx │ ├── index.tsx │ ├── Dragger.tsx │ └── demo │ │ └── directory.md ├── cascader │ ├── __tests__ │ │ └── demo.test.js │ └── style │ │ └── index.tsx ├── dropdown │ ├── __tests__ │ │ └── demo.test.js │ ├── style │ │ └── index.tsx │ ├── index.tsx │ └── demo │ │ └── context-menu.md ├── transfer │ ├── __tests__ │ │ ├── demo.test.js │ │ └── search.test.js │ └── style │ │ └── index.tsx ├── pagination │ ├── __tests__ │ │ └── demo.test.js │ ├── index.tsx │ ├── style │ │ └── index.tsx │ ├── demo │ │ ├── basic.md │ │ ├── more.md │ │ ├── simple.md │ │ ├── jump.md │ │ ├── changer.md │ │ ├── itemRender.md │ │ ├── controlled.md │ │ ├── mini.md │ │ └── total.md │ └── MiniSelect.tsx ├── popconfirm │ ├── __tests__ │ │ └── demo.test.js │ ├── style │ │ └── index.tsx │ └── demo │ │ ├── locale.md │ │ ├── icon.md │ │ └── basic.md ├── tree-select │ ├── __tests__ │ │ ├── demo.test.js │ │ └── index.test.js │ └── style │ │ └── index.tsx ├── auto-complete │ ├── __tests__ │ │ └── demo.test.js │ └── style │ │ └── index.tsx ├── drawer │ └── style │ │ ├── index.less │ │ └── index.tsx ├── date-picker │ ├── __tests__ │ │ ├── demo.test.js │ │ ├── MonthPicker.test.js │ │ └── WeekPicker.test.js │ ├── style │ │ ├── index.tsx │ │ ├── MonthPicker.less │ │ ├── index.less │ │ └── WeekPicker.less │ └── locale │ │ ├── ja_JP.tsx │ │ ├── de_DE.tsx │ │ ├── nl_BE.tsx │ │ ├── nl_NL.tsx │ │ ├── sv_SE.tsx │ │ ├── fr_BE.tsx │ │ ├── fr_FR.tsx │ │ ├── it_IT.tsx │ │ ├── uk_UA.tsx │ │ ├── sk_SK.tsx │ │ ├── el_GR.tsx │ │ ├── ko_KR.tsx │ │ ├── zh_TW.tsx │ │ ├── cs_CZ.tsx │ │ ├── bg_BG.tsx │ │ ├── et_EE.tsx │ │ ├── nb_NO.tsx │ │ ├── en_GB.tsx │ │ ├── en_US.tsx │ │ ├── fa_IR.tsx │ │ ├── is_IS.tsx │ │ ├── th_TH.tsx │ │ ├── ca_ES.tsx │ │ ├── fi_FI.tsx │ │ ├── ku_IQ.tsx │ │ ├── mn_MN.tsx │ │ ├── tr_TR.tsx │ │ ├── es_ES.tsx │ │ ├── pl_PL.tsx │ │ ├── pt_BR.tsx │ │ ├── sr_RS.tsx │ │ ├── vi_VN.tsx │ │ ├── ar_EG.tsx │ │ ├── zh_CN.tsx │ │ └── ru_RU.tsx ├── modal │ ├── style │ │ ├── index.less │ │ └── index.tsx │ └── locale.tsx └── __tests__ │ └── index.test.js ├── typings └── index.d.ts ├── tslint.json ├── tsconfig.test.json ├── tests ├── __mocks__ │ ├── create-react-context.js │ ├── rc-util │ │ └── lib │ │ │ └── Portal.js │ └── react.js ├── utils.js └── dekko │ ├── dist.test.js │ └── lib.test.js ├── site ├── theme │ ├── static │ │ ├── theme.less │ │ ├── style.js │ │ ├── docsearch.less │ │ ├── new-version-info-modal.less │ │ ├── index.less │ │ └── not-found.less │ └── template │ │ ├── BrowserFrame.jsx │ │ ├── AppShell.jsx │ │ ├── Color │ │ └── ColorPatterns.jsx │ │ ├── Content │ │ ├── EditButton.jsx │ │ └── ErrorBoundary.js │ │ ├── NotFound.jsx │ │ └── IconDisplay │ │ └── CopyableIcon.jsx └── getExternalResources.js ├── scripts ├── install-react.sh ├── update-rc.js ├── test-all.sh └── generateColorLess.js ├── .editorconfig ├── .eslintignore ├── index-with-locales.js ├── .github ├── ISSUE_TEMPLATE.md ├── CONTRIBUTING.md └── lock.yml ├── tsconfig.json ├── docs └── spec │ └── repetition.zh-CN.md ├── .jest.node.js ├── .gitignore └── .travis.yml /.codecov.yml: -------------------------------------------------------------------------------- 1 | codecov: 2 | branch: master 3 | -------------------------------------------------------------------------------- /components/style/index.tsx: -------------------------------------------------------------------------------- 1 | import './index.less'; 2 | -------------------------------------------------------------------------------- /components/mention/style/index.tsx: -------------------------------------------------------------------------------- 1 | import './index.less'; 2 | -------------------------------------------------------------------------------- /typings/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /components/locale-provider/style/index.tsx: -------------------------------------------------------------------------------- 1 | import './index.less'; 2 | -------------------------------------------------------------------------------- /components/calendar/Constants.tsx: -------------------------------------------------------------------------------- 1 | export const PREFIX_CLS = 'ant-fullcalendar'; 2 | -------------------------------------------------------------------------------- /components/style/v2-compatible-reset.tsx: -------------------------------------------------------------------------------- 1 | import './v2-compatible-reset.less'; 2 | -------------------------------------------------------------------------------- /components/style/index.less: -------------------------------------------------------------------------------- 1 | @import "./themes/default"; 2 | @import "./core/index"; 3 | -------------------------------------------------------------------------------- /components/affix/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/alert/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/anchor/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/avatar/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/badge/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/button/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/divider/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/grid/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/icon/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/layout/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/message/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/popover/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/radio/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/rate/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/spin/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/steps/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/switch/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/tabs/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/tag/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/tooltip/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/_util/type.ts: -------------------------------------------------------------------------------- 1 | export type Omit = Pick>; 2 | -------------------------------------------------------------------------------- /components/back-top/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/breadcrumb/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/carousel/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/checkbox/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/collapse/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/input-number/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/notification/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/progress/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/skeleton/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/timeline/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "./node_modules/antd-tools/lib/tslint.json" 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /components/locale-provider/style/index.less: -------------------------------------------------------------------------------- 1 | // placeholder 2 | @import "../../style/themes/default"; 3 | -------------------------------------------------------------------------------- /components/col/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import '../../grid/style/index.less'; 3 | -------------------------------------------------------------------------------- /components/row/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import '../../grid/style/index.less'; 3 | -------------------------------------------------------------------------------- /components/version/index.tsx: -------------------------------------------------------------------------------- 1 | import { version } from '../../package.json'; 2 | 3 | export default version; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/ar_EG.tsx: -------------------------------------------------------------------------------- 1 | import ar_EG from '../../date-picker/locale/ar_EG'; 2 | export default ar_EG; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/bg_BG.tsx: -------------------------------------------------------------------------------- 1 | import bg_BG from '../../date-picker/locale/bg_BG'; 2 | export default bg_BG; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/ca_ES.tsx: -------------------------------------------------------------------------------- 1 | import ca_ES from '../../date-picker/locale/ca_ES'; 2 | export default ca_ES; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/cs_CZ.tsx: -------------------------------------------------------------------------------- 1 | import cs_CZ from '../../date-picker/locale/cs_CZ'; 2 | export default cs_CZ; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/de_DE.tsx: -------------------------------------------------------------------------------- 1 | import de_DE from '../../date-picker/locale/de_DE'; 2 | export default de_DE; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/el_GR.tsx: -------------------------------------------------------------------------------- 1 | import el_GR from '../../date-picker/locale/el_GR'; 2 | export default el_GR; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/en_GB.tsx: -------------------------------------------------------------------------------- 1 | import en_GB from '../../date-picker/locale/en_GB'; 2 | export default en_GB; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/en_US.tsx: -------------------------------------------------------------------------------- 1 | import en_US from '../../date-picker/locale/en_US'; 2 | export default en_US; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/es_ES.tsx: -------------------------------------------------------------------------------- 1 | import es_ES from '../../date-picker/locale/es_ES'; 2 | export default es_ES; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/et_EE.tsx: -------------------------------------------------------------------------------- 1 | import et_EE from '../../date-picker/locale/et_EE'; 2 | export default et_EE; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/fa_IR.tsx: -------------------------------------------------------------------------------- 1 | import fa_IR from '../../date-picker/locale/fa_IR'; 2 | export default fa_IR; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/fi_FI.tsx: -------------------------------------------------------------------------------- 1 | import fi_FI from '../../date-picker/locale/fi_FI'; 2 | export default fi_FI; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/fr_BE.tsx: -------------------------------------------------------------------------------- 1 | import fr_BE from '../../date-picker/locale/fr_BE'; 2 | export default fr_BE; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/fr_FR.tsx: -------------------------------------------------------------------------------- 1 | import fr_FR from '../../date-picker/locale/fr_FR'; 2 | export default fr_FR; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/is_IS.tsx: -------------------------------------------------------------------------------- 1 | import is_IS from '../../date-picker/locale/is_IS'; 2 | export default is_IS; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/it_IT.tsx: -------------------------------------------------------------------------------- 1 | import it_IT from '../../date-picker/locale/it_IT'; 2 | export default it_IT; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/ja_JP.tsx: -------------------------------------------------------------------------------- 1 | import ja_JP from '../../date-picker/locale/ja_JP'; 2 | export default ja_JP; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/ko_KR.tsx: -------------------------------------------------------------------------------- 1 | import ko_KR from '../../date-picker/locale/ko_KR'; 2 | export default ko_KR; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/ku_IQ.tsx: -------------------------------------------------------------------------------- 1 | import ku_IQ from '../../date-picker/locale/ku_IQ'; 2 | export default ku_IQ; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/mn_MN.tsx: -------------------------------------------------------------------------------- 1 | import mn_MN from '../../date-picker/locale/mn_MN'; 2 | export default mn_MN; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/nb_NO.tsx: -------------------------------------------------------------------------------- 1 | import nb_NO from '../../date-picker/locale/nb_NO'; 2 | export default nb_NO; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/nl_BE.tsx: -------------------------------------------------------------------------------- 1 | import nl_BE from '../../date-picker/locale/nl_BE'; 2 | export default nl_BE; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/nl_NL.tsx: -------------------------------------------------------------------------------- 1 | import nl_NL from '../../date-picker/locale/nl_NL'; 2 | export default nl_NL; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/pl_PL.tsx: -------------------------------------------------------------------------------- 1 | import pl_PL from '../../date-picker/locale/pl_PL'; 2 | export default pl_PL; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/pt_BR.tsx: -------------------------------------------------------------------------------- 1 | import pt_BR from '../../date-picker/locale/pt_BR'; 2 | export default pt_BR; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/pt_PT.tsx: -------------------------------------------------------------------------------- 1 | import pt_PT from '../../date-picker/locale/pt_PT'; 2 | export default pt_PT; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/ru_RU.tsx: -------------------------------------------------------------------------------- 1 | import ru_RU from '../../date-picker/locale/ru_RU'; 2 | export default ru_RU; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/sk_SK.tsx: -------------------------------------------------------------------------------- 1 | import sk_SK from '../../date-picker/locale/sk_SK'; 2 | export default sk_SK; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/sl_SI.tsx: -------------------------------------------------------------------------------- 1 | import sl_SI from '../../date-picker/locale/sl_SI'; 2 | export default sl_SI; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/sr_RS.tsx: -------------------------------------------------------------------------------- 1 | import sr_RS from '../../date-picker/locale/sr_RS'; 2 | export default sr_RS; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/sv_SE.tsx: -------------------------------------------------------------------------------- 1 | import sv_SE from '../../date-picker/locale/sv_SE'; 2 | export default sv_SE; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/th_TH.tsx: -------------------------------------------------------------------------------- 1 | import th_TH from '../../date-picker/locale/th_TH'; 2 | export default th_TH; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/tr_TR.tsx: -------------------------------------------------------------------------------- 1 | import tr_TR from '../../date-picker/locale/tr_TR'; 2 | export default tr_TR; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/uk_UA.tsx: -------------------------------------------------------------------------------- 1 | import uk_UA from '../../date-picker/locale/uk_UA'; 2 | export default uk_UA; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/vi_VN.tsx: -------------------------------------------------------------------------------- 1 | import vi_VN from '../../date-picker/locale/vi_VN'; 2 | export default vi_VN; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/zh_CN.tsx: -------------------------------------------------------------------------------- 1 | import zh_CN from '../../date-picker/locale/zh_CN'; 2 | export default zh_CN; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/zh_TW.tsx: -------------------------------------------------------------------------------- 1 | import zh_TW from '../../date-picker/locale/zh_TW'; 2 | export default zh_TW; 3 | -------------------------------------------------------------------------------- /components/locale-provider/en_US.tsx: -------------------------------------------------------------------------------- 1 | import defaultLocale from './default'; 2 | 3 | export default defaultLocale; 4 | -------------------------------------------------------------------------------- /components/row/index.tsx: -------------------------------------------------------------------------------- 1 | import { Row, RowProps } from '../grid'; 2 | 3 | export { RowProps }; 4 | export default Row; 5 | -------------------------------------------------------------------------------- /components/tag/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('tag'); 4 | -------------------------------------------------------------------------------- /components/version/style/index.tsx: -------------------------------------------------------------------------------- 1 | // empty file prevent babel-plugin-import error 2 | import '../../style/index.less'; 3 | -------------------------------------------------------------------------------- /components/affix/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('affix'); 4 | -------------------------------------------------------------------------------- /components/alert/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('alert'); 4 | -------------------------------------------------------------------------------- /components/anchor/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('anchor'); 4 | -------------------------------------------------------------------------------- /components/avatar/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('avatar'); 4 | -------------------------------------------------------------------------------- /components/badge/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('badge'); 4 | -------------------------------------------------------------------------------- /components/button/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('button'); 4 | -------------------------------------------------------------------------------- /components/card/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('card'); 4 | -------------------------------------------------------------------------------- /components/checkbox/style/index.less: -------------------------------------------------------------------------------- 1 | @import "../../style/themes/default"; 2 | @import "./mixin"; 3 | 4 | .antCheckboxFn(); 5 | -------------------------------------------------------------------------------- /components/form/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('form'); 4 | -------------------------------------------------------------------------------- /components/grid/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('grid'); 4 | -------------------------------------------------------------------------------- /components/input/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('input'); 4 | -------------------------------------------------------------------------------- /components/layout/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('layout'); 4 | -------------------------------------------------------------------------------- /components/list/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('list'); 4 | -------------------------------------------------------------------------------- /components/menu/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('menu'); 4 | -------------------------------------------------------------------------------- /components/radio/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('radio'); 4 | -------------------------------------------------------------------------------- /components/rate/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('rate'); 4 | -------------------------------------------------------------------------------- /components/select/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('select'); 4 | -------------------------------------------------------------------------------- /components/slider/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('slider'); 4 | -------------------------------------------------------------------------------- /components/spin/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('spin'); 4 | -------------------------------------------------------------------------------- /components/steps/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('steps'); 4 | -------------------------------------------------------------------------------- /components/switch/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('switch'); 4 | -------------------------------------------------------------------------------- /components/table/index.tsx: -------------------------------------------------------------------------------- 1 | import Table from './Table'; 2 | 3 | export * from './interface'; 4 | 5 | export default Table; 6 | -------------------------------------------------------------------------------- /components/tabs/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('tabs'); 4 | -------------------------------------------------------------------------------- /components/time-picker/locale/ja_JP.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: '時刻を選択', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/ko_KR.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: '날짜 선택', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/pt_BR.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Hora', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/pt_PT.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Hora', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/zh_CN.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: '请选择时间', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/zh_TW.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: '請選擇時間', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/tree/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('tree'); 4 | -------------------------------------------------------------------------------- /components/upload/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('upload'); 4 | -------------------------------------------------------------------------------- /components/back-top/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('back-top'); 4 | -------------------------------------------------------------------------------- /components/calendar/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('calendar'); 4 | -------------------------------------------------------------------------------- /components/carousel/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('carousel'); 4 | -------------------------------------------------------------------------------- /components/cascader/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('cascader'); 4 | -------------------------------------------------------------------------------- /components/checkbox/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('checkbox'); 4 | -------------------------------------------------------------------------------- /components/collapse/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('collapse'); 4 | -------------------------------------------------------------------------------- /components/divider/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('divider'); 4 | -------------------------------------------------------------------------------- /components/dropdown/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('dropdown'); 4 | -------------------------------------------------------------------------------- /components/form/constants.tsx: -------------------------------------------------------------------------------- 1 | export const FIELD_META_PROP = 'data-__meta'; 2 | export const FIELD_DATA_PROP = 'data-__field'; 3 | -------------------------------------------------------------------------------- /components/message/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('message'); 4 | -------------------------------------------------------------------------------- /components/popover/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('popover'); 4 | -------------------------------------------------------------------------------- /components/progress/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('progress'); 4 | -------------------------------------------------------------------------------- /components/skeleton/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('skeleton'); 4 | -------------------------------------------------------------------------------- /components/style/core/index.less: -------------------------------------------------------------------------------- 1 | @import "../mixins/index"; 2 | @import "base"; 3 | @import "iconfont"; 4 | @import "motion"; 5 | -------------------------------------------------------------------------------- /components/time-picker/locale/cs_CZ.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Vybrat čas', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/en_GB.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Select time', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/en_US.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Select time', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/et_EE.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Vali aeg', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/fa_IR.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'انتخاب زمان', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/is_IS.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Velja tíma', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/mn_MN.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Цаг сонгох', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/nb_NO.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Velg tid', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/sk_SK.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Vybrať čas', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/sv_SE.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Välj tid', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/th_TH.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'เลือกเวลา', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/tr_TR.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Zaman Seç', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/uk_UA.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Оберіть час', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/timeline/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('timeline'); 4 | -------------------------------------------------------------------------------- /components/tooltip/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('tooltip'); 4 | -------------------------------------------------------------------------------- /components/transfer/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('transfer'); 4 | -------------------------------------------------------------------------------- /components/pagination/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('pagination'); 4 | -------------------------------------------------------------------------------- /components/popconfirm/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('popconfirm'); 4 | -------------------------------------------------------------------------------- /components/time-picker/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('time-picker'); 4 | -------------------------------------------------------------------------------- /components/time-picker/locale/ar_EG.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'اختيار الوقت', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/bg_BG.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Избор на час', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/ca_ES.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Seleccionar hora', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/de_DE.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Zeit auswählen', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/el_GR.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Επιλέξτε ώρα', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/es_ES.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Seleccionar hora', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/fi_FI.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Valitse aika', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/ku_IQ.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Demê hilbijêre', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/nl_BE.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Selecteer tijd', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/nl_NL.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Selecteer tijd', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/pl_PL.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Wybierz godzinę', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/sl_SI.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Izberite čas', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/sr_RS.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Izaberite vreme', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/vi_VN.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Chọn thời gian', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/tree-select/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('tree-select'); 4 | -------------------------------------------------------------------------------- /components/auto-complete/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('auto-complete'); 4 | -------------------------------------------------------------------------------- /components/auto-complete/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | import '../../select/style'; 5 | -------------------------------------------------------------------------------- /components/input-number/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('input-number'); 4 | -------------------------------------------------------------------------------- /components/notification/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('notification'); 4 | -------------------------------------------------------------------------------- /components/time-picker/locale/fr_BE.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Sélectionner l\'heure', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/fr_FR.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Sélectionner l\'heure', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/it_IT.tsx: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Selezionare il tempo', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/col/index.tsx: -------------------------------------------------------------------------------- 1 | import { Col, ColProps, ColSize } from '../grid'; 2 | 3 | export { ColProps, ColSize }; 4 | 5 | export default Col; 6 | -------------------------------------------------------------------------------- /components/drawer/style/index.less: -------------------------------------------------------------------------------- 1 | @import "../../style/themes/default"; 2 | @import "../../style/mixins/index"; 3 | @import "./drawer"; 4 | 5 | -------------------------------------------------------------------------------- /components/locale-provider/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('locale-provider'); 4 | -------------------------------------------------------------------------------- /tsconfig.test.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "allowSyntheticDefaultImports": true 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /components/card/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../tabs/style'; 6 | -------------------------------------------------------------------------------- /components/form/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../grid/style'; 6 | -------------------------------------------------------------------------------- /components/progress/index.tsx: -------------------------------------------------------------------------------- 1 | import Progress from './progress'; 2 | 3 | export { ProgressProps } from './progress'; 4 | 5 | export default Progress; 6 | -------------------------------------------------------------------------------- /components/cascader/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../input/style'; 6 | -------------------------------------------------------------------------------- /components/date-picker/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('date-picker', { skip: ['locale.md'] }); 4 | -------------------------------------------------------------------------------- /components/drawer/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../button/style'; 6 | -------------------------------------------------------------------------------- /components/dropdown/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../button/style'; 6 | -------------------------------------------------------------------------------- /components/input/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../button/style'; 6 | -------------------------------------------------------------------------------- /components/menu/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../tooltip/style'; 6 | -------------------------------------------------------------------------------- /components/modal/style/index.less: -------------------------------------------------------------------------------- 1 | @import "../../style/themes/default"; 2 | @import "../../style/mixins/index"; 3 | @import "./modal"; 4 | @import "./confirm"; 5 | -------------------------------------------------------------------------------- /components/modal/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../button/style'; 6 | -------------------------------------------------------------------------------- /components/select/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../input/style'; 6 | -------------------------------------------------------------------------------- /components/slider/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../tooltip/style'; 6 | -------------------------------------------------------------------------------- /components/tree/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../checkbox/style'; 6 | -------------------------------------------------------------------------------- /tests/__mocks__/create-react-context.js: -------------------------------------------------------------------------------- 1 | import createReactContext from 'create-react-context/lib/implementation'; 2 | 3 | export default createReactContext; 4 | -------------------------------------------------------------------------------- /components/affix/style/index.less: -------------------------------------------------------------------------------- 1 | @import "../../style/themes/default"; 2 | 3 | .@{ant-prefix}-affix { 4 | position: fixed; 5 | z-index: @zindex-affix; 6 | } 7 | -------------------------------------------------------------------------------- /components/icon/style/index.less: -------------------------------------------------------------------------------- 1 | @import "../../style/themes/default"; 2 | @import "../../style/mixins/index"; 3 | 4 | @icon-prefix-cls: ~"@{ant-prefix}-icon"; 5 | -------------------------------------------------------------------------------- /components/time-picker/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../input/style'; 6 | -------------------------------------------------------------------------------- /components/popconfirm/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | 3 | // style dependencies 4 | import '../../popover/style'; 5 | import '../../button/style'; 6 | -------------------------------------------------------------------------------- /site/theme/static/theme.less: -------------------------------------------------------------------------------- 1 | @site-heading-color: #0d1a26; 2 | @site-text-color: #314659; 3 | @site-text-color-secondary: #697b8c; 4 | @site-border-color-split: #ebedf0; 5 | -------------------------------------------------------------------------------- /components/_util/interopDefault.ts: -------------------------------------------------------------------------------- 1 | // https://github.com/moment/moment/issues/3650 2 | export default function interopDefault(m: any) { 3 | return m.default || m; 4 | } 5 | -------------------------------------------------------------------------------- /components/breadcrumb/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('breadcrumb', { skip: ['router.md', 'router-4.md'] }); 4 | -------------------------------------------------------------------------------- /components/input-number/__tests__/index.test.js: -------------------------------------------------------------------------------- 1 | import InputNumber from '..'; 2 | import focusTest from '../../../tests/shared/focusTest'; 3 | 4 | focusTest(InputNumber); 5 | -------------------------------------------------------------------------------- /components/_util/isNumeric.ts: -------------------------------------------------------------------------------- 1 | const isNumeric = (value: any): boolean => { 2 | return !isNaN(parseFloat(value)) && isFinite(value); 3 | }; 4 | 5 | export default isNumeric; 6 | -------------------------------------------------------------------------------- /components/pagination/index.tsx: -------------------------------------------------------------------------------- 1 | import Pagination from './Pagination'; 2 | 3 | export { PaginationProps, PaginationConfig } from './Pagination'; 4 | export default Pagination; 5 | -------------------------------------------------------------------------------- /components/rate/__tests__/index.test.js: -------------------------------------------------------------------------------- 1 | import Rate from '..'; 2 | import focusTest from '../../../tests/shared/focusTest'; 3 | 4 | describe('Rate', () => { 5 | focusTest(Rate); 6 | }); 7 | -------------------------------------------------------------------------------- /scripts/install-react.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -x 4 | 5 | if [ "$REACT" = 15 ]; then 6 | npm i --no-save react@15 react-dom@15 react-test-renderer@15 enzyme-adapter-react-15 7 | fi 8 | -------------------------------------------------------------------------------- /components/calendar/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../select/style'; 6 | import '../../radio/style'; 7 | -------------------------------------------------------------------------------- /components/pagination/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../select/style'; 6 | import '../../input/style'; 7 | -------------------------------------------------------------------------------- /components/table/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('table', { 4 | skip: process.env.REACT === '15' ? ['edit-row'] : [], 5 | }); 6 | -------------------------------------------------------------------------------- /components/upload/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../progress/style'; 6 | import '../../tooltip/style'; 7 | -------------------------------------------------------------------------------- /site/theme/static/style.js: -------------------------------------------------------------------------------- 1 | import 'react-github-button/assets/style.css'; 2 | import 'rc-drawer/assets/index.css'; 3 | import 'docsearch.js/dist/cdn/docsearch.css'; 4 | import './index.less'; 5 | -------------------------------------------------------------------------------- /site/theme/template/BrowserFrame.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | export default ({ children }) => ( 4 |
5 | {children} 6 |
7 | ); 8 | -------------------------------------------------------------------------------- /components/switch/__tests__/index.test.js: -------------------------------------------------------------------------------- 1 | import Switch from '..'; 2 | import focusTest from '../../../tests/shared/focusTest'; 3 | 4 | describe('Switch', () => { 5 | focusTest(Switch); 6 | }); 7 | -------------------------------------------------------------------------------- /components/time-picker/locale/ru_RU.tsx: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by Andrey Gayvoronsky on 13/04/16. 3 | */ 4 | const locale = { 5 | placeholder: 'Выберите время', 6 | }; 7 | 8 | export default locale; 9 | -------------------------------------------------------------------------------- /components/tree-select/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../select/style'; 6 | import '../../checkbox/style'; 7 | -------------------------------------------------------------------------------- /components/collapse/index.tsx: -------------------------------------------------------------------------------- 1 | import Collapse from './Collapse'; 2 | 3 | export { CollapseProps } from './Collapse'; 4 | export { CollapsePanelProps } from './CollapsePanel'; 5 | 6 | export default Collapse; 7 | -------------------------------------------------------------------------------- /components/style/mixins/size.less: -------------------------------------------------------------------------------- 1 | // Sizing shortcuts 2 | 3 | .size(@width; @height) { 4 | width: @width; 5 | height: @height; 6 | } 7 | 8 | .square(@size) { 9 | .size(@size; @size); 10 | } 11 | -------------------------------------------------------------------------------- /components/timeline/index.tsx: -------------------------------------------------------------------------------- 1 | import Timeline from './Timeline'; 2 | 3 | export { TimelineProps } from './Timeline'; 4 | export { TimeLineItemProps } from './TimelineItem'; 5 | 6 | export default Timeline; 7 | -------------------------------------------------------------------------------- /components/table/Column.tsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | import { ColumnProps } from './interface'; 3 | 4 | export default class Column extends React.Component, React.ComponentState> {} 5 | -------------------------------------------------------------------------------- /components/tree-select/__tests__/index.test.js: -------------------------------------------------------------------------------- 1 | import TreeSelect from '..'; 2 | import focusTest from '../../../tests/shared/focusTest'; 3 | 4 | describe('TreeSelect', () => { 5 | focusTest(TreeSelect); 6 | }); 7 | -------------------------------------------------------------------------------- /components/list/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../spin/style'; 6 | import '../../pagination/style'; 7 | import '../../grid/style'; 8 | -------------------------------------------------------------------------------- /scripts/update-rc.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* eslint strict:0, camelcase:0 */ 4 | 5 | 'use strict'; 6 | 7 | require('antd-tools/lib/updateComponents')((name) => { 8 | return !!name.match(/^rc-/); 9 | }); 10 | -------------------------------------------------------------------------------- /components/date-picker/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../input/style'; 6 | import '../../time-picker/style'; 7 | import '../../tag/style'; 8 | -------------------------------------------------------------------------------- /components/grid/index.tsx: -------------------------------------------------------------------------------- 1 | import Row from './row'; 2 | import Col from './col'; 3 | 4 | export { RowProps } from './row'; 5 | export { ColProps, ColSize } from './col'; 6 | 7 | export { 8 | Row, 9 | Col, 10 | }; 11 | -------------------------------------------------------------------------------- /components/transfer/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../checkbox/style'; 6 | import '../../button/style'; 7 | import '../../input/style'; 8 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # editorconfig.org 2 | 3 | root = true 4 | 5 | [*] 6 | charset = utf-8 7 | end_of_line = lf 8 | indent_style = space 9 | indent_size = 2 10 | trim_trailing_whitespace = true 11 | insert_final_newline = true 12 | -------------------------------------------------------------------------------- /site/theme/template/AppShell.jsx: -------------------------------------------------------------------------------- 1 | /** 2 | * Empty component for app shell 3 | * See https://github.com/NekR/offline-plugin/blob/master/docs/app-shell.md 4 | */ 5 | import React from 'react'; 6 | 7 | export default () =>
; 8 | -------------------------------------------------------------------------------- /components/mention/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | jest.mock('draft-js/lib/generateRandomKey', () => () => '123'); 4 | 5 | demoTest('mention', { skip: process.env.LIB_DIR === 'dist' }); 6 | -------------------------------------------------------------------------------- /components/style/mixins/index.less: -------------------------------------------------------------------------------- 1 | // Mixins 2 | // -------------------------------------------------- 3 | @import "size"; 4 | @import "compatibility"; 5 | @import "clearfix"; 6 | @import "iconfont"; 7 | @import "motion"; 8 | @import "reset"; 9 | -------------------------------------------------------------------------------- /components/form/index.tsx: -------------------------------------------------------------------------------- 1 | import Form from './Form'; 2 | 3 | export { FormProps, FormComponentProps, FormCreateOption, ValidateCallback, ValidationRule } from './Form'; 4 | export { FormItemProps } from './FormItem'; 5 | 6 | export default Form; 7 | -------------------------------------------------------------------------------- /components/layout/index.tsx: -------------------------------------------------------------------------------- 1 | import Layout from './layout'; 2 | import Sider from './Sider'; 3 | 4 | export { BasicProps as LayoutProps } from './layout'; 5 | export { SiderProps } from './Sider'; 6 | 7 | Layout.Sider = Sider; 8 | export default Layout; 9 | -------------------------------------------------------------------------------- /components/anchor/index.tsx: -------------------------------------------------------------------------------- 1 | import Anchor from './Anchor'; 2 | import AnchorLink from './AnchorLink'; 3 | 4 | export { AnchorProps } from './Anchor'; 5 | export { AnchorLinkProps } from './AnchorLink'; 6 | 7 | Anchor.Link = AnchorLink; 8 | export default Anchor; 9 | -------------------------------------------------------------------------------- /components/date-picker/__tests__/MonthPicker.test.js: -------------------------------------------------------------------------------- 1 | import DatePicker from '..'; 2 | import focusTest from '../../../tests/shared/focusTest'; 3 | 4 | const { MonthPicker } = DatePicker; 5 | 6 | describe('MonthPicker', () => { 7 | focusTest(MonthPicker); 8 | }); 9 | -------------------------------------------------------------------------------- /components/style/mixins/clearfix.less: -------------------------------------------------------------------------------- 1 | // mixins for clearfix 2 | // ------------------------ 3 | .clearfix() { 4 | zoom: 1; 5 | &:before, 6 | &:after { 7 | content: ""; 8 | display: table; 9 | } 10 | &:after { 11 | clear: both; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | components/**/*.js 2 | components/**/*.jsx 3 | components/*/__tests__/type.tsx 4 | !components/*/__tests__/**/*.js 5 | !components/*/demo/* 6 | !.*.js 7 | 8 | # Docs templates 9 | site/theme/template/IconDisplay/*.js 10 | site/theme/template/IconDisplay/*.jsx 11 | -------------------------------------------------------------------------------- /components/back-top/style/responsive.less: -------------------------------------------------------------------------------- 1 | @media screen and (max-width: @screen-md) { 2 | .@{backtop-prefix-cls} { 3 | right: 60px; 4 | } 5 | } 6 | 7 | @media screen and (max-width: @screen-xs) { 8 | .@{backtop-prefix-cls} { 9 | right: 20px; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /tests/utils.js: -------------------------------------------------------------------------------- 1 | import moment from 'moment'; 2 | import MockDate from 'mockdate'; 3 | 4 | export function setMockDate(dateString = '2017-09-18T03:30:07.795') { 5 | MockDate.set(moment(dateString)); 6 | } 7 | 8 | export function resetMockDate() { 9 | MockDate.reset(); 10 | } 11 | -------------------------------------------------------------------------------- /components/radio/index.tsx: -------------------------------------------------------------------------------- 1 | import Radio from './radio'; 2 | import Group from './group'; 3 | import Button from './radioButton'; 4 | 5 | export * from './interface'; 6 | 7 | Radio.Button = Button; 8 | Radio.Group = Group; 9 | export { Button, Group }; 10 | export default Radio; 11 | -------------------------------------------------------------------------------- /components/upload/index.tsx: -------------------------------------------------------------------------------- 1 | import Upload from './Upload'; 2 | import Dragger from './Dragger'; 3 | 4 | export { UploadProps, UploadListProps, UploadChangeParam } from './interface'; 5 | export { DraggerProps } from './Dragger'; 6 | 7 | Upload.Dragger = Dragger; 8 | export default Upload; 9 | -------------------------------------------------------------------------------- /components/upload/__tests__/requests.js: -------------------------------------------------------------------------------- 1 | export const successRequest = ({ onSuccess, file }) => { 2 | setTimeout(() => { 3 | onSuccess(null, file); 4 | }); 5 | }; 6 | 7 | export const errorRequest = ({ onError }) => { 8 | setTimeout(() => { 9 | onError(); 10 | }); 11 | }; 12 | -------------------------------------------------------------------------------- /components/checkbox/index.tsx: -------------------------------------------------------------------------------- 1 | import Checkbox from './Checkbox'; 2 | import Group from './Group'; 3 | 4 | export { CheckboxProps, CheckboxChangeEvent } from './Checkbox'; 5 | export { CheckboxGroupProps, CheckboxOptionType } from './Group'; 6 | 7 | Checkbox.Group = Group; 8 | export default Checkbox; 9 | -------------------------------------------------------------------------------- /components/dropdown/index.tsx: -------------------------------------------------------------------------------- 1 | import Dropdown from './dropdown'; 2 | import DropdownButton from './dropdown-button'; 3 | 4 | export { DropDownProps } from './dropdown'; 5 | export { DropdownButtonProps } from './dropdown-button'; 6 | 7 | Dropdown.Button = DropdownButton; 8 | export default Dropdown; 9 | -------------------------------------------------------------------------------- /components/table/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../radio/style'; 6 | import '../../checkbox/style'; 7 | import '../../dropdown/style'; 8 | import '../../spin/style'; 9 | import '../../pagination/style'; 10 | -------------------------------------------------------------------------------- /tests/dekko/dist.test.js: -------------------------------------------------------------------------------- 1 | const $ = require('dekko'); 2 | 3 | $('dist') 4 | .isDirectory() 5 | .hasFile('antd.css') 6 | .hasFile('antd.min.css') 7 | .hasFile('antd.js') 8 | .hasFile('antd.min.js'); 9 | 10 | // eslint-disable-next-line 11 | console.log('`dist` directory is valid.'); 12 | -------------------------------------------------------------------------------- /components/_util/triggerEvent.tsx: -------------------------------------------------------------------------------- 1 | export default function triggerEvent(el: Element, type: string) { 2 | if ('createEvent' in document) { 3 | // modern browsers, IE9+ 4 | const e = document.createEvent('HTMLEvents'); 5 | e.initEvent(type, false, true); 6 | el.dispatchEvent(e); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /components/_util/warning.tsx: -------------------------------------------------------------------------------- 1 | import warning from 'warning'; 2 | 3 | const warned: { [msg: string]: boolean} = {}; 4 | export default (valid: boolean, message: string): void => { 5 | if (!valid && !warned[message]) { 6 | warning(false, message); 7 | warned[message] = true; 8 | } 9 | }; 10 | -------------------------------------------------------------------------------- /components/button/index.tsx: -------------------------------------------------------------------------------- 1 | import Button from './button'; 2 | import ButtonGroup from './button-group'; 3 | 4 | export { ButtonProps, ButtonShape, ButtonSize, ButtonType } from './button'; 5 | export { ButtonGroupProps } from './button-group'; 6 | 7 | Button.Group = ButtonGroup; 8 | export default Button; 9 | -------------------------------------------------------------------------------- /components/grid/__tests__/__snapshots__/index.test.js.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`Grid should render Col 1`] = ` 4 |
7 | `; 8 | 9 | exports[`Grid should render Row 1`] = ` 10 |
13 | `; 14 | -------------------------------------------------------------------------------- /components/rate/demo/basic.md: -------------------------------------------------------------------------------- 1 | --- 2 | order: 0 3 | title: 4 | zh-CN: 基本 5 | en-US: Basic 6 | --- 7 | 8 | ## zh-CN 9 | 10 | 最简单的用法。 11 | 12 | ## en-US 13 | 14 | The simplest usage. 15 | 16 | ````jsx 17 | import { Rate } from 'antd'; 18 | 19 | ReactDOM.render(, mountNode); 20 | ```` 21 | -------------------------------------------------------------------------------- /components/breadcrumb/index.tsx: -------------------------------------------------------------------------------- 1 | import Breadcrumb from './Breadcrumb'; 2 | import BreadcrumbItem from './BreadcrumbItem'; 3 | 4 | export { BreadcrumbProps } from './Breadcrumb'; 5 | export { BreadcrumbItemProps } from './BreadcrumbItem'; 6 | 7 | Breadcrumb.Item = BreadcrumbItem; 8 | export default Breadcrumb; 9 | -------------------------------------------------------------------------------- /components/radio/demo/basic.md: -------------------------------------------------------------------------------- 1 | --- 2 | order: 0 3 | title: 4 | zh-CN: 基本 5 | en-US: Basic 6 | --- 7 | 8 | ## zh-CN 9 | 10 | 最简单的用法。 11 | 12 | ## en-US 13 | 14 | The simplest use. 15 | 16 | ```jsx 17 | import { Radio } from 'antd'; 18 | 19 | ReactDOM.render(Radio, mountNode); 20 | ``` 21 | -------------------------------------------------------------------------------- /components/table/ColumnGroup.tsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | 3 | export interface ColumnGroupProps { 4 | title?: React.ReactNode; 5 | } 6 | 7 | export default class ColumnGroup extends React.Component { 8 | static __ANT_TABLE_COLUMN_GROUP = true; 9 | } 10 | -------------------------------------------------------------------------------- /components/skeleton/demo/basic.md: -------------------------------------------------------------------------------- 1 | --- 2 | order: 0 3 | title: 4 | zh-CN: 基本 5 | en-US: Basic 6 | --- 7 | 8 | ## zh-CN 9 | 10 | 最简单的占位效果。 11 | 12 | ## en-US 13 | 14 | Simplest Skeleton usage. 15 | 16 | ````jsx 17 | import { Skeleton } from 'antd'; 18 | 19 | ReactDOM.render(, mountNode); 20 | ```` 21 | -------------------------------------------------------------------------------- /components/spin/__tests__/__snapshots__/index.test.js.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`Spin should render custom indicator when it's set 1`] = ` 4 |
7 |
10 |
11 | `; 12 | -------------------------------------------------------------------------------- /components/time-picker/__tests__/__snapshots__/index.test.js.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`TimePicker renders addon correctly 1`] = ` 4 |
7 | 12 |
13 | `; 14 | -------------------------------------------------------------------------------- /scripts/test-all.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | npm run lint && \ 4 | npm run dist && \ 5 | node ./tests/dekko/dist.test.js && \ 6 | LIB_DIR=dist npm test && \ 7 | npm run compile && \ 8 | node ./tests/dekko/lib.test.js && \ 9 | LIB_DIR=es npm test && \ 10 | LIB_DIR=lib npm test && \ 11 | npm test && \ 12 | npm run test-node 13 | -------------------------------------------------------------------------------- /components/spin/demo/basic.md: -------------------------------------------------------------------------------- 1 | --- 2 | order: 0 3 | title: 4 | zh-CN: 基本用法 5 | en-US: basic Usage 6 | --- 7 | 8 | ## zh-CN 9 | 10 | 一个简单的 loading 状态。 11 | 12 | ## en-US 13 | 14 | A simple loading status. 15 | 16 | ````jsx 17 | import { Spin } from 'antd'; 18 | 19 | ReactDOM.render(, mountNode); 20 | ```` 21 | -------------------------------------------------------------------------------- /components/date-picker/style/MonthPicker.less: -------------------------------------------------------------------------------- 1 | .@{calendar-prefix-cls}-month { 2 | .@{calendar-prefix-cls}-month-header-wrap { 3 | position: relative; 4 | height: 288px; 5 | } 6 | .@{calendar-prefix-cls}-month-panel, 7 | .@{calendar-prefix-cls}-year-panel { 8 | top: 0; 9 | height: 100%; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /components/input/demo/basic.md: -------------------------------------------------------------------------------- 1 | --- 2 | order: 0 3 | title: 4 | zh-CN: 基本使用 5 | en-US: Basic usage 6 | --- 7 | 8 | ## zh-CN 9 | 10 | 基本使用。 11 | 12 | ## en-US 13 | 14 | Basic usage example. 15 | 16 | ````jsx 17 | import { Input } from 'antd'; 18 | 19 | ReactDOM.render(, mountNode); 20 | ```` 21 | -------------------------------------------------------------------------------- /components/rate/demo/half.md: -------------------------------------------------------------------------------- 1 | --- 2 | order: 1 3 | title: 4 | zh-CN: 半星 5 | en-US: Half star 6 | --- 7 | 8 | ## zh-CN 9 | 10 | 支持选中半星。 11 | 12 | ## en-US 13 | 14 | Support select half star. 15 | 16 | ````jsx 17 | import { Rate } from 'antd'; 18 | 19 | ReactDOM.render(, mountNode); 20 | ```` 21 | -------------------------------------------------------------------------------- /components/skeleton/demo/active.md: -------------------------------------------------------------------------------- 1 | --- 2 | order: 2 3 | title: 4 | zh-CN: 动画效果 5 | en-US: Active Animation 6 | --- 7 | 8 | ## zh-CN 9 | 10 | 显示动画效果。 11 | 12 | ## en-US 13 | 14 | Display active animation. 15 | 16 | ````jsx 17 | import { Skeleton } from 'antd'; 18 | 19 | ReactDOM.render(, mountNode); 20 | ```` 21 | -------------------------------------------------------------------------------- /components/pagination/demo/basic.md: -------------------------------------------------------------------------------- 1 | --- 2 | order: 0 3 | title: 4 | zh-CN: 基本 5 | en-US: Basic 6 | --- 7 | 8 | ## zh-CN 9 | 10 | 基础分页。 11 | 12 | ## en-US 13 | 14 | Basic pagination. 15 | 16 | ````jsx 17 | import { Pagination } from 'antd'; 18 | 19 | ReactDOM.render(, mountNode); 20 | ```` 21 | -------------------------------------------------------------------------------- /components/pagination/demo/more.md: -------------------------------------------------------------------------------- 1 | --- 2 | order: 1 3 | title: 4 | zh-CN: 更多 5 | en-US: More 6 | --- 7 | 8 | ## zh-CN 9 | 10 | 更多分页。 11 | 12 | ## en-US 13 | 14 | More pages. 15 | 16 | ````jsx 17 | import { Pagination } from 'antd'; 18 | 19 | ReactDOM.render( 20 | , 21 | mountNode); 22 | ```` 23 | -------------------------------------------------------------------------------- /components/rate/demo/disabled.md: -------------------------------------------------------------------------------- 1 | --- 2 | order: 3 3 | title: 4 | zh-CN: 只读 5 | en-US: Read only 6 | --- 7 | 8 | ## zh-CN 9 | 10 | 只读,无法进行鼠标交互。 11 | 12 | ## en-US 13 | 14 | Read only, can't use mouse to interact. 15 | 16 | ````jsx 17 | import { Rate } from 'antd'; 18 | 19 | ReactDOM.render(, mountNode); 20 | ```` 21 | -------------------------------------------------------------------------------- /components/style/mixins/reset.less: -------------------------------------------------------------------------------- 1 | @import '../themes/default'; 2 | 3 | .reset-component() { 4 | font-family: @font-family; 5 | font-size: @font-size-base; 6 | font-variant: tabular-nums; 7 | line-height: @line-height-base; 8 | color: @text-color; 9 | box-sizing: border-box; 10 | margin: 0; 11 | padding: 0; 12 | list-style: none; 13 | } 14 | -------------------------------------------------------------------------------- /index-with-locales.js: -------------------------------------------------------------------------------- 1 | const antd = require('./components'); 2 | const req = require.context('./components', true, /^\.\/locale-provider\/.+_.+\.tsx$/); 3 | 4 | antd.locales = {}; 5 | 6 | req.keys().forEach((mod) => { 7 | const match = mod.match(/\/([^/]+).tsx$/); 8 | antd.locales[match[1]] = req(mod).default; 9 | }); 10 | 11 | module.exports = antd; 12 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 8 | 9 | 16 | -------------------------------------------------------------------------------- /components/input/demo/textarea.md: -------------------------------------------------------------------------------- 1 | --- 2 | order: 5 3 | title: 4 | zh-CN: 文本域 5 | en-US: TextArea 6 | --- 7 | 8 | ## zh-CN 9 | 10 | 用于多行输入。 11 | 12 | ## en-US 13 | 14 | For multi-line input. 15 | 16 | ````jsx 17 | import { Input } from 'antd'; 18 | 19 | const { TextArea } = Input; 20 | 21 | ReactDOM.render(