@fle-ui/next 1.0.0-alpha.2 → 1.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.antd-tools.config.js +195 -0
- package/.editorconfig +16 -0
- package/.eslintignore +31 -0
- package/.fatherrc.ts +4 -0
- package/.prettierignore +1 -0
- package/.umirc.ts +0 -53
- package/README.md +8 -2
- package/components/_util/ActionButton.tsx +108 -0
- package/components/_util/__tests__/easings.test.js +13 -0
- package/components/_util/__tests__/getScroll.test.js +57 -0
- package/components/_util/__tests__/getScrollNode.test.ts +9 -0
- package/components/_util/__tests__/responsiveObserve.test.js +14 -0
- package/components/_util/__tests__/scrollTo.test.js +66 -0
- package/components/_util/__tests__/transButton.test.js +12 -0
- package/components/_util/__tests__/unreachableException.test.js +8 -0
- package/components/_util/__tests__/useSyncState.test.js +26 -0
- package/components/_util/__tests__/util.test.js +225 -0
- package/components/_util/__tests__/wave.test.js +151 -0
- package/components/_util/colors.ts +22 -0
- package/components/_util/devWarning.ts +7 -0
- package/components/_util/easings.ts +10 -0
- package/components/_util/getDataOrAriaProps.ts +11 -0
- package/components/_util/getRenderPropValue.ts +18 -0
- package/components/_util/getScroll.tsx +27 -0
- package/components/_util/hooks/useFlexGapSupport.ts +11 -0
- package/components/_util/hooks/useForceUpdate.ts +6 -0
- package/components/_util/hooks/usePatchElement.tsx +21 -0
- package/components/_util/hooks/useSyncState.ts +18 -0
- package/components/_util/isNumeric.ts +3 -0
- package/components/_util/motion.tsx +35 -0
- package/components/_util/raf.ts +38 -0
- package/components/_util/reactNode.ts +24 -0
- package/components/_util/responsiveObserve.ts +74 -0
- package/components/_util/scrollTo.ts +38 -0
- package/components/_util/styleChecker.tsx +41 -0
- package/components/_util/throttleByAnimationFrame.tsx +50 -0
- package/components/_util/transButton.tsx +72 -0
- package/components/_util/type.ts +13 -0
- package/components/_util/unreachableException.ts +5 -0
- package/components/_util/wave.tsx +233 -0
- package/components/affix/affix.md +75 -0
- package/components/affix/demo/basic.tsx +29 -0
- package/components/affix/demo/on-change.tsx +17 -0
- package/components/affix/demo/target.tsx +22 -0
- package/components/affix/index.tsx +17 -0
- package/components/affix/style/index.less +4 -0
- package/components/affix/style/index.tsx +1 -0
- package/components/alert/alert.md +101 -0
- package/components/alert/components/alert.tsx +13 -0
- package/components/alert/components/errorBoundary.tsx +13 -0
- package/components/alert/demo/action.tsx +66 -0
- package/components/alert/demo/banner.tsx +27 -0
- package/components/alert/demo/basic.tsx +13 -0
- package/components/alert/demo/closable.tsx +32 -0
- package/components/alert/demo/close-text.tsx +13 -0
- package/components/alert/demo/description.tsx +36 -0
- package/components/alert/demo/error-boundary.tsx +33 -0
- package/components/alert/demo/icon.tsx +45 -0
- package/components/alert/demo/loop-banner.tsx +26 -0
- package/components/alert/demo/smooth-closed.tsx +29 -0
- package/components/alert/demo/style.tsx +20 -0
- package/components/alert/index.tsx +15 -0
- package/components/alert/style/index.less +151 -0
- package/components/alert/style/index.tsx +1 -0
- package/components/alert/style/rtl.less +39 -0
- package/components/anchor/anchor.md +66 -0
- package/components/anchor/components/anchor.tsx +15 -0
- package/components/anchor/components/link.tsx +12 -0
- package/components/anchor/demo/basic.tsx +22 -0
- package/components/anchor/demo/click.tsx +32 -0
- package/components/anchor/demo/light.tsx +23 -0
- package/components/anchor/demo/listen.tsx +26 -0
- package/components/anchor/demo/offset.tsx +29 -0
- package/components/anchor/demo/static.tsx +22 -0
- package/components/anchor/index.tsx +17 -0
- package/components/anchor/style/index.less +83 -0
- package/components/anchor/style/index.tsx +1 -0
- package/components/anchor/style/rtl.less +35 -0
- package/components/auto-complete/autoComplete.md +120 -0
- package/components/auto-complete/components/autoComplete.tsx +17 -0
- package/components/auto-complete/components/option.tsx +17 -0
- package/components/auto-complete/demo/basic.tsx +54 -0
- package/components/auto-complete/demo/confirm.tsx +74 -0
- package/components/auto-complete/demo/custom.tsx +38 -0
- package/components/auto-complete/demo/customInput.tsx +51 -0
- package/components/auto-complete/demo/insensitive.tsx +27 -0
- package/components/auto-complete/demo/unconfirm.tsx +68 -0
- package/components/auto-complete/index.tsx +23 -0
- package/components/auto-complete/style/index.less +14 -0
- package/components/auto-complete/style/index.tsx +1 -0
- package/components/avatar/avatar.md +76 -0
- package/components/avatar/demo/badge.tsx +28 -0
- package/components/avatar/demo/basic.tsx +29 -0
- package/components/avatar/demo/dynamic.tsx +56 -0
- package/components/avatar/demo/group.tsx +69 -0
- package/components/avatar/demo/responsive.tsx +19 -0
- package/components/avatar/demo/type.tsx +31 -0
- package/components/avatar/index.less +0 -0
- package/components/avatar/index.tsx +29 -0
- package/components/avatar/style/group.less +17 -0
- package/components/avatar/style/index.less +69 -0
- package/components/avatar/style/index.tsx +1 -0
- package/components/avatar/style/rtl.less +15 -0
- package/components/back-top/backTop.md +48 -0
- package/components/back-top/demo/basic.tsx +20 -0
- package/components/back-top/demo/custom.tsx +35 -0
- package/components/back-top/index.tsx +13 -0
- package/components/back-top/style/index.less +48 -0
- package/components/back-top/style/index.tsx +1 -0
- package/components/back-top/style/responsive.less +11 -0
- package/components/badge/badge.md +89 -0
- package/components/badge/components/badge.tsx +13 -0
- package/components/badge/components/ribbon.tsx +15 -0
- package/components/badge/demo/basic.tsx +26 -0
- package/components/badge/demo/change.tsx +68 -0
- package/components/badge/demo/colorful.tsx +51 -0
- package/components/badge/demo/dot.tsx +23 -0
- package/components/badge/demo/link.tsx +19 -0
- package/components/badge/demo/no-wrapper.tsx +30 -0
- package/components/badge/demo/offset.tsx +19 -0
- package/components/badge/demo/overflow.tsx +28 -0
- package/components/badge/demo/ribbbon.tsx +56 -0
- package/components/badge/demo/size.tsx +22 -0
- package/components/badge/demo/status.tsx +31 -0
- package/components/badge/index.tsx +25 -0
- package/components/badge/style/index.less +267 -0
- package/components/badge/style/index.tsx +1 -0
- package/components/badge/style/ribbon.less +80 -0
- package/components/badge/style/rtl.less +104 -0
- package/components/breadcrumb/breadcrumb.md +157 -0
- package/components/breadcrumb/components/breadcrumb.tsx +12 -0
- package/components/breadcrumb/components/item.tsx +17 -0
- package/components/breadcrumb/components/separator.tsx +20 -0
- package/components/breadcrumb/demo/basic.tsx +24 -0
- package/components/breadcrumb/demo/overlay.tsx +55 -0
- package/components/breadcrumb/demo/router-4/index.less +19 -0
- package/components/breadcrumb/demo/router-4/index.tsx +79 -0
- package/components/breadcrumb/demo/separator-component.tsx +23 -0
- package/components/breadcrumb/demo/separator.tsx +20 -0
- package/components/breadcrumb/demo/withIcon.tsx +25 -0
- package/components/breadcrumb/index.tsx +24 -0
- package/components/breadcrumb/style/index.less +53 -0
- package/components/breadcrumb/style/index.tsx +1 -0
- package/components/breadcrumb/style/rtl.less +29 -0
- package/components/button/LoadingIcon.tsx +50 -0
- package/components/button/button-group.tsx +52 -0
- package/components/button/button.md +121 -0
- package/components/button/button.tsx +307 -0
- package/components/button/demo/basic.tsx +21 -0
- package/components/button/demo/block.tsx +26 -0
- package/components/button/demo/danger.tsx +28 -0
- package/components/button/demo/disabled.tsx +65 -0
- package/components/button/demo/ghost.tsx +26 -0
- package/components/button/demo/icon.tsx +84 -0
- package/components/button/demo/loading.tsx +67 -0
- package/components/button/demo/multiple.tsx +32 -0
- package/components/button/demo/size.tsx +71 -0
- package/components/button/index.tsx +9 -0
- package/components/button/style/index.less +261 -0
- package/components/button/style/index.tsx +1 -0
- package/components/button/style/mixin.less +565 -0
- package/components/button/style/rtl.less +108 -0
- package/components/calendar/Header.tsx +190 -0
- package/components/calendar/calendar.md +100 -0
- package/components/calendar/demo/basic.tsx +16 -0
- package/components/calendar/demo/card.tsx +21 -0
- package/components/calendar/demo/customize-header.tsx +100 -0
- package/components/calendar/demo/notice-calendar.tsx +78 -0
- package/components/calendar/demo/select.tsx +37 -0
- package/components/calendar/generateCalendar.tsx +291 -0
- package/components/calendar/index.tsx +8 -0
- package/components/calendar/locale/ar_EG.tsx +3 -0
- package/components/calendar/locale/az_AZ.tsx +3 -0
- package/components/calendar/locale/bg_BG.tsx +3 -0
- package/components/calendar/locale/bn_BD.tsx +3 -0
- package/components/calendar/locale/by_BY.tsx +3 -0
- package/components/calendar/locale/ca_ES.tsx +3 -0
- package/components/calendar/locale/cs_CZ.tsx +3 -0
- package/components/calendar/locale/da_DK.tsx +3 -0
- package/components/calendar/locale/de_DE.tsx +3 -0
- package/components/calendar/locale/el_GR.tsx +3 -0
- package/components/calendar/locale/en_GB.tsx +3 -0
- package/components/calendar/locale/en_US.tsx +3 -0
- package/components/calendar/locale/es_ES.tsx +3 -0
- package/components/calendar/locale/et_EE.tsx +3 -0
- package/components/calendar/locale/fa_IR.tsx +3 -0
- package/components/calendar/locale/fi_FI.tsx +3 -0
- package/components/calendar/locale/fr_BE.tsx +3 -0
- package/components/calendar/locale/fr_CA.tsx +3 -0
- package/components/calendar/locale/fr_FR.tsx +3 -0
- package/components/calendar/locale/ga_IE.tsx +3 -0
- package/components/calendar/locale/gl_ES.tsx +3 -0
- package/components/calendar/locale/he_IL.tsx +3 -0
- package/components/calendar/locale/hi_IN.tsx +3 -0
- package/components/calendar/locale/hr_HR.tsx +3 -0
- package/components/calendar/locale/hu_HU.tsx +3 -0
- package/components/calendar/locale/id_ID.tsx +3 -0
- package/components/calendar/locale/is_IS.tsx +3 -0
- package/components/calendar/locale/it_IT.tsx +3 -0
- package/components/calendar/locale/ja_JP.tsx +3 -0
- package/components/calendar/locale/ka_GE.tsx +3 -0
- package/components/calendar/locale/kk_KZ.tsx +3 -0
- package/components/calendar/locale/kmr_IQ.tsx +3 -0
- package/components/calendar/locale/kn_IN.tsx +3 -0
- package/components/calendar/locale/ko_KR.tsx +3 -0
- package/components/calendar/locale/lt_LT.tsx +3 -0
- package/components/calendar/locale/lv_LV.tsx +3 -0
- package/components/calendar/locale/mk_MK.tsx +3 -0
- package/components/calendar/locale/ml_IN.tsx +3 -0
- package/components/calendar/locale/mn_MN.tsx +3 -0
- package/components/calendar/locale/ms_MY.tsx +3 -0
- package/components/calendar/locale/nb_NO.tsx +3 -0
- package/components/calendar/locale/nl_BE.tsx +3 -0
- package/components/calendar/locale/nl_NL.tsx +3 -0
- package/components/calendar/locale/pl_PL.tsx +3 -0
- package/components/calendar/locale/pt_BR.tsx +3 -0
- package/components/calendar/locale/pt_PT.tsx +3 -0
- package/components/calendar/locale/ro_RO.tsx +3 -0
- package/components/calendar/locale/ru_RU.tsx +3 -0
- package/components/calendar/locale/sk_SK.tsx +3 -0
- package/components/calendar/locale/sl_SI.tsx +3 -0
- package/components/calendar/locale/sr_RS.tsx +3 -0
- package/components/calendar/locale/sv_SE.tsx +3 -0
- package/components/calendar/locale/ta_IN.tsx +3 -0
- package/components/calendar/locale/th_TH.tsx +3 -0
- package/components/calendar/locale/tr_TR.tsx +3 -0
- package/components/calendar/locale/uk_UA.tsx +3 -0
- package/components/calendar/locale/ur_PK.tsx +3 -0
- package/components/calendar/locale/vi_VN.tsx +3 -0
- package/components/calendar/locale/zh_CN.tsx +3 -0
- package/components/calendar/locale/zh_TW.tsx +3 -0
- package/components/calendar/style/index.less +191 -0
- package/components/calendar/style/index.tsx +1 -0
- package/components/calendar/style/rtl.less +46 -0
- package/components/card/card.md +114 -0
- package/components/card/components/card.tsx +13 -0
- package/components/card/components/grid.tsx +13 -0
- package/components/card/components/meta.tsx +13 -0
- package/components/card/demo/basic.tsx +35 -0
- package/components/card/demo/border.tsx +21 -0
- package/components/card/demo/concise.tsx +19 -0
- package/components/card/demo/embedded.tsx +29 -0
- package/components/card/demo/flexible.tsx +27 -0
- package/components/card/demo/grid.tsx +33 -0
- package/components/card/demo/inside.tsx +27 -0
- package/components/card/demo/more.tsx +42 -0
- package/components/card/demo/preload.tsx +56 -0
- package/components/card/demo/tab.tsx +90 -0
- package/components/card/index.tsx +19 -0
- package/components/card/style/index.less +305 -0
- package/components/card/style/index.tsx +1 -0
- package/components/card/style/size.less +20 -0
- package/components/carousel/carousel.md +65 -0
- package/components/carousel/demo/autoplay.tsx +35 -0
- package/components/carousel/demo/basic.tsx +39 -0
- package/components/carousel/demo/fade.tsx +35 -0
- package/components/carousel/demo/position.tsx +52 -0
- package/components/carousel/index.tsx +23 -0
- package/components/carousel/style/index.less +278 -0
- package/components/carousel/style/index.tsx +1 -0
- package/components/carousel/style/rtl.less +51 -0
- package/components/cascader/cascader.md +138 -0
- package/components/cascader/demo/active.tsx +59 -0
- package/components/cascader/demo/basic.tsx +58 -0
- package/components/cascader/demo/change.tsx +51 -0
- package/components/cascader/demo/changed.tsx +79 -0
- package/components/cascader/demo/custom.tsx +50 -0
- package/components/cascader/demo/customName.tsx +58 -0
- package/components/cascader/demo/defaultValue.tsx +58 -0
- package/components/cascader/demo/disabled.tsx +53 -0
- package/components/cascader/demo/dropdown.tsx +65 -0
- package/components/cascader/demo/move.tsx +63 -0
- package/components/cascader/demo/search.tsx +70 -0
- package/components/cascader/demo/size.tsx +64 -0
- package/components/cascader/index.tsx +15 -0
- package/components/cascader/style/index.less +102 -0
- package/components/cascader/style/index.tsx +1 -0
- package/components/cascader/style/rtl.less +19 -0
- package/components/checkbox/Checkbox.tsx +133 -0
- package/components/checkbox/Group.tsx +161 -0
- package/components/checkbox/checkbox.md +85 -0
- package/components/checkbox/demo/basic.tsx +17 -0
- package/components/checkbox/demo/check-all.tsx +50 -0
- package/components/checkbox/demo/controller.tsx +54 -0
- package/components/checkbox/demo/disabled.tsx +19 -0
- package/components/checkbox/demo/group.tsx +52 -0
- package/components/checkbox/demo/layout.tsx +38 -0
- package/components/checkbox/index.tsx +19 -0
- package/components/checkbox/style/index.less +5 -0
- package/components/checkbox/style/index.tsx +1 -0
- package/components/checkbox/style/mixin.less +229 -0
- package/components/checkbox/style/rtl.less +26 -0
- package/components/collapse/collapse.md +85 -0
- package/components/collapse/components/collapse.tsx +12 -0
- package/components/collapse/components/panel.tsx +15 -0
- package/components/collapse/demo/accordion.tsx +32 -0
- package/components/collapse/demo/arrow.tsx +36 -0
- package/components/collapse/demo/collapsible.tsx +36 -0
- package/components/collapse/demo/custom.tsx +52 -0
- package/components/collapse/demo/extra.tsx +69 -0
- package/components/collapse/demo/ghost.tsx +31 -0
- package/components/collapse/demo/nesting.tsx +40 -0
- package/components/collapse/demo/panel.tsx +36 -0
- package/components/collapse/demo/simple.tsx +33 -0
- package/components/collapse/index.tsx +17 -0
- package/components/collapse/style/index.less +154 -0
- package/components/collapse/style/index.tsx +1 -0
- package/components/collapse/style/rtl.less +42 -0
- package/components/comment/comment.md +51 -0
- package/components/comment/demo/basic.tsx +77 -0
- package/components/comment/demo/matchList.tsx +74 -0
- package/components/comment/index.tsx +14 -0
- package/components/comment/style/index.less +101 -0
- package/components/comment/style/index.tsx +1 -0
- package/components/comment/style/rtl.less +50 -0
- package/components/config-provider/SizeContext.tsx +27 -0
- package/components/config-provider/configProvider.md +176 -0
- package/components/config-provider/context.tsx +116 -0
- package/components/config-provider/cssVariables.tsx +105 -0
- package/components/config-provider/demo/direction.tsx +558 -0
- package/components/config-provider/demo/global.tsx +680 -0
- package/components/config-provider/demo/international.tsx +154 -0
- package/components/config-provider/demo/size.tsx +105 -0
- package/components/config-provider/index.tsx +292 -0
- package/components/config-provider/renderEmpty.tsx +38 -0
- package/components/config-provider/style/index.less +2 -0
- package/components/config-provider/style/index.tsx +1 -0
- package/components/date-picker/PickerButton.tsx +6 -0
- package/components/date-picker/PickerTag.tsx +6 -0
- package/components/date-picker/date-picker.md +246 -0
- package/components/date-picker/demo/basic.tsx +26 -0
- package/components/date-picker/demo/bordered.tsx +26 -0
- package/components/date-picker/demo/date-render.tsx +46 -0
- package/components/date-picker/demo/disabled-date.tsx +75 -0
- package/components/date-picker/demo/disabled.tsx +41 -0
- package/components/date-picker/demo/extra-footer.tsx +30 -0
- package/components/date-picker/demo/format.tsx +51 -0
- package/components/date-picker/demo/presetted-ranges.tsx +40 -0
- package/components/date-picker/demo/range-picker.tsx +24 -0
- package/components/date-picker/demo/select-in-range.tsx +43 -0
- package/components/date-picker/demo/size.jsx +39 -0
- package/components/date-picker/demo/switchable.tsx +37 -0
- package/components/date-picker/demo/time.tsx +34 -0
- package/components/date-picker/generatePicker/generateRangePicker.tsx +118 -0
- package/components/date-picker/generatePicker/generateSinglePicker.tsx +166 -0
- package/components/date-picker/generatePicker/index.tsx +153 -0
- package/components/date-picker/generatePicker/interface.tsx +11 -0
- package/components/date-picker/index.tsx +16 -0
- package/components/date-picker/locale/ar_EG.tsx +24 -0
- package/components/date-picker/locale/az_AZ.tsx +16 -0
- package/components/date-picker/locale/bg_BG.tsx +20 -0
- package/components/date-picker/locale/bn_BD.tsx +27 -0
- package/components/date-picker/locale/by_BY.tsx +23 -0
- package/components/date-picker/locale/ca_ES.tsx +20 -0
- package/components/date-picker/locale/cs_CZ.tsx +20 -0
- package/components/date-picker/locale/da_DK.tsx +20 -0
- package/components/date-picker/locale/de_DE.tsx +20 -0
- package/components/date-picker/locale/el_GR.tsx +20 -0
- package/components/date-picker/locale/en_GB.tsx +27 -0
- package/components/date-picker/locale/en_US.tsx +27 -0
- package/components/date-picker/locale/es_ES.tsx +20 -0
- package/components/date-picker/locale/et_EE.tsx +20 -0
- package/components/date-picker/locale/example.json +40 -0
- package/components/date-picker/locale/fa_IR.tsx +27 -0
- package/components/date-picker/locale/fi_FI.tsx +20 -0
- package/components/date-picker/locale/fr_BE.tsx +20 -0
- package/components/date-picker/locale/fr_CA.tsx +27 -0
- package/components/date-picker/locale/fr_FR.tsx +27 -0
- package/components/date-picker/locale/ga_IE.tsx +27 -0
- package/components/date-picker/locale/gl_ES.tsx +20 -0
- package/components/date-picker/locale/he_IL.tsx +20 -0
- package/components/date-picker/locale/hi_IN.tsx +27 -0
- package/components/date-picker/locale/hr_HR.tsx +27 -0
- package/components/date-picker/locale/hu_HU.tsx +20 -0
- package/components/date-picker/locale/id_ID.tsx +20 -0
- package/components/date-picker/locale/is_IS.tsx +20 -0
- package/components/date-picker/locale/it_IT.tsx +20 -0
- package/components/date-picker/locale/ja_JP.tsx +20 -0
- package/components/date-picker/locale/ka_GE.tsx +23 -0
- package/components/date-picker/locale/kk_KZ.tsx +27 -0
- package/components/date-picker/locale/kmr_IQ.tsx +19 -0
- package/components/date-picker/locale/kn_IN.tsx +20 -0
- package/components/date-picker/locale/ko_KR.tsx +20 -0
- package/components/date-picker/locale/lt_LT.tsx +27 -0
- package/components/date-picker/locale/lv_LV.tsx +20 -0
- package/components/date-picker/locale/mk_MK.tsx +20 -0
- package/components/date-picker/locale/ml_IN.tsx +27 -0
- package/components/date-picker/locale/mn_MN.tsx +20 -0
- package/components/date-picker/locale/ms_MY.tsx +20 -0
- package/components/date-picker/locale/nb_NO.tsx +27 -0
- package/components/date-picker/locale/nl_BE.tsx +27 -0
- package/components/date-picker/locale/nl_NL.tsx +27 -0
- package/components/date-picker/locale/pl_PL.tsx +20 -0
- package/components/date-picker/locale/pt_BR.tsx +20 -0
- package/components/date-picker/locale/pt_PT.tsx +47 -0
- package/components/date-picker/locale/ro_RO.tsx +20 -0
- package/components/date-picker/locale/ru_RU.tsx +29 -0
- package/components/date-picker/locale/sk_SK.tsx +20 -0
- package/components/date-picker/locale/sl_SI.tsx +45 -0
- package/components/date-picker/locale/sr_RS.tsx +27 -0
- package/components/date-picker/locale/sv_SE.tsx +27 -0
- package/components/date-picker/locale/ta_IN.tsx +21 -0
- package/components/date-picker/locale/th_TH.tsx +27 -0
- package/components/date-picker/locale/tr_TR.tsx +28 -0
- package/components/date-picker/locale/uk_UA.tsx +20 -0
- package/components/date-picker/locale/ur_PK.tsx +27 -0
- package/components/date-picker/locale/vi_VN.tsx +20 -0
- package/components/date-picker/locale/zh_CN.tsx +30 -0
- package/components/date-picker/locale/zh_TW.tsx +29 -0
- package/components/date-picker/style/index.less +363 -0
- package/components/date-picker/style/index.tsx +5 -0
- package/components/date-picker/style/panel.less +673 -0
- package/components/date-picker/style/rtl.less +252 -0
- package/components/date-picker/util.ts +53 -0
- package/components/descriptions/components/descriptions.tsx +12 -0
- package/components/descriptions/components/item.tsx +12 -0
- package/components/descriptions/demo/basic.tsx +23 -0
- package/components/descriptions/demo/border.tsx +44 -0
- package/components/descriptions/demo/custom.tsx +67 -0
- package/components/descriptions/demo/responsive.tsx +41 -0
- package/components/descriptions/demo/vertical.tsx +23 -0
- package/components/descriptions/demo/verticalBorder.tsx +45 -0
- package/components/descriptions/descriptions.md +71 -0
- package/components/descriptions/index.tsx +20 -0
- package/components/descriptions/style/index.less +176 -0
- package/components/descriptions/style/index.tsx +2 -0
- package/components/descriptions/style/rtl.less +33 -0
- package/components/divider/demo/customize-style.tsx +27 -0
- package/components/divider/demo/horizontal.tsx +33 -0
- package/components/divider/demo/plain.tsx +43 -0
- package/components/divider/demo/vertical.tsx +21 -0
- package/components/divider/demo/with-text.tsx +39 -0
- package/components/divider/divider.md +47 -0
- package/components/divider/index.tsx +15 -0
- package/components/divider/style/index.less +109 -0
- package/components/divider/style/index.tsx +2 -0
- package/components/divider/style/rtl.less +36 -0
- package/components/drawer/demo/basic-right.tsx +39 -0
- package/components/drawer/demo/extra.tsx +59 -0
- package/components/drawer/demo/form-in-drawer.tsx +140 -0
- package/components/drawer/demo/multi-level-drawer.tsx +56 -0
- package/components/drawer/demo/placement.tsx +55 -0
- package/components/drawer/demo/render-in-current.tsx +40 -0
- package/components/drawer/demo/size.tsx +152 -0
- package/components/drawer/demo/user-profile.tsx +159 -0
- package/components/drawer/drawer.md +136 -0
- package/components/drawer/index.tsx +20 -0
- package/components/drawer/style/drawer.less +256 -0
- package/components/drawer/style/index.less +6 -0
- package/components/drawer/style/index.tsx +3 -0
- package/components/drawer/style/rtl.less +16 -0
- package/components/dropdown/components/button.tsx +13 -0
- package/components/dropdown/components/dropdown.tsx +13 -0
- package/components/dropdown/demo/arrow.tsx +66 -0
- package/components/dropdown/demo/basic.tsx +52 -0
- package/components/dropdown/demo/contextMenu.tsx +33 -0
- package/components/dropdown/demo/dropdownButton.tsx +70 -0
- package/components/dropdown/demo/event.tsx +30 -0
- package/components/dropdown/demo/item.tsx +46 -0
- package/components/dropdown/demo/overlayVisible.tsx +41 -0
- package/components/dropdown/demo/placement.tsx +69 -0
- package/components/dropdown/demo/subMenu.tsx +37 -0
- package/components/dropdown/demo/trigger.tsx +32 -0
- package/components/dropdown/dropdown.md +115 -0
- package/components/dropdown/index.tsx +16 -0
- package/components/dropdown/style/index.less +381 -0
- package/components/dropdown/style/index.tsx +5 -0
- package/components/dropdown/style/rtl.less +89 -0
- package/components/dropdown/style/status.less +14 -0
- package/components/empty/components/empty.tsx +14 -0
- package/components/empty/demo/basic.tsx +13 -0
- package/components/empty/demo/choice.tsx +13 -0
- package/components/empty/demo/custom.tsx +27 -0
- package/components/empty/demo/global.tsx +82 -0
- package/components/empty/demo/noDescription.tsx +13 -0
- package/components/empty/empty.md +93 -0
- package/components/empty/empty.tsx +56 -0
- package/components/empty/index.tsx +84 -0
- package/components/empty/simple.tsx +29 -0
- package/components/empty/style/index.less +136 -0
- package/components/empty/style/index.tsx +2 -0
- package/components/empty/style/rtl.less +10 -0
- package/components/form/ErrorList.tsx +117 -0
- package/components/form/Form.tsx +140 -0
- package/components/form/FormItem.tsx +412 -0
- package/components/form/FormItemInput.tsx +125 -0
- package/components/form/FormItemLabel.tsx +137 -0
- package/components/form/FormList.tsx +61 -0
- package/components/form/context.tsx +51 -0
- package/components/form/demo/advanced-search/index.less +41 -0
- package/components/form/demo/advanced-search/index.tsx +89 -0
- package/components/form/demo/basic.tsx +59 -0
- package/components/form/demo/complex-form-control.tsx +88 -0
- package/components/form/demo/control-hooks.tsx +99 -0
- package/components/form/demo/control-ref.tsx +106 -0
- package/components/form/demo/customized-form-controls.tsx +108 -0
- package/components/form/demo/dynamic-form-item.tsx +118 -0
- package/components/form/demo/dynamic-form-items-complex.tsx +118 -0
- package/components/form/demo/dynamic-form-items.tsx +67 -0
- package/components/form/demo/dynamic-rule.tsx +81 -0
- package/components/form/demo/form-context.tsx +168 -0
- package/components/form/demo/form-in-modal/index.less +3 -0
- package/components/form/demo/form-in-modal/index.tsx +112 -0
- package/components/form/demo/global-state.tsx +62 -0
- package/components/form/demo/inline-login.tsx +68 -0
- package/components/form/demo/layout.tsx +64 -0
- package/components/form/demo/nest-messages.tsx +75 -0
- package/components/form/demo/normal-login.tsx +60 -0
- package/components/form/demo/register.tsx +293 -0
- package/components/form/demo/required-mark.tsx +59 -0
- package/components/form/demo/size.tsx +98 -0
- package/components/form/demo/time-related-controls.tsx +100 -0
- package/components/form/demo/validate-static.tsx +147 -0
- package/components/form/demo/without-form-create.tsx +71 -0
- package/components/form/form.md +626 -0
- package/components/form/hooks/useDebounce.ts +19 -0
- package/components/form/hooks/useForm.ts +64 -0
- package/components/form/hooks/useFrameState.ts +48 -0
- package/components/form/hooks/useItemRef.ts +28 -0
- package/components/form/index.tsx +48 -0
- package/components/form/interface.ts +3 -0
- package/components/form/style/components.less +76 -0
- package/components/form/style/horizontal.less +13 -0
- package/components/form/style/index.less +295 -0
- package/components/form/style/index.tsx +6 -0
- package/components/form/style/inline.less +38 -0
- package/components/form/style/mixin.less +110 -0
- package/components/form/style/rtl.less +194 -0
- package/components/form/style/status.less +293 -0
- package/components/form/style/vertical.less +87 -0
- package/components/form/util.ts +14 -0
- package/components/grid/RowContext.tsx +11 -0
- package/components/grid/col.tsx +139 -0
- package/components/grid/demo/basic/index.less +87 -0
- package/components/grid/demo/basic/index.tsx +36 -0
- package/components/grid/grid.md +133 -0
- package/components/grid/hooks/useBreakpoint.tsx +3 -0
- package/components/grid/index.tsx +11 -0
- package/components/grid/row.tsx +136 -0
- package/components/grid/style/index.less +119 -0
- package/components/grid/style/index.tsx +2 -0
- package/components/grid/style/mixin.less +53 -0
- package/components/grid/style/rtl.less +68 -0
- package/components/icon/icon.md +166 -0
- package/components/icon/style/index.less +5 -0
- package/components/icon/style/index.tsx +2 -0
- package/components/image/components/image.tsx +12 -0
- package/components/image/components/previewGroup.tsx +11 -0
- package/components/image/demo/basic.tsx +18 -0
- package/components/image/demo/custom.tsx +21 -0
- package/components/image/demo/error.tsx +19 -0
- package/components/image/demo/load.tsx +37 -0
- package/components/image/demo/many.tsx +24 -0
- package/components/image/demo/photo.tsx +32 -0
- package/components/image/image.md +74 -0
- package/components/image/index.tsx +14 -0
- package/components/image/style/index.less +173 -0
- package/components/image/style/index.tsx +2 -0
- package/components/index.tsx +190 -0
- package/components/input/components/group.tsx +14 -0
- package/components/input/components/input.tsx +12 -0
- package/components/input/components/password.tsx +14 -0
- package/components/input/components/search.tsx +14 -0
- package/components/input/components/textArea.tsx +14 -0
- package/components/input/demo/addon.tsx +51 -0
- package/components/input/demo/allowClear.tsx +34 -0
- package/components/input/demo/autosize-textarea.tsx +37 -0
- package/components/input/demo/basic.tsx +17 -0
- package/components/input/demo/borderless.tsx +13 -0
- package/components/input/demo/focus.tsx +74 -0
- package/components/input/demo/group/index.less +25 -0
- package/components/input/demo/group/index.tsx +191 -0
- package/components/input/demo/password-input.tsx +25 -0
- package/components/input/demo/presuffix.tsx +33 -0
- package/components/input/demo/search-input-loading.tsx +34 -0
- package/components/input/demo/search.tsx +57 -0
- package/components/input/demo/size.tsx +24 -0
- package/components/input/demo/textarea-count.tsx +19 -0
- package/components/input/demo/textarea.tsx +15 -0
- package/components/input/demo/tooltip/index.less +11 -0
- package/components/input/demo/tooltip/index.tsx +22 -0
- package/components/input/demo/tooltip/numericInput.tsx +70 -0
- package/components/input/index.tsx +35 -0
- package/components/input/input.md +153 -0
- package/components/input/style/IE11.less +20 -0
- package/components/input/style/affix.less +63 -0
- package/components/input/style/allow-clear.less +43 -0
- package/components/input/style/index.less +63 -0
- package/components/input/style/index.tsx +1 -0
- package/components/input/style/mixin.less +423 -0
- package/components/input/style/rtl.less +205 -0
- package/components/input/style/search-input.less +71 -0
- package/components/input-number/demo/basic.tsx +18 -0
- package/components/input-number/demo/decimal.tsx +26 -0
- package/components/input-number/demo/disabled.tsx +26 -0
- package/components/input-number/demo/formatter.tsx +38 -0
- package/components/input-number/demo/keyboard.tsx +27 -0
- package/components/input-number/demo/nowrap.tsx +13 -0
- package/components/input-number/demo/outwrap.tsx +28 -0
- package/components/input-number/demo/tag.jsx +47 -0
- package/components/input-number/demo/threeSize.tsx +34 -0
- package/components/input-number/index.tsx +25 -0
- package/components/input-number/inputNumber.md +103 -0
- package/components/input-number/style/index.less +222 -0
- package/components/input-number/style/index.tsx +2 -0
- package/components/input-number/style/rtl.less +32 -0
- package/components/layout/components/layout.tsx +26 -0
- package/components/layout/components/sider.tsx +15 -0
- package/components/layout/demo/basic.tsx +50 -0
- package/components/layout/demo/customTrigger.tsx +66 -0
- package/components/layout/demo/fixed/index.less +13 -0
- package/components/layout/demo/fixed/index.tsx +47 -0
- package/components/layout/demo/fixedSider/index.less +11 -0
- package/components/layout/demo/fixedSider/index.tsx +174 -0
- package/components/layout/demo/responsive.tsx +67 -0
- package/components/layout/demo/side/index.less +9 -0
- package/components/layout/demo/side/index.tsx +78 -0
- package/components/layout/demo/top.tsx +40 -0
- package/components/layout/demo/topSide.tsx +81 -0
- package/components/layout/demo/topSide2.tsx +82 -0
- package/components/layout/index.tsx +27 -0
- package/components/layout/layout.md +308 -0
- package/components/layout/style/index.less +144 -0
- package/components/layout/style/index.tsx +2 -0
- package/components/layout/style/light.less +11 -0
- package/components/layout/style/rtl.less +10 -0
- package/components/list/components/item.tsx +14 -0
- package/components/list/components/list.tsx +13 -0
- package/components/list/components/meta.tsx +12 -0
- package/components/list/demo/basics.tsx +43 -0
- package/components/list/demo/grid.tsx +37 -0
- package/components/list/demo/infinite.tsx +146 -0
- package/components/list/demo/more.tsx +104 -0
- package/components/list/demo/responsive.tsx +52 -0
- package/components/list/demo/roll.tsx +86 -0
- package/components/list/demo/simple.tsx +53 -0
- package/components/list/demo/verticalRow.tsx +87 -0
- package/components/list/index.tsx +27 -0
- package/components/list/list.md +136 -0
- package/components/list/style/bordered.less +44 -0
- package/components/list/style/customize.less +13 -0
- package/components/list/style/index.less +241 -0
- package/components/list/style/index.tsx +8 -0
- package/components/list/style/responsive.less +40 -0
- package/components/list/style/rtl.less +139 -0
- package/components/locale/ar_EG.tsx +121 -0
- package/components/locale/az_AZ.tsx +49 -0
- package/components/locale/bg_BG.tsx +47 -0
- package/components/locale/bn_BD.tsx +135 -0
- package/components/locale/by_BY.tsx +129 -0
- package/components/locale/ca_ES.tsx +129 -0
- package/components/locale/cs_CZ.tsx +58 -0
- package/components/locale/da_DK.tsx +57 -0
- package/components/locale/de_DE.tsx +128 -0
- package/components/locale/default.tsx +137 -0
- package/components/locale/el_GR.tsx +47 -0
- package/components/locale/en_GB.tsx +109 -0
- package/components/locale/en_US.tsx +3 -0
- package/components/locale/es_ES.tsx +135 -0
- package/components/locale/et_EE.tsx +47 -0
- package/components/locale/fa_IR.tsx +135 -0
- package/components/locale/fi_FI.tsx +54 -0
- package/components/locale/fr_BE.tsx +52 -0
- package/components/locale/fr_CA.tsx +63 -0
- package/components/locale/fr_FR.tsx +132 -0
- package/components/locale/ga_IE.tsx +128 -0
- package/components/locale/gl_ES.tsx +115 -0
- package/components/locale/he_IL.tsx +121 -0
- package/components/locale/hi_IN.tsx +135 -0
- package/components/locale/hr_HR.tsx +134 -0
- package/components/locale/hu_HU.tsx +48 -0
- package/components/locale/hy_AM.tsx +115 -0
- package/components/locale/id_ID.tsx +49 -0
- package/components/locale/is_IS.tsx +47 -0
- package/components/locale/it_IT.tsx +63 -0
- package/components/locale/ja_JP.tsx +107 -0
- package/components/locale/ka_GE.tsx +135 -0
- package/components/locale/kk_KZ.tsx +129 -0
- package/components/locale/kmr_IQ.tsx +47 -0
- package/components/locale/kn_IN.tsx +55 -0
- package/components/locale/ko_KR.tsx +101 -0
- package/components/locale/ku_IQ.tsx +51 -0
- package/components/locale/lt_LT.tsx +126 -0
- package/components/locale/lv_LV.tsx +47 -0
- package/components/locale/mk_MK.tsx +62 -0
- package/components/locale/ml_IN.tsx +135 -0
- package/components/locale/mn_MN.tsx +47 -0
- package/components/locale/ms_MY.tsx +67 -0
- package/components/locale/nb_NO.tsx +129 -0
- package/components/locale/ne_NP.tsx +48 -0
- package/components/locale/nl_BE.tsx +135 -0
- package/components/locale/nl_NL.tsx +135 -0
- package/components/locale/pl_PL.tsx +50 -0
- package/components/locale/pt_BR.tsx +135 -0
- package/components/locale/pt_PT.tsx +48 -0
- package/components/locale/ro_RO.tsx +135 -0
- package/components/locale/ru_RU.tsx +133 -0
- package/components/locale/sk_SK.tsx +66 -0
- package/components/locale/sl_SI.tsx +47 -0
- package/components/locale/sr_RS.tsx +135 -0
- package/components/locale/sv_SE.tsx +135 -0
- package/components/locale/ta_IN.tsx +67 -0
- package/components/locale/th_TH.tsx +131 -0
- package/components/locale/tr_TR.tsx +133 -0
- package/components/locale/uk_UA.tsx +47 -0
- package/components/locale/ur_PK.tsx +135 -0
- package/components/locale/vi_VN.tsx +47 -0
- package/components/locale/zh_CN.tsx +136 -0
- package/components/locale/zh_HK.tsx +132 -0
- package/components/locale/zh_TW.tsx +126 -0
- package/components/locale-provider/LocaleReceiver.tsx +70 -0
- package/components/locale-provider/__tests__/__snapshots__/index.test.js.snap +326603 -0
- package/components/locale-provider/__tests__/config.test.js +59 -0
- package/components/locale-provider/__tests__/index.test.js +281 -0
- package/components/locale-provider/ar_EG.tsx +3 -0
- package/components/locale-provider/az_AZ.tsx +3 -0
- package/components/locale-provider/bg_BG.tsx +3 -0
- package/components/locale-provider/bn_BD.tsx +3 -0
- package/components/locale-provider/by_BY.tsx +3 -0
- package/components/locale-provider/ca_ES.tsx +3 -0
- package/components/locale-provider/context.ts +6 -0
- package/components/locale-provider/cs_CZ.tsx +3 -0
- package/components/locale-provider/da_DK.tsx +3 -0
- package/components/locale-provider/de_DE.tsx +3 -0
- package/components/locale-provider/default.tsx +3 -0
- package/components/locale-provider/el_GR.tsx +3 -0
- package/components/locale-provider/en_GB.tsx +3 -0
- package/components/locale-provider/en_US.tsx +3 -0
- package/components/locale-provider/es_ES.tsx +3 -0
- package/components/locale-provider/et_EE.tsx +3 -0
- package/components/locale-provider/fa_IR.tsx +3 -0
- package/components/locale-provider/fi_FI.tsx +3 -0
- package/components/locale-provider/fr_BE.tsx +3 -0
- package/components/locale-provider/fr_CA.tsx +3 -0
- package/components/locale-provider/fr_FR.tsx +3 -0
- package/components/locale-provider/ga_IE.tsx +3 -0
- package/components/locale-provider/gl_ES.tsx +3 -0
- package/components/locale-provider/he_IL.tsx +3 -0
- package/components/locale-provider/hi_IN.tsx +3 -0
- package/components/locale-provider/hr_HR.tsx +3 -0
- package/components/locale-provider/hu_HU.tsx +3 -0
- package/components/locale-provider/hy_AM.tsx +3 -0
- package/components/locale-provider/id_ID.tsx +3 -0
- package/components/locale-provider/index.tsx +87 -0
- package/components/locale-provider/is_IS.tsx +3 -0
- package/components/locale-provider/it_IT.tsx +3 -0
- package/components/locale-provider/ja_JP.tsx +3 -0
- package/components/locale-provider/ka_GE.tsx +3 -0
- package/components/locale-provider/kk_KZ.tsx +3 -0
- package/components/locale-provider/kmr_IQ.tsx +3 -0
- package/components/locale-provider/kn_IN.tsx +3 -0
- package/components/locale-provider/ko_KR.tsx +3 -0
- package/components/locale-provider/ku_IQ.tsx +3 -0
- package/components/locale-provider/lt_LT.tsx +3 -0
- package/components/locale-provider/lv_LV.tsx +3 -0
- package/components/locale-provider/mk_MK.tsx +3 -0
- package/components/locale-provider/ml_IN.tsx +3 -0
- package/components/locale-provider/mn_MN.tsx +3 -0
- package/components/locale-provider/ms_MY.tsx +3 -0
- package/components/locale-provider/nb_NO.tsx +3 -0
- package/components/locale-provider/ne_NP.tsx +3 -0
- package/components/locale-provider/nl_BE.tsx +3 -0
- package/components/locale-provider/nl_NL.tsx +3 -0
- package/components/locale-provider/pl_PL.tsx +3 -0
- package/components/locale-provider/pt_BR.tsx +3 -0
- package/components/locale-provider/pt_PT.tsx +3 -0
- package/components/locale-provider/ro_RO.tsx +3 -0
- package/components/locale-provider/ru_RU.tsx +3 -0
- package/components/locale-provider/sk_SK.tsx +3 -0
- package/components/locale-provider/sl_SI.tsx +3 -0
- package/components/locale-provider/sr_RS.tsx +3 -0
- package/components/locale-provider/style/index.less +2 -0
- package/components/locale-provider/style/index.tsx +1 -0
- package/components/locale-provider/sv_SE.tsx +3 -0
- package/components/locale-provider/ta_IN.tsx +3 -0
- package/components/locale-provider/th_TH.tsx +3 -0
- package/components/locale-provider/tr_TR.tsx +3 -0
- package/components/locale-provider/uk_UA.tsx +3 -0
- package/components/locale-provider/ur_PK.tsx +3 -0
- package/components/locale-provider/vi_VN.tsx +3 -0
- package/components/locale-provider/zh_CN.tsx +3 -0
- package/components/locale-provider/zh_HK.tsx +3 -0
- package/components/locale-provider/zh_TW.tsx +3 -0
- package/components/mentions/components/mentions.tsx +16 -0
- package/components/mentions/components/option.tsx +12 -0
- package/components/mentions/demo/async.tsx +52 -0
- package/components/mentions/demo/autoSize.tsx +21 -0
- package/components/mentions/demo/basic.tsx +32 -0
- package/components/mentions/demo/disabled.tsx +42 -0
- package/components/mentions/demo/prefix.tsx +37 -0
- package/components/mentions/demo/top.tsx +20 -0
- package/components/mentions/index.tsx +20 -0
- package/components/mentions/mentions.md +88 -0
- package/components/mentions/style/index.less +166 -0
- package/components/mentions/style/index.tsx +5 -0
- package/components/mentions/style/rtl.less +10 -0
- package/components/menu/components/divider.tsx +17 -0
- package/components/menu/components/item.tsx +15 -0
- package/components/menu/components/itemGroup.tsx +22 -0
- package/components/menu/components/menu.tsx +17 -0
- package/components/menu/components/subMenu.tsx +15 -0
- package/components/menu/demo/horizontal.tsx +55 -0
- package/components/menu/demo/inline-collapsed.tsx +71 -0
- package/components/menu/demo/inline.tsx +57 -0
- package/components/menu/demo/sider-current.tsx +61 -0
- package/components/menu/demo/theme.tsx +71 -0
- package/components/menu/demo/vertical.tsx +51 -0
- package/components/menu/index.tsx +33 -0
- package/components/menu/menu.md +144 -0
- package/components/menu/style/dark.less +155 -0
- package/components/menu/style/index.less +674 -0
- package/components/menu/style/index.tsx +6 -0
- package/components/menu/style/light.less +12 -0
- package/components/menu/style/rtl.less +164 -0
- package/components/menu/style/status.less +48 -0
- package/components/message/demo/custom-style.tsx +22 -0
- package/components/message/demo/duration.tsx +19 -0
- package/components/message/demo/hooks.tsx +32 -0
- package/components/message/demo/info.tsx +20 -0
- package/components/message/demo/loading.tsx +19 -0
- package/components/message/demo/other.tsx +31 -0
- package/components/message/demo/thenable.tsx +20 -0
- package/components/message/demo/update.tsx +25 -0
- package/components/message/index.tsx +9 -0
- package/components/message/message.md +163 -0
- package/components/message/style/index.less +74 -0
- package/components/message/style/index.tsx +2 -0
- package/components/message/style/rtl.less +17 -0
- package/components/modal/ConfirmDialog.tsx +136 -0
- package/components/modal/Modal.tsx +227 -0
- package/components/modal/components/modal.tsx +19 -0
- package/components/modal/confirm.tsx +172 -0
- package/components/modal/demo/async.tsx +50 -0
- package/components/modal/demo/basic.tsx +43 -0
- package/components/modal/demo/button-props.tsx +55 -0
- package/components/modal/demo/confirm-router.tsx +37 -0
- package/components/modal/demo/confirm.tsx +94 -0
- package/components/modal/demo/footer.tsx +78 -0
- package/components/modal/demo/hooks.tsx +72 -0
- package/components/modal/demo/info.tsx +53 -0
- package/components/modal/demo/locale.tsx +68 -0
- package/components/modal/demo/manual.tsx +31 -0
- package/components/modal/demo/modal-render.tsx +115 -0
- package/components/modal/demo/position.tsx +61 -0
- package/components/modal/demo/width.tsx +32 -0
- package/components/modal/destroyFns.ts +2 -0
- package/components/modal/index.tsx +62 -0
- package/components/modal/locale.tsx +28 -0
- package/components/modal/modal.md +221 -0
- package/components/modal/style/confirm.less +74 -0
- package/components/modal/style/index.less +8 -0
- package/components/modal/style/index.tsx +5 -0
- package/components/modal/style/modal.less +134 -0
- package/components/modal/style/rtl.less +73 -0
- package/components/modal/useModal/HookModal.tsx +75 -0
- package/components/modal/useModal/index.tsx +116 -0
- package/components/notification/demo/basic.tsx +28 -0
- package/components/notification/demo/custom-icon.tsx +27 -0
- package/components/notification/demo/custom-style.tsx +29 -0
- package/components/notification/demo/duration.tsx +27 -0
- package/components/notification/demo/hooks.tsx +61 -0
- package/components/notification/demo/placement.tsx +55 -0
- package/components/notification/demo/update.tsx +33 -0
- package/components/notification/demo/with-btn.tsx +44 -0
- package/components/notification/demo/with-icon.tsx +35 -0
- package/components/notification/index.tsx +11 -0
- package/components/notification/notification.md +140 -0
- package/components/notification/style/index.less +217 -0
- package/components/notification/style/index.tsx +2 -0
- package/components/notification/style/rtl.less +53 -0
- package/components/page-header/demo/basic.tsx +20 -0
- package/components/page-header/demo/breadcrumb.tsx +34 -0
- package/components/page-header/demo/combination.tsx +156 -0
- package/components/page-header/demo/ghost.tsx +46 -0
- package/components/page-header/demo/multiform.tsx +73 -0
- package/components/page-header/demo/responsive.tsx +79 -0
- package/components/page-header/index.tsx +12 -0
- package/components/page-header/page-header.md +121 -0
- package/components/page-header/style/index.less +127 -0
- package/components/page-header/style/index.tsx +5 -0
- package/components/page-header/style/rtl.less +76 -0
- package/components/pagination/MiniSelect.tsx +12 -0
- package/components/pagination/Pagination.tsx +138 -0
- package/components/pagination/demo/all.tsx +22 -0
- package/components/pagination/demo/basic.tsx +13 -0
- package/components/pagination/demo/changer.tsx +33 -0
- package/components/pagination/demo/controlled.tsx +19 -0
- package/components/pagination/demo/itemRender.tsx +23 -0
- package/components/pagination/demo/jump.tsx +34 -0
- package/components/pagination/demo/mini.tsx +31 -0
- package/components/pagination/demo/more.tsx +13 -0
- package/components/pagination/demo/simple.tsx +19 -0
- package/components/pagination/demo/total.tsx +33 -0
- package/components/pagination/index.tsx +4 -0
- package/components/pagination/pagination.md +95 -0
- package/components/pagination/style/index.less +426 -0
- package/components/pagination/style/index.tsx +6 -0
- package/components/pagination/style/rtl.less +55 -0
- package/components/popconfirm/demo/async.tsx +46 -0
- package/components/popconfirm/demo/basic.tsx +32 -0
- package/components/popconfirm/demo/dynamic-trigger.tsx +61 -0
- package/components/popconfirm/demo/icon.tsx +21 -0
- package/components/popconfirm/demo/locale.tsx +17 -0
- package/components/popconfirm/demo/placement.tsx +137 -0
- package/components/popconfirm/demo/promise.tsx +26 -0
- package/components/popconfirm/index.tsx +161 -0
- package/components/popconfirm/popconfirm.md +88 -0
- package/components/popconfirm/style/index.less +9 -0
- package/components/popconfirm/style/index.tsx +8 -0
- package/components/popover/demo/arrow-point-at-center.tsx +33 -0
- package/components/popover/demo/basic.tsx +24 -0
- package/components/popover/demo/hover-with-click.tsx +57 -0
- package/components/popover/demo/interalClose.tsx +33 -0
- package/components/popover/demo/placement.tsx +128 -0
- package/components/popover/demo/triggerType.tsx +33 -0
- package/components/popover/index.tsx +16 -0
- package/components/popover/popover.md +79 -0
- package/components/popover/style/index.less +253 -0
- package/components/popover/style/index.tsx +5 -0
- package/components/popover/style/rtl.less +33 -0
- package/components/progress/Circle.tsx +83 -0
- package/components/progress/Line.tsx +126 -0
- package/components/progress/Steps.tsx +49 -0
- package/components/progress/demo/activeShow.tsx +40 -0
- package/components/progress/demo/bar.tsx +21 -0
- package/components/progress/demo/circle.tsx +19 -0
- package/components/progress/demo/circleActive.tsx +41 -0
- package/components/progress/demo/dashboard.tsx +17 -0
- package/components/progress/demo/formatStyle.tsx +21 -0
- package/components/progress/demo/lineGradient.tsx +46 -0
- package/components/progress/demo/moreDashboard.tsx +28 -0
- package/components/progress/demo/round.tsx +14 -0
- package/components/progress/demo/smallBar.tsx +20 -0
- package/components/progress/demo/smallCircle.tsx +19 -0
- package/components/progress/demo/stepProgress.tsx +21 -0
- package/components/progress/index.tsx +5 -0
- package/components/progress/progress.md +114 -0
- package/components/progress/progress.tsx +190 -0
- package/components/progress/style/index.less +206 -0
- package/components/progress/style/index.tsx +2 -0
- package/components/progress/style/rtl.less +37 -0
- package/components/progress/utils.ts +37 -0
- package/components/radio/components/button.tsx +18 -0
- package/components/radio/components/group.tsx +18 -0
- package/components/radio/components/radio.tsx +18 -0
- package/components/radio/context.tsx +8 -0
- package/components/radio/demo/basic.tsx +13 -0
- package/components/radio/demo/disabled.tsx +32 -0
- package/components/radio/demo/radiobutton-solid.tsx +34 -0
- package/components/radio/demo/radiobutton.tsx +49 -0
- package/components/radio/demo/radiogroup-more.tsx +34 -0
- package/components/radio/demo/radiogroup-options.tsx +77 -0
- package/components/radio/demo/radiogroup-with-name.tsx +20 -0
- package/components/radio/demo/radiogroup.tsx +27 -0
- package/components/radio/demo/size.tsx +34 -0
- package/components/radio/group.tsx +122 -0
- package/components/radio/index.tsx +26 -0
- package/components/radio/interface.tsx +41 -0
- package/components/radio/radio.md +85 -0
- package/components/radio/radio.tsx +68 -0
- package/components/radio/radioButton.tsx +23 -0
- package/components/radio/style/index.less +347 -0
- package/components/radio/style/index.tsx +1 -0
- package/components/radio/style/rtl.less +60 -0
- package/components/rate/demo/basic.tsx +13 -0
- package/components/rate/demo/clear.tsx +21 -0
- package/components/rate/demo/custom.tsx +33 -0
- package/components/rate/demo/half.tsx +12 -0
- package/components/rate/demo/onlyread.tsx +13 -0
- package/components/rate/demo/other.tsx +22 -0
- package/components/rate/demo/text.tsx +24 -0
- package/components/rate/index.tsx +12 -0
- package/components/rate/rate.md +77 -0
- package/components/rate/style/index.less +91 -0
- package/components/rate/style/index.tsx +5 -0
- package/components/rate/style/rtl.less +21 -0
- package/components/result/demo/custom.tsx +20 -0
- package/components/result/demo/disabled.tsx +20 -0
- package/components/result/demo/error.tsx +49 -0
- package/components/result/demo/info.tsx +23 -0
- package/components/result/demo/nofound.tsx +21 -0
- package/components/result/demo/serviceErr.tsx +21 -0
- package/components/result/demo/success.tsx +26 -0
- package/components/result/demo/warning.tsx +23 -0
- package/components/result/index.tsx +12 -0
- package/components/result/result.md +62 -0
- package/components/result/style/index.less +75 -0
- package/components/result/style/index.tsx +2 -0
- package/components/result/style/rtl.less +25 -0
- package/components/select/components/optGroup.tsx +14 -0
- package/components/select/components/option.tsx +15 -0
- package/components/select/components/select.tsx +17 -0
- package/components/select/demo/automatic-tokenization.tsx +37 -0
- package/components/select/demo/basic.tsx +43 -0
- package/components/select/demo/big-data.tsx +51 -0
- package/components/select/demo/bordered.tsx +31 -0
- package/components/select/demo/coordinate.tsx +58 -0
- package/components/select/demo/custom-dropdown-menu.tsx +66 -0
- package/components/select/demo/custom-tag-render.tsx +49 -0
- package/components/select/demo/hide-selected.tsx +39 -0
- package/components/select/demo/label-in-value.tsx +29 -0
- package/components/select/demo/multiple.tsx +52 -0
- package/components/select/demo/optgroup.tsx +29 -0
- package/components/select/demo/option-label-prop.tsx +61 -0
- package/components/select/demo/responsive.tsx +48 -0
- package/components/select/demo/search-box.tsx +89 -0
- package/components/select/demo/search-sort.tsx +37 -0
- package/components/select/demo/search.tsx +48 -0
- package/components/select/demo/select-users.tsx +102 -0
- package/components/select/demo/size.tsx +77 -0
- package/components/select/demo/tags.tsx +36 -0
- package/components/select/index.tsx +25 -0
- package/components/select/select.md +207 -0
- package/components/select/style/index.less +318 -0
- package/components/select/style/index.tsx +5 -0
- package/components/select/style/multiple.less +224 -0
- package/components/select/style/rtl.less +168 -0
- package/components/select/style/single.less +178 -0
- package/components/skeleton/Avatar.tsx +38 -0
- package/components/skeleton/Button.tsx +39 -0
- package/components/skeleton/Element.tsx +44 -0
- package/components/skeleton/Image.tsx +35 -0
- package/components/skeleton/Input.tsx +37 -0
- package/components/skeleton/Paragraph.tsx +38 -0
- package/components/skeleton/Skeleton.tsx +179 -0
- package/components/skeleton/Title.tsx +16 -0
- package/components/skeleton/index.tsx +5 -0
- package/components/skeleton/style/index.less +279 -0
- package/components/skeleton/style/index.tsx +2 -0
- package/components/skeleton/style/rtl.less +47 -0
- package/components/slider/demo/basic.tsx +26 -0
- package/components/slider/demo/controlShow.tsx +11 -0
- package/components/slider/demo/custom.tsx +19 -0
- package/components/slider/demo/events.tsx +36 -0
- package/components/slider/demo/icon.tsx +28 -0
- package/components/slider/demo/inputBox.tsx +38 -0
- package/components/slider/demo/marks.tsx +38 -0
- package/components/slider/demo/range.tsx +13 -0
- package/components/slider/demo/reverse.tsx +24 -0
- package/components/slider/demo/vertical.tsx +42 -0
- package/components/slider/index.tsx +19 -0
- package/components/slider/slider.md +96 -0
- package/components/slider/style/index.less +207 -0
- package/components/slider/style/index.tsx +5 -0
- package/components/slider/style/rtl.less +70 -0
- package/components/space/demo/align.tsx +44 -0
- package/components/space/demo/base.tsx +31 -0
- package/components/space/demo/customize.tsx +26 -0
- package/components/space/demo/size.tsx +30 -0
- package/components/space/demo/split.tsx +19 -0
- package/components/space/demo/vertical.tsx +24 -0
- package/components/space/demo/wrap.tsx +20 -0
- package/components/space/index.tsx +14 -0
- package/components/space/space.md +84 -0
- package/components/space/style/index.less +36 -0
- package/components/space/style/index.tsx +2 -0
- package/components/space/style/rtl.less +10 -0
- package/components/spin/demo/basic.tsx +13 -0
- package/components/spin/demo/custom-indicator.tsx +16 -0
- package/components/spin/demo/delayAndDebounce.tsx +38 -0
- package/components/spin/demo/inside/index.less +8 -0
- package/components/spin/demo/inside/index.tsx +18 -0
- package/components/spin/demo/nested.tsx +34 -0
- package/components/spin/demo/size.tsx +20 -0
- package/components/spin/demo/tip.tsx +22 -0
- package/components/spin/index.tsx +14 -0
- package/components/spin/spin.md +58 -0
- package/components/spin/style/index.less +217 -0
- package/components/spin/style/index.tsx +2 -0
- package/components/spin/style/rtl.less +20 -0
- package/components/statistic/components/countdown.tsx +16 -0
- package/components/statistic/components/statistic.tsx +13 -0
- package/components/statistic/demo/basic.tsx +28 -0
- package/components/statistic/demo/company.tsx +23 -0
- package/components/statistic/demo/countDown.tsx +52 -0
- package/components/statistic/demo/inCard.tsx +43 -0
- package/components/statistic/index.tsx +18 -0
- package/components/statistic/statistic.md +72 -0
- package/components/statistic/style/index.less +41 -0
- package/components/statistic/style/index.tsx +5 -0
- package/components/statistic/style/rtl.less +21 -0
- package/components/steps/components/step.tsx +12 -0
- package/components/steps/components/steps.tsx +12 -0
- package/components/steps/demo/basic.tsx +24 -0
- package/components/steps/demo/click.tsx +38 -0
- package/components/steps/demo/customdot.tsx +34 -0
- package/components/steps/demo/dot.tsx +40 -0
- package/components/steps/demo/err.tsx +19 -0
- package/components/steps/demo/icon.tsx +27 -0
- package/components/steps/demo/linesmall.tsx +19 -0
- package/components/steps/demo/lineway.tsx +20 -0
- package/components/steps/demo/mini.tsx +20 -0
- package/components/steps/demo/nav.tsx +71 -0
- package/components/steps/demo/progress.tsx +24 -0
- package/components/steps/demo/tab.tsx +67 -0
- package/components/steps/index.tsx +15 -0
- package/components/steps/steps.md +126 -0
- package/components/steps/style/custom-icon.less +32 -0
- package/components/steps/style/index.less +247 -0
- package/components/steps/style/index.tsx +6 -0
- package/components/steps/style/label-placement.less +39 -0
- package/components/steps/style/nav.less +122 -0
- package/components/steps/style/progress-dot.less +94 -0
- package/components/steps/style/progress.less +28 -0
- package/components/steps/style/rtl.less +251 -0
- package/components/steps/style/small.less +47 -0
- package/components/steps/style/vertical.less +73 -0
- package/components/style/color/bezierEasing.less +110 -0
- package/components/style/color/colorPalette.less +81 -0
- package/components/style/color/colors.less +162 -0
- package/components/style/color/tinyColor.less +1184 -0
- package/components/style/core/base.less +10 -0
- package/components/style/core/global.less +494 -0
- package/components/style/core/iconfont.less +19 -0
- package/components/style/core/index.less +5 -0
- package/components/style/core/motion/fade.less +32 -0
- package/components/style/core/motion/move.less +121 -0
- package/components/style/core/motion/other.less +51 -0
- package/components/style/core/motion/slide.less +121 -0
- package/components/style/core/motion/zoom.less +167 -0
- package/components/style/core/motion.less +21 -0
- package/components/style/index.less +3 -0
- package/components/style/mixins/box.less +7 -0
- package/components/style/mixins/clearfix.less +15 -0
- package/components/style/mixins/compatibility.less +17 -0
- package/components/style/mixins/customize.less +178 -0
- package/components/style/mixins/iconfont.less +28 -0
- package/components/style/mixins/index.less +13 -0
- package/components/style/mixins/modal-mask.less +31 -0
- package/components/style/mixins/motion.less +35 -0
- package/components/style/mixins/operation-unit.less +18 -0
- package/components/style/mixins/reset.less +13 -0
- package/components/style/mixins/size.less +10 -0
- package/components/style/mixins/typography.less +58 -0
- package/components/style/theme.less +34 -0
- package/components/style/themes/compact.less +295 -0
- package/components/style/themes/dark.less +438 -0
- package/components/style/themes/default.less +1058 -0
- package/components/style/themes/index.less +7 -0
- package/components/style/themes/variable.less +1113 -0
- package/components/switch/demo/basic.tsx +17 -0
- package/components/switch/demo/disabled.tsx +27 -0
- package/components/switch/demo/loading.tsx +19 -0
- package/components/switch/demo/size.tsx +19 -0
- package/components/switch/demo/text.tsx +26 -0
- package/components/switch/index.tsx +11 -0
- package/components/switch/style/index.less +154 -0
- package/components/switch/style/index.tsx +2 -0
- package/components/switch/style/rtl.less +52 -0
- package/components/switch/switch.md +59 -0
- package/components/table/Column.tsx +14 -0
- package/components/table/ColumnGroup.tsx +18 -0
- package/components/table/ExpandIcon.tsx +41 -0
- package/components/table/Table.tsx +531 -0
- package/components/table/components/column.tsx +16 -0
- package/components/table/components/columnGroup.tsx +18 -0
- package/components/table/components/summary.tsx +14 -0
- package/components/table/components/table.tsx +23 -0
- package/components/table/demo/ajax.jsx +100 -0
- package/components/table/demo/basic.tsx +86 -0
- package/components/table/demo/bordered.jsx +60 -0
- package/components/table/demo/colspan-rowspan.jsx +123 -0
- package/components/table/demo/custom-filter-panel.jsx +169 -0
- package/components/table/demo/drag-sorting/index.jsx +137 -0
- package/components/table/demo/drag-sorting/index.less +7 -0
- package/components/table/demo/drag-sorting-handler/index.jsx +124 -0
- package/components/table/demo/drag-sorting-handler/index.less +12 -0
- package/components/table/demo/dynamic-settings.jsx +279 -0
- package/components/table/demo/edit-cell/index.less +18 -0
- package/components/table/demo/edit-cell/index.tsx +265 -0
- package/components/table/demo/edit-row/index.less +5 -0
- package/components/table/demo/edit-row/index.tsx +198 -0
- package/components/table/demo/ellipsis-custom-tooltip.jsx +103 -0
- package/components/table/demo/ellipsis.jsx +77 -0
- package/components/table/demo/expand.jsx +70 -0
- package/components/table/demo/fixed-columns-header.jsx +92 -0
- package/components/table/demo/fixed-columns.jsx +60 -0
- package/components/table/demo/fixed-header.jsx +46 -0
- package/components/table/demo/grouping-columns.jsx +120 -0
- package/components/table/demo/head.tsx +101 -0
- package/components/table/demo/jsx.tsx +76 -0
- package/components/table/demo/multiple-sorter.tsx +79 -0
- package/components/table/demo/narrow.jsx +49 -0
- package/components/table/demo/nested-table.jsx +98 -0
- package/components/table/demo/pagination.tsx +130 -0
- package/components/table/demo/reset-filter.tsx +130 -0
- package/components/table/demo/responsive.tsx +43 -0
- package/components/table/demo/row-selection-and-operation.tsx +79 -0
- package/components/table/demo/row-selection-custom.tsx +91 -0
- package/components/table/demo/row-selection.tsx +104 -0
- package/components/table/demo/size.jsx +57 -0
- package/components/table/demo/sticky.tsx +110 -0
- package/components/table/demo/summary.tsx +139 -0
- package/components/table/demo/tree-data.jsx +130 -0
- package/components/table/hooks/useFilter/FilterDropdown.tsx +428 -0
- package/components/table/hooks/useFilter/FilterSearch.tsx +40 -0
- package/components/table/hooks/useFilter/FilterWrapper.tsx +14 -0
- package/components/table/hooks/useFilter/index.tsx +263 -0
- package/components/table/hooks/useLazyKVMap.ts +54 -0
- package/components/table/hooks/usePagination.ts +104 -0
- package/components/table/hooks/useSelection.tsx +662 -0
- package/components/table/hooks/useSorter.tsx +425 -0
- package/components/table/hooks/useTitleColumns.tsx +31 -0
- package/components/table/index.tsx +7 -0
- package/components/table/interface.tsx +202 -0
- package/components/table/style/bordered.less +136 -0
- package/components/table/style/index.less +738 -0
- package/components/table/style/index.tsx +16 -0
- package/components/table/style/radius.less +45 -0
- package/components/table/style/rtl.less +162 -0
- package/components/table/style/size.less +56 -0
- package/components/table/table.md +484 -0
- package/components/table/util.ts +28 -0
- package/components/tabs/components/tab-pane.tsx +16 -0
- package/components/tabs/components/tabs.tsx +14 -0
- package/components/tabs/demo/basic.tsx +31 -0
- package/components/tabs/demo/card-top/index.less +57 -0
- package/components/tabs/demo/card-top/index.tsx +38 -0
- package/components/tabs/demo/card.tsx +31 -0
- package/components/tabs/demo/centered.tsx +27 -0
- package/components/tabs/demo/custom-add-trigger.jsx +83 -0
- package/components/tabs/demo/custom-tab-bar/index.jsx +44 -0
- package/components/tabs/demo/custom-tab-bar/index.less +4 -0
- package/components/tabs/demo/custom-tab-bar-node.jsx +148 -0
- package/components/tabs/demo/disabled.tsx +27 -0
- package/components/tabs/demo/editable-card.jsx +95 -0
- package/components/tabs/demo/extra/index.less +8 -0
- package/components/tabs/demo/extra/index.tsx +76 -0
- package/components/tabs/demo/icon.tsx +41 -0
- package/components/tabs/demo/position.jsx +51 -0
- package/components/tabs/demo/size.jsx +58 -0
- package/components/tabs/demo/slide.jsx +48 -0
- package/components/tabs/index.tsx +18 -0
- package/components/tabs/style/card.less +98 -0
- package/components/tabs/style/dropdown.less +61 -0
- package/components/tabs/style/index.less +224 -0
- package/components/tabs/style/index.tsx +2 -0
- package/components/tabs/style/position.less +196 -0
- package/components/tabs/style/rtl.less +85 -0
- package/components/tabs/style/size.less +42 -0
- package/components/tabs/tabs.md +104 -0
- package/components/tag/components/CheckableTag.tsx +13 -0
- package/components/tag/components/tag.tsx +15 -0
- package/components/tag/demo/animation.tsx +104 -0
- package/components/tag/demo/basic.tsx +34 -0
- package/components/tag/demo/choice.tsx +39 -0
- package/components/tag/demo/colourful.tsx +37 -0
- package/components/tag/demo/control.tsx +24 -0
- package/components/tag/demo/dynamic.tsx +132 -0
- package/components/tag/demo/icon.tsx +36 -0
- package/components/tag/demo/preset.tsx +53 -0
- package/components/tag/index.tsx +18 -0
- package/components/tag/style/index.less +126 -0
- package/components/tag/style/index.tsx +2 -0
- package/components/tag/style/rtl.less +28 -0
- package/components/tag/tag.md +86 -0
- package/components/time-picker/components/rangePicker.tsx +13 -0
- package/components/time-picker/components/timePicker.tsx +11 -0
- package/components/time-picker/demo/12hours.jsx +28 -0
- package/components/time-picker/demo/addon.jsx +33 -0
- package/components/time-picker/demo/basic.tsx +23 -0
- package/components/time-picker/demo/bordered.jsx +20 -0
- package/components/time-picker/demo/disabled.jsx +14 -0
- package/components/time-picker/demo/hide-column.jsx +16 -0
- package/components/time-picker/demo/interval-options.jsx +13 -0
- package/components/time-picker/demo/range-picker.jsx +13 -0
- package/components/time-picker/demo/size.jsx +20 -0
- package/components/time-picker/demo/value.jsx +19 -0
- package/components/time-picker/index.tsx +70 -0
- package/components/time-picker/locale/ar_EG.tsx +7 -0
- package/components/time-picker/locale/az_AZ.tsx +7 -0
- package/components/time-picker/locale/bg_BG.tsx +7 -0
- package/components/time-picker/locale/bn_BD.tsx +8 -0
- package/components/time-picker/locale/by_BY.tsx +8 -0
- package/components/time-picker/locale/ca_ES.tsx +7 -0
- package/components/time-picker/locale/cs_CZ.tsx +7 -0
- package/components/time-picker/locale/da_DK.tsx +8 -0
- package/components/time-picker/locale/de_DE.tsx +7 -0
- package/components/time-picker/locale/el_GR.tsx +7 -0
- package/components/time-picker/locale/en_GB.tsx +7 -0
- package/components/time-picker/locale/en_US.tsx +8 -0
- package/components/time-picker/locale/es_ES.tsx +7 -0
- package/components/time-picker/locale/et_EE.tsx +7 -0
- package/components/time-picker/locale/fa_IR.tsx +8 -0
- package/components/time-picker/locale/fi_FI.tsx +7 -0
- package/components/time-picker/locale/fr_BE.tsx +7 -0
- package/components/time-picker/locale/fr_CA.tsx +8 -0
- package/components/time-picker/locale/fr_FR.tsx +8 -0
- package/components/time-picker/locale/ga_IE.tsx +8 -0
- package/components/time-picker/locale/gl_ES.tsx +7 -0
- package/components/time-picker/locale/he_IL.tsx +7 -0
- package/components/time-picker/locale/hi_IN.tsx +8 -0
- package/components/time-picker/locale/hr_HR.tsx +8 -0
- package/components/time-picker/locale/hu_HU.tsx +7 -0
- package/components/time-picker/locale/id_ID.tsx +7 -0
- package/components/time-picker/locale/is_IS.tsx +7 -0
- package/components/time-picker/locale/it_IT.tsx +7 -0
- package/components/time-picker/locale/ja_JP.tsx +8 -0
- package/components/time-picker/locale/ka_GE.tsx +8 -0
- package/components/time-picker/locale/kk_KZ.tsx +8 -0
- package/components/time-picker/locale/kmr_IQ.tsx +7 -0
- package/components/time-picker/locale/kn_IN.tsx +7 -0
- package/components/time-picker/locale/ko_KR.tsx +8 -0
- package/components/time-picker/locale/lt_LT.tsx +8 -0
- package/components/time-picker/locale/lv_LV.tsx +7 -0
- package/components/time-picker/locale/mk_MK.tsx +7 -0
- package/components/time-picker/locale/ml_IN.tsx +8 -0
- package/components/time-picker/locale/mn_MN.tsx +7 -0
- package/components/time-picker/locale/ms_MY.tsx +7 -0
- package/components/time-picker/locale/nb_NO.tsx +8 -0
- package/components/time-picker/locale/nl_BE.tsx +8 -0
- package/components/time-picker/locale/nl_NL.tsx +8 -0
- package/components/time-picker/locale/pl_PL.tsx +7 -0
- package/components/time-picker/locale/pt_BR.tsx +7 -0
- package/components/time-picker/locale/pt_PT.tsx +7 -0
- package/components/time-picker/locale/ro_RO.tsx +7 -0
- package/components/time-picker/locale/ru_RU.tsx +9 -0
- package/components/time-picker/locale/sk_SK.tsx +7 -0
- package/components/time-picker/locale/sl_SI.tsx +7 -0
- package/components/time-picker/locale/sr_RS.tsx +8 -0
- package/components/time-picker/locale/sv_SE.tsx +7 -0
- package/components/time-picker/locale/ta_IN.tsx +7 -0
- package/components/time-picker/locale/th_TH.tsx +7 -0
- package/components/time-picker/locale/tr_TR.tsx +8 -0
- package/components/time-picker/locale/uk_UA.tsx +7 -0
- package/components/time-picker/locale/ur_PK.tsx +8 -0
- package/components/time-picker/locale/vi_VN.tsx +7 -0
- package/components/time-picker/locale/zh_CN.tsx +8 -0
- package/components/time-picker/locale/zh_TW.tsx +7 -0
- package/components/time-picker/style/index.less +4 -0
- package/components/time-picker/style/index.tsx +5 -0
- package/components/time-picker/time-picker.md +117 -0
- package/components/timeline/components/item.tsx +13 -0
- package/components/timeline/components/timeline.tsx +13 -0
- package/components/timeline/demo/alternate.tsx +34 -0
- package/components/timeline/demo/basic.tsx +20 -0
- package/components/timeline/demo/color.tsx +42 -0
- package/components/timeline/demo/custom.tsx +26 -0
- package/components/timeline/demo/label.tsx +44 -0
- package/components/timeline/demo/pending.tsx +28 -0
- package/components/timeline/demo/right.tsx +26 -0
- package/components/timeline/index.tsx +15 -0
- package/components/timeline/style/index.less +187 -0
- package/components/timeline/style/index.tsx +2 -0
- package/components/timeline/style/rtl.less +135 -0
- package/components/timeline/timeline.md +92 -0
- package/components/tooltip/demo/arrow-point-at-center.tsx +22 -0
- package/components/tooltip/demo/basic.tsx +17 -0
- package/components/tooltip/demo/colorful.tsx +48 -0
- package/components/tooltip/demo/placement.tsx +65 -0
- package/components/tooltip/index.tsx +280 -0
- package/components/tooltip/placements.tsx +111 -0
- package/components/tooltip/style/index.less +208 -0
- package/components/tooltip/style/index.tsx +2 -0
- package/components/tooltip/style/rtl.less +14 -0
- package/components/tooltip/tooltip.md +91 -0
- package/components/transfer/ListBody.tsx +168 -0
- package/components/transfer/ListItem.tsx +91 -0
- package/components/transfer/demo/basic.tsx +64 -0
- package/components/transfer/demo/oneway.tsx +84 -0
- package/components/transfer/demo/pages.tsx +65 -0
- package/components/transfer/demo/render.tsx +72 -0
- package/components/transfer/demo/search.tsx +58 -0
- package/components/transfer/demo/table.jsx +150 -0
- package/components/transfer/demo/tree.jsx +91 -0
- package/components/transfer/index.tsx +467 -0
- package/components/transfer/interface.ts +5 -0
- package/components/transfer/list.tsx +486 -0
- package/components/transfer/operation.tsx +58 -0
- package/components/transfer/search.tsx +39 -0
- package/components/transfer/style/customize.less +52 -0
- package/components/transfer/style/index.less +221 -0
- package/components/transfer/style/index.tsx +11 -0
- package/components/transfer/style/rtl.less +69 -0
- package/components/transfer/transfer.md +118 -0
- package/components/tree/DirectoryTree.tsx +241 -0
- package/components/tree/Tree.tsx +208 -0
- package/components/tree/index.tsx +18 -0
- package/components/tree/style/directory.less +72 -0
- package/components/tree/style/index.less +16 -0
- package/components/tree/style/index.tsx +2 -0
- package/components/tree/style/mixin.less +274 -0
- package/components/tree/style/rtl.less +72 -0
- package/components/tree/utils/dictUtil.ts +92 -0
- package/components/tree/utils/dropIndicator.tsx +33 -0
- package/components/tree/utils/iconUtil.tsx +52 -0
- package/components/tree-select/components/tree-node.tsx +15 -0
- package/components/tree-select/components/tree-select.tsx +18 -0
- package/components/tree-select/style/index.less +58 -0
- package/components/tree-select/style/index.tsx +7 -0
- package/components/tree-select/tree-select.md +101 -0
- package/components/typography/components/link.tsx +15 -0
- package/components/typography/components/paragraph.tsx +19 -0
- package/components/typography/components/text.tsx +15 -0
- package/components/typography/components/title.tsx +15 -0
- package/components/typography/components/typography.tsx +15 -0
- package/components/typography/demo/basic.tsx +105 -0
- package/components/typography/demo/ellipsis-middle.tsx +32 -0
- package/components/typography/demo/ellipsis.tsx +60 -0
- package/components/typography/demo/interactive.tsx +72 -0
- package/components/typography/demo/suffix.tsx +45 -0
- package/components/typography/demo/text.tsx +35 -0
- package/components/typography/demo/title.tsx +23 -0
- package/components/typography/index.tsx +22 -0
- package/components/typography/style/index.less +288 -0
- package/components/typography/style/index.tsx +6 -0
- package/components/typography/style/rtl.less +54 -0
- package/components/typography/typography.md +173 -0
- package/components/upload/Dragger.tsx +16 -0
- package/components/upload/Upload.tsx +449 -0
- package/components/upload/UploadList/ListItem.tsx +287 -0
- package/components/upload/UploadList/index.tsx +261 -0
- package/components/upload/components/dragger.tsx +16 -0
- package/components/upload/components/upload.tsx +18 -0
- package/components/upload/demo/avatar.jsx +78 -0
- package/components/upload/demo/basic.tsx +37 -0
- package/components/upload/demo/crop-image.jsx +54 -0
- package/components/upload/demo/customize-progress-bar.jsx +45 -0
- package/components/upload/demo/defaultFileList.jsx +51 -0
- package/components/upload/demo/directory.tsx +18 -0
- package/components/upload/demo/drag-sorting.jsx +132 -0
- package/components/upload/demo/drag.tsx +50 -0
- package/components/upload/demo/fileList.jsx +55 -0
- package/components/upload/demo/max-count.jsx +32 -0
- package/components/upload/demo/picture-card.jsx +113 -0
- package/components/upload/demo/picture-style.jsx +50 -0
- package/components/upload/demo/preview-file.jsx +32 -0
- package/components/upload/demo/transform-file.jsx +45 -0
- package/components/upload/demo/upload-custom-action-icon.jsx +59 -0
- package/components/upload/demo/upload-manually.jsx +92 -0
- package/components/upload/demo/upload-png-only.jsx +30 -0
- package/components/upload/demo/upload-with-aliyun-oss.jsx +116 -0
- package/components/upload/index.tsx +8 -0
- package/components/upload/interface.tsx +154 -0
- package/components/upload/style/index.less +586 -0
- package/components/upload/style/index.tsx +7 -0
- package/components/upload/style/rtl.less +177 -0
- package/components/upload/upload.md +207 -0
- package/components/upload/utils.tsx +115 -0
- package/docs/getting-started.md +9 -0
- package/docs/help.md +8 -0
- package/docs/index.md +20 -0
- package/index-style-only.js +24 -0
- package/index.js +3 -0
- package/lib/_util/ActionButton.d.ts +14 -0
- package/lib/_util/ActionButton.js +133 -0
- package/lib/_util/colors.d.ts +5 -0
- package/lib/_util/colors.js +14 -0
- package/lib/_util/devWarning.d.ts +4 -0
- package/lib/_util/devWarning.js +26 -0
- package/lib/_util/easings.d.ts +1 -0
- package/lib/_util/easings.js +19 -0
- package/lib/_util/getDataOrAriaProps.d.ts +1 -0
- package/lib/_util/getDataOrAriaProps.js +16 -0
- package/lib/_util/getRenderPropValue.d.ts +3 -0
- package/lib/_util/getRenderPropValue.js +22 -0
- package/lib/_util/getScroll.d.ts +2 -0
- package/lib/_util/getScroll.js +36 -0
- package/lib/_util/hooks/useFlexGapSupport.d.ts +2 -0
- package/lib/_util/hooks/useFlexGapSupport.js +34 -0
- package/lib/_util/hooks/useForceUpdate.d.ts +2 -0
- package/lib/_util/hooks/useForceUpdate.js +28 -0
- package/lib/_util/hooks/usePatchElement.d.ts +5 -0
- package/lib/_util/hooks/usePatchElement.js +44 -0
- package/lib/_util/hooks/useSyncState.d.ts +3 -0
- package/lib/_util/hooks/useSyncState.js +30 -0
- package/lib/_util/isNumeric.d.ts +2 -0
- package/lib/_util/isNumeric.js +13 -0
- package/lib/_util/motion.d.ts +5 -0
- package/lib/_util/motion.js +58 -0
- package/lib/_util/raf.d.ts +9 -0
- package/lib/_util/raf.js +43 -0
- package/lib/_util/reactNode.d.ts +7 -0
- package/lib/_util/reactNode.js +28 -0
- package/lib/_util/responsiveObserve.d.ts +21 -0
- package/lib/_util/responsiveObserve.js +81 -0
- package/lib/_util/scrollTo.d.ts +10 -0
- package/lib/_util/scrollTo.js +56 -0
- package/lib/_util/styleChecker.d.ts +3 -0
- package/lib/_util/styleChecker.js +58 -0
- package/lib/_util/throttleByAnimationFrame.d.ts +5 -0
- package/lib/_util/throttleByAnimationFrame.js +70 -0
- package/lib/_util/transButton.d.ts +14 -0
- package/lib/_util/transButton.js +77 -0
- package/lib/_util/type.d.ts +9 -0
- package/lib/_util/type.js +27 -0
- package/lib/_util/unreachableException.d.ts +3 -0
- package/lib/_util/unreachableException.js +17 -0
- package/lib/_util/wave.d.ts +30 -0
- package/lib/_util/wave.js +267 -0
- package/lib/affix/demo/basic.d.ts +6 -0
- package/lib/affix/demo/basic.js +55 -0
- package/lib/affix/demo/on-change.d.ts +6 -0
- package/lib/affix/demo/on-change.js +28 -0
- package/lib/affix/demo/target.d.ts +6 -0
- package/lib/affix/demo/target.js +47 -0
- package/lib/affix/index.d.ts +10 -9
- package/lib/affix/index.js +29 -0
- package/lib/affix/style/css.js +3 -0
- package/lib/affix/style/index-pure.less +4 -0
- package/lib/affix/style/index.css +8 -0
- package/lib/affix/style/index.d.ts +1 -0
- package/lib/affix/style/index.js +3 -0
- package/lib/affix/style/index.less +3 -0
- package/lib/alert/components/alert.d.ts +6 -0
- package/lib/alert/components/alert.js +27 -0
- package/lib/alert/components/errorBoundary.d.ts +7 -0
- package/lib/alert/components/errorBoundary.js +23 -0
- package/lib/alert/demo/action.d.ts +6 -0
- package/lib/alert/demo/action.js +64 -0
- package/lib/alert/demo/banner.d.ts +6 -0
- package/lib/alert/demo/banner.js +38 -0
- package/lib/alert/demo/basic.d.ts +6 -0
- package/lib/alert/demo/basic.js +26 -0
- package/lib/alert/demo/closable.d.ts +6 -0
- package/lib/alert/demo/closable.js +38 -0
- package/lib/alert/demo/close-text.d.ts +6 -0
- package/lib/alert/demo/close-text.js +27 -0
- package/lib/alert/demo/description.d.ts +6 -0
- package/lib/alert/demo/description.js +39 -0
- package/lib/alert/demo/error-boundary.d.ts +6 -0
- package/lib/alert/demo/error-boundary.js +53 -0
- package/lib/alert/demo/icon.d.ts +6 -0
- package/lib/alert/demo/icon.js +61 -0
- package/lib/alert/demo/loop-banner.d.ts +6 -0
- package/lib/alert/demo/loop-banner.js +30 -0
- package/lib/alert/demo/smooth-closed.d.ts +6 -0
- package/lib/alert/demo/smooth-closed.js +45 -0
- package/lib/alert/demo/style.d.ts +6 -0
- package/lib/alert/demo/style.js +35 -0
- package/lib/alert/index.d.ts +10 -9
- package/lib/alert/index.js +19 -0
- package/lib/alert/style/css.js +3 -0
- package/lib/alert/style/index-pure.less +151 -0
- package/lib/alert/style/index.css +1938 -0
- package/lib/alert/style/index.d.ts +1 -0
- package/lib/alert/style/index.js +3 -0
- package/lib/alert/style/index.less +3 -0
- package/lib/alert/style/rtl.less +39 -0
- package/lib/anchor/components/anchor.d.ts +6 -0
- package/lib/anchor/components/anchor.js +34 -0
- package/lib/anchor/components/link.d.ts +6 -0
- package/lib/anchor/components/link.js +28 -0
- package/lib/anchor/demo/basic.d.ts +2 -0
- package/lib/anchor/demo/basic.js +39 -0
- package/lib/anchor/demo/click.d.ts +6 -0
- package/lib/anchor/demo/click.js +48 -0
- package/lib/anchor/demo/light.d.ts +6 -0
- package/lib/anchor/demo/light.js +47 -0
- package/lib/anchor/demo/listen.d.ts +6 -0
- package/lib/anchor/demo/listen.js +47 -0
- package/lib/anchor/demo/offset.d.ts +6 -0
- package/lib/anchor/demo/offset.js +58 -0
- package/lib/anchor/demo/static.d.ts +6 -0
- package/lib/anchor/demo/static.js +41 -0
- package/lib/anchor/index.d.ts +10 -9
- package/lib/anchor/index.js +19 -0
- package/lib/anchor/style/css.js +3 -0
- package/lib/anchor/style/index-pure.less +83 -0
- package/lib/anchor/style/index.css +1884 -0
- package/lib/anchor/style/index.d.ts +1 -0
- package/lib/anchor/style/index.js +3 -0
- package/lib/anchor/style/index.less +3 -0
- package/lib/anchor/style/rtl.less +35 -0
- package/lib/auto-complete/components/autoComplete.d.ts +6 -0
- package/lib/auto-complete/components/autoComplete.js +34 -0
- package/lib/auto-complete/components/option.d.ts +6 -0
- package/lib/auto-complete/components/option.js +28 -0
- package/lib/auto-complete/demo/basic.d.ts +6 -0
- package/lib/auto-complete/demo/basic.js +78 -0
- package/lib/auto-complete/demo/confirm.d.ts +6 -0
- package/lib/auto-complete/demo/confirm.js +70 -0
- package/lib/auto-complete/demo/custom.d.ts +6 -0
- package/lib/auto-complete/demo/custom.js +63 -0
- package/lib/auto-complete/demo/customInput.d.ts +6 -0
- package/lib/auto-complete/demo/customInput.js +72 -0
- package/lib/auto-complete/demo/insensitive.d.ts +6 -0
- package/lib/auto-complete/demo/insensitive.js +39 -0
- package/lib/auto-complete/demo/unconfirm.d.ts +6 -0
- package/lib/auto-complete/demo/unconfirm.js +82 -0
- package/lib/auto-complete/index.d.ts +11 -10
- package/lib/auto-complete/index.js +19 -0
- package/lib/auto-complete/style/css.js +3 -0
- package/lib/auto-complete/style/index-pure.less +14 -0
- package/lib/auto-complete/style/index.css +1801 -0
- package/lib/auto-complete/style/index.d.ts +1 -0
- package/lib/auto-complete/style/index.js +3 -0
- package/lib/auto-complete/style/index.less +3 -0
- package/lib/avatar/demo/badge.d.ts +6 -0
- package/lib/avatar/demo/badge.js +39 -0
- package/lib/avatar/demo/basic.d.ts +6 -0
- package/lib/avatar/demo/basic.js +51 -0
- package/lib/avatar/demo/dynamic.d.ts +6 -0
- package/lib/avatar/demo/dynamic.js +81 -0
- package/lib/avatar/demo/group.d.ts +6 -0
- package/lib/avatar/demo/group.js +97 -0
- package/lib/avatar/demo/responsive.d.ts +6 -0
- package/lib/avatar/demo/responsive.js +35 -0
- package/lib/avatar/demo/type.d.ts +6 -0
- package/lib/avatar/demo/type.js +47 -0
- package/lib/avatar/index.d.ts +12 -11
- package/lib/avatar/index.js +33 -0
- package/lib/avatar/index.less +0 -0
- package/lib/avatar/style/css.js +3 -0
- package/lib/avatar/style/group.less +17 -0
- package/lib/avatar/style/index-pure.less +69 -0
- package/lib/avatar/style/index.css +1891 -0
- package/lib/avatar/style/index.d.ts +1 -0
- package/lib/avatar/style/index.js +3 -0
- package/lib/avatar/style/index.less +3 -0
- package/lib/avatar/style/rtl.less +15 -0
- package/lib/back-top/demo/basic.d.ts +6 -0
- package/lib/back-top/demo/basic.js +25 -0
- package/lib/back-top/demo/custom.d.ts +6 -0
- package/lib/back-top/demo/custom.js +40 -0
- package/lib/back-top/index.d.ts +7 -6
- package/lib/back-top/index.js +29 -0
- package/lib/back-top/style/css.js +3 -0
- package/lib/back-top/style/index-pure.less +48 -0
- package/lib/back-top/style/index.css +1841 -0
- package/lib/back-top/style/index.d.ts +1 -0
- package/lib/back-top/style/index.js +3 -0
- package/lib/back-top/style/index.less +3 -0
- package/lib/back-top/style/responsive.less +11 -0
- package/lib/badge/components/badge.d.ts +6 -0
- package/lib/badge/components/badge.js +27 -0
- package/lib/badge/components/ribbon.d.ts +6 -0
- package/lib/badge/components/ribbon.js +28 -0
- package/lib/badge/demo/basic.d.ts +6 -0
- package/lib/badge/demo/basic.js +45 -0
- package/lib/badge/demo/change.d.ts +6 -0
- package/lib/badge/demo/change.js +89 -0
- package/lib/badge/demo/colorful.d.ts +6 -0
- package/lib/badge/demo/colorful.js +49 -0
- package/lib/badge/demo/dot.d.ts +6 -0
- package/lib/badge/demo/dot.js +35 -0
- package/lib/badge/demo/link.d.ts +6 -0
- package/lib/badge/demo/link.js +30 -0
- package/lib/badge/demo/no-wrapper.d.ts +6 -0
- package/lib/badge/demo/no-wrapper.js +59 -0
- package/lib/badge/demo/offset.d.ts +6 -0
- package/lib/badge/demo/offset.js +29 -0
- package/lib/badge/demo/overflow.d.ts +6 -0
- package/lib/badge/demo/overflow.js +45 -0
- package/lib/badge/demo/ribbbon.d.ts +6 -0
- package/lib/badge/demo/ribbbon.js +70 -0
- package/lib/badge/demo/size.d.ts +6 -0
- package/lib/badge/demo/size.js +35 -0
- package/lib/badge/demo/status.d.ts +6 -0
- package/lib/badge/demo/status.js +48 -0
- package/lib/badge/index.d.ts +13 -12
- package/lib/badge/index.js +32 -0
- package/lib/badge/style/css.js +3 -0
- package/lib/badge/style/index-pure.less +267 -0
- package/lib/badge/style/index.css +2326 -0
- package/lib/badge/style/index.d.ts +1 -0
- package/lib/badge/style/index.js +3 -0
- package/lib/badge/style/index.less +3 -0
- package/lib/badge/style/ribbon.less +80 -0
- package/lib/badge/style/rtl.less +104 -0
- package/lib/breadcrumb/components/breadcrumb.d.ts +6 -0
- package/lib/breadcrumb/components/breadcrumb.js +27 -0
- package/lib/breadcrumb/components/item.d.ts +9 -0
- package/lib/breadcrumb/components/item.js +29 -0
- package/lib/breadcrumb/components/separator.d.ts +4 -0
- package/lib/breadcrumb/components/separator.js +29 -0
- package/lib/breadcrumb/demo/basic.d.ts +6 -0
- package/lib/breadcrumb/demo/basic.js +27 -0
- package/lib/breadcrumb/demo/overlay.d.ts +6 -0
- package/lib/breadcrumb/demo/overlay.js +49 -0
- package/lib/breadcrumb/demo/router-4/index.d.ts +7 -0
- package/lib/breadcrumb/demo/router-4/index.js +88 -0
- package/lib/breadcrumb/demo/router-4/index.less +19 -0
- package/lib/breadcrumb/demo/separator-component.d.ts +6 -0
- package/lib/breadcrumb/demo/separator-component.js +29 -0
- package/lib/breadcrumb/demo/separator.d.ts +6 -0
- package/lib/breadcrumb/demo/separator.js +29 -0
- package/lib/breadcrumb/demo/withIcon.d.ts +6 -0
- package/lib/breadcrumb/demo/withIcon.js +29 -0
- package/lib/breadcrumb/index.d.ts +12 -11
- package/lib/breadcrumb/index.js +22 -0
- package/lib/breadcrumb/style/css.js +3 -0
- package/lib/breadcrumb/style/index-pure.less +53 -0
- package/lib/breadcrumb/style/index.css +1862 -0
- package/lib/breadcrumb/style/index.d.ts +1 -0
- package/lib/breadcrumb/style/index.js +3 -0
- package/lib/breadcrumb/style/index.less +3 -0
- package/lib/breadcrumb/style/rtl.less +29 -0
- package/lib/button/LoadingIcon.d.ts +8 -0
- package/lib/button/LoadingIcon.js +69 -0
- package/lib/button/button-group.d.ts +10 -0
- package/lib/button/button-group.js +73 -0
- package/lib/button/button.d.ts +43 -0
- package/lib/button/button.js +287 -0
- package/lib/button/demo/basic.d.ts +6 -0
- package/lib/button/demo/basic.js +31 -0
- package/lib/button/demo/block.d.ts +6 -0
- package/lib/button/demo/block.js +34 -0
- package/lib/button/demo/danger.d.ts +5 -0
- package/lib/button/demo/danger.js +36 -0
- package/lib/button/demo/disabled.d.ts +6 -0
- package/lib/button/demo/disabled.js +71 -0
- package/lib/button/demo/ghost.d.ts +6 -0
- package/lib/button/demo/ghost.js +37 -0
- package/lib/button/demo/icon.d.ts +6 -0
- package/lib/button/demo/icon.js +106 -0
- package/lib/button/demo/loading.d.ts +7 -0
- package/lib/button/demo/loading.js +85 -0
- package/lib/button/demo/multiple.d.ts +6 -0
- package/lib/button/demo/multiple.js +43 -0
- package/lib/button/demo/size.d.ts +6 -0
- package/lib/button/demo/size.js +87 -0
- package/lib/button/index.d.ts +6 -7
- package/lib/button/index.js +15 -0
- package/lib/button/style/css.js +3 -0
- package/lib/button/style/index-pure.less +261 -0
- package/lib/button/style/index.css +3661 -0
- package/lib/button/style/index.d.ts +1 -0
- package/lib/button/style/index.js +3 -0
- package/lib/button/style/index.less +3 -0
- package/lib/button/style/mixin.less +565 -0
- package/lib/button/style/rtl.less +108 -0
- package/lib/calendar/Header.d.ts +17 -0
- package/lib/calendar/Header.js +185 -0
- package/lib/calendar/demo/basic.d.ts +6 -0
- package/lib/calendar/demo/basic.js +29 -0
- package/lib/calendar/demo/card.d.ts +6 -0
- package/lib/calendar/demo/card.js +32 -0
- package/lib/calendar/demo/customize-header.d.ts +6 -0
- package/lib/calendar/demo/customize-header.js +109 -0
- package/lib/calendar/demo/notice-calendar.d.ts +6 -0
- package/lib/calendar/demo/notice-calendar.js +108 -0
- package/lib/calendar/demo/select.d.ts +6 -0
- package/lib/calendar/demo/select.js +58 -0
- package/lib/calendar/generateCalendar.d.ts +41 -0
- package/lib/calendar/generateCalendar.js +218 -0
- package/lib/calendar/index.d.ts +5 -4
- package/lib/calendar/index.js +16 -0
- package/lib/calendar/locale/ar_EG.d.ts +2 -0
- package/lib/calendar/locale/ar_EG.js +13 -0
- package/lib/calendar/locale/az_AZ.d.ts +2 -0
- package/lib/calendar/locale/az_AZ.js +13 -0
- package/lib/calendar/locale/bg_BG.d.ts +2 -0
- package/lib/calendar/locale/bg_BG.js +13 -0
- package/lib/calendar/locale/bn_BD.d.ts +2 -0
- package/lib/calendar/locale/bn_BD.js +13 -0
- package/lib/calendar/locale/by_BY.d.ts +2 -0
- package/lib/calendar/locale/by_BY.js +13 -0
- package/lib/calendar/locale/ca_ES.d.ts +2 -0
- package/lib/calendar/locale/ca_ES.js +13 -0
- package/lib/calendar/locale/cs_CZ.d.ts +2 -0
- package/lib/calendar/locale/cs_CZ.js +13 -0
- package/lib/calendar/locale/da_DK.d.ts +2 -0
- package/lib/calendar/locale/da_DK.js +13 -0
- package/lib/calendar/locale/de_DE.d.ts +2 -0
- package/lib/calendar/locale/de_DE.js +13 -0
- package/lib/calendar/locale/el_GR.d.ts +2 -0
- package/lib/calendar/locale/el_GR.js +13 -0
- package/lib/calendar/locale/en_GB.d.ts +2 -0
- package/lib/calendar/locale/en_GB.js +13 -0
- package/lib/calendar/locale/en_US.d.ts +2 -0
- package/lib/calendar/locale/en_US.js +13 -0
- package/lib/calendar/locale/es_ES.d.ts +2 -0
- package/lib/calendar/locale/es_ES.js +13 -0
- package/lib/calendar/locale/et_EE.d.ts +2 -0
- package/lib/calendar/locale/et_EE.js +13 -0
- package/lib/calendar/locale/fa_IR.d.ts +2 -0
- package/lib/calendar/locale/fa_IR.js +13 -0
- package/lib/calendar/locale/fi_FI.d.ts +2 -0
- package/lib/calendar/locale/fi_FI.js +13 -0
- package/lib/calendar/locale/fr_BE.d.ts +2 -0
- package/lib/calendar/locale/fr_BE.js +13 -0
- package/lib/calendar/locale/fr_CA.d.ts +2 -0
- package/lib/calendar/locale/fr_CA.js +13 -0
- package/lib/calendar/locale/fr_FR.d.ts +2 -0
- package/lib/calendar/locale/fr_FR.js +13 -0
- package/lib/calendar/locale/ga_IE.d.ts +2 -0
- package/lib/calendar/locale/ga_IE.js +13 -0
- package/lib/calendar/locale/gl_ES.d.ts +2 -0
- package/lib/calendar/locale/gl_ES.js +13 -0
- package/lib/calendar/locale/he_IL.d.ts +2 -0
- package/lib/calendar/locale/he_IL.js +13 -0
- package/lib/calendar/locale/hi_IN.d.ts +2 -0
- package/lib/calendar/locale/hi_IN.js +13 -0
- package/lib/calendar/locale/hr_HR.d.ts +2 -0
- package/lib/calendar/locale/hr_HR.js +13 -0
- package/lib/calendar/locale/hu_HU.d.ts +2 -0
- package/lib/calendar/locale/hu_HU.js +13 -0
- package/lib/calendar/locale/id_ID.d.ts +2 -0
- package/lib/calendar/locale/id_ID.js +13 -0
- package/lib/calendar/locale/is_IS.d.ts +2 -0
- package/lib/calendar/locale/is_IS.js +13 -0
- package/lib/calendar/locale/it_IT.d.ts +2 -0
- package/lib/calendar/locale/it_IT.js +13 -0
- package/lib/calendar/locale/ja_JP.d.ts +2 -0
- package/lib/calendar/locale/ja_JP.js +13 -0
- package/lib/calendar/locale/ka_GE.d.ts +2 -0
- package/lib/calendar/locale/ka_GE.js +13 -0
- package/lib/calendar/locale/kk_KZ.d.ts +2 -0
- package/lib/calendar/locale/kk_KZ.js +13 -0
- package/lib/calendar/locale/kmr_IQ.d.ts +2 -0
- package/lib/calendar/locale/kmr_IQ.js +13 -0
- package/lib/calendar/locale/kn_IN.d.ts +2 -0
- package/lib/calendar/locale/kn_IN.js +13 -0
- package/lib/calendar/locale/ko_KR.d.ts +2 -0
- package/lib/calendar/locale/ko_KR.js +13 -0
- package/lib/calendar/locale/lt_LT.d.ts +2 -0
- package/lib/calendar/locale/lt_LT.js +13 -0
- package/lib/calendar/locale/lv_LV.d.ts +2 -0
- package/lib/calendar/locale/lv_LV.js +13 -0
- package/lib/calendar/locale/mk_MK.d.ts +2 -0
- package/lib/calendar/locale/mk_MK.js +13 -0
- package/lib/calendar/locale/ml_IN.d.ts +2 -0
- package/lib/calendar/locale/ml_IN.js +13 -0
- package/lib/calendar/locale/mn_MN.d.ts +2 -0
- package/lib/calendar/locale/mn_MN.js +13 -0
- package/lib/calendar/locale/ms_MY.d.ts +2 -0
- package/lib/calendar/locale/ms_MY.js +13 -0
- package/lib/calendar/locale/nb_NO.d.ts +2 -0
- package/lib/calendar/locale/nb_NO.js +13 -0
- package/lib/calendar/locale/nl_BE.d.ts +2 -0
- package/lib/calendar/locale/nl_BE.js +13 -0
- package/lib/calendar/locale/nl_NL.d.ts +2 -0
- package/lib/calendar/locale/nl_NL.js +13 -0
- package/lib/calendar/locale/pl_PL.d.ts +2 -0
- package/lib/calendar/locale/pl_PL.js +13 -0
- package/lib/calendar/locale/pt_BR.d.ts +2 -0
- package/lib/calendar/locale/pt_BR.js +13 -0
- package/lib/calendar/locale/pt_PT.d.ts +2 -0
- package/lib/calendar/locale/pt_PT.js +13 -0
- package/lib/calendar/locale/ro_RO.d.ts +2 -0
- package/lib/calendar/locale/ro_RO.js +13 -0
- package/lib/calendar/locale/ru_RU.d.ts +2 -0
- package/lib/calendar/locale/ru_RU.js +13 -0
- package/lib/calendar/locale/sk_SK.d.ts +2 -0
- package/lib/calendar/locale/sk_SK.js +13 -0
- package/lib/calendar/locale/sl_SI.d.ts +2 -0
- package/lib/calendar/locale/sl_SI.js +13 -0
- package/lib/calendar/locale/sr_RS.d.ts +2 -0
- package/lib/calendar/locale/sr_RS.js +13 -0
- package/lib/calendar/locale/sv_SE.d.ts +2 -0
- package/lib/calendar/locale/sv_SE.js +13 -0
- package/lib/calendar/locale/ta_IN.d.ts +2 -0
- package/lib/calendar/locale/ta_IN.js +13 -0
- package/lib/calendar/locale/th_TH.d.ts +2 -0
- package/lib/calendar/locale/th_TH.js +13 -0
- package/lib/calendar/locale/tr_TR.d.ts +2 -0
- package/lib/calendar/locale/tr_TR.js +13 -0
- package/lib/calendar/locale/uk_UA.d.ts +2 -0
- package/lib/calendar/locale/uk_UA.js +13 -0
- package/lib/calendar/locale/ur_PK.d.ts +2 -0
- package/lib/calendar/locale/ur_PK.js +13 -0
- package/lib/calendar/locale/vi_VN.d.ts +2 -0
- package/lib/calendar/locale/vi_VN.js +13 -0
- package/lib/calendar/locale/zh_CN.d.ts +2 -0
- package/lib/calendar/locale/zh_CN.js +13 -0
- package/lib/calendar/locale/zh_TW.d.ts +2 -0
- package/lib/calendar/locale/zh_TW.js +13 -0
- package/lib/calendar/style/css.js +3 -0
- package/lib/calendar/style/index-pure.less +191 -0
- package/lib/calendar/style/index.css +1955 -0
- package/lib/calendar/style/index.d.ts +1 -0
- package/lib/calendar/style/index.js +3 -0
- package/lib/calendar/style/index.less +3 -0
- package/lib/calendar/style/rtl.less +46 -0
- package/lib/card/components/card.d.ts +6 -0
- package/lib/card/components/card.js +27 -0
- package/lib/card/components/grid.d.ts +6 -0
- package/lib/card/components/grid.js +28 -0
- package/lib/card/components/meta.d.ts +6 -0
- package/lib/card/components/meta.js +28 -0
- package/lib/card/demo/basic.d.ts +6 -0
- package/lib/card/demo/basic.js +40 -0
- package/lib/card/demo/border.d.ts +6 -0
- package/lib/card/demo/border.js +31 -0
- package/lib/card/demo/concise.d.ts +6 -0
- package/lib/card/demo/concise.js +27 -0
- package/lib/card/demo/embedded.d.ts +6 -0
- package/lib/card/demo/embedded.js +44 -0
- package/lib/card/demo/flexible.d.ts +6 -0
- package/lib/card/demo/flexible.js +37 -0
- package/lib/card/demo/grid.d.ts +6 -0
- package/lib/card/demo/grid.js +42 -0
- package/lib/card/demo/inside.d.ts +6 -0
- package/lib/card/demo/inside.js +40 -0
- package/lib/card/demo/more.d.ts +6 -0
- package/lib/card/demo/more.js +47 -0
- package/lib/card/demo/preload.d.ts +6 -0
- package/lib/card/demo/preload.js +81 -0
- package/lib/card/demo/tab.d.ts +6 -0
- package/lib/card/demo/tab.js +103 -0
- package/lib/card/index.d.ts +12 -11
- package/lib/card/index.js +22 -0
- package/lib/card/style/css.js +3 -0
- package/lib/card/style/index-pure.less +305 -0
- package/lib/card/style/index.css +2129 -0
- package/lib/card/style/index.d.ts +1 -0
- package/lib/card/style/index.js +3 -0
- package/lib/card/style/index.less +3 -0
- package/lib/card/style/size.less +20 -0
- package/lib/carousel/demo/autoplay.d.ts +6 -0
- package/lib/carousel/demo/autoplay.js +40 -0
- package/lib/carousel/demo/basic.d.ts +6 -0
- package/lib/carousel/demo/basic.js +44 -0
- package/lib/carousel/demo/fade.d.ts +6 -0
- package/lib/carousel/demo/fade.js +40 -0
- package/lib/carousel/demo/position.d.ts +6 -0
- package/lib/carousel/demo/position.js +66 -0
- package/lib/carousel/index.d.ts +9 -8
- package/lib/carousel/index.js +36 -0
- package/lib/carousel/style/css.js +3 -0
- package/lib/carousel/style/index-pure.less +278 -0
- package/lib/carousel/style/index.css +2061 -0
- package/lib/carousel/style/index.d.ts +1 -0
- package/lib/carousel/style/index.js +3 -0
- package/lib/carousel/style/index.less +3 -0
- package/lib/carousel/style/rtl.less +51 -0
- package/lib/cascader/demo/active.d.ts +6 -0
- package/lib/cascader/demo/active.js +68 -0
- package/lib/cascader/demo/basic.d.ts +6 -0
- package/lib/cascader/demo/basic.js +55 -0
- package/lib/cascader/demo/change.d.ts +6 -0
- package/lib/cascader/demo/change.js +55 -0
- package/lib/cascader/demo/changed.d.ts +6 -0
- package/lib/cascader/demo/changed.js +81 -0
- package/lib/cascader/demo/custom.d.ts +6 -0
- package/lib/cascader/demo/custom.js +64 -0
- package/lib/cascader/demo/customName.d.ts +6 -0
- package/lib/cascader/demo/customName.js +60 -0
- package/lib/cascader/demo/defaultValue.d.ts +6 -0
- package/lib/cascader/demo/defaultValue.js +55 -0
- package/lib/cascader/demo/disabled.d.ts +6 -0
- package/lib/cascader/demo/disabled.js +55 -0
- package/lib/cascader/demo/dropdown.d.ts +6 -0
- package/lib/cascader/demo/dropdown.js +65 -0
- package/lib/cascader/demo/move.d.ts +6 -0
- package/lib/cascader/demo/move.js +61 -0
- package/lib/cascader/demo/search.d.ts +6 -0
- package/lib/cascader/demo/search.js +68 -0
- package/lib/cascader/demo/size.d.ts +6 -0
- package/lib/cascader/demo/size.js +62 -0
- package/lib/cascader/index.d.ts +7 -6
- package/lib/cascader/index.js +29 -0
- package/lib/cascader/style/css.js +3 -0
- package/lib/cascader/style/index-pure.less +102 -0
- package/lib/cascader/style/index.css +2090 -0
- package/lib/cascader/style/index.d.ts +1 -0
- package/lib/cascader/style/index.js +3 -0
- package/lib/cascader/style/index.less +3 -0
- package/lib/cascader/style/rtl.less +19 -0
- package/lib/checkbox/Checkbox.d.ts +37 -0
- package/lib/checkbox/Checkbox.js +119 -0
- package/lib/checkbox/Group.d.ts +35 -0
- package/lib/checkbox/Group.js +170 -0
- package/lib/checkbox/demo/basic.d.ts +6 -0
- package/lib/checkbox/demo/basic.js +29 -0
- package/lib/checkbox/demo/check-all.d.ts +6 -0
- package/lib/checkbox/demo/check-all.js +70 -0
- package/lib/checkbox/demo/controller.d.ts +6 -0
- package/lib/checkbox/demo/controller.js +74 -0
- package/lib/checkbox/demo/disabled.d.ts +6 -0
- package/lib/checkbox/demo/disabled.js +29 -0
- package/lib/checkbox/demo/group.d.ts +6 -0
- package/lib/checkbox/demo/group.js +63 -0
- package/lib/checkbox/demo/layout.d.ts +6 -0
- package/lib/checkbox/demo/layout.js +54 -0
- package/lib/checkbox/index.d.ts +11 -9
- package/lib/checkbox/index.js +18 -0
- package/lib/checkbox/style/css.js +3 -0
- package/lib/checkbox/style/index-pure.less +5 -0
- package/lib/checkbox/style/index.css +2017 -0
- package/lib/checkbox/style/index.d.ts +1 -0
- package/lib/checkbox/style/index.js +3 -0
- package/lib/checkbox/style/index.less +3 -0
- package/lib/checkbox/style/mixin.less +229 -0
- package/lib/checkbox/style/rtl.less +26 -0
- package/lib/collapse/components/collapse.d.ts +6 -0
- package/lib/collapse/components/collapse.js +27 -0
- package/lib/collapse/components/panel.d.ts +6 -0
- package/lib/collapse/components/panel.js +28 -0
- package/lib/collapse/demo/accordion.d.ts +6 -0
- package/lib/collapse/demo/accordion.js +36 -0
- package/lib/collapse/demo/arrow.d.ts +6 -0
- package/lib/collapse/demo/arrow.js +40 -0
- package/lib/collapse/demo/collapsible.d.ts +6 -0
- package/lib/collapse/demo/collapsible.js +40 -0
- package/lib/collapse/demo/custom.d.ts +6 -0
- package/lib/collapse/demo/custom.js +49 -0
- package/lib/collapse/demo/extra.d.ts +6 -0
- package/lib/collapse/demo/extra.js +88 -0
- package/lib/collapse/demo/ghost.d.ts +6 -0
- package/lib/collapse/demo/ghost.js +37 -0
- package/lib/collapse/demo/nesting.d.ts +6 -0
- package/lib/collapse/demo/nesting.js +46 -0
- package/lib/collapse/demo/panel.d.ts +6 -0
- package/lib/collapse/demo/panel.js +42 -0
- package/lib/collapse/demo/simple.d.ts +6 -0
- package/lib/collapse/demo/simple.js +43 -0
- package/lib/collapse/index.d.ts +10 -9
- package/lib/collapse/index.js +19 -0
- package/lib/collapse/style/css.js +3 -0
- package/lib/collapse/style/index-pure.less +154 -0
- package/lib/collapse/style/index.css +148 -0
- package/lib/collapse/style/index.d.ts +1 -0
- package/lib/collapse/style/index.js +3 -0
- package/lib/collapse/style/index.less +3 -0
- package/lib/collapse/style/rtl.less +42 -0
- package/lib/comment/demo/basic.d.ts +6 -0
- package/lib/comment/demo/basic.js +92 -0
- package/lib/comment/demo/matchList.d.ts +2 -0
- package/lib/comment/demo/matchList.js +62 -0
- package/lib/comment/index.d.ts +7 -6
- package/lib/comment/index.js +29 -0
- package/lib/comment/style/css.js +3 -0
- package/lib/comment/style/index-pure.less +101 -0
- package/lib/comment/style/index.css +112 -0
- package/lib/comment/style/index.d.ts +1 -0
- package/lib/comment/style/index.js +3 -0
- package/lib/comment/style/index.less +3 -0
- package/lib/comment/style/rtl.less +50 -0
- package/lib/config-provider/SizeContext.d.ts +8 -0
- package/lib/config-provider/SizeContext.js +38 -0
- package/lib/config-provider/context.d.ts +55 -0
- package/lib/config-provider/context.js +67 -0
- package/lib/config-provider/cssVariables.d.ts +2 -0
- package/lib/config-provider/cssVariables.js +106 -0
- package/lib/config-provider/demo/direction.d.ts +2 -0
- package/lib/config-provider/demo/direction.js +549 -0
- package/lib/config-provider/demo/global.d.ts +6 -0
- package/lib/config-provider/demo/global.js +612 -0
- package/lib/config-provider/demo/international.d.ts +7 -0
- package/lib/config-provider/demo/international.js +184 -0
- package/lib/config-provider/demo/size.d.ts +2 -0
- package/lib/config-provider/demo/size.js +115 -0
- package/lib/config-provider/index.d.ts +54 -4
- package/lib/config-provider/index.js +250 -0
- package/lib/config-provider/renderEmpty.d.ts +4 -0
- package/lib/config-provider/renderEmpty.js +59 -0
- package/lib/config-provider/style/css.js +3 -0
- package/lib/config-provider/style/index-pure.less +2 -0
- package/lib/config-provider/style/index.css +4 -0
- package/lib/config-provider/style/index.d.ts +1 -0
- package/lib/config-provider/style/index.js +3 -0
- package/lib/config-provider/style/index.less +3 -0
- package/lib/date-picker/PickerButton.d.ts +3 -0
- package/lib/date-picker/PickerButton.js +27 -0
- package/lib/date-picker/PickerTag.d.ts +3 -0
- package/lib/date-picker/PickerTag.js +26 -0
- package/lib/date-picker/demo/basic.d.ts +6 -0
- package/lib/date-picker/demo/basic.js +45 -0
- package/lib/date-picker/demo/bordered.d.ts +7 -0
- package/lib/date-picker/demo/bordered.js +52 -0
- package/lib/date-picker/demo/date-render.d.ts +7 -0
- package/lib/date-picker/demo/date-render.js +58 -0
- package/lib/date-picker/demo/disabled-date.d.ts +7 -0
- package/lib/date-picker/demo/disabled-date.js +109 -0
- package/lib/date-picker/demo/disabled.d.ts +7 -0
- package/lib/date-picker/demo/disabled.js +46 -0
- package/lib/date-picker/demo/extra-footer.d.ts +12 -0
- package/lib/date-picker/demo/extra-footer.js +91 -0
- package/lib/date-picker/demo/format.d.ts +6 -0
- package/lib/date-picker/demo/format.js +55 -0
- package/lib/date-picker/demo/presetted-ranges.d.ts +7 -0
- package/lib/date-picker/demo/presetted-ranges.js +51 -0
- package/lib/date-picker/demo/range-picker.d.ts +6 -0
- package/lib/date-picker/demo/range-picker.js +38 -0
- package/lib/date-picker/demo/select-in-range.d.ts +7 -0
- package/lib/date-picker/demo/select-in-range.js +77 -0
- package/lib/date-picker/demo/switchable.d.ts +7 -0
- package/lib/date-picker/demo/switchable.js +75 -0
- package/lib/date-picker/demo/time.d.ts +7 -0
- package/lib/date-picker/demo/time.js +50 -0
- package/lib/date-picker/generatePicker/generateRangePicker.d.ts +4 -0
- package/lib/date-picker/generatePicker/generateRangePicker.js +172 -0
- package/lib/date-picker/generatePicker/generateSinglePicker.d.ts +11 -0
- package/lib/date-picker/generatePicker/generateSinglePicker.js +194 -0
- package/lib/date-picker/generatePicker/index.d.ts +62 -0
- package/lib/date-picker/generatePicker/index.js +100 -0
- package/lib/date-picker/generatePicker/interface.d.ts +8 -0
- package/lib/date-picker/generatePicker/interface.js +5 -0
- package/lib/date-picker/index.d.ts +15 -3
- package/lib/date-picker/index.js +16 -0
- package/lib/date-picker/locale/ar_EG.d.ts +3 -0
- package/lib/date-picker/locale/ar_EG.js +31 -0
- package/lib/date-picker/locale/az_AZ.d.ts +3 -0
- package/lib/date-picker/locale/az_AZ.js +24 -0
- package/lib/date-picker/locale/bg_BG.d.ts +3 -0
- package/lib/date-picker/locale/bg_BG.js +27 -0
- package/lib/date-picker/locale/bn_BD.d.ts +3 -0
- package/lib/date-picker/locale/bn_BD.js +34 -0
- package/lib/date-picker/locale/by_BY.d.ts +3 -0
- package/lib/date-picker/locale/by_BY.js +31 -0
- package/lib/date-picker/locale/ca_ES.d.ts +3 -0
- package/lib/date-picker/locale/ca_ES.js +27 -0
- package/lib/date-picker/locale/cs_CZ.d.ts +3 -0
- package/lib/date-picker/locale/cs_CZ.js +27 -0
- package/lib/date-picker/locale/da_DK.d.ts +3 -0
- package/lib/date-picker/locale/da_DK.js +27 -0
- package/lib/date-picker/locale/de_DE.d.ts +3 -0
- package/lib/date-picker/locale/de_DE.js +27 -0
- package/lib/date-picker/locale/el_GR.d.ts +3 -0
- package/lib/date-picker/locale/el_GR.js +27 -0
- package/lib/date-picker/locale/en_GB.d.ts +3 -0
- package/lib/date-picker/locale/en_GB.js +34 -0
- package/lib/date-picker/locale/en_US.d.ts +3 -0
- package/lib/date-picker/locale/en_US.js +34 -0
- package/lib/date-picker/locale/es_ES.d.ts +3 -0
- package/lib/date-picker/locale/es_ES.js +27 -0
- package/lib/date-picker/locale/et_EE.d.ts +3 -0
- package/lib/date-picker/locale/et_EE.js +27 -0
- package/lib/date-picker/locale/fa_IR.d.ts +3 -0
- package/lib/date-picker/locale/fa_IR.js +34 -0
- package/lib/date-picker/locale/fi_FI.d.ts +3 -0
- package/lib/date-picker/locale/fi_FI.js +27 -0
- package/lib/date-picker/locale/fr_BE.d.ts +3 -0
- package/lib/date-picker/locale/fr_BE.js +27 -0
- package/lib/date-picker/locale/fr_CA.d.ts +3 -0
- package/lib/date-picker/locale/fr_CA.js +34 -0
- package/lib/date-picker/locale/fr_FR.d.ts +3 -0
- package/lib/date-picker/locale/fr_FR.js +34 -0
- package/lib/date-picker/locale/ga_IE.d.ts +3 -0
- package/lib/date-picker/locale/ga_IE.js +34 -0
- package/lib/date-picker/locale/gl_ES.d.ts +3 -0
- package/lib/date-picker/locale/gl_ES.js +27 -0
- package/lib/date-picker/locale/he_IL.d.ts +3 -0
- package/lib/date-picker/locale/he_IL.js +27 -0
- package/lib/date-picker/locale/hi_IN.d.ts +3 -0
- package/lib/date-picker/locale/hi_IN.js +34 -0
- package/lib/date-picker/locale/hr_HR.d.ts +3 -0
- package/lib/date-picker/locale/hr_HR.js +34 -0
- package/lib/date-picker/locale/hu_HU.d.ts +3 -0
- package/lib/date-picker/locale/hu_HU.js +27 -0
- package/lib/date-picker/locale/id_ID.d.ts +3 -0
- package/lib/date-picker/locale/id_ID.js +27 -0
- package/lib/date-picker/locale/is_IS.d.ts +3 -0
- package/lib/date-picker/locale/is_IS.js +27 -0
- package/lib/date-picker/locale/it_IT.d.ts +3 -0
- package/lib/date-picker/locale/it_IT.js +27 -0
- package/lib/date-picker/locale/ja_JP.d.ts +3 -0
- package/lib/date-picker/locale/ja_JP.js +27 -0
- package/lib/date-picker/locale/ka_GE.d.ts +3 -0
- package/lib/date-picker/locale/ka_GE.js +31 -0
- package/lib/date-picker/locale/kk_KZ.d.ts +3 -0
- package/lib/date-picker/locale/kk_KZ.js +34 -0
- package/lib/date-picker/locale/kmr_IQ.d.ts +3 -0
- package/lib/date-picker/locale/kmr_IQ.js +27 -0
- package/lib/date-picker/locale/kn_IN.d.ts +3 -0
- package/lib/date-picker/locale/kn_IN.js +27 -0
- package/lib/date-picker/locale/ko_KR.d.ts +3 -0
- package/lib/date-picker/locale/ko_KR.js +27 -0
- package/lib/date-picker/locale/lt_LT.d.ts +3 -0
- package/lib/date-picker/locale/lt_LT.js +34 -0
- package/lib/date-picker/locale/lv_LV.d.ts +3 -0
- package/lib/date-picker/locale/lv_LV.js +27 -0
- package/lib/date-picker/locale/mk_MK.d.ts +3 -0
- package/lib/date-picker/locale/mk_MK.js +27 -0
- package/lib/date-picker/locale/ml_IN.d.ts +3 -0
- package/lib/date-picker/locale/ml_IN.js +34 -0
- package/lib/date-picker/locale/mn_MN.d.ts +3 -0
- package/lib/date-picker/locale/mn_MN.js +27 -0
- package/lib/date-picker/locale/ms_MY.d.ts +3 -0
- package/lib/date-picker/locale/ms_MY.js +27 -0
- package/lib/date-picker/locale/nb_NO.d.ts +3 -0
- package/lib/date-picker/locale/nb_NO.js +34 -0
- package/lib/date-picker/locale/nl_BE.d.ts +3 -0
- package/lib/date-picker/locale/nl_BE.js +34 -0
- package/lib/date-picker/locale/nl_NL.d.ts +3 -0
- package/lib/date-picker/locale/nl_NL.js +34 -0
- package/lib/date-picker/locale/pl_PL.d.ts +3 -0
- package/lib/date-picker/locale/pl_PL.js +27 -0
- package/lib/date-picker/locale/pt_BR.d.ts +3 -0
- package/lib/date-picker/locale/pt_BR.js +27 -0
- package/lib/date-picker/locale/pt_PT.d.ts +3 -0
- package/lib/date-picker/locale/pt_PT.js +55 -0
- package/lib/date-picker/locale/ro_RO.d.ts +3 -0
- package/lib/date-picker/locale/ro_RO.js +27 -0
- package/lib/date-picker/locale/ru_RU.d.ts +4 -0
- package/lib/date-picker/locale/ru_RU.js +35 -0
- package/lib/date-picker/locale/sk_SK.d.ts +3 -0
- package/lib/date-picker/locale/sk_SK.js +27 -0
- package/lib/date-picker/locale/sl_SI.d.ts +3 -0
- package/lib/date-picker/locale/sl_SI.js +52 -0
- package/lib/date-picker/locale/sr_RS.d.ts +3 -0
- package/lib/date-picker/locale/sr_RS.js +34 -0
- package/lib/date-picker/locale/sv_SE.d.ts +3 -0
- package/lib/date-picker/locale/sv_SE.js +34 -0
- package/lib/date-picker/locale/ta_IN.d.ts +3 -0
- package/lib/date-picker/locale/ta_IN.js +28 -0
- package/lib/date-picker/locale/th_TH.d.ts +3 -0
- package/lib/date-picker/locale/th_TH.js +34 -0
- package/lib/date-picker/locale/tr_TR.d.ts +3 -0
- package/lib/date-picker/locale/tr_TR.js +34 -0
- package/lib/date-picker/locale/uk_UA.d.ts +3 -0
- package/lib/date-picker/locale/uk_UA.js +27 -0
- package/lib/date-picker/locale/ur_PK.d.ts +3 -0
- package/lib/date-picker/locale/ur_PK.js +34 -0
- package/lib/date-picker/locale/vi_VN.d.ts +3 -0
- package/lib/date-picker/locale/vi_VN.js +27 -0
- package/lib/date-picker/locale/zh_CN.d.ts +3 -0
- package/lib/date-picker/locale/zh_CN.js +36 -0
- package/lib/date-picker/locale/zh_TW.d.ts +3 -0
- package/lib/date-picker/locale/zh_TW.js +35 -0
- package/lib/date-picker/style/css.js +7 -0
- package/lib/date-picker/style/index-pure.less +363 -0
- package/lib/date-picker/style/index.css +1022 -0
- package/lib/date-picker/style/index.d.ts +3 -0
- package/lib/date-picker/style/index.js +7 -0
- package/lib/date-picker/style/index.less +3 -0
- package/lib/date-picker/style/panel.less +673 -0
- package/lib/date-picker/style/rtl.less +252 -0
- package/lib/date-picker/util.d.ts +4 -0
- package/lib/date-picker/util.js +59 -0
- package/lib/descriptions/components/descriptions.d.ts +6 -0
- package/lib/descriptions/components/descriptions.js +27 -0
- package/lib/descriptions/components/item.d.ts +6 -0
- package/lib/descriptions/components/item.js +28 -0
- package/lib/descriptions/demo/basic.d.ts +6 -0
- package/lib/descriptions/demo/basic.js +35 -0
- package/lib/descriptions/demo/border.d.ts +6 -0
- package/lib/descriptions/demo/border.js +53 -0
- package/lib/descriptions/demo/custom.d.ts +2 -0
- package/lib/descriptions/demo/custom.js +91 -0
- package/lib/descriptions/demo/responsive.d.ts +6 -0
- package/lib/descriptions/demo/responsive.js +48 -0
- package/lib/descriptions/demo/vertical.d.ts +6 -0
- package/lib/descriptions/demo/vertical.js +37 -0
- package/lib/descriptions/demo/verticalBorder.d.ts +6 -0
- package/lib/descriptions/demo/verticalBorder.js +54 -0
- package/lib/descriptions/index.d.ts +10 -9
- package/lib/descriptions/index.js +19 -0
- package/lib/descriptions/style/css.js +5 -0
- package/lib/descriptions/style/index-pure.less +176 -0
- package/lib/descriptions/style/index.css +140 -0
- package/lib/descriptions/style/index.d.ts +2 -0
- package/lib/descriptions/style/index.js +5 -0
- package/lib/descriptions/style/index.less +3 -0
- package/lib/descriptions/style/rtl.less +33 -0
- package/lib/divider/demo/customize-style.d.ts +6 -0
- package/lib/divider/demo/customize-style.js +51 -0
- package/lib/divider/demo/horizontal.d.ts +6 -0
- package/lib/divider/demo/horizontal.js +25 -0
- package/lib/divider/demo/plain.d.ts +6 -0
- package/lib/divider/demo/plain.js +31 -0
- package/lib/divider/demo/vertical.d.ts +6 -0
- package/lib/divider/demo/vertical.js +31 -0
- package/lib/divider/demo/with-text.d.ts +6 -0
- package/lib/divider/demo/with-text.js +27 -0
- package/lib/divider/index.d.ts +7 -6
- package/lib/divider/index.js +29 -0
- package/lib/divider/style/css.js +5 -0
- package/lib/divider/style/index-pure.less +109 -0
- package/lib/divider/style/index.css +111 -0
- package/lib/divider/style/index.d.ts +2 -0
- package/lib/divider/style/index.js +5 -0
- package/lib/divider/style/index.less +3 -0
- package/lib/divider/style/rtl.less +36 -0
- package/lib/drawer/demo/basic-right.d.ts +6 -0
- package/lib/drawer/demo/basic-right.js +56 -0
- package/lib/drawer/demo/extra.d.ts +1 -0
- package/lib/drawer/demo/extra.js +56 -0
- package/lib/drawer/demo/form-in-drawer.d.ts +1 -0
- package/lib/drawer/demo/form-in-drawer.js +136 -0
- package/lib/drawer/demo/multi-level-drawer.d.ts +6 -0
- package/lib/drawer/demo/multi-level-drawer.js +75 -0
- package/lib/drawer/demo/placement.d.ts +6 -0
- package/lib/drawer/demo/placement.js +74 -0
- package/lib/drawer/demo/render-in-current.d.ts +6 -0
- package/lib/drawer/demo/render-in-current.js +63 -0
- package/lib/drawer/demo/size.d.ts +1 -0
- package/lib/drawer/demo/size.js +148 -0
- package/lib/drawer/demo/user-profile.d.ts +6 -0
- package/lib/drawer/demo/user-profile.js +172 -0
- package/lib/drawer/index.d.ts +7 -6
- package/lib/drawer/index.js +28 -0
- package/lib/drawer/style/css.js +5 -0
- package/lib/drawer/style/drawer.less +256 -0
- package/lib/drawer/style/index-pure.less +6 -0
- package/lib/drawer/style/index.css +221 -0
- package/lib/drawer/style/index.d.ts +2 -0
- package/lib/drawer/style/index.js +5 -0
- package/lib/drawer/style/index.less +3 -0
- package/lib/drawer/style/rtl.less +16 -0
- package/lib/dropdown/components/button.d.ts +6 -0
- package/lib/dropdown/components/button.js +28 -0
- package/lib/dropdown/components/dropdown.d.ts +6 -0
- package/lib/dropdown/components/dropdown.js +27 -0
- package/lib/dropdown/demo/arrow.d.ts +6 -0
- package/lib/dropdown/demo/arrow.js +67 -0
- package/lib/dropdown/demo/basic.d.ts +6 -0
- package/lib/dropdown/demo/basic.js +53 -0
- package/lib/dropdown/demo/contextMenu.d.ts +6 -0
- package/lib/dropdown/demo/contextMenu.js +41 -0
- package/lib/dropdown/demo/dropdownButton.d.ts +6 -0
- package/lib/dropdown/demo/dropdownButton.js +81 -0
- package/lib/dropdown/demo/event.d.ts +6 -0
- package/lib/dropdown/demo/event.js +48 -0
- package/lib/dropdown/demo/item.d.ts +6 -0
- package/lib/dropdown/demo/item.js +49 -0
- package/lib/dropdown/demo/overlayVisible.d.ts +6 -0
- package/lib/dropdown/demo/overlayVisible.js +67 -0
- package/lib/dropdown/demo/placement.d.ts +6 -0
- package/lib/dropdown/demo/placement.js +67 -0
- package/lib/dropdown/demo/subMenu.d.ts +6 -0
- package/lib/dropdown/demo/subMenu.js +58 -0
- package/lib/dropdown/demo/trigger.d.ts +6 -0
- package/lib/dropdown/demo/trigger.js +45 -0
- package/lib/dropdown/index.d.ts +10 -9
- package/lib/dropdown/index.js +19 -0
- package/lib/dropdown/style/css.js +7 -0
- package/lib/dropdown/style/index-pure.less +381 -0
- package/lib/dropdown/style/index.css +385 -0
- package/lib/dropdown/style/index.d.ts +3 -0
- package/lib/dropdown/style/index.js +7 -0
- package/lib/dropdown/style/index.less +3 -0
- package/lib/dropdown/style/rtl.less +89 -0
- package/lib/dropdown/style/status.less +14 -0
- package/lib/empty/components/empty.d.ts +6 -0
- package/lib/empty/components/empty.js +27 -0
- package/lib/empty/demo/basic.d.ts +6 -0
- package/lib/empty/demo/basic.js +23 -0
- package/lib/empty/demo/choice.d.ts +6 -0
- package/lib/empty/demo/choice.js +25 -0
- package/lib/empty/demo/custom.d.ts +6 -0
- package/lib/empty/demo/custom.js +33 -0
- package/lib/empty/demo/global.d.ts +6 -0
- package/lib/empty/demo/global.js +86 -0
- package/lib/empty/demo/noDescription.d.ts +6 -0
- package/lib/empty/demo/noDescription.js +25 -0
- package/lib/empty/empty.d.ts +2 -0
- package/lib/empty/empty.js +70 -0
- package/lib/empty/index.d.ts +20 -9
- package/lib/empty/index.js +88 -0
- package/lib/empty/simple.d.ts +2 -0
- package/lib/empty/simple.js +51 -0
- package/lib/empty/style/css.js +5 -0
- package/lib/empty/style/index-pure.less +136 -0
- package/lib/empty/style/index.css +72 -0
- package/lib/empty/style/index.d.ts +2 -0
- package/lib/empty/style/index.js +5 -0
- package/lib/empty/style/index.less +3 -0
- package/lib/empty/style/rtl.less +10 -0
- package/lib/form/ErrorList.d.ts +10 -0
- package/lib/form/ErrorList.js +110 -0
- package/lib/form/Form.d.ts +32 -0
- package/lib/form/Form.js +153 -0
- package/lib/form/FormItem.d.ts +29 -0
- package/lib/form/FormItem.js +343 -0
- package/lib/form/FormItemInput.d.ts +28 -0
- package/lib/form/FormItemInput.js +103 -0
- package/lib/form/FormItemLabel.d.ts +23 -0
- package/lib/form/FormItemLabel.js +132 -0
- package/lib/form/FormList.d.ts +24 -0
- package/lib/form/FormList.js +61 -0
- package/lib/form/context.d.ts +33 -0
- package/lib/form/context.js +42 -0
- package/lib/form/demo/advanced-search/index.d.ts +7 -0
- package/lib/form/demo/advanced-search/index.js +108 -0
- package/lib/form/demo/advanced-search/index.less +41 -0
- package/lib/form/demo/basic.d.ts +6 -0
- package/lib/form/demo/basic.js +73 -0
- package/lib/form/demo/complex-form-control.d.ts +6 -0
- package/lib/form/demo/complex-form-control.js +121 -0
- package/lib/form/demo/control-hooks.d.ts +6 -0
- package/lib/form/demo/control-hooks.js +133 -0
- package/lib/form/demo/control-ref.d.ts +15 -0
- package/lib/form/demo/control-ref.js +162 -0
- package/lib/form/demo/customized-form-controls.d.ts +6 -0
- package/lib/form/demo/customized-form-controls.js +135 -0
- package/lib/form/demo/dynamic-form-item.d.ts +6 -0
- package/lib/form/demo/dynamic-form-item.js +154 -0
- package/lib/form/demo/dynamic-form-items-complex.d.ts +6 -0
- package/lib/form/demo/dynamic-form-items-complex.js +129 -0
- package/lib/form/demo/dynamic-form-items.d.ts +6 -0
- package/lib/form/demo/dynamic-form-items.js +86 -0
- package/lib/form/demo/dynamic-rule.d.ts +6 -0
- package/lib/form/demo/dynamic-rule.js +134 -0
- package/lib/form/demo/form-context.d.ts +6 -0
- package/lib/form/demo/form-context.js +179 -0
- package/lib/form/demo/form-in-modal/index.d.ts +7 -0
- package/lib/form/demo/form-in-modal/index.js +106 -0
- package/lib/form/demo/form-in-modal/index.less +3 -0
- package/lib/form/demo/global-state.d.ts +6 -0
- package/lib/form/demo/global-state.js +66 -0
- package/lib/form/demo/inline-login.d.ts +6 -0
- package/lib/form/demo/inline-login.js +89 -0
- package/lib/form/demo/layout.d.ts +6 -0
- package/lib/form/demo/layout.js +89 -0
- package/lib/form/demo/nest-messages.d.ts +6 -0
- package/lib/form/demo/nest-messages.js +88 -0
- package/lib/form/demo/normal-login.d.ts +6 -0
- package/lib/form/demo/normal-login.js +72 -0
- package/lib/form/demo/register.d.ts +6 -0
- package/lib/form/demo/register.js +265 -0
- package/lib/form/demo/required-mark.d.ts +6 -0
- package/lib/form/demo/required-mark.js +80 -0
- package/lib/form/demo/size.d.ts +6 -0
- package/lib/form/demo/size.js +101 -0
- package/lib/form/demo/time-related-controls.d.ts +6 -0
- package/lib/form/demo/time-related-controls.js +120 -0
- package/lib/form/demo/validate-static.d.ts +6 -0
- package/lib/form/demo/validate-static.js +184 -0
- package/lib/form/demo/without-form-create.d.ts +6 -0
- package/lib/form/demo/without-form-create.js +80 -0
- package/lib/form/hooks/useDebounce.d.ts +1 -0
- package/lib/form/hooks/useDebounce.js +35 -0
- package/lib/form/hooks/useForm.d.ts +15 -0
- package/lib/form/hooks/useForm.js +74 -0
- package/lib/form/hooks/useFrameState.d.ts +3 -0
- package/lib/form/hooks/useFrameState.js +62 -0
- package/lib/form/hooks/useItemRef.d.ts +3 -0
- package/lib/form/hooks/useItemRef.js +44 -0
- package/lib/form/index.d.ts +19 -4
- package/lib/form/index.js +40 -0
- package/lib/form/interface.d.ts +3 -0
- package/lib/form/interface.js +5 -0
- package/lib/form/style/components.less +76 -0
- package/lib/form/style/css.js +9 -0
- package/lib/form/style/horizontal.less +13 -0
- package/lib/form/style/index-pure.less +295 -0
- package/lib/form/style/index.css +874 -0
- package/lib/form/style/index.d.ts +4 -0
- package/lib/form/style/index.js +9 -0
- package/lib/form/style/index.less +3 -0
- package/lib/form/style/inline.less +38 -0
- package/lib/form/style/mixin.less +110 -0
- package/lib/form/style/rtl.less +194 -0
- package/lib/form/style/status.less +293 -0
- package/lib/form/style/vertical.less +87 -0
- package/lib/form/util.d.ts +3 -0
- package/lib/form/util.js +18 -0
- package/lib/grid/RowContext.d.ts +8 -0
- package/lib/grid/RowContext.js +12 -0
- package/lib/grid/col.d.ts +28 -0
- package/lib/grid/col.js +120 -0
- package/lib/grid/demo/basic/index.d.ts +7 -0
- package/lib/grid/demo/basic/index.js +47 -0
- package/lib/grid/demo/basic/index.less +87 -0
- package/lib/grid/hooks/useBreakpoint.d.ts +2 -2
- package/lib/grid/hooks/useBreakpoint.js +13 -0
- package/lib/grid/index.d.ts +11 -10
- package/lib/grid/index.js +31 -0
- package/lib/grid/row.d.ts +14 -0
- package/lib/grid/row.js +151 -0
- package/lib/grid/style/css.js +5 -0
- package/lib/grid/style/index-pure.less +119 -0
- package/lib/grid/style/index.css +5181 -0
- package/lib/grid/style/index.d.ts +2 -0
- package/lib/grid/style/index.js +5 -0
- package/lib/grid/style/index.less +3 -0
- package/lib/grid/style/mixin.less +53 -0
- package/lib/grid/style/rtl.less +68 -0
- package/lib/icon/style/css.js +5 -0
- package/lib/icon/style/index-pure.less +5 -0
- package/lib/icon/style/index.css +4 -0
- package/lib/icon/style/index.d.ts +2 -0
- package/lib/icon/style/index.js +5 -0
- package/lib/icon/style/index.less +3 -0
- package/lib/image/components/image.d.ts +6 -0
- package/lib/image/components/image.js +27 -0
- package/lib/image/components/previewGroup.d.ts +6 -0
- package/lib/image/components/previewGroup.js +28 -0
- package/lib/image/demo/basic.d.ts +6 -0
- package/lib/image/demo/basic.js +26 -0
- package/lib/image/demo/custom.d.ts +6 -0
- package/lib/image/demo/custom.js +29 -0
- package/lib/image/demo/error.d.ts +2 -0
- package/lib/image/demo/error.js +28 -0
- package/lib/image/demo/load.d.ts +6 -0
- package/lib/image/demo/load.js +47 -0
- package/lib/image/demo/many.d.ts +6 -0
- package/lib/image/demo/many.js +29 -0
- package/lib/image/demo/photo.d.ts +6 -0
- package/lib/image/demo/photo.js +62 -0
- package/lib/image/index.d.ts +10 -9
- package/lib/image/index.js +19 -0
- package/lib/image/style/css.js +5 -0
- package/lib/image/style/index-pure.less +173 -0
- package/lib/image/style/index.css +215 -0
- package/lib/image/style/index.d.ts +2 -0
- package/lib/image/style/index.js +5 -0
- package/lib/image/style/index.less +3 -0
- package/lib/index.d.ts +119 -115
- package/lib/index.js +425 -654
- package/lib/input/components/group.d.ts +6 -0
- package/lib/input/components/group.js +23 -0
- package/lib/input/components/input.d.ts +6 -0
- package/lib/input/components/input.js +28 -0
- package/lib/input/components/password.d.ts +6 -0
- package/lib/input/components/password.js +29 -0
- package/lib/input/components/search.d.ts +6 -0
- package/lib/input/components/search.js +29 -0
- package/lib/input/components/textArea.d.ts +6 -0
- package/lib/input/components/textArea.js +29 -0
- package/lib/input/demo/addon.d.ts +6 -0
- package/lib/input/demo/addon.js +76 -0
- package/lib/input/demo/allowClear.d.ts +6 -0
- package/lib/input/demo/allowClear.js +37 -0
- package/lib/input/demo/autosize-textarea.d.ts +6 -0
- package/lib/input/demo/autosize-textarea.js +68 -0
- package/lib/input/demo/basic.d.ts +6 -0
- package/lib/input/demo/basic.js +25 -0
- package/lib/input/demo/borderless.d.ts +6 -0
- package/lib/input/demo/borderless.js +26 -0
- package/lib/input/demo/focus.d.ts +6 -0
- package/lib/input/demo/focus.js +87 -0
- package/lib/input/demo/group/index.d.ts +6 -0
- package/lib/input/demo/group/index.js +234 -0
- package/lib/input/demo/group/index.less +25 -0
- package/lib/input/demo/password-input.d.ts +6 -0
- package/lib/input/demo/password-input.js +36 -0
- package/lib/input/demo/presuffix.d.ts +6 -0
- package/lib/input/demo/presuffix.js +46 -0
- package/lib/input/demo/search-input-loading.d.ts +6 -0
- package/lib/input/demo/search-input-loading.js +37 -0
- package/lib/input/demo/search.d.ts +6 -0
- package/lib/input/demo/search.js +71 -0
- package/lib/input/demo/size.d.ts +6 -0
- package/lib/input/demo/size.js +36 -0
- package/lib/input/demo/textarea-count.d.ts +6 -0
- package/lib/input/demo/textarea-count.js +33 -0
- package/lib/input/demo/textarea.d.ts +6 -0
- package/lib/input/demo/textarea.js +27 -0
- package/lib/input/demo/tooltip/index.d.ts +7 -0
- package/lib/input/demo/tooltip/index.js +48 -0
- package/lib/input/demo/tooltip/index.less +11 -0
- package/lib/input/demo/tooltip/numericInput.d.ts +2 -0
- package/lib/input/demo/tooltip/numericInput.js +81 -0
- package/lib/input/index.d.ts +16 -15
- package/lib/input/index.js +28 -0
- package/lib/input/style/IE11.less +20 -0
- package/lib/input/style/affix.less +63 -0
- package/lib/input/style/allow-clear.less +43 -0
- package/lib/input/style/css.js +3 -0
- package/lib/input/style/index-pure.less +63 -0
- package/lib/input/style/index.css +742 -0
- package/lib/input/style/index.d.ts +1 -0
- package/lib/input/style/index.js +3 -0
- package/lib/input/style/index.less +3 -0
- package/lib/input/style/mixin.less +423 -0
- package/lib/input/style/rtl.less +205 -0
- package/lib/input/style/search-input.less +71 -0
- package/lib/input-number/demo/basic.d.ts +2 -0
- package/lib/input-number/demo/basic.js +32 -0
- package/lib/input-number/demo/decimal.d.ts +6 -0
- package/lib/input-number/demo/decimal.js +37 -0
- package/lib/input-number/demo/disabled.d.ts +2 -0
- package/lib/input-number/demo/disabled.js +52 -0
- package/lib/input-number/demo/formatter.d.ts +6 -0
- package/lib/input-number/demo/formatter.js +47 -0
- package/lib/input-number/demo/keyboard.d.ts +2 -0
- package/lib/input-number/demo/keyboard.js +42 -0
- package/lib/input-number/demo/nowrap.d.ts +6 -0
- package/lib/input-number/demo/nowrap.js +28 -0
- package/lib/input-number/demo/outwrap.d.ts +6 -0
- package/lib/input-number/demo/outwrap.js +42 -0
- package/lib/input-number/demo/threeSize.d.ts +6 -0
- package/lib/input-number/demo/threeSize.js +46 -0
- package/lib/{inputNumber → input-number}/index.d.ts +8 -7
- package/lib/input-number/index.js +36 -0
- package/lib/input-number/style/css.js +5 -0
- package/lib/input-number/style/index-pure.less +222 -0
- package/lib/input-number/style/index.css +600 -0
- package/lib/input-number/style/index.d.ts +2 -0
- package/lib/input-number/style/index.js +5 -0
- package/lib/input-number/style/index.less +3 -0
- package/lib/input-number/style/rtl.less +32 -0
- package/lib/layout/components/layout.d.ts +10 -0
- package/lib/layout/components/layout.js +36 -0
- package/lib/layout/components/sider.d.ts +6 -0
- package/lib/layout/components/sider.js +28 -0
- package/lib/layout/demo/basic.d.ts +6 -0
- package/lib/layout/demo/basic.js +28 -0
- package/lib/layout/demo/customTrigger.d.ts +7 -0
- package/lib/layout/demo/customTrigger.js +83 -0
- package/lib/layout/demo/fixed/index.d.ts +8 -0
- package/lib/layout/demo/fixed/index.js +68 -0
- package/lib/layout/demo/fixed/index.less +13 -0
- package/lib/layout/demo/fixedSider/index.d.ts +8 -0
- package/lib/layout/demo/fixedSider/index.js +95 -0
- package/lib/layout/demo/fixedSider/index.less +11 -0
- package/lib/layout/demo/responsive.d.ts +7 -0
- package/lib/layout/demo/responsive.js +77 -0
- package/lib/layout/demo/side/index.d.ts +11 -0
- package/lib/layout/demo/side/index.js +121 -0
- package/lib/layout/demo/side/index.less +9 -0
- package/lib/layout/demo/top.d.ts +8 -0
- package/lib/layout/demo/top.js +56 -0
- package/lib/layout/demo/topSide.d.ts +6 -0
- package/lib/layout/demo/topSide.js +113 -0
- package/lib/layout/demo/topSide2.d.ts +6 -0
- package/lib/layout/demo/topSide2.js +106 -0
- package/lib/layout/index.d.ts +13 -12
- package/lib/layout/index.js +28 -0
- package/lib/layout/style/css.js +5 -0
- package/lib/layout/style/index-pure.less +144 -0
- package/lib/layout/style/index.css +128 -0
- package/lib/layout/style/index.d.ts +2 -0
- package/lib/layout/style/index.js +5 -0
- package/lib/layout/style/index.less +3 -0
- package/lib/layout/style/light.less +11 -0
- package/lib/layout/style/rtl.less +10 -0
- package/lib/list/components/item.d.ts +6 -0
- package/lib/list/components/item.js +28 -0
- package/lib/list/components/list.d.ts +6 -0
- package/lib/list/components/list.js +27 -0
- package/lib/list/components/meta.d.ts +6 -0
- package/lib/list/components/meta.js +28 -0
- package/lib/list/demo/basics.d.ts +6 -0
- package/lib/list/demo/basics.js +46 -0
- package/lib/list/demo/grid.d.ts +6 -0
- package/lib/list/demo/grid.js +43 -0
- package/lib/list/demo/infinite.d.ts +6 -0
- package/lib/list/demo/infinite.js +185 -0
- package/lib/list/demo/more.d.ts +6 -0
- package/lib/list/demo/more.js +140 -0
- package/lib/list/demo/responsive.d.ts +6 -0
- package/lib/list/demo/responsive.js +52 -0
- package/lib/list/demo/roll.d.ts +6 -0
- package/lib/list/demo/roll.js +113 -0
- package/lib/list/demo/simple.d.ts +6 -0
- package/lib/list/demo/simple.js +58 -0
- package/lib/list/demo/verticalRow.d.ts +6 -0
- package/lib/list/demo/verticalRow.js +85 -0
- package/lib/list/index.d.ts +15 -14
- package/lib/list/index.js +23 -0
- package/lib/list/style/bordered.less +44 -0
- package/lib/list/style/css.js +13 -0
- package/lib/list/style/customize.less +13 -0
- package/lib/list/style/index-pure.less +241 -0
- package/lib/list/style/index.css +317 -0
- package/lib/list/style/index.d.ts +6 -0
- package/lib/list/style/index.js +13 -0
- package/lib/list/style/index.less +3 -0
- package/lib/list/style/responsive.less +40 -0
- package/lib/list/style/rtl.less +139 -0
- package/lib/locale/ar_EG.d.ts +3 -0
- package/lib/locale/ar_EG.js +131 -0
- package/lib/locale/az_AZ.d.ts +3 -0
- package/lib/locale/az_AZ.js +60 -0
- package/lib/locale/bg_BG.d.ts +3 -0
- package/lib/locale/bg_BG.js +58 -0
- package/lib/locale/bn_BD.d.ts +3 -0
- package/lib/locale/bn_BD.js +145 -0
- package/lib/locale/by_BY.d.ts +3 -0
- package/lib/locale/by_BY.js +139 -0
- package/lib/locale/ca_ES.d.ts +3 -0
- package/lib/locale/ca_ES.js +139 -0
- package/lib/locale/cs_CZ.d.ts +3 -0
- package/lib/locale/cs_CZ.js +69 -0
- package/lib/locale/da_DK.d.ts +3 -0
- package/lib/locale/da_DK.js +68 -0
- package/lib/locale/de_DE.d.ts +3 -0
- package/lib/locale/de_DE.js +138 -0
- package/lib/locale/default.d.ts +3 -0
- package/lib/locale/default.js +147 -0
- package/lib/locale/el_GR.d.ts +3 -0
- package/lib/locale/el_GR.js +58 -0
- package/lib/locale/en_GB.d.ts +3 -0
- package/lib/locale/en_GB.js +119 -0
- package/lib/locale/en_US.d.ts +2 -0
- package/lib/locale/en_US.js +13 -0
- package/lib/locale/es_ES.d.ts +3 -0
- package/lib/locale/es_ES.js +145 -0
- package/lib/locale/et_EE.d.ts +3 -0
- package/lib/locale/et_EE.js +58 -0
- package/lib/locale/fa_IR.d.ts +3 -0
- package/lib/locale/fa_IR.js +145 -0
- package/lib/locale/fi_FI.d.ts +3 -0
- package/lib/locale/fi_FI.js +65 -0
- package/lib/locale/fr_BE.d.ts +3 -0
- package/lib/locale/fr_BE.js +62 -0
- package/lib/locale/fr_CA.d.ts +3 -0
- package/lib/locale/fr_CA.js +74 -0
- package/lib/locale/fr_FR.d.ts +3 -0
- package/lib/locale/fr_FR.js +142 -0
- package/lib/locale/ga_IE.d.ts +3 -0
- package/lib/locale/ga_IE.js +138 -0
- package/lib/locale/gl_ES.d.ts +3 -0
- package/lib/locale/gl_ES.js +125 -0
- package/lib/locale/he_IL.d.ts +3 -0
- package/lib/locale/he_IL.js +131 -0
- package/lib/locale/hi_IN.d.ts +3 -0
- package/lib/locale/hi_IN.js +145 -0
- package/lib/locale/hr_HR.d.ts +3 -0
- package/lib/locale/hr_HR.js +144 -0
- package/lib/locale/hu_HU.d.ts +3 -0
- package/lib/locale/hu_HU.js +59 -0
- package/lib/locale/hy_AM.d.ts +3 -0
- package/lib/locale/hy_AM.js +116 -0
- package/lib/locale/id_ID.d.ts +3 -0
- package/lib/locale/id_ID.js +60 -0
- package/lib/locale/is_IS.d.ts +3 -0
- package/lib/locale/is_IS.js +58 -0
- package/lib/locale/it_IT.d.ts +3 -0
- package/lib/locale/it_IT.js +74 -0
- package/lib/locale/ja_JP.d.ts +3 -0
- package/lib/locale/ja_JP.js +117 -0
- package/lib/locale/ka_GE.d.ts +3 -0
- package/lib/locale/ka_GE.js +145 -0
- package/lib/locale/kk_KZ.d.ts +3 -0
- package/lib/locale/kk_KZ.js +139 -0
- package/lib/locale/kmr_IQ.d.ts +3 -0
- package/lib/locale/kmr_IQ.js +58 -0
- package/lib/locale/kn_IN.d.ts +3 -0
- package/lib/locale/kn_IN.js +66 -0
- package/lib/locale/ko_KR.d.ts +3 -0
- package/lib/locale/ko_KR.js +111 -0
- package/lib/locale/ku_IQ.d.ts +3 -0
- package/lib/locale/ku_IQ.js +61 -0
- package/lib/locale/lt_LT.d.ts +3 -0
- package/lib/locale/lt_LT.js +136 -0
- package/lib/locale/lv_LV.d.ts +3 -0
- package/lib/locale/lv_LV.js +58 -0
- package/lib/locale/mk_MK.d.ts +3 -0
- package/lib/locale/mk_MK.js +73 -0
- package/lib/locale/ml_IN.d.ts +3 -0
- package/lib/locale/ml_IN.js +145 -0
- package/lib/locale/mn_MN.d.ts +3 -0
- package/lib/locale/mn_MN.js +58 -0
- package/lib/locale/ms_MY.d.ts +3 -0
- package/lib/locale/ms_MY.js +78 -0
- package/lib/locale/nb_NO.d.ts +3 -0
- package/lib/locale/nb_NO.js +139 -0
- package/lib/locale/ne_NP.d.ts +3 -0
- package/lib/locale/ne_NP.js +59 -0
- package/lib/locale/nl_BE.d.ts +3 -0
- package/lib/locale/nl_BE.js +145 -0
- package/lib/locale/nl_NL.d.ts +3 -0
- package/lib/locale/nl_NL.js +145 -0
- package/lib/locale/pl_PL.d.ts +3 -0
- package/lib/locale/pl_PL.js +61 -0
- package/lib/locale/pt_BR.d.ts +3 -0
- package/lib/locale/pt_BR.js +145 -0
- package/lib/locale/pt_PT.d.ts +3 -0
- package/lib/locale/pt_PT.js +59 -0
- package/lib/locale/ro_RO.d.ts +3 -0
- package/lib/locale/ro_RO.js +145 -0
- package/lib/locale/ru_RU.d.ts +3 -0
- package/lib/locale/ru_RU.js +143 -0
- package/lib/locale/sk_SK.d.ts +3 -0
- package/lib/locale/sk_SK.js +77 -0
- package/lib/locale/sl_SI.d.ts +3 -0
- package/lib/locale/sl_SI.js +58 -0
- package/lib/locale/sr_RS.d.ts +3 -0
- package/lib/locale/sr_RS.js +145 -0
- package/lib/locale/sv_SE.d.ts +3 -0
- package/lib/locale/sv_SE.js +145 -0
- package/lib/locale/ta_IN.d.ts +3 -0
- package/lib/locale/ta_IN.js +78 -0
- package/lib/locale/th_TH.d.ts +3 -0
- package/lib/locale/th_TH.js +141 -0
- package/lib/locale/tr_TR.d.ts +3 -0
- package/lib/locale/tr_TR.js +143 -0
- package/lib/locale/uk_UA.d.ts +3 -0
- package/lib/locale/uk_UA.js +58 -0
- package/lib/locale/ur_PK.d.ts +3 -0
- package/lib/locale/ur_PK.js +145 -0
- package/lib/locale/vi_VN.d.ts +3 -0
- package/lib/locale/vi_VN.js +58 -0
- package/lib/locale/zh_CN.d.ts +3 -0
- package/lib/locale/zh_CN.js +146 -0
- package/lib/locale/zh_HK.d.ts +3 -0
- package/lib/locale/zh_HK.js +142 -0
- package/lib/locale/zh_TW.d.ts +3 -0
- package/lib/locale/zh_TW.js +136 -0
- package/lib/locale-provider/LocaleReceiver.d.ts +20 -0
- package/lib/locale-provider/LocaleReceiver.js +91 -0
- package/lib/locale-provider/ar_EG.d.ts +2 -0
- package/lib/locale-provider/ar_EG.js +13 -0
- package/lib/locale-provider/az_AZ.d.ts +2 -0
- package/lib/locale-provider/az_AZ.js +13 -0
- package/lib/locale-provider/bg_BG.d.ts +2 -0
- package/lib/locale-provider/bg_BG.js +13 -0
- package/lib/locale-provider/bn_BD.d.ts +2 -0
- package/lib/locale-provider/bn_BD.js +13 -0
- package/lib/locale-provider/by_BY.d.ts +2 -0
- package/lib/locale-provider/by_BY.js +13 -0
- package/lib/locale-provider/ca_ES.d.ts +2 -0
- package/lib/locale-provider/ca_ES.js +13 -0
- package/lib/locale-provider/context.d.ts +6 -0
- package/lib/locale-provider/context.js +12 -0
- package/lib/locale-provider/cs_CZ.d.ts +2 -0
- package/lib/locale-provider/cs_CZ.js +13 -0
- package/lib/locale-provider/da_DK.d.ts +2 -0
- package/lib/locale-provider/da_DK.js +13 -0
- package/lib/locale-provider/de_DE.d.ts +2 -0
- package/lib/locale-provider/de_DE.js +13 -0
- package/lib/locale-provider/default.d.ts +2 -0
- package/lib/locale-provider/default.js +13 -0
- package/lib/locale-provider/el_GR.d.ts +2 -0
- package/lib/locale-provider/el_GR.js +13 -0
- package/lib/locale-provider/en_GB.d.ts +2 -0
- package/lib/locale-provider/en_GB.js +13 -0
- package/lib/locale-provider/en_US.d.ts +2 -0
- package/lib/locale-provider/en_US.js +13 -0
- package/lib/locale-provider/es_ES.d.ts +2 -0
- package/lib/locale-provider/es_ES.js +13 -0
- package/lib/locale-provider/et_EE.d.ts +2 -0
- package/lib/locale-provider/et_EE.js +13 -0
- package/lib/locale-provider/fa_IR.d.ts +2 -0
- package/lib/locale-provider/fa_IR.js +13 -0
- package/lib/locale-provider/fi_FI.d.ts +2 -0
- package/lib/locale-provider/fi_FI.js +13 -0
- package/lib/locale-provider/fr_BE.d.ts +2 -0
- package/lib/locale-provider/fr_BE.js +13 -0
- package/lib/locale-provider/fr_CA.d.ts +2 -0
- package/lib/locale-provider/fr_CA.js +13 -0
- package/lib/locale-provider/fr_FR.d.ts +2 -0
- package/lib/locale-provider/fr_FR.js +13 -0
- package/lib/locale-provider/ga_IE.d.ts +2 -0
- package/lib/locale-provider/ga_IE.js +13 -0
- package/lib/locale-provider/gl_ES.d.ts +2 -0
- package/lib/locale-provider/gl_ES.js +13 -0
- package/lib/locale-provider/he_IL.d.ts +2 -0
- package/lib/locale-provider/he_IL.js +13 -0
- package/lib/locale-provider/hi_IN.d.ts +2 -0
- package/lib/locale-provider/hi_IN.js +13 -0
- package/lib/locale-provider/hr_HR.d.ts +2 -0
- package/lib/locale-provider/hr_HR.js +13 -0
- package/lib/locale-provider/hu_HU.d.ts +2 -0
- package/lib/locale-provider/hu_HU.js +13 -0
- package/lib/locale-provider/hy_AM.d.ts +2 -0
- package/lib/locale-provider/hy_AM.js +13 -0
- package/lib/locale-provider/id_ID.d.ts +2 -0
- package/lib/locale-provider/id_ID.js +13 -0
- package/lib/locale-provider/index.d.ts +53 -0
- package/lib/locale-provider/index.js +92 -0
- package/lib/locale-provider/is_IS.d.ts +2 -0
- package/lib/locale-provider/is_IS.js +13 -0
- package/lib/locale-provider/it_IT.d.ts +2 -0
- package/lib/locale-provider/it_IT.js +13 -0
- package/lib/locale-provider/ja_JP.d.ts +2 -0
- package/lib/locale-provider/ja_JP.js +13 -0
- package/lib/locale-provider/ka_GE.d.ts +2 -0
- package/lib/locale-provider/ka_GE.js +13 -0
- package/lib/locale-provider/kk_KZ.d.ts +2 -0
- package/lib/locale-provider/kk_KZ.js +13 -0
- package/lib/locale-provider/kmr_IQ.d.ts +2 -0
- package/lib/locale-provider/kmr_IQ.js +13 -0
- package/lib/locale-provider/kn_IN.d.ts +2 -0
- package/lib/locale-provider/kn_IN.js +13 -0
- package/lib/locale-provider/ko_KR.d.ts +2 -0
- package/lib/locale-provider/ko_KR.js +13 -0
- package/lib/locale-provider/ku_IQ.d.ts +2 -0
- package/lib/locale-provider/ku_IQ.js +13 -0
- package/lib/locale-provider/lt_LT.d.ts +2 -0
- package/lib/locale-provider/lt_LT.js +13 -0
- package/lib/locale-provider/lv_LV.d.ts +2 -0
- package/lib/locale-provider/lv_LV.js +13 -0
- package/lib/locale-provider/mk_MK.d.ts +2 -0
- package/lib/locale-provider/mk_MK.js +13 -0
- package/lib/locale-provider/ml_IN.d.ts +2 -0
- package/lib/locale-provider/ml_IN.js +13 -0
- package/lib/locale-provider/mn_MN.d.ts +2 -0
- package/lib/locale-provider/mn_MN.js +13 -0
- package/lib/locale-provider/ms_MY.d.ts +2 -0
- package/lib/locale-provider/ms_MY.js +13 -0
- package/lib/locale-provider/nb_NO.d.ts +2 -0
- package/lib/locale-provider/nb_NO.js +13 -0
- package/lib/locale-provider/ne_NP.d.ts +2 -0
- package/lib/locale-provider/ne_NP.js +13 -0
- package/lib/locale-provider/nl_BE.d.ts +2 -0
- package/lib/locale-provider/nl_BE.js +13 -0
- package/lib/locale-provider/nl_NL.d.ts +2 -0
- package/lib/locale-provider/nl_NL.js +13 -0
- package/lib/locale-provider/pl_PL.d.ts +2 -0
- package/lib/locale-provider/pl_PL.js +13 -0
- package/lib/locale-provider/pt_BR.d.ts +2 -0
- package/lib/locale-provider/pt_BR.js +13 -0
- package/lib/locale-provider/pt_PT.d.ts +2 -0
- package/lib/locale-provider/pt_PT.js +13 -0
- package/lib/locale-provider/ro_RO.d.ts +2 -0
- package/lib/locale-provider/ro_RO.js +13 -0
- package/lib/locale-provider/ru_RU.d.ts +2 -0
- package/lib/locale-provider/ru_RU.js +13 -0
- package/lib/locale-provider/sk_SK.d.ts +2 -0
- package/lib/locale-provider/sk_SK.js +13 -0
- package/lib/locale-provider/sl_SI.d.ts +2 -0
- package/lib/locale-provider/sl_SI.js +13 -0
- package/lib/locale-provider/sr_RS.d.ts +2 -0
- package/lib/locale-provider/sr_RS.js +13 -0
- package/lib/locale-provider/style/css.js +3 -0
- package/lib/locale-provider/style/index-pure.less +2 -0
- package/lib/locale-provider/style/index.css +4 -0
- package/lib/locale-provider/style/index.d.ts +1 -0
- package/lib/locale-provider/style/index.js +3 -0
- package/lib/locale-provider/style/index.less +3 -0
- package/lib/locale-provider/sv_SE.d.ts +2 -0
- package/lib/locale-provider/sv_SE.js +13 -0
- package/lib/locale-provider/ta_IN.d.ts +2 -0
- package/lib/locale-provider/ta_IN.js +13 -0
- package/lib/locale-provider/th_TH.d.ts +2 -0
- package/lib/locale-provider/th_TH.js +13 -0
- package/lib/locale-provider/tr_TR.d.ts +2 -0
- package/lib/locale-provider/tr_TR.js +13 -0
- package/lib/locale-provider/uk_UA.d.ts +2 -0
- package/lib/locale-provider/uk_UA.js +13 -0
- package/lib/locale-provider/ur_PK.d.ts +2 -0
- package/lib/locale-provider/ur_PK.js +13 -0
- package/lib/locale-provider/vi_VN.d.ts +2 -0
- package/lib/locale-provider/vi_VN.js +13 -0
- package/lib/locale-provider/zh_CN.d.ts +2 -0
- package/lib/locale-provider/zh_CN.js +13 -0
- package/lib/locale-provider/zh_HK.d.ts +2 -0
- package/lib/locale-provider/zh_HK.js +13 -0
- package/lib/locale-provider/zh_TW.d.ts +2 -0
- package/lib/locale-provider/zh_TW.js +13 -0
- package/lib/mentions/components/mentions.d.ts +6 -0
- package/lib/mentions/components/mentions.js +34 -0
- package/lib/mentions/components/option.d.ts +6 -0
- package/lib/mentions/components/option.js +28 -0
- package/lib/mentions/demo/async.d.ts +6 -0
- package/lib/mentions/demo/async.js +93 -0
- package/lib/mentions/demo/autoSize.d.ts +6 -0
- package/lib/mentions/demo/autoSize.js +35 -0
- package/lib/mentions/demo/basic.d.ts +2 -0
- package/lib/mentions/demo/basic.js +46 -0
- package/lib/mentions/demo/disabled.d.ts +6 -0
- package/lib/mentions/demo/disabled.js +50 -0
- package/lib/mentions/demo/prefix.d.ts +6 -0
- package/lib/mentions/demo/prefix.js +58 -0
- package/lib/mentions/demo/top.d.ts +2 -0
- package/lib/mentions/demo/top.js +35 -0
- package/lib/mentions/index.d.ts +11 -10
- package/lib/mentions/index.js +19 -0
- package/lib/mentions/style/css.js +7 -0
- package/lib/mentions/style/index-pure.less +166 -0
- package/lib/mentions/style/index.css +264 -0
- package/lib/mentions/style/index.d.ts +3 -0
- package/lib/mentions/style/index.js +7 -0
- package/lib/mentions/style/index.less +3 -0
- package/lib/mentions/style/rtl.less +10 -0
- package/lib/menu/components/divider.d.ts +7 -0
- package/lib/menu/components/divider.js +28 -0
- package/lib/menu/components/item.d.ts +6 -0
- package/lib/menu/components/item.js +28 -0
- package/lib/menu/components/itemGroup.d.ts +12 -0
- package/lib/menu/components/itemGroup.js +28 -0
- package/lib/menu/components/menu.d.ts +6 -0
- package/lib/menu/components/menu.js +34 -0
- package/lib/menu/components/subMenu.d.ts +6 -0
- package/lib/menu/components/subMenu.js +28 -0
- package/lib/menu/demo/horizontal.d.ts +6 -0
- package/lib/menu/demo/horizontal.js +78 -0
- package/lib/menu/demo/inline-collapsed.d.ts +6 -0
- package/lib/menu/demo/inline-collapsed.js +96 -0
- package/lib/menu/demo/inline.d.ts +6 -0
- package/lib/menu/demo/inline.js +84 -0
- package/lib/menu/demo/sider-current.d.ts +6 -0
- package/lib/menu/demo/sider-current.js +99 -0
- package/lib/menu/demo/theme.d.ts +6 -0
- package/lib/menu/demo/theme.js +106 -0
- package/lib/menu/demo/vertical.d.ts +5 -0
- package/lib/menu/demo/vertical.js +79 -0
- package/lib/menu/index.d.ts +16 -15
- package/lib/menu/index.js +28 -0
- package/lib/menu/style/css.js +7 -0
- package/lib/menu/style/dark.less +155 -0
- package/lib/menu/style/index-pure.less +674 -0
- package/lib/menu/style/index.css +909 -0
- package/lib/menu/style/index.d.ts +3 -0
- package/lib/menu/style/index.js +7 -0
- package/lib/menu/style/index.less +3 -0
- package/lib/menu/style/light.less +12 -0
- package/lib/menu/style/rtl.less +164 -0
- package/lib/menu/style/status.less +48 -0
- package/lib/message/demo/custom-style.d.ts +6 -0
- package/lib/message/demo/custom-style.js +35 -0
- package/lib/message/demo/duration.d.ts +6 -0
- package/lib/message/demo/duration.js +29 -0
- package/lib/message/demo/hooks.d.ts +6 -0
- package/lib/message/demo/hooks.js +52 -0
- package/lib/message/demo/info.d.ts +6 -0
- package/lib/message/demo/info.js +30 -0
- package/lib/message/demo/loading.d.ts +6 -0
- package/lib/message/demo/loading.js +32 -0
- package/lib/message/demo/other.d.ts +6 -0
- package/lib/message/demo/other.js +41 -0
- package/lib/message/demo/thenable.d.ts +6 -0
- package/lib/message/demo/thenable.js +33 -0
- package/lib/message/demo/update.d.ts +6 -0
- package/lib/message/demo/update.js +43 -0
- package/lib/message/index.d.ts +8 -7
- package/lib/message/index.js +14 -0
- package/lib/message/style/css.js +5 -0
- package/lib/message/style/index-pure.less +74 -0
- package/lib/message/style/index.css +92 -0
- package/lib/message/style/index.d.ts +2 -0
- package/lib/message/style/index.js +5 -0
- package/lib/message/style/index.less +3 -0
- package/lib/message/style/rtl.less +17 -0
- package/lib/modal/ConfirmDialog.d.ts +10 -0
- package/lib/modal/ConfirmDialog.js +132 -0
- package/lib/modal/Modal.d.ts +97 -0
- package/lib/modal/Modal.js +142 -0
- package/lib/modal/components/modal.d.ts +8 -0
- package/lib/modal/components/modal.js +27 -0
- package/lib/modal/confirm.d.ts +20 -0
- package/lib/modal/confirm.js +217 -0
- package/lib/modal/demo/async.d.ts +6 -0
- package/lib/modal/demo/async.js +73 -0
- package/lib/modal/demo/basic.d.ts +6 -0
- package/lib/modal/demo/basic.js +56 -0
- package/lib/modal/demo/button-props.d.ts +15 -0
- package/lib/modal/demo/button-props.js +94 -0
- package/lib/modal/demo/confirm-router.d.ts +6 -0
- package/lib/modal/demo/confirm-router.js +52 -0
- package/lib/modal/demo/confirm.d.ts +6 -0
- package/lib/modal/demo/confirm.js +106 -0
- package/lib/modal/demo/footer.d.ts +16 -0
- package/lib/modal/demo/footer.js +110 -0
- package/lib/modal/demo/hooks.d.ts +6 -0
- package/lib/modal/demo/hooks.js +65 -0
- package/lib/modal/demo/info.d.ts +6 -0
- package/lib/modal/demo/info.js +59 -0
- package/lib/modal/demo/locale.d.ts +6 -0
- package/lib/modal/demo/locale.js +101 -0
- package/lib/modal/demo/manual.d.ts +6 -0
- package/lib/modal/demo/manual.js +45 -0
- package/lib/modal/demo/modal-render.d.ts +24 -0
- package/lib/modal/demo/modal-render.js +156 -0
- package/lib/modal/demo/position.d.ts +15 -0
- package/lib/modal/demo/position.js +110 -0
- package/lib/modal/demo/width.d.ts +6 -0
- package/lib/modal/demo/width.js +52 -0
- package/lib/modal/destroyFns.d.ts +2 -0
- package/lib/modal/destroyFns.js +9 -0
- package/lib/modal/index.d.ts +11 -13
- package/lib/modal/index.js +62 -0
- package/lib/modal/locale.d.ts +7 -0
- package/lib/modal/locale.js +27 -0
- package/lib/modal/style/confirm.less +74 -0
- package/lib/modal/style/css.js +7 -0
- package/lib/modal/style/index-pure.less +8 -0
- package/lib/modal/style/index.css +253 -0
- package/lib/modal/style/index.d.ts +3 -0
- package/lib/modal/style/index.js +7 -0
- package/lib/modal/style/index.less +3 -0
- package/lib/modal/style/modal.less +134 -0
- package/lib/modal/style/rtl.less +73 -0
- package/lib/modal/useModal/HookModal.d.ts +12 -0
- package/lib/modal/useModal/HookModal.js +97 -0
- package/lib/modal/useModal/index.d.ts +3 -0
- package/lib/modal/useModal/index.js +125 -0
- package/lib/notification/demo/basic.d.ts +6 -0
- package/lib/notification/demo/basic.js +36 -0
- package/lib/notification/demo/custom-icon.d.ts +6 -0
- package/lib/notification/demo/custom-icon.js +40 -0
- package/lib/notification/demo/custom-style.d.ts +6 -0
- package/lib/notification/demo/custom-style.js +37 -0
- package/lib/notification/demo/duration.d.ts +6 -0
- package/lib/notification/demo/duration.js +36 -0
- package/lib/notification/demo/hooks.d.ts +6 -0
- package/lib/notification/demo/hooks.js +73 -0
- package/lib/notification/demo/placement.d.ts +6 -0
- package/lib/notification/demo/placement.js +55 -0
- package/lib/notification/demo/update.d.ts +6 -0
- package/lib/notification/demo/update.js +44 -0
- package/lib/notification/demo/with-btn.d.ts +6 -0
- package/lib/notification/demo/with-btn.js +50 -0
- package/lib/notification/demo/with-icon.d.ts +6 -0
- package/lib/notification/demo/with-icon.js +48 -0
- package/lib/notification/index.d.ts +5 -4
- package/lib/notification/index.js +13 -0
- package/lib/notification/style/css.js +5 -0
- package/lib/notification/style/index-pure.less +217 -0
- package/lib/notification/style/index.css +259 -0
- package/lib/notification/style/index.d.ts +2 -0
- package/lib/notification/style/index.js +5 -0
- package/lib/notification/style/index.less +3 -0
- package/lib/notification/style/rtl.less +53 -0
- package/lib/page-header/demo/basic.d.ts +6 -0
- package/lib/page-header/demo/basic.js +30 -0
- package/lib/page-header/demo/breadcrumb.d.ts +6 -0
- package/lib/page-header/demo/breadcrumb.js +40 -0
- package/lib/page-header/demo/combination.d.ts +6 -0
- package/lib/page-header/demo/combination.js +135 -0
- package/lib/page-header/demo/ghost.d.ts +6 -0
- package/lib/page-header/demo/ghost.js +55 -0
- package/lib/page-header/demo/multiform.d.ts +6 -0
- package/lib/page-header/demo/multiform.js +84 -0
- package/lib/page-header/demo/responsive.d.ts +6 -0
- package/lib/page-header/demo/responsive.js +101 -0
- package/lib/page-header/index.d.ts +7 -6
- package/lib/page-header/index.js +29 -0
- package/lib/page-header/style/css.js +7 -0
- package/lib/page-header/style/index-pure.less +127 -0
- package/lib/page-header/style/index.css +156 -0
- package/lib/page-header/style/index.d.ts +3 -0
- package/lib/page-header/style/index.js +7 -0
- package/lib/page-header/style/index.less +3 -0
- package/lib/page-header/style/rtl.less +76 -0
- package/lib/pagination/MiniSelect.d.ts +7 -0
- package/lib/pagination/MiniSelect.js +30 -0
- package/lib/pagination/Pagination.d.ts +19 -0
- package/lib/pagination/Pagination.js +142 -0
- package/lib/pagination/demo/all.d.ts +6 -0
- package/lib/pagination/demo/all.js +30 -0
- package/lib/pagination/demo/basic.d.ts +6 -0
- package/lib/pagination/demo/basic.js +26 -0
- package/lib/pagination/demo/changer.d.ts +6 -0
- package/lib/pagination/demo/changer.js +38 -0
- package/lib/pagination/demo/controlled.d.ts +6 -0
- package/lib/pagination/demo/controlled.js +45 -0
- package/lib/pagination/demo/itemRender.d.ts +6 -0
- package/lib/pagination/demo/itemRender.js +40 -0
- package/lib/pagination/demo/jump.d.ts +6 -0
- package/lib/pagination/demo/jump.js +38 -0
- package/lib/pagination/demo/mini.d.ts +6 -0
- package/lib/pagination/demo/mini.js +46 -0
- package/lib/pagination/demo/more.d.ts +6 -0
- package/lib/pagination/demo/more.js +26 -0
- package/lib/pagination/demo/simple.d.ts +6 -0
- package/lib/pagination/demo/simple.js +32 -0
- package/lib/pagination/demo/total.d.ts +6 -0
- package/lib/pagination/demo/total.js +37 -0
- package/lib/pagination/index.d.ts +3 -9
- package/lib/pagination/index.js +13 -0
- package/lib/pagination/style/css.js +7 -0
- package/lib/pagination/style/index-pure.less +426 -0
- package/lib/pagination/style/index.css +519 -0
- package/lib/pagination/style/index.d.ts +3 -0
- package/lib/pagination/style/index.js +7 -0
- package/lib/pagination/style/index.less +3 -0
- package/lib/pagination/style/rtl.less +55 -0
- package/lib/popconfirm/demo/async.d.ts +6 -0
- package/lib/popconfirm/demo/async.js +63 -0
- package/lib/popconfirm/demo/basic.d.ts +6 -0
- package/lib/popconfirm/demo/basic.js +43 -0
- package/lib/popconfirm/demo/dynamic-trigger.d.ts +6 -0
- package/lib/popconfirm/demo/dynamic-trigger.js +86 -0
- package/lib/popconfirm/demo/icon.d.ts +6 -0
- package/lib/popconfirm/demo/icon.js +34 -0
- package/lib/popconfirm/demo/locale.d.ts +6 -0
- package/lib/popconfirm/demo/locale.js +29 -0
- package/lib/popconfirm/demo/placement.d.ts +6 -0
- package/lib/popconfirm/demo/placement.js +124 -0
- package/lib/popconfirm/demo/promise.d.ts +6 -0
- package/lib/popconfirm/demo/promise.js +39 -0
- package/lib/popconfirm/index.d.ts +26 -6
- package/lib/popconfirm/index.js +183 -0
- package/lib/popconfirm/style/css.js +9 -0
- package/lib/popconfirm/style/index-pure.less +9 -0
- package/lib/popconfirm/style/index.css +7 -0
- package/lib/popconfirm/style/index.d.ts +4 -0
- package/lib/popconfirm/style/index.js +9 -0
- package/lib/popconfirm/style/index.less +3 -0
- package/lib/popover/demo/arrow-point-at-center.d.ts +6 -0
- package/lib/popover/demo/arrow-point-at-center.js +36 -0
- package/lib/popover/demo/basic.d.ts +6 -0
- package/lib/popover/demo/basic.js +32 -0
- package/lib/popover/demo/hover-with-click.d.ts +6 -0
- package/lib/popover/demo/hover-with-click.js +79 -0
- package/lib/popover/demo/interalClose.d.ts +6 -0
- package/lib/popover/demo/interalClose.js +56 -0
- package/lib/popover/demo/placement.d.ts +6 -0
- package/lib/popover/demo/placement.js +113 -0
- package/lib/popover/demo/triggerType.d.ts +6 -0
- package/lib/popover/demo/triggerType.js +39 -0
- package/lib/popover/index.d.ts +7 -6
- package/lib/popover/index.js +36 -0
- package/lib/popover/style/css.js +5 -0
- package/lib/popover/style/index-pure.less +253 -0
- package/lib/popover/style/index.css +305 -0
- package/lib/popover/style/index.d.ts +2 -0
- package/lib/popover/style/index.js +5 -0
- package/lib/popover/style/index.less +3 -0
- package/lib/popover/style/rtl.less +33 -0
- package/lib/progress/Circle.d.ts +9 -0
- package/lib/progress/Circle.js +104 -0
- package/lib/progress/Line.d.ts +37 -0
- package/lib/progress/Line.js +144 -0
- package/lib/progress/Steps.d.ts +10 -0
- package/lib/progress/Steps.js +55 -0
- package/lib/progress/demo/activeShow.d.ts +6 -0
- package/lib/progress/demo/activeShow.js +65 -0
- package/lib/progress/demo/bar.d.ts +6 -0
- package/lib/progress/demo/bar.js +36 -0
- package/lib/progress/demo/circle.d.ts +6 -0
- package/lib/progress/demo/circle.js +33 -0
- package/lib/progress/demo/circleActive.d.ts +6 -0
- package/lib/progress/demo/circleActive.js +66 -0
- package/lib/progress/demo/dashboard.d.ts +6 -0
- package/lib/progress/demo/dashboard.js +30 -0
- package/lib/progress/demo/formatStyle.d.ts +2 -0
- package/lib/progress/demo/formatStyle.js +35 -0
- package/lib/progress/demo/lineGradient.d.ts +6 -0
- package/lib/progress/demo/lineGradient.js +50 -0
- package/lib/progress/demo/moreDashboard.d.ts +6 -0
- package/lib/progress/demo/moreDashboard.js +48 -0
- package/lib/progress/demo/round.d.ts +2 -0
- package/lib/progress/demo/round.js +30 -0
- package/lib/progress/demo/smallBar.d.ts +6 -0
- package/lib/progress/demo/smallBar.js +41 -0
- package/lib/progress/demo/smallCircle.d.ts +6 -0
- package/lib/progress/demo/smallCircle.js +36 -0
- package/lib/progress/demo/stepProgress.d.ts +6 -0
- package/lib/progress/demo/stepProgress.js +34 -0
- package/lib/progress/index.d.ts +3 -6
- package/lib/progress/index.js +13 -0
- package/lib/progress/progress.d.ts +61 -0
- package/lib/progress/progress.js +203 -0
- package/lib/progress/style/css.js +5 -0
- package/lib/progress/style/index-pure.less +206 -0
- package/lib/progress/style/index.css +206 -0
- package/lib/progress/style/index.d.ts +2 -0
- package/lib/progress/style/index.js +5 -0
- package/lib/progress/style/index.less +3 -0
- package/lib/progress/style/rtl.less +37 -0
- package/lib/progress/utils.d.ts +8 -0
- package/lib/progress/utils.js +41 -0
- package/lib/radio/components/button.d.ts +6 -0
- package/lib/radio/components/button.js +34 -0
- package/lib/radio/components/group.d.ts +6 -0
- package/lib/radio/components/group.js +34 -0
- package/lib/radio/components/radio.d.ts +6 -0
- package/lib/radio/components/radio.js +34 -0
- package/lib/radio/context.d.ts +5 -0
- package/lib/radio/context.js +20 -0
- package/lib/radio/demo/basic.d.ts +6 -0
- package/lib/radio/demo/basic.js +23 -0
- package/lib/radio/demo/disabled.d.ts +6 -0
- package/lib/radio/demo/disabled.js +52 -0
- package/lib/radio/demo/radiobutton-solid.d.ts +6 -0
- package/lib/radio/demo/radiobutton-solid.js +49 -0
- package/lib/radio/demo/radiobutton.d.ts +6 -0
- package/lib/radio/demo/radiobutton.js +68 -0
- package/lib/radio/demo/radiogroup-more.d.ts +6 -0
- package/lib/radio/demo/radiogroup-more.js +61 -0
- package/lib/radio/demo/radiogroup-options.d.ts +6 -0
- package/lib/radio/demo/radiogroup-options.js +113 -0
- package/lib/radio/demo/radiogroup-with-name.d.ts +6 -0
- package/lib/radio/demo/radiogroup-with-name.js +34 -0
- package/lib/radio/demo/radiogroup.d.ts +6 -0
- package/lib/radio/demo/radiogroup.js +52 -0
- package/lib/radio/demo/size.d.ts +6 -0
- package/lib/radio/demo/size.js +61 -0
- package/lib/radio/group.d.ts +4 -0
- package/lib/radio/group.js +138 -0
- package/lib/radio/index.d.ts +12 -11
- package/lib/radio/index.js +32 -0
- package/lib/radio/interface.d.ts +35 -0
- package/lib/radio/interface.js +5 -0
- package/lib/radio/radio.d.ts +4 -0
- package/lib/radio/radio.js +98 -0
- package/lib/radio/radioButton.d.ts +6 -0
- package/lib/radio/radioButton.js +55 -0
- package/lib/radio/style/css.js +3 -0
- package/lib/radio/style/index-pure.less +347 -0
- package/lib/radio/style/index.css +2133 -0
- package/lib/radio/style/index.d.ts +1 -0
- package/lib/radio/style/index.js +3 -0
- package/lib/radio/style/index.less +3 -0
- package/lib/radio/style/rtl.less +60 -0
- package/lib/rate/demo/basic.d.ts +6 -0
- package/lib/rate/demo/basic.js +23 -0
- package/lib/rate/demo/clear.d.ts +6 -0
- package/lib/rate/demo/clear.js +32 -0
- package/lib/rate/demo/custom.d.ts +6 -0
- package/lib/rate/demo/custom.js +44 -0
- package/lib/rate/demo/half.d.ts +6 -0
- package/lib/rate/demo/half.js +26 -0
- package/lib/rate/demo/onlyread.d.ts +6 -0
- package/lib/rate/demo/onlyread.js +26 -0
- package/lib/rate/demo/other.d.ts +6 -0
- package/lib/rate/demo/other.js +37 -0
- package/lib/rate/demo/text.d.ts +6 -0
- package/lib/rate/demo/text.js +48 -0
- package/lib/rate/index.d.ts +7 -6
- package/lib/rate/index.js +36 -0
- package/lib/rate/style/css.js +7 -0
- package/lib/rate/style/index-pure.less +91 -0
- package/lib/rate/style/index.css +94 -0
- package/lib/rate/style/index.d.ts +3 -0
- package/lib/rate/style/index.js +7 -0
- package/lib/rate/style/index.less +3 -0
- package/lib/rate/style/rtl.less +21 -0
- package/lib/result/demo/custom.d.ts +6 -0
- package/lib/result/demo/custom.js +33 -0
- package/lib/result/demo/disabled.d.ts +6 -0
- package/lib/result/demo/disabled.js +32 -0
- package/lib/result/demo/error.d.ts +6 -0
- package/lib/result/demo/error.js +50 -0
- package/lib/result/demo/info.d.ts +6 -0
- package/lib/result/demo/info.js +31 -0
- package/lib/result/demo/nofound.d.ts +6 -0
- package/lib/result/demo/nofound.js +32 -0
- package/lib/result/demo/serviceErr.d.ts +6 -0
- package/lib/result/demo/serviceErr.js +32 -0
- package/lib/result/demo/success.d.ts +6 -0
- package/lib/result/demo/success.js +35 -0
- package/lib/result/demo/warning.d.ts +6 -0
- package/lib/result/demo/warning.js +32 -0
- package/lib/result/index.d.ts +7 -6
- package/lib/result/index.js +29 -0
- package/lib/result/style/css.js +5 -0
- package/lib/result/style/index-pure.less +75 -0
- package/lib/result/style/index.css +68 -0
- package/lib/result/style/index.d.ts +2 -0
- package/lib/result/style/index.js +5 -0
- package/lib/result/style/index.less +3 -0
- package/lib/result/style/rtl.less +25 -0
- package/lib/select/components/optGroup.d.ts +5 -0
- package/lib/select/components/optGroup.js +28 -0
- package/lib/select/components/option.d.ts +6 -0
- package/lib/select/components/option.js +28 -0
- package/lib/select/components/select.d.ts +6 -0
- package/lib/select/components/select.js +34 -0
- package/lib/select/demo/automatic-tokenization.d.ts +6 -0
- package/lib/select/demo/automatic-tokenization.js +44 -0
- package/lib/select/demo/basic.d.ts +6 -0
- package/lib/select/demo/basic.js +68 -0
- package/lib/select/demo/big-data.d.ts +6 -0
- package/lib/select/demo/big-data.js +62 -0
- package/lib/select/demo/bordered.d.ts +6 -0
- package/lib/select/demo/bordered.js +46 -0
- package/lib/select/demo/coordinate.d.ts +6 -0
- package/lib/select/demo/coordinate.js +73 -0
- package/lib/select/demo/custom-dropdown-menu.d.ts +6 -0
- package/lib/select/demo/custom-dropdown-menu.js +94 -0
- package/lib/select/demo/custom-tag-render.d.ts +6 -0
- package/lib/select/demo/custom-tag-render.js +66 -0
- package/lib/select/demo/hide-selected.d.ts +6 -0
- package/lib/select/demo/hide-selected.js +58 -0
- package/lib/select/demo/label-in-value.d.ts +6 -0
- package/lib/select/demo/label-in-value.js +42 -0
- package/lib/select/demo/multiple.d.ts +6 -0
- package/lib/select/demo/multiple.js +55 -0
- package/lib/select/demo/optgroup.d.ts +6 -0
- package/lib/select/demo/optgroup.js +46 -0
- package/lib/select/demo/option-label-prop.d.ts +6 -0
- package/lib/select/demo/option-label-prop.js +70 -0
- package/lib/select/demo/responsive.d.ts +6 -0
- package/lib/select/demo/responsive.js +64 -0
- package/lib/select/demo/search-box.d.ts +6 -0
- package/lib/select/demo/search-box.js +116 -0
- package/lib/select/demo/search-sort.d.ts +6 -0
- package/lib/select/demo/search-sort.js +50 -0
- package/lib/select/demo/search.d.ts +6 -0
- package/lib/select/demo/search.js +61 -0
- package/lib/select/demo/select-users.d.ts +11 -0
- package/lib/select/demo/select-users.js +137 -0
- package/lib/select/demo/size.d.ts +6 -0
- package/lib/select/demo/size.js +90 -0
- package/lib/select/demo/tags.d.ts +6 -0
- package/lib/select/demo/tags.js +44 -0
- package/lib/select/index.d.ts +12 -11
- package/lib/select/index.js +20 -0
- package/lib/select/style/css.js +7 -0
- package/lib/select/style/index-pure.less +318 -0
- package/lib/select/style/index.css +670 -0
- package/lib/select/style/index.d.ts +3 -0
- package/lib/select/style/index.js +7 -0
- package/lib/select/style/index.less +3 -0
- package/lib/select/style/multiple.less +224 -0
- package/lib/select/style/rtl.less +168 -0
- package/lib/select/style/single.less +178 -0
- package/lib/skeleton/Avatar.d.ts +12 -0
- package/lib/skeleton/Avatar.js +54 -0
- package/lib/skeleton/Button.d.ts +12 -0
- package/lib/skeleton/Button.js +57 -0
- package/lib/skeleton/Element.d.ts +11 -0
- package/lib/skeleton/Element.js +46 -0
- package/lib/skeleton/Image.d.ts +5 -0
- package/lib/skeleton/Image.js +51 -0
- package/lib/skeleton/Input.d.ts +11 -0
- package/lib/skeleton/Input.js +53 -0
- package/lib/skeleton/Paragraph.d.ts +11 -0
- package/lib/skeleton/Paragraph.js +63 -0
- package/lib/skeleton/Skeleton.d.ts +46 -0
- package/lib/skeleton/Skeleton.js +182 -0
- package/lib/skeleton/Title.d.ts +9 -0
- package/lib/skeleton/Title.js +37 -0
- package/lib/skeleton/index.d.ts +3 -0
- package/lib/skeleton/index.js +13 -0
- package/lib/skeleton/style/css.js +5 -0
- package/lib/skeleton/style/index-pure.less +279 -0
- package/lib/skeleton/style/index.css +287 -0
- package/lib/skeleton/style/index.d.ts +2 -0
- package/lib/skeleton/style/index.js +5 -0
- package/lib/skeleton/style/index.less +3 -0
- package/lib/skeleton/style/rtl.less +47 -0
- package/lib/slider/demo/basic.d.ts +6 -0
- package/lib/slider/demo/basic.js +53 -0
- package/lib/slider/demo/controlShow.d.ts +2 -0
- package/lib/slider/demo/controlShow.js +26 -0
- package/lib/slider/demo/custom.d.ts +2 -0
- package/lib/slider/demo/custom.js +31 -0
- package/lib/slider/demo/events.d.ts +6 -0
- package/lib/slider/demo/events.js +41 -0
- package/lib/slider/demo/icon.d.ts +6 -0
- package/lib/slider/demo/icon.js +59 -0
- package/lib/slider/demo/inputBox.d.ts +6 -0
- package/lib/slider/demo/inputBox.js +59 -0
- package/lib/slider/demo/marks.d.ts +6 -0
- package/lib/slider/demo/marks.js +53 -0
- package/lib/slider/demo/range.d.ts +6 -0
- package/lib/slider/demo/range.js +28 -0
- package/lib/slider/demo/reverse.d.ts +2 -0
- package/lib/slider/demo/reverse.js +53 -0
- package/lib/slider/demo/vertical.d.ts +6 -0
- package/lib/slider/demo/vertical.js +58 -0
- package/lib/slider/index.d.ts +9 -8
- package/lib/slider/index.js +36 -0
- package/lib/slider/style/css.js +7 -0
- package/lib/slider/style/index-pure.less +207 -0
- package/lib/slider/style/index.css +211 -0
- package/lib/slider/style/index.d.ts +3 -0
- package/lib/slider/style/index.js +7 -0
- package/lib/slider/style/index.less +3 -0
- package/lib/slider/style/rtl.less +70 -0
- package/lib/space/demo/align.d.ts +6 -0
- package/lib/space/demo/align.js +57 -0
- package/lib/space/demo/base.d.ts +6 -0
- package/lib/space/demo/base.js +31 -0
- package/lib/space/demo/customize.d.ts +6 -0
- package/lib/space/demo/customize.js +49 -0
- package/lib/space/demo/size.d.ts +6 -0
- package/lib/space/demo/size.js +55 -0
- package/lib/space/demo/split.d.ts +6 -0
- package/lib/space/demo/split.js +27 -0
- package/lib/space/demo/vertical.d.ts +6 -0
- package/lib/space/demo/vertical.js +35 -0
- package/lib/space/demo/wrap.d.ts +6 -0
- package/lib/space/demo/wrap.js +34 -0
- package/lib/space/index.d.ts +7 -6
- package/lib/space/index.js +29 -0
- package/lib/space/style/css.js +5 -0
- package/lib/space/style/index-pure.less +36 -0
- package/lib/space/style/index.css +28 -0
- package/lib/space/style/index.d.ts +2 -0
- package/lib/space/style/index.js +5 -0
- package/lib/space/style/index.less +3 -0
- package/lib/space/style/rtl.less +10 -0
- package/lib/spin/demo/basic.d.ts +6 -0
- package/lib/spin/demo/basic.js +23 -0
- package/lib/spin/demo/custom-indicator.d.ts +6 -0
- package/lib/spin/demo/custom-indicator.js +34 -0
- package/lib/spin/demo/delayAndDebounce.d.ts +6 -0
- package/lib/spin/demo/delayAndDebounce.js +58 -0
- package/lib/spin/demo/inside/index.d.ts +7 -0
- package/lib/spin/demo/inside/index.js +27 -0
- package/lib/spin/demo/inside/index.less +8 -0
- package/lib/spin/demo/nested.d.ts +6 -0
- package/lib/spin/demo/nested.js +55 -0
- package/lib/spin/demo/size.d.ts +6 -0
- package/lib/spin/demo/size.js +31 -0
- package/lib/spin/demo/tip.d.ts +6 -0
- package/lib/spin/demo/tip.js +31 -0
- package/lib/spin/index.d.ts +7 -6
- package/lib/spin/index.js +29 -0
- package/lib/spin/style/css.js +5 -0
- package/lib/spin/style/index-pure.less +217 -0
- package/lib/spin/style/index.css +220 -0
- package/lib/spin/style/index.d.ts +2 -0
- package/lib/spin/style/index.js +5 -0
- package/lib/spin/style/index.less +3 -0
- package/lib/spin/style/rtl.less +20 -0
- package/lib/statistic/components/countdown.d.ts +6 -0
- package/lib/statistic/components/countdown.js +28 -0
- package/lib/statistic/components/statistic.d.ts +6 -0
- package/lib/statistic/components/statistic.js +27 -0
- package/lib/statistic/demo/basic.d.ts +6 -0
- package/lib/statistic/demo/basic.js +47 -0
- package/lib/statistic/demo/company.d.ts +6 -0
- package/lib/statistic/demo/company.js +39 -0
- package/lib/statistic/demo/countDown.d.ts +6 -0
- package/lib/statistic/demo/countDown.js +65 -0
- package/lib/statistic/demo/inCard.d.ts +6 -0
- package/lib/statistic/demo/inCard.js +51 -0
- package/lib/statistic/index.d.ts +10 -9
- package/lib/statistic/index.js +19 -0
- package/lib/statistic/style/css.js +7 -0
- package/lib/statistic/style/index-pure.less +41 -0
- package/lib/statistic/style/index.css +50 -0
- package/lib/statistic/style/index.d.ts +3 -0
- package/lib/statistic/style/index.js +7 -0
- package/lib/statistic/style/index.less +3 -0
- package/lib/statistic/style/rtl.less +21 -0
- package/lib/steps/components/step.d.ts +6 -0
- package/lib/steps/components/step.js +28 -0
- package/lib/steps/components/steps.d.ts +6 -0
- package/lib/steps/components/steps.js +27 -0
- package/lib/steps/demo/basic.d.ts +6 -0
- package/lib/steps/demo/basic.js +36 -0
- package/lib/steps/demo/click.d.ts +6 -0
- package/lib/steps/demo/click.js +70 -0
- package/lib/steps/demo/customdot.d.ts +6 -0
- package/lib/steps/demo/customdot.js +48 -0
- package/lib/steps/demo/dot.d.ts +6 -0
- package/lib/steps/demo/dot.js +57 -0
- package/lib/steps/demo/err.d.ts +6 -0
- package/lib/steps/demo/err.js +36 -0
- package/lib/steps/demo/icon.d.ts +6 -0
- package/lib/steps/demo/icon.js +42 -0
- package/lib/steps/demo/linesmall.d.ts +6 -0
- package/lib/steps/demo/linesmall.js +37 -0
- package/lib/steps/demo/lineway.d.ts +6 -0
- package/lib/steps/demo/lineway.js +36 -0
- package/lib/steps/demo/mini.d.ts +6 -0
- package/lib/steps/demo/mini.js +33 -0
- package/lib/steps/demo/nav.d.ts +6 -0
- package/lib/steps/demo/nav.js +100 -0
- package/lib/steps/demo/progress.d.ts +6 -0
- package/lib/steps/demo/progress.js +37 -0
- package/lib/steps/demo/tab.d.ts +6 -0
- package/lib/steps/demo/tab.js +81 -0
- package/lib/steps/index.d.ts +11 -10
- package/lib/steps/index.js +19 -0
- package/lib/steps/style/css.js +7 -0
- package/lib/steps/style/custom-icon.less +32 -0
- package/lib/steps/style/index-pure.less +247 -0
- package/lib/steps/style/index.css +732 -0
- package/lib/steps/style/index.d.ts +3 -0
- package/lib/steps/style/index.js +7 -0
- package/lib/steps/style/index.less +3 -0
- package/lib/steps/style/label-placement.less +39 -0
- package/lib/steps/style/nav.less +122 -0
- package/lib/steps/style/progress-dot.less +94 -0
- package/lib/steps/style/progress.less +28 -0
- package/lib/steps/style/rtl.less +251 -0
- package/lib/steps/style/small.less +47 -0
- package/lib/steps/style/vertical.less +73 -0
- package/lib/style/color/bezierEasing.less +110 -0
- package/lib/style/color/colorPalette.less +81 -0
- package/lib/style/color/colors.less +162 -0
- package/lib/style/color/tinyColor.less +1184 -0
- package/lib/style/components.less +64 -0
- package/lib/style/core/base.less +10 -0
- package/lib/style/core/global.less +494 -0
- package/lib/style/core/iconfont.less +19 -0
- package/lib/style/core/index.less +5 -0
- package/lib/style/core/motion/fade.less +32 -0
- package/lib/style/core/motion/move.less +121 -0
- package/lib/style/core/motion/other.less +51 -0
- package/lib/style/core/motion/slide.less +121 -0
- package/lib/style/core/motion/zoom.less +167 -0
- package/lib/style/core/motion.less +21 -0
- package/lib/style/index.css +1787 -0
- package/lib/style/index.less +3 -0
- package/lib/style/mixins/box.less +7 -0
- package/lib/style/mixins/clearfix.less +15 -0
- package/lib/style/mixins/compatibility.less +17 -0
- package/lib/style/mixins/customize.less +178 -0
- package/lib/style/mixins/iconfont.less +28 -0
- package/lib/style/mixins/index.less +13 -0
- package/lib/style/mixins/modal-mask.less +31 -0
- package/lib/style/mixins/motion.less +35 -0
- package/lib/style/mixins/operation-unit.less +18 -0
- package/lib/style/mixins/reset.less +13 -0
- package/lib/style/mixins/size.less +10 -0
- package/lib/style/mixins/typography.less +58 -0
- package/lib/style/theme.less +34 -0
- package/lib/style/themes/compact.less +295 -0
- package/lib/style/themes/dark.less +438 -0
- package/lib/style/themes/default.less +1058 -0
- package/lib/style/themes/index.less +7 -0
- package/lib/style/themes/variable.less +1113 -0
- package/lib/switch/demo/basic.d.ts +6 -0
- package/lib/switch/demo/basic.js +30 -0
- package/lib/switch/demo/disabled.d.ts +6 -0
- package/lib/switch/demo/disabled.js +46 -0
- package/lib/switch/demo/loading.d.ts +6 -0
- package/lib/switch/demo/loading.js +29 -0
- package/lib/switch/demo/size.d.ts +6 -0
- package/lib/switch/demo/size.js +28 -0
- package/lib/switch/demo/text.d.ts +6 -0
- package/lib/switch/demo/text.js +36 -0
- package/lib/switch/index.d.ts +7 -6
- package/lib/switch/index.js +30 -0
- package/lib/switch/style/css.js +5 -0
- package/lib/switch/style/index-pure.less +154 -0
- package/lib/switch/style/index.css +153 -0
- package/lib/switch/style/index.d.ts +2 -0
- package/lib/switch/style/index.js +5 -0
- package/lib/switch/style/index.less +3 -0
- package/lib/switch/style/rtl.less +52 -0
- package/lib/table/Column.d.ts +7 -0
- package/lib/table/Column.js +17 -0
- package/lib/table/ColumnGroup.d.ts +9 -0
- package/lib/table/ColumnGroup.js +17 -0
- package/lib/table/ExpandIcon.d.ts +11 -0
- package/lib/table/ExpandIcon.js +45 -0
- package/lib/table/Table.d.ts +38 -0
- package/lib/table/Table.js +459 -0
- package/lib/table/components/column.d.ts +6 -0
- package/lib/table/components/column.js +28 -0
- package/lib/table/components/columnGroup.d.ts +6 -0
- package/lib/table/components/columnGroup.js +28 -0
- package/lib/table/components/summary.d.ts +5 -0
- package/lib/table/components/summary.js +28 -0
- package/lib/table/components/table.d.ts +7 -0
- package/lib/table/components/table.js +27 -0
- package/lib/table/demo/basic.d.ts +6 -0
- package/lib/table/demo/basic.js +88 -0
- package/lib/table/demo/drag-sorting/index.less +7 -0
- package/lib/table/demo/drag-sorting-handler/index.less +12 -0
- package/lib/table/demo/edit-cell/index.d.ts +31 -0
- package/lib/table/demo/edit-cell/index.js +299 -0
- package/lib/table/demo/edit-cell/index.less +18 -0
- package/lib/table/demo/edit-row/index.d.ts +7 -0
- package/lib/table/demo/edit-row/index.js +229 -0
- package/lib/table/demo/edit-row/index.less +5 -0
- package/lib/table/demo/head.d.ts +6 -0
- package/lib/table/demo/head.js +103 -0
- package/lib/table/demo/jsx.d.ts +6 -0
- package/lib/table/demo/jsx.js +90 -0
- package/lib/table/demo/multiple-sorter.d.ts +6 -0
- package/lib/table/demo/multiple-sorter.js +88 -0
- package/lib/table/demo/pagination.d.ts +6 -0
- package/lib/table/demo/pagination.js +155 -0
- package/lib/table/demo/reset-filter.d.ts +14 -0
- package/lib/table/demo/reset-filter.js +182 -0
- package/lib/table/demo/responsive.d.ts +6 -0
- package/lib/table/demo/responsive.js +51 -0
- package/lib/table/demo/row-selection-and-operation.d.ts +6 -0
- package/lib/table/demo/row-selection-and-operation.js +98 -0
- package/lib/table/demo/row-selection-custom.d.ts +6 -0
- package/lib/table/demo/row-selection-custom.js +103 -0
- package/lib/table/demo/row-selection.d.ts +6 -0
- package/lib/table/demo/row-selection.js +100 -0
- package/lib/table/demo/sticky.d.ts +6 -0
- package/lib/table/demo/sticky.js +114 -0
- package/lib/table/demo/summary.d.ts +6 -0
- package/lib/table/demo/summary.js +125 -0
- package/lib/table/hooks/useFilter/FilterDropdown.d.ts +20 -0
- package/lib/table/hooks/useFilter/FilterDropdown.js +456 -0
- package/lib/table/hooks/useFilter/FilterSearch.d.ts +11 -0
- package/lib/table/hooks/useFilter/FilterSearch.js +48 -0
- package/lib/table/hooks/useFilter/FilterWrapper.d.ts +7 -0
- package/lib/table/hooks/useFilter/FilterWrapper.js +26 -0
- package/lib/table/hooks/useFilter/index.d.ts +23 -0
- package/lib/table/hooks/useFilter/index.js +231 -0
- package/lib/table/hooks/useLazyKVMap.d.ts +2 -0
- package/lib/table/hooks/useLazyKVMap.js +54 -0
- package/lib/table/hooks/usePagination.d.ts +4 -0
- package/lib/table/hooks/usePagination.js +118 -0
- package/lib/table/hooks/useSelection.d.ts +19 -0
- package/lib/table/hooks/useSelection.js +596 -0
- package/lib/table/hooks/useSorter.d.ts +24 -0
- package/lib/table/hooks/useSorter.js +370 -0
- package/lib/table/hooks/useTitleColumns.d.ts +2 -0
- package/lib/table/hooks/useTitleColumns.js +40 -0
- package/lib/table/index.d.ts +5 -19
- package/lib/table/index.js +13 -0
- package/lib/table/interface.d.ts +140 -0
- package/lib/table/interface.js +5 -0
- package/lib/table/style/bordered.less +136 -0
- package/lib/table/style/css.js +25 -0
- package/lib/table/style/index-pure.less +738 -0
- package/lib/table/style/index.css +823 -0
- package/lib/table/style/index.d.ts +12 -0
- package/lib/table/style/index.js +25 -0
- package/lib/table/style/index.less +3 -0
- package/lib/table/style/radius.less +45 -0
- package/lib/table/style/rtl.less +162 -0
- package/lib/table/style/size.less +56 -0
- package/lib/table/util.d.ts +4 -0
- package/lib/table/util.js +32 -0
- package/lib/tabs/components/tab-pane.d.ts +6 -0
- package/lib/tabs/components/tab-pane.js +28 -0
- package/lib/tabs/components/tabs.d.ts +6 -0
- package/lib/tabs/components/tabs.js +27 -0
- package/lib/tabs/demo/basic.d.ts +6 -0
- package/lib/tabs/demo/basic.js +41 -0
- package/lib/tabs/demo/card-top/index.d.ts +7 -0
- package/lib/tabs/demo/card-top/index.js +42 -0
- package/lib/tabs/demo/card-top/index.less +57 -0
- package/lib/tabs/demo/card.d.ts +6 -0
- package/lib/tabs/demo/card.js +41 -0
- package/lib/tabs/demo/centered.d.ts +6 -0
- package/lib/tabs/demo/centered.js +37 -0
- package/lib/tabs/demo/custom-tab-bar/index.less +4 -0
- package/lib/tabs/demo/disabled.d.ts +6 -0
- package/lib/tabs/demo/disabled.js +37 -0
- package/lib/tabs/demo/extra/index.d.ts +6 -0
- package/lib/tabs/demo/extra/index.js +82 -0
- package/lib/tabs/demo/extra/index.less +8 -0
- package/lib/tabs/demo/icon.d.ts +6 -0
- package/lib/tabs/demo/icon.js +35 -0
- package/lib/tabs/index.d.ts +10 -9
- package/lib/tabs/index.js +19 -0
- package/lib/tabs/style/card.less +98 -0
- package/lib/tabs/style/css.js +5 -0
- package/lib/tabs/style/dropdown.less +61 -0
- package/lib/tabs/style/index-pure.less +224 -0
- package/lib/tabs/style/index.css +590 -0
- package/lib/tabs/style/index.d.ts +2 -0
- package/lib/tabs/style/index.js +5 -0
- package/lib/tabs/style/index.less +3 -0
- package/lib/tabs/style/position.less +196 -0
- package/lib/tabs/style/rtl.less +85 -0
- package/lib/tabs/style/size.less +42 -0
- package/lib/tag/components/CheckableTag.d.ts +6 -0
- package/lib/tag/components/CheckableTag.js +28 -0
- package/lib/tag/components/tag.d.ts +6 -0
- package/lib/tag/components/tag.js +28 -0
- package/lib/tag/demo/animation.d.ts +6 -0
- package/lib/tag/demo/animation.js +138 -0
- package/lib/tag/demo/basic.d.ts +6 -0
- package/lib/tag/demo/basic.js +40 -0
- package/lib/tag/demo/choice.d.ts +7 -0
- package/lib/tag/demo/choice.js +63 -0
- package/lib/tag/demo/colourful.d.ts +6 -0
- package/lib/tag/demo/colourful.js +57 -0
- package/lib/tag/demo/control.d.ts +6 -0
- package/lib/tag/demo/control.js +47 -0
- package/lib/tag/demo/dynamic.d.ts +6 -0
- package/lib/tag/demo/dynamic.js +160 -0
- package/lib/tag/demo/icon.d.ts +8 -0
- package/lib/tag/demo/icon.js +39 -0
- package/lib/tag/demo/preset.d.ts +6 -0
- package/lib/tag/demo/preset.js +59 -0
- package/lib/tag/index.d.ts +10 -9
- package/lib/tag/index.js +19 -0
- package/lib/tag/style/css.js +5 -0
- package/lib/tag/style/index-pure.less +126 -0
- package/lib/tag/style/index.css +247 -0
- package/lib/tag/style/index.d.ts +2 -0
- package/lib/tag/style/index.js +5 -0
- package/lib/tag/style/index.less +3 -0
- package/lib/tag/style/rtl.less +28 -0
- package/lib/time-picker/components/rangePicker.d.ts +6 -0
- package/lib/time-picker/components/rangePicker.js +29 -0
- package/lib/time-picker/components/timePicker.d.ts +6 -0
- package/lib/time-picker/components/timePicker.js +28 -0
- package/lib/time-picker/demo/basic.d.ts +6 -0
- package/lib/time-picker/demo/basic.js +32 -0
- package/lib/time-picker/index.d.ts +21 -9
- package/lib/time-picker/index.js +65 -0
- package/lib/time-picker/locale/ar_EG.d.ts +3 -0
- package/lib/time-picker/locale/ar_EG.js +11 -0
- package/lib/time-picker/locale/az_AZ.d.ts +3 -0
- package/lib/time-picker/locale/az_AZ.js +11 -0
- package/lib/time-picker/locale/bg_BG.d.ts +3 -0
- package/lib/time-picker/locale/bg_BG.js +11 -0
- package/lib/time-picker/locale/bn_BD.d.ts +3 -0
- package/lib/time-picker/locale/bn_BD.js +12 -0
- package/lib/time-picker/locale/by_BY.d.ts +3 -0
- package/lib/time-picker/locale/by_BY.js +12 -0
- package/lib/time-picker/locale/ca_ES.d.ts +3 -0
- package/lib/time-picker/locale/ca_ES.js +11 -0
- package/lib/time-picker/locale/cs_CZ.d.ts +3 -0
- package/lib/time-picker/locale/cs_CZ.js +11 -0
- package/lib/time-picker/locale/da_DK.d.ts +3 -0
- package/lib/time-picker/locale/da_DK.js +12 -0
- package/lib/time-picker/locale/de_DE.d.ts +3 -0
- package/lib/time-picker/locale/de_DE.js +11 -0
- package/lib/time-picker/locale/el_GR.d.ts +3 -0
- package/lib/time-picker/locale/el_GR.js +11 -0
- package/lib/time-picker/locale/en_GB.d.ts +3 -0
- package/lib/time-picker/locale/en_GB.js +11 -0
- package/lib/time-picker/locale/en_US.d.ts +3 -0
- package/lib/time-picker/locale/en_US.js +12 -0
- package/lib/time-picker/locale/es_ES.d.ts +3 -0
- package/lib/time-picker/locale/es_ES.js +11 -0
- package/lib/time-picker/locale/et_EE.d.ts +3 -0
- package/lib/time-picker/locale/et_EE.js +11 -0
- package/lib/time-picker/locale/fa_IR.d.ts +3 -0
- package/lib/time-picker/locale/fa_IR.js +12 -0
- package/lib/time-picker/locale/fi_FI.d.ts +3 -0
- package/lib/time-picker/locale/fi_FI.js +11 -0
- package/lib/time-picker/locale/fr_BE.d.ts +3 -0
- package/lib/time-picker/locale/fr_BE.js +11 -0
- package/lib/time-picker/locale/fr_CA.d.ts +3 -0
- package/lib/time-picker/locale/fr_CA.js +12 -0
- package/lib/time-picker/locale/fr_FR.d.ts +3 -0
- package/lib/time-picker/locale/fr_FR.js +12 -0
- package/lib/time-picker/locale/ga_IE.d.ts +3 -0
- package/lib/time-picker/locale/ga_IE.js +12 -0
- package/lib/time-picker/locale/gl_ES.d.ts +3 -0
- package/lib/time-picker/locale/gl_ES.js +11 -0
- package/lib/time-picker/locale/he_IL.d.ts +3 -0
- package/lib/time-picker/locale/he_IL.js +11 -0
- package/lib/time-picker/locale/hi_IN.d.ts +3 -0
- package/lib/time-picker/locale/hi_IN.js +12 -0
- package/lib/time-picker/locale/hr_HR.d.ts +3 -0
- package/lib/time-picker/locale/hr_HR.js +12 -0
- package/lib/time-picker/locale/hu_HU.d.ts +3 -0
- package/lib/time-picker/locale/hu_HU.js +11 -0
- package/lib/time-picker/locale/id_ID.d.ts +3 -0
- package/lib/time-picker/locale/id_ID.js +11 -0
- package/lib/time-picker/locale/is_IS.d.ts +3 -0
- package/lib/time-picker/locale/is_IS.js +11 -0
- package/lib/time-picker/locale/it_IT.d.ts +3 -0
- package/lib/time-picker/locale/it_IT.js +11 -0
- package/lib/time-picker/locale/ja_JP.d.ts +3 -0
- package/lib/time-picker/locale/ja_JP.js +12 -0
- package/lib/time-picker/locale/ka_GE.d.ts +3 -0
- package/lib/time-picker/locale/ka_GE.js +12 -0
- package/lib/time-picker/locale/kk_KZ.d.ts +3 -0
- package/lib/time-picker/locale/kk_KZ.js +12 -0
- package/lib/time-picker/locale/kmr_IQ.d.ts +3 -0
- package/lib/time-picker/locale/kmr_IQ.js +11 -0
- package/lib/time-picker/locale/kn_IN.d.ts +3 -0
- package/lib/time-picker/locale/kn_IN.js +11 -0
- package/lib/time-picker/locale/ko_KR.d.ts +3 -0
- package/lib/time-picker/locale/ko_KR.js +12 -0
- package/lib/time-picker/locale/lt_LT.d.ts +3 -0
- package/lib/time-picker/locale/lt_LT.js +12 -0
- package/lib/time-picker/locale/lv_LV.d.ts +3 -0
- package/lib/time-picker/locale/lv_LV.js +11 -0
- package/lib/time-picker/locale/mk_MK.d.ts +3 -0
- package/lib/time-picker/locale/mk_MK.js +11 -0
- package/lib/time-picker/locale/ml_IN.d.ts +3 -0
- package/lib/time-picker/locale/ml_IN.js +12 -0
- package/lib/time-picker/locale/mn_MN.d.ts +3 -0
- package/lib/time-picker/locale/mn_MN.js +11 -0
- package/lib/time-picker/locale/ms_MY.d.ts +3 -0
- package/lib/time-picker/locale/ms_MY.js +11 -0
- package/lib/time-picker/locale/nb_NO.d.ts +3 -0
- package/lib/time-picker/locale/nb_NO.js +12 -0
- package/lib/time-picker/locale/nl_BE.d.ts +3 -0
- package/lib/time-picker/locale/nl_BE.js +12 -0
- package/lib/time-picker/locale/nl_NL.d.ts +3 -0
- package/lib/time-picker/locale/nl_NL.js +12 -0
- package/lib/time-picker/locale/pl_PL.d.ts +3 -0
- package/lib/time-picker/locale/pl_PL.js +11 -0
- package/lib/time-picker/locale/pt_BR.d.ts +3 -0
- package/lib/time-picker/locale/pt_BR.js +11 -0
- package/lib/time-picker/locale/pt_PT.d.ts +3 -0
- package/lib/time-picker/locale/pt_PT.js +11 -0
- package/lib/time-picker/locale/ro_RO.d.ts +3 -0
- package/lib/time-picker/locale/ro_RO.js +11 -0
- package/lib/time-picker/locale/ru_RU.d.ts +4 -0
- package/lib/time-picker/locale/ru_RU.js +12 -0
- package/lib/time-picker/locale/sk_SK.d.ts +3 -0
- package/lib/time-picker/locale/sk_SK.js +11 -0
- package/lib/time-picker/locale/sl_SI.d.ts +3 -0
- package/lib/time-picker/locale/sl_SI.js +11 -0
- package/lib/time-picker/locale/sr_RS.d.ts +3 -0
- package/lib/time-picker/locale/sr_RS.js +12 -0
- package/lib/time-picker/locale/sv_SE.d.ts +3 -0
- package/lib/time-picker/locale/sv_SE.js +11 -0
- package/lib/time-picker/locale/ta_IN.d.ts +3 -0
- package/lib/time-picker/locale/ta_IN.js +11 -0
- package/lib/time-picker/locale/th_TH.d.ts +3 -0
- package/lib/time-picker/locale/th_TH.js +11 -0
- package/lib/time-picker/locale/tr_TR.d.ts +3 -0
- package/lib/time-picker/locale/tr_TR.js +12 -0
- package/lib/time-picker/locale/uk_UA.d.ts +3 -0
- package/lib/time-picker/locale/uk_UA.js +11 -0
- package/lib/time-picker/locale/ur_PK.d.ts +3 -0
- package/lib/time-picker/locale/ur_PK.js +12 -0
- package/lib/time-picker/locale/vi_VN.d.ts +3 -0
- package/lib/time-picker/locale/vi_VN.js +11 -0
- package/lib/time-picker/locale/zh_CN.d.ts +3 -0
- package/lib/time-picker/locale/zh_CN.js +12 -0
- package/lib/time-picker/locale/zh_TW.d.ts +3 -0
- package/lib/time-picker/locale/zh_TW.js +11 -0
- package/lib/time-picker/style/css.js +7 -0
- package/lib/time-picker/style/index-pure.less +4 -0
- package/lib/time-picker/style/index.css +4 -0
- package/lib/time-picker/style/index.d.ts +3 -0
- package/lib/time-picker/style/index.js +7 -0
- package/lib/time-picker/style/index.less +3 -0
- package/lib/timeline/components/item.d.ts +6 -0
- package/lib/timeline/components/item.js +28 -0
- package/lib/timeline/components/timeline.d.ts +6 -0
- package/lib/timeline/components/timeline.js +27 -0
- package/lib/timeline/demo/alternate.d.ts +6 -0
- package/lib/timeline/demo/alternate.js +43 -0
- package/lib/timeline/demo/basic.d.ts +6 -0
- package/lib/timeline/demo/basic.js +23 -0
- package/lib/timeline/demo/color.d.ts +6 -0
- package/lib/timeline/demo/color.js +33 -0
- package/lib/timeline/demo/custom.d.ts +6 -0
- package/lib/timeline/demo/custom.js +30 -0
- package/lib/timeline/demo/label.d.ts +6 -0
- package/lib/timeline/demo/label.js +60 -0
- package/lib/timeline/demo/pending.d.ts +6 -0
- package/lib/timeline/demo/pending.js +49 -0
- package/lib/timeline/demo/right.d.ts +6 -0
- package/lib/timeline/demo/right.js +34 -0
- package/lib/timeline/index.d.ts +10 -9
- package/lib/timeline/index.js +19 -0
- package/lib/timeline/style/css.js +5 -0
- package/lib/timeline/style/index-pure.less +187 -0
- package/lib/timeline/style/index.css +236 -0
- package/lib/timeline/style/index.d.ts +2 -0
- package/lib/timeline/style/index.js +5 -0
- package/lib/timeline/style/index.less +3 -0
- package/lib/timeline/style/rtl.less +135 -0
- package/lib/tooltip/demo/arrow-point-at-center.d.ts +6 -0
- package/lib/tooltip/demo/arrow-point-at-center.js +30 -0
- package/lib/tooltip/demo/basic.d.ts +6 -0
- package/lib/tooltip/demo/basic.js +25 -0
- package/lib/tooltip/demo/colorful.d.ts +6 -0
- package/lib/tooltip/demo/colorful.js +41 -0
- package/lib/tooltip/demo/placement.d.ts +6 -0
- package/lib/tooltip/demo/placement.js +85 -0
- package/lib/tooltip/index.d.ts +44 -5
- package/lib/tooltip/index.js +247 -0
- package/lib/tooltip/placements.d.ts +17 -0
- package/lib/tooltip/placements.js +101 -0
- package/lib/tooltip/style/css.js +5 -0
- package/lib/tooltip/style/index-pure.less +208 -0
- package/lib/tooltip/style/index.css +249 -0
- package/lib/tooltip/style/index.d.ts +2 -0
- package/lib/tooltip/style/index.js +5 -0
- package/lib/tooltip/style/index.less +3 -0
- package/lib/tooltip/style/rtl.less +14 -0
- package/lib/transfer/ListBody.d.ts +29 -0
- package/lib/transfer/ListBody.js +193 -0
- package/lib/transfer/ListItem.d.ts +15 -0
- package/lib/transfer/ListItem.js +91 -0
- package/lib/transfer/demo/basic.d.ts +6 -0
- package/lib/transfer/demo/basic.js +88 -0
- package/lib/transfer/demo/oneway.d.ts +6 -0
- package/lib/transfer/demo/oneway.js +110 -0
- package/lib/transfer/demo/pages.d.ts +2 -0
- package/lib/transfer/demo/pages.js +91 -0
- package/lib/transfer/demo/render.d.ts +6 -0
- package/lib/transfer/demo/render.js +94 -0
- package/lib/transfer/demo/search.d.ts +6 -0
- package/lib/transfer/demo/search.js +91 -0
- package/lib/transfer/index.d.ts +142 -6
- package/lib/transfer/index.js +452 -0
- package/lib/transfer/interface.d.ts +3 -0
- package/lib/transfer/interface.js +5 -0
- package/lib/transfer/list.d.ts +80 -0
- package/lib/transfer/list.js +418 -0
- package/lib/transfer/operation.d.ts +17 -0
- package/lib/transfer/operation.js +57 -0
- package/lib/transfer/search.d.ts +10 -0
- package/lib/transfer/search.js +46 -0
- package/lib/transfer/style/css.js +19 -0
- package/lib/transfer/style/customize.less +52 -0
- package/lib/transfer/style/index-pure.less +221 -0
- package/lib/transfer/style/index.css +269 -0
- package/lib/transfer/style/index.d.ts +9 -0
- package/lib/transfer/style/index.js +19 -0
- package/lib/transfer/style/index.less +3 -0
- package/lib/transfer/style/rtl.less +69 -0
- package/lib/tree/DirectoryTree.d.ts +14 -0
- package/lib/tree/DirectoryTree.js +253 -0
- package/lib/tree/Tree.d.ts +130 -0
- package/lib/tree/Tree.js +91 -0
- package/lib/tree/index.d.ts +5 -0
- package/lib/tree/index.js +13 -0
- package/lib/tree/style/css.js +5 -0
- package/lib/tree/style/directory.less +72 -0
- package/lib/tree/style/index-pure.less +16 -0
- package/lib/tree/style/index.css +499 -0
- package/lib/tree/style/index.d.ts +2 -0
- package/lib/tree/style/index.js +5 -0
- package/lib/tree/style/index.less +3 -0
- package/lib/tree/style/mixin.less +274 -0
- package/lib/tree/style/rtl.less +72 -0
- package/lib/tree/utils/dictUtil.d.ts +9 -0
- package/lib/tree/utils/dictUtil.js +99 -0
- package/lib/tree/utils/dropIndicator.d.ts +9 -0
- package/lib/tree/utils/dropIndicator.js +51 -0
- package/lib/tree/utils/iconUtil.d.ts +5 -0
- package/lib/tree/utils/iconUtil.js +90 -0
- package/lib/tree-select/components/tree-node.d.ts +1 -0
- package/lib/tree-select/components/tree-node.js +12 -0
- package/lib/tree-select/components/tree-select.d.ts +6 -0
- package/lib/tree-select/components/tree-select.js +34 -0
- package/lib/tree-select/style/css.js +9 -0
- package/lib/tree-select/style/index-pure.less +58 -0
- package/lib/tree-select/style/index.css +448 -0
- package/lib/tree-select/style/index.d.ts +4 -0
- package/lib/tree-select/style/index.js +9 -0
- package/lib/tree-select/style/index.less +3 -0
- package/lib/typography/components/link.d.ts +6 -0
- package/lib/typography/components/link.js +28 -0
- package/lib/typography/components/paragraph.d.ts +6 -0
- package/lib/typography/components/paragraph.js +28 -0
- package/lib/typography/components/text.d.ts +6 -0
- package/lib/typography/components/text.js +28 -0
- package/lib/typography/components/title.d.ts +6 -0
- package/lib/typography/components/title.js +28 -0
- package/lib/typography/components/typography.d.ts +6 -0
- package/lib/typography/components/typography.js +28 -0
- package/lib/typography/demo/basic.d.ts +6 -0
- package/lib/typography/demo/basic.js +63 -0
- package/lib/typography/demo/ellipsis-middle.d.ts +6 -0
- package/lib/typography/demo/ellipsis-middle.js +42 -0
- package/lib/typography/demo/ellipsis.d.ts +6 -0
- package/lib/typography/demo/ellipsis.js +59 -0
- package/lib/typography/demo/interactive.d.ts +6 -0
- package/lib/typography/demo/interactive.js +98 -0
- package/lib/typography/demo/suffix.d.ts +13 -0
- package/lib/typography/demo/suffix.js +85 -0
- package/lib/typography/demo/text.d.ts +6 -0
- package/lib/typography/demo/text.js +57 -0
- package/lib/typography/demo/title.d.ts +6 -0
- package/lib/typography/demo/title.js +33 -0
- package/lib/typography/index.d.ts +14 -13
- package/lib/typography/index.js +28 -0
- package/lib/typography/style/css.js +9 -0
- package/lib/typography/style/index-pure.less +288 -0
- package/lib/typography/style/index.css +351 -0
- package/lib/typography/style/index.d.ts +4 -0
- package/lib/typography/style/index.js +9 -0
- package/lib/typography/style/index.less +3 -0
- package/lib/typography/style/rtl.less +54 -0
- package/lib/upload/Dragger.d.ts +7 -0
- package/lib/upload/Dragger.js +43 -0
- package/lib/upload/Upload.d.ts +10 -0
- package/lib/upload/Upload.js +476 -0
- package/lib/upload/UploadList/ListItem.d.ts +26 -0
- package/lib/upload/UploadList/ListItem.js +222 -0
- package/lib/upload/UploadList/index.d.ts +4 -0
- package/lib/upload/UploadList/index.js +274 -0
- package/lib/upload/components/dragger.d.ts +6 -0
- package/lib/upload/components/dragger.js +28 -0
- package/lib/upload/components/upload.d.ts +6 -0
- package/lib/upload/components/upload.js +34 -0
- package/lib/upload/demo/basic.d.ts +6 -0
- package/lib/upload/demo/basic.js +50 -0
- package/lib/upload/demo/directory.d.ts +6 -0
- package/lib/upload/demo/directory.js +30 -0
- package/lib/upload/demo/drag.d.ts +6 -0
- package/lib/upload/demo/drag.js +58 -0
- package/lib/upload/index.d.ts +4 -9
- package/lib/upload/index.js +16 -0
- package/lib/upload/interface.d.ts +129 -0
- package/lib/upload/interface.js +5 -0
- package/lib/upload/style/css.js +11 -0
- package/lib/upload/style/index-pure.less +586 -0
- package/lib/upload/style/index.css +640 -0
- package/lib/upload/style/index.d.ts +5 -0
- package/lib/upload/style/index.js +11 -0
- package/lib/upload/style/index.less +3 -0
- package/lib/upload/style/rtl.less +177 -0
- package/lib/upload/utils.d.ts +8 -0
- package/lib/upload/utils.js +150 -0
- package/package.json +55 -30
- package/report.html +37 -0
- package/reqwest.d.ts +1 -45
- package/scripts/check-commit.js +67 -0
- package/scripts/check-demo.js +14 -0
- package/scripts/check-site.js +87 -0
- package/scripts/check-ts-demo.js +88 -0
- package/scripts/check-version-md.js +67 -0
- package/scripts/compact-vars.js +13 -0
- package/scripts/css-variable-sync.js +221 -0
- package/scripts/dark-vars.js +19 -0
- package/scripts/default-vars.js +20 -0
- package/scripts/generate-authors.js +37 -0
- package/scripts/generate-color-less.js +50 -0
- package/scripts/generate-version.js +10 -0
- package/scripts/generateLegacyLocale.js +23 -0
- package/scripts/previewEditor/template.html +30 -0
- package/scripts/print-changelog.js +246 -0
- package/scripts/test-all.sh +40 -0
- package/scripts/update-rc.js +7 -0
- package/tsconfig.json +15 -9
- package/typings.d.ts +1 -0
- package/webpack.config.js +168 -0
- package/dist/fle-ui.css +0 -79855
- package/dist/fle-ui.js +0 -715
- package/es/index.css +0 -79855
- package/es/index.js +0 -623
- package/lib/index.css +0 -79855
@@ -0,0 +1,100 @@
|
|
1
|
+
/**
|
2
|
+
* title: 时间类控件
|
3
|
+
* desc: 时间类组件的 `value` 类型为 `moment` 对象,所以在提交服务器前需要预处理。
|
4
|
+
*/
|
5
|
+
|
6
|
+
import React from 'react';
|
7
|
+
import { Form, DatePicker, Button } from '@fle-ui/next';
|
8
|
+
import { TimePicker } from 'antd';
|
9
|
+
|
10
|
+
const { RangePicker } = DatePicker;
|
11
|
+
|
12
|
+
const formItemLayout = {
|
13
|
+
labelCol: {
|
14
|
+
xs: { span: 24 },
|
15
|
+
sm: { span: 8 },
|
16
|
+
},
|
17
|
+
wrapperCol: {
|
18
|
+
xs: { span: 24 },
|
19
|
+
sm: { span: 16 },
|
20
|
+
},
|
21
|
+
};
|
22
|
+
const config = {
|
23
|
+
rules: [
|
24
|
+
{ type: 'object' as const, required: true, message: 'Please select time!' },
|
25
|
+
],
|
26
|
+
};
|
27
|
+
const rangeConfig = {
|
28
|
+
rules: [
|
29
|
+
{ type: 'array' as const, required: true, message: 'Please select time!' },
|
30
|
+
],
|
31
|
+
};
|
32
|
+
|
33
|
+
const TimeRelatedForm = () => {
|
34
|
+
const onFinish = (fieldsValue: any) => {
|
35
|
+
// Should format date value before submit.
|
36
|
+
const rangeValue = fieldsValue['range-picker'];
|
37
|
+
const rangeTimeValue = fieldsValue['range-time-picker'];
|
38
|
+
const values = {
|
39
|
+
...fieldsValue,
|
40
|
+
'date-picker': fieldsValue['date-picker'].format('YYYY-MM-DD'),
|
41
|
+
'date-time-picker': fieldsValue['date-time-picker'].format(
|
42
|
+
'YYYY-MM-DD HH:mm:ss',
|
43
|
+
),
|
44
|
+
'month-picker': fieldsValue['month-picker'].format('YYYY-MM'),
|
45
|
+
'range-picker': [
|
46
|
+
rangeValue[0].format('YYYY-MM-DD'),
|
47
|
+
rangeValue[1].format('YYYY-MM-DD'),
|
48
|
+
],
|
49
|
+
'range-time-picker': [
|
50
|
+
rangeTimeValue[0].format('YYYY-MM-DD HH:mm:ss'),
|
51
|
+
rangeTimeValue[1].format('YYYY-MM-DD HH:mm:ss'),
|
52
|
+
],
|
53
|
+
'time-picker': fieldsValue['time-picker'].format('HH:mm:ss'),
|
54
|
+
};
|
55
|
+
console.log('Received values of form: ', values);
|
56
|
+
};
|
57
|
+
|
58
|
+
return (
|
59
|
+
<Form name="time_related_controls" {...formItemLayout} onFinish={onFinish}>
|
60
|
+
<Form.Item name="date-picker" label="DatePicker" {...config}>
|
61
|
+
<DatePicker />
|
62
|
+
</Form.Item>
|
63
|
+
<Form.Item
|
64
|
+
name="date-time-picker"
|
65
|
+
label="DatePicker[showTime]"
|
66
|
+
{...config}
|
67
|
+
>
|
68
|
+
<DatePicker showTime format="YYYY-MM-DD HH:mm:ss" />
|
69
|
+
</Form.Item>
|
70
|
+
<Form.Item name="month-picker" label="MonthPicker" {...config}>
|
71
|
+
<DatePicker picker="month" />
|
72
|
+
</Form.Item>
|
73
|
+
<Form.Item name="range-picker" label="RangePicker" {...rangeConfig}>
|
74
|
+
<RangePicker />
|
75
|
+
</Form.Item>
|
76
|
+
<Form.Item
|
77
|
+
name="range-time-picker"
|
78
|
+
label="RangePicker[showTime]"
|
79
|
+
{...rangeConfig}
|
80
|
+
>
|
81
|
+
<RangePicker showTime format="YYYY-MM-DD HH:mm:ss" />
|
82
|
+
</Form.Item>
|
83
|
+
<Form.Item name="time-picker" label="TimePicker" {...config}>
|
84
|
+
<TimePicker />
|
85
|
+
</Form.Item>
|
86
|
+
<Form.Item
|
87
|
+
wrapperCol={{
|
88
|
+
xs: { span: 24, offset: 0 },
|
89
|
+
sm: { span: 16, offset: 8 },
|
90
|
+
}}
|
91
|
+
>
|
92
|
+
<Button type="primary" htmlType="submit">
|
93
|
+
Submit
|
94
|
+
</Button>
|
95
|
+
</Form.Item>
|
96
|
+
</Form>
|
97
|
+
);
|
98
|
+
};
|
99
|
+
|
100
|
+
export default TimeRelatedForm;
|
@@ -0,0 +1,147 @@
|
|
1
|
+
/**
|
2
|
+
* title: 自定义校验
|
3
|
+
* desc:
|
4
|
+
*/
|
5
|
+
|
6
|
+
import React from 'react';
|
7
|
+
import {
|
8
|
+
Form,
|
9
|
+
Input,
|
10
|
+
DatePicker,
|
11
|
+
Select,
|
12
|
+
Cascader,
|
13
|
+
InputNumber,
|
14
|
+
} from '@fle-ui/next';
|
15
|
+
import { TimePicker } from 'antd';
|
16
|
+
import { SmileOutlined } from '@ant-design/icons';
|
17
|
+
|
18
|
+
const { Option } = Select;
|
19
|
+
|
20
|
+
const formItemLayout = {
|
21
|
+
labelCol: {
|
22
|
+
xs: { span: 24 },
|
23
|
+
sm: { span: 5 },
|
24
|
+
},
|
25
|
+
wrapperCol: {
|
26
|
+
xs: { span: 24 },
|
27
|
+
sm: { span: 12 },
|
28
|
+
},
|
29
|
+
};
|
30
|
+
|
31
|
+
const Demo = () => {
|
32
|
+
return (
|
33
|
+
<Form {...formItemLayout}>
|
34
|
+
<Form.Item
|
35
|
+
label="Fail"
|
36
|
+
validateStatus="error"
|
37
|
+
help="Should be combination of numbers & alphabets"
|
38
|
+
>
|
39
|
+
<Input placeholder="unavailable choice" id="error" />
|
40
|
+
</Form.Item>
|
41
|
+
|
42
|
+
<Form.Item label="Warning" validateStatus="warning">
|
43
|
+
<Input placeholder="Warning" id="warning" prefix={<SmileOutlined />} />
|
44
|
+
</Form.Item>
|
45
|
+
|
46
|
+
<Form.Item
|
47
|
+
label="Validating"
|
48
|
+
hasFeedback
|
49
|
+
validateStatus="validating"
|
50
|
+
help="The information is being validated..."
|
51
|
+
>
|
52
|
+
<Input
|
53
|
+
placeholder="I'm the content is being validated"
|
54
|
+
id="validating"
|
55
|
+
/>
|
56
|
+
</Form.Item>
|
57
|
+
|
58
|
+
<Form.Item label="Success" hasFeedback validateStatus="success">
|
59
|
+
<Input placeholder="I'm the content" id="success" />
|
60
|
+
</Form.Item>
|
61
|
+
|
62
|
+
<Form.Item label="Warning" hasFeedback validateStatus="warning">
|
63
|
+
<Input placeholder="Warning" id="warning2" />
|
64
|
+
</Form.Item>
|
65
|
+
|
66
|
+
<Form.Item
|
67
|
+
label="Fail"
|
68
|
+
hasFeedback
|
69
|
+
validateStatus="error"
|
70
|
+
help="Should be combination of numbers & alphabets"
|
71
|
+
>
|
72
|
+
<Input placeholder="unavailable choice" id="error2" />
|
73
|
+
</Form.Item>
|
74
|
+
|
75
|
+
<Form.Item label="Success" hasFeedback validateStatus="success">
|
76
|
+
<DatePicker style={{ width: '100%' }} />
|
77
|
+
</Form.Item>
|
78
|
+
|
79
|
+
<Form.Item label="Warning" hasFeedback validateStatus="warning">
|
80
|
+
<TimePicker style={{ width: '100%' }} />
|
81
|
+
</Form.Item>
|
82
|
+
|
83
|
+
<Form.Item label="Error" hasFeedback validateStatus="error">
|
84
|
+
<Select allowClear>
|
85
|
+
<Option value="1">Option 1</Option>
|
86
|
+
<Option value="2">Option 2</Option>
|
87
|
+
<Option value="3">Option 3</Option>
|
88
|
+
</Select>
|
89
|
+
</Form.Item>
|
90
|
+
|
91
|
+
<Form.Item
|
92
|
+
label="Validating"
|
93
|
+
hasFeedback
|
94
|
+
validateStatus="validating"
|
95
|
+
help="The information is being validated..."
|
96
|
+
>
|
97
|
+
<Cascader options={[{ value: 'xx', label: 'xx' }]} allowClear />
|
98
|
+
</Form.Item>
|
99
|
+
|
100
|
+
<Form.Item label="inline" style={{ marginBottom: 0 }}>
|
101
|
+
<Form.Item
|
102
|
+
validateStatus="error"
|
103
|
+
help="Please select the correct date"
|
104
|
+
style={{ display: 'inline-block', width: 'calc(50% - 12px)' }}
|
105
|
+
>
|
106
|
+
<DatePicker />
|
107
|
+
</Form.Item>
|
108
|
+
<span
|
109
|
+
style={{
|
110
|
+
display: 'inline-block',
|
111
|
+
width: '24px',
|
112
|
+
lineHeight: '32px',
|
113
|
+
textAlign: 'center',
|
114
|
+
}}
|
115
|
+
>
|
116
|
+
-
|
117
|
+
</span>
|
118
|
+
<Form.Item
|
119
|
+
style={{ display: 'inline-block', width: 'calc(50% - 12px)' }}
|
120
|
+
>
|
121
|
+
<DatePicker />
|
122
|
+
</Form.Item>
|
123
|
+
</Form.Item>
|
124
|
+
|
125
|
+
<Form.Item label="Success" hasFeedback validateStatus="success">
|
126
|
+
<InputNumber style={{ width: '100%' }} />
|
127
|
+
</Form.Item>
|
128
|
+
|
129
|
+
<Form.Item label="Success" hasFeedback validateStatus="success">
|
130
|
+
<Input allowClear placeholder="with allowClear" />
|
131
|
+
</Form.Item>
|
132
|
+
|
133
|
+
<Form.Item label="Warning" hasFeedback validateStatus="warning">
|
134
|
+
<Input.Password placeholder="with input password" />
|
135
|
+
</Form.Item>
|
136
|
+
|
137
|
+
<Form.Item label="Error" hasFeedback validateStatus="error">
|
138
|
+
<Input.Password
|
139
|
+
allowClear
|
140
|
+
placeholder="with input password and allowClear"
|
141
|
+
/>
|
142
|
+
</Form.Item>
|
143
|
+
</Form>
|
144
|
+
);
|
145
|
+
};
|
146
|
+
|
147
|
+
export default Demo;
|
@@ -0,0 +1,71 @@
|
|
1
|
+
/**
|
2
|
+
* title: 自行处理表单数据
|
3
|
+
* desc: ps: `Form` 具有自动收集数据并校验的功能,但如果您不需要这个功能,或者默认的行为无法满足业务需求,可以选择自行处理数据。
|
4
|
+
*/
|
5
|
+
|
6
|
+
import React, { useState } from 'react';
|
7
|
+
import { Form, InputNumber } from '@fle-ui/next';
|
8
|
+
|
9
|
+
type ValidateStatus = Parameters<typeof Form.Item>[0]['validateStatus'];
|
10
|
+
type ValueType = string | number;
|
11
|
+
|
12
|
+
function validatePrimeNumber(number: ValueType): {
|
13
|
+
validateStatus: ValidateStatus;
|
14
|
+
errorMsg: string | null;
|
15
|
+
} {
|
16
|
+
if (number === 11) {
|
17
|
+
return {
|
18
|
+
validateStatus: 'success',
|
19
|
+
errorMsg: null,
|
20
|
+
};
|
21
|
+
}
|
22
|
+
return {
|
23
|
+
validateStatus: 'error',
|
24
|
+
errorMsg: 'The prime between 8 and 12 is 11!',
|
25
|
+
};
|
26
|
+
}
|
27
|
+
|
28
|
+
const formItemLayout = {
|
29
|
+
labelCol: { span: 7 },
|
30
|
+
wrapperCol: { span: 12 },
|
31
|
+
};
|
32
|
+
|
33
|
+
const RawForm = () => {
|
34
|
+
const [number, setNumber] = useState<{
|
35
|
+
value: ValueType;
|
36
|
+
validateStatus?: ValidateStatus;
|
37
|
+
errorMsg?: string | null;
|
38
|
+
}>({
|
39
|
+
value: 11,
|
40
|
+
});
|
41
|
+
|
42
|
+
const tips =
|
43
|
+
'A prime is a natural number greater than 1 that has no positive divisors other than 1 and itself.';
|
44
|
+
|
45
|
+
const onNumberChange = (value: ValueType) => {
|
46
|
+
setNumber({
|
47
|
+
...validatePrimeNumber(value),
|
48
|
+
value,
|
49
|
+
});
|
50
|
+
};
|
51
|
+
|
52
|
+
return (
|
53
|
+
<Form>
|
54
|
+
<Form.Item
|
55
|
+
{...formItemLayout}
|
56
|
+
label="Prime between 8 & 12"
|
57
|
+
validateStatus={number.validateStatus}
|
58
|
+
help={number.errorMsg || tips}
|
59
|
+
>
|
60
|
+
<InputNumber
|
61
|
+
min={8}
|
62
|
+
max={12}
|
63
|
+
value={number.value}
|
64
|
+
onChange={onNumberChange}
|
65
|
+
/>
|
66
|
+
</Form.Item>
|
67
|
+
</Form>
|
68
|
+
);
|
69
|
+
};
|
70
|
+
|
71
|
+
export default RawForm;
|
@@ -0,0 +1,626 @@
|
|
1
|
+
---
|
2
|
+
title: Form 表单
|
3
|
+
order: 0
|
4
|
+
legacy: /form
|
5
|
+
group:
|
6
|
+
path: /
|
7
|
+
nav:
|
8
|
+
title: 组件
|
9
|
+
path: /components
|
10
|
+
---
|
11
|
+
|
12
|
+
# Form 表单
|
13
|
+
|
14
|
+
高性能表单控件,自带数据域管理。包含数据录入、校验以及对应样式。
|
15
|
+
|
16
|
+
## 何时使用
|
17
|
+
|
18
|
+
- 用于创建一个实体或收集信息。
|
19
|
+
- 需要对输入的数据类型进行校验时。
|
20
|
+
|
21
|
+
## 代码演示
|
22
|
+
|
23
|
+
### 基本使用
|
24
|
+
<code src="./demo/basic.tsx" />
|
25
|
+
|
26
|
+
### 表单方法调用
|
27
|
+
<code src="./demo/control-hooks.tsx" />
|
28
|
+
|
29
|
+
### 表单方法调用(Class component)
|
30
|
+
<code src="./demo/control-ref.tsx" />
|
31
|
+
|
32
|
+
### 表单布局
|
33
|
+
<code src="./demo/layout.tsx" />
|
34
|
+
|
35
|
+
### 必选样式
|
36
|
+
<code src="./demo/required-mark.tsx" />
|
37
|
+
|
38
|
+
### 表单尺寸
|
39
|
+
<code src="./demo/size.tsx" />
|
40
|
+
|
41
|
+
### 动态增减表单项
|
42
|
+
<code src="./demo/dynamic-form-item.tsx" />
|
43
|
+
|
44
|
+
### 动态增减嵌套字段
|
45
|
+
<code src="./demo/dynamic-form-items.tsx" />
|
46
|
+
|
47
|
+
### 复杂的动态增减表单项
|
48
|
+
<code src="./demo/dynamic-form-items-complex.tsx" />
|
49
|
+
|
50
|
+
### 嵌套结构与校验信息
|
51
|
+
<code src="./demo/nest-messages.tsx" />
|
52
|
+
|
53
|
+
### 复杂一点的控件
|
54
|
+
|
55
|
+
<code src="./demo/complex-form-control.tsx" />
|
56
|
+
|
57
|
+
这里演示 `Form.Item` 内有多个元素的使用方式。`<Form.Item name="field" />` 只会对它的直接子元素绑定表单功能,例如直接包裹了 Input/Select。如果控件前后还有一些文案或样式装点,或者一个表单项内有多个控件,你可以使用内嵌的 `Form.Item` 完成。你可以给 `Form.Item` 自定义 `style` 进行内联布局,或者添加 `noStyle` 作为纯粹的无样式绑定组件(类似 3.x 中的 `getFieldDecorator`)。
|
58
|
+
|
59
|
+
```diff
|
60
|
+
- <Form.Item label="Field" name="field">
|
61
|
+
- <Input />
|
62
|
+
- </Form.Item>
|
63
|
+
+ <Form.Item label="Field">
|
64
|
+
+ <Form.Item name="field" noStyle><Input /></Form.Item> // 直接包裹才会绑定表单
|
65
|
+
+ <span>description</span>
|
66
|
+
+ </Form.Item>
|
67
|
+
```
|
68
|
+
|
69
|
+
这里展示了三种典型场景:
|
70
|
+
|
71
|
+
- `Username`:输入框后面有描述文案或其他组件,在 `Form.Item` 内使用 `<Form.Item name="field" noStyle />` 去绑定对应子控件。
|
72
|
+
- `Address`:有两个控件,在 `Form.Item` 内使用两个 `<Form.Item name="field" noStyle />` 分别绑定对应控件。
|
73
|
+
- `BirthDate`:有两个内联控件,错误信息展示各自控件下,使用两个 `<Form.Item name="field" />` 分别绑定对应控件,并修改 `style` 使其内联布局。
|
74
|
+
|
75
|
+
> 注意,在 label 对应的 Form.Item 上不要在指定 `name` 属性,这个 Item 只作为布局作用。
|
76
|
+
|
77
|
+
更复杂的封装复用方式可以参考下面的 `自定义表单控件` 演示。
|
78
|
+
|
79
|
+
|
80
|
+
---------------------------------------------------------------------------------------
|
81
|
+
|
82
|
+
### 自定义表单控件
|
83
|
+
|
84
|
+
|
85
|
+
自定义或第三方的表单控件,也可以与 Form 组件一起使用。只要该组件遵循以下的约定:
|
86
|
+
|
87
|
+
> - 提供受控属性 `value` 或其它与 [`valuePropName`](https://ant.design/components/form-cn/#Form.Item) 的值同名的属性。
|
88
|
+
> - 提供 `onChange` 事件或 [`trigger`](https://ant.design/components/form-cn/#Form.Item) 的值同名的事件。
|
89
|
+
|
90
|
+
<code src="./demo/customized-form-controls.tsx" />
|
91
|
+
|
92
|
+
|
93
|
+
### 表单数据存储于上层组件
|
94
|
+
|
95
|
+
|
96
|
+
通过 `onFieldsChange` 和 `fields`,可以把表单的数据存储到上层组件或者 [Redux](https://github.com/reactjs/redux)、[dva](https://github.com/dvajs/dva) 中,更多可参考 [rc-field-form 示例](https://rc-field-form.react-component.now.sh/?selectedKind=rc-field-form&selectedStory=StateForm-redux&full=0&addons=1&stories=1&panelRight=0&addonPanel=storybook%2Factions%2Factions-panel)。
|
97
|
+
|
98
|
+
**注意:** 将表单数据存储于外部容器[并非好的实践](https://github.com/reduxjs/redux/issues/1287#issuecomment-175351978),如无必要请避免使用。
|
99
|
+
|
100
|
+
<code src="./demo/global-state.tsx" />
|
101
|
+
|
102
|
+
### 多表单联动
|
103
|
+
<code src="./demo/form-context.tsx" />
|
104
|
+
|
105
|
+
### 内联登录栏
|
106
|
+
<code src="./demo/inline-login.tsx" />
|
107
|
+
|
108
|
+
### 登录框
|
109
|
+
<code src="./demo/normal-login.tsx" />
|
110
|
+
|
111
|
+
### 注册新用户
|
112
|
+
<code src="./demo/register.tsx" />
|
113
|
+
|
114
|
+
### 高级搜索
|
115
|
+
<code src="./demo/advanced-search/index.tsx" />
|
116
|
+
|
117
|
+
### 弹出层中的新建表单
|
118
|
+
<code src="./demo/form-in-modal/index.tsx" />
|
119
|
+
|
120
|
+
### 时间类控件
|
121
|
+
<code src="./demo/time-related-controls.tsx" />
|
122
|
+
|
123
|
+
### 自行处理表单数据
|
124
|
+
<code src="./demo/without-form-create.tsx" />
|
125
|
+
|
126
|
+
### 自定义校验
|
127
|
+
|
128
|
+
我们提供了 `validateStatus` `help` `hasFeedback` 等属性,你可以不通过 Form 自己定义校验的时机和内容。
|
129
|
+
|
130
|
+
1. `validateStatus`: 校验状态,可选 'success', 'warning', 'error', 'validating'。
|
131
|
+
2. `hasFeedback`:用于给输入框添加反馈图标。
|
132
|
+
3. `help`:设置校验文案。
|
133
|
+
|
134
|
+
<code src="./demo/validate-static.tsx" />
|
135
|
+
|
136
|
+
### 动态校验规则
|
137
|
+
<code src="./demo/dynamic-rule.tsx" />
|
138
|
+
|
139
|
+
|
140
|
+
## API
|
141
|
+
|
142
|
+
### Form
|
143
|
+
|
144
|
+
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
145
|
+
| --- | --- | --- | --- | --- |
|
146
|
+
| colon | 配置 Form.Item 的 `colon` 的默认值。表示是否显示 label 后面的冒号 (只有在属性 layout 为 horizontal 时有效) | boolean | true | |
|
147
|
+
| component | 设置 Form 渲染元素,为 `false` 则不创建 DOM 节点 | ComponentType \| false | form | |
|
148
|
+
| fields | 通过状态管理(如 redux)控制表单字段,如非强需求不推荐使用。查看[示例](#components-form-demo-global-state) | [FieldData](#FieldData)\[] | - | |
|
149
|
+
| form | 经 `Form.useForm()` 创建的 form 控制实例,不提供时会自动创建 | [FormInstance](#FormInstance) | - | |
|
150
|
+
| initialValues | 表单默认值,只有初始化以及重置时生效 | object | - | |
|
151
|
+
| labelAlign | label 标签的文本对齐方式 | `left` \| `right` | `right` | |
|
152
|
+
| labelCol | label 标签布局,同 `<Col>` 组件,设置 `span` `offset` 值,如 `{span: 3, offset: 12}` 或 `sm: {span: 3, offset: 12}` | [object](/components/grid/#Col) | - | |
|
153
|
+
| layout | 表单布局 | `horizontal` \| `vertical` \| `inline` | `horizontal` | |
|
154
|
+
| name | 表单名称,会作为表单字段 `id` 前缀使用 | string | - | |
|
155
|
+
| preserve | 当字段被删除时保留字段值 | boolean | true | 4.4.0 |
|
156
|
+
| requiredMark | 必选样式,可以切换为必选或者可选展示样式。此为 Form 配置,Form.Item 无法单独配置 | boolean \| `optional` | true | 4.6.0 |
|
157
|
+
| scrollToFirstError | 提交失败自动滚动到第一个错误字段 | boolean \| [Options](https://github.com/stipsan/scroll-into-view-if-needed/tree/ece40bd9143f48caf4b99503425ecb16b0ad8249#options) | false | |
|
158
|
+
| size | 设置字段组件的尺寸(仅限 antd 组件) | `small` \| `middle` \| `large` | - | |
|
159
|
+
| validateMessages | 验证提示模板,说明[见下](#validateMessages) | [ValidateMessages](https://github.com/react-component/field-form/blob/master/src/utils/messages.ts) | - | |
|
160
|
+
| validateTrigger | 统一设置字段触发验证的时机 | string \| string\[] | `onChange` | 4.3.0 |
|
161
|
+
| wrapperCol | 需要为输入控件设置布局样式时,使用该属性,用法同 labelCol | [object](/components/grid/#Col) | - | |
|
162
|
+
| onFieldsChange | 字段更新时触发回调事件 | function(changedFields, allFields) | - | |
|
163
|
+
| onFinish | 提交表单且数据验证成功后回调事件 | function(values) | - | |
|
164
|
+
| onFinishFailed | 提交表单且数据验证失败后回调事件 | function({ values, errorFields, outOfDate }) | - | |
|
165
|
+
| onValuesChange | 字段值更新时触发回调事件 | function(changedValues, allValues) | - | |
|
166
|
+
|
167
|
+
### validateMessages
|
168
|
+
|
169
|
+
Form 为验证提供了[默认的错误提示信息](https://github.com/react-component/field-form/blob/master/src/utils/messages.ts),你可以通过配置 `validateMessages` 属性,修改对应的提示模板。一种常见的使用方式,是配置国际化提示信息:
|
170
|
+
|
171
|
+
```bash
|
172
|
+
const validateMessages = {
|
173
|
+
required: "'${name}' 是必选字段",
|
174
|
+
// ...
|
175
|
+
};
|
176
|
+
|
177
|
+
<Form validateMessages={validateMessages} />;
|
178
|
+
```
|
179
|
+
|
180
|
+
此外,[ConfigProvider](/components/config-provider/) 也提供了全局化配置方案,允许统一配置错误提示模板:
|
181
|
+
|
182
|
+
```bash
|
183
|
+
const validateMessages = {
|
184
|
+
required: "'${name}' 是必选字段",
|
185
|
+
// ...
|
186
|
+
};
|
187
|
+
|
188
|
+
<ConfigProvider form={{ validateMessages }}>
|
189
|
+
<Form />
|
190
|
+
</ConfigProvider>;
|
191
|
+
```
|
192
|
+
|
193
|
+
## Form.Item
|
194
|
+
|
195
|
+
表单字段组件,用于数据双向绑定、校验、布局等。
|
196
|
+
|
197
|
+
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
198
|
+
| --- | --- | --- | --- | --- |
|
199
|
+
| colon | 配合 `label` 属性使用,表示是否显示 `label` 后面的冒号 | boolean | true | |
|
200
|
+
| dependencies | 设置依赖字段,说明[见下](#dependencies) | [NamePath](#NamePath)\[] | - | |
|
201
|
+
| extra | 额外的提示信息,和 `help` 类似,当需要错误信息和提示文案同时出现时,可以使用这个。 | ReactNode | - | |
|
202
|
+
| getValueFromEvent | 设置如何将 event 的值转换成字段值 | (..args: any\[]) => any | - | |
|
203
|
+
| getValueProps | 为子元素添加额外的属性 | (value: any) => any | - | 4.2.0 |
|
204
|
+
| hasFeedback | 配合 `validateStatus` 属性使用,展示校验状态图标,建议只配合 Input 组件使用 | boolean | false | |
|
205
|
+
| help | 提示信息,如不设置,则会根据校验规则自动生成 | ReactNode | - | |
|
206
|
+
| hidden | 是否隐藏字段(依然会收集和校验字段) | boolean | false | 4.4.0 |
|
207
|
+
| htmlFor | 设置子元素 label `htmlFor` 属性 | string | - | |
|
208
|
+
| initialValue | 设置子元素默认值,如果与 Form 的 `initialValues` 冲突则以 Form 为准 | string | - | 4.2.0 |
|
209
|
+
| label | `label` 标签的文本 | ReactNode | - | |
|
210
|
+
| labelAlign | 标签文本对齐方式 | `left` \| `right` | `right` | |
|
211
|
+
| labelCol | `label` 标签布局,同 `<Col>` 组件,设置 `span` `offset` 值,如 `{span: 3, offset: 12}` 或 `sm: {span: 3, offset: 12}`。你可以通过 Form 的 `labelCol` 进行统一设置,,不会作用于嵌套 Item。当和 Form 同时设置时,以 Item 为准 | [object](/components/grid/#Col) | - | |
|
212
|
+
| messageVariables | 默认验证字段的信息 | Record<string, string> | - | 4.7.0 |
|
213
|
+
| name | 字段名,支持数组 | [NamePath](#NamePath) | - | |
|
214
|
+
| normalize | 组件获取值后进行转换,再放入 Form 中。不支持异步 | (value, prevValue, prevValues) => any | - | |
|
215
|
+
| noStyle | 为 `true` 时不带样式,作为纯字段控件使用 | boolean | false | |
|
216
|
+
| preserve | 当字段被删除时保留字段值 | boolean | true | 4.4.0 |
|
217
|
+
| required | 必填样式设置。如不设置,则会根据校验规则自动生成 | boolean | false | |
|
218
|
+
| rules | 校验规则,设置字段的校验逻辑。点击[此处](#components-form-demo-basic)查看示例 | [Rule](#Rule)\[] | - | |
|
219
|
+
| shouldUpdate | 自定义字段更新逻辑,说明[见下](#shouldUpdate) | boolean \| (prevValue, curValue) => boolean | false | |
|
220
|
+
| tooltip | 配置提示信息 | ReactNode \| [TooltipProps & { icon: ReactNode }](/components/tooltip#API) | - | 4.7.0 |
|
221
|
+
| trigger | 设置收集字段值变更的时机。点击[此处](#components-form-demo-customized-form-controls)查看示例 | string | `onChange` | |
|
222
|
+
| validateFirst | 当某一规则校验不通过时,是否停止剩下的规则的校验。设置 `parallel` 时会并行校验 | boolean \| `parallel` | false | `parallel`: 4.5.0 |
|
223
|
+
| validateStatus | 校验状态,如不设置,则会根据校验规则自动生成,可选:'success' 'warning' 'error' 'validating' | string | - | |
|
224
|
+
| validateTrigger | 设置字段校验的时机 | string \| string\[] | `onChange` | |
|
225
|
+
| valuePropName | 子节点的值的属性,如 Switch 的是 'checked'。该属性为 `getValueProps` 的封装,自定义 `getValueProps` 后会失效 | string | `value` | |
|
226
|
+
| wrapperCol | 需要为输入控件设置布局样式时,使用该属性,用法同 `labelCol`。你可以通过 Form 的 `wrapperCol` 进行统一设置,不会作用于嵌套 Item。当和 Form 同时设置时,以 Item 为准 | [object](/components/grid/#Col) | - | |
|
227
|
+
|
228
|
+
被设置了 `name` 属性的 `Form.Item` 包装的控件,表单控件会自动添加 `value`(或 `valuePropName` 指定的其他属性) `onChange`(或 `trigger` 指定的其他属性),数据同步将被 Form 接管,这会导致以下结果:
|
229
|
+
|
230
|
+
1. 你**不再需要也不应该**用 `onChange` 来做数据收集同步(你可以使用 Form 的 `onValuesChange`),但还是可以继续监听 `onChange` 事件。
|
231
|
+
2. 你不能用控件的 `value` 或 `defaultValue` 等属性来设置表单域的值,默认值可以用 Form 里的 `initialValues` 来设置。注意 `initialValues` 不能被 `setState` 动态更新,你需要用 `setFieldsValue` 来更新。
|
232
|
+
3. 你不应该用 `setState`,可以使用 `form.setFieldsValue` 来动态改变表单值。
|
233
|
+
|
234
|
+
### dependencies
|
235
|
+
|
236
|
+
当字段间存在依赖关系时使用。如果一个字段设置了 `dependencies` 属性。那么它所依赖的字段更新时,该字段将自动触发更新与校验。一种常见的场景,就是注册用户表单的“密码”与“确认密码”字段。“确认密码”校验依赖于“密码”字段,设置 `dependencies` 后,“密码”字段更新会重新触发“校验密码”的校验逻辑。你可以参考[具体例子](#components-form-demo-register)。
|
237
|
+
|
238
|
+
`dependencies` 不应和 `shouldUpdate` 一起使用,因为这可能带来更新逻辑的混乱。
|
239
|
+
|
240
|
+
从 `4.5.0` 版本开始,`dependencies` 支持使用 render props 类型 children 的 `Form.Item`。
|
241
|
+
|
242
|
+
### shouldUpdate
|
243
|
+
|
244
|
+
Form 通过增量更新方式,只更新被修改的字段相关组件以达到性能优化目的。大部分场景下,你只需要编写代码或者与 [`dependencies`](#dependencies) 属性配合校验即可。而在某些特定场景,例如修改某个字段值后出现新的字段选项、或者纯粹希望表单任意变化都对某一个区域进行渲染。你可以通过 `shouldUpdate` 修改 Form.Item 的更新逻辑。
|
245
|
+
|
246
|
+
当 `shouldUpdate` 为 `true` 时,Form 的任意变化都会使该 Form.Item 重新渲染。这对于自定义渲染一些区域十分有帮助:
|
247
|
+
|
248
|
+
```bash
|
249
|
+
<Form.Item shouldUpdate>
|
250
|
+
{() => {
|
251
|
+
return <pre>{JSON.stringify(form.getFieldsValue(), null, 2)}</pre>;
|
252
|
+
}}
|
253
|
+
</Form.Item>
|
254
|
+
```
|
255
|
+
|
256
|
+
你可以参考[示例](#components-form-demo-horizontal-login)查看具体使用场景。
|
257
|
+
|
258
|
+
当 `shouldUpdate` 为方法时,表单的每次数值更新都会调用该方法,提供原先的值与当前的值以供你比较是否需要更新。这对于是否根据值来渲染额外字段十分有帮助:
|
259
|
+
|
260
|
+
```bash
|
261
|
+
<Form.Item shouldUpdate={(prevValues, curValues) => prevValues.additional !== curValues.additional}>
|
262
|
+
{() => {
|
263
|
+
return (
|
264
|
+
<Form.Item name="other">
|
265
|
+
<Input />
|
266
|
+
</Form.Item>
|
267
|
+
);
|
268
|
+
}}
|
269
|
+
</Form.Item>
|
270
|
+
```
|
271
|
+
|
272
|
+
你可以参考[示例](#components-form-demo-control-hooks)查看具体使用场景。
|
273
|
+
|
274
|
+
### messageVariables
|
275
|
+
|
276
|
+
你可以通过 `messageVariables` 修改 Form.Item 的默认验证信息。
|
277
|
+
|
278
|
+
```bash
|
279
|
+
<Form>
|
280
|
+
<Form.Item messageVariables={{ another: 'good' }} label="user">
|
281
|
+
<Input />
|
282
|
+
</Form.Item>
|
283
|
+
<Form.Item messageVariables={{ label: 'good' }} label={<span>user</span>}>
|
284
|
+
<Input />
|
285
|
+
</Form.Item>
|
286
|
+
</Form>
|
287
|
+
```
|
288
|
+
|
289
|
+
## Form.List
|
290
|
+
|
291
|
+
为字段提供数组化管理。
|
292
|
+
|
293
|
+
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
294
|
+
| --- | --- | --- | --- | --- |
|
295
|
+
| children | 渲染函数 | (fields: Field\[], operation: { add, remove, move }, meta: { errors }) => React.ReactNode | - | |
|
296
|
+
| initialValue | 设置子元素默认值,如果与 Form 的 `initialValues` 冲突则以 Form 为准 | any\[] | - | 4.9.0 |
|
297
|
+
| name | 字段名,支持数组 | [NamePath](#NamePath) | - | |
|
298
|
+
| rules | 校验规则,仅支持自定义规则。需要配合 [ErrorList](#Form.ErrorList) 一同使用。 | { validator, message }\[] | - | 4.7.0 |
|
299
|
+
|
300
|
+
```bash
|
301
|
+
<Form.List>
|
302
|
+
{fields =>
|
303
|
+
fields.map(field => (
|
304
|
+
<Form.Item {...field}>
|
305
|
+
<Input />
|
306
|
+
</Form.Item>
|
307
|
+
))
|
308
|
+
}
|
309
|
+
</Form.List>
|
310
|
+
```
|
311
|
+
|
312
|
+
注意:Form.List 下的字段不应该配置 `initialValue`,你始终应该通过 Form.List 的 `initialValue` 或者 Form 的 `initialValues` 来配置。
|
313
|
+
|
314
|
+
## operation
|
315
|
+
|
316
|
+
Form.List 渲染表单相关操作函数。
|
317
|
+
|
318
|
+
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
319
|
+
| ------ | ---------- | -------------------------------------------------- | ----------- | ----- |
|
320
|
+
| add | 新增表单项 | (defaultValue?: any, insertIndex?: number) => void | insertIndex | 4.6.0 |
|
321
|
+
| move | 移动表单项 | (from: number, to: number) => void | - | |
|
322
|
+
| remove | 删除表单项 | (index: number \| number\[]) => void | number\[] | 4.5.0 |
|
323
|
+
|
324
|
+
## Form.ErrorList
|
325
|
+
|
326
|
+
4.7.0 新增。错误展示组件,仅限配合 Form.List 的 rules 一同使用。参考[示例](#components-form-demo-dynamic-form-item)。
|
327
|
+
|
328
|
+
| 参数 | 说明 | 类型 | 默认值 |
|
329
|
+
| ------ | -------- | ------------ | ------ |
|
330
|
+
| errors | 错误列表 | ReactNode\[] | - |
|
331
|
+
|
332
|
+
## Form.Provider
|
333
|
+
|
334
|
+
提供表单间联动功能,其下设置 `name` 的 Form 更新时,会自动触发对应事件。查看[示例](#components-form-demo-form-context)。
|
335
|
+
|
336
|
+
| 参数 | 说明 | 类型 | 默认值 |
|
337
|
+
| --- | --- | --- | --- |
|
338
|
+
| onFormChange | 子表单字段更新时触发 | function(formName: string, info: { changedFields, forms }) | - |
|
339
|
+
| onFormFinish | 子表单提交时触发 | function(formName: string, info: { values, forms }) | - |
|
340
|
+
|
341
|
+
```bash
|
342
|
+
<Form.Provider
|
343
|
+
onFormFinish={name => {
|
344
|
+
if (name === 'form1') {
|
345
|
+
// Do something...
|
346
|
+
}
|
347
|
+
}}
|
348
|
+
>
|
349
|
+
<Form name="form1">...</Form>
|
350
|
+
<Form name="form2">...</Form>
|
351
|
+
</Form.Provider>
|
352
|
+
```
|
353
|
+
|
354
|
+
### FormInstance
|
355
|
+
|
356
|
+
| 名称 | 说明 | 类型 | 版本 |
|
357
|
+
| --- | --- | --- | --- |
|
358
|
+
| getFieldError | 获取对应字段名的错误信息 | (name: [NamePath](#NamePath)) => string\[] | |
|
359
|
+
| getFieldInstance | 获取对应字段实例 | (name: [NamePath](#NamePath)) => any | 4.4.0 |
|
360
|
+
| getFieldsError | 获取一组字段名对应的错误信息,返回为数组形式 | (nameList?: [NamePath](#NamePath)\[]) => FieldError\[] | |
|
361
|
+
| getFieldsValue | 获取一组字段名对应的值,会按照对应结构返回。默认返回现存字段值,当调用 `getFieldsValue(true)` 时返回所有值 | (nameList?: [NamePath](#NamePath)\[], filterFunc?: (meta: { touched: boolean, validating: boolean }) => boolean) => any | |
|
362
|
+
| getFieldValue | 获取对应字段名的值 | (name: [NamePath](#NamePath)) => any | |
|
363
|
+
| isFieldsTouched | 检查一组字段是否被用户操作过,`allTouched` 为 `true` 时检查是否所有字段都被操作过 | (nameList?: [NamePath](#NamePath)\[], allTouched?: boolean) => boolean | |
|
364
|
+
| isFieldTouched | 检查对应字段是否被用户操作过 | (name: [NamePath](#NamePath)) => boolean | |
|
365
|
+
| isFieldValidating | 检查对应字段是否正在校验 | (name: [NamePath](#NamePath)) => boolean | |
|
366
|
+
| resetFields | 重置一组字段到 `initialValues` | (fields?: [FieldData](#FieldData)\[]) => void | |
|
367
|
+
| scrollToField | 滚动到对应字段位置 | (name: [NamePath](#NamePath), options: \[[ScrollOptions](https://github.com/stipsan/scroll-into-view-if-needed/tree/ece40bd9143f48caf4b99503425ecb16b0ad8249#options)]) => void | |
|
368
|
+
| setFields | 设置一组字段状态 | (fields: [FieldData](#FieldData)\[]) => void | |
|
369
|
+
| setFieldsValue | 设置表单的值 | (values) => void | |
|
370
|
+
| submit | 提交表单,与点击 `submit` 按钮效果相同 | () => void | |
|
371
|
+
| validateFields | 触发表单验证 | (nameList?: [NamePath](#NamePath)\[]) => Promise | |
|
372
|
+
|
373
|
+
#### validateFields 返回示例
|
374
|
+
|
375
|
+
```bash
|
376
|
+
validateFields()
|
377
|
+
.then(values => {
|
378
|
+
/*
|
379
|
+
values:
|
380
|
+
{
|
381
|
+
username: 'username',
|
382
|
+
password: 'password',
|
383
|
+
}
|
384
|
+
*/
|
385
|
+
})
|
386
|
+
.catch(errorInfo => {
|
387
|
+
/*
|
388
|
+
errorInfo:
|
389
|
+
{
|
390
|
+
values: {
|
391
|
+
username: 'username',
|
392
|
+
password: 'password',
|
393
|
+
},
|
394
|
+
errorFields: [
|
395
|
+
{ name: ['password'], errors: ['Please input your Password!'] },
|
396
|
+
],
|
397
|
+
outOfDate: false,
|
398
|
+
}
|
399
|
+
*/
|
400
|
+
});
|
401
|
+
```
|
402
|
+
|
403
|
+
### Interface
|
404
|
+
|
405
|
+
#### NamePath
|
406
|
+
|
407
|
+
`string | number | (string | number)[]`
|
408
|
+
|
409
|
+
#### FieldData
|
410
|
+
|
411
|
+
| 名称 | 说明 | 类型 |
|
412
|
+
| ---------- | ---------------- | ------------------------ |
|
413
|
+
| errors | 错误信息 | string\[] |
|
414
|
+
| name | 字段名称 | [NamePath](#NamePath)\[] |
|
415
|
+
| touched | 是否被用户操作过 | boolean |
|
416
|
+
| validating | 是否正在校验 | boolean |
|
417
|
+
| value | 字段对应值 | any |
|
418
|
+
|
419
|
+
#### Rule
|
420
|
+
|
421
|
+
Rule 支持接收 object 进行配置,也支持 function 来动态获取 form 的数据:
|
422
|
+
|
423
|
+
```bash
|
424
|
+
type Rule = RuleConfig | ((form: FormInstance) => RuleConfig);
|
425
|
+
```
|
426
|
+
|
427
|
+
| 名称 | 说明 | 类型 |
|
428
|
+
| --- | --- | --- |
|
429
|
+
| defaultField | 仅在 `type` 为 `array` 类型时有效,用于指定数组元素的校验规则 | [rule](#Rule) |
|
430
|
+
| enum | 是否匹配枚举中的值(需要将 `type` 设置为 `enum`) | any\[] |
|
431
|
+
| fields | 仅在 `type` 为 `array` 或 `object` 类型时有效,用于指定子元素的校验规则 | Record<string, [rule](#Rule)> |
|
432
|
+
| len | string 类型时为字符串长度;number 类型时为确定数字; array 类型时为数组长度 | number |
|
433
|
+
| max | 必须设置 `type`:string 类型为字符串最大长度;number 类型时为最大值;array 类型时为数组最大长度 | number |
|
434
|
+
| message | 错误信息,不设置时会通过[模板](#validateMessages)自动生成 | string |
|
435
|
+
| min | 必须设置 `type`:string 类型为字符串最小长度;number 类型时为最小值;array 类型时为数组最小长度 | number |
|
436
|
+
| pattern | 正则表达式匹配 | RegExp |
|
437
|
+
| required | 是否为必选字段 | boolean |
|
438
|
+
| transform | 将字段值转换成目标值后进行校验 | (value) => any |
|
439
|
+
| type | 类型,常见有 `string` \|`number` \|`boolean` \|`url` \| `email`。更多请参考[此处](https://github.com/yiminghe/async-validator#type) | string |
|
440
|
+
| validateTrigger | 设置触发验证时机,必须是 Form.Item 的 `validateTrigger` 的子集 | string \| string\[] |
|
441
|
+
| validator | 自定义校验,接收 Promise 作为返回值。[示例](#components-form-demo-register)参考 | ([rule](#Rule), value) => Promise |
|
442
|
+
| whitespace | 如果字段仅包含空格则校验不通过,只在 `type: 'string'` 时生效 | boolean |
|
443
|
+
|
444
|
+
## 从 v3 升级到 v4
|
445
|
+
|
446
|
+
如果你是 antd v3 的用户,你可以参考[迁移示例](/components/form/v3)。
|
447
|
+
|
448
|
+
<style>
|
449
|
+
.ant-form:not(.ant-form-inline):not(.ant-form-vertical) {
|
450
|
+
max-width: 600px;
|
451
|
+
}
|
452
|
+
.markdown.api-container table td:nth-of-type(4) {
|
453
|
+
white-space: nowrap;
|
454
|
+
word-wrap: break-word;
|
455
|
+
}
|
456
|
+
.ant-btn {
|
457
|
+
margin-right: 8px;
|
458
|
+
}
|
459
|
+
</style>
|
460
|
+
|
461
|
+
## FAQ
|
462
|
+
|
463
|
+
### 自定义 validator 没有效果
|
464
|
+
|
465
|
+
这是由于你的 `validator` 有错误导致 `callback` 没有执行到。你可以选择通过 `async` 返回一个 promise 或者使用 `try...catch` 进行错误捕获:
|
466
|
+
|
467
|
+
```bash
|
468
|
+
validator: async (rule, value) => {
|
469
|
+
throw new Error('Something wrong!');
|
470
|
+
}
|
471
|
+
|
472
|
+
// or
|
473
|
+
|
474
|
+
validator(rule, value, callback) => {
|
475
|
+
try {
|
476
|
+
throw new Error('Something wrong!');
|
477
|
+
} catch (err) {
|
478
|
+
callback(err);
|
479
|
+
}
|
480
|
+
}
|
481
|
+
```
|
482
|
+
|
483
|
+
### name 为数组时的转换规则?
|
484
|
+
|
485
|
+
当 `name` 为数组时,会按照顺序填充路径。当存在数字且 form store 中没有该字段时会自动转变成数组。因而如果需要数组为 key 时请使用 string 如:`['1', 'name']`。
|
486
|
+
|
487
|
+
### 为何在 Modal 中调用 form 控制台会报错?
|
488
|
+
|
489
|
+
> Warning: Instance created by `useForm` is not connect to any Form element. Forget to pass `form` prop?
|
490
|
+
|
491
|
+
这是因为你在调用 form 方法时,Modal 还未初始化导致 form 没有关联任何 Form 组件。你可以通过给 Modal 设置 `forceRender` 将其预渲染。示例点击[此处](https://codesandbox.io/s/antd-reproduction-template-ibu5c)。
|
492
|
+
|
493
|
+
### 为什么 Form.Item 下的子组件 `defaultValue` 不生效?
|
494
|
+
|
495
|
+
当你为 Form.Item 设置 `name` 属性后,子组件会转为受控模式。因而 `defaultValue` 不会生效。你需要在 Form 上通过 `initialValues` 设置默认值。
|
496
|
+
|
497
|
+
### 为什么第一次调用 `ref` 的 From 为空?
|
498
|
+
|
499
|
+
`ref` 仅在节点被加载时才会被赋值,请参考 React 官方文档:<https://reactjs.org/docs/refs-and-the-dom.html#accessing-refs>
|
500
|
+
|
501
|
+
### 为什么 `resetFields` 会重新 mount 组件?
|
502
|
+
|
503
|
+
`resetFields` 会重置整个 Field,因而其子组件也会重新 mount 从而消除自定义组件可能存在的副作用(例如异步数据、状态等等)。
|
504
|
+
|
505
|
+
### Form 的 initialValues 与 Item 的 initialValue 区别?
|
506
|
+
|
507
|
+
在大部分场景下,我们总是推荐优先使用 Form 的 `initialValues`。只有存在动态字段时你才应该使用 Item 的 `initialValue`。默认值遵循以下规则:
|
508
|
+
|
509
|
+
1. Form 的 `initialValues` 拥有最高优先级
|
510
|
+
2. Field 的 `initialValue` 次之 \*. 多个同 `name` Item 都设置 `initialValue` 时,则 Item 的 `initialValue` 不生效
|
511
|
+
|
512
|
+
### 为什么字段设置 `rules` 后更改值 `onFieldsChange` 会触发三次?
|
513
|
+
|
514
|
+
字段除了本身的值变化外,校验也是其状态之一。因而在触发字段变化会经历以下几个阶段:
|
515
|
+
|
516
|
+
1. Trigger value change
|
517
|
+
2. Rule validating
|
518
|
+
3. Rule validated
|
519
|
+
|
520
|
+
在触发过程中,调用 `isFieldValidating` 会经历 `false` > `true` > `false` 的变化过程。
|
521
|
+
|
522
|
+
### 为什么 Form.List 不支持 `label` 还需要使用 ErrorList 展示错误?
|
523
|
+
|
524
|
+
Form.List 本身是 renderProps,内部样式非常自由。因而默认配置 `label` 和 `error` 节点很难与之配合。如果你需要 antd 样式的 `label`,可以通过外部包裹 Form.Item 来实现。
|
525
|
+
|
526
|
+
### 为什么 Form.Item 的 `dependencies` 对 Form.List 下的字段没有效果?
|
527
|
+
|
528
|
+
Form.List 下的字段需要包裹 Form.List 本身的 `name`,比如:
|
529
|
+
|
530
|
+
```bash
|
531
|
+
<Form.List name="users">
|
532
|
+
{fields =>
|
533
|
+
fields.map(field => (
|
534
|
+
<React.Fragment key={field.key}>
|
535
|
+
<Form.Item name={[field.name, 'name']} {...someRest1} />
|
536
|
+
<Form.Item name={[field.name, 'age']} {...someRest1} />
|
537
|
+
</React.Fragment>
|
538
|
+
))
|
539
|
+
}
|
540
|
+
</Form.List>
|
541
|
+
```
|
542
|
+
|
543
|
+
依赖则是:`['users', 0, 'name']`
|
544
|
+
|
545
|
+
### 为什么 `normalize` 不能是异步方法?
|
546
|
+
|
547
|
+
React 中异步更新会导致受控组件交互行为异常。当用户交互触发 `onChange` 后,通过异步改变值会导致组件 `value` 不会立刻更新,使得组件呈现假死状态。如果你需要异步触发变更,请通过自定义组件实现内部异步状态。
|
548
|
+
|
549
|
+
<style>
|
550
|
+
.site-form-item-icon {
|
551
|
+
color: rgba(0, 0, 0, 0.25);
|
552
|
+
}
|
553
|
+
[data-theme="dark"] .site-form-item-icon {
|
554
|
+
color: rgba(255,255,255,.3);
|
555
|
+
}
|
556
|
+
|
557
|
+
.dynamic-delete-button {
|
558
|
+
position: relative;
|
559
|
+
top: 4px;
|
560
|
+
margin: 0 8px;
|
561
|
+
color: #999;
|
562
|
+
font-size: 24px;
|
563
|
+
cursor: pointer;
|
564
|
+
transition: all 0.3s;
|
565
|
+
}
|
566
|
+
.dynamic-delete-button:hover {
|
567
|
+
color: #777;
|
568
|
+
}
|
569
|
+
.dynamic-delete-button[disabled] {
|
570
|
+
cursor: not-allowed;
|
571
|
+
opacity: 0.5;
|
572
|
+
}
|
573
|
+
[data-theme="dark"] .dynamic-delete-button {
|
574
|
+
color: rgba(255,255,255,.45);
|
575
|
+
}
|
576
|
+
[data-theme="dark"] .dynamic-delete-button:hover {
|
577
|
+
color: rgba(255,255,255,.65);
|
578
|
+
}
|
579
|
+
|
580
|
+
.language-bash {
|
581
|
+
max-width: 400px;
|
582
|
+
border-radius: 6px;
|
583
|
+
margin-top: 24px;
|
584
|
+
}
|
585
|
+
|
586
|
+
.user {
|
587
|
+
margin-bottom: 8px;
|
588
|
+
}
|
589
|
+
.user .ant-avatar {
|
590
|
+
margin-right: 8px;
|
591
|
+
}
|
592
|
+
|
593
|
+
.ant-row-rtl .user .ant-avatar {
|
594
|
+
margin-right: 0;
|
595
|
+
margin-left: 8px;
|
596
|
+
}
|
597
|
+
|
598
|
+
.login-form {
|
599
|
+
max-width: 300px;
|
600
|
+
}
|
601
|
+
.login-form-forgot {
|
602
|
+
float: right;
|
603
|
+
}
|
604
|
+
.ant-col-rtl .login-form-forgot {
|
605
|
+
float: left;
|
606
|
+
}
|
607
|
+
.login-form-button {
|
608
|
+
width: 100%;
|
609
|
+
}
|
610
|
+
|
611
|
+
</style>
|
612
|
+
|
613
|
+
### 自定义表单控件 `scrollToFirstError` 和 `scrollToField` 失效?
|
614
|
+
|
615
|
+
类似问题:[#28370](https://github.com/ant-design/ant-design/issues/28370) [#27994](https://github.com/ant-design/ant-design/issues/27994)
|
616
|
+
|
617
|
+
滚动依赖于表单控件元素上绑定的 `id` 字段,如果自定义控件没有将 `id` 赋到正确的元素上,这个功能将失效。你可以参考这个 [codesandbox](https://codesandbox.io/s/antd-reproduction-template-forked-25nul?file=/index.js)。
|
618
|
+
|
619
|
+
### `setFieldsValue` 不会触发 `onFieldsChange` 和 `onValuesChange`?
|
620
|
+
|
621
|
+
是的,change 事件仅当用户交互才会触发。该设计是为了防止在 change 事件中调用 `setFieldsValue` 导致的循环问题。
|
622
|
+
|
623
|
+
### 有更多参考文档吗?
|
624
|
+
|
625
|
+
- 你可以阅读[《antd v4 Form 使用心得》](https://zhuanlan.zhihu.com/p/375753910)获得一些使用帮助以及建议。
|
626
|
+
|