naive-ui
Version:
A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast
675 lines (674 loc) • 22.8 kB
TypeScript
import { type PropType } from 'vue';
import type { ExtractPublicPropTypes } from '../../_utils';
export declare const textProps: {
readonly code: BooleanConstructor;
readonly type: {
readonly type: StringConstructor;
readonly default: "default";
};
readonly delete: BooleanConstructor;
readonly strong: BooleanConstructor;
readonly italic: BooleanConstructor;
readonly underline: BooleanConstructor;
readonly depth: PropType<1 | 2 | 3 | "1" | "2" | "3">;
readonly tag: StringConstructor;
readonly as: {
readonly type: StringConstructor;
readonly validator: () => boolean;
readonly default: undefined;
};
readonly theme: PropType<import("../../_mixins").Theme<"Typography", {
aTextColor: string;
blockquoteTextColor: string;
blockquotePrefixColor: string;
blockquoteLineHeight: string;
blockquoteFontSize: string;
codeBorderRadius: string;
liTextColor: string;
liLineHeight: string;
liFontSize: string;
hrColor: string;
headerFontWeight: string;
headerTextColor: string;
pTextColor: string;
pTextColor1Depth: string;
pTextColor2Depth: string;
pTextColor3Depth: string;
pLineHeight: string;
pFontSize: string;
headerBarColor: string;
headerBarColorPrimary: string;
headerBarColorInfo: string;
headerBarColorError: string;
headerBarColorWarning: string;
headerBarColorSuccess: string;
textColor: string;
textColor1Depth: string;
textColor2Depth: string;
textColor3Depth: string;
textColorPrimary: string;
textColorInfo: string;
textColorSuccess: string;
textColorWarning: string;
textColorError: string;
codeTextColor: string;
codeColor: string;
codeBorder: string;
headerFontSize1: string;
headerFontSize2: string;
headerFontSize3: string;
headerFontSize4: string;
headerFontSize5: string;
headerFontSize6: string;
headerMargin1: string;
headerMargin2: string;
headerMargin3: string;
headerMargin4: string;
headerMargin5: string;
headerMargin6: string;
headerPrefixWidth1: string;
headerPrefixWidth2: string;
headerPrefixWidth3: string;
headerPrefixWidth4: string;
headerPrefixWidth5: string;
headerPrefixWidth6: string;
headerBarWidth1: string;
headerBarWidth2: string;
headerBarWidth3: string;
headerBarWidth4: string;
headerBarWidth5: string;
headerBarWidth6: string;
pMargin: string;
liMargin: string;
olPadding: string;
ulPadding: string;
}, any>>;
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Typography", {
aTextColor: string;
blockquoteTextColor: string;
blockquotePrefixColor: string;
blockquoteLineHeight: string;
blockquoteFontSize: string;
codeBorderRadius: string;
liTextColor: string;
liLineHeight: string;
liFontSize: string;
hrColor: string;
headerFontWeight: string;
headerTextColor: string;
pTextColor: string;
pTextColor1Depth: string;
pTextColor2Depth: string;
pTextColor3Depth: string;
pLineHeight: string;
pFontSize: string;
headerBarColor: string;
headerBarColorPrimary: string;
headerBarColorInfo: string;
headerBarColorError: string;
headerBarColorWarning: string;
headerBarColorSuccess: string;
textColor: string;
textColor1Depth: string;
textColor2Depth: string;
textColor3Depth: string;
textColorPrimary: string;
textColorInfo: string;
textColorSuccess: string;
textColorWarning: string;
textColorError: string;
codeTextColor: string;
codeColor: string;
codeBorder: string;
headerFontSize1: string;
headerFontSize2: string;
headerFontSize3: string;
headerFontSize4: string;
headerFontSize5: string;
headerFontSize6: string;
headerMargin1: string;
headerMargin2: string;
headerMargin3: string;
headerMargin4: string;
headerMargin5: string;
headerMargin6: string;
headerPrefixWidth1: string;
headerPrefixWidth2: string;
headerPrefixWidth3: string;
headerPrefixWidth4: string;
headerPrefixWidth5: string;
headerPrefixWidth6: string;
headerBarWidth1: string;
headerBarWidth2: string;
headerBarWidth3: string;
headerBarWidth4: string;
headerBarWidth5: string;
headerBarWidth6: string;
pMargin: string;
liMargin: string;
olPadding: string;
ulPadding: string;
}, any>>>;
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Typography", {
aTextColor: string;
blockquoteTextColor: string;
blockquotePrefixColor: string;
blockquoteLineHeight: string;
blockquoteFontSize: string;
codeBorderRadius: string;
liTextColor: string;
liLineHeight: string;
liFontSize: string;
hrColor: string;
headerFontWeight: string;
headerTextColor: string;
pTextColor: string;
pTextColor1Depth: string;
pTextColor2Depth: string;
pTextColor3Depth: string;
pLineHeight: string;
pFontSize: string;
headerBarColor: string;
headerBarColorPrimary: string;
headerBarColorInfo: string;
headerBarColorError: string;
headerBarColorWarning: string;
headerBarColorSuccess: string;
textColor: string;
textColor1Depth: string;
textColor2Depth: string;
textColor3Depth: string;
textColorPrimary: string;
textColorInfo: string;
textColorSuccess: string;
textColorWarning: string;
textColorError: string;
codeTextColor: string;
codeColor: string;
codeBorder: string;
headerFontSize1: string;
headerFontSize2: string;
headerFontSize3: string;
headerFontSize4: string;
headerFontSize5: string;
headerFontSize6: string;
headerMargin1: string;
headerMargin2: string;
headerMargin3: string;
headerMargin4: string;
headerMargin5: string;
headerMargin6: string;
headerPrefixWidth1: string;
headerPrefixWidth2: string;
headerPrefixWidth3: string;
headerPrefixWidth4: string;
headerPrefixWidth5: string;
headerPrefixWidth6: string;
headerBarWidth1: string;
headerBarWidth2: string;
headerBarWidth3: string;
headerBarWidth4: string;
headerBarWidth5: string;
headerBarWidth6: string;
pMargin: string;
liMargin: string;
olPadding: string;
ulPadding: string;
}, any>>>;
};
export type TextProps = ExtractPublicPropTypes<typeof textProps>;
declare const _default: import("vue").DefineComponent<{
readonly code: BooleanConstructor;
readonly type: {
readonly type: StringConstructor;
readonly default: "default";
};
readonly delete: BooleanConstructor;
readonly strong: BooleanConstructor;
readonly italic: BooleanConstructor;
readonly underline: BooleanConstructor;
readonly depth: PropType<1 | 2 | 3 | "1" | "2" | "3">;
readonly tag: StringConstructor;
readonly as: {
readonly type: StringConstructor;
readonly validator: () => boolean;
readonly default: undefined;
};
readonly theme: PropType<import("../../_mixins").Theme<"Typography", {
aTextColor: string;
blockquoteTextColor: string;
blockquotePrefixColor: string;
blockquoteLineHeight: string;
blockquoteFontSize: string;
codeBorderRadius: string;
liTextColor: string;
liLineHeight: string;
liFontSize: string;
hrColor: string;
headerFontWeight: string;
headerTextColor: string;
pTextColor: string;
pTextColor1Depth: string;
pTextColor2Depth: string;
pTextColor3Depth: string;
pLineHeight: string;
pFontSize: string;
headerBarColor: string;
headerBarColorPrimary: string;
headerBarColorInfo: string;
headerBarColorError: string;
headerBarColorWarning: string;
headerBarColorSuccess: string;
textColor: string;
textColor1Depth: string;
textColor2Depth: string;
textColor3Depth: string;
textColorPrimary: string;
textColorInfo: string;
textColorSuccess: string;
textColorWarning: string;
textColorError: string;
codeTextColor: string;
codeColor: string;
codeBorder: string;
headerFontSize1: string;
headerFontSize2: string;
headerFontSize3: string;
headerFontSize4: string;
headerFontSize5: string;
headerFontSize6: string;
headerMargin1: string;
headerMargin2: string;
headerMargin3: string;
headerMargin4: string;
headerMargin5: string;
headerMargin6: string;
headerPrefixWidth1: string;
headerPrefixWidth2: string;
headerPrefixWidth3: string;
headerPrefixWidth4: string;
headerPrefixWidth5: string;
headerPrefixWidth6: string;
headerBarWidth1: string;
headerBarWidth2: string;
headerBarWidth3: string;
headerBarWidth4: string;
headerBarWidth5: string;
headerBarWidth6: string;
pMargin: string;
liMargin: string;
olPadding: string;
ulPadding: string;
}, any>>;
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Typography", {
aTextColor: string;
blockquoteTextColor: string;
blockquotePrefixColor: string;
blockquoteLineHeight: string;
blockquoteFontSize: string;
codeBorderRadius: string;
liTextColor: string;
liLineHeight: string;
liFontSize: string;
hrColor: string;
headerFontWeight: string;
headerTextColor: string;
pTextColor: string;
pTextColor1Depth: string;
pTextColor2Depth: string;
pTextColor3Depth: string;
pLineHeight: string;
pFontSize: string;
headerBarColor: string;
headerBarColorPrimary: string;
headerBarColorInfo: string;
headerBarColorError: string;
headerBarColorWarning: string;
headerBarColorSuccess: string;
textColor: string;
textColor1Depth: string;
textColor2Depth: string;
textColor3Depth: string;
textColorPrimary: string;
textColorInfo: string;
textColorSuccess: string;
textColorWarning: string;
textColorError: string;
codeTextColor: string;
codeColor: string;
codeBorder: string;
headerFontSize1: string;
headerFontSize2: string;
headerFontSize3: string;
headerFontSize4: string;
headerFontSize5: string;
headerFontSize6: string;
headerMargin1: string;
headerMargin2: string;
headerMargin3: string;
headerMargin4: string;
headerMargin5: string;
headerMargin6: string;
headerPrefixWidth1: string;
headerPrefixWidth2: string;
headerPrefixWidth3: string;
headerPrefixWidth4: string;
headerPrefixWidth5: string;
headerPrefixWidth6: string;
headerBarWidth1: string;
headerBarWidth2: string;
headerBarWidth3: string;
headerBarWidth4: string;
headerBarWidth5: string;
headerBarWidth6: string;
pMargin: string;
liMargin: string;
olPadding: string;
ulPadding: string;
}, any>>>;
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Typography", {
aTextColor: string;
blockquoteTextColor: string;
blockquotePrefixColor: string;
blockquoteLineHeight: string;
blockquoteFontSize: string;
codeBorderRadius: string;
liTextColor: string;
liLineHeight: string;
liFontSize: string;
hrColor: string;
headerFontWeight: string;
headerTextColor: string;
pTextColor: string;
pTextColor1Depth: string;
pTextColor2Depth: string;
pTextColor3Depth: string;
pLineHeight: string;
pFontSize: string;
headerBarColor: string;
headerBarColorPrimary: string;
headerBarColorInfo: string;
headerBarColorError: string;
headerBarColorWarning: string;
headerBarColorSuccess: string;
textColor: string;
textColor1Depth: string;
textColor2Depth: string;
textColor3Depth: string;
textColorPrimary: string;
textColorInfo: string;
textColorSuccess: string;
textColorWarning: string;
textColorError: string;
codeTextColor: string;
codeColor: string;
codeBorder: string;
headerFontSize1: string;
headerFontSize2: string;
headerFontSize3: string;
headerFontSize4: string;
headerFontSize5: string;
headerFontSize6: string;
headerMargin1: string;
headerMargin2: string;
headerMargin3: string;
headerMargin4: string;
headerMargin5: string;
headerMargin6: string;
headerPrefixWidth1: string;
headerPrefixWidth2: string;
headerPrefixWidth3: string;
headerPrefixWidth4: string;
headerPrefixWidth5: string;
headerPrefixWidth6: string;
headerBarWidth1: string;
headerBarWidth2: string;
headerBarWidth3: string;
headerBarWidth4: string;
headerBarWidth5: string;
headerBarWidth6: string;
pMargin: string;
liMargin: string;
olPadding: string;
ulPadding: string;
}, any>>>;
}, {
mergedClsPrefix: import("vue").Ref<string>;
compitableTag: import("vue").ComputedRef<string | undefined>;
cssVars: import("vue").ComputedRef<{
'--n-bezier': string;
'--n-text-color': string;
'--n-font-weight-strong': string;
'--n-font-famliy-mono': string;
'--n-code-border-radius': string;
'--n-code-text-color': string;
'--n-code-color': string;
'--n-code-border': string;
}> | undefined;
themeClass: import("vue").Ref<string> | undefined;
onRender: (() => void) | undefined;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
readonly code: BooleanConstructor;
readonly type: {
readonly type: StringConstructor;
readonly default: "default";
};
readonly delete: BooleanConstructor;
readonly strong: BooleanConstructor;
readonly italic: BooleanConstructor;
readonly underline: BooleanConstructor;
readonly depth: PropType<1 | 2 | 3 | "1" | "2" | "3">;
readonly tag: StringConstructor;
readonly as: {
readonly type: StringConstructor;
readonly validator: () => boolean;
readonly default: undefined;
};
readonly theme: PropType<import("../../_mixins").Theme<"Typography", {
aTextColor: string;
blockquoteTextColor: string;
blockquotePrefixColor: string;
blockquoteLineHeight: string;
blockquoteFontSize: string;
codeBorderRadius: string;
liTextColor: string;
liLineHeight: string;
liFontSize: string;
hrColor: string;
headerFontWeight: string;
headerTextColor: string;
pTextColor: string;
pTextColor1Depth: string;
pTextColor2Depth: string;
pTextColor3Depth: string;
pLineHeight: string;
pFontSize: string;
headerBarColor: string;
headerBarColorPrimary: string;
headerBarColorInfo: string;
headerBarColorError: string;
headerBarColorWarning: string;
headerBarColorSuccess: string;
textColor: string;
textColor1Depth: string;
textColor2Depth: string;
textColor3Depth: string;
textColorPrimary: string;
textColorInfo: string;
textColorSuccess: string;
textColorWarning: string;
textColorError: string;
codeTextColor: string;
codeColor: string;
codeBorder: string;
headerFontSize1: string;
headerFontSize2: string;
headerFontSize3: string;
headerFontSize4: string;
headerFontSize5: string;
headerFontSize6: string;
headerMargin1: string;
headerMargin2: string;
headerMargin3: string;
headerMargin4: string;
headerMargin5: string;
headerMargin6: string;
headerPrefixWidth1: string;
headerPrefixWidth2: string;
headerPrefixWidth3: string;
headerPrefixWidth4: string;
headerPrefixWidth5: string;
headerPrefixWidth6: string;
headerBarWidth1: string;
headerBarWidth2: string;
headerBarWidth3: string;
headerBarWidth4: string;
headerBarWidth5: string;
headerBarWidth6: string;
pMargin: string;
liMargin: string;
olPadding: string;
ulPadding: string;
}, any>>;
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Typography", {
aTextColor: string;
blockquoteTextColor: string;
blockquotePrefixColor: string;
blockquoteLineHeight: string;
blockquoteFontSize: string;
codeBorderRadius: string;
liTextColor: string;
liLineHeight: string;
liFontSize: string;
hrColor: string;
headerFontWeight: string;
headerTextColor: string;
pTextColor: string;
pTextColor1Depth: string;
pTextColor2Depth: string;
pTextColor3Depth: string;
pLineHeight: string;
pFontSize: string;
headerBarColor: string;
headerBarColorPrimary: string;
headerBarColorInfo: string;
headerBarColorError: string;
headerBarColorWarning: string;
headerBarColorSuccess: string;
textColor: string;
textColor1Depth: string;
textColor2Depth: string;
textColor3Depth: string;
textColorPrimary: string;
textColorInfo: string;
textColorSuccess: string;
textColorWarning: string;
textColorError: string;
codeTextColor: string;
codeColor: string;
codeBorder: string;
headerFontSize1: string;
headerFontSize2: string;
headerFontSize3: string;
headerFontSize4: string;
headerFontSize5: string;
headerFontSize6: string;
headerMargin1: string;
headerMargin2: string;
headerMargin3: string;
headerMargin4: string;
headerMargin5: string;
headerMargin6: string;
headerPrefixWidth1: string;
headerPrefixWidth2: string;
headerPrefixWidth3: string;
headerPrefixWidth4: string;
headerPrefixWidth5: string;
headerPrefixWidth6: string;
headerBarWidth1: string;
headerBarWidth2: string;
headerBarWidth3: string;
headerBarWidth4: string;
headerBarWidth5: string;
headerBarWidth6: string;
pMargin: string;
liMargin: string;
olPadding: string;
ulPadding: string;
}, any>>>;
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Typography", {
aTextColor: string;
blockquoteTextColor: string;
blockquotePrefixColor: string;
blockquoteLineHeight: string;
blockquoteFontSize: string;
codeBorderRadius: string;
liTextColor: string;
liLineHeight: string;
liFontSize: string;
hrColor: string;
headerFontWeight: string;
headerTextColor: string;
pTextColor: string;
pTextColor1Depth: string;
pTextColor2Depth: string;
pTextColor3Depth: string;
pLineHeight: string;
pFontSize: string;
headerBarColor: string;
headerBarColorPrimary: string;
headerBarColorInfo: string;
headerBarColorError: string;
headerBarColorWarning: string;
headerBarColorSuccess: string;
textColor: string;
textColor1Depth: string;
textColor2Depth: string;
textColor3Depth: string;
textColorPrimary: string;
textColorInfo: string;
textColorSuccess: string;
textColorWarning: string;
textColorError: string;
codeTextColor: string;
codeColor: string;
codeBorder: string;
headerFontSize1: string;
headerFontSize2: string;
headerFontSize3: string;
headerFontSize4: string;
headerFontSize5: string;
headerFontSize6: string;
headerMargin1: string;
headerMargin2: string;
headerMargin3: string;
headerMargin4: string;
headerMargin5: string;
headerMargin6: string;
headerPrefixWidth1: string;
headerPrefixWidth2: string;
headerPrefixWidth3: string;
headerPrefixWidth4: string;
headerPrefixWidth5: string;
headerPrefixWidth6: string;
headerBarWidth1: string;
headerBarWidth2: string;
headerBarWidth3: string;
headerBarWidth4: string;
headerBarWidth5: string;
headerBarWidth6: string;
pMargin: string;
liMargin: string;
olPadding: string;
ulPadding: string;
}, any>>>;
}>>, {
readonly delete: boolean;
readonly type: string;
readonly code: boolean;
readonly strong: boolean;
readonly italic: boolean;
readonly underline: boolean;
readonly as: string;
}, {}>;
export default _default;