@uifabricshared/theming-react-native 0.21.0 → 0.21.3
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.md +35 -0
- package/lib/BaselinePlatformDefaults.d.ts +1 -1
- package/lib/BaselinePlatformDefaults.js +2 -2
- package/lib/Global.d.ts +1 -1
- package/lib/Global.js +11 -11
- package/lib/NativeModule/ThemingModule.d.ts +2 -2
- package/lib/NativeModule/ThemingModule.js +1 -1
- package/lib/NativeModule/ThemingModule.types.d.ts +13 -13
- package/lib/NativeModule/ThemingModule.types.js +1 -1
- package/lib/NativeModule/ThemingModuleHelpers.d.ts +3 -8
- package/lib/NativeModule/ThemingModuleHelpers.js +36 -36
- package/lib/NativeModule/getHostSettings.d.ts +1 -1
- package/lib/NativeModule/getHostSettings.js +2 -2
- package/lib/NativeModule/index.d.ts +1 -1
- package/lib/NativeModule/index.js +1 -1
- package/lib/Theme.types.d.ts +1 -1
- package/lib/Theme.types.js +1 -1
- package/lib/ThemeContext.d.ts +1 -1
- package/lib/ThemeContext.js +1 -1
- package/lib/ThemeLayer.d.ts +24 -24
- package/lib/ThemeLayer.js +40 -42
- package/lib/ThemeProvider.d.ts +1 -1
- package/lib/ThemeProvider.js +21 -21
- package/lib/ThemeProvider.types.d.ts +3 -3
- package/lib/ThemeProvider.types.js +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/platform/PlatformDefaults.d.ts +2 -8
- package/lib/platform/PlatformDefaults.js +2 -2
- package/lib/platform/PlatformDefaults.native.d.ts +2 -8
- package/lib/platform/PlatformDefaults.native.js +6 -6
- package/lib/platform/index.d.ts +2 -2
- package/lib/platform/index.d.ts.map +1 -1
- package/lib/platform/index.js +2 -2
- package/lib/platform/index.js.map +1 -1
- package/lib-commonjs/BaselinePlatformDefaults.d.ts +1 -1
- package/lib-commonjs/BaselinePlatformDefaults.js +5 -5
- package/lib-commonjs/Global.d.ts +1 -1
- package/lib-commonjs/Global.js +14 -14
- package/lib-commonjs/NativeModule/ThemingModule.d.ts +2 -2
- package/lib-commonjs/NativeModule/ThemingModule.js +5 -5
- package/lib-commonjs/NativeModule/ThemingModule.types.d.ts +13 -13
- package/lib-commonjs/NativeModule/ThemingModule.types.js +3 -3
- package/lib-commonjs/NativeModule/ThemingModuleHelpers.d.ts +3 -8
- package/lib-commonjs/NativeModule/ThemingModuleHelpers.js +41 -44
- package/lib-commonjs/NativeModule/getHostSettings.d.ts +1 -1
- package/lib-commonjs/NativeModule/getHostSettings.js +4 -4
- package/lib-commonjs/NativeModule/index.d.ts +1 -1
- package/lib-commonjs/NativeModule/index.js +7 -17
- package/lib-commonjs/Theme.types.d.ts +1 -1
- package/lib-commonjs/Theme.types.js +3 -3
- package/lib-commonjs/ThemeContext.d.ts +1 -1
- package/lib-commonjs/ThemeContext.js +36 -63
- package/lib-commonjs/ThemeLayer.d.ts +24 -24
- package/lib-commonjs/ThemeLayer.js +74 -93
- package/lib-commonjs/ThemeProvider.d.ts +1 -1
- package/lib-commonjs/ThemeProvider.js +56 -75
- package/lib-commonjs/ThemeProvider.types.d.ts +3 -3
- package/lib-commonjs/ThemeProvider.types.js +3 -3
- package/lib-commonjs/index.d.ts +1 -1
- package/lib-commonjs/index.js +24 -108
- package/lib-commonjs/platform/PlatformDefaults.d.ts +2 -8
- package/lib-commonjs/platform/PlatformDefaults.js +7 -10
- package/lib-commonjs/platform/PlatformDefaults.native.d.ts +2 -8
- package/lib-commonjs/platform/PlatformDefaults.native.js +11 -14
- package/lib-commonjs/platform/index.d.ts +2 -2
- package/lib-commonjs/platform/index.d.ts.map +1 -1
- package/lib-commonjs/platform/index.js +6 -29
- package/lib-commonjs/platform/index.js.map +1 -1
- package/package.json +24 -23
- package/src/platform/index.ts +1 -1
- package/eslint.config.js +0 -3
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createPlatformThemeRegistry = createPlatformThemeRegistry;
|
|
4
|
-
const theme_registry_1 = require(
|
|
5
|
-
const theming_ramp_1 = require(
|
|
6
|
-
const NativeModule_1 = require(
|
|
4
|
+
const theme_registry_1 = require("@uifabricshared/theme-registry");
|
|
5
|
+
const theming_ramp_1 = require("@uifabricshared/theming-ramp");
|
|
6
|
+
const NativeModule_1 = require("../NativeModule");
|
|
7
7
|
/**
|
|
8
8
|
* @deprecated
|
|
9
9
|
*/
|
|
10
10
|
function createPlatformThemeRegistry(platformThemeId, module = NativeModule_1.ThemingModuleHelper) {
|
|
11
|
-
|
|
12
|
-
module.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
registry.updatePlatformDefaults(module.getPlatformDefaults(platformThemeId));
|
|
17
|
-
});
|
|
18
|
-
return registry;
|
|
11
|
+
const registry = (0, theme_registry_1.createThemeRegistry)(module.getPlatformDefaults(platformThemeId), theming_ramp_1.resolvePartialTheme);
|
|
12
|
+
module.addListener(() => {
|
|
13
|
+
registry.updatePlatformDefaults(module.getPlatformDefaults(platformThemeId));
|
|
14
|
+
});
|
|
15
|
+
return registry;
|
|
19
16
|
}
|
|
20
|
-
//# sourceMappingURL=PlatformDefaults.native.js.map
|
|
17
|
+
//# sourceMappingURL=PlatformDefaults.native.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export { createPlatformThemeRegistry } from './PlatformDefaults';
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/platform/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/platform/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,29 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ('get' in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function () {
|
|
12
|
-
return m[k];
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
Object.defineProperty(o, k2, desc);
|
|
17
|
-
}
|
|
18
|
-
: function (o, m, k, k2) {
|
|
19
|
-
if (k2 === undefined) k2 = k;
|
|
20
|
-
o[k2] = m[k];
|
|
21
|
-
});
|
|
22
|
-
var __exportStar =
|
|
23
|
-
(this && this.__exportStar) ||
|
|
24
|
-
function (m, exports) {
|
|
25
|
-
for (var p in m) if (p !== 'default' && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
26
|
-
};
|
|
27
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
28
|
-
__exportStar(require('./PlatformDefaults'), exports);
|
|
29
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createPlatformThemeRegistry = void 0;
|
|
4
|
+
const PlatformDefaults_1 = require("./PlatformDefaults");
|
|
5
|
+
Object.defineProperty(exports, "createPlatformThemeRegistry", { enumerable: true, get: function () { return PlatformDefaults_1.createPlatformThemeRegistry; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/platform/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/platform/index.ts"],"names":[],"mappings":";;;AAAA,yDAAiE;AAAxD,+HAAA,2BAA2B,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,67 +1,68 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uifabricshared/theming-react-native",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.3",
|
|
4
4
|
"description": "A library of functions which produce React Native styles from a Theme",
|
|
5
5
|
"keywords": [],
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "",
|
|
6
8
|
"repository": {
|
|
7
9
|
"type": "git",
|
|
8
10
|
"url": "https://github.com/microsoft/fluentui-react-native.git",
|
|
9
11
|
"directory": "packages/deprecated/theming-react-native"
|
|
10
12
|
},
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
+
"main": "lib-commonjs/index.js",
|
|
14
|
+
"module": "lib/index.js",
|
|
15
|
+
"types": "lib/index.d.ts",
|
|
13
16
|
"exports": {
|
|
14
17
|
".": {
|
|
15
18
|
"types": "./lib/index.d.ts",
|
|
16
19
|
"import": "./lib/index.js",
|
|
17
|
-
"require": "./lib-commonjs/index.js"
|
|
20
|
+
"require": "./lib-commonjs/index.js",
|
|
21
|
+
"default": "./src/index.ts"
|
|
18
22
|
}
|
|
19
23
|
},
|
|
20
|
-
"main": "lib-commonjs/index.js",
|
|
21
|
-
"module": "lib/index.js",
|
|
22
|
-
"types": "lib/index.d.ts",
|
|
23
24
|
"scripts": {
|
|
24
25
|
"build": "fluentui-scripts build",
|
|
25
26
|
"build-cjs": "tsgo --outDir lib-commonjs",
|
|
26
|
-
"build-
|
|
27
|
+
"build-core": "tsgo --outDir lib --module esnext --moduleResolution bundler",
|
|
27
28
|
"clean": "fluentui-scripts clean",
|
|
28
29
|
"depcheck": "fluentui-scripts depcheck",
|
|
29
|
-
"
|
|
30
|
+
"format": "fluentui-scripts format",
|
|
31
|
+
"lint": "fluentui-scripts lint",
|
|
30
32
|
"lint-package": "fluentui-scripts lint-package",
|
|
31
|
-
"prettier": "fluentui-scripts prettier",
|
|
32
33
|
"start": "fluentui-scripts dev",
|
|
33
34
|
"start-test": "fluentui-scripts jest-watch",
|
|
34
35
|
"test": "fluentui-scripts jest",
|
|
35
36
|
"update-snapshots": "fluentui-scripts jest -u"
|
|
36
37
|
},
|
|
37
38
|
"dependencies": {
|
|
38
|
-
"@fluentui-react-native/default-theme": "0.27.
|
|
39
|
-
"@fluentui-react-native/win32-theme": "0.39.
|
|
40
|
-
"@uifabricshared/theme-registry": "0.13.
|
|
41
|
-
"@uifabricshared/theming-ramp": "0.21.
|
|
39
|
+
"@fluentui-react-native/default-theme": "0.27.3",
|
|
40
|
+
"@fluentui-react-native/win32-theme": "0.39.3",
|
|
41
|
+
"@uifabricshared/theme-registry": "0.13.3",
|
|
42
|
+
"@uifabricshared/theming-ramp": "0.21.3"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
45
|
"@babel/core": "^7.20.0",
|
|
45
46
|
"@fluentui-react-native/babel-config": "0.1.1",
|
|
46
|
-
"@fluentui-react-native/
|
|
47
|
-
"@fluentui-react-native/framework-base": "0.3.0",
|
|
47
|
+
"@fluentui-react-native/framework-base": "0.3.3",
|
|
48
48
|
"@fluentui-react-native/kit-config": "0.1.2",
|
|
49
|
-
"@fluentui-react-native/
|
|
49
|
+
"@fluentui-react-native/lint-config-rules": "0.1.3",
|
|
50
|
+
"@fluentui-react-native/scripts": "0.1.0",
|
|
50
51
|
"@react-native-community/cli": "^20.0.0",
|
|
51
52
|
"@react-native-community/cli-platform-android": "^20.0.0",
|
|
52
53
|
"@react-native-community/cli-platform-ios": "^20.0.0",
|
|
53
54
|
"@react-native/metro-config": "^0.81.0",
|
|
54
|
-
"@types/react": "~19.1.
|
|
55
|
-
"react": "19.1.
|
|
56
|
-
"react-native": "^0.81.
|
|
55
|
+
"@types/react": "~19.1.4",
|
|
56
|
+
"react": "19.1.4",
|
|
57
|
+
"react-native": "^0.81.6",
|
|
57
58
|
"react-native-macos": "^0.81.0",
|
|
58
59
|
"react-native-windows": "^0.81.0"
|
|
59
60
|
},
|
|
60
61
|
"peerDependencies": {
|
|
61
62
|
"@office-iss/react-native-win32": "^0.74.0",
|
|
62
|
-
"@types/react": "~18.2.0 || ~19.0.0 || ~19.1.
|
|
63
|
-
"react": "18.2.0 || 19.0.0 || 19.1.
|
|
64
|
-
"react-native": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.
|
|
63
|
+
"@types/react": "~18.2.0 || ~19.0.0 || ~19.1.4",
|
|
64
|
+
"react": "18.2.0 || 19.0.0 || 19.1.4",
|
|
65
|
+
"react-native": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.6",
|
|
65
66
|
"react-native-macos": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0",
|
|
66
67
|
"react-native-windows": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0"
|
|
67
68
|
},
|
package/src/platform/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { createPlatformThemeRegistry } from './PlatformDefaults';
|
package/eslint.config.js
DELETED