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 24e48be2c80c..d196b1137325 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 6a83aa215da3..b11cd6319f1a 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 f1dd3f78a661..ba3fb8f330d9 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 509969d285ce..9f38971117cf 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 94685af859b6..1d59fb6350d0 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 15bf74aac389..9815f19e5a7f 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 ffcbad79572e..a2e9dcf41c29 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 0657ad598d47..d7d7a0f66cb7 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 6052cc7491e7..c02532f5c61b 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 a152f5872f6a..976a67da75b5 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 fda4d6f8bc7a..e9600ab36944 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 4347e00bf78a..26ad77eb6714 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 1a0212c108e0..39c7d8d122c6 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 5f98885b88c4..811e1bac483b 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 b42084c6923c..97a489a41699 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 9fb99c031e73..ec985601791b 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 02e7425f8913..4930671f52a6 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 380c01f31a62..e9972bcf78a7 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 a37314658c9d..8c1a44dbffc9 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 4231e7a692c0..84dd73338c49 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 dcfbab5c7068..91aa0ec5a4dc 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 0d5b81cc8158..375f8a2ec008 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 df4bb178d5c6..a3fe0c44d9aa 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 cc33da33e2c7..dccab1c614eb 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 5720a6d6bc2d..c88bc6d184ca 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 5288deb3f27d..90b0aab57938 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 14bbe0382829..1b97efa29ef4 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 e803a08cf6d8..4faf0785f864 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 3672a2066c9f..f4a293e28f75 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 1d6f31b9b295..19e4f9ca2789 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 e670cb6ae29a..4570259e70df 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 ef998efafeb2..332e066f3e63 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 c8016dcccb33..4b7e718909e8 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 7563a6ddeb91..b33a2cddea40 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 04265542a7e0..536a630a699c 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 6bb07893c830..86bd8971f163 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 5f21c382df4b..44b9af822c95 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 4b7421e967f2..ea81fd108c33 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 efde3600f771..fb92c89a43e0 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 a13ac71660ec..d92b74bda267 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 c58533ce93bd..df84c67fe133 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 1009cd74fb4c..728a7afc363b 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 126d27d97a84..5605b6db260a 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 2ac9c50336e1..d467461990f3 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 500a3848e202..7ce3b91a507c 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 260e468449b1..ddf41f3fbbe7 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 6c3110885610..8978ef38069f 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 308300eb22aa..6e94cd1fa8e3 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 6e31753203b0..43d5af428a3d 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 4d91225c5061..53d89aea4203 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 04020cb355e5..ae1377d3081a 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 1fcccf660e4a..20095581c3d6 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 dd2a857897a8..15ef5e93557c 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 1c09472df3e1..b118f1fd072f 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 4622829b637c..c3e16deaf7d5 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 82f6c204e6fa..a5cbad71d1bb 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 8342ca8f2722..782181700679 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 2ba2752d1fb0..1ffcbdbeecb0 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 36e9590d9580..9e88aaf05726 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 113e0f869b53..0ddcf14b72ec 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 a1328a71aee1..8fb10e6a1b47 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 f0f635eab72c..56d4fdc6f0fc 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 64437c0db5d2..ae43f6998864 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 80fa8adfd30a..134cac61e0a7 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 d89af49d621a..0d3f82a26955 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 f9a836d16fbc..900b04206aa4 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 20614567c334..613c2fb192c8 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 3fe96fc9c93f..ff3d99158cfb 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 97dfa5ecd5a4..753a11cbee77 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 1bbca71e5a18..a0363e3f8242 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 30eec8848bbe..0c28e38d318a 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 6820c7922d40..60dbefdbd20f 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 7a817c96a5dd..babd48ebbad5 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 696d0cf7a050..16ef9d660e4d 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; });