From 9aec72c395d0e195e52fd1818710a303cf3fa903 Mon Sep 17 00:00:00 2001 From: lijianan <574980606@qq.com> Date: Thu, 29 Dec 2022 18:33:13 +0800 Subject: [PATCH] chore: remove useless tsx support (#39890) * chore: remove useless tsx support * add * add * style * fix lint * fix lint * fix lint * update locale entry * update locale entry * update locale entry * delete useless style --- .dumi/{loading.js => loading.ts} | 0 components/_util/{getScroll.tsx => getScroll.ts} | 0 components/_util/{motion.tsx => motion.ts} | 0 components/_util/{placements.tsx => placements.ts} | 0 .../_util/{statusUtils.tsx => statusUtils.ts} | 0 .../_util/{styleChecker.tsx => styleChecker.ts} | 0 ...imationFrame.tsx => throttleByAnimationFrame.ts} | 0 components/_util/transKeys.ts | 1 + components/affix/style/{index.tsx => index.ts} | 0 components/alert/style/{index.tsx => index.ts} | 0 components/anchor/{index.tsx => index.ts} | 0 components/anchor/style/{index.tsx => index.ts} | 0 components/app/style/{index.tsx => index.ts} | 0 components/avatar/{index.tsx => index.ts} | 0 components/avatar/style/{index.tsx => index.ts} | 0 components/back-top/style/{index.tsx => index.ts} | 0 components/badge/style/{index.tsx => index.ts} | 0 components/badge/{utils.tsx => utils.ts} | 0 components/breadcrumb/{index.tsx => index.ts} | 0 components/breadcrumb/style/{index.tsx => index.ts} | 0 components/button/{index.tsx => index.ts} | 0 components/button/style/{group.tsx => group.ts} | 0 components/button/style/{index.tsx => index.ts} | 0 components/calendar/{index.tsx => index.ts} | 0 components/calendar/locale/{ar_EG.tsx => ar_EG.ts} | 0 components/calendar/locale/{az_AZ.tsx => az_AZ.ts} | 0 components/calendar/locale/{bg_BG.tsx => bg_BG.ts} | 0 components/calendar/locale/{bn_BD.tsx => bn_BD.ts} | 0 components/calendar/locale/{by_BY.tsx => by_BY.ts} | 0 components/calendar/locale/{ca_ES.tsx => ca_ES.ts} | 0 components/calendar/locale/{cs_CZ.tsx => cs_CZ.ts} | 0 components/calendar/locale/{da_DK.tsx => da_DK.ts} | 0 components/calendar/locale/{de_DE.tsx => de_DE.ts} | 0 components/calendar/locale/{el_GR.tsx => el_GR.ts} | 0 components/calendar/locale/{en_GB.tsx => en_GB.ts} | 0 components/calendar/locale/{en_US.tsx => en_US.ts} | 0 components/calendar/locale/{es_ES.tsx => es_ES.ts} | 0 components/calendar/locale/{et_EE.tsx => et_EE.ts} | 0 components/calendar/locale/{eu_ES.tsx => eu_ES.ts} | 0 components/calendar/locale/{fa_IR.tsx => fa_IR.ts} | 0 components/calendar/locale/{fi_FI.tsx => fi_FI.ts} | 0 components/calendar/locale/{fr_BE.tsx => fr_BE.ts} | 0 components/calendar/locale/{fr_CA.tsx => fr_CA.ts} | 0 components/calendar/locale/{fr_FR.tsx => fr_FR.ts} | 0 components/calendar/locale/{ga_IE.tsx => ga_IE.ts} | 0 components/calendar/locale/{gl_ES.tsx => gl_ES.ts} | 0 components/calendar/locale/{he_IL.tsx => he_IL.ts} | 0 components/calendar/locale/{hi_IN.tsx => hi_IN.ts} | 0 components/calendar/locale/{hr_HR.tsx => hr_HR.ts} | 0 components/calendar/locale/{hu_HU.tsx => hu_HU.ts} | 0 components/calendar/locale/{id_ID.tsx => id_ID.ts} | 0 components/calendar/locale/{is_IS.tsx => is_IS.ts} | 0 components/calendar/locale/{it_IT.tsx => it_IT.ts} | 0 components/calendar/locale/{ja_JP.tsx => ja_JP.ts} | 0 components/calendar/locale/{ka_GE.tsx => ka_GE.ts} | 0 components/calendar/locale/{kk_KZ.tsx => kk_KZ.ts} | 0 components/calendar/locale/{km_KH.tsx => km_KH.ts} | 0 .../calendar/locale/{kmr_IQ.tsx => kmr_IQ.ts} | 0 components/calendar/locale/{kn_IN.tsx => kn_IN.ts} | 0 components/calendar/locale/{ko_KR.tsx => ko_KR.ts} | 0 components/calendar/locale/{lt_LT.tsx => lt_LT.ts} | 0 components/calendar/locale/{lv_LV.tsx => lv_LV.ts} | 0 components/calendar/locale/{mk_MK.tsx => mk_MK.ts} | 0 components/calendar/locale/{ml_IN.tsx => ml_IN.ts} | 0 components/calendar/locale/{mn_MN.tsx => mn_MN.ts} | 0 components/calendar/locale/{ms_MY.tsx => ms_MY.ts} | 0 components/calendar/locale/{nb_NO.tsx => nb_NO.ts} | 0 components/calendar/locale/{nl_BE.tsx => nl_BE.ts} | 0 components/calendar/locale/{nl_NL.tsx => nl_NL.ts} | 0 components/calendar/locale/{pl_PL.tsx => pl_PL.ts} | 0 components/calendar/locale/{pt_BR.tsx => pt_BR.ts} | 0 components/calendar/locale/{pt_PT.tsx => pt_PT.ts} | 0 components/calendar/locale/{ro_RO.tsx => ro_RO.ts} | 0 components/calendar/locale/{ru_RU.tsx => ru_RU.ts} | 0 components/calendar/locale/{si_LK.tsx => si_LK.ts} | 0 components/calendar/locale/{sk_SK.tsx => sk_SK.ts} | 0 components/calendar/locale/{sl_SI.tsx => sl_SI.ts} | 0 components/calendar/locale/{sr_RS.tsx => sr_RS.ts} | 0 components/calendar/locale/{sv_SE.tsx => sv_SE.ts} | 0 components/calendar/locale/{ta_IN.tsx => ta_IN.ts} | 0 components/calendar/locale/{th_TH.tsx => th_TH.ts} | 0 components/calendar/locale/{tk_TK.tsx => tk_TK.ts} | 0 components/calendar/locale/{tr_TR.tsx => tr_TR.ts} | 0 components/calendar/locale/{uk_UA.tsx => uk_UA.ts} | 0 components/calendar/locale/{ur_PK.tsx => ur_PK.ts} | 0 components/calendar/locale/{vi_VN.tsx => vi_VN.ts} | 0 components/calendar/locale/{zh_CN.tsx => zh_CN.ts} | 0 components/calendar/locale/{zh_TW.tsx => zh_TW.ts} | 0 components/calendar/style/{index.tsx => index.ts} | 0 components/card/{index.tsx => index.ts} | 0 components/card/style/{index.tsx => index.ts} | 0 components/carousel/index.tsx | 6 +----- components/carousel/style/{index.tsx => index.ts} | 0 components/cascader/style/{index.tsx => index.ts} | 0 components/checkbox/{index.tsx => index.ts} | 0 components/checkbox/style/{index.tsx => index.ts} | 0 components/col/{index.tsx => index.ts} | 0 components/col/style/{index.tsx => index.ts} | 0 components/collapse/{index.tsx => index.ts} | 0 components/collapse/style/{index.tsx => index.ts} | 0 .../config-provider/style/{index.tsx => index.ts} | 0 components/date-picker/{index.tsx => index.ts} | 0 .../date-picker/locale/{ar_EG.tsx => ar_EG.ts} | 0 .../date-picker/locale/{az_AZ.tsx => az_AZ.ts} | 0 .../date-picker/locale/{bg_BG.tsx => bg_BG.ts} | 0 .../date-picker/locale/{bn_BD.tsx => bn_BD.ts} | 0 .../date-picker/locale/{by_BY.tsx => by_BY.ts} | 0 .../date-picker/locale/{ca_ES.tsx => ca_ES.ts} | 0 .../date-picker/locale/{cs_CZ.tsx => cs_CZ.ts} | 0 .../date-picker/locale/{da_DK.tsx => da_DK.ts} | 0 .../date-picker/locale/{de_DE.tsx => de_DE.ts} | 0 .../date-picker/locale/{el_GR.tsx => el_GR.ts} | 0 .../date-picker/locale/{en_GB.tsx => en_GB.ts} | 0 .../date-picker/locale/{en_US.tsx => en_US.ts} | 0 .../date-picker/locale/{es_ES.tsx => es_ES.ts} | 0 .../date-picker/locale/{et_EE.tsx => et_EE.ts} | 0 .../date-picker/locale/{eu_ES.tsx => eu_ES.ts} | 0 .../date-picker/locale/{fa_IR.tsx => fa_IR.ts} | 0 .../date-picker/locale/{fi_FI.tsx => fi_FI.ts} | 0 .../date-picker/locale/{fr_BE.tsx => fr_BE.ts} | 0 .../date-picker/locale/{fr_CA.tsx => fr_CA.ts} | 0 .../date-picker/locale/{fr_FR.tsx => fr_FR.ts} | 0 .../date-picker/locale/{ga_IE.tsx => ga_IE.ts} | 0 .../date-picker/locale/{gl_ES.tsx => gl_ES.ts} | 0 .../date-picker/locale/{he_IL.tsx => he_IL.ts} | 0 .../date-picker/locale/{hi_IN.tsx => hi_IN.ts} | 0 .../date-picker/locale/{hr_HR.tsx => hr_HR.ts} | 0 .../date-picker/locale/{hu_HU.tsx => hu_HU.ts} | 0 .../date-picker/locale/{id_ID.tsx => id_ID.ts} | 0 .../date-picker/locale/{is_IS.tsx => is_IS.ts} | 0 .../date-picker/locale/{it_IT.tsx => it_IT.ts} | 0 .../date-picker/locale/{ja_JP.tsx => ja_JP.ts} | 0 .../date-picker/locale/{ka_GE.tsx => ka_GE.ts} | 0 .../date-picker/locale/{kk_KZ.tsx => kk_KZ.ts} | 0 .../date-picker/locale/{km_KH.tsx => km_KH.ts} | 0 .../date-picker/locale/{kmr_IQ.tsx => kmr_IQ.ts} | 0 .../date-picker/locale/{kn_IN.tsx => kn_IN.ts} | 0 .../date-picker/locale/{ko_KR.tsx => ko_KR.ts} | 0 .../date-picker/locale/{lt_LT.tsx => lt_LT.ts} | 0 .../date-picker/locale/{lv_LV.tsx => lv_LV.ts} | 0 .../date-picker/locale/{mk_MK.tsx => mk_MK.ts} | 0 .../date-picker/locale/{ml_IN.tsx => ml_IN.ts} | 0 .../date-picker/locale/{mn_MN.tsx => mn_MN.ts} | 0 .../date-picker/locale/{ms_MY.tsx => ms_MY.ts} | 0 .../date-picker/locale/{nb_NO.tsx => nb_NO.ts} | 0 .../date-picker/locale/{nl_BE.tsx => nl_BE.ts} | 0 .../date-picker/locale/{nl_NL.tsx => nl_NL.ts} | 0 .../date-picker/locale/{pl_PL.tsx => pl_PL.ts} | 0 .../date-picker/locale/{pt_BR.tsx => pt_BR.ts} | 0 .../date-picker/locale/{pt_PT.tsx => pt_PT.ts} | 0 .../date-picker/locale/{ro_RO.tsx => ro_RO.ts} | 0 .../date-picker/locale/{ru_RU.tsx => ru_RU.ts} | 0 .../date-picker/locale/{si_LK.tsx => si_LK.ts} | 0 .../date-picker/locale/{sk_SK.tsx => sk_SK.ts} | 0 .../date-picker/locale/{sl_SI.tsx => sl_SI.ts} | 0 .../date-picker/locale/{sr_RS.tsx => sr_RS.ts} | 0 .../date-picker/locale/{sv_SE.tsx => sv_SE.ts} | 0 .../date-picker/locale/{ta_IN.tsx => ta_IN.ts} | 0 .../date-picker/locale/{th_TH.tsx => th_TH.ts} | 0 .../date-picker/locale/{tk_TK.tsx => tk_TK.ts} | 0 .../date-picker/locale/{tr_TR.tsx => tr_TR.ts} | 0 .../date-picker/locale/{uk_UA.tsx => uk_UA.ts} | 0 .../date-picker/locale/{ur_PK.tsx => ur_PK.ts} | 0 .../date-picker/locale/{vi_VN.tsx => vi_VN.ts} | 0 .../date-picker/locale/{zh_CN.tsx => zh_CN.ts} | 0 .../date-picker/locale/{zh_TW.tsx => zh_TW.ts} | 0 .../date-picker/style/{index.tsx => index.ts} | 0 components/descriptions/{Item.tsx => Item.ts} | 0 .../descriptions/style/{index.tsx => index.ts} | 0 components/divider/style/{index.tsx => index.ts} | 0 components/drawer/style/{index.tsx => index.ts} | 0 components/drawer/style/{motion.tsx => motion.ts} | 0 components/dropdown/{index.tsx => index.ts} | 0 components/dropdown/style/{button.tsx => button.ts} | 0 components/dropdown/style/{index.tsx => index.ts} | 13 ------------- components/dropdown/style/{status.tsx => status.ts} | 0 components/empty/style/{index.tsx => index.ts} | 0 components/float-button/{index.tsx => index.ts} | 0 .../float-button/style/{index.tsx => index.ts} | 0 components/form/{index.tsx => index.ts} | 0 components/form/style/{explain.tsx => explain.ts} | 0 components/form/style/{index.tsx => index.ts} | 0 components/grid/{RowContext.tsx => RowContext.ts} | 3 +-- components/grid/{index.tsx => index.ts} | 0 components/grid/style/{index.tsx => index.ts} | 0 components/icon/{index.tsx => index.ts} | 0 components/image/style/{index.tsx => index.ts} | 0 .../input-number/style/{index.tsx => index.ts} | 0 components/input/{index.tsx => index.ts} | 0 components/input/style/{index.tsx => index.ts} | 0 components/layout/{index.tsx => index.ts} | 0 components/layout/style/{index.tsx => index.ts} | 0 components/list/style/{index.tsx => index.ts} | 0 .../{LocaleReceiver.tsx => LocaleReceiver.ts} | 0 .../{LocaleReceiver.tsx => LocaleReceiver.ts} | 2 +- components/locale/{ar_EG.tsx => ar_EG.ts} | 2 +- components/locale/{az_AZ.tsx => az_AZ.ts} | 2 +- components/locale/{bg_BG.tsx => bg_BG.ts} | 2 +- components/locale/{bn_BD.tsx => bn_BD.ts} | 2 +- components/locale/{by_BY.tsx => by_BY.ts} | 2 +- components/locale/{ca_ES.tsx => ca_ES.ts} | 2 +- components/locale/{cs_CZ.tsx => cs_CZ.ts} | 2 +- components/locale/{da_DK.tsx => da_DK.ts} | 2 +- components/locale/{de_DE.tsx => de_DE.ts} | 2 +- components/locale/{el_GR.tsx => el_GR.ts} | 2 +- components/locale/{en_GB.tsx => en_GB.ts} | 2 +- components/locale/{en_US.tsx => en_US.ts} | 2 +- components/locale/{es_ES.tsx => es_ES.ts} | 2 +- components/locale/{et_EE.tsx => et_EE.ts} | 2 +- components/locale/{eu_ES.tsx => eu_ES.ts} | 2 +- components/locale/{fa_IR.tsx => fa_IR.ts} | 2 +- components/locale/{fi_FI.tsx => fi_FI.ts} | 2 +- components/locale/{fr_BE.tsx => fr_BE.ts} | 2 +- components/locale/{fr_CA.tsx => fr_CA.ts} | 2 +- components/locale/{fr_FR.tsx => fr_FR.ts} | 2 +- components/locale/{ga_IE.tsx => ga_IE.ts} | 2 +- components/locale/{gl_ES.tsx => gl_ES.ts} | 2 +- components/locale/{he_IL.tsx => he_IL.ts} | 2 +- components/locale/{hi_IN.tsx => hi_IN.ts} | 2 +- components/locale/{hr_HR.tsx => hr_HR.ts} | 2 +- components/locale/{hu_HU.tsx => hu_HU.ts} | 2 +- components/locale/{hy_AM.tsx => hy_AM.ts} | 2 +- components/locale/{id_ID.tsx => id_ID.ts} | 2 +- components/locale/{is_IS.tsx => is_IS.ts} | 2 +- components/locale/{it_IT.tsx => it_IT.ts} | 2 +- components/locale/{ja_JP.tsx => ja_JP.ts} | 2 +- components/locale/{ka_GE.tsx => ka_GE.ts} | 2 +- components/locale/{kk_KZ.tsx => kk_KZ.ts} | 2 +- components/locale/{km_KH.tsx => km_KH.ts} | 2 +- components/locale/{kmr_IQ.tsx => kmr_IQ.ts} | 2 +- components/locale/{kn_IN.tsx => kn_IN.ts} | 2 +- components/locale/{ko_KR.tsx => ko_KR.ts} | 2 +- components/locale/{ku_IQ.tsx => ku_IQ.ts} | 2 +- components/locale/{lt_LT.tsx => lt_LT.ts} | 2 +- components/locale/{lv_LV.tsx => lv_LV.ts} | 2 +- components/locale/{mk_MK.tsx => mk_MK.ts} | 2 +- components/locale/{ml_IN.tsx => ml_IN.ts} | 2 +- components/locale/{mn_MN.tsx => mn_MN.ts} | 2 +- components/locale/{ms_MY.tsx => ms_MY.ts} | 2 +- components/locale/{nb_NO.tsx => nb_NO.ts} | 2 +- components/locale/{ne_NP.tsx => ne_NP.ts} | 2 +- components/locale/{nl_BE.tsx => nl_BE.ts} | 2 +- components/locale/{nl_NL.tsx => nl_NL.ts} | 2 +- components/locale/{pl_PL.tsx => pl_PL.ts} | 2 +- components/locale/{pt_BR.tsx => pt_BR.ts} | 2 +- components/locale/{pt_PT.tsx => pt_PT.ts} | 2 +- components/locale/{ro_RO.tsx => ro_RO.ts} | 2 +- components/locale/{ru_RU.tsx => ru_RU.ts} | 2 +- components/locale/{si_LK.tsx => si_LK.ts} | 2 +- components/locale/{sk_SK.tsx => sk_SK.ts} | 2 +- components/locale/{sl_SI.tsx => sl_SI.ts} | 2 +- components/locale/{sr_RS.tsx => sr_RS.ts} | 2 +- components/locale/{sv_SE.tsx => sv_SE.ts} | 2 +- components/locale/{ta_IN.tsx => ta_IN.ts} | 2 +- components/locale/{th_TH.tsx => th_TH.ts} | 2 +- components/locale/{tk_TK.tsx => tk_TK.ts} | 2 +- components/locale/{tr_TR.tsx => tr_TR.ts} | 2 +- components/locale/{uk_UA.tsx => uk_UA.ts} | 2 +- components/locale/{ur_PK.tsx => ur_PK.ts} | 2 +- components/locale/{vi_VN.tsx => vi_VN.ts} | 2 +- components/locale/{zh_CN.tsx => zh_CN.ts} | 2 +- components/locale/{zh_HK.tsx => zh_HK.ts} | 2 +- components/locale/{zh_TW.tsx => zh_TW.ts} | 2 +- components/mentions/style/{index.tsx => index.ts} | 0 components/upload/style/{dragger.tsx => dragger.ts} | 0 components/upload/style/{index.tsx => index.ts} | 0 components/upload/style/{list.tsx => list.ts} | 0 components/upload/style/{motion.tsx => motion.ts} | 0 components/upload/style/{picture.tsx => picture.ts} | 0 components/upload/style/{rtl.tsx => rtl.ts} | 0 components/version/{index.tsx => index.ts} | 0 index-with-locales.js | 4 ++-- 272 files changed, 74 insertions(+), 91 deletions(-) rename .dumi/{loading.js => loading.ts} (100%) rename components/_util/{getScroll.tsx => getScroll.ts} (100%) rename components/_util/{motion.tsx => motion.ts} (100%) rename components/_util/{placements.tsx => placements.ts} (100%) rename components/_util/{statusUtils.tsx => statusUtils.ts} (100%) rename components/_util/{styleChecker.tsx => styleChecker.ts} (100%) rename components/_util/{throttleByAnimationFrame.tsx => throttleByAnimationFrame.ts} (100%) rename components/affix/style/{index.tsx => index.ts} (100%) rename components/alert/style/{index.tsx => index.ts} (100%) rename components/anchor/{index.tsx => index.ts} (100%) rename components/anchor/style/{index.tsx => index.ts} (100%) rename components/app/style/{index.tsx => index.ts} (100%) rename components/avatar/{index.tsx => index.ts} (100%) rename components/avatar/style/{index.tsx => index.ts} (100%) rename components/back-top/style/{index.tsx => index.ts} (100%) rename components/badge/style/{index.tsx => index.ts} (100%) rename components/badge/{utils.tsx => utils.ts} (100%) rename components/breadcrumb/{index.tsx => index.ts} (100%) rename components/breadcrumb/style/{index.tsx => index.ts} (100%) rename components/button/{index.tsx => index.ts} (100%) rename components/button/style/{group.tsx => group.ts} (100%) rename components/button/style/{index.tsx => index.ts} (100%) rename components/calendar/{index.tsx => index.ts} (100%) rename components/calendar/locale/{ar_EG.tsx => ar_EG.ts} (100%) rename components/calendar/locale/{az_AZ.tsx => az_AZ.ts} (100%) rename components/calendar/locale/{bg_BG.tsx => bg_BG.ts} (100%) rename components/calendar/locale/{bn_BD.tsx => bn_BD.ts} (100%) rename components/calendar/locale/{by_BY.tsx => by_BY.ts} (100%) rename components/calendar/locale/{ca_ES.tsx => ca_ES.ts} (100%) rename components/calendar/locale/{cs_CZ.tsx => cs_CZ.ts} (100%) rename components/calendar/locale/{da_DK.tsx => da_DK.ts} (100%) rename components/calendar/locale/{de_DE.tsx => de_DE.ts} (100%) rename components/calendar/locale/{el_GR.tsx => el_GR.ts} (100%) rename components/calendar/locale/{en_GB.tsx => en_GB.ts} (100%) rename components/calendar/locale/{en_US.tsx => en_US.ts} (100%) rename components/calendar/locale/{es_ES.tsx => es_ES.ts} (100%) rename components/calendar/locale/{et_EE.tsx => et_EE.ts} (100%) rename components/calendar/locale/{eu_ES.tsx => eu_ES.ts} (100%) rename components/calendar/locale/{fa_IR.tsx => fa_IR.ts} (100%) rename components/calendar/locale/{fi_FI.tsx => fi_FI.ts} (100%) rename components/calendar/locale/{fr_BE.tsx => fr_BE.ts} (100%) rename components/calendar/locale/{fr_CA.tsx => fr_CA.ts} (100%) rename components/calendar/locale/{fr_FR.tsx => fr_FR.ts} (100%) rename components/calendar/locale/{ga_IE.tsx => ga_IE.ts} (100%) rename components/calendar/locale/{gl_ES.tsx => gl_ES.ts} (100%) rename components/calendar/locale/{he_IL.tsx => he_IL.ts} (100%) rename components/calendar/locale/{hi_IN.tsx => hi_IN.ts} (100%) rename components/calendar/locale/{hr_HR.tsx => hr_HR.ts} (100%) rename components/calendar/locale/{hu_HU.tsx => hu_HU.ts} (100%) rename components/calendar/locale/{id_ID.tsx => id_ID.ts} (100%) rename components/calendar/locale/{is_IS.tsx => is_IS.ts} (100%) rename components/calendar/locale/{it_IT.tsx => it_IT.ts} (100%) rename components/calendar/locale/{ja_JP.tsx => ja_JP.ts} (100%) rename components/calendar/locale/{ka_GE.tsx => ka_GE.ts} (100%) rename components/calendar/locale/{kk_KZ.tsx => kk_KZ.ts} (100%) rename components/calendar/locale/{km_KH.tsx => km_KH.ts} (100%) rename components/calendar/locale/{kmr_IQ.tsx => kmr_IQ.ts} (100%) rename components/calendar/locale/{kn_IN.tsx => kn_IN.ts} (100%) rename components/calendar/locale/{ko_KR.tsx => ko_KR.ts} (100%) rename components/calendar/locale/{lt_LT.tsx => lt_LT.ts} (100%) rename components/calendar/locale/{lv_LV.tsx => lv_LV.ts} (100%) rename components/calendar/locale/{mk_MK.tsx => mk_MK.ts} (100%) rename components/calendar/locale/{ml_IN.tsx => ml_IN.ts} (100%) rename components/calendar/locale/{mn_MN.tsx => mn_MN.ts} (100%) rename components/calendar/locale/{ms_MY.tsx => ms_MY.ts} (100%) rename components/calendar/locale/{nb_NO.tsx => nb_NO.ts} (100%) rename components/calendar/locale/{nl_BE.tsx => nl_BE.ts} (100%) rename components/calendar/locale/{nl_NL.tsx => nl_NL.ts} (100%) rename components/calendar/locale/{pl_PL.tsx => pl_PL.ts} (100%) rename components/calendar/locale/{pt_BR.tsx => pt_BR.ts} (100%) rename components/calendar/locale/{pt_PT.tsx => pt_PT.ts} (100%) rename components/calendar/locale/{ro_RO.tsx => ro_RO.ts} (100%) rename components/calendar/locale/{ru_RU.tsx => ru_RU.ts} (100%) rename components/calendar/locale/{si_LK.tsx => si_LK.ts} (100%) rename components/calendar/locale/{sk_SK.tsx => sk_SK.ts} (100%) rename components/calendar/locale/{sl_SI.tsx => sl_SI.ts} (100%) rename components/calendar/locale/{sr_RS.tsx => sr_RS.ts} (100%) rename components/calendar/locale/{sv_SE.tsx => sv_SE.ts} (100%) rename components/calendar/locale/{ta_IN.tsx => ta_IN.ts} (100%) rename components/calendar/locale/{th_TH.tsx => th_TH.ts} (100%) rename components/calendar/locale/{tk_TK.tsx => tk_TK.ts} (100%) rename components/calendar/locale/{tr_TR.tsx => tr_TR.ts} (100%) rename components/calendar/locale/{uk_UA.tsx => uk_UA.ts} (100%) rename components/calendar/locale/{ur_PK.tsx => ur_PK.ts} (100%) rename components/calendar/locale/{vi_VN.tsx => vi_VN.ts} (100%) rename components/calendar/locale/{zh_CN.tsx => zh_CN.ts} (100%) rename components/calendar/locale/{zh_TW.tsx => zh_TW.ts} (100%) rename components/calendar/style/{index.tsx => index.ts} (100%) rename components/card/{index.tsx => index.ts} (100%) rename components/card/style/{index.tsx => index.ts} (100%) rename components/carousel/style/{index.tsx => index.ts} (100%) rename components/cascader/style/{index.tsx => index.ts} (100%) rename components/checkbox/{index.tsx => index.ts} (100%) rename components/checkbox/style/{index.tsx => index.ts} (100%) rename components/col/{index.tsx => index.ts} (100%) rename components/col/style/{index.tsx => index.ts} (100%) rename components/collapse/{index.tsx => index.ts} (100%) rename components/collapse/style/{index.tsx => index.ts} (100%) rename components/config-provider/style/{index.tsx => index.ts} (100%) rename components/date-picker/{index.tsx => index.ts} (100%) rename components/date-picker/locale/{ar_EG.tsx => ar_EG.ts} (100%) rename components/date-picker/locale/{az_AZ.tsx => az_AZ.ts} (100%) rename components/date-picker/locale/{bg_BG.tsx => bg_BG.ts} (100%) rename components/date-picker/locale/{bn_BD.tsx => bn_BD.ts} (100%) rename components/date-picker/locale/{by_BY.tsx => by_BY.ts} (100%) rename components/date-picker/locale/{ca_ES.tsx => ca_ES.ts} (100%) rename components/date-picker/locale/{cs_CZ.tsx => cs_CZ.ts} (100%) rename components/date-picker/locale/{da_DK.tsx => da_DK.ts} (100%) rename components/date-picker/locale/{de_DE.tsx => de_DE.ts} (100%) rename components/date-picker/locale/{el_GR.tsx => el_GR.ts} (100%) rename components/date-picker/locale/{en_GB.tsx => en_GB.ts} (100%) rename components/date-picker/locale/{en_US.tsx => en_US.ts} (100%) rename components/date-picker/locale/{es_ES.tsx => es_ES.ts} (100%) rename components/date-picker/locale/{et_EE.tsx => et_EE.ts} (100%) rename components/date-picker/locale/{eu_ES.tsx => eu_ES.ts} (100%) rename components/date-picker/locale/{fa_IR.tsx => fa_IR.ts} (100%) rename components/date-picker/locale/{fi_FI.tsx => fi_FI.ts} (100%) rename components/date-picker/locale/{fr_BE.tsx => fr_BE.ts} (100%) rename components/date-picker/locale/{fr_CA.tsx => fr_CA.ts} (100%) rename components/date-picker/locale/{fr_FR.tsx => fr_FR.ts} (100%) rename components/date-picker/locale/{ga_IE.tsx => ga_IE.ts} (100%) rename components/date-picker/locale/{gl_ES.tsx => gl_ES.ts} (100%) rename components/date-picker/locale/{he_IL.tsx => he_IL.ts} (100%) rename components/date-picker/locale/{hi_IN.tsx => hi_IN.ts} (100%) rename components/date-picker/locale/{hr_HR.tsx => hr_HR.ts} (100%) rename components/date-picker/locale/{hu_HU.tsx => hu_HU.ts} (100%) rename components/date-picker/locale/{id_ID.tsx => id_ID.ts} (100%) rename components/date-picker/locale/{is_IS.tsx => is_IS.ts} (100%) rename components/date-picker/locale/{it_IT.tsx => it_IT.ts} (100%) rename components/date-picker/locale/{ja_JP.tsx => ja_JP.ts} (100%) rename components/date-picker/locale/{ka_GE.tsx => ka_GE.ts} (100%) rename components/date-picker/locale/{kk_KZ.tsx => kk_KZ.ts} (100%) rename components/date-picker/locale/{km_KH.tsx => km_KH.ts} (100%) rename components/date-picker/locale/{kmr_IQ.tsx => kmr_IQ.ts} (100%) rename components/date-picker/locale/{kn_IN.tsx => kn_IN.ts} (100%) rename components/date-picker/locale/{ko_KR.tsx => ko_KR.ts} (100%) rename components/date-picker/locale/{lt_LT.tsx => lt_LT.ts} (100%) rename components/date-picker/locale/{lv_LV.tsx => lv_LV.ts} (100%) rename components/date-picker/locale/{mk_MK.tsx => mk_MK.ts} (100%) rename components/date-picker/locale/{ml_IN.tsx => ml_IN.ts} (100%) rename components/date-picker/locale/{mn_MN.tsx => mn_MN.ts} (100%) rename components/date-picker/locale/{ms_MY.tsx => ms_MY.ts} (100%) rename components/date-picker/locale/{nb_NO.tsx => nb_NO.ts} (100%) rename components/date-picker/locale/{nl_BE.tsx => nl_BE.ts} (100%) rename components/date-picker/locale/{nl_NL.tsx => nl_NL.ts} (100%) rename components/date-picker/locale/{pl_PL.tsx => pl_PL.ts} (100%) rename components/date-picker/locale/{pt_BR.tsx => pt_BR.ts} (100%) rename components/date-picker/locale/{pt_PT.tsx => pt_PT.ts} (100%) rename components/date-picker/locale/{ro_RO.tsx => ro_RO.ts} (100%) rename components/date-picker/locale/{ru_RU.tsx => ru_RU.ts} (100%) rename components/date-picker/locale/{si_LK.tsx => si_LK.ts} (100%) rename components/date-picker/locale/{sk_SK.tsx => sk_SK.ts} (100%) rename components/date-picker/locale/{sl_SI.tsx => sl_SI.ts} (100%) rename components/date-picker/locale/{sr_RS.tsx => sr_RS.ts} (100%) rename components/date-picker/locale/{sv_SE.tsx => sv_SE.ts} (100%) rename components/date-picker/locale/{ta_IN.tsx => ta_IN.ts} (100%) rename components/date-picker/locale/{th_TH.tsx => th_TH.ts} (100%) rename components/date-picker/locale/{tk_TK.tsx => tk_TK.ts} (100%) rename components/date-picker/locale/{tr_TR.tsx => tr_TR.ts} (100%) rename components/date-picker/locale/{uk_UA.tsx => uk_UA.ts} (100%) rename components/date-picker/locale/{ur_PK.tsx => ur_PK.ts} (100%) rename components/date-picker/locale/{vi_VN.tsx => vi_VN.ts} (100%) rename components/date-picker/locale/{zh_CN.tsx => zh_CN.ts} (100%) rename components/date-picker/locale/{zh_TW.tsx => zh_TW.ts} (100%) rename components/date-picker/style/{index.tsx => index.ts} (100%) rename components/descriptions/{Item.tsx => Item.ts} (100%) rename components/descriptions/style/{index.tsx => index.ts} (100%) rename components/divider/style/{index.tsx => index.ts} (100%) rename components/drawer/style/{index.tsx => index.ts} (100%) rename components/drawer/style/{motion.tsx => motion.ts} (100%) rename components/dropdown/{index.tsx => index.ts} (100%) rename components/dropdown/style/{button.tsx => button.ts} (100%) rename components/dropdown/style/{index.tsx => index.ts} (97%) rename components/dropdown/style/{status.tsx => status.ts} (100%) rename components/empty/style/{index.tsx => index.ts} (100%) rename components/float-button/{index.tsx => index.ts} (100%) rename components/float-button/style/{index.tsx => index.ts} (100%) rename components/form/{index.tsx => index.ts} (100%) rename components/form/style/{explain.tsx => explain.ts} (100%) rename components/form/style/{index.tsx => index.ts} (100%) rename components/grid/{RowContext.tsx => RowContext.ts} (63%) rename components/grid/{index.tsx => index.ts} (100%) rename components/grid/style/{index.tsx => index.ts} (100%) rename components/icon/{index.tsx => index.ts} (100%) rename components/image/style/{index.tsx => index.ts} (100%) rename components/input-number/style/{index.tsx => index.ts} (100%) rename components/input/{index.tsx => index.ts} (100%) rename components/input/style/{index.tsx => index.ts} (100%) rename components/layout/{index.tsx => index.ts} (100%) rename components/layout/style/{index.tsx => index.ts} (100%) rename components/list/style/{index.tsx => index.ts} (100%) rename components/locale-provider/{LocaleReceiver.tsx => LocaleReceiver.ts} (100%) rename components/locale/{LocaleReceiver.tsx => LocaleReceiver.ts} (97%) rename components/locale/{ar_EG.tsx => ar_EG.ts} (98%) rename components/locale/{az_AZ.tsx => az_AZ.ts} (98%) rename components/locale/{bg_BG.tsx => bg_BG.ts} (96%) rename components/locale/{bn_BD.tsx => bn_BD.ts} (99%) rename components/locale/{by_BY.tsx => by_BY.ts} (99%) rename components/locale/{ca_ES.tsx => ca_ES.ts} (98%) rename components/locale/{cs_CZ.tsx => cs_CZ.ts} (98%) rename components/locale/{da_DK.tsx => da_DK.ts} (97%) rename components/locale/{de_DE.tsx => de_DE.ts} (98%) rename components/locale/{el_GR.tsx => el_GR.ts} (96%) rename components/locale/{en_GB.tsx => en_GB.ts} (98%) rename components/locale/{en_US.tsx => en_US.ts} (98%) rename components/locale/{es_ES.tsx => es_ES.ts} (98%) rename components/locale/{et_EE.tsx => et_EE.ts} (98%) rename components/locale/{eu_ES.tsx => eu_ES.ts} (98%) rename components/locale/{fa_IR.tsx => fa_IR.ts} (99%) rename components/locale/{fi_FI.tsx => fi_FI.ts} (96%) rename components/locale/{fr_BE.tsx => fr_BE.ts} (99%) rename components/locale/{fr_CA.tsx => fr_CA.ts} (99%) rename components/locale/{fr_FR.tsx => fr_FR.ts} (99%) rename components/locale/{ga_IE.tsx => ga_IE.ts} (98%) rename components/locale/{gl_ES.tsx => gl_ES.ts} (98%) rename components/locale/{he_IL.tsx => he_IL.ts} (98%) rename components/locale/{hi_IN.tsx => hi_IN.ts} (99%) rename components/locale/{hr_HR.tsx => hr_HR.ts} (98%) rename components/locale/{hu_HU.tsx => hu_HU.ts} (96%) rename components/locale/{hy_AM.tsx => hy_AM.ts} (98%) rename components/locale/{id_ID.tsx => id_ID.ts} (96%) rename components/locale/{is_IS.tsx => is_IS.ts} (96%) rename components/locale/{it_IT.tsx => it_IT.ts} (98%) rename components/locale/{ja_JP.tsx => ja_JP.ts} (98%) rename components/locale/{ka_GE.tsx => ka_GE.ts} (99%) rename components/locale/{kk_KZ.tsx => kk_KZ.ts} (99%) rename components/locale/{km_KH.tsx => km_KH.ts} (98%) rename components/locale/{kmr_IQ.tsx => kmr_IQ.ts} (96%) rename components/locale/{kn_IN.tsx => kn_IN.ts} (97%) rename components/locale/{ko_KR.tsx => ko_KR.ts} (98%) rename components/locale/{ku_IQ.tsx => ku_IQ.ts} (96%) rename components/locale/{lt_LT.tsx => lt_LT.ts} (98%) rename components/locale/{lv_LV.tsx => lv_LV.ts} (96%) rename components/locale/{mk_MK.tsx => mk_MK.ts} (97%) rename components/locale/{ml_IN.tsx => ml_IN.ts} (99%) rename components/locale/{mn_MN.tsx => mn_MN.ts} (96%) rename components/locale/{ms_MY.tsx => ms_MY.ts} (97%) rename components/locale/{nb_NO.tsx => nb_NO.ts} (98%) rename components/locale/{ne_NP.tsx => ne_NP.ts} (97%) rename components/locale/{nl_BE.tsx => nl_BE.ts} (98%) rename components/locale/{nl_NL.tsx => nl_NL.ts} (98%) rename components/locale/{pl_PL.tsx => pl_PL.ts} (98%) rename components/locale/{pt_BR.tsx => pt_BR.ts} (98%) rename components/locale/{pt_PT.tsx => pt_PT.ts} (98%) rename components/locale/{ro_RO.tsx => ro_RO.ts} (98%) rename components/locale/{ru_RU.tsx => ru_RU.ts} (99%) rename components/locale/{si_LK.tsx => si_LK.ts} (99%) rename components/locale/{sk_SK.tsx => sk_SK.ts} (98%) rename components/locale/{sl_SI.tsx => sl_SI.ts} (96%) rename components/locale/{sr_RS.tsx => sr_RS.ts} (98%) rename components/locale/{sv_SE.tsx => sv_SE.ts} (98%) rename components/locale/{ta_IN.tsx => ta_IN.ts} (98%) rename components/locale/{th_TH.tsx => th_TH.ts} (99%) rename components/locale/{tk_TK.tsx => tk_TK.ts} (98%) rename components/locale/{tr_TR.tsx => tr_TR.ts} (98%) rename components/locale/{uk_UA.tsx => uk_UA.ts} (99%) rename components/locale/{ur_PK.tsx => ur_PK.ts} (99%) rename components/locale/{vi_VN.tsx => vi_VN.ts} (96%) rename components/locale/{zh_CN.tsx => zh_CN.ts} (98%) rename components/locale/{zh_HK.tsx => zh_HK.ts} (98%) rename components/locale/{zh_TW.tsx => zh_TW.ts} (98%) rename components/mentions/style/{index.tsx => index.ts} (100%) rename components/upload/style/{dragger.tsx => dragger.ts} (100%) rename components/upload/style/{index.tsx => index.ts} (100%) rename components/upload/style/{list.tsx => list.ts} (100%) rename components/upload/style/{motion.tsx => motion.ts} (100%) rename components/upload/style/{picture.tsx => picture.ts} (100%) rename components/upload/style/{rtl.tsx => rtl.ts} (100%) rename components/version/{index.tsx => index.ts} (100%) diff --git a/.dumi/loading.js b/.dumi/loading.ts similarity index 100% rename from .dumi/loading.js rename to .dumi/loading.ts diff --git a/components/_util/getScroll.tsx b/components/_util/getScroll.ts similarity index 100% rename from components/_util/getScroll.tsx rename to components/_util/getScroll.ts diff --git a/components/_util/motion.tsx b/components/_util/motion.ts similarity index 100% rename from components/_util/motion.tsx rename to components/_util/motion.ts diff --git a/components/_util/placements.tsx b/components/_util/placements.ts similarity index 100% rename from components/_util/placements.tsx rename to components/_util/placements.ts diff --git a/components/_util/statusUtils.tsx b/components/_util/statusUtils.ts similarity index 100% rename from components/_util/statusUtils.tsx rename to components/_util/statusUtils.ts diff --git a/components/_util/styleChecker.tsx b/components/_util/styleChecker.ts similarity index 100% rename from components/_util/styleChecker.tsx rename to components/_util/styleChecker.ts diff --git a/components/_util/throttleByAnimationFrame.tsx b/components/_util/throttleByAnimationFrame.ts similarity index 100% rename from components/_util/throttleByAnimationFrame.tsx rename to components/_util/throttleByAnimationFrame.ts diff --git a/components/_util/transKeys.ts b/components/_util/transKeys.ts index 24e48be2c8..d196b11373 100644 --- a/components/_util/transKeys.ts +++ b/components/_util/transKeys.ts @@ -5,6 +5,7 @@ export const groupKeysMap = (keys: string[]) => { }); return map; }; + export const groupDisabledKeysMap = (dataSource: RecordType) => { const map = new Map(); dataSource.forEach(({ disabled, key }, index) => { diff --git a/components/affix/style/index.tsx b/components/affix/style/index.ts similarity index 100% rename from components/affix/style/index.tsx rename to components/affix/style/index.ts diff --git a/components/alert/style/index.tsx b/components/alert/style/index.ts similarity index 100% rename from components/alert/style/index.tsx rename to components/alert/style/index.ts diff --git a/components/anchor/index.tsx b/components/anchor/index.ts similarity index 100% rename from components/anchor/index.tsx rename to components/anchor/index.ts diff --git a/components/anchor/style/index.tsx b/components/anchor/style/index.ts similarity index 100% rename from components/anchor/style/index.tsx rename to components/anchor/style/index.ts diff --git a/components/app/style/index.tsx b/components/app/style/index.ts similarity index 100% rename from components/app/style/index.tsx rename to components/app/style/index.ts diff --git a/components/avatar/index.tsx b/components/avatar/index.ts similarity index 100% rename from components/avatar/index.tsx rename to components/avatar/index.ts diff --git a/components/avatar/style/index.tsx b/components/avatar/style/index.ts similarity index 100% rename from components/avatar/style/index.tsx rename to components/avatar/style/index.ts diff --git a/components/back-top/style/index.tsx b/components/back-top/style/index.ts similarity index 100% rename from components/back-top/style/index.tsx rename to components/back-top/style/index.ts diff --git a/components/badge/style/index.tsx b/components/badge/style/index.ts similarity index 100% rename from components/badge/style/index.tsx rename to components/badge/style/index.ts diff --git a/components/badge/utils.tsx b/components/badge/utils.ts similarity index 100% rename from components/badge/utils.tsx rename to components/badge/utils.ts diff --git a/components/breadcrumb/index.tsx b/components/breadcrumb/index.ts similarity index 100% rename from components/breadcrumb/index.tsx rename to components/breadcrumb/index.ts diff --git a/components/breadcrumb/style/index.tsx b/components/breadcrumb/style/index.ts similarity index 100% rename from components/breadcrumb/style/index.tsx rename to components/breadcrumb/style/index.ts diff --git a/components/button/index.tsx b/components/button/index.ts similarity index 100% rename from components/button/index.tsx rename to components/button/index.ts diff --git a/components/button/style/group.tsx b/components/button/style/group.ts similarity index 100% rename from components/button/style/group.tsx rename to components/button/style/group.ts diff --git a/components/button/style/index.tsx b/components/button/style/index.ts similarity index 100% rename from components/button/style/index.tsx rename to components/button/style/index.ts diff --git a/components/calendar/index.tsx b/components/calendar/index.ts similarity index 100% rename from components/calendar/index.tsx rename to components/calendar/index.ts diff --git a/components/calendar/locale/ar_EG.tsx b/components/calendar/locale/ar_EG.ts similarity index 100% rename from components/calendar/locale/ar_EG.tsx rename to components/calendar/locale/ar_EG.ts diff --git a/components/calendar/locale/az_AZ.tsx b/components/calendar/locale/az_AZ.ts similarity index 100% rename from components/calendar/locale/az_AZ.tsx rename to components/calendar/locale/az_AZ.ts diff --git a/components/calendar/locale/bg_BG.tsx b/components/calendar/locale/bg_BG.ts similarity index 100% rename from components/calendar/locale/bg_BG.tsx rename to components/calendar/locale/bg_BG.ts diff --git a/components/calendar/locale/bn_BD.tsx b/components/calendar/locale/bn_BD.ts similarity index 100% rename from components/calendar/locale/bn_BD.tsx rename to components/calendar/locale/bn_BD.ts diff --git a/components/calendar/locale/by_BY.tsx b/components/calendar/locale/by_BY.ts similarity index 100% rename from components/calendar/locale/by_BY.tsx rename to components/calendar/locale/by_BY.ts diff --git a/components/calendar/locale/ca_ES.tsx b/components/calendar/locale/ca_ES.ts similarity index 100% rename from components/calendar/locale/ca_ES.tsx rename to components/calendar/locale/ca_ES.ts diff --git a/components/calendar/locale/cs_CZ.tsx b/components/calendar/locale/cs_CZ.ts similarity index 100% rename from components/calendar/locale/cs_CZ.tsx rename to components/calendar/locale/cs_CZ.ts diff --git a/components/calendar/locale/da_DK.tsx b/components/calendar/locale/da_DK.ts similarity index 100% rename from components/calendar/locale/da_DK.tsx rename to components/calendar/locale/da_DK.ts diff --git a/components/calendar/locale/de_DE.tsx b/components/calendar/locale/de_DE.ts similarity index 100% rename from components/calendar/locale/de_DE.tsx rename to components/calendar/locale/de_DE.ts diff --git a/components/calendar/locale/el_GR.tsx b/components/calendar/locale/el_GR.ts similarity index 100% rename from components/calendar/locale/el_GR.tsx rename to components/calendar/locale/el_GR.ts diff --git a/components/calendar/locale/en_GB.tsx b/components/calendar/locale/en_GB.ts similarity index 100% rename from components/calendar/locale/en_GB.tsx rename to components/calendar/locale/en_GB.ts diff --git a/components/calendar/locale/en_US.tsx b/components/calendar/locale/en_US.ts similarity index 100% rename from components/calendar/locale/en_US.tsx rename to components/calendar/locale/en_US.ts diff --git a/components/calendar/locale/es_ES.tsx b/components/calendar/locale/es_ES.ts similarity index 100% rename from components/calendar/locale/es_ES.tsx rename to components/calendar/locale/es_ES.ts diff --git a/components/calendar/locale/et_EE.tsx b/components/calendar/locale/et_EE.ts similarity index 100% rename from components/calendar/locale/et_EE.tsx rename to components/calendar/locale/et_EE.ts diff --git a/components/calendar/locale/eu_ES.tsx b/components/calendar/locale/eu_ES.ts similarity index 100% rename from components/calendar/locale/eu_ES.tsx rename to components/calendar/locale/eu_ES.ts diff --git a/components/calendar/locale/fa_IR.tsx b/components/calendar/locale/fa_IR.ts similarity index 100% rename from components/calendar/locale/fa_IR.tsx rename to components/calendar/locale/fa_IR.ts diff --git a/components/calendar/locale/fi_FI.tsx b/components/calendar/locale/fi_FI.ts similarity index 100% rename from components/calendar/locale/fi_FI.tsx rename to components/calendar/locale/fi_FI.ts diff --git a/components/calendar/locale/fr_BE.tsx b/components/calendar/locale/fr_BE.ts similarity index 100% rename from components/calendar/locale/fr_BE.tsx rename to components/calendar/locale/fr_BE.ts diff --git a/components/calendar/locale/fr_CA.tsx b/components/calendar/locale/fr_CA.ts similarity index 100% rename from components/calendar/locale/fr_CA.tsx rename to components/calendar/locale/fr_CA.ts diff --git a/components/calendar/locale/fr_FR.tsx b/components/calendar/locale/fr_FR.ts similarity index 100% rename from components/calendar/locale/fr_FR.tsx rename to components/calendar/locale/fr_FR.ts diff --git a/components/calendar/locale/ga_IE.tsx b/components/calendar/locale/ga_IE.ts similarity index 100% rename from components/calendar/locale/ga_IE.tsx rename to components/calendar/locale/ga_IE.ts diff --git a/components/calendar/locale/gl_ES.tsx b/components/calendar/locale/gl_ES.ts similarity index 100% rename from components/calendar/locale/gl_ES.tsx rename to components/calendar/locale/gl_ES.ts diff --git a/components/calendar/locale/he_IL.tsx b/components/calendar/locale/he_IL.ts similarity index 100% rename from components/calendar/locale/he_IL.tsx rename to components/calendar/locale/he_IL.ts diff --git a/components/calendar/locale/hi_IN.tsx b/components/calendar/locale/hi_IN.ts similarity index 100% rename from components/calendar/locale/hi_IN.tsx rename to components/calendar/locale/hi_IN.ts diff --git a/components/calendar/locale/hr_HR.tsx b/components/calendar/locale/hr_HR.ts similarity index 100% rename from components/calendar/locale/hr_HR.tsx rename to components/calendar/locale/hr_HR.ts diff --git a/components/calendar/locale/hu_HU.tsx b/components/calendar/locale/hu_HU.ts similarity index 100% rename from components/calendar/locale/hu_HU.tsx rename to components/calendar/locale/hu_HU.ts diff --git a/components/calendar/locale/id_ID.tsx b/components/calendar/locale/id_ID.ts similarity index 100% rename from components/calendar/locale/id_ID.tsx rename to components/calendar/locale/id_ID.ts diff --git a/components/calendar/locale/is_IS.tsx b/components/calendar/locale/is_IS.ts similarity index 100% rename from components/calendar/locale/is_IS.tsx rename to components/calendar/locale/is_IS.ts diff --git a/components/calendar/locale/it_IT.tsx b/components/calendar/locale/it_IT.ts similarity index 100% rename from components/calendar/locale/it_IT.tsx rename to components/calendar/locale/it_IT.ts diff --git a/components/calendar/locale/ja_JP.tsx b/components/calendar/locale/ja_JP.ts similarity index 100% rename from components/calendar/locale/ja_JP.tsx rename to components/calendar/locale/ja_JP.ts diff --git a/components/calendar/locale/ka_GE.tsx b/components/calendar/locale/ka_GE.ts similarity index 100% rename from components/calendar/locale/ka_GE.tsx rename to components/calendar/locale/ka_GE.ts diff --git a/components/calendar/locale/kk_KZ.tsx b/components/calendar/locale/kk_KZ.ts similarity index 100% rename from components/calendar/locale/kk_KZ.tsx rename to components/calendar/locale/kk_KZ.ts diff --git a/components/calendar/locale/km_KH.tsx b/components/calendar/locale/km_KH.ts similarity index 100% rename from components/calendar/locale/km_KH.tsx rename to components/calendar/locale/km_KH.ts diff --git a/components/calendar/locale/kmr_IQ.tsx b/components/calendar/locale/kmr_IQ.ts similarity index 100% rename from components/calendar/locale/kmr_IQ.tsx rename to components/calendar/locale/kmr_IQ.ts diff --git a/components/calendar/locale/kn_IN.tsx b/components/calendar/locale/kn_IN.ts similarity index 100% rename from components/calendar/locale/kn_IN.tsx rename to components/calendar/locale/kn_IN.ts diff --git a/components/calendar/locale/ko_KR.tsx b/components/calendar/locale/ko_KR.ts similarity index 100% rename from components/calendar/locale/ko_KR.tsx rename to components/calendar/locale/ko_KR.ts diff --git a/components/calendar/locale/lt_LT.tsx b/components/calendar/locale/lt_LT.ts similarity index 100% rename from components/calendar/locale/lt_LT.tsx rename to components/calendar/locale/lt_LT.ts diff --git a/components/calendar/locale/lv_LV.tsx b/components/calendar/locale/lv_LV.ts similarity index 100% rename from components/calendar/locale/lv_LV.tsx rename to components/calendar/locale/lv_LV.ts diff --git a/components/calendar/locale/mk_MK.tsx b/components/calendar/locale/mk_MK.ts similarity index 100% rename from components/calendar/locale/mk_MK.tsx rename to components/calendar/locale/mk_MK.ts diff --git a/components/calendar/locale/ml_IN.tsx b/components/calendar/locale/ml_IN.ts similarity index 100% rename from components/calendar/locale/ml_IN.tsx rename to components/calendar/locale/ml_IN.ts diff --git a/components/calendar/locale/mn_MN.tsx b/components/calendar/locale/mn_MN.ts similarity index 100% rename from components/calendar/locale/mn_MN.tsx rename to components/calendar/locale/mn_MN.ts diff --git a/components/calendar/locale/ms_MY.tsx b/components/calendar/locale/ms_MY.ts similarity index 100% rename from components/calendar/locale/ms_MY.tsx rename to components/calendar/locale/ms_MY.ts diff --git a/components/calendar/locale/nb_NO.tsx b/components/calendar/locale/nb_NO.ts similarity index 100% rename from components/calendar/locale/nb_NO.tsx rename to components/calendar/locale/nb_NO.ts diff --git a/components/calendar/locale/nl_BE.tsx b/components/calendar/locale/nl_BE.ts similarity index 100% rename from components/calendar/locale/nl_BE.tsx rename to components/calendar/locale/nl_BE.ts diff --git a/components/calendar/locale/nl_NL.tsx b/components/calendar/locale/nl_NL.ts similarity index 100% rename from components/calendar/locale/nl_NL.tsx rename to components/calendar/locale/nl_NL.ts diff --git a/components/calendar/locale/pl_PL.tsx b/components/calendar/locale/pl_PL.ts similarity index 100% rename from components/calendar/locale/pl_PL.tsx rename to components/calendar/locale/pl_PL.ts diff --git a/components/calendar/locale/pt_BR.tsx b/components/calendar/locale/pt_BR.ts similarity index 100% rename from components/calendar/locale/pt_BR.tsx rename to components/calendar/locale/pt_BR.ts diff --git a/components/calendar/locale/pt_PT.tsx b/components/calendar/locale/pt_PT.ts similarity index 100% rename from components/calendar/locale/pt_PT.tsx rename to components/calendar/locale/pt_PT.ts diff --git a/components/calendar/locale/ro_RO.tsx b/components/calendar/locale/ro_RO.ts similarity index 100% rename from components/calendar/locale/ro_RO.tsx rename to components/calendar/locale/ro_RO.ts diff --git a/components/calendar/locale/ru_RU.tsx b/components/calendar/locale/ru_RU.ts similarity index 100% rename from components/calendar/locale/ru_RU.tsx rename to components/calendar/locale/ru_RU.ts diff --git a/components/calendar/locale/si_LK.tsx b/components/calendar/locale/si_LK.ts similarity index 100% rename from components/calendar/locale/si_LK.tsx rename to components/calendar/locale/si_LK.ts diff --git a/components/calendar/locale/sk_SK.tsx b/components/calendar/locale/sk_SK.ts similarity index 100% rename from components/calendar/locale/sk_SK.tsx rename to components/calendar/locale/sk_SK.ts diff --git a/components/calendar/locale/sl_SI.tsx b/components/calendar/locale/sl_SI.ts similarity index 100% rename from components/calendar/locale/sl_SI.tsx rename to components/calendar/locale/sl_SI.ts diff --git a/components/calendar/locale/sr_RS.tsx b/components/calendar/locale/sr_RS.ts similarity index 100% rename from components/calendar/locale/sr_RS.tsx rename to components/calendar/locale/sr_RS.ts diff --git a/components/calendar/locale/sv_SE.tsx b/components/calendar/locale/sv_SE.ts similarity index 100% rename from components/calendar/locale/sv_SE.tsx rename to components/calendar/locale/sv_SE.ts diff --git a/components/calendar/locale/ta_IN.tsx b/components/calendar/locale/ta_IN.ts similarity index 100% rename from components/calendar/locale/ta_IN.tsx rename to components/calendar/locale/ta_IN.ts diff --git a/components/calendar/locale/th_TH.tsx b/components/calendar/locale/th_TH.ts similarity index 100% rename from components/calendar/locale/th_TH.tsx rename to components/calendar/locale/th_TH.ts diff --git a/components/calendar/locale/tk_TK.tsx b/components/calendar/locale/tk_TK.ts similarity index 100% rename from components/calendar/locale/tk_TK.tsx rename to components/calendar/locale/tk_TK.ts diff --git a/components/calendar/locale/tr_TR.tsx b/components/calendar/locale/tr_TR.ts similarity index 100% rename from components/calendar/locale/tr_TR.tsx rename to components/calendar/locale/tr_TR.ts diff --git a/components/calendar/locale/uk_UA.tsx b/components/calendar/locale/uk_UA.ts similarity index 100% rename from components/calendar/locale/uk_UA.tsx rename to components/calendar/locale/uk_UA.ts diff --git a/components/calendar/locale/ur_PK.tsx b/components/calendar/locale/ur_PK.ts similarity index 100% rename from components/calendar/locale/ur_PK.tsx rename to components/calendar/locale/ur_PK.ts diff --git a/components/calendar/locale/vi_VN.tsx b/components/calendar/locale/vi_VN.ts similarity index 100% rename from components/calendar/locale/vi_VN.tsx rename to components/calendar/locale/vi_VN.ts diff --git a/components/calendar/locale/zh_CN.tsx b/components/calendar/locale/zh_CN.ts similarity index 100% rename from components/calendar/locale/zh_CN.tsx rename to components/calendar/locale/zh_CN.ts diff --git a/components/calendar/locale/zh_TW.tsx b/components/calendar/locale/zh_TW.ts similarity index 100% rename from components/calendar/locale/zh_TW.tsx rename to components/calendar/locale/zh_TW.ts diff --git a/components/calendar/style/index.tsx b/components/calendar/style/index.ts similarity index 100% rename from components/calendar/style/index.tsx rename to components/calendar/style/index.ts diff --git a/components/card/index.tsx b/components/card/index.ts similarity index 100% rename from components/card/index.tsx rename to components/card/index.ts diff --git a/components/card/style/index.tsx b/components/card/style/index.ts similarity index 100% rename from components/card/style/index.tsx rename to components/card/style/index.ts diff --git a/components/carousel/index.tsx b/components/carousel/index.tsx index 6a83aa215d..b11cd6319f 100644 --- a/components/carousel/index.tsx +++ b/components/carousel/index.tsx @@ -16,11 +16,7 @@ export interface CarouselProps extends Omit { slickGoTo?: number; dotPosition?: DotPosition; children?: React.ReactNode; - dots?: - | boolean - | { - className?: string; - }; + dots?: boolean | { className?: string }; } export interface CarouselRef { diff --git a/components/carousel/style/index.tsx b/components/carousel/style/index.ts similarity index 100% rename from components/carousel/style/index.tsx rename to components/carousel/style/index.ts diff --git a/components/cascader/style/index.tsx b/components/cascader/style/index.ts similarity index 100% rename from components/cascader/style/index.tsx rename to components/cascader/style/index.ts diff --git a/components/checkbox/index.tsx b/components/checkbox/index.ts similarity index 100% rename from components/checkbox/index.tsx rename to components/checkbox/index.ts diff --git a/components/checkbox/style/index.tsx b/components/checkbox/style/index.ts similarity index 100% rename from components/checkbox/style/index.tsx rename to components/checkbox/style/index.ts diff --git a/components/col/index.tsx b/components/col/index.ts similarity index 100% rename from components/col/index.tsx rename to components/col/index.ts diff --git a/components/col/style/index.tsx b/components/col/style/index.ts similarity index 100% rename from components/col/style/index.tsx rename to components/col/style/index.ts diff --git a/components/collapse/index.tsx b/components/collapse/index.ts similarity index 100% rename from components/collapse/index.tsx rename to components/collapse/index.ts diff --git a/components/collapse/style/index.tsx b/components/collapse/style/index.ts similarity index 100% rename from components/collapse/style/index.tsx rename to components/collapse/style/index.ts diff --git a/components/config-provider/style/index.tsx b/components/config-provider/style/index.ts similarity index 100% rename from components/config-provider/style/index.tsx rename to components/config-provider/style/index.ts diff --git a/components/date-picker/index.tsx b/components/date-picker/index.ts similarity index 100% rename from components/date-picker/index.tsx rename to components/date-picker/index.ts diff --git a/components/date-picker/locale/ar_EG.tsx b/components/date-picker/locale/ar_EG.ts similarity index 100% rename from components/date-picker/locale/ar_EG.tsx rename to components/date-picker/locale/ar_EG.ts diff --git a/components/date-picker/locale/az_AZ.tsx b/components/date-picker/locale/az_AZ.ts similarity index 100% rename from components/date-picker/locale/az_AZ.tsx rename to components/date-picker/locale/az_AZ.ts diff --git a/components/date-picker/locale/bg_BG.tsx b/components/date-picker/locale/bg_BG.ts similarity index 100% rename from components/date-picker/locale/bg_BG.tsx rename to components/date-picker/locale/bg_BG.ts diff --git a/components/date-picker/locale/bn_BD.tsx b/components/date-picker/locale/bn_BD.ts similarity index 100% rename from components/date-picker/locale/bn_BD.tsx rename to components/date-picker/locale/bn_BD.ts diff --git a/components/date-picker/locale/by_BY.tsx b/components/date-picker/locale/by_BY.ts similarity index 100% rename from components/date-picker/locale/by_BY.tsx rename to components/date-picker/locale/by_BY.ts diff --git a/components/date-picker/locale/ca_ES.tsx b/components/date-picker/locale/ca_ES.ts similarity index 100% rename from components/date-picker/locale/ca_ES.tsx rename to components/date-picker/locale/ca_ES.ts diff --git a/components/date-picker/locale/cs_CZ.tsx b/components/date-picker/locale/cs_CZ.ts similarity index 100% rename from components/date-picker/locale/cs_CZ.tsx rename to components/date-picker/locale/cs_CZ.ts diff --git a/components/date-picker/locale/da_DK.tsx b/components/date-picker/locale/da_DK.ts similarity index 100% rename from components/date-picker/locale/da_DK.tsx rename to components/date-picker/locale/da_DK.ts diff --git a/components/date-picker/locale/de_DE.tsx b/components/date-picker/locale/de_DE.ts similarity index 100% rename from components/date-picker/locale/de_DE.tsx rename to components/date-picker/locale/de_DE.ts diff --git a/components/date-picker/locale/el_GR.tsx b/components/date-picker/locale/el_GR.ts similarity index 100% rename from components/date-picker/locale/el_GR.tsx rename to components/date-picker/locale/el_GR.ts diff --git a/components/date-picker/locale/en_GB.tsx b/components/date-picker/locale/en_GB.ts similarity index 100% rename from components/date-picker/locale/en_GB.tsx rename to components/date-picker/locale/en_GB.ts diff --git a/components/date-picker/locale/en_US.tsx b/components/date-picker/locale/en_US.ts similarity index 100% rename from components/date-picker/locale/en_US.tsx rename to components/date-picker/locale/en_US.ts diff --git a/components/date-picker/locale/es_ES.tsx b/components/date-picker/locale/es_ES.ts similarity index 100% rename from components/date-picker/locale/es_ES.tsx rename to components/date-picker/locale/es_ES.ts diff --git a/components/date-picker/locale/et_EE.tsx b/components/date-picker/locale/et_EE.ts similarity index 100% rename from components/date-picker/locale/et_EE.tsx rename to components/date-picker/locale/et_EE.ts diff --git a/components/date-picker/locale/eu_ES.tsx b/components/date-picker/locale/eu_ES.ts similarity index 100% rename from components/date-picker/locale/eu_ES.tsx rename to components/date-picker/locale/eu_ES.ts diff --git a/components/date-picker/locale/fa_IR.tsx b/components/date-picker/locale/fa_IR.ts similarity index 100% rename from components/date-picker/locale/fa_IR.tsx rename to components/date-picker/locale/fa_IR.ts diff --git a/components/date-picker/locale/fi_FI.tsx b/components/date-picker/locale/fi_FI.ts similarity index 100% rename from components/date-picker/locale/fi_FI.tsx rename to components/date-picker/locale/fi_FI.ts diff --git a/components/date-picker/locale/fr_BE.tsx b/components/date-picker/locale/fr_BE.ts similarity index 100% rename from components/date-picker/locale/fr_BE.tsx rename to components/date-picker/locale/fr_BE.ts diff --git a/components/date-picker/locale/fr_CA.tsx b/components/date-picker/locale/fr_CA.ts similarity index 100% rename from components/date-picker/locale/fr_CA.tsx rename to components/date-picker/locale/fr_CA.ts diff --git a/components/date-picker/locale/fr_FR.tsx b/components/date-picker/locale/fr_FR.ts similarity index 100% rename from components/date-picker/locale/fr_FR.tsx rename to components/date-picker/locale/fr_FR.ts diff --git a/components/date-picker/locale/ga_IE.tsx b/components/date-picker/locale/ga_IE.ts similarity index 100% rename from components/date-picker/locale/ga_IE.tsx rename to components/date-picker/locale/ga_IE.ts diff --git a/components/date-picker/locale/gl_ES.tsx b/components/date-picker/locale/gl_ES.ts similarity index 100% rename from components/date-picker/locale/gl_ES.tsx rename to components/date-picker/locale/gl_ES.ts diff --git a/components/date-picker/locale/he_IL.tsx b/components/date-picker/locale/he_IL.ts similarity index 100% rename from components/date-picker/locale/he_IL.tsx rename to components/date-picker/locale/he_IL.ts diff --git a/components/date-picker/locale/hi_IN.tsx b/components/date-picker/locale/hi_IN.ts similarity index 100% rename from components/date-picker/locale/hi_IN.tsx rename to components/date-picker/locale/hi_IN.ts diff --git a/components/date-picker/locale/hr_HR.tsx b/components/date-picker/locale/hr_HR.ts similarity index 100% rename from components/date-picker/locale/hr_HR.tsx rename to components/date-picker/locale/hr_HR.ts diff --git a/components/date-picker/locale/hu_HU.tsx b/components/date-picker/locale/hu_HU.ts similarity index 100% rename from components/date-picker/locale/hu_HU.tsx rename to components/date-picker/locale/hu_HU.ts diff --git a/components/date-picker/locale/id_ID.tsx b/components/date-picker/locale/id_ID.ts similarity index 100% rename from components/date-picker/locale/id_ID.tsx rename to components/date-picker/locale/id_ID.ts diff --git a/components/date-picker/locale/is_IS.tsx b/components/date-picker/locale/is_IS.ts similarity index 100% rename from components/date-picker/locale/is_IS.tsx rename to components/date-picker/locale/is_IS.ts diff --git a/components/date-picker/locale/it_IT.tsx b/components/date-picker/locale/it_IT.ts similarity index 100% rename from components/date-picker/locale/it_IT.tsx rename to components/date-picker/locale/it_IT.ts diff --git a/components/date-picker/locale/ja_JP.tsx b/components/date-picker/locale/ja_JP.ts similarity index 100% rename from components/date-picker/locale/ja_JP.tsx rename to components/date-picker/locale/ja_JP.ts diff --git a/components/date-picker/locale/ka_GE.tsx b/components/date-picker/locale/ka_GE.ts similarity index 100% rename from components/date-picker/locale/ka_GE.tsx rename to components/date-picker/locale/ka_GE.ts diff --git a/components/date-picker/locale/kk_KZ.tsx b/components/date-picker/locale/kk_KZ.ts similarity index 100% rename from components/date-picker/locale/kk_KZ.tsx rename to components/date-picker/locale/kk_KZ.ts diff --git a/components/date-picker/locale/km_KH.tsx b/components/date-picker/locale/km_KH.ts similarity index 100% rename from components/date-picker/locale/km_KH.tsx rename to components/date-picker/locale/km_KH.ts diff --git a/components/date-picker/locale/kmr_IQ.tsx b/components/date-picker/locale/kmr_IQ.ts similarity index 100% rename from components/date-picker/locale/kmr_IQ.tsx rename to components/date-picker/locale/kmr_IQ.ts diff --git a/components/date-picker/locale/kn_IN.tsx b/components/date-picker/locale/kn_IN.ts similarity index 100% rename from components/date-picker/locale/kn_IN.tsx rename to components/date-picker/locale/kn_IN.ts diff --git a/components/date-picker/locale/ko_KR.tsx b/components/date-picker/locale/ko_KR.ts similarity index 100% rename from components/date-picker/locale/ko_KR.tsx rename to components/date-picker/locale/ko_KR.ts diff --git a/components/date-picker/locale/lt_LT.tsx b/components/date-picker/locale/lt_LT.ts similarity index 100% rename from components/date-picker/locale/lt_LT.tsx rename to components/date-picker/locale/lt_LT.ts diff --git a/components/date-picker/locale/lv_LV.tsx b/components/date-picker/locale/lv_LV.ts similarity index 100% rename from components/date-picker/locale/lv_LV.tsx rename to components/date-picker/locale/lv_LV.ts diff --git a/components/date-picker/locale/mk_MK.tsx b/components/date-picker/locale/mk_MK.ts similarity index 100% rename from components/date-picker/locale/mk_MK.tsx rename to components/date-picker/locale/mk_MK.ts diff --git a/components/date-picker/locale/ml_IN.tsx b/components/date-picker/locale/ml_IN.ts similarity index 100% rename from components/date-picker/locale/ml_IN.tsx rename to components/date-picker/locale/ml_IN.ts diff --git a/components/date-picker/locale/mn_MN.tsx b/components/date-picker/locale/mn_MN.ts similarity index 100% rename from components/date-picker/locale/mn_MN.tsx rename to components/date-picker/locale/mn_MN.ts diff --git a/components/date-picker/locale/ms_MY.tsx b/components/date-picker/locale/ms_MY.ts similarity index 100% rename from components/date-picker/locale/ms_MY.tsx rename to components/date-picker/locale/ms_MY.ts diff --git a/components/date-picker/locale/nb_NO.tsx b/components/date-picker/locale/nb_NO.ts similarity index 100% rename from components/date-picker/locale/nb_NO.tsx rename to components/date-picker/locale/nb_NO.ts diff --git a/components/date-picker/locale/nl_BE.tsx b/components/date-picker/locale/nl_BE.ts similarity index 100% rename from components/date-picker/locale/nl_BE.tsx rename to components/date-picker/locale/nl_BE.ts diff --git a/components/date-picker/locale/nl_NL.tsx b/components/date-picker/locale/nl_NL.ts similarity index 100% rename from components/date-picker/locale/nl_NL.tsx rename to components/date-picker/locale/nl_NL.ts diff --git a/components/date-picker/locale/pl_PL.tsx b/components/date-picker/locale/pl_PL.ts similarity index 100% rename from components/date-picker/locale/pl_PL.tsx rename to components/date-picker/locale/pl_PL.ts diff --git a/components/date-picker/locale/pt_BR.tsx b/components/date-picker/locale/pt_BR.ts similarity index 100% rename from components/date-picker/locale/pt_BR.tsx rename to components/date-picker/locale/pt_BR.ts diff --git a/components/date-picker/locale/pt_PT.tsx b/components/date-picker/locale/pt_PT.ts similarity index 100% rename from components/date-picker/locale/pt_PT.tsx rename to components/date-picker/locale/pt_PT.ts diff --git a/components/date-picker/locale/ro_RO.tsx b/components/date-picker/locale/ro_RO.ts similarity index 100% rename from components/date-picker/locale/ro_RO.tsx rename to components/date-picker/locale/ro_RO.ts diff --git a/components/date-picker/locale/ru_RU.tsx b/components/date-picker/locale/ru_RU.ts similarity index 100% rename from components/date-picker/locale/ru_RU.tsx rename to components/date-picker/locale/ru_RU.ts diff --git a/components/date-picker/locale/si_LK.tsx b/components/date-picker/locale/si_LK.ts similarity index 100% rename from components/date-picker/locale/si_LK.tsx rename to components/date-picker/locale/si_LK.ts diff --git a/components/date-picker/locale/sk_SK.tsx b/components/date-picker/locale/sk_SK.ts similarity index 100% rename from components/date-picker/locale/sk_SK.tsx rename to components/date-picker/locale/sk_SK.ts diff --git a/components/date-picker/locale/sl_SI.tsx b/components/date-picker/locale/sl_SI.ts similarity index 100% rename from components/date-picker/locale/sl_SI.tsx rename to components/date-picker/locale/sl_SI.ts diff --git a/components/date-picker/locale/sr_RS.tsx b/components/date-picker/locale/sr_RS.ts similarity index 100% rename from components/date-picker/locale/sr_RS.tsx rename to components/date-picker/locale/sr_RS.ts diff --git a/components/date-picker/locale/sv_SE.tsx b/components/date-picker/locale/sv_SE.ts similarity index 100% rename from components/date-picker/locale/sv_SE.tsx rename to components/date-picker/locale/sv_SE.ts diff --git a/components/date-picker/locale/ta_IN.tsx b/components/date-picker/locale/ta_IN.ts similarity index 100% rename from components/date-picker/locale/ta_IN.tsx rename to components/date-picker/locale/ta_IN.ts diff --git a/components/date-picker/locale/th_TH.tsx b/components/date-picker/locale/th_TH.ts similarity index 100% rename from components/date-picker/locale/th_TH.tsx rename to components/date-picker/locale/th_TH.ts diff --git a/components/date-picker/locale/tk_TK.tsx b/components/date-picker/locale/tk_TK.ts similarity index 100% rename from components/date-picker/locale/tk_TK.tsx rename to components/date-picker/locale/tk_TK.ts diff --git a/components/date-picker/locale/tr_TR.tsx b/components/date-picker/locale/tr_TR.ts similarity index 100% rename from components/date-picker/locale/tr_TR.tsx rename to components/date-picker/locale/tr_TR.ts diff --git a/components/date-picker/locale/uk_UA.tsx b/components/date-picker/locale/uk_UA.ts similarity index 100% rename from components/date-picker/locale/uk_UA.tsx rename to components/date-picker/locale/uk_UA.ts diff --git a/components/date-picker/locale/ur_PK.tsx b/components/date-picker/locale/ur_PK.ts similarity index 100% rename from components/date-picker/locale/ur_PK.tsx rename to components/date-picker/locale/ur_PK.ts diff --git a/components/date-picker/locale/vi_VN.tsx b/components/date-picker/locale/vi_VN.ts similarity index 100% rename from components/date-picker/locale/vi_VN.tsx rename to components/date-picker/locale/vi_VN.ts diff --git a/components/date-picker/locale/zh_CN.tsx b/components/date-picker/locale/zh_CN.ts similarity index 100% rename from components/date-picker/locale/zh_CN.tsx rename to components/date-picker/locale/zh_CN.ts diff --git a/components/date-picker/locale/zh_TW.tsx b/components/date-picker/locale/zh_TW.ts similarity index 100% rename from components/date-picker/locale/zh_TW.tsx rename to components/date-picker/locale/zh_TW.ts diff --git a/components/date-picker/style/index.tsx b/components/date-picker/style/index.ts similarity index 100% rename from components/date-picker/style/index.tsx rename to components/date-picker/style/index.ts diff --git a/components/descriptions/Item.tsx b/components/descriptions/Item.ts similarity index 100% rename from components/descriptions/Item.tsx rename to components/descriptions/Item.ts diff --git a/components/descriptions/style/index.tsx b/components/descriptions/style/index.ts similarity index 100% rename from components/descriptions/style/index.tsx rename to components/descriptions/style/index.ts diff --git a/components/divider/style/index.tsx b/components/divider/style/index.ts similarity index 100% rename from components/divider/style/index.tsx rename to components/divider/style/index.ts diff --git a/components/drawer/style/index.tsx b/components/drawer/style/index.ts similarity index 100% rename from components/drawer/style/index.tsx rename to components/drawer/style/index.ts diff --git a/components/drawer/style/motion.tsx b/components/drawer/style/motion.ts similarity index 100% rename from components/drawer/style/motion.tsx rename to components/drawer/style/motion.ts diff --git a/components/dropdown/index.tsx b/components/dropdown/index.ts similarity index 100% rename from components/dropdown/index.tsx rename to components/dropdown/index.ts diff --git a/components/dropdown/style/button.tsx b/components/dropdown/style/button.ts similarity index 100% rename from components/dropdown/style/button.tsx rename to components/dropdown/style/button.ts diff --git a/components/dropdown/style/index.tsx b/components/dropdown/style/index.ts similarity index 97% rename from components/dropdown/style/index.tsx rename to components/dropdown/style/index.ts index f1dd3f78a6..ba3fb8f330 100644 --- a/components/dropdown/style/index.tsx +++ b/components/dropdown/style/index.ts @@ -42,7 +42,6 @@ const genBaseStyle: GenerateStyle = (token) => { dropdownPaddingVertical, fontSize, dropdownEdgeChildPadding, - borderRadius, colorTextDisabled, fontSizeIcon, controlPaddingHorizontal, @@ -321,18 +320,6 @@ const genBaseStyle: GenerateStyle = (token) => { cursor: 'pointer', transition: `all ${motionDurationMid}`, - '&:first-child': !dropdownEdgeChildPadding - ? { - borderRadius: `${borderRadius}px ${borderRadius}px 0 0`, - } - : [], - - '&:last-child': !dropdownEdgeChildPadding - ? { - borderRadius: `0 0 ${borderRadius}px ${borderRadius}px`, - } - : [], - [`&:hover, &-active`]: { backgroundColor: token.controlItemBgHover, }, diff --git a/components/dropdown/style/status.tsx b/components/dropdown/style/status.ts similarity index 100% rename from components/dropdown/style/status.tsx rename to components/dropdown/style/status.ts diff --git a/components/empty/style/index.tsx b/components/empty/style/index.ts similarity index 100% rename from components/empty/style/index.tsx rename to components/empty/style/index.ts diff --git a/components/float-button/index.tsx b/components/float-button/index.ts similarity index 100% rename from components/float-button/index.tsx rename to components/float-button/index.ts diff --git a/components/float-button/style/index.tsx b/components/float-button/style/index.ts similarity index 100% rename from components/float-button/style/index.tsx rename to components/float-button/style/index.ts diff --git a/components/form/index.tsx b/components/form/index.ts similarity index 100% rename from components/form/index.tsx rename to components/form/index.ts diff --git a/components/form/style/explain.tsx b/components/form/style/explain.ts similarity index 100% rename from components/form/style/explain.tsx rename to components/form/style/explain.ts diff --git a/components/form/style/index.tsx b/components/form/style/index.ts similarity index 100% rename from components/form/style/index.tsx rename to components/form/style/index.ts diff --git a/components/grid/RowContext.tsx b/components/grid/RowContext.ts similarity index 63% rename from components/grid/RowContext.tsx rename to components/grid/RowContext.ts index 509969d285..9f38971117 100644 --- a/components/grid/RowContext.tsx +++ b/components/grid/RowContext.ts @@ -1,4 +1,3 @@ -import type { Context } from 'react'; import { createContext } from 'react'; export interface RowContextState { @@ -7,6 +6,6 @@ export interface RowContextState { supportFlexGap?: boolean; } -const RowContext: Context = createContext({}); +const RowContext = createContext({}); export default RowContext; diff --git a/components/grid/index.tsx b/components/grid/index.ts similarity index 100% rename from components/grid/index.tsx rename to components/grid/index.ts diff --git a/components/grid/style/index.tsx b/components/grid/style/index.ts similarity index 100% rename from components/grid/style/index.tsx rename to components/grid/style/index.ts diff --git a/components/icon/index.tsx b/components/icon/index.ts similarity index 100% rename from components/icon/index.tsx rename to components/icon/index.ts diff --git a/components/image/style/index.tsx b/components/image/style/index.ts similarity index 100% rename from components/image/style/index.tsx rename to components/image/style/index.ts diff --git a/components/input-number/style/index.tsx b/components/input-number/style/index.ts similarity index 100% rename from components/input-number/style/index.tsx rename to components/input-number/style/index.ts diff --git a/components/input/index.tsx b/components/input/index.ts similarity index 100% rename from components/input/index.tsx rename to components/input/index.ts diff --git a/components/input/style/index.tsx b/components/input/style/index.ts similarity index 100% rename from components/input/style/index.tsx rename to components/input/style/index.ts diff --git a/components/layout/index.tsx b/components/layout/index.ts similarity index 100% rename from components/layout/index.tsx rename to components/layout/index.ts diff --git a/components/layout/style/index.tsx b/components/layout/style/index.ts similarity index 100% rename from components/layout/style/index.tsx rename to components/layout/style/index.ts diff --git a/components/list/style/index.tsx b/components/list/style/index.ts similarity index 100% rename from components/list/style/index.tsx rename to components/list/style/index.ts diff --git a/components/locale-provider/LocaleReceiver.tsx b/components/locale-provider/LocaleReceiver.ts similarity index 100% rename from components/locale-provider/LocaleReceiver.tsx rename to components/locale-provider/LocaleReceiver.ts diff --git a/components/locale/LocaleReceiver.tsx b/components/locale/LocaleReceiver.ts similarity index 97% rename from components/locale/LocaleReceiver.tsx rename to components/locale/LocaleReceiver.ts index 94685af859..1d59fb6350 100644 --- a/components/locale/LocaleReceiver.tsx +++ b/components/locale/LocaleReceiver.ts @@ -2,7 +2,7 @@ import * as React from 'react'; import type { Locale } from '.'; import type { LocaleContextProps } from './context'; import LocaleContext from './context'; -import defaultLocaleData from '../locale/en_US'; +import defaultLocaleData from './en_US'; export type LocaleComponentName = Exclude; diff --git a/components/locale/ar_EG.tsx b/components/locale/ar_EG.ts similarity index 98% rename from components/locale/ar_EG.tsx rename to components/locale/ar_EG.ts index 15bf74aac3..9815f19e5a 100644 --- a/components/locale/ar_EG.tsx +++ b/components/locale/ar_EG.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/ar_EG'; import Calendar from '../calendar/locale/ar_EG'; import DatePicker from '../date-picker/locale/ar_EG'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/ar_EG'; const typeTemplate = 'ليس ${label} من نوع ${type} صالحًا'; diff --git a/components/locale/az_AZ.tsx b/components/locale/az_AZ.ts similarity index 98% rename from components/locale/az_AZ.tsx rename to components/locale/az_AZ.ts index ffcbad7957..a2e9dcf41c 100644 --- a/components/locale/az_AZ.tsx +++ b/components/locale/az_AZ.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/az_AZ'; import Calendar from '../calendar/locale/az_AZ'; import DatePicker from '../date-picker/locale/az_AZ'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/az_AZ'; const typeTemplate = '${label}Hökmlü deyil${type}'; diff --git a/components/locale/bg_BG.tsx b/components/locale/bg_BG.ts similarity index 96% rename from components/locale/bg_BG.tsx rename to components/locale/bg_BG.ts index 0657ad598d..d7d7a0f66c 100644 --- a/components/locale/bg_BG.tsx +++ b/components/locale/bg_BG.ts @@ -1,7 +1,7 @@ import Pagination from 'rc-pagination/lib/locale/bg_BG'; import Calendar from '../calendar/locale/bg_BG'; import DatePicker from '../date-picker/locale/bg_BG'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/bg_BG'; const localeValues: Locale = { diff --git a/components/locale/bn_BD.tsx b/components/locale/bn_BD.ts similarity index 99% rename from components/locale/bn_BD.tsx rename to components/locale/bn_BD.ts index 6052cc7491..c02532f5c6 100644 --- a/components/locale/bn_BD.tsx +++ b/components/locale/bn_BD.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/bn_BD'; import Calendar from '../calendar/locale/bn_BD'; import DatePicker from '../date-picker/locale/bn_BD'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/bn_BD'; const typeTemplate = '${label} টি সঠিক ${type} নয়।'; diff --git a/components/locale/by_BY.tsx b/components/locale/by_BY.ts similarity index 99% rename from components/locale/by_BY.tsx rename to components/locale/by_BY.ts index a152f5872f..976a67da75 100644 --- a/components/locale/by_BY.tsx +++ b/components/locale/by_BY.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/by_BY'; import Calendar from '../calendar/locale/by_BY'; import DatePicker from '../date-picker/locale/by_BY'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/by_BY'; const typeTemplate: string = "${label} не з'яўляецца тыпам ${type}"; diff --git a/components/locale/ca_ES.tsx b/components/locale/ca_ES.ts similarity index 98% rename from components/locale/ca_ES.tsx rename to components/locale/ca_ES.ts index fda4d6f8bc..e9600ab369 100644 --- a/components/locale/ca_ES.tsx +++ b/components/locale/ca_ES.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/ca_ES'; import Calendar from '../calendar/locale/ca_ES'; import DatePicker from '../date-picker/locale/ca_ES'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/ca_ES'; const typeTemplate = '${label} no és un ${type} vàlid'; diff --git a/components/locale/cs_CZ.tsx b/components/locale/cs_CZ.ts similarity index 98% rename from components/locale/cs_CZ.tsx rename to components/locale/cs_CZ.ts index 4347e00bf7..26ad77eb67 100644 --- a/components/locale/cs_CZ.tsx +++ b/components/locale/cs_CZ.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/cs_CZ'; import Calendar from '../calendar/locale/cs_CZ'; import DatePicker from '../date-picker/locale/cs_CZ'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/cs_CZ'; const typeTemplate = '${label} není platný ${type}'; diff --git a/components/locale/da_DK.tsx b/components/locale/da_DK.ts similarity index 97% rename from components/locale/da_DK.tsx rename to components/locale/da_DK.ts index 1a0212c108..39c7d8d122 100644 --- a/components/locale/da_DK.tsx +++ b/components/locale/da_DK.ts @@ -1,7 +1,7 @@ import Pagination from 'rc-pagination/lib/locale/da_DK'; import Calendar from '../calendar/locale/da_DK'; import DatePicker from '../date-picker/locale/da_DK'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/da_DK'; const localeValues: Locale = { diff --git a/components/locale/de_DE.tsx b/components/locale/de_DE.ts similarity index 98% rename from components/locale/de_DE.tsx rename to components/locale/de_DE.ts index 5f98885b88..811e1bac48 100644 --- a/components/locale/de_DE.tsx +++ b/components/locale/de_DE.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/de_DE'; import Calendar from '../calendar/locale/de_DE'; import DatePicker from '../date-picker/locale/de_DE'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/de_DE'; const typeTemplate = '${label} ist nicht gültig. ${type} erwartet'; diff --git a/components/locale/el_GR.tsx b/components/locale/el_GR.ts similarity index 96% rename from components/locale/el_GR.tsx rename to components/locale/el_GR.ts index b42084c692..97a489a416 100644 --- a/components/locale/el_GR.tsx +++ b/components/locale/el_GR.ts @@ -1,7 +1,7 @@ import Pagination from 'rc-pagination/lib/locale/el_GR'; import Calendar from '../calendar/locale/el_GR'; import DatePicker from '../date-picker/locale/el_GR'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/el_GR'; const localeValues: Locale = { diff --git a/components/locale/en_GB.tsx b/components/locale/en_GB.ts similarity index 98% rename from components/locale/en_GB.tsx rename to components/locale/en_GB.ts index 9fb99c031e..ec98560179 100644 --- a/components/locale/en_GB.tsx +++ b/components/locale/en_GB.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/en_GB'; import Calendar from '../calendar/locale/en_GB'; import DatePicker from '../date-picker/locale/en_GB'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/en_GB'; const typeTemplate = '${label} is not a valid ${type}'; diff --git a/components/locale/en_US.tsx b/components/locale/en_US.ts similarity index 98% rename from components/locale/en_US.tsx rename to components/locale/en_US.ts index 02e7425f89..4930671f52 100644 --- a/components/locale/en_US.tsx +++ b/components/locale/en_US.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/en_US'; import Calendar from '../calendar/locale/en_US'; import DatePicker from '../date-picker/locale/en_US'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/en_US'; const typeTemplate = '${label} is not a valid ${type}'; diff --git a/components/locale/es_ES.tsx b/components/locale/es_ES.ts similarity index 98% rename from components/locale/es_ES.tsx rename to components/locale/es_ES.ts index 380c01f31a..e9972bcf78 100644 --- a/components/locale/es_ES.tsx +++ b/components/locale/es_ES.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/es_ES'; import Calendar from '../calendar/locale/es_ES'; import DatePicker from '../date-picker/locale/es_ES'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/es_ES'; const typeTemplate = '${label} no es un ${type} válido'; diff --git a/components/locale/et_EE.tsx b/components/locale/et_EE.ts similarity index 98% rename from components/locale/et_EE.tsx rename to components/locale/et_EE.ts index a37314658c..8c1a44dbff 100644 --- a/components/locale/et_EE.tsx +++ b/components/locale/et_EE.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/et_EE'; import Calendar from '../calendar/locale/et_EE'; import DatePicker from '../date-picker/locale/et_EE'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/et_EE'; const typeTemplate = '${label} ei ole kehtiv ${type}'; diff --git a/components/locale/eu_ES.tsx b/components/locale/eu_ES.ts similarity index 98% rename from components/locale/eu_ES.tsx rename to components/locale/eu_ES.ts index 4231e7a692..84dd73338c 100644 --- a/components/locale/eu_ES.tsx +++ b/components/locale/eu_ES.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/eu_ES'; import Calendar from '../calendar/locale/eu_ES'; import DatePicker from '../date-picker/locale/eu_ES'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/eu_ES'; const typeTemplate = '${label} ez da ${type} balioduna'; diff --git a/components/locale/fa_IR.tsx b/components/locale/fa_IR.ts similarity index 99% rename from components/locale/fa_IR.tsx rename to components/locale/fa_IR.ts index dcfbab5c70..91aa0ec5a4 100644 --- a/components/locale/fa_IR.tsx +++ b/components/locale/fa_IR.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/fa_IR'; import Calendar from '../calendar/locale/fa_IR'; import DatePicker from '../date-picker/locale/fa_IR'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/fa_IR'; const typeTemplate = '${label} از نوع ${type} معتبر نیست'; diff --git a/components/locale/fi_FI.tsx b/components/locale/fi_FI.ts similarity index 96% rename from components/locale/fi_FI.tsx rename to components/locale/fi_FI.ts index 0d5b81cc81..375f8a2ec0 100644 --- a/components/locale/fi_FI.tsx +++ b/components/locale/fi_FI.ts @@ -1,7 +1,7 @@ import Pagination from 'rc-pagination/lib/locale/fi_FI'; import Calendar from '../calendar/locale/fi_FI'; import DatePicker from '../date-picker/locale/fi_FI'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/fi_FI'; const localeValues: Locale = { diff --git a/components/locale/fr_BE.tsx b/components/locale/fr_BE.ts similarity index 99% rename from components/locale/fr_BE.tsx rename to components/locale/fr_BE.ts index df4bb178d5..a3fe0c44d9 100644 --- a/components/locale/fr_BE.tsx +++ b/components/locale/fr_BE.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/fr_BE'; import Calendar from '../calendar/locale/fr_BE'; import DatePicker from '../date-picker/locale/fr_BE'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/fr_BE'; const typeTemplate = "La valeur du champ ${label} n'est pas valide pour le type ${type}"; diff --git a/components/locale/fr_CA.tsx b/components/locale/fr_CA.ts similarity index 99% rename from components/locale/fr_CA.tsx rename to components/locale/fr_CA.ts index cc33da33e2..dccab1c614 100644 --- a/components/locale/fr_CA.tsx +++ b/components/locale/fr_CA.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/fr_CA'; import Calendar from '../calendar/locale/fr_CA'; import DatePicker from '../date-picker/locale/fr_CA'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/fr_CA'; const typeTemplate = "La valeur du champ ${label} n'est pas valide pour le type ${type}"; diff --git a/components/locale/fr_FR.tsx b/components/locale/fr_FR.ts similarity index 99% rename from components/locale/fr_FR.tsx rename to components/locale/fr_FR.ts index 5720a6d6bc..c88bc6d184 100644 --- a/components/locale/fr_FR.tsx +++ b/components/locale/fr_FR.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/fr_FR'; import Calendar from '../calendar/locale/fr_FR'; import DatePicker from '../date-picker/locale/fr_FR'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/fr_FR'; const typeTemplate = "La valeur du champ ${label} n'est pas valide pour le type ${type}"; diff --git a/components/locale/ga_IE.tsx b/components/locale/ga_IE.ts similarity index 98% rename from components/locale/ga_IE.tsx rename to components/locale/ga_IE.ts index 5288deb3f2..90b0aab579 100644 --- a/components/locale/ga_IE.tsx +++ b/components/locale/ga_IE.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/ga_IE'; import Calendar from '../calendar/locale/ga_IE'; import DatePicker from '../date-picker/locale/ga_IE'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/ga_IE'; const typeTemplate = '${label} is not a valid ${type}'; diff --git a/components/locale/gl_ES.tsx b/components/locale/gl_ES.ts similarity index 98% rename from components/locale/gl_ES.tsx rename to components/locale/gl_ES.ts index 14bbe03828..1b97efa29e 100644 --- a/components/locale/gl_ES.tsx +++ b/components/locale/gl_ES.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/gl_ES'; import Calendar from '../calendar/locale/gl_ES'; import DatePicker from '../date-picker/locale/gl_ES'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/gl_ES'; const typeTemplate = '${label} non é un ${type} válido'; diff --git a/components/locale/he_IL.tsx b/components/locale/he_IL.ts similarity index 98% rename from components/locale/he_IL.tsx rename to components/locale/he_IL.ts index e803a08cf6..4faf0785f8 100644 --- a/components/locale/he_IL.tsx +++ b/components/locale/he_IL.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/he_IL'; import Calendar from '../calendar/locale/he_IL'; import DatePicker from '../date-picker/locale/he_IL'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/he_IL'; const typeTemplate = '${label} הוא לא ${type} תקין'; diff --git a/components/locale/hi_IN.tsx b/components/locale/hi_IN.ts similarity index 99% rename from components/locale/hi_IN.tsx rename to components/locale/hi_IN.ts index 3672a2066c..f4a293e28f 100644 --- a/components/locale/hi_IN.tsx +++ b/components/locale/hi_IN.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/hi_IN'; import Calendar from '../calendar/locale/hi_IN'; import DatePicker from '../date-picker/locale/hi_IN'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/hi_IN'; const typeTemplate = '${label} मान्य ${type} नहीं है'; diff --git a/components/locale/hr_HR.tsx b/components/locale/hr_HR.ts similarity index 98% rename from components/locale/hr_HR.tsx rename to components/locale/hr_HR.ts index 1d6f31b9b2..19e4f9ca27 100644 --- a/components/locale/hr_HR.tsx +++ b/components/locale/hr_HR.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/hr_HR'; import Calendar from '../calendar/locale/hr_HR'; import DatePicker from '../date-picker/locale/hr_HR'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/hr_HR'; const typeTemplate = '${label} nije valjan ${type}'; diff --git a/components/locale/hu_HU.tsx b/components/locale/hu_HU.ts similarity index 96% rename from components/locale/hu_HU.tsx rename to components/locale/hu_HU.ts index e670cb6ae2..4570259e70 100644 --- a/components/locale/hu_HU.tsx +++ b/components/locale/hu_HU.ts @@ -1,7 +1,7 @@ import Pagination from 'rc-pagination/lib/locale/hu_HU'; import Calendar from '../calendar/locale/hu_HU'; import DatePicker from '../date-picker/locale/hu_HU'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/hu_HU'; const localeValues: Locale = { diff --git a/components/locale/hy_AM.tsx b/components/locale/hy_AM.ts similarity index 98% rename from components/locale/hy_AM.tsx rename to components/locale/hy_AM.ts index ef998efafe..332e066f3e 100644 --- a/components/locale/hy_AM.tsx +++ b/components/locale/hy_AM.ts @@ -1,5 +1,5 @@ import type { PickerLocale } from '../date-picker/generatePicker'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; const datePickerLocale: PickerLocale = { lang: { diff --git a/components/locale/id_ID.tsx b/components/locale/id_ID.ts similarity index 96% rename from components/locale/id_ID.tsx rename to components/locale/id_ID.ts index c8016dcccb..4b7e718909 100644 --- a/components/locale/id_ID.tsx +++ b/components/locale/id_ID.ts @@ -1,7 +1,7 @@ import Pagination from 'rc-pagination/lib/locale/id_ID'; import Calendar from '../calendar/locale/id_ID'; import DatePicker from '../date-picker/locale/id_ID'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/id_ID'; const localeValues: Locale = { diff --git a/components/locale/is_IS.tsx b/components/locale/is_IS.ts similarity index 96% rename from components/locale/is_IS.tsx rename to components/locale/is_IS.ts index 7563a6ddeb..b33a2cddea 100644 --- a/components/locale/is_IS.tsx +++ b/components/locale/is_IS.ts @@ -1,7 +1,7 @@ import Pagination from 'rc-pagination/lib/locale/is_IS'; import Calendar from '../calendar/locale/is_IS'; import DatePicker from '../date-picker/locale/is_IS'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/is_IS'; const localeValues: Locale = { diff --git a/components/locale/it_IT.tsx b/components/locale/it_IT.ts similarity index 98% rename from components/locale/it_IT.tsx rename to components/locale/it_IT.ts index 04265542a7..536a630a69 100644 --- a/components/locale/it_IT.tsx +++ b/components/locale/it_IT.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/it_IT'; import Calendar from '../calendar/locale/it_IT'; import DatePicker from '../date-picker/locale/it_IT'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/it_IT'; const typeTemplate = ' ${label} non è un ${type} valido'; diff --git a/components/locale/ja_JP.tsx b/components/locale/ja_JP.ts similarity index 98% rename from components/locale/ja_JP.tsx rename to components/locale/ja_JP.ts index 6bb07893c8..86bd8971f1 100644 --- a/components/locale/ja_JP.tsx +++ b/components/locale/ja_JP.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/ja_JP'; import Calendar from '../calendar/locale/ja_JP'; import DatePicker from '../date-picker/locale/ja_JP'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/ja_JP'; const typeTemplate = '${label}は有効な${type}ではありません'; diff --git a/components/locale/ka_GE.tsx b/components/locale/ka_GE.ts similarity index 99% rename from components/locale/ka_GE.tsx rename to components/locale/ka_GE.ts index 5f21c382df..44b9af822c 100644 --- a/components/locale/ka_GE.tsx +++ b/components/locale/ka_GE.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/ka_GE'; import Calendar from '../calendar/locale/ka_GE'; import DatePicker from '../date-picker/locale/ka_GE'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/ka_GE'; const typeTemplate = '${label} არ არის სწორი ${type}'; diff --git a/components/locale/kk_KZ.tsx b/components/locale/kk_KZ.ts similarity index 99% rename from components/locale/kk_KZ.tsx rename to components/locale/kk_KZ.ts index 4b7421e967..ea81fd108c 100644 --- a/components/locale/kk_KZ.tsx +++ b/components/locale/kk_KZ.ts @@ -3,7 +3,7 @@ import Pagination from 'rc-pagination/lib/locale/kk_KZ'; import Calendar from '../calendar/locale/kk_KZ'; import DatePicker from '../date-picker/locale/kk_KZ'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/kk_KZ'; const typeTemplate: string = '${label} ${type} типі емес'; diff --git a/components/locale/km_KH.tsx b/components/locale/km_KH.ts similarity index 98% rename from components/locale/km_KH.tsx rename to components/locale/km_KH.ts index efde3600f7..fb92c89a43 100644 --- a/components/locale/km_KH.tsx +++ b/components/locale/km_KH.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/km_KH'; import Calendar from '../calendar/locale/km_KH'; import DatePicker from '../date-picker/locale/km_KH'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/km_KH'; const typeTemplate = '${label} is not a valid ${type}'; diff --git a/components/locale/kmr_IQ.tsx b/components/locale/kmr_IQ.ts similarity index 96% rename from components/locale/kmr_IQ.tsx rename to components/locale/kmr_IQ.ts index a13ac71660..d92b74bda2 100644 --- a/components/locale/kmr_IQ.tsx +++ b/components/locale/kmr_IQ.ts @@ -1,7 +1,7 @@ import Pagination from 'rc-pagination/lib/locale/kmr_IQ'; import Calendar from '../calendar/locale/kmr_IQ'; import DatePicker from '../date-picker/locale/kmr_IQ'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/kmr_IQ'; const localeValues: Locale = { diff --git a/components/locale/kn_IN.tsx b/components/locale/kn_IN.ts similarity index 97% rename from components/locale/kn_IN.tsx rename to components/locale/kn_IN.ts index c58533ce93..df84c67fe1 100644 --- a/components/locale/kn_IN.tsx +++ b/components/locale/kn_IN.ts @@ -1,7 +1,7 @@ import Pagination from 'rc-pagination/lib/locale/kn_IN'; import Calendar from '../calendar/locale/kn_IN'; import DatePicker from '../date-picker/locale/kn_IN'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/kn_IN'; const localeValues: Locale = { diff --git a/components/locale/ko_KR.tsx b/components/locale/ko_KR.ts similarity index 98% rename from components/locale/ko_KR.tsx rename to components/locale/ko_KR.ts index 1009cd74fb..728a7afc36 100644 --- a/components/locale/ko_KR.tsx +++ b/components/locale/ko_KR.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/ko_KR'; import Calendar from '../calendar/locale/ko_KR'; import DatePicker from '../date-picker/locale/ko_KR'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/ko_KR'; const typeTemplate = '${label} 유효하지 않은 ${type}'; diff --git a/components/locale/ku_IQ.tsx b/components/locale/ku_IQ.ts similarity index 96% rename from components/locale/ku_IQ.tsx rename to components/locale/ku_IQ.ts index 126d27d97a..5605b6db26 100755 --- a/components/locale/ku_IQ.tsx +++ b/components/locale/ku_IQ.ts @@ -1,7 +1,7 @@ import Pagination from 'rc-pagination/lib/locale/kmr_IQ'; import Calendar from '../calendar/locale/kmr_IQ'; import DatePicker from '../date-picker/locale/kmr_IQ'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/kmr_IQ'; // please use antd/locale/kmr_IQ instead diff --git a/components/locale/lt_LT.tsx b/components/locale/lt_LT.ts similarity index 98% rename from components/locale/lt_LT.tsx rename to components/locale/lt_LT.ts index 2ac9c50336..d467461990 100644 --- a/components/locale/lt_LT.tsx +++ b/components/locale/lt_LT.ts @@ -3,7 +3,7 @@ import Pagination from 'rc-pagination/lib/locale/lt_LT'; import Calendar from '../calendar/locale/lt_LT'; import DatePicker from '../date-picker/locale/lt_LT'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/lt_LT'; const typeTemplate: string = '${label} neatitinka tipo ${type}'; diff --git a/components/locale/lv_LV.tsx b/components/locale/lv_LV.ts similarity index 96% rename from components/locale/lv_LV.tsx rename to components/locale/lv_LV.ts index 500a3848e2..7ce3b91a50 100644 --- a/components/locale/lv_LV.tsx +++ b/components/locale/lv_LV.ts @@ -1,7 +1,7 @@ import Pagination from 'rc-pagination/lib/locale/lv_LV'; import Calendar from '../calendar/locale/lv_LV'; import DatePicker from '../date-picker/locale/lv_LV'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/lv_LV'; const localeValues: Locale = { diff --git a/components/locale/mk_MK.tsx b/components/locale/mk_MK.ts similarity index 97% rename from components/locale/mk_MK.tsx rename to components/locale/mk_MK.ts index 260e468449..ddf41f3fbb 100644 --- a/components/locale/mk_MK.tsx +++ b/components/locale/mk_MK.ts @@ -1,7 +1,7 @@ import Pagination from 'rc-pagination/lib/locale/mk_MK'; import Calendar from '../calendar/locale/mk_MK'; import DatePicker from '../date-picker/locale/mk_MK'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/mk_MK'; const localeValues: Locale = { diff --git a/components/locale/ml_IN.tsx b/components/locale/ml_IN.ts similarity index 99% rename from components/locale/ml_IN.tsx rename to components/locale/ml_IN.ts index 6c31108856..8978ef3806 100644 --- a/components/locale/ml_IN.tsx +++ b/components/locale/ml_IN.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/ml_IN'; import Calendar from '../calendar/locale/ml_IN'; import DatePicker from '../date-picker/locale/ml_IN'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/ml_IN'; const typeTemplate = '${label} അസാധുവായ ${type} ആണ്'; diff --git a/components/locale/mn_MN.tsx b/components/locale/mn_MN.ts similarity index 96% rename from components/locale/mn_MN.tsx rename to components/locale/mn_MN.ts index 308300eb22..6e94cd1fa8 100644 --- a/components/locale/mn_MN.tsx +++ b/components/locale/mn_MN.ts @@ -1,7 +1,7 @@ import Pagination from 'rc-pagination/lib/locale/mn_MN'; import Calendar from '../calendar/locale/mn_MN'; import DatePicker from '../date-picker/locale/mn_MN'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/mn_MN'; const localeValues: Locale = { diff --git a/components/locale/ms_MY.tsx b/components/locale/ms_MY.ts similarity index 97% rename from components/locale/ms_MY.tsx rename to components/locale/ms_MY.ts index 6e31753203..43d5af428a 100644 --- a/components/locale/ms_MY.tsx +++ b/components/locale/ms_MY.ts @@ -1,7 +1,7 @@ import Pagination from 'rc-pagination/lib/locale/ms_MY'; import Calendar from '../calendar/locale/ms_MY'; import DatePicker from '../date-picker/locale/ms_MY'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/ms_MY'; const localeValues: Locale = { diff --git a/components/locale/nb_NO.tsx b/components/locale/nb_NO.ts similarity index 98% rename from components/locale/nb_NO.tsx rename to components/locale/nb_NO.ts index 4d91225c50..53d89aea42 100644 --- a/components/locale/nb_NO.tsx +++ b/components/locale/nb_NO.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/nb_NO'; import Calendar from '../calendar/locale/nb_NO'; import DatePicker from '../date-picker/locale/nb_NO'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/nb_NO'; const typeTemplate = '${label} er ikke et gyldig ${type}'; diff --git a/components/locale/ne_NP.tsx b/components/locale/ne_NP.ts similarity index 97% rename from components/locale/ne_NP.tsx rename to components/locale/ne_NP.ts index 04020cb355..ae1377d308 100644 --- a/components/locale/ne_NP.tsx +++ b/components/locale/ne_NP.ts @@ -1,7 +1,7 @@ import Pagination from 'rc-pagination/lib/locale/en_US'; import Calendar from '../calendar/locale/en_US'; import DatePicker from '../date-picker/locale/en_US'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/en_US'; const localeValues: Locale = { diff --git a/components/locale/nl_BE.tsx b/components/locale/nl_BE.ts similarity index 98% rename from components/locale/nl_BE.tsx rename to components/locale/nl_BE.ts index 1fcccf660e..20095581c3 100644 --- a/components/locale/nl_BE.tsx +++ b/components/locale/nl_BE.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/nl_BE'; import Calendar from '../calendar/locale/nl_BE'; import DatePicker from '../date-picker/locale/nl_BE'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/nl_BE'; const typeTemplate = '${label} is geen geldige ${type}'; diff --git a/components/locale/nl_NL.tsx b/components/locale/nl_NL.ts similarity index 98% rename from components/locale/nl_NL.tsx rename to components/locale/nl_NL.ts index dd2a857897..15ef5e9355 100644 --- a/components/locale/nl_NL.tsx +++ b/components/locale/nl_NL.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/nl_NL'; import Calendar from '../calendar/locale/nl_NL'; import DatePicker from '../date-picker/locale/nl_NL'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/nl_NL'; const typeTemplate = '${label} is geen geldige ${type}'; diff --git a/components/locale/pl_PL.tsx b/components/locale/pl_PL.ts similarity index 98% rename from components/locale/pl_PL.tsx rename to components/locale/pl_PL.ts index 1c09472df3..b118f1fd07 100644 --- a/components/locale/pl_PL.tsx +++ b/components/locale/pl_PL.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/pl_PL'; import Calendar from '../calendar/locale/pl_PL'; import DatePicker from '../date-picker/locale/pl_PL'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/pl_PL'; const typeTemplate = '${label} nie posiada poprawnej wartości dla typu ${type}'; diff --git a/components/locale/pt_BR.tsx b/components/locale/pt_BR.ts similarity index 98% rename from components/locale/pt_BR.tsx rename to components/locale/pt_BR.ts index 4622829b63..c3e16deaf7 100644 --- a/components/locale/pt_BR.tsx +++ b/components/locale/pt_BR.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/pt_BR'; import Calendar from '../calendar/locale/pt_BR'; import DatePicker from '../date-picker/locale/pt_BR'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/pt_BR'; const typeTemplate = '${label} não é um ${type} válido'; diff --git a/components/locale/pt_PT.tsx b/components/locale/pt_PT.ts similarity index 98% rename from components/locale/pt_PT.tsx rename to components/locale/pt_PT.ts index 82f6c204e6..a5cbad71d1 100644 --- a/components/locale/pt_PT.tsx +++ b/components/locale/pt_PT.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/pt_PT'; import Calendar from '../calendar/locale/pt_PT'; import DatePicker from '../date-picker/locale/pt_PT'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/pt_PT'; const typeTemplate = '${label} não é um ${type} válido'; diff --git a/components/locale/ro_RO.tsx b/components/locale/ro_RO.ts similarity index 98% rename from components/locale/ro_RO.tsx rename to components/locale/ro_RO.ts index 8342ca8f27..7821817006 100644 --- a/components/locale/ro_RO.tsx +++ b/components/locale/ro_RO.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/ro_RO'; import Calendar from '../calendar/locale/ro_RO'; import DatePicker from '../date-picker/locale/ro_RO'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/ro_RO'; const typeTemplate = '${label} nu conține tipul corect (${type})'; diff --git a/components/locale/ru_RU.tsx b/components/locale/ru_RU.ts similarity index 99% rename from components/locale/ru_RU.tsx rename to components/locale/ru_RU.ts index 2ba2752d1f..1ffcbdbeec 100644 --- a/components/locale/ru_RU.tsx +++ b/components/locale/ru_RU.ts @@ -3,7 +3,7 @@ import Pagination from 'rc-pagination/lib/locale/ru_RU'; import Calendar from '../calendar/locale/ru_RU'; import DatePicker from '../date-picker/locale/ru_RU'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/ru_RU'; const typeTemplate: string = '${label} не является типом ${type}'; diff --git a/components/locale/si_LK.tsx b/components/locale/si_LK.ts similarity index 99% rename from components/locale/si_LK.tsx rename to components/locale/si_LK.ts index 36e9590d95..9e88aaf057 100644 --- a/components/locale/si_LK.tsx +++ b/components/locale/si_LK.ts @@ -3,7 +3,7 @@ import Pagination from 'rc-pagination/lib/locale/si_LK'; import DatePicker from '../date-picker/locale/si_LK'; import TimePicker from '../time-picker/locale/si_LK'; import Calendar from '../calendar/locale/si_LK'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; const typeTemplate = '${label} වලංගු ${type} ක් නොවේ'; diff --git a/components/locale/sk_SK.tsx b/components/locale/sk_SK.ts similarity index 98% rename from components/locale/sk_SK.tsx rename to components/locale/sk_SK.ts index 113e0f869b..0ddcf14b72 100644 --- a/components/locale/sk_SK.tsx +++ b/components/locale/sk_SK.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/sk_SK'; import Calendar from '../calendar/locale/sk_SK'; import DatePicker from '../date-picker/locale/sk_SK'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/sk_SK'; const typeTemplate = '${label} nie je platný ${type}'; diff --git a/components/locale/sl_SI.tsx b/components/locale/sl_SI.ts similarity index 96% rename from components/locale/sl_SI.tsx rename to components/locale/sl_SI.ts index a1328a71ae..8fb10e6a1b 100644 --- a/components/locale/sl_SI.tsx +++ b/components/locale/sl_SI.ts @@ -1,7 +1,7 @@ import Pagination from 'rc-pagination/lib/locale/sl_SI'; import Calendar from '../calendar/locale/sl_SI'; import DatePicker from '../date-picker/locale/sl_SI'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/sl_SI'; const localeValues: Locale = { diff --git a/components/locale/sr_RS.tsx b/components/locale/sr_RS.ts similarity index 98% rename from components/locale/sr_RS.tsx rename to components/locale/sr_RS.ts index f0f635eab7..56d4fdc6f0 100644 --- a/components/locale/sr_RS.tsx +++ b/components/locale/sr_RS.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/sr_RS'; import Calendar from '../calendar/locale/sr_RS'; import DatePicker from '../date-picker/locale/sr_RS'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/sr_RS'; const typeTemplate = '${label} nije važeći ${type}'; diff --git a/components/locale/sv_SE.tsx b/components/locale/sv_SE.ts similarity index 98% rename from components/locale/sv_SE.tsx rename to components/locale/sv_SE.ts index 64437c0db5..ae43f69988 100644 --- a/components/locale/sv_SE.tsx +++ b/components/locale/sv_SE.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/sv_SE'; import Calendar from '../calendar/locale/sv_SE'; import DatePicker from '../date-picker/locale/sv_SE'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/sv_SE'; const typeTemplate = '${label} är inte en giltig ${type}'; diff --git a/components/locale/ta_IN.tsx b/components/locale/ta_IN.ts similarity index 98% rename from components/locale/ta_IN.tsx rename to components/locale/ta_IN.ts index 80fa8adfd3..134cac61e0 100644 --- a/components/locale/ta_IN.tsx +++ b/components/locale/ta_IN.ts @@ -1,7 +1,7 @@ import Pagination from 'rc-pagination/lib/locale/ta_IN'; import Calendar from '../calendar/locale/ta_IN'; import DatePicker from '../date-picker/locale/ta_IN'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/ta_IN'; const localeValues: Locale = { diff --git a/components/locale/th_TH.tsx b/components/locale/th_TH.ts similarity index 99% rename from components/locale/th_TH.tsx rename to components/locale/th_TH.ts index d89af49d62..0d3f82a269 100644 --- a/components/locale/th_TH.tsx +++ b/components/locale/th_TH.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/th_TH'; import Calendar from '../calendar/locale/th_TH'; import DatePicker from '../date-picker/locale/th_TH'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/th_TH'; const typeTemplate = '${label} ไม่ใช่ ${type} ที่ถูกต้อง'; diff --git a/components/locale/tk_TK.tsx b/components/locale/tk_TK.ts similarity index 98% rename from components/locale/tk_TK.tsx rename to components/locale/tk_TK.ts index f9a836d16f..900b04206a 100644 --- a/components/locale/tk_TK.tsx +++ b/components/locale/tk_TK.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/tk_TK'; import Calendar from '../calendar/locale/tk_TK'; import DatePicker from '../date-picker/locale/tk_TK'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/tk_TK'; const typeTemplate: string = '${label} ${type} görnüşinde däl'; diff --git a/components/locale/tr_TR.tsx b/components/locale/tr_TR.ts similarity index 98% rename from components/locale/tr_TR.tsx rename to components/locale/tr_TR.ts index 20614567c3..613c2fb192 100644 --- a/components/locale/tr_TR.tsx +++ b/components/locale/tr_TR.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/tr_TR'; import Calendar from '../calendar/locale/tr_TR'; import DatePicker from '../date-picker/locale/tr_TR'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/tr_TR'; const typeTemplate = '${label} geçerli bir ${type} değil'; diff --git a/components/locale/uk_UA.tsx b/components/locale/uk_UA.ts similarity index 99% rename from components/locale/uk_UA.tsx rename to components/locale/uk_UA.ts index 3fe96fc9c9..ff3d99158c 100644 --- a/components/locale/uk_UA.tsx +++ b/components/locale/uk_UA.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/uk_UA'; import Calendar from '../calendar/locale/uk_UA'; import DatePicker from '../date-picker/locale/uk_UA'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/uk_UA'; const typeTemplate = '${label} не є типом ${type}'; diff --git a/components/locale/ur_PK.tsx b/components/locale/ur_PK.ts similarity index 99% rename from components/locale/ur_PK.tsx rename to components/locale/ur_PK.ts index 97dfa5ecd5..753a11cbee 100644 --- a/components/locale/ur_PK.tsx +++ b/components/locale/ur_PK.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/ur_PK'; import Calendar from '../calendar/locale/ur_PK'; import DatePicker from '../date-picker/locale/ur_PK'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/ur_PK'; const typeTemplate = '${label} درست نہیں ہے ${type}'; diff --git a/components/locale/vi_VN.tsx b/components/locale/vi_VN.ts similarity index 96% rename from components/locale/vi_VN.tsx rename to components/locale/vi_VN.ts index 1bbca71e5a..a0363e3f82 100644 --- a/components/locale/vi_VN.tsx +++ b/components/locale/vi_VN.ts @@ -1,7 +1,7 @@ import Pagination from 'rc-pagination/lib/locale/vi_VN'; import Calendar from '../calendar/locale/vi_VN'; import DatePicker from '../date-picker/locale/vi_VN'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/vi_VN'; const localeValues: Locale = { diff --git a/components/locale/zh_CN.tsx b/components/locale/zh_CN.ts similarity index 98% rename from components/locale/zh_CN.tsx rename to components/locale/zh_CN.ts index 30eec8848b..0c28e38d31 100644 --- a/components/locale/zh_CN.tsx +++ b/components/locale/zh_CN.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/zh_CN'; import Calendar from '../calendar/locale/zh_CN'; import DatePicker from '../date-picker/locale/zh_CN'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/zh_CN'; const typeTemplate = '${label}不是一个有效的${type}'; diff --git a/components/locale/zh_HK.tsx b/components/locale/zh_HK.ts similarity index 98% rename from components/locale/zh_HK.tsx rename to components/locale/zh_HK.ts index 6820c7922d..60dbefdbd2 100644 --- a/components/locale/zh_HK.tsx +++ b/components/locale/zh_HK.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/zh_TW'; import Calendar from '../calendar/locale/zh_TW'; import DatePicker from '../date-picker/locale/zh_TW'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/zh_TW'; const typeTemplate = '${label}不是一個有效的${type}'; diff --git a/components/locale/zh_TW.tsx b/components/locale/zh_TW.ts similarity index 98% rename from components/locale/zh_TW.tsx rename to components/locale/zh_TW.ts index 7a817c96a5..babd48ebba 100644 --- a/components/locale/zh_TW.tsx +++ b/components/locale/zh_TW.ts @@ -2,7 +2,7 @@ import Pagination from 'rc-pagination/lib/locale/zh_TW'; import Calendar from '../calendar/locale/zh_TW'; import DatePicker from '../date-picker/locale/zh_TW'; -import type { Locale } from '../locale'; +import type { Locale } from '.'; import TimePicker from '../time-picker/locale/zh_TW'; const typeTemplate = '${label}不是一個有效的${type}'; diff --git a/components/mentions/style/index.tsx b/components/mentions/style/index.ts similarity index 100% rename from components/mentions/style/index.tsx rename to components/mentions/style/index.ts diff --git a/components/upload/style/dragger.tsx b/components/upload/style/dragger.ts similarity index 100% rename from components/upload/style/dragger.tsx rename to components/upload/style/dragger.ts diff --git a/components/upload/style/index.tsx b/components/upload/style/index.ts similarity index 100% rename from components/upload/style/index.tsx rename to components/upload/style/index.ts diff --git a/components/upload/style/list.tsx b/components/upload/style/list.ts similarity index 100% rename from components/upload/style/list.tsx rename to components/upload/style/list.ts diff --git a/components/upload/style/motion.tsx b/components/upload/style/motion.ts similarity index 100% rename from components/upload/style/motion.tsx rename to components/upload/style/motion.ts diff --git a/components/upload/style/picture.tsx b/components/upload/style/picture.ts similarity index 100% rename from components/upload/style/picture.tsx rename to components/upload/style/picture.ts diff --git a/components/upload/style/rtl.tsx b/components/upload/style/rtl.ts similarity index 100% rename from components/upload/style/rtl.tsx rename to components/upload/style/rtl.ts diff --git a/components/version/index.tsx b/components/version/index.ts similarity index 100% rename from components/version/index.tsx rename to components/version/index.ts diff --git a/index-with-locales.js b/index-with-locales.js index 696d0cf7a0..16ef9d660e 100644 --- a/index-with-locales.js +++ b/index-with-locales.js @@ -1,11 +1,11 @@ const antd = require('./components'); -const req = require.context('./components', true, /^\.\/locale\/.+_.+\.tsx$/); +const req = require.context('./components', true, /^\.\/locale\/.+_.+\.tsx?$/); antd.locales = {}; req.keys().forEach((mod) => { - const matches = mod.match(/\/([^/]+).tsx$/); + const matches = mod.match(/\/([^/]+).tsx?$/); antd.locales[matches[1]] = req(mod).default; });