@mparticle/aquarium 1.35.0 → 1.35.1-fix-typography.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,30 +1,34 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { type
|
|
7
|
-
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { TextProps as AntTextProps } from 'antd/es/typography/Text';
|
|
3
|
+
import type { TitleProps as AntTitleProps } from 'antd/es/typography/Title';
|
|
4
|
+
import type { LinkProps as AntLinkProps } from 'antd/es/typography/Link';
|
|
5
|
+
import type { ParagraphProps as AntParagraphProps } from 'antd/es/typography/Paragraph';
|
|
6
|
+
import { type TypographyColor } from './colors';
|
|
7
|
+
type TypographySize = 'base' | 'sm' | 'lg' | 'xl' | number;
|
|
8
|
+
interface InternalTypographyProps {
|
|
9
|
+
size?: TypographySize;
|
|
10
|
+
color?: TypographyColor;
|
|
8
11
|
children: ReactNode;
|
|
9
12
|
}
|
|
10
13
|
export declare const Typography: {
|
|
11
|
-
(
|
|
12
|
-
Text: (
|
|
14
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
Text: (props: ITextProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
16
|
Title: (props: ITitleProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
17
|
Link: (props: ILinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
18
|
Paragraph: (props: IParagraphProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
19
|
};
|
|
17
|
-
type
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
type InternalTextProps = InternalTypographyProps & AntTextProps;
|
|
21
|
+
type InternalTitleProps = InternalTypographyProps & AntTitleProps;
|
|
22
|
+
type InternalLinkProps = InternalTypographyProps & AntLinkProps;
|
|
23
|
+
type InternalParagraphProps = InternalTypographyProps & AntParagraphProps;
|
|
24
|
+
export interface ITextProps extends InternalTextProps {
|
|
25
|
+
tooltip?: boolean;
|
|
20
26
|
}
|
|
21
|
-
interface ITitleProps extends
|
|
22
|
-
children: ReactNode;
|
|
27
|
+
export interface ITitleProps extends InternalTitleProps {
|
|
23
28
|
}
|
|
24
|
-
export interface ILinkProps extends
|
|
25
|
-
|
|
29
|
+
export interface ILinkProps extends InternalLinkProps {
|
|
30
|
+
tooltip?: boolean;
|
|
26
31
|
}
|
|
27
|
-
export interface IParagraphProps extends
|
|
28
|
-
children: ReactNode;
|
|
32
|
+
export interface IParagraphProps extends InternalParagraphProps {
|
|
29
33
|
}
|
|
30
34
|
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const TypographyColors: readonly ["ColorText", "ColorTextSecondary", "ColorTextTertiary", "ColorTextQuaternary", "ColorInfoText", "ColorInfoTextActive", "ColorPrimaryTextHover", "ColorPrimaryText", "ColorPrimaryTextActive", "ColorSuccessTextHover", "ColorSuccessText", "ColorSuccessTextActive", "ColorErrorTextHover", "ColorErrorText", "ColorErrorTextActive", "ColorWarningTextHover", "ColorWarningText", "ColorWarningTextActive", "ColorLink", "ColorLinkHover", "ColorLinkActive", "ColorTextPlaceholder", "ColorTextDisabled", "ColorTextHeading", "ColorTextLabel", "ColorTextDescription", "ColorTextLightSolid"];
|
|
2
|
+
export type TypographyColor = (typeof TypographyColors)[number];
|
|
3
|
+
export declare function getColorFromStyles(color: TypographyColor | string): string;
|