@zboson/ui 0.0.0-stage → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +70 -2
- package/dist/_util/ActionButton.d.ts +23 -0
- package/dist/_util/ActionButton.js +129 -0
- package/dist/_util/ContextIsolator.d.ts +10 -0
- package/dist/_util/ContextIsolator.js +45 -0
- package/dist/_util/PurePanel.d.ts +11 -0
- package/dist/_util/PurePanel.js +105 -0
- package/dist/_util/aria-data-attrs.d.ts +7 -0
- package/dist/_util/aria-data-attrs.js +1 -0
- package/dist/_util/capitalize.d.ts +4 -0
- package/dist/_util/capitalize.js +7 -0
- package/dist/_util/colors.d.ts +16 -0
- package/dist/_util/colors.js +24 -0
- package/dist/_util/convertToTooltipProps.d.ts +6 -0
- package/dist/_util/convertToTooltipProps.js +15 -0
- package/dist/_util/copy.d.ts +6 -0
- package/dist/_util/copy.js +46 -0
- package/dist/_util/easings.d.ts +4 -0
- package/dist/_util/easings.js +9 -0
- package/dist/_util/extendsObject.d.ts +6 -0
- package/dist/_util/extendsObject.js +12 -0
- package/dist/_util/fallbackProp.d.ts +13 -0
- package/dist/_util/fallbackProp.js +15 -0
- package/dist/_util/gapSize.d.ts +6 -0
- package/dist/_util/gapSize.js +15 -0
- package/dist/_util/getScroll.d.ts +6 -0
- package/dist/_util/getScroll.js +21 -0
- package/dist/_util/hooks/index.d.ts +6 -0
- package/dist/_util/hooks/index.js +6 -0
- package/dist/_util/hooks/useAllowClear.d.ts +35 -0
- package/dist/_util/hooks/useAllowClear.js +34 -0
- package/dist/_util/hooks/useChildLoadEvents.d.ts +19 -0
- package/dist/_util/hooks/useChildLoadEvents.js +55 -0
- package/dist/_util/hooks/useClosable.d.ts +44 -0
- package/dist/_util/hooks/useClosable.js +151 -0
- package/dist/_util/hooks/useMergeSemantic.d.ts +73 -0
- package/dist/_util/hooks/useMergeSemantic.js +131 -0
- package/dist/_util/hooks/useMergedMask.d.ts +14 -0
- package/dist/_util/hooks/useMergedMask.js +34 -0
- package/dist/_util/hooks/useMultipleSelect.d.ts +9 -0
- package/dist/_util/hooks/useMultipleSelect.js +34 -0
- package/dist/_util/hooks/useOrientation.d.ts +6 -0
- package/dist/_util/hooks/useOrientation.js +18 -0
- package/dist/_util/hooks/usePatchElement.d.ts +5 -0
- package/dist/_util/hooks/usePatchElement.js +15 -0
- package/dist/_util/hooks/useResponsive.d.ts +7 -0
- package/dist/_util/hooks/useResponsive.js +31 -0
- package/dist/_util/hooks/useZIndex.d.ts +11 -0
- package/dist/_util/hooks/useZIndex.js +57 -0
- package/dist/_util/instance.d.ts +4 -0
- package/dist/_util/instance.js +11 -0
- package/dist/_util/is.d.ts +12 -0
- package/dist/_util/is.js +30 -0
- package/dist/_util/isEqual.d.ts +4 -0
- package/dist/_util/isEqual.js +9 -0
- package/dist/_util/isNonNullable.d.ts +4 -0
- package/dist/_util/isNonNullable.js +6 -0
- package/dist/_util/mediaQueryUtil.d.ts +6 -0
- package/dist/_util/mediaQueryUtil.js +11 -0
- package/dist/_util/motion.d.ts +9 -0
- package/dist/_util/motion.js +58 -0
- package/dist/_util/omitUndefined.d.ts +13 -0
- package/dist/_util/omitUndefined.js +20 -0
- package/dist/_util/placements.d.ts +24 -0
- package/dist/_util/placements.js +128 -0
- package/dist/_util/responsiveObserver.d.ts +24 -0
- package/dist/_util/responsiveObserver.js +105 -0
- package/dist/_util/scrollTo.d.ts +12 -0
- package/dist/_util/scrollTo.js +34 -0
- package/dist/_util/statusUtils.d.ts +8 -0
- package/dist/_util/statusUtils.js +16 -0
- package/dist/_util/styleChecker.d.ts +6 -0
- package/dist/_util/styleChecker.js +7 -0
- package/dist/_util/styleUtils.d.ts +22 -0
- package/dist/_util/styleUtils.js +32 -0
- package/dist/_util/throttleByAnimationFrame.d.ts +7 -0
- package/dist/_util/throttleByAnimationFrame.js +19 -0
- package/dist/_util/toList.d.ts +4 -0
- package/dist/_util/toList.js +7 -0
- package/dist/_util/tools.d.ts +24 -0
- package/dist/_util/tools.js +66 -0
- package/dist/_util/transKeys.d.ts +9 -0
- package/dist/_util/transKeys.js +17 -0
- package/dist/_util/type.d.ts +15 -0
- package/dist/_util/type.js +1 -0
- package/dist/_util/vnode/index.d.ts +8 -0
- package/dist/_util/vnode/index.js +152 -0
- package/dist/_util/vueNode.d.ts +18 -0
- package/dist/_util/vueNode.js +36 -0
- package/dist/_util/warning.d.ts +37 -0
- package/dist/_util/warning.js +51 -0
- package/dist/_util/wave/WaveEffect.d.ts +44 -0
- package/dist/_util/wave/WaveEffect.js +183 -0
- package/dist/_util/wave/index.d.ts +16 -0
- package/dist/_util/wave/index.js +95 -0
- package/dist/_util/wave/interface.d.ts +17 -0
- package/dist/_util/wave/interface.js +5 -0
- package/dist/_util/wave/style.d.ts +12 -0
- package/dist/_util/wave/style.js +26 -0
- package/dist/_util/wave/useWave.d.ts +8 -0
- package/dist/_util/wave/useWave.js +41 -0
- package/dist/_util/wave/util.d.ts +5 -0
- package/dist/_util/wave/util.js +16 -0
- package/dist/_util/zindexContext.d.ts +7 -0
- package/dist/_util/zindexContext.js +19 -0
- package/dist/_virtual/_rolldown/runtime.js +13 -0
- package/dist/affix/index.d.ts +28 -0
- package/dist/affix/index.js +202 -0
- package/dist/affix/style/index.d.ts +18 -0
- package/dist/affix/style/index.js +13 -0
- package/dist/affix/utils.d.ts +7 -0
- package/dist/affix/utils.js +15 -0
- package/dist/alert/Alert.d.ts +91 -0
- package/dist/alert/Alert.js +439 -0
- package/dist/alert/index.d.ts +2 -0
- package/dist/alert/index.js +5 -0
- package/dist/alert/style/index.d.ts +39 -0
- package/dist/alert/style/index.js +140 -0
- package/dist/anchor/Anchor.d.ts +73 -0
- package/dist/anchor/Anchor.js +295 -0
- package/dist/anchor/AnchorLink.d.ts +28 -0
- package/dist/anchor/AnchorLink.js +98 -0
- package/dist/anchor/context.d.ts +13 -0
- package/dist/anchor/context.js +11 -0
- package/dist/anchor/index.d.ts +3 -0
- package/dist/anchor/index.js +5 -0
- package/dist/anchor/style/index.d.ts +23 -0
- package/dist/anchor/style/index.js +103 -0
- package/dist/antd-with-locales.esm.js +136097 -0
- package/dist/antd-with-locales.js +387 -0
- package/dist/antd.css +1 -0
- package/dist/antd.esm.js +121996 -0
- package/dist/antd.js +387 -0
- package/dist/app/App.d.ts +9 -0
- package/dist/app/App.js +91 -0
- package/dist/app/context.d.ts +20 -0
- package/dist/app/context.js +28 -0
- package/dist/app/index.d.ts +8 -0
- package/dist/app/index.js +7 -0
- package/dist/app/style/index.d.ts +12 -0
- package/dist/app/style/index.js +16 -0
- package/dist/app/useApp.d.ts +5 -0
- package/dist/app/useApp.js +5 -0
- package/dist/auto-complete/index.d.ts +117 -0
- package/dist/auto-complete/index.js +598 -0
- package/dist/avatar/Avatar.d.ts +42 -0
- package/dist/avatar/Avatar.js +210 -0
- package/dist/avatar/AvatarContext.d.ts +38 -0
- package/dist/avatar/AvatarContext.js +11 -0
- package/dist/avatar/AvatarGroup.d.ts +25 -0
- package/dist/avatar/AvatarGroup.js +96 -0
- package/dist/avatar/index.d.ts +9 -0
- package/dist/avatar/index.js +7 -0
- package/dist/avatar/style/index.d.ts +73 -0
- package/dist/avatar/style/index.js +82 -0
- package/dist/badge/Ribbon.d.ts +39 -0
- package/dist/badge/Ribbon.js +92 -0
- package/dist/badge/ScrollNumber.d.ts +16 -0
- package/dist/badge/ScrollNumber.js +78 -0
- package/dist/badge/SingleNumber.d.ts +9 -0
- package/dist/badge/SingleNumber.js +95 -0
- package/dist/badge/index.d.ts +56 -0
- package/dist/badge/index.js +264 -0
- package/dist/badge/style/index.d.ts +116 -0
- package/dist/badge/style/index.js +253 -0
- package/dist/badge/style/ribbon.d.ts +8 -0
- package/dist/badge/style/ribbon.js +67 -0
- package/dist/border-beam/BorderBeam.d.ts +28 -0
- package/dist/border-beam/BorderBeam.js +129 -0
- package/dist/border-beam/hooks/useBorderSize.d.ts +6 -0
- package/dist/border-beam/hooks/useBorderSize.js +46 -0
- package/dist/border-beam/index.d.ts +3 -0
- package/dist/border-beam/index.js +5 -0
- package/dist/border-beam/style/index.d.ts +9 -0
- package/dist/border-beam/style/index.js +58 -0
- package/dist/border-beam/util.d.ts +14 -0
- package/dist/border-beam/util.js +39 -0
- package/dist/breadcrumb/Breadcrumb.d.ts +113 -0
- package/dist/breadcrumb/Breadcrumb.js +207 -0
- package/dist/breadcrumb/BreadcrumbContext.d.ts +13 -0
- package/dist/breadcrumb/BreadcrumbContext.js +11 -0
- package/dist/breadcrumb/BreadcrumbItem.d.ts +38 -0
- package/dist/breadcrumb/BreadcrumbItem.js +165 -0
- package/dist/breadcrumb/BreadcrumbSeparator.d.ts +8 -0
- package/dist/breadcrumb/BreadcrumbSeparator.js +24 -0
- package/dist/breadcrumb/index.d.ts +4 -0
- package/dist/breadcrumb/index.js +7 -0
- package/dist/breadcrumb/style/index.d.ts +48 -0
- package/dist/breadcrumb/style/index.js +86 -0
- package/dist/breadcrumb/useItemRender.d.ts +10 -0
- package/dist/breadcrumb/useItemRender.js +39 -0
- package/dist/button/Button.d.ts +71 -0
- package/dist/button/Button.js +366 -0
- package/dist/button/DefaultLoadingIcon.d.ts +10 -0
- package/dist/button/DefaultLoadingIcon.js +101 -0
- package/dist/button/IconWrapper.d.ts +7 -0
- package/dist/button/IconWrapper.js +16 -0
- package/dist/button/buttonHelper.d.ts +17 -0
- package/dist/button/buttonHelper.js +85 -0
- package/dist/button/index.d.ts +4 -0
- package/dist/button/index.js +6 -0
- package/dist/button/style/compact.d.ts +10 -0
- package/dist/button/style/compact.js +48 -0
- package/dist/button/style/group.d.ts +8 -0
- package/dist/button/style/group.js +40 -0
- package/dist/button/style/index.d.ts +9 -0
- package/dist/button/style/index.js +150 -0
- package/dist/button/style/token.d.ts +265 -0
- package/dist/button/style/token.js +82 -0
- package/dist/button/style/variant.d.ts +7 -0
- package/dist/button/style/variant.js +223 -0
- package/dist/calendar/Header.d.ts +21 -0
- package/dist/calendar/Header.js +271 -0
- package/dist/calendar/generateCalendar.d.ts +110 -0
- package/dist/calendar/generateCalendar.js +314 -0
- package/dist/calendar/index.d.ts +10 -0
- package/dist/calendar/index.js +10 -0
- package/dist/calendar/locale/ar_EG.d.ts +2 -0
- package/dist/calendar/locale/ar_EG.js +5 -0
- package/dist/calendar/locale/az_AZ.d.ts +2 -0
- package/dist/calendar/locale/az_AZ.js +5 -0
- package/dist/calendar/locale/bg_BG.d.ts +2 -0
- package/dist/calendar/locale/bg_BG.js +5 -0
- package/dist/calendar/locale/bn_BD.d.ts +2 -0
- package/dist/calendar/locale/bn_BD.js +5 -0
- package/dist/calendar/locale/by_BY.d.ts +2 -0
- package/dist/calendar/locale/by_BY.js +5 -0
- package/dist/calendar/locale/ca_ES.d.ts +2 -0
- package/dist/calendar/locale/ca_ES.js +5 -0
- package/dist/calendar/locale/cs_CZ.d.ts +2 -0
- package/dist/calendar/locale/cs_CZ.js +5 -0
- package/dist/calendar/locale/da_DK.d.ts +2 -0
- package/dist/calendar/locale/da_DK.js +5 -0
- package/dist/calendar/locale/de_DE.d.ts +2 -0
- package/dist/calendar/locale/de_DE.js +5 -0
- package/dist/calendar/locale/el_GR.d.ts +2 -0
- package/dist/calendar/locale/el_GR.js +5 -0
- package/dist/calendar/locale/en_GB.d.ts +2 -0
- package/dist/calendar/locale/en_GB.js +5 -0
- package/dist/calendar/locale/en_US.d.ts +2 -0
- package/dist/calendar/locale/en_US.js +5 -0
- package/dist/calendar/locale/es_ES.d.ts +2 -0
- package/dist/calendar/locale/es_ES.js +5 -0
- package/dist/calendar/locale/es_US.d.ts +2 -0
- package/dist/calendar/locale/es_US.js +5 -0
- package/dist/calendar/locale/et_EE.d.ts +2 -0
- package/dist/calendar/locale/et_EE.js +5 -0
- package/dist/calendar/locale/eu_ES.d.ts +2 -0
- package/dist/calendar/locale/eu_ES.js +5 -0
- package/dist/calendar/locale/fa_IR.d.ts +2 -0
- package/dist/calendar/locale/fa_IR.js +5 -0
- package/dist/calendar/locale/fi_FI.d.ts +2 -0
- package/dist/calendar/locale/fi_FI.js +5 -0
- package/dist/calendar/locale/fr_BE.d.ts +2 -0
- package/dist/calendar/locale/fr_BE.js +5 -0
- package/dist/calendar/locale/fr_CA.d.ts +2 -0
- package/dist/calendar/locale/fr_CA.js +5 -0
- package/dist/calendar/locale/fr_FR.d.ts +2 -0
- package/dist/calendar/locale/fr_FR.js +5 -0
- package/dist/calendar/locale/ga_IE.d.ts +2 -0
- package/dist/calendar/locale/ga_IE.js +5 -0
- package/dist/calendar/locale/gl_ES.d.ts +2 -0
- package/dist/calendar/locale/gl_ES.js +5 -0
- package/dist/calendar/locale/he_IL.d.ts +2 -0
- package/dist/calendar/locale/he_IL.js +5 -0
- package/dist/calendar/locale/hi_IN.d.ts +2 -0
- package/dist/calendar/locale/hi_IN.js +5 -0
- package/dist/calendar/locale/hr_HR.d.ts +2 -0
- package/dist/calendar/locale/hr_HR.js +5 -0
- package/dist/calendar/locale/hu_HU.d.ts +2 -0
- package/dist/calendar/locale/hu_HU.js +5 -0
- package/dist/calendar/locale/id_ID.d.ts +2 -0
- package/dist/calendar/locale/id_ID.js +5 -0
- package/dist/calendar/locale/is_IS.d.ts +2 -0
- package/dist/calendar/locale/is_IS.js +5 -0
- package/dist/calendar/locale/it_IT.d.ts +2 -0
- package/dist/calendar/locale/it_IT.js +5 -0
- package/dist/calendar/locale/ja_JP.d.ts +2 -0
- package/dist/calendar/locale/ja_JP.js +5 -0
- package/dist/calendar/locale/ka_GE.d.ts +2 -0
- package/dist/calendar/locale/ka_GE.js +5 -0
- package/dist/calendar/locale/kk_KZ.d.ts +2 -0
- package/dist/calendar/locale/kk_KZ.js +5 -0
- package/dist/calendar/locale/km_KH.d.ts +2 -0
- package/dist/calendar/locale/km_KH.js +5 -0
- package/dist/calendar/locale/kmr_IQ.d.ts +2 -0
- package/dist/calendar/locale/kmr_IQ.js +5 -0
- package/dist/calendar/locale/kn_IN.d.ts +2 -0
- package/dist/calendar/locale/kn_IN.js +5 -0
- package/dist/calendar/locale/ko_KR.d.ts +2 -0
- package/dist/calendar/locale/ko_KR.js +5 -0
- package/dist/calendar/locale/lt_LT.d.ts +2 -0
- package/dist/calendar/locale/lt_LT.js +5 -0
- package/dist/calendar/locale/lv_LV.d.ts +2 -0
- package/dist/calendar/locale/lv_LV.js +5 -0
- package/dist/calendar/locale/mk_MK.d.ts +2 -0
- package/dist/calendar/locale/mk_MK.js +5 -0
- package/dist/calendar/locale/ml_IN.d.ts +2 -0
- package/dist/calendar/locale/ml_IN.js +5 -0
- package/dist/calendar/locale/mn_MN.d.ts +2 -0
- package/dist/calendar/locale/mn_MN.js +5 -0
- package/dist/calendar/locale/mr_IN.d.ts +2 -0
- package/dist/calendar/locale/mr_IN.js +5 -0
- package/dist/calendar/locale/ms_MY.d.ts +2 -0
- package/dist/calendar/locale/ms_MY.js +5 -0
- package/dist/calendar/locale/my_MM.d.ts +2 -0
- package/dist/calendar/locale/my_MM.js +5 -0
- package/dist/calendar/locale/nb_NO.d.ts +2 -0
- package/dist/calendar/locale/nb_NO.js +5 -0
- package/dist/calendar/locale/nl_BE.d.ts +2 -0
- package/dist/calendar/locale/nl_BE.js +5 -0
- package/dist/calendar/locale/nl_NL.d.ts +2 -0
- package/dist/calendar/locale/nl_NL.js +5 -0
- package/dist/calendar/locale/pl_PL.d.ts +2 -0
- package/dist/calendar/locale/pl_PL.js +5 -0
- package/dist/calendar/locale/pt_BR.d.ts +2 -0
- package/dist/calendar/locale/pt_BR.js +5 -0
- package/dist/calendar/locale/pt_PT.d.ts +2 -0
- package/dist/calendar/locale/pt_PT.js +5 -0
- package/dist/calendar/locale/ro_RO.d.ts +2 -0
- package/dist/calendar/locale/ro_RO.js +5 -0
- package/dist/calendar/locale/ru_RU.d.ts +2 -0
- package/dist/calendar/locale/ru_RU.js +5 -0
- package/dist/calendar/locale/si_LK.d.ts +2 -0
- package/dist/calendar/locale/si_LK.js +5 -0
- package/dist/calendar/locale/sk_SK.d.ts +2 -0
- package/dist/calendar/locale/sk_SK.js +5 -0
- package/dist/calendar/locale/sl_SI.d.ts +2 -0
- package/dist/calendar/locale/sl_SI.js +5 -0
- package/dist/calendar/locale/sq_AL.d.ts +2 -0
- package/dist/calendar/locale/sq_AL.js +5 -0
- package/dist/calendar/locale/sr_RS.d.ts +2 -0
- package/dist/calendar/locale/sr_RS.js +5 -0
- package/dist/calendar/locale/sv_SE.d.ts +2 -0
- package/dist/calendar/locale/sv_SE.js +5 -0
- package/dist/calendar/locale/ta_IN.d.ts +2 -0
- package/dist/calendar/locale/ta_IN.js +5 -0
- package/dist/calendar/locale/th_TH.d.ts +2 -0
- package/dist/calendar/locale/th_TH.js +5 -0
- package/dist/calendar/locale/tk_TK.d.ts +2 -0
- package/dist/calendar/locale/tk_TK.js +5 -0
- package/dist/calendar/locale/tr_TR.d.ts +2 -0
- package/dist/calendar/locale/tr_TR.js +5 -0
- package/dist/calendar/locale/uk_UA.d.ts +2 -0
- package/dist/calendar/locale/uk_UA.js +5 -0
- package/dist/calendar/locale/ur_PK.d.ts +2 -0
- package/dist/calendar/locale/ur_PK.js +5 -0
- package/dist/calendar/locale/uz_UZ.d.ts +2 -0
- package/dist/calendar/locale/uz_UZ.js +5 -0
- package/dist/calendar/locale/vi_VN.d.ts +2 -0
- package/dist/calendar/locale/vi_VN.js +5 -0
- package/dist/calendar/locale/zh_CN.d.ts +2 -0
- package/dist/calendar/locale/zh_CN.js +5 -0
- package/dist/calendar/locale/zh_TW.d.ts +2 -0
- package/dist/calendar/locale/zh_TW.js +5 -0
- package/dist/calendar/style/index.d.ts +69 -0
- package/dist/calendar/style/index.js +151 -0
- package/dist/card/Card.d.ts +88 -0
- package/dist/card/Card.js +309 -0
- package/dist/card/CardGrid.d.ts +11 -0
- package/dist/card/CardGrid.js +35 -0
- package/dist/card/CardMeta.d.ts +42 -0
- package/dist/card/CardMeta.js +107 -0
- package/dist/card/index.d.ts +4 -0
- package/dist/card/index.js +14 -0
- package/dist/card/style/index.d.ts +78 -0
- package/dist/card/style/index.js +266 -0
- package/dist/carousel/index.d.ts +56 -0
- package/dist/carousel/index.js +441 -0
- package/dist/carousel/style/index.d.ts +51 -0
- package/dist/carousel/style/index.js +301 -0
- package/dist/cascader/Panel.d.ts +23 -0
- package/dist/cascader/Panel.js +158 -0
- package/dist/cascader/hooks/useBase.d.ts +12 -0
- package/dist/cascader/hooks/useBase.js +15 -0
- package/dist/cascader/hooks/useCheckable.d.ts +4 -0
- package/dist/cascader/hooks/useCheckable.js +8 -0
- package/dist/cascader/hooks/useIcons.d.ts +14 -0
- package/dist/cascader/hooks/useIcons.js +14 -0
- package/dist/cascader/index.d.ts +151 -0
- package/dist/cascader/index.js +711 -0
- package/dist/cascader/style/columns.d.ts +8 -0
- package/dist/cascader/style/columns.js +78 -0
- package/dist/cascader/style/index.d.ts +55 -0
- package/dist/cascader/style/index.js +32 -0
- package/dist/cascader/style/panel.d.ts +8 -0
- package/dist/cascader/style/panel.js +21 -0
- package/dist/checkbox/Checkbox.d.ts +77 -0
- package/dist/checkbox/Checkbox.js +270 -0
- package/dist/checkbox/Group.d.ts +65 -0
- package/dist/checkbox/Group.js +178 -0
- package/dist/checkbox/GroupContext.d.ts +18 -0
- package/dist/checkbox/GroupContext.js +11 -0
- package/dist/checkbox/index.d.ts +3 -0
- package/dist/checkbox/index.js +10 -0
- package/dist/checkbox/style/index.d.ts +29 -0
- package/dist/checkbox/style/index.js +156 -0
- package/dist/checkbox/useBubbleLock.d.ts +9 -0
- package/dist/checkbox/useBubbleLock.js +31 -0
- package/dist/collapse/Collapse.d.ts +89 -0
- package/dist/collapse/Collapse.js +199 -0
- package/dist/collapse/CollapsePanel.d.ts +28 -0
- package/dist/collapse/CollapsePanel.js +80 -0
- package/dist/collapse/index.d.ts +3 -0
- package/dist/collapse/index.js +7 -0
- package/dist/collapse/style/index.d.ts +74 -0
- package/dist/collapse/style/index.js +175 -0
- package/dist/color-picker/ColorPicker.d.ts +17 -0
- package/dist/color-picker/ColorPicker.js +352 -0
- package/dist/color-picker/ColorPickerPanel.d.ts +21 -0
- package/dist/color-picker/ColorPickerPanel.js +185 -0
- package/dist/color-picker/color.d.ts +32 -0
- package/dist/color-picker/color.js +77 -0
- package/dist/color-picker/components/ColorAlphaInput.d.ts +10 -0
- package/dist/color-picker/components/ColorAlphaInput.js +47 -0
- package/dist/color-picker/components/ColorClear.d.ts +11 -0
- package/dist/color-picker/components/ColorClear.js +61 -0
- package/dist/color-picker/components/ColorHexInput.d.ts +10 -0
- package/dist/color-picker/components/ColorHexInput.js +45 -0
- package/dist/color-picker/components/ColorHsbInput.d.ts +10 -0
- package/dist/color-picker/components/ColorHsbInput.js +67 -0
- package/dist/color-picker/components/ColorInput.d.ts +16 -0
- package/dist/color-picker/components/ColorInput.js +94 -0
- package/dist/color-picker/components/ColorPresets.d.ts +13 -0
- package/dist/color-picker/components/ColorPresets.js +81 -0
- package/dist/color-picker/components/ColorRgbInput.d.ts +10 -0
- package/dist/color-picker/components/ColorRgbInput.js +64 -0
- package/dist/color-picker/components/ColorSlider.d.ts +31 -0
- package/dist/color-picker/components/ColorSlider.js +198 -0
- package/dist/color-picker/components/ColorSteppers.d.ts +13 -0
- package/dist/color-picker/components/ColorSteppers.js +61 -0
- package/dist/color-picker/components/ColorTrigger.d.ts +21 -0
- package/dist/color-picker/components/ColorTrigger.js +113 -0
- package/dist/color-picker/components/PanelPicker/GradientColorBar.d.ts +12 -0
- package/dist/color-picker/components/PanelPicker/GradientColorBar.js +165 -0
- package/dist/color-picker/components/PanelPicker/index.d.ts +4 -0
- package/dist/color-picker/components/PanelPicker/index.js +133 -0
- package/dist/color-picker/components/PanelPresets.d.ts +4 -0
- package/dist/color-picker/components/PanelPresets.js +21 -0
- package/dist/color-picker/context.d.ts +44 -0
- package/dist/color-picker/context.js +128 -0
- package/dist/color-picker/hooks/useModeColor.d.ts +12 -0
- package/dist/color-picker/hooks/useModeColor.js +57 -0
- package/dist/color-picker/index.d.ts +7 -0
- package/dist/color-picker/index.js +5 -0
- package/dist/color-picker/interface.d.ts +129 -0
- package/dist/color-picker/interface.js +6 -0
- package/dist/color-picker/style/color-block.d.ts +11 -0
- package/dist/color-picker/style/color-block.js +32 -0
- package/dist/color-picker/style/index.d.ts +68 -0
- package/dist/color-picker/style/index.js +174 -0
- package/dist/color-picker/style/input.d.ts +8 -0
- package/dist/color-picker/style/input.js +63 -0
- package/dist/color-picker/style/picker.d.ts +8 -0
- package/dist/color-picker/style/picker.js +33 -0
- package/dist/color-picker/style/presets.d.ts +8 -0
- package/dist/color-picker/style/presets.js +81 -0
- package/dist/color-picker/style/slider.d.ts +8 -0
- package/dist/color-picker/style/slider.js +78 -0
- package/dist/color-picker/util.d.ts +19 -0
- package/dist/color-picker/util.js +70 -0
- package/dist/components.d.ts +181 -0
- package/dist/components.js +266 -0
- package/dist/config-provider/DisabledContext.d.ts +10 -0
- package/dist/config-provider/DisabledContext.js +24 -0
- package/dist/config-provider/SizeContext.d.ts +14 -0
- package/dist/config-provider/SizeContext.js +23 -0
- package/dist/config-provider/context.d.ts +519 -0
- package/dist/config-provider/context.js +96 -0
- package/dist/config-provider/defaultRenderEmpty.d.ts +10 -0
- package/dist/config-provider/defaultRenderEmpty.js +39 -0
- package/dist/config-provider/define.d.ts +136 -0
- package/dist/config-provider/define.js +1 -0
- package/dist/config-provider/hooks/useCSSVarCls.d.ts +13 -0
- package/dist/config-provider/hooks/useCSSVarCls.js +15 -0
- package/dist/config-provider/hooks/useConfig.d.ts +8 -0
- package/dist/config-provider/hooks/useConfig.js +11 -0
- package/dist/config-provider/hooks/useSize.d.ts +5 -0
- package/dist/config-provider/hooks/useSize.js +14 -0
- package/dist/config-provider/hooks/useTheme.d.ts +8 -0
- package/dist/config-provider/hooks/useTheme.js +47 -0
- package/dist/config-provider/hooks/useThemeKey.d.ts +5 -0
- package/dist/config-provider/hooks/useThemeKey.js +6 -0
- package/dist/config-provider/index.d.ts +40 -0
- package/dist/config-provider/index.js +1062 -0
- package/dist/config-provider/style/index.d.ts +3 -0
- package/dist/config-provider/style/index.js +2 -0
- package/dist/date-picker/PickerButton.d.ts +6 -0
- package/dist/date-picker/PickerButton.js +119 -0
- package/dist/date-picker/generatePicker/SuffixIcon.d.ts +12 -0
- package/dist/date-picker/generatePicker/SuffixIcon.js +51 -0
- package/dist/date-picker/generatePicker/constant.d.ts +8 -0
- package/dist/date-picker/generatePicker/constant.js +8 -0
- package/dist/date-picker/generatePicker/generateRangePicker.d.ts +54 -0
- package/dist/date-picker/generatePicker/generateRangePicker.js +1537 -0
- package/dist/date-picker/generatePicker/generateSinglePicker.d.ts +63 -0
- package/dist/date-picker/generatePicker/generateSinglePicker.js +1545 -0
- package/dist/date-picker/generatePicker/index.d.ts +16 -0
- package/dist/date-picker/generatePicker/index.js +17 -0
- package/dist/date-picker/generatePicker/interface.d.ts +173 -0
- package/dist/date-picker/generatePicker/interface.js +1 -0
- package/dist/date-picker/generatePicker/useComponents.d.ts +18 -0
- package/dist/date-picker/generatePicker/useComponents.js +10 -0
- package/dist/date-picker/hooks/useMergedPickerSemantic.d.ts +7 -0
- package/dist/date-picker/hooks/useMergedPickerSemantic.js +39 -0
- package/dist/date-picker/index.d.ts +32 -0
- package/dist/date-picker/index.js +23 -0
- package/dist/date-picker/locale/ar_EG.d.ts +6 -0
- package/dist/date-picker/locale/ar_EG.js +47 -0
- package/dist/date-picker/locale/az_AZ.d.ts +6 -0
- package/dist/date-picker/locale/az_AZ.js +21 -0
- package/dist/date-picker/locale/bg_BG.d.ts +6 -0
- package/dist/date-picker/locale/bg_BG.js +21 -0
- package/dist/date-picker/locale/bn_BD.d.ts +6 -0
- package/dist/date-picker/locale/bn_BD.js +21 -0
- package/dist/date-picker/locale/by_BY.d.ts +6 -0
- package/dist/date-picker/locale/by_BY.js +21 -0
- package/dist/date-picker/locale/ca_ES.d.ts +6 -0
- package/dist/date-picker/locale/ca_ES.js +21 -0
- package/dist/date-picker/locale/cs_CZ.d.ts +6 -0
- package/dist/date-picker/locale/cs_CZ.js +21 -0
- package/dist/date-picker/locale/da_DK.d.ts +6 -0
- package/dist/date-picker/locale/da_DK.js +21 -0
- package/dist/date-picker/locale/de_DE.d.ts +6 -0
- package/dist/date-picker/locale/de_DE.js +46 -0
- package/dist/date-picker/locale/el_GR.d.ts +6 -0
- package/dist/date-picker/locale/el_GR.js +21 -0
- package/dist/date-picker/locale/en_GB.d.ts +6 -0
- package/dist/date-picker/locale/en_GB.js +21 -0
- package/dist/date-picker/locale/en_US.d.ts +6 -0
- package/dist/date-picker/locale/en_US.js +21 -0
- package/dist/date-picker/locale/es_ES.d.ts +6 -0
- package/dist/date-picker/locale/es_ES.js +44 -0
- package/dist/date-picker/locale/es_US.d.ts +6 -0
- package/dist/date-picker/locale/es_US.js +12 -0
- package/dist/date-picker/locale/et_EE.d.ts +6 -0
- package/dist/date-picker/locale/et_EE.js +21 -0
- package/dist/date-picker/locale/eu_ES.d.ts +6 -0
- package/dist/date-picker/locale/eu_ES.js +21 -0
- package/dist/date-picker/locale/fa_IR.d.ts +6 -0
- package/dist/date-picker/locale/fa_IR.js +21 -0
- package/dist/date-picker/locale/fi_FI.d.ts +6 -0
- package/dist/date-picker/locale/fi_FI.js +21 -0
- package/dist/date-picker/locale/fr_BE.d.ts +6 -0
- package/dist/date-picker/locale/fr_BE.js +21 -0
- package/dist/date-picker/locale/fr_CA.d.ts +6 -0
- package/dist/date-picker/locale/fr_CA.js +21 -0
- package/dist/date-picker/locale/fr_FR.d.ts +6 -0
- package/dist/date-picker/locale/fr_FR.js +21 -0
- package/dist/date-picker/locale/ga_IE.d.ts +6 -0
- package/dist/date-picker/locale/ga_IE.js +21 -0
- package/dist/date-picker/locale/gl_ES.d.ts +6 -0
- package/dist/date-picker/locale/gl_ES.js +21 -0
- package/dist/date-picker/locale/he_IL.d.ts +6 -0
- package/dist/date-picker/locale/he_IL.js +21 -0
- package/dist/date-picker/locale/hi_IN.d.ts +6 -0
- package/dist/date-picker/locale/hi_IN.js +21 -0
- package/dist/date-picker/locale/hr_HR.d.ts +6 -0
- package/dist/date-picker/locale/hr_HR.js +21 -0
- package/dist/date-picker/locale/hu_HU.d.ts +6 -0
- package/dist/date-picker/locale/hu_HU.js +21 -0
- package/dist/date-picker/locale/id_ID.d.ts +6 -0
- package/dist/date-picker/locale/id_ID.js +21 -0
- package/dist/date-picker/locale/is_IS.d.ts +6 -0
- package/dist/date-picker/locale/is_IS.js +21 -0
- package/dist/date-picker/locale/it_IT.d.ts +6 -0
- package/dist/date-picker/locale/it_IT.js +21 -0
- package/dist/date-picker/locale/ja_JP.d.ts +6 -0
- package/dist/date-picker/locale/ja_JP.js +44 -0
- package/dist/date-picker/locale/ka_GE.d.ts +6 -0
- package/dist/date-picker/locale/ka_GE.js +21 -0
- package/dist/date-picker/locale/kk_KZ.d.ts +6 -0
- package/dist/date-picker/locale/kk_KZ.js +21 -0
- package/dist/date-picker/locale/km_KH.d.ts +6 -0
- package/dist/date-picker/locale/km_KH.js +21 -0
- package/dist/date-picker/locale/kmr_IQ.d.ts +6 -0
- package/dist/date-picker/locale/kmr_IQ.js +21 -0
- package/dist/date-picker/locale/kn_IN.d.ts +6 -0
- package/dist/date-picker/locale/kn_IN.js +21 -0
- package/dist/date-picker/locale/ko_KR.d.ts +6 -0
- package/dist/date-picker/locale/ko_KR.js +44 -0
- package/dist/date-picker/locale/lt_LT.d.ts +6 -0
- package/dist/date-picker/locale/lt_LT.js +21 -0
- package/dist/date-picker/locale/lv_LV.d.ts +6 -0
- package/dist/date-picker/locale/lv_LV.js +21 -0
- package/dist/date-picker/locale/mk_MK.d.ts +6 -0
- package/dist/date-picker/locale/mk_MK.js +21 -0
- package/dist/date-picker/locale/ml_IN.d.ts +6 -0
- package/dist/date-picker/locale/ml_IN.js +21 -0
- package/dist/date-picker/locale/mn_MN.d.ts +6 -0
- package/dist/date-picker/locale/mn_MN.js +21 -0
- package/dist/date-picker/locale/mr_IN.d.ts +6 -0
- package/dist/date-picker/locale/mr_IN.js +21 -0
- package/dist/date-picker/locale/ms_MY.d.ts +6 -0
- package/dist/date-picker/locale/ms_MY.js +21 -0
- package/dist/date-picker/locale/my_MM.d.ts +6 -0
- package/dist/date-picker/locale/my_MM.js +21 -0
- package/dist/date-picker/locale/nb_NO.d.ts +6 -0
- package/dist/date-picker/locale/nb_NO.js +21 -0
- package/dist/date-picker/locale/nl_BE.d.ts +6 -0
- package/dist/date-picker/locale/nl_BE.js +21 -0
- package/dist/date-picker/locale/nl_NL.d.ts +6 -0
- package/dist/date-picker/locale/nl_NL.js +21 -0
- package/dist/date-picker/locale/pl_PL.d.ts +6 -0
- package/dist/date-picker/locale/pl_PL.js +47 -0
- package/dist/date-picker/locale/pt_BR.d.ts +6 -0
- package/dist/date-picker/locale/pt_BR.js +21 -0
- package/dist/date-picker/locale/pt_PT.d.ts +6 -0
- package/dist/date-picker/locale/pt_PT.js +47 -0
- package/dist/date-picker/locale/ro_RO.d.ts +6 -0
- package/dist/date-picker/locale/ro_RO.js +21 -0
- package/dist/date-picker/locale/ru_RU.d.ts +6 -0
- package/dist/date-picker/locale/ru_RU.js +44 -0
- package/dist/date-picker/locale/si_LK.d.ts +6 -0
- package/dist/date-picker/locale/si_LK.js +21 -0
- package/dist/date-picker/locale/sk_SK.d.ts +6 -0
- package/dist/date-picker/locale/sk_SK.js +21 -0
- package/dist/date-picker/locale/sl_SI.d.ts +6 -0
- package/dist/date-picker/locale/sl_SI.js +44 -0
- package/dist/date-picker/locale/sq_AL.d.ts +6 -0
- package/dist/date-picker/locale/sq_AL.js +72 -0
- package/dist/date-picker/locale/sr_RS.d.ts +6 -0
- package/dist/date-picker/locale/sr_RS.js +21 -0
- package/dist/date-picker/locale/sv_SE.d.ts +6 -0
- package/dist/date-picker/locale/sv_SE.js +21 -0
- package/dist/date-picker/locale/ta_IN.d.ts +6 -0
- package/dist/date-picker/locale/ta_IN.js +21 -0
- package/dist/date-picker/locale/th_TH.d.ts +6 -0
- package/dist/date-picker/locale/th_TH.js +21 -0
- package/dist/date-picker/locale/tk_TK.d.ts +6 -0
- package/dist/date-picker/locale/tk_TK.js +21 -0
- package/dist/date-picker/locale/tr_TR.d.ts +6 -0
- package/dist/date-picker/locale/tr_TR.js +21 -0
- package/dist/date-picker/locale/uk_UA.d.ts +6 -0
- package/dist/date-picker/locale/uk_UA.js +44 -0
- package/dist/date-picker/locale/ur_PK.d.ts +6 -0
- package/dist/date-picker/locale/ur_PK.js +21 -0
- package/dist/date-picker/locale/uz_UZ.d.ts +6 -0
- package/dist/date-picker/locale/uz_UZ.js +21 -0
- package/dist/date-picker/locale/vi_VN.d.ts +6 -0
- package/dist/date-picker/locale/vi_VN.js +44 -0
- package/dist/date-picker/locale/zh_CN.d.ts +6 -0
- package/dist/date-picker/locale/zh_CN.js +22 -0
- package/dist/date-picker/locale/zh_TW.d.ts +6 -0
- package/dist/date-picker/locale/zh_TW.js +22 -0
- package/dist/date-picker/style/index.d.ts +10 -0
- package/dist/date-picker/style/index.js +322 -0
- package/dist/date-picker/style/multiple.d.ts +7 -0
- package/dist/date-picker/style/multiple.js +78 -0
- package/dist/date-picker/style/panel.d.ts +9 -0
- package/dist/date-picker/style/panel.js +384 -0
- package/dist/date-picker/style/token.d.ts +107 -0
- package/dist/date-picker/style/token.js +60 -0
- package/dist/date-picker/style/util.d.ts +33 -0
- package/dist/date-picker/style/util.js +99 -0
- package/dist/date-picker/style/variants.d.ts +7 -0
- package/dist/date-picker/style/variants.js +31 -0
- package/dist/date-picker/util.d.ts +19 -0
- package/dist/date-picker/util.js +44 -0
- package/dist/date-range/DateRange.d.ts +63 -0
- package/dist/date-range/DateRange.js +306 -0
- package/dist/date-range/index.d.ts +2 -0
- package/dist/date-range/index.js +8 -0
- package/dist/date-range/style/index.d.ts +12 -0
- package/dist/date-range/style/index.js +30 -0
- package/dist/descriptions/Cell.d.ts +18 -0
- package/dist/descriptions/Cell.js +104 -0
- package/dist/descriptions/DescriptionsContext.d.ts +6636 -0
- package/dist/descriptions/DescriptionsContext.js +11 -0
- package/dist/descriptions/Item.d.ts +24 -0
- package/dist/descriptions/Item.js +70 -0
- package/dist/descriptions/Row.d.ts +20 -0
- package/dist/descriptions/Row.js +161 -0
- package/dist/descriptions/constant.d.ts +5 -0
- package/dist/descriptions/constant.js +12 -0
- package/dist/descriptions/hooks/useItems.d.ts +31 -0
- package/dist/descriptions/hooks/useItems.js +21 -0
- package/dist/descriptions/hooks/useRow.d.ts +6 -0
- package/dist/descriptions/hooks/useRow.js +53 -0
- package/dist/descriptions/index.d.ts +74 -0
- package/dist/descriptions/index.js +197 -0
- package/dist/descriptions/style/index.d.ts +64 -0
- package/dist/descriptions/style/index.js +141 -0
- package/dist/divider/index.d.ts +48 -0
- package/dist/divider/index.js +169 -0
- package/dist/divider/style/index.d.ts +30 -0
- package/dist/divider/style/index.js +126 -0
- package/dist/drawer/DrawerPanel.d.ts +75 -0
- package/dist/drawer/DrawerPanel.js +220 -0
- package/dist/drawer/index.d.ts +66 -0
- package/dist/drawer/index.js +548 -0
- package/dist/drawer/style/index.d.ts +34 -0
- package/dist/drawer/style/index.js +222 -0
- package/dist/drawer/style/motion.d.ts +8 -0
- package/dist/drawer/style/motion.js +53 -0
- package/dist/drawer/useFocusable.d.ts +13 -0
- package/dist/drawer/useFocusable.js +13 -0
- package/dist/dropdown/dropdown.d.ts +77 -0
- package/dist/dropdown/dropdown.js +293 -0
- package/dist/dropdown/index.d.ts +8 -0
- package/dist/dropdown/index.js +5 -0
- package/dist/dropdown/style/index.d.ts +47 -0
- package/dist/dropdown/style/index.js +241 -0
- package/dist/dropdown/style/status.d.ts +8 -0
- package/dist/dropdown/style/status.js +14 -0
- package/dist/empty/empty.d.ts +4 -0
- package/dist/empty/empty.js +68 -0
- package/dist/empty/index.d.ts +48 -0
- package/dist/empty/index.js +113 -0
- package/dist/empty/simple.d.ts +4 -0
- package/dist/empty/simple.js +44 -0
- package/dist/empty/style/index.d.ts +10 -0
- package/dist/empty/style/index.js +48 -0
- package/dist/empty/utils.d.ts +4 -0
- package/dist/empty/utils.js +8 -0
- package/dist/flex/index.d.ts +10 -0
- package/dist/flex/index.js +69 -0
- package/dist/flex/interface.d.ts +15 -0
- package/dist/flex/interface.js +1 -0
- package/dist/flex/style/index.d.ts +36 -0
- package/dist/flex/style/index.js +66 -0
- package/dist/flex/utils.d.ts +9 -0
- package/dist/flex/utils.js +61 -0
- package/dist/float-button/BackTop.d.ts +27 -0
- package/dist/float-button/BackTop.js +199 -0
- package/dist/float-button/FloatButton.d.ts +66 -0
- package/dist/float-button/FloatButton.js +230 -0
- package/dist/float-button/FloatButtonGroup.d.ts +62 -0
- package/dist/float-button/FloatButtonGroup.js +355 -0
- package/dist/float-button/PurePanel.d.ts +17 -0
- package/dist/float-button/PurePanel.js +305 -0
- package/dist/float-button/context.d.ts +18 -0
- package/dist/float-button/context.js +19 -0
- package/dist/float-button/hooks/useScroll.d.ts +16 -0
- package/dist/float-button/hooks/useScroll.js +80 -0
- package/dist/float-button/index.d.ts +4 -0
- package/dist/float-button/index.js +16 -0
- package/dist/float-button/style/button.d.ts +7 -0
- package/dist/float-button/style/button.js +79 -0
- package/dist/float-button/style/group.d.ts +7 -0
- package/dist/float-button/style/group.js +97 -0
- package/dist/float-button/style/index.d.ts +39 -0
- package/dist/float-button/style/index.js +23 -0
- package/dist/form/ErrorList.d.ts +18 -0
- package/dist/form/ErrorList.js +133 -0
- package/dist/form/Form.d.ts +114 -0
- package/dist/form/Form.js +572 -0
- package/dist/form/FormItem/ItemHolder.d.ts +37 -0
- package/dist/form/FormItem/ItemHolder.js +263 -0
- package/dist/form/FormItem/StatusProvider.d.ts +18 -0
- package/dist/form/FormItem/StatusProvider.js +92 -0
- package/dist/form/FormItem/index.d.ts +47 -0
- package/dist/form/FormItem/index.js +574 -0
- package/dist/form/FormItemInput.d.ts +24 -0
- package/dist/form/FormItemInput.js +162 -0
- package/dist/form/FormItemLabel.d.ts +36 -0
- package/dist/form/FormItemLabel.js +134 -0
- package/dist/form/context.d.ts +129 -0
- package/dist/form/context.js +117 -0
- package/dist/form/hooks/useForm.d.ts +38 -0
- package/dist/form/hooks/useForm.js +72 -0
- package/dist/form/hooks/useVariant.d.ts +9 -0
- package/dist/form/hooks/useVariant.js +29 -0
- package/dist/form/index.d.ts +5 -0
- package/dist/form/index.js +13 -0
- package/dist/form/interface.d.ts +9 -0
- package/dist/form/interface.js +1 -0
- package/dist/form/namePathType.d.ts +9 -0
- package/dist/form/namePathType.js +1 -0
- package/dist/form/style/explain.d.ts +8 -0
- package/dist/form/style/explain.js +36 -0
- package/dist/form/style/fallbackCmp.d.ts +14 -0
- package/dist/form/style/fallbackCmp.js +13 -0
- package/dist/form/style/index.d.ts +83 -0
- package/dist/form/style/index.js +320 -0
- package/dist/form/types.d.ts +309 -0
- package/dist/form/types.js +1 -0
- package/dist/form/util.d.ts +18 -0
- package/dist/form/util.js +45 -0
- package/dist/form/utils/NameMap.d.ts +20 -0
- package/dist/form/utils/NameMap.js +49 -0
- package/dist/form/utils/asyncUtil.d.ts +5 -0
- package/dist/form/utils/asyncUtil.js +23 -0
- package/dist/form/utils/messages.d.ts +51 -0
- package/dist/form/utils/messages.js +50 -0
- package/dist/form/utils/typeUtil.d.ts +6 -0
- package/dist/form/utils/typeUtil.js +10 -0
- package/dist/form/utils/validateUtil.d.ts +9 -0
- package/dist/form/utils/validateUtil.js +154 -0
- package/dist/form/utils/valueUtil.d.ts +49 -0
- package/dist/form/utils/valueUtil.js +98 -0
- package/dist/form/validateMessagesContext.d.ts +7 -0
- package/dist/form/validateMessagesContext.js +11 -0
- package/dist/grid/RowContext.d.ts +10 -0
- package/dist/grid/RowContext.js +11 -0
- package/dist/grid/col.d.ts +31 -0
- package/dist/grid/col.js +172 -0
- package/dist/grid/hooks/useBreakpoint.d.ts +22 -0
- package/dist/grid/hooks/useBreakpoint.js +28 -0
- package/dist/grid/hooks/useGutter.d.ts +8 -0
- package/dist/grid/hooks/useGutter.js +35 -0
- package/dist/grid/index.d.ts +22 -0
- package/dist/grid/index.js +9 -0
- package/dist/grid/row.d.ts +18 -0
- package/dist/grid/row.js +94 -0
- package/dist/grid/style/index.d.ts +23 -0
- package/dist/grid/style/index.js +97 -0
- package/dist/image/PreviewGroup.d.ts +30 -0
- package/dist/image/PreviewGroup.js +138 -0
- package/dist/image/hooks/useMergedPreviewConfig.d.ts +19 -0
- package/dist/image/hooks/useMergedPreviewConfig.js +30 -0
- package/dist/image/hooks/usePreviewConfig.d.ts +62 -0
- package/dist/image/hooks/usePreviewConfig.js +69 -0
- package/dist/image/index.d.ts +104 -0
- package/dist/image/index.js +168 -0
- package/dist/image/style/index.d.ts +59 -0
- package/dist/image/style/index.js +216 -0
- package/dist/index.d.ts +176 -0
- package/dist/index.js +137 -0
- package/dist/input/Group.d.ts +13 -0
- package/dist/input/Group.js +53 -0
- package/dist/input/Input.d.ts +101 -0
- package/dist/input/Input.js +389 -0
- package/dist/input/OTP/OTPInput.d.ts +18 -0
- package/dist/input/OTP/OTPInput.js +255 -0
- package/dist/input/OTP/index.d.ts +59 -0
- package/dist/input/OTP/index.js +220 -0
- package/dist/input/Password.d.ts +45 -0
- package/dist/input/Password.js +309 -0
- package/dist/input/Search.d.ts +74 -0
- package/dist/input/Search.js +377 -0
- package/dist/input/TextArea.d.ts +73 -0
- package/dist/input/TextArea.js +296 -0
- package/dist/input/hooks/useRemovePasswordTimeout.d.ts +9 -0
- package/dist/input/hooks/useRemovePasswordTimeout.js +27 -0
- package/dist/input/index.d.ts +26 -0
- package/dist/input/index.js +28 -0
- package/dist/input/style/index.d.ts +24 -0
- package/dist/input/style/index.js +377 -0
- package/dist/input/style/otp.d.ts +8 -0
- package/dist/input/style/otp.js +47 -0
- package/dist/input/style/search.d.ts +8 -0
- package/dist/input/style/search.js +40 -0
- package/dist/input/style/textarea.d.ts +9 -0
- package/dist/input/style/textarea.js +79 -0
- package/dist/input/style/token.d.ts +100 -0
- package/dist/input/style/token.js +36 -0
- package/dist/input/style/variants.d.ts +27 -0
- package/dist/input/style/variants.js +289 -0
- package/dist/input-number/index.d.ts +115 -0
- package/dist/input-number/index.js +463 -0
- package/dist/input-number/style/index.d.ts +9 -0
- package/dist/input-number/style/index.js +202 -0
- package/dist/input-number/style/token.d.ts +64 -0
- package/dist/input-number/style/token.js +23 -0
- package/dist/layout/Sider.d.ts +58 -0
- package/dist/layout/Sider.js +209 -0
- package/dist/layout/context.d.ts +11 -0
- package/dist/layout/context.js +14 -0
- package/dist/layout/hooks/useHasSider.d.ts +5 -0
- package/dist/layout/hooks/useHasSider.js +8 -0
- package/dist/layout/index.d.ts +10 -0
- package/dist/layout/index.js +19 -0
- package/dist/layout/layout.d.ts +17 -0
- package/dist/layout/layout.js +159 -0
- package/dist/layout/style/index.d.ts +102 -0
- package/dist/layout/style/index.js +74 -0
- package/dist/layout/style/sider.d.ts +8 -0
- package/dist/layout/style/sider.js +79 -0
- package/dist/listy/index.d.ts +12 -0
- package/dist/listy/index.js +130 -0
- package/dist/listy/interface.d.ts +26 -0
- package/dist/listy/interface.js +1 -0
- package/dist/listy/style/index.d.ts +27 -0
- package/dist/listy/style/index.js +64 -0
- package/dist/locale/ar_EG.d.ts +5 -0
- package/dist/locale/ar_EG.js +151 -0
- package/dist/locale/az_AZ.d.ts +5 -0
- package/dist/locale/az_AZ.js +155 -0
- package/dist/locale/bg_BG.d.ts +5 -0
- package/dist/locale/bg_BG.js +153 -0
- package/dist/locale/bn_BD.d.ts +5 -0
- package/dist/locale/bn_BD.js +154 -0
- package/dist/locale/by_BY.d.ts +5 -0
- package/dist/locale/by_BY.js +154 -0
- package/dist/locale/ca_ES.d.ts +5 -0
- package/dist/locale/ca_ES.js +154 -0
- package/dist/locale/cs_CZ.d.ts +5 -0
- package/dist/locale/cs_CZ.js +154 -0
- package/dist/locale/da_DK.d.ts +5 -0
- package/dist/locale/da_DK.js +153 -0
- package/dist/locale/de_DE.d.ts +5 -0
- package/dist/locale/de_DE.js +150 -0
- package/dist/locale/el_GR.d.ts +5 -0
- package/dist/locale/el_GR.js +154 -0
- package/dist/locale/en_GB.d.ts +5 -0
- package/dist/locale/en_GB.js +155 -0
- package/dist/locale/en_US.d.ts +5 -0
- package/dist/locale/en_US.js +171 -0
- package/dist/locale/es_ES.d.ts +5 -0
- package/dist/locale/es_ES.js +154 -0
- package/dist/locale/es_US.d.ts +5 -0
- package/dist/locale/es_US.js +12 -0
- package/dist/locale/et_EE.d.ts +5 -0
- package/dist/locale/et_EE.js +154 -0
- package/dist/locale/eu_ES.d.ts +5 -0
- package/dist/locale/eu_ES.js +154 -0
- package/dist/locale/fa_IR.d.ts +5 -0
- package/dist/locale/fa_IR.js +154 -0
- package/dist/locale/fi_FI.d.ts +5 -0
- package/dist/locale/fi_FI.js +104 -0
- package/dist/locale/fr_BE.d.ts +5 -0
- package/dist/locale/fr_BE.js +154 -0
- package/dist/locale/fr_CA.d.ts +5 -0
- package/dist/locale/fr_CA.js +154 -0
- package/dist/locale/fr_FR.d.ts +5 -0
- package/dist/locale/fr_FR.js +154 -0
- package/dist/locale/ga_IE.d.ts +5 -0
- package/dist/locale/ga_IE.js +151 -0
- package/dist/locale/gl_ES.d.ts +5 -0
- package/dist/locale/gl_ES.js +151 -0
- package/dist/locale/he_IL.d.ts +5 -0
- package/dist/locale/he_IL.js +151 -0
- package/dist/locale/hi_IN.d.ts +5 -0
- package/dist/locale/hi_IN.js +154 -0
- package/dist/locale/hr_HR.d.ts +5 -0
- package/dist/locale/hr_HR.js +154 -0
- package/dist/locale/hu_HU.d.ts +5 -0
- package/dist/locale/hu_HU.js +104 -0
- package/dist/locale/hy_AM.d.ts +5 -0
- package/dist/locale/hy_AM.js +159 -0
- package/dist/locale/id_ID.d.ts +5 -0
- package/dist/locale/id_ID.js +154 -0
- package/dist/locale/index.d.ts +103 -0
- package/dist/locale/index.js +33 -0
- package/dist/locale/is_IS.d.ts +5 -0
- package/dist/locale/is_IS.js +153 -0
- package/dist/locale/it_IT.d.ts +5 -0
- package/dist/locale/it_IT.js +154 -0
- package/dist/locale/ja_JP.d.ts +5 -0
- package/dist/locale/ja_JP.js +154 -0
- package/dist/locale/ka_GE.d.ts +5 -0
- package/dist/locale/ka_GE.js +154 -0
- package/dist/locale/kk_KZ.d.ts +5 -0
- package/dist/locale/kk_KZ.js +150 -0
- package/dist/locale/km_KH.d.ts +5 -0
- package/dist/locale/km_KH.js +150 -0
- package/dist/locale/kmr_IQ.d.ts +5 -0
- package/dist/locale/kmr_IQ.js +104 -0
- package/dist/locale/kn_IN.d.ts +5 -0
- package/dist/locale/kn_IN.js +155 -0
- package/dist/locale/ko_KR.d.ts +5 -0
- package/dist/locale/ko_KR.js +154 -0
- package/dist/locale/ku_IQ.d.ts +5 -0
- package/dist/locale/ku_IQ.js +104 -0
- package/dist/locale/lt_LT.d.ts +5 -0
- package/dist/locale/lt_LT.js +154 -0
- package/dist/locale/lv_LV.d.ts +5 -0
- package/dist/locale/lv_LV.js +104 -0
- package/dist/locale/mk_MK.d.ts +5 -0
- package/dist/locale/mk_MK.js +105 -0
- package/dist/locale/ml_IN.d.ts +5 -0
- package/dist/locale/ml_IN.js +154 -0
- package/dist/locale/mn_MN.d.ts +5 -0
- package/dist/locale/mn_MN.js +154 -0
- package/dist/locale/mr_IN.d.ts +5 -0
- package/dist/locale/mr_IN.js +154 -0
- package/dist/locale/ms_MY.d.ts +5 -0
- package/dist/locale/ms_MY.js +155 -0
- package/dist/locale/my_MM.d.ts +5 -0
- package/dist/locale/my_MM.js +154 -0
- package/dist/locale/nb_NO.d.ts +5 -0
- package/dist/locale/nb_NO.js +154 -0
- package/dist/locale/ne_NP.d.ts +5 -0
- package/dist/locale/ne_NP.js +154 -0
- package/dist/locale/nl_BE.d.ts +5 -0
- package/dist/locale/nl_BE.js +154 -0
- package/dist/locale/nl_NL.d.ts +5 -0
- package/dist/locale/nl_NL.js +154 -0
- package/dist/locale/pl_PL.d.ts +5 -0
- package/dist/locale/pl_PL.js +154 -0
- package/dist/locale/pt_BR.d.ts +5 -0
- package/dist/locale/pt_BR.js +154 -0
- package/dist/locale/pt_PT.d.ts +5 -0
- package/dist/locale/pt_PT.js +154 -0
- package/dist/locale/ro_RO.d.ts +5 -0
- package/dist/locale/ro_RO.js +154 -0
- package/dist/locale/ru_RU.d.ts +5 -0
- package/dist/locale/ru_RU.js +154 -0
- package/dist/locale/si_LK.d.ts +5 -0
- package/dist/locale/si_LK.js +154 -0
- package/dist/locale/sk_SK.d.ts +5 -0
- package/dist/locale/sk_SK.js +154 -0
- package/dist/locale/sl_SI.d.ts +5 -0
- package/dist/locale/sl_SI.js +104 -0
- package/dist/locale/sq_AL.d.ts +5 -0
- package/dist/locale/sq_AL.js +164 -0
- package/dist/locale/sr_RS.d.ts +5 -0
- package/dist/locale/sr_RS.js +154 -0
- package/dist/locale/sv_SE.d.ts +5 -0
- package/dist/locale/sv_SE.js +154 -0
- package/dist/locale/ta_IN.d.ts +5 -0
- package/dist/locale/ta_IN.js +155 -0
- package/dist/locale/th_TH.d.ts +5 -0
- package/dist/locale/th_TH.js +154 -0
- package/dist/locale/tk_TK.d.ts +5 -0
- package/dist/locale/tk_TK.js +150 -0
- package/dist/locale/tr_TR.d.ts +5 -0
- package/dist/locale/tr_TR.js +154 -0
- package/dist/locale/uk_UA.d.ts +5 -0
- package/dist/locale/uk_UA.js +154 -0
- package/dist/locale/ur_PK.d.ts +5 -0
- package/dist/locale/ur_PK.js +154 -0
- package/dist/locale/useLocale.d.ts +11 -0
- package/dist/locale/useLocale.js +32 -0
- package/dist/locale/uz_UZ.d.ts +5 -0
- package/dist/locale/uz_UZ.js +154 -0
- package/dist/locale/vi_VN.d.ts +5 -0
- package/dist/locale/vi_VN.js +154 -0
- package/dist/locale/zh_CN.d.ts +5 -0
- package/dist/locale/zh_CN.js +171 -0
- package/dist/locale/zh_HK.d.ts +5 -0
- package/dist/locale/zh_HK.js +152 -0
- package/dist/locale/zh_TW.d.ts +5 -0
- package/dist/locale/zh_TW.js +155 -0
- package/dist/masonry/Masonry.d.ts +76 -0
- package/dist/masonry/Masonry.js +209 -0
- package/dist/masonry/MasonryItem.d.ts +26 -0
- package/dist/masonry/MasonryItem.js +78 -0
- package/dist/masonry/hooks/useDelay.d.ts +4 -0
- package/dist/masonry/hooks/useDelay.js +18 -0
- package/dist/masonry/hooks/usePositions.d.ts +16 -0
- package/dist/masonry/hooks/usePositions.js +28 -0
- package/dist/masonry/hooks/useRefs.d.ts +5 -0
- package/dist/masonry/hooks/useRefs.js +13 -0
- package/dist/masonry/index.d.ts +5 -0
- package/dist/masonry/index.js +8 -0
- package/dist/masonry/style/index.d.ts +14 -0
- package/dist/masonry/style/index.js +37 -0
- package/dist/mentions/index.d.ts +100 -0
- package/dist/mentions/index.js +430 -0
- package/dist/mentions/style/index.d.ts +29 -0
- package/dist/mentions/style/index.js +192 -0
- package/dist/menu/MenuContext.d.ts +33 -0
- package/dist/menu/MenuContext.js +26 -0
- package/dist/menu/MenuDivider.d.ts +8 -0
- package/dist/menu/MenuDivider.js +31 -0
- package/dist/menu/MenuItem.d.ts +27 -0
- package/dist/menu/MenuItem.js +231 -0
- package/dist/menu/MenuItemGroup.d.ts +14 -0
- package/dist/menu/MenuItemGroup.js +48 -0
- package/dist/menu/OverrideContext.d.ts +22 -0
- package/dist/menu/OverrideContext.js +26 -0
- package/dist/menu/SubMenu.d.ts +15 -0
- package/dist/menu/SubMenu.js +163 -0
- package/dist/menu/index.d.ts +27 -0
- package/dist/menu/index.js +213 -0
- package/dist/menu/interface.d.ts +28 -0
- package/dist/menu/interface.js +1 -0
- package/dist/menu/menu.d.ts +120 -0
- package/dist/menu/menu.js +351 -0
- package/dist/menu/style/horizontal.d.ts +8 -0
- package/dist/menu/style/horizontal.js +30 -0
- package/dist/menu/style/index.d.ts +364 -0
- package/dist/menu/style/index.js +430 -0
- package/dist/menu/style/rtl.d.ts +9 -0
- package/dist/menu/style/rtl.js +13 -0
- package/dist/menu/style/theme.d.ts +6 -0
- package/dist/menu/style/theme.js +108 -0
- package/dist/menu/style/vertical.d.ts +7 -0
- package/dist/menu/style/vertical.js +142 -0
- package/dist/message/PureList.d.ts +28 -0
- package/dist/message/PureList.js +76 -0
- package/dist/message/PurePanel.d.ts +41 -0
- package/dist/message/PurePanel.js +212 -0
- package/dist/message/index.d.ts +29 -0
- package/dist/message/index.js +249 -0
- package/dist/message/interface.d.ts +120 -0
- package/dist/message/interface.js +1 -0
- package/dist/message/style/index.d.ts +36 -0
- package/dist/message/style/index.js +116 -0
- package/dist/message/useMessage.d.ts +10 -0
- package/dist/message/useMessage.js +237 -0
- package/dist/message/util.d.ts +8 -0
- package/dist/message/util.js +21 -0
- package/dist/modal/ConfirmDialog.d.ts +43 -0
- package/dist/modal/ConfirmDialog.js +1167 -0
- package/dist/modal/Modal.d.ts +21 -0
- package/dist/modal/Modal.js +534 -0
- package/dist/modal/PurePanel.d.ts +25 -0
- package/dist/modal/PurePanel.js +266 -0
- package/dist/modal/components/ConfirmCancelBtn.d.ts +12 -0
- package/dist/modal/components/ConfirmCancelBtn.js +32 -0
- package/dist/modal/components/ConfirmOkBtn.d.ts +11 -0
- package/dist/modal/components/ConfirmOkBtn.js +33 -0
- package/dist/modal/components/NormalCancelBtn.d.ts +10 -0
- package/dist/modal/components/NormalCancelBtn.js +24 -0
- package/dist/modal/components/NormalOkBtn.d.ts +10 -0
- package/dist/modal/components/NormalOkBtn.js +25 -0
- package/dist/modal/confirm.d.ts +22 -0
- package/dist/modal/confirm.js +414 -0
- package/dist/modal/context.d.ts +11 -0
- package/dist/modal/context.js +11 -0
- package/dist/modal/destroyFns.d.ts +4 -0
- package/dist/modal/destroyFns.js +4 -0
- package/dist/modal/index.d.ts +20 -0
- package/dist/modal/index.js +24 -0
- package/dist/modal/interface.d.ts +194 -0
- package/dist/modal/interface.js +1 -0
- package/dist/modal/locale.d.ts +6 -0
- package/dist/modal/locale.js +27 -0
- package/dist/modal/shared.d.ts +10 -0
- package/dist/modal/shared.js +120 -0
- package/dist/modal/style/confirm.d.ts +10 -0
- package/dist/modal/style/confirm.js +68 -0
- package/dist/modal/style/index.d.ts +141 -0
- package/dist/modal/style/index.js +261 -0
- package/dist/modal/useModal/HookModal.d.ts +15 -0
- package/dist/modal/useModal/HookModal.js +69 -0
- package/dist/modal/useModal/index.d.ts +7 -0
- package/dist/modal/useModal/index.js +95 -0
- package/dist/modal/useModal/interface.d.ts +7 -0
- package/dist/modal/useModal/interface.js +1 -0
- package/dist/modal/useModal/types.d.ts +8 -0
- package/dist/modal/useModal/types.js +1 -0
- package/dist/notice/Notice.d.ts +37 -0
- package/dist/notice/Notice.js +184 -0
- package/dist/notice/index.d.ts +2 -0
- package/dist/notice/index.js +8 -0
- package/dist/notice/style/index.d.ts +12 -0
- package/dist/notice/style/index.js +115 -0
- package/dist/notice-group/NoticeGroup.d.ts +56 -0
- package/dist/notice-group/NoticeGroup.js +260 -0
- package/dist/notice-group/index.d.ts +2 -0
- package/dist/notice-group/index.js +8 -0
- package/dist/notice-group/style/index.d.ts +12 -0
- package/dist/notice-group/style/index.js +55 -0
- package/dist/notification/PureList.d.ts +32 -0
- package/dist/notification/PureList.js +73 -0
- package/dist/notification/PurePanel.d.ts +44 -0
- package/dist/notification/PurePanel.js +356 -0
- package/dist/notification/index.d.ts +29 -0
- package/dist/notification/index.js +205 -0
- package/dist/notification/interface.d.ts +111 -0
- package/dist/notification/interface.js +11 -0
- package/dist/notification/style/index.d.ts +126 -0
- package/dist/notification/style/index.js +136 -0
- package/dist/notification/style/notification.d.ts +22 -0
- package/dist/notification/style/notification.js +192 -0
- package/dist/notification/style/placement.d.ts +9 -0
- package/dist/notification/style/placement.js +140 -0
- package/dist/notification/useNotification.d.ts +10 -0
- package/dist/notification/useNotification.js +253 -0
- package/dist/notification/util.d.ts +21 -0
- package/dist/notification/util.js +29 -0
- package/dist/package.js +4 -0
- package/dist/package.json.d.ts +208 -0
- package/dist/pagination/Pagination.d.ts +13 -0
- package/dist/pagination/Pagination.js +361 -0
- package/dist/pagination/index.d.ts +6 -0
- package/dist/pagination/index.js +5 -0
- package/dist/pagination/interface.d.ts +97 -0
- package/dist/pagination/interface.js +1 -0
- package/dist/pagination/style/bordered.d.ts +10 -0
- package/dist/pagination/style/bordered.js +71 -0
- package/dist/pagination/style/index.d.ts +116 -0
- package/dist/pagination/style/index.js +456 -0
- package/dist/pagination/useShowSizeChanger.d.ts +15 -0
- package/dist/pagination/useShowSizeChanger.js +17 -0
- package/dist/popconfirm/PurePanel.d.ts +24 -0
- package/dist/popconfirm/PurePanel.js +298 -0
- package/dist/popconfirm/index.d.ts +63 -0
- package/dist/popconfirm/index.js +346 -0
- package/dist/popconfirm/style/index.d.ts +23 -0
- package/dist/popconfirm/style/index.js +42 -0
- package/dist/popover/PurePanel.d.ts +19 -0
- package/dist/popover/PurePanel.js +396 -0
- package/dist/popover/index.d.ts +42 -0
- package/dist/popover/index.js +252 -0
- package/dist/popover/style/index.d.ts +63 -0
- package/dist/popover/style/index.js +114 -0
- package/dist/progress/Circle.d.ts +16 -0
- package/dist/progress/Circle.js +193 -0
- package/dist/progress/Line.d.ts +46 -0
- package/dist/progress/Line.js +226 -0
- package/dist/progress/Steps.d.ts +19 -0
- package/dist/progress/Steps.js +138 -0
- package/dist/progress/index.d.ts +2 -0
- package/dist/progress/index.js +5 -0
- package/dist/progress/progress.d.ts +84 -0
- package/dist/progress/progress.js +271 -0
- package/dist/progress/style/index.d.ts +44 -0
- package/dist/progress/style/index.js +189 -0
- package/dist/progress/utils.d.ts +13 -0
- package/dist/progress/utils.js +49 -0
- package/dist/qrcode/QrcodeStatus.d.ts +13 -0
- package/dist/qrcode/QrcodeStatus.js +51 -0
- package/dist/qrcode/index.d.ts +14 -0
- package/dist/qrcode/index.js +188 -0
- package/dist/qrcode/interface.d.ts +50 -0
- package/dist/qrcode/interface.js +1 -0
- package/dist/qrcode/style/index.d.ts +12 -0
- package/dist/qrcode/style/index.js +61 -0
- package/dist/radio/context.d.ts +9 -0
- package/dist/radio/context.js +18 -0
- package/dist/radio/group.d.ts +14 -0
- package/dist/radio/group.js +233 -0
- package/dist/radio/index.d.ts +16 -0
- package/dist/radio/index.js +17 -0
- package/dist/radio/interface.d.ts +114 -0
- package/dist/radio/interface.js +1 -0
- package/dist/radio/radio.d.ts +19 -0
- package/dist/radio/radio.js +241 -0
- package/dist/radio/radioButton.d.ts +20 -0
- package/dist/radio/radioButton.js +120 -0
- package/dist/radio/style/index.d.ts +87 -0
- package/dist/radio/style/index.js +364 -0
- package/dist/rate/index.d.ts +30 -0
- package/dist/rate/index.js +179 -0
- package/dist/rate/style/index.d.ts +44 -0
- package/dist/rate/style/index.js +80 -0
- package/dist/ref-input/RefInput.d.ts +134 -0
- package/dist/ref-input/RefInput.js +780 -0
- package/dist/ref-input/index.d.ts +2 -0
- package/dist/ref-input/index.js +8 -0
- package/dist/ref-input/style/index.d.ts +12 -0
- package/dist/ref-input/style/index.js +195 -0
- package/dist/ref-table/RefTable.d.ts +103 -0
- package/dist/ref-table/RefTable.js +608 -0
- package/dist/ref-table/cells/ClickCell.d.ts +12 -0
- package/dist/ref-table/cells/ClickCell.js +29 -0
- package/dist/ref-table/cells/DateCell.d.ts +19 -0
- package/dist/ref-table/cells/DateCell.js +61 -0
- package/dist/ref-table/cells/EditableCell.d.ts +32 -0
- package/dist/ref-table/cells/EditableCell.js +79 -0
- package/dist/ref-table/cells/HPDictRefCell.d.ts +21 -0
- package/dist/ref-table/cells/HPDictRefCell.js +93 -0
- package/dist/ref-table/cells/ListCell.d.ts +27 -0
- package/dist/ref-table/cells/ListCell.js +105 -0
- package/dist/ref-table/cells/NumberCell.d.ts +24 -0
- package/dist/ref-table/cells/NumberCell.js +67 -0
- package/dist/ref-table/cells/RefCell.d.ts +26 -0
- package/dist/ref-table/cells/RefCell.js +110 -0
- package/dist/ref-table/cells/SelectCell.d.ts +21 -0
- package/dist/ref-table/cells/SelectCell.js +73 -0
- package/dist/ref-table/cells/TextAreaCell.d.ts +13 -0
- package/dist/ref-table/cells/TextAreaCell.js +58 -0
- package/dist/ref-table/index.d.ts +2 -0
- package/dist/ref-table/index.js +8 -0
- package/dist/ref-table/style/index.d.ts +12 -0
- package/dist/ref-table/style/index.js +89 -0
- package/dist/reset.css +246 -0
- package/dist/result/index.d.ts +63 -0
- package/dist/result/index.js +218 -0
- package/dist/result/noFound.d.ts +4 -0
- package/dist/result/noFound.js +270 -0
- package/dist/result/serverError.d.ts +4 -0
- package/dist/result/serverError.js +317 -0
- package/dist/result/style/index.d.ts +34 -0
- package/dist/result/style/index.js +82 -0
- package/dist/result/unauthorized.d.ts +4 -0
- package/dist/result/unauthorized.js +270 -0
- package/dist/segmented/index.d.ts +87 -0
- package/dist/segmented/index.js +177 -0
- package/dist/segmented/style/index.d.ts +53 -0
- package/dist/segmented/style/index.js +184 -0
- package/dist/select/index.d.ts +160 -0
- package/dist/select/index.js +701 -0
- package/dist/select/mergedBuiltinPlacements.d.ts +6 -0
- package/dist/select/mergedBuiltinPlacements.js +39 -0
- package/dist/select/style/dropdown.d.ts +7 -0
- package/dist/select/style/dropdown.js +120 -0
- package/dist/select/style/index.d.ts +9 -0
- package/dist/select/style/index.js +97 -0
- package/dist/select/style/select-input-customize.d.ts +7 -0
- package/dist/select/style/select-input-customize.js +31 -0
- package/dist/select/style/select-input-multiple.d.ts +7 -0
- package/dist/select/style/select-input-multiple.js +98 -0
- package/dist/select/style/select-input.d.ts +7 -0
- package/dist/select/style/select-input.js +274 -0
- package/dist/select/style/token.d.ts +142 -0
- package/dist/select/style/token.js +41 -0
- package/dist/select/useIcons.d.ts +28 -0
- package/dist/select/useIcons.js +36 -0
- package/dist/select/usePopupRender.d.ts +5 -0
- package/dist/select/usePopupRender.js +18 -0
- package/dist/select/useShowArrow.d.ts +11 -0
- package/dist/select/useShowArrow.js +14 -0
- package/dist/skeleton/Avatar.d.ts +8 -0
- package/dist/skeleton/Avatar.js +67 -0
- package/dist/skeleton/Button.d.ts +13 -0
- package/dist/skeleton/Button.js +71 -0
- package/dist/skeleton/Element.d.ts +25 -0
- package/dist/skeleton/Element.js +74 -0
- package/dist/skeleton/Image.d.ts +6 -0
- package/dist/skeleton/Image.js +53 -0
- package/dist/skeleton/Input.d.ts +13 -0
- package/dist/skeleton/Input.js +66 -0
- package/dist/skeleton/Node.d.ts +14 -0
- package/dist/skeleton/Node.js +58 -0
- package/dist/skeleton/Paragraph.d.ts +11 -0
- package/dist/skeleton/Paragraph.js +46 -0
- package/dist/skeleton/Skeleton.d.ts +60 -0
- package/dist/skeleton/Skeleton.js +180 -0
- package/dist/skeleton/Title.d.ts +9 -0
- package/dist/skeleton/Title.js +32 -0
- package/dist/skeleton/index.d.ts +7 -0
- package/dist/skeleton/index.js +10 -0
- package/dist/skeleton/style/index.d.ts +47 -0
- package/dist/skeleton/style/index.js +240 -0
- package/dist/slider/Context.d.ts +13 -0
- package/dist/slider/Context.js +13 -0
- package/dist/slider/SliderTooltip.d.ts +12 -0
- package/dist/slider/SliderTooltip.js +182 -0
- package/dist/slider/index.d.ts +113 -0
- package/dist/slider/index.js +328 -0
- package/dist/slider/style/index.d.ts +103 -0
- package/dist/slider/style/index.js +263 -0
- package/dist/space/Addon.d.ts +12 -0
- package/dist/space/Addon.js +49 -0
- package/dist/space/Compact.d.ts +30 -0
- package/dist/space/Compact.js +140 -0
- package/dist/space/Item.d.ts +21 -0
- package/dist/space/Item.js +41 -0
- package/dist/space/context.d.ts +16 -0
- package/dist/space/context.js +11 -0
- package/dist/space/index.d.ts +45 -0
- package/dist/space/index.js +160 -0
- package/dist/space/style/addon.d.ts +10 -0
- package/dist/space/style/addon.js +82 -0
- package/dist/space/style/compact.d.ts +10 -0
- package/dist/space/style/compact.js +17 -0
- package/dist/space/style/index.d.ts +26 -0
- package/dist/space/style/index.js +44 -0
- package/dist/spin/Indicator/Looper.d.ts +8 -0
- package/dist/spin/Indicator/Looper.js +38 -0
- package/dist/spin/Indicator/Progress.d.ts +8 -0
- package/dist/spin/Indicator/Progress.js +72 -0
- package/dist/spin/Indicator/index.d.ts +10 -0
- package/dist/spin/Indicator/index.js +49 -0
- package/dist/spin/index.d.ts +72 -0
- package/dist/spin/index.js +204 -0
- package/dist/spin/style/index.d.ts +33 -0
- package/dist/spin/style/index.js +204 -0
- package/dist/spin/usePercent.d.ts +5 -0
- package/dist/spin/usePercent.js +38 -0
- package/dist/splitter/Panel.d.ts +6 -0
- package/dist/splitter/Panel.js +122 -0
- package/dist/splitter/SplitBar.d.ts +33 -0
- package/dist/splitter/SplitBar.js +298 -0
- package/dist/splitter/Splitter.d.ts +11 -0
- package/dist/splitter/Splitter.js +252 -0
- package/dist/splitter/hooks/sizeUtil.d.ts +5 -0
- package/dist/splitter/hooks/sizeUtil.js +72 -0
- package/dist/splitter/hooks/useItems.d.ts +17 -0
- package/dist/splitter/hooks/useItems.js +36 -0
- package/dist/splitter/hooks/useResizable.d.ts +14 -0
- package/dist/splitter/hooks/useResizable.js +57 -0
- package/dist/splitter/hooks/useResize.d.ts +10 -0
- package/dist/splitter/hooks/useResize.js +111 -0
- package/dist/splitter/hooks/useSizes.d.ts +11 -0
- package/dist/splitter/hooks/useSizes.js +68 -0
- package/dist/splitter/index.d.ts +7 -0
- package/dist/splitter/index.js +12 -0
- package/dist/splitter/interface.d.ts +154 -0
- package/dist/splitter/interface.js +1 -0
- package/dist/splitter/style/index.d.ts +34 -0
- package/dist/splitter/style/index.js +237 -0
- package/dist/statistic/Number.d.ts +12 -0
- package/dist/statistic/Number.js +74 -0
- package/dist/statistic/Statistic.d.ts +64 -0
- package/dist/statistic/Statistic.js +192 -0
- package/dist/statistic/Timer.d.ts +24 -0
- package/dist/statistic/Timer.js +171 -0
- package/dist/statistic/index.d.ts +11 -0
- package/dist/statistic/index.js +12 -0
- package/dist/statistic/style/index.d.ts +23 -0
- package/dist/statistic/style/index.js +43 -0
- package/dist/statistic/utils.d.ts +18 -0
- package/dist/statistic/utils.js +41 -0
- package/dist/steps/PanelArrow.d.ts +7 -0
- package/dist/steps/PanelArrow.js +22 -0
- package/dist/steps/ProgressIcon.d.ts +9 -0
- package/dist/steps/ProgressIcon.js +46 -0
- package/dist/steps/context.d.ts +13 -0
- package/dist/steps/context.js +14 -0
- package/dist/steps/index.d.ts +116 -0
- package/dist/steps/index.js +303 -0
- package/dist/steps/style/horizontal.d.ts +8 -0
- package/dist/steps/style/horizontal.js +24 -0
- package/dist/steps/style/icon.d.ts +8 -0
- package/dist/steps/style/icon.js +41 -0
- package/dist/steps/style/index.d.ts +85 -0
- package/dist/steps/style/index.js +118 -0
- package/dist/steps/style/inline.d.ts +8 -0
- package/dist/steps/style/inline.js +47 -0
- package/dist/steps/style/label-placement.d.ts +8 -0
- package/dist/steps/style/label-placement.js +81 -0
- package/dist/steps/style/max-count.d.ts +8 -0
- package/dist/steps/style/max-count.js +8 -0
- package/dist/steps/style/nav.d.ts +8 -0
- package/dist/steps/style/nav.js +88 -0
- package/dist/steps/style/panel.d.ts +8 -0
- package/dist/steps/style/panel.js +100 -0
- package/dist/steps/style/progress-dot.d.ts +8 -0
- package/dist/steps/style/progress-dot.js +37 -0
- package/dist/steps/style/progress.d.ts +8 -0
- package/dist/steps/style/progress.js +38 -0
- package/dist/steps/style/rtl.d.ts +8 -0
- package/dist/steps/style/rtl.js +24 -0
- package/dist/steps/style/small.d.ts +8 -0
- package/dist/steps/style/small.js +19 -0
- package/dist/steps/style/status.d.ts +12 -0
- package/dist/steps/style/status.js +182 -0
- package/dist/steps/style/util.d.ts +10 -0
- package/dist/steps/style/util.js +24 -0
- package/dist/steps/style/vertical.d.ts +8 -0
- package/dist/steps/style/vertical.js +29 -0
- package/dist/steps/useDisplaySteps.d.ts +21 -0
- package/dist/steps/useDisplaySteps.js +95 -0
- package/dist/style/compact-item-vertical.d.ts +7 -0
- package/dist/style/compact-item-vertical.js +34 -0
- package/dist/style/compact-item.d.ts +20 -0
- package/dist/style/compact-item.js +44 -0
- package/dist/style/index.d.ts +17 -0
- package/dist/style/index.js +147 -0
- package/dist/style/motion/collapse.d.ts +8 -0
- package/dist/style/motion/collapse.js +10 -0
- package/dist/style/motion/fade.d.ts +34 -0
- package/dist/style/motion/fade.js +53 -0
- package/dist/style/motion/index.d.ts +7 -0
- package/dist/style/motion/index.js +7 -0
- package/dist/style/motion/motion.d.ts +5 -0
- package/dist/style/motion/motion.js +37 -0
- package/dist/style/motion/move.d.ts +16 -0
- package/dist/style/motion/move.js +134 -0
- package/dist/style/motion/slide.d.ts +16 -0
- package/dist/style/motion/slide.js +137 -0
- package/dist/style/motion/util.d.ts +12 -0
- package/dist/style/motion/util.js +21 -0
- package/dist/style/motion/zoom.d.ts +20 -0
- package/dist/style/motion/zoom.js +174 -0
- package/dist/style/placementArrow.d.ts +28 -0
- package/dist/style/placementArrow.js +144 -0
- package/dist/style/roundedArrow.d.ts +17 -0
- package/dist/style/roundedArrow.js +68 -0
- package/dist/switch/index.d.ts +73 -0
- package/dist/switch/index.js +262 -0
- package/dist/switch/style/index.d.ts +78 -0
- package/dist/switch/style/index.js +253 -0
- package/dist/table/Column.d.ts +20 -0
- package/dist/table/Column.js +214 -0
- package/dist/table/ColumnGroup.d.ts +17 -0
- package/dist/table/ColumnGroup.js +213 -0
- package/dist/table/ExpandIcon.d.ts +18 -0
- package/dist/table/ExpandIcon.js +47 -0
- package/dist/table/InternalTable.d.ts +127 -0
- package/dist/table/InternalTable.js +695 -0
- package/dist/table/Table.d.ts +43 -0
- package/dist/table/Table.js +277 -0
- package/dist/table/TableMeasureRowContext.d.ts +10 -0
- package/dist/table/TableMeasureRowContext.js +19 -0
- package/dist/table/hooks/useColumnTitleProps.d.ts +7 -0
- package/dist/table/hooks/useColumnTitleProps.js +16 -0
- package/dist/table/hooks/useContainerWidth.d.ts +4 -0
- package/dist/table/hooks/useContainerWidth.js +17 -0
- package/dist/table/hooks/useFilledColumns.d.ts +13 -0
- package/dist/table/hooks/useFilledColumns.js +39 -0
- package/dist/table/hooks/useFilter/FilterDropdown.d.ts +39 -0
- package/dist/table/hooks/useFilter/FilterDropdown.js +443 -0
- package/dist/table/hooks/useFilter/FilterSearch.d.ts +13 -0
- package/dist/table/hooks/useFilter/FilterSearch.js +18 -0
- package/dist/table/hooks/useFilter/FilterWrapper.d.ts +12 -0
- package/dist/table/hooks/useFilter/FilterWrapper.js +28 -0
- package/dist/table/hooks/useFilter/index.d.ts +38 -0
- package/dist/table/hooks/useFilter/index.js +163 -0
- package/dist/table/hooks/useLazyKVMap.d.ts +7 -0
- package/dist/table/hooks/useLazyKVMap.js +31 -0
- package/dist/table/hooks/usePagination.d.ts +9 -0
- package/dist/table/hooks/usePagination.js +53 -0
- package/dist/table/hooks/useSelection.d.ts +23 -0
- package/dist/table/hooks/useSelection.js +452 -0
- package/dist/table/hooks/useSorter.d.ts +34 -0
- package/dist/table/hooks/useSorter.js +263 -0
- package/dist/table/hooks/useSpinProps.d.ts +6 -0
- package/dist/table/hooks/useSpinProps.js +14 -0
- package/dist/table/hooks/useTitleColumns.d.ts +6 -0
- package/dist/table/hooks/useTitleColumns.js +16 -0
- package/dist/table/index.d.ts +11 -0
- package/dist/table/index.js +28 -0
- package/dist/table/interface.d.ts +228 -0
- package/dist/table/interface.js +1 -0
- package/dist/table/style/bordered.d.ts +8 -0
- package/dist/table/style/bordered.js +89 -0
- package/dist/table/style/ellipsis.d.ts +8 -0
- package/dist/table/style/ellipsis.js +27 -0
- package/dist/table/style/empty.d.ts +8 -0
- package/dist/table/style/empty.js +14 -0
- package/dist/table/style/expand.d.ts +8 -0
- package/dist/table/style/expand.js +88 -0
- package/dist/table/style/filter.d.ts +7 -0
- package/dist/table/style/filter.js +100 -0
- package/dist/table/style/fixed.d.ts +9 -0
- package/dist/table/style/fixed.js +46 -0
- package/dist/table/style/index.d.ts +220 -0
- package/dist/table/style/index.js +273 -0
- package/dist/table/style/pagination.d.ts +8 -0
- package/dist/table/style/pagination.js +19 -0
- package/dist/table/style/radius.d.ts +8 -0
- package/dist/table/style/radius.js +35 -0
- package/dist/table/style/rtl.d.ts +8 -0
- package/dist/table/style/rtl.js +25 -0
- package/dist/table/style/selection.d.ts +8 -0
- package/dist/table/style/selection.js +56 -0
- package/dist/table/style/size.d.ts +8 -0
- package/dist/table/style/size.js +31 -0
- package/dist/table/style/sorter.d.ts +8 -0
- package/dist/table/style/sorter.js +64 -0
- package/dist/table/style/sticky.d.ts +8 -0
- package/dist/table/style/sticky.js +36 -0
- package/dist/table/style/summary.d.ts +8 -0
- package/dist/table/style/summary.js +17 -0
- package/dist/table/style/virtual.d.ts +8 -0
- package/dist/table/style/virtual.js +62 -0
- package/dist/table/style/yon.d.ts +8 -0
- package/dist/table/style/yon.js +57 -0
- package/dist/table/util.d.ts +17 -0
- package/dist/table/util.js +34 -0
- package/dist/table/utils.d.ts +5 -0
- package/dist/table/utils.js +34 -0
- package/dist/tabs/TabPane.d.ts +19 -0
- package/dist/tabs/TabPane.js +10 -0
- package/dist/tabs/hooks/useAnimateConfig.d.ts +6 -0
- package/dist/tabs/hooks/useAnimateConfig.js +24 -0
- package/dist/tabs/hooks/useLegacyItems.d.ts +6 -0
- package/dist/tabs/hooks/useLegacyItems.js +57 -0
- package/dist/tabs/index.d.ts +143 -0
- package/dist/tabs/index.js +380 -0
- package/dist/tabs/style/index.d.ts +152 -0
- package/dist/tabs/style/index.js +643 -0
- package/dist/tabs/style/motion.d.ts +7 -0
- package/dist/tabs/style/motion.js +27 -0
- package/dist/tag/CheckableTag.d.ts +33 -0
- package/dist/tag/CheckableTag.js +95 -0
- package/dist/tag/CheckableTagGroup.d.ts +49 -0
- package/dist/tag/CheckableTagGroup.js +137 -0
- package/dist/tag/hooks/useColor.d.ts +14 -0
- package/dist/tag/hooks/useColor.js +47 -0
- package/dist/tag/index.d.ts +58 -0
- package/dist/tag/index.js +243 -0
- package/dist/tag/style/index.d.ts +37 -0
- package/dist/tag/style/index.js +141 -0
- package/dist/tag/style/presetCmp.d.ts +10 -0
- package/dist/tag/style/presetCmp.js +27 -0
- package/dist/tag/style/statusCmp.d.ts +10 -0
- package/dist/tag/style/statusCmp.js +33 -0
- package/dist/theme/context.d.ts +57 -0
- package/dist/theme/context.js +25 -0
- package/dist/theme/getDesignToken.d.ts +7 -0
- package/dist/theme/getDesignToken.js +14 -0
- package/dist/theme/index.d.ts +36 -0
- package/dist/theme/index.js +32 -0
- package/dist/theme/interface/alias.d.ts +605 -0
- package/dist/theme/interface/alias.js +1 -0
- package/dist/theme/interface/components.d.ts +155 -0
- package/dist/theme/interface/components.js +1 -0
- package/dist/theme/interface/cssinjs-utils.d.ts +13 -0
- package/dist/theme/interface/cssinjs-utils.js +1 -0
- package/dist/theme/interface/index.d.ts +18 -0
- package/dist/theme/interface/index.js +2 -0
- package/dist/theme/interface/maps/colors.d.ts +565 -0
- package/dist/theme/interface/maps/colors.js +1 -0
- package/dist/theme/interface/maps/font.d.ts +135 -0
- package/dist/theme/interface/maps/font.js +1 -0
- package/dist/theme/interface/maps/index.d.ts +27 -0
- package/dist/theme/interface/maps/index.js +1 -0
- package/dist/theme/interface/maps/size.d.ts +91 -0
- package/dist/theme/interface/maps/size.js +1 -0
- package/dist/theme/interface/maps/style.d.ts +45 -0
- package/dist/theme/interface/maps/style.js +1 -0
- package/dist/theme/interface/presetColors.d.ts +9 -0
- package/dist/theme/interface/presetColors.js +18 -0
- package/dist/theme/interface/seeds.d.ts +238 -0
- package/dist/theme/interface/seeds.js +1 -0
- package/dist/theme/internal.d.ts +14 -0
- package/dist/theme/internal.js +10 -0
- package/dist/theme/themes/ColorMap.d.ts +19 -0
- package/dist/theme/themes/ColorMap.js +1 -0
- package/dist/theme/themes/compact/genCompactSizeMapToken.d.ts +7 -0
- package/dist/theme/themes/compact/genCompactSizeMapToken.js +18 -0
- package/dist/theme/themes/compact/index.d.ts +8 -0
- package/dist/theme/themes/compact/index.js +22 -0
- package/dist/theme/themes/dark/colorAlgorithm.d.ts +5 -0
- package/dist/theme/themes/dark/colorAlgorithm.js +10 -0
- package/dist/theme/themes/dark/colors.d.ts +6 -0
- package/dist/theme/themes/dark/colors.js +48 -0
- package/dist/theme/themes/dark/index.d.ts +8 -0
- package/dist/theme/themes/dark/index.js +47 -0
- package/dist/theme/themes/default/colorAlgorithm.d.ts +5 -0
- package/dist/theme/themes/default/colorAlgorithm.js +10 -0
- package/dist/theme/themes/default/colors.d.ts +6 -0
- package/dist/theme/themes/default/colors.js +48 -0
- package/dist/theme/themes/default/index.d.ts +7 -0
- package/dist/theme/themes/default/index.js +41 -0
- package/dist/theme/themes/default/theme.d.ts +4 -0
- package/dist/theme/themes/default/theme.js +6 -0
- package/dist/theme/themes/seed.d.ts +8 -0
- package/dist/theme/themes/seed.js +60 -0
- package/dist/theme/themes/shared/genColorMapToken.d.ts +12 -0
- package/dist/theme/themes/shared/genColorMapToken.js +88 -0
- package/dist/theme/themes/shared/genCommonMapToken.d.ts +7 -0
- package/dist/theme/themes/shared/genCommonMapToken.js +14 -0
- package/dist/theme/themes/shared/genControlHeight.d.ts +7 -0
- package/dist/theme/themes/shared/genControlHeight.js +11 -0
- package/dist/theme/themes/shared/genFontMapToken.d.ts +6 -0
- package/dist/theme/themes/shared/genFontMapToken.js +37 -0
- package/dist/theme/themes/shared/genFontSizes.d.ts +8 -0
- package/dist/theme/themes/shared/genFontSizes.js +18 -0
- package/dist/theme/themes/shared/genRadius.d.ts +6 -0
- package/dist/theme/themes/shared/genRadius.js +28 -0
- package/dist/theme/themes/shared/genSizeMapToken.d.ts +7 -0
- package/dist/theme/themes/shared/genSizeMapToken.js +17 -0
- package/dist/theme/useToken.d.ts +20 -0
- package/dist/theme/useToken.js +138 -0
- package/dist/theme/util/alias.d.ts +17 -0
- package/dist/theme/util/alias.js +176 -0
- package/dist/theme/util/genPresetColor.d.ts +19 -0
- package/dist/theme/util/genPresetColor.js +21 -0
- package/dist/theme/util/genStyleUtils.d.ts +54 -0
- package/dist/theme/util/genStyleUtils.js +73 -0
- package/dist/theme/util/getAlphaColor.d.ts +4 -0
- package/dist/theme/util/getAlphaColor.js +30 -0
- package/dist/theme/util/useResetIconStyle.d.ts +7 -0
- package/dist/theme/util/useResetIconStyle.js +18 -0
- package/dist/time-picker/index.d.ts +140 -0
- package/dist/time-picker/index.js +2812 -0
- package/dist/time-picker/locale/ar_EG.d.ts +5 -0
- package/dist/time-picker/locale/ar_EG.js +7 -0
- package/dist/time-picker/locale/az_AZ.d.ts +5 -0
- package/dist/time-picker/locale/az_AZ.js +7 -0
- package/dist/time-picker/locale/bg_BG.d.ts +5 -0
- package/dist/time-picker/locale/bg_BG.js +7 -0
- package/dist/time-picker/locale/bn_BD.d.ts +5 -0
- package/dist/time-picker/locale/bn_BD.js +7 -0
- package/dist/time-picker/locale/by_BY.d.ts +5 -0
- package/dist/time-picker/locale/by_BY.js +7 -0
- package/dist/time-picker/locale/ca_ES.d.ts +5 -0
- package/dist/time-picker/locale/ca_ES.js +7 -0
- package/dist/time-picker/locale/cs_CZ.d.ts +5 -0
- package/dist/time-picker/locale/cs_CZ.js +7 -0
- package/dist/time-picker/locale/da_DK.d.ts +5 -0
- package/dist/time-picker/locale/da_DK.js +7 -0
- package/dist/time-picker/locale/de_DE.d.ts +5 -0
- package/dist/time-picker/locale/de_DE.js +7 -0
- package/dist/time-picker/locale/el_GR.d.ts +5 -0
- package/dist/time-picker/locale/el_GR.js +7 -0
- package/dist/time-picker/locale/en_GB.d.ts +5 -0
- package/dist/time-picker/locale/en_GB.js +7 -0
- package/dist/time-picker/locale/en_US.d.ts +5 -0
- package/dist/time-picker/locale/en_US.js +7 -0
- package/dist/time-picker/locale/es_ES.d.ts +5 -0
- package/dist/time-picker/locale/es_ES.js +7 -0
- package/dist/time-picker/locale/et_EE.d.ts +5 -0
- package/dist/time-picker/locale/et_EE.js +7 -0
- package/dist/time-picker/locale/eu_ES.d.ts +5 -0
- package/dist/time-picker/locale/eu_ES.js +7 -0
- package/dist/time-picker/locale/fa_IR.d.ts +5 -0
- package/dist/time-picker/locale/fa_IR.js +7 -0
- package/dist/time-picker/locale/fi_FI.d.ts +5 -0
- package/dist/time-picker/locale/fi_FI.js +7 -0
- package/dist/time-picker/locale/fr_BE.d.ts +5 -0
- package/dist/time-picker/locale/fr_BE.js +7 -0
- package/dist/time-picker/locale/fr_CA.d.ts +5 -0
- package/dist/time-picker/locale/fr_CA.js +7 -0
- package/dist/time-picker/locale/fr_FR.d.ts +5 -0
- package/dist/time-picker/locale/fr_FR.js +7 -0
- package/dist/time-picker/locale/ga_IE.d.ts +5 -0
- package/dist/time-picker/locale/ga_IE.js +7 -0
- package/dist/time-picker/locale/gl_ES.d.ts +5 -0
- package/dist/time-picker/locale/gl_ES.js +7 -0
- package/dist/time-picker/locale/he_IL.d.ts +5 -0
- package/dist/time-picker/locale/he_IL.js +7 -0
- package/dist/time-picker/locale/hi_IN.d.ts +5 -0
- package/dist/time-picker/locale/hi_IN.js +7 -0
- package/dist/time-picker/locale/hr_HR.d.ts +5 -0
- package/dist/time-picker/locale/hr_HR.js +7 -0
- package/dist/time-picker/locale/hu_HU.d.ts +5 -0
- package/dist/time-picker/locale/hu_HU.js +7 -0
- package/dist/time-picker/locale/id_ID.d.ts +5 -0
- package/dist/time-picker/locale/id_ID.js +7 -0
- package/dist/time-picker/locale/is_IS.d.ts +5 -0
- package/dist/time-picker/locale/is_IS.js +7 -0
- package/dist/time-picker/locale/it_IT.d.ts +5 -0
- package/dist/time-picker/locale/it_IT.js +7 -0
- package/dist/time-picker/locale/ja_JP.d.ts +5 -0
- package/dist/time-picker/locale/ja_JP.js +7 -0
- package/dist/time-picker/locale/ka_GE.d.ts +5 -0
- package/dist/time-picker/locale/ka_GE.js +7 -0
- package/dist/time-picker/locale/kk_KZ.d.ts +5 -0
- package/dist/time-picker/locale/kk_KZ.js +7 -0
- package/dist/time-picker/locale/km_KH.d.ts +5 -0
- package/dist/time-picker/locale/km_KH.js +7 -0
- package/dist/time-picker/locale/kmr_IQ.d.ts +5 -0
- package/dist/time-picker/locale/kmr_IQ.js +7 -0
- package/dist/time-picker/locale/kn_IN.d.ts +5 -0
- package/dist/time-picker/locale/kn_IN.js +7 -0
- package/dist/time-picker/locale/ko_KR.d.ts +5 -0
- package/dist/time-picker/locale/ko_KR.js +7 -0
- package/dist/time-picker/locale/lt_LT.d.ts +5 -0
- package/dist/time-picker/locale/lt_LT.js +7 -0
- package/dist/time-picker/locale/lv_LV.d.ts +5 -0
- package/dist/time-picker/locale/lv_LV.js +7 -0
- package/dist/time-picker/locale/mk_MK.d.ts +5 -0
- package/dist/time-picker/locale/mk_MK.js +7 -0
- package/dist/time-picker/locale/ml_IN.d.ts +5 -0
- package/dist/time-picker/locale/ml_IN.js +7 -0
- package/dist/time-picker/locale/mn_MN.d.ts +5 -0
- package/dist/time-picker/locale/mn_MN.js +7 -0
- package/dist/time-picker/locale/mr_IN.d.ts +5 -0
- package/dist/time-picker/locale/mr_IN.js +7 -0
- package/dist/time-picker/locale/ms_MY.d.ts +5 -0
- package/dist/time-picker/locale/ms_MY.js +7 -0
- package/dist/time-picker/locale/my_MM.d.ts +5 -0
- package/dist/time-picker/locale/my_MM.js +7 -0
- package/dist/time-picker/locale/nb_NO.d.ts +5 -0
- package/dist/time-picker/locale/nb_NO.js +7 -0
- package/dist/time-picker/locale/nl_BE.d.ts +5 -0
- package/dist/time-picker/locale/nl_BE.js +7 -0
- package/dist/time-picker/locale/nl_NL.d.ts +5 -0
- package/dist/time-picker/locale/nl_NL.js +7 -0
- package/dist/time-picker/locale/pl_PL.d.ts +5 -0
- package/dist/time-picker/locale/pl_PL.js +7 -0
- package/dist/time-picker/locale/pt_BR.d.ts +5 -0
- package/dist/time-picker/locale/pt_BR.js +7 -0
- package/dist/time-picker/locale/pt_PT.d.ts +5 -0
- package/dist/time-picker/locale/pt_PT.js +7 -0
- package/dist/time-picker/locale/ro_RO.d.ts +5 -0
- package/dist/time-picker/locale/ro_RO.js +7 -0
- package/dist/time-picker/locale/ru_RU.d.ts +5 -0
- package/dist/time-picker/locale/ru_RU.js +7 -0
- package/dist/time-picker/locale/si_LK.d.ts +5 -0
- package/dist/time-picker/locale/si_LK.js +7 -0
- package/dist/time-picker/locale/sk_SK.d.ts +5 -0
- package/dist/time-picker/locale/sk_SK.js +7 -0
- package/dist/time-picker/locale/sl_SI.d.ts +5 -0
- package/dist/time-picker/locale/sl_SI.js +7 -0
- package/dist/time-picker/locale/sq_AL.d.ts +5 -0
- package/dist/time-picker/locale/sq_AL.js +7 -0
- package/dist/time-picker/locale/sr_RS.d.ts +5 -0
- package/dist/time-picker/locale/sr_RS.js +7 -0
- package/dist/time-picker/locale/sv_SE.d.ts +5 -0
- package/dist/time-picker/locale/sv_SE.js +7 -0
- package/dist/time-picker/locale/ta_IN.d.ts +5 -0
- package/dist/time-picker/locale/ta_IN.js +7 -0
- package/dist/time-picker/locale/th_TH.d.ts +5 -0
- package/dist/time-picker/locale/th_TH.js +7 -0
- package/dist/time-picker/locale/tk_TK.d.ts +5 -0
- package/dist/time-picker/locale/tk_TK.js +7 -0
- package/dist/time-picker/locale/tr_TR.d.ts +5 -0
- package/dist/time-picker/locale/tr_TR.js +7 -0
- package/dist/time-picker/locale/uk_UA.d.ts +5 -0
- package/dist/time-picker/locale/uk_UA.js +7 -0
- package/dist/time-picker/locale/ur_PK.d.ts +5 -0
- package/dist/time-picker/locale/ur_PK.js +7 -0
- package/dist/time-picker/locale/uz_UZ.d.ts +5 -0
- package/dist/time-picker/locale/uz_UZ.js +7 -0
- package/dist/time-picker/locale/vi_VN.d.ts +5 -0
- package/dist/time-picker/locale/vi_VN.js +7 -0
- package/dist/time-picker/locale/zh_CN.d.ts +5 -0
- package/dist/time-picker/locale/zh_CN.js +7 -0
- package/dist/time-picker/locale/zh_TW.d.ts +5 -0
- package/dist/time-picker/locale/zh_TW.js +7 -0
- package/dist/timeline/Timeline.d.ts +82 -0
- package/dist/timeline/Timeline.js +207 -0
- package/dist/timeline/TimelineItem.d.ts +14 -0
- package/dist/timeline/TimelineItem.js +91 -0
- package/dist/timeline/index.d.ts +3 -0
- package/dist/timeline/index.js +6 -0
- package/dist/timeline/style/horizontal.d.ts +8 -0
- package/dist/timeline/style/horizontal.js +70 -0
- package/dist/timeline/style/index.d.ts +48 -0
- package/dist/timeline/style/index.js +119 -0
- package/dist/timeline/useItems.d.ts +11 -0
- package/dist/timeline/useItems.js +61 -0
- package/dist/tooltip/PurePanel.d.ts +7 -0
- package/dist/tooltip/PurePanel.js +176 -0
- package/dist/tooltip/UniqueProvider/MotionContent.d.ts +4 -0
- package/dist/tooltip/UniqueProvider/MotionContent.js +16 -0
- package/dist/tooltip/UniqueProvider/index.d.ts +4 -0
- package/dist/tooltip/UniqueProvider/index.js +42 -0
- package/dist/tooltip/hooks/useMergedArrow.d.ts +10 -0
- package/dist/tooltip/hooks/useMergedArrow.js +17 -0
- package/dist/tooltip/index.d.ts +108 -0
- package/dist/tooltip/index.js +309 -0
- package/dist/tooltip/style/index.d.ts +22 -0
- package/dist/tooltip/style/index.js +112 -0
- package/dist/tooltip/util.d.ts +9 -0
- package/dist/tooltip/util.js +26 -0
- package/dist/tour/PurePanel.d.ts +7 -0
- package/dist/tour/PurePanel.js +211 -0
- package/dist/tour/index.d.ts +17 -0
- package/dist/tour/index.js +274 -0
- package/dist/tour/interface.d.ts +116 -0
- package/dist/tour/interface.js +1 -0
- package/dist/tour/panelRender.d.ts +26 -0
- package/dist/tour/panelRender.js +164 -0
- package/dist/tour/style/index.d.ts +35 -0
- package/dist/tour/style/index.js +161 -0
- package/dist/transfer/Actions.d.ts +19 -0
- package/dist/transfer/Actions.js +156 -0
- package/dist/transfer/ListBody.d.ts +9 -0
- package/dist/transfer/ListBody.js +287 -0
- package/dist/transfer/ListItem.d.ts +20 -0
- package/dist/transfer/ListItem.js +111 -0
- package/dist/transfer/Section.d.ts +5 -0
- package/dist/transfer/Section.js +430 -0
- package/dist/transfer/Transfer.d.ts +18 -0
- package/dist/transfer/Transfer.js +504 -0
- package/dist/transfer/hooks/useData.d.ts +8 -0
- package/dist/transfer/hooks/useData.js +39 -0
- package/dist/transfer/hooks/useSelection.d.ts +9 -0
- package/dist/transfer/hooks/useSelection.js +40 -0
- package/dist/transfer/index.d.ts +37 -0
- package/dist/transfer/index.js +18 -0
- package/dist/transfer/interface.d.ts +215 -0
- package/dist/transfer/interface.js +8 -0
- package/dist/transfer/search.d.ts +23 -0
- package/dist/transfer/search.js +44 -0
- package/dist/transfer/style/index.d.ts +43 -0
- package/dist/transfer/style/index.js +215 -0
- package/dist/tree/DirectoryTree.d.ts +15 -0
- package/dist/tree/DirectoryTree.js +428 -0
- package/dist/tree/Tree.d.ts +222 -0
- package/dist/tree/Tree.js +440 -0
- package/dist/tree/index.d.ts +11 -0
- package/dist/tree/index.js +15 -0
- package/dist/tree/style/directory.d.ts +6 -0
- package/dist/tree/style/directory.js +33 -0
- package/dist/tree/style/index.d.ts +75 -0
- package/dist/tree/style/index.js +279 -0
- package/dist/tree/utils/dictUtil.d.ts +15 -0
- package/dist/tree/utils/dictUtil.js +53 -0
- package/dist/tree/utils/dropIndicator.d.ts +12 -0
- package/dist/tree/utils/dropIndicator.js +30 -0
- package/dist/tree/utils/iconUtil.d.ts +15 -0
- package/dist/tree/utils/iconUtil.js +71 -0
- package/dist/tree-select/index.d.ts +178 -0
- package/dist/tree-select/index.js +802 -0
- package/dist/tree-select/style/index.d.ts +10 -0
- package/dist/tree-select/style/index.js +35 -0
- package/dist/typography/Base/CopyBtn.d.ts +22 -0
- package/dist/typography/Base/CopyBtn.js +107 -0
- package/dist/typography/Base/Ellipsis.d.ts +21 -0
- package/dist/typography/Base/Ellipsis.js +243 -0
- package/dist/typography/Base/EllipsisTooltip.d.ts +20 -0
- package/dist/typography/Base/EllipsisTooltip.js +34 -0
- package/dist/typography/Base/index.d.ts +8 -0
- package/dist/typography/Base/index.js +500 -0
- package/dist/typography/Base/util.d.ts +14 -0
- package/dist/typography/Base/util.js +31 -0
- package/dist/typography/Editable.d.ts +29 -0
- package/dist/typography/Editable.js +158 -0
- package/dist/typography/Link.d.ts +13 -0
- package/dist/typography/Link.js +164 -0
- package/dist/typography/Paragraph.d.ts +8 -0
- package/dist/typography/Paragraph.js +145 -0
- package/dist/typography/Text.d.ts +10 -0
- package/dist/typography/Text.js +161 -0
- package/dist/typography/Title.d.ts +11 -0
- package/dist/typography/Title.js +160 -0
- package/dist/typography/Typography.d.ts +7 -0
- package/dist/typography/Typography.js +52 -0
- package/dist/typography/hooks/useCopyClick.d.ts +11 -0
- package/dist/typography/hooks/useCopyClick.js +47 -0
- package/dist/typography/hooks/useMergedConfig.d.ts +4 -0
- package/dist/typography/hooks/useMergedConfig.js +14 -0
- package/dist/typography/hooks/usePrevious.d.ts +6 -0
- package/dist/typography/hooks/usePrevious.js +11 -0
- package/dist/typography/hooks/useTooltipProps.d.ts +5 -0
- package/dist/typography/hooks/useTooltipProps.js +19 -0
- package/dist/typography/index.d.ts +19 -0
- package/dist/typography/index.js +24 -0
- package/dist/typography/interface.d.ts +120 -0
- package/dist/typography/interface.js +1 -0
- package/dist/typography/style/index.d.ts +25 -0
- package/dist/typography/style/index.js +77 -0
- package/dist/typography/style/mixins.d.ts +14 -0
- package/dist/typography/style/mixins.js +254 -0
- package/dist/upload/Dragger.d.ts +12 -0
- package/dist/upload/Dragger.js +198 -0
- package/dist/upload/Upload.d.ts +29 -0
- package/dist/upload/Upload.js +520 -0
- package/dist/upload/UploadList/ListItem.d.ts +32 -0
- package/dist/upload/UploadList/ListItem.js +242 -0
- package/dist/upload/UploadList/index.d.ts +8 -0
- package/dist/upload/UploadList/index.js +303 -0
- package/dist/upload/index.d.ts +19 -0
- package/dist/upload/index.js +14 -0
- package/dist/upload/interface.d.ts +213 -0
- package/dist/upload/interface.js +1 -0
- package/dist/upload/style/dragger.d.ts +8 -0
- package/dist/upload/style/dragger.js +55 -0
- package/dist/upload/style/index.d.ts +28 -0
- package/dist/upload/style/index.js +50 -0
- package/dist/upload/style/list.d.ts +8 -0
- package/dist/upload/style/list.js +78 -0
- package/dist/upload/style/motion.d.ts +7 -0
- package/dist/upload/style/motion.js +37 -0
- package/dist/upload/style/picture.d.ts +9 -0
- package/dist/upload/style/picture.js +182 -0
- package/dist/upload/style/rtl.d.ts +8 -0
- package/dist/upload/style/rtl.js +7 -0
- package/dist/upload/utils.d.ts +11 -0
- package/dist/upload/utils.js +105 -0
- package/dist/version/index.d.ts +2 -0
- package/dist/version/index.js +5 -0
- package/dist/version/token-meta.json +1 -0
- package/dist/version/token.json +1 -0
- package/dist/watermark/context.d.ts +12 -0
- package/dist/watermark/context.js +35 -0
- package/dist/watermark/index.d.ts +34 -0
- package/dist/watermark/index.js +274 -0
- package/dist/watermark/useClips.d.ts +10 -0
- package/dist/watermark/useClips.js +90 -0
- package/dist/watermark/useRafDebounce.d.ts +4 -0
- package/dist/watermark/useRafDebounce.js +21 -0
- package/dist/watermark/useSingletonCache.d.ts +9 -0
- package/dist/watermark/useSingletonCache.js +20 -0
- package/dist/watermark/useWatermark.d.ts +12 -0
- package/dist/watermark/useWatermark.js +49 -0
- package/dist/watermark/utils.d.ts +19 -0
- package/dist/watermark/utils.js +53 -0
- package/global.d.ts +137 -0
- package/package.json +258 -3
- package/web-tags.json +7810 -0
- package/web-types.json +20873 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { genFocusStyle, resetComponent } from "../../style/index.js";
|
|
2
|
+
import { genStyleHooks } from "../../theme/util/genStyleUtils.js";
|
|
3
|
+
import { mergeToken } from "../../theme/internal.js";
|
|
4
|
+
import { unit } from "@zboson/cssinjs";
|
|
5
|
+
//#region src/breadcrumb/style/index.ts
|
|
6
|
+
const genBreadcrumbStyle = (token) => {
|
|
7
|
+
const { componentCls, iconCls, calc } = token;
|
|
8
|
+
return { [componentCls]: {
|
|
9
|
+
...resetComponent(token),
|
|
10
|
+
color: token.itemColor,
|
|
11
|
+
fontSize: token.fontSize,
|
|
12
|
+
[iconCls]: { fontSize: token.iconFontSize },
|
|
13
|
+
ol: {
|
|
14
|
+
display: "flex",
|
|
15
|
+
flexWrap: "wrap",
|
|
16
|
+
margin: 0,
|
|
17
|
+
padding: 0,
|
|
18
|
+
listStyle: "none"
|
|
19
|
+
},
|
|
20
|
+
[`${componentCls}-item a`]: {
|
|
21
|
+
color: token.linkColor,
|
|
22
|
+
transition: `color ${token.motionDurationMid}`,
|
|
23
|
+
padding: `0 ${unit(token.paddingXXS)}`,
|
|
24
|
+
borderRadius: token.borderRadiusSM,
|
|
25
|
+
height: token.fontHeight,
|
|
26
|
+
display: "inline-block",
|
|
27
|
+
marginInline: calc(token.marginXXS).mul(-1).equal(),
|
|
28
|
+
"&:hover": {
|
|
29
|
+
color: token.linkHoverColor,
|
|
30
|
+
backgroundColor: token.colorBgTextHover
|
|
31
|
+
},
|
|
32
|
+
...genFocusStyle(token)
|
|
33
|
+
},
|
|
34
|
+
[`${componentCls}-item:last-child`]: { color: token.lastItemColor },
|
|
35
|
+
[`${componentCls}-separator`]: {
|
|
36
|
+
marginInline: token.separatorMargin,
|
|
37
|
+
color: token.separatorColor
|
|
38
|
+
},
|
|
39
|
+
[`${componentCls}-link`]: {
|
|
40
|
+
"> svg": {
|
|
41
|
+
display: "inline-block",
|
|
42
|
+
verticalAlign: "middle",
|
|
43
|
+
marginBlockEnd: "0.2em"
|
|
44
|
+
},
|
|
45
|
+
[`
|
|
46
|
+
> ${iconCls} + span,
|
|
47
|
+
> ${iconCls} + a,
|
|
48
|
+
> svg + span,
|
|
49
|
+
> svg + a
|
|
50
|
+
`]: { marginInlineStart: token.marginXXS }
|
|
51
|
+
},
|
|
52
|
+
[`${componentCls}-overlay-link`]: {
|
|
53
|
+
borderRadius: token.borderRadiusSM,
|
|
54
|
+
height: token.fontHeight,
|
|
55
|
+
display: "inline-block",
|
|
56
|
+
padding: `0 ${unit(token.paddingXXS)}`,
|
|
57
|
+
marginInline: calc(token.marginXXS).mul(-1).equal(),
|
|
58
|
+
[`> ${iconCls}`]: {
|
|
59
|
+
marginInlineStart: token.marginXXS,
|
|
60
|
+
fontSize: token.fontSizeIcon
|
|
61
|
+
},
|
|
62
|
+
"&:hover": {
|
|
63
|
+
color: token.linkHoverColor,
|
|
64
|
+
backgroundColor: token.colorBgTextHover,
|
|
65
|
+
a: { color: token.linkHoverColor }
|
|
66
|
+
},
|
|
67
|
+
a: { "&:hover": { backgroundColor: "transparent" } }
|
|
68
|
+
},
|
|
69
|
+
[`&${token.componentCls}-rtl`]: { direction: "rtl" }
|
|
70
|
+
} };
|
|
71
|
+
};
|
|
72
|
+
const prepareComponentToken = (token) => ({
|
|
73
|
+
itemColor: token.colorTextDescription,
|
|
74
|
+
lastItemColor: token.colorText,
|
|
75
|
+
iconFontSize: token.fontSize,
|
|
76
|
+
linkColor: token.colorTextDescription,
|
|
77
|
+
linkHoverColor: token.colorText,
|
|
78
|
+
separatorColor: token.colorTextDescription,
|
|
79
|
+
separatorMargin: token.marginXS
|
|
80
|
+
});
|
|
81
|
+
var style_default = genStyleHooks("Breadcrumb", (token) => {
|
|
82
|
+
const breadcrumbToken = mergeToken(token, {});
|
|
83
|
+
return genBreadcrumbStyle(breadcrumbToken);
|
|
84
|
+
}, prepareComponentToken);
|
|
85
|
+
//#endregion
|
|
86
|
+
export { style_default as default, prepareComponentToken };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { VueNode } from "../_util/type.js";
|
|
2
|
+
import { BreadcrumbProps, ItemType } from "./Breadcrumb.js";
|
|
3
|
+
//#region src/breadcrumb/useItemRender.d.ts
|
|
4
|
+
type AddParameters<TFunction extends (...args: any) => any, TParameters extends [...args: any]> = (...args: [...Parameters<TFunction>, ...TParameters]) => ReturnType<TFunction>;
|
|
5
|
+
type ItemRender = NonNullable<BreadcrumbProps['itemRender']>;
|
|
6
|
+
type InternalItemRenderParams = AddParameters<ItemRender, [href?: string, index?: number]>;
|
|
7
|
+
declare function renderItem(prefixCls: string, item: ItemType, children: VueNode, href?: string): import("vue/jsx-runtime").JSX.Element | null;
|
|
8
|
+
declare function useItemRender(prefixCls: string, itemRender?: ItemRender, titleRender?: BreadcrumbProps['titleRender']): InternalItemRenderParams;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { useItemRender as default, renderItem };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { getSlotPropsFnRun } from "../_util/tools.js";
|
|
2
|
+
import { checkRenderNode } from "../_util/vueNode.js";
|
|
3
|
+
import { createVNode, mergeProps } from "vue";
|
|
4
|
+
import { clsx } from "@v-c/util";
|
|
5
|
+
import pickAttrs from "@v-c/util/dist/pickAttrs";
|
|
6
|
+
//#region src/breadcrumb/useItemRender.tsx
|
|
7
|
+
function getBreadcrumbName(route, params, titleRender, index) {
|
|
8
|
+
const title = getSlotPropsFnRun({}, { title: route.title }, "title");
|
|
9
|
+
const _renderTitle = checkRenderNode(titleRender?.({
|
|
10
|
+
item: route,
|
|
11
|
+
index
|
|
12
|
+
}));
|
|
13
|
+
const _title = _renderTitle !== void 0 ? _renderTitle : title;
|
|
14
|
+
if (_title === void 0 || _title === null) return null;
|
|
15
|
+
const paramsKeys = Object.keys(params).join("|");
|
|
16
|
+
return typeof _title === "object" ? _title : String(_title).replace(new RegExp(`:(${paramsKeys})`, "g"), (replacement, key) => params[key] || replacement);
|
|
17
|
+
}
|
|
18
|
+
function renderItem(prefixCls, item, children, href) {
|
|
19
|
+
if (children === null || children === void 0) return null;
|
|
20
|
+
const { class: className, ...restItem } = item;
|
|
21
|
+
const passedProps = { ...pickAttrs(restItem, {
|
|
22
|
+
data: true,
|
|
23
|
+
aria: true
|
|
24
|
+
}) };
|
|
25
|
+
if (href !== void 0) return createVNode("a", mergeProps(passedProps, {
|
|
26
|
+
"class": clsx(`${prefixCls}-link`, className),
|
|
27
|
+
"href": href
|
|
28
|
+
}), [children]);
|
|
29
|
+
return createVNode("span", mergeProps(passedProps, { "class": clsx(`${prefixCls}-link`, className) }), [children]);
|
|
30
|
+
}
|
|
31
|
+
function useItemRender(prefixCls, itemRender, titleRender) {
|
|
32
|
+
const mergedItemRender = (item, params, routes, path, href, index) => {
|
|
33
|
+
if (itemRender) return itemRender(item, params, routes, path);
|
|
34
|
+
return renderItem(prefixCls, item, getBreadcrumbName(item, params, titleRender, index), href);
|
|
35
|
+
};
|
|
36
|
+
return mergedItemRender;
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
export { useItemRender as default, renderItem };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { RenderNodeFn, 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 { ComponentBaseProps } from "../config-provider/context.js";
|
|
6
|
+
import { ButtonColorType, ButtonHTMLType, ButtonShape, ButtonType, ButtonVariantType } from "./buttonHelper.js";
|
|
7
|
+
import { CSSProperties, SlotsType } from "vue";
|
|
8
|
+
//#region src/button/Button.d.ts
|
|
9
|
+
type LegacyButtonType = ButtonType | 'danger';
|
|
10
|
+
type ButtonSemanticName = keyof ButtonSemanticClassNames & keyof ButtonSemanticStyles;
|
|
11
|
+
interface ButtonSemanticClassNames {
|
|
12
|
+
root?: string;
|
|
13
|
+
icon?: string;
|
|
14
|
+
content?: string;
|
|
15
|
+
}
|
|
16
|
+
interface ButtonSemanticStyles {
|
|
17
|
+
root?: CSSProperties;
|
|
18
|
+
icon?: CSSProperties;
|
|
19
|
+
content?: CSSProperties;
|
|
20
|
+
}
|
|
21
|
+
type ButtonClassNamesType = SemanticClassNamesType<BaseButtonProps, ButtonSemanticClassNames>;
|
|
22
|
+
type ButtonStylesType = SemanticStylesType<BaseButtonProps, ButtonSemanticStyles>;
|
|
23
|
+
interface BaseButtonProps extends ComponentBaseProps {
|
|
24
|
+
type?: ButtonType;
|
|
25
|
+
color?: ButtonColorType;
|
|
26
|
+
variant?: ButtonVariantType;
|
|
27
|
+
icon?: VueNode;
|
|
28
|
+
iconPlacement?: 'start' | 'end';
|
|
29
|
+
shape?: ButtonShape;
|
|
30
|
+
size?: SizeType;
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
loading?: boolean | {
|
|
33
|
+
delay?: number;
|
|
34
|
+
icon?: RenderNodeFn;
|
|
35
|
+
};
|
|
36
|
+
ghost?: boolean;
|
|
37
|
+
danger?: boolean;
|
|
38
|
+
block?: boolean;
|
|
39
|
+
[key: `data-${string}`]: string;
|
|
40
|
+
classes?: ButtonClassNamesType;
|
|
41
|
+
styles?: ButtonStylesType;
|
|
42
|
+
autoFocus?: boolean;
|
|
43
|
+
/** @private Only for internal usage. Do not use in your production */
|
|
44
|
+
_skipSemantic?: boolean;
|
|
45
|
+
}
|
|
46
|
+
declare function convertLegacyProps(type?: LegacyButtonType): Pick<BaseButtonProps, 'danger' | 'type'>;
|
|
47
|
+
interface ButtonEmitsProps {
|
|
48
|
+
onClick?: ButtonEmits['click'];
|
|
49
|
+
}
|
|
50
|
+
interface ButtonProps extends BaseButtonProps, ButtonEmitsProps {
|
|
51
|
+
href?: string;
|
|
52
|
+
htmlType?: ButtonHTMLType;
|
|
53
|
+
target?: '_self' | '_blank' | '_parent' | '_top' | string;
|
|
54
|
+
autoInsertSpace?: boolean;
|
|
55
|
+
}
|
|
56
|
+
interface ButtonEmits {
|
|
57
|
+
click: (e: MouseEvent) => void;
|
|
58
|
+
}
|
|
59
|
+
interface ButtonSlots {
|
|
60
|
+
default?: () => any;
|
|
61
|
+
icon?: () => any;
|
|
62
|
+
loadingIcon?: () => any;
|
|
63
|
+
}
|
|
64
|
+
declare const InternalCompoundedButton: import("vue").DefineSetupFnComponent<ButtonProps, ButtonEmits, SlotsType<ButtonSlots>, ButtonProps, import("vue").PublicProps>;
|
|
65
|
+
type CompoundedComponent = typeof InternalCompoundedButton & {
|
|
66
|
+
/** @internal */
|
|
67
|
+
__ANT_BUTTON: boolean;
|
|
68
|
+
};
|
|
69
|
+
declare const Button: CompoundedComponent;
|
|
70
|
+
//#endregion
|
|
71
|
+
export { BaseButtonProps, ButtonClassNamesType, ButtonEmits, ButtonEmitsProps, ButtonProps, ButtonSemanticClassNames, ButtonSemanticName, ButtonSemanticStyles, ButtonSlots, ButtonStylesType, LegacyButtonType, convertLegacyProps, Button as default };
|
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
|
+
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
3
|
+
import { useCompactItemContext } from "../space/Compact.js";
|
|
4
|
+
import { useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
5
|
+
import { getSlotPropsFnRun, toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
|
|
6
|
+
import { useDisabledContext } from "../config-provider/DisabledContext.js";
|
|
7
|
+
import wave_default from "../_util/wave/index.js";
|
|
8
|
+
import { isTwoCNChar, isUnBorderedButtonVariant, spaceChildren } from "./buttonHelper.js";
|
|
9
|
+
import IconWrapper from "./IconWrapper.js";
|
|
10
|
+
import DefaultLoadingIcon from "./DefaultLoadingIcon.js";
|
|
11
|
+
import style_default from "./style/index.js";
|
|
12
|
+
import compact_default from "./style/compact.js";
|
|
13
|
+
import { computed, createVNode, defineComponent, isVNode, mergeDefaults, mergeProps, nextTick, onBeforeUnmount, onMounted, ref, shallowRef, watch } from "vue";
|
|
14
|
+
import { classNames } from "@v-c/util";
|
|
15
|
+
import { filterEmpty } from "@v-c/util/dist/props-util";
|
|
16
|
+
import { omit } from "es-toolkit";
|
|
17
|
+
import { toArray } from "es-toolkit/compat";
|
|
18
|
+
import useDelayState from "@v-c/util/dist/hooks/useDelayState";
|
|
19
|
+
//#region src/button/Button.tsx
|
|
20
|
+
function _isSlot(s) {
|
|
21
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
22
|
+
}
|
|
23
|
+
function convertLegacyProps(type) {
|
|
24
|
+
if (type === "danger") return { danger: true };
|
|
25
|
+
if (type) return { type };
|
|
26
|
+
return {};
|
|
27
|
+
}
|
|
28
|
+
function getLoadingConfig(loading) {
|
|
29
|
+
if (typeof loading === "object" && loading) {
|
|
30
|
+
let delay = loading?.delay;
|
|
31
|
+
delay = !Number.isNaN(delay) && typeof delay === "number" ? delay : 0;
|
|
32
|
+
return {
|
|
33
|
+
loading: delay <= 0,
|
|
34
|
+
delay
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
loading: !!loading,
|
|
39
|
+
delay: 0
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
const ButtonTypeMap = {
|
|
43
|
+
default: ["default", "outlined"],
|
|
44
|
+
primary: ["primary", "solid"],
|
|
45
|
+
dashed: ["default", "dashed"],
|
|
46
|
+
link: ["link", "link"],
|
|
47
|
+
text: ["default", "text"]
|
|
48
|
+
};
|
|
49
|
+
const InternalCompoundedButton = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) => {
|
|
50
|
+
const mergedType = computed(() => props.type || "default");
|
|
51
|
+
const { prefixCls, direction, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, loadingIcon: contextLoadingIcon, shape: contextShape, color: contextColor, variant: contextVariant, autoInsertSpace: contextAutoInsertSpace } = useComponentBaseConfig("button", props, [
|
|
52
|
+
"autoInsertSpace",
|
|
53
|
+
"variant",
|
|
54
|
+
"shape",
|
|
55
|
+
"color",
|
|
56
|
+
"loadingIcon"
|
|
57
|
+
], "btn");
|
|
58
|
+
const { classes, styles } = toPropsRefs$1(props, "classes", "styles");
|
|
59
|
+
const mergedShape = computed(() => props.shape || contextShape.value || "default");
|
|
60
|
+
const parsedColorVariant = computed(() => {
|
|
61
|
+
const { color, variant, type, danger } = props;
|
|
62
|
+
if (color && variant) return [color, variant];
|
|
63
|
+
if (type || danger) {
|
|
64
|
+
const colorVariantPair = ButtonTypeMap[mergedType.value] || [];
|
|
65
|
+
if (danger) return ["danger", colorVariantPair[1]];
|
|
66
|
+
return colorVariantPair;
|
|
67
|
+
}
|
|
68
|
+
if (variant === "solid") return ["primary", variant];
|
|
69
|
+
if (contextColor?.value && contextVariant?.value) return [contextColor.value, contextVariant.value];
|
|
70
|
+
if (contextVariant?.value === "solid") return ["primary", contextVariant.value];
|
|
71
|
+
return ["default", "outlined"];
|
|
72
|
+
});
|
|
73
|
+
const mergedColorVariant = computed(() => {
|
|
74
|
+
const [parsedColor, parsedVariant] = parsedColorVariant.value;
|
|
75
|
+
if (props.ghost && parsedVariant === "solid") return [parsedColor, "outlined"];
|
|
76
|
+
return [parsedColor, parsedVariant];
|
|
77
|
+
});
|
|
78
|
+
const mergedColor = computed(() => mergedColorVariant.value[0]);
|
|
79
|
+
const mergedVariant = computed(() => mergedColorVariant.value[1]);
|
|
80
|
+
const isDanger = computed(() => mergedColor.value === "danger");
|
|
81
|
+
const mergedColorText = computed(() => isDanger.value ? "dangerous" : mergedColor.value);
|
|
82
|
+
const mergedInsertSpace = computed(() => {
|
|
83
|
+
return props?.autoInsertSpace ?? contextAutoInsertSpace?.value ?? true;
|
|
84
|
+
});
|
|
85
|
+
const [hashId, cssVarCls] = style_default(prefixCls);
|
|
86
|
+
const disabled = useDisabledContext();
|
|
87
|
+
const mergedDisabled = computed(() => {
|
|
88
|
+
return props?.disabled ?? disabled.value;
|
|
89
|
+
});
|
|
90
|
+
const loadingOrDelay = computed(() => {
|
|
91
|
+
return getLoadingConfig(props.loading);
|
|
92
|
+
});
|
|
93
|
+
const [innerLoading, setInnerLoading] = useDelayState(loadingOrDelay.value.loading);
|
|
94
|
+
const hasTwoCNChar = shallowRef(false);
|
|
95
|
+
const buttonRef = shallowRef();
|
|
96
|
+
const isMountRef = shallowRef(true);
|
|
97
|
+
onMounted(() => {
|
|
98
|
+
isMountRef.value = false;
|
|
99
|
+
if (props.autoFocus && buttonRef.value) buttonRef.value?.focus?.();
|
|
100
|
+
});
|
|
101
|
+
onBeforeUnmount(() => {
|
|
102
|
+
isMountRef.value = true;
|
|
103
|
+
});
|
|
104
|
+
watch([() => loadingOrDelay.value.delay, () => loadingOrDelay.value.loading], () => {
|
|
105
|
+
if (loadingOrDelay.value.delay > 0) setInnerLoading(true, { ms: loadingOrDelay.value.delay });
|
|
106
|
+
else setInnerLoading(loadingOrDelay.value.loading, true);
|
|
107
|
+
}, {
|
|
108
|
+
flush: "sync",
|
|
109
|
+
immediate: true
|
|
110
|
+
});
|
|
111
|
+
watch([
|
|
112
|
+
mergedInsertSpace,
|
|
113
|
+
buttonRef,
|
|
114
|
+
mergedVariant
|
|
115
|
+
], async () => {
|
|
116
|
+
await nextTick();
|
|
117
|
+
if (!buttonRef.value || !mergedInsertSpace.value) return;
|
|
118
|
+
const buttonText = buttonRef.value.textContent || "";
|
|
119
|
+
const children = filterEmpty(slots?.default?.());
|
|
120
|
+
const iconChildren = toArray(getSlotPropsFnRun(slots, props, "icon"));
|
|
121
|
+
if (children.length === 1 && iconChildren.length === 0 && !isUnBorderedButtonVariant(mergedVariant.value) && isTwoCNChar(buttonText.trim())) {
|
|
122
|
+
if (!hasTwoCNChar.value) hasTwoCNChar.value = true;
|
|
123
|
+
} else if (hasTwoCNChar.value) hasTwoCNChar.value = false;
|
|
124
|
+
}, { immediate: true });
|
|
125
|
+
const handleClick = (e) => {
|
|
126
|
+
if (innerLoading.value || mergedDisabled.value) {
|
|
127
|
+
e.preventDefault();
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
emit("click", e);
|
|
131
|
+
};
|
|
132
|
+
const { compactSize, compactItemClassnames } = useCompactItemContext(prefixCls, direction);
|
|
133
|
+
const sizeClassNameMap = {
|
|
134
|
+
large: "lg",
|
|
135
|
+
small: "sm",
|
|
136
|
+
middle: void 0,
|
|
137
|
+
medium: void 0
|
|
138
|
+
};
|
|
139
|
+
const sizeFullName = useSize((ctxSize) => props?.size ?? compactSize.value ?? ctxSize);
|
|
140
|
+
const mergedIconPlacement = computed(() => props?.iconPlacement ?? "start");
|
|
141
|
+
const mergedProps = computed(() => {
|
|
142
|
+
return {
|
|
143
|
+
...props,
|
|
144
|
+
type: mergedType.value,
|
|
145
|
+
color: mergedColor.value,
|
|
146
|
+
variant: mergedVariant.value,
|
|
147
|
+
danger: isDanger.value,
|
|
148
|
+
shape: mergedShape.value,
|
|
149
|
+
size: sizeFullName.value,
|
|
150
|
+
disabled: mergedDisabled.value,
|
|
151
|
+
loading: innerLoading.value,
|
|
152
|
+
iconPlacement: mergedIconPlacement.value
|
|
153
|
+
};
|
|
154
|
+
});
|
|
155
|
+
const contextStyleRoot = useSemanticRootStyle(contextStyle);
|
|
156
|
+
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(...props._skipSemantic ? [ref(), classes] : [contextClassNames, classes]), useToArr(...props._skipSemantic ? [ref(), styles] : [
|
|
157
|
+
contextStyles,
|
|
158
|
+
contextStyleRoot,
|
|
159
|
+
styles
|
|
160
|
+
]), useToProps(mergedProps));
|
|
161
|
+
return () => {
|
|
162
|
+
const { loading } = props;
|
|
163
|
+
const sizeCls = sizeFullName.value ? sizeClassNameMap?.[sizeFullName.value] ?? "" : "";
|
|
164
|
+
const iconChildren = getSlotPropsFnRun(slots, props, "icon");
|
|
165
|
+
const hasIcon = !!iconChildren;
|
|
166
|
+
const iconType = innerLoading.value ? "loading" : hasIcon;
|
|
167
|
+
const children = filterEmpty(slots?.default?.());
|
|
168
|
+
const needInserted = children.length === 1 && !hasIcon && !isUnBorderedButtonVariant(mergedVariant.value);
|
|
169
|
+
const kids = children.length ? spaceChildren(children, needInserted && mergedInsertSpace.value, mergedStyles.value.content, mergedClassNames.value.content) : null;
|
|
170
|
+
const cls = classNames(prefixCls.value, hashId.value, cssVarCls.value, {
|
|
171
|
+
[`${prefixCls.value}-${mergedShape.value}`]: mergedShape.value !== "default" && mergedShape.value,
|
|
172
|
+
[`${prefixCls.value}-${mergedType.value}`]: mergedType.value,
|
|
173
|
+
[`${prefixCls.value}-dangerous`]: props.danger,
|
|
174
|
+
[`${prefixCls.value}-color-${mergedColorText.value}`]: mergedColorText.value,
|
|
175
|
+
[`${prefixCls.value}-variant-${mergedVariant.value}`]: mergedVariant.value,
|
|
176
|
+
[`${prefixCls.value}-${sizeCls}`]: sizeCls,
|
|
177
|
+
[`${prefixCls.value}-icon-only`]: !children.length && !!iconType,
|
|
178
|
+
[`${prefixCls.value}-background-ghost`]: props.ghost && !isUnBorderedButtonVariant(mergedVariant.value),
|
|
179
|
+
[`${prefixCls.value}-loading`]: innerLoading.value,
|
|
180
|
+
[`${prefixCls.value}-two-chinese-chars`]: hasTwoCNChar.value && mergedInsertSpace.value && !innerLoading.value,
|
|
181
|
+
[`${prefixCls.value}-block`]: props.block,
|
|
182
|
+
[`${prefixCls.value}-rtl`]: direction.value === "rtl",
|
|
183
|
+
[`${prefixCls.value}-icon-end`]: mergedIconPlacement.value === "end"
|
|
184
|
+
}, compactItemClassnames.value, attrs.class, props.rootClass, contextClassName.value, mergedClassNames.value.root);
|
|
185
|
+
const fullStyle = [mergedStyles.value.root, attrs.style];
|
|
186
|
+
const iconSharedProps = {
|
|
187
|
+
class: mergedClassNames.value.icon,
|
|
188
|
+
style: mergedStyles.value.icon
|
|
189
|
+
};
|
|
190
|
+
/**
|
|
191
|
+
* Extract icon node.
|
|
192
|
+
* If there is a custom icon and not in loading state: show custom icon
|
|
193
|
+
*/
|
|
194
|
+
const iconWrapperElement = (child) => createVNode(IconWrapper, mergeProps({ "prefixCls": prefixCls.value }, iconSharedProps), _isSlot(child) ? child : { default: () => [child] });
|
|
195
|
+
const defaultLoadingIconElement = createVNode(DefaultLoadingIcon, mergeProps({
|
|
196
|
+
"existIcon": hasIcon,
|
|
197
|
+
"prefixCls": prefixCls.value,
|
|
198
|
+
"loading": innerLoading.value,
|
|
199
|
+
"mount": isMountRef.value
|
|
200
|
+
}, iconSharedProps), null);
|
|
201
|
+
const slotLoadingIcon = getSlotPropsFnRun(slots, {}, "loadingIcon");
|
|
202
|
+
const propLoadingIcon = loading && typeof loading === "object" && loading.icon ? typeof loading.icon === "function" ? loading.icon() : loading.icon : null;
|
|
203
|
+
const contextLoadingIconNode = getSlotPropsFnRun({}, { loadingIcon: contextLoadingIcon.value }, "loadingIcon");
|
|
204
|
+
const mergedLoadingIcon = slotLoadingIcon || propLoadingIcon || contextLoadingIconNode;
|
|
205
|
+
/**
|
|
206
|
+
* Using if-else statements can improve code readability without affecting future expansion.
|
|
207
|
+
*/
|
|
208
|
+
let iconNode;
|
|
209
|
+
if (hasIcon && !innerLoading.value) iconNode = iconWrapperElement(iconChildren);
|
|
210
|
+
else if (innerLoading.value && mergedLoadingIcon) iconNode = iconWrapperElement(mergedLoadingIcon);
|
|
211
|
+
else iconNode = defaultLoadingIconElement;
|
|
212
|
+
const mergedHref = props.href;
|
|
213
|
+
const htmlType = props.htmlType ?? "button";
|
|
214
|
+
if (mergedHref !== void 0) return createVNode("a", mergeProps(omit(attrs, ["class", "style"]), {
|
|
215
|
+
"ref": buttonRef,
|
|
216
|
+
"class": [cls, { [`${prefixCls.value}-disabled`]: mergedDisabled.value }],
|
|
217
|
+
"style": fullStyle,
|
|
218
|
+
"href": mergedDisabled.value ? void 0 : mergedHref,
|
|
219
|
+
"onClick": handleClick,
|
|
220
|
+
"target": props.target,
|
|
221
|
+
"aria-disabled": mergedDisabled.value
|
|
222
|
+
}), [iconNode, kids]);
|
|
223
|
+
let buttonNodes = createVNode("button", mergeProps(omit(attrs, ["class", "style"]), {
|
|
224
|
+
"ref": buttonRef,
|
|
225
|
+
"type": htmlType,
|
|
226
|
+
"class": cls,
|
|
227
|
+
"style": fullStyle,
|
|
228
|
+
"onClick": handleClick,
|
|
229
|
+
"disabled": mergedDisabled.value
|
|
230
|
+
}), [
|
|
231
|
+
iconNode,
|
|
232
|
+
kids,
|
|
233
|
+
compactItemClassnames.value ? createVNode(compact_default, { "prefixCls": prefixCls.value }, null) : null
|
|
234
|
+
]);
|
|
235
|
+
if (!isUnBorderedButtonVariant(mergedVariant.value)) {
|
|
236
|
+
const _buttonNodes = function() {
|
|
237
|
+
return buttonNodes;
|
|
238
|
+
}();
|
|
239
|
+
buttonNodes = createVNode(wave_default, {
|
|
240
|
+
"component": "Button",
|
|
241
|
+
"disabled": innerLoading.value
|
|
242
|
+
}, _isSlot(buttonNodes) ? buttonNodes : { default: () => [_buttonNodes] });
|
|
243
|
+
}
|
|
244
|
+
return buttonNodes;
|
|
245
|
+
};
|
|
246
|
+
}, {
|
|
247
|
+
props: /*@__PURE__*/ mergeDefaults({
|
|
248
|
+
href: {
|
|
249
|
+
type: String,
|
|
250
|
+
required: false
|
|
251
|
+
},
|
|
252
|
+
htmlType: {
|
|
253
|
+
type: String,
|
|
254
|
+
required: false
|
|
255
|
+
},
|
|
256
|
+
target: {
|
|
257
|
+
type: String,
|
|
258
|
+
required: false
|
|
259
|
+
},
|
|
260
|
+
autoInsertSpace: {
|
|
261
|
+
type: Boolean,
|
|
262
|
+
required: false,
|
|
263
|
+
default: void 0
|
|
264
|
+
},
|
|
265
|
+
type: {
|
|
266
|
+
type: String,
|
|
267
|
+
required: false
|
|
268
|
+
},
|
|
269
|
+
color: { required: false },
|
|
270
|
+
variant: {
|
|
271
|
+
type: String,
|
|
272
|
+
required: false
|
|
273
|
+
},
|
|
274
|
+
icon: {
|
|
275
|
+
type: [
|
|
276
|
+
Function,
|
|
277
|
+
String,
|
|
278
|
+
Number,
|
|
279
|
+
null,
|
|
280
|
+
Object,
|
|
281
|
+
Boolean
|
|
282
|
+
],
|
|
283
|
+
required: false,
|
|
284
|
+
default: void 0
|
|
285
|
+
},
|
|
286
|
+
iconPlacement: {
|
|
287
|
+
type: String,
|
|
288
|
+
required: false
|
|
289
|
+
},
|
|
290
|
+
shape: {
|
|
291
|
+
type: String,
|
|
292
|
+
required: false
|
|
293
|
+
},
|
|
294
|
+
size: {
|
|
295
|
+
type: [String, null],
|
|
296
|
+
required: false
|
|
297
|
+
},
|
|
298
|
+
disabled: {
|
|
299
|
+
type: Boolean,
|
|
300
|
+
required: false,
|
|
301
|
+
default: void 0
|
|
302
|
+
},
|
|
303
|
+
loading: {
|
|
304
|
+
type: [Boolean, Object],
|
|
305
|
+
required: false,
|
|
306
|
+
default: void 0
|
|
307
|
+
},
|
|
308
|
+
ghost: {
|
|
309
|
+
type: Boolean,
|
|
310
|
+
required: false,
|
|
311
|
+
default: void 0
|
|
312
|
+
},
|
|
313
|
+
danger: {
|
|
314
|
+
type: Boolean,
|
|
315
|
+
required: false,
|
|
316
|
+
default: void 0
|
|
317
|
+
},
|
|
318
|
+
block: {
|
|
319
|
+
type: Boolean,
|
|
320
|
+
required: false,
|
|
321
|
+
default: void 0
|
|
322
|
+
},
|
|
323
|
+
classes: {
|
|
324
|
+
type: [Object, Function],
|
|
325
|
+
required: false
|
|
326
|
+
},
|
|
327
|
+
styles: {
|
|
328
|
+
type: [Object, Function],
|
|
329
|
+
required: false
|
|
330
|
+
},
|
|
331
|
+
autoFocus: {
|
|
332
|
+
type: Boolean,
|
|
333
|
+
required: false,
|
|
334
|
+
default: void 0
|
|
335
|
+
},
|
|
336
|
+
_skipSemantic: {
|
|
337
|
+
type: Boolean,
|
|
338
|
+
required: false,
|
|
339
|
+
default: void 0
|
|
340
|
+
},
|
|
341
|
+
rootClass: {
|
|
342
|
+
type: String,
|
|
343
|
+
required: false
|
|
344
|
+
},
|
|
345
|
+
prefixCls: {
|
|
346
|
+
type: String,
|
|
347
|
+
required: false
|
|
348
|
+
}
|
|
349
|
+
}, {
|
|
350
|
+
iconPlacement: "start",
|
|
351
|
+
htmlType: "button",
|
|
352
|
+
autoInsertSpace: void 0,
|
|
353
|
+
disabled: void 0,
|
|
354
|
+
size: void 0
|
|
355
|
+
}),
|
|
356
|
+
emits: ["click"],
|
|
357
|
+
name: "AButton",
|
|
358
|
+
inheritAttrs: false
|
|
359
|
+
});
|
|
360
|
+
const Button = InternalCompoundedButton;
|
|
361
|
+
Button.__ANT_BUTTON = true;
|
|
362
|
+
Button.install = (app) => {
|
|
363
|
+
app.component(InternalCompoundedButton.name, Button);
|
|
364
|
+
};
|
|
365
|
+
//#endregion
|
|
366
|
+
export { convertLegacyProps, Button as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/button/DefaultLoadingIcon.d.ts
|
|
2
|
+
interface DefaultLoadingIconProps {
|
|
3
|
+
prefixCls: string;
|
|
4
|
+
existIcon: boolean;
|
|
5
|
+
loading?: boolean | object;
|
|
6
|
+
mount: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const DefaultLoadingIcon: import("vue").DefineSetupFnComponent<DefaultLoadingIconProps, {}, {}, DefaultLoadingIconProps & {}, import("vue").PublicProps>;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { DefaultLoadingIconProps, DefaultLoadingIcon as default };
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import IconWrapper from "./IconWrapper.js";
|
|
2
|
+
import { Transition, createVNode, defineComponent, mergeProps } from "vue";
|
|
3
|
+
import { classNames } from "@v-c/util";
|
|
4
|
+
import { LoadingOutlined } from "@zboson/icons";
|
|
5
|
+
import { getTransitionProps } from "@v-c/util/dist/utils/transition";
|
|
6
|
+
//#region src/button/DefaultLoadingIcon.tsx
|
|
7
|
+
const InnerLoadingIcon = /* @__PURE__ */ defineComponent((props) => {
|
|
8
|
+
return () => {
|
|
9
|
+
const { prefixCls, iconClassName } = props;
|
|
10
|
+
return createVNode(IconWrapper, {
|
|
11
|
+
"prefixCls": prefixCls,
|
|
12
|
+
"class": classNames(`${prefixCls}-loading-icon`)
|
|
13
|
+
}, { default: () => [createVNode(LoadingOutlined, { "class": iconClassName }, null)] });
|
|
14
|
+
};
|
|
15
|
+
}, {
|
|
16
|
+
props: {
|
|
17
|
+
prefixCls: {
|
|
18
|
+
type: String,
|
|
19
|
+
required: true
|
|
20
|
+
},
|
|
21
|
+
iconClassName: {
|
|
22
|
+
type: String,
|
|
23
|
+
required: false
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
name: "InnerLoadingIcon"
|
|
27
|
+
});
|
|
28
|
+
const DefaultLoadingIcon = /* @__PURE__ */ defineComponent((props, { attrs }) => {
|
|
29
|
+
const scheduleMotionFrame = (cb) => {
|
|
30
|
+
if (typeof requestAnimationFrame === "function") requestAnimationFrame(cb);
|
|
31
|
+
else setTimeout(cb, 0);
|
|
32
|
+
};
|
|
33
|
+
function resetStyle(el) {
|
|
34
|
+
const element = el;
|
|
35
|
+
element.style.width = "";
|
|
36
|
+
element.style.opacity = "";
|
|
37
|
+
element.style.transform = "";
|
|
38
|
+
}
|
|
39
|
+
function onBeforeEnter(el) {
|
|
40
|
+
const element = el;
|
|
41
|
+
element.style.width = "0px";
|
|
42
|
+
element.style.opacity = "0";
|
|
43
|
+
element.style.transform = "scale(0)";
|
|
44
|
+
}
|
|
45
|
+
function onEnter(el) {
|
|
46
|
+
const element = el;
|
|
47
|
+
element.offsetWidth;
|
|
48
|
+
scheduleMotionFrame(() => {
|
|
49
|
+
element.style.width = `${element.scrollWidth}px`;
|
|
50
|
+
element.style.opacity = "1";
|
|
51
|
+
element.style.transform = "scale(1)";
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
function onBeforeLeave(el) {
|
|
55
|
+
const element = el;
|
|
56
|
+
element.style.width = `${element.scrollWidth}px`;
|
|
57
|
+
element.style.opacity = "1";
|
|
58
|
+
element.style.transform = "scale(1)";
|
|
59
|
+
}
|
|
60
|
+
function onLeave(el) {
|
|
61
|
+
const element = el;
|
|
62
|
+
element.offsetWidth;
|
|
63
|
+
scheduleMotionFrame(() => {
|
|
64
|
+
element.style.width = "0px";
|
|
65
|
+
element.style.opacity = "0";
|
|
66
|
+
element.style.transform = "scale(0)";
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
return () => {
|
|
70
|
+
const { prefixCls, loading, existIcon, mount } = props;
|
|
71
|
+
const visible = !!loading;
|
|
72
|
+
if (existIcon) return createVNode(InnerLoadingIcon, mergeProps({ "prefixCls": prefixCls }, attrs), null);
|
|
73
|
+
return createVNode(Transition, mergeProps(getTransitionProps(`${prefixCls}-loading-icon-motion`, { appear: !mount }), {
|
|
74
|
+
"onBeforeEnter": onBeforeEnter,
|
|
75
|
+
"onEnter": onEnter,
|
|
76
|
+
"onAfterEnter": resetStyle,
|
|
77
|
+
"onBeforeLeave": onBeforeLeave,
|
|
78
|
+
"onLeave": onLeave
|
|
79
|
+
}), { default: () => [visible ? createVNode(InnerLoadingIcon, mergeProps({ "prefixCls": prefixCls }, attrs), null) : null] });
|
|
80
|
+
};
|
|
81
|
+
}, { props: {
|
|
82
|
+
prefixCls: {
|
|
83
|
+
type: String,
|
|
84
|
+
required: true
|
|
85
|
+
},
|
|
86
|
+
existIcon: {
|
|
87
|
+
type: Boolean,
|
|
88
|
+
required: true
|
|
89
|
+
},
|
|
90
|
+
loading: {
|
|
91
|
+
type: [Boolean, Object],
|
|
92
|
+
required: false,
|
|
93
|
+
default: void 0
|
|
94
|
+
},
|
|
95
|
+
mount: {
|
|
96
|
+
type: Boolean,
|
|
97
|
+
required: true
|
|
98
|
+
}
|
|
99
|
+
} });
|
|
100
|
+
//#endregion
|
|
101
|
+
export { DefaultLoadingIcon as default };
|