@atb-as/theme 14.3.1 → 14.4.0
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [14.4.0](https://github.com/AtB-AS/design-system/compare/theme@v14.3.2...theme@v14.4.0) (2025-11-03)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **theme:** update design tokens for `atb` ([#358](https://github.com/AtB-AS/design-system/issues/358)) ([2a6b570](https://github.com/AtB-AS/design-system/commit/2a6b570d2d53e3d46f39ac1e98d68a992335487f))
|
|
9
|
+
|
|
10
|
+
## [14.3.2](https://github.com/AtB-AS/design-system/compare/theme@v14.3.1...theme@v14.3.2) (2025-11-03)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* standarize name geofencing zone code ([#356](https://github.com/AtB-AS/design-system/issues/356)) ([7cb3411](https://github.com/AtB-AS/design-system/commit/7cb341170068dac852b8f4caa386b0d9db2a37d3))
|
|
16
|
+
|
|
3
17
|
## [14.3.1](https://github.com/AtB-AS/design-system/compare/theme@v14.3.0...theme@v14.3.1) (2025-10-27)
|
|
4
18
|
|
|
5
19
|
|
|
@@ -241,13 +241,13 @@
|
|
|
241
241
|
--color-transport-airport-express-secondary-foreground-secondary: #e1e8eb;
|
|
242
242
|
--color-transport-airport-express-secondary-foreground-disabled: #a7b6be;
|
|
243
243
|
--color-transport-flexible-primary-background: #c2570a;
|
|
244
|
-
--color-transport-flexible-primary-foreground-primary: #
|
|
245
|
-
--color-transport-flexible-primary-foreground-secondary: #
|
|
246
|
-
--color-transport-flexible-primary-foreground-disabled: #
|
|
244
|
+
--color-transport-flexible-primary-foreground-primary: #ffffff;
|
|
245
|
+
--color-transport-flexible-primary-foreground-secondary: #e1e8eb;
|
|
246
|
+
--color-transport-flexible-primary-foreground-disabled: #a7b6be;
|
|
247
247
|
--color-transport-flexible-secondary-background: #c2570a;
|
|
248
|
-
--color-transport-flexible-secondary-foreground-primary: #
|
|
249
|
-
--color-transport-flexible-secondary-foreground-secondary: #
|
|
250
|
-
--color-transport-flexible-secondary-foreground-disabled: #
|
|
248
|
+
--color-transport-flexible-secondary-foreground-primary: #ffffff;
|
|
249
|
+
--color-transport-flexible-secondary-foreground-secondary: #e1e8eb;
|
|
250
|
+
--color-transport-flexible-secondary-foreground-disabled: #a7b6be;
|
|
251
251
|
--color-transport-boat-primary-background: #00404d;
|
|
252
252
|
--color-transport-boat-primary-foreground-primary: #ffffff;
|
|
253
253
|
--color-transport-boat-primary-foreground-secondary: #e1e8eb;
|
|
@@ -516,17 +516,17 @@ exports.default = {
|
|
|
516
516
|
primary: {
|
|
517
517
|
background: "#c2570a",
|
|
518
518
|
foreground: {
|
|
519
|
-
primary: "#
|
|
520
|
-
secondary: "#
|
|
521
|
-
disabled: "#
|
|
519
|
+
primary: "#ffffff",
|
|
520
|
+
secondary: "#e1e8eb",
|
|
521
|
+
disabled: "#a7b6be"
|
|
522
522
|
}
|
|
523
523
|
},
|
|
524
524
|
secondary: {
|
|
525
525
|
background: "#c2570a",
|
|
526
526
|
foreground: {
|
|
527
|
-
primary: "#
|
|
528
|
-
secondary: "#
|
|
529
|
-
disabled: "#
|
|
527
|
+
primary: "#ffffff",
|
|
528
|
+
secondary: "#e1e8eb",
|
|
529
|
+
disabled: "#a7b6be"
|
|
530
530
|
}
|
|
531
531
|
}
|
|
532
532
|
},
|
package/lib/theme.d.ts
CHANGED
|
@@ -34,13 +34,7 @@ export type InteractiveColor<T = ContrastColor> = {
|
|
|
34
34
|
export type InteractiveColorName = keyof Theme['color']['interactive'];
|
|
35
35
|
export type InteractiveColors = Theme['color']['interactive'];
|
|
36
36
|
export type InteractiveState = keyof InteractiveColor;
|
|
37
|
-
export
|
|
38
|
-
allowed = "Allowed",// blue
|
|
39
|
-
slow = "Slow",// yellow
|
|
40
|
-
noParking = "NoParking",// red
|
|
41
|
-
noEntry = "NoEntry"
|
|
42
|
-
}
|
|
43
|
-
export type GeofencingZoneKeys = keyof typeof GeofencingZoneCodes;
|
|
37
|
+
export type GeofencingZoneCode = 'allowed' | 'slow' | 'noParking' | 'noEntry';
|
|
44
38
|
export type GeofencingZoneStyle<T = ContrastColor> = {
|
|
45
39
|
color: T;
|
|
46
40
|
fillOpacity: number;
|
|
@@ -52,7 +46,7 @@ export type GeofencingZoneStyle<T = ContrastColor> = {
|
|
|
52
46
|
layerIndexWeight: number;
|
|
53
47
|
};
|
|
54
48
|
export type GeofencingZoneStyles<T = ContrastColor> = {
|
|
55
|
-
[
|
|
49
|
+
[GZCode in GeofencingZoneCode]: GeofencingZoneStyle<T>;
|
|
56
50
|
};
|
|
57
51
|
export type ContrastColor = {
|
|
58
52
|
background: string;
|
package/lib/theme.js
CHANGED
|
@@ -3,21 +3,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ThemeVariant =
|
|
6
|
+
exports.ThemeVariant = void 0;
|
|
7
7
|
exports.createThemesFor = createThemesFor;
|
|
8
8
|
exports.createThemes = createThemes;
|
|
9
9
|
exports.createExtendedThemes = createExtendedThemes;
|
|
10
10
|
var ts_deepmerge_1 = __importDefault(require("ts-deepmerge"));
|
|
11
11
|
var override_config_1 = require("./utils/override-config");
|
|
12
12
|
var themes_1 = require("./generated/themes");
|
|
13
|
-
// The colors can be changed, but should follow standard practice as commented:
|
|
14
|
-
var GeofencingZoneCodes;
|
|
15
|
-
(function (GeofencingZoneCodes) {
|
|
16
|
-
GeofencingZoneCodes["allowed"] = "Allowed";
|
|
17
|
-
GeofencingZoneCodes["slow"] = "Slow";
|
|
18
|
-
GeofencingZoneCodes["noParking"] = "NoParking";
|
|
19
|
-
GeofencingZoneCodes["noEntry"] = "NoEntry";
|
|
20
|
-
})(GeofencingZoneCodes || (exports.GeofencingZoneCodes = GeofencingZoneCodes = {}));
|
|
21
13
|
var ThemeVariant;
|
|
22
14
|
(function (ThemeVariant) {
|
|
23
15
|
ThemeVariant[ThemeVariant["AtB"] = 0] = "AtB";
|
package/lib/theme.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":";;;;;;AA0NA,0CAmBC;AAsBD,oCAMC;AAuBD,oDAWC;AA3SD,8DAAiC;AACjC,2DAA8E;AAC9E,6CAQ4B;AAgM5B,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,6CAAG,CAAA;IACH,6CAAG,CAAA;IACH,+CAAI,CAAA;IACJ,iDAAK,CAAA;IACL,yDAAS,CAAA;IACT,6CAAG,CAAA;IACH,iDAAK,CAAA;AACP,CAAC,EARW,YAAY,4BAAZ,YAAY,QAQvB;AAED;;;;;GAKG;AACH,SAAgB,eAAe,CAAC,YAA0B;IACxD,QAAQ,YAAY,EAAE,CAAC;QACrB,KAAK,YAAY,CAAC,GAAG;YACnB,OAAO,kBAAS,CAAC;QACnB,KAAK,YAAY,CAAC,KAAK;YACrB,OAAO,oBAAW,CAAC;QACrB,KAAK,YAAY,CAAC,GAAG;YACnB,OAAO,kBAAS,CAAC;QACnB,KAAK,YAAY,CAAC,IAAI;YACpB,OAAO,mBAAU,CAAC;QACpB,KAAK,YAAY,CAAC,SAAS;YACzB,OAAO,wBAAe,CAAC;QACzB,KAAK,YAAY,CAAC,GAAG;YACnB,OAAO,kBAAS,CAAC;QACnB,KAAK,YAAY,CAAC,KAAK;YACrB,OAAO,oBAAW,CAAC;QACrB;YACE,MAAM,KAAK,CAAC,uCAAuC,CAAC,CAAC;IACzD,CAAC;AACH,CAAC;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;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,oBAAoB,CAClC,MAAiB,EACjB,SAA8B;IAK9B,OAAO;QACL,KAAK,EAAE,IAAA,sBAAK,EAAC,MAAM,CAAC,KAAK,EAAE,SAAS,CAAC,KAAK,CAA2B;QACrE,IAAI,EAAE,IAAA,sBAAK,EAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,IAAI,CAA0B;KAClE,CAAC;AACJ,CAAC"}
|