antdv-next 0.0.0 → 1.0.0-alpha.1
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 +63 -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 +197 -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 +118 -0
- package/package.json +96 -7
- package/components/index.ts +0 -0
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { genStyleHooks } from "../../theme/util/genStyleUtils.js";
|
|
2
|
+
import { mergeToken } from "../../theme/internal.js";
|
|
3
|
+
import { unit } from "@antdv-next/cssinjs";
|
|
4
|
+
import { FastColor } from "@ant-design/fast-color";
|
|
5
|
+
|
|
6
|
+
//#region src/image/style/index.ts
|
|
7
|
+
function genBoxStyle(position) {
|
|
8
|
+
return {
|
|
9
|
+
position: position || "absolute",
|
|
10
|
+
inset: 0
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
function genImageCoverStyle(token) {
|
|
14
|
+
const { componentCls, motionDurationSlow, colorTextLightSolid } = token;
|
|
15
|
+
return { [componentCls]: {
|
|
16
|
+
[`${componentCls}-cover`]: {
|
|
17
|
+
position: "absolute",
|
|
18
|
+
inset: 0,
|
|
19
|
+
display: "flex",
|
|
20
|
+
alignItems: "center",
|
|
21
|
+
justifyContent: "center",
|
|
22
|
+
color: colorTextLightSolid,
|
|
23
|
+
background: new FastColor("#000").setA(.3).toRgbString(),
|
|
24
|
+
cursor: "pointer",
|
|
25
|
+
opacity: 0,
|
|
26
|
+
transition: `opacity ${motionDurationSlow}`
|
|
27
|
+
},
|
|
28
|
+
"&:hover": { [`${componentCls}-cover`]: { opacity: 1 } },
|
|
29
|
+
[`${componentCls}-cover-top`]: {
|
|
30
|
+
inset: "0 0 auto 0",
|
|
31
|
+
justifyContent: "center"
|
|
32
|
+
},
|
|
33
|
+
[`${componentCls}-cover-bottom`]: {
|
|
34
|
+
inset: "auto 0 0 0",
|
|
35
|
+
justifyContent: "center"
|
|
36
|
+
}
|
|
37
|
+
} };
|
|
38
|
+
}
|
|
39
|
+
const genImagePreviewStyle = (token) => {
|
|
40
|
+
const { motionEaseOut, previewCls, motionDurationSlow, componentCls, colorBgMask, marginXL, marginSM, margin, colorTextLightSolid, paddingSM, paddingLG, previewOperationHoverColor, previewOperationColorDisabled, previewOperationSize, zIndexPopup } = token;
|
|
41
|
+
const operationBg = new FastColor(colorBgMask).setA(.1);
|
|
42
|
+
const operationBgHover = operationBg.clone().setA(.2);
|
|
43
|
+
const singleBtn = {
|
|
44
|
+
"position": "absolute",
|
|
45
|
+
"color": colorTextLightSolid,
|
|
46
|
+
"backgroundColor": operationBg.toRgbString(),
|
|
47
|
+
"borderRadius": "50%",
|
|
48
|
+
"padding": paddingSM,
|
|
49
|
+
"outline": 0,
|
|
50
|
+
"border": 0,
|
|
51
|
+
"cursor": "pointer",
|
|
52
|
+
"transition": `all ${motionDurationSlow}`,
|
|
53
|
+
"display": "flex",
|
|
54
|
+
"fontSize": previewOperationSize,
|
|
55
|
+
"&:hover": { backgroundColor: operationBgHover.toRgbString() },
|
|
56
|
+
"&:active": { backgroundColor: operationBg.toRgbString() }
|
|
57
|
+
};
|
|
58
|
+
return { [`${componentCls}-preview`]: {
|
|
59
|
+
textAlign: "center",
|
|
60
|
+
inset: 0,
|
|
61
|
+
position: "fixed",
|
|
62
|
+
userSelect: "none",
|
|
63
|
+
zIndex: zIndexPopup,
|
|
64
|
+
[`${previewCls}-mask`]: {
|
|
65
|
+
inset: 0,
|
|
66
|
+
position: "absolute",
|
|
67
|
+
background: colorBgMask,
|
|
68
|
+
[`&${componentCls}-preview-mask-blur`]: { backdropFilter: "blur(4px)" },
|
|
69
|
+
[`&${componentCls}-preview-mask-hidden`]: { display: "none" }
|
|
70
|
+
},
|
|
71
|
+
[`${previewCls}-body`]: {
|
|
72
|
+
...genBoxStyle(),
|
|
73
|
+
"pointer-events": "none",
|
|
74
|
+
"display": "flex",
|
|
75
|
+
"alignItems": "center",
|
|
76
|
+
"justifyContent": "center",
|
|
77
|
+
"> *": { pointerEvents: "auto" }
|
|
78
|
+
},
|
|
79
|
+
[`${previewCls}-img`]: {
|
|
80
|
+
maxWidth: "100%",
|
|
81
|
+
maxHeight: "70%",
|
|
82
|
+
verticalAlign: "middle",
|
|
83
|
+
transform: "scale3d(1, 1, 1)",
|
|
84
|
+
cursor: "grab",
|
|
85
|
+
transition: `transform ${motionDurationSlow} ${motionEaseOut} 0s`
|
|
86
|
+
},
|
|
87
|
+
[`&-moving ${previewCls}-img`]: { cursor: "grabbing" },
|
|
88
|
+
[`${previewCls}-close`]: {
|
|
89
|
+
...singleBtn,
|
|
90
|
+
top: marginSM,
|
|
91
|
+
insetInlineEnd: marginSM
|
|
92
|
+
},
|
|
93
|
+
[`${previewCls}-switch`]: {
|
|
94
|
+
...singleBtn,
|
|
95
|
+
"top": "50%",
|
|
96
|
+
"transform": `translateY(-50%)`,
|
|
97
|
+
"&-disabled": { "&, &:hover, &:active": {
|
|
98
|
+
color: previewOperationColorDisabled,
|
|
99
|
+
background: "transparent",
|
|
100
|
+
cursor: "not-allowed"
|
|
101
|
+
} },
|
|
102
|
+
"&-prev": { insetInlineStart: marginSM },
|
|
103
|
+
"&-next": { insetInlineEnd: marginSM }
|
|
104
|
+
},
|
|
105
|
+
[`${previewCls}-footer`]: {
|
|
106
|
+
position: "absolute",
|
|
107
|
+
bottom: marginXL,
|
|
108
|
+
left: {
|
|
109
|
+
_skip_check_: true,
|
|
110
|
+
value: "50%"
|
|
111
|
+
},
|
|
112
|
+
display: "flex",
|
|
113
|
+
flexDirection: "column",
|
|
114
|
+
alignItems: "center",
|
|
115
|
+
color: token.previewOperationColor,
|
|
116
|
+
transform: "translateX(-50%)",
|
|
117
|
+
gap: margin
|
|
118
|
+
},
|
|
119
|
+
[`${previewCls}-actions`]: {
|
|
120
|
+
"display": "flex",
|
|
121
|
+
"gap": paddingSM,
|
|
122
|
+
"padding": `0 ${unit(paddingLG)}`,
|
|
123
|
+
"backgroundColor": operationBg.toRgbString(),
|
|
124
|
+
"borderRadius": 100,
|
|
125
|
+
"fontSize": previewOperationSize,
|
|
126
|
+
"&-action": {
|
|
127
|
+
"padding": paddingSM,
|
|
128
|
+
"cursor": "pointer",
|
|
129
|
+
"transition": `all ${motionDurationSlow}`,
|
|
130
|
+
"display": "flex",
|
|
131
|
+
[`&:not(${previewCls}-actions-action-disabled):hover`]: { color: previewOperationHoverColor },
|
|
132
|
+
"&-disabled": {
|
|
133
|
+
color: previewOperationColorDisabled,
|
|
134
|
+
cursor: "not-allowed"
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
} };
|
|
139
|
+
};
|
|
140
|
+
const genImageStyle = (token) => {
|
|
141
|
+
const { componentCls } = token;
|
|
142
|
+
return { [componentCls]: {
|
|
143
|
+
position: "relative",
|
|
144
|
+
display: "inline-block",
|
|
145
|
+
[`${componentCls}-img`]: {
|
|
146
|
+
width: "100%",
|
|
147
|
+
height: "auto",
|
|
148
|
+
verticalAlign: "middle"
|
|
149
|
+
},
|
|
150
|
+
[`${componentCls}-img-placeholder`]: {
|
|
151
|
+
backgroundColor: token.colorBgContainerDisabled,
|
|
152
|
+
backgroundImage: "url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",
|
|
153
|
+
backgroundRepeat: "no-repeat",
|
|
154
|
+
backgroundPosition: "center center",
|
|
155
|
+
backgroundSize: "30%"
|
|
156
|
+
},
|
|
157
|
+
[`${componentCls}-placeholder`]: { ...genBoxStyle() }
|
|
158
|
+
} };
|
|
159
|
+
};
|
|
160
|
+
const genPreviewMotion = (token) => {
|
|
161
|
+
const { previewCls, motionDurationSlow } = token;
|
|
162
|
+
return { [previewCls]: { "&-fade": {
|
|
163
|
+
"transition": `opacity ${motionDurationSlow}`,
|
|
164
|
+
"&-enter, &-appear": {
|
|
165
|
+
"opacity": 0,
|
|
166
|
+
[`${previewCls}-body`]: { transform: "scale(0)" },
|
|
167
|
+
"&-active": {
|
|
168
|
+
opacity: 1,
|
|
169
|
+
[`${previewCls}-body`]: {
|
|
170
|
+
transform: "scale(1)",
|
|
171
|
+
transition: `transform ${motionDurationSlow}`
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"&-leave": {
|
|
176
|
+
"opacity": 1,
|
|
177
|
+
"&-active": {
|
|
178
|
+
opacity: 0,
|
|
179
|
+
[`${previewCls}-body`]: {
|
|
180
|
+
transform: "scale(0)",
|
|
181
|
+
transition: `transform ${motionDurationSlow}`
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
} } };
|
|
186
|
+
};
|
|
187
|
+
const prepareComponentToken = (token) => ({
|
|
188
|
+
zIndexPopup: token.zIndexPopupBase + 80,
|
|
189
|
+
previewOperationColor: new FastColor(token.colorTextLightSolid).setA(.65).toRgbString(),
|
|
190
|
+
previewOperationHoverColor: new FastColor(token.colorTextLightSolid).setA(.85).toRgbString(),
|
|
191
|
+
previewOperationColorDisabled: new FastColor(token.colorTextLightSolid).setA(.25).toRgbString(),
|
|
192
|
+
previewOperationSize: token.fontSizeIcon * 1.5
|
|
193
|
+
});
|
|
194
|
+
var style_default = genStyleHooks("Image", (token) => {
|
|
195
|
+
const imageToken = mergeToken(token, {
|
|
196
|
+
previewCls: `${token.componentCls}-preview`,
|
|
197
|
+
imagePreviewSwitchSize: token.controlHeightLG
|
|
198
|
+
});
|
|
199
|
+
return [
|
|
200
|
+
genImageStyle(imageToken),
|
|
201
|
+
genImageCoverStyle(imageToken),
|
|
202
|
+
genImagePreviewStyle(imageToken),
|
|
203
|
+
genPreviewMotion(imageToken)
|
|
204
|
+
];
|
|
205
|
+
}, prepareComponentToken);
|
|
206
|
+
|
|
207
|
+
//#endregion
|
|
208
|
+
export { style_default as default };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { version } from "./package.js";
|
|
2
|
+
import { useResponsive } from "./_util/hooks/useResponsive.js";
|
|
3
|
+
import { SizeType } from "./config-provider/SizeContext.js";
|
|
4
|
+
import { Col, ColProps, ColSize } from "./grid/col.js";
|
|
5
|
+
import { Row, RowProps } from "./grid/row.js";
|
|
6
|
+
import { useBreakpoint } from "./grid/index.js";
|
|
7
|
+
import { FormEmits, FormInstance, FormProps, FormSlots, InternalForm } from "./form/Form.js";
|
|
8
|
+
import { UniqueProvider } from "./tooltip/UniqueProvider/index.js";
|
|
9
|
+
import { TooltipAlignConfig, TooltipEmits, TooltipPlacement, TooltipProps, TooltipRef, TooltipSlots, _default as _default$11 } from "./tooltip/index.js";
|
|
10
|
+
import { InternalFormItem } from "./form/FormItem/index.js";
|
|
11
|
+
import { TimePickerLocale, TimePickerProps, TimeRangePicker, TimeRangePickerProps, _default as _default$10 } from "./time-picker/index.js";
|
|
12
|
+
import { DateMonthPicker, DatePickerProps, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, MonthPickerProps, RangePickerProps, WeekPickerProps, _default as _default$2 } from "./date-picker/index.js";
|
|
13
|
+
import { EmptyProps, _default as _default$3 } from "./empty/index.js";
|
|
14
|
+
import { ButtonColorType, ButtonHTMLType, ButtonShape, ButtonType, ButtonVariantType } from "./button/buttonHelper.js";
|
|
15
|
+
import { Button, ButtonProps } from "./button/Button.js";
|
|
16
|
+
import { ModalEmits, ModalProps, ModalSlots } from "./modal/interface.js";
|
|
17
|
+
import { Select, SelectEmits, SelectOptGroup, SelectOption, SelectProps, SelectSlots, SelectValue } from "./select/index.js";
|
|
18
|
+
import { PaginationClassNamesType, PaginationConfig, PaginationEmits, PaginationLocale, PaginationPosition, PaginationProps, PaginationSlots, PaginationStylesType } from "./pagination/interface.js";
|
|
19
|
+
import { Pagination } from "./pagination/Pagination.js";
|
|
20
|
+
import { PopoverProps, _default as _default$6 } from "./popover/index.js";
|
|
21
|
+
import { Popconfirm, PopconfirmEmits, PopconfirmProps, PopconfirmSlots } from "./popconfirm/index.js";
|
|
22
|
+
import { CheckboxEmits, CheckboxProps, CheckboxSlots, InternalCheckbox } from "./checkbox/Checkbox.js";
|
|
23
|
+
import { CheckboxGroup, CheckboxGroupEmits, CheckboxGroupProps, CheckboxGroupSlots, CheckboxOptionType } from "./checkbox/Group.js";
|
|
24
|
+
import { MenuItemProps } from "./menu/MenuItem.js";
|
|
25
|
+
import { MenuEmits, MenuProps, MenuSlots } from "./menu/menu.js";
|
|
26
|
+
import { SubMenu, SubMenuProps } from "./menu/SubMenu.js";
|
|
27
|
+
import { MenuDivider } from "./menu/MenuDivider.js";
|
|
28
|
+
import { MenuItem, MenuItemGroupProps, MenuItemType, MenuRef, _default as _default$4 } from "./menu/index.js";
|
|
29
|
+
import { DropdownArrowOptions, DropdownEmits, DropdownProps, DropdownSlots } from "./dropdown/dropdown.js";
|
|
30
|
+
import { Dropdown } from "./dropdown/index.js";
|
|
31
|
+
import { ColumnType, ColumnsType, SortOrder, SorterResult, TableLocale, TablePaginationConfig, TableRowSelection } from "./table/interface.js";
|
|
32
|
+
import { Column } from "./table/Column.js";
|
|
33
|
+
import { ColumnGroup } from "./table/ColumnGroup.js";
|
|
34
|
+
import { SpinProps, SpinSlots, _default as _default$8 } from "./spin/index.js";
|
|
35
|
+
import { TableClassNamesType, TableEmits, TableProps, TableSlots, TableStylesType } from "./table/InternalTable.js";
|
|
36
|
+
import { DataIndex, InternalTable, Summary, SummaryCell, SummaryRow } from "./table/index.js";
|
|
37
|
+
import { TourEmits, TourLocale, TourProps, TourSlots, TourStylesType } from "./tour/interface.js";
|
|
38
|
+
import { Tour, TourStepItem } from "./tour/index.js";
|
|
39
|
+
import { TransferOperationProps } from "./transfer/Actions.js";
|
|
40
|
+
import { TransferSearchEmits, TransferSearchProps, TransferSearchSlots } from "./transfer/search.js";
|
|
41
|
+
import { KeyWise, KeyWiseTransferItem, ListStyle, PaginationType, RenderResult, RenderResultObject, SelectAllLabel, TransferClassNamesType, TransferCustomListBodyProps, TransferDirection, TransferEmits, TransferItem, TransferKey, TransferListBodyProps, TransferListProps, TransferLocale, TransferProps, TransferRender, TransferSearchOption, TransferSemanticName, TransferSlots, TransferStylesType } from "./transfer/interface.js";
|
|
42
|
+
import { InternalTransfer } from "./transfer/index.js";
|
|
43
|
+
import { Progress, ProgressProps } from "./progress/progress.js";
|
|
44
|
+
import { UploadChangeParam, UploadEmits, UploadFile, UploadProps, UploadSlots } from "./upload/interface.js";
|
|
45
|
+
import { ConfigProvider } from "./config-provider/index.js";
|
|
46
|
+
import { Alert, AlertEmits, AlertProps, AlertSlots } from "./alert/Alert.js";
|
|
47
|
+
import { AnchorLinkProps } from "./anchor/AnchorLink.js";
|
|
48
|
+
import { Anchor, AnchorProps } from "./anchor/Anchor.js";
|
|
49
|
+
import { RibbonProps } from "./badge/Ribbon.js";
|
|
50
|
+
import { Badge, BadgeProps, BadgeSlots } from "./badge/index.js";
|
|
51
|
+
import { BreadcrumbItemProps } from "./breadcrumb/BreadcrumbItem.js";
|
|
52
|
+
import { Breadcrumb, BreadcrumbEmits, BreadcrumbItemType, BreadcrumbProps, BreadcrumbSlots } from "./breadcrumb/Breadcrumb.js";
|
|
53
|
+
import { TabPane, TabPaneProps } from "./tabs/TabPane.js";
|
|
54
|
+
import { Tabs, TabsEmits, TabsProps, TabsRef, TabsSlots } from "./tabs/index.js";
|
|
55
|
+
import { Card, CardEmits, CardProps, CardSize, CardSlots, CardTabListType } from "./card/Card.js";
|
|
56
|
+
import { CardMeta, CardMetaProps } from "./card/CardMeta.js";
|
|
57
|
+
import { CascaderPanel, CascaderPanelEmits, CascaderPanelProps, CascaderPanelSlots } from "./cascader/Panel.js";
|
|
58
|
+
import { Cascader, CascaderEmits, CascaderProps, CascaderSlots } from "./cascader/index.js";
|
|
59
|
+
import { Collapse, CollapseProps } from "./collapse/Collapse.js";
|
|
60
|
+
import { Descriptions, DescriptionsItemType, DescriptionsProps, DescriptionsSlots } from "./descriptions/index.js";
|
|
61
|
+
import { Divider, DividerProps } from "./divider/index.js";
|
|
62
|
+
import { Drawer, DrawerEmits, DrawerProps, DrawerResizableConfig, DrawerSlots } from "./drawer/index.js";
|
|
63
|
+
import { FlexProps } from "./flex/interface.js";
|
|
64
|
+
import { Flex } from "./flex/index.js";
|
|
65
|
+
import { FloatButton, FloatButtonProps, FloatButtonRef } from "./float-button/FloatButton.js";
|
|
66
|
+
import { FloatButtonGroup, FloatButtonGroupProps } from "./float-button/FloatButtonGroup.js";
|
|
67
|
+
import { BackTopWithInstall } from "./float-button/BackTop.js";
|
|
68
|
+
import { ImageEmits, ImagePreviewGroup, ImagePreviewGroupProps, ImageProps, ImageSlots, PreviewConfig, _default_1 } from "./image/index.js";
|
|
69
|
+
import { InputNumber, InputNumberEmits, InputNumberProps, InputNumberStepContext, ValueType, VcInputNumberRef } from "./input-number/index.js";
|
|
70
|
+
import { InputEmits, InputProps, InputRef, InputSlots } from "./input/Input.js";
|
|
71
|
+
import { OTPProps } from "./input/OTP/index.js";
|
|
72
|
+
import { SearchProps } from "./input/Search.js";
|
|
73
|
+
import { InternalTextArea, TextAreaProps, TextAreaRef } from "./input/TextArea.js";
|
|
74
|
+
import { Masonry, MasonryEmits, MasonryProps, MasonryRef, MasonrySlots } from "./masonry/Masonry.js";
|
|
75
|
+
import { useNotification } from "./notification/useNotification.js";
|
|
76
|
+
import { staticMethods as staticMethods$1 } from "./notification/index.js";
|
|
77
|
+
import { QRCodeEmits, QRCodeProps } from "./qrcode/interface.js";
|
|
78
|
+
import { QRCode } from "./qrcode/index.js";
|
|
79
|
+
import { RadioChangeEvent, RadioEmits, RadioGroupEmits, RadioGroupOptionType, RadioGroupProps, RadioGroupSlots, RadioProps, RadioSlots } from "./radio/interface.js";
|
|
80
|
+
import { ResultProps, _default as _default$7 } from "./result/index.js";
|
|
81
|
+
import { Segmented, SegmentedEmits, SegmentedOptions, SegmentedProps } from "./segmented/index.js";
|
|
82
|
+
import { SkeletonAvatar } from "./skeleton/Avatar.js";
|
|
83
|
+
import { SkeletonButton } from "./skeleton/Button.js";
|
|
84
|
+
import { SkeletonImage } from "./skeleton/Image.js";
|
|
85
|
+
import { SkeletonInput } from "./skeleton/Input.js";
|
|
86
|
+
import { SkeletonNode } from "./skeleton/Node.js";
|
|
87
|
+
import { SkeletonProps, SkeletonWithSubComponents } from "./skeleton/Skeleton.js";
|
|
88
|
+
import { Slider, SliderEmits, SliderProps } from "./slider/index.js";
|
|
89
|
+
import { Space, SpaceAddon, SpaceCompact, SpaceProps, SpaceSize, SpaceSlots } from "./space/index.js";
|
|
90
|
+
import { StatisticProps } from "./statistic/Statistic.js";
|
|
91
|
+
import { StatisticTimerProps } from "./statistic/Timer.js";
|
|
92
|
+
import { StatisticTimer, _default as _default$9 } from "./statistic/index.js";
|
|
93
|
+
import { Steps, StepsProps } from "./steps/index.js";
|
|
94
|
+
import { Switch, SwitchEmits, SwitchProps, SwitchSize, SwitchSlots } from "./switch/index.js";
|
|
95
|
+
import { CheckableTag, CheckableTagProps } from "./tag/CheckableTag.js";
|
|
96
|
+
import { CheckableTagGroup } from "./tag/CheckableTagGroup.js";
|
|
97
|
+
import { Tag, TagProps, TagSlots } from "./tag/index.js";
|
|
98
|
+
import { AntTreeNode, AntTreeNodeCheckedEvent, AntTreeNodeExpandedEvent, AntTreeNodeMouseEvent, AntTreeNodeProps, AntTreeNodeSelectedEvent, AntdTreeNodeAttribute, TreeEmits, TreeProps, TreeSlots } from "./tree/Tree.js";
|
|
99
|
+
import { DirectoryTree, DirectoryTreeEmits, DirectoryTreeProps, DirectoryTreeSlots, ExpandAction } from "./tree/DirectoryTree.js";
|
|
100
|
+
import { BasicDataNode, DataNode, Tree } from "./tree/index.js";
|
|
101
|
+
import { TreeSelect, TreeSelectEmits, TreeSelectNode, TreeSelectProps, TreeSelectSlots } from "./tree-select/index.js";
|
|
102
|
+
import { BlockProps } from "./typography/interface.js";
|
|
103
|
+
import { Affix, AffixProps } from "./affix/index.js";
|
|
104
|
+
import { useModal } from "./modal/useModal/index.js";
|
|
105
|
+
import { AppProps } from "./app/App.js";
|
|
106
|
+
import { _default } from "./app/index.js";
|
|
107
|
+
import { AvatarGroup, AvatarGroupProps } from "./avatar/AvatarGroup.js";
|
|
108
|
+
import { AvatarEmits, AvatarProps, AvatarSlots } from "./avatar/Avatar.js";
|
|
109
|
+
import { Avatar } from "./avatar/index.js";
|
|
110
|
+
import { CalendarMode, CalendarProps } from "./calendar/generateCalendar.js";
|
|
111
|
+
import { _default as _default$1 } from "./calendar/index.js";
|
|
112
|
+
import { CardGrid, CardGridProps } from "./card/CardGrid.js";
|
|
113
|
+
import { Carousel, CarouselEmits, CarouselProps, CarouselRef, CarouselSlots } from "./carousel/index.js";
|
|
114
|
+
import { AggregationColor } from "./color-picker/color.js";
|
|
115
|
+
import { ColorPickerEmits, ColorPickerProps, ColorPickerSlots, ColorValueType } from "./color-picker/interface.js";
|
|
116
|
+
import { ColorPicker } from "./color-picker/ColorPicker.js";
|
|
117
|
+
import { InputGroupProps } from "./input/Group.js";
|
|
118
|
+
import { PasswordProps } from "./input/Password.js";
|
|
119
|
+
import { CompoundedInput, InputGroup, InputOTP, InputPassword, InputSearch } from "./input/index.js";
|
|
120
|
+
import { BasicProps, Layout } from "./layout/layout.js";
|
|
121
|
+
import { LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, useLayoutSider } from "./layout/index.js";
|
|
122
|
+
import { MentionPlacement, Mentions, MentionsClassNamesType, MentionsEmits, MentionsOptionProps, MentionsProps, MentionsRef, MentionsSlots, MentionsStylesType, Option } from "./mentions/index.js";
|
|
123
|
+
import { useMessage } from "./message/useMessage.js";
|
|
124
|
+
import { staticMethods } from "./message/index.js";
|
|
125
|
+
import { _default as _default$5 } from "./modal/index.js";
|
|
126
|
+
import { InternalRadio } from "./radio/radio.js";
|
|
127
|
+
import { RadioButton, RadioGroup, RadioOptionType } from "./radio/index.js";
|
|
128
|
+
import { Rate, RateEmits, RateProps } from "./rate/index.js";
|
|
129
|
+
import { SplitterEmits, SplitterProps, SplitterSlots } from "./splitter/interface.js";
|
|
130
|
+
import { Splitter } from "./splitter/Splitter.js";
|
|
131
|
+
import { SplitterPanel } from "./splitter/index.js";
|
|
132
|
+
import { TimelineItemProps } from "./timeline/TimelineItem.js";
|
|
133
|
+
import { Timeline, TimelineProps } from "./timeline/Timeline.js";
|
|
134
|
+
import { TextProps } from "./typography/Text.js";
|
|
135
|
+
import { LinkProps } from "./typography/Link.js";
|
|
136
|
+
import { TitleProps } from "./typography/Title.js";
|
|
137
|
+
import { ParagraphProps } from "./typography/Paragraph.js";
|
|
138
|
+
import { Typography, TypographyLink, TypographyParagraph, TypographyText, TypographyTitle } from "./typography/index.js";
|
|
139
|
+
import { DraggerProps } from "./upload/Dragger.js";
|
|
140
|
+
import { Upload, UploadDragger } from "./upload/index.js";
|
|
141
|
+
import { Watermark, WatermarkProps } from "./watermark/index.js";
|
|
142
|
+
import "./components.js";
|
|
143
|
+
import { _default as _default$13 } from "./theme/index.js";
|
|
144
|
+
import { Plugin } from "vue";
|
|
145
|
+
|
|
146
|
+
//#region src/index.d.ts
|
|
147
|
+
declare const _default$12: Plugin;
|
|
148
|
+
//#endregion
|
|
149
|
+
export { Affix, AffixProps, Alert, AlertEmits, AlertProps, AlertSlots, Anchor, AnchorLinkProps, AnchorProps, AntTreeNode, AntTreeNodeCheckedEvent, AntTreeNodeExpandedEvent, AntTreeNodeMouseEvent, AntTreeNodeProps, AntTreeNodeSelectedEvent, AntdTreeNodeAttribute, _default as App, AppProps, Avatar, AvatarEmits, AvatarGroup, AvatarGroupProps, AvatarProps, AvatarSlots, BackTopWithInstall as BackTop, Badge, BadgeProps, RibbonProps as BadgeRibbonProps, BadgeSlots, BasicDataNode, Breadcrumb, BreadcrumbEmits, BreadcrumbItemProps, BreadcrumbItemType, BreadcrumbProps, BreadcrumbSlots, Button, ButtonColorType, ButtonHTMLType, ButtonProps, ButtonShape, SizeType as ButtonSize, ButtonType, ButtonVariantType, _default$1 as Calendar, CalendarMode, CalendarProps, Card, CardEmits, CardGrid, CardGridProps, CardMeta, CardMetaProps, CardProps, CardSize, CardSlots, CardTabListType, Carousel, CarouselEmits, CarouselProps, CarouselRef, CarouselSlots, Cascader, CascaderEmits, CascaderPanel, CascaderPanelEmits, CascaderPanelProps, CascaderPanelSlots, CascaderProps, CascaderSlots, CheckableTag, CheckableTagGroup, CheckableTagProps, InternalCheckbox as Checkbox, CheckboxEmits, CheckboxGroup, CheckboxGroupEmits, CheckboxGroupProps, CheckboxGroupSlots, CheckboxOptionType, CheckboxProps, CheckboxSlots, Col, ColProps, ColSize, Collapse, CollapseProps, AggregationColor as Color, ColorPicker, ColorPickerEmits, ColorPickerProps, ColorPickerSlots, ColorValueType, ConfigProvider, DateMonthPicker, _default$2 as DatePicker, DatePickerProps, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, Descriptions, DescriptionsItemType, DescriptionsProps, DescriptionsSlots, DirectoryTree, DirectoryTreeEmits, ExpandAction as DirectoryTreeExpandAction, DirectoryTreeProps, DirectoryTreeSlots, Divider, DividerProps, Drawer, DrawerEmits, DrawerProps, DrawerResizableConfig, DrawerSlots, Dropdown, DropdownArrowOptions, DropdownEmits, DropdownProps, DropdownSlots, _default$3 as Empty, EmptyProps, Flex, FlexProps, FloatButton, FloatButtonGroup, FloatButtonGroupProps, FloatButtonProps, FloatButtonRef, InternalForm as Form, FormEmits, FormInstance, InternalFormItem as FormItem, FormProps, FormSlots, _default_1 as Image, ImageEmits, PreviewConfig as ImagePreviewConfig, ImagePreviewGroup, ImagePreviewGroupProps, ImageProps, ImageSlots, CompoundedInput as Input, InputEmits, InputGroup, InputGroupProps, InputNumber, InputNumberEmits, InputNumberProps, VcInputNumberRef as InputNumberRef, InputNumberStepContext, ValueType as InputNumberValueType, InputOTP, OTPProps as InputOTPProps, InputPassword, PasswordProps as InputPasswordProps, InputProps, InputRef, InputSearch, SearchProps as InputSearchProps, InputSlots, KeyWise, KeyWiseTransferItem, Layout, LayoutContent, LayoutFooter, LayoutHeader, BasicProps as LayoutProps, LayoutSider, ListStyle, Masonry, MasonryEmits, MasonryProps, MasonryRef, MasonrySlots, MentionPlacement, Mentions, MentionsClassNamesType, MentionsEmits, Option as MentionsOption, MentionsOptionProps, MentionsProps, MentionsRef, MentionsSlots, MentionsStylesType, _default$4 as Menu, MenuDivider, MenuEmits, MenuItem, MenuItemGroupProps, MenuItemProps, MenuItemType, MenuProps, MenuRef, MenuSlots, _default$5 as Modal, ModalEmits, ModalProps, ModalSlots, MonthPickerProps, Pagination, PaginationClassNamesType, PaginationConfig, PaginationEmits, PaginationLocale, PaginationPosition, PaginationProps, PaginationSlots, PaginationStylesType, Popconfirm, PopconfirmEmits, PopconfirmProps, PopconfirmSlots, _default$6 as Popover, PopoverProps, Progress, ProgressProps, QRCode, QRCodeEmits, QRCodeProps, InternalRadio as Radio, RadioButton, RadioChangeEvent, RadioEmits, RadioGroup, RadioGroupEmits, RadioGroupOptionType, RadioGroupProps, RadioGroupSlots, RadioOptionType, RadioProps, RadioSlots, RangePickerProps, Rate, RateEmits, RateProps, RenderResult, RenderResultObject, _default$7 as Result, ResultProps, Row, RowProps, Segmented, SegmentedEmits, SegmentedOptions, SegmentedProps, Select, SelectAllLabel, SelectEmits, SelectOptGroup, SelectOption, SelectProps, SelectSlots, SelectValue, SkeletonWithSubComponents as Skeleton, SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonInput, SkeletonNode, SkeletonProps, Slider, SliderEmits, SliderProps, Space, SpaceAddon, SpaceCompact, SpaceProps, SpaceSize, SpaceSlots, _default$8 as Spin, SpinProps, SpinSlots, Splitter, SplitterEmits, SplitterPanel, SplitterProps, SplitterSlots, _default$9 as Statistic, StatisticProps, StatisticTimer, StatisticTimerProps, Steps, StepsProps, SubMenu, SubMenuProps, Switch, SwitchEmits, SwitchProps, SwitchSize, SwitchSlots, TabPane, TabPaneProps, InternalTable as Table, TableClassNamesType, Column as TableColumn, ColumnGroup as TableColumnGroup, ColumnType as TableColumnType, ColumnsType as TableColumnsType, DataIndex as TableDataIndex, TableEmits, TableLocale, TablePaginationConfig, TableProps, TableRowSelection, TableSlots, SortOrder as TableSortOrder, SorterResult as TableSorterResult, TableStylesType, Summary as TableSummary, SummaryCell as TableSummaryCell, SummaryRow as TableSummaryRow, Tabs, TabsEmits, TabsProps, TabsRef, TabsSlots, Tag, TagProps, TagSlots, InternalTextArea as TextArea, TextAreaProps, TextAreaRef, _default$10 as TimePicker, TimePickerLocale, TimePickerProps, TimeRangePicker, TimeRangePickerProps, Timeline, TimelineItemProps, TimelineProps, _default$11 as Tooltip, TooltipAlignConfig, TooltipEmits, TooltipPlacement, TooltipProps, TooltipRef, TooltipSlots, Tour, TourEmits, TourLocale, TourProps, TourSlots, TourStepItem, TourStylesType, InternalTransfer as Transfer, TransferClassNamesType, TransferCustomListBodyProps, TransferDirection, TransferEmits, TransferItem, TransferKey, TransferListBodyProps, TransferListProps, TransferLocale, TransferOperationProps, PaginationType as TransferPaginationType, TransferProps, TransferRender, TransferSearchEmits, TransferSearchOption, TransferSearchProps, TransferSearchSlots, TransferSemanticName, TransferSlots, TransferStylesType, Tree, DataNode as TreeDataNode, TreeEmits, TreeProps, TreeSelect, TreeSelectEmits, TreeSelectNode, TreeSelectProps, TreeSelectSlots, TreeSlots, Typography, BlockProps as TypographyBaseProps, TypographyLink, LinkProps as TypographyLinkProps, TypographyParagraph, ParagraphProps as TypographyParagraphProps, TypographyText, TextProps as TypographyTextProps, TypographyTitle, TitleProps as TypographyTitleProps, UniqueProvider, Upload, UploadChangeParam, UploadDragger, DraggerProps as UploadDraggerProps, UploadEmits, UploadFile, UploadProps, UploadSlots, Watermark, WatermarkProps, WeekPickerProps, _default$12 as default, staticMethods as message, staticMethods$1 as notification, _default$13 as theme, useBreakpoint, useLayoutSider, useMessage, useModal, useNotification, useResponsive, version };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import version_default from "./version/index.js";
|
|
2
|
+
import affix_default from "./affix/index.js";
|
|
3
|
+
import alert_default from "./alert/index.js";
|
|
4
|
+
import anchor_default from "./anchor/index.js";
|
|
5
|
+
import UniqueProvider_default from "./tooltip/UniqueProvider/index.js";
|
|
6
|
+
import tooltip_default from "./tooltip/index.js";
|
|
7
|
+
import config_provider_default from "./config-provider/index.js";
|
|
8
|
+
import useMessage from "./message/useMessage.js";
|
|
9
|
+
import message_default from "./message/index.js";
|
|
10
|
+
import collapse_default from "./collapse/index.js";
|
|
11
|
+
import button_default from "./button/index.js";
|
|
12
|
+
import Avatar_default from "./skeleton/Avatar.js";
|
|
13
|
+
import Button_default from "./skeleton/Button.js";
|
|
14
|
+
import Image_default from "./skeleton/Image.js";
|
|
15
|
+
import Input_default from "./skeleton/Input.js";
|
|
16
|
+
import Node_default from "./skeleton/Node.js";
|
|
17
|
+
import skeleton_default from "./skeleton/index.js";
|
|
18
|
+
import useModal from "./modal/useModal/index.js";
|
|
19
|
+
import modal_default from "./modal/index.js";
|
|
20
|
+
import useNotification from "./notification/useNotification.js";
|
|
21
|
+
import notification_default from "./notification/index.js";
|
|
22
|
+
import app_default from "./app/index.js";
|
|
23
|
+
import popover_default from "./popover/index.js";
|
|
24
|
+
import AvatarGroup_default from "./avatar/AvatarGroup.js";
|
|
25
|
+
import avatar_default from "./avatar/index.js";
|
|
26
|
+
import badge_default from "./badge/index.js";
|
|
27
|
+
import MenuDivider_default from "./menu/MenuDivider.js";
|
|
28
|
+
import SubMenu_default from "./menu/SubMenu.js";
|
|
29
|
+
import menu_default, { MenuItem } from "./menu/index.js";
|
|
30
|
+
import dropdown_default from "./dropdown/index.js";
|
|
31
|
+
import breadcrumb_default from "./breadcrumb/index.js";
|
|
32
|
+
import radio_default, { RadioButton, RadioGroup } from "./radio/index.js";
|
|
33
|
+
import empty_default from "./empty/index.js";
|
|
34
|
+
import select_default, { SelectOptGroup, SelectOption } from "./select/index.js";
|
|
35
|
+
import calendar_default from "./calendar/index.js";
|
|
36
|
+
import TabPane_default from "./tabs/TabPane.js";
|
|
37
|
+
import tabs_default from "./tabs/index.js";
|
|
38
|
+
import CardGrid_default from "./card/CardGrid.js";
|
|
39
|
+
import CardMeta_default from "./card/CardMeta.js";
|
|
40
|
+
import card_default from "./card/index.js";
|
|
41
|
+
import carousel_default from "./carousel/index.js";
|
|
42
|
+
import Panel_default from "./cascader/Panel.js";
|
|
43
|
+
import cascader_default from "./cascader/index.js";
|
|
44
|
+
import Group_default from "./checkbox/Group.js";
|
|
45
|
+
import checkbox_default from "./checkbox/index.js";
|
|
46
|
+
import divider_default from "./divider/index.js";
|
|
47
|
+
import segmented_default from "./segmented/index.js";
|
|
48
|
+
import space_default, { SpaceAddon, SpaceCompact } from "./space/index.js";
|
|
49
|
+
import input_number_default from "./input-number/index.js";
|
|
50
|
+
import slider_default from "./slider/index.js";
|
|
51
|
+
import color_picker_default from "./color-picker/index.js";
|
|
52
|
+
import date_picker_default, { DateMonthPicker, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker } from "./date-picker/index.js";
|
|
53
|
+
import col_default from "./grid/col.js";
|
|
54
|
+
import row_default from "./grid/row.js";
|
|
55
|
+
import { useBreakpoint } from "./grid/index.js";
|
|
56
|
+
import descriptions_default from "./descriptions/index.js";
|
|
57
|
+
import drawer_default from "./drawer/index.js";
|
|
58
|
+
import flex_default from "./flex/index.js";
|
|
59
|
+
import BackTop_default from "./float-button/BackTop.js";
|
|
60
|
+
import FloatButtonGroup_default from "./float-button/FloatButtonGroup.js";
|
|
61
|
+
import float_button_default from "./float-button/index.js";
|
|
62
|
+
import FormItem_default from "./form/FormItem/index.js";
|
|
63
|
+
import form_default from "./form/index.js";
|
|
64
|
+
import image_default, { ImagePreviewGroup } from "./image/index.js";
|
|
65
|
+
import TextArea_default from "./input/TextArea.js";
|
|
66
|
+
import input_default, { InputGroup, InputOTP, InputPassword, InputSearch } from "./input/index.js";
|
|
67
|
+
import layout_default, { LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, useLayoutSider } from "./layout/index.js";
|
|
68
|
+
import masonry_default from "./masonry/index.js";
|
|
69
|
+
import spin_default from "./spin/index.js";
|
|
70
|
+
import mentions_default, { Option } from "./mentions/index.js";
|
|
71
|
+
import pagination_default from "./pagination/index.js";
|
|
72
|
+
import popconfirm_default from "./popconfirm/index.js";
|
|
73
|
+
import progress_default from "./progress/progress.js";
|
|
74
|
+
import qrcode_default from "./qrcode/index.js";
|
|
75
|
+
import rate_default from "./rate/index.js";
|
|
76
|
+
import result_default from "./result/index.js";
|
|
77
|
+
import splitter_default, { SplitterPanel } from "./splitter/index.js";
|
|
78
|
+
import statistic_default, { StatisticTimer } from "./statistic/index.js";
|
|
79
|
+
import steps_default from "./steps/index.js";
|
|
80
|
+
import switch_default from "./switch/index.js";
|
|
81
|
+
import Column_default from "./table/Column.js";
|
|
82
|
+
import ColumnGroup_default from "./table/ColumnGroup.js";
|
|
83
|
+
import DirectoryTree_default from "./tree/DirectoryTree.js";
|
|
84
|
+
import tree_default from "./tree/index.js";
|
|
85
|
+
import table_default, { Summary, SummaryCell, SummaryRow } from "./table/index.js";
|
|
86
|
+
import CheckableTag_default from "./tag/CheckableTag.js";
|
|
87
|
+
import CheckableTagGroup_default from "./tag/CheckableTagGroup.js";
|
|
88
|
+
import tag_default from "./tag/index.js";
|
|
89
|
+
import time_picker_default, { TimeRangePicker } from "./time-picker/index.js";
|
|
90
|
+
import timeline_default from "./timeline/index.js";
|
|
91
|
+
import tour_default from "./tour/index.js";
|
|
92
|
+
import transfer_default from "./transfer/index.js";
|
|
93
|
+
import tree_select_default from "./tree-select/index.js";
|
|
94
|
+
import typography_default, { TypographyLink, TypographyParagraph, TypographyText, TypographyTitle } from "./typography/index.js";
|
|
95
|
+
import upload_default, { UploadDragger } from "./upload/index.js";
|
|
96
|
+
import watermark_default from "./watermark/index.js";
|
|
97
|
+
import { components_exports } from "./components.js";
|
|
98
|
+
import { useResponsive } from "./_util/hooks/useResponsive.js";
|
|
99
|
+
import theme_default from "./theme/index.js";
|
|
100
|
+
|
|
101
|
+
//#region src/index.ts
|
|
102
|
+
let prefix = "A";
|
|
103
|
+
var src_default = {
|
|
104
|
+
setPrefix(newPrefix) {
|
|
105
|
+
prefix = newPrefix;
|
|
106
|
+
},
|
|
107
|
+
install(app) {
|
|
108
|
+
app.config.globalProperties._ant_prefix = prefix;
|
|
109
|
+
Object.keys(components_exports).forEach((key) => {
|
|
110
|
+
const component = components_exports[key];
|
|
111
|
+
if ("install" in component) app.use(component);
|
|
112
|
+
});
|
|
113
|
+
},
|
|
114
|
+
version: version_default
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
//#endregion
|
|
118
|
+
export { affix_default as Affix, alert_default as Alert, anchor_default as Anchor, app_default as App, avatar_default as Avatar, AvatarGroup_default as AvatarGroup, BackTop_default as BackTop, badge_default as Badge, breadcrumb_default as Breadcrumb, button_default as Button, calendar_default as Calendar, card_default as Card, CardGrid_default as CardGrid, CardMeta_default as CardMeta, carousel_default as Carousel, cascader_default as Cascader, Panel_default as CascaderPanel, CheckableTag_default as CheckableTag, CheckableTagGroup_default as CheckableTagGroup, checkbox_default as Checkbox, Group_default as CheckboxGroup, col_default as Col, collapse_default as Collapse, color_picker_default as ColorPicker, config_provider_default as ConfigProvider, DateMonthPicker, date_picker_default as DatePicker, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, descriptions_default as Descriptions, DirectoryTree_default as DirectoryTree, divider_default as Divider, drawer_default as Drawer, dropdown_default as Dropdown, empty_default as Empty, flex_default as Flex, float_button_default as FloatButton, FloatButtonGroup_default as FloatButtonGroup, form_default as Form, FormItem_default as FormItem, image_default as Image, ImagePreviewGroup, input_default as Input, InputGroup, input_number_default as InputNumber, InputOTP, InputPassword, InputSearch, layout_default as Layout, LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, masonry_default as Masonry, mentions_default as Mentions, Option as MentionsOption, menu_default as Menu, MenuDivider_default as MenuDivider, MenuItem, modal_default as Modal, pagination_default as Pagination, popconfirm_default as Popconfirm, popover_default as Popover, progress_default as Progress, qrcode_default as QRCode, radio_default as Radio, RadioButton, RadioGroup, rate_default as Rate, result_default as Result, row_default as Row, segmented_default as Segmented, select_default as Select, SelectOptGroup, SelectOption, skeleton_default as Skeleton, Avatar_default as SkeletonAvatar, Button_default as SkeletonButton, Image_default as SkeletonImage, Input_default as SkeletonInput, Node_default as SkeletonNode, slider_default as Slider, space_default as Space, SpaceAddon, SpaceCompact, spin_default as Spin, splitter_default as Splitter, SplitterPanel, statistic_default as Statistic, StatisticTimer, steps_default as Steps, SubMenu_default as SubMenu, switch_default as Switch, TabPane_default as TabPane, table_default as Table, Column_default as TableColumn, ColumnGroup_default as TableColumnGroup, Summary as TableSummary, SummaryCell as TableSummaryCell, SummaryRow as TableSummaryRow, tabs_default as Tabs, tag_default as Tag, TextArea_default as TextArea, time_picker_default as TimePicker, TimeRangePicker, timeline_default as Timeline, tooltip_default as Tooltip, tour_default as Tour, transfer_default as Transfer, tree_default as Tree, tree_select_default as TreeSelect, typography_default as Typography, TypographyLink, TypographyParagraph, TypographyText, TypographyTitle, UniqueProvider_default as UniqueProvider, upload_default as Upload, UploadDragger, watermark_default as Watermark, src_default as default, message_default as message, notification_default as notification, theme_default as theme, useBreakpoint, useLayoutSider, useMessage, useModal, useNotification, useResponsive, version_default as version };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "../_util/type.js";
|
|
2
|
+
import { SizeType } from "../config-provider/SizeContext.js";
|
|
3
|
+
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
4
|
+
import { SlotsType } from "vue";
|
|
5
|
+
|
|
6
|
+
//#region src/input/Group.d.ts
|
|
7
|
+
interface InputGroupProps extends ComponentBaseProps {
|
|
8
|
+
size?: SizeType;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { InputGroupProps };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
|
+
import { getAttrStyleAndClass } from "../_util/hooks/useMergeSemantic.js";
|
|
3
|
+
import { devUseWarning, isDev } from "../_util/warning.js";
|
|
4
|
+
import "../_util/hooks/index.js";
|
|
5
|
+
import useCSSVarCls_default from "../config-provider/hooks/useCSSVarCls.js";
|
|
6
|
+
import { useFormItemInputContext, useFormItemInputContextProvider } from "../form/context.js";
|
|
7
|
+
import style_default, { useSharedStyle } from "./style/index.js";
|
|
8
|
+
import { SpaceCompact } from "../space/index.js";
|
|
9
|
+
import { computed, createVNode, defineComponent, mergeProps } from "vue";
|
|
10
|
+
import { clsx } from "@v-c/util";
|
|
11
|
+
|
|
12
|
+
//#region src/input/Group.tsx
|
|
13
|
+
const InputGroup = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
14
|
+
if (isDev) devUseWarning("Input.Group").deprecated(false, "Input.Group", "Space.Compact");
|
|
15
|
+
const { getPrefixCls, direction } = useComponentBaseConfig("input", props);
|
|
16
|
+
const prefixCls = computed(() => getPrefixCls("input-group", props.prefixCls));
|
|
17
|
+
const rootCls = useCSSVarCls_default(prefixCls);
|
|
18
|
+
const [hashId, cssVarCls] = useSharedStyle(prefixCls, computed(() => props.rootClass));
|
|
19
|
+
style_default(prefixCls, rootCls);
|
|
20
|
+
const formItemContext = useFormItemInputContext();
|
|
21
|
+
useFormItemInputContextProvider(computed(() => ({
|
|
22
|
+
...formItemContext.value,
|
|
23
|
+
isFormItemInput: false
|
|
24
|
+
})));
|
|
25
|
+
const { style, restAttrs } = getAttrStyleAndClass(attrs);
|
|
26
|
+
const cls = clsx(prefixCls.value, cssVarCls.value, hashId.value, {
|
|
27
|
+
[`${prefixCls.value}-rtl`]: direction.value === "rtl",
|
|
28
|
+
[`${prefixCls.value}-lg`]: props.size === "large",
|
|
29
|
+
[`${prefixCls.value}-sm`]: props.size === "small",
|
|
30
|
+
[`${prefixCls.value}-compact`]: true
|
|
31
|
+
}, props.rootClass, attrs.class);
|
|
32
|
+
return createVNode(SpaceCompact, mergeProps(restAttrs, {
|
|
33
|
+
"class": cls,
|
|
34
|
+
"style": style,
|
|
35
|
+
"size": props.size
|
|
36
|
+
}), { default: () => [slots.default?.()] });
|
|
37
|
+
}, {
|
|
38
|
+
props: {
|
|
39
|
+
size: {
|
|
40
|
+
type: [String, null],
|
|
41
|
+
required: false
|
|
42
|
+
},
|
|
43
|
+
rootClass: {
|
|
44
|
+
type: String,
|
|
45
|
+
required: false
|
|
46
|
+
},
|
|
47
|
+
prefixCls: {
|
|
48
|
+
type: String,
|
|
49
|
+
required: false
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
name: "AInputGroup",
|
|
53
|
+
inheritAttrs: false
|
|
54
|
+
});
|
|
55
|
+
var Group_default = InputGroup;
|
|
56
|
+
|
|
57
|
+
//#endregion
|
|
58
|
+
export { Group_default as default };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { VueNode } from "../_util/type.js";
|
|
2
|
+
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
|
+
import "../_util/hooks/index.js";
|
|
4
|
+
import { SizeType } from "../config-provider/SizeContext.js";
|
|
5
|
+
import { InputStatus } from "../_util/statusUtils.js";
|
|
6
|
+
import { ComponentBaseProps, Variant } from "../config-provider/context.js";
|
|
7
|
+
import { SlotsType } from "vue";
|
|
8
|
+
import { InputProps, InputRef } from "@v-c/input";
|
|
9
|
+
|
|
10
|
+
//#region src/input/Input.d.ts
|
|
11
|
+
type SemanticName = 'root' | 'prefix' | 'suffix' | 'input' | 'count';
|
|
12
|
+
type InputClassNamesType = SemanticClassNamesType<InputProps$1, SemanticName>;
|
|
13
|
+
type InputStylesType = SemanticStylesType<InputProps$1, SemanticName>;
|
|
14
|
+
type InputRef$1 = InputRef;
|
|
15
|
+
interface BaseVcInputProps {
|
|
16
|
+
value?: any;
|
|
17
|
+
defaultValue?: any;
|
|
18
|
+
type?: InputProps['type'];
|
|
19
|
+
showCount?: InputProps['showCount'];
|
|
20
|
+
autoComplete?: string;
|
|
21
|
+
htmlSize?: number;
|
|
22
|
+
placeholder?: string;
|
|
23
|
+
count?: InputProps['count'];
|
|
24
|
+
maxlength?: number;
|
|
25
|
+
readonly?: boolean;
|
|
26
|
+
hidden?: boolean;
|
|
27
|
+
dataAttrs?: InputProps['dataAttrs'];
|
|
28
|
+
components?: InputProps['components'];
|
|
29
|
+
prefix?: VueNode;
|
|
30
|
+
suffix?: VueNode;
|
|
31
|
+
allowClear?: InputProps['allowClear'];
|
|
32
|
+
autoFocus?: boolean;
|
|
33
|
+
inputMode?: string;
|
|
34
|
+
}
|
|
35
|
+
interface InputProps$1 extends ComponentBaseProps, BaseVcInputProps {
|
|
36
|
+
size?: SizeType;
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
status?: InputStatus;
|
|
39
|
+
/** @deprecated Use `Space.Compact` instead. */
|
|
40
|
+
addonBefore?: VueNode;
|
|
41
|
+
/** @deprecated Use `Space.Compact` instead. */
|
|
42
|
+
addonAfter?: VueNode;
|
|
43
|
+
/** @deprecated Use `variant="borderless"` instead. */
|
|
44
|
+
bordered?: boolean;
|
|
45
|
+
/** @since 5.13.0 */
|
|
46
|
+
variant?: Variant;
|
|
47
|
+
classes?: InputClassNamesType;
|
|
48
|
+
styles?: InputStylesType;
|
|
49
|
+
}
|
|
50
|
+
interface InputEmits {
|
|
51
|
+
'pressEnter': NonNullable<InputProps['onPressEnter']>;
|
|
52
|
+
'clear': () => void;
|
|
53
|
+
'change': NonNullable<InputProps['onChange']>;
|
|
54
|
+
'blur': NonNullable<InputProps['onBlur']>;
|
|
55
|
+
'focus': NonNullable<InputProps['onFocus']>;
|
|
56
|
+
'keydown': NonNullable<InputProps['onKeyDown']>;
|
|
57
|
+
'keyup': NonNullable<InputProps['onKeyUp']>;
|
|
58
|
+
'compositionstart': NonNullable<InputProps['onCompositionStart']>;
|
|
59
|
+
'compositionend': NonNullable<InputProps['onCompositionEnd']>;
|
|
60
|
+
'update:value': (value: InputProps['value']) => void;
|
|
61
|
+
[key: string]: (...args: any[]) => any;
|
|
62
|
+
}
|
|
63
|
+
interface InputSlots {
|
|
64
|
+
prefix: () => any;
|
|
65
|
+
suffix: () => any;
|
|
66
|
+
addonBefore: () => any;
|
|
67
|
+
addonAfter: () => any;
|
|
68
|
+
default: () => any;
|
|
69
|
+
clearIcon: () => any;
|
|
70
|
+
}
|
|
71
|
+
//#endregion
|
|
72
|
+
export { InputEmits, InputProps$1 as InputProps, InputRef$1 as InputRef, InputSlots };
|