@vunk/plus 1.13.1 → 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/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 +25 -25
- 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 +31 -35
- package/components/tables-v1-checkbox/index.mjs +1239 -1042
- 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 +1 -1
- package/package.json +11 -1
|
@@ -0,0 +1,508 @@
|
|
|
1
|
+
import type { ShallowRef, ExtractPropTypes, Ref } from 'vue';
|
|
2
|
+
import CacheEntity from './Cache';
|
|
3
|
+
import type { Linter } from './linters/interface';
|
|
4
|
+
import type { Transformer } from './transformers/interface';
|
|
5
|
+
export declare const ATTR_TOKEN = "data-token-hash";
|
|
6
|
+
export declare const ATTR_MARK = "data-css-hash";
|
|
7
|
+
export declare const ATTR_CACHE_PATH = "data-cache-path";
|
|
8
|
+
export declare const CSS_IN_JS_INSTANCE = "__cssinjs_instance__";
|
|
9
|
+
export declare function createCache(): CacheEntity;
|
|
10
|
+
export type HashPriority = 'low' | 'high';
|
|
11
|
+
export interface StyleContextProps {
|
|
12
|
+
autoClear?: boolean;
|
|
13
|
+
/** @private Test only. Not work in production. */
|
|
14
|
+
mock?: 'server' | 'client';
|
|
15
|
+
/**
|
|
16
|
+
* Only set when you need ssr to extract style on you own.
|
|
17
|
+
* If not provided, it will auto create <style /> on the end of Provider in server side.
|
|
18
|
+
*/
|
|
19
|
+
cache: CacheEntity;
|
|
20
|
+
/** Tell children that this context is default generated context */
|
|
21
|
+
defaultCache: boolean;
|
|
22
|
+
/** Use `:where` selector to reduce hashId css selector priority */
|
|
23
|
+
hashPriority?: HashPriority;
|
|
24
|
+
/** Tell cssinjs where to inject style in */
|
|
25
|
+
container?: Element | ShadowRoot;
|
|
26
|
+
/** Component wil render inline `<style />` for fallback in SSR. Not recommend. */
|
|
27
|
+
ssrInline?: boolean;
|
|
28
|
+
/** Transform css before inject in document. Please note that `transformers` do not support dynamic update */
|
|
29
|
+
transformers?: Transformer[];
|
|
30
|
+
/**
|
|
31
|
+
* Linters to lint css before inject in document.
|
|
32
|
+
* Styles will be linted after transforming.
|
|
33
|
+
* Please note that `linters` do not support dynamic update.
|
|
34
|
+
*/
|
|
35
|
+
linters?: Linter[];
|
|
36
|
+
}
|
|
37
|
+
export type UseStyleProviderProps = Partial<StyleContextProps> | Ref<Partial<StyleContextProps>>;
|
|
38
|
+
export declare const useStyleInject: () => ShallowRef<Partial<StyleContextProps>>;
|
|
39
|
+
export declare const useStyleProvider: (props: UseStyleProviderProps) => ShallowRef<Partial<StyleContextProps>, Partial<StyleContextProps>>;
|
|
40
|
+
export declare const styleProviderProps: () => {
|
|
41
|
+
autoClear: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
/** @private Test only. Not work in production. */
|
|
46
|
+
mock: {
|
|
47
|
+
type: import("vue").PropType<"server" | "client">;
|
|
48
|
+
default: "server" | "client";
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Only set when you need ssr to extract style on you own.
|
|
52
|
+
* If not provided, it will auto create <style /> on the end of Provider in server side.
|
|
53
|
+
*/
|
|
54
|
+
cache: {
|
|
55
|
+
type: import("vue").PropType<CacheEntity>;
|
|
56
|
+
default: CacheEntity;
|
|
57
|
+
};
|
|
58
|
+
/** Tell children that this context is default generated context */
|
|
59
|
+
defaultCache: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
/** Use `:where` selector to reduce hashId css selector priority */
|
|
64
|
+
hashPriority: {
|
|
65
|
+
type: import("vue").PropType<HashPriority>;
|
|
66
|
+
default: HashPriority;
|
|
67
|
+
};
|
|
68
|
+
/** Tell cssinjs where to inject style in */
|
|
69
|
+
container: {
|
|
70
|
+
type: import("vue").PropType<Element | ShadowRoot>;
|
|
71
|
+
default: Element | ShadowRoot;
|
|
72
|
+
};
|
|
73
|
+
/** Component wil render inline `<style />` for fallback in SSR. Not recommend. */
|
|
74
|
+
ssrInline: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
/** Transform css before inject in document. Please note that `transformers` do not support dynamic update */
|
|
79
|
+
transformers: {
|
|
80
|
+
type: import("vue").PropType<Transformer[]>;
|
|
81
|
+
default: Transformer[];
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Linters to lint css before inject in document.
|
|
85
|
+
* Styles will be linted after transforming.
|
|
86
|
+
* Please note that `linters` do not support dynamic update.
|
|
87
|
+
*/
|
|
88
|
+
linters: {
|
|
89
|
+
type: import("vue").PropType<Linter[]>;
|
|
90
|
+
default: Linter[];
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
export type StyleProviderProps = Partial<ExtractPropTypes<ReturnType<typeof styleProviderProps>>>;
|
|
94
|
+
export declare const StyleProvider: {
|
|
95
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes<{
|
|
96
|
+
autoClear: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
100
|
+
/** @private Test only. Not work in production. */
|
|
101
|
+
mock: {
|
|
102
|
+
type: import("vue").PropType<"server" | "client">;
|
|
103
|
+
default: "server" | "client";
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Only set when you need ssr to extract style on you own.
|
|
107
|
+
* If not provided, it will auto create <style /> on the end of Provider in server side.
|
|
108
|
+
*/
|
|
109
|
+
cache: {
|
|
110
|
+
type: import("vue").PropType<CacheEntity>;
|
|
111
|
+
default: CacheEntity;
|
|
112
|
+
};
|
|
113
|
+
/** Tell children that this context is default generated context */
|
|
114
|
+
defaultCache: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
default: boolean;
|
|
117
|
+
};
|
|
118
|
+
/** Use `:where` selector to reduce hashId css selector priority */
|
|
119
|
+
hashPriority: {
|
|
120
|
+
type: import("vue").PropType<HashPriority>;
|
|
121
|
+
default: HashPriority;
|
|
122
|
+
};
|
|
123
|
+
/** Tell cssinjs where to inject style in */
|
|
124
|
+
container: {
|
|
125
|
+
type: import("vue").PropType<Element | ShadowRoot>;
|
|
126
|
+
default: Element | ShadowRoot;
|
|
127
|
+
};
|
|
128
|
+
/** Component wil render inline `<style />` for fallback in SSR. Not recommend. */
|
|
129
|
+
ssrInline: {
|
|
130
|
+
type: BooleanConstructor;
|
|
131
|
+
default: boolean;
|
|
132
|
+
};
|
|
133
|
+
/** Transform css before inject in document. Please note that `transformers` do not support dynamic update */
|
|
134
|
+
transformers: {
|
|
135
|
+
type: import("vue").PropType<Transformer[]>;
|
|
136
|
+
default: Transformer[];
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* Linters to lint css before inject in document.
|
|
140
|
+
* Styles will be linted after transforming.
|
|
141
|
+
* Please note that `linters` do not support dynamic update.
|
|
142
|
+
*/
|
|
143
|
+
linters: {
|
|
144
|
+
type: import("vue").PropType<Linter[]>;
|
|
145
|
+
default: Linter[];
|
|
146
|
+
};
|
|
147
|
+
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
148
|
+
[key: string]: any;
|
|
149
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
150
|
+
autoClear: boolean;
|
|
151
|
+
mock: "server" | "client";
|
|
152
|
+
cache: CacheEntity;
|
|
153
|
+
defaultCache: boolean;
|
|
154
|
+
hashPriority: HashPriority;
|
|
155
|
+
container: Element | ShadowRoot;
|
|
156
|
+
ssrInline: boolean;
|
|
157
|
+
transformers: Transformer[];
|
|
158
|
+
linters: Linter[];
|
|
159
|
+
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
160
|
+
P: {};
|
|
161
|
+
B: {};
|
|
162
|
+
D: {};
|
|
163
|
+
C: {};
|
|
164
|
+
M: {};
|
|
165
|
+
Defaults: {};
|
|
166
|
+
}, Readonly<ExtractPropTypes<{
|
|
167
|
+
autoClear: {
|
|
168
|
+
type: BooleanConstructor;
|
|
169
|
+
default: boolean;
|
|
170
|
+
};
|
|
171
|
+
/** @private Test only. Not work in production. */
|
|
172
|
+
mock: {
|
|
173
|
+
type: import("vue").PropType<"server" | "client">;
|
|
174
|
+
default: "server" | "client";
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* Only set when you need ssr to extract style on you own.
|
|
178
|
+
* If not provided, it will auto create <style /> on the end of Provider in server side.
|
|
179
|
+
*/
|
|
180
|
+
cache: {
|
|
181
|
+
type: import("vue").PropType<CacheEntity>;
|
|
182
|
+
default: CacheEntity;
|
|
183
|
+
};
|
|
184
|
+
/** Tell children that this context is default generated context */
|
|
185
|
+
defaultCache: {
|
|
186
|
+
type: BooleanConstructor;
|
|
187
|
+
default: boolean;
|
|
188
|
+
};
|
|
189
|
+
/** Use `:where` selector to reduce hashId css selector priority */
|
|
190
|
+
hashPriority: {
|
|
191
|
+
type: import("vue").PropType<HashPriority>;
|
|
192
|
+
default: HashPriority;
|
|
193
|
+
};
|
|
194
|
+
/** Tell cssinjs where to inject style in */
|
|
195
|
+
container: {
|
|
196
|
+
type: import("vue").PropType<Element | ShadowRoot>;
|
|
197
|
+
default: Element | ShadowRoot;
|
|
198
|
+
};
|
|
199
|
+
/** Component wil render inline `<style />` for fallback in SSR. Not recommend. */
|
|
200
|
+
ssrInline: {
|
|
201
|
+
type: BooleanConstructor;
|
|
202
|
+
default: boolean;
|
|
203
|
+
};
|
|
204
|
+
/** Transform css before inject in document. Please note that `transformers` do not support dynamic update */
|
|
205
|
+
transformers: {
|
|
206
|
+
type: import("vue").PropType<Transformer[]>;
|
|
207
|
+
default: Transformer[];
|
|
208
|
+
};
|
|
209
|
+
/**
|
|
210
|
+
* Linters to lint css before inject in document.
|
|
211
|
+
* Styles will be linted after transforming.
|
|
212
|
+
* Please note that `linters` do not support dynamic update.
|
|
213
|
+
*/
|
|
214
|
+
linters: {
|
|
215
|
+
type: import("vue").PropType<Linter[]>;
|
|
216
|
+
default: Linter[];
|
|
217
|
+
};
|
|
218
|
+
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
219
|
+
[key: string]: any;
|
|
220
|
+
}>, {}, {}, {}, {
|
|
221
|
+
autoClear: boolean;
|
|
222
|
+
mock: "server" | "client";
|
|
223
|
+
cache: CacheEntity;
|
|
224
|
+
defaultCache: boolean;
|
|
225
|
+
hashPriority: HashPriority;
|
|
226
|
+
container: Element | ShadowRoot;
|
|
227
|
+
ssrInline: boolean;
|
|
228
|
+
transformers: Transformer[];
|
|
229
|
+
linters: Linter[];
|
|
230
|
+
}>;
|
|
231
|
+
__isFragment?: never;
|
|
232
|
+
__isTeleport?: never;
|
|
233
|
+
__isSuspense?: never;
|
|
234
|
+
} & import("vue").ComponentOptionsBase<Readonly<ExtractPropTypes<{
|
|
235
|
+
autoClear: {
|
|
236
|
+
type: BooleanConstructor;
|
|
237
|
+
default: boolean;
|
|
238
|
+
};
|
|
239
|
+
/** @private Test only. Not work in production. */
|
|
240
|
+
mock: {
|
|
241
|
+
type: import("vue").PropType<"server" | "client">;
|
|
242
|
+
default: "server" | "client";
|
|
243
|
+
};
|
|
244
|
+
/**
|
|
245
|
+
* Only set when you need ssr to extract style on you own.
|
|
246
|
+
* If not provided, it will auto create <style /> on the end of Provider in server side.
|
|
247
|
+
*/
|
|
248
|
+
cache: {
|
|
249
|
+
type: import("vue").PropType<CacheEntity>;
|
|
250
|
+
default: CacheEntity;
|
|
251
|
+
};
|
|
252
|
+
/** Tell children that this context is default generated context */
|
|
253
|
+
defaultCache: {
|
|
254
|
+
type: BooleanConstructor;
|
|
255
|
+
default: boolean;
|
|
256
|
+
};
|
|
257
|
+
/** Use `:where` selector to reduce hashId css selector priority */
|
|
258
|
+
hashPriority: {
|
|
259
|
+
type: import("vue").PropType<HashPriority>;
|
|
260
|
+
default: HashPriority;
|
|
261
|
+
};
|
|
262
|
+
/** Tell cssinjs where to inject style in */
|
|
263
|
+
container: {
|
|
264
|
+
type: import("vue").PropType<Element | ShadowRoot>;
|
|
265
|
+
default: Element | ShadowRoot;
|
|
266
|
+
};
|
|
267
|
+
/** Component wil render inline `<style />` for fallback in SSR. Not recommend. */
|
|
268
|
+
ssrInline: {
|
|
269
|
+
type: BooleanConstructor;
|
|
270
|
+
default: boolean;
|
|
271
|
+
};
|
|
272
|
+
/** Transform css before inject in document. Please note that `transformers` do not support dynamic update */
|
|
273
|
+
transformers: {
|
|
274
|
+
type: import("vue").PropType<Transformer[]>;
|
|
275
|
+
default: Transformer[];
|
|
276
|
+
};
|
|
277
|
+
/**
|
|
278
|
+
* Linters to lint css before inject in document.
|
|
279
|
+
* Styles will be linted after transforming.
|
|
280
|
+
* Please note that `linters` do not support dynamic update.
|
|
281
|
+
*/
|
|
282
|
+
linters: {
|
|
283
|
+
type: import("vue").PropType<Linter[]>;
|
|
284
|
+
default: Linter[];
|
|
285
|
+
};
|
|
286
|
+
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
287
|
+
[key: string]: any;
|
|
288
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
289
|
+
autoClear: boolean;
|
|
290
|
+
mock: "server" | "client";
|
|
291
|
+
cache: CacheEntity;
|
|
292
|
+
defaultCache: boolean;
|
|
293
|
+
hashPriority: HashPriority;
|
|
294
|
+
container: Element | ShadowRoot;
|
|
295
|
+
ssrInline: boolean;
|
|
296
|
+
transformers: Transformer[];
|
|
297
|
+
linters: Linter[];
|
|
298
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin;
|
|
299
|
+
declare const _default: {
|
|
300
|
+
useStyleInject: () => ShallowRef<Partial<StyleContextProps>>;
|
|
301
|
+
useStyleProvider: (props: UseStyleProviderProps) => ShallowRef<Partial<StyleContextProps>, Partial<StyleContextProps>>;
|
|
302
|
+
StyleProvider: {
|
|
303
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes<{
|
|
304
|
+
autoClear: {
|
|
305
|
+
type: BooleanConstructor;
|
|
306
|
+
default: boolean;
|
|
307
|
+
};
|
|
308
|
+
/** @private Test only. Not work in production. */
|
|
309
|
+
mock: {
|
|
310
|
+
type: import("vue").PropType<"server" | "client">;
|
|
311
|
+
default: "server" | "client";
|
|
312
|
+
};
|
|
313
|
+
/**
|
|
314
|
+
* Only set when you need ssr to extract style on you own.
|
|
315
|
+
* If not provided, it will auto create <style /> on the end of Provider in server side.
|
|
316
|
+
*/
|
|
317
|
+
cache: {
|
|
318
|
+
type: import("vue").PropType<CacheEntity>;
|
|
319
|
+
default: CacheEntity;
|
|
320
|
+
};
|
|
321
|
+
/** Tell children that this context is default generated context */
|
|
322
|
+
defaultCache: {
|
|
323
|
+
type: BooleanConstructor;
|
|
324
|
+
default: boolean;
|
|
325
|
+
};
|
|
326
|
+
/** Use `:where` selector to reduce hashId css selector priority */
|
|
327
|
+
hashPriority: {
|
|
328
|
+
type: import("vue").PropType<HashPriority>;
|
|
329
|
+
default: HashPriority;
|
|
330
|
+
};
|
|
331
|
+
/** Tell cssinjs where to inject style in */
|
|
332
|
+
container: {
|
|
333
|
+
type: import("vue").PropType<Element | ShadowRoot>;
|
|
334
|
+
default: Element | ShadowRoot;
|
|
335
|
+
};
|
|
336
|
+
/** Component wil render inline `<style />` for fallback in SSR. Not recommend. */
|
|
337
|
+
ssrInline: {
|
|
338
|
+
type: BooleanConstructor;
|
|
339
|
+
default: boolean;
|
|
340
|
+
};
|
|
341
|
+
/** Transform css before inject in document. Please note that `transformers` do not support dynamic update */
|
|
342
|
+
transformers: {
|
|
343
|
+
type: import("vue").PropType<Transformer[]>;
|
|
344
|
+
default: Transformer[];
|
|
345
|
+
};
|
|
346
|
+
/**
|
|
347
|
+
* Linters to lint css before inject in document.
|
|
348
|
+
* Styles will be linted after transforming.
|
|
349
|
+
* Please note that `linters` do not support dynamic update.
|
|
350
|
+
*/
|
|
351
|
+
linters: {
|
|
352
|
+
type: import("vue").PropType<Linter[]>;
|
|
353
|
+
default: Linter[];
|
|
354
|
+
};
|
|
355
|
+
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
356
|
+
[key: string]: any;
|
|
357
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
358
|
+
autoClear: boolean;
|
|
359
|
+
mock: "server" | "client";
|
|
360
|
+
cache: CacheEntity;
|
|
361
|
+
defaultCache: boolean;
|
|
362
|
+
hashPriority: HashPriority;
|
|
363
|
+
container: Element | ShadowRoot;
|
|
364
|
+
ssrInline: boolean;
|
|
365
|
+
transformers: Transformer[];
|
|
366
|
+
linters: Linter[];
|
|
367
|
+
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
368
|
+
P: {};
|
|
369
|
+
B: {};
|
|
370
|
+
D: {};
|
|
371
|
+
C: {};
|
|
372
|
+
M: {};
|
|
373
|
+
Defaults: {};
|
|
374
|
+
}, Readonly<ExtractPropTypes<{
|
|
375
|
+
autoClear: {
|
|
376
|
+
type: BooleanConstructor;
|
|
377
|
+
default: boolean;
|
|
378
|
+
};
|
|
379
|
+
/** @private Test only. Not work in production. */
|
|
380
|
+
mock: {
|
|
381
|
+
type: import("vue").PropType<"server" | "client">;
|
|
382
|
+
default: "server" | "client";
|
|
383
|
+
};
|
|
384
|
+
/**
|
|
385
|
+
* Only set when you need ssr to extract style on you own.
|
|
386
|
+
* If not provided, it will auto create <style /> on the end of Provider in server side.
|
|
387
|
+
*/
|
|
388
|
+
cache: {
|
|
389
|
+
type: import("vue").PropType<CacheEntity>;
|
|
390
|
+
default: CacheEntity;
|
|
391
|
+
};
|
|
392
|
+
/** Tell children that this context is default generated context */
|
|
393
|
+
defaultCache: {
|
|
394
|
+
type: BooleanConstructor;
|
|
395
|
+
default: boolean;
|
|
396
|
+
};
|
|
397
|
+
/** Use `:where` selector to reduce hashId css selector priority */
|
|
398
|
+
hashPriority: {
|
|
399
|
+
type: import("vue").PropType<HashPriority>;
|
|
400
|
+
default: HashPriority;
|
|
401
|
+
};
|
|
402
|
+
/** Tell cssinjs where to inject style in */
|
|
403
|
+
container: {
|
|
404
|
+
type: import("vue").PropType<Element | ShadowRoot>;
|
|
405
|
+
default: Element | ShadowRoot;
|
|
406
|
+
};
|
|
407
|
+
/** Component wil render inline `<style />` for fallback in SSR. Not recommend. */
|
|
408
|
+
ssrInline: {
|
|
409
|
+
type: BooleanConstructor;
|
|
410
|
+
default: boolean;
|
|
411
|
+
};
|
|
412
|
+
/** Transform css before inject in document. Please note that `transformers` do not support dynamic update */
|
|
413
|
+
transformers: {
|
|
414
|
+
type: import("vue").PropType<Transformer[]>;
|
|
415
|
+
default: Transformer[];
|
|
416
|
+
};
|
|
417
|
+
/**
|
|
418
|
+
* Linters to lint css before inject in document.
|
|
419
|
+
* Styles will be linted after transforming.
|
|
420
|
+
* Please note that `linters` do not support dynamic update.
|
|
421
|
+
*/
|
|
422
|
+
linters: {
|
|
423
|
+
type: import("vue").PropType<Linter[]>;
|
|
424
|
+
default: Linter[];
|
|
425
|
+
};
|
|
426
|
+
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
427
|
+
[key: string]: any;
|
|
428
|
+
}>, {}, {}, {}, {
|
|
429
|
+
autoClear: boolean;
|
|
430
|
+
mock: "server" | "client";
|
|
431
|
+
cache: CacheEntity;
|
|
432
|
+
defaultCache: boolean;
|
|
433
|
+
hashPriority: HashPriority;
|
|
434
|
+
container: Element | ShadowRoot;
|
|
435
|
+
ssrInline: boolean;
|
|
436
|
+
transformers: Transformer[];
|
|
437
|
+
linters: Linter[];
|
|
438
|
+
}>;
|
|
439
|
+
__isFragment?: never;
|
|
440
|
+
__isTeleport?: never;
|
|
441
|
+
__isSuspense?: never;
|
|
442
|
+
} & import("vue").ComponentOptionsBase<Readonly<ExtractPropTypes<{
|
|
443
|
+
autoClear: {
|
|
444
|
+
type: BooleanConstructor;
|
|
445
|
+
default: boolean;
|
|
446
|
+
};
|
|
447
|
+
/** @private Test only. Not work in production. */
|
|
448
|
+
mock: {
|
|
449
|
+
type: import("vue").PropType<"server" | "client">;
|
|
450
|
+
default: "server" | "client";
|
|
451
|
+
};
|
|
452
|
+
/**
|
|
453
|
+
* Only set when you need ssr to extract style on you own.
|
|
454
|
+
* If not provided, it will auto create <style /> on the end of Provider in server side.
|
|
455
|
+
*/
|
|
456
|
+
cache: {
|
|
457
|
+
type: import("vue").PropType<CacheEntity>;
|
|
458
|
+
default: CacheEntity;
|
|
459
|
+
};
|
|
460
|
+
/** Tell children that this context is default generated context */
|
|
461
|
+
defaultCache: {
|
|
462
|
+
type: BooleanConstructor;
|
|
463
|
+
default: boolean;
|
|
464
|
+
};
|
|
465
|
+
/** Use `:where` selector to reduce hashId css selector priority */
|
|
466
|
+
hashPriority: {
|
|
467
|
+
type: import("vue").PropType<HashPriority>;
|
|
468
|
+
default: HashPriority;
|
|
469
|
+
};
|
|
470
|
+
/** Tell cssinjs where to inject style in */
|
|
471
|
+
container: {
|
|
472
|
+
type: import("vue").PropType<Element | ShadowRoot>;
|
|
473
|
+
default: Element | ShadowRoot;
|
|
474
|
+
};
|
|
475
|
+
/** Component wil render inline `<style />` for fallback in SSR. Not recommend. */
|
|
476
|
+
ssrInline: {
|
|
477
|
+
type: BooleanConstructor;
|
|
478
|
+
default: boolean;
|
|
479
|
+
};
|
|
480
|
+
/** Transform css before inject in document. Please note that `transformers` do not support dynamic update */
|
|
481
|
+
transformers: {
|
|
482
|
+
type: import("vue").PropType<Transformer[]>;
|
|
483
|
+
default: Transformer[];
|
|
484
|
+
};
|
|
485
|
+
/**
|
|
486
|
+
* Linters to lint css before inject in document.
|
|
487
|
+
* Styles will be linted after transforming.
|
|
488
|
+
* Please note that `linters` do not support dynamic update.
|
|
489
|
+
*/
|
|
490
|
+
linters: {
|
|
491
|
+
type: import("vue").PropType<Linter[]>;
|
|
492
|
+
default: Linter[];
|
|
493
|
+
};
|
|
494
|
+
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
495
|
+
[key: string]: any;
|
|
496
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
497
|
+
autoClear: boolean;
|
|
498
|
+
mock: "server" | "client";
|
|
499
|
+
cache: CacheEntity;
|
|
500
|
+
defaultCache: boolean;
|
|
501
|
+
hashPriority: HashPriority;
|
|
502
|
+
container: Element | ShadowRoot;
|
|
503
|
+
ssrInline: boolean;
|
|
504
|
+
transformers: Transformer[];
|
|
505
|
+
linters: Linter[];
|
|
506
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin;
|
|
507
|
+
};
|
|
508
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { TokenWithCSSVar } from '../util';
|
|
2
|
+
import type { ExtractStyle } from './useGlobalCache';
|
|
3
|
+
export declare const CSS_VAR_PREFIX = "cssVar";
|
|
4
|
+
type CSSVarCacheValue<V, T extends Record<string, V> = Record<string, V>> = [
|
|
5
|
+
cssVarToken: TokenWithCSSVar<V, T>,
|
|
6
|
+
cssVarStr: string,
|
|
7
|
+
styleId: string,
|
|
8
|
+
cssVarKey: string
|
|
9
|
+
];
|
|
10
|
+
declare const useCSSVarRegister: <V, T extends Record<string, V>>(config: {
|
|
11
|
+
path: string[];
|
|
12
|
+
key: string;
|
|
13
|
+
prefix?: string;
|
|
14
|
+
unitless?: Record<string, boolean>;
|
|
15
|
+
ignore?: Record<string, boolean>;
|
|
16
|
+
scope?: string;
|
|
17
|
+
token: any;
|
|
18
|
+
}, fn: () => T) => import("vue").ShallowRef<CSSVarCacheValue<V, T>>;
|
|
19
|
+
export declare const extract: ExtractStyle<CSSVarCacheValue<any>>;
|
|
20
|
+
export default useCSSVarRegister;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type Theme from '../theme/Theme';
|
|
2
|
+
import type { Ref } from 'vue';
|
|
3
|
+
export interface Option<DerivativeToken, DesignToken> {
|
|
4
|
+
/**
|
|
5
|
+
* Generate token with salt.
|
|
6
|
+
* This is used to generate different hashId even same derivative token for different version.
|
|
7
|
+
*/
|
|
8
|
+
salt?: string;
|
|
9
|
+
override?: object;
|
|
10
|
+
/**
|
|
11
|
+
* Format token as you need. Such as:
|
|
12
|
+
*
|
|
13
|
+
* - rename token
|
|
14
|
+
* - merge token
|
|
15
|
+
* - delete token
|
|
16
|
+
*
|
|
17
|
+
* This should always be the same since it's one time process.
|
|
18
|
+
* It's ok to useMemo outside but this has better cache strategy.
|
|
19
|
+
*/
|
|
20
|
+
formatToken?: (mergedToken: any) => DerivativeToken;
|
|
21
|
+
/**
|
|
22
|
+
* Get final token with origin token, override token and theme.
|
|
23
|
+
* The parameters do not contain formatToken since it's passed by user.
|
|
24
|
+
* @param origin The original token.
|
|
25
|
+
* @param override Extra tokens to override.
|
|
26
|
+
* @param theme Theme instance. Could get derivative token by `theme.getDerivativeToken`
|
|
27
|
+
*/
|
|
28
|
+
getComputedToken?: (origin: DesignToken, override: object, theme: Theme<any, any>) => DerivativeToken;
|
|
29
|
+
}
|
|
30
|
+
export declare const getComputedToken: <DerivativeToken = object, DesignToken = DerivativeToken>(originToken: DesignToken, overrideToken: object, theme: Theme<any, any>, format?: (token: DesignToken) => DerivativeToken) => any;
|
|
31
|
+
/**
|
|
32
|
+
* Cache theme derivative token as global shared one
|
|
33
|
+
* @param theme Theme entity
|
|
34
|
+
* @param tokens List of tokens, used for cache. Please do not dynamic generate object directly
|
|
35
|
+
* @param option Additional config
|
|
36
|
+
* @returns Call Theme.getDerivativeToken(tokenObject) to get token
|
|
37
|
+
*/
|
|
38
|
+
export default function useCacheToken<DerivativeToken = object, DesignToken = DerivativeToken>(theme: Ref<Theme<any, any>>, tokens: Ref<Partial<DesignToken>[]>, option?: Ref<Option<DerivativeToken, DesignToken>>): import("vue").ShallowRef<[DerivativeToken & {
|
|
39
|
+
_tokenKey: string;
|
|
40
|
+
}, string]>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { KeyType } from '../Cache';
|
|
2
|
+
import type { ShallowRef, Ref } from 'vue';
|
|
3
|
+
export type ExtractStyle<CacheValue> = (cache: CacheValue, effectStyles: Record<string, boolean>, options?: {
|
|
4
|
+
plain?: boolean;
|
|
5
|
+
}) => [order: number, styleId: string, style: string] | null;
|
|
6
|
+
export default function useClientCache<CacheType>(prefix: string, keyPath: Ref<KeyType[]>, cacheFn: () => CacheType, onCacheRemove?: (cache: CacheType, fromHMR: boolean) => void): ShallowRef<CacheType>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const ATTR_CACHE_MAP = "data-ant-cssinjs-cache-path";
|
|
2
|
+
/**
|
|
3
|
+
* This marks style from the css file.
|
|
4
|
+
* Which means not exist in `<style />` tag.
|
|
5
|
+
*/
|
|
6
|
+
export declare const CSS_FILE_STYLE = "_FILE_STYLE__";
|
|
7
|
+
export declare function serialize(cachePathMap: Record<string, string>): string;
|
|
8
|
+
/**
|
|
9
|
+
* @private Test usage only. Can save remove if no need.
|
|
10
|
+
*/
|
|
11
|
+
export declare function reset(mockCache?: Record<string, string>, fromFile?: boolean): void;
|
|
12
|
+
export declare function prepare(): void;
|
|
13
|
+
export declare function existPath(path: string): boolean;
|
|
14
|
+
export declare function getStyleAndHash(path: string): [style: string | null, hash: string];
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type * as CSS from 'csstype';
|
|
2
|
+
import type { Theme, Transformer } from '../..';
|
|
3
|
+
import type Cache from '../../Cache';
|
|
4
|
+
import type Keyframes from '../../Keyframes';
|
|
5
|
+
import type { Linter } from '../../linters';
|
|
6
|
+
import type { HashPriority } from '../../StyleContext';
|
|
7
|
+
import type { Ref } from 'vue';
|
|
8
|
+
import type { VueNode } from '../../../type';
|
|
9
|
+
declare const SKIP_CHECK = "_skip_check_";
|
|
10
|
+
declare const MULTI_VALUE = "_multi_value_";
|
|
11
|
+
export type CSSProperties = Omit<CSS.PropertiesFallback<number | string>, 'animationName'> & {
|
|
12
|
+
animationName?: CSS.PropertiesFallback<number | string>['animationName'] | Keyframes;
|
|
13
|
+
};
|
|
14
|
+
export type CSSPropertiesWithMultiValues = {
|
|
15
|
+
[K in keyof CSSProperties]: CSSProperties[K] | readonly Extract<CSSProperties[K], string>[] | {
|
|
16
|
+
[SKIP_CHECK]?: boolean;
|
|
17
|
+
[MULTI_VALUE]?: boolean;
|
|
18
|
+
value: CSSProperties[K] | CSSProperties[K][];
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export type CSSPseudos = {
|
|
22
|
+
[K in CSS.Pseudos]?: CSSObject;
|
|
23
|
+
};
|
|
24
|
+
type ArrayCSSInterpolation = readonly CSSInterpolation[];
|
|
25
|
+
export type InterpolationPrimitive = null | undefined | boolean | number | string | CSSObject;
|
|
26
|
+
export type CSSInterpolation = InterpolationPrimitive | ArrayCSSInterpolation | Keyframes;
|
|
27
|
+
export type CSSOthersObject = Record<string, CSSInterpolation>;
|
|
28
|
+
export interface CSSObject extends CSSPropertiesWithMultiValues, CSSPseudos, CSSOthersObject {
|
|
29
|
+
}
|
|
30
|
+
export declare function normalizeStyle(styleStr: string): string;
|
|
31
|
+
export interface ParseConfig {
|
|
32
|
+
hashId?: string;
|
|
33
|
+
hashPriority?: HashPriority;
|
|
34
|
+
layer?: string;
|
|
35
|
+
path?: string;
|
|
36
|
+
transformers?: Transformer[];
|
|
37
|
+
linters?: Linter[];
|
|
38
|
+
}
|
|
39
|
+
export interface ParseInfo {
|
|
40
|
+
root?: boolean;
|
|
41
|
+
injectHash?: boolean;
|
|
42
|
+
parentSelectors: string[];
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @private Test only. Clear the global effect style keys.
|
|
46
|
+
*/
|
|
47
|
+
export declare const _cf: () => void;
|
|
48
|
+
export declare const parseStyle: (interpolation: CSSInterpolation, config?: ParseConfig, { root, injectHash, parentSelectors }?: ParseInfo) => [parsedStr: string, effectStyle: Record<string, string>];
|
|
49
|
+
export declare function uniqueHash(path: (string | number)[], styleStr: string): string;
|
|
50
|
+
/**
|
|
51
|
+
* Register a style to the global style sheet.
|
|
52
|
+
*/
|
|
53
|
+
export default function useStyleRegister(info: Ref<{
|
|
54
|
+
theme: Theme<any, any>;
|
|
55
|
+
token: any;
|
|
56
|
+
path: string[];
|
|
57
|
+
hashId?: string;
|
|
58
|
+
layer?: string;
|
|
59
|
+
nonce?: string | (() => string);
|
|
60
|
+
clientOnly?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Tell cssinjs the insert order of style.
|
|
63
|
+
* It's useful when you need to insert style
|
|
64
|
+
* before other style to overwrite for the same selector priority.
|
|
65
|
+
*/
|
|
66
|
+
order?: number;
|
|
67
|
+
}>, styleFn: () => CSSInterpolation): (node: VueNode) => VueNode;
|
|
68
|
+
export declare function extractStyle(cache: Cache, plain?: boolean): string;
|
|
69
|
+
export {};
|