@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,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface GroupProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
size?: 'large' | 'small' | 'default';
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
onMouseEnter?: React.MouseEventHandler<HTMLSpanElement>;
|
|
8
|
+
onMouseLeave?: React.MouseEventHandler<HTMLSpanElement>;
|
|
9
|
+
onFocus?: React.FocusEventHandler<HTMLSpanElement>;
|
|
10
|
+
onBlur?: React.FocusEventHandler<HTMLSpanElement>;
|
|
11
|
+
prefixCls?: string;
|
|
12
|
+
compact?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const Group: React.FC<GroupProps>;
|
|
15
|
+
export default Group;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import*as m from'react';import m__default,{createContext,useContext,useMemo}from'react';import yn from'classnames';import tt,{resetWarned}from'rc-util/lib/warning';import {createTheme,useCacheToken,unit,useStyleRegister}from'@ant-design/cssinjs';import qt from'@ant-design/icons/lib/components/Context';import Xt from'rc-util/lib/hooks/useMemo';import {merge}from'rc-util/lib/utils/set';import'rc-pagination/lib/locale/en_US';import st from'rc-picker/lib/locale/en_US';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';import vt from'rc-util/lib/Dom/canUseDom';import {updateCSS}from'rc-util/lib/Dom/dynamicCSS';import _t from'rc-util/lib/isEqual';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import {Provider}from'rc-motion';import'rc-field-form';import'rc-util/lib/omit';function qe(){}var I=null;function it(){I=null,resetWarned();}var xe=qe;process.env.NODE_ENV!=="production"&&(xe=(e,o,r)=>{tt(e,`[swiftcrab: ${o}] ${r}`),process.env.NODE_ENV==="test"&&it();});var Se=m.createContext({}),P=process.env.NODE_ENV!=="production"?e=>{let{strict:o}=m.useContext(Se),r=(n,t,l)=>{if(!n)if(o===false&&t==="deprecated"){let i=I;I||(I={}),I[e]=I[e]||[],I[e].includes(l||"")||I[e].push(l||""),i||console.warn("[swiftcrab] There exists deprecated usage in your code:",I);}else xe(n,e,l);};return r.deprecated=(n,t,l,i)=>{r(n,"deprecated",`\`${t}\` is deprecated. Please use \`${l}\` instead.${i?` ${i}`:""}`);},r}:()=>{let e=()=>{};return e.deprecated=qe,e},H=xe;var Ke=createContext(void 0);({lang:{...st}});var S="${label} is not a valid ${type}",dt={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:S,method:S,array:S,object:S,number:S,date:S,boolean:S,integer:S,float:S,regexp:S,email:S,url:S,hex:S},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}"}}}},L=dt;({...L.Modal});var ae=[],Ye=()=>ae.reduce((e,o)=>({...e,...o}),L.Modal);function Je(e){if(e){let o={...e};return ae.push(o),Ye(),()=>{ae=ae.filter(r=>r!==o),Ye();}}({...L.Modal});}var gt=createContext(void 0),K=gt;var be="internalMark",eo=e=>{let{locale:o={},children:r,_ANT_MARK__:n}=e;process.env.NODE_ENV!=="production"&&P("LocaleProvider")(n===be,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),m.useEffect(()=>Je(o?.Modal),[o]);let t=m.useMemo(()=>({...o,exist:true}),[o]);return m.createElement(K.Provider,{value:t},r)};process.env.NODE_ENV!=="production"&&(eo.displayName="LocaleProvider");var oo=eo;var he={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"},ft={...he,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},k=ft;function Pe(e,{generateColorPalettes:o,generateNeutralColorPalettes:r}){let{colorSuccess:n,colorWarning:t,colorError:l,colorInfo:i,colorPrimary:s,colorBgBase:c,colorTextBase:a}=e,p=o(s),d=o(n),g=o(t),f=o(l),x=o(i),E=r(c,a),V=e.colorLink||e.colorInfo,b=o(V),X=new TinyColor(f[1]).mix(new TinyColor(f[3]),50).toHexString();return {...E,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:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:f[1],colorErrorBgHover:f[2],colorErrorBgFilledHover:X,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:x[1],colorInfoBgHover:x[2],colorInfoBorder:x[3],colorInfoBorderHover:x[4],colorInfoHover:x[4],colorInfo:x[6],colorInfoActive:x[7],colorInfoTextHover:x[8],colorInfoText:x[9],colorInfoTextActive:x[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var ut=e=>{let o=e,r=e,n=e,t=e;return e<6&&e>=5?o=e+1:e<16&&e>=6?o=e+2:e>=16&&(o=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?t=4:e>=8&&(t=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:o,borderRadiusOuter:t}},ro=ut;function ve(e){let{motionUnit:o,motionBase:r,borderRadius:n,lineWidth:t}=e;return {motionDurationFast:`${(r+o).toFixed(1)}s`,motionDurationMid:`${(r+o*2).toFixed(1)}s`,motionDurationSlow:`${(r+o*3).toFixed(1)}s`,lineWidthBold:t+1,...ro(n)}}var Ct=e=>{let{controlHeight:o}=e;return {controlHeightSM:o*.75,controlHeightXS:o*.5,controlHeightLG:o*1.25}},to=Ct;function no(e){return (e+8)/e}function $e(e){let o=new Array(10).fill(null).map((r,n)=>{let t=n-1,l=e*Math.E**(t/5),i=n>1?Math.floor(l):Math.ceil(l);return Math.floor(i/2)*2});return o[1]=e,o.map(r=>({size:r,lineHeight:no(r)}))}var xt=e=>{let o=$e(e),r=o.map(p=>p.size),n=o.map(p=>p.lineHeight),t=r[1],l=r[0],i=r[2],s=n[1],c=n[0],a=n[2];return {fontSizeSM:l,fontSize:t,fontSizeLG:i,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:a,lineHeightSM:c,fontHeight:Math.round(s*t),fontHeightLG:Math.round(a*i),fontHeightSM:Math.round(c*l),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},io=xt;function Ie(e){let{sizeUnit:o,sizeStep:r}=e;return {sizeXXL:o*(r+8),sizeXL:o*(r+4),sizeLG:o*(r+2),sizeMD:o*(r+1),sizeMS:o*r,size:o*r,sizeSM:o*(r-1),sizeXS:o*(r-2),sizeXXS:o*(r-3)}}var y=(e,o)=>new TinyColor(e).setAlpha(o).toRgbString(),W=(e,o)=>new TinyColor(e).darken(o).toHexString();var lo=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]}},so=(e,o)=>{let r=e||"#fff",n=o||"#000";return {colorBgBase:r,colorTextBase:n,colorText:y(n,.88),colorTextSecondary:y(n,.65),colorTextTertiary:y(n,.45),colorTextQuaternary:y(n,.25),colorFill:y(n,.15),colorFillSecondary:y(n,.06),colorFillTertiary:y(n,.04),colorFillQuaternary:y(n,.02),colorBgSolid:y(n,1),colorBgSolidHover:y(n,.75),colorBgSolidActive:y(n,.95),colorBgLayout:W(r,4),colorBgContainer:W(r,0),colorBgElevated:W(r,0),colorBgSpotlight:y(n,.85),colorBgBlur:"transparent",colorBorder:W(r,15),colorBorderSecondary:W(r,6)}};function Re(e){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let o=Object.keys(he).map(r=>{let n=e[r]===presetPrimaryColors[r]?presetPalettes[r]:generate(e[r]);return new Array(10).fill(1).reduce((t,l,i)=>(t[`${r}-${i+1}`]=n[i],t[`${r}${i+1}`]=n[i],t),{})}).reduce((r,n)=>(r={...r,...n},r),{});return {...e,...o,...Pe(e,{generateColorPalettes:lo,generateNeutralColorPalettes:so}),...io(e.fontSize),...Ie(e),...to(e),...ve(e)}}var le=createTheme(Re),Q={token:k,override:{override:k},hashed:true},Y=m__default.createContext(Q);var se="ant",J="anticon";var Tt=(e,o)=>o||(e?`${se}-${e}`:se),v=m.createContext({getPrefixCls:Tt,iconPrefixCls:J}),{Consumer:Pt}=v;var It=`-ant-${Date.now()}-${Math.random()}`;function kt(e,o){let r={},n=(i,s)=>{let c=i.clone();return c=s?.(c)||c,c.toRgbString()},t=(i,s)=>{let c=new TinyColor(i),a=generate(c.toRgbString());r[`${s}-color`]=n(c),r[`${s}-color-disabled`]=a[1],r[`${s}-color-hover`]=a[4],r[`${s}-color-active`]=a[6],r[`${s}-color-outline`]=c.clone().setAlpha(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=a[0],r[`${s}-color-deprecated-border`]=a[2];};if(o.primaryColor){t(o.primaryColor,"primary");let i=new TinyColor(o.primaryColor),s=generate(i.toRgbString());s.forEach((a,p)=>{r[`primary-${p+1}`]=a;}),r["primary-color-deprecated-l-35"]=n(i,a=>a.lighten(35)),r["primary-color-deprecated-l-20"]=n(i,a=>a.lighten(20)),r["primary-color-deprecated-t-20"]=n(i,a=>a.tint(20)),r["primary-color-deprecated-t-50"]=n(i,a=>a.tint(50)),r["primary-color-deprecated-f-12"]=n(i,a=>a.setAlpha(a.getAlpha()*.12));let c=new TinyColor(s[0]);r["primary-color-active-deprecated-f-30"]=n(c,a=>a.setAlpha(a.getAlpha()*.3)),r["primary-color-active-deprecated-d-02"]=n(c,a=>a.darken(2));}return o.successColor&&t(o.successColor,"success"),o.warningColor&&t(o.warningColor,"warning"),o.errorColor&&t(o.errorColor,"error"),o.infoColor&&t(o.infoColor,"info"),`
|
|
4
|
+
:root {
|
|
5
|
+
${Object.keys(r).map(i=>`--${e}-${i}: ${r[i]};`).join(`
|
|
6
|
+
`)}
|
|
7
|
+
}
|
|
8
|
+
`.trim()}function mo(e,o){let r=kt(e,o);vt()?updateCSS(r,`${It}-dynamic-theme`):H(false,"ConfigProvider","SSR do not support dynamic theme with css variables.");}var Ee=m.createContext(false),go=({children:e,disabled:o})=>{let r=m.useContext(Ee);return m.createElement(Ee.Provider,{value:o??r},e)},fo=Ee;var Le=m.createContext(void 0),uo=({children:e,size:o})=>{let r=m.useContext(Le);return m.createElement(Le.Provider,{value:o||r},e)},Z=Le;function Mt(){let e=useContext(fo),o=useContext(Z);return {componentDisabled:e,componentSize:o}}var xo=Mt;var yo={version:"0.0.2"};var bo=yo.version;function Be(e){return e>=0&&e<=255}function wt(e,o){let{r,g:n,b:t,a:l}=new TinyColor(e).toRgb();if(l<1)return e;let{r:i,g:s,b:c}=new TinyColor(o).toRgb();for(let a=.01;a<=1;a+=.01){let p=Math.round((r-i*(1-a))/a),d=Math.round((n-s*(1-a))/a),g=Math.round((t-c*(1-a))/a);if(Be(p)&&Be(d)&&Be(g))return new TinyColor({r:p,g:d,b:g,a:Math.round(a*100)/100}).toRgbString()}return new TinyColor({r,g:n,b:t,a:1}).toRgbString()}var ee=wt;function pe(e){let{override:o,...r}=e,n={...o};Object.keys(k).forEach(g=>{delete n[g];});let t={...r,...n},l=480,i=576,s=768,c=992,a=1200,p=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:ee(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:ee(t.colorErrorBg,t.colorBgContainer),colorWarningOutline:ee(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:ee(t.colorPrimaryBg,t.colorBgContainer),lineType:t.lineType,borderRadius:t.borderRadius,borderRadiusXS:t.borderRadiusXS,borderRadiusSM:t.borderRadiusSM,borderRadiusLG:t.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:t.sizeXXS,paddingXS:t.sizeXS,paddingSM:t.sizeSM,padding:t.size,paddingMD:t.sizeMD,paddingLG:t.sizeLG,paddingXL:t.sizeXL,paddingContentHorizontalLG:t.sizeLG,paddingContentVerticalLG:t.sizeMS,paddingContentHorizontal:t.sizeMS,paddingContentVertical:t.sizeSM,paddingContentHorizontalSM:t.size,paddingContentVerticalSM:t.sizeXS,marginXXS:t.sizeXXS,marginXS:t.sizeXS,marginSM:t.sizeSM,margin:t.size,marginMD:t.sizeMD,marginLG:t.sizeLG,marginXL:t.sizeXL,marginXXL:t.sizeXXL,boxShadow:`
|
|
9
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
10
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
11
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
12
|
+
`,boxShadowSecondary:`
|
|
13
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
14
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
15
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
16
|
+
`,boxShadowTertiary:`
|
|
17
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
18
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
19
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
20
|
+
`,screenXS:l,screenXSMin:l,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:c-1,screenLG:c,screenLGMin:c,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)",...n}}var Fe={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},Bt={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},zt={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},ho=(e,o,r)=>{let n=r.getDerivativeToken(e),{override:t,...l}=o,i={...n,override:t};return i=pe(i),l&&Object.entries(l).forEach(([s,c])=>{let{theme:a,...p}=c,d=p;a&&(d=ho({...i,...p},{override:p},a)),i[s]=d;}),i};function w(){let{token:e,hashed:o,theme:r,override:n,cssVar:t}=m__default.useContext(Y),l=`${bo}-${o||""}`,i=r||le,[s,c,a]=useCacheToken(i,[k,e],{salt:l,override:n,getComputedToken:ho,formatToken:pe,cssVar:t&&{prefix:t.prefix,key:t.key,unitless:Fe,ignore:Bt,preserve:zt}});return [i,a,o?c:"",s,t]}var Ae=(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}),Ft=()=>({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"}}),To=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Po=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"}}}),vo=(e,o,r,n)=>{let t=`[class^="${o}"], [class*=" ${o}"]`,l=r?`.${r}`:t,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},s={};return n!==false&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[l]:{...s,...i,[t]:i}}};var de=e=>({[`.${e}`]:{...Ft(),[`.${e} .${e}-icon`]:{display:"block"}}});var{genStyleHooks:He,genComponentStyleHook:Ht,genSubStyleComponent:Ot}=genStyleUtils({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:o}=useContext(v);return {rootPrefixCls:e(),iconPrefixCls:o}},useToken:()=>{let[e,o,r,n,t]=w();return {theme:e,realToken:o,hashId:r,token:n,cssVar:t}},useCSP:()=>{let{csp:e}=useContext(v);return e??{}},getResetStyles:(e,o)=>[{"&":Po(e)},de(o?.prefix.iconPrefixCls??J)],getCommonStyle:vo,getCompUnitless:(()=>Fe)});var Dt=(e,o)=>{let[r,n]=w();return useStyleRegister({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>o?.nonce,layer:{name:"antd"}},()=>[de(e)])},me=Dt;var Nt={...m},{useId:Io}=Nt,jt=()=>"",Vt=typeof Io>"u"?jt:Io,ko=Vt;function Oe(e,o,r){let n=P("ConfigProvider"),t=e||{},l=t.inherit===false||!o?{...Q,hashed:o?.hashed??Q.hashed,cssVar:o?.cssVar}:o,i=ko();if(process.env.NODE_ENV!=="production"){let s=t.cssVar||l.cssVar,c=!!(typeof t.cssVar=="object"&&t.cssVar?.key||i);n(!s||c,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.");}return Xt(()=>{if(!e)return o;let s={...l.components};Object.keys(e.components||{}).forEach(p=>{s[p]={...s[p],...e.components[p]};});let c=`css-var-${i.replace(/:/g,"")}`,a=(t.cssVar??l.cssVar)&&{prefix:r?.prefixCls,...typeof l.cssVar=="object"?l.cssVar:{},...typeof t.cssVar=="object"?t.cssVar:{},key:typeof t.cssVar=="object"&&t.cssVar?.key||c};return {...l,...t,token:{...l.token,...t.token},components:s,cssVar:a}},[t,l],(s,c)=>s.some((a,p)=>{let d=c[p];return !_t(a,d,true)}))}function We(e){let{children:o}=e,[,r]=w(),{motion:n}=r,t=m.useRef(false);return t.current=t.current||n===false,t.current?m.createElement(Provider,{motion:n},o):o}var Ro=m.memo(({dropdownMatchSelectWidth:e})=>(P("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(Ro.displayName="PropWarning");var wo=process.env.NODE_ENV!=="production"?Ro:()=>null;var De=false;process.env.NODE_ENV!=="production"?e=>{H(!De,e,"Static function can not consume context like dynamic theme. Please use 'App' component instead.");}:null;var Yt=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],Lo;function on(){return Lo||se}function rn(e){return Object.keys(e).some(o=>o.endsWith("Color"))}var tn=e=>{let{prefixCls:o,iconPrefixCls:r,theme:n,holderRender:t}=e;o!==void 0&&(Lo=o),n&&(rn(n)?(H(false,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),mo(on(),n)):n);};var nn=e=>{let{children:o,csp:r,autoInsertSpaceInButton:n,alert:t,anchor:l,form:i,locale:s,componentSize:c,direction:a,space:p,splitter:d,virtual:g,dropdownMatchSelectWidth:f,popupMatchSelectWidth:x,popupOverflow:E,legacyLocale:V,parentContext:b,iconPrefixCls:X,theme:_,componentDisabled:je,segmented:Jo,statistic:Zo,spin:er,calendar:or,carousel:rr,cascader:tr,collapse:nr,typography:ir,checkbox:ar,descriptions:lr,divider:sr,drawer:cr,skeleton:pr,steps:dr,image:mr,layout:gr,list:fr,mentions:ur,modal:Cr,progress:xr,result:Sr,slider:yr,breadcrumb:br,menu:hr,pagination:Tr,input:Pr,textArea:vr,empty:$r,badge:Ir,radio:kr,rate:Mr,switch:Rr,transfer:wr,avatar:Er,message:Lr,tag:Br,table:zr,card:Fr,tabs:Ar,timeline:Hr,timePicker:Or,upload:Wr,notification:Dr,tree:Gr,colorPicker:Nr,datePicker:jr,rangePicker:Vr,flex:Xr,wave:_r,dropdown:Ur,warning:qr,tour:Kr,variant:Qr,inputNumber:Yr,treeSelect:Jr}=e,Ve=m.useCallback((u,T)=>{let{prefixCls:F}=e;if(T)return T;let A=F||b.getPrefixCls("");return u?`${A}-${u}`:A},[b.getPrefixCls,e.prefixCls]),U=X||b.iconPrefixCls||J,q=r||b.csp;me(U,q);let oe=Oe(_,b.theme,{prefixCls:Ve("")});process.env.NODE_ENV!=="production"&&(De=De||!!oe);let ue={csp:q,autoInsertSpaceInButton:n,alert:t,anchor:l,locale:s||V,direction:a,space:p,splitter:d,virtual:g,popupMatchSelectWidth:x??f,popupOverflow:E,getPrefixCls:Ve,iconPrefixCls:U,theme:oe,segmented:Jo,statistic:Zo,spin:er,calendar:or,carousel:rr,cascader:tr,collapse:nr,typography:ir,checkbox:ar,descriptions:lr,divider:sr,drawer:cr,skeleton:pr,steps:dr,image:mr,input:Pr,textArea:vr,layout:gr,list:fr,mentions:ur,modal:Cr,progress:xr,result:Sr,slider:yr,breadcrumb:br,menu:hr,pagination:Tr,empty:$r,badge:Ir,radio:kr,rate:Mr,switch:Rr,transfer:wr,avatar:Er,message:Lr,tag:Br,table:zr,card:Fr,tabs:Ar,timeline:Hr,timePicker:Or,upload:Wr,notification:Dr,tree:Gr,colorPicker:Nr,datePicker:jr,rangePicker:Vr,flex:Xr,wave:_r,dropdown:Ur,warning:qr,tour:Kr,variant:Qr,inputNumber:Yr,treeSelect:Jr};process.env.NODE_ENV!=="production"&&P("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");let B={...b};Object.keys(ue).forEach(u=>{ue[u]!==void 0&&(B[u]=ue[u]);}),Yt.forEach(u=>{let T=e[u];T&&(B[u]=T);}),typeof n<"u"&&(B.button={autoInsertSpace:n,...B.button});let z=Xt(()=>B,B,(u,T)=>{let F=Object.keys(u),A=Object.keys(T);return F.length!==A.length||F.some(re=>u[re]!==T[re])}),Zr=m.useMemo(()=>({prefixCls:U,csp:q}),[U,q]),C=m.createElement(m.Fragment,null,m.createElement(wo,{dropdownMatchSelectWidth:f}),o),Xe=m.useMemo(()=>merge(L.Form?.defaultValidateMessages||{},z.locale?.Form?.defaultValidateMessages||{},z.form?.validateMessages||{},i?.validateMessages||{}),[z,i?.validateMessages]);Object.keys(Xe).length>0&&(C=m.createElement(Ke.Provider,{value:Xe},C)),s&&(C=m.createElement(oo,{locale:s,_ANT_MARK__:be},C)),(C=m.createElement(qt.Provider,{value:Zr},C)),c&&(C=m.createElement(uo,{size:c},C)),C=m.createElement(We,null,C);let et=m.useMemo(()=>{let{algorithm:u,token:T,components:F,cssVar:A,...re}=oe||{},_e=u&&(!Array.isArray(u)||u.length>0)?createTheme(u):le,Ce={};Object.entries(F||{}).forEach(([ot,rt])=>{let $={...rt};"algorithm"in $&&($.algorithm===true?$.theme=_e:(Array.isArray($.algorithm)||typeof $.algorithm=="function")&&($.theme=createTheme($.algorithm)),delete $.algorithm),Ce[ot]=$;});let Ue={...k,...T};return {...re,theme:_e,token:Ue,components:Ce,override:{override:Ue,...Ce},cssVar:A}},[oe]);return _&&(C=m.createElement(Y.Provider,{value:et},C)),z.warning&&(C=m.createElement(Se.Provider,{value:z.warning},C)),je!==void 0&&(C=m.createElement(go,{disabled:je},C)),m.createElement(v.Provider,{value:z},C)},j=e=>{let o=m.useContext(v),r=m.useContext(K);return m.createElement(nn,{parentContext:o,legacyLocale:r,...e})};j.ConfigContext=v;j.SizeContext=Z;j.config=tn;j.useConfig=xo;Object.defineProperty(j,"SizeContext",{get:()=>(H(false,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Z)});process.env.NODE_ENV!=="production"&&(j.displayName="ConfigProvider");m.createContext({labelAlign:"right",vertical:false,itemRef:(()=>{})});m.createContext(null);m.createContext({prefixCls:""});var fe=m.createContext({});process.env.NODE_ENV!=="production"&&(fe.displayName="FormItemInputContext");m.createContext(void 0);function an(e,o,r){let{focusElCls:n,focus:t,borderElCls:l}=r,i=l?"> *":"",s=["hover",t?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${i}`).join(",");return {[`&-item:not(${o}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{[s]:{zIndex:2},...n?{[`&${n}`]:{zIndex:2}}:{},[`&[disabled] ${i}`]:{zIndex:0}}}}function ln(e,o,r){let{borderElCls:n}=r,t=n?`> ${n}`:"";return {[`&-item:not(${o}-first-item):not(${o}-last-item) ${t}`]:{borderRadius:0},[`&-item:not(${o}-last-item)${o}-first-item`]:{[`& ${t}, &${e}-sm ${t}, &${e}-lg ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${o}-first-item)${o}-last-item`]:{[`& ${t}, &${e}-sm ${t}, &${e}-lg ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Bo(e,o={focus:true}){let{componentCls:r}=e,n=`${r}-compact`;return {[n]:{...an(e,n,o),...ln(r,n,o)}}}function zo(e){return mergeToken(e,{inputAffixPadding:e.paddingXXS})}var Fo=e=>{let{controlHeight:o,fontSize:r,lineHeight:n,lineWidth:t,controlHeightSM:l,controlHeightLG:i,fontSizeLG:s,lineHeightLG:c,paddingSM:a,controlPaddingHorizontalSM:p,controlPaddingHorizontal:d,colorFillAlter:g,colorPrimaryHover:f,colorPrimary:x,controlOutlineWidth:E,controlOutline:V,colorErrorOutline:b,colorWarningOutline:X,colorBgContainer:_}=e;return {paddingBlock:Math.max(Math.round((o-r*n)/2*10)/10-t,0),paddingBlockSM:Math.max(Math.round((l-r*n)/2*10)/10-t,0),paddingBlockLG:Math.ceil((i-s*c)/2*10)/10-t,paddingInline:a-t,paddingInlineSM:p-t,paddingInlineLG:d-t,addonBg:g,activeBorderColor:x,hoverBorderColor:f,activeShadow:`0 0 0 ${E}px ${V}`,errorActiveShadow:`0 0 0 ${E}px ${b}`,warningActiveShadow:`0 0 0 ${E}px ${X}`,hoverBg:_,activeBg:_,inputFontSize:r,inputFontSizeLG:s,inputFontSizeSM:r}};var sn=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Ge=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":{...sn(mergeToken(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled}))}}),Do=(e,o)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:o.borderColor,"&:hover":{borderColor:o.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:o.activeBorderColor,boxShadow:o.activeShadow,outline:0,backgroundColor:e.activeBg}}),Ao=(e,o)=>({[`&${e.componentCls}-status-${o.status}:not(${e.componentCls}-disabled)`]:{...Do(e,o),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:o.affixColor}},[`&${e.componentCls}-status-${o.status}${e.componentCls}-disabled`]:{borderColor:o.borderColor}}),Go=(e,o)=>({"&-outlined":{...Do(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Ge(e)},...Ao(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...Ao(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...o}}),Ho=(e,o)=>({[`&${e.componentCls}-group-wrapper-status-${o.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:o.addonBorderColor,color:o.addonColor}}}),No=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...Ho(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...Ho(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...Ge(e)}}}}),jo=(e,o)=>{let{componentCls:r}=e;return {"&-borderless":{background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}},...o}}},Vo=(e,o)=>({background:o.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:o?.inputColor},"&:hover":{background:o.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:o.activeBorderColor,backgroundColor:e.activeBg}}),Oo=(e,o)=>({[`&${e.componentCls}-status-${o.status}:not(${e.componentCls}-disabled)`]:{...Vo(e,o),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:o.affixColor}}}),Xo=(e,o)=>({"&-filled":{...Vo(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Ge(e)},...Oo(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...Oo(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...o}}),Wo=(e,o)=>({[`&${e.componentCls}-group-wrapper-status-${o.status}`]:{[`${e.componentCls}-group-addon`]:{background:o.addonBg,color:o.addonColor}}}),_o=e=>({"&-filled":{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}},...Wo(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...Wo(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}});var cn=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}});var Uo=e=>{let{paddingBlockLG:o,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:t}=e;return {padding:`${unit(o)} ${unit(t)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},qo=e=>({padding:`${unit(e.paddingBlockSM)} ${unit(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Ko=e=>({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${unit(e.paddingBlock)} ${unit(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...cn(e.colorTextPlaceholder),"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":{...Uo(e)},"&-sm":{...qo(e)},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),pn=e=>{let{componentCls:o,antCls:r}=e;return {position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${o}, &-lg > ${o}-group-addon`]:{...Uo(e)},[`&-sm ${o}, &-sm > ${o}-group-addon`]:{...qo(e)},[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightSM},[`> ${o}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${o}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${unit(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${unit(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${unit(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${unit(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${unit(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[o]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${o}-search-with-button &`]:{zIndex:0}}},[`> ${o}:first-child, ${o}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${o}-affix-wrapper`]:{[`&:not(:first-child) ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${o}:last-child, ${o}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${o}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${o}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${o}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${o}-group-compact`]:{display:"block",...To(),[`${o}-group-addon, ${o}-group-wrap, > ${o}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
41
|
+
& > ${o}-affix-wrapper,
|
|
42
|
+
& > ${o}-number-affix-wrapper,
|
|
43
|
+
& > ${r}-picker-range
|
|
44
|
+
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[o]:{float:"none"},[`& > ${r}-select > ${r}-select-selector,
|
|
45
|
+
& > ${r}-select-auto-complete ${o},
|
|
46
|
+
& > ${r}-cascader-picker ${o},
|
|
47
|
+
& > ${o}-group-wrapper ${o}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
48
|
+
& > ${r}-select:first-child > ${r}-select-selector,
|
|
49
|
+
& > ${r}-select-auto-complete:first-child ${o},
|
|
50
|
+
& > ${r}-cascader-picker:first-child ${o}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
51
|
+
& > ${r}-select:last-child > ${r}-select-selector,
|
|
52
|
+
& > ${r}-cascader-picker:last-child ${o},
|
|
53
|
+
& > ${r}-cascader-picker-focused:last-child ${o}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${o}`]:{verticalAlign:"top"},[`${o}-group-wrapper + ${o}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${o}-affix-wrapper`]:{borderRadius:0}},[`${o}-group-wrapper:not(:last-child)`]:{[`&${o}-search > ${o}-group`]:{[`& > ${o}-group-addon > ${o}-search-button`]:{borderRadius:0},[`& > ${o}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}}}},dn=e=>{let{componentCls:o,controlHeightSM:r,lineWidth:n,calc:t}=e,i=t(r).sub(t(n).mul(2)).sub(16).div(2).equal();return {[o]:{...Ae(e),...Ko(e),...Go(e),...Xo(e),...jo(e),'&[type="color"]':{height:e.controlHeight,[`&${o}-lg`]:{height:e.controlHeightLG},[`&${o}-sm`]:{height:r,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}}}},mn=e=>{let{componentCls:o}=e;return {[`${o}-clear-icon`]:{margin:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${unit(e.inputAffixPadding)}`}}}},gn=e=>{let{componentCls:o,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:t,colorIcon:l,colorIconHover:i,iconCls:s}=e,c=`${o}-affix-wrapper`,a=`${o}-affix-wrapper-disabled`;return {[c]:{...Ko(e),display:"inline-flex",[`&:not(${o}-disabled):hover`]:{zIndex:1,[`${o}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${o}`]:{padding:0},[`> input${o}, > textarea${o}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[o]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:n},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}},...mn(e),[`${s}${o}-password-icon`]:{color:l,cursor:"pointer",transition:`all ${t}`,"&:hover":{color:i}}},[a]:{[`${s}${o}-password-icon`]:{color:l,cursor:"not-allowed","&:hover":{color:l}}}}},fn=e=>{let{componentCls:o,borderRadiusLG:r,borderRadiusSM:n}=e;return {[`${o}-group`]:{...Ae(e),...pn(e),"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${o}-group-addon`]:{borderRadius:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${o}-group-addon`]:{borderRadius:n}},...No(e),..._o(e),[`&:not(${o}-compact-first-item):not(${o}-compact-last-item)${o}-compact-item`]:{[`${o}, ${o}-group-addon`]:{borderRadius:0}},[`&:not(${o}-compact-last-item)${o}-compact-first-item`]:{[`${o}, ${o}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${o}-compact-first-item)${o}-compact-last-item`]:{[`${o}, ${o}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${o}-compact-last-item)${o}-compact-item`]:{[`${o}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}}}}},un=e=>{let{componentCls:o,antCls:r}=e,n=`${o}-search`;return {[n]:{[o]:{"&:hover, &:focus":{[`+ ${o}-group-addon ${n}-button:not(${r}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${o}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${o}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${o}-group`]:{[`> ${o}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${r}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${o}-affix-wrapper, ${n}-button`]:{height:e.controlHeightLG}},"&-small":{[`${o}-affix-wrapper, ${n}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${o}-compact-item`]:{[`&:not(${o}-compact-last-item)`]:{[`${o}-group-addon`]:{[`${o}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${o}-compact-first-item)`]:{[`${o},${o}-affix-wrapper`]:{borderRadius:0}},[`> ${o}-group-addon ${o}-search-button,
|
|
54
|
+
> ${o},
|
|
55
|
+
${o}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${o}-affix-wrapper-focused`]:{zIndex:2}}}}},Cn=e=>{let{componentCls:o,paddingLG:r}=e,n=`${o}-textarea`;return {[n]:{position:"relative","&-show-count":{[`> ${o}`]:{height:"100%"},[`${o}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
56
|
+
&-allow-clear > ${o},
|
|
57
|
+
&-affix-wrapper${n}-has-feedback ${o}
|
|
58
|
+
`]:{paddingInlineEnd:r},[`&-affix-wrapper${o}-affix-wrapper`]:{padding:0,[`> textarea${o}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${o}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${o}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${o}-affix-wrapper-sm`]:{[`${o}-suffix`]:{[`${o}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},xn=e=>{let{componentCls:o}=e;return {[`${o}-out-of-range`]:{[`&, & input, & textarea, ${o}-show-count-suffix, ${o}-data-count`]:{color:e.colorError}}}},Qo=He("Input",e=>{let o=mergeToken(e,zo(e));return [dn(o),Cn(o),gn(o),fn(o),un(o),xn(o),Bo(o)]},Fo,{resetFont:false});var bn=e=>{let{getPrefixCls:o,direction:r}=useContext(v),{prefixCls:n,className:t}=e,l=o("input-group",n),i=o("input"),[s,c]=Qo(i),a=yn(l,{[`${l}-lg`]:e.size==="large",[`${l}-sm`]:e.size==="small",[`${l}-compact`]:e.compact,[`${l}-rtl`]:r==="rtl"},c,t),p=useContext(fe),d=useMemo(()=>({...p,isFormItemInput:false}),[p]);return process.env.NODE_ENV!=="production"&&P("Input.Group").deprecated(false,"Input.Group","Space.Compact"),s(m.createElement("span",{className:a,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},m.createElement(fe.Provider,{value:d},e.children)))},Vl=bn;export{Vl as default};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { InputRef, InputProps as RcInputProps } from 'rc-input';
|
|
3
|
+
import { InputFocusOptions, triggerFocus } from 'rc-input/lib/utils/commonUtils';
|
|
4
|
+
import type { InputStatus } from '../_util/statusUtils';
|
|
5
|
+
import type { Variant } from '../config-provider';
|
|
6
|
+
import type { SizeType } from '../config-provider/SizeContext';
|
|
7
|
+
export type { InputFocusOptions };
|
|
8
|
+
export type { InputRef };
|
|
9
|
+
export { triggerFocus };
|
|
10
|
+
export interface InputProps extends Omit<RcInputProps, 'wrapperClassName' | 'groupClassName' | 'inputClassName' | 'affixWrapperClassName' | 'classes'> {
|
|
11
|
+
rootClassName?: string;
|
|
12
|
+
size?: SizeType;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
status?: InputStatus;
|
|
15
|
+
/** @deprecated Use `variant="borderless"` instead. */
|
|
16
|
+
bordered?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* @since 5.13.0
|
|
19
|
+
* @default "outlined"
|
|
20
|
+
*/
|
|
21
|
+
variant?: Variant;
|
|
22
|
+
[key: `data-${string}`]: string | undefined;
|
|
23
|
+
}
|
|
24
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<InputRef>>;
|
|
25
|
+
export default Input;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import*as m from'react';import m__default,{createContext,useContext,forwardRef,useRef,useEffect}from'react';import ne from'classnames';import ni from'rc-input';export{triggerFocus}from'rc-input/lib/utils/commonUtils';import {composeRef}from'rc-util/lib/ref';import'rc-field-form';import'rc-util/lib/omit';import'rc-util/lib/Children/toArray';import {createTheme,useCacheToken,unit,useStyleRegister}from'@ant-design/cssinjs';import Sn from'@ant-design/icons/lib/components/Context';import fn from'rc-util/lib/hooks/useMemo';import {merge}from'rc-util/lib/utils/set';import $r,{resetWarned}from'rc-util/lib/warning';import'rc-pagination/lib/locale/en_US';import Mr from'rc-picker/lib/locale/en_US';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';import _r from'rc-util/lib/Dom/canUseDom';import {updateCSS}from'rc-util/lib/Dom/dynamicCSS';import un from'rc-util/lib/isEqual';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import {Provider}from'rc-motion';import An from'@ant-design/icons/CloseCircleFilled';m.createContext({labelAlign:"right",vertical:false,itemRef:(()=>{})});m.createContext(null);m.createContext({prefixCls:""});var ce=m.createContext({});process.env.NODE_ENV!=="production"&&(ce.displayName="FormItemInputContext");var zo=({children:e,status:o,override:t})=>{let n=m.useContext(ce),r=m.useMemo(()=>{let l={...n};return t&&delete l.isFormItemInput,o&&(delete l.status,delete l.hasFeedback,delete l.feedbackIcon),l},[o,t,n]);return m.createElement(ce.Provider,{value:r},e)},Fo=m.createContext(void 0);function Bo(){}var L=null;function kr(){L=null,resetWarned();}var Je=Bo;process.env.NODE_ENV!=="production"&&(Je=(e,o,t)=>{$r(e,`[swiftcrab: ${o}] ${t}`),process.env.NODE_ENV==="test"&&kr();});var Ze=m.createContext({}),I=process.env.NODE_ENV!=="production"?e=>{let{strict:o}=m.useContext(Ze),t=(n,r,l)=>{if(!n)if(o===false&&r==="deprecated"){let i=L;L||(L={}),L[e]=L[e]||[],L[e].includes(l||"")||L[e].push(l||""),i||console.warn("[swiftcrab] There exists deprecated usage in your code:",L);}else Je(n,e,l);};return t.deprecated=(n,r,l,i)=>{t(n,"deprecated",`\`${r}\` is deprecated. Please use \`${l}\` instead.${i?` ${i}`:""}`);},t}:()=>{let e=()=>{};return e.deprecated=Bo,e},J=Je;var Ao=createContext(void 0);({lang:{...Mr}});var h="${label} is not a valid ${type}",zr={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:h,method:h,array:h,object:h,number:h,date:h,boolean:h,integer:h,float:h,regexp:h,email:h,url:h,hex:h},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}"}}}},G=zr;({...G.Modal});var ke=[],Do=()=>ke.reduce((e,o)=>({...e,...o}),G.Modal);function Oo(e){if(e){let o={...e};return ke.push(o),Do(),()=>{ke=ke.filter(t=>t!==o),Do();}}({...G.Modal});}var Br=createContext(void 0),pe=Br;var oo="internalMark",No=e=>{let{locale:o={},children:t,_ANT_MARK__:n}=e;process.env.NODE_ENV!=="production"&&I("LocaleProvider")(n===oo,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),m.useEffect(()=>Oo(o?.Modal),[o]);let r=m.useMemo(()=>({...o,exist:true}),[o]);return m.createElement(pe.Provider,{value:r},t)};process.env.NODE_ENV!=="production"&&(No.displayName="LocaleProvider");var Go=No;var to={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"},Ar={...to,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},z=Ar;function no(e,{generateColorPalettes:o,generateNeutralColorPalettes:t}){let{colorSuccess:n,colorWarning:r,colorError:l,colorInfo:i,colorPrimary:a,colorBgBase:c,colorTextBase:s}=e,p=o(a),d=o(n),g=o(r),f=o(l),x=o(i),R=t(c,s),O=e.colorLink||e.colorInfo,y=o(O),B=new TinyColor(f[1]).mix(new TinyColor(f[3]),50).toHexString();return {...R,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:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:f[1],colorErrorBgHover:f[2],colorErrorBgFilledHover:B,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:x[1],colorInfoBgHover:x[2],colorInfoBorder:x[3],colorInfoBorderHover:x[4],colorInfoHover:x[4],colorInfo:x[6],colorInfoActive:x[7],colorInfoTextHover:x[8],colorInfoText:x[9],colorInfoTextActive:x[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var Hr=e=>{let o=e,t=e,n=e,r=e;return e<6&&e>=5?o=e+1:e<16&&e>=6?o=e+2:e>=16&&(o=16),e<7&&e>=5?t=4:e<8&&e>=7?t=5:e<14&&e>=8?t=6:e<16&&e>=14?t=7:e>=16&&(t=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:t,borderRadiusLG:o,borderRadiusOuter:r}},Vo=Hr;function io(e){let{motionUnit:o,motionBase:t,borderRadius:n,lineWidth:r}=e;return {motionDurationFast:`${(t+o).toFixed(1)}s`,motionDurationMid:`${(t+o*2).toFixed(1)}s`,motionDurationSlow:`${(t+o*3).toFixed(1)}s`,lineWidthBold:r+1,...Vo(n)}}var Dr=e=>{let{controlHeight:o}=e;return {controlHeightSM:o*.75,controlHeightXS:o*.5,controlHeightLG:o*1.25}},jo=Dr;function Xo(e){return (e+8)/e}function ao(e){let o=new Array(10).fill(null).map((t,n)=>{let r=n-1,l=e*Math.E**(r/5),i=n>1?Math.floor(l):Math.ceil(l);return Math.floor(i/2)*2});return o[1]=e,o.map(t=>({size:t,lineHeight:Xo(t)}))}var Or=e=>{let o=ao(e),t=o.map(p=>p.size),n=o.map(p=>p.lineHeight),r=t[1],l=t[0],i=t[2],a=n[1],c=n[0],s=n[2];return {fontSizeSM:l,fontSize:r,fontSizeLG:i,fontSizeXL:t[3],fontSizeHeading1:t[6],fontSizeHeading2:t[5],fontSizeHeading3:t[4],fontSizeHeading4:t[3],fontSizeHeading5:t[2],lineHeight:a,lineHeightLG:s,lineHeightSM:c,fontHeight:Math.round(a*r),fontHeightLG:Math.round(s*i),fontHeightSM:Math.round(c*l),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},_o=Or;function lo(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 T=(e,o)=>new TinyColor(e).setAlpha(o).toRgbString(),ee=(e,o)=>new TinyColor(e).darken(o).toHexString();var qo=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]}},Ko=(e,o)=>{let t=e||"#fff",n=o||"#000";return {colorBgBase:t,colorTextBase:n,colorText:T(n,.88),colorTextSecondary:T(n,.65),colorTextTertiary:T(n,.45),colorTextQuaternary:T(n,.25),colorFill:T(n,.15),colorFillSecondary:T(n,.06),colorFillTertiary:T(n,.04),colorFillQuaternary:T(n,.02),colorBgSolid:T(n,1),colorBgSolidHover:T(n,.75),colorBgSolidActive:T(n,.95),colorBgLayout:ee(t,4),colorBgContainer:ee(t,0),colorBgElevated:ee(t,0),colorBgSpotlight:T(n,.85),colorBgBlur:"transparent",colorBorder:ee(t,15),colorBorderSecondary:ee(t,6)}};function po(e){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let o=Object.keys(to).map(t=>{let n=e[t]===presetPrimaryColors[t]?presetPalettes[t]:generate(e[t]);return new Array(10).fill(1).reduce((r,l,i)=>(r[`${t}-${i+1}`]=n[i],r[`${t}${i+1}`]=n[i],r),{})}).reduce((t,n)=>(t={...t,...n},t),{});return {...e,...o,...no(e,{generateColorPalettes:qo,generateNeutralColorPalettes:Ko}),..._o(e.fontSize),...lo(e),...jo(e),...io(e)}}var we=createTheme(po),de={token:z,override:{override:z},hashed:true},me=m__default.createContext(de);var Re="ant",ge="anticon",mo=["outlined","borderless","filled"],jr=(e,o)=>o||(e?`${Re}-${e}`:Re),P=m.createContext({getPrefixCls:jr,iconPrefixCls:ge}),{Consumer:Xr}=P;var qr=`-ant-${Date.now()}-${Math.random()}`;function Kr(e,o){let t={},n=(i,a)=>{let c=i.clone();return c=a?.(c)||c,c.toRgbString()},r=(i,a)=>{let c=new TinyColor(i),s=generate(c.toRgbString());t[`${a}-color`]=n(c),t[`${a}-color-disabled`]=s[1],t[`${a}-color-hover`]=s[4],t[`${a}-color-active`]=s[6],t[`${a}-color-outline`]=c.clone().setAlpha(.2).toRgbString(),t[`${a}-color-deprecated-bg`]=s[0],t[`${a}-color-deprecated-border`]=s[2];};if(o.primaryColor){r(o.primaryColor,"primary");let i=new TinyColor(o.primaryColor),a=generate(i.toRgbString());a.forEach((s,p)=>{t[`primary-${p+1}`]=s;}),t["primary-color-deprecated-l-35"]=n(i,s=>s.lighten(35)),t["primary-color-deprecated-l-20"]=n(i,s=>s.lighten(20)),t["primary-color-deprecated-t-20"]=n(i,s=>s.tint(20)),t["primary-color-deprecated-t-50"]=n(i,s=>s.tint(50)),t["primary-color-deprecated-f-12"]=n(i,s=>s.setAlpha(s.getAlpha()*.12));let c=new TinyColor(a[0]);t["primary-color-active-deprecated-f-30"]=n(c,s=>s.setAlpha(s.getAlpha()*.3)),t["primary-color-active-deprecated-d-02"]=n(c,s=>s.darken(2));}return o.successColor&&r(o.successColor,"success"),o.warningColor&&r(o.warningColor,"warning"),o.errorColor&&r(o.errorColor,"error"),o.infoColor&&r(o.infoColor,"info"),`
|
|
4
|
+
:root {
|
|
5
|
+
${Object.keys(t).map(i=>`--${e}-${i}: ${t[i]};`).join(`
|
|
6
|
+
`)}
|
|
7
|
+
}
|
|
8
|
+
`.trim()}function Jo(e,o){let t=Kr(e,o);_r()?updateCSS(t,`${qr}-dynamic-theme`):J(false,"ConfigProvider","SSR do not support dynamic theme with css variables.");}var fo=m.createContext(false),Zo=({children:e,disabled:o})=>{let t=m.useContext(fo);return m.createElement(fo.Provider,{value:o??t},e)},Me=fo;var uo=m.createContext(void 0),et=({children:e,size:o})=>{let t=m.useContext(uo);return m.createElement(uo.Provider,{value:o||t},e)},V=uo;function Qr(){let e=useContext(Me),o=useContext(V);return {componentDisabled:e,componentSize:o}}var tt=Qr;var nt={version:"0.0.2"};var it=nt.version;function Co(e){return e>=0&&e<=255}function Jr(e,o){let{r:t,g:n,b:r,a:l}=new TinyColor(e).toRgb();if(l<1)return e;let{r:i,g:a,b:c}=new TinyColor(o).toRgb();for(let s=.01;s<=1;s+=.01){let p=Math.round((t-i*(1-s))/s),d=Math.round((n-a*(1-s))/s),g=Math.round((r-c*(1-s))/s);if(Co(p)&&Co(d)&&Co(g))return new TinyColor({r:p,g:d,b:g,a:Math.round(s*100)/100}).toRgbString()}return new TinyColor({r:t,g:n,b:r,a:1}).toRgbString()}var fe=Jr;function Le(e){let{override:o,...t}=e,n={...o};Object.keys(z).forEach(g=>{delete n[g];});let r={...t,...n},l=480,i=576,a=768,c=992,s=1200,p=1600;return r.motion===false&&(r.motionDurationFast="0s",r.motionDurationMid="0s",r.motionDurationSlow="0s"),{...r,colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:fe(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:fe(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:fe(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidthFocus:r.lineWidth*3,lineWidth:r.lineWidth,controlOutlineWidth:r.lineWidth*2,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:fe(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.sizeXXL,boxShadow:`
|
|
9
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
10
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
11
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
12
|
+
`,boxShadowSecondary:`
|
|
13
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
14
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
15
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
16
|
+
`,boxShadowTertiary:`
|
|
17
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
18
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
19
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
20
|
+
`,screenXS:l,screenXSMin:l,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:a-1,screenMD:a,screenMDMin:a,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:s-1,screenXL:s,screenXLMin:s,screenXLMax:p-1,screenXXL:p,screenXXLMin:p,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
21
|
+
0 1px 2px -2px ${new TinyColor("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
22
|
+
0 3px 6px 0 ${new TinyColor("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
23
|
+
0 5px 12px 4px ${new TinyColor("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
24
|
+
`,boxShadowDrawerRight:`
|
|
25
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
26
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
27
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
28
|
+
`,boxShadowDrawerLeft:`
|
|
29
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
30
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
31
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
32
|
+
`,boxShadowDrawerUp:`
|
|
33
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
34
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
35
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
36
|
+
`,boxShadowDrawerDown:`
|
|
37
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
38
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
39
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
40
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",...n}}var xo={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},on={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},tn={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},at=(e,o,t)=>{let n=t.getDerivativeToken(e),{override:r,...l}=o,i={...n,override:r};return i=Le(i),l&&Object.entries(l).forEach(([a,c])=>{let{theme:s,...p}=c,d=p;s&&(d=at({...i,...p},{override:p},s)),i[a]=d;}),i};function w(){let{token:e,hashed:o,theme:t,override:n,cssVar:r}=m__default.useContext(me),l=`${it}-${o||""}`,i=t||we,[a,c,s]=useCacheToken(i,[z,e],{salt:l,override:n,getComputedToken:at,formatToken:Le,cssVar:r&&{prefix:r.prefix,key:r.key,unitless:xo,ignore:on,preserve:tn}});return [i,s,o?c:"",a,r]}var yo=(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}),rn=()=>({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"}}),lt=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),st=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"}}}),ct=(e,o,t,n)=>{let r=`[class^="${o}"], [class*=" ${o}"]`,l=t?`.${t}`:r,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},a={};return n!==false&&(a={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[l]:{...a,...i,[r]:i}}};var ze=e=>({[`.${e}`]:{...rn(),[`.${e} .${e}-icon`]:{display:"block"}}});var{genStyleHooks:ue,genComponentStyleHook:an,genSubStyleComponent:ln}=genStyleUtils({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:o}=useContext(P);return {rootPrefixCls:e(),iconPrefixCls:o}},useToken:()=>{let[e,o,t,n,r]=w();return {theme:e,realToken:o,hashId:t,token:n,cssVar:r}},useCSP:()=>{let{csp:e}=useContext(P);return e??{}},getResetStyles:(e,o)=>[{"&":st(e)},ze(o?.prefix.iconPrefixCls??ge)],getCommonStyle:ct,getCompUnitless:(()=>xo)});var cn=(e,o)=>{let[t,n]=w();return useStyleRegister({theme:t,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>o?.nonce,layer:{name:"antd"}},()=>[ze(e)])},Fe=cn;var dn={...m},{useId:dt}=dn,mn=()=>"",gn=typeof dt>"u"?mn:dt,mt=gn;function bo(e,o,t){let n=I("ConfigProvider"),r=e||{},l=r.inherit===false||!o?{...de,hashed:o?.hashed??de.hashed,cssVar:o?.cssVar}:o,i=mt();if(process.env.NODE_ENV!=="production"){let a=r.cssVar||l.cssVar,c=!!(typeof r.cssVar=="object"&&r.cssVar?.key||i);n(!a||c,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.");}return fn(()=>{if(!e)return o;let a={...l.components};Object.keys(e.components||{}).forEach(p=>{a[p]={...a[p],...e.components[p]};});let c=`css-var-${i.replace(/:/g,"")}`,s=(r.cssVar??l.cssVar)&&{prefix:t?.prefixCls,...typeof l.cssVar=="object"?l.cssVar:{},...typeof r.cssVar=="object"?r.cssVar:{},key:typeof r.cssVar=="object"&&r.cssVar?.key||c};return {...l,...r,token:{...l.token,...r.token},components:a,cssVar:s}},[r,l],(a,c)=>a.some((s,p)=>{let d=c[p];return !un(s,d,true)}))}function ho(e){let{children:o}=e,[,t]=w(),{motion:n}=t,r=m.useRef(false);return r.current=r.current||n===false,r.current?m.createElement(Provider,{motion:n},o):o}var ft=m.memo(({dropdownMatchSelectWidth:e})=>(I("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(ft.displayName="PropWarning");var ut=process.env.NODE_ENV!=="production"?ft:()=>null;var To=false;process.env.NODE_ENV!=="production"?e=>{J(!To,e,"Static function can not consume context like dynamic theme. Please use 'App' component instead.");}:null;var bn=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],St;function vn(){return St||Re}function $n(e){return Object.keys(e).some(o=>o.endsWith("Color"))}var In=e=>{let{prefixCls:o,iconPrefixCls:t,theme:n,holderRender:r}=e;o!==void 0&&(St=o),n&&($n(n)?(J(false,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),Jo(vn(),n)):n);};var kn=e=>{let{children:o,csp:t,autoInsertSpaceInButton:n,alert:r,anchor:l,form:i,locale:a,componentSize:c,direction:s,space:p,splitter:d,virtual:g,dropdownMatchSelectWidth:f,popupMatchSelectWidth:x,popupOverflow:R,legacyLocale:O,parentContext:y,iconPrefixCls:B,theme:W,componentDisabled:Ce,segmented:Ae,statistic:N,spin:M,calendar:u,carousel:ie,cascader:Se,collapse:He,typography:X,checkbox:De,descriptions:Oe,divider:We,drawer:A,skeleton:Ne,steps:Ge,image:Ve,layout:_,list:je,mentions:xe,modal:U,progress:ye,result:ae,slider:Xe,breadcrumb:_e,menu:Ue,pagination:qe,input:Ke,textArea:be,empty:he,badge:b,radio:Kt,rate:Qt,switch:Yt,transfer:Jt,avatar:Zt,message:er,tag:or,table:tr,card:rr,tabs:nr,timeline:ir,timePicker:ar,upload:lr,notification:sr,tree:cr,colorPicker:pr,datePicker:dr,rangePicker:mr,flex:gr,wave:fr,dropdown:ur,warning:Cr,tour:Sr,variant:xr,inputNumber:yr,treeSelect:br}=e,Ro=m.useCallback((C,k)=>{let{prefixCls:Q}=e;if(k)return k;let Y=Q||y.getPrefixCls("");return C?`${Y}-${C}`:Y},[y.getPrefixCls,e.prefixCls]),le=B||y.iconPrefixCls||ge,se=t||y.csp;Fe(le,se);let Te=bo(W,y.theme,{prefixCls:Ro("")});process.env.NODE_ENV!=="production"&&(To=To||!!Te);let Qe={csp:se,autoInsertSpaceInButton:n,alert:r,anchor:l,locale:a||O,direction:s,space:p,splitter:d,virtual:g,popupMatchSelectWidth:x??f,popupOverflow:R,getPrefixCls:Ro,iconPrefixCls:le,theme:Te,segmented:Ae,statistic:N,spin:M,calendar:u,carousel:ie,cascader:Se,collapse:He,typography:X,checkbox:De,descriptions:Oe,divider:We,drawer:A,skeleton:Ne,steps:Ge,image:Ve,input:Ke,textArea:be,layout:_,list:je,mentions:xe,modal:U,progress:ye,result:ae,slider:Xe,breadcrumb:_e,menu:Ue,pagination:qe,empty:he,badge:b,radio:Kt,rate:Qt,switch:Yt,transfer:Jt,avatar:Zt,message:er,tag:or,table:tr,card:rr,tabs:nr,timeline:ir,timePicker:ar,upload:lr,notification:sr,tree:cr,colorPicker:pr,datePicker:dr,rangePicker:mr,flex:gr,wave:fr,dropdown:ur,warning:Cr,tour:Sr,variant:xr,inputNumber:yr,treeSelect:br};process.env.NODE_ENV!=="production"&&I("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");let q={...y};Object.keys(Qe).forEach(C=>{Qe[C]!==void 0&&(q[C]=Qe[C]);}),bn.forEach(C=>{let k=e[C];k&&(q[C]=k);}),typeof n<"u"&&(q.button={autoInsertSpace:n,...q.button});let K=fn(()=>q,q,(C,k)=>{let Q=Object.keys(C),Y=Object.keys(k);return Q.length!==Y.length||Q.some(Pe=>C[Pe]!==k[Pe])}),hr=m.useMemo(()=>({prefixCls:le,csp:se}),[le,se]),S=m.createElement(m.Fragment,null,m.createElement(ut,{dropdownMatchSelectWidth:f}),o),Mo=m.useMemo(()=>merge(G.Form?.defaultValidateMessages||{},K.locale?.Form?.defaultValidateMessages||{},K.form?.validateMessages||{},i?.validateMessages||{}),[K,i?.validateMessages]);Object.keys(Mo).length>0&&(S=m.createElement(Ao.Provider,{value:Mo},S)),a&&(S=m.createElement(Go,{locale:a,_ANT_MARK__:oo},S)),(S=m.createElement(Sn.Provider,{value:hr},S)),c&&(S=m.createElement(et,{size:c},S)),S=m.createElement(ho,null,S);let Tr=m.useMemo(()=>{let{algorithm:C,token:k,components:Q,cssVar:Y,...Pe}=Te||{},Eo=C&&(!Array.isArray(C)||C.length>0)?createTheme(C):we,Ye={};Object.entries(Q||{}).forEach(([Pr,vr])=>{let E={...vr};"algorithm"in E&&(E.algorithm===true?E.theme=Eo:(Array.isArray(E.algorithm)||typeof E.algorithm=="function")&&(E.theme=createTheme(E.algorithm)),delete E.algorithm),Ye[Pr]=E;});let Lo={...z,...k};return {...Pe,theme:Eo,token:Lo,components:Ye,override:{override:Lo,...Ye},cssVar:Y}},[Te]);return W&&(S=m.createElement(me.Provider,{value:Tr},S)),K.warning&&(S=m.createElement(Ze.Provider,{value:K.warning},S)),Ce!==void 0&&(S=m.createElement(Zo,{disabled:Ce},S)),m.createElement(P.Provider,{value:K},S)},re=e=>{let o=m.useContext(P),t=m.useContext(pe);return m.createElement(kn,{parentContext:o,legacyLocale:t,...e})};re.ConfigContext=P;re.SizeContext=V;re.config=In;re.useConfig=tt;Object.defineProperty(re,"SizeContext",{get:()=>(J(false,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),V)});process.env.NODE_ENV!=="production"&&(re.displayName="ConfigProvider");var wn=e=>{let o=m__default.useContext(V);return m__default.useMemo(()=>e?typeof e=="string"?e??o:e instanceof Function?e(o):o:o,[e,o])},Po=wn;var Rn=e=>{let{componentCls:o}=e;return {[o]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},yt=Rn;var Mn=e=>{let{componentCls:o,antCls:t}=e;return {[o]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${o}-item:empty`]:{display:"none"},[`${o}-item > ${t}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},En=e=>{let{componentCls:o}=e;return {[o]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}};ue("Space",e=>{let o=mergeToken(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return [Mn(o),En(o),yt(o)]},()=>({}),{resetStyle:false});var bt=m.createContext(null),ht=(e,o)=>{let t=m.useContext(bt),n=m.useMemo(()=>{if(!t)return "";let{compactDirection:r,isFirstItem:l,isLastItem:i}=t,a=r==="vertical"?"-vertical-":"-";return ne(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:l,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:o==="rtl"})},[e,o,t]);return {compactSize:t?.compactSize,compactDirection:t?.compactDirection,compactItemClassnames:n}},Tt=({children:e})=>m.createElement(bt.Provider,{value:null},e);var Fn=e=>{let{space:o,form:t,children:n}=e;if(n==null)return null;let r=n;return t&&(r=m__default.createElement(zo,{override:true,status:true},r)),o&&(r=m__default.createElement(Tt,null,r)),r},vo=Fn;var Hn=e=>{let o;return typeof e=="object"&&e?.clearIcon?o=e:e&&(o={clearIcon:m__default.createElement(An,null)}),o},vt=Hn;function $o(e,o,t){return ne({[`${e}-status-success`]:o==="success",[`${e}-status-warning`]:o==="warning",[`${e}-status-error`]:o==="error",[`${e}-status-validating`]:o==="validating",[`${e}-has-feedback`]:t})}var $t=(e,o)=>o||e;var On=e=>{let[,,,,o]=w();return o?`${e}-css-var`:""},It=On;var Wn=(e,o,t=void 0)=>{let{variant:n,[e]:r}=m.useContext(P),l=m.useContext(Fo),i=r?.variant,a;typeof o<"u"?a=o:t===false?a="borderless":a=l??i??n??"outlined";let c=mo.includes(a);return [a,c]},kt=Wn;function ko(e,o){let t=useRef([]),n=()=>{t.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute("type")==="password"&&e.current?.input.hasAttribute("value")&&e.current?.input.removeAttribute("value");}));};return useEffect(()=>(n(),()=>t.current.forEach(r=>{r&&clearTimeout(r);})),[]),n}function Vn(e,o,t){let{focusElCls:n,focus:r,borderElCls:l}=t,i=l?"> *":"",a=["hover",r?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${i}`).join(",");return {[`&-item:not(${o}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{[a]:{zIndex:2},...n?{[`&${n}`]:{zIndex:2}}:{},[`&[disabled] ${i}`]:{zIndex:0}}}}function jn(e,o,t){let{borderElCls:n}=t,r=n?`> ${n}`:"";return {[`&-item:not(${o}-first-item):not(${o}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${o}-last-item)${o}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${o}-first-item)${o}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function wt(e,o={focus:true}){let{componentCls:t}=e,n=`${t}-compact`;return {[n]:{...Vn(e,n,o),...jn(t,n,o)}}}function Rt(e){return mergeToken(e,{inputAffixPadding:e.paddingXXS})}var Mt=e=>{let{controlHeight:o,fontSize:t,lineHeight:n,lineWidth:r,controlHeightSM:l,controlHeightLG:i,fontSizeLG:a,lineHeightLG:c,paddingSM:s,controlPaddingHorizontalSM:p,controlPaddingHorizontal:d,colorFillAlter:g,colorPrimaryHover:f,colorPrimary:x,controlOutlineWidth:R,controlOutline:O,colorErrorOutline:y,colorWarningOutline:B,colorBgContainer:W}=e;return {paddingBlock:Math.max(Math.round((o-t*n)/2*10)/10-r,0),paddingBlockSM:Math.max(Math.round((l-t*n)/2*10)/10-r,0),paddingBlockLG:Math.ceil((i-a*c)/2*10)/10-r,paddingInline:s-r,paddingInlineSM:p-r,paddingInlineLG:d-r,addonBg:g,activeBorderColor:x,hoverBorderColor:f,activeShadow:`0 0 0 ${R}px ${O}`,errorActiveShadow:`0 0 0 ${R}px ${y}`,warningActiveShadow:`0 0 0 ${R}px ${B}`,hoverBg:W,activeBg:W,inputFontSize:t,inputFontSizeLG:a,inputFontSizeSM:t}};var Xn=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),wo=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":{...Xn(mergeToken(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled}))}}),Bt=(e,o)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:o.borderColor,"&:hover":{borderColor:o.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:o.activeBorderColor,boxShadow:o.activeShadow,outline:0,backgroundColor:e.activeBg}}),Et=(e,o)=>({[`&${e.componentCls}-status-${o.status}:not(${e.componentCls}-disabled)`]:{...Bt(e,o),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:o.affixColor}},[`&${e.componentCls}-status-${o.status}${e.componentCls}-disabled`]:{borderColor:o.borderColor}}),At=(e,o)=>({"&-outlined":{...Bt(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...wo(e)},...Et(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...Et(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...o}}),Lt=(e,o)=>({[`&${e.componentCls}-group-wrapper-status-${o.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:o.addonBorderColor,color:o.addonColor}}}),Ht=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...Lt(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...Lt(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...wo(e)}}}}),Dt=(e,o)=>{let{componentCls:t}=e;return {"&-borderless":{background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${t}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${t}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${t}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}},...o}}},Ot=(e,o)=>({background:o.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:o?.inputColor},"&:hover":{background:o.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:o.activeBorderColor,backgroundColor:e.activeBg}}),zt=(e,o)=>({[`&${e.componentCls}-status-${o.status}:not(${e.componentCls}-disabled)`]:{...Ot(e,o),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:o.affixColor}}}),Wt=(e,o)=>({"&-filled":{...Ot(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor}),[`&${e.componentCls}-disabled, &[disabled]`]:{...wo(e)},...zt(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...zt(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...o}}),Ft=(e,o)=>({[`&${e.componentCls}-group-wrapper-status-${o.status}`]:{[`${e.componentCls}-group-addon`]:{background:o.addonBg,color:o.addonColor}}}),Nt=e=>({"&-filled":{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}},...Ft(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...Ft(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}});var _n=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}});var Gt=e=>{let{paddingBlockLG:o,lineHeightLG:t,borderRadiusLG:n,paddingInlineLG:r}=e;return {padding:`${unit(o)} ${unit(r)}`,fontSize:e.inputFontSizeLG,lineHeight:t,borderRadius:n}},Vt=e=>({padding:`${unit(e.paddingBlockSM)} ${unit(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),jt=e=>({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${unit(e.paddingBlock)} ${unit(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,..._n(e.colorTextPlaceholder),"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":{...Gt(e)},"&-sm":{...Vt(e)},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Un=e=>{let{componentCls:o,antCls:t}=e;return {position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${o}, &-lg > ${o}-group-addon`]:{...Gt(e)},[`&-sm ${o}, &-sm > ${o}-group-addon`]:{...Vt(e)},[`&-lg ${t}-select-single ${t}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${t}-select-single ${t}-select-selector`]:{height:e.controlHeightSM},[`> ${o}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${o}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${unit(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${t}-select`]:{margin:`${unit(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${unit(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${t}-select-single:not(${t}-select-customize-input):not(${t}-pagination-size-changer)`]:{[`${t}-select-selector`]:{backgroundColor:"inherit",border:`${unit(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${t}-cascader-picker`]:{margin:`-9px ${unit(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${t}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[o]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${o}-search-with-button &`]:{zIndex:0}}},[`> ${o}:first-child, ${o}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-select ${t}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${o}-affix-wrapper`]:{[`&:not(:first-child) ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${o}:last-child, ${o}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${t}-select ${t}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${o}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${o}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${o}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${o}-group-compact`]:{display:"block",...lt(),[`${o}-group-addon, ${o}-group-wrap, > ${o}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
41
|
+
& > ${o}-affix-wrapper,
|
|
42
|
+
& > ${o}-number-affix-wrapper,
|
|
43
|
+
& > ${t}-picker-range
|
|
44
|
+
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[o]:{float:"none"},[`& > ${t}-select > ${t}-select-selector,
|
|
45
|
+
& > ${t}-select-auto-complete ${o},
|
|
46
|
+
& > ${t}-cascader-picker ${o},
|
|
47
|
+
& > ${o}-group-wrapper ${o}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${t}-select-focused`]:{zIndex:1},[`& > ${t}-select > ${t}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
48
|
+
& > ${t}-select:first-child > ${t}-select-selector,
|
|
49
|
+
& > ${t}-select-auto-complete:first-child ${o},
|
|
50
|
+
& > ${t}-cascader-picker:first-child ${o}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
51
|
+
& > ${t}-select:last-child > ${t}-select-selector,
|
|
52
|
+
& > ${t}-cascader-picker:last-child ${o},
|
|
53
|
+
& > ${t}-cascader-picker-focused:last-child ${o}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${t}-select-auto-complete ${o}`]:{verticalAlign:"top"},[`${o}-group-wrapper + ${o}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${o}-affix-wrapper`]:{borderRadius:0}},[`${o}-group-wrapper:not(:last-child)`]:{[`&${o}-search > ${o}-group`]:{[`& > ${o}-group-addon > ${o}-search-button`]:{borderRadius:0},[`& > ${o}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}}}},qn=e=>{let{componentCls:o,controlHeightSM:t,lineWidth:n,calc:r}=e,i=r(t).sub(r(n).mul(2)).sub(16).div(2).equal();return {[o]:{...yo(e),...jt(e),...At(e),...Wt(e),...Dt(e),'&[type="color"]':{height:e.controlHeight,[`&${o}-lg`]:{height:e.controlHeightLG},[`&${o}-sm`]:{height:t,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}}}},Kn=e=>{let{componentCls:o}=e;return {[`${o}-clear-icon`]:{margin:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${unit(e.inputAffixPadding)}`}}}},Qn=e=>{let{componentCls:o,inputAffixPadding:t,colorTextDescription:n,motionDurationSlow:r,colorIcon:l,colorIconHover:i,iconCls:a}=e,c=`${o}-affix-wrapper`,s=`${o}-affix-wrapper-disabled`;return {[c]:{...jt(e),display:"inline-flex",[`&:not(${o}-disabled):hover`]:{zIndex:1,[`${o}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${o}`]:{padding:0},[`> input${o}, > textarea${o}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[o]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:n},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:t},"&-suffix":{marginInlineStart:t}},...Kn(e),[`${a}${o}-password-icon`]:{color:l,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:i}}},[s]:{[`${a}${o}-password-icon`]:{color:l,cursor:"not-allowed","&:hover":{color:l}}}}},Yn=e=>{let{componentCls:o,borderRadiusLG:t,borderRadiusSM:n}=e;return {[`${o}-group`]:{...yo(e),...Un(e),"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${o}-group-addon`]:{borderRadius:t,fontSize:e.inputFontSizeLG}},"&-sm":{[`${o}-group-addon`]:{borderRadius:n}},...Ht(e),...Nt(e),[`&:not(${o}-compact-first-item):not(${o}-compact-last-item)${o}-compact-item`]:{[`${o}, ${o}-group-addon`]:{borderRadius:0}},[`&:not(${o}-compact-last-item)${o}-compact-first-item`]:{[`${o}, ${o}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${o}-compact-first-item)${o}-compact-last-item`]:{[`${o}, ${o}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${o}-compact-last-item)${o}-compact-item`]:{[`${o}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}}}}},Jn=e=>{let{componentCls:o,antCls:t}=e,n=`${o}-search`;return {[n]:{[o]:{"&:hover, &:focus":{[`+ ${o}-group-addon ${n}-button:not(${t}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${o}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${o}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${o}-group`]:{[`> ${o}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${t}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${t}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${o}-affix-wrapper, ${n}-button`]:{height:e.controlHeightLG}},"&-small":{[`${o}-affix-wrapper, ${n}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${o}-compact-item`]:{[`&:not(${o}-compact-last-item)`]:{[`${o}-group-addon`]:{[`${o}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${o}-compact-first-item)`]:{[`${o},${o}-affix-wrapper`]:{borderRadius:0}},[`> ${o}-group-addon ${o}-search-button,
|
|
54
|
+
> ${o},
|
|
55
|
+
${o}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${o}-affix-wrapper-focused`]:{zIndex:2}}}}},Zn=e=>{let{componentCls:o,paddingLG:t}=e,n=`${o}-textarea`;return {[n]:{position:"relative","&-show-count":{[`> ${o}`]:{height:"100%"},[`${o}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
56
|
+
&-allow-clear > ${o},
|
|
57
|
+
&-affix-wrapper${n}-has-feedback ${o}
|
|
58
|
+
`]:{paddingInlineEnd:t},[`&-affix-wrapper${o}-affix-wrapper`]:{padding:0,[`> textarea${o}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${o}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${o}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${o}-affix-wrapper-sm`]:{[`${o}-suffix`]:{[`${o}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},ei=e=>{let{componentCls:o}=e;return {[`${o}-out-of-range`]:{[`&, & input, & textarea, ${o}-show-count-suffix, ${o}-data-count`]:{color:e.colorError}}}},Xt=ue("Input",e=>{let o=mergeToken(e,Rt(e));return [qn(o),Zn(o),Qn(o),Yn(o),Jn(o),ei(o),wt(o)]},Mt,{resetFont:false});function _t(e){return !!(e.prefix||e.suffix||e.allowClear||e.showCount)}var qt=forwardRef((e,o)=>{let{prefixCls:t,bordered:n=true,status:r,size:l,disabled:i,onBlur:a,onFocus:c,suffix:s,allowClear:p,addonAfter:d,addonBefore:g,className:f,style:x,styles:R,rootClassName:O,onChange:y,classNames:B,variant:W,...Ce}=e;if(process.env.NODE_ENV!=="production"){let{deprecated:b}=I("Input");b(!("bordered"in e),"bordered","variant");}let{getPrefixCls:Ae,direction:N,input:M}=m__default.useContext(P),u=Ae("input",t),ie=useRef(null),Se=It(u),[He,X,De]=Xt(u,Se),{compactSize:Oe,compactItemClassnames:We}=ht(u,N),A=Po(b=>l??Oe??b),Ne=m__default.useContext(Me),Ge=i??Ne,{status:Ve,hasFeedback:_,feedbackIcon:je}=useContext(ce),xe=$t(Ve,r),U=_t(e)||!!_,ye=useRef(U);if(process.env.NODE_ENV!=="production"){let b=I("Input");useEffect(()=>{U&&!ye.current&&b(document.activeElement===ie.current?.input,"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),ye.current=U;},[U]);}let ae=ko(ie),Xe=b=>{ae(),a?.(b);},_e=b=>{ae(),c?.(b);},Ue=b=>{ae(),y?.(b);},qe=(_||s)&&m__default.createElement(m__default.Fragment,null,s,_&&je),Ke=vt(p??M?.allowClear),[be,he]=kt("input",W,n);return He(m__default.createElement(ni,{ref:composeRef(o,ie),prefixCls:u,autoComplete:M?.autoComplete,...Ce,disabled:Ge,onBlur:Xe,onFocus:_e,style:{...M?.style,...x},styles:{...M?.styles,...R},suffix:qe,allowClear:Ke,className:ne(f,O,De,Se,We,M?.className),onChange:Ue,addonBefore:g&&m__default.createElement(vo,{form:true,space:true},g),addonAfter:d&&m__default.createElement(vo,{form:true,space:true},d),classNames:{...B,...M?.classNames,input:ne({[`${u}-sm`]:A==="small",[`${u}-lg`]:A==="large",[`${u}-rtl`]:N==="rtl"},B?.input,M?.classNames?.input,X),variant:ne({[`${u}-${be}`]:he},$o(u,xe)),affixWrapper:ne({[`${u}-affix-wrapper-sm`]:A==="small",[`${u}-affix-wrapper-lg`]:A==="large",[`${u}-affix-wrapper-rtl`]:N==="rtl"},X),wrapper:ne({[`${u}-group-rtl`]:N==="rtl"},X),groupWrapper:ne({[`${u}-group-wrapper-sm`]:A==="small",[`${u}-group-wrapper-lg`]:A==="large",[`${u}-group-wrapper-rtl`]:N==="rtl",[`${u}-group-wrapper-${be}`]:he},$o(`${u}-group-wrapper`,xe,_),X)}}))});process.env.NODE_ENV!=="production"&&(qt.displayName="Input");var yc=qt;
|
|
59
|
+
export{yc as default};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { InputProps, InputRef } from '../Input';
|
|
3
|
+
export interface OTPInputProps extends Omit<InputProps, 'onChange'> {
|
|
4
|
+
index: number;
|
|
5
|
+
onChange: (index: number, value: string) => void;
|
|
6
|
+
/** Tell parent to do active offset */
|
|
7
|
+
onActiveChange: (nextIndex: number) => void;
|
|
8
|
+
mask?: boolean | string;
|
|
9
|
+
}
|
|
10
|
+
declare const OTPInput: React.ForwardRefExoticComponent<OTPInputProps & React.RefAttributes<InputRef>>;
|
|
11
|
+
export default OTPInput;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import*as g from'react';import g__default,{createContext,useContext,forwardRef,useRef,useEffect}from'react';import si from'rc-util/lib/raf';import ie from'classnames';import ai from'rc-input';import'rc-input/lib/utils/commonUtils';import {composeRef}from'rc-util/lib/ref';import'rc-field-form';import'rc-util/lib/omit';import'rc-util/lib/Children/toArray';import {createTheme,useCacheToken,unit,useStyleRegister}from'@ant-design/cssinjs';import yn from'@ant-design/icons/lib/components/Context';import Cn from'rc-util/lib/hooks/useMemo';import {merge}from'rc-util/lib/utils/set';import Rr,{resetWarned}from'rc-util/lib/warning';import'rc-pagination/lib/locale/en_US';import Lr from'rc-picker/lib/locale/en_US';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';import Kr from'rc-util/lib/Dom/canUseDom';import {updateCSS}from'rc-util/lib/Dom/dynamicCSS';import Sn from'rc-util/lib/isEqual';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import {Provider}from'rc-motion';import Dn from'@ant-design/icons/CloseCircleFilled';g.createContext({labelAlign:"right",vertical:false,itemRef:(()=>{})});g.createContext(null);g.createContext({prefixCls:""});var pe=g.createContext({});process.env.NODE_ENV!=="production"&&(pe.displayName="FormItemInputContext");var Fo=({children:e,status:o,override:t})=>{let n=g.useContext(pe),r=g.useMemo(()=>{let a={...n};return t&&delete a.isFormItemInput,o&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[o,t,n]);return g.createElement(pe.Provider,{value:r},e)},Bo=g.createContext(void 0);function Ao(){}var z=null;function wr(){z=null,resetWarned();}var Ze=Ao;process.env.NODE_ENV!=="production"&&(Ze=(e,o,t)=>{Rr(e,`[swiftcrab: ${o}] ${t}`),process.env.NODE_ENV==="test"&&wr();});var eo=g.createContext({}),R=process.env.NODE_ENV!=="production"?e=>{let{strict:o}=g.useContext(eo),t=(n,r,a)=>{if(!n)if(o===false&&r==="deprecated"){let i=z;z||(z={}),z[e]=z[e]||[],z[e].includes(a||"")||z[e].push(a||""),i||console.warn("[swiftcrab] There exists deprecated usage in your code:",z);}else Ze(n,e,a);};return t.deprecated=(n,r,a,i)=>{t(n,"deprecated",`\`${r}\` is deprecated. Please use \`${a}\` instead.${i?` ${i}`:""}`);},t}:()=>{let e=()=>{};return e.deprecated=Ao,e},Z=Ze;var Ho=createContext(void 0);({lang:{...Lr}});var T="${label} is not a valid ${type}",Br={Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Form:{defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:T,method:T,array:T,object:T,number:T,date:T,boolean:T,integer:T,float:T,regexp:T,email:T,url:T,hex:T},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}"}}}},V=Br;({...V.Modal});var ke=[],Oo=()=>ke.reduce((e,o)=>({...e,...o}),V.Modal);function Wo(e){if(e){let o={...e};return ke.push(o),Oo(),()=>{ke=ke.filter(t=>t!==o),Oo();}}({...V.Modal});}var Hr=createContext(void 0),de=Hr;var to="internalMark",Go=e=>{let{locale:o={},children:t,_ANT_MARK__:n}=e;process.env.NODE_ENV!=="production"&&R("LocaleProvider")(n===to,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),g.useEffect(()=>Wo(o?.Modal),[o]);let r=g.useMemo(()=>({...o,exist:true}),[o]);return g.createElement(de.Provider,{value:r},t)};process.env.NODE_ENV!=="production"&&(Go.displayName="LocaleProvider");var Vo=Go;var ro={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"},Dr={...ro,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},F=Dr;function io(e,{generateColorPalettes:o,generateNeutralColorPalettes:t}){let{colorSuccess:n,colorWarning:r,colorError:a,colorInfo:i,colorPrimary:l,colorBgBase:c,colorTextBase:s}=e,p=o(l),d=o(n),f=o(r),u=o(a),m=o(i),b=t(c,s),M=e.colorLink||e.colorInfo,y=o(M),A=new TinyColor(u[1]).mix(new TinyColor(u[3]),50).toHexString();return {...b,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:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:u[1],colorErrorBgHover:u[2],colorErrorBgFilledHover:A,colorErrorBgActive:u[3],colorErrorBorder:u[3],colorErrorBorderHover:u[4],colorErrorHover:u[5],colorError:u[6],colorErrorActive:u[7],colorErrorTextHover:u[8],colorErrorText:u[9],colorErrorTextActive:u[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var Or=e=>{let o=e,t=e,n=e,r=e;return e<6&&e>=5?o=e+1:e<16&&e>=6?o=e+2:e>=16&&(o=16),e<7&&e>=5?t=4:e<8&&e>=7?t=5:e<14&&e>=8?t=6:e<16&&e>=14?t=7:e>=16&&(t=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:t,borderRadiusLG:o,borderRadiusOuter:r}},jo=Or;function ao(e){let{motionUnit:o,motionBase:t,borderRadius:n,lineWidth:r}=e;return {motionDurationFast:`${(t+o).toFixed(1)}s`,motionDurationMid:`${(t+o*2).toFixed(1)}s`,motionDurationSlow:`${(t+o*3).toFixed(1)}s`,lineWidthBold:r+1,...jo(n)}}var Wr=e=>{let{controlHeight:o}=e;return {controlHeightSM:o*.75,controlHeightXS:o*.5,controlHeightLG:o*1.25}},Xo=Wr;function _o(e){return (e+8)/e}function lo(e){let o=new Array(10).fill(null).map((t,n)=>{let r=n-1,a=e*Math.E**(r/5),i=n>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return o[1]=e,o.map(t=>({size:t,lineHeight:_o(t)}))}var Nr=e=>{let o=lo(e),t=o.map(p=>p.size),n=o.map(p=>p.lineHeight),r=t[1],a=t[0],i=t[2],l=n[1],c=n[0],s=n[2];return {fontSizeSM:a,fontSize:r,fontSizeLG:i,fontSizeXL:t[3],fontSizeHeading1:t[6],fontSizeHeading2:t[5],fontSizeHeading3:t[4],fontSizeHeading4:t[3],fontSizeHeading5:t[2],lineHeight:l,lineHeightLG:s,lineHeightSM:c,fontHeight:Math.round(l*r),fontHeightLG:Math.round(s*i),fontHeightSM:Math.round(c*a),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},Uo=Nr;function so(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 P=(e,o)=>new TinyColor(e).setAlpha(o).toRgbString(),oe=(e,o)=>new TinyColor(e).darken(o).toHexString();var qo=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]}},Qo=(e,o)=>{let t=e||"#fff",n=o||"#000";return {colorBgBase:t,colorTextBase:n,colorText:P(n,.88),colorTextSecondary:P(n,.65),colorTextTertiary:P(n,.45),colorTextQuaternary:P(n,.25),colorFill:P(n,.15),colorFillSecondary:P(n,.06),colorFillTertiary:P(n,.04),colorFillQuaternary:P(n,.02),colorBgSolid:P(n,1),colorBgSolidHover:P(n,.75),colorBgSolidActive:P(n,.95),colorBgLayout:oe(t,4),colorBgContainer:oe(t,0),colorBgElevated:oe(t,0),colorBgSpotlight:P(n,.85),colorBgBlur:"transparent",colorBorder:oe(t,15),colorBorderSecondary:oe(t,6)}};function mo(e){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let o=Object.keys(ro).map(t=>{let n=e[t]===presetPrimaryColors[t]?presetPalettes[t]:generate(e[t]);return new Array(10).fill(1).reduce((r,a,i)=>(r[`${t}-${i+1}`]=n[i],r[`${t}${i+1}`]=n[i],r),{})}).reduce((t,n)=>(t={...t,...n},t),{});return {...e,...o,...io(e,{generateColorPalettes:qo,generateNeutralColorPalettes:Qo}),...Uo(e.fontSize),...so(e),...Xo(e),...ao(e)}}var we=createTheme(mo),me={token:F,override:{override:F},hashed:true},fe=g__default.createContext(me);var Me="ant",ge="anticon",fo=["outlined","borderless","filled"],_r=(e,o)=>o||(e?`${Me}-${e}`:Me),v=g.createContext({getPrefixCls:_r,iconPrefixCls:ge}),{Consumer:Ur}=v;var Qr=`-ant-${Date.now()}-${Math.random()}`;function Yr(e,o){let t={},n=(i,l)=>{let c=i.clone();return c=l?.(c)||c,c.toRgbString()},r=(i,l)=>{let c=new TinyColor(i),s=generate(c.toRgbString());t[`${l}-color`]=n(c),t[`${l}-color-disabled`]=s[1],t[`${l}-color-hover`]=s[4],t[`${l}-color-active`]=s[6],t[`${l}-color-outline`]=c.clone().setAlpha(.2).toRgbString(),t[`${l}-color-deprecated-bg`]=s[0],t[`${l}-color-deprecated-border`]=s[2];};if(o.primaryColor){r(o.primaryColor,"primary");let i=new TinyColor(o.primaryColor),l=generate(i.toRgbString());l.forEach((s,p)=>{t[`primary-${p+1}`]=s;}),t["primary-color-deprecated-l-35"]=n(i,s=>s.lighten(35)),t["primary-color-deprecated-l-20"]=n(i,s=>s.lighten(20)),t["primary-color-deprecated-t-20"]=n(i,s=>s.tint(20)),t["primary-color-deprecated-t-50"]=n(i,s=>s.tint(50)),t["primary-color-deprecated-f-12"]=n(i,s=>s.setAlpha(s.getAlpha()*.12));let c=new TinyColor(l[0]);t["primary-color-active-deprecated-f-30"]=n(c,s=>s.setAlpha(s.getAlpha()*.3)),t["primary-color-active-deprecated-d-02"]=n(c,s=>s.darken(2));}return o.successColor&&r(o.successColor,"success"),o.warningColor&&r(o.warningColor,"warning"),o.errorColor&&r(o.errorColor,"error"),o.infoColor&&r(o.infoColor,"info"),`
|
|
4
|
+
:root {
|
|
5
|
+
${Object.keys(t).map(i=>`--${e}-${i}: ${t[i]};`).join(`
|
|
6
|
+
`)}
|
|
7
|
+
}
|
|
8
|
+
`.trim()}function Zo(e,o){let t=Yr(e,o);Kr()?updateCSS(t,`${Qr}-dynamic-theme`):Z(false,"ConfigProvider","SSR do not support dynamic theme with css variables.");}var uo=g.createContext(false),et=({children:e,disabled:o})=>{let t=g.useContext(uo);return g.createElement(uo.Provider,{value:o??t},e)},Ee=uo;var Co=g.createContext(void 0),ot=({children:e,size:o})=>{let t=g.useContext(Co);return g.createElement(Co.Provider,{value:o||t},e)},j=Co;function Jr(){let e=useContext(Ee),o=useContext(j);return {componentDisabled:e,componentSize:o}}var rt=Jr;var it={version:"0.0.2"};var at=it.version;function So(e){return e>=0&&e<=255}function en(e,o){let{r:t,g:n,b:r,a}=new TinyColor(e).toRgb();if(a<1)return e;let{r:i,g:l,b:c}=new TinyColor(o).toRgb();for(let s=.01;s<=1;s+=.01){let p=Math.round((t-i*(1-s))/s),d=Math.round((n-l*(1-s))/s),f=Math.round((r-c*(1-s))/s);if(So(p)&&So(d)&&So(f))return new TinyColor({r:p,g:d,b:f,a:Math.round(s*100)/100}).toRgbString()}return new TinyColor({r:t,g:n,b:r,a:1}).toRgbString()}var ue=en;function ze(e){let{override:o,...t}=e,n={...o};Object.keys(F).forEach(f=>{delete n[f];});let r={...t,...n},a=480,i=576,l=768,c=992,s=1200,p=1600;return r.motion===false&&(r.motionDurationFast="0s",r.motionDurationMid="0s",r.motionDurationSlow="0s"),{...r,colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:ue(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:ue(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:ue(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidthFocus:r.lineWidth*3,lineWidth:r.lineWidth,controlOutlineWidth:r.lineWidth*2,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:ue(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.sizeXXL,boxShadow:`
|
|
9
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
10
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
11
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
12
|
+
`,boxShadowSecondary:`
|
|
13
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
14
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
15
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
16
|
+
`,boxShadowTertiary:`
|
|
17
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
18
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
19
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
20
|
+
`,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:s-1,screenXL:s,screenXLMin:s,screenXLMax:p-1,screenXXL:p,screenXXLMin:p,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
21
|
+
0 1px 2px -2px ${new TinyColor("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
22
|
+
0 3px 6px 0 ${new TinyColor("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
23
|
+
0 5px 12px 4px ${new TinyColor("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
24
|
+
`,boxShadowDrawerRight:`
|
|
25
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
26
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
27
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
28
|
+
`,boxShadowDrawerLeft:`
|
|
29
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
30
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
31
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
32
|
+
`,boxShadowDrawerUp:`
|
|
33
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
34
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
35
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
36
|
+
`,boxShadowDrawerDown:`
|
|
37
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
38
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
39
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
40
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",...n}}var yo={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},rn={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},nn={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},lt=(e,o,t)=>{let n=t.getDerivativeToken(e),{override:r,...a}=o,i={...n,override:r};return i=ze(i),a&&Object.entries(a).forEach(([l,c])=>{let{theme:s,...p}=c,d=p;s&&(d=lt({...i,...p},{override:p},s)),i[l]=d;}),i};function w(){let{token:e,hashed:o,theme:t,override:n,cssVar:r}=g__default.useContext(fe),a=`${at}-${o||""}`,i=t||we,[l,c,s]=useCacheToken(i,[F,e],{salt:a,override:n,getComputedToken:lt,formatToken:ze,cssVar:r&&{prefix:r.prefix,key:r.key,unitless:yo,ignore:rn,preserve:nn}});return [i,s,o?c:"",l,r]}var bo=(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}),an=()=>({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"}}),st=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),ct=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"}}}),pt=(e,o,t,n)=>{let r=`[class^="${o}"], [class*=" ${o}"]`,a=t?`.${t}`:r,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},l={};return n!==false&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:{...l,...i,[r]:i}}};var Fe=e=>({[`.${e}`]:{...an(),[`.${e} .${e}-icon`]:{display:"block"}}});var{genStyleHooks:Ce,genComponentStyleHook:sn,genSubStyleComponent:cn}=genStyleUtils({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:o}=useContext(v);return {rootPrefixCls:e(),iconPrefixCls:o}},useToken:()=>{let[e,o,t,n,r]=w();return {theme:e,realToken:o,hashId:t,token:n,cssVar:r}},useCSP:()=>{let{csp:e}=useContext(v);return e??{}},getResetStyles:(e,o)=>[{"&":ct(e)},Fe(o?.prefix.iconPrefixCls??ge)],getCommonStyle:pt,getCompUnitless:(()=>yo)});var dn=(e,o)=>{let[t,n]=w();return useStyleRegister({theme:t,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>o?.nonce,layer:{name:"antd"}},()=>[Fe(e)])},Be=dn;var fn={...g},{useId:mt}=fn,gn=()=>"",un=typeof mt>"u"?gn:mt,ft=un;function ho(e,o,t){let n=R("ConfigProvider"),r=e||{},a=r.inherit===false||!o?{...me,hashed:o?.hashed??me.hashed,cssVar:o?.cssVar}:o,i=ft();if(process.env.NODE_ENV!=="production"){let l=r.cssVar||a.cssVar,c=!!(typeof r.cssVar=="object"&&r.cssVar?.key||i);n(!l||c,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.");}return Cn(()=>{if(!e)return o;let l={...a.components};Object.keys(e.components||{}).forEach(p=>{l[p]={...l[p],...e.components[p]};});let c=`css-var-${i.replace(/:/g,"")}`,s=(r.cssVar??a.cssVar)&&{prefix:t?.prefixCls,...typeof a.cssVar=="object"?a.cssVar:{},...typeof r.cssVar=="object"?r.cssVar:{},key:typeof r.cssVar=="object"&&r.cssVar?.key||c};return {...a,...r,token:{...a.token,...r.token},components:l,cssVar:s}},[r,a],(l,c)=>l.some((s,p)=>{let d=c[p];return !Sn(s,d,true)}))}function To(e){let{children:o}=e,[,t]=w(),{motion:n}=t,r=g.useRef(false);return r.current=r.current||n===false,r.current?g.createElement(Provider,{motion:n},o):o}var ut=g.memo(({dropdownMatchSelectWidth:e})=>(R("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(ut.displayName="PropWarning");var Ct=process.env.NODE_ENV!=="production"?ut:()=>null;var Po=false;process.env.NODE_ENV!=="production"?e=>{Z(!Po,e,"Static function can not consume context like dynamic theme. Please use 'App' component instead.");}:null;var Tn=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],xt;function In(){return xt||Me}function Rn(e){return Object.keys(e).some(o=>o.endsWith("Color"))}var kn=e=>{let{prefixCls:o,iconPrefixCls:t,theme:n,holderRender:r}=e;o!==void 0&&(xt=o),n&&(Rn(n)?(Z(false,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),Zo(In(),n)):n);};var wn=e=>{let{children:o,csp:t,autoInsertSpaceInButton:n,alert:r,anchor:a,form:i,locale:l,componentSize:c,direction:s,space:p,splitter:d,virtual:f,dropdownMatchSelectWidth:u,popupMatchSelectWidth:m,popupOverflow:b,legacyLocale:M,parentContext:y,iconPrefixCls:A,theme:N,componentDisabled:Se,segmented:He,statistic:G,spin:E,calendar:C,carousel:ae,cascader:xe,collapse:De,typography:_,checkbox:Oe,descriptions:We,divider:Ne,drawer:H,skeleton:Ge,steps:Ve,image:je,layout:U,list:Xe,mentions:ye,modal:K,progress:be,result:le,slider:_e,breadcrumb:Ue,menu:Ke,pagination:qe,input:Qe,textArea:he,empty:Te,badge:h,radio:Yt,rate:Jt,switch:Zt,transfer:er,avatar:or,message:tr,tag:rr,table:nr,card:ir,tabs:ar,timeline:lr,timePicker:sr,upload:cr,notification:pr,tree:dr,colorPicker:mr,datePicker:fr,rangePicker:gr,flex:ur,wave:Cr,dropdown:Sr,warning:xr,tour:yr,variant:br,inputNumber:hr,treeSelect:Tr}=e,Mo=g.useCallback((S,k)=>{let{prefixCls:Y}=e;if(k)return k;let J=Y||y.getPrefixCls("");return S?`${J}-${S}`:J},[y.getPrefixCls,e.prefixCls]),se=A||y.iconPrefixCls||ge,ce=t||y.csp;Be(se,ce);let Pe=ho(N,y.theme,{prefixCls:Mo("")});process.env.NODE_ENV!=="production"&&(Po=Po||!!Pe);let Ye={csp:ce,autoInsertSpaceInButton:n,alert:r,anchor:a,locale:l||M,direction:s,space:p,splitter:d,virtual:f,popupMatchSelectWidth:m??u,popupOverflow:b,getPrefixCls:Mo,iconPrefixCls:se,theme:Pe,segmented:He,statistic:G,spin:E,calendar:C,carousel:ae,cascader:xe,collapse:De,typography:_,checkbox:Oe,descriptions:We,divider:Ne,drawer:H,skeleton:Ge,steps:Ve,image:je,input:Qe,textArea:he,layout:U,list:Xe,mentions:ye,modal:K,progress:be,result:le,slider:_e,breadcrumb:Ue,menu:Ke,pagination:qe,empty:Te,badge:h,radio:Yt,rate:Jt,switch:Zt,transfer:er,avatar:or,message:tr,tag:rr,table:nr,card:ir,tabs:ar,timeline:lr,timePicker:sr,upload:cr,notification:pr,tree:dr,colorPicker:mr,datePicker:fr,rangePicker:gr,flex:ur,wave:Cr,dropdown:Sr,warning:xr,tour:yr,variant:br,inputNumber:hr,treeSelect:Tr};process.env.NODE_ENV!=="production"&&R("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");let q={...y};Object.keys(Ye).forEach(S=>{Ye[S]!==void 0&&(q[S]=Ye[S]);}),Tn.forEach(S=>{let k=e[S];k&&(q[S]=k);}),typeof n<"u"&&(q.button={autoInsertSpace:n,...q.button});let Q=Cn(()=>q,q,(S,k)=>{let Y=Object.keys(S),J=Object.keys(k);return Y.length!==J.length||Y.some(ve=>S[ve]!==k[ve])}),Pr=g.useMemo(()=>({prefixCls:se,csp:ce}),[se,ce]),x=g.createElement(g.Fragment,null,g.createElement(Ct,{dropdownMatchSelectWidth:u}),o),Eo=g.useMemo(()=>merge(V.Form?.defaultValidateMessages||{},Q.locale?.Form?.defaultValidateMessages||{},Q.form?.validateMessages||{},i?.validateMessages||{}),[Q,i?.validateMessages]);Object.keys(Eo).length>0&&(x=g.createElement(Ho.Provider,{value:Eo},x)),l&&(x=g.createElement(Vo,{locale:l,_ANT_MARK__:to},x)),(x=g.createElement(yn.Provider,{value:Pr},x)),c&&(x=g.createElement(ot,{size:c},x)),x=g.createElement(To,null,x);let vr=g.useMemo(()=>{let{algorithm:S,token:k,components:Y,cssVar:J,...ve}=Pe||{},Lo=S&&(!Array.isArray(S)||S.length>0)?createTheme(S):we,Je={};Object.entries(Y||{}).forEach(([$r,Ir])=>{let L={...Ir};"algorithm"in L&&(L.algorithm===true?L.theme=Lo:(Array.isArray(L.algorithm)||typeof L.algorithm=="function")&&(L.theme=createTheme(L.algorithm)),delete L.algorithm),Je[$r]=L;});let zo={...F,...k};return {...ve,theme:Lo,token:zo,components:Je,override:{override:zo,...Je},cssVar:J}},[Pe]);return N&&(x=g.createElement(fe.Provider,{value:vr},x)),Q.warning&&(x=g.createElement(eo.Provider,{value:Q.warning},x)),Se!==void 0&&(x=g.createElement(et,{disabled:Se},x)),g.createElement(v.Provider,{value:Q},x)},ne=e=>{let o=g.useContext(v),t=g.useContext(de);return g.createElement(wn,{parentContext:o,legacyLocale:t,...e})};ne.ConfigContext=v;ne.SizeContext=j;ne.config=kn;ne.useConfig=rt;Object.defineProperty(ne,"SizeContext",{get:()=>(Z(false,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),j)});process.env.NODE_ENV!=="production"&&(ne.displayName="ConfigProvider");var Mn=e=>{let o=g__default.useContext(j);return g__default.useMemo(()=>e?typeof e=="string"?e??o:e instanceof Function?e(o):o:o,[e,o])},vo=Mn;var En=e=>{let{componentCls:o}=e;return {[o]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},bt=En;var Ln=e=>{let{componentCls:o,antCls:t}=e;return {[o]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${o}-item:empty`]:{display:"none"},[`${o}-item > ${t}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},zn=e=>{let{componentCls:o}=e;return {[o]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}};Ce("Space",e=>{let o=mergeToken(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return [Ln(o),zn(o),bt(o)]},()=>({}),{resetStyle:false});var ht=g.createContext(null),Tt=(e,o)=>{let t=g.useContext(ht),n=g.useMemo(()=>{if(!t)return "";let{compactDirection:r,isFirstItem:a,isLastItem:i}=t,l=r==="vertical"?"-vertical-":"-";return ie(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:a,[`${e}-compact${l}last-item`]:i,[`${e}-compact${l}item-rtl`]:o==="rtl"})},[e,o,t]);return {compactSize:t?.compactSize,compactDirection:t?.compactDirection,compactItemClassnames:n}},Pt=({children:e})=>g.createElement(ht.Provider,{value:null},e);var An=e=>{let{space:o,form:t,children:n}=e;if(n==null)return null;let r=n;return t&&(r=g__default.createElement(Fo,{override:true,status:true},r)),o&&(r=g__default.createElement(Pt,null,r)),r},$o=An;var On=e=>{let o;return typeof e=="object"&&e?.clearIcon?o=e:e&&(o={clearIcon:g__default.createElement(Dn,null)}),o},$t=On;function Io(e,o,t){return ie({[`${e}-status-success`]:o==="success",[`${e}-status-warning`]:o==="warning",[`${e}-status-error`]:o==="error",[`${e}-status-validating`]:o==="validating",[`${e}-has-feedback`]:t})}var It=(e,o)=>o||e;var Nn=e=>{let[,,,,o]=w();return o?`${e}-css-var`:""},Rt=Nn;var Gn=(e,o,t=void 0)=>{let{variant:n,[e]:r}=g.useContext(v),a=g.useContext(Bo),i=r?.variant,l;typeof o<"u"?l=o:t===false?l="borderless":l=a??i??n??"outlined";let c=fo.includes(l);return [l,c]},kt=Gn;function ko(e,o){let t=useRef([]),n=()=>{t.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute("type")==="password"&&e.current?.input.hasAttribute("value")&&e.current?.input.removeAttribute("value");}));};return useEffect(()=>(n(),()=>t.current.forEach(r=>{r&&clearTimeout(r);})),[]),n}function Xn(e,o,t){let{focusElCls:n,focus:r,borderElCls:a}=t,i=a?"> *":"",l=["hover",r?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${i}`).join(",");return {[`&-item:not(${o}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{[l]:{zIndex:2},...n?{[`&${n}`]:{zIndex:2}}:{},[`&[disabled] ${i}`]:{zIndex:0}}}}function _n(e,o,t){let{borderElCls:n}=t,r=n?`> ${n}`:"";return {[`&-item:not(${o}-first-item):not(${o}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${o}-last-item)${o}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${o}-first-item)${o}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function wt(e,o={focus:true}){let{componentCls:t}=e,n=`${t}-compact`;return {[n]:{...Xn(e,n,o),..._n(t,n,o)}}}function Mt(e){return mergeToken(e,{inputAffixPadding:e.paddingXXS})}var Et=e=>{let{controlHeight:o,fontSize:t,lineHeight:n,lineWidth:r,controlHeightSM:a,controlHeightLG:i,fontSizeLG:l,lineHeightLG:c,paddingSM:s,controlPaddingHorizontalSM:p,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:u,colorPrimary:m,controlOutlineWidth:b,controlOutline:M,colorErrorOutline:y,colorWarningOutline:A,colorBgContainer:N}=e;return {paddingBlock:Math.max(Math.round((o-t*n)/2*10)/10-r,0),paddingBlockSM:Math.max(Math.round((a-t*n)/2*10)/10-r,0),paddingBlockLG:Math.ceil((i-l*c)/2*10)/10-r,paddingInline:s-r,paddingInlineSM:p-r,paddingInlineLG:d-r,addonBg:f,activeBorderColor:m,hoverBorderColor:u,activeShadow:`0 0 0 ${b}px ${M}`,errorActiveShadow:`0 0 0 ${b}px ${y}`,warningActiveShadow:`0 0 0 ${b}px ${A}`,hoverBg:N,activeBg:N,inputFontSize:t,inputFontSizeLG:l,inputFontSizeSM:t}};var Un=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),wo=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":{...Un(mergeToken(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled}))}}),At=(e,o)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:o.borderColor,"&:hover":{borderColor:o.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:o.activeBorderColor,boxShadow:o.activeShadow,outline:0,backgroundColor:e.activeBg}}),Lt=(e,o)=>({[`&${e.componentCls}-status-${o.status}:not(${e.componentCls}-disabled)`]:{...At(e,o),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:o.affixColor}},[`&${e.componentCls}-status-${o.status}${e.componentCls}-disabled`]:{borderColor:o.borderColor}}),Ht=(e,o)=>({"&-outlined":{...At(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...wo(e)},...Lt(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...Lt(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...o}}),zt=(e,o)=>({[`&${e.componentCls}-group-wrapper-status-${o.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:o.addonBorderColor,color:o.addonColor}}}),Dt=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...zt(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...zt(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...wo(e)}}}}),Ot=(e,o)=>{let{componentCls:t}=e;return {"&-borderless":{background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${t}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${t}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${t}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}},...o}}},Wt=(e,o)=>({background:o.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:o?.inputColor},"&:hover":{background:o.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:o.activeBorderColor,backgroundColor:e.activeBg}}),Ft=(e,o)=>({[`&${e.componentCls}-status-${o.status}:not(${e.componentCls}-disabled)`]:{...Wt(e,o),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:o.affixColor}}}),Nt=(e,o)=>({"&-filled":{...Wt(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor}),[`&${e.componentCls}-disabled, &[disabled]`]:{...wo(e)},...Ft(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...Ft(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...o}}),Bt=(e,o)=>({[`&${e.componentCls}-group-wrapper-status-${o.status}`]:{[`${e.componentCls}-group-addon`]:{background:o.addonBg,color:o.addonColor}}}),Gt=e=>({"&-filled":{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}},...Bt(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...Bt(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}});var Kn=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}});var Vt=e=>{let{paddingBlockLG:o,lineHeightLG:t,borderRadiusLG:n,paddingInlineLG:r}=e;return {padding:`${unit(o)} ${unit(r)}`,fontSize:e.inputFontSizeLG,lineHeight:t,borderRadius:n}},jt=e=>({padding:`${unit(e.paddingBlockSM)} ${unit(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Xt=e=>({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${unit(e.paddingBlock)} ${unit(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...Kn(e.colorTextPlaceholder),"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":{...Vt(e)},"&-sm":{...jt(e)},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),qn=e=>{let{componentCls:o,antCls:t}=e;return {position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${o}, &-lg > ${o}-group-addon`]:{...Vt(e)},[`&-sm ${o}, &-sm > ${o}-group-addon`]:{...jt(e)},[`&-lg ${t}-select-single ${t}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${t}-select-single ${t}-select-selector`]:{height:e.controlHeightSM},[`> ${o}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${o}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${unit(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${t}-select`]:{margin:`${unit(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${unit(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${t}-select-single:not(${t}-select-customize-input):not(${t}-pagination-size-changer)`]:{[`${t}-select-selector`]:{backgroundColor:"inherit",border:`${unit(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${t}-cascader-picker`]:{margin:`-9px ${unit(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${t}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[o]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${o}-search-with-button &`]:{zIndex:0}}},[`> ${o}:first-child, ${o}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-select ${t}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${o}-affix-wrapper`]:{[`&:not(:first-child) ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${o}:last-child, ${o}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${t}-select ${t}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${o}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${o}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${o}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${o}-group-compact`]:{display:"block",...st(),[`${o}-group-addon, ${o}-group-wrap, > ${o}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
41
|
+
& > ${o}-affix-wrapper,
|
|
42
|
+
& > ${o}-number-affix-wrapper,
|
|
43
|
+
& > ${t}-picker-range
|
|
44
|
+
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[o]:{float:"none"},[`& > ${t}-select > ${t}-select-selector,
|
|
45
|
+
& > ${t}-select-auto-complete ${o},
|
|
46
|
+
& > ${t}-cascader-picker ${o},
|
|
47
|
+
& > ${o}-group-wrapper ${o}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${t}-select-focused`]:{zIndex:1},[`& > ${t}-select > ${t}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
48
|
+
& > ${t}-select:first-child > ${t}-select-selector,
|
|
49
|
+
& > ${t}-select-auto-complete:first-child ${o},
|
|
50
|
+
& > ${t}-cascader-picker:first-child ${o}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
51
|
+
& > ${t}-select:last-child > ${t}-select-selector,
|
|
52
|
+
& > ${t}-cascader-picker:last-child ${o},
|
|
53
|
+
& > ${t}-cascader-picker-focused:last-child ${o}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${t}-select-auto-complete ${o}`]:{verticalAlign:"top"},[`${o}-group-wrapper + ${o}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${o}-affix-wrapper`]:{borderRadius:0}},[`${o}-group-wrapper:not(:last-child)`]:{[`&${o}-search > ${o}-group`]:{[`& > ${o}-group-addon > ${o}-search-button`]:{borderRadius:0},[`& > ${o}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}}}},Qn=e=>{let{componentCls:o,controlHeightSM:t,lineWidth:n,calc:r}=e,i=r(t).sub(r(n).mul(2)).sub(16).div(2).equal();return {[o]:{...bo(e),...Xt(e),...Ht(e),...Nt(e),...Ot(e),'&[type="color"]':{height:e.controlHeight,[`&${o}-lg`]:{height:e.controlHeightLG},[`&${o}-sm`]:{height:t,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}}}},Yn=e=>{let{componentCls:o}=e;return {[`${o}-clear-icon`]:{margin:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${unit(e.inputAffixPadding)}`}}}},Jn=e=>{let{componentCls:o,inputAffixPadding:t,colorTextDescription:n,motionDurationSlow:r,colorIcon:a,colorIconHover:i,iconCls:l}=e,c=`${o}-affix-wrapper`,s=`${o}-affix-wrapper-disabled`;return {[c]:{...Xt(e),display:"inline-flex",[`&:not(${o}-disabled):hover`]:{zIndex:1,[`${o}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${o}`]:{padding:0},[`> input${o}, > textarea${o}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[o]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:n},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:t},"&-suffix":{marginInlineStart:t}},...Yn(e),[`${l}${o}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:i}}},[s]:{[`${l}${o}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},Zn=e=>{let{componentCls:o,borderRadiusLG:t,borderRadiusSM:n}=e;return {[`${o}-group`]:{...bo(e),...qn(e),"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${o}-group-addon`]:{borderRadius:t,fontSize:e.inputFontSizeLG}},"&-sm":{[`${o}-group-addon`]:{borderRadius:n}},...Dt(e),...Gt(e),[`&:not(${o}-compact-first-item):not(${o}-compact-last-item)${o}-compact-item`]:{[`${o}, ${o}-group-addon`]:{borderRadius:0}},[`&:not(${o}-compact-last-item)${o}-compact-first-item`]:{[`${o}, ${o}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${o}-compact-first-item)${o}-compact-last-item`]:{[`${o}, ${o}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${o}-compact-last-item)${o}-compact-item`]:{[`${o}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}}}}},ei=e=>{let{componentCls:o,antCls:t}=e,n=`${o}-search`;return {[n]:{[o]:{"&:hover, &:focus":{[`+ ${o}-group-addon ${n}-button:not(${t}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${o}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${o}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${o}-group`]:{[`> ${o}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${t}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${t}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${o}-affix-wrapper, ${n}-button`]:{height:e.controlHeightLG}},"&-small":{[`${o}-affix-wrapper, ${n}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${o}-compact-item`]:{[`&:not(${o}-compact-last-item)`]:{[`${o}-group-addon`]:{[`${o}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${o}-compact-first-item)`]:{[`${o},${o}-affix-wrapper`]:{borderRadius:0}},[`> ${o}-group-addon ${o}-search-button,
|
|
54
|
+
> ${o},
|
|
55
|
+
${o}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${o}-affix-wrapper-focused`]:{zIndex:2}}}}},oi=e=>{let{componentCls:o,paddingLG:t}=e,n=`${o}-textarea`;return {[n]:{position:"relative","&-show-count":{[`> ${o}`]:{height:"100%"},[`${o}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
56
|
+
&-allow-clear > ${o},
|
|
57
|
+
&-affix-wrapper${n}-has-feedback ${o}
|
|
58
|
+
`]:{paddingInlineEnd:t},[`&-affix-wrapper${o}-affix-wrapper`]:{padding:0,[`> textarea${o}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${o}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${o}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${o}-affix-wrapper-sm`]:{[`${o}-suffix`]:{[`${o}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},ti=e=>{let{componentCls:o}=e;return {[`${o}-out-of-range`]:{[`&, & input, & textarea, ${o}-show-count-suffix, ${o}-data-count`]:{color:e.colorError}}}},_t=Ce("Input",e=>{let o=mergeToken(e,Mt(e));return [Qn(o),oi(o),Jn(o),Zn(o),ei(o),ti(o),wt(o)]},Et,{resetFont:false});function Ut(e){return !!(e.prefix||e.suffix||e.allowClear||e.showCount)}var qt=forwardRef((e,o)=>{let{prefixCls:t,bordered:n=true,status:r,size:a,disabled:i,onBlur:l,onFocus:c,suffix:s,allowClear:p,addonAfter:d,addonBefore:f,className:u,style:m,styles:b,rootClassName:M,onChange:y,classNames:A,variant:N,...Se}=e;if(process.env.NODE_ENV!=="production"){let{deprecated:h}=R("Input");h(!("bordered"in e),"bordered","variant");}let{getPrefixCls:He,direction:G,input:E}=g__default.useContext(v),C=He("input",t),ae=useRef(null),xe=Rt(C),[De,_,Oe]=_t(C,xe),{compactSize:We,compactItemClassnames:Ne}=Tt(C,G),H=vo(h=>a??We??h),Ge=g__default.useContext(Ee),Ve=i??Ge,{status:je,hasFeedback:U,feedbackIcon:Xe}=useContext(pe),ye=It(je,r),K=Ut(e)||!!U,be=useRef(K);if(process.env.NODE_ENV!=="production"){let h=R("Input");useEffect(()=>{K&&!be.current&&h(document.activeElement===ae.current?.input,"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),be.current=K;},[K]);}let le=ko(ae),_e=h=>{le(),l?.(h);},Ue=h=>{le(),c?.(h);},Ke=h=>{le(),y?.(h);},qe=(U||s)&&g__default.createElement(g__default.Fragment,null,s,U&&Xe),Qe=$t(p??E?.allowClear),[he,Te]=kt("input",N,n);return De(g__default.createElement(ai,{ref:composeRef(o,ae),prefixCls:C,autoComplete:E?.autoComplete,...Se,disabled:Ve,onBlur:_e,onFocus:Ue,style:{...E?.style,...m},styles:{...E?.styles,...b},suffix:qe,allowClear:Qe,className:ie(u,M,Oe,xe,Ne,E?.className),onChange:Ke,addonBefore:f&&g__default.createElement($o,{form:true,space:true},f),addonAfter:d&&g__default.createElement($o,{form:true,space:true},d),classNames:{...A,...E?.classNames,input:ie({[`${C}-sm`]:H==="small",[`${C}-lg`]:H==="large",[`${C}-rtl`]:G==="rtl"},A?.input,E?.classNames?.input,_),variant:ie({[`${C}-${he}`]:Te},Io(C,ye)),affixWrapper:ie({[`${C}-affix-wrapper-sm`]:H==="small",[`${C}-affix-wrapper-lg`]:H==="large",[`${C}-affix-wrapper-rtl`]:G==="rtl"},_),wrapper:ie({[`${C}-group-rtl`]:G==="rtl"},_),groupWrapper:ie({[`${C}-group-wrapper-sm`]:H==="small",[`${C}-group-wrapper-lg`]:H==="large",[`${C}-group-wrapper-rtl`]:G==="rtl",[`${C}-group-wrapper-${he}`]:Te},Io(`${C}-group-wrapper`,ye,U),_)}}))});process.env.NODE_ENV!=="production"&&(qt.displayName="Input");var Qt=qt;var ci=g.forwardRef((e,o)=>{let{value:t,onChange:n,onActiveChange:r,index:a,mask:i,...l}=e,c=t&&typeof i=="string"?i:t,s=m=>{n(a,m.target.value);},p=g.useRef(null);g.useImperativeHandle(o,()=>p.current);let d=()=>{si(()=>{let m=p.current?.input;document.activeElement===m&&m&&m.select();});};return g.createElement(Qt,{type:i===true?"password":"text",...l,ref:p,value:c,onInput:s,onFocus:d,onKeyDown:m=>{let{key:b,ctrlKey:M,metaKey:y}=m;b==="ArrowLeft"?r(a-1):b==="ArrowRight"?r(a+1):b==="z"&&(M||y)&&m.preventDefault(),d();},onKeyUp:m=>{m.key==="Backspace"&&!t&&r(a-1),d();},onMouseDown:d,onMouseUp:d})}),Ic=ci;
|
|
59
|
+
export{Ic as default};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { InputStatus } from '../../_util/statusUtils';
|
|
3
|
+
import type { Variant } from '../../config-provider';
|
|
4
|
+
import type { SizeType } from '../../config-provider/SizeContext';
|
|
5
|
+
export interface OTPRef {
|
|
6
|
+
focus: VoidFunction;
|
|
7
|
+
blur: VoidFunction;
|
|
8
|
+
nativeElement: HTMLDivElement;
|
|
9
|
+
}
|
|
10
|
+
export interface OTPProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onInput'> {
|
|
11
|
+
prefixCls?: string;
|
|
12
|
+
length?: number;
|
|
13
|
+
variant?: Variant;
|
|
14
|
+
rootClassName?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
style?: React.CSSProperties;
|
|
17
|
+
size?: SizeType;
|
|
18
|
+
defaultValue?: string;
|
|
19
|
+
value?: string;
|
|
20
|
+
onChange?: (value: string) => void;
|
|
21
|
+
formatter?: (value: string) => string;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
status?: InputStatus;
|
|
24
|
+
mask?: boolean | string;
|
|
25
|
+
type?: React.HTMLInputTypeAttribute;
|
|
26
|
+
onInput?: (value: string[]) => void;
|
|
27
|
+
}
|
|
28
|
+
declare const OTP: React.ForwardRefExoticComponent<OTPProps & React.RefAttributes<OTPRef>>;
|
|
29
|
+
export default OTP;
|