@fle-ui/next 3.0.0-beta.1 → 3.0.0-beta.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components.min.js +1 -1
- package/es/auto-complete/index.d.ts +1 -3
- package/es/auto-complete/index.js +1 -1
- package/es/cascader/index.d.ts +1 -3
- package/es/cascader/index.js +2 -3
- package/es/form/Form.d.ts +3 -5
- package/es/form/Form.js +4 -4
- package/es/index.d.ts +1 -1
- package/es/input-number/index.d.ts +2 -4
- package/es/input-number/index.js +2 -2
- package/es/layout/Sider.js +1 -1
- package/es/mentions/style/index.js +1 -1
- package/es/modal/ConfirmDialog.js +2 -2
- package/es/modal/style/index.js +1 -2
- package/es/result/index.d.ts +4 -4
- package/es/select/index.d.ts +1 -3
- package/es/select/index.js +9 -6
- package/es/select/mergedBuiltinPlacements.d.ts +4 -0
- package/es/select/{useBuiltinPlacements.js → mergedBuiltinPlacements.js} +3 -2
- package/es/select/style/dropdown.js +10 -4
- package/es/style/placementArrow.js +16 -16
- package/es/table/interface.d.ts +2 -6
- package/es/table/style/fixed.js +5 -10
- package/es/theme/interface/index.d.ts +2 -1
- package/es/theme/themes/compact/index.d.ts +1 -1
- package/es/theme/themes/compact/index.js +4 -14
- package/es/theme/themes/dark/colors.js +2 -2
- package/es/theme/themes/dark/index.js +1 -0
- package/es/theme/themes/default/colors.js +2 -2
- package/es/theme/themes/default/index.js +5 -3
- package/es/theme/themes/seed.d.ts +1 -1
- package/es/theme/themes/seed.js +8 -8
- package/es/theme/themes/shared/genColorMapToken.js +7 -0
- package/es/theme/themes/shared/genCommonMapToken.js +0 -12
- package/es/theme/themes/shared/genFontMapToken.d.ts +3 -0
- package/es/theme/themes/shared/genFontMapToken.js +40 -0
- package/es/theme/themes/shared/genRadius.js +1 -1
- package/es/theme/util/statistic.d.ts +4 -2
- package/es/theme/util/statistic.js +3 -2
- package/es/transfer/hooks/useData.d.ts +2 -1
- package/es/transfer/hooks/useData.js +2 -2
- package/es/tree/DirectoryTree.d.ts +1 -3
- package/es/tree/Tree.js +7 -1
- package/es/tree/index.d.ts +1 -3
- package/es/tree/style/index.js +3 -1
- package/es/tree-select/index.d.ts +1 -3
- package/es/tree-select/index.js +5 -6
- package/es/typography/Base/index.d.ts +1 -1
- package/es/typography/Base/index.js +4 -4
- package/es/upload/Dragger.js +5 -2
- package/es/upload/Upload.js +4 -1
- package/es/upload/interface.d.ts +1 -1
- package/es/upload/style/dragger.js +7 -4
- 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/useWatermark.js +2 -2
- package/es/watermark/utils.d.ts +1 -1
- package/lib/_util/ActionButton.js +27 -2
- package/lib/_util/PurePanel.js +27 -2
- package/lib/_util/colors.js +1 -1
- package/lib/_util/hooks/useClosable.js +1 -1
- package/lib/_util/hooks/useForceUpdate.js +26 -1
- package/lib/_util/hooks/usePatchElement.js +27 -2
- package/lib/_util/hooks/useSyncState.js +27 -2
- package/lib/_util/hooks/useZIndex.js +1 -1
- package/lib/_util/reactNode.js +26 -1
- package/lib/_util/responsiveObserver.js +1 -1
- package/lib/_util/scrollTo.js +27 -2
- package/lib/_util/statusUtils.js +1 -1
- package/lib/_util/styleChecker.js +1 -1
- package/lib/_util/throttleByAnimationFrame.js +1 -1
- package/lib/_util/transButton.js +27 -2
- package/lib/_util/warning.js +26 -1
- package/lib/_util/wave/WaveEffect.js +27 -2
- package/lib/_util/wave/index.js +27 -2
- package/lib/_util/wave/useWave.js +27 -2
- package/lib/_util/zindexContext.js +1 -1
- package/lib/affix/index.js +1 -1
- package/lib/alert/Alert.js +27 -3
- package/lib/alert/ErrorBoundary.js +27 -2
- package/lib/alert/index.js +1 -1
- package/lib/anchor/Anchor.js +27 -3
- package/lib/anchor/AnchorLink.js +27 -3
- package/lib/anchor/context.js +26 -1
- package/lib/anchor/index.js +1 -1
- package/lib/app/context.js +1 -1
- package/lib/app/index.js +27 -2
- package/lib/auto-complete/index.d.ts +1 -3
- package/lib/auto-complete/index.js +28 -4
- package/lib/avatar/AvatarContext.js +26 -1
- package/lib/avatar/avatar.js +27 -3
- package/lib/avatar/group.js +27 -3
- package/lib/avatar/index.js +1 -1
- package/lib/back-top/index.js +27 -3
- package/lib/badge/Ribbon.js +27 -3
- package/lib/badge/ScrollNumber.js +27 -2
- package/lib/badge/SingleNumber.js +27 -2
- package/lib/badge/index.js +27 -3
- package/lib/breadcrumb/Breadcrumb.js +27 -3
- package/lib/breadcrumb/BreadcrumbItem.js +27 -2
- package/lib/breadcrumb/BreadcrumbSeparator.js +26 -1
- package/lib/breadcrumb/index.js +1 -1
- package/lib/breadcrumb/useItemRender.js +26 -2
- package/lib/button/IconWrapper.js +27 -2
- package/lib/button/LoadingIcon.js +27 -2
- package/lib/button/button-group.js +27 -3
- package/lib/button/button.js +26 -2
- package/lib/button/buttonHelpers.js +1 -1
- package/lib/button/index.js +1 -1
- package/lib/button/style/index.js +1 -1
- package/lib/calendar/Header.js +27 -2
- package/lib/calendar/generateCalendar.js +27 -3
- package/lib/calendar/index.js +1 -1
- package/lib/calendar/locale/ar_EG.js +1 -1
- package/lib/calendar/locale/az_AZ.js +1 -1
- package/lib/calendar/locale/bg_BG.js +1 -1
- package/lib/calendar/locale/bn_BD.js +1 -1
- package/lib/calendar/locale/by_BY.js +1 -1
- package/lib/calendar/locale/ca_ES.js +1 -1
- package/lib/calendar/locale/cs_CZ.js +1 -1
- package/lib/calendar/locale/da_DK.js +1 -1
- package/lib/calendar/locale/de_DE.js +1 -1
- package/lib/calendar/locale/el_GR.js +1 -1
- package/lib/calendar/locale/en_GB.js +1 -1
- package/lib/calendar/locale/en_US.js +1 -1
- package/lib/calendar/locale/es_ES.js +1 -1
- package/lib/calendar/locale/et_EE.js +1 -1
- package/lib/calendar/locale/eu_ES.js +1 -1
- package/lib/calendar/locale/fa_IR.js +1 -1
- package/lib/calendar/locale/fi_FI.js +1 -1
- package/lib/calendar/locale/fr_BE.js +1 -1
- package/lib/calendar/locale/fr_CA.js +1 -1
- package/lib/calendar/locale/fr_FR.js +1 -1
- package/lib/calendar/locale/ga_IE.js +1 -1
- package/lib/calendar/locale/gl_ES.js +1 -1
- package/lib/calendar/locale/he_IL.js +1 -1
- package/lib/calendar/locale/hi_IN.js +1 -1
- package/lib/calendar/locale/hr_HR.js +1 -1
- package/lib/calendar/locale/hu_HU.js +1 -1
- package/lib/calendar/locale/id_ID.js +1 -1
- package/lib/calendar/locale/is_IS.js +1 -1
- package/lib/calendar/locale/it_IT.js +1 -1
- package/lib/calendar/locale/ja_JP.js +1 -1
- package/lib/calendar/locale/ka_GE.js +1 -1
- package/lib/calendar/locale/kk_KZ.js +1 -1
- package/lib/calendar/locale/km_KH.js +1 -1
- package/lib/calendar/locale/kmr_IQ.js +1 -1
- package/lib/calendar/locale/kn_IN.js +1 -1
- package/lib/calendar/locale/ko_KR.js +1 -1
- package/lib/calendar/locale/lt_LT.js +1 -1
- package/lib/calendar/locale/lv_LV.js +1 -1
- package/lib/calendar/locale/mk_MK.js +1 -1
- package/lib/calendar/locale/ml_IN.js +1 -1
- package/lib/calendar/locale/mn_MN.js +1 -1
- package/lib/calendar/locale/ms_MY.js +1 -1
- package/lib/calendar/locale/my_MM.js +1 -1
- package/lib/calendar/locale/nb_NO.js +1 -1
- package/lib/calendar/locale/nl_BE.js +1 -1
- package/lib/calendar/locale/nl_NL.js +1 -1
- package/lib/calendar/locale/pl_PL.js +1 -1
- package/lib/calendar/locale/pt_BR.js +1 -1
- package/lib/calendar/locale/pt_PT.js +1 -1
- package/lib/calendar/locale/ro_RO.js +1 -1
- package/lib/calendar/locale/ru_RU.js +1 -1
- package/lib/calendar/locale/si_LK.js +1 -1
- package/lib/calendar/locale/sk_SK.js +1 -1
- package/lib/calendar/locale/sl_SI.js +1 -1
- package/lib/calendar/locale/sr_RS.js +1 -1
- package/lib/calendar/locale/sv_SE.js +1 -1
- package/lib/calendar/locale/ta_IN.js +1 -1
- package/lib/calendar/locale/th_TH.js +1 -1
- package/lib/calendar/locale/tk_TK.js +1 -1
- package/lib/calendar/locale/tr_TR.js +1 -1
- package/lib/calendar/locale/uk_UA.js +1 -1
- package/lib/calendar/locale/ur_PK.js +1 -1
- package/lib/calendar/locale/vi_VN.js +1 -1
- package/lib/calendar/locale/zh_CN.js +1 -1
- package/lib/calendar/locale/zh_TW.js +1 -1
- package/lib/card/Card.js +27 -3
- package/lib/card/Grid.js +27 -3
- package/lib/card/Meta.js +27 -2
- package/lib/card/index.js +1 -1
- package/lib/carousel/index.js +27 -3
- package/lib/cascader/Panel.js +27 -2
- package/lib/cascader/hooks/useBase.js +26 -1
- package/lib/cascader/hooks/useCheckable.js +26 -1
- package/lib/cascader/hooks/useColumnIcons.js +27 -2
- package/lib/cascader/index.d.ts +1 -3
- package/lib/cascader/index.js +28 -5
- package/lib/cascader/style/index.js +1 -1
- package/lib/cascader/style/panel.js +1 -1
- package/lib/checkbox/Checkbox.js +27 -3
- package/lib/checkbox/Group.js +27 -3
- package/lib/checkbox/GroupContext.js +1 -1
- package/lib/checkbox/index.js +1 -1
- package/lib/collapse/Collapse.js +27 -3
- package/lib/collapse/CollapsePanel.js +27 -3
- package/lib/collapse/index.js +1 -1
- package/lib/color-picker/ColorPicker.js +27 -3
- package/lib/color-picker/ColorPickerPanel.js +1 -1
- package/lib/color-picker/color.js +1 -1
- package/lib/color-picker/components/ColorAlphaInput.js +27 -2
- package/lib/color-picker/components/ColorClear.js +1 -1
- package/lib/color-picker/components/ColorHexInput.js +27 -2
- package/lib/color-picker/components/ColorHsbInput.js +27 -2
- package/lib/color-picker/components/ColorInput.js +27 -2
- package/lib/color-picker/components/ColorPresets.js +27 -3
- package/lib/color-picker/components/ColorRgbInput.js +27 -2
- package/lib/color-picker/components/ColorSteppers.js +27 -2
- package/lib/color-picker/components/ColorTrigger.js +27 -3
- package/lib/color-picker/components/PanelPicker.js +27 -2
- package/lib/color-picker/components/PanelPresets.js +27 -2
- package/lib/color-picker/context.js +1 -1
- package/lib/color-picker/index.js +1 -1
- package/lib/color-picker/style/index.js +1 -1
- package/lib/config-provider/DisabledContext.js +26 -1
- package/lib/config-provider/MotionWrapper.js +26 -1
- package/lib/config-provider/PropWarning.js +26 -1
- package/lib/config-provider/SizeContext.js +26 -1
- package/lib/config-provider/context.js +26 -1
- package/lib/config-provider/cssVariables.js +1 -1
- package/lib/config-provider/defaultRenderEmpty.js +27 -2
- package/lib/config-provider/hooks/useConfig.js +1 -1
- package/lib/config-provider/hooks/useSize.js +1 -1
- package/lib/config-provider/hooks/useTheme.js +1 -1
- package/lib/config-provider/hooks/useThemeKey.js +26 -1
- package/lib/config-provider/index.js +27 -2
- package/lib/date-picker/PickerButton.js +27 -2
- package/lib/date-picker/generatePicker/Components.js +1 -1
- package/lib/date-picker/generatePicker/generateRangePicker.js +27 -3
- package/lib/date-picker/generatePicker/generateSinglePicker.js +27 -3
- package/lib/date-picker/generatePicker/index.js +1 -1
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/locale/ar_EG.js +1 -1
- package/lib/date-picker/locale/az_AZ.js +1 -1
- package/lib/date-picker/locale/bg_BG.js +1 -1
- package/lib/date-picker/locale/bn_BD.js +1 -1
- package/lib/date-picker/locale/by_BY.js +1 -1
- package/lib/date-picker/locale/ca_ES.js +1 -1
- package/lib/date-picker/locale/cs_CZ.js +1 -1
- package/lib/date-picker/locale/da_DK.js +1 -1
- package/lib/date-picker/locale/de_DE.js +1 -1
- package/lib/date-picker/locale/el_GR.js +1 -1
- package/lib/date-picker/locale/en_GB.js +1 -1
- package/lib/date-picker/locale/en_US.js +1 -1
- package/lib/date-picker/locale/es_ES.js +1 -1
- package/lib/date-picker/locale/et_EE.js +1 -1
- package/lib/date-picker/locale/eu_ES.js +1 -1
- package/lib/date-picker/locale/fa_IR.js +1 -1
- package/lib/date-picker/locale/fi_FI.js +1 -1
- package/lib/date-picker/locale/fr_BE.js +1 -1
- package/lib/date-picker/locale/fr_CA.js +1 -1
- package/lib/date-picker/locale/fr_FR.js +1 -1
- package/lib/date-picker/locale/ga_IE.js +1 -1
- package/lib/date-picker/locale/gl_ES.js +1 -1
- package/lib/date-picker/locale/he_IL.js +1 -1
- package/lib/date-picker/locale/hi_IN.js +1 -1
- package/lib/date-picker/locale/hr_HR.js +1 -1
- package/lib/date-picker/locale/hu_HU.js +1 -1
- package/lib/date-picker/locale/id_ID.js +1 -1
- package/lib/date-picker/locale/is_IS.js +1 -1
- package/lib/date-picker/locale/it_IT.js +1 -1
- package/lib/date-picker/locale/ja_JP.js +1 -1
- package/lib/date-picker/locale/ka_GE.js +1 -1
- package/lib/date-picker/locale/kk_KZ.js +1 -1
- package/lib/date-picker/locale/km_KH.js +1 -1
- package/lib/date-picker/locale/kmr_IQ.js +1 -1
- package/lib/date-picker/locale/kn_IN.js +1 -1
- package/lib/date-picker/locale/ko_KR.js +1 -1
- package/lib/date-picker/locale/lt_LT.js +1 -1
- package/lib/date-picker/locale/lv_LV.js +1 -1
- package/lib/date-picker/locale/mk_MK.js +1 -1
- package/lib/date-picker/locale/ml_IN.js +1 -1
- package/lib/date-picker/locale/mn_MN.js +1 -1
- package/lib/date-picker/locale/ms_MY.js +1 -1
- package/lib/date-picker/locale/my_MM.js +1 -1
- package/lib/date-picker/locale/nb_NO.js +1 -1
- package/lib/date-picker/locale/nl_BE.js +1 -1
- package/lib/date-picker/locale/nl_NL.js +1 -1
- package/lib/date-picker/locale/pl_PL.js +1 -1
- package/lib/date-picker/locale/pt_BR.js +1 -1
- package/lib/date-picker/locale/pt_PT.js +1 -1
- package/lib/date-picker/locale/ro_RO.js +1 -1
- package/lib/date-picker/locale/ru_RU.js +1 -1
- package/lib/date-picker/locale/si_LK.js +1 -1
- package/lib/date-picker/locale/sk_SK.js +1 -1
- package/lib/date-picker/locale/sl_SI.js +1 -1
- package/lib/date-picker/locale/sr_RS.js +1 -1
- package/lib/date-picker/locale/sv_SE.js +1 -1
- package/lib/date-picker/locale/ta_IN.js +1 -1
- package/lib/date-picker/locale/th_TH.js +1 -1
- package/lib/date-picker/locale/tk_TK.js +1 -1
- package/lib/date-picker/locale/tr_TR.js +1 -1
- package/lib/date-picker/locale/uk_UA.js +1 -1
- package/lib/date-picker/locale/ur_PK.js +1 -1
- package/lib/date-picker/locale/vi_VN.js +1 -1
- package/lib/date-picker/locale/zh_CN.js +1 -1
- package/lib/date-picker/locale/zh_TW.js +1 -1
- package/lib/descriptions/Cell.js +27 -3
- package/lib/descriptions/DescriptionsContext.js +1 -1
- package/lib/descriptions/Row.js +27 -2
- package/lib/descriptions/hooks/useItems.js +27 -2
- package/lib/descriptions/index.js +27 -3
- package/lib/divider/index.js +27 -3
- package/lib/drawer/DrawerPanel.js +27 -3
- package/lib/drawer/index.js +27 -3
- package/lib/drawer/style/index.js +1 -1
- package/lib/dropdown/dropdown-button.js +27 -2
- package/lib/dropdown/dropdown.js +27 -3
- package/lib/dropdown/index.js +1 -1
- package/lib/dropdown/style/index.js +27 -3
- package/lib/empty/empty.js +26 -1
- package/lib/empty/index.js +27 -3
- package/lib/empty/simple.js +26 -1
- package/lib/flex/index.js +1 -1
- package/lib/flex/utils.js +1 -1
- package/lib/float-button/BackTop.js +27 -2
- package/lib/float-button/FloatButton.js +27 -3
- package/lib/float-button/FloatButtonContent.js +27 -2
- package/lib/float-button/FloatButtonGroup.js +27 -3
- package/lib/float-button/PurePanel.js +27 -2
- package/lib/float-button/context.js +1 -1
- package/lib/float-button/index.js +1 -1
- package/lib/float-button/style/index.js +1 -1
- package/lib/form/ErrorList.js +27 -3
- package/lib/form/Form.d.ts +3 -5
- package/lib/form/Form.js +31 -7
- package/lib/form/FormItem/ItemHolder.js +27 -3
- package/lib/form/FormItem/StatusProvider.js +27 -2
- package/lib/form/FormItem/index.js +27 -3
- package/lib/form/FormItemInput.js +27 -2
- package/lib/form/FormItemLabel.js +26 -2
- package/lib/form/FormList.js +26 -1
- package/lib/form/context.js +27 -2
- package/lib/form/hooks/useChildren.js +1 -1
- package/lib/form/hooks/useDebounce.js +26 -1
- package/lib/form/hooks/useForm.js +27 -2
- package/lib/form/hooks/useFrameState.js +27 -2
- package/lib/form/hooks/useItemRef.js +25 -1
- package/lib/form/index.js +27 -2
- package/lib/form/style/index.js +1 -1
- package/lib/grid/col.js +27 -3
- package/lib/grid/hooks/useBreakpoint.js +1 -1
- package/lib/grid/index.js +1 -1
- package/lib/grid/row.js +27 -3
- package/lib/image/PreviewGroup.js +27 -3
- package/lib/image/index.js +27 -3
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/input/Group.js +27 -3
- package/lib/input/Input.js +27 -3
- package/lib/input/Password.js +26 -2
- package/lib/input/Search.js +27 -3
- package/lib/input/TextArea.js +26 -2
- package/lib/input/index.js +1 -1
- package/lib/input-number/index.d.ts +2 -4
- package/lib/input-number/index.js +29 -5
- package/lib/layout/Sider.js +28 -4
- package/lib/layout/context.js +26 -1
- package/lib/layout/hooks/useHasSider.js +1 -1
- package/lib/layout/index.js +26 -1
- package/lib/layout/layout.js +27 -3
- package/lib/layout/style/index.js +1 -1
- package/lib/list/Item.js +27 -3
- package/lib/list/context.js +1 -1
- package/lib/list/index.js +26 -2
- package/lib/locale/ar_EG.js +1 -1
- package/lib/locale/az_AZ.js +1 -1
- package/lib/locale/bg_BG.js +1 -1
- package/lib/locale/bn_BD.js +1 -1
- package/lib/locale/by_BY.js +1 -1
- package/lib/locale/ca_ES.js +1 -1
- package/lib/locale/cs_CZ.js +1 -1
- package/lib/locale/da_DK.js +1 -1
- package/lib/locale/de_DE.js +1 -1
- package/lib/locale/el_GR.js +1 -1
- package/lib/locale/en_GB.js +1 -1
- package/lib/locale/en_US.js +1 -1
- package/lib/locale/es_ES.js +1 -1
- package/lib/locale/et_EE.js +1 -1
- package/lib/locale/eu_ES.js +1 -1
- package/lib/locale/fa_IR.js +1 -1
- package/lib/locale/fi_FI.js +1 -1
- package/lib/locale/fr_BE.js +1 -1
- package/lib/locale/fr_CA.js +1 -1
- package/lib/locale/fr_FR.js +1 -1
- package/lib/locale/ga_IE.js +1 -1
- package/lib/locale/gl_ES.js +1 -1
- package/lib/locale/he_IL.js +1 -1
- package/lib/locale/hi_IN.js +1 -1
- package/lib/locale/hr_HR.js +1 -1
- package/lib/locale/hu_HU.js +1 -1
- package/lib/locale/id_ID.js +1 -1
- package/lib/locale/index.js +27 -2
- package/lib/locale/is_IS.js +1 -1
- package/lib/locale/it_IT.js +1 -1
- package/lib/locale/ja_JP.js +1 -1
- package/lib/locale/ka_GE.js +1 -1
- package/lib/locale/kk_KZ.js +1 -1
- package/lib/locale/km_KH.js +1 -1
- package/lib/locale/kmr_IQ.js +1 -1
- package/lib/locale/kn_IN.js +1 -1
- package/lib/locale/ko_KR.js +1 -1
- package/lib/locale/ku_IQ.js +1 -1
- package/lib/locale/lt_LT.js +1 -1
- package/lib/locale/lv_LV.js +1 -1
- package/lib/locale/mk_MK.js +1 -1
- package/lib/locale/ml_IN.js +1 -1
- package/lib/locale/mn_MN.js +1 -1
- package/lib/locale/ms_MY.js +1 -1
- package/lib/locale/my_MM.js +1 -1
- package/lib/locale/nb_NO.js +1 -1
- package/lib/locale/ne_NP.js +1 -1
- package/lib/locale/nl_BE.js +1 -1
- package/lib/locale/nl_NL.js +1 -1
- package/lib/locale/pl_PL.js +1 -1
- package/lib/locale/pt_BR.js +1 -1
- package/lib/locale/pt_PT.js +1 -1
- package/lib/locale/ro_RO.js +1 -1
- package/lib/locale/ru_RU.js +1 -1
- package/lib/locale/si_LK.js +1 -1
- package/lib/locale/sk_SK.js +1 -1
- package/lib/locale/sl_SI.js +1 -1
- package/lib/locale/sr_RS.js +1 -1
- package/lib/locale/sv_SE.js +1 -1
- package/lib/locale/ta_IN.js +1 -1
- package/lib/locale/th_TH.js +1 -1
- package/lib/locale/tk_TK.js +1 -1
- package/lib/locale/tr_TR.js +1 -1
- package/lib/locale/uk_UA.js +1 -1
- package/lib/locale/ur_PK.js +1 -1
- package/lib/locale/useLocale.js +27 -2
- package/lib/locale/vi_VN.js +1 -1
- package/lib/locale/zh_CN.js +1 -1
- package/lib/locale/zh_HK.js +1 -1
- package/lib/locale/zh_TW.js +1 -1
- package/lib/mentions/index.js +27 -3
- package/lib/mentions/style/index.js +1 -1
- package/lib/menu/MenuDivider.js +27 -3
- package/lib/menu/MenuItem.js +27 -3
- package/lib/menu/OverrideContext.js +26 -1
- package/lib/menu/SubMenu.js +27 -2
- package/lib/menu/hooks/useItems.js +26 -2
- package/lib/menu/index.js +27 -2
- package/lib/menu/menu.js +27 -2
- package/lib/menu/style/index.js +1 -1
- package/lib/message/PurePanel.js +27 -2
- package/lib/message/index.js +27 -2
- package/lib/message/useMessage.js +27 -3
- package/lib/modal/ConfirmDialog.js +29 -5
- package/lib/modal/Modal.js +27 -3
- package/lib/modal/PurePanel.js +27 -2
- package/lib/modal/components/ConfirmCancelBtn.js +27 -2
- package/lib/modal/components/ConfirmOkBtn.js +27 -2
- package/lib/modal/components/NormalCancelBtn.js +27 -2
- package/lib/modal/components/NormalOkBtn.js +27 -2
- package/lib/modal/confirm.js +27 -2
- package/lib/modal/context.js +1 -1
- package/lib/modal/index.js +27 -2
- package/lib/modal/locale.js +1 -1
- package/lib/modal/shared.js +1 -1
- package/lib/modal/style/index.js +1 -2
- package/lib/modal/useModal/HookModal.js +27 -2
- package/lib/modal/useModal/index.js +27 -2
- package/lib/notification/PurePanel.js +27 -3
- package/lib/notification/index.js +27 -2
- package/lib/notification/style/index.js +1 -1
- package/lib/notification/useNotification.js +27 -3
- package/lib/pagination/Pagination.js +27 -3
- package/lib/pagination/Select.js +27 -2
- package/lib/pagination/index.js +1 -1
- package/lib/popconfirm/PurePanel.js +27 -2
- package/lib/popconfirm/index.js +27 -2
- package/lib/popover/PurePanel.js +27 -2
- package/lib/popover/index.js +27 -2
- package/lib/popover/style/index.js +26 -2
- package/lib/progress/Circle.js +27 -3
- package/lib/progress/Line.js +26 -1
- package/lib/progress/Steps.js +27 -3
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.js +27 -3
- package/lib/qr-code/index.js +27 -3
- package/lib/qrcode/index.js +1 -1
- package/lib/radio/context.js +26 -1
- package/lib/radio/group.js +27 -3
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio.js +27 -3
- package/lib/radio/radioButton.js +27 -2
- package/lib/rate/index.js +27 -2
- package/lib/result/index.d.ts +4 -4
- package/lib/result/index.js +27 -3
- package/lib/result/noFound.js +26 -1
- package/lib/result/serverError.js +26 -1
- package/lib/result/unauthorized.js +26 -1
- package/lib/segmented/index.js +26 -2
- package/lib/select/index.d.ts +1 -3
- package/lib/select/index.js +54 -27
- package/lib/select/mergedBuiltinPlacements.d.ts +4 -0
- package/lib/select/{useBuiltinPlacements.js → mergedBuiltinPlacements.js} +4 -3
- package/lib/select/style/dropdown.js +10 -4
- package/lib/select/style/index.js +1 -1
- package/lib/select/useIcons.js +27 -2
- package/lib/skeleton/Avatar.js +27 -3
- package/lib/skeleton/Button.js +27 -3
- package/lib/skeleton/Element.js +27 -3
- package/lib/skeleton/Image.js +27 -3
- package/lib/skeleton/Input.js +27 -3
- package/lib/skeleton/Node.js +27 -3
- package/lib/skeleton/Paragraph.js +27 -2
- package/lib/skeleton/Skeleton.js +26 -2
- package/lib/skeleton/Title.js +27 -2
- package/lib/skeleton/index.js +1 -1
- package/lib/slider/SliderTooltip.js +27 -2
- package/lib/slider/index.js +1 -1
- package/lib/space/Compact.js +27 -3
- package/lib/space/Item.js +26 -1
- package/lib/space/context.js +1 -1
- package/lib/space/index.js +27 -3
- package/lib/space/style/index.js +1 -1
- package/lib/spin/index.js +27 -3
- package/lib/statistic/Countdown.js +27 -2
- package/lib/statistic/Number.js +26 -1
- package/lib/statistic/Statistic.js +27 -3
- package/lib/statistic/index.js +1 -1
- package/lib/steps/index.js +27 -3
- package/lib/steps/style/index.js +1 -1
- package/lib/steps/useLegacyItems.js +27 -2
- package/lib/style/motion/index.js +1 -1
- package/lib/style/placementArrow.js +16 -16
- package/lib/switch/index.js +27 -3
- package/lib/table/ExpandIcon.js +27 -3
- package/lib/table/InternalTable.js +27 -3
- package/lib/table/Table.js +27 -2
- package/lib/table/hooks/useFilter/FilterDropdown.js +27 -3
- package/lib/table/hooks/useFilter/FilterSearch.js +27 -2
- package/lib/table/hooks/useFilter/FilterWrapper.js +27 -2
- package/lib/table/hooks/useFilter/index.js +27 -2
- package/lib/table/hooks/useLazyKVMap.js +25 -1
- package/lib/table/hooks/usePagination.js +1 -1
- package/lib/table/hooks/useSelection.js +26 -2
- package/lib/table/hooks/useSorter.js +26 -2
- package/lib/table/hooks/useTitleColumns.js +26 -1
- package/lib/table/index.js +1 -1
- package/lib/table/interface.d.ts +2 -6
- package/lib/table/style/fixed.js +5 -10
- package/lib/table/style/index.js +1 -1
- package/lib/tabs/hooks/useLegacyItems.js +27 -2
- package/lib/tabs/index.js +27 -3
- package/lib/tabs/style/index.js +1 -1
- package/lib/tag/CheckableTag.js +27 -3
- package/lib/tag/index.js +27 -3
- package/lib/tag/style/statusCmp.js +1 -1
- package/lib/theme/context.js +1 -1
- package/lib/theme/getDesignToken.js +1 -1
- package/lib/theme/index.js +1 -1
- package/lib/theme/interface/index.d.ts +2 -1
- package/lib/theme/internal.js +28 -3
- package/lib/theme/themes/compact/index.d.ts +1 -1
- package/lib/theme/themes/compact/index.js +4 -14
- package/lib/theme/themes/dark/colors.js +2 -2
- package/lib/theme/themes/dark/index.js +1 -0
- package/lib/theme/themes/default/colors.js +2 -2
- package/lib/theme/themes/default/index.js +5 -3
- package/lib/theme/themes/seed.d.ts +1 -1
- package/lib/theme/themes/seed.js +8 -8
- package/lib/theme/themes/shared/genColorMapToken.js +7 -0
- package/lib/theme/themes/shared/genCommonMapToken.js +0 -12
- package/lib/theme/themes/shared/genFontMapToken.d.ts +3 -0
- package/lib/theme/themes/shared/genFontMapToken.js +40 -0
- package/lib/theme/themes/shared/genRadius.js +1 -1
- package/lib/theme/useToken.js +1 -1
- package/lib/theme/util/alias.js +1 -1
- package/lib/theme/util/calc/CSSCalculator.js +1 -1
- package/lib/theme/util/calc/NumCalculator.js +1 -1
- package/lib/theme/util/calc/calculator.js +1 -1
- package/lib/theme/util/calc/index.js +1 -1
- package/lib/theme/util/genComponentStyleHook.js +27 -3
- package/lib/theme/util/statistic.d.ts +4 -2
- package/lib/theme/util/statistic.js +4 -4
- package/lib/theme/util/useResetIconStyle.js +1 -1
- package/lib/time-picker/index.js +27 -2
- package/lib/timeline/Timeline.js +27 -2
- package/lib/timeline/TimelineItem.js +27 -3
- package/lib/timeline/TimelineItemList.js +27 -3
- package/lib/timeline/index.js +1 -1
- package/lib/timeline/useItems.js +1 -1
- package/lib/tooltip/PurePanel.js +27 -2
- package/lib/tooltip/index.js +27 -3
- package/lib/tooltip/style/index.js +26 -2
- package/lib/tooltip/util.js +1 -1
- package/lib/tour/PurePanel.js +27 -2
- package/lib/tour/index.js +27 -3
- package/lib/tour/panelRender.js +1 -1
- package/lib/tour/style/index.js +26 -2
- package/lib/transfer/ListBody.js +27 -3
- package/lib/transfer/ListItem.js +27 -3
- package/lib/transfer/hooks/useData.d.ts +2 -1
- package/lib/transfer/hooks/useData.js +28 -3
- package/lib/transfer/hooks/useSelection.js +26 -1
- package/lib/transfer/index.js +27 -3
- package/lib/transfer/list.js +27 -3
- package/lib/transfer/operation.js +27 -2
- package/lib/transfer/search.js +27 -2
- package/lib/tree/DirectoryTree.d.ts +1 -3
- package/lib/tree/DirectoryTree.js +27 -3
- package/lib/tree/Tree.js +10 -4
- package/lib/tree/index.d.ts +1 -3
- package/lib/tree/index.js +1 -1
- package/lib/tree/style/index.js +3 -1
- package/lib/tree/utils/dictUtil.js +1 -1
- package/lib/tree/utils/dropIndicator.js +1 -1
- package/lib/tree/utils/iconUtil.js +26 -2
- package/lib/tree-select/index.d.ts +1 -3
- package/lib/tree-select/index.js +32 -9
- package/lib/typography/Base/Ellipsis.js +26 -2
- package/lib/typography/Base/EllipsisTooltip.js +27 -2
- package/lib/typography/Base/index.d.ts +1 -1
- package/lib/typography/Base/index.js +31 -7
- package/lib/typography/Editable.js +27 -3
- package/lib/typography/Link.js +26 -2
- package/lib/typography/Paragraph.js +27 -2
- package/lib/typography/Text.js +26 -2
- package/lib/typography/Title.js +27 -2
- package/lib/typography/Typography.js +27 -3
- package/lib/typography/hooks/useMergedConfig.js +25 -1
- package/lib/typography/hooks/useUpdatedEffect.js +26 -1
- package/lib/typography/index.js +1 -1
- package/lib/upload/Dragger.js +32 -4
- package/lib/upload/Upload.js +31 -4
- package/lib/upload/UploadList/ListItem.js +27 -3
- package/lib/upload/UploadList/index.js +27 -2
- package/lib/upload/index.js +27 -2
- package/lib/upload/interface.d.ts +1 -1
- package/lib/upload/style/dragger.js +7 -4
- package/lib/upload/style/index.js +1 -1
- package/lib/upload/utils.js +1 -1
- package/lib/version/index.js +1 -1
- 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 +1 -1
- package/lib/watermark/context.js +26 -1
- package/lib/watermark/index.js +27 -2
- package/lib/watermark/useRafDebounce.js +1 -1
- package/lib/watermark/useWatermark.js +28 -3
- package/lib/watermark/utils.d.ts +1 -1
- package/package.json +71 -71
- package/es/select/useBuiltinPlacements.d.ts +0 -3
- package/lib/select/useBuiltinPlacements.d.ts +0 -3
- /package/es/modal/style/{confirmCmp.d.ts → confirm.d.ts} +0 -0
- /package/es/modal/style/{confirmCmp.js → confirm.js} +0 -0
- /package/lib/modal/style/{confirmCmp.d.ts → confirm.d.ts} +0 -0
- /package/lib/modal/style/{confirmCmp.js → confirm.js} +0 -0
@@ -21,9 +21,7 @@ export interface AutoCompleteProps<ValueType = any, OptionType extends BaseOptio
|
|
21
21
|
}
|
22
22
|
declare const RefAutoComplete: (<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType>(props: AutoCompleteProps<ValueType, OptionType> & {
|
23
23
|
children?: React.ReactNode;
|
24
|
-
} & {
|
25
|
-
ref?: React.Ref<BaseSelectRef> | undefined;
|
26
|
-
}) => React.ReactElement) & {
|
24
|
+
} & React.RefAttributes<BaseSelectRef>) => React.ReactElement) & {
|
27
25
|
displayName?: string | undefined;
|
28
26
|
Option: typeof Option;
|
29
27
|
_InternalPanelDoNotUseOrYouWillBeFired: typeof PurePanel;
|
@@ -11,12 +11,12 @@ import * as React from 'react';
|
|
11
11
|
import classNames from 'classnames';
|
12
12
|
import toArray from "rc-util/es/Children/toArray";
|
13
13
|
import omit from "rc-util/es/omit";
|
14
|
+
import { useZIndex } from "../_util/hooks/useZIndex";
|
14
15
|
import genPurePanel from "../_util/PurePanel";
|
15
16
|
import { isValidElement } from "../_util/reactNode";
|
16
17
|
import { devUseWarning } from "../_util/warning";
|
17
18
|
import { ConfigContext } from "../config-provider";
|
18
19
|
import Select from "../select";
|
19
|
-
import { useZIndex } from "../_util/hooks/useZIndex";
|
20
20
|
var Option = Select.Option;
|
21
21
|
function isSelectOptionOrSelectOptGroup(child) {
|
22
22
|
return child && child.type && (child.type.isSelectOption || child.type.isSelectOptGroup);
|
package/es/cascader/index.d.ts
CHANGED
@@ -39,9 +39,7 @@ export interface CascaderRef {
|
|
39
39
|
focus: () => void;
|
40
40
|
blur: () => void;
|
41
41
|
}
|
42
|
-
declare const Cascader: (<OptionType extends DefaultOptionType | BaseOptionType = DefaultOptionType>(props: React.PropsWithChildren<CascaderProps<OptionType>> & {
|
43
|
-
ref?: React.Ref<CascaderRef> | undefined;
|
44
|
-
}) => React.ReactElement) & {
|
42
|
+
declare const Cascader: (<OptionType extends DefaultOptionType | BaseOptionType = DefaultOptionType>(props: React.PropsWithChildren<CascaderProps<OptionType>> & React.RefAttributes<CascaderRef>) => React.ReactElement) & {
|
45
43
|
displayName: string;
|
46
44
|
SHOW_PARENT: typeof SHOW_PARENT;
|
47
45
|
SHOW_CHILD: typeof SHOW_CHILD;
|
package/es/cascader/index.js
CHANGED
@@ -34,8 +34,8 @@ import DisabledContext from "../config-provider/DisabledContext";
|
|
34
34
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls";
|
35
35
|
import useSize from "../config-provider/hooks/useSize";
|
36
36
|
import { FormItemInputContext } from "../form/context";
|
37
|
+
import mergedBuiltinPlacements from "../select/mergedBuiltinPlacements";
|
37
38
|
import useSelectStyle from "../select/style";
|
38
|
-
import useBuiltinPlacements from "../select/useBuiltinPlacements";
|
39
39
|
import useIcons from "../select/useIcons";
|
40
40
|
import useShowArrow from "../select/useShowArrow";
|
41
41
|
import { useCompactItemContext } from "../space/Compact";
|
@@ -209,7 +209,6 @@ var Cascader = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
209
209
|
}
|
210
210
|
return isRtl ? 'bottomRight' : 'bottomLeft';
|
211
211
|
}, [placement, isRtl]);
|
212
|
-
var mergedBuiltinPlacements = useBuiltinPlacements(builtinPlacements, popupOverflow);
|
213
212
|
var mergedAllowClear = allowClear === true ? {
|
214
213
|
clearIcon: clearIcon
|
215
214
|
} : allowClear;
|
@@ -224,7 +223,7 @@ var Cascader = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
224
223
|
disabled: mergedDisabled,
|
225
224
|
style: Object.assign(Object.assign({}, cascader === null || cascader === void 0 ? void 0 : cascader.style), style)
|
226
225
|
}, restProps, {
|
227
|
-
builtinPlacements: mergedBuiltinPlacements,
|
226
|
+
builtinPlacements: mergedBuiltinPlacements(builtinPlacements, popupOverflow),
|
228
227
|
direction: mergedDirection,
|
229
228
|
placement: memoPlacement,
|
230
229
|
notFoundContent: mergedNotFoundContent,
|
package/es/form/Form.d.ts
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
+
import * as React from 'react';
|
1
2
|
import { List, useWatch } from 'rc-field-form';
|
2
3
|
import type { FormProps as RcFormProps } from 'rc-field-form/lib/Form';
|
3
|
-
import * as React from 'react';
|
4
4
|
import type { Options } from 'scroll-into-view-if-needed';
|
5
5
|
import type { SizeType } from '../config-provider/SizeContext';
|
6
6
|
import type { ColProps } from '../grid/col';
|
7
|
+
import type { FeedbackIcons } from './FormItem';
|
7
8
|
import useForm, { type FormInstance } from './hooks/useForm';
|
8
9
|
import type { FormLabelAlign } from './interface';
|
9
|
-
import type { FeedbackIcons } from './FormItem';
|
10
10
|
export type RequiredMark = boolean | 'optional' | ((labelNode: React.ReactNode, info: {
|
11
11
|
required: boolean;
|
12
12
|
}) => React.ReactNode);
|
@@ -32,9 +32,7 @@ export interface FormProps<Values = any> extends Omit<RcFormProps<Values>, 'form
|
|
32
32
|
}
|
33
33
|
declare const Form: (<Values = any>(props: FormProps<Values> & {
|
34
34
|
children?: React.ReactNode;
|
35
|
-
} & {
|
36
|
-
ref?: React.Ref<FormInstance<Values>> | undefined;
|
37
|
-
}) => React.ReactElement) & {
|
35
|
+
} & React.RefAttributes<FormInstance<Values>>) => React.ReactElement) & {
|
38
36
|
displayName?: string | undefined;
|
39
37
|
};
|
40
38
|
export { List, useForm, useWatch, type FormInstance };
|
package/es/form/Form.js
CHANGED
@@ -18,20 +18,20 @@ var __rest = this && this.__rest || function (s, e) {
|
|
18
18
|
}
|
19
19
|
return t;
|
20
20
|
};
|
21
|
-
import classNames from 'classnames';
|
22
|
-
import FieldForm, { List, useWatch } from 'rc-field-form';
|
23
21
|
import * as React from 'react';
|
24
22
|
import { useMemo } from 'react';
|
23
|
+
import classNames from 'classnames';
|
24
|
+
import FieldForm, { List, useWatch } from 'rc-field-form';
|
25
25
|
import { ConfigContext } from "../config-provider";
|
26
26
|
import DisabledContext, { DisabledContextProvider } from "../config-provider/DisabledContext";
|
27
|
-
import
|
27
|
+
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls";
|
28
28
|
import useSize from "../config-provider/hooks/useSize";
|
29
|
+
import SizeContext from "../config-provider/SizeContext";
|
29
30
|
import { FormContext, FormProvider } from "./context";
|
30
31
|
import useForm from "./hooks/useForm";
|
31
32
|
import useFormWarning from "./hooks/useFormWarning";
|
32
33
|
import useStyle from "./style";
|
33
34
|
import ValidateMessagesContext from "./validateMessagesContext";
|
34
|
-
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls";
|
35
35
|
var InternalForm = function InternalForm(props, ref) {
|
36
36
|
var _classNames;
|
37
37
|
var contextDisabled = React.useContext(DisabledContext);
|
package/es/index.d.ts
CHANGED
@@ -36,7 +36,7 @@ export type { CollapsePanelProps, CollapseProps } from './collapse';
|
|
36
36
|
export { default as ColorPicker } from './color-picker';
|
37
37
|
export type { ColorPickerProps } from './color-picker';
|
38
38
|
export { default as ConfigProvider } from './config-provider';
|
39
|
-
export type { ThemeConfig } from './config-provider';
|
39
|
+
export type { ConfigProviderProps, ThemeConfig } from './config-provider';
|
40
40
|
export { default as DatePicker } from './date-picker';
|
41
41
|
export type { DatePickerProps } from './date-picker';
|
42
42
|
export { default as Descriptions } from './descriptions';
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import type { InputNumberProps as RcInputNumberProps, ValueType } from 'rc-input-number';
|
2
1
|
import * as React from 'react';
|
2
|
+
import type { InputNumberProps as RcInputNumberProps, ValueType } from 'rc-input-number';
|
3
3
|
import type { InputStatus } from '../_util/statusUtils';
|
4
4
|
import type { SizeType } from '../config-provider/SizeContext';
|
5
5
|
export interface InputNumberProps<T extends ValueType = ValueType> extends Omit<RcInputNumberProps<T>, 'prefix' | 'size' | 'controls'> {
|
@@ -19,9 +19,7 @@ export interface InputNumberProps<T extends ValueType = ValueType> extends Omit<
|
|
19
19
|
}
|
20
20
|
declare const TypedInputNumber: (<T extends ValueType = ValueType>(props: InputNumberProps<T> & {
|
21
21
|
children?: React.ReactNode;
|
22
|
-
} & {
|
23
|
-
ref?: React.Ref<HTMLInputElement> | undefined;
|
24
|
-
}) => React.ReactElement) & {
|
22
|
+
} & React.RefAttributes<HTMLInputElement>) => React.ReactElement) & {
|
25
23
|
displayName?: string | undefined;
|
26
24
|
_InternalPanelDoNotUseOrYouWillBeFired: typeof PureInputNumber;
|
27
25
|
};
|
package/es/input-number/index.js
CHANGED
@@ -18,19 +18,19 @@ var __rest = this && this.__rest || function (s, e) {
|
|
18
18
|
}
|
19
19
|
return t;
|
20
20
|
};
|
21
|
+
import * as React from 'react';
|
21
22
|
import DownOutlined from "@ant-design/icons/es/icons/DownOutlined";
|
22
23
|
import UpOutlined from "@ant-design/icons/es/icons/UpOutlined";
|
23
24
|
import classNames from 'classnames';
|
24
25
|
import RcInputNumber from 'rc-input-number';
|
25
|
-
import * as React from 'react';
|
26
26
|
import { getMergedStatus, getStatusClassNames } from "../_util/statusUtils";
|
27
27
|
import ConfigProvider, { ConfigContext } from "../config-provider";
|
28
28
|
import DisabledContext from "../config-provider/DisabledContext";
|
29
|
+
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls";
|
29
30
|
import useSize from "../config-provider/hooks/useSize";
|
30
31
|
import { FormItemInputContext, NoFormStyle } from "../form/context";
|
31
32
|
import { NoCompactStyle, useCompactItemContext } from "../space/Compact";
|
32
33
|
import useStyle from "./style";
|
33
|
-
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls";
|
34
34
|
var InputNumber = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
35
35
|
var _classNames, _classNames2, _classNames3, _classNames4;
|
36
36
|
var _React$useContext = React.useContext(ConfigContext),
|
package/es/layout/Sider.js
CHANGED
@@ -108,7 +108,7 @@ var Sider = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
108
108
|
var _window = window,
|
109
109
|
matchMedia = _window.matchMedia;
|
110
110
|
if (matchMedia && breakpoint && breakpoint in dimensionMaxMap) {
|
111
|
-
mql = matchMedia("(max-width: ".concat(dimensionMaxMap[breakpoint], ")"));
|
111
|
+
mql = matchMedia("screen and (max-width: ".concat(dimensionMaxMap[breakpoint], ")"));
|
112
112
|
try {
|
113
113
|
mql.addEventListener('change', responsiveHandler);
|
114
114
|
} catch (error) {
|
@@ -154,7 +154,7 @@ export var prepareComponentToken = function prepareComponentToken(token) {
|
|
154
154
|
dropdownHeight: 250,
|
155
155
|
controlItemWidth: 100,
|
156
156
|
zIndexPopup: token.zIndexPopupBase + 50,
|
157
|
-
itemPaddingVertical: token.controlHeight - token.fontHeight
|
157
|
+
itemPaddingVertical: (token.controlHeight - token.fontHeight) / 2
|
158
158
|
});
|
159
159
|
};
|
160
160
|
// ============================== Export ==============================
|
@@ -35,7 +35,7 @@ import CancelBtn from "./components/ConfirmCancelBtn";
|
|
35
35
|
import OkBtn from "./components/ConfirmOkBtn";
|
36
36
|
import { ModalContextProvider } from "./context";
|
37
37
|
import Modal from "./Modal";
|
38
|
-
import
|
38
|
+
import Confirm from "./style/confirm";
|
39
39
|
export function ConfirmContent(props) {
|
40
40
|
var prefixCls = props.prefixCls,
|
41
41
|
icon = props.icon,
|
@@ -110,7 +110,7 @@ export function ConfirmContent(props) {
|
|
110
110
|
}, typeof footer === 'function' ? footer(footerOriginNode, {
|
111
111
|
OkBtn: OkBtn,
|
112
112
|
CancelBtn: CancelBtn
|
113
|
-
}) : footerOriginNode)) : footer, /*#__PURE__*/React.createElement(
|
113
|
+
}) : footerOriginNode)) : footer, /*#__PURE__*/React.createElement(Confirm, {
|
114
114
|
prefixCls: prefixCls
|
115
115
|
}));
|
116
116
|
}
|
package/es/modal/style/index.js
CHANGED
@@ -148,8 +148,7 @@ var genModalStyle = function genModalStyle(token) {
|
|
148
148
|
padding: token.footerPadding,
|
149
149
|
borderTop: token.footerBorderTop,
|
150
150
|
borderRadius: token.footerBorderRadius
|
151
|
-
}, "".concat(token.antCls, "-btn + ").concat(token.antCls, "-btn
|
152
|
-
marginBottom: 0,
|
151
|
+
}, "> ".concat(token.antCls, "-btn + ").concat(token.antCls, "-btn"), {
|
153
152
|
marginInlineStart: token.marginXS
|
154
153
|
})), _defineProperty(_Object$assign3, "".concat(componentCls, "-open"), {
|
155
154
|
overflow: 'hidden'
|
package/es/result/index.d.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
export declare const IconMap: {
|
3
|
-
success: React.ForwardRefExoticComponent<Pick<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "value" | "children" | "disabled" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "
|
4
|
-
error: React.ForwardRefExoticComponent<Pick<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "value" | "children" | "disabled" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "
|
5
|
-
info: React.ForwardRefExoticComponent<Pick<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "value" | "children" | "disabled" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "
|
6
|
-
warning: React.ForwardRefExoticComponent<Pick<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "value" | "children" | "disabled" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "
|
3
|
+
success: React.ForwardRefExoticComponent<Pick<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "value" | "children" | "disabled" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "color" | "content" | "height" | "rotate" | "translate" | "width" | "hidden" | "default" | "wrap" | "start" | "size" | "open" | "multiple" | "max" | "min" | "className" | "onTransitionEnd" | "prefix" | "key" | "target" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEndCapture" | "list" | "step" | "placeholder" | "name" | "autoComplete" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "download" | "href" | "hrefLang" | "media" | "shape" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "encType" | "frameBorder" | "headers" | "high" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "maxLength" | "mediaGroup" | "method" | "minLength" | "muted" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "useMap" | "wmode" | "spin" | "twoToneColor"> & React.RefAttributes<HTMLSpanElement>>;
|
4
|
+
error: React.ForwardRefExoticComponent<Pick<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "value" | "children" | "disabled" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "color" | "content" | "height" | "rotate" | "translate" | "width" | "hidden" | "default" | "wrap" | "start" | "size" | "open" | "multiple" | "max" | "min" | "className" | "onTransitionEnd" | "prefix" | "key" | "target" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEndCapture" | "list" | "step" | "placeholder" | "name" | "autoComplete" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "download" | "href" | "hrefLang" | "media" | "shape" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "encType" | "frameBorder" | "headers" | "high" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "maxLength" | "mediaGroup" | "method" | "minLength" | "muted" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "useMap" | "wmode" | "spin" | "twoToneColor"> & React.RefAttributes<HTMLSpanElement>>;
|
5
|
+
info: React.ForwardRefExoticComponent<Pick<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "value" | "children" | "disabled" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "color" | "content" | "height" | "rotate" | "translate" | "width" | "hidden" | "default" | "wrap" | "start" | "size" | "open" | "multiple" | "max" | "min" | "className" | "onTransitionEnd" | "prefix" | "key" | "target" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEndCapture" | "list" | "step" | "placeholder" | "name" | "autoComplete" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "download" | "href" | "hrefLang" | "media" | "shape" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "encType" | "frameBorder" | "headers" | "high" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "maxLength" | "mediaGroup" | "method" | "minLength" | "muted" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "useMap" | "wmode" | "spin" | "twoToneColor"> & React.RefAttributes<HTMLSpanElement>>;
|
6
|
+
warning: React.ForwardRefExoticComponent<Pick<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "value" | "children" | "disabled" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "color" | "content" | "height" | "rotate" | "translate" | "width" | "hidden" | "default" | "wrap" | "start" | "size" | "open" | "multiple" | "max" | "min" | "className" | "onTransitionEnd" | "prefix" | "key" | "target" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEndCapture" | "list" | "step" | "placeholder" | "name" | "autoComplete" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "download" | "href" | "hrefLang" | "media" | "shape" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "encType" | "frameBorder" | "headers" | "high" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "maxLength" | "mediaGroup" | "method" | "minLength" | "muted" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "useMap" | "wmode" | "spin" | "twoToneColor"> & React.RefAttributes<HTMLSpanElement>>;
|
7
7
|
};
|
8
8
|
export declare const ExceptionMap: {
|
9
9
|
'404': React.FC<{}>;
|
package/es/select/index.d.ts
CHANGED
@@ -40,9 +40,7 @@ export interface SelectProps<ValueType = any, OptionType extends BaseOptionType
|
|
40
40
|
}
|
41
41
|
declare const Select: (<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType>(props: SelectProps<ValueType, OptionType> & {
|
42
42
|
children?: React.ReactNode;
|
43
|
-
} & {
|
44
|
-
ref?: React.Ref<BaseSelectRef> | undefined;
|
45
|
-
}) => React.ReactElement) & {
|
43
|
+
} & React.RefAttributes<BaseSelectRef>) => React.ReactElement) & {
|
46
44
|
displayName?: string | undefined;
|
47
45
|
SECRET_COMBOBOX_MODE_DO_NOT_USE: string;
|
48
46
|
Option: typeof Option;
|
package/es/select/index.js
CHANGED
@@ -31,14 +31,15 @@ import { devUseWarning } from "../_util/warning";
|
|
31
31
|
import { ConfigContext } from "../config-provider";
|
32
32
|
import DefaultRenderEmpty from "../config-provider/defaultRenderEmpty";
|
33
33
|
import DisabledContext from "../config-provider/DisabledContext";
|
34
|
+
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls";
|
34
35
|
import useSize from "../config-provider/hooks/useSize";
|
35
36
|
import { FormItemInputContext } from "../form/context";
|
36
37
|
import { useCompactItemContext } from "../space/Compact";
|
38
|
+
import mergedBuiltinPlacements from "./mergedBuiltinPlacements";
|
37
39
|
import useStyle from "./style";
|
38
|
-
import useBuiltinPlacements from "./useBuiltinPlacements";
|
39
40
|
import useIcons from "./useIcons";
|
40
41
|
import useShowArrow from "./useShowArrow";
|
41
|
-
import
|
42
|
+
import { useToken } from "../theme/internal";
|
42
43
|
var SECRET_COMBOBOX_MODE_DO_NOT_USE = 'SECRET_COMBOBOX_MODE_DO_NOT_USE';
|
43
44
|
var InternalSelect = function InternalSelect(_a, ref) {
|
44
45
|
var _classNames2;
|
@@ -54,8 +55,7 @@ var InternalSelect = function InternalSelect(_a, ref) {
|
|
54
55
|
_a$listHeight = _a.listHeight,
|
55
56
|
listHeight = _a$listHeight === void 0 ? 256 : _a$listHeight,
|
56
57
|
placement = _a.placement,
|
57
|
-
|
58
|
-
listItemHeight = _a$listItemHeight === void 0 ? 24 : _a$listItemHeight,
|
58
|
+
customListItemHeight = _a.listItemHeight,
|
59
59
|
customizeSize = _a.size,
|
60
60
|
customDisabled = _a.disabled,
|
61
61
|
notFoundContent = _a.notFoundContent,
|
@@ -76,6 +76,10 @@ var InternalSelect = function InternalSelect(_a, ref) {
|
|
76
76
|
contextPopupMatchSelectWidth = _React$useContext.popupMatchSelectWidth,
|
77
77
|
popupOverflow = _React$useContext.popupOverflow,
|
78
78
|
select = _React$useContext.select;
|
79
|
+
var _useToken = useToken(),
|
80
|
+
_useToken2 = _slicedToArray(_useToken, 2),
|
81
|
+
token = _useToken2[1];
|
82
|
+
var listItemHeight = customListItemHeight !== null && customListItemHeight !== void 0 ? customListItemHeight : token === null || token === void 0 ? void 0 : token.controlHeight;
|
79
83
|
var prefixCls = getPrefixCls('select', customizePrefixCls);
|
80
84
|
var rootPrefixCls = getPrefixCls();
|
81
85
|
var direction = propDirection !== null && propDirection !== void 0 ? propDirection : contextDirection;
|
@@ -153,7 +157,6 @@ var InternalSelect = function InternalSelect(_a, ref) {
|
|
153
157
|
}
|
154
158
|
return direction === 'rtl' ? 'bottomRight' : 'bottomLeft';
|
155
159
|
}, [placement, direction]);
|
156
|
-
var mergedBuiltinPlacements = useBuiltinPlacements(builtinPlacements, popupOverflow);
|
157
160
|
// ====================== Warning ======================
|
158
161
|
if (process.env.NODE_ENV !== 'production') {
|
159
162
|
var warning = devUseWarning('Select');
|
@@ -173,7 +176,7 @@ var InternalSelect = function InternalSelect(_a, ref) {
|
|
173
176
|
}, selectProps, {
|
174
177
|
style: Object.assign(Object.assign({}, select === null || select === void 0 ? void 0 : select.style), style),
|
175
178
|
dropdownMatchSelectWidth: mergedPopupMatchSelectWidth,
|
176
|
-
builtinPlacements: mergedBuiltinPlacements,
|
179
|
+
builtinPlacements: mergedBuiltinPlacements(builtinPlacements, popupOverflow),
|
177
180
|
transitionName: getTransitionName(rootPrefixCls, 'slide-up', props.transitionName),
|
178
181
|
listHeight: listHeight,
|
179
182
|
listItemHeight: listItemHeight,
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import type { AlignType, BuildInPlacements } from '@rc-component/trigger';
|
2
|
+
import type { PopupOverflow } from '../config-provider/context';
|
3
|
+
declare function mergedBuiltinPlacements(buildInPlacements?: BuildInPlacements, popupOverflow?: PopupOverflow): Record<string, AlignType>;
|
4
|
+
export default mergedBuiltinPlacements;
|
@@ -30,6 +30,7 @@ var getBuiltInPlacements = function getBuiltInPlacements(popupOverflow) {
|
|
30
30
|
})
|
31
31
|
};
|
32
32
|
};
|
33
|
-
|
33
|
+
function mergedBuiltinPlacements(buildInPlacements, popupOverflow) {
|
34
34
|
return buildInPlacements || getBuiltInPlacements(popupOverflow);
|
35
|
-
}
|
35
|
+
}
|
36
|
+
export default mergedBuiltinPlacements;
|
@@ -24,7 +24,7 @@ var genItemStyle = function genItemStyle(token) {
|
|
24
24
|
};
|
25
25
|
};
|
26
26
|
var genSingleStyle = function genSingleStyle(token) {
|
27
|
-
var _disabled, _option, _Object$assign;
|
27
|
+
var _selectedNot$conc, _disabled, _option, _Object$assign;
|
28
28
|
var antCls = token.antCls,
|
29
29
|
componentCls = token.componentCls;
|
30
30
|
var selectItemCls = "".concat(componentCls, "-item");
|
@@ -81,13 +81,19 @@ var genSingleStyle = function genSingleStyle(token) {
|
|
81
81
|
}
|
82
82
|
}, _defineProperty(_option, "&-active:not(".concat(selectItemCls, "-option-disabled)"), {
|
83
83
|
backgroundColor: token.optionActiveBg
|
84
|
-
}), _defineProperty(_option, "&-selected:not(".concat(selectItemCls, "-option-disabled)"),
|
84
|
+
}), _defineProperty(_option, "&-selected:not(".concat(selectItemCls, "-option-disabled)"), (_selectedNot$conc = {
|
85
85
|
color: token.optionSelectedColor,
|
86
86
|
fontWeight: token.optionSelectedFontWeight,
|
87
87
|
backgroundColor: token.optionSelectedBg
|
88
|
-
}, "".concat(selectItemCls, "-option-state"), {
|
88
|
+
}, _defineProperty(_selectedNot$conc, "".concat(selectItemCls, "-option-state"), {
|
89
89
|
color: token.colorPrimary
|
90
|
-
})
|
90
|
+
}), _defineProperty(_selectedNot$conc, "&:has(+ ".concat(selectItemCls, "-option-selected:not(").concat(selectItemCls, "-option-disabled))"), _defineProperty({
|
91
|
+
borderEndStartRadius: 0,
|
92
|
+
borderEndEndRadius: 0
|
93
|
+
}, "& + ".concat(selectItemCls, "-option-selected:not(").concat(selectItemCls, "-option-disabled)"), {
|
94
|
+
borderStartStartRadius: 0,
|
95
|
+
borderStartEndRadius: 0
|
96
|
+
})), _selectedNot$conc)), _defineProperty(_option, '&-disabled', (_disabled = {}, _defineProperty(_disabled, "&".concat(selectItemCls, "-option-selected"), {
|
91
97
|
backgroundColor: token.colorBgContainerDisabled
|
92
98
|
}), _defineProperty(_disabled, "color", token.colorTextDisabled), _defineProperty(_disabled, "cursor", 'not-allowed'), _disabled)), _defineProperty(_option, '&-grouped', {
|
93
99
|
paddingInlineStart: token.calc(token.controlPaddingHorizontal).mul(2).equal()
|