@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
@@ -42,75 +42,75 @@ export default function getArrowStyle(token, colorBg, options) {
|
|
42
42
|
'&:before': {
|
43
43
|
background: colorBg
|
44
44
|
}
|
45
|
-
})]), isInject(!!arrowPlacement.top, (_isInject = {}, _defineProperty(_isInject, ["&-placement-top ".concat(componentCls, "-arrow"), "&-placement-topLeft ".concat(componentCls, "-arrow"), "&-placement-topRight ".concat(componentCls, "-arrow")].join(','), {
|
45
|
+
})]), isInject(!!arrowPlacement.top, (_isInject = {}, _defineProperty(_isInject, ["&-placement-top > ".concat(componentCls, "-arrow"), "&-placement-topLeft > ".concat(componentCls, "-arrow"), "&-placement-topRight > ".concat(componentCls, "-arrow")].join(','), {
|
46
46
|
bottom: arrowDistance,
|
47
47
|
transform: 'translateY(100%) rotate(180deg)'
|
48
|
-
}), _defineProperty(_isInject, "&-placement-top ".concat(componentCls, "-arrow"), {
|
48
|
+
}), _defineProperty(_isInject, "&-placement-top > ".concat(componentCls, "-arrow"), {
|
49
49
|
left: {
|
50
50
|
_skip_check_: true,
|
51
51
|
value: '50%'
|
52
52
|
},
|
53
53
|
transform: 'translateX(-50%) translateY(100%) rotate(180deg)'
|
54
|
-
}), _defineProperty(_isInject, "&-placement-topLeft ".concat(componentCls, "-arrow"), {
|
54
|
+
}), _defineProperty(_isInject, "&-placement-topLeft > ".concat(componentCls, "-arrow"), {
|
55
55
|
left: {
|
56
56
|
_skip_check_: true,
|
57
57
|
value: arrowOffsetHorizontal
|
58
58
|
}
|
59
|
-
}), _defineProperty(_isInject, "&-placement-topRight ".concat(componentCls, "-arrow"), {
|
59
|
+
}), _defineProperty(_isInject, "&-placement-topRight > ".concat(componentCls, "-arrow"), {
|
60
60
|
right: {
|
61
61
|
_skip_check_: true,
|
62
62
|
value: arrowOffsetHorizontal
|
63
63
|
}
|
64
|
-
}), _isInject))), isInject(!!arrowPlacement.bottom, (_isInject2 = {}, _defineProperty(_isInject2, ["&-placement-bottom ".concat(componentCls, "-arrow"), "&-placement-bottomLeft ".concat(componentCls, "-arrow"), "&-placement-bottomRight ".concat(componentCls, "-arrow")].join(','), {
|
64
|
+
}), _isInject))), isInject(!!arrowPlacement.bottom, (_isInject2 = {}, _defineProperty(_isInject2, ["&-placement-bottom > ".concat(componentCls, "-arrow"), "&-placement-bottomLeft > ".concat(componentCls, "-arrow"), "&-placement-bottomRight > ".concat(componentCls, "-arrow")].join(','), {
|
65
65
|
top: arrowDistance,
|
66
66
|
transform: "translateY(-100%)"
|
67
|
-
}), _defineProperty(_isInject2, "&-placement-bottom ".concat(componentCls, "-arrow"), {
|
67
|
+
}), _defineProperty(_isInject2, "&-placement-bottom > ".concat(componentCls, "-arrow"), {
|
68
68
|
left: {
|
69
69
|
_skip_check_: true,
|
70
70
|
value: '50%'
|
71
71
|
},
|
72
72
|
transform: "translateX(-50%) translateY(-100%)"
|
73
|
-
}), _defineProperty(_isInject2, "&-placement-bottomLeft ".concat(componentCls, "-arrow"), {
|
73
|
+
}), _defineProperty(_isInject2, "&-placement-bottomLeft > ".concat(componentCls, "-arrow"), {
|
74
74
|
left: {
|
75
75
|
_skip_check_: true,
|
76
76
|
value: arrowOffsetHorizontal
|
77
77
|
}
|
78
|
-
}), _defineProperty(_isInject2, "&-placement-bottomRight ".concat(componentCls, "-arrow"), {
|
78
|
+
}), _defineProperty(_isInject2, "&-placement-bottomRight > ".concat(componentCls, "-arrow"), {
|
79
79
|
right: {
|
80
80
|
_skip_check_: true,
|
81
81
|
value: arrowOffsetHorizontal
|
82
82
|
}
|
83
|
-
}), _isInject2))), isInject(!!arrowPlacement.left, (_isInject3 = {}, _defineProperty(_isInject3, ["&-placement-left ".concat(componentCls, "-arrow"), "&-placement-leftTop ".concat(componentCls, "-arrow"), "&-placement-leftBottom ".concat(componentCls, "-arrow")].join(','), {
|
83
|
+
}), _isInject2))), isInject(!!arrowPlacement.left, (_isInject3 = {}, _defineProperty(_isInject3, ["&-placement-left > ".concat(componentCls, "-arrow"), "&-placement-leftTop > ".concat(componentCls, "-arrow"), "&-placement-leftBottom > ".concat(componentCls, "-arrow")].join(','), {
|
84
84
|
right: {
|
85
85
|
_skip_check_: true,
|
86
86
|
value: arrowDistance
|
87
87
|
},
|
88
88
|
transform: 'translateX(100%) rotate(90deg)'
|
89
|
-
}), _defineProperty(_isInject3, "&-placement-left ".concat(componentCls, "-arrow"), {
|
89
|
+
}), _defineProperty(_isInject3, "&-placement-left > ".concat(componentCls, "-arrow"), {
|
90
90
|
top: {
|
91
91
|
_skip_check_: true,
|
92
92
|
value: '50%'
|
93
93
|
},
|
94
94
|
transform: 'translateY(-50%) translateX(100%) rotate(90deg)'
|
95
|
-
}), _defineProperty(_isInject3, "&-placement-leftTop ".concat(componentCls, "-arrow"), {
|
95
|
+
}), _defineProperty(_isInject3, "&-placement-leftTop > ".concat(componentCls, "-arrow"), {
|
96
96
|
top: arrowOffsetVertical
|
97
|
-
}), _defineProperty(_isInject3, "&-placement-leftBottom ".concat(componentCls, "-arrow"), {
|
97
|
+
}), _defineProperty(_isInject3, "&-placement-leftBottom > ".concat(componentCls, "-arrow"), {
|
98
98
|
bottom: arrowOffsetVertical
|
99
|
-
}), _isInject3))), isInject(!!arrowPlacement.right, (_isInject4 = {}, _defineProperty(_isInject4, ["&-placement-right ".concat(componentCls, "-arrow"), "&-placement-rightTop ".concat(componentCls, "-arrow"), "&-placement-rightBottom ".concat(componentCls, "-arrow")].join(','), {
|
99
|
+
}), _isInject3))), isInject(!!arrowPlacement.right, (_isInject4 = {}, _defineProperty(_isInject4, ["&-placement-right > ".concat(componentCls, "-arrow"), "&-placement-rightTop > ".concat(componentCls, "-arrow"), "&-placement-rightBottom > ".concat(componentCls, "-arrow")].join(','), {
|
100
100
|
left: {
|
101
101
|
_skip_check_: true,
|
102
102
|
value: arrowDistance
|
103
103
|
},
|
104
104
|
transform: 'translateX(-100%) rotate(-90deg)'
|
105
|
-
}), _defineProperty(_isInject4, "&-placement-right ".concat(componentCls, "-arrow"), {
|
105
|
+
}), _defineProperty(_isInject4, "&-placement-right > ".concat(componentCls, "-arrow"), {
|
106
106
|
top: {
|
107
107
|
_skip_check_: true,
|
108
108
|
value: '50%'
|
109
109
|
},
|
110
110
|
transform: 'translateY(-50%) translateX(-100%) rotate(-90deg)'
|
111
|
-
}), _defineProperty(_isInject4, "&-placement-rightTop ".concat(componentCls, "-arrow"), {
|
111
|
+
}), _defineProperty(_isInject4, "&-placement-rightTop > ".concat(componentCls, "-arrow"), {
|
112
112
|
top: arrowOffsetVertical
|
113
|
-
}), _defineProperty(_isInject4, "&-placement-rightBottom ".concat(componentCls, "-arrow"), {
|
113
|
+
}), _defineProperty(_isInject4, "&-placement-rightBottom > ".concat(componentCls, "-arrow"), {
|
114
114
|
bottom: arrowOffsetVertical
|
115
115
|
}), _isInject4))));
|
116
116
|
}
|
package/es/table/interface.d.ts
CHANGED
@@ -9,12 +9,8 @@ import type { PaginationProps } from '../pagination';
|
|
9
9
|
import type { TooltipProps } from '../tooltip';
|
10
10
|
import type { INTERNAL_SELECTION_ITEM } from './hooks/useSelection';
|
11
11
|
import type { InternalTableProps, TableProps } from './InternalTable';
|
12
|
-
export type RefTable = <RecordType extends AnyObject = AnyObject>(props: React.PropsWithChildren<TableProps<RecordType>> &
|
13
|
-
|
14
|
-
}) => React.ReactElement;
|
15
|
-
export type RefInternalTable = <RecordType extends AnyObject = AnyObject>(props: React.PropsWithChildren<InternalTableProps<RecordType>> & {
|
16
|
-
ref?: React.Ref<Reference>;
|
17
|
-
}) => React.ReactElement;
|
12
|
+
export type RefTable = <RecordType extends AnyObject = AnyObject>(props: React.PropsWithChildren<TableProps<RecordType>> & React.RefAttributes<Reference>) => React.ReactElement;
|
13
|
+
export type RefInternalTable = <RecordType extends AnyObject = AnyObject>(props: React.PropsWithChildren<InternalTableProps<RecordType>> & React.RefAttributes<Reference>) => React.ReactElement;
|
18
14
|
export { ExpandableConfig, GetRowKey };
|
19
15
|
export type Key = React.Key;
|
20
16
|
export type SafeKey = Exclude<Key, bigint>;
|
package/es/table/style/fixed.js
CHANGED
@@ -47,6 +47,7 @@ var genFixedStyle = function genFixedStyle(token) {
|
|
47
47
|
content: '""',
|
48
48
|
pointerEvents: 'none'
|
49
49
|
}), _defineProperty(_$concat3, "".concat(componentCls, "-container"), {
|
50
|
+
position: 'relative',
|
50
51
|
'&::before, &::after': {
|
51
52
|
position: 'absolute',
|
52
53
|
top: 0,
|
@@ -65,20 +66,14 @@ var genFixedStyle = function genFixedStyle(token) {
|
|
65
66
|
'&::after': {
|
66
67
|
insetInlineEnd: 0
|
67
68
|
}
|
68
|
-
}), _defineProperty(_$concat3, "".concat(componentCls, "-ping-left"), (_$concat = {}, _defineProperty(_$concat, "&:not(".concat(componentCls, "-has-fix-left) ").concat(componentCls, "-container"), {
|
69
|
-
|
70
|
-
'&::before': {
|
71
|
-
boxShadow: "inset 10px 0 8px -8px ".concat(shadowColor)
|
72
|
-
}
|
69
|
+
}), _defineProperty(_$concat3, "".concat(componentCls, "-ping-left"), (_$concat = {}, _defineProperty(_$concat, "&:not(".concat(componentCls, "-has-fix-left) ").concat(componentCls, "-container::before"), {
|
70
|
+
boxShadow: "inset 10px 0 8px -8px ".concat(shadowColor)
|
73
71
|
}), _defineProperty(_$concat, "\n ".concat(componentCls, "-cell-fix-left-first::after,\n ").concat(componentCls, "-cell-fix-left-last::after\n "), {
|
74
72
|
boxShadow: "inset 10px 0 8px -8px ".concat(shadowColor)
|
75
73
|
}), _defineProperty(_$concat, "".concat(componentCls, "-cell-fix-left-last::before"), {
|
76
74
|
backgroundColor: 'transparent !important'
|
77
|
-
}), _$concat)), _defineProperty(_$concat3, "".concat(componentCls, "-ping-right"), (_$concat2 = {}, _defineProperty(_$concat2, "&:not(".concat(componentCls, "-has-fix-right) ").concat(componentCls, "-container"), {
|
78
|
-
|
79
|
-
'&::after': {
|
80
|
-
boxShadow: "inset -10px 0 8px -8px ".concat(shadowColor)
|
81
|
-
}
|
75
|
+
}), _$concat)), _defineProperty(_$concat3, "".concat(componentCls, "-ping-right"), (_$concat2 = {}, _defineProperty(_$concat2, "&:not(".concat(componentCls, "-has-fix-right) ").concat(componentCls, "-container::after"), {
|
76
|
+
boxShadow: "inset -10px 0 8px -8px ".concat(shadowColor)
|
82
77
|
}), _defineProperty(_$concat2, "\n ".concat(componentCls, "-cell-fix-right-first::after,\n ").concat(componentCls, "-cell-fix-right-last::after\n "), {
|
83
78
|
boxShadow: "inset -10px 0 8px -8px ".concat(shadowColor)
|
84
79
|
}), _$concat2)), _$concat3));
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import type { CSSInterpolation, DerivativeFunc } from '@ant-design/cssinjs';
|
3
|
+
import type { AnyObject } from '../../_util/type';
|
3
4
|
import type { AliasToken } from './alias';
|
4
5
|
import type { ComponentTokenMap } from './components';
|
5
6
|
import type { MapToken } from './maps';
|
@@ -17,4 +18,4 @@ export { PresetColors } from './presetColors';
|
|
17
18
|
export type { LegacyColorPalettes, ColorPalettes, PresetColorKey, PresetColorType, } from './presetColors';
|
18
19
|
export type { SeedToken } from './seeds';
|
19
20
|
export type UseComponentStyleResult = [(node: React.ReactNode) => React.ReactElement, string];
|
20
|
-
export type GenerateStyle<ComponentToken extends
|
21
|
+
export type GenerateStyle<ComponentToken extends AnyObject = AliasToken, ReturnType = CSSInterpolation> = (token: ComponentToken) => ReturnType;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import type { DerivativeFunc } from '@ant-design/cssinjs';
|
2
|
-
import type {
|
2
|
+
import type { MapToken, SeedToken } from 'antd/es/theme/interface';
|
3
3
|
declare const derivative: DerivativeFunc<SeedToken, MapToken>;
|
4
4
|
export default derivative;
|
@@ -4,25 +4,15 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
4
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
5
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
6
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); }
|
7
|
-
import genControlHeight from "../shared/genControlHeight";
|
8
7
|
import defaultAlgorithm from "../default";
|
8
|
+
import genControlHeight from "../shared/genControlHeight";
|
9
|
+
import genFontMapToken from "../shared/genFontMapToken";
|
9
10
|
import genCompactSizeMapToken from "./genCompactSizeMapToken";
|
10
|
-
import getFontSizes from "../shared/genFontSizes";
|
11
11
|
var derivative = function derivative(token, mapToken) {
|
12
12
|
var mergedMapToken = mapToken !== null && mapToken !== void 0 ? mapToken : defaultAlgorithm(token);
|
13
|
-
|
14
|
-
// @ts-ignore
|
15
|
-
var fontSize = mergedMapToken.fontSizes[0]; // Smaller size font-size as base
|
16
|
-
var fontSizes = getFontSizes(fontSize);
|
13
|
+
var fontSize = mergedMapToken.fontSizeSM; // Smaller size font-size as base
|
17
14
|
var controlHeight = mergedMapToken.controlHeight - 4;
|
18
|
-
return _objectSpread(_objectSpread(_objectSpread({}, mergedMapToken), genCompactSizeMapToken(mapToken !== null && mapToken !== void 0 ? mapToken : token)), {}, {
|
19
|
-
// font
|
20
|
-
fontSizes: fontSizes.map(function (fs) {
|
21
|
-
return fs.size;
|
22
|
-
}),
|
23
|
-
lineHeights: fontSizes.map(function (fs) {
|
24
|
-
return fs.lineHeight;
|
25
|
-
}),
|
15
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, mergedMapToken), genCompactSizeMapToken(mapToken !== null && mapToken !== void 0 ? mapToken : token)), genFontMapToken(fontSize)), {}, {
|
26
16
|
// controlHeight
|
27
17
|
controlHeight: controlHeight
|
28
18
|
}, genControlHeight(_objectSpread(_objectSpread({}, mergedMapToken), {}, {
|
@@ -39,8 +39,8 @@ export var generateNeutralColorPalettes = function generateNeutralColorPalettes(
|
|
39
39
|
colorBgContainer: getSolidColor(colorBgBase, 8),
|
40
40
|
colorBgLayout: getSolidColor(colorBgBase, 0),
|
41
41
|
colorBgSpotlight: getSolidColor(colorBgBase, 26),
|
42
|
+
colorBgBlur: getAlphaColor(colorTextBase, 0.04),
|
42
43
|
colorBorder: getSolidColor(colorBgBase, 26),
|
43
|
-
colorBorderSecondary: getSolidColor(colorBgBase, 19)
|
44
|
-
colorBgBlur: getAlphaColor(colorTextBase, 0.04)
|
44
|
+
colorBorderSecondary: getSolidColor(colorBgBase, 19)
|
45
45
|
};
|
46
46
|
};
|
@@ -19,6 +19,7 @@ var derivative = function derivative(token, mapToken) {
|
|
19
19
|
});
|
20
20
|
return new Array(10).fill(1).reduce(function (prev, _, i) {
|
21
21
|
prev["".concat(colorKey, "-").concat(i + 1)] = colors[i];
|
22
|
+
prev["".concat(colorKey).concat(i + 1)] = colors[i];
|
22
23
|
return prev;
|
23
24
|
}, {});
|
24
25
|
}).reduce(function (prev, cur) {
|
@@ -37,8 +37,8 @@ export var generateNeutralColorPalettes = function generateNeutralColorPalettes(
|
|
37
37
|
colorBgContainer: getSolidColor(colorBgBase, 0),
|
38
38
|
colorBgElevated: getSolidColor(colorBgBase, 0),
|
39
39
|
colorBgSpotlight: getAlphaColor(colorTextBase, 0.85),
|
40
|
+
colorBgBlur: 'transparent',
|
40
41
|
colorBorder: getSolidColor(colorBgBase, 15),
|
41
|
-
colorBorderSecondary: getSolidColor(colorBgBase, 6)
|
42
|
-
colorBgBlur: 'transparent'
|
42
|
+
colorBorderSecondary: getSolidColor(colorBgBase, 6)
|
43
43
|
};
|
44
44
|
};
|
@@ -4,12 +4,12 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
4
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
5
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
6
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); }
|
7
|
-
/* eslint-disable no-param-reassign */
|
8
7
|
import { generate } from '@ant-design/colors';
|
9
8
|
import { defaultPresetColors } from "../seed";
|
10
9
|
import genColorMapToken from "../shared/genColorMapToken";
|
11
10
|
import genCommonMapToken from "../shared/genCommonMapToken";
|
12
11
|
import genControlHeight from "../shared/genControlHeight";
|
12
|
+
import genFontMapToken from "../shared/genFontMapToken";
|
13
13
|
import genSizeMapToken from "../shared/genSizeMapToken";
|
14
14
|
import { generateColorPalettes, generateNeutralColorPalettes } from "./colors";
|
15
15
|
export default function derivative(token) {
|
@@ -19,14 +19,16 @@ export default function derivative(token) {
|
|
19
19
|
var colors = generate(token[colorKey]);
|
20
20
|
return new Array(10).fill(1).reduce(function (prev, _, i) {
|
21
21
|
prev["".concat(colorKey, "-").concat(i + 1)] = colors[i];
|
22
|
+
prev["".concat(colorKey).concat(i + 1)] = colors[i];
|
22
23
|
return prev;
|
23
24
|
}, {});
|
24
25
|
}).reduce(function (prev, cur) {
|
26
|
+
// eslint-disable-next-line no-param-reassign
|
25
27
|
prev = _objectSpread(_objectSpread({}, prev), cur);
|
26
28
|
return prev;
|
27
29
|
}, {});
|
28
|
-
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, token), colorPalettes), genColorMapToken(token, {
|
30
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, token), colorPalettes), genColorMapToken(token, {
|
29
31
|
generateColorPalettes: generateColorPalettes,
|
30
32
|
generateNeutralColorPalettes: generateNeutralColorPalettes
|
31
|
-
})), genSizeMapToken(token)), genControlHeight(token)), genCommonMapToken(token));
|
33
|
+
})), genFontMapToken(token.fontSize)), genSizeMapToken(token)), genControlHeight(token)), genCommonMapToken(token));
|
32
34
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { PresetColorType, SeedToken } from 'antd/es/theme/
|
1
|
+
import type { PresetColorType, SeedToken } from 'antd/es/theme/internal';
|
2
2
|
export declare const defaultPresetColors: PresetColorType;
|
3
3
|
declare const seedToken: SeedToken;
|
4
4
|
export default seedToken;
|
package/es/theme/themes/seed.js
CHANGED
@@ -31,8 +31,8 @@ var seedToken = _objectSpread(_objectSpread({}, defaultPresetColors), {}, {
|
|
31
31
|
colorLink: '#2c6bff',
|
32
32
|
// Font
|
33
33
|
fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",
|
34
|
+
fontFamilyCode: "'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",
|
34
35
|
fontSize: 14,
|
35
|
-
fontFamilyCode: '',
|
36
36
|
// Line
|
37
37
|
lineWidth: 1,
|
38
38
|
lineType: 'solid',
|
@@ -40,14 +40,14 @@ var seedToken = _objectSpread(_objectSpread({}, defaultPresetColors), {}, {
|
|
40
40
|
motionUnit: 0.1,
|
41
41
|
// @ts-ignore
|
42
42
|
motionBase: 0,
|
43
|
-
motionEaseOutCirc:
|
44
|
-
motionEaseInOutCirc:
|
43
|
+
motionEaseOutCirc: 'cubic-bezier(0.08, 0.82, 0.17, 1)',
|
44
|
+
motionEaseInOutCirc: 'cubic-bezier(0.78, 0.14, 0.15, 0.86)',
|
45
45
|
motionEaseOut: 'cubic-bezier(0.215, 0.61, 0.355, 1)',
|
46
|
-
motionEaseInOut:
|
47
|
-
motionEaseOutBack:
|
48
|
-
motionEaseInBack:
|
49
|
-
motionEaseInQuint:
|
50
|
-
motionEaseOutQuint:
|
46
|
+
motionEaseInOut: 'cubic-bezier(0.645, 0.045, 0.355, 1)',
|
47
|
+
motionEaseOutBack: 'cubic-bezier(0.12, 0.4, 0.29, 1.46)',
|
48
|
+
motionEaseInBack: 'cubic-bezier(0.71, -0.46, 0.88, 0.6)',
|
49
|
+
motionEaseInQuint: 'cubic-bezier(0.755, 0.05, 0.855, 0.06)',
|
50
|
+
motionEaseOutQuint: 'cubic-bezier(0.23, 1, 0.32, 1)',
|
51
51
|
// Radius
|
52
52
|
borderRadius: 6,
|
53
53
|
// Size
|
@@ -21,6 +21,10 @@ export default function genColorMapToken(seed, _ref) {
|
|
21
21
|
var errorColors = generateColorPalettes(colorErrorBase);
|
22
22
|
var infoColors = generateColorPalettes(colorInfoBase);
|
23
23
|
var neutralColors = generateNeutralColorPalettes(colorBgBase, colorTextBase);
|
24
|
+
|
25
|
+
// Color Link
|
26
|
+
var colorLink = seed.colorLink || seed.colorInfo;
|
27
|
+
var linkColors = generateColorPalettes(colorLink);
|
24
28
|
return _objectSpread(_objectSpread({}, neutralColors), {}, {
|
25
29
|
colorPrimaryBg: primaryColors[1],
|
26
30
|
colorPrimaryBgHover: primaryColors[2],
|
@@ -72,6 +76,9 @@ export default function genColorMapToken(seed, _ref) {
|
|
72
76
|
colorInfoTextHover: infoColors[8],
|
73
77
|
colorInfoText: infoColors[9],
|
74
78
|
colorInfoTextActive: infoColors[10],
|
79
|
+
colorLinkHover: linkColors[4],
|
80
|
+
colorLink: linkColors[6],
|
81
|
+
colorLinkActive: linkColors[7],
|
75
82
|
colorBgMask: new TinyColor('#000').setAlpha(0.45).toRgbString(),
|
76
83
|
colorWhite: '#fff'
|
77
84
|
});
|
@@ -4,29 +4,17 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
4
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
5
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
6
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); }
|
7
|
-
import genFontSizes from "./genFontSizes";
|
8
7
|
import genRadius from "./genRadius";
|
9
8
|
export default function genCommonMapToken(token) {
|
10
|
-
// @ts-ignore
|
11
9
|
var motionUnit = token.motionUnit,
|
12
10
|
motionBase = token.motionBase,
|
13
|
-
fontSize = token.fontSize,
|
14
11
|
borderRadius = token.borderRadius,
|
15
12
|
lineWidth = token.lineWidth;
|
16
|
-
var fontSizes = genFontSizes(fontSize);
|
17
13
|
return _objectSpread({
|
18
14
|
// motion
|
19
15
|
motionDurationFast: "".concat((motionBase + motionUnit).toFixed(1), "s"),
|
20
16
|
motionDurationMid: "".concat((motionBase + motionUnit * 2).toFixed(1), "s"),
|
21
17
|
motionDurationSlow: "".concat((motionBase + motionUnit * 3).toFixed(1), "s"),
|
22
|
-
// font
|
23
|
-
// @ts-ignore
|
24
|
-
fontSizes: fontSizes.map(function (fs) {
|
25
|
-
return fs.size;
|
26
|
-
}),
|
27
|
-
lineHeights: fontSizes.map(function (fs) {
|
28
|
-
return fs.lineHeight;
|
29
|
-
}),
|
30
18
|
// line
|
31
19
|
lineWidthBold: lineWidth + 1
|
32
20
|
}, genRadius(borderRadius));
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import genFontSizes from "./genFontSizes";
|
2
|
+
var genFontMapToken = function genFontMapToken(fontSize) {
|
3
|
+
var fontSizePairs = genFontSizes(fontSize);
|
4
|
+
var fontSizes = fontSizePairs.map(function (pair) {
|
5
|
+
return pair.size;
|
6
|
+
});
|
7
|
+
var lineHeights = fontSizePairs.map(function (pair) {
|
8
|
+
return pair.lineHeight;
|
9
|
+
});
|
10
|
+
var fontSizeMD = fontSizes[1];
|
11
|
+
var fontSizeSM = fontSizes[0];
|
12
|
+
var fontSizeLG = fontSizes[2];
|
13
|
+
var lineHeight = lineHeights[1];
|
14
|
+
var lineHeightSM = lineHeights[0];
|
15
|
+
var lineHeightLG = lineHeights[2];
|
16
|
+
return {
|
17
|
+
fontSizeSM: fontSizeSM,
|
18
|
+
fontSize: fontSizeMD,
|
19
|
+
fontSizeLG: fontSizeLG,
|
20
|
+
fontSizeXL: fontSizes[3],
|
21
|
+
fontSizeHeading1: fontSizes[6],
|
22
|
+
fontSizeHeading2: fontSizes[5],
|
23
|
+
fontSizeHeading3: fontSizes[4],
|
24
|
+
fontSizeHeading4: fontSizes[3],
|
25
|
+
fontSizeHeading5: fontSizes[2],
|
26
|
+
lineHeight: lineHeight,
|
27
|
+
lineHeightLG: lineHeightLG,
|
28
|
+
lineHeightSM: lineHeightSM,
|
29
|
+
// @ts-ignore
|
30
|
+
fontHeight: Math.round(lineHeight * fontSizeMD),
|
31
|
+
fontHeightLG: Math.round(lineHeightLG * fontSizeLG),
|
32
|
+
fontHeightSM: Math.round(lineHeightSM * fontSizeSM),
|
33
|
+
lineHeightHeading1: lineHeights[6],
|
34
|
+
lineHeightHeading2: lineHeights[5],
|
35
|
+
lineHeightHeading3: lineHeights[4],
|
36
|
+
lineHeightHeading4: lineHeights[3],
|
37
|
+
lineHeightHeading5: lineHeights[2]
|
38
|
+
};
|
39
|
+
};
|
40
|
+
export default genFontMapToken;
|
@@ -1,11 +1,13 @@
|
|
1
|
+
import type { AnyObject } from '../../_util/type';
|
1
2
|
/**
|
2
3
|
* This function will do as `Object.assign` in production. But will use Object.defineProperty:get to
|
3
4
|
* pass all value access in development. To support statistic field usage with alias token.
|
4
5
|
*/
|
5
|
-
export declare function merge<T extends
|
6
|
+
export declare function merge<T extends AnyObject>(...objs: Partial<T>[]): T;
|
6
7
|
/** Statistic token usage case. Should use `merge` function if you do not want spread record. */
|
7
|
-
|
8
|
+
declare const statisticToken: <T extends AnyObject>(token: T) => {
|
8
9
|
token: T;
|
9
10
|
keys: Set<string> | undefined;
|
10
11
|
flush: (componentName: string, componentToken: Record<string, string | number>) => void;
|
11
12
|
};
|
13
|
+
export default statisticToken;
|
@@ -37,7 +37,7 @@ export var _statistic_build_ = {};
|
|
37
37
|
/* istanbul ignore next */
|
38
38
|
function noop() {}
|
39
39
|
/** Statistic token usage case. Should use `merge` function if you do not want spread record. */
|
40
|
-
|
40
|
+
var statisticToken = function statisticToken(token) {
|
41
41
|
var tokenKeys;
|
42
42
|
var proxy = token;
|
43
43
|
var flush = noop;
|
@@ -64,4 +64,5 @@ export default function statisticToken(token) {
|
|
64
64
|
keys: tokenKeys,
|
65
65
|
flush: flush
|
66
66
|
};
|
67
|
-
}
|
67
|
+
};
|
68
|
+
export default statisticToken;
|
@@ -1,3 +1,4 @@
|
|
1
1
|
import type { KeyWise, TransferProps } from '..';
|
2
|
-
|
2
|
+
import type { AnyObject } from '../../_util/type';
|
3
|
+
declare const useData: <RecordType extends AnyObject>(dataSource?: RecordType[] | undefined, rowKey?: ((record: RecordType) => string) | undefined, targetKeys?: string[]) => KeyWise<RecordType>[][];
|
3
4
|
export default useData;
|
@@ -6,7 +6,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
7
7
|
import * as React from 'react';
|
8
8
|
import { groupKeysMap } from "../../_util/transKeys";
|
9
|
-
function useData(dataSource, rowKey, targetKeys) {
|
9
|
+
var useData = function useData(dataSource, rowKey, targetKeys) {
|
10
10
|
var mergedDataSource = React.useMemo(function () {
|
11
11
|
return (dataSource || []).map(function (record) {
|
12
12
|
if (rowKey) {
|
@@ -36,5 +36,5 @@ function useData(dataSource, rowKey, targetKeys) {
|
|
36
36
|
leftDataSource = _React$useMemo2[0],
|
37
37
|
rightDataSource = _React$useMemo2[1];
|
38
38
|
return [mergedDataSource, leftDataSource, rightDataSource];
|
39
|
-
}
|
39
|
+
};
|
40
40
|
export default useData;
|
@@ -7,9 +7,7 @@ export type ExpandAction = false | 'click' | 'doubleClick';
|
|
7
7
|
export interface DirectoryTreeProps<T extends BasicDataNode = DataNode> extends TreeProps<T> {
|
8
8
|
expandAction?: ExpandAction;
|
9
9
|
}
|
10
|
-
type DirectoryTreeCompoundedComponent = (<T extends BasicDataNode | DataNode = DataNode>(props: React.PropsWithChildren<DirectoryTreeProps<T>> & {
|
11
|
-
ref?: React.Ref<RcTree>;
|
12
|
-
}) => React.ReactElement) & {
|
10
|
+
type DirectoryTreeCompoundedComponent = (<T extends BasicDataNode | DataNode = DataNode>(props: React.PropsWithChildren<DirectoryTreeProps<T>> & React.RefAttributes<RcTree>) => React.ReactElement) & {
|
13
11
|
displayName?: string;
|
14
12
|
};
|
15
13
|
export interface DirectoryTreeState {
|
package/es/tree/Tree.js
CHANGED
@@ -19,8 +19,10 @@ import { ConfigContext } from "../config-provider";
|
|
19
19
|
import useStyle from "./style";
|
20
20
|
import dropIndicatorRender from "./utils/dropIndicator";
|
21
21
|
import SwitcherIconCom from "./utils/iconUtil";
|
22
|
+
import { useToken } from "../theme/internal";
|
22
23
|
var Tree = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
23
24
|
var _classNames;
|
25
|
+
var _a;
|
24
26
|
var _React$useContext = React.useContext(ConfigContext),
|
25
27
|
getPrefixCls = _React$useContext.getPrefixCls,
|
26
28
|
direction = _React$useContext.direction,
|
@@ -61,6 +63,10 @@ var Tree = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
61
63
|
wrapCSSVar = _useStyle2[0],
|
62
64
|
hashId = _useStyle2[1],
|
63
65
|
cssVarCls = _useStyle2[2];
|
66
|
+
var _useToken = useToken(),
|
67
|
+
_useToken2 = _slicedToArray(_useToken, 2),
|
68
|
+
token = _useToken2[1];
|
69
|
+
var itemHeight = token.paddingXS / 2 + (((_a = token.Tree) === null || _a === void 0 ? void 0 : _a.titleHeight) || token.controlHeightSM);
|
64
70
|
var draggableConfig = React.useMemo(function () {
|
65
71
|
if (!draggable) {
|
66
72
|
return false;
|
@@ -92,7 +98,7 @@ var Tree = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
92
98
|
});
|
93
99
|
};
|
94
100
|
return wrapCSSVar( /*#__PURE__*/React.createElement(RcTree, Object.assign({
|
95
|
-
itemHeight:
|
101
|
+
itemHeight: itemHeight,
|
96
102
|
ref: ref,
|
97
103
|
virtual: virtual
|
98
104
|
}, newProps, {
|
package/es/tree/index.d.ts
CHANGED
@@ -9,9 +9,7 @@ export type { EventDataNode } from 'rc-tree/lib/interface';
|
|
9
9
|
export type { ExpandAction as DirectoryTreeExpandAction, DirectoryTreeProps, } from './DirectoryTree';
|
10
10
|
export type { AntTreeNode, AntTreeNodeCheckedEvent, AntTreeNodeExpandedEvent, AntTreeNodeMouseEvent, AntTreeNodeProps, AntTreeNodeSelectedEvent, AntdTreeNodeAttribute, TreeProps, } from './Tree';
|
11
11
|
export type { DataNode, BasicDataNode };
|
12
|
-
type CompoundedComponent = (<T extends BasicDataNode | DataNode = DataNode>(props: React.PropsWithChildren<TreeProps<T>> & {
|
13
|
-
ref?: React.Ref<RcTree>;
|
14
|
-
}) => React.ReactElement) & {
|
12
|
+
type CompoundedComponent = (<T extends BasicDataNode | DataNode = DataNode>(props: React.PropsWithChildren<TreeProps<T>> & React.RefAttributes<RcTree>) => React.ReactElement) & {
|
15
13
|
TreeNode: typeof TreeNode;
|
16
14
|
DirectoryTree: typeof DirectoryTree;
|
17
15
|
};
|
package/es/tree/style/index.js
CHANGED
@@ -108,7 +108,9 @@ export var genBaseStyle = function genBaseStyle(prefixCls, token) {
|
|
108
108
|
background: 'transparent'
|
109
109
|
}
|
110
110
|
})
|
111
|
-
}, _defineProperty(_$concat6, "&-active ".concat(treeCls, "-node-content-wrapper"),
|
111
|
+
}, _defineProperty(_$concat6, "&-active ".concat(treeCls, "-node-content-wrapper"), {
|
112
|
+
background: token.controlItemBgHover
|
113
|
+
}), _defineProperty(_$concat6, "&:not(".concat(treeNodeCls, "-disabled).filter-node ").concat(treeCls, "-title"), {
|
112
114
|
color: 'inherit',
|
113
115
|
fontWeight: 500
|
114
116
|
}), _defineProperty(_$concat6, '&-draggable', (_draggable = {}, _defineProperty(_draggable, "".concat(treeCls, "-draggable-icon"), _defineProperty({
|
@@ -40,9 +40,7 @@ export interface TreeSelectProps<ValueType = any, OptionType extends BaseOptionT
|
|
40
40
|
}
|
41
41
|
declare const TreeSelectRef: <ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType>(props: TreeSelectProps<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
|
type InternalTreeSelectType = typeof TreeSelectRef;
|
47
45
|
type CompoundedComponent = InternalTreeSelectType & {
|
48
46
|
displayName?: string;
|
package/es/tree-select/index.js
CHANGED
@@ -22,6 +22,7 @@ import * as React from 'react';
|
|
22
22
|
import classNames from 'classnames';
|
23
23
|
import RcTreeSelect, { SHOW_ALL, SHOW_CHILD, SHOW_PARENT, TreeNode } from 'rc-tree-select';
|
24
24
|
import omit from "rc-util/es/omit";
|
25
|
+
import { useZIndex } from "../_util/hooks/useZIndex";
|
25
26
|
import { getTransitionName } from "../_util/motion";
|
26
27
|
import genPurePanel from "../_util/PurePanel";
|
27
28
|
import { getMergedStatus, getStatusClassNames } from "../_util/statusUtils";
|
@@ -29,17 +30,16 @@ import { devUseWarning } from "../_util/warning";
|
|
29
30
|
import { ConfigContext } from "../config-provider";
|
30
31
|
import DefaultRenderEmpty from "../config-provider/defaultRenderEmpty";
|
31
32
|
import DisabledContext from "../config-provider/DisabledContext";
|
33
|
+
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls";
|
32
34
|
import useSize from "../config-provider/hooks/useSize";
|
33
35
|
import { FormItemInputContext } from "../form/context";
|
36
|
+
import mergedBuiltinPlacements from "../select/mergedBuiltinPlacements";
|
34
37
|
import useSelectStyle from "../select/style";
|
35
|
-
import useBuiltinPlacements from "../select/useBuiltinPlacements";
|
36
|
-
import useShowArrow from "../select/useShowArrow";
|
37
38
|
import useIcons from "../select/useIcons";
|
39
|
+
import useShowArrow from "../select/useShowArrow";
|
38
40
|
import { useCompactItemContext } from "../space/Compact";
|
39
41
|
import SwitcherIconCom from "../tree/utils/iconUtil";
|
40
42
|
import useStyle from "./style";
|
41
|
-
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls";
|
42
|
-
import { useZIndex } from "../_util/hooks/useZIndex";
|
43
43
|
var InternalTreeSelect = function InternalTreeSelect(_a, ref) {
|
44
44
|
var _classNames2;
|
45
45
|
var _b, _c;
|
@@ -151,7 +151,6 @@ var InternalTreeSelect = function InternalTreeSelect(_a, ref) {
|
|
151
151
|
}
|
152
152
|
return direction === 'rtl' ? 'bottomRight' : 'bottomLeft';
|
153
153
|
}, [placement, direction]);
|
154
|
-
var mergedBuiltinPlacements = useBuiltinPlacements(builtinPlacements, popupOverflow);
|
155
154
|
var mergedSize = useSize(function (ctx) {
|
156
155
|
var _a;
|
157
156
|
return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;
|
@@ -177,7 +176,7 @@ var InternalTreeSelect = function InternalTreeSelect(_a, ref) {
|
|
177
176
|
disabled: mergedDisabled
|
178
177
|
}, selectProps, {
|
179
178
|
dropdownMatchSelectWidth: mergedPopupMatchSelectWidth,
|
180
|
-
builtinPlacements: mergedBuiltinPlacements,
|
179
|
+
builtinPlacements: mergedBuiltinPlacements(builtinPlacements, popupOverflow),
|
181
180
|
ref: ref,
|
182
181
|
prefixCls: prefixCls,
|
183
182
|
className: mergedClassName,
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import type { AutoSizeType } from 'rc-textarea';
|
2
1
|
import * as React from 'react';
|
2
|
+
import type { AutoSizeType } from 'rc-textarea';
|
3
3
|
import type { TooltipProps } from '../../tooltip';
|
4
4
|
import type { TypographyProps } from '../Typography';
|
5
5
|
export type BaseType = 'secondary' | 'success' | 'warning' | 'danger';
|