├── .npmignore ├── CNAME ├── .dockerignore ├── components ├── style │ ├── index.tsx │ ├── index.less │ ├── dark.less │ ├── compact.less │ ├── variable.less │ ├── core │ │ ├── index.less │ │ └── base.less │ ├── mixins │ │ ├── box.less │ │ ├── size.less │ │ ├── operation-unit.less │ │ ├── reset.less │ │ ├── compatibility.less │ │ ├── index.less │ │ └── clearfix.less │ ├── default.less │ └── themes │ │ └── index.less ├── config-provider │ ├── style │ │ ├── index.tsx │ │ └── index.less │ └── __tests__ │ │ ├── image.test.ts │ │ └── static.test.ts ├── locale-provider │ ├── style │ │ ├── index.tsx │ │ └── index.less │ ├── ar_EG.tsx │ ├── az_AZ.tsx │ ├── bg_BG.tsx │ ├── bn_BD.tsx │ ├── by_BY.tsx │ ├── ca_ES.tsx │ ├── cs_CZ.tsx │ ├── da_DK.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_CA.tsx │ ├── fr_FR.tsx │ ├── ga_IE.tsx │ ├── gl_ES.tsx │ ├── he_IL.tsx │ ├── hi_IN.tsx │ ├── hr_HR.tsx │ ├── hu_HU.tsx │ ├── hy_AM.tsx │ ├── id_ID.tsx │ ├── is_IS.tsx │ ├── it_IT.tsx │ ├── ja_JP.tsx │ ├── ka_GE.tsx │ ├── kk_KZ.tsx │ ├── km_KH.tsx │ ├── kmr_IQ.tsx │ ├── kn_IN.tsx │ ├── ko_KR.tsx │ ├── ku_IQ.tsx │ ├── lt_LT.tsx │ ├── lv_LV.tsx │ ├── mk_MK.tsx │ ├── ml_IN.tsx │ ├── mn_MN.tsx │ ├── ms_MY.tsx │ ├── nb_NO.tsx │ ├── ne_NP.tsx │ ├── nl_BE.tsx │ ├── nl_NL.tsx │ ├── pl_PL.tsx │ ├── pt_BR.tsx │ ├── pt_PT.tsx │ ├── ro_RO.tsx │ ├── ru_RU.tsx │ ├── si_LK.tsx │ ├── sk_SK.tsx │ ├── sl_SI.tsx │ ├── sr_RS.tsx │ ├── sv_SE.tsx │ ├── ta_IN.tsx │ ├── th_TH.tsx │ ├── tk_TK.tsx │ ├── tr_TR.tsx │ ├── uk_UA.tsx │ ├── ur_PK.tsx │ ├── vi_VN.tsx │ ├── zh_CN.tsx │ ├── zh_HK.tsx │ ├── zh_TW.tsx │ ├── default.tsx │ └── context.ts ├── affix │ ├── style │ │ ├── index.tsx │ │ └── index.less │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ ├── image.test.ts │ │ └── __snapshots__ │ │ │ └── Affix.test.tsx.snap │ └── demo │ │ └── on-change.md ├── alert │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ └── demo │ │ ├── close-text.md │ │ └── basic.md ├── badge │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ ├── image.test.ts │ │ └── __snapshots__ │ │ │ └── ribbon.test.tsx.snap │ └── utils.tsx ├── button │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ └── index.tsx ├── comment │ ├── style │ │ └── index.tsx │ └── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts ├── divider │ ├── style │ │ └── index.tsx │ └── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts ├── empty │ ├── style │ │ ├── index.tsx │ │ └── rtl.less │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ └── demo │ │ ├── basic.md │ │ ├── description.md │ │ └── simple.md ├── grid │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ ├── RowContext.tsx │ └── index.tsx ├── icon │ ├── style │ │ ├── index.tsx │ │ └── index.less │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ └── index.tsx ├── image │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ ├── demo.test.ts │ │ └── demo-extend.test.ts │ └── demo │ │ └── basic.md ├── layout │ ├── style │ │ ├── index.tsx │ │ ├── rtl.less │ │ └── light.less │ └── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts ├── message │ ├── style │ │ ├── index.tsx │ │ └── rtl.less │ └── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts ├── result │ ├── style │ │ └── index.tsx │ └── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ ├── image.test.ts │ │ └── type.test.tsx ├── space │ ├── style │ │ ├── index.tsx │ │ └── rtl.less │ └── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts ├── spin │ ├── style │ │ ├── index.tsx │ │ └── rtl.less │ ├── __tests__ │ │ ├── demo.test.ts │ │ └── demo-extend.test.ts │ └── demo │ │ └── basic.md ├── switch │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ ├── image.test.ts │ │ └── __snapshots__ │ │ │ └── index.test.tsx.snap │ └── demo │ │ ├── loading.md │ │ └── size.md ├── tabs │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ └── TabPane.tsx ├── tag │ ├── style │ │ └── index.tsx │ └── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts ├── tooltip │ ├── style │ │ ├── index.tsx │ │ └── rtl.less │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ └── demo │ │ └── basic.md ├── tree │ ├── style │ │ ├── index.tsx │ │ └── index.less │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ └── index.tsx ├── back-top │ ├── style │ │ ├── index.tsx │ │ └── responsive.less │ └── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ ├── image.test.ts │ │ └── __snapshots__ │ │ └── index.test.tsx.snap ├── carousel │ ├── style │ │ └── index.tsx │ └── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts ├── collapse │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ └── index.tsx ├── descriptions │ ├── style │ │ └── index.tsx │ └── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts ├── notification │ ├── style │ │ └── index.tsx │ └── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts ├── progress │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ └── index.tsx ├── segmented │ ├── style │ │ ├── index.tsx │ │ └── rtl.less │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ └── demo │ │ ├── block.md │ │ └── basic.md ├── skeleton │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ ├── index.tsx │ └── demo │ │ ├── basic.md │ │ ├── active.md │ │ └── complex.md ├── timeline │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ └── index.tsx ├── modal │ ├── destroyFns.ts │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ ├── image.test.ts │ │ └── type.test.tsx │ └── style │ │ ├── index.tsx │ │ └── index.less ├── locale │ └── en_US.tsx ├── calendar │ ├── locale │ │ ├── ar_EG.tsx │ │ ├── az_AZ.tsx │ │ ├── bg_BG.tsx │ │ ├── bn_BD.tsx │ │ ├── by_BY.tsx │ │ ├── ca_ES.tsx │ │ ├── cs_CZ.tsx │ │ ├── da_DK.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_CA.tsx │ │ ├── fr_FR.tsx │ │ ├── ga_IE.tsx │ │ ├── gl_ES.tsx │ │ ├── he_IL.tsx │ │ ├── hi_IN.tsx │ │ ├── hr_HR.tsx │ │ ├── hu_HU.tsx │ │ ├── id_ID.tsx │ │ ├── is_IS.tsx │ │ ├── it_IT.tsx │ │ ├── ja_JP.tsx │ │ ├── ka_GE.tsx │ │ ├── kk_KZ.tsx │ │ ├── km_KH.tsx │ │ ├── kn_IN.tsx │ │ ├── ko_KR.tsx │ │ ├── lt_LT.tsx │ │ ├── lv_LV.tsx │ │ ├── mk_MK.tsx │ │ ├── ml_IN.tsx │ │ ├── mn_MN.tsx │ │ ├── ms_MY.tsx │ │ ├── nb_NO.tsx │ │ ├── nl_BE.tsx │ │ ├── nl_NL.tsx │ │ ├── pl_PL.tsx │ │ ├── pt_BR.tsx │ │ ├── pt_PT.tsx │ │ ├── ro_RO.tsx │ │ ├── ru_RU.tsx │ │ ├── si_LK.tsx │ │ ├── sk_SK.tsx │ │ ├── sl_SI.tsx │ │ ├── sr_RS.tsx │ │ ├── sv_SE.tsx │ │ ├── ta_IN.tsx │ │ ├── th_TH.tsx │ │ ├── tk_TK.tsx │ │ ├── tr_TR.tsx │ │ ├── uk_UA.tsx │ │ ├── ur_PK.tsx │ │ ├── vi_VN.tsx │ │ ├── zh_CN.tsx │ │ ├── zh_TW.tsx │ │ └── kmr_IQ.tsx │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ ├── style │ │ └── index.tsx │ └── index.tsx ├── row │ ├── index.tsx │ └── style │ │ └── index.tsx ├── version │ ├── style │ │ └── index.tsx │ └── index.tsx ├── anchor │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ ├── style │ │ └── index.tsx │ ├── context.ts │ └── index.tsx ├── avatar │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ └── style │ │ ├── index.tsx │ │ ├── rtl.less │ │ └── group.less ├── card │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ ├── image.test.ts │ │ └── type.test.tsx │ └── style │ │ └── index.tsx ├── checkbox │ ├── style │ │ ├── index.tsx │ │ └── index.less │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ └── demo │ │ └── disabled.md ├── drawer │ ├── __tests__ │ │ ├── demo.test.ts │ │ └── image.test.ts │ └── style │ │ ├── index.tsx │ │ ├── index.less │ │ └── rtl.less ├── input │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ ├── style │ │ ├── index.tsx │ │ └── IE11.less │ ├── utils.ts │ └── demo │ │ ├── basic.md │ │ └── borderless.md ├── list │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ ├── image.test.ts │ │ └── empty.test.tsx │ └── style │ │ ├── index.tsx │ │ └── customize.less ├── menu │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ └── style │ │ ├── index.tsx │ │ └── light.less ├── radio │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ ├── style │ │ └── index.tsx │ └── demo │ │ └── basic.md ├── rate │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ ├── image.test.ts │ │ └── index.test.ts │ ├── style │ │ ├── index.tsx │ │ └── rtl.less │ └── demo │ │ ├── basic.md │ │ ├── half.md │ │ └── disabled.md ├── select │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ └── style │ │ └── index.tsx ├── steps │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ ├── image.test.ts │ │ ├── index.test.tsx │ │ └── __snapshots__ │ │ │ └── index.test.tsx.snap │ └── style │ │ └── index.tsx ├── table │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ ├── index.tsx │ ├── hooks │ │ └── useFilter │ │ │ └── FilterWrapper.tsx │ ├── Column.tsx │ └── style │ │ └── index.tsx ├── upload │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ ├── image.test.ts │ │ ├── mock.ts │ │ └── requests.ts │ └── style │ │ └── index.tsx ├── cascader │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ └── style │ │ └── index.tsx ├── dropdown │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ ├── style │ │ ├── index.tsx │ │ └── status.less │ └── index.tsx ├── mentions │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ ├── image.test.ts │ │ └── __snapshots__ │ │ │ └── index.test.tsx.snap │ └── style │ │ ├── index.tsx │ │ └── rtl.less ├── popover │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ └── style │ │ └── index.tsx ├── transfer │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ ├── interface.ts │ └── style │ │ └── index.tsx ├── input-number │ ├── style │ │ └── index.tsx │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ └── demo │ │ ├── borderless.md │ │ └── basic.md ├── page-header │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ └── style │ │ └── index.tsx ├── pagination │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ ├── index.tsx │ ├── style │ │ └── index.tsx │ └── demo │ │ ├── more.md │ │ └── basic.md ├── popconfirm │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ ├── image.test.ts │ │ └── type.test.tsx │ └── style │ │ ├── index.tsx │ │ └── index.less ├── statistic │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ ├── style │ │ ├── index.tsx │ │ └── rtl.less │ └── index.tsx ├── time-picker │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ ├── image.test.ts │ │ └── type.test.tsx │ ├── style │ │ ├── index.less │ │ └── index.tsx │ ├── locale │ │ ├── pt_BR.tsx │ │ ├── pt_PT.tsx │ │ ├── az_AZ.tsx │ │ ├── et_EE.tsx │ │ ├── he_IL.tsx │ │ ├── sv_SE.tsx │ │ ├── th_TH.tsx │ │ ├── zh_TW.tsx │ │ ├── ar_EG.tsx │ │ ├── bg_BG.tsx │ │ ├── cs_CZ.tsx │ │ ├── de_DE.tsx │ │ ├── el_GR.tsx │ │ ├── en_GB.tsx │ │ ├── fi_FI.tsx │ │ ├── gl_ES.tsx │ │ ├── hu_HU.tsx │ │ ├── id_ID.tsx │ │ ├── is_IS.tsx │ │ ├── kn_IN.tsx │ │ ├── mk_MK.tsx │ │ ├── mn_MN.tsx │ │ ├── ro_RO.tsx │ │ ├── sk_SK.tsx │ │ ├── sl_SI.tsx │ │ ├── uk_UA.tsx │ │ ├── vi_VN.tsx │ │ ├── ca_ES.tsx │ │ ├── es_ES.tsx │ │ ├── kmr_IQ.tsx │ │ ├── lv_LV.tsx │ │ ├── ms_MY.tsx │ │ ├── pl_PL.tsx │ │ ├── fr_BE.tsx │ │ ├── it_IT.tsx │ │ ├── ta_IN.tsx │ │ ├── ja_JP.tsx │ │ ├── ko_KR.tsx │ │ ├── zh_CN.tsx │ │ ├── nb_NO.tsx │ │ ├── bn_BD.tsx │ │ ├── en_US.tsx │ │ ├── fa_IR.tsx │ │ ├── km_KH.tsx │ │ ├── da_DK.tsx │ │ ├── ga_IE.tsx │ │ ├── hi_IN.tsx │ │ ├── nl_BE.tsx │ │ ├── nl_NL.tsx │ │ ├── si_LK.tsx │ │ ├── ur_PK.tsx │ │ ├── by_BY.tsx │ │ ├── ka_GE.tsx │ │ ├── ml_IN.tsx │ │ ├── tr_TR.tsx │ │ ├── kk_KZ.tsx │ │ ├── sr_RS.tsx │ │ ├── tk_TK.tsx │ │ ├── fr_CA.tsx │ │ ├── fr_FR.tsx │ │ ├── hr_HR.tsx │ │ ├── lt_LT.tsx │ │ └── ru_RU.tsx │ └── demo │ │ ├── range-picker.md │ │ ├── disabled.md │ │ └── interval-options.md ├── tree-select │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ └── style │ │ └── index.tsx ├── typography │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ ├── style │ │ └── index.tsx │ ├── hooks │ │ ├── useUpdatedEffect.ts │ │ └── useMergedConfig.ts │ └── Paragraph.tsx ├── auto-complete │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ └── style │ │ └── index.tsx ├── slider │ ├── __tests__ │ │ ├── demo-extend.test.ts │ │ ├── demo.test.ts │ │ └── image.test.ts │ ├── style │ │ └── index.tsx │ └── demo │ │ └── dragableTrack.md ├── col │ ├── index.tsx │ └── style │ │ └── index.tsx ├── _util │ ├── isNumeric.ts │ ├── hooks │ │ ├── useForceUpdate.ts │ │ └── useFlexGapSupport.ts │ ├── __tests__ │ │ ├── getScrollNode.test.ts │ │ ├── easings.test.ts │ │ └── transButton.test.tsx │ ├── easings.ts │ ├── getDataOrAriaProps.ts │ └── getRenderPropValue.ts ├── date-picker │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ ├── style │ │ └── index.tsx │ ├── PickerTag.tsx │ ├── PickerButton.tsx │ └── locale │ │ └── az_AZ.tsx ├── breadcrumb │ ├── __tests__ │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ ├── style │ │ └── index.tsx │ └── index.tsx ├── form │ ├── __tests__ │ │ ├── __snapshots__ │ │ │ └── list.test.tsx.snap │ │ ├── demo.test.ts │ │ ├── demo-extend.test.ts │ │ └── image.test.ts │ ├── changelog.md │ ├── style │ │ └── index.tsx │ ├── interface.ts │ └── hooks │ │ ├── useFormInstance.ts │ │ └── useDebounce.ts └── overview │ ├── index.zh-CN.md │ └── index.en-US.md ├── typings ├── index.d.ts └── jest.d.ts ├── site ├── theme │ ├── static │ │ ├── home.less │ │ ├── style.js │ │ ├── rtl.less │ │ ├── contributors.less │ │ ├── design-doc.less │ │ ├── nprogress.less │ │ └── theme.less │ ├── template │ │ ├── Layout │ │ │ └── Header │ │ │ │ └── interface.tsx │ │ ├── AppShell.tsx │ │ ├── BrowserFrame.tsx │ │ ├── Components │ │ │ └── Helmet.tsx │ │ └── Color │ │ │ └── ColorPatterns.jsx │ ├── en-US.d.ts │ ├── zh-CN.d.ts │ └── index-css-only.js ├── themeConfig.d.ts └── .eslintrc.js ├── index.js ├── .codesandbox └── ci.json ├── .husky └── pre-commit ├── tests ├── __mocks__ │ ├── rc-virtual-list.js │ ├── copy-to-clipboard.js │ ├── rc-trigger.js │ └── rc-util │ │ └── lib │ │ └── Portal.js ├── shared │ └── demoTestContext.ts └── index.html ├── docs └── spec │ ├── shadow.en-US.md │ ├── research-overview.en-US.md │ ├── research-form.en-US.md │ ├── research-list.en-US.md │ ├── research-result.en-US.md │ ├── research-workbench.en-US.md │ ├── research-exception.en-US.md │ ├── research-empty.en-US.md │ ├── research-navigation.en-US.md │ ├── research-message-and-feedback.en-US.md │ └── research-overview.zh-CN.md ├── .github ├── tests_checker.yml ├── FUNDING.yml ├── CONTRIBUTING.md ├── ISSUE_TEMPLATE.md └── ISSUE_TEMPLATE │ └── config.yml ├── .gitpod.yml ├── scripts ├── update-rc.js ├── generate-version.js ├── compact-vars.js └── check-demo.js ├── .editorconfig ├── .remarkrc.js ├── .prettierrc ├── index-with-locales.js ├── jest-puppeteer.config.js └── .prettierignore /.npmignore: -------------------------------------------------------------------------------- 1 | ~* 2 | -------------------------------------------------------------------------------- /CNAME: -------------------------------------------------------------------------------- 1 | ant.design 2 | -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | -------------------------------------------------------------------------------- /components/style/index.tsx: -------------------------------------------------------------------------------- 1 | import './index.less'; 2 | -------------------------------------------------------------------------------- /typings/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /components/config-provider/style/index.tsx: -------------------------------------------------------------------------------- 1 | import './index.less'; 2 | -------------------------------------------------------------------------------- /components/locale-provider/style/index.tsx: -------------------------------------------------------------------------------- 1 | import './index.less'; 2 | -------------------------------------------------------------------------------- /components/style/index.less: -------------------------------------------------------------------------------- 1 | @import './themes/index'; 2 | @import './core/index'; 3 | -------------------------------------------------------------------------------- /site/theme/static/home.less: -------------------------------------------------------------------------------- 1 | @home-bg-color: #2f54eb; 2 | @home-text-color: #314659; 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/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/comment/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/empty/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/image/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/result/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/space/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/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/tree/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | require('./index-style-only'); 2 | 3 | module.exports = require('./components'); 4 | -------------------------------------------------------------------------------- /components/back-top/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/collapse/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/config-provider/style/index.less: -------------------------------------------------------------------------------- 1 | // placeholder 2 | @import '../../style/themes/index'; 3 | -------------------------------------------------------------------------------- /components/descriptions/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/locale-provider/style/index.less: -------------------------------------------------------------------------------- 1 | // placeholder 2 | @import '../../style/themes/index'; 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/segmented/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 | -------------------------------------------------------------------------------- /components/modal/destroyFns.ts: -------------------------------------------------------------------------------- 1 | const destroyFns: Array<() => void> = []; 2 | export default destroyFns; 3 | -------------------------------------------------------------------------------- /.codesandbox/ci.json: -------------------------------------------------------------------------------- 1 | { 2 | "sandboxes": ["antd-reproduction-template-y9vgcf"], 3 | "node": "14" 4 | } 5 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | npx --no-install pretty-quick --staged -------------------------------------------------------------------------------- /components/locale-provider/ar_EG.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/ar_EG'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/az_AZ.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/az_AZ'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/bg_BG.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/bg_BG'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/bn_BD.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/bn_BD'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/by_BY.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/by_BY'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/ca_ES.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/ca_ES'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/cs_CZ.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/cs_CZ'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/da_DK.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/da_DK'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/de_DE.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/de_DE'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/el_GR.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/el_GR'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/en_GB.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/en_GB'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/en_US.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/en_US'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/es_ES.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/es_ES'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/et_EE.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/et_EE'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/fa_IR.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/fa_IR'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/fi_FI.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/fi_FI'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/fr_BE.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/fr_BE'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/fr_CA.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/fr_CA'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/fr_FR.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/fr_FR'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/ga_IE.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/ga_IE'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/gl_ES.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/gl_ES'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/he_IL.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/he_IL'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/hi_IN.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/hi_IN'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/hr_HR.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/hr_HR'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/hu_HU.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/hu_HU'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/hy_AM.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/hy_AM'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/id_ID.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/id_ID'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/is_IS.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/is_IS'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/it_IT.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/it_IT'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/ja_JP.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/ja_JP'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/ka_GE.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/ka_GE'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/kk_KZ.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/kk_KZ'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/km_KH.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/km_KH'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/kmr_IQ.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/kmr_IQ'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/kn_IN.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/kn_IN'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/ko_KR.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/ko_KR'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/ku_IQ.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/ku_IQ'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/lt_LT.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/lt_LT'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/lv_LV.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/lv_LV'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/mk_MK.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/mk_MK'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/ml_IN.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/ml_IN'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/mn_MN.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/mn_MN'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/ms_MY.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/ms_MY'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/nb_NO.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/nb_NO'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/ne_NP.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/ne_NP'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/nl_BE.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/nl_BE'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/nl_NL.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/nl_NL'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/pl_PL.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/pl_PL'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/pt_BR.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/pt_BR'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/pt_PT.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/pt_PT'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/ro_RO.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/ro_RO'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/ru_RU.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/ru_RU'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/si_LK.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/si_LK'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/sk_SK.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/sk_SK'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/sl_SI.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/sl_SI'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/sr_RS.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/sr_RS'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/sv_SE.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/sv_SE'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/ta_IN.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/ta_IN'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/th_TH.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/th_TH'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/tk_TK.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/tk_TK'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/tr_TR.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/tr_TR'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/uk_UA.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/uk_UA'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/ur_PK.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/ur_PK'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/vi_VN.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/vi_VN'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/zh_CN.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/zh_CN'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/zh_HK.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/zh_HK'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale-provider/zh_TW.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/zh_TW'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /components/locale/en_US.tsx: -------------------------------------------------------------------------------- 1 | import defaultLocale from './default'; 2 | 3 | export default defaultLocale; 4 | -------------------------------------------------------------------------------- /tests/__mocks__/rc-virtual-list.js: -------------------------------------------------------------------------------- 1 | import List from 'rc-virtual-list/lib/mock'; 2 | 3 | export default List; 4 | -------------------------------------------------------------------------------- /components/locale-provider/default.tsx: -------------------------------------------------------------------------------- 1 | import locale from '../locale/default'; 2 | 3 | export default locale; 4 | -------------------------------------------------------------------------------- /docs/spec/shadow.en-US.md: -------------------------------------------------------------------------------- 1 | --- 2 | category: Global Styles 3 | order: 6 4 | title: Shadow 5 | skip: true 6 | --- 7 | -------------------------------------------------------------------------------- /components/calendar/locale/ar_EG.tsx: -------------------------------------------------------------------------------- 1 | import arEG from '../../date-picker/locale/ar_EG'; 2 | 3 | export default arEG; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/az_AZ.tsx: -------------------------------------------------------------------------------- 1 | import azAZ from '../../date-picker/locale/az_AZ'; 2 | 3 | export default azAZ; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/bg_BG.tsx: -------------------------------------------------------------------------------- 1 | import bgBG from '../../date-picker/locale/bg_BG'; 2 | 3 | export default bgBG; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/bn_BD.tsx: -------------------------------------------------------------------------------- 1 | import bnBD from '../../date-picker/locale/bn_BD'; 2 | 3 | export default bnBD; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/by_BY.tsx: -------------------------------------------------------------------------------- 1 | import byBY from '../../date-picker/locale/by_BY'; 2 | 3 | export default byBY; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/ca_ES.tsx: -------------------------------------------------------------------------------- 1 | import caES from '../../date-picker/locale/ca_ES'; 2 | 3 | export default caES; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/cs_CZ.tsx: -------------------------------------------------------------------------------- 1 | import csCZ from '../../date-picker/locale/cs_CZ'; 2 | 3 | export default csCZ; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/da_DK.tsx: -------------------------------------------------------------------------------- 1 | import daDK from '../../date-picker/locale/da_DK'; 2 | 3 | export default daDK; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/de_DE.tsx: -------------------------------------------------------------------------------- 1 | import deDE from '../../date-picker/locale/de_DE'; 2 | 3 | export default deDE; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/el_GR.tsx: -------------------------------------------------------------------------------- 1 | import elGR from '../../date-picker/locale/el_GR'; 2 | 3 | export default elGR; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/en_GB.tsx: -------------------------------------------------------------------------------- 1 | import enGB from '../../date-picker/locale/en_GB'; 2 | 3 | export default enGB; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/en_US.tsx: -------------------------------------------------------------------------------- 1 | import enUS from '../../date-picker/locale/en_US'; 2 | 3 | export default enUS; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/es_ES.tsx: -------------------------------------------------------------------------------- 1 | import esES from '../../date-picker/locale/es_ES'; 2 | 3 | export default esES; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/et_EE.tsx: -------------------------------------------------------------------------------- 1 | import etEE from '../../date-picker/locale/et_EE'; 2 | 3 | export default etEE; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/fa_IR.tsx: -------------------------------------------------------------------------------- 1 | import faIR from '../../date-picker/locale/fa_IR'; 2 | 3 | export default faIR; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/fi_FI.tsx: -------------------------------------------------------------------------------- 1 | import fiFI from '../../date-picker/locale/fi_FI'; 2 | 3 | export default fiFI; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/fr_BE.tsx: -------------------------------------------------------------------------------- 1 | import frBE from '../../date-picker/locale/fr_BE'; 2 | 3 | export default frBE; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/fr_CA.tsx: -------------------------------------------------------------------------------- 1 | import frCA from '../../date-picker/locale/fr_CA'; 2 | 3 | export default frCA; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/fr_FR.tsx: -------------------------------------------------------------------------------- 1 | import frFR from '../../date-picker/locale/fr_FR'; 2 | 3 | export default frFR; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/ga_IE.tsx: -------------------------------------------------------------------------------- 1 | import gaIE from '../../date-picker/locale/ga_IE'; 2 | 3 | export default gaIE; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/gl_ES.tsx: -------------------------------------------------------------------------------- 1 | import glES from '../../date-picker/locale/gl_ES'; 2 | 3 | export default glES; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/he_IL.tsx: -------------------------------------------------------------------------------- 1 | import heIL from '../../date-picker/locale/he_IL'; 2 | 3 | export default heIL; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/hi_IN.tsx: -------------------------------------------------------------------------------- 1 | import hiIN from '../../date-picker/locale/hi_IN'; 2 | 3 | export default hiIN; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/hr_HR.tsx: -------------------------------------------------------------------------------- 1 | import hrHR from '../../date-picker/locale/hr_HR'; 2 | 3 | export default hrHR; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/hu_HU.tsx: -------------------------------------------------------------------------------- 1 | import huHU from '../../date-picker/locale/hu_HU'; 2 | 3 | export default huHU; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/id_ID.tsx: -------------------------------------------------------------------------------- 1 | import idID from '../../date-picker/locale/id_ID'; 2 | 3 | export default idID; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/is_IS.tsx: -------------------------------------------------------------------------------- 1 | import isIS from '../../date-picker/locale/is_IS'; 2 | 3 | export default isIS; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/it_IT.tsx: -------------------------------------------------------------------------------- 1 | import itIT from '../../date-picker/locale/it_IT'; 2 | 3 | export default itIT; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/ja_JP.tsx: -------------------------------------------------------------------------------- 1 | import jaJP from '../../date-picker/locale/ja_JP'; 2 | 3 | export default jaJP; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/ka_GE.tsx: -------------------------------------------------------------------------------- 1 | import kaGE from '../../date-picker/locale/ka_GE'; 2 | 3 | export default kaGE; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/kk_KZ.tsx: -------------------------------------------------------------------------------- 1 | import kkKZ from '../../date-picker/locale/kk_KZ'; 2 | 3 | export default kkKZ; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/km_KH.tsx: -------------------------------------------------------------------------------- 1 | import kmKH from '../../date-picker/locale/km_KH'; 2 | 3 | export default kmKH; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/kn_IN.tsx: -------------------------------------------------------------------------------- 1 | import knIN from '../../date-picker/locale/kn_IN'; 2 | 3 | export default knIN; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/ko_KR.tsx: -------------------------------------------------------------------------------- 1 | import koKR from '../../date-picker/locale/ko_KR'; 2 | 3 | export default koKR; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/lt_LT.tsx: -------------------------------------------------------------------------------- 1 | import ltLT from '../../date-picker/locale/lt_LT'; 2 | 3 | export default ltLT; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/lv_LV.tsx: -------------------------------------------------------------------------------- 1 | import lvLV from '../../date-picker/locale/lv_LV'; 2 | 3 | export default lvLV; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/mk_MK.tsx: -------------------------------------------------------------------------------- 1 | import mkMK from '../../date-picker/locale/mk_MK'; 2 | 3 | export default mkMK; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/ml_IN.tsx: -------------------------------------------------------------------------------- 1 | import mlIN from '../../date-picker/locale/ml_IN'; 2 | 3 | export default mlIN; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/mn_MN.tsx: -------------------------------------------------------------------------------- 1 | import mnMN from '../../date-picker/locale/mn_MN'; 2 | 3 | export default mnMN; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/ms_MY.tsx: -------------------------------------------------------------------------------- 1 | import msMY from '../../date-picker/locale/ms_MY'; 2 | 3 | export default msMY; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/nb_NO.tsx: -------------------------------------------------------------------------------- 1 | import nbNO from '../../date-picker/locale/nb_NO'; 2 | 3 | export default nbNO; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/nl_BE.tsx: -------------------------------------------------------------------------------- 1 | import nlBE from '../../date-picker/locale/nl_BE'; 2 | 3 | export default nlBE; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/nl_NL.tsx: -------------------------------------------------------------------------------- 1 | import nlNL from '../../date-picker/locale/nl_NL'; 2 | 3 | export default nlNL; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/pl_PL.tsx: -------------------------------------------------------------------------------- 1 | import plPL from '../../date-picker/locale/pl_PL'; 2 | 3 | export default plPL; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/pt_BR.tsx: -------------------------------------------------------------------------------- 1 | import ptBR from '../../date-picker/locale/pt_BR'; 2 | 3 | export default ptBR; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/pt_PT.tsx: -------------------------------------------------------------------------------- 1 | import ptPT from '../../date-picker/locale/pt_PT'; 2 | 3 | export default ptPT; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/ro_RO.tsx: -------------------------------------------------------------------------------- 1 | import roRO from '../../date-picker/locale/ro_RO'; 2 | 3 | export default roRO; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/ru_RU.tsx: -------------------------------------------------------------------------------- 1 | import ruRU from '../../date-picker/locale/ru_RU'; 2 | 3 | export default ruRU; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/si_LK.tsx: -------------------------------------------------------------------------------- 1 | import siLK from '../../date-picker/locale/si_LK'; 2 | 3 | export default siLK; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/sk_SK.tsx: -------------------------------------------------------------------------------- 1 | import skSK from '../../date-picker/locale/sk_SK'; 2 | 3 | export default skSK; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/sl_SI.tsx: -------------------------------------------------------------------------------- 1 | import slSI from '../../date-picker/locale/sl_SI'; 2 | 3 | export default slSI; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/sr_RS.tsx: -------------------------------------------------------------------------------- 1 | import srRS from '../../date-picker/locale/sr_RS'; 2 | 3 | export default srRS; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/sv_SE.tsx: -------------------------------------------------------------------------------- 1 | import svSE from '../../date-picker/locale/sv_SE'; 2 | 3 | export default svSE; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/ta_IN.tsx: -------------------------------------------------------------------------------- 1 | import taIN from '../../date-picker/locale/ta_IN'; 2 | 3 | export default taIN; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/th_TH.tsx: -------------------------------------------------------------------------------- 1 | import thTH from '../../date-picker/locale/th_TH'; 2 | 3 | export default thTH; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/tk_TK.tsx: -------------------------------------------------------------------------------- 1 | import tkTK from '../../date-picker/locale/tk_TK'; 2 | 3 | export default tkTK; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/tr_TR.tsx: -------------------------------------------------------------------------------- 1 | import trTR from '../../date-picker/locale/tr_TR'; 2 | 3 | export default trTR; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/uk_UA.tsx: -------------------------------------------------------------------------------- 1 | import ukUA from '../../date-picker/locale/uk_UA'; 2 | 3 | export default ukUA; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/ur_PK.tsx: -------------------------------------------------------------------------------- 1 | import urPK from '../../date-picker/locale/ur_PK'; 2 | 3 | export default urPK; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/vi_VN.tsx: -------------------------------------------------------------------------------- 1 | import viVN from '../../date-picker/locale/vi_VN'; 2 | 3 | export default viVN; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/zh_CN.tsx: -------------------------------------------------------------------------------- 1 | import zhCN from '../../date-picker/locale/zh_CN'; 2 | 3 | export default zhCN; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/zh_TW.tsx: -------------------------------------------------------------------------------- 1 | import zhTW from '../../date-picker/locale/zh_TW'; 2 | 3 | export default zhTW; 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.ts: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /typings/jest.d.ts: -------------------------------------------------------------------------------- 1 | declare namespace jest { 2 | interface Matchers { 3 | toHaveNoViolations(): R; 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /components/affix/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('affix'); 4 | -------------------------------------------------------------------------------- /components/anchor/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('anchor'); 4 | -------------------------------------------------------------------------------- /components/avatar/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('avatar'); 4 | -------------------------------------------------------------------------------- /components/badge/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('badge'); 4 | -------------------------------------------------------------------------------- /components/button/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('button'); 4 | -------------------------------------------------------------------------------- /components/calendar/locale/kmr_IQ.tsx: -------------------------------------------------------------------------------- 1 | import kmrIQ from '../../date-picker/locale/kmr_IQ'; 2 | 3 | export default kmrIQ; 4 | -------------------------------------------------------------------------------- /components/card/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('card'); 4 | -------------------------------------------------------------------------------- /components/checkbox/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | // deps-lint-skip: form 4 | -------------------------------------------------------------------------------- /components/drawer/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('drawer'); 4 | -------------------------------------------------------------------------------- /components/empty/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('empty'); 4 | -------------------------------------------------------------------------------- /components/grid/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('grid'); 4 | -------------------------------------------------------------------------------- /components/icon/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('icon'); 4 | -------------------------------------------------------------------------------- /components/image/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('image'); 4 | -------------------------------------------------------------------------------- /components/input/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('input'); 4 | -------------------------------------------------------------------------------- /components/list/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('list'); 4 | -------------------------------------------------------------------------------- /components/menu/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('menu'); 4 | -------------------------------------------------------------------------------- /components/modal/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('modal'); 4 | -------------------------------------------------------------------------------- /components/radio/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('radio'); 4 | -------------------------------------------------------------------------------- /components/radio/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | // deps-lint-skip: form 4 | -------------------------------------------------------------------------------- /components/rate/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('rate'); 4 | -------------------------------------------------------------------------------- /components/result/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('result'); 4 | -------------------------------------------------------------------------------- /components/select/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('select'); 4 | -------------------------------------------------------------------------------- /components/space/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('space'); 4 | -------------------------------------------------------------------------------- /components/spin/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('spin'); 4 | -------------------------------------------------------------------------------- /components/steps/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('steps'); 4 | -------------------------------------------------------------------------------- /components/style/dark.less: -------------------------------------------------------------------------------- 1 | @root-entry-name: default; 2 | 3 | @import './themes/dark.less'; 4 | @import './core/index'; 5 | -------------------------------------------------------------------------------- /components/switch/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('switch'); 4 | -------------------------------------------------------------------------------- /components/table/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('table'); 4 | -------------------------------------------------------------------------------- /components/tabs/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('tabs'); 4 | -------------------------------------------------------------------------------- /components/upload/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('upload'); 4 | -------------------------------------------------------------------------------- /components/back-top/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('back-top'); 4 | -------------------------------------------------------------------------------- /components/calendar/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('calendar'); 4 | -------------------------------------------------------------------------------- /components/carousel/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('carousel'); 4 | -------------------------------------------------------------------------------- /components/cascader/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('cascader'); 4 | -------------------------------------------------------------------------------- /components/checkbox/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('checkbox'); 4 | -------------------------------------------------------------------------------- /components/collapse/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('collapse'); 4 | -------------------------------------------------------------------------------- /components/comment/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('comment'); 4 | -------------------------------------------------------------------------------- /components/divider/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('divider'); 4 | -------------------------------------------------------------------------------- /components/drawer/style/index.tsx: -------------------------------------------------------------------------------- 1 | // deps-lint-skip: empty, form 2 | import '../../style/index.less'; 3 | import './index.less'; 4 | -------------------------------------------------------------------------------- /components/dropdown/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('dropdown'); 4 | -------------------------------------------------------------------------------- /components/mentions/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('mentions'); 4 | -------------------------------------------------------------------------------- /components/message/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('message'); 4 | -------------------------------------------------------------------------------- /components/popover/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('popover'); 4 | -------------------------------------------------------------------------------- /components/progress/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('progress'); 4 | -------------------------------------------------------------------------------- /components/skeleton/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('skeleton'); 4 | -------------------------------------------------------------------------------- /components/style/compact.less: -------------------------------------------------------------------------------- 1 | @root-entry-name: default; 2 | 3 | @import './themes/compact.less'; 4 | @import './core/index'; 5 | -------------------------------------------------------------------------------- /components/style/variable.less: -------------------------------------------------------------------------------- 1 | @root-entry-name: variable; 2 | 3 | @import './themes/variable.less'; 4 | @import './core/index'; 5 | -------------------------------------------------------------------------------- /components/timeline/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('timeline'); 4 | -------------------------------------------------------------------------------- /components/tooltip/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('tooltip'); 4 | -------------------------------------------------------------------------------- /components/transfer/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('transfer'); 4 | -------------------------------------------------------------------------------- /site/theme/template/Layout/Header/interface.tsx: -------------------------------------------------------------------------------- 1 | export interface SharedProps { 2 | isZhCN: boolean; 3 | isRTL: boolean; 4 | } 5 | -------------------------------------------------------------------------------- /components/input-number/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // deps-lint-skip: form 5 | -------------------------------------------------------------------------------- /components/page-header/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('page-header'); 4 | -------------------------------------------------------------------------------- /components/pagination/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('pagination'); 4 | -------------------------------------------------------------------------------- /components/popconfirm/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('popconfirm'); 4 | -------------------------------------------------------------------------------- /components/segmented/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('segmented'); 4 | -------------------------------------------------------------------------------- /components/statistic/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('statistic'); 4 | -------------------------------------------------------------------------------- /components/tag/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('tag'); 4 | -------------------------------------------------------------------------------- /components/time-picker/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('time-picker'); 4 | -------------------------------------------------------------------------------- /components/tree-select/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('tree-select'); 4 | -------------------------------------------------------------------------------- /components/typography/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('typography'); 4 | -------------------------------------------------------------------------------- /components/affix/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('affix'); 4 | -------------------------------------------------------------------------------- /components/anchor/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('anchor'); 4 | -------------------------------------------------------------------------------- /components/auto-complete/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('auto-complete'); 4 | -------------------------------------------------------------------------------- /components/avatar/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('avatar'); 4 | -------------------------------------------------------------------------------- /components/badge/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('badge'); 4 | -------------------------------------------------------------------------------- /components/button/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('button'); 4 | -------------------------------------------------------------------------------- /components/card/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('card'); 4 | -------------------------------------------------------------------------------- /components/descriptions/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('descriptions'); 4 | -------------------------------------------------------------------------------- /components/empty/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('empty'); 4 | -------------------------------------------------------------------------------- /components/grid/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('grid'); 4 | -------------------------------------------------------------------------------- /components/icon/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('icon'); 4 | -------------------------------------------------------------------------------- /components/image/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('image'); 4 | -------------------------------------------------------------------------------- /components/input-number/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('input-number'); 4 | -------------------------------------------------------------------------------- /components/input/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('input'); 4 | -------------------------------------------------------------------------------- /components/list/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('list'); 4 | -------------------------------------------------------------------------------- /components/menu/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('menu'); 4 | -------------------------------------------------------------------------------- /components/modal/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('modal'); 4 | -------------------------------------------------------------------------------- /components/notification/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('notification'); 4 | -------------------------------------------------------------------------------- /components/radio/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('radio'); 4 | -------------------------------------------------------------------------------- /components/rate/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('rate'); 4 | -------------------------------------------------------------------------------- /components/result/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('result'); 4 | -------------------------------------------------------------------------------- /components/slider/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('slider'); 4 | -------------------------------------------------------------------------------- /components/space/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('space'); 4 | -------------------------------------------------------------------------------- /components/spin/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('spin'); 4 | -------------------------------------------------------------------------------- /components/steps/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('steps'); 4 | -------------------------------------------------------------------------------- /components/switch/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('switch'); 4 | -------------------------------------------------------------------------------- /components/table/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('table'); 4 | -------------------------------------------------------------------------------- /components/tabs/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('tabs'); 4 | -------------------------------------------------------------------------------- /components/upload/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('upload'); 4 | -------------------------------------------------------------------------------- /components/back-top/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('back-top'); 4 | -------------------------------------------------------------------------------- /components/calendar/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('calendar'); 4 | -------------------------------------------------------------------------------- /components/carousel/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('carousel'); 4 | -------------------------------------------------------------------------------- /components/cascader/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('cascader'); 4 | -------------------------------------------------------------------------------- /components/checkbox/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('checkbox'); 4 | -------------------------------------------------------------------------------- /components/col/index.tsx: -------------------------------------------------------------------------------- 1 | import { Col, ColProps, ColSize } from '../grid'; 2 | 3 | export { ColProps, ColSize }; 4 | 5 | export default Col; 6 | -------------------------------------------------------------------------------- /components/collapse/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('collapse'); 4 | -------------------------------------------------------------------------------- /components/comment/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('comment'); 4 | -------------------------------------------------------------------------------- /components/divider/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('divider'); 4 | -------------------------------------------------------------------------------- /components/dropdown/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('dropdown'); 4 | -------------------------------------------------------------------------------- /components/mentions/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('mentions'); 4 | -------------------------------------------------------------------------------- /components/message/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('message'); 4 | -------------------------------------------------------------------------------- /components/popover/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('popover'); 4 | -------------------------------------------------------------------------------- /components/progress/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('progress'); 4 | -------------------------------------------------------------------------------- /components/skeleton/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('skeleton'); 4 | -------------------------------------------------------------------------------- /components/timeline/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('timeline'); 4 | -------------------------------------------------------------------------------- /components/tooltip/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('tooltip'); 4 | -------------------------------------------------------------------------------- /components/transfer/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('transfer'); 4 | -------------------------------------------------------------------------------- /components/checkbox/style/index.less: -------------------------------------------------------------------------------- 1 | @import '../../style/themes/index'; 2 | @import './mixin'; 3 | 4 | .antCheckboxFn(); 5 | 6 | @import './rtl'; 7 | -------------------------------------------------------------------------------- /components/page-header/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('page-header'); 4 | -------------------------------------------------------------------------------- /components/pagination/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('pagination'); 4 | -------------------------------------------------------------------------------- /components/popconfirm/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('popconfirm'); 4 | -------------------------------------------------------------------------------- /components/segmented/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('segmented'); 4 | -------------------------------------------------------------------------------- /components/statistic/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('statistic'); 4 | -------------------------------------------------------------------------------- /components/style/core/index.less: -------------------------------------------------------------------------------- 1 | @import '../mixins/index'; 2 | @import 'base'; 3 | @import 'global'; 4 | @import 'iconfont'; 5 | @import 'motion'; 6 | -------------------------------------------------------------------------------- /components/time-picker/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('time-picker'); 4 | -------------------------------------------------------------------------------- /components/tree-select/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('tree-select'); 4 | -------------------------------------------------------------------------------- /components/typography/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('typography'); 4 | -------------------------------------------------------------------------------- /components/_util/isNumeric.ts: -------------------------------------------------------------------------------- 1 | const isNumeric = (value: any): boolean => !isNaN(parseFloat(value)) && isFinite(value); 2 | 3 | export default isNumeric; 4 | -------------------------------------------------------------------------------- /components/alert/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('alert', { skip: ['loop-banner.md'] }); 4 | -------------------------------------------------------------------------------- /components/auto-complete/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('auto-complete'); 4 | -------------------------------------------------------------------------------- /components/col/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | 3 | // style dependencies 4 | // deps-lint-skip: grid 5 | import '../../grid/style'; 6 | -------------------------------------------------------------------------------- /components/descriptions/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('descriptions'); 4 | -------------------------------------------------------------------------------- /components/input-number/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('input-number'); 4 | -------------------------------------------------------------------------------- /components/notification/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('notification'); 4 | -------------------------------------------------------------------------------- /components/progress/index.tsx: -------------------------------------------------------------------------------- 1 | import Progress from './progress'; 2 | 3 | export { ProgressProps } from './progress'; 4 | 5 | export default Progress; 6 | -------------------------------------------------------------------------------- /components/row/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | 3 | // style dependencies 4 | // deps-lint-skip: grid 5 | import '../../grid/style'; 6 | -------------------------------------------------------------------------------- /components/skeleton/index.tsx: -------------------------------------------------------------------------------- 1 | import Skeleton from './Skeleton'; 2 | 3 | export { SkeletonProps } from './Skeleton'; 4 | 5 | export default Skeleton; 6 | -------------------------------------------------------------------------------- /components/time-picker/style/index.less: -------------------------------------------------------------------------------- 1 | @import '../../style/themes/index'; 2 | @import '../../style/mixins/index'; 3 | @import '../../input/style/mixin'; 4 | -------------------------------------------------------------------------------- /components/version/index.tsx: -------------------------------------------------------------------------------- 1 | /* eslint import/no-unresolved: 0 */ 2 | // @ts-ignore 3 | import version from './version'; 4 | 5 | export default version; 6 | -------------------------------------------------------------------------------- /site/theme/static/style.js: -------------------------------------------------------------------------------- 1 | import 'react-github-button/assets/style.css'; 2 | import 'docsearch.js/dist/cdn/docsearch.css'; 3 | import './index.less'; 4 | -------------------------------------------------------------------------------- /components/anchor/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../affix/style'; 6 | -------------------------------------------------------------------------------- /components/date-picker/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('date-picker', { skip: ['locale.md'] }); 4 | -------------------------------------------------------------------------------- /components/icon/style/index.less: -------------------------------------------------------------------------------- 1 | @import '../../style/themes/index'; 2 | @import '../../style/mixins/index'; 3 | 4 | @icon-prefix-cls: ~'@{ant-prefix}-icon'; 5 | -------------------------------------------------------------------------------- /components/popover/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | // deps-lint-skip: tooltip 6 | -------------------------------------------------------------------------------- /components/rate/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../tooltip/style'; 6 | -------------------------------------------------------------------------------- /components/slider/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('slider', { skip: ['show-tooltip.md'] }); 4 | -------------------------------------------------------------------------------- /components/slider/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../tooltip/style'; 6 | -------------------------------------------------------------------------------- /components/style/mixins/box.less: -------------------------------------------------------------------------------- 1 | .box(@position: absolute) { 2 | position: @position; 3 | top: 0; 4 | right: 0; 5 | bottom: 0; 6 | left: 0; 7 | } 8 | -------------------------------------------------------------------------------- /docs/spec/research-overview.en-US.md: -------------------------------------------------------------------------------- 1 | --- 2 | category: Design Patterns (Research) 3 | order: 0 4 | title: Overview 5 | skip: true 6 | --- 7 | 8 | 设计模式-探索:概览 9 | -------------------------------------------------------------------------------- /components/affix/style/index.less: -------------------------------------------------------------------------------- 1 | @import '../../style/themes/index'; 2 | 3 | .@{ant-prefix}-affix { 4 | position: fixed; 5 | z-index: @zindex-affix; 6 | } 7 | -------------------------------------------------------------------------------- /components/auto-complete/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../select/style'; 6 | -------------------------------------------------------------------------------- /components/breadcrumb/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('breadcrumb', { skip: ['react-router.md'] }); 4 | -------------------------------------------------------------------------------- /components/layout/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('layout', { skip: ['custom-trigger-debug.md'] }); 4 | -------------------------------------------------------------------------------- /components/statistic/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../skeleton/style'; 6 | -------------------------------------------------------------------------------- /docs/spec/research-form.en-US.md: -------------------------------------------------------------------------------- 1 | --- 2 | category: Design Patterns (Research) 3 | type: Template Document 4 | order: 1 5 | title: Form Page 6 | skip: true 7 | --- 8 | -------------------------------------------------------------------------------- /docs/spec/research-list.en-US.md: -------------------------------------------------------------------------------- 1 | --- 2 | category: Design Patterns (Research) 3 | type: Template Document 4 | order: 3 5 | title: List Page 6 | skip: true 7 | --- 8 | -------------------------------------------------------------------------------- /components/alert/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('alert', { skip: ['loop-banner.md'] }); 4 | -------------------------------------------------------------------------------- /components/select/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('select', { skip: ['big-data.md'] }); 4 | -------------------------------------------------------------------------------- /components/time-picker/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../date-picker/style'; 6 | -------------------------------------------------------------------------------- /components/tree/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('tree', { skip: ['big-data.md', 'virtual-scroll.md'] }); 4 | -------------------------------------------------------------------------------- /docs/spec/research-result.en-US.md: -------------------------------------------------------------------------------- 1 | --- 2 | category: Design Patterns (Research) 3 | type: Template Document 4 | order: 4 5 | title: Result Page 6 | skip: true 7 | --- 8 | -------------------------------------------------------------------------------- /docs/spec/research-workbench.en-US.md: -------------------------------------------------------------------------------- 1 | --- 2 | category: Design Patterns (Research) 3 | type: Template Document 4 | order: 2 5 | title: Workbench 6 | skip: true 7 | --- 8 | -------------------------------------------------------------------------------- /tests/__mocks__/copy-to-clipboard.js: -------------------------------------------------------------------------------- 1 | function copy(str, options = {}) { 2 | copy.lastStr = str; 3 | copy.lastOptions = options; 4 | } 5 | 6 | export default copy; 7 | -------------------------------------------------------------------------------- /components/date-picker/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('date-picker', { skip: ['locale.md'] }); 4 | -------------------------------------------------------------------------------- /docs/spec/research-exception.en-US.md: -------------------------------------------------------------------------------- 1 | --- 2 | category: Design Patterns (Research) 3 | type: Template Document 4 | order: 5 5 | title: Exception Page 6 | skip: true 7 | --- 8 | -------------------------------------------------------------------------------- /.github/tests_checker.yml: -------------------------------------------------------------------------------- 1 | comment: 'Could you please add tests to make sure this change works as expected?', 2 | fileExtensions: [.ts', '.tsx', '.json'] 3 | testDir: '__tests__' 4 | -------------------------------------------------------------------------------- /.gitpod.yml: -------------------------------------------------------------------------------- 1 | ports: 2 | - port: 8001 3 | onOpen: open-preview 4 | tasks: 5 | - before: > 6 | export DEV_HOST=$(gp url 8001) 7 | init: npm install 8 | command: npm start 9 | -------------------------------------------------------------------------------- /components/breadcrumb/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('breadcrumb', { skip: ['react-router.md'] }); 4 | -------------------------------------------------------------------------------- /components/form/__tests__/__snapshots__/list.test.tsx.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`Form.List should render empty without errors 1`] = `null`; 4 | -------------------------------------------------------------------------------- /components/form/__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('form', { skip: ['complex-form-control.md', 'dep-debug.md'] }); 4 | -------------------------------------------------------------------------------- /components/layout/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('layout', { skip: ['custom-trigger-debug.md'] }); 4 | -------------------------------------------------------------------------------- /components/pagination/index.tsx: -------------------------------------------------------------------------------- 1 | import Pagination from './Pagination'; 2 | 3 | export { PaginationConfig, PaginationProps } from './Pagination'; 4 | export default Pagination; 5 | -------------------------------------------------------------------------------- /components/style/default.less: -------------------------------------------------------------------------------- 1 | // This is same as `index.less` but given `root-entry-name` for `dist/antd.less` usage 2 | @root-entry-name: default; 3 | 4 | @import './index'; 5 | -------------------------------------------------------------------------------- /components/affix/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Affix image', () => { 4 | imageDemoTest('affix'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/alert/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Alert image', () => { 4 | imageDemoTest('alert'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/badge/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Badge image', () => { 4 | imageDemoTest('badge'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/card/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Card image', () => { 4 | imageDemoTest('card'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/empty/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Empty image', () => { 4 | imageDemoTest('empty'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/grid/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Grid image', () => { 4 | imageDemoTest('grid'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/input/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // deps-lint-skip: form 5 | // style dependencies 6 | import '../../button/style'; 7 | -------------------------------------------------------------------------------- /components/menu/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Menu image', () => { 4 | imageDemoTest('menu'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/modal/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Modal image', () => { 4 | imageDemoTest('modal'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/modal/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // deps-lint-skip: form 5 | // style dependencies 6 | import '../../button/style'; 7 | -------------------------------------------------------------------------------- /components/radio/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Radio image', () => { 4 | imageDemoTest('radio'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/rate/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Rate image', () => { 4 | imageDemoTest('rate'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/space/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Space image', () => { 4 | imageDemoTest('space'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/table/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Table image', () => { 4 | imageDemoTest('table'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/tabs/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Tabs image', () => { 4 | imageDemoTest('tabs'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/tree/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('tree', { skip: ['big-data.md', 'virtual-scroll.md'] }); 4 | -------------------------------------------------------------------------------- /components/anchor/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Anchor image', () => { 4 | imageDemoTest('anchor'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/avatar/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Avatar image', () => { 4 | imageDemoTest('avatar'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/avatar/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | // deps-lint-skip: grid 6 | import '../../popover/style'; 7 | -------------------------------------------------------------------------------- /components/card/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../skeleton/style'; 6 | import '../../tabs/style'; 7 | -------------------------------------------------------------------------------- /components/date-picker/style/index.tsx: -------------------------------------------------------------------------------- 1 | import './index.less'; 2 | 3 | // style dependencies 4 | import '../../button/style'; 5 | import '../../tag/style'; 6 | 7 | // deps-lint-skip: form 8 | -------------------------------------------------------------------------------- /components/drawer/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Drawer image', () => { 4 | imageDemoTest('drawer'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/form/changelog.md: -------------------------------------------------------------------------------- 1 | # Form Dom 变化 2 | 3 | - 状态 className 现在移动到顶层,不再是 input only 4 | - 去除 `ant-form-item-control-wrapper` 一层 div 5 | - `.has-success` 等状态样式添加 `ant-form-item` 前缀 6 | -------------------------------------------------------------------------------- /components/form/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../grid/style'; 6 | import '../../tooltip/style'; 7 | -------------------------------------------------------------------------------- /components/mentions/style/index.tsx: -------------------------------------------------------------------------------- 1 | import './index.less'; 2 | 3 | // style dependencies 4 | import '../../empty/style'; 5 | import '../../spin/style'; 6 | 7 | // deps-lint-skip: form 8 | -------------------------------------------------------------------------------- /components/menu/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | // deps-lint-skip: layout 6 | import '../../tooltip/style'; 7 | -------------------------------------------------------------------------------- /components/pagination/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | // deps-lint-skip: grid 6 | import '../../select/style'; 7 | -------------------------------------------------------------------------------- /components/result/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Result image', () => { 4 | imageDemoTest('result'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/select/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../empty/style'; 6 | 7 | // deps-lint-skip: form 8 | -------------------------------------------------------------------------------- /components/slider/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Slider image', () => { 4 | imageDemoTest('slider'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/steps/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | // deps-lint-skip: grid 6 | import '../../progress/style'; 7 | -------------------------------------------------------------------------------- /components/upload/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Upload image', () => { 4 | imageDemoTest('upload'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/back-top/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('BackTop image', () => { 4 | imageDemoTest('back-top'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/breadcrumb/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../dropdown/style'; 6 | import '../../menu/style'; 7 | -------------------------------------------------------------------------------- /components/calendar/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Calendar image', () => { 4 | imageDemoTest('calendar'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/carousel/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Carousel image', () => { 4 | imageDemoTest('carousel'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/cascader/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Cascader image', () => { 4 | imageDemoTest('cascader'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/checkbox/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Checkbox image', () => { 4 | imageDemoTest('checkbox'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/collapse/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Collapse image', () => { 4 | imageDemoTest('collapse'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/comment/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Comment image', () => { 4 | imageDemoTest('comment'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/divider/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Divider image', () => { 4 | imageDemoTest('divider'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/dropdown/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../button/style'; 6 | import '../../menu/style'; 7 | -------------------------------------------------------------------------------- /components/form/__tests__/demo-extend.test.ts: -------------------------------------------------------------------------------- 1 | import { extendTest } from '../../../tests/shared/demoTest'; 2 | 3 | extendTest('form', { skip: ['complex-form-control.md', 'dep-debug.md'] }); 4 | -------------------------------------------------------------------------------- /components/mentions/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Mentions image', () => { 4 | imageDemoTest('mentions'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/message/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Message image', () => { 4 | imageDemoTest('message'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/page-header/style/index.tsx: -------------------------------------------------------------------------------- 1 | import './index.less'; 2 | 3 | // style dependencies 4 | import '../../avatar/style'; 5 | import '../../breadcrumb/style'; 6 | import '../../space/style'; 7 | -------------------------------------------------------------------------------- /components/popover/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Popover image', () => { 4 | imageDemoTest('popover'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/progress/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Progress image', () => { 4 | imageDemoTest('progress'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/skeleton/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Skeleton image', () => { 4 | imageDemoTest('skeleton'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/tooltip/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Tooltip image', () => { 4 | imageDemoTest('tooltip'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/transfer/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Transfer image', () => { 4 | imageDemoTest('transfer'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/typography/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../input/style'; 6 | import '../../tooltip/style'; 7 | -------------------------------------------------------------------------------- /components/pagination/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Pagination image', () => { 4 | imageDemoTest('pagination'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/popconfirm/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Popconfirm image', () => { 4 | imageDemoTest('popconfirm'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/segmented/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Segmented image', () => { 4 | imageDemoTest('segmented'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/pt_BR.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Hora', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/time-picker/locale/pt_PT.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Hora', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/typography/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Typography image', () => { 4 | imageDemoTest('typography'); 5 | }); 6 | -------------------------------------------------------------------------------- /scripts/update-rc.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* eslint strict:0, camelcase:0 */ 4 | 5 | 'use strict'; 6 | 7 | require('@ant-design/tools/lib/updateComponents')(name => !!name.match(/^rc-/)); 8 | -------------------------------------------------------------------------------- /components/date-picker/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('DatePicker image', () => { 4 | imageDemoTest('date-picker'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/input-number/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('InputNumber image', () => { 4 | imageDemoTest('input-number'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/page-header/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('PageHeader image', () => { 4 | imageDemoTest('page-header'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/tag/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Tag image', () => { 4 | imageDemoTest('tag', { skip: ['status.md'] }); 5 | }); 6 | -------------------------------------------------------------------------------- /components/time-picker/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('TimePicker image', () => { 4 | imageDemoTest('time-picker'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/az_AZ.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Vaxtı seç', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/time-picker/locale/et_EE.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Vali aeg', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/time-picker/locale/he_IL.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'בחר שעה', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/time-picker/locale/sv_SE.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Välj tid', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/time-picker/locale/th_TH.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'เลือกเวลา', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/time-picker/locale/zh_TW.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: '請選擇時間', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/tree-select/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('TreeSelect image', () => { 4 | imageDemoTest('tree-select'); 5 | }); 6 | -------------------------------------------------------------------------------- /docs/spec/research-empty.en-US.md: -------------------------------------------------------------------------------- 1 | --- 2 | category: Design Patterns (Research) 3 | type: Global Rules 4 | order: 3 5 | title: Empty Status 6 | skip: true 7 | --- 8 | 9 | 设计模式 - 探索 - 全局规则 - 空状态 10 | -------------------------------------------------------------------------------- /components/auto-complete/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('AutoComplete image', () => { 4 | imageDemoTest('auto-complete'); 5 | }); 6 | -------------------------------------------------------------------------------- /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/descriptions/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Descriptions image', () => { 4 | imageDemoTest('descriptions'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/icon/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Icon image', () => { 4 | imageDemoTest('icon', { skip: ['basic.md'] }); 5 | }); 6 | -------------------------------------------------------------------------------- /components/icon/index.tsx: -------------------------------------------------------------------------------- 1 | import warning from '../_util/warning'; 2 | 3 | const Icon: React.FC = () => { 4 | warning(false, 'Icon', 'Empty Icon'); 5 | return null; 6 | }; 7 | 8 | export default Icon; 9 | -------------------------------------------------------------------------------- /components/list/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('List image', () => { 4 | imageDemoTest('list', { skip: ['loadmore.md'] }); 5 | }); 6 | -------------------------------------------------------------------------------- /components/notification/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Notification image', () => { 4 | imageDemoTest('notification'); 5 | }); 6 | -------------------------------------------------------------------------------- /components/steps/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Steps image', () => { 4 | imageDemoTest('steps', { skip: ['icon.md'] }); 5 | }); 6 | -------------------------------------------------------------------------------- /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/time-picker/locale/ar_EG.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'اختيار الوقت', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/time-picker/locale/bg_BG.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Избор на час', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/time-picker/locale/cs_CZ.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Vybrat čas', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/time-picker/locale/de_DE.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Zeit auswählen', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/time-picker/locale/el_GR.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Επιλέξτε ώρα', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/time-picker/locale/en_GB.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Select time', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/time-picker/locale/fi_FI.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Valitse aika', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/time-picker/locale/gl_ES.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Escolla hora', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/time-picker/locale/hu_HU.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Válasszon időt', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/time-picker/locale/id_ID.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Pilih waktu', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/time-picker/locale/is_IS.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Velja tíma', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/time-picker/locale/kn_IN.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'ಸಮಯ ಆಯ್ಕೆಮಾಡಿ', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/time-picker/locale/mk_MK.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Избери време', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/time-picker/locale/mn_MN.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Цаг сонгох', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/time-picker/locale/ro_RO.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Selectează ora', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/time-picker/locale/sk_SK.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Vybrať čas', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/time-picker/locale/sl_SI.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Izberite čas', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/time-picker/locale/uk_UA.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Оберіть час', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/time-picker/locale/vi_VN.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Chọn thời gian', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /docs/spec/research-navigation.en-US.md: -------------------------------------------------------------------------------- 1 | --- 2 | category: Design Patterns (Research) 3 | type: Global Rules 4 | order: 1 5 | title: Navigation 6 | skip: true 7 | --- 8 | 9 | 设计模式 - 探索 - 全局规则 - 导航 10 | -------------------------------------------------------------------------------- /site/theme/en-US.d.ts: -------------------------------------------------------------------------------- 1 | interface ENLocale { 2 | locale: 'en-US'; 3 | messages: { 4 | [key: PropertyKey]: string; 5 | }; 6 | } 7 | 8 | const enLocale: ENLocale; 9 | export default enLocale; 10 | -------------------------------------------------------------------------------- /site/theme/zh-CN.d.ts: -------------------------------------------------------------------------------- 1 | interface CNLocale { 2 | locale: 'zh-CN'; 3 | messages: { 4 | [key: PropertyKey]: string; 5 | }; 6 | } 7 | 8 | const cnLocale: CNLocale; 9 | export default cnLocale; 10 | -------------------------------------------------------------------------------- /components/button/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Button image', () => { 4 | imageDemoTest('button', { skip: ['loading.md'] }); 5 | }); 6 | -------------------------------------------------------------------------------- /components/select/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Select image', () => { 4 | imageDemoTest('select', { skip: ['basic.md'] }); 5 | }); 6 | -------------------------------------------------------------------------------- /components/switch/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Switch image', () => { 4 | imageDemoTest('switch', { skip: ['loading.md'] }); 5 | }); 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/ca_ES.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Seleccionar hora', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/time-picker/locale/es_ES.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Seleccionar hora', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/time-picker/locale/kmr_IQ.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Demê hilbijêre', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/time-picker/locale/lv_LV.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Izvēlieties laiku', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/time-picker/locale/ms_MY.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Sila pilih masa', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/time-picker/locale/pl_PL.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Wybierz godzinę', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/_util/hooks/useForceUpdate.ts: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | 3 | export default function useForceUpdate() { 4 | const [, forceUpdate] = React.useReducer(x => x + 1, 0); 5 | return forceUpdate; 6 | } 7 | -------------------------------------------------------------------------------- /components/layout/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Layout image', () => { 4 | imageDemoTest('layout', { skip: ['fixed-sider.md'] }); 5 | }); 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/fr_BE.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: "Sélectionner l'heure", 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/time-picker/locale/it_IT.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: "Selezionare l'orario", 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /components/timeline/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Timeline image', () => { 4 | imageDemoTest('timeline', { skip: ['pending.md'] }); 5 | }); 6 | -------------------------------------------------------------------------------- /components/breadcrumb/index.tsx: -------------------------------------------------------------------------------- 1 | import Breadcrumb from './Breadcrumb'; 2 | 3 | export { BreadcrumbProps } from './Breadcrumb'; 4 | export { BreadcrumbItemProps } from './BreadcrumbItem'; 5 | 6 | export default Breadcrumb; 7 | -------------------------------------------------------------------------------- /components/cascader/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../empty/style'; 6 | import '../../select/style'; 7 | 8 | // deps-lint-skip: form 9 | -------------------------------------------------------------------------------- /components/form/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Form image', () => { 4 | imageDemoTest('form', { skip: ['complex-form-control.md'] }); 5 | }); 6 | -------------------------------------------------------------------------------- /components/input/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Input image', () => { 4 | imageDemoTest('input', { skip: ['search-input-loading.md'] }); 5 | }); 6 | -------------------------------------------------------------------------------- /components/statistic/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Statistic image', () => { 4 | imageDemoTest('statistic', { skip: ['countdown.md'] }); 5 | }); 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/ta_IN.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'நேரத்தைத் தேர்ந்தெடுக்கவும்', 5 | }; 6 | 7 | export default locale; 8 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 | open_collective: ant-design 5 | issuehunt: ant-design/ant-design 6 | -------------------------------------------------------------------------------- /components/dropdown/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Dropdown image', () => { 4 | imageDemoTest('dropdown', { skip: ['dropdown-button.md'] }); 5 | }); 6 | -------------------------------------------------------------------------------- /components/transfer/interface.ts: -------------------------------------------------------------------------------- 1 | export type PaginationType = 2 | | boolean 3 | | { 4 | pageSize?: number; 5 | simple?: boolean; 6 | showSizeChanger?: boolean; 7 | showLessItems?: boolean; 8 | }; 9 | -------------------------------------------------------------------------------- /components/tree-select/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | // deps-lint-skip: tree, form 6 | import '../../empty/style'; 7 | import '../../select/style'; 8 | -------------------------------------------------------------------------------- /components/tree/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Tree image', () => { 4 | imageDemoTest('tree', { skip: ['virtual-scroll.md', 'big-data.md'] }); 5 | }); 6 | -------------------------------------------------------------------------------- /docs/spec/research-message-and-feedback.en-US.md: -------------------------------------------------------------------------------- 1 | --- 2 | category: Design Patterns (Research) 3 | type: Global Rules 4 | order: 2 5 | title: Message and Feedback 6 | skip: true 7 | --- 8 | 9 | 设计模式 - 探索 - 全局规则 - 消息与反馈 10 | -------------------------------------------------------------------------------- /components/anchor/context.ts: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | import type { AntAnchor } from './Anchor'; 3 | 4 | const AnchorContext = React.createContext(undefined); 5 | 6 | export default AnchorContext; 7 | -------------------------------------------------------------------------------- /components/breadcrumb/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('Breadcrumb image', () => { 4 | imageDemoTest('breadcrumb', { skip: ['react-router.md'] }); 5 | }); 6 | -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /components/config-provider/__tests__/image.test.ts: -------------------------------------------------------------------------------- 1 | import { imageDemoTest } from '../../../tests/shared/imageTest'; 2 | 3 | describe('ConfigProvider image', () => { 4 | imageDemoTest('config-provider', { skip: ['direction.md'] }); 5 | }); 6 | -------------------------------------------------------------------------------- /components/popconfirm/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | 3 | // style dependencies 4 | // deps-lint-skip: tooltip, popover 5 | import '../../button/style'; 6 | import '../../popover/style'; 7 | 8 | import './index.less'; 9 | -------------------------------------------------------------------------------- /components/statistic/index.tsx: -------------------------------------------------------------------------------- 1 | import Countdown from './Countdown'; 2 | import Statistic, { StatisticProps } from './Statistic'; 3 | 4 | Statistic.Countdown = Countdown; 5 | 6 | export { StatisticProps }; 7 | 8 | export default Statistic; 9 | -------------------------------------------------------------------------------- /components/time-picker/locale/ja_JP.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: '時間を選択', 5 | rangePlaceholder: ['開始時間', '終了時間'], 6 | }; 7 | 8 | export default locale; 9 | -------------------------------------------------------------------------------- /components/time-picker/locale/ko_KR.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: '시간 선택', 5 | rangePlaceholder: ['시작 시간', '종료 시간'], 6 | }; 7 | 8 | export default locale; 9 | -------------------------------------------------------------------------------- /components/time-picker/locale/zh_CN.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: '请选择时间', 5 | rangePlaceholder: ['开始时间', '结束时间'], 6 | }; 7 | 8 | export default locale; 9 | -------------------------------------------------------------------------------- /.remarkrc.js: -------------------------------------------------------------------------------- 1 | const config = { 2 | plugins: [ 3 | 'remark-preset-lint-recommended', 4 | ['remark-lint-list-item-indent', 'space'], 5 | ['remark-lint-no-literal-urls', false], 6 | ], 7 | }; 8 | 9 | module.exports = config; 10 | -------------------------------------------------------------------------------- /components/form/interface.ts: -------------------------------------------------------------------------------- 1 | export { InternalNamePath, NamePath, Store, StoreValue } from 'rc-field-form/lib/interface'; 2 | export { Options as ScrollOptions } from 'scroll-into-view-if-needed'; 3 | export type FormLabelAlign = 'left' | 'right'; 4 | -------------------------------------------------------------------------------- /components/drawer/style/index.less: -------------------------------------------------------------------------------- 1 | @import '../../style/themes/index'; 2 | @import '../../style/mixins/index'; 3 | @import './drawer'; 4 | @import './motion'; 5 | @import './rtl'; 6 | 7 | .popover-customize-bg(@drawer-prefix-cls, @popover-background); 8 | -------------------------------------------------------------------------------- /components/empty/style/rtl.less: -------------------------------------------------------------------------------- 1 | @import '../../style/themes/index'; 2 | @import '../../style/mixins/index'; 3 | 4 | @empty-prefix-cls: ~'@{ant-prefix}-empty'; 5 | 6 | .@{empty-prefix-cls} { 7 | &-rtl { 8 | direction: rtl; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /components/list/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../empty/style'; 6 | import '../../grid/style'; 7 | import '../../pagination/style'; 8 | import '../../spin/style'; 9 | -------------------------------------------------------------------------------- /components/modal/style/index.less: -------------------------------------------------------------------------------- 1 | @import '../../style/themes/index'; 2 | @import '../../style/mixins/index'; 3 | @import './modal'; 4 | @import './confirm'; 5 | @import './rtl'; 6 | 7 | .popover-customize-bg(@dialog-prefix-cls, @popover-background); 8 | -------------------------------------------------------------------------------- /components/space/style/rtl.less: -------------------------------------------------------------------------------- 1 | @import '../../style/themes/index'; 2 | @import '../../style/mixins/index'; 3 | 4 | @space-prefix-cls: ~'@{ant-prefix}-space'; 5 | 6 | .@{space-prefix-cls} { 7 | &-rtl { 8 | direction: rtl; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /components/time-picker/locale/nb_NO.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Velg tid', 5 | rangePlaceholder: ['Starttid', 'Sluttid'], 6 | }; 7 | 8 | export default locale; 9 | -------------------------------------------------------------------------------- /components/upload/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | // deps-lint-skip: form 6 | import '../../button/style'; 7 | import '../../progress/style'; 8 | import '../../tooltip/style'; 9 | -------------------------------------------------------------------------------- /components/date-picker/PickerTag.tsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | import type { TagProps } from '../tag'; 3 | import Tag from '../tag'; 4 | 5 | export default function PickerTag(props: TagProps) { 6 | return ; 7 | } 8 | -------------------------------------------------------------------------------- /components/layout/style/rtl.less: -------------------------------------------------------------------------------- 1 | @import '../../style/themes/index'; 2 | @import '../../style/mixins/index'; 3 | 4 | @layout-prefix-cls: ~'@{ant-prefix}-layout'; 5 | 6 | .@{layout-prefix-cls} { 7 | &-rtl { 8 | direction: rtl; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /components/popconfirm/style/index.less: -------------------------------------------------------------------------------- 1 | @import '../../style/themes/index'; 2 | @import '../../style/mixins/index'; 3 | 4 | @popconfirm-prefix-cls: ~'@{ant-prefix}-popconfirm'; 5 | 6 | .@{popconfirm-prefix-cls} { 7 | z-index: @zindex-popoconfirm; 8 | } 9 | -------------------------------------------------------------------------------- /components/time-picker/locale/bn_BD.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'সময় নির্বাচন', 5 | rangePlaceholder: ['সময় শুরু', 'শেষ সময়'], 6 | }; 7 | 8 | export default locale; 9 | -------------------------------------------------------------------------------- /components/time-picker/locale/en_US.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Select time', 5 | rangePlaceholder: ['Start time', 'End time'], 6 | }; 7 | 8 | export default locale; 9 | -------------------------------------------------------------------------------- /components/time-picker/locale/fa_IR.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'انتخاب زمان', 5 | rangePlaceholder: ['زمان شروع', 'زمان پایان'], 6 | }; 7 | 8 | export default locale; 9 | -------------------------------------------------------------------------------- /components/time-picker/locale/km_KH.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'រើសម៉ោង', 5 | rangePlaceholder: ['ម៉ោងចប់ផ្ដើម', 'ម៉ោងបញ្ចប់'], 6 | }; 7 | 8 | export default locale; 9 | -------------------------------------------------------------------------------- /site/theme/static/rtl.less: -------------------------------------------------------------------------------- 1 | [data-direction='rtl'] { 2 | #_hj_feedback_container { 3 | > div { 4 | right: auto; 5 | left: 32px; 6 | } 7 | } 8 | 9 | .fixed-widgets { 10 | right: auto; 11 | left: 32px; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /site/themeConfig.d.ts: -------------------------------------------------------------------------------- 1 | interface ThemeConfig { 2 | categoryOrder: { 3 | [key: string]: number; 4 | }; 5 | typeOrder: { 6 | [key: string]: number; 7 | }; 8 | } 9 | 10 | const themeConfig: ThemeConfig; 11 | export default themeConfig; 12 | -------------------------------------------------------------------------------- /components/mentions/style/rtl.less: -------------------------------------------------------------------------------- 1 | @import '../../style/themes/index'; 2 | @import '../../style/mixins/index'; 3 | 4 | @mention-prefix-cls: ~'@{ant-prefix}-mentions'; 5 | 6 | .@{mention-prefix-cls} { 7 | &-rtl { 8 | direction: rtl; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /components/time-picker/locale/da_DK.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Vælg tid', 5 | rangePlaceholder: ['Starttidspunkt', 'Sluttidspunkt'], 6 | }; 7 | 8 | export default locale; 9 | -------------------------------------------------------------------------------- /components/time-picker/locale/ga_IE.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Roghnaigh am', 5 | rangePlaceholder: ['Am tosaigh', 'Am deiridh'], 6 | }; 7 | 8 | export default locale; 9 | -------------------------------------------------------------------------------- /components/time-picker/locale/hi_IN.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'समय का चयन करें', 5 | rangePlaceholder: ['आरंभिक समय', 'अंत समय'], 6 | }; 7 | 8 | export default locale; 9 | -------------------------------------------------------------------------------- /components/time-picker/locale/nl_BE.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Selecteer tijd', 5 | rangePlaceholder: ['Start tijd', 'Eind tijd'], 6 | }; 7 | 8 | export default locale; 9 | -------------------------------------------------------------------------------- /components/time-picker/locale/nl_NL.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Selecteer tijd', 5 | rangePlaceholder: ['Start tijd', 'Eind tijd'], 6 | }; 7 | 8 | export default locale; 9 | -------------------------------------------------------------------------------- /components/time-picker/locale/si_LK.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'වේලාව තෝරන්න', 5 | rangePlaceholder: ['ආරම්භක වේලාව', 'නිමවන වේලාව'], 6 | }; 7 | 8 | export default locale; 9 | -------------------------------------------------------------------------------- /components/time-picker/locale/ur_PK.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'وقت منتخب کریں', 5 | rangePlaceholder: ['وقت منتخب کریں', 'آخر وقت'], 6 | }; 7 | 8 | export default locale; 9 | -------------------------------------------------------------------------------- /components/time-picker/locale/by_BY.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Выберыце час', 5 | rangePlaceholder: ['Час пачатку', 'Час заканчэння'], 6 | }; 7 | 8 | export default locale; 9 | -------------------------------------------------------------------------------- /components/time-picker/locale/ka_GE.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'აირჩიეთ დრო', 5 | rangePlaceholder: ['საწყისი თარიღი', 'საბოლოო თარიღი'], 6 | }; 7 | 8 | export default locale; 9 | -------------------------------------------------------------------------------- /components/time-picker/locale/ml_IN.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'സമയം തിരഞ്ഞെടുക്കുക', 5 | rangePlaceholder: ['ആരംഭ സമയം', 'അവസാന സമയം'], 6 | }; 7 | 8 | export default locale; 9 | -------------------------------------------------------------------------------- /components/time-picker/locale/tr_TR.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Zaman seç', 5 | rangePlaceholder: ['Başlangıç zamanı', 'Bitiş zamanı'], 6 | }; 7 | 8 | export default locale; 9 | -------------------------------------------------------------------------------- /site/theme/static/contributors.less: -------------------------------------------------------------------------------- 1 | .contributors-list { 2 | display: flex; 3 | flex-wrap: wrap; 4 | margin-top: 120px !important; 5 | 6 | a, 7 | .ant-avatar + .ant-avatar { 8 | margin-right: 8px; 9 | margin-bottom: 8px; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /components/back-top/__tests__/__snapshots__/index.test.tsx.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`BackTop rtl render component should be rendered correctly in RTL direction 1`] = ` 4 |
7 | `; 8 | -------------------------------------------------------------------------------- /components/calendar/style/index.tsx: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | // deps-lint-skip: date-picker, form 6 | import '../../date-picker/style'; 7 | import '../../radio/style'; 8 | import '../../select/style'; 9 | -------------------------------------------------------------------------------- /components/steps/__tests__/index.test.tsx: -------------------------------------------------------------------------------- 1 | import Steps from '..'; 2 | import mountTest from '../../../tests/shared/mountTest'; 3 | import rtlTest from '../../../tests/shared/rtlTest'; 4 | 5 | describe('Steps', () => { 6 | mountTest(Steps); 7 | rtlTest(Steps); 8 | }); 9 | -------------------------------------------------------------------------------- /components/time-picker/locale/kk_KZ.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Уақытты таңдаңыз', 5 | rangePlaceholder: ['Бастау уақыты', 'Аяқталу уақыты'], 6 | }; 7 | 8 | export default locale; 9 | -------------------------------------------------------------------------------- /components/time-picker/locale/sr_RS.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Izaberi vreme', 5 | rangePlaceholder: ['Vreme početka', 'Vreme završetka'], 6 | }; 7 | 8 | export default locale; 9 | -------------------------------------------------------------------------------- /components/time-picker/locale/tk_TK.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Wagty saýlaň', 5 | rangePlaceholder: ['Başlanýan wagty', 'Gutarýan wagty'], 6 | }; 7 | 8 | export default locale; 9 | -------------------------------------------------------------------------------- /components/badge/utils.tsx: -------------------------------------------------------------------------------- 1 | import { PresetColorTypes } from '../_util/colors'; 2 | 3 | // eslint-disable-next-line import/prefer-default-export 4 | export function isPresetColor(color?: string): boolean { 5 | return (PresetColorTypes as any[]).indexOf(color) !== -1; 6 | } 7 | -------------------------------------------------------------------------------- /components/overview/index.zh-CN.md: -------------------------------------------------------------------------------- 1 | --- 2 | category: Components 3 | title: 组件总览 4 | type: 组件总览 5 | --- 6 | 7 | `antd` 为 Web 应用提供了丰富的基础 UI 组件,我们还将持续探索企业级应用的最佳 UI 实践。除了官方组件,我们也提供了[社区精选组件](/docs/react/recommendation)作为必要的补充,另外如果您是内网用户,欢迎尝试使用 [TechUI](https://techui.alipay.com)。 8 | -------------------------------------------------------------------------------- /components/time-picker/locale/fr_CA.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: "Sélectionner l'heure", 5 | rangePlaceholder: ['Heure de début', 'Heure de fin'], 6 | }; 7 | 8 | export default locale; 9 | -------------------------------------------------------------------------------- /components/time-picker/locale/fr_FR.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: "Sélectionner l'heure", 5 | rangePlaceholder: ['Heure de début', 'Heure de fin'], 6 | }; 7 | 8 | export default locale; 9 | -------------------------------------------------------------------------------- /components/time-picker/locale/hr_HR.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Odaberite vrijeme', 5 | rangePlaceholder: ['Vrijeme početka', 'Vrijeme završetka'], 6 | }; 7 | 8 | export default locale; 9 | -------------------------------------------------------------------------------- /components/time-picker/locale/lt_LT.tsx: -------------------------------------------------------------------------------- 1 | import type { TimePickerLocale } from '../index'; 2 | 3 | const locale: TimePickerLocale = { 4 | placeholder: 'Pasirinkite laiką', 5 | rangePlaceholder: ['Pradžios laikas', 'Pabaigos laikas'], 6 | }; 7 | 8 | export default locale; 9 | -------------------------------------------------------------------------------- /components/affix/__tests__/__snapshots__/Affix.test.tsx.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`Affix Render rtl render component should be rendered correctly in RTL direction 1`] = ` 4 |
5 |
8 |
9 | `; 10 | -------------------------------------------------------------------------------- /components/steps/__tests__/__snapshots__/index.test.tsx.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`Steps rtl render component should be rendered correctly in RTL direction 1`] = ` 4 |
7 | `; 8 | -------------------------------------------------------------------------------- /site/.eslintrc.js: -------------------------------------------------------------------------------- 1 | const config = require('../.eslintrc'); 2 | 3 | module.exports = { 4 | ...config, 5 | rules: { 6 | ...config.rules, 7 | 'import/no-extraneous-dependencies': 0, 8 | 'react/no-danger': 0, 9 | 'no-param-reassign': 0, 10 | }, 11 | }; 12 | -------------------------------------------------------------------------------- /components/button/index.tsx: -------------------------------------------------------------------------------- 1 | import Button from './button'; 2 | 3 | export { SizeType as ButtonSize } from '../config-provider/SizeContext'; 4 | export { ButtonProps, ButtonShape, ButtonType } from './button'; 5 | export { ButtonGroupProps } from './button-group'; 6 | 7 | export default Button; 8 | -------------------------------------------------------------------------------- /components/date-picker/PickerButton.tsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | import type { ButtonProps } from '../button'; 3 | import Button from '../button'; 4 | 5 | export default function PickerButton(props: ButtonProps) { 6 | return