@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.
Files changed (72) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/lib/BaselinePlatformDefaults.d.ts +1 -1
  3. package/lib/BaselinePlatformDefaults.js +2 -2
  4. package/lib/Global.d.ts +1 -1
  5. package/lib/Global.js +11 -11
  6. package/lib/NativeModule/ThemingModule.d.ts +2 -2
  7. package/lib/NativeModule/ThemingModule.js +1 -1
  8. package/lib/NativeModule/ThemingModule.types.d.ts +13 -13
  9. package/lib/NativeModule/ThemingModule.types.js +1 -1
  10. package/lib/NativeModule/ThemingModuleHelpers.d.ts +3 -8
  11. package/lib/NativeModule/ThemingModuleHelpers.js +36 -36
  12. package/lib/NativeModule/getHostSettings.d.ts +1 -1
  13. package/lib/NativeModule/getHostSettings.js +2 -2
  14. package/lib/NativeModule/index.d.ts +1 -1
  15. package/lib/NativeModule/index.js +1 -1
  16. package/lib/Theme.types.d.ts +1 -1
  17. package/lib/Theme.types.js +1 -1
  18. package/lib/ThemeContext.d.ts +1 -1
  19. package/lib/ThemeContext.js +1 -1
  20. package/lib/ThemeLayer.d.ts +24 -24
  21. package/lib/ThemeLayer.js +40 -42
  22. package/lib/ThemeProvider.d.ts +1 -1
  23. package/lib/ThemeProvider.js +21 -21
  24. package/lib/ThemeProvider.types.d.ts +3 -3
  25. package/lib/ThemeProvider.types.js +1 -1
  26. package/lib/index.d.ts +1 -1
  27. package/lib/index.js +1 -1
  28. package/lib/platform/PlatformDefaults.d.ts +2 -8
  29. package/lib/platform/PlatformDefaults.js +2 -2
  30. package/lib/platform/PlatformDefaults.native.d.ts +2 -8
  31. package/lib/platform/PlatformDefaults.native.js +6 -6
  32. package/lib/platform/index.d.ts +2 -2
  33. package/lib/platform/index.d.ts.map +1 -1
  34. package/lib/platform/index.js +2 -2
  35. package/lib/platform/index.js.map +1 -1
  36. package/lib-commonjs/BaselinePlatformDefaults.d.ts +1 -1
  37. package/lib-commonjs/BaselinePlatformDefaults.js +5 -5
  38. package/lib-commonjs/Global.d.ts +1 -1
  39. package/lib-commonjs/Global.js +14 -14
  40. package/lib-commonjs/NativeModule/ThemingModule.d.ts +2 -2
  41. package/lib-commonjs/NativeModule/ThemingModule.js +5 -5
  42. package/lib-commonjs/NativeModule/ThemingModule.types.d.ts +13 -13
  43. package/lib-commonjs/NativeModule/ThemingModule.types.js +3 -3
  44. package/lib-commonjs/NativeModule/ThemingModuleHelpers.d.ts +3 -8
  45. package/lib-commonjs/NativeModule/ThemingModuleHelpers.js +41 -44
  46. package/lib-commonjs/NativeModule/getHostSettings.d.ts +1 -1
  47. package/lib-commonjs/NativeModule/getHostSettings.js +4 -4
  48. package/lib-commonjs/NativeModule/index.d.ts +1 -1
  49. package/lib-commonjs/NativeModule/index.js +7 -17
  50. package/lib-commonjs/Theme.types.d.ts +1 -1
  51. package/lib-commonjs/Theme.types.js +3 -3
  52. package/lib-commonjs/ThemeContext.d.ts +1 -1
  53. package/lib-commonjs/ThemeContext.js +36 -63
  54. package/lib-commonjs/ThemeLayer.d.ts +24 -24
  55. package/lib-commonjs/ThemeLayer.js +74 -93
  56. package/lib-commonjs/ThemeProvider.d.ts +1 -1
  57. package/lib-commonjs/ThemeProvider.js +56 -75
  58. package/lib-commonjs/ThemeProvider.types.d.ts +3 -3
  59. package/lib-commonjs/ThemeProvider.types.js +3 -3
  60. package/lib-commonjs/index.d.ts +1 -1
  61. package/lib-commonjs/index.js +24 -108
  62. package/lib-commonjs/platform/PlatformDefaults.d.ts +2 -8
  63. package/lib-commonjs/platform/PlatformDefaults.js +7 -10
  64. package/lib-commonjs/platform/PlatformDefaults.native.d.ts +2 -8
  65. package/lib-commonjs/platform/PlatformDefaults.native.js +11 -14
  66. package/lib-commonjs/platform/index.d.ts +2 -2
  67. package/lib-commonjs/platform/index.d.ts.map +1 -1
  68. package/lib-commonjs/platform/index.js +6 -29
  69. package/lib-commonjs/platform/index.js.map +1 -1
  70. package/package.json +24 -23
  71. package/src/platform/index.ts +1 -1
  72. package/eslint.config.js +0 -3
@@ -1,20 +1,17 @@
1
- 'use strict';
2
- Object.defineProperty(exports, '__esModule', { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createPlatformThemeRegistry = createPlatformThemeRegistry;
4
- const theme_registry_1 = require('@uifabricshared/theme-registry');
5
- const theming_ramp_1 = require('@uifabricshared/theming-ramp');
6
- const NativeModule_1 = require('../NativeModule');
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
- const registry = (0, theme_registry_1.createThemeRegistry)(
12
- module.getPlatformDefaults(platformThemeId),
13
- theming_ramp_1.resolvePartialTheme,
14
- );
15
- module.addListener(() => {
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 * from './PlatformDefaults';
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,cAAc,oBAAoB,CAAC"}
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
- 'use strict';
2
- var __createBinding =
3
- (this && this.__createBinding) ||
4
- (Object.create
5
- ? function (o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
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":";;;;;;;;;;;;;;;;AAAA,qDAAmC"}
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.0",
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
- "license": "MIT",
12
- "author": "",
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-esm": "tsgo --outDir lib --module esnext --moduleResolution bundler",
27
+ "build-core": "tsgo --outDir lib --module esnext --moduleResolution bundler",
27
28
  "clean": "fluentui-scripts clean",
28
29
  "depcheck": "fluentui-scripts depcheck",
29
- "lint": "fluentui-scripts eslint",
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.0",
39
- "@fluentui-react-native/win32-theme": "0.39.0",
40
- "@uifabricshared/theme-registry": "0.13.0",
41
- "@uifabricshared/theming-ramp": "0.21.0"
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/eslint-config-rules": "0.1.1",
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/scripts": "0.1.2",
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.0",
55
- "react": "19.1.0",
56
- "react-native": "^0.81.0",
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.0",
63
- "react": "18.2.0 || 19.0.0 || 19.1.0",
64
- "react-native": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0",
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
  },
@@ -1 +1 @@
1
- export * from './PlatformDefaults';
1
+ export { createPlatformThemeRegistry } from './PlatformDefaults';
package/eslint.config.js DELETED
@@ -1,3 +0,0 @@
1
- const baseConfig = require('@fluentui-react-native/eslint-config-rules');
2
-
3
- module.exports = baseConfig;