@atb-as/theme 5.0.2 → 6.0.0-alpha.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.
- package/lib/theme.d.ts +42 -36
- package/lib/theme.js.map +1 -1
- package/lib/themes/atb-theme/theme.css +415 -225
- package/lib/themes/atb-theme/theme.d.ts +97 -68
- package/lib/themes/atb-theme/theme.js +249 -164
- package/lib/themes/atb-theme/theme.js.map +1 -1
- package/lib/themes/atb-theme/theme.module.css +415 -225
- package/lib/themes/nfk-theme/theme.css +407 -217
- package/lib/themes/nfk-theme/theme.js +126 -71
- package/lib/themes/nfk-theme/theme.js.map +1 -1
- package/lib/themes/nfk-theme/theme.module.css +407 -217
- package/lib/typography/android.js +6 -0
- package/lib/typography/android.js.map +1 -1
- package/lib/typography/ios.js +6 -0
- package/lib/typography/ios.js.map +1 -1
- package/lib/typography/types.d.ts +2 -1
- package/lib/typography/types.js +1 -0
- package/lib/typography/types.js.map +1 -1
- package/lib/typography.css +10 -0
- package/lib/typography.module.css +10 -0
- package/package.json +2 -2
package/lib/theme.d.ts
CHANGED
|
@@ -8,45 +8,52 @@ export declare type Mode = keyof Themes;
|
|
|
8
8
|
export declare type TextColor = 'primary' | 'secondary' | 'disabled';
|
|
9
9
|
export declare type TextColorType = 'dark' | 'light';
|
|
10
10
|
export declare type ContrastColor = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
textColorType: TextColorType;
|
|
11
|
+
background: string;
|
|
12
|
+
text: string;
|
|
14
13
|
};
|
|
15
|
-
declare type
|
|
16
|
-
|
|
14
|
+
export declare type InteractiveColor = {
|
|
15
|
+
default: ContrastColor;
|
|
16
|
+
hover: ContrastColor;
|
|
17
|
+
active: ContrastColor;
|
|
18
|
+
disabled: ContrastColor;
|
|
19
|
+
outline: ContrastColor;
|
|
17
20
|
};
|
|
18
21
|
export interface Theme {
|
|
19
22
|
spacings: typeof spacings;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
primary_1: ContrastColor;
|
|
27
|
-
primary_2: ContrastColor;
|
|
28
|
-
primary_3: ContrastColor;
|
|
29
|
-
primary_destructive: ContrastColor;
|
|
30
|
-
secondary_1: ContrastColor;
|
|
31
|
-
secondary_2: ContrastColor;
|
|
32
|
-
secondary_3: ContrastColor;
|
|
33
|
-
secondary_4: ContrastColor;
|
|
34
|
-
transport_city: ContrastColor;
|
|
35
|
-
transport_region: ContrastColor;
|
|
36
|
-
transport_boat: ContrastColor;
|
|
37
|
-
transport_train: ContrastColor;
|
|
38
|
-
transport_airport: ContrastColor;
|
|
39
|
-
transport_plane: ContrastColor;
|
|
40
|
-
transport_other: ContrastColor;
|
|
23
|
+
interactive: {
|
|
24
|
+
interactive_0: InteractiveColor;
|
|
25
|
+
interactive_1: InteractiveColor;
|
|
26
|
+
interactive_2: InteractiveColor;
|
|
27
|
+
interactive_3: InteractiveColor;
|
|
28
|
+
interactive_destructive: InteractiveColor;
|
|
41
29
|
};
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
30
|
+
static: {
|
|
31
|
+
background: {
|
|
32
|
+
background_0: ContrastColor;
|
|
33
|
+
background_1: ContrastColor;
|
|
34
|
+
background_2: ContrastColor;
|
|
35
|
+
background_3: ContrastColor;
|
|
36
|
+
background_accent_0: ContrastColor;
|
|
37
|
+
background_accent_1: ContrastColor;
|
|
38
|
+
background_accent_2: ContrastColor;
|
|
39
|
+
background_accent_3: ContrastColor;
|
|
40
|
+
background_accent_4: ContrastColor;
|
|
41
|
+
};
|
|
42
|
+
transport: {
|
|
43
|
+
transport_city: ContrastColor;
|
|
44
|
+
transport_region: ContrastColor;
|
|
45
|
+
transport_boat: ContrastColor;
|
|
46
|
+
transport_train: ContrastColor;
|
|
47
|
+
transport_airport: ContrastColor;
|
|
48
|
+
transport_plane: ContrastColor;
|
|
49
|
+
transport_other: ContrastColor;
|
|
50
|
+
};
|
|
51
|
+
status: {
|
|
52
|
+
valid: ContrastColor;
|
|
53
|
+
info: ContrastColor;
|
|
54
|
+
warning: ContrastColor;
|
|
55
|
+
error: ContrastColor;
|
|
56
|
+
};
|
|
50
57
|
};
|
|
51
58
|
text: {
|
|
52
59
|
colors: {
|
|
@@ -64,7 +71,7 @@ export interface Theme {
|
|
|
64
71
|
size: typeof iconSizes;
|
|
65
72
|
};
|
|
66
73
|
}
|
|
67
|
-
export declare type Statuses = keyof Theme['status'];
|
|
74
|
+
export declare type Statuses = keyof Theme['static']['status'];
|
|
68
75
|
export declare enum ThemeVariant {
|
|
69
76
|
AtB = 0,
|
|
70
77
|
Nfk = 1
|
|
@@ -119,4 +126,3 @@ export declare function createExtendedThemes<T>(themes: Themes, extension: {
|
|
|
119
126
|
light: ((k: Theme) => void) | (T extends any ? (k: T) => void : never) extends (k: infer I) => void ? I : never;
|
|
120
127
|
dark: ((k: Theme) => void) | (T extends any ? (k: T) => void : never) extends (k: infer I) => void ? I : never;
|
|
121
128
|
};
|
|
122
|
-
export {};
|
package/lib/theme.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":";;;;;;AAAA,8DAAiC;AAEjC,2DAA8E;AAC9E,mCAA8C;
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":";;;;;;AAAA,8DAAiC;AAEjC,2DAA8E;AAC9E,mCAA8C;AAoF9C,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,6CAAG,CAAA;IACH,6CAAG,CAAA;AACL,CAAC,EAHW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAGvB;AAED,SAAgB,eAAe,CAAC,YAA0B;IACxD,QAAQ,YAAY,EAAE;QACpB,KAAK,YAAY,CAAC,GAAG;YACnB,OAAO,kBAAS,CAAC;QACnB,KAAK,YAAY,CAAC,GAAG;YACnB,OAAO,kBAAS,CAAC;QACnB;YACE,MAAM,KAAK,CAAC,uCAAuC,CAAC,CAAC;KACxD;AACH,CAAC;AATD,0CASC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,YAAY,CAC1B,MAAc,EACd,SAAyC;IAEzC,IAAI,CAAC,SAAS;QAAE,OAAO,MAAM,CAAC;IAC9B,OAAO,IAAA,gCAAc,EAAC,MAAM,EAAE,SAAS,CAAC,CAAC;AAC3C,CAAC;AAND,oCAMC;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,oBAAoB,CAClC,MAAc,EACd,SAA8B;IAE9B,OAAO;QACL,KAAK,EAAE,IAAA,sBAAK,EAAC,MAAM,CAAC,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC;QAC3C,IAAI,EAAE,IAAA,sBAAK,EAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC;KACzC,CAAC;AACJ,CAAC;AARD,oDAQC"}
|