@edvisor/product-language 0.11.62 → 0.11.64
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.
|
@@ -4,9 +4,11 @@ import { FC, PropsWithChildren } from '@helpers';
|
|
|
4
4
|
import { ITextAspectProps, ITransientTextAspectProps } from 'foundations/typography/text-aspect-flags';
|
|
5
5
|
export declare type ITextComponentProps = ITextAspectProps & {
|
|
6
6
|
emphasis?: boolean;
|
|
7
|
+
underlined?: boolean;
|
|
7
8
|
} & HTMLAttributes<HTMLElement> & PropsWithChildren;
|
|
8
9
|
declare type ITransientTextComponentProps = ITransientTextAspectProps & {
|
|
9
10
|
$emphasis?: boolean;
|
|
11
|
+
$underlined?: boolean;
|
|
10
12
|
} & HTMLAttributes<HTMLElement>;
|
|
11
13
|
export declare const Display: FC<ITextComponentProps>;
|
|
12
14
|
export declare const Heading1: FC<ITextComponentProps>;
|
|
@@ -9,11 +9,22 @@ export declare const enum TextAspects {
|
|
|
9
9
|
onCritical = 64
|
|
10
10
|
}
|
|
11
11
|
declare type TextOptions<T> = MappedEnum<typeof TextAspects, T>;
|
|
12
|
+
export declare const TextAspectColors: {
|
|
13
|
+
1: "#1F2937";
|
|
14
|
+
2: "#6B7280";
|
|
15
|
+
4: "#9CA3AF";
|
|
16
|
+
32: "#FFFFFF";
|
|
17
|
+
64: "#FFFFFF";
|
|
18
|
+
16: "#059669";
|
|
19
|
+
8: "#DC2626";
|
|
20
|
+
};
|
|
12
21
|
export declare type ITextAspectProps = Partial<RequireOnlyOne<TextOptions<boolean>>> & PropsWithChildren;
|
|
13
22
|
export declare type TransientTextOptions = Omit<TextOptions<boolean>, 'onCritical' | 'onPrimary'> & {
|
|
14
23
|
$onCritical?: boolean;
|
|
15
24
|
$onPrimary?: boolean;
|
|
16
25
|
};
|
|
17
|
-
export declare type ITransientTextAspectProps = Partial<RequireOnlyOne<TransientTextOptions>> &
|
|
26
|
+
export declare type ITransientTextAspectProps = Partial<RequireOnlyOne<TransientTextOptions>> & {
|
|
27
|
+
$underlined?: boolean;
|
|
28
|
+
} & PropsWithChildren;
|
|
18
29
|
export declare function getTextAspect(props: ITextAspectProps & ITransientTextAspectProps): "#9CA3AF" | "#6B7280" | "#1F2937" | "#DC2626" | "#059669" | "#FFFFFF";
|
|
19
30
|
export {};
|