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

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 +20 -19
  2. package/lib/theme.js.map +1 -1
  3. package/lib/themes/atb-theme/dark.d.ts +1 -11
  4. package/lib/themes/atb-theme/dark.js +6 -16
  5. package/lib/themes/atb-theme/dark.js.map +1 -1
  6. package/lib/themes/atb-theme/light.d.ts +1 -11
  7. package/lib/themes/atb-theme/light.js +6 -16
  8. package/lib/themes/atb-theme/light.js.map +1 -1
  9. package/lib/themes/atb-theme/theme.css +392 -362
  10. package/lib/themes/atb-theme/theme.d.ts +2 -22
  11. package/lib/themes/atb-theme/theme.module.css +392 -362
  12. package/lib/themes-fs/atb-theme/dark.d.ts +1 -41
  13. package/lib/themes-fs/atb-theme/dark.js +1 -41
  14. package/lib/themes-fs/atb-theme/dark.js.map +1 -1
  15. package/lib/themes-fs/atb-theme/light.d.ts +1 -41
  16. package/lib/themes-fs/atb-theme/light.js +1 -41
  17. package/lib/themes-fs/atb-theme/light.js.map +1 -1
  18. package/lib/themes-fs/atb-theme/theme.d.ts +2 -82
  19. package/lib/typography/index.d.ts +3 -3
  20. package/lib/typography/index.js.map +1 -1
  21. package/lib/typography/types.d.ts +5 -5
  22. package/lib/utils/override-config.d.ts +1 -1
  23. package/lib/utils/override-config.js.map +1 -1
  24. package/package.json +11 -9
  25. package/lib/sizes.d.ts +0 -23
  26. package/lib/sizes.js +0 -23
  27. package/lib/sizes.js.map +0 -1
  28. package/lib/themes/atb-theme/dark-compat.d.ts +0 -456
  29. package/lib/themes/atb-theme/dark-compat.js +0 -456
  30. package/lib/themes/atb-theme/dark-compat.js.map +0 -1
  31. package/lib/themes/atb-theme/light-compat.d.ts +0 -456
  32. package/lib/themes/atb-theme/light-compat.js +0 -456
  33. package/lib/themes/atb-theme/light-compat.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"override-config.js","sourceRoot":"","sources":["../../src/utils/override-config.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,cAAc,CAC5B,IAAO,EACP,SAAmC;IAEnC,IAAI,MAAM,GAAM,EAAC,GAAG,IAAI,EAAC,CAAC;IAC1B,KAAK,IAAI,GAAG,IAAI,IAAI,EAAE;QACpB,IAAI,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE;YACrD,MAAM,CAAC,GAAG,CAAC,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,SAAS,CAAC,GAAG,CAAE,CAAC,CAAC;SAC5D;aAAM,IAAI,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE;YACtD,MAAM,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,GAAG,CAAiC,CAAC;SAC9D;KACF;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,QAAQ,CAAC,GAAQ;IACxB,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI,EAAE;QAC3C,IAAI,OAAO,MAAM,CAAC,cAAc,KAAK,UAAU,EAAE;YAC/C,MAAM,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;YAC7C,OAAO,SAAS,KAAK,MAAM,CAAC,SAAS,IAAI,SAAS,KAAK,IAAI,CAAC;SAC7D;QAED,OAAO,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,iBAAiB,CAAC;KAClE;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
1
+ {"version":3,"file":"override-config.js","sourceRoot":"","sources":["../../src/utils/override-config.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,cAAc,CAC5B,IAAO,EACP,SAAmC;IAEnC,IAAI,MAAM,GAAM,EAAC,GAAG,IAAI,EAAC,CAAC;IAC1B,KAAK,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QACrB,IAAI,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;YACtD,MAAM,CAAC,GAAG,CAAC,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,SAAS,CAAC,GAAG,CAAE,CAAC,CAAC;QAC7D,CAAC;aAAM,IAAI,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;YACvD,MAAM,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,GAAG,CAAiC,CAAC;QAC/D,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,QAAQ,CAAC,GAAQ;IACxB,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;QAC5C,IAAI,OAAO,MAAM,CAAC,cAAc,KAAK,UAAU,EAAE,CAAC;YAChD,MAAM,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;YAC7C,OAAO,SAAS,KAAK,MAAM,CAAC,SAAS,IAAI,SAAS,KAAK,IAAI,CAAC;QAC9D,CAAC;QAED,OAAO,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,iBAAiB,CAAC;IACnE,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
package/package.json CHANGED
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "name": "@atb-as/theme",
3
- "version": "11.0.0-alpha.7",
3
+ "version": "11.0.0-alpha.9",
4
4
  "private": false,
5
5
  "description": "AtB Design System Colors",
6
6
  "license": "EUPL-1.2",
7
7
  "type": "module",
8
- "main": "lib/index.js",
9
- "types": "lib/index.d.ts",
8
+ "main": "./lib/index.js",
9
+ "exports": {
10
+ ".": "./lib/index.js"
11
+ },
12
+ "types": "./lib/index.d.ts",
10
13
  "files": [
11
14
  "lib"
12
15
  ],
@@ -15,7 +18,7 @@
15
18
  "tsc": "tsc",
16
19
  "clean": "rm -rf lib",
17
20
  "test": "echo \"Error: run tests from root\" && exit 1",
18
- "build": "yarn fetch-variables && tsc -p tsconfig.build.json && yarn create-css && yarn copy-css",
21
+ "build": "tsc -p tsconfig.build.json && yarn create-css && yarn copy-css",
19
22
  "copy-css": "copyfiles -u 1 \"src/**/*.{css,woff,woff2,ttf,eot,svg,png}\" lib/",
20
23
  "create-css": "tsx ./tools/create-css.ts",
21
24
  "fetch-variables": "tsx ./tools/fetch-figma-variables.ts"
@@ -26,16 +29,15 @@
26
29
  "copyfiles": "^2.4.1",
27
30
  "style-dictionary": "^4.0.0",
28
31
  "tsx": "^4.16.2",
29
- "typescript": "^4.4.3"
32
+ "typescript": "^5.1.6"
30
33
  },
31
34
  "dependencies": {
32
- "@tfk-samf/figma-to-dtcg": "0.3.2",
35
+ "@tfk-samf/figma-to-dtcg": "0.3.8",
33
36
  "hex-to-rgba": "^2.0.1",
34
- "ts-deepmerge": "^4.0.0",
35
- "typescript": "^4.4.3"
37
+ "ts-deepmerge": "^4.0.0"
36
38
  },
37
39
  "publishConfig": {
38
40
  "access": "public"
39
41
  },
40
- "gitHead": "4f94d7f7f66fe2e4b36ab7d1c586c7909c115ce9"
42
+ "gitHead": "e306152c5f22b5c85b992b12e456e3f47a21d2e0"
41
43
  }
package/lib/sizes.d.ts DELETED
@@ -1,23 +0,0 @@
1
- export declare const Spacing: {
2
- xLarge: number;
3
- large: number;
4
- medium: number;
5
- small: number;
6
- xSmall: number;
7
- };
8
- export declare const IconSizes: {
9
- large: number;
10
- normal: number;
11
- small: number;
12
- xSmall: number;
13
- };
14
- export declare const BorderRadius: {
15
- readonly circle: 20;
16
- readonly regular: 8;
17
- readonly small: 4;
18
- };
19
- export declare const BorderWidth: {
20
- slim: number;
21
- medium: number;
22
- };
23
- export declare type RadiusSizes = keyof typeof BorderRadius;
package/lib/sizes.js DELETED
@@ -1,23 +0,0 @@
1
- export const Spacing = {
2
- xLarge: 24,
3
- large: 20,
4
- medium: 12,
5
- small: 8,
6
- xSmall: 4,
7
- };
8
- export const IconSizes = {
9
- large: 28,
10
- normal: 20,
11
- small: 16,
12
- xSmall: 12,
13
- };
14
- export const BorderRadius = {
15
- circle: 20,
16
- regular: 8,
17
- small: 4,
18
- };
19
- export const BorderWidth = {
20
- slim: 1,
21
- medium: 2,
22
- };
23
- //# sourceMappingURL=sizes.js.map
package/lib/sizes.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"sizes.js","sourceRoot":"","sources":["../src/sizes.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,EAAE;IACT,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,CAAC;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,KAAK,EAAE,EAAE;IACT,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,EAAE;IACT,MAAM,EAAE,EAAE;CACX,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,MAAM,EAAE,EAAE;IACV,OAAO,EAAE,CAAC;IACV,KAAK,EAAE,CAAC;CACA,CAAC;AAEX,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,IAAI,EAAE,CAAC;IACP,MAAM,EAAE,CAAC;CACV,CAAC"}
@@ -1,456 +0,0 @@
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;