@vunk/plus 1.13.0 → 1.14.0
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/ant/_util/BaseInput.d.ts +56 -0
- package/ant/_util/BaseInputInner.d.ts +65 -0
- package/ant/_util/BaseMixin.d.ts +7 -0
- package/ant/_util/EventInterface.d.ts +18 -0
- package/ant/_util/KeyCode.d.ts +436 -0
- package/ant/_util/Portal.d.ts +14 -0
- package/ant/_util/PortalWrapper.d.ts +41 -0
- package/ant/_util/canUseDom.d.ts +2 -0
- package/ant/_util/classNames.d.ts +2 -0
- package/ant/_util/collapseMotion.d.ts +3 -0
- package/ant/_util/colors.d.ts +13 -0
- package/ant/_util/copy-to-clipboard/index.d.ts +8 -0
- package/ant/_util/copy-to-clipboard/toggle-selection.d.ts +2 -0
- package/ant/_util/createContext.d.ts +5 -0
- package/ant/_util/createRef.d.ts +10 -0
- package/ant/_util/cssinjs/Cache.d.ts +11 -0
- package/ant/_util/cssinjs/Keyframes.d.ts +9 -0
- package/ant/_util/cssinjs/StyleContext.d.ts +508 -0
- package/ant/_util/cssinjs/hooks/useCacheToken.d.ts +40 -0
- package/ant/_util/cssinjs/hooks/useGlobalCache.d.ts +3 -0
- package/ant/_util/cssinjs/hooks/useHMR.d.ts +3 -0
- package/ant/_util/cssinjs/hooks/useStyleRegister/cacheMapUtil.d.ts +14 -0
- package/ant/_util/cssinjs/hooks/useStyleRegister/index.d.ts +68 -0
- package/ant/_util/cssinjs/index.d.ts +195 -0
- package/ant/_util/cssinjs/linters/contentQuotesLinter.d.ts +3 -0
- package/ant/_util/cssinjs/linters/hashedAnimationLinter.d.ts +3 -0
- package/ant/_util/cssinjs/linters/index.d.ts +6 -0
- package/ant/_util/cssinjs/linters/interface.d.ts +8 -0
- package/ant/_util/cssinjs/linters/legacyNotSelectorLinter.d.ts +3 -0
- package/ant/_util/cssinjs/linters/logicalPropertiesLinter.d.ts +3 -0
- package/ant/_util/cssinjs/linters/parentSelectorLinter.d.ts +3 -0
- package/ant/_util/cssinjs/linters/utils.d.ts +2 -0
- package/ant/_util/cssinjs/theme/Theme.d.ts +11 -0
- package/ant/_util/cssinjs/theme/ThemeCache.d.ts +20 -0
- package/ant/_util/cssinjs/theme/createTheme.d.ts +6 -0
- package/ant/_util/cssinjs/theme/index.d.ts +4 -0
- package/ant/_util/cssinjs/theme/interface.d.ts +2 -0
- package/ant/_util/cssinjs/transformers/interface.d.ts +4 -0
- package/ant/_util/cssinjs/transformers/legacyLogicalProperties.d.ts +12 -0
- package/ant/_util/cssinjs/transformers/px2rem.d.ts +20 -0
- package/ant/_util/cssinjs/util.d.ts +8 -0
- package/ant/_util/firstNotUndefined.d.ts +2 -0
- package/ant/_util/gapSize.d.ts +3 -0
- package/ant/_util/getScrollBarSize.d.ts +5 -0
- package/ant/_util/hooks/_vueuse/resolveUnref.d.ts +5 -0
- package/ant/_util/hooks/_vueuse/types.d.ts +114 -0
- package/ant/_util/hooks/_vueuse/unrefElement.d.ts +13 -0
- package/ant/_util/hooks/useBreakpoint.d.ts +4 -0
- package/ant/_util/hooks/useFlexGapSupport.d.ts +2 -0
- package/ant/_util/hooks/useMergedState.d.ts +7 -0
- package/ant/_util/hooks/useRefs.d.ts +7 -0
- package/ant/_util/hooks/useScrollLocker.d.ts +6 -0
- package/ant/_util/hooks/useState.d.ts +2 -0
- package/ant/_util/isValid.d.ts +2 -0
- package/ant/_util/omit.d.ts +2 -0
- package/ant/_util/pickAttrs.d.ts +11 -0
- package/ant/_util/placements.d.ts +65 -0
- package/ant/_util/props-util/index.d.ts +33 -0
- package/ant/_util/props-util/initDefaultProps.d.ts +6 -0
- package/ant/_util/raf.d.ts +5 -0
- package/ant/_util/responsiveObserve.d.ts +21 -0
- package/ant/_util/setStyle.d.ts +12 -0
- package/ant/_util/statusUtils.d.ts +6 -0
- package/ant/_util/styleChecker.d.ts +4 -0
- package/ant/_util/transButton.d.ts +34 -0
- package/ant/_util/transition.d.ts +18 -0
- package/ant/_util/type.d.ts +62 -0
- package/ant/_util/util.d.ts +18 -0
- package/ant/_util/vnode.d.ts +11 -0
- package/ant/_util/vue-types/index.d.ts +12 -0
- package/ant/_util/warning.d.ts +6 -0
- package/ant/_util/wave/WaveEffect.d.ts +6 -0
- package/ant/_util/wave/index.d.ts +13 -0
- package/ant/_util/wave/style.d.ts +6 -0
- package/ant/_util/wave/useWave.d.ts +4 -0
- package/ant/_util/wave/util.d.ts +3 -0
- package/ant/button/LoadingIcon.d.ts +12 -0
- package/ant/button/button-group.d.ts +33 -0
- package/ant/button/button.d.ts +112 -0
- package/ant/button/buttonTypes.d.ts +58 -0
- package/ant/button/index.d.ts +12 -0
- package/ant/button/style/group.d.ts +4 -0
- package/ant/button/style/index.d.ts +10 -0
- package/ant/calendar/style/index.d.ts +21 -0
- package/ant/config-provider/DisabledContext.d.ts +4 -0
- package/ant/config-provider/SizeContext.d.ts +4 -0
- package/ant/config-provider/context.d.ts +208 -0
- package/ant/config-provider/cssVariables.d.ts +3 -0
- package/ant/config-provider/hooks/useConfigInject.d.ts +37 -0
- package/ant/config-provider/hooks/useTheme.d.ts +3 -0
- package/ant/config-provider/index.d.ts +290 -0
- package/ant/config-provider/renderEmpty.d.ts +8 -0
- package/ant/config-provider/style/index.d.ts +3 -0
- package/ant/date-picker/style/index.d.ts +35 -0
- package/ant/empty/empty.d.ts +2 -0
- package/ant/empty/index.d.ts +86 -0
- package/ant/empty/simple.d.ts +2 -0
- package/ant/empty/style/index.d.ts +5 -0
- package/ant/flex/index.d.ts +142 -0
- package/ant/flex/interface.d.ts +36 -0
- package/ant/flex/style/index.d.ts +29 -0
- package/ant/flex/utils.d.ts +6 -0
- package/ant/form/ErrorList.d.ts +21 -0
- package/ant/form/Form.d.ts +772 -0
- package/ant/form/FormItem.d.ts +191 -0
- package/ant/form/FormItemContext.d.ts +32 -0
- package/ant/form/FormItemInput.d.ts +44 -0
- package/ant/form/FormItemLabel.d.ts +19 -0
- package/ant/form/context.d.ts +35 -0
- package/ant/form/index.d.ts +16 -0
- package/ant/form/interface.d.ts +171 -0
- package/ant/form/style/explain.d.ts +4 -0
- package/ant/form/style/index.d.ts +7 -0
- package/ant/form/useForm.d.ts +45 -0
- package/ant/form/utils/asyncUtil.d.ts +2 -0
- package/ant/form/utils/messages.d.ts +47 -0
- package/ant/form/utils/typeUtil.d.ts +1 -0
- package/ant/form/utils/useDebounce.d.ts +2 -0
- package/ant/form/utils/validateUtil.d.ts +6 -0
- package/ant/form/utils/valueUtil.d.ts +15 -0
- package/ant/grid/Col.d.ts +116 -0
- package/ant/grid/Row.d.ts +77 -0
- package/ant/grid/context.d.ts +11 -0
- package/ant/grid/index.d.ts +10 -0
- package/ant/grid/style/index.d.ts +2 -0
- package/ant/image/PreviewGroup.d.ts +37 -0
- package/ant/image/index.d.ts +71 -0
- package/ant/image/style/index.d.ts +21 -0
- package/ant/index.cjs +203 -0
- package/ant/index.d.ts +27 -0
- package/ant/index.mjs +20993 -0
- package/ant/input/ClearableLabeledInput.d.ts +151 -0
- package/ant/input/Group.d.ts +24 -0
- package/ant/input/Input.d.ts +191 -0
- package/ant/input/Password.d.ts +217 -0
- package/ant/input/ResizableTextArea.d.ts +215 -0
- package/ant/input/Search.d.ts +195 -0
- package/ant/input/TextArea.d.ts +217 -0
- package/ant/input/calculateNodeHeight.d.ts +9 -0
- package/ant/input/index.d.ts +15 -0
- package/ant/input/inputProps.d.ts +207 -0
- package/ant/input/style/index.d.ts +30 -0
- package/ant/input/util.d.ts +2 -0
- package/ant/locale/LocaleReceiver.d.ts +35 -0
- package/ant/locale/en_US.d.ts +3 -0
- package/ant/locale/index.d.ts +91 -0
- package/ant/locale-provider/LocaleReceiver.d.ts +3 -0
- package/ant/locale-provider/index.d.ts +3 -0
- package/ant/modal/locale.d.ts +7 -0
- package/ant/modal/style/index.d.ts +32 -0
- package/ant/progress/Circle.d.ts +168 -0
- package/ant/progress/Line.d.ts +205 -0
- package/ant/progress/Steps.d.ts +168 -0
- package/ant/progress/index.d.ts +204 -0
- package/ant/progress/progress.d.ts +117 -0
- package/ant/progress/props.d.ts +79 -0
- package/ant/progress/style/index.d.ts +4 -0
- package/ant/progress/utils.d.ts +13 -0
- package/ant/space/Compact.d.ts +119 -0
- package/ant/space/style/compact.d.ts +8 -0
- package/ant/space/style/index.d.ts +5 -0
- package/ant/style/compact-item-vertical.d.ts +4 -0
- package/ant/style/compact-item.d.ts +18 -0
- package/ant/style/index.d.ts +13 -0
- package/ant/style/motion/collapse.d.ts +4 -0
- package/ant/style/motion/fade.d.ts +7 -0
- package/ant/style/motion/index.d.ts +6 -0
- package/ant/style/motion/motion.d.ts +2 -0
- package/ant/style/motion/move.d.ts +15 -0
- package/ant/style/motion/slide.d.ts +15 -0
- package/ant/style/motion/zoom.d.ts +19 -0
- package/ant/style/operationUnit.d.ts +3 -0
- package/ant/style/placementArrow.d.ts +19 -0
- package/ant/style/presetColor.d.ts +16 -0
- package/ant/style/roundedArrow.d.ts +2 -0
- package/ant/theme/index.d.ts +23 -0
- package/ant/theme/interface/alias.d.ts +115 -0
- package/ant/theme/interface/components.d.ts +32 -0
- package/ant/theme/interface/index.d.ts +13 -0
- package/ant/theme/interface/maps/colors.d.ts +350 -0
- package/ant/theme/interface/maps/font.d.ts +44 -0
- package/ant/theme/interface/maps/index.d.ts +17 -0
- package/ant/theme/interface/maps/size.d.ts +63 -0
- package/ant/theme/interface/maps/style.d.ts +37 -0
- package/ant/theme/interface/presetColors.d.ts +8 -0
- package/ant/theme/interface/seeds.d.ts +163 -0
- package/ant/theme/internal.d.ts +49 -0
- package/ant/theme/themes/ColorMap.d.ts +15 -0
- package/ant/theme/themes/compact/genCompactSizeMapToken.d.ts +2 -0
- package/ant/theme/themes/compact/index.d.ts +4 -0
- package/ant/theme/themes/dark/colorAlgorithm.d.ts +2 -0
- package/ant/theme/themes/dark/colors.d.ts +3 -0
- package/ant/theme/themes/dark/index.d.ts +4 -0
- package/ant/theme/themes/default/colorAlgorithm.d.ts +2 -0
- package/ant/theme/themes/default/colors.d.ts +3 -0
- package/ant/theme/themes/default/index.d.ts +2 -0
- package/ant/theme/themes/seed.d.ts +4 -0
- package/ant/theme/themes/shared/genColorMapToken.d.ts +8 -0
- package/ant/theme/themes/shared/genCommonMapToken.d.ts +2 -0
- package/ant/theme/themes/shared/genControlHeight.d.ts +3 -0
- package/ant/theme/themes/shared/genFontMapToken.d.ts +3 -0
- package/ant/theme/themes/shared/genFontSizes.d.ts +4 -0
- package/ant/theme/themes/shared/genRadius.d.ts +3 -0
- package/ant/theme/themes/shared/genSizeMapToken.d.ts +2 -0
- package/ant/theme/util/alias.d.ts +12 -0
- package/ant/theme/util/genComponentStyleHook.d.ts +26 -0
- package/ant/theme/util/getAlphaColor.d.ts +2 -0
- package/ant/theme/util/statistic.d.ts +18 -0
- package/ant/tooltip/Tooltip.d.ts +228 -0
- package/ant/tooltip/abstractTooltipProps.d.ts +73 -0
- package/ant/tooltip/index.d.ts +245 -0
- package/ant/tooltip/style/index.d.ts +8 -0
- package/ant/tooltip/util.d.ts +6 -0
- package/ant/typography/Base.d.ts +200 -0
- package/ant/typography/Editable.d.ts +49 -0
- package/ant/typography/Link.d.ts +51 -0
- package/ant/typography/Paragraph.d.ts +51 -0
- package/ant/typography/Text.d.ts +51 -0
- package/ant/typography/Title.d.ts +48 -0
- package/ant/typography/Typography.d.ts +24 -0
- package/ant/typography/index.d.ts +17 -0
- package/ant/typography/style/index.d.ts +9 -0
- package/ant/typography/style/mixins.d.ts +9 -0
- package/ant/typography/util.d.ts +11 -0
- package/ant/upload/Dragger.d.ts +393 -0
- package/ant/upload/Upload.d.ts +396 -0
- package/ant/upload/UploadList/ListItem.d.ts +339 -0
- package/ant/upload/UploadList/index.d.ts +232 -0
- package/ant/upload/index.d.ts +1460 -0
- package/ant/upload/interface.d.ts +355 -0
- package/ant/upload/style/dragger.d.ts +4 -0
- package/ant/upload/style/index.d.ts +10 -0
- package/ant/upload/style/list.d.ts +4 -0
- package/ant/upload/style/motion.d.ts +4 -0
- package/ant/upload/style/picture.d.ts +5 -0
- package/ant/upload/style/rtl.d.ts +4 -0
- package/ant/upload/utils.d.ts +8 -0
- package/ant/vc-align/Align.d.ts +45 -0
- package/ant/vc-align/hooks/useBuffer.d.ts +3 -0
- package/ant/vc-align/interface.d.ts +56 -0
- package/ant/vc-align/util.d.ts +4 -0
- package/ant/vc-dialog/Content.d.ts +181 -0
- package/ant/vc-dialog/Dialog.d.ts +169 -0
- package/ant/vc-dialog/DialogWrap.d.ts +165 -0
- package/ant/vc-dialog/IDialogPropTypes.d.ts +79 -0
- package/ant/vc-dialog/Mask.d.ts +14 -0
- package/ant/vc-dialog/index.d.ts +4 -0
- package/ant/vc-dialog/util.d.ts +6 -0
- package/ant/vc-image/index.d.ts +3 -0
- package/ant/vc-image/src/Image.d.ts +114 -0
- package/ant/vc-image/src/Preview.d.ts +292 -0
- package/ant/vc-image/src/PreviewGroup.d.ts +79 -0
- package/ant/vc-image/src/getFixScaleEleTransPosition.d.ts +16 -0
- package/ant/vc-image/src/hooks/useFrameSetState.d.ts +3 -0
- package/ant/vc-input/BaseInput.d.ts +97 -0
- package/ant/vc-input/Input.d.ts +192 -0
- package/ant/vc-input/inputProps.d.ts +169 -0
- package/ant/vc-input/utils/commonUtils.d.ts +8 -0
- package/ant/vc-progress/index.d.ts +5 -0
- package/ant/vc-progress/src/Circle.d.ts +41 -0
- package/ant/vc-progress/src/Line.d.ts +40 -0
- package/ant/vc-progress/src/common.d.ts +5 -0
- package/ant/vc-progress/src/index.d.ts +86 -0
- package/ant/vc-progress/src/types.d.ts +25 -0
- package/ant/vc-resize-observer/index.d.ts +25 -0
- package/ant/vc-tooltip/index.d.ts +2 -0
- package/ant/vc-tooltip/src/Content.d.ts +17 -0
- package/ant/vc-tooltip/src/Tooltip.d.ts +141 -0
- package/ant/vc-tooltip/src/placements.d.ts +111 -0
- package/ant/vc-trigger/Popup/Mask.d.ts +14 -0
- package/ant/vc-trigger/Popup/MobilePopupInner.d.ts +103 -0
- package/ant/vc-trigger/Popup/PopupInner.d.ts +98 -0
- package/ant/vc-trigger/Popup/index.d.ts +104 -0
- package/ant/vc-trigger/Popup/interface.d.ts +151 -0
- package/ant/vc-trigger/Popup/useStretchStyle.d.ts +4 -0
- package/ant/vc-trigger/Popup/useVisibleStatus.d.ts +15 -0
- package/ant/vc-trigger/Trigger.d.ts +282 -0
- package/ant/vc-trigger/context.d.ts +11 -0
- package/ant/vc-trigger/index.d.ts +6 -0
- package/ant/vc-trigger/interface.d.ts +175 -0
- package/ant/vc-trigger/utils/alignUtil.d.ts +3 -0
- package/ant/vc-trigger/utils/motionUtil.d.ts +12 -0
- package/ant/vc-upload/AjaxUploader.d.ts +108 -0
- package/ant/vc-upload/Upload.d.ts +108 -0
- package/ant/vc-upload/attr-accept.d.ts +3 -0
- package/ant/vc-upload/index.d.ts +4 -0
- package/ant/vc-upload/interface.d.ts +79 -0
- package/ant/vc-upload/request.d.ts +4 -0
- package/ant/vc-upload/traverseFileTree.d.ts +14 -0
- package/ant/vc-upload/uid.d.ts +1 -0
- package/ant/vc-util/Dom/contains.d.ts +1 -0
- package/ant/vc-util/Dom/css.d.ts +22 -0
- package/ant/vc-util/Dom/dynamicCSS.d.ts +20 -0
- package/ant/vc-util/Dom/isVisible.d.ts +2 -0
- package/ant/vc-util/Dom/scrollLocker.d.ts +12 -0
- package/ant/vc-util/devWarning.d.ts +4 -0
- package/ant/vc-util/get.d.ts +1 -0
- package/ant/vc-util/set.d.ts +1 -0
- package/ant/vc-util/warning.d.ts +7 -0
- package/ant/version/index.d.ts +2 -0
- package/antx/_util/__tests__/warning.test.d.ts +1 -0
- package/antx/_util/cssinjs/Cache.d.ts +11 -0
- package/antx/_util/cssinjs/Keyframes.d.ts +9 -0
- package/antx/_util/cssinjs/StyleContext.d.ts +508 -0
- package/antx/_util/cssinjs/hooks/useCSSVarRegister.d.ts +20 -0
- package/antx/_util/cssinjs/hooks/useCacheToken.d.ts +40 -0
- package/antx/_util/cssinjs/hooks/useGlobalCache.d.ts +6 -0
- package/antx/_util/cssinjs/hooks/useHMR.d.ts +3 -0
- package/antx/_util/cssinjs/hooks/useStyleRegister/cacheMapUtil.d.ts +14 -0
- package/antx/_util/cssinjs/hooks/useStyleRegister/index.d.ts +69 -0
- package/antx/_util/cssinjs/index.d.ts +197 -0
- package/antx/_util/cssinjs/linters/contentQuotesLinter.d.ts +3 -0
- package/antx/_util/cssinjs/linters/hashedAnimationLinter.d.ts +3 -0
- package/antx/_util/cssinjs/linters/index.d.ts +6 -0
- package/antx/_util/cssinjs/linters/interface.d.ts +8 -0
- package/antx/_util/cssinjs/linters/legacyNotSelectorLinter.d.ts +3 -0
- package/antx/_util/cssinjs/linters/logicalPropertiesLinter.d.ts +3 -0
- package/antx/_util/cssinjs/linters/parentSelectorLinter.d.ts +3 -0
- package/antx/_util/cssinjs/linters/utils.d.ts +2 -0
- package/antx/_util/cssinjs/theme/Theme.d.ts +11 -0
- package/antx/_util/cssinjs/theme/ThemeCache.d.ts +20 -0
- package/antx/_util/cssinjs/theme/createTheme.d.ts +6 -0
- package/antx/_util/cssinjs/theme/index.d.ts +4 -0
- package/antx/_util/cssinjs/theme/interface.d.ts +2 -0
- package/antx/_util/cssinjs/transformers/interface.d.ts +4 -0
- package/antx/_util/cssinjs/transformers/legacyLogicalProperties.d.ts +12 -0
- package/antx/_util/cssinjs/transformers/px2rem.d.ts +20 -0
- package/antx/_util/cssinjs/util.d.ts +28 -0
- package/antx/_util/cssinjs-utils/_util/hooks/useUniqueMemo.d.ts +5 -0
- package/antx/_util/cssinjs-utils/hooks/useCSP.d.ts +8 -0
- package/antx/_util/cssinjs-utils/hooks/usePrefix.d.ts +11 -0
- package/antx/_util/cssinjs-utils/hooks/useToken.d.ts +21 -0
- package/antx/_util/cssinjs-utils/index.d.ts +6 -0
- package/antx/_util/cssinjs-utils/interface/components.d.ts +10 -0
- package/antx/_util/cssinjs-utils/interface/index.d.ts +3 -0
- package/antx/_util/cssinjs-utils/util/calc/CSSCalculator.d.ts +15 -0
- package/antx/_util/cssinjs-utils/util/calc/NumCalculator.d.ts +11 -0
- package/antx/_util/cssinjs-utils/util/calc/calculator.d.ts +30 -0
- package/antx/_util/cssinjs-utils/util/calc/index.d.ts +5 -0
- package/antx/_util/cssinjs-utils/util/genStyleUtils.d.ts +116 -0
- package/antx/_util/cssinjs-utils/util/getCompVarPrefix.d.ts +2 -0
- package/antx/_util/cssinjs-utils/util/getComponentToken.d.ts +9 -0
- package/antx/_util/cssinjs-utils/util/getDefaultComponentToken.d.ts +5 -0
- package/antx/_util/cssinjs-utils/util/maxmin.d.ts +8 -0
- package/antx/_util/cssinjs-utils/util/statistic.d.ts +20 -0
- package/antx/_util/getScrollBarSize.d.ts +5 -0
- package/antx/_util/getValue.d.ts +2 -0
- package/antx/_util/hooks/use-event-callback.d.ts +1 -0
- package/antx/_util/hooks/use-state.d.ts +2 -0
- package/antx/_util/hooks/use-x-component-config.d.ts +4 -0
- package/antx/_util/hooks/useMergedState.d.ts +7 -0
- package/antx/_util/motion.d.ts +3 -0
- package/antx/_util/pick-attrs.d.ts +11 -0
- package/antx/_util/setStyle.d.ts +12 -0
- package/antx/_util/transition.d.ts +29 -0
- package/antx/_util/type.d.ts +62 -0
- package/antx/_util/warning.d.ts +47 -0
- package/antx/attachments/Attachments.vue.d.ts +16 -0
- package/antx/attachments/DropArea.vue.d.ts +4 -0
- package/antx/attachments/FileList/AudioIcon.vue.d.ts +3 -0
- package/antx/attachments/FileList/FileList.vue.d.ts +4 -0
- package/antx/attachments/FileList/FileListCard.vue.d.ts +6 -0
- package/antx/attachments/FileList/Progress.vue.d.ts +103 -0
- package/antx/attachments/FileList/VideoIcon.vue.d.ts +3 -0
- package/antx/attachments/FileList/index.d.ts +3 -0
- package/antx/attachments/PlaceholderUploader.vue.d.ts +6 -0
- package/antx/attachments/SilentUploader.vue.d.ts +6 -0
- package/antx/attachments/constants.d.ts +9 -0
- package/antx/attachments/context.d.ts +21 -0
- package/antx/attachments/index.d.ts +26 -0
- package/antx/attachments/interface.d.ts +130 -0
- package/antx/attachments/style/fileCard.d.ts +4 -0
- package/antx/attachments/style/index.d.ts +9 -0
- package/antx/attachments/util.d.ts +3 -0
- package/antx/components.d.ts +4 -0
- package/antx/hooks.d.ts +8 -0
- package/antx/index.cjs +78 -0
- package/antx/index.d.ts +10 -0
- package/antx/index.mjs +6015 -0
- package/antx/sender/Sender.vue.d.ts +48 -0
- package/antx/sender/SenderHeader.vue.d.ts +13 -0
- package/antx/sender/StopLoading.vue.d.ts +6 -0
- package/antx/sender/components/ActionButton/context.d.ts +21 -0
- package/antx/sender/components/ActionButton/index.vue.d.ts +13 -0
- package/antx/sender/components/ClearButton.vue.d.ts +4 -0
- package/antx/sender/components/LoadingButton.vue.d.ts +4 -0
- package/antx/sender/components/SendButton.vue.d.ts +4 -0
- package/antx/sender/components/SpeechButton/RecordingIcon.vue.d.ts +4 -0
- package/antx/sender/components/SpeechButton/index.vue.d.ts +4 -0
- package/antx/sender/context.d.ts +21 -0
- package/antx/sender/index.d.ts +82 -0
- package/antx/sender/interface.d.ts +145 -0
- package/antx/sender/style/header.d.ts +4 -0
- package/antx/sender/style/index.d.ts +9 -0
- package/antx/sender/useSpeech.d.ts +16 -0
- package/antx/theme/components.d.ts +8 -0
- package/antx/theme/cssinjs-utils.d.ts +14 -0
- package/antx/theme/genStyleUtils.d.ts +27 -0
- package/antx/theme/index.d.ts +2 -0
- package/antx/theme/patch-antd.d.ts +28 -0
- package/antx/theme/useToken.d.ts +19 -0
- package/antx/transition-collapse/TransitionCollapse.vue.d.ts +17 -0
- package/antx/transition-collapse/index.d.ts +6 -0
- package/antx/transition-collapse/style/index.d.ts +6 -0
- package/antx/type-utility.d.ts +1 -0
- package/antx/use-x-agent/index.d.ts +4 -0
- package/antx/use-x-agent/use-x-agent.d.ts +34 -0
- package/antx/use-x-chat/index.d.ts +4 -0
- package/antx/use-x-chat/use-x-chat.d.ts +54 -0
- package/antx/use-x-chat/useSyncState.d.ts +4 -0
- package/antx/version/index.d.ts +2 -0
- package/antx/x-provider/context.d.ts +84 -0
- package/antx/x-provider/hooks/use-x-provider-context.d.ts +9 -0
- package/antx/x-provider/index.d.ts +5 -0
- package/antx/x-provider/index.vue.d.ts +13 -0
- package/antx/x-request/index.d.ts +6 -0
- package/antx/x-request/x-fetch.d.ts +18 -0
- package/antx/x-request/x-request.d.ts +89 -0
- package/antx/x-stream/index.d.ts +4 -0
- package/antx/x-stream/x-stream.d.ts +32 -0
- package/components/agent-chat-provider/index.cjs +1 -1
- package/components/agent-chat-provider/index.mjs +1 -3
- package/components/agent-chat-provider/src/index.vue.d.ts +3 -3
- package/components/agent-chat-provider/src/types.d.ts +1 -1
- package/components/agent-chat-provider/src/use.d.ts +2 -2
- package/components/avatar/index.mjs +2 -2
- package/components/avatar/src/index.vue.d.ts +2 -121
- package/components/broadcasting-markdown/index.cjs +3 -3
- package/components/broadcasting-markdown/index.mjs +2 -5
- package/components/broadcasting-markdown/src/ctx.d.ts +2 -2
- package/components/broadcasting-markdown/src/howler-speech.vue.d.ts +6 -6
- package/components/broadcasting-markdown/src/index.vue.d.ts +33 -33
- package/components/broadcasting-markdown/src/paragraph.vue.d.ts +1 -1
- package/components/broadcasting-markdown/src/use.d.ts +1 -1
- package/components/bubble-list/index.cjs +1 -1
- package/components/bubble-list/index.mjs +5 -5
- package/components/bubble-list/src/core/index.vue.d.ts +7 -7
- package/components/bubble-list/src/ctx.d.ts +2 -2
- package/components/bubble-list/src/index.vue.d.ts +5 -4
- package/components/bubble-templates/index.mjs +2 -2
- package/components/chat-independent/index.mjs +4 -4
- package/components/chat-independent/src/index.vue.d.ts +1 -1
- package/components/components.css +1 -1
- package/components/drawer/index.mjs +1 -1
- package/components/drawer/src/ctx.d.ts +37 -31
- package/components/drawer/src/index.vue.d.ts +87 -77
- package/components/lottie-animation/index.mjs +2 -2
- package/components/lottie-animation/src/index.vue.d.ts +1 -1
- package/components/metahuman-broadcasting/index.mjs +2 -2
- package/components/metahuman-broadcasting/src/ctx.d.ts +2 -2
- package/components/metahuman-broadcasting/src/index.vue.d.ts +4 -4
- package/components/monaco-editor/index.cjs +1 -1
- package/components/monaco-editor/index.mjs +52 -48
- package/components/monaco-editor/src/ctx.d.ts +3 -3
- package/components/monaco-editor/src/index.vue.d.ts +5 -5
- package/components/pixi-frame/index.cjs +1 -1
- package/components/pixi-frame/index.mjs +899 -450
- package/components/pixi-frame/src/apng.vue.d.ts +10 -10
- package/components/pixi-frame/src/bitmap-generator.vue.d.ts +7 -7
- package/components/pixi-frame/src/bitmap.vue.d.ts +12 -12
- package/components/pixi-frame/src/buffer-image.vue.d.ts +13 -13
- package/components/pixi-frame/src/core.vue.d.ts +12 -12
- package/components/pixi-frame/src/ctx.d.ts +5 -5
- package/components/pixi-frame/src/index.vue.d.ts +81 -81
- package/components/pixi-frame/src/video.vue.d.ts +10 -10
- package/components/recorder-button/index.cjs +1 -1
- package/components/recorder-button/index.mjs +75 -75
- package/components/recorder-button/src/ctx.d.ts +3 -3
- package/components/recorder-button/src/index.vue.d.ts +114 -197
- package/components/routes-menu-content/index.cjs +1 -1
- package/components/routes-menu-content/index.mjs +12 -12
- package/components/routes-menu-content/src/ctx.d.ts +1 -1
- package/components/routes-menu-content/src/index.vue.d.ts +58 -99
- package/components/routes-menu-content/src/item/core/ctx.d.ts +1 -1
- package/components/routes-menu-content/src/item/core/index.vue.d.ts +40 -81
- package/components/routes-menu-content/src/item/index.vue.d.ts +56 -97
- package/components/scrollbar/index.mjs +4 -4
- package/components/scrollbar/src/index.vue.d.ts +35 -34
- package/components/scrollbar/src/util.d.ts +1 -1
- package/components/sender/index.cjs +1 -1
- package/components/sender/index.mjs +7 -7
- package/components/sender/src/SenderHeader.vue.d.ts +2 -2
- package/components/sender/src/ctx.d.ts +9 -9
- package/components/sender/src/index.vue.d.ts +28 -28
- package/components/speech-button/index.cjs +1 -1
- package/components/speech-button/index.mjs +1 -1
- package/components/speech-button/src/ctx.d.ts +1 -1
- package/components/speech-button/src/index.vue.d.ts +3 -3
- package/components/table-columns/src/ctx.d.ts +2 -2
- package/components/table-columns/src/el-ctx.d.ts +2 -2
- package/components/table-columns/src/index.vue.d.ts +6 -6
- package/components/table-columns/src/types.d.ts +3 -4
- package/components/tables-v1/index.cjs +1 -1
- package/components/tables-v1/index.mjs +3 -3
- package/components/tables-v1/src/ctx.d.ts +69 -74
- package/components/tables-v1/src/el-ctx.d.ts +24 -24
- package/components/tables-v1/src/index.vue.d.ts +54 -313
- package/components/tables-v1-checkbox/index.cjs +94 -1
- package/components/tables-v1-checkbox/index.mjs +2071 -88
- package/components/tables-v1-checkbox/src/ctx.d.ts +68 -73
- package/components/tables-v1-checkbox/src/index.vue.d.ts +274 -542
- package/components/text/index.mjs +3 -3
- package/components/text/src/ctx.d.ts +39 -246
- package/components/text/src/index.vue.d.ts +98 -509
- package/components/thinking/index.mjs +5 -5
- package/components/thinking/src/ctx.d.ts +3 -3
- package/components/thinking/src/index.vue.d.ts +8 -8
- package/components/typing-markdown/index.mjs +2 -2
- package/components/typing-markdown/src/ctx.d.ts +3 -3
- package/components/typing-markdown/src/index.vue.d.ts +6 -6
- package/components/vditor/index.cjs +1 -1
- package/components/vditor/index.mjs +2 -2
- package/components/vditor/src/ctx.d.ts +2 -2
- package/components/vditor/src/handle-fullscreen.vue.d.ts +3 -3
- package/components/vditor/src/handle-value.vue.d.ts +3 -3
- package/components/vditor/src/index.vue.d.ts +10 -10
- package/components/xgplayer/index.mjs +5 -5
- package/composables/recorder/index.cjs +1 -1
- package/composables/recorder/index.mjs +3214 -3099
- package/element/bubble/index.cjs +2 -2
- package/element/bubble/index.mjs +57 -57
- package/element/index.css +1 -1
- package/element/thinking/index.cjs +1 -1
- package/element/thinking/index.mjs +63 -69
- package/icons/end/index.cjs +1 -1
- package/icons/end/index.mjs +3 -3
- package/icons/keyboard/index.cjs +1 -1
- package/icons/keyboard/index.mjs +3 -3
- package/icons/start/index.cjs +1 -1
- package/icons/start/index.mjs +3 -3
- package/icons/voice/index.cjs +1 -1
- package/icons/voice/index.mjs +3 -3
- package/index.css +2 -2
- package/package.json +11 -1
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import useCacheToken from './hooks/useCacheToken';
|
|
2
|
+
import type { CSSInterpolation, CSSObject } from './hooks/useStyleRegister';
|
|
3
|
+
import useStyleRegister, { extractStyle } from './hooks/useStyleRegister';
|
|
4
|
+
import Keyframes from './Keyframes';
|
|
5
|
+
import type { Linter } from './linters';
|
|
6
|
+
import { legacyNotSelectorLinter, logicalPropertiesLinter, parentSelectorLinter } from './linters';
|
|
7
|
+
import type { StyleContextProps, StyleProviderProps } from './StyleContext';
|
|
8
|
+
import { createCache, useStyleInject, useStyleProvider, StyleProvider } from './StyleContext';
|
|
9
|
+
import type { DerivativeFunc, TokenType } from './theme';
|
|
10
|
+
import { createTheme, Theme } from './theme';
|
|
11
|
+
import type { Transformer } from './transformers/interface';
|
|
12
|
+
import legacyLogicalPropertiesTransformer from './transformers/legacyLogicalProperties';
|
|
13
|
+
import px2remTransformer from './transformers/px2rem';
|
|
14
|
+
declare const cssinjs: {
|
|
15
|
+
Theme: typeof Theme;
|
|
16
|
+
createTheme: typeof createTheme;
|
|
17
|
+
useStyleRegister: typeof useStyleRegister;
|
|
18
|
+
useCacheToken: typeof useCacheToken;
|
|
19
|
+
createCache: typeof createCache;
|
|
20
|
+
useStyleInject: () => import("vue").ShallowRef<Partial<StyleContextProps>>;
|
|
21
|
+
useStyleProvider: (props: import("./StyleContext").UseStyleProviderProps) => import("vue").ShallowRef<Partial<StyleContextProps>, Partial<StyleContextProps>>;
|
|
22
|
+
Keyframes: typeof Keyframes;
|
|
23
|
+
extractStyle: typeof extractStyle;
|
|
24
|
+
legacyLogicalPropertiesTransformer: Transformer;
|
|
25
|
+
px2remTransformer: (options?: import("./transformers/px2rem").Options) => Transformer;
|
|
26
|
+
logicalPropertiesLinter: Linter;
|
|
27
|
+
legacyNotSelectorLinter: Linter;
|
|
28
|
+
parentSelectorLinter: Linter;
|
|
29
|
+
StyleProvider: {
|
|
30
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
31
|
+
autoClear: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
mock: {
|
|
36
|
+
type: import("vue").PropType<"server" | "client">;
|
|
37
|
+
default: "server" | "client";
|
|
38
|
+
};
|
|
39
|
+
cache: {
|
|
40
|
+
type: import("vue").PropType<import("./Cache").default>;
|
|
41
|
+
default: import("./Cache").default;
|
|
42
|
+
};
|
|
43
|
+
defaultCache: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
hashPriority: {
|
|
48
|
+
type: import("vue").PropType<import("./StyleContext").HashPriority>;
|
|
49
|
+
default: import("./StyleContext").HashPriority;
|
|
50
|
+
};
|
|
51
|
+
container: {
|
|
52
|
+
type: import("vue").PropType<Element | ShadowRoot>;
|
|
53
|
+
default: Element | ShadowRoot;
|
|
54
|
+
};
|
|
55
|
+
ssrInline: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
transformers: {
|
|
60
|
+
type: import("vue").PropType<Transformer[]>;
|
|
61
|
+
default: Transformer[];
|
|
62
|
+
};
|
|
63
|
+
linters: {
|
|
64
|
+
type: import("vue").PropType<Linter[]>;
|
|
65
|
+
default: Linter[];
|
|
66
|
+
};
|
|
67
|
+
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
68
|
+
[key: string]: any;
|
|
69
|
+
}>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
70
|
+
autoClear: boolean;
|
|
71
|
+
mock: "server" | "client";
|
|
72
|
+
cache: import("./Cache").default;
|
|
73
|
+
defaultCache: boolean;
|
|
74
|
+
hashPriority: import("./StyleContext").HashPriority;
|
|
75
|
+
container: Element | ShadowRoot;
|
|
76
|
+
ssrInline: boolean;
|
|
77
|
+
transformers: Transformer[];
|
|
78
|
+
linters: Linter[];
|
|
79
|
+
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
80
|
+
P: {};
|
|
81
|
+
B: {};
|
|
82
|
+
D: {};
|
|
83
|
+
C: {};
|
|
84
|
+
M: {};
|
|
85
|
+
Defaults: {};
|
|
86
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
87
|
+
autoClear: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
91
|
+
mock: {
|
|
92
|
+
type: import("vue").PropType<"server" | "client">;
|
|
93
|
+
default: "server" | "client";
|
|
94
|
+
};
|
|
95
|
+
cache: {
|
|
96
|
+
type: import("vue").PropType<import("./Cache").default>;
|
|
97
|
+
default: import("./Cache").default;
|
|
98
|
+
};
|
|
99
|
+
defaultCache: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
default: boolean;
|
|
102
|
+
};
|
|
103
|
+
hashPriority: {
|
|
104
|
+
type: import("vue").PropType<import("./StyleContext").HashPriority>;
|
|
105
|
+
default: import("./StyleContext").HashPriority;
|
|
106
|
+
};
|
|
107
|
+
container: {
|
|
108
|
+
type: import("vue").PropType<Element | ShadowRoot>;
|
|
109
|
+
default: Element | ShadowRoot;
|
|
110
|
+
};
|
|
111
|
+
ssrInline: {
|
|
112
|
+
type: BooleanConstructor;
|
|
113
|
+
default: boolean;
|
|
114
|
+
};
|
|
115
|
+
transformers: {
|
|
116
|
+
type: import("vue").PropType<Transformer[]>;
|
|
117
|
+
default: Transformer[];
|
|
118
|
+
};
|
|
119
|
+
linters: {
|
|
120
|
+
type: import("vue").PropType<Linter[]>;
|
|
121
|
+
default: Linter[];
|
|
122
|
+
};
|
|
123
|
+
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
124
|
+
[key: string]: any;
|
|
125
|
+
}>[], {}, {}, {}, {
|
|
126
|
+
autoClear: boolean;
|
|
127
|
+
mock: "server" | "client";
|
|
128
|
+
cache: import("./Cache").default;
|
|
129
|
+
defaultCache: boolean;
|
|
130
|
+
hashPriority: import("./StyleContext").HashPriority;
|
|
131
|
+
container: Element | ShadowRoot;
|
|
132
|
+
ssrInline: boolean;
|
|
133
|
+
transformers: Transformer[];
|
|
134
|
+
linters: Linter[];
|
|
135
|
+
}>;
|
|
136
|
+
__isFragment?: never;
|
|
137
|
+
__isTeleport?: never;
|
|
138
|
+
__isSuspense?: never;
|
|
139
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
140
|
+
autoClear: {
|
|
141
|
+
type: BooleanConstructor;
|
|
142
|
+
default: boolean;
|
|
143
|
+
};
|
|
144
|
+
mock: {
|
|
145
|
+
type: import("vue").PropType<"server" | "client">;
|
|
146
|
+
default: "server" | "client";
|
|
147
|
+
};
|
|
148
|
+
cache: {
|
|
149
|
+
type: import("vue").PropType<import("./Cache").default>;
|
|
150
|
+
default: import("./Cache").default;
|
|
151
|
+
};
|
|
152
|
+
defaultCache: {
|
|
153
|
+
type: BooleanConstructor;
|
|
154
|
+
default: boolean;
|
|
155
|
+
};
|
|
156
|
+
hashPriority: {
|
|
157
|
+
type: import("vue").PropType<import("./StyleContext").HashPriority>;
|
|
158
|
+
default: import("./StyleContext").HashPriority;
|
|
159
|
+
};
|
|
160
|
+
container: {
|
|
161
|
+
type: import("vue").PropType<Element | ShadowRoot>;
|
|
162
|
+
default: Element | ShadowRoot;
|
|
163
|
+
};
|
|
164
|
+
ssrInline: {
|
|
165
|
+
type: BooleanConstructor;
|
|
166
|
+
default: boolean;
|
|
167
|
+
};
|
|
168
|
+
transformers: {
|
|
169
|
+
type: import("vue").PropType<Transformer[]>;
|
|
170
|
+
default: Transformer[];
|
|
171
|
+
};
|
|
172
|
+
linters: {
|
|
173
|
+
type: import("vue").PropType<Linter[]>;
|
|
174
|
+
default: Linter[];
|
|
175
|
+
};
|
|
176
|
+
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
177
|
+
[key: string]: any;
|
|
178
|
+
}>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
179
|
+
autoClear: boolean;
|
|
180
|
+
mock: "server" | "client";
|
|
181
|
+
cache: import("./Cache").default;
|
|
182
|
+
defaultCache: boolean;
|
|
183
|
+
hashPriority: import("./StyleContext").HashPriority;
|
|
184
|
+
container: Element | ShadowRoot;
|
|
185
|
+
ssrInline: boolean;
|
|
186
|
+
transformers: Transformer[];
|
|
187
|
+
linters: Linter[];
|
|
188
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin;
|
|
189
|
+
};
|
|
190
|
+
export { Theme, createTheme, useStyleRegister, useCacheToken, createCache, useStyleInject, useStyleProvider, Keyframes, extractStyle, legacyLogicalPropertiesTransformer, px2remTransformer, logicalPropertiesLinter, legacyNotSelectorLinter, parentSelectorLinter, StyleProvider, };
|
|
191
|
+
export type { TokenType, CSSObject, CSSInterpolation, DerivativeFunc, Transformer, Linter, StyleContextProps, StyleProviderProps, };
|
|
192
|
+
export declare const _experimental: {
|
|
193
|
+
supportModernCSS: () => boolean;
|
|
194
|
+
};
|
|
195
|
+
export default cssinjs;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as contentQuotesLinter } from './contentQuotesLinter';
|
|
2
|
+
export { default as hashedAnimationLinter } from './hashedAnimationLinter';
|
|
3
|
+
export type { Linter } from './interface';
|
|
4
|
+
export { default as legacyNotSelectorLinter } from './legacyNotSelectorLinter';
|
|
5
|
+
export { default as logicalPropertiesLinter } from './logicalPropertiesLinter';
|
|
6
|
+
export { default as parentSelectorLinter } from './parentSelectorLinter';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DerivativeFunc, TokenType } from './interface';
|
|
2
|
+
/**
|
|
3
|
+
* Theme with algorithms to derive tokens from design tokens.
|
|
4
|
+
* Use `createTheme` first which will help to manage the theme instance cache.
|
|
5
|
+
*/
|
|
6
|
+
export default class Theme<DesignToken extends TokenType, DerivativeToken extends TokenType> {
|
|
7
|
+
private derivatives;
|
|
8
|
+
readonly id: number;
|
|
9
|
+
constructor(derivatives: DerivativeFunc<DesignToken, DerivativeToken> | DerivativeFunc<DesignToken, DerivativeToken>[]);
|
|
10
|
+
getDerivativeToken(token: DesignToken): DerivativeToken;
|
|
11
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type Theme from './Theme';
|
|
2
|
+
import type { DerivativeFunc } from './interface';
|
|
3
|
+
type DerivativeOptions = DerivativeFunc<any, any>[];
|
|
4
|
+
export declare function sameDerivativeOption(left: DerivativeOptions, right: DerivativeOptions): boolean;
|
|
5
|
+
export default class ThemeCache {
|
|
6
|
+
static MAX_CACHE_SIZE: number;
|
|
7
|
+
static MAX_CACHE_OFFSET: number;
|
|
8
|
+
private readonly cache;
|
|
9
|
+
private keys;
|
|
10
|
+
private cacheCallTimes;
|
|
11
|
+
constructor();
|
|
12
|
+
size(): number;
|
|
13
|
+
private internalGet;
|
|
14
|
+
get(derivativeOption: DerivativeOptions): Theme<any, any> | undefined;
|
|
15
|
+
has(derivativeOption: DerivativeOptions): boolean;
|
|
16
|
+
set(derivativeOption: DerivativeOptions, value: Theme<any, any>): void;
|
|
17
|
+
private deleteByPath;
|
|
18
|
+
delete(derivativeOption: DerivativeOptions): Theme<any, any> | undefined;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import Theme from './Theme';
|
|
2
|
+
import type { DerivativeFunc, TokenType } from './interface';
|
|
3
|
+
/**
|
|
4
|
+
* Same as new Theme, but will always return same one if `derivative` not changed.
|
|
5
|
+
*/
|
|
6
|
+
export default function createTheme<DesignToken extends TokenType, DerivativeToken extends TokenType>(derivatives: DerivativeFunc<DesignToken, DerivativeToken>[] | DerivativeFunc<DesignToken, DerivativeToken>): Theme<any, any>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Transformer } from './interface';
|
|
2
|
+
/**
|
|
3
|
+
* Convert css logical properties to legacy properties.
|
|
4
|
+
* Such as: `margin-block-start` to `margin-top`.
|
|
5
|
+
* Transform list:
|
|
6
|
+
* - inset
|
|
7
|
+
* - margin
|
|
8
|
+
* - padding
|
|
9
|
+
* - border
|
|
10
|
+
*/
|
|
11
|
+
declare const transform: Transformer;
|
|
12
|
+
export default transform;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Transformer } from './interface';
|
|
2
|
+
export interface Options {
|
|
3
|
+
/**
|
|
4
|
+
* The root font size.
|
|
5
|
+
* @default 16
|
|
6
|
+
*/
|
|
7
|
+
rootValue?: number;
|
|
8
|
+
/**
|
|
9
|
+
* The decimal numbers to allow the REM units to grow to.
|
|
10
|
+
* @default 5
|
|
11
|
+
*/
|
|
12
|
+
precision?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Whether to allow px to be converted in media queries.
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
17
|
+
mediaQuery?: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare const transform: (options?: Options) => Transformer;
|
|
20
|
+
export default transform;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function flattenToken(token: any): string;
|
|
2
|
+
/**
|
|
3
|
+
* Convert derivative token to key string
|
|
4
|
+
*/
|
|
5
|
+
export declare function token2key(token: any, salt: string): string;
|
|
6
|
+
export declare function supportLayer(): boolean;
|
|
7
|
+
export declare function supportWhere(): boolean;
|
|
8
|
+
export declare function supportLogicProps(): boolean;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import type { ComputedRef, Ref, WatchOptions, WatchSource } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Any function
|
|
4
|
+
*/
|
|
5
|
+
export type Fn = () => void;
|
|
6
|
+
/**
|
|
7
|
+
* A ref that allow to set null or undefined
|
|
8
|
+
*/
|
|
9
|
+
export type RemovableRef<T> = Omit<Ref<T>, 'value'> & {
|
|
10
|
+
get value(): T;
|
|
11
|
+
set value(value: T | null | undefined);
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Use `RemovableRef`
|
|
15
|
+
*/
|
|
16
|
+
export type RemoveableRef<T> = RemovableRef<T>;
|
|
17
|
+
/**
|
|
18
|
+
* Maybe it's a ref, or a plain value
|
|
19
|
+
*
|
|
20
|
+
* ```ts
|
|
21
|
+
* type MaybeRef<T> = T | Ref<T>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export type MaybeRef<T> = T | Ref<T>;
|
|
25
|
+
/**
|
|
26
|
+
* Maybe it's a ref, or a plain value, or a getter function
|
|
27
|
+
*
|
|
28
|
+
* ```ts
|
|
29
|
+
* type MaybeComputedRef<T> = (() => T) | T | Ref<T> | ComputedRef<T>
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export type MaybeComputedRef<T> = MaybeReadonlyRef<T> | MaybeRef<T>;
|
|
33
|
+
/**
|
|
34
|
+
* Maybe it's a computed ref, or a getter function
|
|
35
|
+
*
|
|
36
|
+
* ```ts
|
|
37
|
+
* type MaybeReadonlyRef<T> = (() => T) | ComputedRef<T>
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
export type MaybeReadonlyRef<T> = (() => T) | ComputedRef<T>;
|
|
41
|
+
/**
|
|
42
|
+
* Make all the nested attributes of an object or array to MaybeRef<T>
|
|
43
|
+
*
|
|
44
|
+
* Good for accepting options that will be wrapped with `reactive` or `ref`
|
|
45
|
+
*
|
|
46
|
+
* ```ts
|
|
47
|
+
* UnwrapRef<DeepMaybeRef<T>> === T
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export type DeepMaybeRef<T> = T extends Ref<infer V> ? MaybeRef<V> : T extends Array<any> | object ? {
|
|
51
|
+
[K in keyof T]: DeepMaybeRef<T[K]>;
|
|
52
|
+
} : MaybeRef<T>;
|
|
53
|
+
/**
|
|
54
|
+
* Infers the element type of an array
|
|
55
|
+
*/
|
|
56
|
+
export type ElementOf<T> = T extends (infer E)[] ? E : never;
|
|
57
|
+
export type ShallowUnwrapRef<T> = T extends Ref<infer P> ? P : T;
|
|
58
|
+
export type Awaitable<T> = Promise<T> | T;
|
|
59
|
+
export type ArgumentsType<T> = T extends (...args: infer U) => any ? U : never;
|
|
60
|
+
export interface Pausable {
|
|
61
|
+
/**
|
|
62
|
+
* A ref indicate whether a pausable instance is active
|
|
63
|
+
*/
|
|
64
|
+
isActive: Ref<boolean>;
|
|
65
|
+
/**
|
|
66
|
+
* Temporary pause the effect from executing
|
|
67
|
+
*/
|
|
68
|
+
pause: Fn;
|
|
69
|
+
/**
|
|
70
|
+
* Resume the effects
|
|
71
|
+
*/
|
|
72
|
+
resume: Fn;
|
|
73
|
+
}
|
|
74
|
+
export interface Stoppable {
|
|
75
|
+
/**
|
|
76
|
+
* A ref indicate whether a stoppable instance is executing
|
|
77
|
+
*/
|
|
78
|
+
isPending: Ref<boolean>;
|
|
79
|
+
/**
|
|
80
|
+
* Stop the effect from executing
|
|
81
|
+
*/
|
|
82
|
+
stop: Fn;
|
|
83
|
+
/**
|
|
84
|
+
* Start the effects
|
|
85
|
+
*/
|
|
86
|
+
start: Fn;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* @deprecated Use `Stoppable`
|
|
90
|
+
*/
|
|
91
|
+
export type Stopable = Stoppable;
|
|
92
|
+
export interface ConfigurableFlush {
|
|
93
|
+
/**
|
|
94
|
+
* Timing for monitoring changes, refer to WatchOptions for more details
|
|
95
|
+
*
|
|
96
|
+
* @default 'pre'
|
|
97
|
+
*/
|
|
98
|
+
flush?: WatchOptions['flush'];
|
|
99
|
+
}
|
|
100
|
+
export interface ConfigurableFlushSync {
|
|
101
|
+
/**
|
|
102
|
+
* Timing for monitoring changes, refer to WatchOptions for more details.
|
|
103
|
+
* Unlike `watch()`, the default is set to `sync`
|
|
104
|
+
*
|
|
105
|
+
* @default 'sync'
|
|
106
|
+
*/
|
|
107
|
+
flush?: WatchOptions['flush'];
|
|
108
|
+
}
|
|
109
|
+
export type MapSources<T> = {
|
|
110
|
+
[K in keyof T]: T[K] extends WatchSource<infer V> ? V : never;
|
|
111
|
+
};
|
|
112
|
+
export type MapOldSources<T, Immediate> = {
|
|
113
|
+
[K in keyof T]: T[K] extends WatchSource<infer V> ? Immediate extends true ? V | undefined : V : never;
|
|
114
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
2
|
+
import type { MaybeComputedRef, MaybeRef } from './types';
|
|
3
|
+
export type VueInstance = ComponentPublicInstance;
|
|
4
|
+
export type MaybeElementRef<T extends MaybeElement = MaybeElement> = MaybeRef<T>;
|
|
5
|
+
export type MaybeComputedElementRef<T extends MaybeElement = MaybeElement> = MaybeComputedRef<T>;
|
|
6
|
+
export type MaybeElement = HTMLElement | SVGElement | VueInstance | undefined | null;
|
|
7
|
+
export type UnRefElementReturn<T extends MaybeElement = MaybeElement> = T extends VueInstance ? Exclude<MaybeElement, VueInstance> : T | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Get the dom element of a ref of element or Vue component instance
|
|
10
|
+
*
|
|
11
|
+
* @param elRef
|
|
12
|
+
*/
|
|
13
|
+
export declare function unrefElement<T extends MaybeElement>(elRef: MaybeComputedElementRef<T>): UnRefElementReturn<T>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Ref, UnwrapRef } from 'vue';
|
|
2
|
+
export default function useMergedState<T, R = Ref<T>>(defaultStateValue: T | (() => T), option?: {
|
|
3
|
+
defaultValue?: T | (() => T);
|
|
4
|
+
value?: Ref<T> | Ref<UnwrapRef<T>>;
|
|
5
|
+
onChange?: (val: T, prevValue: T) => void;
|
|
6
|
+
postState?: (val: T) => T;
|
|
7
|
+
}): [R, (val: T) => void];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Ref, ComponentPublicInstance } from 'vue';
|
|
2
|
+
import type { Key } from '../type';
|
|
3
|
+
type RefType = HTMLElement | ComponentPublicInstance;
|
|
4
|
+
export type RefsValue = Map<Key, RefType>;
|
|
5
|
+
type UseRef = [(key: Key) => (el: RefType) => void, Ref<RefsValue>];
|
|
6
|
+
declare const useRefs: () => UseRef;
|
|
7
|
+
export default useRefs;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface PickConfig {
|
|
2
|
+
aria?: boolean;
|
|
3
|
+
data?: boolean;
|
|
4
|
+
attr?: boolean;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Picker props from exist props with filter
|
|
8
|
+
* @param props Passed props
|
|
9
|
+
* @param ariaOnly boolean | { aria?: boolean; data?: boolean; attr?: boolean; } filter config
|
|
10
|
+
*/
|
|
11
|
+
export default function pickAttrs(props: object, ariaOnly?: boolean | PickConfig): {};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export interface AdjustOverflow {
|
|
2
|
+
adjustX?: 0 | 1;
|
|
3
|
+
adjustY?: 0 | 1;
|
|
4
|
+
}
|
|
5
|
+
export interface PlacementsConfig {
|
|
6
|
+
arrowWidth?: number;
|
|
7
|
+
horizontalArrowShift?: number;
|
|
8
|
+
verticalArrowShift?: number;
|
|
9
|
+
arrowPointAtCenter?: boolean;
|
|
10
|
+
autoAdjustOverflow?: boolean | AdjustOverflow;
|
|
11
|
+
}
|
|
12
|
+
export declare function getOverflowOptions(autoAdjustOverflow?: boolean | AdjustOverflow): {
|
|
13
|
+
adjustX: number;
|
|
14
|
+
adjustY: number;
|
|
15
|
+
};
|
|
16
|
+
export default function getPlacements(config: PlacementsConfig): {
|
|
17
|
+
left: {
|
|
18
|
+
points: string[];
|
|
19
|
+
offset: number[];
|
|
20
|
+
};
|
|
21
|
+
right: {
|
|
22
|
+
points: string[];
|
|
23
|
+
offset: number[];
|
|
24
|
+
};
|
|
25
|
+
top: {
|
|
26
|
+
points: string[];
|
|
27
|
+
offset: number[];
|
|
28
|
+
};
|
|
29
|
+
bottom: {
|
|
30
|
+
points: string[];
|
|
31
|
+
offset: number[];
|
|
32
|
+
};
|
|
33
|
+
topLeft: {
|
|
34
|
+
points: string[];
|
|
35
|
+
offset: number[];
|
|
36
|
+
};
|
|
37
|
+
leftTop: {
|
|
38
|
+
points: string[];
|
|
39
|
+
offset: number[];
|
|
40
|
+
};
|
|
41
|
+
topRight: {
|
|
42
|
+
points: string[];
|
|
43
|
+
offset: number[];
|
|
44
|
+
};
|
|
45
|
+
rightTop: {
|
|
46
|
+
points: string[];
|
|
47
|
+
offset: number[];
|
|
48
|
+
};
|
|
49
|
+
bottomRight: {
|
|
50
|
+
points: string[];
|
|
51
|
+
offset: number[];
|
|
52
|
+
};
|
|
53
|
+
rightBottom: {
|
|
54
|
+
points: string[];
|
|
55
|
+
offset: number[];
|
|
56
|
+
};
|
|
57
|
+
bottomLeft: {
|
|
58
|
+
points: string[];
|
|
59
|
+
offset: number[];
|
|
60
|
+
};
|
|
61
|
+
leftBottom: {
|
|
62
|
+
points: string[];
|
|
63
|
+
offset: number[];
|
|
64
|
+
};
|
|
65
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { camelize } from '../util';
|
|
2
|
+
import initDefaultProps from './initDefaultProps';
|
|
3
|
+
import type { VueInstance } from '../hooks/_vueuse/unrefElement';
|
|
4
|
+
declare const splitAttrs: (attrs: any) => {
|
|
5
|
+
onEvents: Record<string, any>;
|
|
6
|
+
events: Record<string, any>;
|
|
7
|
+
extraAttrs: Record<string, any>;
|
|
8
|
+
};
|
|
9
|
+
declare const parseStyleText: (cssText?: string, camel?: boolean) => {};
|
|
10
|
+
declare const hasProp: (instance: any, prop: string) => boolean;
|
|
11
|
+
export declare const skipFlattenKey: unique symbol;
|
|
12
|
+
declare const flattenChildren: (children?: any[], filterEmpty?: boolean) => any[];
|
|
13
|
+
declare const getSlot: (self: any, name?: string, options?: {}) => any[];
|
|
14
|
+
declare const findDOMNode: (instance: any) => any;
|
|
15
|
+
declare const getOptionProps: (instance: VueInstance) => {};
|
|
16
|
+
declare const getComponent: (instance: any, prop?: string, options?: any, execute?: boolean) => any;
|
|
17
|
+
declare const getKey: (ele: any) => any;
|
|
18
|
+
export declare function getEvents(ele?: any, on?: boolean): Record<string, any>;
|
|
19
|
+
export declare function getClass(ele: any): {};
|
|
20
|
+
export declare function getStyle(ele: any, camel?: boolean): any;
|
|
21
|
+
export declare function getComponentName(opts: any): any;
|
|
22
|
+
export declare function isFragment(c: any): boolean;
|
|
23
|
+
export declare function isEmptyContent(c: any): boolean;
|
|
24
|
+
export declare function isEmptyElement(c: any): boolean;
|
|
25
|
+
export declare function isEmptySlot(c: any): any;
|
|
26
|
+
export declare function isStringElement(c: any): boolean;
|
|
27
|
+
export declare function filterEmpty(children?: any[]): any[];
|
|
28
|
+
export declare function filterEmptyWithUndefined(children: any[]): any[];
|
|
29
|
+
declare function isValidElement(element: any): boolean;
|
|
30
|
+
declare function getPropsSlot(slots: any, props: any, prop?: string): any;
|
|
31
|
+
export declare const getTextFromElement: (ele: any) => any;
|
|
32
|
+
export { splitAttrs, hasProp, getOptionProps, getComponent, getKey, parseStyleText, initDefaultProps, isValidElement, camelize, getSlot, findDOMNode, flattenChildren, getPropsSlot, };
|
|
33
|
+
export default hasProp;
|