@fluentui-react-native/win32-theme 0.39.0 → 0.39.3

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 (79) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/lib/NativeModule/_mocks_/getThemingModule.native.d.ts +1 -1
  3. package/lib/NativeModule/_mocks_/getThemingModule.native.js +2 -2
  4. package/lib/NativeModule/fallbackOfficeModule.d.ts +1 -1
  5. package/lib/NativeModule/fallbackOfficeModule.js +163 -163
  6. package/lib/NativeModule/getThemingModule.d.ts +1 -1
  7. package/lib/NativeModule/getThemingModule.js +2 -2
  8. package/lib/NativeModule/getThemingModule.native.d.ts +1 -1
  9. package/lib/NativeModule/getThemingModule.native.js +30 -28
  10. package/lib/NativeModule/hostThemeSetting.d.ts +1 -1
  11. package/lib/NativeModule/hostThemeSetting.js +3 -3
  12. package/lib/NativeModule/index.d.ts +2 -10
  13. package/lib/NativeModule/index.js +1 -1
  14. package/lib/NativeModule/officeThemingModule.d.ts +21 -21
  15. package/lib/NativeModule/officeThemingModule.js +1 -1
  16. package/lib/__tests__/win32-theme.test.d.ts +1 -1
  17. package/lib/__tests__/win32-theme.test.js +47 -47
  18. package/lib/createAliasesFromPalette.d.ts +1 -1
  19. package/lib/createAliasesFromPalette.js +56 -56
  20. package/lib/createBrandedThemeWithAlias.d.ts +1 -1
  21. package/lib/createBrandedThemeWithAlias.js +61 -56
  22. package/lib/createFontAliasTokens.d.ts +1 -1
  23. package/lib/createFontAliasTokens.js +3 -3
  24. package/lib/createOfficeAliasTokens.d.ts +1 -1
  25. package/lib/createOfficeAliasTokens.js +5 -5
  26. package/lib/createOfficeTheme.d.ts +1 -1
  27. package/lib/createOfficeTheme.js +46 -53
  28. package/lib/createPartialOfficeTheme.d.ts +1 -1
  29. package/lib/createPartialOfficeTheme.js +19 -22
  30. package/lib/getOfficeTokens.d.ts +227 -229
  31. package/lib/getOfficeTokens.js +26 -20
  32. package/lib/getThemeTypography.d.ts +1 -1
  33. package/lib/getThemeTypography.js +32 -32
  34. package/lib/highContrast/tokens-alias.d.ts +1 -1
  35. package/lib/highContrast/tokens-alias.js +11 -11
  36. package/lib/index.d.ts +2 -10
  37. package/lib/index.js +1 -1
  38. package/lib/paletteFromOfficeColors.d.ts +1 -1
  39. package/lib/paletteFromOfficeColors.js +114 -114
  40. package/lib-commonjs/NativeModule/_mocks_/getThemingModule.native.d.ts +1 -1
  41. package/lib-commonjs/NativeModule/_mocks_/getThemingModule.native.js +5 -5
  42. package/lib-commonjs/NativeModule/fallbackOfficeModule.d.ts +1 -1
  43. package/lib-commonjs/NativeModule/fallbackOfficeModule.js +165 -165
  44. package/lib-commonjs/NativeModule/getThemingModule.d.ts +1 -1
  45. package/lib-commonjs/NativeModule/getThemingModule.js +5 -5
  46. package/lib-commonjs/NativeModule/getThemingModule.native.d.ts +1 -1
  47. package/lib-commonjs/NativeModule/getThemingModule.native.js +35 -33
  48. package/lib-commonjs/NativeModule/hostThemeSetting.d.ts +1 -1
  49. package/lib-commonjs/NativeModule/hostThemeSetting.js +5 -5
  50. package/lib-commonjs/NativeModule/index.d.ts +2 -10
  51. package/lib-commonjs/NativeModule/index.js +8 -23
  52. package/lib-commonjs/NativeModule/officeThemingModule.d.ts +21 -21
  53. package/lib-commonjs/NativeModule/officeThemingModule.js +3 -3
  54. package/lib-commonjs/__tests__/win32-theme.test.d.ts +1 -1
  55. package/lib-commonjs/__tests__/win32-theme.test.js +57 -57
  56. package/lib-commonjs/createAliasesFromPalette.d.ts +1 -1
  57. package/lib-commonjs/createAliasesFromPalette.js +58 -58
  58. package/lib-commonjs/createBrandedThemeWithAlias.d.ts +1 -1
  59. package/lib-commonjs/createBrandedThemeWithAlias.js +64 -59
  60. package/lib-commonjs/createFontAliasTokens.d.ts +1 -1
  61. package/lib-commonjs/createFontAliasTokens.js +8 -8
  62. package/lib-commonjs/createOfficeAliasTokens.d.ts +1 -1
  63. package/lib-commonjs/createOfficeAliasTokens.js +10 -10
  64. package/lib-commonjs/createOfficeTheme.d.ts +1 -1
  65. package/lib-commonjs/createOfficeTheme.js +57 -66
  66. package/lib-commonjs/createPartialOfficeTheme.d.ts +1 -1
  67. package/lib-commonjs/createPartialOfficeTheme.js +22 -25
  68. package/lib-commonjs/getOfficeTokens.d.ts +227 -229
  69. package/lib-commonjs/getOfficeTokens.js +39 -35
  70. package/lib-commonjs/getThemeTypography.d.ts +1 -1
  71. package/lib-commonjs/getThemeTypography.js +36 -36
  72. package/lib-commonjs/highContrast/tokens-alias.d.ts +1 -1
  73. package/lib-commonjs/highContrast/tokens-alias.js +18 -20
  74. package/lib-commonjs/index.d.ts +2 -10
  75. package/lib-commonjs/index.js +23 -89
  76. package/lib-commonjs/paletteFromOfficeColors.d.ts +1 -1
  77. package/lib-commonjs/paletteFromOfficeColors.js +116 -116
  78. package/package.json +26 -25
  79. package/eslint.config.js +0 -3
@@ -1,243 +1,241 @@
1
1
  export declare function getOfficeAliasTokens(officeTheme: string): any;
2
- export declare function getOfficeShadowTokens(officeTheme: string):
3
- | {
4
- shadow16: {
2
+ export declare function getOfficeShadowTokens(officeTheme: string): {
3
+ shadow16: {
5
4
  color: string;
6
5
  x: number;
7
6
  y: number;
8
7
  blur: number;
9
- }[];
10
- shadow2: {
8
+ }[];
9
+ shadow2: {
11
10
  color: string;
12
11
  x: number;
13
12
  y: number;
14
13
  blur: number;
15
- }[];
16
- shadow28: {
14
+ }[];
15
+ shadow28: {
17
16
  color: string;
18
17
  x: number;
19
18
  y: number;
20
19
  blur: number;
21
- }[];
22
- shadow4: {
20
+ }[];
21
+ shadow4: {
23
22
  color: string;
24
23
  x: number;
25
24
  y: number;
26
25
  blur: number;
27
- }[];
28
- shadow64: {
26
+ }[];
27
+ shadow64: {
29
28
  color: string;
30
29
  x: number;
31
30
  y: number;
32
31
  blur: number;
33
- }[];
34
- shadow8: {
32
+ }[];
33
+ shadow8: {
35
34
  color: string;
36
35
  x: number;
37
36
  y: number;
38
37
  blur: number;
39
- }[];
40
- shadowBrand16: {
38
+ }[];
39
+ shadowBrand16: {
41
40
  color: string;
42
41
  x: number;
43
42
  y: number;
44
43
  blur: number;
45
- }[];
46
- shadowBrand2: {
44
+ }[];
45
+ shadowBrand2: {
47
46
  color: string;
48
47
  x: number;
49
48
  y: number;
50
49
  blur: number;
51
- }[];
52
- shadowBrand28: {
50
+ }[];
51
+ shadowBrand28: {
53
52
  color: string;
54
53
  x: number;
55
54
  y: number;
56
55
  blur: number;
57
- }[];
58
- shadowBrand4: {
56
+ }[];
57
+ shadowBrand4: {
59
58
  color: string;
60
59
  x: number;
61
60
  y: number;
62
61
  blur: number;
63
- }[];
64
- shadowBrand64: {
62
+ }[];
63
+ shadowBrand64: {
65
64
  color: string;
66
65
  x: number;
67
66
  y: number;
68
67
  blur: number;
69
- }[];
70
- shadowBrand8: {
68
+ }[];
69
+ shadowBrand8: {
71
70
  color: string;
72
71
  x: number;
73
72
  y: number;
74
73
  blur: number;
75
- }[];
76
- }
77
- | {
78
- body1: {
74
+ }[];
75
+ } | {
76
+ body1: {
79
77
  fontFamily: string;
80
78
  fontLineHeight: number;
81
79
  fontSize: number;
82
80
  fontWeight: string;
83
- };
84
- body1Strong: {
81
+ };
82
+ body1Strong: {
85
83
  fontFamily: string;
86
84
  fontLineHeight: number;
87
85
  fontSize: number;
88
86
  fontWeight: string;
89
- };
90
- body2: {
87
+ };
88
+ body2: {
91
89
  fontFamily: string;
92
90
  fontLineHeight: number;
93
91
  fontSize: number;
94
92
  fontWeight: string;
95
- };
96
- body2Strong: {
93
+ };
94
+ body2Strong: {
97
95
  fontFamily: string;
98
96
  fontLineHeight: number;
99
97
  fontSize: number;
100
98
  fontWeight: string;
101
- };
102
- brandBackground: {
99
+ };
100
+ brandBackground: {
103
101
  rest: string;
104
102
  hover: string;
105
103
  pressed: string;
106
104
  selected: string;
107
- };
108
- brandBackground2: {
105
+ };
106
+ brandBackground2: {
109
107
  rest: string;
110
- };
111
- brandBackgroundStatic: {
108
+ };
109
+ brandBackgroundStatic: {
112
110
  rest: string;
113
- };
114
- brandForeground1: {
111
+ };
112
+ brandForeground1: {
115
113
  rest: string;
116
- };
117
- brandForeground2: {
114
+ };
115
+ brandForeground2: {
118
116
  rest: string;
119
- };
120
- brandForegroundLink: {
117
+ };
118
+ brandForegroundLink: {
121
119
  rest: string;
122
120
  hover: string;
123
121
  pressed: string;
124
122
  selected: string;
125
- };
126
- brandStroke1: {
123
+ };
124
+ brandStroke1: {
127
125
  rest: string;
128
- };
129
- brandStroke2: {
126
+ };
127
+ brandStroke2: {
130
128
  rest: string;
131
- };
132
- caption1: {
129
+ };
130
+ caption1: {
133
131
  fontFamily: string;
134
132
  fontLineHeight: number;
135
133
  fontSize: number;
136
134
  fontWeight: string;
137
- };
138
- compoundBrandBackground1: {
135
+ };
136
+ compoundBrandBackground1: {
139
137
  rest: string;
140
138
  hover: string;
141
139
  pressed: string;
142
- };
143
- compoundBrandForeground1: {
140
+ };
141
+ compoundBrandForeground1: {
144
142
  rest: string;
145
143
  hover: string;
146
144
  pressed: string;
147
- };
148
- compoundBrandStroke1: {
145
+ };
146
+ compoundBrandStroke1: {
149
147
  rest: string;
150
148
  hover: string;
151
149
  pressed: string;
152
- };
153
- dangerBackground1: {
150
+ };
151
+ dangerBackground1: {
154
152
  rest: string;
155
- };
156
- dangerBackground2: {
153
+ };
154
+ dangerBackground2: {
157
155
  rest: string;
158
- };
159
- dangerBackground3: {
156
+ };
157
+ dangerBackground3: {
160
158
  rest: string;
161
- };
162
- dangerBorder1: {
159
+ };
160
+ dangerBorder1: {
163
161
  rest: string;
164
- };
165
- dangerBorder2: {
162
+ };
163
+ dangerBorder2: {
166
164
  rest: string;
167
- };
168
- dangerBorderActive: {
165
+ };
166
+ dangerBorderActive: {
169
167
  rest: string;
170
- };
171
- dangerForeground1: {
168
+ };
169
+ dangerForeground1: {
172
170
  rest: string;
173
- };
174
- dangerForeground2: {
171
+ };
172
+ dangerForeground2: {
175
173
  rest: string;
176
- };
177
- dangerForeground3: {
174
+ };
175
+ dangerForeground3: {
178
176
  rest: string;
179
- };
180
- dangerForegroundInverted: {
177
+ };
178
+ dangerForegroundInverted: {
181
179
  rest: string;
182
- };
183
- display: {
180
+ };
181
+ display: {
184
182
  fontFamily: string;
185
183
  fontLineHeight: number;
186
184
  fontSize: number;
187
185
  fontWeight: string;
188
- };
189
- largeTitle: {
186
+ };
187
+ largeTitle: {
190
188
  fontFamily: string;
191
189
  fontLineHeight: number;
192
190
  fontSize: number;
193
191
  fontWeight: string;
194
- };
195
- neutralBackground1: {
192
+ };
193
+ neutralBackground1: {
196
194
  rest: string;
197
195
  hover: string;
198
196
  pressed: string;
199
197
  selected: string;
200
- };
201
- neutralBackground2: {
198
+ };
199
+ neutralBackground2: {
202
200
  rest: string;
203
201
  hover: string;
204
202
  pressed: string;
205
203
  selected: string;
206
- };
207
- neutralBackground3: {
204
+ };
205
+ neutralBackground3: {
208
206
  rest: string;
209
207
  hover: string;
210
208
  pressed: string;
211
209
  selected: string;
212
- };
213
- neutralBackground4: {
210
+ };
211
+ neutralBackground4: {
214
212
  rest: string;
215
213
  hover: string;
216
214
  pressed: string;
217
215
  selected: string;
218
- };
219
- neutralBackground5: {
216
+ };
217
+ neutralBackground5: {
220
218
  rest: string;
221
219
  hover: string;
222
220
  pressed: string;
223
221
  selected: string;
224
- };
225
- neutralBackground6: {
222
+ };
223
+ neutralBackground6: {
226
224
  rest: string;
227
- };
228
- neutralBackgroundDisabled: {
225
+ };
226
+ neutralBackgroundDisabled: {
229
227
  rest: string;
230
- };
231
- neutralBackgroundInverted: {
228
+ };
229
+ neutralBackgroundInverted: {
232
230
  rest: string;
233
- };
234
- neutralForeground1: {
231
+ };
232
+ neutralForeground1: {
235
233
  rest: string;
236
234
  hover: string;
237
235
  pressed: string;
238
236
  selected: string;
239
- };
240
- neutralForeground2: {
237
+ };
238
+ neutralForeground2: {
241
239
  rest: string;
242
240
  hover: string;
243
241
  pressed: string;
@@ -245,8 +243,8 @@ export declare function getOfficeShadowTokens(officeTheme: string):
245
243
  brandPressed: string;
246
244
  brandSelected: string;
247
245
  selected: string;
248
- };
249
- neutralForeground3: {
246
+ };
247
+ neutralForeground3: {
250
248
  rest: string;
251
249
  hover: string;
252
250
  pressed: string;
@@ -254,228 +252,228 @@ export declare function getOfficeShadowTokens(officeTheme: string):
254
252
  brandPressed: string;
255
253
  brandSelected: string;
256
254
  selected: string;
257
- };
258
- neutralForeground4: {
255
+ };
256
+ neutralForeground4: {
259
257
  rest: string;
260
- };
261
- neutralForegroundDisabled: {
258
+ };
259
+ neutralForegroundDisabled: {
262
260
  rest: string;
263
- };
264
- neutralForegroundInverted: {
261
+ };
262
+ neutralForegroundInverted: {
265
263
  rest: string;
266
- };
267
- neutralForegroundInvertedLink: {
264
+ };
265
+ neutralForegroundInvertedLink: {
268
266
  rest: string;
269
267
  hover: string;
270
268
  pressed: string;
271
269
  selected: string;
272
- };
273
- neutralForegroundOnBrand: {
270
+ };
271
+ neutralForegroundOnBrand: {
274
272
  rest: string;
275
273
  hover: string;
276
274
  pressed: string;
277
275
  selected: string;
278
- };
279
- neutralStencil1: {
276
+ };
277
+ neutralStencil1: {
280
278
  rest: string;
281
- };
282
- neutralStencil2: {
279
+ };
280
+ neutralStencil2: {
283
281
  rest: string;
284
- };
285
- neutralStroke1: {
282
+ };
283
+ neutralStroke1: {
286
284
  rest: string;
287
285
  hover: string;
288
286
  pressed: string;
289
287
  selected: string;
290
- };
291
- neutralStroke2: {
288
+ };
289
+ neutralStroke2: {
292
290
  rest: string;
293
- };
294
- neutralStroke3: {
291
+ };
292
+ neutralStroke3: {
295
293
  rest: string;
296
- };
297
- neutralStrokeAccessible: {
294
+ };
295
+ neutralStrokeAccessible: {
298
296
  rest: string;
299
297
  hover: string;
300
298
  pressed: string;
301
299
  selected: string;
302
- };
303
- neutralStrokeDisabled: {
300
+ };
301
+ neutralStrokeDisabled: {
304
302
  rest: string;
305
- };
306
- outofofficeBackground1: {
303
+ };
304
+ outofofficeBackground1: {
307
305
  rest: string;
308
- };
309
- outofofficeBackground2: {
306
+ };
307
+ outofofficeBackground2: {
310
308
  rest: string;
311
- };
312
- outofofficeBackground3: {
309
+ };
310
+ outofofficeBackground3: {
313
311
  rest: string;
314
- };
315
- outofofficeBorder1: {
312
+ };
313
+ outofofficeBorder1: {
316
314
  rest: string;
317
- };
318
- outofofficeBorder2: {
315
+ };
316
+ outofofficeBorder2: {
319
317
  rest: string;
320
- };
321
- outofofficeBorderActive: {
318
+ };
319
+ outofofficeBorderActive: {
322
320
  rest: string;
323
- };
324
- outofofficeForeground1: {
321
+ };
322
+ outofofficeForeground1: {
325
323
  rest: string;
326
- };
327
- outofofficeForeground2: {
324
+ };
325
+ outofofficeForeground2: {
328
326
  rest: string;
329
- };
330
- outofofficeForeground3: {
327
+ };
328
+ outofofficeForeground3: {
331
329
  rest: string;
332
- };
333
- severeBackground1: {
330
+ };
331
+ severeBackground1: {
334
332
  rest: string;
335
- };
336
- severeBackground2: {
333
+ };
334
+ severeBackground2: {
337
335
  rest: string;
338
- };
339
- severeBackground3: {
336
+ };
337
+ severeBackground3: {
340
338
  rest: string;
341
- };
342
- severeBorder1: {
339
+ };
340
+ severeBorder1: {
343
341
  rest: string;
344
- };
345
- severeBorder2: {
342
+ };
343
+ severeBorder2: {
346
344
  rest: string;
347
- };
348
- severeBorderActive: {
345
+ };
346
+ severeBorderActive: {
349
347
  rest: string;
350
- };
351
- severeForeground1: {
348
+ };
349
+ severeForeground1: {
352
350
  rest: string;
353
- };
354
- severeForeground2: {
351
+ };
352
+ severeForeground2: {
355
353
  rest: string;
356
- };
357
- severeForeground3: {
354
+ };
355
+ severeForeground3: {
358
356
  rest: string;
359
- };
360
- strokeFocus1: {
357
+ };
358
+ strokeFocus1: {
361
359
  rest: string;
362
- };
363
- strokeFocus2: {
360
+ };
361
+ strokeFocus2: {
364
362
  rest: string;
365
- };
366
- subtitle1: {
363
+ };
364
+ subtitle1: {
367
365
  fontFamily: string;
368
366
  fontLineHeight: number;
369
367
  fontSize: number;
370
368
  fontWeight: string;
371
- };
372
- subtitle1Strong: {
369
+ };
370
+ subtitle1Strong: {
373
371
  fontFamily: string;
374
372
  fontLineHeight: number;
375
373
  fontSize: number;
376
374
  fontWeight: string;
377
- };
378
- subtitle2: {
375
+ };
376
+ subtitle2: {
379
377
  fontFamily: string;
380
378
  fontLineHeight: number;
381
379
  fontSize: number;
382
380
  fontWeight: string;
383
- };
384
- subtitle2Strong: {
381
+ };
382
+ subtitle2Strong: {
385
383
  fontFamily: string;
386
384
  fontLineHeight: number;
387
385
  fontSize: number;
388
386
  fontWeight: string;
389
- };
390
- subtleBackground: {
387
+ };
388
+ subtleBackground: {
391
389
  rest: string;
392
390
  hover: string;
393
391
  pressed: string;
394
392
  selected: string;
395
- };
396
- successBackground1: {
393
+ };
394
+ successBackground1: {
397
395
  rest: string;
398
- };
399
- successBackground2: {
396
+ };
397
+ successBackground2: {
400
398
  rest: string;
401
- };
402
- successBackground3: {
399
+ };
400
+ successBackground3: {
403
401
  rest: string;
404
- };
405
- successBorder1: {
402
+ };
403
+ successBorder1: {
406
404
  rest: string;
407
- };
408
- successBorder2: {
405
+ };
406
+ successBorder2: {
409
407
  rest: string;
410
- };
411
- successBorderActive: {
408
+ };
409
+ successBorderActive: {
412
410
  rest: string;
413
- };
414
- successForeground1: {
411
+ };
412
+ successForeground1: {
415
413
  rest: string;
416
- };
417
- successForeground2: {
414
+ };
415
+ successForeground2: {
418
416
  rest: string;
419
- };
420
- successForeground3: {
417
+ };
418
+ successForeground3: {
421
419
  rest: string;
422
- };
423
- successForegroundInverted: {
420
+ };
421
+ successForegroundInverted: {
424
422
  rest: string;
425
- };
426
- title1: {
423
+ };
424
+ title1: {
427
425
  fontFamily: string;
428
426
  fontLineHeight: number;
429
427
  fontSize: number;
430
428
  fontWeight: string;
431
- };
432
- title1Strong: {
429
+ };
430
+ title1Strong: {
433
431
  fontFamily: string;
434
432
  fontLineHeight: number;
435
433
  fontSize: number;
436
434
  fontWeight: string;
437
- };
438
- transparentBackground: {
435
+ };
436
+ transparentBackground: {
439
437
  rest: string;
440
438
  hover: string;
441
439
  pressed: string;
442
440
  selected: string;
443
- };
444
- transparentStroke: {
441
+ };
442
+ transparentStroke: {
445
443
  rest: string;
446
444
  hover: string;
447
445
  pressed: string;
448
446
  disabled: string;
449
- };
450
- warningBackground1: {
447
+ };
448
+ warningBackground1: {
451
449
  rest: string;
452
- };
453
- warningBackground2: {
450
+ };
451
+ warningBackground2: {
454
452
  rest: string;
455
- };
456
- warningBackground3: {
453
+ };
454
+ warningBackground3: {
457
455
  rest: string;
458
- };
459
- warningBorder1: {
456
+ };
457
+ warningBorder1: {
460
458
  rest: string;
461
- };
462
- warningBorder2: {
459
+ };
460
+ warningBorder2: {
463
461
  rest: string;
464
- };
465
- warningBorderActive: {
462
+ };
463
+ warningBorderActive: {
466
464
  rest: string;
467
- };
468
- warningForeground1: {
465
+ };
466
+ warningForeground1: {
469
467
  rest: string;
470
- };
471
- warningForeground2: {
468
+ };
469
+ warningForeground2: {
472
470
  rest: string;
473
- };
474
- warningForeground3: {
471
+ };
472
+ warningForeground3: {
475
473
  rest: string;
476
- };
477
- warningForegroundInverted: {
474
+ };
475
+ warningForegroundInverted: {
478
476
  rest: string;
479
- };
480
477
  };
481
- //# sourceMappingURL=getOfficeTokens.d.ts.map
478
+ };
479
+ //# sourceMappingURL=getOfficeTokens.d.ts.map