@swiftcrab/crab 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +143 -0
- package/es/_util/ActionButton.d.ts +19 -0
- package/es/_util/ActionButton.js +48 -0
- package/es/_util/ContextIsolator.d.ts +3 -0
- package/es/_util/ContextIsolator.js +40 -0
- package/es/_util/PurePanel.d.ts +9 -0
- package/es/_util/PurePanel.js +40 -0
- package/es/_util/aria-data-attrs.d.ts +4 -0
- package/es/_util/aria-data-attrs.js +0 -0
- package/es/_util/capitalize.d.ts +1 -0
- package/es/_util/capitalize.js +1 -0
- package/es/_util/colors.d.ts +13 -0
- package/es/_util/colors.js +1 -0
- package/es/_util/easings.d.ts +1 -0
- package/es/_util/easings.js +1 -0
- package/es/_util/extendsObject.d.ts +3 -0
- package/es/_util/extendsObject.js +1 -0
- package/es/_util/gapSize.d.ts +3 -0
- package/es/_util/gapSize.js +1 -0
- package/es/_util/getAllowClear.d.ts +4 -0
- package/es/_util/getAllowClear.js +1 -0
- package/es/_util/getRenderPropValue.d.ts +3 -0
- package/es/_util/getRenderPropValue.js +1 -0
- package/es/_util/getScroll.d.ts +3 -0
- package/es/_util/getScroll.js +1 -0
- package/es/_util/hooks/useClosable.d.ts +31 -0
- package/es/_util/hooks/useClosable.js +1 -0
- package/es/_util/hooks/useForceUpdate.d.ts +2 -0
- package/es/_util/hooks/useForceUpdate.js +1 -0
- package/es/_util/hooks/useMultipleSelect.d.ts +6 -0
- package/es/_util/hooks/useMultipleSelect.js +1 -0
- package/es/_util/hooks/usePatchElement.d.ts +5 -0
- package/es/_util/hooks/usePatchElement.js +1 -0
- package/es/_util/hooks/useProxyImperativeHandle.d.ts +4 -0
- package/es/_util/hooks/useProxyImperativeHandle.js +1 -0
- package/es/_util/hooks/useSyncState.d.ts +3 -0
- package/es/_util/hooks/useSyncState.js +1 -0
- package/es/_util/hooks/useUniqueMemo.d.ts +6 -0
- package/es/_util/hooks/useUniqueMemo.js +1 -0
- package/es/_util/hooks/useZIndex.d.ts +8 -0
- package/es/_util/hooks/useZIndex.js +35 -0
- package/es/_util/isNumeric.d.ts +2 -0
- package/es/_util/isNumeric.js +1 -0
- package/es/_util/isPrimitive.d.ts +2 -0
- package/es/_util/isPrimitive.js +1 -0
- package/es/_util/motion.d.ts +7 -0
- package/es/_util/motion.js +40 -0
- package/es/_util/placements.d.ts +21 -0
- package/es/_util/placements.js +1 -0
- package/es/_util/reactNode.d.ts +7 -0
- package/es/_util/reactNode.js +1 -0
- package/es/_util/responsiveObserver.d.ts +22 -0
- package/es/_util/responsiveObserver.js +35 -0
- package/es/_util/scrollTo.d.ts +10 -0
- package/es/_util/scrollTo.js +1 -0
- package/es/_util/statusUtils.d.ts +6 -0
- package/es/_util/statusUtils.js +1 -0
- package/es/_util/styleChecker.d.ts +3 -0
- package/es/_util/styleChecker.js +1 -0
- package/es/_util/throttleByAnimationFrame.d.ts +5 -0
- package/es/_util/throttleByAnimationFrame.js +1 -0
- package/es/_util/toList.d.ts +1 -0
- package/es/_util/toList.js +1 -0
- package/es/_util/transKeys.d.ts +3 -0
- package/es/_util/transKeys.js +1 -0
- package/es/_util/type.d.ts +54 -0
- package/es/_util/type.js +0 -0
- package/es/_util/warning.d.ts +31 -0
- package/es/_util/warning.js +1 -0
- package/es/_util/wave/WaveEffect.d.ts +10 -0
- package/es/_util/wave/WaveEffect.js +40 -0
- package/es/_util/wave/index.d.ts +9 -0
- package/es/_util/wave/index.js +41 -0
- package/es/_util/wave/interface.d.ts +11 -0
- package/es/_util/wave/interface.js +40 -0
- package/es/_util/wave/style.d.ts +7 -0
- package/es/_util/wave/style.js +35 -0
- package/es/_util/wave/useWave.d.ts +4 -0
- package/es/_util/wave/useWave.js +41 -0
- package/es/_util/wave/util.d.ts +2 -0
- package/es/_util/wave/util.js +1 -0
- package/es/_util/zindexContext.d.ts +3 -0
- package/es/_util/zindexContext.js +1 -0
- package/es/affix/index.d.ts +22 -0
- package/es/affix/index.js +40 -0
- package/es/affix/style/index.d.ts +11 -0
- package/es/affix/style/index.js +35 -0
- package/es/affix/utils.d.ts +4 -0
- package/es/affix/utils.js +1 -0
- package/es/alert/Alert.d.ts +42 -0
- package/es/alert/Alert.js +42 -0
- package/es/alert/ErrorBoundary.d.ts +24 -0
- package/es/alert/ErrorBoundary.js +42 -0
- package/es/alert/index.d.ts +8 -0
- package/es/alert/index.js +42 -0
- package/es/alert/style/index.d.ts +26 -0
- package/es/alert/style/index.js +37 -0
- package/es/anchor/Anchor.d.ts +59 -0
- package/es/anchor/Anchor.js +40 -0
- package/es/anchor/AnchorLink.d.ts +14 -0
- package/es/anchor/AnchorLink.js +40 -0
- package/es/anchor/context.d.ts +4 -0
- package/es/anchor/context.js +1 -0
- package/es/anchor/index.d.ts +10 -0
- package/es/anchor/index.js +40 -0
- package/es/anchor/style/index.d.ts +16 -0
- package/es/anchor/style/index.js +35 -0
- package/es/app/context.d.ts +16 -0
- package/es/app/context.js +1 -0
- package/es/app/index.d.ts +16 -0
- package/es/app/index.js +77 -0
- package/es/app/style/index.d.ts +6 -0
- package/es/app/style/index.js +35 -0
- package/es/auto-complete/index.d.ts +28 -0
- package/es/auto-complete/index.js +78 -0
- package/es/avatar/AvatarContext.d.ts +9 -0
- package/es/avatar/AvatarContext.js +1 -0
- package/es/avatar/avatar.d.ts +26 -0
- package/es/avatar/avatar.js +41 -0
- package/es/avatar/group.d.ts +27 -0
- package/es/avatar/group.js +50 -0
- package/es/avatar/index.d.ts +10 -0
- package/es/avatar/index.js +49 -0
- package/es/avatar/style/index.d.ts +51 -0
- package/es/avatar/style/index.js +35 -0
- package/es/badge/Ribbon.d.ts +16 -0
- package/es/badge/Ribbon.js +40 -0
- package/es/badge/ScrollNumber.d.ts +18 -0
- package/es/badge/ScrollNumber.js +40 -0
- package/es/badge/SingleNumber.d.ts +14 -0
- package/es/badge/SingleNumber.js +1 -0
- package/es/badge/index.d.ts +41 -0
- package/es/badge/index.js +40 -0
- package/es/badge/style/index.d.ts +104 -0
- package/es/badge/style/index.js +35 -0
- package/es/badge/style/ribbon.d.ts +2 -0
- package/es/badge/style/ribbon.js +35 -0
- package/es/breadcrumb/Breadcrumb.d.ts +58 -0
- package/es/breadcrumb/Breadcrumb.js +87 -0
- package/es/breadcrumb/BreadcrumbItem.d.ts +31 -0
- package/es/breadcrumb/BreadcrumbItem.js +83 -0
- package/es/breadcrumb/BreadcrumbSeparator.d.ts +4 -0
- package/es/breadcrumb/BreadcrumbSeparator.js +40 -0
- package/es/breadcrumb/index.d.ts +4 -0
- package/es/breadcrumb/index.js +87 -0
- package/es/breadcrumb/style/index.d.ts +41 -0
- package/es/breadcrumb/style/index.js +38 -0
- package/es/breadcrumb/useItemRender.d.ts +8 -0
- package/es/breadcrumb/useItemRender.js +1 -0
- package/es/breadcrumb/useItems.d.ts +6 -0
- package/es/breadcrumb/useItems.js +1 -0
- package/es/button/IconWrapper.d.ts +9 -0
- package/es/button/IconWrapper.js +1 -0
- package/es/button/LoadingIcon.d.ts +11 -0
- package/es/button/LoadingIcon.js +1 -0
- package/es/button/button-group.d.ts +12 -0
- package/es/button/button-group.js +40 -0
- package/es/button/button.d.ts +44 -0
- package/es/button/button.js +48 -0
- package/es/button/buttonHelpers.d.ts +18 -0
- package/es/button/buttonHelpers.js +1 -0
- package/es/button/index.d.ts +6 -0
- package/es/button/index.js +48 -0
- package/es/button/style/compact.d.ts +2 -0
- package/es/button/style/compact.js +47 -0
- package/es/button/style/group.d.ts +4 -0
- package/es/button/style/group.js +1 -0
- package/es/button/style/index.d.ts +4 -0
- package/es/button/style/index.js +47 -0
- package/es/button/style/token.d.ts +233 -0
- package/es/button/style/token.js +47 -0
- package/es/calendar/Header.d.ts +17 -0
- package/es/calendar/Header.js +79 -0
- package/es/calendar/generateCalendar.d.ts +44 -0
- package/es/calendar/generateCalendar.js +118 -0
- package/es/calendar/index.d.ts +10 -0
- package/es/calendar/index.js +118 -0
- package/es/calendar/locale/ar_EG.d.ts +2 -0
- package/es/calendar/locale/ar_EG.js +1 -0
- package/es/calendar/locale/az_AZ.d.ts +2 -0
- package/es/calendar/locale/az_AZ.js +1 -0
- package/es/calendar/locale/bg_BG.d.ts +2 -0
- package/es/calendar/locale/bg_BG.js +1 -0
- package/es/calendar/locale/bn_BD.d.ts +2 -0
- package/es/calendar/locale/bn_BD.js +1 -0
- package/es/calendar/locale/by_BY.d.ts +2 -0
- package/es/calendar/locale/by_BY.js +1 -0
- package/es/calendar/locale/ca_ES.d.ts +2 -0
- package/es/calendar/locale/ca_ES.js +1 -0
- package/es/calendar/locale/cs_CZ.d.ts +2 -0
- package/es/calendar/locale/cs_CZ.js +1 -0
- package/es/calendar/locale/da_DK.d.ts +2 -0
- package/es/calendar/locale/da_DK.js +1 -0
- package/es/calendar/locale/de_DE.d.ts +2 -0
- package/es/calendar/locale/de_DE.js +1 -0
- package/es/calendar/locale/el_GR.d.ts +2 -0
- package/es/calendar/locale/el_GR.js +1 -0
- package/es/calendar/locale/en_GB.d.ts +2 -0
- package/es/calendar/locale/en_GB.js +1 -0
- package/es/calendar/locale/en_US.d.ts +2 -0
- package/es/calendar/locale/en_US.js +1 -0
- package/es/calendar/locale/es_ES.d.ts +2 -0
- package/es/calendar/locale/es_ES.js +1 -0
- package/es/calendar/locale/et_EE.d.ts +2 -0
- package/es/calendar/locale/et_EE.js +1 -0
- package/es/calendar/locale/eu_ES.d.ts +2 -0
- package/es/calendar/locale/eu_ES.js +1 -0
- package/es/calendar/locale/fa_IR.d.ts +2 -0
- package/es/calendar/locale/fa_IR.js +1 -0
- package/es/calendar/locale/fi_FI.d.ts +2 -0
- package/es/calendar/locale/fi_FI.js +1 -0
- package/es/calendar/locale/fr_BE.d.ts +2 -0
- package/es/calendar/locale/fr_BE.js +1 -0
- package/es/calendar/locale/fr_CA.d.ts +2 -0
- package/es/calendar/locale/fr_CA.js +1 -0
- package/es/calendar/locale/fr_FR.d.ts +2 -0
- package/es/calendar/locale/fr_FR.js +1 -0
- package/es/calendar/locale/ga_IE.d.ts +2 -0
- package/es/calendar/locale/ga_IE.js +1 -0
- package/es/calendar/locale/gl_ES.d.ts +2 -0
- package/es/calendar/locale/gl_ES.js +1 -0
- package/es/calendar/locale/he_IL.d.ts +2 -0
- package/es/calendar/locale/he_IL.js +1 -0
- package/es/calendar/locale/hi_IN.d.ts +2 -0
- package/es/calendar/locale/hi_IN.js +1 -0
- package/es/calendar/locale/hr_HR.d.ts +2 -0
- package/es/calendar/locale/hr_HR.js +1 -0
- package/es/calendar/locale/hu_HU.d.ts +2 -0
- package/es/calendar/locale/hu_HU.js +1 -0
- package/es/calendar/locale/id_ID.d.ts +2 -0
- package/es/calendar/locale/id_ID.js +1 -0
- package/es/calendar/locale/is_IS.d.ts +2 -0
- package/es/calendar/locale/is_IS.js +1 -0
- package/es/calendar/locale/it_IT.d.ts +2 -0
- package/es/calendar/locale/it_IT.js +1 -0
- package/es/calendar/locale/ja_JP.d.ts +2 -0
- package/es/calendar/locale/ja_JP.js +1 -0
- package/es/calendar/locale/ka_GE.d.ts +2 -0
- package/es/calendar/locale/ka_GE.js +1 -0
- package/es/calendar/locale/kk_KZ.d.ts +2 -0
- package/es/calendar/locale/kk_KZ.js +1 -0
- package/es/calendar/locale/km_KH.d.ts +2 -0
- package/es/calendar/locale/km_KH.js +1 -0
- package/es/calendar/locale/kmr_IQ.d.ts +2 -0
- package/es/calendar/locale/kmr_IQ.js +1 -0
- package/es/calendar/locale/kn_IN.d.ts +2 -0
- package/es/calendar/locale/kn_IN.js +1 -0
- package/es/calendar/locale/ko_KR.d.ts +2 -0
- package/es/calendar/locale/ko_KR.js +1 -0
- package/es/calendar/locale/lt_LT.d.ts +2 -0
- package/es/calendar/locale/lt_LT.js +1 -0
- package/es/calendar/locale/lv_LV.d.ts +2 -0
- package/es/calendar/locale/lv_LV.js +1 -0
- package/es/calendar/locale/mk_MK.d.ts +2 -0
- package/es/calendar/locale/mk_MK.js +1 -0
- package/es/calendar/locale/ml_IN.d.ts +2 -0
- package/es/calendar/locale/ml_IN.js +1 -0
- package/es/calendar/locale/mn_MN.d.ts +2 -0
- package/es/calendar/locale/mn_MN.js +1 -0
- package/es/calendar/locale/ms_MY.d.ts +2 -0
- package/es/calendar/locale/ms_MY.js +1 -0
- package/es/calendar/locale/my_MM.d.ts +2 -0
- package/es/calendar/locale/my_MM.js +1 -0
- package/es/calendar/locale/nb_NO.d.ts +2 -0
- package/es/calendar/locale/nb_NO.js +1 -0
- package/es/calendar/locale/nl_BE.d.ts +2 -0
- package/es/calendar/locale/nl_BE.js +1 -0
- package/es/calendar/locale/nl_NL.d.ts +2 -0
- package/es/calendar/locale/nl_NL.js +1 -0
- package/es/calendar/locale/pl_PL.d.ts +2 -0
- package/es/calendar/locale/pl_PL.js +1 -0
- package/es/calendar/locale/pt_BR.d.ts +2 -0
- package/es/calendar/locale/pt_BR.js +1 -0
- package/es/calendar/locale/pt_PT.d.ts +2 -0
- package/es/calendar/locale/pt_PT.js +1 -0
- package/es/calendar/locale/ro_RO.d.ts +2 -0
- package/es/calendar/locale/ro_RO.js +1 -0
- package/es/calendar/locale/ru_RU.d.ts +2 -0
- package/es/calendar/locale/ru_RU.js +1 -0
- package/es/calendar/locale/si_LK.d.ts +2 -0
- package/es/calendar/locale/si_LK.js +1 -0
- package/es/calendar/locale/sk_SK.d.ts +2 -0
- package/es/calendar/locale/sk_SK.js +1 -0
- package/es/calendar/locale/sl_SI.d.ts +2 -0
- package/es/calendar/locale/sl_SI.js +1 -0
- package/es/calendar/locale/sr_RS.d.ts +2 -0
- package/es/calendar/locale/sr_RS.js +1 -0
- package/es/calendar/locale/sv_SE.d.ts +2 -0
- package/es/calendar/locale/sv_SE.js +1 -0
- package/es/calendar/locale/ta_IN.d.ts +2 -0
- package/es/calendar/locale/ta_IN.js +1 -0
- package/es/calendar/locale/th_TH.d.ts +2 -0
- package/es/calendar/locale/th_TH.js +1 -0
- package/es/calendar/locale/tk_TK.d.ts +2 -0
- package/es/calendar/locale/tk_TK.js +1 -0
- package/es/calendar/locale/tr_TR.d.ts +2 -0
- package/es/calendar/locale/tr_TR.js +1 -0
- package/es/calendar/locale/uk_UA.d.ts +2 -0
- package/es/calendar/locale/uk_UA.js +1 -0
- package/es/calendar/locale/ur_PK.d.ts +2 -0
- package/es/calendar/locale/ur_PK.js +1 -0
- package/es/calendar/locale/uz_UZ.d.ts +2 -0
- package/es/calendar/locale/uz_UZ.js +1 -0
- package/es/calendar/locale/vi_VN.d.ts +2 -0
- package/es/calendar/locale/vi_VN.js +1 -0
- package/es/calendar/locale/zh_CN.d.ts +2 -0
- package/es/calendar/locale/zh_CN.js +1 -0
- package/es/calendar/locale/zh_TW.d.ts +2 -0
- package/es/calendar/locale/zh_TW.js +1 -0
- package/es/calendar/style/index.d.ts +61 -0
- package/es/calendar/style/index.js +86 -0
- package/es/card/Card.d.ts +56 -0
- package/es/card/Card.js +67 -0
- package/es/card/Grid.d.ts +9 -0
- package/es/card/Grid.js +40 -0
- package/es/card/Meta.d.ts +11 -0
- package/es/card/Meta.js +40 -0
- package/es/card/index.d.ts +13 -0
- package/es/card/index.js +67 -0
- package/es/card/style/index.d.ts +51 -0
- package/es/card/style/index.js +44 -0
- package/es/carousel/index.d.ts +27 -0
- package/es/carousel/index.js +40 -0
- package/es/carousel/style/index.d.ts +43 -0
- package/es/carousel/style/index.js +35 -0
- package/es/cascader/Panel.d.ts +12 -0
- package/es/cascader/Panel.js +49 -0
- package/es/cascader/hooks/useBase.d.ts +8 -0
- package/es/cascader/hooks/useBase.js +40 -0
- package/es/cascader/hooks/useCheckable.d.ts +2 -0
- package/es/cascader/hooks/useCheckable.js +1 -0
- package/es/cascader/hooks/useColumnIcons.d.ts +3 -0
- package/es/cascader/hooks/useColumnIcons.js +1 -0
- package/es/cascader/index.d.ts +55 -0
- package/es/cascader/index.js +87 -0
- package/es/cascader/style/columns.d.ts +4 -0
- package/es/cascader/style/columns.js +44 -0
- package/es/cascader/style/index.d.ts +51 -0
- package/es/cascader/style/index.js +44 -0
- package/es/cascader/style/panel.d.ts +2 -0
- package/es/cascader/style/panel.js +44 -0
- package/es/checkbox/Checkbox.d.ts +43 -0
- package/es/checkbox/Checkbox.js +46 -0
- package/es/checkbox/Group.d.ts +32 -0
- package/es/checkbox/Group.js +46 -0
- package/es/checkbox/GroupContext.d.ts +12 -0
- package/es/checkbox/GroupContext.js +1 -0
- package/es/checkbox/index.d.ts +11 -0
- package/es/checkbox/index.js +46 -0
- package/es/checkbox/style/index.d.ts +23 -0
- package/es/checkbox/style/index.js +41 -0
- package/es/checkbox/useBubbleLock.d.ts +7 -0
- package/es/checkbox/useBubbleLock.js +1 -0
- package/es/col/index.d.ts +4 -0
- package/es/col/index.js +40 -0
- package/es/col/style/index.d.ts +2 -0
- package/es/col/style/index.js +1 -0
- package/es/collapse/Collapse.d.ts +45 -0
- package/es/collapse/Collapse.js +47 -0
- package/es/collapse/CollapsePanel.d.ts +19 -0
- package/es/collapse/CollapsePanel.js +40 -0
- package/es/collapse/index.d.ts +4 -0
- package/es/collapse/index.js +47 -0
- package/es/collapse/style/index.d.ts +46 -0
- package/es/collapse/style/index.js +42 -0
- package/es/color-picker/ColorPicker.d.ts +8 -0
- package/es/color-picker/ColorPicker.js +130 -0
- package/es/color-picker/ColorPickerPanel.d.ts +9 -0
- package/es/color-picker/ColorPickerPanel.js +130 -0
- package/es/color-picker/color.d.ts +34 -0
- package/es/color-picker/color.js +1 -0
- package/es/color-picker/components/ColorAlphaInput.d.ts +9 -0
- package/es/color-picker/components/ColorAlphaInput.js +70 -0
- package/es/color-picker/components/ColorClear.d.ts +9 -0
- package/es/color-picker/components/ColorClear.js +1 -0
- package/es/color-picker/components/ColorHexInput.d.ts +9 -0
- package/es/color-picker/components/ColorHexInput.js +66 -0
- package/es/color-picker/components/ColorHsbInput.d.ts +9 -0
- package/es/color-picker/components/ColorHsbInput.js +70 -0
- package/es/color-picker/components/ColorInput.d.ts +14 -0
- package/es/color-picker/components/ColorInput.js +116 -0
- package/es/color-picker/components/ColorPresets.d.ts +12 -0
- package/es/color-picker/components/ColorPresets.js +47 -0
- package/es/color-picker/components/ColorRgbInput.d.ts +9 -0
- package/es/color-picker/components/ColorRgbInput.js +70 -0
- package/es/color-picker/components/ColorSlider.d.ts +20 -0
- package/es/color-picker/components/ColorSlider.js +61 -0
- package/es/color-picker/components/ColorSteppers.d.ts +15 -0
- package/es/color-picker/components/ColorSteppers.js +70 -0
- package/es/color-picker/components/ColorTrigger.d.ts +20 -0
- package/es/color-picker/components/ColorTrigger.js +1 -0
- package/es/color-picker/components/PanelPicker/GradientColorBar.d.ts +8 -0
- package/es/color-picker/components/PanelPicker/GradientColorBar.js +61 -0
- package/es/color-picker/components/PanelPicker/index.d.ts +3 -0
- package/es/color-picker/components/PanelPicker/index.js +130 -0
- package/es/color-picker/components/PanelPresets.d.ts +3 -0
- package/es/color-picker/components/PanelPresets.js +47 -0
- package/es/color-picker/context.d.ts +38 -0
- package/es/color-picker/context.js +1 -0
- package/es/color-picker/hooks/useModeColor.d.ts +17 -0
- package/es/color-picker/hooks/useModeColor.js +1 -0
- package/es/color-picker/index.d.ts +4 -0
- package/es/color-picker/index.js +130 -0
- package/es/color-picker/interface.d.ts +73 -0
- package/es/color-picker/interface.js +1 -0
- package/es/color-picker/style/color-block.d.ts +8 -0
- package/es/color-picker/style/color-block.js +1 -0
- package/es/color-picker/style/index.d.ts +62 -0
- package/es/color-picker/style/index.js +35 -0
- package/es/color-picker/style/input.d.ts +5 -0
- package/es/color-picker/style/input.js +1 -0
- package/es/color-picker/style/picker.d.ts +5 -0
- package/es/color-picker/style/picker.js +1 -0
- package/es/color-picker/style/presets.d.ts +5 -0
- package/es/color-picker/style/presets.js +1 -0
- package/es/color-picker/style/slider.d.ts +5 -0
- package/es/color-picker/style/slider.js +1 -0
- package/es/color-picker/util.d.ts +15 -0
- package/es/color-picker/util.js +1 -0
- package/es/config-provider/DisabledContext.d.ts +8 -0
- package/es/config-provider/DisabledContext.js +1 -0
- package/es/config-provider/MotionWrapper.d.ts +5 -0
- package/es/config-provider/MotionWrapper.js +35 -0
- package/es/config-provider/PropWarning.d.ts +6 -0
- package/es/config-provider/PropWarning.js +1 -0
- package/es/config-provider/SizeContext.d.ts +9 -0
- package/es/config-provider/SizeContext.js +1 -0
- package/es/config-provider/UnstableContext.d.ts +10 -0
- package/es/config-provider/UnstableContext.js +2 -0
- package/es/config-provider/context.d.ts +248 -0
- package/es/config-provider/context.js +1 -0
- package/es/config-provider/cssVariables.d.ts +3 -0
- package/es/config-provider/cssVariables.js +6 -0
- package/es/config-provider/defaultRenderEmpty.d.ts +8 -0
- package/es/config-provider/defaultRenderEmpty.js +41 -0
- package/es/config-provider/hooks/useCSSVarCls.d.ts +7 -0
- package/es/config-provider/hooks/useCSSVarCls.js +35 -0
- package/es/config-provider/hooks/useConfig.d.ts +5 -0
- package/es/config-provider/hooks/useConfig.js +1 -0
- package/es/config-provider/hooks/useSize.d.ts +3 -0
- package/es/config-provider/hooks/useSize.js +1 -0
- package/es/config-provider/hooks/useTheme.d.ts +4 -0
- package/es/config-provider/hooks/useTheme.js +35 -0
- package/es/config-provider/hooks/useThemeKey.d.ts +3 -0
- package/es/config-provider/hooks/useThemeKey.js +1 -0
- package/es/config-provider/index.d.ts +139 -0
- package/es/config-provider/index.js +40 -0
- package/es/config-provider/style/index.d.ts +1 -0
- package/es/config-provider/style/index.js +35 -0
- package/es/copy/index.d.ts +13 -0
- package/es/copy/index.js +1 -0
- package/es/date-picker/PickerButton.d.ts +4 -0
- package/es/date-picker/PickerButton.js +48 -0
- package/es/date-picker/generatePicker/constant.d.ts +5 -0
- package/es/date-picker/generatePicker/constant.js +1 -0
- package/es/date-picker/generatePicker/generateRangePicker.d.ts +17 -0
- package/es/date-picker/generatePicker/generateRangePicker.js +99 -0
- package/es/date-picker/generatePicker/generateSinglePicker.d.ts +25 -0
- package/es/date-picker/generatePicker/generateSinglePicker.js +99 -0
- package/es/date-picker/generatePicker/index.d.ts +36 -0
- package/es/date-picker/generatePicker/index.js +99 -0
- package/es/date-picker/generatePicker/interface.d.ts +72 -0
- package/es/date-picker/generatePicker/interface.js +0 -0
- package/es/date-picker/generatePicker/useComponents.d.ts +13 -0
- package/es/date-picker/generatePicker/useComponents.js +48 -0
- package/es/date-picker/index.d.ts +48 -0
- package/es/date-picker/index.js +99 -0
- package/es/date-picker/locale/ar_EG.d.ts +3 -0
- package/es/date-picker/locale/ar_EG.js +1 -0
- package/es/date-picker/locale/az_AZ.d.ts +3 -0
- package/es/date-picker/locale/az_AZ.js +1 -0
- package/es/date-picker/locale/bg_BG.d.ts +3 -0
- package/es/date-picker/locale/bg_BG.js +1 -0
- package/es/date-picker/locale/bn_BD.d.ts +3 -0
- package/es/date-picker/locale/bn_BD.js +1 -0
- package/es/date-picker/locale/by_BY.d.ts +3 -0
- package/es/date-picker/locale/by_BY.js +1 -0
- package/es/date-picker/locale/ca_ES.d.ts +3 -0
- package/es/date-picker/locale/ca_ES.js +1 -0
- package/es/date-picker/locale/cs_CZ.d.ts +3 -0
- package/es/date-picker/locale/cs_CZ.js +1 -0
- package/es/date-picker/locale/da_DK.d.ts +3 -0
- package/es/date-picker/locale/da_DK.js +1 -0
- package/es/date-picker/locale/de_DE.d.ts +3 -0
- package/es/date-picker/locale/de_DE.js +1 -0
- package/es/date-picker/locale/el_GR.d.ts +3 -0
- package/es/date-picker/locale/el_GR.js +1 -0
- package/es/date-picker/locale/en_GB.d.ts +3 -0
- package/es/date-picker/locale/en_GB.js +1 -0
- package/es/date-picker/locale/en_US.d.ts +3 -0
- package/es/date-picker/locale/en_US.js +1 -0
- package/es/date-picker/locale/es_ES.d.ts +3 -0
- package/es/date-picker/locale/es_ES.js +1 -0
- package/es/date-picker/locale/et_EE.d.ts +3 -0
- package/es/date-picker/locale/et_EE.js +1 -0
- package/es/date-picker/locale/eu_ES.d.ts +3 -0
- package/es/date-picker/locale/eu_ES.js +1 -0
- package/es/date-picker/locale/fa_IR.d.ts +3 -0
- package/es/date-picker/locale/fa_IR.js +1 -0
- package/es/date-picker/locale/fi_FI.d.ts +3 -0
- package/es/date-picker/locale/fi_FI.js +1 -0
- package/es/date-picker/locale/fr_BE.d.ts +3 -0
- package/es/date-picker/locale/fr_BE.js +1 -0
- package/es/date-picker/locale/fr_CA.d.ts +3 -0
- package/es/date-picker/locale/fr_CA.js +1 -0
- package/es/date-picker/locale/fr_FR.d.ts +3 -0
- package/es/date-picker/locale/fr_FR.js +1 -0
- package/es/date-picker/locale/ga_IE.d.ts +3 -0
- package/es/date-picker/locale/ga_IE.js +1 -0
- package/es/date-picker/locale/gl_ES.d.ts +3 -0
- package/es/date-picker/locale/gl_ES.js +1 -0
- package/es/date-picker/locale/he_IL.d.ts +3 -0
- package/es/date-picker/locale/he_IL.js +1 -0
- package/es/date-picker/locale/hi_IN.d.ts +3 -0
- package/es/date-picker/locale/hi_IN.js +1 -0
- package/es/date-picker/locale/hr_HR.d.ts +3 -0
- package/es/date-picker/locale/hr_HR.js +1 -0
- package/es/date-picker/locale/hu_HU.d.ts +3 -0
- package/es/date-picker/locale/hu_HU.js +1 -0
- package/es/date-picker/locale/id_ID.d.ts +3 -0
- package/es/date-picker/locale/id_ID.js +1 -0
- package/es/date-picker/locale/is_IS.d.ts +3 -0
- package/es/date-picker/locale/is_IS.js +1 -0
- package/es/date-picker/locale/it_IT.d.ts +3 -0
- package/es/date-picker/locale/it_IT.js +1 -0
- package/es/date-picker/locale/ja_JP.d.ts +3 -0
- package/es/date-picker/locale/ja_JP.js +1 -0
- package/es/date-picker/locale/ka_GE.d.ts +3 -0
- package/es/date-picker/locale/ka_GE.js +1 -0
- package/es/date-picker/locale/kk_KZ.d.ts +3 -0
- package/es/date-picker/locale/kk_KZ.js +1 -0
- package/es/date-picker/locale/km_KH.d.ts +3 -0
- package/es/date-picker/locale/km_KH.js +1 -0
- package/es/date-picker/locale/kmr_IQ.d.ts +3 -0
- package/es/date-picker/locale/kmr_IQ.js +1 -0
- package/es/date-picker/locale/kn_IN.d.ts +3 -0
- package/es/date-picker/locale/kn_IN.js +1 -0
- package/es/date-picker/locale/ko_KR.d.ts +3 -0
- package/es/date-picker/locale/ko_KR.js +1 -0
- package/es/date-picker/locale/lt_LT.d.ts +3 -0
- package/es/date-picker/locale/lt_LT.js +1 -0
- package/es/date-picker/locale/lv_LV.d.ts +3 -0
- package/es/date-picker/locale/lv_LV.js +1 -0
- package/es/date-picker/locale/mk_MK.d.ts +3 -0
- package/es/date-picker/locale/mk_MK.js +1 -0
- package/es/date-picker/locale/ml_IN.d.ts +3 -0
- package/es/date-picker/locale/ml_IN.js +1 -0
- package/es/date-picker/locale/mn_MN.d.ts +3 -0
- package/es/date-picker/locale/mn_MN.js +1 -0
- package/es/date-picker/locale/ms_MY.d.ts +3 -0
- package/es/date-picker/locale/ms_MY.js +1 -0
- package/es/date-picker/locale/my_MM.d.ts +3 -0
- package/es/date-picker/locale/my_MM.js +1 -0
- package/es/date-picker/locale/nb_NO.d.ts +3 -0
- package/es/date-picker/locale/nb_NO.js +1 -0
- package/es/date-picker/locale/nl_BE.d.ts +3 -0
- package/es/date-picker/locale/nl_BE.js +1 -0
- package/es/date-picker/locale/nl_NL.d.ts +3 -0
- package/es/date-picker/locale/nl_NL.js +1 -0
- package/es/date-picker/locale/pl_PL.d.ts +3 -0
- package/es/date-picker/locale/pl_PL.js +1 -0
- package/es/date-picker/locale/pt_BR.d.ts +3 -0
- package/es/date-picker/locale/pt_BR.js +1 -0
- package/es/date-picker/locale/pt_PT.d.ts +3 -0
- package/es/date-picker/locale/pt_PT.js +1 -0
- package/es/date-picker/locale/ro_RO.d.ts +3 -0
- package/es/date-picker/locale/ro_RO.js +1 -0
- package/es/date-picker/locale/ru_RU.d.ts +4 -0
- package/es/date-picker/locale/ru_RU.js +1 -0
- package/es/date-picker/locale/si_LK.d.ts +3 -0
- package/es/date-picker/locale/si_LK.js +1 -0
- package/es/date-picker/locale/sk_SK.d.ts +3 -0
- package/es/date-picker/locale/sk_SK.js +1 -0
- package/es/date-picker/locale/sl_SI.d.ts +3 -0
- package/es/date-picker/locale/sl_SI.js +1 -0
- package/es/date-picker/locale/sr_RS.d.ts +3 -0
- package/es/date-picker/locale/sr_RS.js +1 -0
- package/es/date-picker/locale/sv_SE.d.ts +3 -0
- package/es/date-picker/locale/sv_SE.js +1 -0
- package/es/date-picker/locale/ta_IN.d.ts +3 -0
- package/es/date-picker/locale/ta_IN.js +1 -0
- package/es/date-picker/locale/th_TH.d.ts +3 -0
- package/es/date-picker/locale/th_TH.js +1 -0
- package/es/date-picker/locale/tk_TK.d.ts +3 -0
- package/es/date-picker/locale/tk_TK.js +1 -0
- package/es/date-picker/locale/tr_TR.d.ts +3 -0
- package/es/date-picker/locale/tr_TR.js +1 -0
- package/es/date-picker/locale/uk_UA.d.ts +3 -0
- package/es/date-picker/locale/uk_UA.js +1 -0
- package/es/date-picker/locale/ur_PK.d.ts +3 -0
- package/es/date-picker/locale/ur_PK.js +1 -0
- package/es/date-picker/locale/uz_UZ.d.ts +3 -0
- package/es/date-picker/locale/uz_UZ.js +1 -0
- package/es/date-picker/locale/vi_VN.d.ts +3 -0
- package/es/date-picker/locale/vi_VN.js +1 -0
- package/es/date-picker/locale/zh_CN.d.ts +3 -0
- package/es/date-picker/locale/zh_CN.js +1 -0
- package/es/date-picker/locale/zh_TW.d.ts +3 -0
- package/es/date-picker/locale/zh_TW.js +1 -0
- package/es/date-picker/style/index.d.ts +7 -0
- package/es/date-picker/style/index.js +86 -0
- package/es/date-picker/style/multiple.d.ts +4 -0
- package/es/date-picker/style/multiple.js +35 -0
- package/es/date-picker/style/panel.d.ts +6 -0
- package/es/date-picker/style/panel.js +12 -0
- package/es/date-picker/style/token.d.ts +103 -0
- package/es/date-picker/style/token.js +35 -0
- package/es/date-picker/style/variants.d.ts +4 -0
- package/es/date-picker/style/variants.js +35 -0
- package/es/date-picker/util.d.ts +8 -0
- package/es/date-picker/util.js +1 -0
- package/es/descriptions/Cell.d.ts +17 -0
- package/es/descriptions/Cell.js +1 -0
- package/es/descriptions/DescriptionsContext.d.ts +7 -0
- package/es/descriptions/DescriptionsContext.js +1 -0
- package/es/descriptions/Item.d.ts +13 -0
- package/es/descriptions/Item.js +1 -0
- package/es/descriptions/Row.d.ts +13 -0
- package/es/descriptions/Row.js +1 -0
- package/es/descriptions/constant.d.ts +3 -0
- package/es/descriptions/constant.js +1 -0
- package/es/descriptions/hooks/useItems.d.ts +4 -0
- package/es/descriptions/hooks/useItems.js +35 -0
- package/es/descriptions/hooks/useRow.d.ts +3 -0
- package/es/descriptions/hooks/useRow.js +1 -0
- package/es/descriptions/index.d.ts +42 -0
- package/es/descriptions/index.js +40 -0
- package/es/descriptions/style/index.d.ts +52 -0
- package/es/descriptions/style/index.js +35 -0
- package/es/divider/index.d.ts +20 -0
- package/es/divider/index.js +40 -0
- package/es/divider/style/index.d.ts +23 -0
- package/es/divider/style/index.js +35 -0
- package/es/drag/SortableBoard.d.ts +4 -0
- package/es/drag/SortableBoard.js +1 -0
- package/es/drag/SortableBoardProvider.d.ts +14 -0
- package/es/drag/SortableBoardProvider.js +1 -0
- package/es/drag/SortableList.d.ts +8 -0
- package/es/drag/SortableList.js +1 -0
- package/es/drag/SortableZone.d.ts +7 -0
- package/es/drag/SortableZone.js +1 -0
- package/es/drag/SortableZoneShared.d.ts +36 -0
- package/es/drag/SortableZoneShared.js +1 -0
- package/es/drag/index.d.ts +12 -0
- package/es/drag/index.js +1 -0
- package/es/drag/type.d.ts +362 -0
- package/es/drag/type.js +0 -0
- package/es/drawer/DrawerPanel.d.ts +49 -0
- package/es/drawer/DrawerPanel.js +55 -0
- package/es/drawer/index.d.ts +34 -0
- package/es/drawer/index.js +55 -0
- package/es/drawer/style/index.d.ts +23 -0
- package/es/drawer/style/index.js +35 -0
- package/es/drawer/style/motion.d.ts +4 -0
- package/es/drawer/style/motion.js +1 -0
- package/es/dropdown/dropdown-button.d.ts +21 -0
- package/es/dropdown/dropdown-button.js +88 -0
- package/es/dropdown/dropdown.d.ts +50 -0
- package/es/dropdown/dropdown.js +83 -0
- package/es/dropdown/index.d.ts +8 -0
- package/es/dropdown/index.js +89 -0
- package/es/dropdown/style/index.d.ts +40 -0
- package/es/dropdown/style/index.js +64 -0
- package/es/dropdown/style/status.d.ts +4 -0
- package/es/dropdown/style/status.js +1 -0
- package/es/empty/empty.d.ts +3 -0
- package/es/empty/empty.js +36 -0
- package/es/empty/index.d.ts +21 -0
- package/es/empty/index.js +41 -0
- package/es/empty/simple.d.ts +3 -0
- package/es/empty/simple.js +36 -0
- package/es/empty/style/index.d.ts +5 -0
- package/es/empty/style/index.js +35 -0
- package/es/flex/index.d.ts +4 -0
- package/es/flex/index.js +40 -0
- package/es/flex/interface.d.ts +15 -0
- package/es/flex/interface.js +0 -0
- package/es/flex/style/index.d.ts +30 -0
- package/es/flex/style/index.js +35 -0
- package/es/flex/utils.d.ts +6 -0
- package/es/flex/utils.js +1 -0
- package/es/form/ErrorList.d.ts +13 -0
- package/es/form/ErrorList.js +50 -0
- package/es/form/Form.d.ts +43 -0
- package/es/form/Form.js +50 -0
- package/es/form/FormItem/ItemHolder.d.ts +18 -0
- package/es/form/FormItem/ItemHolder.js +59 -0
- package/es/form/FormItem/StatusProvider.d.ts +16 -0
- package/es/form/FormItem/StatusProvider.js +1 -0
- package/es/form/FormItem/index.d.ts +46 -0
- package/es/form/FormItem/index.js +60 -0
- package/es/form/FormItemInput.d.ts +22 -0
- package/es/form/FormItemInput.js +50 -0
- package/es/form/FormItemLabel.d.ts +22 -0
- package/es/form/FormItemLabel.js +49 -0
- package/es/form/FormList.d.ts +25 -0
- package/es/form/FormList.js +40 -0
- package/es/form/context.d.ts +52 -0
- package/es/form/context.js +1 -0
- package/es/form/hooks/useChildren.d.ts +2 -0
- package/es/form/hooks/useChildren.js +1 -0
- package/es/form/hooks/useDebounce.d.ts +1 -0
- package/es/form/hooks/useDebounce.js +1 -0
- package/es/form/hooks/useForm.d.ts +8 -0
- package/es/form/hooks/useForm.js +1 -0
- package/es/form/hooks/useFormInstance.d.ts +2 -0
- package/es/form/hooks/useFormInstance.js +1 -0
- package/es/form/hooks/useFormItemStatus.d.ts +9 -0
- package/es/form/hooks/useFormItemStatus.js +2 -0
- package/es/form/hooks/useFormWarning.d.ts +2 -0
- package/es/form/hooks/useFormWarning.js +1 -0
- package/es/form/hooks/useFrameState.d.ts +3 -0
- package/es/form/hooks/useFrameState.js +1 -0
- package/es/form/hooks/useItemRef.d.ts +3 -0
- package/es/form/hooks/useItemRef.js +1 -0
- package/es/form/hooks/useVariants.d.ts +7 -0
- package/es/form/hooks/useVariants.js +40 -0
- package/es/form/index.d.ts +26 -0
- package/es/form/index.js +60 -0
- package/es/form/interface.d.ts +3 -0
- package/es/form/interface.js +0 -0
- package/es/form/style/explain.d.ts +4 -0
- package/es/form/style/explain.js +3 -0
- package/es/form/style/fallbackCmp.d.ts +6 -0
- package/es/form/style/fallbackCmp.js +45 -0
- package/es/form/style/index.d.ts +74 -0
- package/es/form/style/index.js +45 -0
- package/es/form/util.d.ts +9 -0
- package/es/form/util.js +1 -0
- package/es/form/validateMessagesContext.d.ts +3 -0
- package/es/form/validateMessagesContext.js +1 -0
- package/es/form-area/ValidateTooltip.d.ts +12 -0
- package/es/form-area/ValidateTooltip.js +353 -0
- package/es/form-area/index.d.ts +4 -0
- package/es/form-area/index.js +353 -0
- package/es/form-area/renderItemMap.d.ts +45 -0
- package/es/form-area/renderItemMap.js +353 -0
- package/es/form-area/type.d.ts +158 -0
- package/es/form-area/type.js +0 -0
- package/es/grid/RowContext.d.ts +6 -0
- package/es/grid/RowContext.js +1 -0
- package/es/grid/col.d.ts +29 -0
- package/es/grid/col.js +40 -0
- package/es/grid/hooks/useBreakpoint.d.ts +3 -0
- package/es/grid/hooks/useBreakpoint.js +35 -0
- package/es/grid/index.d.ts +10 -0
- package/es/grid/index.js +40 -0
- package/es/grid/row.d.ts +20 -0
- package/es/grid/row.js +40 -0
- package/es/grid/style/index.d.ts +7 -0
- package/es/grid/style/index.js +35 -0
- package/es/hooks/index.d.ts +5 -0
- package/es/hooks/index.js +353 -0
- package/es/hooks/useDrawer.d.ts +10 -0
- package/es/hooks/useDrawer.js +1 -0
- package/es/hooks/useForm.d.ts +33 -0
- package/es/hooks/useForm.js +353 -0
- package/es/hooks/useModal.d.ts +10 -0
- package/es/hooks/useModal.js +1 -0
- package/es/hooks/useParsedHash.d.ts +9 -0
- package/es/hooks/useParsedHash.js +1 -0
- package/es/hooks/useUrlState.d.ts +9 -0
- package/es/hooks/useUrlState.js +1 -0
- package/es/icon/index.d.ts +2 -0
- package/es/icon/index.js +1 -0
- package/es/image/PreviewGroup.d.ts +15 -0
- package/es/image/PreviewGroup.js +54 -0
- package/es/image/index.d.ts +9 -0
- package/es/image/index.js +54 -0
- package/es/image/style/index.d.ts +59 -0
- package/es/image/style/index.js +49 -0
- package/es/index.d.ts +150 -0
- package/es/index.js +353 -0
- package/es/input/Group.d.ts +15 -0
- package/es/input/Group.js +58 -0
- package/es/input/Input.d.ts +25 -0
- package/es/input/Input.js +59 -0
- package/es/input/OTP/OTPInput.d.ts +11 -0
- package/es/input/OTP/OTPInput.js +59 -0
- package/es/input/OTP/index.d.ts +29 -0
- package/es/input/OTP/index.js +59 -0
- package/es/input/Password.d.ts +14 -0
- package/es/input/Password.js +59 -0
- package/es/input/Search.d.ts +12 -0
- package/es/input/Search.js +66 -0
- package/es/input/TextArea.d.ts +25 -0
- package/es/input/TextArea.js +59 -0
- package/es/input/hooks/useRemovePasswordTimeout.d.ts +2 -0
- package/es/input/hooks/useRemovePasswordTimeout.js +1 -0
- package/es/input/index.d.ts +20 -0
- package/es/input/index.js +66 -0
- package/es/input/style/index.d.ts +17 -0
- package/es/input/style/index.js +53 -0
- package/es/input/style/otp.d.ts +2 -0
- package/es/input/style/otp.js +35 -0
- package/es/input/style/token.d.ts +97 -0
- package/es/input/style/token.js +35 -0
- package/es/input/style/variants.d.ts +15 -0
- package/es/input/style/variants.js +35 -0
- package/es/input/utils.d.ts +8 -0
- package/es/input/utils.js +1 -0
- package/es/input-number/index.d.ts +34 -0
- package/es/input-number/index.js +70 -0
- package/es/input-number/style/index.d.ts +18 -0
- package/es/input-number/style/index.js +65 -0
- package/es/input-number/style/token.d.ts +52 -0
- package/es/input-number/style/token.js +35 -0
- package/es/layout/Sider.d.ts +28 -0
- package/es/layout/Sider.js +40 -0
- package/es/layout/context.d.ts +8 -0
- package/es/layout/context.js +1 -0
- package/es/layout/hooks/useHasSider.d.ts +2 -0
- package/es/layout/hooks/useHasSider.js +40 -0
- package/es/layout/index.d.ts +15 -0
- package/es/layout/index.js +40 -0
- package/es/layout/layout.d.ts +18 -0
- package/es/layout/layout.js +40 -0
- package/es/layout/style/index.d.ts +96 -0
- package/es/layout/style/index.js +35 -0
- package/es/layout/style/sider.d.ts +2 -0
- package/es/layout/style/sider.js +35 -0
- package/es/list/Item.d.ts +35 -0
- package/es/list/Item.js +40 -0
- package/es/list/context.d.ts +8 -0
- package/es/list/context.js +1 -0
- package/es/list/index.d.ts +56 -0
- package/es/list/index.js +111 -0
- package/es/list/style/index.d.ts +62 -0
- package/es/list/style/index.js +35 -0
- package/es/locale/ar_EG.d.ts +3 -0
- package/es/locale/ar_EG.js +1 -0
- package/es/locale/az_AZ.d.ts +3 -0
- package/es/locale/az_AZ.js +1 -0
- package/es/locale/bg_BG.d.ts +3 -0
- package/es/locale/bg_BG.js +1 -0
- package/es/locale/bn_BD.d.ts +3 -0
- package/es/locale/bn_BD.js +1 -0
- package/es/locale/by_BY.d.ts +3 -0
- package/es/locale/by_BY.js +1 -0
- package/es/locale/ca_ES.d.ts +3 -0
- package/es/locale/ca_ES.js +1 -0
- package/es/locale/context.d.ts +6 -0
- package/es/locale/context.js +1 -0
- package/es/locale/cs_CZ.d.ts +3 -0
- package/es/locale/cs_CZ.js +1 -0
- package/es/locale/da_DK.d.ts +3 -0
- package/es/locale/da_DK.js +1 -0
- package/es/locale/de_DE.d.ts +3 -0
- package/es/locale/de_DE.js +1 -0
- package/es/locale/el_GR.d.ts +3 -0
- package/es/locale/el_GR.js +1 -0
- package/es/locale/en_GB.d.ts +3 -0
- package/es/locale/en_GB.js +1 -0
- package/es/locale/en_US.d.ts +3 -0
- package/es/locale/en_US.js +1 -0
- package/es/locale/es_ES.d.ts +3 -0
- package/es/locale/es_ES.js +1 -0
- package/es/locale/et_EE.d.ts +3 -0
- package/es/locale/et_EE.js +1 -0
- package/es/locale/eu_ES.d.ts +3 -0
- package/es/locale/eu_ES.js +1 -0
- package/es/locale/fa_IR.d.ts +3 -0
- package/es/locale/fa_IR.js +1 -0
- package/es/locale/fi_FI.d.ts +3 -0
- package/es/locale/fi_FI.js +1 -0
- package/es/locale/fr_BE.d.ts +3 -0
- package/es/locale/fr_BE.js +1 -0
- package/es/locale/fr_CA.d.ts +3 -0
- package/es/locale/fr_CA.js +1 -0
- package/es/locale/fr_FR.d.ts +3 -0
- package/es/locale/fr_FR.js +1 -0
- package/es/locale/ga_IE.d.ts +3 -0
- package/es/locale/ga_IE.js +1 -0
- package/es/locale/gl_ES.d.ts +3 -0
- package/es/locale/gl_ES.js +1 -0
- package/es/locale/he_IL.d.ts +3 -0
- package/es/locale/he_IL.js +1 -0
- package/es/locale/hi_IN.d.ts +3 -0
- package/es/locale/hi_IN.js +1 -0
- package/es/locale/hr_HR.d.ts +3 -0
- package/es/locale/hr_HR.js +1 -0
- package/es/locale/hu_HU.d.ts +3 -0
- package/es/locale/hu_HU.js +1 -0
- package/es/locale/hy_AM.d.ts +3 -0
- package/es/locale/hy_AM.js +2 -0
- package/es/locale/id_ID.d.ts +3 -0
- package/es/locale/id_ID.js +1 -0
- package/es/locale/index.d.ts +61 -0
- package/es/locale/index.js +2 -0
- package/es/locale/is_IS.d.ts +3 -0
- package/es/locale/is_IS.js +1 -0
- package/es/locale/it_IT.d.ts +3 -0
- package/es/locale/it_IT.js +1 -0
- package/es/locale/ja_JP.d.ts +3 -0
- package/es/locale/ja_JP.js +1 -0
- package/es/locale/ka_GE.d.ts +3 -0
- package/es/locale/ka_GE.js +1 -0
- package/es/locale/kk_KZ.d.ts +3 -0
- package/es/locale/kk_KZ.js +1 -0
- package/es/locale/km_KH.d.ts +3 -0
- package/es/locale/km_KH.js +1 -0
- package/es/locale/kmr_IQ.d.ts +3 -0
- package/es/locale/kmr_IQ.js +1 -0
- package/es/locale/kn_IN.d.ts +3 -0
- package/es/locale/kn_IN.js +1 -0
- package/es/locale/ko_KR.d.ts +3 -0
- package/es/locale/ko_KR.js +1 -0
- package/es/locale/ku_IQ.d.ts +3 -0
- package/es/locale/ku_IQ.js +1 -0
- package/es/locale/lt_LT.d.ts +3 -0
- package/es/locale/lt_LT.js +1 -0
- package/es/locale/lv_LV.d.ts +3 -0
- package/es/locale/lv_LV.js +1 -0
- package/es/locale/mk_MK.d.ts +3 -0
- package/es/locale/mk_MK.js +1 -0
- package/es/locale/ml_IN.d.ts +3 -0
- package/es/locale/ml_IN.js +1 -0
- package/es/locale/mn_MN.d.ts +3 -0
- package/es/locale/mn_MN.js +1 -0
- package/es/locale/ms_MY.d.ts +3 -0
- package/es/locale/ms_MY.js +1 -0
- package/es/locale/my_MM.d.ts +3 -0
- package/es/locale/my_MM.js +1 -0
- package/es/locale/nb_NO.d.ts +3 -0
- package/es/locale/nb_NO.js +1 -0
- package/es/locale/ne_NP.d.ts +3 -0
- package/es/locale/ne_NP.js +1 -0
- package/es/locale/nl_BE.d.ts +3 -0
- package/es/locale/nl_BE.js +1 -0
- package/es/locale/nl_NL.d.ts +3 -0
- package/es/locale/nl_NL.js +1 -0
- package/es/locale/pl_PL.d.ts +3 -0
- package/es/locale/pl_PL.js +1 -0
- package/es/locale/pt_BR.d.ts +3 -0
- package/es/locale/pt_BR.js +1 -0
- package/es/locale/pt_PT.d.ts +3 -0
- package/es/locale/pt_PT.js +1 -0
- package/es/locale/ro_RO.d.ts +3 -0
- package/es/locale/ro_RO.js +1 -0
- package/es/locale/ru_RU.d.ts +3 -0
- package/es/locale/ru_RU.js +1 -0
- package/es/locale/si_LK.d.ts +3 -0
- package/es/locale/si_LK.js +1 -0
- package/es/locale/sk_SK.d.ts +3 -0
- package/es/locale/sk_SK.js +1 -0
- package/es/locale/sl_SI.d.ts +3 -0
- package/es/locale/sl_SI.js +1 -0
- package/es/locale/sr_RS.d.ts +3 -0
- package/es/locale/sr_RS.js +1 -0
- package/es/locale/sv_SE.d.ts +3 -0
- package/es/locale/sv_SE.js +1 -0
- package/es/locale/ta_IN.d.ts +3 -0
- package/es/locale/ta_IN.js +1 -0
- package/es/locale/th_TH.d.ts +3 -0
- package/es/locale/th_TH.js +1 -0
- package/es/locale/tk_TK.d.ts +3 -0
- package/es/locale/tk_TK.js +1 -0
- package/es/locale/tr_TR.d.ts +3 -0
- package/es/locale/tr_TR.js +1 -0
- package/es/locale/uk_UA.d.ts +3 -0
- package/es/locale/uk_UA.js +1 -0
- package/es/locale/ur_PK.d.ts +3 -0
- package/es/locale/ur_PK.js +1 -0
- package/es/locale/useLocale.d.ts +4 -0
- package/es/locale/useLocale.js +1 -0
- package/es/locale/uz_UZ.d.ts +3 -0
- package/es/locale/uz_UZ.js +1 -0
- package/es/locale/vi_VN.d.ts +3 -0
- package/es/locale/vi_VN.js +1 -0
- package/es/locale/zh_CN.d.ts +3 -0
- package/es/locale/zh_CN.js +1 -0
- package/es/locale/zh_HK.d.ts +3 -0
- package/es/locale/zh_HK.js +1 -0
- package/es/locale/zh_TW.d.ts +3 -0
- package/es/locale/zh_TW.js +1 -0
- package/es/mentions/index.d.ts +45 -0
- package/es/mentions/index.js +58 -0
- package/es/mentions/style/index.d.ts +22 -0
- package/es/mentions/style/index.js +53 -0
- package/es/menu/MenuContext.d.ts +11 -0
- package/es/menu/MenuContext.js +1 -0
- package/es/menu/MenuDivider.d.ts +9 -0
- package/es/menu/MenuDivider.js +40 -0
- package/es/menu/MenuItem.d.ts +13 -0
- package/es/menu/MenuItem.js +49 -0
- package/es/menu/OverrideContext.d.ts +13 -0
- package/es/menu/OverrideContext.js +40 -0
- package/es/menu/SubMenu.d.ts +13 -0
- package/es/menu/SubMenu.js +35 -0
- package/es/menu/index.d.ts +32 -0
- package/es/menu/index.js +66 -0
- package/es/menu/interface.d.ts +20 -0
- package/es/menu/interface.js +0 -0
- package/es/menu/menu.d.ts +19 -0
- package/es/menu/menu.js +66 -0
- package/es/menu/style/horizontal.d.ts +4 -0
- package/es/menu/style/horizontal.js +3 -0
- package/es/menu/style/index.d.ts +354 -0
- package/es/menu/style/index.js +61 -0
- package/es/menu/style/rtl.d.ts +5 -0
- package/es/menu/style/rtl.js +2 -0
- package/es/menu/style/theme.d.ts +4 -0
- package/es/menu/style/theme.js +1 -0
- package/es/menu/style/vertical.d.ts +4 -0
- package/es/menu/style/vertical.js +9 -0
- package/es/message/PurePanel.d.ts +23 -0
- package/es/message/PurePanel.js +47 -0
- package/es/message/index.d.ts +23 -0
- package/es/message/index.js +47 -0
- package/es/message/interface.d.ts +66 -0
- package/es/message/interface.js +0 -0
- package/es/message/style/index.d.ts +23 -0
- package/es/message/style/index.js +42 -0
- package/es/message/useMessage.d.ts +8 -0
- package/es/message/useMessage.js +47 -0
- package/es/message/util.d.ts +4 -0
- package/es/message/util.js +1 -0
- package/es/modal/ConfirmDialog.d.ts +32 -0
- package/es/modal/ConfirmDialog.js +70 -0
- package/es/modal/Modal.d.ts +4 -0
- package/es/modal/Modal.js +68 -0
- package/es/modal/PurePanel.d.ts +9 -0
- package/es/modal/PurePanel.js +70 -0
- package/es/modal/components/ConfirmCancelBtn.d.ts +10 -0
- package/es/modal/components/ConfirmCancelBtn.js +48 -0
- package/es/modal/components/ConfirmOkBtn.d.ts +9 -0
- package/es/modal/components/ConfirmOkBtn.js +48 -0
- package/es/modal/components/NormalCancelBtn.d.ts +8 -0
- package/es/modal/components/NormalCancelBtn.js +48 -0
- package/es/modal/components/NormalOkBtn.d.ts +8 -0
- package/es/modal/components/NormalOkBtn.js +48 -0
- package/es/modal/confirm.d.ts +20 -0
- package/es/modal/confirm.js +70 -0
- package/es/modal/context.d.ts +8 -0
- package/es/modal/context.js +1 -0
- package/es/modal/destroyFns.d.ts +2 -0
- package/es/modal/destroyFns.js +1 -0
- package/es/modal/index.d.ts +15 -0
- package/es/modal/index.js +70 -0
- package/es/modal/interface.d.ts +123 -0
- package/es/modal/interface.js +0 -0
- package/es/modal/locale.d.ts +7 -0
- package/es/modal/locale.js +1 -0
- package/es/modal/shared.d.ts +9 -0
- package/es/modal/shared.js +48 -0
- package/es/modal/style/confirm.d.ts +2 -0
- package/es/modal/style/confirm.js +50 -0
- package/es/modal/style/index.d.ts +110 -0
- package/es/modal/style/index.js +49 -0
- package/es/modal/useModal/HookModal.d.ts +17 -0
- package/es/modal/useModal/HookModal.js +70 -0
- package/es/modal/useModal/index.d.ts +8 -0
- package/es/modal/useModal/index.js +70 -0
- package/es/notification/PurePanel.d.ts +27 -0
- package/es/notification/PurePanel.js +40 -0
- package/es/notification/index.d.ts +22 -0
- package/es/notification/index.js +41 -0
- package/es/notification/interface.d.ts +68 -0
- package/es/notification/interface.js +1 -0
- package/es/notification/style/index.d.ts +89 -0
- package/es/notification/style/index.js +35 -0
- package/es/notification/style/placement.d.ts +5 -0
- package/es/notification/style/placement.js +1 -0
- package/es/notification/style/pure-panel.d.ts +2 -0
- package/es/notification/style/pure-panel.js +35 -0
- package/es/notification/style/stack.d.ts +4 -0
- package/es/notification/style/stack.js +1 -0
- package/es/notification/useNotification.d.ts +8 -0
- package/es/notification/useNotification.js +40 -0
- package/es/notification/util.d.ts +5 -0
- package/es/notification/util.js +1 -0
- package/es/pagination/Pagination.d.ts +25 -0
- package/es/pagination/Pagination.js +111 -0
- package/es/pagination/index.d.ts +3 -0
- package/es/pagination/index.js +111 -0
- package/es/pagination/style/bordered.d.ts +2 -0
- package/es/pagination/style/bordered.js +68 -0
- package/es/pagination/style/index.d.ts +99 -0
- package/es/pagination/style/index.js +68 -0
- package/es/pagination/useShowSizeChanger.d.ts +3 -0
- package/es/pagination/useShowSizeChanger.js +1 -0
- package/es/popconfirm/PurePanel.d.ts +20 -0
- package/es/popconfirm/PurePanel.js +57 -0
- package/es/popconfirm/index.d.ts +30 -0
- package/es/popconfirm/index.js +57 -0
- package/es/popconfirm/style/index.d.ts +17 -0
- package/es/popconfirm/style/index.js +35 -0
- package/es/popover/PurePanel.d.ts +17 -0
- package/es/popover/PurePanel.js +49 -0
- package/es/popover/index.d.ts +15 -0
- package/es/popover/index.js +49 -0
- package/es/popover/style/index.d.ts +46 -0
- package/es/popover/style/index.js +44 -0
- package/es/progress/Circle.d.ts +10 -0
- package/es/progress/Circle.js +49 -0
- package/es/progress/Line.d.ts +36 -0
- package/es/progress/Line.js +35 -0
- package/es/progress/Steps.d.ts +9 -0
- package/es/progress/Steps.js +1 -0
- package/es/progress/index.d.ts +3 -0
- package/es/progress/index.js +49 -0
- package/es/progress/progress.d.ts +58 -0
- package/es/progress/progress.js +49 -0
- package/es/progress/style/index.d.ts +38 -0
- package/es/progress/style/index.js +35 -0
- package/es/progress/utils.d.ts +10 -0
- package/es/progress/utils.js +1 -0
- package/es/qr-code/QrcodeStatus.d.ts +11 -0
- package/es/qr-code/QrcodeStatus.js +48 -0
- package/es/qr-code/index.d.ts +4 -0
- package/es/qr-code/index.js +48 -0
- package/es/qr-code/interface.d.ts +29 -0
- package/es/qr-code/interface.js +0 -0
- package/es/qr-code/style/index.d.ts +6 -0
- package/es/qr-code/style/index.js +35 -0
- package/es/qrcode/index.d.ts +2 -0
- package/es/qrcode/index.js +48 -0
- package/es/qrcode/interface.d.ts +1 -0
- package/es/qrcode/interface.js +0 -0
- package/es/qrcode/style/index.d.ts +1 -0
- package/es/qrcode/style/index.js +35 -0
- package/es/radio/context.d.ts +7 -0
- package/es/radio/context.js +1 -0
- package/es/radio/group.d.ts +4 -0
- package/es/radio/group.js +41 -0
- package/es/radio/index.d.ts +11 -0
- package/es/radio/index.js +41 -0
- package/es/radio/interface.d.ts +43 -0
- package/es/radio/interface.js +0 -0
- package/es/radio/radio.d.ts +4 -0
- package/es/radio/radio.js +41 -0
- package/es/radio/radioButton.d.ts +6 -0
- package/es/radio/radioButton.js +41 -0
- package/es/radio/style/index.d.ts +76 -0
- package/es/radio/style/index.js +36 -0
- package/es/rate/index.d.ts +8 -0
- package/es/rate/index.js +49 -0
- package/es/rate/style/index.d.ts +27 -0
- package/es/rate/style/index.js +35 -0
- package/es/result/index.d.ts +33 -0
- package/es/result/index.js +41 -0
- package/es/result/noFound.d.ts +3 -0
- package/es/result/noFound.js +1 -0
- package/es/result/serverError.d.ts +3 -0
- package/es/result/serverError.js +1 -0
- package/es/result/style/index.d.ts +27 -0
- package/es/result/style/index.js +35 -0
- package/es/result/unauthorized.d.ts +3 -0
- package/es/result/unauthorized.js +1 -0
- package/es/row/index.d.ts +4 -0
- package/es/row/index.js +40 -0
- package/es/row/style/index.d.ts +2 -0
- package/es/row/style/index.js +1 -0
- package/es/search-area/index.d.ts +5 -0
- package/es/search-area/index.js +353 -0
- package/es/search-area/style/index.d.ts +2 -0
- package/es/search-area/style/index.js +1 -0
- package/es/segmented/index.d.ts +26 -0
- package/es/segmented/index.js +40 -0
- package/es/segmented/style/index.d.ts +46 -0
- package/es/segmented/style/index.js +35 -0
- package/es/select/index.d.ts +57 -0
- package/es/select/index.js +78 -0
- package/es/select/mergedBuiltinPlacements.d.ts +4 -0
- package/es/select/mergedBuiltinPlacements.js +1 -0
- package/es/select/style/dropdown.d.ts +4 -0
- package/es/select/style/dropdown.js +24 -0
- package/es/select/style/index.d.ts +4 -0
- package/es/select/style/index.js +73 -0
- package/es/select/style/multiple.d.ts +32 -0
- package/es/select/style/multiple.js +40 -0
- package/es/select/style/single.d.ts +3 -0
- package/es/select/style/single.js +45 -0
- package/es/select/style/token.d.ts +138 -0
- package/es/select/style/token.js +1 -0
- package/es/select/style/variants.d.ts +4 -0
- package/es/select/style/variants.js +1 -0
- package/es/select/useIcons.d.ts +26 -0
- package/es/select/useIcons.js +1 -0
- package/es/select/useShowArrow.d.ts +8 -0
- package/es/select/useShowArrow.js +1 -0
- package/es/skeleton/Avatar.d.ts +7 -0
- package/es/skeleton/Avatar.js +47 -0
- package/es/skeleton/Button.d.ts +8 -0
- package/es/skeleton/Button.js +47 -0
- package/es/skeleton/Element.d.ts +12 -0
- package/es/skeleton/Element.js +1 -0
- package/es/skeleton/Image.d.ts +6 -0
- package/es/skeleton/Image.js +48 -0
- package/es/skeleton/Input.d.ts +8 -0
- package/es/skeleton/Input.js +47 -0
- package/es/skeleton/Node.d.ts +8 -0
- package/es/skeleton/Node.js +47 -0
- package/es/skeleton/Paragraph.d.ts +11 -0
- package/es/skeleton/Paragraph.js +1 -0
- package/es/skeleton/Skeleton.d.ts +32 -0
- package/es/skeleton/Skeleton.js +48 -0
- package/es/skeleton/Title.d.ts +9 -0
- package/es/skeleton/Title.js +1 -0
- package/es/skeleton/index.d.ts +3 -0
- package/es/skeleton/index.js +48 -0
- package/es/skeleton/style/index.d.ts +40 -0
- package/es/skeleton/style/index.js +42 -0
- package/es/slider/Context.d.ts +9 -0
- package/es/slider/Context.js +1 -0
- package/es/slider/SliderTooltip.d.ts +8 -0
- package/es/slider/SliderTooltip.js +49 -0
- package/es/slider/index.d.ts +97 -0
- package/es/slider/index.js +61 -0
- package/es/slider/style/index.d.ts +97 -0
- package/es/slider/style/index.js +47 -0
- package/es/slider/useRafLock.d.ts +1 -0
- package/es/slider/useRafLock.js +1 -0
- package/es/space/Compact.d.ts +25 -0
- package/es/space/Compact.js +40 -0
- package/es/space/Item.d.ts +10 -0
- package/es/space/Item.js +1 -0
- package/es/space/context.d.ts +6 -0
- package/es/space/context.js +1 -0
- package/es/space/index.d.ts +28 -0
- package/es/space/index.js +40 -0
- package/es/space/style/compact.d.ts +8 -0
- package/es/space/style/compact.js +1 -0
- package/es/space/style/index.d.ts +7 -0
- package/es/space/style/index.js +35 -0
- package/es/spin/Indicator/Looper.d.ts +6 -0
- package/es/spin/Indicator/Looper.js +1 -0
- package/es/spin/Indicator/Progress.d.ts +7 -0
- package/es/spin/Indicator/Progress.js +1 -0
- package/es/spin/Indicator/index.d.ts +7 -0
- package/es/spin/Indicator/index.js +1 -0
- package/es/spin/index.d.ts +36 -0
- package/es/spin/index.js +40 -0
- package/es/spin/style/index.d.ts +26 -0
- package/es/spin/style/index.js +35 -0
- package/es/spin/usePercent.d.ts +1 -0
- package/es/spin/usePercent.js +1 -0
- package/es/splitter/Panel.d.ts +7 -0
- package/es/splitter/Panel.js +1 -0
- package/es/splitter/SplitBar.d.ts +19 -0
- package/es/splitter/SplitBar.js +1 -0
- package/es/splitter/Splitter.d.ts +4 -0
- package/es/splitter/Splitter.js +40 -0
- package/es/splitter/hooks/useItems.d.ts +12 -0
- package/es/splitter/hooks/useItems.js +1 -0
- package/es/splitter/hooks/useResizable.d.ts +7 -0
- package/es/splitter/hooks/useResizable.js +1 -0
- package/es/splitter/hooks/useResize.d.ts +6 -0
- package/es/splitter/hooks/useResize.js +1 -0
- package/es/splitter/hooks/useSizes.d.ts +8 -0
- package/es/splitter/hooks/useSizes.js +1 -0
- package/es/splitter/index.d.ts +8 -0
- package/es/splitter/index.js +40 -0
- package/es/splitter/interface.d.ts +64 -0
- package/es/splitter/interface.js +0 -0
- package/es/splitter/style/index.d.ts +27 -0
- package/es/splitter/style/index.js +35 -0
- package/es/statistic/Countdown.d.ts +10 -0
- package/es/statistic/Countdown.js +48 -0
- package/es/statistic/Number.d.ts +8 -0
- package/es/statistic/Number.js +1 -0
- package/es/statistic/Statistic.d.ts +21 -0
- package/es/statistic/Statistic.js +48 -0
- package/es/statistic/index.d.ts +11 -0
- package/es/statistic/index.js +48 -0
- package/es/statistic/interface.d.ts +0 -0
- package/es/statistic/interface.js +0 -0
- package/es/statistic/style/index.d.ts +16 -0
- package/es/statistic/style/index.js +35 -0
- package/es/statistic/utils.d.ts +15 -0
- package/es/statistic/utils.js +1 -0
- package/es/steps/index.d.ts +39 -0
- package/es/steps/index.js +49 -0
- package/es/steps/style/custom-icon.d.ts +5 -0
- package/es/steps/style/custom-icon.js +1 -0
- package/es/steps/style/horizontal.d.ts +5 -0
- package/es/steps/style/horizontal.js +1 -0
- package/es/steps/style/index.d.ts +102 -0
- package/es/steps/style/index.js +35 -0
- package/es/steps/style/inline.d.ts +5 -0
- package/es/steps/style/inline.js +1 -0
- package/es/steps/style/label-placement.d.ts +5 -0
- package/es/steps/style/label-placement.js +1 -0
- package/es/steps/style/nav.d.ts +5 -0
- package/es/steps/style/nav.js +1 -0
- package/es/steps/style/progress-dot.d.ts +5 -0
- package/es/steps/style/progress-dot.js +1 -0
- package/es/steps/style/progress.d.ts +5 -0
- package/es/steps/style/progress.js +1 -0
- package/es/steps/style/rtl.d.ts +5 -0
- package/es/steps/style/rtl.js +1 -0
- package/es/steps/style/small.d.ts +5 -0
- package/es/steps/style/small.js +1 -0
- package/es/steps/style/vertical.d.ts +5 -0
- package/es/steps/style/vertical.js +1 -0
- package/es/steps/useLegacyItems.d.ts +3 -0
- package/es/steps/useLegacyItems.js +1 -0
- package/es/style/compact-item-vertical.d.ts +3 -0
- package/es/style/compact-item-vertical.js +1 -0
- package/es/style/compact-item.d.ts +17 -0
- package/es/style/compact-item.js +1 -0
- package/es/style/index.d.ts +12 -0
- package/es/style/index.js +1 -0
- package/es/style/motion/collapse.d.ts +3 -0
- package/es/style/motion/collapse.js +3 -0
- package/es/style/motion/fade.d.ts +6 -0
- package/es/style/motion/fade.js +10 -0
- package/es/style/motion/index.d.ts +6 -0
- package/es/style/motion/index.js +21 -0
- package/es/style/motion/motion.d.ts +2 -0
- package/es/style/motion/motion.js +7 -0
- package/es/style/motion/move.d.ts +14 -0
- package/es/style/motion/move.js +10 -0
- package/es/style/motion/slide.d.ts +14 -0
- package/es/style/motion/slide.js +10 -0
- package/es/style/motion/zoom.d.ts +18 -0
- package/es/style/motion/zoom.js +10 -0
- package/es/style/placementArrow.d.ts +19 -0
- package/es/style/placementArrow.js +1 -0
- package/es/style/roundedArrow.d.ts +7 -0
- package/es/style/roundedArrow.js +1 -0
- package/es/switch/index.d.ts +37 -0
- package/es/switch/index.js +41 -0
- package/es/switch/style/index.d.ts +71 -0
- package/es/switch/style/index.js +35 -0
- package/es/table/Column.d.ts +8 -0
- package/es/table/Column.js +1 -0
- package/es/table/ColumnGroup.d.ts +10 -0
- package/es/table/ColumnGroup.js +1 -0
- package/es/table/ExpandIcon.d.ts +12 -0
- package/es/table/ExpandIcon.js +1 -0
- package/es/table/InternalTable.d.ts +32 -0
- package/es/table/InternalTable.js +216 -0
- package/es/table/RcTable/VirtualTable.d.ts +5 -0
- package/es/table/RcTable/VirtualTable.js +1 -0
- package/es/table/RcTable/index.d.ts +5 -0
- package/es/table/RcTable/index.js +1 -0
- package/es/table/Table.d.ts +17 -0
- package/es/table/Table.js +216 -0
- package/es/table/hooks/useContainerWidth.d.ts +1 -0
- package/es/table/hooks/useContainerWidth.js +1 -0
- package/es/table/hooks/useFilter/FilterDropdown.d.ts +31 -0
- package/es/table/hooks/useFilter/FilterDropdown.js +114 -0
- package/es/table/hooks/useFilter/FilterSearch.d.ts +12 -0
- package/es/table/hooks/useFilter/FilterSearch.js +66 -0
- package/es/table/hooks/useFilter/FilterWrapper.d.ts +8 -0
- package/es/table/hooks/useFilter/FilterWrapper.js +1 -0
- package/es/table/hooks/useFilter/index.d.ts +22 -0
- package/es/table/hooks/useFilter/index.js +114 -0
- package/es/table/hooks/useLazyKVMap.d.ts +4 -0
- package/es/table/hooks/useLazyKVMap.js +1 -0
- package/es/table/hooks/usePagination.d.ts +5 -0
- package/es/table/hooks/usePagination.js +1 -0
- package/es/table/hooks/useSelection.d.ts +20 -0
- package/es/table/hooks/useSelection.js +95 -0
- package/es/table/hooks/useSorter.d.ts +19 -0
- package/es/table/hooks/useSorter.js +49 -0
- package/es/table/hooks/useTitleColumns.d.ts +4 -0
- package/es/table/hooks/useTitleColumns.js +1 -0
- package/es/table/index.d.ts +7 -0
- package/es/table/index.js +216 -0
- package/es/table/interface.d.ts +194 -0
- package/es/table/interface.js +1 -0
- package/es/table/style/bordered.d.ts +5 -0
- package/es/table/style/bordered.js +10 -0
- package/es/table/style/ellipsis.d.ts +5 -0
- package/es/table/style/ellipsis.js +4 -0
- package/es/table/style/empty.d.ts +5 -0
- package/es/table/style/empty.js +1 -0
- package/es/table/style/expand.d.ts +5 -0
- package/es/table/style/expand.js +1 -0
- package/es/table/style/filter.d.ts +4 -0
- package/es/table/style/filter.js +1 -0
- package/es/table/style/fixed.d.ts +5 -0
- package/es/table/style/fixed.js +21 -0
- package/es/table/style/index.d.ts +202 -0
- package/es/table/style/index.js +97 -0
- package/es/table/style/pagination.d.ts +5 -0
- package/es/table/style/pagination.js +1 -0
- package/es/table/style/radius.d.ts +5 -0
- package/es/table/style/radius.js +1 -0
- package/es/table/style/rtl.d.ts +5 -0
- package/es/table/style/rtl.js +1 -0
- package/es/table/style/selection.d.ts +5 -0
- package/es/table/style/selection.js +5 -0
- package/es/table/style/size.d.ts +5 -0
- package/es/table/style/size.js +10 -0
- package/es/table/style/sorter.d.ts +5 -0
- package/es/table/style/sorter.js +4 -0
- package/es/table/style/sticky.d.ts +5 -0
- package/es/table/style/sticky.js +1 -0
- package/es/table/style/summary.d.ts +5 -0
- package/es/table/style/summary.js +1 -0
- package/es/table/style/virtual.d.ts +5 -0
- package/es/table/style/virtual.js +4 -0
- package/es/table/util.d.ts +13 -0
- package/es/table/util.js +1 -0
- package/es/tabs/TabPane.d.ts +5 -0
- package/es/tabs/TabPane.js +1 -0
- package/es/tabs/hooks/useAnimateConfig.d.ts +3 -0
- package/es/tabs/hooks/useAnimateConfig.js +40 -0
- package/es/tabs/hooks/useLegacyItems.d.ts +4 -0
- package/es/tabs/hooks/useLegacyItems.js +1 -0
- package/es/tabs/index.d.ts +29 -0
- package/es/tabs/index.js +51 -0
- package/es/tabs/style/index.d.ts +136 -0
- package/es/tabs/style/index.js +46 -0
- package/es/tabs/style/motion.d.ts +4 -0
- package/es/tabs/style/motion.js +10 -0
- package/es/tag/CheckableTag.d.ts +17 -0
- package/es/tag/CheckableTag.js +40 -0
- package/es/tag/index.d.ts +27 -0
- package/es/tag/index.js +41 -0
- package/es/tag/style/index.d.ts +25 -0
- package/es/tag/style/index.js +35 -0
- package/es/tag/style/presetCmp.d.ts +2 -0
- package/es/tag/style/presetCmp.js +35 -0
- package/es/tag/style/statusCmp.d.ts +2 -0
- package/es/tag/style/statusCmp.js +35 -0
- package/es/theme/context.d.ts +31 -0
- package/es/theme/context.js +3 -0
- package/es/theme/getDesignToken.d.ts +4 -0
- package/es/theme/getDesignToken.js +35 -0
- package/es/theme/index.d.ts +35 -0
- package/es/theme/index.js +35 -0
- package/es/theme/interface/alias.d.ts +545 -0
- package/es/theme/interface/alias.js +0 -0
- package/es/theme/interface/components.d.ts +131 -0
- package/es/theme/interface/components.js +0 -0
- package/es/theme/interface/cssinjs-utils.d.ts +10 -0
- package/es/theme/interface/cssinjs-utils.js +0 -0
- package/es/theme/interface/index.d.ts +15 -0
- package/es/theme/interface/index.js +1 -0
- package/es/theme/interface/maps/colors.d.ts +530 -0
- package/es/theme/interface/maps/colors.js +0 -0
- package/es/theme/interface/maps/font.d.ts +117 -0
- package/es/theme/interface/maps/font.js +0 -0
- package/es/theme/interface/maps/index.d.ts +29 -0
- package/es/theme/interface/maps/index.js +0 -0
- package/es/theme/interface/maps/size.d.ts +69 -0
- package/es/theme/interface/maps/size.js +0 -0
- package/es/theme/interface/maps/style.d.ts +42 -0
- package/es/theme/interface/maps/style.js +0 -0
- package/es/theme/interface/presetColors.d.ts +11 -0
- package/es/theme/interface/presetColors.js +1 -0
- package/es/theme/interface/seeds.d.ts +225 -0
- package/es/theme/interface/seeds.js +0 -0
- package/es/theme/internal.d.ts +13 -0
- package/es/theme/internal.js +35 -0
- package/es/theme/themes/ColorMap.d.ts +15 -0
- package/es/theme/themes/ColorMap.js +0 -0
- package/es/theme/themes/compact/genCompactSizeMapToken.d.ts +2 -0
- package/es/theme/themes/compact/genCompactSizeMapToken.js +1 -0
- package/es/theme/themes/compact/index.d.ts +4 -0
- package/es/theme/themes/compact/index.js +1 -0
- package/es/theme/themes/dark/colorAlgorithm.d.ts +2 -0
- package/es/theme/themes/dark/colorAlgorithm.js +1 -0
- package/es/theme/themes/dark/colors.d.ts +3 -0
- package/es/theme/themes/dark/colors.js +1 -0
- package/es/theme/themes/dark/index.d.ts +4 -0
- package/es/theme/themes/dark/index.js +1 -0
- package/es/theme/themes/default/colorAlgorithm.d.ts +2 -0
- package/es/theme/themes/default/colorAlgorithm.js +1 -0
- package/es/theme/themes/default/colors.d.ts +3 -0
- package/es/theme/themes/default/colors.js +1 -0
- package/es/theme/themes/default/index.d.ts +2 -0
- package/es/theme/themes/default/index.js +1 -0
- package/es/theme/themes/seed.d.ts +4 -0
- package/es/theme/themes/seed.js +3 -0
- package/es/theme/themes/shared/genColorMapToken.d.ts +8 -0
- package/es/theme/themes/shared/genColorMapToken.js +1 -0
- package/es/theme/themes/shared/genCommonMapToken.d.ts +2 -0
- package/es/theme/themes/shared/genCommonMapToken.js +1 -0
- package/es/theme/themes/shared/genControlHeight.d.ts +3 -0
- package/es/theme/themes/shared/genControlHeight.js +1 -0
- package/es/theme/themes/shared/genFontMapToken.d.ts +3 -0
- package/es/theme/themes/shared/genFontMapToken.js +1 -0
- package/es/theme/themes/shared/genFontSizes.d.ts +5 -0
- package/es/theme/themes/shared/genFontSizes.js +1 -0
- package/es/theme/themes/shared/genRadius.d.ts +3 -0
- package/es/theme/themes/shared/genRadius.js +1 -0
- package/es/theme/themes/shared/genSizeMapToken.d.ts +2 -0
- package/es/theme/themes/shared/genSizeMapToken.js +1 -0
- package/es/theme/useToken.d.ts +19 -0
- package/es/theme/useToken.js +35 -0
- package/es/theme/util/alias.d.ts +12 -0
- package/es/theme/util/alias.js +35 -0
- package/es/theme/util/genPresetColor.d.ts +15 -0
- package/es/theme/util/genPresetColor.js +1 -0
- package/es/theme/util/genStyleUtils.d.ts +26 -0
- package/es/theme/util/genStyleUtils.js +35 -0
- package/es/theme/util/getAlphaColor.d.ts +2 -0
- package/es/theme/util/getAlphaColor.js +1 -0
- package/es/theme/util/useResetIconStyle.d.ts +3 -0
- package/es/theme/util/useResetIconStyle.js +35 -0
- package/es/time-picker/index.d.ts +30 -0
- package/es/time-picker/index.js +99 -0
- package/es/time-picker/locale/ar_EG.d.ts +3 -0
- package/es/time-picker/locale/ar_EG.js +1 -0
- package/es/time-picker/locale/az_AZ.d.ts +3 -0
- package/es/time-picker/locale/az_AZ.js +1 -0
- package/es/time-picker/locale/bg_BG.d.ts +3 -0
- package/es/time-picker/locale/bg_BG.js +1 -0
- package/es/time-picker/locale/bn_BD.d.ts +3 -0
- package/es/time-picker/locale/bn_BD.js +1 -0
- package/es/time-picker/locale/by_BY.d.ts +3 -0
- package/es/time-picker/locale/by_BY.js +1 -0
- package/es/time-picker/locale/ca_ES.d.ts +3 -0
- package/es/time-picker/locale/ca_ES.js +1 -0
- package/es/time-picker/locale/cs_CZ.d.ts +3 -0
- package/es/time-picker/locale/cs_CZ.js +1 -0
- package/es/time-picker/locale/da_DK.d.ts +3 -0
- package/es/time-picker/locale/da_DK.js +1 -0
- package/es/time-picker/locale/de_DE.d.ts +3 -0
- package/es/time-picker/locale/de_DE.js +1 -0
- package/es/time-picker/locale/el_GR.d.ts +3 -0
- package/es/time-picker/locale/el_GR.js +1 -0
- package/es/time-picker/locale/en_GB.d.ts +3 -0
- package/es/time-picker/locale/en_GB.js +1 -0
- package/es/time-picker/locale/en_US.d.ts +3 -0
- package/es/time-picker/locale/en_US.js +1 -0
- package/es/time-picker/locale/es_ES.d.ts +3 -0
- package/es/time-picker/locale/es_ES.js +1 -0
- package/es/time-picker/locale/et_EE.d.ts +3 -0
- package/es/time-picker/locale/et_EE.js +1 -0
- package/es/time-picker/locale/eu_ES.d.ts +3 -0
- package/es/time-picker/locale/eu_ES.js +1 -0
- package/es/time-picker/locale/fa_IR.d.ts +3 -0
- package/es/time-picker/locale/fa_IR.js +1 -0
- package/es/time-picker/locale/fi_FI.d.ts +3 -0
- package/es/time-picker/locale/fi_FI.js +1 -0
- package/es/time-picker/locale/fr_BE.d.ts +3 -0
- package/es/time-picker/locale/fr_BE.js +1 -0
- package/es/time-picker/locale/fr_CA.d.ts +3 -0
- package/es/time-picker/locale/fr_CA.js +1 -0
- package/es/time-picker/locale/fr_FR.d.ts +3 -0
- package/es/time-picker/locale/fr_FR.js +1 -0
- package/es/time-picker/locale/ga_IE.d.ts +3 -0
- package/es/time-picker/locale/ga_IE.js +1 -0
- package/es/time-picker/locale/gl_ES.d.ts +3 -0
- package/es/time-picker/locale/gl_ES.js +1 -0
- package/es/time-picker/locale/he_IL.d.ts +3 -0
- package/es/time-picker/locale/he_IL.js +1 -0
- package/es/time-picker/locale/hi_IN.d.ts +3 -0
- package/es/time-picker/locale/hi_IN.js +1 -0
- package/es/time-picker/locale/hr_HR.d.ts +3 -0
- package/es/time-picker/locale/hr_HR.js +1 -0
- package/es/time-picker/locale/hu_HU.d.ts +3 -0
- package/es/time-picker/locale/hu_HU.js +1 -0
- package/es/time-picker/locale/id_ID.d.ts +3 -0
- package/es/time-picker/locale/id_ID.js +1 -0
- package/es/time-picker/locale/is_IS.d.ts +3 -0
- package/es/time-picker/locale/is_IS.js +1 -0
- package/es/time-picker/locale/it_IT.d.ts +3 -0
- package/es/time-picker/locale/it_IT.js +1 -0
- package/es/time-picker/locale/ja_JP.d.ts +3 -0
- package/es/time-picker/locale/ja_JP.js +1 -0
- package/es/time-picker/locale/ka_GE.d.ts +3 -0
- package/es/time-picker/locale/ka_GE.js +1 -0
- package/es/time-picker/locale/kk_KZ.d.ts +3 -0
- package/es/time-picker/locale/kk_KZ.js +1 -0
- package/es/time-picker/locale/km_KH.d.ts +3 -0
- package/es/time-picker/locale/km_KH.js +1 -0
- package/es/time-picker/locale/kmr_IQ.d.ts +3 -0
- package/es/time-picker/locale/kmr_IQ.js +1 -0
- package/es/time-picker/locale/kn_IN.d.ts +3 -0
- package/es/time-picker/locale/kn_IN.js +1 -0
- package/es/time-picker/locale/ko_KR.d.ts +3 -0
- package/es/time-picker/locale/ko_KR.js +1 -0
- package/es/time-picker/locale/lt_LT.d.ts +3 -0
- package/es/time-picker/locale/lt_LT.js +1 -0
- package/es/time-picker/locale/lv_LV.d.ts +3 -0
- package/es/time-picker/locale/lv_LV.js +1 -0
- package/es/time-picker/locale/mk_MK.d.ts +3 -0
- package/es/time-picker/locale/mk_MK.js +1 -0
- package/es/time-picker/locale/ml_IN.d.ts +3 -0
- package/es/time-picker/locale/ml_IN.js +1 -0
- package/es/time-picker/locale/mn_MN.d.ts +3 -0
- package/es/time-picker/locale/mn_MN.js +1 -0
- package/es/time-picker/locale/ms_MY.d.ts +3 -0
- package/es/time-picker/locale/ms_MY.js +1 -0
- package/es/time-picker/locale/my_MM.d.ts +3 -0
- package/es/time-picker/locale/my_MM.js +1 -0
- package/es/time-picker/locale/nb_NO.d.ts +3 -0
- package/es/time-picker/locale/nb_NO.js +1 -0
- package/es/time-picker/locale/nl_BE.d.ts +3 -0
- package/es/time-picker/locale/nl_BE.js +1 -0
- package/es/time-picker/locale/nl_NL.d.ts +3 -0
- package/es/time-picker/locale/nl_NL.js +1 -0
- package/es/time-picker/locale/pl_PL.d.ts +3 -0
- package/es/time-picker/locale/pl_PL.js +1 -0
- package/es/time-picker/locale/pt_BR.d.ts +3 -0
- package/es/time-picker/locale/pt_BR.js +1 -0
- package/es/time-picker/locale/pt_PT.d.ts +3 -0
- package/es/time-picker/locale/pt_PT.js +1 -0
- package/es/time-picker/locale/ro_RO.d.ts +3 -0
- package/es/time-picker/locale/ro_RO.js +1 -0
- package/es/time-picker/locale/ru_RU.d.ts +4 -0
- package/es/time-picker/locale/ru_RU.js +1 -0
- package/es/time-picker/locale/si_LK.d.ts +3 -0
- package/es/time-picker/locale/si_LK.js +1 -0
- package/es/time-picker/locale/sk_SK.d.ts +3 -0
- package/es/time-picker/locale/sk_SK.js +1 -0
- package/es/time-picker/locale/sl_SI.d.ts +3 -0
- package/es/time-picker/locale/sl_SI.js +1 -0
- package/es/time-picker/locale/sr_RS.d.ts +3 -0
- package/es/time-picker/locale/sr_RS.js +1 -0
- package/es/time-picker/locale/sv_SE.d.ts +3 -0
- package/es/time-picker/locale/sv_SE.js +1 -0
- package/es/time-picker/locale/ta_IN.d.ts +3 -0
- package/es/time-picker/locale/ta_IN.js +1 -0
- package/es/time-picker/locale/th_TH.d.ts +3 -0
- package/es/time-picker/locale/th_TH.js +1 -0
- package/es/time-picker/locale/tk_TK.d.ts +3 -0
- package/es/time-picker/locale/tk_TK.js +1 -0
- package/es/time-picker/locale/tr_TR.d.ts +3 -0
- package/es/time-picker/locale/tr_TR.js +1 -0
- package/es/time-picker/locale/uk_UA.d.ts +3 -0
- package/es/time-picker/locale/uk_UA.js +1 -0
- package/es/time-picker/locale/ur_PK.d.ts +3 -0
- package/es/time-picker/locale/ur_PK.js +1 -0
- package/es/time-picker/locale/uz_UZ.d.ts +3 -0
- package/es/time-picker/locale/uz_UZ.js +1 -0
- package/es/time-picker/locale/vi_VN.d.ts +3 -0
- package/es/time-picker/locale/vi_VN.js +1 -0
- package/es/time-picker/locale/zh_CN.d.ts +3 -0
- package/es/time-picker/locale/zh_CN.js +1 -0
- package/es/time-picker/locale/zh_TW.d.ts +3 -0
- package/es/time-picker/locale/zh_TW.js +1 -0
- package/es/timeline/Timeline.d.ts +20 -0
- package/es/timeline/Timeline.js +48 -0
- package/es/timeline/TimelineItem.d.ts +20 -0
- package/es/timeline/TimelineItem.js +40 -0
- package/es/timeline/TimelineItemList.d.ts +7 -0
- package/es/timeline/TimelineItemList.js +40 -0
- package/es/timeline/index.d.ts +4 -0
- package/es/timeline/index.js +48 -0
- package/es/timeline/style/index.d.ts +31 -0
- package/es/timeline/style/index.js +43 -0
- package/es/timeline/useItems.d.ts +4 -0
- package/es/timeline/useItems.js +1 -0
- package/es/tooltip/PurePanel.d.ts +7 -0
- package/es/tooltip/PurePanel.js +49 -0
- package/es/tooltip/index.d.ts +80 -0
- package/es/tooltip/index.js +49 -0
- package/es/tooltip/style/index.d.ts +13 -0
- package/es/tooltip/style/index.js +44 -0
- package/es/tooltip/util.d.ts +6 -0
- package/es/tooltip/util.js +1 -0
- package/es/tour/PurePanel.d.ts +6 -0
- package/es/tour/PurePanel.js +57 -0
- package/es/tour/index.d.ts +7 -0
- package/es/tour/index.js +57 -0
- package/es/tour/interface.d.ts +31 -0
- package/es/tour/interface.js +0 -0
- package/es/tour/panelRender.d.ts +12 -0
- package/es/tour/panelRender.js +48 -0
- package/es/tour/style/index.d.ts +28 -0
- package/es/tour/style/index.js +35 -0
- package/es/transfer/ListBody.d.ts +17 -0
- package/es/transfer/ListBody.js +117 -0
- package/es/transfer/ListItem.d.ts +15 -0
- package/es/transfer/ListItem.js +46 -0
- package/es/transfer/hooks/useData.d.ts +5 -0
- package/es/transfer/hooks/useData.js +1 -0
- package/es/transfer/hooks/useSelection.d.ts +9 -0
- package/es/transfer/hooks/useSelection.js +1 -0
- package/es/transfer/index.d.ts +91 -0
- package/es/transfer/index.js +154 -0
- package/es/transfer/interface.d.ts +7 -0
- package/es/transfer/interface.js +0 -0
- package/es/transfer/list.d.ts +48 -0
- package/es/transfer/list.js +154 -0
- package/es/transfer/operation.d.ts +17 -0
- package/es/transfer/operation.js +48 -0
- package/es/transfer/search.d.ts +11 -0
- package/es/transfer/search.js +66 -0
- package/es/transfer/style/index.d.ts +36 -0
- package/es/transfer/style/index.js +35 -0
- package/es/tree/DirectoryTree.d.ts +16 -0
- package/es/tree/DirectoryTree.js +48 -0
- package/es/tree/Tree.d.ts +136 -0
- package/es/tree/Tree.js +48 -0
- package/es/tree/index.d.ts +16 -0
- package/es/tree/index.js +48 -0
- package/es/tree/style/directory.d.ts +3 -0
- package/es/tree/style/directory.js +1 -0
- package/es/tree/style/index.d.ts +57 -0
- package/es/tree/style/index.js +43 -0
- package/es/tree/utils/dictUtil.d.ts +13 -0
- package/es/tree/utils/dictUtil.js +1 -0
- package/es/tree/utils/dropIndicator.d.ts +11 -0
- package/es/tree/utils/dropIndicator.js +1 -0
- package/es/tree/utils/iconUtil.d.ts +13 -0
- package/es/tree/utils/iconUtil.js +1 -0
- package/es/tree-select/index.d.ts +61 -0
- package/es/tree-select/index.js +86 -0
- package/es/tree-select/style/index.d.ts +6 -0
- package/es/tree-select/style/index.js +43 -0
- package/es/type/index.d.ts +1 -0
- package/es/type/index.js +353 -0
- package/es/typography/Base/CopyBtn.d.ts +13 -0
- package/es/typography/Base/CopyBtn.js +49 -0
- package/es/typography/Base/Ellipsis.d.ts +18 -0
- package/es/typography/Base/Ellipsis.js +1 -0
- package/es/typography/Base/EllipsisTooltip.d.ts +10 -0
- package/es/typography/Base/EllipsisTooltip.js +49 -0
- package/es/typography/Base/index.d.ts +59 -0
- package/es/typography/Base/index.js +83 -0
- package/es/typography/Base/util.d.ts +10 -0
- package/es/typography/Base/util.js +1 -0
- package/es/typography/Editable.d.ts +20 -0
- package/es/typography/Editable.js +74 -0
- package/es/typography/Link.d.ts +7 -0
- package/es/typography/Link.js +83 -0
- package/es/typography/Paragraph.d.ts +6 -0
- package/es/typography/Paragraph.js +83 -0
- package/es/typography/Text.d.ts +7 -0
- package/es/typography/Text.js +83 -0
- package/es/typography/Title.d.ts +8 -0
- package/es/typography/Title.js +83 -0
- package/es/typography/Typography.d.ts +19 -0
- package/es/typography/Typography.js +56 -0
- package/es/typography/hooks/useCopyClick.d.ts +11 -0
- package/es/typography/hooks/useCopyClick.js +1 -0
- package/es/typography/hooks/useMergedConfig.d.ts +1 -0
- package/es/typography/hooks/useMergedConfig.js +1 -0
- package/es/typography/hooks/usePrevious.d.ts +2 -0
- package/es/typography/hooks/usePrevious.js +1 -0
- package/es/typography/hooks/useTooltipProps.d.ts +61 -0
- package/es/typography/hooks/useTooltipProps.js +1 -0
- package/es/typography/index.d.ts +13 -0
- package/es/typography/index.js +83 -0
- package/es/typography/style/index.d.ts +18 -0
- package/es/typography/style/index.js +51 -0
- package/es/typography/style/mixins.d.ts +9 -0
- package/es/typography/style/mixins.js +6 -0
- package/es/upload/Dragger.d.ts +10 -0
- package/es/upload/Dragger.js +80 -0
- package/es/upload/Upload.d.ts +23 -0
- package/es/upload/Upload.js +80 -0
- package/es/upload/UploadList/ListItem.d.ts +28 -0
- package/es/upload/UploadList/ListItem.js +49 -0
- package/es/upload/UploadList/index.d.ts +8 -0
- package/es/upload/UploadList/index.js +57 -0
- package/es/upload/index.d.ts +13 -0
- package/es/upload/index.js +80 -0
- package/es/upload/interface.d.ts +138 -0
- package/es/upload/interface.js +0 -0
- package/es/upload/style/dragger.d.ts +4 -0
- package/es/upload/style/dragger.js +7 -0
- package/es/upload/style/index.d.ts +16 -0
- package/es/upload/style/index.js +66 -0
- package/es/upload/style/list.d.ts +4 -0
- package/es/upload/style/list.js +4 -0
- package/es/upload/style/motion.d.ts +4 -0
- package/es/upload/style/motion.js +10 -0
- package/es/upload/style/picture.d.ts +5 -0
- package/es/upload/style/picture.js +12 -0
- package/es/upload/style/rtl.d.ts +4 -0
- package/es/upload/style/rtl.js +1 -0
- package/es/upload/utils.d.ts +8 -0
- package/es/upload/utils.js +2 -0
- package/es/version/index.d.ts +2 -0
- package/es/version/index.js +1 -0
- package/es/watermark/context.d.ts +8 -0
- package/es/watermark/context.js +1 -0
- package/es/watermark/index.d.ts +26 -0
- package/es/watermark/index.js +35 -0
- package/es/watermark/useClips.d.ts +7 -0
- package/es/watermark/useClips.js +1 -0
- package/es/watermark/useRafDebounce.d.ts +4 -0
- package/es/watermark/useRafDebounce.js +1 -0
- package/es/watermark/useWatermark.d.ts +13 -0
- package/es/watermark/useWatermark.js +1 -0
- package/es/watermark/utils.d.ts +7 -0
- package/es/watermark/utils.js +1 -0
- package/package.json +147 -0
- package/umd/index.min.js +626 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
import type { GetDefaultToken } from '../../theme/internal';
|
|
3
|
+
/** Component only token. Which will handle additional calculation of alias token */
|
|
4
|
+
export interface ComponentToken {
|
|
5
|
+
/**
|
|
6
|
+
* @desc 文本横向内间距
|
|
7
|
+
* @descEN Horizontal padding of text
|
|
8
|
+
*/
|
|
9
|
+
textPaddingInline: CSSProperties['paddingInline'];
|
|
10
|
+
/**
|
|
11
|
+
* @desc 文本与边缘距离,取值 0 ~ 1
|
|
12
|
+
* @descEN Distance between text and edge, which should be a number between 0 and 1.
|
|
13
|
+
*/
|
|
14
|
+
orientationMargin: number;
|
|
15
|
+
/**
|
|
16
|
+
* @desc 纵向分割线的横向外间距
|
|
17
|
+
* @descEN Horizontal margin of vertical Divider
|
|
18
|
+
*/
|
|
19
|
+
verticalMarginInline: CSSProperties['marginInline'];
|
|
20
|
+
}
|
|
21
|
+
export declare const prepareComponentToken: GetDefaultToken<'Divider'>;
|
|
22
|
+
declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: React.ReactElement) => React.ReactElement, string, string];
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import {createTheme,useCacheToken,unit}from'@ant-design/cssinjs';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import*as ye from'react';import ye__default,{useContext}from'react';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';var E=(e,t=false)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),pe=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}});var j=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),W=(e,t,r,n)=>{let o=`[class^="${t}"], [class*=" ${t}"]`,s=r?`.${r}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},c={};return n!==false&&(c={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[s]:{...c,...i,[o]:i}}};var v=e=>({[`.${e}`]:{...pe(),[`.${e} .${e}-icon`]:{display:"block"}}});function U(e){return (e+8)/e}function M(e){let t=new Array(10).fill(null).map((r,n)=>{let o=n-1,s=e*Math.E**(o/5),i=n>1?Math.floor(s):Math.ceil(s);return Math.floor(i/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:U(r)}))}var V={version:"0.0.2"};var Q=V.version;var z={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},me={...z,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
2
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
3
|
+
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:false,motion:true},u=me;function w(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){let{colorSuccess:n,colorWarning:o,colorError:s,colorInfo:i,colorPrimary:c,colorBgBase:m,colorTextBase:l}=e,a=t(c),p=t(n),g=t(o),d=t(s),C=t(i),le=r(m,l),se=e.colorLink||e.colorInfo,P=t(se),ce=new TinyColor(d[1]).mix(new TinyColor(d[3]),50).toHexString();return {...le,colorPrimaryBg:a[1],colorPrimaryBgHover:a[2],colorPrimaryBorder:a[3],colorPrimaryBorderHover:a[4],colorPrimaryHover:a[5],colorPrimary:a[6],colorPrimaryActive:a[7],colorPrimaryTextHover:a[8],colorPrimaryText:a[9],colorPrimaryTextActive:a[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:d[1],colorErrorBgHover:d[2],colorErrorBgFilledHover:ce,colorErrorBgActive:d[3],colorErrorBorder:d[3],colorErrorBorderHover:d[4],colorErrorHover:d[5],colorError:d[6],colorErrorActive:d[7],colorErrorTextHover:d[8],colorErrorText:d[9],colorErrorTextActive:d[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:C[1],colorInfoBgHover:C[2],colorInfoBorder:C[3],colorInfoBorderHover:C[4],colorInfoHover:C[4],colorInfo:C[6],colorInfoActive:C[7],colorInfoTextHover:C[8],colorInfoText:C[9],colorInfoTextActive:C[10],colorLinkHover:P[4],colorLink:P[6],colorLinkActive:P[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var de=e=>{let t=e,r=e,n=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}},_=de;function I(e){let{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return {motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:o+1,..._(n)}}var fe=e=>{let{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},q=fe;var Ce=e=>{let t=M(e),r=t.map(a=>a.size),n=t.map(a=>a.lineHeight),o=r[1],s=r[0],i=r[2],c=n[1],m=n[0],l=n[2];return {fontSizeSM:s,fontSize:o,fontSizeLG:i,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:c,lineHeightLG:l,lineHeightSM:m,fontHeight:Math.round(c*o),fontHeightLG:Math.round(l*i),fontHeightSM:Math.round(m*s),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},K=Ce;function A(e){let{sizeUnit:t,sizeStep:r}=e;return {sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}var f=(e,t)=>new TinyColor(e).setAlpha(t).toRgbString(),y=(e,t)=>new TinyColor(e).darken(t).toHexString();var J=e=>{let t=generate(e);return {1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Z=(e,t)=>{let r=e||"#fff",n=t||"#000";return {colorBgBase:r,colorTextBase:n,colorText:f(n,.88),colorTextSecondary:f(n,.65),colorTextTertiary:f(n,.45),colorTextQuaternary:f(n,.25),colorFill:f(n,.15),colorFillSecondary:f(n,.06),colorFillTertiary:f(n,.04),colorFillQuaternary:f(n,.02),colorBgSolid:f(n,1),colorBgSolidHover:f(n,.75),colorBgSolidActive:f(n,.95),colorBgLayout:y(r,4),colorBgContainer:y(r,0),colorBgElevated:y(r,0),colorBgSpotlight:f(n,.85),colorBgBlur:"transparent",colorBorder:y(r,15),colorBorderSecondary:y(r,6)}};function B(e){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let t=Object.keys(z).map(r=>{let n=e[r]===presetPrimaryColors[r]?presetPalettes[r]:generate(e[r]);return new Array(10).fill(1).reduce((o,s,i)=>(o[`${r}-${i+1}`]=n[i],o[`${r}${i+1}`]=n[i],o),{})}).reduce((r,n)=>(r={...r,...n},r),{});return {...e,...t,...w(e,{generateColorPalettes:J,generateNeutralColorPalettes:Z}),...K(e.fontSize),...A(e),...q(e),...I(e)}}var ee=createTheme(B),oe={token:u,override:{override:u},hashed:true},F=ye__default.createContext(oe);function G(e){return e>=0&&e<=255}function Te(e,t){let{r,g:n,b:o,a:s}=new TinyColor(e).toRgb();if(s<1)return e;let{r:i,g:c,b:m}=new TinyColor(t).toRgb();for(let l=.01;l<=1;l+=.01){let a=Math.round((r-i*(1-l))/l),p=Math.round((n-c*(1-l))/l),g=Math.round((o-m*(1-l))/l);if(G(a)&&G(p)&&G(g))return new TinyColor({r:a,g:p,b:g,a:Math.round(l*100)/100}).toRgbString()}return new TinyColor({r,g:n,b:o,a:1}).toRgbString()}var x=Te;function b(e){let{override:t,...r}=e,n={...t};Object.keys(u).forEach(g=>{delete n[g];});let o={...r,...n},s=480,i=576,c=768,m=992,l=1200,a=1600;return o.motion===false&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),{...o,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:x(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:x(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:x(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:x(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
|
|
4
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
5
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
6
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
7
|
+
`,boxShadowSecondary:`
|
|
8
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
9
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
10
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
11
|
+
`,boxShadowTertiary:`
|
|
12
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
13
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
14
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
15
|
+
`,screenXS:s,screenXSMin:s,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:c-1,screenMD:c,screenMDMin:c,screenMDMax:m-1,screenLG:m,screenLGMin:m,screenLGMax:l-1,screenXL:l,screenXLMin:l,screenXLMax:a-1,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
16
|
+
0 1px 2px -2px ${new TinyColor("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
17
|
+
0 3px 6px 0 ${new TinyColor("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
18
|
+
0 5px 12px 4px ${new TinyColor("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
19
|
+
`,boxShadowDrawerRight:`
|
|
20
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
21
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
22
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
23
|
+
`,boxShadowDrawerLeft:`
|
|
24
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
25
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
26
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
27
|
+
`,boxShadowDrawerUp:`
|
|
28
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
29
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
30
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
31
|
+
`,boxShadowDrawerDown:`
|
|
32
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
33
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
34
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
35
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",...n}}var $={lineHeight:true,lineHeightSM:true,lineHeightLG:true,lineHeightHeading1:true,lineHeightHeading2:true,lineHeightHeading3:true,lineHeightHeading4:true,lineHeightHeading5:true,opacityLoading:true,fontWeightStrong:true,zIndexPopupBase:true,zIndexBase:true,opacityImage:true},he={size:true,sizeSM:true,sizeLG:true,sizeMD:true,sizeXS:true,sizeXXS:true,sizeMS:true,sizeXL:true,sizeXXL:true,sizeUnit:true,sizeStep:true,motionBase:true,motionUnit:true},Pe={screenXS:true,screenXSMin:true,screenXSMax:true,screenSM:true,screenSMMin:true,screenSMMax:true,screenMD:true,screenMDMin:true,screenMDMax:true,screenLG:true,screenLGMin:true,screenLGMax:true,screenXL:true,screenXLMin:true,screenXLMax:true,screenXXL:true,screenXXLMin:true},te=(e,t,r)=>{let n=r.getDerivativeToken(e),{override:o,...s}=t,i={...n,override:o};return i=b(i),s&&Object.entries(s).forEach(([c,m])=>{let{theme:l,...a}=m,p=a;l&&(p=te({...i,...a},{override:a},l)),i[c]=p;}),i};function T(){let{token:e,hashed:t,theme:r,override:n,cssVar:o}=ye__default.useContext(F),s=`${Q}-${t||""}`,i=r||ee,[c,m,l]=useCacheToken(i,[u,e],{salt:s,override:n,getComputedToken:te,formatToken:b,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:$,ignore:he,preserve:Pe}});return [i,l,t?m:"",c,o]}var re="ant",O="anticon";var ve=(e,t)=>t||(e?`${re}-${e}`:re),h=ye.createContext({getPrefixCls:ve,iconPrefixCls:O}),{Consumer:Io}=h;var{genStyleHooks:X,genComponentStyleHook:ze,genSubStyleComponent:He}=genStyleUtils({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=useContext(h);return {rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,r,n,o]=T();return {theme:e,realToken:t,hashId:r,token:n,cssVar:o}},useCSP:()=>{let{csp:e}=useContext(h);return e??{}},getResetStyles:(e,t)=>[{"&":j(e)},v(t?.prefix.iconPrefixCls??O)],getCommonStyle:W,getCompUnitless:(()=>$)});var we=e=>{let{componentCls:t,sizePaddingEdgeHorizontal:r,colorSplit:n,lineWidth:o,textPaddingInline:s,orientationMargin:i,verticalMarginInline:c}=e;return {[t]:{...E(e),borderBlockStart:`${unit(o)} solid ${n}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:c,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${unit(o)} solid ${n}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${unit(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${unit(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${n}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${unit(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${i} * 100%)`},"&::after":{width:`calc(100% - ${i} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${i} * 100%)`},"&::after":{width:`calc(${i} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:s},"&-dashed":{background:"none",borderColor:n,borderStyle:"dashed",borderWidth:`${unit(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:n,borderStyle:"dotted",borderWidth:`${unit(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:r}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:r}}}}},Ie=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),pt=X("Divider",e=>{let t=mergeToken(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return [we(t)]},Ie,{unitless:{orientationMargin:true}});export{pt as default,Ie as prepareComponentToken};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SortableBoardProps } from './type';
|
|
3
|
+
export declare function SortableBoard<T extends Record<string, any>>({ boardScopeId, boards, itemKey, onDragFinish, className, style, boardClassName, boardStyle, zoneWrapClassName, zoneWrapStyle, itemClassName, itemStyle, renderBoardHeader, renderZoneHeader, renderItem, renderDragHandle, }: SortableBoardProps<T>): React.JSX.Element;
|
|
4
|
+
export default SortableBoard;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import f,{createContext,useEffect,useMemo,useContext}from'react';import {useDroppable}from'@dnd-kit/core';import {SortableContext,verticalListSortingStrategy,useSortable}from'@dnd-kit/sortable';import {CSS}from'@dnd-kit/utilities';var N=createContext(null);function Z(){let e=useContext(N);if(!e)throw new Error("SortableBoard must be used within SortableBoardProvider");return e}function D(e,n){return e[n]}function k({item:e,itemIndex:n,zone:t,zoneIndex:r,itemKey:p,itemClassName:s,itemStyle:m,renderItem:I,renderDragHandle:d}){let a=D(e,p),{attributes:o,listeners:c,setNodeRef:S,transform:v,transition:u,isDragging:g}=useSortable({id:a,data:{type:"item",zoneId:t.id,itemId:a}}),l=typeof d=="function",b={...m,transform:CSS.Transform.toString(v),transition:u||"transform 180ms ease",willChange:"transform",touchAction:"none",position:"relative",zIndex:g?10:void 0,cursor:l?void 0:"move",opacity:g?.35:1},x=l?d(e,n,t,r,{attributes:o,listeners:c,isDragging:g}):void 0;return f.createElement("div",{ref:S,className:s,style:b,...l?{}:o,...l?{}:c},I(e,n,t,r,x))}function R({zone:e,zoneIndex:n,itemKey:t,itemClassName:r,itemStyle:p,renderZoneHeader:s,renderItem:m,renderDragHandle:I}){let{setNodeRef:d,isOver:a}=useDroppable({id:e.id,data:{type:"zone",zoneId:e.id}});return f.createElement("div",{className:e.className,style:{...e.style}},s?s(e,n):e.title?f.createElement("div",null,e.title):null,f.createElement("div",{ref:d,className:e.bodyClassName,style:{display:"flex",flexDirection:"column",gap:8,minHeight:40,transition:"background-color 160ms ease, border-color 160ms ease",...e.bodyStyle,backgroundColor:a?"#f5f9ff":e.bodyStyle?.backgroundColor}},f.createElement(SortableContext,{items:e.items.map(o=>D(o,t)),strategy:verticalListSortingStrategy},e.items.map((o,c)=>f.createElement(k,{key:String(D(o,t)),item:o,itemIndex:c,zone:e,zoneIndex:n,itemKey:t,itemClassName:r,itemStyle:p,renderItem:m,renderDragHandle:I})))))}function L({boardScopeId:e,boards:n,itemKey:t="id",onDragFinish:r,className:p,style:s,boardClassName:m,boardStyle:I,zoneWrapClassName:d,zoneWrapStyle:a,itemClassName:o,itemStyle:c,renderBoardHeader:S,renderZoneHeader:v,renderItem:u,renderDragHandle:g}){let{registerScope:l,unregisterScope:b,updateScope:x,getPreviewScopeBoards:T}=Z();useEffect(()=>(l(e,{scopeId:e,boards:n,itemKey:t,renderItem:u,onDragFinish:r}),()=>{b(e);}),[]),useEffect(()=>{x(e,{scopeId:e,boards:n,itemKey:t,renderItem:u,onDragFinish:r});},[e,n,t,u,r,x]);let U=useMemo(()=>T(e)??n,[e,n,T]);return f.createElement("div",{className:p,style:s},U.map((i,C)=>f.createElement("div",{key:String(i.id),className:i.className??m,style:{...I,...i.style}},S?S(i,C):i.title?f.createElement("div",null,i.title):null,f.createElement("div",{className:d,style:a},f.createElement(R,{zone:i,zoneIndex:C,itemKey:t,itemClassName:o,itemStyle:c,renderZoneHeader:v,renderItem:u,renderDragHandle:g})))))}var fe=L;export{L as SortableBoard,fe as default};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { UniqueIdentifier } from '@dnd-kit/core';
|
|
3
|
+
import type { SortableBoardProviderProps } from './type';
|
|
4
|
+
interface ProviderContextValue {
|
|
5
|
+
registerScope: (scopeId: UniqueIdentifier, config: any) => void;
|
|
6
|
+
unregisterScope: (scopeId: UniqueIdentifier) => void;
|
|
7
|
+
updateScope: (scopeId: UniqueIdentifier, config: any) => void;
|
|
8
|
+
getScopeBoards: (scopeId: UniqueIdentifier) => any[];
|
|
9
|
+
getPreviewScopeBoards: (scopeId: UniqueIdentifier) => any[] | null;
|
|
10
|
+
activeId: UniqueIdentifier | null;
|
|
11
|
+
}
|
|
12
|
+
export declare function SortableBoardProvider({ children, activationDistance, }: SortableBoardProviderProps): React.JSX.Element;
|
|
13
|
+
export declare function useSortableBoardContext(): ProviderContextValue;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import R,{createContext,useRef,useState,useCallback,useMemo,useContext}from'react';import {useSensors,useSensor,PointerSensor,pointerWithin,rectIntersection,getFirstCollision,DndContext,DragOverlay}from'@dnd-kit/core';import {arrayMove}from'@dnd-kit/sortable';var H=createContext(null);function x(n,f){return n[f]}function Ie(n="both"){return n==="both"||n==="in-only"}function ge(n="both"){return n==="both"||n==="out-only"}function T(n){return n.map(f=>({...f,items:[...f.items]}))}function U(n,f){for(let[s,c]of n)for(let i=0;i<c.boards.length;i++){let r=c.boards[i],l=r.items.findIndex(C=>x(C,c.itemKey)===f);if(l!==-1)return {scopeId:s,zone:r,zoneIndex:i,itemIndex:l,item:r.items[l]}}return null}function A(n,f){for(let[s,c]of n)for(let i=0;i<c.boards.length;i++){let r=c.boards[i];if(r.id===f)return {scopeId:s,zone:r,zoneIndex:i,scope:c}}return null}function me(n,f){if(!n)return null;let s=n.data.current;if(s?.zoneId!=null)return s.zoneId;for(let[,c]of f)for(let i of c.boards)if(i.id===n.id||i.items.some(r=>x(r,c.itemKey)===n.id))return i.id;return null}function xe({children:n,activationDistance:f=8}){let s=useRef(new Map),[c,i]=useState(null),[r,l]=useState(null),C=useSensors(useSensor(PointerSensor,{activationConstraint:{distance:f}})),P=useCallback((e,o)=>{s.current.set(e,o);},[]),E=useCallback(e=>{s.current.delete(e);},[]),w=useCallback((e,o)=>{s.current.set(e,o);},[]),B=useCallback(e=>s.current.get(e)?.boards??[],[]),L=useCallback(e=>r?r.get(e)??null:null,[r]),W=useCallback(e=>{let o=pointerWithin(e);if(o.length>0)return o;let d=rectIntersection(e);return getFirstCollision(d,"id")?d:[]},[]),j=({active:e})=>{i(e.id);let o=new Map;for(let[d,t]of s.current)o.set(d,T(t.boards));l(o);},J=({active:e,over:o})=>{if(!o||!r)return;let d=new Map;for(let[u,q]of s.current)d.set(u,{...q,boards:r.get(u)??q.boards});let t=U(d,e.id);if(!t)return;let a=me(o,d);if(a==null)return;let g=A(d,t.zone.id),p=A(d,a);if(!g||!p)return;let m=g.zone,S=p.zone,O=m.id!==S.id,$=m.transferMode??"both",ee=S.transferMode??"both";if(O&&(!ge($)||!Ie(ee)))return;let I=new Map(r),b=T(I.get(t.scopeId)??[]),h=t.scopeId===p.scopeId?b:T(I.get(p.scopeId)??[]),M=b.findIndex(u=>u.id===m.id),K=h.findIndex(u=>u.id===S.id);if(M===-1||K===-1)return;let Z=b[M].items,y=h[K].items,z=d.get(t.scopeId);if(!z)return;let D=Z.findIndex(u=>x(u,z.itemKey)===e.id);if(D===-1)return;if(!O&&t.scopeId===p.scopeId){let u=y.findIndex(q=>x(q,z.itemKey)===o.id);if(u===-1||u===D)return;b[M].items=arrayMove(Z,D,u),I.set(t.scopeId,b),l(I);return}let[k]=Z.splice(D,1);if(!k)return;let F=d.get(p.scopeId);if(!F)return;let V=y.length,N=y.findIndex(u=>x(u,F.itemKey)===o.id);N!==-1&&(V=N),y.splice(V,0,k),I.set(t.scopeId,b),I.set(p.scopeId,h),l(I);},Q=({active:e,over:o})=>{if(!r){i(null);return}let d=new Map;for(let[m,S]of s.current)d.set(m,{...S,boards:r.get(m)??S.boards});let t=U(s.current,e.id),a=U(d,e.id);if(i(null),!o||!t||!a){l(null);return}let g=s.current.get(t.scopeId),p=s.current.get(a.scopeId);if(!g||!p){l(null);return}if(t.scopeId===a.scopeId&&t.zone.id===a.zone.id&&t.itemIndex===a.itemIndex){l(null);return}g.onDragFinish?.({scopeId:t.scopeId,boards:r.get(t.scopeId)??g.boards}),t.scopeId!==a.scopeId&&p.onDragFinish?.({scopeId:a.scopeId,boards:r.get(a.scopeId)??p.boards}),l(null);},X=()=>{i(null),l(null);},Y=(()=>{if(c==null)return null;let e=new Map;for(let[t,a]of s.current)e.set(t,{...a,boards:r?.get(t)??a.boards});let o=U(e,c);if(!o)return null;let d=e.get(o.scopeId);return d?d.renderItem(o.item,o.itemIndex,o.zone,o.zoneIndex):null})(),_=useMemo(()=>({registerScope:P,unregisterScope:E,updateScope:w,getScopeBoards:B,getPreviewScopeBoards:L,activeId:c}),[P,E,w,B,L,c]);return R.createElement(H.Provider,{value:_},R.createElement(DndContext,{collisionDetection:W,sensors:C,onDragStart:j,onDragOver:J,onDragEnd:Q,onDragCancel:X},n,R.createElement(DragOverlay,null,Y)))}function ye(){let n=useContext(H);if(!n)throw new Error("SortableBoard must be used within SortableBoardProvider");return n}export{xe as SortableBoardProvider,ye as useSortableBoardContext};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DragHandleProps, DragFinishParams, SortableListProps } from './type';
|
|
3
|
+
export type { DragHandleProps, DragFinishParams, SortableListProps };
|
|
4
|
+
/**
|
|
5
|
+
* 通用拖拽排序列表组件
|
|
6
|
+
*/
|
|
7
|
+
export declare function SortableList<T extends Record<string, any>>({ items, onDragFinish, renderItem, renderDragHandle, itemKey, direction, className, style, itemClassName, itemStyle, activationDistance, }: SortableListProps<T>): React.JSX.Element;
|
|
8
|
+
export default SortableList;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t,{useState,useMemo}from'react';import {useSensors,useSensor,PointerSensor,DndContext,closestCenter,DragOverlay}from'@dnd-kit/core';import {restrictToHorizontalAxis,restrictToVerticalAxis}from'@dnd-kit/modifiers';import {arrayMove,SortableContext,horizontalListSortingStrategy,verticalListSortingStrategy,useSortable}from'@dnd-kit/sortable';import {CSS}from'@dnd-kit/utilities';function o(e,a){return e[a]}function B({item:e,index:a,itemKey:u,renderItem:x,renderDragHandle:r,className:S,style:I}){let y=o(e,u),{attributes:d,listeners:l,setNodeRef:v,transform:s,transition:c,isDragging:g}=useSortable({id:y}),i=typeof r=="function",h={...I,transform:CSS.Transform.toString(s),transition:c||"transform 200ms ease",willChange:"transform",touchAction:"none",position:"relative",zIndex:g?10:void 0,cursor:i?void 0:"move",flexShrink:0,opacity:g?.3:1},m=i?r(e,a,{attributes:d,listeners:l,isDragging:g}):void 0;return t.createElement("div",{ref:v,style:h,className:S,...i?{}:d,...i?{}:l},x(e,a,m))}function G({items:e,onDragFinish:a,renderItem:u,renderDragHandle:x,itemKey:r="id",direction:S="horizontal",className:I,style:y,itemClassName:d,itemStyle:l,activationDistance:v=8}){let[s,c]=useState(null),g=useSensors(useSensor(PointerSensor,{activationConstraint:{distance:v}})),i=S==="horizontal"?[restrictToHorizontalAxis]:[restrictToVerticalAxis],h=S==="horizontal"?horizontalListSortingStrategy:verticalListSortingStrategy,m=useMemo(()=>s==null?null:e.find(n=>o(n,r)===s)??null,[s,e,r]);return t.createElement(DndContext,{collisionDetection:closestCenter,sensors:g,modifiers:i,onDragStart:({active:n})=>{c(n.id);},onDragEnd:({active:n,over:f})=>{if(c(null),!f||n.id===f.id)return;let p=e.findIndex(b=>o(b,r)===n.id),D=e.findIndex(b=>o(b,r)===f.id);if(p===-1||D===-1)return;let T=e[p],P=e[D];if(!T||!P)return;let C=arrayMove(e,p,D);a?.({activeItem:T,overItem:P,oldIndex:p,newIndex:D,newItems:C});},onDragCancel:()=>{c(null);}},t.createElement(SortableContext,{items:e.map(n=>o(n,r)),strategy:h},t.createElement("div",{className:I,style:y},e.map((n,f)=>t.createElement(B,{key:String(o(n,r)),item:n,index:f,itemKey:r,renderItem:u,renderDragHandle:x,className:d,style:l})))),t.createElement(DragOverlay,null,m?t.createElement("div",{className:d,style:{...l,flexShrink:0,cursor:"grabbing"}},u(m,e.findIndex(n=>o(n,r)===s))):null))}var K=G;export{G as SortableList,K as default};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SortableZonesProps } from './type';
|
|
3
|
+
/**
|
|
4
|
+
* 多区域受控拖拽组件
|
|
5
|
+
*/
|
|
6
|
+
export declare function SortableZones<T extends Record<string, any>>({ zones, itemKey, onDragFinish, activationDistance, className, style, itemClassName, itemStyle, renderZoneHeader, renderItem, renderDragHandle, }: SortableZonesProps<T>): React.JSX.Element;
|
|
7
|
+
export default SortableZones;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import h,{useState,useMemo,useCallback}from'react';import {useSensors,useSensor,PointerSensor,pointerWithin,rectIntersection,getFirstCollision,DndContext,DragOverlay,useDroppable}from'@dnd-kit/core';import {arrayMove,SortableContext,verticalListSortingStrategy,useSortable}from'@dnd-kit/sortable';import {CSS}from'@dnd-kit/utilities';function f(e,n){return e[n]}function re({item:e,itemIndex:n,zone:o,zoneIndex:t,itemKey:r,itemClassName:a,itemStyle:I,renderItem:v,renderDragHandle:b}){let Z=f(e,r),{attributes:m,listeners:p,setNodeRef:R,transform:N,transition:T,isDragging:P}=useSortable({id:Z,data:{type:"item",zoneId:o.id,itemId:Z}}),S=typeof b=="function",C={...I,transform:CSS.Transform.toString(N),transition:T||"transform 180ms ease",willChange:"transform",touchAction:"none",position:"relative",zIndex:P?10:void 0,cursor:S?void 0:"move",opacity:P?.35:1},E=S?b(e,n,o,t,{attributes:m,listeners:p,isDragging:P}):void 0;return h.createElement("div",{ref:R,className:a,style:C,...S?{}:m,...S?{}:p},v(e,n,o,t,E))}function W({zone:e,zoneIndex:n,itemKey:o,itemClassName:t,itemStyle:r,renderZoneHeader:a,renderItem:I,renderDragHandle:v}){let{setNodeRef:b,isOver:Z}=useDroppable({id:e.id,data:{type:"zone",zoneId:e.id}});return h.createElement("div",{className:e.className,style:{...e.style}},a?a(e,n):e.title?h.createElement("div",null,e.title):null,h.createElement("div",{ref:b,className:e.bodyClassName,style:{display:"flex",flexDirection:"column",gap:8,minHeight:40,transition:"background-color 160ms ease, border-color 160ms ease",...e.bodyStyle,backgroundColor:Z?"#f5f9ff":e.bodyStyle?.backgroundColor}},h.createElement(SortableContext,{items:e.items.map(m=>f(m,o)),strategy:verticalListSortingStrategy},e.items.map((m,p)=>h.createElement(re,{key:String(f(m,o)),item:m,itemIndex:p,zone:e,zoneIndex:n,itemKey:o,itemClassName:t,itemStyle:r,renderItem:I,renderDragHandle:v})))))}function O(e,n,o){for(let t=0;t<e.length;t++){let r=e[t],a=r.items.findIndex(I=>f(I,o)===n);if(a!==-1)return {zone:r,zoneIndex:t,itemIndex:a,item:r.items[a]}}return null}function G(e="both"){return e==="both"||e==="in-only"}function J(e="both"){return e==="both"||e==="out-only"}function Q(e){return e.map(n=>({...n,items:[...n.items]}))}function V(e,n,o){if(e.length!==n.length)return false;for(let t=0;t<e.length;t++){if(e[t].id!==n[t].id||e[t].items.length!==n[t].items.length)return false;for(let r=0;r<e[t].items.length;r++)if(f(e[t].items[r],o)!==f(n[t].items[r],o))return false}return true}function Ie(e,n,o){if(!e)return null;let t=e.data.current;if(t?.zoneId!=null)return t.zoneId;for(let r of n)if(r.id===e.id||r.items.some(a=>f(a,o)===e.id))return r.id;return null}function pe({zones:e,itemKey:n="id",onDragFinish:o,activationDistance:t=8,className:r,style:a,itemClassName:I,itemStyle:v,renderZoneHeader:b,renderItem:Z,renderDragHandle:m}){let[p,R]=useState(null),[N,T]=useState(null),P=useSensors(useSensor(PointerSensor,{activationConstraint:{distance:t}})),S=N??e,C=useMemo(()=>p==null?null:O(e,p,n),[p,e,n]),E=C?.item??null,X=useCallback(d=>{let l=pointerWithin(d);if(l.length>0)return l;let s=rectIntersection(d);return getFirstCollision(s,"id")?s:[]},[]);return h.createElement(DndContext,{collisionDetection:X,sensors:P,onDragStart:({active:d})=>{R(d.id),T(Q(e));},onDragOver:({active:d,over:l})=>{if(!l)return;let s=N??e,c=O(s,d.id,n);if(!c)return;let u=Ie(l,s,n);if(u==null)return;let x=s.find(i=>i.id===c.zone.id),D=s.find(i=>i.id===u);if(!x||!D)return;let L=x.transferMode??"both",y=D.transferMode??"both",H=x.id!==D.id;if(H&&(!J(L)||!G(y)))return;let g=Q(s),q=g.findIndex(i=>i.id===x.id),w=g.findIndex(i=>i.id===D.id);if(q===-1||w===-1)return;let U=g[q].items,M=g[w].items,z=U.findIndex(i=>f(i,n)===d.id);if(z===-1)return;if(!H){let i=M.findIndex(_=>f(_,n)===l.id);if(i===-1||i===z)return;let Y=arrayMove(U,z,i);g[q].items=Y,V(s,g,n)||T(g);return}let[F]=U.splice(z,1);if(!F)return;let A=M.length,j=M.findIndex(i=>f(i,n)===l.id);j!==-1&&(A=j),M.splice(A,0,F),V(s,g,n)||T(g);},onDragEnd:({active:d,over:l})=>{let s=N??e;if(R(null),T(null),!l)return;let c=O(e,d.id,n),u=O(s,d.id,n);if(!c||!u)return;let x=e.find(y=>y.id===c.zone.id),D=s.find(y=>y.id===u.zone.id);if(!x||!D)return;if(x.id!==D.id){let y=x.transferMode??"both",H=D.transferMode??"both";if(!J(y)||!G(H))return}c.zone.id===u.zone.id&&c.itemIndex===u.itemIndex||o?.({activeItem:c.item,fromZoneId:c.zone.id,toZoneId:u.zone.id,oldIndex:c.itemIndex,newIndex:u.itemIndex,newZones:s});},onDragCancel:()=>{R(null),T(null);}},h.createElement("div",{className:r,style:a},S.map((d,l)=>h.createElement(W,{key:String(d.id),zone:d,zoneIndex:l,itemKey:n,itemClassName:I,itemStyle:v,renderZoneHeader:b,renderItem:Z,renderDragHandle:m}))),h.createElement(DragOverlay,null,E?h.createElement("div",{className:I,style:{...v,cursor:"grabbing"}},Z(E,C?.itemIndex??-1,C?.zone,C?.zoneIndex??-1)):null))}var ke=pe;export{pe as SortableZones,ke as default};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { UniqueIdentifier } from '@dnd-kit/core';
|
|
3
|
+
import type { DragHandleProps, DragZone } from './type';
|
|
4
|
+
export interface SortableZoneItemProps<T extends Record<string, any>> {
|
|
5
|
+
item: T;
|
|
6
|
+
itemIndex: number;
|
|
7
|
+
zone: DragZone<T>;
|
|
8
|
+
zoneIndex: number;
|
|
9
|
+
itemKey: keyof T;
|
|
10
|
+
itemClassName?: string;
|
|
11
|
+
itemStyle?: React.CSSProperties;
|
|
12
|
+
renderItem: (item: T, itemIndex: number, zone: DragZone<T>, zoneIndex: number, dragHandle?: React.ReactNode) => React.ReactNode;
|
|
13
|
+
renderDragHandle?: (item: T, itemIndex: number, zone: DragZone<T>, zoneIndex: number, dragHandleProps: DragHandleProps) => React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export interface ZoneContainerProps<T extends Record<string, any>> {
|
|
16
|
+
zone: DragZone<T>;
|
|
17
|
+
zoneIndex: number;
|
|
18
|
+
itemKey: keyof T;
|
|
19
|
+
itemClassName?: string;
|
|
20
|
+
itemStyle?: React.CSSProperties;
|
|
21
|
+
renderZoneHeader?: (zone: DragZone<T>, zoneIndex: number) => React.ReactNode;
|
|
22
|
+
renderItem: (item: T, itemIndex: number, zone: DragZone<T>, zoneIndex: number, dragHandle?: React.ReactNode) => React.ReactNode;
|
|
23
|
+
renderDragHandle?: (item: T, itemIndex: number, zone: DragZone<T>, zoneIndex: number, dragHandleProps: DragHandleProps) => React.ReactNode;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* 获取元素 id
|
|
27
|
+
*/
|
|
28
|
+
export declare function getItemId<T extends Record<string, any>>(item: T, itemKey: keyof T): UniqueIdentifier;
|
|
29
|
+
/**
|
|
30
|
+
* 单个排序项
|
|
31
|
+
*/
|
|
32
|
+
export declare function SortableZoneItem<T extends Record<string, any>>({ item, itemIndex, zone, zoneIndex, itemKey, itemClassName, itemStyle, renderItem, renderDragHandle, }: SortableZoneItemProps<T>): React.JSX.Element;
|
|
33
|
+
/**
|
|
34
|
+
* 单个区域容器
|
|
35
|
+
*/
|
|
36
|
+
export declare function ZoneContainer<T extends Record<string, any>>({ zone, zoneIndex, itemKey, itemClassName, itemStyle, renderZoneHeader, renderItem, renderDragHandle, }: ZoneContainerProps<T>): React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import o from'react';import {useSortable,SortableContext,verticalListSortingStrategy}from'@dnd-kit/sortable';import {useDroppable}from'@dnd-kit/core';import {CSS}from'@dnd-kit/utilities';function u(e,t){return e[t]}function Z({item:e,itemIndex:t,zone:r,zoneIndex:a,itemKey:c,itemClassName:i,itemStyle:g,renderItem:f,renderDragHandle:d}){let s=u(e,c),{attributes:n,listeners:m,setNodeRef:y,transform:b,transition:x,isDragging:p}=useSortable({id:s,data:{type:"item",zoneId:r.id,itemId:s}}),l=typeof d=="function",I={...g,transform:CSS.Transform.toString(b),transition:x||"transform 180ms ease",willChange:"transform",touchAction:"none",position:"relative",zIndex:p?10:void 0,cursor:l?void 0:"move",opacity:p?.35:1},S=l?d(e,t,r,a,{attributes:n,listeners:m,isDragging:p}):void 0;return o.createElement("div",{ref:y,className:i,style:I,...l?{}:n,...l?{}:m},f(e,t,r,a,S))}function h({zone:e,zoneIndex:t,itemKey:r,itemClassName:a,itemStyle:c,renderZoneHeader:i,renderItem:g,renderDragHandle:f}){let{setNodeRef:d,isOver:s}=useDroppable({id:e.id,data:{type:"zone",zoneId:e.id}});return o.createElement("div",{className:e.className,style:{...e.style}},i?i(e,t):e.title?o.createElement("div",null,e.title):null,o.createElement("div",{ref:d,className:e.bodyClassName,style:{display:"flex",flexDirection:"column",gap:8,minHeight:40,transition:"background-color 160ms ease, border-color 160ms ease",...e.bodyStyle,backgroundColor:s?"#f5f9ff":e.bodyStyle?.backgroundColor}},o.createElement(SortableContext,{items:e.items.map(n=>u(n,r)),strategy:verticalListSortingStrategy},e.items.map((n,m)=>o.createElement(Z,{key:String(u(n,r)),item:n,itemIndex:m,zone:e,zoneIndex:t,itemKey:r,itemClassName:a,itemStyle:c,renderItem:g,renderDragHandle:f})))))}export{Z as SortableZoneItem,h as ZoneContainer,u as getItemId};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SortableList } from './SortableList';
|
|
2
|
+
import { SortableZones } from './SortableZone';
|
|
3
|
+
import { SortableBoard } from './SortableBoard';
|
|
4
|
+
import { SortableBoardProvider } from './SortableBoardProvider';
|
|
5
|
+
export type { Direction, TransferMode, DragHandleProps, DragFinishParams, SortableListProps, DragZone, ZoneDragFinishParams, SortableZonesProps, MultiZoneDragFinishParams, MultiSortableZonesProps, DragBoard, DragBoardFinishParams, SortableBoardProps, SortableBoardProviderProps, } from './type';
|
|
6
|
+
declare const Drag: {
|
|
7
|
+
SortableList: typeof SortableList;
|
|
8
|
+
SortableZones: typeof SortableZones;
|
|
9
|
+
SortableBoard: typeof SortableBoard;
|
|
10
|
+
SortableBoardProvider: typeof SortableBoardProvider;
|
|
11
|
+
};
|
|
12
|
+
export default Drag;
|
package/es/drag/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import A,{createContext,useState,useMemo,useCallback,useRef,useEffect,useContext}from'react';import {useSensors,useSensor,PointerSensor,DndContext,closestCenter,DragOverlay,pointerWithin,rectIntersection,getFirstCollision,useDroppable}from'@dnd-kit/core';import {restrictToHorizontalAxis,restrictToVerticalAxis}from'@dnd-kit/modifiers';import {arrayMove,SortableContext,horizontalListSortingStrategy,verticalListSortingStrategy,useSortable}from'@dnd-kit/sortable';import {CSS}from'@dnd-kit/utilities';function V(e,n){return e[n]}function Le({item:e,index:n,itemKey:o,renderItem:r,renderDragHandle:t,className:s,style:u}){let b=V(e,o),{attributes:v,listeners:x,setNodeRef:S,transform:I,transition:y,isDragging:h}=useSortable({id:b}),m=typeof t=="function",q={...u,transform:CSS.Transform.toString(I),transition:y||"transform 200ms ease",willChange:"transform",touchAction:"none",position:"relative",zIndex:h?10:void 0,cursor:m?void 0:"move",flexShrink:0,opacity:h?.3:1},C=m?t(e,n,{attributes:v,listeners:x,isDragging:h}):void 0;return A.createElement("div",{ref:S,style:q,className:s,...m?{}:v,...m?{}:x},r(e,n,C))}function se({items:e,onDragFinish:n,renderItem:o,renderDragHandle:r,itemKey:t="id",direction:s="horizontal",className:u,style:b,itemClassName:v,itemStyle:x,activationDistance:S=8}){let[I,y]=useState(null),h=useSensors(useSensor(PointerSensor,{activationConstraint:{distance:S}})),m=s==="horizontal"?[restrictToHorizontalAxis]:[restrictToVerticalAxis],q=s==="horizontal"?horizontalListSortingStrategy:verticalListSortingStrategy,C=useMemo(()=>I==null?null:e.find(i=>V(i,t)===I)??null,[I,e,t]);return A.createElement(DndContext,{collisionDetection:closestCenter,sensors:h,modifiers:m,onDragStart:({active:i})=>{y(i.id);},onDragEnd:({active:i,over:a})=>{if(y(null),!a||i.id===a.id)return;let f=e.findIndex(g=>V(g,t)===i.id),c=e.findIndex(g=>V(g,t)===a.id);if(f===-1||c===-1)return;let d=e[f],p=e[c];if(!d||!p)return;let l=arrayMove(e,f,c);n?.({activeItem:d,overItem:p,oldIndex:f,newIndex:c,newItems:l});},onDragCancel:()=>{y(null);}},A.createElement(SortableContext,{items:e.map(i=>V(i,t)),strategy:q},A.createElement("div",{className:u,style:b},e.map((i,a)=>A.createElement(Le,{key:String(V(i,t)),item:i,index:a,itemKey:t,renderItem:o,renderDragHandle:r,className:v,style:x})))),A.createElement(DragOverlay,null,C?A.createElement("div",{className:v,style:{...x,flexShrink:0,cursor:"grabbing"}},o(C,e.findIndex(i=>V(i,t)===I))):null))}function M(e,n){return e[n]}function Ae({item:e,itemIndex:n,zone:o,zoneIndex:r,itemKey:t,itemClassName:s,itemStyle:u,renderItem:b,renderDragHandle:v}){let x=M(e,t),{attributes:S,listeners:I,setNodeRef:y,transform:h,transition:m,isDragging:q}=useSortable({id:x,data:{type:"item",zoneId:o.id,itemId:x}}),C=typeof v=="function",U={...u,transform:CSS.Transform.toString(h),transition:m||"transform 180ms ease",willChange:"transform",touchAction:"none",position:"relative",zIndex:q?10:void 0,cursor:C?void 0:"move",opacity:q?.35:1},N=C?v(e,n,o,r,{attributes:S,listeners:I,isDragging:q}):void 0;return A.createElement("div",{ref:y,className:s,style:U,...C?{}:S,...C?{}:I},b(e,n,o,r,N))}function ne({zone:e,zoneIndex:n,itemKey:o,itemClassName:r,itemStyle:t,renderZoneHeader:s,renderItem:u,renderDragHandle:b}){let{setNodeRef:v,isOver:x}=useDroppable({id:e.id,data:{type:"zone",zoneId:e.id}});return A.createElement("div",{className:e.className,style:{...e.style}},s?s(e,n):e.title?A.createElement("div",null,e.title):null,A.createElement("div",{ref:v,className:e.bodyClassName,style:{display:"flex",flexDirection:"column",gap:8,minHeight:40,transition:"background-color 160ms ease, border-color 160ms ease",...e.bodyStyle,backgroundColor:x?"#f5f9ff":e.bodyStyle?.backgroundColor}},A.createElement(SortableContext,{items:e.items.map(S=>M(S,o)),strategy:verticalListSortingStrategy},e.items.map((S,I)=>A.createElement(Ae,{key:String(M(S,o)),item:S,itemIndex:I,zone:e,zoneIndex:n,itemKey:o,itemClassName:r,itemStyle:t,renderItem:u,renderDragHandle:b})))))}function te(e,n,o){for(let r=0;r<e.length;r++){let t=e[r],s=t.items.findIndex(u=>M(u,o)===n);if(s!==-1)return {zone:t,zoneIndex:r,itemIndex:s,item:t.items[s]}}return null}function de(e="both"){return e==="both"||e==="in-only"}function ce(e="both"){return e==="both"||e==="out-only"}function le(e){return e.map(n=>({...n,items:[...n.items]}))}function ue(e,n,o){if(e.length!==n.length)return false;for(let r=0;r<e.length;r++){if(e[r].id!==n[r].id||e[r].items.length!==n[r].items.length)return false;for(let t=0;t<e[r].items.length;t++)if(M(e[r].items[t],o)!==M(n[r].items[t],o))return false}return true}function en(e,n,o){if(!e)return null;let r=e.data.current;if(r?.zoneId!=null)return r.zoneId;for(let t of n)if(t.id===e.id||t.items.some(s=>M(s,o)===e.id))return t.id;return null}function fe({zones:e,itemKey:n="id",onDragFinish:o,activationDistance:r=8,className:t,style:s,itemClassName:u,itemStyle:b,renderZoneHeader:v,renderItem:x,renderDragHandle:S}){let[I,y]=useState(null),[h,m]=useState(null),q=useSensors(useSensor(PointerSensor,{activationConstraint:{distance:r}})),C=h??e,U=useMemo(()=>I==null?null:te(e,I,n),[I,e,n]),N=U?.item??null,B=useCallback(d=>{let p=pointerWithin(d);if(p.length>0)return p;let l=rectIntersection(d);return getFirstCollision(l,"id")?l:[]},[]);return A.createElement(DndContext,{collisionDetection:B,sensors:q,onDragStart:({active:d})=>{y(d.id),m(le(e));},onDragOver:({active:d,over:p})=>{if(!p)return;let l=h??e,g=te(l,d.id,n);if(!g)return;let T=en(p,l,n);if(T==null)return;let E=l.find(D=>D.id===g.zone.id),k=l.find(D=>D.id===T);if(!E||!k)return;let $=E.transferMode??"both",P=k.transferMode??"both",z=E.id!==k.id;if(z&&(!ce($)||!de(P)))return;let R=le(l),w=R.findIndex(D=>D.id===E.id),j=R.findIndex(D=>D.id===k.id);if(w===-1||j===-1)return;let O=R[w].items,L=R[j].items,H=O.findIndex(D=>M(D,n)===d.id);if(H===-1)return;if(!z){let D=L.findIndex(Z=>M(Z,n)===p.id);if(D===-1||D===H)return;let K=arrayMove(O,H,D);R[w].items=K,ue(l,R,n)||m(R);return}let[F]=O.splice(H,1);if(!F)return;let J=L.length,Q=L.findIndex(D=>M(D,n)===p.id);Q!==-1&&(J=Q),L.splice(J,0,F),ue(l,R,n)||m(R);},onDragEnd:({active:d,over:p})=>{let l=h??e;if(y(null),m(null),!p)return;let g=te(e,d.id,n),T=te(l,d.id,n);if(!g||!T)return;let E=e.find(P=>P.id===g.zone.id),k=l.find(P=>P.id===T.zone.id);if(!E||!k)return;if(E.id!==k.id){let P=E.transferMode??"both",z=k.transferMode??"both";if(!ce(P)||!de(z))return}g.zone.id===T.zone.id&&g.itemIndex===T.itemIndex||o?.({activeItem:g.item,fromZoneId:g.zone.id,toZoneId:T.zone.id,oldIndex:g.itemIndex,newIndex:T.itemIndex,newZones:l});},onDragCancel:()=>{y(null),m(null);}},A.createElement("div",{className:t,style:s},C.map((d,p)=>A.createElement(ne,{key:String(d.id),zone:d,zoneIndex:p,itemKey:n,itemClassName:u,itemStyle:b,renderZoneHeader:v,renderItem:x,renderDragHandle:S}))),A.createElement(DragOverlay,null,N?A.createElement("div",{className:u,style:{...b,cursor:"grabbing"}},x(N,U?.itemIndex??-1,U?.zone,U?.zoneIndex??-1)):null))}var pe=createContext(null);function Y(e,n){return e[n]}function pn(e="both"){return e==="both"||e==="in-only"}function In(e="both"){return e==="both"||e==="out-only"}function ie(e){return e.map(n=>({...n,items:[...n.items]}))}function re(e,n){for(let[o,r]of e)for(let t=0;t<r.boards.length;t++){let s=r.boards[t],u=s.items.findIndex(b=>Y(b,r.itemKey)===n);if(u!==-1)return {scopeId:o,zone:s,zoneIndex:t,itemIndex:u,item:s.items[u]}}return null}function me(e,n){for(let[o,r]of e)for(let t=0;t<r.boards.length;t++){let s=r.boards[t];if(s.id===n)return {scopeId:o,zone:s,zoneIndex:t,scope:r}}return null}function xn(e,n){if(!e)return null;let o=e.data.current;if(o?.zoneId!=null)return o.zoneId;for(let[,r]of n)for(let t of r.boards)if(t.id===e.id||t.items.some(s=>Y(s,r.itemKey)===e.id))return t.id;return null}function Ie({children:e,activationDistance:n=8}){let o=useRef(new Map),[r,t]=useState(null),[s,u]=useState(null),b=useSensors(useSensor(PointerSensor,{activationConstraint:{distance:n}})),v=useCallback((i,a)=>{o.current.set(i,a);},[]),x=useCallback(i=>{o.current.delete(i);},[]),S=useCallback((i,a)=>{o.current.set(i,a);},[]),I=useCallback(i=>o.current.get(i)?.boards??[],[]),y=useCallback(i=>s?s.get(i)??null:null,[s]),h=useCallback(i=>{let a=pointerWithin(i);if(a.length>0)return a;let f=rectIntersection(i);return getFirstCollision(f,"id")?f:[]},[]),m=({active:i})=>{t(i.id);let a=new Map;for(let[f,c]of o.current)a.set(f,ie(c.boards));u(a);},q=({active:i,over:a})=>{if(!a||!s)return;let f=new Map;for(let[Z,ee]of o.current)f.set(Z,{...ee,boards:s.get(Z)??ee.boards});let c=re(f,i.id);if(!c)return;let d=xn(a,f);if(d==null)return;let p=me(f,c.zone.id),l=me(f,d);if(!p||!l)return;let g=p.zone,T=l.zone,E=g.id!==T.id,k=g.transferMode??"both",$=T.transferMode??"both";if(E&&(!In(k)||!pn($)))return;let P=new Map(s),z=ie(P.get(c.scopeId)??[]),R=c.scopeId===l.scopeId?z:ie(P.get(l.scopeId)??[]),w=z.findIndex(Z=>Z.id===g.id),j=R.findIndex(Z=>Z.id===T.id);if(w===-1||j===-1)return;let O=z[w].items,L=R[j].items,H=f.get(c.scopeId);if(!H)return;let F=O.findIndex(Z=>Y(Z,H.itemKey)===i.id);if(F===-1)return;if(!E&&c.scopeId===l.scopeId){let Z=L.findIndex(ee=>Y(ee,H.itemKey)===a.id);if(Z===-1||Z===F)return;z[w].items=arrayMove(O,F,Z),P.set(c.scopeId,z),u(P);return}let[J]=O.splice(F,1);if(!J)return;let Q=f.get(l.scopeId);if(!Q)return;let D=L.length,K=L.findIndex(Z=>Y(Z,Q.itemKey)===a.id);K!==-1&&(D=K),L.splice(D,0,J),P.set(c.scopeId,z),P.set(l.scopeId,R),u(P);},C=({active:i,over:a})=>{if(!s){t(null);return}let f=new Map;for(let[g,T]of o.current)f.set(g,{...T,boards:s.get(g)??T.boards});let c=re(o.current,i.id),d=re(f,i.id);if(t(null),!a||!c||!d){u(null);return}let p=o.current.get(c.scopeId),l=o.current.get(d.scopeId);if(!p||!l){u(null);return}if(c.scopeId===d.scopeId&&c.zone.id===d.zone.id&&c.itemIndex===d.itemIndex){u(null);return}p.onDragFinish?.({scopeId:c.scopeId,boards:s.get(c.scopeId)??p.boards}),c.scopeId!==d.scopeId&&l.onDragFinish?.({scopeId:d.scopeId,boards:s.get(d.scopeId)??l.boards}),u(null);},U=()=>{t(null),u(null);},N=(()=>{if(r==null)return null;let i=new Map;for(let[c,d]of o.current)i.set(c,{...d,boards:s?.get(c)??d.boards});let a=re(i,r);if(!a)return null;let f=i.get(a.scopeId);return f?f.renderItem(a.item,a.itemIndex,a.zone,a.zoneIndex):null})(),B=useMemo(()=>({registerScope:v,unregisterScope:x,updateScope:S,getScopeBoards:I,getPreviewScopeBoards:y,activeId:r}),[v,x,S,I,y,r]);return A.createElement(pe.Provider,{value:B},A.createElement(DndContext,{collisionDetection:h,sensors:b,onDragStart:m,onDragOver:q,onDragEnd:C,onDragCancel:U},e,A.createElement(DragOverlay,null,N)))}function xe(){let e=useContext(pe);if(!e)throw new Error("SortableBoard must be used within SortableBoardProvider");return e}function De({boardScopeId:e,boards:n,itemKey:o="id",onDragFinish:r,className:t,style:s,boardClassName:u,boardStyle:b,zoneWrapClassName:v,zoneWrapStyle:x,itemClassName:S,itemStyle:I,renderBoardHeader:y,renderZoneHeader:h,renderItem:m,renderDragHandle:q}){let{registerScope:C,unregisterScope:U,updateScope:N,getPreviewScopeBoards:B}=xe();useEffect(()=>(C(e,{scopeId:e,boards:n,itemKey:o,renderItem:m,onDragFinish:r}),()=>{U(e);}),[]),useEffect(()=>{N(e,{scopeId:e,boards:n,itemKey:o,renderItem:m,onDragFinish:r});},[e,n,o,m,r,N]);let i=useMemo(()=>B(e)??n,[e,n,B]);return A.createElement("div",{className:t,style:s},i.map((a,f)=>A.createElement("div",{key:String(a.id),className:a.className??u,style:{...b,...a.style}},y?y(a,f):a.title?A.createElement("div",null,a.title):null,A.createElement("div",{className:v,style:x},A.createElement(ne,{zone:a,zoneIndex:f,itemKey:o,itemClassName:S,itemStyle:I,renderZoneHeader:h,renderItem:m,renderDragHandle:q})))))}var Dn={SortableList:se,SortableZones:fe,SortableBoard:De,SortableBoardProvider:Ie},Qn=Dn;export{Qn as default};
|
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { DraggableAttributes } from '@dnd-kit/core';
|
|
3
|
+
import type { SyntheticListenerMap } from '@dnd-kit/core/dist/hooks/utilities';
|
|
4
|
+
import type { UniqueIdentifier } from '@dnd-kit/core';
|
|
5
|
+
/**
|
|
6
|
+
* 拖拽方向
|
|
7
|
+
*
|
|
8
|
+
* - `horizontal`:水平排列
|
|
9
|
+
* - `vertical`:垂直排列
|
|
10
|
+
*/
|
|
11
|
+
export type Direction = 'horizontal' | 'vertical';
|
|
12
|
+
/**
|
|
13
|
+
* 区域转移模式
|
|
14
|
+
*
|
|
15
|
+
* - `both`:允许拖入和拖出
|
|
16
|
+
* - `in-only`:只允许拖入,不允许拖出
|
|
17
|
+
* - `out-only`:只允许拖出,不允许拖入
|
|
18
|
+
*/
|
|
19
|
+
export type TransferMode = 'both' | 'in-only' | 'out-only';
|
|
20
|
+
/**
|
|
21
|
+
* 自定义拖拽手柄 Props
|
|
22
|
+
*
|
|
23
|
+
* 通过 `renderDragHandle` 渲染自定义手柄时,由组件注入给渲染函数
|
|
24
|
+
*/
|
|
25
|
+
export interface DragHandleProps {
|
|
26
|
+
/**
|
|
27
|
+
* dnd-kit 可访问性属性,需绑定到手柄元素
|
|
28
|
+
*/
|
|
29
|
+
attributes: DraggableAttributes;
|
|
30
|
+
/**
|
|
31
|
+
* dnd-kit 事件监听器,需绑定到手柄元素
|
|
32
|
+
*/
|
|
33
|
+
listeners: SyntheticListenerMap | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* 当前项是否正在被拖拽
|
|
36
|
+
*/
|
|
37
|
+
isDragging: boolean;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* `onDragFinish` 回调参数(SortableList)
|
|
41
|
+
*/
|
|
42
|
+
export interface DragFinishParams<T> {
|
|
43
|
+
/**
|
|
44
|
+
* 被拖拽的数据项
|
|
45
|
+
*/
|
|
46
|
+
activeItem: T;
|
|
47
|
+
/**
|
|
48
|
+
* 目标位置的数据项
|
|
49
|
+
*/
|
|
50
|
+
overItem: T;
|
|
51
|
+
/**
|
|
52
|
+
* 拖拽前的下标
|
|
53
|
+
*/
|
|
54
|
+
oldIndex: number;
|
|
55
|
+
/**
|
|
56
|
+
* 拖拽后的下标
|
|
57
|
+
*/
|
|
58
|
+
newIndex: number;
|
|
59
|
+
/**
|
|
60
|
+
* 排序完成后的新数组
|
|
61
|
+
*/
|
|
62
|
+
newItems: T[];
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* SortableList 组件 Props
|
|
66
|
+
*/
|
|
67
|
+
export interface SortableListProps<T extends Record<string, any>> {
|
|
68
|
+
/**
|
|
69
|
+
* 数据列表
|
|
70
|
+
*/
|
|
71
|
+
items: T[];
|
|
72
|
+
/**
|
|
73
|
+
* 唯一标识字段名,默认 `'id'`
|
|
74
|
+
*/
|
|
75
|
+
itemKey?: keyof T;
|
|
76
|
+
/**
|
|
77
|
+
* 排列方向,默认 `'horizontal'`
|
|
78
|
+
*/
|
|
79
|
+
direction?: Direction;
|
|
80
|
+
/**
|
|
81
|
+
* 拖拽触发最小距离(px),默认 `8`
|
|
82
|
+
*/
|
|
83
|
+
activationDistance?: number;
|
|
84
|
+
/**
|
|
85
|
+
* 拖拽排序完成后的回调
|
|
86
|
+
*/
|
|
87
|
+
onDragFinish?: (params: DragFinishParams<T>) => void;
|
|
88
|
+
/**
|
|
89
|
+
* 列表项渲染函数
|
|
90
|
+
*
|
|
91
|
+
* @param item 当前数据项
|
|
92
|
+
* @param index 当前下标
|
|
93
|
+
* @param dragHandle 拖拽手柄节点(仅配置 `renderDragHandle` 时有值)
|
|
94
|
+
*/
|
|
95
|
+
renderItem: (item: T, index: number, dragHandle?: React.ReactNode) => React.ReactNode;
|
|
96
|
+
/**
|
|
97
|
+
* 自定义拖拽手柄渲染函数
|
|
98
|
+
*
|
|
99
|
+
* 配置后,整项不再可拖拽,仅手柄可触发拖拽
|
|
100
|
+
*/
|
|
101
|
+
renderDragHandle?: (item: T, index: number, dragHandleProps: DragHandleProps) => React.ReactNode;
|
|
102
|
+
/**
|
|
103
|
+
* 列表容器 className
|
|
104
|
+
*/
|
|
105
|
+
className?: string;
|
|
106
|
+
/**
|
|
107
|
+
* 列表容器 style
|
|
108
|
+
*/
|
|
109
|
+
style?: React.CSSProperties;
|
|
110
|
+
/**
|
|
111
|
+
* 列表项外层 className
|
|
112
|
+
*/
|
|
113
|
+
itemClassName?: string;
|
|
114
|
+
/**
|
|
115
|
+
* 列表项外层 style
|
|
116
|
+
*/
|
|
117
|
+
itemStyle?: React.CSSProperties;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* 可拖拽区域数据结构
|
|
121
|
+
*
|
|
122
|
+
* 用于 `SortableZones` 和 `SortableBoard` 的区域配置
|
|
123
|
+
*/
|
|
124
|
+
export interface DragZone<T extends Record<string, any>> {
|
|
125
|
+
/**
|
|
126
|
+
* 区域唯一标识
|
|
127
|
+
*/
|
|
128
|
+
id: UniqueIdentifier;
|
|
129
|
+
/**
|
|
130
|
+
* 区域标题(不配置 `renderZoneHeader` 时默认渲染)
|
|
131
|
+
*/
|
|
132
|
+
title?: string;
|
|
133
|
+
/**
|
|
134
|
+
* 区域内的数据项列表
|
|
135
|
+
*/
|
|
136
|
+
items: T[];
|
|
137
|
+
/**
|
|
138
|
+
* 区域的转移模式,默认 `'both'`
|
|
139
|
+
*/
|
|
140
|
+
transferMode?: TransferMode;
|
|
141
|
+
/**
|
|
142
|
+
* 区域外层容器 className
|
|
143
|
+
*/
|
|
144
|
+
className?: string;
|
|
145
|
+
/**
|
|
146
|
+
* 区域外层容器 style
|
|
147
|
+
*/
|
|
148
|
+
style?: React.CSSProperties;
|
|
149
|
+
/**
|
|
150
|
+
* 区域内容区 className(包裹所有 item 的容器)
|
|
151
|
+
*/
|
|
152
|
+
bodyClassName?: string;
|
|
153
|
+
/**
|
|
154
|
+
* 区域内容区 style
|
|
155
|
+
*/
|
|
156
|
+
bodyStyle?: React.CSSProperties;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* `onDragFinish` 回调参数(SortableZones)
|
|
160
|
+
*/
|
|
161
|
+
export interface ZoneDragFinishParams<T extends Record<string, any>> {
|
|
162
|
+
/**
|
|
163
|
+
* 被拖拽的数据项
|
|
164
|
+
*/
|
|
165
|
+
activeItem: T;
|
|
166
|
+
/**
|
|
167
|
+
* 来源区域 id
|
|
168
|
+
*/
|
|
169
|
+
fromZoneId: UniqueIdentifier;
|
|
170
|
+
/**
|
|
171
|
+
* 目标区域 id
|
|
172
|
+
*/
|
|
173
|
+
toZoneId: UniqueIdentifier;
|
|
174
|
+
/**
|
|
175
|
+
* 拖拽前的区域内下标
|
|
176
|
+
*/
|
|
177
|
+
oldIndex: number;
|
|
178
|
+
/**
|
|
179
|
+
* 拖拽后的区域内下标
|
|
180
|
+
*/
|
|
181
|
+
newIndex: number;
|
|
182
|
+
/**
|
|
183
|
+
* 拖拽完成后所有区域的新数据(含 items 顺序变更)
|
|
184
|
+
*/
|
|
185
|
+
newZones: DragZone<T>[];
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* 兼容别名:`MultiZoneDragFinishParams` = `ZoneDragFinishParams`
|
|
189
|
+
*
|
|
190
|
+
* @deprecated 请使用 `ZoneDragFinishParams`
|
|
191
|
+
*/
|
|
192
|
+
export type MultiZoneDragFinishParams<T extends Record<string, any>> = ZoneDragFinishParams<T>;
|
|
193
|
+
/**
|
|
194
|
+
* SortableZones 组件 Props
|
|
195
|
+
*/
|
|
196
|
+
export interface SortableZonesProps<T extends Record<string, any>> {
|
|
197
|
+
/**
|
|
198
|
+
* 区域列表
|
|
199
|
+
*/
|
|
200
|
+
zones: DragZone<T>[];
|
|
201
|
+
/**
|
|
202
|
+
* 唯一标识字段名,默认 `'id'`
|
|
203
|
+
*/
|
|
204
|
+
itemKey?: keyof T;
|
|
205
|
+
/**
|
|
206
|
+
* 拖拽触发最小距离(px),默认 `8`
|
|
207
|
+
*/
|
|
208
|
+
activationDistance?: number;
|
|
209
|
+
/**
|
|
210
|
+
* 拖拽完成后的回调
|
|
211
|
+
*/
|
|
212
|
+
onDragFinish?: (params: ZoneDragFinishParams<T>) => void;
|
|
213
|
+
/**
|
|
214
|
+
* 列表项渲染函数
|
|
215
|
+
*
|
|
216
|
+
* @param item 当前数据项
|
|
217
|
+
* @param itemIndex 当前项在区域内的下标
|
|
218
|
+
* @param zone 所属区域
|
|
219
|
+
* @param zoneIndex 区域下标
|
|
220
|
+
* @param dragHandle 拖拽手柄节点(仅配置 `renderDragHandle` 时有值)
|
|
221
|
+
*/
|
|
222
|
+
renderItem: (item: T, itemIndex: number, zone: DragZone<T>, zoneIndex: number, dragHandle?: React.ReactNode) => React.ReactNode;
|
|
223
|
+
/**
|
|
224
|
+
* 区域头部渲染函数(不传则渲染 `zone.title`)
|
|
225
|
+
*/
|
|
226
|
+
renderZoneHeader?: (zone: DragZone<T>, zoneIndex: number) => React.ReactNode;
|
|
227
|
+
/**
|
|
228
|
+
* 自定义拖拽手柄渲染函数
|
|
229
|
+
*/
|
|
230
|
+
renderDragHandle?: (item: T, itemIndex: number, zone: DragZone<T>, zoneIndex: number, dragHandleProps: DragHandleProps) => React.ReactNode;
|
|
231
|
+
/**
|
|
232
|
+
* 外层容器 className
|
|
233
|
+
*/
|
|
234
|
+
className?: string;
|
|
235
|
+
/**
|
|
236
|
+
* 外层容器 style
|
|
237
|
+
*/
|
|
238
|
+
style?: React.CSSProperties;
|
|
239
|
+
/**
|
|
240
|
+
* 列表项外层 className
|
|
241
|
+
*/
|
|
242
|
+
itemClassName?: string;
|
|
243
|
+
/**
|
|
244
|
+
* 列表项外层 style
|
|
245
|
+
*/
|
|
246
|
+
itemStyle?: React.CSSProperties;
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* 兼容别名:`MultiSortableZonesProps` = `SortableZonesProps`
|
|
250
|
+
*
|
|
251
|
+
* @deprecated 请使用 `SortableZonesProps`
|
|
252
|
+
*/
|
|
253
|
+
export type MultiSortableZonesProps<T extends Record<string, any>> = SortableZonesProps<T>;
|
|
254
|
+
/**
|
|
255
|
+
* 看板数据结构(SortableBoard 的列/看板单元)
|
|
256
|
+
*
|
|
257
|
+
* 继承自 `DragZone`,额外支持 `zones` 字段用于描述该 board 内的多个区域
|
|
258
|
+
*/
|
|
259
|
+
export interface DragBoard<T extends Record<string, any>> extends Omit<DragZone<T>, 'items'> {
|
|
260
|
+
/**
|
|
261
|
+
* 该 board 下的区域列表(每个区域有独立的 items)
|
|
262
|
+
*/
|
|
263
|
+
zones: DragZone<T>[];
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* `onDragFinish` 回调参数(SortableBoard)
|
|
267
|
+
*/
|
|
268
|
+
export interface DragBoardFinishParams<T extends Record<string, any>> {
|
|
269
|
+
/**
|
|
270
|
+
* 拖拽完成后所有 board 的新数据
|
|
271
|
+
*/
|
|
272
|
+
newBoards: DragBoard<T>[];
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* SortableBoard 组件 Props
|
|
276
|
+
*/
|
|
277
|
+
export interface SortableBoardProps<T extends Record<string, any>> {
|
|
278
|
+
/**
|
|
279
|
+
* 看板作用域 id,同一 `SortableBoardProvider` 下多个 `SortableBoard` 需保证唯一
|
|
280
|
+
*/
|
|
281
|
+
boardScopeId: UniqueIdentifier;
|
|
282
|
+
/**
|
|
283
|
+
* 看板列表
|
|
284
|
+
*/
|
|
285
|
+
boards: DragZone<T>[];
|
|
286
|
+
/**
|
|
287
|
+
* 唯一标识字段名,默认 `'id'`
|
|
288
|
+
*/
|
|
289
|
+
itemKey?: keyof T;
|
|
290
|
+
/**
|
|
291
|
+
* 拖拽完成后的回调
|
|
292
|
+
*
|
|
293
|
+
* 参数包含 `scopeId` 和该作用域下最新的 `boards` 数据
|
|
294
|
+
*/
|
|
295
|
+
onDragFinish?: (params: {
|
|
296
|
+
scopeId: UniqueIdentifier;
|
|
297
|
+
boards: DragZone<T>[];
|
|
298
|
+
}) => void;
|
|
299
|
+
/**
|
|
300
|
+
* 列表项渲染函数
|
|
301
|
+
*/
|
|
302
|
+
renderItem: (item: T, itemIndex: number, zone: DragZone<T>, zoneIndex: number, dragHandle?: React.ReactNode) => React.ReactNode;
|
|
303
|
+
/**
|
|
304
|
+
* 看板头部渲染函数(不传则渲染 `board.title`)
|
|
305
|
+
*/
|
|
306
|
+
renderBoardHeader?: (board: DragZone<T>, boardIndex: number) => React.ReactNode;
|
|
307
|
+
/**
|
|
308
|
+
* 区域头部渲染函数(不传则渲染 `zone.title`)
|
|
309
|
+
*/
|
|
310
|
+
renderZoneHeader?: (zone: DragZone<T>, zoneIndex: number) => React.ReactNode;
|
|
311
|
+
/**
|
|
312
|
+
* 自定义拖拽手柄渲染函数
|
|
313
|
+
*/
|
|
314
|
+
renderDragHandle?: (item: T, itemIndex: number, zone: DragZone<T>, zoneIndex: number, dragHandleProps: DragHandleProps) => React.ReactNode;
|
|
315
|
+
/**
|
|
316
|
+
* 外层容器 className
|
|
317
|
+
*/
|
|
318
|
+
className?: string;
|
|
319
|
+
/**
|
|
320
|
+
* 外层容器 style
|
|
321
|
+
*/
|
|
322
|
+
style?: React.CSSProperties;
|
|
323
|
+
/**
|
|
324
|
+
* 每个 board 的 className
|
|
325
|
+
*/
|
|
326
|
+
boardClassName?: string;
|
|
327
|
+
/**
|
|
328
|
+
* 每个 board 的 style
|
|
329
|
+
*/
|
|
330
|
+
boardStyle?: React.CSSProperties;
|
|
331
|
+
/**
|
|
332
|
+
* zone 包裹层 className(包裹 ZoneContainer 的外层 div)
|
|
333
|
+
*/
|
|
334
|
+
zoneWrapClassName?: string;
|
|
335
|
+
/**
|
|
336
|
+
* zone 包裹层 style
|
|
337
|
+
*/
|
|
338
|
+
zoneWrapStyle?: React.CSSProperties;
|
|
339
|
+
/**
|
|
340
|
+
* 列表项外层 className
|
|
341
|
+
*/
|
|
342
|
+
itemClassName?: string;
|
|
343
|
+
/**
|
|
344
|
+
* 列表项外层 style
|
|
345
|
+
*/
|
|
346
|
+
itemStyle?: React.CSSProperties;
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* SortableBoardProvider 组件 Props
|
|
350
|
+
*
|
|
351
|
+
* 为多个 `SortableBoard` 提供共享的 DnD 上下文,支持跨 board 拖拽
|
|
352
|
+
*/
|
|
353
|
+
export interface SortableBoardProviderProps {
|
|
354
|
+
/**
|
|
355
|
+
* 子节点,应包含一个或多个 `SortableBoard`
|
|
356
|
+
*/
|
|
357
|
+
children: React.ReactNode;
|
|
358
|
+
/**
|
|
359
|
+
* 拖拽触发最小距离(px),默认 `8`
|
|
360
|
+
*/
|
|
361
|
+
activationDistance?: number;
|
|
362
|
+
}
|
package/es/drag/type.js
ADDED
|
File without changes
|