@fluentui-react-native/win32-theme 0.25.6 → 0.25.8
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 +31 -1
- package/CHANGELOG.md +18 -2
- package/lib-commonjs/NativeModule/getThemingModule.native.d.ts.map +1 -1
- package/lib-commonjs/NativeModule/getThemingModule.native.js +8 -0
- package/lib-commonjs/NativeModule/getThemingModule.native.js.map +1 -1
- package/lib-commonjs/NativeModule/hostThemeSetting.d.ts +3 -0
- package/lib-commonjs/NativeModule/hostThemeSetting.d.ts.map +1 -0
- package/lib-commonjs/NativeModule/hostThemeSetting.js +22 -0
- package/lib-commonjs/NativeModule/hostThemeSetting.js.map +1 -0
- package/lib-commonjs/__tests__/win32-theme.test.js +2 -0
- package/lib-commonjs/__tests__/win32-theme.test.js.map +1 -1
- package/lib-commonjs/createOfficeTheme.d.ts.map +1 -1
- package/lib-commonjs/createOfficeTheme.js +3 -1
- package/lib-commonjs/createOfficeTheme.js.map +1 -1
- package/package.json +1 -1
- package/src/NativeModule/getThemingModule.native.ts +9 -0
- package/src/NativeModule/hostThemeSetting.ts +18 -0
- package/src/__tests__/win32-theme.test.ts +2 -0
- package/src/createOfficeTheme.ts +3 -1
- package/lib/NativeModule/_mocks_/getThemingModule.native.d.ts +0 -6
- package/lib/NativeModule/_mocks_/getThemingModule.native.d.ts.map +0 -1
- package/lib/NativeModule/_mocks_/getThemingModule.native.js +0 -8
- package/lib/NativeModule/_mocks_/getThemingModule.native.js.map +0 -1
- package/lib/NativeModule/fallbackOfficeModule.d.ts +0 -5
- package/lib/NativeModule/fallbackOfficeModule.d.ts.map +0 -1
- package/lib/NativeModule/fallbackOfficeModule.js +0 -162
- package/lib/NativeModule/fallbackOfficeModule.js.map +0 -1
- package/lib/NativeModule/getThemingModule.d.ts +0 -7
- package/lib/NativeModule/getThemingModule.d.ts.map +0 -1
- package/lib/NativeModule/getThemingModule.js +0 -8
- package/lib/NativeModule/getThemingModule.js.map +0 -1
- package/lib/NativeModule/getThemingModule.native.d.ts +0 -4
- package/lib/NativeModule/getThemingModule.native.d.ts.map +0 -1
- package/lib/NativeModule/getThemingModule.native.js +0 -19
- package/lib/NativeModule/getThemingModule.native.js.map +0 -1
- package/lib/NativeModule/index.d.ts +0 -4
- package/lib/NativeModule/index.d.ts.map +0 -1
- package/lib/NativeModule/index.js +0 -4
- package/lib/NativeModule/index.js.map +0 -1
- package/lib/NativeModule/officeThemingModule.d.ts +0 -34
- package/lib/NativeModule/officeThemingModule.d.ts.map +0 -1
- package/lib/NativeModule/officeThemingModule.js +0 -2
- package/lib/NativeModule/officeThemingModule.js.map +0 -1
- package/lib/__tests__/win32-theme.test.d.ts +0 -2
- package/lib/__tests__/win32-theme.test.d.ts.map +0 -1
- package/lib/__tests__/win32-theme.test.js +0 -100
- package/lib/__tests__/win32-theme.test.js.map +0 -1
- package/lib/createAliasesFromPalette.d.ts +0 -3
- package/lib/createAliasesFromPalette.d.ts.map +0 -1
- package/lib/createAliasesFromPalette.js +0 -59
- package/lib/createAliasesFromPalette.js.map +0 -1
- package/lib/createBrandedThemeWithAlias.d.ts +0 -5
- package/lib/createBrandedThemeWithAlias.d.ts.map +0 -1
- package/lib/createBrandedThemeWithAlias.js +0 -69
- package/lib/createBrandedThemeWithAlias.js.map +0 -1
- package/lib/createFontAliasTokens.d.ts +0 -5
- package/lib/createFontAliasTokens.d.ts.map +0 -1
- package/lib/createFontAliasTokens.js +0 -9
- package/lib/createFontAliasTokens.js.map +0 -1
- package/lib/createOfficeAliasTokens.d.ts +0 -7
- package/lib/createOfficeAliasTokens.d.ts.map +0 -1
- package/lib/createOfficeAliasTokens.js +0 -14
- package/lib/createOfficeAliasTokens.js.map +0 -1
- package/lib/createOfficeTheme.d.ts +0 -13
- package/lib/createOfficeTheme.d.ts.map +0 -1
- package/lib/createOfficeTheme.js +0 -68
- package/lib/createOfficeTheme.js.map +0 -1
- package/lib/createPartialOfficeTheme.d.ts +0 -10
- package/lib/createPartialOfficeTheme.d.ts.map +0 -1
- package/lib/createPartialOfficeTheme.js +0 -25
- package/lib/createPartialOfficeTheme.js.map +0 -1
- package/lib/getOfficeTokens.d.ts +0 -377
- package/lib/getOfficeTokens.d.ts.map +0 -1
- package/lib/getOfficeTokens.js +0 -39
- package/lib/getOfficeTokens.js.map +0 -1
- package/lib/getThemeTypography.d.ts +0 -3
- package/lib/getThemeTypography.d.ts.map +0 -1
- package/lib/getThemeTypography.js +0 -22
- package/lib/getThemeTypography.js.map +0 -1
- package/lib/highContrast/tokens-alias.d.ts +0 -2
- package/lib/highContrast/tokens-alias.d.ts.map +0 -1
- package/lib/highContrast/tokens-alias.js +0 -16
- package/lib/highContrast/tokens-alias.js.map +0 -1
- package/lib/index.d.ts +0 -10
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -9
- package/lib/index.js.map +0 -1
- package/lib/paletteFromOfficeColors.d.ts +0 -3
- package/lib/paletteFromOfficeColors.d.ts.map +0 -1
- package/lib/paletteFromOfficeColors.js +0 -160
- package/lib/paletteFromOfficeColors.js.map +0 -1
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,37 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/win32-theme",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Fri, 17 Mar 2023 20:54:23 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/win32-theme_v0.25.8",
|
|
7
|
+
"version": "0.25.8",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "ruaraki@microsoft.com",
|
|
12
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
13
|
+
"commit": "17b7aef310b2c2325dce2129aeefceada04140e7",
|
|
14
|
+
"comment": "Remove error"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Thu, 16 Mar 2023 21:46:56 GMT",
|
|
21
|
+
"tag": "@fluentui-react-native/win32-theme_v0.25.7",
|
|
22
|
+
"version": "0.25.7",
|
|
23
|
+
"comments": {
|
|
24
|
+
"patch": [
|
|
25
|
+
{
|
|
26
|
+
"author": "ruaraki@microsoft.com",
|
|
27
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
28
|
+
"commit": "124fa9e36989035c4ebb848de1c727b0893eaceb",
|
|
29
|
+
"comment": "Have a way to query theme state over multiple instances of the win32 theme"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"date": "Tue, 14 Mar 2023 20:50:45 GMT",
|
|
6
36
|
"tag": "@fluentui-react-native/win32-theme_v0.25.6",
|
|
7
37
|
"version": "0.25.6",
|
|
8
38
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,28 @@
|
|
|
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 Fri, 17 Mar 2023 20:54:23 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.25.8
|
|
8
|
+
|
|
9
|
+
Fri, 17 Mar 2023 20:54:23 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Remove error (ruaraki@microsoft.com)
|
|
14
|
+
|
|
15
|
+
## 0.25.7
|
|
16
|
+
|
|
17
|
+
Thu, 16 Mar 2023 21:46:56 GMT
|
|
18
|
+
|
|
19
|
+
### Patches
|
|
20
|
+
|
|
21
|
+
- Have a way to query theme state over multiple instances of the win32 theme (ruaraki@microsoft.com)
|
|
22
|
+
|
|
7
23
|
## 0.25.6
|
|
8
24
|
|
|
9
|
-
Tue, 14 Mar 2023 20:
|
|
25
|
+
Tue, 14 Mar 2023 20:50:45 GMT
|
|
10
26
|
|
|
11
27
|
### Patches
|
|
12
28
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getThemingModule.native.d.ts","sourceRoot":"","sources":["../../src/NativeModule/getThemingModule.native.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAuB,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"getThemingModule.native.d.ts","sourceRoot":"","sources":["../../src/NativeModule/getThemingModule.native.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAuB,MAAM,cAAc,CAAC;AAIvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAejE,wBAAgB,gBAAgB,IAAI,CAAC,mBAAmB,EAAE,kBAAkB,GAAG,SAAS,CAAC,CAgBxF"}
|
|
@@ -4,6 +4,7 @@ exports.getThemingModule = void 0;
|
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var react_native_1 = require("react-native");
|
|
6
6
|
var fallbackOfficeModule_1 = require("./fallbackOfficeModule");
|
|
7
|
+
var hostThemeSetting_1 = require("./hostThemeSetting");
|
|
7
8
|
function disableGetPalette() {
|
|
8
9
|
var disabled = __DEV__ && navigator && navigator.userAgent !== undefined;
|
|
9
10
|
disabled && console.warn(console.warn('Web Debugging forces Theming Native Module to fallback to fake color values.'));
|
|
@@ -13,6 +14,12 @@ function getThemingModule() {
|
|
|
13
14
|
var module = react_native_1.TurboModuleRegistry.get('Theming');
|
|
14
15
|
// if the native module exists return the module + an emitter for it
|
|
15
16
|
if (module) {
|
|
17
|
+
if (!isInstantiated) {
|
|
18
|
+
// We need to store the host theme so that when themes are created
|
|
19
|
+
// they can use this information.
|
|
20
|
+
(0, hostThemeSetting_1.setCurrentHostThemeSetting)(module.initialHostThemeSetting);
|
|
21
|
+
isInstantiated = true;
|
|
22
|
+
}
|
|
16
23
|
// mock getPalette if it should be disabled, otherwise return the module directly
|
|
17
24
|
return [disableGetPalette() ? tslib_1.__assign(tslib_1.__assign({}, module), { getPalette: fallbackOfficeModule_1.fallbackGetPalette }) : module, new react_native_1.NativeEventEmitter(module)];
|
|
18
25
|
}
|
|
@@ -20,4 +27,5 @@ function getThemingModule() {
|
|
|
20
27
|
return [fallbackOfficeModule_1.fallbackOfficeModule, undefined];
|
|
21
28
|
}
|
|
22
29
|
exports.getThemingModule = getThemingModule;
|
|
30
|
+
var isInstantiated = false;
|
|
23
31
|
//# sourceMappingURL=getThemingModule.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getThemingModule.native.js","sourceRoot":"","sources":["../../src/NativeModule/getThemingModule.native.ts"],"names":[],"mappings":";;;;AACA,6CAAuE;AAEvE,+DAAkF;
|
|
1
|
+
{"version":3,"file":"getThemingModule.native.js","sourceRoot":"","sources":["../../src/NativeModule/getThemingModule.native.ts"],"names":[],"mappings":";;;;AACA,6CAAuE;AAEvE,+DAAkF;AAClF,uDAAgE;AAUhE,SAAS,iBAAiB;IACxB,IAAM,QAAQ,GAAG,OAAO,IAAI,SAAS,IAAI,SAAS,CAAC,SAAS,KAAK,SAAS,CAAC;IAC3E,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8EAA8E,CAAC,CAAC,CAAC;IACvH,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,SAAgB,gBAAgB;IAC9B,IAAM,MAAM,GAAG,kCAAmB,CAAC,GAAG,CAAuB,SAAS,CAAC,CAAC;IACxE,oEAAoE;IACpE,IAAI,MAAM,EAAE;QACV,IAAI,CAAC,cAAc,EAAE;YACnB,kEAAkE;YAClE,iCAAiC;YACjC,IAAA,6CAA0B,EAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC;YAC3D,cAAc,GAAG,IAAI,CAAC;SACvB;QACD,iFAAiF;QACjF,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC,uCAAM,MAAM,KAAE,UAAU,EAAE,yCAAkB,IAAG,CAAC,CAAC,MAAM,EAAE,IAAI,iCAAkB,CAAC,MAAM,CAAC,CAAC,CAAC;KACvH;IAED,oCAAoC;IACpC,OAAO,CAAC,2CAAoB,EAAE,SAAS,CAAC,CAAC;AAC3C,CAAC;AAhBD,4CAgBC;AAED,IAAI,cAAc,GAAG,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hostThemeSetting.d.ts","sourceRoot":"","sources":["../../src/NativeModule/hostThemeSetting.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,0BAA0B,cAEtC,CAAC;AAEF,eAAO,MAAM,0BAA0B,wBAAyB,MAAM,SAErE,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setCurrentHostThemeSetting = exports.getCurrentHostThemeSetting = void 0;
|
|
4
|
+
// The ThemingModule currently only stores its initial host theme state
|
|
5
|
+
// This state is never updated (it's a constant on the native module)
|
|
6
|
+
// This can cause issues if the host theme has changed and you want to
|
|
7
|
+
// query for the current state of the host theme. (i.e. you're spinning up
|
|
8
|
+
// a new instance of a theme and don't have something already keeping track
|
|
9
|
+
// of changes to the theme).
|
|
10
|
+
// Unfortunately, native changes take a long time to roundtrip,
|
|
11
|
+
// so as a workaround we store a copy of that information instead to last the
|
|
12
|
+
// entire lifetime of the instance.
|
|
13
|
+
var currentHostThemeSetting = '';
|
|
14
|
+
var getCurrentHostThemeSetting = function () {
|
|
15
|
+
return currentHostThemeSetting;
|
|
16
|
+
};
|
|
17
|
+
exports.getCurrentHostThemeSetting = getCurrentHostThemeSetting;
|
|
18
|
+
var setCurrentHostThemeSetting = function (newHostThemeSetting) {
|
|
19
|
+
currentHostThemeSetting = newHostThemeSetting;
|
|
20
|
+
};
|
|
21
|
+
exports.setCurrentHostThemeSetting = setCurrentHostThemeSetting;
|
|
22
|
+
//# sourceMappingURL=hostThemeSetting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hostThemeSetting.js","sourceRoot":"","sources":["../../src/NativeModule/hostThemeSetting.ts"],"names":[],"mappings":";;;AAAA,uEAAuE;AACvE,qEAAqE;AACrE,sEAAsE;AACtE,0EAA0E;AAC1E,2EAA2E;AAC3E,4BAA4B;AAC5B,+DAA+D;AAC/D,6EAA6E;AAC7E,mCAAmC;AACnC,IAAI,uBAAuB,GAAW,EAAE,CAAC;AAElC,IAAM,0BAA0B,GAAG;IACxC,OAAO,uBAAuB,CAAC;AACjC,CAAC,CAAC;AAFW,QAAA,0BAA0B,8BAErC;AAEK,IAAM,0BAA0B,GAAG,UAAC,mBAA2B;IACpE,uBAAuB,GAAG,mBAAmB,CAAC;AAChD,CAAC,CAAC;AAFW,QAAA,0BAA0B,8BAErC"}
|
|
@@ -7,6 +7,7 @@ var createOfficeAliasTokens_1 = require("../createOfficeAliasTokens");
|
|
|
7
7
|
var createOfficeTheme_1 = require("../createOfficeTheme");
|
|
8
8
|
var createPartialOfficeTheme_1 = require("../createPartialOfficeTheme");
|
|
9
9
|
var getThemeTypography_1 = require("../getThemeTypography");
|
|
10
|
+
var hostThemeSetting_1 = require("../NativeModule/hostThemeSetting");
|
|
10
11
|
var index_1 = require("../NativeModule/index");
|
|
11
12
|
var officeThemes = ['White', 'Colorful', 'DarkGray', 'Black', 'HighContrast'];
|
|
12
13
|
var appPrimaries = ['#185abd', '#107c41', '#d83b01', '#80397b', '#0078d4', '#c43e1c'];
|
|
@@ -36,6 +37,7 @@ it('createOfficeTheme test', function () {
|
|
|
36
37
|
it.concurrent.each(officeThemes)('createBrandedThemeWithAlias test themeName: %s', function (themeName) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
37
38
|
var officeTheme, brandedTheme;
|
|
38
39
|
return tslib_1.__generator(this, function (_a) {
|
|
40
|
+
(0, hostThemeSetting_1.setCurrentHostThemeSetting)('Colorful');
|
|
39
41
|
officeTheme = (0, createOfficeTheme_1.createOfficeTheme)({ paletteName: 'TaskPane', appearance: 'light' }).theme;
|
|
40
42
|
brandedTheme = (0, createBrandedThemeWithAlias_1.createBrandedThemeWithAlias)(themeName, officeTheme);
|
|
41
43
|
expect(brandedTheme).toMatchSnapshot();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"win32-theme.test.js","sourceRoot":"","sources":["../../src/__tests__/win32-theme.test.ts"],"names":[],"mappings":";;;AAAA,8EAAyG;AACzG,kEAAiE;AACjE,sEAAyG;AACzG,0DAAyD;AACzD,wEAAuE;AACvE,4DAAwD;AACxD,+CAAmG;AAEnG,IAAM,YAAY,GAAG,CAAC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,CAAC,CAAC;AAChF,IAAM,YAAY,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;AAExF,EAAE,CAAC,sBAAsB,EAAE;IACzB,MAAM,CAAC,oCAAe,CAAC,CAAC,eAAe,EAAE,CAAC;AAC5C,CAAC,CAAC,CAAC;AAEH,EAAE,CAAC,2BAA2B,EAAE;IAC9B,MAAM,CAAC,4BAAoB,CAAC,CAAC,eAAe,EAAE,CAAC;AACjD,CAAC,CAAC,CAAC;AAEH,EAAE,CAAC,uBAAuB,EAAE;IAC1B,IAAM,aAAa,GAAG,IAAA,wBAAgB,GAAE,CAAC;IACzC,MAAM,CAAC,aAAa,CAAC,CAAC,eAAe,EAAE,CAAC;AAC1C,CAAC,CAAC,CAAC;AAEH,EAAE,CAAC,+BAA+B,EAAE;IAClC,IAAM,aAAa,GAAG,IAAA,wBAAgB,GAAE,CAAC;IACzC,IAAM,kBAAkB,GAAG,IAAA,mDAAwB,EAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;IACtE,MAAM,CAAC,kBAAkB,CAAC,CAAC,eAAe,CAAC;AAC7C,CAAC,CAAC,CAAC;AAEH,EAAE,CAAC,4BAA4B,EAAE;IAC/B,IAAM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AAE,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,iCAAiC,EAAE,UAAO,UAAkB;;;YACrF,gBAAgB,GAAG,IAAA,wDAA0B,EAAC,IAAI,EAAE,UAAU,CAAC,CAAC;YACtE,MAAM,CAAC,gBAAgB,CAAC,CAAC,eAAe,EAAE,CAAC;;;SAC5C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOfficeTheme.d.ts","sourceRoot":"","sources":["../src/createOfficeTheme.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EAAwB,YAAY,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"createOfficeTheme.d.ts","sourceRoot":"","sources":["../src/createOfficeTheme.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EAAwB,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAgB7F;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,GAAE,YAAiB,GAAG,cAAc,CAyD5E"}
|
|
@@ -10,6 +10,7 @@ var createOfficeAliasTokens_1 = require("./createOfficeAliasTokens");
|
|
|
10
10
|
var createPartialOfficeTheme_1 = require("./createPartialOfficeTheme");
|
|
11
11
|
var getThemeTypography_1 = require("./getThemeTypography");
|
|
12
12
|
var getThemingModule_1 = require("./NativeModule/getThemingModule");
|
|
13
|
+
var hostThemeSetting_1 = require("./NativeModule/hostThemeSetting");
|
|
13
14
|
function handlePaletteCall(palette) {
|
|
14
15
|
var exception = palette;
|
|
15
16
|
return exception && exception.message !== undefined ? undefined : palette;
|
|
@@ -26,7 +27,7 @@ function handlePaletteCall(palette) {
|
|
|
26
27
|
function createOfficeTheme(options) {
|
|
27
28
|
if (options === void 0) { options = {}; }
|
|
28
29
|
var _a = (0, getThemingModule_1.getThemingModule)(), module = _a[0], emitter = _a[1];
|
|
29
|
-
var ref = { module: module, emitter: emitter, themeName:
|
|
30
|
+
var ref = { module: module, emitter: emitter, themeName: (0, hostThemeSetting_1.getCurrentHostThemeSetting)() || '' };
|
|
30
31
|
var paletteName = options.paletteName;
|
|
31
32
|
var themeRef = new theme_1.ThemeReference((0, default_theme_1.createDefaultTheme)(options), function () {
|
|
32
33
|
var name = paletteName || 'WhiteColors';
|
|
@@ -62,6 +63,7 @@ function createOfficeTheme(options) {
|
|
|
62
63
|
// set up the callback for theme changes on the native side
|
|
63
64
|
var onPlatformDefaultsChanged = function (args) {
|
|
64
65
|
ref.themeName = (args && args.hostThemeSetting) || ref.themeName;
|
|
66
|
+
(0, hostThemeSetting_1.setCurrentHostThemeSetting)(ref.themeName);
|
|
65
67
|
themeRef.invalidate();
|
|
66
68
|
};
|
|
67
69
|
emitter && emitter.addListener('onPlatformDefaultsChanged', onPlatformDefaultsChanged);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOfficeTheme.js","sourceRoot":"","sources":["../src/createOfficeTheme.ts"],"names":[],"mappings":";;;;AAAA,sEAA0E;AAC1E,sDAA8D;AAG9D,uEAAsE;AACtE,6EAA4E;AAC5E,qEAAwG;AACxG,uEAAsE;AACtE,2DAAuD;AACvD,oEAAmE;
|
|
1
|
+
{"version":3,"file":"createOfficeTheme.js","sourceRoot":"","sources":["../src/createOfficeTheme.ts"],"names":[],"mappings":";;;;AAAA,sEAA0E;AAC1E,sDAA8D;AAG9D,uEAAsE;AACtE,6EAA4E;AAC5E,qEAAwG;AACxG,uEAAsE;AACtE,2DAAuD;AACvD,oEAAmE;AACnE,oEAAyG;AAGzG,SAAS,iBAAiB,CAAC,OAAqC;IAC9D,IAAM,SAAS,GAAG,OAAuB,CAAC;IAC1C,OAAO,SAAS,IAAI,SAAS,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAE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A,yDAA2B,EAAC,GAAG,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;IAC3D,CAAC,EACD,UAAC,KAAY;QACX,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE;YACvB,OAAO,EAAE,CAAC;SACX;QAED,OAAO;YACL,MAAM,EAAE,IAAA,mDAAwB,EAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,CAAC,SAAS,KAAK,cAAc,CAAC;YACtF,UAAU,EAAE,IAAA,oCAAe,GAAE;SAC9B,CAAC;IACJ,CAAC,CACF,CAAC;IAEF,2DAA2D;IAC3D,IAAM,yBAAyB,GAAG,UAAC,IAAiC;QAClE,GAAG,CAAC,SAAS,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,gBAAgB,CAAC,IAAI,GAAG,CAAC,SAAS,CAAC;QACjE,IAAA,6CAA0B,EAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAC1C,QAAQ,CAAC,UAAU,EAAE,CAAC;IACxB,CAAC,CAAC;IACF,OAAO,IAAI,OAAO,CAAC,WAAW,CAAC,2BAA2B,EAAE,yBAAyB,CAAC,CAAC;IAEvF,iCAAiC;IACjC,OAAO,QAAQ,CAAC;AAClB,CAAC;AAzDD,8CAyDC"}
|
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@ import type { EventSubscriptionVendor, TurboModule } from 'react-native';
|
|
|
2
2
|
import { NativeEventEmitter, TurboModuleRegistry } from 'react-native';
|
|
3
3
|
|
|
4
4
|
import { fallbackGetPalette, fallbackOfficeModule } from './fallbackOfficeModule';
|
|
5
|
+
import { setCurrentHostThemeSetting } from './hostThemeSetting';
|
|
5
6
|
import type { OfficeThemingModule } from './officeThemingModule';
|
|
6
7
|
|
|
7
8
|
/**
|
|
@@ -21,6 +22,12 @@ export function getThemingModule(): [OfficeThemingModule, NativeEventEmitter | u
|
|
|
21
22
|
const module = TurboModuleRegistry.get<ITurboModuleRegistry>('Theming');
|
|
22
23
|
// if the native module exists return the module + an emitter for it
|
|
23
24
|
if (module) {
|
|
25
|
+
if (!isInstantiated) {
|
|
26
|
+
// We need to store the host theme so that when themes are created
|
|
27
|
+
// they can use this information.
|
|
28
|
+
setCurrentHostThemeSetting(module.initialHostThemeSetting);
|
|
29
|
+
isInstantiated = true;
|
|
30
|
+
}
|
|
24
31
|
// mock getPalette if it should be disabled, otherwise return the module directly
|
|
25
32
|
return [disableGetPalette() ? { ...module, getPalette: fallbackGetPalette } : module, new NativeEventEmitter(module)];
|
|
26
33
|
}
|
|
@@ -28,3 +35,5 @@ export function getThemingModule(): [OfficeThemingModule, NativeEventEmitter | u
|
|
|
28
35
|
// otherwise use the fallback module
|
|
29
36
|
return [fallbackOfficeModule, undefined];
|
|
30
37
|
}
|
|
38
|
+
|
|
39
|
+
let isInstantiated = false;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// The ThemingModule currently only stores its initial host theme state
|
|
2
|
+
// This state is never updated (it's a constant on the native module)
|
|
3
|
+
// This can cause issues if the host theme has changed and you want to
|
|
4
|
+
// query for the current state of the host theme. (i.e. you're spinning up
|
|
5
|
+
// a new instance of a theme and don't have something already keeping track
|
|
6
|
+
// of changes to the theme).
|
|
7
|
+
// Unfortunately, native changes take a long time to roundtrip,
|
|
8
|
+
// so as a workaround we store a copy of that information instead to last the
|
|
9
|
+
// entire lifetime of the instance.
|
|
10
|
+
let currentHostThemeSetting: string = '';
|
|
11
|
+
|
|
12
|
+
export const getCurrentHostThemeSetting = () => {
|
|
13
|
+
return currentHostThemeSetting;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export const setCurrentHostThemeSetting = (newHostThemeSetting: string) => {
|
|
17
|
+
currentHostThemeSetting = newHostThemeSetting;
|
|
18
|
+
};
|
|
@@ -4,6 +4,7 @@ import { createOfficeColorAliasTokens, createOfficeShadowAliasTokens } from '../
|
|
|
4
4
|
import { createOfficeTheme } from '../createOfficeTheme';
|
|
5
5
|
import { createPartialOfficeTheme } from '../createPartialOfficeTheme';
|
|
6
6
|
import { win32Typography } from '../getThemeTypography';
|
|
7
|
+
import { setCurrentHostThemeSetting } from '../NativeModule/hostThemeSetting';
|
|
7
8
|
import { fallbackGetPalette, fallbackOfficeModule, getThemingModule } from '../NativeModule/index';
|
|
8
9
|
|
|
9
10
|
const officeThemes = ['White', 'Colorful', 'DarkGray', 'Black', 'HighContrast'];
|
|
@@ -39,6 +40,7 @@ it('createOfficeTheme test', () => {
|
|
|
39
40
|
});
|
|
40
41
|
|
|
41
42
|
it.concurrent.each(officeThemes)('createBrandedThemeWithAlias test themeName: %s', async (themeName: string) => {
|
|
43
|
+
setCurrentHostThemeSetting('Colorful');
|
|
42
44
|
const officeTheme = createOfficeTheme({ paletteName: 'TaskPane', appearance: 'light' }).theme;
|
|
43
45
|
const brandedTheme = createBrandedThemeWithAlias(themeName, officeTheme);
|
|
44
46
|
expect(brandedTheme).toMatchSnapshot();
|
package/src/createOfficeTheme.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { createOfficeColorAliasTokens, createOfficeShadowAliasTokens } from './c
|
|
|
8
8
|
import { createPartialOfficeTheme } from './createPartialOfficeTheme';
|
|
9
9
|
import { win32Typography } from './getThemeTypography';
|
|
10
10
|
import { getThemingModule } from './NativeModule/getThemingModule';
|
|
11
|
+
import { getCurrentHostThemeSetting, setCurrentHostThemeSetting } from './NativeModule/hostThemeSetting';
|
|
11
12
|
import type { CxxException, PlatformDefaultsChangedArgs } from './NativeModule/officeThemingModule';
|
|
12
13
|
|
|
13
14
|
function handlePaletteCall(palette: OfficePalette | CxxException): OfficePalette | undefined {
|
|
@@ -26,7 +27,7 @@ function handlePaletteCall(palette: OfficePalette | CxxException): OfficePalette
|
|
|
26
27
|
*/
|
|
27
28
|
export function createOfficeTheme(options: ThemeOptions = {}): ThemeReference {
|
|
28
29
|
const [module, emitter] = getThemingModule();
|
|
29
|
-
const ref = { module, emitter, themeName:
|
|
30
|
+
const ref = { module, emitter, themeName: getCurrentHostThemeSetting() || '' };
|
|
30
31
|
const { paletteName } = options;
|
|
31
32
|
|
|
32
33
|
const themeRef = new ThemeReference(
|
|
@@ -74,6 +75,7 @@ export function createOfficeTheme(options: ThemeOptions = {}): ThemeReference {
|
|
|
74
75
|
// set up the callback for theme changes on the native side
|
|
75
76
|
const onPlatformDefaultsChanged = (args: PlatformDefaultsChangedArgs) => {
|
|
76
77
|
ref.themeName = (args && args.hostThemeSetting) || ref.themeName;
|
|
78
|
+
setCurrentHostThemeSetting(ref.themeName);
|
|
77
79
|
themeRef.invalidate();
|
|
78
80
|
};
|
|
79
81
|
emitter && emitter.addListener('onPlatformDefaultsChanged', onPlatformDefaultsChanged);
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { OfficeThemingModule } from '../officeThemingModule';
|
|
2
|
-
/**
|
|
3
|
-
* implementations for react-native-web, where the native module will not exist. In this case just use the full fallback implementation
|
|
4
|
-
*/
|
|
5
|
-
export declare function getThemingModule(): [OfficeThemingModule, undefined];
|
|
6
|
-
//# sourceMappingURL=getThemingModule.native.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getThemingModule.native.d.ts","sourceRoot":"","sources":["../../../src/NativeModule/_mocks_/getThemingModule.native.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,CAEnE"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { fallbackOfficeModule } from '../fallbackOfficeModule';
|
|
2
|
-
/**
|
|
3
|
-
* implementations for react-native-web, where the native module will not exist. In this case just use the full fallback implementation
|
|
4
|
-
*/
|
|
5
|
-
export function getThemingModule() {
|
|
6
|
-
return [fallbackOfficeModule, undefined];
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=getThemingModule.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getThemingModule.native.js","sourceRoot":"","sources":["../../../src/NativeModule/_mocks_/getThemingModule.native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAG/D;;GAEG;AACH,MAAM,UAAU,gBAAgB;IAC9B,OAAO,CAAC,oBAAoB,EAAE,SAAS,CAAC,CAAC;AAC3C,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { OfficePalette } from '@fluentui-react-native/theme-types';
|
|
2
|
-
import type { OfficeThemingModule } from './officeThemingModule';
|
|
3
|
-
export declare function fallbackGetPalette(pal?: string): OfficePalette;
|
|
4
|
-
export declare const fallbackOfficeModule: OfficeThemingModule;
|
|
5
|
-
//# sourceMappingURL=fallbackOfficeModule.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fallbackOfficeModule.d.ts","sourceRoot":"","sources":["../../src/NativeModule/fallbackOfficeModule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAExE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AA8IjE,wBAAgB,kBAAkB,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,aAAa,CAO9D;AAED,eAAO,MAAM,oBAAoB,EAAE,mBAgBX,CAAC"}
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
2
|
-
var whiteColorsPalette = {
|
|
3
|
-
Bkg: '#FFFFFF',
|
|
4
|
-
BkgHover: '#D2D2D2',
|
|
5
|
-
BkgPressed: '#B1B1B1',
|
|
6
|
-
BkgSelected: '#C6C6C6',
|
|
7
|
-
BkgSubtle: '#F3F3F3',
|
|
8
|
-
BkgSelectionHighlight: '#737373',
|
|
9
|
-
Text: '#262626',
|
|
10
|
-
TextRest: '#262626',
|
|
11
|
-
TextHover: '#262626',
|
|
12
|
-
TextPressed: '#262626',
|
|
13
|
-
TextSelected: '#262626',
|
|
14
|
-
TextDisabled: '#B1B1B1',
|
|
15
|
-
TextSelectionHighlight: '#FFFFFF',
|
|
16
|
-
TextSecondary: '#666666',
|
|
17
|
-
TextSecondaryRest: '#666666',
|
|
18
|
-
TextSecondaryHover: '#505050',
|
|
19
|
-
TextSecondaryPressed: '#666666',
|
|
20
|
-
TextSecondarySelected: '#666666',
|
|
21
|
-
TextEmphasis: '#D83B01',
|
|
22
|
-
TextEmphasisRest: '#D83B01',
|
|
23
|
-
TextEmphasisHover: '#EA6115',
|
|
24
|
-
TextEmphasisPressed: '#A22C01',
|
|
25
|
-
TextEmphasisSelected: '#D83B01',
|
|
26
|
-
StrokeSelectedHover: '#969696',
|
|
27
|
-
StrokeKeyboard: '#969696',
|
|
28
|
-
StrokeOverRest: '#00000000',
|
|
29
|
-
StrokeOverHover: '#00000000',
|
|
30
|
-
StrokeOverPressed: '#00000000',
|
|
31
|
-
StrokeOverSelectedRest: '#00000000',
|
|
32
|
-
StrokeOverSelectedHover: '#969696',
|
|
33
|
-
StrokeOverSelectedPressed: '#00000000',
|
|
34
|
-
BkgCtl: '#E6E6E6',
|
|
35
|
-
BkgCtlHover: '#FFF7F0',
|
|
36
|
-
BkgCtlPressed: '#FBDFD0',
|
|
37
|
-
BkgCtlSelected: '#E6E6E6',
|
|
38
|
-
BkgCtlDisabled: '#E6E6E6',
|
|
39
|
-
TextCtl: '#262626',
|
|
40
|
-
TextCtlHover: '#262626',
|
|
41
|
-
TextCtlPressed: '#262626',
|
|
42
|
-
TextCtlSelected: '#262626',
|
|
43
|
-
TextCtlDisabled: '#B1B1B1',
|
|
44
|
-
StrokeCtl: '#969696',
|
|
45
|
-
StrokeCtlHover: '#FBDFD0',
|
|
46
|
-
StrokeCtlPressed: '#EA6115',
|
|
47
|
-
StrokeCtlSelected: '#969696',
|
|
48
|
-
StrokeCtlDisabled: '#D2D2D2',
|
|
49
|
-
StrokeCtlKeyboard: '#FBDFD0',
|
|
50
|
-
BkgCtlEmphasis: '#D83B01',
|
|
51
|
-
BkgCtlEmphasisHover: '#F29F71',
|
|
52
|
-
BkgCtlEmphasisPressed: '#A22C01',
|
|
53
|
-
BkgCtlEmphasisDisabled: '#E6E6E6',
|
|
54
|
-
TextCtlEmphasis: '#FFFFFF',
|
|
55
|
-
TextCtlEmphasisHover: '#FFFFFF',
|
|
56
|
-
TextCtlEmphasisPressed: '#FFFFFF',
|
|
57
|
-
TextCtlEmphasisDisabled: '#B1B1B1',
|
|
58
|
-
StrokeCtlEmphasis: '#A22C01',
|
|
59
|
-
StrokeCtlEmphasisHover: '#D83B01',
|
|
60
|
-
StrokeCtlEmphasisPressed: '#A22C01',
|
|
61
|
-
StrokeCtlEmphasisDisabled: '#D2D2D2',
|
|
62
|
-
StrokeCtlEmphasisKeyboard: '#A22C01',
|
|
63
|
-
BkgCtlSubtle: '#FFFFFF',
|
|
64
|
-
BkgCtlSubtleHover: '#FFFFFF',
|
|
65
|
-
BkgCtlSubtlePressed: '#FFFFFF',
|
|
66
|
-
BkgCtlSubtleDisabled: '#F3F3F3',
|
|
67
|
-
BkgCtlSubtleSelectionHighlight: '#7DA3C6',
|
|
68
|
-
TextCtlSubtle: '#262626',
|
|
69
|
-
TextCtlSubtlePlaceholder: '#666666',
|
|
70
|
-
TextCtlSubtleHover: '#262626',
|
|
71
|
-
TextCtlSubtlePressed: '#262626',
|
|
72
|
-
TextCtlSubtleDisabled: '#B1B1B1',
|
|
73
|
-
TextCtlSubtleSelectionHighlight: '#262626',
|
|
74
|
-
StrokeCtlSubtle: '#C6C6C6',
|
|
75
|
-
StrokeCtlSubtleHover: '#969696',
|
|
76
|
-
StrokeCtlSubtlePressed: '#969696',
|
|
77
|
-
StrokeCtlSubtleDisabled: '#C6C6C6',
|
|
78
|
-
StrokeCtlSubtleKeyboard: '#969696',
|
|
79
|
-
TextHyperlink: '#D83B01',
|
|
80
|
-
TextHyperlinkHover: '#A22C01',
|
|
81
|
-
TextHyperlinkPressed: '#6C1E01',
|
|
82
|
-
TextActive: '#262626',
|
|
83
|
-
TextActiveHover: '#EA6115',
|
|
84
|
-
TextActivePressed: '#A22C01',
|
|
85
|
-
TextActiveSelected: '#D83B01',
|
|
86
|
-
StrokeOnlyHover: '#B1B1B1',
|
|
87
|
-
StrokeOnlyPressed: '#737373',
|
|
88
|
-
StrokeOnlySelected: '#969696',
|
|
89
|
-
TextError: '#A50000',
|
|
90
|
-
TextErrorHover: '#A50000',
|
|
91
|
-
TextErrorPressed: '#A50000',
|
|
92
|
-
TextErrorSelected: '#A50000',
|
|
93
|
-
ThumbToggleSwitchOff: '#505050',
|
|
94
|
-
ThumbToggleSwitchOffHover: '#505050',
|
|
95
|
-
ThumbToggleSwitchOffPressed: '#505050',
|
|
96
|
-
ThumbToggleSwitchOffDisabled: '#D2D2D2',
|
|
97
|
-
ThumbToggleSwitchOn: '#FFFFFF',
|
|
98
|
-
ThumbToggleSwitchOnHover: '#FFFFFF',
|
|
99
|
-
ThumbToggleSwitchOnPressed: '#FFFFFF',
|
|
100
|
-
ThumbToggleSwitchOnDisabled: '#FFFFFF',
|
|
101
|
-
BkgToggleSwitchOff: '#FFFFFF',
|
|
102
|
-
BkgToggleSwitchOffHover: '#D2D2D2',
|
|
103
|
-
BkgToggleSwitchOffPressed: '#B1B1B1',
|
|
104
|
-
BkgToggleSwitchOffDisabled: '#FFFFFF',
|
|
105
|
-
BkgToggleSwitchOn: '#D83B01',
|
|
106
|
-
BkgToggleSwitchOnHover: '#EA6115',
|
|
107
|
-
BkgToggleSwitchOnPressed: '#A22C01',
|
|
108
|
-
BkgToggleSwitchOnDisabled: '#D2D2D2',
|
|
109
|
-
StrokeToggleSwitchOff: '#505050',
|
|
110
|
-
StrokeToggleSwitchOffHover: '#505050',
|
|
111
|
-
StrokeToggleSwitchOffPressed: '#505050',
|
|
112
|
-
StrokeToggleSwitchOffDisabled: '#D2D2D2',
|
|
113
|
-
StrokeToggleSwitchOn: '#D83B01',
|
|
114
|
-
StrokeToggleSwitchOnHover: '#EA6115',
|
|
115
|
-
StrokeToggleSwitchOnPressed: '#A22C01',
|
|
116
|
-
StrokeToggleSwitchOnDisabled: '#D2D2D2',
|
|
117
|
-
SliderPrimary: '#444444',
|
|
118
|
-
SliderPrimaryHover: '#D2D2D2',
|
|
119
|
-
SliderPrimaryPressed: '#262626',
|
|
120
|
-
SliderPrimaryDisabled: '#969696',
|
|
121
|
-
SliderSecondary: '#D2D2D2',
|
|
122
|
-
SliderBuffer: '#262626',
|
|
123
|
-
SliderKeyboard: '#444444',
|
|
124
|
-
SliderToolTipBorder: '#C6C6C6',
|
|
125
|
-
SliderToolTipLabel: '#262626',
|
|
126
|
-
SliderToolTipBkg: '#FFFFFF',
|
|
127
|
-
AccentDark: '#C6C6C6',
|
|
128
|
-
AccentLight: '#E6E6E6',
|
|
129
|
-
AccentEmphasis: '#D83B01',
|
|
130
|
-
AccentOutline: '#000000',
|
|
131
|
-
TextEmphasis2: '#D83B01',
|
|
132
|
-
BkgCtlSubtleSelected: '#F3F3F3',
|
|
133
|
-
TextCtlSubtleSelected: '#262626',
|
|
134
|
-
BkgCtlEmphasisFocus: '#F3F3F3',
|
|
135
|
-
BkgCtlSubtleFocus: '#F3F3F3',
|
|
136
|
-
BkgCtlSubtleHoverDisabled: '#F3F3F3',
|
|
137
|
-
BkgCtlSubtleSelectedDisabled: '#F3F3F3',
|
|
138
|
-
BkgHeader: '#E6E6E6',
|
|
139
|
-
TextHeader: '#262626',
|
|
140
|
-
};
|
|
141
|
-
export function fallbackGetPalette(pal) {
|
|
142
|
-
return pal === 'TaskPane'
|
|
143
|
-
? __assign(__assign({}, whiteColorsPalette), { Bkg: 'antiquewhite' }) : whiteColorsPalette;
|
|
144
|
-
}
|
|
145
|
-
export var fallbackOfficeModule = {
|
|
146
|
-
ramps: {
|
|
147
|
-
App: ['#F8F8F8', '#EFF6FC', '#BBDAF3', '#55A4E2', '#359EDD', '#0078d7', '#283E4A', '#030C13'],
|
|
148
|
-
FluentGrays: ['#FAF9F8', '#797775', '#11100F'],
|
|
149
|
-
ClassicGrays: ['#FFFFFF', '#737373', '#000000'],
|
|
150
|
-
Sepias: ['#ECE6DE'],
|
|
151
|
-
},
|
|
152
|
-
getPalette: fallbackGetPalette,
|
|
153
|
-
typography: {},
|
|
154
|
-
fluentTypography: {},
|
|
155
|
-
rampNames: {
|
|
156
|
-
App: ['FakeApp1', 'App2', 'App3', 'App4', 'App5', 'App6', 'App7', 'App8'],
|
|
157
|
-
FluentGrays: ['FakeGray1', 'Gray2', 'Gray3'],
|
|
158
|
-
ClassicGrays: ['FakeGray4', 'Gray5', 'Gray6'],
|
|
159
|
-
Sepias: ['FakeSepia'],
|
|
160
|
-
},
|
|
161
|
-
};
|
|
162
|
-
//# sourceMappingURL=fallbackOfficeModule.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fallbackOfficeModule.js","sourceRoot":"","sources":["../../src/NativeModule/fallbackOfficeModule.ts"],"names":[],"mappings":";AAIA,IAAM,kBAAkB,GAAkB;IACxC,GAAG,EAAE,SAAS;IACd,QAAQ,EAAE,SAAS;IACnB,UAAU,EAAE,SAAS;IACrB,WAAW,EAAE,SAAS;IACtB,SAAS,EAAE,SAAS;IACpB,qBAAqB,EAAE,SAAS;IAChC,IAAI,EAAE,SAAS;IACf,QAAQ,EAAE,SAAS;IACnB,SAAS,EAAE,SAAS;IACpB,WAAW,EAAE,SAAS;IACtB,YAAY,EAAE,SAAS;IACvB,YAAY,EAAE,SAAS;IACvB,sBAAsB,EAAE,SAAS;IACjC,aAAa,EAAE,SAAS;IACxB,iBAAiB,EAAE,SAAS;IAC5B,kBAAkB,EAAE,SAAS;IAC7B,oBAAoB,EAAE,SAAS;IAC/B,qBAAqB,EAAE,SAAS;IAChC,YAAY,EAAE,SAAS;IACvB,gBAAgB,EAAE,SAAS;IAC3B,iBAAiB,EAAE,SAAS;IAC5B,mBAAmB,EAAE,SAAS;IAC9B,oBAAoB,EAAE,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AE,MAAM,EAAE,MAAM,CAAC;QACzE,WAAW,EAAE,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC;QAC5C,YAAY,EAAE,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC;QAC7C,MAAM,EAAE,CAAC,WAAW,CAAC;KACtB;CACqB,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { NativeEventEmitter } from 'react-native';
|
|
2
|
-
import type { OfficeThemingModule } from './officeThemingModule';
|
|
3
|
-
/**
|
|
4
|
-
* implementations for react-native-web, where the native module will not exist. In this case just use the full fallback implementation
|
|
5
|
-
*/
|
|
6
|
-
export declare function getThemingModule(): [OfficeThemingModule, NativeEventEmitter | undefined];
|
|
7
|
-
//# sourceMappingURL=getThemingModule.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getThemingModule.d.ts","sourceRoot":"","sources":["../../src/NativeModule/getThemingModule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAGvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,CAAC,mBAAmB,EAAE,kBAAkB,GAAG,SAAS,CAAC,CAExF"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { fallbackOfficeModule } from './fallbackOfficeModule';
|
|
2
|
-
/**
|
|
3
|
-
* implementations for react-native-web, where the native module will not exist. In this case just use the full fallback implementation
|
|
4
|
-
*/
|
|
5
|
-
export function getThemingModule() {
|
|
6
|
-
return [fallbackOfficeModule, undefined];
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=getThemingModule.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getThemingModule.js","sourceRoot":"","sources":["../../src/NativeModule/getThemingModule.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D;;GAEG;AACH,MAAM,UAAU,gBAAgB;IAC9B,OAAO,CAAC,oBAAoB,EAAE,SAAS,CAAC,CAAC;AAC3C,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { NativeEventEmitter } from 'react-native';
|
|
2
|
-
import type { OfficeThemingModule } from './officeThemingModule';
|
|
3
|
-
export declare function getThemingModule(): [OfficeThemingModule, NativeEventEmitter | undefined];
|
|
4
|
-
//# sourceMappingURL=getThemingModule.native.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getThemingModule.native.d.ts","sourceRoot":"","sources":["../../src/NativeModule/getThemingModule.native.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAuB,MAAM,cAAc,CAAC;AAGvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAejE,wBAAgB,gBAAgB,IAAI,CAAC,mBAAmB,EAAE,kBAAkB,GAAG,SAAS,CAAC,CAUxF"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
2
|
-
import { NativeEventEmitter, TurboModuleRegistry } from 'react-native';
|
|
3
|
-
import { fallbackGetPalette, fallbackOfficeModule } from './fallbackOfficeModule';
|
|
4
|
-
function disableGetPalette() {
|
|
5
|
-
var disabled = __DEV__ && navigator && navigator.userAgent !== undefined;
|
|
6
|
-
disabled && console.warn(console.warn('Web Debugging forces Theming Native Module to fallback to fake color values.'));
|
|
7
|
-
return disabled;
|
|
8
|
-
}
|
|
9
|
-
export function getThemingModule() {
|
|
10
|
-
var module = TurboModuleRegistry.get('Theming');
|
|
11
|
-
// if the native module exists return the module + an emitter for it
|
|
12
|
-
if (module) {
|
|
13
|
-
// mock getPalette if it should be disabled, otherwise return the module directly
|
|
14
|
-
return [disableGetPalette() ? __assign(__assign({}, module), { getPalette: fallbackGetPalette }) : module, new NativeEventEmitter(module)];
|
|
15
|
-
}
|
|
16
|
-
// otherwise use the fallback module
|
|
17
|
-
return [fallbackOfficeModule, undefined];
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=getThemingModule.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getThemingModule.native.js","sourceRoot":"","sources":["../../src/NativeModule/getThemingModule.native.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEvE,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAUlF,SAAS,iBAAiB;IACxB,IAAM,QAAQ,GAAG,OAAO,IAAI,SAAS,IAAI,SAAS,CAAC,SAAS,KAAK,SAAS,CAAC;IAC3E,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8EAA8E,CAAC,CAAC,CAAC;IACvH,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,MAAM,UAAU,gBAAgB;IAC9B,IAAM,MAAM,GAAG,mBAAmB,CAAC,GAAG,CAAuB,SAAS,CAAC,CAAC;IACxE,oEAAoE;IACpE,IAAI,MAAM,EAAE;QACV,iFAAiF;QACjF,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC,uBAAM,MAAM,KAAE,UAAU,EAAE,kBAAkB,IAAG,CAAC,CAAC,MAAM,EAAE,IAAI,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC;KACvH;IAED,oCAAoC;IACpC,OAAO,CAAC,oBAAoB,EAAE,SAAS,CAAC,CAAC;AAC3C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/NativeModule/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/NativeModule/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC"}
|