@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,40 @@
|
|
|
1
|
+
import*as T from'react';import T__default,{createContext,useContext}from'react';import Ho from'classnames';import $o from'rc-util/lib/hooks/useEvent';import An from'scroll-into-view-if-needed';import Go from'rc-util/lib/raf';import ur,{resetWarned}from'rc-util/lib/warning';import Dt from'rc-resize-observer';import zt from'rc-util/lib/omit';import {createTheme,useCacheToken,unit,useStyleRegister}from'@ant-design/cssinjs';import sn from'@ant-design/icons/lib/components/Context';import nn from'rc-util/lib/hooks/useMemo';import {merge}from'rc-util/lib/utils/set';import'rc-pagination/lib/locale/en_US';import Tr from'rc-picker/lib/locale/en_US';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';import $r from'rc-util/lib/Dom/canUseDom';import {updateCSS}from'rc-util/lib/Dom/dynamicCSS';import an from'rc-util/lib/isEqual';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import {Provider}from'rc-motion';function We(e){return e!=null&&e===e.window}var gr=e=>{if(typeof window>"u")return 0;let o=0;return We(e)?o=e.pageYOffset:e instanceof Document?o=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(o=e.scrollTop),e&&!We(e)&&typeof o!="number"&&(o=(e.ownerDocument??e).documentElement?.scrollTop),o},Ve=gr;function Vo(e,o,r,n){let t=r-o;return e/=n/2,e<1?t/2*e*e*e+o:t/2*((e-=2)*e*e+2)+o}function so(e,o={}){let{getContainer:r=()=>window,callback:n,duration:t=450}=o,a=r(),i=Ve(a),s=Date.now(),p=()=>{let c=Date.now()-s,m=Vo(c>t?t:c,i,e,t);We(a)?a.scrollTo(window.pageXOffset,m):a instanceof Document||a.constructor.name==="HTMLDocument"?a.documentElement.scrollTop=m:a.scrollTop=m,c<t?Go(p):typeof n=="function"&&n();};Go(p);}function Xo(){}var Q=null;function yr(){Q=null,resetWarned();}var co=Xo;process.env.NODE_ENV!=="production"&&(co=(e,o,r)=>{ur(e,`[swiftcrab: ${o}] ${r}`),process.env.NODE_ENV==="test"&&yr();});var po=T.createContext({}),z=process.env.NODE_ENV!=="production"?e=>{let{strict:o}=T.useContext(po),r=(n,t,a)=>{if(!n)if(o===false&&t==="deprecated"){let i=Q;Q||(Q={}),Q[e]=Q[e]||[],Q[e].includes(a||"")||Q[e].push(a||""),i||console.warn("[swiftcrab] There exists deprecated usage in your code:",Q);}else co(n,e,a);};return r.deprecated=(n,t,a,i)=>{r(n,"deprecated",`\`${t}\` is deprecated. Please use \`${a}\` instead.${i?` ${i}`:""}`);},r}:()=>{let e=()=>{};return e.deprecated=Xo,e},ge=co;function xr(e){let o,r=t=>()=>{o=null,e(...t);},n=(...t)=>{o==null&&(o=Go(r(t)));};return n.cancel=()=>{Go.cancel(o),o=null;},n}var fo=xr;var _o=createContext(void 0);({lang:{...Tr}});var I="${label} is not a valid ${type}",br={Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Form:{defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:I,method:I,array:I,object:I,number:I,date:I,boolean:I,integer:I,float:I,regexp:I,email:I,url:I,hex:I},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}}},ae=br;({...ae.Modal});var _e=[],Ko=()=>_e.reduce((e,o)=>({...e,...o}),ae.Modal);function qo(e){if(e){let o={...e};return _e.push(o),Ko(),()=>{_e=_e.filter(r=>r!==o),Ko();}}({...ae.Modal});}var Mr=createContext(void 0),Ae=Mr;var go="internalMark",Yo=e=>{let{locale:o={},children:r,_ANT_MARK__:n}=e;process.env.NODE_ENV!=="production"&&z("LocaleProvider")(n===go,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),T.useEffect(()=>qo(o?.Modal),[o]);let t=T.useMemo(()=>({...o,exist:true}),[o]);return T.createElement(Ae.Provider,{value:t},r)};process.env.NODE_ENV!=="production"&&(Yo.displayName="LocaleProvider");var Jo=Yo;var uo={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"},Lr={...uo,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},Y=Lr;function yo(e,{generateColorPalettes:o,generateNeutralColorPalettes:r}){let{colorSuccess:n,colorWarning:t,colorError:a,colorInfo:i,colorPrimary:s,colorBgBase:p,colorTextBase:l}=e,c=o(s),m=o(n),d=o(t),C=o(a),k=o(i),X=r(p,l),h=e.colorLink||e.colorInfo,P=o(h),E=new TinyColor(C[1]).mix(new TinyColor(C[3]),50).toHexString();return {...X,colorPrimaryBg:c[1],colorPrimaryBgHover:c[2],colorPrimaryBorder:c[3],colorPrimaryBorderHover:c[4],colorPrimaryHover:c[5],colorPrimary:c[6],colorPrimaryActive:c[7],colorPrimaryTextHover:c[8],colorPrimaryText:c[9],colorPrimaryTextActive:c[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:C[1],colorErrorBgHover:C[2],colorErrorBgFilledHover:E,colorErrorBgActive:C[3],colorErrorBorder:C[3],colorErrorBorderHover:C[4],colorErrorHover:C[5],colorError:C[6],colorErrorActive:C[7],colorErrorTextHover:C[8],colorErrorText:C[9],colorErrorTextActive:C[10],colorWarningBg:d[1],colorWarningBgHover:d[2],colorWarningBorder:d[3],colorWarningBorderHover:d[4],colorWarningHover:d[4],colorWarning:d[6],colorWarningActive:d[7],colorWarningTextHover:d[8],colorWarningText:d[9],colorWarningTextActive:d[10],colorInfoBg:k[1],colorInfoBgHover:k[2],colorInfoBorder:k[3],colorInfoBorderHover:k[4],colorInfoHover:k[4],colorInfo:k[6],colorInfoActive:k[7],colorInfoTextHover:k[8],colorInfoText:k[9],colorInfoTextActive:k[10],colorLinkHover:P[4],colorLink:P[6],colorLinkActive:P[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var Ar=e=>{let o=e,r=e,n=e,t=e;return e<6&&e>=5?o=e+1:e<16&&e>=6?o=e+2:e>=16&&(o=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?t=4:e>=8&&(t=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:o,borderRadiusOuter:t}},Zo=Ar;function xo(e){let{motionUnit:o,motionBase:r,borderRadius:n,lineWidth:t}=e;return {motionDurationFast:`${(r+o).toFixed(1)}s`,motionDurationMid:`${(r+o*2).toFixed(1)}s`,motionDurationSlow:`${(r+o*3).toFixed(1)}s`,lineWidthBold:t+1,...Zo(n)}}var Rr=e=>{let{controlHeight:o}=e;return {controlHeightSM:o*.75,controlHeightXS:o*.5,controlHeightLG:o*1.25}},et=Rr;function ot(e){return (e+8)/e}function So(e){let o=new Array(10).fill(null).map((r,n)=>{let t=n-1,a=e*Math.E**(t/5),i=n>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return o[1]=e,o.map(r=>({size:r,lineHeight:ot(r)}))}var wr=e=>{let o=So(e),r=o.map(c=>c.size),n=o.map(c=>c.lineHeight),t=r[1],a=r[0],i=r[2],s=n[1],p=n[0],l=n[2];return {fontSizeSM:a,fontSize:t,fontSizeLG:i,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:l,lineHeightSM:p,fontHeight:Math.round(s*t),fontHeightLG:Math.round(l*i),fontHeightSM:Math.round(p*a),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},tt=wr;function ho(e){let{sizeUnit:o,sizeStep:r}=e;return {sizeXXL:o*(r+8),sizeXL:o*(r+4),sizeLG:o*(r+2),sizeMD:o*(r+1),sizeMS:o*r,size:o*r,sizeSM:o*(r-1),sizeXS:o*(r-2),sizeXXS:o*(r-3)}}var D=(e,o)=>new TinyColor(e).setAlpha(o).toRgbString(),Ce=(e,o)=>new TinyColor(e).darken(o).toHexString();var nt=e=>{let o=generate(e);return {1:o[0],2:o[1],3:o[2],4:o[3],5:o[4],6:o[5],7:o[6],8:o[4],9:o[5],10:o[6]}},it=(e,o)=>{let r=e||"#fff",n=o||"#000";return {colorBgBase:r,colorTextBase:n,colorText:D(n,.88),colorTextSecondary:D(n,.65),colorTextTertiary:D(n,.45),colorTextQuaternary:D(n,.25),colorFill:D(n,.15),colorFillSecondary:D(n,.06),colorFillTertiary:D(n,.04),colorFillQuaternary:D(n,.02),colorBgSolid:D(n,1),colorBgSolidHover:D(n,.75),colorBgSolidActive:D(n,.95),colorBgLayout:Ce(r,4),colorBgContainer:Ce(r,0),colorBgElevated:Ce(r,0),colorBgSpotlight:D(n,.85),colorBgBlur:"transparent",colorBorder:Ce(r,15),colorBorderSecondary:Ce(r,6)}};function Po(e){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let o=Object.keys(uo).map(r=>{let n=e[r]===presetPrimaryColors[r]?presetPalettes[r]:generate(e[r]);return new Array(10).fill(1).reduce((t,a,i)=>(t[`${r}-${i+1}`]=n[i],t[`${r}${i+1}`]=n[i],t),{})}).reduce((r,n)=>(r={...r,...n},r),{});return {...e,...o,...yo(e,{generateColorPalettes:nt,generateNeutralColorPalettes:it}),...tt(e.fontSize),...ho(e),...et(e),...xo(e)}}var Ue=createTheme(Po),Re={token:Y,override:{override:Y},hashed:true},we=T__default.createContext(Re);var Ke="ant",Ee="anticon";var Nr=(e,o)=>o||(e?`${Ke}-${e}`:Ke),w=T.createContext({getPrefixCls:Nr,iconPrefixCls:Ee}),{Consumer:Hr}=w;var Br=`-ant-${Date.now()}-${Math.random()}`;function Fr(e,o){let r={},n=(i,s)=>{let p=i.clone();return p=s?.(p)||p,p.toRgbString()},t=(i,s)=>{let p=new TinyColor(i),l=generate(p.toRgbString());r[`${s}-color`]=n(p),r[`${s}-color-disabled`]=l[1],r[`${s}-color-hover`]=l[4],r[`${s}-color-active`]=l[6],r[`${s}-color-outline`]=p.clone().setAlpha(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=l[0],r[`${s}-color-deprecated-border`]=l[2];};if(o.primaryColor){t(o.primaryColor,"primary");let i=new TinyColor(o.primaryColor),s=generate(i.toRgbString());s.forEach((l,c)=>{r[`primary-${c+1}`]=l;}),r["primary-color-deprecated-l-35"]=n(i,l=>l.lighten(35)),r["primary-color-deprecated-l-20"]=n(i,l=>l.lighten(20)),r["primary-color-deprecated-t-20"]=n(i,l=>l.tint(20)),r["primary-color-deprecated-t-50"]=n(i,l=>l.tint(50)),r["primary-color-deprecated-f-12"]=n(i,l=>l.setAlpha(l.getAlpha()*.12));let p=new TinyColor(s[0]);r["primary-color-active-deprecated-f-30"]=n(p,l=>l.setAlpha(l.getAlpha()*.3)),r["primary-color-active-deprecated-d-02"]=n(p,l=>l.darken(2));}return o.successColor&&t(o.successColor,"success"),o.warningColor&&t(o.warningColor,"warning"),o.errorColor&&t(o.errorColor,"error"),o.infoColor&&t(o.infoColor,"info"),`
|
|
4
|
+
:root {
|
|
5
|
+
${Object.keys(r).map(i=>`--${e}-${i}: ${r[i]};`).join(`
|
|
6
|
+
`)}
|
|
7
|
+
}
|
|
8
|
+
`.trim()}function st(e,o){let r=Fr(e,o);$r()?updateCSS(r,`${Br}-dynamic-theme`):ge(false,"ConfigProvider","SSR do not support dynamic theme with css variables.");}var vo=T.createContext(false),ct=({children:e,disabled:o})=>{let r=T.useContext(vo);return T.createElement(vo.Provider,{value:o??r},e)},pt=vo;var Mo=T.createContext(void 0),ft=({children:e,size:o})=>{let r=T.useContext(Mo);return T.createElement(Mo.Provider,{value:o||r},e)},Ie=Mo;function Wr(){let e=useContext(pt),o=useContext(Ie);return {componentDisabled:e,componentSize:o}}var dt=Wr;var ut={version:"0.0.2"};var Ct=ut.version;function Lo(e){return e>=0&&e<=255}function Gr(e,o){let{r,g:n,b:t,a}=new TinyColor(e).toRgb();if(a<1)return e;let{r:i,g:s,b:p}=new TinyColor(o).toRgb();for(let l=.01;l<=1;l+=.01){let c=Math.round((r-i*(1-l))/l),m=Math.round((n-s*(1-l))/l),d=Math.round((t-p*(1-l))/l);if(Lo(c)&&Lo(m)&&Lo(d))return new TinyColor({r:c,g:m,b:d,a:Math.round(l*100)/100}).toRgbString()}return new TinyColor({r,g:n,b:t,a:1}).toRgbString()}var De=Gr;function Qe(e){let{override:o,...r}=e,n={...o};Object.keys(Y).forEach(d=>{delete n[d];});let t={...r,...n},a=480,i=576,s=768,p=992,l=1200,c=1600;return t.motion===false&&(t.motionDurationFast="0s",t.motionDurationMid="0s",t.motionDurationSlow="0s"),{...t,colorFillContent:t.colorFillSecondary,colorFillContentHover:t.colorFill,colorFillAlter:t.colorFillQuaternary,colorBgContainerDisabled:t.colorFillTertiary,colorBorderBg:t.colorBgContainer,colorSplit:De(t.colorBorderSecondary,t.colorBgContainer),colorTextPlaceholder:t.colorTextQuaternary,colorTextDisabled:t.colorTextQuaternary,colorTextHeading:t.colorText,colorTextLabel:t.colorTextSecondary,colorTextDescription:t.colorTextTertiary,colorTextLightSolid:t.colorWhite,colorHighlight:t.colorError,colorBgTextHover:t.colorFillSecondary,colorBgTextActive:t.colorFill,colorIcon:t.colorTextTertiary,colorIconHover:t.colorText,colorErrorOutline:De(t.colorErrorBg,t.colorBgContainer),colorWarningOutline:De(t.colorWarningBg,t.colorBgContainer),fontSizeIcon:t.fontSizeSM,lineWidthFocus:t.lineWidth*3,lineWidth:t.lineWidth,controlOutlineWidth:t.lineWidth*2,controlInteractiveSize:t.controlHeight/2,controlItemBgHover:t.colorFillTertiary,controlItemBgActive:t.colorPrimaryBg,controlItemBgActiveHover:t.colorPrimaryBgHover,controlItemBgActiveDisabled:t.colorFill,controlTmpOutline:t.colorFillQuaternary,controlOutline:De(t.colorPrimaryBg,t.colorBgContainer),lineType:t.lineType,borderRadius:t.borderRadius,borderRadiusXS:t.borderRadiusXS,borderRadiusSM:t.borderRadiusSM,borderRadiusLG:t.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:t.sizeXXS,paddingXS:t.sizeXS,paddingSM:t.sizeSM,padding:t.size,paddingMD:t.sizeMD,paddingLG:t.sizeLG,paddingXL:t.sizeXL,paddingContentHorizontalLG:t.sizeLG,paddingContentVerticalLG:t.sizeMS,paddingContentHorizontal:t.sizeMS,paddingContentVertical:t.sizeSM,paddingContentHorizontalSM:t.size,paddingContentVerticalSM:t.sizeXS,marginXXS:t.sizeXXS,marginXS:t.sizeXS,marginSM:t.sizeSM,margin:t.size,marginMD:t.sizeMD,marginLG:t.sizeLG,marginXL:t.sizeXL,marginXXL:t.sizeXXL,boxShadow:`
|
|
9
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
10
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
11
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
12
|
+
`,boxShadowSecondary:`
|
|
13
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
14
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
15
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
16
|
+
`,boxShadowTertiary:`
|
|
17
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
18
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
19
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
20
|
+
`,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:p-1,screenLG:p,screenLGMin:p,screenLGMax:l-1,screenXL:l,screenXLMin:l,screenXLMax:c-1,screenXXL:c,screenXXLMin:c,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
21
|
+
0 1px 2px -2px ${new TinyColor("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
22
|
+
0 3px 6px 0 ${new TinyColor("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
23
|
+
0 5px 12px 4px ${new TinyColor("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
24
|
+
`,boxShadowDrawerRight:`
|
|
25
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
26
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
27
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
28
|
+
`,boxShadowDrawerLeft:`
|
|
29
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
30
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
31
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
32
|
+
`,boxShadowDrawerUp:`
|
|
33
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
34
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
35
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
36
|
+
`,boxShadowDrawerDown:`
|
|
37
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
38
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
39
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
40
|
+
`,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 Ro={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},_r={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},Ur={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},yt=(e,o,r)=>{let n=r.getDerivativeToken(e),{override:t,...a}=o,i={...n,override:t};return i=Qe(i),a&&Object.entries(a).forEach(([s,p])=>{let{theme:l,...c}=p,m=c;l&&(m=yt({...i,...c},{override:c},l)),i[s]=m;}),i};function G(){let{token:e,hashed:o,theme:r,override:n,cssVar:t}=T__default.useContext(we),a=`${Ct}-${o||""}`,i=r||Ue,[s,p,l]=useCacheToken(i,[Y,e],{salt:a,override:n,getComputedToken:yt,formatToken:Qe,cssVar:t&&{prefix:t.prefix,key:t.key,unitless:Ro,ignore:_r,preserve:Ur}});return [i,l,o?p:"",s,t]}var xt={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},St=(e,o=false)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:o?"inherit":e.fontFamily}),Kr=()=>({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 ht=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"}}}),Tt=(e,o,r,n)=>{let t=`[class^="${o}"], [class*=" ${o}"]`,a=r?`.${r}`:t,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},s={};return n!==false&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:{...s,...i,[t]:i}}};var Ye=e=>({[`.${e}`]:{...Kr(),[`.${e} .${e}-icon`]:{display:"block"}}});var{genStyleHooks:ze,genComponentStyleHook:Qr,genSubStyleComponent:Yr}=genStyleUtils({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:o}=useContext(w);return {rootPrefixCls:e(),iconPrefixCls:o}},useToken:()=>{let[e,o,r,n,t]=G();return {theme:e,realToken:o,hashId:r,token:n,cssVar:t}},useCSP:()=>{let{csp:e}=useContext(w);return e??{}},getResetStyles:(e,o)=>[{"&":ht(e)},Ye(o?.prefix.iconPrefixCls??Ee)],getCommonStyle:Tt,getCompUnitless:(()=>Ro)});var Zr=(e,o)=>{let[r,n]=G();return useStyleRegister({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>o?.nonce,layer:{name:"antd"}},()=>[Ye(e)])},Je=Zr;var on={...T},{useId:bt}=on,tn=()=>"",rn=typeof bt>"u"?tn:bt,vt=rn;function wo(e,o,r){let n=z("ConfigProvider"),t=e||{},a=t.inherit===false||!o?{...Re,hashed:o?.hashed??Re.hashed,cssVar:o?.cssVar}:o,i=vt();if(process.env.NODE_ENV!=="production"){let s=t.cssVar||a.cssVar,p=!!(typeof t.cssVar=="object"&&t.cssVar?.key||i);n(!s||p,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.");}return nn(()=>{if(!e)return o;let s={...a.components};Object.keys(e.components||{}).forEach(c=>{s[c]={...s[c],...e.components[c]};});let p=`css-var-${i.replace(/:/g,"")}`,l=(t.cssVar??a.cssVar)&&{prefix:r?.prefixCls,...typeof a.cssVar=="object"?a.cssVar:{},...typeof t.cssVar=="object"?t.cssVar:{},key:typeof t.cssVar=="object"&&t.cssVar?.key||p};return {...a,...t,token:{...a.token,...t.token},components:s,cssVar:l}},[t,a],(s,p)=>s.some((l,c)=>{let m=p[c];return !an(l,m,true)}))}function Eo(e){let{children:o}=e,[,r]=G(),{motion:n}=r,t=T.useRef(false);return t.current=t.current||n===false,t.current?T.createElement(Provider,{motion:n},o):o}var Lt=T.memo(({dropdownMatchSelectWidth:e})=>(z("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(Lt.displayName="PropWarning");var At=process.env.NODE_ENV!=="production"?Lt:()=>null;var Io=false;process.env.NODE_ENV!=="production"?e=>{ge(!Io,e,"Static function can not consume context like dynamic theme. Please use 'App' component instead.");}:null;var fn=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],wt;function un(){return wt||Ke}function Cn(e){return Object.keys(e).some(o=>o.endsWith("Color"))}var yn=e=>{let{prefixCls:o,iconPrefixCls:r,theme:n,holderRender:t}=e;o!==void 0&&(wt=o),n&&(Cn(n)?(ge(false,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),st(un(),n)):n);};var xn=e=>{let{children:o,csp:r,autoInsertSpaceInButton:n,alert:t,anchor:a,form:i,locale:s,componentSize:p,direction:l,space:c,splitter:m,virtual:d,dropdownMatchSelectWidth:C,popupMatchSelectWidth:k,popupOverflow:X,legacyLocale:h,parentContext:P,iconPrefixCls:E,theme:j,componentDisabled:A,segmented:N,statistic:H,spin:$,calendar:J,carousel:O,cascader:B,collapse:oe,typography:he,checkbox:le,descriptions:b,divider:_,drawer:se,skeleton:Te,steps:ke,image:U,layout:te,list:Pe,mentions:be,modal:re,progress:L,result:g,slider:S,breadcrumb:F,menu:K,pagination:ce,input:to,textArea:ro,empty:He,badge:$e,radio:no,rate:io,switch:f,transfer:y,avatar:R,message:Z,tag:ve,table:ne,card:W,tabs:ie,timeline:Oe,timePicker:qt,upload:Qt,notification:Yt,tree:Jt,colorPicker:Zt,datePicker:er,rangePicker:or,flex:tr,wave:rr,dropdown:nr,warning:ir,tour:ar,variant:lr,inputNumber:sr,treeSelect:cr}=e,Oo=T.useCallback((v,V)=>{let{prefixCls:me}=e;if(V)return V;let de=me||P.getPrefixCls("");return v?`${de}-${v}`:de},[P.getPrefixCls,e.prefixCls]),Me=E||P.iconPrefixCls||Ee,Le=r||P.csp;Je(Me,Le);let Be=wo(j,P.theme,{prefixCls:Oo("")});process.env.NODE_ENV!=="production"&&(Io=Io||!!Be);let ao={csp:Le,autoInsertSpaceInButton:n,alert:t,anchor:a,locale:s||h,direction:l,space:c,splitter:m,virtual:d,popupMatchSelectWidth:k??C,popupOverflow:X,getPrefixCls:Oo,iconPrefixCls:Me,theme:Be,segmented:N,statistic:H,spin:$,calendar:J,carousel:O,cascader:B,collapse:oe,typography:he,checkbox:le,descriptions:b,divider:_,drawer:se,skeleton:Te,steps:ke,image:U,input:to,textArea:ro,layout:te,list:Pe,mentions:be,modal:re,progress:L,result:g,slider:S,breadcrumb:F,menu:K,pagination:ce,empty:He,badge:$e,radio:no,rate:io,switch:f,transfer:y,avatar:R,message:Z,tag:ve,table:ne,card:W,tabs:ie,timeline:Oe,timePicker:qt,upload:Qt,notification:Yt,tree:Jt,colorPicker:Zt,datePicker:er,rangePicker:or,flex:tr,wave:rr,dropdown:nr,warning:ir,tour:ar,variant:lr,inputNumber:sr,treeSelect:cr};process.env.NODE_ENV!=="production"&&z("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");let pe={...P};Object.keys(ao).forEach(v=>{ao[v]!==void 0&&(pe[v]=ao[v]);}),fn.forEach(v=>{let V=e[v];V&&(pe[v]=V);}),typeof n<"u"&&(pe.button={autoInsertSpace:n,...pe.button});let fe=nn(()=>pe,pe,(v,V)=>{let me=Object.keys(v),de=Object.keys(V);return me.length!==de.length||me.some(Fe=>v[Fe]!==V[Fe])}),pr=T.useMemo(()=>({prefixCls:Me,csp:Le}),[Me,Le]),M=T.createElement(T.Fragment,null,T.createElement(At,{dropdownMatchSelectWidth:C}),o),Bo=T.useMemo(()=>merge(ae.Form?.defaultValidateMessages||{},fe.locale?.Form?.defaultValidateMessages||{},fe.form?.validateMessages||{},i?.validateMessages||{}),[fe,i?.validateMessages]);Object.keys(Bo).length>0&&(M=T.createElement(_o.Provider,{value:Bo},M)),s&&(M=T.createElement(Jo,{locale:s,_ANT_MARK__:go},M)),(M=T.createElement(sn.Provider,{value:pr},M)),p&&(M=T.createElement(ft,{size:p},M)),M=T.createElement(Eo,null,M);let fr=T.useMemo(()=>{let{algorithm:v,token:V,components:me,cssVar:de,...Fe}=Be||{},Fo=v&&(!Array.isArray(v)||v.length>0)?createTheme(v):Ue,lo={};Object.entries(me||{}).forEach(([mr,dr])=>{let q={...dr};"algorithm"in q&&(q.algorithm===true?q.theme=Fo:(Array.isArray(q.algorithm)||typeof q.algorithm=="function")&&(q.theme=createTheme(q.algorithm)),delete q.algorithm),lo[mr]=q;});let Wo={...Y,...V};return {...Fe,theme:Fo,token:Wo,components:lo,override:{override:Wo,...lo},cssVar:de}},[Be]);return j&&(M=T.createElement(we.Provider,{value:fr},M)),fe.warning&&(M=T.createElement(po.Provider,{value:fe.warning},M)),A!==void 0&&(M=T.createElement(ct,{disabled:A},M)),T.createElement(w.Provider,{value:fe},M)},Se=e=>{let o=T.useContext(w),r=T.useContext(Ae);return T.createElement(xn,{parentContext:o,legacyLocale:r,...e})};Se.ConfigContext=w;Se.SizeContext=Ie;Se.config=yn;Se.useConfig=dt;Object.defineProperty(Se,"SizeContext",{get:()=>(ge(false,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Ie)});process.env.NODE_ENV!=="production"&&(Se.displayName="ConfigProvider");var Sn=e=>{let{componentCls:o}=e;return {[o]:{position:"fixed",zIndex:e.zIndexPopup}}},hn=e=>({zIndexPopup:e.zIndexBase+10}),Et=ze("Affix",Sn,hn);function Ne(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function Do(e,o,r){if(r!==void 0&&Math.round(o.top)>Math.round(e.top)-r)return r+o.top}function zo(e,o,r){if(r!==void 0&&Math.round(o.bottom)<Math.round(e.bottom)+r){let n=window.innerHeight-o.bottom;return r+n}}var Nt=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"];function Tn(){return typeof window<"u"?window:null}var Ht=0,$t=1,Ot=T__default.forwardRef((e,o)=>{let{style:r,offsetTop:n,offsetBottom:t,prefixCls:a,className:i,rootClassName:s,children:p,target:l,onChange:c}=e,{getPrefixCls:m,getTargetContainer:d}=T__default.useContext(w),C=m("affix",a),[k,X]=T__default.useState(false),[h,P]=T__default.useState(),[E,j]=T__default.useState(),A=T__default.useRef(Ht),N=T__default.useRef(null),H=T__default.useRef(null),$=T__default.useRef(null),J=T__default.useRef(null),O=T__default.useRef(null),B=l??d??Tn,oe=t===void 0&&n===void 0?0:n,he=()=>{if(A.current!==$t||!J.current||!$.current||!B)return;let L=B();if(L){let g={status:Ht},S=Ne($.current);if(S.top===0&&S.left===0&&S.width===0&&S.height===0)return;let F=Ne(L),K=Do(S,F,oe),ce=zo(S,F,t);K!==void 0?(g.affixStyle={position:"fixed",top:K,width:S.width,height:S.height},g.placeholderStyle={width:S.width,height:S.height}):ce!==void 0&&(g.affixStyle={position:"fixed",bottom:ce,width:S.width,height:S.height},g.placeholderStyle={width:S.width,height:S.height}),g.lastAffix=!!g.affixStyle,k!==g.lastAffix&&c?.(g.lastAffix),A.current=g.status,P(g.affixStyle),j(g.placeholderStyle),X(g.lastAffix);}},le=()=>{A.current=$t,he(),process.env.NODE_ENV==="test"&&e?.onTestUpdatePosition?.();},b=fo(()=>{le();}),_=fo(()=>{if(B&&h){let L=B();if(L&&$.current){let g=Ne(L),S=Ne($.current),F=Do(S,g,oe),K=zo(S,g,t);if(F!==void 0&&h.top===F||K!==void 0&&h.bottom===K)return}}le();}),se=()=>{let L=B?.();L&&(Nt.forEach(g=>{H.current&&N.current?.removeEventListener(g,H.current),L?.addEventListener(g,_);}),N.current=L,H.current=_);},Te=()=>{O.current&&(clearTimeout(O.current),O.current=null);let L=B?.();Nt.forEach(g=>{L?.removeEventListener(g,_),H.current&&N.current?.removeEventListener(g,H.current);}),b.cancel(),_.cancel();};T__default.useImperativeHandle(o,()=>({updatePosition:b})),T__default.useEffect(()=>(O.current=setTimeout(se),()=>Te()),[]),T__default.useEffect(()=>{se();},[l,h]),T__default.useEffect(()=>{b();},[l,n,t]);let[ke,U,te]=Et(C),Pe=Ho(s,U,C,te),be=Ho({[Pe]:h}),re=zt(e,["prefixCls","offsetTop","offsetBottom","target","onChange","rootClassName"]);return process.env.NODE_ENV==="test"&&(re=zt(re,["onTestUpdatePosition"])),ke(T__default.createElement(Dt,{onResize:b},T__default.createElement("div",{style:r,className:i,ref:$,...re},h&&T__default.createElement("div",{style:E,"aria-hidden":"true"}),T__default.createElement("div",{className:be,ref:J,style:h},T__default.createElement(Dt,{onResize:b},p)))))});process.env.NODE_ENV!=="production"&&(Ot.displayName="Affix");var Bt=Ot;var kn=e=>{let[,,,,o]=G();return o?`${e}-css-var`:""},Ft=kn;var Pn=T.createContext(void 0),eo=Pn;var bn=e=>{let{href:o,title:r,prefixCls:n,children:t,className:a,target:i,replace:s}=e,p=T.useContext(eo),{registerLink:l,unregisterLink:c,scrollTo:m,onClick:d,activeLink:C,direction:k}=p||{};T.useEffect(()=>(l?.(o),()=>{c?.(o);}),[o]);let X=N=>{d?.(N,{title:r,href:o}),m?.(o),s&&(N.preventDefault(),window.location.replace(o));};process.env.NODE_ENV!=="production"&&z("Anchor.Link")(!t||k!=="horizontal","usage","`Anchor.Link children` is not supported when `Anchor` direction is horizontal");let{getPrefixCls:h}=T.useContext(w),P=h("anchor",n),E=C===o,j=Ho(`${P}-link`,a,{[`${P}-link-active`]:E}),A=Ho(`${P}-link-title`,{[`${P}-link-title-active`]:E});return T.createElement("div",{className:j},T.createElement("a",{className:A,href:o,title:typeof r=="string"?r:"",target:i,onClick:X},r),k!=="horizontal"?t:null)},oo=bn;var vn=e=>{let{componentCls:o,holderOffsetBlock:r,motionDurationSlow:n,lineWidthBold:t,colorPrimary:a,lineType:i,colorSplit:s,calc:p}=e;return {[`${o}-wrapper`]:{marginBlockStart:p(r).mul(-1).equal(),paddingBlockStart:r,[o]:{...St(e),position:"relative",paddingInlineStart:t,[`${o}-link`]:{paddingBlock:e.linkPaddingBlock,paddingInline:`${unit(e.linkPaddingInlineStart)} 0`,"&-title":{...xt,position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}},[`&-active > ${o}-link-title`]:{color:e.colorPrimary},[`${o}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}},[`&:not(${o}-wrapper-horizontal)`]:{[o]:{"&::before":{position:"absolute",insetInlineStart:0,top:0,height:"100%",borderInlineStart:`${unit(t)} ${i} ${s}`,content:'" "'},[`${o}-ink`]:{position:"absolute",insetInlineStart:0,display:"none",transform:"translateY(-50%)",transition:`top ${n} ease-in-out`,width:t,backgroundColor:a,[`&${o}-ink-visible`]:{display:"inline-block"}}}},[`${o}-fixed ${o}-ink ${o}-ink`]:{display:"none"}}}},Mn=e=>{let{componentCls:o,motionDurationSlow:r,lineWidthBold:n,colorPrimary:t}=e;return {[`${o}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:true,value:0},right:{_skip_check_:true,value:0},bottom:0,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,content:'" "'},[o]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${o}-link:first-of-type`]:{paddingInline:0},[`${o}-ink`]:{position:"absolute",bottom:0,transition:`left ${r} ease-in-out, width ${r} ease-in-out`,height:n,backgroundColor:t}}}}},Ln=e=>({linkPaddingBlock:e.paddingXXS,linkPaddingInlineStart:e.padding}),Gt=ze("Anchor",e=>{let{fontSize:o,fontSizeLG:r,paddingXXS:n,calc:t}=e,a=mergeToken(e,{holderOffsetBlock:n,anchorPaddingBlockSecondary:t(n).div(2).equal(),anchorTitleBlock:t(o).div(14).mul(3).equal(),anchorBallSize:t(r).div(2).equal()});return [vn(a),Mn(a)]},Ln);function Rn(){return window}function Xt(e,o){if(!e.getClientRects().length)return 0;let r=e.getBoundingClientRect();return r.width||r.height?o===window?r.top-e.ownerDocument.documentElement.clientTop:r.top-o.getBoundingClientRect().top:r.top}var jt=/#([\S ]+)$/,_t=e=>{let{rootClassName:o,prefixCls:r,className:n,style:t,offsetTop:a,affix:i=true,showInkInFixed:s=false,children:p,items:l,direction:c="vertical",bounds:m,targetOffset:d,onClick:C,onChange:k,getContainer:X,getCurrentAnchor:h,replace:P}=e;if(process.env.NODE_ENV!=="production"){let f=z("Anchor");f.deprecated(!p,"Anchor children","items"),f(!(c==="horizontal"&&l?.some(y=>"children"in y)),"usage","`Anchor items#children` is not supported when `Anchor` direction is horizontal.");}let[E,j]=T.useState([]),[A,N]=T.useState(null),H=T.useRef(A),$=T.useRef(null),J=T.useRef(null),O=T.useRef(false),{direction:B,anchor:oe,getTargetContainer:he,getPrefixCls:le}=T.useContext(w),b=le("anchor",r),_=Ft(b),[se,Te,ke]=Gt(b,_),U=X??he??Rn,te=JSON.stringify(E),Pe=$o(f=>{E.includes(f)||j(y=>[...y,f]);}),be=$o(f=>{E.includes(f)&&j(y=>y.filter(R=>R!==f));}),re=()=>{let f=$.current?.querySelector(`.${b}-link-title-active`);if(f&&J.current){let{style:y}=J.current,R=c==="horizontal";y.top=R?"":`${f.offsetTop+f.clientHeight/2}px`,y.height=R?"":`${f.clientHeight}px`,y.left=R?`${f.offsetLeft}px`:"",y.width=R?`${f.clientWidth}px`:"",R&&An(f,{scrollMode:"if-needed",block:"nearest"});}},L=(f,y=0,R=5)=>{let Z=[],ve=U();return f.forEach(ne=>{let W=jt.exec(ne?.toString());if(!W)return;let ie=document.getElementById(W[1]);if(ie){let Oe=Xt(ie,ve);Oe<=y+R&&Z.push({link:ne,top:Oe});}}),Z.length?Z.reduce((W,ie)=>ie.top>W.top?ie:W).link:""},g=$o(f=>{if(H.current===f)return;let y=typeof h=="function"?h(f):f;N(y),H.current=y,k?.(f);}),S=T.useCallback(()=>{if(O.current)return;let f=L(E,d!==void 0?d:a||0,m);g(f);},[te,d,a]),F=T.useCallback(f=>{g(f);let y=jt.exec(f);if(!y)return;let R=document.getElementById(y[1]);if(!R)return;let Z=U(),ve=Ve(Z),ne=Xt(R,Z),W=ve+ne;W-=d!==void 0?d:a||0,O.current=true,so(W,{getContainer:U,callback(){O.current=false;}});},[d,a]),K=Ho(Te,ke,_,o,`${b}-wrapper`,{[`${b}-wrapper-horizontal`]:c==="horizontal",[`${b}-rtl`]:B==="rtl"},n,oe?.className),ce=Ho(b,{[`${b}-fixed`]:!i&&!s}),to=Ho(`${b}-ink`,{[`${b}-ink-visible`]:A}),ro={maxHeight:a?`calc(100vh - ${a}px)`:"100vh",...oe?.style,...t},He=f=>Array.isArray(f)?f.map(y=>T.createElement(oo,{replace:P,...y,key:y.key},c==="vertical"&&He(y.children))):null,$e=T.createElement("div",{ref:$,className:K,style:ro},T.createElement("div",{className:ce},T.createElement("span",{className:to,ref:J}),"items"in e?He(l):p));T.useEffect(()=>{let f=U();return S(),f?.addEventListener("scroll",S),()=>{f?.removeEventListener("scroll",S);}},[te]),T.useEffect(()=>{typeof h=="function"&&g(h(H.current||""));},[h]),T.useEffect(()=>{re();},[c,h,te,A]);let no=T.useMemo(()=>({registerLink:Pe,unregisterLink:be,scrollTo:F,activeLink:A,onClick:C,direction:c}),[A,C,F,c]),io=i&&typeof i=="object"?i:void 0;return se(T.createElement(eo.Provider,{value:no},i?T.createElement(Bt,{offsetTop:a,target:U,...io},$e):$e))};process.env.NODE_ENV!=="production"&&(_t.displayName="Anchor");var Ut=_t;var Kt=Ut;Kt.Link=oo;var xs=Kt;export{xs as default};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { GetDefaultToken } from '../../theme/internal';
|
|
2
|
+
export interface ComponentToken {
|
|
3
|
+
/**
|
|
4
|
+
* @desc 链接纵向内间距
|
|
5
|
+
* @descEN Vertical padding of link
|
|
6
|
+
*/
|
|
7
|
+
linkPaddingBlock: number;
|
|
8
|
+
/**
|
|
9
|
+
* @desc 链接横向内间距
|
|
10
|
+
* @descEN Horizontal padding of link
|
|
11
|
+
*/
|
|
12
|
+
linkPaddingInlineStart: number;
|
|
13
|
+
}
|
|
14
|
+
export declare const prepareComponentToken: GetDefaultToken<'Anchor'>;
|
|
15
|
+
declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: React.ReactElement) => React.ReactElement, string, string];
|
|
16
|
+
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 xe from'react';import xe__default,{useContext}from'react';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';var E={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},j=(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}),ge=()=>({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 W=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"}}}),N=(e,t,r,n)=>{let o=`[class^="${t}"], [class*=" ${t}"]`,l=r?`.${r}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},c={};return n!==false&&(c={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[l]:{...c,...i,[o]:i}}};var P=e=>({[`.${e}`]:{...ge(),[`.${e} .${e}-icon`]:{display:"block"}}});function V(e){return (e+8)/e}function v(e){let t=new Array(10).fill(null).map((r,n)=>{let o=n-1,l=e*Math.E**(o/5),i=n>1?Math.floor(l):Math.ceil(l);return Math.floor(i/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:V(r)}))}var _={version:"0.0.2"};var q=_.version;var M={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"},fe={...M,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=fe;function H(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){let{colorSuccess:n,colorWarning:o,colorError:l,colorInfo:i,colorPrimary:c,colorBgBase:g,colorTextBase:s}=e,a=t(c),p=t(n),m=t(o),f=t(l),C=t(i),se=r(g,s),ce=e.colorLink||e.colorInfo,h=t(ce),pe=new TinyColor(f[1]).mix(new TinyColor(f[3]),50).toHexString();return {...se,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:f[1],colorErrorBgHover:f[2],colorErrorBgFilledHover:pe,colorErrorBgActive:f[3],colorErrorBorder:f[3],colorErrorBorderHover:f[4],colorErrorHover:f[5],colorError:f[6],colorErrorActive:f[7],colorErrorTextHover:f[8],colorErrorText:f[9],colorErrorTextActive:f[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[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:h[4],colorLink:h[6],colorLinkActive:h[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}},Q=de;function w(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,...Q(n)}}var Ce=e=>{let{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},K=Ce;var ue=e=>{let t=v(e),r=t.map(a=>a.size),n=t.map(a=>a.lineHeight),o=r[1],l=r[0],i=r[2],c=n[1],g=n[0],s=n[2];return {fontSizeSM:l,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:s,lineHeightSM:g,fontHeight:Math.round(c*o),fontHeightLG:Math.round(s*i),fontHeightSM:Math.round(g*l),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},Y=ue;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 d=(e,t)=>new TinyColor(e).setAlpha(t).toRgbString(),y=(e,t)=>new TinyColor(e).darken(t).toHexString();var Z=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]}},ee=(e,t)=>{let r=e||"#fff",n=t||"#000";return {colorBgBase:r,colorTextBase:n,colorText:d(n,.88),colorTextSecondary:d(n,.65),colorTextTertiary:d(n,.45),colorTextQuaternary:d(n,.25),colorFill:d(n,.15),colorFillSecondary:d(n,.06),colorFillTertiary:d(n,.04),colorFillQuaternary:d(n,.02),colorBgSolid:d(n,1),colorBgSolidHover:d(n,.75),colorBgSolidActive:d(n,.95),colorBgLayout:y(r,4),colorBgContainer:y(r,0),colorBgElevated:y(r,0),colorBgSpotlight:d(n,.85),colorBgBlur:"transparent",colorBorder:y(r,15),colorBorderSecondary:y(r,6)}};function D(e){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let t=Object.keys(M).map(r=>{let n=e[r]===presetPrimaryColors[r]?presetPalettes[r]:generate(e[r]);return new Array(10).fill(1).reduce((o,l,i)=>(o[`${r}-${i+1}`]=n[i],o[`${r}${i+1}`]=n[i],o),{})}).reduce((r,n)=>(r={...r,...n},r),{});return {...e,...t,...H(e,{generateColorPalettes:Z,generateNeutralColorPalettes:ee}),...Y(e.fontSize),...A(e),...K(e),...w(e)}}var oe=createTheme(D),te={token:u,override:{override:u},hashed:true},L=xe__default.createContext(te);function F(e){return e>=0&&e<=255}function Te(e,t){let{r,g:n,b:o,a:l}=new TinyColor(e).toRgb();if(l<1)return e;let{r:i,g:c,b:g}=new TinyColor(t).toRgb();for(let s=.01;s<=1;s+=.01){let a=Math.round((r-i*(1-s))/s),p=Math.round((n-c*(1-s))/s),m=Math.round((o-g*(1-s))/s);if(F(a)&&F(p)&&F(m))return new TinyColor({r:a,g:p,b:m,a:Math.round(s*100)/100}).toRgbString()}return new TinyColor({r,g:n,b:o,a:1}).toRgbString()}var S=Te;function T(e){let{override:t,...r}=e,n={...t};Object.keys(u).forEach(m=>{delete n[m];});let o={...r,...n},l=480,i=576,c=768,g=992,s=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:S(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:S(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:S(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:S(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:l,screenXSMin:l,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:c-1,screenMD:c,screenMDMin:c,screenMDMax:g-1,screenLG:g,screenLGMin:g,screenLGMax:s-1,screenXL:s,screenXLMin:s,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 X={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},Pe={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},ve={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},re=(e,t,r)=>{let n=r.getDerivativeToken(e),{override:o,...l}=t,i={...n,override:o};return i=T(i),l&&Object.entries(l).forEach(([c,g])=>{let{theme:s,...a}=g,p=a;s&&(p=re({...i,...a},{override:a},s)),i[c]=p;}),i};function x(){let{token:e,hashed:t,theme:r,override:n,cssVar:o}=xe__default.useContext(L),l=`${q}-${t||""}`,i=r||oe,[c,g,s]=useCacheToken(i,[u,e],{salt:l,override:n,getComputedToken:re,formatToken:T,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:X,ignore:Pe,preserve:ve}});return [i,s,t?g:"",c,o]}var ne="ant",G="anticon";var Me=(e,t)=>t||(e?`${ne}-${e}`:ne),b=xe.createContext({getPrefixCls:Me,iconPrefixCls:G}),{Consumer:Io}=b;var{genStyleHooks:O,genComponentStyleHook:He,genSubStyleComponent:we}=genStyleUtils({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=useContext(b);return {rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,r,n,o]=x();return {theme:e,realToken:t,hashId:r,token:n,cssVar:o}},useCSP:()=>{let{csp:e}=useContext(b);return e??{}},getResetStyles:(e,t)=>[{"&":W(e)},P(t?.prefix.iconPrefixCls??G)],getCommonStyle:N,getCompUnitless:(()=>X)});var Ae=e=>{let{componentCls:t,holderOffsetBlock:r,motionDurationSlow:n,lineWidthBold:o,colorPrimary:l,lineType:i,colorSplit:c,calc:g}=e;return {[`${t}-wrapper`]:{marginBlockStart:g(r).mul(-1).equal(),paddingBlockStart:r,[t]:{...j(e),position:"relative",paddingInlineStart:o,[`${t}-link`]:{paddingBlock:e.linkPaddingBlock,paddingInline:`${unit(e.linkPaddingInlineStart)} 0`,"&-title":{...E,position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}},[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}},[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",insetInlineStart:0,top:0,height:"100%",borderInlineStart:`${unit(o)} ${i} ${c}`,content:'" "'},[`${t}-ink`]:{position:"absolute",insetInlineStart:0,display:"none",transform:"translateY(-50%)",transition:`top ${n} ease-in-out`,width:o,backgroundColor:l,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},Be=e=>{let{componentCls:t,motionDurationSlow:r,lineWidthBold:n,colorPrimary:o}=e;return {[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:true,value:0},right:{_skip_check_:true,value:0},bottom:0,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:`left ${r} ease-in-out, width ${r} ease-in-out`,height:n,backgroundColor:o}}}}},Ie=e=>({linkPaddingBlock:e.paddingXXS,linkPaddingInlineStart:e.padding}),mt=O("Anchor",e=>{let{fontSize:t,fontSizeLG:r,paddingXXS:n,calc:o}=e,l=mergeToken(e,{holderOffsetBlock:n,anchorPaddingBlockSecondary:o(n).div(2).equal(),anchorTitleBlock:o(t).div(14).mul(3).equal(),anchorBallSize:o(r).div(2).equal()});return [Ae(l),Be(l)]},Ie);export{mt as default,Ie as prepareComponentToken};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ConfigOptions as MessageConfig, MessageInstance } from '../message/interface';
|
|
3
|
+
import type { HookAPI as ModalHookAPI } from '../modal/useModal';
|
|
4
|
+
import type { NotificationConfig, NotificationInstance } from '../notification/interface';
|
|
5
|
+
export interface AppConfig {
|
|
6
|
+
message?: MessageConfig;
|
|
7
|
+
notification?: NotificationConfig;
|
|
8
|
+
}
|
|
9
|
+
export declare const AppConfigContext: React.Context<AppConfig>;
|
|
10
|
+
export interface useAppProps {
|
|
11
|
+
message: MessageInstance;
|
|
12
|
+
notification: NotificationInstance;
|
|
13
|
+
modal: ModalHookAPI;
|
|
14
|
+
}
|
|
15
|
+
declare const AppContext: React.Context<useAppProps>;
|
|
16
|
+
export default AppContext;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import o from'react';var i=o.createContext({}),t=o.createContext({message:{},notification:{},modal:{}}),n=t;export{i as AppConfigContext,n as default};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { AnyObject, CustomComponent } from '../_util/type';
|
|
4
|
+
import type { AppConfig, useAppProps } from './context';
|
|
5
|
+
export interface AppProps<P = AnyObject> extends AppConfig {
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
className?: string;
|
|
8
|
+
rootClassName?: string;
|
|
9
|
+
prefixCls?: string;
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
component?: CustomComponent<P> | false;
|
|
12
|
+
}
|
|
13
|
+
declare const App: React.FC<AppProps> & {
|
|
14
|
+
useApp: () => useAppProps;
|
|
15
|
+
};
|
|
16
|
+
export default App;
|
package/es/app/index.js
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import*as I from'react';import I__default,{createContext,useContext,forwardRef,useMemo,useState,useRef,Children,useEffect}from'react';import ht from'classnames';import ls,{resetWarned}from'rc-util/lib/warning';import {createTheme,Keyframes,unit,useCacheToken,useStyleRegister}from'@ant-design/cssinjs';import Js from'@ant-design/icons/lib/components/Context';import Zs from'rc-util/lib/hooks/useMemo';import {merge}from'rc-util/lib/utils/set';import gs from'rc-pagination/lib/locale/en_US';import fs from'rc-picker/lib/locale/en_US';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';import Ns from'rc-util/lib/Dom/canUseDom';import {updateCSS}from'rc-util/lib/Dom/dynamicCSS';import Qs from'rc-util/lib/isEqual';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import Ul,{Provider}from'rc-motion';import Ml from'@ant-design/icons/CloseOutlined';import {useNotification,NotificationProvider}from'rc-notification';import bl from'@ant-design/icons/CheckCircleFilled';import hl from'@ant-design/icons/CloseCircleFilled';import Pl from'@ant-design/icons/ExclamationCircleFilled';import Tl from'@ant-design/icons/InfoCircleFilled';import vl from'@ant-design/icons/LoadingOutlined';import*as Fl from'react-dom';import {unmount,render}from'rc-util/lib/React/render';import Np from'rc-util/lib/hooks/useState';import Wi from'rc-util/lib/omit';import {useComposeRef,supportRef,composeRef,getNodeRef}from'rc-util/lib/ref';import oc from'rc-util/lib/Dom/isVisible';import Zl from'rc-util/lib/hooks/useEvent';import ni from'rc-util/lib/raf';import op from'rc-util/lib/Children/toArray';import {Color}from'@rc-component/color-picker';import'rc-util/lib/hooks/useMergedState';import Jc from'@ant-design/icons/RightOutlined';import $c from'rc-collapse';import Lm from'rc-dialog';import'rc-field-form';import Gp from'rc-util/lib/pickAttrs';import'rc-util/lib/Dom/styleChecker';function pn(){}var se=null;function ps(){se=null,resetWarned();}var Bt=pn;process.env.NODE_ENV!=="production"&&(Bt=(e,o,t)=>{ls(e,`[swiftcrab: ${o}] ${t}`),process.env.NODE_ENV==="test"&&ps();});var Et=I.createContext({}),k=process.env.NODE_ENV!=="production"?e=>{let{strict:o}=I.useContext(Et),t=(r,n,i)=>{if(!r)if(o===false&&n==="deprecated"){let a=se;se||(se={}),se[e]=se[e]||[],se[e].includes(i||"")||se[e].push(i||""),a||console.warn("[swiftcrab] There exists deprecated usage in your code:",se);}else Bt(r,e,i);};return t.deprecated=(r,n,i,a)=>{t(r,"deprecated",`\`${n}\` is deprecated. Please use \`${i}\` instead.${a?` ${a}`:""}`);},t}:()=>{let e=()=>{};return e.deprecated=pn,e},le=Bt;var mn=createContext(void 0);var ds={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Xo=ds;var us={lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],...fs},timePickerLocale:{...Xo}},Ko=us;var dn=Ko;var U="${label} is not a valid ${type}",Cs={locale:"en",Pagination:gs,DatePicker:Ko,TimePicker:Xo,Calendar:dn,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:U,method:U,array:U,object:U,number:U,date:U,boolean:U,integer:U,float:U,regexp:U,email:U,url:U,hex:U},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}},oe=Cs;var qo={...oe.Modal},Zo=[],fn=()=>Zo.reduce((e,o)=>({...e,...o}),oe.Modal);function un(e){if(e){let o={...e};return Zo.push(o),qo=fn(),()=>{Zo=Zo.filter(t=>t!==o),qo=fn();}}qo={...oe.Modal};}function Lt(){return qo}var Ss=createContext(void 0),Xe=Ss;var xs=(e,o)=>{let t=I.useContext(Xe),r=I.useMemo(()=>{let i=o||oe[e],a=t?.[e]??{};return {...typeof i=="function"?i():i,...a||{}}},[e,o,t]),n=I.useMemo(()=>{let i=t?.locale;return t?.exist&&!i?oe.locale:i},[t]);return [r,n]},be=xs;var Ht="internalMark",gn=e=>{let{locale:o={},children:t,_ANT_MARK__:r}=e;process.env.NODE_ENV!=="production"&&k("LocaleProvider")(r===Ht,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),I.useEffect(()=>un(o?.Modal),[o]);let n=I.useMemo(()=>({...o,exist:true}),[o]);return I.createElement(Xe.Provider,{value:n},t)};process.env.NODE_ENV!=="production"&&(gn.displayName="LocaleProvider");var Cn=gn;var Ft={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"},bs={...Ft,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},ce=bs;function Ot(e,{generateColorPalettes:o,generateNeutralColorPalettes:t}){let{colorSuccess:r,colorWarning:n,colorError:i,colorInfo:a,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,p=o(s),m=o(r),d=o(n),u=o(i),g=o(a),f=t(l,c),C=e.colorLink||e.colorInfo,S=o(C),y=new TinyColor(u[1]).mix(new TinyColor(u[3]),50).toHexString();return {...f,colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:u[1],colorErrorBgHover:u[2],colorErrorBgFilledHover:y,colorErrorBgActive:u[3],colorErrorBorder:u[3],colorErrorBorderHover:u[4],colorErrorHover:u[5],colorError:u[6],colorErrorActive:u[7],colorErrorTextHover:u[8],colorErrorText:u[9],colorErrorTextActive:u[10],colorWarningBg:d[1],colorWarningBgHover:d[2],colorWarningBorder:d[3],colorWarningBorderHover:d[4],colorWarningHover:d[4],colorWarning:d[6],colorWarningActive:d[7],colorWarningTextHover:d[8],colorWarningText:d[9],colorWarningTextActive:d[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:S[4],colorLink:S[6],colorLinkActive:S[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var hs=e=>{let o=e,t=e,r=e,n=e;return e<6&&e>=5?o=e+1:e<16&&e>=6?o=e+2:e>=16&&(o=16),e<7&&e>=5?t=4:e<8&&e>=7?t=5:e<14&&e>=8?t=6:e<16&&e>=14?t=7:e>=16&&(t=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?n=4:e>=8&&(n=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:t,borderRadiusLG:o,borderRadiusOuter:n}},yn=hs;function At(e){let{motionUnit:o,motionBase:t,borderRadius:r,lineWidth:n}=e;return {motionDurationFast:`${(t+o).toFixed(1)}s`,motionDurationMid:`${(t+o*2).toFixed(1)}s`,motionDurationSlow:`${(t+o*3).toFixed(1)}s`,lineWidthBold:n+1,...yn(r)}}var Ps=e=>{let{controlHeight:o}=e;return {controlHeightSM:o*.75,controlHeightXS:o*.5,controlHeightLG:o*1.25}},Sn=Ps;function qe(e){return (e+8)/e}function Dt(e){let o=new Array(10).fill(null).map((t,r)=>{let n=r-1,i=e*Math.E**(n/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return o[1]=e,o.map(t=>({size:t,lineHeight:qe(t)}))}var Ts=e=>{let o=Dt(e),t=o.map(p=>p.size),r=o.map(p=>p.lineHeight),n=t[1],i=t[0],a=t[2],s=r[1],l=r[0],c=r[2];return {fontSizeSM:i,fontSize:n,fontSizeLG:a,fontSizeXL:t[3],fontSizeHeading1:t[6],fontSizeHeading2:t[5],fontSizeHeading3:t[4],fontSizeHeading4:t[3],fontSizeHeading5:t[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*n),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},xn=Ts;function Gt(e){let{sizeUnit:o,sizeStep:t}=e;return {sizeXXL:o*(t+8),sizeXL:o*(t+4),sizeLG:o*(t+2),sizeMD:o*(t+1),sizeMS:o*t,size:o*t,sizeSM:o*(t-1),sizeXS:o*(t-2),sizeXXS:o*(t-3)}}var X=(e,o)=>new TinyColor(e).setAlpha(o).toRgbString(),Ze=(e,o)=>new TinyColor(e).darken(o).toHexString();var hn=e=>{let o=generate(e);return {1:o[0],2:o[1],3:o[2],4:o[3],5:o[4],6:o[5],7:o[6],8:o[4],9:o[5],10:o[6]}},Pn=(e,o)=>{let t=e||"#fff",r=o||"#000";return {colorBgBase:t,colorTextBase:r,colorText:X(r,.88),colorTextSecondary:X(r,.65),colorTextTertiary:X(r,.45),colorTextQuaternary:X(r,.25),colorFill:X(r,.15),colorFillSecondary:X(r,.06),colorFillTertiary:X(r,.04),colorFillQuaternary:X(r,.02),colorBgSolid:X(r,1),colorBgSolidHover:X(r,.75),colorBgSolidActive:X(r,.95),colorBgLayout:Ze(t,4),colorBgContainer:Ze(t,0),colorBgElevated:Ze(t,0),colorBgSpotlight:X(r,.85),colorBgBlur:"transparent",colorBorder:Ze(t,15),colorBorderSecondary:Ze(t,6)}};function jt(e){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let o=Object.keys(Ft).map(t=>{let r=e[t]===presetPrimaryColors[t]?presetPalettes[t]:generate(e[t]);return new Array(10).fill(1).reduce((n,i,a)=>(n[`${t}-${a+1}`]=r[a],n[`${t}${a+1}`]=r[a],n),{})}).reduce((t,r)=>(t={...t,...r},t),{});return {...e,...o,...Ot(e,{generateColorPalettes:hn,generateNeutralColorPalettes:Pn}),...xn(e.fontSize),...Gt(e),...Sn(e),...At(e)}}var Qo=createTheme(jt),So={token:ce,override:{override:ce},hashed:true},xo=I__default.createContext(So);var he="ant",bo="anticon";var ks=(e,o)=>o||(e?`${he}-${e}`:he),h=I.createContext({getPrefixCls:ks,iconPrefixCls:bo}),{Consumer:Is}=h;var Bs=`-ant-${Date.now()}-${Math.random()}`;function Es(e,o){let t={},r=(a,s)=>{let l=a.clone();return l=s?.(l)||l,l.toRgbString()},n=(a,s)=>{let l=new TinyColor(a),c=generate(l.toRgbString());t[`${s}-color`]=r(l),t[`${s}-color-disabled`]=c[1],t[`${s}-color-hover`]=c[4],t[`${s}-color-active`]=c[6],t[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),t[`${s}-color-deprecated-bg`]=c[0],t[`${s}-color-deprecated-border`]=c[2];};if(o.primaryColor){n(o.primaryColor,"primary");let a=new TinyColor(o.primaryColor),s=generate(a.toRgbString());s.forEach((c,p)=>{t[`primary-${p+1}`]=c;}),t["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),t["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),t["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),t["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),t["primary-color-deprecated-f-12"]=r(a,c=>c.setAlpha(c.getAlpha()*.12));let l=new TinyColor(s[0]);t["primary-color-active-deprecated-f-30"]=r(l,c=>c.setAlpha(c.getAlpha()*.3)),t["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2));}return o.successColor&&n(o.successColor,"success"),o.warningColor&&n(o.warningColor,"warning"),o.errorColor&&n(o.errorColor,"error"),o.infoColor&&n(o.infoColor,"info"),`
|
|
4
|
+
:root {
|
|
5
|
+
${Object.keys(t).map(a=>`--${e}-${a}: ${t[a]};`).join(`
|
|
6
|
+
`)}
|
|
7
|
+
}
|
|
8
|
+
`.trim()}function Rn(e,o){let t=Es(e,o);Ns()?updateCSS(t,`${Bs}-dynamic-theme`):le(false,"ConfigProvider","SSR do not support dynamic theme with css variables.");}var Ut=I.createContext(false),Yo=({children:e,disabled:o})=>{let t=I.useContext(Ut);return I.createElement(Ut.Provider,{value:o??t},e)},Jo=Ut;var Xt=I.createContext(void 0),$n=({children:e,size:o})=>{let t=I.useContext(Xt);return I.createElement(Xt.Provider,{value:o||t},e)},Ee=Xt;function Ls(){let e=useContext(Jo),o=useContext(Ee);return {componentDisabled:e,componentSize:o}}var kn=Ls;var Nn={version:"0.0.2"};var wn=Nn.version;function Kt(e){return e>=0&&e<=255}function Fs(e,o){let{r:t,g:r,b:n,a:i}=new TinyColor(e).toRgb();if(i<1)return e;let{r:a,g:s,b:l}=new TinyColor(o).toRgb();for(let c=.01;c<=1;c+=.01){let p=Math.round((t-a*(1-c))/c),m=Math.round((r-s*(1-c))/c),d=Math.round((n-l*(1-c))/c);if(Kt(p)&&Kt(m)&&Kt(d))return new TinyColor({r:p,g:m,b:d,a:Math.round(c*100)/100}).toRgbString()}return new TinyColor({r:t,g:r,b:n,a:1}).toRgbString()}var ho=Fs;function ot(e){let{override:o,...t}=e,r={...o};Object.keys(ce).forEach(d=>{delete r[d];});let n={...t,...r},i=480,a=576,s=768,l=992,c=1200,p=1600;return n.motion===false&&(n.motionDurationFast="0s",n.motionDurationMid="0s",n.motionDurationSlow="0s"),{...n,colorFillContent:n.colorFillSecondary,colorFillContentHover:n.colorFill,colorFillAlter:n.colorFillQuaternary,colorBgContainerDisabled:n.colorFillTertiary,colorBorderBg:n.colorBgContainer,colorSplit:ho(n.colorBorderSecondary,n.colorBgContainer),colorTextPlaceholder:n.colorTextQuaternary,colorTextDisabled:n.colorTextQuaternary,colorTextHeading:n.colorText,colorTextLabel:n.colorTextSecondary,colorTextDescription:n.colorTextTertiary,colorTextLightSolid:n.colorWhite,colorHighlight:n.colorError,colorBgTextHover:n.colorFillSecondary,colorBgTextActive:n.colorFill,colorIcon:n.colorTextTertiary,colorIconHover:n.colorText,colorErrorOutline:ho(n.colorErrorBg,n.colorBgContainer),colorWarningOutline:ho(n.colorWarningBg,n.colorBgContainer),fontSizeIcon:n.fontSizeSM,lineWidthFocus:n.lineWidth*3,lineWidth:n.lineWidth,controlOutlineWidth:n.lineWidth*2,controlInteractiveSize:n.controlHeight/2,controlItemBgHover:n.colorFillTertiary,controlItemBgActive:n.colorPrimaryBg,controlItemBgActiveHover:n.colorPrimaryBgHover,controlItemBgActiveDisabled:n.colorFill,controlTmpOutline:n.colorFillQuaternary,controlOutline:ho(n.colorPrimaryBg,n.colorBgContainer),lineType:n.lineType,borderRadius:n.borderRadius,borderRadiusXS:n.borderRadiusXS,borderRadiusSM:n.borderRadiusSM,borderRadiusLG:n.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:n.sizeXXS,paddingXS:n.sizeXS,paddingSM:n.sizeSM,padding:n.size,paddingMD:n.sizeMD,paddingLG:n.sizeLG,paddingXL:n.sizeXL,paddingContentHorizontalLG:n.sizeLG,paddingContentVerticalLG:n.sizeMS,paddingContentHorizontal:n.sizeMS,paddingContentVertical:n.sizeSM,paddingContentHorizontalSM:n.size,paddingContentVerticalSM:n.sizeXS,marginXXS:n.sizeXXS,marginXS:n.sizeXS,marginSM:n.sizeSM,margin:n.size,marginMD:n.sizeMD,marginLG:n.sizeLG,marginXL:n.sizeXL,marginXXL:n.sizeXXL,boxShadow:`
|
|
9
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
10
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
11
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
12
|
+
`,boxShadowSecondary:`
|
|
13
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
14
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
15
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
16
|
+
`,boxShadowTertiary:`
|
|
17
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
18
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
19
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
20
|
+
`,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:p-1,screenXXL:p,screenXXLMin:p,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
21
|
+
0 1px 2px -2px ${new TinyColor("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
22
|
+
0 3px 6px 0 ${new TinyColor("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
23
|
+
0 5px 12px 4px ${new TinyColor("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
24
|
+
`,boxShadowDrawerRight:`
|
|
25
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
26
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
27
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
28
|
+
`,boxShadowDrawerLeft:`
|
|
29
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
30
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
31
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
32
|
+
`,boxShadowDrawerUp:`
|
|
33
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
34
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
35
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
36
|
+
`,boxShadowDrawerDown:`
|
|
37
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
38
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
39
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
40
|
+
`,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)",...r}}var Zt={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},As={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},Ds={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},Bn=(e,o,t)=>{let r=t.getDerivativeToken(e),{override:n,...i}=o,a={...r,override:n};return a=ot(a),i&&Object.entries(i).forEach(([s,l])=>{let{theme:c,...p}=l,m=p;c&&(m=Bn({...a,...p},{override:p},c)),a[s]=m;}),a};function L(){let{token:e,hashed:o,theme:t,override:r,cssVar:n}=I__default.useContext(xo),i=`${wn}-${o||""}`,a=t||Qo,[s,l,c]=useCacheToken(a,[ce,e],{salt:i,override:r,getComputedToken:Bn,formatToken:ot,cssVar:n&&{prefix:n.prefix,key:n.key,unitless:Zt,ignore:As,preserve:Ds}});return [a,c,o?l:"",s,n]}var Pe=(e,o=false)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:o?"inherit":e.fontFamily}),Po=()=>({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"}}),En=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Ln=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"}}}),Hn=(e,o,t,r)=>{let n=`[class^="${o}"], [class*=" ${o}"]`,i=t?`.${t}`:n,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},s={};return r!==false&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:{...s,...a,[n]:a}}},Ws=e=>({outline:`${unit(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Je=e=>({"&:focus-visible":{...Ws(e)}}),tt=e=>({[`.${e}`]:{...Po(),[`.${e} .${e}-icon`]:{display:"block"}}});var{genStyleHooks:G,genComponentStyleHook:Qt,genSubStyleComponent:Le}=genStyleUtils({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:o}=useContext(h);return {rootPrefixCls:e(),iconPrefixCls:o}},useToken:()=>{let[e,o,t,r,n]=L();return {theme:e,realToken:o,hashId:t,token:r,cssVar:n}},useCSP:()=>{let{csp:e}=useContext(h);return e??{}},getResetStyles:(e,o)=>[{"&":Ln(e)},tt(o?.prefix.iconPrefixCls??bo)],getCommonStyle:Hn,getCompUnitless:(()=>Zt)});var _s=(e,o)=>{let[t,r]=L();return useStyleRegister({theme:t,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>o?.nonce,layer:{name:"antd"}},()=>[tt(e)])},rt=_s;var Xs={...I},{useId:zn}=Xs,Ks=()=>"",qs=typeof zn>"u"?Ks:zn,On=qs;function Yt(e,o,t){let r=k("ConfigProvider"),n=e||{},i=n.inherit===false||!o?{...So,hashed:o?.hashed??So.hashed,cssVar:o?.cssVar}:o,a=On();if(process.env.NODE_ENV!=="production"){let s=n.cssVar||i.cssVar,l=!!(typeof n.cssVar=="object"&&n.cssVar?.key||a);r(!s||l,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.");}return Zs(()=>{if(!e)return o;let s={...i.components};Object.keys(e.components||{}).forEach(p=>{s[p]={...s[p],...e.components[p]};});let l=`css-var-${a.replace(/:/g,"")}`,c=(n.cssVar??i.cssVar)&&{prefix:t?.prefixCls,...typeof i.cssVar=="object"?i.cssVar:{},...typeof n.cssVar=="object"?n.cssVar:{},key:typeof n.cssVar=="object"&&n.cssVar?.key||l};return {...i,...n,token:{...i.token,...n.token},components:s,cssVar:c}},[n,i],(s,l)=>s.some((c,p)=>{let m=l[p];return !Qs(c,m,true)}))}function Jt(e){let{children:o}=e,[,t]=L(),{motion:r}=t,n=I.useRef(false);return n.current=n.current||r===false,n.current?I.createElement(Provider,{motion:r},o):o}var Dn=I.memo(({dropdownMatchSelectWidth:e})=>(k("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(Dn.displayName="PropWarning");var Gn=process.env.NODE_ENV!=="production"?Dn:()=>null;var er=false;process.env.NODE_ENV!=="production"?e=>{le(!er,e,"Static function can not consume context like dynamic theme. Please use 'App' component instead.");}:null;var rl=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],Vn;function sl(){return Vn||he}function ll(e){return Object.keys(e).some(o=>o.endsWith("Color"))}var cl=e=>{let{prefixCls:o,iconPrefixCls:t,theme:r,holderRender:n}=e;o!==void 0&&(Vn=o),r&&(ll(r)?(le(false,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),Rn(sl(),r)):r);};var pl=e=>{let{children:o,csp:t,autoInsertSpaceInButton:r,alert:n,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:p,splitter:m,virtual:d,dropdownMatchSelectWidth:u,popupMatchSelectWidth:g,popupOverflow:f,legacyLocale:C,parentContext:S,iconPrefixCls:y,theme:b,componentDisabled:P,segmented:v,statistic:x,spin:M,calendar:T,carousel:$,cascader:E,collapse:R,typography:j,checkbox:_,descriptions:J,divider:re,drawer:K,skeleton:xe,steps:N,image:We,layout:so,list:lo,mentions:ee,modal:V,progress:co,result:we,slider:ne,breadcrumb:Bo,menu:po,pagination:Eo,input:Be,textArea:Lo,empty:Ho,badge:mo,radio:Fo,rate:vt,switch:zo,transfer:Rt,avatar:Oo,message:Ao,tag:$t,table:fo,card:Do,tabs:Go,timeline:Mt,timePicker:kt,upload:Wo,notification:Vo,tree:uo,colorPicker:H,datePicker:It,rangePicker:qa,flex:Za,wave:Qa,dropdown:Ya,warning:Ja,tour:es,variant:os,inputNumber:ts,treeSelect:rs}=e,an=I.useCallback((z,ie)=>{let{prefixCls:_e}=e;if(ie)return ie;let Ue=_e||S.getPrefixCls("");return z?`${Ue}-${z}`:Ue},[S.getPrefixCls,e.prefixCls]),go=y||S.iconPrefixCls||bo,Co=t||S.csp;rt(go,Co);let jo=Yt(b,S.theme,{prefixCls:an("")});process.env.NODE_ENV!=="production"&&(er=er||!!jo);let Nt={csp:Co,autoInsertSpaceInButton:r,alert:n,anchor:i,locale:s||C,direction:c,space:p,splitter:m,virtual:d,popupMatchSelectWidth:g??u,popupOverflow:f,getPrefixCls:an,iconPrefixCls:go,theme:jo,segmented:v,statistic:x,spin:M,calendar:T,carousel:$,cascader:E,collapse:R,typography:j,checkbox:_,descriptions:J,divider:re,drawer:K,skeleton:xe,steps:N,image:We,input:Be,textArea:Lo,layout:so,list:lo,mentions:ee,modal:V,progress:co,result:we,slider:ne,breadcrumb:Bo,menu:po,pagination:Eo,empty:Ho,badge:mo,radio:Fo,rate:vt,switch:zo,transfer:Rt,avatar:Oo,message:Ao,tag:$t,table:fo,card:Do,tabs:Go,timeline:Mt,timePicker:kt,upload:Wo,notification:Vo,tree:uo,colorPicker:H,datePicker:It,rangePicker:qa,flex:Za,wave:Qa,dropdown:Ya,warning:Ja,tour:es,variant:os,inputNumber:ts,treeSelect:rs};process.env.NODE_ENV!=="production"&&k("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");let Ve={...S};Object.keys(Nt).forEach(z=>{Nt[z]!==void 0&&(Ve[z]=Nt[z]);}),rl.forEach(z=>{let ie=e[z];ie&&(Ve[z]=ie);}),typeof r<"u"&&(Ve.button={autoInsertSpace:r,...Ve.button});let je=Zs(()=>Ve,Ve,(z,ie)=>{let _e=Object.keys(z),Ue=Object.keys(ie);return _e.length!==Ue.length||_e.some(_o=>z[_o]!==ie[_o])}),ns=I.useMemo(()=>({prefixCls:go,csp:Co}),[go,Co]),D=I.createElement(I.Fragment,null,I.createElement(Gn,{dropdownMatchSelectWidth:u}),o),sn=I.useMemo(()=>merge(oe.Form?.defaultValidateMessages||{},je.locale?.Form?.defaultValidateMessages||{},je.form?.validateMessages||{},a?.validateMessages||{}),[je,a?.validateMessages]);Object.keys(sn).length>0&&(D=I.createElement(mn.Provider,{value:sn},D)),s&&(D=I.createElement(Cn,{locale:s,_ANT_MARK__:Ht},D)),(D=I.createElement(Js.Provider,{value:ns},D)),l&&(D=I.createElement($n,{size:l},D)),D=I.createElement(Jt,null,D);let is=I.useMemo(()=>{let{algorithm:z,token:ie,components:_e,cssVar:Ue,..._o}=jo||{},ln=z&&(!Array.isArray(z)||z.length>0)?createTheme(z):Qo,wt={};Object.entries(_e||{}).forEach(([as,ss])=>{let ae={...ss};"algorithm"in ae&&(ae.algorithm===true?ae.theme=ln:(Array.isArray(ae.algorithm)||typeof ae.algorithm=="function")&&(ae.theme=createTheme(ae.algorithm)),delete ae.algorithm),wt[as]=ae;});let cn={...ce,...ie};return {..._o,theme:ln,token:cn,components:wt,override:{override:cn,...wt},cssVar:Ue}},[jo]);return b&&(D=I.createElement(xo.Provider,{value:is},D)),je.warning&&(D=I.createElement(Et.Provider,{value:je.warning},D)),P!==void 0&&(D=I.createElement(Yo,{disabled:P},D)),I.createElement(h.Provider,{value:je},D)},He=e=>{let o=I.useContext(h),t=I.useContext(Xe);return I.createElement(pl,{parentContext:o,legacyLocale:t,...e})};He.ConfigContext=h;He.SizeContext=Ee;He.config=cl;He.useConfig=kn;Object.defineProperty(He,"SizeContext",{get:()=>(le(false,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Ee)});process.env.NODE_ENV!=="production"&&(He.displayName="ConfigProvider");var or=He;var ml=e=>{let[,,,,o]=L();return o?`${e}-css-var`:""},Te=ml;var jn=I__default.createContext(void 0);process.env.NODE_ENV!=="production"&&(jn.displayName="zIndexContext");var it=jn;var pe=100,ul=10,Fe=pe*ul,gl=Fe+pe,_n={Modal:pe,Drawer:pe,Popover:pe,Popconfirm:pe,Tooltip:pe,Tour:pe,FloatButton:pe},Cl={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function yl(e){return e in _n}var Un=(e,o)=>{let[,t]=L(),r=I__default.useContext(it),n=yl(e),i;if(o!==void 0)i=[o,o];else {let a=r??0;n?a+=(r?0:t.zIndexPopupBase)+_n[e]:a+=Cl[e],i=[r===void 0?o:a,a];}if(process.env.NODE_ENV!=="production"){let a=k(e),s=t.zIndexPopupBase+gl,l=i[0]||0;a(o!==void 0||l<=s,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.");}return i};var Sl=e=>{let{componentCls:o,iconCls:t,boxShadow:r,colorText:n,colorSuccess:i,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:p,motionDurationSlow:m,marginXS:d,paddingXS:u,borderRadiusLG:g,zIndexPopup:f,contentPadding:C,contentBg:S}=e,y=`${o}-notice`,b=new Keyframes("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:u,transform:"translateY(0)",opacity:1}}),P=new Keyframes("MessageMoveOut",{"0%":{maxHeight:e.height,padding:u,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),v={padding:u,textAlign:"center",[`${o}-custom-content`]:{display:"flex",alignItems:"center"},[`${o}-custom-content > ${t}`]:{marginInlineEnd:d,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:C,background:S,borderRadius:g,boxShadow:r,pointerEvents:"all"},[`${o}-success > ${t}`]:{color:i},[`${o}-error > ${t}`]:{color:a},[`${o}-warning > ${t}`]:{color:s},[`${o}-info > ${t},
|
|
41
|
+
${o}-loading > ${t}`]:{color:l}};return [{[o]:{...Pe(e),color:n,position:"fixed",top:d,width:"100%",pointerEvents:"none",zIndex:f,[`${o}-move-up`]:{animationFillMode:"forwards"},[`
|
|
42
|
+
${o}-move-up-appear,
|
|
43
|
+
${o}-move-up-enter
|
|
44
|
+
`]:{animationName:b,animationDuration:m,animationPlayState:"paused",animationTimingFunction:p},[`
|
|
45
|
+
${o}-move-up-appear${o}-move-up-appear-active,
|
|
46
|
+
${o}-move-up-enter${o}-move-up-enter-active
|
|
47
|
+
`]:{animationPlayState:"running"},[`${o}-move-up-leave`]:{animationName:P,animationDuration:m,animationPlayState:"paused",animationTimingFunction:p},[`${o}-move-up-leave${o}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}}},{[o]:{[`${y}-wrapper`]:{...v}}},{[`${o}-notice-pure-panel`]:{...v,padding:0,textAlign:"start"}}]},xl=e=>({zIndexPopup:e.zIndexPopupBase+Fe+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),tr=G("Message",e=>{let o=mergeToken(e,{height:150});return [Sl(o)]},xl);var $l={info:I.createElement(Tl,null),success:I.createElement(bl,null),error:I.createElement(hl,null),warning:I.createElement(Pl,null),loading:I.createElement(vl,null)},Kn=({prefixCls:e,type:o,icon:t,children:r})=>I.createElement("div",{className:ht(`${e}-custom-content`,`${e}-${o}`)},t||$l[o],I.createElement("span",null,r));function qn(e,o){return {motionName:o??`${e}-move-up`}}function Zn(e){let o,t=new Promise(n=>{o=e(()=>{n(true);});}),r=()=>{o?.();};return r.then=(n,i)=>t.then(n,i),r.promise=t,r}var Nl=8,wl=3,Bl=({children:e,prefixCls:o})=>{let t=Te(o),[r,n,i]=tr(o,t);return r(I.createElement(NotificationProvider,{classNames:{list:ht(n,i,t)}},e))},El=(e,{prefixCls:o,key:t})=>I.createElement(Bl,{prefixCls:o,key:t},e),Ll=I.forwardRef((e,o)=>{let{top:t,prefixCls:r,getContainer:n,maxCount:i,duration:a=wl,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:p,getPopupContainer:m,message:d,direction:u}=I.useContext(h),g=r||p("message"),f=()=>({left:"50%",transform:"translateX(-50%)",top:t??Nl}),C=()=>ht({[`${g}-rtl`]:s??u==="rtl"}),S=()=>qn(g,l),y=I.createElement("span",{className:`${g}-close-x`},I.createElement(Ml,{className:`${g}-close-icon`})),[b,P]=useNotification({prefixCls:g,style:f,className:C,motion:S,closable:false,closeIcon:y,duration:a,getContainer:()=>n?.()||m?.()||document.body,maxCount:i,onAllRemoved:c,renderNotifications:El});return I.useImperativeHandle(o,()=>({...b,prefixCls:g,message:d})),P}),Qn=0;function Hl(e){let o=I.useRef(null),t=k("Message");return [I.useMemo(()=>{let n=c=>{o.current?.close(c);},i=c=>{if(!o.current){t(false,"usage","You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.");let M=()=>{};return M.then=()=>{},M}let{open:p,prefixCls:m,message:d}=o.current,u=`${m}-notice`,{content:g,icon:f,type:C,key:S,className:y,style:b,onClose:P,...v}=c,x=S;return x==null&&(Qn+=1,x=`antd-message-${Qn}`),Zn(M=>(p({...v,key:x,content:I.createElement(Kn,{prefixCls:m,type:C,icon:f},g),placement:"top",className:ht(C&&`${u}-${C}`,y,d?.className),style:{...d?.style,...b},onClose:()=>{P?.(),M();}}),()=>{n(x);}))},s={open:i,destroy:c=>{c!==void 0?n(c):o.current?.destroy();}};return ["info","success","warning","error","loading"].forEach(c=>{let p=(m,d,u)=>{let g;m&&typeof m=="object"&&"content"in m?g=m:g={content:m};let f,C;typeof d=="function"?C=d:(f=d,C=u);let S={onClose:C,duration:f,...g,type:c};return i(S)};s[c]=p;}),s},[]),I.createElement(Ll,{key:"message-holder",...e,ref:o})]}function nr(e){return Hl(e)}function ir(){let[e,o]=I.useState([]),t=I.useCallback(r=>(o(n=>[...n,r]),()=>{o(n=>n.filter(i=>i!==r));}),[]);return [e,t]}var Al=(e,o)=>{if(process.env.NODE_ENV!=="production"){let t=parseInt(I.version.split(".")[0],10),r=Object.keys(Fl);le(t<19||r.includes("createRoot"),"compatible","swiftcrab v5 support React is 16 ~ 18. see https://u.ant.design/v5-for-19 for compatible.");}return render(e,o),()=>unmount(o)},Dl=Al;function ar(){return Dl}var sr=()=>({height:0,opacity:0}),Jn=e=>{let{scrollHeight:o}=e;return {height:o,opacity:1}},Gl=e=>({height:e?e.offsetHeight:0}),lr=(e,o)=>o?.deadline===true||o.propertyName==="height",Wl=(e=he)=>({motionName:`${e}-motion-collapse`,onAppearStart:sr,onEnterStart:sr,onAppearActive:Jn,onEnterActive:Jn,onLeaveStart:Gl,onLeaveActive:sr,onAppearEnd:lr,onEnterEnd:lr,onLeaveEnd:lr,motionDeadline:500});var eo=(e,o,t)=>t!==void 0?t:`${e}-${o}`;var ei=Wl;function oi(e){return e&&I__default.isValidElement(e)&&e.type===I__default.Fragment}var Vl=(e,o,t)=>I__default.isValidElement(e)?I__default.cloneElement(e,typeof t=="function"?t(e.props||{}):t):o;function ze(e,o){return Vl(e,e,o)}var jl=e=>{let{componentCls:o,colorPrimary:t}=e;return {[o]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${t})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},ti=Qt("Wave",e=>[jl(e)]);var lt=`${he}-wave-target`;function cr(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function ri(e){let{borderTopColor:o,borderColor:t,backgroundColor:r}=getComputedStyle(e);return cr(o)?o:cr(t)?t:cr(r)?r:null}function pr(e){return Number.isNaN(e)?0:e}var Kl=e=>{let{className:o,target:t,component:r,registerUnmount:n}=e,i=I.useRef(null),a=I.useRef(null);I.useEffect(()=>{a.current=n();},[]);let[s,l]=I.useState(null),[c,p]=I.useState([]),[m,d]=I.useState(0),[u,g]=I.useState(0),[f,C]=I.useState(0),[S,y]=I.useState(0),[b,P]=I.useState(false),v={left:m,top:u,width:f,height:S,borderRadius:c.map(T=>`${T}px`).join(" ")};s&&(v["--wave-color"]=s);function x(){let T=getComputedStyle(t);l(ri(t));let $=T.position==="static",{borderLeftWidth:E,borderTopWidth:R}=T;d($?t.offsetLeft:pr(-parseFloat(E))),g($?t.offsetTop:pr(-parseFloat(R))),C(t.offsetWidth),y(t.offsetHeight);let{borderTopLeftRadius:j,borderTopRightRadius:_,borderBottomLeftRadius:J,borderBottomRightRadius:re}=T;p([j,_,re,J].map(K=>pr(parseFloat(K))));}if(I.useEffect(()=>{if(t){let T=ni(()=>{x(),P(true);}),$;return typeof ResizeObserver<"u"&&($=new ResizeObserver(x),$.observe(t)),()=>{ni.cancel(T),$?.disconnect();}}},[]),!b)return null;let M=(r==="Checkbox"||r==="Radio")&&t?.classList.contains(lt);return I.createElement(Ul,{visible:true,motionAppear:true,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(T,$)=>{if($.deadline||$.propertyName==="opacity"){let E=i.current?.parentElement;a.current?.().then(()=>{E?.remove();});}return false}},({className:T},$)=>I.createElement("div",{ref:composeRef(i,$),className:ht(o,T,{"wave-quick":M}),style:v}))},ql=(e,o)=>{let{component:t}=o;if(t==="Checkbox"&&!e.querySelector("input")?.checked)return;let r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",e?.insertBefore(r,e?.firstChild);let n=ar(),i=null;function a(){return i}i=n(I.createElement(Kl,{...o,target:e,registerUnmount:a}),r);},ii=ql;var Ql=(e,o,t)=>{let{wave:r}=I.useContext(h),[,n,i]=L(),a=Zl(c=>{let p=e.current;if(r?.disabled||!p)return;let m=p.querySelector(`.${lt}`)||p,{showEffect:d}=r||{};(d||ii)(m,{className:o,token:n,component:t,event:c,hashId:i});}),s=I.useRef(null);return c=>{ni.cancel(s.current),s.current=ni(()=>{a(c);});}},si=Ql;var ci=e=>{let{children:o,disabled:t,component:r}=e,{getPrefixCls:n}=useContext(h),i=useRef(null),a=n("wave"),[,s]=ti(a),l=si(i,ht(a,s),r);if(I__default.useEffect(()=>{let p=i.current;if(!p||p.nodeType!==1||t)return;let m=d=>{!oc(d.target)||!p.getAttribute||p.getAttribute("disabled")||p.disabled||p.className.includes("disabled")||p.className.includes("-leave")||l(d);};return p.addEventListener("click",m,true),()=>{p.removeEventListener("click",m,true);}},[t]),!I__default.isValidElement(o))return o??null;let c=supportRef(o)?composeRef(getNodeRef(o),i):i;return ze(o,{ref:c})};process.env.NODE_ENV!=="production"&&(ci.displayName="Wave");var pi=ci;var ic=e=>{let o=I__default.useContext(Ee);return I__default.useMemo(()=>e?typeof e=="string"?e??o:e instanceof Function?e(o):o:o,[e,o])},To=ic;var ac=e=>{let{componentCls:o}=e;return {[o]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},di=ac;var sc=e=>{let{componentCls:o,antCls:t}=e;return {[o]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${o}-item:empty`]:{display:"none"},[`${o}-item > ${t}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},lc=e=>{let{componentCls:o}=e;return {[o]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}};G("Space",e=>{let o=mergeToken(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return [sc(o),lc(o),di(o)]},()=>({}),{resetStyle:false});var fi=I.createContext(null),ui=(e,o)=>{let t=I.useContext(fi),r=I.useMemo(()=>{if(!t)return "";let{compactDirection:n,isFirstItem:i,isLastItem:a}=t,s=n==="vertical"?"-vertical-":"-";return ht(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:o==="rtl"})},[e,o,t]);return {compactSize:t?.compactSize,compactDirection:t?.compactDirection,compactItemClassnames:r}},gi=({children:e})=>I.createElement(fi.Provider,{value:null},e);var mr=I.createContext(void 0),dc=e=>{let{getPrefixCls:o,direction:t}=I.useContext(h),{prefixCls:r,size:n,className:i,...a}=e,s=o("btn-group",r),[,,l]=L(),c="";switch(n){case "large":c="lg";break;case "small":c="sm";break;}process.env.NODE_ENV!=="production"&&k("Button.Group")(!n||["large","small","middle"].includes(n),"usage","Invalid prop `size`.");let p=ht(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:t==="rtl"},i,l);return I.createElement(mr.Provider,{value:n},I.createElement("div",{...a,className:p}))},Ci=dc;var yi=/^[\u4E00-\u9FA5]{2}$/,pt=yi.test.bind(yi);function mt(e){return e==="danger"?{danger:true}:{type:e}}function Si(e){return typeof e=="string"}function Ro(e){return e==="text"||e==="link"}function fc(e,o){if(e==null)return;let t=o?" ":"";return typeof e!="string"&&typeof e!="number"&&Si(e.type)&&pt(e.props.children)?ze(e,{children:e.props.children.split("").join(t)}):Si(e)?pt(e)?I__default.createElement("span",null,e.split("").join(t)):I__default.createElement("span",null,e):oi(e)?I__default.createElement("span",null,e):e}function xi(e,o){let t=false,r=[];return I__default.Children.forEach(e,n=>{let i=typeof n,a=i==="string"||i==="number";if(t&&a){let s=r.length-1,l=r[s];r[s]=`${l}${n}`;}else r.push(n);t=a;}),I__default.Children.map(r,n=>fc(n,o))}var yc=forwardRef((e,o)=>{let{className:t,style:r,children:n,prefixCls:i}=e,a=ht(`${i}-icon`,t);return I__default.createElement("span",{ref:o,className:a,style:r},n)}),dt=yc;var bi=forwardRef((e,o)=>{let{prefixCls:t,className:r,style:n,iconClassName:i}=e,a=ht(`${t}-loading-icon`,r);return I__default.createElement(dt,{prefixCls:t,className:a,style:n,ref:o},I__default.createElement(vl,{className:i}))}),dr=()=>({width:0,opacity:0,transform:"scale(0)"}),fr=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),hc=e=>{let{prefixCls:o,loading:t,existIcon:r,className:n,style:i,mount:a}=e,s=!!t;return r?I__default.createElement(bi,{prefixCls:o,className:n,style:i}):I__default.createElement(Ul,{visible:s,motionName:`${o}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:true,onAppearStart:dr,onAppearActive:fr,onEnterStart:dr,onEnterActive:fr,onLeaveStart:fr,onLeaveActive:dr},({className:l,style:c},p)=>{let m={...i,...c};return I__default.createElement(bi,{prefixCls:o,className:ht(n,l),style:m,ref:p})})},Pi=hc;var Ti=(e,o)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:o}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:o}}}}}),Pc=e=>{let{componentCls:o,fontSize:t,lineWidth:r,groupBorderColor:n,colorErrorHover:i}=e;return {[`${o}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${o}`]:{"&:not(:last-child)":{[`&, & > ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[o]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${o}-icon-only`]:{fontSize:t}},Ti(`${o}-primary`,n),Ti(`${o}-danger`,i)]}},vi=Pc;var Tc=(e,o)=>e?.replace(/[^\w/]/g,"").slice(0,o?8:6)||"",vc=(e,o)=>e?Tc(e,o):"",Mo=class e{metaColor;colors;cleared=false;constructor(o){if(o instanceof e){this.metaColor=o.metaColor.clone(),this.colors=o.colors?.map(r=>({color:new e(r.color),percent:r.percent})),this.cleared=o.cleared;return}let t=Array.isArray(o);t&&o.length?(this.colors=o.map(({color:r,percent:n})=>({color:new e(r),percent:n})),this.metaColor=new Color(this.colors[0].color.metaColor)):this.metaColor=new Color(t?"":o),(!o||t&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=true);}toHsb(){return this.metaColor.toHsb()}toHsbString(){return this.metaColor.toHsbString()}toHex(){return vc(this.toHexString(),this.metaColor.a<1)}toHexString(){return this.metaColor.toHexString()}toRgb(){return this.metaColor.toRgb()}toRgbString(){return this.metaColor.toRgbString()}isGradient(){return !!this.colors&&!this.cleared}getColors(){return this.colors||[{color:this,percent:0}]}toCssString(){let{colors:o}=this;return o?`linear-gradient(90deg, ${o.map(r=>`${r.color.toRgbString()} ${r.percent}%`).join(", ")})`:this.metaColor.toRgbString()}equals(o){return !o||this.isGradient()!==o.isGradient()?false:this.isGradient()?this.colors.length===o.colors.length&&this.colors.every((t,r)=>{let n=o.colors[r];return t.percent===n.percent&&t.color.equals(n.color)}):this.toHexString()===o.toHexString()}};var Mc=I.forwardRef((e,o)=>{process.env.NODE_ENV!=="production"&&k("Collapse.Panel").deprecated(!("disabled"in e),"disabled",'collapsible="disabled"');let{getPrefixCls:t}=I.useContext(h),{prefixCls:r,className:n,showArrow:i=true}=e,a=t("collapse",r),s=ht({[`${a}-no-arrow`]:!i},n);return I.createElement($c.Panel,{ref:o,...e,prefixCls:a,className:s})}),$i=Mc;var kc=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
48
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
49
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),ur=kc;var Ic=e=>({animationDuration:e,animationFillMode:"both"}),Nc=e=>({animationDuration:e,animationFillMode:"both"}),to=(e,o,t,r,n=false)=>{let i=n?"&":"";return {[`
|
|
50
|
+
${i}${e}-enter,
|
|
51
|
+
${i}${e}-appear
|
|
52
|
+
`]:{...Ic(r),animationPlayState:"paused"},[`${i}${e}-leave`]:{...Nc(r),animationPlayState:"paused"},[`
|
|
53
|
+
${i}${e}-enter${e}-enter-active,
|
|
54
|
+
${i}${e}-appear${e}-appear-active
|
|
55
|
+
`]:{animationName:o,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:t,animationPlayState:"running",pointerEvents:"none"}}};var ki=new Keyframes("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Ii=new Keyframes("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),gr=(e,o=false)=>{let{antCls:t}=e,r=`${t}-fade`,n=o?"&":"";return [to(r,ki,Ii,e.motionDurationMid,o),{[`
|
|
56
|
+
${n}${r}-enter,
|
|
57
|
+
${n}${r}-appear
|
|
58
|
+
`]:{opacity:0,animationTimingFunction:"linear"},[`${n}${r}-leave`]:{animationTimingFunction:"linear"}}]};new Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}});new Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}});new Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}});new Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}});new Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}});new Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}});new Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}});new Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}});new Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}});new Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}});new Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}});new Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}});new Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}});new Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}});new Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}});new Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}});var Ni=new Keyframes("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),wi=new Keyframes("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Cr=new Keyframes("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),yr=new Keyframes("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Bi=new Keyframes("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Ei=new Keyframes("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Li=new Keyframes("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Hi=new Keyframes("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Fi=new Keyframes("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),zi=new Keyframes("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Oi=new Keyframes("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Ai=new Keyframes("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Xc={zoom:{inKeyframes:Ni,outKeyframes:wi},"zoom-big":{inKeyframes:Cr,outKeyframes:yr},"zoom-big-fast":{inKeyframes:Cr,outKeyframes:yr},"zoom-left":{inKeyframes:Li,outKeyframes:Hi},"zoom-right":{inKeyframes:Fi,outKeyframes:zi},"zoom-up":{inKeyframes:Bi,outKeyframes:Ei},"zoom-down":{inKeyframes:Oi,outKeyframes:Ai}},Sr=(e,o)=>{let{antCls:t}=e,r=`${t}-${o}`,{inKeyframes:n,outKeyframes:i}=Xc[o];return [to(r,n,i,e.motionDurationMid),{[`
|
|
59
|
+
${r}-enter,
|
|
60
|
+
${r}-appear
|
|
61
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var Kc=e=>{let{componentCls:o,contentBg:t,padding:r,headerBg:n,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:p,colorBorder:m,colorText:d,colorTextHeading:u,colorTextDisabled:g,fontSizeLG:f,lineHeight:C,lineHeightLG:S,marginSM:y,paddingSM:b,paddingLG:P,paddingXS:v,motionDurationSlow:x,fontSizeIcon:M,contentPadding:T,fontHeight:$,fontHeightLG:E}=e,R=`${unit(c)} ${p} ${m}`;return {[o]:{...Pe(e),backgroundColor:n,border:R,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${o}-item`]:{borderBottom:R,"&:last-child":{[`
|
|
62
|
+
&,
|
|
63
|
+
& > ${o}-header`]:{borderRadius:`0 0 ${unit(l)} ${unit(l)}`}},[`> ${o}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:u,lineHeight:C,cursor:"pointer",transition:`all ${x}, visibility 0s`,[`> ${o}-header-text`]:{flex:"auto"},[`${o}-expand-icon`]:{height:$,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${o}-arrow`]:{...Po(),fontSize:M,transition:`transform ${x}`,svg:{transition:`transform ${x}`}},[`${o}-header-text`]:{marginInlineEnd:"auto"}},[`${o}-collapsible-header`]:{cursor:"default",[`${o}-header-text`]:{flex:"none",cursor:"pointer"}},[`${o}-collapsible-icon`]:{cursor:"unset",[`${o}-expand-icon`]:{cursor:"pointer"}}},[`${o}-content`]:{color:d,backgroundColor:t,borderTop:R,[`& > ${o}-content-box`]:{padding:T},"&-hidden":{display:"none"}},"&-small":{[`> ${o}-item`]:{[`> ${o}-header`]:{padding:a,paddingInlineStart:v,[`> ${o}-expand-icon`]:{marginInlineStart:e.calc(b).sub(v).equal()}},[`> ${o}-content > ${o}-content-box`]:{padding:b}}},"&-large":{[`> ${o}-item`]:{fontSize:f,lineHeight:S,[`> ${o}-header`]:{padding:s,paddingInlineStart:r,[`> ${o}-expand-icon`]:{height:E,marginInlineStart:e.calc(P).sub(r).equal()}},[`> ${o}-content > ${o}-content-box`]:{padding:P}}},[`${o}-item:last-child`]:{borderBottom:0,[`> ${o}-content`]:{borderRadius:`0 0 ${unit(l)} ${unit(l)}`}},[`& ${o}-item-disabled > ${o}-header`]:{"\n &,\n & > .arrow\n ":{color:g,cursor:"not-allowed"}},[`&${o}-icon-position-end`]:{[`& > ${o}-item`]:{[`> ${o}-header`]:{[`${o}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}}}},qc=e=>{let{componentCls:o}=e,t=`> ${o}-item > ${o}-header ${o}-arrow`;return {[`${o}-rtl`]:{[t]:{transform:"rotate(180deg)"}}}},Zc=e=>{let{componentCls:o,headerBg:t,paddingXXS:r,colorBorder:n}=e;return {[`${o}-borderless`]:{backgroundColor:t,border:0,[`> ${o}-item`]:{borderBottom:`1px solid ${n}`},[`
|
|
64
|
+
> ${o}-item:last-child,
|
|
65
|
+
> ${o}-item:last-child ${o}-header
|
|
66
|
+
`]:{borderRadius:0},[`> ${o}-item:last-child`]:{borderBottom:0},[`> ${o}-item > ${o}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${o}-item > ${o}-content > ${o}-content-box`]:{paddingTop:r}}}},Qc=e=>{let{componentCls:o,paddingSM:t}=e;return {[`${o}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${o}-item`]:{borderBottom:0,[`> ${o}-content`]:{backgroundColor:"transparent",border:0,[`> ${o}-content-box`]:{paddingBlock:t}}}}}},Yc=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),Di=G("Collapse",e=>{let o=mergeToken(e,{collapseHeaderPaddingSM:`${unit(e.paddingXS)} ${unit(e.paddingSM)}`,collapseHeaderPaddingLG:`${unit(e.padding)} ${unit(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return [Kc(o),Zc(o),Qc(o),qc(o),ur(o)]},Yc);var Vi=I.forwardRef((e,o)=>{let{getPrefixCls:t,direction:r,collapse:n}=I.useContext(h),{prefixCls:i,className:a,rootClassName:s,style:l,bordered:c=true,ghost:p,size:m,expandIconPosition:d="start",children:u,expandIcon:g}=e,f=To(R=>m??R??"middle"),C=t("collapse",i),S=t(),[y,b,P]=Di(C);process.env.NODE_ENV!=="production"&&k("Collapse")(d!=="left"&&d!=="right","deprecated","`expandIconPosition` with `left` or `right` is deprecated. Please use `start` or `end` instead.");let v=I.useMemo(()=>d==="left"?"start":d==="right"?"end":d,[d]),x=g??n?.expandIcon,M=I.useCallback((R={})=>{let j=typeof x=="function"?x(R):I.createElement(Jc,{rotate:R.isActive?90:void 0,"aria-label":R.isActive?"expanded":"collapsed"});return ze(j,()=>({className:ht(j?.props?.className,`${C}-arrow`)}))},[x,C]),T=ht(`${C}-icon-position-${v}`,{[`${C}-borderless`]:!c,[`${C}-rtl`]:r==="rtl",[`${C}-ghost`]:!!p,[`${C}-${f}`]:f!=="middle"},n?.className,a,s,b,P),$={...ei(S),motionAppear:false,leavedClassName:`${C}-content-hidden`},E=I.useMemo(()=>u?op(u).map((R,j)=>{let _=R.props;if(_?.disabled){let J=R.key??String(j),re={...Wi(R.props,["disabled"]),key:J,collapsible:_.collapsible??"disabled"};return ze(R,re)}return R}):null,[u]);return y(I.createElement($c,{ref:o,openMotion:$,...Wi(e,["rootClassName"]),expandIcon:M,prefixCls:C,className:T,style:{...n?.style,...l}},E))});process.env.NODE_ENV!=="production"&&(Vi.displayName="Collapse");Object.assign(Vi,{Panel:$i});var ji=(e,o)=>{let{r:t,g:r,b:n,a:i}=e.toRgb(),a=new Color(e.toRgbString()).onBackground(o).toHsv();return i<=.5?a.v>.5:t*.299+r*.587+n*.114>192};var ft=e=>{let{paddingInline:o,onlyIconSize:t}=e;return mergeToken(e,{buttonPaddingHorizontal:o,buttonPaddingVertical:0,buttonIconOnlyFontSize:t})},ut=e=>{let o=e.contentFontSize??e.fontSize,t=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,n=e.contentLineHeight??qe(o),i=e.contentLineHeightSM??qe(t),a=e.contentLineHeightLG??qe(r),s=ji(new Mo(e.colorBgSolid),"#fff")?"#000":"#fff";return {fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:s,contentFontSize:o,contentFontSizeSM:t,contentFontSizeLG:r,contentLineHeight:n,contentLineHeightSM:i,contentLineHeightLG:a,paddingBlock:Math.max((e.controlHeight-o*n)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-t*i)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*a)/2-e.lineWidth,0)}};var np=e=>{let{componentCls:o,iconCls:t,fontWeight:r,opacityLoading:n,motionDurationSlow:i,motionEaseInOut:a,marginXS:s,calc:l}=e;return {[o]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${unit(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${o}-icon > svg`]:Po(),"> a":{color:"currentColor"},"&:not(:disabled)":Je(e),[`&${o}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${o}-two-chinese-chars > *:not(${t})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${o}-icon-only`]:{paddingInline:0,[`&${o}-compact-item`]:{flex:"none"},[`&${o}-round`]:{width:"auto"}},[`&${o}-loading`]:{opacity:n,cursor:"default"},[`${o}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${i} ${a}`).join(",")},[`&:not(${o}-icon-end)`]:{[`${o}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${o}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},_i=(e,o,t)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":o,"&:active":t}}),ip=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),ap=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),sp=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),br=(e,o,t,r,n,i,a,s)=>({[`&${e}-background-ghost`]:{color:t||void 0,background:o,borderColor:r||void 0,boxShadow:"none",..._i(e,{background:o,...a},{background:o,...s}),"&:disabled":{cursor:"not-allowed",color:n||void 0,borderColor:i||void 0}}}),lp=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{...sp(e)}}),cp=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),gt=(e,o,t,r)=>({...(r&&["link","text"].includes(r)?cp:lp)(e),..._i(e.componentCls,o,t)}),hr=(e,o,t,r,n)=>({[`&${e.componentCls}-variant-solid`]:{color:o,background:t,...gt(e,r,n)}}),Pr=(e,o,t,r,n)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:{borderColor:o,background:t,...gt(e,r,n)}}),Tr=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),vr=(e,o,t,r)=>({[`&${e.componentCls}-variant-filled`]:{boxShadow:"none",background:o,...gt(e,t,r)}}),ro=(e,o,t,r,n)=>({[`&${e.componentCls}-variant-${t}`]:{color:o,boxShadow:"none",...gt(e,r,n,t)}}),pp=e=>({color:e.defaultColor,boxShadow:e.defaultShadow,...hr(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive}),...Tr(e),...vr(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill}),...ro(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive}),...br(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)}),mp=e=>({color:e.colorPrimary,boxShadow:e.primaryShadow,...Pr(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer}),...Tr(e),...vr(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder}),...ro(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder}),...br(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})}),dp=e=>({color:e.colorError,boxShadow:e.dangerShadow,...hr(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive}),...Pr(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive}),...Tr(e),...vr(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive}),...ro(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}),...ro(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive}),...br(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})}),fp=e=>{let{componentCls:o}=e;return {[`${o}-color-default`]:pp(e),[`${o}-color-primary`]:mp(e),[`${o}-color-dangerous`]:dp(e)}},up=e=>({...Pr(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg}),...ro(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive}),...hr(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor}),...ro(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})}),Rr=(e,o="")=>{let{componentCls:t,controlHeight:r,fontSize:n,borderRadius:i,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return [{[o]:{fontSize:n,height:r,padding:`${unit(l)} ${unit(a)}`,borderRadius:i,[`&${t}-icon-only`]:{width:r,[s]:{fontSize:c,verticalAlign:"calc(-0.125em - 1px)"}}}},{[`${t}${t}-circle${o}`]:ip(e)},{[`${t}${t}-round${o}`]:ap(e)}]},gp=e=>{let o=mergeToken(e,{fontSize:e.contentFontSize});return Rr(o,e.componentCls)},Cp=e=>{let o=mergeToken(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Rr(o,`${e.componentCls}-sm`)},yp=e=>{let o=mergeToken(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Rr(o,`${e.componentCls}-lg`)},Sp=e=>{let{componentCls:o}=e;return {[o]:{[`&${o}-block`]:{width:"100%"}}}},Ui=G("Button",e=>{let o=ft(e);return [np(o),gp(o),Cp(o),yp(o),Sp(o),fp(o),up(o),vi(o)]},ut,{unitless:{fontWeight:true,contentLineHeight:true,contentLineHeightSM:true,contentLineHeightLG:true}});function xp(e,o,t){let{focusElCls:r,focus:n,borderElCls:i}=t,a=i?"> *":"",s=["hover",n?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return {[`&-item:not(${o}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{[s]:{zIndex:2},...r?{[`&${r}`]:{zIndex:2}}:{},[`&[disabled] ${a}`]:{zIndex:0}}}}function bp(e,o,t){let{borderElCls:r}=t,n=r?`> ${r}`:"";return {[`&-item:not(${o}-first-item):not(${o}-last-item) ${n}`]:{borderRadius:0},[`&-item:not(${o}-last-item)${o}-first-item`]:{[`& ${n}, &${e}-sm ${n}, &${e}-lg ${n}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${o}-first-item)${o}-last-item`]:{[`& ${n}, &${e}-sm ${n}, &${e}-lg ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Xi(e,o={focus:true}){let{componentCls:t}=e,r=`${t}-compact`;return {[r]:{...xp(e,r,o),...bp(t,r,o)}}}function hp(e,o){return {[`&-item:not(${o}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Pp(e,o){return {[`&-item:not(${o}-first-item):not(${o}-last-item)`]:{borderRadius:0},[`&-item${o}-first-item:not(${o}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${o}-last-item:not(${o}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function Ki(e){let o=`${e.componentCls}-compact-vertical`;return {[o]:{...hp(e,o),...Pp(e.componentCls,o)}}}var Tp=e=>{let{componentCls:o,colorPrimaryHover:t,lineWidth:r,calc:n}=e,i=n(r).mul(-1).equal(),a=s=>({[`${o}-compact${s?"-vertical":""}-item${o}-primary:not([disabled])`]:{"& + &::before":{position:"absolute",top:s?i:0,insetInlineStart:s?0:i,backgroundColor:t,content:'""',width:s?"100%":r,height:s?r:"100%"}}});return {...a(),...a(true)}},qi=Le(["Button","compact"],e=>{let o=ft(e);return [Xi(o),Ki(o),Tp(o)]},ut);function Mp(e){if(typeof e=="object"&&e){let o=e?.delay;return o=!Number.isNaN(o)&&typeof o=="number"?o:0,{loading:o<=0,delay:o}}return {loading:!!e,delay:0}}var kp={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},Ip=I__default.forwardRef((e,o)=>{let{loading:t=false,prefixCls:r,color:n,variant:i,type:a,danger:s=false,shape:l="default",size:c,styles:p,disabled:m,className:d,rootClassName:u,children:g,icon:f,iconPosition:C="start",ghost:S=false,block:y=false,htmlType:b="button",classNames:P,style:v={},autoInsertSpace:x,autoFocus:M,...T}=e,$=a||"default",[E,R]=useMemo(()=>{if(n&&i)return [n,i];let H=kp[$]||[];return s?["danger",H[1]]:H},[a,n,i,s]),_=E==="danger"?"dangerous":E,{getPrefixCls:J,direction:re,button:K}=useContext(h),xe=x??K?.autoInsertSpace??true,N=J("btn",r),[We,so,lo]=Ui(N),ee=useContext(Jo),V=m??ee,co=useContext(mr),we=useMemo(()=>Mp(t),[t]),[ne,Bo]=useState(we.loading),[po,Eo]=useState(false),Be=useRef(null),Lo=useComposeRef(o,Be),Ho=Children.count(g)===1&&!f&&!Ro(R),mo=useRef(true);I__default.useEffect(()=>(mo.current=false,()=>{mo.current=true;}),[]),useEffect(()=>{let H=null;we.delay>0?H=setTimeout(()=>{H=null,Bo(true);},we.delay):Bo(we.loading);function It(){H&&(clearTimeout(H),H=null);}return It},[we]),useEffect(()=>{if(!Be.current||!xe)return;let H=Be.current.textContent||"";Ho&&pt(H)?po||Eo(true):po&&Eo(false);}),useEffect(()=>{M&&Be.current&&Be.current.focus();},[]);let Fo=I__default.useCallback(H=>{if(ne||V){H.preventDefault();return}e.onClick?.(H);},[e.onClick,ne,V]);if(process.env.NODE_ENV!=="production"){let H=k("Button");H(!(typeof f=="string"&&f.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${f}\` at https://ant.design/components/icon`),H(!(S&&Ro(R)),"usage","`link` or `text` button can't be a `ghost` button.");}let{compactSize:vt,compactItemClassnames:zo}=ui(N,re),Rt={large:"lg",small:"sm",middle:void 0},Oo=To(H=>c??vt??co??H),Ao=Oo?Rt[Oo]??"":"",$t=ne?"loading":f,fo=Wi(T,["navigate"]),Do=ht(N,so,lo,{[`${N}-${l}`]:l!=="default"&&l,[`${N}-${$}`]:$,[`${N}-dangerous`]:s,[`${N}-color-${_}`]:_,[`${N}-variant-${R}`]:R,[`${N}-${Ao}`]:Ao,[`${N}-icon-only`]:!g&&g!==0&&!!$t,[`${N}-background-ghost`]:S&&!Ro(R),[`${N}-loading`]:ne,[`${N}-two-chinese-chars`]:po&&xe&&!ne,[`${N}-block`]:y,[`${N}-rtl`]:re==="rtl",[`${N}-icon-end`]:C==="end"},zo,d,u,K?.className),Go={...K?.style,...v},Mt=ht(P?.icon,K?.classNames?.icon),kt={...p?.icon||{},...K?.styles?.icon||{}},Wo=f&&!ne?I__default.createElement(dt,{prefixCls:N,className:Mt,style:kt},f):I__default.createElement(Pi,{existIcon:!!f,prefixCls:N,loading:ne,mount:mo.current}),Vo=g||g===0?xi(g,Ho&&xe):null;if(fo.href!==void 0)return We(I__default.createElement("a",{...fo,className:ht(Do,{[`${N}-disabled`]:V}),href:V?void 0:fo.href,style:Go,onClick:Fo,ref:Lo,tabIndex:V?-1:0},Wo,Vo));let uo=I__default.createElement("button",{...T,type:b,className:Do,style:Go,onClick:Fo,disabled:V,ref:Lo},Wo,Vo,zo&&I__default.createElement(qi,{prefixCls:N}));return Ro(R)||(uo=I__default.createElement(pi,{component:"Button",disabled:ne},uo)),We(uo)}),Ct=Ip;Ct.Group=Ci;Ct.__ANT_BUTTON=true;process.env.NODE_ENV!=="production"&&(Ct.displayName="Button");var Ji=Ct;var no=Ji;function Ir(e){return !!e?.then}var wp=e=>{let{type:o,children:t,prefixCls:r,buttonProps:n,close:i,autoFocus:a,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:p}=e,m=I.useRef(false),d=I.useRef(null),[u,g]=Np(false),f=(...y)=>{i?.(...y);};I.useEffect(()=>{let y=null;return a&&(y=setTimeout(()=>{d.current?.focus({preventScroll:true});})),()=>{y&&clearTimeout(y);}},[]);let C=y=>{Ir(y)&&(g(true),y.then((...b)=>{g(false,true),f(...b),m.current=false;},b=>{if(g(false,true),m.current=false,!l?.())return Promise.reject(b)}));},S=y=>{if(m.current)return;if(m.current=true,!p){f();return}let b;if(s){if(b=p(y),c&&!Ir(b)){m.current=false,f(y);return}}else if(p.length)b=p(i),m.current=false;else if(b=p(),!Ir(b)){f();return}C(b);};return I.createElement(no,{...mt(o),onClick:S,loading:u,prefixCls:r,...n,ref:d},t)},yt=wp;var ue=I__default.createContext({}),{Provider:St}=ue;var Hp=()=>{let{autoFocusButton:e,cancelButtonProps:o,cancelTextLocale:t,isSilent:r,mergedOkCancel:n,rootPrefixCls:i,close:a,onCancel:s,onConfirm:l}=useContext(ue);return n?I__default.createElement(yt,{isSilent:r,actionFn:s,close:(...c)=>{a?.(...c),l?.(false);},autoFocus:e==="cancel",buttonProps:o,prefixCls:`${i}-btn`},t):null},Nr=Hp;var Op=()=>{let{autoFocusButton:e,close:o,isSilent:t,okButtonProps:r,rootPrefixCls:n,okTextLocale:i,okType:a,onConfirm:s,onOk:l}=useContext(ue);return I__default.createElement(yt,{isSilent:t,type:a||"primary",actionFn:l,close:(...c)=>{o?.(...c),s?.(true);},autoFocus:e==="ok",buttonProps:r,prefixCls:`${n}-btn`},i)},wr=Op;I.createContext({labelAlign:"right",vertical:false,itemRef:(()=>{})});I.createContext(null);I.createContext({prefixCls:""});var Br=I.createContext({});process.env.NODE_ENV!=="production"&&(Br.displayName="FormItemInputContext");var ea=({children:e,status:o,override:t})=>{let r=I.useContext(Br),n=I.useMemo(()=>{let i={...r};return t&&delete i.isFormItemInput,o&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[o,t,r]);return I.createElement(Br.Provider,{value:n},e)};I.createContext(void 0);var Ap=e=>{let{space:o,form:t,children:r}=e;if(r==null)return null;let n=r;return t&&(n=I__default.createElement(ea,{override:true,status:true},n)),o&&(n=I__default.createElement(gi,null,n)),n},ta=Ap;function Er(e){if(e)return {closable:e.closable,closeIcon:e.closeIcon}}function ra(e){let{closable:o,closeIcon:t}=e||{};return I__default.useMemo(()=>{if(!o&&(o===false||t===false||t===null))return false;if(o===void 0&&t===void 0)return null;let r={closeIcon:typeof t!="boolean"&&t!==null?t:void 0};return o&&typeof o=="object"&&(r={...r,...o}),r},[o,t])}function na(...e){let o={};return e.forEach(t=>{t&&Object.keys(t).forEach(r=>{t[r]!==void 0&&(o[r]=t[r]);});}),o}var Wp={};function Lr(e,o,t=Wp){let r=ra(e),n=ra(o),i=typeof r!="boolean"?!!r?.disabled:false,a=I__default.useMemo(()=>({closeIcon:I__default.createElement(Ml,null),...t}),[t]),s=I__default.useMemo(()=>r===false?false:r?na(a,n,r):n===false?false:n?na(a,n):a.closable?a:false,[r,n,a]);return I__default.useMemo(()=>{if(s===false)return [false,null,i];let{closeIconRender:l}=a,{closeIcon:c}=s,p=c;if(p!=null){l&&(p=l(c));let m=Gp(s,true);Object.keys(m).length&&(p=I__default.isValidElement(p)?I__default.cloneElement(p,m):I__default.createElement("span",{...m},p));}return [true,p,i]},[s,a])}var ia=()=>window.document.documentElement;var Vp=e=>{let{prefixCls:o,className:t,style:r,size:n,shape:i}=e,a=ht({[`${o}-lg`]:n==="large",[`${o}-sm`]:n==="small"}),s=ht({[`${o}-circle`]:i==="circle",[`${o}-square`]:i==="square",[`${o}-round`]:i==="round"}),l=I.useMemo(()=>typeof n=="number"?{width:n,height:n,lineHeight:`${n}px`}:{},[n]);return I.createElement("span",{className:ht(o,a,s,t),style:{...l,...r}})},ke=Vp;var Up=new Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),bt=e=>({height:e,lineHeight:unit(e)}),io=e=>({width:e,...bt(e)}),Xp=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Up,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Fr=(e,o)=>({width:o(e).mul(5).equal(),minWidth:o(e).mul(5).equal(),...bt(e)}),Kp=e=>{let{skeletonAvatarCls:o,gradientFromColor:t,controlHeight:r,controlHeightLG:n,controlHeightSM:i}=e;return {[o]:{display:"inline-block",verticalAlign:"top",background:t,...io(r)},[`${o}${o}-circle`]:{borderRadius:"50%"},[`${o}${o}-lg`]:{...io(n)},[`${o}${o}-sm`]:{...io(i)}}},qp=e=>{let{controlHeight:o,borderRadiusSM:t,skeletonInputCls:r,controlHeightLG:n,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return {[r]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,...Fr(o,s)},[`${r}-lg`]:{...Fr(n,s)},[`${r}-sm`]:{...Fr(i,s)}}},aa=e=>({width:e,...bt(e)}),Zp=e=>{let{skeletonImageCls:o,imageSizeBase:t,gradientFromColor:r,borderRadiusSM:n,calc:i}=e;return {[o]:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:n,...aa(i(t).mul(2).equal()),[`${o}-path`]:{fill:"#bfbfbf"},[`${o}-svg`]:{...aa(t),maxWidth:i(t).mul(4).equal(),maxHeight:i(t).mul(4).equal()},[`${o}-svg${o}-svg-circle`]:{borderRadius:"50%"}},[`${o}${o}-circle`]:{borderRadius:"50%"}}},zr=(e,o,t)=>{let{skeletonButtonCls:r}=e;return {[`${t}${r}-circle`]:{width:o,minWidth:o,borderRadius:"50%"},[`${t}${r}-round`]:{borderRadius:o}}},Or=(e,o)=>({width:o(e).mul(2).equal(),minWidth:o(e).mul(2).equal(),...bt(e)}),Qp=e=>{let{borderRadiusSM:o,skeletonButtonCls:t,controlHeight:r,controlHeightLG:n,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return {[t]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:o,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal(),...Or(r,s)},...zr(e,r,t),[`${t}-lg`]:{...Or(n,s)},...zr(e,n,`${t}-lg`),[`${t}-sm`]:{...Or(i,s)},...zr(e,i,`${t}-sm`)}},Yp=e=>{let{componentCls:o,skeletonAvatarCls:t,skeletonTitleCls:r,skeletonParagraphCls:n,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:p,gradientFromColor:m,padding:d,marginSM:u,borderRadius:g,titleHeight:f,blockRadius:C,paragraphLiHeight:S,controlHeightXS:y,paragraphMarginTop:b}=e;return {[o]:{display:"table",width:"100%",[`${o}-header`]:{display:"table-cell",paddingInlineEnd:d,verticalAlign:"top",[t]:{display:"inline-block",verticalAlign:"top",background:m,...io(l)},[`${t}-circle`]:{borderRadius:"50%"},[`${t}-lg`]:{...io(c)},[`${t}-sm`]:{...io(p)}},[`${o}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:f,background:m,borderRadius:C,[`+ ${n}`]:{marginBlockStart:p}},[n]:{padding:0,"> li":{width:"100%",height:S,listStyle:"none",background:m,borderRadius:C,"+ li":{marginBlockStart:y}}},[`${n}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${o}-content`]:{[`${r}, ${n} > li`]:{borderRadius:g}}},[`${o}-with-avatar ${o}-content`]:{[r]:{marginBlockStart:u,[`+ ${n}`]:{marginBlockStart:b}}},[`${o}${o}-element`]:{display:"inline-block",width:"auto",...Qp(e),...Kp(e),...qp(e),...Zp(e)},[`${o}${o}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${o}${o}-active`]:{[`
|
|
67
|
+
${r},
|
|
68
|
+
${n} > li,
|
|
69
|
+
${t},
|
|
70
|
+
${i},
|
|
71
|
+
${a},
|
|
72
|
+
${s}
|
|
73
|
+
`]:{...Xp(e)}}}},Jp=e=>{let{colorFillContent:o,colorFill:t}=e,r=o,n=t;return {color:r,colorGradientEnd:n,gradientFromColor:r,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Y=G("Skeleton",e=>{let{componentCls:o,calc:t}=e,r=mergeToken(e,{skeletonAvatarCls:`${o}-avatar`,skeletonTitleCls:`${o}-title`,skeletonParagraphCls:`${o}-paragraph`,skeletonButtonCls:`${o}-button`,skeletonInputCls:`${o}-input`,skeletonImageCls:`${o}-image`,imageSizeBase:t(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return [Yp(r)]},Jp,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});var tm=e=>{let{prefixCls:o,className:t,rootClassName:r,active:n,shape:i="circle",size:a="default"}=e,{getPrefixCls:s}=I.useContext(h),l=s("skeleton",o),[c,p,m]=Y(l),d=Wi(e,["prefixCls","className"]),u=ht(l,`${l}-element`,{[`${l}-active`]:n},t,r,p,m);return c(I.createElement("div",{className:u},I.createElement(ke,{prefixCls:`${l}-avatar`,shape:i,size:a,...d})))},sa=tm;var im=e=>{let{prefixCls:o,className:t,rootClassName:r,active:n,block:i=false,size:a="default"}=e,{getPrefixCls:s}=I.useContext(h),l=s("skeleton",o),[c,p,m]=Y(l),d=Wi(e,["prefixCls"]),u=ht(l,`${l}-element`,{[`${l}-active`]:n,[`${l}-block`]:i},t,r,p,m);return c(I.createElement("div",{className:u},I.createElement(ke,{prefixCls:`${l}-button`,size:a,...d})))},la=im;var am="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",sm=e=>{let{prefixCls:o,className:t,rootClassName:r,style:n,active:i}=e,{getPrefixCls:a}=I.useContext(h),s=a("skeleton",o),[l,c,p]=Y(s),m=ht(s,`${s}-element`,{[`${s}-active`]:i},t,r,c,p);return l(I.createElement("div",{className:m},I.createElement("div",{className:ht(`${s}-image`,t),style:n},I.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},I.createElement("title",null,"Image placeholder"),I.createElement("path",{d:am,className:`${s}-image-path`})))))},pa=sm;var pm=e=>{let{prefixCls:o,className:t,rootClassName:r,active:n,block:i,size:a="default"}=e,{getPrefixCls:s}=I.useContext(h),l=s("skeleton",o),[c,p,m]=Y(l),d=Wi(e,["prefixCls"]),u=ht(l,`${l}-element`,{[`${l}-active`]:n,[`${l}-block`]:i},t,r,p,m);return c(I.createElement("div",{className:u},I.createElement(ke,{prefixCls:`${l}-input`,size:a,...d})))},ma=pm;var mm=e=>{let{prefixCls:o,className:t,rootClassName:r,style:n,active:i,children:a}=e,{getPrefixCls:s}=I.useContext(h),l=s("skeleton",o),[c,p,m]=Y(l),d=ht(l,`${l}-element`,{[`${l}-active`]:i},p,t,r,m);return c(I.createElement("div",{className:d},I.createElement("div",{className:ht(`${l}-image`,t),style:n},a)))},fa=mm;var fm=(e,o)=>{let{width:t,rows:r=2}=o;if(Array.isArray(t))return t[e];if(r-1===e)return t},um=e=>{let{prefixCls:o,className:t,style:r,rows:n}=e,i=[...new Array(n)].map((a,s)=>I.createElement("li",{key:s,style:{width:fm(s,e)}}));return I.createElement("ul",{className:ht(o,t),style:r},i)},ua=um;var Cm=({prefixCls:e,className:o,width:t,style:r})=>I.createElement("h3",{className:ht(e,o),style:{width:t,...r}}),Ca=Cm;function Dr(e){return e&&typeof e=="object"?e:{}}function Sm(e,o){return e&&!o?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function xm(e,o){return !e&&o?{width:"38%"}:e&&o?{width:"50%"}:{}}function bm(e,o){let t={};return (!e||!o)&&(t.width="61%"),!e&&o?t.rows=3:t.rows=2,t}var De=e=>{let{prefixCls:o,loading:t,className:r,rootClassName:n,style:i,children:a,avatar:s=false,title:l=true,paragraph:c=true,active:p,round:m}=e,{getPrefixCls:d,direction:u,skeleton:g}=I.useContext(h),f=d("skeleton",o),[C,S,y]=Y(f);if(t||!("loading"in e)){let b=!!s,P=!!l,v=!!c,x;if(b){let $={prefixCls:`${f}-avatar`,...Sm(P,v),...Dr(s)};x=I.createElement("div",{className:`${f}-header`},I.createElement(ke,{...$}));}let M;if(P||v){let $;if(P){let R={prefixCls:`${f}-title`,...xm(b,v),...Dr(l)};$=I.createElement(Ca,{...R});}let E;if(v){let R={prefixCls:`${f}-paragraph`,...bm(b,P),...Dr(c)};E=I.createElement(ua,{...R});}M=I.createElement("div",{className:`${f}-content`},$,E);}let T=ht(f,{[`${f}-with-avatar`]:b,[`${f}-active`]:p,[`${f}-rtl`]:u==="rtl",[`${f}-round`]:m},g?.className,r,n,S,y);return C(I.createElement("div",{className:T,style:{...g?.style,...i}},x,M))}return a??null};De.Button=la;De.Avatar=sa;De.Input=ma;De.Image=pa;De.Node=fa;process.env.NODE_ENV!=="production"&&(De.displayName="Skeleton");var ya=De;var Sa=ya;function xa(){}var Pm=I.createContext({add:xa,remove:xa});function ba(e){let o=I.useContext(Pm),t=I.useRef(null);return Zl(n=>{if(n){let i=e?n.querySelector(e):n;o.add(i),t.current=i;}else o.remove(t.current);})}var Rm=()=>{let{cancelButtonProps:e,cancelTextLocale:o,onCancel:t}=useContext(ue);return I__default.createElement(no,{onClick:t,...e},o)},Gr=Rm;var km=()=>{let{confirmLoading:e,okButtonProps:o,okType:t,okTextLocale:r,onOk:n}=useContext(ue);return I__default.createElement(no,{...mt(t),loading:e,onClick:n,...o},r)},Wr=km;function ha(e,o){return I__default.createElement("span",{className:`${e}-close-x`},o||I__default.createElement(Ml,{className:`${e}-close-icon`}))}var Pa=e=>{let{okText:o,okType:t="primary",cancelText:r,confirmLoading:n,onOk:i,onCancel:a,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[p]=be("Modal",Lt()),m=o||p?.okText,d=r||p?.cancelText,u={confirmLoading:n,okButtonProps:s,cancelButtonProps:l,okTextLocale:m,cancelTextLocale:d,okType:t,onOk:i,onCancel:a},g=I__default.useMemo(()=>u,[...Object.values(u)]),f;return typeof c=="function"||typeof c>"u"?(f=I__default.createElement(I__default.Fragment,null,I__default.createElement(Wr,null),I__default.createElement(Gr,null)),typeof c=="function"&&(f=c(f,{OkBtn:Wr,CancelBtn:Gr})),f=I__default.createElement(St,{value:g},f)):f=c,I__default.createElement(Yo,{disabled:false},f)};function Ta(e){return {position:e,inset:0}}var Nm=e=>{let{componentCls:o,antCls:t}=e;return [{[`${o}-root`]:{[`${o}${t}-zoom-enter, ${o}${t}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${o}${t}-zoom-leave ${o}-content`]:{pointerEvents:"none"},[`${o}-mask`]:{...Ta("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${o}-hidden`]:{display:"none"}},[`${o}-wrap`]:{...Ta("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${o}-root`]:gr(e)}]},wm=e=>{let{componentCls:o}=e;return [{[`${o}-root`]:{[`${o}-wrap-rtl`]:{direction:"rtl"},[`${o}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[o]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[o]:{maxWidth:"calc(100vw - 16px)",margin:`${unit(e.marginXS)} auto`},[`${o}-centered`]:{[o]:{flex:1}}}}},{[o]:{...Pe(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${unit(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${o}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${o}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${o}-close`]:{position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:unit(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive},...Je(e)},[`${o}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${o}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${o}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${unit(e.margin)} auto`}},[`${o}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${o}-open`]:{overflow:"hidden"}}},{[`${o}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${o}-content,
|
|
74
|
+
${o}-body,
|
|
75
|
+
${o}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${o}-confirm-body`]:{marginBottom:"auto"}}}]},Bm=e=>{let{componentCls:o}=e;return {[`${o}-root`]:{[`${o}-wrap-rtl`]:{direction:"rtl",[`${o}-confirm-body`]:{direction:"rtl"}}}}},Vr=e=>{let o=e.padding,t=e.fontSizeHeading5,r=e.lineHeightHeading5;return mergeToken(e,{modalHeaderHeight:e.calc(e.calc(r).mul(t).equal()).add(e.calc(o).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},jr=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${unit(e.paddingMD)} ${unit(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${unit(e.padding)} ${unit(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${unit(e.paddingXS)} ${unit(e.padding)}`:0,footerBorderTop:e.wireframe?`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${unit(e.padding*2)} ${unit(e.padding*2)} ${unit(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),va=G("Modal",e=>{let o=Vr(e);return [wm(o),Bm(o),Nm(o),Sr(o,"zoom")]},jr,{unitless:{titleLineHeight:true}});var _r,Hm=e=>{_r={x:e.pageX,y:e.pageY},setTimeout(()=>{_r=null;},100);};ia()&&document.documentElement.addEventListener("click",Hm,true);var Fm=e=>{let{getPopupContainer:o,getPrefixCls:t,direction:r,modal:n}=I.useContext(h),i=ee=>{let{onCancel:V}=e;V?.(ee);},a=ee=>{let{onOk:V}=e;V?.(ee);};if(process.env.NODE_ENV!=="production"){let ee=k("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(([V,co])=>{ee.deprecated(!(V in e),V,co);});}let{prefixCls:s,className:l,rootClassName:c,open:p,wrapClassName:m,centered:d,getContainer:u,focusTriggerAfterClose:g=true,style:f,visible:C,width:S=520,footer:y,classNames:b,styles:P,children:v,loading:x,...M}=e,T=t("modal",s),$=t(),E=Te(T),[R,j,_]=va(T,E),J=ht(m,{[`${T}-centered`]:!!d,[`${T}-wrap-rtl`]:r==="rtl"}),re=y!==null&&!x?I.createElement(Pa,{...e,onOk:a,onCancel:i}):null,[K,xe,N]=Lr(Er(e),Er(n),{closable:true,closeIcon:I.createElement(Ml,{className:`${T}-close-icon`}),closeIconRender:ee=>ha(T,ee)}),We=ba(`.${T}-content`),[so,lo]=Un("Modal",M.zIndex);return R(I.createElement(ta,{form:true,space:true},I.createElement(it.Provider,{value:lo},I.createElement(Lm,{width:S,...M,zIndex:so,getContainer:u===void 0?o:u,prefixCls:T,rootClassName:ht(j,c,_,E),footer:re,visible:p??C,mousePosition:M.mousePosition??_r,onClose:i,closable:K&&{disabled:N,closeIcon:xe},closeIcon:xe,focusTriggerAfterClose:g,transitionName:eo($,"zoom",e.transitionName),maskTransitionName:eo($,"fade",e.maskTransitionName),className:ht(j,l,n?.className),style:{...n?.style,...f},classNames:{...n?.classNames,...b,wrapper:ht(J,b?.wrapper)},styles:{...n?.styles,...P},panelRef:We},x?I.createElement(Sa,{active:true,title:false,paragraph:{rows:4},className:`${T}-body-skeleton`}):v))))},Ra=Fm;var zm=e=>{let{componentCls:o,titleFontSize:t,titleLineHeight:r,modalConfirmIconSize:n,fontSize:i,lineHeight:a,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,p=`${o}-confirm`;return {[p]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${p}-body-wrapper`]:{...En()},[`&${o} ${o}-body`]:{padding:c},[`${p}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:n,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(n).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(n).equal()).div(2).equal()}},[`${p}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${unit(e.marginSM)})`},[`${e.iconCls} + ${p}-paragraph`]:{maxWidth:`calc(100% - ${unit(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${p}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:t,lineHeight:r},[`${p}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${p}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${p}-error ${p}-body > ${e.iconCls}`]:{color:e.colorError},[`${p}-warning ${p}-body > ${e.iconCls},
|
|
76
|
+
${p}-confirm ${p}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${p}-info ${p}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${p}-success ${p}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Ma=Le(["Modal","confirm"],e=>{let o=Vr(e);return [zm(o)]},jr,{order:-1e3});function Wm(e){let{prefixCls:o,icon:t,okText:r,cancelText:n,confirmPrefixCls:i,type:a,okCancel:s,footer:l,locale:c,...p}=e;process.env.NODE_ENV!=="production"&&k("Modal")(!(typeof t=="string"&&t.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${t}\` at https://ant.design/components/icon`);let m=t;if(!t&&t!==null)switch(a){case "info":m=I.createElement(Tl,null);break;case "success":m=I.createElement(bl,null);break;case "error":m=I.createElement(hl,null);break;default:m=I.createElement(Pl,null);}let d=s??a==="confirm",u=e.autoFocusButton===null?false:e.autoFocusButton||"ok",[g]=be("Modal"),f=c||g,C=r||(d?f?.okText:f?.justOkText),S=n||f?.cancelText,y={autoFocusButton:u,cancelTextLocale:S,okTextLocale:C,mergedOkCancel:d,...p},b=I.useMemo(()=>y,[...Object.values(y)]),P=I.createElement(I.Fragment,null,I.createElement(Nr,null),I.createElement(wr,null)),v=e.title!==void 0&&e.title!==null,x=`${i}-body`;return I.createElement("div",{className:`${i}-body-wrapper`},I.createElement("div",{className:ht(x,{[`${x}-has-title`]:v})},m,I.createElement("div",{className:`${i}-paragraph`},v&&I.createElement("span",{className:`${i}-title`},e.title),I.createElement("div",{className:`${i}-content`},e.content))),l===void 0||typeof l=="function"?I.createElement(St,{value:b},I.createElement("div",{className:`${i}-btns`},typeof l=="function"?l(P,{OkBtn:wr,CancelBtn:Nr}):P)):l,I.createElement(Ma,{prefixCls:o}))}var ka=e=>{let{close:o,zIndex:t,afterClose:r,open:n,keyboard:i,centered:a,getContainer:s,maskStyle:l,direction:c,prefixCls:p,wrapClassName:m,rootPrefixCls:d,bodyStyle:u,closable:g=false,closeIcon:f,modalRender:C,focusTriggerAfterClose:S,onConfirm:y,styles:b}=e;if(process.env.NODE_ENV!=="production"){let j=k("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(([_,J])=>{j.deprecated(!(_ in e),_,J);});}let P=`${p}-confirm`,v=e.width||416,x=e.style||{},M=e.mask===void 0?true:e.mask,T=e.maskClosable===void 0?false:e.maskClosable,$=ht(P,`${P}-${e.type}`,{[`${P}-rtl`]:c==="rtl"},e.className),[,E]=L(),R=I.useMemo(()=>t!==void 0?t:E.zIndexPopupBase+Fe,[t,E]);return I.createElement(Ra,{prefixCls:p,className:$,wrapClassName:ht({[`${P}-centered`]:!!e.centered},m),onCancel:()=>{o?.({triggerCancel:true}),y?.(false);},open:n,title:"",footer:null,transitionName:eo(d||"","zoom",e.transitionName),maskTransitionName:eo(d||"","fade",e.maskTransitionName),mask:M,maskClosable:T,style:x,styles:{body:u,mask:l,...b},width:v,zIndex:R,afterClose:r,keyboard:i,centered:a,getContainer:s,closable:g,closeIcon:f,modalRender:C,focusTriggerAfterClose:S},I.createElement(Wm,{...e,confirmPrefixCls:P}))},Ia=e=>{let{rootPrefixCls:o,iconPrefixCls:t,direction:r,theme:n}=e;return I.createElement(or,{prefixCls:o,iconPrefixCls:t,direction:r,theme:n},I.createElement(ka,{...e}))};process.env.NODE_ENV!=="production"&&(ka.displayName="ConfirmDialog",Ia.displayName="ConfirmDialogWrapper");var Xr=Ia;function Na(e){return {...e,type:"warning"}}function wa(e){return {...e,type:"info"}}function Ba(e){return {...e,type:"success"}}function Ea(e){return {...e,type:"error"}}function La(e){return {...e,type:"confirm"}}var jm=({afterClose:e,config:o,...t},r)=>{let[n,i]=I.useState(true),[a,s]=I.useState(o),{direction:l,getPrefixCls:c}=I.useContext(h),p=c("modal"),m=c(),d=()=>{e(),a.afterClose?.();},u=(...C)=>{i(false),C.some(y=>y?.triggerCancel)&&a.onCancel?.(()=>{},...C.slice(1));};I.useImperativeHandle(r,()=>({destroy:u,update:C=>{s(S=>({...S,...C}));}}));let g=a.okCancel??a.type==="confirm",[f]=be("Modal",oe.Modal);return I.createElement(Xr,{prefixCls:p,rootPrefixCls:m,...a,close:u,open:n,afterClose:d,okText:a.okText||(g?f?.okText:f?.justOkText),direction:a.direction||l,cancelText:a.cancelText||f?.cancelText,...t})},Ha=I.forwardRef(jm);var Fa=0,_m=I.memo(I.forwardRef((e,o)=>{let[t,r]=ir();return I.useImperativeHandle(o,()=>({patchElement:r}),[]),I.createElement(I.Fragment,null,t)}));function Um(){let e=I.useRef(null),[o,t]=I.useState([]);I.useEffect(()=>{o.length&&([...o].forEach(a=>{a();}),t([]));},[o]);let r=I.useCallback(i=>function(s){Fa+=1;let l=I.createRef(),c,p=new Promise(f=>{c=f;}),m=false,d,u=I.createElement(Ha,{key:`modal-${Fa}`,config:i(s),ref:l,afterClose:()=>{d?.();},isSilent:()=>m,onConfirm:f=>{c(f);}});return d=e.current?.patchElement(u),{destroy:()=>{function f(){l.current?.destroy();}l.current?f():t(C=>[...C,f]);},update:f=>{function C(){l.current?.update(f);}l.current?C():t(S=>[...S,C]);},then:f=>(m=true,p.then(f))}},[]);return [I.useMemo(()=>({info:r(wa),success:r(Ba),error:r(Ea),warning:r(Na),confirm:r(La)}),[]),I.createElement(_m,{key:"modal-holder",ref:e})]}var za=Um;var Xm=e=>{let{componentCls:o,notificationMarginEdge:t,animationMaxHeight:r}=e,n=`${o}-notice`,i=new Keyframes("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new Keyframes("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new Keyframes("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),l=new Keyframes("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return {[o]:{[`&${o}-top, &${o}-bottom`]:{marginInline:0,[n]:{marginInline:"auto auto"}},[`&${o}-top`]:{[`${o}-fade-enter${o}-fade-enter-active, ${o}-fade-appear${o}-fade-appear-active`]:{animationName:a}},[`&${o}-bottom`]:{[`${o}-fade-enter${o}-fade-enter-active, ${o}-fade-appear${o}-fade-appear-active`]:{animationName:s}},[`&${o}-topRight, &${o}-bottomRight`]:{[`${o}-fade-enter${o}-fade-enter-active, ${o}-fade-appear${o}-fade-appear-active`]:{animationName:i}},[`&${o}-topLeft, &${o}-bottomLeft`]:{marginRight:{value:0,_skip_check_:true},marginLeft:{value:t,_skip_check_:true},[n]:{marginInlineEnd:"auto",marginInlineStart:0},[`${o}-fade-enter${o}-fade-enter-active, ${o}-fade-appear${o}-fade-appear-active`]:{animationName:l}}}}},Oa=Xm;var Aa=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"];var Km={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},qm=(e,o)=>{let{componentCls:t}=e;return {[`${t}-${o}`]:{[`&${t}-stack > ${t}-notice-wrapper`]:{[o.startsWith("top")?"top":"bottom"]:0,[Km[o]]:{value:0,_skip_check_:true}}}}},Zm=e=>{let o={};for(let t=1;t<e.notificationStackLayer;t++)o[`&:nth-last-child(${t+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return {[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"},...o}},Qm=e=>{let o={};for(let t=1;t<e.notificationStackLayer;t++)o[`&:nth-last-child(${t+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return {...o}},Ym=e=>{let{componentCls:o}=e;return {[`${o}-stack`]:{[`& > ${o}-notice-wrapper`]:{transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute",...Zm(e)}},[`${o}-stack:not(${o}-stack-expanded)`]:{[`& > ${o}-notice-wrapper`]:{...Qm(e)}},[`${o}-stack${o}-stack-expanded`]:{[`& > ${o}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}},...Aa.map(t=>qm(e,t)).reduce((t,r)=>({...t,...r}),{})}},Da=Ym;var qr=e=>{let{iconCls:o,componentCls:t,boxShadow:r,fontSizeLG:n,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:p,colorTextHeading:m,notificationBg:d,notificationPadding:u,notificationMarginEdge:g,notificationProgressBg:f,notificationProgressHeight:C,fontSize:S,lineHeight:y,width:b,notificationIconSize:P,colorText:v}=e,x=`${t}-notice`;return {position:"relative",marginBottom:i,marginInlineStart:"auto",background:d,borderRadius:a,boxShadow:r,[x]:{padding:u,width:b,maxWidth:`calc(100vw - ${unit(e.calc(g).mul(2).equal())})`,overflow:"hidden",lineHeight:y,wordWrap:"break-word"},[`${x}-message`]:{marginBottom:e.marginXS,color:m,fontSize:n,lineHeight:e.lineHeightLG},[`${x}-description`]:{fontSize:S,color:v},[`${x}-closable ${x}-message`]:{paddingInlineEnd:e.paddingLG},[`${x}-with-icon ${x}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(P).equal(),fontSize:n},[`${x}-with-icon ${x}-description`]:{marginInlineStart:e.calc(e.marginSM).add(P).equal(),fontSize:S},[`${x}-icon`]:{position:"absolute",fontSize:P,lineHeight:1,[`&-success${o}`]:{color:s},[`&-info${o}`]:{color:l},[`&-warning${o}`]:{color:c},[`&-error${o}`]:{color:p}},[`${x}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},...Je(e)},[`${x}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${unit(a)} * 2)`,left:{_skip_check_:true,value:a},right:{_skip_check_:true,value:a},bottom:0,blockSize:C,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:f},"&::-webkit-progress-value":{borderRadius:a,background:f}},[`${x}-btn`]:{float:"right",marginTop:e.marginSM}}},ed=e=>{let{componentCls:o,notificationMarginBottom:t,notificationMarginEdge:r,motionDurationMid:n,motionEaseInOut:i}=e,a=`${o}-notice`,s=new Keyframes("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:t},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return [{[o]:{...Pe(e),position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:true},[`${o}-hook-holder`]:{position:"relative"},[`${o}-fade-appear-prepare`]:{opacity:"0 !important"},[`${o}-fade-enter, ${o}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${o}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:n,animationPlayState:"paused"},[`${o}-fade-enter${o}-fade-enter-active, ${o}-fade-appear${o}-fade-appear-active`]:{animationPlayState:"running"},[`${o}-fade-leave${o}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}}},{[o]:{[`${a}-wrapper`]:{...qr(e)}}}]},Zr=e=>({zIndexPopup:e.zIndexPopupBase+Fe+50,width:384}),Qr=e=>{let o=e.paddingMD,t=e.paddingLG;return mergeToken(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:o,notificationPaddingHorizontal:t,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${unit(e.paddingMD)} ${unit(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},Yr=G("Notification",e=>{let o=Qr(e);return [ed(o),Oa(o),Da(o)]},Zr);Le(["Notification","PurePanel"],e=>{let o=`${e.componentCls}-notice`,t=Qr(e);return {[`${o}-pure-panel`]:{...qr(t),width:t.width,maxWidth:`calc(100vw - ${unit(e.calc(t.notificationMarginEdge).mul(2).equal())})`,margin:0}}},Zr);function Jr(e,o){return o===null||o===false?null:o||I.createElement(Ml,{className:`${e}-close-icon`})}var ld={success:bl,info:Tl,error:hl,warning:Pl},Wa=e=>{let{prefixCls:o,icon:t,type:r,message:n,description:i,btn:a,role:s="alert"}=e,l=null;return t?l=I.createElement("span",{className:`${o}-icon`},t):r&&(l=I.createElement(ld[r]||null,{className:ht(`${o}-icon`,`${o}-icon-${r}`)})),I.createElement("div",{className:ht({[`${o}-with-icon`]:l}),role:s},l,I.createElement("div",{className:`${o}-message`},n),I.createElement("div",{className:`${o}-description`},i),a&&I.createElement("div",{className:`${o}-btn`},a))};function Va(e,o,t){let r;switch(e){case "top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:o,bottom:"auto"};break;case "topLeft":r={left:0,top:o,bottom:"auto"};break;case "topRight":r={right:0,top:o,bottom:"auto"};break;case "bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:t};break;case "bottomLeft":r={left:0,top:"auto",bottom:t};break;default:r={right:0,top:"auto",bottom:t};break}return r}function ja(e){return {motionName:`${e}-fade`}}var _a=24,dd=4.5,fd="topRight",ud=({children:e,prefixCls:o})=>{let t=Te(o),[r,n,i]=Yr(o,t);return r(I__default.createElement(NotificationProvider,{classNames:{list:ht(n,i,t)}},e))},gd=(e,{prefixCls:o,key:t})=>I__default.createElement(ud,{prefixCls:o,key:t},e),Cd=I__default.forwardRef((e,o)=>{let{top:t,bottom:r,prefixCls:n,getContainer:i,maxCount:a,rtl:s,onAllRemoved:l,stack:c,duration:p,pauseOnHover:m=true,showProgress:d}=e,{getPrefixCls:u,getPopupContainer:g,notification:f,direction:C}=useContext(h),[,S]=L(),y=n||u("notification"),b=T=>Va(T,t??_a,r??_a),P=()=>ht({[`${y}-rtl`]:s??C==="rtl"}),v=()=>ja(y),[x,M]=useNotification({prefixCls:y,style:b,className:P,motion:v,closable:true,closeIcon:Jr(y),duration:p??dd,getContainer:()=>i?.()||g?.()||document.body,maxCount:a,pauseOnHover:m,showProgress:d,onAllRemoved:l,renderNotifications:gd,stack:c===false?false:{threshold:typeof c=="object"?c?.threshold:void 0,offset:8,gap:S.margin}});return I__default.useImperativeHandle(o,()=>({...x,prefixCls:y,notification:f})),M});function yd(e){let o=I__default.useRef(null),t=k("Notification");return [I__default.useMemo(()=>{let n=l=>{if(!o.current){t(false,"usage","You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.");return}let{open:c,prefixCls:p,notification:m}=o.current,d=`${p}-notice`,{message:u,description:g,icon:f,type:C,btn:S,className:y,style:b,role:P="alert",closeIcon:v,closable:x,...M}=l,T=Jr(d,typeof v<"u"?v:m?.closeIcon);return c({placement:e?.placement??fd,...M,content:I__default.createElement(Wa,{prefixCls:d,icon:f,type:C,message:u,description:g,btn:S,role:P}),className:ht(C&&`${d}-${C}`,y,m?.className),style:{...m?.style,...b},closeIcon:T,closable:x??!!T})},a={open:n,destroy:l=>{l!==void 0?o.current?.close(l):o.current?.destroy();}};return ["success","info","warning","error"].forEach(l=>{a[l]=c=>n({...c,type:l});}),a},[]),I__default.createElement(Cd,{key:"notification-holder",...e,ref:o})]}function on(e){return yd(e)}var tn=I__default.createContext({}),Sd=I__default.createContext({message:{},notification:{},modal:{}}),rn=Sd;var xd=e=>{let{componentCls:o,colorText:t,fontSize:r,lineHeight:n,fontFamily:i}=e;return {[o]:{color:t,fontSize:r,lineHeight:n,fontFamily:i,[`&${o}-rtl`]:{direction:"rtl"}}}},bd=()=>({}),Xa=G("App",xd,bd);var Pd=()=>I__default.useContext(rn),nn=e=>{let{prefixCls:o,children:t,className:r,rootClassName:n,message:i,notification:a,style:s,component:l="div"}=e,{direction:c,getPrefixCls:p}=useContext(h),m=p("app",o),[d,u,g]=Xa(m),f=ht(u,m,r,n,g,{[`${m}-rtl`]:c==="rtl"}),C=useContext(tn),S=I__default.useMemo(()=>({message:{...C.message,...i},notification:{...C.notification,...a}}),[i,a,C.message,C.notification]),[y,b]=nr(S.message),[P,v]=on(S.notification),[x,M]=za(),T=I__default.useMemo(()=>({message:y,notification:P,modal:x}),[y,P,x]);k("App")(!(g&&l===false),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");let $=l===false?I__default.Fragment:l,E={className:f,style:s};return d(I__default.createElement(rn.Provider,{value:T},I__default.createElement(tn.Provider,{value:S},I__default.createElement($,{...l===false?void 0:E},M,b,v,t))))};process.env.NODE_ENV!=="production"&&(nn.displayName="App");nn.useApp=Pd;var PT=nn;
|
|
77
|
+
export{PT as default};
|