@fluentui-react-native/win32-theme 0.16.3 → 0.18.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 +124 -1
- package/CHANGELOG.md +39 -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,130 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/win32-theme",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Tue, 24 May 2022 16:52:57 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/win32-theme_v0.18.0",
|
|
7
|
+
"version": "0.18.0",
|
|
8
|
+
"comments": {
|
|
9
|
+
"minor": [
|
|
10
|
+
{
|
|
11
|
+
"author": "email not defined",
|
|
12
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
13
|
+
"commit": "18480e3fdf2038a34147995f413a45d14f012a73",
|
|
14
|
+
"comment": "Add text implementation v2"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
19
|
+
"comment": "Bump @fluentui-react-native/default-theme to v0.12.0",
|
|
20
|
+
"commit": "5bd1914cdd4f6afd58debbd904a5e0fa99c42fab"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "beachball",
|
|
24
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
25
|
+
"comment": "Bump @fluentui-react-native/theme-tokens to v0.17.0",
|
|
26
|
+
"commit": "5bd1914cdd4f6afd58debbd904a5e0fa99c42fab"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"author": "beachball",
|
|
30
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
31
|
+
"comment": "Bump @fluentui-react-native/theme-types to v0.16.0",
|
|
32
|
+
"commit": "5bd1914cdd4f6afd58debbd904a5e0fa99c42fab"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"author": "beachball",
|
|
36
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
37
|
+
"comment": "Bump @fluentui-react-native/theme to v0.6.10",
|
|
38
|
+
"commit": "5bd1914cdd4f6afd58debbd904a5e0fa99c42fab"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"author": "beachball",
|
|
42
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
43
|
+
"comment": "Bump @fluentui-react-native/theming-utils to v0.12.0",
|
|
44
|
+
"commit": "5bd1914cdd4f6afd58debbd904a5e0fa99c42fab"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"date": "Sat, 21 May 2022 01:47:58 GMT",
|
|
51
|
+
"tag": "@fluentui-react-native/win32-theme_v0.17.0",
|
|
52
|
+
"version": "0.17.0",
|
|
53
|
+
"comments": {
|
|
54
|
+
"minor": [
|
|
55
|
+
{
|
|
56
|
+
"author": "ruaraki@microsoft.com",
|
|
57
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
58
|
+
"commit": "3fdd5fccdcd5e76c90bac7ad2fa436917b1c84e0",
|
|
59
|
+
"comment": "Add shadows to win32"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"author": "beachball",
|
|
63
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
64
|
+
"comment": "Bump @fluentui-react-native/default-theme to v0.11.0",
|
|
65
|
+
"commit": "36ea0d81629f9326eb8c23912d9949381014dade"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"author": "beachball",
|
|
69
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
70
|
+
"comment": "Bump @fluentui-react-native/theme-tokens to v0.16.3",
|
|
71
|
+
"commit": "36ea0d81629f9326eb8c23912d9949381014dade"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"author": "beachball",
|
|
75
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
76
|
+
"comment": "Bump @fluentui-react-native/theme-types to v0.15.0",
|
|
77
|
+
"commit": "36ea0d81629f9326eb8c23912d9949381014dade"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"author": "beachball",
|
|
81
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
82
|
+
"comment": "Bump @fluentui-react-native/theme to v0.6.9",
|
|
83
|
+
"commit": "36ea0d81629f9326eb8c23912d9949381014dade"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"author": "beachball",
|
|
87
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
88
|
+
"comment": "Bump @fluentui-react-native/theming-utils to v0.11.0",
|
|
89
|
+
"commit": "36ea0d81629f9326eb8c23912d9949381014dade"
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"date": "Thu, 28 Apr 2022 19:09:51 GMT",
|
|
96
|
+
"tag": "@fluentui-react-native/win32-theme_v0.16.4",
|
|
97
|
+
"version": "0.16.4",
|
|
98
|
+
"comments": {
|
|
99
|
+
"patch": [
|
|
100
|
+
{
|
|
101
|
+
"author": "beachball",
|
|
102
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
103
|
+
"comment": "Bump @fluentui-react-native/default-theme to v0.10.3",
|
|
104
|
+
"commit": "8cff404ca31eaa61017551a1d73fd3fdae7da132"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"author": "beachball",
|
|
108
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
109
|
+
"comment": "Bump @fluentui-react-native/theme-types to v0.14.3",
|
|
110
|
+
"commit": "8cff404ca31eaa61017551a1d73fd3fdae7da132"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"author": "beachball",
|
|
114
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
115
|
+
"comment": "Bump @fluentui-react-native/theme to v0.6.8",
|
|
116
|
+
"commit": "8cff404ca31eaa61017551a1d73fd3fdae7da132"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"author": "beachball",
|
|
120
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
121
|
+
"comment": "Bump @fluentui-react-native/theming-utils to v0.10.2",
|
|
122
|
+
"commit": "8cff404ca31eaa61017551a1d73fd3fdae7da132"
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"date": "Wed, 27 Apr 2022 19:30:38 GMT",
|
|
6
129
|
"tag": "@fluentui-react-native/win32-theme_v0.16.3",
|
|
7
130
|
"version": "0.16.3",
|
|
8
131
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,49 @@
|
|
|
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 Tue, 24 May 2022 16:52:57 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.18.0
|
|
8
|
+
|
|
9
|
+
Tue, 24 May 2022 16:52:57 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- Add text implementation v2 (email not defined)
|
|
14
|
+
- Bump @fluentui-react-native/default-theme to v0.12.0
|
|
15
|
+
- Bump @fluentui-react-native/theme-tokens to v0.17.0
|
|
16
|
+
- Bump @fluentui-react-native/theme-types to v0.16.0
|
|
17
|
+
- Bump @fluentui-react-native/theme to v0.6.10
|
|
18
|
+
- Bump @fluentui-react-native/theming-utils to v0.12.0
|
|
19
|
+
|
|
20
|
+
## 0.17.0
|
|
21
|
+
|
|
22
|
+
Sat, 21 May 2022 01:47:58 GMT
|
|
23
|
+
|
|
24
|
+
### Minor changes
|
|
25
|
+
|
|
26
|
+
- Add shadows to win32 (ruaraki@microsoft.com)
|
|
27
|
+
- Bump @fluentui-react-native/default-theme to v0.11.0
|
|
28
|
+
- Bump @fluentui-react-native/theme-tokens to v0.16.3
|
|
29
|
+
- Bump @fluentui-react-native/theme-types to v0.15.0
|
|
30
|
+
- Bump @fluentui-react-native/theme to v0.6.9
|
|
31
|
+
- Bump @fluentui-react-native/theming-utils to v0.11.0
|
|
32
|
+
|
|
33
|
+
## 0.16.4
|
|
34
|
+
|
|
35
|
+
Thu, 28 Apr 2022 19:09:51 GMT
|
|
36
|
+
|
|
37
|
+
### Patches
|
|
38
|
+
|
|
39
|
+
- Bump @fluentui-react-native/default-theme to v0.10.3
|
|
40
|
+
- Bump @fluentui-react-native/theme-types to v0.14.3
|
|
41
|
+
- Bump @fluentui-react-native/theme to v0.6.8
|
|
42
|
+
- Bump @fluentui-react-native/theming-utils to v0.10.2
|
|
43
|
+
|
|
7
44
|
## 0.16.3
|
|
8
45
|
|
|
9
|
-
Wed, 27 Apr 2022 19:
|
|
46
|
+
Wed, 27 Apr 2022 19:30:38 GMT
|
|
10
47
|
|
|
11
48
|
### Patches
|
|
12
49
|
|
|
@@ -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,iCAA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