@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,70 @@
|
|
|
1
|
+
import*as $ from'react';import $__default,{createContext,useContext,forwardRef,useMemo,useState,useRef,Children,useEffect}from'react';import Pp from'@ant-design/icons/CheckCircleFilled';import vp from'@ant-design/icons/CloseCircleFilled';import Rp from'@ant-design/icons/ExclamationCircleFilled';import $p from'@ant-design/icons/InfoCircleFilled';import mt from'classnames';import {createTheme,Keyframes,unit,useCacheToken,useStyleRegister}from'@ant-design/cssinjs';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';import $a,{resetWarned}from'rc-util/lib/warning';import cl from'@ant-design/icons/lib/components/Context';import al from'rc-util/lib/hooks/useMemo';import {merge}from'rc-util/lib/utils/set';import Fa from'rc-pagination/lib/locale/en_US';import Ha from'rc-picker/lib/locale/en_US';import Xa from'rc-util/lib/Dom/canUseDom';import {updateCSS}from'rc-util/lib/Dom/dynamicCSS';import ll from'rc-util/lib/isEqual';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import Bl,{Provider}from'rc-motion';import gc from'rc-util/lib/hooks/useState';import pi from'rc-util/lib/omit';import {useComposeRef,supportRef,composeRef,getNodeRef}from'rc-util/lib/ref';import Fl from'rc-util/lib/Dom/isVisible';import Nl from'rc-util/lib/hooks/useEvent';import $n from'rc-util/lib/raf';import*as vl from'react-dom';import {unmount,render}from'rc-util/lib/React/render';import Fs from'rc-util/lib/Children/toArray';import rs from'@ant-design/icons/LoadingOutlined';import {Color}from'@rc-component/color-picker';import'rc-util/lib/hooks/useMergedState';import Hs from'@ant-design/icons/RightOutlined';import ps from'rc-collapse';import vc from'@ant-design/icons/CloseOutlined';import xp from'rc-dialog';import'rc-field-form';import Rc from'rc-util/lib/pickAttrs';import'rc-util/lib/Dom/styleChecker';var Er={version:"0.0.2"};var Nr=Er.version;var bt={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"},fa={...bt,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},re=fa;function Tt(e,{generateColorPalettes:o,generateNeutralColorPalettes:t}){let{colorSuccess:n,colorWarning:r,colorError:i,colorInfo:a,colorPrimary:l,colorBgBase:s,colorTextBase:p}=e,c=o(l),m=o(n),d=o(r),g=o(i),u=o(a),f=t(s,p),b=e.colorLink||e.colorInfo,T=o(b),y=new TinyColor(g[1]).mix(new TinyColor(g[3]),50).toHexString();return {...f,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:g[1],colorErrorBgHover:g[2],colorErrorBgFilledHover:y,colorErrorBgActive:g[3],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[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:u[1],colorInfoBgHover:u[2],colorInfoBorder:u[3],colorInfoBorderHover:u[4],colorInfoHover:u[4],colorInfo:u[6],colorInfoActive:u[7],colorInfoTextHover:u[8],colorInfoText:u[9],colorInfoTextActive:u[10],colorLinkHover:T[4],colorLink:T[6],colorLinkActive:T[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var ga=e=>{let o=e,t=e,n=e,r=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?n=1:e>=6&&(n=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:t,borderRadiusLG:o,borderRadiusOuter:r}},zr=ga;function Pt(e){let{motionUnit:o,motionBase:t,borderRadius:n,lineWidth:r}=e;return {motionDurationFast:`${(t+o).toFixed(1)}s`,motionDurationMid:`${(t+o*2).toFixed(1)}s`,motionDurationSlow:`${(t+o*3).toFixed(1)}s`,lineWidthBold:r+1,...zr(n)}}var ua=e=>{let{controlHeight:o}=e;return {controlHeightSM:o*.75,controlHeightXS:o*.5,controlHeightLG:o*1.25}},Or=ua;function ze(e){return (e+8)/e}function vt(e){let o=new Array(10).fill(null).map((t,n)=>{let r=n-1,i=e*Math.E**(r/5),a=n>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return o[1]=e,o.map(t=>({size:t,lineHeight:ze(t)}))}var Ca=e=>{let o=vt(e),t=o.map(c=>c.size),n=o.map(c=>c.lineHeight),r=t[1],i=t[0],a=t[2],l=n[1],s=n[0],p=n[2];return {fontSizeSM:i,fontSize:r,fontSizeLG:a,fontSizeXL:t[3],fontSizeHeading1:t[6],fontSizeHeading2:t[5],fontSizeHeading3:t[4],fontSizeHeading4:t[3],fontSizeHeading5:t[2],lineHeight:l,lineHeightLG:p,lineHeightSM:s,fontHeight:Math.round(l*r),fontHeightLG:Math.round(p*a),fontHeightSM:Math.round(s*i),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},Hr=Ca;function Rt(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 j=(e,o)=>new TinyColor(e).setAlpha(o).toRgbString(),Oe=(e,o)=>new TinyColor(e).darken(o).toHexString();var Fr=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]}},Dr=(e,o)=>{let t=e||"#fff",n=o||"#000";return {colorBgBase:t,colorTextBase:n,colorText:j(n,.88),colorTextSecondary:j(n,.65),colorTextTertiary:j(n,.45),colorTextQuaternary:j(n,.25),colorFill:j(n,.15),colorFillSecondary:j(n,.06),colorFillTertiary:j(n,.04),colorFillQuaternary:j(n,.02),colorBgSolid:j(n,1),colorBgSolidHover:j(n,.75),colorBgSolidActive:j(n,.95),colorBgLayout:Oe(t,4),colorBgContainer:Oe(t,0),colorBgElevated:Oe(t,0),colorBgSpotlight:j(n,.85),colorBgBlur:"transparent",colorBorder:Oe(t,15),colorBorderSecondary:Oe(t,6)}};function Mt(e){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let o=Object.keys(bt).map(t=>{let n=e[t]===presetPrimaryColors[t]?presetPalettes[t]:generate(e[t]);return new Array(10).fill(1).reduce((r,i,a)=>(r[`${t}-${a+1}`]=n[a],r[`${t}${a+1}`]=n[a],r),{})}).reduce((t,n)=>(t={...t,...n},t),{});return {...e,...o,...Tt(e,{generateColorPalettes:Fr,generateNeutralColorPalettes:Dr}),...Hr(e.fontSize),...Rt(e),...Or(e),...Pt(e)}}var zo=createTheme(Mt),no={token:re,override:{override:re},hashed:true},io=$__default.createContext(no);function It(e){return e>=0&&e<=255}function ha(e,o){let{r:t,g:n,b:r,a:i}=new TinyColor(e).toRgb();if(i<1)return e;let{r:a,g:l,b:s}=new TinyColor(o).toRgb();for(let p=.01;p<=1;p+=.01){let c=Math.round((t-a*(1-p))/p),m=Math.round((n-l*(1-p))/p),d=Math.round((r-s*(1-p))/p);if(It(c)&&It(m)&&It(d))return new TinyColor({r:c,g:m,b:d,a:Math.round(p*100)/100}).toRgbString()}return new TinyColor({r:t,g:n,b:r,a:1}).toRgbString()}var ao=ha;function Ho(e){let{override:o,...t}=e,n={...o};Object.keys(re).forEach(d=>{delete n[d];});let r={...t,...n},i=480,a=576,l=768,s=992,p=1200,c=1600;return r.motion===false&&(r.motionDurationFast="0s",r.motionDurationMid="0s",r.motionDurationSlow="0s"),{...r,colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:ao(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:ao(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:ao(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidthFocus:r.lineWidth*3,lineWidth:r.lineWidth,controlOutlineWidth:r.lineWidth*2,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:ao(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.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:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:p-1,screenXL:p,screenXLMin:p,screenXLMax:c-1,screenXXL:c,screenXXLMin:c,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 wt={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},va={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},Ra={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},Gr=(e,o,t)=>{let n=t.getDerivativeToken(e),{override:r,...i}=o,a={...n,override:r};return a=Ho(a),i&&Object.entries(i).forEach(([l,s])=>{let{theme:p,...c}=s,m=c;p&&(m=Gr({...a,...c},{override:c},p)),a[l]=m;}),a};function N(){let{token:e,hashed:o,theme:t,override:n,cssVar:r}=$__default.useContext(io),i=`${Nr}-${o||""}`,a=t||zo,[l,s,p]=useCacheToken(a,[re,e],{salt:i,override:n,getComputedToken:Gr,formatToken:Ho,cssVar:r&&{prefix:r.prefix,key:r.key,unitless:wt,ignore:va,preserve:Ra}});return [a,p,o?s:"",l,r]}function Wr(){}var ne=null;function Ma(){ne=null,resetWarned();}var Lt=Wr;process.env.NODE_ENV!=="production"&&(Lt=(e,o,t)=>{$a(e,`[swiftcrab: ${o}] ${t}`),process.env.NODE_ENV==="test"&&Ma();});var Et=$.createContext({}),B=process.env.NODE_ENV!=="production"?e=>{let{strict:o}=$.useContext(Et),t=(n,r,i)=>{if(!n)if(o===false&&r==="deprecated"){let a=ne;ne||(ne={}),ne[e]=ne[e]||[],ne[e].includes(i||"")||ne[e].push(i||""),a||console.warn("[swiftcrab] There exists deprecated usage in your code:",ne);}else Lt(n,e,i);};return t.deprecated=(n,r,i,a)=>{t(n,"deprecated",`\`${r}\` is deprecated. Please use \`${i}\` instead.${a?` ${a}`:""}`);},t}:()=>{let e=()=>{};return e.deprecated=Wr,e},ge=Lt;var jr=$__default.createContext(void 0);process.env.NODE_ENV!=="production"&&(jr.displayName="zIndexContext");var Fo=jr;var ie=100,wa=10,Nt=ie*wa,La=Nt+ie,Vr={Modal:ie,Drawer:ie,Popover:ie,Popconfirm:ie,Tooltip:ie,Tour:ie,FloatButton:ie},Ea={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Na(e){return e in Vr}var Ur=(e,o)=>{let[,t]=N(),n=$__default.useContext(Fo),r=Na(e),i;if(o!==void 0)i=[o,o];else {let a=n??0;r?a+=(n?0:t.zIndexPopupBase)+Vr[e]:a+=Ea[e],i=[n===void 0?o:a,a];}if(process.env.NODE_ENV!=="production"){let a=B(e),l=t.zIndexPopupBase+La,s=i[0]||0;a(o!==void 0||s<=l,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.");}return i};var Xr=createContext(void 0);var Oa={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Do=Oa;var Aa={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"],...Ha},timePickerLocale:{...Do}},Go=Aa;var Kr=Go;var V="${label} is not a valid ${type}",Da={locale:"en",Pagination:Fa,DatePicker:Go,TimePicker:Do,Calendar:Kr,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:V,method:V,array:V,object:V,number:V,date:V,boolean:V,integer:V,float:V,regexp:V,email:V,url:V,hex:V},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"}},ae=Da;var Wo={...ae.Modal},jo=[],_r=()=>jo.reduce((e,o)=>({...e,...o}),ae.Modal);function qr(e){if(e){let o={...e};return jo.push(o),Wo=_r(),()=>{jo=jo.filter(t=>t!==o),Wo=_r();}}Wo={...ae.Modal};}function Zr(){return Wo}var Wa=createContext(void 0),He=Wa;var ja=(e,o)=>{let t=$.useContext(He),n=$.useMemo(()=>{let i=o||ae[e],a=t?.[e]??{};return {...typeof i=="function"?i():i,...a||{}}},[e,o,t]),r=$.useMemo(()=>{let i=t?.locale;return t?.exist&&!i?ae.locale:i},[t]);return [n,r]},Ae=ja;var zt="internalMark",Qr=e=>{let{locale:o={},children:t,_ANT_MARK__:n}=e;process.env.NODE_ENV!=="production"&&B("LocaleProvider")(n===zt,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),$.useEffect(()=>qr(o?.Modal),[o]);let r=$.useMemo(()=>({...o,exist:true}),[o]);return $.createElement(He.Provider,{value:r},t)};process.env.NODE_ENV!=="production"&&(Qr.displayName="LocaleProvider");var Yr=Qr;var ue="ant",so="anticon";var Va=(e,o)=>o||(e?`${ue}-${e}`:ue),x=$.createContext({getPrefixCls:Va,iconPrefixCls:so}),{Consumer:Ua}=x;var _a=`-ant-${Date.now()}-${Math.random()}`;function qa(e,o){let t={},n=(a,l)=>{let s=a.clone();return s=l?.(s)||s,s.toRgbString()},r=(a,l)=>{let s=new TinyColor(a),p=generate(s.toRgbString());t[`${l}-color`]=n(s),t[`${l}-color-disabled`]=p[1],t[`${l}-color-hover`]=p[4],t[`${l}-color-active`]=p[6],t[`${l}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),t[`${l}-color-deprecated-bg`]=p[0],t[`${l}-color-deprecated-border`]=p[2];};if(o.primaryColor){r(o.primaryColor,"primary");let a=new TinyColor(o.primaryColor),l=generate(a.toRgbString());l.forEach((p,c)=>{t[`primary-${c+1}`]=p;}),t["primary-color-deprecated-l-35"]=n(a,p=>p.lighten(35)),t["primary-color-deprecated-l-20"]=n(a,p=>p.lighten(20)),t["primary-color-deprecated-t-20"]=n(a,p=>p.tint(20)),t["primary-color-deprecated-t-50"]=n(a,p=>p.tint(50)),t["primary-color-deprecated-f-12"]=n(a,p=>p.setAlpha(p.getAlpha()*.12));let s=new TinyColor(l[0]);t["primary-color-active-deprecated-f-30"]=n(s,p=>p.setAlpha(p.getAlpha()*.3)),t["primary-color-active-deprecated-d-02"]=n(s,p=>p.darken(2));}return o.successColor&&r(o.successColor,"success"),o.warningColor&&r(o.warningColor,"warning"),o.errorColor&&r(o.errorColor,"error"),o.infoColor&&r(o.infoColor,"info"),`
|
|
36
|
+
:root {
|
|
37
|
+
${Object.keys(t).map(a=>`--${e}-${a}: ${t[a]};`).join(`
|
|
38
|
+
`)}
|
|
39
|
+
}
|
|
40
|
+
`.trim()}function on(e,o){let t=qa(e,o);Xa()?updateCSS(t,`${_a}-dynamic-theme`):ge(false,"ConfigProvider","SSR do not support dynamic theme with css variables.");}var Ht=$.createContext(false),Vo=({children:e,disabled:o})=>{let t=$.useContext(Ht);return $.createElement(Ht.Provider,{value:o??t},e)},Uo=Ht;var At=$.createContext(void 0),tn=({children:e,size:o})=>{let t=$.useContext(At);return $.createElement(At.Provider,{value:o||t},e)},ve=At;function Za(){let e=useContext(Uo),o=useContext(ve);return {componentDisabled:e,componentSize:o}}var nn=Za;var Xo=(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}),co=()=>({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"}}),ln=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),sn=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"}}}),cn=(e,o,t,n)=>{let r=`[class^="${o}"], [class*=" ${o}"]`,i=t?`.${t}`:r,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},l={};return n!==false&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:{...l,...a,[r]:a}}},Ya=e=>({outline:`${unit(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Ko=e=>({"&:focus-visible":{...Ya(e)}}),_o=e=>({[`.${e}`]:{...co(),[`.${e} .${e}-icon`]:{display:"block"}}});var{genStyleHooks:Y,genComponentStyleHook:Ft,genSubStyleComponent:po}=genStyleUtils({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:o}=useContext(x);return {rootPrefixCls:e(),iconPrefixCls:o}},useToken:()=>{let[e,o,t,n,r]=N();return {theme:e,realToken:o,hashId:t,token:n,cssVar:r}},useCSP:()=>{let{csp:e}=useContext(x);return e??{}},getResetStyles:(e,o)=>[{"&":sn(e)},_o(o?.prefix.iconPrefixCls??so)],getCommonStyle:cn,getCompUnitless:(()=>wt)});var ol=(e,o)=>{let[t,n]=N();return useStyleRegister({theme:t,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>o?.nonce,layer:{name:"antd"}},()=>[_o(e)])},qo=ol;var rl={...$},{useId:mn}=rl,nl=()=>"",il=typeof mn>"u"?nl:mn,dn=il;function Dt(e,o,t){let n=B("ConfigProvider"),r=e||{},i=r.inherit===false||!o?{...no,hashed:o?.hashed??no.hashed,cssVar:o?.cssVar}:o,a=dn();if(process.env.NODE_ENV!=="production"){let l=r.cssVar||i.cssVar,s=!!(typeof r.cssVar=="object"&&r.cssVar?.key||a);n(!l||s,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.");}return al(()=>{if(!e)return o;let l={...i.components};Object.keys(e.components||{}).forEach(c=>{l[c]={...l[c],...e.components[c]};});let s=`css-var-${a.replace(/:/g,"")}`,p=(r.cssVar??i.cssVar)&&{prefix:t?.prefixCls,...typeof i.cssVar=="object"?i.cssVar:{},...typeof r.cssVar=="object"?r.cssVar:{},key:typeof r.cssVar=="object"&&r.cssVar?.key||s};return {...i,...r,token:{...i.token,...r.token},components:l,cssVar:p}},[r,i],(l,s)=>l.some((p,c)=>{let m=s[c];return !ll(p,m,true)}))}function Gt(e){let{children:o}=e,[,t]=N(),{motion:n}=t,r=$.useRef(false);return r.current=r.current||n===false,r.current?$.createElement(Provider,{motion:n},o):o}var gn=$.memo(({dropdownMatchSelectWidth:e})=>(B("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(gn.displayName="PropWarning");var un=process.env.NODE_ENV!=="production"?gn:()=>null;var Wt=false;process.env.NODE_ENV!=="production"?e=>{ge(!Wt,e,"Static function can not consume context like dynamic theme. Please use 'App' component instead.");}:null;var dl=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],yn;function Cl(){return yn||ue}function yl(e){return Object.keys(e).some(o=>o.endsWith("Color"))}var Sl=e=>{let{prefixCls:o,iconPrefixCls:t,theme:n,holderRender:r}=e;o!==void 0&&(yn=o),n&&(yl(n)?(ge(false,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),on(Cl(),n)):n);};var xl=e=>{let{children:o,csp:t,autoInsertSpaceInButton:n,alert:r,anchor:i,form:a,locale:l,componentSize:s,direction:p,space:c,splitter:m,virtual:d,dropdownMatchSelectWidth:g,popupMatchSelectWidth:u,popupOverflow:f,legacyLocale:b,parentContext:T,iconPrefixCls:y,theme:C,componentDisabled:v,segmented:I,statistic:R,spin:E,calendar:h,carousel:P,cascader:w,collapse:S,typography:D,checkbox:G,descriptions:Z,divider:J,drawer:U,skeleton:fe,steps:k,image:Be,layout:qe,list:Ze,mentions:Q,modal:F,progress:Qe,result:Te,slider:ee,breadcrumb:ho,menu:Ye,pagination:To,input:Pe,textArea:Po,empty:vo,badge:Je,radio:Ro,rate:dt,switch:$o,transfer:ft,avatar:ko,message:Mo,tag:gt,table:eo,card:Io,tabs:Bo,timeline:ut,timePicker:Ct,upload:wo,notification:Lo,tree:oo,colorPicker:L,datePicker:yt,rangePicker:Ji,flex:ea,wave:oa,dropdown:ta,warning:ra,tour:na,variant:ia,inputNumber:aa,treeSelect:la}=e,Ir=$.useCallback((O,oe)=>{let{prefixCls:Ee}=e;if(oe)return oe;let Ne=Ee||T.getPrefixCls("");return O?`${Ne}-${O}`:Ne},[T.getPrefixCls,e.prefixCls]),to=y||T.iconPrefixCls||so,ro=t||T.csp;qo(to,ro);let Eo=Dt(C,T.theme,{prefixCls:Ir("")});process.env.NODE_ENV!=="production"&&(Wt=Wt||!!Eo);let St={csp:ro,autoInsertSpaceInButton:n,alert:r,anchor:i,locale:l||b,direction:p,space:c,splitter:m,virtual:d,popupMatchSelectWidth:u??g,popupOverflow:f,getPrefixCls:Ir,iconPrefixCls:to,theme:Eo,segmented:I,statistic:R,spin:E,calendar:h,carousel:P,cascader:w,collapse:S,typography:D,checkbox:G,descriptions:Z,divider:J,drawer:U,skeleton:fe,steps:k,image:Be,input:Pe,textArea:Po,layout:qe,list:Ze,mentions:Q,modal:F,progress:Qe,result:Te,slider:ee,breadcrumb:ho,menu:Ye,pagination:To,empty:vo,badge:Je,radio:Ro,rate:dt,switch:$o,transfer:ft,avatar:ko,message:Mo,tag:gt,table:eo,card:Io,tabs:Bo,timeline:ut,timePicker:Ct,upload:wo,notification:Lo,tree:oo,colorPicker:L,datePicker:yt,rangePicker:Ji,flex:ea,wave:oa,dropdown:ta,warning:ra,tour:na,variant:ia,inputNumber:aa,treeSelect:la};process.env.NODE_ENV!=="production"&&B("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");let we={...T};Object.keys(St).forEach(O=>{St[O]!==void 0&&(we[O]=St[O]);}),dl.forEach(O=>{let oe=e[O];oe&&(we[O]=oe);}),typeof n<"u"&&(we.button={autoInsertSpace:n,...we.button});let Le=al(()=>we,we,(O,oe)=>{let Ee=Object.keys(O),Ne=Object.keys(oe);return Ee.length!==Ne.length||Ee.some(No=>O[No]!==oe[No])}),sa=$.useMemo(()=>({prefixCls:to,csp:ro}),[to,ro]),A=$.createElement($.Fragment,null,$.createElement(un,{dropdownMatchSelectWidth:g}),o),Br=$.useMemo(()=>merge(ae.Form?.defaultValidateMessages||{},Le.locale?.Form?.defaultValidateMessages||{},Le.form?.validateMessages||{},a?.validateMessages||{}),[Le,a?.validateMessages]);Object.keys(Br).length>0&&(A=$.createElement(Xr.Provider,{value:Br},A)),l&&(A=$.createElement(Yr,{locale:l,_ANT_MARK__:zt},A)),(A=$.createElement(cl.Provider,{value:sa},A)),s&&(A=$.createElement(tn,{size:s},A)),A=$.createElement(Gt,null,A);let ca=$.useMemo(()=>{let{algorithm:O,token:oe,components:Ee,cssVar:Ne,...No}=Eo||{},wr=O&&(!Array.isArray(O)||O.length>0)?createTheme(O):zo,xt={};Object.entries(Ee||{}).forEach(([pa,ma])=>{let te={...ma};"algorithm"in te&&(te.algorithm===true?te.theme=wr:(Array.isArray(te.algorithm)||typeof te.algorithm=="function")&&(te.theme=createTheme(te.algorithm)),delete te.algorithm),xt[pa]=te;});let Lr={...re,...oe};return {...No,theme:wr,token:Lr,components:xt,override:{override:Lr,...xt},cssVar:Ne}},[Eo]);return C&&(A=$.createElement(io.Provider,{value:ca},A)),Le.warning&&(A=$.createElement(Et.Provider,{value:Le.warning},A)),v!==void 0&&(A=$.createElement(Vo,{disabled:v},A)),$.createElement(x.Provider,{value:Le},A)},Re=e=>{let o=$.useContext(x),t=$.useContext(He);return $.createElement(xl,{parentContext:o,legacyLocale:t,...e})};Re.ConfigContext=x;Re.SizeContext=ve;Re.config=Sl;Re.useConfig=nn;Object.defineProperty(Re,"SizeContext",{get:()=>(ge(false,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),ve)});process.env.NODE_ENV!=="production"&&(Re.displayName="ConfigProvider");var Sn=Re;var jt=()=>({height:0,opacity:0}),xn=e=>{let{scrollHeight:o}=e;return {height:o,opacity:1}},bl=e=>({height:e?e.offsetHeight:0}),Vt=(e,o)=>o?.deadline===true||o.propertyName==="height",hl=(e=ue)=>({motionName:`${e}-motion-collapse`,onAppearStart:jt,onEnterStart:jt,onAppearActive:xn,onEnterActive:xn,onLeaveStart:bl,onLeaveActive:jt,onAppearEnd:Vt,onEnterEnd:Vt,onLeaveEnd:Vt,motionDeadline:500});var We=(e,o,t)=>t!==void 0?t:`${e}-${o}`;var bn=hl;function hn(e){return e&&$__default.isValidElement(e)&&e.type===$__default.Fragment}var Tl=(e,o,t)=>$__default.isValidElement(e)?$__default.cloneElement(e,typeof t=="function"?t(e.props||{}):t):o;function $e(e,o){return Tl(e,e,o)}var Pl=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(",")}}}}},Tn=Ft("Wave",e=>[Pl(e)]);var Yo=`${ue}-wave-target`;var kl=(e,o)=>{if(process.env.NODE_ENV!=="production"){let t=parseInt($.version.split(".")[0],10),n=Object.keys(vl);ge(t<19||n.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)},Ml=kl;function vn(){return Ml}function Ut(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 Rn(e){let{borderTopColor:o,borderColor:t,backgroundColor:n}=getComputedStyle(e);return Ut(o)?o:Ut(t)?t:Ut(n)?n:null}function Xt(e){return Number.isNaN(e)?0:e}var Ll=e=>{let{className:o,target:t,component:n,registerUnmount:r}=e,i=$.useRef(null),a=$.useRef(null);$.useEffect(()=>{a.current=r();},[]);let[l,s]=$.useState(null),[p,c]=$.useState([]),[m,d]=$.useState(0),[g,u]=$.useState(0),[f,b]=$.useState(0),[T,y]=$.useState(0),[C,v]=$.useState(false),I={left:m,top:g,width:f,height:T,borderRadius:p.map(h=>`${h}px`).join(" ")};l&&(I["--wave-color"]=l);function R(){let h=getComputedStyle(t);s(Rn(t));let P=h.position==="static",{borderLeftWidth:w,borderTopWidth:S}=h;d(P?t.offsetLeft:Xt(-parseFloat(w))),u(P?t.offsetTop:Xt(-parseFloat(S))),b(t.offsetWidth),y(t.offsetHeight);let{borderTopLeftRadius:D,borderTopRightRadius:G,borderBottomLeftRadius:Z,borderBottomRightRadius:J}=h;c([D,G,J,Z].map(U=>Xt(parseFloat(U))));}if($.useEffect(()=>{if(t){let h=$n(()=>{R(),v(true);}),P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(R),P.observe(t)),()=>{$n.cancel(h),P?.disconnect();}}},[]),!C)return null;let E=(n==="Checkbox"||n==="Radio")&&t?.classList.contains(Yo);return $.createElement(Bl,{visible:true,motionAppear:true,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(h,P)=>{if(P.deadline||P.propertyName==="opacity"){let w=i.current?.parentElement;a.current?.().then(()=>{w?.remove();});}return false}},({className:h},P)=>$.createElement("div",{ref:composeRef(i,P),className:mt(o,h,{"wave-quick":E}),style:I}))},El=(e,o)=>{let{component:t}=o;if(t==="Checkbox"&&!e.querySelector("input")?.checked)return;let n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",e?.insertBefore(n,e?.firstChild);let r=vn(),i=null;function a(){return i}i=r($.createElement(Ll,{...o,target:e,registerUnmount:a}),n);},kn=El;var zl=(e,o,t)=>{let{wave:n}=$.useContext(x),[,r,i]=N(),a=Nl(p=>{let c=e.current;if(n?.disabled||!c)return;let m=c.querySelector(`.${Yo}`)||c,{showEffect:d}=n||{};(d||kn)(m,{className:o,token:r,component:t,event:p,hashId:i});}),l=$.useRef(null);return p=>{$n.cancel(l.current),l.current=$n(()=>{a(p);});}},In=zl;var wn=e=>{let{children:o,disabled:t,component:n}=e,{getPrefixCls:r}=useContext(x),i=useRef(null),a=r("wave"),[,l]=Tn(a),s=In(i,mt(a,l),n);if($__default.useEffect(()=>{let c=i.current;if(!c||c.nodeType!==1||t)return;let m=d=>{!Fl(d.target)||!c.getAttribute||c.getAttribute("disabled")||c.disabled||c.className.includes("disabled")||c.className.includes("-leave")||s(d);};return c.addEventListener("click",m,true),()=>{c.removeEventListener("click",m,true);}},[t]),!$__default.isValidElement(o))return o??null;let p=supportRef(o)?composeRef(getNodeRef(o),i):i;return $e(o,{ref:p})};process.env.NODE_ENV!=="production"&&(wn.displayName="Wave");var Ln=wn;var jl=e=>{let o=$__default.useContext(ve);return $__default.useMemo(()=>e?typeof e=="string"?e??o:e instanceof Function?e(o):o:o,[e,o])},mo=jl;var Vl=e=>{let{componentCls:o}=e;return {[o]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Nn=Vl;var Ul=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"}}}},Xl=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}}}};Y("Space",e=>{let o=mergeToken(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return [Ul(o),Xl(o),Nn(o)]},()=>({}),{resetStyle:false});var zn=$.createContext(null),On=(e,o)=>{let t=$.useContext(zn),n=$.useMemo(()=>{if(!t)return "";let{compactDirection:r,isFirstItem:i,isLastItem:a}=t,l=r==="vertical"?"-vertical-":"-";return mt(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:i,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:o==="rtl"})},[e,o,t]);return {compactSize:t?.compactSize,compactDirection:t?.compactDirection,compactItemClassnames:n}},Hn=({children:e})=>$.createElement(zn.Provider,{value:null},e);var Kt=$.createContext(void 0),Zl=e=>{let{getPrefixCls:o,direction:t}=$.useContext(x),{prefixCls:n,size:r,className:i,...a}=e,l=o("btn-group",n),[,,s]=N(),p="";switch(r){case "large":p="lg";break;case "small":p="sm";break;}process.env.NODE_ENV!=="production"&&B("Button.Group")(!r||["large","small","middle"].includes(r),"usage","Invalid prop `size`.");let c=mt(l,{[`${l}-${p}`]:p,[`${l}-rtl`]:t==="rtl"},i,s);return $.createElement(Kt.Provider,{value:r},$.createElement("div",{...a,className:c}))},An=Zl;var Fn=/^[\u4E00-\u9FA5]{2}$/,et=Fn.test.bind(Fn);function ot(e){return e==="danger"?{danger:true}:{type:e}}function Dn(e){return typeof e=="string"}function go(e){return e==="text"||e==="link"}function Ql(e,o){if(e==null)return;let t=o?" ":"";return typeof e!="string"&&typeof e!="number"&&Dn(e.type)&&et(e.props.children)?$e(e,{children:e.props.children.split("").join(t)}):Dn(e)?et(e)?$__default.createElement("span",null,e.split("").join(t)):$__default.createElement("span",null,e):hn(e)?$__default.createElement("span",null,e):e}function Gn(e,o){let t=false,n=[];return $__default.Children.forEach(e,r=>{let i=typeof r,a=i==="string"||i==="number";if(t&&a){let l=n.length-1,s=n[l];n[l]=`${s}${r}`;}else n.push(r);t=a;}),$__default.Children.map(n,r=>Ql(r,o))}var os=forwardRef((e,o)=>{let{className:t,style:n,children:r,prefixCls:i}=e,a=mt(`${i}-icon`,t);return $__default.createElement("span",{ref:o,className:a,style:n},r)}),tt=os;var Wn=forwardRef((e,o)=>{let{prefixCls:t,className:n,style:r,iconClassName:i}=e,a=mt(`${t}-loading-icon`,n);return $__default.createElement(tt,{prefixCls:t,className:a,style:r,ref:o},$__default.createElement(rs,{className:i}))}),_t=()=>({width:0,opacity:0,transform:"scale(0)"}),qt=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),is=e=>{let{prefixCls:o,loading:t,existIcon:n,className:r,style:i,mount:a}=e,l=!!t;return n?$__default.createElement(Wn,{prefixCls:o,className:r,style:i}):$__default.createElement(Bl,{visible:l,motionName:`${o}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:true,onAppearStart:_t,onAppearActive:qt,onEnterStart:_t,onEnterActive:qt,onLeaveStart:qt,onLeaveActive:_t},({className:s,style:p},c)=>{let m={...i,...p};return $__default.createElement(Wn,{prefixCls:o,className:mt(r,s),style:m,ref:c})})},Vn=is;var Un=(e,o)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:o}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:o}}}}}),as=e=>{let{componentCls:o,fontSize:t,lineWidth:n,groupBorderColor:r,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(n).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}},Un(`${o}-primary`,r),Un(`${o}-danger`,i)]}},Xn=as;var ls=(e,o)=>e?.replace(/[^\w/]/g,"").slice(0,o?8:6)||"",ss=(e,o)=>e?ls(e,o):"",Co=class e{metaColor;colors;cleared=false;constructor(o){if(o instanceof e){this.metaColor=o.metaColor.clone(),this.colors=o.colors?.map(n=>({color:new e(n.color),percent:n.percent})),this.cleared=o.cleared;return}let t=Array.isArray(o);t&&o.length?(this.colors=o.map(({color:n,percent:r})=>({color:new e(n),percent:r})),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 ss(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(n=>`${n.color.toRgbString()} ${n.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,n)=>{let r=o.colors[n];return t.percent===r.percent&&t.color.equals(r.color)}):this.toHexString()===o.toHexString()}};var ms=$.forwardRef((e,o)=>{process.env.NODE_ENV!=="production"&&B("Collapse.Panel").deprecated(!("disabled"in e),"disabled",'collapsible="disabled"');let{getPrefixCls:t}=$.useContext(x),{prefixCls:n,className:r,showArrow:i=true}=e,a=t("collapse",n),l=mt({[`${a}-no-arrow`]:!i},r);return $.createElement(ps.Panel,{ref:o,...e,prefixCls:a,className:l})}),_n=ms;var ds=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
41
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
42
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Zt=ds;var fs=e=>({animationDuration:e,animationFillMode:"both"}),gs=e=>({animationDuration:e,animationFillMode:"both"}),Ve=(e,o,t,n,r=false)=>{let i=r?"&":"";return {[`
|
|
43
|
+
${i}${e}-enter,
|
|
44
|
+
${i}${e}-appear
|
|
45
|
+
`]:{...fs(n),animationPlayState:"paused"},[`${i}${e}-leave`]:{...gs(n),animationPlayState:"paused"},[`
|
|
46
|
+
${i}${e}-enter${e}-enter-active,
|
|
47
|
+
${i}${e}-appear${e}-appear-active
|
|
48
|
+
`]:{animationName:o,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:t,animationPlayState:"running",pointerEvents:"none"}}};var Zn=new Keyframes("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Qn=new Keyframes("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Qt=(e,o=false)=>{let{antCls:t}=e,n=`${t}-fade`,r=o?"&":"";return [Ve(n,Zn,Qn,e.motionDurationMid,o),{[`
|
|
49
|
+
${r}${n}-enter,
|
|
50
|
+
${r}${n}-appear
|
|
51
|
+
`]:{opacity:0,animationTimingFunction:"linear"},[`${r}${n}-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 Yn=new Keyframes("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Jn=new Keyframes("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Yt=new Keyframes("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Jt=new Keyframes("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),ei=new Keyframes("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),oi=new Keyframes("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),ti=new Keyframes("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),ri=new Keyframes("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),ni=new Keyframes("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),ii=new Keyframes("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),ai=new Keyframes("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),li=new Keyframes("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),ws={zoom:{inKeyframes:Yn,outKeyframes:Jn},"zoom-big":{inKeyframes:Yt,outKeyframes:Jt},"zoom-big-fast":{inKeyframes:Yt,outKeyframes:Jt},"zoom-left":{inKeyframes:ti,outKeyframes:ri},"zoom-right":{inKeyframes:ni,outKeyframes:ii},"zoom-up":{inKeyframes:ei,outKeyframes:oi},"zoom-down":{inKeyframes:ai,outKeyframes:li}},er=(e,o)=>{let{antCls:t}=e,n=`${t}-${o}`,{inKeyframes:r,outKeyframes:i}=ws[o];return [Ve(n,r,i,e.motionDurationMid),{[`
|
|
52
|
+
${n}-enter,
|
|
53
|
+
${n}-appear
|
|
54
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var Ls=e=>{let{componentCls:o,contentBg:t,padding:n,headerBg:r,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:s,lineWidth:p,lineType:c,colorBorder:m,colorText:d,colorTextHeading:g,colorTextDisabled:u,fontSizeLG:f,lineHeight:b,lineHeightLG:T,marginSM:y,paddingSM:C,paddingLG:v,paddingXS:I,motionDurationSlow:R,fontSizeIcon:E,contentPadding:h,fontHeight:P,fontHeightLG:w}=e,S=`${unit(p)} ${c} ${m}`;return {[o]:{...Xo(e),backgroundColor:r,border:S,borderRadius:s,"&-rtl":{direction:"rtl"},[`& > ${o}-item`]:{borderBottom:S,"&:last-child":{[`
|
|
55
|
+
&,
|
|
56
|
+
& > ${o}-header`]:{borderRadius:`0 0 ${unit(s)} ${unit(s)}`}},[`> ${o}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:g,lineHeight:b,cursor:"pointer",transition:`all ${R}, visibility 0s`,[`> ${o}-header-text`]:{flex:"auto"},[`${o}-expand-icon`]:{height:P,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${o}-arrow`]:{...co(),fontSize:E,transition:`transform ${R}`,svg:{transition:`transform ${R}`}},[`${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:S,[`& > ${o}-content-box`]:{padding:h},"&-hidden":{display:"none"}},"&-small":{[`> ${o}-item`]:{[`> ${o}-header`]:{padding:a,paddingInlineStart:I,[`> ${o}-expand-icon`]:{marginInlineStart:e.calc(C).sub(I).equal()}},[`> ${o}-content > ${o}-content-box`]:{padding:C}}},"&-large":{[`> ${o}-item`]:{fontSize:f,lineHeight:T,[`> ${o}-header`]:{padding:l,paddingInlineStart:n,[`> ${o}-expand-icon`]:{height:w,marginInlineStart:e.calc(v).sub(n).equal()}},[`> ${o}-content > ${o}-content-box`]:{padding:v}}},[`${o}-item:last-child`]:{borderBottom:0,[`> ${o}-content`]:{borderRadius:`0 0 ${unit(s)} ${unit(s)}`}},[`& ${o}-item-disabled > ${o}-header`]:{"\n &,\n & > .arrow\n ":{color:u,cursor:"not-allowed"}},[`&${o}-icon-position-end`]:{[`& > ${o}-item`]:{[`> ${o}-header`]:{[`${o}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}}}},Es=e=>{let{componentCls:o}=e,t=`> ${o}-item > ${o}-header ${o}-arrow`;return {[`${o}-rtl`]:{[t]:{transform:"rotate(180deg)"}}}},Ns=e=>{let{componentCls:o,headerBg:t,paddingXXS:n,colorBorder:r}=e;return {[`${o}-borderless`]:{backgroundColor:t,border:0,[`> ${o}-item`]:{borderBottom:`1px solid ${r}`},[`
|
|
57
|
+
> ${o}-item:last-child,
|
|
58
|
+
> ${o}-item:last-child ${o}-header
|
|
59
|
+
`]:{borderRadius:0},[`> ${o}-item:last-child`]:{borderBottom:0},[`> ${o}-item > ${o}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${o}-item > ${o}-content > ${o}-content-box`]:{paddingTop:n}}}},zs=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}}}}}},Os=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),si=Y("Collapse",e=>{let o=mergeToken(e,{collapseHeaderPaddingSM:`${unit(e.paddingXS)} ${unit(e.paddingSM)}`,collapseHeaderPaddingLG:`${unit(e.padding)} ${unit(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return [Ls(o),Ns(o),zs(o),Es(o),Zt(o)]},Os);var mi=$.forwardRef((e,o)=>{let{getPrefixCls:t,direction:n,collapse:r}=$.useContext(x),{prefixCls:i,className:a,rootClassName:l,style:s,bordered:p=true,ghost:c,size:m,expandIconPosition:d="start",children:g,expandIcon:u}=e,f=mo(S=>m??S??"middle"),b=t("collapse",i),T=t(),[y,C,v]=si(b);process.env.NODE_ENV!=="production"&&B("Collapse")(d!=="left"&&d!=="right","deprecated","`expandIconPosition` with `left` or `right` is deprecated. Please use `start` or `end` instead.");let I=$.useMemo(()=>d==="left"?"start":d==="right"?"end":d,[d]),R=u??r?.expandIcon,E=$.useCallback((S={})=>{let D=typeof R=="function"?R(S):$.createElement(Hs,{rotate:S.isActive?90:void 0,"aria-label":S.isActive?"expanded":"collapsed"});return $e(D,()=>({className:mt(D?.props?.className,`${b}-arrow`)}))},[R,b]),h=mt(`${b}-icon-position-${I}`,{[`${b}-borderless`]:!p,[`${b}-rtl`]:n==="rtl",[`${b}-ghost`]:!!c,[`${b}-${f}`]:f!=="middle"},r?.className,a,l,C,v),P={...bn(T),motionAppear:false,leavedClassName:`${b}-content-hidden`},w=$.useMemo(()=>g?Fs(g).map((S,D)=>{let G=S.props;if(G?.disabled){let Z=S.key??String(D),J={...pi(S.props,["disabled"]),key:Z,collapsible:G.collapsible??"disabled"};return $e(S,J)}return S}):null,[g]);return y($.createElement(ps,{ref:o,openMotion:P,...pi(e,["rootClassName"]),expandIcon:E,prefixCls:b,className:h,style:{...r?.style,...s}},w))});process.env.NODE_ENV!=="production"&&(mi.displayName="Collapse");Object.assign(mi,{Panel:_n});var di=(e,o)=>{let{r:t,g:n,b:r,a:i}=e.toRgb(),a=new Color(e.toRgbString()).onBackground(o).toHsv();return i<=.5?a.v>.5:t*.299+n*.587+r*.114>192};var rt=e=>{let{paddingInline:o,onlyIconSize:t}=e;return mergeToken(e,{buttonPaddingHorizontal:o,buttonPaddingVertical:0,buttonIconOnlyFontSize:t})},nt=e=>{let o=e.contentFontSize??e.fontSize,t=e.contentFontSizeSM??e.fontSize,n=e.contentFontSizeLG??e.fontSizeLG,r=e.contentLineHeight??ze(o),i=e.contentLineHeightSM??ze(t),a=e.contentLineHeightLG??ze(n),l=di(new Co(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:l,contentFontSize:o,contentFontSizeSM:t,contentFontSizeLG:n,contentLineHeight:r,contentLineHeightSM:i,contentLineHeightLG:a,paddingBlock:Math.max((e.controlHeight-o*r)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-t*i)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-n*a)/2-e.lineWidth,0)}};var Ws=e=>{let{componentCls:o,iconCls:t,fontWeight:n,opacityLoading:r,motionDurationSlow:i,motionEaseInOut:a,marginXS:l,calc:s}=e;return {[o]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:n,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`]:co(),"> a":{color:"currentColor"},"&:not(:disabled)":Ko(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:r,cursor:"default"},[`${o}-loading-icon`]:{transition:["width","opacity","margin"].map(p=>`${p} ${i} ${a}`).join(",")},[`&:not(${o}-icon-end)`]:{[`${o}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:s(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${o}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:s(l).mul(-1).equal()}}}}}},fi=(e,o,t)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":o,"&:active":t}}),js=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Vs=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),Us=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),tr=(e,o,t,n,r,i,a,l)=>({[`&${e}-background-ghost`]:{color:t||void 0,background:o,borderColor:n||void 0,boxShadow:"none",...fi(e,{background:o,...a},{background:o,...l}),"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:i||void 0}}}),Xs=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{...Us(e)}}),Ks=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),it=(e,o,t,n)=>({...(n&&["link","text"].includes(n)?Ks:Xs)(e),...fi(e.componentCls,o,t)}),rr=(e,o,t,n,r)=>({[`&${e.componentCls}-variant-solid`]:{color:o,background:t,...it(e,n,r)}}),nr=(e,o,t,n,r)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:{borderColor:o,background:t,...it(e,n,r)}}),ir=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),ar=(e,o,t,n)=>({[`&${e.componentCls}-variant-filled`]:{boxShadow:"none",background:o,...it(e,t,n)}}),Ue=(e,o,t,n,r)=>({[`&${e.componentCls}-variant-${t}`]:{color:o,boxShadow:"none",...it(e,n,r,t)}}),_s=e=>({color:e.defaultColor,boxShadow:e.defaultShadow,...rr(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive}),...ir(e),...ar(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill}),...Ue(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive}),...tr(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)}),qs=e=>({color:e.colorPrimary,boxShadow:e.primaryShadow,...nr(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer}),...ir(e),...ar(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder}),...Ue(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder}),...tr(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})}),Zs=e=>({color:e.colorError,boxShadow:e.dangerShadow,...rr(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive}),...nr(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive}),...ir(e),...ar(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive}),...Ue(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}),...Ue(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive}),...tr(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})}),Qs=e=>{let{componentCls:o}=e;return {[`${o}-color-default`]:_s(e),[`${o}-color-primary`]:qs(e),[`${o}-color-dangerous`]:Zs(e)}},Ys=e=>({...nr(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg}),...Ue(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive}),...rr(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor}),...Ue(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})}),lr=(e,o="")=>{let{componentCls:t,controlHeight:n,fontSize:r,borderRadius:i,buttonPaddingHorizontal:a,iconCls:l,buttonPaddingVertical:s,buttonIconOnlyFontSize:p}=e;return [{[o]:{fontSize:r,height:n,padding:`${unit(s)} ${unit(a)}`,borderRadius:i,[`&${t}-icon-only`]:{width:n,[l]:{fontSize:p,verticalAlign:"calc(-0.125em - 1px)"}}}},{[`${t}${t}-circle${o}`]:js(e)},{[`${t}${t}-round${o}`]:Vs(e)}]},Js=e=>{let o=mergeToken(e,{fontSize:e.contentFontSize});return lr(o,e.componentCls)},ec=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 lr(o,`${e.componentCls}-sm`)},oc=e=>{let o=mergeToken(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return lr(o,`${e.componentCls}-lg`)},tc=e=>{let{componentCls:o}=e;return {[o]:{[`&${o}-block`]:{width:"100%"}}}},gi=Y("Button",e=>{let o=rt(e);return [Ws(o),Js(o),ec(o),oc(o),tc(o),Qs(o),Ys(o),Xn(o)]},nt,{unitless:{fontWeight:true,contentLineHeight:true,contentLineHeightSM:true,contentLineHeightLG:true}});function rc(e,o,t){let{focusElCls:n,focus:r,borderElCls:i}=t,a=i?"> *":"",l=["hover",r?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${a}`).join(",");return {[`&-item:not(${o}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{[l]:{zIndex:2},...n?{[`&${n}`]:{zIndex:2}}:{},[`&[disabled] ${a}`]:{zIndex:0}}}}function nc(e,o,t){let{borderElCls:n}=t,r=n?`> ${n}`:"";return {[`&-item:not(${o}-first-item):not(${o}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${o}-last-item)${o}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${o}-first-item)${o}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function ui(e,o={focus:true}){let{componentCls:t}=e,n=`${t}-compact`;return {[n]:{...rc(e,n,o),...nc(t,n,o)}}}function ic(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 ac(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 Ci(e){let o=`${e.componentCls}-compact-vertical`;return {[o]:{...ic(e,o),...ac(e.componentCls,o)}}}var lc=e=>{let{componentCls:o,colorPrimaryHover:t,lineWidth:n,calc:r}=e,i=r(n).mul(-1).equal(),a=l=>({[`${o}-compact${l?"-vertical":""}-item${o}-primary:not([disabled])`]:{"& + &::before":{position:"absolute",top:l?i:0,insetInlineStart:l?0:i,backgroundColor:t,content:'""',width:l?"100%":n,height:l?n:"100%"}}});return {...a(),...a(true)}},yi=po(["Button","compact"],e=>{let o=rt(e);return [ui(o),Ci(o),lc(o)]},nt);function mc(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 dc={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},fc=$__default.forwardRef((e,o)=>{let{loading:t=false,prefixCls:n,color:r,variant:i,type:a,danger:l=false,shape:s="default",size:p,styles:c,disabled:m,className:d,rootClassName:g,children:u,icon:f,iconPosition:b="start",ghost:T=false,block:y=false,htmlType:C="button",classNames:v,style:I={},autoInsertSpace:R,autoFocus:E,...h}=e,P=a||"default",[w,S]=useMemo(()=>{if(r&&i)return [r,i];let L=dc[P]||[];return l?["danger",L[1]]:L},[a,r,i,l]),G=w==="danger"?"dangerous":w,{getPrefixCls:Z,direction:J,button:U}=useContext(x),fe=R??U?.autoInsertSpace??true,k=Z("btn",n),[Be,qe,Ze]=gi(k),Q=useContext(Uo),F=m??Q,Qe=useContext(Kt),Te=useMemo(()=>mc(t),[t]),[ee,ho]=useState(Te.loading),[Ye,To]=useState(false),Pe=useRef(null),Po=useComposeRef(o,Pe),vo=Children.count(u)===1&&!f&&!go(S),Je=useRef(true);$__default.useEffect(()=>(Je.current=false,()=>{Je.current=true;}),[]),useEffect(()=>{let L=null;Te.delay>0?L=setTimeout(()=>{L=null,ho(true);},Te.delay):ho(Te.loading);function yt(){L&&(clearTimeout(L),L=null);}return yt},[Te]),useEffect(()=>{if(!Pe.current||!fe)return;let L=Pe.current.textContent||"";vo&&et(L)?Ye||To(true):Ye&&To(false);}),useEffect(()=>{E&&Pe.current&&Pe.current.focus();},[]);let Ro=$__default.useCallback(L=>{if(ee||F){L.preventDefault();return}e.onClick?.(L);},[e.onClick,ee,F]);if(process.env.NODE_ENV!=="production"){let L=B("Button");L(!(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`),L(!(T&&go(S)),"usage","`link` or `text` button can't be a `ghost` button.");}let{compactSize:dt,compactItemClassnames:$o}=On(k,J),ft={large:"lg",small:"sm",middle:void 0},ko=mo(L=>p??dt??Qe??L),Mo=ko?ft[ko]??"":"",gt=ee?"loading":f,eo=pi(h,["navigate"]),Io=mt(k,qe,Ze,{[`${k}-${s}`]:s!=="default"&&s,[`${k}-${P}`]:P,[`${k}-dangerous`]:l,[`${k}-color-${G}`]:G,[`${k}-variant-${S}`]:S,[`${k}-${Mo}`]:Mo,[`${k}-icon-only`]:!u&&u!==0&&!!gt,[`${k}-background-ghost`]:T&&!go(S),[`${k}-loading`]:ee,[`${k}-two-chinese-chars`]:Ye&&fe&&!ee,[`${k}-block`]:y,[`${k}-rtl`]:J==="rtl",[`${k}-icon-end`]:b==="end"},$o,d,g,U?.className),Bo={...U?.style,...I},ut=mt(v?.icon,U?.classNames?.icon),Ct={...c?.icon||{},...U?.styles?.icon||{}},wo=f&&!ee?$__default.createElement(tt,{prefixCls:k,className:ut,style:Ct},f):$__default.createElement(Vn,{existIcon:!!f,prefixCls:k,loading:ee,mount:Je.current}),Lo=u||u===0?Gn(u,vo&&fe):null;if(eo.href!==void 0)return Be($__default.createElement("a",{...eo,className:mt(Io,{[`${k}-disabled`]:F}),href:F?void 0:eo.href,style:Bo,onClick:Ro,ref:Po,tabIndex:F?-1:0},wo,Lo));let oo=$__default.createElement("button",{...h,type:C,className:Io,style:Bo,onClick:Ro,disabled:F,ref:Po},wo,Lo,$o&&$__default.createElement(yi,{prefixCls:k}));return go(S)||(oo=$__default.createElement(Ln,{component:"Button",disabled:ee},oo)),Be(oo)}),at=fc;at.Group=An;at.__ANT_BUTTON=true;process.env.NODE_ENV!=="production"&&(at.displayName="Button");var hi=at;var Xe=hi;function mr(e){return !!e?.then}var uc=e=>{let{type:o,children:t,prefixCls:n,buttonProps:r,close:i,autoFocus:a,emitEvent:l,isSilent:s,quitOnNullishReturnValue:p,actionFn:c}=e,m=$.useRef(false),d=$.useRef(null),[g,u]=gc(false),f=(...y)=>{i?.(...y);};$.useEffect(()=>{let y=null;return a&&(y=setTimeout(()=>{d.current?.focus({preventScroll:true});})),()=>{y&&clearTimeout(y);}},[]);let b=y=>{mr(y)&&(u(true),y.then((...C)=>{u(false,true),f(...C),m.current=false;},C=>{if(u(false,true),m.current=false,!s?.())return Promise.reject(C)}));},T=y=>{if(m.current)return;if(m.current=true,!c){f();return}let C;if(l){if(C=c(y),p&&!mr(C)){m.current=false,f(y);return}}else if(c.length)C=c(i),m.current=false;else if(C=c(),!mr(C)){f();return}b(C);};return $.createElement(Xe,{...ot(o),onClick:T,loading:g,prefixCls:n,...r,ref:d},t)},lt=uc;var ce=$__default.createContext({}),{Provider:st}=ce;var xc=()=>{let{autoFocusButton:e,cancelButtonProps:o,cancelTextLocale:t,isSilent:n,mergedOkCancel:r,rootPrefixCls:i,close:a,onCancel:l,onConfirm:s}=useContext(ce);return r?$__default.createElement(lt,{isSilent:n,actionFn:l,close:(...p)=>{a?.(...p),s?.(false);},autoFocus:e==="cancel",buttonProps:o,prefixCls:`${i}-btn`},t):null},dr=xc;var Tc=()=>{let{autoFocusButton:e,close:o,isSilent:t,okButtonProps:n,rootPrefixCls:r,okTextLocale:i,okType:a,onConfirm:l,onOk:s}=useContext(ce);return $__default.createElement(lt,{isSilent:t,type:a||"primary",actionFn:s,close:(...p)=>{o?.(...p),l?.(true);},autoFocus:e==="ok",buttonProps:n,prefixCls:`${r}-btn`},i)},fr=Tc;$.createContext({labelAlign:"right",vertical:false,itemRef:(()=>{})});$.createContext(null);$.createContext({prefixCls:""});var gr=$.createContext({});process.env.NODE_ENV!=="production"&&(gr.displayName="FormItemInputContext");var Ti=({children:e,status:o,override:t})=>{let n=$.useContext(gr),r=$.useMemo(()=>{let i={...n};return t&&delete i.isFormItemInput,o&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[o,t,n]);return $.createElement(gr.Provider,{value:r},e)};$.createContext(void 0);var Pc=e=>{let{space:o,form:t,children:n}=e;if(n==null)return null;let r=n;return t&&(r=$__default.createElement(Ti,{override:true,status:true},r)),o&&(r=$__default.createElement(Hn,null,r)),r},vi=Pc;function ur(e){if(e)return {closable:e.closable,closeIcon:e.closeIcon}}function Ri(e){let{closable:o,closeIcon:t}=e||{};return $__default.useMemo(()=>{if(!o&&(o===false||t===false||t===null))return false;if(o===void 0&&t===void 0)return null;let n={closeIcon:typeof t!="boolean"&&t!==null?t:void 0};return o&&typeof o=="object"&&(n={...n,...o}),n},[o,t])}function $i(...e){let o={};return e.forEach(t=>{t&&Object.keys(t).forEach(n=>{t[n]!==void 0&&(o[n]=t[n]);});}),o}var $c={};function Cr(e,o,t=$c){let n=Ri(e),r=Ri(o),i=typeof n!="boolean"?!!n?.disabled:false,a=$__default.useMemo(()=>({closeIcon:$__default.createElement(vc,null),...t}),[t]),l=$__default.useMemo(()=>n===false?false:n?$i(a,r,n):r===false?false:r?$i(a,r):a.closable?a:false,[n,r,a]);return $__default.useMemo(()=>{if(l===false)return [false,null,i];let{closeIconRender:s}=a,{closeIcon:p}=l,c=p;if(c!=null){s&&(c=s(p));let m=Rc(l,true);Object.keys(m).length&&(c=$__default.isValidElement(c)?$__default.cloneElement(c,m):$__default.createElement("span",{...m},c));}return [true,c,i]},[l,a])}var ki=()=>window.document.documentElement;var kc=e=>{let[,,,,o]=N();return o?`${e}-css-var`:""},Mi=kc;var Mc=e=>{let{prefixCls:o,className:t,style:n,size:r,shape:i}=e,a=mt({[`${o}-lg`]:r==="large",[`${o}-sm`]:r==="small"}),l=mt({[`${o}-circle`]:i==="circle",[`${o}-square`]:i==="square",[`${o}-round`]:i==="round"}),s=$.useMemo(()=>typeof r=="number"?{width:r,height:r,lineHeight:`${r}px`}:{},[r]);return $.createElement("span",{className:mt(o,a,l,t),style:{...s,...n}})},be=Mc;var wc=new Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),pt=e=>({height:e,lineHeight:unit(e)}),Ke=e=>({width:e,...pt(e)}),Lc=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:wc,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Sr=(e,o)=>({width:o(e).mul(5).equal(),minWidth:o(e).mul(5).equal(),...pt(e)}),Ec=e=>{let{skeletonAvatarCls:o,gradientFromColor:t,controlHeight:n,controlHeightLG:r,controlHeightSM:i}=e;return {[o]:{display:"inline-block",verticalAlign:"top",background:t,...Ke(n)},[`${o}${o}-circle`]:{borderRadius:"50%"},[`${o}${o}-lg`]:{...Ke(r)},[`${o}${o}-sm`]:{...Ke(i)}}},Nc=e=>{let{controlHeight:o,borderRadiusSM:t,skeletonInputCls:n,controlHeightLG:r,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return {[n]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,...Sr(o,l)},[`${n}-lg`]:{...Sr(r,l)},[`${n}-sm`]:{...Sr(i,l)}}},Ii=e=>({width:e,...pt(e)}),zc=e=>{let{skeletonImageCls:o,imageSizeBase:t,gradientFromColor:n,borderRadiusSM:r,calc:i}=e;return {[o]:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:n,borderRadius:r,...Ii(i(t).mul(2).equal()),[`${o}-path`]:{fill:"#bfbfbf"},[`${o}-svg`]:{...Ii(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%"}}},xr=(e,o,t)=>{let{skeletonButtonCls:n}=e;return {[`${t}${n}-circle`]:{width:o,minWidth:o,borderRadius:"50%"},[`${t}${n}-round`]:{borderRadius:o}}},br=(e,o)=>({width:o(e).mul(2).equal(),minWidth:o(e).mul(2).equal(),...pt(e)}),Oc=e=>{let{borderRadiusSM:o,skeletonButtonCls:t,controlHeight:n,controlHeightLG:r,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return {[t]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:o,width:l(n).mul(2).equal(),minWidth:l(n).mul(2).equal(),...br(n,l)},...xr(e,n,t),[`${t}-lg`]:{...br(r,l)},...xr(e,r,`${t}-lg`),[`${t}-sm`]:{...br(i,l)},...xr(e,i,`${t}-sm`)}},Hc=e=>{let{componentCls:o,skeletonAvatarCls:t,skeletonTitleCls:n,skeletonParagraphCls:r,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:s,controlHeightLG:p,controlHeightSM:c,gradientFromColor:m,padding:d,marginSM:g,borderRadius:u,titleHeight:f,blockRadius:b,paragraphLiHeight:T,controlHeightXS:y,paragraphMarginTop:C}=e;return {[o]:{display:"table",width:"100%",[`${o}-header`]:{display:"table-cell",paddingInlineEnd:d,verticalAlign:"top",[t]:{display:"inline-block",verticalAlign:"top",background:m,...Ke(s)},[`${t}-circle`]:{borderRadius:"50%"},[`${t}-lg`]:{...Ke(p)},[`${t}-sm`]:{...Ke(c)}},[`${o}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[n]:{width:"100%",height:f,background:m,borderRadius:b,[`+ ${r}`]:{marginBlockStart:c}},[r]:{padding:0,"> li":{width:"100%",height:T,listStyle:"none",background:m,borderRadius:b,"+ li":{marginBlockStart:y}}},[`${r}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${o}-content`]:{[`${n}, ${r} > li`]:{borderRadius:u}}},[`${o}-with-avatar ${o}-content`]:{[n]:{marginBlockStart:g,[`+ ${r}`]:{marginBlockStart:C}}},[`${o}${o}-element`]:{display:"inline-block",width:"auto",...Oc(e),...Ec(e),...Nc(e),...zc(e)},[`${o}${o}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${o}${o}-active`]:{[`
|
|
60
|
+
${n},
|
|
61
|
+
${r} > li,
|
|
62
|
+
${t},
|
|
63
|
+
${i},
|
|
64
|
+
${a},
|
|
65
|
+
${l}
|
|
66
|
+
`]:{...Lc(e)}}}},Ac=e=>{let{colorFillContent:o,colorFill:t}=e,n=o,r=t;return {color:n,colorGradientEnd:r,gradientFromColor:n,gradientToColor:r,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},q=Y("Skeleton",e=>{let{componentCls:o,calc:t}=e,n=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 [Hc(n)]},Ac,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});var Gc=e=>{let{prefixCls:o,className:t,rootClassName:n,active:r,shape:i="circle",size:a="default"}=e,{getPrefixCls:l}=$.useContext(x),s=l("skeleton",o),[p,c,m]=q(s),d=pi(e,["prefixCls","className"]),g=mt(s,`${s}-element`,{[`${s}-active`]:r},t,n,c,m);return p($.createElement("div",{className:g},$.createElement(be,{prefixCls:`${s}-avatar`,shape:i,size:a,...d})))},Bi=Gc;var Vc=e=>{let{prefixCls:o,className:t,rootClassName:n,active:r,block:i=false,size:a="default"}=e,{getPrefixCls:l}=$.useContext(x),s=l("skeleton",o),[p,c,m]=q(s),d=pi(e,["prefixCls"]),g=mt(s,`${s}-element`,{[`${s}-active`]:r,[`${s}-block`]:i},t,n,c,m);return p($.createElement("div",{className:g},$.createElement(be,{prefixCls:`${s}-button`,size:a,...d})))},wi=Vc;var Uc="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",Xc=e=>{let{prefixCls:o,className:t,rootClassName:n,style:r,active:i}=e,{getPrefixCls:a}=$.useContext(x),l=a("skeleton",o),[s,p,c]=q(l),m=mt(l,`${l}-element`,{[`${l}-active`]:i},t,n,p,c);return s($.createElement("div",{className:m},$.createElement("div",{className:mt(`${l}-image`,t),style:r},$.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},$.createElement("title",null,"Image placeholder"),$.createElement("path",{d:Uc,className:`${l}-image-path`})))))},Ei=Xc;var qc=e=>{let{prefixCls:o,className:t,rootClassName:n,active:r,block:i,size:a="default"}=e,{getPrefixCls:l}=$.useContext(x),s=l("skeleton",o),[p,c,m]=q(s),d=pi(e,["prefixCls"]),g=mt(s,`${s}-element`,{[`${s}-active`]:r,[`${s}-block`]:i},t,n,c,m);return p($.createElement("div",{className:g},$.createElement(be,{prefixCls:`${s}-input`,size:a,...d})))},Ni=qc;var Zc=e=>{let{prefixCls:o,className:t,rootClassName:n,style:r,active:i,children:a}=e,{getPrefixCls:l}=$.useContext(x),s=l("skeleton",o),[p,c,m]=q(s),d=mt(s,`${s}-element`,{[`${s}-active`]:i},c,t,n,m);return p($.createElement("div",{className:d},$.createElement("div",{className:mt(`${s}-image`,t),style:r},a)))},Oi=Zc;var Yc=(e,o)=>{let{width:t,rows:n=2}=o;if(Array.isArray(t))return t[e];if(n-1===e)return t},Jc=e=>{let{prefixCls:o,className:t,style:n,rows:r}=e,i=[...new Array(r)].map((a,l)=>$.createElement("li",{key:l,style:{width:Yc(l,e)}}));return $.createElement("ul",{className:mt(o,t),style:n},i)},Hi=Jc;var op=({prefixCls:e,className:o,width:t,style:n})=>$.createElement("h3",{className:mt(e,o),style:{width:t,...n}}),Fi=op;function Tr(e){return e&&typeof e=="object"?e:{}}function rp(e,o){return e&&!o?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function np(e,o){return !e&&o?{width:"38%"}:e&&o?{width:"50%"}:{}}function ip(e,o){let t={};return (!e||!o)&&(t.width="61%"),!e&&o?t.rows=3:t.rows=2,t}var Ie=e=>{let{prefixCls:o,loading:t,className:n,rootClassName:r,style:i,children:a,avatar:l=false,title:s=true,paragraph:p=true,active:c,round:m}=e,{getPrefixCls:d,direction:g,skeleton:u}=$.useContext(x),f=d("skeleton",o),[b,T,y]=q(f);if(t||!("loading"in e)){let C=!!l,v=!!s,I=!!p,R;if(C){let P={prefixCls:`${f}-avatar`,...rp(v,I),...Tr(l)};R=$.createElement("div",{className:`${f}-header`},$.createElement(be,{...P}));}let E;if(v||I){let P;if(v){let S={prefixCls:`${f}-title`,...np(C,I),...Tr(s)};P=$.createElement(Fi,{...S});}let w;if(I){let S={prefixCls:`${f}-paragraph`,...ip(C,v),...Tr(p)};w=$.createElement(Hi,{...S});}E=$.createElement("div",{className:`${f}-content`},P,w);}let h=mt(f,{[`${f}-with-avatar`]:C,[`${f}-active`]:c,[`${f}-rtl`]:g==="rtl",[`${f}-round`]:m},u?.className,n,r,T,y);return b($.createElement("div",{className:h,style:{...u?.style,...i}},R,E))}return a??null};Ie.Button=wi;Ie.Avatar=Bi;Ie.Input=Ni;Ie.Image=Ei;Ie.Node=Oi;process.env.NODE_ENV!=="production"&&(Ie.displayName="Skeleton");var Di=Ie;var Gi=Di;function Wi(){}var lp=$.createContext({add:Wi,remove:Wi});function ji(e){let o=$.useContext(lp),t=$.useRef(null);return Nl(r=>{if(r){let i=e?r.querySelector(e):r;o.add(i),t.current=i;}else o.remove(t.current);})}var pp=()=>{let{cancelButtonProps:e,cancelTextLocale:o,onCancel:t}=useContext(ce);return $__default.createElement(Xe,{onClick:t,...e},o)},Pr=pp;var fp=()=>{let{confirmLoading:e,okButtonProps:o,okType:t,okTextLocale:n,onOk:r}=useContext(ce);return $__default.createElement(Xe,{...ot(t),loading:e,onClick:r,...o},n)},vr=fp;function Vi(e,o){return $__default.createElement("span",{className:`${e}-close-x`},o||$__default.createElement(vc,{className:`${e}-close-icon`}))}var Ui=e=>{let{okText:o,okType:t="primary",cancelText:n,confirmLoading:r,onOk:i,onCancel:a,okButtonProps:l,cancelButtonProps:s,footer:p}=e,[c]=Ae("Modal",Zr()),m=o||c?.okText,d=n||c?.cancelText,g={confirmLoading:r,okButtonProps:l,cancelButtonProps:s,okTextLocale:m,cancelTextLocale:d,okType:t,onOk:i,onCancel:a},u=$__default.useMemo(()=>g,[...Object.values(g)]),f;return typeof p=="function"||typeof p>"u"?(f=$__default.createElement($__default.Fragment,null,$__default.createElement(vr,null),$__default.createElement(Pr,null)),typeof p=="function"&&(f=p(f,{OkBtn:vr,CancelBtn:Pr})),f=$__default.createElement(st,{value:u},f)):f=p,$__default.createElement(Vo,{disabled:false},f)};function Xi(e){return {position:e,inset:0}}var up=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`]:{...Xi("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${o}-hidden`]:{display:"none"}},[`${o}-wrap`]:{...Xi("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${o}-root`]:Qt(e)}]},Cp=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]:{...Xo(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},...Ko(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,
|
|
67
|
+
${o}-body,
|
|
68
|
+
${o}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${o}-confirm-body`]:{marginBottom:"auto"}}}]},yp=e=>{let{componentCls:o}=e;return {[`${o}-root`]:{[`${o}-wrap-rtl`]:{direction:"rtl",[`${o}-confirm-body`]:{direction:"rtl"}}}}},Rr=e=>{let o=e.padding,t=e.fontSizeHeading5,n=e.lineHeightHeading5;return mergeToken(e,{modalHeaderHeight:e.calc(e.calc(n).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()})},$r=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}),Ki=Y("Modal",e=>{let o=Rr(e);return [Cp(o),yp(o),up(o),er(o,"zoom")]},$r,{unitless:{titleLineHeight:true}});var kr,bp=e=>{kr={x:e.pageX,y:e.pageY},setTimeout(()=>{kr=null;},100);};ki()&&document.documentElement.addEventListener("click",bp,true);var hp=e=>{let{getPopupContainer:o,getPrefixCls:t,direction:n,modal:r}=$.useContext(x),i=Q=>{let{onCancel:F}=e;F?.(Q);},a=Q=>{let{onOk:F}=e;F?.(Q);};if(process.env.NODE_ENV!=="production"){let Q=B("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(([F,Qe])=>{Q.deprecated(!(F in e),F,Qe);});}let{prefixCls:l,className:s,rootClassName:p,open:c,wrapClassName:m,centered:d,getContainer:g,focusTriggerAfterClose:u=true,style:f,visible:b,width:T=520,footer:y,classNames:C,styles:v,children:I,loading:R,...E}=e,h=t("modal",l),P=t(),w=Mi(h),[S,D,G]=Ki(h,w),Z=mt(m,{[`${h}-centered`]:!!d,[`${h}-wrap-rtl`]:n==="rtl"}),J=y!==null&&!R?$.createElement(Ui,{...e,onOk:a,onCancel:i}):null,[U,fe,k]=Cr(ur(e),ur(r),{closable:true,closeIcon:$.createElement(vc,{className:`${h}-close-icon`}),closeIconRender:Q=>Vi(h,Q)}),Be=ji(`.${h}-content`),[qe,Ze]=Ur("Modal",E.zIndex);return S($.createElement(vi,{form:true,space:true},$.createElement(Fo.Provider,{value:Ze},$.createElement(xp,{width:T,...E,zIndex:qe,getContainer:g===void 0?o:g,prefixCls:h,rootClassName:mt(D,p,G,w),footer:J,visible:c??b,mousePosition:E.mousePosition??kr,onClose:i,closable:U&&{disabled:k,closeIcon:fe},closeIcon:fe,focusTriggerAfterClose:u,transitionName:We(P,"zoom",e.transitionName),maskTransitionName:We(P,"fade",e.maskTransitionName),className:mt(D,s,r?.className),style:{...r?.style,...f},classNames:{...r?.classNames,...C,wrapper:mt(Z,C?.wrapper)},styles:{...r?.styles,...v},panelRef:Be},R?$.createElement(Gi,{active:true,title:false,paragraph:{rows:4},className:`${h}-body-skeleton`}):I))))},_i=hp;var Tp=e=>{let{componentCls:o,titleFontSize:t,titleLineHeight:n,modalConfirmIconSize:r,fontSize:i,lineHeight:a,modalTitleHeight:l,fontHeight:s,confirmBodyPadding:p}=e,c=`${o}-confirm`;return {[c]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${c}-body-wrapper`]:{...ln()},[`&${o} ${o}-body`]:{padding:p},[`${c}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:r,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(s).sub(r).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(r).equal()).div(2).equal()}},[`${c}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${unit(e.marginSM)})`},[`${e.iconCls} + ${c}-paragraph`]:{maxWidth:`calc(100% - ${unit(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${c}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:t,lineHeight:n},[`${c}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${c}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${c}-error ${c}-body > ${e.iconCls}`]:{color:e.colorError},[`${c}-warning ${c}-body > ${e.iconCls},
|
|
69
|
+
${c}-confirm ${c}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${c}-info ${c}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${c}-success ${c}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Zi=po(["Modal","confirm"],e=>{let o=Rr(e);return [Tp(o)]},$r,{order:-1e3});function kp(e){let{prefixCls:o,icon:t,okText:n,cancelText:r,confirmPrefixCls:i,type:a,okCancel:l,footer:s,locale:p,...c}=e;process.env.NODE_ENV!=="production"&&B("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=$.createElement($p,null);break;case "success":m=$.createElement(Pp,null);break;case "error":m=$.createElement(vp,null);break;default:m=$.createElement(Rp,null);}let d=l??a==="confirm",g=e.autoFocusButton===null?false:e.autoFocusButton||"ok",[u]=Ae("Modal"),f=p||u,b=n||(d?f?.okText:f?.justOkText),T=r||f?.cancelText,y={autoFocusButton:g,cancelTextLocale:T,okTextLocale:b,mergedOkCancel:d,...c},C=$.useMemo(()=>y,[...Object.values(y)]),v=$.createElement($.Fragment,null,$.createElement(dr,null),$.createElement(fr,null)),I=e.title!==void 0&&e.title!==null,R=`${i}-body`;return $.createElement("div",{className:`${i}-body-wrapper`},$.createElement("div",{className:mt(R,{[`${R}-has-title`]:I})},m,$.createElement("div",{className:`${i}-paragraph`},I&&$.createElement("span",{className:`${i}-title`},e.title),$.createElement("div",{className:`${i}-content`},e.content))),s===void 0||typeof s=="function"?$.createElement(st,{value:C},$.createElement("div",{className:`${i}-btns`},typeof s=="function"?s(v,{OkBtn:fr,CancelBtn:dr}):v)):s,$.createElement(Zi,{prefixCls:o}))}var Qi=e=>{let{close:o,zIndex:t,afterClose:n,open:r,keyboard:i,centered:a,getContainer:l,maskStyle:s,direction:p,prefixCls:c,wrapClassName:m,rootPrefixCls:d,bodyStyle:g,closable:u=false,closeIcon:f,modalRender:b,focusTriggerAfterClose:T,onConfirm:y,styles:C}=e;if(process.env.NODE_ENV!=="production"){let D=B("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(([G,Z])=>{D.deprecated(!(G in e),G,Z);});}let v=`${c}-confirm`,I=e.width||416,R=e.style||{},E=e.mask===void 0?true:e.mask,h=e.maskClosable===void 0?false:e.maskClosable,P=mt(v,`${v}-${e.type}`,{[`${v}-rtl`]:p==="rtl"},e.className),[,w]=N(),S=$.useMemo(()=>t!==void 0?t:w.zIndexPopupBase+Nt,[t,w]);return $.createElement(_i,{prefixCls:c,className:P,wrapClassName:mt({[`${v}-centered`]:!!e.centered},m),onCancel:()=>{o?.({triggerCancel:true}),y?.(false);},open:r,title:"",footer:null,transitionName:We(d||"","zoom",e.transitionName),maskTransitionName:We(d||"","fade",e.maskTransitionName),mask:E,maskClosable:h,style:R,styles:{body:g,mask:s,...C},width:I,zIndex:S,afterClose:n,keyboard:i,centered:a,getContainer:l,closable:u,closeIcon:f,modalRender:b,focusTriggerAfterClose:T},$.createElement(kp,{...e,confirmPrefixCls:v}))},Yi=e=>{let{rootPrefixCls:o,iconPrefixCls:t,direction:n,theme:r}=e;return $.createElement(Sn,{prefixCls:o,iconPrefixCls:t,direction:n,theme:r},$.createElement(Qi,{...e}))};process.env.NODE_ENV!=="production"&&(Qi.displayName="ConfirmDialog",Yi.displayName="ConfirmDialogWrapper");var kx=Yi;
|
|
70
|
+
export{kp as ConfirmContent,kx as default};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import*as P from'react';import P__default,{createContext,useContext,forwardRef,useMemo,useState,useRef,Children,useEffect}from'react';import nl from'@ant-design/icons/CloseOutlined';import nt from'classnames';import Qc from'rc-dialog';import'rc-field-form';import xi from'rc-util/lib/omit';import sc from'rc-util/lib/Children/toArray';import {createTheme,Keyframes,unit,useCacheToken,useStyleRegister}from'@ant-design/cssinjs';import Da from'@ant-design/icons/lib/components/Context';import Oa from'rc-util/lib/hooks/useMemo';import {merge}from'rc-util/lib/utils/set';import qi,{resetWarned}from'rc-util/lib/warning';import ta from'rc-pagination/lib/locale/en_US';import ea from'rc-picker/lib/locale/en_US';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';import ya from'rc-util/lib/Dom/canUseDom';import {updateCSS}from'rc-util/lib/Dom/dynamicCSS';import Aa from'rc-util/lib/isEqual';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import is,{Provider}from'rc-motion';import il from'rc-util/lib/pickAttrs';import'rc-util/lib/Dom/styleChecker';import ql from'rc-util/lib/hooks/useEvent';import {useComposeRef,supportRef,composeRef,getNodeRef}from'rc-util/lib/ref';import gs from'rc-util/lib/Dom/isVisible';import Fn from'rc-util/lib/raf';import*as Jl from'react-dom';import {unmount,render}from'rc-util/lib/React/render';import $s from'@ant-design/icons/LoadingOutlined';import {Color}from'@rc-component/color-picker';import'rc-util/lib/hooks/useMergedState';import ac from'@ant-design/icons/RightOutlined';import Ls from'rc-collapse';P.createContext({labelAlign:"right",vertical:false,itemRef:(()=>{})});P.createContext(null);P.createContext({prefixCls:""});var ft=P.createContext({});process.env.NODE_ENV!=="production"&&(ft.displayName="FormItemInputContext");var hr=({children:e,status:o,override:t})=>{let n=P.useContext(ft),r=P.useMemo(()=>{let i={...n};return t&&delete i.isFormItemInput,o&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[o,t,n]);return P.createElement(ft.Provider,{value:r},e)};P.createContext(void 0);function Tr(){}var te=null;function Qi(){te=null,resetWarned();}var gt=Tr;process.env.NODE_ENV!=="production"&&(gt=(e,o,t)=>{qi(e,`[swiftcrab: ${o}] ${t}`),process.env.NODE_ENV==="test"&&Qi();});var ut=P.createContext({}),k=process.env.NODE_ENV!=="production"?e=>{let{strict:o}=P.useContext(ut),t=(n,r,i)=>{if(!n)if(o===false&&r==="deprecated"){let a=te;te||(te={}),te[e]=te[e]||[],te[e].includes(i||"")||te[e].push(i||""),a||console.warn("[swiftcrab] There exists deprecated usage in your code:",te);}else gt(n,e,i);};return t.deprecated=(n,r,i,a)=>{t(n,"deprecated",`\`${r}\` is deprecated. Please use \`${i}\` instead.${a?` ${a}`:""}`);},t}:()=>{let e=()=>{};return e.deprecated=Tr,e},de=gt;var Pr=createContext(void 0);var Ji={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Bo=Ji;var oa={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"],...ea},timePickerLocale:{...Bo}},wo=oa;var vr=wo;var D="${label} is not a valid ${type}",ra={locale:"en",Pagination:ta,DatePicker:wo,TimePicker:Bo,Calendar:vr,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:D,method:D,array:D,object:D,number:D,date:D,boolean:D,integer:D,float:D,regexp:D,email:D,url:D,hex:D},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"}},re=ra;var Eo={...re.Modal},Lo=[],Rr=()=>Lo.reduce((e,o)=>({...e,...o}),re.Modal);function $r(e){if(e){let o={...e};return Lo.push(o),Eo=Rr(),()=>{Lo=Lo.filter(t=>t!==o),Eo=Rr();}}Eo={...re.Modal};}function kr(){return Eo}var ia=createContext(void 0),we=ia;var aa=(e,o)=>{let t=P.useContext(we),n=P.useMemo(()=>{let i=o||re[e],a=t?.[e]??{};return {...typeof i=="function"?i():i,...a||{}}},[e,o,t]),r=P.useMemo(()=>{let i=t?.locale;return t?.exist&&!i?re.locale:i},[t]);return [n,r]},zo=aa;var Ct="internalMark",Ir=e=>{let{locale:o={},children:t,_ANT_MARK__:n}=e;process.env.NODE_ENV!=="production"&&k("LocaleProvider")(n===Ct,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),P.useEffect(()=>$r(o?.Modal),[o]);let r=P.useMemo(()=>({...o,exist:true}),[o]);return P.createElement(we.Provider,{value:r},t)};process.env.NODE_ENV!=="production"&&(Ir.displayName="LocaleProvider");var Mr=Ir;var yt={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"},la={...yt,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},ne=la;function xt(e,{generateColorPalettes:o,generateNeutralColorPalettes:t}){let{colorSuccess:n,colorWarning:r,colorError:i,colorInfo:a,colorPrimary:l,colorBgBase:s,colorTextBase:c}=e,p=o(l),m=o(n),d=o(r),g=o(i),C=o(a),f=t(s,c),b=e.colorLink||e.colorInfo,h=o(b),M=new TinyColor(g[1]).mix(new TinyColor(g[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:g[1],colorErrorBgHover:g[2],colorErrorBgFilledHover:M,colorErrorBgActive:g[3],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[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: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 sa=e=>{let o=e,t=e,n=e,r=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?n=1:e>=6&&(n=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:t,borderRadiusLG:o,borderRadiusOuter:r}},Br=sa;function bt(e){let{motionUnit:o,motionBase:t,borderRadius:n,lineWidth:r}=e;return {motionDurationFast:`${(t+o).toFixed(1)}s`,motionDurationMid:`${(t+o*2).toFixed(1)}s`,motionDurationSlow:`${(t+o*3).toFixed(1)}s`,lineWidthBold:r+1,...Br(n)}}var ca=e=>{let{controlHeight:o}=e;return {controlHeightSM:o*.75,controlHeightXS:o*.5,controlHeightLG:o*1.25}},wr=ca;function Le(e){return (e+8)/e}function ht(e){let o=new Array(10).fill(null).map((t,n)=>{let r=n-1,i=e*Math.E**(r/5),a=n>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return o[1]=e,o.map(t=>({size:t,lineHeight:Le(t)}))}var pa=e=>{let o=ht(e),t=o.map(p=>p.size),n=o.map(p=>p.lineHeight),r=t[1],i=t[0],a=t[2],l=n[1],s=n[0],c=n[2];return {fontSizeSM:i,fontSize:r,fontSizeLG:a,fontSizeXL:t[3],fontSizeHeading1:t[6],fontSizeHeading2:t[5],fontSizeHeading3:t[4],fontSizeHeading4:t[3],fontSizeHeading5:t[2],lineHeight:l,lineHeightLG:c,lineHeightSM:s,fontHeight:Math.round(l*r),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(s*i),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},Er=pa;function Tt(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 G=(e,o)=>new TinyColor(e).setAlpha(o).toRgbString(),ze=(e,o)=>new TinyColor(e).darken(o).toHexString();var zr=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]}},Nr=(e,o)=>{let t=e||"#fff",n=o||"#000";return {colorBgBase:t,colorTextBase:n,colorText:G(n,.88),colorTextSecondary:G(n,.65),colorTextTertiary:G(n,.45),colorTextQuaternary:G(n,.25),colorFill:G(n,.15),colorFillSecondary:G(n,.06),colorFillTertiary:G(n,.04),colorFillQuaternary:G(n,.02),colorBgSolid:G(n,1),colorBgSolidHover:G(n,.75),colorBgSolidActive:G(n,.95),colorBgLayout:ze(t,4),colorBgContainer:ze(t,0),colorBgElevated:ze(t,0),colorBgSpotlight:G(n,.85),colorBgBlur:"transparent",colorBorder:ze(t,15),colorBorderSecondary:ze(t,6)}};function Rt(e){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let o=Object.keys(yt).map(t=>{let n=e[t]===presetPrimaryColors[t]?presetPalettes[t]:generate(e[t]);return new Array(10).fill(1).reduce((r,i,a)=>(r[`${t}-${a+1}`]=n[a],r[`${t}${a+1}`]=n[a],r),{})}).reduce((t,n)=>(t={...t,...n},t),{});return {...e,...o,...xt(e,{generateColorPalettes:zr,generateNeutralColorPalettes:Nr}),...Er(e.fontSize),...Tt(e),...wr(e),...bt(e)}}var No=createTheme(Rt),Je={token:ne,override:{override:ne},hashed:true},eo=P__default.createContext(Je);var fe="ant",oo="anticon";var ua=(e,o)=>o||(e?`${fe}-${e}`:fe),u=P.createContext({getPrefixCls:ua,iconPrefixCls:oo}),{Consumer:Ca}=u;var xa=`-ant-${Date.now()}-${Math.random()}`;function ba(e,o){let t={},n=(a,l)=>{let s=a.clone();return s=l?.(s)||s,s.toRgbString()},r=(a,l)=>{let s=new TinyColor(a),c=generate(s.toRgbString());t[`${l}-color`]=n(s),t[`${l}-color-disabled`]=c[1],t[`${l}-color-hover`]=c[4],t[`${l}-color-active`]=c[6],t[`${l}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),t[`${l}-color-deprecated-bg`]=c[0],t[`${l}-color-deprecated-border`]=c[2];};if(o.primaryColor){r(o.primaryColor,"primary");let a=new TinyColor(o.primaryColor),l=generate(a.toRgbString());l.forEach((c,p)=>{t[`primary-${p+1}`]=c;}),t["primary-color-deprecated-l-35"]=n(a,c=>c.lighten(35)),t["primary-color-deprecated-l-20"]=n(a,c=>c.lighten(20)),t["primary-color-deprecated-t-20"]=n(a,c=>c.tint(20)),t["primary-color-deprecated-t-50"]=n(a,c=>c.tint(50)),t["primary-color-deprecated-f-12"]=n(a,c=>c.setAlpha(c.getAlpha()*.12));let s=new TinyColor(l[0]);t["primary-color-active-deprecated-f-30"]=n(s,c=>c.setAlpha(c.getAlpha()*.3)),t["primary-color-active-deprecated-d-02"]=n(s,c=>c.darken(2));}return o.successColor&&r(o.successColor,"success"),o.warningColor&&r(o.warningColor,"warning"),o.errorColor&&r(o.errorColor,"error"),o.infoColor&&r(o.infoColor,"info"),`
|
|
4
|
+
:root {
|
|
5
|
+
${Object.keys(t).map(a=>`--${e}-${a}: ${t[a]};`).join(`
|
|
6
|
+
`)}
|
|
7
|
+
}
|
|
8
|
+
`.trim()}function Ar(e,o){let t=ba(e,o);ya()?updateCSS(t,`${xa}-dynamic-theme`):de(false,"ConfigProvider","SSR do not support dynamic theme with css variables.");}var kt=P.createContext(false),Ho=({children:e,disabled:o})=>{let t=P.useContext(kt);return P.createElement(kt.Provider,{value:o??t},e)},Oo=kt;var It=P.createContext(void 0),Fr=({children:e,size:o})=>{let t=P.useContext(It);return P.createElement(It.Provider,{value:o||t},e)},Te=It;function ha(){let e=useContext(Oo),o=useContext(Te);return {componentDisabled:e,componentSize:o}}var Gr=ha;var jr={version:"0.0.2"};var Vr=jr.version;function Mt(e){return e>=0&&e<=255}function Pa(e,o){let{r:t,g:n,b:r,a:i}=new TinyColor(e).toRgb();if(i<1)return e;let{r:a,g:l,b:s}=new TinyColor(o).toRgb();for(let c=.01;c<=1;c+=.01){let p=Math.round((t-a*(1-c))/c),m=Math.round((n-l*(1-c))/c),d=Math.round((r-s*(1-c))/c);if(Mt(p)&&Mt(m)&&Mt(d))return new TinyColor({r:p,g:m,b:d,a:Math.round(c*100)/100}).toRgbString()}return new TinyColor({r:t,g:n,b:r,a:1}).toRgbString()}var to=Pa;function Fo(e){let{override:o,...t}=e,n={...o};Object.keys(ne).forEach(d=>{delete n[d];});let r={...t,...n},i=480,a=576,l=768,s=992,c=1200,p=1600;return r.motion===false&&(r.motionDurationFast="0s",r.motionDurationMid="0s",r.motionDurationSlow="0s"),{...r,colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:to(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:to(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:to(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidthFocus:r.lineWidth*3,lineWidth:r.lineWidth,controlOutlineWidth:r.lineWidth*2,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:to(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.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:l-1,screenMD:l,screenMDMin:l,screenMDMax:s-1,screenLG:s,screenLGMin:s,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)",...n}}var wt={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},$a={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},ka={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},Ur=(e,o,t)=>{let n=t.getDerivativeToken(e),{override:r,...i}=o,a={...n,override:r};return a=Fo(a),i&&Object.entries(i).forEach(([l,s])=>{let{theme:c,...p}=s,m=p;c&&(m=Ur({...a,...p},{override:p},c)),a[l]=m;}),a};function H(){let{token:e,hashed:o,theme:t,override:n,cssVar:r}=P__default.useContext(eo),i=`${Vr}-${o||""}`,a=t||No,[l,s,c]=useCacheToken(a,[ne,e],{salt:i,override:n,getComputedToken:Ur,formatToken:Fo,cssVar:r&&{prefix:r.prefix,key:r.key,unitless:wt,ignore:$a,preserve:ka}});return [a,c,o?s:"",l,r]}var Do=(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}),ro=()=>({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 Xr=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"}}}),Kr=(e,o,t,n)=>{let r=`[class^="${o}"], [class*=" ${o}"]`,i=t?`.${t}`:r,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},l={};return n!==false&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:{...l,...a,[r]:a}}},Ma=e=>({outline:`${unit(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Go=e=>({"&:focus-visible":{...Ma(e)}}),Wo=e=>({[`.${e}`]:{...ro(),[`.${e} .${e}-icon`]:{display:"block"}}});var{genStyleHooks:Z,genComponentStyleHook:Et,genSubStyleComponent:Lt}=genStyleUtils({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:o}=useContext(u);return {rootPrefixCls:e(),iconPrefixCls:o}},useToken:()=>{let[e,o,t,n,r]=H();return {theme:e,realToken:o,hashId:t,token:n,cssVar:r}},useCSP:()=>{let{csp:e}=useContext(u);return e??{}},getResetStyles:(e,o)=>[{"&":Xr(e)},Wo(o?.prefix.iconPrefixCls??oo)],getCommonStyle:Kr,getCompUnitless:(()=>wt)});var Ea=(e,o)=>{let[t,n]=H();return useStyleRegister({theme:t,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>o?.nonce,layer:{name:"antd"}},()=>[Wo(e)])},jo=Ea;var za={...P},{useId:qr}=za,Na=()=>"",Ha=typeof qr>"u"?Na:qr,Zr=Ha;function zt(e,o,t){let n=k("ConfigProvider"),r=e||{},i=r.inherit===false||!o?{...Je,hashed:o?.hashed??Je.hashed,cssVar:o?.cssVar}:o,a=Zr();if(process.env.NODE_ENV!=="production"){let l=r.cssVar||i.cssVar,s=!!(typeof r.cssVar=="object"&&r.cssVar?.key||a);n(!l||s,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.");}return Oa(()=>{if(!e)return o;let l={...i.components};Object.keys(e.components||{}).forEach(p=>{l[p]={...l[p],...e.components[p]};});let s=`css-var-${a.replace(/:/g,"")}`,c=(r.cssVar??i.cssVar)&&{prefix:t?.prefixCls,...typeof i.cssVar=="object"?i.cssVar:{},...typeof r.cssVar=="object"?r.cssVar:{},key:typeof r.cssVar=="object"&&r.cssVar?.key||s};return {...i,...r,token:{...i.token,...r.token},components:l,cssVar:c}},[r,i],(l,s)=>l.some((c,p)=>{let m=s[p];return !Aa(c,m,true)}))}function Nt(e){let{children:o}=e,[,t]=H(),{motion:n}=t,r=P.useRef(false);return r.current=r.current||n===false,r.current?P.createElement(Provider,{motion:n},o):o}var Yr=P.memo(({dropdownMatchSelectWidth:e})=>(k("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(Yr.displayName="PropWarning");var Jr=process.env.NODE_ENV!=="production"?Yr:()=>null;var Ht=false;process.env.NODE_ENV!=="production"?e=>{de(!Ht,e,"Static function can not consume context like dynamic theme. Please use 'App' component instead.");}:null;var ja=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],on;function Ka(){return on||fe}function _a(e){return Object.keys(e).some(o=>o.endsWith("Color"))}var qa=e=>{let{prefixCls:o,iconPrefixCls:t,theme:n,holderRender:r}=e;o!==void 0&&(on=o),n&&(_a(n)?(de(false,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),Ar(Ka(),n)):n);};var Za=e=>{let{children:o,csp:t,autoInsertSpaceInButton:n,alert:r,anchor:i,form:a,locale:l,componentSize:s,direction:c,space:p,splitter:m,virtual:d,dropdownMatchSelectWidth:g,popupMatchSelectWidth:C,popupOverflow:f,legacyLocale:b,parentContext:h,iconPrefixCls:M,theme:v,componentDisabled:B,segmented:w,statistic:R,spin:O,calendar:S,carousel:x,cascader:E,collapse:y,typography:W,checkbox:_,descriptions:ee,divider:Q,drawer:j,skeleton:me,steps:T,image:$e,layout:je,list:Ve,mentions:q,modal:A,progress:Ue,result:be,slider:Y,breadcrumb:uo,menu:Xe,pagination:Co,input:he,textArea:yo,empty:So,badge:Ke,radio:xo,rate:it,switch:bo,transfer:at,avatar:ho,message:To,tag:lt,table:_e,card:Po,tabs:vo,timeline:st,timePicker:ct,upload:Ro,notification:$o,tree:qe,colorPicker:$,datePicker:pt,rangePicker:Hi,flex:Oi,wave:Ai,dropdown:Fi,warning:Di,tour:Gi,variant:Wi,inputNumber:ji,treeSelect:Vi}=e,yr=P.useCallback((L,J)=>{let{prefixCls:Me}=e;if(J)return J;let Be=Me||h.getPrefixCls("");return L?`${Be}-${L}`:Be},[h.getPrefixCls,e.prefixCls]),Ze=M||h.iconPrefixCls||oo,Qe=t||h.csp;jo(Ze,Qe);let ko=zt(v,h.theme,{prefixCls:yr("")});process.env.NODE_ENV!=="production"&&(Ht=Ht||!!ko);let mt={csp:Qe,autoInsertSpaceInButton:n,alert:r,anchor:i,locale:l||b,direction:c,space:p,splitter:m,virtual:d,popupMatchSelectWidth:C??g,popupOverflow:f,getPrefixCls:yr,iconPrefixCls:Ze,theme:ko,segmented:w,statistic:R,spin:O,calendar:S,carousel:x,cascader:E,collapse:y,typography:W,checkbox:_,descriptions:ee,divider:Q,drawer:j,skeleton:me,steps:T,image:$e,input:he,textArea:yo,layout:je,list:Ve,mentions:q,modal:A,progress:Ue,result:be,slider:Y,breadcrumb:uo,menu:Xe,pagination:Co,empty:So,badge:Ke,radio:xo,rate:it,switch:bo,transfer:at,avatar:ho,message:To,tag:lt,table:_e,card:Po,tabs:vo,timeline:st,timePicker:ct,upload:Ro,notification:$o,tree:qe,colorPicker:$,datePicker:pt,rangePicker:Hi,flex:Oi,wave:Ai,dropdown:Fi,warning:Di,tour:Gi,variant:Wi,inputNumber:ji,treeSelect:Vi};process.env.NODE_ENV!=="production"&&k("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");let ke={...h};Object.keys(mt).forEach(L=>{mt[L]!==void 0&&(ke[L]=mt[L]);}),ja.forEach(L=>{let J=e[L];J&&(ke[L]=J);}),typeof n<"u"&&(ke.button={autoInsertSpace:n,...ke.button});let Ie=Oa(()=>ke,ke,(L,J)=>{let Me=Object.keys(L),Be=Object.keys(J);return Me.length!==Be.length||Me.some(Io=>L[Io]!==J[Io])}),Ui=P.useMemo(()=>({prefixCls:Ze,csp:Qe}),[Ze,Qe]),N=P.createElement(P.Fragment,null,P.createElement(Jr,{dropdownMatchSelectWidth:g}),o),Sr=P.useMemo(()=>merge(re.Form?.defaultValidateMessages||{},Ie.locale?.Form?.defaultValidateMessages||{},Ie.form?.validateMessages||{},a?.validateMessages||{}),[Ie,a?.validateMessages]);Object.keys(Sr).length>0&&(N=P.createElement(Pr.Provider,{value:Sr},N)),l&&(N=P.createElement(Mr,{locale:l,_ANT_MARK__:Ct},N)),(N=P.createElement(Da.Provider,{value:Ui},N)),s&&(N=P.createElement(Fr,{size:s},N)),N=P.createElement(Nt,null,N);let Xi=P.useMemo(()=>{let{algorithm:L,token:J,components:Me,cssVar:Be,...Io}=ko||{},xr=L&&(!Array.isArray(L)||L.length>0)?createTheme(L):No,dt={};Object.entries(Me||{}).forEach(([Ki,_i])=>{let oe={..._i};"algorithm"in oe&&(oe.algorithm===true?oe.theme=xr:(Array.isArray(oe.algorithm)||typeof oe.algorithm=="function")&&(oe.theme=createTheme(oe.algorithm)),delete oe.algorithm),dt[Ki]=oe;});let br={...ne,...J};return {...Io,theme:xr,token:br,components:dt,override:{override:br,...dt},cssVar:Be}},[ko]);return v&&(N=P.createElement(eo.Provider,{value:Xi},N)),Ie.warning&&(N=P.createElement(ut.Provider,{value:Ie.warning},N)),B!==void 0&&(N=P.createElement(Ho,{disabled:B},N)),P.createElement(u.Provider,{value:Ie},N)},Oe=e=>{let o=P.useContext(u),t=P.useContext(we);return P.createElement(Za,{parentContext:o,legacyLocale:t,...e})};Oe.ConfigContext=u;Oe.SizeContext=Te;Oe.config=qa;Oe.useConfig=Gr;Object.defineProperty(Oe,"SizeContext",{get:()=>(de(false,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Te)});process.env.NODE_ENV!=="production"&&(Oe.displayName="ConfigProvider");var Qa=e=>{let o=P__default.useContext(Te);return P__default.useMemo(()=>e?typeof e=="string"?e??o:e instanceof Function?e(o):o:o,[e,o])},no=Qa;var Ya=e=>{let{componentCls:o}=e;return {[o]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},rn=Ya;var Ja=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"}}}},el=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}}}};Z("Space",e=>{let o=mergeToken(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return [Ja(o),el(o),rn(o)]},()=>({}),{resetStyle:false});var nn=P.createContext(null),an=(e,o)=>{let t=P.useContext(nn),n=P.useMemo(()=>{if(!t)return "";let{compactDirection:r,isFirstItem:i,isLastItem:a}=t,l=r==="vertical"?"-vertical-":"-";return nt(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:i,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:o==="rtl"})},[e,o,t]);return {compactSize:t?.compactSize,compactDirection:t?.compactDirection,compactItemClassnames:n}},ln=({children:e})=>P.createElement(nn.Provider,{value:null},e);var rl=e=>{let{space:o,form:t,children:n}=e;if(n==null)return null;let r=n;return t&&(r=P__default.createElement(hr,{override:true,status:true},r)),o&&(r=P__default.createElement(ln,null,r)),r},cn=rl;function Ot(e){if(e)return {closable:e.closable,closeIcon:e.closeIcon}}function pn(e){let{closable:o,closeIcon:t}=e||{};return P__default.useMemo(()=>{if(!o&&(o===false||t===false||t===null))return false;if(o===void 0&&t===void 0)return null;let n={closeIcon:typeof t!="boolean"&&t!==null?t:void 0};return o&&typeof o=="object"&&(n={...n,...o}),n},[o,t])}function mn(...e){let o={};return e.forEach(t=>{t&&Object.keys(t).forEach(n=>{t[n]!==void 0&&(o[n]=t[n]);});}),o}var al={};function At(e,o,t=al){let n=pn(e),r=pn(o),i=typeof n!="boolean"?!!n?.disabled:false,a=P__default.useMemo(()=>({closeIcon:P__default.createElement(nl,null),...t}),[t]),l=P__default.useMemo(()=>n===false?false:n?mn(a,r,n):r===false?false:r?mn(a,r):a.closable?a:false,[n,r,a]);return P__default.useMemo(()=>{if(l===false)return [false,null,i];let{closeIconRender:s}=a,{closeIcon:c}=l,p=c;if(p!=null){s&&(p=s(c));let m=il(l,true);Object.keys(m).length&&(p=P__default.isValidElement(p)?P__default.cloneElement(p,m):P__default.createElement("span",{...m},p));}return [true,p,i]},[l,a])}var dn=P__default.createContext(void 0);process.env.NODE_ENV!=="production"&&(dn.displayName="zIndexContext");var Uo=dn;var ie=100,cl=10,pl=ie*cl,ml=pl+ie,fn={Modal:ie,Drawer:ie,Popover:ie,Popconfirm:ie,Tooltip:ie,Tour:ie,FloatButton:ie},dl={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function fl(e){return e in fn}var gn=(e,o)=>{let[,t]=H(),n=P__default.useContext(Uo),r=fl(e),i;if(o!==void 0)i=[o,o];else {let a=n??0;r?a+=(n?0:t.zIndexPopupBase)+fn[e]:a+=dl[e],i=[n===void 0?o:a,a];}if(process.env.NODE_ENV!=="production"){let a=k(e),l=t.zIndexPopupBase+ml,s=i[0]||0;a(o!==void 0||s<=l,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.");}return i};var Ft=()=>({height:0,opacity:0}),un=e=>{let{scrollHeight:o}=e;return {height:o,opacity:1}},gl=e=>({height:e?e.offsetHeight:0}),Dt=(e,o)=>o?.deadline===true||o.propertyName==="height",ul=(e=fe)=>({motionName:`${e}-motion-collapse`,onAppearStart:Ft,onEnterStart:Ft,onAppearActive:un,onEnterActive:un,onLeaveStart:gl,onLeaveActive:Ft,onAppearEnd:Dt,onEnterEnd:Dt,onLeaveEnd:Dt,motionDeadline:500});var Gt=(e,o,t)=>t!==void 0?t:`${e}-${o}`;var Cn=ul;var yn=()=>window.document.documentElement;var Cl=e=>{let[,,,,o]=H();return o?`${e}-css-var`:""},Sn=Cl;var yl=e=>{let{prefixCls:o,className:t,style:n,size:r,shape:i}=e,a=nt({[`${o}-lg`]:r==="large",[`${o}-sm`]:r==="small"}),l=nt({[`${o}-circle`]:i==="circle",[`${o}-square`]:i==="square",[`${o}-round`]:i==="round"}),s=P.useMemo(()=>typeof r=="number"?{width:r,height:r,lineHeight:`${r}px`}:{},[r]);return P.createElement("span",{className:nt(o,a,l,t),style:{...s,...n}})},Ce=yl;var bl=new Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Ko=e=>({height:e,lineHeight:unit(e)}),Ae=e=>({width:e,...Ko(e)}),hl=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:bl,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),jt=(e,o)=>({width:o(e).mul(5).equal(),minWidth:o(e).mul(5).equal(),...Ko(e)}),Tl=e=>{let{skeletonAvatarCls:o,gradientFromColor:t,controlHeight:n,controlHeightLG:r,controlHeightSM:i}=e;return {[o]:{display:"inline-block",verticalAlign:"top",background:t,...Ae(n)},[`${o}${o}-circle`]:{borderRadius:"50%"},[`${o}${o}-lg`]:{...Ae(r)},[`${o}${o}-sm`]:{...Ae(i)}}},Pl=e=>{let{controlHeight:o,borderRadiusSM:t,skeletonInputCls:n,controlHeightLG:r,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return {[n]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,...jt(o,l)},[`${n}-lg`]:{...jt(r,l)},[`${n}-sm`]:{...jt(i,l)}}},xn=e=>({width:e,...Ko(e)}),vl=e=>{let{skeletonImageCls:o,imageSizeBase:t,gradientFromColor:n,borderRadiusSM:r,calc:i}=e;return {[o]:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:n,borderRadius:r,...xn(i(t).mul(2).equal()),[`${o}-path`]:{fill:"#bfbfbf"},[`${o}-svg`]:{...xn(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%"}}},Vt=(e,o,t)=>{let{skeletonButtonCls:n}=e;return {[`${t}${n}-circle`]:{width:o,minWidth:o,borderRadius:"50%"},[`${t}${n}-round`]:{borderRadius:o}}},Ut=(e,o)=>({width:o(e).mul(2).equal(),minWidth:o(e).mul(2).equal(),...Ko(e)}),Rl=e=>{let{borderRadiusSM:o,skeletonButtonCls:t,controlHeight:n,controlHeightLG:r,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return {[t]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:o,width:l(n).mul(2).equal(),minWidth:l(n).mul(2).equal(),...Ut(n,l)},...Vt(e,n,t),[`${t}-lg`]:{...Ut(r,l)},...Vt(e,r,`${t}-lg`),[`${t}-sm`]:{...Ut(i,l)},...Vt(e,i,`${t}-sm`)}},$l=e=>{let{componentCls:o,skeletonAvatarCls:t,skeletonTitleCls:n,skeletonParagraphCls:r,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:s,controlHeightLG:c,controlHeightSM:p,gradientFromColor:m,padding:d,marginSM:g,borderRadius:C,titleHeight:f,blockRadius:b,paragraphLiHeight:h,controlHeightXS:M,paragraphMarginTop:v}=e;return {[o]:{display:"table",width:"100%",[`${o}-header`]:{display:"table-cell",paddingInlineEnd:d,verticalAlign:"top",[t]:{display:"inline-block",verticalAlign:"top",background:m,...Ae(s)},[`${t}-circle`]:{borderRadius:"50%"},[`${t}-lg`]:{...Ae(c)},[`${t}-sm`]:{...Ae(p)}},[`${o}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[n]:{width:"100%",height:f,background:m,borderRadius:b,[`+ ${r}`]:{marginBlockStart:p}},[r]:{padding:0,"> li":{width:"100%",height:h,listStyle:"none",background:m,borderRadius:b,"+ li":{marginBlockStart:M}}},[`${r}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${o}-content`]:{[`${n}, ${r} > li`]:{borderRadius:C}}},[`${o}-with-avatar ${o}-content`]:{[n]:{marginBlockStart:g,[`+ ${r}`]:{marginBlockStart:v}}},[`${o}${o}-element`]:{display:"inline-block",width:"auto",...Rl(e),...Tl(e),...Pl(e),...vl(e)},[`${o}${o}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${o}${o}-active`]:{[`
|
|
41
|
+
${n},
|
|
42
|
+
${r} > li,
|
|
43
|
+
${t},
|
|
44
|
+
${i},
|
|
45
|
+
${a},
|
|
46
|
+
${l}
|
|
47
|
+
`]:{...hl(e)}}}},kl=e=>{let{colorFillContent:o,colorFill:t}=e,n=o,r=t;return {color:n,colorGradientEnd:r,gradientFromColor:n,gradientToColor:r,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},U=Z("Skeleton",e=>{let{componentCls:o,calc:t}=e,n=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 [$l(n)]},kl,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});var Bl=e=>{let{prefixCls:o,className:t,rootClassName:n,active:r,shape:i="circle",size:a="default"}=e,{getPrefixCls:l}=P.useContext(u),s=l("skeleton",o),[c,p,m]=U(s),d=xi(e,["prefixCls","className"]),g=nt(s,`${s}-element`,{[`${s}-active`]:r},t,n,p,m);return c(P.createElement("div",{className:g},P.createElement(Ce,{prefixCls:`${s}-avatar`,shape:i,size:a,...d})))},bn=Bl;var Ll=e=>{let{prefixCls:o,className:t,rootClassName:n,active:r,block:i=false,size:a="default"}=e,{getPrefixCls:l}=P.useContext(u),s=l("skeleton",o),[c,p,m]=U(s),d=xi(e,["prefixCls"]),g=nt(s,`${s}-element`,{[`${s}-active`]:r,[`${s}-block`]:i},t,n,p,m);return c(P.createElement("div",{className:g},P.createElement(Ce,{prefixCls:`${s}-button`,size:a,...d})))},hn=Ll;var zl="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",Nl=e=>{let{prefixCls:o,className:t,rootClassName:n,style:r,active:i}=e,{getPrefixCls:a}=P.useContext(u),l=a("skeleton",o),[s,c,p]=U(l),m=nt(l,`${l}-element`,{[`${l}-active`]:i},t,n,c,p);return s(P.createElement("div",{className:m},P.createElement("div",{className:nt(`${l}-image`,t),style:r},P.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},P.createElement("title",null,"Image placeholder"),P.createElement("path",{d:zl,className:`${l}-image-path`})))))},Pn=Nl;var Al=e=>{let{prefixCls:o,className:t,rootClassName:n,active:r,block:i,size:a="default"}=e,{getPrefixCls:l}=P.useContext(u),s=l("skeleton",o),[c,p,m]=U(s),d=xi(e,["prefixCls"]),g=nt(s,`${s}-element`,{[`${s}-active`]:r,[`${s}-block`]:i},t,n,p,m);return c(P.createElement("div",{className:g},P.createElement(Ce,{prefixCls:`${s}-input`,size:a,...d})))},vn=Al;var Fl=e=>{let{prefixCls:o,className:t,rootClassName:n,style:r,active:i,children:a}=e,{getPrefixCls:l}=P.useContext(u),s=l("skeleton",o),[c,p,m]=U(s),d=nt(s,`${s}-element`,{[`${s}-active`]:i},p,t,n,m);return c(P.createElement("div",{className:d},P.createElement("div",{className:nt(`${s}-image`,t),style:r},a)))},$n=Fl;var Gl=(e,o)=>{let{width:t,rows:n=2}=o;if(Array.isArray(t))return t[e];if(n-1===e)return t},Wl=e=>{let{prefixCls:o,className:t,style:n,rows:r}=e,i=[...new Array(r)].map((a,l)=>P.createElement("li",{key:l,style:{width:Gl(l,e)}}));return P.createElement("ul",{className:nt(o,t),style:n},i)},kn=Wl;var Vl=({prefixCls:e,className:o,width:t,style:n})=>P.createElement("h3",{className:nt(e,o),style:{width:t,...n}}),Mn=Vl;function Kt(e){return e&&typeof e=="object"?e:{}}function Xl(e,o){return e&&!o?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Kl(e,o){return !e&&o?{width:"38%"}:e&&o?{width:"50%"}:{}}function _l(e,o){let t={};return (!e||!o)&&(t.width="61%"),!e&&o?t.rows=3:t.rows=2,t}var Pe=e=>{let{prefixCls:o,loading:t,className:n,rootClassName:r,style:i,children:a,avatar:l=false,title:s=true,paragraph:c=true,active:p,round:m}=e,{getPrefixCls:d,direction:g,skeleton:C}=P.useContext(u),f=d("skeleton",o),[b,h,M]=U(f);if(t||!("loading"in e)){let v=!!l,B=!!s,w=!!c,R;if(v){let x={prefixCls:`${f}-avatar`,...Xl(B,w),...Kt(l)};R=P.createElement("div",{className:`${f}-header`},P.createElement(Ce,{...x}));}let O;if(B||w){let x;if(B){let y={prefixCls:`${f}-title`,...Kl(v,w),...Kt(s)};x=P.createElement(Mn,{...y});}let E;if(w){let y={prefixCls:`${f}-paragraph`,..._l(v,B),...Kt(c)};E=P.createElement(kn,{...y});}O=P.createElement("div",{className:`${f}-content`},x,E);}let S=nt(f,{[`${f}-with-avatar`]:v,[`${f}-active`]:p,[`${f}-rtl`]:g==="rtl",[`${f}-round`]:m},C?.className,n,r,h,M);return b(P.createElement("div",{className:S,style:{...C?.style,...i}},R,O))}return a??null};Pe.Button=hn;Pe.Avatar=bn;Pe.Input=vn;Pe.Image=Pn;Pe.Node=$n;process.env.NODE_ENV!=="production"&&(Pe.displayName="Skeleton");var Bn=Pe;var wn=Bn;function En(){}var Zl=P.createContext({add:En,remove:En});function Ln(e){let o=P.useContext(Zl),t=P.useRef(null);return ql(r=>{if(r){let i=e?r.querySelector(e):r;o.add(i),t.current=i;}else o.remove(t.current);})}function zn(e){return e&&P__default.isValidElement(e)&&e.type===P__default.Fragment}var Ql=(e,o,t)=>P__default.isValidElement(e)?P__default.cloneElement(e,typeof t=="function"?t(e.props||{}):t):o;function ve(e,o){return Ql(e,e,o)}var Yl=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(",")}}}}},Nn=Et("Wave",e=>[Yl(e)]);var qo=`${fe}-wave-target`;var ts=(e,o)=>{if(process.env.NODE_ENV!=="production"){let t=parseInt(P.version.split(".")[0],10),n=Object.keys(Jl);de(t<19||n.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)},rs=ts;function On(){return rs}function _t(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 An(e){let{borderTopColor:o,borderColor:t,backgroundColor:n}=getComputedStyle(e);return _t(o)?o:_t(t)?t:_t(n)?n:null}function qt(e){return Number.isNaN(e)?0:e}var ls=e=>{let{className:o,target:t,component:n,registerUnmount:r}=e,i=P.useRef(null),a=P.useRef(null);P.useEffect(()=>{a.current=r();},[]);let[l,s]=P.useState(null),[c,p]=P.useState([]),[m,d]=P.useState(0),[g,C]=P.useState(0),[f,b]=P.useState(0),[h,M]=P.useState(0),[v,B]=P.useState(false),w={left:m,top:g,width:f,height:h,borderRadius:c.map(S=>`${S}px`).join(" ")};l&&(w["--wave-color"]=l);function R(){let S=getComputedStyle(t);s(An(t));let x=S.position==="static",{borderLeftWidth:E,borderTopWidth:y}=S;d(x?t.offsetLeft:qt(-parseFloat(E))),C(x?t.offsetTop:qt(-parseFloat(y))),b(t.offsetWidth),M(t.offsetHeight);let{borderTopLeftRadius:W,borderTopRightRadius:_,borderBottomLeftRadius:ee,borderBottomRightRadius:Q}=S;p([W,_,Q,ee].map(j=>qt(parseFloat(j))));}if(P.useEffect(()=>{if(t){let S=Fn(()=>{R(),B(true);}),x;return typeof ResizeObserver<"u"&&(x=new ResizeObserver(R),x.observe(t)),()=>{Fn.cancel(S),x?.disconnect();}}},[]),!v)return null;let O=(n==="Checkbox"||n==="Radio")&&t?.classList.contains(qo);return P.createElement(is,{visible:true,motionAppear:true,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(S,x)=>{if(x.deadline||x.propertyName==="opacity"){let E=i.current?.parentElement;a.current?.().then(()=>{E?.remove();});}return false}},({className:S},x)=>P.createElement("div",{ref:composeRef(i,x),className:nt(o,S,{"wave-quick":O}),style:w}))},ss=(e,o)=>{let{component:t}=o;if(t==="Checkbox"&&!e.querySelector("input")?.checked)return;let n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",e?.insertBefore(n,e?.firstChild);let r=On(),i=null;function a(){return i}i=r(P.createElement(ls,{...o,target:e,registerUnmount:a}),n);},Dn=ss;var ps=(e,o,t)=>{let{wave:n}=P.useContext(u),[,r,i]=H(),a=ql(c=>{let p=e.current;if(n?.disabled||!p)return;let m=p.querySelector(`.${qo}`)||p,{showEffect:d}=n||{};(d||Dn)(m,{className:o,token:r,component:t,event:c,hashId:i});}),l=P.useRef(null);return c=>{Fn.cancel(l.current),l.current=Fn(()=>{a(c);});}},Wn=ps;var Vn=e=>{let{children:o,disabled:t,component:n}=e,{getPrefixCls:r}=useContext(u),i=useRef(null),a=r("wave"),[,l]=Nn(a),s=Wn(i,nt(a,l),n);if(P__default.useEffect(()=>{let p=i.current;if(!p||p.nodeType!==1||t)return;let m=d=>{!gs(d.target)||!p.getAttribute||p.getAttribute("disabled")||p.disabled||p.className.includes("disabled")||p.className.includes("-leave")||s(d);};return p.addEventListener("click",m,true),()=>{p.removeEventListener("click",m,true);}},[t]),!P__default.isValidElement(o))return o??null;let c=supportRef(o)?composeRef(getNodeRef(o),i):i;return ve(o,{ref:c})};process.env.NODE_ENV!=="production"&&(Vn.displayName="Wave");var Un=Vn;var Zt=P.createContext(void 0),xs=e=>{let{getPrefixCls:o,direction:t}=P.useContext(u),{prefixCls:n,size:r,className:i,...a}=e,l=o("btn-group",n),[,,s]=H(),c="";switch(r){case "large":c="lg";break;case "small":c="sm";break;}process.env.NODE_ENV!=="production"&&k("Button.Group")(!r||["large","small","middle"].includes(r),"usage","Invalid prop `size`.");let p=nt(l,{[`${l}-${c}`]:c,[`${l}-rtl`]:t==="rtl"},i,s);return P.createElement(Zt.Provider,{value:r},P.createElement("div",{...a,className:p}))},Xn=xs;var Kn=/^[\u4E00-\u9FA5]{2}$/,Qo=Kn.test.bind(Kn);function qn(e){return e==="danger"?{danger:true}:{type:e}}function _n(e){return typeof e=="string"}function po(e){return e==="text"||e==="link"}function bs(e,o){if(e==null)return;let t=o?" ":"";return typeof e!="string"&&typeof e!="number"&&_n(e.type)&&Qo(e.props.children)?ve(e,{children:e.props.children.split("").join(t)}):_n(e)?Qo(e)?P__default.createElement("span",null,e.split("").join(t)):P__default.createElement("span",null,e):zn(e)?P__default.createElement("span",null,e):e}function Zn(e,o){let t=false,n=[];return P__default.Children.forEach(e,r=>{let i=typeof r,a=i==="string"||i==="number";if(t&&a){let l=n.length-1,s=n[l];n[l]=`${s}${r}`;}else n.push(r);t=a;}),P__default.Children.map(n,r=>bs(r,o))}var vs=forwardRef((e,o)=>{let{className:t,style:n,children:r,prefixCls:i}=e,a=nt(`${i}-icon`,t);return P__default.createElement("span",{ref:o,className:a,style:n},r)}),Yo=vs;var Qn=forwardRef((e,o)=>{let{prefixCls:t,className:n,style:r,iconClassName:i}=e,a=nt(`${t}-loading-icon`,n);return P__default.createElement(Yo,{prefixCls:t,className:a,style:r,ref:o},P__default.createElement($s,{className:i}))}),Qt=()=>({width:0,opacity:0,transform:"scale(0)"}),Yt=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Is=e=>{let{prefixCls:o,loading:t,existIcon:n,className:r,style:i,mount:a}=e,l=!!t;return n?P__default.createElement(Qn,{prefixCls:o,className:r,style:i}):P__default.createElement(is,{visible:l,motionName:`${o}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:true,onAppearStart:Qt,onAppearActive:Yt,onEnterStart:Qt,onEnterActive:Yt,onLeaveStart:Yt,onLeaveActive:Qt},({className:s,style:c},p)=>{let m={...i,...c};return P__default.createElement(Qn,{prefixCls:o,className:nt(r,s),style:m,ref:p})})},Jn=Is;var ei=(e,o)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:o}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:o}}}}}),Ms=e=>{let{componentCls:o,fontSize:t,lineWidth:n,groupBorderColor:r,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(n).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}},ei(`${o}-primary`,r),ei(`${o}-danger`,i)]}},oi=Ms;var Bs=(e,o)=>e?.replace(/[^\w/]/g,"").slice(0,o?8:6)||"",ws=(e,o)=>e?Bs(e,o):"",fo=class e{metaColor;colors;cleared=false;constructor(o){if(o instanceof e){this.metaColor=o.metaColor.clone(),this.colors=o.colors?.map(n=>({color:new e(n.color),percent:n.percent})),this.cleared=o.cleared;return}let t=Array.isArray(o);t&&o.length?(this.colors=o.map(({color:n,percent:r})=>({color:new e(n),percent:r})),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 ws(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(n=>`${n.color.toRgbString()} ${n.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,n)=>{let r=o.colors[n];return t.percent===r.percent&&t.color.equals(r.color)}):this.toHexString()===o.toHexString()}};var zs=P.forwardRef((e,o)=>{process.env.NODE_ENV!=="production"&&k("Collapse.Panel").deprecated(!("disabled"in e),"disabled",'collapsible="disabled"');let{getPrefixCls:t}=P.useContext(u),{prefixCls:n,className:r,showArrow:i=true}=e,a=t("collapse",n),l=nt({[`${a}-no-arrow`]:!i},r);return P.createElement(Ls.Panel,{ref:o,...e,prefixCls:a,className:l})}),ri=zs;var Ns=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`}}}),Jt=Ns;var Hs=e=>({animationDuration:e,animationFillMode:"both"}),Os=e=>({animationDuration:e,animationFillMode:"both"}),Ge=(e,o,t,n,r=false)=>{let i=r?"&":"";return {[`
|
|
50
|
+
${i}${e}-enter,
|
|
51
|
+
${i}${e}-appear
|
|
52
|
+
`]:{...Hs(n),animationPlayState:"paused"},[`${i}${e}-leave`]:{...Os(n),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 ii=new Keyframes("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),ai=new Keyframes("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),er=(e,o=false)=>{let{antCls:t}=e,n=`${t}-fade`,r=o?"&":"";return [Ge(n,ii,ai,e.motionDurationMid,o),{[`
|
|
56
|
+
${r}${n}-enter,
|
|
57
|
+
${r}${n}-appear
|
|
58
|
+
`]:{opacity:0,animationTimingFunction:"linear"},[`${r}${n}-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 li=new Keyframes("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),si=new Keyframes("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),or=new Keyframes("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),tr=new Keyframes("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),ci=new Keyframes("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),pi=new Keyframes("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),mi=new Keyframes("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),di=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%"}}),gi=new Keyframes("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),ui=new Keyframes("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Ci=new Keyframes("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),ec={zoom:{inKeyframes:li,outKeyframes:si},"zoom-big":{inKeyframes:or,outKeyframes:tr},"zoom-big-fast":{inKeyframes:or,outKeyframes:tr},"zoom-left":{inKeyframes:mi,outKeyframes:di},"zoom-right":{inKeyframes:fi,outKeyframes:gi},"zoom-up":{inKeyframes:ci,outKeyframes:pi},"zoom-down":{inKeyframes:ui,outKeyframes:Ci}},rr=(e,o)=>{let{antCls:t}=e,n=`${t}-${o}`,{inKeyframes:r,outKeyframes:i}=ec[o];return [Ge(n,r,i,e.motionDurationMid),{[`
|
|
59
|
+
${n}-enter,
|
|
60
|
+
${n}-appear
|
|
61
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var oc=e=>{let{componentCls:o,contentBg:t,padding:n,headerBg:r,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:s,lineWidth:c,lineType:p,colorBorder:m,colorText:d,colorTextHeading:g,colorTextDisabled:C,fontSizeLG:f,lineHeight:b,lineHeightLG:h,marginSM:M,paddingSM:v,paddingLG:B,paddingXS:w,motionDurationSlow:R,fontSizeIcon:O,contentPadding:S,fontHeight:x,fontHeightLG:E}=e,y=`${unit(c)} ${p} ${m}`;return {[o]:{...Do(e),backgroundColor:r,border:y,borderRadius:s,"&-rtl":{direction:"rtl"},[`& > ${o}-item`]:{borderBottom:y,"&:last-child":{[`
|
|
62
|
+
&,
|
|
63
|
+
& > ${o}-header`]:{borderRadius:`0 0 ${unit(s)} ${unit(s)}`}},[`> ${o}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:g,lineHeight:b,cursor:"pointer",transition:`all ${R}, visibility 0s`,[`> ${o}-header-text`]:{flex:"auto"},[`${o}-expand-icon`]:{height:x,display:"flex",alignItems:"center",paddingInlineEnd:M},[`${o}-arrow`]:{...ro(),fontSize:O,transition:`transform ${R}`,svg:{transition:`transform ${R}`}},[`${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:y,[`& > ${o}-content-box`]:{padding:S},"&-hidden":{display:"none"}},"&-small":{[`> ${o}-item`]:{[`> ${o}-header`]:{padding:a,paddingInlineStart:w,[`> ${o}-expand-icon`]:{marginInlineStart:e.calc(v).sub(w).equal()}},[`> ${o}-content > ${o}-content-box`]:{padding:v}}},"&-large":{[`> ${o}-item`]:{fontSize:f,lineHeight:h,[`> ${o}-header`]:{padding:l,paddingInlineStart:n,[`> ${o}-expand-icon`]:{height:E,marginInlineStart:e.calc(B).sub(n).equal()}},[`> ${o}-content > ${o}-content-box`]:{padding:B}}},[`${o}-item:last-child`]:{borderBottom:0,[`> ${o}-content`]:{borderRadius:`0 0 ${unit(s)} ${unit(s)}`}},[`& ${o}-item-disabled > ${o}-header`]:{"\n &,\n & > .arrow\n ":{color:C,cursor:"not-allowed"}},[`&${o}-icon-position-end`]:{[`& > ${o}-item`]:{[`> ${o}-header`]:{[`${o}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:M}}}}}}},tc=e=>{let{componentCls:o}=e,t=`> ${o}-item > ${o}-header ${o}-arrow`;return {[`${o}-rtl`]:{[t]:{transform:"rotate(180deg)"}}}},rc=e=>{let{componentCls:o,headerBg:t,paddingXXS:n,colorBorder:r}=e;return {[`${o}-borderless`]:{backgroundColor:t,border:0,[`> ${o}-item`]:{borderBottom:`1px solid ${r}`},[`
|
|
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:n}}}},nc=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}}}}}},ic=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),yi=Z("Collapse",e=>{let o=mergeToken(e,{collapseHeaderPaddingSM:`${unit(e.paddingXS)} ${unit(e.paddingSM)}`,collapseHeaderPaddingLG:`${unit(e.padding)} ${unit(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return [oc(o),rc(o),nc(o),tc(o),Jt(o)]},ic);var bi=P.forwardRef((e,o)=>{let{getPrefixCls:t,direction:n,collapse:r}=P.useContext(u),{prefixCls:i,className:a,rootClassName:l,style:s,bordered:c=true,ghost:p,size:m,expandIconPosition:d="start",children:g,expandIcon:C}=e,f=no(y=>m??y??"middle"),b=t("collapse",i),h=t(),[M,v,B]=yi(b);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 w=P.useMemo(()=>d==="left"?"start":d==="right"?"end":d,[d]),R=C??r?.expandIcon,O=P.useCallback((y={})=>{let W=typeof R=="function"?R(y):P.createElement(ac,{rotate:y.isActive?90:void 0,"aria-label":y.isActive?"expanded":"collapsed"});return ve(W,()=>({className:nt(W?.props?.className,`${b}-arrow`)}))},[R,b]),S=nt(`${b}-icon-position-${w}`,{[`${b}-borderless`]:!c,[`${b}-rtl`]:n==="rtl",[`${b}-ghost`]:!!p,[`${b}-${f}`]:f!=="middle"},r?.className,a,l,v,B),x={...Cn(h),motionAppear:false,leavedClassName:`${b}-content-hidden`},E=P.useMemo(()=>g?sc(g).map((y,W)=>{let _=y.props;if(_?.disabled){let ee=y.key??String(W),Q={...xi(y.props,["disabled"]),key:ee,collapsible:_.collapsible??"disabled"};return ve(y,Q)}return y}):null,[g]);return M(P.createElement(Ls,{ref:o,openMotion:x,...xi(e,["rootClassName"]),expandIcon:O,prefixCls:b,className:S,style:{...r?.style,...s}},E))});process.env.NODE_ENV!=="production"&&(bi.displayName="Collapse");Object.assign(bi,{Panel:ri});var hi=(e,o)=>{let{r:t,g:n,b:r,a:i}=e.toRgb(),a=new Color(e.toRgbString()).onBackground(o).toHsv();return i<=.5?a.v>.5:t*.299+n*.587+r*.114>192};var Jo=e=>{let{paddingInline:o,onlyIconSize:t}=e;return mergeToken(e,{buttonPaddingHorizontal:o,buttonPaddingVertical:0,buttonIconOnlyFontSize:t})},et=e=>{let o=e.contentFontSize??e.fontSize,t=e.contentFontSizeSM??e.fontSize,n=e.contentFontSizeLG??e.fontSizeLG,r=e.contentLineHeight??Le(o),i=e.contentLineHeightSM??Le(t),a=e.contentLineHeightLG??Le(n),l=hi(new fo(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:l,contentFontSize:o,contentFontSizeSM:t,contentFontSizeLG:n,contentLineHeight:r,contentLineHeightSM:i,contentLineHeightLG:a,paddingBlock:Math.max((e.controlHeight-o*r)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-t*i)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-n*a)/2-e.lineWidth,0)}};var mc=e=>{let{componentCls:o,iconCls:t,fontWeight:n,opacityLoading:r,motionDurationSlow:i,motionEaseInOut:a,marginXS:l,calc:s}=e;return {[o]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:n,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`]:ro(),"> a":{color:"currentColor"},"&:not(:disabled)":Go(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:r,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:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:s(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${o}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:s(l).mul(-1).equal()}}}}}},Ti=(e,o,t)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":o,"&:active":t}}),dc=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),fc=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),gc=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),ir=(e,o,t,n,r,i,a,l)=>({[`&${e}-background-ghost`]:{color:t||void 0,background:o,borderColor:n||void 0,boxShadow:"none",...Ti(e,{background:o,...a},{background:o,...l}),"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:i||void 0}}}),uc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{...gc(e)}}),Cc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),ot=(e,o,t,n)=>({...(n&&["link","text"].includes(n)?Cc:uc)(e),...Ti(e.componentCls,o,t)}),ar=(e,o,t,n,r)=>({[`&${e.componentCls}-variant-solid`]:{color:o,background:t,...ot(e,n,r)}}),lr=(e,o,t,n,r)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:{borderColor:o,background:t,...ot(e,n,r)}}),sr=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),cr=(e,o,t,n)=>({[`&${e.componentCls}-variant-filled`]:{boxShadow:"none",background:o,...ot(e,t,n)}}),We=(e,o,t,n,r)=>({[`&${e.componentCls}-variant-${t}`]:{color:o,boxShadow:"none",...ot(e,n,r,t)}}),yc=e=>({color:e.defaultColor,boxShadow:e.defaultShadow,...ar(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive}),...sr(e),...cr(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill}),...We(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive}),...ir(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)}),Sc=e=>({color:e.colorPrimary,boxShadow:e.primaryShadow,...lr(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer}),...sr(e),...cr(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder}),...We(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder}),...ir(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})}),xc=e=>({color:e.colorError,boxShadow:e.dangerShadow,...ar(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive}),...lr(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive}),...sr(e),...cr(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive}),...We(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}),...We(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive}),...ir(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})}),bc=e=>{let{componentCls:o}=e;return {[`${o}-color-default`]:yc(e),[`${o}-color-primary`]:Sc(e),[`${o}-color-dangerous`]:xc(e)}},hc=e=>({...lr(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg}),...We(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive}),...ar(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor}),...We(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})}),pr=(e,o="")=>{let{componentCls:t,controlHeight:n,fontSize:r,borderRadius:i,buttonPaddingHorizontal:a,iconCls:l,buttonPaddingVertical:s,buttonIconOnlyFontSize:c}=e;return [{[o]:{fontSize:r,height:n,padding:`${unit(s)} ${unit(a)}`,borderRadius:i,[`&${t}-icon-only`]:{width:n,[l]:{fontSize:c,verticalAlign:"calc(-0.125em - 1px)"}}}},{[`${t}${t}-circle${o}`]:dc(e)},{[`${t}${t}-round${o}`]:fc(e)}]},Tc=e=>{let o=mergeToken(e,{fontSize:e.contentFontSize});return pr(o,e.componentCls)},Pc=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 pr(o,`${e.componentCls}-sm`)},vc=e=>{let o=mergeToken(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return pr(o,`${e.componentCls}-lg`)},Rc=e=>{let{componentCls:o}=e;return {[o]:{[`&${o}-block`]:{width:"100%"}}}},Pi=Z("Button",e=>{let o=Jo(e);return [mc(o),Tc(o),Pc(o),vc(o),Rc(o),bc(o),hc(o),oi(o)]},et,{unitless:{fontWeight:true,contentLineHeight:true,contentLineHeightSM:true,contentLineHeightLG:true}});function $c(e,o,t){let{focusElCls:n,focus:r,borderElCls:i}=t,a=i?"> *":"",l=["hover",r?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${a}`).join(",");return {[`&-item:not(${o}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{[l]:{zIndex:2},...n?{[`&${n}`]:{zIndex:2}}:{},[`&[disabled] ${a}`]:{zIndex:0}}}}function kc(e,o,t){let{borderElCls:n}=t,r=n?`> ${n}`:"";return {[`&-item:not(${o}-first-item):not(${o}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${o}-last-item)${o}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${o}-first-item)${o}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function vi(e,o={focus:true}){let{componentCls:t}=e,n=`${t}-compact`;return {[n]:{...$c(e,n,o),...kc(t,n,o)}}}function Ic(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 Mc(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 Ri(e){let o=`${e.componentCls}-compact-vertical`;return {[o]:{...Ic(e,o),...Mc(e.componentCls,o)}}}var Bc=e=>{let{componentCls:o,colorPrimaryHover:t,lineWidth:n,calc:r}=e,i=r(n).mul(-1).equal(),a=l=>({[`${o}-compact${l?"-vertical":""}-item${o}-primary:not([disabled])`]:{"& + &::before":{position:"absolute",top:l?i:0,insetInlineStart:l?0:i,backgroundColor:t,content:'""',width:l?"100%":n,height:l?n:"100%"}}});return {...a(),...a(true)}},$i=Lt(["Button","compact"],e=>{let o=Jo(e);return [vi(o),Ri(o),Bc(o)]},et);function zc(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 Nc={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},Hc=P__default.forwardRef((e,o)=>{let{loading:t=false,prefixCls:n,color:r,variant:i,type:a,danger:l=false,shape:s="default",size:c,styles:p,disabled:m,className:d,rootClassName:g,children:C,icon:f,iconPosition:b="start",ghost:h=false,block:M=false,htmlType:v="button",classNames:B,style:w={},autoInsertSpace:R,autoFocus:O,...S}=e,x=a||"default",[E,y]=useMemo(()=>{if(r&&i)return [r,i];let $=Nc[x]||[];return l?["danger",$[1]]:$},[a,r,i,l]),_=E==="danger"?"dangerous":E,{getPrefixCls:ee,direction:Q,button:j}=useContext(u),me=R??j?.autoInsertSpace??true,T=ee("btn",n),[$e,je,Ve]=Pi(T),q=useContext(Oo),A=m??q,Ue=useContext(Zt),be=useMemo(()=>zc(t),[t]),[Y,uo]=useState(be.loading),[Xe,Co]=useState(false),he=useRef(null),yo=useComposeRef(o,he),So=Children.count(C)===1&&!f&&!po(y),Ke=useRef(true);P__default.useEffect(()=>(Ke.current=false,()=>{Ke.current=true;}),[]),useEffect(()=>{let $=null;be.delay>0?$=setTimeout(()=>{$=null,uo(true);},be.delay):uo(be.loading);function pt(){$&&(clearTimeout($),$=null);}return pt},[be]),useEffect(()=>{if(!he.current||!me)return;let $=he.current.textContent||"";So&&Qo($)?Xe||Co(true):Xe&&Co(false);}),useEffect(()=>{O&&he.current&&he.current.focus();},[]);let xo=P__default.useCallback($=>{if(Y||A){$.preventDefault();return}e.onClick?.($);},[e.onClick,Y,A]);if(process.env.NODE_ENV!=="production"){let $=k("Button");$(!(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&&po(y)),"usage","`link` or `text` button can't be a `ghost` button.");}let{compactSize:it,compactItemClassnames:bo}=an(T,Q),at={large:"lg",small:"sm",middle:void 0},ho=no($=>c??it??Ue??$),To=ho?at[ho]??"":"",lt=Y?"loading":f,_e=xi(S,["navigate"]),Po=nt(T,je,Ve,{[`${T}-${s}`]:s!=="default"&&s,[`${T}-${x}`]:x,[`${T}-dangerous`]:l,[`${T}-color-${_}`]:_,[`${T}-variant-${y}`]:y,[`${T}-${To}`]:To,[`${T}-icon-only`]:!C&&C!==0&&!!lt,[`${T}-background-ghost`]:h&&!po(y),[`${T}-loading`]:Y,[`${T}-two-chinese-chars`]:Xe&&me&&!Y,[`${T}-block`]:M,[`${T}-rtl`]:Q==="rtl",[`${T}-icon-end`]:b==="end"},bo,d,g,j?.className),vo={...j?.style,...w},st=nt(B?.icon,j?.classNames?.icon),ct={...p?.icon||{},...j?.styles?.icon||{}},Ro=f&&!Y?P__default.createElement(Yo,{prefixCls:T,className:st,style:ct},f):P__default.createElement(Jn,{existIcon:!!f,prefixCls:T,loading:Y,mount:Ke.current}),$o=C||C===0?Zn(C,So&&me):null;if(_e.href!==void 0)return $e(P__default.createElement("a",{..._e,className:nt(Po,{[`${T}-disabled`]:A}),href:A?void 0:_e.href,style:vo,onClick:xo,ref:yo,tabIndex:A?-1:0},Ro,$o));let qe=P__default.createElement("button",{...S,type:v,className:Po,style:vo,onClick:xo,disabled:A,ref:yo},Ro,$o,bo&&P__default.createElement($i,{prefixCls:T}));return po(y)||(qe=P__default.createElement(Un,{component:"Button",disabled:Y},qe)),$e(qe)}),tt=Hc;tt.Group=Xn;tt.__ANT_BUTTON=true;process.env.NODE_ENV!=="production"&&(tt.displayName="Button");var Bi=tt;var rt=Bi;var go=P__default.createContext({}),{Provider:wi}=go;var Dc=()=>{let{cancelButtonProps:e,cancelTextLocale:o,onCancel:t}=useContext(go);return P__default.createElement(rt,{onClick:t,...e},o)},gr=Dc;var jc=()=>{let{confirmLoading:e,okButtonProps:o,okType:t,okTextLocale:n,onOk:r}=useContext(go);return P__default.createElement(rt,{...qn(t),loading:e,onClick:r,...o},n)},ur=jc;function Ei(e,o){return P__default.createElement("span",{className:`${e}-close-x`},o||P__default.createElement(nl,{className:`${e}-close-icon`}))}var Li=e=>{let{okText:o,okType:t="primary",cancelText:n,confirmLoading:r,onOk:i,onCancel:a,okButtonProps:l,cancelButtonProps:s,footer:c}=e,[p]=zo("Modal",kr()),m=o||p?.okText,d=n||p?.cancelText,g={confirmLoading:r,okButtonProps:l,cancelButtonProps:s,okTextLocale:m,cancelTextLocale:d,okType:t,onOk:i,onCancel:a},C=P__default.useMemo(()=>g,[...Object.values(g)]),f;return typeof c=="function"||typeof c>"u"?(f=P__default.createElement(P__default.Fragment,null,P__default.createElement(ur,null),P__default.createElement(gr,null)),typeof c=="function"&&(f=c(f,{OkBtn:ur,CancelBtn:gr})),f=P__default.createElement(wi,{value:C},f)):f=c,P__default.createElement(Ho,{disabled:false},f)};function zi(e){return {position:e,inset:0}}var Uc=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`]:{...zi("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${o}-hidden`]:{display:"none"}},[`${o}-wrap`]:{...zi("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${o}-root`]:er(e)}]},Xc=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]:{...Do(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},...Go(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,
|
|
67
|
+
${o}-body,
|
|
68
|
+
${o}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${o}-confirm-body`]:{marginBottom:"auto"}}}]},Kc=e=>{let{componentCls:o}=e;return {[`${o}-root`]:{[`${o}-wrap-rtl`]:{direction:"rtl",[`${o}-confirm-body`]:{direction:"rtl"}}}}},_c=e=>{let o=e.padding,t=e.fontSizeHeading5,n=e.lineHeightHeading5;return mergeToken(e,{modalHeaderHeight:e.calc(e.calc(n).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()})},qc=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}),Ni=Z("Modal",e=>{let o=_c(e);return [Xc(o),Kc(o),Uc(o),rr(o,"zoom")]},qc,{unitless:{titleLineHeight:true}});var Cr,Yc=e=>{Cr={x:e.pageX,y:e.pageY},setTimeout(()=>{Cr=null;},100);};yn()&&document.documentElement.addEventListener("click",Yc,true);var Jc=e=>{let{getPopupContainer:o,getPrefixCls:t,direction:n,modal:r}=P.useContext(u),i=q=>{let{onCancel:A}=e;A?.(q);},a=q=>{let{onOk:A}=e;A?.(q);};if(process.env.NODE_ENV!=="production"){let q=k("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(([A,Ue])=>{q.deprecated(!(A in e),A,Ue);});}let{prefixCls:l,className:s,rootClassName:c,open:p,wrapClassName:m,centered:d,getContainer:g,focusTriggerAfterClose:C=true,style:f,visible:b,width:h=520,footer:M,classNames:v,styles:B,children:w,loading:R,...O}=e,S=t("modal",l),x=t(),E=Sn(S),[y,W,_]=Ni(S,E),ee=nt(m,{[`${S}-centered`]:!!d,[`${S}-wrap-rtl`]:n==="rtl"}),Q=M!==null&&!R?P.createElement(Li,{...e,onOk:a,onCancel:i}):null,[j,me,T]=At(Ot(e),Ot(r),{closable:true,closeIcon:P.createElement(nl,{className:`${S}-close-icon`}),closeIconRender:q=>Ei(S,q)}),$e=Ln(`.${S}-content`),[je,Ve]=gn("Modal",O.zIndex);return y(P.createElement(cn,{form:true,space:true},P.createElement(Uo.Provider,{value:Ve},P.createElement(Qc,{width:h,...O,zIndex:je,getContainer:g===void 0?o:g,prefixCls:S,rootClassName:nt(W,c,_,E),footer:Q,visible:p??b,mousePosition:O.mousePosition??Cr,onClose:i,closable:j&&{disabled:T,closeIcon:me},closeIcon:me,focusTriggerAfterClose:C,transitionName:Gt(x,"zoom",e.transitionName),maskTransitionName:Gt(x,"fade",e.maskTransitionName),className:nt(W,s,r?.className),style:{...r?.style,...f},classNames:{...r?.classNames,...v,wrapper:nt(ee,v?.wrapper)},styles:{...r?.styles,...B},panelRef:$e},R?P.createElement(wn,{active:true,title:false,paragraph:{rows:4},className:`${S}-body-skeleton`}):w))))},xS=Jc;export{xS as default};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { PanelProps } from 'rc-dialog/lib/Dialog/Content/Panel';
|
|
3
|
+
import type { ModalFuncProps } from './interface';
|
|
4
|
+
export interface PurePanelProps extends Omit<PanelProps, 'prefixCls' | 'footer'>, Pick<ModalFuncProps, 'type' | 'footer'> {
|
|
5
|
+
prefixCls?: string;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: (props: PurePanelProps) => React.JSX.Element;
|
|
9
|
+
export default _default;
|