@atb-as/theme 11.0.0-alpha.6 → 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.d.ts CHANGED
@@ -1,34 +1,29 @@
1
1
  import { ConfigurationOverride } from './utils/override-config';
2
- export declare type Themes = {
3
- light: Theme;
4
- dark: Theme;
2
+ export declare type Themes<T = Theme> = {
3
+ light: T;
4
+ dark: T;
5
5
  };
6
6
  export declare type Mode = keyof Themes;
7
+ export declare type TextColor = 'primary' | 'secondary' | 'disabled';
7
8
  export declare type TextColorType = 'dark' | 'light';
8
9
  export declare type ContrastColor = {
9
10
  background: string;
10
- foreground: {
11
- primary: string;
12
- secondary: string;
13
- disabled: string;
14
- };
11
+ text: string;
15
12
  };
16
- export declare type TextColor = keyof ContrastColor["foreground"];
17
- export declare type TransportColor = {
18
- primary: ContrastColor;
19
- secondary: ContrastColor;
13
+ export declare type TransportColor<T = ContrastColor> = {
14
+ primary: T;
15
+ secondary: T;
20
16
  };
21
- export declare type StatusColor = {
22
- primary: ContrastColor;
23
- secondary: ContrastColor;
17
+ export declare type StatusColor<T = ContrastColor> = {
18
+ primary: T;
19
+ secondary: T;
24
20
  };
25
- export declare type InteractiveColor = {
26
- default: ContrastColor;
27
- hover: ContrastColor;
28
- active: ContrastColor;
29
- disabled: ContrastColor;
30
- outline: ContrastColor;
31
- destructive: ContrastColor;
21
+ export declare type InteractiveColor<T = ContrastColor> = {
22
+ default: T;
23
+ hover: T;
24
+ active: T;
25
+ disabled: T;
26
+ outline: T;
32
27
  };
33
28
  export declare enum GeofencingZoneCodes {
34
29
  allowed = "Allowed",
@@ -37,79 +32,167 @@ export declare enum GeofencingZoneCodes {
37
32
  noEntry = "NoEntry"
38
33
  }
39
34
  export declare type GeofencingZoneKeys = keyof typeof GeofencingZoneCodes;
40
- export declare type GeofencingZoneStyle = {
41
- color: ContrastColor;
35
+ export declare type GeofencingZoneStyle<T = ContrastColor> = {
36
+ color: T;
42
37
  fillOpacity: number;
43
38
  strokeOpacity: number;
44
39
  layerIndexWeight: number;
45
40
  };
46
- export declare type GeofencingZoneStyles = {
47
- [GZKey in GeofencingZoneKeys]: GeofencingZoneStyle;
41
+ export declare type GeofencingZoneStyles<T = ContrastColor> = {
42
+ [GZKey in GeofencingZoneKeys]: GeofencingZoneStyle<T>;
48
43
  };
49
44
  export interface Theme {
45
+ spacings: {
46
+ xSmall: number;
47
+ small: number;
48
+ medium: number;
49
+ large: number;
50
+ xLarge: number;
51
+ };
52
+ interactive: {
53
+ interactive_0: InteractiveColor;
54
+ interactive_1: InteractiveColor;
55
+ interactive_2: InteractiveColor;
56
+ interactive_3: InteractiveColor;
57
+ interactive_destructive: InteractiveColor;
58
+ };
59
+ transport: {
60
+ transport_city: TransportColor;
61
+ transport_region: TransportColor;
62
+ transport_airportExpress: TransportColor;
63
+ transport_boat: TransportColor;
64
+ transport_train: TransportColor;
65
+ transport_flexible: TransportColor;
66
+ transport_scooter: TransportColor;
67
+ transport_bike: TransportColor;
68
+ transport_car: TransportColor;
69
+ transport_other: TransportColor;
70
+ };
71
+ status: {
72
+ valid: StatusColor;
73
+ info: StatusColor;
74
+ warning: StatusColor;
75
+ error: StatusColor;
76
+ };
77
+ static: {
78
+ background: {
79
+ background_0: ContrastColor;
80
+ background_1: ContrastColor;
81
+ background_2: ContrastColor;
82
+ background_3: ContrastColor;
83
+ background_accent_0: ContrastColor;
84
+ background_accent_1: ContrastColor;
85
+ background_accent_2: ContrastColor;
86
+ background_accent_3: ContrastColor;
87
+ background_accent_4: ContrastColor;
88
+ background_accent_5: ContrastColor;
89
+ };
90
+ zone_selection: {
91
+ from: ContrastColor;
92
+ to: ContrastColor;
93
+ };
94
+ };
95
+ text: {
96
+ colors: {
97
+ [key in TextColor]: string;
98
+ };
99
+ };
100
+ border: {
101
+ primary: string;
102
+ secondary: string;
103
+ focus: string;
104
+ radius: {
105
+ small: number;
106
+ regular: number;
107
+ circle: number;
108
+ };
109
+ width: {
110
+ slim: number;
111
+ medium: number;
112
+ };
113
+ };
114
+ icon: {
115
+ size: {
116
+ xSmall: number;
117
+ small: number;
118
+ medium: number;
119
+ large: number;
120
+ };
121
+ };
122
+ geofencingZones: GeofencingZoneStyles;
123
+ }
124
+ export declare type ContrastColorFs = {
125
+ background: string;
126
+ foreground: {
127
+ primary: string;
128
+ secondary: string;
129
+ disabled: string;
130
+ };
131
+ };
132
+ export interface ThemeFs {
50
133
  color: {
51
134
  foreground: {
52
- dark: ContrastColor['foreground'];
53
- light: ContrastColor['foreground'];
54
- dynamic: ContrastColor['foreground'];
55
- inverse: ContrastColor['foreground'];
135
+ dark: ContrastColorFs['foreground'];
136
+ light: ContrastColorFs['foreground'];
137
+ dynamic: ContrastColorFs['foreground'];
138
+ inverse: ContrastColorFs['foreground'];
56
139
  };
57
140
  interactive: {
58
- 0: InteractiveColor;
59
- 1: InteractiveColor;
60
- 2: InteractiveColor;
61
- 3: InteractiveColor;
62
- destructive: InteractiveColor;
141
+ 0: InteractiveColor<ContrastColorFs>;
142
+ 1: InteractiveColor<ContrastColorFs>;
143
+ 2: InteractiveColor<ContrastColorFs>;
144
+ 3: InteractiveColor<ContrastColorFs>;
145
+ destructive: InteractiveColor<ContrastColorFs>;
63
146
  };
64
147
  transport: {
65
- city: TransportColor;
66
- region: TransportColor;
67
- airportExpress: TransportColor;
68
- boat: TransportColor;
69
- train: TransportColor;
70
- flexible: TransportColor;
71
- scooter: TransportColor;
72
- bike: TransportColor;
73
- car: TransportColor;
74
- other: TransportColor;
148
+ city: TransportColor<ContrastColorFs>;
149
+ region: TransportColor<ContrastColorFs>;
150
+ airportExpress: TransportColor<ContrastColorFs>;
151
+ boat: TransportColor<ContrastColorFs>;
152
+ train: TransportColor<ContrastColorFs>;
153
+ flexible: TransportColor<ContrastColorFs>;
154
+ scooter: TransportColor<ContrastColorFs>;
155
+ bike: TransportColor<ContrastColorFs>;
156
+ car: TransportColor<ContrastColorFs>;
157
+ other: TransportColor<ContrastColorFs>;
75
158
  };
76
159
  status: {
77
- valid: StatusColor;
78
- info: StatusColor;
79
- warning: StatusColor;
80
- error: StatusColor;
160
+ valid: StatusColor<ContrastColorFs>;
161
+ info: StatusColor<ContrastColorFs>;
162
+ warning: StatusColor<ContrastColorFs>;
163
+ error: StatusColor<ContrastColorFs>;
81
164
  };
82
165
  background: {
83
166
  neutral: {
84
- 0: ContrastColor;
85
- 1: ContrastColor;
86
- 2: ContrastColor;
87
- 3: ContrastColor;
167
+ 0: ContrastColorFs;
168
+ 1: ContrastColorFs;
169
+ 2: ContrastColorFs;
170
+ 3: ContrastColorFs;
88
171
  };
89
172
  accent: {
90
- 0: ContrastColor;
91
- 1: ContrastColor;
92
- 2: ContrastColor;
93
- 3: ContrastColor;
94
- 4: ContrastColor;
95
- 5: ContrastColor;
173
+ 0: ContrastColorFs;
174
+ 1: ContrastColorFs;
175
+ 2: ContrastColorFs;
176
+ 3: ContrastColorFs;
177
+ 4: ContrastColorFs;
178
+ 5: ContrastColorFs;
96
179
  };
97
180
  };
98
181
  zone: {
99
- from: ContrastColor;
100
- to: ContrastColor;
182
+ from: ContrastColorFs;
183
+ to: ContrastColorFs;
101
184
  };
102
- geofencingZone: GeofencingZoneStyles;
185
+ geofencingZone: GeofencingZoneStyles<ContrastColorFs>;
103
186
  border: {
104
- primary: ContrastColor;
105
- secondary: ContrastColor;
106
- focus: ContrastColor;
187
+ primary: ContrastColorFs;
188
+ secondary: ContrastColorFs;
189
+ focus: ContrastColorFs;
107
190
  };
108
191
  };
109
192
  border: {
110
193
  radius: {
111
194
  small: number;
112
- medium: number;
195
+ regular: number;
113
196
  circle: number;
114
197
  };
115
198
  width: {
@@ -147,7 +230,7 @@ export interface Theme {
147
230
  };
148
231
  };
149
232
  }
150
- export declare type Statuses = keyof Theme['color']['status'];
233
+ export declare type Statuses = keyof Theme['status'];
151
234
  export declare enum ThemeVariant {
152
235
  AtB = 0,
153
236
  Nfk = 1,
@@ -155,1524 +238,17 @@ export declare enum ThemeVariant {
155
238
  Troms = 3,
156
239
  Innlandet = 4
157
240
  }
158
- export declare function createThemesFor(themeVariant: ThemeVariant): {
159
- light: {
160
- color: {
161
- foreground: {
162
- light: {
163
- primary: string;
164
- secondary: string;
165
- disabled: string;
166
- };
167
- dark: {
168
- primary: string;
169
- secondary: string;
170
- disabled: string;
171
- };
172
- dynamic: {
173
- primary: string;
174
- secondary: string;
175
- disabled: string;
176
- };
177
- inverse: {
178
- primary: string;
179
- secondary: string;
180
- disabled: string;
181
- };
182
- };
183
- background: {
184
- neutral: {
185
- 0: {
186
- background: string;
187
- foreground: {
188
- primary: string;
189
- secondary: string;
190
- disabled: string;
191
- };
192
- };
193
- 1: {
194
- background: string;
195
- foreground: {
196
- primary: string;
197
- secondary: string;
198
- disabled: string;
199
- };
200
- };
201
- 2: {
202
- background: string;
203
- foreground: {
204
- primary: string;
205
- secondary: string;
206
- disabled: string;
207
- };
208
- };
209
- 3: {
210
- background: string;
211
- foreground: {
212
- primary: string;
213
- secondary: string;
214
- disabled: string;
215
- };
216
- };
217
- };
218
- accent: {
219
- 0: {
220
- background: string;
221
- foreground: {
222
- primary: string;
223
- secondary: string;
224
- disabled: string;
225
- };
226
- };
227
- 1: {
228
- background: string;
229
- foreground: {
230
- primary: string;
231
- secondary: string;
232
- disabled: string;
233
- };
234
- };
235
- 2: {
236
- background: string;
237
- foreground: {
238
- primary: string;
239
- secondary: string;
240
- disabled: string;
241
- };
242
- };
243
- 3: {
244
- background: string;
245
- foreground: {
246
- primary: string;
247
- secondary: string;
248
- disabled: string;
249
- };
250
- };
251
- 4: {
252
- background: string;
253
- foreground: {
254
- primary: string;
255
- secondary: string;
256
- disabled: string;
257
- };
258
- };
259
- 5: {
260
- background: string;
261
- foreground: {
262
- primary: string;
263
- secondary: string;
264
- disabled: string;
265
- };
266
- };
267
- };
268
- };
269
- status: {
270
- valid: {
271
- primary: {
272
- background: string;
273
- foreground: {
274
- primary: string;
275
- secondary: string;
276
- disabled: string;
277
- };
278
- };
279
- secondary: {
280
- background: string;
281
- foreground: {
282
- primary: string;
283
- secondary: string;
284
- disabled: string;
285
- };
286
- };
287
- };
288
- info: {
289
- primary: {
290
- background: string;
291
- foreground: {
292
- primary: string;
293
- secondary: string;
294
- disabled: string;
295
- };
296
- };
297
- secondary: {
298
- background: string;
299
- foreground: {
300
- primary: string;
301
- secondary: string;
302
- disabled: string;
303
- };
304
- };
305
- };
306
- warning: {
307
- primary: {
308
- background: string;
309
- foreground: {
310
- primary: string;
311
- secondary: string;
312
- disabled: string;
313
- };
314
- };
315
- secondary: {
316
- background: string;
317
- foreground: {
318
- primary: string;
319
- secondary: string;
320
- disabled: string;
321
- };
322
- };
323
- };
324
- error: {
325
- primary: {
326
- background: string;
327
- foreground: {
328
- primary: string;
329
- secondary: string;
330
- disabled: string;
331
- };
332
- };
333
- secondary: {
334
- background: string;
335
- foreground: {
336
- primary: string;
337
- secondary: string;
338
- disabled: string;
339
- };
340
- };
341
- };
342
- };
343
- interactive: {
344
- 0: {
345
- default: {
346
- background: string;
347
- foreground: {
348
- primary: string;
349
- secondary: string;
350
- disabled: string;
351
- };
352
- };
353
- hover: {
354
- background: string;
355
- foreground: {
356
- primary: string;
357
- secondary: string;
358
- disabled: string;
359
- };
360
- };
361
- active: {
362
- background: string;
363
- foreground: {
364
- primary: string;
365
- secondary: string;
366
- disabled: string;
367
- };
368
- };
369
- disabled: {
370
- background: string;
371
- foreground: {
372
- primary: string;
373
- secondary: string;
374
- disabled: string;
375
- };
376
- };
377
- outline: {
378
- background: string;
379
- foreground: {
380
- primary: string;
381
- secondary: string;
382
- disabled: string;
383
- };
384
- };
385
- destructive: {
386
- background: string;
387
- foreground: {
388
- primary: string;
389
- secondary: string;
390
- disabled: string;
391
- };
392
- };
393
- };
394
- 1: {
395
- default: {
396
- background: string;
397
- foreground: {
398
- primary: string;
399
- secondary: string;
400
- disabled: string;
401
- };
402
- };
403
- hover: {
404
- background: string;
405
- foreground: {
406
- primary: string;
407
- secondary: string;
408
- disabled: string;
409
- };
410
- };
411
- active: {
412
- background: string;
413
- foreground: {
414
- primary: string;
415
- secondary: string;
416
- disabled: string;
417
- };
418
- };
419
- disabled: {
420
- background: string;
421
- foreground: {
422
- primary: string;
423
- secondary: string;
424
- disabled: string;
425
- };
426
- };
427
- outline: {
428
- background: string;
429
- foreground: {
430
- primary: string;
431
- secondary: string;
432
- disabled: string;
433
- };
434
- };
435
- destructive: {
436
- background: string;
437
- foreground: {
438
- primary: string;
439
- secondary: string;
440
- disabled: string;
441
- };
442
- };
443
- };
444
- 2: {
445
- default: {
446
- background: string;
447
- foreground: {
448
- primary: string;
449
- secondary: string;
450
- disabled: string;
451
- };
452
- };
453
- hover: {
454
- background: string;
455
- foreground: {
456
- primary: string;
457
- secondary: string;
458
- disabled: string;
459
- };
460
- };
461
- active: {
462
- background: string;
463
- foreground: {
464
- primary: string;
465
- secondary: string;
466
- disabled: string;
467
- };
468
- };
469
- disabled: {
470
- background: string;
471
- foreground: {
472
- primary: string;
473
- secondary: string;
474
- disabled: string;
475
- };
476
- };
477
- outline: {
478
- background: string;
479
- foreground: {
480
- primary: string;
481
- secondary: string;
482
- disabled: string;
483
- };
484
- };
485
- destructive: {
486
- background: string;
487
- foreground: {
488
- primary: string;
489
- secondary: string;
490
- disabled: string;
491
- };
492
- };
493
- };
494
- 3: {
495
- default: {
496
- background: string;
497
- foreground: {
498
- primary: string;
499
- secondary: string;
500
- disabled: string;
501
- };
502
- };
503
- hover: {
504
- background: string;
505
- foreground: {
506
- primary: string;
507
- secondary: string;
508
- disabled: string;
509
- };
510
- };
511
- active: {
512
- background: string;
513
- foreground: {
514
- primary: string;
515
- secondary: string;
516
- disabled: string;
517
- };
518
- };
519
- disabled: {
520
- background: string;
521
- foreground: {
522
- primary: string;
523
- secondary: string;
524
- disabled: string;
525
- };
526
- };
527
- outline: {
528
- background: string;
529
- foreground: {
530
- primary: string;
531
- secondary: string;
532
- disabled: string;
533
- };
534
- };
535
- destructive: {
536
- background: string;
537
- foreground: {
538
- primary: string;
539
- secondary: string;
540
- disabled: string;
541
- };
542
- };
543
- };
544
- destructive: {
545
- default: {
546
- background: string;
547
- foreground: {
548
- primary: string;
549
- secondary: string;
550
- disabled: string;
551
- };
552
- };
553
- hover: {
554
- background: string;
555
- foreground: {
556
- primary: string;
557
- secondary: string;
558
- disabled: string;
559
- };
560
- };
561
- active: {
562
- background: string;
563
- foreground: {
564
- primary: string;
565
- secondary: string;
566
- disabled: string;
567
- };
568
- };
569
- disabled: {
570
- background: string;
571
- foreground: {
572
- primary: string;
573
- secondary: string;
574
- disabled: string;
575
- };
576
- };
577
- outline: {
578
- background: string;
579
- foreground: {
580
- primary: string;
581
- secondary: string;
582
- disabled: string;
583
- };
584
- };
585
- destructive: {
586
- background: string;
587
- foreground: {
588
- primary: string;
589
- secondary: string;
590
- disabled: string;
591
- };
592
- };
593
- };
594
- };
595
- transport: {
596
- city: {
597
- primary: {
598
- background: string;
599
- foreground: {
600
- primary: string;
601
- secondary: string;
602
- disabled: string;
603
- };
604
- };
605
- secondary: {
606
- background: string;
607
- foreground: {
608
- primary: string;
609
- secondary: string;
610
- disabled: string;
611
- };
612
- };
613
- };
614
- region: {
615
- primary: {
616
- background: string;
617
- foreground: {
618
- primary: string;
619
- secondary: string;
620
- disabled: string;
621
- };
622
- };
623
- secondary: {
624
- background: string;
625
- foreground: {
626
- primary: string;
627
- secondary: string;
628
- disabled: string;
629
- };
630
- };
631
- };
632
- airportExpress: {
633
- primary: {
634
- background: string;
635
- foreground: {
636
- primary: string;
637
- secondary: string;
638
- disabled: string;
639
- };
640
- };
641
- secondary: {
642
- background: string;
643
- foreground: {
644
- primary: string;
645
- secondary: string;
646
- disabled: string;
647
- };
648
- };
649
- };
650
- flexible: {
651
- primary: {
652
- background: string;
653
- foreground: {
654
- primary: string;
655
- secondary: string;
656
- disabled: string;
657
- };
658
- };
659
- secondary: {
660
- background: string;
661
- foreground: {
662
- primary: string;
663
- secondary: string;
664
- disabled: string;
665
- };
666
- };
667
- };
668
- boat: {
669
- primary: {
670
- background: string;
671
- foreground: {
672
- primary: string;
673
- secondary: string;
674
- disabled: string;
675
- };
676
- };
677
- secondary: {
678
- background: string;
679
- foreground: {
680
- primary: string;
681
- secondary: string;
682
- disabled: string;
683
- };
684
- };
685
- };
686
- train: {
687
- primary: {
688
- background: string;
689
- foreground: {
690
- primary: string;
691
- secondary: string;
692
- disabled: string;
693
- };
694
- };
695
- secondary: {
696
- background: string;
697
- foreground: {
698
- primary: string;
699
- secondary: string;
700
- disabled: string;
701
- };
702
- };
703
- };
704
- scooter: {
705
- primary: {
706
- background: string;
707
- foreground: {
708
- primary: string;
709
- secondary: string;
710
- disabled: string;
711
- };
712
- };
713
- secondary: {
714
- background: string;
715
- foreground: {
716
- primary: string;
717
- secondary: string;
718
- disabled: string;
719
- };
720
- };
721
- };
722
- car: {
723
- primary: {
724
- background: string;
725
- foreground: {
726
- primary: string;
727
- secondary: string;
728
- disabled: string;
729
- };
730
- };
731
- secondary: {
732
- background: string;
733
- foreground: {
734
- primary: string;
735
- secondary: string;
736
- disabled: string;
737
- };
738
- };
739
- };
740
- bike: {
741
- primary: {
742
- background: string;
743
- foreground: {
744
- primary: string;
745
- secondary: string;
746
- disabled: string;
747
- };
748
- };
749
- secondary: {
750
- background: string;
751
- foreground: {
752
- primary: string;
753
- secondary: string;
754
- disabled: string;
755
- };
756
- };
757
- };
758
- other: {
759
- primary: {
760
- background: string;
761
- foreground: {
762
- primary: string;
763
- secondary: string;
764
- disabled: string;
765
- };
766
- };
767
- secondary: {
768
- background: string;
769
- foreground: {
770
- primary: string;
771
- secondary: string;
772
- disabled: string;
773
- };
774
- };
775
- };
776
- };
777
- zone: {
778
- from: {
779
- background: string;
780
- foreground: {
781
- primary: string;
782
- secondary: string;
783
- disabled: string;
784
- };
785
- };
786
- to: {
787
- background: string;
788
- foreground: {
789
- primary: string;
790
- secondary: string;
791
- disabled: string;
792
- };
793
- };
794
- };
795
- geofencingZone: {
796
- allowed: {
797
- color: {
798
- background: string;
799
- foreground: {
800
- primary: string;
801
- secondary: string;
802
- disabled: string;
803
- };
804
- };
805
- fillOpacity: number;
806
- strokeOpacity: number;
807
- layerIndexWeight: number;
808
- };
809
- slow: {
810
- color: {
811
- background: string;
812
- foreground: {
813
- primary: string;
814
- secondary: string;
815
- disabled: string;
816
- };
817
- };
818
- fillOpacity: number;
819
- strokeOpacity: number;
820
- layerIndexWeight: number;
821
- };
822
- noParking: {
823
- color: {
824
- background: string;
825
- foreground: {
826
- primary: string;
827
- secondary: string;
828
- disabled: string;
829
- };
830
- };
831
- fillOpacity: number;
832
- strokeOpacity: number;
833
- layerIndexWeight: number;
834
- };
835
- noEntry: {
836
- color: {
837
- background: string;
838
- foreground: {
839
- primary: string;
840
- secondary: string;
841
- disabled: string;
842
- };
843
- };
844
- fillOpacity: number;
845
- strokeOpacity: number;
846
- layerIndexWeight: number;
847
- };
848
- };
849
- border: {
850
- primary: {
851
- background: string;
852
- foreground: {
853
- primary: string;
854
- secondary: string;
855
- disabled: string;
856
- };
857
- };
858
- secondary: {
859
- background: string;
860
- foreground: {
861
- primary: string;
862
- secondary: string;
863
- disabled: string;
864
- };
865
- };
866
- focus: {
867
- background: string;
868
- foreground: {
869
- primary: string;
870
- secondary: string;
871
- disabled: string;
872
- };
873
- };
874
- };
875
- };
876
- border: {
877
- radius: {
878
- small: number;
879
- medium: number;
880
- circle: number;
881
- };
882
- width: {
883
- slim: number;
884
- medium: number;
885
- };
886
- };
887
- typography: {
888
- ios: {
889
- font: string;
890
- number: number;
891
- };
892
- android: {
893
- font: string;
894
- number: number;
895
- };
896
- web: {
897
- font: string;
898
- number: number;
899
- };
900
- };
901
- spacing: {
902
- xSmall: number;
903
- small: number;
904
- medium: number;
905
- large: number;
906
- xLarge: number;
907
- };
908
- icon: {
909
- size: {
910
- xSmall: number;
911
- small: number;
912
- medium: number;
913
- large: number;
914
- };
915
- };
916
- };
917
- dark: {
918
- color: {
919
- foreground: {
920
- light: {
921
- primary: string;
922
- secondary: string;
923
- disabled: string;
924
- };
925
- dark: {
926
- primary: string;
927
- secondary: string;
928
- disabled: string;
929
- };
930
- dynamic: {
931
- primary: string;
932
- secondary: string;
933
- disabled: string;
934
- };
935
- inverse: {
936
- primary: string;
937
- secondary: string;
938
- disabled: string;
939
- };
940
- };
941
- background: {
942
- neutral: {
943
- 0: {
944
- background: string;
945
- foreground: {
946
- primary: string;
947
- secondary: string;
948
- disabled: string;
949
- };
950
- };
951
- 1: {
952
- background: string;
953
- foreground: {
954
- primary: string;
955
- secondary: string;
956
- disabled: string;
957
- };
958
- };
959
- 2: {
960
- background: string;
961
- foreground: {
962
- primary: string;
963
- secondary: string;
964
- disabled: string;
965
- };
966
- };
967
- 3: {
968
- background: string;
969
- foreground: {
970
- primary: string;
971
- secondary: string;
972
- disabled: string;
973
- };
974
- };
975
- };
976
- accent: {
977
- 0: {
978
- background: string;
979
- foreground: {
980
- primary: string;
981
- secondary: string;
982
- disabled: string;
983
- };
984
- };
985
- 1: {
986
- background: string;
987
- foreground: {
988
- primary: string;
989
- secondary: string;
990
- disabled: string;
991
- };
992
- };
993
- 2: {
994
- background: string;
995
- foreground: {
996
- primary: string;
997
- secondary: string;
998
- disabled: string;
999
- };
1000
- };
1001
- 3: {
1002
- background: string;
1003
- foreground: {
1004
- primary: string;
1005
- secondary: string;
1006
- disabled: string;
1007
- };
1008
- };
1009
- 4: {
1010
- background: string;
1011
- foreground: {
1012
- primary: string;
1013
- secondary: string;
1014
- disabled: string;
1015
- };
1016
- };
1017
- 5: {
1018
- background: string;
1019
- foreground: {
1020
- primary: string;
1021
- secondary: string;
1022
- disabled: string;
1023
- };
1024
- };
1025
- };
1026
- };
1027
- status: {
1028
- valid: {
1029
- primary: {
1030
- background: string;
1031
- foreground: {
1032
- primary: string;
1033
- secondary: string;
1034
- disabled: string;
1035
- };
1036
- };
1037
- secondary: {
1038
- background: string;
1039
- foreground: {
1040
- primary: string;
1041
- secondary: string;
1042
- disabled: string;
1043
- };
1044
- };
1045
- };
1046
- info: {
1047
- primary: {
1048
- background: string;
1049
- foreground: {
1050
- primary: string;
1051
- secondary: string;
1052
- disabled: string;
1053
- };
1054
- };
1055
- secondary: {
1056
- background: string;
1057
- foreground: {
1058
- primary: string;
1059
- secondary: string;
1060
- disabled: string;
1061
- };
1062
- };
1063
- };
1064
- warning: {
1065
- primary: {
1066
- background: string;
1067
- foreground: {
1068
- primary: string;
1069
- secondary: string;
1070
- disabled: string;
1071
- };
1072
- };
1073
- secondary: {
1074
- background: string;
1075
- foreground: {
1076
- primary: string;
1077
- secondary: string;
1078
- disabled: string;
1079
- };
1080
- };
1081
- };
1082
- error: {
1083
- primary: {
1084
- background: string;
1085
- foreground: {
1086
- primary: string;
1087
- secondary: string;
1088
- disabled: string;
1089
- };
1090
- };
1091
- secondary: {
1092
- background: string;
1093
- foreground: {
1094
- primary: string;
1095
- secondary: string;
1096
- disabled: string;
1097
- };
1098
- };
1099
- };
1100
- };
1101
- interactive: {
1102
- 0: {
1103
- default: {
1104
- background: string;
1105
- foreground: {
1106
- primary: string;
1107
- secondary: string;
1108
- disabled: string;
1109
- };
1110
- };
1111
- hover: {
1112
- background: string;
1113
- foreground: {
1114
- primary: string;
1115
- secondary: string;
1116
- disabled: string;
1117
- };
1118
- };
1119
- active: {
1120
- background: string;
1121
- foreground: {
1122
- primary: string;
1123
- secondary: string;
1124
- disabled: string;
1125
- };
1126
- };
1127
- disabled: {
1128
- background: string;
1129
- foreground: {
1130
- primary: string;
1131
- secondary: string;
1132
- disabled: string;
1133
- };
1134
- };
1135
- outline: {
1136
- background: string;
1137
- foreground: {
1138
- primary: string;
1139
- secondary: string;
1140
- disabled: string;
1141
- };
1142
- };
1143
- destructive: {
1144
- background: string;
1145
- foreground: {
1146
- primary: string;
1147
- secondary: string;
1148
- disabled: string;
1149
- };
1150
- };
1151
- };
1152
- 1: {
1153
- default: {
1154
- background: string;
1155
- foreground: {
1156
- primary: string;
1157
- secondary: string;
1158
- disabled: string;
1159
- };
1160
- };
1161
- hover: {
1162
- background: string;
1163
- foreground: {
1164
- primary: string;
1165
- secondary: string;
1166
- disabled: string;
1167
- };
1168
- };
1169
- active: {
1170
- background: string;
1171
- foreground: {
1172
- primary: string;
1173
- secondary: string;
1174
- disabled: string;
1175
- };
1176
- };
1177
- disabled: {
1178
- background: string;
1179
- foreground: {
1180
- primary: string;
1181
- secondary: string;
1182
- disabled: string;
1183
- };
1184
- };
1185
- outline: {
1186
- background: string;
1187
- foreground: {
1188
- primary: string;
1189
- secondary: string;
1190
- disabled: string;
1191
- };
1192
- };
1193
- destructive: {
1194
- background: string;
1195
- foreground: {
1196
- primary: string;
1197
- secondary: string;
1198
- disabled: string;
1199
- };
1200
- };
1201
- };
1202
- 2: {
1203
- default: {
1204
- background: string;
1205
- foreground: {
1206
- primary: string;
1207
- secondary: string;
1208
- disabled: string;
1209
- };
1210
- };
1211
- hover: {
1212
- background: string;
1213
- foreground: {
1214
- primary: string;
1215
- secondary: string;
1216
- disabled: string;
1217
- };
1218
- };
1219
- active: {
1220
- background: string;
1221
- foreground: {
1222
- primary: string;
1223
- secondary: string;
1224
- disabled: string;
1225
- };
1226
- };
1227
- disabled: {
1228
- background: string;
1229
- foreground: {
1230
- primary: string;
1231
- secondary: string;
1232
- disabled: string;
1233
- };
1234
- };
1235
- outline: {
1236
- background: string;
1237
- foreground: {
1238
- primary: string;
1239
- secondary: string;
1240
- disabled: string;
1241
- };
1242
- };
1243
- destructive: {
1244
- background: string;
1245
- foreground: {
1246
- primary: string;
1247
- secondary: string;
1248
- disabled: string;
1249
- };
1250
- };
1251
- };
1252
- 3: {
1253
- default: {
1254
- background: string;
1255
- foreground: {
1256
- primary: string;
1257
- secondary: string;
1258
- disabled: string;
1259
- };
1260
- };
1261
- hover: {
1262
- background: string;
1263
- foreground: {
1264
- primary: string;
1265
- secondary: string;
1266
- disabled: string;
1267
- };
1268
- };
1269
- active: {
1270
- background: string;
1271
- foreground: {
1272
- primary: string;
1273
- secondary: string;
1274
- disabled: string;
1275
- };
1276
- };
1277
- disabled: {
1278
- background: string;
1279
- foreground: {
1280
- primary: string;
1281
- secondary: string;
1282
- disabled: string;
1283
- };
1284
- };
1285
- outline: {
1286
- background: string;
1287
- foreground: {
1288
- primary: string;
1289
- secondary: string;
1290
- disabled: string;
1291
- };
1292
- };
1293
- destructive: {
1294
- background: string;
1295
- foreground: {
1296
- primary: string;
1297
- secondary: string;
1298
- disabled: string;
1299
- };
1300
- };
1301
- };
1302
- destructive: {
1303
- default: {
1304
- background: string;
1305
- foreground: {
1306
- primary: string;
1307
- secondary: string;
1308
- disabled: string;
1309
- };
1310
- };
1311
- hover: {
1312
- background: string;
1313
- foreground: {
1314
- primary: string;
1315
- secondary: string;
1316
- disabled: string;
1317
- };
1318
- };
1319
- active: {
1320
- background: string;
1321
- foreground: {
1322
- primary: string;
1323
- secondary: string;
1324
- disabled: string;
1325
- };
1326
- };
1327
- disabled: {
1328
- background: string;
1329
- foreground: {
1330
- primary: string;
1331
- secondary: string;
1332
- disabled: string;
1333
- };
1334
- };
1335
- outline: {
1336
- background: string;
1337
- foreground: {
1338
- primary: string;
1339
- secondary: string;
1340
- disabled: string;
1341
- };
1342
- };
1343
- destructive: {
1344
- background: string;
1345
- foreground: {
1346
- primary: string;
1347
- secondary: string;
1348
- disabled: string;
1349
- };
1350
- };
1351
- };
1352
- };
1353
- transport: {
1354
- city: {
1355
- primary: {
1356
- background: string;
1357
- foreground: {
1358
- primary: string;
1359
- secondary: string;
1360
- disabled: string;
1361
- };
1362
- };
1363
- secondary: {
1364
- background: string;
1365
- foreground: {
1366
- primary: string;
1367
- secondary: string;
1368
- disabled: string;
1369
- };
1370
- };
1371
- };
1372
- region: {
1373
- primary: {
1374
- background: string;
1375
- foreground: {
1376
- primary: string;
1377
- secondary: string;
1378
- disabled: string;
1379
- };
1380
- };
1381
- secondary: {
1382
- background: string;
1383
- foreground: {
1384
- primary: string;
1385
- secondary: string;
1386
- disabled: string;
1387
- };
1388
- };
1389
- };
1390
- airportExpress: {
1391
- primary: {
1392
- background: string;
1393
- foreground: {
1394
- primary: string;
1395
- secondary: string;
1396
- disabled: string;
1397
- };
1398
- };
1399
- secondary: {
1400
- background: string;
1401
- foreground: {
1402
- primary: string;
1403
- secondary: string;
1404
- disabled: string;
1405
- };
1406
- };
1407
- };
1408
- flexible: {
1409
- primary: {
1410
- background: string;
1411
- foreground: {
1412
- primary: string;
1413
- secondary: string;
1414
- disabled: string;
1415
- };
1416
- };
1417
- secondary: {
1418
- background: string;
1419
- foreground: {
1420
- primary: string;
1421
- secondary: string;
1422
- disabled: string;
1423
- };
1424
- };
1425
- };
1426
- boat: {
1427
- primary: {
1428
- background: string;
1429
- foreground: {
1430
- primary: string;
1431
- secondary: string;
1432
- disabled: string;
1433
- };
1434
- };
1435
- secondary: {
1436
- background: string;
1437
- foreground: {
1438
- primary: string;
1439
- secondary: string;
1440
- disabled: string;
1441
- };
1442
- };
1443
- };
1444
- train: {
1445
- primary: {
1446
- background: string;
1447
- foreground: {
1448
- primary: string;
1449
- secondary: string;
1450
- disabled: string;
1451
- };
1452
- };
1453
- secondary: {
1454
- background: string;
1455
- foreground: {
1456
- primary: string;
1457
- secondary: string;
1458
- disabled: string;
1459
- };
1460
- };
1461
- };
1462
- scooter: {
1463
- primary: {
1464
- background: string;
1465
- foreground: {
1466
- primary: string;
1467
- secondary: string;
1468
- disabled: string;
1469
- };
1470
- };
1471
- secondary: {
1472
- background: string;
1473
- foreground: {
1474
- primary: string;
1475
- secondary: string;
1476
- disabled: string;
1477
- };
1478
- };
1479
- };
1480
- car: {
1481
- primary: {
1482
- background: string;
1483
- foreground: {
1484
- primary: string;
1485
- secondary: string;
1486
- disabled: string;
1487
- };
1488
- };
1489
- secondary: {
1490
- background: string;
1491
- foreground: {
1492
- primary: string;
1493
- secondary: string;
1494
- disabled: string;
1495
- };
1496
- };
1497
- };
1498
- bike: {
1499
- primary: {
1500
- background: string;
1501
- foreground: {
1502
- primary: string;
1503
- secondary: string;
1504
- disabled: string;
1505
- };
1506
- };
1507
- secondary: {
1508
- background: string;
1509
- foreground: {
1510
- primary: string;
1511
- secondary: string;
1512
- disabled: string;
1513
- };
1514
- };
1515
- };
1516
- other: {
1517
- primary: {
1518
- background: string;
1519
- foreground: {
1520
- primary: string;
1521
- secondary: string;
1522
- disabled: string;
1523
- };
1524
- };
1525
- secondary: {
1526
- background: string;
1527
- foreground: {
1528
- primary: string;
1529
- secondary: string;
1530
- disabled: string;
1531
- };
1532
- };
1533
- };
1534
- };
1535
- zone: {
1536
- from: {
1537
- background: string;
1538
- foreground: {
1539
- primary: string;
1540
- secondary: string;
1541
- disabled: string;
1542
- };
1543
- };
1544
- to: {
1545
- background: string;
1546
- foreground: {
1547
- primary: string;
1548
- secondary: string;
1549
- disabled: string;
1550
- };
1551
- };
1552
- };
1553
- geofencingZone: {
1554
- allowed: {
1555
- color: {
1556
- background: string;
1557
- foreground: {
1558
- primary: string;
1559
- secondary: string;
1560
- disabled: string;
1561
- };
1562
- };
1563
- fillOpacity: number;
1564
- strokeOpacity: number;
1565
- layerIndexWeight: number;
1566
- };
1567
- slow: {
1568
- color: {
1569
- background: string;
1570
- foreground: {
1571
- primary: string;
1572
- secondary: string;
1573
- disabled: string;
1574
- };
1575
- };
1576
- fillOpacity: number;
1577
- strokeOpacity: number;
1578
- layerIndexWeight: number;
1579
- };
1580
- noParking: {
1581
- color: {
1582
- background: string;
1583
- foreground: {
1584
- primary: string;
1585
- secondary: string;
1586
- disabled: string;
1587
- };
1588
- };
1589
- fillOpacity: number;
1590
- strokeOpacity: number;
1591
- layerIndexWeight: number;
1592
- };
1593
- noEntry: {
1594
- color: {
1595
- background: string;
1596
- foreground: {
1597
- primary: string;
1598
- secondary: string;
1599
- disabled: string;
1600
- };
1601
- };
1602
- fillOpacity: number;
1603
- strokeOpacity: number;
1604
- layerIndexWeight: number;
1605
- };
1606
- };
1607
- border: {
1608
- primary: {
1609
- background: string;
1610
- foreground: {
1611
- primary: string;
1612
- secondary: string;
1613
- disabled: string;
1614
- };
1615
- };
1616
- secondary: {
1617
- background: string;
1618
- foreground: {
1619
- primary: string;
1620
- secondary: string;
1621
- disabled: string;
1622
- };
1623
- };
1624
- focus: {
1625
- background: string;
1626
- foreground: {
1627
- primary: string;
1628
- secondary: string;
1629
- disabled: string;
1630
- };
1631
- };
1632
- };
1633
- };
1634
- border: {
1635
- radius: {
1636
- small: number;
1637
- medium: number;
1638
- circle: number;
1639
- };
1640
- width: {
1641
- slim: number;
1642
- medium: number;
1643
- };
1644
- };
1645
- typography: {
1646
- ios: {
1647
- font: string;
1648
- number: number;
1649
- };
1650
- android: {
1651
- font: string;
1652
- number: number;
1653
- };
1654
- web: {
1655
- font: string;
1656
- number: number;
1657
- };
1658
- };
1659
- spacing: {
1660
- xSmall: number;
1661
- small: number;
1662
- medium: number;
1663
- large: number;
1664
- xLarge: number;
1665
- };
1666
- icon: {
1667
- size: {
1668
- xSmall: number;
1669
- small: number;
1670
- medium: number;
1671
- large: number;
1672
- };
1673
- };
1674
- };
1675
- };
241
+ export interface ThemeOptions {
242
+ useFigmaStructure?: boolean;
243
+ }
244
+ /**
245
+ * Get a theme object for a specific organization in the desired format.
246
+ *
247
+ * @param themeVariant Organization
248
+ * @param themeOptions Set if the new Figma structure should be used
249
+ * @returns Theme object
250
+ */
251
+ export declare function createThemesFor<T extends ThemeOptions>(themeVariant: ThemeVariant, themeOptions?: T): T['useFigmaStructure'] extends true ? Themes<ThemeFs> : Themes<Theme>;
1676
252
  /**
1677
253
  * Create new themes (light/dark) with optinally overriden defaults.
1678
254
  *
@@ -1715,10 +291,10 @@ export declare function createThemes(themes: Themes, overrides?: ConfigurationOv
1715
291
  * @param extension - Object to extend original theme. Can be nested with same keys
1716
292
  * @returns new deep merged intersection themes
1717
293
  */
1718
- export declare function createExtendedThemes<T extends {}>(themes: Themes, extension: {
294
+ export declare function createExtendedThemes<T extends {}, M extends Theme | ThemeFs = Theme>(themes: Themes<M>, extension: {
1719
295
  light: T;
1720
296
  dark: T;
1721
297
  }): {
1722
- light: Themes['light'] & T;
1723
- dark: Themes['dark'] & T;
298
+ light: Themes<M>['light'] & T;
299
+ dark: Themes<M>['dark'] & T;
1724
300
  };