@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,41 @@
|
|
|
1
|
+
import*as g from'react';import g__default,{createContext,useContext}from'react';import {createTheme,unit,useCacheToken,Keyframes,useStyleRegister}from'@ant-design/cssinjs';import Sr from'@ant-design/icons/lib/components/Context';import Cr from'rc-util/lib/hooks/useMemo';import {merge}from'rc-util/lib/utils/set';import Rn,{resetWarned}from'rc-util/lib/warning';import'rc-pagination/lib/locale/en_US';import $n from'rc-picker/lib/locale/en_US';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';import Kn from'rc-util/lib/Dom/canUseDom';import {updateCSS}from'rc-util/lib/Dom/dynamicCSS';import yr from'rc-util/lib/isEqual';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import {Provider}from'rc-motion';import*as Rr from'react-dom';import {unmount,render}from'rc-util/lib/React/render';import _r from'@ant-design/icons/CheckCircleFilled';import Xr from'@ant-design/icons/CloseCircleFilled';import Ur from'@ant-design/icons/CloseOutlined';import Kr from'@ant-design/icons/ExclamationCircleFilled';import qr from'@ant-design/icons/InfoCircleFilled';import'@ant-design/icons/LoadingOutlined';import Re from'classnames';import {useNotification,NotificationProvider,Notice}from'rc-notification';var xo=g__default.createContext({});g__default.createContext({message:{},notification:{},modal:{}});function So(){}var $=null;function wn(){$=null,resetWarned();}var $e=So;process.env.NODE_ENV!=="production"&&($e=(e,o,t)=>{Rn(e,`[swiftcrab: ${o}] ${t}`),process.env.NODE_ENV==="test"&&wn();});var Ae=g.createContext({}),N=process.env.NODE_ENV!=="production"?e=>{let{strict:o}=g.useContext(Ae),t=(r,n,c)=>{if(!r)if(o===false&&n==="deprecated"){let i=$;$||($={}),$[e]=$[e]||[],$[e].includes(c||"")||$[e].push(c||""),i||console.warn("[swiftcrab] There exists deprecated usage in your code:",$);}else $e(r,e,c);};return t.deprecated=(r,n,c,i)=>{t(r,"deprecated",`\`${n}\` is deprecated. Please use \`${c}\` instead.${i?` ${i}`:""}`);},t}:()=>{let e=()=>{};return e.deprecated=So,e},F=$e;var bo=createContext(void 0);({lang:{...$n}});var v="${label} is not a valid ${type}",Hn={Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Form:{defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string: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}"}}}},O=Hn;({...O.Modal});var de=[],To=()=>de.reduce((e,o)=>({...e,...o}),O.Modal);function ho(e){if(e){let o={...e};return de.push(o),To(),()=>{de=de.filter(t=>t!==o),To();}}({...O.Modal});}var Fn=createContext(void 0),oe=Fn;var He="internalMark",vo=e=>{let{locale:o={},children:t,_ANT_MARK__:r}=e;process.env.NODE_ENV!=="production"&&N("LocaleProvider")(r===He,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),g.useEffect(()=>ho(o?.Modal),[o]);let n=g.useMemo(()=>({...o,exist:true}),[o]);return g.createElement(oe.Provider,{value:n},t)};process.env.NODE_ENV!=="production"&&(vo.displayName="LocaleProvider");var Mo=vo;var ze={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"},Dn={...ze,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},A=Dn;function De(e,{generateColorPalettes:o,generateNeutralColorPalettes:t}){let{colorSuccess:r,colorWarning:n,colorError:c,colorInfo:i,colorPrimary:s,colorBgBase:l,colorTextBase:a}=e,p=o(s),f=o(r),d=o(n),m=o(c),u=o(i),h=t(l,a),k=e.colorLink||e.colorInfo,C=o(k),b=new TinyColor(m[1]).mix(new TinyColor(m[3]),50).toHexString();return {...h,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:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:b,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[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:C[4],colorLink:C[6],colorLinkActive:C[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var On=e=>{let o=e,t=e,r=e,n=e;return e<6&&e>=5?o=e+1:e<16&&e>=6?o=e+2:e>=16&&(o=16),e<7&&e>=5?t=4:e<8&&e>=7?t=5:e<14&&e>=8?t=6:e<16&&e>=14?t=7:e>=16&&(t=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?n=4:e>=8&&(n=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:t,borderRadiusLG:o,borderRadiusOuter:n}},Ro=On;function Oe(e){let{motionUnit:o,motionBase:t,borderRadius:r,lineWidth:n}=e;return {motionDurationFast:`${(t+o).toFixed(1)}s`,motionDurationMid:`${(t+o*2).toFixed(1)}s`,motionDurationSlow:`${(t+o*3).toFixed(1)}s`,lineWidthBold:n+1,...Ro(r)}}var Bn=e=>{let{controlHeight:o}=e;return {controlHeightSM:o*.75,controlHeightXS:o*.5,controlHeightLG:o*1.25}},No=Bn;function wo(e){return (e+8)/e}function Be(e){let o=new Array(10).fill(null).map((t,r)=>{let n=r-1,c=e*Math.E**(n/5),i=r>1?Math.floor(c):Math.ceil(c);return Math.floor(i/2)*2});return o[1]=e,o.map(t=>({size:t,lineHeight:wo(t)}))}var Wn=e=>{let o=Be(e),t=o.map(p=>p.size),r=o.map(p=>p.lineHeight),n=t[1],c=t[0],i=t[2],s=r[1],l=r[0],a=r[2];return {fontSizeSM:c,fontSize:n,fontSizeLG:i,fontSizeXL:t[3],fontSizeHeading1:t[6],fontSizeHeading2:t[5],fontSizeHeading3:t[4],fontSizeHeading4:t[3],fontSizeHeading5:t[2],lineHeight:s,lineHeightLG:a,lineHeightSM:l,fontHeight:Math.round(s*n),fontHeightLG:Math.round(a*i),fontHeightSM:Math.round(l*c),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},Io=Wn;function We(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 M=(e,o)=>new TinyColor(e).setAlpha(o).toRgbString(),K=(e,o)=>new TinyColor(e).darken(o).toHexString();var $o=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]}},Ao=(e,o)=>{let t=e||"#fff",r=o||"#000";return {colorBgBase:t,colorTextBase:r,colorText:M(r,.88),colorTextSecondary:M(r,.65),colorTextTertiary:M(r,.45),colorTextQuaternary:M(r,.25),colorFill:M(r,.15),colorFillSecondary:M(r,.06),colorFillTertiary:M(r,.04),colorFillQuaternary:M(r,.02),colorBgSolid:M(r,1),colorBgSolidHover:M(r,.75),colorBgSolidActive:M(r,.95),colorBgLayout:K(t,4),colorBgContainer:K(t,0),colorBgElevated:K(t,0),colorBgSpotlight:M(r,.85),colorBgBlur:"transparent",colorBorder:K(t,15),colorBorderSecondary:K(t,6)}};function je(e){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let o=Object.keys(ze).map(t=>{let r=e[t]===presetPrimaryColors[t]?presetPalettes[t]:generate(e[t]);return new Array(10).fill(1).reduce((n,c,i)=>(n[`${t}-${i+1}`]=r[i],n[`${t}${i+1}`]=r[i],n),{})}).reduce((t,r)=>(t={...t,...r},t),{});return {...e,...o,...De(e,{generateColorPalettes:$o,generateNeutralColorPalettes:Ao}),...Io(e.fontSize),...We(e),...No(e),...Oe(e)}}var ge=createTheme(je),te={token:A,override:{override:A},hashed:true},ne=g__default.createContext(te);var ue="ant",q="anticon";var Xn=(e,o)=>o||(e?`${ue}-${e}`:ue),P=g.createContext({getPrefixCls:Xn,iconPrefixCls:q}),{Consumer:Un}=P;var Qn=`-ant-${Date.now()}-${Math.random()}`;function Zn(e,o){let t={},r=(i,s)=>{let l=i.clone();return l=s?.(l)||l,l.toRgbString()},n=(i,s)=>{let l=new TinyColor(i),a=generate(l.toRgbString());t[`${s}-color`]=r(l),t[`${s}-color-disabled`]=a[1],t[`${s}-color-hover`]=a[4],t[`${s}-color-active`]=a[6],t[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),t[`${s}-color-deprecated-bg`]=a[0],t[`${s}-color-deprecated-border`]=a[2];};if(o.primaryColor){n(o.primaryColor,"primary");let i=new TinyColor(o.primaryColor),s=generate(i.toRgbString());s.forEach((a,p)=>{t[`primary-${p+1}`]=a;}),t["primary-color-deprecated-l-35"]=r(i,a=>a.lighten(35)),t["primary-color-deprecated-l-20"]=r(i,a=>a.lighten(20)),t["primary-color-deprecated-t-20"]=r(i,a=>a.tint(20)),t["primary-color-deprecated-t-50"]=r(i,a=>a.tint(50)),t["primary-color-deprecated-f-12"]=r(i,a=>a.setAlpha(a.getAlpha()*.12));let l=new TinyColor(s[0]);t["primary-color-active-deprecated-f-30"]=r(l,a=>a.setAlpha(a.getAlpha()*.3)),t["primary-color-active-deprecated-d-02"]=r(l,a=>a.darken(2));}return o.successColor&&n(o.successColor,"success"),o.warningColor&&n(o.warningColor,"warning"),o.errorColor&&n(o.errorColor,"error"),o.infoColor&&n(o.infoColor,"info"),`
|
|
4
|
+
:root {
|
|
5
|
+
${Object.keys(t).map(i=>`--${e}-${i}: ${t[i]};`).join(`
|
|
6
|
+
`)}
|
|
7
|
+
}
|
|
8
|
+
`.trim()}function zo(e,o){let t=Zn(e,o);Kn()?updateCSS(t,`${Qn}-dynamic-theme`):F(false,"ConfigProvider","SSR do not support dynamic theme with css variables.");}var Xe=g.createContext(false),Fo=({children:e,disabled:o})=>{let t=g.useContext(Xe);return g.createElement(Xe.Provider,{value:o??t},e)},Do=Xe;var Ue=g.createContext(void 0),Oo=({children:e,size:o})=>{let t=g.useContext(Ue);return g.createElement(Ue.Provider,{value:o||t},e)},re=Ue;function Yn(){let e=useContext(Do),o=useContext(re);return {componentDisabled:e,componentSize:o}}var Wo=Yn;var Vo={version:"0.0.2"};var jo=Vo.version;function Ke(e){return e>=0&&e<=255}function er(e,o){let{r:t,g:r,b:n,a:c}=new TinyColor(e).toRgb();if(c<1)return e;let{r:i,g:s,b:l}=new TinyColor(o).toRgb();for(let a=.01;a<=1;a+=.01){let p=Math.round((t-i*(1-a))/a),f=Math.round((r-s*(1-a))/a),d=Math.round((n-l*(1-a))/a);if(Ke(p)&&Ke(f)&&Ke(d))return new TinyColor({r:p,g:f,b:d,a:Math.round(a*100)/100}).toRgbString()}return new TinyColor({r:t,g:r,b:n,a:1}).toRgbString()}var ie=er;function ye(e){let{override:o,...t}=e,r={...o};Object.keys(A).forEach(d=>{delete r[d];});let n={...t,...r},c=480,i=576,s=768,l=992,a=1200,p=1600;return n.motion===false&&(n.motionDurationFast="0s",n.motionDurationMid="0s",n.motionDurationSlow="0s"),{...n,colorFillContent:n.colorFillSecondary,colorFillContentHover:n.colorFill,colorFillAlter:n.colorFillQuaternary,colorBgContainerDisabled:n.colorFillTertiary,colorBorderBg:n.colorBgContainer,colorSplit:ie(n.colorBorderSecondary,n.colorBgContainer),colorTextPlaceholder:n.colorTextQuaternary,colorTextDisabled:n.colorTextQuaternary,colorTextHeading:n.colorText,colorTextLabel:n.colorTextSecondary,colorTextDescription:n.colorTextTertiary,colorTextLightSolid:n.colorWhite,colorHighlight:n.colorError,colorBgTextHover:n.colorFillSecondary,colorBgTextActive:n.colorFill,colorIcon:n.colorTextTertiary,colorIconHover:n.colorText,colorErrorOutline:ie(n.colorErrorBg,n.colorBgContainer),colorWarningOutline:ie(n.colorWarningBg,n.colorBgContainer),fontSizeIcon:n.fontSizeSM,lineWidthFocus:n.lineWidth*3,lineWidth:n.lineWidth,controlOutlineWidth:n.lineWidth*2,controlInteractiveSize:n.controlHeight/2,controlItemBgHover:n.colorFillTertiary,controlItemBgActive:n.colorPrimaryBg,controlItemBgActiveHover:n.colorPrimaryBgHover,controlItemBgActiveDisabled:n.colorFill,controlTmpOutline:n.colorFillQuaternary,controlOutline:ie(n.colorPrimaryBg,n.colorBgContainer),lineType:n.lineType,borderRadius:n.borderRadius,borderRadiusXS:n.borderRadiusXS,borderRadiusSM:n.borderRadiusSM,borderRadiusLG:n.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:n.sizeXXS,paddingXS:n.sizeXS,paddingSM:n.sizeSM,padding:n.size,paddingMD:n.sizeMD,paddingLG:n.sizeLG,paddingXL:n.sizeXL,paddingContentHorizontalLG:n.sizeLG,paddingContentVerticalLG:n.sizeMS,paddingContentHorizontal:n.sizeMS,paddingContentVertical:n.sizeSM,paddingContentHorizontalSM:n.size,paddingContentVerticalSM:n.sizeXS,marginXXS:n.sizeXXS,marginXS:n.sizeXS,marginSM:n.sizeSM,margin:n.size,marginMD:n.sizeMD,marginLG:n.sizeLG,marginXL:n.sizeXL,marginXXL:n.sizeXXL,boxShadow:`
|
|
9
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
10
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
11
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
12
|
+
`,boxShadowSecondary:`
|
|
13
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
14
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
15
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
16
|
+
`,boxShadowTertiary:`
|
|
17
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
18
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
19
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
20
|
+
`,screenXS:c,screenXSMin:c,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:a-1,screenXL:a,screenXLMin:a,screenXLMax:p-1,screenXXL:p,screenXXLMin:p,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
21
|
+
0 1px 2px -2px ${new TinyColor("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
22
|
+
0 3px 6px 0 ${new TinyColor("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
23
|
+
0 5px 12px 4px ${new TinyColor("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
24
|
+
`,boxShadowDrawerRight:`
|
|
25
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
26
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
27
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
28
|
+
`,boxShadowDrawerLeft:`
|
|
29
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
30
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
31
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
32
|
+
`,boxShadowDrawerUp:`
|
|
33
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
34
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
35
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
36
|
+
`,boxShadowDrawerDown:`
|
|
37
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
38
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
39
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
40
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",...r}}var Qe={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},nr={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},rr={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},_o=(e,o,t)=>{let r=t.getDerivativeToken(e),{override:n,...c}=o,i={...r,override:n};return i=ye(i),c&&Object.entries(c).forEach(([s,l])=>{let{theme:a,...p}=l,f=p;a&&(f=_o({...i,...p},{override:p},a)),i[s]=f;}),i};function R(){let{token:e,hashed:o,theme:t,override:r,cssVar:n}=g__default.useContext(ne),c=`${jo}-${o||""}`,i=t||ge,[s,l,a]=useCacheToken(i,[A,e],{salt:c,override:r,getComputedToken:_o,formatToken:ye,cssVar:n&&{prefix:n.prefix,key:n.key,unitless:Qe,ignore:nr,preserve:rr}});return [i,a,o?l:"",s,n]}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}),ar=()=>({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 Uo=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"}}}),Ko=(e,o,t,r)=>{let n=`[class^="${o}"], [class*=" ${o}"]`,c=t?`.${t}`:n,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},s={};return r!==false&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[c]:{...s,...i,[n]:i}}},cr=e=>({outline:`${unit(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),qo=e=>({"&:focus-visible":{...cr(e)}}),xe=e=>({[`.${e}`]:{...ar(),[`.${e} .${e}-icon`]:{display:"block"}}});var{genStyleHooks:Ze,genComponentStyleHook:lr,genSubStyleComponent:Ye}=genStyleUtils({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:o}=useContext(P);return {rootPrefixCls:e(),iconPrefixCls:o}},useToken:()=>{let[e,o,t,r,n]=R();return {theme:e,realToken:o,hashId:t,token:r,cssVar:n}},useCSP:()=>{let{csp:e}=useContext(P);return e??{}},getResetStyles:(e,o)=>[{"&":Uo(e)},xe(o?.prefix.iconPrefixCls??q)],getCommonStyle:Ko,getCompUnitless:(()=>Qe)});var fr=(e,o)=>{let[t,r]=R();return useStyleRegister({theme:t,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>o?.nonce,layer:{name:"antd"}},()=>[xe(e)])},Se=fr;var dr={...g},{useId:Yo}=dr,gr=()=>"",ur=typeof Yo>"u"?gr:Yo,Jo=ur;function Je(e,o,t){let r=N("ConfigProvider"),n=e||{},c=n.inherit===false||!o?{...te,hashed:o?.hashed??te.hashed,cssVar:o?.cssVar}:o,i=Jo();if(process.env.NODE_ENV!=="production"){let s=n.cssVar||c.cssVar,l=!!(typeof n.cssVar=="object"&&n.cssVar?.key||i);r(!s||l,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.");}return Cr(()=>{if(!e)return o;let s={...c.components};Object.keys(e.components||{}).forEach(p=>{s[p]={...s[p],...e.components[p]};});let l=`css-var-${i.replace(/:/g,"")}`,a=(n.cssVar??c.cssVar)&&{prefix:t?.prefixCls,...typeof c.cssVar=="object"?c.cssVar:{},...typeof n.cssVar=="object"?n.cssVar:{},key:typeof n.cssVar=="object"&&n.cssVar?.key||l};return {...c,...n,token:{...c.token,...n.token},components:s,cssVar:a}},[n,c],(s,l)=>s.some((a,p)=>{let f=l[p];return !yr(a,f,true)}))}function eo(e){let{children:o}=e,[,t]=R(),{motion:r}=t,n=g.useRef(false);return n.current=n.current||r===false,n.current?g.createElement(Provider,{motion:r},o):o}var ot=g.memo(({dropdownMatchSelectWidth:e})=>(N("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(ot.displayName="PropWarning");var tt=process.env.NODE_ENV!=="production"?ot:()=>null;var oo=false,rt=process.env.NODE_ENV!=="production"?e=>{F(!oo,e,"Static function can not consume context like dynamic theme. Please use 'App' component instead.");}:null;var Tr=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],Te,it,at,ct;function Pe(){return Te||ue}function hr(){return it||q}function kr(e){return Object.keys(e).some(o=>o.endsWith("Color"))}var vr=e=>{let{prefixCls:o,iconPrefixCls:t,theme:r,holderRender:n}=e;o!==void 0&&(Te=o),t!==void 0&&(it=t),"holderRender"in e&&(ct=n),r&&(kr(r)?(F(false,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),zo(Pe(),r)):at=r);},to=()=>({getPrefixCls:(e,o)=>o||(e?`${Pe()}-${e}`:Pe()),getIconPrefixCls:hr,getRootPrefixCls:()=>Te||Pe(),getTheme:()=>at,holderRender:ct}),Mr=e=>{let{children:o,csp:t,autoInsertSpaceInButton:r,alert:n,anchor:c,form:i,locale:s,componentSize:l,direction:a,space:p,splitter:f,virtual:d,dropdownMatchSelectWidth:m,popupMatchSelectWidth:u,popupOverflow:h,legacyLocale:k,parentContext:C,iconPrefixCls:b,theme:H,componentDisabled:w,segmented:z,statistic:y,spin:Y,calendar:G,carousel:vt,cascader:Mt,collapse:Rt,typography:Nt,checkbox:wt,descriptions:It,divider:Lt,drawer:$t,skeleton:At,steps:Et,image:Ht,layout:zt,list:Ft,mentions:Dt,modal:Ot,progress:Bt,result:Wt,slider:Gt,breadcrumb:Vt,menu:jt,pagination:_t,input:Xt,textArea:Ut,empty:Kt,badge:qt,radio:Qt,rate:Zt,switch:Yt,transfer:Jt,avatar:en,message:on,tag:tn,table:nn,card:rn,tabs:an,timeline:cn,timePicker:sn,upload:ln,notification:pn,tree:fn,colorPicker:mn,datePicker:dn,rangePicker:gn,flex:un,wave:Cn,dropdown:yn,warning:xn,tour:Sn,variant:bn,inputNumber:Pn,treeSelect:Tn}=e,mo=g.useCallback((x,I)=>{let{prefixCls:_}=e;if(I)return I;let X=_||C.getPrefixCls("");return x?`${X}-${x}`:X},[C.getPrefixCls,e.prefixCls]),J=b||C.iconPrefixCls||q,ee=t||C.csp;Se(J,ee);let se=Je(H,C.theme,{prefixCls:mo("")});process.env.NODE_ENV!=="production"&&(oo=oo||!!se);let Ie={csp:ee,autoInsertSpaceInButton:r,alert:n,anchor:c,locale:s||k,direction:a,space:p,splitter:f,virtual:d,popupMatchSelectWidth:u??m,popupOverflow:h,getPrefixCls:mo,iconPrefixCls:J,theme:se,segmented:z,statistic:y,spin:Y,calendar:G,carousel:vt,cascader:Mt,collapse:Rt,typography:Nt,checkbox:wt,descriptions:It,divider:Lt,drawer:$t,skeleton:At,steps:Et,image:Ht,input:Xt,textArea:Ut,layout:zt,list:Ft,mentions:Dt,modal:Ot,progress:Bt,result:Wt,slider:Gt,breadcrumb:Vt,menu:jt,pagination:_t,empty:Kt,badge:qt,radio:Qt,rate:Zt,switch:Yt,transfer:Jt,avatar:en,message:on,tag:tn,table:nn,card:rn,tabs:an,timeline:cn,timePicker:sn,upload:ln,notification:pn,tree:fn,colorPicker:mn,datePicker:dn,rangePicker:gn,flex:un,wave:Cn,dropdown:yn,warning:xn,tour:Sn,variant:bn,inputNumber:Pn,treeSelect:Tn};process.env.NODE_ENV!=="production"&&N("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");let V={...C};Object.keys(Ie).forEach(x=>{Ie[x]!==void 0&&(V[x]=Ie[x]);}),Tr.forEach(x=>{let I=e[x];I&&(V[x]=I);}),typeof r<"u"&&(V.button={autoInsertSpace:r,...V.button});let j=Cr(()=>V,V,(x,I)=>{let _=Object.keys(x),X=Object.keys(I);return _.length!==X.length||_.some(le=>x[le]!==I[le])}),hn=g.useMemo(()=>({prefixCls:J,csp:ee}),[J,ee]),S=g.createElement(g.Fragment,null,g.createElement(tt,{dropdownMatchSelectWidth:m}),o),go=g.useMemo(()=>merge(O.Form?.defaultValidateMessages||{},j.locale?.Form?.defaultValidateMessages||{},j.form?.validateMessages||{},i?.validateMessages||{}),[j,i?.validateMessages]);Object.keys(go).length>0&&(S=g.createElement(bo.Provider,{value:go},S)),s&&(S=g.createElement(Mo,{locale:s,_ANT_MARK__:He},S)),(S=g.createElement(Sr.Provider,{value:hn},S)),l&&(S=g.createElement(Oo,{size:l},S)),S=g.createElement(eo,null,S);let kn=g.useMemo(()=>{let{algorithm:x,token:I,components:_,cssVar:X,...le}=se||{},uo=x&&(!Array.isArray(x)||x.length>0)?createTheme(x):ge,Le={};Object.entries(_||{}).forEach(([vn,Mn])=>{let L={...Mn};"algorithm"in L&&(L.algorithm===true?L.theme=uo:(Array.isArray(L.algorithm)||typeof L.algorithm=="function")&&(L.theme=createTheme(L.algorithm)),delete L.algorithm),Le[vn]=L;});let Co={...A,...I};return {...le,theme:uo,token:Co,components:Le,override:{override:Co,...Le},cssVar:X}},[se]);return H&&(S=g.createElement(ne.Provider,{value:kn},S)),j.warning&&(S=g.createElement(Ae.Provider,{value:j.warning},S)),w!==void 0&&(S=g.createElement(Fo,{disabled:w},S)),g.createElement(P.Provider,{value:j},S)},B=e=>{let o=g.useContext(P),t=g.useContext(oe);return g.createElement(Mr,{parentContext:o,legacyLocale:t,...e})};B.ConfigContext=P;B.SizeContext=re;B.config=vr;B.useConfig=Wo;Object.defineProperty(B,"SizeContext",{get:()=>(F(false,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),re)});process.env.NODE_ENV!=="production"&&(B.displayName="ConfigProvider");var st=B;var Ir=(e,o)=>{if(process.env.NODE_ENV!=="production"){let t=parseInt(g.version.split(".")[0],10),r=Object.keys(Rr);F(t<19||r.includes("createRoot"),"compatible","swiftcrab v5 support React is 16 ~ 18. see https://u.ant.design/v5-for-19 for compatible.");}return render(e,o),()=>unmount(o)},Lr=Ir;function pt(){return Lr}var $r=e=>{let[,,,,o]=R();return o?`${e}-css-var`:""},he=$r;var Er=g__default.createContext(void 0);process.env.NODE_ENV!=="production"&&(Er.displayName="zIndexContext");var ft=100,Hr=10,no=ft*Hr;var zr=e=>{let{componentCls:o,notificationMarginEdge:t,animationMaxHeight:r}=e,n=`${o}-notice`,c=new Keyframes("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),i=new Keyframes("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new Keyframes("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),l=new Keyframes("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return {[o]:{[`&${o}-top, &${o}-bottom`]:{marginInline:0,[n]:{marginInline:"auto auto"}},[`&${o}-top`]:{[`${o}-fade-enter${o}-fade-enter-active, ${o}-fade-appear${o}-fade-appear-active`]:{animationName:i}},[`&${o}-bottom`]:{[`${o}-fade-enter${o}-fade-enter-active, ${o}-fade-appear${o}-fade-appear-active`]:{animationName:s}},[`&${o}-topRight, &${o}-bottomRight`]:{[`${o}-fade-enter${o}-fade-enter-active, ${o}-fade-appear${o}-fade-appear-active`]:{animationName:c}},[`&${o}-topLeft, &${o}-bottomLeft`]:{marginRight:{value:0,_skip_check_:true},marginLeft:{value:t,_skip_check_:true},[n]:{marginInlineEnd:"auto",marginInlineStart:0},[`${o}-fade-enter${o}-fade-enter-active, ${o}-fade-appear${o}-fade-appear-active`]:{animationName:l}}}}},mt=zr;var dt=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"];var Fr={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},Dr=(e,o)=>{let{componentCls:t}=e;return {[`${t}-${o}`]:{[`&${t}-stack > ${t}-notice-wrapper`]:{[o.startsWith("top")?"top":"bottom"]:0,[Fr[o]]:{value:0,_skip_check_:true}}}}},Or=e=>{let o={};for(let t=1;t<e.notificationStackLayer;t++)o[`&:nth-last-child(${t+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return {[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"},...o}},Br=e=>{let o={};for(let t=1;t<e.notificationStackLayer;t++)o[`&:nth-last-child(${t+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return {...o}},Wr=e=>{let{componentCls:o}=e;return {[`${o}-stack`]:{[`& > ${o}-notice-wrapper`]:{transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute",...Or(e)}},[`${o}-stack:not(${o}-stack-expanded)`]:{[`& > ${o}-notice-wrapper`]:{...Br(e)}},[`${o}-stack${o}-stack-expanded`]:{[`& > ${o}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}},...dt.map(t=>Dr(e,t)).reduce((t,r)=>({...t,...r}),{})}},gt=Wr;var ro=e=>{let{iconCls:o,componentCls:t,boxShadow:r,fontSizeLG:n,notificationMarginBottom:c,borderRadiusLG:i,colorSuccess:s,colorInfo:l,colorWarning:a,colorError:p,colorTextHeading:f,notificationBg:d,notificationPadding:m,notificationMarginEdge:u,notificationProgressBg:h,notificationProgressHeight:k,fontSize:C,lineHeight:b,width:H,notificationIconSize:w,colorText:z}=e,y=`${t}-notice`;return {position:"relative",marginBottom:c,marginInlineStart:"auto",background:d,borderRadius:i,boxShadow:r,[y]:{padding:m,width:H,maxWidth:`calc(100vw - ${unit(e.calc(u).mul(2).equal())})`,overflow:"hidden",lineHeight:b,wordWrap:"break-word"},[`${y}-message`]:{marginBottom:e.marginXS,color:f,fontSize:n,lineHeight:e.lineHeightLG},[`${y}-description`]:{fontSize:C,color:z},[`${y}-closable ${y}-message`]:{paddingInlineEnd:e.paddingLG},[`${y}-with-icon ${y}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(w).equal(),fontSize:n},[`${y}-with-icon ${y}-description`]:{marginInlineStart:e.calc(e.marginSM).add(w).equal(),fontSize:C},[`${y}-icon`]:{position:"absolute",fontSize:w,lineHeight:1,[`&-success${o}`]:{color:s},[`&-info${o}`]:{color:l},[`&-warning${o}`]:{color:a},[`&-error${o}`]:{color:p}},[`${y}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},...qo(e)},[`${y}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${unit(i)} * 2)`,left:{_skip_check_:true,value:i},right:{_skip_check_:true,value:i},bottom:0,blockSize:k,border:0,"&, &::-webkit-progress-bar":{borderRadius:i,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:h},"&::-webkit-progress-value":{borderRadius:i,background:h}},[`${y}-btn`]:{float:"right",marginTop:e.marginSM}}},Vr=e=>{let{componentCls:o,notificationMarginBottom:t,notificationMarginEdge:r,motionDurationMid:n,motionEaseInOut:c}=e,i=`${o}-notice`,s=new Keyframes("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:t},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return [{[o]:{...Xo(e),position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:true},[`${o}-hook-holder`]:{position:"relative"},[`${o}-fade-appear-prepare`]:{opacity:"0 !important"},[`${o}-fade-enter, ${o}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:c,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${o}-fade-leave`]:{animationTimingFunction:c,animationFillMode:"both",animationDuration:n,animationPlayState:"paused"},[`${o}-fade-enter${o}-fade-enter-active, ${o}-fade-appear${o}-fade-appear-active`]:{animationPlayState:"running"},[`${o}-fade-leave${o}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${i}-btn`]:{float:"left"}}}},{[o]:{[`${i}-wrapper`]:{...ro(e)}}}]},io=e=>({zIndexPopup:e.zIndexPopupBase+no+50,width:384}),ao=e=>{let o=e.paddingMD,t=e.paddingLG;return mergeToken(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:o,notificationPaddingHorizontal:t,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${unit(e.paddingMD)} ${unit(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},Me=Ze("Notification",e=>{let o=ao(e);return [Vr(o),mt(o),gt(o)]},io);var ut=Ye(["Notification","PurePanel"],e=>{let o=`${e.componentCls}-notice`,t=ao(e);return {[`${o}-pure-panel`]:{...ro(t),width:t.width,maxWidth:`calc(100vw - ${unit(e.calc(t.notificationMarginEdge).mul(2).equal())})`,margin:0}}},io);function Ne(e,o){return o===null||o===false?null:o||g.createElement(Ur,{className:`${e}-close-icon`})}var Zr={success:_r,info:qr,error:Xr,warning:Kr},co=e=>{let{prefixCls:o,icon:t,type:r,message:n,description:c,btn:i,role:s="alert"}=e,l=null;return t?l=g.createElement("span",{className:`${o}-icon`},t):r&&(l=g.createElement(Zr[r]||null,{className:Re(`${o}-icon`,`${o}-icon-${r}`)})),g.createElement("div",{className:Re({[`${o}-with-icon`]:l}),role:s},l,g.createElement("div",{className:`${o}-message`},n),g.createElement("div",{className:`${o}-description`},c),i&&g.createElement("div",{className:`${o}-btn`},i))},Yr=e=>{let{prefixCls:o,className:t,icon:r,type:n,message:c,description:i,btn:s,closable:l=true,closeIcon:a,className:p,...f}=e,{getPrefixCls:d}=g.useContext(P),m=o||d("notification"),u=`${m}-notice`,h=he(m),[k,C,b]=Me(m,h);return k(g.createElement("div",{className:Re(`${u}-pure-panel`,C,t,b,h)},g.createElement(ut,{prefixCls:m}),g.createElement(Notice,{...f,prefixCls:m,eventKey:"pure",duration:null,closable:l,className:Re({notificationClassName:p}),closeIcon:Ne(m,a),content:g.createElement(co,{prefixCls:u,icon:r,type:n,message:c,description:i,btn:s})})))},Ct=Yr;function yt(e,o,t){let r;switch(e){case "top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:o,bottom:"auto"};break;case "topLeft":r={left:0,top:o,bottom:"auto"};break;case "topRight":r={right:0,top:o,bottom:"auto"};break;case "bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:t};break;case "bottomLeft":r={left:0,top:"auto",bottom:t};break;default:r={right:0,top:"auto",bottom:t};break}return r}function xt(e){return {motionName:`${e}-fade`}}var St=24,ti=4.5,ni="topRight",ri=({children:e,prefixCls:o})=>{let t=he(o),[r,n,c]=Me(o,t);return r(g__default.createElement(NotificationProvider,{classNames:{list:Re(n,c,t)}},e))},ii=(e,{prefixCls:o,key:t})=>g__default.createElement(ri,{prefixCls:o,key:t},e),ai=g__default.forwardRef((e,o)=>{let{top:t,bottom:r,prefixCls:n,getContainer:c,maxCount:i,rtl:s,onAllRemoved:l,stack:a,duration:p,pauseOnHover:f=true,showProgress:d}=e,{getPrefixCls:m,getPopupContainer:u,notification:h,direction:k}=useContext(P),[,C]=R(),b=n||m("notification"),H=G=>yt(G,t??St,r??St),w=()=>Re({[`${b}-rtl`]:s??k==="rtl"}),z=()=>xt(b),[y,Y]=useNotification({prefixCls:b,style:H,className:w,motion:z,closable:true,closeIcon:Ne(b),duration:p??ti,getContainer:()=>c?.()||u?.()||document.body,maxCount:i,pauseOnHover:f,showProgress:d,onAllRemoved:l,renderNotifications:ii,stack:a===false?false:{threshold:typeof a=="object"?a?.threshold:void 0,offset:8,gap:C.margin}});return g__default.useImperativeHandle(o,()=>({...y,prefixCls:b,notification:h})),Y});function lo(e){let o=g__default.useRef(null),t=N("Notification");return [g__default.useMemo(()=>{let n=l=>{if(!o.current){t(false,"usage","You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.");return}let{open:a,prefixCls:p,notification:f}=o.current,d=`${p}-notice`,{message:m,description:u,icon:h,type:k,btn:C,className:b,style:H,role:w="alert",closeIcon:z,closable:y,...Y}=l,G=Ne(d,typeof z<"u"?z:f?.closeIcon);return a({placement:e?.placement??ni,...Y,content:g__default.createElement(co,{prefixCls:d,icon:h,type:k,message:m,description:u,btn:C,role:w}),className:Re(k&&`${d}-${k}`,b,f?.className),style:{...f?.style,...H},closeIcon:G,closable:y??!!G})},i={open:n,destroy:l=>{l!==void 0?o.current?.close(l):o.current?.destroy();}};return ["success","info","warning","error"].forEach(l=>{i[l]=a=>n({...a,type:l});}),i},[]),g__default.createElement(ai,{key:"notification-holder",...e,ref:o})]}function po(e){return lo(e)}var W=null,ae=e=>e(),we=[],ce={};function Pt(){let{getContainer:e,rtl:o,maxCount:t,top:r,bottom:n,showProgress:c,pauseOnHover:i}=ce,s=e?.()||document.body;return {getContainer:()=>s,rtl:o,maxCount:t,top:r,bottom:n,showProgress:c,pauseOnHover:i}}var ci=g__default.forwardRef((e,o)=>{let{notificationConfig:t,sync:r}=e,{getPrefixCls:n}=useContext(P),c=ce.prefixCls||n("notification"),i=useContext(xo),[s,l]=lo({...t,prefixCls:c,...i.notification});return g__default.useEffect(r,[]),g__default.useImperativeHandle(o,()=>{let a={...s};return Object.keys(a).forEach(p=>{a[p]=(...f)=>(r(),s[p](...f));}),{instance:a,sync:r}}),l}),si=g__default.forwardRef((e,o)=>{let[t,r]=g__default.useState(Pt),n=()=>{r(Pt);};g__default.useEffect(n,[]);let c=to(),i=c.getRootPrefixCls(),s=c.getIconPrefixCls(),l=c.getTheme(),a=g__default.createElement(ci,{ref:o,sync:n,notificationConfig:t});return g__default.createElement(st,{prefixCls:i,iconPrefixCls:s,theme:l},c.holderRender?c.holderRender(a):a)});function fo(){if(!W){let e=document.createDocumentFragment(),o={fragment:e};W=o,ae(()=>{pt()(g__default.createElement(si,{ref:r=>{let{instance:n,sync:c}=r||{};Promise.resolve().then(()=>{!o.instance&&n&&(o.instance=n,o.sync=c,fo());});}}),e);});return}W.instance&&(we.forEach(e=>{switch(e.type){case "open":{ae(()=>{W.instance.open({...ce,...e.config});});break}case "destroy":ae(()=>{W?.instance.destroy(e.key);});break}}),we=[]);}function li(e){ce={...ce,...e},ae(()=>{W?.sync?.();});}function Tt(e){let o=to();process.env.NODE_ENV!=="production"&&!o.holderRender&&rt("notification"),we.push({type:"open",config:e}),fo();}var pi=e=>{we.push({type:"destroy",key:e}),fo();},fi=["success","info","warning","error"],mi={open:Tt,destroy:pi,config:li,useNotification:po,_InternalPanelDoNotUseOrYouWillBeFired:Ct},ht=mi;fi.forEach(e=>{ht[e]=o=>Tt({...o,type:e});});var kt=()=>{},di=kt;process.env.NODE_ENV==="test"&&(di=e=>{ae=e;});var gi=kt;process.env.NODE_ENV==="test"&&(gi=()=>{W=null;});var bl=ht;
|
|
41
|
+
export{gi as actDestroy,di as actWrapper,bl as default};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { ClosableType } from '../_util/hooks/useClosable';
|
|
3
|
+
interface DivProps extends React.HTMLProps<HTMLDivElement> {
|
|
4
|
+
'data-testid'?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const NotificationPlacements: readonly ["top", "topLeft", "topRight", "bottom", "bottomLeft", "bottomRight"];
|
|
7
|
+
export type NotificationPlacement = (typeof NotificationPlacements)[number];
|
|
8
|
+
export type IconType = 'success' | 'info' | 'error' | 'warning';
|
|
9
|
+
export interface ArgsProps {
|
|
10
|
+
message: React.ReactNode;
|
|
11
|
+
description?: React.ReactNode;
|
|
12
|
+
btn?: React.ReactNode;
|
|
13
|
+
key?: React.Key;
|
|
14
|
+
onClose?: () => void;
|
|
15
|
+
duration?: number | null;
|
|
16
|
+
showProgress?: boolean;
|
|
17
|
+
pauseOnHover?: boolean;
|
|
18
|
+
icon?: React.ReactNode;
|
|
19
|
+
placement?: NotificationPlacement;
|
|
20
|
+
style?: React.CSSProperties;
|
|
21
|
+
className?: string;
|
|
22
|
+
readonly type?: IconType;
|
|
23
|
+
onClick?: () => void;
|
|
24
|
+
closeIcon?: React.ReactNode;
|
|
25
|
+
closable?: ClosableType;
|
|
26
|
+
props?: DivProps;
|
|
27
|
+
role?: 'alert' | 'status';
|
|
28
|
+
}
|
|
29
|
+
type StaticFn = (args: ArgsProps) => void;
|
|
30
|
+
export interface NotificationInstance {
|
|
31
|
+
success: StaticFn;
|
|
32
|
+
error: StaticFn;
|
|
33
|
+
info: StaticFn;
|
|
34
|
+
warning: StaticFn;
|
|
35
|
+
open: StaticFn;
|
|
36
|
+
destroy(key?: React.Key): void;
|
|
37
|
+
}
|
|
38
|
+
export interface GlobalConfigProps {
|
|
39
|
+
top?: number;
|
|
40
|
+
bottom?: number;
|
|
41
|
+
duration?: number;
|
|
42
|
+
showProgress?: boolean;
|
|
43
|
+
pauseOnHover?: boolean;
|
|
44
|
+
prefixCls?: string;
|
|
45
|
+
getContainer?: () => HTMLElement | ShadowRoot;
|
|
46
|
+
placement?: NotificationPlacement;
|
|
47
|
+
closeIcon?: React.ReactNode;
|
|
48
|
+
closable?: ClosableType;
|
|
49
|
+
rtl?: boolean;
|
|
50
|
+
maxCount?: number;
|
|
51
|
+
props?: DivProps;
|
|
52
|
+
}
|
|
53
|
+
export interface NotificationConfig {
|
|
54
|
+
top?: number;
|
|
55
|
+
bottom?: number;
|
|
56
|
+
prefixCls?: string;
|
|
57
|
+
getContainer?: () => HTMLElement | ShadowRoot;
|
|
58
|
+
placement?: NotificationPlacement;
|
|
59
|
+
maxCount?: number;
|
|
60
|
+
rtl?: boolean;
|
|
61
|
+
stack?: boolean | {
|
|
62
|
+
threshold?: number;
|
|
63
|
+
};
|
|
64
|
+
duration?: number;
|
|
65
|
+
showProgress?: boolean;
|
|
66
|
+
pauseOnHover?: boolean;
|
|
67
|
+
}
|
|
68
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"];export{e as NotificationPlacements};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import type { CSSObject } from '@ant-design/cssinjs';
|
|
2
|
+
import type { AliasToken, FullToken, GenStyleFn } from '../../theme/internal';
|
|
3
|
+
/** Component only token. Which will handle additional calculation of alias token */
|
|
4
|
+
export interface ComponentToken {
|
|
5
|
+
/**
|
|
6
|
+
* @desc 提醒框 z-index
|
|
7
|
+
* @descEN z-index of Notification
|
|
8
|
+
*/
|
|
9
|
+
zIndexPopup: number;
|
|
10
|
+
/**
|
|
11
|
+
* @desc 提醒框宽度
|
|
12
|
+
* @descEN Width of Notification
|
|
13
|
+
*/
|
|
14
|
+
width: number | string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @desc Notification 组件的 Token
|
|
18
|
+
* @descEN Token for Notification component
|
|
19
|
+
*/
|
|
20
|
+
export interface NotificationToken extends FullToken<'Notification'> {
|
|
21
|
+
/**
|
|
22
|
+
* @desc 动画最大高度
|
|
23
|
+
* @descEN Maximum height of animation
|
|
24
|
+
*/
|
|
25
|
+
animationMaxHeight: number | string;
|
|
26
|
+
/**
|
|
27
|
+
* @desc 提醒框背景色
|
|
28
|
+
* @descEN Background color of Notification
|
|
29
|
+
*/
|
|
30
|
+
notificationBg: string;
|
|
31
|
+
/**
|
|
32
|
+
* @desc 提醒框内边距
|
|
33
|
+
* @descEN Padding of Notification
|
|
34
|
+
*/
|
|
35
|
+
notificationPadding: string;
|
|
36
|
+
/**
|
|
37
|
+
* @desc 提醒框垂直内边距
|
|
38
|
+
* @descEN Vertical padding of Notification
|
|
39
|
+
*/
|
|
40
|
+
notificationPaddingVertical: number;
|
|
41
|
+
/**
|
|
42
|
+
* @desc 提醒框水平内边距
|
|
43
|
+
* @descEN Horizontal padding of Notification
|
|
44
|
+
*/
|
|
45
|
+
notificationPaddingHorizontal: number;
|
|
46
|
+
/**
|
|
47
|
+
* @desc 提醒框图标尺寸
|
|
48
|
+
* @descEN Icon size of Notification
|
|
49
|
+
*/
|
|
50
|
+
notificationIconSize: number | string;
|
|
51
|
+
/**
|
|
52
|
+
* @desc 提醒框关闭按钮尺寸
|
|
53
|
+
* @descEN Close button size of Notification
|
|
54
|
+
*/
|
|
55
|
+
notificationCloseButtonSize: number | string;
|
|
56
|
+
/**
|
|
57
|
+
* @desc 提醒框底部外边距
|
|
58
|
+
* @descEN Bottom margin of Notification
|
|
59
|
+
*/
|
|
60
|
+
notificationMarginBottom: number;
|
|
61
|
+
/**
|
|
62
|
+
* @desc 提醒框边缘外边距
|
|
63
|
+
* @descEN Edge margin of Notification
|
|
64
|
+
*/
|
|
65
|
+
notificationMarginEdge: number;
|
|
66
|
+
/**
|
|
67
|
+
* @desc 提醒框堆叠层数
|
|
68
|
+
* @descEN Stack layer of Notification
|
|
69
|
+
*/
|
|
70
|
+
notificationStackLayer: number;
|
|
71
|
+
/**
|
|
72
|
+
* @desc 提醒框进度条背景色
|
|
73
|
+
* @descEN Background color of Notification progress bar
|
|
74
|
+
*/
|
|
75
|
+
notificationProgressBg: string;
|
|
76
|
+
/**
|
|
77
|
+
* @desc 提醒框进度条高度
|
|
78
|
+
* @descEN Height of Notification progress bar
|
|
79
|
+
*/
|
|
80
|
+
notificationProgressHeight: number;
|
|
81
|
+
}
|
|
82
|
+
export declare const genNoticeStyle: (token: NotificationToken) => CSSObject;
|
|
83
|
+
export declare const prepareComponentToken: (token: AliasToken) => {
|
|
84
|
+
zIndexPopup: number;
|
|
85
|
+
width: number;
|
|
86
|
+
};
|
|
87
|
+
export declare const prepareNotificationToken: (token: Parameters<GenStyleFn<'Notification'>>[0]) => NotificationToken;
|
|
88
|
+
declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: React.ReactElement) => React.ReactElement, string, string];
|
|
89
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import {createTheme,useCacheToken,unit,Keyframes}from'@ant-design/cssinjs';import*as M from'react';import M__default,{useContext}from'react';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';import Oe,{resetWarned}from'rc-util/lib/warning';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';var Q={version:"0.0.2"};var K=Q.version;var L={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Me={...L,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},S=Me;function F(e,{generateColorPalettes:o,generateNeutralColorPalettes:n}){let{colorSuccess:r,colorWarning:t,colorError:a,colorInfo:i,colorPrimary:s,colorBgBase:m,colorTextBase:l}=e,c=o(s),p=o(r),g=o(t),f=o(a),C=o(i),P=n(m,l),z=e.colorLink||e.colorInfo,x=o(z),R=new TinyColor(f[1]).mix(new TinyColor(f[3]),50).toHexString();return {...P,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:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:f[1],colorErrorBgHover:f[2],colorErrorBgFilledHover:R,colorErrorBgActive:f[3],colorErrorBorder:f[3],colorErrorBorderHover:f[4],colorErrorHover:f[5],colorError:f[6],colorErrorActive:f[7],colorErrorTextHover:f[8],colorErrorText:f[9],colorErrorTextActive:f[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:C[1],colorInfoBgHover:C[2],colorInfoBorder:C[3],colorInfoBorderHover:C[4],colorInfoHover:C[4],colorInfo:C[6],colorInfoActive:C[7],colorInfoTextHover:C[8],colorInfoText:C[9],colorInfoTextActive:C[10],colorLinkHover:x[4],colorLink:x[6],colorLinkActive:x[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var Ie=e=>{let o=e,n=e,r=e,t=e;return e<6&&e>=5?o=e+1:e<16&&e>=6?o=e+2:e>=16&&(o=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?t=4:e>=8&&(t=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:o,borderRadiusOuter:t}},J=Ie;function B(e){let{motionUnit:o,motionBase:n,borderRadius:r,lineWidth:t}=e;return {motionDurationFast:`${(n+o).toFixed(1)}s`,motionDurationMid:`${(n+o*2).toFixed(1)}s`,motionDurationSlow:`${(n+o*3).toFixed(1)}s`,lineWidthBold:t+1,...J(r)}}var we=e=>{let{controlHeight:o}=e;return {controlHeightSM:o*.75,controlHeightXS:o*.5,controlHeightLG:o*1.25}},Y=we;function ee(e){return (e+8)/e}function N(e){let o=new Array(10).fill(null).map((n,r)=>{let t=r-1,a=e*Math.E**(t/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return o[1]=e,o.map(n=>({size:n,lineHeight:ee(n)}))}var He=e=>{let o=N(e),n=o.map(c=>c.size),r=o.map(c=>c.lineHeight),t=n[1],a=n[0],i=n[2],s=r[1],m=r[0],l=r[2];return {fontSizeSM:a,fontSize:t,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:l,lineHeightSM:m,fontHeight:Math.round(s*t),fontHeightLG:Math.round(l*i),fontHeightSM:Math.round(m*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},oe=He;function D(e){let{sizeUnit:o,sizeStep:n}=e;return {sizeXXL:o*(n+8),sizeXL:o*(n+4),sizeLG:o*(n+2),sizeMD:o*(n+1),sizeMS:o*n,size:o*n,sizeSM:o*(n-1),sizeXS:o*(n-2),sizeXXS:o*(n-3)}}var u=(e,o)=>new TinyColor(e).setAlpha(o).toRgbString(),b=(e,o)=>new TinyColor(e).darken(o).toHexString();var ne=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]}},re=(e,o)=>{let n=e||"#fff",r=o||"#000";return {colorBgBase:n,colorTextBase:r,colorText:u(r,.88),colorTextSecondary:u(r,.65),colorTextTertiary:u(r,.45),colorTextQuaternary:u(r,.25),colorFill:u(r,.15),colorFillSecondary:u(r,.06),colorFillTertiary:u(r,.04),colorFillQuaternary:u(r,.02),colorBgSolid:u(r,1),colorBgSolidHover:u(r,.75),colorBgSolidActive:u(r,.95),colorBgLayout:b(n,4),colorBgContainer:b(n,0),colorBgElevated:b(n,0),colorBgSpotlight:u(r,.85),colorBgBlur:"transparent",colorBorder:b(n,15),colorBorderSecondary:b(n,6)}};function G(e){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let o=Object.keys(L).map(n=>{let r=e[n]===presetPrimaryColors[n]?presetPalettes[n]:generate(e[n]);return new Array(10).fill(1).reduce((t,a,i)=>(t[`${n}-${i+1}`]=r[i],t[`${n}${i+1}`]=r[i],t),{})}).reduce((n,r)=>(n={...n,...r},n),{});return {...e,...o,...F(e,{generateColorPalettes:ne,generateNeutralColorPalettes:re}),...oe(e.fontSize),...D(e),...Y(e),...B(e)}}var ie=createTheme(G),ae={token:S,override:{override:S},hashed:true},W=M__default.createContext(ae);function X(e){return e>=0&&e<=255}function Ae(e,o){let{r:n,g:r,b:t,a}=new TinyColor(e).toRgb();if(a<1)return e;let{r:i,g:s,b:m}=new TinyColor(o).toRgb();for(let l=.01;l<=1;l+=.01){let c=Math.round((n-i*(1-l))/l),p=Math.round((r-s*(1-l))/l),g=Math.round((t-m*(1-l))/l);if(X(c)&&X(p)&&X(g))return new TinyColor({r:c,g:p,b:g,a:Math.round(l*100)/100}).toRgbString()}return new TinyColor({r:n,g:r,b:t,a:1}).toRgbString()}var k=Ae;function v(e){let{override:o,...n}=e,r={...o};Object.keys(S).forEach(g=>{delete r[g];});let t={...n,...r},a=480,i=576,s=768,m=992,l=1200,c=1600;return t.motion===false&&(t.motionDurationFast="0s",t.motionDurationMid="0s",t.motionDurationSlow="0s"),{...t,colorFillContent:t.colorFillSecondary,colorFillContentHover:t.colorFill,colorFillAlter:t.colorFillQuaternary,colorBgContainerDisabled:t.colorFillTertiary,colorBorderBg:t.colorBgContainer,colorSplit:k(t.colorBorderSecondary,t.colorBgContainer),colorTextPlaceholder:t.colorTextQuaternary,colorTextDisabled:t.colorTextQuaternary,colorTextHeading:t.colorText,colorTextLabel:t.colorTextSecondary,colorTextDescription:t.colorTextTertiary,colorTextLightSolid:t.colorWhite,colorHighlight:t.colorError,colorBgTextHover:t.colorFillSecondary,colorBgTextActive:t.colorFill,colorIcon:t.colorTextTertiary,colorIconHover:t.colorText,colorErrorOutline:k(t.colorErrorBg,t.colorBgContainer),colorWarningOutline:k(t.colorWarningBg,t.colorBgContainer),fontSizeIcon:t.fontSizeSM,lineWidthFocus:t.lineWidth*3,lineWidth:t.lineWidth,controlOutlineWidth:t.lineWidth*2,controlInteractiveSize:t.controlHeight/2,controlItemBgHover:t.colorFillTertiary,controlItemBgActive:t.colorPrimaryBg,controlItemBgActiveHover:t.colorPrimaryBgHover,controlItemBgActiveDisabled:t.colorFill,controlTmpOutline:t.colorFillQuaternary,controlOutline:k(t.colorPrimaryBg,t.colorBgContainer),lineType:t.lineType,borderRadius:t.borderRadius,borderRadiusXS:t.borderRadiusXS,borderRadiusSM:t.borderRadiusSM,borderRadiusLG:t.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:t.sizeXXS,paddingXS:t.sizeXS,paddingSM:t.sizeSM,padding:t.size,paddingMD:t.sizeMD,paddingLG:t.sizeLG,paddingXL:t.sizeXL,paddingContentHorizontalLG:t.sizeLG,paddingContentVerticalLG:t.sizeMS,paddingContentHorizontal:t.sizeMS,paddingContentVertical:t.sizeSM,paddingContentHorizontalSM:t.size,paddingContentVerticalSM:t.sizeXS,marginXXS:t.sizeXXS,marginXS:t.sizeXS,marginSM:t.sizeSM,margin:t.size,marginMD:t.sizeMD,marginLG:t.sizeLG,marginXL:t.sizeXL,marginXXL:t.sizeXXL,boxShadow:`
|
|
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:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:m-1,screenLG:m,screenLGMin:m,screenLGMax:l-1,screenXL:l,screenXLMin:l,screenXLMax:c-1,screenXXL:c,screenXXLMin:c,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
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)",...r}}var _={lineHeight:true,lineHeightSM:true,lineHeightLG:true,lineHeightHeading1:true,lineHeightHeading2:true,lineHeightHeading3:true,lineHeightHeading4:true,lineHeightHeading5:true,opacityLoading:true,fontWeightStrong:true,zIndexPopupBase:true,zIndexBase:true,opacityImage:true},Ne={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},De={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},ce=(e,o,n)=>{let r=n.getDerivativeToken(e),{override:t,...a}=o,i={...r,override:t};return i=v(i),a&&Object.entries(a).forEach(([s,m])=>{let{theme:l,...c}=m,p=c;l&&(p=ce({...i,...c},{override:c},l)),i[s]=p;}),i};function T(){let{token:e,hashed:o,theme:n,override:r,cssVar:t}=M__default.useContext(W),a=`${K}-${o||""}`,i=n||ie,[s,m,l]=useCacheToken(i,[S,e],{salt:a,override:r,getComputedToken:ce,formatToken:v,cssVar:t&&{prefix:t.prefix,key:t.key,unitless:_,ignore:Ne,preserve:De}});return [i,l,o?m:"",s,t]}function le(){}var y=null;function Ge(){y=null,resetWarned();}var se=le;process.env.NODE_ENV!=="production"&&(se=(e,o,n)=>{Oe(e,`[swiftcrab: ${o}] ${n}`),process.env.NODE_ENV==="test"&&Ge();});var We=M.createContext({});process.env.NODE_ENV!=="production"?e=>{let{strict:o}=M.useContext(We),n=(r,t,a)=>{if(!r)if(o===false&&t==="deprecated"){let i=y;y||(y={}),y[e]=y[e]||[],y[e].includes(a||"")||y[e].push(a||""),i||console.warn("[swiftcrab] There exists deprecated usage in your code:",y);}else se(r,e,a);};return n.deprecated=(r,t,a,i)=>{n(r,"deprecated",`\`${t}\` is deprecated. Please use \`${a}\` instead.${i?` ${i}`:""}`);},n}:()=>{let e=()=>{};return e.deprecated=le,e};var _e=M__default.createContext(void 0);process.env.NODE_ENV!=="production"&&(_e.displayName="zIndexContext");var pe=100,Ue=10,U=pe*Ue;var me=(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}),qe=()=>({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 ge=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"}}}),fe=(e,o,n,r)=>{let t=`[class^="${o}"], [class*=" ${o}"]`,a=n?`.${n}`:t,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},s={};return r!==false&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:{...s,...i,[t]:i}}},Ze=e=>({outline:`${unit(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),de=e=>({"&:focus-visible":{...Ze(e)}}),V=e=>({[`.${e}`]:{...qe(),[`.${e} .${e}-icon`]:{display:"block"}}});var Ce="ant",q="anticon";var Qe=(e,o)=>o||(e?`${Ce}-${e}`:Ce),I=M.createContext({getPrefixCls:Qe,iconPrefixCls:q}),{Consumer:Tt}=I;var{genStyleHooks:Z,genComponentStyleHook:Je,genSubStyleComponent:Ye}=genStyleUtils({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:o}=useContext(I);return {rootPrefixCls:e(),iconPrefixCls:o}},useToken:()=>{let[e,o,n,r,t]=T();return {theme:e,realToken:o,hashId:n,token:r,cssVar:t}},useCSP:()=>{let{csp:e}=useContext(I);return e??{}},getResetStyles:(e,o)=>[{"&":ge(e)},V(o?.prefix.iconPrefixCls??q)],getCommonStyle:fe,getCompUnitless:(()=>_)});var eo=e=>{let{componentCls:o,notificationMarginEdge:n,animationMaxHeight:r}=e,t=`${o}-notice`,a=new Keyframes("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),i=new Keyframes("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new Keyframes("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),m=new Keyframes("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return {[o]:{[`&${o}-top, &${o}-bottom`]:{marginInline:0,[t]:{marginInline:"auto auto"}},[`&${o}-top`]:{[`${o}-fade-enter${o}-fade-enter-active, ${o}-fade-appear${o}-fade-appear-active`]:{animationName:i}},[`&${o}-bottom`]:{[`${o}-fade-enter${o}-fade-enter-active, ${o}-fade-appear${o}-fade-appear-active`]:{animationName:s}},[`&${o}-topRight, &${o}-bottomRight`]:{[`${o}-fade-enter${o}-fade-enter-active, ${o}-fade-appear${o}-fade-appear-active`]:{animationName:a}},[`&${o}-topLeft, &${o}-bottomLeft`]:{marginRight:{value:0,_skip_check_:true},marginLeft:{value:n,_skip_check_:true},[t]:{marginInlineEnd:"auto",marginInlineStart:0},[`${o}-fade-enter${o}-fade-enter-active, ${o}-fade-appear${o}-fade-appear-active`]:{animationName:m}}}}},be=eo;var Te=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"];var oo={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},to=(e,o)=>{let{componentCls:n}=e;return {[`${n}-${o}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[o.startsWith("top")?"top":"bottom"]:0,[oo[o]]:{value:0,_skip_check_:true}}}}},no=e=>{let o={};for(let n=1;n<e.notificationStackLayer;n++)o[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return {[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"},...o}},ro=e=>{let o={};for(let n=1;n<e.notificationStackLayer;n++)o[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return {...o}},io=e=>{let{componentCls:o}=e;return {[`${o}-stack`]:{[`& > ${o}-notice-wrapper`]:{transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute",...no(e)}},[`${o}-stack:not(${o}-stack-expanded)`]:{[`& > ${o}-notice-wrapper`]:{...ro(e)}},[`${o}-stack${o}-stack-expanded`]:{[`& > ${o}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}},...Te.map(n=>to(e,n)).reduce((n,r)=>({...n,...r}),{})}},ke=io;var co=e=>{let{iconCls:o,componentCls:n,boxShadow:r,fontSizeLG:t,notificationMarginBottom:a,borderRadiusLG:i,colorSuccess:s,colorInfo:m,colorWarning:l,colorError:c,colorTextHeading:p,notificationBg:g,notificationPadding:f,notificationMarginEdge:C,notificationProgressBg:P,notificationProgressHeight:z,fontSize:x,lineHeight:R,width:Pe,notificationIconSize:$,colorText:he}=e,d=`${n}-notice`;return {position:"relative",marginBottom:a,marginInlineStart:"auto",background:g,borderRadius:i,boxShadow:r,[d]:{padding:f,width:Pe,maxWidth:`calc(100vw - ${unit(e.calc(C).mul(2).equal())})`,overflow:"hidden",lineHeight:R,wordWrap:"break-word"},[`${d}-message`]:{marginBottom:e.marginXS,color:p,fontSize:t,lineHeight:e.lineHeightLG},[`${d}-description`]:{fontSize:x,color:he},[`${d}-closable ${d}-message`]:{paddingInlineEnd:e.paddingLG},[`${d}-with-icon ${d}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add($).equal(),fontSize:t},[`${d}-with-icon ${d}-description`]:{marginInlineStart:e.calc(e.marginSM).add($).equal(),fontSize:x},[`${d}-icon`]:{position:"absolute",fontSize:$,lineHeight:1,[`&-success${o}`]:{color:s},[`&-info${o}`]:{color:m},[`&-warning${o}`]:{color:l},[`&-error${o}`]:{color:c}},[`${d}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},...de(e)},[`${d}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${unit(i)} * 2)`,left:{_skip_check_:true,value:i},right:{_skip_check_:true,value:i},bottom:0,blockSize:z,border:0,"&, &::-webkit-progress-bar":{borderRadius:i,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:P},"&::-webkit-progress-value":{borderRadius:i,background:P}},[`${d}-btn`]:{float:"right",marginTop:e.marginSM}}},lo=e=>{let{componentCls:o,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:t,motionEaseInOut:a}=e,i=`${o}-notice`,s=new Keyframes("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return [{[o]:{...me(e),position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:true},[`${o}-hook-holder`]:{position:"relative"},[`${o}-fade-appear-prepare`]:{opacity:"0 !important"},[`${o}-fade-enter, ${o}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:a,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${o}-fade-leave`]:{animationTimingFunction:a,animationFillMode:"both",animationDuration:t,animationPlayState:"paused"},[`${o}-fade-enter${o}-fade-enter-active, ${o}-fade-appear${o}-fade-appear-active`]:{animationPlayState:"running"},[`${o}-fade-leave${o}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${i}-btn`]:{float:"left"}}}},{[o]:{[`${i}-wrapper`]:{...co(e)}}}]},so=e=>({zIndexPopup:e.zIndexPopupBase+U+50,width:384}),po=e=>{let o=e.paddingMD,n=e.paddingLG;return mergeToken(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:o,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${unit(e.paddingMD)} ${unit(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},pn=Z("Notification",e=>{let o=po(e);return [lo(o),be(o),ke(o)]},so);export{pn as default,co as genNoticeStyle,so as prepareComponentToken,po as prepareNotificationToken};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CSSObject } from '@ant-design/cssinjs';
|
|
2
|
+
import type { NotificationToken } from '.';
|
|
3
|
+
import type { GenerateStyle } from '../../theme/internal';
|
|
4
|
+
declare const genNotificationPlacementStyle: GenerateStyle<NotificationToken, CSSObject>;
|
|
5
|
+
export default genNotificationPlacementStyle;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {Keyframes}from'@ant-design/cssinjs';var f=e=>{let{componentCls:t,notificationMarginEdge:i,animationMaxHeight:n}=e,o=`${t}-notice`,r=new Keyframes("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),c=new Keyframes("antNotificationTopFadeIn",{"0%":{top:-n,opacity:0},"100%":{top:0,opacity:1}}),p=new Keyframes("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(n).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),m=new Keyframes("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return {[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:c}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:p}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:r}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:true},marginLeft:{value:i,_skip_check_:true},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:m}}}}},$=f;export{$ as default};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import {createTheme,unit,useCacheToken,Keyframes}from'@ant-design/cssinjs';import*as M from'react';import M__default,{useContext}from'react';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';import Xe,{resetWarned}from'rc-util/lib/warning';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';var ee={version:"0.0.2"};var oe=ee.version;var L={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"},ze={...L,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},S=ze;function F(e,{generateColorPalettes:o,generateNeutralColorPalettes:n}){let{colorSuccess:r,colorWarning:t,colorError:a,colorInfo:i,colorPrimary:s,colorBgBase:m,colorTextBase:l}=e,c=o(s),p=o(r),g=o(t),f=o(a),C=o(i),P=n(m,l),z=e.colorLink||e.colorInfo,x=o(z),R=new TinyColor(f[1]).mix(new TinyColor(f[3]),50).toHexString();return {...P,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:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:f[1],colorErrorBgHover:f[2],colorErrorBgFilledHover:R,colorErrorBgActive:f[3],colorErrorBorder:f[3],colorErrorBorderHover:f[4],colorErrorHover:f[5],colorError:f[6],colorErrorActive:f[7],colorErrorTextHover:f[8],colorErrorText:f[9],colorErrorTextActive:f[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:C[1],colorInfoBgHover:C[2],colorInfoBorder:C[3],colorInfoBorderHover:C[4],colorInfoHover:C[4],colorInfo:C[6],colorInfoActive:C[7],colorInfoTextHover:C[8],colorInfoText:C[9],colorInfoTextActive:C[10],colorLinkHover:x[4],colorLink:x[6],colorLinkActive:x[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var Re=e=>{let o=e,n=e,r=e,t=e;return e<6&&e>=5?o=e+1:e<16&&e>=6?o=e+2:e>=16&&(o=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?t=4:e>=8&&(t=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:o,borderRadiusOuter:t}},te=Re;function N(e){let{motionUnit:o,motionBase:n,borderRadius:r,lineWidth:t}=e;return {motionDurationFast:`${(n+o).toFixed(1)}s`,motionDurationMid:`${(n+o*2).toFixed(1)}s`,motionDurationSlow:`${(n+o*3).toFixed(1)}s`,lineWidthBold:t+1,...te(r)}}var $e=e=>{let{controlHeight:o}=e;return {controlHeightSM:o*.75,controlHeightXS:o*.5,controlHeightLG:o*1.25}},ne=$e;function re(e){return (e+8)/e}function B(e){let o=new Array(10).fill(null).map((n,r)=>{let t=r-1,a=e*Math.E**(t/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return o[1]=e,o.map(n=>({size:n,lineHeight:re(n)}))}var Le=e=>{let o=B(e),n=o.map(c=>c.size),r=o.map(c=>c.lineHeight),t=n[1],a=n[0],i=n[2],s=r[1],m=r[0],l=r[2];return {fontSizeSM:a,fontSize:t,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:l,lineHeightSM:m,fontHeight:Math.round(s*t),fontHeightLG:Math.round(l*i),fontHeightSM:Math.round(m*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},ie=Le;function D(e){let{sizeUnit:o,sizeStep:n}=e;return {sizeXXL:o*(n+8),sizeXL:o*(n+4),sizeLG:o*(n+2),sizeMD:o*(n+1),sizeMS:o*n,size:o*n,sizeSM:o*(n-1),sizeXS:o*(n-2),sizeXXS:o*(n-3)}}var u=(e,o)=>new TinyColor(e).setAlpha(o).toRgbString(),b=(e,o)=>new TinyColor(e).darken(o).toHexString();var ce=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]}},le=(e,o)=>{let n=e||"#fff",r=o||"#000";return {colorBgBase:n,colorTextBase:r,colorText:u(r,.88),colorTextSecondary:u(r,.65),colorTextTertiary:u(r,.45),colorTextQuaternary:u(r,.25),colorFill:u(r,.15),colorFillSecondary:u(r,.06),colorFillTertiary:u(r,.04),colorFillQuaternary:u(r,.02),colorBgSolid:u(r,1),colorBgSolidHover:u(r,.75),colorBgSolidActive:u(r,.95),colorBgLayout:b(n,4),colorBgContainer:b(n,0),colorBgElevated:b(n,0),colorBgSpotlight:u(r,.85),colorBgBlur:"transparent",colorBorder:b(n,15),colorBorderSecondary:b(n,6)}};function G(e){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let o=Object.keys(L).map(n=>{let r=e[n]===presetPrimaryColors[n]?presetPalettes[n]:generate(e[n]);return new Array(10).fill(1).reduce((t,a,i)=>(t[`${n}-${i+1}`]=r[i],t[`${n}${i+1}`]=r[i],t),{})}).reduce((n,r)=>(n={...n,...r},n),{});return {...e,...o,...F(e,{generateColorPalettes:ce,generateNeutralColorPalettes:le}),...ie(e.fontSize),...D(e),...ne(e),...N(e)}}var se=createTheme(G),pe={token:S,override:{override:S},hashed:true},W=M__default.createContext(pe);function X(e){return e>=0&&e<=255}function De(e,o){let{r:n,g:r,b:t,a}=new TinyColor(e).toRgb();if(a<1)return e;let{r:i,g:s,b:m}=new TinyColor(o).toRgb();for(let l=.01;l<=1;l+=.01){let c=Math.round((n-i*(1-l))/l),p=Math.round((r-s*(1-l))/l),g=Math.round((t-m*(1-l))/l);if(X(c)&&X(p)&&X(g))return new TinyColor({r:c,g:p,b:g,a:Math.round(l*100)/100}).toRgbString()}return new TinyColor({r:n,g:r,b:t,a:1}).toRgbString()}var k=De;function v(e){let{override:o,...n}=e,r={...o};Object.keys(S).forEach(g=>{delete r[g];});let t={...n,...r},a=480,i=576,s=768,m=992,l=1200,c=1600;return t.motion===false&&(t.motionDurationFast="0s",t.motionDurationMid="0s",t.motionDurationSlow="0s"),{...t,colorFillContent:t.colorFillSecondary,colorFillContentHover:t.colorFill,colorFillAlter:t.colorFillQuaternary,colorBgContainerDisabled:t.colorFillTertiary,colorBorderBg:t.colorBgContainer,colorSplit:k(t.colorBorderSecondary,t.colorBgContainer),colorTextPlaceholder:t.colorTextQuaternary,colorTextDisabled:t.colorTextQuaternary,colorTextHeading:t.colorText,colorTextLabel:t.colorTextSecondary,colorTextDescription:t.colorTextTertiary,colorTextLightSolid:t.colorWhite,colorHighlight:t.colorError,colorBgTextHover:t.colorFillSecondary,colorBgTextActive:t.colorFill,colorIcon:t.colorTextTertiary,colorIconHover:t.colorText,colorErrorOutline:k(t.colorErrorBg,t.colorBgContainer),colorWarningOutline:k(t.colorWarningBg,t.colorBgContainer),fontSizeIcon:t.fontSizeSM,lineWidthFocus:t.lineWidth*3,lineWidth:t.lineWidth,controlOutlineWidth:t.lineWidth*2,controlInteractiveSize:t.controlHeight/2,controlItemBgHover:t.colorFillTertiary,controlItemBgActive:t.colorPrimaryBg,controlItemBgActiveHover:t.colorPrimaryBgHover,controlItemBgActiveDisabled:t.colorFill,controlTmpOutline:t.colorFillQuaternary,controlOutline:k(t.colorPrimaryBg,t.colorBgContainer),lineType:t.lineType,borderRadius:t.borderRadius,borderRadiusXS:t.borderRadiusXS,borderRadiusSM:t.borderRadiusSM,borderRadiusLG:t.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:t.sizeXXS,paddingXS:t.sizeXS,paddingSM:t.sizeSM,padding:t.size,paddingMD:t.sizeMD,paddingLG:t.sizeLG,paddingXL:t.sizeXL,paddingContentHorizontalLG:t.sizeLG,paddingContentVerticalLG:t.sizeMS,paddingContentHorizontal:t.sizeMS,paddingContentVertical:t.sizeSM,paddingContentHorizontalSM:t.size,paddingContentVerticalSM:t.sizeXS,marginXXS:t.sizeXXS,marginXS:t.sizeXS,marginSM:t.sizeSM,margin:t.size,marginMD:t.sizeMD,marginLG:t.sizeLG,marginXL:t.sizeXL,marginXXL:t.sizeXXL,boxShadow:`
|
|
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:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:m-1,screenLG:m,screenLGMin:m,screenLGMax:l-1,screenXL:l,screenXLMin:l,screenXLMax:c-1,screenXXL:c,screenXXLMin:c,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
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)",...r}}var _={lineHeight:true,lineHeightSM:true,lineHeightLG:true,lineHeightHeading1:true,lineHeightHeading2:true,lineHeightHeading3:true,lineHeightHeading4:true,lineHeightHeading5:true,opacityLoading:true,fontWeightStrong:true,zIndexPopupBase:true,zIndexBase:true,opacityImage:true},Ge={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},We={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},me=(e,o,n)=>{let r=n.getDerivativeToken(e),{override:t,...a}=o,i={...r,override:t};return i=v(i),a&&Object.entries(a).forEach(([s,m])=>{let{theme:l,...c}=m,p=c;l&&(p=me({...i,...c},{override:c},l)),i[s]=p;}),i};function T(){let{token:e,hashed:o,theme:n,override:r,cssVar:t}=M__default.useContext(W),a=`${oe}-${o||""}`,i=n||se,[s,m,l]=useCacheToken(i,[S,e],{salt:a,override:r,getComputedToken:me,formatToken:v,cssVar:t&&{prefix:t.prefix,key:t.key,unitless:_,ignore:Ge,preserve:We}});return [i,l,o?m:"",s,t]}function ge(){}var y=null;function _e(){y=null,resetWarned();}var fe=ge;process.env.NODE_ENV!=="production"&&(fe=(e,o,n)=>{Xe(e,`[swiftcrab: ${o}] ${n}`),process.env.NODE_ENV==="test"&&_e();});var Ue=M.createContext({});process.env.NODE_ENV!=="production"?e=>{let{strict:o}=M.useContext(Ue),n=(r,t,a)=>{if(!r)if(o===false&&t==="deprecated"){let i=y;y||(y={}),y[e]=y[e]||[],y[e].includes(a||"")||y[e].push(a||""),i||console.warn("[swiftcrab] There exists deprecated usage in your code:",y);}else fe(r,e,a);};return n.deprecated=(r,t,a,i)=>{n(r,"deprecated",`\`${t}\` is deprecated. Please use \`${a}\` instead.${i?` ${i}`:""}`);},n}:()=>{let e=()=>{};return e.deprecated=ge,e};var Ze=M__default.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ze.displayName="zIndexContext");var de=100,Qe=10,U=de*Qe;var ue=(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}),Je=()=>({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 Ce=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"}}}),ye=(e,o,n,r)=>{let t=`[class^="${o}"], [class*=" ${o}"]`,a=n?`.${n}`:t,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},s={};return r!==false&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:{...s,...i,[t]:i}}},Ye=e=>({outline:`${unit(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Se=e=>({"&:focus-visible":{...Ye(e)}}),V=e=>({[`.${e}`]:{...Je(),[`.${e} .${e}-icon`]:{display:"block"}}});var be="ant",q="anticon";var eo=(e,o)=>o||(e?`${be}-${e}`:be),I=M.createContext({getPrefixCls:eo,iconPrefixCls:q}),{Consumer:kt}=I;var{genStyleHooks:Z,genComponentStyleHook:to,genSubStyleComponent:Q}=genStyleUtils({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:o}=useContext(I);return {rootPrefixCls:e(),iconPrefixCls:o}},useToken:()=>{let[e,o,n,r,t]=T();return {theme:e,realToken:o,hashId:n,token:r,cssVar:t}},useCSP:()=>{let{csp:e}=useContext(I);return e??{}},getResetStyles:(e,o)=>[{"&":Ce(e)},V(o?.prefix.iconPrefixCls??q)],getCommonStyle:ye,getCompUnitless:(()=>_)});var no=e=>{let{componentCls:o,notificationMarginEdge:n,animationMaxHeight:r}=e,t=`${o}-notice`,a=new Keyframes("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),i=new Keyframes("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new Keyframes("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),m=new Keyframes("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return {[o]:{[`&${o}-top, &${o}-bottom`]:{marginInline:0,[t]:{marginInline:"auto auto"}},[`&${o}-top`]:{[`${o}-fade-enter${o}-fade-enter-active, ${o}-fade-appear${o}-fade-appear-active`]:{animationName:i}},[`&${o}-bottom`]:{[`${o}-fade-enter${o}-fade-enter-active, ${o}-fade-appear${o}-fade-appear-active`]:{animationName:s}},[`&${o}-topRight, &${o}-bottomRight`]:{[`${o}-fade-enter${o}-fade-enter-active, ${o}-fade-appear${o}-fade-appear-active`]:{animationName:a}},[`&${o}-topLeft, &${o}-bottomLeft`]:{marginRight:{value:0,_skip_check_:true},marginLeft:{value:n,_skip_check_:true},[t]:{marginInlineEnd:"auto",marginInlineStart:0},[`${o}-fade-enter${o}-fade-enter-active, ${o}-fade-appear${o}-fade-appear-active`]:{animationName:m}}}}},he=no;var ve=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"];var ro={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},io=(e,o)=>{let{componentCls:n}=e;return {[`${n}-${o}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[o.startsWith("top")?"top":"bottom"]:0,[ro[o]]:{value:0,_skip_check_:true}}}}},ao=e=>{let o={};for(let n=1;n<e.notificationStackLayer;n++)o[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return {[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"},...o}},co=e=>{let o={};for(let n=1;n<e.notificationStackLayer;n++)o[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return {...o}},lo=e=>{let{componentCls:o}=e;return {[`${o}-stack`]:{[`& > ${o}-notice-wrapper`]:{transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute",...ao(e)}},[`${o}-stack:not(${o}-stack-expanded)`]:{[`& > ${o}-notice-wrapper`]:{...co(e)}},[`${o}-stack${o}-stack-expanded`]:{[`& > ${o}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}},...ve.map(n=>io(e,n)).reduce((n,r)=>({...n,...r}),{})}},Me=lo;var K=e=>{let{iconCls:o,componentCls:n,boxShadow:r,fontSizeLG:t,notificationMarginBottom:a,borderRadiusLG:i,colorSuccess:s,colorInfo:m,colorWarning:l,colorError:c,colorTextHeading:p,notificationBg:g,notificationPadding:f,notificationMarginEdge:C,notificationProgressBg:P,notificationProgressHeight:z,fontSize:x,lineHeight:R,width:Ie,notificationIconSize:$,colorText:we}=e,d=`${n}-notice`;return {position:"relative",marginBottom:a,marginInlineStart:"auto",background:g,borderRadius:i,boxShadow:r,[d]:{padding:f,width:Ie,maxWidth:`calc(100vw - ${unit(e.calc(C).mul(2).equal())})`,overflow:"hidden",lineHeight:R,wordWrap:"break-word"},[`${d}-message`]:{marginBottom:e.marginXS,color:p,fontSize:t,lineHeight:e.lineHeightLG},[`${d}-description`]:{fontSize:x,color:we},[`${d}-closable ${d}-message`]:{paddingInlineEnd:e.paddingLG},[`${d}-with-icon ${d}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add($).equal(),fontSize:t},[`${d}-with-icon ${d}-description`]:{marginInlineStart:e.calc(e.marginSM).add($).equal(),fontSize:x},[`${d}-icon`]:{position:"absolute",fontSize:$,lineHeight:1,[`&-success${o}`]:{color:s},[`&-info${o}`]:{color:m},[`&-warning${o}`]:{color:l},[`&-error${o}`]:{color:c}},[`${d}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},...Se(e)},[`${d}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${unit(i)} * 2)`,left:{_skip_check_:true,value:i},right:{_skip_check_:true,value:i},bottom:0,blockSize:z,border:0,"&, &::-webkit-progress-bar":{borderRadius:i,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:P},"&::-webkit-progress-value":{borderRadius:i,background:P}},[`${d}-btn`]:{float:"right",marginTop:e.marginSM}}},po=e=>{let{componentCls:o,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:t,motionEaseInOut:a}=e,i=`${o}-notice`,s=new Keyframes("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return [{[o]:{...ue(e),position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:true},[`${o}-hook-holder`]:{position:"relative"},[`${o}-fade-appear-prepare`]:{opacity:"0 !important"},[`${o}-fade-enter, ${o}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:a,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${o}-fade-leave`]:{animationTimingFunction:a,animationFillMode:"both",animationDuration:t,animationPlayState:"paused"},[`${o}-fade-enter${o}-fade-enter-active, ${o}-fade-appear${o}-fade-appear-active`]:{animationPlayState:"running"},[`${o}-fade-leave${o}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${i}-btn`]:{float:"left"}}}},{[o]:{[`${i}-wrapper`]:{...K(e)}}}]},J=e=>({zIndexPopup:e.zIndexPopupBase+U+50,width:384}),Y=e=>{let o=e.paddingMD,n=e.paddingLG;return mergeToken(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:o,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${unit(e.paddingMD)} ${unit(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})};Z("Notification",e=>{let o=Y(e);return [po(o),he(o),Me(o)]},J);var Cn=Q(["Notification","PurePanel"],e=>{let o=`${e.componentCls}-notice`,n=Y(e);return {[`${o}-pure-panel`]:{...K(n),width:n.width,maxWidth:`calc(100vw - ${unit(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0}}},J);export{Cn as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var n=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"];var a={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},r=(t,e)=>{let{componentCls:o}=t;return {[`${o}-${e}`]:{[`&${o}-stack > ${o}-notice-wrapper`]:{[e.startsWith("top")?"top":"bottom"]:0,[a[e]]:{value:0,_skip_check_:true}}}}},c=t=>{let e={};for(let o=1;o<t.notificationStackLayer;o++)e[`&:nth-last-child(${o+1})`]={overflow:"hidden",[`& > ${t.componentCls}-notice`]:{opacity:0,transition:`opacity ${t.motionDurationMid}`}};return {[`&:not(:nth-last-child(-n+${t.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"},...e}},s=t=>{let e={};for(let o=1;o<t.notificationStackLayer;o++)e[`&:nth-last-child(${o+1})`]={background:t.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return {...e}},l=t=>{let{componentCls:e}=t;return {[`${e}-stack`]:{[`& > ${e}-notice-wrapper`]:{transition:`all ${t.motionDurationSlow}, backdrop-filter 0s`,position:"absolute",...c(t)}},[`${e}-stack:not(${e}-stack-expanded)`]:{[`& > ${e}-notice-wrapper`]:{...s(t)}},[`${e}-stack${e}-stack-expanded`]:{[`& > ${e}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${t.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:t.margin,width:"100%",insetInline:0,bottom:t.calc(t.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}},...n.map(o=>r(t,o)).reduce((o,i)=>({...o,...i}),{})}},f=l;export{f as default};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { NotificationConfig, NotificationInstance } from './interface';
|
|
3
|
+
type HolderProps = NotificationConfig & {
|
|
4
|
+
onAllRemoved?: VoidFunction;
|
|
5
|
+
};
|
|
6
|
+
export declare function useInternalNotification(notificationConfig?: HolderProps): readonly [NotificationInstance, React.ReactElement];
|
|
7
|
+
export default function useNotification(notificationConfig?: NotificationConfig): readonly [NotificationInstance, React.ReactElement<unknown, string | React.JSXElementConstructor<any>>];
|
|
8
|
+
export {};
|