@fle-ui/next 3.0.0-alpha.2 → 3.0.0-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +21 -21
- package/README.md +40 -40
- package/dist/components.min.js +1 -1
- package/es/_util/ActionButton.d.ts +4 -0
- package/es/_util/ActionButton.js +38 -48
- package/es/_util/PurePanel.d.ts +4 -1
- package/es/_util/PurePanel.js +55 -48
- package/es/_util/capitalize.js +0 -1
- package/es/_util/colors.d.ts +13 -5
- package/es/_util/colors.js +21 -4
- package/es/_util/easings.js +2 -4
- package/es/_util/extendsObject.d.ts +3 -0
- package/es/_util/extendsObject.js +20 -0
- package/es/_util/gapSize.d.ts +3 -0
- package/es/_util/gapSize.js +10 -0
- package/es/_util/getRenderPropValue.js +1 -6
- package/es/_util/getScroll.js +0 -5
- package/es/_util/hooks/useClosable.d.ts +10 -0
- package/es/_util/hooks/useClosable.js +23 -0
- package/es/_util/hooks/useForceUpdate.js +10 -6
- package/es/_util/hooks/useMultipleSelect.d.ts +6 -0
- package/es/_util/hooks/useMultipleSelect.js +47 -0
- package/es/_util/hooks/usePatchElement.js +13 -7
- package/es/_util/hooks/useProxyImperativeHandle.d.ts +4 -0
- package/es/_util/hooks/useProxyImperativeHandle.js +32 -0
- package/es/_util/hooks/useSyncState.js +2 -2
- package/es/_util/hooks/useZIndex.d.ts +6 -0
- package/es/_util/hooks/useZIndex.js +58 -0
- package/es/_util/isNumeric.js +0 -1
- package/es/_util/motion.d.ts +2 -3
- package/es/_util/motion.js +5 -22
- package/es/_util/placements.d.ts +11 -7
- package/es/_util/placements.js +169 -80
- package/es/_util/reactNode.d.ts +1 -1
- package/es/_util/reactNode.js +0 -1
- package/es/_util/responsiveObserver.d.ts +22 -0
- package/es/_util/responsiveObserver.js +121 -0
- package/es/_util/scrollTo.d.ts +1 -1
- package/es/_util/scrollTo.js +6 -10
- package/es/_util/statusUtils.d.ts +2 -2
- package/es/_util/statusUtils.js +6 -5
- package/es/_util/styleChecker.d.ts +0 -1
- package/es/_util/styleChecker.js +1 -26
- package/es/_util/throttleByAnimationFrame.d.ts +3 -4
- package/es/_util/throttleByAnimationFrame.js +0 -7
- package/es/_util/transButton.js +8 -22
- package/es/_util/transKeys.d.ts +2 -0
- package/es/_util/transKeys.js +18 -0
- package/es/_util/type.d.ts +4 -8
- package/es/_util/type.js +1 -15
- package/es/_util/warning.d.ts +22 -2
- package/es/_util/warning.js +50 -8
- package/es/_util/wave/WaveEffect.d.ts +8 -0
- package/es/_util/wave/WaveEffect.js +152 -0
- package/es/_util/wave/index.d.ts +3 -28
- package/es/_util/wave/index.js +53 -265
- package/es/_util/wave/interface.d.ts +10 -0
- package/es/_util/wave/interface.js +1 -0
- package/es/_util/wave/style.d.ts +6 -2
- package/es/_util/wave/style.js +27 -72
- package/es/_util/wave/useWave.d.ts +3 -0
- package/es/_util/wave/useWave.js +47 -0
- package/es/_util/wave/util.d.ts +3 -0
- package/es/_util/wave/util.js +29 -0
- package/es/_util/zindexContext.d.ts +3 -0
- package/es/_util/zindexContext.js +6 -0
- package/es/affix/index.d.ts +11 -48
- package/es/affix/index.js +180 -275
- package/es/affix/style/index.d.ts +7 -1
- package/es/affix/style/index.js +13 -11
- package/es/affix/utils.d.ts +2 -13
- package/es/affix/utils.js +4 -71
- package/es/alert/Alert.d.ts +38 -0
- package/es/alert/Alert.js +186 -0
- package/es/alert/ErrorBoundary.d.ts +1 -1
- package/es/alert/ErrorBoundary.js +14 -17
- package/es/alert/index.d.ts +3 -32
- package/es/alert/index.js +4 -185
- package/es/alert/style/index.d.ts +20 -7
- package/es/alert/style/index.js +81 -85
- package/es/anchor/Anchor.d.ts +15 -1
- package/es/anchor/Anchor.js +123 -127
- package/es/anchor/AnchorLink.d.ts +5 -2
- package/es/anchor/AnchorLink.js +47 -38
- package/es/anchor/index.js +2 -0
- package/es/anchor/style/index.d.ts +14 -1
- package/es/anchor/style/index.js +104 -67
- package/es/app/context.d.ts +16 -0
- package/es/app/context.js +8 -0
- package/es/app/index.d.ts +16 -0
- package/es/app/index.js +81 -0
- package/es/app/style/index.d.ts +6 -0
- package/es/app/style/index.js +24 -0
- package/es/auto-complete/index.d.ts +9 -11
- package/es/auto-complete/index.js +56 -59
- package/es/avatar/AvatarContext.d.ts +9 -0
- package/es/avatar/AvatarContext.js +3 -0
- package/es/avatar/avatar.d.ts +3 -2
- package/es/avatar/avatar.js +77 -90
- package/es/avatar/group.d.ts +3 -1
- package/es/avatar/group.js +60 -36
- package/es/avatar/index.js +2 -0
- package/es/avatar/style/index.d.ts +49 -1
- package/es/avatar/style/index.js +77 -75
- package/es/back-top/index.d.ts +3 -2
- package/es/back-top/index.js +50 -57
- package/es/back-top/style/index.d.ts +4 -1
- package/es/back-top/style/index.js +48 -43
- package/es/badge/Ribbon.d.ts +2 -1
- package/es/badge/Ribbon.js +43 -37
- package/es/badge/ScrollNumber.d.ts +2 -2
- package/es/badge/ScrollNumber.js +32 -44
- package/es/badge/SingleNumber.d.ts +2 -2
- package/es/badge/SingleNumber.js +37 -46
- package/es/badge/index.d.ts +13 -3
- package/es/badge/index.js +105 -109
- package/es/badge/style/index.d.ts +61 -1
- package/es/badge/style/index.js +121 -159
- package/es/badge/style/ribbon.d.ts +3 -0
- package/es/badge/style/ribbon.js +71 -0
- package/es/breadcrumb/Breadcrumb.d.ts +47 -14
- package/es/breadcrumb/Breadcrumb.js +116 -113
- package/es/breadcrumb/BreadcrumbItem.d.ts +18 -6
- package/es/breadcrumb/BreadcrumbItem.js +63 -55
- package/es/breadcrumb/BreadcrumbSeparator.js +7 -8
- package/es/breadcrumb/index.d.ts +1 -1
- package/es/breadcrumb/index.js +2 -0
- package/es/breadcrumb/style/index.d.ts +41 -1
- package/es/breadcrumb/style/index.js +56 -53
- package/es/breadcrumb/useItemRender.d.ts +8 -0
- package/es/breadcrumb/useItemRender.js +56 -0
- package/es/breadcrumb/useItems.d.ts +6 -0
- package/es/breadcrumb/useItems.js +40 -0
- package/es/button/IconWrapper.d.ts +9 -0
- package/es/button/IconWrapper.js +17 -0
- package/es/button/LoadingIcon.d.ts +2 -0
- package/es/button/LoadingIcon.js +42 -24
- package/es/button/button-group.js +30 -38
- package/es/button/button.d.ts +14 -22
- package/es/button/button.js +142 -204
- package/es/button/buttonHelpers.d.ts +14 -0
- package/es/button/buttonHelpers.js +63 -0
- package/es/button/index.d.ts +2 -1
- package/es/button/index.js +3 -0
- package/es/button/style/compactCmp.d.ts +3 -0
- package/es/button/style/compactCmp.js +46 -0
- package/es/button/style/group.js +20 -20
- package/es/button/style/index.d.ts +149 -4
- package/es/button/style/index.js +224 -202
- package/es/calendar/Header.d.ts +4 -4
- package/es/calendar/Header.js +50 -60
- package/es/calendar/generateCalendar.d.ts +17 -3
- package/es/calendar/generateCalendar.js +152 -133
- package/es/calendar/index.d.ts +12 -3
- package/es/calendar/index.js +3 -0
- package/es/calendar/locale/eu_ES.d.ts +2 -0
- package/es/calendar/locale/eu_ES.js +2 -0
- package/es/calendar/locale/my_MM.d.ts +2 -0
- package/es/calendar/locale/my_MM.js +2 -0
- package/es/calendar/style/index.d.ts +33 -8
- package/es/calendar/style/index.js +74 -70
- package/es/card/Card.d.ts +6 -3
- package/es/card/Card.js +99 -102
- package/es/card/Grid.js +18 -24
- package/es/card/Meta.js +28 -38
- package/es/card/index.js +5 -0
- package/es/card/style/index.d.ts +49 -1
- package/es/card/style/index.js +149 -150
- package/es/carousel/index.d.ts +4 -1
- package/es/carousel/index.js +55 -46
- package/es/carousel/style/index.d.ts +18 -1
- package/es/carousel/style/index.js +49 -43
- package/es/cascader/Panel.d.ts +6 -0
- package/es/cascader/Panel.js +62 -0
- package/es/cascader/hooks/useBase.d.ts +7 -0
- package/es/cascader/hooks/useBase.js +12 -0
- package/es/cascader/hooks/useCheckable.d.ts +2 -0
- package/es/cascader/hooks/useCheckable.js +10 -0
- package/es/cascader/hooks/useColumnIcons.d.ts +2 -0
- package/es/cascader/hooks/useColumnIcons.js +18 -0
- package/es/cascader/index.d.ts +17 -8
- package/es/cascader/index.js +165 -172
- package/es/cascader/style/columns.d.ts +4 -0
- package/es/cascader/style/columns.js +86 -0
- package/es/cascader/style/index.d.ts +46 -1
- package/es/cascader/style/index.js +36 -98
- package/es/cascader/style/panel.d.ts +2 -0
- package/es/cascader/style/panel.js +30 -0
- package/es/checkbox/Checkbox.d.ts +5 -1
- package/es/checkbox/Checkbox.js +62 -68
- package/es/checkbox/Group.d.ts +7 -9
- package/es/checkbox/Group.js +67 -79
- package/es/checkbox/GroupContext.d.ts +12 -0
- package/es/checkbox/GroupContext.js +3 -0
- package/es/checkbox/index.d.ts +3 -1
- package/es/checkbox/index.js +5 -0
- package/es/checkbox/style/index.d.ts +2 -1
- package/es/checkbox/style/index.js +86 -106
- package/es/col/index.js +2 -0
- package/es/col/style/index.js +0 -1
- package/es/collapse/Collapse.d.ts +11 -6
- package/es/collapse/Collapse.js +71 -60
- package/es/collapse/CollapsePanel.d.ts +1 -1
- package/es/collapse/CollapsePanel.js +22 -18
- package/es/collapse/index.js +2 -0
- package/es/collapse/style/index.d.ts +27 -6
- package/es/collapse/style/index.js +119 -95
- package/es/color-picker/ColorPicker.d.ts +49 -0
- package/es/color-picker/ColorPicker.js +243 -0
- package/es/color-picker/ColorPickerPanel.d.ts +10 -0
- package/es/color-picker/ColorPickerPanel.js +60 -0
- package/es/color-picker/color.d.ts +17 -0
- package/es/color-picker/color.js +50 -0
- package/es/color-picker/components/ColorAlphaInput.d.ts +9 -0
- package/es/color-picker/components/ColorAlphaInput.js +46 -0
- package/es/color-picker/components/ColorClear.d.ts +9 -0
- package/es/color-picker/components/ColorClear.js +23 -0
- package/es/color-picker/components/ColorHexInput.d.ts +9 -0
- package/es/color-picker/components/ColorHexInput.js +48 -0
- package/es/color-picker/components/ColorHsbInput.d.ts +9 -0
- package/es/color-picker/components/ColorHsbInput.js +76 -0
- package/es/color-picker/components/ColorInput.d.ts +9 -0
- package/es/color-picker/components/ColorInput.js +79 -0
- package/es/color-picker/components/ColorPresets.d.ts +10 -0
- package/es/color-picker/components/ColorPresets.js +109 -0
- package/es/color-picker/components/ColorRgbInput.d.ts +9 -0
- package/es/color-picker/components/ColorRgbInput.js +67 -0
- package/es/color-picker/components/ColorSteppers.d.ts +15 -0
- package/es/color-picker/components/ColorSteppers.js +48 -0
- package/es/color-picker/components/ColorTrigger.d.ts +16 -0
- package/es/color-picker/components/ColorTrigger.js +68 -0
- package/es/color-picker/components/PanelPicker.d.ts +11 -0
- package/es/color-picker/components/PanelPicker.js +50 -0
- package/es/color-picker/components/PanelPresets.d.ts +9 -0
- package/es/color-picker/components/PanelPresets.js +19 -0
- package/es/color-picker/context.d.ts +7 -0
- package/es/color-picker/context.js +7 -0
- package/es/color-picker/hooks/useColorState.d.ts +7 -0
- package/es/color-picker/hooks/useColorState.js +36 -0
- package/es/color-picker/index.d.ts +4 -0
- package/es/color-picker/index.js +4 -0
- package/es/color-picker/interface.d.ts +34 -0
- package/es/color-picker/interface.js +6 -0
- package/es/color-picker/style/color-block.d.ts +8 -0
- package/es/color-picker/style/color-block.js +34 -0
- package/es/color-picker/style/index.d.ts +23 -0
- package/es/color-picker/style/index.js +198 -0
- package/es/color-picker/style/input.d.ts +5 -0
- package/es/color-picker/style/input.js +75 -0
- package/es/color-picker/style/picker.d.ts +5 -0
- package/es/color-picker/style/picker.js +65 -0
- package/es/color-picker/style/presets.d.ts +5 -0
- package/es/color-picker/style/presets.js +95 -0
- package/es/color-picker/util.d.ts +6 -0
- package/es/color-picker/util.js +18 -0
- package/es/config-provider/DisabledContext.d.ts +1 -1
- package/es/config-provider/DisabledContext.js +3 -1
- package/es/config-provider/MotionWrapper.d.ts +5 -0
- package/es/config-provider/MotionWrapper.js +26 -0
- package/es/config-provider/PropWarning.d.ts +6 -0
- package/es/config-provider/PropWarning.js +20 -0
- package/es/config-provider/SizeContext.js +7 -6
- package/es/config-provider/context.d.ts +125 -17
- package/es/config-provider/context.js +8 -35
- package/es/config-provider/cssVariables.js +28 -37
- package/es/config-provider/defaultRenderEmpty.d.ts +7 -4
- package/es/config-provider/defaultRenderEmpty.js +30 -34
- package/es/config-provider/hooks/useCSSVarCls.d.ts +7 -0
- package/es/config-provider/hooks/useCSSVarCls.js +19 -0
- package/es/config-provider/hooks/useConfig.d.ts +5 -0
- package/es/config-provider/hooks/useConfig.js +12 -0
- package/es/config-provider/hooks/useSize.d.ts +3 -0
- package/es/config-provider/hooks/useSize.js +19 -0
- package/es/config-provider/hooks/useTheme.js +31 -16
- package/es/config-provider/hooks/useThemeKey.d.ts +3 -0
- package/es/config-provider/hooks/useThemeKey.js +8 -0
- package/es/config-provider/index.d.ts +85 -9
- package/es/config-provider/index.js +267 -107
- package/es/config-provider/style/index.d.ts +1 -2
- package/es/config-provider/style/index.js +2 -24
- package/es/date-picker/PickerButton.d.ts +2 -2
- package/es/date-picker/PickerButton.js +3 -2
- package/es/date-picker/generatePicker/Components.d.ts +5 -0
- package/es/date-picker/generatePicker/Components.js +5 -0
- package/es/date-picker/generatePicker/generateRangePicker.d.ts +1 -0
- package/es/date-picker/generatePicker/generateRangePicker.js +121 -110
- package/es/date-picker/generatePicker/generateSinglePicker.d.ts +18 -12
- package/es/date-picker/generatePicker/generateSinglePicker.js +116 -110
- package/es/date-picker/generatePicker/index.d.ts +22 -61
- package/es/date-picker/generatePicker/index.js +13 -68
- package/es/date-picker/generatePicker/interface.js +2 -0
- package/es/date-picker/index.d.ts +29 -14
- package/es/date-picker/index.js +17 -4
- package/es/date-picker/locale/ar_EG.js +6 -7
- package/es/date-picker/locale/az_AZ.js +2 -3
- package/es/date-picker/locale/bg_BG.js +6 -7
- package/es/date-picker/locale/bn_BD.js +6 -7
- package/es/date-picker/locale/by_BY.js +2 -3
- package/es/date-picker/locale/ca_ES.js +6 -7
- package/es/date-picker/locale/cs_CZ.js +6 -7
- package/es/date-picker/locale/da_DK.js +6 -7
- package/es/date-picker/locale/de_DE.js +6 -7
- package/es/date-picker/locale/el_GR.js +6 -7
- package/es/date-picker/locale/en_GB.js +6 -7
- package/es/date-picker/locale/en_US.js +6 -7
- package/es/date-picker/locale/es_ES.js +6 -7
- package/es/date-picker/locale/et_EE.js +6 -7
- package/es/date-picker/locale/eu_ES.d.ts +3 -0
- package/es/date-picker/locale/eu_ES.js +13 -0
- package/es/date-picker/locale/fa_IR.js +7 -7
- package/es/date-picker/locale/fi_FI.js +6 -7
- package/es/date-picker/locale/fr_BE.js +14 -8
- package/es/date-picker/locale/fr_CA.js +6 -7
- package/es/date-picker/locale/fr_FR.js +6 -7
- package/es/date-picker/locale/ga_IE.js +6 -7
- package/es/date-picker/locale/gl_ES.js +6 -7
- package/es/date-picker/locale/he_IL.js +6 -7
- package/es/date-picker/locale/hi_IN.js +6 -7
- package/es/date-picker/locale/hr_HR.js +6 -7
- package/es/date-picker/locale/hu_HU.js +6 -7
- package/es/date-picker/locale/id_ID.js +6 -7
- package/es/date-picker/locale/is_IS.js +6 -7
- package/es/date-picker/locale/it_IT.js +6 -7
- package/es/date-picker/locale/ja_JP.js +6 -7
- package/es/date-picker/locale/ka_GE.js +2 -3
- package/es/date-picker/locale/kk_KZ.js +6 -7
- package/es/date-picker/locale/km_KH.js +6 -7
- package/es/date-picker/locale/kmr_IQ.js +6 -7
- package/es/date-picker/locale/kn_IN.js +6 -7
- package/es/date-picker/locale/ko_KR.js +6 -7
- package/es/date-picker/locale/lt_LT.js +7 -7
- package/es/date-picker/locale/lv_LV.js +6 -7
- package/es/date-picker/locale/mk_MK.js +6 -7
- package/es/date-picker/locale/ml_IN.js +6 -7
- package/es/date-picker/locale/mn_MN.js +6 -7
- package/es/date-picker/locale/ms_MY.js +6 -7
- package/es/date-picker/locale/my_MM.d.ts +3 -0
- package/es/date-picker/locale/my_MM.js +21 -0
- package/es/date-picker/locale/nb_NO.js +6 -7
- package/es/date-picker/locale/nl_BE.js +6 -7
- package/es/date-picker/locale/nl_NL.js +6 -7
- package/es/date-picker/locale/pl_PL.js +6 -7
- package/es/date-picker/locale/pt_BR.js +6 -7
- package/es/date-picker/locale/pt_PT.js +6 -7
- package/es/date-picker/locale/ro_RO.js +6 -7
- package/es/date-picker/locale/ru_RU.js +6 -8
- package/es/date-picker/locale/si_LK.js +6 -7
- package/es/date-picker/locale/sk_SK.js +6 -7
- package/es/date-picker/locale/sl_SI.js +5 -6
- package/es/date-picker/locale/sr_RS.js +6 -7
- package/es/date-picker/locale/sv_SE.js +6 -7
- package/es/date-picker/locale/ta_IN.js +15 -9
- package/es/date-picker/locale/th_TH.js +6 -7
- package/es/date-picker/locale/tk_TK.js +2 -3
- package/es/date-picker/locale/tr_TR.js +6 -7
- package/es/date-picker/locale/uk_UA.js +6 -7
- package/es/date-picker/locale/ur_PK.js +6 -7
- package/es/date-picker/locale/vi_VN.js +15 -8
- package/es/date-picker/locale/zh_CN.js +8 -9
- package/es/date-picker/locale/zh_TW.js +6 -7
- package/es/date-picker/style/index.d.ts +89 -18
- package/es/date-picker/style/index.js +483 -433
- package/es/date-picker/util.d.ts +54 -10
- package/es/date-picker/util.js +56 -19
- package/es/descriptions/Cell.js +23 -24
- package/es/descriptions/DescriptionsContext.d.ts +7 -0
- package/es/descriptions/DescriptionsContext.js +3 -0
- package/es/descriptions/Item.js +0 -1
- package/es/descriptions/Row.d.ts +2 -2
- package/es/descriptions/Row.js +40 -47
- package/es/descriptions/constant.d.ts +3 -0
- package/es/descriptions/constant.js +9 -0
- package/es/descriptions/hooks/useItems.d.ts +4 -0
- package/es/descriptions/hooks/useItems.js +37 -0
- package/es/descriptions/hooks/useRow.d.ts +3 -0
- package/es/descriptions/hooks/useRow.js +72 -0
- package/es/descriptions/index.d.ts +23 -9
- package/es/descriptions/index.js +80 -140
- package/es/descriptions/style/index.d.ts +47 -1
- package/es/descriptions/style/index.js +74 -84
- package/es/divider/index.d.ts +1 -0
- package/es/divider/index.js +58 -47
- package/es/divider/style/index.d.ts +19 -2
- package/es/divider/style/index.js +84 -75
- package/es/drawer/DrawerPanel.d.ts +29 -2
- package/es/drawer/DrawerPanel.js +67 -49
- package/es/drawer/index.d.ts +15 -12
- package/es/drawer/index.js +118 -101
- package/es/drawer/style/index.d.ts +18 -4
- package/es/drawer/style/index.js +63 -60
- package/es/drawer/style/motion.js +9 -9
- package/es/dropdown/dropdown-button.d.ts +3 -4
- package/es/dropdown/dropdown-button.js +57 -76
- package/es/dropdown/dropdown.d.ts +11 -19
- package/es/dropdown/dropdown.js +159 -127
- package/es/dropdown/index.d.ts +8 -2
- package/es/dropdown/index.js +6 -1
- package/es/dropdown/style/index.d.ts +17 -7
- package/es/dropdown/style/index.js +98 -154
- package/es/dropdown/style/status.js +9 -8
- package/es/empty/empty.d.ts +2 -1
- package/es/empty/empty.js +22 -2
- package/es/empty/index.d.ts +1 -0
- package/es/empty/index.js +58 -57
- package/es/empty/simple.d.ts +2 -1
- package/es/empty/simple.js +26 -21
- package/es/empty/style/index.d.ts +2 -1
- package/es/empty/style/index.js +31 -24
- package/es/flex/index.d.ts +4 -0
- package/es/flex/index.js +70 -0
- package/es/flex/interface.d.ts +15 -0
- package/es/flex/interface.js +1 -0
- package/es/flex/style/index.d.ts +31 -0
- package/es/flex/style/index.js +83 -0
- package/es/flex/utils.d.ts +6 -0
- package/es/flex/utils.js +30 -0
- package/es/float-button/BackTop.d.ts +3 -3
- package/es/float-button/BackTop.js +52 -71
- package/es/float-button/FloatButton.d.ts +2 -2
- package/es/float-button/FloatButton.js +63 -53
- package/es/float-button/FloatButtonContent.js +9 -9
- package/es/float-button/FloatButtonGroup.js +101 -66
- package/es/float-button/PurePanel.d.ts +4 -4
- package/es/float-button/PurePanel.js +19 -33
- package/es/float-button/index.js +3 -1
- package/es/float-button/interface.d.ts +15 -6
- package/es/float-button/style/index.d.ts +4 -2
- package/es/float-button/style/index.js +156 -116
- package/es/float-button/util.d.ts +2 -0
- package/es/float-button/util.js +9 -0
- package/es/form/ErrorList.d.ts +2 -1
- package/es/form/ErrorList.js +51 -46
- package/es/form/Form.d.ts +11 -4
- package/es/form/Form.js +98 -80
- package/es/form/FormItem/ItemHolder.d.ts +3 -2
- package/es/form/FormItem/ItemHolder.js +77 -100
- package/es/form/FormItem/StatusProvider.d.ts +16 -0
- package/es/form/FormItem/StatusProvider.js +72 -0
- package/es/form/FormItem/index.d.ts +17 -7
- package/es/form/FormItem/index.js +156 -173
- package/es/form/FormItemInput.js +31 -31
- package/es/form/FormItemLabel.d.ts +0 -2
- package/es/form/FormItemLabel.js +87 -89
- package/es/form/FormList.d.ts +1 -1
- package/es/form/FormList.js +13 -20
- package/es/form/context.d.ts +7 -4
- package/es/form/context.js +11 -10
- package/es/form/hooks/useChildren.d.ts +2 -0
- package/es/form/hooks/useChildren.js +8 -0
- package/es/form/hooks/useDebounce.js +9 -5
- package/es/form/hooks/useForm.js +10 -11
- package/es/form/hooks/useFormInstance.js +1 -2
- package/es/form/hooks/useFormItemStatus.d.ts +3 -0
- package/es/form/hooks/useFormItemStatus.js +15 -9
- package/es/form/hooks/useFormWarning.d.ts +2 -0
- package/es/form/hooks/useFormWarning.js +16 -0
- package/es/form/hooks/useFrameState.js +9 -9
- package/es/form/hooks/useItemRef.js +2 -7
- package/es/form/index.d.ts +3 -3
- package/es/form/index.js +3 -3
- package/es/form/interface.d.ts +2 -2
- package/es/form/style/explain.js +10 -10
- package/es/form/style/fallbackCmp.d.ts +7 -0
- package/es/form/style/fallbackCmp.js +26 -0
- package/es/form/style/index.d.ts +53 -2
- package/es/form/style/index.js +115 -107
- package/es/form/util.d.ts +7 -0
- package/es/form/util.js +26 -7
- package/es/form/validateMessagesContext.d.ts +4 -0
- package/es/form/validateMessagesContext.js +7 -0
- package/es/grid/RowContext.d.ts +2 -3
- package/es/grid/col.d.ts +2 -1
- package/es/grid/col.js +43 -65
- package/es/grid/hooks/useBreakpoint.d.ts +1 -1
- package/es/grid/hooks/useBreakpoint.js +9 -8
- package/es/grid/index.d.ts +2 -2
- package/es/grid/index.js +5 -4
- package/es/grid/row.d.ts +7 -7
- package/es/grid/row.js +86 -111
- package/es/grid/style/index.d.ts +8 -2
- package/es/grid/style/index.js +49 -45
- package/es/icon/index.js +6 -3
- package/es/image/PreviewGroup.d.ts +10 -8
- package/es/image/PreviewGroup.js +39 -32
- package/es/image/index.d.ts +2 -2
- package/es/image/index.js +53 -45
- package/es/image/style/index.d.ts +28 -5
- package/es/image/style/index.js +156 -118
- package/es/index.d.ts +22 -8
- package/es/index.js +9 -2
- package/es/input/Group.js +27 -20
- package/es/input/Input.d.ts +4 -5
- package/es/input/Input.js +96 -151
- package/es/input/Password.js +49 -71
- package/es/input/Search.d.ts +3 -1
- package/es/input/Search.js +39 -58
- package/es/input/TextArea.d.ts +6 -15
- package/es/input/TextArea.js +74 -219
- package/es/input/hooks/useRemovePasswordTimeout.js +0 -4
- package/es/input/index.js +5 -0
- package/es/input/style/index.d.ts +85 -14
- package/es/input/style/index.js +321 -268
- package/es/input/utils.d.ts +1 -2
- package/es/input-number/index.d.ts +5 -4
- package/es/input-number/index.js +87 -136
- package/es/input-number/style/index.d.ts +60 -3
- package/es/input-number/style/index.js +165 -124
- package/es/layout/Sider.js +66 -91
- package/es/layout/context.d.ts +8 -0
- package/es/layout/context.js +11 -0
- package/es/layout/hooks/useHasSider.d.ts +2 -0
- package/es/layout/hooks/useHasSider.js +14 -0
- package/es/layout/index.d.ts +3 -1
- package/es/layout/index.js +4 -1
- package/es/layout/layout.d.ts +5 -10
- package/es/layout/layout.js +72 -75
- package/es/layout/style/index.d.ts +87 -8
- package/es/layout/style/index.js +104 -90
- package/es/layout/style/light.js +20 -18
- package/es/list/Item.js +37 -50
- package/es/list/context.d.ts +8 -0
- package/es/list/context.js +3 -0
- package/es/list/index.d.ts +6 -8
- package/es/list/index.js +90 -117
- package/es/list/style/index.d.ts +58 -1
- package/es/list/style/index.js +151 -129
- package/es/locale/ar_EG.d.ts +1 -1
- package/es/locale/ar_EG.js +4 -4
- package/es/locale/az_AZ.d.ts +1 -1
- package/es/locale/az_AZ.js +4 -4
- package/es/locale/bg_BG.d.ts +1 -1
- package/es/locale/bg_BG.js +51 -0
- package/es/locale/bn_BD.d.ts +1 -1
- package/es/locale/bn_BD.js +4 -4
- package/es/locale/by_BY.d.ts +1 -1
- package/es/locale/by_BY.js +4 -4
- package/es/locale/ca_ES.d.ts +1 -1
- package/es/locale/ca_ES.js +4 -4
- package/es/locale/cs_CZ.d.ts +1 -1
- package/es/locale/cs_CZ.js +4 -4
- package/es/locale/da_DK.d.ts +1 -1
- package/es/locale/de_DE.d.ts +1 -1
- package/es/locale/de_DE.js +15 -5
- package/es/locale/el_GR.d.ts +1 -1
- package/es/locale/en_GB.d.ts +1 -1
- package/es/locale/en_GB.js +4 -4
- package/es/locale/en_US.d.ts +1 -1
- package/es/locale/en_US.js +11 -4
- package/es/locale/es_ES.d.ts +1 -1
- package/es/locale/es_ES.js +4 -4
- package/es/locale/et_EE.d.ts +1 -1
- package/es/locale/et_EE.js +4 -4
- package/es/locale/eu_ES.d.ts +3 -0
- package/es/locale/eu_ES.js +144 -0
- package/es/locale/fa_IR.d.ts +1 -1
- package/es/locale/fa_IR.js +17 -6
- package/es/locale/fi_FI.d.ts +1 -1
- package/es/locale/fr_BE.d.ts +1 -1
- package/es/locale/fr_BE.js +87 -7
- package/es/locale/fr_CA.d.ts +1 -1
- package/es/locale/fr_CA.js +73 -5
- package/es/locale/fr_FR.d.ts +1 -1
- package/es/locale/fr_FR.js +9 -4
- package/es/locale/ga_IE.d.ts +1 -1
- package/es/locale/ga_IE.js +4 -4
- package/es/locale/gl_ES.d.ts +1 -1
- package/es/locale/gl_ES.js +4 -4
- package/es/locale/he_IL.d.ts +1 -1
- package/es/locale/he_IL.js +7 -7
- package/es/locale/hi_IN.d.ts +1 -1
- package/es/locale/hi_IN.js +4 -4
- package/es/locale/hr_HR.d.ts +1 -1
- package/es/locale/hr_HR.js +4 -4
- package/es/locale/hu_HU.d.ts +1 -1
- package/es/locale/hy_AM.d.ts +1 -1
- package/es/locale/id_ID.d.ts +1 -1
- package/es/locale/index.d.ts +59 -0
- package/es/locale/index.js +34 -0
- package/es/locale/is_IS.d.ts +1 -1
- package/es/locale/it_IT.d.ts +1 -1
- package/es/locale/it_IT.js +4 -4
- package/es/locale/ja_JP.d.ts +1 -1
- package/es/locale/ja_JP.js +4 -4
- package/es/locale/ka_GE.d.ts +1 -1
- package/es/locale/ka_GE.js +4 -4
- package/es/locale/kk_KZ.d.ts +1 -1
- package/es/locale/kk_KZ.js +4 -4
- package/es/locale/km_KH.d.ts +1 -1
- package/es/locale/km_KH.js +4 -4
- package/es/locale/kmr_IQ.d.ts +1 -1
- package/es/locale/kn_IN.d.ts +1 -1
- package/es/locale/ko_KR.d.ts +1 -1
- package/es/locale/ko_KR.js +56 -9
- package/es/locale/ku_IQ.d.ts +1 -1
- package/es/locale/ku_IQ.js +2 -2
- package/es/locale/lt_LT.d.ts +1 -1
- package/es/locale/lt_LT.js +43 -20
- package/es/locale/lv_LV.d.ts +1 -1
- package/es/locale/mk_MK.d.ts +1 -1
- package/es/locale/ml_IN.d.ts +1 -1
- package/es/locale/ml_IN.js +4 -4
- package/es/locale/mn_MN.d.ts +1 -1
- package/es/locale/mn_MN.js +4 -4
- package/es/locale/ms_MY.d.ts +1 -1
- package/es/locale/my_MM.d.ts +3 -0
- package/es/locale/my_MM.js +139 -0
- package/es/locale/nb_NO.d.ts +1 -1
- package/es/locale/nb_NO.js +4 -4
- package/es/locale/ne_NP.d.ts +1 -1
- package/es/locale/nl_BE.d.ts +1 -1
- package/es/locale/nl_BE.js +4 -4
- package/es/locale/nl_NL.d.ts +1 -1
- package/es/locale/nl_NL.js +4 -4
- package/es/locale/pl_PL.d.ts +1 -1
- package/es/locale/pl_PL.js +9 -4
- package/es/locale/pt_BR.d.ts +1 -1
- package/es/locale/pt_BR.js +11 -4
- package/es/locale/pt_PT.d.ts +1 -1
- package/es/locale/pt_PT.js +4 -4
- package/es/locale/ro_RO.d.ts +1 -1
- package/es/locale/ro_RO.js +4 -4
- package/es/locale/ru_RU.d.ts +1 -1
- package/es/locale/ru_RU.js +17 -5
- package/es/locale/si_LK.d.ts +1 -1
- package/es/locale/si_LK.js +4 -4
- package/es/locale/sk_SK.d.ts +1 -1
- package/es/locale/sk_SK.js +4 -4
- package/es/locale/sl_SI.d.ts +1 -1
- package/es/locale/sr_RS.d.ts +1 -1
- package/es/locale/sr_RS.js +4 -4
- package/es/locale/sv_SE.d.ts +1 -1
- package/es/locale/sv_SE.js +15 -4
- package/es/locale/ta_IN.d.ts +1 -1
- package/es/locale/ta_IN.js +67 -1
- package/es/locale/th_TH.d.ts +1 -1
- package/es/locale/th_TH.js +19 -4
- package/es/locale/tk_TK.d.ts +1 -1
- package/es/locale/tk_TK.js +4 -4
- package/es/locale/tr_TR.d.ts +1 -1
- package/es/locale/tr_TR.js +4 -4
- package/es/locale/uk_UA.d.ts +1 -1
- package/es/locale/uk_UA.js +13 -4
- package/es/locale/ur_PK.d.ts +1 -1
- package/es/locale/ur_PK.js +4 -4
- package/es/locale/useLocale.d.ts +4 -0
- package/es/locale/useLocale.js +22 -0
- package/es/locale/vi_VN.d.ts +1 -1
- package/es/locale/vi_VN.js +107 -11
- package/es/locale/zh_CN.d.ts +1 -1
- package/es/locale/zh_CN.js +11 -4
- package/es/locale/zh_HK.d.ts +1 -1
- package/es/locale/zh_HK.js +4 -4
- package/es/locale/zh_TW.d.ts +1 -1
- package/es/locale/zh_TW.js +4 -4
- package/es/mentions/index.d.ts +5 -7
- package/es/mentions/index.js +86 -109
- package/es/mentions/style/index.d.ts +18 -2
- package/es/mentions/style/index.js +57 -63
- package/es/menu/MenuContext.d.ts +0 -2
- package/es/menu/MenuContext.js +2 -0
- package/es/menu/MenuDivider.js +14 -20
- package/es/menu/MenuItem.d.ts +8 -9
- package/es/menu/MenuItem.js +66 -129
- package/es/menu/OverrideContext.d.ts +3 -1
- package/es/menu/OverrideContext.js +20 -19
- package/es/menu/SubMenu.d.ts +1 -1
- package/es/menu/SubMenu.js +31 -25
- package/es/menu/hooks/useItems.d.ts +6 -6
- package/es/menu/hooks/useItems.js +20 -34
- package/es/menu/index.d.ts +14 -5
- package/es/menu/index.js +10 -7
- package/es/menu/menu.d.ts +1 -1
- package/es/menu/menu.js +83 -79
- package/es/menu/style/horizontal.js +23 -20
- package/es/menu/style/index.d.ts +293 -7
- package/es/menu/style/index.js +334 -217
- package/es/menu/style/rtl.d.ts +2 -1
- package/es/menu/style/rtl.js +15 -11
- package/es/menu/style/theme.js +108 -101
- package/es/menu/style/vertical.js +72 -70
- package/es/message/PurePanel.d.ts +9 -8
- package/es/message/PurePanel.js +39 -39
- package/es/message/index.d.ts +12 -11
- package/es/message/index.js +61 -112
- package/es/message/style/index.d.ts +18 -2
- package/es/message/style/index.js +73 -65
- package/es/message/useMessage.d.ts +3 -3
- package/es/message/useMessage.js +120 -116
- package/es/message/util.js +1 -5
- package/es/modal/ConfirmDialog.d.ts +23 -10
- package/es/modal/ConfirmDialog.js +161 -106
- package/es/modal/Modal.d.ts +1 -105
- package/es/modal/Modal.js +108 -71
- package/es/modal/PurePanel.d.ts +5 -9
- package/es/modal/PurePanel.js +39 -70
- package/es/modal/components/ConfirmCancelBtn.d.ts +10 -0
- package/es/modal/components/ConfirmCancelBtn.js +29 -0
- package/es/modal/components/ConfirmOkBtn.d.ts +9 -0
- package/es/modal/components/ConfirmOkBtn.js +30 -0
- package/es/modal/components/NormalCancelBtn.d.ts +8 -0
- package/es/modal/components/NormalCancelBtn.js +15 -0
- package/es/modal/components/NormalOkBtn.d.ts +8 -0
- package/es/modal/components/NormalOkBtn.js +19 -0
- package/es/modal/confirm.d.ts +1 -1
- package/es/modal/confirm.js +42 -52
- package/es/modal/context.d.ts +8 -0
- package/es/modal/context.js +4 -0
- package/es/modal/destroyFns.d.ts +1 -1
- package/es/modal/index.d.ts +1 -1
- package/es/modal/index.js +5 -10
- package/es/modal/interface.d.ts +125 -0
- package/es/modal/interface.js +1 -0
- package/es/modal/locale.d.ts +1 -1
- package/es/modal/locale.js +19 -7
- package/es/modal/shared.d.ts +9 -0
- package/es/modal/shared.js +74 -0
- package/es/modal/style/confirmCmp.d.ts +3 -0
- package/es/modal/style/confirmCmp.js +82 -0
- package/es/modal/style/index.d.ts +62 -20
- package/es/modal/style/index.js +120 -188
- package/es/modal/useModal/HookModal.d.ts +6 -1
- package/es/modal/useModal/HookModal.js +51 -42
- package/es/modal/useModal/index.d.ts +7 -2
- package/es/modal/useModal/index.js +48 -27
- package/es/notification/PurePanel.d.ts +10 -8
- package/es/notification/PurePanel.js +73 -59
- package/es/notification/index.d.ts +13 -9
- package/es/notification/index.js +56 -113
- package/es/notification/interface.d.ts +16 -9
- package/es/notification/interface.js +1 -1
- package/es/notification/style/index.d.ts +25 -6
- package/es/notification/style/index.js +136 -143
- package/es/notification/style/placement.js +51 -33
- package/es/notification/style/pure-panel.d.ts +3 -0
- package/es/notification/style/pure-panel.js +16 -0
- package/es/notification/style/stack.d.ts +4 -0
- package/es/notification/style/stack.js +81 -0
- package/es/notification/useNotification.d.ts +3 -3
- package/es/notification/useNotification.js +128 -94
- package/es/notification/util.js +1 -8
- package/es/pagination/Pagination.d.ts +5 -3
- package/es/pagination/Pagination.js +87 -85
- package/es/pagination/Select.js +6 -6
- package/es/pagination/index.js +2 -0
- package/es/pagination/style/bordered.d.ts +3 -0
- package/es/pagination/style/bordered.js +69 -0
- package/es/pagination/style/index.d.ts +64 -1
- package/es/pagination/style/index.js +190 -225
- package/es/popconfirm/PurePanel.d.ts +5 -4
- package/es/popconfirm/PurePanel.js +79 -76
- package/es/popconfirm/index.d.ts +3 -1
- package/es/popconfirm/index.js +49 -63
- package/es/popconfirm/style/index.d.ts +8 -2
- package/es/popconfirm/style/index.js +42 -30
- package/es/popover/PurePanel.d.ts +7 -3
- package/es/popover/PurePanel.js +39 -37
- package/es/popover/index.d.ts +1 -1
- package/es/popover/index.js +40 -53
- package/es/popover/style/index.d.ts +28 -5
- package/es/popover/style/index.js +96 -85
- package/es/progress/Circle.js +39 -25
- package/es/progress/Line.js +65 -49
- package/es/progress/Steps.d.ts +1 -2
- package/es/progress/Steps.js +36 -19
- package/es/progress/index.d.ts +1 -1
- package/es/progress/index.js +2 -0
- package/es/progress/progress.d.ts +11 -10
- package/es/progress/progress.js +73 -65
- package/es/progress/style/index.d.ts +34 -1
- package/es/progress/style/index.js +92 -82
- package/es/progress/utils.d.ts +4 -0
- package/es/progress/utils.js +62 -12
- package/es/qr-code/index.d.ts +4 -0
- package/es/qr-code/index.js +112 -0
- package/es/qr-code/interface.d.ts +33 -0
- package/es/qr-code/interface.js +1 -0
- package/es/qr-code/style/index.d.ts +7 -0
- package/es/qr-code/style/index.js +61 -0
- package/es/qrcode/index.d.ts +2 -0
- package/es/qrcode/index.js +6 -0
- package/es/qrcode/interface.d.ts +1 -0
- package/es/qrcode/interface.js +3 -0
- package/es/qrcode/style/index.d.ts +1 -0
- package/es/qrcode/style/index.js +3 -0
- package/es/radio/group.js +60 -54
- package/es/radio/index.d.ts +3 -3
- package/es/radio/index.js +2 -0
- package/es/radio/interface.d.ts +1 -0
- package/es/radio/radio.d.ts +2 -2
- package/es/radio/radio.js +56 -59
- package/es/radio/radioButton.d.ts +2 -2
- package/es/radio/radioButton.js +5 -14
- package/es/radio/style/index.d.ts +74 -1
- package/es/radio/style/index.js +235 -253
- package/es/rate/index.d.ts +3 -2
- package/es/rate/index.js +28 -29
- package/es/rate/style/index.d.ts +27 -2
- package/es/rate/style/index.js +42 -46
- package/es/result/index.d.ts +8 -7
- package/es/result/index.js +57 -50
- package/es/result/noFound.d.ts +2 -1
- package/es/result/noFound.js +3 -3
- package/es/result/serverError.d.ts +2 -1
- package/es/result/serverError.js +2 -2
- package/es/result/style/index.d.ts +24 -3
- package/es/result/style/index.js +54 -55
- package/es/result/unauthorized.d.ts +2 -1
- package/es/result/unauthorized.js +2 -2
- package/es/row/index.js +2 -0
- package/es/row/style/index.js +2 -1
- package/es/segmented/index.d.ts +2 -1
- package/es/segmented/index.js +44 -46
- package/es/segmented/style/index.d.ts +34 -1
- package/es/segmented/style/index.js +106 -86
- package/es/select/index.d.ts +18 -8
- package/es/select/index.js +143 -114
- package/es/select/style/dropdown.js +46 -40
- package/es/select/style/index.d.ts +101 -3
- package/es/select/style/index.js +158 -98
- package/es/select/style/multiple.d.ts +2 -1
- package/es/select/style/multiple.js +89 -93
- package/es/select/style/single.js +53 -60
- package/es/select/useBuiltinPlacements.d.ts +3 -0
- package/es/select/useBuiltinPlacements.js +35 -0
- package/es/select/useIcons.d.ts +26 -0
- package/es/select/useIcons.js +81 -0
- package/es/select/useShowArrow.d.ts +8 -0
- package/es/select/useShowArrow.js +9 -0
- package/es/skeleton/Avatar.js +28 -23
- package/es/skeleton/Button.js +28 -24
- package/es/skeleton/Element.d.ts +1 -0
- package/es/skeleton/Element.js +14 -13
- package/es/skeleton/Image.js +26 -20
- package/es/skeleton/Input.js +27 -23
- package/es/skeleton/Node.js +26 -20
- package/es/skeleton/Paragraph.js +10 -17
- package/es/skeleton/Skeleton.d.ts +2 -1
- package/es/skeleton/Skeleton.js +60 -75
- package/es/skeleton/Title.js +6 -8
- package/es/skeleton/index.js +2 -0
- package/es/skeleton/style/index.d.ts +36 -1
- package/es/skeleton/style/index.js +148 -165
- package/es/slider/SliderTooltip.d.ts +2 -1
- package/es/slider/SliderTooltip.js +7 -8
- package/es/slider/index.d.ts +31 -11
- package/es/slider/index.js +97 -101
- package/es/slider/style/index.d.ts +82 -1
- package/es/slider/style/index.js +160 -122
- package/es/space/Compact.d.ts +1 -0
- package/es/space/Compact.js +43 -45
- package/es/space/Item.d.ts +4 -5
- package/es/space/Item.js +12 -36
- package/es/space/context.d.ts +6 -0
- package/es/space/context.js +5 -0
- package/es/space/index.d.ts +9 -7
- package/es/space/index.js +72 -95
- package/es/space/style/compact.js +6 -6
- package/es/space/style/index.d.ts +4 -1
- package/es/space/style/index.js +49 -13
- package/es/spin/index.d.ts +7 -9
- package/es/spin/index.js +107 -122
- package/es/spin/style/index.d.ts +23 -1
- package/es/spin/style/index.js +124 -94
- package/es/statistic/Countdown.d.ts +3 -3
- package/es/statistic/Countdown.js +8 -19
- package/es/statistic/Number.js +14 -19
- package/es/statistic/Statistic.d.ts +3 -6
- package/es/statistic/Statistic.js +58 -46
- package/es/statistic/index.d.ts +11 -3
- package/es/statistic/index.js +2 -0
- package/es/statistic/interface.d.ts +0 -0
- package/es/statistic/interface.js +0 -0
- package/es/statistic/style/index.d.ts +16 -1
- package/es/statistic/style/index.js +38 -36
- package/es/statistic/utils.d.ts +2 -2
- package/es/statistic/utils.js +25 -9
- package/es/steps/index.d.ts +1 -0
- package/es/steps/index.js +51 -50
- package/es/steps/style/custom-icon.js +18 -17
- package/es/steps/style/index.d.ts +73 -20
- package/es/steps/style/index.js +114 -125
- package/es/steps/style/inline.d.ts +1 -1
- package/es/steps/style/inline.js +34 -36
- package/es/steps/style/label-placement.d.ts +1 -1
- package/es/steps/style/label-placement.js +16 -15
- package/es/steps/style/nav.d.ts +1 -1
- package/es/steps/style/nav.js +42 -38
- package/es/steps/style/progress-dot.d.ts +1 -1
- package/es/steps/style/progress-dot.js +54 -52
- package/es/steps/style/progress.js +21 -21
- package/es/steps/style/rtl.js +15 -15
- package/es/steps/style/small.d.ts +1 -1
- package/es/steps/style/small.js +28 -27
- package/es/steps/style/vertical.d.ts +1 -1
- package/es/steps/style/vertical.js +28 -27
- package/es/steps/useLegacyItems.js +6 -10
- package/es/style/compact-item-vertical.d.ts +4 -3
- package/es/style/compact-item-vertical.js +28 -36
- package/es/style/compact-item.d.ts +18 -10
- package/es/style/compact-item.js +38 -38
- package/es/style/index.d.ts +4 -5
- package/es/style/index.js +17 -13
- package/es/style/motion/collapse.js +8 -8
- package/es/style/motion/fade.js +7 -5
- package/es/style/motion/motion.js +10 -12
- package/es/style/motion/move.js +9 -7
- package/es/style/motion/slide.js +13 -7
- package/es/style/motion/zoom.js +9 -7
- package/es/style/operationUnit.js +1 -1
- package/es/style/placementArrow.d.ts +13 -12
- package/es/style/placementArrow.js +62 -91
- package/es/style/roundedArrow.d.ts +6 -1
- package/es/style/roundedArrow.js +49 -29
- package/es/switch/index.d.ts +11 -0
- package/es/switch/index.js +62 -44
- package/es/switch/style/index.d.ts +71 -1
- package/es/switch/style/index.js +179 -137
- package/es/table/Column.js +0 -2
- package/es/table/ColumnGroup.js +0 -2
- package/es/table/ExpandIcon.d.ts +1 -1
- package/es/table/ExpandIcon.js +12 -10
- package/es/table/InternalTable.d.ts +32 -0
- package/es/table/InternalTable.js +442 -0
- package/es/table/RcTable/VirtualTable.d.ts +5 -0
- package/es/table/RcTable/VirtualTable.js +11 -0
- package/es/table/RcTable/index.d.ts +5 -0
- package/es/table/RcTable/index.js +11 -0
- package/es/table/Table.d.ts +10 -40
- package/es/table/Table.js +24 -443
- package/es/table/hooks/useContainerWidth.d.ts +1 -0
- package/es/table/hooks/useContainerWidth.js +14 -0
- package/es/table/hooks/useFilter/FilterDropdown.d.ts +6 -4
- package/es/table/hooks/useFilter/FilterDropdown.js +139 -174
- package/es/table/hooks/useFilter/FilterSearch.d.ts +1 -1
- package/es/table/hooks/useFilter/FilterSearch.js +8 -10
- package/es/table/hooks/useFilter/FilterWrapper.d.ts +1 -1
- package/es/table/hooks/useFilter/FilterWrapper.js +10 -8
- package/es/table/hooks/useFilter/index.d.ts +5 -3
- package/es/table/hooks/useFilter/index.js +76 -86
- package/es/table/hooks/useLazyKVMap.js +1 -8
- package/es/table/hooks/usePagination.d.ts +3 -2
- package/es/table/hooks/usePagination.js +28 -60
- package/es/table/hooks/useSelection.d.ts +5 -3
- package/es/table/hooks/useSelection.js +196 -241
- package/es/table/hooks/useSorter.js +90 -122
- package/es/table/hooks/useTitleColumns.js +1 -7
- package/es/table/index.d.ts +5 -3
- package/es/table/index.js +2 -0
- package/es/table/interface.d.ts +25 -11
- package/es/table/interface.js +2 -2
- package/es/table/style/bordered.d.ts +1 -1
- package/es/table/style/bordered.js +41 -41
- package/es/table/style/ellipsis.js +10 -11
- package/es/table/style/empty.js +10 -9
- package/es/table/style/expand.d.ts +1 -1
- package/es/table/style/expand.js +58 -62
- package/es/table/style/filter.js +64 -60
- package/es/table/style/fixed.js +37 -33
- package/es/table/style/index.d.ts +161 -6
- package/es/table/style/index.js +217 -160
- package/es/table/style/pagination.d.ts +1 -1
- package/es/table/style/pagination.js +12 -10
- package/es/table/style/radius.d.ts +1 -1
- package/es/table/style/radius.js +20 -24
- package/es/table/style/rtl.js +22 -10
- package/es/table/style/selection.d.ts +1 -1
- package/es/table/style/selection.js +46 -27
- package/es/table/style/size.d.ts +1 -1
- package/es/table/style/size.js +23 -23
- package/es/table/style/sorter.js +23 -23
- package/es/table/style/sticky.d.ts +1 -1
- package/es/table/style/sticky.js +20 -14
- package/es/table/style/summary.d.ts +1 -1
- package/es/table/style/summary.js +14 -12
- package/es/table/style/virtual.d.ts +5 -0
- package/es/table/style/virtual.js +50 -0
- package/es/table/util.js +1 -5
- package/es/tabs/TabPane.d.ts +1 -1
- package/es/tabs/TabPane.js +0 -2
- package/es/tabs/hooks/useAnimateConfig.js +3 -7
- package/es/tabs/hooks/useLegacyItems.js +10 -21
- package/es/tabs/index.d.ts +6 -6
- package/es/tabs/index.js +73 -66
- package/es/tabs/style/index.d.ts +126 -9
- package/es/tabs/style/index.js +256 -221
- package/es/tabs/style/motion.js +10 -8
- package/es/tag/CheckableTag.d.ts +1 -1
- package/es/tag/CheckableTag.js +35 -35
- package/es/tag/index.d.ts +5 -2
- package/es/tag/index.js +78 -86
- package/es/tag/style/index.d.ts +23 -1
- package/es/tag/style/index.js +73 -98
- package/es/tag/style/presetCmp.d.ts +3 -0
- package/es/tag/style/presetCmp.js +34 -0
- package/es/tag/style/statusCmp.d.ts +3 -0
- package/es/tag/style/statusCmp.js +22 -0
- package/es/theme/context.d.ts +31 -0
- package/es/theme/context.js +15 -0
- package/es/theme/getDesignToken.d.ts +4 -0
- package/es/theme/getDesignToken.js +12 -0
- package/es/theme/index.d.ts +27 -0
- package/es/theme/index.js +41 -0
- package/es/theme/interface/alias.d.ts +545 -0
- package/es/theme/interface/alias.js +1 -0
- package/es/theme/interface/components.d.ts +133 -0
- package/es/theme/interface/components.js +1 -0
- package/es/theme/interface/index.d.ts +20 -0
- package/es/theme/interface/index.js +1 -0
- package/es/theme/interface/maps/colors.d.ts +501 -0
- package/es/theme/interface/maps/colors.js +1 -0
- package/es/theme/interface/maps/font.d.ts +117 -0
- package/es/theme/interface/maps/font.js +1 -0
- package/es/theme/interface/maps/index.d.ts +29 -0
- package/es/theme/interface/maps/index.js +4 -0
- package/es/theme/interface/maps/size.d.ts +69 -0
- package/es/theme/interface/maps/size.js +1 -0
- package/es/theme/interface/maps/style.d.ts +42 -0
- package/es/theme/interface/maps/style.js +1 -0
- package/es/theme/interface/presetColors.d.ts +11 -0
- package/es/theme/interface/presetColors.js +1 -0
- package/es/theme/interface/seeds.d.ts +223 -0
- package/es/theme/interface/seeds.js +1 -0
- package/es/theme/internal.d.ts +13 -0
- package/es/theme/internal.js +12 -0
- package/es/theme/themes/ColorMap.d.ts +15 -0
- package/es/theme/themes/ColorMap.js +1 -0
- package/es/theme/themes/compact/genCompactSizeMapToken.d.ts +2 -0
- package/es/theme/themes/compact/genCompactSizeMapToken.js +16 -0
- package/es/theme/themes/compact/index.d.ts +4 -0
- package/es/theme/themes/compact/index.js +32 -0
- package/es/theme/themes/dark/colorAlgorithm.d.ts +2 -0
- package/es/theme/themes/dark/colorAlgorithm.js +8 -0
- package/es/theme/themes/dark/colors.d.ts +3 -0
- package/es/theme/themes/dark/colors.js +46 -0
- package/es/theme/themes/dark/index.d.ts +4 -0
- package/es/theme/themes/dark/index.js +34 -0
- package/es/theme/themes/default/colorAlgorithm.d.ts +2 -0
- package/es/theme/themes/default/colorAlgorithm.js +8 -0
- package/es/theme/themes/default/colors.d.ts +3 -0
- package/es/theme/themes/default/colors.js +44 -0
- package/es/theme/themes/default/index.d.ts +2 -0
- package/es/theme/themes/default/index.js +32 -0
- package/es/theme/themes/seed.d.ts +4 -0
- package/es/theme/themes/seed.js +69 -0
- package/es/theme/themes/shared/genColorMapToken.d.ts +8 -0
- package/es/theme/themes/shared/genColorMapToken.js +78 -0
- package/es/theme/themes/shared/genCommonMapToken.d.ts +2 -0
- package/es/theme/themes/shared/genCommonMapToken.js +33 -0
- package/es/theme/themes/shared/genControlHeight.d.ts +3 -0
- package/es/theme/themes/shared/genControlHeight.js +9 -0
- package/es/theme/themes/shared/genFontSizes.d.ts +4 -0
- package/es/theme/themes/shared/genFontSizes.js +19 -0
- package/es/theme/themes/shared/genRadius.d.ts +3 -0
- package/es/theme/themes/shared/genRadius.js +50 -0
- package/es/theme/themes/shared/genSizeMapToken.d.ts +2 -0
- package/es/theme/themes/shared/genSizeMapToken.js +23 -0
- package/es/theme/themes/themeConfig.d.ts +3 -0
- package/es/theme/themes/themeConfig.js +65 -0
- package/es/theme/useToken.d.ts +19 -0
- package/es/theme/useToken.js +128 -0
- package/es/theme/util/alias.d.ts +12 -0
- package/es/theme/util/alias.js +142 -0
- package/es/theme/util/calc/CSSCalculator.d.ts +14 -0
- package/es/theme/util/calc/CSSCalculator.js +101 -0
- package/es/theme/util/calc/NumCalculator.d.ts +10 -0
- package/es/theme/util/calc/NumCalculator.js +69 -0
- package/es/theme/util/calc/calculator.d.ts +30 -0
- package/es/theme/util/calc/calculator.js +6 -0
- package/es/theme/util/calc/index.d.ts +5 -0
- package/es/theme/util/calc/index.js +9 -0
- package/es/theme/util/genComponentStyleHook.d.ts +90 -0
- package/es/theme/util/genComponentStyleHook.js +237 -0
- package/es/theme/util/genPresetColor.d.ts +16 -0
- package/es/theme/util/genPresetColor.js +15 -0
- package/es/theme/util/getAlphaColor.d.ts +2 -0
- package/es/theme/util/getAlphaColor.js +40 -0
- package/es/theme/util/maxmin.d.ts +7 -0
- package/es/theme/util/maxmin.js +27 -0
- package/es/theme/util/statistic.d.ts +11 -0
- package/es/theme/util/statistic.js +67 -0
- package/es/theme/util/useResetIconStyle.d.ts +4 -0
- package/es/theme/util/useResetIconStyle.js +34 -0
- package/es/time-picker/index.d.ts +4 -3
- package/es/time-picker/index.js +15 -23
- package/es/time-picker/locale/de_DE.js +2 -1
- package/es/time-picker/locale/eu_ES.d.ts +3 -0
- package/es/time-picker/locale/eu_ES.js +4 -0
- package/es/time-picker/locale/fr_BE.js +2 -1
- package/es/time-picker/locale/my_MM.d.ts +3 -0
- package/es/time-picker/locale/my_MM.js +5 -0
- package/es/time-picker/locale/vi_VN.js +2 -1
- package/es/timeline/Timeline.d.ts +2 -0
- package/es/timeline/Timeline.js +47 -85
- package/es/timeline/TimelineItem.d.ts +4 -1
- package/es/timeline/TimelineItem.js +24 -31
- package/es/timeline/TimelineItemList.d.ts +7 -0
- package/es/timeline/TimelineItemList.js +84 -0
- package/es/timeline/index.js +2 -0
- package/es/timeline/style/index.d.ts +29 -1
- package/es/timeline/style/index.js +78 -67
- package/es/timeline/useItems.d.ts +4 -0
- package/es/timeline/useItems.js +13 -0
- package/es/tooltip/PurePanel.d.ts +3 -1
- package/es/tooltip/PurePanel.js +35 -30
- package/es/tooltip/index.d.ts +19 -4
- package/es/tooltip/index.js +137 -196
- package/es/tooltip/style/index.d.ts +11 -4
- package/es/tooltip/style/index.js +67 -80
- package/es/tooltip/util.js +10 -10
- package/es/tour/PurePanel.d.ts +2 -2
- package/es/tour/PurePanel.js +36 -37
- package/es/tour/index.d.ts +1 -1
- package/es/tour/index.js +68 -38
- package/es/tour/interface.d.ts +7 -3
- package/es/tour/panelRender.d.ts +10 -2
- package/es/tour/panelRender.js +107 -96
- package/es/tour/style/index.d.ts +27 -2
- package/es/tour/style/index.js +106 -93
- package/es/transfer/ListBody.d.ts +6 -19
- package/es/transfer/ListBody.js +110 -157
- package/es/transfer/ListItem.d.ts +2 -2
- package/es/transfer/ListItem.js +52 -51
- package/es/transfer/hooks/useData.d.ts +3 -0
- package/es/transfer/hooks/useData.js +40 -0
- package/es/transfer/hooks/useSelection.d.ts +9 -0
- package/es/transfer/hooks/useSelection.js +59 -0
- package/es/transfer/index.d.ts +18 -68
- package/es/transfer/index.js +336 -446
- package/es/transfer/list.d.ts +13 -39
- package/es/transfer/list.js +267 -371
- package/es/transfer/operation.d.ts +3 -3
- package/es/transfer/operation.js +19 -16
- package/es/transfer/search.d.ts +2 -1
- package/es/transfer/search.js +14 -9
- package/es/transfer/style/index.d.ts +31 -1
- package/es/transfer/style/index.js +134 -137
- package/es/tree/DirectoryTree.d.ts +1 -1
- package/es/tree/DirectoryTree.js +59 -81
- package/es/tree/Tree.d.ts +18 -17
- package/es/tree/Tree.js +59 -47
- package/es/tree/index.d.ts +5 -5
- package/es/tree/index.js +3 -1
- package/es/tree/style/index.d.ts +38 -6
- package/es/tree/style/index.js +139 -126
- package/es/tree/utils/dictUtil.d.ts +6 -2
- package/es/tree/utils/dictUtil.js +14 -26
- package/es/tree/utils/dropIndicator.d.ts +2 -2
- package/es/tree/utils/dropIndicator.js +12 -12
- package/es/tree/utils/iconUtil.d.ts +11 -4
- package/es/tree/utils/iconUtil.js +20 -26
- package/es/tree-select/index.d.ts +16 -5
- package/es/tree-select/index.js +155 -129
- package/es/tree-select/style/index.d.ts +7 -1
- package/es/tree-select/style/index.js +32 -26
- package/es/typography/Base/Ellipsis.d.ts +1 -4
- package/es/typography/Base/Ellipsis.js +48 -60
- package/es/typography/Base/EllipsisTooltip.d.ts +1 -4
- package/es/typography/Base/EllipsisTooltip.js +6 -10
- package/es/typography/Base/index.d.ts +1 -1
- package/es/typography/Base/index.js +155 -218
- package/es/typography/Editable.d.ts +1 -1
- package/es/typography/Editable.js +52 -55
- package/es/typography/Link.js +14 -19
- package/es/typography/Paragraph.js +3 -2
- package/es/typography/Text.js +11 -17
- package/es/typography/Title.d.ts +1 -1
- package/es/typography/Title.js +12 -18
- package/es/typography/Typography.d.ts +1 -0
- package/es/typography/Typography.js +45 -41
- package/es/typography/hooks/useMergedConfig.js +2 -3
- package/es/typography/hooks/useUpdatedEffect.js +0 -2
- package/es/typography/index.js +2 -0
- package/es/typography/style/index.d.ts +14 -4
- package/es/typography/style/index.js +43 -46
- package/es/typography/style/mixins.d.ts +3 -3
- package/es/typography/style/mixins.js +38 -27
- package/es/upload/Dragger.d.ts +2 -1
- package/es/upload/Dragger.js +6 -14
- package/es/upload/Upload.d.ts +15 -3
- package/es/upload/Upload.js +216 -257
- package/es/upload/UploadList/ListItem.d.ts +1 -1
- package/es/upload/UploadList/ListItem.js +71 -78
- package/es/upload/UploadList/index.d.ts +6 -2
- package/es/upload/UploadList/index.js +79 -100
- package/es/upload/index.js +2 -0
- package/es/upload/interface.d.ts +13 -12
- package/es/upload/style/dragger.js +21 -22
- package/es/upload/style/index.d.ts +12 -5
- package/es/upload/style/index.js +29 -26
- package/es/upload/style/list.js +41 -47
- package/es/upload/style/motion.js +13 -11
- package/es/upload/style/picture.js +73 -67
- package/es/upload/style/rtl.js +6 -4
- package/es/upload/utils.d.ts +3 -3
- package/es/upload/utils.js +14 -27
- package/es/version/index.js +2 -0
- package/es/version/token-meta.json +1 -1
- package/es/version/token.json +1 -1
- package/es/version/version.d.ts +1 -1
- package/es/version/version.js +1 -1
- package/es/watermark/context.d.ts +8 -0
- package/es/watermark/context.js +22 -0
- package/es/watermark/index.d.ts +26 -0
- package/es/watermark/index.js +243 -0
- package/es/watermark/useClips.d.ts +7 -0
- package/es/watermark/useClips.js +118 -0
- package/es/watermark/useRafDebounce.d.ts +4 -0
- package/es/watermark/useRafDebounce.js +23 -0
- package/es/watermark/useWatermark.d.ts +13 -0
- package/es/watermark/useWatermark.js +54 -0
- package/es/watermark/utils.d.ts +8 -0
- package/es/watermark/utils.js +28 -0
- package/lib/_util/ActionButton.d.ts +4 -0
- package/lib/_util/ActionButton.js +44 -64
- package/lib/_util/PurePanel.d.ts +4 -1
- package/lib/_util/PurePanel.js +60 -61
- package/lib/_util/capitalize.js +1 -3
- package/lib/_util/colors.d.ts +13 -5
- package/lib/_util/colors.js +25 -9
- package/lib/_util/easings.js +4 -6
- package/lib/_util/extendsObject.d.ts +3 -0
- package/lib/_util/extendsObject.js +26 -0
- package/lib/_util/gapSize.d.ts +3 -0
- package/lib/_util/gapSize.js +17 -0
- package/lib/_util/getRenderPropValue.js +1 -8
- package/lib/_util/getScroll.js +1 -8
- package/lib/_util/hooks/useClosable.d.ts +10 -0
- package/lib/_util/hooks/useClosable.js +29 -0
- package/lib/_util/hooks/useForceUpdate.js +12 -14
- package/lib/_util/hooks/useMultipleSelect.d.ts +6 -0
- package/lib/_util/hooks/useMultipleSelect.js +53 -0
- package/lib/_util/hooks/usePatchElement.js +17 -18
- package/lib/_util/hooks/useProxyImperativeHandle.d.ts +4 -0
- package/lib/_util/hooks/useProxyImperativeHandle.js +39 -0
- package/lib/_util/hooks/useSyncState.js +6 -11
- package/lib/_util/hooks/useZIndex.d.ts +6 -0
- package/lib/_util/hooks/useZIndex.js +65 -0
- package/lib/_util/isNumeric.js +2 -5
- package/lib/_util/motion.d.ts +2 -3
- package/lib/_util/motion.js +6 -28
- package/lib/_util/placements.d.ts +11 -7
- package/lib/_util/placements.js +170 -88
- package/lib/_util/reactNode.d.ts +1 -1
- package/lib/_util/reactNode.js +1 -8
- package/lib/_util/responsiveObserver.d.ts +22 -0
- package/lib/_util/responsiveObserver.js +130 -0
- package/lib/_util/scrollTo.d.ts +1 -1
- package/lib/_util/scrollTo.js +12 -22
- package/lib/_util/statusUtils.d.ts +2 -2
- package/lib/_util/statusUtils.js +8 -15
- package/lib/_util/styleChecker.d.ts +0 -1
- package/lib/_util/styleChecker.js +4 -37
- package/lib/_util/throttleByAnimationFrame.d.ts +3 -4
- package/lib/_util/throttleByAnimationFrame.js +6 -18
- package/lib/_util/transButton.js +14 -34
- package/lib/_util/transKeys.d.ts +2 -0
- package/lib/_util/transKeys.js +26 -0
- package/lib/_util/type.d.ts +4 -8
- package/lib/_util/type.js +1 -22
- package/lib/_util/warning.d.ts +22 -2
- package/lib/_util/warning.js +54 -21
- package/lib/_util/wave/WaveEffect.d.ts +8 -0
- package/lib/_util/wave/WaveEffect.js +159 -0
- package/lib/_util/wave/index.d.ts +3 -28
- package/lib/_util/wave/index.js +57 -287
- package/lib/_util/wave/interface.d.ts +10 -0
- package/lib/_util/wave/interface.js +7 -0
- package/lib/_util/wave/style.d.ts +6 -2
- package/lib/_util/wave/style.js +27 -81
- package/lib/_util/wave/useWave.d.ts +3 -0
- package/lib/_util/wave/useWave.js +55 -0
- package/lib/_util/wave/util.d.ts +3 -0
- package/lib/_util/wave/util.js +37 -0
- package/lib/_util/zindexContext.d.ts +3 -0
- package/lib/_util/zindexContext.js +13 -0
- package/lib/affix/index.d.ts +11 -48
- package/lib/affix/index.js +181 -293
- package/lib/affix/style/index.d.ts +7 -1
- package/lib/affix/style/index.js +16 -20
- package/lib/affix/utils.d.ts +2 -13
- package/lib/affix/utils.js +4 -84
- package/lib/alert/Alert.d.ts +38 -0
- package/lib/alert/Alert.js +193 -0
- package/lib/alert/ErrorBoundary.d.ts +1 -1
- package/lib/alert/ErrorBoundary.js +22 -33
- package/lib/alert/index.d.ts +3 -32
- package/lib/alert/index.js +7 -208
- package/lib/alert/style/index.d.ts +20 -7
- package/lib/alert/style/index.js +87 -107
- package/lib/anchor/Anchor.d.ts +15 -1
- package/lib/anchor/Anchor.js +130 -149
- package/lib/anchor/AnchorLink.d.ts +5 -2
- package/lib/anchor/AnchorLink.js +50 -50
- package/lib/anchor/context.js +3 -7
- package/lib/anchor/index.js +6 -10
- package/lib/anchor/style/index.d.ts +14 -1
- package/lib/anchor/style/index.js +105 -76
- package/lib/app/context.d.ts +16 -0
- package/lib/app/context.js +15 -0
- package/lib/app/index.d.ts +16 -0
- package/lib/app/index.js +88 -0
- package/lib/app/style/index.d.ts +6 -0
- package/lib/app/style/index.js +31 -0
- package/lib/auto-complete/index.d.ts +9 -11
- package/lib/auto-complete/index.js +64 -84
- package/lib/avatar/AvatarContext.d.ts +9 -0
- package/lib/avatar/AvatarContext.js +10 -0
- package/lib/avatar/avatar.d.ts +3 -2
- package/lib/avatar/avatar.js +87 -118
- package/lib/avatar/group.d.ts +3 -1
- package/lib/avatar/group.js +67 -58
- package/lib/avatar/index.js +7 -11
- package/lib/avatar/style/index.d.ts +49 -1
- package/lib/avatar/style/index.js +79 -84
- package/lib/back-top/index.d.ts +3 -2
- package/lib/back-top/index.js +60 -88
- package/lib/back-top/style/index.d.ts +4 -1
- package/lib/back-top/style/index.js +49 -52
- package/lib/badge/Ribbon.d.ts +2 -1
- package/lib/badge/Ribbon.js +49 -55
- package/lib/badge/ScrollNumber.d.ts +2 -2
- package/lib/badge/ScrollNumber.js +38 -58
- package/lib/badge/SingleNumber.d.ts +2 -2
- package/lib/badge/SingleNumber.js +40 -56
- package/lib/badge/index.d.ts +13 -3
- package/lib/badge/index.js +119 -137
- package/lib/badge/style/index.d.ts +61 -1
- package/lib/badge/style/index.js +123 -172
- package/lib/badge/style/ribbon.d.ts +3 -0
- package/lib/badge/style/ribbon.js +77 -0
- package/lib/breadcrumb/Breadcrumb.d.ts +47 -14
- package/lib/breadcrumb/Breadcrumb.js +124 -137
- package/lib/breadcrumb/BreadcrumbItem.d.ts +18 -6
- package/lib/breadcrumb/BreadcrumbItem.js +69 -69
- package/lib/breadcrumb/BreadcrumbSeparator.js +9 -15
- package/lib/breadcrumb/index.d.ts +1 -1
- package/lib/breadcrumb/index.js +4 -7
- package/lib/breadcrumb/style/index.d.ts +41 -1
- package/lib/breadcrumb/style/index.js +58 -62
- package/lib/breadcrumb/useItemRender.d.ts +8 -0
- package/lib/breadcrumb/useItemRender.js +64 -0
- package/lib/breadcrumb/useItems.d.ts +6 -0
- package/lib/breadcrumb/useItems.js +46 -0
- package/lib/button/IconWrapper.d.ts +9 -0
- package/lib/button/IconWrapper.js +24 -0
- package/lib/button/LoadingIcon.d.ts +2 -0
- package/lib/button/LoadingIcon.js +46 -33
- package/lib/button/button-group.js +37 -58
- package/lib/button/button.d.ts +14 -22
- package/lib/button/button.js +152 -235
- package/lib/button/buttonHelpers.d.ts +14 -0
- package/lib/button/buttonHelpers.js +73 -0
- package/lib/button/index.d.ts +2 -1
- package/lib/button/index.js +17 -7
- package/lib/button/style/compactCmp.d.ts +3 -0
- package/lib/button/style/compactCmp.js +52 -0
- package/lib/button/style/group.js +26 -30
- package/lib/button/style/index.d.ts +149 -4
- package/lib/button/style/index.js +229 -216
- package/lib/calendar/Header.d.ts +4 -4
- package/lib/calendar/Header.js +62 -80
- package/lib/calendar/generateCalendar.d.ts +17 -3
- package/lib/calendar/generateCalendar.js +159 -154
- package/lib/calendar/index.d.ts +12 -3
- package/lib/calendar/index.js +6 -9
- package/lib/calendar/locale/ar_EG.js +3 -7
- package/lib/calendar/locale/az_AZ.js +3 -7
- package/lib/calendar/locale/bg_BG.js +3 -7
- package/lib/calendar/locale/bn_BD.js +3 -7
- package/lib/calendar/locale/by_BY.js +3 -7
- package/lib/calendar/locale/ca_ES.js +3 -7
- package/lib/calendar/locale/cs_CZ.js +3 -7
- package/lib/calendar/locale/da_DK.js +3 -7
- package/lib/calendar/locale/de_DE.js +3 -7
- package/lib/calendar/locale/el_GR.js +3 -7
- package/lib/calendar/locale/en_GB.js +3 -7
- package/lib/calendar/locale/en_US.js +3 -7
- package/lib/calendar/locale/es_ES.js +3 -7
- package/lib/calendar/locale/et_EE.js +3 -7
- package/lib/calendar/locale/eu_ES.d.ts +2 -0
- package/lib/calendar/locale/eu_ES.js +9 -0
- package/lib/calendar/locale/fa_IR.js +3 -7
- package/lib/calendar/locale/fi_FI.js +3 -7
- package/lib/calendar/locale/fr_BE.js +3 -7
- package/lib/calendar/locale/fr_CA.js +3 -7
- package/lib/calendar/locale/fr_FR.js +3 -7
- package/lib/calendar/locale/ga_IE.js +3 -7
- package/lib/calendar/locale/gl_ES.js +3 -7
- package/lib/calendar/locale/he_IL.js +3 -7
- package/lib/calendar/locale/hi_IN.js +3 -7
- package/lib/calendar/locale/hr_HR.js +3 -7
- package/lib/calendar/locale/hu_HU.js +3 -7
- package/lib/calendar/locale/id_ID.js +3 -7
- package/lib/calendar/locale/is_IS.js +3 -7
- package/lib/calendar/locale/it_IT.js +3 -7
- package/lib/calendar/locale/ja_JP.js +3 -7
- package/lib/calendar/locale/ka_GE.js +3 -7
- package/lib/calendar/locale/kk_KZ.js +3 -7
- package/lib/calendar/locale/km_KH.js +3 -7
- package/lib/calendar/locale/kmr_IQ.js +3 -7
- package/lib/calendar/locale/kn_IN.js +3 -7
- package/lib/calendar/locale/ko_KR.js +3 -7
- package/lib/calendar/locale/lt_LT.js +3 -7
- package/lib/calendar/locale/lv_LV.js +3 -7
- package/lib/calendar/locale/mk_MK.js +3 -7
- package/lib/calendar/locale/ml_IN.js +3 -7
- package/lib/calendar/locale/mn_MN.js +3 -7
- package/lib/calendar/locale/ms_MY.js +3 -7
- package/lib/calendar/locale/my_MM.d.ts +2 -0
- package/lib/calendar/locale/my_MM.js +9 -0
- package/lib/calendar/locale/nb_NO.js +3 -7
- package/lib/calendar/locale/nl_BE.js +3 -7
- package/lib/calendar/locale/nl_NL.js +3 -7
- package/lib/calendar/locale/pl_PL.js +3 -7
- package/lib/calendar/locale/pt_BR.js +3 -7
- package/lib/calendar/locale/pt_PT.js +3 -7
- package/lib/calendar/locale/ro_RO.js +3 -7
- package/lib/calendar/locale/ru_RU.js +3 -7
- package/lib/calendar/locale/si_LK.js +3 -7
- package/lib/calendar/locale/sk_SK.js +3 -7
- package/lib/calendar/locale/sl_SI.js +3 -7
- package/lib/calendar/locale/sr_RS.js +3 -7
- package/lib/calendar/locale/sv_SE.js +3 -7
- package/lib/calendar/locale/ta_IN.js +3 -7
- package/lib/calendar/locale/th_TH.js +3 -7
- package/lib/calendar/locale/tk_TK.js +3 -7
- package/lib/calendar/locale/tr_TR.js +3 -7
- package/lib/calendar/locale/uk_UA.js +3 -7
- package/lib/calendar/locale/ur_PK.js +3 -7
- package/lib/calendar/locale/vi_VN.js +3 -7
- package/lib/calendar/locale/zh_CN.js +3 -7
- package/lib/calendar/locale/zh_TW.js +3 -7
- package/lib/calendar/style/index.d.ts +33 -8
- package/lib/calendar/style/index.js +77 -85
- package/lib/card/Card.d.ts +6 -3
- package/lib/card/Card.js +107 -123
- package/lib/card/Grid.js +22 -36
- package/lib/card/Meta.js +31 -48
- package/lib/card/index.js +10 -12
- package/lib/card/style/index.d.ts +49 -1
- package/lib/card/style/index.js +152 -161
- package/lib/carousel/index.d.ts +4 -1
- package/lib/carousel/index.js +62 -64
- package/lib/carousel/style/index.d.ts +18 -1
- package/lib/carousel/style/index.js +54 -55
- package/lib/cascader/Panel.d.ts +6 -0
- package/lib/cascader/Panel.js +69 -0
- package/lib/cascader/hooks/useBase.d.ts +7 -0
- package/lib/cascader/hooks/useBase.js +19 -0
- package/lib/cascader/hooks/useCheckable.d.ts +2 -0
- package/lib/cascader/hooks/useCheckable.js +16 -0
- package/lib/cascader/hooks/useColumnIcons.d.ts +2 -0
- package/lib/cascader/hooks/useColumnIcons.js +25 -0
- package/lib/cascader/index.d.ts +17 -8
- package/lib/cascader/index.js +178 -212
- package/lib/cascader/style/columns.d.ts +4 -0
- package/lib/cascader/style/columns.js +92 -0
- package/lib/cascader/style/index.d.ts +46 -1
- package/lib/cascader/style/index.js +38 -109
- package/lib/cascader/style/panel.d.ts +2 -0
- package/lib/cascader/style/panel.js +37 -0
- package/lib/checkbox/Checkbox.d.ts +5 -1
- package/lib/checkbox/Checkbox.js +68 -88
- package/lib/checkbox/Group.d.ts +7 -9
- package/lib/checkbox/Group.js +80 -103
- package/lib/checkbox/GroupContext.d.ts +12 -0
- package/lib/checkbox/GroupContext.js +10 -0
- package/lib/checkbox/index.d.ts +3 -1
- package/lib/checkbox/index.js +9 -10
- package/lib/checkbox/style/index.d.ts +2 -1
- package/lib/checkbox/style/index.js +86 -119
- package/lib/col/index.js +3 -5
- package/lib/col/style/index.js +3 -5
- package/lib/collapse/Collapse.d.ts +11 -6
- package/lib/collapse/Collapse.js +77 -82
- package/lib/collapse/CollapsePanel.d.ts +1 -1
- package/lib/collapse/CollapsePanel.js +26 -33
- package/lib/collapse/index.js +4 -7
- package/lib/collapse/style/index.d.ts +27 -6
- package/lib/collapse/style/index.js +120 -106
- package/lib/color-picker/ColorPicker.d.ts +49 -0
- package/lib/color-picker/ColorPicker.js +250 -0
- package/lib/color-picker/ColorPickerPanel.d.ts +10 -0
- package/lib/color-picker/ColorPickerPanel.js +66 -0
- package/lib/color-picker/color.d.ts +17 -0
- package/lib/color-picker/color.js +59 -0
- package/lib/color-picker/components/ColorAlphaInput.d.ts +9 -0
- package/lib/color-picker/components/ColorAlphaInput.js +53 -0
- package/lib/color-picker/components/ColorClear.d.ts +9 -0
- package/lib/color-picker/components/ColorClear.js +29 -0
- package/lib/color-picker/components/ColorHexInput.d.ts +9 -0
- package/lib/color-picker/components/ColorHexInput.js +55 -0
- package/lib/color-picker/components/ColorHsbInput.d.ts +9 -0
- package/lib/color-picker/components/ColorHsbInput.js +83 -0
- package/lib/color-picker/components/ColorInput.d.ts +9 -0
- package/lib/color-picker/components/ColorInput.js +86 -0
- package/lib/color-picker/components/ColorPresets.d.ts +10 -0
- package/lib/color-picker/components/ColorPresets.js +116 -0
- package/lib/color-picker/components/ColorRgbInput.d.ts +9 -0
- package/lib/color-picker/components/ColorRgbInput.js +74 -0
- package/lib/color-picker/components/ColorSteppers.d.ts +15 -0
- package/lib/color-picker/components/ColorSteppers.js +55 -0
- package/lib/color-picker/components/ColorTrigger.d.ts +16 -0
- package/lib/color-picker/components/ColorTrigger.js +75 -0
- package/lib/color-picker/components/PanelPicker.d.ts +11 -0
- package/lib/color-picker/components/PanelPicker.js +57 -0
- package/lib/color-picker/components/PanelPresets.d.ts +9 -0
- package/lib/color-picker/components/PanelPresets.js +26 -0
- package/lib/color-picker/context.d.ts +7 -0
- package/lib/color-picker/context.js +14 -0
- package/lib/color-picker/hooks/useColorState.d.ts +7 -0
- package/lib/color-picker/hooks/useColorState.js +42 -0
- package/lib/color-picker/index.d.ts +4 -0
- package/lib/color-picker/index.js +10 -0
- package/lib/color-picker/interface.d.ts +34 -0
- package/lib/color-picker/interface.js +12 -0
- package/lib/color-picker/style/color-block.d.ts +8 -0
- package/lib/color-picker/style/color-block.js +41 -0
- package/lib/color-picker/style/index.d.ts +23 -0
- package/lib/color-picker/style/index.js +206 -0
- package/lib/color-picker/style/input.d.ts +5 -0
- package/lib/color-picker/style/input.js +81 -0
- package/lib/color-picker/style/picker.d.ts +5 -0
- package/lib/color-picker/style/picker.js +71 -0
- package/lib/color-picker/style/presets.d.ts +5 -0
- package/lib/color-picker/style/presets.js +101 -0
- package/lib/color-picker/util.d.ts +6 -0
- package/lib/color-picker/util.js +28 -0
- package/lib/config-provider/DisabledContext.d.ts +1 -1
- package/lib/config-provider/DisabledContext.js +5 -10
- package/lib/config-provider/MotionWrapper.d.ts +5 -0
- package/lib/config-provider/MotionWrapper.js +32 -0
- package/lib/config-provider/PropWarning.d.ts +6 -0
- package/lib/config-provider/PropWarning.js +26 -0
- package/lib/config-provider/SizeContext.js +9 -15
- package/lib/config-provider/context.d.ts +125 -17
- package/lib/config-provider/context.js +10 -48
- package/lib/config-provider/cssVariables.js +31 -49
- package/lib/config-provider/defaultRenderEmpty.d.ts +7 -4
- package/lib/config-provider/defaultRenderEmpty.js +31 -42
- package/lib/config-provider/hooks/useCSSVarCls.d.ts +7 -0
- package/lib/config-provider/hooks/useCSSVarCls.js +25 -0
- package/lib/config-provider/hooks/useConfig.d.ts +5 -0
- package/lib/config-provider/hooks/useConfig.js +19 -0
- package/lib/config-provider/hooks/useSize.d.ts +3 -0
- package/lib/config-provider/hooks/useSize.js +26 -0
- package/lib/config-provider/hooks/useTheme.js +33 -23
- package/lib/config-provider/hooks/useThemeKey.d.ts +3 -0
- package/lib/config-provider/hooks/useThemeKey.js +15 -0
- package/lib/config-provider/index.d.ts +85 -9
- package/lib/config-provider/index.js +287 -148
- package/lib/config-provider/style/index.d.ts +1 -2
- package/lib/config-provider/style/index.js +7 -33
- package/lib/date-picker/PickerButton.d.ts +2 -2
- package/lib/date-picker/PickerButton.js +5 -11
- package/lib/date-picker/generatePicker/Components.d.ts +5 -0
- package/lib/date-picker/generatePicker/Components.js +12 -0
- package/lib/date-picker/generatePicker/generateRangePicker.d.ts +1 -0
- package/lib/date-picker/generatePicker/generateRangePicker.js +131 -143
- package/lib/date-picker/generatePicker/generateSinglePicker.d.ts +18 -12
- package/lib/date-picker/generatePicker/generateSinglePicker.js +126 -142
- package/lib/date-picker/generatePicker/index.d.ts +22 -61
- package/lib/date-picker/generatePicker/index.js +18 -84
- package/lib/date-picker/generatePicker/interface.js +1 -0
- package/lib/date-picker/index.d.ts +29 -14
- package/lib/date-picker/index.js +19 -13
- package/lib/date-picker/locale/ar_EG.js +10 -17
- package/lib/date-picker/locale/az_AZ.js +6 -13
- package/lib/date-picker/locale/bg_BG.js +10 -17
- package/lib/date-picker/locale/bn_BD.js +10 -17
- package/lib/date-picker/locale/by_BY.js +6 -13
- package/lib/date-picker/locale/ca_ES.js +10 -17
- package/lib/date-picker/locale/cs_CZ.js +10 -17
- package/lib/date-picker/locale/da_DK.js +10 -17
- package/lib/date-picker/locale/de_DE.js +10 -17
- package/lib/date-picker/locale/el_GR.js +10 -17
- package/lib/date-picker/locale/en_GB.js +10 -17
- package/lib/date-picker/locale/en_US.js +10 -17
- package/lib/date-picker/locale/es_ES.js +10 -17
- package/lib/date-picker/locale/et_EE.js +10 -17
- package/lib/date-picker/locale/eu_ES.d.ts +3 -0
- package/lib/date-picker/locale/eu_ES.js +20 -0
- package/lib/date-picker/locale/fa_IR.js +11 -17
- package/lib/date-picker/locale/fi_FI.js +10 -17
- package/lib/date-picker/locale/fr_BE.js +18 -18
- package/lib/date-picker/locale/fr_CA.js +10 -17
- package/lib/date-picker/locale/fr_FR.js +10 -17
- package/lib/date-picker/locale/ga_IE.js +10 -17
- package/lib/date-picker/locale/gl_ES.js +10 -17
- package/lib/date-picker/locale/he_IL.js +10 -17
- package/lib/date-picker/locale/hi_IN.js +10 -17
- package/lib/date-picker/locale/hr_HR.js +10 -17
- package/lib/date-picker/locale/hu_HU.js +10 -17
- package/lib/date-picker/locale/id_ID.js +10 -17
- package/lib/date-picker/locale/is_IS.js +10 -17
- package/lib/date-picker/locale/it_IT.js +10 -17
- package/lib/date-picker/locale/ja_JP.js +10 -17
- package/lib/date-picker/locale/ka_GE.js +6 -13
- package/lib/date-picker/locale/kk_KZ.js +10 -17
- package/lib/date-picker/locale/km_KH.js +10 -17
- package/lib/date-picker/locale/kmr_IQ.js +10 -17
- package/lib/date-picker/locale/kn_IN.js +10 -17
- package/lib/date-picker/locale/ko_KR.js +10 -17
- package/lib/date-picker/locale/lt_LT.js +11 -17
- package/lib/date-picker/locale/lv_LV.js +10 -17
- package/lib/date-picker/locale/mk_MK.js +10 -17
- package/lib/date-picker/locale/ml_IN.js +10 -17
- package/lib/date-picker/locale/mn_MN.js +10 -17
- package/lib/date-picker/locale/ms_MY.js +10 -17
- package/lib/date-picker/locale/my_MM.d.ts +3 -0
- package/lib/date-picker/locale/my_MM.js +28 -0
- package/lib/date-picker/locale/nb_NO.js +10 -17
- package/lib/date-picker/locale/nl_BE.js +10 -17
- package/lib/date-picker/locale/nl_NL.js +10 -17
- package/lib/date-picker/locale/pl_PL.js +10 -17
- package/lib/date-picker/locale/pt_BR.js +10 -17
- package/lib/date-picker/locale/pt_PT.js +9 -16
- package/lib/date-picker/locale/ro_RO.js +10 -17
- package/lib/date-picker/locale/ru_RU.js +9 -16
- package/lib/date-picker/locale/si_LK.js +10 -17
- package/lib/date-picker/locale/sk_SK.js +10 -17
- package/lib/date-picker/locale/sl_SI.js +8 -14
- package/lib/date-picker/locale/sr_RS.js +10 -17
- package/lib/date-picker/locale/sv_SE.js +10 -17
- package/lib/date-picker/locale/ta_IN.js +18 -17
- package/lib/date-picker/locale/th_TH.js +10 -17
- package/lib/date-picker/locale/tk_TK.js +6 -13
- package/lib/date-picker/locale/tr_TR.js +10 -17
- package/lib/date-picker/locale/uk_UA.js +10 -17
- package/lib/date-picker/locale/ur_PK.js +10 -17
- package/lib/date-picker/locale/vi_VN.js +19 -18
- package/lib/date-picker/locale/zh_CN.js +12 -19
- package/lib/date-picker/locale/zh_TW.js +10 -17
- package/lib/date-picker/style/index.d.ts +89 -18
- package/lib/date-picker/style/index.js +505 -468
- package/lib/date-picker/util.d.ts +54 -10
- package/lib/date-picker/util.js +58 -22
- package/lib/descriptions/Cell.js +28 -36
- package/lib/descriptions/DescriptionsContext.d.ts +7 -0
- package/lib/descriptions/DescriptionsContext.js +10 -0
- package/lib/descriptions/Item.js +2 -5
- package/lib/descriptions/Row.d.ts +2 -2
- package/lib/descriptions/Row.js +47 -62
- package/lib/descriptions/constant.d.ts +3 -0
- package/lib/descriptions/constant.js +15 -0
- package/lib/descriptions/hooks/useItems.d.ts +4 -0
- package/lib/descriptions/hooks/useItems.js +45 -0
- package/lib/descriptions/hooks/useRow.d.ts +3 -0
- package/lib/descriptions/hooks/useRow.js +78 -0
- package/lib/descriptions/index.d.ts +23 -9
- package/lib/descriptions/index.js +93 -167
- package/lib/descriptions/style/index.d.ts +47 -1
- package/lib/descriptions/style/index.js +76 -93
- package/lib/divider/index.d.ts +1 -0
- package/lib/divider/index.js +65 -63
- package/lib/divider/style/index.d.ts +19 -2
- package/lib/divider/style/index.js +86 -85
- package/lib/drawer/DrawerPanel.d.ts +29 -2
- package/lib/drawer/DrawerPanel.js +69 -60
- package/lib/drawer/index.d.ts +15 -12
- package/lib/drawer/index.js +125 -125
- package/lib/drawer/style/index.d.ts +18 -4
- package/lib/drawer/style/index.js +68 -71
- package/lib/drawer/style/motion.js +11 -15
- package/lib/dropdown/dropdown-button.d.ts +3 -4
- package/lib/dropdown/dropdown-button.js +64 -97
- package/lib/dropdown/dropdown.d.ts +11 -19
- package/lib/dropdown/dropdown.js +170 -164
- package/lib/dropdown/index.d.ts +8 -2
- package/lib/dropdown/index.js +7 -7
- package/lib/dropdown/style/index.d.ts +17 -7
- package/lib/dropdown/style/index.js +102 -168
- package/lib/dropdown/style/status.js +11 -14
- package/lib/empty/empty.d.ts +2 -1
- package/lib/empty/empty.js +24 -8
- package/lib/empty/index.d.ts +1 -0
- package/lib/empty/index.js +66 -79
- package/lib/empty/simple.d.ts +2 -1
- package/lib/empty/simple.js +31 -34
- package/lib/empty/style/index.d.ts +2 -1
- package/lib/empty/style/index.js +34 -34
- package/lib/flex/index.d.ts +4 -0
- package/lib/flex/index.js +76 -0
- package/lib/flex/interface.d.ts +15 -0
- package/lib/flex/interface.js +5 -0
- package/lib/flex/style/index.d.ts +31 -0
- package/lib/flex/style/index.js +90 -0
- package/lib/flex/utils.d.ts +6 -0
- package/lib/flex/utils.js +37 -0
- package/lib/float-button/BackTop.d.ts +3 -3
- package/lib/float-button/BackTop.js +62 -97
- package/lib/float-button/FloatButton.d.ts +2 -2
- package/lib/float-button/FloatButton.js +70 -77
- package/lib/float-button/FloatButtonContent.js +17 -27
- package/lib/float-button/FloatButtonGroup.js +110 -93
- package/lib/float-button/PurePanel.d.ts +4 -4
- package/lib/float-button/PurePanel.js +24 -48
- package/lib/float-button/context.js +4 -9
- package/lib/float-button/index.js +8 -14
- package/lib/float-button/interface.d.ts +15 -6
- package/lib/float-button/style/index.d.ts +4 -2
- package/lib/float-button/style/index.js +158 -127
- package/lib/float-button/util.d.ts +2 -0
- package/lib/float-button/util.js +15 -0
- package/lib/form/ErrorList.d.ts +2 -1
- package/lib/form/ErrorList.js +63 -72
- package/lib/form/Form.d.ts +11 -4
- package/lib/form/Form.js +109 -106
- package/lib/form/FormItem/ItemHolder.d.ts +3 -2
- package/lib/form/FormItem/ItemHolder.js +83 -126
- package/lib/form/FormItem/StatusProvider.d.ts +16 -0
- package/lib/form/FormItem/StatusProvider.js +79 -0
- package/lib/form/FormItem/index.d.ts +17 -7
- package/lib/form/FormItem/index.js +170 -206
- package/lib/form/FormItemInput.js +35 -45
- package/lib/form/FormItemLabel.d.ts +0 -2
- package/lib/form/FormItemLabel.js +92 -109
- package/lib/form/FormList.d.ts +1 -1
- package/lib/form/FormList.js +16 -33
- package/lib/form/context.d.ts +7 -4
- package/lib/form/context.js +19 -33
- package/lib/form/hooks/useChildren.d.ts +2 -0
- package/lib/form/hooks/useChildren.js +15 -0
- package/lib/form/hooks/useDebounce.js +11 -13
- package/lib/form/hooks/useForm.js +14 -23
- package/lib/form/hooks/useFormInstance.js +3 -7
- package/lib/form/hooks/useFormItemStatus.d.ts +3 -0
- package/lib/form/hooks/useFormItemStatus.js +18 -18
- package/lib/form/hooks/useFormWarning.d.ts +2 -0
- package/lib/form/hooks/useFormWarning.js +22 -0
- package/lib/form/hooks/useFrameState.js +19 -26
- package/lib/form/hooks/useItemRef.js +5 -18
- package/lib/form/index.d.ts +3 -3
- package/lib/form/index.js +12 -24
- package/lib/form/interface.d.ts +2 -2
- package/lib/form/style/explain.js +13 -17
- package/lib/form/style/fallbackCmp.d.ts +7 -0
- package/lib/form/style/fallbackCmp.js +33 -0
- package/lib/form/style/index.d.ts +53 -2
- package/lib/form/style/index.js +121 -120
- package/lib/form/util.d.ts +7 -0
- package/lib/form/util.js +29 -11
- package/lib/form/validateMessagesContext.d.ts +4 -0
- package/lib/form/validateMessagesContext.js +12 -0
- package/lib/grid/RowContext.d.ts +2 -3
- package/lib/grid/RowContext.js +2 -5
- package/lib/grid/col.d.ts +2 -1
- package/lib/grid/col.js +51 -85
- package/lib/grid/hooks/useBreakpoint.d.ts +1 -1
- package/lib/grid/hooks/useBreakpoint.js +11 -17
- package/lib/grid/index.d.ts +2 -2
- package/lib/grid/index.js +10 -16
- package/lib/grid/row.d.ts +7 -7
- package/lib/grid/row.js +99 -141
- package/lib/grid/style/index.d.ts +8 -2
- package/lib/grid/style/index.js +54 -56
- package/lib/icon/index.js +8 -10
- package/lib/image/PreviewGroup.d.ts +10 -8
- package/lib/image/PreviewGroup.js +52 -64
- package/lib/image/index.d.ts +2 -2
- package/lib/image/index.js +61 -66
- package/lib/image/style/index.d.ts +28 -5
- package/lib/image/style/index.js +159 -141
- package/lib/index.d.ts +22 -8
- package/lib/index.js +106 -138
- package/lib/input/Group.js +37 -41
- package/lib/input/Input.d.ts +4 -5
- package/lib/input/Input.js +113 -198
- package/lib/input/Password.js +62 -98
- package/lib/input/Search.d.ts +3 -1
- package/lib/input/Search.js +48 -83
- package/lib/input/TextArea.d.ts +6 -15
- package/lib/input/TextArea.js +78 -243
- package/lib/input/hooks/useRemovePasswordTimeout.js +1 -7
- package/lib/input/index.js +12 -16
- package/lib/input/style/index.d.ts +85 -14
- package/lib/input/style/index.js +328 -298
- package/lib/input/utils.d.ts +1 -2
- package/lib/input/utils.js +2 -2
- package/lib/input-number/index.d.ts +5 -4
- package/lib/input-number/index.js +97 -166
- package/lib/input-number/style/index.d.ts +60 -3
- package/lib/input-number/style/index.js +173 -139
- package/lib/layout/Sider.js +83 -122
- package/lib/layout/context.d.ts +8 -0
- package/lib/layout/context.js +18 -0
- package/lib/layout/hooks/useHasSider.d.ts +2 -0
- package/lib/layout/hooks/useHasSider.js +21 -0
- package/lib/layout/index.d.ts +3 -1
- package/lib/layout/index.js +8 -13
- package/lib/layout/layout.d.ts +5 -10
- package/lib/layout/layout.js +80 -99
- package/lib/layout/style/index.d.ts +87 -8
- package/lib/layout/style/index.js +108 -100
- package/lib/layout/style/light.js +22 -24
- package/lib/list/Item.js +55 -89
- package/lib/list/context.d.ts +8 -0
- package/lib/list/context.js +10 -0
- package/lib/list/index.d.ts +6 -8
- package/lib/list/index.js +100 -144
- package/lib/list/style/index.d.ts +58 -1
- package/lib/list/style/index.js +155 -140
- package/lib/locale/ar_EG.d.ts +1 -1
- package/lib/locale/ar_EG.js +11 -18
- package/lib/locale/az_AZ.d.ts +1 -1
- package/lib/locale/az_AZ.js +11 -18
- package/lib/locale/bg_BG.d.ts +1 -1
- package/lib/locale/bg_BG.js +58 -14
- package/lib/locale/bn_BD.d.ts +1 -1
- package/lib/locale/bn_BD.js +11 -18
- package/lib/locale/by_BY.d.ts +1 -1
- package/lib/locale/by_BY.js +11 -18
- package/lib/locale/ca_ES.d.ts +1 -1
- package/lib/locale/ca_ES.js +11 -18
- package/lib/locale/context.js +9 -0
- package/lib/locale/cs_CZ.d.ts +1 -1
- package/lib/locale/cs_CZ.js +11 -18
- package/lib/locale/da_DK.d.ts +1 -1
- package/lib/locale/da_DK.js +7 -14
- package/lib/locale/de_DE.d.ts +1 -1
- package/lib/locale/de_DE.js +22 -19
- package/lib/locale/el_GR.d.ts +1 -1
- package/lib/locale/el_GR.js +7 -14
- package/lib/locale/en_GB.d.ts +1 -1
- package/lib/locale/en_GB.js +11 -18
- package/lib/locale/en_US.d.ts +1 -1
- package/lib/locale/en_US.js +18 -18
- package/lib/locale/es_ES.d.ts +1 -1
- package/lib/locale/es_ES.js +11 -18
- package/lib/locale/et_EE.d.ts +1 -1
- package/lib/locale/et_EE.js +11 -18
- package/lib/locale/eu_ES.d.ts +3 -0
- package/lib/locale/eu_ES.js +152 -0
- package/lib/locale/fa_IR.d.ts +1 -1
- package/lib/locale/fa_IR.js +24 -20
- package/lib/locale/fi_FI.d.ts +1 -1
- package/lib/locale/fi_FI.js +7 -14
- package/lib/locale/fr_BE.d.ts +1 -1
- package/lib/locale/fr_BE.js +94 -20
- package/lib/locale/fr_CA.d.ts +1 -1
- package/lib/locale/fr_CA.js +80 -18
- package/lib/locale/fr_FR.d.ts +1 -1
- package/lib/locale/fr_FR.js +16 -18
- package/lib/locale/ga_IE.d.ts +1 -1
- package/lib/locale/ga_IE.js +11 -18
- package/lib/locale/gl_ES.d.ts +1 -1
- package/lib/locale/gl_ES.js +11 -18
- package/lib/locale/he_IL.d.ts +1 -1
- package/lib/locale/he_IL.js +14 -21
- package/lib/locale/hi_IN.d.ts +1 -1
- package/lib/locale/hi_IN.js +11 -18
- package/lib/locale/hr_HR.d.ts +1 -1
- package/lib/locale/hr_HR.js +11 -18
- package/lib/locale/hu_HU.d.ts +1 -1
- package/lib/locale/hu_HU.js +7 -14
- package/lib/locale/hy_AM.d.ts +1 -1
- package/lib/locale/hy_AM.js +2 -3
- package/lib/locale/id_ID.d.ts +1 -1
- package/lib/locale/id_ID.js +7 -14
- package/lib/locale/index.d.ts +59 -0
- package/lib/locale/index.js +47 -0
- package/lib/locale/is_IS.d.ts +1 -1
- package/lib/locale/is_IS.js +7 -14
- package/lib/locale/it_IT.d.ts +1 -1
- package/lib/locale/it_IT.js +11 -18
- package/lib/locale/ja_JP.d.ts +1 -1
- package/lib/locale/ja_JP.js +11 -18
- package/lib/locale/ka_GE.d.ts +1 -1
- package/lib/locale/ka_GE.js +11 -18
- package/lib/locale/kk_KZ.d.ts +1 -1
- package/lib/locale/kk_KZ.js +11 -18
- package/lib/locale/km_KH.d.ts +1 -1
- package/lib/locale/km_KH.js +11 -18
- package/lib/locale/kmr_IQ.d.ts +1 -1
- package/lib/locale/kmr_IQ.js +7 -14
- package/lib/locale/kn_IN.d.ts +1 -1
- package/lib/locale/kn_IN.js +7 -14
- package/lib/locale/ko_KR.d.ts +1 -1
- package/lib/locale/ko_KR.js +63 -23
- package/lib/locale/ku_IQ.d.ts +1 -1
- package/lib/locale/ku_IQ.js +9 -16
- package/lib/locale/lt_LT.d.ts +1 -1
- package/lib/locale/lt_LT.js +50 -34
- package/lib/locale/lv_LV.d.ts +1 -1
- package/lib/locale/lv_LV.js +7 -14
- package/lib/locale/mk_MK.d.ts +1 -1
- package/lib/locale/mk_MK.js +7 -14
- package/lib/locale/ml_IN.d.ts +1 -1
- package/lib/locale/ml_IN.js +11 -18
- package/lib/locale/mn_MN.d.ts +1 -1
- package/lib/locale/mn_MN.js +11 -18
- package/lib/locale/ms_MY.d.ts +1 -1
- package/lib/locale/ms_MY.js +7 -14
- package/lib/locale/my_MM.d.ts +3 -0
- package/lib/locale/my_MM.js +147 -0
- package/lib/locale/nb_NO.d.ts +1 -1
- package/lib/locale/nb_NO.js +11 -18
- package/lib/locale/ne_NP.d.ts +1 -1
- package/lib/locale/ne_NP.js +7 -14
- package/lib/locale/nl_BE.d.ts +1 -1
- package/lib/locale/nl_BE.js +11 -18
- package/lib/locale/nl_NL.d.ts +1 -1
- package/lib/locale/nl_NL.js +11 -18
- package/lib/locale/pl_PL.d.ts +1 -1
- package/lib/locale/pl_PL.js +16 -18
- package/lib/locale/pt_BR.d.ts +1 -1
- package/lib/locale/pt_BR.js +18 -18
- package/lib/locale/pt_PT.d.ts +1 -1
- package/lib/locale/pt_PT.js +11 -18
- package/lib/locale/ro_RO.d.ts +1 -1
- package/lib/locale/ro_RO.js +11 -18
- package/lib/locale/ru_RU.d.ts +1 -1
- package/lib/locale/ru_RU.js +24 -19
- package/lib/locale/si_LK.d.ts +1 -1
- package/lib/locale/si_LK.js +11 -18
- package/lib/locale/sk_SK.d.ts +1 -1
- package/lib/locale/sk_SK.js +11 -18
- package/lib/locale/sl_SI.d.ts +1 -1
- package/lib/locale/sl_SI.js +7 -14
- package/lib/locale/sr_RS.d.ts +1 -1
- package/lib/locale/sr_RS.js +11 -18
- package/lib/locale/sv_SE.d.ts +1 -1
- package/lib/locale/sv_SE.js +22 -18
- package/lib/locale/ta_IN.d.ts +1 -1
- package/lib/locale/ta_IN.js +74 -15
- package/lib/locale/th_TH.d.ts +1 -1
- package/lib/locale/th_TH.js +26 -18
- package/lib/locale/tk_TK.d.ts +1 -1
- package/lib/locale/tk_TK.js +11 -18
- package/lib/locale/tr_TR.d.ts +1 -1
- package/lib/locale/tr_TR.js +11 -18
- package/lib/locale/uk_UA.d.ts +1 -1
- package/lib/locale/uk_UA.js +20 -18
- package/lib/locale/ur_PK.d.ts +1 -1
- package/lib/locale/ur_PK.js +11 -18
- package/lib/locale/useLocale.d.ts +4 -0
- package/lib/locale/useLocale.js +30 -0
- package/lib/locale/vi_VN.d.ts +1 -1
- package/lib/locale/vi_VN.js +114 -25
- package/lib/locale/zh_CN.d.ts +1 -1
- package/lib/locale/zh_CN.js +18 -18
- package/lib/locale/zh_HK.d.ts +1 -1
- package/lib/locale/zh_HK.js +11 -18
- package/lib/locale/zh_TW.d.ts +1 -1
- package/lib/locale/zh_TW.js +11 -18
- package/lib/mentions/index.d.ts +5 -7
- package/lib/mentions/index.js +93 -132
- package/lib/mentions/style/index.d.ts +18 -2
- package/lib/mentions/style/index.js +58 -72
- package/lib/menu/MenuContext.d.ts +0 -2
- package/lib/menu/MenuContext.js +3 -5
- package/lib/menu/MenuDivider.js +19 -34
- package/lib/menu/MenuItem.d.ts +8 -9
- package/lib/menu/MenuItem.js +69 -146
- package/lib/menu/OverrideContext.d.ts +3 -1
- package/lib/menu/OverrideContext.js +23 -31
- package/lib/menu/SubMenu.d.ts +1 -1
- package/lib/menu/SubMenu.js +36 -41
- package/lib/menu/hooks/useItems.d.ts +6 -6
- package/lib/menu/hooks/useItems.js +24 -47
- package/lib/menu/index.d.ts +14 -5
- package/lib/menu/index.js +20 -29
- package/lib/menu/menu.d.ts +1 -1
- package/lib/menu/menu.js +93 -108
- package/lib/menu/style/horizontal.js +25 -27
- package/lib/menu/style/index.d.ts +293 -7
- package/lib/menu/style/index.js +338 -233
- package/lib/menu/style/rtl.d.ts +2 -1
- package/lib/menu/style/rtl.js +17 -18
- package/lib/menu/style/theme.js +109 -109
- package/lib/menu/style/vertical.js +74 -79
- package/lib/message/PurePanel.d.ts +9 -8
- package/lib/message/PurePanel.js +50 -69
- package/lib/message/index.d.ts +12 -11
- package/lib/message/index.js +71 -137
- package/lib/message/style/index.d.ts +18 -2
- package/lib/message/style/index.js +75 -76
- package/lib/message/useMessage.d.ts +3 -3
- package/lib/message/useMessage.js +126 -138
- package/lib/message/util.js +1 -7
- package/lib/modal/ConfirmDialog.d.ts +23 -10
- package/lib/modal/ConfirmDialog.js +167 -131
- package/lib/modal/Modal.d.ts +1 -105
- package/lib/modal/Modal.js +113 -94
- package/lib/modal/PurePanel.d.ts +5 -9
- package/lib/modal/PurePanel.js +44 -94
- package/lib/modal/components/ConfirmCancelBtn.d.ts +10 -0
- package/lib/modal/components/ConfirmCancelBtn.js +36 -0
- package/lib/modal/components/ConfirmOkBtn.d.ts +9 -0
- package/lib/modal/components/ConfirmOkBtn.js +37 -0
- package/lib/modal/components/NormalCancelBtn.d.ts +8 -0
- package/lib/modal/components/NormalCancelBtn.js +22 -0
- package/lib/modal/components/NormalOkBtn.d.ts +8 -0
- package/lib/modal/components/NormalOkBtn.js +26 -0
- package/lib/modal/confirm.d.ts +1 -1
- package/lib/modal/confirm.js +50 -80
- package/lib/modal/context.d.ts +8 -0
- package/lib/modal/context.js +11 -0
- package/lib/modal/destroyFns.d.ts +1 -1
- package/lib/modal/destroyFns.js +2 -3
- package/lib/modal/index.d.ts +1 -1
- package/lib/modal/index.js +18 -32
- package/lib/modal/interface.d.ts +125 -0
- package/lib/modal/interface.js +5 -0
- package/lib/modal/locale.d.ts +1 -1
- package/lib/modal/locale.js +19 -12
- package/lib/modal/shared.d.ts +9 -0
- package/lib/modal/shared.js +82 -0
- package/lib/modal/style/confirmCmp.d.ts +3 -0
- package/lib/modal/style/confirmCmp.js +87 -0
- package/lib/modal/style/index.d.ts +62 -20
- package/lib/modal/style/index.js +122 -199
- package/lib/modal/useModal/HookModal.d.ts +6 -1
- package/lib/modal/useModal/HookModal.js +56 -60
- package/lib/modal/useModal/index.d.ts +7 -2
- package/lib/modal/useModal/index.js +56 -45
- package/lib/notification/PurePanel.d.ts +10 -8
- package/lib/notification/PurePanel.js +89 -98
- package/lib/notification/index.d.ts +13 -9
- package/lib/notification/index.js +64 -133
- package/lib/notification/interface.d.ts +16 -9
- package/lib/notification/interface.js +3 -1
- package/lib/notification/style/index.d.ts +25 -6
- package/lib/notification/style/index.js +139 -152
- package/lib/notification/style/placement.js +53 -40
- package/lib/notification/style/pure-panel.d.ts +3 -0
- package/lib/notification/style/pure-panel.js +22 -0
- package/lib/notification/style/stack.d.ts +4 -0
- package/lib/notification/style/stack.js +87 -0
- package/lib/notification/useNotification.d.ts +3 -3
- package/lib/notification/useNotification.js +132 -113
- package/lib/notification/util.js +1 -10
- package/lib/pagination/Pagination.d.ts +5 -3
- package/lib/pagination/Pagination.js +94 -110
- package/lib/pagination/Select.js +9 -16
- package/lib/pagination/index.js +4 -7
- package/lib/pagination/style/bordered.d.ts +3 -0
- package/lib/pagination/style/bordered.js +75 -0
- package/lib/pagination/style/index.d.ts +64 -1
- package/lib/pagination/style/index.js +194 -236
- package/lib/popconfirm/PurePanel.d.ts +5 -4
- package/lib/popconfirm/PurePanel.js +85 -102
- package/lib/popconfirm/index.d.ts +3 -1
- package/lib/popconfirm/index.js +60 -91
- package/lib/popconfirm/style/index.d.ts +8 -2
- package/lib/popconfirm/style/index.js +46 -41
- package/lib/popover/PurePanel.d.ts +7 -3
- package/lib/popover/PurePanel.js +45 -58
- package/lib/popover/index.d.ts +1 -1
- package/lib/popover/index.js +47 -70
- package/lib/popover/style/index.d.ts +28 -5
- package/lib/popover/style/index.js +99 -97
- package/lib/progress/Circle.js +43 -40
- package/lib/progress/Line.js +68 -62
- package/lib/progress/Steps.d.ts +1 -2
- package/lib/progress/Steps.js +40 -30
- package/lib/progress/index.d.ts +1 -1
- package/lib/progress/index.js +4 -7
- package/lib/progress/progress.d.ts +11 -10
- package/lib/progress/progress.js +82 -96
- package/lib/progress/style/index.d.ts +34 -1
- package/lib/progress/style/index.js +92 -92
- package/lib/progress/utils.d.ts +4 -0
- package/lib/progress/utils.js +65 -24
- package/lib/qr-code/index.d.ts +4 -0
- package/lib/qr-code/index.js +119 -0
- package/lib/qr-code/interface.d.ts +33 -0
- package/lib/qr-code/interface.js +5 -0
- package/lib/qr-code/style/index.d.ts +7 -0
- package/lib/qr-code/style/index.js +68 -0
- package/lib/qrcode/index.d.ts +2 -0
- package/lib/qrcode/index.js +12 -0
- package/lib/qrcode/interface.d.ts +1 -0
- package/lib/qrcode/interface.js +16 -0
- package/lib/qrcode/style/index.d.ts +1 -0
- package/lib/qrcode/style/index.js +16 -0
- package/lib/radio/context.js +6 -13
- package/lib/radio/group.js +69 -82
- package/lib/radio/index.d.ts +3 -3
- package/lib/radio/index.js +9 -14
- package/lib/radio/interface.d.ts +1 -0
- package/lib/radio/radio.d.ts +2 -2
- package/lib/radio/radio.js +63 -80
- package/lib/radio/radioButton.d.ts +2 -2
- package/lib/radio/radioButton.js +9 -27
- package/lib/radio/style/index.d.ts +74 -1
- package/lib/radio/style/index.js +236 -264
- package/lib/rate/index.d.ts +3 -2
- package/lib/rate/index.js +35 -49
- package/lib/rate/style/index.d.ts +27 -2
- package/lib/rate/style/index.js +43 -55
- package/lib/result/index.d.ts +8 -7
- package/lib/result/index.js +71 -85
- package/lib/result/noFound.d.ts +2 -1
- package/lib/result/noFound.js +5 -9
- package/lib/result/serverError.d.ts +2 -1
- package/lib/result/serverError.js +4 -8
- package/lib/result/style/index.d.ts +24 -3
- package/lib/result/style/index.js +56 -64
- package/lib/result/unauthorized.d.ts +2 -1
- package/lib/result/unauthorized.js +4 -8
- package/lib/row/index.js +3 -5
- package/lib/row/style/index.js +5 -6
- package/lib/segmented/index.d.ts +2 -1
- package/lib/segmented/index.js +51 -66
- package/lib/segmented/style/index.d.ts +34 -1
- package/lib/segmented/style/index.js +107 -94
- package/lib/select/index.d.ts +18 -8
- package/lib/select/index.js +151 -144
- package/lib/select/style/dropdown.js +48 -50
- package/lib/select/style/index.d.ts +101 -3
- package/lib/select/style/index.js +161 -113
- package/lib/select/style/multiple.d.ts +2 -1
- package/lib/select/style/multiple.js +89 -102
- package/lib/select/style/single.js +53 -67
- package/lib/select/useBuiltinPlacements.d.ts +3 -0
- package/lib/select/useBuiltinPlacements.js +40 -0
- package/lib/select/useIcons.d.ts +26 -0
- package/lib/select/useIcons.js +88 -0
- package/lib/select/useShowArrow.d.ts +8 -0
- package/lib/select/useShowArrow.js +15 -0
- package/lib/skeleton/Avatar.js +34 -42
- package/lib/skeleton/Button.js +35 -44
- package/lib/skeleton/Element.d.ts +1 -0
- package/lib/skeleton/Element.js +20 -27
- package/lib/skeleton/Image.js +31 -36
- package/lib/skeleton/Input.js +34 -43
- package/lib/skeleton/Node.js +32 -37
- package/lib/skeleton/Paragraph.js +15 -27
- package/lib/skeleton/Skeleton.d.ts +2 -1
- package/lib/skeleton/Skeleton.js +72 -104
- package/lib/skeleton/Title.js +11 -20
- package/lib/skeleton/index.js +4 -7
- package/lib/skeleton/style/index.d.ts +36 -1
- package/lib/skeleton/style/index.js +148 -174
- package/lib/slider/SliderTooltip.d.ts +2 -1
- package/lib/slider/SliderTooltip.js +16 -27
- package/lib/slider/index.d.ts +31 -11
- package/lib/slider/index.js +106 -121
- package/lib/slider/style/index.d.ts +82 -1
- package/lib/slider/style/index.js +160 -132
- package/lib/space/Compact.d.ts +1 -0
- package/lib/space/Compact.js +52 -71
- package/lib/space/Item.d.ts +4 -5
- package/lib/space/Item.js +14 -47
- package/lib/space/context.d.ts +6 -0
- package/lib/space/context.js +12 -0
- package/lib/space/index.d.ts +9 -7
- package/lib/space/index.js +86 -120
- package/lib/space/style/compact.js +9 -13
- package/lib/space/style/index.d.ts +4 -1
- package/lib/space/style/index.js +53 -22
- package/lib/spin/index.d.ts +7 -9
- package/lib/spin/index.js +112 -141
- package/lib/spin/style/index.d.ts +23 -1
- package/lib/spin/style/index.js +126 -105
- package/lib/statistic/Countdown.d.ts +3 -3
- package/lib/statistic/Countdown.js +12 -35
- package/lib/statistic/Number.js +16 -25
- package/lib/statistic/Statistic.d.ts +3 -6
- package/lib/statistic/Statistic.js +62 -63
- package/lib/statistic/index.d.ts +11 -3
- package/lib/statistic/index.js +5 -9
- package/lib/statistic/interface.d.ts +0 -0
- package/lib/statistic/interface.js +1 -0
- package/lib/statistic/style/index.d.ts +16 -1
- package/lib/statistic/style/index.js +39 -45
- package/lib/statistic/utils.d.ts +2 -2
- package/lib/statistic/utils.js +25 -15
- package/lib/steps/index.d.ts +1 -0
- package/lib/steps/index.js +65 -81
- package/lib/steps/style/custom-icon.js +20 -23
- package/lib/steps/style/index.d.ts +73 -20
- package/lib/steps/style/index.js +118 -146
- package/lib/steps/style/inline.d.ts +1 -1
- package/lib/steps/style/inline.js +37 -42
- package/lib/steps/style/label-placement.d.ts +1 -1
- package/lib/steps/style/label-placement.js +18 -21
- package/lib/steps/style/nav.d.ts +1 -1
- package/lib/steps/style/nav.js +44 -46
- package/lib/steps/style/progress-dot.d.ts +1 -1
- package/lib/steps/style/progress-dot.js +57 -59
- package/lib/steps/style/progress.js +23 -27
- package/lib/steps/style/rtl.js +17 -21
- package/lib/steps/style/small.d.ts +1 -1
- package/lib/steps/style/small.js +30 -33
- package/lib/steps/style/vertical.d.ts +1 -1
- package/lib/steps/style/vertical.js +30 -33
- package/lib/steps/useLegacyItems.js +10 -18
- package/lib/style/compact-item-vertical.d.ts +4 -3
- package/lib/style/compact-item-vertical.js +28 -40
- package/lib/style/compact-item.d.ts +18 -10
- package/lib/style/compact-item.js +38 -43
- package/lib/style/index.d.ts +4 -5
- package/lib/style/index.js +22 -48
- package/lib/style/motion/collapse.js +10 -14
- package/lib/style/motion/fade.js +9 -17
- package/lib/style/motion/index.js +2 -8
- package/lib/style/motion/motion.js +10 -17
- package/lib/style/motion/move.js +17 -31
- package/lib/style/motion/slide.js +21 -31
- package/lib/style/motion/zoom.js +21 -39
- package/lib/style/operationUnit.js +3 -4
- package/lib/style/placementArrow.d.ts +13 -12
- package/lib/style/placementArrow.js +64 -101
- package/lib/style/roundedArrow.d.ts +6 -1
- package/lib/style/roundedArrow.js +52 -33
- package/lib/switch/index.d.ts +11 -0
- package/lib/switch/index.js +71 -70
- package/lib/switch/style/index.d.ts +71 -1
- package/lib/switch/style/index.js +183 -149
- package/lib/table/Column.js +2 -6
- package/lib/table/ColumnGroup.js +2 -6
- package/lib/table/ExpandIcon.d.ts +1 -1
- package/lib/table/ExpandIcon.js +17 -22
- package/lib/table/InternalTable.d.ts +32 -0
- package/lib/table/InternalTable.js +449 -0
- package/lib/table/RcTable/VirtualTable.d.ts +5 -0
- package/lib/table/RcTable/VirtualTable.js +16 -0
- package/lib/table/RcTable/index.d.ts +5 -0
- package/lib/table/RcTable/index.js +16 -0
- package/lib/table/Table.d.ts +10 -40
- package/lib/table/Table.js +26 -474
- package/lib/table/hooks/useContainerWidth.d.ts +1 -0
- package/lib/table/hooks/useContainerWidth.js +20 -0
- package/lib/table/hooks/useFilter/FilterDropdown.d.ts +6 -4
- package/lib/table/hooks/useFilter/FilterDropdown.js +161 -220
- package/lib/table/hooks/useFilter/FilterSearch.d.ts +1 -1
- package/lib/table/hooks/useFilter/FilterSearch.js +13 -22
- package/lib/table/hooks/useFilter/FilterWrapper.d.ts +1 -1
- package/lib/table/hooks/useFilter/FilterWrapper.js +14 -18
- package/lib/table/hooks/useFilter/index.d.ts +5 -3
- package/lib/table/hooks/useFilter/index.js +89 -106
- package/lib/table/hooks/useLazyKVMap.js +4 -17
- package/lib/table/hooks/usePagination.d.ts +3 -2
- package/lib/table/hooks/usePagination.js +35 -75
- package/lib/table/hooks/useSelection.d.ts +5 -3
- package/lib/table/hooks/useSelection.js +228 -296
- package/lib/table/hooks/useSorter.js +97 -146
- package/lib/table/hooks/useTitleColumns.js +3 -14
- package/lib/table/index.d.ts +5 -3
- package/lib/table/index.js +4 -7
- package/lib/table/interface.d.ts +25 -11
- package/lib/table/interface.js +4 -3
- package/lib/table/style/bordered.d.ts +1 -1
- package/lib/table/style/bordered.js +43 -48
- package/lib/table/style/ellipsis.js +12 -19
- package/lib/table/style/empty.js +12 -16
- package/lib/table/style/expand.d.ts +1 -1
- package/lib/table/style/expand.js +60 -70
- package/lib/table/style/filter.js +67 -69
- package/lib/table/style/fixed.js +39 -39
- package/lib/table/style/index.d.ts +161 -6
- package/lib/table/style/index.js +220 -184
- package/lib/table/style/pagination.d.ts +1 -1
- package/lib/table/style/pagination.js +14 -16
- package/lib/table/style/radius.d.ts +1 -1
- package/lib/table/style/radius.js +23 -31
- package/lib/table/style/rtl.js +24 -16
- package/lib/table/style/selection.d.ts +1 -1
- package/lib/table/style/selection.js +48 -33
- package/lib/table/style/size.d.ts +1 -1
- package/lib/table/style/size.js +25 -30
- package/lib/table/style/sorter.js +25 -29
- package/lib/table/style/sticky.d.ts +1 -1
- package/lib/table/style/sticky.js +22 -20
- package/lib/table/style/summary.d.ts +1 -1
- package/lib/table/style/summary.js +16 -18
- package/lib/table/style/virtual.d.ts +5 -0
- package/lib/table/style/virtual.js +56 -0
- package/lib/table/util.js +1 -9
- package/lib/tabs/TabPane.d.ts +1 -1
- package/lib/tabs/TabPane.js +2 -6
- package/lib/tabs/hooks/useAnimateConfig.js +5 -16
- package/lib/tabs/hooks/useLegacyItems.js +14 -29
- package/lib/tabs/index.d.ts +6 -6
- package/lib/tabs/index.js +82 -94
- package/lib/tabs/style/index.d.ts +126 -9
- package/lib/tabs/style/index.js +260 -232
- package/lib/tabs/style/motion.js +12 -15
- package/lib/tag/CheckableTag.d.ts +1 -1
- package/lib/tag/CheckableTag.js +40 -50
- package/lib/tag/index.d.ts +5 -2
- package/lib/tag/index.js +84 -107
- package/lib/tag/style/index.d.ts +23 -1
- package/lib/tag/style/index.js +76 -108
- package/lib/tag/style/presetCmp.d.ts +3 -0
- package/lib/tag/style/presetCmp.js +41 -0
- package/lib/tag/style/statusCmp.d.ts +3 -0
- package/lib/tag/style/statusCmp.js +29 -0
- package/lib/theme/context.d.ts +31 -0
- package/lib/theme/context.js +22 -0
- package/lib/theme/getDesignToken.d.ts +4 -0
- package/lib/theme/getDesignToken.js +19 -0
- package/lib/theme/index.d.ts +27 -0
- package/lib/theme/index.js +47 -0
- package/lib/theme/interface/alias.d.ts +545 -0
- package/lib/theme/interface/alias.js +5 -0
- package/lib/theme/interface/components.d.ts +133 -0
- package/lib/theme/interface/components.js +5 -0
- package/lib/theme/interface/index.d.ts +20 -0
- package/lib/theme/interface/index.js +12 -0
- package/lib/theme/interface/maps/colors.d.ts +501 -0
- package/lib/theme/interface/maps/colors.js +5 -0
- package/lib/theme/interface/maps/font.d.ts +117 -0
- package/lib/theme/interface/maps/font.js +5 -0
- package/lib/theme/interface/maps/index.d.ts +29 -0
- package/lib/theme/interface/maps/index.js +49 -0
- package/lib/theme/interface/maps/size.d.ts +69 -0
- package/lib/theme/interface/maps/size.js +5 -0
- package/lib/theme/interface/maps/style.d.ts +42 -0
- package/lib/theme/interface/maps/style.js +5 -0
- package/lib/theme/interface/presetColors.d.ts +11 -0
- package/lib/theme/interface/presetColors.js +7 -0
- package/lib/theme/interface/seeds.d.ts +223 -0
- package/lib/theme/interface/seeds.js +5 -0
- package/lib/theme/internal.d.ts +13 -0
- package/lib/theme/internal.js +94 -0
- package/lib/theme/themes/ColorMap.d.ts +15 -0
- package/lib/theme/themes/ColorMap.js +1 -0
- package/lib/theme/themes/compact/genCompactSizeMapToken.d.ts +2 -0
- package/lib/theme/themes/compact/genCompactSizeMapToken.js +16 -0
- package/lib/theme/themes/compact/index.d.ts +4 -0
- package/lib/theme/themes/compact/index.js +32 -0
- package/lib/theme/themes/dark/colorAlgorithm.d.ts +2 -0
- package/lib/theme/themes/dark/colorAlgorithm.js +8 -0
- package/lib/theme/themes/dark/colors.d.ts +3 -0
- package/lib/theme/themes/dark/colors.js +46 -0
- package/lib/theme/themes/dark/index.d.ts +4 -0
- package/lib/theme/themes/dark/index.js +34 -0
- package/lib/theme/themes/default/colorAlgorithm.d.ts +2 -0
- package/lib/theme/themes/default/colorAlgorithm.js +8 -0
- package/lib/theme/themes/default/colors.d.ts +3 -0
- package/lib/theme/themes/default/colors.js +44 -0
- package/lib/theme/themes/default/index.d.ts +2 -0
- package/lib/theme/themes/default/index.js +32 -0
- package/lib/theme/themes/seed.d.ts +4 -0
- package/lib/theme/themes/seed.js +69 -0
- package/lib/theme/themes/shared/genColorMapToken.d.ts +8 -0
- package/lib/theme/themes/shared/genColorMapToken.js +78 -0
- package/lib/theme/themes/shared/genCommonMapToken.d.ts +2 -0
- package/lib/theme/themes/shared/genCommonMapToken.js +33 -0
- package/lib/theme/themes/shared/genControlHeight.d.ts +3 -0
- package/lib/theme/themes/shared/genControlHeight.js +9 -0
- package/lib/theme/themes/shared/genFontSizes.d.ts +4 -0
- package/lib/theme/themes/shared/genFontSizes.js +19 -0
- package/lib/theme/themes/shared/genRadius.d.ts +3 -0
- package/lib/theme/themes/shared/genRadius.js +50 -0
- package/lib/theme/themes/shared/genSizeMapToken.d.ts +2 -0
- package/lib/theme/themes/shared/genSizeMapToken.js +23 -0
- package/lib/theme/themes/themeConfig.d.ts +3 -0
- package/lib/theme/themes/themeConfig.js +65 -0
- package/lib/theme/useToken.d.ts +19 -0
- package/lib/theme/useToken.js +137 -0
- package/lib/theme/util/alias.d.ts +12 -0
- package/lib/theme/util/alias.js +149 -0
- package/lib/theme/util/calc/CSSCalculator.d.ts +14 -0
- package/lib/theme/util/calc/CSSCalculator.js +107 -0
- package/lib/theme/util/calc/NumCalculator.d.ts +10 -0
- package/lib/theme/util/calc/NumCalculator.js +75 -0
- package/lib/theme/util/calc/calculator.d.ts +30 -0
- package/lib/theme/util/calc/calculator.js +13 -0
- package/lib/theme/util/calc/index.d.ts +5 -0
- package/lib/theme/util/calc/index.js +16 -0
- package/lib/theme/util/genComponentStyleHook.d.ts +90 -0
- package/lib/theme/util/genComponentStyleHook.js +247 -0
- package/lib/theme/util/genPresetColor.d.ts +16 -0
- package/lib/theme/util/genPresetColor.js +21 -0
- package/lib/theme/util/getAlphaColor.d.ts +2 -0
- package/lib/theme/util/getAlphaColor.js +46 -0
- package/lib/theme/util/maxmin.d.ts +7 -0
- package/lib/theme/util/maxmin.js +33 -0
- package/lib/theme/util/statistic.d.ts +11 -0
- package/lib/theme/util/statistic.js +76 -0
- package/lib/theme/util/useResetIconStyle.d.ts +4 -0
- package/lib/theme/util/useResetIconStyle.js +41 -0
- package/lib/time-picker/index.d.ts +4 -3
- package/lib/time-picker/index.js +22 -38
- package/lib/time-picker/locale/ar_EG.js +2 -3
- package/lib/time-picker/locale/az_AZ.js +2 -3
- package/lib/time-picker/locale/bg_BG.js +2 -3
- package/lib/time-picker/locale/bn_BD.js +2 -3
- package/lib/time-picker/locale/by_BY.js +2 -3
- package/lib/time-picker/locale/ca_ES.js +2 -3
- package/lib/time-picker/locale/cs_CZ.js +2 -3
- package/lib/time-picker/locale/da_DK.js +2 -3
- package/lib/time-picker/locale/de_DE.js +4 -4
- package/lib/time-picker/locale/el_GR.js +2 -3
- package/lib/time-picker/locale/en_GB.js +2 -3
- package/lib/time-picker/locale/en_US.js +2 -3
- package/lib/time-picker/locale/es_ES.js +2 -3
- package/lib/time-picker/locale/et_EE.js +2 -3
- package/lib/time-picker/locale/eu_ES.d.ts +3 -0
- package/lib/time-picker/locale/eu_ES.js +10 -0
- package/lib/time-picker/locale/fa_IR.js +2 -3
- package/lib/time-picker/locale/fi_FI.js +2 -3
- package/lib/time-picker/locale/fr_BE.js +4 -4
- package/lib/time-picker/locale/fr_CA.js +2 -3
- package/lib/time-picker/locale/fr_FR.js +2 -3
- package/lib/time-picker/locale/ga_IE.js +2 -3
- package/lib/time-picker/locale/gl_ES.js +2 -3
- package/lib/time-picker/locale/he_IL.js +2 -3
- package/lib/time-picker/locale/hi_IN.js +2 -3
- package/lib/time-picker/locale/hr_HR.js +2 -3
- package/lib/time-picker/locale/hu_HU.js +2 -3
- package/lib/time-picker/locale/id_ID.js +2 -3
- package/lib/time-picker/locale/is_IS.js +2 -3
- package/lib/time-picker/locale/it_IT.js +2 -3
- package/lib/time-picker/locale/ja_JP.js +2 -3
- package/lib/time-picker/locale/ka_GE.js +2 -3
- package/lib/time-picker/locale/kk_KZ.js +2 -3
- package/lib/time-picker/locale/km_KH.js +2 -3
- package/lib/time-picker/locale/kmr_IQ.js +2 -3
- package/lib/time-picker/locale/kn_IN.js +2 -3
- package/lib/time-picker/locale/ko_KR.js +2 -3
- package/lib/time-picker/locale/lt_LT.js +2 -3
- package/lib/time-picker/locale/lv_LV.js +2 -3
- package/lib/time-picker/locale/mk_MK.js +2 -3
- package/lib/time-picker/locale/ml_IN.js +2 -3
- package/lib/time-picker/locale/mn_MN.js +2 -3
- package/lib/time-picker/locale/ms_MY.js +2 -3
- package/lib/time-picker/locale/my_MM.d.ts +3 -0
- package/lib/time-picker/locale/my_MM.js +11 -0
- package/lib/time-picker/locale/nb_NO.js +2 -3
- package/lib/time-picker/locale/nl_BE.js +2 -3
- package/lib/time-picker/locale/nl_NL.js +2 -3
- package/lib/time-picker/locale/pl_PL.js +2 -3
- package/lib/time-picker/locale/pt_BR.js +2 -3
- package/lib/time-picker/locale/pt_PT.js +2 -3
- package/lib/time-picker/locale/ro_RO.js +2 -3
- package/lib/time-picker/locale/ru_RU.js +2 -3
- package/lib/time-picker/locale/si_LK.js +2 -3
- package/lib/time-picker/locale/sk_SK.js +2 -3
- package/lib/time-picker/locale/sl_SI.js +2 -3
- package/lib/time-picker/locale/sr_RS.js +2 -3
- package/lib/time-picker/locale/sv_SE.js +2 -3
- package/lib/time-picker/locale/ta_IN.js +2 -3
- package/lib/time-picker/locale/th_TH.js +2 -3
- package/lib/time-picker/locale/tk_TK.js +2 -3
- package/lib/time-picker/locale/tr_TR.js +2 -3
- package/lib/time-picker/locale/uk_UA.js +2 -3
- package/lib/time-picker/locale/ur_PK.js +2 -3
- package/lib/time-picker/locale/vi_VN.js +4 -4
- package/lib/time-picker/locale/zh_CN.js +2 -3
- package/lib/time-picker/locale/zh_TW.js +2 -3
- package/lib/timeline/Timeline.d.ts +2 -0
- package/lib/timeline/Timeline.js +53 -101
- package/lib/timeline/TimelineItem.d.ts +4 -1
- package/lib/timeline/TimelineItem.js +29 -44
- package/lib/timeline/TimelineItemList.d.ts +7 -0
- package/lib/timeline/TimelineItemList.js +91 -0
- package/lib/timeline/index.js +4 -7
- package/lib/timeline/style/index.d.ts +29 -1
- package/lib/timeline/style/index.js +80 -76
- package/lib/timeline/useItems.d.ts +4 -0
- package/lib/timeline/useItems.js +19 -0
- package/lib/tooltip/PurePanel.d.ts +3 -1
- package/lib/tooltip/PurePanel.js +38 -43
- package/lib/tooltip/index.d.ts +19 -4
- package/lib/tooltip/index.js +146 -217
- package/lib/tooltip/style/index.d.ts +11 -4
- package/lib/tooltip/style/index.js +70 -93
- package/lib/tooltip/util.js +10 -15
- package/lib/tour/PurePanel.d.ts +2 -2
- package/lib/tour/PurePanel.js +40 -52
- package/lib/tour/index.d.ts +1 -1
- package/lib/tour/index.js +75 -58
- package/lib/tour/interface.d.ts +7 -3
- package/lib/tour/panelRender.d.ts +10 -2
- package/lib/tour/panelRender.js +109 -108
- package/lib/tour/style/index.d.ts +27 -2
- package/lib/tour/style/index.js +109 -107
- package/lib/transfer/ListBody.d.ts +6 -19
- package/lib/transfer/ListBody.js +113 -176
- package/lib/transfer/ListItem.d.ts +2 -2
- package/lib/transfer/ListItem.js +57 -70
- package/lib/transfer/hooks/useData.d.ts +3 -0
- package/lib/transfer/hooks/useData.js +47 -0
- package/lib/transfer/hooks/useSelection.d.ts +9 -0
- package/lib/transfer/hooks/useSelection.js +66 -0
- package/lib/transfer/index.d.ts +18 -68
- package/lib/transfer/index.js +341 -474
- package/lib/transfer/list.d.ts +13 -39
- package/lib/transfer/list.js +270 -390
- package/lib/transfer/operation.d.ts +3 -3
- package/lib/transfer/operation.js +26 -31
- package/lib/transfer/search.d.ts +2 -1
- package/lib/transfer/search.js +18 -20
- package/lib/transfer/style/index.d.ts +31 -1
- package/lib/transfer/style/index.js +136 -146
- package/lib/tree/DirectoryTree.d.ts +1 -1
- package/lib/tree/DirectoryTree.js +67 -105
- package/lib/tree/Tree.d.ts +18 -17
- package/lib/tree/Tree.js +70 -76
- package/lib/tree/index.d.ts +5 -5
- package/lib/tree/index.js +7 -12
- package/lib/tree/style/index.d.ts +38 -6
- package/lib/tree/style/index.js +141 -144
- package/lib/tree/utils/dictUtil.d.ts +6 -2
- package/lib/tree/utils/dictUtil.js +16 -31
- package/lib/tree/utils/dropIndicator.d.ts +2 -2
- package/lib/tree/utils/dropIndicator.js +16 -23
- package/lib/tree/utils/iconUtil.d.ts +11 -4
- package/lib/tree/utils/iconUtil.js +30 -49
- package/lib/tree-select/index.d.ts +16 -5
- package/lib/tree-select/index.js +162 -159
- package/lib/tree-select/style/index.d.ts +7 -1
- package/lib/tree-select/style/index.js +34 -34
- package/lib/typography/Base/Ellipsis.d.ts +1 -4
- package/lib/typography/Base/Ellipsis.js +57 -78
- package/lib/typography/Base/EllipsisTooltip.d.ts +1 -4
- package/lib/typography/Base/EllipsisTooltip.js +9 -20
- package/lib/typography/Base/index.d.ts +1 -1
- package/lib/typography/Base/index.js +181 -274
- package/lib/typography/Editable.d.ts +1 -1
- package/lib/typography/Editable.js +60 -76
- package/lib/typography/Link.js +18 -30
- package/lib/typography/Paragraph.js +6 -13
- package/lib/typography/Text.js +17 -33
- package/lib/typography/Title.d.ts +1 -1
- package/lib/typography/Title.js +16 -31
- package/lib/typography/Typography.d.ts +1 -0
- package/lib/typography/Typography.js +51 -60
- package/lib/typography/hooks/useMergedConfig.js +4 -12
- package/lib/typography/hooks/useUpdatedEffect.js +3 -9
- package/lib/typography/index.js +9 -16
- package/lib/typography/style/index.d.ts +14 -4
- package/lib/typography/style/index.js +44 -55
- package/lib/typography/style/mixins.d.ts +3 -3
- package/lib/typography/style/mixins.js +46 -53
- package/lib/upload/Dragger.d.ts +2 -1
- package/lib/upload/Dragger.js +10 -25
- package/lib/upload/Upload.d.ts +15 -3
- package/lib/upload/Upload.js +226 -287
- package/lib/upload/UploadList/ListItem.d.ts +1 -1
- package/lib/upload/UploadList/ListItem.js +80 -104
- package/lib/upload/UploadList/index.d.ts +6 -2
- package/lib/upload/UploadList/index.js +90 -130
- package/lib/upload/index.js +7 -12
- package/lib/upload/interface.d.ts +13 -12
- package/lib/upload/style/dragger.js +23 -28
- package/lib/upload/style/index.d.ts +12 -5
- package/lib/upload/style/index.js +33 -42
- package/lib/upload/style/list.js +45 -57
- package/lib/upload/style/motion.js +15 -19
- package/lib/upload/style/picture.js +73 -74
- package/lib/upload/style/rtl.js +8 -11
- package/lib/upload/utils.d.ts +3 -3
- package/lib/upload/utils.js +16 -38
- package/lib/version/index.js +6 -10
- package/lib/version/token-meta.json +1 -1
- package/lib/version/token.json +1 -1
- package/lib/version/version.d.ts +1 -1
- package/lib/version/version.js +2 -3
- package/lib/watermark/context.d.ts +8 -0
- package/lib/watermark/context.js +30 -0
- package/lib/watermark/index.d.ts +26 -0
- package/lib/watermark/index.js +250 -0
- package/lib/watermark/useClips.d.ts +7 -0
- package/lib/watermark/useClips.js +125 -0
- package/lib/watermark/useRafDebounce.d.ts +4 -0
- package/lib/watermark/useRafDebounce.js +29 -0
- package/lib/watermark/useWatermark.d.ts +13 -0
- package/lib/watermark/useWatermark.js +61 -0
- package/lib/watermark/utils.d.ts +8 -0
- package/lib/watermark/utils.js +38 -0
- package/package.json +72 -70
- package/es/_util/getDataOrAriaProps.d.ts +0 -1
- package/es/_util/getDataOrAriaProps.js +0 -9
- package/es/_util/hooks/useFlexGapSupport.d.ts +0 -2
- package/es/_util/hooks/useFlexGapSupport.js +0 -14
- package/es/_util/raf.d.ts +0 -9
- package/es/_util/raf.js +0 -31
- package/es/_util/responsiveObserve.d.ts +0 -21
- package/es/_util/responsiveObserve.js +0 -67
- package/es/avatar/SizeContext.d.ts +0 -10
- package/es/avatar/SizeContext.js +0 -12
- package/es/badge/utils.d.ts +0 -1
- package/es/badge/utils.js +0 -5
- package/es/dropdown/style/button.d.ts +0 -4
- package/es/dropdown/style/button.js +0 -21
- package/es/input/ClearableLabeledInput.d.ts +0 -40
- package/es/input/ClearableLabeledInput.js +0 -109
- package/es/locale-provider/LocaleReceiver.d.ts +0 -11
- package/es/locale-provider/LocaleReceiver.js +0 -42
- package/es/locale-provider/ar_EG.d.ts +0 -2
- package/es/locale-provider/ar_EG.js +0 -2
- package/es/locale-provider/az_AZ.d.ts +0 -2
- package/es/locale-provider/az_AZ.js +0 -2
- package/es/locale-provider/bg_BG.d.ts +0 -2
- package/es/locale-provider/bg_BG.js +0 -2
- package/es/locale-provider/bn_BD.d.ts +0 -2
- package/es/locale-provider/bn_BD.js +0 -2
- package/es/locale-provider/by_BY.d.ts +0 -2
- package/es/locale-provider/by_BY.js +0 -2
- package/es/locale-provider/ca_ES.d.ts +0 -2
- package/es/locale-provider/ca_ES.js +0 -2
- package/es/locale-provider/cs_CZ.d.ts +0 -2
- package/es/locale-provider/cs_CZ.js +0 -2
- package/es/locale-provider/da_DK.d.ts +0 -2
- package/es/locale-provider/da_DK.js +0 -2
- package/es/locale-provider/de_DE.d.ts +0 -2
- package/es/locale-provider/de_DE.js +0 -2
- package/es/locale-provider/el_GR.d.ts +0 -2
- package/es/locale-provider/el_GR.js +0 -2
- package/es/locale-provider/en_GB.d.ts +0 -2
- package/es/locale-provider/en_GB.js +0 -2
- package/es/locale-provider/en_US.d.ts +0 -2
- package/es/locale-provider/en_US.js +0 -2
- package/es/locale-provider/es_ES.d.ts +0 -2
- package/es/locale-provider/es_ES.js +0 -2
- package/es/locale-provider/et_EE.d.ts +0 -2
- package/es/locale-provider/et_EE.js +0 -2
- package/es/locale-provider/fa_IR.d.ts +0 -2
- package/es/locale-provider/fa_IR.js +0 -2
- package/es/locale-provider/fi_FI.d.ts +0 -2
- package/es/locale-provider/fi_FI.js +0 -2
- package/es/locale-provider/fr_BE.d.ts +0 -2
- package/es/locale-provider/fr_BE.js +0 -2
- package/es/locale-provider/fr_CA.d.ts +0 -2
- package/es/locale-provider/fr_CA.js +0 -2
- package/es/locale-provider/fr_FR.d.ts +0 -2
- package/es/locale-provider/fr_FR.js +0 -2
- package/es/locale-provider/ga_IE.d.ts +0 -2
- package/es/locale-provider/ga_IE.js +0 -2
- package/es/locale-provider/gl_ES.d.ts +0 -2
- package/es/locale-provider/gl_ES.js +0 -2
- package/es/locale-provider/he_IL.d.ts +0 -2
- package/es/locale-provider/he_IL.js +0 -2
- package/es/locale-provider/hi_IN.d.ts +0 -2
- package/es/locale-provider/hi_IN.js +0 -2
- package/es/locale-provider/hr_HR.d.ts +0 -2
- package/es/locale-provider/hr_HR.js +0 -2
- package/es/locale-provider/hu_HU.d.ts +0 -2
- package/es/locale-provider/hu_HU.js +0 -2
- package/es/locale-provider/hy_AM.d.ts +0 -2
- package/es/locale-provider/hy_AM.js +0 -2
- package/es/locale-provider/id_ID.d.ts +0 -2
- package/es/locale-provider/id_ID.js +0 -2
- package/es/locale-provider/index.d.ts +0 -51
- package/es/locale-provider/index.js +0 -34
- package/es/locale-provider/is_IS.d.ts +0 -2
- package/es/locale-provider/is_IS.js +0 -2
- package/es/locale-provider/it_IT.d.ts +0 -2
- package/es/locale-provider/it_IT.js +0 -2
- package/es/locale-provider/ja_JP.d.ts +0 -2
- package/es/locale-provider/ja_JP.js +0 -2
- package/es/locale-provider/ka_GE.d.ts +0 -2
- package/es/locale-provider/ka_GE.js +0 -2
- package/es/locale-provider/kk_KZ.d.ts +0 -2
- package/es/locale-provider/kk_KZ.js +0 -2
- package/es/locale-provider/km_KH.d.ts +0 -2
- package/es/locale-provider/km_KH.js +0 -2
- package/es/locale-provider/kmr_IQ.d.ts +0 -2
- package/es/locale-provider/kmr_IQ.js +0 -2
- package/es/locale-provider/kn_IN.d.ts +0 -2
- package/es/locale-provider/kn_IN.js +0 -2
- package/es/locale-provider/ko_KR.d.ts +0 -2
- package/es/locale-provider/ko_KR.js +0 -2
- package/es/locale-provider/ku_IQ.d.ts +0 -2
- package/es/locale-provider/ku_IQ.js +0 -2
- package/es/locale-provider/lt_LT.d.ts +0 -2
- package/es/locale-provider/lt_LT.js +0 -2
- package/es/locale-provider/lv_LV.d.ts +0 -2
- package/es/locale-provider/lv_LV.js +0 -2
- package/es/locale-provider/mk_MK.d.ts +0 -2
- package/es/locale-provider/mk_MK.js +0 -2
- package/es/locale-provider/ml_IN.d.ts +0 -2
- package/es/locale-provider/ml_IN.js +0 -2
- package/es/locale-provider/mn_MN.d.ts +0 -2
- package/es/locale-provider/mn_MN.js +0 -2
- package/es/locale-provider/ms_MY.d.ts +0 -2
- package/es/locale-provider/ms_MY.js +0 -2
- package/es/locale-provider/nb_NO.d.ts +0 -2
- package/es/locale-provider/nb_NO.js +0 -2
- package/es/locale-provider/ne_NP.d.ts +0 -2
- package/es/locale-provider/ne_NP.js +0 -2
- package/es/locale-provider/nl_BE.d.ts +0 -2
- package/es/locale-provider/nl_BE.js +0 -2
- package/es/locale-provider/nl_NL.d.ts +0 -2
- package/es/locale-provider/nl_NL.js +0 -2
- package/es/locale-provider/pl_PL.d.ts +0 -2
- package/es/locale-provider/pl_PL.js +0 -2
- package/es/locale-provider/pt_BR.d.ts +0 -2
- package/es/locale-provider/pt_BR.js +0 -2
- package/es/locale-provider/pt_PT.d.ts +0 -2
- package/es/locale-provider/pt_PT.js +0 -2
- package/es/locale-provider/ro_RO.d.ts +0 -2
- package/es/locale-provider/ro_RO.js +0 -2
- package/es/locale-provider/ru_RU.d.ts +0 -2
- package/es/locale-provider/ru_RU.js +0 -2
- package/es/locale-provider/si_LK.d.ts +0 -2
- package/es/locale-provider/si_LK.js +0 -2
- package/es/locale-provider/sk_SK.d.ts +0 -2
- package/es/locale-provider/sk_SK.js +0 -2
- package/es/locale-provider/sl_SI.d.ts +0 -2
- package/es/locale-provider/sl_SI.js +0 -2
- package/es/locale-provider/sr_RS.d.ts +0 -2
- package/es/locale-provider/sr_RS.js +0 -2
- package/es/locale-provider/sv_SE.d.ts +0 -2
- package/es/locale-provider/sv_SE.js +0 -2
- package/es/locale-provider/ta_IN.d.ts +0 -2
- package/es/locale-provider/ta_IN.js +0 -2
- package/es/locale-provider/th_TH.d.ts +0 -2
- package/es/locale-provider/th_TH.js +0 -2
- package/es/locale-provider/tk_TK.d.ts +0 -2
- package/es/locale-provider/tk_TK.js +0 -2
- package/es/locale-provider/tr_TR.d.ts +0 -2
- package/es/locale-provider/tr_TR.js +0 -2
- package/es/locale-provider/uk_UA.d.ts +0 -2
- package/es/locale-provider/uk_UA.js +0 -2
- package/es/locale-provider/ur_PK.d.ts +0 -2
- package/es/locale-provider/ur_PK.js +0 -2
- package/es/locale-provider/vi_VN.d.ts +0 -2
- package/es/locale-provider/vi_VN.js +0 -2
- package/es/locale-provider/zh_CN.d.ts +0 -2
- package/es/locale-provider/zh_CN.js +0 -2
- package/es/locale-provider/zh_HK.d.ts +0 -2
- package/es/locale-provider/zh_HK.js +0 -2
- package/es/locale-provider/zh_TW.d.ts +0 -2
- package/es/locale-provider/zh_TW.js +0 -2
- package/es/select/utils/iconUtil.d.ts +0 -24
- package/es/select/utils/iconUtil.js +0 -79
- package/lib/_util/getDataOrAriaProps.d.ts +0 -1
- package/lib/_util/getDataOrAriaProps.js +0 -16
- package/lib/_util/hooks/useFlexGapSupport.d.ts +0 -2
- package/lib/_util/hooks/useFlexGapSupport.js +0 -30
- package/lib/_util/raf.d.ts +0 -9
- package/lib/_util/raf.js +0 -43
- package/lib/_util/responsiveObserve.d.ts +0 -21
- package/lib/_util/responsiveObserve.js +0 -81
- package/lib/avatar/SizeContext.d.ts +0 -10
- package/lib/avatar/SizeContext.js +0 -26
- package/lib/badge/utils.d.ts +0 -1
- package/lib/badge/utils.js +0 -13
- package/lib/dropdown/style/button.d.ts +0 -4
- package/lib/dropdown/style/button.js +0 -31
- package/lib/input/ClearableLabeledInput.d.ts +0 -40
- package/lib/input/ClearableLabeledInput.js +0 -131
- package/lib/locale-provider/LocaleReceiver.d.ts +0 -11
- package/lib/locale-provider/LocaleReceiver.js +0 -60
- package/lib/locale-provider/ar_EG.d.ts +0 -2
- package/lib/locale-provider/ar_EG.js +0 -13
- package/lib/locale-provider/az_AZ.d.ts +0 -2
- package/lib/locale-provider/az_AZ.js +0 -13
- package/lib/locale-provider/bg_BG.d.ts +0 -2
- package/lib/locale-provider/bg_BG.js +0 -13
- package/lib/locale-provider/bn_BD.d.ts +0 -2
- package/lib/locale-provider/bn_BD.js +0 -13
- package/lib/locale-provider/by_BY.d.ts +0 -2
- package/lib/locale-provider/by_BY.js +0 -13
- package/lib/locale-provider/ca_ES.d.ts +0 -2
- package/lib/locale-provider/ca_ES.js +0 -13
- package/lib/locale-provider/context.js +0 -12
- package/lib/locale-provider/cs_CZ.d.ts +0 -2
- package/lib/locale-provider/cs_CZ.js +0 -13
- package/lib/locale-provider/da_DK.d.ts +0 -2
- package/lib/locale-provider/da_DK.js +0 -13
- package/lib/locale-provider/de_DE.d.ts +0 -2
- package/lib/locale-provider/de_DE.js +0 -13
- package/lib/locale-provider/el_GR.d.ts +0 -2
- package/lib/locale-provider/el_GR.js +0 -13
- package/lib/locale-provider/en_GB.d.ts +0 -2
- package/lib/locale-provider/en_GB.js +0 -13
- package/lib/locale-provider/en_US.d.ts +0 -2
- package/lib/locale-provider/en_US.js +0 -13
- package/lib/locale-provider/es_ES.d.ts +0 -2
- package/lib/locale-provider/es_ES.js +0 -13
- package/lib/locale-provider/et_EE.d.ts +0 -2
- package/lib/locale-provider/et_EE.js +0 -13
- package/lib/locale-provider/fa_IR.d.ts +0 -2
- package/lib/locale-provider/fa_IR.js +0 -13
- package/lib/locale-provider/fi_FI.d.ts +0 -2
- package/lib/locale-provider/fi_FI.js +0 -13
- package/lib/locale-provider/fr_BE.d.ts +0 -2
- package/lib/locale-provider/fr_BE.js +0 -13
- package/lib/locale-provider/fr_CA.d.ts +0 -2
- package/lib/locale-provider/fr_CA.js +0 -13
- package/lib/locale-provider/fr_FR.d.ts +0 -2
- package/lib/locale-provider/fr_FR.js +0 -13
- package/lib/locale-provider/ga_IE.d.ts +0 -2
- package/lib/locale-provider/ga_IE.js +0 -13
- package/lib/locale-provider/gl_ES.d.ts +0 -2
- package/lib/locale-provider/gl_ES.js +0 -13
- package/lib/locale-provider/he_IL.d.ts +0 -2
- package/lib/locale-provider/he_IL.js +0 -13
- package/lib/locale-provider/hi_IN.d.ts +0 -2
- package/lib/locale-provider/hi_IN.js +0 -13
- package/lib/locale-provider/hr_HR.d.ts +0 -2
- package/lib/locale-provider/hr_HR.js +0 -13
- package/lib/locale-provider/hu_HU.d.ts +0 -2
- package/lib/locale-provider/hu_HU.js +0 -13
- package/lib/locale-provider/hy_AM.d.ts +0 -2
- package/lib/locale-provider/hy_AM.js +0 -13
- package/lib/locale-provider/id_ID.d.ts +0 -2
- package/lib/locale-provider/id_ID.js +0 -13
- package/lib/locale-provider/index.d.ts +0 -51
- package/lib/locale-provider/index.js +0 -52
- package/lib/locale-provider/is_IS.d.ts +0 -2
- package/lib/locale-provider/is_IS.js +0 -13
- package/lib/locale-provider/it_IT.d.ts +0 -2
- package/lib/locale-provider/it_IT.js +0 -13
- package/lib/locale-provider/ja_JP.d.ts +0 -2
- package/lib/locale-provider/ja_JP.js +0 -13
- package/lib/locale-provider/ka_GE.d.ts +0 -2
- package/lib/locale-provider/ka_GE.js +0 -13
- package/lib/locale-provider/kk_KZ.d.ts +0 -2
- package/lib/locale-provider/kk_KZ.js +0 -13
- package/lib/locale-provider/km_KH.d.ts +0 -2
- package/lib/locale-provider/km_KH.js +0 -13
- package/lib/locale-provider/kmr_IQ.d.ts +0 -2
- package/lib/locale-provider/kmr_IQ.js +0 -13
- package/lib/locale-provider/kn_IN.d.ts +0 -2
- package/lib/locale-provider/kn_IN.js +0 -13
- package/lib/locale-provider/ko_KR.d.ts +0 -2
- package/lib/locale-provider/ko_KR.js +0 -13
- package/lib/locale-provider/ku_IQ.d.ts +0 -2
- package/lib/locale-provider/ku_IQ.js +0 -13
- package/lib/locale-provider/lt_LT.d.ts +0 -2
- package/lib/locale-provider/lt_LT.js +0 -13
- package/lib/locale-provider/lv_LV.d.ts +0 -2
- package/lib/locale-provider/lv_LV.js +0 -13
- package/lib/locale-provider/mk_MK.d.ts +0 -2
- package/lib/locale-provider/mk_MK.js +0 -13
- package/lib/locale-provider/ml_IN.d.ts +0 -2
- package/lib/locale-provider/ml_IN.js +0 -13
- package/lib/locale-provider/mn_MN.d.ts +0 -2
- package/lib/locale-provider/mn_MN.js +0 -13
- package/lib/locale-provider/ms_MY.d.ts +0 -2
- package/lib/locale-provider/ms_MY.js +0 -13
- package/lib/locale-provider/nb_NO.d.ts +0 -2
- package/lib/locale-provider/nb_NO.js +0 -13
- package/lib/locale-provider/ne_NP.d.ts +0 -2
- package/lib/locale-provider/ne_NP.js +0 -13
- package/lib/locale-provider/nl_BE.d.ts +0 -2
- package/lib/locale-provider/nl_BE.js +0 -13
- package/lib/locale-provider/nl_NL.d.ts +0 -2
- package/lib/locale-provider/nl_NL.js +0 -13
- package/lib/locale-provider/pl_PL.d.ts +0 -2
- package/lib/locale-provider/pl_PL.js +0 -13
- package/lib/locale-provider/pt_BR.d.ts +0 -2
- package/lib/locale-provider/pt_BR.js +0 -13
- package/lib/locale-provider/pt_PT.d.ts +0 -2
- package/lib/locale-provider/pt_PT.js +0 -13
- package/lib/locale-provider/ro_RO.d.ts +0 -2
- package/lib/locale-provider/ro_RO.js +0 -13
- package/lib/locale-provider/ru_RU.d.ts +0 -2
- package/lib/locale-provider/ru_RU.js +0 -13
- package/lib/locale-provider/si_LK.d.ts +0 -2
- package/lib/locale-provider/si_LK.js +0 -13
- package/lib/locale-provider/sk_SK.d.ts +0 -2
- package/lib/locale-provider/sk_SK.js +0 -13
- package/lib/locale-provider/sl_SI.d.ts +0 -2
- package/lib/locale-provider/sl_SI.js +0 -13
- package/lib/locale-provider/sr_RS.d.ts +0 -2
- package/lib/locale-provider/sr_RS.js +0 -13
- package/lib/locale-provider/sv_SE.d.ts +0 -2
- package/lib/locale-provider/sv_SE.js +0 -13
- package/lib/locale-provider/ta_IN.d.ts +0 -2
- package/lib/locale-provider/ta_IN.js +0 -13
- package/lib/locale-provider/th_TH.d.ts +0 -2
- package/lib/locale-provider/th_TH.js +0 -13
- package/lib/locale-provider/tk_TK.d.ts +0 -2
- package/lib/locale-provider/tk_TK.js +0 -13
- package/lib/locale-provider/tr_TR.d.ts +0 -2
- package/lib/locale-provider/tr_TR.js +0 -13
- package/lib/locale-provider/uk_UA.d.ts +0 -2
- package/lib/locale-provider/uk_UA.js +0 -13
- package/lib/locale-provider/ur_PK.d.ts +0 -2
- package/lib/locale-provider/ur_PK.js +0 -13
- package/lib/locale-provider/vi_VN.d.ts +0 -2
- package/lib/locale-provider/vi_VN.js +0 -13
- package/lib/locale-provider/zh_CN.d.ts +0 -2
- package/lib/locale-provider/zh_CN.js +0 -13
- package/lib/locale-provider/zh_HK.d.ts +0 -2
- package/lib/locale-provider/zh_HK.js +0 -13
- package/lib/locale-provider/zh_TW.d.ts +0 -2
- package/lib/locale-provider/zh_TW.js +0 -13
- package/lib/select/utils/iconUtil.d.ts +0 -24
- package/lib/select/utils/iconUtil.js +0 -97
- /package/es/{locale-provider → locale}/context.d.ts +0 -0
- /package/es/{locale-provider → locale}/context.js +0 -0
- /package/lib/{locale-provider → locale}/context.d.ts +0 -0
@@ -1,60 +1,51 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
5
7
|
Object.defineProperty(exports, "__esModule", {
|
6
8
|
value: true
|
7
9
|
});
|
8
|
-
exports.initPickerPanelToken = exports.genPanelStyle = exports
|
9
|
-
|
10
|
-
var _extends5 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
11
|
-
|
12
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
13
|
-
|
10
|
+
exports.prepareComponentToken = exports.initPickerPanelToken = exports.initPanelComponentToken = exports.genPanelStyle = exports.default = void 0;
|
11
|
+
var _cssinjs = require("@ant-design/cssinjs");
|
14
12
|
var _tinycolor = require("@ctrl/tinycolor");
|
15
|
-
|
16
13
|
var _style = require("../../input/style");
|
17
|
-
|
18
|
-
var _motion = require("../../style/motion");
|
19
|
-
|
20
|
-
var _internal = require("../../theme/internal");
|
21
|
-
|
22
14
|
var _style2 = require("../../style");
|
23
|
-
|
24
15
|
var _compactItem = require("../../style/compact-item");
|
25
|
-
|
26
|
-
var
|
27
|
-
|
28
|
-
|
29
|
-
var
|
30
|
-
var
|
16
|
+
var _motion = require("../../style/motion");
|
17
|
+
var _internal = require("../../theme/internal");
|
18
|
+
var _roundedArrow = require("../../style/roundedArrow");
|
19
|
+
var genPikerPadding = function genPikerPadding(token, inputHeight, fontHeight, paddingHorizontal) {
|
20
|
+
var height = token.calc(fontHeight).add(2).equal();
|
21
|
+
var paddingTop = token.max(token.calc(inputHeight).sub(height).div(2).equal(), 0);
|
22
|
+
var paddingBottom = token.max(token.calc(inputHeight).sub(height).sub(paddingTop).equal(), 0);
|
31
23
|
return {
|
32
|
-
padding: paddingTop
|
24
|
+
padding: "".concat((0, _cssinjs.unit)(paddingTop), " ").concat((0, _cssinjs.unit)(paddingHorizontal), " ").concat((0, _cssinjs.unit)(paddingBottom))
|
33
25
|
};
|
34
26
|
};
|
35
|
-
|
36
27
|
var genPickerCellInnerStyle = function genPickerCellInnerStyle(token) {
|
37
28
|
var _disabled, _ref;
|
38
|
-
|
39
29
|
var componentCls = token.componentCls,
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
30
|
+
pickerCellCls = token.pickerCellCls,
|
31
|
+
pickerCellInnerCls = token.pickerCellInnerCls,
|
32
|
+
cellHeight = token.cellHeight,
|
33
|
+
motionDurationSlow = token.motionDurationSlow,
|
34
|
+
borderRadiusSM = token.borderRadiusSM,
|
35
|
+
motionDurationMid = token.motionDurationMid,
|
36
|
+
cellHoverBg = token.cellHoverBg,
|
37
|
+
lineWidth = token.lineWidth,
|
38
|
+
lineType = token.lineType,
|
39
|
+
colorPrimary = token.colorPrimary,
|
40
|
+
cellActiveWithRangeBg = token.cellActiveWithRangeBg,
|
41
|
+
colorTextLightSolid = token.colorTextLightSolid,
|
42
|
+
controlHeightSM = token.controlHeightSM,
|
43
|
+
cellRangeBorderColor = token.cellRangeBorderColor,
|
44
|
+
pickerCellBorderGap = token.pickerCellBorderGap,
|
45
|
+
cellHoverWithRangeBg = token.cellHoverWithRangeBg,
|
46
|
+
cellWidth = token.cellWidth,
|
47
|
+
colorTextDisabled = token.colorTextDisabled,
|
48
|
+
cellBgDisabled = token.cellBgDisabled;
|
58
49
|
return _ref = {
|
59
50
|
'&::before': {
|
60
51
|
position: 'absolute',
|
@@ -62,23 +53,26 @@ var genPickerCellInnerStyle = function genPickerCellInnerStyle(token) {
|
|
62
53
|
insetInlineStart: 0,
|
63
54
|
insetInlineEnd: 0,
|
64
55
|
zIndex: 1,
|
65
|
-
height:
|
56
|
+
height: cellHeight,
|
66
57
|
transform: 'translateY(-50%)',
|
67
|
-
transition: "all "
|
58
|
+
transition: "all ".concat(motionDurationSlow),
|
68
59
|
content: '""'
|
69
60
|
}
|
70
|
-
}, (
|
61
|
+
}, _defineProperty(_ref, pickerCellInnerCls, {
|
71
62
|
position: 'relative',
|
72
63
|
zIndex: 2,
|
73
64
|
display: 'inline-block',
|
74
|
-
minWidth:
|
75
|
-
height:
|
76
|
-
lineHeight:
|
65
|
+
minWidth: cellHeight,
|
66
|
+
height: cellHeight,
|
67
|
+
lineHeight: (0, _cssinjs.unit)(cellHeight),
|
77
68
|
borderRadius: borderRadiusSM,
|
78
|
-
transition: "background "
|
79
|
-
}), (
|
80
|
-
|
81
|
-
|
69
|
+
transition: "background ".concat(motionDurationMid, ", border ").concat(motionDurationMid)
|
70
|
+
}), _defineProperty(_ref, "&-range-hover-start, &-range-hover-end", _defineProperty({}, pickerCellInnerCls, {
|
71
|
+
borderStartEndRadius: 0,
|
72
|
+
borderEndEndRadius: 0
|
73
|
+
})), _defineProperty(_ref, "&:hover:not(".concat(pickerCellCls, "-in-view),\n &:hover:not(").concat(pickerCellCls, "-selected):not(").concat(pickerCellCls, "-range-start):not(").concat(pickerCellCls, "-range-end):not(").concat(pickerCellCls, "-range-hover-start):not(").concat(pickerCellCls, "-range-hover-end)"), _defineProperty({}, pickerCellInnerCls, {
|
74
|
+
background: cellHoverBg
|
75
|
+
})), _defineProperty(_ref, "&-in-view".concat(pickerCellCls, "-today ").concat(pickerCellInnerCls), {
|
82
76
|
'&::before': {
|
83
77
|
position: 'absolute',
|
84
78
|
top: 0,
|
@@ -86,132 +80,133 @@ var genPickerCellInnerStyle = function genPickerCellInnerStyle(token) {
|
|
86
80
|
bottom: 0,
|
87
81
|
insetInlineStart: 0,
|
88
82
|
zIndex: 1,
|
89
|
-
border: lineWidth
|
83
|
+
border: "".concat((0, _cssinjs.unit)(lineWidth), " ").concat(lineType, " ").concat(colorPrimary),
|
90
84
|
borderRadius: borderRadiusSM,
|
91
85
|
content: '""'
|
92
86
|
}
|
93
|
-
}), (
|
87
|
+
}), _defineProperty(_ref, "&-in-view".concat(pickerCellCls, "-in-range"), {
|
94
88
|
position: 'relative',
|
95
89
|
'&::before': {
|
96
|
-
background:
|
90
|
+
background: cellActiveWithRangeBg
|
97
91
|
}
|
98
|
-
}), (
|
92
|
+
}), _defineProperty(_ref, "&-in-view".concat(pickerCellCls, "-selected ").concat(pickerCellInnerCls, ",\n &-in-view").concat(pickerCellCls, "-range-start ").concat(pickerCellInnerCls, ",\n &-in-view").concat(pickerCellCls, "-range-end ").concat(pickerCellInnerCls), {
|
99
93
|
color: colorTextLightSolid,
|
100
94
|
background: colorPrimary
|
101
|
-
}), (
|
95
|
+
}), _defineProperty(_ref, "&-in-view".concat(pickerCellCls, "-range-start:not(").concat(pickerCellCls, "-range-start-single),\n &-in-view").concat(pickerCellCls, "-range-end:not(").concat(pickerCellCls, "-range-end-single)"), {
|
102
96
|
'&::before': {
|
103
|
-
background:
|
97
|
+
background: cellActiveWithRangeBg
|
104
98
|
}
|
105
|
-
}), (
|
99
|
+
}), _defineProperty(_ref, "&-in-view".concat(pickerCellCls, "-range-start::before"), {
|
106
100
|
insetInlineStart: '50%'
|
107
|
-
}), (
|
101
|
+
}), _defineProperty(_ref, "&-in-view".concat(pickerCellCls, "-range-end::before"), {
|
108
102
|
insetInlineEnd: '50%'
|
109
|
-
}), (
|
103
|
+
}), _defineProperty(_ref, "&-in-view".concat(pickerCellCls, "-range-hover-start:not(").concat(pickerCellCls, "-in-range):not(").concat(pickerCellCls, "-range-start):not(").concat(pickerCellCls, "-range-end),\n &-in-view").concat(pickerCellCls, "-range-hover-end:not(").concat(pickerCellCls, "-in-range):not(").concat(pickerCellCls, "-range-start):not(").concat(pickerCellCls, "-range-end),\n &-in-view").concat(pickerCellCls, "-range-hover-start").concat(pickerCellCls, "-range-start-single,\n &-in-view").concat(pickerCellCls, "-range-hover-start").concat(pickerCellCls, "-range-start").concat(pickerCellCls, "-range-end").concat(pickerCellCls, "-range-end-near-hover,\n &-in-view").concat(pickerCellCls, "-range-hover-end").concat(pickerCellCls, "-range-start").concat(pickerCellCls, "-range-end").concat(pickerCellCls, "-range-start-near-hover,\n &-in-view").concat(pickerCellCls, "-range-hover-end").concat(pickerCellCls, "-range-end-single,\n &-in-view").concat(pickerCellCls, "-range-hover:not(").concat(pickerCellCls, "-in-range)"), {
|
110
104
|
'&::after': {
|
111
105
|
position: 'absolute',
|
112
106
|
top: '50%',
|
113
107
|
zIndex: 0,
|
114
108
|
height: controlHeightSM,
|
115
|
-
borderTop: lineWidth
|
116
|
-
borderBottom: lineWidth
|
109
|
+
borderTop: "".concat((0, _cssinjs.unit)(lineWidth), " dashed ").concat(cellRangeBorderColor),
|
110
|
+
borderBottom: "".concat((0, _cssinjs.unit)(lineWidth), " dashed ").concat(cellRangeBorderColor),
|
117
111
|
transform: 'translateY(-50%)',
|
118
|
-
transition: "all "
|
112
|
+
transition: "all ".concat(motionDurationSlow),
|
119
113
|
content: '""'
|
120
114
|
}
|
121
|
-
}), (
|
115
|
+
}), _defineProperty(_ref, "&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after", {
|
122
116
|
insetInlineEnd: 0,
|
123
117
|
insetInlineStart: pickerCellBorderGap
|
124
|
-
}), (
|
125
|
-
background:
|
126
|
-
}), (
|
118
|
+
}), _defineProperty(_ref, "&-in-view".concat(pickerCellCls, "-in-range").concat(pickerCellCls, "-range-hover::before,\n &-in-view").concat(pickerCellCls, "-in-range").concat(pickerCellCls, "-range-hover-start::before,\n &-in-view").concat(pickerCellCls, "-in-range").concat(pickerCellCls, "-range-hover-end::before,\n &-in-view").concat(pickerCellCls, "-range-start").concat(pickerCellCls, "-range-hover::before,\n &-in-view").concat(pickerCellCls, "-range-end").concat(pickerCellCls, "-range-hover::before,\n &-in-view").concat(pickerCellCls, "-range-start:not(").concat(pickerCellCls, "-range-start-single)").concat(pickerCellCls, "-range-hover-start::before,\n &-in-view").concat(pickerCellCls, "-range-end:not(").concat(pickerCellCls, "-range-end-single)").concat(pickerCellCls, "-range-hover-end::before,\n ").concat(componentCls, "-panel\n > :not(").concat(componentCls, "-date-panel)\n &-in-view").concat(pickerCellCls, "-in-range").concat(pickerCellCls, "-range-hover-start::before,\n ").concat(componentCls, "-panel\n > :not(").concat(componentCls, "-date-panel)\n &-in-view").concat(pickerCellCls, "-in-range").concat(pickerCellCls, "-range-hover-end::before"), {
|
119
|
+
background: cellHoverWithRangeBg
|
120
|
+
}), _defineProperty(_ref, "&-in-view".concat(pickerCellCls, "-range-start:not(").concat(pickerCellCls, "-range-start-single):not(").concat(pickerCellCls, "-range-end) ").concat(pickerCellInnerCls), {
|
127
121
|
borderStartStartRadius: borderRadiusSM,
|
128
122
|
borderEndStartRadius: borderRadiusSM,
|
129
123
|
borderStartEndRadius: 0,
|
130
124
|
borderEndEndRadius: 0
|
131
|
-
}), (
|
125
|
+
}), _defineProperty(_ref, "&-in-view".concat(pickerCellCls, "-range-end:not(").concat(pickerCellCls, "-range-end-single):not(").concat(pickerCellCls, "-range-start) ").concat(pickerCellInnerCls), {
|
132
126
|
borderStartStartRadius: 0,
|
133
127
|
borderEndStartRadius: 0,
|
134
128
|
borderStartEndRadius: borderRadiusSM,
|
135
129
|
borderEndEndRadius: borderRadiusSM
|
136
|
-
}), (
|
130
|
+
}), _defineProperty(_ref, "&-range-hover".concat(pickerCellCls, "-range-end::after"), {
|
137
131
|
insetInlineStart: '50%'
|
138
|
-
}), (
|
139
|
-
insetInlineStart: (
|
140
|
-
borderInlineStart: lineWidth
|
141
|
-
borderStartStartRadius:
|
142
|
-
borderEndStartRadius:
|
143
|
-
}), (
|
144
|
-
insetInlineEnd: (
|
145
|
-
borderInlineEnd: lineWidth
|
146
|
-
borderStartEndRadius:
|
147
|
-
borderEndEndRadius:
|
148
|
-
}), (
|
132
|
+
}), _defineProperty(_ref, "tr > &-in-view".concat(pickerCellCls, "-range-hover:first-child::after,\n tr > &-in-view").concat(pickerCellCls, "-range-hover-end:first-child::after,\n &-in-view").concat(pickerCellCls, "-start").concat(pickerCellCls, "-range-hover-edge-start").concat(pickerCellCls, "-range-hover-edge-start-near-range::after,\n &-in-view").concat(pickerCellCls, "-range-hover-edge-start:not(").concat(pickerCellCls, "-range-hover-edge-start-near-range)::after,\n &-in-view").concat(pickerCellCls, "-range-hover-start::after"), {
|
133
|
+
insetInlineStart: token.calc(cellWidth).sub(cellHeight).div(2).equal(),
|
134
|
+
borderInlineStart: "".concat((0, _cssinjs.unit)(lineWidth), " dashed ").concat(cellRangeBorderColor),
|
135
|
+
borderStartStartRadius: borderRadiusSM,
|
136
|
+
borderEndStartRadius: borderRadiusSM
|
137
|
+
}), _defineProperty(_ref, "tr > &-in-view".concat(pickerCellCls, "-range-hover:last-child::after,\n tr > &-in-view").concat(pickerCellCls, "-range-hover-start:last-child::after,\n &-in-view").concat(pickerCellCls, "-end").concat(pickerCellCls, "-range-hover-edge-end").concat(pickerCellCls, "-range-hover-edge-end-near-range::after,\n &-in-view").concat(pickerCellCls, "-range-hover-edge-end:not(").concat(pickerCellCls, "-range-hover-edge-end-near-range)::after,\n &-in-view").concat(pickerCellCls, "-range-hover-end::after"), {
|
138
|
+
insetInlineEnd: token.calc(cellWidth).sub(cellHeight).div(2).equal(),
|
139
|
+
borderInlineEnd: "".concat((0, _cssinjs.unit)(lineWidth), " dashed ").concat(cellRangeBorderColor),
|
140
|
+
borderStartEndRadius: borderRadiusSM,
|
141
|
+
borderEndEndRadius: borderRadiusSM
|
142
|
+
}), _defineProperty(_ref, '&-disabled', (_disabled = {
|
149
143
|
color: colorTextDisabled,
|
150
144
|
pointerEvents: 'none'
|
151
|
-
}, (
|
145
|
+
}, _defineProperty(_disabled, pickerCellInnerCls, {
|
152
146
|
background: 'transparent'
|
153
|
-
}), (
|
154
|
-
background:
|
155
|
-
}), _disabled)), (
|
147
|
+
}), _defineProperty(_disabled, '&::before', {
|
148
|
+
background: cellBgDisabled
|
149
|
+
}), _disabled)), _defineProperty(_ref, "&-disabled".concat(pickerCellCls, "-today ").concat(pickerCellInnerCls, "::before"), {
|
156
150
|
borderColor: colorTextDisabled
|
157
151
|
}), _ref;
|
158
152
|
};
|
159
|
-
|
160
153
|
var genPanelStyle = function genPanelStyle(token) {
|
161
|
-
var _rtl, _decadePanel, _decadePanel2, _yearPanel,
|
162
|
-
|
154
|
+
var _rtl, _decadePanel, _quarterPanel, _decadePanel2, _yearPanel, _yearPanel2, _$concat8, _row, _weekPanel, _datePanel, _datetimePanel, _$concat9, _timePanel, _componentCls;
|
163
155
|
var componentCls = token.componentCls,
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
156
|
+
pickerCellCls = token.pickerCellCls,
|
157
|
+
pickerCellInnerCls = token.pickerCellInnerCls,
|
158
|
+
pickerYearMonthCellWidth = token.pickerYearMonthCellWidth,
|
159
|
+
pickerControlIconSize = token.pickerControlIconSize,
|
160
|
+
cellWidth = token.cellWidth,
|
161
|
+
paddingSM = token.paddingSM,
|
162
|
+
paddingXS = token.paddingXS,
|
163
|
+
paddingXXS = token.paddingXXS,
|
164
|
+
colorBgContainer = token.colorBgContainer,
|
165
|
+
lineWidth = token.lineWidth,
|
166
|
+
lineType = token.lineType,
|
167
|
+
borderRadiusLG = token.borderRadiusLG,
|
168
|
+
colorPrimary = token.colorPrimary,
|
169
|
+
colorTextHeading = token.colorTextHeading,
|
170
|
+
colorSplit = token.colorSplit,
|
171
|
+
pickerControlIconBorderWidth = token.pickerControlIconBorderWidth,
|
172
|
+
colorIcon = token.colorIcon,
|
173
|
+
textHeight = token.textHeight,
|
174
|
+
motionDurationMid = token.motionDurationMid,
|
175
|
+
colorIconHover = token.colorIconHover,
|
176
|
+
fontWeightStrong = token.fontWeightStrong,
|
177
|
+
cellHeight = token.cellHeight,
|
178
|
+
pickerCellPaddingVertical = token.pickerCellPaddingVertical,
|
179
|
+
colorTextDisabled = token.colorTextDisabled,
|
180
|
+
colorText = token.colorText,
|
181
|
+
fontSize = token.fontSize,
|
182
|
+
cellHoverWithRangeBg = token.cellHoverWithRangeBg,
|
183
|
+
motionDurationSlow = token.motionDurationSlow,
|
184
|
+
withoutTimeCellHeight = token.withoutTimeCellHeight,
|
185
|
+
pickerQuarterPanelContentHeight = token.pickerQuarterPanelContentHeight,
|
186
|
+
colorLink = token.colorLink,
|
187
|
+
colorLinkActive = token.colorLinkActive,
|
188
|
+
colorLinkHover = token.colorLinkHover,
|
189
|
+
cellRangeBorderColor = token.cellRangeBorderColor,
|
190
|
+
borderRadiusSM = token.borderRadiusSM,
|
191
|
+
colorTextLightSolid = token.colorTextLightSolid,
|
192
|
+
cellHoverBg = token.cellHoverBg,
|
193
|
+
timeColumnHeight = token.timeColumnHeight,
|
194
|
+
timeColumnWidth = token.timeColumnWidth,
|
195
|
+
timeCellHeight = token.timeCellHeight,
|
196
|
+
controlItemBgActive = token.controlItemBgActive,
|
197
|
+
marginXXS = token.marginXXS,
|
198
|
+
pickerDatePanelPaddingHorizontal = token.pickerDatePanelPaddingHorizontal,
|
199
|
+
pickerControlIconMargin = token.pickerControlIconMargin;
|
200
|
+
var pickerPanelWidth = token.calc(cellWidth).mul(7).add(token.calc(pickerDatePanelPaddingHorizontal).mul(2)).equal();
|
201
|
+
var commonHoverCellFixedDistance = token.calc(pickerPanelWidth).sub(token.calc(paddingXS).mul(2)).div(3).sub(token.pickerYearMonthCellWidth).sub(paddingSM).equal();
|
202
|
+
var quarterHoverCellFixedDistance = token.calc(pickerPanelWidth).sub(token.calc(paddingXS).mul(2)).div(4).sub(token.pickerYearMonthCellWidth).equal();
|
203
|
+
return _defineProperty({}, componentCls, (_componentCls = {
|
209
204
|
'&-panel': {
|
210
205
|
display: 'inline-flex',
|
211
206
|
flexDirection: 'column',
|
212
207
|
textAlign: 'center',
|
213
208
|
background: colorBgContainer,
|
214
|
-
border: lineWidth
|
209
|
+
border: "".concat((0, _cssinjs.unit)(lineWidth), " ").concat(lineType, " ").concat(colorSplit),
|
215
210
|
borderRadius: borderRadiusLG,
|
216
211
|
outline: 'none',
|
217
212
|
'&-focused': {
|
@@ -219,32 +214,33 @@ var genPanelStyle = function genPanelStyle(token) {
|
|
219
214
|
},
|
220
215
|
'&-rtl': (_rtl = {
|
221
216
|
direction: 'rtl'
|
222
|
-
}, (
|
223
|
-
transform: 'rotate(
|
224
|
-
}), (
|
225
|
-
transform: 'rotate(-
|
217
|
+
}, _defineProperty(_rtl, "".concat(componentCls, "-prev-icon,\n ").concat(componentCls, "-super-prev-icon"), {
|
218
|
+
transform: 'rotate(45deg)'
|
219
|
+
}), _defineProperty(_rtl, "".concat(componentCls, "-next-icon,\n ").concat(componentCls, "-super-next-icon"), {
|
220
|
+
transform: 'rotate(-135deg)'
|
226
221
|
}), _rtl)
|
227
222
|
}
|
228
|
-
}, (
|
223
|
+
}, _defineProperty(_componentCls, "&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel", {
|
229
224
|
display: 'flex',
|
230
225
|
flexDirection: 'column',
|
231
226
|
width: pickerPanelWidth
|
232
|
-
}), (
|
227
|
+
}), _defineProperty(_componentCls, '&-header', {
|
233
228
|
display: 'flex',
|
234
|
-
padding: "0 "
|
229
|
+
padding: "0 ".concat((0, _cssinjs.unit)(paddingXS)),
|
235
230
|
color: colorTextHeading,
|
236
|
-
borderBottom: lineWidth
|
231
|
+
borderBottom: "".concat((0, _cssinjs.unit)(lineWidth), " ").concat(lineType, " ").concat(colorSplit),
|
237
232
|
'> *': {
|
238
233
|
flex: 'none'
|
239
234
|
},
|
240
235
|
button: {
|
241
236
|
padding: 0,
|
242
237
|
color: colorIcon,
|
243
|
-
lineHeight:
|
238
|
+
lineHeight: (0, _cssinjs.unit)(textHeight),
|
244
239
|
background: 'transparent',
|
245
240
|
border: 0,
|
246
241
|
cursor: 'pointer',
|
247
|
-
transition: "color "
|
242
|
+
transition: "color ".concat(motionDurationMid),
|
243
|
+
fontSize: 'inherit'
|
248
244
|
},
|
249
245
|
'> button': {
|
250
246
|
minWidth: '1.6em',
|
@@ -256,7 +252,7 @@ var genPanelStyle = function genPanelStyle(token) {
|
|
256
252
|
'&-view': {
|
257
253
|
flex: 'auto',
|
258
254
|
fontWeight: fontWeightStrong,
|
259
|
-
lineHeight:
|
255
|
+
lineHeight: (0, _cssinjs.unit)(textHeight),
|
260
256
|
button: {
|
261
257
|
color: 'inherit',
|
262
258
|
fontWeight: 'inherit',
|
@@ -269,7 +265,7 @@ var genPanelStyle = function genPanelStyle(token) {
|
|
269
265
|
}
|
270
266
|
}
|
271
267
|
}
|
272
|
-
}), (
|
268
|
+
}), _defineProperty(_componentCls, "&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon", {
|
273
269
|
position: 'relative',
|
274
270
|
display: 'inline-block',
|
275
271
|
width: pickerControlIconSize,
|
@@ -288,11 +284,11 @@ var genPanelStyle = function genPanelStyle(token) {
|
|
288
284
|
borderInlineEndWidth: 0,
|
289
285
|
content: '""'
|
290
286
|
}
|
291
|
-
}), (
|
287
|
+
}), _defineProperty(_componentCls, "&-super-prev-icon,\n &-super-next-icon", {
|
292
288
|
'&::after': {
|
293
289
|
position: 'absolute',
|
294
|
-
top:
|
295
|
-
insetInlineStart:
|
290
|
+
top: pickerControlIconMargin,
|
291
|
+
insetInlineStart: pickerControlIconMargin,
|
296
292
|
display: 'inline-block',
|
297
293
|
width: pickerControlIconSize,
|
298
294
|
height: pickerControlIconSize,
|
@@ -303,191 +299,226 @@ var genPanelStyle = function genPanelStyle(token) {
|
|
303
299
|
borderInlineEndWidth: 0,
|
304
300
|
content: '""'
|
305
301
|
}
|
306
|
-
}), (
|
302
|
+
}), _defineProperty(_componentCls, "&-prev-icon,\n &-super-prev-icon", {
|
307
303
|
transform: 'rotate(-45deg)'
|
308
|
-
}), (
|
304
|
+
}), _defineProperty(_componentCls, "&-next-icon,\n &-super-next-icon", {
|
309
305
|
transform: 'rotate(135deg)'
|
310
|
-
}), (
|
306
|
+
}), _defineProperty(_componentCls, '&-content', {
|
311
307
|
width: '100%',
|
312
308
|
tableLayout: 'fixed',
|
313
309
|
borderCollapse: 'collapse',
|
314
310
|
'th, td': {
|
315
311
|
position: 'relative',
|
316
|
-
minWidth:
|
312
|
+
minWidth: cellHeight,
|
317
313
|
fontWeight: 'normal'
|
318
314
|
},
|
319
315
|
th: {
|
320
|
-
height:
|
316
|
+
height: token.calc(cellHeight).add(token.calc(pickerCellPaddingVertical).mul(2)).equal(),
|
321
317
|
color: colorText,
|
322
318
|
verticalAlign: 'middle'
|
323
319
|
}
|
324
|
-
}), (
|
325
|
-
padding: pickerCellPaddingVertical
|
320
|
+
}), _defineProperty(_componentCls, '&-cell', Object.assign({
|
321
|
+
padding: "".concat((0, _cssinjs.unit)(pickerCellPaddingVertical), " 0"),
|
326
322
|
color: colorTextDisabled,
|
327
323
|
cursor: 'pointer',
|
328
324
|
// In view
|
329
325
|
'&-in-view': {
|
330
326
|
color: colorText
|
331
327
|
}
|
332
|
-
}, genPickerCellInnerStyle(token))), (
|
328
|
+
}, genPickerCellInnerStyle(token))), _defineProperty(_componentCls, "&-date-panel ".concat(componentCls, "-cell-in-view").concat(componentCls, "-cell-in-range").concat(componentCls, "-cell-range-hover-start ").concat(pickerCellInnerCls, ",\n &-date-panel ").concat(componentCls, "-cell-in-view").concat(componentCls, "-cell-in-range").concat(componentCls, "-cell-range-hover-end ").concat(pickerCellInnerCls), {
|
333
329
|
'&::after': {
|
334
330
|
position: 'absolute',
|
335
331
|
top: 0,
|
336
332
|
bottom: 0,
|
337
333
|
zIndex: -1,
|
338
|
-
background:
|
339
|
-
transition: "all "
|
334
|
+
background: cellHoverWithRangeBg,
|
335
|
+
transition: "all ".concat(motionDurationSlow),
|
340
336
|
content: '""'
|
341
337
|
}
|
342
|
-
}), (
|
343
|
-
insetInlineEnd: (
|
338
|
+
}), _defineProperty(_componentCls, "&-date-panel\n ".concat(componentCls, "-cell-in-view").concat(componentCls, "-cell-in-range").concat(componentCls, "-cell-range-hover-start\n ").concat(pickerCellInnerCls, "::after"), {
|
339
|
+
insetInlineEnd: token.calc(cellWidth).sub(cellHeight).mul(-1).div(2).equal(),
|
344
340
|
insetInlineStart: 0
|
345
|
-
}), (
|
341
|
+
}), _defineProperty(_componentCls, "&-date-panel ".concat(componentCls, "-cell-in-view").concat(componentCls, "-cell-in-range").concat(componentCls, "-cell-range-hover-end ").concat(pickerCellInnerCls, "::after"), {
|
346
342
|
insetInlineEnd: 0,
|
347
|
-
insetInlineStart: (
|
348
|
-
}), (
|
343
|
+
insetInlineStart: token.calc(cellWidth).sub(cellHeight).mul(-1).div(2).equal()
|
344
|
+
}), _defineProperty(_componentCls, "&-range-hover".concat(componentCls, "-range-start::after"), {
|
349
345
|
insetInlineEnd: '50%'
|
350
|
-
}), (
|
351
|
-
height:
|
352
|
-
}), (
|
353
|
-
padding: "0 "
|
354
|
-
}), _decadePanel)), (
|
346
|
+
}), _defineProperty(_componentCls, "&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel", (_decadePanel = {}, _defineProperty(_decadePanel, "".concat(componentCls, "-content"), {
|
347
|
+
height: token.calc(withoutTimeCellHeight).mul(4).equal()
|
348
|
+
}), _defineProperty(_decadePanel, pickerCellInnerCls, {
|
349
|
+
padding: "0 ".concat((0, _cssinjs.unit)(paddingXS))
|
350
|
+
}), _decadePanel)), _defineProperty(_componentCls, '&-quarter-panel', (_quarterPanel = {}, _defineProperty(_quarterPanel, "".concat(componentCls, "-content"), {
|
355
351
|
height: pickerQuarterPanelContentHeight
|
356
|
-
})
|
357
|
-
|
358
|
-
|
352
|
+
}), _defineProperty(_quarterPanel, "".concat(componentCls, "-cell-range-hover-start::after"), _defineProperty({
|
353
|
+
insetInlineStart: quarterHoverCellFixedDistance,
|
354
|
+
borderInlineStart: "".concat((0, _cssinjs.unit)(lineWidth), " dashed ").concat(cellRangeBorderColor)
|
355
|
+
}, "".concat(componentCls, "-panel-rtl &"), {
|
356
|
+
insetInlineEnd: quarterHoverCellFixedDistance,
|
357
|
+
borderInlineEnd: "".concat((0, _cssinjs.unit)(lineWidth), " dashed ").concat(cellRangeBorderColor)
|
358
|
+
})), _defineProperty(_quarterPanel, "".concat(componentCls, "-cell-range-hover-end::after"), _defineProperty({
|
359
|
+
insetInlineEnd: quarterHoverCellFixedDistance,
|
360
|
+
borderInlineEnd: "".concat((0, _cssinjs.unit)(lineWidth), " dashed ").concat(cellRangeBorderColor)
|
361
|
+
}, "".concat(componentCls, "-panel-rtl &"), {
|
362
|
+
insetInlineStart: quarterHoverCellFixedDistance,
|
363
|
+
borderInlineStart: "".concat((0, _cssinjs.unit)(lineWidth), " dashed ").concat(cellRangeBorderColor)
|
364
|
+
})), _quarterPanel)), _defineProperty(_componentCls, "&-panel ".concat(componentCls, "-footer"), {
|
365
|
+
borderTop: "".concat((0, _cssinjs.unit)(lineWidth), " ").concat(lineType, " ").concat(colorSplit)
|
366
|
+
}), _defineProperty(_componentCls, '&-footer', {
|
359
367
|
width: 'min-content',
|
360
368
|
minWidth: '100%',
|
361
|
-
lineHeight:
|
369
|
+
lineHeight: (0, _cssinjs.unit)(token.calc(textHeight).sub(token.calc(lineWidth).mul(2)).equal()),
|
362
370
|
textAlign: 'center',
|
363
371
|
'&-extra': {
|
364
|
-
padding: "0 "
|
365
|
-
lineHeight:
|
372
|
+
padding: "0 ".concat((0, _cssinjs.unit)(paddingSM)),
|
373
|
+
lineHeight: (0, _cssinjs.unit)(token.calc(textHeight).sub(token.calc(lineWidth).mul(2)).equal()),
|
366
374
|
textAlign: 'start',
|
367
375
|
'&:not(:last-child)': {
|
368
|
-
borderBottom: lineWidth
|
376
|
+
borderBottom: "".concat((0, _cssinjs.unit)(lineWidth), " ").concat(lineType, " ").concat(colorSplit)
|
369
377
|
}
|
370
378
|
}
|
371
|
-
}), (
|
379
|
+
}), _defineProperty(_componentCls, '&-now', {
|
372
380
|
textAlign: 'start'
|
373
|
-
}), (
|
381
|
+
}), _defineProperty(_componentCls, '&-today-btn', _defineProperty({
|
374
382
|
color: colorLink,
|
375
383
|
'&:hover': {
|
376
384
|
color: colorLinkHover
|
377
385
|
},
|
378
386
|
'&:active': {
|
379
387
|
color: colorLinkActive
|
380
|
-
},
|
381
|
-
'&:is(&-disabled)': {
|
382
|
-
color: colorTextDisabled,
|
383
|
-
cursor: 'not-allowed'
|
384
388
|
}
|
385
|
-
}
|
386
|
-
|
387
|
-
|
389
|
+
}, "&".concat(componentCls, "-today-btn-disabled"), {
|
390
|
+
color: colorTextDisabled,
|
391
|
+
cursor: 'not-allowed'
|
392
|
+
})), _defineProperty(_componentCls, '&-decade-panel', (_decadePanel2 = {}, _defineProperty(_decadePanel2, pickerCellInnerCls, {
|
393
|
+
padding: "0 ".concat((0, _cssinjs.unit)(token.calc(paddingXS).div(2).equal()))
|
394
|
+
}), _defineProperty(_decadePanel2, "".concat(componentCls, "-cell::before"), {
|
388
395
|
display: 'none'
|
389
|
-
}), _decadePanel2)), (
|
390
|
-
padding: "0 "
|
391
|
-
}), (
|
396
|
+
}), _decadePanel2)), _defineProperty(_componentCls, "&-year-panel,\n &-quarter-panel,\n &-month-panel", (_yearPanel = {}, _defineProperty(_yearPanel, "".concat(componentCls, "-body"), {
|
397
|
+
padding: "0 ".concat((0, _cssinjs.unit)(paddingXS))
|
398
|
+
}), _defineProperty(_yearPanel, pickerCellInnerCls, {
|
392
399
|
width: pickerYearMonthCellWidth
|
393
|
-
}), (
|
394
|
-
insetInlineStart: hoverCellFixedDistance,
|
395
|
-
borderInlineStart: lineWidth + "px dashed " + pickerDateHoverRangeBorderColor,
|
400
|
+
}), _defineProperty(_yearPanel, "".concat(componentCls, "-cell-range-hover-start::after"), _defineProperty({
|
396
401
|
borderStartStartRadius: borderRadiusSM,
|
397
|
-
|
402
|
+
borderEndStartRadius: borderRadiusSM,
|
398
403
|
borderStartEndRadius: 0,
|
399
|
-
|
400
|
-
}, componentCls
|
401
|
-
insetInlineEnd: hoverCellFixedDistance,
|
402
|
-
borderInlineEnd: lineWidth + "px dashed " + pickerDateHoverRangeBorderColor,
|
404
|
+
borderEndEndRadius: 0
|
405
|
+
}, "".concat(componentCls, "-panel-rtl &"), {
|
403
406
|
borderStartStartRadius: 0,
|
404
|
-
|
407
|
+
borderEndStartRadius: 0,
|
405
408
|
borderStartEndRadius: borderRadiusSM,
|
406
|
-
|
407
|
-
})), (
|
408
|
-
insetInlineEnd: hoverCellFixedDistance,
|
409
|
-
borderInlineEnd: lineWidth + "px dashed " + pickerDateHoverRangeBorderColor,
|
409
|
+
borderEndEndRadius: borderRadiusSM
|
410
|
+
})), _defineProperty(_yearPanel, "".concat(componentCls, "-cell-range-hover-end::after"), _defineProperty({
|
410
411
|
borderStartStartRadius: 0,
|
411
|
-
|
412
|
-
borderStartEndRadius:
|
413
|
-
|
414
|
-
}, componentCls
|
415
|
-
|
416
|
-
|
417
|
-
borderStartStartRadius: borderRadius,
|
418
|
-
borderBottomStartRadius: borderRadius,
|
412
|
+
borderEndStartRadius: 0,
|
413
|
+
borderStartEndRadius: borderRadiusSM,
|
414
|
+
borderEndEndRadius: borderRadiusSM
|
415
|
+
}, "".concat(componentCls, "-panel-rtl &"), {
|
416
|
+
borderStartStartRadius: borderRadiusSM,
|
417
|
+
borderEndStartRadius: borderRadiusSM,
|
419
418
|
borderStartEndRadius: 0,
|
420
|
-
|
421
|
-
})), _yearPanel)), (
|
422
|
-
|
423
|
-
|
419
|
+
borderEndEndRadius: 0
|
420
|
+
})), _yearPanel)), _defineProperty(_componentCls, "&-year-panel,\n &-month-panel", (_yearPanel2 = {}, _defineProperty(_yearPanel2, "".concat(componentCls, "-cell-range-hover-start::after"), _defineProperty({
|
421
|
+
insetInlineStart: commonHoverCellFixedDistance,
|
422
|
+
borderInlineStart: "".concat((0, _cssinjs.unit)(lineWidth), " dashed ").concat(cellRangeBorderColor)
|
423
|
+
}, "".concat(componentCls, "-panel-rtl &"), {
|
424
|
+
insetInlineEnd: commonHoverCellFixedDistance,
|
425
|
+
borderInlineEnd: "".concat((0, _cssinjs.unit)(lineWidth), " dashed ").concat(cellRangeBorderColor)
|
426
|
+
})), _defineProperty(_yearPanel2, "".concat(componentCls, "-cell-range-hover-end::after"), _defineProperty({
|
427
|
+
insetInlineEnd: commonHoverCellFixedDistance,
|
428
|
+
borderInlineEnd: "".concat((0, _cssinjs.unit)(lineWidth), " dashed ").concat(cellRangeBorderColor)
|
429
|
+
}, "".concat(componentCls, "-panel-rtl &"), {
|
430
|
+
insetInlineStart: commonHoverCellFixedDistance,
|
431
|
+
borderInlineStart: "".concat((0, _cssinjs.unit)(lineWidth), " dashed ").concat(cellRangeBorderColor)
|
432
|
+
})), _yearPanel2)), _defineProperty(_componentCls, '&-week-panel', (_weekPanel = {}, _defineProperty(_weekPanel, "".concat(componentCls, "-body"), {
|
433
|
+
padding: "".concat((0, _cssinjs.unit)(paddingXS), " ").concat((0, _cssinjs.unit)(paddingSM))
|
434
|
+
}), _defineProperty(_weekPanel, "".concat(componentCls, "-cell"), _defineProperty({}, "&:hover ".concat(pickerCellInnerCls, ",\n &-selected ").concat(pickerCellInnerCls, ",\n ").concat(pickerCellInnerCls), {
|
424
435
|
background: 'transparent !important'
|
425
|
-
})), (
|
436
|
+
})), _defineProperty(_weekPanel, '&-row', (_row = {
|
426
437
|
td: {
|
427
|
-
|
428
|
-
|
438
|
+
'&:before': {
|
439
|
+
transition: "background ".concat(motionDurationMid)
|
440
|
+
},
|
441
|
+
'&:first-child:before': {
|
429
442
|
borderStartStartRadius: borderRadiusSM,
|
430
443
|
borderEndStartRadius: borderRadiusSM
|
431
444
|
},
|
432
|
-
'&:last-child': {
|
445
|
+
'&:last-child:before': {
|
433
446
|
borderStartEndRadius: borderRadiusSM,
|
434
447
|
borderEndEndRadius: borderRadiusSM
|
435
448
|
}
|
436
|
-
},
|
437
|
-
'&:hover td': {
|
438
|
-
background: controlItemBgHover
|
439
449
|
}
|
440
|
-
}, "
|
441
|
-
|
442
|
-
|
450
|
+
}, _defineProperty(_row, "&:hover td", {
|
451
|
+
'&:before': {
|
452
|
+
background: cellHoverBg
|
453
|
+
}
|
454
|
+
}), _defineProperty(_row, "&-range-start td,\n &-range-end td,\n &-selected td", _defineProperty({}, "&".concat(pickerCellCls), (_$concat8 = {
|
455
|
+
'&:before': {
|
456
|
+
background: colorPrimary
|
457
|
+
}
|
458
|
+
}, _defineProperty(_$concat8, "&".concat(componentCls, "-cell-week"), {
|
443
459
|
color: new _tinycolor.TinyColor(colorTextLightSolid).setAlpha(0.5).toHexString()
|
444
|
-
}), (
|
445
|
-
borderColor: colorTextLightSolid
|
446
|
-
}), (0, _defineProperty2["default"])(_selectedTd, pickerCellInnerCls, {
|
460
|
+
}), _defineProperty(_$concat8, pickerCellInnerCls, {
|
447
461
|
color: colorTextLightSolid
|
448
|
-
}),
|
449
|
-
|
450
|
-
}),
|
451
|
-
|
462
|
+
}), _$concat8))), _defineProperty(_row, "&-range-hover td:before", {
|
463
|
+
background: controlItemBgActive
|
464
|
+
}), _row)), _weekPanel)), _defineProperty(_componentCls, '&-date-panel', (_datePanel = {}, _defineProperty(_datePanel, "".concat(componentCls, "-body"), {
|
465
|
+
padding: "".concat((0, _cssinjs.unit)(paddingXS), " ").concat((0, _cssinjs.unit)(pickerDatePanelPaddingHorizontal))
|
466
|
+
}), _defineProperty(_datePanel, "".concat(componentCls, "-content"), {
|
467
|
+
width: token.calc(cellWidth).mul(7).equal(),
|
452
468
|
th: {
|
453
|
-
width:
|
469
|
+
width: cellWidth,
|
470
|
+
boxSizing: 'border-box',
|
471
|
+
padding: 0
|
454
472
|
}
|
455
|
-
}), _datePanel)), (
|
473
|
+
}), _datePanel)), _defineProperty(_componentCls, '&-datetime-panel', (_datetimePanel = {
|
456
474
|
display: 'flex'
|
457
|
-
}, (
|
458
|
-
borderInlineStart: lineWidth
|
459
|
-
}), (
|
460
|
-
transition: "opacity "
|
461
|
-
}), (
|
475
|
+
}, _defineProperty(_datetimePanel, "".concat(componentCls, "-time-panel"), {
|
476
|
+
borderInlineStart: "".concat((0, _cssinjs.unit)(lineWidth), " ").concat(lineType, " ").concat(colorSplit)
|
477
|
+
}), _defineProperty(_datetimePanel, "".concat(componentCls, "-date-panel,\n ").concat(componentCls, "-time-panel"), {
|
478
|
+
transition: "opacity ".concat(motionDurationSlow)
|
479
|
+
}), _defineProperty(_datetimePanel, '&-active', _defineProperty({}, "".concat(componentCls, "-date-panel,\n ").concat(componentCls, "-time-panel"), {
|
462
480
|
opacity: 0.3,
|
463
481
|
'&-active': {
|
464
482
|
opacity: 1
|
465
483
|
}
|
466
|
-
})), _datetimePanel)), (
|
484
|
+
})), _datetimePanel)), _defineProperty(_componentCls, '&-time-panel', (_timePanel = {
|
467
485
|
width: 'auto',
|
468
486
|
minWidth: 'auto',
|
469
487
|
direction: 'ltr'
|
470
|
-
}, (
|
488
|
+
}, _defineProperty(_timePanel, "".concat(componentCls, "-content"), {
|
471
489
|
display: 'flex',
|
472
490
|
flex: 'auto',
|
473
|
-
height:
|
474
|
-
}), (
|
491
|
+
height: timeColumnHeight
|
492
|
+
}), _defineProperty(_timePanel, '&-column', {
|
475
493
|
flex: '1 0 auto',
|
476
|
-
width:
|
477
|
-
margin: paddingXXS
|
494
|
+
width: timeColumnWidth,
|
495
|
+
margin: "".concat((0, _cssinjs.unit)(paddingXXS), " 0"),
|
478
496
|
padding: 0,
|
479
497
|
overflowY: 'hidden',
|
480
498
|
textAlign: 'start',
|
481
499
|
listStyle: 'none',
|
482
|
-
transition: "background "
|
500
|
+
transition: "background ".concat(motionDurationMid),
|
483
501
|
overflowX: 'hidden',
|
502
|
+
'&::-webkit-scrollbar': {
|
503
|
+
width: 8,
|
504
|
+
backgroundColor: 'transparent'
|
505
|
+
},
|
506
|
+
'&::-webkit-scrollbar-thumb': {
|
507
|
+
backgroundColor: token.colorTextTertiary,
|
508
|
+
borderRadius: 4
|
509
|
+
},
|
510
|
+
// For Firefox
|
511
|
+
'&': {
|
512
|
+
scrollbarWidth: 'thin',
|
513
|
+
scrollbarColor: "".concat(token.colorTextTertiary, " transparent")
|
514
|
+
},
|
484
515
|
'&::after': {
|
485
516
|
display: 'block',
|
486
|
-
height:
|
517
|
+
height: token.calc(timeColumnHeight).sub(timeCellHeight).equal(),
|
487
518
|
content: '""'
|
488
519
|
},
|
489
520
|
'&:not(:first-child)': {
|
490
|
-
borderInlineStart: lineWidth
|
521
|
+
borderInlineStart: "".concat((0, _cssinjs.unit)(lineWidth), " ").concat(lineType, " ").concat(colorSplit)
|
491
522
|
},
|
492
523
|
'&-active': {
|
493
524
|
background: new _tinycolor.TinyColor(controlItemBgActive).setAlpha(0.2).toHexString()
|
@@ -495,153 +526,144 @@ var genPanelStyle = function genPanelStyle(token) {
|
|
495
526
|
'&:hover': {
|
496
527
|
overflowY: 'auto'
|
497
528
|
},
|
498
|
-
'> li': (
|
529
|
+
'> li': _defineProperty({
|
499
530
|
margin: 0,
|
500
531
|
padding: 0
|
501
|
-
}, "&"
|
532
|
+
}, "&".concat(componentCls, "-time-panel-cell"), (_$concat9 = {
|
502
533
|
marginInline: marginXXS
|
503
|
-
}, (
|
534
|
+
}, _defineProperty(_$concat9, "".concat(componentCls, "-time-panel-cell-inner"), {
|
504
535
|
display: 'block',
|
505
|
-
width:
|
506
|
-
height:
|
536
|
+
width: token.calc(timeColumnWidth).sub(token.calc(marginXXS).mul(2)).equal(),
|
537
|
+
height: timeCellHeight,
|
507
538
|
margin: 0,
|
508
539
|
paddingBlock: 0,
|
509
540
|
paddingInlineEnd: 0,
|
510
|
-
paddingInlineStart: (
|
541
|
+
paddingInlineStart: token.calc(timeColumnWidth).sub(timeCellHeight).div(2).equal(),
|
511
542
|
color: colorText,
|
512
|
-
lineHeight:
|
543
|
+
lineHeight: (0, _cssinjs.unit)(timeCellHeight),
|
513
544
|
borderRadius: borderRadiusSM,
|
514
545
|
cursor: 'pointer',
|
515
|
-
transition: "background "
|
546
|
+
transition: "background ".concat(motionDurationMid),
|
516
547
|
'&:hover': {
|
517
|
-
background:
|
548
|
+
background: cellHoverBg
|
518
549
|
}
|
519
|
-
}), (
|
550
|
+
}), _defineProperty(_$concat9, '&-selected', _defineProperty({}, "".concat(componentCls, "-time-panel-cell-inner"), {
|
520
551
|
background: controlItemBgActive
|
521
|
-
})), (
|
552
|
+
})), _defineProperty(_$concat9, '&-disabled', _defineProperty({}, "".concat(componentCls, "-time-panel-cell-inner"), {
|
522
553
|
color: colorTextDisabled,
|
523
554
|
background: 'transparent',
|
524
555
|
cursor: 'not-allowed'
|
525
|
-
})),
|
526
|
-
}), _timePanel)), (
|
527
|
-
height:
|
556
|
+
})), _$concat9))
|
557
|
+
}), _timePanel)), _defineProperty(_componentCls, "&-datetime-panel ".concat(componentCls, "-time-panel-column:after"), {
|
558
|
+
height: token.calc(timeColumnHeight).sub(timeCellHeight).add(token.calc(paddingXXS).mul(2)).equal()
|
528
559
|
}), _componentCls));
|
529
560
|
};
|
530
|
-
|
531
561
|
exports.genPanelStyle = genPanelStyle;
|
532
|
-
|
533
562
|
var genPickerStatusStyle = function genPickerStatusStyle(token) {
|
563
|
+
var _$concat10, _$concat11, _$concat$concat;
|
534
564
|
var componentCls = token.componentCls,
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
background: colorWarning
|
566
|
-
})
|
567
|
-
});
|
565
|
+
colorBgContainer = token.colorBgContainer,
|
566
|
+
colorError = token.colorError,
|
567
|
+
errorActiveShadow = token.errorActiveShadow,
|
568
|
+
colorWarning = token.colorWarning,
|
569
|
+
warningActiveShadow = token.warningActiveShadow,
|
570
|
+
colorErrorHover = token.colorErrorHover,
|
571
|
+
colorWarningHover = token.colorWarningHover;
|
572
|
+
return _defineProperty({}, "".concat(componentCls, ":not(").concat(componentCls, "-disabled):not([disabled])"), (_$concat$concat = {}, _defineProperty(_$concat$concat, "&".concat(componentCls, "-status-error"), (_$concat10 = {
|
573
|
+
backgroundColor: colorBgContainer,
|
574
|
+
borderColor: colorError,
|
575
|
+
'&:hover': {
|
576
|
+
borderColor: colorErrorHover
|
577
|
+
}
|
578
|
+
}, _defineProperty(_$concat10, "&".concat(componentCls, "-focused, &:focus"), Object.assign({}, (0, _style.genActiveStyle)((0, _internal.mergeToken)(token, {
|
579
|
+
activeBorderColor: colorError,
|
580
|
+
activeShadow: errorActiveShadow
|
581
|
+
})))), _defineProperty(_$concat10, "".concat(componentCls, "-active-bar"), {
|
582
|
+
background: colorError
|
583
|
+
}), _$concat10)), _defineProperty(_$concat$concat, "&".concat(componentCls, "-status-warning"), (_$concat11 = {
|
584
|
+
backgroundColor: colorBgContainer,
|
585
|
+
borderColor: colorWarning,
|
586
|
+
'&:hover': {
|
587
|
+
borderColor: colorWarningHover
|
588
|
+
}
|
589
|
+
}, _defineProperty(_$concat11, "&".concat(componentCls, "-focused, &:focus"), Object.assign({}, (0, _style.genActiveStyle)((0, _internal.mergeToken)(token, {
|
590
|
+
activeBorderColor: colorWarning,
|
591
|
+
activeShadow: warningActiveShadow
|
592
|
+
})))), _defineProperty(_$concat11, "".concat(componentCls, "-active-bar"), {
|
593
|
+
background: colorWarning
|
594
|
+
}), _$concat11)), _$concat$concat));
|
568
595
|
};
|
569
|
-
|
570
596
|
var genPickerStyle = function genPickerStyle(token) {
|
571
|
-
var
|
572
|
-
|
597
|
+
var _$concat14, _$concat16, _range, _$concat19, _$concat20, _$concat21, _$concat22, _Object$assign2, _rtl2, _Object$assign3;
|
573
598
|
var componentCls = token.componentCls,
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
return [(
|
599
|
+
antCls = token.antCls,
|
600
|
+
controlHeight = token.controlHeight,
|
601
|
+
paddingInline = token.paddingInline,
|
602
|
+
colorBgContainer = token.colorBgContainer,
|
603
|
+
lineWidth = token.lineWidth,
|
604
|
+
lineType = token.lineType,
|
605
|
+
colorBorder = token.colorBorder,
|
606
|
+
borderRadius = token.borderRadius,
|
607
|
+
motionDurationMid = token.motionDurationMid,
|
608
|
+
colorBgContainerDisabled = token.colorBgContainerDisabled,
|
609
|
+
colorTextDisabled = token.colorTextDisabled,
|
610
|
+
colorTextPlaceholder = token.colorTextPlaceholder,
|
611
|
+
controlHeightLG = token.controlHeightLG,
|
612
|
+
fontSizeLG = token.fontSizeLG,
|
613
|
+
controlHeightSM = token.controlHeightSM,
|
614
|
+
paddingInlineSM = token.paddingInlineSM,
|
615
|
+
paddingXS = token.paddingXS,
|
616
|
+
marginXS = token.marginXS,
|
617
|
+
colorTextDescription = token.colorTextDescription,
|
618
|
+
lineWidthBold = token.lineWidthBold,
|
619
|
+
colorPrimary = token.colorPrimary,
|
620
|
+
motionDurationSlow = token.motionDurationSlow,
|
621
|
+
zIndexPopup = token.zIndexPopup,
|
622
|
+
paddingXXS = token.paddingXXS,
|
623
|
+
paddingSM = token.paddingSM,
|
624
|
+
textHeight = token.textHeight,
|
625
|
+
cellActiveWithRangeBg = token.cellActiveWithRangeBg,
|
626
|
+
colorPrimaryBorder = token.colorPrimaryBorder,
|
627
|
+
sizePopupArrow = token.sizePopupArrow,
|
628
|
+
colorBgElevated = token.colorBgElevated,
|
629
|
+
borderRadiusLG = token.borderRadiusLG,
|
630
|
+
boxShadowSecondary = token.boxShadowSecondary,
|
631
|
+
borderRadiusSM = token.borderRadiusSM,
|
632
|
+
colorSplit = token.colorSplit,
|
633
|
+
cellHoverBg = token.cellHoverBg,
|
634
|
+
presetsWidth = token.presetsWidth,
|
635
|
+
presetsMaxWidth = token.presetsMaxWidth,
|
636
|
+
boxShadowPopoverArrow = token.boxShadowPopoverArrow,
|
637
|
+
colorTextQuaternary = token.colorTextQuaternary,
|
638
|
+
fontHeight = token.fontHeight,
|
639
|
+
fontHeightLG = token.fontHeightLG,
|
640
|
+
lineHeightLG = token.lineHeightLG;
|
641
|
+
return [_defineProperty({}, componentCls, Object.assign(Object.assign(Object.assign({}, (0, _style2.resetComponent)(token)), genPikerPadding(token, controlHeight, fontHeight, paddingInline)), (_Object$assign3 = {
|
617
642
|
position: 'relative',
|
618
643
|
display: 'inline-flex',
|
619
644
|
alignItems: 'center',
|
620
645
|
background: colorBgContainer,
|
621
|
-
|
646
|
+
lineHeight: 1,
|
647
|
+
border: "".concat((0, _cssinjs.unit)(lineWidth), " ").concat(lineType, " ").concat(colorBorder),
|
622
648
|
borderRadius: borderRadius,
|
623
|
-
transition: "border "
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
'
|
635
|
-
|
636
|
-
borderColor: 'transparent !important',
|
637
|
-
boxShadow: 'none !important'
|
638
|
-
}
|
639
|
-
}, (0, _defineProperty2["default"])(_extends4, componentCls + "-input", {
|
649
|
+
transition: "border ".concat(motionDurationMid, ", box-shadow ").concat(motionDurationMid),
|
650
|
+
'&:hover': Object.assign({}, (0, _style.genHoverStyle)(token))
|
651
|
+
}, _defineProperty(_Object$assign3, "&-focused".concat(componentCls), Object.assign({}, (0, _style.genActiveStyle)(token))), _defineProperty(_Object$assign3, "&".concat(componentCls, "-disabled"), _defineProperty({
|
652
|
+
background: colorBgContainerDisabled,
|
653
|
+
borderColor: colorBorder,
|
654
|
+
cursor: 'not-allowed'
|
655
|
+
}, "".concat(componentCls, "-suffix"), {
|
656
|
+
color: colorTextQuaternary
|
657
|
+
})), _defineProperty(_Object$assign3, "&".concat(componentCls, "-borderless"), {
|
658
|
+
backgroundColor: 'transparent !important',
|
659
|
+
borderColor: 'transparent !important',
|
660
|
+
boxShadow: 'none !important'
|
661
|
+
}), _defineProperty(_Object$assign3, "".concat(componentCls, "-input"), {
|
640
662
|
position: 'relative',
|
641
663
|
display: 'inline-flex',
|
642
664
|
alignItems: 'center',
|
643
665
|
width: '100%',
|
644
|
-
'> input': (
|
666
|
+
'> input': Object.assign(Object.assign({}, (0, _style.genBasicInputStyle)(token)), {
|
645
667
|
flex: 'auto',
|
646
668
|
// Fix Firefox flex not correct:
|
647
669
|
// https://github.com/ant-design/ant-design/pull/20023#issuecomment-564389553
|
@@ -650,6 +672,8 @@ var genPickerStyle = function genPickerStyle(token) {
|
|
650
672
|
padding: 0,
|
651
673
|
background: 'transparent',
|
652
674
|
border: 0,
|
675
|
+
borderRadius: 0,
|
676
|
+
fontFamily: 'inherit',
|
653
677
|
'&:focus': {
|
654
678
|
boxShadow: 'none'
|
655
679
|
},
|
@@ -657,7 +681,7 @@ var genPickerStyle = function genPickerStyle(token) {
|
|
657
681
|
background: 'transparent'
|
658
682
|
}
|
659
683
|
}),
|
660
|
-
'&:hover': (
|
684
|
+
'&:hover': _defineProperty({}, "".concat(componentCls, "-clear"), {
|
661
685
|
opacity: 1
|
662
686
|
}),
|
663
687
|
'&-placeholder': {
|
@@ -665,13 +689,14 @@ var genPickerStyle = function genPickerStyle(token) {
|
|
665
689
|
color: colorTextPlaceholder
|
666
690
|
}
|
667
691
|
}
|
668
|
-
}), (
|
669
|
-
fontSize: fontSizeLG
|
670
|
-
|
692
|
+
}), _defineProperty(_Object$assign3, '&-large', Object.assign(Object.assign({}, genPikerPadding(token, controlHeightLG, fontHeightLG, paddingInline)), _defineProperty({}, "".concat(componentCls, "-input > input"), {
|
693
|
+
fontSize: fontSizeLG,
|
694
|
+
lineHeight: lineHeightLG
|
695
|
+
}))), _defineProperty(_Object$assign3, '&-small', Object.assign({}, genPikerPadding(token, controlHeightSM, fontHeight, paddingInlineSM))), _defineProperty(_Object$assign3, "".concat(componentCls, "-suffix"), {
|
671
696
|
display: 'flex',
|
672
697
|
flex: 'none',
|
673
698
|
alignSelf: 'center',
|
674
|
-
marginInlineStart: paddingXS
|
699
|
+
marginInlineStart: token.calc(paddingXS).div(2).equal(),
|
675
700
|
color: colorTextDisabled,
|
676
701
|
lineHeight: 1,
|
677
702
|
pointerEvents: 'none',
|
@@ -681,7 +706,7 @@ var genPickerStyle = function genPickerStyle(token) {
|
|
681
706
|
marginInlineEnd: marginXS
|
682
707
|
}
|
683
708
|
}
|
684
|
-
}), (
|
709
|
+
}), _defineProperty(_Object$assign3, "".concat(componentCls, "-clear"), {
|
685
710
|
position: 'absolute',
|
686
711
|
top: '50%',
|
687
712
|
insetInlineEnd: 0,
|
@@ -691,14 +716,14 @@ var genPickerStyle = function genPickerStyle(token) {
|
|
691
716
|
transform: 'translateY(-50%)',
|
692
717
|
cursor: 'pointer',
|
693
718
|
opacity: 0,
|
694
|
-
transition: "opacity "
|
719
|
+
transition: "opacity ".concat(motionDurationMid, ", color ").concat(motionDurationMid),
|
695
720
|
'> *': {
|
696
721
|
verticalAlign: 'top'
|
697
722
|
},
|
698
723
|
'&:hover': {
|
699
724
|
color: colorTextDescription
|
700
725
|
}
|
701
|
-
}), (
|
726
|
+
}), _defineProperty(_Object$assign3, "".concat(componentCls, "-separator"), (_$concat14 = {
|
702
727
|
position: 'relative',
|
703
728
|
display: 'inline-block',
|
704
729
|
width: '1em',
|
@@ -707,36 +732,36 @@ var genPickerStyle = function genPickerStyle(token) {
|
|
707
732
|
fontSize: fontSizeLG,
|
708
733
|
verticalAlign: 'top',
|
709
734
|
cursor: 'default'
|
710
|
-
}, (
|
735
|
+
}, _defineProperty(_$concat14, "".concat(componentCls, "-focused &"), {
|
711
736
|
color: colorTextDescription
|
712
|
-
}), (
|
737
|
+
}), _defineProperty(_$concat14, "".concat(componentCls, "-range-separator &"), _defineProperty({}, "".concat(componentCls, "-disabled &"), {
|
713
738
|
cursor: 'not-allowed'
|
714
|
-
})),
|
739
|
+
})), _$concat14)), _defineProperty(_Object$assign3, '&-range', (_range = {
|
715
740
|
position: 'relative',
|
716
741
|
display: 'inline-flex'
|
717
|
-
}, (
|
718
|
-
insetInlineEnd:
|
719
|
-
}), (
|
742
|
+
}, _defineProperty(_range, "".concat(componentCls, "-clear"), {
|
743
|
+
insetInlineEnd: paddingInline
|
744
|
+
}), _defineProperty(_range, '&:hover', _defineProperty({}, "".concat(componentCls, "-clear"), {
|
720
745
|
opacity: 1
|
721
|
-
})), (
|
722
|
-
bottom: -
|
746
|
+
})), _defineProperty(_range, "".concat(componentCls, "-active-bar"), {
|
747
|
+
bottom: token.calc(lineWidth).mul(-1).equal(),
|
723
748
|
height: lineWidthBold,
|
724
|
-
marginInlineStart:
|
749
|
+
marginInlineStart: paddingInline,
|
725
750
|
background: colorPrimary,
|
726
751
|
opacity: 0,
|
727
|
-
transition: "all "
|
752
|
+
transition: "all ".concat(motionDurationSlow, " ease-out"),
|
728
753
|
pointerEvents: 'none'
|
729
|
-
}), (
|
754
|
+
}), _defineProperty(_range, "&".concat(componentCls, "-focused"), _defineProperty({}, "".concat(componentCls, "-active-bar"), {
|
730
755
|
opacity: 1
|
731
|
-
})), (
|
756
|
+
})), _defineProperty(_range, "".concat(componentCls, "-range-separator"), {
|
732
757
|
alignItems: 'center',
|
733
|
-
padding: "0 "
|
758
|
+
padding: "0 ".concat((0, _cssinjs.unit)(paddingXS)),
|
734
759
|
lineHeight: 1
|
735
|
-
}), (
|
736
|
-
insetInlineEnd:
|
737
|
-
}), (
|
738
|
-
marginInlineStart:
|
739
|
-
}),
|
760
|
+
}), _defineProperty(_range, "&".concat(componentCls, "-small"), (_$concat16 = {}, _defineProperty(_$concat16, "".concat(componentCls, "-clear"), {
|
761
|
+
insetInlineEnd: paddingInlineSM
|
762
|
+
}), _defineProperty(_$concat16, "".concat(componentCls, "-active-bar"), {
|
763
|
+
marginInlineStart: paddingInlineSM
|
764
|
+
}), _$concat16)), _range)), _defineProperty(_Object$assign3, '&-dropdown', Object.assign(Object.assign(Object.assign({}, (0, _style2.resetComponent)(token)), genPanelStyle(token)), (_Object$assign2 = {
|
740
765
|
position: 'absolute',
|
741
766
|
// Fix incorrect position of picker popup
|
742
767
|
// https://github.com/ant-design/ant-design/issues/35590
|
@@ -745,35 +770,32 @@ var genPickerStyle = function genPickerStyle(token) {
|
|
745
770
|
_skip_check_: true,
|
746
771
|
value: -9999
|
747
772
|
},
|
748
|
-
zIndex: zIndexPopup
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
'
|
758
|
-
|
759
|
-
|
760
|
-
transform: 'translateY(100%) rotate(180deg)'
|
761
|
-
})
|
762
|
-
}, (0, _defineProperty2["default"])(_extends3, "&" + antCls + "-slide-up-enter" + antCls + "-slide-up-enter-active&-placement-topLeft,\n &" + antCls + "-slide-up-enter" + antCls + "-slide-up-enter-active&-placement-topRight,\n &" + antCls + "-slide-up-appear" + antCls + "-slide-up-appear-active&-placement-topLeft,\n &" + antCls + "-slide-up-appear" + antCls + "-slide-up-appear-active&-placement-topRight", {
|
773
|
+
zIndex: zIndexPopup
|
774
|
+
}, _defineProperty(_Object$assign2, "&".concat(componentCls, "-dropdown-hidden"), {
|
775
|
+
display: 'none'
|
776
|
+
}), _defineProperty(_Object$assign2, "&".concat(componentCls, "-dropdown-placement-bottomLeft"), _defineProperty({}, "".concat(componentCls, "-range-arrow"), {
|
777
|
+
top: 0,
|
778
|
+
display: 'block',
|
779
|
+
transform: 'translateY(-100%)'
|
780
|
+
})), _defineProperty(_Object$assign2, "&".concat(componentCls, "-dropdown-placement-topLeft"), _defineProperty({}, "".concat(componentCls, "-range-arrow"), {
|
781
|
+
bottom: 0,
|
782
|
+
display: 'block',
|
783
|
+
transform: 'translateY(100%) rotate(180deg)'
|
784
|
+
})), _defineProperty(_Object$assign2, "&".concat(antCls, "-slide-up-enter").concat(antCls, "-slide-up-enter-active").concat(componentCls, "-dropdown-placement-topLeft,\n &").concat(antCls, "-slide-up-enter").concat(antCls, "-slide-up-enter-active").concat(componentCls, "-dropdown-placement-topRight,\n &").concat(antCls, "-slide-up-appear").concat(antCls, "-slide-up-appear-active").concat(componentCls, "-dropdown-placement-topLeft,\n &").concat(antCls, "-slide-up-appear").concat(antCls, "-slide-up-appear-active").concat(componentCls, "-dropdown-placement-topRight"), {
|
763
785
|
animationName: _motion.slideDownIn
|
764
|
-
}), (
|
786
|
+
}), _defineProperty(_Object$assign2, "&".concat(antCls, "-slide-up-enter").concat(antCls, "-slide-up-enter-active").concat(componentCls, "-dropdown-placement-bottomLeft,\n &").concat(antCls, "-slide-up-enter").concat(antCls, "-slide-up-enter-active").concat(componentCls, "-dropdown-placement-bottomRight,\n &").concat(antCls, "-slide-up-appear").concat(antCls, "-slide-up-appear-active").concat(componentCls, "-dropdown-placement-bottomLeft,\n &").concat(antCls, "-slide-up-appear").concat(antCls, "-slide-up-appear-active").concat(componentCls, "-dropdown-placement-bottomRight"), {
|
765
787
|
animationName: _motion.slideUpIn
|
766
|
-
}), (
|
788
|
+
}), _defineProperty(_Object$assign2, "&".concat(antCls, "-slide-up-leave").concat(antCls, "-slide-up-leave-active").concat(componentCls, "-dropdown-placement-topLeft,\n &").concat(antCls, "-slide-up-leave").concat(antCls, "-slide-up-leave-active").concat(componentCls, "-dropdown-placement-topRight"), {
|
767
789
|
animationName: _motion.slideDownOut
|
768
|
-
}), (
|
790
|
+
}), _defineProperty(_Object$assign2, "&".concat(antCls, "-slide-up-leave").concat(antCls, "-slide-up-leave-active").concat(componentCls, "-dropdown-placement-bottomLeft,\n &").concat(antCls, "-slide-up-leave").concat(antCls, "-slide-up-leave-active").concat(componentCls, "-dropdown-placement-bottomRight"), {
|
769
791
|
animationName: _motion.slideUpOut
|
770
|
-
}), (
|
792
|
+
}), _defineProperty(_Object$assign2, "".concat(componentCls, "-panel > ").concat(componentCls, "-time-panel"), {
|
771
793
|
paddingTop: paddingXXS
|
772
|
-
}), (
|
794
|
+
}), _defineProperty(_Object$assign2, "".concat(componentCls, "-ranges"), (_$concat19 = {
|
773
795
|
marginBottom: 0,
|
774
|
-
padding: paddingXXS
|
796
|
+
padding: "".concat((0, _cssinjs.unit)(paddingXXS), " ").concat((0, _cssinjs.unit)(paddingSM)),
|
775
797
|
overflow: 'hidden',
|
776
|
-
lineHeight:
|
798
|
+
lineHeight: (0, _cssinjs.unit)(token.calc(textHeight).sub(token.calc(lineWidth).mul(2)).sub(token.calc(paddingXS).div(2)).equal()),
|
777
799
|
textAlign: 'start',
|
778
800
|
listStyle: 'none',
|
779
801
|
display: 'flex',
|
@@ -781,34 +803,34 @@ var genPickerStyle = function genPickerStyle(token) {
|
|
781
803
|
'> li': {
|
782
804
|
display: 'inline-block'
|
783
805
|
}
|
784
|
-
}, (
|
806
|
+
}, _defineProperty(_$concat19, "".concat(componentCls, "-preset > ").concat(antCls, "-tag-blue"), {
|
785
807
|
color: colorPrimary,
|
786
|
-
background:
|
808
|
+
background: cellActiveWithRangeBg,
|
787
809
|
borderColor: colorPrimaryBorder,
|
788
810
|
cursor: 'pointer'
|
789
|
-
}), (
|
811
|
+
}), _defineProperty(_$concat19, "".concat(componentCls, "-ok"), {
|
790
812
|
marginInlineStart: 'auto'
|
791
|
-
}),
|
813
|
+
}), _$concat19)), _defineProperty(_Object$assign2, "".concat(componentCls, "-range-wrapper"), {
|
792
814
|
display: 'flex',
|
793
815
|
position: 'relative'
|
794
|
-
}), (
|
816
|
+
}), _defineProperty(_Object$assign2, "".concat(componentCls, "-range-arrow"), Object.assign({
|
795
817
|
position: 'absolute',
|
796
818
|
zIndex: 1,
|
797
819
|
display: 'none',
|
798
|
-
marginInlineStart:
|
799
|
-
transition: "left "
|
800
|
-
}, (0,
|
820
|
+
marginInlineStart: token.calc(paddingInline).mul(1.5).equal(),
|
821
|
+
transition: "left ".concat(motionDurationSlow, " ease-out")
|
822
|
+
}, (0, _roundedArrow.genRoundedArrow)(token, colorBgElevated, boxShadowPopoverArrow))), _defineProperty(_Object$assign2, "".concat(componentCls, "-panel-container"), (_$concat22 = {
|
801
823
|
overflow: 'hidden',
|
802
824
|
verticalAlign: 'top',
|
803
825
|
background: colorBgElevated,
|
804
826
|
borderRadius: borderRadiusLG,
|
805
827
|
boxShadow: boxShadowSecondary,
|
806
|
-
transition: "margin "
|
807
|
-
}, (
|
828
|
+
transition: "margin ".concat(motionDurationSlow)
|
829
|
+
}, _defineProperty(_$concat22, "".concat(componentCls, "-panel-layout"), {
|
808
830
|
display: 'flex',
|
809
831
|
flexWrap: 'nowrap',
|
810
832
|
alignItems: 'stretch'
|
811
|
-
}), (
|
833
|
+
}), _defineProperty(_$concat22, "".concat(componentCls, "-presets"), {
|
812
834
|
display: 'flex',
|
813
835
|
flexDirection: 'column',
|
814
836
|
minWidth: presetsWidth,
|
@@ -820,94 +842,109 @@ var genPickerStyle = function genPickerStyle(token) {
|
|
820
842
|
overflow: 'auto',
|
821
843
|
margin: 0,
|
822
844
|
padding: paddingXS,
|
823
|
-
borderInlineEnd: lineWidth
|
824
|
-
li: (
|
845
|
+
borderInlineEnd: "".concat((0, _cssinjs.unit)(lineWidth), " ").concat(lineType, " ").concat(colorSplit),
|
846
|
+
li: Object.assign(Object.assign({}, _style2.textEllipsis), {
|
825
847
|
borderRadius: borderRadiusSM,
|
826
848
|
paddingInline: paddingXS,
|
827
|
-
paddingBlock: (controlHeightSM
|
849
|
+
paddingBlock: token.calc(controlHeightSM).sub(fontHeight).div(2).equal(),
|
828
850
|
cursor: 'pointer',
|
829
|
-
transition: "all "
|
851
|
+
transition: "all ".concat(motionDurationSlow),
|
830
852
|
'+ li': {
|
831
853
|
marginTop: marginXS
|
832
854
|
},
|
833
855
|
'&:hover': {
|
834
|
-
background:
|
856
|
+
background: cellHoverBg
|
835
857
|
}
|
836
858
|
})
|
837
859
|
}
|
838
|
-
}), (
|
860
|
+
}), _defineProperty(_$concat22, "".concat(componentCls, "-panels"), (_$concat20 = {
|
839
861
|
display: 'inline-flex',
|
840
862
|
flexWrap: 'nowrap',
|
841
863
|
direction: 'ltr'
|
842
|
-
}, (
|
843
|
-
borderWidth: "0 0 "
|
844
|
-
}), (
|
864
|
+
}, _defineProperty(_$concat20, "".concat(componentCls, "-panel"), {
|
865
|
+
borderWidth: "0 0 ".concat((0, _cssinjs.unit)(lineWidth))
|
866
|
+
}), _defineProperty(_$concat20, '&:last-child', _defineProperty({}, "".concat(componentCls, "-panel"), {
|
845
867
|
borderWidth: 0
|
846
|
-
})),
|
868
|
+
})), _$concat20)), _defineProperty(_$concat22, "".concat(componentCls, "-panel"), (_$concat21 = {
|
847
869
|
verticalAlign: 'top',
|
848
870
|
background: 'transparent',
|
849
871
|
borderRadius: 0,
|
850
872
|
borderWidth: 0
|
851
|
-
}, (
|
873
|
+
}, _defineProperty(_$concat21, "".concat(componentCls, "-content,\n table"), {
|
852
874
|
textAlign: 'center'
|
853
|
-
}), (
|
875
|
+
}), _defineProperty(_$concat21, '&-focused', {
|
854
876
|
borderColor: colorBorder
|
855
|
-
}),
|
856
|
-
padding: sizePopupArrow
|
877
|
+
}), _$concat21)), _$concat22)), _Object$assign2))), _defineProperty(_Object$assign3, '&-dropdown-range', {
|
878
|
+
padding: "".concat((0, _cssinjs.unit)(token.calc(sizePopupArrow).mul(2).div(3).equal()), " 0"),
|
857
879
|
'&-hidden': {
|
858
880
|
display: 'none'
|
859
881
|
}
|
860
|
-
}), (
|
882
|
+
}), _defineProperty(_Object$assign3, '&-rtl', (_rtl2 = {
|
861
883
|
direction: 'rtl'
|
862
|
-
}, (
|
884
|
+
}, _defineProperty(_rtl2, "".concat(componentCls, "-separator"), {
|
863
885
|
transform: 'rotate(180deg)'
|
864
|
-
}), (
|
886
|
+
}), _defineProperty(_rtl2, "".concat(componentCls, "-footer"), {
|
865
887
|
'&-extra': {
|
866
888
|
direction: 'rtl'
|
867
889
|
}
|
868
|
-
}), _rtl2)),
|
890
|
+
}), _rtl2)), _Object$assign3))),
|
891
|
+
// Follow code may reuse in other components
|
869
892
|
(0, _motion.initSlideMotion)(token, 'slide-up'), (0, _motion.initSlideMotion)(token, 'slide-down'), (0, _motion.initMoveMotion)(token, 'move-up'), (0, _motion.initMoveMotion)(token, 'move-down')];
|
870
893
|
};
|
871
|
-
|
872
894
|
var initPickerPanelToken = function initPickerPanelToken(token) {
|
873
|
-
var pickerTimePanelCellHeight = 28;
|
874
895
|
var componentCls = token.componentCls,
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
paddingXXS = token.paddingXXS;
|
896
|
+
controlHeightLG = token.controlHeightLG,
|
897
|
+
paddingXXS = token.paddingXXS,
|
898
|
+
padding = token.padding;
|
879
899
|
return {
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
pickerBasicCellHoverWithRangeColor: new _tinycolor.TinyColor(colorPrimary).lighten(35).toHexString(),
|
886
|
-
pickerPanelWithoutTimeCellHeight: controlHeightLG * 1.65,
|
887
|
-
pickerYearMonthCellWidth: controlHeightLG * 1.5,
|
888
|
-
pickerTimePanelColumnHeight: pickerTimePanelCellHeight * 8,
|
889
|
-
pickerTimePanelColumnWidth: controlHeightLG * 1.4,
|
890
|
-
pickerTimePanelCellHeight: pickerTimePanelCellHeight,
|
891
|
-
pickerQuarterPanelContentHeight: controlHeightLG * 1.4,
|
892
|
-
pickerCellPaddingVertical: paddingXXS,
|
900
|
+
pickerCellCls: "".concat(componentCls, "-cell"),
|
901
|
+
pickerCellInnerCls: "".concat(componentCls, "-cell-inner"),
|
902
|
+
pickerYearMonthCellWidth: token.calc(controlHeightLG).mul(1.5).equal(),
|
903
|
+
pickerQuarterPanelContentHeight: token.calc(controlHeightLG).mul(1.4).equal(),
|
904
|
+
pickerCellPaddingVertical: token.calc(paddingXXS).add(token.calc(paddingXXS).div(2)).equal(),
|
893
905
|
pickerCellBorderGap: 2,
|
906
|
+
// Magic for gap between cells
|
894
907
|
pickerControlIconSize: 7,
|
895
|
-
|
908
|
+
pickerControlIconMargin: 4,
|
909
|
+
pickerControlIconBorderWidth: 1.5,
|
910
|
+
pickerDatePanelPaddingHorizontal: token.calc(padding).add(token.calc(paddingXXS).div(2)).equal() // 18 in normal
|
896
911
|
};
|
897
|
-
};
|
898
|
-
|
912
|
+
};
|
899
913
|
|
900
914
|
exports.initPickerPanelToken = initPickerPanelToken;
|
901
|
-
|
902
|
-
var _default = (0, _internal.genComponentStyleHook)('DatePicker', function (token) {
|
903
|
-
var pickerToken = (0, _internal.mergeToken)((0, _style.initInputToken)(token), initPickerPanelToken(token));
|
904
|
-
return [genPickerStyle(pickerToken), genPickerStatusStyle(pickerToken)];
|
905
|
-
}, function (token) {
|
915
|
+
var initPanelComponentToken = function initPanelComponentToken(token) {
|
906
916
|
return {
|
917
|
+
cellHoverBg: token.controlItemBgHover,
|
918
|
+
cellActiveWithRangeBg: token.controlItemBgActive,
|
919
|
+
cellHoverWithRangeBg: new _tinycolor.TinyColor(token.colorPrimary).lighten(35).toHexString(),
|
920
|
+
cellRangeBorderColor: new _tinycolor.TinyColor(token.colorPrimary).lighten(20).toHexString(),
|
921
|
+
cellBgDisabled: token.colorBgContainerDisabled,
|
922
|
+
timeColumnWidth: token.controlHeightLG * 1.4,
|
923
|
+
timeColumnHeight: 28 * 8,
|
924
|
+
timeCellHeight: 28,
|
925
|
+
cellWidth: token.controlHeightSM * 1.5,
|
926
|
+
cellHeight: token.controlHeightSM,
|
927
|
+
textHeight: token.controlHeightLG,
|
928
|
+
withoutTimeCellHeight: token.controlHeightLG * 1.65
|
929
|
+
};
|
930
|
+
};
|
931
|
+
exports.initPanelComponentToken = initPanelComponentToken;
|
932
|
+
var prepareComponentToken = function prepareComponentToken(token) {
|
933
|
+
return Object.assign(Object.assign(Object.assign(Object.assign({}, (0, _style.initComponentToken)(token)), initPanelComponentToken(token)), (0, _roundedArrow.getArrowToken)(token)), {
|
907
934
|
presetsWidth: 120,
|
908
935
|
presetsMaxWidth: 200,
|
909
936
|
zIndexPopup: token.zIndexPopupBase + 50
|
910
|
-
};
|
911
|
-
}
|
912
|
-
|
913
|
-
exports
|
937
|
+
});
|
938
|
+
};
|
939
|
+
// ============================== Export ==============================
|
940
|
+
exports.prepareComponentToken = prepareComponentToken;
|
941
|
+
var _default = exports.default = (0, _internal.genStyleHooks)('DatePicker', function (token) {
|
942
|
+
var pickerToken = (0, _internal.mergeToken)((0, _style.initInputToken)(token), initPickerPanelToken(token));
|
943
|
+
return [genPickerStyle(pickerToken), genPickerStatusStyle(pickerToken),
|
944
|
+
// =====================================================
|
945
|
+
// == Space Compact ==
|
946
|
+
// =====================================================
|
947
|
+
(0, _compactItem.genCompactItemStyle)(token, {
|
948
|
+
focusElCls: "".concat(token.componentCls, "-focused")
|
949
|
+
})];
|
950
|
+
}, prepareComponentToken);
|