@fluentui-react-native/win32-theme 0.34.13 → 0.34.15
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 +15 -0
- package/CHANGELOG.md +9 -1
- package/babel.config.js +1 -1
- package/lib/NativeModule/getThemingModule.native.js +1 -1
- package/lib/NativeModule/getThemingModule.native.js.map +1 -1
- package/lib-commonjs/NativeModule/getThemingModule.native.js +1 -1
- package/lib-commonjs/NativeModule/getThemingModule.native.js.map +1 -1
- package/lib-commonjs/getOfficeTokens.js +10 -8
- package/lib-commonjs/getOfficeTokens.js.map +1 -1
- package/lib-commonjs/highContrast/tokens-alias.js +4 -2
- package/lib-commonjs/highContrast/tokens-alias.js.map +1 -1
- package/package.json +9 -8
- package/src/NativeModule/getThemingModule.native.ts +1 -1
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/win32-theme",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"date": "Tue, 05 Aug 2025 18:46:03 GMT",
|
|
6
|
+
"version": "0.34.15",
|
|
7
|
+
"tag": "@fluentui-react-native/win32-theme_v0.34.15",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "jasonmo@microsoft.com",
|
|
12
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
13
|
+
"commit": "1ed213f1b48036479e39ace7f25f9a31f46042bf",
|
|
14
|
+
"comment": "move repo to pnpm, create babel and jest config packages, fix dependencies"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
4
19
|
{
|
|
5
20
|
"date": "Wed, 16 Jul 2025 20:06:44 GMT",
|
|
6
21
|
"version": "0.34.10",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
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, 05 Aug 2025 18:46:03 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.34.15
|
|
8
|
+
|
|
9
|
+
Tue, 05 Aug 2025 18:46:03 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- move repo to pnpm, create babel and jest config packages, fix dependencies (jasonmo@microsoft.com)
|
|
14
|
+
|
|
7
15
|
## 0.34.10
|
|
8
16
|
|
|
9
17
|
Wed, 16 Jul 2025 20:06:44 GMT
|
package/babel.config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = require('@fluentui-react-native/
|
|
1
|
+
module.exports = require('@fluentui-react-native/babel-config');
|
|
@@ -6,7 +6,7 @@ import { setCurrentHostThemeSetting } from './hostThemeSetting';
|
|
|
6
6
|
* react-native only polyfills navigator with { product: 'ReactNative', geolocation: NativeModules.Geolocation }
|
|
7
7
|
*/
|
|
8
8
|
function disableGetPalette() {
|
|
9
|
-
const disabled = __DEV__ && navigator && navigator.userAgent !== undefined;
|
|
9
|
+
const disabled = __DEV__ && typeof globalThis.navigator !== 'undefined' && globalThis.navigator.userAgent !== undefined;
|
|
10
10
|
disabled && console.warn(console.warn('Web Debugging forces Theming Native Module to fallback to fake color values.'));
|
|
11
11
|
return disabled;
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getThemingModule.native.js","sourceRoot":"","sources":["../../src/NativeModule/getThemingModule.native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEvE,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAClF,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAGhE;;;GAGG;A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CAAC,YAAY,EAAE,CAAC;YAE/C,2CAA2C;YAC3C,IAAI,iBAAiB,EAAE,EAAE;gBACvB,aAAa,GAAG,EAAE,GAAG,MAAM,EAAE,UAAU,EAAE,kBAAkB,EAAE,YAAY,EAAE,iBAAiB,EAAE,CAAC;aAChG;iBAAM;gBACL,aAAa,GAAG,EAAE,GAAG,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE,YAAY,EAAE,iBAAiB,EAAE,CAAC;aAC/F;YACD,oBAAoB,GAAG,IAAI,kBAAkB,CAAC,MAAM,CAAC,CAAC;SACvD;aAAM;YACL,aAAa,GAAG,oBAAoB,CAAC;SACtC;KACF;IAED,OAAO,CAAC,aAAa,EAAE,oBAAoB,CAAC,CAAC;AAC/C,CAAC;AAED,IAAI,cAAc,GAAG,KAAK,CAAC"}
|
|
@@ -9,7 +9,7 @@ const hostThemeSetting_1 = require("./hostThemeSetting");
|
|
|
9
9
|
* react-native only polyfills navigator with { product: 'ReactNative', geolocation: NativeModules.Geolocation }
|
|
10
10
|
*/
|
|
11
11
|
function disableGetPalette() {
|
|
12
|
-
const disabled = __DEV__ && navigator && navigator.userAgent !== undefined;
|
|
12
|
+
const disabled = __DEV__ && typeof globalThis.navigator !== 'undefined' && globalThis.navigator.userAgent !== undefined;
|
|
13
13
|
disabled && console.warn(console.warn('Web Debugging forces Theming Native Module to fallback to fake color values.'));
|
|
14
14
|
return disabled;
|
|
15
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getThemingModule.native.js","sourceRoot":"","sources":["../../src/NativeModule/getThemingModule.native.ts"],"names":[],"mappings":";;;AAAA,+CAAuE;AAEvE,iEAAkF;AAClF,yDAAgE;AAGhE;;;GAGG;AAEH,SAAS,iBAAiB;IACxB,MAAM,QAAQ,GAAG,OAAO,IAAI,SAAS,IAAI,SAAS,CAAC,SAAS,KAAK,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"getThemingModule.native.js","sourceRoot":"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E,CAAC;aAC/F;YACD,oBAAoB,GAAG,IAAI,iCAAkB,CAAC,MAAM,CAAC,CAAC;SACvD;aAAM;YACL,aAAa,GAAG,2CAAoB,CAAC;SACtC;KACF;IAED,OAAO,CAAC,aAAa,EAAE,oBAAoB,CAAC,CAAC;AAC/C,CAAC;AA5BD,4CA4BC;AAED,IAAI,cAAc,GAAG,KAAK,CAAC"}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.getOfficeShadowTokens = exports.getOfficeAliasTokens = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const tokens_shadow_json_4 = tslib_1.__importDefault(require("@fluentui-react-native/design-tokens-win32/hc/tokens-shadow.json"));
|
|
7
|
+
const tokens_aliases_json_1 = __importDefault(require("@fluentui-react-native/design-tokens-win32/black/tokens-aliases.json"));
|
|
8
|
+
const tokens_shadow_json_1 = __importDefault(require("@fluentui-react-native/design-tokens-win32/black/tokens-shadow.json"));
|
|
9
|
+
const tokens_aliases_json_2 = __importDefault(require("@fluentui-react-native/design-tokens-win32/colorful/tokens-aliases.json"));
|
|
10
|
+
const tokens_shadow_json_2 = __importDefault(require("@fluentui-react-native/design-tokens-win32/colorful/tokens-shadow.json"));
|
|
11
|
+
const tokens_aliases_json_3 = __importDefault(require("@fluentui-react-native/design-tokens-win32/darkgray/tokens-aliases.json"));
|
|
12
|
+
const tokens_shadow_json_3 = __importDefault(require("@fluentui-react-native/design-tokens-win32/darkgray/tokens-shadow.json"));
|
|
13
|
+
const tokens_shadow_json_4 = __importDefault(require("@fluentui-react-native/design-tokens-win32/hc/tokens-shadow.json"));
|
|
12
14
|
const tokens_alias_1 = require("./highContrast/tokens-alias");
|
|
13
15
|
function getOfficeAliasTokens(officeTheme) {
|
|
14
16
|
if (officeTheme === 'White' || officeTheme === 'Colorful') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getOfficeTokens.js","sourceRoot":"","sources":["../src/getOfficeTokens.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getOfficeTokens.js","sourceRoot":"","sources":["../src/getOfficeTokens.ts"],"names":[],"mappings":";;;;;;AAAA,+HAAoG;AACpG,6HAAoG;AACpG,kIAA0G;AAC1G,gIAA0G;AAC1G,kIAA0G;AAC1G,gIAA0G;AAC1G,0HAA8F;AAE9F,8DAA4D;AAE5D,SAAgB,oBAAoB,CAAC,WAAmB;IACtD,IAAI,WAAW,KAAK,OAAO,IAAI,WAAW,KAAK,UAAU,EAAE;QACzD,OAAO,6BAAmB,CAAC;KAC5B;SAAM,IAAI,WAAW,KAAK,UAAU,EAAE;QACrC,OAAO,6BAAmB,CAAC;KAC5B;SAAM,IAAI,WAAW,KAAK,OAAO,EAAE;QAClC,OAAO,6BAAgB,CAAC;KACzB;SAAM,IAAI,WAAW,KAAK,cAAc,EAAE;QACzC,OAAO,4BAAa,CAAC;KACtB;IAED,OAAO,6BAAmB,CAAC;AAC7B,CAAC;AAZD,oDAYC;AAED,SAAgB,qBAAqB,CAAC,WAAmB;IACvD,IAAI,WAAW,KAAK,OAAO,IAAI,WAAW,KAAK,UAAU,EAAE;QACzD,OAAO,4BAAoB,CAAC;KAC7B;SAAM,IAAI,WAAW,KAAK,UAAU,EAAE;QACrC,OAAO,4BAAoB,CAAC;KAC7B;SAAM,IAAI,WAAW,KAAK,OAAO,EAAE;QAClC,OAAO,4BAAiB,CAAC;KAC1B;SAAM,IAAI,WAAW,KAAK,cAAc,EAAE;QACzC,OAAO,4BAAc,CAAC;KACvB;IAED,OAAO,6BAAmB,CAAC;AAC7B,CAAC;AAZD,sDAYC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.hcAliasTokens = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
7
|
const react_native_1 = require("react-native");
|
|
6
|
-
const tokens_aliases_json_1 =
|
|
8
|
+
const tokens_aliases_json_1 = __importDefault(require("@fluentui-react-native/design-tokens-win32/hc/tokens-aliases.json"));
|
|
7
9
|
exports.hcAliasTokens = processAliasTokens(tokens_aliases_json_1.default);
|
|
8
10
|
function processAliasTokens(aliasTokens) {
|
|
9
11
|
for (const key in aliasTokens) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens-alias.js","sourceRoot":"","sources":["../../src/highContrast/tokens-alias.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tokens-alias.js","sourceRoot":"","sources":["../../src/highContrast/tokens-alias.ts"],"names":[],"mappings":";;;;;;AAAA,+CAA6C;AAE7C,4HAA4F;AAE/E,QAAA,aAAa,GAAG,kBAAkB,CAAC,6BAAW,CAAC,CAAC;AAE7D,SAAS,kBAAkB,CAAC,WAAgB;IAC1C,KAAK,MAAM,GAAG,IAAI,WAAW,EAAE;QAC7B,KAAK,MAAM,QAAQ,IAAI,WAAW,CAAC,GAAG,CAAC,EAAE;YACvC,MAAM,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,MAAM,KAAK,GAAG,KAAK,CAAC,SAAS,CAAC,EAAE,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;gBACpD,yDAAyD;gBACzD,WAAW,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,GAAG,IAAA,4BAAa,EAAC,KAAK,CAAC,CAAC;aACnD;SACF;KACF;IAED,OAAO,WAAW,CAAC;AACrB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/win32-theme",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.15",
|
|
4
4
|
"description": "Win32 office theme that works with the theming native module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,18 +35,19 @@
|
|
|
35
35
|
"author": "",
|
|
36
36
|
"license": "MIT",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@fluentui-react-native/default-theme": "0.26.
|
|
38
|
+
"@fluentui-react-native/default-theme": "0.26.12",
|
|
39
39
|
"@fluentui-react-native/design-tokens-win32": "^0.53.0",
|
|
40
|
-
"@fluentui-react-native/framework-base": "0.1
|
|
41
|
-
"@fluentui-react-native/theme": "0.11.
|
|
42
|
-
"@fluentui-react-native/theme-tokens": "0.27.
|
|
43
|
-
"@fluentui-react-native/theme-types": "0.39.
|
|
44
|
-
"@fluentui-react-native/theming-utils": "0.26.
|
|
45
|
-
"tslib": "^2.3.1"
|
|
40
|
+
"@fluentui-react-native/framework-base": "0.2.1",
|
|
41
|
+
"@fluentui-react-native/theme": "0.11.11",
|
|
42
|
+
"@fluentui-react-native/theme-tokens": "0.27.6",
|
|
43
|
+
"@fluentui-react-native/theme-types": "0.39.6",
|
|
44
|
+
"@fluentui-react-native/theming-utils": "0.26.6"
|
|
46
45
|
},
|
|
47
46
|
"devDependencies": {
|
|
48
47
|
"@babel/core": "^7.20.0",
|
|
48
|
+
"@fluentui-react-native/babel-config": "0.1.1",
|
|
49
49
|
"@fluentui-react-native/eslint-config-rules": "0.1.1",
|
|
50
|
+
"@fluentui-react-native/jest-config": "0.1.1",
|
|
50
51
|
"@fluentui-react-native/scripts": "0.1.1",
|
|
51
52
|
"@office-iss/react-native-win32": "^0.74.0",
|
|
52
53
|
"@react-native/babel-preset": "^0.74.0",
|
|
@@ -10,7 +10,7 @@ import type { OfficeThemingModule } from './officeThemingModule';
|
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
function disableGetPalette(): boolean {
|
|
13
|
-
const disabled = __DEV__ && navigator && navigator.userAgent !== undefined;
|
|
13
|
+
const disabled = __DEV__ && typeof globalThis.navigator !== 'undefined' && globalThis.navigator.userAgent !== undefined;
|
|
14
14
|
disabled && console.warn(console.warn('Web Debugging forces Theming Native Module to fallback to fake color values.'));
|
|
15
15
|
return disabled;
|
|
16
16
|
}
|