@atb-as/theme 11.0.0-alpha.2 → 11.0.0-alpha.3
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 +6 -40
- package/lib/theme.js.map +1 -1
- package/package.json +2 -2
package/lib/theme.d.ts
CHANGED
|
@@ -48,6 +48,12 @@ export declare type GeofencingZoneStyles = {
|
|
|
48
48
|
};
|
|
49
49
|
export interface Theme {
|
|
50
50
|
color: {
|
|
51
|
+
foreground: {
|
|
52
|
+
dark: ContrastColor['foreground'];
|
|
53
|
+
light: ContrastColor['foreground'];
|
|
54
|
+
dynamic: ContrastColor['foreground'];
|
|
55
|
+
inverse: ContrastColor['foreground'];
|
|
56
|
+
};
|
|
51
57
|
interactive: {
|
|
52
58
|
0: InteractiveColor;
|
|
53
59
|
1: InteractiveColor;
|
|
@@ -310,26 +316,6 @@ export declare function createThemesFor(themeVariant: ThemeVariant): {
|
|
|
310
316
|
};
|
|
311
317
|
};
|
|
312
318
|
};
|
|
313
|
-
/**
|
|
314
|
-
* Create new themes (light/dark) with optinally overriden defaults.
|
|
315
|
-
*
|
|
316
|
-
* @example extending nested features
|
|
317
|
-
* ```ts
|
|
318
|
-
* const themes = createThemes({
|
|
319
|
-
* light: {
|
|
320
|
-
* spacings: {
|
|
321
|
-
* medium: 20,
|
|
322
|
-
* },
|
|
323
|
-
* },
|
|
324
|
-
* });
|
|
325
|
-
*
|
|
326
|
-
* themes.dark.spacings.medium;
|
|
327
|
-
* //=> 20
|
|
328
|
-
* ```
|
|
329
|
-
*
|
|
330
|
-
* @param overrides - Properties to override base themes with, on `Theme` level
|
|
331
|
-
* @returns themes
|
|
332
|
-
*/
|
|
333
319
|
error: {
|
|
334
320
|
primary: {
|
|
335
321
|
background: string;
|
|
@@ -1062,26 +1048,6 @@ export declare function createThemesFor(themeVariant: ThemeVariant): {
|
|
|
1062
1048
|
};
|
|
1063
1049
|
};
|
|
1064
1050
|
};
|
|
1065
|
-
/**
|
|
1066
|
-
* Create new themes (light/dark) with optinally overriden defaults.
|
|
1067
|
-
*
|
|
1068
|
-
* @example extending nested features
|
|
1069
|
-
* ```ts
|
|
1070
|
-
* const themes = createThemes({
|
|
1071
|
-
* light: {
|
|
1072
|
-
* spacings: {
|
|
1073
|
-
* medium: 20,
|
|
1074
|
-
* },
|
|
1075
|
-
* },
|
|
1076
|
-
* });
|
|
1077
|
-
*
|
|
1078
|
-
* themes.dark.spacings.medium;
|
|
1079
|
-
* //=> 20
|
|
1080
|
-
* ```
|
|
1081
|
-
*
|
|
1082
|
-
* @param overrides - Properties to override base themes with, on `Theme` level
|
|
1083
|
-
* @returns themes
|
|
1084
|
-
*/
|
|
1085
1051
|
error: {
|
|
1086
1052
|
primary: {
|
|
1087
1053
|
background: string;
|
package/lib/theme.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,cAAc,CAAC;AACjC,OAAO,EAAyB,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAChF,OAAO,EACL,SAAS;AACT,aAAa;AACb,cAAc;AACd,eAAe;AACf,mBAAmB;EACpB,MAAM,UAAU,CAAC;AAuClB,+EAA+E;AAC/E,MAAM,CAAN,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,oCAAa,CAAA;IACb,8CAAuB,CAAA;IACvB,0CAAmB,CAAA;AACrB,CAAC,EALW,mBAAmB,KAAnB,mBAAmB,QAK9B;
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,cAAc,CAAC;AACjC,OAAO,EAAyB,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAChF,OAAO,EACL,SAAS;AACT,aAAa;AACb,cAAc;AACd,eAAe;AACf,mBAAmB;EACpB,MAAM,UAAU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
|
{
|
|
2
2
|
"name": "@atb-as/theme",
|
|
3
|
-
"version": "11.0.0-alpha.
|
|
3
|
+
"version": "11.0.0-alpha.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "AtB Design System Colors",
|
|
6
6
|
"license": "EUPL-1.2",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "c41cd2a3e30a5afdbe2d66d40e172e620ca70bf3"
|
|
41
41
|
}
|