@fluentui-react-native/win32-theme 0.39.0 → 0.39.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 (79) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/lib/NativeModule/_mocks_/getThemingModule.native.d.ts +1 -1
  3. package/lib/NativeModule/_mocks_/getThemingModule.native.js +2 -2
  4. package/lib/NativeModule/fallbackOfficeModule.d.ts +1 -1
  5. package/lib/NativeModule/fallbackOfficeModule.js +163 -163
  6. package/lib/NativeModule/getThemingModule.d.ts +1 -1
  7. package/lib/NativeModule/getThemingModule.js +2 -2
  8. package/lib/NativeModule/getThemingModule.native.d.ts +1 -1
  9. package/lib/NativeModule/getThemingModule.native.js +30 -28
  10. package/lib/NativeModule/hostThemeSetting.d.ts +1 -1
  11. package/lib/NativeModule/hostThemeSetting.js +3 -3
  12. package/lib/NativeModule/index.d.ts +2 -10
  13. package/lib/NativeModule/index.js +1 -1
  14. package/lib/NativeModule/officeThemingModule.d.ts +21 -21
  15. package/lib/NativeModule/officeThemingModule.js +1 -1
  16. package/lib/__tests__/win32-theme.test.d.ts +1 -1
  17. package/lib/__tests__/win32-theme.test.js +47 -47
  18. package/lib/createAliasesFromPalette.d.ts +1 -1
  19. package/lib/createAliasesFromPalette.js +56 -56
  20. package/lib/createBrandedThemeWithAlias.d.ts +1 -1
  21. package/lib/createBrandedThemeWithAlias.js +61 -56
  22. package/lib/createFontAliasTokens.d.ts +1 -1
  23. package/lib/createFontAliasTokens.js +3 -3
  24. package/lib/createOfficeAliasTokens.d.ts +1 -1
  25. package/lib/createOfficeAliasTokens.js +5 -5
  26. package/lib/createOfficeTheme.d.ts +1 -1
  27. package/lib/createOfficeTheme.js +46 -53
  28. package/lib/createPartialOfficeTheme.d.ts +1 -1
  29. package/lib/createPartialOfficeTheme.js +19 -22
  30. package/lib/getOfficeTokens.d.ts +227 -229
  31. package/lib/getOfficeTokens.js +26 -20
  32. package/lib/getThemeTypography.d.ts +1 -1
  33. package/lib/getThemeTypography.js +32 -32
  34. package/lib/highContrast/tokens-alias.d.ts +1 -1
  35. package/lib/highContrast/tokens-alias.js +11 -11
  36. package/lib/index.d.ts +2 -10
  37. package/lib/index.js +1 -1
  38. package/lib/paletteFromOfficeColors.d.ts +1 -1
  39. package/lib/paletteFromOfficeColors.js +114 -114
  40. package/lib-commonjs/NativeModule/_mocks_/getThemingModule.native.d.ts +1 -1
  41. package/lib-commonjs/NativeModule/_mocks_/getThemingModule.native.js +5 -5
  42. package/lib-commonjs/NativeModule/fallbackOfficeModule.d.ts +1 -1
  43. package/lib-commonjs/NativeModule/fallbackOfficeModule.js +165 -165
  44. package/lib-commonjs/NativeModule/getThemingModule.d.ts +1 -1
  45. package/lib-commonjs/NativeModule/getThemingModule.js +5 -5
  46. package/lib-commonjs/NativeModule/getThemingModule.native.d.ts +1 -1
  47. package/lib-commonjs/NativeModule/getThemingModule.native.js +35 -33
  48. package/lib-commonjs/NativeModule/hostThemeSetting.d.ts +1 -1
  49. package/lib-commonjs/NativeModule/hostThemeSetting.js +5 -5
  50. package/lib-commonjs/NativeModule/index.d.ts +2 -10
  51. package/lib-commonjs/NativeModule/index.js +8 -23
  52. package/lib-commonjs/NativeModule/officeThemingModule.d.ts +21 -21
  53. package/lib-commonjs/NativeModule/officeThemingModule.js +3 -3
  54. package/lib-commonjs/__tests__/win32-theme.test.d.ts +1 -1
  55. package/lib-commonjs/__tests__/win32-theme.test.js +57 -57
  56. package/lib-commonjs/createAliasesFromPalette.d.ts +1 -1
  57. package/lib-commonjs/createAliasesFromPalette.js +58 -58
  58. package/lib-commonjs/createBrandedThemeWithAlias.d.ts +1 -1
  59. package/lib-commonjs/createBrandedThemeWithAlias.js +64 -59
  60. package/lib-commonjs/createFontAliasTokens.d.ts +1 -1
  61. package/lib-commonjs/createFontAliasTokens.js +8 -8
  62. package/lib-commonjs/createOfficeAliasTokens.d.ts +1 -1
  63. package/lib-commonjs/createOfficeAliasTokens.js +10 -10
  64. package/lib-commonjs/createOfficeTheme.d.ts +1 -1
  65. package/lib-commonjs/createOfficeTheme.js +57 -66
  66. package/lib-commonjs/createPartialOfficeTheme.d.ts +1 -1
  67. package/lib-commonjs/createPartialOfficeTheme.js +22 -25
  68. package/lib-commonjs/getOfficeTokens.d.ts +227 -229
  69. package/lib-commonjs/getOfficeTokens.js +39 -35
  70. package/lib-commonjs/getThemeTypography.d.ts +1 -1
  71. package/lib-commonjs/getThemeTypography.js +36 -36
  72. package/lib-commonjs/highContrast/tokens-alias.d.ts +1 -1
  73. package/lib-commonjs/highContrast/tokens-alias.js +18 -20
  74. package/lib-commonjs/index.d.ts +2 -10
  75. package/lib-commonjs/index.js +23 -89
  76. package/lib-commonjs/paletteFromOfficeColors.d.ts +1 -1
  77. package/lib-commonjs/paletteFromOfficeColors.js +116 -116
  78. package/package.json +26 -25
  79. package/eslint.config.js +0 -3
package/package.json CHANGED
@@ -1,72 +1,73 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/win32-theme",
3
- "version": "0.39.0",
3
+ "version": "0.39.3",
4
4
  "description": "Win32 office theme that works with the theming native module",
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/theming/win32-theme"
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/default-theme": "0.27.3",
39
40
  "@fluentui-react-native/design-tokens-win32": "^0.53.0",
40
- "@fluentui-react-native/framework-base": "0.3.0",
41
- "@fluentui-react-native/theme": "0.12.0",
42
- "@fluentui-react-native/theme-tokens": "0.28.0",
43
- "@fluentui-react-native/theme-types": "0.44.0",
44
- "@fluentui-react-native/theming-utils": "0.27.0"
41
+ "@fluentui-react-native/framework-base": "0.3.3",
42
+ "@fluentui-react-native/theme": "0.12.3",
43
+ "@fluentui-react-native/theme-tokens": "0.28.3",
44
+ "@fluentui-react-native/theme-types": "0.44.3",
45
+ "@fluentui-react-native/theming-utils": "0.27.3"
45
46
  },
46
47
  "devDependencies": {
47
48
  "@babel/core": "^7.20.0",
48
49
  "@fluentui-react-native/babel-config": "0.1.1",
49
- "@fluentui-react-native/eslint-config-rules": "0.1.1",
50
- "@fluentui-react-native/jest-config": "0.1.1",
50
+ "@fluentui-react-native/jest-config": "0.1.0",
51
51
  "@fluentui-react-native/kit-config": "0.1.2",
52
- "@fluentui-react-native/scripts": "0.1.2",
52
+ "@fluentui-react-native/lint-config-rules": "0.1.3",
53
+ "@fluentui-react-native/scripts": "0.1.0",
53
54
  "@office-iss/react-native-win32": "^0.74.0",
54
55
  "@react-native-community/cli": "^20.0.0",
55
56
  "@react-native-community/cli-platform-android": "^20.0.0",
56
57
  "@react-native-community/cli-platform-ios": "^20.0.0",
57
58
  "@react-native/babel-preset": "^0.81.0",
58
59
  "@react-native/metro-config": "^0.81.0",
59
- "@types/react": "~19.1.0",
60
- "react": "19.1.0",
61
- "react-native": "^0.81.0",
60
+ "@types/react": "~19.1.4",
61
+ "react": "19.1.4",
62
+ "react-native": "^0.81.6",
62
63
  "react-native-macos": "^0.81.0",
63
64
  "react-native-windows": "^0.81.0"
64
65
  },
65
66
  "peerDependencies": {
66
67
  "@office-iss/react-native-win32": "^0.74.0",
67
- "@types/react": "~18.2.0 || ~19.0.0 || ~19.1.0",
68
- "react": "18.2.0 || 19.0.0 || 19.1.0",
69
- "react-native": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0",
68
+ "@types/react": "~18.2.0 || ~19.0.0 || ~19.1.4",
69
+ "react": "18.2.0 || 19.0.0 || 19.1.4",
70
+ "react-native": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.6",
70
71
  "react-native-macos": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0",
71
72
  "react-native-windows": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0"
72
73
  },
package/eslint.config.js DELETED
@@ -1,3 +0,0 @@
1
- const baseConfig = require('@fluentui-react-native/eslint-config-rules');
2
-
3
- module.exports = baseConfig;