@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,36 @@
|
|
|
1
|
+
import*as d from'react';import d__default,{createContext,useContext}from'react';import {TinyColor}from'@ctrl/tinycolor';import Me,{resetWarned}from'rc-util/lib/warning';import De from'rc-pagination/lib/locale/en_US';import Ae from'rc-picker/lib/locale/en_US';import {createTheme,useCacheToken}from'@ant-design/cssinjs';import {genStyleUtils}from'@ant-design/cssinjs-utils';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';function J(){}var x=null;function we(){x=null,resetWarned();}var Z=J;process.env.NODE_ENV!=="production"&&(Z=(e,t,r)=>{Me(e,`[swiftcrab: ${t}] ${r}`),process.env.NODE_ENV==="test"&&we();});var ze=d.createContext({});process.env.NODE_ENV!=="production"?e=>{let{strict:t}=d.useContext(ze),r=(n,o,a)=>{if(!n)if(t===false&&o==="deprecated"){let i=x;x||(x={}),x[e]=x[e]||[],x[e].includes(a||"")||x[e].push(a||""),i||console.warn("[swiftcrab] There exists deprecated usage in your code:",x);}else Z(n,e,a);};return r.deprecated=(n,o,a,i)=>{r(n,"deprecated",`\`${o}\` is deprecated. Please use \`${a}\` instead.${i?` ${i}`:""}`);},r}:()=>{let e=()=>{};return e.deprecated=J,e};var He={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},L=He;var Re={lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],...Ae},timePickerLocale:{...L}},w=Re;var oe=w;var C="${label} is not a valid ${type}",Fe={locale:"en",Pagination:De,DatePicker:w,TimePicker:L,Calendar:oe,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:C,method:C,array:C,object:C,number:C,date:C,boolean:C,integer:C,float:C,regexp:C,email:C,url:C,hex:C},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}},S=Fe;var Ee=createContext(void 0),H=Ee;var Be=(e,t)=>{let r=d.useContext(H),n=d.useMemo(()=>{let a=t||S[e],i=r?.[e]??{};return {...typeof a=="function"?a():a,...i||{}}},[e,t,r]),o=d.useMemo(()=>{let a=r?.locale;return r?.exist&&!a?S.locale:a},[r]);return [n,o]},E=Be;process.env.NODE_ENV!=="production"&&("LocaleProvider");function ie(e){return (e+8)/e}function B(e){let t=new Array(10).fill(null).map((r,n)=>{let o=n-1,a=e*Math.E**(o/5),i=n>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:ie(r)}))}var ae={version:"0.0.2"};var le=ae.version;var $={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"},We={...$,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},T=We;function N(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){let{colorSuccess:n,colorWarning:o,colorError:a,colorInfo:i,colorPrimary:s,colorBgBase:g,colorTextBase:c}=e,l=t(s),p=t(n),m=t(o),f=t(a),y=t(i),Pe=r(g,c),he=e.colorLink||e.colorInfo,F=t(he),ve=new TinyColor(f[1]).mix(new TinyColor(f[3]),50).toHexString();return {...Pe,colorPrimaryBg:l[1],colorPrimaryBgHover:l[2],colorPrimaryBorder:l[3],colorPrimaryBorderHover:l[4],colorPrimaryHover:l[5],colorPrimary:l[6],colorPrimaryActive:l[7],colorPrimaryTextHover:l[8],colorPrimaryText:l[9],colorPrimaryTextActive:l[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:f[1],colorErrorBgHover:f[2],colorErrorBgFilledHover:ve,colorErrorBgActive:f[3],colorErrorBorder:f[3],colorErrorBorderHover:f[4],colorErrorHover:f[5],colorError:f[6],colorErrorActive:f[7],colorErrorTextHover:f[8],colorErrorText:f[9],colorErrorTextActive:f[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:y[1],colorInfoBgHover:y[2],colorInfoBorder:y[3],colorInfoBorderHover:y[4],colorInfoHover:y[4],colorInfo:y[6],colorInfoActive:y[7],colorInfoTextHover:y[8],colorInfoText:y[9],colorInfoTextActive:y[10],colorLinkHover:F[4],colorLink:F[6],colorLinkActive:F[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var Ge=e=>{let t=e,r=e,n=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}},ce=Ge;function W(e){let{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return {motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:o+1,...ce(n)}}var Xe=e=>{let{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},se=Xe;var je=e=>{let t=B(e),r=t.map(l=>l.size),n=t.map(l=>l.lineHeight),o=r[1],a=r[0],i=r[2],s=n[1],g=n[0],c=n[2];return {fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:c,lineHeightSM:g,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(g*a),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},pe=je;function G(e){let{sizeUnit:t,sizeStep:r}=e;return {sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}var u=(e,t)=>new TinyColor(e).setAlpha(t).toRgbString(),P=(e,t)=>new TinyColor(e).darken(t).toHexString();var ge=e=>{let t=generate(e);return {1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},de=(e,t)=>{let r=e||"#fff",n=t||"#000";return {colorBgBase:r,colorTextBase:n,colorText:u(n,.88),colorTextSecondary:u(n,.65),colorTextTertiary:u(n,.45),colorTextQuaternary:u(n,.25),colorFill:u(n,.15),colorFillSecondary:u(n,.06),colorFillTertiary:u(n,.04),colorFillQuaternary:u(n,.02),colorBgSolid:u(n,1),colorBgSolidHover:u(n,.75),colorBgSolidActive:u(n,.95),colorBgLayout:P(r,4),colorBgContainer:P(r,0),colorBgElevated:P(r,0),colorBgSpotlight:u(n,.85),colorBgBlur:"transparent",colorBorder:P(r,15),colorBorderSecondary:P(r,6)}};function V(e){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let t=Object.keys($).map(r=>{let n=e[r]===presetPrimaryColors[r]?presetPalettes[r]:generate(e[r]);return new Array(10).fill(1).reduce((o,a,i)=>(o[`${r}-${i+1}`]=n[i],o[`${r}${i+1}`]=n[i],o),{})}).reduce((r,n)=>(r={...r,...n},r),{});return {...e,...t,...N(e,{generateColorPalettes:ge,generateNeutralColorPalettes:de}),...pe(e.fontSize),...G(e),...se(e),...W(e)}}var fe=createTheme(V),Ce={token:T,override:{override:T},hashed:true},U=d__default.createContext(Ce);function _(e){return e>=0&&e<=255}function qe(e,t){let{r,g:n,b:o,a}=new TinyColor(e).toRgb();if(a<1)return e;let{r:i,g:s,b:g}=new TinyColor(t).toRgb();for(let c=.01;c<=1;c+=.01){let l=Math.round((r-i*(1-c))/c),p=Math.round((n-s*(1-c))/c),m=Math.round((o-g*(1-c))/c);if(_(l)&&_(p)&&_(m))return new TinyColor({r:l,g:p,b:m,a:Math.round(c*100)/100}).toRgbString()}return new TinyColor({r,g:n,b:o,a:1}).toRgbString()}var v=qe;function R(e){let{override:t,...r}=e,n={...t};Object.keys(T).forEach(m=>{delete n[m];});let o={...r,...n},a=480,i=576,s=768,g=992,c=1200,l=1600;return o.motion===false&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),{...o,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:v(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:v(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:v(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:v(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
|
|
4
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
5
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
6
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
7
|
+
`,boxShadowSecondary:`
|
|
8
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
9
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
10
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
11
|
+
`,boxShadowTertiary:`
|
|
12
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
13
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
14
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
15
|
+
`,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:g-1,screenLG:g,screenLGMin:g,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:l-1,screenXXL:l,screenXXLMin:l,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
16
|
+
0 1px 2px -2px ${new TinyColor("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
17
|
+
0 3px 6px 0 ${new TinyColor("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
18
|
+
0 5px 12px 4px ${new TinyColor("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
19
|
+
`,boxShadowDrawerRight:`
|
|
20
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
21
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
22
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
23
|
+
`,boxShadowDrawerLeft:`
|
|
24
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
25
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
26
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
27
|
+
`,boxShadowDrawerUp:`
|
|
28
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
29
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
30
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
31
|
+
`,boxShadowDrawerDown:`
|
|
32
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
33
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
34
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
35
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",...n}}var q={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},Je={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},Ze={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},ue=(e,t,r)=>{let n=r.getDerivativeToken(e),{override:o,...a}=t,i={...n,override:o};return i=R(i),a&&Object.entries(a).forEach(([s,g])=>{let{theme:c,...l}=g,p=l;c&&(p=ue({...i,...l},{override:l},c)),i[s]=p;}),i};function k(){let{token:e,hashed:t,theme:r,override:n,cssVar:o}=d__default.useContext(U),a=`${le}-${t||""}`,i=r||fe,[s,g,c]=useCacheToken(i,[T,e],{salt:a,override:n,getComputedToken:ue,formatToken:R,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:q,ignore:Je,preserve:Ze}});return [i,c,t?g:"",s,o]}var ye="ant",K="anticon";var eo=(e,t)=>t||(e?`${ye}-${e}`:ye),D=d.createContext({getPrefixCls:eo,iconPrefixCls:K}),{Consumer:wt}=D;var oo=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}});var Se=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"}}}),Te=(e,t,r,n)=>{let o=`[class^="${t}"], [class*=" ${t}"]`,a=r?`.${r}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},s={};return n!==false&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:{...s,...i,[o]:i}}};var Y=e=>({[`.${e}`]:{...oo(),[`.${e} .${e}-icon`]:{display:"block"}}});var{genStyleHooks:ro,genComponentStyleHook:no,genSubStyleComponent:io}=genStyleUtils({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=useContext(D);return {rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,r,n,o]=k();return {theme:e,realToken:t,hashId:r,token:n,cssVar:o}},useCSP:()=>{let{csp:e}=useContext(D);return e??{}},getResetStyles:(e,t)=>[{"&":Se(e)},Y(t?.prefix.iconPrefixCls??K)],getCommonStyle:Te,getCompUnitless:(()=>q)});var be=()=>{let[,e]=k(),[t]=E("Empty"),n=new TinyColor(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return d.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,t?.description||"Empty"),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(24 31.67)"},d.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),d.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),d.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),d.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),d.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),d.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),d.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},d.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),d.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};process.env.NODE_ENV!=="production"&&(be.displayName="EmptyImage");var gr=be;
|
|
36
|
+
export{gr as default};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface TransferLocale {
|
|
3
|
+
description: string;
|
|
4
|
+
}
|
|
5
|
+
export interface EmptyProps {
|
|
6
|
+
prefixCls?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
rootClassName?: string;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
/** @since 3.16.0 */
|
|
11
|
+
imageStyle?: React.CSSProperties;
|
|
12
|
+
image?: React.ReactNode;
|
|
13
|
+
description?: React.ReactNode;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
type CompoundedComponent = React.FC<EmptyProps> & {
|
|
17
|
+
PRESENTED_IMAGE_DEFAULT: React.ReactNode;
|
|
18
|
+
PRESENTED_IMAGE_SIMPLE: React.ReactNode;
|
|
19
|
+
};
|
|
20
|
+
declare const Empty: CompoundedComponent;
|
|
21
|
+
export default Empty;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import*as f from'react';import f__default,{createContext,useContext,useMemo}from'react';import qr from'classnames';import {createTheme,useCacheToken,useStyleRegister}from'@ant-design/cssinjs';import Hr from'@ant-design/icons/lib/components/Context';import zr from'rc-util/lib/hooks/useMemo';import {merge}from'rc-util/lib/utils/set';import Gt,{resetWarned}from'rc-util/lib/warning';import Qt from'rc-pagination/lib/locale/en_US';import Kt from'rc-picker/lib/locale/en_US';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';import mr from'rc-util/lib/Dom/canUseDom';import {updateCSS}from'rc-util/lib/Dom/dynamicCSS';import Dr from'rc-util/lib/isEqual';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import {Provider}from'rc-motion';function Ue(){}var L=null;function Xt(){L=null,resetWarned();}var xe=Ue;process.env.NODE_ENV!=="production"&&(xe=(e,o,r)=>{Gt(e,`[swiftcrab: ${o}] ${r}`),process.env.NODE_ENV==="test"&&Xt();});var Se=f.createContext({}),E=process.env.NODE_ENV!=="production"?e=>{let{strict:o}=f.useContext(Se),r=(n,t,a)=>{if(!n)if(o===false&&t==="deprecated"){let i=L;L||(L={}),L[e]=L[e]||[],L[e].includes(a||"")||L[e].push(a||""),i||console.warn("[swiftcrab] There exists deprecated usage in your code:",L);}else xe(n,e,a);};return r.deprecated=(n,t,a,i)=>{r(n,"deprecated",`\`${t}\` is deprecated. Please use \`${a}\` instead.${i?` ${i}`:""}`);},r}:()=>{let e=()=>{};return e.deprecated=Ue,e},$=xe;var Ke=createContext(void 0);var Ut={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},ie=Ut;var qt={lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],...Kt},timePickerLocale:{...ie}},ae=qt;var qe=ae;var T="${label} is not a valid ${type}",Yt={locale:"en",Pagination:Qt,DatePicker:ae,TimePicker:ie,Calendar:qe,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string: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}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}},R=Yt;({...R.Modal});var le=[],Qe=()=>le.reduce((e,o)=>({...e,...o}),R.Modal);function Ye(e){if(e){let o={...e};return le.push(o),Qe(),()=>{le=le.filter(r=>r!==o),Qe();}}({...R.Modal});}var Zt=createContext(void 0),O=Zt;var er=(e,o)=>{let r=f.useContext(O),n=f.useMemo(()=>{let a=o||R[e],i=r?.[e]??{};return {...typeof a=="function"?a():a,...i||{}}},[e,o,r]),t=f.useMemo(()=>{let a=r?.locale;return r?.exist&&!a?R.locale:a},[r]);return [n,t]},z=er;var he="internalMark",Je=e=>{let{locale:o={},children:r,_ANT_MARK__:n}=e;process.env.NODE_ENV!=="production"&&E("LocaleProvider")(n===he,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),f.useEffect(()=>Ye(o?.Modal),[o]);let t=f.useMemo(()=>({...o,exist:true}),[o]);return f.createElement(O.Provider,{value:t},r)};process.env.NODE_ENV!=="production"&&(Je.displayName="LocaleProvider");var Ze=Je;var Pe={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"},or={...Pe,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},w=or;function ke(e,{generateColorPalettes:o,generateNeutralColorPalettes:r}){let{colorSuccess:n,colorWarning:t,colorError:a,colorInfo:i,colorPrimary:s,colorBgBase:c,colorTextBase:l}=e,p=o(s),g=o(n),m=o(t),d=o(a),x=o(i),X=r(c,l),_=e.colorLink||e.colorInfo,y=o(_),U=new TinyColor(d[1]).mix(new TinyColor(d[3]),50).toHexString();return {...X,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:g[1],colorSuccessBgHover:g[2],colorSuccessBorder:g[3],colorSuccessBorderHover:g[4],colorSuccessHover:g[4],colorSuccess:g[6],colorSuccessActive:g[7],colorSuccessTextHover:g[8],colorSuccessText:g[9],colorSuccessTextActive:g[10],colorErrorBg:d[1],colorErrorBgHover:d[2],colorErrorBgFilledHover:U,colorErrorBgActive:d[3],colorErrorBorder:d[3],colorErrorBorderHover:d[4],colorErrorHover:d[5],colorError:d[6],colorErrorActive:d[7],colorErrorTextHover:d[8],colorErrorText:d[9],colorErrorTextActive:d[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg: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 tr=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}},eo=tr;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,...eo(n)}}var rr=e=>{let{controlHeight:o}=e;return {controlHeightSM:o*.75,controlHeightXS:o*.5,controlHeightLG:o*1.25}},oo=rr;function to(e){return (e+8)/e}function Me(e){let o=new Array(10).fill(null).map((r,n)=>{let t=n-1,a=e*Math.E**(t/5),i=n>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return o[1]=e,o.map(r=>({size:r,lineHeight:to(r)}))}var nr=e=>{let o=Me(e),r=o.map(p=>p.size),n=o.map(p=>p.lineHeight),t=r[1],a=r[0],i=r[2],s=n[1],c=n[0],l=n[2];return {fontSizeSM:a,fontSize:t,fontSizeLG:i,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:l,lineHeightSM:c,fontHeight:Math.round(s*t),fontHeightLG:Math.round(l*i),fontHeightSM:Math.round(c*a),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},ro=nr;function Le(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 h=(e,o)=>new TinyColor(e).setAlpha(o).toRgbString(),W=(e,o)=>new TinyColor(e).darken(o).toHexString();var io=e=>{let o=generate(e);return {1:o[0],2:o[1],3:o[2],4:o[3],5:o[4],6:o[5],7:o[6],8:o[4],9:o[5],10:o[6]}},ao=(e,o)=>{let r=e||"#fff",n=o||"#000";return {colorBgBase:r,colorTextBase:n,colorText:h(n,.88),colorTextSecondary:h(n,.65),colorTextTertiary:h(n,.45),colorTextQuaternary:h(n,.25),colorFill:h(n,.15),colorFillSecondary:h(n,.06),colorFillTertiary:h(n,.04),colorFillQuaternary:h(n,.02),colorBgSolid:h(n,1),colorBgSolidHover:h(n,.75),colorBgSolidActive:h(n,.95),colorBgLayout:W(r,4),colorBgContainer:W(r,0),colorBgElevated:W(r,0),colorBgSpotlight:h(n,.85),colorBgBlur:"transparent",colorBorder:W(r,15),colorBorderSecondary:W(r,6)}};function Ee(e){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let o=Object.keys(Pe).map(r=>{let n=e[r]===presetPrimaryColors[r]?presetPalettes[r]:generate(e[r]);return new Array(10).fill(1).reduce((t,a,i)=>(t[`${r}-${i+1}`]=n[i],t[`${r}${i+1}`]=n[i],t),{})}).reduce((r,n)=>(r={...r,...n},r),{});return {...e,...o,...ke(e,{generateColorPalettes:io,generateNeutralColorPalettes:ao}),...ro(e.fontSize),...Le(e),...oo(e),...ve(e)}}var se=createTheme(Ee),Y={token:w,override:{override:w},hashed:true},J=f__default.createContext(Y);var ce="ant",Z="anticon";var cr=(e,o)=>o||(e?`${ce}-${e}`:ce),k=f.createContext({getPrefixCls:cr,iconPrefixCls:Z}),{Consumer:pr}=k;var fr=`-ant-${Date.now()}-${Math.random()}`;function dr(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),l=generate(c.toRgbString());r[`${s}-color`]=n(c),r[`${s}-color-disabled`]=l[1],r[`${s}-color-hover`]=l[4],r[`${s}-color-active`]=l[6],r[`${s}-color-outline`]=c.clone().setAlpha(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=l[0],r[`${s}-color-deprecated-border`]=l[2];};if(o.primaryColor){t(o.primaryColor,"primary");let i=new TinyColor(o.primaryColor),s=generate(i.toRgbString());s.forEach((l,p)=>{r[`primary-${p+1}`]=l;}),r["primary-color-deprecated-l-35"]=n(i,l=>l.lighten(35)),r["primary-color-deprecated-l-20"]=n(i,l=>l.lighten(20)),r["primary-color-deprecated-t-20"]=n(i,l=>l.tint(20)),r["primary-color-deprecated-t-50"]=n(i,l=>l.tint(50)),r["primary-color-deprecated-f-12"]=n(i,l=>l.setAlpha(l.getAlpha()*.12));let c=new TinyColor(s[0]);r["primary-color-active-deprecated-f-30"]=n(c,l=>l.setAlpha(l.getAlpha()*.3)),r["primary-color-active-deprecated-d-02"]=n(c,l=>l.darken(2));}return o.successColor&&t(o.successColor,"success"),o.warningColor&&t(o.warningColor,"warning"),o.errorColor&&t(o.errorColor,"error"),o.infoColor&&t(o.infoColor,"info"),`
|
|
4
|
+
:root {
|
|
5
|
+
${Object.keys(r).map(i=>`--${e}-${i}: ${r[i]};`).join(`
|
|
6
|
+
`)}
|
|
7
|
+
}
|
|
8
|
+
`.trim()}function co(e,o){let r=dr(e,o);mr()?updateCSS(r,`${fr}-dynamic-theme`):$(false,"ConfigProvider","SSR do not support dynamic theme with css variables.");}var ze=f.createContext(false),po=({children:e,disabled:o})=>{let r=f.useContext(ze);return f.createElement(ze.Provider,{value:o??r},e)},mo=ze;var De=f.createContext(void 0),go=({children:e,size:o})=>{let r=f.useContext(De);return f.createElement(De.Provider,{value:o||r},e)},ee=De;function Cr(){let e=useContext(mo),o=useContext(ee);return {componentDisabled:e,componentSize:o}}var Co=Cr;var yo={version:"0.0.2"};var xo=yo.version;function Ae(e){return e>=0&&e<=255}function yr(e,o){let{r,g:n,b:t,a}=new TinyColor(e).toRgb();if(a<1)return e;let{r:i,g:s,b:c}=new TinyColor(o).toRgb();for(let l=.01;l<=1;l+=.01){let p=Math.round((r-i*(1-l))/l),g=Math.round((n-s*(1-l))/l),m=Math.round((t-c*(1-l))/l);if(Ae(p)&&Ae(g)&&Ae(m))return new TinyColor({r:p,g,b:m,a:Math.round(l*100)/100}).toRgbString()}return new TinyColor({r,g:n,b:t,a:1}).toRgbString()}var oe=yr;function me(e){let{override:o,...r}=e,n={...o};Object.keys(w).forEach(m=>{delete n[m];});let t={...r,...n},a=480,i=576,s=768,c=992,l=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:oe(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:oe(t.colorErrorBg,t.colorBgContainer),colorWarningOutline:oe(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:oe(t.colorPrimaryBg,t.colorBgContainer),lineType:t.lineType,borderRadius:t.borderRadius,borderRadiusXS:t.borderRadiusXS,borderRadiusSM:t.borderRadiusSM,borderRadiusLG:t.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:t.sizeXXS,paddingXS:t.sizeXS,paddingSM:t.sizeSM,padding:t.size,paddingMD:t.sizeMD,paddingLG:t.sizeLG,paddingXL:t.sizeXL,paddingContentHorizontalLG:t.sizeLG,paddingContentVerticalLG:t.sizeMS,paddingContentHorizontal:t.sizeMS,paddingContentVertical:t.sizeSM,paddingContentHorizontalSM:t.size,paddingContentVerticalSM:t.sizeXS,marginXXS:t.sizeXXS,marginXS:t.sizeXS,marginSM:t.sizeSM,margin:t.size,marginMD:t.sizeMD,marginLG:t.sizeLG,marginXL:t.sizeXL,marginXXL:t.sizeXXL,boxShadow:`
|
|
9
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
10
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
11
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
12
|
+
`,boxShadowSecondary:`
|
|
13
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
14
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
15
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
16
|
+
`,boxShadowTertiary:`
|
|
17
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
18
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
19
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
20
|
+
`,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:l-1,screenXL:l,screenXLMin:l,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 Ne={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},Tr={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},hr={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},So=(e,o,r)=>{let n=r.getDerivativeToken(e),{override:t,...a}=o,i={...n,override:t};return i=me(i),a&&Object.entries(a).forEach(([s,c])=>{let{theme:l,...p}=c,g=p;l&&(g=So({...i,...p},{override:p},l)),i[s]=g;}),i};function P(){let{token:e,hashed:o,theme:r,override:n,cssVar:t}=f__default.useContext(J),a=`${xo}-${o||""}`,i=r||se,[s,c,l]=useCacheToken(i,[w,e],{salt:a,override:n,getComputedToken:So,formatToken:me,cssVar:t&&{prefix:t.prefix,key:t.key,unitless:Ne,ignore:Tr,preserve:hr}});return [i,l,o?c:"",s,t]}var Pr=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}});var To=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"}}}),ho=(e,o,r,n)=>{let t=`[class^="${o}"], [class*=" ${o}"]`,a=r?`.${r}`:t,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},s={};return n!==false&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:{...s,...i,[t]:i}}};var ge=e=>({[`.${e}`]:{...Pr(),[`.${e} .${e}-icon`]:{display:"block"}}});var{genStyleHooks:Fe,genComponentStyleHook:kr,genSubStyleComponent:vr}=genStyleUtils({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:o}=useContext(k);return {rootPrefixCls:e(),iconPrefixCls:o}},useToken:()=>{let[e,o,r,n,t]=P();return {theme:e,realToken:o,hashId:r,token:n,cssVar:t}},useCSP:()=>{let{csp:e}=useContext(k);return e??{}},getResetStyles:(e,o)=>[{"&":To(e)},ge(o?.prefix.iconPrefixCls??Z)],getCommonStyle:ho,getCompUnitless:(()=>Ne)});var Lr=(e,o)=>{let[r,n]=P();return useStyleRegister({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>o?.nonce,layer:{name:"antd"}},()=>[ge(e)])},fe=Lr;var wr={...f},{useId:ko}=wr,Er=()=>"",Ir=typeof ko>"u"?Er:ko,vo=Ir;function $e(e,o,r){let n=E("ConfigProvider"),t=e||{},a=t.inherit===false||!o?{...Y,hashed:o?.hashed??Y.hashed,cssVar:o?.cssVar}:o,i=vo();if(process.env.NODE_ENV!=="production"){let s=t.cssVar||a.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 zr(()=>{if(!e)return o;let s={...a.components};Object.keys(e.components||{}).forEach(p=>{s[p]={...s[p],...e.components[p]};});let c=`css-var-${i.replace(/:/g,"")}`,l=(t.cssVar??a.cssVar)&&{prefix:r?.prefixCls,...typeof a.cssVar=="object"?a.cssVar:{},...typeof t.cssVar=="object"?t.cssVar:{},key:typeof t.cssVar=="object"&&t.cssVar?.key||c};return {...a,...t,token:{...a.token,...t.token},components:s,cssVar:l}},[t,a],(s,c)=>s.some((l,p)=>{let g=c[p];return !Dr(l,g,true)}))}function Oe(e){let{children:o}=e,[,r]=P(),{motion:n}=r,t=f.useRef(false);return t.current=t.current||n===false,t.current?f.createElement(Provider,{motion:n},o):o}var Lo=f.memo(({dropdownMatchSelectWidth:e})=>(E("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(Lo.displayName="PropWarning");var Ro=process.env.NODE_ENV!=="production"?Lo:()=>null;var Be=false;process.env.NODE_ENV!=="production"?e=>{$(!Be,e,"Static function can not consume context like dynamic theme. Please use 'App' component instead.");}:null;var $r=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],Eo;function Vr(){return Eo||ce}function Gr(e){return Object.keys(e).some(o=>o.endsWith("Color"))}var jr=e=>{let{prefixCls:o,iconPrefixCls:r,theme:n,holderRender:t}=e;o!==void 0&&(Eo=o),n&&(Gr(n)?($(false,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),co(Vr(),n)):n);};var Xr=e=>{let{children:o,csp:r,autoInsertSpaceInButton:n,alert:t,anchor:a,form:i,locale:s,componentSize:c,direction:l,space:p,splitter:g,virtual:m,dropdownMatchSelectWidth:d,popupMatchSelectWidth:x,popupOverflow:X,legacyLocale:_,parentContext:y,iconPrefixCls:U,theme:D,componentDisabled:Ve,segmented:$o,statistic:Oo,spin:Bo,calendar:Wo,carousel:Vo,cascader:Go,collapse:jo,typography:Xo,checkbox:_o,descriptions:Uo,divider:Ko,drawer:qo,skeleton:Qo,steps:Yo,image:Jo,layout:Zo,list:et,mentions:ot,modal:tt,progress:rt,result:nt,slider:it,breadcrumb:at,menu:lt,pagination:st,input:ct,textArea:pt,empty:mt,badge:gt,radio:ft,rate:dt,switch:Ct,transfer:ut,avatar:yt,message:xt,tag:St,table:Tt,card:ht,tabs:Pt,timeline:bt,timePicker:kt,upload:vt,notification:Mt,tree:Lt,colorPicker:Rt,datePicker:wt,rangePicker:Et,flex:It,wave:zt,dropdown:Dt,warning:At,tour:Ht,variant:Nt,inputNumber:Ft,treeSelect:$t}=e,Ge=f.useCallback((C,b)=>{let{prefixCls:N}=e;if(b)return b;let F=N||y.getPrefixCls("");return C?`${F}-${C}`:F},[y.getPrefixCls,e.prefixCls]),K=U||y.iconPrefixCls||Z,q=r||y.csp;fe(K,q);let te=$e(D,y.theme,{prefixCls:Ge("")});process.env.NODE_ENV!=="production"&&(Be=Be||!!te);let ue={csp:q,autoInsertSpaceInButton:n,alert:t,anchor:a,locale:s||_,direction:l,space:p,splitter:g,virtual:m,popupMatchSelectWidth:x??d,popupOverflow:X,getPrefixCls:Ge,iconPrefixCls:K,theme:te,segmented:$o,statistic:Oo,spin:Bo,calendar:Wo,carousel:Vo,cascader:Go,collapse:jo,typography:Xo,checkbox:_o,descriptions:Uo,divider:Ko,drawer:qo,skeleton:Qo,steps:Yo,image:Jo,input:ct,textArea:pt,layout:Zo,list:et,mentions:ot,modal:tt,progress:rt,result:nt,slider:it,breadcrumb:at,menu:lt,pagination:st,empty:mt,badge:gt,radio:ft,rate:dt,switch:Ct,transfer:ut,avatar:yt,message:xt,tag:St,table:Tt,card:ht,tabs:Pt,timeline:bt,timePicker:kt,upload:vt,notification:Mt,tree:Lt,colorPicker:Rt,datePicker:wt,rangePicker:Et,flex:It,wave:zt,dropdown:Dt,warning:At,tour:Ht,variant:Nt,inputNumber:Ft,treeSelect:$t};process.env.NODE_ENV!=="production"&&E("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");let A={...y};Object.keys(ue).forEach(C=>{ue[C]!==void 0&&(A[C]=ue[C]);}),$r.forEach(C=>{let b=e[C];b&&(A[C]=b);}),typeof n<"u"&&(A.button={autoInsertSpace:n,...A.button});let H=zr(()=>A,A,(C,b)=>{let N=Object.keys(C),F=Object.keys(b);return N.length!==F.length||N.some(re=>C[re]!==b[re])}),Ot=f.useMemo(()=>({prefixCls:K,csp:q}),[K,q]),u=f.createElement(f.Fragment,null,f.createElement(Ro,{dropdownMatchSelectWidth:d}),o),je=f.useMemo(()=>merge(R.Form?.defaultValidateMessages||{},H.locale?.Form?.defaultValidateMessages||{},H.form?.validateMessages||{},i?.validateMessages||{}),[H,i?.validateMessages]);Object.keys(je).length>0&&(u=f.createElement(Ke.Provider,{value:je},u)),s&&(u=f.createElement(Ze,{locale:s,_ANT_MARK__:he},u)),(u=f.createElement(Hr.Provider,{value:Ot},u)),c&&(u=f.createElement(go,{size:c},u)),u=f.createElement(Oe,null,u);let Bt=f.useMemo(()=>{let{algorithm:C,token:b,components:N,cssVar:F,...re}=te||{},Xe=C&&(!Array.isArray(C)||C.length>0)?createTheme(C):se,ye={};Object.entries(N||{}).forEach(([Wt,Vt])=>{let M={...Vt};"algorithm"in M&&(M.algorithm===true?M.theme=Xe:(Array.isArray(M.algorithm)||typeof M.algorithm=="function")&&(M.theme=createTheme(M.algorithm)),delete M.algorithm),ye[Wt]=M;});let _e={...w,...b};return {...re,theme:Xe,token:_e,components:ye,override:{override:_e,...ye},cssVar:F}},[te]);return D&&(u=f.createElement(J.Provider,{value:Bt},u)),H.warning&&(u=f.createElement(Se.Provider,{value:H.warning},u)),Ve!==void 0&&(u=f.createElement(po,{disabled:Ve},u)),f.createElement(k.Provider,{value:H},u)},j=e=>{let o=f.useContext(k),r=f.useContext(O);return f.createElement(Xr,{parentContext:o,legacyLocale:r,...e})};j.ConfigContext=k;j.SizeContext=ee;j.config=jr;j.useConfig=Co;Object.defineProperty(j,"SizeContext",{get:()=>($(false,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),ee)});process.env.NODE_ENV!=="production"&&(j.displayName="ConfigProvider");var Io=()=>{let[,e]=P(),[o]=z("Empty"),n=new TinyColor(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return f.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},f.createElement("title",null,o?.description||"Empty"),f.createElement("g",{fill:"none",fillRule:"evenodd"},f.createElement("g",{transform:"translate(24 31.67)"},f.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),f.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),f.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),f.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),f.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),f.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),f.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},f.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),f.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};process.env.NODE_ENV!=="production"&&(Io.displayName="EmptyImage");var zo=Io;var Do=()=>{let[,e]=P(),[o]=z("Empty"),{colorFill:r,colorFillTertiary:n,colorFillQuaternary:t,colorBgContainer:a}=e,{borderColor:i,shadowColor:s,contentColor:c}=useMemo(()=>({borderColor:new TinyColor(r).onBackground(a).toHexShortString(),shadowColor:new TinyColor(n).onBackground(a).toHexShortString(),contentColor:new TinyColor(t).onBackground(a).toHexShortString()}),[r,n,t,a]);return f.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},f.createElement("title",null,o?.description||"Empty"),f.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},f.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),f.createElement("g",{fillRule:"nonzero",stroke:i},f.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),f.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:c}))))};process.env.NODE_ENV!=="production"&&(Do.displayName="SimpleImage");var Ao=Do;var Kr=e=>{let{componentCls:o,margin:r,marginXS:n,marginXL:t,fontSize:a,lineHeight:i}=e;return {[o]:{marginInline:n,fontSize:a,lineHeight:i,textAlign:"center",[`${o}-image`]:{height:e.emptyImgHeight,marginBottom:n,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${o}-description`]:{color:e.colorTextDescription},[`${o}-footer`]:{marginTop:r},"&-normal":{marginBlock:t,color:e.colorTextDescription,[`${o}-description`]:{color:e.colorTextDescription},[`${o}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDescription,[`${o}-image`]:{height:e.emptyImgHeightSM}}}}},Ho=Fe("Empty",e=>{let{componentCls:o,controlHeightLG:r,calc:n}=e,t=mergeToken(e,{emptyImgCls:`${o}-img`,emptyImgHeight:n(r).mul(2.5).equal(),emptyImgHeightMD:r,emptyImgHeightSM:n(r).mul(.875).equal()});return [Kr(t)]});var No=f.createElement(zo,null),Fo=f.createElement(Ao,null),Ce=({className:e,rootClassName:o,prefixCls:r,image:n=No,description:t,children:a,imageStyle:i,style:s,...c})=>{let{getPrefixCls:l,direction:p,empty:g}=f.useContext(k),m=l("empty",r),[d,x,X]=Ho(m),[_]=z("Empty"),y=typeof t<"u"?t:_?.description,U=typeof y=="string"?y:"empty",D=null;return typeof n=="string"?D=f.createElement("img",{alt:U,src:n}):D=n,d(f.createElement("div",{className:qr(x,X,m,g?.className,{[`${m}-normal`]:n===Fo,[`${m}-rtl`]:p==="rtl"},e,o),style:{...g?.style,...s},...c},f.createElement("div",{className:`${m}-image`,style:i},D),y&&f.createElement("div",{className:`${m}-description`},y),a&&f.createElement("div",{className:`${m}-footer`},a)))};Ce.PRESENTED_IMAGE_DEFAULT=No;Ce.PRESENTED_IMAGE_SIMPLE=Fo;process.env.NODE_ENV!=="production"&&(Ce.displayName="Empty");var sl=Ce;
|
|
41
|
+
export{sl as default};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import*as x from'react';import x__default,{useContext,createContext,useMemo}from'react';import {TinyColor}from'@ctrl/tinycolor';import {createTheme,useCacheToken}from'@ant-design/cssinjs';import {genStyleUtils}from'@ant-design/cssinjs-utils';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import _e,{resetWarned}from'rc-util/lib/warning';import eo from'rc-pagination/lib/locale/en_US';import Je from'rc-picker/lib/locale/en_US';function ee(e){return (e+8)/e}function F(e){let t=new Array(10).fill(null).map((r,n)=>{let o=n-1,i=e*Math.E**(o/5),a=n>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:ee(r)}))}var oe={version:"0.0.2"};var te=oe.version;var E={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"},we={...E,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
2
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
3
|
+
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:false,motion:true},S=we;function $(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){let{colorSuccess:n,colorWarning:o,colorError:i,colorInfo:a,colorPrimary:s,colorBgBase:m,colorTextBase:c}=e,l=t(s),p=t(n),g=t(o),d=t(i),u=t(a),he=r(m,c),ve=e.colorLink||e.colorInfo,I=t(ve),Me=new TinyColor(d[1]).mix(new TinyColor(d[3]),50).toHexString();return {...he,colorPrimaryBg:l[1],colorPrimaryBgHover:l[2],colorPrimaryBorder:l[3],colorPrimaryBorderHover:l[4],colorPrimaryHover:l[5],colorPrimary:l[6],colorPrimaryActive:l[7],colorPrimaryTextHover:l[8],colorPrimaryText:l[9],colorPrimaryTextActive:l[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:d[1],colorErrorBgHover:d[2],colorErrorBgFilledHover:Me,colorErrorBgActive:d[3],colorErrorBorder:d[3],colorErrorBorderHover:d[4],colorErrorHover:d[5],colorError:d[6],colorErrorActive:d[7],colorErrorTextHover:d[8],colorErrorText:d[9],colorErrorTextActive:d[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:u[1],colorInfoBgHover:u[2],colorInfoBorder:u[3],colorInfoBorderHover:u[4],colorInfoHover:u[4],colorInfo:u[6],colorInfoActive:u[7],colorInfoTextHover:u[8],colorInfoText:u[9],colorInfoTextActive:u[10],colorLinkHover:I[4],colorLink:I[6],colorLinkActive:I[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var He=e=>{let t=e,r=e,n=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}},re=He;function O(e){let{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return {motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:o+1,...re(n)}}var ze=e=>{let{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},ne=ze;var Ae=e=>{let t=F(e),r=t.map(l=>l.size),n=t.map(l=>l.lineHeight),o=r[1],i=r[0],a=r[2],s=n[1],m=n[0],c=n[2];return {fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:c,lineHeightSM:m,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(m*i),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},ie=Ae;function N(e){let{sizeUnit:t,sizeStep:r}=e;return {sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}var f=(e,t)=>new TinyColor(e).setAlpha(t).toRgbString(),b=(e,t)=>new TinyColor(e).darken(t).toHexString();var le=e=>{let t=generate(e);return {1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},ce=(e,t)=>{let r=e||"#fff",n=t||"#000";return {colorBgBase:r,colorTextBase:n,colorText:f(n,.88),colorTextSecondary:f(n,.65),colorTextTertiary:f(n,.45),colorTextQuaternary:f(n,.25),colorFill:f(n,.15),colorFillSecondary:f(n,.06),colorFillTertiary:f(n,.04),colorFillQuaternary:f(n,.02),colorBgSolid:f(n,1),colorBgSolidHover:f(n,.75),colorBgSolidActive:f(n,.95),colorBgLayout:b(r,4),colorBgContainer:b(r,0),colorBgElevated:b(r,0),colorBgSpotlight:f(n,.85),colorBgBlur:"transparent",colorBorder:b(r,15),colorBorderSecondary:b(r,6)}};function G(e){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let t=Object.keys(E).map(r=>{let n=e[r]===presetPrimaryColors[r]?presetPalettes[r]:generate(e[r]);return new Array(10).fill(1).reduce((o,i,a)=>(o[`${r}-${a+1}`]=n[a],o[`${r}${a+1}`]=n[a],o),{})}).reduce((r,n)=>(r={...r,...n},r),{});return {...e,...t,...$(e,{generateColorPalettes:le,generateNeutralColorPalettes:ce}),...ie(e.fontSize),...N(e),...ne(e),...O(e)}}var se=createTheme(G),pe={token:S,override:{override:S},hashed:true},j=x__default.createContext(pe);function U(e){return e>=0&&e<=255}function Ee(e,t){let{r,g:n,b:o,a:i}=new TinyColor(e).toRgb();if(i<1)return e;let{r:a,g:s,b:m}=new TinyColor(t).toRgb();for(let c=.01;c<=1;c+=.01){let l=Math.round((r-a*(1-c))/c),p=Math.round((n-s*(1-c))/c),g=Math.round((o-m*(1-c))/c);if(U(l)&&U(p)&&U(g))return new TinyColor({r:l,g:p,b:g,a:Math.round(c*100)/100}).toRgbString()}return new TinyColor({r,g:n,b:o,a:1}).toRgbString()}var h=Ee;function L(e){let{override:t,...r}=e,n={...t};Object.keys(S).forEach(g=>{delete n[g];});let o={...r,...n},i=480,a=576,s=768,m=992,c=1200,l=1600;return o.motion===false&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),{...o,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:h(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:h(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:h(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:h(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
|
|
4
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
5
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
6
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
7
|
+
`,boxShadowSecondary:`
|
|
8
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
9
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
10
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
11
|
+
`,boxShadowTertiary:`
|
|
12
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
13
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
14
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
15
|
+
`,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:m-1,screenLG:m,screenLGMin:m,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:l-1,screenXXL:l,screenXXLMin:l,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
16
|
+
0 1px 2px -2px ${new TinyColor("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
17
|
+
0 3px 6px 0 ${new TinyColor("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
18
|
+
0 5px 12px 4px ${new TinyColor("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
19
|
+
`,boxShadowDrawerRight:`
|
|
20
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
21
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
22
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
23
|
+
`,boxShadowDrawerLeft:`
|
|
24
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
25
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
26
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
27
|
+
`,boxShadowDrawerUp:`
|
|
28
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
29
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
30
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
31
|
+
`,boxShadowDrawerDown:`
|
|
32
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
33
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
34
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
35
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",...n}}var _={lineHeight:true,lineHeightSM:true,lineHeightLG:true,lineHeightHeading1:true,lineHeightHeading2:true,lineHeightHeading3:true,lineHeightHeading4:true,lineHeightHeading5:true,opacityLoading:true,fontWeightStrong:true,zIndexPopupBase:true,zIndexBase:true,opacityImage:true},Oe={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},Ne={screenXS:true,screenXSMin:true,screenXSMax:true,screenSM:true,screenSMMin:true,screenSMMax:true,screenMD:true,screenMDMin:true,screenMDMax:true,screenLG:true,screenLGMin:true,screenLGMax:true,screenXL:true,screenXLMin:true,screenXLMax:true,screenXXL:true,screenXXLMin:true},me=(e,t,r)=>{let n=r.getDerivativeToken(e),{override:o,...i}=t,a={...n,override:o};return a=L(a),i&&Object.entries(i).forEach(([s,m])=>{let{theme:c,...l}=m,p=l;c&&(p=me({...a,...l},{override:l},c)),a[s]=p;}),a};function T(){let{token:e,hashed:t,theme:r,override:n,cssVar:o}=x__default.useContext(j),i=`${te}-${t||""}`,a=r||se,[s,m,c]=useCacheToken(a,[S,e],{salt:i,override:n,getComputedToken:me,formatToken:L,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:_,ignore:Oe,preserve:Ne}});return [a,c,t?m:"",s,o]}var ge="ant",Q="anticon";var We=(e,t)=>t||(e?`${ge}-${e}`:ge),w=x.createContext({getPrefixCls:We,iconPrefixCls:Q}),{Consumer:nt}=w;var Xe=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}});var fe=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"}}}),Ce=(e,t,r,n)=>{let o=`[class^="${t}"], [class*=" ${t}"]`,i=r?`.${r}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},s={};return n!==false&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:{...s,...a,[o]:a}}};var q=e=>({[`.${e}`]:{...Xe(),[`.${e} .${e}-icon`]:{display:"block"}}});var{genStyleHooks:je,genComponentStyleHook:Ue,genSubStyleComponent:Ve}=genStyleUtils({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=useContext(w);return {rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,r,n,o]=T();return {theme:e,realToken:t,hashId:r,token:n,cssVar:o}},useCSP:()=>{let{csp:e}=useContext(w);return e??{}},getResetStyles:(e,t)=>[{"&":fe(e)},q(t?.prefix.iconPrefixCls??Q)],getCommonStyle:Ce,getCompUnitless:(()=>_)});function ye(){}var y=null;function qe(){y=null,resetWarned();}var xe=ye;process.env.NODE_ENV!=="production"&&(xe=(e,t,r)=>{_e(e,`[swiftcrab: ${t}] ${r}`),process.env.NODE_ENV==="test"&&qe();});var Ke=x.createContext({});process.env.NODE_ENV!=="production"?e=>{let{strict:t}=x.useContext(Ke),r=(n,o,i)=>{if(!n)if(t===false&&o==="deprecated"){let a=y;y||(y={}),y[e]=y[e]||[],y[e].includes(i||"")||y[e].push(i||""),a||console.warn("[swiftcrab] There exists deprecated usage in your code:",y);}else xe(n,e,i);};return r.deprecated=(n,o,i,a)=>{r(n,"deprecated",`\`${o}\` is deprecated. Please use \`${i}\` instead.${a?` ${a}`:""}`);},r}:()=>{let e=()=>{};return e.deprecated=ye,e};var Ye={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},z=Ye;var Ze={lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],...Je},timePickerLocale:{...z}},A=Ze;var Te=A;var C="${label} is not a valid ${type}",oo={locale:"en",Pagination:eo,DatePicker:A,TimePicker:z,Calendar:Te,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:C,method:C,array:C,object:C,number:C,date:C,boolean:C,integer:C,float:C,regexp:C,email:C,url:C,hex:C},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}},k=oo;var ro=createContext(void 0),D=ro;var no=(e,t)=>{let r=x.useContext(D),n=x.useMemo(()=>{let i=t||k[e],a=r?.[e]??{};return {...typeof i=="function"?i():i,...a||{}}},[e,t,r]),o=x.useMemo(()=>{let i=r?.locale;return r?.exist&&!i?k.locale:i},[r]);return [n,o]},Y=no;process.env.NODE_ENV!=="production"&&("LocaleProvider");var Pe=()=>{let[,e]=T(),[t]=Y("Empty"),{colorFill:r,colorFillTertiary:n,colorFillQuaternary:o,colorBgContainer:i}=e,{borderColor:a,shadowColor:s,contentColor:m}=useMemo(()=>({borderColor:new TinyColor(r).onBackground(i).toHexShortString(),shadowColor:new TinyColor(n).onBackground(i).toHexShortString(),contentColor:new TinyColor(o).onBackground(i).toHexShortString()}),[r,n,o,i]);return x.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},x.createElement("title",null,t?.description||"Empty"),x.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},x.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),x.createElement("g",{fillRule:"nonzero",stroke:a},x.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),x.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:m}))))};process.env.NODE_ENV!=="production"&&(Pe.displayName="SimpleImage");var fr=Pe;
|
|
36
|
+
export{fr as default};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Component only token. Which will handle additional calculation of alias token */
|
|
2
|
+
export interface ComponentToken {
|
|
3
|
+
}
|
|
4
|
+
declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: React.ReactElement) => React.ReactElement, string, string];
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import {createTheme,useCacheToken}from'@ant-design/cssinjs';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import*as Ce from'react';import Ce__default,{useContext}from'react';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';function j(e){return (e+8)/e}function P(e){let t=new Array(10).fill(null).map((r,n)=>{let o=n-1,s=e*Math.E**(o/5),i=n>1?Math.floor(s):Math.ceil(s);return Math.floor(i/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:j(r)}))}var W={version:"0.0.2"};var $=W.version;var M={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},ce={...M,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
2
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
3
|
+
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:false,motion:true},y=ce;function H(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){let{colorSuccess:n,colorWarning:o,colorError:s,colorInfo:i,colorPrimary:c,colorBgBase:m,colorTextBase:l}=e,a=t(c),p=t(n),g=t(o),f=t(s),C=t(i),ie=r(m,l),ae=e.colorLink||e.colorInfo,h=t(ae),le=new TinyColor(f[1]).mix(new TinyColor(f[3]),50).toHexString();return {...ie,colorPrimaryBg:a[1],colorPrimaryBgHover:a[2],colorPrimaryBorder:a[3],colorPrimaryBorderHover:a[4],colorPrimaryHover:a[5],colorPrimary:a[6],colorPrimaryActive:a[7],colorPrimaryTextHover:a[8],colorPrimaryText:a[9],colorPrimaryTextActive:a[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:f[1],colorErrorBgHover:f[2],colorErrorBgFilledHover:le,colorErrorBgActive:f[3],colorErrorBorder:f[3],colorErrorBorderHover:f[4],colorErrorHover:f[5],colorError:f[6],colorErrorActive:f[7],colorErrorTextHover:f[8],colorErrorText:f[9],colorErrorTextActive:f[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:C[1],colorInfoBgHover:C[2],colorInfoBorder:C[3],colorInfoBorderHover:C[4],colorInfoHover:C[4],colorInfo:C[6],colorInfoActive:C[7],colorInfoTextHover:C[8],colorInfoText:C[9],colorInfoTextActive:C[10],colorLinkHover:h[4],colorLink:h[6],colorLinkActive:h[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var pe=e=>{let t=e,r=e,n=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}},N=pe;function z(e){let{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return {motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:o+1,...N(n)}}var ge=e=>{let{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},U=ge;var me=e=>{let t=P(e),r=t.map(a=>a.size),n=t.map(a=>a.lineHeight),o=r[1],s=r[0],i=r[2],c=n[1],m=n[0],l=n[2];return {fontSizeSM:s,fontSize:o,fontSizeLG:i,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:c,lineHeightLG:l,lineHeightSM:m,fontHeight:Math.round(c*o),fontHeightLG:Math.round(l*i),fontHeightSM:Math.round(m*s),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},V=me;function I(e){let{sizeUnit:t,sizeStep:r}=e;return {sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}var d=(e,t)=>new TinyColor(e).setAlpha(t).toRgbString(),u=(e,t)=>new TinyColor(e).darken(t).toHexString();var q=e=>{let t=generate(e);return {1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},_=(e,t)=>{let r=e||"#fff",n=t||"#000";return {colorBgBase:r,colorTextBase:n,colorText:d(n,.88),colorTextSecondary:d(n,.65),colorTextTertiary:d(n,.45),colorTextQuaternary:d(n,.25),colorFill:d(n,.15),colorFillSecondary:d(n,.06),colorFillTertiary:d(n,.04),colorFillQuaternary:d(n,.02),colorBgSolid:d(n,1),colorBgSolidHover:d(n,.75),colorBgSolidActive:d(n,.95),colorBgLayout:u(r,4),colorBgContainer:u(r,0),colorBgElevated:u(r,0),colorBgSpotlight:d(n,.85),colorBgBlur:"transparent",colorBorder:u(r,15),colorBorderSecondary:u(r,6)}};function D(e){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let t=Object.keys(M).map(r=>{let n=e[r]===presetPrimaryColors[r]?presetPalettes[r]:generate(e[r]);return new Array(10).fill(1).reduce((o,s,i)=>(o[`${r}-${i+1}`]=n[i],o[`${r}${i+1}`]=n[i],o),{})}).reduce((r,n)=>(r={...r,...n},r),{});return {...e,...t,...H(e,{generateColorPalettes:q,generateNeutralColorPalettes:_}),...V(e.fontSize),...I(e),...U(e),...z(e)}}var K=createTheme(D),J={token:y,override:{override:y},hashed:true},L=Ce__default.createContext(J);function B(e){return e>=0&&e<=255}function ue(e,t){let{r,g:n,b:o,a:s}=new TinyColor(e).toRgb();if(s<1)return e;let{r:i,g:c,b:m}=new TinyColor(t).toRgb();for(let l=.01;l<=1;l+=.01){let a=Math.round((r-i*(1-l))/l),p=Math.round((n-c*(1-l))/l),g=Math.round((o-m*(1-l))/l);if(B(a)&&B(p)&&B(g))return new TinyColor({r:a,g:p,b:g,a:Math.round(l*100)/100}).toRgbString()}return new TinyColor({r,g:n,b:o,a:1}).toRgbString()}var S=ue;function k(e){let{override:t,...r}=e,n={...t};Object.keys(y).forEach(g=>{delete n[g];});let o={...r,...n},s=480,i=576,c=768,m=992,l=1200,a=1600;return o.motion===false&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),{...o,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:S(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:S(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:S(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:S(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
|
|
4
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
5
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
6
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
7
|
+
`,boxShadowSecondary:`
|
|
8
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
9
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
10
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
11
|
+
`,boxShadowTertiary:`
|
|
12
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
13
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
14
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
15
|
+
`,screenXS:s,screenXSMin:s,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:c-1,screenMD:c,screenMDMin:c,screenMDMax:m-1,screenLG:m,screenLGMin:m,screenLGMax:l-1,screenXL:l,screenXLMin:l,screenXLMax:a-1,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
16
|
+
0 1px 2px -2px ${new TinyColor("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
17
|
+
0 3px 6px 0 ${new TinyColor("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
18
|
+
0 5px 12px 4px ${new TinyColor("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
19
|
+
`,boxShadowDrawerRight:`
|
|
20
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
21
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
22
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
23
|
+
`,boxShadowDrawerLeft:`
|
|
24
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
25
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
26
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
27
|
+
`,boxShadowDrawerUp:`
|
|
28
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
29
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
30
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
31
|
+
`,boxShadowDrawerDown:`
|
|
32
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
33
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
34
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
35
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",...n}}var R={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},Te={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},ke={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},Y=(e,t,r)=>{let n=r.getDerivativeToken(e),{override:o,...s}=t,i={...n,override:o};return i=k(i),s&&Object.entries(s).forEach(([c,m])=>{let{theme:l,...a}=m,p=a;l&&(p=Y({...i,...a},{override:a},l)),i[c]=p;}),i};function x(){let{token:e,hashed:t,theme:r,override:n,cssVar:o}=Ce__default.useContext(L),s=`${$}-${t||""}`,i=r||K,[c,m,l]=useCacheToken(i,[y,e],{salt:s,override:n,getComputedToken:Y,formatToken:k,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:R,ignore:Te,preserve:ke}});return [i,l,t?m:"",c,o]}var Z="ant",X="anticon";var be=(e,t)=>t||(e?`${Z}-${e}`:Z),b=Ce.createContext({getPrefixCls:be,iconPrefixCls:X}),{Consumer:Po}=b;var he=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}});var oe=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"}}}),te=(e,t,r,n)=>{let o=`[class^="${t}"], [class*=" ${t}"]`,s=r?`.${r}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},c={};return n!==false&&(c={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[s]:{...c,...i,[o]:i}}};var G=e=>({[`.${e}`]:{...he(),[`.${e} .${e}-icon`]:{display:"block"}}});var{genStyleHooks:O,genComponentStyleHook:Me,genSubStyleComponent:ve}=genStyleUtils({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=useContext(b);return {rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,r,n,o]=x();return {theme:e,realToken:t,hashId:r,token:n,cssVar:o}},useCSP:()=>{let{csp:e}=useContext(b);return e??{}},getResetStyles:(e,t)=>[{"&":oe(e)},G(t?.prefix.iconPrefixCls??X)],getCommonStyle:te,getCompUnitless:(()=>R)});var He=e=>{let{componentCls:t,margin:r,marginXS:n,marginXL:o,fontSize:s,lineHeight:i}=e;return {[t]:{marginInline:n,fontSize:s,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:n,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:r},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},it=O("Empty",e=>{let{componentCls:t,controlHeightLG:r,calc:n}=e,o=mergeToken(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n(r).mul(2.5).equal(),emptyImgHeightMD:r,emptyImgHeightSM:n(r).mul(.875).equal()});return [He(o)]});export{it as default};
|
package/es/flex/index.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import*as m from'react';import m__default,{createContext,useContext}from'react';import Or from'classnames';import Yr from'rc-util/lib/omit';import {createTheme,useCacheToken,useStyleRegister}from'@ant-design/cssinjs';import Rr from'@ant-design/icons/lib/components/Context';import Mr from'rc-util/lib/hooks/useMemo';import {merge}from'rc-util/lib/utils/set';import Nt,{resetWarned}from'rc-util/lib/warning';import'rc-pagination/lib/locale/en_US';import Vt from'rc-picker/lib/locale/en_US';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';import ir from'rc-util/lib/Dom/canUseDom';import {updateCSS}from'rc-util/lib/Dom/dynamicCSS';import Lr from'rc-util/lib/isEqual';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import {Provider}from'rc-motion';function de(e){return ["small","middle","large"].includes(e)}function Ue(){}var v=null;function Ot(){v=null,resetWarned();}var Ce=Ue;process.env.NODE_ENV!=="production"&&(Ce=(e,o,t)=>{Nt(e,`[swiftcrab: ${o}] ${t}`),process.env.NODE_ENV==="test"&&Ot();});var ue=m.createContext({}),L=process.env.NODE_ENV!=="production"?e=>{let{strict:o}=m.useContext(ue),t=(n,r,s)=>{if(!n)if(o===false&&r==="deprecated"){let i=v;v||(v={}),v[e]=v[e]||[],v[e].includes(s||"")||v[e].push(s||""),i||console.warn("[swiftcrab] There exists deprecated usage in your code:",v);}else Ce(n,e,s);};return t.deprecated=(n,r,s,i)=>{t(n,"deprecated",`\`${r}\` is deprecated. Please use \`${s}\` instead.${i?` ${i}`:""}`);},t}:()=>{let e=()=>{};return e.deprecated=Ue,e},E=Ce;var _e=createContext(void 0);({lang:{...Vt}});var x="${label} is not a valid ${type}",Ut={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:x,method:x,array:x,object:x,number:x,date:x,boolean:x,integer:x,float:x,regexp:x,email:x,url:x,hex:x},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}"}}}},R=Ut;({...R.Modal});var ne=[],qe=()=>ne.reduce((e,o)=>({...e,...o}),R.Modal);function Qe(e){if(e){let o={...e};return ne.push(o),qe(),()=>{ne=ne.filter(t=>t!==o),qe();}}({...R.Modal});}var Kt=createContext(void 0),X=Kt;var xe="internalMark",Ye=e=>{let{locale:o={},children:t,_ANT_MARK__:n}=e;process.env.NODE_ENV!=="production"&&L("LocaleProvider")(n===xe,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),m.useEffect(()=>Qe(o?.Modal),[o]);let r=m.useMemo(()=>({...o,exist:true}),[o]);return m.createElement(X.Provider,{value:r},t)};process.env.NODE_ENV!=="production"&&(Ye.displayName="LocaleProvider");var Ze=Ye;var Se={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"},qt={...Se,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},M=qt;function Pe(e,{generateColorPalettes:o,generateNeutralColorPalettes:t}){let{colorSuccess:n,colorWarning:r,colorError:s,colorInfo:i,colorPrimary:l,colorBgBase:c,colorTextBase:a}=e,p=o(l),f=o(n),g=o(r),d=o(s),y=o(i),P=t(c,a),O=e.colorLink||e.colorInfo,T=o(O),G=new TinyColor(d[1]).mix(new TinyColor(d[3]),50).toHexString();return {...P,colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:d[1],colorErrorBgHover:d[2],colorErrorBgFilledHover:G,colorErrorBgActive:d[3],colorErrorBorder:d[3],colorErrorBorderHover:d[4],colorErrorHover:d[5],colorError:d[6],colorErrorActive:d[7],colorErrorTextHover:d[8],colorErrorText:d[9],colorErrorTextActive:d[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:y[1],colorInfoBgHover:y[2],colorInfoBorder:y[3],colorInfoBorderHover:y[4],colorInfoHover:y[4],colorInfo:y[6],colorInfoActive:y[7],colorInfoTextHover:y[8],colorInfoText:y[9],colorInfoTextActive:y[10],colorLinkHover:T[4],colorLink:T[6],colorLinkActive:T[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var Qt=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}},eo=Qt;function be(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,...eo(n)}}var Jt=e=>{let{controlHeight:o}=e;return {controlHeightSM:o*.75,controlHeightXS:o*.5,controlHeightLG:o*1.25}},oo=Jt;function to(e){return (e+8)/e}function ke(e){let o=new Array(10).fill(null).map((t,n)=>{let r=n-1,s=e*Math.E**(r/5),i=n>1?Math.floor(s):Math.ceil(s);return Math.floor(i/2)*2});return o[1]=e,o.map(t=>({size:t,lineHeight:to(t)}))}var Yt=e=>{let o=ke(e),t=o.map(p=>p.size),n=o.map(p=>p.lineHeight),r=t[1],s=t[0],i=t[2],l=n[1],c=n[0],a=n[2];return {fontSizeSM:s,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:a,lineHeightSM:c,fontHeight:Math.round(l*r),fontHeightLG:Math.round(a*i),fontHeightSM:Math.round(c*s),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},ro=Yt;function he(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 S=(e,o)=>new TinyColor(e).setAlpha(o).toRgbString(),H=(e,o)=>new TinyColor(e).darken(o).toHexString();var io=e=>{let o=generate(e);return {1:o[0],2:o[1],3:o[2],4:o[3],5:o[4],6:o[5],7:o[6],8:o[4],9:o[5],10:o[6]}},ao=(e,o)=>{let t=e||"#fff",n=o||"#000";return {colorBgBase:t,colorTextBase:n,colorText:S(n,.88),colorTextSecondary:S(n,.65),colorTextTertiary:S(n,.45),colorTextQuaternary:S(n,.25),colorFill:S(n,.15),colorFillSecondary:S(n,.06),colorFillTertiary:S(n,.04),colorFillQuaternary:S(n,.02),colorBgSolid:S(n,1),colorBgSolidHover:S(n,.75),colorBgSolidActive:S(n,.95),colorBgLayout:H(t,4),colorBgContainer:H(t,0),colorBgElevated:H(t,0),colorBgSpotlight:S(n,.85),colorBgBlur:"transparent",colorBorder:H(t,15),colorBorderSecondary:H(t,6)}};function Le(e){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let o=Object.keys(Se).map(t=>{let n=e[t]===presetPrimaryColors[t]?presetPalettes[t]:generate(e[t]);return new Array(10).fill(1).reduce((r,s,i)=>(r[`${t}-${i+1}`]=n[i],r[`${t}${i+1}`]=n[i],r),{})}).reduce((t,n)=>(t={...t,...n},t),{});return {...e,...o,...Pe(e,{generateColorPalettes:io,generateNeutralColorPalettes:ao}),...ro(e.fontSize),...he(e),...oo(e),...be(e)}}var ie=createTheme(Le),U={token:M,override:{override:M},hashed:true},_=m__default.createContext(U);var ae="ant",K="anticon";var rr=(e,o)=>o||(e?`${ae}-${e}`:ae),k=m.createContext({getPrefixCls:rr,iconPrefixCls:K}),{Consumer:nr}=k;var lr=`-ant-${Date.now()}-${Math.random()}`;function sr(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),a=generate(c.toRgbString());t[`${l}-color`]=n(c),t[`${l}-color-disabled`]=a[1],t[`${l}-color-hover`]=a[4],t[`${l}-color-active`]=a[6],t[`${l}-color-outline`]=c.clone().setAlpha(.2).toRgbString(),t[`${l}-color-deprecated-bg`]=a[0],t[`${l}-color-deprecated-border`]=a[2];};if(o.primaryColor){r(o.primaryColor,"primary");let i=new TinyColor(o.primaryColor),l=generate(i.toRgbString());l.forEach((a,p)=>{t[`primary-${p+1}`]=a;}),t["primary-color-deprecated-l-35"]=n(i,a=>a.lighten(35)),t["primary-color-deprecated-l-20"]=n(i,a=>a.lighten(20)),t["primary-color-deprecated-t-20"]=n(i,a=>a.tint(20)),t["primary-color-deprecated-t-50"]=n(i,a=>a.tint(50)),t["primary-color-deprecated-f-12"]=n(i,a=>a.setAlpha(a.getAlpha()*.12));let c=new TinyColor(l[0]);t["primary-color-active-deprecated-f-30"]=n(c,a=>a.setAlpha(a.getAlpha()*.3)),t["primary-color-active-deprecated-d-02"]=n(c,a=>a.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 co(e,o){let t=sr(e,o);ir()?updateCSS(t,`${lr}-dynamic-theme`):E(false,"ConfigProvider","SSR do not support dynamic theme with css variables.");}var Re=m.createContext(false),po=({children:e,disabled:o})=>{let t=m.useContext(Re);return m.createElement(Re.Provider,{value:o??t},e)},mo=Re;var ze=m.createContext(void 0),fo=({children:e,size:o})=>{let t=m.useContext(ze);return m.createElement(ze.Provider,{value:o||t},e)},q=ze;function cr(){let e=useContext(mo),o=useContext(q);return {componentDisabled:e,componentSize:o}}var Co=cr;var yo={version:"0.0.2"};var xo=yo.version;function Ae(e){return e>=0&&e<=255}function mr(e,o){let{r:t,g:n,b:r,a:s}=new TinyColor(e).toRgb();if(s<1)return e;let{r:i,g:l,b:c}=new TinyColor(o).toRgb();for(let a=.01;a<=1;a+=.01){let p=Math.round((t-i*(1-a))/a),f=Math.round((n-l*(1-a))/a),g=Math.round((r-c*(1-a))/a);if(Ae(p)&&Ae(f)&&Ae(g))return new TinyColor({r:p,g:f,b:g,a:Math.round(a*100)/100}).toRgbString()}return new TinyColor({r:t,g:n,b:r,a:1}).toRgbString()}var Q=mr;function se(e){let{override:o,...t}=e,n={...o};Object.keys(M).forEach(g=>{delete n[g];});let r={...t,...n},s=480,i=576,l=768,c=992,a=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:Q(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:Q(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:Q(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:Q(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:s,screenXSMin:s,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:l-1,screenMD:l,screenMDMin:l,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 De={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},dr={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},Cr={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},So=(e,o,t)=>{let n=t.getDerivativeToken(e),{override:r,...s}=o,i={...n,override:r};return i=se(i),s&&Object.entries(s).forEach(([l,c])=>{let{theme:a,...p}=c,f=p;a&&(f=So({...i,...p},{override:p},a)),i[l]=f;}),i};function w(){let{token:e,hashed:o,theme:t,override:n,cssVar:r}=m__default.useContext(_),s=`${xo}-${o||""}`,i=t||ie,[l,c,a]=useCacheToken(i,[M,e],{salt:s,override:n,getComputedToken:So,formatToken:se,cssVar:r&&{prefix:r.prefix,key:r.key,unitless:De,ignore:dr,preserve:Cr}});return [i,a,o?c:"",l,r]}var ur=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}});var To=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"}}}),Po=(e,o,t,n)=>{let r=`[class^="${o}"], [class*=" ${o}"]`,s=t?`.${t}`:r,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},l={};return n!==false&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[s]:{...l,...i,[r]:i}}};var ce=e=>({[`.${e}`]:{...ur(),[`.${e} .${e}-icon`]:{display:"block"}}});var{genStyleHooks:Ee,genComponentStyleHook:xr,genSubStyleComponent:Sr}=genStyleUtils({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:o}=useContext(k);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(k);return e??{}},getResetStyles:(e,o)=>[{"&":To(e)},ce(o?.prefix.iconPrefixCls??K)],getCommonStyle:Po,getCompUnitless:(()=>De)});var Pr=(e,o)=>{let[t,n]=w();return useStyleRegister({theme:t,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>o?.nonce,layer:{name:"antd"}},()=>[ce(e)])},pe=Pr;var kr={...m},{useId:ho}=kr,hr=()=>"",vr=typeof ho>"u"?hr:ho,vo=vr;function Fe(e,o,t){let n=L("ConfigProvider"),r=e||{},s=r.inherit===false||!o?{...U,hashed:o?.hashed??U.hashed,cssVar:o?.cssVar}:o,i=vo();if(process.env.NODE_ENV!=="production"){let l=r.cssVar||s.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 Mr(()=>{if(!e)return o;let l={...s.components};Object.keys(e.components||{}).forEach(p=>{l[p]={...l[p],...e.components[p]};});let c=`css-var-${i.replace(/:/g,"")}`,a=(r.cssVar??s.cssVar)&&{prefix:t?.prefixCls,...typeof s.cssVar=="object"?s.cssVar:{},...typeof r.cssVar=="object"?r.cssVar:{},key:typeof r.cssVar=="object"&&r.cssVar?.key||c};return {...s,...r,token:{...s.token,...r.token},components:l,cssVar:a}},[r,s],(l,c)=>l.some((a,p)=>{let f=c[p];return !Lr(a,f,true)}))}function He(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 Lo=m.memo(({dropdownMatchSelectWidth:e})=>(L("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(Lo.displayName="PropWarning");var wo=process.env.NODE_ENV!=="production"?Lo:()=>null;var $e=false;process.env.NODE_ENV!=="production"?e=>{E(!$e,e,"Static function can not consume context like dynamic theme. Please use 'App' component instead.");}:null;var Ir=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],zo;function Hr(){return zo||ae}function $r(e){return Object.keys(e).some(o=>o.endsWith("Color"))}var Nr=e=>{let{prefixCls:o,iconPrefixCls:t,theme:n,holderRender:r}=e;o!==void 0&&(zo=o),n&&($r(n)?(E(false,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),co(Hr(),n)):n);};var Wr=e=>{let{children:o,csp:t,autoInsertSpaceInButton:n,alert:r,anchor:s,form:i,locale:l,componentSize:c,direction:a,space:p,splitter:f,virtual:g,dropdownMatchSelectWidth:d,popupMatchSelectWidth:y,popupOverflow:P,legacyLocale:O,parentContext:T,iconPrefixCls:G,theme:J,componentDisabled:Y,segmented:B,statistic:Eo,spin:Fo,calendar:Ho,carousel:$o,cascader:No,collapse:Wo,typography:Oo,checkbox:Go,descriptions:Bo,divider:Vo,drawer:jo,skeleton:Xo,steps:Uo,image:_o,layout:Ko,list:qo,mentions:Qo,modal:Jo,progress:Yo,result:Zo,slider:et,breadcrumb:ot,menu:tt,pagination:rt,input:nt,textArea:it,empty:at,badge:lt,radio:st,rate:ct,switch:pt,transfer:mt,avatar:ft,message:gt,tag:dt,table:Ct,card:ut,tabs:yt,timeline:xt,timePicker:St,upload:Tt,notification:Pt,tree:bt,colorPicker:kt,datePicker:ht,rangePicker:vt,flex:Mt,wave:Lt,dropdown:wt,warning:Rt,tour:zt,variant:At,inputNumber:It,treeSelect:Dt}=e,Be=m.useCallback((C,b)=>{let{prefixCls:I}=e;if(b)return b;let D=I||T.getPrefixCls("");return C?`${D}-${C}`:D},[T.getPrefixCls,e.prefixCls]),V=G||T.iconPrefixCls||K,j=t||T.csp;pe(V,j);let Z=Fe(J,T.theme,{prefixCls:Be("")});process.env.NODE_ENV!=="production"&&($e=$e||!!Z);let fe={csp:j,autoInsertSpaceInButton:n,alert:r,anchor:s,locale:l||O,direction:a,space:p,splitter:f,virtual:g,popupMatchSelectWidth:y??d,popupOverflow:P,getPrefixCls:Be,iconPrefixCls:V,theme:Z,segmented:B,statistic:Eo,spin:Fo,calendar:Ho,carousel:$o,cascader:No,collapse:Wo,typography:Oo,checkbox:Go,descriptions:Bo,divider:Vo,drawer:jo,skeleton:Xo,steps:Uo,image:_o,input:nt,textArea:it,layout:Ko,list:qo,mentions:Qo,modal:Jo,progress:Yo,result:Zo,slider:et,breadcrumb:ot,menu:tt,pagination:rt,empty:at,badge:lt,radio:st,rate:ct,switch:pt,transfer:mt,avatar:ft,message:gt,tag:dt,table:Ct,card:ut,tabs:yt,timeline:xt,timePicker:St,upload:Tt,notification:Pt,tree:bt,colorPicker:kt,datePicker:ht,rangePicker:vt,flex:Mt,wave:Lt,dropdown:wt,warning:Rt,tour:zt,variant:At,inputNumber:It,treeSelect:Dt};process.env.NODE_ENV!=="production"&&L("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");let z={...T};Object.keys(fe).forEach(C=>{fe[C]!==void 0&&(z[C]=fe[C]);}),Ir.forEach(C=>{let b=e[C];b&&(z[C]=b);}),typeof n<"u"&&(z.button={autoInsertSpace:n,...z.button});let A=Mr(()=>z,z,(C,b)=>{let I=Object.keys(C),D=Object.keys(b);return I.length!==D.length||I.some(ee=>C[ee]!==b[ee])}),Et=m.useMemo(()=>({prefixCls:V,csp:j}),[V,j]),u=m.createElement(m.Fragment,null,m.createElement(wo,{dropdownMatchSelectWidth:d}),o),Ve=m.useMemo(()=>merge(R.Form?.defaultValidateMessages||{},A.locale?.Form?.defaultValidateMessages||{},A.form?.validateMessages||{},i?.validateMessages||{}),[A,i?.validateMessages]);Object.keys(Ve).length>0&&(u=m.createElement(_e.Provider,{value:Ve},u)),l&&(u=m.createElement(Ze,{locale:l,_ANT_MARK__:xe},u)),(u=m.createElement(Rr.Provider,{value:Et},u)),c&&(u=m.createElement(fo,{size:c},u)),u=m.createElement(He,null,u);let Ft=m.useMemo(()=>{let{algorithm:C,token:b,components:I,cssVar:D,...ee}=Z||{},je=C&&(!Array.isArray(C)||C.length>0)?createTheme(C):ie,ge={};Object.entries(I||{}).forEach(([Ht,$t])=>{let h={...$t};"algorithm"in h&&(h.algorithm===true?h.theme=je:(Array.isArray(h.algorithm)||typeof h.algorithm=="function")&&(h.theme=createTheme(h.algorithm)),delete h.algorithm),ge[Ht]=h;});let Xe={...M,...b};return {...ee,theme:je,token:Xe,components:ge,override:{override:Xe,...ge},cssVar:D}},[Z]);return J&&(u=m.createElement(_.Provider,{value:Ft},u)),A.warning&&(u=m.createElement(ue.Provider,{value:A.warning},u)),Y!==void 0&&(u=m.createElement(po,{disabled:Y},u)),m.createElement(k.Provider,{value:A},u)},W=e=>{let o=m.useContext(k),t=m.useContext(X);return m.createElement(Wr,{parentContext:o,legacyLocale:t,...e})};W.ConfigContext=k;W.SizeContext=q;W.config=Nr;W.useConfig=Co;Object.defineProperty(W,"SizeContext",{get:()=>(E(false,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),q)});process.env.NODE_ENV!=="production"&&(W.displayName="ConfigProvider");var Ne=["wrap","nowrap","wrap-reverse"],We=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],Oe=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],Gr=(e,o)=>{let t=o.wrap===true?"wrap":o.wrap;return {[`${e}-wrap-${t}`]:t&&Ne.includes(t)}},Br=(e,o)=>{let t={};return Oe.forEach(n=>{t[`${e}-align-${n}`]=o.align===n;}),t[`${e}-align-stretch`]=!o.align&&!!o.vertical,t},Vr=(e,o)=>{let t={};return We.forEach(n=>{t[`${e}-justify-${n}`]=o.justify===n;}),t};function jr(e,o){return Or({...Gr(e,o),...Br(e,o),...Vr(e,o)})}var Ao=jr;var Xr=e=>{let{componentCls:o}=e;return {[o]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},Ur=e=>{let{componentCls:o}=e;return {[o]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},_r=e=>{let{componentCls:o}=e,t={};return Ne.forEach(n=>{t[`${o}-wrap-${n}`]={flexWrap:n};}),t},Kr=e=>{let{componentCls:o}=e,t={};return Oe.forEach(n=>{t[`${o}-align-${n}`]={alignItems:n};}),t},qr=e=>{let{componentCls:o}=e,t={};return We.forEach(n=>{t[`${o}-justify-${n}`]={justifyContent:n};}),t},Qr=()=>({}),Io=Ee("Flex",e=>{let{paddingXS:o,padding:t,paddingLG:n}=e,r=mergeToken(e,{flexGapSM:o,flexGap:t,flexGapLG:n});return [Xr(r),Ur(r),_r(r),Kr(r),qr(r)]},Qr,{resetStyle:false});var Do=m__default.forwardRef((e,o)=>{let{prefixCls:t,rootClassName:n,className:r,style:s,flex:i,gap:l,children:c,vertical:a=false,component:p="div",...f}=e,{flex:g,direction:d,getPrefixCls:y}=m__default.useContext(k),P=y("flex",t),[O,T,G]=Io(P),J=a??g?.vertical,Y=Or(r,n,g?.className,P,T,G,Ao(P,e),{[`${P}-rtl`]:d==="rtl",[`${P}-gap-${l}`]:de(l),[`${P}-vertical`]:J}),B={...g?.style,...s};return i&&(B.flex=i),l&&!de(l)&&(B.gap=l),O(m__default.createElement(p,{ref:o,className:Y,style:B,...Yr(f,["justify","wrap","align"])},c))});process.env.NODE_ENV!=="production"&&(Do.displayName="Flex");var sl=Do;export{sl as default};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { AnyObject, CustomComponent } from '../_util/type';
|
|
3
|
+
import type { SizeType } from '../config-provider/SizeContext';
|
|
4
|
+
export interface FlexProps<P = AnyObject> extends React.HTMLAttributes<HTMLElement> {
|
|
5
|
+
prefixCls?: string;
|
|
6
|
+
rootClassName?: string;
|
|
7
|
+
vertical?: boolean;
|
|
8
|
+
wrap?: boolean | React.CSSProperties['flexWrap'];
|
|
9
|
+
justify?: React.CSSProperties['justifyContent'];
|
|
10
|
+
align?: React.CSSProperties['alignItems'];
|
|
11
|
+
flex?: React.CSSProperties['flex'];
|
|
12
|
+
gap?: React.CSSProperties['gap'] | SizeType;
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
component?: CustomComponent<P>;
|
|
15
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { FullToken, GetDefaultToken } from '../../theme/internal';
|
|
2
|
+
/** Component only token. Which will handle additional calculation of alias token */
|
|
3
|
+
export interface ComponentToken {
|
|
4
|
+
}
|
|
5
|
+
export interface FlexToken extends FullToken<'Flex'> {
|
|
6
|
+
/**
|
|
7
|
+
* @nameZH 小间隙
|
|
8
|
+
* @nameEN Small Gap
|
|
9
|
+
* @desc 控制元素的小间隙。
|
|
10
|
+
* @descEN Control the small gap of the element.
|
|
11
|
+
*/
|
|
12
|
+
flexGapSM: number;
|
|
13
|
+
/**
|
|
14
|
+
* @nameZH 间隙
|
|
15
|
+
* @nameEN Gap
|
|
16
|
+
* @desc 控制元素的间隙。
|
|
17
|
+
* @descEN Control the gap of the element.
|
|
18
|
+
*/
|
|
19
|
+
flexGap: number;
|
|
20
|
+
/**
|
|
21
|
+
* @nameZH 大间隙
|
|
22
|
+
* @nameEN Large Gap
|
|
23
|
+
* @desc 控制元素的大间隙。
|
|
24
|
+
* @descEN Control the large gap of the element.
|
|
25
|
+
*/
|
|
26
|
+
flexGapLG: number;
|
|
27
|
+
}
|
|
28
|
+
export declare const prepareComponentToken: GetDefaultToken<'Flex'>;
|
|
29
|
+
declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: React.ReactElement) => React.ReactElement, string, string];
|
|
30
|
+
export default _default;
|