antdv-next 0.0.111 → 1.0.0-alpha.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/LICENSE +21 -0
- package/dist/_util/ActionButton.js +129 -0
- package/dist/_util/ContextIsolator.js +36 -0
- package/dist/_util/capitalize.js +8 -0
- package/dist/_util/colors.d.ts +10 -0
- package/dist/_util/colors.js +26 -0
- package/dist/_util/convertToTooltipProps.js +11 -0
- package/dist/_util/copy.js +49 -0
- package/dist/_util/easings.js +10 -0
- package/dist/_util/extendsObject.js +14 -0
- package/dist/_util/gapSize.js +15 -0
- package/dist/_util/getAllowClear.js +14 -0
- package/dist/_util/getScroll.js +20 -0
- package/dist/_util/hooks/index.d.ts +4 -0
- package/dist/_util/hooks/index.js +7 -0
- package/dist/_util/hooks/useChildLoadEvents.js +57 -0
- package/dist/_util/hooks/useClosable.d.ts +11 -0
- package/dist/_util/hooks/useClosable.js +147 -0
- package/dist/_util/hooks/useMergeSemantic.d.ts +14 -0
- package/dist/_util/hooks/useMergeSemantic.js +116 -0
- package/dist/_util/hooks/useMergedMask.d.ts +10 -0
- package/dist/_util/hooks/useMergedMask.js +29 -0
- package/dist/_util/hooks/useMultipleSelect.js +36 -0
- package/dist/_util/hooks/useOrientation.d.ts +6 -0
- package/dist/_util/hooks/useOrientation.js +20 -0
- package/dist/_util/hooks/usePatchElement.js +16 -0
- package/dist/_util/hooks/useResponsive.d.ts +7 -0
- package/dist/_util/hooks/useResponsive.js +33 -0
- package/dist/_util/hooks/useZIndex.d.ts +1 -0
- package/dist/_util/hooks/useZIndex.js +61 -0
- package/dist/_util/isNonNullable.js +8 -0
- package/dist/_util/mediaQueryUtil.js +12 -0
- package/dist/_util/motion.d.ts +7 -0
- package/dist/_util/motion.js +61 -0
- package/dist/_util/placements.d.ts +10 -0
- package/dist/_util/placements.js +130 -0
- package/dist/_util/responsiveObserver.d.ts +7 -0
- package/dist/_util/responsiveObserver.js +106 -0
- package/dist/_util/scrollTo.js +24 -0
- package/dist/_util/statusUtils.d.ts +7 -0
- package/dist/_util/statusUtils.js +18 -0
- package/dist/_util/styleChecker.js +9 -0
- package/dist/_util/throttleByAnimationFrame.js +22 -0
- package/dist/_util/toList.js +9 -0
- package/dist/_util/tools.js +35 -0
- package/dist/_util/transKeys.js +18 -0
- package/dist/_util/type.d.ts +15 -0
- package/dist/_util/vueNode.js +38 -0
- package/dist/_util/warning.d.ts +14 -0
- package/dist/_util/warning.js +54 -0
- package/dist/_util/wave/WaveEffect.js +171 -0
- package/dist/_util/wave/index.js +81 -0
- package/dist/_util/wave/interface.d.ts +14 -0
- package/dist/_util/wave/interface.js +7 -0
- package/dist/_util/wave/style.d.ts +7 -0
- package/dist/_util/wave/style.js +28 -0
- package/dist/_util/wave/useWave.js +42 -0
- package/dist/_util/wave/util.js +17 -0
- package/dist/_util/zindexContext.js +21 -0
- package/dist/_virtual/rolldown_runtime.js +13 -0
- package/dist/affix/index.d.ts +25 -0
- package/dist/affix/index.js +212 -0
- package/dist/affix/style/index.d.ts +13 -0
- package/dist/affix/style/index.js +16 -0
- package/dist/affix/utils.js +16 -0
- package/dist/alert/Alert.d.ts +59 -0
- package/dist/alert/Alert.js +356 -0
- package/dist/alert/index.d.ts +1 -0
- package/dist/alert/index.js +7 -0
- package/dist/alert/style/index.d.ts +23 -0
- package/dist/alert/style/index.js +137 -0
- package/dist/anchor/Anchor.d.ts +52 -0
- package/dist/anchor/Anchor.js +273 -0
- package/dist/anchor/AnchorLink.d.ts +14 -0
- package/dist/anchor/AnchorLink.js +95 -0
- package/dist/anchor/context.js +13 -0
- package/dist/anchor/index.d.ts +2 -0
- package/dist/anchor/index.js +7 -0
- package/dist/anchor/style/index.d.ts +18 -0
- package/dist/anchor/style/index.js +106 -0
- package/dist/antd.js +414 -0
- package/dist/app/App.d.ts +11 -0
- package/dist/app/App.js +88 -0
- package/dist/app/context.d.ts +18 -0
- package/dist/app/context.js +30 -0
- package/dist/app/index.d.ts +9 -0
- package/dist/app/index.js +13 -0
- package/dist/app/style/index.d.ts +7 -0
- package/dist/app/style/index.js +19 -0
- package/dist/app/useApp.d.ts +6 -0
- package/dist/app/useApp.js +8 -0
- package/dist/avatar/Avatar.d.ts +41 -0
- package/dist/avatar/Avatar.js +211 -0
- package/dist/avatar/AvatarContext.d.ts +7 -0
- package/dist/avatar/AvatarContext.js +13 -0
- package/dist/avatar/AvatarGroup.d.ts +24 -0
- package/dist/avatar/AvatarGroup.js +99 -0
- package/dist/avatar/index.d.ts +10 -0
- package/dist/avatar/index.js +10 -0
- package/dist/avatar/style/index.d.ts +68 -0
- package/dist/avatar/style/index.js +84 -0
- package/dist/badge/Ribbon.d.ts +23 -0
- package/dist/badge/Ribbon.js +77 -0
- package/dist/badge/ScrollNumber.js +80 -0
- package/dist/badge/SingleNumber.js +96 -0
- package/dist/badge/index.d.ts +47 -0
- package/dist/badge/index.js +249 -0
- package/dist/badge/style/index.d.ts +49 -0
- package/dist/badge/style/index.js +260 -0
- package/dist/badge/style/ribbon.js +69 -0
- package/dist/breadcrumb/Breadcrumb.d.ts +89 -0
- package/dist/breadcrumb/Breadcrumb.js +191 -0
- package/dist/breadcrumb/BreadcrumbContext.js +13 -0
- package/dist/breadcrumb/BreadcrumbItem.d.ts +32 -0
- package/dist/breadcrumb/BreadcrumbItem.js +161 -0
- package/dist/breadcrumb/BreadcrumbSeparator.js +27 -0
- package/dist/breadcrumb/index.d.ts +2 -0
- package/dist/breadcrumb/index.js +7 -0
- package/dist/breadcrumb/style/index.d.ts +43 -0
- package/dist/breadcrumb/style/index.js +78 -0
- package/dist/breadcrumb/useItemRender.js +44 -0
- package/dist/button/Button.d.ts +62 -0
- package/dist/button/Button.js +344 -0
- package/dist/button/DefaultLoadingIcon.js +91 -0
- package/dist/button/IconWrapper.js +20 -0
- package/dist/button/buttonHelper.d.ts +16 -0
- package/dist/button/buttonHelper.js +79 -0
- package/dist/button/index.d.ts +3 -0
- package/dist/button/index.js +8 -0
- package/dist/button/style/compact.js +42 -0
- package/dist/button/style/group.js +42 -0
- package/dist/button/style/index.d.ts +2 -0
- package/dist/button/style/index.js +138 -0
- package/dist/button/style/token.d.ts +234 -0
- package/dist/button/style/token.js +84 -0
- package/dist/button/style/variant.js +178 -0
- package/dist/calendar/Header.js +274 -0
- package/dist/calendar/generateCalendar.d.ts +89 -0
- package/dist/calendar/generateCalendar.js +285 -0
- package/dist/calendar/index.d.ts +14 -0
- package/dist/calendar/index.js +13 -0
- package/dist/calendar/locale/ar_EG.js +7 -0
- package/dist/calendar/locale/az_AZ.js +7 -0
- package/dist/calendar/locale/bg_BG.js +7 -0
- package/dist/calendar/locale/bn_BD.js +7 -0
- package/dist/calendar/locale/by_BY.js +7 -0
- package/dist/calendar/locale/ca_ES.js +7 -0
- package/dist/calendar/locale/cs_CZ.js +7 -0
- package/dist/calendar/locale/da_DK.js +7 -0
- package/dist/calendar/locale/de_DE.js +7 -0
- package/dist/calendar/locale/el_GR.js +7 -0
- package/dist/calendar/locale/en_GB.js +7 -0
- package/dist/calendar/locale/en_US.d.ts +1 -0
- package/dist/calendar/locale/en_US.js +7 -0
- package/dist/calendar/locale/es_ES.js +7 -0
- package/dist/calendar/locale/et_EE.js +7 -0
- package/dist/calendar/locale/eu_ES.js +7 -0
- package/dist/calendar/locale/fa_IR.js +7 -0
- package/dist/calendar/locale/fi_FI.js +7 -0
- package/dist/calendar/locale/fr_BE.js +7 -0
- package/dist/calendar/locale/fr_CA.js +7 -0
- package/dist/calendar/locale/fr_FR.js +7 -0
- package/dist/calendar/locale/ga_IE.js +7 -0
- package/dist/calendar/locale/gl_ES.js +7 -0
- package/dist/calendar/locale/he_IL.js +7 -0
- package/dist/calendar/locale/hi_IN.js +7 -0
- package/dist/calendar/locale/hr_HR.js +7 -0
- package/dist/calendar/locale/hu_HU.js +7 -0
- package/dist/calendar/locale/id_ID.js +7 -0
- package/dist/calendar/locale/is_IS.js +7 -0
- package/dist/calendar/locale/it_IT.js +7 -0
- package/dist/calendar/locale/ja_JP.js +7 -0
- package/dist/calendar/locale/ka_GE.js +7 -0
- package/dist/calendar/locale/kk_KZ.js +7 -0
- package/dist/calendar/locale/km_KH.js +7 -0
- package/dist/calendar/locale/kmr_IQ.js +7 -0
- package/dist/calendar/locale/kn_IN.js +7 -0
- package/dist/calendar/locale/ko_KR.js +7 -0
- package/dist/calendar/locale/lt_LT.js +7 -0
- package/dist/calendar/locale/lv_LV.js +7 -0
- package/dist/calendar/locale/mk_MK.js +7 -0
- package/dist/calendar/locale/ml_IN.js +7 -0
- package/dist/calendar/locale/mn_MN.js +7 -0
- package/dist/calendar/locale/mr_IN.js +7 -0
- package/dist/calendar/locale/ms_MY.js +7 -0
- package/dist/calendar/locale/my_MM.js +7 -0
- package/dist/calendar/locale/nb_NO.js +7 -0
- package/dist/calendar/locale/nl_BE.js +7 -0
- package/dist/calendar/locale/nl_NL.js +7 -0
- package/dist/calendar/locale/pl_PL.js +7 -0
- package/dist/calendar/locale/pt_BR.js +7 -0
- package/dist/calendar/locale/pt_PT.js +7 -0
- package/dist/calendar/locale/ro_RO.js +7 -0
- package/dist/calendar/locale/ru_RU.js +7 -0
- package/dist/calendar/locale/si_LK.js +7 -0
- package/dist/calendar/locale/sk_SK.js +7 -0
- package/dist/calendar/locale/sl_SI.js +7 -0
- package/dist/calendar/locale/sr_RS.js +7 -0
- package/dist/calendar/locale/sv_SE.js +7 -0
- package/dist/calendar/locale/ta_IN.js +7 -0
- package/dist/calendar/locale/th_TH.js +7 -0
- package/dist/calendar/locale/tk_TK.js +7 -0
- package/dist/calendar/locale/tr_TR.js +7 -0
- package/dist/calendar/locale/uk_UA.js +7 -0
- package/dist/calendar/locale/ur_PK.js +7 -0
- package/dist/calendar/locale/uz_UZ.js +7 -0
- package/dist/calendar/locale/vi_VN.js +7 -0
- package/dist/calendar/locale/zh_CN.js +7 -0
- package/dist/calendar/locale/zh_TW.js +7 -0
- package/dist/calendar/style/index.d.ts +40 -0
- package/dist/calendar/style/index.js +153 -0
- package/dist/card/Card.d.ts +67 -0
- package/dist/card/Card.js +305 -0
- package/dist/card/CardGrid.d.ts +10 -0
- package/dist/card/CardGrid.js +36 -0
- package/dist/card/CardMeta.d.ts +29 -0
- package/dist/card/CardMeta.js +105 -0
- package/dist/card/index.d.ts +3 -0
- package/dist/card/index.js +16 -0
- package/dist/card/style/index.d.ts +73 -0
- package/dist/card/style/index.js +263 -0
- package/dist/carousel/index.d.ts +52 -0
- package/dist/carousel/index.js +411 -0
- package/dist/carousel/style/index.d.ts +45 -0
- package/dist/carousel/style/index.js +304 -0
- package/dist/cascader/Panel.d.ts +23 -0
- package/dist/cascader/Panel.js +125 -0
- package/dist/cascader/hooks/useBase.js +17 -0
- package/dist/cascader/hooks/useCheckable.js +10 -0
- package/dist/cascader/hooks/useColumnIcons.js +13 -0
- package/dist/cascader/index.d.ts +90 -0
- package/dist/cascader/index.js +628 -0
- package/dist/cascader/style/columns.js +77 -0
- package/dist/cascader/style/index.d.ts +48 -0
- package/dist/cascader/style/index.js +35 -0
- package/dist/cascader/style/panel.js +24 -0
- package/dist/checkbox/Checkbox.d.ts +51 -0
- package/dist/checkbox/Checkbox.js +230 -0
- package/dist/checkbox/Group.d.ts +48 -0
- package/dist/checkbox/Group.js +141 -0
- package/dist/checkbox/GroupContext.js +13 -0
- package/dist/checkbox/index.d.ts +2 -0
- package/dist/checkbox/index.js +12 -0
- package/dist/checkbox/style/index.d.ts +8 -0
- package/dist/checkbox/style/index.js +167 -0
- package/dist/checkbox/useBubbleLock.js +33 -0
- package/dist/collapse/Collapse.d.ts +76 -0
- package/dist/collapse/Collapse.js +179 -0
- package/dist/collapse/CollapsePanel.d.ts +7 -0
- package/dist/collapse/index.d.ts +2 -0
- package/dist/collapse/index.js +7 -0
- package/dist/collapse/style/index.d.ts +39 -0
- package/dist/collapse/style/index.js +173 -0
- package/dist/color-picker/ColorPicker.d.ts +49 -0
- package/dist/color-picker/ColorPicker.js +336 -0
- package/dist/color-picker/ColorPickerPanel.js +173 -0
- package/dist/color-picker/color.d.ts +32 -0
- package/dist/color-picker/color.js +79 -0
- package/dist/color-picker/components/ColorAlphaInput.js +49 -0
- package/dist/color-picker/components/ColorClear.js +42 -0
- package/dist/color-picker/components/ColorHexInput.js +46 -0
- package/dist/color-picker/components/ColorHsbInput.js +69 -0
- package/dist/color-picker/components/ColorInput.js +94 -0
- package/dist/color-picker/components/ColorPresets.js +84 -0
- package/dist/color-picker/components/ColorRgbInput.js +66 -0
- package/dist/color-picker/components/ColorSlider.js +194 -0
- package/dist/color-picker/components/ColorSteppers.js +63 -0
- package/dist/color-picker/components/ColorTrigger.js +92 -0
- package/dist/color-picker/components/PanelPicker/GradientColorBar.js +163 -0
- package/dist/color-picker/components/PanelPicker/index.js +136 -0
- package/dist/color-picker/components/PanelPresets.js +23 -0
- package/dist/color-picker/context.js +20 -0
- package/dist/color-picker/hooks/useModeColor.js +59 -0
- package/dist/color-picker/index.d.ts +3 -0
- package/dist/color-picker/index.js +7 -0
- package/dist/color-picker/interface.d.ts +116 -0
- package/dist/color-picker/interface.js +7 -0
- package/dist/color-picker/style/color-block.js +35 -0
- package/dist/color-picker/style/index.d.ts +7 -0
- package/dist/color-picker/style/index.js +175 -0
- package/dist/color-picker/style/input.js +69 -0
- package/dist/color-picker/style/picker.js +36 -0
- package/dist/color-picker/style/presets.js +84 -0
- package/dist/color-picker/style/slider.js +81 -0
- package/dist/color-picker/util.js +56 -0
- package/dist/components.d.ts +154 -0
- package/dist/components.js +231 -0
- package/dist/config-provider/DisabledContext.js +26 -0
- package/dist/config-provider/SizeContext.d.ts +6 -0
- package/dist/config-provider/SizeContext.js +21 -0
- package/dist/config-provider/context.d.ts +207 -0
- package/dist/config-provider/context.js +104 -0
- package/dist/config-provider/defaultRenderEmpty.d.ts +7 -0
- package/dist/config-provider/defaultRenderEmpty.js +36 -0
- package/dist/config-provider/define.d.ts +107 -0
- package/dist/config-provider/hooks/useCSSVarCls.js +18 -0
- package/dist/config-provider/hooks/useSize.js +16 -0
- package/dist/config-provider/hooks/useTheme.js +48 -0
- package/dist/config-provider/hooks/useThemeKey.js +9 -0
- package/dist/config-provider/index.d.ts +12 -0
- package/dist/config-provider/index.js +809 -0
- package/dist/config-provider/style/index.js +4 -0
- package/dist/date-picker/PickerButton.js +113 -0
- package/dist/date-picker/generatePicker/SuffixIcon.js +51 -0
- package/dist/date-picker/generatePicker/constant.js +9 -0
- package/dist/date-picker/generatePicker/generateRangePicker.d.ts +39 -0
- package/dist/date-picker/generatePicker/generateRangePicker.js +1333 -0
- package/dist/date-picker/generatePicker/generateSinglePicker.d.ts +40 -0
- package/dist/date-picker/generatePicker/generateSinglePicker.js +1346 -0
- package/dist/date-picker/generatePicker/index.d.ts +32 -0
- package/dist/date-picker/generatePicker/index.js +20 -0
- package/dist/date-picker/generatePicker/interface.d.ts +136 -0
- package/dist/date-picker/generatePicker/useComponents.js +12 -0
- package/dist/date-picker/hooks/useMergedPickerSemantic.js +38 -0
- package/dist/date-picker/index.d.ts +55 -0
- package/dist/date-picker/index.js +23 -0
- package/dist/date-picker/locale/ar_EG.js +42 -0
- package/dist/date-picker/locale/az_AZ.js +24 -0
- package/dist/date-picker/locale/bg_BG.js +16 -0
- package/dist/date-picker/locale/bn_BD.js +23 -0
- package/dist/date-picker/locale/by_BY.js +24 -0
- package/dist/date-picker/locale/ca_ES.js +16 -0
- package/dist/date-picker/locale/cs_CZ.js +16 -0
- package/dist/date-picker/locale/da_DK.js +16 -0
- package/dist/date-picker/locale/de_DE.js +39 -0
- package/dist/date-picker/locale/el_GR.js +24 -0
- package/dist/date-picker/locale/en_GB.js +24 -0
- package/dist/date-picker/locale/en_US.d.ts +7 -0
- package/dist/date-picker/locale/en_US.js +24 -0
- package/dist/date-picker/locale/es_ES.js +39 -0
- package/dist/date-picker/locale/et_EE.js +16 -0
- package/dist/date-picker/locale/eu_ES.js +16 -0
- package/dist/date-picker/locale/fa_IR.js +24 -0
- package/dist/date-picker/locale/fi_FI.js +16 -0
- package/dist/date-picker/locale/fr_BE.js +23 -0
- package/dist/date-picker/locale/fr_CA.js +23 -0
- package/dist/date-picker/locale/fr_FR.js +23 -0
- package/dist/date-picker/locale/ga_IE.js +23 -0
- package/dist/date-picker/locale/gl_ES.js +16 -0
- package/dist/date-picker/locale/he_IL.js +16 -0
- package/dist/date-picker/locale/hi_IN.js +23 -0
- package/dist/date-picker/locale/hr_HR.js +23 -0
- package/dist/date-picker/locale/hu_HU.js +16 -0
- package/dist/date-picker/locale/id_ID.js +24 -0
- package/dist/date-picker/locale/is_IS.js +16 -0
- package/dist/date-picker/locale/it_IT.js +16 -0
- package/dist/date-picker/locale/ja_JP.js +47 -0
- package/dist/date-picker/locale/ka_GE.js +23 -0
- package/dist/date-picker/locale/kk_KZ.js +23 -0
- package/dist/date-picker/locale/km_KH.js +23 -0
- package/dist/date-picker/locale/kmr_IQ.js +16 -0
- package/dist/date-picker/locale/kn_IN.js +24 -0
- package/dist/date-picker/locale/ko_KR.js +47 -0
- package/dist/date-picker/locale/lt_LT.js +24 -0
- package/dist/date-picker/locale/lv_LV.js +16 -0
- package/dist/date-picker/locale/mk_MK.js +16 -0
- package/dist/date-picker/locale/ml_IN.js +23 -0
- package/dist/date-picker/locale/mn_MN.js +16 -0
- package/dist/date-picker/locale/mr_IN.js +24 -0
- package/dist/date-picker/locale/ms_MY.js +16 -0
- package/dist/date-picker/locale/my_MM.js +24 -0
- package/dist/date-picker/locale/nb_NO.js +23 -0
- package/dist/date-picker/locale/nl_BE.js +23 -0
- package/dist/date-picker/locale/nl_NL.js +23 -0
- package/dist/date-picker/locale/pl_PL.js +42 -0
- package/dist/date-picker/locale/pt_BR.js +16 -0
- package/dist/date-picker/locale/pt_PT.js +42 -0
- package/dist/date-picker/locale/ro_RO.js +16 -0
- package/dist/date-picker/locale/ru_RU.js +46 -0
- package/dist/date-picker/locale/si_LK.js +24 -0
- package/dist/date-picker/locale/sk_SK.js +16 -0
- package/dist/date-picker/locale/sl_SI.js +39 -0
- package/dist/date-picker/locale/sr_RS.js +23 -0
- package/dist/date-picker/locale/sv_SE.js +23 -0
- package/dist/date-picker/locale/ta_IN.js +23 -0
- package/dist/date-picker/locale/th_TH.js +23 -0
- package/dist/date-picker/locale/tk_TK.js +24 -0
- package/dist/date-picker/locale/tr_TR.js +23 -0
- package/dist/date-picker/locale/uk_UA.js +46 -0
- package/dist/date-picker/locale/ur_PK.js +23 -0
- package/dist/date-picker/locale/uz_UZ.js +23 -0
- package/dist/date-picker/locale/vi_VN.js +47 -0
- package/dist/date-picker/locale/zh_CN.js +25 -0
- package/dist/date-picker/locale/zh_TW.js +25 -0
- package/dist/date-picker/style/index.d.ts +3 -0
- package/dist/date-picker/style/index.js +296 -0
- package/dist/date-picker/style/multiple.js +81 -0
- package/dist/date-picker/style/panel.d.ts +3 -0
- package/dist/date-picker/style/panel.js +388 -0
- package/dist/date-picker/style/token.d.ts +87 -0
- package/dist/date-picker/style/token.js +63 -0
- package/dist/date-picker/style/util.js +92 -0
- package/dist/date-picker/style/variants.js +34 -0
- package/dist/date-picker/util.js +37 -0
- package/dist/descriptions/Cell.js +97 -0
- package/dist/descriptions/DescriptionsContext.js +13 -0
- package/dist/descriptions/Item.d.ts +18 -0
- package/dist/descriptions/Row.js +158 -0
- package/dist/descriptions/constant.js +13 -0
- package/dist/descriptions/hooks/useItems.js +23 -0
- package/dist/descriptions/hooks/useRow.js +54 -0
- package/dist/descriptions/index.d.ts +57 -0
- package/dist/descriptions/index.js +181 -0
- package/dist/descriptions/style/index.d.ts +59 -0
- package/dist/descriptions/style/index.js +144 -0
- package/dist/divider/index.d.ts +37 -0
- package/dist/divider/index.js +171 -0
- package/dist/divider/style/index.d.ts +24 -0
- package/dist/divider/style/index.js +128 -0
- package/dist/drawer/DrawerPanel.d.ts +49 -0
- package/dist/drawer/DrawerPanel.js +210 -0
- package/dist/drawer/index.d.ts +53 -0
- package/dist/drawer/index.js +504 -0
- package/dist/drawer/style/index.d.ts +28 -0
- package/dist/drawer/style/index.js +216 -0
- package/dist/drawer/style/motion.js +53 -0
- package/dist/dropdown/dropdown.d.ts +64 -0
- package/dist/dropdown/dropdown.js +255 -0
- package/dist/dropdown/index.d.ts +9 -0
- package/dist/dropdown/index.js +11 -0
- package/dist/dropdown/style/index.d.ts +20 -0
- package/dist/dropdown/style/index.js +233 -0
- package/dist/dropdown/style/status.js +16 -0
- package/dist/empty/empty.js +70 -0
- package/dist/empty/index.d.ts +37 -0
- package/dist/empty/index.js +114 -0
- package/dist/empty/simple.js +48 -0
- package/dist/empty/style/index.d.ts +7 -0
- package/dist/empty/style/index.js +49 -0
- package/dist/flex/index.d.ts +14 -0
- package/dist/flex/index.js +67 -0
- package/dist/flex/interface.d.ts +16 -0
- package/dist/flex/style/index.d.ts +8 -0
- package/dist/flex/style/index.js +67 -0
- package/dist/flex/utils.js +64 -0
- package/dist/float-button/BackTop.d.ts +25 -0
- package/dist/float-button/BackTop.js +199 -0
- package/dist/float-button/FloatButton.d.ts +62 -0
- package/dist/float-button/FloatButton.js +217 -0
- package/dist/float-button/FloatButtonGroup.d.ts +39 -0
- package/dist/float-button/FloatButtonGroup.js +334 -0
- package/dist/float-button/PurePanel.js +274 -0
- package/dist/float-button/context.js +20 -0
- package/dist/float-button/index.d.ts +3 -0
- package/dist/float-button/index.js +18 -0
- package/dist/float-button/style/button.js +59 -0
- package/dist/float-button/style/group.js +74 -0
- package/dist/float-button/style/index.d.ts +8 -0
- package/dist/float-button/style/index.js +26 -0
- package/dist/form/ErrorList.js +127 -0
- package/dist/form/Form.d.ts +87 -0
- package/dist/form/Form.js +453 -0
- package/dist/form/FormItem/ItemHolder.js +258 -0
- package/dist/form/FormItem/StatusProvider.js +93 -0
- package/dist/form/FormItem/index.d.ts +60 -0
- package/dist/form/FormItem/index.js +437 -0
- package/dist/form/FormItemInput.d.ts +19 -0
- package/dist/form/FormItemInput.js +166 -0
- package/dist/form/FormItemLabel.d.ts +31 -0
- package/dist/form/FormItemLabel.js +134 -0
- package/dist/form/context.js +117 -0
- package/dist/form/hooks/useForm.js +9 -0
- package/dist/form/hooks/useVariant.js +21 -0
- package/dist/form/index.d.ts +2 -0
- package/dist/form/index.js +12 -0
- package/dist/form/interface.d.ts +9 -0
- package/dist/form/namePathType.d.ts +9 -0
- package/dist/form/style/explain.js +36 -0
- package/dist/form/style/fallbackCmp.js +15 -0
- package/dist/form/style/index.d.ts +58 -0
- package/dist/form/style/index.js +309 -0
- package/dist/form/types.d.ts +162 -0
- package/dist/form/util.js +35 -0
- package/dist/form/utils/asyncUtil.js +24 -0
- package/dist/form/utils/messages.js +50 -0
- package/dist/form/utils/typeUtil.js +8 -0
- package/dist/form/utils/validateUtil.js +149 -0
- package/dist/form/utils/valueUtil.js +50 -0
- package/dist/form/validateMessagesContext.js +13 -0
- package/dist/grid/RowContext.js +13 -0
- package/dist/grid/col.d.ts +32 -0
- package/dist/grid/col.js +167 -0
- package/dist/grid/hooks/useBreakpoint.js +23 -0
- package/dist/grid/hooks/useGutter.js +36 -0
- package/dist/grid/index.d.ts +23 -0
- package/dist/grid/index.js +11 -0
- package/dist/grid/row.d.ts +21 -0
- package/dist/grid/row.js +108 -0
- package/dist/grid/style/index.d.ts +7 -0
- package/dist/grid/style/index.js +96 -0
- package/dist/image/PreviewGroup.d.ts +22 -0
- package/dist/image/PreviewGroup.js +134 -0
- package/dist/image/hooks/useMergedPreviewConfig.js +33 -0
- package/dist/image/hooks/usePreviewConfig.js +66 -0
- package/dist/image/index.d.ts +71 -0
- package/dist/image/index.js +165 -0
- package/dist/image/style/index.d.ts +34 -0
- package/dist/image/style/index.js +208 -0
- package/dist/index.d.ts +149 -0
- package/dist/index.js +118 -0
- package/dist/input/Group.d.ts +11 -0
- package/dist/input/Group.js +58 -0
- package/dist/input/Input.d.ts +72 -0
- package/dist/input/Input.js +346 -0
- package/dist/input/OTP/OTPInput.js +217 -0
- package/dist/input/OTP/index.d.ts +43 -0
- package/dist/input/OTP/index.js +206 -0
- package/dist/input/Password.d.ts +36 -0
- package/dist/input/Password.js +270 -0
- package/dist/input/Search.d.ts +43 -0
- package/dist/input/Search.js +325 -0
- package/dist/input/TextArea.d.ts +55 -0
- package/dist/input/TextArea.js +264 -0
- package/dist/input/hooks/useRemovePasswordTimeout.js +29 -0
- package/dist/input/index.d.ts +29 -0
- package/dist/input/index.js +31 -0
- package/dist/input/style/index.d.ts +4 -0
- package/dist/input/style/index.js +379 -0
- package/dist/input/style/otp.js +47 -0
- package/dist/input/style/search.js +24 -0
- package/dist/input/style/textarea.js +79 -0
- package/dist/input/style/token.d.ts +93 -0
- package/dist/input/style/token.js +37 -0
- package/dist/input/style/variants.js +276 -0
- package/dist/input-number/index.d.ts +76 -0
- package/dist/input-number/index.js +403 -0
- package/dist/input-number/style/index.d.ts +2 -0
- package/dist/input-number/style/index.js +198 -0
- package/dist/input-number/style/token.d.ts +62 -0
- package/dist/input-number/style/token.js +26 -0
- package/dist/layout/Sider.d.ts +33 -0
- package/dist/layout/Sider.js +172 -0
- package/dist/layout/context.js +16 -0
- package/dist/layout/hooks/useHasSider.js +9 -0
- package/dist/layout/index.d.ts +14 -0
- package/dist/layout/index.js +21 -0
- package/dist/layout/layout.d.ts +12 -0
- package/dist/layout/layout.js +151 -0
- package/dist/layout/style/index.d.ts +94 -0
- package/dist/layout/style/index.js +77 -0
- package/dist/layout/style/sider.js +82 -0
- package/dist/locale/ar_EG.d.ts +6 -0
- package/dist/locale/ar_EG.js +127 -0
- package/dist/locale/az_AZ.d.ts +6 -0
- package/dist/locale/az_AZ.js +144 -0
- package/dist/locale/bg_BG.d.ts +6 -0
- package/dist/locale/bg_BG.js +102 -0
- package/dist/locale/bn_BD.d.ts +6 -0
- package/dist/locale/bn_BD.js +128 -0
- package/dist/locale/by_BY.d.ts +6 -0
- package/dist/locale/by_BY.js +130 -0
- package/dist/locale/ca_ES.d.ts +6 -0
- package/dist/locale/ca_ES.js +126 -0
- package/dist/locale/cs_CZ.d.ts +6 -0
- package/dist/locale/cs_CZ.js +141 -0
- package/dist/locale/da_DK.d.ts +6 -0
- package/dist/locale/da_DK.js +112 -0
- package/dist/locale/de_DE.d.ts +6 -0
- package/dist/locale/de_DE.js +130 -0
- package/dist/locale/el_GR.d.ts +6 -0
- package/dist/locale/el_GR.js +142 -0
- package/dist/locale/en_GB.d.ts +6 -0
- package/dist/locale/en_GB.js +130 -0
- package/dist/locale/en_US.d.ts +6 -0
- package/dist/locale/en_US.js +144 -0
- package/dist/locale/es_ES.d.ts +6 -0
- package/dist/locale/es_ES.js +130 -0
- package/dist/locale/et_EE.d.ts +6 -0
- package/dist/locale/et_EE.js +130 -0
- package/dist/locale/eu_ES.d.ts +6 -0
- package/dist/locale/eu_ES.js +140 -0
- package/dist/locale/fa_IR.d.ts +6 -0
- package/dist/locale/fa_IR.js +143 -0
- package/dist/locale/fi_FI.d.ts +6 -0
- package/dist/locale/fi_FI.js +63 -0
- package/dist/locale/fr_BE.d.ts +6 -0
- package/dist/locale/fr_BE.js +127 -0
- package/dist/locale/fr_CA.d.ts +6 -0
- package/dist/locale/fr_CA.js +127 -0
- package/dist/locale/fr_FR.d.ts +6 -0
- package/dist/locale/fr_FR.js +127 -0
- package/dist/locale/ga_IE.d.ts +6 -0
- package/dist/locale/ga_IE.js +122 -0
- package/dist/locale/gl_ES.d.ts +6 -0
- package/dist/locale/gl_ES.js +110 -0
- package/dist/locale/he_IL.d.ts +6 -0
- package/dist/locale/he_IL.js +116 -0
- package/dist/locale/hi_IN.d.ts +6 -0
- package/dist/locale/hi_IN.js +128 -0
- package/dist/locale/hr_HR.d.ts +6 -0
- package/dist/locale/hr_HR.js +127 -0
- package/dist/locale/hu_HU.d.ts +6 -0
- package/dist/locale/hu_HU.js +54 -0
- package/dist/locale/hy_AM.d.ts +6 -0
- package/dist/locale/hy_AM.js +105 -0
- package/dist/locale/id_ID.d.ts +6 -0
- package/dist/locale/id_ID.js +143 -0
- package/dist/locale/index.d.ts +68 -0
- package/dist/locale/index.js +35 -0
- package/dist/locale/is_IS.d.ts +6 -0
- package/dist/locale/is_IS.js +102 -0
- package/dist/locale/it_IT.d.ts +6 -0
- package/dist/locale/it_IT.js +141 -0
- package/dist/locale/ja_JP.d.ts +6 -0
- package/dist/locale/ja_JP.js +143 -0
- package/dist/locale/ka_GE.d.ts +6 -0
- package/dist/locale/ka_GE.js +128 -0
- package/dist/locale/kk_KZ.d.ts +6 -0
- package/dist/locale/kk_KZ.js +123 -0
- package/dist/locale/km_KH.d.ts +6 -0
- package/dist/locale/km_KH.js +104 -0
- package/dist/locale/kmr_IQ.d.ts +6 -0
- package/dist/locale/kmr_IQ.js +53 -0
- package/dist/locale/kn_IN.d.ts +6 -0
- package/dist/locale/kn_IN.js +130 -0
- package/dist/locale/ko_KR.d.ts +6 -0
- package/dist/locale/ko_KR.js +140 -0
- package/dist/locale/ku_IQ.d.ts +6 -0
- package/dist/locale/ku_IQ.js +53 -0
- package/dist/locale/lt_LT.d.ts +6 -0
- package/dist/locale/lt_LT.js +140 -0
- package/dist/locale/lv_LV.d.ts +6 -0
- package/dist/locale/lv_LV.js +53 -0
- package/dist/locale/mk_MK.d.ts +6 -0
- package/dist/locale/mk_MK.js +63 -0
- package/dist/locale/ml_IN.d.ts +6 -0
- package/dist/locale/ml_IN.js +128 -0
- package/dist/locale/mn_MN.d.ts +6 -0
- package/dist/locale/mn_MN.js +130 -0
- package/dist/locale/mr_IN.d.ts +6 -0
- package/dist/locale/mr_IN.js +132 -0
- package/dist/locale/ms_MY.d.ts +6 -0
- package/dist/locale/ms_MY.js +141 -0
- package/dist/locale/my_MM.d.ts +6 -0
- package/dist/locale/my_MM.js +131 -0
- package/dist/locale/nb_NO.d.ts +6 -0
- package/dist/locale/nb_NO.js +123 -0
- package/dist/locale/ne_NP.d.ts +6 -0
- package/dist/locale/ne_NP.js +143 -0
- package/dist/locale/nl_BE.d.ts +6 -0
- package/dist/locale/nl_BE.js +128 -0
- package/dist/locale/nl_NL.d.ts +6 -0
- package/dist/locale/nl_NL.js +128 -0
- package/dist/locale/pl_PL.d.ts +6 -0
- package/dist/locale/pl_PL.js +130 -0
- package/dist/locale/pt_BR.d.ts +6 -0
- package/dist/locale/pt_BR.js +130 -0
- package/dist/locale/pt_PT.d.ts +6 -0
- package/dist/locale/pt_PT.js +143 -0
- package/dist/locale/ro_RO.d.ts +6 -0
- package/dist/locale/ro_RO.js +128 -0
- package/dist/locale/ru_RU.d.ts +6 -0
- package/dist/locale/ru_RU.js +142 -0
- package/dist/locale/si_LK.d.ts +6 -0
- package/dist/locale/si_LK.js +130 -0
- package/dist/locale/sk_SK.d.ts +6 -0
- package/dist/locale/sk_SK.js +130 -0
- package/dist/locale/sl_SI.d.ts +6 -0
- package/dist/locale/sl_SI.js +53 -0
- package/dist/locale/sr_RS.d.ts +6 -0
- package/dist/locale/sr_RS.js +128 -0
- package/dist/locale/sv_SE.d.ts +6 -0
- package/dist/locale/sv_SE.js +134 -0
- package/dist/locale/ta_IN.d.ts +6 -0
- package/dist/locale/ta_IN.js +127 -0
- package/dist/locale/th_TH.d.ts +6 -0
- package/dist/locale/th_TH.js +143 -0
- package/dist/locale/tk_TK.d.ts +6 -0
- package/dist/locale/tk_TK.js +124 -0
- package/dist/locale/tr_TR.d.ts +6 -0
- package/dist/locale/tr_TR.js +129 -0
- package/dist/locale/uk_UA.d.ts +6 -0
- package/dist/locale/uk_UA.js +135 -0
- package/dist/locale/ur_PK.d.ts +6 -0
- package/dist/locale/ur_PK.js +128 -0
- package/dist/locale/useLocale.d.ts +8 -0
- package/dist/locale/useLocale.js +24 -0
- package/dist/locale/uz_UZ.d.ts +6 -0
- package/dist/locale/uz_UZ.js +134 -0
- package/dist/locale/vi_VN.d.ts +6 -0
- package/dist/locale/vi_VN.js +143 -0
- package/dist/locale/zh_CN.d.ts +6 -0
- package/dist/locale/zh_CN.js +144 -0
- package/dist/locale/zh_HK.d.ts +6 -0
- package/dist/locale/zh_HK.js +139 -0
- package/dist/locale/zh_TW.d.ts +6 -0
- package/dist/locale/zh_TW.js +142 -0
- package/dist/masonry/Masonry.d.ts +50 -0
- package/dist/masonry/Masonry.js +203 -0
- package/dist/masonry/MasonryItem.d.ts +17 -0
- package/dist/masonry/MasonryItem.js +81 -0
- package/dist/masonry/hooks/useDelay.js +20 -0
- package/dist/masonry/hooks/usePositions.js +30 -0
- package/dist/masonry/hooks/useRefs.js +15 -0
- package/dist/masonry/index.d.ts +1 -0
- package/dist/masonry/index.js +10 -0
- package/dist/masonry/style/index.d.ts +7 -0
- package/dist/masonry/style/index.js +40 -0
- package/dist/mentions/index.d.ts +78 -0
- package/dist/mentions/index.js +339 -0
- package/dist/mentions/style/index.d.ts +24 -0
- package/dist/mentions/style/index.js +193 -0
- package/dist/menu/MenuContext.d.ts +9 -0
- package/dist/menu/MenuContext.js +28 -0
- package/dist/menu/MenuDivider.d.ts +10 -0
- package/dist/menu/MenuDivider.js +35 -0
- package/dist/menu/MenuItem.d.ts +31 -0
- package/dist/menu/MenuItem.js +197 -0
- package/dist/menu/OverrideContext.js +27 -0
- package/dist/menu/SubMenu.d.ts +19 -0
- package/dist/menu/SubMenu.js +159 -0
- package/dist/menu/index.d.ts +29 -0
- package/dist/menu/index.js +195 -0
- package/dist/menu/interface.d.ts +26 -0
- package/dist/menu/menu.d.ts +68 -0
- package/dist/menu/menu.js +342 -0
- package/dist/menu/style/horizontal.js +33 -0
- package/dist/menu/style/index.d.ts +331 -0
- package/dist/menu/style/index.js +425 -0
- package/dist/menu/style/rtl.js +16 -0
- package/dist/menu/style/theme.js +109 -0
- package/dist/menu/style/vertical.js +133 -0
- package/dist/message/PurePanel.d.ts +36 -0
- package/dist/message/PurePanel.js +212 -0
- package/dist/message/index.d.ts +24 -0
- package/dist/message/index.js +238 -0
- package/dist/message/interface.d.ts +91 -0
- package/dist/message/style/index.d.ts +24 -0
- package/dist/message/style/index.js +114 -0
- package/dist/message/useMessage.d.ts +8 -0
- package/dist/message/useMessage.js +236 -0
- package/dist/message/util.js +22 -0
- package/dist/modal/ConfirmDialog.js +1047 -0
- package/dist/modal/Modal.d.ts +10 -0
- package/dist/modal/Modal.js +478 -0
- package/dist/modal/components/ConfirmCancelBtn.js +35 -0
- package/dist/modal/components/ConfirmOkBtn.js +36 -0
- package/dist/modal/components/NormalCancelBtn.js +22 -0
- package/dist/modal/components/NormalOkBtn.js +28 -0
- package/dist/modal/confirm.d.ts +20 -0
- package/dist/modal/confirm.js +373 -0
- package/dist/modal/context.js +13 -0
- package/dist/modal/destroyFns.js +6 -0
- package/dist/modal/index.d.ts +20 -0
- package/dist/modal/index.js +25 -0
- package/dist/modal/interface.d.ts +163 -0
- package/dist/modal/locale.js +10 -0
- package/dist/modal/shared.js +117 -0
- package/dist/modal/style/confirm.js +69 -0
- package/dist/modal/style/index.d.ts +63 -0
- package/dist/modal/style/index.js +261 -0
- package/dist/modal/useModal/HookModal.js +72 -0
- package/dist/modal/useModal/index.d.ts +7 -0
- package/dist/modal/useModal/index.js +97 -0
- package/dist/modal/useModal/types.d.ts +9 -0
- package/dist/notification/PurePanel.d.ts +41 -0
- package/dist/notification/PurePanel.js +326 -0
- package/dist/notification/index.d.ts +24 -0
- package/dist/notification/index.js +195 -0
- package/dist/notification/interface.d.ts +85 -0
- package/dist/notification/interface.js +12 -0
- package/dist/notification/style/index.d.ts +45 -0
- package/dist/notification/style/index.js +206 -0
- package/dist/notification/style/placement.js +75 -0
- package/dist/notification/style/pure-panel.js +19 -0
- package/dist/notification/style/stack.js +88 -0
- package/dist/notification/useNotification.d.ts +8 -0
- package/dist/notification/useNotification.js +251 -0
- package/dist/notification/util.js +64 -0
- package/dist/package.d.ts +5 -0
- package/dist/package.js +5 -0
- package/dist/pagination/Pagination.d.ts +10 -0
- package/dist/pagination/Pagination.js +341 -0
- package/dist/pagination/index.d.ts +2 -0
- package/dist/pagination/index.js +7 -0
- package/dist/pagination/interface.d.ts +71 -0
- package/dist/pagination/style/bordered.js +73 -0
- package/dist/pagination/style/index.d.ts +64 -0
- package/dist/pagination/style/index.js +439 -0
- package/dist/pagination/useShowSizeChanger.js +18 -0
- package/dist/popconfirm/PurePanel.d.ts +28 -0
- package/dist/popconfirm/PurePanel.js +284 -0
- package/dist/popconfirm/index.d.ts +52 -0
- package/dist/popconfirm/index.js +316 -0
- package/dist/popconfirm/style/index.d.ts +13 -0
- package/dist/popconfirm/style/index.js +45 -0
- package/dist/popover/PurePanel.js +361 -0
- package/dist/popover/index.d.ts +31 -0
- package/dist/popover/index.js +232 -0
- package/dist/popover/style/index.d.ts +42 -0
- package/dist/popover/style/index.js +114 -0
- package/dist/progress/Circle.js +204 -0
- package/dist/progress/Line.js +235 -0
- package/dist/progress/Steps.js +148 -0
- package/dist/progress/index.d.ts +1 -0
- package/dist/progress/index.js +7 -0
- package/dist/progress/progress.d.ts +74 -0
- package/dist/progress/progress.js +283 -0
- package/dist/progress/style/index.d.ts +38 -0
- package/dist/progress/style/index.js +190 -0
- package/dist/progress/utils.js +51 -0
- package/dist/qrcode/QrcodeStatus.js +49 -0
- package/dist/qrcode/index.d.ts +10 -0
- package/dist/qrcode/index.js +207 -0
- package/dist/qrcode/interface.d.ts +40 -0
- package/dist/qrcode/style/index.d.ts +7 -0
- package/dist/qrcode/style/index.js +62 -0
- package/dist/radio/context.js +20 -0
- package/dist/radio/group.js +199 -0
- package/dist/radio/index.d.ts +18 -0
- package/dist/radio/index.js +19 -0
- package/dist/radio/interface.d.ts +72 -0
- package/dist/radio/radio.d.ts +10 -0
- package/dist/radio/radio.js +200 -0
- package/dist/radio/radioButton.js +87 -0
- package/dist/radio/style/index.d.ts +82 -0
- package/dist/radio/style/index.js +326 -0
- package/dist/rate/index.d.ts +25 -0
- package/dist/rate/index.js +179 -0
- package/dist/rate/style/index.d.ts +39 -0
- package/dist/rate/style/index.js +80 -0
- package/dist/reset.css +253 -0
- package/dist/result/index.d.ts +48 -0
- package/dist/result/index.js +211 -0
- package/dist/result/noFound.d.ts +6 -0
- package/dist/result/noFound.js +293 -0
- package/dist/result/serverError.d.ts +6 -0
- package/dist/result/serverError.js +335 -0
- package/dist/result/style/index.d.ts +28 -0
- package/dist/result/style/index.js +84 -0
- package/dist/result/unauthorized.d.ts +6 -0
- package/dist/result/unauthorized.js +287 -0
- package/dist/segmented/index.d.ts +58 -0
- package/dist/segmented/index.js +179 -0
- package/dist/segmented/style/index.d.ts +48 -0
- package/dist/segmented/style/index.js +176 -0
- package/dist/select/index.d.ts +119 -0
- package/dist/select/index.js +658 -0
- package/dist/select/mergedBuiltinPlacements.js +41 -0
- package/dist/select/style/dropdown.js +119 -0
- package/dist/select/style/index.d.ts +2 -0
- package/dist/select/style/index.js +86 -0
- package/dist/select/style/select-input-customize.js +20 -0
- package/dist/select/style/select-input-multiple.js +99 -0
- package/dist/select/style/select-input.js +237 -0
- package/dist/select/style/token.d.ts +130 -0
- package/dist/select/style/token.js +40 -0
- package/dist/select/useIcons.js +38 -0
- package/dist/select/usePopupRender.js +18 -0
- package/dist/select/useShowArrow.js +16 -0
- package/dist/skeleton/Avatar.d.ts +10 -0
- package/dist/skeleton/Avatar.js +54 -0
- package/dist/skeleton/Button.d.ts +11 -0
- package/dist/skeleton/Button.js +57 -0
- package/dist/skeleton/Element.d.ts +11 -0
- package/dist/skeleton/Element.js +52 -0
- package/dist/skeleton/Image.d.ts +8 -0
- package/dist/skeleton/Image.js +47 -0
- package/dist/skeleton/Input.d.ts +11 -0
- package/dist/skeleton/Input.js +53 -0
- package/dist/skeleton/Node.d.ts +17 -0
- package/dist/skeleton/Node.js +43 -0
- package/dist/skeleton/Paragraph.d.ts +12 -0
- package/dist/skeleton/Paragraph.js +49 -0
- package/dist/skeleton/Skeleton.d.ts +45 -0
- package/dist/skeleton/Skeleton.js +176 -0
- package/dist/skeleton/Title.d.ts +11 -0
- package/dist/skeleton/Title.js +39 -0
- package/dist/skeleton/index.d.ts +6 -0
- package/dist/skeleton/index.js +12 -0
- package/dist/skeleton/style/index.d.ts +42 -0
- package/dist/skeleton/style/index.js +243 -0
- package/dist/slider/Context.js +15 -0
- package/dist/slider/SliderTooltip.js +167 -0
- package/dist/slider/index.d.ts +76 -0
- package/dist/slider/index.js +317 -0
- package/dist/slider/style/index.d.ts +98 -0
- package/dist/slider/style/index.js +262 -0
- package/dist/slider/useRafLock.js +25 -0
- package/dist/space/Addon.d.ts +13 -0
- package/dist/space/Addon.js +53 -0
- package/dist/space/Compact.d.ts +12 -0
- package/dist/space/Compact.js +123 -0
- package/dist/space/Item.js +40 -0
- package/dist/space/context.js +13 -0
- package/dist/space/index.d.ts +39 -0
- package/dist/space/index.js +160 -0
- package/dist/space/style/addon.js +83 -0
- package/dist/space/style/index.d.ts +8 -0
- package/dist/space/style/index.js +43 -0
- package/dist/spin/Indicator/Looper.js +40 -0
- package/dist/spin/Indicator/Progress.js +74 -0
- package/dist/spin/Indicator/index.js +47 -0
- package/dist/spin/index.d.ts +47 -0
- package/dist/spin/index.js +176 -0
- package/dist/spin/style/index.d.ts +28 -0
- package/dist/spin/style/index.js +227 -0
- package/dist/spin/usePercent.js +40 -0
- package/dist/splitter/Panel.js +64 -0
- package/dist/splitter/SplitBar.d.ts +7 -0
- package/dist/splitter/SplitBar.js +261 -0
- package/dist/splitter/Splitter.d.ts +10 -0
- package/dist/splitter/Splitter.js +217 -0
- package/dist/splitter/hooks/sizeUtil.js +49 -0
- package/dist/splitter/hooks/useItems.js +38 -0
- package/dist/splitter/hooks/useResizable.js +59 -0
- package/dist/splitter/hooks/useResize.js +113 -0
- package/dist/splitter/hooks/useSizes.js +72 -0
- package/dist/splitter/index.d.ts +8 -0
- package/dist/splitter/index.js +14 -0
- package/dist/splitter/interface.d.ts +68 -0
- package/dist/splitter/style/index.d.ts +29 -0
- package/dist/splitter/style/index.js +260 -0
- package/dist/statistic/Number.js +64 -0
- package/dist/statistic/Statistic.d.ts +50 -0
- package/dist/statistic/Statistic.js +189 -0
- package/dist/statistic/Timer.d.ts +39 -0
- package/dist/statistic/Timer.js +169 -0
- package/dist/statistic/index.d.ts +29 -0
- package/dist/statistic/index.js +14 -0
- package/dist/statistic/style/index.d.ts +18 -0
- package/dist/statistic/style/index.js +44 -0
- package/dist/statistic/utils.d.ts +13 -0
- package/dist/statistic/utils.js +42 -0
- package/dist/steps/PanelArrow.js +24 -0
- package/dist/steps/ProgressIcon.js +46 -0
- package/dist/steps/context.js +13 -0
- package/dist/steps/index.d.ts +87 -0
- package/dist/steps/index.js +287 -0
- package/dist/steps/style/horizontal.js +24 -0
- package/dist/steps/style/icon.js +41 -0
- package/dist/steps/style/index.d.ts +76 -0
- package/dist/steps/style/index.js +116 -0
- package/dist/steps/style/inline.js +47 -0
- package/dist/steps/style/label-placement.js +82 -0
- package/dist/steps/style/nav.js +89 -0
- package/dist/steps/style/panel.js +101 -0
- package/dist/steps/style/progress-dot.js +38 -0
- package/dist/steps/style/progress.js +70 -0
- package/dist/steps/style/rtl.js +25 -0
- package/dist/steps/style/small.js +20 -0
- package/dist/steps/style/status.js +182 -0
- package/dist/steps/style/util.js +23 -0
- package/dist/steps/style/vertical.js +29 -0
- package/dist/style/compact-item-vertical.js +34 -0
- package/dist/style/compact-item.js +45 -0
- package/dist/style/index.js +138 -0
- package/dist/style/motion/collapse.js +17 -0
- package/dist/style/motion/fade.js +30 -0
- package/dist/style/motion/index.js +7 -0
- package/dist/style/motion/motion.js +44 -0
- package/dist/style/motion/move.js +136 -0
- package/dist/style/motion/slide.js +139 -0
- package/dist/style/motion/zoom.js +176 -0
- package/dist/style/placementArrow.d.ts +13 -0
- package/dist/style/placementArrow.js +144 -0
- package/dist/style/roundedArrow.d.ts +15 -0
- package/dist/style/roundedArrow.js +69 -0
- package/dist/switch/index.d.ts +54 -0
- package/dist/switch/index.js +192 -0
- package/dist/switch/style/index.d.ts +73 -0
- package/dist/switch/style/index.js +247 -0
- package/dist/table/Column.d.ts +20 -0
- package/dist/table/Column.js +195 -0
- package/dist/table/ColumnGroup.d.ts +21 -0
- package/dist/table/ColumnGroup.js +198 -0
- package/dist/table/ExpandIcon.js +28 -0
- package/dist/table/InternalTable.d.ts +84 -0
- package/dist/table/InternalTable.js +604 -0
- package/dist/table/Table.d.ts +26 -0
- package/dist/table/Table.js +254 -0
- package/dist/table/hooks/useContainerWidth.js +18 -0
- package/dist/table/hooks/useFilter/FilterDropdown.js +431 -0
- package/dist/table/hooks/useFilter/FilterSearch.js +21 -0
- package/dist/table/hooks/useFilter/FilterWrapper.js +30 -0
- package/dist/table/hooks/useFilter/index.js +148 -0
- package/dist/table/hooks/useLazyKVMap.js +33 -0
- package/dist/table/hooks/usePagination.js +56 -0
- package/dist/table/hooks/useSelection.d.ts +12 -0
- package/dist/table/hooks/useSelection.js +391 -0
- package/dist/table/hooks/useSorter.js +263 -0
- package/dist/table/hooks/useTitleColumns.js +18 -0
- package/dist/table/index.d.ts +25 -0
- package/dist/table/index.js +31 -0
- package/dist/table/interface.d.ts +199 -0
- package/dist/table/style/bordered.js +81 -0
- package/dist/table/style/ellipsis.js +28 -0
- package/dist/table/style/empty.js +16 -0
- package/dist/table/style/expand.js +91 -0
- package/dist/table/style/filter.js +103 -0
- package/dist/table/style/fixed.js +48 -0
- package/dist/table/style/index.d.ts +175 -0
- package/dist/table/style/index.js +245 -0
- package/dist/table/style/pagination.js +22 -0
- package/dist/table/style/radius.js +28 -0
- package/dist/table/style/rtl.js +28 -0
- package/dist/table/style/selection.js +59 -0
- package/dist/table/style/size.js +34 -0
- package/dist/table/style/sorter.js +66 -0
- package/dist/table/style/sticky.js +39 -0
- package/dist/table/style/summary.js +20 -0
- package/dist/table/style/virtual.js +60 -0
- package/dist/table/util.js +26 -0
- package/dist/table/utils.js +18 -0
- package/dist/tabs/TabPane.d.ts +23 -0
- package/dist/tabs/TabPane.js +13 -0
- package/dist/tabs/hooks/useAnimateConfig.js +26 -0
- package/dist/tabs/hooks/useLegacyItems.js +54 -0
- package/dist/tabs/index.d.ts +94 -0
- package/dist/tabs/index.js +362 -0
- package/dist/tabs/style/index.d.ts +138 -0
- package/dist/tabs/style/index.js +618 -0
- package/dist/tabs/style/motion.js +31 -0
- package/dist/tag/CheckableTag.d.ts +34 -0
- package/dist/tag/CheckableTag.js +79 -0
- package/dist/tag/CheckableTagGroup.d.ts +43 -0
- package/dist/tag/CheckableTagGroup.js +122 -0
- package/dist/tag/hooks/useColor.js +49 -0
- package/dist/tag/index.d.ts +48 -0
- package/dist/tag/index.js +217 -0
- package/dist/tag/style/index.d.ts +23 -0
- package/dist/tag/style/index.js +137 -0
- package/dist/tag/style/presetCmp.js +30 -0
- package/dist/tag/style/statusCmp.js +36 -0
- package/dist/theme/context.d.ts +4 -0
- package/dist/theme/context.js +26 -0
- package/dist/theme/getDesignToken.d.ts +8 -0
- package/dist/theme/getDesignToken.js +17 -0
- package/dist/theme/index.d.ts +39 -0
- package/dist/theme/index.js +30 -0
- package/dist/theme/interface/alias.d.ts +569 -0
- package/dist/theme/interface/components.d.ts +142 -0
- package/dist/theme/interface/cssinjs-utils.d.ts +10 -0
- package/dist/theme/interface/index.d.ts +12 -0
- package/dist/theme/interface/maps/colors.d.ts +547 -0
- package/dist/theme/interface/maps/font.d.ts +135 -0
- package/dist/theme/interface/maps/index.d.ts +29 -0
- package/dist/theme/interface/maps/size.d.ts +91 -0
- package/dist/theme/interface/maps/style.d.ts +45 -0
- package/dist/theme/interface/presetColors.d.ts +9 -0
- package/dist/theme/interface/presetColors.js +19 -0
- package/dist/theme/interface/seeds.d.ts +231 -0
- package/dist/theme/internal.d.ts +12 -0
- package/dist/theme/internal.js +11 -0
- package/dist/theme/themes/compact/genCompactSizeMapToken.js +19 -0
- package/dist/theme/themes/compact/index.js +25 -0
- package/dist/theme/themes/dark/colorAlgorithm.js +12 -0
- package/dist/theme/themes/dark/colors.js +49 -0
- package/dist/theme/themes/dark/index.js +39 -0
- package/dist/theme/themes/default/colorAlgorithm.js +12 -0
- package/dist/theme/themes/default/colors.js +49 -0
- package/dist/theme/themes/default/index.d.ts +8 -0
- package/dist/theme/themes/default/index.js +43 -0
- package/dist/theme/themes/default/theme.d.ts +1 -0
- package/dist/theme/themes/default/theme.js +9 -0
- package/dist/theme/themes/seed.js +58 -0
- package/dist/theme/themes/shared/genColorMapToken.js +77 -0
- package/dist/theme/themes/shared/genCommonMapToken.js +16 -0
- package/dist/theme/themes/shared/genControlHeight.js +13 -0
- package/dist/theme/themes/shared/genFontMapToken.js +40 -0
- package/dist/theme/themes/shared/genFontSizes.js +20 -0
- package/dist/theme/themes/shared/genRadius.js +30 -0
- package/dist/theme/themes/shared/genSizeMapToken.js +18 -0
- package/dist/theme/useToken.d.ts +4 -0
- package/dist/theme/useToken.js +102 -0
- package/dist/theme/util/alias.js +165 -0
- package/dist/theme/util/genPresetColor.d.ts +2 -0
- package/dist/theme/util/genPresetColor.js +23 -0
- package/dist/theme/util/genStyleUtils.d.ts +3 -0
- package/dist/theme/util/genStyleUtils.js +57 -0
- package/dist/theme/util/getAlphaColor.js +33 -0
- package/dist/theme/util/useResetIconStyle.d.ts +2 -0
- package/dist/theme/util/useResetIconStyle.js +21 -0
- package/dist/time-picker/index.d.ts +93 -0
- package/dist/time-picker/index.js +2382 -0
- package/dist/time-picker/locale/ar_EG.js +9 -0
- package/dist/time-picker/locale/az_AZ.js +9 -0
- package/dist/time-picker/locale/bg_BG.js +9 -0
- package/dist/time-picker/locale/bn_BD.js +9 -0
- package/dist/time-picker/locale/by_BY.js +9 -0
- package/dist/time-picker/locale/ca_ES.js +9 -0
- package/dist/time-picker/locale/cs_CZ.js +9 -0
- package/dist/time-picker/locale/da_DK.js +9 -0
- package/dist/time-picker/locale/de_DE.js +9 -0
- package/dist/time-picker/locale/el_GR.js +9 -0
- package/dist/time-picker/locale/en_GB.js +9 -0
- package/dist/time-picker/locale/en_US.js +9 -0
- package/dist/time-picker/locale/es_ES.js +9 -0
- package/dist/time-picker/locale/et_EE.js +9 -0
- package/dist/time-picker/locale/eu_ES.js +9 -0
- package/dist/time-picker/locale/fa_IR.js +9 -0
- package/dist/time-picker/locale/fi_FI.js +9 -0
- package/dist/time-picker/locale/fr_BE.js +9 -0
- package/dist/time-picker/locale/fr_CA.js +9 -0
- package/dist/time-picker/locale/fr_FR.js +9 -0
- package/dist/time-picker/locale/ga_IE.js +9 -0
- package/dist/time-picker/locale/gl_ES.js +9 -0
- package/dist/time-picker/locale/he_IL.js +9 -0
- package/dist/time-picker/locale/hi_IN.js +9 -0
- package/dist/time-picker/locale/hr_HR.js +9 -0
- package/dist/time-picker/locale/hu_HU.js +9 -0
- package/dist/time-picker/locale/id_ID.js +9 -0
- package/dist/time-picker/locale/is_IS.js +9 -0
- package/dist/time-picker/locale/it_IT.js +9 -0
- package/dist/time-picker/locale/ja_JP.js +9 -0
- package/dist/time-picker/locale/ka_GE.js +9 -0
- package/dist/time-picker/locale/kk_KZ.js +9 -0
- package/dist/time-picker/locale/km_KH.js +9 -0
- package/dist/time-picker/locale/kmr_IQ.js +9 -0
- package/dist/time-picker/locale/kn_IN.js +9 -0
- package/dist/time-picker/locale/ko_KR.js +9 -0
- package/dist/time-picker/locale/lt_LT.js +9 -0
- package/dist/time-picker/locale/lv_LV.js +9 -0
- package/dist/time-picker/locale/mk_MK.js +9 -0
- package/dist/time-picker/locale/ml_IN.js +9 -0
- package/dist/time-picker/locale/mn_MN.js +9 -0
- package/dist/time-picker/locale/mr_IN.js +9 -0
- package/dist/time-picker/locale/ms_MY.js +9 -0
- package/dist/time-picker/locale/my_MM.js +9 -0
- package/dist/time-picker/locale/nb_NO.js +9 -0
- package/dist/time-picker/locale/nl_BE.js +9 -0
- package/dist/time-picker/locale/nl_NL.js +9 -0
- package/dist/time-picker/locale/pl_PL.js +9 -0
- package/dist/time-picker/locale/pt_BR.js +9 -0
- package/dist/time-picker/locale/pt_PT.js +9 -0
- package/dist/time-picker/locale/ro_RO.js +9 -0
- package/dist/time-picker/locale/ru_RU.js +9 -0
- package/dist/time-picker/locale/si_LK.js +9 -0
- package/dist/time-picker/locale/sk_SK.js +9 -0
- package/dist/time-picker/locale/sl_SI.js +9 -0
- package/dist/time-picker/locale/sr_RS.js +9 -0
- package/dist/time-picker/locale/sv_SE.js +9 -0
- package/dist/time-picker/locale/ta_IN.js +9 -0
- package/dist/time-picker/locale/th_TH.js +9 -0
- package/dist/time-picker/locale/tk_TK.js +9 -0
- package/dist/time-picker/locale/tr_TR.js +9 -0
- package/dist/time-picker/locale/uk_UA.js +9 -0
- package/dist/time-picker/locale/ur_PK.js +9 -0
- package/dist/time-picker/locale/uz_UZ.js +9 -0
- package/dist/time-picker/locale/vi_VN.js +9 -0
- package/dist/time-picker/locale/zh_CN.js +9 -0
- package/dist/time-picker/locale/zh_TW.js +9 -0
- package/dist/timeline/Timeline.d.ts +47 -0
- package/dist/timeline/Timeline.js +90 -0
- package/dist/timeline/TimelineItem.d.ts +20 -0
- package/dist/timeline/TimelineItem.js +103 -0
- package/dist/timeline/TimelineItemList.js +146 -0
- package/dist/timeline/index.d.ts +2 -0
- package/dist/timeline/index.js +7 -0
- package/dist/timeline/style/index.d.ts +33 -0
- package/dist/timeline/style/index.js +165 -0
- package/dist/tooltip/PurePanel.d.ts +9 -0
- package/dist/tooltip/PurePanel.js +160 -0
- package/dist/tooltip/UniqueProvider/MotionContent.js +20 -0
- package/dist/tooltip/UniqueProvider/index.d.ts +6 -0
- package/dist/tooltip/UniqueProvider/index.js +45 -0
- package/dist/tooltip/hooks/useMergedArrow.js +19 -0
- package/dist/tooltip/index.d.ts +95 -0
- package/dist/tooltip/index.js +271 -0
- package/dist/tooltip/style/index.d.ts +15 -0
- package/dist/tooltip/style/index.js +112 -0
- package/dist/tooltip/util.js +26 -0
- package/dist/tour/index.d.ts +11 -0
- package/dist/tour/index.js +266 -0
- package/dist/tour/interface.d.ts +90 -0
- package/dist/tour/panelRender.js +163 -0
- package/dist/tour/style/index.d.ts +30 -0
- package/dist/tour/style/index.js +160 -0
- package/dist/transfer/Actions.d.ts +21 -0
- package/dist/transfer/Actions.js +144 -0
- package/dist/transfer/ListBody.js +281 -0
- package/dist/transfer/ListItem.js +107 -0
- package/dist/transfer/Section.d.ts +7 -0
- package/dist/transfer/Section.js +408 -0
- package/dist/transfer/Transfer.d.ts +10 -0
- package/dist/transfer/Transfer.js +438 -0
- package/dist/transfer/hooks/useData.js +42 -0
- package/dist/transfer/hooks/useSelection.js +43 -0
- package/dist/transfer/index.d.ts +16 -0
- package/dist/transfer/index.js +21 -0
- package/dist/transfer/interface.d.ts +161 -0
- package/dist/transfer/interface.js +9 -0
- package/dist/transfer/search.d.ts +24 -0
- package/dist/transfer/search.js +46 -0
- package/dist/transfer/style/index.d.ts +38 -0
- package/dist/transfer/style/index.js +213 -0
- package/dist/tree/DirectoryTree.d.ts +17 -0
- package/dist/tree/DirectoryTree.js +408 -0
- package/dist/tree/Tree.d.ts +173 -0
- package/dist/tree/Tree.js +420 -0
- package/dist/tree/index.d.ts +12 -0
- package/dist/tree/index.js +17 -0
- package/dist/tree/style/directory.js +34 -0
- package/dist/tree/style/index.d.ts +51 -0
- package/dist/tree/style/index.js +264 -0
- package/dist/tree/utils/dictUtil.js +54 -0
- package/dist/tree/utils/dropIndicator.js +33 -0
- package/dist/tree/utils/iconUtil.js +72 -0
- package/dist/tree-select/index.d.ts +98 -0
- package/dist/tree-select/index.js +744 -0
- package/dist/tree-select/style/index.d.ts +8 -0
- package/dist/tree-select/style/index.js +35 -0
- package/dist/typography/Base/CopyBtn.js +108 -0
- package/dist/typography/Base/Ellipsis.js +240 -0
- package/dist/typography/Base/EllipsisTooltip.js +32 -0
- package/dist/typography/Base/index.js +453 -0
- package/dist/typography/Base/util.js +33 -0
- package/dist/typography/Editable.js +146 -0
- package/dist/typography/Link.d.ts +16 -0
- package/dist/typography/Link.js +147 -0
- package/dist/typography/Paragraph.d.ts +11 -0
- package/dist/typography/Paragraph.js +128 -0
- package/dist/typography/Text.d.ts +13 -0
- package/dist/typography/Text.js +136 -0
- package/dist/typography/Title.d.ts +14 -0
- package/dist/typography/Title.js +144 -0
- package/dist/typography/Typography.d.ts +11 -0
- package/dist/typography/Typography.js +66 -0
- package/dist/typography/hooks/useCopyClick.js +60 -0
- package/dist/typography/hooks/useMergedConfig.js +16 -0
- package/dist/typography/hooks/usePrevious.js +17 -0
- package/dist/typography/hooks/useTooltipProps.js +22 -0
- package/dist/typography/index.d.ts +30 -0
- package/dist/typography/index.js +27 -0
- package/dist/typography/interface.d.ts +95 -0
- package/dist/typography/style/index.d.ts +19 -0
- package/dist/typography/style/index.js +78 -0
- package/dist/typography/style/mixins.js +189 -0
- package/dist/upload/Dragger.d.ts +13 -0
- package/dist/upload/Dragger.js +194 -0
- package/dist/upload/Upload.d.ts +12 -0
- package/dist/upload/Upload.js +491 -0
- package/dist/upload/UploadList/ListItem.js +233 -0
- package/dist/upload/UploadList/index.js +263 -0
- package/dist/upload/index.d.ts +17 -0
- package/dist/upload/index.js +17 -0
- package/dist/upload/interface.d.ts +141 -0
- package/dist/upload/style/dragger.js +58 -0
- package/dist/upload/style/index.d.ts +18 -0
- package/dist/upload/style/index.js +53 -0
- package/dist/upload/style/list.js +80 -0
- package/dist/upload/style/motion.js +41 -0
- package/dist/upload/style/picture.js +183 -0
- package/dist/upload/style/rtl.js +9 -0
- package/dist/upload/utils.js +99 -0
- package/dist/version/index.js +7 -0
- package/dist/watermark/context.js +37 -0
- package/dist/watermark/index.d.ts +26 -0
- package/dist/watermark/index.js +269 -0
- package/dist/watermark/useClips.js +92 -0
- package/dist/watermark/useRafDebounce.js +20 -0
- package/dist/watermark/useSingletonCache.js +22 -0
- package/dist/watermark/useWatermark.js +41 -0
- package/dist/watermark/utils.js +22 -0
- package/global.d.ts +117 -0
- package/package.json +92 -4
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { genFocusStyle, resetComponent } from "../../style/index.js";
|
|
2
|
+
import { genStyleHooks } from "../../theme/util/genStyleUtils.js";
|
|
3
|
+
import { mergeToken } from "../../theme/internal.js";
|
|
4
|
+
import { getArrowToken } from "../../style/roundedArrow.js";
|
|
5
|
+
import getArrowStyle, { getArrowOffsetToken } from "../../style/placementArrow.js";
|
|
6
|
+
import { initMoveMotion } from "../../style/motion/move.js";
|
|
7
|
+
import { initSlideMotion, slideDownIn, slideDownOut, slideUpIn, slideUpOut } from "../../style/motion/slide.js";
|
|
8
|
+
import { initZoomMotion } from "../../style/motion/zoom.js";
|
|
9
|
+
import "../../style/motion/index.js";
|
|
10
|
+
import status_default from "./status.js";
|
|
11
|
+
import { unit } from "@antdv-next/cssinjs";
|
|
12
|
+
|
|
13
|
+
//#region src/dropdown/style/index.ts
|
|
14
|
+
const genBaseStyle = (token) => {
|
|
15
|
+
const { componentCls, menuCls, zIndexPopup, dropdownArrowDistance, sizePopupArrow, antCls, iconCls, motionDurationMid, paddingBlock, fontSize, dropdownEdgeChildPadding, colorTextDisabled, fontSizeIcon, controlPaddingHorizontal, colorBgElevated } = token;
|
|
16
|
+
return [
|
|
17
|
+
{ [componentCls]: {
|
|
18
|
+
"position": "absolute",
|
|
19
|
+
"top": -9999,
|
|
20
|
+
"left": {
|
|
21
|
+
_skip_check_: true,
|
|
22
|
+
value: -9999
|
|
23
|
+
},
|
|
24
|
+
"zIndex": zIndexPopup,
|
|
25
|
+
"display": "block",
|
|
26
|
+
"&::before": {
|
|
27
|
+
position: "absolute",
|
|
28
|
+
insetBlock: token.calc(sizePopupArrow).div(2).sub(dropdownArrowDistance).equal(),
|
|
29
|
+
zIndex: -9999,
|
|
30
|
+
opacity: 1e-4,
|
|
31
|
+
content: "\"\""
|
|
32
|
+
},
|
|
33
|
+
"&-menu-vertical": {
|
|
34
|
+
maxHeight: "100vh",
|
|
35
|
+
overflowY: "auto"
|
|
36
|
+
},
|
|
37
|
+
[`&-trigger${antCls}-btn`]: { [`& > ${iconCls}-down, & > ${antCls}-btn-icon > ${iconCls}-down`]: { fontSize: fontSizeIcon } },
|
|
38
|
+
[`${componentCls}-wrap`]: {
|
|
39
|
+
position: "relative",
|
|
40
|
+
[`${antCls}-btn > ${iconCls}-down`]: { fontSize: fontSizeIcon },
|
|
41
|
+
[`${iconCls}-down::before`]: { transition: `transform ${motionDurationMid}` }
|
|
42
|
+
},
|
|
43
|
+
[`${componentCls}-wrap-open`]: { [`${iconCls}-down::before`]: { transform: `rotate(180deg)` } },
|
|
44
|
+
[`
|
|
45
|
+
&-hidden,
|
|
46
|
+
&-menu-hidden,
|
|
47
|
+
&-menu-submenu-hidden
|
|
48
|
+
`]: { display: "none" },
|
|
49
|
+
[`&${antCls}-slide-down-enter${antCls}-slide-down-enter-active${componentCls}-placement-bottomLeft,
|
|
50
|
+
&${antCls}-slide-down-appear${antCls}-slide-down-appear-active${componentCls}-placement-bottomLeft,
|
|
51
|
+
&${antCls}-slide-down-enter${antCls}-slide-down-enter-active${componentCls}-placement-bottom,
|
|
52
|
+
&${antCls}-slide-down-appear${antCls}-slide-down-appear-active${componentCls}-placement-bottom,
|
|
53
|
+
&${antCls}-slide-down-enter${antCls}-slide-down-enter-active${componentCls}-placement-bottomRight,
|
|
54
|
+
&${antCls}-slide-down-appear${antCls}-slide-down-appear-active${componentCls}-placement-bottomRight`]: { animationName: slideUpIn },
|
|
55
|
+
[`&${antCls}-slide-up-enter${antCls}-slide-up-enter-active${componentCls}-placement-topLeft,
|
|
56
|
+
&${antCls}-slide-up-appear${antCls}-slide-up-appear-active${componentCls}-placement-topLeft,
|
|
57
|
+
&${antCls}-slide-up-enter${antCls}-slide-up-enter-active${componentCls}-placement-top,
|
|
58
|
+
&${antCls}-slide-up-appear${antCls}-slide-up-appear-active${componentCls}-placement-top,
|
|
59
|
+
&${antCls}-slide-up-enter${antCls}-slide-up-enter-active${componentCls}-placement-topRight,
|
|
60
|
+
&${antCls}-slide-up-appear${antCls}-slide-up-appear-active${componentCls}-placement-topRight`]: { animationName: slideDownIn },
|
|
61
|
+
[`&${antCls}-slide-down-leave${antCls}-slide-down-leave-active${componentCls}-placement-bottomLeft,
|
|
62
|
+
&${antCls}-slide-down-leave${antCls}-slide-down-leave-active${componentCls}-placement-bottom,
|
|
63
|
+
&${antCls}-slide-down-leave${antCls}-slide-down-leave-active${componentCls}-placement-bottomRight`]: { animationName: slideUpOut },
|
|
64
|
+
[`&${antCls}-slide-up-leave${antCls}-slide-up-leave-active${componentCls}-placement-topLeft,
|
|
65
|
+
&${antCls}-slide-up-leave${antCls}-slide-up-leave-active${componentCls}-placement-top,
|
|
66
|
+
&${antCls}-slide-up-leave${antCls}-slide-up-leave-active${componentCls}-placement-topRight`]: { animationName: slideDownOut }
|
|
67
|
+
} },
|
|
68
|
+
getArrowStyle(token, colorBgElevated, { arrowPlacement: {
|
|
69
|
+
top: true,
|
|
70
|
+
bottom: true
|
|
71
|
+
} }),
|
|
72
|
+
{
|
|
73
|
+
[`${componentCls} ${menuCls}`]: {
|
|
74
|
+
position: "relative",
|
|
75
|
+
margin: 0
|
|
76
|
+
},
|
|
77
|
+
[`${menuCls}-submenu-popup`]: {
|
|
78
|
+
"position": "absolute",
|
|
79
|
+
"zIndex": zIndexPopup,
|
|
80
|
+
"background": "transparent",
|
|
81
|
+
"boxShadow": "none",
|
|
82
|
+
"transformOrigin": "0 0",
|
|
83
|
+
"ul, li": {
|
|
84
|
+
listStyle: "none",
|
|
85
|
+
margin: 0
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
[`${componentCls}, ${componentCls}-menu-submenu`]: {
|
|
89
|
+
...resetComponent(token),
|
|
90
|
+
[menuCls]: {
|
|
91
|
+
"padding": dropdownEdgeChildPadding,
|
|
92
|
+
"listStyleType": "none",
|
|
93
|
+
"backgroundColor": colorBgElevated,
|
|
94
|
+
"backgroundClip": "padding-box",
|
|
95
|
+
"borderRadius": token.borderRadiusLG,
|
|
96
|
+
"outline": "none",
|
|
97
|
+
"boxShadow": token.boxShadowSecondary,
|
|
98
|
+
...genFocusStyle(token),
|
|
99
|
+
"&:empty": {
|
|
100
|
+
padding: 0,
|
|
101
|
+
boxShadow: "none"
|
|
102
|
+
},
|
|
103
|
+
[`${menuCls}-item-group-title`]: {
|
|
104
|
+
padding: `${unit(paddingBlock)} ${unit(controlPaddingHorizontal)}`,
|
|
105
|
+
color: token.colorTextDescription,
|
|
106
|
+
transition: `all ${motionDurationMid}`
|
|
107
|
+
},
|
|
108
|
+
[`${menuCls}-item`]: {
|
|
109
|
+
position: "relative",
|
|
110
|
+
display: "flex",
|
|
111
|
+
alignItems: "center"
|
|
112
|
+
},
|
|
113
|
+
[`${menuCls}-item-icon`]: {
|
|
114
|
+
minWidth: fontSize,
|
|
115
|
+
marginInlineEnd: token.marginXS,
|
|
116
|
+
fontSize: token.fontSizeSM
|
|
117
|
+
},
|
|
118
|
+
[`${menuCls}-title-content`]: {
|
|
119
|
+
"flex": "auto",
|
|
120
|
+
"&-with-extra": {
|
|
121
|
+
display: "inline-flex",
|
|
122
|
+
alignItems: "center",
|
|
123
|
+
width: "100%"
|
|
124
|
+
},
|
|
125
|
+
"> a": {
|
|
126
|
+
"color": "inherit",
|
|
127
|
+
"transition": `all ${motionDurationMid}`,
|
|
128
|
+
"&:hover": { color: "inherit" },
|
|
129
|
+
"&::after": {
|
|
130
|
+
position: "absolute",
|
|
131
|
+
inset: 0,
|
|
132
|
+
content: "\"\""
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
[`${menuCls}-item-extra`]: {
|
|
136
|
+
paddingInlineStart: token.padding,
|
|
137
|
+
marginInlineStart: "auto",
|
|
138
|
+
fontSize: token.fontSizeSM,
|
|
139
|
+
color: token.colorTextDescription
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
[`${menuCls}-item, ${menuCls}-submenu-title`]: {
|
|
143
|
+
"display": "flex",
|
|
144
|
+
"margin": 0,
|
|
145
|
+
"padding": `${unit(paddingBlock)} ${unit(controlPaddingHorizontal)}`,
|
|
146
|
+
"color": token.colorText,
|
|
147
|
+
"fontWeight": "normal",
|
|
148
|
+
fontSize,
|
|
149
|
+
"lineHeight": token.lineHeight,
|
|
150
|
+
"cursor": "pointer",
|
|
151
|
+
"transition": `all ${motionDurationMid}`,
|
|
152
|
+
"borderRadius": token.borderRadiusSM,
|
|
153
|
+
"&:hover, &-active": { backgroundColor: token.controlItemBgHover },
|
|
154
|
+
...genFocusStyle(token),
|
|
155
|
+
"&-selected": {
|
|
156
|
+
"color": token.colorPrimary,
|
|
157
|
+
"backgroundColor": token.controlItemBgActive,
|
|
158
|
+
"&:hover, &-active": { backgroundColor: token.controlItemBgActiveHover }
|
|
159
|
+
},
|
|
160
|
+
"&-disabled": {
|
|
161
|
+
"color": colorTextDisabled,
|
|
162
|
+
"cursor": "not-allowed",
|
|
163
|
+
"&:hover": {
|
|
164
|
+
color: colorTextDisabled,
|
|
165
|
+
backgroundColor: colorBgElevated,
|
|
166
|
+
cursor: "not-allowed"
|
|
167
|
+
},
|
|
168
|
+
"a": { pointerEvents: "none" }
|
|
169
|
+
},
|
|
170
|
+
"&-divider": {
|
|
171
|
+
height: 1,
|
|
172
|
+
margin: `${unit(token.marginXXS)} 0`,
|
|
173
|
+
overflow: "hidden",
|
|
174
|
+
lineHeight: 0,
|
|
175
|
+
backgroundColor: token.colorSplit
|
|
176
|
+
},
|
|
177
|
+
[`${componentCls}-menu-submenu-expand-icon`]: {
|
|
178
|
+
position: "absolute",
|
|
179
|
+
insetInlineEnd: token.paddingXS,
|
|
180
|
+
[`${componentCls}-menu-submenu-arrow-icon`]: {
|
|
181
|
+
marginInlineEnd: "0 !important",
|
|
182
|
+
color: token.colorIcon,
|
|
183
|
+
fontSize: fontSizeIcon,
|
|
184
|
+
fontStyle: "normal"
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
[`${menuCls}-item-group-list`]: {
|
|
189
|
+
margin: `0 ${unit(token.marginXS)}`,
|
|
190
|
+
padding: 0,
|
|
191
|
+
listStyle: "none"
|
|
192
|
+
},
|
|
193
|
+
[`${menuCls}-submenu-title`]: { paddingInlineEnd: token.calc(controlPaddingHorizontal).add(token.fontSizeSM).equal() },
|
|
194
|
+
[`${menuCls}-submenu-vertical`]: { position: "relative" },
|
|
195
|
+
[`${menuCls}-submenu${menuCls}-submenu-disabled ${componentCls}-menu-submenu-title`]: { [`&, ${componentCls}-menu-submenu-arrow-icon`]: {
|
|
196
|
+
color: colorTextDisabled,
|
|
197
|
+
backgroundColor: colorBgElevated,
|
|
198
|
+
cursor: "not-allowed"
|
|
199
|
+
} },
|
|
200
|
+
[`${menuCls}-submenu-selected ${componentCls}-menu-submenu-title`]: { color: token.colorPrimary }
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
[
|
|
205
|
+
initSlideMotion(token, "slide-up"),
|
|
206
|
+
initSlideMotion(token, "slide-down"),
|
|
207
|
+
initMoveMotion(token, "move-up"),
|
|
208
|
+
initMoveMotion(token, "move-down"),
|
|
209
|
+
initZoomMotion(token, "zoom-big")
|
|
210
|
+
]
|
|
211
|
+
];
|
|
212
|
+
};
|
|
213
|
+
const prepareComponentToken = (token) => ({
|
|
214
|
+
zIndexPopup: token.zIndexPopupBase + 50,
|
|
215
|
+
paddingBlock: (token.controlHeight - token.fontSize * token.lineHeight) / 2,
|
|
216
|
+
...getArrowOffsetToken({
|
|
217
|
+
contentRadius: token.borderRadiusLG,
|
|
218
|
+
limitVerticalRadius: true
|
|
219
|
+
}),
|
|
220
|
+
...getArrowToken(token)
|
|
221
|
+
});
|
|
222
|
+
var style_default = genStyleHooks("Dropdown", (token) => {
|
|
223
|
+
const { marginXXS, sizePopupArrow, paddingXXS, componentCls } = token;
|
|
224
|
+
const dropdownToken = mergeToken(token, {
|
|
225
|
+
menuCls: `${componentCls}-menu`,
|
|
226
|
+
dropdownArrowDistance: token.calc(sizePopupArrow).div(2).add(marginXXS).equal(),
|
|
227
|
+
dropdownEdgeChildPadding: paddingXXS
|
|
228
|
+
});
|
|
229
|
+
return [genBaseStyle(dropdownToken), status_default(dropdownToken)];
|
|
230
|
+
}, prepareComponentToken, { resetStyle: false });
|
|
231
|
+
|
|
232
|
+
//#endregion
|
|
233
|
+
export { style_default as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/dropdown/style/status.ts
|
|
2
|
+
const genStatusStyle = (token) => {
|
|
3
|
+
const { componentCls, menuCls, colorError, colorTextLightSolid } = token;
|
|
4
|
+
const itemCls = `${menuCls}-item`;
|
|
5
|
+
return { [`${componentCls}, ${componentCls}-menu-submenu`]: { [`${menuCls} ${itemCls}`]: { [`&${itemCls}-danger:not(${itemCls}-disabled)`]: {
|
|
6
|
+
"color": colorError,
|
|
7
|
+
"&:hover": {
|
|
8
|
+
color: colorTextLightSolid,
|
|
9
|
+
backgroundColor: colorError
|
|
10
|
+
}
|
|
11
|
+
} } } };
|
|
12
|
+
};
|
|
13
|
+
var status_default = genStatusStyle;
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { status_default as default };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import useToken from "../theme/useToken.js";
|
|
2
|
+
import "../theme/internal.js";
|
|
3
|
+
import useLocale_default from "../locale/useLocale.js";
|
|
4
|
+
import { computed, createVNode, defineComponent } from "vue";
|
|
5
|
+
import { FastColor } from "@ant-design/fast-color";
|
|
6
|
+
|
|
7
|
+
//#region src/empty/empty.tsx
|
|
8
|
+
const Empty = /* @__PURE__ */ defineComponent(() => {
|
|
9
|
+
const [, token] = useToken();
|
|
10
|
+
const [locale] = useLocale_default("Empty");
|
|
11
|
+
const bgColor = computed(() => new FastColor(token.value.colorBgBase));
|
|
12
|
+
return () => {
|
|
13
|
+
const themeStyle = bgColor.value.toHsl().l < .5 ? { opacity: .65 } : {};
|
|
14
|
+
return createVNode("svg", {
|
|
15
|
+
"style": themeStyle,
|
|
16
|
+
"width": "184",
|
|
17
|
+
"height": "152",
|
|
18
|
+
"viewBox": "0 0 184 152",
|
|
19
|
+
"xmlns": "http://www.w3.org/2000/svg"
|
|
20
|
+
}, [createVNode("title", null, [locale?.value?.description || "Empty"]), createVNode("g", {
|
|
21
|
+
"fill": "none",
|
|
22
|
+
"fill-rule": "evenodd"
|
|
23
|
+
}, [
|
|
24
|
+
createVNode("g", { "transform": "translate(24 31.67)" }, [
|
|
25
|
+
createVNode("ellipse", {
|
|
26
|
+
"fill-opacity": ".8",
|
|
27
|
+
"fill": "#F5F5F7",
|
|
28
|
+
"cx": "67.797",
|
|
29
|
+
"cy": "106.89",
|
|
30
|
+
"rx": "67.797",
|
|
31
|
+
"ry": "12.668"
|
|
32
|
+
}, null),
|
|
33
|
+
createVNode("path", {
|
|
34
|
+
"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",
|
|
35
|
+
"fill": "#AEB8C2"
|
|
36
|
+
}, null),
|
|
37
|
+
createVNode("path", {
|
|
38
|
+
"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",
|
|
39
|
+
"fill": "url(#linearGradient-1)",
|
|
40
|
+
"transform": "translate(13.56)"
|
|
41
|
+
}, null),
|
|
42
|
+
createVNode("path", {
|
|
43
|
+
"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",
|
|
44
|
+
"fill": "#F5F5F7"
|
|
45
|
+
}, null),
|
|
46
|
+
createVNode("path", {
|
|
47
|
+
"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",
|
|
48
|
+
"fill": "#DCE0E6"
|
|
49
|
+
}, null)
|
|
50
|
+
]),
|
|
51
|
+
createVNode("path", {
|
|
52
|
+
"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",
|
|
53
|
+
"fill": "#DCE0E6"
|
|
54
|
+
}, null),
|
|
55
|
+
createVNode("g", {
|
|
56
|
+
"transform": "translate(149.65 15.383)",
|
|
57
|
+
"fill": "#FFF"
|
|
58
|
+
}, [createVNode("ellipse", {
|
|
59
|
+
"cx": "20.654",
|
|
60
|
+
"cy": "3.167",
|
|
61
|
+
"rx": "2.849",
|
|
62
|
+
"ry": "2.815"
|
|
63
|
+
}, null), createVNode("path", { "d": "M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z" }, null)])
|
|
64
|
+
])]);
|
|
65
|
+
};
|
|
66
|
+
}, { name: "AEmptyImage" });
|
|
67
|
+
var empty_default = Empty;
|
|
68
|
+
|
|
69
|
+
//#endregion
|
|
70
|
+
export { empty_default as default };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EmptyEmit, VueNode } from "../_util/type.js";
|
|
2
|
+
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
|
+
import "../_util/hooks/index.js";
|
|
4
|
+
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
5
|
+
import * as vue25 from "vue";
|
|
6
|
+
import { SlotsType } from "vue";
|
|
7
|
+
import * as vue_jsx_runtime0 from "vue/jsx-runtime";
|
|
8
|
+
|
|
9
|
+
//#region src/empty/index.d.ts
|
|
10
|
+
interface TransferLocale {
|
|
11
|
+
description: string;
|
|
12
|
+
}
|
|
13
|
+
declare const defaultEmptyImg: vue_jsx_runtime0.JSX.Element;
|
|
14
|
+
declare const simpleEmptyImg: vue_jsx_runtime0.JSX.Element;
|
|
15
|
+
type EmptySemanticName = 'root' | 'image' | 'description' | 'footer';
|
|
16
|
+
type EmptyClassNamesType = SemanticClassNamesType<EmptyProps, EmptySemanticName>;
|
|
17
|
+
type EmptyStylesType = SemanticStylesType<EmptyProps, EmptySemanticName>;
|
|
18
|
+
interface EmptyProps extends ComponentBaseProps {
|
|
19
|
+
classes?: EmptyClassNamesType;
|
|
20
|
+
styles?: EmptyStylesType;
|
|
21
|
+
image?: VueNode;
|
|
22
|
+
description?: VueNode;
|
|
23
|
+
}
|
|
24
|
+
interface EmptySlots {
|
|
25
|
+
image: () => any;
|
|
26
|
+
description: () => any;
|
|
27
|
+
default: () => any;
|
|
28
|
+
}
|
|
29
|
+
declare const Empty: vue25.DefineSetupFnComponent<EmptyProps, EmptyEmit, SlotsType<EmptySlots>, EmptyProps & {
|
|
30
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
31
|
+
}, vue25.PublicProps>;
|
|
32
|
+
declare const _default: typeof Empty & {
|
|
33
|
+
PRESENTED_IMAGE_DEFAULT: typeof defaultEmptyImg;
|
|
34
|
+
PRESENTED_IMAGE_SIMPLE: typeof simpleEmptyImg;
|
|
35
|
+
};
|
|
36
|
+
//#endregion
|
|
37
|
+
export { EmptyProps, TransferLocale, _default };
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { useComponentBaseConfig, useComponentConfig } from "../config-provider/context.js";
|
|
2
|
+
import { pureAttrs, useMergeSemantic, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
3
|
+
import "../_util/hooks/index.js";
|
|
4
|
+
import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
|
|
5
|
+
import useLocale_default from "../locale/useLocale.js";
|
|
6
|
+
import empty_default from "./empty.js";
|
|
7
|
+
import simple_default from "./simple.js";
|
|
8
|
+
import style_default from "./style/index.js";
|
|
9
|
+
import { computed, createVNode, defineComponent, mergeDefaults, mergeProps } from "vue";
|
|
10
|
+
import { classNames } from "@v-c/util";
|
|
11
|
+
import { filterEmpty } from "@v-c/util/dist/props-util";
|
|
12
|
+
|
|
13
|
+
//#region src/empty/index.tsx
|
|
14
|
+
const defaultEmptyImg = createVNode(empty_default, null, null);
|
|
15
|
+
const simpleEmptyImg = createVNode(simple_default, null, null);
|
|
16
|
+
const Empty = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
17
|
+
const componentConfig = useComponentConfig("empty");
|
|
18
|
+
const { prefixCls, direction, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles } = useComponentBaseConfig("empty", props);
|
|
19
|
+
const { classes, styles } = toPropsRefs(props, "classes", "styles");
|
|
20
|
+
const [hashId, cssVarCls] = style_default(prefixCls);
|
|
21
|
+
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classes), useToArr(contextStyles, styles), useToProps(computed(() => props)));
|
|
22
|
+
const [locale] = useLocale_default("Empty");
|
|
23
|
+
return () => {
|
|
24
|
+
const des = getSlotPropsFnRun(slots, props, "description") ?? locale?.value?.description;
|
|
25
|
+
const alt = typeof des === "string" ? des : "empty";
|
|
26
|
+
const mergedImage = getSlotPropsFnRun(slots, props, "image") ?? componentConfig.value?.image ?? defaultEmptyImg;
|
|
27
|
+
let imageNode = null;
|
|
28
|
+
if (typeof mergedImage === "string") imageNode = createVNode("img", {
|
|
29
|
+
"draggable": false,
|
|
30
|
+
"alt": alt,
|
|
31
|
+
"src": mergedImage
|
|
32
|
+
}, null);
|
|
33
|
+
else imageNode = mergedImage;
|
|
34
|
+
const children = filterEmpty(slots?.default?.() ?? []);
|
|
35
|
+
return createVNode("div", mergeProps({
|
|
36
|
+
"class": classNames(hashId.value, cssVarCls.value, prefixCls.value, contextClassName.value, {
|
|
37
|
+
[`${prefixCls.value}-normal`]: mergedImage === simpleEmptyImg,
|
|
38
|
+
[`${prefixCls.value}-rtl`]: direction.value === "rtl"
|
|
39
|
+
}, props.rootClass, mergedClassNames.value.root, attrs.class),
|
|
40
|
+
"style": [
|
|
41
|
+
mergedStyles.value.root,
|
|
42
|
+
contextStyle.value,
|
|
43
|
+
attrs.style
|
|
44
|
+
]
|
|
45
|
+
}, pureAttrs(attrs)), [
|
|
46
|
+
createVNode("div", {
|
|
47
|
+
"class": classNames(`${prefixCls.value}-image`, mergedClassNames.value.image),
|
|
48
|
+
"style": mergedStyles.value.image
|
|
49
|
+
}, [imageNode]),
|
|
50
|
+
des && createVNode("div", {
|
|
51
|
+
"class": classNames(`${prefixCls.value}-description`, mergedClassNames.value.description),
|
|
52
|
+
"style": mergedStyles.value.description
|
|
53
|
+
}, [des]),
|
|
54
|
+
!!children.length && createVNode("div", {
|
|
55
|
+
"class": classNames(`${prefixCls.value}-footer`, mergedClassNames.value.footer),
|
|
56
|
+
"style": mergedStyles.value.footer
|
|
57
|
+
}, [children])
|
|
58
|
+
]);
|
|
59
|
+
};
|
|
60
|
+
}, {
|
|
61
|
+
props: /* @__PURE__ */ mergeDefaults({
|
|
62
|
+
classes: {
|
|
63
|
+
type: [Object, Function],
|
|
64
|
+
required: false
|
|
65
|
+
},
|
|
66
|
+
styles: {
|
|
67
|
+
type: [Object, Function],
|
|
68
|
+
required: false
|
|
69
|
+
},
|
|
70
|
+
image: {
|
|
71
|
+
type: [
|
|
72
|
+
Function,
|
|
73
|
+
Boolean,
|
|
74
|
+
String,
|
|
75
|
+
Number,
|
|
76
|
+
null,
|
|
77
|
+
Object
|
|
78
|
+
],
|
|
79
|
+
required: false
|
|
80
|
+
},
|
|
81
|
+
description: {
|
|
82
|
+
type: [
|
|
83
|
+
Function,
|
|
84
|
+
Boolean,
|
|
85
|
+
String,
|
|
86
|
+
Number,
|
|
87
|
+
null,
|
|
88
|
+
Object
|
|
89
|
+
],
|
|
90
|
+
required: false
|
|
91
|
+
},
|
|
92
|
+
rootClass: {
|
|
93
|
+
type: String,
|
|
94
|
+
required: false
|
|
95
|
+
},
|
|
96
|
+
prefixCls: {
|
|
97
|
+
type: String,
|
|
98
|
+
required: false
|
|
99
|
+
}
|
|
100
|
+
}, {
|
|
101
|
+
image: void 0,
|
|
102
|
+
description: void 0
|
|
103
|
+
}),
|
|
104
|
+
name: "AEmpty"
|
|
105
|
+
});
|
|
106
|
+
Empty.PRESENTED_IMAGE_DEFAULT = defaultEmptyImg;
|
|
107
|
+
Empty.PRESENTED_IMAGE_SIMPLE = simpleEmptyImg;
|
|
108
|
+
Empty.install = (app) => {
|
|
109
|
+
app.component(Empty.name, Empty);
|
|
110
|
+
};
|
|
111
|
+
var empty_default$1 = Empty;
|
|
112
|
+
|
|
113
|
+
//#endregion
|
|
114
|
+
export { empty_default$1 as default };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import useToken from "../theme/useToken.js";
|
|
2
|
+
import "../theme/internal.js";
|
|
3
|
+
import useLocale_default from "../locale/useLocale.js";
|
|
4
|
+
import { computed, createVNode, defineComponent } from "vue";
|
|
5
|
+
import { FastColor } from "@ant-design/fast-color";
|
|
6
|
+
|
|
7
|
+
//#region src/empty/simple.tsx
|
|
8
|
+
const Simple = /* @__PURE__ */ defineComponent(() => {
|
|
9
|
+
const [, token] = useToken();
|
|
10
|
+
const [locale] = useLocale_default("Empty");
|
|
11
|
+
const colors = computed(() => {
|
|
12
|
+
const { colorFill, colorFillTertiary, colorFillQuaternary, colorBgContainer } = token.value;
|
|
13
|
+
return {
|
|
14
|
+
borderColor: new FastColor(colorFill).onBackground(colorBgContainer).toHexString(),
|
|
15
|
+
shadowColor: new FastColor(colorFillTertiary).onBackground(colorBgContainer).toHexString(),
|
|
16
|
+
contentColor: new FastColor(colorFillQuaternary).onBackground(colorBgContainer).toHexString()
|
|
17
|
+
};
|
|
18
|
+
});
|
|
19
|
+
return () => {
|
|
20
|
+
const { borderColor, shadowColor, contentColor } = colors.value;
|
|
21
|
+
return createVNode("svg", {
|
|
22
|
+
"width": "64",
|
|
23
|
+
"height": "41",
|
|
24
|
+
"viewBox": "0 0 64 41",
|
|
25
|
+
"xmlns": "http://www.w3.org/2000/svg"
|
|
26
|
+
}, [createVNode("title", null, [locale?.value?.description || "Empty"]), createVNode("g", {
|
|
27
|
+
"transform": "translate(0 1)",
|
|
28
|
+
"fill": "none",
|
|
29
|
+
"fill-rule": "evenodd"
|
|
30
|
+
}, [createVNode("ellipse", {
|
|
31
|
+
"fill": shadowColor,
|
|
32
|
+
"cx": "32",
|
|
33
|
+
"cy": "33",
|
|
34
|
+
"rx": "32",
|
|
35
|
+
"ry": "7"
|
|
36
|
+
}, null), createVNode("g", {
|
|
37
|
+
"fill-rule": "nonzero",
|
|
38
|
+
"stroke": borderColor
|
|
39
|
+
}, [createVNode("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" }, null), createVNode("path", {
|
|
40
|
+
"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",
|
|
41
|
+
"fill": contentColor
|
|
42
|
+
}, null)])])]);
|
|
43
|
+
};
|
|
44
|
+
}, { name: "AEmptySimple" });
|
|
45
|
+
var simple_default = Simple;
|
|
46
|
+
|
|
47
|
+
//#endregion
|
|
48
|
+
export { simple_default as default };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { genStyleHooks } from "../../theme/util/genStyleUtils.js";
|
|
2
|
+
import { mergeToken } from "../../theme/internal.js";
|
|
3
|
+
|
|
4
|
+
//#region src/empty/style/index.ts
|
|
5
|
+
const genSharedEmptyStyle = (token) => {
|
|
6
|
+
const { componentCls, margin, marginXS, marginXL, fontSize, lineHeight } = token;
|
|
7
|
+
return { [componentCls]: {
|
|
8
|
+
"marginInline": marginXS,
|
|
9
|
+
fontSize,
|
|
10
|
+
lineHeight,
|
|
11
|
+
"textAlign": "center",
|
|
12
|
+
[`${componentCls}-image`]: {
|
|
13
|
+
height: token.emptyImgHeight,
|
|
14
|
+
marginBottom: marginXS,
|
|
15
|
+
opacity: token.opacityImage,
|
|
16
|
+
img: { height: "100%" },
|
|
17
|
+
svg: {
|
|
18
|
+
maxWidth: "100%",
|
|
19
|
+
height: "100%",
|
|
20
|
+
margin: "auto"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
[`${componentCls}-description`]: { color: token.colorTextDescription },
|
|
24
|
+
[`${componentCls}-footer`]: { marginTop: margin },
|
|
25
|
+
"&-normal": {
|
|
26
|
+
marginBlock: marginXL,
|
|
27
|
+
color: token.colorTextDescription,
|
|
28
|
+
[`${componentCls}-description`]: { color: token.colorTextDescription },
|
|
29
|
+
[`${componentCls}-image`]: { height: token.emptyImgHeightMD }
|
|
30
|
+
},
|
|
31
|
+
"&-small": {
|
|
32
|
+
marginBlock: marginXS,
|
|
33
|
+
color: token.colorTextDescription,
|
|
34
|
+
[`${componentCls}-image`]: { height: token.emptyImgHeightSM }
|
|
35
|
+
}
|
|
36
|
+
} };
|
|
37
|
+
};
|
|
38
|
+
var style_default = genStyleHooks("Empty", (token) => {
|
|
39
|
+
const { componentCls, controlHeightLG, calc } = token;
|
|
40
|
+
return genSharedEmptyStyle(mergeToken(token, {
|
|
41
|
+
emptyImgCls: `${componentCls}-img`,
|
|
42
|
+
emptyImgHeight: calc(controlHeightLG).mul(2.5).equal(),
|
|
43
|
+
emptyImgHeightMD: controlHeightLG,
|
|
44
|
+
emptyImgHeightSM: calc(controlHeightLG).mul(.875).equal()
|
|
45
|
+
}));
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
//#endregion
|
|
49
|
+
export { style_default as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EmptyEmit } from "../_util/type.js";
|
|
2
|
+
import { FlexProps } from "./interface.js";
|
|
3
|
+
import * as vue90 from "vue";
|
|
4
|
+
import { SlotsType } from "vue";
|
|
5
|
+
|
|
6
|
+
//#region src/flex/index.d.ts
|
|
7
|
+
interface FlexSlots {
|
|
8
|
+
default: () => any;
|
|
9
|
+
}
|
|
10
|
+
declare const Flex: vue90.DefineSetupFnComponent<FlexProps, EmptyEmit, SlotsType<FlexSlots>, FlexProps & {
|
|
11
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
12
|
+
}, vue90.PublicProps>;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { Flex };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { useConfig } from "../config-provider/context.js";
|
|
2
|
+
import { isPresetSize } from "../_util/gapSize.js";
|
|
3
|
+
import utils_default from "./utils.js";
|
|
4
|
+
import style_default from "./style/index.js";
|
|
5
|
+
import { computed, createVNode, defineComponent, mergeDefaults } from "vue";
|
|
6
|
+
import { classNames } from "@v-c/util";
|
|
7
|
+
import { omit } from "es-toolkit";
|
|
8
|
+
|
|
9
|
+
//#region src/flex/index.tsx
|
|
10
|
+
const Flex = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
11
|
+
const configCtx = useConfig();
|
|
12
|
+
const prefixCls = computed(() => configCtx.value.getPrefixCls("flex", props.prefixCls));
|
|
13
|
+
const [hashId, cssVarCls] = style_default(prefixCls);
|
|
14
|
+
return () => {
|
|
15
|
+
const { rootClass, flex, gap, vertical, component = "div" } = props;
|
|
16
|
+
const ctxFlex = configCtx.value?.flex;
|
|
17
|
+
const mergedVertical = vertical ?? ctxFlex?.vertical;
|
|
18
|
+
const ctxDirection = configCtx.value?.direction;
|
|
19
|
+
const mergedCls = classNames(rootClass, ctxFlex?.class, prefixCls.value, hashId.value, cssVarCls.value, utils_default(prefixCls.value, props), {
|
|
20
|
+
[`${prefixCls.value}-rtl`]: ctxDirection === "rtl",
|
|
21
|
+
[`${prefixCls.value}-gap-${gap}`]: isPresetSize(gap),
|
|
22
|
+
[`${prefixCls.value}-vertical`]: mergedVertical
|
|
23
|
+
});
|
|
24
|
+
const mergedStyle = {};
|
|
25
|
+
if (flex) mergedStyle.flex = flex;
|
|
26
|
+
if (gap && !isPresetSize(gap)) mergedStyle.gap = typeof gap === "number" ? `${gap}px` : gap;
|
|
27
|
+
return createVNode(component, {
|
|
28
|
+
class: [mergedCls, attrs.class],
|
|
29
|
+
style: [mergedStyle, attrs.style],
|
|
30
|
+
...omit(attrs, ["class", "style"])
|
|
31
|
+
}, { default: slots.default });
|
|
32
|
+
};
|
|
33
|
+
}, {
|
|
34
|
+
props: /* @__PURE__ */ mergeDefaults({
|
|
35
|
+
vertical: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
required: false
|
|
38
|
+
},
|
|
39
|
+
wrap: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
required: false,
|
|
42
|
+
skipCheck: true
|
|
43
|
+
},
|
|
44
|
+
justify: { required: false },
|
|
45
|
+
align: { required: false },
|
|
46
|
+
flex: { required: false },
|
|
47
|
+
gap: { required: false },
|
|
48
|
+
component: { required: false },
|
|
49
|
+
rootClass: {
|
|
50
|
+
type: String,
|
|
51
|
+
required: false
|
|
52
|
+
},
|
|
53
|
+
prefixCls: {
|
|
54
|
+
type: String,
|
|
55
|
+
required: false
|
|
56
|
+
}
|
|
57
|
+
}, { vertical: void 0 }),
|
|
58
|
+
inheritAttrs: false,
|
|
59
|
+
name: "AFlex"
|
|
60
|
+
});
|
|
61
|
+
Flex.install = (app) => {
|
|
62
|
+
app.component(Flex.name, Flex);
|
|
63
|
+
};
|
|
64
|
+
var flex_default = Flex;
|
|
65
|
+
|
|
66
|
+
//#endregion
|
|
67
|
+
export { flex_default as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SizeType } from "../config-provider/SizeContext.js";
|
|
2
|
+
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
3
|
+
import { CSSProperties } from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/flex/interface.d.ts
|
|
6
|
+
interface FlexProps extends ComponentBaseProps {
|
|
7
|
+
vertical?: boolean;
|
|
8
|
+
wrap?: boolean | CSSProperties['flexWrap'];
|
|
9
|
+
justify?: CSSProperties['justifyContent'];
|
|
10
|
+
align?: CSSProperties['alignItems'];
|
|
11
|
+
flex?: CSSProperties['flex'];
|
|
12
|
+
gap?: CSSProperties['gap'] | SizeType;
|
|
13
|
+
component?: any;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { FlexProps };
|