dt-shared-front 2.2.39 → 2.2.41
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/components/heading/heading.d.ts +15 -1
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/text/text.d.ts +16 -1
- package/dist/components/text-area/text-area.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/main.css +35 -35
- package/dist/main.css.map +1 -1
- package/package.json +1 -1
@@ -12,8 +12,21 @@ export declare enum EHeadingWeight {
|
|
12
12
|
medium = "medium",
|
13
13
|
regular = "regular"
|
14
14
|
}
|
15
|
+
export declare enum EHeadingVariant {
|
16
|
+
default = "default",
|
17
|
+
addition = "addition",
|
18
|
+
light = "light",
|
19
|
+
disabled = "disabled",
|
20
|
+
brand = "brand",
|
21
|
+
attention = "attention",
|
22
|
+
error = "error",
|
23
|
+
success = "success",
|
24
|
+
warning = "warning",
|
25
|
+
inverse = "inverse"
|
26
|
+
}
|
15
27
|
interface IHeadingProps {
|
16
28
|
level?: EHeadingLevel;
|
29
|
+
mobLevel?: EHeadingLevel;
|
17
30
|
children?: any;
|
18
31
|
addition?: boolean;
|
19
32
|
attention?: boolean;
|
@@ -21,9 +34,10 @@ interface IHeadingProps {
|
|
21
34
|
warning?: boolean;
|
22
35
|
inverse?: boolean;
|
23
36
|
error?: boolean;
|
37
|
+
variant?: keyof typeof EHeadingVariant;
|
24
38
|
className?: string;
|
25
39
|
centerText?: boolean;
|
26
40
|
weight?: keyof typeof EHeadingWeight;
|
27
41
|
}
|
28
|
-
export declare const Heading: ({ children, level, addition, attention, warning, success, inverse, error, className, centerText, weight, }: IHeadingProps) => React.JSX.Element;
|
42
|
+
export declare const Heading: ({ children, level, mobLevel, addition, attention, warning, success, inverse, error, variant, className, centerText, weight, }: IHeadingProps) => React.JSX.Element;
|
29
43
|
export {};
|
@@ -62,4 +62,4 @@ export declare const Input: React.ForwardRefExoticComponent<{
|
|
62
62
|
onPointerUp?: (e: any) => void;
|
63
63
|
onChange?: (value: string, event: ChangeEvent<HTMLInputElement>) => void;
|
64
64
|
onSearch?: ((val: string) => void) | ((val: string) => Promise<void>);
|
65
|
-
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
65
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "variant" | "size"> & React.RefAttributes<HTMLInputElement>>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
export declare enum ETextSize {
|
3
|
+
extraSmall = "extraSmall",
|
3
4
|
small = "small",
|
4
5
|
medium = "medium",
|
5
6
|
large = "large",
|
@@ -10,11 +11,25 @@ export declare enum ETextWeight {
|
|
10
11
|
semibold = "semibold",
|
11
12
|
normal = "normal"
|
12
13
|
}
|
14
|
+
export declare enum ETextVariant {
|
15
|
+
default = "default",
|
16
|
+
addition = "addition",
|
17
|
+
light = "light",
|
18
|
+
disabled = "disabled",
|
19
|
+
brand = "brand",
|
20
|
+
attention = "attention",
|
21
|
+
error = "error",
|
22
|
+
success = "success",
|
23
|
+
warning = "warning",
|
24
|
+
inverse = "inverse"
|
25
|
+
}
|
13
26
|
interface ITextProps {
|
14
27
|
size?: keyof typeof ETextSize;
|
28
|
+
mobSize?: keyof typeof ETextSize;
|
15
29
|
children?: any;
|
16
30
|
bold?: boolean;
|
17
31
|
weight?: keyof typeof ETextWeight;
|
32
|
+
variant?: keyof typeof ETextVariant;
|
18
33
|
addition?: boolean;
|
19
34
|
attention?: boolean;
|
20
35
|
success?: boolean;
|
@@ -27,5 +42,5 @@ interface ITextProps {
|
|
27
42
|
tag?: string;
|
28
43
|
onClick?: (e: any) => void;
|
29
44
|
}
|
30
|
-
export declare const Text: ({ children, size, bold, weight, addition, success, error, inverse, attention, warning, className, style, through, tag, onClick }: ITextProps) => React.JSX.Element;
|
45
|
+
export declare const Text: ({ children, size, mobSize, bold, weight, variant, addition, success, error, inverse, attention, warning, className, style, through, tag, onClick, }: ITextProps) => React.JSX.Element;
|
31
46
|
export {};
|
@@ -26,4 +26,4 @@ export declare const TextArea: React.ForwardRefExoticComponent<{
|
|
26
26
|
onClear?: () => void;
|
27
27
|
onSearch?: (e: any) => void;
|
28
28
|
onChange?: (value: string, event?: ChangeEvent<HTMLTextAreaElement>) => void;
|
29
|
-
} & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "
|
29
|
+
} & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange" | "variant" | "size"> & React.RefAttributes<HTMLTextAreaElement>>;
|