@uifabricshared/theming-react-native 0.21.0 → 0.21.1

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 (66) hide show
  1. package/CHANGELOG.md +13 -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 +1 -1
  33. package/lib/platform/index.js +1 -1
  34. package/lib-commonjs/BaselinePlatformDefaults.d.ts +1 -1
  35. package/lib-commonjs/BaselinePlatformDefaults.js +5 -5
  36. package/lib-commonjs/Global.d.ts +1 -1
  37. package/lib-commonjs/Global.js +14 -14
  38. package/lib-commonjs/NativeModule/ThemingModule.d.ts +2 -2
  39. package/lib-commonjs/NativeModule/ThemingModule.js +5 -5
  40. package/lib-commonjs/NativeModule/ThemingModule.types.d.ts +13 -13
  41. package/lib-commonjs/NativeModule/ThemingModule.types.js +3 -3
  42. package/lib-commonjs/NativeModule/ThemingModuleHelpers.d.ts +3 -8
  43. package/lib-commonjs/NativeModule/ThemingModuleHelpers.js +41 -44
  44. package/lib-commonjs/NativeModule/getHostSettings.d.ts +1 -1
  45. package/lib-commonjs/NativeModule/getHostSettings.js +4 -4
  46. package/lib-commonjs/NativeModule/index.d.ts +1 -1
  47. package/lib-commonjs/NativeModule/index.js +7 -17
  48. package/lib-commonjs/Theme.types.d.ts +1 -1
  49. package/lib-commonjs/Theme.types.js +3 -3
  50. package/lib-commonjs/ThemeContext.d.ts +1 -1
  51. package/lib-commonjs/ThemeContext.js +36 -63
  52. package/lib-commonjs/ThemeLayer.d.ts +24 -24
  53. package/lib-commonjs/ThemeLayer.js +74 -93
  54. package/lib-commonjs/ThemeProvider.d.ts +1 -1
  55. package/lib-commonjs/ThemeProvider.js +56 -75
  56. package/lib-commonjs/ThemeProvider.types.d.ts +3 -3
  57. package/lib-commonjs/ThemeProvider.types.js +3 -3
  58. package/lib-commonjs/index.d.ts +1 -1
  59. package/lib-commonjs/index.js +24 -108
  60. package/lib-commonjs/platform/PlatformDefaults.d.ts +2 -8
  61. package/lib-commonjs/platform/PlatformDefaults.js +7 -10
  62. package/lib-commonjs/platform/PlatformDefaults.native.d.ts +2 -8
  63. package/lib-commonjs/platform/PlatformDefaults.native.js +11 -14
  64. package/lib-commonjs/platform/index.d.ts +1 -1
  65. package/lib-commonjs/platform/index.js +18 -29
  66. package/package.json +17 -16
@@ -1,29 +1,18 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./PlatformDefaults"), exports);
18
+ //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,52 +1,53 @@
1
1
  {
2
2
  "name": "@uifabricshared/theming-react-native",
3
- "version": "0.21.0",
3
+ "version": "0.21.1",
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
30
  "lint": "fluentui-scripts eslint",
30
31
  "lint-package": "fluentui-scripts lint-package",
31
- "prettier": "fluentui-scripts prettier",
32
+ "format": "fluentui-scripts format",
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.1",
40
+ "@fluentui-react-native/win32-theme": "0.39.1",
41
+ "@uifabricshared/theme-registry": "0.13.1",
42
+ "@uifabricshared/theming-ramp": "0.21.1"
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/eslint-config-rules": "0.1.2",
48
+ "@fluentui-react-native/framework-base": "0.3.1",
48
49
  "@fluentui-react-native/kit-config": "0.1.2",
49
- "@fluentui-react-native/scripts": "0.1.2",
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",