@atb-as/theme 11.0.0-alpha.5 → 11.0.0-alpha.7

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.
Files changed (33) hide show
  1. package/lib/theme.d.ts +164 -1588
  2. package/lib/theme.js +21 -2
  3. package/lib/theme.js.map +1 -1
  4. package/lib/themes/atb-theme/dark-compat.d.ts +456 -0
  5. package/lib/themes/atb-theme/dark-compat.js +456 -0
  6. package/lib/themes/atb-theme/dark-compat.js.map +1 -0
  7. package/lib/themes/atb-theme/dark.d.ts +365 -698
  8. package/lib/themes/atb-theme/dark.js +362 -695
  9. package/lib/themes/atb-theme/dark.js.map +1 -1
  10. package/lib/themes/atb-theme/light-compat.d.ts +456 -0
  11. package/lib/themes/atb-theme/light-compat.js +456 -0
  12. package/lib/themes/atb-theme/light-compat.js.map +1 -0
  13. package/lib/themes/atb-theme/light.d.ts +365 -698
  14. package/lib/themes/atb-theme/light.js +362 -695
  15. package/lib/themes/atb-theme/light.js.map +1 -1
  16. package/lib/themes/atb-theme/theme.css +730 -0
  17. package/lib/themes/atb-theme/theme.d.ts +730 -1396
  18. package/lib/themes/atb-theme/theme.module.css +730 -0
  19. package/lib/themes-fs/atb-theme/dark.d.ts +762 -0
  20. package/lib/themes-fs/atb-theme/dark.js +762 -0
  21. package/lib/themes-fs/atb-theme/dark.js.map +1 -0
  22. package/lib/themes-fs/atb-theme/light.d.ts +762 -0
  23. package/lib/themes-fs/atb-theme/light.js +762 -0
  24. package/lib/themes-fs/atb-theme/light.js.map +1 -0
  25. package/lib/themes-fs/atb-theme/theme.d.ts +1522 -0
  26. package/lib/themes-fs/atb-theme/theme.js +11 -0
  27. package/lib/themes-fs/atb-theme/theme.js.map +1 -0
  28. package/lib/themes-fs/index.d.ts +1 -0
  29. package/lib/themes-fs/index.js +6 -0
  30. package/lib/themes-fs/index.js.map +1 -0
  31. package/lib/typography.css +260 -0
  32. package/lib/typography.module.css +260 -0
  33. package/package.json +3 -3
package/lib/theme.js CHANGED
@@ -6,6 +6,12 @@ import { AtBThemes,
6
6
  // TromsThemes,
7
7
  // InnlandetThemes,
8
8
  } from './themes';
9
+ import { AtBThemesFs,
10
+ // NfkThemes,
11
+ // FRAMThemes,
12
+ // TromsThemes,
13
+ // InnlandetThemes,
14
+ } from './themes-fs';
9
15
  // The colors can be changed, but should follow standard practice as commented:
10
16
  export var GeofencingZoneCodes;
11
17
  (function (GeofencingZoneCodes) {
@@ -23,10 +29,23 @@ export var ThemeVariant;
23
29
  ThemeVariant[ThemeVariant["Troms"] = 3] = "Troms";
24
30
  ThemeVariant[ThemeVariant["Innlandet"] = 4] = "Innlandet";
25
31
  })(ThemeVariant || (ThemeVariant = {}));
26
- export function createThemesFor(themeVariant) {
32
+ /**
33
+ * Get a theme object for a specific organization in the desired format.
34
+ *
35
+ * @param themeVariant Organization
36
+ * @param themeOptions Set if the new Figma structure should be used
37
+ * @returns Theme object
38
+ */
39
+ export function createThemesFor(themeVariant, themeOptions = { useFigmaStructure: false }) {
27
40
  switch (themeVariant) {
28
41
  case ThemeVariant.AtB:
29
- return AtBThemes;
42
+ if (themeOptions?.useFigmaStructure) {
43
+ return AtBThemesFs;
44
+ }
45
+ else {
46
+ return AtBThemes;
47
+ ;
48
+ }
30
49
  // case ThemeVariant.Nfk:
31
50
  // return NfkThemes;
32
51
  // case ThemeVariant.FRAM:
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,o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AC3C,CAAC;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,oBAAoB,CAClC,MAAiB,EACjB,SAAgC;IAKhC,OAAO;QACL,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,SAAS,CAAC,KAAK,CAA2B;QACrE,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,IAAI,CAA0B;KAClE,CAAC;AACJ,CAAC"}
@@ -0,0 +1,456 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+ declare const _default: {
5
+ text: {
6
+ light: {
7
+ primary: string;
8
+ secondary: string;
9
+ disabled: string;
10
+ };
11
+ dark: {
12
+ primary: string;
13
+ secondary: string;
14
+ disabled: string;
15
+ };
16
+ primary: string;
17
+ secondary: string;
18
+ disabled: string;
19
+ inverse: {
20
+ primary: string;
21
+ secondary: string;
22
+ disabled: string;
23
+ };
24
+ };
25
+ static: {
26
+ background: {
27
+ background_0: {
28
+ background: string;
29
+ text: string;
30
+ };
31
+ background_1: {
32
+ background: string;
33
+ text: string;
34
+ };
35
+ background_2: {
36
+ background: string;
37
+ text: string;
38
+ };
39
+ background_3: {
40
+ background: string;
41
+ text: string;
42
+ };
43
+ background_accent_0: {
44
+ background: string;
45
+ text: string;
46
+ };
47
+ background_accent_1: {
48
+ background: string;
49
+ text: string;
50
+ };
51
+ background_accent_2: {
52
+ background: string;
53
+ text: string;
54
+ };
55
+ background_accent_3: {
56
+ background: string;
57
+ text: string;
58
+ };
59
+ background_accent_4: {
60
+ background: string;
61
+ text: string;
62
+ };
63
+ background_accent_5: {
64
+ background: string;
65
+ text: string;
66
+ };
67
+ };
68
+ };
69
+ status: {
70
+ valid: {
71
+ primary: {
72
+ background: string;
73
+ text: string;
74
+ };
75
+ secondary: {
76
+ background: string;
77
+ text: string;
78
+ };
79
+ };
80
+ info: {
81
+ primary: {
82
+ background: string;
83
+ text: string;
84
+ };
85
+ secondary: {
86
+ background: string;
87
+ text: string;
88
+ };
89
+ };
90
+ warning: {
91
+ primary: {
92
+ background: string;
93
+ text: string;
94
+ };
95
+ secondary: {
96
+ background: string;
97
+ text: string;
98
+ };
99
+ };
100
+ error: {
101
+ primary: {
102
+ background: string;
103
+ text: string;
104
+ };
105
+ secondary: {
106
+ background: string;
107
+ text: string;
108
+ };
109
+ };
110
+ };
111
+ interactive: {
112
+ interactive_0: {
113
+ default: {
114
+ background: string;
115
+ text: string;
116
+ };
117
+ hover: {
118
+ background: string;
119
+ text: string;
120
+ };
121
+ active: {
122
+ background: string;
123
+ text: string;
124
+ };
125
+ disabled: {
126
+ background: string;
127
+ text: string;
128
+ };
129
+ outline: {
130
+ background: string;
131
+ text: string;
132
+ };
133
+ background: string;
134
+ text: string;
135
+ };
136
+ interactive_1: {
137
+ default: {
138
+ background: string;
139
+ text: string;
140
+ };
141
+ hover: {
142
+ background: string;
143
+ text: string;
144
+ };
145
+ active: {
146
+ background: string;
147
+ text: string;
148
+ };
149
+ disabled: {
150
+ background: string;
151
+ text: string;
152
+ };
153
+ outline: {
154
+ background: string;
155
+ text: string;
156
+ };
157
+ background: string;
158
+ text: string;
159
+ };
160
+ interactive_2: {
161
+ default: {
162
+ background: string;
163
+ text: string;
164
+ };
165
+ hover: {
166
+ background: string;
167
+ text: string;
168
+ };
169
+ active: {
170
+ background: string;
171
+ text: string;
172
+ };
173
+ disabled: {
174
+ background: string;
175
+ text: string;
176
+ };
177
+ outline: {
178
+ background: string;
179
+ text: string;
180
+ };
181
+ background: string;
182
+ text: string;
183
+ };
184
+ interactive_3: {
185
+ default: {
186
+ background: string;
187
+ text: string;
188
+ };
189
+ hover: {
190
+ background: string;
191
+ text: string;
192
+ };
193
+ active: {
194
+ background: string;
195
+ text: string;
196
+ };
197
+ disabled: {
198
+ background: string;
199
+ text: string;
200
+ };
201
+ outline: {
202
+ background: string;
203
+ text: string;
204
+ };
205
+ background: string;
206
+ text: string;
207
+ };
208
+ interactive_destructive: {
209
+ default: {
210
+ background: string;
211
+ text: string;
212
+ };
213
+ hover: {
214
+ background: string;
215
+ text: string;
216
+ };
217
+ active: {
218
+ background: string;
219
+ text: string;
220
+ };
221
+ disabled: {
222
+ background: string;
223
+ text: string;
224
+ };
225
+ outline: {
226
+ background: string;
227
+ text: string;
228
+ };
229
+ background: string;
230
+ text: string;
231
+ };
232
+ };
233
+ transport: {
234
+ transport_city: {
235
+ city: {
236
+ primary: {
237
+ background: string;
238
+ text: string;
239
+ };
240
+ secondary: {
241
+ background: string;
242
+ text: string;
243
+ };
244
+ };
245
+ };
246
+ transport_region: {
247
+ region: {
248
+ primary: {
249
+ background: string;
250
+ text: string;
251
+ };
252
+ secondary: {
253
+ background: string;
254
+ text: string;
255
+ };
256
+ };
257
+ };
258
+ transport_airportExpress: {
259
+ airportExpress: {
260
+ primary: {
261
+ background: string;
262
+ text: string;
263
+ };
264
+ secondary: {
265
+ background: string;
266
+ text: string;
267
+ };
268
+ };
269
+ };
270
+ transport_flexible: {
271
+ flexible: {
272
+ primary: {
273
+ background: string;
274
+ text: string;
275
+ };
276
+ secondary: {
277
+ background: string;
278
+ text: string;
279
+ };
280
+ };
281
+ };
282
+ transport_boat: {
283
+ boat: {
284
+ primary: {
285
+ background: string;
286
+ text: string;
287
+ };
288
+ secondary: {
289
+ background: string;
290
+ text: string;
291
+ };
292
+ };
293
+ };
294
+ transport_train: {
295
+ train: {
296
+ primary: {
297
+ background: string;
298
+ text: string;
299
+ };
300
+ secondary: {
301
+ background: string;
302
+ text: string;
303
+ };
304
+ };
305
+ };
306
+ transport_scooter: {
307
+ scooter: {
308
+ primary: {
309
+ background: string;
310
+ text: string;
311
+ };
312
+ secondary: {
313
+ background: string;
314
+ text: string;
315
+ };
316
+ };
317
+ };
318
+ transport_car: {
319
+ car: {
320
+ primary: {
321
+ background: string;
322
+ text: string;
323
+ };
324
+ secondary: {
325
+ background: string;
326
+ text: string;
327
+ };
328
+ };
329
+ };
330
+ transport_bike: {
331
+ bike: {
332
+ primary: {
333
+ background: string;
334
+ text: string;
335
+ };
336
+ secondary: {
337
+ background: string;
338
+ text: string;
339
+ };
340
+ };
341
+ };
342
+ transport_other: {
343
+ other: {
344
+ primary: {
345
+ background: string;
346
+ text: string;
347
+ };
348
+ secondary: {
349
+ background: string;
350
+ text: string;
351
+ };
352
+ };
353
+ };
354
+ };
355
+ zone_selection: {
356
+ from: {
357
+ background: string;
358
+ text: string;
359
+ };
360
+ to: {
361
+ background: string;
362
+ text: string;
363
+ };
364
+ };
365
+ geofencingZones: {
366
+ allowed: {
367
+ color: {
368
+ background: string;
369
+ text: string;
370
+ };
371
+ fillOpacity: number;
372
+ strokeOpacity: number;
373
+ layerIndexWeight: number;
374
+ };
375
+ slow: {
376
+ color: {
377
+ background: string;
378
+ text: string;
379
+ };
380
+ fillOpacity: number;
381
+ strokeOpacity: number;
382
+ layerIndexWeight: number;
383
+ };
384
+ noParking: {
385
+ color: {
386
+ background: string;
387
+ text: string;
388
+ };
389
+ fillOpacity: number;
390
+ strokeOpacity: number;
391
+ layerIndexWeight: number;
392
+ };
393
+ noEntry: {
394
+ color: {
395
+ background: string;
396
+ text: string;
397
+ };
398
+ fillOpacity: number;
399
+ strokeOpacity: number;
400
+ layerIndexWeight: number;
401
+ };
402
+ };
403
+ border: {
404
+ primary: {
405
+ background: string;
406
+ text: string;
407
+ };
408
+ secondary: {
409
+ background: string;
410
+ text: string;
411
+ };
412
+ focus: {
413
+ background: string;
414
+ text: string;
415
+ };
416
+ radius: {
417
+ small: number;
418
+ medium: number;
419
+ circle: number;
420
+ };
421
+ width: {
422
+ slim: number;
423
+ medium: number;
424
+ };
425
+ };
426
+ typography: {
427
+ ios: {
428
+ font: string;
429
+ number: number;
430
+ };
431
+ android: {
432
+ font: string;
433
+ number: number;
434
+ };
435
+ web: {
436
+ font: string;
437
+ number: number;
438
+ };
439
+ };
440
+ spacings: {
441
+ xSmall: number;
442
+ small: number;
443
+ medium: number;
444
+ large: number;
445
+ xLarge: number;
446
+ };
447
+ icon: {
448
+ size: {
449
+ xSmall: number;
450
+ small: number;
451
+ medium: number;
452
+ large: number;
453
+ };
454
+ };
455
+ };
456
+ export default _default;