@atb-as/theme 14.3.1 → 14.3.2

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,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [14.3.2](https://github.com/AtB-AS/design-system/compare/theme@v14.3.1...theme@v14.3.2) (2025-11-03)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * 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))
9
+
3
10
  ## [14.3.1](https://github.com/AtB-AS/design-system/compare/theme@v14.3.0...theme@v14.3.1) (2025-10-27)
4
11
 
5
12
 
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 declare enum GeofencingZoneCodes {
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
- [GZKey in GeofencingZoneKeys]: GeofencingZoneStyle<T>;
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 = exports.GeofencingZoneCodes = void 0;
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":";;;;;;AAgOA,0CAmBC;AAsBD,oCAMC;AAuBD,oDAWC;AAjTD,8DAAiC;AACjC,2DAA8E;AAC9E,6CAQ4B;AA6C5B,+EAA+E;AAC/E,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,oCAAa,CAAA;IACb,8CAAuB,CAAA;IACvB,0CAAmB,CAAA;AACrB,CAAC,EALW,mBAAmB,mCAAnB,mBAAmB,QAK9B;AAmJD,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,6CAAG,CAAA;IACH,6CAAG,CAAA;IACH,+CAAI,CAAA;IACJ,iDAAK,CAAA;IACL,yDAAS,CAAA;IACT,6CAAG,CAAA;I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CAA0B;KAClE,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atb-as/theme",
3
- "version": "14.3.1",
3
+ "version": "14.3.2",
4
4
  "private": false,
5
5
  "description": "AtB Design System Colors",
6
6
  "license": "EUPL-1.2",