@uifabricshared/theming-react-native 0.13.2 → 0.13.6

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 (42) hide show
  1. package/CHANGELOG.json +115 -1
  2. package/CHANGELOG.md +43 -2
  3. package/lib/NativeModule/ThemingModule.types.js +1 -0
  4. package/lib/NativeModule/getHostSettings.js.map +1 -1
  5. package/lib/NativeModule/index.js +1 -0
  6. package/lib/NativeModule/index.js.map +1 -1
  7. package/lib/Theme.types.js +1 -0
  8. package/lib/ThemeLayer.js +3 -1
  9. package/lib/ThemeLayer.js.map +1 -1
  10. package/lib/ThemeProvider.js.map +1 -1
  11. package/lib/ThemeProvider.types.js +1 -0
  12. package/lib/index.js +2 -0
  13. package/lib/index.js.map +1 -1
  14. package/lib-commonjs/BaselinePlatformDefaults.js +1 -0
  15. package/lib-commonjs/BaselinePlatformDefaults.js.map +1 -1
  16. package/lib-commonjs/Global.js +2 -1
  17. package/lib-commonjs/Global.js.map +1 -1
  18. package/lib-commonjs/NativeModule/ThemingModule.js +2 -1
  19. package/lib-commonjs/NativeModule/ThemingModule.js.map +1 -1
  20. package/lib-commonjs/NativeModule/ThemingModuleHelpers.js +3 -2
  21. package/lib-commonjs/NativeModule/ThemingModuleHelpers.js.map +1 -1
  22. package/lib-commonjs/NativeModule/getHostSettings.js +1 -0
  23. package/lib-commonjs/NativeModule/getHostSettings.js.map +1 -1
  24. package/lib-commonjs/NativeModule/index.js +13 -5
  25. package/lib-commonjs/NativeModule/index.js.map +1 -1
  26. package/lib-commonjs/TSUtils.js +1 -0
  27. package/lib-commonjs/TSUtils.js.map +1 -1
  28. package/lib-commonjs/ThemeContext.js +19 -5
  29. package/lib-commonjs/ThemeContext.js.map +1 -1
  30. package/lib-commonjs/ThemeLayer.js +21 -6
  31. package/lib-commonjs/ThemeLayer.js.map +1 -1
  32. package/lib-commonjs/ThemeProvider.js +18 -4
  33. package/lib-commonjs/ThemeProvider.js.map +1 -1
  34. package/lib-commonjs/index.js +23 -13
  35. package/lib-commonjs/index.js.map +1 -1
  36. package/lib-commonjs/platform/PlatformDefaults.js +2 -1
  37. package/lib-commonjs/platform/PlatformDefaults.js.map +1 -1
  38. package/lib-commonjs/platform/PlatformDefaults.native.js +2 -1
  39. package/lib-commonjs/platform/PlatformDefaults.native.js.map +1 -1
  40. package/lib-commonjs/platform/index.js +11 -4
  41. package/lib-commonjs/platform/index.js.map +1 -1
  42. package/package.json +11 -6
package/CHANGELOG.json CHANGED
@@ -2,7 +2,121 @@
2
2
  "name": "@uifabricshared/theming-react-native",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 17 Dec 2021 01:23:52 GMT",
5
+ "date": "Thu, 06 Jan 2022 21:27:02 GMT",
6
+ "tag": "@uifabricshared/theming-react-native_v0.13.6",
7
+ "version": "0.13.6",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "beachball",
12
+ "package": "@uifabricshared/theming-react-native",
13
+ "comment": "Bump @fluentui-react-native/default-theme to v0.9.5",
14
+ "commit": "06307699c93ffe31a57f8f1c1fb60beec83583e0"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@uifabricshared/theming-react-native",
19
+ "comment": "Bump @fluentui-react-native/win32-theme to v0.14.6",
20
+ "commit": "06307699c93ffe31a57f8f1c1fb60beec83583e0"
21
+ }
22
+ ]
23
+ }
24
+ },
25
+ {
26
+ "date": "Wed, 05 Jan 2022 19:33:53 GMT",
27
+ "tag": "@uifabricshared/theming-react-native_v0.13.5",
28
+ "version": "0.13.5",
29
+ "comments": {
30
+ "patch": [
31
+ {
32
+ "author": "beachball",
33
+ "package": "@uifabricshared/theming-react-native",
34
+ "comment": "Bump @fluentui-react-native/win32-theme to v0.14.5",
35
+ "commit": "32fe9fb425d57d69cbed8b127798d000c8c3a836"
36
+ }
37
+ ]
38
+ }
39
+ },
40
+ {
41
+ "date": "Mon, 20 Dec 2021 22:56:02 GMT",
42
+ "tag": "@uifabricshared/theming-react-native_v0.13.4",
43
+ "version": "0.13.4",
44
+ "comments": {
45
+ "patch": [
46
+ {
47
+ "author": "ruaraki@microsoft.com",
48
+ "package": "@uifabricshared/theming-react-native",
49
+ "commit": "f4a5b4f5c9c190400e3e34c4a33b3ed30696d41e",
50
+ "comment": "Add repository property to all package.json files"
51
+ },
52
+ {
53
+ "author": "beachball",
54
+ "package": "@uifabricshared/theming-react-native",
55
+ "comment": "Bump @fluentui-react-native/default-theme to v0.9.4",
56
+ "commit": "bc86b4fbf5f07c0bfbc950a1a99a3cf4b35807d1"
57
+ },
58
+ {
59
+ "author": "beachball",
60
+ "package": "@uifabricshared/theming-react-native",
61
+ "comment": "Bump @fluentui-react-native/win32-theme to v0.14.4",
62
+ "commit": "bc86b4fbf5f07c0bfbc950a1a99a3cf4b35807d1"
63
+ },
64
+ {
65
+ "author": "beachball",
66
+ "package": "@uifabricshared/theming-react-native",
67
+ "comment": "Bump @uifabricshared/theme-registry to v0.7.2",
68
+ "commit": "bc86b4fbf5f07c0bfbc950a1a99a3cf4b35807d1"
69
+ },
70
+ {
71
+ "author": "beachball",
72
+ "package": "@uifabricshared/theming-react-native",
73
+ "comment": "Bump @uifabricshared/theming-ramp to v0.16.2",
74
+ "commit": "bc86b4fbf5f07c0bfbc950a1a99a3cf4b35807d1"
75
+ }
76
+ ]
77
+ }
78
+ },
79
+ {
80
+ "date": "Sat, 18 Dec 2021 04:15:05 GMT",
81
+ "tag": "@uifabricshared/theming-react-native_v0.13.3",
82
+ "version": "0.13.3",
83
+ "comments": {
84
+ "patch": [
85
+ {
86
+ "author": "afoxman@microsoft.com",
87
+ "package": "@uifabricshared/theming-react-native",
88
+ "commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789",
89
+ "comment": "Update to TypeScript 4.5.4."
90
+ },
91
+ {
92
+ "author": "beachball",
93
+ "package": "@uifabricshared/theming-react-native",
94
+ "comment": "Bump @fluentui-react-native/default-theme to v0.9.3",
95
+ "commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
96
+ },
97
+ {
98
+ "author": "beachball",
99
+ "package": "@uifabricshared/theming-react-native",
100
+ "comment": "Bump @fluentui-react-native/win32-theme to v0.14.3",
101
+ "commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
102
+ },
103
+ {
104
+ "author": "beachball",
105
+ "package": "@uifabricshared/theming-react-native",
106
+ "comment": "Bump @uifabricshared/theme-registry to v0.7.1",
107
+ "commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
108
+ },
109
+ {
110
+ "author": "beachball",
111
+ "package": "@uifabricshared/theming-react-native",
112
+ "comment": "Bump @uifabricshared/theming-ramp to v0.16.1",
113
+ "commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
114
+ }
115
+ ]
116
+ }
117
+ },
118
+ {
119
+ "date": "Fri, 17 Dec 2021 01:26:42 GMT",
6
120
  "tag": "@uifabricshared/theming-react-native_v0.13.2",
7
121
  "version": "0.13.2",
8
122
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,53 @@
1
1
  # Change Log - @uifabricshared/theming-react-native
2
2
 
3
- This log was last generated on Fri, 17 Dec 2021 01:23:52 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 06 Jan 2022 21:27:02 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.13.6
8
+
9
+ Thu, 06 Jan 2022 21:27:02 GMT
10
+
11
+ ### Patches
12
+
13
+ - Bump @fluentui-react-native/default-theme to v0.9.5
14
+ - Bump @fluentui-react-native/win32-theme to v0.14.6
15
+
16
+ ## 0.13.5
17
+
18
+ Wed, 05 Jan 2022 19:33:53 GMT
19
+
20
+ ### Patches
21
+
22
+ - Bump @fluentui-react-native/win32-theme to v0.14.5
23
+
24
+ ## 0.13.4
25
+
26
+ Mon, 20 Dec 2021 22:56:02 GMT
27
+
28
+ ### Patches
29
+
30
+ - Add repository property to all package.json files (ruaraki@microsoft.com)
31
+ - Bump @fluentui-react-native/default-theme to v0.9.4
32
+ - Bump @fluentui-react-native/win32-theme to v0.14.4
33
+ - Bump @uifabricshared/theme-registry to v0.7.2
34
+ - Bump @uifabricshared/theming-ramp to v0.16.2
35
+
36
+ ## 0.13.3
37
+
38
+ Sat, 18 Dec 2021 04:15:05 GMT
39
+
40
+ ### Patches
41
+
42
+ - Update to TypeScript 4.5.4. (afoxman@microsoft.com)
43
+ - Bump @fluentui-react-native/default-theme to v0.9.3
44
+ - Bump @fluentui-react-native/win32-theme to v0.14.3
45
+ - Bump @uifabricshared/theme-registry to v0.7.1
46
+ - Bump @uifabricshared/theming-ramp to v0.16.1
47
+
7
48
  ## 0.13.2
8
49
 
9
- Fri, 17 Dec 2021 01:23:52 GMT
50
+ Fri, 17 Dec 2021 01:26:42 GMT
10
51
 
11
52
  ### Patches
12
53
 
@@ -1 +1,2 @@
1
+ export {};
1
2
  //# sourceMappingURL=ThemingModule.types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getHostSettings.js","sourceRoot":"","sources":["../../src/NativeModule/getHostSettings.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,oBAAoB,CAAC,KAAa;;IAChD,OAAO,OAAA,KAAK,CAAC,IAAI,0CAAE,OAAO,EAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;AACtD,CAAC"}
1
+ {"version":3,"file":"getHostSettings.js","sourceRoot":"","sources":["../../src/NativeModule/getHostSettings.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,oBAAoB,CAAC,KAAa;;IAChD,OAAO,CAAA,MAAA,KAAK,CAAC,IAAI,0CAAE,OAAO,EAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;AACtD,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export * from './ThemingModule';
2
+ export * from './ThemingModule.types';
2
3
  export * from './getHostSettings';
3
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/NativeModule/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAEhC,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/NativeModule/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC"}
@@ -1 +1,2 @@
1
+ export {};
1
2
  //# sourceMappingURL=Theme.types.js.map
package/lib/ThemeLayer.js CHANGED
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeLayer.js","sourceRoot":"","sources":["../src/ThemeLayer.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,2BAA2B,EAAE,QAAQ,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAE3F,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAoB5D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH;IAAgC,8BAAiC;IAAjE;QAAA,qEAkDC;QA3CC,iEAAiE;QAC1D,kBAAY,GAAwC,UAAC,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,EAAE,aAAa,QAAqD,CAAC;IAEjF,KAAK,CAAC,SAAS,CAAC;QACd,aAAa,CAAC,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;QAEjD,IAAM,gBAAgB,GAAwB;YAC5C,YAAY,EAAE,UAAC,IAAY;gBACzB,IAAI,KAAK,SAAS,IAAI,aAAa,CAAC,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;YACzE,CAAC;SACF,CAAC;QAEF,aAAa,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;QACjD,OAAO;YACL,aAAa,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;QACtD,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,aAAa,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC;IAE9C,IAAM,aAAa,GAAG,oBAAC,YAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,IAAG,QAAQ,CAAyB,CAAC;IAE9F,oFAAoF;IACpF,OAAO,iBAAiB,CAAC,CAAC,CAAC,CACzB,oBAAC,oBAAoB,CAAC,QAAQ,IAAC,KAAK,EAAE,iBAAiB,IAAG,aAAa,CAAiC,CACzG,CAAC,CAAC,CAAC,CACF,aAAa,CACd,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
1
  /* eslint-disable */
2
+ export {};
2
3
  //# sourceMappingURL=ThemeProvider.types.js.map
package/lib/index.js CHANGED
@@ -1,7 +1,9 @@
1
1
  export { addThemeRegistryListener, removeThemeRegistryListener, setTheme, getTheme, augmentPlatformTheme } from './Global';
2
+ export * from './Theme.types';
2
3
  export { ThemeLayer } from './ThemeLayer';
3
4
  export * from './platform';
4
5
  export * from './ThemeProvider';
6
+ export * from './ThemeProvider.types';
5
7
  export * from './ThemeContext';
6
8
  export * from './NativeModule';
7
9
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,QAAQ,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAE3H,OAAO,EAAoB,UAAU,EAAE,MAAM,cAAc,CAAC;AAC5D,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAEhC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,QAAQ,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAC3H,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAoB,UAAU,EAAE,MAAM,cAAc,CAAC;AAC5D,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getBaselinePlatformTheme = void 0;
3
4
  var default_theme_1 = require("@fluentui-react-native/default-theme");
4
5
  function getBaselinePlatformTheme() {
5
6
  return default_theme_1.defaultFluentTheme;
@@ -1 +1 @@
1
- {"version":3,"file":"BaselinePlatformDefaults.js","sourceRoot":"","sources":["../src/BaselinePlatformDefaults.ts"],"names":[],"mappings":";;AACA,sEAA0E;AAE1E,SAAgB,wBAAwB;IACtC,OAAO,kCAAkB,CAAC;AAC5B,CAAC;AAFD,4DAEC"}
1
+ {"version":3,"file":"BaselinePlatformDefaults.js","sourceRoot":"","sources":["../src/BaselinePlatformDefaults.ts"],"names":[],"mappings":";;;AACA,sEAA0E;AAE1E,SAAgB,wBAAwB;IACtC,OAAO,kCAAkB,CAAC;AAC5B,CAAC;AAFD,4DAEC"}
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.augmentPlatformTheme = exports.getTheme = exports.removeThemeRegistryListener = exports.addThemeRegistryListener = exports.setTheme = exports.setThemeRegistry = exports.getThemeRegistry = void 0;
3
4
  var platform_1 = require("./platform");
4
5
  var _registry;
5
6
  /**
@@ -8,7 +9,7 @@ var _registry;
8
9
  */
9
10
  function getThemeRegistry() {
10
11
  if (!_registry) {
11
- _registry = platform_1.createPlatformThemeRegistry();
12
+ _registry = (0, platform_1.createPlatformThemeRegistry)();
12
13
  }
13
14
  return _registry;
14
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Global.js","sourceRoot":"","sources":["../src/Global.ts"],"names":[],"mappings":";;AACA,uCAAyD;AAGzD,IAAI,SAAwB,CAAC;AAE7B;;;GAGG;AACH,SAAgB,gBAAgB;IAC9B,IAAI,CAAC,SAAS,EAAE;QACd,SAAS,GAAG,sCAA2B,EAAE,CAAC;KAC3C;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AALD,4CAKC;AAED;;;;;;;;;GASG;AACH,SAAgB,gBAAgB,CAAC,QAAuB;IACtD,SAAS,GAAG,QAAQ,CAAC;AACvB,CAAC;AAFD,4CAEC;AAED;;;;;GAKG;AACH,SAAgB,QAAQ,CAAC,UAAgE,EAAE,IAAa,EAAE,MAAe;IACvH,OAAO,gBAAgB,EAAE,CAAC,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AAC/D,CAAC;AAFD,4BAEC;AAED;;;GAGG;AACH,SAAgB,wBAAwB,CAAC,QAA6B;IACpE,OAAO,gBAAgB,EAAE,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;AACvD,CAAC;AAFD,4DAEC;AAED;;;GAGG;AACH,SAAgB,2BAA2B,CAAC,QAA6B;IACvE,OAAO,gBAAgB,EAAE,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC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AC,IAAI,CAAC,CAAC;AAC3C,CAAC;AAFD,4BAEC;AAED;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,UAAyB;IAC5D,gBAAgB,EAAE,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;AACxD,CAAC;AAFD,oDAEC"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ThemingModuleHelper = void 0;
3
4
  var ThemingModuleHelpers_1 = require("./ThemingModuleHelpers");
4
5
  var win32_theme_1 = require("@fluentui-react-native/win32-theme");
5
- exports.ThemingModuleHelper = ThemingModuleHelpers_1.createThemingModuleHelper.apply(void 0, win32_theme_1.getThemingModule());
6
+ exports.ThemingModuleHelper = ThemingModuleHelpers_1.createThemingModuleHelper.apply(void 0, (0, win32_theme_1.getThemingModule)());
6
7
  //# sourceMappingURL=ThemingModule.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ThemingModule.js","sourceRoot":"","sources":["../../src/NativeModule/ThemingModule.ts"],"names":[],"mappings":";;AAAA,+DAAmE;AACnE,kEAAsE;AAEzD,QAAA,mBAAmB,GAAG,gDAAyB,eAAI,8BAAgB,EAAE,EAAE"}
1
+ {"version":3,"file":"ThemingModule.js","sourceRoot":"","sources":["../../src/NativeModule/ThemingModule.ts"],"names":[],"mappings":";;;AAAA,+DAAmE;AACnE,kEAAsE;AAEzD,QAAA,mBAAmB,GAAG,gDAAyB,eAAI,IAAA,8BAAgB,GAAE,EAAE"}
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createThemingModuleHelper = exports.translateOfficeTheme = void 0;
3
4
  var theming_ramp_1 = require("@uifabricshared/theming-ramp");
4
5
  var BaselinePlatformDefaults_1 = require("../BaselinePlatformDefaults");
5
6
  var win32_theme_1 = require("@fluentui-react-native/win32-theme");
@@ -24,7 +25,7 @@ function ensurePalette(module, paletteCache, palette) {
24
25
  }
25
26
  function translateOfficeTheme(module, cache, id, themeName) {
26
27
  var palette = ensurePalette(module, cache, id);
27
- return win32_theme_1.createPartialOfficeTheme(module, themeName, palette);
28
+ return (0, win32_theme_1.createPartialOfficeTheme)(module, themeName, palette);
28
29
  }
29
30
  exports.translateOfficeTheme = translateOfficeTheme;
30
31
  function createThemingModuleHelper(themingModule, emitter) {
@@ -38,7 +39,7 @@ function createThemingModuleHelper(themingModule, emitter) {
38
39
  });
39
40
  return {
40
41
  getPlatformDefaults: function (themeId) {
41
- return theming_ramp_1.resolvePartialTheme(BaselinePlatformDefaults_1.getBaselinePlatformTheme(), translateOfficeTheme(themingModule, paletteCache, themeId, _hostTheme));
42
+ return (0, theming_ramp_1.resolvePartialTheme)((0, BaselinePlatformDefaults_1.getBaselinePlatformTheme)(), translateOfficeTheme(themingModule, paletteCache, themeId, _hostTheme));
42
43
  },
43
44
  getPlatformThemeDefinition: function (themeId) {
44
45
  return function (_parent) {
@@ -1 +1 @@
1
- {"version":3,"file":"ThemingModuleHelpers.js","sourceRoot":"","sources":["../../src/NativeModule/ThemingModuleHelpers.ts"],"names":[],"mappings":";;AAAA,6DAA0F;AAE1F,wEAAuE;AACvE,kEAM4C;AAI5C,SAAS,WAAW,CAAC,OAAqC;IACxD,OAAQ,OAAwB,CAAC,OAAO,KAAK,SAAS,CAAC;AACzD,CAAC;AAED,SAAS,oBAAoB,CAAC,MAA2B,EAAE,KAAmB,EAAE,OAAe;IAC7F,IAAM,YAAY,GAAG,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IAChD,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,EAAE;QAC9B,KAAK,CAAC,OAAO,CAAC,GAAG,YAAY,CAAC;KAC/B;AACH,CAAC;AAED,IAAM,kBAAkB,GAAG,UAAC,OAAgB;IAC1C,OAAO,OAAO,IAAI,aAAa,CAAC;AAClC,CAAC,CAAC;AAEF,SAAS,aAAa,CAAC,MAA2B,EAAE,YAA0B,EAAE,OAAgB;IAC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C,2BAA2B,EAAE,QAAQ,CAAC,CAAC;QACxE,CAAC;KACF,CAAC;AACJ,CAAC;AAvBD,8DAuBC"}
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getHostSettingsWin32 = void 0;
3
4
  function getHostSettingsWin32(theme) {
4
5
  var _a;
5
6
  return ((_a = theme.host) === null || _a === void 0 ? void 0 : _a.palette) ? theme.host : undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"getHostSettings.js","sourceRoot":"","sources":["../../src/NativeModule/getHostSettings.ts"],"names":[],"mappings":";;AAEA,SAAgB,oBAAoB,CAAC,KAAa;;IAChD,OAAO,OAAA,KAAK,CAAC,IAAI,0CAAE,OAAO,EAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;AACtD,CAAC;AAFD,oDAEC"}
1
+ {"version":3,"file":"getHostSettings.js","sourceRoot":"","sources":["../../src/NativeModule/getHostSettings.ts"],"names":[],"mappings":";;;AAEA,SAAgB,oBAAoB,CAAC,KAAa;;IAChD,OAAO,CAAA,MAAA,KAAK,CAAC,IAAI,0CAAE,OAAO,EAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;AACtD,CAAC;AAFD,oDAEC"}
@@ -1,8 +1,16 @@
1
1
  "use strict";
2
- function __export(m) {
3
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4
- }
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
5
12
  Object.defineProperty(exports, "__esModule", { value: true });
6
- __export(require("./ThemingModule"));
7
- __export(require("./getHostSettings"));
13
+ __exportStar(require("./ThemingModule"), exports);
14
+ __exportStar(require("./ThemingModule.types"), exports);
15
+ __exportStar(require("./getHostSettings"), exports);
8
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/NativeModule/index.ts"],"names":[],"mappings":";;;;;AAAA,qCAAgC;AAEhC,uCAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/NativeModule/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAgC;AAChC,wDAAsC;AACtC,oDAAkC"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  /* eslint-disable */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.iterObj = void 0;
4
5
  /** Iterate through keys of object which are objects */
5
6
  function iterObj(target, fn) {
6
7
  for (var targetKey in target) {
@@ -1 +1 @@
1
- {"version":3,"file":"TSUtils.js","sourceRoot":"","sources":["../src/TSUtils.ts"],"names":[],"mappings":";AAAA,oBAAoB;;AAiBpB,uDAAuD;AACvD,SAAgB,OAAO,CAAC,MAAc,EAAE,EAAsC;IAC5E,KAAK,IAAM,SAAS,IAAI,MAAM,EAAE;QAC9B,IAAI,MAAM,CAAC,cAAc,CAAC,SAAS,CAAC,IAAI,OAAO,MAAM,CAAC,SAAS,CAAC,KAAK,QAAQ,EAAE;YAC7E,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,CAAC;SAClC;KACF;AACH,CAAC;AAND,0BAMC"}
1
+ {"version":3,"file":"TSUtils.js","sourceRoot":"","sources":["../src/TSUtils.ts"],"names":[],"mappings":";AAAA,oBAAoB;;;AAiBpB,uDAAuD;AACvD,SAAgB,OAAO,CAAC,MAAc,EAAE,EAAsC;IAC5E,KAAK,IAAM,SAAS,IAAI,MAAM,EAAE;QAC9B,IAAI,MAAM,CAAC,cAAc,CAAC,SAAS,CAAC,IAAI,OAAO,MAAM,CAAC,SAAS,CAAC,KAAK,QAAQ,EAAE;YAC7E,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,CAAC;SAClC;KACF;AACH,CAAC;AAND,0BAMC"}
@@ -1,16 +1,30 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
2
14
  var __importStar = (this && this.__importStar) || function (mod) {
3
15
  if (mod && mod.__esModule) return mod;
4
16
  var result = {};
5
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
6
- result["default"] = mod;
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
7
19
  return result;
8
20
  };
9
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.useThemeRegistry = exports.ThemeRegistryContext = exports.useTheme = exports.ThemeContext = void 0;
10
23
  var React = __importStar(require("react"));
11
24
  var theming_ramp_1 = require("@uifabricshared/theming-ramp");
12
- exports.ThemeContext = theming_ramp_1.ThemeContext;
13
- exports.useTheme = theming_ramp_1.useTheme;
25
+ Object.defineProperty(exports, "ThemeContext", { enumerable: true, get: function () { return theming_ramp_1.ThemeContext; } });
26
+ Object.defineProperty(exports, "useTheme", { enumerable: true, get: function () { return theming_ramp_1.useTheme; } });
14
27
  exports.ThemeRegistryContext = React.createContext(undefined);
15
- exports.useThemeRegistry = function () { return React.useContext(exports.ThemeRegistryContext); };
28
+ var useThemeRegistry = function () { return React.useContext(exports.ThemeRegistryContext); };
29
+ exports.useThemeRegistry = useThemeRegistry;
16
30
  //# sourceMappingURL=ThemeContext.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeContext.js","sourceRoot":"","sources":["../src/ThemeContext.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA+B;AAE/B,6DAAsE;AAA7D,sCAAA,YAAY,CAAA;AAAE,kCAAA,QAAQ,CAAA;AAElB,QAAA,oBAAoB,GAAG,KAAK,CAAC,aAAa,CAAgB,SAAS,CAAC,CAAC;AACrE,QAAA,gBAAgB,GAAG,cAAM,OAAA,KAAK,CAAC,UAAU,CAAC,4BAAoB,CAAC,EAAtC,CAAsC,CAAC"}
1
+ {"version":3,"file":"ThemeContext.js","sourceRoot":"","sources":["../src/ThemeContext.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+B;AAE/B,6DAAsE;AAA7D,4GAAA,YAAY,OAAA;AAAE,wGAAA,QAAQ,OAAA;AAElB,QAAA,oBAAoB,GAAG,KAAK,CAAC,aAAa,CAAgB,SAAS,CAAC,CAAC;AAC3E,IAAM,gBAAgB,GAAG,cAAM,OAAA,KAAK,CAAC,UAAU,CAAC,4BAAoB,CAAC,EAAtC,CAAsC,CAAC;AAAhE,QAAA,gBAAgB,oBAAgD"}
@@ -3,23 +3,38 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
15
  };
14
16
  })();
17
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
15
29
  var __importStar = (this && this.__importStar) || function (mod) {
16
30
  if (mod && mod.__esModule) return mod;
17
31
  var result = {};
18
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
19
- result["default"] = mod;
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
20
34
  return result;
21
35
  };
22
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.ThemeLayer = void 0;
23
38
  var React = __importStar(require("react"));
24
39
  var Global_1 = require("./Global");
25
40
  var theming_ramp_1 = require("@uifabricshared/theming-ramp");
@@ -62,7 +77,7 @@ var ThemeLayer = /** @class */ (function (_super) {
62
77
  /** helper to register if this is the first time and to update the filter if necessary */
63
78
  _this._ensureCallbackRegistration = function (themeName) {
64
79
  if (_this._registeredTheme === undefined) {
65
- Global_1.addThemeRegistryListener(_this);
80
+ (0, Global_1.addThemeRegistryListener)(_this);
66
81
  }
67
82
  _this._registeredTheme = themeName;
68
83
  };
@@ -71,7 +86,7 @@ var ThemeLayer = /** @class */ (function (_super) {
71
86
  /** standard cleanup handler to ensure we unregister */
72
87
  ThemeLayer.prototype.componentWillUnmount = function () {
73
88
  if (this._registeredTheme !== undefined) {
74
- Global_1.removeThemeRegistryListener(this);
89
+ (0, Global_1.removeThemeRegistryListener)(this);
75
90
  this._registeredTheme = undefined;
76
91
  }
77
92
  };
@@ -84,7 +99,7 @@ var ThemeLayer = /** @class */ (function (_super) {
84
99
  if (themeName !== undefined || theme === undefined) {
85
100
  themeName = themeName || '';
86
101
  _this._ensureCallbackRegistration(themeName);
87
- theme = Global_1.getTheme(themeName);
102
+ theme = (0, Global_1.getTheme)(themeName);
88
103
  return React.createElement(theming_ramp_1.ThemeContext.Provider, { value: theme }, _this.props.children(theme));
89
104
  }
90
105
  // otherwise in consumer mode just push the current theme to the children
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeLayer.js","sourceRoot":"","sources":["../src/ThemeLayer.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+B;AAE/B,mCAA2F;AAE3F,6DAA4D;AAoB5D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH;IAAgC,8BAAiC;IAAjE;QAAA,qEAkDC;QA3CC,iEAAiE;QAC1D,kBAAY,GAAwC,UAAC,IAAY;YACtE,2DAA2D;YAC3D,IAAI,IAAI,KAAK,KAAI,CAAC,gBAAgB,EAAE;gBAClC,KAAI,CAAC,WAAW,EAAE,CAAC;aACpB;QACH,CAAC,CAAC;QA8BF,yFAAyF;QACjF,iCAA2B,GAAG,UAAC,SAAiB;YACtD,IAAI,KAAI,CAAC,gBAAgB,KAAK,SAAS,EAAE;gBACvC,iCAAwB,CAAC,KAAI,CAAC,CAAC;aAChC;YACD,KAAI,CAAC,gBAAgB,GAAG,SAAS,CAAC;QACpC,CAAC,CAAC;;IACJ,CAAC;IAnCC,uDAAuD;IAChD,yCAAoB,GAA3B;QACE,IAAI,IAAI,CAAC,gBAAgB,KAAK,SAAS,EAAE;YACvC,oCAA2B,CAAC,IAAI,C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(Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
2
14
  var __importStar = (this && this.__importStar) || function (mod) {
3
15
  if (mod && mod.__esModule) return mod;
4
16
  var result = {};
5
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
6
- result["default"] = mod;
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
7
19
  return result;
8
20
  };
9
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.ThemeProvider = void 0;
10
23
  var React = __importStar(require("react"));
11
24
  var ThemeContext_1 = require("./ThemeContext");
12
25
  var Global_1 = require("./Global");
13
26
  var theming_ramp_1 = require("@uifabricshared/theming-ramp");
14
- exports.ThemeProvider = function (props) {
27
+ var ThemeProvider = function (props) {
15
28
  var registryFromProps = props.registry, _a = props.theme, themeName = _a === void 0 ? '' : _a, children = props.children;
16
- var registryToUse = registryFromProps || ThemeContext_1.useThemeRegistry() || Global_1.getThemeRegistry();
29
+ var registryToUse = registryFromProps || (0, ThemeContext_1.useThemeRegistry)() || (0, Global_1.getThemeRegistry)();
17
30
  var _b = React.useState(registryToUse.getTheme(themeName)), theme = _b[0], setThemeState = _b[1];
18
31
  React.useEffect(function () {
19
32
  setThemeState(registryToUse.getTheme(themeName));
@@ -31,4 +44,5 @@ exports.ThemeProvider = function (props) {
31
44
  // note `registryFromProps` came from props and it's not the same as `registryToUse`
32
45
  return registryFromProps ? (React.createElement(ThemeContext_1.ThemeRegistryContext.Provider, { value: registryFromProps }, themeProvider)) : (themeProvider);
33
46
  };
47
+ exports.ThemeProvider = ThemeProvider;
34
48
  //# sourceMappingURL=ThemeProvider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeProvider.js","sourceRoot":"","sources":["../src/ThemeProvider.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA+B;AAE/B,+CAAwE;AAExE,mCAA4C;AAC5C,6DAA4D;AAE/C,QAAA,aAAa,GAAiD,UAAC,KAA0B;IAC5F,IAAA,kCAA2B,EAAE,gBAAqB,EAArB,mCAAqB,EAAE,yBAAQ,CAAW;IAC/E,IAAM,aAAa,GAAG,iBAAiB,IAAI,+BAAgB,EAAE,IAAI,yBAAgB,EAAE,CAAC;IAC9E,IAAA,sDAA0E,EAAzE,aAAK,EAAE,qBAAkE,CAAC;IAEjF,KAAK,CAAC,SAAS,CAAC;QACd,aAAa,CAAC,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;QAEjD,IAAM,gBAAgB,GAAwB;YAC5C,YAAY,EAAE,UAAC,IAAY;gBACzB,IAAI,KAAK,SAAS,IAAI,aAAa,CAAC,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;YACzE,CAAC;SACF,CAAC;QAEF,aAAa,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;QACjD,OAAO;YACL,aAAa,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;QACtD,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,aAAa,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC;IAE9C,IAAM,aAAa,GAAG,oBAAC,2BAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,IAAG,QAAQ,CAAyB,CAAC;IAE9F,oFAAoF;IACpF,OAAO,iBAAiB,CAAC,CAAC,CAAC,CACzB,oBAAC,mCAAoB,CAAC,QAAQ,IAAC,KAAK,EAAE,iBAAiB,IAAG,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,oFAAoF;IACpF,OAAO,iBAAiB,CAAC,CAAC,CAAC,CACzB,oBAAC,mCAAoB,CAAC,QAAQ,IAAC,KAAK,EAAE,iBAAiB,IAAG,aAAa,CAAiC,CACzG,CAAC,CAAC,CAAC,CACF,aAAa,CACd,CAAC;AACJ,CAAC,CAAC;AA5BW,QAAA,aAAa,iBA4BxB"}
@@ -1,18 +1,28 @@
1
1
  "use strict";
2
- function __export(m) {
3
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4
- }
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
5
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.ThemeLayer = exports.augmentPlatformTheme = exports.getTheme = exports.setTheme = exports.removeThemeRegistryListener = exports.addThemeRegistryListener = void 0;
6
14
  var Global_1 = require("./Global");
7
- exports.addThemeRegistryListener = Global_1.addThemeRegistryListener;
8
- exports.removeThemeRegistryListener = Global_1.removeThemeRegistryListener;
9
- exports.setTheme = Global_1.setTheme;
10
- exports.getTheme = Global_1.getTheme;
11
- exports.augmentPlatformTheme = Global_1.augmentPlatformTheme;
15
+ Object.defineProperty(exports, "addThemeRegistryListener", { enumerable: true, get: function () { return Global_1.addThemeRegistryListener; } });
16
+ Object.defineProperty(exports, "removeThemeRegistryListener", { enumerable: true, get: function () { return Global_1.removeThemeRegistryListener; } });
17
+ Object.defineProperty(exports, "setTheme", { enumerable: true, get: function () { return Global_1.setTheme; } });
18
+ Object.defineProperty(exports, "getTheme", { enumerable: true, get: function () { return Global_1.getTheme; } });
19
+ Object.defineProperty(exports, "augmentPlatformTheme", { enumerable: true, get: function () { return Global_1.augmentPlatformTheme; } });
20
+ __exportStar(require("./Theme.types"), exports);
12
21
  var ThemeLayer_1 = require("./ThemeLayer");
13
- exports.ThemeLayer = ThemeLayer_1.ThemeLayer;
14
- __export(require("./platform"));
15
- __export(require("./ThemeProvider"));
16
- __export(require("./ThemeContext"));
17
- __export(require("./NativeModule"));
22
+ Object.defineProperty(exports, "ThemeLayer", { enumerable: true, get: function () { return ThemeLayer_1.ThemeLayer; } });
23
+ __exportStar(require("./platform"), exports);
24
+ __exportStar(require("./ThemeProvider"), exports);
25
+ __exportStar(require("./ThemeProvider.types"), exports);
26
+ __exportStar(require("./ThemeContext"), exports);
27
+ __exportStar(require("./NativeModule"), exports);
18
28
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,mCAA2H;AAAlH,4CAAA,wBAAwB,CAAA;AAAE,+CAAA,2BAA2B,CAAA;AAAE,4BAAA,QAAQ,CAAA;AAAE,4BAAA,QAAQ,CAAA;AAAE,wCAAA,oBAAoB,CAAA;AAExG,2CAA4D;AAAjC,kCAAA,UAAU,CAAA;AACrC,gCAA2B;AAC3B,qCAAgC;AAEhC,oCAA+B;AAC/B,oCAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mCAA2H;AAAlH,kHAAA,wBAAwB,OAAA;AAAE,qHAAA,2BAA2B,OAAA;AAAE,kGAAA,QAAQ,OAAA;AAAE,kGAAA,QAAQ,OAAA;AAAE,8GAAA,oBAAoB,OAAA;AACxG,gDAA8B;AAC9B,2CAA4D;AAAjC,wGAAA,UAAU,OAAA;AACrC,6CAA2B;AAC3B,kDAAgC;AAChC,wDAAsC;AACtC,iDAA+B;AAC/B,iDAA+B"}
@@ -1,10 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createPlatformThemeRegistry = void 0;
3
4
  var BaselinePlatformDefaults_1 = require("../BaselinePlatformDefaults");
4
5
  var theme_registry_1 = require("@uifabricshared/theme-registry");
5
6
  var theming_ramp_1 = require("@uifabricshared/theming-ramp");
6
7
  function createPlatformThemeRegistry(_themeId, _module) {
7
- return theme_registry_1.createThemeRegistry(BaselinePlatformDefaults_1.getBaselinePlatformTheme(), theming_ramp_1.resolvePartialTheme);
8
+ return (0, theme_registry_1.createThemeRegistry)((0, BaselinePlatformDefaults_1.getBaselinePlatformTheme)(), theming_ramp_1.resolvePartialTheme);
8
9
  }
9
10
  exports.createPlatformThemeRegistry = createPlatformThemeRegistry;
10
11
  //# sourceMappingURL=PlatformDefaults.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlatformDefaults.js","sourceRoot":"","sources":["../../src/platform/PlatformDefaults.ts"],"names":[],"mappings":";;AAAA,wEAAuE;AACvE,iEAAqE;AACrE,6DAAmE;AAGnE,SAAgB,2BAA2B,CAAC,QAAiB,EAAE,OAA8B;IAC3F,OAAO,oCAAmB,CAAC,mDAAwB,EAAE,EAAE,kCAAmB,CAAC,CAAC;AAC9E,CAAC;AAFD,kEAEC"}
1
+ {"version":3,"file":"PlatformDefaults.js","sourceRoot":"","sources":["../../src/platform/PlatformDefaults.ts"],"names":[],"mappings":";;;AAAA,wEAAuE;AACvE,iEAAqE;AACrE,6DAAmE;AAGnE,SAAgB,2BAA2B,CAAC,QAAiB,EAAE,OAA8B;IAC3F,OAAO,IAAA,oCAAmB,EAAC,IAAA,mDAAwB,GAAE,EAAE,kCAAmB,CAAC,CAAC;AAC9E,CAAC;AAFD,kEAEC"}
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createPlatformThemeRegistry = void 0;
3
4
  var NativeModule_1 = require("../NativeModule");
4
5
  var theme_registry_1 = require("@uifabricshared/theme-registry");
5
6
  var theming_ramp_1 = require("@uifabricshared/theming-ramp");
6
7
  function createPlatformThemeRegistry(platformThemeId, module) {
7
8
  if (module === void 0) { module = NativeModule_1.ThemingModuleHelper; }
8
- var registry = theme_registry_1.createThemeRegistry(module.getPlatformDefaults(platformThemeId), theming_ramp_1.resolvePartialTheme);
9
+ var registry = (0, theme_registry_1.createThemeRegistry)(module.getPlatformDefaults(platformThemeId), theming_ramp_1.resolvePartialTheme);
9
10
  module.addListener(function () {
10
11
  registry.updatePlatformDefaults(module.getPlatformDefaults(platformThemeId));
11
12
  });
@@ -1 +1 @@
1
- {"version":3,"file":"PlatformDefaults.native.js","sourceRoot":"","sources":["../../src/platform/PlatformDefaults.native.ts"],"names":[],"mappings":";;AAAA,gDAA4E;AAC5E,iEAAqE;AACrE,6DAAmE;AAEnE,SAAgB,2BAA2B,CAAC,eAAwB,EAAE,MAAkD;IAAlD,uBAAA,EAAA,SAA+B,kCAAmB;IACtH,IAAM,QAAQ,GAAG,oCAAmB,CAAC,MAAM,CAAC,mBAAmB,CAAC,eAAe,CAAC,EAAE,kCAAmB,CAAC,CAAC;IACvG,MAAM,CAAC,WAAW,CAAC;QACjB,QAAQ,CAAC,sBAAsB,CAAC,MAAM,CAAC,mBAAmB,CAAC,eAAe,CAAC,CAAC,CAAC;IAC/E,CAAC,CAAC,CAAC;IACH,OAAO,QAAQ,CAAC;AAClB,CAAC;AAND,kEAMC"}
1
+ {"version":3,"file":"PlatformDefaults.native.js","sourceRoot":"","sources":["../../src/platform/PlatformDefaults.native.ts"],"names":[],"mappings":";;;AAAA,gDAA4E;AAC5E,iEAAqE;AACrE,6DAAmE;AAEnE,SAAgB,2BAA2B,CAAC,eAAwB,EAAE,MAAkD;IAAlD,uBAAA,EAAA,SAA+B,kCAAmB;IACtH,IAAM,QAAQ,GAAG,IAAA,oCAAmB,EAAC,MAAM,CAAC,mBAAmB,CAAC,eAAe,CAAC,EAAE,kCAAmB,CAAC,CAAC;IACvG,MAAM,CAAC,WAAW,CAAC;QACjB,QAAQ,CAAC,sBAAsB,CAAC,MAAM,CAAC,mBAAmB,CAAC,eAAe,CAAC,CAAC,CAAC;IAC/E,CAAC,CAAC,CAAC;IACH,OAAO,QAAQ,CAAC;AAClB,CAAC;AAND,kEAMC"}
@@ -1,7 +1,14 @@
1
1
  "use strict";
2
- function __export(m) {
3
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4
- }
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
5
12
  Object.defineProperty(exports, "__esModule", { value: true });
6
- __export(require("./PlatformDefaults"));
13
+ __exportStar(require("./PlatformDefaults"), exports);
7
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/platform/index.ts"],"names":[],"mappings":";;;;;AAAA,wCAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/platform/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uifabricshared/theming-react-native",
3
- "version": "0.13.2",
3
+ "version": "0.13.6",
4
4
  "description": "A library of functions which produce React Native styles from a Theme",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -20,14 +20,19 @@
20
20
  "prettier": "fluentui-scripts prettier",
21
21
  "prettier-fix": "fluentui-scripts prettier --fix true"
22
22
  },
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "https://github.com/microsoft/fluentui-react-native.git",
26
+ "directory": "packages/deprecated/theming-react-native"
27
+ },
23
28
  "keywords": [],
24
29
  "author": "",
25
30
  "license": "MIT",
26
31
  "dependencies": {
27
- "@fluentui-react-native/default-theme": ">=0.9.2 <1.0.0",
28
- "@fluentui-react-native/win32-theme": ">=0.14.2 <1.0.0",
29
- "@uifabricshared/theme-registry": ">=0.7.0 <1.0.0",
30
- "@uifabricshared/theming-ramp": ">=0.16.0 <1.0.0"
32
+ "@fluentui-react-native/default-theme": ">=0.9.5 <1.0.0",
33
+ "@fluentui-react-native/win32-theme": ">=0.14.6 <1.0.0",
34
+ "@uifabricshared/theme-registry": ">=0.7.2 <1.0.0",
35
+ "@uifabricshared/theming-ramp": ">=0.16.2 <1.0.0"
31
36
  },
32
37
  "devDependencies": {
33
38
  "@fluentui-react-native/eslint-config-rules": "^0.1.1",
@@ -36,7 +41,7 @@
36
41
  "@uifabricshared/build-native": "^0.1.1",
37
42
  "react": "17.0.1",
38
43
  "react-native": "^0.64.3",
39
- "typescript": "3.8.3"
44
+ "typescript": "4.5.4"
40
45
  },
41
46
  "peerDependencies": {
42
47
  "react": ">=17.0.1",