@antsoo-lib/components 0.1.2 → 0.1.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/package.json +10 -6
- package/src/_util/ActionButton.tsx +124 -0
- package/src/_util/BaseInput.tsx +169 -0
- package/src/_util/BaseInputInner.tsx +97 -0
- package/src/_util/BaseMixin.ts +46 -0
- package/src/_util/EventInterface.ts +19 -0
- package/src/_util/KeyCode.ts +522 -0
- package/src/_util/Portal.tsx +73 -0
- package/src/_util/PortalWrapper.tsx +191 -0
- package/src/_util/__mocks__/Portal.tsx +13 -0
- package/src/_util/__mocks__/RenderSlot.tsx +12 -0
- package/src/_util/canUseDom.ts +5 -0
- package/src/_util/classNames.ts +28 -0
- package/src/_util/collapseMotion.tsx +51 -0
- package/src/_util/colors.ts +34 -0
- package/src/_util/component-classes.ts +167 -0
- package/src/_util/copy-to-clipboard/index.ts +120 -0
- package/src/_util/copy-to-clipboard/toggle-selection.ts +41 -0
- package/src/_util/createContext.ts +22 -0
- package/src/_util/createRef.ts +31 -0
- package/src/_util/cssinjs/Cache.ts +28 -0
- package/src/_util/cssinjs/Keyframes.ts +19 -0
- package/src/_util/cssinjs/StyleContext.tsx +187 -0
- package/src/_util/cssinjs/hooks/useCacheToken.tsx +167 -0
- package/src/_util/cssinjs/hooks/useGlobalCache.tsx +60 -0
- package/src/_util/cssinjs/hooks/useHMR.ts +34 -0
- package/src/_util/cssinjs/hooks/useStyleRegister/cacheMapUtil.ts +91 -0
- package/src/_util/cssinjs/hooks/useStyleRegister/index.tsx +567 -0
- package/src/_util/cssinjs/index.ts +75 -0
- package/src/_util/cssinjs/linters/contentQuotesLinter.ts +25 -0
- package/src/_util/cssinjs/linters/hashedAnimationLinter.ts +15 -0
- package/src/_util/cssinjs/linters/index.ts +6 -0
- package/src/_util/cssinjs/linters/interface.ts +9 -0
- package/src/_util/cssinjs/linters/legacyNotSelectorLinter.ts +33 -0
- package/src/_util/cssinjs/linters/logicalPropertiesLinter.ts +88 -0
- package/src/_util/cssinjs/linters/parentSelectorLinter.ts +15 -0
- package/src/_util/cssinjs/linters/utils.ts +13 -0
- package/src/_util/cssinjs/theme/Theme.ts +38 -0
- package/src/_util/cssinjs/theme/ThemeCache.ts +135 -0
- package/src/_util/cssinjs/theme/createTheme.ts +26 -0
- package/src/_util/cssinjs/theme/index.ts +4 -0
- package/src/_util/cssinjs/theme/interface.ts +5 -0
- package/src/_util/cssinjs/transformers/interface.ts +5 -0
- package/src/_util/cssinjs/transformers/legacyLogicalProperties.ts +162 -0
- package/src/_util/cssinjs/transformers/px2rem.ts +77 -0
- package/src/_util/cssinjs/util.ts +118 -0
- package/src/_util/debouncedWatch.ts +87 -0
- package/src/_util/eagerComputed.ts +17 -0
- package/src/_util/easings.ts +8 -0
- package/src/_util/env.ts +9 -0
- package/src/_util/extendsObject.ts +21 -0
- package/src/_util/firstNotUndefined.ts +10 -0
- package/src/_util/gapSize.ts +13 -0
- package/src/_util/getRequestAnimationFrame.ts +47 -0
- package/src/_util/getScroll.ts +33 -0
- package/src/_util/getScrollBarSize.ts +60 -0
- package/src/_util/hooks/_vueuse/_configurable.ts +34 -0
- package/src/_util/hooks/_vueuse/is.ts +26 -0
- package/src/_util/hooks/_vueuse/resolveUnref.ts +10 -0
- package/src/_util/hooks/_vueuse/tryOnMounted.ts +15 -0
- package/src/_util/hooks/_vueuse/tryOnScopeDispose.ts +16 -0
- package/src/_util/hooks/_vueuse/types.ts +143 -0
- package/src/_util/hooks/_vueuse/unrefElement.ts +25 -0
- package/src/_util/hooks/_vueuse/useElementSize.ts +66 -0
- package/src/_util/hooks/_vueuse/useMutationObserver.ts +63 -0
- package/src/_util/hooks/_vueuse/useResizeObserver.ts +95 -0
- package/src/_util/hooks/_vueuse/useSupported.ts +14 -0
- package/src/_util/hooks/useBreakpoint.ts +25 -0
- package/src/_util/hooks/useDestroyed.ts +12 -0
- package/src/_util/hooks/useFlexGapSupport.ts +12 -0
- package/src/_util/hooks/useId.ts +31 -0
- package/src/_util/hooks/useLayoutState.ts +42 -0
- package/src/_util/hooks/useMemo.ts +21 -0
- package/src/_util/hooks/useMergedState.ts +47 -0
- package/src/_util/hooks/useRefs.ts +21 -0
- package/src/_util/hooks/useScrollLocker.ts +53 -0
- package/src/_util/hooks/useState.ts +17 -0
- package/src/_util/isNumeric.ts +5 -0
- package/src/_util/isValid.ts +4 -0
- package/src/_util/isValidValue.ts +3 -0
- package/src/_util/json2mq.ts +60 -0
- package/src/_util/omit.ts +9 -0
- package/src/_util/pickAttrs.ts +74 -0
- package/src/_util/placements.ts +111 -0
- package/src/_util/props-util/index.ts +287 -0
- package/src/_util/props-util/initDefaultProps.ts +34 -0
- package/src/_util/raf.ts +47 -0
- package/src/_util/reactivePick.ts +16 -0
- package/src/_util/requestAnimationTimeout.ts +24 -0
- package/src/_util/responsiveObserve.ts +86 -0
- package/src/_util/scrollTo.ts +38 -0
- package/src/_util/setStyle.ts +30 -0
- package/src/_util/shallowequal.ts +50 -0
- package/src/_util/static-style-extract/index.tsx +92 -0
- package/src/_util/static-style-extract/interface.ts +3 -0
- package/src/_util/statusUtils.tsx +23 -0
- package/src/_util/styleChecker.ts +62 -0
- package/src/_util/supportsPassive.js +13 -0
- package/src/_util/throttleByAnimationFrame.ts +31 -0
- package/src/_util/toReactive.ts +43 -0
- package/src/_util/transButton.tsx +103 -0
- package/src/_util/transKeys.ts +17 -0
- package/src/_util/transition.tsx +130 -0
- package/src/_util/type.ts +95 -0
- package/src/_util/unreachableException.ts +7 -0
- package/src/_util/util.ts +102 -0
- package/src/_util/vnode.ts +84 -0
- package/src/_util/vue-types/index.ts +45 -0
- package/src/_util/warning.ts +21 -0
- package/src/_util/wave/WaveEffect.tsx +172 -0
- package/src/_util/wave/index.tsx +96 -0
- package/src/_util/wave/style.ts +38 -0
- package/src/_util/wave/useWave.ts +26 -0
- package/src/_util/wave/util.ts +34 -0
- package/src/affix/index.en-US.md +47 -0
- package/src/affix/index.tsx +287 -0
- package/src/affix/index.zh-CN.md +50 -0
- package/src/affix/style/index.ts +27 -0
- package/src/affix/utils.ts +107 -0
- package/src/alert/index.en-US.md +36 -0
- package/src/alert/index.tsx +207 -0
- package/src/alert/index.zh-CN.md +37 -0
- package/src/alert/style/index.ts +240 -0
- package/src/anchor/Anchor.tsx +331 -0
- package/src/anchor/AnchorLink.tsx +108 -0
- package/src/anchor/context.ts +36 -0
- package/src/anchor/index.en-US.md +59 -0
- package/src/anchor/index.tsx +23 -0
- package/src/anchor/index.zh-CN.md +60 -0
- package/src/anchor/style/index.ts +173 -0
- package/src/app/context.ts +45 -0
- package/src/app/index.en-US.md +131 -0
- package/src/app/index.tsx +84 -0
- package/src/app/index.zh-CN.md +132 -0
- package/src/app/style/index.ts +22 -0
- package/src/auto-complete/OptGroup.tsx +15 -0
- package/src/auto-complete/Option.tsx +18 -0
- package/src/auto-complete/index.en-US.md +95 -0
- package/src/auto-complete/index.tsx +174 -0
- package/src/auto-complete/index.zh-CN.md +96 -0
- package/src/avatar/Avatar.tsx +222 -0
- package/src/avatar/AvatarContext.ts +18 -0
- package/src/avatar/Group.tsx +100 -0
- package/src/avatar/index.en-US.md +37 -0
- package/src/avatar/index.ts +22 -0
- package/src/avatar/index.zh-CN.md +42 -0
- package/src/avatar/style/index.ts +211 -0
- package/src/badge/Badge.tsx +242 -0
- package/src/badge/Ribbon.tsx +63 -0
- package/src/badge/ScrollNumber.tsx +87 -0
- package/src/badge/SingleNumber.tsx +134 -0
- package/src/badge/index.en_US.md +48 -0
- package/src/badge/index.ts +19 -0
- package/src/badge/index.zh-CN.md +49 -0
- package/src/badge/style/index.ts +378 -0
- package/src/breadcrumb/Breadcrumb.tsx +172 -0
- package/src/breadcrumb/BreadcrumbItem.tsx +91 -0
- package/src/breadcrumb/BreadcrumbSeparator.tsx +33 -0
- package/src/breadcrumb/index.en-US.md +120 -0
- package/src/breadcrumb/index.ts +27 -0
- package/src/breadcrumb/index.zh-CN.md +121 -0
- package/src/breadcrumb/style/index.ts +127 -0
- package/src/button/LoadingIcon.tsx +70 -0
- package/src/button/button-group.tsx +61 -0
- package/src/button/button.tsx +246 -0
- package/src/button/buttonTypes.ts +47 -0
- package/src/button/index.en-US.md +72 -0
- package/src/button/index.ts +25 -0
- package/src/button/index.zh-CN.md +75 -0
- package/src/button/style/group.ts +80 -0
- package/src/button/style/index.ts +557 -0
- package/src/calendar/Header.tsx +206 -0
- package/src/calendar/date-fns.tsx +9 -0
- package/src/calendar/dayjs.tsx +9 -0
- package/src/calendar/generateCalendar.tsx +371 -0
- package/src/calendar/index.en-US.md +68 -0
- package/src/calendar/index.tsx +5 -0
- package/src/calendar/index.zh-CN.md +67 -0
- package/src/calendar/locale/ar_EG.ts +3 -0
- package/src/calendar/locale/az_AZ.ts +3 -0
- package/src/calendar/locale/bg_BG.ts +3 -0
- package/src/calendar/locale/bn_BD.ts +3 -0
- package/src/calendar/locale/by_BY.ts +3 -0
- package/src/calendar/locale/ca_ES.ts +3 -0
- package/src/calendar/locale/cs_CZ.ts +3 -0
- package/src/calendar/locale/da_DK.ts +3 -0
- package/src/calendar/locale/de_DE.ts +3 -0
- package/src/calendar/locale/el_GR.ts +3 -0
- package/src/calendar/locale/en_GB.ts +3 -0
- package/src/calendar/locale/en_US.ts +3 -0
- package/src/calendar/locale/es_ES.ts +3 -0
- package/src/calendar/locale/et_EE.ts +3 -0
- package/src/calendar/locale/fa_IR.ts +3 -0
- package/src/calendar/locale/fi_FI.ts +3 -0
- package/src/calendar/locale/fr_BE.ts +3 -0
- package/src/calendar/locale/fr_CA.ts +3 -0
- package/src/calendar/locale/fr_FR.ts +3 -0
- package/src/calendar/locale/ga_IE.ts +3 -0
- package/src/calendar/locale/gl_ES.ts +3 -0
- package/src/calendar/locale/he_IL.ts +3 -0
- package/src/calendar/locale/hi_IN.ts +3 -0
- package/src/calendar/locale/hr_HR.ts +3 -0
- package/src/calendar/locale/hu_HU.ts +3 -0
- package/src/calendar/locale/id_ID.ts +3 -0
- package/src/calendar/locale/is_IS.ts +3 -0
- package/src/calendar/locale/it_IT.ts +3 -0
- package/src/calendar/locale/ja_JP.ts +3 -0
- package/src/calendar/locale/ka_GE.ts +3 -0
- package/src/calendar/locale/kk_KZ.ts +3 -0
- package/src/calendar/locale/km_KH.ts +3 -0
- package/src/calendar/locale/kmr_IQ.ts +3 -0
- package/src/calendar/locale/kn_IN.ts +3 -0
- package/src/calendar/locale/ko_KR.ts +3 -0
- package/src/calendar/locale/lt_LT.ts +3 -0
- package/src/calendar/locale/lv_LV.ts +3 -0
- package/src/calendar/locale/mk_MK.ts +3 -0
- package/src/calendar/locale/ml_IN.ts +3 -0
- package/src/calendar/locale/mn_MN.ts +3 -0
- package/src/calendar/locale/ms_MY.ts +3 -0
- package/src/calendar/locale/nb_NO.ts +3 -0
- package/src/calendar/locale/nl_BE.ts +3 -0
- package/src/calendar/locale/nl_NL.ts +3 -0
- package/src/calendar/locale/pl_PL.ts +3 -0
- package/src/calendar/locale/pt_BR.ts +3 -0
- package/src/calendar/locale/pt_PT.ts +3 -0
- package/src/calendar/locale/ro_RO.ts +3 -0
- package/src/calendar/locale/ru_RU.ts +3 -0
- package/src/calendar/locale/sk_SK.ts +3 -0
- package/src/calendar/locale/sl_SI.ts +3 -0
- package/src/calendar/locale/sr_RS.ts +3 -0
- package/src/calendar/locale/sv_SE.ts +3 -0
- package/src/calendar/locale/ta_IN.ts +3 -0
- package/src/calendar/locale/th_TH.ts +3 -0
- package/src/calendar/locale/tr_TR.ts +3 -0
- package/src/calendar/locale/uk_UA.ts +3 -0
- package/src/calendar/locale/ur_PK.ts +3 -0
- package/src/calendar/locale/vi_VN.ts +3 -0
- package/src/calendar/locale/zh_CN.ts +3 -0
- package/src/calendar/locale/zh_TW.ts +3 -0
- package/src/calendar/moment.tsx +11 -0
- package/src/calendar/style/index.tsx +218 -0
- package/src/card/Card.tsx +197 -0
- package/src/card/Grid.tsx +28 -0
- package/src/card/Meta.tsx +56 -0
- package/src/card/index.en-US.md +59 -0
- package/src/card/index.ts +26 -0
- package/src/card/index.zh-CN.md +60 -0
- package/src/card/style/index.tsx +387 -0
- package/src/carousel/index.en-US.md +38 -0
- package/src/carousel/index.tsx +161 -0
- package/src/carousel/index.zh-CN.md +39 -0
- package/src/carousel/style/index.tsx +350 -0
- package/src/cascader/index.en-US.md +97 -0
- package/src/cascader/index.tsx +357 -0
- package/src/cascader/index.zh-CN.md +100 -0
- package/src/cascader/style/index.ts +165 -0
- package/src/checkbox/Checkbox.tsx +140 -0
- package/src/checkbox/Group.tsx +131 -0
- package/src/checkbox/index.en-US.md +58 -0
- package/src/checkbox/index.ts +21 -0
- package/src/checkbox/index.zh-CN.md +59 -0
- package/src/checkbox/interface.ts +90 -0
- package/src/checkbox/style/index.ts +303 -0
- package/src/col/index.ts +5 -0
- package/src/col/style/index.ts +4 -0
- package/src/collapse/Collapse.tsx +204 -0
- package/src/collapse/CollapsePanel.tsx +124 -0
- package/src/collapse/PanelContent.tsx +35 -0
- package/src/collapse/commonProps.ts +56 -0
- package/src/collapse/index.en-US.md +47 -0
- package/src/collapse/index.ts +22 -0
- package/src/collapse/index.zh-CN.md +47 -0
- package/src/collapse/style/index.tsx +271 -0
- package/src/comment/index.en-US.md +22 -0
- package/src/comment/index.tsx +118 -0
- package/src/comment/index.zh-CN.md +23 -0
- package/src/comment/style/index.ts +160 -0
- package/src/components.ts +263 -0
- package/src/config-provider/DisabledContext.ts +17 -0
- package/src/config-provider/SizeContext.ts +17 -0
- package/src/config-provider/context.ts +178 -0
- package/src/config-provider/cssVariables.ts +102 -0
- package/src/config-provider/hooks/useConfigInject.ts +74 -0
- package/src/config-provider/hooks/useTheme.ts +44 -0
- package/src/config-provider/index.en-US.md +115 -0
- package/src/config-provider/index.tsx +296 -0
- package/src/config-provider/index.zh-CN.md +116 -0
- package/src/config-provider/renderEmpty.tsx +35 -0
- package/src/config-provider/style/index.ts +31 -0
- package/src/date-picker/PickerButton.tsx +9 -0
- package/src/date-picker/PickerTag.tsx +6 -0
- package/src/date-picker/date-fns.tsx +38 -0
- package/src/date-picker/dayjs.tsx +40 -0
- package/src/date-picker/generatePicker/generateRangePicker.tsx +256 -0
- package/src/date-picker/generatePicker/generateSinglePicker.tsx +290 -0
- package/src/date-picker/generatePicker/index.tsx +85 -0
- package/src/date-picker/generatePicker/interface.ts +74 -0
- package/src/date-picker/generatePicker/props.ts +301 -0
- package/src/date-picker/index.en-US.md +232 -0
- package/src/date-picker/index.tsx +5 -0
- package/src/date-picker/index.zh-CN.md +231 -0
- package/src/date-picker/locale/ar_EG.ts +24 -0
- package/src/date-picker/locale/az_AZ.ts +16 -0
- package/src/date-picker/locale/bg_BG.ts +20 -0
- package/src/date-picker/locale/bn_BD.ts +27 -0
- package/src/date-picker/locale/by_BY.ts +23 -0
- package/src/date-picker/locale/ca_ES.ts +20 -0
- package/src/date-picker/locale/cs_CZ.ts +20 -0
- package/src/date-picker/locale/da_DK.ts +20 -0
- package/src/date-picker/locale/de_DE.ts +20 -0
- package/src/date-picker/locale/el_GR.ts +20 -0
- package/src/date-picker/locale/en_GB.ts +28 -0
- package/src/date-picker/locale/en_US.ts +28 -0
- package/src/date-picker/locale/es_ES.ts +20 -0
- package/src/date-picker/locale/et_EE.ts +20 -0
- package/src/date-picker/locale/example.json +40 -0
- package/src/date-picker/locale/fa_IR.ts +27 -0
- package/src/date-picker/locale/fi_FI.ts +20 -0
- package/src/date-picker/locale/fr_BE.ts +20 -0
- package/src/date-picker/locale/fr_CA.ts +27 -0
- package/src/date-picker/locale/fr_FR.ts +27 -0
- package/src/date-picker/locale/ga_IE.ts +27 -0
- package/src/date-picker/locale/gl_ES.ts +20 -0
- package/src/date-picker/locale/he_IL.ts +20 -0
- package/src/date-picker/locale/hi_IN.ts +27 -0
- package/src/date-picker/locale/hr_HR.ts +27 -0
- package/src/date-picker/locale/hu_HU.ts +20 -0
- package/src/date-picker/locale/id_ID.ts +20 -0
- package/src/date-picker/locale/is_IS.ts +20 -0
- package/src/date-picker/locale/it_IT.ts +20 -0
- package/src/date-picker/locale/ja_JP.ts +28 -0
- package/src/date-picker/locale/ka_GE.ts +23 -0
- package/src/date-picker/locale/kk_KZ.ts +27 -0
- package/src/date-picker/locale/km_KH.ts +27 -0
- package/src/date-picker/locale/kmr_IQ.ts +19 -0
- package/src/date-picker/locale/kn_IN.ts +20 -0
- package/src/date-picker/locale/ko_KR.ts +20 -0
- package/src/date-picker/locale/lt_LT.ts +27 -0
- package/src/date-picker/locale/lv_LV.ts +20 -0
- package/src/date-picker/locale/mk_MK.ts +20 -0
- package/src/date-picker/locale/ml_IN.ts +27 -0
- package/src/date-picker/locale/mn_MN.ts +20 -0
- package/src/date-picker/locale/ms_MY.ts +20 -0
- package/src/date-picker/locale/nb_NO.ts +27 -0
- package/src/date-picker/locale/nl_BE.ts +27 -0
- package/src/date-picker/locale/nl_NL.ts +27 -0
- package/src/date-picker/locale/pl_PL.ts +20 -0
- package/src/date-picker/locale/pt_BR.ts +20 -0
- package/src/date-picker/locale/pt_PT.ts +47 -0
- package/src/date-picker/locale/ro_RO.ts +20 -0
- package/src/date-picker/locale/ru_RU.ts +28 -0
- package/src/date-picker/locale/sk_SK.ts +20 -0
- package/src/date-picker/locale/sl_SI.ts +45 -0
- package/src/date-picker/locale/sr_RS.ts +27 -0
- package/src/date-picker/locale/sv_SE.ts +27 -0
- package/src/date-picker/locale/ta_IN.ts +21 -0
- package/src/date-picker/locale/th_TH.ts +27 -0
- package/src/date-picker/locale/tr_TR.ts +28 -0
- package/src/date-picker/locale/uk_UA.ts +20 -0
- package/src/date-picker/locale/ur_PK.ts +27 -0
- package/src/date-picker/locale/vi_VN.ts +20 -0
- package/src/date-picker/locale/zh_CN.ts +31 -0
- package/src/date-picker/locale/zh_TW.ts +30 -0
- package/src/date-picker/moment.tsx +41 -0
- package/src/date-picker/style/index.ts +1451 -0
- package/src/date-picker/util.ts +102 -0
- package/src/descriptions/Cell.tsx +75 -0
- package/src/descriptions/Row.tsx +139 -0
- package/src/descriptions/index.en-US.md +40 -0
- package/src/descriptions/index.tsx +257 -0
- package/src/descriptions/index.zh-CN.md +41 -0
- package/src/descriptions/style/index.ts +208 -0
- package/src/divider/index.en-US.md +24 -0
- package/src/divider/index.tsx +98 -0
- package/src/divider/index.zh-CN.md +25 -0
- package/src/divider/style/index.ts +167 -0
- package/src/drawer/index.en-US.md +60 -0
- package/src/drawer/index.tsx +441 -0
- package/src/drawer/index.zh-CN.md +59 -0
- package/src/drawer/style/index.ts +230 -0
- package/src/drawer/style/motion.ts +134 -0
- package/src/dropdown/dropdown-button.tsx +120 -0
- package/src/dropdown/dropdown.tsx +219 -0
- package/src/dropdown/index.en-US.md +64 -0
- package/src/dropdown/index.ts +24 -0
- package/src/dropdown/index.zh-CN.md +68 -0
- package/src/dropdown/props.ts +95 -0
- package/src/dropdown/style/button.ts +26 -0
- package/src/dropdown/style/index.ts +458 -0
- package/src/dropdown/style/status.ts +25 -0
- package/src/empty/empty.tsx +77 -0
- package/src/empty/index.en-US.md +38 -0
- package/src/empty/index.tsx +91 -0
- package/src/empty/index.zh-CN.md +39 -0
- package/src/empty/simple.tsx +42 -0
- package/src/empty/style/index.ts +80 -0
- package/src/flex/index.en-US.md +32 -0
- package/src/flex/index.tsx +59 -0
- package/src/flex/index.zh-CN.md +33 -0
- package/src/flex/interface.ts +17 -0
- package/src/flex/style/index.ts +110 -0
- package/src/flex/utils.ts +67 -0
- package/src/float-button/BackTop.tsx +146 -0
- package/src/float-button/FloatButton.tsx +105 -0
- package/src/float-button/FloatButtonContent.tsx +38 -0
- package/src/float-button/FloatButtonGroup.tsx +142 -0
- package/src/float-button/context.ts +19 -0
- package/src/float-button/index.en-US.md +60 -0
- package/src/float-button/index.ts +41 -0
- package/src/float-button/index.zh-CN.md +63 -0
- package/src/float-button/interface.ts +71 -0
- package/src/float-button/style/index.ts +396 -0
- package/src/float-button/util.ts +10 -0
- package/src/form/ErrorList.tsx +66 -0
- package/src/form/Form.tsx +416 -0
- package/src/form/FormItem.tsx +545 -0
- package/src/form/FormItemContext.ts +128 -0
- package/src/form/FormItemInput.tsx +114 -0
- package/src/form/FormItemLabel.tsx +118 -0
- package/src/form/context.ts +78 -0
- package/src/form/index.en-US.md +255 -0
- package/src/form/index.tsx +31 -0
- package/src/form/index.zh-CN.md +253 -0
- package/src/form/interface.ts +227 -0
- package/src/form/style/explain.ts +56 -0
- package/src/form/style/index.ts +492 -0
- package/src/form/useForm.ts +394 -0
- package/src/form/utils/asyncUtil.ts +34 -0
- package/src/form/utils/messages.ts +49 -0
- package/src/form/utils/typeUtil.ts +7 -0
- package/src/form/utils/useDebounce.ts +18 -0
- package/src/form/utils/validateUtil.ts +244 -0
- package/src/form/utils/valueUtil.ts +85 -0
- package/src/grid/Col.tsx +160 -0
- package/src/grid/Row.tsx +199 -0
- package/src/grid/context.ts +25 -0
- package/src/grid/index.en-US.md +67 -0
- package/src/grid/index.ts +11 -0
- package/src/grid/index.zh-CN.md +64 -0
- package/src/grid/style/index.ts +179 -0
- package/src/icon/index.en-US.md +247 -0
- package/src/icon/index.tsx +11 -0
- package/src/icon/index.zh-CN.md +248 -0
- package/src/image/PreviewGroup.tsx +77 -0
- package/src/image/index.en-US.md +48 -0
- package/src/image/index.tsx +87 -0
- package/src/image/index.zh-CN.md +49 -0
- package/src/image/style/index.ts +322 -0
- package/src/input/ClearableLabeledInput.tsx +126 -0
- package/src/input/Group.tsx +50 -0
- package/src/input/Input.tsx +206 -0
- package/src/input/Password.tsx +112 -0
- package/src/input/ResizableTextArea.tsx +189 -0
- package/src/input/Search.tsx +171 -0
- package/src/input/TextArea.tsx +317 -0
- package/src/input/calculateNodeHeight.tsx +175 -0
- package/src/input/index.en-US.md +101 -0
- package/src/input/index.ts +38 -0
- package/src/input/index.zh-CN.md +102 -0
- package/src/input/inputProps.ts +41 -0
- package/src/input/style/index.ts +971 -0
- package/src/input/util.ts +21 -0
- package/src/input-number/index.en-US.md +65 -0
- package/src/input-number/index.tsx +250 -0
- package/src/input-number/index.zh-CN.md +68 -0
- package/src/input-number/src/InputNumber.tsx +593 -0
- package/src/input-number/src/StepHandler.tsx +110 -0
- package/src/input-number/src/hooks/useCursor.ts +79 -0
- package/src/input-number/src/hooks/useFrame.ts +26 -0
- package/src/input-number/src/utils/MiniDecimal.ts +307 -0
- package/src/input-number/src/utils/numberUtil.ts +115 -0
- package/src/input-number/src/utils/supportUtil.ts +3 -0
- package/src/input-number/style/index.tsx +416 -0
- package/src/layout/Sider.tsx +235 -0
- package/src/layout/index.en-US.md +122 -0
- package/src/layout/index.ts +28 -0
- package/src/layout/index.zh-CN.md +123 -0
- package/src/layout/injectionKey.ts +12 -0
- package/src/layout/layout.tsx +113 -0
- package/src/layout/style/index.ts +226 -0
- package/src/layout/style/light.ts +27 -0
- package/src/list/Item.tsx +112 -0
- package/src/list/ItemMeta.tsx +52 -0
- package/src/list/contextKey.ts +8 -0
- package/src/list/index.en-US.md +73 -0
- package/src/list/index.tsx +344 -0
- package/src/list/index.zh-CN.md +74 -0
- package/src/list/style/index.tsx +354 -0
- package/src/locale/LocaleReceiver.tsx +87 -0
- package/src/locale/ar_EG.ts +120 -0
- package/src/locale/az_AZ.ts +48 -0
- package/src/locale/bg_BG.ts +46 -0
- package/src/locale/bn_BD.ts +134 -0
- package/src/locale/by_BY.ts +128 -0
- package/src/locale/ca_ES.ts +129 -0
- package/src/locale/cs_CZ.ts +57 -0
- package/src/locale/da_DK.ts +56 -0
- package/src/locale/de_DE.ts +127 -0
- package/src/locale/el_GR.ts +46 -0
- package/src/locale/en_GB.ts +108 -0
- package/src/locale/en_US.ts +146 -0
- package/src/locale/es_ES.ts +134 -0
- package/src/locale/et_EE.ts +136 -0
- package/src/locale/fa_IR.ts +134 -0
- package/src/locale/fi_FI.ts +56 -0
- package/src/locale/fr_BE.ts +50 -0
- package/src/locale/fr_CA.ts +62 -0
- package/src/locale/fr_FR.ts +131 -0
- package/src/locale/ga_IE.ts +127 -0
- package/src/locale/gl_ES.ts +114 -0
- package/src/locale/he_IL.ts +120 -0
- package/src/locale/hi_IN.ts +134 -0
- package/src/locale/hr_HR.ts +133 -0
- package/src/locale/hu_HU.ts +47 -0
- package/src/locale/hy_AM.ts +115 -0
- package/src/locale/id_ID.ts +48 -0
- package/src/locale/index.tsx +111 -0
- package/src/locale/is_IS.ts +46 -0
- package/src/locale/it_IT.ts +62 -0
- package/src/locale/ja_JP.ts +106 -0
- package/src/locale/ka_GE.ts +134 -0
- package/src/locale/kk_KZ.ts +128 -0
- package/src/locale/km_KH.ts +108 -0
- package/src/locale/kmr_IQ.ts +46 -0
- package/src/locale/kn_IN.ts +54 -0
- package/src/locale/ko_KR.ts +100 -0
- package/src/locale/ku_IQ.ts +50 -0
- package/src/locale/lt_LT.ts +125 -0
- package/src/locale/lv_LV.ts +46 -0
- package/src/locale/mk_MK.ts +61 -0
- package/src/locale/ml_IN.ts +134 -0
- package/src/locale/mn_MN.ts +46 -0
- package/src/locale/ms_MY.ts +66 -0
- package/src/locale/nb_NO.ts +128 -0
- package/src/locale/ne_NP.ts +47 -0
- package/src/locale/nl_BE.ts +134 -0
- package/src/locale/nl_NL.ts +134 -0
- package/src/locale/pl_PL.ts +136 -0
- package/src/locale/pt_BR.ts +139 -0
- package/src/locale/pt_PT.ts +47 -0
- package/src/locale/ro_RO.ts +134 -0
- package/src/locale/ru_RU.ts +143 -0
- package/src/locale/sk_SK.ts +135 -0
- package/src/locale/sl_SI.ts +46 -0
- package/src/locale/sr_RS.ts +134 -0
- package/src/locale/sv_SE.ts +134 -0
- package/src/locale/ta_IN.ts +66 -0
- package/src/locale/th_TH.ts +130 -0
- package/src/locale/tr_TR.ts +132 -0
- package/src/locale/uk_UA.ts +46 -0
- package/src/locale/ur_PK.ts +134 -0
- package/src/locale/vi_VN.ts +46 -0
- package/src/locale/zh_CN.ts +145 -0
- package/src/locale/zh_HK.ts +141 -0
- package/src/locale/zh_TW.ts +142 -0
- package/src/locale-provider/LocaleReceiver.tsx +5 -0
- package/src/locale-provider/index.ts +5 -0
- package/src/mentions/index.en-US.md +70 -0
- package/src/mentions/index.tsx +301 -0
- package/src/mentions/index.zh-CN.md +71 -0
- package/src/mentions/style/index.ts +232 -0
- package/src/menu/index.en-US.md +166 -0
- package/src/menu/index.tsx +56 -0
- package/src/menu/index.zh-CN.md +166 -0
- package/src/menu/src/Divider.tsx +29 -0
- package/src/menu/src/InlineSubMenuList.tsx +56 -0
- package/src/menu/src/ItemGroup.tsx +48 -0
- package/src/menu/src/Menu.tsx +529 -0
- package/src/menu/src/MenuItem.tsx +272 -0
- package/src/menu/src/OverrideContext.ts +30 -0
- package/src/menu/src/PopupTrigger.tsx +117 -0
- package/src/menu/src/SubMenu.tsx +376 -0
- package/src/menu/src/SubMenuList.tsx +25 -0
- package/src/menu/src/hooks/useDirectionStyle.ts +16 -0
- package/src/menu/src/hooks/useItems.tsx +137 -0
- package/src/menu/src/hooks/useKeyPath.ts +46 -0
- package/src/menu/src/hooks/useMenuContext.ts +144 -0
- package/src/menu/src/interface.ts +116 -0
- package/src/menu/src/placements.ts +52 -0
- package/src/menu/style/horizontal.ts +57 -0
- package/src/menu/style/index.ts +585 -0
- package/src/menu/style/rtl.ts +28 -0
- package/src/menu/style/theme.ts +264 -0
- package/src/menu/style/vertical.ts +231 -0
- package/src/message/PurePanel.tsx +75 -0
- package/src/message/index.en-US.md +119 -0
- package/src/message/index.tsx +263 -0
- package/src/message/index.zh-CN.md +122 -0
- package/src/message/interface.ts +49 -0
- package/src/message/style/index.ts +180 -0
- package/src/message/useMessage.tsx +231 -0
- package/src/modal/ConfirmDialog.tsx +232 -0
- package/src/modal/Modal.tsx +262 -0
- package/src/modal/confirm.tsx +146 -0
- package/src/modal/destroyFns.ts +2 -0
- package/src/modal/index.en-US.md +161 -0
- package/src/modal/index.tsx +84 -0
- package/src/modal/index.zh-CN.md +165 -0
- package/src/modal/locale.ts +28 -0
- package/src/modal/style/index.ts +466 -0
- package/src/modal/useModal/HookModal.tsx +75 -0
- package/src/modal/useModal/index.tsx +151 -0
- package/src/notification/PurePanel.tsx +122 -0
- package/src/notification/index.en-US.md +108 -0
- package/src/notification/index.tsx +256 -0
- package/src/notification/index.zh-CN.md +109 -0
- package/src/notification/interface.ts +62 -0
- package/src/notification/style/index.ts +287 -0
- package/src/notification/style/placement.ts +81 -0
- package/src/notification/useNotification.tsx +150 -0
- package/src/notification/util.ts +74 -0
- package/src/page-header/index.en-US.md +34 -0
- package/src/page-header/index.tsx +196 -0
- package/src/page-header/index.zh-CN.md +34 -0
- package/src/page-header/style/index.ts +155 -0
- package/src/pagination/Pagination.tsx +169 -0
- package/src/pagination/Select.tsx +38 -0
- package/src/pagination/index.en-US.md +48 -0
- package/src/pagination/index.ts +7 -0
- package/src/pagination/index.zh-CN.md +42 -0
- package/src/pagination/style/index.tsx +717 -0
- package/src/popconfirm/index.en-US.md +47 -0
- package/src/popconfirm/index.tsx +243 -0
- package/src/popconfirm/index.zh-CN.md +46 -0
- package/src/popconfirm/style/index.ts +89 -0
- package/src/popover/index.en-US.md +28 -0
- package/src/popover/index.tsx +81 -0
- package/src/popover/index.zh-CN.md +29 -0
- package/src/popover/style/index.ts +183 -0
- package/src/progress/Circle.tsx +110 -0
- package/src/progress/Line.tsx +163 -0
- package/src/progress/Steps.tsx +67 -0
- package/src/progress/index.en-US.md +56 -0
- package/src/progress/index.ts +6 -0
- package/src/progress/index.zh-CN.md +57 -0
- package/src/progress/progress.tsx +163 -0
- package/src/progress/props.ts +52 -0
- package/src/progress/style/index.ts +274 -0
- package/src/progress/utils.ts +97 -0
- package/src/qrcode/QRCode.tsx +354 -0
- package/src/qrcode/index.en-US.md +43 -0
- package/src/qrcode/index.tsx +117 -0
- package/src/qrcode/index.zh-CN.md +44 -0
- package/src/qrcode/interface.ts +51 -0
- package/src/qrcode/qrcodegen.ts +969 -0
- package/src/qrcode/style/index.ts +65 -0
- package/src/radio/Group.tsx +148 -0
- package/src/radio/Radio.tsx +127 -0
- package/src/radio/RadioButton.tsx +23 -0
- package/src/radio/context.ts +24 -0
- package/src/radio/index.en-US.md +54 -0
- package/src/radio/index.ts +27 -0
- package/src/radio/index.zh-CN.md +55 -0
- package/src/radio/interface.ts +33 -0
- package/src/radio/style/index.tsx +545 -0
- package/src/rate/Star.tsx +99 -0
- package/src/rate/index.en-US.md +44 -0
- package/src/rate/index.tsx +254 -0
- package/src/rate/index.zh-CN.md +45 -0
- package/src/rate/style/index.ts +135 -0
- package/src/rate/util.ts +40 -0
- package/src/result/index.en-US.md +23 -0
- package/src/result/index.tsx +122 -0
- package/src/result/index.zh-CN.md +24 -0
- package/src/result/noFound.tsx +289 -0
- package/src/result/serverError.tsx +331 -0
- package/src/result/style/index.tsx +157 -0
- package/src/result/unauthorized.tsx +280 -0
- package/src/row/index.ts +6 -0
- package/src/row/style/index.ts +4 -0
- package/src/segmented/index.en-US.md +50 -0
- package/src/segmented/index.ts +6 -0
- package/src/segmented/index.zh-CN.md +53 -0
- package/src/segmented/src/MotionThumb.tsx +162 -0
- package/src/segmented/src/index.ts +5 -0
- package/src/segmented/src/segmented.tsx +191 -0
- package/src/segmented/style/index.ts +216 -0
- package/src/select/index.en-US.md +128 -0
- package/src/select/index.tsx +318 -0
- package/src/select/index.zh-CN.md +128 -0
- package/src/select/style/dropdown.ts +166 -0
- package/src/select/style/index.ts +342 -0
- package/src/select/style/multiple.ts +239 -0
- package/src/select/style/single.ts +192 -0
- package/src/select/utils/iconUtil.tsx +63 -0
- package/src/skeleton/Avatar.tsx +49 -0
- package/src/skeleton/Button.tsx +50 -0
- package/src/skeleton/Element.tsx +43 -0
- package/src/skeleton/Image.tsx +43 -0
- package/src/skeleton/Input.tsx +48 -0
- package/src/skeleton/Paragraph.tsx +44 -0
- package/src/skeleton/Skeleton.tsx +174 -0
- package/src/skeleton/Title.tsx +24 -0
- package/src/skeleton/index.en-US.md +64 -0
- package/src/skeleton/index.tsx +42 -0
- package/src/skeleton/index.zh-CN.md +65 -0
- package/src/skeleton/style/index.ts +388 -0
- package/src/slider/SliderTooltip.tsx +50 -0
- package/src/slider/index.en-US.md +51 -0
- package/src/slider/index.tsx +256 -0
- package/src/slider/index.zh-CN.md +50 -0
- package/src/slider/style/index.tsx +346 -0
- package/src/space/Compact.tsx +136 -0
- package/src/space/index.en-US.md +46 -0
- package/src/space/index.tsx +162 -0
- package/src/space/index.zh-CN.md +52 -0
- package/src/space/style/compact.tsx +30 -0
- package/src/space/style/index.tsx +54 -0
- package/src/spin/Spin.tsx +133 -0
- package/src/spin/index.en-US.md +36 -0
- package/src/spin/index.ts +19 -0
- package/src/spin/index.zh-CN.md +37 -0
- package/src/spin/style/index.ts +241 -0
- package/src/statistic/Countdown.tsx +103 -0
- package/src/statistic/Number.tsx +54 -0
- package/src/statistic/Statistic.tsx +89 -0
- package/src/statistic/index.en-US.md +47 -0
- package/src/statistic/index.ts +21 -0
- package/src/statistic/index.zh-CN.md +48 -0
- package/src/statistic/style/index.tsx +69 -0
- package/src/statistic/utils.ts +69 -0
- package/src/steps/index.en-US.md +58 -0
- package/src/steps/index.tsx +170 -0
- package/src/steps/index.zh-CN.md +63 -0
- package/src/steps/style/custom-icon.ts +36 -0
- package/src/steps/style/index.tsx +408 -0
- package/src/steps/style/inline.ts +124 -0
- package/src/steps/style/label-placement.ts +56 -0
- package/src/steps/style/nav.ts +146 -0
- package/src/steps/style/progress-dot.ts +133 -0
- package/src/steps/style/progress.ts +60 -0
- package/src/steps/style/rtl.ts +47 -0
- package/src/steps/style/small.ts +68 -0
- package/src/steps/style/vertical.ts +72 -0
- package/src/style/compact-item-vertical.ts +57 -0
- package/src/style/compact-item.ts +102 -0
- package/src/style/index.ts +138 -0
- package/src/style/motion/collapse.ts +24 -0
- package/src/style/motion/fade.ts +49 -0
- package/src/style/motion/index.ts +77 -0
- package/src/style/motion/motion.ts +51 -0
- package/src/style/motion/move.ts +163 -0
- package/src/style/motion/slide.ts +166 -0
- package/src/style/motion/zoom.ts +230 -0
- package/src/style/operationUnit.ts +20 -0
- package/src/style/placementArrow.ts +257 -0
- package/src/style/presetColor.tsx +34 -0
- package/src/style/reset.css +253 -0
- package/src/style/roundedArrow.ts +71 -0
- package/src/switch/index.en-US.md +42 -0
- package/src/switch/index.tsx +209 -0
- package/src/switch/index.zh-CN.md +43 -0
- package/src/switch/style/index.ts +354 -0
- package/src/table/Column.tsx +18 -0
- package/src/table/ColumnGroup.tsx +16 -0
- package/src/table/ExpandIcon.tsx +41 -0
- package/src/table/Table.tsx +689 -0
- package/src/table/context.ts +45 -0
- package/src/table/hooks/useColumns.tsx +55 -0
- package/src/table/hooks/useFilter/FilterDropdown.tsx +576 -0
- package/src/table/hooks/useFilter/FilterSearch.tsx +41 -0
- package/src/table/hooks/useFilter/FilterWrapper.tsx +16 -0
- package/src/table/hooks/useFilter/index.tsx +300 -0
- package/src/table/hooks/useLazyKVMap.ts +51 -0
- package/src/table/hooks/usePagination.ts +92 -0
- package/src/table/hooks/useSelection.tsx +690 -0
- package/src/table/hooks/useSorter.tsx +450 -0
- package/src/table/hooks/useTitleColumns.tsx +30 -0
- package/src/table/index.en-US.md +306 -0
- package/src/table/index.tsx +56 -0
- package/src/table/index.zh-CN.md +313 -0
- package/src/table/interface.tsx +235 -0
- package/src/table/style/bordered.ts +159 -0
- package/src/table/style/ellipsis.ts +37 -0
- package/src/table/style/empty.ts +22 -0
- package/src/table/style/expand.ts +152 -0
- package/src/table/style/filter.ts +172 -0
- package/src/table/style/fixed.ts +132 -0
- package/src/table/style/index.ts +378 -0
- package/src/table/style/pagination.ts +39 -0
- package/src/table/style/radius.ts +57 -0
- package/src/table/style/resize.ts +52 -0
- package/src/table/style/rtl.ts +39 -0
- package/src/table/style/selection.ts +76 -0
- package/src/table/style/size.ts +68 -0
- package/src/table/style/sorter.ts +101 -0
- package/src/table/style/sticky.ts +59 -0
- package/src/table/style/summary.ts +29 -0
- package/src/table/util.ts +62 -0
- package/src/tabs/index.en-US.md +69 -0
- package/src/tabs/index.ts +21 -0
- package/src/tabs/index.zh-CN.md +71 -0
- package/src/tabs/src/TabContext.ts +35 -0
- package/src/tabs/src/TabNavList/AddButton.tsx +50 -0
- package/src/tabs/src/TabNavList/OperationNode.tsx +253 -0
- package/src/tabs/src/TabNavList/TabNode.tsx +140 -0
- package/src/tabs/src/TabNavList/index.tsx +581 -0
- package/src/tabs/src/TabPanelList/TabPane.tsx +81 -0
- package/src/tabs/src/TabPanelList/index.tsx +68 -0
- package/src/tabs/src/Tabs.tsx +387 -0
- package/src/tabs/src/hooks/useOffsets.ts +41 -0
- package/src/tabs/src/hooks/useRaf.ts +53 -0
- package/src/tabs/src/hooks/useSyncState.ts +21 -0
- package/src/tabs/src/hooks/useTouchMove.ts +141 -0
- package/src/tabs/src/index.ts +11 -0
- package/src/tabs/src/interface.ts +48 -0
- package/src/tabs/style/index.ts +906 -0
- package/src/tabs/style/motion.ts +46 -0
- package/src/tag/CheckableTag.tsx +56 -0
- package/src/tag/index.en-US.md +44 -0
- package/src/tag/index.tsx +175 -0
- package/src/tag/index.zh-CN.md +45 -0
- package/src/tag/style/index.ts +184 -0
- package/src/theme/convertLegacyToken.ts +1107 -0
- package/src/theme/index.ts +30 -0
- package/src/theme/interface/alias.ts +153 -0
- package/src/theme/interface/components.ts +121 -0
- package/src/theme/interface/index.ts +25 -0
- package/src/theme/interface/maps/colors.ts +438 -0
- package/src/theme/interface/maps/font.ts +49 -0
- package/src/theme/interface/maps/index.ts +34 -0
- package/src/theme/interface/maps/size.ts +68 -0
- package/src/theme/interface/maps/style.ts +38 -0
- package/src/theme/interface/presetColors.ts +25 -0
- package/src/theme/interface/seeds.ts +221 -0
- package/src/theme/internal.ts +145 -0
- package/src/theme/themes/ColorMap.ts +20 -0
- package/src/theme/themes/compact/genCompactSizeMapToken.ts +19 -0
- package/src/theme/themes/compact/index.ts +27 -0
- package/src/theme/themes/dark/colorAlgorithm.ts +9 -0
- package/src/theme/themes/dark/colors.ts +54 -0
- package/src/theme/themes/dark/index.ts +45 -0
- package/src/theme/themes/default/colorAlgorithm.ts +9 -0
- package/src/theme/themes/default/colors.ts +54 -0
- package/src/theme/themes/default/index.ts +49 -0
- package/src/theme/themes/seed.ts +79 -0
- package/src/theme/themes/shared/genColorMapToken.ts +93 -0
- package/src/theme/themes/shared/genCommonMapToken.ts +19 -0
- package/src/theme/themes/shared/genControlHeight.ts +13 -0
- package/src/theme/themes/shared/genFontMapToken.ts +33 -0
- package/src/theme/themes/shared/genFontSizes.ts +24 -0
- package/src/theme/themes/shared/genRadius.ts +59 -0
- package/src/theme/themes/shared/genSizeMapToken.ts +17 -0
- package/src/theme/util/alias.ts +202 -0
- package/src/theme/util/genComponentStyleHook.ts +110 -0
- package/src/theme/util/getAlphaColor.ts +29 -0
- package/src/theme/util/statistic.ts +71 -0
- package/src/time-picker/date-fns.tsx +27 -0
- package/src/time-picker/dayjs.tsx +30 -0
- package/src/time-picker/index.en-US.md +95 -0
- package/src/time-picker/index.tsx +9 -0
- package/src/time-picker/index.zh-CN.md +97 -0
- package/src/time-picker/locale/ar_EG.ts +7 -0
- package/src/time-picker/locale/az_AZ.ts +7 -0
- package/src/time-picker/locale/bg_BG.ts +7 -0
- package/src/time-picker/locale/bn_BD.ts +8 -0
- package/src/time-picker/locale/by_BY.ts +8 -0
- package/src/time-picker/locale/ca_ES.ts +7 -0
- package/src/time-picker/locale/cs_CZ.ts +7 -0
- package/src/time-picker/locale/da_DK.ts +8 -0
- package/src/time-picker/locale/de_DE.ts +7 -0
- package/src/time-picker/locale/el_GR.ts +7 -0
- package/src/time-picker/locale/en_GB.ts +7 -0
- package/src/time-picker/locale/en_US.ts +8 -0
- package/src/time-picker/locale/es_ES.ts +7 -0
- package/src/time-picker/locale/et_EE.ts +7 -0
- package/src/time-picker/locale/fa_IR.ts +8 -0
- package/src/time-picker/locale/fi_FI.ts +7 -0
- package/src/time-picker/locale/fr_BE.ts +7 -0
- package/src/time-picker/locale/fr_CA.ts +8 -0
- package/src/time-picker/locale/fr_FR.ts +8 -0
- package/src/time-picker/locale/ga_IE.ts +8 -0
- package/src/time-picker/locale/gl_ES.ts +7 -0
- package/src/time-picker/locale/he_IL.ts +7 -0
- package/src/time-picker/locale/hi_IN.ts +8 -0
- package/src/time-picker/locale/hr_HR.ts +8 -0
- package/src/time-picker/locale/hu_HU.ts +7 -0
- package/src/time-picker/locale/id_ID.ts +7 -0
- package/src/time-picker/locale/is_IS.ts +7 -0
- package/src/time-picker/locale/it_IT.ts +7 -0
- package/src/time-picker/locale/ja_JP.ts +8 -0
- package/src/time-picker/locale/ka_GE.ts +8 -0
- package/src/time-picker/locale/kk_KZ.ts +8 -0
- package/src/time-picker/locale/km_KH.ts +8 -0
- package/src/time-picker/locale/kmr_IQ.ts +7 -0
- package/src/time-picker/locale/kn_IN.ts +7 -0
- package/src/time-picker/locale/ko_KR.ts +8 -0
- package/src/time-picker/locale/lt_LT.ts +8 -0
- package/src/time-picker/locale/lv_LV.ts +7 -0
- package/src/time-picker/locale/mk_MK.ts +7 -0
- package/src/time-picker/locale/ml_IN.ts +8 -0
- package/src/time-picker/locale/mn_MN.ts +7 -0
- package/src/time-picker/locale/ms_MY.ts +7 -0
- package/src/time-picker/locale/nb_NO.ts +8 -0
- package/src/time-picker/locale/nl_BE.ts +8 -0
- package/src/time-picker/locale/nl_NL.ts +8 -0
- package/src/time-picker/locale/pl_PL.ts +7 -0
- package/src/time-picker/locale/pt_BR.ts +7 -0
- package/src/time-picker/locale/pt_PT.ts +7 -0
- package/src/time-picker/locale/ro_RO.ts +7 -0
- package/src/time-picker/locale/ru_RU.ts +9 -0
- package/src/time-picker/locale/sk_SK.ts +7 -0
- package/src/time-picker/locale/sl_SI.ts +7 -0
- package/src/time-picker/locale/sr_RS.ts +8 -0
- package/src/time-picker/locale/sv_SE.ts +7 -0
- package/src/time-picker/locale/ta_IN.ts +7 -0
- package/src/time-picker/locale/th_TH.ts +7 -0
- package/src/time-picker/locale/tr_TR.ts +8 -0
- package/src/time-picker/locale/uk_UA.ts +7 -0
- package/src/time-picker/locale/ur_PK.ts +8 -0
- package/src/time-picker/locale/vi_VN.ts +7 -0
- package/src/time-picker/locale/zh_CN.ts +8 -0
- package/src/time-picker/locale/zh_TW.ts +7 -0
- package/src/time-picker/moment.tsx +29 -0
- package/src/time-picker/time-picker.tsx +247 -0
- package/src/timeline/Timeline.tsx +116 -0
- package/src/timeline/TimelineItem.tsx +64 -0
- package/src/timeline/index.en-US.md +47 -0
- package/src/timeline/index.tsx +21 -0
- package/src/timeline/index.zh-CN.md +48 -0
- package/src/timeline/style/index.tsx +237 -0
- package/src/tooltip/Tooltip.tsx +322 -0
- package/src/tooltip/abstractTooltipProps.ts +61 -0
- package/src/tooltip/index.en-US.md +52 -0
- package/src/tooltip/index.ts +14 -0
- package/src/tooltip/index.zh-CN.md +53 -0
- package/src/tooltip/style/index.ts +158 -0
- package/src/tooltip/util.ts +23 -0
- package/src/tour/index.en-US.md +60 -0
- package/src/tour/index.tsx +92 -0
- package/src/tour/index.zh-CN.md +61 -0
- package/src/tour/interface.ts +43 -0
- package/src/tour/panelRender.tsx +152 -0
- package/src/tour/style/index.ts +251 -0
- package/src/tour/useMergedType.ts +39 -0
- package/src/transfer/ListBody.tsx +170 -0
- package/src/transfer/ListItem.tsx +97 -0
- package/src/transfer/index.en-US.md +104 -0
- package/src/transfer/index.tsx +455 -0
- package/src/transfer/index.zh-CN.md +105 -0
- package/src/transfer/interface.ts +8 -0
- package/src/transfer/list.tsx +424 -0
- package/src/transfer/operation.tsx +68 -0
- package/src/transfer/search.tsx +52 -0
- package/src/transfer/style/index.tsx +376 -0
- package/src/tree/DirectoryTree.tsx +309 -0
- package/src/tree/Tree.tsx +277 -0
- package/src/tree/breakchange.md +1 -0
- package/src/tree/index.en-US.md +93 -0
- package/src/tree/index.tsx +38 -0
- package/src/tree/index.zh-CN.md +94 -0
- package/src/tree/style/index.ts +482 -0
- package/src/tree/utils/dictUtil.ts +100 -0
- package/src/tree/utils/dropIndicator.tsx +33 -0
- package/src/tree/utils/iconUtil.tsx +67 -0
- package/src/tree-select/index.en-US.md +100 -0
- package/src/tree-select/index.tsx +364 -0
- package/src/tree-select/index.zh-CN.md +95 -0
- package/src/tree-select/style/index.tsx +75 -0
- package/src/typography/Base.tsx +626 -0
- package/src/typography/Editable.tsx +161 -0
- package/src/typography/Link.tsx +37 -0
- package/src/typography/Paragraph.tsx +24 -0
- package/src/typography/Text.tsx +45 -0
- package/src/typography/Title.tsx +40 -0
- package/src/typography/Typography.tsx +58 -0
- package/src/typography/index.en-US.md +146 -0
- package/src/typography/index.tsx +41 -0
- package/src/typography/index.zh-CN.md +147 -0
- package/src/typography/style/index.tsx +128 -0
- package/src/typography/style/mixins.tsx +262 -0
- package/src/typography/util.tsx +227 -0
- package/src/upload/Dragger.tsx +24 -0
- package/src/upload/Upload.tsx +458 -0
- package/src/upload/UploadList/ListItem.tsx +306 -0
- package/src/upload/UploadList/index.tsx +264 -0
- package/src/upload/index.en-US.md +139 -0
- package/src/upload/index.tsx +19 -0
- package/src/upload/index.zh-CN.md +140 -0
- package/src/upload/interface.tsx +195 -0
- package/src/upload/style/dragger.ts +76 -0
- package/src/upload/style/index.ts +66 -0
- package/src/upload/style/list.ts +129 -0
- package/src/upload/style/motion.ts +52 -0
- package/src/upload/style/picture.ts +228 -0
- package/src/upload/style/rtl.ts +15 -0
- package/src/upload/utils.tsx +124 -0
- package/src/vc-align/Align.tsx +209 -0
- package/src/vc-align/hooks/useBuffer.tsx +39 -0
- package/src/vc-align/index.ts +4 -0
- package/src/vc-align/interface.ts +60 -0
- package/src/vc-align/util.ts +61 -0
- package/src/vc-cascader/Cascader.tsx +585 -0
- package/src/vc-cascader/OptionList/Checkbox.tsx +44 -0
- package/src/vc-cascader/OptionList/Column.tsx +182 -0
- package/src/vc-cascader/OptionList/index.tsx +246 -0
- package/src/vc-cascader/OptionList/useActive.ts +32 -0
- package/src/vc-cascader/OptionList/useKeyboard.ts +194 -0
- package/src/vc-cascader/context.ts +37 -0
- package/src/vc-cascader/hooks/useDisplayValues.ts +64 -0
- package/src/vc-cascader/hooks/useEntities.ts +37 -0
- package/src/vc-cascader/hooks/useMissingValues.ts +27 -0
- package/src/vc-cascader/hooks/useSearchConfig.ts +41 -0
- package/src/vc-cascader/hooks/useSearchOptions.ts +78 -0
- package/src/vc-cascader/index.tsx +16 -0
- package/src/vc-cascader/utils/commonUtil.ts +51 -0
- package/src/vc-cascader/utils/treeUtil.ts +60 -0
- package/src/vc-checkbox/Checkbox.tsx +151 -0
- package/src/vc-dialog/Content.tsx +158 -0
- package/src/vc-dialog/Dialog.tsx +203 -0
- package/src/vc-dialog/DialogWrap.tsx +78 -0
- package/src/vc-dialog/IDialogPropTypes.ts +50 -0
- package/src/vc-dialog/Mask.tsx +25 -0
- package/src/vc-dialog/index.ts +7 -0
- package/src/vc-dialog/util.ts +46 -0
- package/src/vc-drawer/index.ts +4 -0
- package/src/vc-drawer/src/DrawerChild.tsx +258 -0
- package/src/vc-drawer/src/DrawerWrapper.tsx +101 -0
- package/src/vc-drawer/src/IDrawerPropTypes.ts +60 -0
- package/src/vc-drawer/src/utils.ts +112 -0
- package/src/vc-dropdown/Dropdown.tsx +145 -0
- package/src/vc-dropdown/index.ts +4 -0
- package/src/vc-dropdown/placements.ts +47 -0
- package/src/vc-image/index.ts +5 -0
- package/src/vc-image/src/Image.tsx +308 -0
- package/src/vc-image/src/Preview.tsx +422 -0
- package/src/vc-image/src/PreviewGroup.tsx +212 -0
- package/src/vc-image/src/getFixScaleEleTransPosition.ts +61 -0
- package/src/vc-image/src/hooks/useFrameSetState.ts +32 -0
- package/src/vc-input/BaseInput.tsx +153 -0
- package/src/vc-input/Input.tsx +255 -0
- package/src/vc-input/inputProps.ts +123 -0
- package/src/vc-input/utils/commonUtils.ts +105 -0
- package/src/vc-input/utils/types.ts +3 -0
- package/src/vc-mentions/index.ts +6 -0
- package/src/vc-mentions/src/DropdownMenu.tsx +86 -0
- package/src/vc-mentions/src/KeywordTrigger.tsx +102 -0
- package/src/vc-mentions/src/Mentions.tsx +306 -0
- package/src/vc-mentions/src/MentionsContext.ts +16 -0
- package/src/vc-mentions/src/Option.tsx +31 -0
- package/src/vc-mentions/src/mentionsProps.ts +52 -0
- package/src/vc-mentions/src/util.ts +124 -0
- package/src/vc-notification/HookNotification.tsx +231 -0
- package/src/vc-notification/Notice.tsx +139 -0
- package/src/vc-notification/Notification.tsx +279 -0
- package/src/vc-notification/index.ts +6 -0
- package/src/vc-notification/useNotification.tsx +182 -0
- package/src/vc-overflow/Item.tsx +100 -0
- package/src/vc-overflow/Overflow.tsx +376 -0
- package/src/vc-overflow/RawItem.tsx +54 -0
- package/src/vc-overflow/context.ts +49 -0
- package/src/vc-overflow/index.ts +6 -0
- package/src/vc-pagination/KeyCode.ts +14 -0
- package/src/vc-pagination/Options.tsx +172 -0
- package/src/vc-pagination/Pager.tsx +69 -0
- package/src/vc-pagination/Pagination.tsx +683 -0
- package/src/vc-pagination/index.ts +2 -0
- package/src/vc-pagination/locale/ar_EG.ts +15 -0
- package/src/vc-pagination/locale/az_AZ.ts +15 -0
- package/src/vc-pagination/locale/bg_BG.ts +15 -0
- package/src/vc-pagination/locale/bn_BD.ts +15 -0
- package/src/vc-pagination/locale/by_BY.ts +14 -0
- package/src/vc-pagination/locale/ca_ES.ts +15 -0
- package/src/vc-pagination/locale/cs_CZ.ts +15 -0
- package/src/vc-pagination/locale/da_DK.ts +15 -0
- package/src/vc-pagination/locale/de_DE.ts +15 -0
- package/src/vc-pagination/locale/el_GR.ts +15 -0
- package/src/vc-pagination/locale/en_GB.ts +15 -0
- package/src/vc-pagination/locale/en_US.ts +15 -0
- package/src/vc-pagination/locale/es_ES.ts +15 -0
- package/src/vc-pagination/locale/et_EE.ts +15 -0
- package/src/vc-pagination/locale/fa_IR.ts +15 -0
- package/src/vc-pagination/locale/fi_FI.ts +15 -0
- package/src/vc-pagination/locale/fr_BE.ts +15 -0
- package/src/vc-pagination/locale/fr_CA.ts +15 -0
- package/src/vc-pagination/locale/fr_FR.ts +15 -0
- package/src/vc-pagination/locale/ga_IE.ts +15 -0
- package/src/vc-pagination/locale/gl_ES.ts +15 -0
- package/src/vc-pagination/locale/he_IL.ts +15 -0
- package/src/vc-pagination/locale/hi_IN.ts +15 -0
- package/src/vc-pagination/locale/hr_HR.ts +15 -0
- package/src/vc-pagination/locale/hu_HU.ts +15 -0
- package/src/vc-pagination/locale/id_ID.ts +15 -0
- package/src/vc-pagination/locale/is_IS.ts +15 -0
- package/src/vc-pagination/locale/it_IT.ts +15 -0
- package/src/vc-pagination/locale/ja_JP.ts +15 -0
- package/src/vc-pagination/locale/ka_GE.ts +14 -0
- package/src/vc-pagination/locale/kk_KZ.ts +15 -0
- package/src/vc-pagination/locale/km_KH.ts +15 -0
- package/src/vc-pagination/locale/kmr_IQ.ts +15 -0
- package/src/vc-pagination/locale/kn_IN.ts +15 -0
- package/src/vc-pagination/locale/ko_KR.ts +15 -0
- package/src/vc-pagination/locale/lt_LT.ts +15 -0
- package/src/vc-pagination/locale/lv_LV.ts +15 -0
- package/src/vc-pagination/locale/mk_MK.ts +15 -0
- package/src/vc-pagination/locale/ml_IN.ts +15 -0
- package/src/vc-pagination/locale/mm_MM.ts +15 -0
- package/src/vc-pagination/locale/mn_MN.ts +15 -0
- package/src/vc-pagination/locale/ms_MY.ts +15 -0
- package/src/vc-pagination/locale/nb_NO.ts +14 -0
- package/src/vc-pagination/locale/nl_BE.ts +15 -0
- package/src/vc-pagination/locale/nl_NL.ts +15 -0
- package/src/vc-pagination/locale/pa_IN.ts +15 -0
- package/src/vc-pagination/locale/pb_IN.ts +15 -0
- package/src/vc-pagination/locale/pl_PL.ts +15 -0
- package/src/vc-pagination/locale/pt_BR.ts +15 -0
- package/src/vc-pagination/locale/pt_PT.ts +15 -0
- package/src/vc-pagination/locale/ro_RO.ts +15 -0
- package/src/vc-pagination/locale/ru_RU.ts +15 -0
- package/src/vc-pagination/locale/sk_SK.ts +15 -0
- package/src/vc-pagination/locale/sl_SI.ts +15 -0
- package/src/vc-pagination/locale/sr_RS.ts +14 -0
- package/src/vc-pagination/locale/sv_SE.ts +15 -0
- package/src/vc-pagination/locale/ta_IN.ts +15 -0
- package/src/vc-pagination/locale/th_TH.ts +15 -0
- package/src/vc-pagination/locale/tr_TR.ts +15 -0
- package/src/vc-pagination/locale/ug_CN.ts +14 -0
- package/src/vc-pagination/locale/uk_UA.ts +15 -0
- package/src/vc-pagination/locale/ur_PK.ts +15 -0
- package/src/vc-pagination/locale/vi_VN.ts +15 -0
- package/src/vc-pagination/locale/zh_CN.ts +15 -0
- package/src/vc-pagination/locale/zh_TW.ts +15 -0
- package/src/vc-picker/PanelContext.tsx +39 -0
- package/src/vc-picker/Picker.tsx +641 -0
- package/src/vc-picker/PickerPanel.tsx +609 -0
- package/src/vc-picker/PickerTrigger.tsx +104 -0
- package/src/vc-picker/PresetPanel.tsx +44 -0
- package/src/vc-picker/RangeContext.tsx +76 -0
- package/src/vc-picker/RangePicker.tsx +1324 -0
- package/src/vc-picker/generate/dateFns.ts +140 -0
- package/src/vc-picker/generate/dayjs.ts +250 -0
- package/src/vc-picker/generate/index.ts +52 -0
- package/src/vc-picker/generate/moment.ts +159 -0
- package/src/vc-picker/hooks/useCellClassName.ts +97 -0
- package/src/vc-picker/hooks/useHoverValue.ts +47 -0
- package/src/vc-picker/hooks/useMergeProps.ts +8 -0
- package/src/vc-picker/hooks/usePickerInput.ts +177 -0
- package/src/vc-picker/hooks/usePresets.ts +30 -0
- package/src/vc-picker/hooks/useRangeDisabled.ts +115 -0
- package/src/vc-picker/hooks/useRangeViewDates.ts +129 -0
- package/src/vc-picker/hooks/useTextValueMapping.ts +37 -0
- package/src/vc-picker/hooks/useValueTexts.ts +52 -0
- package/src/vc-picker/index.tsx +12 -0
- package/src/vc-picker/interface.ts +116 -0
- package/src/vc-picker/locale/ar_EG.ts +32 -0
- package/src/vc-picker/locale/az_AZ.ts +33 -0
- package/src/vc-picker/locale/bg_BG.ts +31 -0
- package/src/vc-picker/locale/bn_BD.ts +33 -0
- package/src/vc-picker/locale/by_BY.ts +33 -0
- package/src/vc-picker/locale/ca_ES.ts +32 -0
- package/src/vc-picker/locale/cs_CZ.ts +32 -0
- package/src/vc-picker/locale/da_DK.ts +32 -0
- package/src/vc-picker/locale/de_DE.ts +32 -0
- package/src/vc-picker/locale/el_GR.ts +32 -0
- package/src/vc-picker/locale/en_GB.ts +32 -0
- package/src/vc-picker/locale/en_US.ts +33 -0
- package/src/vc-picker/locale/es_ES.ts +32 -0
- package/src/vc-picker/locale/es_MX.ts +33 -0
- package/src/vc-picker/locale/et_EE.ts +32 -0
- package/src/vc-picker/locale/fa_IR.ts +32 -0
- package/src/vc-picker/locale/fi_FI.ts +32 -0
- package/src/vc-picker/locale/fr_BE.ts +32 -0
- package/src/vc-picker/locale/fr_CA.ts +32 -0
- package/src/vc-picker/locale/fr_FR.ts +32 -0
- package/src/vc-picker/locale/ga_IE.ts +33 -0
- package/src/vc-picker/locale/gl_ES.ts +32 -0
- package/src/vc-picker/locale/he_IL.ts +33 -0
- package/src/vc-picker/locale/hi_IN.ts +33 -0
- package/src/vc-picker/locale/hr_HR.ts +33 -0
- package/src/vc-picker/locale/hu_HU.ts +32 -0
- package/src/vc-picker/locale/id_ID.ts +33 -0
- package/src/vc-picker/locale/is_IS.ts +32 -0
- package/src/vc-picker/locale/it_IT.ts +32 -0
- package/src/vc-picker/locale/ja_JP.ts +32 -0
- package/src/vc-picker/locale/ka_GE.ts +33 -0
- package/src/vc-picker/locale/kk_KZ.ts +32 -0
- package/src/vc-picker/locale/km_KH.ts +32 -0
- package/src/vc-picker/locale/kmr_IQ.ts +32 -0
- package/src/vc-picker/locale/kn_IN.ts +33 -0
- package/src/vc-picker/locale/ko_KR.ts +32 -0
- package/src/vc-picker/locale/lt_LT.ts +32 -0
- package/src/vc-picker/locale/lv_LV.ts +32 -0
- package/src/vc-picker/locale/mk_MK.ts +32 -0
- package/src/vc-picker/locale/ml_IN.ts +33 -0
- package/src/vc-picker/locale/mm_MM.ts +33 -0
- package/src/vc-picker/locale/mn_MN.ts +33 -0
- package/src/vc-picker/locale/ms_MY.ts +32 -0
- package/src/vc-picker/locale/nb_NO.ts +33 -0
- package/src/vc-picker/locale/nl_BE.ts +32 -0
- package/src/vc-picker/locale/nl_NL.ts +32 -0
- package/src/vc-picker/locale/pl_PL.ts +32 -0
- package/src/vc-picker/locale/pt_BR.ts +34 -0
- package/src/vc-picker/locale/pt_PT.ts +34 -0
- package/src/vc-picker/locale/ro_RO.ts +33 -0
- package/src/vc-picker/locale/ru_RU.ts +32 -0
- package/src/vc-picker/locale/sk_SK.ts +32 -0
- package/src/vc-picker/locale/sl_SI.ts +32 -0
- package/src/vc-picker/locale/sr_RS.ts +32 -0
- package/src/vc-picker/locale/sv_SE.ts +32 -0
- package/src/vc-picker/locale/ta_IN.ts +33 -0
- package/src/vc-picker/locale/th_TH.ts +32 -0
- package/src/vc-picker/locale/tr_TR.ts +32 -0
- package/src/vc-picker/locale/ug_CN.ts +31 -0
- package/src/vc-picker/locale/uk_UA.ts +32 -0
- package/src/vc-picker/locale/ur_PK.ts +33 -0
- package/src/vc-picker/locale/vi_VN.ts +33 -0
- package/src/vc-picker/locale/zh_CN.ts +32 -0
- package/src/vc-picker/locale/zh_TW.ts +33 -0
- package/src/vc-picker/panels/DatePanel/DateBody.tsx +119 -0
- package/src/vc-picker/panels/DatePanel/DateHeader.tsx +106 -0
- package/src/vc-picker/panels/DatePanel/index.tsx +117 -0
- package/src/vc-picker/panels/DatetimePanel/index.tsx +167 -0
- package/src/vc-picker/panels/DecadePanel/DecadeBody.tsx +68 -0
- package/src/vc-picker/panels/DecadePanel/DecadeHeader.tsx +45 -0
- package/src/vc-picker/panels/DecadePanel/index.tsx +80 -0
- package/src/vc-picker/panels/Header.tsx +101 -0
- package/src/vc-picker/panels/MonthPanel/MonthBody.tsx +89 -0
- package/src/vc-picker/panels/MonthPanel/MonthHeader.tsx +50 -0
- package/src/vc-picker/panels/MonthPanel/index.tsx +83 -0
- package/src/vc-picker/panels/PanelBody.tsx +146 -0
- package/src/vc-picker/panels/QuarterPanel/QuarterBody.tsx +71 -0
- package/src/vc-picker/panels/QuarterPanel/QuarterHeader.tsx +49 -0
- package/src/vc-picker/panels/QuarterPanel/index.tsx +76 -0
- package/src/vc-picker/panels/TimePanel/TimeBody.tsx +315 -0
- package/src/vc-picker/panels/TimePanel/TimeHeader.tsx +42 -0
- package/src/vc-picker/panels/TimePanel/TimeUnitColumn.tsx +103 -0
- package/src/vc-picker/panels/TimePanel/index.tsx +111 -0
- package/src/vc-picker/panels/WeekPanel/index.tsx +44 -0
- package/src/vc-picker/panels/YearPanel/YearBody.tsx +78 -0
- package/src/vc-picker/panels/YearPanel/YearHeader.tsx +49 -0
- package/src/vc-picker/panels/YearPanel/index.tsx +85 -0
- package/src/vc-picker/utils/dateUtil.ts +320 -0
- package/src/vc-picker/utils/getExtraFooter.tsx +13 -0
- package/src/vc-picker/utils/getRanges.tsx +66 -0
- package/src/vc-picker/utils/miscUtil.ts +55 -0
- package/src/vc-picker/utils/timeUtil.ts +60 -0
- package/src/vc-picker/utils/uiUtil.ts +277 -0
- package/src/vc-picker/utils/warnUtil.ts +17 -0
- package/src/vc-progress/index.ts +9 -0
- package/src/vc-progress/src/Circle.tsx +178 -0
- package/src/vc-progress/src/Line.tsx +114 -0
- package/src/vc-progress/src/common.ts +44 -0
- package/src/vc-progress/src/index.ts +12 -0
- package/src/vc-progress/src/types.ts +30 -0
- package/src/vc-resize-observer/index.tsx +141 -0
- package/src/vc-select/BaseSelect.tsx +928 -0
- package/src/vc-select/OptGroup.tsx +15 -0
- package/src/vc-select/Option.tsx +18 -0
- package/src/vc-select/OptionList.tsx +391 -0
- package/src/vc-select/Select.tsx +658 -0
- package/src/vc-select/SelectContext.ts +36 -0
- package/src/vc-select/SelectTrigger.tsx +193 -0
- package/src/vc-select/Selector/Input.tsx +172 -0
- package/src/vc-select/Selector/MultipleSelector.tsx +302 -0
- package/src/vc-select/Selector/SingleSelector.tsx +187 -0
- package/src/vc-select/Selector/index.tsx +283 -0
- package/src/vc-select/Selector/interface.ts +27 -0
- package/src/vc-select/TransBtn.tsx +69 -0
- package/src/vc-select/hooks/useBaseProps.ts +24 -0
- package/src/vc-select/hooks/useCache.ts +56 -0
- package/src/vc-select/hooks/useDelayReset.ts +32 -0
- package/src/vc-select/hooks/useFilterOptions.ts +87 -0
- package/src/vc-select/hooks/useId.ts +31 -0
- package/src/vc-select/hooks/useLock.ts +29 -0
- package/src/vc-select/hooks/useOptions.ts +59 -0
- package/src/vc-select/hooks/useSelectTriggerControl.ts +32 -0
- package/src/vc-select/index.ts +13 -0
- package/src/vc-select/interface.ts +11 -0
- package/src/vc-select/utils/commonUtil.ts +12 -0
- package/src/vc-select/utils/keyUtil.ts +34 -0
- package/src/vc-select/utils/legacyUtil.ts +62 -0
- package/src/vc-select/utils/platformUtil.ts +4 -0
- package/src/vc-select/utils/valueUtil.ts +130 -0
- package/src/vc-select/utils/warningPropsUtil.ts +136 -0
- package/src/vc-slick/arrows.jsx +119 -0
- package/src/vc-slick/default-props.js +56 -0
- package/src/vc-slick/dots.jsx +86 -0
- package/src/vc-slick/index.js +4 -0
- package/src/vc-slick/initial-state.js +27 -0
- package/src/vc-slick/inner-slider.jsx +760 -0
- package/src/vc-slick/slider.jsx +198 -0
- package/src/vc-slick/track.jsx +190 -0
- package/src/vc-slick/utils/innerSliderUtils.js +785 -0
- package/src/vc-slider/index.ts +4 -0
- package/src/vc-slider/src/Handle.tsx +148 -0
- package/src/vc-slider/src/Range.tsx +527 -0
- package/src/vc-slider/src/Slider.tsx +226 -0
- package/src/vc-slider/src/common/Marks.tsx +75 -0
- package/src/vc-slider/src/common/Steps.tsx +76 -0
- package/src/vc-slider/src/common/Track.tsx +29 -0
- package/src/vc-slider/src/common/createSlider.tsx +368 -0
- package/src/vc-slider/src/index.ts +8 -0
- package/src/vc-slider/src/utils.ts +134 -0
- package/src/vc-steps/Step.tsx +201 -0
- package/src/vc-steps/Steps.tsx +146 -0
- package/src/vc-steps/index.ts +6 -0
- package/src/vc-steps/interface.ts +16 -0
- package/src/vc-table/Body/BodyRow.tsx +217 -0
- package/src/vc-table/Body/ExpandedRow.tsx +68 -0
- package/src/vc-table/Body/MeasureCell.tsx +35 -0
- package/src/vc-table/Body/index.tsx +146 -0
- package/src/vc-table/Cell/index.tsx +368 -0
- package/src/vc-table/ColGroup.tsx +38 -0
- package/src/vc-table/FixedHolder/index.tsx +191 -0
- package/src/vc-table/Footer/Cell.tsx +53 -0
- package/src/vc-table/Footer/Row.tsx +9 -0
- package/src/vc-table/Footer/Summary.tsx +27 -0
- package/src/vc-table/Footer/index.tsx +41 -0
- package/src/vc-table/Header/DragHandle.tsx +160 -0
- package/src/vc-table/Header/Header.tsx +128 -0
- package/src/vc-table/Header/HeaderRow.tsx +112 -0
- package/src/vc-table/Panel/index.tsx +7 -0
- package/src/vc-table/Table.tsx +865 -0
- package/src/vc-table/constant.ts +1 -0
- package/src/vc-table/context/BodyContext.tsx +41 -0
- package/src/vc-table/context/ExpandedRowContext.tsx +18 -0
- package/src/vc-table/context/HoverContext.tsx +21 -0
- package/src/vc-table/context/ResizeContext.tsx +18 -0
- package/src/vc-table/context/StickyContext.tsx +14 -0
- package/src/vc-table/context/SummaryContext.tsx +23 -0
- package/src/vc-table/context/TableContext.tsx +34 -0
- package/src/vc-table/hooks/useColumns.tsx +251 -0
- package/src/vc-table/hooks/useFlattenRecords.ts +90 -0
- package/src/vc-table/hooks/useFrame.ts +63 -0
- package/src/vc-table/hooks/useSticky.ts +41 -0
- package/src/vc-table/hooks/useStickyOffsets.ts +55 -0
- package/src/vc-table/index.ts +11 -0
- package/src/vc-table/interface.ts +257 -0
- package/src/vc-table/stickyScrollBar.tsx +241 -0
- package/src/vc-table/sugar/Column.tsx +14 -0
- package/src/vc-table/sugar/ColumnGroup.tsx +15 -0
- package/src/vc-table/utils/expandUtil.tsx +51 -0
- package/src/vc-table/utils/fixUtil.ts +69 -0
- package/src/vc-table/utils/legacyUtil.ts +59 -0
- package/src/vc-table/utils/valueUtil.tsx +89 -0
- package/src/vc-tooltip/index.ts +4 -0
- package/src/vc-tooltip/src/Content.tsx +30 -0
- package/src/vc-tooltip/src/Tooltip.tsx +137 -0
- package/src/vc-tooltip/src/placements.ts +83 -0
- package/src/vc-tour/Mask.tsx +132 -0
- package/src/vc-tour/Tour.tsx +259 -0
- package/src/vc-tour/TourStep/DefaultPanel.tsx +57 -0
- package/src/vc-tour/TourStep/index.tsx +27 -0
- package/src/vc-tour/hooks/useTarget.ts +101 -0
- package/src/vc-tour/index.ts +7 -0
- package/src/vc-tour/interface.ts +37 -0
- package/src/vc-tour/placements.tsx +79 -0
- package/src/vc-tour/util.ts +7 -0
- package/src/vc-tree/DropIndicator.tsx +34 -0
- package/src/vc-tree/Indent.tsx +31 -0
- package/src/vc-tree/MotionTreeNode.tsx +125 -0
- package/src/vc-tree/NodeList.tsx +304 -0
- package/src/vc-tree/Tree.tsx +1242 -0
- package/src/vc-tree/TreeNode.tsx +585 -0
- package/src/vc-tree/contextTypes.ts +149 -0
- package/src/vc-tree/index.ts +9 -0
- package/src/vc-tree/interface.tsx +102 -0
- package/src/vc-tree/props.ts +256 -0
- package/src/vc-tree/useMaxLevel.ts +39 -0
- package/src/vc-tree/util.tsx +352 -0
- package/src/vc-tree/utils/conductUtil.ts +241 -0
- package/src/vc-tree/utils/diffUtil.ts +45 -0
- package/src/vc-tree/utils/treeUtil.ts +458 -0
- package/src/vc-tree-select/LegacyContext.tsx +65 -0
- package/src/vc-tree-select/OptionList.tsx +263 -0
- package/src/vc-tree-select/TreeNode.tsx +15 -0
- package/src/vc-tree-select/TreeSelect.tsx +765 -0
- package/src/vc-tree-select/TreeSelectContext.ts +27 -0
- package/src/vc-tree-select/hooks/useCache.ts +44 -0
- package/src/vc-tree-select/hooks/useCheckedKeys.ts +39 -0
- package/src/vc-tree-select/hooks/useDataEntities.ts +42 -0
- package/src/vc-tree-select/hooks/useFilterTreeData.ts +64 -0
- package/src/vc-tree-select/hooks/useTreeData.ts +75 -0
- package/src/vc-tree-select/index.tsx +10 -0
- package/src/vc-tree-select/interface.ts +101 -0
- package/src/vc-tree-select/utils/legacyUtil.tsx +180 -0
- package/src/vc-tree-select/utils/strategyUtil.ts +48 -0
- package/src/vc-tree-select/utils/valueUtil.ts +50 -0
- package/src/vc-tree-select/utils/warningPropsUtil.ts +35 -0
- package/src/vc-trigger/Popup/Mask.tsx +38 -0
- package/src/vc-trigger/Popup/MobilePopupInner.tsx +60 -0
- package/src/vc-trigger/Popup/PopupInner.tsx +221 -0
- package/src/vc-trigger/Popup/index.tsx +57 -0
- package/src/vc-trigger/Popup/interface.ts +61 -0
- package/src/vc-trigger/Popup/useStretchStyle.ts +42 -0
- package/src/vc-trigger/Popup/useVisibleStatus.ts +98 -0
- package/src/vc-trigger/Trigger.tsx +716 -0
- package/src/vc-trigger/context.ts +38 -0
- package/src/vc-trigger/index.ts +8 -0
- package/src/vc-trigger/interface.ts +147 -0
- package/src/vc-trigger/utils/alignUtil.ts +40 -0
- package/src/vc-trigger/utils/motionUtil.ts +22 -0
- package/src/vc-upload/AjaxUploader.tsx +320 -0
- package/src/vc-upload/Upload.tsx +43 -0
- package/src/vc-upload/attr-accept.ts +53 -0
- package/src/vc-upload/index.ts +7 -0
- package/src/vc-upload/interface.tsx +83 -0
- package/src/vc-upload/request.ts +104 -0
- package/src/vc-upload/traverseFileTree.ts +73 -0
- package/src/vc-upload/uid.ts +6 -0
- package/src/vc-util/Children/toArray.ts +26 -0
- package/src/vc-util/Dom/addEventListener.js +22 -0
- package/src/vc-util/Dom/class.js +28 -0
- package/src/vc-util/Dom/contains.ts +12 -0
- package/src/vc-util/Dom/css.ts +133 -0
- package/src/vc-util/Dom/dynamicCSS.ts +153 -0
- package/src/vc-util/Dom/isVisible.ts +25 -0
- package/src/vc-util/Dom/scrollLocker.ts +130 -0
- package/src/vc-util/devWarning.ts +7 -0
- package/src/vc-util/get.ts +13 -0
- package/src/vc-util/isEqual.ts +52 -0
- package/src/vc-util/isMobile.ts +15 -0
- package/src/vc-util/set.ts +51 -0
- package/src/vc-util/warning.ts +40 -0
- package/src/vc-virtual-list/Filler.tsx +72 -0
- package/src/vc-virtual-list/Item.tsx +26 -0
- package/src/vc-virtual-list/List.tsx +549 -0
- package/src/vc-virtual-list/ScrollBar.tsx +266 -0
- package/src/vc-virtual-list/hooks/useFrameWheel.ts +62 -0
- package/src/vc-virtual-list/hooks/useHeights.tsx +67 -0
- package/src/vc-virtual-list/hooks/useMobileTouchMove.ts +85 -0
- package/src/vc-virtual-list/hooks/useOriginScroll.ts +33 -0
- package/src/vc-virtual-list/hooks/useScrollTo.tsx +113 -0
- package/src/vc-virtual-list/index.ts +4 -0
- package/src/vc-virtual-list/interface.ts +11 -0
- package/src/vc-virtual-list/utils/algorithmUtil.js +81 -0
- package/src/vc-virtual-list/utils/isFirefox.ts +3 -0
- package/src/vc-virtual-list/utils/itemUtil.js +147 -0
- package/src/watermark/index.en-US.md +42 -0
- package/src/watermark/index.tsx +260 -0
- package/src/watermark/index.zh-CN.md +43 -0
- package/src/watermark/utils.ts +43 -0
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
import type { CSSProperties } from 'vue'
|
|
2
|
+
|
|
3
|
+
import type { PickerLocale } from '.'
|
|
4
|
+
import type { FocusEventHandler, MouseEventHandler } from '../../_util/EventInterface'
|
|
5
|
+
import type { InputStatus } from '../../_util/statusUtils'
|
|
6
|
+
import type { VueNode } from '../../_util/type'
|
|
7
|
+
import {
|
|
8
|
+
arrayType,
|
|
9
|
+
booleanType,
|
|
10
|
+
functionType,
|
|
11
|
+
objectType,
|
|
12
|
+
someType,
|
|
13
|
+
stringType,
|
|
14
|
+
} from '../../_util/type'
|
|
15
|
+
import type { SizeType } from '../../config-provider'
|
|
16
|
+
import type { RangeDateRender, RangeInfo, RangeType } from '../../vc-picker/RangePicker'
|
|
17
|
+
import type {
|
|
18
|
+
CustomFormat,
|
|
19
|
+
DisabledTime,
|
|
20
|
+
DisabledTimes,
|
|
21
|
+
EventValue,
|
|
22
|
+
PanelMode,
|
|
23
|
+
PickerMode,
|
|
24
|
+
PresetDate,
|
|
25
|
+
RangeValue,
|
|
26
|
+
} from '../../vc-picker/interface'
|
|
27
|
+
import type { DateRender } from '../../vc-picker/panels/DatePanel/DateBody'
|
|
28
|
+
import type { MonthCellRender } from '../../vc-picker/panels/MonthPanel/MonthBody'
|
|
29
|
+
import type { SharedTimeProps } from '../../vc-picker/panels/TimePanel'
|
|
30
|
+
|
|
31
|
+
const DataPickerPlacements = ['bottomLeft', 'bottomRight', 'topLeft', 'topRight'] as const
|
|
32
|
+
type DataPickerPlacement = (typeof DataPickerPlacements)[number]
|
|
33
|
+
|
|
34
|
+
type RangeShowTimeObject<DateType> = Omit<SharedTimeProps<DateType>, 'defaultValue'> & {
|
|
35
|
+
defaultValue?: DateType[]
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function commonProps<DateType = any>() {
|
|
39
|
+
return {
|
|
40
|
+
id: String,
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated `dropdownClassName` is deprecated which will be removed in next major
|
|
43
|
+
* version.Please use `popupClassName` instead.
|
|
44
|
+
*/
|
|
45
|
+
dropdownClassName: String,
|
|
46
|
+
popupClassName: String,
|
|
47
|
+
popupStyle: objectType<CSSProperties>(),
|
|
48
|
+
transitionName: String,
|
|
49
|
+
placeholder: String,
|
|
50
|
+
allowClear: booleanType(),
|
|
51
|
+
autofocus: booleanType(),
|
|
52
|
+
disabled: booleanType(),
|
|
53
|
+
tabindex: Number,
|
|
54
|
+
open: booleanType(),
|
|
55
|
+
defaultOpen: booleanType(),
|
|
56
|
+
/** Make input readOnly to avoid popup keyboard in mobile */
|
|
57
|
+
inputReadOnly: booleanType(),
|
|
58
|
+
format: someType<string | CustomFormat<DateType> | (string | CustomFormat<DateType>)[]>([
|
|
59
|
+
String,
|
|
60
|
+
Function,
|
|
61
|
+
Array,
|
|
62
|
+
]),
|
|
63
|
+
// Value
|
|
64
|
+
// format: string | CustomFormat<DateType> | (string | CustomFormat<DateType>)[];
|
|
65
|
+
// Render
|
|
66
|
+
// suffixIcon?: VueNode;
|
|
67
|
+
// clearIcon?: VueNode;
|
|
68
|
+
// prevIcon?: VueNode;
|
|
69
|
+
// nextIcon?: VueNode;
|
|
70
|
+
// superPrevIcon?: VueNode;
|
|
71
|
+
// superNextIcon?: VueNode;
|
|
72
|
+
getPopupContainer: functionType<(node: HTMLElement) => HTMLElement>(),
|
|
73
|
+
panelRender: functionType<(originPanel: VueNode) => VueNode>(),
|
|
74
|
+
// // Events
|
|
75
|
+
onChange: functionType<(value: DateType | string | null, dateString: string) => void>(),
|
|
76
|
+
'onUpdate:value': functionType<(value: DateType | string | null) => void>(),
|
|
77
|
+
onOk: functionType<(value: DateType | string | null) => void>(),
|
|
78
|
+
onOpenChange: functionType<(open: boolean) => void>(),
|
|
79
|
+
'onUpdate:open': functionType<(open: boolean) => void>(),
|
|
80
|
+
onFocus: functionType<FocusEventHandler>(),
|
|
81
|
+
onBlur: functionType<FocusEventHandler>(),
|
|
82
|
+
onMousedown: functionType<MouseEventHandler>(),
|
|
83
|
+
onMouseup: functionType<MouseEventHandler>(),
|
|
84
|
+
onMouseenter: functionType<MouseEventHandler>(),
|
|
85
|
+
onMouseleave: functionType<MouseEventHandler>(),
|
|
86
|
+
onClick: functionType<MouseEventHandler>(),
|
|
87
|
+
onContextmenu: functionType<MouseEventHandler>(),
|
|
88
|
+
onKeydown: functionType<(event: KeyboardEvent, preventDefault: () => void) => void>(),
|
|
89
|
+
// WAI-ARIA
|
|
90
|
+
role: String,
|
|
91
|
+
name: String,
|
|
92
|
+
autocomplete: String,
|
|
93
|
+
direction: stringType<'ltr' | 'rtl'>(),
|
|
94
|
+
showToday: booleanType(),
|
|
95
|
+
showTime: someType<boolean | SharedTimeProps<DateType>>([Boolean, Object]),
|
|
96
|
+
locale: objectType<PickerLocale>(),
|
|
97
|
+
size: stringType<SizeType>(),
|
|
98
|
+
bordered: booleanType(),
|
|
99
|
+
dateRender: functionType<DateRender<DateType>>(),
|
|
100
|
+
disabledDate: functionType<(date: DateType) => boolean>(),
|
|
101
|
+
mode: stringType<PanelMode>(),
|
|
102
|
+
picker: stringType<PickerMode>(),
|
|
103
|
+
valueFormat: String,
|
|
104
|
+
placement: stringType<DataPickerPlacement>(),
|
|
105
|
+
status: stringType<InputStatus>(),
|
|
106
|
+
|
|
107
|
+
/** @deprecated Please use `disabledTime` instead. */
|
|
108
|
+
disabledHours: functionType<DisabledTimes['disabledHours']>(),
|
|
109
|
+
/** @deprecated Please use `disabledTime` instead. */
|
|
110
|
+
disabledMinutes: functionType<DisabledTimes['disabledMinutes']>(),
|
|
111
|
+
/** @deprecated Please use `disabledTime` instead. */
|
|
112
|
+
disabledSeconds: functionType<DisabledTimes['disabledSeconds']>(),
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export interface CommonProps<DateType> {
|
|
117
|
+
id?: string
|
|
118
|
+
prefixCls?: string
|
|
119
|
+
/**
|
|
120
|
+
* @deprecated `dropdownClassName` is deprecated which will be removed in next major
|
|
121
|
+
* version.Please use `popupClassName` instead.
|
|
122
|
+
*/
|
|
123
|
+
|
|
124
|
+
dropdownClassName?: string
|
|
125
|
+
popupClassName?: string
|
|
126
|
+
popupStyle?: CSSProperties
|
|
127
|
+
transitionName?: string
|
|
128
|
+
placeholder?: string
|
|
129
|
+
allowClear?: boolean
|
|
130
|
+
autofocus?: boolean
|
|
131
|
+
disabled?: boolean
|
|
132
|
+
tabindex?: number
|
|
133
|
+
open?: boolean
|
|
134
|
+
defaultOpen?: boolean
|
|
135
|
+
inputReadOnly?: boolean
|
|
136
|
+
format?: string | CustomFormat<DateType> | (string | CustomFormat<DateType>)[]
|
|
137
|
+
suffixIcon?: VueNode
|
|
138
|
+
clearIcon?: VueNode
|
|
139
|
+
prevIcon?: VueNode
|
|
140
|
+
nextIcon?: VueNode
|
|
141
|
+
superPrevIcon?: VueNode
|
|
142
|
+
superNextIcon?: VueNode
|
|
143
|
+
getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement
|
|
144
|
+
panelRender?: (originPanel: VueNode) => VueNode
|
|
145
|
+
onChange?: (value: DateType | string | null, dateString: string) => void
|
|
146
|
+
'onUpdate:value'?: (value: DateType | string | null) => void
|
|
147
|
+
onOk?: (value: DateType | string | null) => void
|
|
148
|
+
onOpenChange?: (open: boolean) => void
|
|
149
|
+
'onUpdate:open'?: (open: boolean) => void
|
|
150
|
+
onFocus?: FocusEventHandler
|
|
151
|
+
onBlur?: FocusEventHandler
|
|
152
|
+
onMousedown?: MouseEventHandler
|
|
153
|
+
onMouseup?: MouseEventHandler
|
|
154
|
+
onMouseenter?: MouseEventHandler
|
|
155
|
+
onMouseleave?: MouseEventHandler
|
|
156
|
+
onClick?: MouseEventHandler
|
|
157
|
+
onContextmenu?: MouseEventHandler
|
|
158
|
+
onKeydown?: (event: KeyboardEvent, preventDefault: () => void) => void
|
|
159
|
+
role?: string
|
|
160
|
+
name?: string
|
|
161
|
+
autocomplete?: string
|
|
162
|
+
direction?: 'ltr' | 'rtl'
|
|
163
|
+
showToday?: boolean
|
|
164
|
+
showTime?: boolean | SharedTimeProps<DateType>
|
|
165
|
+
locale?: PickerLocale
|
|
166
|
+
size?: SizeType
|
|
167
|
+
bordered?: boolean
|
|
168
|
+
dateRender?: DateRender<DateType>
|
|
169
|
+
disabledDate?: (date: DateType) => boolean
|
|
170
|
+
mode?: PanelMode
|
|
171
|
+
picker?: PickerMode
|
|
172
|
+
valueFormat?: string
|
|
173
|
+
placement?: DataPickerPlacement
|
|
174
|
+
status?: InputStatus
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
function datePickerProps<DateType = any>() {
|
|
178
|
+
return {
|
|
179
|
+
defaultPickerValue: someType<DateType | string>([Object, String]),
|
|
180
|
+
defaultValue: someType<DateType | string>([Object, String]),
|
|
181
|
+
value: someType<DateType | string>([Object, String]),
|
|
182
|
+
presets: arrayType<PresetDate<DateType>[]>(),
|
|
183
|
+
disabledTime: functionType<DisabledTime<DateType>>(),
|
|
184
|
+
renderExtraFooter: functionType<(mode: PanelMode) => VueNode>(),
|
|
185
|
+
showNow: booleanType(),
|
|
186
|
+
monthCellRender: functionType<MonthCellRender<DateType>>(),
|
|
187
|
+
// deprecated Please use `monthCellRender"` instead.',
|
|
188
|
+
monthCellContentRender: functionType<MonthCellRender<DateType>>(),
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export interface DatePickerProps<DateType> {
|
|
193
|
+
defaultPickerValue?: DateType | string
|
|
194
|
+
defaultValue?: DateType | string
|
|
195
|
+
value?: DateType | string
|
|
196
|
+
presets?: PresetDate<DateType>[]
|
|
197
|
+
disabledTime?: DisabledTime<DateType>
|
|
198
|
+
renderExtraFooter?: (mode: PanelMode) => VueNode
|
|
199
|
+
showNow?: boolean
|
|
200
|
+
monthCellRender?: MonthCellRender<DateType>
|
|
201
|
+
// deprecated Please use `monthCellRender"` instead.',
|
|
202
|
+
monthCellContentRender?: MonthCellRender<DateType>
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
function rangePickerProps<DateType>() {
|
|
206
|
+
return {
|
|
207
|
+
allowEmpty: arrayType<[boolean, boolean]>(),
|
|
208
|
+
dateRender: functionType<RangeDateRender<DateType>>(),
|
|
209
|
+
defaultPickerValue: arrayType<RangeValue<DateType> | RangeValue<string>>(),
|
|
210
|
+
defaultValue: arrayType<RangeValue<DateType> | RangeValue<string>>(),
|
|
211
|
+
value: arrayType<RangeValue<DateType> | RangeValue<string>>(),
|
|
212
|
+
presets: arrayType<PresetDate<Array<DateType>>[]>(),
|
|
213
|
+
disabledTime: functionType<(date: EventValue<DateType>, type: RangeType) => DisabledTimes>(),
|
|
214
|
+
disabled: someType<boolean | [boolean, boolean]>([Boolean, Array]),
|
|
215
|
+
renderExtraFooter: functionType<() => VueNode>(),
|
|
216
|
+
separator: { type: String },
|
|
217
|
+
showTime: someType<boolean | RangeShowTimeObject<DateType>>([Boolean, Object]),
|
|
218
|
+
ranges:
|
|
219
|
+
objectType<
|
|
220
|
+
Record<
|
|
221
|
+
string,
|
|
222
|
+
Exclude<RangeValue<DateType>, null> | (() => Exclude<RangeValue<DateType>, null>)
|
|
223
|
+
>
|
|
224
|
+
>(),
|
|
225
|
+
placeholder: arrayType<string[]>(),
|
|
226
|
+
mode: arrayType<[PanelMode, PanelMode]>(),
|
|
227
|
+
onChange:
|
|
228
|
+
functionType<
|
|
229
|
+
(
|
|
230
|
+
value: RangeValue<DateType> | RangeValue<string> | null,
|
|
231
|
+
dateString: [string, string],
|
|
232
|
+
) => void
|
|
233
|
+
>(),
|
|
234
|
+
'onUpdate:value':
|
|
235
|
+
functionType<(value: RangeValue<DateType> | RangeValue<string> | null) => void>(),
|
|
236
|
+
onCalendarChange:
|
|
237
|
+
functionType<
|
|
238
|
+
(
|
|
239
|
+
values: RangeValue<DateType> | RangeValue<string>,
|
|
240
|
+
formatString: [string, string],
|
|
241
|
+
info: RangeInfo,
|
|
242
|
+
) => void
|
|
243
|
+
>(),
|
|
244
|
+
onPanelChange:
|
|
245
|
+
functionType<
|
|
246
|
+
(values: RangeValue<DateType> | RangeValue<string>, modes: [PanelMode, PanelMode]) => void
|
|
247
|
+
>(),
|
|
248
|
+
onOk: functionType<(dates: RangeValue<DateType> | RangeValue<string>) => void>(),
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export interface RangePickerProps<DateType> {
|
|
253
|
+
allowEmpty?: [boolean, boolean]
|
|
254
|
+
dateRender?: RangeDateRender<DateType>
|
|
255
|
+
defaultPickerValue?: RangeValue<DateType> | RangeValue<string>
|
|
256
|
+
defaultValue?: RangeValue<DateType> | RangeValue<string>
|
|
257
|
+
value?: RangeValue<DateType> | RangeValue<string>
|
|
258
|
+
presets?: PresetDate<RangeValue<DateType>>[]
|
|
259
|
+
disabledTime?: (date: EventValue<DateType>, type: RangeType) => DisabledTimes
|
|
260
|
+
disabled?: [boolean, boolean]
|
|
261
|
+
renderExtraFooter?: () => VueNode
|
|
262
|
+
separator?: string
|
|
263
|
+
showTime?: boolean | RangeShowTimeObject<DateType>
|
|
264
|
+
ranges?: Record<
|
|
265
|
+
string,
|
|
266
|
+
Exclude<RangeValue<DateType>, null> | (() => Exclude<RangeValue<DateType>, null>)
|
|
267
|
+
>
|
|
268
|
+
placeholder?: [string, string]
|
|
269
|
+
mode?: [PanelMode, PanelMode]
|
|
270
|
+
onChange?: (
|
|
271
|
+
value: RangeValue<DateType> | RangeValue<string> | null,
|
|
272
|
+
dateString: [string, string],
|
|
273
|
+
) => void
|
|
274
|
+
'onUpdate:value'?: (value: RangeValue<DateType> | RangeValue<string> | null) => void
|
|
275
|
+
onCalendarChange?: (
|
|
276
|
+
values: RangeValue<DateType> | RangeValue<string>,
|
|
277
|
+
formatString: [string, string],
|
|
278
|
+
info: RangeInfo,
|
|
279
|
+
) => void
|
|
280
|
+
onPanelChange?: (
|
|
281
|
+
values: RangeValue<DateType> | RangeValue<string>,
|
|
282
|
+
modes: [PanelMode, PanelMode],
|
|
283
|
+
) => void
|
|
284
|
+
onOk?: (dates: RangeValue<DateType> | RangeValue<string>) => void
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
export interface ExtraDatePickerProps<DateType> {
|
|
288
|
+
valueFormat?: string
|
|
289
|
+
defaultPickerValue?: DateType | string
|
|
290
|
+
defaultValue?: DateType | string
|
|
291
|
+
value?: DateType | string
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
export interface ExtraRangePickerProps<DateType> {
|
|
295
|
+
valueFormat?: string
|
|
296
|
+
defaultPickerValue?: RangeValue<DateType> | RangeValue<string>
|
|
297
|
+
defaultValue?: RangeValue<DateType> | RangeValue<string>
|
|
298
|
+
value?: RangeValue<DateType> | RangeValue<string>
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export { commonProps, datePickerProps, rangePickerProps }
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
---
|
|
2
|
+
category: Components
|
|
3
|
+
type: Data Entry
|
|
4
|
+
title: DatePicker
|
|
5
|
+
cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*xXA9TJ8BTioAAAAAAAAAAAAADrJ8AQ/original
|
|
6
|
+
coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*3OpRQKcygo8AAAAAAAAAAAAADrJ8AQ/original
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
To select or input a date.
|
|
10
|
+
|
|
11
|
+
## When To Use
|
|
12
|
+
|
|
13
|
+
By clicking the input box, you can select a date from a popup calendar.
|
|
14
|
+
|
|
15
|
+
## API
|
|
16
|
+
|
|
17
|
+
There are five kinds of picker:
|
|
18
|
+
|
|
19
|
+
- DatePicker
|
|
20
|
+
- DatePicker\[picker="month"]
|
|
21
|
+
- DatePicker\[picker="week"]
|
|
22
|
+
- DatePicker\[picker="year"]
|
|
23
|
+
- DatePicker\[picker="quarter"]
|
|
24
|
+
- RangePicker
|
|
25
|
+
|
|
26
|
+
### Localization
|
|
27
|
+
|
|
28
|
+
The default locale is en-US, if you need to use other languages, recommend to use internationalized components provided by us at the entrance. Look at: [ConfigProvider](/components/config-provider/).
|
|
29
|
+
|
|
30
|
+
If there are special needs (only modifying single component language), Please use the property: local. Example: [default](https://github.com/vueComponent/ant-design-vue/blob/main/components/date-picker/locale/example.json).
|
|
31
|
+
|
|
32
|
+
```html
|
|
33
|
+
<template>
|
|
34
|
+
<a-date-picker v-model:value="value" :locale="locale" />
|
|
35
|
+
</template>
|
|
36
|
+
<script>
|
|
37
|
+
import locale from 'ant-design-vue/es/date-picker/locale/zh_CN'
|
|
38
|
+
|
|
39
|
+
import { defineComponent } from 'vue'
|
|
40
|
+
|
|
41
|
+
export default defineComponent({
|
|
42
|
+
setup() {
|
|
43
|
+
return {
|
|
44
|
+
locale,
|
|
45
|
+
value: null,
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
})
|
|
49
|
+
</script>
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
```html
|
|
53
|
+
<template>
|
|
54
|
+
<a-config-provider :locale="locale">
|
|
55
|
+
<a-date-picker v-model:value="value" />
|
|
56
|
+
</a-config-provider>
|
|
57
|
+
</template>
|
|
58
|
+
<script>
|
|
59
|
+
// The default locale is en-US, if you want to use other locale, just set locale in entry file globally.
|
|
60
|
+
import dayjs from 'dayjs';
|
|
61
|
+
import 'dayjs/locale/zh-cn';
|
|
62
|
+
import locale from 'ant-design-vue/es/date-picker/locale/zh_CN';
|
|
63
|
+
import { defineComponent } from 'vue';
|
|
64
|
+
dayjs.locale('zh-cn');
|
|
65
|
+
export default defineComponent({
|
|
66
|
+
setup() {
|
|
67
|
+
return {
|
|
68
|
+
value: dayjs('2015-01-01', 'YYYY-MM-DD')
|
|
69
|
+
dayjs,
|
|
70
|
+
locale
|
|
71
|
+
};
|
|
72
|
+
},
|
|
73
|
+
});
|
|
74
|
+
</script>
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Common API
|
|
78
|
+
|
|
79
|
+
The following APIs are shared by DatePicker, RangePicker.
|
|
80
|
+
|
|
81
|
+
| Property | Description | Type | Default | Version |
|
|
82
|
+
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | --------- |
|
|
83
|
+
| allowClear | Whether to show clear button | boolean | true | |
|
|
84
|
+
| autofocus | If get focus when component mounted | boolean | false | |
|
|
85
|
+
| bordered | Whether has border style | boolean | true | |
|
|
86
|
+
| dateRender | Custom rendering function for date cells | v-slot:dateRender="{current, today}" | - | |
|
|
87
|
+
| disabled | Determine whether the DatePicker is disabled | boolean | false | |
|
|
88
|
+
| disabledDate | Specify the date that cannot be selected | (currentDate: dayjs) => boolean | - | |
|
|
89
|
+
| format | To set the date format, refer to [dayjs](https://day.js.org/). When an array is provided, all values are used for parsing and first value is used for formatting, support [Custom Format](#components-date-picker-demo-format) | [formatType](#formattype) | `YYYY-MM-DD` | |
|
|
90
|
+
| popupClassName | To customize the className of the popup calendar | string | - | |
|
|
91
|
+
| getPopupContainer | To set the container of the floating layer, while the default is to create a `div` element in `body` | function(trigger) | - | |
|
|
92
|
+
| inputReadOnly | Set the `readonly` attribute of the input tag (avoids virtual keyboard on touch devices) | boolean | false | |
|
|
93
|
+
| locale | Localization configuration | object | [default](https://github.com/vueComponent/ant-design-vue/blob/main/components/date-picker/locale/example.json) | |
|
|
94
|
+
| mode | The picker panel mode | `time` \| `date` \| `month` \| `year` \| `decade` | - | |
|
|
95
|
+
| nextIcon | The custom next icon | slot | - | 3.0 |
|
|
96
|
+
| open | The open state of picker | boolean | - | |
|
|
97
|
+
| picker | Set picker type | `date` \| `week` \| `month` \| `quarter` \| `year` | `date` | `quarter` |
|
|
98
|
+
| placeholder | The placeholder of date input | string \| \[string,string] | - | |
|
|
99
|
+
| placement | The position where the selection box pops up | `bottomLeft` `bottomRight` `topLeft` `topRight` | bottomLeft | 3.3.0 |
|
|
100
|
+
| popupStyle | To customize the style of the popup calendar | CSSProperties | {} | |
|
|
101
|
+
| presets | The preset ranges for quick selection | { label: slot, value: [dayjs](https://day.js.org/) }[] | - | 4.0 |
|
|
102
|
+
| prevIcon | The custom prev icon | slot | - | 3.0 |
|
|
103
|
+
| size | To determine the size of the input box, the height of `large` and `small`, are 40px and 24px respectively, while default size is 32px | `large` \| `middle` \| `small` | - | |
|
|
104
|
+
| status | Set validation status | 'error' \| 'warning' | - | 3.3.0 |
|
|
105
|
+
| suffixIcon | The custom suffix icon | v-slot:suffixIcon | - | |
|
|
106
|
+
| superNextIcon | The custom super next icon | slot | - | 3.0 |
|
|
107
|
+
| superPrevIcon | The custom super prev icon | slot | - | 3.0 |
|
|
108
|
+
| valueFormat | optional, format of binding value. If not specified, the binding value will be a Date object | string, [date formats](https://day.js.org/docs/en/display/format) | - | |
|
|
109
|
+
|
|
110
|
+
### Common Events
|
|
111
|
+
|
|
112
|
+
| Events Name | Description | Arguments | Version |
|
|
113
|
+
| ----------- | -------------------------------------------------------------------------------------- | --------------------- | ------- |
|
|
114
|
+
| openChange | a callback function, can be executed whether the popup calendar is popped up or closed | function(status) | |
|
|
115
|
+
| panelChange | callback when picker panel mode is changed | function(value, mode) | |
|
|
116
|
+
|
|
117
|
+
### Common Methods
|
|
118
|
+
|
|
119
|
+
| Name | Description | Version |
|
|
120
|
+
| ------- | ------------ | ------- |
|
|
121
|
+
| blur() | remove focus | |
|
|
122
|
+
| focus() | get focus | |
|
|
123
|
+
|
|
124
|
+
### DatePicker
|
|
125
|
+
|
|
126
|
+
| Property | Description | Type | Default | Version |
|
|
127
|
+
| --------------------- | ---------------------------------------------------------------------------------------- | ------------------------------- | -------------------------------------------------- | ------- |
|
|
128
|
+
| defaultPickerValue | To set default picker date | [dayjs](https://day.js.org/) | - | |
|
|
129
|
+
| disabledTime | To specify the time that cannot be selected | function(date) | - | |
|
|
130
|
+
| format | To set the date format, refer to [dayjs](https://day.js.org/) | [formatType](#formattype) | `YYYY-MM-DD` | |
|
|
131
|
+
| renderExtraFooter | Render extra footer in panel | v-slot:renderExtraFooter="mode" | - | |
|
|
132
|
+
| showNow | Whether to show 'Now' button on panel when `showTime` is set | boolean | - | |
|
|
133
|
+
| showTime | To provide an additional time selection | object \| boolean | [TimePicker Options](/components/time-picker/#api) | |
|
|
134
|
+
| showTime.defaultValue | To set default time of selected date, [demo](#components-date-picker-demo-disabled-date) | [dayjs](https://day.js.org/) | dayjs() | |
|
|
135
|
+
| showToday | Whether to show `Today` button | boolean | true | |
|
|
136
|
+
| value(v-model) | To set date | [dayjs](https://day.js.org/) | - | |
|
|
137
|
+
|
|
138
|
+
### DatePicker Events
|
|
139
|
+
|
|
140
|
+
| Events Name | Description | Arguments | Version |
|
|
141
|
+
| ----------- | ----------------------------------------------------------------------- | --------------------------------------------------- | ------- |
|
|
142
|
+
| change | a callback function, can be executed when the selected time is changing | function(date: dayjs \| string, dateString: string) | |
|
|
143
|
+
| ok | callback when click ok button | function(date: dayjs \| string) | |
|
|
144
|
+
|
|
145
|
+
### DatePicker\[picker=year]
|
|
146
|
+
|
|
147
|
+
| Property | Description | Type | Default | Version |
|
|
148
|
+
| -------- | ------------------------------------------------------------- | ------------------------- | ------- | ------- |
|
|
149
|
+
| format | To set the date format, refer to [dayjs](https://day.js.org/) | [formatType](#formattype) | `YYYY` | |
|
|
150
|
+
|
|
151
|
+
### DatePicker\[picker=quarter]
|
|
152
|
+
|
|
153
|
+
| Property | Description | Type | Default | Version |
|
|
154
|
+
| -------- | ------------------------------------------------------------- | ------------------------- | ---------- | ------- |
|
|
155
|
+
| format | To set the date format, refer to [dayjs](https://day.js.org/) | [formatType](#formattype) | `YYYY-\QQ` | |
|
|
156
|
+
|
|
157
|
+
### DatePicker\[picker=month]
|
|
158
|
+
|
|
159
|
+
| Property | Description | Type | Default | Version |
|
|
160
|
+
| --------------- | ------------------------------------------------------------- | ------------------------------------------ | --------- | ------- |
|
|
161
|
+
| format | To set the date format, refer to [dayjs](https://day.js.org/) | [formatType](#formattype) | `YYYY-MM` | |
|
|
162
|
+
| monthCellRender | Custom month cell content render method | v-slot:monthCellRender="{current, locale}" | - | |
|
|
163
|
+
|
|
164
|
+
### DatePicker\[picker=week]
|
|
165
|
+
|
|
166
|
+
| Property | Description | Type | Default | Version |
|
|
167
|
+
| -------- | ------------------------------------------------------------- | ------------------------- | --------- | ------- |
|
|
168
|
+
| format | To set the date format, refer to [dayjs](https://day.js.org/) | [formatType](#formattype) | `YYYY-wo` | |
|
|
169
|
+
|
|
170
|
+
### RangePicker
|
|
171
|
+
|
|
172
|
+
| Property | Description | Type | Default | Version |
|
|
173
|
+
| --------------------- | ---------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------- | ------- |
|
|
174
|
+
| allowEmpty | Allow start or end input leave empty | \[boolean, boolean] | \[false, false] | |
|
|
175
|
+
| dateRender | Customize date cell. | v-slot:dateRender="{current: dayjs, today: dayjs, info: { range: `start` \| `end` }}" | - | |
|
|
176
|
+
| defaultPickerValue | To set default picker date | \[[dayjs](https://day.js.org/), [dayjs](https://day.js.org/)] | - | |
|
|
177
|
+
| disabled | If disable start or end | \[boolean, boolean] | - | |
|
|
178
|
+
| disabledTime | To specify the time that cannot be selected | function(date: dayjs, partial: `start` \| `end`) | - | |
|
|
179
|
+
| format | To set the date format, refer to [dayjs](https://day.js.org/) | [formatType](#formattype) | `YYYY-MM-DD HH:mm:ss` | |
|
|
180
|
+
| presets | The preset ranges for quick selection | { label: slot, value: [dayjs](https://day.js.org/)\[] }[] | - | 4.0 |
|
|
181
|
+
| ranges | The preseted ranges for quick selection | { \[range: string]: [dayjs](https://day.js.org/)\[] } \| { \[range: string]: () => [dayjs](https://day.js.org/)\[] } | - | |
|
|
182
|
+
| renderExtraFooter | Render extra footer in panel | v-slot:renderExtraFooter="mode" | - | |
|
|
183
|
+
| separator | Set separator between inputs | string \| v-slot:separator | `<SwapRightOutlined />` | |
|
|
184
|
+
| showTime | To provide an additional time selection | object \| boolean | [TimePicker Options](/components/time-picker/#api) | |
|
|
185
|
+
| showTime.defaultValue | To set default time of selected date, [demo](#components-date-picker-demo-disabled-date) | [dayjs](https://day.js.org/)\[] | \[dayjs(), dayjs()] | |
|
|
186
|
+
| value(v-model) | To set date | \[[dayjs](https://day.js.org/), [dayjs](https://day.js.org/)] | - | |
|
|
187
|
+
|
|
188
|
+
### RangePicker Events
|
|
189
|
+
|
|
190
|
+
| Events Name | Description | Arguments | Version | |
|
|
191
|
+
| -------------- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------- | --- |
|
|
192
|
+
| calendarChange | Callback function, can be executed when the start time or the end time of the range is changing. | function(dates: \[dayjs, dayjs], dateStrings: \[string, string], info: { range:`start`\|`end` }) | - | |
|
|
193
|
+
| change | a callback function, can be executed when the selected time is changing | function(dates: \[dayjs, dayjs] \| \[string, string], dateStrings: \[string, string]) | | |
|
|
194
|
+
| ok | callback when click ok button | function(dates: \[dayjs, dayjs] \| \[string, string]) | | |
|
|
195
|
+
|
|
196
|
+
#### formatType
|
|
197
|
+
|
|
198
|
+
```typescript
|
|
199
|
+
import type { Dayjs } from 'dayjs'
|
|
200
|
+
|
|
201
|
+
type Generic = string
|
|
202
|
+
type GenericFn = (value: Dayjs) => string
|
|
203
|
+
|
|
204
|
+
export type FormatType = Generic | GenericFn | Array<Generic | GenericFn>
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
## FAQ
|
|
208
|
+
|
|
209
|
+
### How to use DatePicker with customize date library(like moment.js \| dayjs \| date-fns)?
|
|
210
|
+
|
|
211
|
+
Please refer [replace date](/docs/vue/replace-date)
|
|
212
|
+
|
|
213
|
+
### Why config dayjs.locale globally not work?
|
|
214
|
+
|
|
215
|
+
DatePicker default set `locale` as `en` in v4. You can config DatePicker `locale` prop or [ConfigProvider `locale`](/components/config-provider) prop instead.
|
|
216
|
+
|
|
217
|
+
### How to modify start day of week?
|
|
218
|
+
|
|
219
|
+
Please use correct [language](/docs/vue/i18n) ([#5605](https://github.com/ant-design/ant-design/issues/5605)), or update dayjs `locale` config:
|
|
220
|
+
|
|
221
|
+
- Example: <https://codesandbox.io/s/dayjs-day-of-week-x9tuj2?file=/demo.tsx>
|
|
222
|
+
|
|
223
|
+
```js
|
|
224
|
+
import dayjs from 'dayjs'
|
|
225
|
+
import 'dayjs/locale/zh-cn'
|
|
226
|
+
import updateLocale from 'dayjs/plugin/updateLocale'
|
|
227
|
+
|
|
228
|
+
dayjs.extend(updateLocale)
|
|
229
|
+
dayjs.updateLocale('zh-cn', {
|
|
230
|
+
weekStart: 0,
|
|
231
|
+
})
|
|
232
|
+
```
|