dga-ui-react 1.2.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.
@@ -0,0 +1,112 @@
1
+ type DeepPartial<T> = {
2
+ [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
3
+ };
4
+
5
+ type Variant = "contained" | "outlined" | "text" | "transparent" | "solid";
6
+
7
+ type Size = "large" | "medium" | "small";
8
+
9
+ type ColorName = keyof ThemePalette;
10
+
11
+ type ThemeColorName = keyof ThemeColors;
12
+
13
+ type AllColorsNames = ColorName | "onColor";
14
+
15
+ type Color = {
16
+ main: string;
17
+ light: string;
18
+ dark: string;
19
+ contrastText: string;
20
+ 25: string;
21
+ 50: string;
22
+ 100: string;
23
+ 200: string;
24
+ 300: string;
25
+ 400: string;
26
+ 500: string;
27
+ 600: string;
28
+ 700: string;
29
+ 800: string;
30
+ 900: string;
31
+ 950: string;
32
+ };
33
+
34
+ type Typography = {
35
+ fontSize: string;
36
+ lineHeight: string;
37
+ };
38
+
39
+ type ThemeColors = {
40
+ neutral: Color;
41
+ error: Color;
42
+ warning: Color;
43
+ info: Color;
44
+ success: Color;
45
+ };
46
+
47
+ type ThemePalette = {
48
+ primary: Color;
49
+ secondary: Color;
50
+ } & ThemeColors;
51
+
52
+ type Theme = {
53
+ direction: "rtl" | "ltr";
54
+ textColor: string;
55
+ textOnColor: string;
56
+ fontFamily: string;
57
+ palette: ThemePalette;
58
+ typography: {
59
+ h1: Typography;
60
+ h2: Typography;
61
+ h3: Typography;
62
+ h4: Typography;
63
+ h5: Typography;
64
+ h6: Typography;
65
+ xl: Typography;
66
+ lg: Typography;
67
+ md: Typography;
68
+ sm: Typography;
69
+ xs: Typography;
70
+ };
71
+ elevation: {
72
+ shadows: {
73
+ xs: string;
74
+ sm: string;
75
+ md: string;
76
+ lg: string;
77
+ xl: string;
78
+ "2xl": string;
79
+ "3xl": string;
80
+ };
81
+ backdropBlur: {
82
+ sm: string;
83
+ md: string;
84
+ lg: string;
85
+ xl: string;
86
+ };
87
+ };
88
+ raduises: {
89
+ none: string;
90
+ xs: string;
91
+ sm: string;
92
+ md: string;
93
+ lg: string;
94
+ xl: string;
95
+ full: string;
96
+ };
97
+ breakPoints: {
98
+ sm: number;
99
+ md: number;
100
+ lg: number;
101
+ };
102
+ };
103
+
104
+ type ThemeProps = DeepPartial<Theme>;
105
+
106
+ type SelectorsObject = {
107
+ default?: string;
108
+ hovered?: string;
109
+ active?: string;
110
+ disabled?: string;
111
+ focus?: string;
112
+ };