@fluentui-react-native/win32-theme 0.25.8 → 0.25.10

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.json +49 -1
  2. package/CHANGELOG.md +21 -2
  3. package/lib/NativeModule/_mocks_/getThemingModule.native.d.ts +6 -0
  4. package/lib/NativeModule/_mocks_/getThemingModule.native.d.ts.map +1 -0
  5. package/lib/NativeModule/_mocks_/getThemingModule.native.js +8 -0
  6. package/lib/NativeModule/_mocks_/getThemingModule.native.js.map +1 -0
  7. package/lib/NativeModule/fallbackOfficeModule.d.ts +5 -0
  8. package/lib/NativeModule/fallbackOfficeModule.d.ts.map +1 -0
  9. package/lib/NativeModule/fallbackOfficeModule.js +162 -0
  10. package/lib/NativeModule/fallbackOfficeModule.js.map +1 -0
  11. package/lib/NativeModule/getThemingModule.d.ts +7 -0
  12. package/lib/NativeModule/getThemingModule.d.ts.map +1 -0
  13. package/lib/NativeModule/getThemingModule.js +8 -0
  14. package/lib/NativeModule/getThemingModule.js.map +1 -0
  15. package/lib/NativeModule/getThemingModule.native.d.ts +4 -0
  16. package/lib/NativeModule/getThemingModule.native.d.ts.map +1 -0
  17. package/lib/NativeModule/getThemingModule.native.js +27 -0
  18. package/lib/NativeModule/getThemingModule.native.js.map +1 -0
  19. package/lib/NativeModule/hostThemeSetting.d.ts +3 -0
  20. package/lib/NativeModule/hostThemeSetting.d.ts.map +1 -0
  21. package/lib/NativeModule/hostThemeSetting.js +17 -0
  22. package/lib/NativeModule/hostThemeSetting.js.map +1 -0
  23. package/lib/NativeModule/index.d.ts +4 -0
  24. package/lib/NativeModule/index.d.ts.map +1 -0
  25. package/lib/NativeModule/index.js +4 -0
  26. package/lib/NativeModule/index.js.map +1 -0
  27. package/lib/NativeModule/officeThemingModule.d.ts +34 -0
  28. package/lib/NativeModule/officeThemingModule.d.ts.map +1 -0
  29. package/lib/NativeModule/officeThemingModule.js +2 -0
  30. package/lib/NativeModule/officeThemingModule.js.map +1 -0
  31. package/lib/__tests__/win32-theme.test.d.ts +2 -0
  32. package/lib/__tests__/win32-theme.test.d.ts.map +1 -0
  33. package/lib/__tests__/win32-theme.test.js +102 -0
  34. package/lib/__tests__/win32-theme.test.js.map +1 -0
  35. package/lib/createAliasesFromPalette.d.ts +3 -0
  36. package/lib/createAliasesFromPalette.d.ts.map +1 -0
  37. package/lib/createAliasesFromPalette.js +59 -0
  38. package/lib/createAliasesFromPalette.js.map +1 -0
  39. package/lib/createBrandedThemeWithAlias.d.ts +5 -0
  40. package/lib/createBrandedThemeWithAlias.d.ts.map +1 -0
  41. package/lib/createBrandedThemeWithAlias.js +69 -0
  42. package/lib/createBrandedThemeWithAlias.js.map +1 -0
  43. package/lib/createFontAliasTokens.d.ts +5 -0
  44. package/lib/createFontAliasTokens.d.ts.map +1 -0
  45. package/lib/createFontAliasTokens.js +9 -0
  46. package/lib/createFontAliasTokens.js.map +1 -0
  47. package/lib/createOfficeAliasTokens.d.ts +7 -0
  48. package/lib/createOfficeAliasTokens.d.ts.map +1 -0
  49. package/lib/createOfficeAliasTokens.js +14 -0
  50. package/lib/createOfficeAliasTokens.js.map +1 -0
  51. package/lib/createOfficeTheme.d.ts +13 -0
  52. package/lib/createOfficeTheme.d.ts.map +1 -0
  53. package/lib/createOfficeTheme.js +70 -0
  54. package/lib/createOfficeTheme.js.map +1 -0
  55. package/lib/createPartialOfficeTheme.d.ts +10 -0
  56. package/lib/createPartialOfficeTheme.d.ts.map +1 -0
  57. package/lib/createPartialOfficeTheme.js +25 -0
  58. package/lib/createPartialOfficeTheme.js.map +1 -0
  59. package/lib/getOfficeTokens.d.ts +377 -0
  60. package/lib/getOfficeTokens.d.ts.map +1 -0
  61. package/lib/getOfficeTokens.js +39 -0
  62. package/lib/getOfficeTokens.js.map +1 -0
  63. package/lib/getThemeTypography.d.ts +3 -0
  64. package/lib/getThemeTypography.d.ts.map +1 -0
  65. package/lib/getThemeTypography.js +22 -0
  66. package/lib/getThemeTypography.js.map +1 -0
  67. package/lib/highContrast/tokens-alias.d.ts +2 -0
  68. package/lib/highContrast/tokens-alias.d.ts.map +1 -0
  69. package/lib/highContrast/tokens-alias.js +16 -0
  70. package/lib/highContrast/tokens-alias.js.map +1 -0
  71. package/lib/index.d.ts +10 -0
  72. package/lib/index.d.ts.map +1 -0
  73. package/lib/index.js +9 -0
  74. package/lib/index.js.map +1 -0
  75. package/lib/paletteFromOfficeColors.d.ts +3 -0
  76. package/lib/paletteFromOfficeColors.d.ts.map +1 -0
  77. package/lib/paletteFromOfficeColors.js +160 -0
  78. package/lib/paletteFromOfficeColors.js.map +1 -0
  79. package/package.json +3 -3
@@ -0,0 +1,377 @@
1
+ export declare function getOfficeAliasTokens(officeTheme: string): any;
2
+ export declare function getOfficeShadowTokens(officeTheme: string): {
3
+ shadow16: {
4
+ x: number;
5
+ y: number;
6
+ blur: number;
7
+ color: string;
8
+ }[];
9
+ shadow2: {
10
+ x: number;
11
+ y: number;
12
+ blur: number;
13
+ color: string;
14
+ }[];
15
+ shadow28: {
16
+ x: number;
17
+ y: number;
18
+ blur: number;
19
+ color: string;
20
+ }[];
21
+ shadow4: {
22
+ x: number;
23
+ y: number;
24
+ blur: number;
25
+ color: string;
26
+ }[];
27
+ shadow64: {
28
+ x: number;
29
+ y: number;
30
+ blur: number;
31
+ color: string;
32
+ }[];
33
+ shadow8: {
34
+ x: number;
35
+ y: number;
36
+ blur: number;
37
+ color: string;
38
+ }[];
39
+ shadowBrand16: {
40
+ x: number;
41
+ y: number;
42
+ blur: number;
43
+ color: string;
44
+ }[];
45
+ shadowBrand2: {
46
+ x: number;
47
+ y: number;
48
+ blur: number;
49
+ color: string;
50
+ }[];
51
+ shadowBrand28: {
52
+ x: number;
53
+ y: number;
54
+ blur: number;
55
+ color: string;
56
+ }[];
57
+ shadowBrand4: {
58
+ x: number;
59
+ y: number;
60
+ blur: number;
61
+ color: string;
62
+ }[];
63
+ shadowBrand64: {
64
+ x: number;
65
+ y: number;
66
+ blur: number;
67
+ color: string;
68
+ }[];
69
+ shadowBrand8: {
70
+ x: number;
71
+ y: number;
72
+ blur: number;
73
+ color: string;
74
+ }[];
75
+ } | {
76
+ body1: {
77
+ fontFamily: string;
78
+ fontLineHeight: number;
79
+ fontSize: number;
80
+ fontWeight: string;
81
+ };
82
+ body1Strong: {
83
+ fontFamily: string;
84
+ fontLineHeight: number;
85
+ fontSize: number;
86
+ fontWeight: string;
87
+ };
88
+ body2: {
89
+ fontFamily: string;
90
+ fontLineHeight: number;
91
+ fontSize: number;
92
+ fontWeight: string;
93
+ };
94
+ body2Strong: {
95
+ fontFamily: string;
96
+ fontLineHeight: number;
97
+ fontSize: number;
98
+ fontWeight: string;
99
+ };
100
+ brandBackground: {
101
+ fillColorRest: string;
102
+ fillColorHover: string;
103
+ fillColorPressed: string;
104
+ fillColorSelected: string;
105
+ };
106
+ brandBackground2: {
107
+ fillColorRest: string;
108
+ };
109
+ brandBackgroundStatic: {
110
+ fillColorRest: string;
111
+ };
112
+ brandForeground1: {
113
+ fillColorRest: string;
114
+ };
115
+ brandForeground2: {
116
+ fillColorRest: string;
117
+ };
118
+ brandForegroundLink: {
119
+ fillColorRest: string;
120
+ fillColorHover: string;
121
+ fillColorPressed: string;
122
+ fillColorSelected: string;
123
+ };
124
+ brandStroke1: {
125
+ strokeColorRest: string;
126
+ strokeWidth: number;
127
+ };
128
+ brandStroke2: {
129
+ strokeColorRest: string;
130
+ strokeWidth: number;
131
+ };
132
+ caption1: {
133
+ fontFamily: string;
134
+ fontLineHeight: number;
135
+ fontSize: number;
136
+ fontWeight: string;
137
+ };
138
+ compoundBrandBackground1: {
139
+ fillColorRest: string;
140
+ fillColorHover: string;
141
+ fillColorPressed: string;
142
+ };
143
+ compoundBrandForeground1: {
144
+ fillColorRest: string;
145
+ fillColorHover: string;
146
+ fillColorPressed: string;
147
+ };
148
+ compoundBrandStroke1: {
149
+ strokeColorRest: string;
150
+ strokeColorHover: string;
151
+ strokeColorPressed: string;
152
+ strokeWidth: number;
153
+ };
154
+ display: {
155
+ fontFamily: string;
156
+ fontLineHeight: number;
157
+ fontSize: number;
158
+ fontWeight: string;
159
+ };
160
+ largeTitle: {
161
+ fontFamily: string;
162
+ fontLineHeight: number;
163
+ fontSize: number;
164
+ fontWeight: string;
165
+ };
166
+ neutralBackground1: {
167
+ fillColorRest: string;
168
+ fillColorHover: string;
169
+ fillColorPressed: string;
170
+ fillColorSelected: string;
171
+ };
172
+ neutralBackground2: {
173
+ fillColorRest: string;
174
+ fillColorHover: string;
175
+ fillColorPressed: string;
176
+ fillColorSelected: string;
177
+ };
178
+ neutralBackground3: {
179
+ fillColorRest: string;
180
+ fillColorHover: string;
181
+ fillColorPressed: string;
182
+ fillColorSelected: string;
183
+ };
184
+ neutralBackground4: {
185
+ fillColorRest: string;
186
+ fillColorHover: string;
187
+ fillColorPressed: string;
188
+ fillColorSelected: string;
189
+ };
190
+ neutralBackground5: {
191
+ fillColorRest: string;
192
+ fillColorHover: string;
193
+ fillColorPressed: string;
194
+ fillColorSelected: string;
195
+ };
196
+ neutralBackground6: {
197
+ fillColorRest: string;
198
+ };
199
+ neutralBackgroundDisabled: {
200
+ fillColorRest: string;
201
+ };
202
+ neutralBackgroundInverted: {
203
+ fillColorRest: string;
204
+ };
205
+ neutralForeground1: {
206
+ fillColorRest: string;
207
+ fillColorHover: string;
208
+ fillColorPressed: string;
209
+ fillColorSelected: string;
210
+ };
211
+ neutralForeground2: {
212
+ fillColorRest: string;
213
+ fillColorHover: string;
214
+ fillColorPressed: string;
215
+ fillColorBrandHover: string;
216
+ fillColorBrandPressed: string;
217
+ fillColorBrandSelected: string;
218
+ fillColorSelected: string;
219
+ };
220
+ neutralForeground3: {
221
+ fillColorRest: string;
222
+ fillColorHover: string;
223
+ fillColorPressed: string;
224
+ fillColorBrandHover: string;
225
+ fillColorBrandPressed: string;
226
+ fillColorBrandSelected: string;
227
+ fillColorSelected: string;
228
+ };
229
+ neutralForeground4: {
230
+ fillColorRest: string;
231
+ };
232
+ neutralForegroundDisabled: {
233
+ fillColorRest: string;
234
+ };
235
+ neutralForegroundInverted: {
236
+ fillColorRest: string;
237
+ };
238
+ neutralForegroundInvertedLink: {
239
+ fillColorRest: string;
240
+ fillColorHover: string;
241
+ fillColorPressed: string;
242
+ fillColorSelected: string;
243
+ };
244
+ neutralForegroundOnBrand: {
245
+ fillColorRest: string;
246
+ fillColorHover: string;
247
+ fillColorPressed: string;
248
+ fillColorSelected: string;
249
+ };
250
+ neutralStencil1: {
251
+ fillColorRest: string;
252
+ };
253
+ neutralStencil2: {
254
+ fillColorRest: string;
255
+ };
256
+ neutralStroke1: {
257
+ strokeColorRest: string;
258
+ strokeColorHover: string;
259
+ strokeColorPressed: string;
260
+ strokeColorSelected: string;
261
+ strokeWidth: number;
262
+ };
263
+ neutralStroke2: {
264
+ strokeColorRest: string;
265
+ strokeWidth: number;
266
+ };
267
+ neutralStroke3: {
268
+ strokeColorRest: string;
269
+ strokeWidth: number;
270
+ };
271
+ neutralStrokeAccessible: {
272
+ strokeColorRest: string;
273
+ strokeColorHover: string;
274
+ strokeColorPressed: string;
275
+ strokeColorSelected: string;
276
+ strokeWidth: number;
277
+ };
278
+ neutralStrokeDisabled: {
279
+ strokeColorRest: string;
280
+ strokeWidth: number;
281
+ };
282
+ redBackground1: {
283
+ fillColorRest: string;
284
+ };
285
+ redBackground2: {
286
+ fillColorRest: string;
287
+ };
288
+ redBackground3: {
289
+ fillColorRest: string;
290
+ };
291
+ redBorder1: {
292
+ strokeColorRest: string;
293
+ strokeWidth: number;
294
+ };
295
+ redBorder2: {
296
+ strokeColorRest: string;
297
+ strokeWidth: number;
298
+ };
299
+ redBorderActive: {
300
+ strokeColorRest: string;
301
+ strokeWidth: number;
302
+ };
303
+ redForeground1: {
304
+ fillColorRest: string;
305
+ };
306
+ redForeground2: {
307
+ fillColorRest: string;
308
+ };
309
+ redForeground3: {
310
+ fillColorRest: string;
311
+ };
312
+ strokeFocus1: {
313
+ strokeColorRest: string;
314
+ strokeWidth: number;
315
+ };
316
+ strokeFocus2: {
317
+ strokeColorRest: string;
318
+ strokeWidth: number;
319
+ };
320
+ subtitle1: {
321
+ fontFamily: string;
322
+ fontLineHeight: number;
323
+ fontSize: number;
324
+ fontWeight: string;
325
+ };
326
+ subtitle1Strong: {
327
+ fontFamily: string;
328
+ fontLineHeight: number;
329
+ fontSize: number;
330
+ fontWeight: string;
331
+ };
332
+ subtitle2: {
333
+ fontFamily: string;
334
+ fontLineHeight: number;
335
+ fontSize: number;
336
+ fontWeight: string;
337
+ };
338
+ subtitle2Strong: {
339
+ fontFamily: string;
340
+ fontLineHeight: number;
341
+ fontSize: number;
342
+ fontWeight: string;
343
+ };
344
+ subtleBackground: {
345
+ fillColorRest: string;
346
+ fillColorHover: string;
347
+ fillColorPressed: string;
348
+ fillColorSelected: string;
349
+ };
350
+ title1: {
351
+ fontFamily: string;
352
+ fontLineHeight: number;
353
+ fontSize: number;
354
+ fontWeight: string;
355
+ };
356
+ title1Strong: {
357
+ fontFamily: string;
358
+ fontLineHeight: number;
359
+ fontSize: number;
360
+ fontWeight: string;
361
+ };
362
+ transparentBackground: {
363
+ fillColorRest: string;
364
+ fillColorHover: string;
365
+ fillColorPressed: string;
366
+ fillColorSelected: string;
367
+ };
368
+ transparentStroke: {
369
+ strokeAlignment: string;
370
+ strokeColorRest: string;
371
+ strokeColorHover: string;
372
+ strokeColorPressed: string;
373
+ strokeColorDisabled: string;
374
+ strokeWidth: number;
375
+ };
376
+ };
377
+ //# sourceMappingURL=getOfficeTokens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getOfficeTokens.d.ts","sourceRoot":"","sources":["../src/getOfficeTokens.ts"],"names":[],"mappings":"AAUA,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,OAYvD;AAED,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYxD"}
@@ -0,0 +1,39 @@
1
+ import blackAliasTokens from '@fluentui-react-native/design-tokens-win32/black/tokens-aliases.json';
2
+ import blackShadowTokens from '@fluentui-react-native/design-tokens-win32/black/tokens-shadow.json';
3
+ import colorfulAliasTokens from '@fluentui-react-native/design-tokens-win32/colorful/tokens-aliases.json';
4
+ import colorfulShadowTokens from '@fluentui-react-native/design-tokens-win32/colorful/tokens-shadow.json';
5
+ import darkGrayAliasTokens from '@fluentui-react-native/design-tokens-win32/darkgray/tokens-aliases.json';
6
+ import darkGrayShadowTokens from '@fluentui-react-native/design-tokens-win32/darkgray/tokens-shadow.json';
7
+ import hcShadowTokens from '@fluentui-react-native/design-tokens-win32/hc/tokens-shadow.json';
8
+ import { hcAliasTokens } from './highContrast/tokens-alias';
9
+ export function getOfficeAliasTokens(officeTheme) {
10
+ if (officeTheme === 'White' || officeTheme === 'Colorful') {
11
+ return colorfulAliasTokens;
12
+ }
13
+ else if (officeTheme === 'DarkGray') {
14
+ return darkGrayAliasTokens;
15
+ }
16
+ else if (officeTheme === 'Black') {
17
+ return blackAliasTokens;
18
+ }
19
+ else if (officeTheme === 'HighContrast') {
20
+ return hcAliasTokens;
21
+ }
22
+ return colorfulAliasTokens;
23
+ }
24
+ export function getOfficeShadowTokens(officeTheme) {
25
+ if (officeTheme === 'White' || officeTheme === 'Colorful') {
26
+ return colorfulShadowTokens;
27
+ }
28
+ else if (officeTheme === 'DarkGray') {
29
+ return darkGrayShadowTokens;
30
+ }
31
+ else if (officeTheme === 'Black') {
32
+ return blackShadowTokens;
33
+ }
34
+ else if (officeTheme === 'HighContrast') {
35
+ return hcShadowTokens;
36
+ }
37
+ return colorfulAliasTokens;
38
+ }
39
+ //# sourceMappingURL=getOfficeTokens.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getOfficeTokens.js","sourceRoot":"","sources":["../src/getOfficeTokens.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,sEAAsE,CAAC;AACpG,OAAO,iBAAiB,MAAM,qEAAqE,CAAC;AACpG,OAAO,mBAAmB,MAAM,yEAAyE,CAAC;AAC1G,OAAO,oBAAoB,MAAM,wEAAwE,CAAC;AAC1G,OAAO,mBAAmB,MAAM,yEAAyE,CAAC;AAC1G,OAAO,oBAAoB,MAAM,wEAAwE,CAAC;AAC1G,OAAO,cAAc,MAAM,kEAAkE,CAAC;AAE9F,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,MAAM,UAAU,oBAAoB,CAAC,WAAmB;IACtD,IAAI,WAAW,KAAK,OAAO,IAAI,WAAW,KAAK,UAAU,EAAE;QACzD,OAAO,mBAAmB,CAAC;KAC5B;SAAM,IAAI,WAAW,KAAK,UAAU,EAAE;QACrC,OAAO,mBAAmB,CAAC;KAC5B;SAAM,IAAI,WAAW,KAAK,OAAO,EAAE;QAClC,OAAO,gBAAgB,CAAC;KACzB;SAAM,IAAI,WAAW,KAAK,cAAc,EAAE;QACzC,OAAO,aAAa,CAAC;KACtB;IAED,OAAO,mBAAmB,CAAC;AAC7B,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,WAAmB;IACvD,IAAI,WAAW,KAAK,OAAO,IAAI,WAAW,KAAK,UAAU,EAAE;QACzD,OAAO,oBAAoB,CAAC;KAC7B;SAAM,IAAI,WAAW,KAAK,UAAU,EAAE;QACrC,OAAO,oBAAoB,CAAC;KAC7B;SAAM,IAAI,WAAW,KAAK,OAAO,EAAE;QAClC,OAAO,iBAAiB,CAAC;KAC1B;SAAM,IAAI,WAAW,KAAK,cAAc,EAAE;QACzC,OAAO,cAAc,CAAC;KACvB;IAED,OAAO,mBAAmB,CAAC;AAC7B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Typography } from '@fluentui-react-native/theme-types';
2
+ export declare function win32Typography(): Typography;
3
+ //# sourceMappingURL=getThemeTypography.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getThemeTypography.d.ts","sourceRoot":"","sources":["../src/getThemeTypography.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAY,MAAM,oCAAoC,CAAC;AAI/E,wBAAgB,eAAe,IAAI,UAAU,CAiC5C"}
@@ -0,0 +1,22 @@
1
+ import { __assign } from "tslib";
2
+ import { defaultFluentTheme } from '@fluentui-react-native/default-theme';
3
+ import { createFontAliasTokens } from './createFontAliasTokens';
4
+ export function win32Typography() {
5
+ var win32Dict = {
6
+ sizes: defaultFluentTheme.typography.sizes,
7
+ weights: defaultFluentTheme.typography.weights,
8
+ // hard coded until we support new fontFamily format
9
+ families: {
10
+ primary: 'Segoe UI',
11
+ secondary: 'Segoe UI Semibold',
12
+ cursive: 'System',
13
+ monospace: 'Consolas',
14
+ sansSerif: 'System',
15
+ serif: 'System',
16
+ numeric: 'Bahnschrift',
17
+ },
18
+ variants: __assign({ captionStandard: { face: 'primary', size: 'caption', weight: 'regular' }, secondaryStandard: { face: 'primary', size: 'secondary', weight: 'regular' }, secondarySemibold: { face: 'primary', size: 'secondary', weight: 'semiBold' }, bodyStandard: { face: 'primary', size: 'body', weight: 'regular' }, bodySemibold: { face: 'primary', size: 'body', weight: 'semiBold' }, subheaderStandard: { face: 'primary', size: 'subheader', weight: 'regular' }, subheaderSemibold: { face: 'primary', size: 'subheader', weight: 'semiBold' }, headerStandard: { face: 'primary', size: 'header', weight: 'regular' }, headerSemibold: { face: 'primary', size: 'header', weight: 'semiBold' }, heroStandard: { face: 'primary', size: 'hero', weight: 'regular' }, heroSemibold: { face: 'primary', size: 'hero', weight: 'semiBold' }, heroLargeStandard: { face: 'primary', size: 'heroLarge', weight: 'regular' }, heroLargeSemibold: { face: 'primary', size: 'heroLarge', weight: 'semiBold' } }, createFontAliasTokens()),
19
+ };
20
+ return win32Dict;
21
+ }
22
+ //# sourceMappingURL=getThemeTypography.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getThemeTypography.js","sourceRoot":"","sources":["../src/getThemeTypography.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAG1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,MAAM,UAAU,eAAe;IAC7B,IAAM,SAAS,GAAG;QAChB,KAAK,EAAE,kBAAkB,CAAC,UAAU,CAAC,KAAK;QAC1C,OAAO,EAAE,kBAAkB,CAAC,UAAU,CAAC,OAAO;QAC9C,oDAAoD;QACpD,QAAQ,EAAE;YACR,OAAO,EAAE,UAAU;YACnB,SAAS,EAAE,mBAAmB;YAC9B,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,UAAU;YACrB,SAAS,EAAE,QAAQ;YACnB,KAAK,EAAE,QAAQ;YACf,OAAO,EAAE,aAAa;SACvB;QACD,QAAQ,EAAE,WACR,eAAe,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,EACxE,iBAAiB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,EAC5E,iBAAiB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,EAC7E,YAAY,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,EAClE,YAAY,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,EACnE,iBAAiB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,EAC5E,iBAAiB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,EAC7E,cAAc,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,EACtE,cAAc,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,EACvE,YAAY,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,EAClE,YAAY,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,EACnE,iBAAiB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,EAC5E,iBAAiB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,IAC1E,qBAAqB,EAAE,CACf;KACd,CAAC;IAEF,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const hcAliasTokens: any;
2
+ //# sourceMappingURL=tokens-alias.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokens-alias.d.ts","sourceRoot":"","sources":["../../src/highContrast/tokens-alias.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa,KAAkC,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { PlatformColor } from 'react-native';
2
+ import aliasTokens from '@fluentui-react-native/design-tokens-win32/hc/tokens-aliases.json';
3
+ export var hcAliasTokens = processAliasTokens(aliasTokens);
4
+ function processAliasTokens(aliasTokens) {
5
+ for (var key in aliasTokens) {
6
+ for (var innerKey in aliasTokens[key]) {
7
+ var entry = aliasTokens[key][innerKey];
8
+ if (typeof entry === 'string' && entry.includes('PlatformColor')) {
9
+ var color = entry.substring(14, entry.length - 1);
10
+ aliasTokens[key][innerKey] = PlatformColor(color);
11
+ }
12
+ }
13
+ }
14
+ return aliasTokens;
15
+ }
16
+ //# sourceMappingURL=tokens-alias.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokens-alias.js","sourceRoot":"","sources":["../../src/highContrast/tokens-alias.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,WAAW,MAAM,mEAAmE,CAAC;AAE5F,MAAM,CAAC,IAAM,aAAa,GAAG,kBAAkB,CAAC,WAAW,CAAC,CAAC;AAE7D,SAAS,kBAAkB,CAAC,WAAgB;IAC1C,KAAK,IAAM,GAAG,IAAI,WAAW,EAAE;QAC7B,KAAK,IAAM,QAAQ,IAAI,WAAW,CAAC,GAAG,CAAC,EAAE;YACvC,IAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC;YACzC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE;gBAChE,IAAM,KAAK,GAAG,KAAK,CAAC,SAAS,CAAC,EAAE,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;gBACpD,WAAW,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;aACnD;SACF;KACF;IAED,OAAO,WAAW,CAAC;AACrB,CAAC"}
package/lib/index.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ export { createOfficeTheme } from './createOfficeTheme';
2
+ export { createPartialOfficeTheme } from './createPartialOfficeTheme';
3
+ export { fallbackGetPalette, fallbackOfficeModule, getThemingModule } from './NativeModule/index';
4
+ export type { CxxException, IEventEmitter, NativeColorNames, NativeColorRamps, OfficeThemingModule, PlatformDefaultsChangedArgs, PlatformDefaultsChangedCallback, } from './NativeModule/index';
5
+ export { paletteFromOfficeColors } from './paletteFromOfficeColors';
6
+ export { createOfficeColorAliasTokens as createOfficeAliasTokens } from './createOfficeAliasTokens';
7
+ export { createFontAliasTokens } from './createFontAliasTokens';
8
+ export { createBrandedThemeWithAlias, getCurrentBrandAliasTokens } from './createBrandedThemeWithAlias';
9
+ export { win32Typography } from './getThemeTypography';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAClG,YAAY,EACV,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,2BAA2B,EAC3B,+BAA+B,GAChC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,4BAA4B,IAAI,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpG,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,2BAA2B,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AACxG,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC"}
package/lib/index.js ADDED
@@ -0,0 +1,9 @@
1
+ export { createOfficeTheme } from './createOfficeTheme';
2
+ export { createPartialOfficeTheme } from './createPartialOfficeTheme';
3
+ export { fallbackGetPalette, fallbackOfficeModule, getThemingModule } from './NativeModule/index';
4
+ export { paletteFromOfficeColors } from './paletteFromOfficeColors';
5
+ export { createOfficeColorAliasTokens as createOfficeAliasTokens } from './createOfficeAliasTokens';
6
+ export { createFontAliasTokens } from './createFontAliasTokens';
7
+ export { createBrandedThemeWithAlias, getCurrentBrandAliasTokens } from './createBrandedThemeWithAlias';
8
+ export { win32Typography } from './getThemeTypography';
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAUlG,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,4BAA4B,IAAI,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpG,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,2BAA2B,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AACxG,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Palette, OfficePalette } from '@fluentui-react-native/theme-types';
2
+ export declare function paletteFromOfficeColors(p: OfficePalette): Palette;
3
+ //# sourceMappingURL=paletteFromOfficeColors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paletteFromOfficeColors.d.ts","sourceRoot":"","sources":["../src/paletteFromOfficeColors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAEjF,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,aAAa,GAAG,OAAO,CA2LjE"}