@antsoo-lib/components 0.1.11 → 0.1.13
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/dist/es/modal/index.d.ts +1 -0
- package/package.json +3 -4
- package/src/_util/ActionButton.tsx +0 -124
- package/src/_util/BaseInput.tsx +0 -169
- package/src/_util/BaseInputInner.tsx +0 -97
- package/src/_util/BaseMixin.ts +0 -46
- package/src/_util/EventInterface.ts +0 -19
- package/src/_util/KeyCode.ts +0 -522
- package/src/_util/Portal.tsx +0 -73
- package/src/_util/PortalWrapper.tsx +0 -191
- package/src/_util/__mocks__/Portal.tsx +0 -13
- package/src/_util/__mocks__/RenderSlot.tsx +0 -12
- package/src/_util/canUseDom.ts +0 -5
- package/src/_util/classNames.ts +0 -28
- package/src/_util/collapseMotion.tsx +0 -51
- package/src/_util/colors.ts +0 -34
- package/src/_util/component-classes.ts +0 -167
- package/src/_util/copy-to-clipboard/index.ts +0 -120
- package/src/_util/copy-to-clipboard/toggle-selection.ts +0 -41
- package/src/_util/createContext.ts +0 -22
- package/src/_util/createRef.ts +0 -31
- package/src/_util/cssinjs/Cache.ts +0 -28
- package/src/_util/cssinjs/Keyframes.ts +0 -19
- package/src/_util/cssinjs/StyleContext.tsx +0 -187
- package/src/_util/cssinjs/hooks/useCacheToken.tsx +0 -167
- package/src/_util/cssinjs/hooks/useGlobalCache.tsx +0 -60
- package/src/_util/cssinjs/hooks/useHMR.ts +0 -34
- package/src/_util/cssinjs/hooks/useStyleRegister/cacheMapUtil.ts +0 -91
- package/src/_util/cssinjs/hooks/useStyleRegister/index.tsx +0 -567
- package/src/_util/cssinjs/index.ts +0 -75
- package/src/_util/cssinjs/linters/contentQuotesLinter.ts +0 -25
- package/src/_util/cssinjs/linters/hashedAnimationLinter.ts +0 -15
- package/src/_util/cssinjs/linters/index.ts +0 -6
- package/src/_util/cssinjs/linters/interface.ts +0 -9
- package/src/_util/cssinjs/linters/legacyNotSelectorLinter.ts +0 -33
- package/src/_util/cssinjs/linters/logicalPropertiesLinter.ts +0 -88
- package/src/_util/cssinjs/linters/parentSelectorLinter.ts +0 -15
- package/src/_util/cssinjs/linters/utils.ts +0 -13
- package/src/_util/cssinjs/theme/Theme.ts +0 -38
- package/src/_util/cssinjs/theme/ThemeCache.ts +0 -135
- package/src/_util/cssinjs/theme/createTheme.ts +0 -26
- package/src/_util/cssinjs/theme/index.ts +0 -4
- package/src/_util/cssinjs/theme/interface.ts +0 -5
- package/src/_util/cssinjs/transformers/interface.ts +0 -5
- package/src/_util/cssinjs/transformers/legacyLogicalProperties.ts +0 -162
- package/src/_util/cssinjs/transformers/px2rem.ts +0 -77
- package/src/_util/cssinjs/util.ts +0 -118
- package/src/_util/debouncedWatch.ts +0 -87
- package/src/_util/eagerComputed.ts +0 -17
- package/src/_util/easings.ts +0 -8
- package/src/_util/env.ts +0 -9
- package/src/_util/extendsObject.ts +0 -21
- package/src/_util/firstNotUndefined.ts +0 -10
- package/src/_util/gapSize.ts +0 -13
- package/src/_util/getRequestAnimationFrame.ts +0 -47
- package/src/_util/getScroll.ts +0 -33
- package/src/_util/getScrollBarSize.ts +0 -60
- package/src/_util/hooks/_vueuse/_configurable.ts +0 -34
- package/src/_util/hooks/_vueuse/is.ts +0 -26
- package/src/_util/hooks/_vueuse/resolveUnref.ts +0 -10
- package/src/_util/hooks/_vueuse/tryOnMounted.ts +0 -15
- package/src/_util/hooks/_vueuse/tryOnScopeDispose.ts +0 -16
- package/src/_util/hooks/_vueuse/types.ts +0 -143
- package/src/_util/hooks/_vueuse/unrefElement.ts +0 -25
- package/src/_util/hooks/_vueuse/useElementSize.ts +0 -66
- package/src/_util/hooks/_vueuse/useMutationObserver.ts +0 -63
- package/src/_util/hooks/_vueuse/useResizeObserver.ts +0 -95
- package/src/_util/hooks/_vueuse/useSupported.ts +0 -14
- package/src/_util/hooks/useBreakpoint.ts +0 -25
- package/src/_util/hooks/useDestroyed.ts +0 -12
- package/src/_util/hooks/useFlexGapSupport.ts +0 -12
- package/src/_util/hooks/useId.ts +0 -31
- package/src/_util/hooks/useLayoutState.ts +0 -42
- package/src/_util/hooks/useMemo.ts +0 -21
- package/src/_util/hooks/useMergedState.ts +0 -47
- package/src/_util/hooks/useRefs.ts +0 -21
- package/src/_util/hooks/useScrollLocker.ts +0 -53
- package/src/_util/hooks/useState.ts +0 -17
- package/src/_util/isNumeric.ts +0 -5
- package/src/_util/isValid.ts +0 -4
- package/src/_util/isValidValue.ts +0 -3
- package/src/_util/json2mq.ts +0 -60
- package/src/_util/omit.ts +0 -9
- package/src/_util/pickAttrs.ts +0 -74
- package/src/_util/placements.ts +0 -111
- package/src/_util/props-util/index.ts +0 -287
- package/src/_util/props-util/initDefaultProps.ts +0 -34
- package/src/_util/raf.ts +0 -47
- package/src/_util/reactivePick.ts +0 -16
- package/src/_util/requestAnimationTimeout.ts +0 -24
- package/src/_util/responsiveObserve.ts +0 -86
- package/src/_util/scrollTo.ts +0 -38
- package/src/_util/setStyle.ts +0 -30
- package/src/_util/shallowequal.ts +0 -50
- package/src/_util/static-style-extract/index.tsx +0 -92
- package/src/_util/static-style-extract/interface.ts +0 -3
- package/src/_util/statusUtils.tsx +0 -23
- package/src/_util/styleChecker.ts +0 -62
- package/src/_util/supportsPassive.js +0 -13
- package/src/_util/throttleByAnimationFrame.ts +0 -31
- package/src/_util/toReactive.ts +0 -43
- package/src/_util/transButton.tsx +0 -103
- package/src/_util/transKeys.ts +0 -17
- package/src/_util/transition.tsx +0 -130
- package/src/_util/type.ts +0 -95
- package/src/_util/unreachableException.ts +0 -7
- package/src/_util/util.ts +0 -102
- package/src/_util/vnode.ts +0 -84
- package/src/_util/vue-types/index.ts +0 -45
- package/src/_util/warning.ts +0 -21
- package/src/_util/wave/WaveEffect.tsx +0 -172
- package/src/_util/wave/index.tsx +0 -96
- package/src/_util/wave/style.ts +0 -38
- package/src/_util/wave/useWave.ts +0 -26
- package/src/_util/wave/util.ts +0 -34
- package/src/affix/index.en-US.md +0 -47
- package/src/affix/index.tsx +0 -287
- package/src/affix/index.zh-CN.md +0 -50
- package/src/affix/style/index.ts +0 -27
- package/src/affix/utils.ts +0 -107
- package/src/alert/index.en-US.md +0 -36
- package/src/alert/index.tsx +0 -207
- package/src/alert/index.zh-CN.md +0 -37
- package/src/alert/style/index.ts +0 -240
- package/src/anchor/Anchor.tsx +0 -331
- package/src/anchor/AnchorLink.tsx +0 -108
- package/src/anchor/context.ts +0 -36
- package/src/anchor/index.en-US.md +0 -59
- package/src/anchor/index.tsx +0 -23
- package/src/anchor/index.zh-CN.md +0 -60
- package/src/anchor/style/index.ts +0 -173
- package/src/app/context.ts +0 -45
- package/src/app/index.en-US.md +0 -131
- package/src/app/index.tsx +0 -84
- package/src/app/index.zh-CN.md +0 -132
- package/src/app/style/index.ts +0 -22
- package/src/auto-complete/OptGroup.tsx +0 -15
- package/src/auto-complete/Option.tsx +0 -18
- package/src/auto-complete/index.en-US.md +0 -95
- package/src/auto-complete/index.tsx +0 -174
- package/src/auto-complete/index.zh-CN.md +0 -96
- package/src/avatar/Avatar.tsx +0 -222
- package/src/avatar/AvatarContext.ts +0 -18
- package/src/avatar/Group.tsx +0 -100
- package/src/avatar/index.en-US.md +0 -37
- package/src/avatar/index.ts +0 -22
- package/src/avatar/index.zh-CN.md +0 -42
- package/src/avatar/style/index.ts +0 -211
- package/src/badge/Badge.tsx +0 -242
- package/src/badge/Ribbon.tsx +0 -63
- package/src/badge/ScrollNumber.tsx +0 -87
- package/src/badge/SingleNumber.tsx +0 -134
- package/src/badge/index.en_US.md +0 -48
- package/src/badge/index.ts +0 -19
- package/src/badge/index.zh-CN.md +0 -49
- package/src/badge/style/index.ts +0 -378
- package/src/breadcrumb/Breadcrumb.tsx +0 -172
- package/src/breadcrumb/BreadcrumbItem.tsx +0 -91
- package/src/breadcrumb/BreadcrumbSeparator.tsx +0 -33
- package/src/breadcrumb/index.en-US.md +0 -120
- package/src/breadcrumb/index.ts +0 -27
- package/src/breadcrumb/index.zh-CN.md +0 -121
- package/src/breadcrumb/style/index.ts +0 -127
- package/src/button/LoadingIcon.tsx +0 -70
- package/src/button/button-group.tsx +0 -61
- package/src/button/button.tsx +0 -246
- package/src/button/buttonTypes.ts +0 -47
- package/src/button/index.en-US.md +0 -72
- package/src/button/index.ts +0 -25
- package/src/button/index.zh-CN.md +0 -75
- package/src/button/style/group.ts +0 -80
- package/src/button/style/index.ts +0 -557
- package/src/calendar/Header.tsx +0 -206
- package/src/calendar/date-fns.tsx +0 -9
- package/src/calendar/dayjs.tsx +0 -9
- package/src/calendar/generateCalendar.tsx +0 -371
- package/src/calendar/index.en-US.md +0 -68
- package/src/calendar/index.tsx +0 -5
- package/src/calendar/index.zh-CN.md +0 -67
- package/src/calendar/locale/ar_EG.ts +0 -3
- package/src/calendar/locale/az_AZ.ts +0 -3
- package/src/calendar/locale/bg_BG.ts +0 -3
- package/src/calendar/locale/bn_BD.ts +0 -3
- package/src/calendar/locale/by_BY.ts +0 -3
- package/src/calendar/locale/ca_ES.ts +0 -3
- package/src/calendar/locale/cs_CZ.ts +0 -3
- package/src/calendar/locale/da_DK.ts +0 -3
- package/src/calendar/locale/de_DE.ts +0 -3
- package/src/calendar/locale/el_GR.ts +0 -3
- package/src/calendar/locale/en_GB.ts +0 -3
- package/src/calendar/locale/en_US.ts +0 -3
- package/src/calendar/locale/es_ES.ts +0 -3
- package/src/calendar/locale/et_EE.ts +0 -3
- package/src/calendar/locale/fa_IR.ts +0 -3
- package/src/calendar/locale/fi_FI.ts +0 -3
- package/src/calendar/locale/fr_BE.ts +0 -3
- package/src/calendar/locale/fr_CA.ts +0 -3
- package/src/calendar/locale/fr_FR.ts +0 -3
- package/src/calendar/locale/ga_IE.ts +0 -3
- package/src/calendar/locale/gl_ES.ts +0 -3
- package/src/calendar/locale/he_IL.ts +0 -3
- package/src/calendar/locale/hi_IN.ts +0 -3
- package/src/calendar/locale/hr_HR.ts +0 -3
- package/src/calendar/locale/hu_HU.ts +0 -3
- package/src/calendar/locale/id_ID.ts +0 -3
- package/src/calendar/locale/is_IS.ts +0 -3
- package/src/calendar/locale/it_IT.ts +0 -3
- package/src/calendar/locale/ja_JP.ts +0 -3
- package/src/calendar/locale/ka_GE.ts +0 -3
- package/src/calendar/locale/kk_KZ.ts +0 -3
- package/src/calendar/locale/km_KH.ts +0 -3
- package/src/calendar/locale/kmr_IQ.ts +0 -3
- package/src/calendar/locale/kn_IN.ts +0 -3
- package/src/calendar/locale/ko_KR.ts +0 -3
- package/src/calendar/locale/lt_LT.ts +0 -3
- package/src/calendar/locale/lv_LV.ts +0 -3
- package/src/calendar/locale/mk_MK.ts +0 -3
- package/src/calendar/locale/ml_IN.ts +0 -3
- package/src/calendar/locale/mn_MN.ts +0 -3
- package/src/calendar/locale/ms_MY.ts +0 -3
- package/src/calendar/locale/nb_NO.ts +0 -3
- package/src/calendar/locale/nl_BE.ts +0 -3
- package/src/calendar/locale/nl_NL.ts +0 -3
- package/src/calendar/locale/pl_PL.ts +0 -3
- package/src/calendar/locale/pt_BR.ts +0 -3
- package/src/calendar/locale/pt_PT.ts +0 -3
- package/src/calendar/locale/ro_RO.ts +0 -3
- package/src/calendar/locale/ru_RU.ts +0 -3
- package/src/calendar/locale/sk_SK.ts +0 -3
- package/src/calendar/locale/sl_SI.ts +0 -3
- package/src/calendar/locale/sr_RS.ts +0 -3
- package/src/calendar/locale/sv_SE.ts +0 -3
- package/src/calendar/locale/ta_IN.ts +0 -3
- package/src/calendar/locale/th_TH.ts +0 -3
- package/src/calendar/locale/tr_TR.ts +0 -3
- package/src/calendar/locale/uk_UA.ts +0 -3
- package/src/calendar/locale/ur_PK.ts +0 -3
- package/src/calendar/locale/vi_VN.ts +0 -3
- package/src/calendar/locale/zh_CN.ts +0 -3
- package/src/calendar/locale/zh_TW.ts +0 -3
- package/src/calendar/moment.tsx +0 -11
- package/src/calendar/style/index.tsx +0 -218
- package/src/card/Card.tsx +0 -197
- package/src/card/Grid.tsx +0 -28
- package/src/card/Meta.tsx +0 -56
- package/src/card/index.en-US.md +0 -59
- package/src/card/index.ts +0 -26
- package/src/card/index.zh-CN.md +0 -60
- package/src/card/style/index.tsx +0 -387
- package/src/carousel/index.en-US.md +0 -38
- package/src/carousel/index.tsx +0 -161
- package/src/carousel/index.zh-CN.md +0 -39
- package/src/carousel/style/index.tsx +0 -350
- package/src/cascader/index.en-US.md +0 -97
- package/src/cascader/index.tsx +0 -357
- package/src/cascader/index.zh-CN.md +0 -100
- package/src/cascader/style/index.ts +0 -165
- package/src/checkbox/Checkbox.tsx +0 -140
- package/src/checkbox/Group.tsx +0 -131
- package/src/checkbox/index.en-US.md +0 -58
- package/src/checkbox/index.ts +0 -21
- package/src/checkbox/index.zh-CN.md +0 -59
- package/src/checkbox/interface.ts +0 -90
- package/src/checkbox/style/index.ts +0 -303
- package/src/col/index.ts +0 -5
- package/src/col/style/index.ts +0 -4
- package/src/collapse/Collapse.tsx +0 -204
- package/src/collapse/CollapsePanel.tsx +0 -124
- package/src/collapse/PanelContent.tsx +0 -35
- package/src/collapse/commonProps.ts +0 -56
- package/src/collapse/index.en-US.md +0 -47
- package/src/collapse/index.ts +0 -22
- package/src/collapse/index.zh-CN.md +0 -47
- package/src/collapse/style/index.tsx +0 -271
- package/src/comment/index.en-US.md +0 -22
- package/src/comment/index.tsx +0 -118
- package/src/comment/index.zh-CN.md +0 -23
- package/src/comment/style/index.ts +0 -160
- package/src/components.ts +0 -263
- package/src/config-provider/DisabledContext.ts +0 -17
- package/src/config-provider/SizeContext.ts +0 -17
- package/src/config-provider/context.ts +0 -178
- package/src/config-provider/cssVariables.ts +0 -102
- package/src/config-provider/hooks/useConfigInject.ts +0 -74
- package/src/config-provider/hooks/useTheme.ts +0 -44
- package/src/config-provider/index.en-US.md +0 -115
- package/src/config-provider/index.tsx +0 -296
- package/src/config-provider/index.zh-CN.md +0 -116
- package/src/config-provider/renderEmpty.tsx +0 -35
- package/src/config-provider/style/index.ts +0 -31
- package/src/date-picker/PickerButton.tsx +0 -9
- package/src/date-picker/PickerTag.tsx +0 -6
- package/src/date-picker/date-fns.tsx +0 -38
- package/src/date-picker/dayjs.tsx +0 -40
- package/src/date-picker/generatePicker/generateRangePicker.tsx +0 -256
- package/src/date-picker/generatePicker/generateSinglePicker.tsx +0 -290
- package/src/date-picker/generatePicker/index.tsx +0 -85
- package/src/date-picker/generatePicker/interface.ts +0 -74
- package/src/date-picker/generatePicker/props.ts +0 -301
- package/src/date-picker/index.en-US.md +0 -232
- package/src/date-picker/index.tsx +0 -5
- package/src/date-picker/index.zh-CN.md +0 -231
- package/src/date-picker/locale/ar_EG.ts +0 -24
- package/src/date-picker/locale/az_AZ.ts +0 -16
- package/src/date-picker/locale/bg_BG.ts +0 -20
- package/src/date-picker/locale/bn_BD.ts +0 -27
- package/src/date-picker/locale/by_BY.ts +0 -23
- package/src/date-picker/locale/ca_ES.ts +0 -20
- package/src/date-picker/locale/cs_CZ.ts +0 -20
- package/src/date-picker/locale/da_DK.ts +0 -20
- package/src/date-picker/locale/de_DE.ts +0 -20
- package/src/date-picker/locale/el_GR.ts +0 -20
- package/src/date-picker/locale/en_GB.ts +0 -28
- package/src/date-picker/locale/en_US.ts +0 -28
- package/src/date-picker/locale/es_ES.ts +0 -20
- package/src/date-picker/locale/et_EE.ts +0 -20
- package/src/date-picker/locale/example.json +0 -40
- package/src/date-picker/locale/fa_IR.ts +0 -27
- package/src/date-picker/locale/fi_FI.ts +0 -20
- package/src/date-picker/locale/fr_BE.ts +0 -20
- package/src/date-picker/locale/fr_CA.ts +0 -27
- package/src/date-picker/locale/fr_FR.ts +0 -27
- package/src/date-picker/locale/ga_IE.ts +0 -27
- package/src/date-picker/locale/gl_ES.ts +0 -20
- package/src/date-picker/locale/he_IL.ts +0 -20
- package/src/date-picker/locale/hi_IN.ts +0 -27
- package/src/date-picker/locale/hr_HR.ts +0 -27
- package/src/date-picker/locale/hu_HU.ts +0 -20
- package/src/date-picker/locale/id_ID.ts +0 -20
- package/src/date-picker/locale/is_IS.ts +0 -20
- package/src/date-picker/locale/it_IT.ts +0 -20
- package/src/date-picker/locale/ja_JP.ts +0 -28
- package/src/date-picker/locale/ka_GE.ts +0 -23
- package/src/date-picker/locale/kk_KZ.ts +0 -27
- package/src/date-picker/locale/km_KH.ts +0 -27
- package/src/date-picker/locale/kmr_IQ.ts +0 -19
- package/src/date-picker/locale/kn_IN.ts +0 -20
- package/src/date-picker/locale/ko_KR.ts +0 -20
- package/src/date-picker/locale/lt_LT.ts +0 -27
- package/src/date-picker/locale/lv_LV.ts +0 -20
- package/src/date-picker/locale/mk_MK.ts +0 -20
- package/src/date-picker/locale/ml_IN.ts +0 -27
- package/src/date-picker/locale/mn_MN.ts +0 -20
- package/src/date-picker/locale/ms_MY.ts +0 -20
- package/src/date-picker/locale/nb_NO.ts +0 -27
- package/src/date-picker/locale/nl_BE.ts +0 -27
- package/src/date-picker/locale/nl_NL.ts +0 -27
- package/src/date-picker/locale/pl_PL.ts +0 -20
- package/src/date-picker/locale/pt_BR.ts +0 -20
- package/src/date-picker/locale/pt_PT.ts +0 -47
- package/src/date-picker/locale/ro_RO.ts +0 -20
- package/src/date-picker/locale/ru_RU.ts +0 -28
- package/src/date-picker/locale/sk_SK.ts +0 -20
- package/src/date-picker/locale/sl_SI.ts +0 -45
- package/src/date-picker/locale/sr_RS.ts +0 -27
- package/src/date-picker/locale/sv_SE.ts +0 -27
- package/src/date-picker/locale/ta_IN.ts +0 -21
- package/src/date-picker/locale/th_TH.ts +0 -27
- package/src/date-picker/locale/tr_TR.ts +0 -28
- package/src/date-picker/locale/uk_UA.ts +0 -20
- package/src/date-picker/locale/ur_PK.ts +0 -27
- package/src/date-picker/locale/vi_VN.ts +0 -20
- package/src/date-picker/locale/zh_CN.ts +0 -31
- package/src/date-picker/locale/zh_TW.ts +0 -30
- package/src/date-picker/moment.tsx +0 -41
- package/src/date-picker/style/index.ts +0 -1451
- package/src/date-picker/util.ts +0 -102
- package/src/descriptions/Cell.tsx +0 -75
- package/src/descriptions/Row.tsx +0 -139
- package/src/descriptions/index.en-US.md +0 -40
- package/src/descriptions/index.tsx +0 -257
- package/src/descriptions/index.zh-CN.md +0 -41
- package/src/descriptions/style/index.ts +0 -208
- package/src/divider/index.en-US.md +0 -24
- package/src/divider/index.tsx +0 -98
- package/src/divider/index.zh-CN.md +0 -25
- package/src/divider/style/index.ts +0 -167
- package/src/drawer/index.en-US.md +0 -60
- package/src/drawer/index.tsx +0 -441
- package/src/drawer/index.zh-CN.md +0 -59
- package/src/drawer/style/index.ts +0 -230
- package/src/drawer/style/motion.ts +0 -134
- package/src/dropdown/dropdown-button.tsx +0 -120
- package/src/dropdown/dropdown.tsx +0 -219
- package/src/dropdown/index.en-US.md +0 -64
- package/src/dropdown/index.ts +0 -24
- package/src/dropdown/index.zh-CN.md +0 -68
- package/src/dropdown/props.ts +0 -95
- package/src/dropdown/style/button.ts +0 -26
- package/src/dropdown/style/index.ts +0 -458
- package/src/dropdown/style/status.ts +0 -25
- package/src/empty/empty.tsx +0 -77
- package/src/empty/index.en-US.md +0 -38
- package/src/empty/index.tsx +0 -91
- package/src/empty/index.zh-CN.md +0 -39
- package/src/empty/simple.tsx +0 -42
- package/src/empty/style/index.ts +0 -80
- package/src/flex/index.en-US.md +0 -32
- package/src/flex/index.tsx +0 -59
- package/src/flex/index.zh-CN.md +0 -33
- package/src/flex/interface.ts +0 -17
- package/src/flex/style/index.ts +0 -110
- package/src/flex/utils.ts +0 -67
- package/src/float-button/BackTop.tsx +0 -146
- package/src/float-button/FloatButton.tsx +0 -105
- package/src/float-button/FloatButtonContent.tsx +0 -38
- package/src/float-button/FloatButtonGroup.tsx +0 -142
- package/src/float-button/context.ts +0 -19
- package/src/float-button/index.en-US.md +0 -60
- package/src/float-button/index.ts +0 -41
- package/src/float-button/index.zh-CN.md +0 -63
- package/src/float-button/interface.ts +0 -71
- package/src/float-button/style/index.ts +0 -396
- package/src/float-button/util.ts +0 -10
- package/src/form/ErrorList.tsx +0 -66
- package/src/form/Form.tsx +0 -416
- package/src/form/FormItem.tsx +0 -545
- package/src/form/FormItemContext.ts +0 -128
- package/src/form/FormItemInput.tsx +0 -114
- package/src/form/FormItemLabel.tsx +0 -118
- package/src/form/context.ts +0 -78
- package/src/form/index.en-US.md +0 -255
- package/src/form/index.tsx +0 -31
- package/src/form/index.zh-CN.md +0 -253
- package/src/form/interface.ts +0 -227
- package/src/form/style/explain.ts +0 -56
- package/src/form/style/index.ts +0 -492
- package/src/form/useForm.ts +0 -394
- package/src/form/utils/asyncUtil.ts +0 -34
- package/src/form/utils/messages.ts +0 -49
- package/src/form/utils/typeUtil.ts +0 -7
- package/src/form/utils/useDebounce.ts +0 -18
- package/src/form/utils/validateUtil.ts +0 -244
- package/src/form/utils/valueUtil.ts +0 -85
- package/src/grid/Col.tsx +0 -160
- package/src/grid/Row.tsx +0 -199
- package/src/grid/context.ts +0 -25
- package/src/grid/index.en-US.md +0 -67
- package/src/grid/index.ts +0 -11
- package/src/grid/index.zh-CN.md +0 -64
- package/src/grid/style/index.ts +0 -179
- package/src/icon/index.en-US.md +0 -247
- package/src/icon/index.tsx +0 -11
- package/src/icon/index.zh-CN.md +0 -248
- package/src/image/PreviewGroup.tsx +0 -77
- package/src/image/index.en-US.md +0 -48
- package/src/image/index.tsx +0 -87
- package/src/image/index.zh-CN.md +0 -49
- package/src/image/style/index.ts +0 -322
- package/src/index.ts +0 -32
- package/src/input/ClearableLabeledInput.tsx +0 -126
- package/src/input/Group.tsx +0 -50
- package/src/input/Input.tsx +0 -206
- package/src/input/Password.tsx +0 -112
- package/src/input/ResizableTextArea.tsx +0 -189
- package/src/input/Search.tsx +0 -171
- package/src/input/TextArea.tsx +0 -317
- package/src/input/calculateNodeHeight.tsx +0 -175
- package/src/input/index.en-US.md +0 -101
- package/src/input/index.ts +0 -38
- package/src/input/index.zh-CN.md +0 -102
- package/src/input/inputProps.ts +0 -41
- package/src/input/style/index.ts +0 -971
- package/src/input/util.ts +0 -21
- package/src/input-number/index.en-US.md +0 -65
- package/src/input-number/index.tsx +0 -250
- package/src/input-number/index.zh-CN.md +0 -68
- package/src/input-number/src/InputNumber.tsx +0 -593
- package/src/input-number/src/StepHandler.tsx +0 -110
- package/src/input-number/src/hooks/useCursor.ts +0 -79
- package/src/input-number/src/hooks/useFrame.ts +0 -26
- package/src/input-number/src/utils/MiniDecimal.ts +0 -307
- package/src/input-number/src/utils/numberUtil.ts +0 -115
- package/src/input-number/src/utils/supportUtil.ts +0 -3
- package/src/input-number/style/index.tsx +0 -416
- package/src/layout/Sider.tsx +0 -235
- package/src/layout/index.en-US.md +0 -122
- package/src/layout/index.ts +0 -28
- package/src/layout/index.zh-CN.md +0 -123
- package/src/layout/injectionKey.ts +0 -12
- package/src/layout/layout.tsx +0 -113
- package/src/layout/style/index.ts +0 -226
- package/src/layout/style/light.ts +0 -27
- package/src/list/Item.tsx +0 -112
- package/src/list/ItemMeta.tsx +0 -52
- package/src/list/contextKey.ts +0 -8
- package/src/list/index.en-US.md +0 -73
- package/src/list/index.tsx +0 -344
- package/src/list/index.zh-CN.md +0 -74
- package/src/list/style/index.tsx +0 -354
- package/src/locale/LocaleReceiver.tsx +0 -87
- package/src/locale/ar_EG.ts +0 -120
- package/src/locale/az_AZ.ts +0 -48
- package/src/locale/bg_BG.ts +0 -46
- package/src/locale/bn_BD.ts +0 -134
- package/src/locale/by_BY.ts +0 -128
- package/src/locale/ca_ES.ts +0 -129
- package/src/locale/cs_CZ.ts +0 -57
- package/src/locale/da_DK.ts +0 -56
- package/src/locale/de_DE.ts +0 -127
- package/src/locale/el_GR.ts +0 -46
- package/src/locale/en_GB.ts +0 -108
- package/src/locale/en_US.ts +0 -146
- package/src/locale/es_ES.ts +0 -134
- package/src/locale/et_EE.ts +0 -136
- package/src/locale/fa_IR.ts +0 -134
- package/src/locale/fi_FI.ts +0 -56
- package/src/locale/fr_BE.ts +0 -50
- package/src/locale/fr_CA.ts +0 -62
- package/src/locale/fr_FR.ts +0 -131
- package/src/locale/ga_IE.ts +0 -127
- package/src/locale/gl_ES.ts +0 -114
- package/src/locale/he_IL.ts +0 -120
- package/src/locale/hi_IN.ts +0 -134
- package/src/locale/hr_HR.ts +0 -133
- package/src/locale/hu_HU.ts +0 -47
- package/src/locale/hy_AM.ts +0 -115
- package/src/locale/id_ID.ts +0 -48
- package/src/locale/index.tsx +0 -111
- package/src/locale/is_IS.ts +0 -46
- package/src/locale/it_IT.ts +0 -62
- package/src/locale/ja_JP.ts +0 -106
- package/src/locale/ka_GE.ts +0 -134
- package/src/locale/kk_KZ.ts +0 -128
- package/src/locale/km_KH.ts +0 -108
- package/src/locale/kmr_IQ.ts +0 -46
- package/src/locale/kn_IN.ts +0 -54
- package/src/locale/ko_KR.ts +0 -100
- package/src/locale/ku_IQ.ts +0 -50
- package/src/locale/lt_LT.ts +0 -125
- package/src/locale/lv_LV.ts +0 -46
- package/src/locale/mk_MK.ts +0 -61
- package/src/locale/ml_IN.ts +0 -134
- package/src/locale/mn_MN.ts +0 -46
- package/src/locale/ms_MY.ts +0 -66
- package/src/locale/nb_NO.ts +0 -128
- package/src/locale/ne_NP.ts +0 -47
- package/src/locale/nl_BE.ts +0 -134
- package/src/locale/nl_NL.ts +0 -134
- package/src/locale/pl_PL.ts +0 -136
- package/src/locale/pt_BR.ts +0 -139
- package/src/locale/pt_PT.ts +0 -47
- package/src/locale/ro_RO.ts +0 -134
- package/src/locale/ru_RU.ts +0 -143
- package/src/locale/sk_SK.ts +0 -135
- package/src/locale/sl_SI.ts +0 -46
- package/src/locale/sr_RS.ts +0 -134
- package/src/locale/sv_SE.ts +0 -134
- package/src/locale/ta_IN.ts +0 -66
- package/src/locale/th_TH.ts +0 -130
- package/src/locale/tr_TR.ts +0 -132
- package/src/locale/uk_UA.ts +0 -46
- package/src/locale/ur_PK.ts +0 -134
- package/src/locale/vi_VN.ts +0 -46
- package/src/locale/zh_CN.ts +0 -145
- package/src/locale/zh_HK.ts +0 -141
- package/src/locale/zh_TW.ts +0 -142
- package/src/locale-provider/LocaleReceiver.tsx +0 -5
- package/src/locale-provider/index.ts +0 -5
- package/src/mentions/index.en-US.md +0 -70
- package/src/mentions/index.tsx +0 -301
- package/src/mentions/index.zh-CN.md +0 -71
- package/src/mentions/style/index.ts +0 -232
- package/src/menu/index.en-US.md +0 -166
- package/src/menu/index.tsx +0 -56
- package/src/menu/index.zh-CN.md +0 -166
- package/src/menu/src/Divider.tsx +0 -29
- package/src/menu/src/InlineSubMenuList.tsx +0 -56
- package/src/menu/src/ItemGroup.tsx +0 -48
- package/src/menu/src/Menu.tsx +0 -529
- package/src/menu/src/MenuItem.tsx +0 -272
- package/src/menu/src/OverrideContext.ts +0 -30
- package/src/menu/src/PopupTrigger.tsx +0 -117
- package/src/menu/src/SubMenu.tsx +0 -376
- package/src/menu/src/SubMenuList.tsx +0 -25
- package/src/menu/src/hooks/useDirectionStyle.ts +0 -16
- package/src/menu/src/hooks/useItems.tsx +0 -137
- package/src/menu/src/hooks/useKeyPath.ts +0 -46
- package/src/menu/src/hooks/useMenuContext.ts +0 -144
- package/src/menu/src/interface.ts +0 -116
- package/src/menu/src/placements.ts +0 -52
- package/src/menu/style/horizontal.ts +0 -57
- package/src/menu/style/index.ts +0 -585
- package/src/menu/style/rtl.ts +0 -28
- package/src/menu/style/theme.ts +0 -264
- package/src/menu/style/vertical.ts +0 -231
- package/src/message/PurePanel.tsx +0 -75
- package/src/message/index.en-US.md +0 -119
- package/src/message/index.tsx +0 -263
- package/src/message/index.zh-CN.md +0 -122
- package/src/message/interface.ts +0 -49
- package/src/message/style/index.ts +0 -180
- package/src/message/useMessage.tsx +0 -231
- package/src/modal/ConfirmDialog.tsx +0 -232
- package/src/modal/Modal.tsx +0 -262
- package/src/modal/confirm.tsx +0 -146
- package/src/modal/destroyFns.ts +0 -2
- package/src/modal/index.en-US.md +0 -161
- package/src/modal/index.tsx +0 -84
- package/src/modal/index.zh-CN.md +0 -165
- package/src/modal/locale.ts +0 -28
- package/src/modal/style/index.ts +0 -466
- package/src/modal/useModal/HookModal.tsx +0 -75
- package/src/modal/useModal/index.tsx +0 -151
- package/src/notification/PurePanel.tsx +0 -122
- package/src/notification/index.en-US.md +0 -108
- package/src/notification/index.tsx +0 -256
- package/src/notification/index.zh-CN.md +0 -109
- package/src/notification/interface.ts +0 -62
- package/src/notification/style/index.ts +0 -287
- package/src/notification/style/placement.ts +0 -81
- package/src/notification/useNotification.tsx +0 -150
- package/src/notification/util.ts +0 -74
- package/src/page-header/index.en-US.md +0 -34
- package/src/page-header/index.tsx +0 -196
- package/src/page-header/index.zh-CN.md +0 -34
- package/src/page-header/style/index.ts +0 -155
- package/src/pagination/Pagination.tsx +0 -169
- package/src/pagination/Select.tsx +0 -38
- package/src/pagination/index.en-US.md +0 -48
- package/src/pagination/index.ts +0 -7
- package/src/pagination/index.zh-CN.md +0 -42
- package/src/pagination/style/index.tsx +0 -717
- package/src/popconfirm/index.en-US.md +0 -47
- package/src/popconfirm/index.tsx +0 -243
- package/src/popconfirm/index.zh-CN.md +0 -46
- package/src/popconfirm/style/index.ts +0 -89
- package/src/popover/index.en-US.md +0 -28
- package/src/popover/index.tsx +0 -81
- package/src/popover/index.zh-CN.md +0 -29
- package/src/popover/style/index.ts +0 -183
- package/src/progress/Circle.tsx +0 -110
- package/src/progress/Line.tsx +0 -163
- package/src/progress/Steps.tsx +0 -67
- package/src/progress/index.en-US.md +0 -56
- package/src/progress/index.ts +0 -6
- package/src/progress/index.zh-CN.md +0 -57
- package/src/progress/progress.tsx +0 -163
- package/src/progress/props.ts +0 -52
- package/src/progress/style/index.ts +0 -274
- package/src/progress/utils.ts +0 -97
- package/src/qrcode/QRCode.tsx +0 -354
- package/src/qrcode/index.en-US.md +0 -43
- package/src/qrcode/index.tsx +0 -117
- package/src/qrcode/index.zh-CN.md +0 -44
- package/src/qrcode/interface.ts +0 -51
- package/src/qrcode/qrcodegen.ts +0 -969
- package/src/qrcode/style/index.ts +0 -65
- package/src/radio/Group.tsx +0 -148
- package/src/radio/Radio.tsx +0 -127
- package/src/radio/RadioButton.tsx +0 -23
- package/src/radio/context.ts +0 -24
- package/src/radio/index.en-US.md +0 -54
- package/src/radio/index.ts +0 -27
- package/src/radio/index.zh-CN.md +0 -55
- package/src/radio/interface.ts +0 -33
- package/src/radio/style/index.tsx +0 -545
- package/src/rate/Star.tsx +0 -99
- package/src/rate/index.en-US.md +0 -44
- package/src/rate/index.tsx +0 -254
- package/src/rate/index.zh-CN.md +0 -45
- package/src/rate/style/index.ts +0 -135
- package/src/rate/util.ts +0 -40
- package/src/result/index.en-US.md +0 -23
- package/src/result/index.tsx +0 -122
- package/src/result/index.zh-CN.md +0 -24
- package/src/result/noFound.tsx +0 -289
- package/src/result/serverError.tsx +0 -331
- package/src/result/style/index.tsx +0 -157
- package/src/result/unauthorized.tsx +0 -280
- package/src/row/index.ts +0 -6
- package/src/row/style/index.ts +0 -4
- package/src/segmented/index.en-US.md +0 -50
- package/src/segmented/index.ts +0 -6
- package/src/segmented/index.zh-CN.md +0 -53
- package/src/segmented/src/MotionThumb.tsx +0 -162
- package/src/segmented/src/index.ts +0 -5
- package/src/segmented/src/segmented.tsx +0 -191
- package/src/segmented/style/index.ts +0 -216
- package/src/select/index.en-US.md +0 -128
- package/src/select/index.tsx +0 -318
- package/src/select/index.zh-CN.md +0 -128
- package/src/select/style/dropdown.ts +0 -166
- package/src/select/style/index.ts +0 -342
- package/src/select/style/multiple.ts +0 -239
- package/src/select/style/single.ts +0 -192
- package/src/select/utils/iconUtil.tsx +0 -63
- package/src/skeleton/Avatar.tsx +0 -49
- package/src/skeleton/Button.tsx +0 -50
- package/src/skeleton/Element.tsx +0 -43
- package/src/skeleton/Image.tsx +0 -43
- package/src/skeleton/Input.tsx +0 -48
- package/src/skeleton/Paragraph.tsx +0 -44
- package/src/skeleton/Skeleton.tsx +0 -174
- package/src/skeleton/Title.tsx +0 -24
- package/src/skeleton/index.en-US.md +0 -64
- package/src/skeleton/index.tsx +0 -42
- package/src/skeleton/index.zh-CN.md +0 -65
- package/src/skeleton/style/index.ts +0 -388
- package/src/slider/SliderTooltip.tsx +0 -50
- package/src/slider/index.en-US.md +0 -51
- package/src/slider/index.tsx +0 -256
- package/src/slider/index.zh-CN.md +0 -50
- package/src/slider/style/index.tsx +0 -346
- package/src/space/Compact.tsx +0 -136
- package/src/space/index.en-US.md +0 -46
- package/src/space/index.tsx +0 -162
- package/src/space/index.zh-CN.md +0 -52
- package/src/space/style/compact.tsx +0 -30
- package/src/space/style/index.tsx +0 -54
- package/src/spin/Spin.tsx +0 -133
- package/src/spin/index.en-US.md +0 -36
- package/src/spin/index.ts +0 -19
- package/src/spin/index.zh-CN.md +0 -37
- package/src/spin/style/index.ts +0 -241
- package/src/statistic/Countdown.tsx +0 -103
- package/src/statistic/Number.tsx +0 -54
- package/src/statistic/Statistic.tsx +0 -89
- package/src/statistic/index.en-US.md +0 -47
- package/src/statistic/index.ts +0 -21
- package/src/statistic/index.zh-CN.md +0 -48
- package/src/statistic/style/index.tsx +0 -69
- package/src/statistic/utils.ts +0 -69
- package/src/steps/index.en-US.md +0 -58
- package/src/steps/index.tsx +0 -170
- package/src/steps/index.zh-CN.md +0 -63
- package/src/steps/style/custom-icon.ts +0 -36
- package/src/steps/style/index.tsx +0 -408
- package/src/steps/style/inline.ts +0 -124
- package/src/steps/style/label-placement.ts +0 -56
- package/src/steps/style/nav.ts +0 -146
- package/src/steps/style/progress-dot.ts +0 -133
- package/src/steps/style/progress.ts +0 -60
- package/src/steps/style/rtl.ts +0 -47
- package/src/steps/style/small.ts +0 -68
- package/src/steps/style/vertical.ts +0 -72
- package/src/style/compact-item-vertical.ts +0 -57
- package/src/style/compact-item.ts +0 -102
- package/src/style/index.ts +0 -138
- package/src/style/motion/collapse.ts +0 -24
- package/src/style/motion/fade.ts +0 -49
- package/src/style/motion/index.ts +0 -77
- package/src/style/motion/motion.ts +0 -51
- package/src/style/motion/move.ts +0 -163
- package/src/style/motion/slide.ts +0 -166
- package/src/style/motion/zoom.ts +0 -230
- package/src/style/operationUnit.ts +0 -20
- package/src/style/placementArrow.ts +0 -257
- package/src/style/presetColor.tsx +0 -34
- package/src/style/reset.css +0 -253
- package/src/style/roundedArrow.ts +0 -71
- package/src/switch/index.en-US.md +0 -42
- package/src/switch/index.tsx +0 -209
- package/src/switch/index.zh-CN.md +0 -43
- package/src/switch/style/index.ts +0 -354
- package/src/table/Column.tsx +0 -18
- package/src/table/ColumnGroup.tsx +0 -16
- package/src/table/ExpandIcon.tsx +0 -41
- package/src/table/Table.tsx +0 -689
- package/src/table/context.ts +0 -45
- package/src/table/hooks/useColumns.tsx +0 -55
- package/src/table/hooks/useFilter/FilterDropdown.tsx +0 -576
- package/src/table/hooks/useFilter/FilterSearch.tsx +0 -41
- package/src/table/hooks/useFilter/FilterWrapper.tsx +0 -16
- package/src/table/hooks/useFilter/index.tsx +0 -300
- package/src/table/hooks/useLazyKVMap.ts +0 -51
- package/src/table/hooks/usePagination.ts +0 -92
- package/src/table/hooks/useSelection.tsx +0 -690
- package/src/table/hooks/useSorter.tsx +0 -450
- package/src/table/hooks/useTitleColumns.tsx +0 -30
- package/src/table/index.en-US.md +0 -306
- package/src/table/index.tsx +0 -56
- package/src/table/index.zh-CN.md +0 -313
- package/src/table/interface.tsx +0 -235
- package/src/table/style/bordered.ts +0 -159
- package/src/table/style/ellipsis.ts +0 -37
- package/src/table/style/empty.ts +0 -22
- package/src/table/style/expand.ts +0 -152
- package/src/table/style/filter.ts +0 -172
- package/src/table/style/fixed.ts +0 -132
- package/src/table/style/index.ts +0 -378
- package/src/table/style/pagination.ts +0 -39
- package/src/table/style/radius.ts +0 -57
- package/src/table/style/resize.ts +0 -52
- package/src/table/style/rtl.ts +0 -39
- package/src/table/style/selection.ts +0 -76
- package/src/table/style/size.ts +0 -68
- package/src/table/style/sorter.ts +0 -101
- package/src/table/style/sticky.ts +0 -59
- package/src/table/style/summary.ts +0 -29
- package/src/table/util.ts +0 -62
- package/src/tabs/index.en-US.md +0 -69
- package/src/tabs/index.ts +0 -21
- package/src/tabs/index.zh-CN.md +0 -71
- package/src/tabs/src/TabContext.ts +0 -35
- package/src/tabs/src/TabNavList/AddButton.tsx +0 -50
- package/src/tabs/src/TabNavList/OperationNode.tsx +0 -253
- package/src/tabs/src/TabNavList/TabNode.tsx +0 -140
- package/src/tabs/src/TabNavList/index.tsx +0 -581
- package/src/tabs/src/TabPanelList/TabPane.tsx +0 -81
- package/src/tabs/src/TabPanelList/index.tsx +0 -68
- package/src/tabs/src/Tabs.tsx +0 -387
- package/src/tabs/src/hooks/useOffsets.ts +0 -41
- package/src/tabs/src/hooks/useRaf.ts +0 -53
- package/src/tabs/src/hooks/useSyncState.ts +0 -21
- package/src/tabs/src/hooks/useTouchMove.ts +0 -141
- package/src/tabs/src/index.ts +0 -11
- package/src/tabs/src/interface.ts +0 -48
- package/src/tabs/style/index.ts +0 -906
- package/src/tabs/style/motion.ts +0 -46
- package/src/tag/CheckableTag.tsx +0 -56
- package/src/tag/index.en-US.md +0 -44
- package/src/tag/index.tsx +0 -175
- package/src/tag/index.zh-CN.md +0 -45
- package/src/tag/style/index.ts +0 -184
- package/src/theme/convertLegacyToken.ts +0 -1107
- package/src/theme/index.ts +0 -30
- package/src/theme/interface/alias.ts +0 -153
- package/src/theme/interface/components.ts +0 -121
- package/src/theme/interface/index.ts +0 -25
- package/src/theme/interface/maps/colors.ts +0 -438
- package/src/theme/interface/maps/font.ts +0 -49
- package/src/theme/interface/maps/index.ts +0 -34
- package/src/theme/interface/maps/size.ts +0 -68
- package/src/theme/interface/maps/style.ts +0 -38
- package/src/theme/interface/presetColors.ts +0 -25
- package/src/theme/interface/seeds.ts +0 -221
- package/src/theme/internal.ts +0 -145
- package/src/theme/themes/ColorMap.ts +0 -20
- package/src/theme/themes/compact/genCompactSizeMapToken.ts +0 -19
- package/src/theme/themes/compact/index.ts +0 -27
- package/src/theme/themes/dark/colorAlgorithm.ts +0 -9
- package/src/theme/themes/dark/colors.ts +0 -54
- package/src/theme/themes/dark/index.ts +0 -45
- package/src/theme/themes/default/colorAlgorithm.ts +0 -9
- package/src/theme/themes/default/colors.ts +0 -54
- package/src/theme/themes/default/index.ts +0 -49
- package/src/theme/themes/seed.ts +0 -79
- package/src/theme/themes/shared/genColorMapToken.ts +0 -93
- package/src/theme/themes/shared/genCommonMapToken.ts +0 -19
- package/src/theme/themes/shared/genControlHeight.ts +0 -13
- package/src/theme/themes/shared/genFontMapToken.ts +0 -33
- package/src/theme/themes/shared/genFontSizes.ts +0 -24
- package/src/theme/themes/shared/genRadius.ts +0 -59
- package/src/theme/themes/shared/genSizeMapToken.ts +0 -17
- package/src/theme/util/alias.ts +0 -202
- package/src/theme/util/genComponentStyleHook.ts +0 -110
- package/src/theme/util/getAlphaColor.ts +0 -29
- package/src/theme/util/statistic.ts +0 -71
- package/src/time-picker/date-fns.tsx +0 -27
- package/src/time-picker/dayjs.tsx +0 -30
- package/src/time-picker/index.en-US.md +0 -95
- package/src/time-picker/index.tsx +0 -9
- package/src/time-picker/index.zh-CN.md +0 -97
- package/src/time-picker/locale/ar_EG.ts +0 -7
- package/src/time-picker/locale/az_AZ.ts +0 -7
- package/src/time-picker/locale/bg_BG.ts +0 -7
- package/src/time-picker/locale/bn_BD.ts +0 -8
- package/src/time-picker/locale/by_BY.ts +0 -8
- package/src/time-picker/locale/ca_ES.ts +0 -7
- package/src/time-picker/locale/cs_CZ.ts +0 -7
- package/src/time-picker/locale/da_DK.ts +0 -8
- package/src/time-picker/locale/de_DE.ts +0 -7
- package/src/time-picker/locale/el_GR.ts +0 -7
- package/src/time-picker/locale/en_GB.ts +0 -7
- package/src/time-picker/locale/en_US.ts +0 -8
- package/src/time-picker/locale/es_ES.ts +0 -7
- package/src/time-picker/locale/et_EE.ts +0 -7
- package/src/time-picker/locale/fa_IR.ts +0 -8
- package/src/time-picker/locale/fi_FI.ts +0 -7
- package/src/time-picker/locale/fr_BE.ts +0 -7
- package/src/time-picker/locale/fr_CA.ts +0 -8
- package/src/time-picker/locale/fr_FR.ts +0 -8
- package/src/time-picker/locale/ga_IE.ts +0 -8
- package/src/time-picker/locale/gl_ES.ts +0 -7
- package/src/time-picker/locale/he_IL.ts +0 -7
- package/src/time-picker/locale/hi_IN.ts +0 -8
- package/src/time-picker/locale/hr_HR.ts +0 -8
- package/src/time-picker/locale/hu_HU.ts +0 -7
- package/src/time-picker/locale/id_ID.ts +0 -7
- package/src/time-picker/locale/is_IS.ts +0 -7
- package/src/time-picker/locale/it_IT.ts +0 -7
- package/src/time-picker/locale/ja_JP.ts +0 -8
- package/src/time-picker/locale/ka_GE.ts +0 -8
- package/src/time-picker/locale/kk_KZ.ts +0 -8
- package/src/time-picker/locale/km_KH.ts +0 -8
- package/src/time-picker/locale/kmr_IQ.ts +0 -7
- package/src/time-picker/locale/kn_IN.ts +0 -7
- package/src/time-picker/locale/ko_KR.ts +0 -8
- package/src/time-picker/locale/lt_LT.ts +0 -8
- package/src/time-picker/locale/lv_LV.ts +0 -7
- package/src/time-picker/locale/mk_MK.ts +0 -7
- package/src/time-picker/locale/ml_IN.ts +0 -8
- package/src/time-picker/locale/mn_MN.ts +0 -7
- package/src/time-picker/locale/ms_MY.ts +0 -7
- package/src/time-picker/locale/nb_NO.ts +0 -8
- package/src/time-picker/locale/nl_BE.ts +0 -8
- package/src/time-picker/locale/nl_NL.ts +0 -8
- package/src/time-picker/locale/pl_PL.ts +0 -7
- package/src/time-picker/locale/pt_BR.ts +0 -7
- package/src/time-picker/locale/pt_PT.ts +0 -7
- package/src/time-picker/locale/ro_RO.ts +0 -7
- package/src/time-picker/locale/ru_RU.ts +0 -9
- package/src/time-picker/locale/sk_SK.ts +0 -7
- package/src/time-picker/locale/sl_SI.ts +0 -7
- package/src/time-picker/locale/sr_RS.ts +0 -8
- package/src/time-picker/locale/sv_SE.ts +0 -7
- package/src/time-picker/locale/ta_IN.ts +0 -7
- package/src/time-picker/locale/th_TH.ts +0 -7
- package/src/time-picker/locale/tr_TR.ts +0 -8
- package/src/time-picker/locale/uk_UA.ts +0 -7
- package/src/time-picker/locale/ur_PK.ts +0 -8
- package/src/time-picker/locale/vi_VN.ts +0 -7
- package/src/time-picker/locale/zh_CN.ts +0 -8
- package/src/time-picker/locale/zh_TW.ts +0 -7
- package/src/time-picker/moment.tsx +0 -29
- package/src/time-picker/time-picker.tsx +0 -247
- package/src/timeline/Timeline.tsx +0 -116
- package/src/timeline/TimelineItem.tsx +0 -64
- package/src/timeline/index.en-US.md +0 -47
- package/src/timeline/index.tsx +0 -21
- package/src/timeline/index.zh-CN.md +0 -48
- package/src/timeline/style/index.tsx +0 -237
- package/src/tooltip/Tooltip.tsx +0 -322
- package/src/tooltip/abstractTooltipProps.ts +0 -61
- package/src/tooltip/index.en-US.md +0 -52
- package/src/tooltip/index.ts +0 -14
- package/src/tooltip/index.zh-CN.md +0 -53
- package/src/tooltip/style/index.ts +0 -158
- package/src/tooltip/util.ts +0 -23
- package/src/tour/index.en-US.md +0 -60
- package/src/tour/index.tsx +0 -92
- package/src/tour/index.zh-CN.md +0 -61
- package/src/tour/interface.ts +0 -43
- package/src/tour/panelRender.tsx +0 -152
- package/src/tour/style/index.ts +0 -251
- package/src/tour/useMergedType.ts +0 -39
- package/src/transfer/ListBody.tsx +0 -170
- package/src/transfer/ListItem.tsx +0 -97
- package/src/transfer/index.en-US.md +0 -104
- package/src/transfer/index.tsx +0 -455
- package/src/transfer/index.zh-CN.md +0 -105
- package/src/transfer/interface.ts +0 -8
- package/src/transfer/list.tsx +0 -424
- package/src/transfer/operation.tsx +0 -68
- package/src/transfer/search.tsx +0 -52
- package/src/transfer/style/index.tsx +0 -376
- package/src/tree/DirectoryTree.tsx +0 -309
- package/src/tree/Tree.tsx +0 -277
- package/src/tree/breakchange.md +0 -1
- package/src/tree/index.en-US.md +0 -93
- package/src/tree/index.tsx +0 -38
- package/src/tree/index.zh-CN.md +0 -94
- package/src/tree/style/index.ts +0 -482
- package/src/tree/utils/dictUtil.ts +0 -100
- package/src/tree/utils/dropIndicator.tsx +0 -33
- package/src/tree/utils/iconUtil.tsx +0 -67
- package/src/tree-select/index.en-US.md +0 -100
- package/src/tree-select/index.tsx +0 -364
- package/src/tree-select/index.zh-CN.md +0 -95
- package/src/tree-select/style/index.tsx +0 -75
- package/src/typography/Base.tsx +0 -626
- package/src/typography/Editable.tsx +0 -161
- package/src/typography/Link.tsx +0 -37
- package/src/typography/Paragraph.tsx +0 -24
- package/src/typography/Text.tsx +0 -45
- package/src/typography/Title.tsx +0 -40
- package/src/typography/Typography.tsx +0 -58
- package/src/typography/index.en-US.md +0 -146
- package/src/typography/index.tsx +0 -41
- package/src/typography/index.zh-CN.md +0 -147
- package/src/typography/style/index.tsx +0 -128
- package/src/typography/style/mixins.tsx +0 -262
- package/src/typography/util.tsx +0 -227
- package/src/upload/Dragger.tsx +0 -24
- package/src/upload/Upload.tsx +0 -458
- package/src/upload/UploadList/ListItem.tsx +0 -306
- package/src/upload/UploadList/index.tsx +0 -264
- package/src/upload/index.en-US.md +0 -139
- package/src/upload/index.tsx +0 -19
- package/src/upload/index.zh-CN.md +0 -140
- package/src/upload/interface.tsx +0 -195
- package/src/upload/style/dragger.ts +0 -76
- package/src/upload/style/index.ts +0 -66
- package/src/upload/style/list.ts +0 -129
- package/src/upload/style/motion.ts +0 -52
- package/src/upload/style/picture.ts +0 -228
- package/src/upload/style/rtl.ts +0 -15
- package/src/upload/utils.tsx +0 -124
- package/src/vc-align/Align.tsx +0 -209
- package/src/vc-align/hooks/useBuffer.tsx +0 -39
- package/src/vc-align/index.ts +0 -4
- package/src/vc-align/interface.ts +0 -60
- package/src/vc-align/util.ts +0 -61
- package/src/vc-cascader/Cascader.tsx +0 -585
- package/src/vc-cascader/OptionList/Checkbox.tsx +0 -44
- package/src/vc-cascader/OptionList/Column.tsx +0 -182
- package/src/vc-cascader/OptionList/index.tsx +0 -246
- package/src/vc-cascader/OptionList/useActive.ts +0 -32
- package/src/vc-cascader/OptionList/useKeyboard.ts +0 -194
- package/src/vc-cascader/context.ts +0 -37
- package/src/vc-cascader/hooks/useDisplayValues.ts +0 -64
- package/src/vc-cascader/hooks/useEntities.ts +0 -37
- package/src/vc-cascader/hooks/useMissingValues.ts +0 -27
- package/src/vc-cascader/hooks/useSearchConfig.ts +0 -41
- package/src/vc-cascader/hooks/useSearchOptions.ts +0 -78
- package/src/vc-cascader/index.tsx +0 -16
- package/src/vc-cascader/utils/commonUtil.ts +0 -51
- package/src/vc-cascader/utils/treeUtil.ts +0 -60
- package/src/vc-checkbox/Checkbox.tsx +0 -151
- package/src/vc-dialog/Content.tsx +0 -158
- package/src/vc-dialog/Dialog.tsx +0 -203
- package/src/vc-dialog/DialogWrap.tsx +0 -78
- package/src/vc-dialog/IDialogPropTypes.ts +0 -50
- package/src/vc-dialog/Mask.tsx +0 -25
- package/src/vc-dialog/index.ts +0 -7
- package/src/vc-dialog/util.ts +0 -46
- package/src/vc-drawer/index.ts +0 -4
- package/src/vc-drawer/src/DrawerChild.tsx +0 -258
- package/src/vc-drawer/src/DrawerWrapper.tsx +0 -101
- package/src/vc-drawer/src/IDrawerPropTypes.ts +0 -60
- package/src/vc-drawer/src/utils.ts +0 -112
- package/src/vc-dropdown/Dropdown.tsx +0 -145
- package/src/vc-dropdown/index.ts +0 -4
- package/src/vc-dropdown/placements.ts +0 -47
- package/src/vc-image/index.ts +0 -5
- package/src/vc-image/src/Image.tsx +0 -308
- package/src/vc-image/src/Preview.tsx +0 -422
- package/src/vc-image/src/PreviewGroup.tsx +0 -212
- package/src/vc-image/src/getFixScaleEleTransPosition.ts +0 -61
- package/src/vc-image/src/hooks/useFrameSetState.ts +0 -32
- package/src/vc-input/BaseInput.tsx +0 -153
- package/src/vc-input/Input.tsx +0 -255
- package/src/vc-input/inputProps.ts +0 -123
- package/src/vc-input/utils/commonUtils.ts +0 -105
- package/src/vc-input/utils/types.ts +0 -3
- package/src/vc-mentions/index.ts +0 -6
- package/src/vc-mentions/src/DropdownMenu.tsx +0 -86
- package/src/vc-mentions/src/KeywordTrigger.tsx +0 -102
- package/src/vc-mentions/src/Mentions.tsx +0 -306
- package/src/vc-mentions/src/MentionsContext.ts +0 -16
- package/src/vc-mentions/src/Option.tsx +0 -31
- package/src/vc-mentions/src/mentionsProps.ts +0 -52
- package/src/vc-mentions/src/util.ts +0 -124
- package/src/vc-notification/HookNotification.tsx +0 -231
- package/src/vc-notification/Notice.tsx +0 -139
- package/src/vc-notification/Notification.tsx +0 -279
- package/src/vc-notification/index.ts +0 -6
- package/src/vc-notification/useNotification.tsx +0 -182
- package/src/vc-overflow/Item.tsx +0 -100
- package/src/vc-overflow/Overflow.tsx +0 -376
- package/src/vc-overflow/RawItem.tsx +0 -54
- package/src/vc-overflow/context.ts +0 -49
- package/src/vc-overflow/index.ts +0 -6
- package/src/vc-pagination/KeyCode.ts +0 -14
- package/src/vc-pagination/Options.tsx +0 -172
- package/src/vc-pagination/Pager.tsx +0 -69
- package/src/vc-pagination/Pagination.tsx +0 -683
- package/src/vc-pagination/index.ts +0 -2
- package/src/vc-pagination/locale/ar_EG.ts +0 -15
- package/src/vc-pagination/locale/az_AZ.ts +0 -15
- package/src/vc-pagination/locale/bg_BG.ts +0 -15
- package/src/vc-pagination/locale/bn_BD.ts +0 -15
- package/src/vc-pagination/locale/by_BY.ts +0 -14
- package/src/vc-pagination/locale/ca_ES.ts +0 -15
- package/src/vc-pagination/locale/cs_CZ.ts +0 -15
- package/src/vc-pagination/locale/da_DK.ts +0 -15
- package/src/vc-pagination/locale/de_DE.ts +0 -15
- package/src/vc-pagination/locale/el_GR.ts +0 -15
- package/src/vc-pagination/locale/en_GB.ts +0 -15
- package/src/vc-pagination/locale/en_US.ts +0 -15
- package/src/vc-pagination/locale/es_ES.ts +0 -15
- package/src/vc-pagination/locale/et_EE.ts +0 -15
- package/src/vc-pagination/locale/fa_IR.ts +0 -15
- package/src/vc-pagination/locale/fi_FI.ts +0 -15
- package/src/vc-pagination/locale/fr_BE.ts +0 -15
- package/src/vc-pagination/locale/fr_CA.ts +0 -15
- package/src/vc-pagination/locale/fr_FR.ts +0 -15
- package/src/vc-pagination/locale/ga_IE.ts +0 -15
- package/src/vc-pagination/locale/gl_ES.ts +0 -15
- package/src/vc-pagination/locale/he_IL.ts +0 -15
- package/src/vc-pagination/locale/hi_IN.ts +0 -15
- package/src/vc-pagination/locale/hr_HR.ts +0 -15
- package/src/vc-pagination/locale/hu_HU.ts +0 -15
- package/src/vc-pagination/locale/id_ID.ts +0 -15
- package/src/vc-pagination/locale/is_IS.ts +0 -15
- package/src/vc-pagination/locale/it_IT.ts +0 -15
- package/src/vc-pagination/locale/ja_JP.ts +0 -15
- package/src/vc-pagination/locale/ka_GE.ts +0 -14
- package/src/vc-pagination/locale/kk_KZ.ts +0 -15
- package/src/vc-pagination/locale/km_KH.ts +0 -15
- package/src/vc-pagination/locale/kmr_IQ.ts +0 -15
- package/src/vc-pagination/locale/kn_IN.ts +0 -15
- package/src/vc-pagination/locale/ko_KR.ts +0 -15
- package/src/vc-pagination/locale/lt_LT.ts +0 -15
- package/src/vc-pagination/locale/lv_LV.ts +0 -15
- package/src/vc-pagination/locale/mk_MK.ts +0 -15
- package/src/vc-pagination/locale/ml_IN.ts +0 -15
- package/src/vc-pagination/locale/mm_MM.ts +0 -15
- package/src/vc-pagination/locale/mn_MN.ts +0 -15
- package/src/vc-pagination/locale/ms_MY.ts +0 -15
- package/src/vc-pagination/locale/nb_NO.ts +0 -14
- package/src/vc-pagination/locale/nl_BE.ts +0 -15
- package/src/vc-pagination/locale/nl_NL.ts +0 -15
- package/src/vc-pagination/locale/pa_IN.ts +0 -15
- package/src/vc-pagination/locale/pb_IN.ts +0 -15
- package/src/vc-pagination/locale/pl_PL.ts +0 -15
- package/src/vc-pagination/locale/pt_BR.ts +0 -15
- package/src/vc-pagination/locale/pt_PT.ts +0 -15
- package/src/vc-pagination/locale/ro_RO.ts +0 -15
- package/src/vc-pagination/locale/ru_RU.ts +0 -15
- package/src/vc-pagination/locale/sk_SK.ts +0 -15
- package/src/vc-pagination/locale/sl_SI.ts +0 -15
- package/src/vc-pagination/locale/sr_RS.ts +0 -14
- package/src/vc-pagination/locale/sv_SE.ts +0 -15
- package/src/vc-pagination/locale/ta_IN.ts +0 -15
- package/src/vc-pagination/locale/th_TH.ts +0 -15
- package/src/vc-pagination/locale/tr_TR.ts +0 -15
- package/src/vc-pagination/locale/ug_CN.ts +0 -14
- package/src/vc-pagination/locale/uk_UA.ts +0 -15
- package/src/vc-pagination/locale/ur_PK.ts +0 -15
- package/src/vc-pagination/locale/vi_VN.ts +0 -15
- package/src/vc-pagination/locale/zh_CN.ts +0 -15
- package/src/vc-pagination/locale/zh_TW.ts +0 -15
- package/src/vc-picker/PanelContext.tsx +0 -39
- package/src/vc-picker/Picker.tsx +0 -641
- package/src/vc-picker/PickerPanel.tsx +0 -609
- package/src/vc-picker/PickerTrigger.tsx +0 -104
- package/src/vc-picker/PresetPanel.tsx +0 -44
- package/src/vc-picker/RangeContext.tsx +0 -76
- package/src/vc-picker/RangePicker.tsx +0 -1324
- package/src/vc-picker/generate/dateFns.ts +0 -140
- package/src/vc-picker/generate/dayjs.ts +0 -250
- package/src/vc-picker/generate/index.ts +0 -52
- package/src/vc-picker/generate/moment.ts +0 -159
- package/src/vc-picker/hooks/useCellClassName.ts +0 -97
- package/src/vc-picker/hooks/useHoverValue.ts +0 -47
- package/src/vc-picker/hooks/useMergeProps.ts +0 -8
- package/src/vc-picker/hooks/usePickerInput.ts +0 -177
- package/src/vc-picker/hooks/usePresets.ts +0 -30
- package/src/vc-picker/hooks/useRangeDisabled.ts +0 -115
- package/src/vc-picker/hooks/useRangeViewDates.ts +0 -129
- package/src/vc-picker/hooks/useTextValueMapping.ts +0 -37
- package/src/vc-picker/hooks/useValueTexts.ts +0 -52
- package/src/vc-picker/index.tsx +0 -12
- package/src/vc-picker/interface.ts +0 -116
- package/src/vc-picker/locale/ar_EG.ts +0 -32
- package/src/vc-picker/locale/az_AZ.ts +0 -33
- package/src/vc-picker/locale/bg_BG.ts +0 -31
- package/src/vc-picker/locale/bn_BD.ts +0 -33
- package/src/vc-picker/locale/by_BY.ts +0 -33
- package/src/vc-picker/locale/ca_ES.ts +0 -32
- package/src/vc-picker/locale/cs_CZ.ts +0 -32
- package/src/vc-picker/locale/da_DK.ts +0 -32
- package/src/vc-picker/locale/de_DE.ts +0 -32
- package/src/vc-picker/locale/el_GR.ts +0 -32
- package/src/vc-picker/locale/en_GB.ts +0 -32
- package/src/vc-picker/locale/en_US.ts +0 -33
- package/src/vc-picker/locale/es_ES.ts +0 -32
- package/src/vc-picker/locale/es_MX.ts +0 -33
- package/src/vc-picker/locale/et_EE.ts +0 -32
- package/src/vc-picker/locale/fa_IR.ts +0 -32
- package/src/vc-picker/locale/fi_FI.ts +0 -32
- package/src/vc-picker/locale/fr_BE.ts +0 -32
- package/src/vc-picker/locale/fr_CA.ts +0 -32
- package/src/vc-picker/locale/fr_FR.ts +0 -32
- package/src/vc-picker/locale/ga_IE.ts +0 -33
- package/src/vc-picker/locale/gl_ES.ts +0 -32
- package/src/vc-picker/locale/he_IL.ts +0 -33
- package/src/vc-picker/locale/hi_IN.ts +0 -33
- package/src/vc-picker/locale/hr_HR.ts +0 -33
- package/src/vc-picker/locale/hu_HU.ts +0 -32
- package/src/vc-picker/locale/id_ID.ts +0 -33
- package/src/vc-picker/locale/is_IS.ts +0 -32
- package/src/vc-picker/locale/it_IT.ts +0 -32
- package/src/vc-picker/locale/ja_JP.ts +0 -32
- package/src/vc-picker/locale/ka_GE.ts +0 -33
- package/src/vc-picker/locale/kk_KZ.ts +0 -32
- package/src/vc-picker/locale/km_KH.ts +0 -32
- package/src/vc-picker/locale/kmr_IQ.ts +0 -32
- package/src/vc-picker/locale/kn_IN.ts +0 -33
- package/src/vc-picker/locale/ko_KR.ts +0 -32
- package/src/vc-picker/locale/lt_LT.ts +0 -32
- package/src/vc-picker/locale/lv_LV.ts +0 -32
- package/src/vc-picker/locale/mk_MK.ts +0 -32
- package/src/vc-picker/locale/ml_IN.ts +0 -33
- package/src/vc-picker/locale/mm_MM.ts +0 -33
- package/src/vc-picker/locale/mn_MN.ts +0 -33
- package/src/vc-picker/locale/ms_MY.ts +0 -32
- package/src/vc-picker/locale/nb_NO.ts +0 -33
- package/src/vc-picker/locale/nl_BE.ts +0 -32
- package/src/vc-picker/locale/nl_NL.ts +0 -32
- package/src/vc-picker/locale/pl_PL.ts +0 -32
- package/src/vc-picker/locale/pt_BR.ts +0 -34
- package/src/vc-picker/locale/pt_PT.ts +0 -34
- package/src/vc-picker/locale/ro_RO.ts +0 -33
- package/src/vc-picker/locale/ru_RU.ts +0 -32
- package/src/vc-picker/locale/sk_SK.ts +0 -32
- package/src/vc-picker/locale/sl_SI.ts +0 -32
- package/src/vc-picker/locale/sr_RS.ts +0 -32
- package/src/vc-picker/locale/sv_SE.ts +0 -32
- package/src/vc-picker/locale/ta_IN.ts +0 -33
- package/src/vc-picker/locale/th_TH.ts +0 -32
- package/src/vc-picker/locale/tr_TR.ts +0 -32
- package/src/vc-picker/locale/ug_CN.ts +0 -31
- package/src/vc-picker/locale/uk_UA.ts +0 -32
- package/src/vc-picker/locale/ur_PK.ts +0 -33
- package/src/vc-picker/locale/vi_VN.ts +0 -33
- package/src/vc-picker/locale/zh_CN.ts +0 -32
- package/src/vc-picker/locale/zh_TW.ts +0 -33
- package/src/vc-picker/panels/DatePanel/DateBody.tsx +0 -119
- package/src/vc-picker/panels/DatePanel/DateHeader.tsx +0 -106
- package/src/vc-picker/panels/DatePanel/index.tsx +0 -117
- package/src/vc-picker/panels/DatetimePanel/index.tsx +0 -167
- package/src/vc-picker/panels/DecadePanel/DecadeBody.tsx +0 -68
- package/src/vc-picker/panels/DecadePanel/DecadeHeader.tsx +0 -45
- package/src/vc-picker/panels/DecadePanel/index.tsx +0 -80
- package/src/vc-picker/panels/Header.tsx +0 -101
- package/src/vc-picker/panels/MonthPanel/MonthBody.tsx +0 -89
- package/src/vc-picker/panels/MonthPanel/MonthHeader.tsx +0 -50
- package/src/vc-picker/panels/MonthPanel/index.tsx +0 -83
- package/src/vc-picker/panels/PanelBody.tsx +0 -146
- package/src/vc-picker/panels/QuarterPanel/QuarterBody.tsx +0 -71
- package/src/vc-picker/panels/QuarterPanel/QuarterHeader.tsx +0 -49
- package/src/vc-picker/panels/QuarterPanel/index.tsx +0 -76
- package/src/vc-picker/panels/TimePanel/TimeBody.tsx +0 -315
- package/src/vc-picker/panels/TimePanel/TimeHeader.tsx +0 -42
- package/src/vc-picker/panels/TimePanel/TimeUnitColumn.tsx +0 -103
- package/src/vc-picker/panels/TimePanel/index.tsx +0 -111
- package/src/vc-picker/panels/WeekPanel/index.tsx +0 -44
- package/src/vc-picker/panels/YearPanel/YearBody.tsx +0 -78
- package/src/vc-picker/panels/YearPanel/YearHeader.tsx +0 -49
- package/src/vc-picker/panels/YearPanel/index.tsx +0 -85
- package/src/vc-picker/utils/dateUtil.ts +0 -320
- package/src/vc-picker/utils/getExtraFooter.tsx +0 -13
- package/src/vc-picker/utils/getRanges.tsx +0 -66
- package/src/vc-picker/utils/miscUtil.ts +0 -55
- package/src/vc-picker/utils/timeUtil.ts +0 -60
- package/src/vc-picker/utils/uiUtil.ts +0 -277
- package/src/vc-picker/utils/warnUtil.ts +0 -17
- package/src/vc-progress/index.ts +0 -9
- package/src/vc-progress/src/Circle.tsx +0 -178
- package/src/vc-progress/src/Line.tsx +0 -114
- package/src/vc-progress/src/common.ts +0 -44
- package/src/vc-progress/src/index.ts +0 -12
- package/src/vc-progress/src/types.ts +0 -30
- package/src/vc-resize-observer/index.tsx +0 -141
- package/src/vc-select/BaseSelect.tsx +0 -928
- package/src/vc-select/OptGroup.tsx +0 -15
- package/src/vc-select/Option.tsx +0 -18
- package/src/vc-select/OptionList.tsx +0 -391
- package/src/vc-select/Select.tsx +0 -658
- package/src/vc-select/SelectContext.ts +0 -36
- package/src/vc-select/SelectTrigger.tsx +0 -193
- package/src/vc-select/Selector/Input.tsx +0 -172
- package/src/vc-select/Selector/MultipleSelector.tsx +0 -302
- package/src/vc-select/Selector/SingleSelector.tsx +0 -187
- package/src/vc-select/Selector/index.tsx +0 -283
- package/src/vc-select/Selector/interface.ts +0 -27
- package/src/vc-select/TransBtn.tsx +0 -69
- package/src/vc-select/hooks/useBaseProps.ts +0 -24
- package/src/vc-select/hooks/useCache.ts +0 -56
- package/src/vc-select/hooks/useDelayReset.ts +0 -32
- package/src/vc-select/hooks/useFilterOptions.ts +0 -87
- package/src/vc-select/hooks/useId.ts +0 -31
- package/src/vc-select/hooks/useLock.ts +0 -29
- package/src/vc-select/hooks/useOptions.ts +0 -59
- package/src/vc-select/hooks/useSelectTriggerControl.ts +0 -32
- package/src/vc-select/index.ts +0 -13
- package/src/vc-select/interface.ts +0 -11
- package/src/vc-select/utils/commonUtil.ts +0 -12
- package/src/vc-select/utils/keyUtil.ts +0 -34
- package/src/vc-select/utils/legacyUtil.ts +0 -62
- package/src/vc-select/utils/platformUtil.ts +0 -4
- package/src/vc-select/utils/valueUtil.ts +0 -130
- package/src/vc-select/utils/warningPropsUtil.ts +0 -136
- package/src/vc-slick/arrows.jsx +0 -119
- package/src/vc-slick/default-props.js +0 -56
- package/src/vc-slick/dots.jsx +0 -86
- package/src/vc-slick/index.js +0 -4
- package/src/vc-slick/initial-state.js +0 -27
- package/src/vc-slick/inner-slider.jsx +0 -760
- package/src/vc-slick/slider.jsx +0 -198
- package/src/vc-slick/track.jsx +0 -190
- package/src/vc-slick/utils/innerSliderUtils.js +0 -785
- package/src/vc-slider/index.ts +0 -4
- package/src/vc-slider/src/Handle.tsx +0 -148
- package/src/vc-slider/src/Range.tsx +0 -527
- package/src/vc-slider/src/Slider.tsx +0 -226
- package/src/vc-slider/src/common/Marks.tsx +0 -75
- package/src/vc-slider/src/common/Steps.tsx +0 -76
- package/src/vc-slider/src/common/Track.tsx +0 -29
- package/src/vc-slider/src/common/createSlider.tsx +0 -368
- package/src/vc-slider/src/index.ts +0 -8
- package/src/vc-slider/src/utils.ts +0 -134
- package/src/vc-steps/Step.tsx +0 -201
- package/src/vc-steps/Steps.tsx +0 -146
- package/src/vc-steps/index.ts +0 -6
- package/src/vc-steps/interface.ts +0 -16
- package/src/vc-table/Body/BodyRow.tsx +0 -217
- package/src/vc-table/Body/ExpandedRow.tsx +0 -68
- package/src/vc-table/Body/MeasureCell.tsx +0 -35
- package/src/vc-table/Body/index.tsx +0 -146
- package/src/vc-table/Cell/index.tsx +0 -368
- package/src/vc-table/ColGroup.tsx +0 -38
- package/src/vc-table/FixedHolder/index.tsx +0 -191
- package/src/vc-table/Footer/Cell.tsx +0 -53
- package/src/vc-table/Footer/Row.tsx +0 -9
- package/src/vc-table/Footer/Summary.tsx +0 -27
- package/src/vc-table/Footer/index.tsx +0 -41
- package/src/vc-table/Header/DragHandle.tsx +0 -160
- package/src/vc-table/Header/Header.tsx +0 -128
- package/src/vc-table/Header/HeaderRow.tsx +0 -112
- package/src/vc-table/Panel/index.tsx +0 -7
- package/src/vc-table/Table.tsx +0 -865
- package/src/vc-table/constant.ts +0 -1
- package/src/vc-table/context/BodyContext.tsx +0 -41
- package/src/vc-table/context/ExpandedRowContext.tsx +0 -18
- package/src/vc-table/context/HoverContext.tsx +0 -21
- package/src/vc-table/context/ResizeContext.tsx +0 -18
- package/src/vc-table/context/StickyContext.tsx +0 -14
- package/src/vc-table/context/SummaryContext.tsx +0 -23
- package/src/vc-table/context/TableContext.tsx +0 -34
- package/src/vc-table/hooks/useColumns.tsx +0 -251
- package/src/vc-table/hooks/useFlattenRecords.ts +0 -90
- package/src/vc-table/hooks/useFrame.ts +0 -63
- package/src/vc-table/hooks/useSticky.ts +0 -41
- package/src/vc-table/hooks/useStickyOffsets.ts +0 -55
- package/src/vc-table/index.ts +0 -11
- package/src/vc-table/interface.ts +0 -257
- package/src/vc-table/stickyScrollBar.tsx +0 -241
- package/src/vc-table/sugar/Column.tsx +0 -14
- package/src/vc-table/sugar/ColumnGroup.tsx +0 -15
- package/src/vc-table/utils/expandUtil.tsx +0 -51
- package/src/vc-table/utils/fixUtil.ts +0 -69
- package/src/vc-table/utils/legacyUtil.ts +0 -59
- package/src/vc-table/utils/valueUtil.tsx +0 -89
- package/src/vc-tooltip/index.ts +0 -4
- package/src/vc-tooltip/src/Content.tsx +0 -30
- package/src/vc-tooltip/src/Tooltip.tsx +0 -137
- package/src/vc-tooltip/src/placements.ts +0 -83
- package/src/vc-tour/Mask.tsx +0 -132
- package/src/vc-tour/Tour.tsx +0 -259
- package/src/vc-tour/TourStep/DefaultPanel.tsx +0 -57
- package/src/vc-tour/TourStep/index.tsx +0 -27
- package/src/vc-tour/hooks/useTarget.ts +0 -101
- package/src/vc-tour/index.ts +0 -7
- package/src/vc-tour/interface.ts +0 -37
- package/src/vc-tour/placements.tsx +0 -79
- package/src/vc-tour/util.ts +0 -7
- package/src/vc-tree/DropIndicator.tsx +0 -34
- package/src/vc-tree/Indent.tsx +0 -31
- package/src/vc-tree/MotionTreeNode.tsx +0 -125
- package/src/vc-tree/NodeList.tsx +0 -304
- package/src/vc-tree/Tree.tsx +0 -1242
- package/src/vc-tree/TreeNode.tsx +0 -585
- package/src/vc-tree/contextTypes.ts +0 -149
- package/src/vc-tree/index.ts +0 -9
- package/src/vc-tree/interface.tsx +0 -102
- package/src/vc-tree/props.ts +0 -256
- package/src/vc-tree/useMaxLevel.ts +0 -39
- package/src/vc-tree/util.tsx +0 -352
- package/src/vc-tree/utils/conductUtil.ts +0 -241
- package/src/vc-tree/utils/diffUtil.ts +0 -45
- package/src/vc-tree/utils/treeUtil.ts +0 -458
- package/src/vc-tree-select/LegacyContext.tsx +0 -65
- package/src/vc-tree-select/OptionList.tsx +0 -263
- package/src/vc-tree-select/TreeNode.tsx +0 -15
- package/src/vc-tree-select/TreeSelect.tsx +0 -765
- package/src/vc-tree-select/TreeSelectContext.ts +0 -27
- package/src/vc-tree-select/hooks/useCache.ts +0 -44
- package/src/vc-tree-select/hooks/useCheckedKeys.ts +0 -39
- package/src/vc-tree-select/hooks/useDataEntities.ts +0 -42
- package/src/vc-tree-select/hooks/useFilterTreeData.ts +0 -64
- package/src/vc-tree-select/hooks/useTreeData.ts +0 -75
- package/src/vc-tree-select/index.tsx +0 -10
- package/src/vc-tree-select/interface.ts +0 -101
- package/src/vc-tree-select/utils/legacyUtil.tsx +0 -180
- package/src/vc-tree-select/utils/strategyUtil.ts +0 -48
- package/src/vc-tree-select/utils/valueUtil.ts +0 -50
- package/src/vc-tree-select/utils/warningPropsUtil.ts +0 -35
- package/src/vc-trigger/Popup/Mask.tsx +0 -38
- package/src/vc-trigger/Popup/MobilePopupInner.tsx +0 -60
- package/src/vc-trigger/Popup/PopupInner.tsx +0 -221
- package/src/vc-trigger/Popup/index.tsx +0 -57
- package/src/vc-trigger/Popup/interface.ts +0 -61
- package/src/vc-trigger/Popup/useStretchStyle.ts +0 -42
- package/src/vc-trigger/Popup/useVisibleStatus.ts +0 -98
- package/src/vc-trigger/Trigger.tsx +0 -716
- package/src/vc-trigger/context.ts +0 -38
- package/src/vc-trigger/index.ts +0 -8
- package/src/vc-trigger/interface.ts +0 -147
- package/src/vc-trigger/utils/alignUtil.ts +0 -40
- package/src/vc-trigger/utils/motionUtil.ts +0 -22
- package/src/vc-upload/AjaxUploader.tsx +0 -320
- package/src/vc-upload/Upload.tsx +0 -43
- package/src/vc-upload/attr-accept.ts +0 -53
- package/src/vc-upload/index.ts +0 -7
- package/src/vc-upload/interface.tsx +0 -83
- package/src/vc-upload/request.ts +0 -104
- package/src/vc-upload/traverseFileTree.ts +0 -73
- package/src/vc-upload/uid.ts +0 -6
- package/src/vc-util/Children/toArray.ts +0 -26
- package/src/vc-util/Dom/addEventListener.js +0 -22
- package/src/vc-util/Dom/class.js +0 -28
- package/src/vc-util/Dom/contains.ts +0 -12
- package/src/vc-util/Dom/css.ts +0 -133
- package/src/vc-util/Dom/dynamicCSS.ts +0 -153
- package/src/vc-util/Dom/isVisible.ts +0 -25
- package/src/vc-util/Dom/scrollLocker.ts +0 -130
- package/src/vc-util/devWarning.ts +0 -7
- package/src/vc-util/get.ts +0 -13
- package/src/vc-util/isEqual.ts +0 -52
- package/src/vc-util/isMobile.ts +0 -15
- package/src/vc-util/set.ts +0 -51
- package/src/vc-util/warning.ts +0 -40
- package/src/vc-virtual-list/Filler.tsx +0 -72
- package/src/vc-virtual-list/Item.tsx +0 -26
- package/src/vc-virtual-list/List.tsx +0 -549
- package/src/vc-virtual-list/ScrollBar.tsx +0 -266
- package/src/vc-virtual-list/hooks/useFrameWheel.ts +0 -62
- package/src/vc-virtual-list/hooks/useHeights.tsx +0 -67
- package/src/vc-virtual-list/hooks/useMobileTouchMove.ts +0 -85
- package/src/vc-virtual-list/hooks/useOriginScroll.ts +0 -33
- package/src/vc-virtual-list/hooks/useScrollTo.tsx +0 -113
- package/src/vc-virtual-list/index.ts +0 -4
- package/src/vc-virtual-list/interface.ts +0 -11
- package/src/vc-virtual-list/utils/algorithmUtil.js +0 -81
- package/src/vc-virtual-list/utils/isFirefox.ts +0 -3
- package/src/vc-virtual-list/utils/itemUtil.js +0 -147
- package/src/watermark/index.en-US.md +0 -42
- package/src/watermark/index.tsx +0 -260
- package/src/watermark/index.zh-CN.md +0 -43
- package/src/watermark/utils.ts +0 -43
|
@@ -1,1451 +0,0 @@
|
|
|
1
|
-
import { TinyColor } from '@ctrl/tinycolor'
|
|
2
|
-
|
|
3
|
-
import type { CSSObject } from '../../_util/cssinjs'
|
|
4
|
-
import type { InputToken } from '../../input/style'
|
|
5
|
-
import {
|
|
6
|
-
genActiveStyle,
|
|
7
|
-
genBasicInputStyle,
|
|
8
|
-
genHoverStyle,
|
|
9
|
-
initInputToken,
|
|
10
|
-
} from '../../input/style'
|
|
11
|
-
import { resetComponent, roundedArrow, textEllipsis } from '../../style'
|
|
12
|
-
import { genCompactItemStyle } from '../../style/compact-item'
|
|
13
|
-
import {
|
|
14
|
-
initMoveMotion,
|
|
15
|
-
initSlideMotion,
|
|
16
|
-
slideDownIn,
|
|
17
|
-
slideDownOut,
|
|
18
|
-
slideUpIn,
|
|
19
|
-
slideUpOut,
|
|
20
|
-
} from '../../style/motion'
|
|
21
|
-
import type { GlobalToken } from '../../theme/interface'
|
|
22
|
-
import type { FullToken, GenerateStyle } from '../../theme/internal'
|
|
23
|
-
import { genComponentStyleHook, mergeToken } from '../../theme/internal'
|
|
24
|
-
import type { TokenWithCommonCls } from '../../theme/util/genComponentStyleHook'
|
|
25
|
-
|
|
26
|
-
export interface ComponentToken {
|
|
27
|
-
presetsWidth: number
|
|
28
|
-
presetsMaxWidth: number
|
|
29
|
-
zIndexPopup: number
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface PickerPanelToken {
|
|
33
|
-
pickerCellCls: string
|
|
34
|
-
pickerCellInnerCls: string
|
|
35
|
-
pickerTextHeight: number
|
|
36
|
-
pickerPanelCellWidth: number
|
|
37
|
-
pickerPanelCellHeight: number
|
|
38
|
-
pickerDateHoverRangeBorderColor: string
|
|
39
|
-
pickerBasicCellHoverWithRangeColor: string
|
|
40
|
-
pickerPanelWithoutTimeCellHeight: number
|
|
41
|
-
pickerYearMonthCellWidth: number
|
|
42
|
-
pickerTimePanelColumnHeight: number
|
|
43
|
-
pickerTimePanelColumnWidth: number
|
|
44
|
-
pickerTimePanelCellHeight: number
|
|
45
|
-
pickerCellPaddingVertical: number
|
|
46
|
-
pickerQuarterPanelContentHeight: number
|
|
47
|
-
pickerCellBorderGap: number
|
|
48
|
-
pickerControlIconSize: number
|
|
49
|
-
pickerControlIconBorderWidth: number
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
type PickerToken = InputToken<FullToken<'DatePicker'>> & PickerPanelToken
|
|
53
|
-
|
|
54
|
-
type SharedPickerToken = Omit<PickerToken, 'zIndexPopup' | 'presetsWidth' | 'presetsMaxWidth'>
|
|
55
|
-
|
|
56
|
-
const genPikerPadding = (
|
|
57
|
-
token: PickerToken,
|
|
58
|
-
inputHeight: number,
|
|
59
|
-
fontSize: number,
|
|
60
|
-
paddingHorizontal: number,
|
|
61
|
-
): CSSObject => {
|
|
62
|
-
const { lineHeight } = token
|
|
63
|
-
|
|
64
|
-
const fontHeight = Math.floor(fontSize * lineHeight) + 2
|
|
65
|
-
const paddingTop = Math.max((inputHeight - fontHeight) / 2, 0)
|
|
66
|
-
const paddingBottom = Math.max(inputHeight - fontHeight - paddingTop, 0)
|
|
67
|
-
|
|
68
|
-
return {
|
|
69
|
-
padding: `${paddingTop}px ${paddingHorizontal}px ${paddingBottom}px`,
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
const genPickerCellInnerStyle = (token: SharedPickerToken): CSSObject => {
|
|
74
|
-
const {
|
|
75
|
-
componentCls,
|
|
76
|
-
pickerCellCls,
|
|
77
|
-
pickerCellInnerCls,
|
|
78
|
-
pickerPanelCellHeight,
|
|
79
|
-
motionDurationSlow,
|
|
80
|
-
borderRadiusSM,
|
|
81
|
-
motionDurationMid,
|
|
82
|
-
controlItemBgHover,
|
|
83
|
-
lineWidth,
|
|
84
|
-
lineType,
|
|
85
|
-
colorPrimary,
|
|
86
|
-
controlItemBgActive,
|
|
87
|
-
colorTextLightSolid,
|
|
88
|
-
controlHeightSM,
|
|
89
|
-
pickerDateHoverRangeBorderColor,
|
|
90
|
-
pickerCellBorderGap,
|
|
91
|
-
pickerBasicCellHoverWithRangeColor,
|
|
92
|
-
pickerPanelCellWidth,
|
|
93
|
-
colorTextDisabled,
|
|
94
|
-
colorBgContainerDisabled,
|
|
95
|
-
} = token
|
|
96
|
-
|
|
97
|
-
return {
|
|
98
|
-
'&::before': {
|
|
99
|
-
position: 'absolute',
|
|
100
|
-
top: '50%',
|
|
101
|
-
insetInlineStart: 0,
|
|
102
|
-
insetInlineEnd: 0,
|
|
103
|
-
zIndex: 1,
|
|
104
|
-
height: pickerPanelCellHeight,
|
|
105
|
-
transform: 'translateY(-50%)',
|
|
106
|
-
transition: `all ${motionDurationSlow}`,
|
|
107
|
-
content: '""',
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
// >>> Default
|
|
111
|
-
[pickerCellInnerCls]: {
|
|
112
|
-
position: 'relative',
|
|
113
|
-
zIndex: 2,
|
|
114
|
-
display: 'inline-block',
|
|
115
|
-
minWidth: pickerPanelCellHeight,
|
|
116
|
-
height: pickerPanelCellHeight,
|
|
117
|
-
lineHeight: `${pickerPanelCellHeight}px`,
|
|
118
|
-
borderRadius: borderRadiusSM,
|
|
119
|
-
transition: `background ${motionDurationMid}, border ${motionDurationMid}`,
|
|
120
|
-
},
|
|
121
|
-
|
|
122
|
-
// >>> Hover
|
|
123
|
-
[`&:hover:not(${pickerCellCls}-in-view),
|
|
124
|
-
&:hover:not(${pickerCellCls}-selected):not(${pickerCellCls}-range-start):not(${pickerCellCls}-range-end):not(${pickerCellCls}-range-hover-start):not(${pickerCellCls}-range-hover-end)`]:
|
|
125
|
-
{
|
|
126
|
-
[pickerCellInnerCls]: {
|
|
127
|
-
background: controlItemBgHover,
|
|
128
|
-
},
|
|
129
|
-
},
|
|
130
|
-
|
|
131
|
-
// >>> Today
|
|
132
|
-
[`&-in-view${pickerCellCls}-today ${pickerCellInnerCls}`]: {
|
|
133
|
-
'&::before': {
|
|
134
|
-
position: 'absolute',
|
|
135
|
-
top: 0,
|
|
136
|
-
insetInlineEnd: 0,
|
|
137
|
-
bottom: 0,
|
|
138
|
-
insetInlineStart: 0,
|
|
139
|
-
zIndex: 1,
|
|
140
|
-
border: `${lineWidth}px ${lineType} ${colorPrimary}`,
|
|
141
|
-
borderRadius: borderRadiusSM,
|
|
142
|
-
content: '""',
|
|
143
|
-
},
|
|
144
|
-
},
|
|
145
|
-
|
|
146
|
-
// >>> In Range
|
|
147
|
-
[`&-in-view${pickerCellCls}-in-range`]: {
|
|
148
|
-
position: 'relative',
|
|
149
|
-
|
|
150
|
-
'&::before': {
|
|
151
|
-
background: controlItemBgActive,
|
|
152
|
-
},
|
|
153
|
-
},
|
|
154
|
-
|
|
155
|
-
// >>> Selected
|
|
156
|
-
[`&-in-view${pickerCellCls}-selected ${pickerCellInnerCls},
|
|
157
|
-
&-in-view${pickerCellCls}-range-start ${pickerCellInnerCls},
|
|
158
|
-
&-in-view${pickerCellCls}-range-end ${pickerCellInnerCls}`]: {
|
|
159
|
-
color: colorTextLightSolid,
|
|
160
|
-
background: colorPrimary,
|
|
161
|
-
},
|
|
162
|
-
|
|
163
|
-
[`&-in-view${pickerCellCls}-range-start:not(${pickerCellCls}-range-start-single),
|
|
164
|
-
&-in-view${pickerCellCls}-range-end:not(${pickerCellCls}-range-end-single)`]: {
|
|
165
|
-
'&::before': {
|
|
166
|
-
background: controlItemBgActive,
|
|
167
|
-
},
|
|
168
|
-
},
|
|
169
|
-
|
|
170
|
-
[`&-in-view${pickerCellCls}-range-start::before`]: {
|
|
171
|
-
insetInlineStart: '50%',
|
|
172
|
-
},
|
|
173
|
-
|
|
174
|
-
[`&-in-view${pickerCellCls}-range-end::before`]: {
|
|
175
|
-
insetInlineEnd: '50%',
|
|
176
|
-
},
|
|
177
|
-
|
|
178
|
-
// >>> Range Hover
|
|
179
|
-
[`&-in-view${pickerCellCls}-range-hover-start:not(${pickerCellCls}-in-range):not(${pickerCellCls}-range-start):not(${pickerCellCls}-range-end),
|
|
180
|
-
&-in-view${pickerCellCls}-range-hover-end:not(${pickerCellCls}-in-range):not(${pickerCellCls}-range-start):not(${pickerCellCls}-range-end),
|
|
181
|
-
&-in-view${pickerCellCls}-range-hover-start${pickerCellCls}-range-start-single,
|
|
182
|
-
&-in-view${pickerCellCls}-range-hover-start${pickerCellCls}-range-start${pickerCellCls}-range-end${pickerCellCls}-range-end-near-hover,
|
|
183
|
-
&-in-view${pickerCellCls}-range-hover-end${pickerCellCls}-range-start${pickerCellCls}-range-end${pickerCellCls}-range-start-near-hover,
|
|
184
|
-
&-in-view${pickerCellCls}-range-hover-end${pickerCellCls}-range-end-single,
|
|
185
|
-
&-in-view${pickerCellCls}-range-hover:not(${pickerCellCls}-in-range)`]: {
|
|
186
|
-
'&::after': {
|
|
187
|
-
position: 'absolute',
|
|
188
|
-
top: '50%',
|
|
189
|
-
zIndex: 0,
|
|
190
|
-
height: controlHeightSM,
|
|
191
|
-
borderTop: `${lineWidth}px dashed ${pickerDateHoverRangeBorderColor}`,
|
|
192
|
-
borderBottom: `${lineWidth}px dashed ${pickerDateHoverRangeBorderColor}`,
|
|
193
|
-
transform: 'translateY(-50%)',
|
|
194
|
-
transition: `all ${motionDurationSlow}`,
|
|
195
|
-
content: '""',
|
|
196
|
-
},
|
|
197
|
-
},
|
|
198
|
-
|
|
199
|
-
// Add space for stash
|
|
200
|
-
[`&-range-hover-start::after,
|
|
201
|
-
&-range-hover-end::after,
|
|
202
|
-
&-range-hover::after`]: {
|
|
203
|
-
insetInlineEnd: 0,
|
|
204
|
-
insetInlineStart: pickerCellBorderGap,
|
|
205
|
-
},
|
|
206
|
-
|
|
207
|
-
// Hover with in range
|
|
208
|
-
[`&-in-view${pickerCellCls}-in-range${pickerCellCls}-range-hover::before,
|
|
209
|
-
&-in-view${pickerCellCls}-range-start${pickerCellCls}-range-hover::before,
|
|
210
|
-
&-in-view${pickerCellCls}-range-end${pickerCellCls}-range-hover::before,
|
|
211
|
-
&-in-view${pickerCellCls}-range-start:not(${pickerCellCls}-range-start-single)${pickerCellCls}-range-hover-start::before,
|
|
212
|
-
&-in-view${pickerCellCls}-range-end:not(${pickerCellCls}-range-end-single)${pickerCellCls}-range-hover-end::before,
|
|
213
|
-
${componentCls}-panel
|
|
214
|
-
> :not(${componentCls}-date-panel)
|
|
215
|
-
&-in-view${pickerCellCls}-in-range${pickerCellCls}-range-hover-start::before,
|
|
216
|
-
${componentCls}-panel
|
|
217
|
-
> :not(${componentCls}-date-panel)
|
|
218
|
-
&-in-view${pickerCellCls}-in-range${pickerCellCls}-range-hover-end::before`]: {
|
|
219
|
-
background: pickerBasicCellHoverWithRangeColor,
|
|
220
|
-
},
|
|
221
|
-
|
|
222
|
-
// range start border-radius
|
|
223
|
-
[`&-in-view${pickerCellCls}-range-start:not(${pickerCellCls}-range-start-single):not(${pickerCellCls}-range-end) ${pickerCellInnerCls}`]:
|
|
224
|
-
{
|
|
225
|
-
borderStartStartRadius: borderRadiusSM,
|
|
226
|
-
borderEndStartRadius: borderRadiusSM,
|
|
227
|
-
borderStartEndRadius: 0,
|
|
228
|
-
borderEndEndRadius: 0,
|
|
229
|
-
},
|
|
230
|
-
|
|
231
|
-
// range end border-radius
|
|
232
|
-
[`&-in-view${pickerCellCls}-range-end:not(${pickerCellCls}-range-end-single):not(${pickerCellCls}-range-start) ${pickerCellInnerCls}`]:
|
|
233
|
-
{
|
|
234
|
-
borderStartStartRadius: 0,
|
|
235
|
-
borderEndStartRadius: 0,
|
|
236
|
-
borderStartEndRadius: borderRadiusSM,
|
|
237
|
-
borderEndEndRadius: borderRadiusSM,
|
|
238
|
-
},
|
|
239
|
-
|
|
240
|
-
[`&-range-hover${pickerCellCls}-range-end::after`]: {
|
|
241
|
-
insetInlineStart: '50%',
|
|
242
|
-
},
|
|
243
|
-
|
|
244
|
-
// Edge start
|
|
245
|
-
[`tr > &-in-view${pickerCellCls}-range-hover:first-child::after,
|
|
246
|
-
tr > &-in-view${pickerCellCls}-range-hover-end:first-child::after,
|
|
247
|
-
&-in-view${pickerCellCls}-start${pickerCellCls}-range-hover-edge-start${pickerCellCls}-range-hover-edge-start-near-range::after,
|
|
248
|
-
&-in-view${pickerCellCls}-range-hover-edge-start:not(${pickerCellCls}-range-hover-edge-start-near-range)::after,
|
|
249
|
-
&-in-view${pickerCellCls}-range-hover-start::after`]: {
|
|
250
|
-
insetInlineStart: (pickerPanelCellWidth - pickerPanelCellHeight) / 2,
|
|
251
|
-
borderInlineStart: `${lineWidth}px dashed ${pickerDateHoverRangeBorderColor}`,
|
|
252
|
-
borderStartStartRadius: lineWidth,
|
|
253
|
-
borderEndStartRadius: lineWidth,
|
|
254
|
-
},
|
|
255
|
-
|
|
256
|
-
// Edge end
|
|
257
|
-
[`tr > &-in-view${pickerCellCls}-range-hover:last-child::after,
|
|
258
|
-
tr > &-in-view${pickerCellCls}-range-hover-start:last-child::after,
|
|
259
|
-
&-in-view${pickerCellCls}-end${pickerCellCls}-range-hover-edge-end${pickerCellCls}-range-hover-edge-end-near-range::after,
|
|
260
|
-
&-in-view${pickerCellCls}-range-hover-edge-end:not(${pickerCellCls}-range-hover-edge-end-near-range)::after,
|
|
261
|
-
&-in-view${pickerCellCls}-range-hover-end::after`]: {
|
|
262
|
-
insetInlineEnd: (pickerPanelCellWidth - pickerPanelCellHeight) / 2,
|
|
263
|
-
borderInlineEnd: `${lineWidth}px dashed ${pickerDateHoverRangeBorderColor}`,
|
|
264
|
-
borderStartEndRadius: lineWidth,
|
|
265
|
-
borderEndEndRadius: lineWidth,
|
|
266
|
-
},
|
|
267
|
-
|
|
268
|
-
// >>> Disabled
|
|
269
|
-
'&-disabled': {
|
|
270
|
-
color: colorTextDisabled,
|
|
271
|
-
pointerEvents: 'none',
|
|
272
|
-
|
|
273
|
-
[pickerCellInnerCls]: {
|
|
274
|
-
background: 'transparent',
|
|
275
|
-
},
|
|
276
|
-
|
|
277
|
-
'&::before': {
|
|
278
|
-
background: colorBgContainerDisabled,
|
|
279
|
-
},
|
|
280
|
-
},
|
|
281
|
-
[`&-disabled${pickerCellCls}-today ${pickerCellInnerCls}::before`]: {
|
|
282
|
-
borderColor: colorTextDisabled,
|
|
283
|
-
},
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
export const genPanelStyle = (token: SharedPickerToken): CSSObject => {
|
|
288
|
-
const {
|
|
289
|
-
componentCls,
|
|
290
|
-
pickerCellInnerCls,
|
|
291
|
-
pickerYearMonthCellWidth,
|
|
292
|
-
pickerControlIconSize,
|
|
293
|
-
pickerPanelCellWidth,
|
|
294
|
-
paddingSM,
|
|
295
|
-
paddingXS,
|
|
296
|
-
paddingXXS,
|
|
297
|
-
colorBgContainer,
|
|
298
|
-
lineWidth,
|
|
299
|
-
lineType,
|
|
300
|
-
borderRadiusLG,
|
|
301
|
-
colorPrimary,
|
|
302
|
-
colorTextHeading,
|
|
303
|
-
colorSplit,
|
|
304
|
-
pickerControlIconBorderWidth,
|
|
305
|
-
colorIcon,
|
|
306
|
-
pickerTextHeight,
|
|
307
|
-
motionDurationMid,
|
|
308
|
-
colorIconHover,
|
|
309
|
-
fontWeightStrong,
|
|
310
|
-
pickerPanelCellHeight,
|
|
311
|
-
pickerCellPaddingVertical,
|
|
312
|
-
colorTextDisabled,
|
|
313
|
-
colorText,
|
|
314
|
-
fontSize,
|
|
315
|
-
pickerBasicCellHoverWithRangeColor,
|
|
316
|
-
motionDurationSlow,
|
|
317
|
-
pickerPanelWithoutTimeCellHeight,
|
|
318
|
-
pickerQuarterPanelContentHeight,
|
|
319
|
-
colorLink,
|
|
320
|
-
colorLinkActive,
|
|
321
|
-
colorLinkHover,
|
|
322
|
-
pickerDateHoverRangeBorderColor,
|
|
323
|
-
borderRadiusSM,
|
|
324
|
-
colorTextLightSolid,
|
|
325
|
-
borderRadius,
|
|
326
|
-
controlItemBgHover,
|
|
327
|
-
pickerTimePanelColumnHeight,
|
|
328
|
-
pickerTimePanelColumnWidth,
|
|
329
|
-
pickerTimePanelCellHeight,
|
|
330
|
-
controlItemBgActive,
|
|
331
|
-
marginXXS,
|
|
332
|
-
} = token
|
|
333
|
-
|
|
334
|
-
const pickerPanelWidth = pickerPanelCellWidth * 7 + paddingSM * 2 + 4
|
|
335
|
-
|
|
336
|
-
const hoverCellFixedDistance =
|
|
337
|
-
(pickerPanelWidth - paddingXS * 2) / 3 - pickerYearMonthCellWidth - paddingSM
|
|
338
|
-
|
|
339
|
-
return {
|
|
340
|
-
[componentCls]: {
|
|
341
|
-
'&-panel': {
|
|
342
|
-
display: 'inline-flex',
|
|
343
|
-
flexDirection: 'column',
|
|
344
|
-
textAlign: 'center',
|
|
345
|
-
background: colorBgContainer,
|
|
346
|
-
border: `${lineWidth}px ${lineType} ${colorSplit}`,
|
|
347
|
-
borderRadius: borderRadiusLG,
|
|
348
|
-
outline: 'none',
|
|
349
|
-
|
|
350
|
-
'&-focused': {
|
|
351
|
-
borderColor: colorPrimary,
|
|
352
|
-
},
|
|
353
|
-
|
|
354
|
-
'&-rtl': {
|
|
355
|
-
direction: 'rtl',
|
|
356
|
-
|
|
357
|
-
[`${componentCls}-prev-icon,
|
|
358
|
-
${componentCls}-super-prev-icon`]: {
|
|
359
|
-
transform: 'rotate(45deg)',
|
|
360
|
-
},
|
|
361
|
-
|
|
362
|
-
[`${componentCls}-next-icon,
|
|
363
|
-
${componentCls}-super-next-icon`]: {
|
|
364
|
-
transform: 'rotate(-135deg)',
|
|
365
|
-
},
|
|
366
|
-
},
|
|
367
|
-
},
|
|
368
|
-
|
|
369
|
-
// ========================================================
|
|
370
|
-
// = Shared Panel =
|
|
371
|
-
// ========================================================
|
|
372
|
-
[`&-decade-panel,
|
|
373
|
-
&-year-panel,
|
|
374
|
-
&-quarter-panel,
|
|
375
|
-
&-month-panel,
|
|
376
|
-
&-week-panel,
|
|
377
|
-
&-date-panel,
|
|
378
|
-
&-time-panel`]: {
|
|
379
|
-
display: 'flex',
|
|
380
|
-
flexDirection: 'column',
|
|
381
|
-
width: pickerPanelWidth,
|
|
382
|
-
},
|
|
383
|
-
|
|
384
|
-
// ======================= Header =======================
|
|
385
|
-
'&-header': {
|
|
386
|
-
display: 'flex',
|
|
387
|
-
padding: `0 ${paddingXS}px`,
|
|
388
|
-
color: colorTextHeading,
|
|
389
|
-
borderBottom: `${lineWidth}px ${lineType} ${colorSplit}`,
|
|
390
|
-
|
|
391
|
-
'> *': {
|
|
392
|
-
flex: 'none',
|
|
393
|
-
},
|
|
394
|
-
|
|
395
|
-
button: {
|
|
396
|
-
padding: 0,
|
|
397
|
-
color: colorIcon,
|
|
398
|
-
lineHeight: `${pickerTextHeight}px`,
|
|
399
|
-
background: 'transparent',
|
|
400
|
-
border: 0,
|
|
401
|
-
cursor: 'pointer',
|
|
402
|
-
transition: `color ${motionDurationMid}`,
|
|
403
|
-
},
|
|
404
|
-
|
|
405
|
-
'> button': {
|
|
406
|
-
minWidth: '1.6em',
|
|
407
|
-
fontSize,
|
|
408
|
-
|
|
409
|
-
'&:hover': {
|
|
410
|
-
color: colorIconHover,
|
|
411
|
-
},
|
|
412
|
-
},
|
|
413
|
-
|
|
414
|
-
'&-view': {
|
|
415
|
-
flex: 'auto',
|
|
416
|
-
fontWeight: fontWeightStrong,
|
|
417
|
-
lineHeight: `${pickerTextHeight}px`,
|
|
418
|
-
|
|
419
|
-
button: {
|
|
420
|
-
color: 'inherit',
|
|
421
|
-
fontWeight: 'inherit',
|
|
422
|
-
verticalAlign: 'top',
|
|
423
|
-
|
|
424
|
-
'&:not(:first-child)': {
|
|
425
|
-
marginInlineStart: paddingXS,
|
|
426
|
-
},
|
|
427
|
-
|
|
428
|
-
'&:hover': {
|
|
429
|
-
color: colorPrimary,
|
|
430
|
-
},
|
|
431
|
-
},
|
|
432
|
-
},
|
|
433
|
-
},
|
|
434
|
-
// Arrow button
|
|
435
|
-
[`&-prev-icon,
|
|
436
|
-
&-next-icon,
|
|
437
|
-
&-super-prev-icon,
|
|
438
|
-
&-super-next-icon`]: {
|
|
439
|
-
position: 'relative',
|
|
440
|
-
display: 'inline-block',
|
|
441
|
-
width: pickerControlIconSize,
|
|
442
|
-
height: pickerControlIconSize,
|
|
443
|
-
|
|
444
|
-
'&::before': {
|
|
445
|
-
position: 'absolute',
|
|
446
|
-
top: 0,
|
|
447
|
-
insetInlineStart: 0,
|
|
448
|
-
display: 'inline-block',
|
|
449
|
-
width: pickerControlIconSize,
|
|
450
|
-
height: pickerControlIconSize,
|
|
451
|
-
border: `0 solid currentcolor`,
|
|
452
|
-
borderBlockStartWidth: pickerControlIconBorderWidth,
|
|
453
|
-
borderBlockEndWidth: 0,
|
|
454
|
-
borderInlineStartWidth: pickerControlIconBorderWidth,
|
|
455
|
-
borderInlineEndWidth: 0,
|
|
456
|
-
content: '""',
|
|
457
|
-
},
|
|
458
|
-
},
|
|
459
|
-
|
|
460
|
-
[`&-super-prev-icon,
|
|
461
|
-
&-super-next-icon`]: {
|
|
462
|
-
'&::after': {
|
|
463
|
-
position: 'absolute',
|
|
464
|
-
top: Math.ceil(pickerControlIconSize / 2),
|
|
465
|
-
insetInlineStart: Math.ceil(pickerControlIconSize / 2),
|
|
466
|
-
display: 'inline-block',
|
|
467
|
-
width: pickerControlIconSize,
|
|
468
|
-
height: pickerControlIconSize,
|
|
469
|
-
border: '0 solid currentcolor',
|
|
470
|
-
borderBlockStartWidth: pickerControlIconBorderWidth,
|
|
471
|
-
borderBlockEndWidth: 0,
|
|
472
|
-
borderInlineStartWidth: pickerControlIconBorderWidth,
|
|
473
|
-
borderInlineEndWidth: 0,
|
|
474
|
-
content: '""',
|
|
475
|
-
},
|
|
476
|
-
},
|
|
477
|
-
|
|
478
|
-
[`&-prev-icon,
|
|
479
|
-
&-super-prev-icon`]: {
|
|
480
|
-
transform: 'rotate(-45deg)',
|
|
481
|
-
},
|
|
482
|
-
|
|
483
|
-
[`&-next-icon,
|
|
484
|
-
&-super-next-icon`]: {
|
|
485
|
-
transform: 'rotate(135deg)',
|
|
486
|
-
},
|
|
487
|
-
|
|
488
|
-
// ======================== Body ========================
|
|
489
|
-
'&-content': {
|
|
490
|
-
width: '100%',
|
|
491
|
-
tableLayout: 'fixed',
|
|
492
|
-
borderCollapse: 'collapse',
|
|
493
|
-
|
|
494
|
-
'th, td': {
|
|
495
|
-
position: 'relative',
|
|
496
|
-
minWidth: pickerPanelCellHeight,
|
|
497
|
-
fontWeight: 'normal',
|
|
498
|
-
},
|
|
499
|
-
|
|
500
|
-
th: {
|
|
501
|
-
height: pickerPanelCellHeight + pickerCellPaddingVertical * 2,
|
|
502
|
-
color: colorText,
|
|
503
|
-
verticalAlign: 'middle',
|
|
504
|
-
},
|
|
505
|
-
},
|
|
506
|
-
|
|
507
|
-
'&-cell': {
|
|
508
|
-
padding: `${pickerCellPaddingVertical}px 0`,
|
|
509
|
-
color: colorTextDisabled,
|
|
510
|
-
cursor: 'pointer',
|
|
511
|
-
|
|
512
|
-
// In view
|
|
513
|
-
'&-in-view': {
|
|
514
|
-
color: colorText,
|
|
515
|
-
},
|
|
516
|
-
|
|
517
|
-
...genPickerCellInnerStyle(token),
|
|
518
|
-
},
|
|
519
|
-
|
|
520
|
-
// DatePanel only
|
|
521
|
-
[`&-date-panel ${componentCls}-cell-in-view${componentCls}-cell-in-range${componentCls}-cell-range-hover-start ${pickerCellInnerCls},
|
|
522
|
-
&-date-panel ${componentCls}-cell-in-view${componentCls}-cell-in-range${componentCls}-cell-range-hover-end ${pickerCellInnerCls}`]:
|
|
523
|
-
{
|
|
524
|
-
'&::after': {
|
|
525
|
-
position: 'absolute',
|
|
526
|
-
top: 0,
|
|
527
|
-
bottom: 0,
|
|
528
|
-
zIndex: -1,
|
|
529
|
-
background: pickerBasicCellHoverWithRangeColor,
|
|
530
|
-
transition: `all ${motionDurationSlow}`,
|
|
531
|
-
content: '""',
|
|
532
|
-
},
|
|
533
|
-
},
|
|
534
|
-
|
|
535
|
-
[`&-date-panel
|
|
536
|
-
${componentCls}-cell-in-view${componentCls}-cell-in-range${componentCls}-cell-range-hover-start
|
|
537
|
-
${pickerCellInnerCls}::after`]: {
|
|
538
|
-
insetInlineEnd: -(pickerPanelCellWidth - pickerPanelCellHeight) / 2,
|
|
539
|
-
insetInlineStart: 0,
|
|
540
|
-
},
|
|
541
|
-
|
|
542
|
-
[`&-date-panel ${componentCls}-cell-in-view${componentCls}-cell-in-range${componentCls}-cell-range-hover-end ${pickerCellInnerCls}::after`]:
|
|
543
|
-
{
|
|
544
|
-
insetInlineEnd: 0,
|
|
545
|
-
insetInlineStart: -(pickerPanelCellWidth - pickerPanelCellHeight) / 2,
|
|
546
|
-
},
|
|
547
|
-
|
|
548
|
-
// Hover with range start & end
|
|
549
|
-
[`&-range-hover${componentCls}-range-start::after`]: {
|
|
550
|
-
insetInlineEnd: '50%',
|
|
551
|
-
},
|
|
552
|
-
|
|
553
|
-
[`&-decade-panel,
|
|
554
|
-
&-year-panel,
|
|
555
|
-
&-quarter-panel,
|
|
556
|
-
&-month-panel`]: {
|
|
557
|
-
[`${componentCls}-content`]: {
|
|
558
|
-
height: pickerPanelWithoutTimeCellHeight * 4,
|
|
559
|
-
},
|
|
560
|
-
|
|
561
|
-
[pickerCellInnerCls]: {
|
|
562
|
-
padding: `0 ${paddingXS}px`,
|
|
563
|
-
},
|
|
564
|
-
},
|
|
565
|
-
|
|
566
|
-
'&-quarter-panel': {
|
|
567
|
-
[`${componentCls}-content`]: {
|
|
568
|
-
height: pickerQuarterPanelContentHeight,
|
|
569
|
-
},
|
|
570
|
-
},
|
|
571
|
-
|
|
572
|
-
// ======================== Footer ========================
|
|
573
|
-
[`&-panel ${componentCls}-footer`]: {
|
|
574
|
-
borderTop: `${lineWidth}px ${lineType} ${colorSplit}`,
|
|
575
|
-
},
|
|
576
|
-
|
|
577
|
-
'&-footer': {
|
|
578
|
-
width: 'min-content',
|
|
579
|
-
minWidth: '100%',
|
|
580
|
-
lineHeight: `${pickerTextHeight - 2 * lineWidth}px`,
|
|
581
|
-
textAlign: 'center',
|
|
582
|
-
|
|
583
|
-
'&-extra': {
|
|
584
|
-
padding: `0 ${paddingSM}`,
|
|
585
|
-
lineHeight: `${pickerTextHeight - 2 * lineWidth}px`,
|
|
586
|
-
textAlign: 'start',
|
|
587
|
-
|
|
588
|
-
'&:not(:last-child)': {
|
|
589
|
-
borderBottom: `${lineWidth}px ${lineType} ${colorSplit}`,
|
|
590
|
-
},
|
|
591
|
-
},
|
|
592
|
-
},
|
|
593
|
-
|
|
594
|
-
'&-now': {
|
|
595
|
-
textAlign: 'start',
|
|
596
|
-
},
|
|
597
|
-
|
|
598
|
-
'&-today-btn': {
|
|
599
|
-
color: colorLink,
|
|
600
|
-
|
|
601
|
-
'&:hover': {
|
|
602
|
-
color: colorLinkHover,
|
|
603
|
-
},
|
|
604
|
-
|
|
605
|
-
'&:active': {
|
|
606
|
-
color: colorLinkActive,
|
|
607
|
-
},
|
|
608
|
-
|
|
609
|
-
[`&${componentCls}-today-btn-disabled`]: {
|
|
610
|
-
color: colorTextDisabled,
|
|
611
|
-
cursor: 'not-allowed',
|
|
612
|
-
},
|
|
613
|
-
},
|
|
614
|
-
|
|
615
|
-
// ========================================================
|
|
616
|
-
// = Special =
|
|
617
|
-
// ========================================================
|
|
618
|
-
|
|
619
|
-
// ===================== Decade Panel =====================
|
|
620
|
-
'&-decade-panel': {
|
|
621
|
-
[pickerCellInnerCls]: {
|
|
622
|
-
padding: `0 ${paddingXS / 2}px`,
|
|
623
|
-
},
|
|
624
|
-
|
|
625
|
-
[`${componentCls}-cell::before`]: {
|
|
626
|
-
display: 'none',
|
|
627
|
-
},
|
|
628
|
-
},
|
|
629
|
-
|
|
630
|
-
// ============= Year & Quarter & Month Panel =============
|
|
631
|
-
[`&-year-panel,
|
|
632
|
-
&-quarter-panel,
|
|
633
|
-
&-month-panel`]: {
|
|
634
|
-
[`${componentCls}-body`]: {
|
|
635
|
-
padding: `0 ${paddingXS}px`,
|
|
636
|
-
},
|
|
637
|
-
|
|
638
|
-
[pickerCellInnerCls]: {
|
|
639
|
-
width: pickerYearMonthCellWidth,
|
|
640
|
-
},
|
|
641
|
-
|
|
642
|
-
[`${componentCls}-cell-range-hover-start::after`]: {
|
|
643
|
-
insetInlineStart: hoverCellFixedDistance,
|
|
644
|
-
borderInlineStart: `${lineWidth}px dashed ${pickerDateHoverRangeBorderColor}`,
|
|
645
|
-
borderStartStartRadius: borderRadiusSM,
|
|
646
|
-
borderBottomStartRadius: borderRadiusSM,
|
|
647
|
-
borderStartEndRadius: 0,
|
|
648
|
-
borderBottomEndRadius: 0,
|
|
649
|
-
|
|
650
|
-
[`${componentCls}-panel-rtl &`]: {
|
|
651
|
-
insetInlineEnd: hoverCellFixedDistance,
|
|
652
|
-
borderInlineEnd: `${lineWidth}px dashed ${pickerDateHoverRangeBorderColor}`,
|
|
653
|
-
borderStartStartRadius: 0,
|
|
654
|
-
borderBottomStartRadius: 0,
|
|
655
|
-
borderStartEndRadius: borderRadiusSM,
|
|
656
|
-
borderBottomEndRadius: borderRadiusSM,
|
|
657
|
-
},
|
|
658
|
-
},
|
|
659
|
-
[`${componentCls}-cell-range-hover-end::after`]: {
|
|
660
|
-
insetInlineEnd: hoverCellFixedDistance,
|
|
661
|
-
borderInlineEnd: `${lineWidth}px dashed ${pickerDateHoverRangeBorderColor}`,
|
|
662
|
-
borderStartStartRadius: 0,
|
|
663
|
-
borderEndStartRadius: 0,
|
|
664
|
-
borderStartEndRadius: borderRadius,
|
|
665
|
-
borderEndEndRadius: borderRadius,
|
|
666
|
-
|
|
667
|
-
[`${componentCls}-panel-rtl &`]: {
|
|
668
|
-
insetInlineStart: hoverCellFixedDistance,
|
|
669
|
-
borderInlineStart: `${lineWidth}px dashed ${pickerDateHoverRangeBorderColor}`,
|
|
670
|
-
borderStartStartRadius: borderRadius,
|
|
671
|
-
borderEndStartRadius: borderRadius,
|
|
672
|
-
borderStartEndRadius: 0,
|
|
673
|
-
borderEndEndRadius: 0,
|
|
674
|
-
},
|
|
675
|
-
},
|
|
676
|
-
},
|
|
677
|
-
|
|
678
|
-
// ====================== Week Panel ======================
|
|
679
|
-
'&-week-panel': {
|
|
680
|
-
[`${componentCls}-body`]: {
|
|
681
|
-
padding: `${paddingXS}px ${paddingSM}px`,
|
|
682
|
-
},
|
|
683
|
-
|
|
684
|
-
// Clear cell style
|
|
685
|
-
[`${componentCls}-cell`]: {
|
|
686
|
-
[`&:hover ${pickerCellInnerCls},
|
|
687
|
-
&-selected ${pickerCellInnerCls},
|
|
688
|
-
${pickerCellInnerCls}`]: {
|
|
689
|
-
background: 'transparent !important',
|
|
690
|
-
},
|
|
691
|
-
},
|
|
692
|
-
|
|
693
|
-
'&-row': {
|
|
694
|
-
td: {
|
|
695
|
-
transition: `background ${motionDurationMid}`,
|
|
696
|
-
|
|
697
|
-
'&:first-child': {
|
|
698
|
-
borderStartStartRadius: borderRadiusSM,
|
|
699
|
-
borderEndStartRadius: borderRadiusSM,
|
|
700
|
-
},
|
|
701
|
-
|
|
702
|
-
'&:last-child': {
|
|
703
|
-
borderStartEndRadius: borderRadiusSM,
|
|
704
|
-
borderEndEndRadius: borderRadiusSM,
|
|
705
|
-
},
|
|
706
|
-
},
|
|
707
|
-
|
|
708
|
-
'&:hover td': {
|
|
709
|
-
background: controlItemBgHover,
|
|
710
|
-
},
|
|
711
|
-
|
|
712
|
-
[`&-selected td,
|
|
713
|
-
&-selected:hover td`]: {
|
|
714
|
-
background: colorPrimary,
|
|
715
|
-
|
|
716
|
-
[`&${componentCls}-cell-week`]: {
|
|
717
|
-
color: new TinyColor(colorTextLightSolid).setAlpha(0.5).toHexString(),
|
|
718
|
-
},
|
|
719
|
-
|
|
720
|
-
[`&${componentCls}-cell-today ${pickerCellInnerCls}::before`]: {
|
|
721
|
-
borderColor: colorTextLightSolid,
|
|
722
|
-
},
|
|
723
|
-
|
|
724
|
-
[pickerCellInnerCls]: {
|
|
725
|
-
color: colorTextLightSolid,
|
|
726
|
-
},
|
|
727
|
-
},
|
|
728
|
-
},
|
|
729
|
-
},
|
|
730
|
-
|
|
731
|
-
// ====================== Date Panel ======================
|
|
732
|
-
'&-date-panel': {
|
|
733
|
-
[`${componentCls}-body`]: {
|
|
734
|
-
padding: `${paddingXS}px ${paddingSM}px`,
|
|
735
|
-
},
|
|
736
|
-
|
|
737
|
-
[`${componentCls}-content`]: {
|
|
738
|
-
width: pickerPanelCellWidth * 7,
|
|
739
|
-
|
|
740
|
-
th: {
|
|
741
|
-
width: pickerPanelCellWidth,
|
|
742
|
-
},
|
|
743
|
-
},
|
|
744
|
-
},
|
|
745
|
-
|
|
746
|
-
// ==================== Datetime Panel ====================
|
|
747
|
-
'&-datetime-panel': {
|
|
748
|
-
display: 'flex',
|
|
749
|
-
|
|
750
|
-
[`${componentCls}-time-panel`]: {
|
|
751
|
-
borderInlineStart: `${lineWidth}px ${lineType} ${colorSplit}`,
|
|
752
|
-
},
|
|
753
|
-
|
|
754
|
-
[`${componentCls}-date-panel,
|
|
755
|
-
${componentCls}-time-panel`]: {
|
|
756
|
-
transition: `opacity ${motionDurationSlow}`,
|
|
757
|
-
},
|
|
758
|
-
|
|
759
|
-
// Keyboard
|
|
760
|
-
'&-active': {
|
|
761
|
-
[`${componentCls}-date-panel,
|
|
762
|
-
${componentCls}-time-panel`]: {
|
|
763
|
-
opacity: 0.3,
|
|
764
|
-
|
|
765
|
-
'&-active': {
|
|
766
|
-
opacity: 1,
|
|
767
|
-
},
|
|
768
|
-
},
|
|
769
|
-
},
|
|
770
|
-
},
|
|
771
|
-
|
|
772
|
-
// ====================== Time Panel ======================
|
|
773
|
-
'&-time-panel': {
|
|
774
|
-
width: 'auto',
|
|
775
|
-
minWidth: 'auto',
|
|
776
|
-
direction: 'ltr',
|
|
777
|
-
|
|
778
|
-
[`${componentCls}-content`]: {
|
|
779
|
-
display: 'flex',
|
|
780
|
-
flex: 'auto',
|
|
781
|
-
height: pickerTimePanelColumnHeight,
|
|
782
|
-
},
|
|
783
|
-
|
|
784
|
-
'&-column': {
|
|
785
|
-
flex: '1 0 auto',
|
|
786
|
-
width: pickerTimePanelColumnWidth,
|
|
787
|
-
margin: `${paddingXXS}px 0`,
|
|
788
|
-
padding: 0,
|
|
789
|
-
overflowY: 'hidden',
|
|
790
|
-
textAlign: 'start',
|
|
791
|
-
listStyle: 'none',
|
|
792
|
-
transition: `background ${motionDurationMid}`,
|
|
793
|
-
overflowX: 'hidden',
|
|
794
|
-
|
|
795
|
-
'&::after': {
|
|
796
|
-
display: 'block',
|
|
797
|
-
height: pickerTimePanelColumnHeight - pickerTimePanelCellHeight,
|
|
798
|
-
content: '""',
|
|
799
|
-
},
|
|
800
|
-
|
|
801
|
-
'&:not(:first-child)': {
|
|
802
|
-
borderInlineStart: `${lineWidth}px ${lineType} ${colorSplit}`,
|
|
803
|
-
},
|
|
804
|
-
|
|
805
|
-
'&-active': {
|
|
806
|
-
background: new TinyColor(controlItemBgActive).setAlpha(0.2).toHexString(),
|
|
807
|
-
},
|
|
808
|
-
|
|
809
|
-
'&:hover': {
|
|
810
|
-
overflowY: 'auto',
|
|
811
|
-
},
|
|
812
|
-
|
|
813
|
-
'> li': {
|
|
814
|
-
margin: 0,
|
|
815
|
-
padding: 0,
|
|
816
|
-
|
|
817
|
-
[`&${componentCls}-time-panel-cell`]: {
|
|
818
|
-
marginInline: marginXXS,
|
|
819
|
-
[`${componentCls}-time-panel-cell-inner`]: {
|
|
820
|
-
display: 'block',
|
|
821
|
-
width: pickerTimePanelColumnWidth - 2 * marginXXS,
|
|
822
|
-
height: pickerTimePanelCellHeight,
|
|
823
|
-
margin: 0,
|
|
824
|
-
paddingBlock: 0,
|
|
825
|
-
paddingInlineEnd: 0,
|
|
826
|
-
paddingInlineStart: (pickerTimePanelColumnWidth - pickerTimePanelCellHeight) / 2,
|
|
827
|
-
color: colorText,
|
|
828
|
-
lineHeight: `${pickerTimePanelCellHeight}px`,
|
|
829
|
-
borderRadius: borderRadiusSM,
|
|
830
|
-
cursor: 'pointer',
|
|
831
|
-
transition: `background ${motionDurationMid}`,
|
|
832
|
-
|
|
833
|
-
'&:hover': {
|
|
834
|
-
background: controlItemBgHover,
|
|
835
|
-
},
|
|
836
|
-
},
|
|
837
|
-
|
|
838
|
-
'&-selected': {
|
|
839
|
-
[`${componentCls}-time-panel-cell-inner`]: {
|
|
840
|
-
background: controlItemBgActive,
|
|
841
|
-
},
|
|
842
|
-
},
|
|
843
|
-
|
|
844
|
-
'&-disabled': {
|
|
845
|
-
[`${componentCls}-time-panel-cell-inner`]: {
|
|
846
|
-
color: colorTextDisabled,
|
|
847
|
-
background: 'transparent',
|
|
848
|
-
cursor: 'not-allowed',
|
|
849
|
-
},
|
|
850
|
-
},
|
|
851
|
-
},
|
|
852
|
-
},
|
|
853
|
-
},
|
|
854
|
-
},
|
|
855
|
-
// https://github.com/ant-design/ant-design/issues/39227
|
|
856
|
-
[`&-datetime-panel ${componentCls}-time-panel-column:after`]: {
|
|
857
|
-
height: pickerTimePanelColumnHeight - pickerTimePanelCellHeight + paddingXXS * 2,
|
|
858
|
-
},
|
|
859
|
-
},
|
|
860
|
-
}
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
const genPickerStatusStyle: GenerateStyle<PickerToken> = (token) => {
|
|
864
|
-
const {
|
|
865
|
-
componentCls,
|
|
866
|
-
colorBgContainer,
|
|
867
|
-
colorError,
|
|
868
|
-
colorErrorOutline,
|
|
869
|
-
colorWarning,
|
|
870
|
-
colorWarningOutline,
|
|
871
|
-
} = token
|
|
872
|
-
|
|
873
|
-
return {
|
|
874
|
-
[componentCls]: {
|
|
875
|
-
[`&-status-error${componentCls}`]: {
|
|
876
|
-
'&, &:not([disabled]):hover': {
|
|
877
|
-
backgroundColor: colorBgContainer,
|
|
878
|
-
borderColor: colorError,
|
|
879
|
-
},
|
|
880
|
-
|
|
881
|
-
'&-focused, &:focus': {
|
|
882
|
-
...genActiveStyle(
|
|
883
|
-
mergeToken<PickerToken>(token, {
|
|
884
|
-
inputBorderActiveColor: colorError,
|
|
885
|
-
inputBorderHoverColor: colorError,
|
|
886
|
-
controlOutline: colorErrorOutline,
|
|
887
|
-
}),
|
|
888
|
-
),
|
|
889
|
-
},
|
|
890
|
-
|
|
891
|
-
[`${componentCls}-active-bar`]: {
|
|
892
|
-
background: colorError,
|
|
893
|
-
},
|
|
894
|
-
},
|
|
895
|
-
|
|
896
|
-
[`&-status-warning${componentCls}`]: {
|
|
897
|
-
'&, &:not([disabled]):hover': {
|
|
898
|
-
backgroundColor: colorBgContainer,
|
|
899
|
-
borderColor: colorWarning,
|
|
900
|
-
},
|
|
901
|
-
|
|
902
|
-
'&-focused, &:focus': {
|
|
903
|
-
...genActiveStyle(
|
|
904
|
-
mergeToken<PickerToken>(token, {
|
|
905
|
-
inputBorderActiveColor: colorWarning,
|
|
906
|
-
inputBorderHoverColor: colorWarning,
|
|
907
|
-
controlOutline: colorWarningOutline,
|
|
908
|
-
}),
|
|
909
|
-
),
|
|
910
|
-
},
|
|
911
|
-
|
|
912
|
-
[`${componentCls}-active-bar`]: {
|
|
913
|
-
background: colorWarning,
|
|
914
|
-
},
|
|
915
|
-
},
|
|
916
|
-
},
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
|
|
920
|
-
const genPickerStyle: GenerateStyle<PickerToken> = (token) => {
|
|
921
|
-
const {
|
|
922
|
-
componentCls,
|
|
923
|
-
antCls,
|
|
924
|
-
boxShadowPopoverArrow,
|
|
925
|
-
controlHeight,
|
|
926
|
-
fontSize,
|
|
927
|
-
inputPaddingHorizontal,
|
|
928
|
-
colorBgContainer,
|
|
929
|
-
lineWidth,
|
|
930
|
-
lineType,
|
|
931
|
-
colorBorder,
|
|
932
|
-
borderRadius,
|
|
933
|
-
motionDurationMid,
|
|
934
|
-
colorBgContainerDisabled,
|
|
935
|
-
colorTextDisabled,
|
|
936
|
-
colorTextPlaceholder,
|
|
937
|
-
controlHeightLG,
|
|
938
|
-
fontSizeLG,
|
|
939
|
-
controlHeightSM,
|
|
940
|
-
inputPaddingHorizontalSM,
|
|
941
|
-
paddingXS,
|
|
942
|
-
marginXS,
|
|
943
|
-
colorTextDescription,
|
|
944
|
-
lineWidthBold,
|
|
945
|
-
lineHeight,
|
|
946
|
-
colorPrimary,
|
|
947
|
-
motionDurationSlow,
|
|
948
|
-
zIndexPopup,
|
|
949
|
-
paddingXXS,
|
|
950
|
-
paddingSM,
|
|
951
|
-
pickerTextHeight,
|
|
952
|
-
controlItemBgActive,
|
|
953
|
-
colorPrimaryBorder,
|
|
954
|
-
sizePopupArrow,
|
|
955
|
-
borderRadiusXS,
|
|
956
|
-
borderRadiusOuter,
|
|
957
|
-
colorBgElevated,
|
|
958
|
-
borderRadiusLG,
|
|
959
|
-
boxShadowSecondary,
|
|
960
|
-
borderRadiusSM,
|
|
961
|
-
colorSplit,
|
|
962
|
-
controlItemBgHover,
|
|
963
|
-
presetsWidth,
|
|
964
|
-
presetsMaxWidth,
|
|
965
|
-
} = token
|
|
966
|
-
|
|
967
|
-
return [
|
|
968
|
-
{
|
|
969
|
-
[componentCls]: {
|
|
970
|
-
...resetComponent(token),
|
|
971
|
-
...genPikerPadding(token, controlHeight, fontSize, inputPaddingHorizontal),
|
|
972
|
-
position: 'relative',
|
|
973
|
-
display: 'inline-flex',
|
|
974
|
-
alignItems: 'center',
|
|
975
|
-
background: colorBgContainer,
|
|
976
|
-
lineHeight: 1,
|
|
977
|
-
border: `${lineWidth}px ${lineType} ${colorBorder}`,
|
|
978
|
-
borderRadius,
|
|
979
|
-
transition: `border ${motionDurationMid}, box-shadow ${motionDurationMid}`,
|
|
980
|
-
|
|
981
|
-
'&:hover, &-focused': {
|
|
982
|
-
...genHoverStyle(token),
|
|
983
|
-
},
|
|
984
|
-
|
|
985
|
-
'&-focused': {
|
|
986
|
-
...genActiveStyle(token),
|
|
987
|
-
},
|
|
988
|
-
|
|
989
|
-
[`&${componentCls}-disabled`]: {
|
|
990
|
-
background: colorBgContainerDisabled,
|
|
991
|
-
borderColor: colorBorder,
|
|
992
|
-
cursor: 'not-allowed',
|
|
993
|
-
|
|
994
|
-
[`${componentCls}-suffix`]: {
|
|
995
|
-
color: colorTextDisabled,
|
|
996
|
-
},
|
|
997
|
-
},
|
|
998
|
-
|
|
999
|
-
[`&${componentCls}-borderless`]: {
|
|
1000
|
-
backgroundColor: 'transparent !important',
|
|
1001
|
-
borderColor: 'transparent !important',
|
|
1002
|
-
boxShadow: 'none !important',
|
|
1003
|
-
},
|
|
1004
|
-
|
|
1005
|
-
// ======================== Input =========================
|
|
1006
|
-
[`${componentCls}-input`]: {
|
|
1007
|
-
position: 'relative',
|
|
1008
|
-
display: 'inline-flex',
|
|
1009
|
-
alignItems: 'center',
|
|
1010
|
-
width: '100%',
|
|
1011
|
-
|
|
1012
|
-
'> input': {
|
|
1013
|
-
...genBasicInputStyle(token),
|
|
1014
|
-
flex: 'auto',
|
|
1015
|
-
|
|
1016
|
-
// Fix Firefox flex not correct:
|
|
1017
|
-
// https://github.com/ant-design/ant-design/pull/20023#issuecomment-564389553
|
|
1018
|
-
minWidth: 1,
|
|
1019
|
-
height: 'auto',
|
|
1020
|
-
padding: 0,
|
|
1021
|
-
background: 'transparent',
|
|
1022
|
-
border: 0,
|
|
1023
|
-
|
|
1024
|
-
'&:focus': {
|
|
1025
|
-
boxShadow: 'none',
|
|
1026
|
-
},
|
|
1027
|
-
|
|
1028
|
-
'&[disabled]': {
|
|
1029
|
-
background: 'transparent',
|
|
1030
|
-
},
|
|
1031
|
-
},
|
|
1032
|
-
|
|
1033
|
-
'&:hover': {
|
|
1034
|
-
[`${componentCls}-clear`]: {
|
|
1035
|
-
opacity: 1,
|
|
1036
|
-
},
|
|
1037
|
-
},
|
|
1038
|
-
|
|
1039
|
-
'&-placeholder': {
|
|
1040
|
-
'> input': {
|
|
1041
|
-
color: colorTextPlaceholder,
|
|
1042
|
-
},
|
|
1043
|
-
},
|
|
1044
|
-
},
|
|
1045
|
-
|
|
1046
|
-
// Size
|
|
1047
|
-
'&-large': {
|
|
1048
|
-
...genPikerPadding(token, controlHeightLG, fontSizeLG, inputPaddingHorizontal),
|
|
1049
|
-
|
|
1050
|
-
[`${componentCls}-input > input`]: {
|
|
1051
|
-
fontSize: fontSizeLG,
|
|
1052
|
-
},
|
|
1053
|
-
},
|
|
1054
|
-
|
|
1055
|
-
'&-small': {
|
|
1056
|
-
...genPikerPadding(token, controlHeightSM, fontSize, inputPaddingHorizontalSM),
|
|
1057
|
-
},
|
|
1058
|
-
|
|
1059
|
-
[`${componentCls}-suffix`]: {
|
|
1060
|
-
display: 'flex',
|
|
1061
|
-
flex: 'none',
|
|
1062
|
-
alignSelf: 'center',
|
|
1063
|
-
marginInlineStart: paddingXS / 2,
|
|
1064
|
-
color: colorTextDisabled,
|
|
1065
|
-
lineHeight: 1,
|
|
1066
|
-
pointerEvents: 'none',
|
|
1067
|
-
|
|
1068
|
-
'> *': {
|
|
1069
|
-
verticalAlign: 'top',
|
|
1070
|
-
|
|
1071
|
-
'&:not(:last-child)': {
|
|
1072
|
-
marginInlineEnd: marginXS,
|
|
1073
|
-
},
|
|
1074
|
-
},
|
|
1075
|
-
},
|
|
1076
|
-
|
|
1077
|
-
[`${componentCls}-clear`]: {
|
|
1078
|
-
position: 'absolute',
|
|
1079
|
-
top: '50%',
|
|
1080
|
-
insetInlineEnd: 0,
|
|
1081
|
-
color: colorTextDisabled,
|
|
1082
|
-
lineHeight: 1,
|
|
1083
|
-
background: colorBgContainer,
|
|
1084
|
-
transform: 'translateY(-50%)',
|
|
1085
|
-
cursor: 'pointer',
|
|
1086
|
-
opacity: 0,
|
|
1087
|
-
transition: `opacity ${motionDurationMid}, color ${motionDurationMid}`,
|
|
1088
|
-
|
|
1089
|
-
'> *': {
|
|
1090
|
-
verticalAlign: 'top',
|
|
1091
|
-
},
|
|
1092
|
-
|
|
1093
|
-
'&:hover': {
|
|
1094
|
-
color: colorTextDescription,
|
|
1095
|
-
},
|
|
1096
|
-
},
|
|
1097
|
-
|
|
1098
|
-
[`${componentCls}-separator`]: {
|
|
1099
|
-
position: 'relative',
|
|
1100
|
-
display: 'inline-block',
|
|
1101
|
-
width: '1em',
|
|
1102
|
-
height: fontSizeLG,
|
|
1103
|
-
color: colorTextDisabled,
|
|
1104
|
-
fontSize: fontSizeLG,
|
|
1105
|
-
verticalAlign: 'top',
|
|
1106
|
-
cursor: 'default',
|
|
1107
|
-
|
|
1108
|
-
[`${componentCls}-focused &`]: {
|
|
1109
|
-
color: colorTextDescription,
|
|
1110
|
-
},
|
|
1111
|
-
|
|
1112
|
-
[`${componentCls}-range-separator &`]: {
|
|
1113
|
-
[`${componentCls}-disabled &`]: {
|
|
1114
|
-
cursor: 'not-allowed',
|
|
1115
|
-
},
|
|
1116
|
-
},
|
|
1117
|
-
},
|
|
1118
|
-
|
|
1119
|
-
// ======================== Range =========================
|
|
1120
|
-
'&-range': {
|
|
1121
|
-
position: 'relative',
|
|
1122
|
-
display: 'inline-flex',
|
|
1123
|
-
|
|
1124
|
-
// Clear
|
|
1125
|
-
[`${componentCls}-clear`]: {
|
|
1126
|
-
insetInlineEnd: inputPaddingHorizontal,
|
|
1127
|
-
},
|
|
1128
|
-
|
|
1129
|
-
'&:hover': {
|
|
1130
|
-
[`${componentCls}-clear`]: {
|
|
1131
|
-
opacity: 1,
|
|
1132
|
-
},
|
|
1133
|
-
},
|
|
1134
|
-
|
|
1135
|
-
// Active bar
|
|
1136
|
-
[`${componentCls}-active-bar`]: {
|
|
1137
|
-
bottom: -lineWidth,
|
|
1138
|
-
height: lineWidthBold,
|
|
1139
|
-
marginInlineStart: inputPaddingHorizontal,
|
|
1140
|
-
background: colorPrimary,
|
|
1141
|
-
opacity: 0,
|
|
1142
|
-
transition: `all ${motionDurationSlow} ease-out`,
|
|
1143
|
-
pointerEvents: 'none',
|
|
1144
|
-
},
|
|
1145
|
-
|
|
1146
|
-
[`&${componentCls}-focused`]: {
|
|
1147
|
-
[`${componentCls}-active-bar`]: {
|
|
1148
|
-
opacity: 1,
|
|
1149
|
-
},
|
|
1150
|
-
},
|
|
1151
|
-
|
|
1152
|
-
[`${componentCls}-range-separator`]: {
|
|
1153
|
-
alignItems: 'center',
|
|
1154
|
-
padding: `0 ${paddingXS}px`,
|
|
1155
|
-
lineHeight: 1,
|
|
1156
|
-
},
|
|
1157
|
-
|
|
1158
|
-
[`&${componentCls}-small`]: {
|
|
1159
|
-
[`${componentCls}-clear`]: {
|
|
1160
|
-
insetInlineEnd: inputPaddingHorizontalSM,
|
|
1161
|
-
},
|
|
1162
|
-
|
|
1163
|
-
[`${componentCls}-active-bar`]: {
|
|
1164
|
-
marginInlineStart: inputPaddingHorizontalSM,
|
|
1165
|
-
},
|
|
1166
|
-
},
|
|
1167
|
-
},
|
|
1168
|
-
|
|
1169
|
-
// ======================= Dropdown =======================
|
|
1170
|
-
'&-dropdown': {
|
|
1171
|
-
...resetComponent(token),
|
|
1172
|
-
...genPanelStyle(token),
|
|
1173
|
-
position: 'absolute',
|
|
1174
|
-
// Fix incorrect position of picker popup
|
|
1175
|
-
// https://github.com/ant-design/ant-design/issues/35590
|
|
1176
|
-
top: -9999,
|
|
1177
|
-
left: {
|
|
1178
|
-
_skip_check_: true,
|
|
1179
|
-
value: -9999,
|
|
1180
|
-
},
|
|
1181
|
-
zIndex: zIndexPopup,
|
|
1182
|
-
|
|
1183
|
-
[`&${componentCls}-dropdown-hidden`]: {
|
|
1184
|
-
display: 'none',
|
|
1185
|
-
},
|
|
1186
|
-
|
|
1187
|
-
[`&${componentCls}-dropdown-placement-bottomLeft`]: {
|
|
1188
|
-
[`${componentCls}-range-arrow`]: {
|
|
1189
|
-
top: 0,
|
|
1190
|
-
display: 'block',
|
|
1191
|
-
transform: 'translateY(-100%)',
|
|
1192
|
-
},
|
|
1193
|
-
},
|
|
1194
|
-
|
|
1195
|
-
[`&${componentCls}-dropdown-placement-topLeft`]: {
|
|
1196
|
-
[`${componentCls}-range-arrow`]: {
|
|
1197
|
-
bottom: 0,
|
|
1198
|
-
display: 'block',
|
|
1199
|
-
transform: 'translateY(100%) rotate(180deg)',
|
|
1200
|
-
},
|
|
1201
|
-
},
|
|
1202
|
-
|
|
1203
|
-
[`&${antCls}-slide-up-enter${antCls}-slide-up-enter-active${componentCls}-dropdown-placement-topLeft,
|
|
1204
|
-
&${antCls}-slide-up-enter${antCls}-slide-up-enter-active${componentCls}-dropdown-placement-topRight,
|
|
1205
|
-
&${antCls}-slide-up-appear${antCls}-slide-up-appear-active${componentCls}-dropdown-placement-topLeft,
|
|
1206
|
-
&${antCls}-slide-up-appear${antCls}-slide-up-appear-active${componentCls}-dropdown-placement-topRight`]:
|
|
1207
|
-
{
|
|
1208
|
-
animationName: slideDownIn,
|
|
1209
|
-
},
|
|
1210
|
-
|
|
1211
|
-
[`&${antCls}-slide-up-enter${antCls}-slide-up-enter-active${componentCls}-dropdown-placement-bottomLeft,
|
|
1212
|
-
&${antCls}-slide-up-enter${antCls}-slide-up-enter-active${componentCls}-dropdown-placement-bottomRight,
|
|
1213
|
-
&${antCls}-slide-up-appear${antCls}-slide-up-appear-active${componentCls}-dropdown-placement-bottomLeft,
|
|
1214
|
-
&${antCls}-slide-up-appear${antCls}-slide-up-appear-active${componentCls}-dropdown-placement-bottomRight`]:
|
|
1215
|
-
{
|
|
1216
|
-
animationName: slideUpIn,
|
|
1217
|
-
},
|
|
1218
|
-
|
|
1219
|
-
[`&${antCls}-slide-up-leave${antCls}-slide-up-leave-active${componentCls}-dropdown-placement-topLeft,
|
|
1220
|
-
&${antCls}-slide-up-leave${antCls}-slide-up-leave-active${componentCls}-dropdown-placement-topRight`]:
|
|
1221
|
-
{
|
|
1222
|
-
animationName: slideDownOut,
|
|
1223
|
-
},
|
|
1224
|
-
|
|
1225
|
-
[`&${antCls}-slide-up-leave${antCls}-slide-up-leave-active${componentCls}-dropdown-placement-bottomLeft,
|
|
1226
|
-
&${antCls}-slide-up-leave${antCls}-slide-up-leave-active${componentCls}-dropdown-placement-bottomRight`]:
|
|
1227
|
-
{
|
|
1228
|
-
animationName: slideUpOut,
|
|
1229
|
-
},
|
|
1230
|
-
|
|
1231
|
-
// Time picker with additional style
|
|
1232
|
-
[`${componentCls}-panel > ${componentCls}-time-panel`]: {
|
|
1233
|
-
paddingTop: paddingXXS,
|
|
1234
|
-
},
|
|
1235
|
-
|
|
1236
|
-
// ======================== Ranges ========================
|
|
1237
|
-
[`${componentCls}-ranges`]: {
|
|
1238
|
-
marginBottom: 0,
|
|
1239
|
-
padding: `${paddingXXS}px ${paddingSM}px`,
|
|
1240
|
-
overflow: 'hidden',
|
|
1241
|
-
lineHeight: `${pickerTextHeight - 2 * lineWidth - paddingXS / 2}px`,
|
|
1242
|
-
textAlign: 'start',
|
|
1243
|
-
listStyle: 'none',
|
|
1244
|
-
display: 'flex',
|
|
1245
|
-
justifyContent: 'space-between',
|
|
1246
|
-
|
|
1247
|
-
'> li': {
|
|
1248
|
-
display: 'inline-block',
|
|
1249
|
-
},
|
|
1250
|
-
|
|
1251
|
-
// https://github.com/ant-design/ant-design/issues/23687
|
|
1252
|
-
[`${componentCls}-preset > ${antCls}-tag-blue`]: {
|
|
1253
|
-
color: colorPrimary,
|
|
1254
|
-
background: controlItemBgActive,
|
|
1255
|
-
borderColor: colorPrimaryBorder,
|
|
1256
|
-
cursor: 'pointer',
|
|
1257
|
-
},
|
|
1258
|
-
|
|
1259
|
-
[`${componentCls}-ok`]: {
|
|
1260
|
-
marginInlineStart: 'auto',
|
|
1261
|
-
},
|
|
1262
|
-
},
|
|
1263
|
-
|
|
1264
|
-
[`${componentCls}-range-wrapper`]: {
|
|
1265
|
-
display: 'flex',
|
|
1266
|
-
position: 'relative',
|
|
1267
|
-
},
|
|
1268
|
-
|
|
1269
|
-
[`${componentCls}-range-arrow`]: {
|
|
1270
|
-
position: 'absolute',
|
|
1271
|
-
zIndex: 1,
|
|
1272
|
-
display: 'none',
|
|
1273
|
-
marginInlineStart: inputPaddingHorizontal * 1.5,
|
|
1274
|
-
transition: `left ${motionDurationSlow} ease-out`,
|
|
1275
|
-
...roundedArrow(
|
|
1276
|
-
sizePopupArrow,
|
|
1277
|
-
borderRadiusXS,
|
|
1278
|
-
borderRadiusOuter,
|
|
1279
|
-
colorBgElevated,
|
|
1280
|
-
boxShadowPopoverArrow,
|
|
1281
|
-
),
|
|
1282
|
-
},
|
|
1283
|
-
|
|
1284
|
-
[`${componentCls}-panel-container`]: {
|
|
1285
|
-
overflow: 'hidden',
|
|
1286
|
-
verticalAlign: 'top',
|
|
1287
|
-
background: colorBgElevated,
|
|
1288
|
-
borderRadius: borderRadiusLG,
|
|
1289
|
-
boxShadow: boxShadowSecondary,
|
|
1290
|
-
transition: `margin ${motionDurationSlow}`,
|
|
1291
|
-
|
|
1292
|
-
// ======================== Layout ========================
|
|
1293
|
-
[`${componentCls}-panel-layout`]: {
|
|
1294
|
-
display: 'flex',
|
|
1295
|
-
flexWrap: 'nowrap',
|
|
1296
|
-
alignItems: 'stretch',
|
|
1297
|
-
},
|
|
1298
|
-
|
|
1299
|
-
// ======================== Preset ========================
|
|
1300
|
-
[`${componentCls}-presets`]: {
|
|
1301
|
-
display: 'flex',
|
|
1302
|
-
flexDirection: 'column',
|
|
1303
|
-
minWidth: presetsWidth,
|
|
1304
|
-
maxWidth: presetsMaxWidth,
|
|
1305
|
-
|
|
1306
|
-
ul: {
|
|
1307
|
-
height: 0,
|
|
1308
|
-
flex: 'auto',
|
|
1309
|
-
listStyle: 'none',
|
|
1310
|
-
overflow: 'auto',
|
|
1311
|
-
margin: 0,
|
|
1312
|
-
padding: paddingXS,
|
|
1313
|
-
borderInlineEnd: `${lineWidth}px ${lineType} ${colorSplit}`,
|
|
1314
|
-
|
|
1315
|
-
li: {
|
|
1316
|
-
...textEllipsis,
|
|
1317
|
-
borderRadius: borderRadiusSM,
|
|
1318
|
-
paddingInline: paddingXS,
|
|
1319
|
-
paddingBlock: (controlHeightSM - Math.round(fontSize * lineHeight)) / 2,
|
|
1320
|
-
cursor: 'pointer',
|
|
1321
|
-
transition: `all ${motionDurationSlow}`,
|
|
1322
|
-
|
|
1323
|
-
'+ li': {
|
|
1324
|
-
marginTop: marginXS,
|
|
1325
|
-
},
|
|
1326
|
-
|
|
1327
|
-
'&:hover': {
|
|
1328
|
-
background: controlItemBgHover,
|
|
1329
|
-
},
|
|
1330
|
-
},
|
|
1331
|
-
},
|
|
1332
|
-
},
|
|
1333
|
-
|
|
1334
|
-
// ======================== Panels ========================
|
|
1335
|
-
[`${componentCls}-panels`]: {
|
|
1336
|
-
display: 'inline-flex',
|
|
1337
|
-
flexWrap: 'nowrap',
|
|
1338
|
-
direction: 'ltr',
|
|
1339
|
-
|
|
1340
|
-
[`${componentCls}-panel`]: {
|
|
1341
|
-
borderWidth: `0 0 ${lineWidth}px`,
|
|
1342
|
-
},
|
|
1343
|
-
|
|
1344
|
-
'&:last-child': {
|
|
1345
|
-
[`${componentCls}-panel`]: {
|
|
1346
|
-
borderWidth: 0,
|
|
1347
|
-
},
|
|
1348
|
-
},
|
|
1349
|
-
},
|
|
1350
|
-
|
|
1351
|
-
[`${componentCls}-panel`]: {
|
|
1352
|
-
verticalAlign: 'top',
|
|
1353
|
-
background: 'transparent',
|
|
1354
|
-
borderRadius: 0,
|
|
1355
|
-
borderWidth: 0,
|
|
1356
|
-
|
|
1357
|
-
[`${componentCls}-content,
|
|
1358
|
-
table`]: {
|
|
1359
|
-
textAlign: 'center',
|
|
1360
|
-
},
|
|
1361
|
-
|
|
1362
|
-
'&-focused': {
|
|
1363
|
-
borderColor: colorBorder,
|
|
1364
|
-
},
|
|
1365
|
-
},
|
|
1366
|
-
},
|
|
1367
|
-
},
|
|
1368
|
-
|
|
1369
|
-
'&-dropdown-range': {
|
|
1370
|
-
padding: `${(sizePopupArrow * 2) / 3}px 0`,
|
|
1371
|
-
|
|
1372
|
-
'&-hidden': {
|
|
1373
|
-
display: 'none',
|
|
1374
|
-
},
|
|
1375
|
-
},
|
|
1376
|
-
|
|
1377
|
-
'&-rtl': {
|
|
1378
|
-
direction: 'rtl',
|
|
1379
|
-
|
|
1380
|
-
[`${componentCls}-separator`]: {
|
|
1381
|
-
transform: 'rotate(180deg)',
|
|
1382
|
-
},
|
|
1383
|
-
|
|
1384
|
-
[`${componentCls}-footer`]: {
|
|
1385
|
-
'&-extra': {
|
|
1386
|
-
direction: 'rtl',
|
|
1387
|
-
},
|
|
1388
|
-
},
|
|
1389
|
-
},
|
|
1390
|
-
},
|
|
1391
|
-
},
|
|
1392
|
-
|
|
1393
|
-
// Follow code may reuse in other components
|
|
1394
|
-
initSlideMotion(token, 'slide-up'),
|
|
1395
|
-
initSlideMotion(token, 'slide-down'),
|
|
1396
|
-
initMoveMotion(token, 'move-up'),
|
|
1397
|
-
initMoveMotion(token, 'move-down'),
|
|
1398
|
-
]
|
|
1399
|
-
}
|
|
1400
|
-
|
|
1401
|
-
export const initPickerPanelToken = (token: TokenWithCommonCls<GlobalToken>): PickerPanelToken => {
|
|
1402
|
-
const pickerTimePanelCellHeight = 28
|
|
1403
|
-
const { componentCls, controlHeightLG, controlHeightSM, colorPrimary, paddingXXS } = token
|
|
1404
|
-
|
|
1405
|
-
return {
|
|
1406
|
-
pickerCellCls: `${componentCls}-cell`,
|
|
1407
|
-
pickerCellInnerCls: `${componentCls}-cell-inner`,
|
|
1408
|
-
pickerTextHeight: controlHeightLG,
|
|
1409
|
-
pickerPanelCellWidth: controlHeightSM * 1.5,
|
|
1410
|
-
pickerPanelCellHeight: controlHeightSM,
|
|
1411
|
-
pickerDateHoverRangeBorderColor: new TinyColor(colorPrimary).lighten(20).toHexString(),
|
|
1412
|
-
pickerBasicCellHoverWithRangeColor: new TinyColor(colorPrimary).lighten(35).toHexString(),
|
|
1413
|
-
pickerPanelWithoutTimeCellHeight: controlHeightLG * 1.65,
|
|
1414
|
-
pickerYearMonthCellWidth: controlHeightLG * 1.5,
|
|
1415
|
-
pickerTimePanelColumnHeight: pickerTimePanelCellHeight * 8,
|
|
1416
|
-
pickerTimePanelColumnWidth: controlHeightLG * 1.4,
|
|
1417
|
-
pickerTimePanelCellHeight,
|
|
1418
|
-
pickerQuarterPanelContentHeight: controlHeightLG * 1.4,
|
|
1419
|
-
pickerCellPaddingVertical: paddingXXS,
|
|
1420
|
-
pickerCellBorderGap: 2, // Magic for gap between cells
|
|
1421
|
-
pickerControlIconSize: 7,
|
|
1422
|
-
pickerControlIconBorderWidth: 1.5,
|
|
1423
|
-
}
|
|
1424
|
-
}
|
|
1425
|
-
|
|
1426
|
-
// ============================== Export ==============================
|
|
1427
|
-
export default genComponentStyleHook(
|
|
1428
|
-
'DatePicker',
|
|
1429
|
-
(token) => {
|
|
1430
|
-
const pickerToken = mergeToken<PickerToken>(
|
|
1431
|
-
initInputToken<FullToken<'DatePicker'>>(token),
|
|
1432
|
-
initPickerPanelToken(token),
|
|
1433
|
-
)
|
|
1434
|
-
|
|
1435
|
-
return [
|
|
1436
|
-
genPickerStyle(pickerToken),
|
|
1437
|
-
genPickerStatusStyle(pickerToken),
|
|
1438
|
-
// =====================================================
|
|
1439
|
-
// == Space Compact ==
|
|
1440
|
-
// =====================================================
|
|
1441
|
-
genCompactItemStyle(token, {
|
|
1442
|
-
focusElCls: `${token.componentCls}-focused`,
|
|
1443
|
-
}),
|
|
1444
|
-
]
|
|
1445
|
-
},
|
|
1446
|
-
(token) => ({
|
|
1447
|
-
presetsWidth: 120,
|
|
1448
|
-
presetsMaxWidth: 200,
|
|
1449
|
-
zIndexPopup: token.zIndexPopupBase + 50,
|
|
1450
|
-
}),
|
|
1451
|
-
)
|