@fluentui-react-native/win32-theme 0.16.4 → 0.19.0
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.
- package/CHANGELOG.json +105 -1
- package/CHANGELOG.md +33 -2
- package/lib/createFontAliasTokens.d.ts +5 -0
- package/lib/createFontAliasTokens.d.ts.map +1 -0
- package/lib/createFontAliasTokens.js +9 -0
- package/lib/createFontAliasTokens.js.map +1 -0
- package/lib/createOfficeAliasTokens.d.ts +5 -3
- package/lib/createOfficeAliasTokens.d.ts.map +1 -1
- package/lib/createOfficeAliasTokens.js +9 -4
- package/lib/createOfficeAliasTokens.js.map +1 -1
- package/lib/createOfficeTheme.d.ts.map +1 -1
- package/lib/createOfficeTheme.js +18 -3
- package/lib/createOfficeTheme.js.map +1 -1
- package/lib/getOfficeTokens.d.ts +379 -0
- package/lib/getOfficeTokens.d.ts.map +1 -0
- package/lib/getOfficeTokens.js +39 -0
- package/lib/getOfficeTokens.js.map +1 -0
- package/lib/getThemeTypography.d.ts +3 -0
- package/lib/getThemeTypography.d.ts.map +1 -0
- package/lib/getThemeTypography.js +22 -0
- package/lib/getThemeTypography.js.map +1 -0
- package/lib/index.d.ts +3 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +3 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/createFontAliasTokens.d.ts +5 -0
- package/lib-commonjs/createFontAliasTokens.d.ts.map +1 -0
- package/lib-commonjs/createFontAliasTokens.js +12 -0
- package/lib-commonjs/createFontAliasTokens.js.map +1 -0
- package/lib-commonjs/createOfficeAliasTokens.d.ts +5 -3
- package/lib-commonjs/createOfficeAliasTokens.d.ts.map +1 -1
- package/lib-commonjs/createOfficeAliasTokens.js +10 -5
- package/lib-commonjs/createOfficeAliasTokens.js.map +1 -1
- package/lib-commonjs/createOfficeTheme.d.ts.map +1 -1
- package/lib-commonjs/createOfficeTheme.js +17 -2
- package/lib-commonjs/createOfficeTheme.js.map +1 -1
- package/lib-commonjs/getOfficeTokens.d.ts +379 -0
- package/lib-commonjs/getOfficeTokens.d.ts.map +1 -0
- package/lib-commonjs/getOfficeTokens.js +45 -0
- package/lib-commonjs/getOfficeTokens.js.map +1 -0
- package/lib-commonjs/getThemeTypography.d.ts +3 -0
- package/lib-commonjs/getThemeTypography.d.ts.map +1 -0
- package/lib-commonjs/getThemeTypography.js +26 -0
- package/lib-commonjs/getThemeTypography.js.map +1 -0
- package/lib-commonjs/index.d.ts +3 -1
- package/lib-commonjs/index.d.ts.map +1 -1
- package/lib-commonjs/index.js +6 -2
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +7 -7
- package/src/createFontAliasTokens.ts +11 -0
- package/src/createOfficeAliasTokens.ts +12 -5
- package/src/createOfficeTheme.ts +20 -3
- package/src/getOfficeTokens.ts +36 -0
- package/src/getThemeTypography.ts +38 -0
- package/src/index.ts +3 -1
- package/lib/getOfficeAliasTokens.d.ts +0 -2
- package/lib/getOfficeAliasTokens.d.ts.map +0 -1
- package/lib/getOfficeAliasTokens.js +0 -20
- package/lib/getOfficeAliasTokens.js.map +0 -1
- package/lib-commonjs/getOfficeAliasTokens.d.ts +0 -2
- package/lib-commonjs/getOfficeAliasTokens.d.ts.map +0 -1
- package/lib-commonjs/getOfficeAliasTokens.js +0 -25
- package/lib-commonjs/getOfficeAliasTokens.js.map +0 -1
- package/src/getOfficeAliasTokens.ts +0 -18
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,111 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/win32-theme",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Wed, 25 May 2022 18:41:24 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/win32-theme_v0.19.0",
|
|
7
|
+
"version": "0.19.0",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "krsiler@microsoft.com",
|
|
12
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
13
|
+
"commit": "f4e881a5caef5a8258094f2a2ba674c62321886d",
|
|
14
|
+
"comment": "beachball sync"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "krsiler@microsoft.com",
|
|
18
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
19
|
+
"commit": "7d1c5dba49eb5da6c18681b8c9295c7fa0d0353b",
|
|
20
|
+
"comment": "Version bump for packages to attempt to fix NPM publish pipeline"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"minor": [
|
|
24
|
+
{
|
|
25
|
+
"author": "email not defined",
|
|
26
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
27
|
+
"commit": "18480e3fdf2038a34147995f413a45d14f012a73",
|
|
28
|
+
"comment": "Add text implementation v2"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"author": "beachball",
|
|
32
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
33
|
+
"comment": "Bump @fluentui-react-native/default-theme to v0.13.0",
|
|
34
|
+
"commit": "f4e881a5caef5a8258094f2a2ba674c62321886d"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"author": "beachball",
|
|
38
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
39
|
+
"comment": "Bump @fluentui-react-native/theme-tokens to v0.18.0",
|
|
40
|
+
"commit": "f4e881a5caef5a8258094f2a2ba674c62321886d"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"author": "beachball",
|
|
44
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
45
|
+
"comment": "Bump @fluentui-react-native/theme-types to v0.17.0",
|
|
46
|
+
"commit": "f4e881a5caef5a8258094f2a2ba674c62321886d"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"author": "beachball",
|
|
50
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
51
|
+
"comment": "Bump @fluentui-react-native/theme to v0.6.11",
|
|
52
|
+
"commit": "f4e881a5caef5a8258094f2a2ba674c62321886d"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"author": "beachball",
|
|
56
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
57
|
+
"comment": "Bump @fluentui-react-native/theming-utils to v0.13.0",
|
|
58
|
+
"commit": "f4e881a5caef5a8258094f2a2ba674c62321886d"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"date": "Sat, 21 May 2022 01:47:58 GMT",
|
|
65
|
+
"tag": "@fluentui-react-native/win32-theme_v0.17.0",
|
|
66
|
+
"version": "0.17.0",
|
|
67
|
+
"comments": {
|
|
68
|
+
"minor": [
|
|
69
|
+
{
|
|
70
|
+
"author": "ruaraki@microsoft.com",
|
|
71
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
72
|
+
"commit": "3fdd5fccdcd5e76c90bac7ad2fa436917b1c84e0",
|
|
73
|
+
"comment": "Add shadows to win32"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"author": "beachball",
|
|
77
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
78
|
+
"comment": "Bump @fluentui-react-native/default-theme to v0.11.0",
|
|
79
|
+
"commit": "36ea0d81629f9326eb8c23912d9949381014dade"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"author": "beachball",
|
|
83
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
84
|
+
"comment": "Bump @fluentui-react-native/theme-tokens to v0.16.3",
|
|
85
|
+
"commit": "36ea0d81629f9326eb8c23912d9949381014dade"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"author": "beachball",
|
|
89
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
90
|
+
"comment": "Bump @fluentui-react-native/theme-types to v0.15.0",
|
|
91
|
+
"commit": "36ea0d81629f9326eb8c23912d9949381014dade"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"author": "beachball",
|
|
95
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
96
|
+
"comment": "Bump @fluentui-react-native/theme to v0.6.9",
|
|
97
|
+
"commit": "36ea0d81629f9326eb8c23912d9949381014dade"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"author": "beachball",
|
|
101
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
102
|
+
"comment": "Bump @fluentui-react-native/theming-utils to v0.11.0",
|
|
103
|
+
"commit": "36ea0d81629f9326eb8c23912d9949381014dade"
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"date": "Thu, 28 Apr 2022 19:09:51 GMT",
|
|
6
110
|
"tag": "@fluentui-react-native/win32-theme_v0.16.4",
|
|
7
111
|
"version": "0.16.4",
|
|
8
112
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,43 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/win32-theme
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 25 May 2022 18:41:24 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.19.0
|
|
8
|
+
|
|
9
|
+
Wed, 25 May 2022 18:41:24 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- Add text implementation v2 (email not defined)
|
|
14
|
+
- Bump @fluentui-react-native/default-theme to v0.13.0
|
|
15
|
+
- Bump @fluentui-react-native/theme-tokens to v0.18.0
|
|
16
|
+
- Bump @fluentui-react-native/theme-types to v0.17.0
|
|
17
|
+
- Bump @fluentui-react-native/theme to v0.6.11
|
|
18
|
+
- Bump @fluentui-react-native/theming-utils to v0.13.0
|
|
19
|
+
|
|
20
|
+
### Patches
|
|
21
|
+
|
|
22
|
+
- beachball sync (krsiler@microsoft.com)
|
|
23
|
+
- Version bump for packages to attempt to fix NPM publish pipeline (krsiler@microsoft.com)
|
|
24
|
+
|
|
25
|
+
## 0.17.0
|
|
26
|
+
|
|
27
|
+
Sat, 21 May 2022 01:47:58 GMT
|
|
28
|
+
|
|
29
|
+
### Minor changes
|
|
30
|
+
|
|
31
|
+
- Add shadows to win32 (ruaraki@microsoft.com)
|
|
32
|
+
- Bump @fluentui-react-native/default-theme to v0.11.0
|
|
33
|
+
- Bump @fluentui-react-native/theme-tokens to v0.16.3
|
|
34
|
+
- Bump @fluentui-react-native/theme-types to v0.15.0
|
|
35
|
+
- Bump @fluentui-react-native/theme to v0.6.9
|
|
36
|
+
- Bump @fluentui-react-native/theming-utils to v0.11.0
|
|
37
|
+
|
|
7
38
|
## 0.16.4
|
|
8
39
|
|
|
9
|
-
Thu, 28 Apr 2022 19:
|
|
40
|
+
Thu, 28 Apr 2022 19:09:51 GMT
|
|
10
41
|
|
|
11
42
|
### Patches
|
|
12
43
|
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Variants } from '@fluentui-react-native/theme-types';
|
|
2
|
+
declare function createFontAliasTokensWorker(): Partial<Variants>;
|
|
3
|
+
export declare const createFontAliasTokens: typeof createFontAliasTokensWorker;
|
|
4
|
+
export {};
|
|
5
|
+
//# sourceMappingURL=createFontAliasTokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createFontAliasTokens.d.ts","sourceRoot":"","sources":["../src/createFontAliasTokens.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAI9D,iBAAS,2BAA2B,IAAI,OAAO,CAAC,QAAQ,CAAC,CAGxD;AAED,eAAO,MAAM,qBAAqB,oCAAuC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { getOfficeAliasTokens } from './getOfficeTokens';
|
|
2
|
+
import { memoize } from '@fluentui-react-native/memo-cache';
|
|
3
|
+
import { mapFontPipelineToTheme } from '@fluentui-react-native/theming-utils';
|
|
4
|
+
function createFontAliasTokensWorker() {
|
|
5
|
+
var aliasTokens = getOfficeAliasTokens('Colorful');
|
|
6
|
+
return mapFontPipelineToTheme(aliasTokens);
|
|
7
|
+
}
|
|
8
|
+
export var createFontAliasTokens = memoize(createFontAliasTokensWorker);
|
|
9
|
+
//# sourceMappingURL=createFontAliasTokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createFontAliasTokens.js","sourceRoot":"","sources":["../src/createFontAliasTokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEzD,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAE9E,SAAS,2BAA2B;IAClC,IAAM,WAAW,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAC;IACrD,OAAO,sBAAsB,CAAC,WAAW,CAAC,CAAC;AAC7C,CAAC;AAED,MAAM,CAAC,IAAM,qBAAqB,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { AliasColorTokens } from '@fluentui-react-native/theme-types';
|
|
2
|
-
declare function
|
|
3
|
-
export declare const
|
|
1
|
+
import { AliasColorTokens, ThemeShadowDefinition } from '@fluentui-react-native/theme-types';
|
|
2
|
+
declare function createOfficeColorAliasTokensWorker(officeTheme: string): AliasColorTokens;
|
|
3
|
+
export declare const createOfficeColorAliasTokens: typeof createOfficeColorAliasTokensWorker;
|
|
4
|
+
declare function createOfficeShadowAliasTokensWorker(officeTheme: string): ThemeShadowDefinition;
|
|
5
|
+
export declare const createOfficeShadowAliasTokens: typeof createOfficeShadowAliasTokensWorker;
|
|
4
6
|
export {};
|
|
5
7
|
//# sourceMappingURL=createOfficeAliasTokens.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOfficeAliasTokens.d.ts","sourceRoot":"","sources":["../src/createOfficeAliasTokens.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"createOfficeAliasTokens.d.ts","sourceRoot":"","sources":["../src/createOfficeAliasTokens.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAI7F,iBAAS,kCAAkC,CAAC,WAAW,EAAE,MAAM,GAAG,gBAAgB,CAGjF;AAED,eAAO,MAAM,4BAA4B,2CAA8C,CAAC;AAExF,iBAAS,mCAAmC,CAAC,WAAW,EAAE,MAAM,GAAG,qBAAqB,CAGvF;AAED,eAAO,MAAM,6BAA6B,4CAA+C,CAAC"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import { getOfficeAliasTokens } from './
|
|
1
|
+
import { getOfficeAliasTokens, getOfficeShadowTokens } from './getOfficeTokens';
|
|
2
2
|
import { memoize } from '@fluentui-react-native/memo-cache';
|
|
3
|
-
import { mapPipelineToTheme } from '@fluentui-react-native/theming-utils';
|
|
4
|
-
function
|
|
3
|
+
import { mapPipelineToShadow, mapPipelineToTheme } from '@fluentui-react-native/theming-utils';
|
|
4
|
+
function createOfficeColorAliasTokensWorker(officeTheme) {
|
|
5
5
|
var aliasTokens = getOfficeAliasTokens(officeTheme);
|
|
6
6
|
return mapPipelineToTheme(aliasTokens);
|
|
7
7
|
}
|
|
8
|
-
export var
|
|
8
|
+
export var createOfficeColorAliasTokens = memoize(createOfficeColorAliasTokensWorker);
|
|
9
|
+
function createOfficeShadowAliasTokensWorker(officeTheme) {
|
|
10
|
+
var aliasTokens = getOfficeShadowTokens(officeTheme);
|
|
11
|
+
return mapPipelineToShadow(aliasTokens);
|
|
12
|
+
}
|
|
13
|
+
export var createOfficeShadowAliasTokens = memoize(createOfficeShadowAliasTokensWorker);
|
|
9
14
|
//# sourceMappingURL=createOfficeAliasTokens.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOfficeAliasTokens.js","sourceRoot":"","sources":["../src/createOfficeAliasTokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"createOfficeAliasTokens.js","sourceRoot":"","sources":["../src/createOfficeAliasTokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAEhF,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE/F,SAAS,kCAAkC,CAAC,WAAmB;IAC7D,IAAM,WAAW,GAAG,oBAAoB,CAAC,WAAW,CAAC,CAAC;IACtD,OAAO,kBAAkB,CAAC,WAAW,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,CAAC,IAAM,4BAA4B,GAAG,OAAO,CAAC,kCAAkC,CAAC,CAAC;AAExF,SAAS,mCAAmC,CAAC,WAAmB;IAC9D,IAAM,WAAW,GAAG,qBAAqB,CAAC,WAAW,CAAC,CAAC;IACvD,OAAO,mBAAmB,CAAC,WAAW,CAAC,CAAC;AAC1C,CAAC;AAED,MAAM,CAAC,IAAM,6BAA6B,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOfficeTheme.d.ts","sourceRoot":"","sources":["../src/createOfficeTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAI9D,OAAO,EAAwB,YAAY,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"createOfficeTheme.d.ts","sourceRoot":"","sources":["../src/createOfficeTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAI9D,OAAO,EAAwB,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAYxF;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,GAAE,YAAiB,GAAG,cAAc,CAwD5E"}
|
package/lib/createOfficeTheme.js
CHANGED
|
@@ -3,9 +3,10 @@ import { ThemeReference } from '@fluentui-react-native/theme';
|
|
|
3
3
|
import { createDefaultTheme } from '@fluentui-react-native/default-theme';
|
|
4
4
|
import { getThemingModule } from './NativeModule/getThemingModule';
|
|
5
5
|
import { createPartialOfficeTheme } from './createPartialOfficeTheme';
|
|
6
|
-
import {
|
|
6
|
+
import { createOfficeColorAliasTokens, createOfficeShadowAliasTokens } from './createOfficeAliasTokens';
|
|
7
7
|
import { createBrandedThemeWithAlias } from './createBrandedThemeWithAlias';
|
|
8
8
|
import { createAliasesFromPalette } from './createAliasesFromPalette';
|
|
9
|
+
import { win32Typography } from './getThemeTypography';
|
|
9
10
|
function handlePaletteCall(palette) {
|
|
10
11
|
var exception = palette;
|
|
11
12
|
return exception && exception.message !== undefined ? undefined : palette;
|
|
@@ -32,14 +33,28 @@ export function createOfficeTheme(options) {
|
|
|
32
33
|
if (!ref.themeName || ref.themeName === '') {
|
|
33
34
|
return {};
|
|
34
35
|
}
|
|
35
|
-
return {
|
|
36
|
+
return {
|
|
37
|
+
shadows: __assign({}, createOfficeShadowAliasTokens(ref.themeName)),
|
|
38
|
+
typography: win32Typography(),
|
|
39
|
+
};
|
|
40
|
+
}, function () {
|
|
41
|
+
if (!ref.themeName || ref.themeName === '') {
|
|
42
|
+
return {};
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
colors: __assign({}, createOfficeColorAliasTokens(ref.themeName)),
|
|
46
|
+
typography: win32Typography(),
|
|
47
|
+
};
|
|
36
48
|
}, function (theme) {
|
|
37
49
|
return createBrandedThemeWithAlias(ref.themeName, theme);
|
|
38
50
|
}, function (theme) {
|
|
39
51
|
if (!theme.host.palette) {
|
|
40
52
|
return {};
|
|
41
53
|
}
|
|
42
|
-
return {
|
|
54
|
+
return {
|
|
55
|
+
colors: createAliasesFromPalette(theme.host.palette, ref.themeName === 'HighContrast'),
|
|
56
|
+
typography: win32Typography(),
|
|
57
|
+
};
|
|
43
58
|
});
|
|
44
59
|
// set up the callback for theme changes on the native side
|
|
45
60
|
var onPlatformDefaultsChanged = function (args) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOfficeTheme.js","sourceRoot":"","sources":["../src/createOfficeTheme.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAGnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"createOfficeTheme.js","sourceRoot":"","sources":["../src/createOfficeTheme.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
export declare function getOfficeAliasTokens(officeTheme: string): any;
|
|
2
|
+
export declare function getOfficeShadowTokens(officeTheme: string): {
|
|
3
|
+
body1: {
|
|
4
|
+
fontFamily: string;
|
|
5
|
+
fontLineHeight: number;
|
|
6
|
+
fontSize: number;
|
|
7
|
+
fontWeight: string;
|
|
8
|
+
};
|
|
9
|
+
body1Strong: {
|
|
10
|
+
fontFamily: string;
|
|
11
|
+
fontLineHeight: number;
|
|
12
|
+
fontSize: number;
|
|
13
|
+
fontWeight: string;
|
|
14
|
+
};
|
|
15
|
+
body2: {
|
|
16
|
+
fontFamily: string;
|
|
17
|
+
fontLineHeight: number;
|
|
18
|
+
fontSize: number;
|
|
19
|
+
fontWeight: string;
|
|
20
|
+
};
|
|
21
|
+
body2Strong: {
|
|
22
|
+
fontFamily: string;
|
|
23
|
+
fontLineHeight: number;
|
|
24
|
+
fontSize: number;
|
|
25
|
+
fontWeight: string;
|
|
26
|
+
};
|
|
27
|
+
brandBackground: {
|
|
28
|
+
fillColorRest: string;
|
|
29
|
+
fillColorHover: string;
|
|
30
|
+
fillColorPressed: string;
|
|
31
|
+
fillColorSelected: string;
|
|
32
|
+
};
|
|
33
|
+
brandBackground2: {
|
|
34
|
+
fillColorRest: string;
|
|
35
|
+
};
|
|
36
|
+
brandBackgroundStatic: {
|
|
37
|
+
fillColorRest: string;
|
|
38
|
+
};
|
|
39
|
+
brandForeground1: {
|
|
40
|
+
fillColorRest: string;
|
|
41
|
+
};
|
|
42
|
+
brandForeground2: {
|
|
43
|
+
fillColorRest: string;
|
|
44
|
+
};
|
|
45
|
+
brandForegroundLink: {
|
|
46
|
+
fillColorRest: string;
|
|
47
|
+
fillColorHover: string;
|
|
48
|
+
fillColorPressed: string;
|
|
49
|
+
fillColorSelected: string;
|
|
50
|
+
};
|
|
51
|
+
brandStroke1: {
|
|
52
|
+
strokeColorRest: string;
|
|
53
|
+
strokeWidth: number;
|
|
54
|
+
};
|
|
55
|
+
brandStroke2: {
|
|
56
|
+
strokeColorRest: string;
|
|
57
|
+
strokeWidth: number;
|
|
58
|
+
};
|
|
59
|
+
caption1: {
|
|
60
|
+
fontFamily: string;
|
|
61
|
+
fontLineHeight: number;
|
|
62
|
+
fontSize: number;
|
|
63
|
+
fontWeight: string;
|
|
64
|
+
};
|
|
65
|
+
compoundBrandBackground1: {
|
|
66
|
+
fillColorRest: string;
|
|
67
|
+
fillColorHover: string;
|
|
68
|
+
fillColorPressed: string;
|
|
69
|
+
};
|
|
70
|
+
compoundBrandForeground1: {
|
|
71
|
+
fillColorRest: string;
|
|
72
|
+
fillColorHover: string;
|
|
73
|
+
fillColorPressed: string;
|
|
74
|
+
};
|
|
75
|
+
compoundBrandStroke1: {
|
|
76
|
+
strokeColorRest: string;
|
|
77
|
+
strokeColorHover: string;
|
|
78
|
+
strokeColorPressed: string;
|
|
79
|
+
strokeWidth: number;
|
|
80
|
+
};
|
|
81
|
+
display: {
|
|
82
|
+
fontFamily: string;
|
|
83
|
+
fontLineHeight: number;
|
|
84
|
+
fontSize: number;
|
|
85
|
+
fontWeight: string;
|
|
86
|
+
};
|
|
87
|
+
largeTitle: {
|
|
88
|
+
fontFamily: string;
|
|
89
|
+
fontLineHeight: number;
|
|
90
|
+
fontSize: number;
|
|
91
|
+
fontWeight: string;
|
|
92
|
+
};
|
|
93
|
+
neutralBackground1: {
|
|
94
|
+
fillColorRest: string;
|
|
95
|
+
fillColorHover: string;
|
|
96
|
+
fillColorPressed: string;
|
|
97
|
+
fillColorSelected: string;
|
|
98
|
+
};
|
|
99
|
+
neutralBackground2: {
|
|
100
|
+
fillColorRest: string;
|
|
101
|
+
fillColorHover: string;
|
|
102
|
+
fillColorPressed: string;
|
|
103
|
+
fillColorSelected: string;
|
|
104
|
+
};
|
|
105
|
+
neutralBackground3: {
|
|
106
|
+
fillColorRest: string;
|
|
107
|
+
fillColorHover: string;
|
|
108
|
+
fillColorPressed: string;
|
|
109
|
+
fillColorSelected: string;
|
|
110
|
+
};
|
|
111
|
+
neutralBackground4: {
|
|
112
|
+
fillColorRest: string;
|
|
113
|
+
fillColorHover: string;
|
|
114
|
+
fillColorPressed: string;
|
|
115
|
+
fillColorSelected: string;
|
|
116
|
+
};
|
|
117
|
+
neutralBackground5: {
|
|
118
|
+
fillColorRest: string;
|
|
119
|
+
fillColorHover: string;
|
|
120
|
+
fillColorPressed: string;
|
|
121
|
+
fillColorSelected: string;
|
|
122
|
+
};
|
|
123
|
+
neutralBackground6: {
|
|
124
|
+
fillColorRest: string;
|
|
125
|
+
};
|
|
126
|
+
neutralBackgroundDisabled: {
|
|
127
|
+
fillColorRest: string;
|
|
128
|
+
};
|
|
129
|
+
neutralBackgroundInverted: {
|
|
130
|
+
fillColorRest: string;
|
|
131
|
+
};
|
|
132
|
+
neutralForeground1: {
|
|
133
|
+
fillColorRest: string;
|
|
134
|
+
fillColorHover: string;
|
|
135
|
+
fillColorPressed: string;
|
|
136
|
+
fillColorSelected: string;
|
|
137
|
+
};
|
|
138
|
+
neutralForeground2: {
|
|
139
|
+
fillColorRest: string;
|
|
140
|
+
fillColorHover: string;
|
|
141
|
+
fillColorPressed: string;
|
|
142
|
+
fillColorBrandHover: string;
|
|
143
|
+
fillColorBrandPressed: string;
|
|
144
|
+
fillColorBrandSelected: string;
|
|
145
|
+
fillColorSelected: string;
|
|
146
|
+
};
|
|
147
|
+
neutralForeground3: {
|
|
148
|
+
fillColorRest: string;
|
|
149
|
+
fillColorHover: string;
|
|
150
|
+
fillColorPressed: string;
|
|
151
|
+
fillColorBrandHover: string;
|
|
152
|
+
fillColorBrandPressed: string;
|
|
153
|
+
fillColorBrandSelected: string;
|
|
154
|
+
fillColorSelected: string;
|
|
155
|
+
};
|
|
156
|
+
neutralForeground4: {
|
|
157
|
+
fillColorRest: string;
|
|
158
|
+
};
|
|
159
|
+
neutralForegroundDisabled: {
|
|
160
|
+
fillColorRest: string;
|
|
161
|
+
};
|
|
162
|
+
neutralForegroundInverted: {
|
|
163
|
+
fillColorRest: string;
|
|
164
|
+
};
|
|
165
|
+
neutralForegroundInvertedLink: {
|
|
166
|
+
fillColorRest: string;
|
|
167
|
+
fillColorHover: string;
|
|
168
|
+
fillColorPressed: string;
|
|
169
|
+
fillColorSelected: string;
|
|
170
|
+
};
|
|
171
|
+
neutralForegroundOnBrand: {
|
|
172
|
+
fillColorRest: string;
|
|
173
|
+
fillColorHover: string;
|
|
174
|
+
fillColorPressed: string;
|
|
175
|
+
fillColorSelected: string;
|
|
176
|
+
};
|
|
177
|
+
neutralStencil1: {
|
|
178
|
+
fillColorRest: string;
|
|
179
|
+
};
|
|
180
|
+
neutralStencil2: {
|
|
181
|
+
fillColorRest: string;
|
|
182
|
+
};
|
|
183
|
+
neutralStroke1: {
|
|
184
|
+
strokeColorRest: string;
|
|
185
|
+
strokeColorHover: string;
|
|
186
|
+
strokeColorPressed: string;
|
|
187
|
+
strokeColorSelected: string;
|
|
188
|
+
strokeWidth: number;
|
|
189
|
+
};
|
|
190
|
+
neutralStroke2: {
|
|
191
|
+
strokeColorRest: string;
|
|
192
|
+
strokeWidth: number;
|
|
193
|
+
};
|
|
194
|
+
neutralStroke3: {
|
|
195
|
+
strokeColorRest: string;
|
|
196
|
+
strokeWidth: number;
|
|
197
|
+
};
|
|
198
|
+
neutralStrokeAccessible: {
|
|
199
|
+
strokeColorRest: string;
|
|
200
|
+
strokeColorHover: string;
|
|
201
|
+
strokeColorPressed: string;
|
|
202
|
+
strokeColorSelected: string;
|
|
203
|
+
strokeWidth: number;
|
|
204
|
+
};
|
|
205
|
+
neutralStrokeDisabled: {
|
|
206
|
+
strokeColorRest: string;
|
|
207
|
+
strokeWidth: number;
|
|
208
|
+
};
|
|
209
|
+
redBackground1: {
|
|
210
|
+
fillColorRest: string;
|
|
211
|
+
};
|
|
212
|
+
redBackground2: {
|
|
213
|
+
fillColorRest: string;
|
|
214
|
+
};
|
|
215
|
+
redBackground3: {
|
|
216
|
+
fillColorRest: string;
|
|
217
|
+
};
|
|
218
|
+
redBorder1: {
|
|
219
|
+
strokeColorRest: string;
|
|
220
|
+
strokeWidth: number;
|
|
221
|
+
};
|
|
222
|
+
redBorder2: {
|
|
223
|
+
strokeColorRest: string;
|
|
224
|
+
strokeWidth: number;
|
|
225
|
+
};
|
|
226
|
+
redBorderActive: {
|
|
227
|
+
strokeColorRest: string;
|
|
228
|
+
strokeWidth: number;
|
|
229
|
+
};
|
|
230
|
+
redForeground1: {
|
|
231
|
+
fillColorRest: string;
|
|
232
|
+
};
|
|
233
|
+
redForeground2: {
|
|
234
|
+
fillColorRest: string;
|
|
235
|
+
};
|
|
236
|
+
redForeground3: {
|
|
237
|
+
fillColorRest: string;
|
|
238
|
+
};
|
|
239
|
+
strokeFocus1: {
|
|
240
|
+
strokeColorRest: string;
|
|
241
|
+
strokeWidth: number;
|
|
242
|
+
};
|
|
243
|
+
strokeFocus2: {
|
|
244
|
+
strokeColorRest: string;
|
|
245
|
+
strokeWidth: number;
|
|
246
|
+
};
|
|
247
|
+
subtitle1: {
|
|
248
|
+
fontFamily: string;
|
|
249
|
+
fontLineHeight: number;
|
|
250
|
+
fontSize: number;
|
|
251
|
+
fontWeight: string;
|
|
252
|
+
};
|
|
253
|
+
subtitle1Strong: {
|
|
254
|
+
fontFamily: string;
|
|
255
|
+
fontLineHeight: number;
|
|
256
|
+
fontSize: number;
|
|
257
|
+
fontWeight: string;
|
|
258
|
+
};
|
|
259
|
+
subtitle2: {
|
|
260
|
+
fontFamily: string;
|
|
261
|
+
fontLineHeight: number;
|
|
262
|
+
fontSize: number;
|
|
263
|
+
fontWeight: string;
|
|
264
|
+
};
|
|
265
|
+
subtitle2Strong: {
|
|
266
|
+
fontFamily: string;
|
|
267
|
+
fontLineHeight: number;
|
|
268
|
+
fontSize: number;
|
|
269
|
+
fontWeight: string;
|
|
270
|
+
};
|
|
271
|
+
subtleBackground: {
|
|
272
|
+
fillColorRest: string;
|
|
273
|
+
fillColorHover: string;
|
|
274
|
+
fillColorPressed: string;
|
|
275
|
+
fillColorSelected: string;
|
|
276
|
+
};
|
|
277
|
+
title1: {
|
|
278
|
+
fontFamily: string;
|
|
279
|
+
fontLineHeight: number;
|
|
280
|
+
fontSize: number;
|
|
281
|
+
fontWeight: string;
|
|
282
|
+
};
|
|
283
|
+
title1Strong: {
|
|
284
|
+
fontFamily: string;
|
|
285
|
+
fontLineHeight: number;
|
|
286
|
+
fontSize: number;
|
|
287
|
+
fontWeight: string;
|
|
288
|
+
};
|
|
289
|
+
transparentBackground: {
|
|
290
|
+
fillColorRest: string;
|
|
291
|
+
fillColorHover: string;
|
|
292
|
+
fillColorPressed: string;
|
|
293
|
+
fillColorSelected: string;
|
|
294
|
+
};
|
|
295
|
+
transparentStroke: {
|
|
296
|
+
strokeAlignment: string;
|
|
297
|
+
strokeColorRest: string;
|
|
298
|
+
strokeColorHover: string;
|
|
299
|
+
strokeColorPressed: string;
|
|
300
|
+
strokeColorDisabled: string;
|
|
301
|
+
strokeWidth: number;
|
|
302
|
+
};
|
|
303
|
+
} | {
|
|
304
|
+
"2": {
|
|
305
|
+
x: number;
|
|
306
|
+
y: number;
|
|
307
|
+
blur: number;
|
|
308
|
+
color: string;
|
|
309
|
+
}[];
|
|
310
|
+
"4": {
|
|
311
|
+
x: number;
|
|
312
|
+
y: number;
|
|
313
|
+
blur: number;
|
|
314
|
+
color: string;
|
|
315
|
+
}[];
|
|
316
|
+
"8": {
|
|
317
|
+
x: number;
|
|
318
|
+
y: number;
|
|
319
|
+
blur: number;
|
|
320
|
+
color: string;
|
|
321
|
+
}[];
|
|
322
|
+
"16": {
|
|
323
|
+
x: number;
|
|
324
|
+
y: number;
|
|
325
|
+
blur: number;
|
|
326
|
+
color: string;
|
|
327
|
+
}[];
|
|
328
|
+
"28": {
|
|
329
|
+
x: number;
|
|
330
|
+
y: number;
|
|
331
|
+
blur: number;
|
|
332
|
+
color: string;
|
|
333
|
+
}[];
|
|
334
|
+
"64": {
|
|
335
|
+
x: number;
|
|
336
|
+
y: number;
|
|
337
|
+
blur: number;
|
|
338
|
+
color: string;
|
|
339
|
+
}[];
|
|
340
|
+
brand: {
|
|
341
|
+
"2": {
|
|
342
|
+
x: number;
|
|
343
|
+
y: number;
|
|
344
|
+
blur: number;
|
|
345
|
+
color: string;
|
|
346
|
+
}[];
|
|
347
|
+
"4": {
|
|
348
|
+
x: number;
|
|
349
|
+
y: number;
|
|
350
|
+
blur: number;
|
|
351
|
+
color: string;
|
|
352
|
+
}[];
|
|
353
|
+
"8": {
|
|
354
|
+
x: number;
|
|
355
|
+
y: number;
|
|
356
|
+
blur: number;
|
|
357
|
+
color: string;
|
|
358
|
+
}[];
|
|
359
|
+
"16": {
|
|
360
|
+
x: number;
|
|
361
|
+
y: number;
|
|
362
|
+
blur: number;
|
|
363
|
+
color: string;
|
|
364
|
+
}[];
|
|
365
|
+
"28": {
|
|
366
|
+
x: number;
|
|
367
|
+
y: number;
|
|
368
|
+
blur: number;
|
|
369
|
+
color: string;
|
|
370
|
+
}[];
|
|
371
|
+
"64": {
|
|
372
|
+
x: number;
|
|
373
|
+
y: number;
|
|
374
|
+
blur: number;
|
|
375
|
+
color: string;
|
|
376
|
+
}[];
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
//# sourceMappingURL=getOfficeTokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getOfficeTokens.d.ts","sourceRoot":"","sources":["../src/getOfficeTokens.ts"],"names":[],"mappings":"AASA,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,OAYvD;AAED,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYxD"}
|