@yakad/ui 1.3.158 → 1.3.159
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/dist/Text/Text.d.ts +10 -22
- package/package.json +1 -1
package/dist/Text/Text.d.ts
CHANGED
|
@@ -1,29 +1,17 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
type TextVariant = "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "body1" | "body2" | "body3" | "body4" | "body5" | "body6" | "caption" | "span";
|
|
3
|
-
export interface
|
|
3
|
+
export interface TextProps<T> extends React.HTMLAttributes<T> {
|
|
4
4
|
variant?: TextVariant;
|
|
5
5
|
color?: "onSurfaceColor" | "onSurfaceVariantColor";
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
}
|
|
8
|
-
export declare const H1: import("react").ForwardRefExoticComponent<
|
|
9
|
-
export declare const H2: import("react").ForwardRefExoticComponent<
|
|
10
|
-
export declare const H3: import("react").ForwardRefExoticComponent<
|
|
11
|
-
export declare const H4: import("react").ForwardRefExoticComponent<
|
|
12
|
-
export declare const H5: import("react").ForwardRefExoticComponent<
|
|
13
|
-
export declare const H6: import("react").ForwardRefExoticComponent<
|
|
14
|
-
export
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
export declare const P: import("react").ForwardRefExoticComponent<ParagraphProps & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
19
|
-
export interface SpanProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
20
|
-
variant?: TextVariant;
|
|
21
|
-
children?: React.ReactNode;
|
|
22
|
-
}
|
|
23
|
-
export declare const Span: import("react").ForwardRefExoticComponent<SpanProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
24
|
-
export interface TextProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
25
|
-
variant?: TextVariant;
|
|
26
|
-
children?: React.ReactNode;
|
|
27
|
-
}
|
|
28
|
-
export declare const Text: import("react").ForwardRefExoticComponent<TextProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export declare const H1: import("react").ForwardRefExoticComponent<TextProps<HTMLHeadingElement> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
9
|
+
export declare const H2: import("react").ForwardRefExoticComponent<TextProps<HTMLHeadingElement> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
10
|
+
export declare const H3: import("react").ForwardRefExoticComponent<TextProps<HTMLHeadingElement> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
11
|
+
export declare const H4: import("react").ForwardRefExoticComponent<TextProps<HTMLHeadingElement> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
12
|
+
export declare const H5: import("react").ForwardRefExoticComponent<TextProps<HTMLHeadingElement> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
13
|
+
export declare const H6: import("react").ForwardRefExoticComponent<TextProps<HTMLHeadingElement> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
14
|
+
export declare const P: import("react").ForwardRefExoticComponent<TextProps<HTMLParagraphElement> & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
15
|
+
export declare const Span: import("react").ForwardRefExoticComponent<TextProps<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
16
|
+
export declare const Text: import("react").ForwardRefExoticComponent<TextProps<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
29
17
|
export {};
|