@fluentui-react-native/win32-theme 0.24.14 → 0.24.15
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.json +67 -1
- package/CHANGELOG.md +16 -2
- package/lib/NativeModule/_mocks_/getThemingModule.native.d.ts +1 -1
- package/lib/NativeModule/_mocks_/getThemingModule.native.d.ts.map +1 -1
- package/lib/NativeModule/fallbackOfficeModule.d.ts +2 -2
- package/lib/NativeModule/fallbackOfficeModule.d.ts.map +1 -1
- package/lib/NativeModule/getThemingModule.d.ts +2 -2
- package/lib/NativeModule/getThemingModule.d.ts.map +1 -1
- package/lib/NativeModule/getThemingModule.native.d.ts +1 -1
- package/lib/NativeModule/getThemingModule.native.d.ts.map +1 -1
- package/lib/NativeModule/getThemingModule.native.js.map +1 -1
- package/lib/NativeModule/officeThemingModule.d.ts +3 -3
- package/lib/NativeModule/officeThemingModule.d.ts.map +1 -1
- package/lib/createAliasesFromPalette.d.ts +1 -1
- package/lib/createAliasesFromPalette.d.ts.map +1 -1
- package/lib/createBrandedThemeWithAlias.d.ts +2 -2
- package/lib/createBrandedThemeWithAlias.d.ts.map +1 -1
- package/lib/createFontAliasTokens.d.ts +1 -1
- package/lib/createFontAliasTokens.d.ts.map +1 -1
- package/lib/createOfficeAliasTokens.d.ts +1 -1
- package/lib/createOfficeAliasTokens.d.ts.map +1 -1
- package/lib/createOfficeTheme.d.ts +1 -1
- package/lib/createOfficeTheme.d.ts.map +1 -1
- package/lib/createPartialOfficeTheme.d.ts +2 -2
- package/lib/createPartialOfficeTheme.d.ts.map +1 -1
- package/lib/getThemeTypography.d.ts +1 -1
- package/lib/getThemeTypography.d.ts.map +1 -1
- package/lib/paletteFromOfficeColors.d.ts +1 -1
- package/lib/paletteFromOfficeColors.d.ts.map +1 -1
- package/lib-commonjs/NativeModule/_mocks_/getThemingModule.native.d.ts +1 -1
- package/lib-commonjs/NativeModule/_mocks_/getThemingModule.native.d.ts.map +1 -1
- package/lib-commonjs/NativeModule/fallbackOfficeModule.d.ts +2 -2
- package/lib-commonjs/NativeModule/fallbackOfficeModule.d.ts.map +1 -1
- package/lib-commonjs/NativeModule/fallbackOfficeModule.js +1 -1
- package/lib-commonjs/NativeModule/fallbackOfficeModule.js.map +1 -1
- package/lib-commonjs/NativeModule/getThemingModule.d.ts +2 -2
- package/lib-commonjs/NativeModule/getThemingModule.d.ts.map +1 -1
- package/lib-commonjs/NativeModule/getThemingModule.native.d.ts +1 -1
- package/lib-commonjs/NativeModule/getThemingModule.native.d.ts.map +1 -1
- package/lib-commonjs/NativeModule/getThemingModule.native.js +1 -1
- package/lib-commonjs/NativeModule/getThemingModule.native.js.map +1 -1
- package/lib-commonjs/NativeModule/index.js +3 -3
- package/lib-commonjs/NativeModule/index.js.map +1 -1
- package/lib-commonjs/NativeModule/officeThemingModule.d.ts +3 -3
- package/lib-commonjs/NativeModule/officeThemingModule.d.ts.map +1 -1
- package/lib-commonjs/__tests__/win32-theme.test.js +12 -12
- package/lib-commonjs/createAliasesFromPalette.d.ts +1 -1
- package/lib-commonjs/createAliasesFromPalette.d.ts.map +1 -1
- package/lib-commonjs/createBrandedThemeWithAlias.d.ts +2 -2
- package/lib-commonjs/createBrandedThemeWithAlias.d.ts.map +1 -1
- package/lib-commonjs/createFontAliasTokens.d.ts +1 -1
- package/lib-commonjs/createFontAliasTokens.d.ts.map +1 -1
- package/lib-commonjs/createOfficeAliasTokens.d.ts +1 -1
- package/lib-commonjs/createOfficeAliasTokens.d.ts.map +1 -1
- package/lib-commonjs/createOfficeTheme.d.ts +1 -1
- package/lib-commonjs/createOfficeTheme.d.ts.map +1 -1
- package/lib-commonjs/createOfficeTheme.js +2 -2
- package/lib-commonjs/createOfficeTheme.js.map +1 -1
- package/lib-commonjs/createPartialOfficeTheme.d.ts +2 -2
- package/lib-commonjs/createPartialOfficeTheme.d.ts.map +1 -1
- package/lib-commonjs/createPartialOfficeTheme.js +2 -2
- package/lib-commonjs/createPartialOfficeTheme.js.map +1 -1
- package/lib-commonjs/getOfficeTokens.js +7 -7
- package/lib-commonjs/getOfficeTokens.js.map +1 -1
- package/lib-commonjs/getThemeTypography.d.ts +1 -1
- package/lib-commonjs/getThemeTypography.d.ts.map +1 -1
- package/lib-commonjs/getThemeTypography.js +1 -1
- package/lib-commonjs/getThemeTypography.js.map +1 -1
- package/lib-commonjs/highContrast/tokens-alias.js +1 -1
- package/lib-commonjs/highContrast/tokens-alias.js.map +1 -1
- package/lib-commonjs/paletteFromOfficeColors.d.ts +1 -1
- package/lib-commonjs/paletteFromOfficeColors.d.ts.map +1 -1
- package/package.json +21 -15
- package/src/NativeModule/_mocks_/getThemingModule.native.ts +1 -1
- package/src/NativeModule/fallbackOfficeModule.ts +2 -2
- package/src/NativeModule/getThemingModule.native.ts +3 -2
- package/src/NativeModule/getThemingModule.ts +2 -2
- package/src/NativeModule/officeThemingModule.ts +1 -1
- package/src/createAliasesFromPalette.ts +1 -1
- package/src/createBrandedThemeWithAlias.ts +2 -2
- package/src/createFontAliasTokens.ts +1 -1
- package/src/createOfficeAliasTokens.ts +1 -1
- package/src/createOfficeTheme.ts +2 -2
- package/src/createPartialOfficeTheme.ts +2 -2
- package/src/getThemeTypography.ts +1 -1
- package/src/paletteFromOfficeColors.ts +1 -1
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,73 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/win32-theme",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Wed, 01 Feb 2023 22:30:12 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/win32-theme_v0.24.15",
|
|
7
|
+
"version": "0.24.15",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "30809111+acoates-ms@users.noreply.github.com",
|
|
12
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
13
|
+
"commit": "2d0138c80d7512b905fcf32583760bec2b911910",
|
|
14
|
+
"comment": "Enable @typescript-eslint/consistent-type-imports"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
19
|
+
"comment": "Bump @fluentui-react-native/default-theme to v0.16.28",
|
|
20
|
+
"commit": "2d0138c80d7512b905fcf32583760bec2b911910"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "beachball",
|
|
24
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
25
|
+
"comment": "Bump @fluentui-react-native/memo-cache to v1.1.8",
|
|
26
|
+
"commit": "2d0138c80d7512b905fcf32583760bec2b911910"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"author": "beachball",
|
|
30
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
31
|
+
"comment": "Bump @fluentui-react-native/theme-tokens to v0.24.2",
|
|
32
|
+
"commit": "2d0138c80d7512b905fcf32583760bec2b911910"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"author": "beachball",
|
|
36
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
37
|
+
"comment": "Bump @fluentui-react-native/theme-types to v0.30.2",
|
|
38
|
+
"commit": "2d0138c80d7512b905fcf32583760bec2b911910"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"author": "beachball",
|
|
42
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
43
|
+
"comment": "Bump @fluentui-react-native/theme to v0.7.20",
|
|
44
|
+
"commit": "2d0138c80d7512b905fcf32583760bec2b911910"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"author": "beachball",
|
|
48
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
49
|
+
"comment": "Bump @fluentui-react-native/theming-utils to v0.23.2",
|
|
50
|
+
"commit": "2d0138c80d7512b905fcf32583760bec2b911910"
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"date": "Mon, 30 Jan 2023 15:17:32 GMT",
|
|
57
|
+
"tag": "@fluentui-react-native/win32-theme_v0.24.14",
|
|
58
|
+
"version": "0.24.14",
|
|
59
|
+
"comments": {
|
|
60
|
+
"none": [
|
|
61
|
+
{
|
|
62
|
+
"author": "4123478+tido64@users.noreply.github.com",
|
|
63
|
+
"package": "@fluentui-react-native/win32-theme",
|
|
64
|
+
"commit": "4de4c2b37c835ebd9af015ff767f9dd68452f786",
|
|
65
|
+
"comment": "Migrate to align-deps"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"date": "Mon, 30 Jan 2023 07:12:38 GMT",
|
|
6
72
|
"tag": "@fluentui-react-native/win32-theme_v0.24.14",
|
|
7
73
|
"version": "0.24.14",
|
|
8
74
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,26 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/win32-theme
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 01 Feb 2023 22:30:12 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.24.15
|
|
8
|
+
|
|
9
|
+
Wed, 01 Feb 2023 22:30:12 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Enable @typescript-eslint/consistent-type-imports (30809111+acoates-ms@users.noreply.github.com)
|
|
14
|
+
- Bump @fluentui-react-native/default-theme to v0.16.28
|
|
15
|
+
- Bump @fluentui-react-native/memo-cache to v1.1.8
|
|
16
|
+
- Bump @fluentui-react-native/theme-tokens to v0.24.2
|
|
17
|
+
- Bump @fluentui-react-native/theme-types to v0.30.2
|
|
18
|
+
- Bump @fluentui-react-native/theme to v0.7.20
|
|
19
|
+
- Bump @fluentui-react-native/theming-utils to v0.23.2
|
|
20
|
+
|
|
7
21
|
## 0.24.14
|
|
8
22
|
|
|
9
|
-
Mon, 30 Jan 2023 07:
|
|
23
|
+
Mon, 30 Jan 2023 07:12:38 GMT
|
|
10
24
|
|
|
11
25
|
### Patches
|
|
12
26
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OfficeThemingModule } from '../officeThemingModule';
|
|
1
|
+
import type { OfficeThemingModule } from '../officeThemingModule';
|
|
2
2
|
/**
|
|
3
3
|
* implementations for react-native-web, where the native module will not exist. In this case just use the full fallback implementation
|
|
4
4
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getThemingModule.native.d.ts","sourceRoot":"","sources":["../../../src/NativeModule/_mocks_/getThemingModule.native.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"getThemingModule.native.d.ts","sourceRoot":"","sources":["../../../src/NativeModule/_mocks_/getThemingModule.native.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,CAEnE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OfficePalette } from '@fluentui-react-native/theme-types';
|
|
2
|
-
import { OfficeThemingModule } from './officeThemingModule';
|
|
1
|
+
import type { OfficePalette } from '@fluentui-react-native/theme-types';
|
|
2
|
+
import type { OfficeThemingModule } from './officeThemingModule';
|
|
3
3
|
export declare function fallbackGetPalette(pal?: string): OfficePalette;
|
|
4
4
|
export declare const fallbackOfficeModule: OfficeThemingModule;
|
|
5
5
|
//# sourceMappingURL=fallbackOfficeModule.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fallbackOfficeModule.d.ts","sourceRoot":"","sources":["../../src/NativeModule/fallbackOfficeModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"fallbackOfficeModule.d.ts","sourceRoot":"","sources":["../../src/NativeModule/fallbackOfficeModule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AA8IjE,wBAAgB,kBAAkB,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,aAAa,CAO9D;AAED,eAAO,MAAM,oBAAoB,EAAE,mBAgBX,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NativeEventEmitter } from 'react-native';
|
|
2
|
-
import { OfficeThemingModule } from './officeThemingModule';
|
|
1
|
+
import type { NativeEventEmitter } from 'react-native';
|
|
2
|
+
import type { OfficeThemingModule } from './officeThemingModule';
|
|
3
3
|
/**
|
|
4
4
|
* implementations for react-native-web, where the native module will not exist. In this case just use the full fallback implementation
|
|
5
5
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getThemingModule.d.ts","sourceRoot":"","sources":["../../src/NativeModule/getThemingModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"getThemingModule.d.ts","sourceRoot":"","sources":["../../src/NativeModule/getThemingModule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAEvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,CAAC,mBAAmB,EAAE,kBAAkB,GAAG,SAAS,CAAC,CAExF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OfficeThemingModule } from './officeThemingModule';
|
|
1
|
+
import type { OfficeThemingModule } from './officeThemingModule';
|
|
2
2
|
import { NativeEventEmitter } from 'react-native';
|
|
3
3
|
export declare function getThemingModule(): [OfficeThemingModule, NativeEventEmitter | undefined];
|
|
4
4
|
//# sourceMappingURL=getThemingModule.native.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getThemingModule.native.d.ts","sourceRoot":"","sources":["../../src/NativeModule/getThemingModule.native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"getThemingModule.native.d.ts","sourceRoot":"","sources":["../../src/NativeModule/getThemingModule.native.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,EAAE,kBAAkB,EAAuB,MAAM,cAAc,CAAC;AAgBvE,wBAAgB,gBAAgB,IAAI,CAAC,mBAAmB,EAAE,kBAAkB,GAAG,SAAS,CAAC,CAUxF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getThemingModule.native.js","sourceRoot":"","sources":["../../src/NativeModule/getThemingModule.native.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"getThemingModule.native.js","sourceRoot":"","sources":["../../src/NativeModule/getThemingModule.native.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AASlF,SAAS,iBAAiB;IACxB,IAAM,QAAQ,GAAG,OAAO,IAAI,SAAS,IAAI,SAAS,CAAC,SAAS,KAAK,SAAS,CAAC;IAC3E,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8EAA8E,CAAC,CAAC,CAAC;IACvH,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,MAAM,UAAU,gBAAgB;IAC9B,IAAM,MAAM,GAAG,mBAAmB,CAAC,GAAG,CAAuB,SAAS,CAAC,CAAC;IACxE,oEAAoE;IACpE,IAAI,MAAM,EAAE;QACV,iFAAiF;QACjF,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC,uBAAM,MAAM,KAAE,UAAU,EAAE,kBAAkB,IAAG,CAAC,CAAC,MAAM,EAAE,IAAI,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC;KACvH;IAED,oCAAoC;IACpC,OAAO,CAAC,oBAAoB,EAAE,SAAS,CAAC,CAAC;AAC3C,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { NativeModule, ColorValue } from 'react-native';
|
|
2
|
-
import { OfficePalette, Typography } from '@fluentui-react-native/theme-types';
|
|
3
|
-
export
|
|
2
|
+
import type { OfficePalette, Typography } from '@fluentui-react-native/theme-types';
|
|
3
|
+
export type PlatformDefaultsChangedArgs = {
|
|
4
4
|
hostThemeSetting: string;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type PlatformDefaultsChangedCallback = (args?: PlatformDefaultsChangedArgs) => void;
|
|
7
7
|
export interface CxxException {
|
|
8
8
|
message: string;
|
|
9
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"officeThemingModule.d.ts","sourceRoot":"","sources":["../../src/NativeModule/officeThemingModule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"officeThemingModule.d.ts","sourceRoot":"","sources":["../../src/NativeModule/officeThemingModule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAEpF,MAAM,MAAM,2BAA2B,GAAG;IAAE,gBAAgB,EAAE,MAAM,CAAA;CAAE,CAAC;AACvE,MAAM,MAAM,+BAA+B,GAAG,CAAC,IAAI,CAAC,EAAE,2BAA2B,KAAK,IAAI,CAAC;AAE3F,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,YAAY,EAAE,UAAU,EAAE,CAAC;IAC3B,GAAG,EAAE,UAAU,EAAE,CAAC;IAClB,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD,UAAU,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,YAAY,CAAC;IAC3D,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,UAAU,CAAC;IAC7B,KAAK,EAAE,gBAAgB,CAAC;IACxB,SAAS,EAAE,gBAAgB,CAAC;IAC5B,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,+BAA+B,KAAA,KAAK,IAAI,CAAC;CACvE"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { AliasColorTokens, OfficePalette } from '@fluentui-react-native/theme-types';
|
|
1
|
+
import type { AliasColorTokens, OfficePalette } from '@fluentui-react-native/theme-types';
|
|
2
2
|
export declare function createAliasesFromPalette(palette: OfficePalette, isHighContrast: boolean): Partial<AliasColorTokens>;
|
|
3
3
|
//# sourceMappingURL=createAliasesFromPalette.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAliasesFromPalette.d.ts","sourceRoot":"","sources":["../src/createAliasesFromPalette.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"createAliasesFromPalette.d.ts","sourceRoot":"","sources":["../src/createAliasesFromPalette.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAE1F,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAkEnH"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Theme, PartialTheme, AliasColorTokens } from '@fluentui-react-native/theme-types';
|
|
2
|
-
import { ColorValue } from 'react-native';
|
|
1
|
+
import type { Theme, PartialTheme, AliasColorTokens } from '@fluentui-react-native/theme-types';
|
|
2
|
+
import type { ColorValue } from 'react-native';
|
|
3
3
|
export declare function createBrandedThemeWithAlias(themeName: string, theme: Theme): PartialTheme;
|
|
4
4
|
export declare function getCurrentBrandAliasTokens(themeName: string, appPrimary: ColorValue): Partial<AliasColorTokens>;
|
|
5
5
|
//# sourceMappingURL=createBrandedThemeWithAlias.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createBrandedThemeWithAlias.d.ts","sourceRoot":"","sources":["../src/createBrandedThemeWithAlias.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"createBrandedThemeWithAlias.d.ts","sourceRoot":"","sources":["../src/createBrandedThemeWithAlias.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAEhG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,YAAY,CAQzF;AAED,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAoC/G"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Variants } from '@fluentui-react-native/theme-types';
|
|
1
|
+
import type { Variants } from '@fluentui-react-native/theme-types';
|
|
2
2
|
declare function createFontAliasTokensWorker(): Partial<Variants>;
|
|
3
3
|
export declare const createFontAliasTokens: typeof createFontAliasTokensWorker;
|
|
4
4
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createFontAliasTokens.d.ts","sourceRoot":"","sources":["../src/createFontAliasTokens.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"createFontAliasTokens.d.ts","sourceRoot":"","sources":["../src/createFontAliasTokens.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAInE,iBAAS,2BAA2B,IAAI,OAAO,CAAC,QAAQ,CAAC,CAGxD;AAED,eAAO,MAAM,qBAAqB,oCAAuC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AliasColorTokens, ThemeShadowDefinition } from '@fluentui-react-native/theme-types';
|
|
1
|
+
import type { AliasColorTokens, ThemeShadowDefinition } from '@fluentui-react-native/theme-types';
|
|
2
2
|
declare function createOfficeColorAliasTokensWorker(officeTheme: string): AliasColorTokens;
|
|
3
3
|
export declare const createOfficeColorAliasTokens: typeof createOfficeColorAliasTokensWorker;
|
|
4
4
|
declare function createOfficeShadowAliasTokensWorker(officeTheme: string): ThemeShadowDefinition;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOfficeAliasTokens.d.ts","sourceRoot":"","sources":["../src/createOfficeAliasTokens.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"createOfficeAliasTokens.d.ts","sourceRoot":"","sources":["../src/createOfficeAliasTokens.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAIlG,iBAAS,kCAAkC,CAAC,WAAW,EAAE,MAAM,GAAG,gBAAgB,CAGjF;AAED,eAAO,MAAM,4BAA4B,2CAA8C,CAAC;AAExF,iBAAS,mCAAmC,CAAC,WAAW,EAAE,MAAM,GAAG,qBAAqB,CAGvF;AAED,eAAO,MAAM,6BAA6B,4CAA+C,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ThemeReference } from '@fluentui-react-native/theme';
|
|
2
|
-
import { ThemeOptions } from '@fluentui-react-native/theme-types';
|
|
2
|
+
import type { ThemeOptions } from '@fluentui-react-native/theme-types';
|
|
3
3
|
/**
|
|
4
4
|
* create a theme reference for an Office win32 theme. This will be based upon the standard
|
|
5
5
|
* fluent defaults but will attempt to use the theming native module to get information about
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOfficeTheme.d.ts","sourceRoot":"","sources":["../src/createOfficeTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAI9D,OAAO,EAAwB,YAAY,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"createOfficeTheme.d.ts","sourceRoot":"","sources":["../src/createOfficeTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAI9D,OAAO,KAAK,EAAwB,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAY7F;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,GAAE,YAAiB,GAAG,cAAc,CAwD5E"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OfficePalette, PartialTheme } from '@fluentui-react-native/theme-types';
|
|
2
|
-
import { OfficeThemingModule } from './NativeModule/officeThemingModule';
|
|
1
|
+
import type { OfficePalette, PartialTheme } from '@fluentui-react-native/theme-types';
|
|
2
|
+
import type { OfficeThemingModule } from './NativeModule/officeThemingModule';
|
|
3
3
|
/**
|
|
4
4
|
* create a partial theme with overrides from the office native module
|
|
5
5
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createPartialOfficeTheme.d.ts","sourceRoot":"","sources":["../src/createPartialOfficeTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"createPartialOfficeTheme.d.ts","sourceRoot":"","sources":["../src/createPartialOfficeTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAgB9E;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,mBAAmB,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,YAAY,CAc/H"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getThemeTypography.d.ts","sourceRoot":"","sources":["../src/getThemeTypography.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAY,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"getThemeTypography.d.ts","sourceRoot":"","sources":["../src/getThemeTypography.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAY,MAAM,oCAAoC,CAAC;AAI/E,wBAAgB,eAAe,IAAI,UAAU,CAiC5C"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Palette, OfficePalette } from '@fluentui-react-native/theme-types';
|
|
1
|
+
import type { Palette, OfficePalette } from '@fluentui-react-native/theme-types';
|
|
2
2
|
export declare function paletteFromOfficeColors(p: OfficePalette): Palette;
|
|
3
3
|
//# sourceMappingURL=paletteFromOfficeColors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paletteFromOfficeColors.d.ts","sourceRoot":"","sources":["../src/paletteFromOfficeColors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"paletteFromOfficeColors.d.ts","sourceRoot":"","sources":["../src/paletteFromOfficeColors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAEjF,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,aAAa,GAAG,OAAO,CA2LjE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OfficeThemingModule } from '../officeThemingModule';
|
|
1
|
+
import type { OfficeThemingModule } from '../officeThemingModule';
|
|
2
2
|
/**
|
|
3
3
|
* implementations for react-native-web, where the native module will not exist. In this case just use the full fallback implementation
|
|
4
4
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getThemingModule.native.d.ts","sourceRoot":"","sources":["../../../src/NativeModule/_mocks_/getThemingModule.native.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"getThemingModule.native.d.ts","sourceRoot":"","sources":["../../../src/NativeModule/_mocks_/getThemingModule.native.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,CAEnE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OfficePalette } from '@fluentui-react-native/theme-types';
|
|
2
|
-
import { OfficeThemingModule } from './officeThemingModule';
|
|
1
|
+
import type { OfficePalette } from '@fluentui-react-native/theme-types';
|
|
2
|
+
import type { OfficeThemingModule } from './officeThemingModule';
|
|
3
3
|
export declare function fallbackGetPalette(pal?: string): OfficePalette;
|
|
4
4
|
export declare const fallbackOfficeModule: OfficeThemingModule;
|
|
5
5
|
//# sourceMappingURL=fallbackOfficeModule.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fallbackOfficeModule.d.ts","sourceRoot":"","sources":["../../src/NativeModule/fallbackOfficeModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"fallbackOfficeModule.d.ts","sourceRoot":"","sources":["../../src/NativeModule/fallbackOfficeModule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AA8IjE,wBAAgB,kBAAkB,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,aAAa,CAO9D;AAED,eAAO,MAAM,oBAAoB,EAAE,mBAgBX,CAAC"}
|
|
@@ -143,7 +143,7 @@ var whiteColorsPalette = {
|
|
|
143
143
|
};
|
|
144
144
|
function fallbackGetPalette(pal) {
|
|
145
145
|
return pal === 'TaskPane'
|
|
146
|
-
?
|
|
146
|
+
? tslib_1.__assign(tslib_1.__assign({}, whiteColorsPalette), { Bkg: 'antiquewhite' }) : whiteColorsPalette;
|
|
147
147
|
}
|
|
148
148
|
exports.fallbackGetPalette = fallbackGetPalette;
|
|
149
149
|
exports.fallbackOfficeModule = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fallbackOfficeModule.js","sourceRoot":"","sources":["../../src/NativeModule/fallbackOfficeModule.ts"],"names":[],"mappings":";;;;AAGA,IAAM,kBAAkB,GAAkB;IACxC,GAAG,EAAE,SAAS;IACd,QAAQ,EAAE,SAAS;IACnB,UAAU,EAAE,SAAS;IACrB,WAAW,EAAE,SAAS;IACtB,SAAS,EAAE,SAAS;IACpB,qBAAqB,EAAE,SAAS;IAChC,IAAI,EAAE,SAAS;IACf,QAAQ,EAAE,SAAS;IACnB,SAAS,EAAE,SAAS;IACpB,WAAW,EAAE,SAAS;IACtB,YAAY,EAAE,SAAS;IACvB,YAAY,EAAE,SAAS;IACvB,sBAAsB,EAAE,SAAS;IACjC,aAAa,EAAE,SAAS;IACxB,iBAAiB,EAAE,SAAS;IAC5B,kBAAkB,EAAE,SAAS;IAC7B,oBAAoB,EAAE,SAAS;IAC/B,qBAAqB,EAAE,SAAS;IAChC,YAAY,EAAE,SAAS;IACvB,gBAAgB,EAAE,SAAS;IAC3B,iBAAiB,EAAE,SAAS;IAC5B,mBAAmB,EAAE,SAAS;IAC9B,oBAAoB,EAAE,SAAS;IAC/B,mBAAmB,EAAE,SAAS;IAC9B,cAAc,EAAE,SAAS;IACzB,cAAc,EAAE,WAAW;IAC3B,eAAe,EAAE,WAAW;IAC5B,iBAAiB,EAAE,WAAW;IAC9B,sBAAsB,EAAE,WAAW;IACnC,uBAAuB,EAAE,SAAS;IAClC,yBAAyB,EAAE,WAAW;IACtC,MAAM,EAAE,SAAS;IACjB,WAAW,EAAE,SAAS;IACtB,aAAa,EAAE,SAAS;IACxB,cAAc,EAAE,SAAS;IACzB,cAAc,EAAE,SAAS;IACzB,OAAO,EAAE,SAAS;IAClB,YAAY,EAAE,SAAS;IACvB,cAAc,EAAE,SAAS;IACzB,eAAe,EAAE,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C5B,yBAAyB,EAAE,SAAS;IACpC,4BAA4B,EAAE,SAAS;IACvC,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE,SAAS;CACtB,CAAC;AAEF,SAAgB,kBAAkB,CAAC,GAAY;IAC7C,OAAO,GAAG,KAAK,UAAU;QACvB,CAAC,
|
|
1
|
+
{"version":3,"file":"fallbackOfficeModule.js","sourceRoot":"","sources":["../../src/NativeModule/fallbackOfficeModule.ts"],"names":[],"mappings":";;;;AAGA,IAAM,kBAAkB,GAAkB;IACxC,GAAG,EAAE,SAAS;IACd,QAAQ,EAAE,SAAS;IACnB,UAAU,EAAE,SAAS;IACrB,WAAW,EAAE,SAAS;IACtB,SAAS,EAAE,SAAS;IACpB,qBAAqB,EAAE,SAAS;IAChC,IAAI,EAAE,SAAS;IACf,QAAQ,EAAE,SAAS;IACnB,SAAS,EAAE,SAAS;IACpB,WAAW,EAAE,SAAS;IACtB,YAAY,EAAE,SAAS;IACvB,YAAY,EAAE,SAAS;IACvB,sBAAsB,EAAE,SAAS;IACjC,aAAa,EAAE,SAAS;IACxB,iBAAiB,EAAE,SAAS;IAC5B,kBAAkB,EAAE,SAAS;IAC7B,oBAAoB,EAAE,SAAS;IAC/B,qBAAqB,EAAE,SAAS;IAChC,YAAY,EAAE,SAAS;IACvB,gBAAgB,EAAE,SAAS;IAC3B,iBAAiB,EAAE,SAAS;IAC5B,mBAAmB,EAAE,SAAS;IAC9B,oBAAoB,EAAE,SAAS;IAC/B,mBAAmB,EAAE,SAAS;IAC9B,cAAc,EAAE,SAAS;IACzB,cAAc,EAAE,WAAW;IAC3B,eAAe,EAAE,WAAW;IAC5B,iBAAiB,EAAE,WAAW;IAC9B,sBAAsB,EAAE,WAAW;IACnC,uBAAuB,EAAE,SAAS;IAClC,yBAAyB,EAAE,WAAW;IACtC,MAAM,EAAE,SAAS;IACjB,WAAW,EAAE,SAAS;IACtB,aAAa,EAAE,SAAS;IACxB,cAAc,EAAE,SAAS;IACzB,cAAc,EAAE,SA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AE,SAAS;IAC/B,qBAAqB,EAAE,SAAS;IAChC,mBAAmB,EAAE,SAAS;IAC9B,iBAAiB,EAAE,SAAS;IAC5B,yBAAyB,EAAE,SAAS;IACpC,4BAA4B,EAAE,SAAS;IACvC,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE,SAAS;CACtB,CAAC;AAEF,SAAgB,kBAAkB,CAAC,GAAY;IAC7C,OAAO,GAAG,KAAK,UAAU;QACvB,CAAC,uCACM,kBAAkB,KACrB,GAAG,EAAE,cAAc,IAEvB,CAAC,CAAC,kBAAkB,CAAC;AACzB,CAAC;AAPD,gDAOC;AAEY,QAAA,oBAAoB,GAAwB;IACvD,KAAK,EAAE;QACL,GAAG,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;QAC7F,WAAW,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;QAC9C,YAAY,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;QAC/C,MAAM,EAAE,CAAC,SAAS,CAAC;KACpB;IACD,UAAU,EAAE,kBAAkB;IAC9B,UAAU,EAAE,EAAE;IACd,gBAAgB,EAAE,EAAE;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;QACzE,WAAW,EAAE,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC;QAC5C,YAAY,EAAE,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC;QAC7C,MAAM,EAAE,CAAC,WAAW,CAAC;KACtB;CACqB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NativeEventEmitter } from 'react-native';
|
|
2
|
-
import { OfficeThemingModule } from './officeThemingModule';
|
|
1
|
+
import type { NativeEventEmitter } from 'react-native';
|
|
2
|
+
import type { OfficeThemingModule } from './officeThemingModule';
|
|
3
3
|
/**
|
|
4
4
|
* implementations for react-native-web, where the native module will not exist. In this case just use the full fallback implementation
|
|
5
5
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getThemingModule.d.ts","sourceRoot":"","sources":["../../src/NativeModule/getThemingModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"getThemingModule.d.ts","sourceRoot":"","sources":["../../src/NativeModule/getThemingModule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAEvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,CAAC,mBAAmB,EAAE,kBAAkB,GAAG,SAAS,CAAC,CAExF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OfficeThemingModule } from './officeThemingModule';
|
|
1
|
+
import type { OfficeThemingModule } from './officeThemingModule';
|
|
2
2
|
import { NativeEventEmitter } from 'react-native';
|
|
3
3
|
export declare function getThemingModule(): [OfficeThemingModule, NativeEventEmitter | undefined];
|
|
4
4
|
//# sourceMappingURL=getThemingModule.native.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getThemingModule.native.d.ts","sourceRoot":"","sources":["../../src/NativeModule/getThemingModule.native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"getThemingModule.native.d.ts","sourceRoot":"","sources":["../../src/NativeModule/getThemingModule.native.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,EAAE,kBAAkB,EAAuB,MAAM,cAAc,CAAC;AAgBvE,wBAAgB,gBAAgB,IAAI,CAAC,mBAAmB,EAAE,kBAAkB,GAAG,SAAS,CAAC,CAUxF"}
|
|
@@ -14,7 +14,7 @@ function getThemingModule() {
|
|
|
14
14
|
// if the native module exists return the module + an emitter for it
|
|
15
15
|
if (module) {
|
|
16
16
|
// mock getPalette if it should be disabled, otherwise return the module directly
|
|
17
|
-
return [disableGetPalette() ?
|
|
17
|
+
return [disableGetPalette() ? tslib_1.__assign(tslib_1.__assign({}, module), { getPalette: fallbackOfficeModule_1.fallbackGetPalette }) : module, new react_native_1.NativeEventEmitter(module)];
|
|
18
18
|
}
|
|
19
19
|
// otherwise use the fallback module
|
|
20
20
|
return [fallbackOfficeModule_1.fallbackOfficeModule, undefined];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getThemingModule.native.js","sourceRoot":"","sources":["../../src/NativeModule/getThemingModule.native.ts"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"getThemingModule.native.js","sourceRoot":"","sources":["../../src/NativeModule/getThemingModule.native.ts"],"names":[],"mappings":";;;;AAEA,6CAAuE;AACvE,+DAAkF;AASlF,SAAS,iBAAiB;IACxB,IAAM,QAAQ,GAAG,OAAO,IAAI,SAAS,IAAI,SAAS,CAAC,SAAS,KAAK,SAAS,CAAC;IAC3E,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8EAA8E,CAAC,CAAC,CAAC;IACvH,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,SAAgB,gBAAgB;IAC9B,IAAM,MAAM,GAAG,kCAAmB,CAAC,GAAG,CAAuB,SAAS,CAAC,CAAC;IACxE,oEAAoE;IACpE,IAAI,MAAM,EAAE;QACV,iFAAiF;QACjF,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC,uCAAM,MAAM,KAAE,UAAU,EAAE,yCAAkB,IAAG,CAAC,CAAC,MAAM,EAAE,IAAI,iCAAkB,CAAC,MAAM,CAAC,CAAC,CAAC;KACvH;IAED,oCAAoC;IACpC,OAAO,CAAC,2CAAoB,EAAE,SAAS,CAAC,CAAC;AAC3C,CAAC;AAVD,4CAUC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var tslib_1 = require("tslib");
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
tslib_1.__exportStar(require("./fallbackOfficeModule"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./getThemingModule"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./officeThemingModule"), exports);
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/NativeModule/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/NativeModule/index.ts"],"names":[],"mappings":";;;AAAA,iEAAuC;AACvC,6DAAmC;AACnC,gEAAsC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { NativeModule, ColorValue } from 'react-native';
|
|
2
|
-
import { OfficePalette, Typography } from '@fluentui-react-native/theme-types';
|
|
3
|
-
export
|
|
2
|
+
import type { OfficePalette, Typography } from '@fluentui-react-native/theme-types';
|
|
3
|
+
export type PlatformDefaultsChangedArgs = {
|
|
4
4
|
hostThemeSetting: string;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type PlatformDefaultsChangedCallback = (args?: PlatformDefaultsChangedArgs) => void;
|
|
7
7
|
export interface CxxException {
|
|
8
8
|
message: string;
|
|
9
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"officeThemingModule.d.ts","sourceRoot":"","sources":["../../src/NativeModule/officeThemingModule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,M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;AAED,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,+BAA+B,KAAA,KAAK,IAAI,CAAC;CACvE"}
|
|
@@ -33,26 +33,26 @@ it('createOfficeTheme test', function () {
|
|
|
33
33
|
var officeTheme = (0, createOfficeTheme_1.createOfficeTheme)({ paletteName: 'TaskPane', appearance: 'light' }).theme;
|
|
34
34
|
expect(officeTheme).toMatchSnapshot();
|
|
35
35
|
});
|
|
36
|
-
it.concurrent.each(officeThemes)('createBrandedThemeWithAlias test themeName: %s', function (themeName) { return
|
|
36
|
+
it.concurrent.each(officeThemes)('createBrandedThemeWithAlias test themeName: %s', function (themeName) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
37
37
|
var officeTheme, brandedTheme;
|
|
38
|
-
return
|
|
38
|
+
return tslib_1.__generator(this, function (_a) {
|
|
39
39
|
officeTheme = (0, createOfficeTheme_1.createOfficeTheme)({ paletteName: 'TaskPane', appearance: 'light' }).theme;
|
|
40
40
|
brandedTheme = (0, createBrandedThemeWithAlias_1.createBrandedThemeWithAlias)(themeName, officeTheme);
|
|
41
41
|
expect(brandedTheme).toMatchSnapshot();
|
|
42
42
|
return [2 /*return*/];
|
|
43
43
|
});
|
|
44
44
|
}); });
|
|
45
|
-
it.concurrent.each(officeThemes)('createOfficeColorAliasTokens test officeTheme: %s', function (themeName) { return
|
|
45
|
+
it.concurrent.each(officeThemes)('createOfficeColorAliasTokens test officeTheme: %s', function (themeName) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
46
46
|
var colorAliasToken;
|
|
47
|
-
return
|
|
47
|
+
return tslib_1.__generator(this, function (_a) {
|
|
48
48
|
colorAliasToken = (0, createOfficeAliasTokens_1.createOfficeColorAliasTokens)(themeName);
|
|
49
49
|
expect(colorAliasToken).toMatchSnapshot();
|
|
50
50
|
return [2 /*return*/];
|
|
51
51
|
});
|
|
52
52
|
}); });
|
|
53
|
-
it.concurrent.each(officeThemes)('createOfficeShadowAliasTokens test officeTheme: %s', function (themeName) { return
|
|
53
|
+
it.concurrent.each(officeThemes)('createOfficeShadowAliasTokens test officeTheme: %s', function (themeName) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
54
54
|
var shadowAliasToken;
|
|
55
|
-
return
|
|
55
|
+
return tslib_1.__generator(this, function (_a) {
|
|
56
56
|
shadowAliasToken = (0, createOfficeAliasTokens_1.createOfficeShadowAliasTokens)(themeName);
|
|
57
57
|
expect(shadowAliasToken).toMatchSnapshot();
|
|
58
58
|
return [2 /*return*/];
|
|
@@ -73,26 +73,26 @@ describe('fallbackGetPalette test', function () {
|
|
|
73
73
|
});
|
|
74
74
|
});
|
|
75
75
|
describe('getCurrentBrandAliasTokens test', function () {
|
|
76
|
-
it.concurrent.each(appPrimaries)('themeName: White, appPrimary: %s', function (appPrimary) { return
|
|
76
|
+
it.concurrent.each(appPrimaries)('themeName: White, appPrimary: %s', function (appPrimary) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
77
77
|
var brandAliasTokens;
|
|
78
|
-
return
|
|
78
|
+
return tslib_1.__generator(this, function (_a) {
|
|
79
79
|
brandAliasTokens = (0, createBrandedThemeWithAlias_1.getCurrentBrandAliasTokens)('White', appPrimary);
|
|
80
80
|
expect(brandAliasTokens).toMatchSnapshot();
|
|
81
81
|
return [2 /*return*/];
|
|
82
82
|
});
|
|
83
83
|
}); });
|
|
84
|
-
it.concurrent.each(appPrimaries)('themeName: Colorful, appPrimary: %s', function (appPrimary) { return
|
|
84
|
+
it.concurrent.each(appPrimaries)('themeName: Colorful, appPrimary: %s', function (appPrimary) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
85
85
|
var brandAliasTokens;
|
|
86
|
-
return
|
|
86
|
+
return tslib_1.__generator(this, function (_a) {
|
|
87
87
|
brandAliasTokens = (0, createBrandedThemeWithAlias_1.getCurrentBrandAliasTokens)('Colorful', appPrimary);
|
|
88
88
|
expect(brandAliasTokens).toMatchSnapshot();
|
|
89
89
|
return [2 /*return*/];
|
|
90
90
|
});
|
|
91
91
|
}); });
|
|
92
92
|
// Tests the variation of the alias tokens for when isWhiteOrColorfulTheme is not true
|
|
93
|
-
it.concurrent.each(appPrimaries)('themeName: null, appPrimary: %s', function (appPrimary) { return
|
|
93
|
+
it.concurrent.each(appPrimaries)('themeName: null, appPrimary: %s', function (appPrimary) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
94
94
|
var brandAliasTokens;
|
|
95
|
-
return
|
|
95
|
+
return tslib_1.__generator(this, function (_a) {
|
|
96
96
|
brandAliasTokens = (0, createBrandedThemeWithAlias_1.getCurrentBrandAliasTokens)(null, appPrimary);
|
|
97
97
|
expect(brandAliasTokens).toMatchSnapshot();
|
|
98
98
|
return [2 /*return*/];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { AliasColorTokens, OfficePalette } from '@fluentui-react-native/theme-types';
|
|
1
|
+
import type { AliasColorTokens, OfficePalette } from '@fluentui-react-native/theme-types';
|
|
2
2
|
export declare function createAliasesFromPalette(palette: OfficePalette, isHighContrast: boolean): Partial<AliasColorTokens>;
|
|
3
3
|
//# sourceMappingURL=createAliasesFromPalette.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAliasesFromPalette.d.ts","sourceRoot":"","sources":["../src/createAliasesFromPalette.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"createAliasesFromPalette.d.ts","sourceRoot":"","sources":["../src/createAliasesFromPalette.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAE1F,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAkEnH"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Theme, PartialTheme, AliasColorTokens } from '@fluentui-react-native/theme-types';
|
|
2
|
-
import { ColorValue } from 'react-native';
|
|
1
|
+
import type { Theme, PartialTheme, AliasColorTokens } from '@fluentui-react-native/theme-types';
|
|
2
|
+
import type { ColorValue } from 'react-native';
|
|
3
3
|
export declare function createBrandedThemeWithAlias(themeName: string, theme: Theme): PartialTheme;
|
|
4
4
|
export declare function getCurrentBrandAliasTokens(themeName: string, appPrimary: ColorValue): Partial<AliasColorTokens>;
|
|
5
5
|
//# sourceMappingURL=createBrandedThemeWithAlias.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createBrandedThemeWithAlias.d.ts","sourceRoot":"","sources":["../src/createBrandedThemeWithAlias.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"createBrandedThemeWithAlias.d.ts","sourceRoot":"","sources":["../src/createBrandedThemeWithAlias.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAEhG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,YAAY,CAQzF;AAED,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAoC/G"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Variants } from '@fluentui-react-native/theme-types';
|
|
1
|
+
import type { Variants } from '@fluentui-react-native/theme-types';
|
|
2
2
|
declare function createFontAliasTokensWorker(): Partial<Variants>;
|
|
3
3
|
export declare const createFontAliasTokens: typeof createFontAliasTokensWorker;
|
|
4
4
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createFontAliasTokens.d.ts","sourceRoot":"","sources":["../src/createFontAliasTokens.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"createFontAliasTokens.d.ts","sourceRoot":"","sources":["../src/createFontAliasTokens.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAInE,iBAAS,2BAA2B,IAAI,OAAO,CAAC,QAAQ,CAAC,CAGxD;AAED,eAAO,MAAM,qBAAqB,oCAAuC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AliasColorTokens, ThemeShadowDefinition } from '@fluentui-react-native/theme-types';
|
|
1
|
+
import type { AliasColorTokens, ThemeShadowDefinition } from '@fluentui-react-native/theme-types';
|
|
2
2
|
declare function createOfficeColorAliasTokensWorker(officeTheme: string): AliasColorTokens;
|
|
3
3
|
export declare const createOfficeColorAliasTokens: typeof createOfficeColorAliasTokensWorker;
|
|
4
4
|
declare function createOfficeShadowAliasTokensWorker(officeTheme: string): ThemeShadowDefinition;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOfficeAliasTokens.d.ts","sourceRoot":"","sources":["../src/createOfficeAliasTokens.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"createOfficeAliasTokens.d.ts","sourceRoot":"","sources":["../src/createOfficeAliasTokens.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAIlG,iBAAS,kCAAkC,CAAC,WAAW,EAAE,MAAM,GAAG,gBAAgB,CAGjF;AAED,eAAO,MAAM,4BAA4B,2CAA8C,CAAC;AAExF,iBAAS,mCAAmC,CAAC,WAAW,EAAE,MAAM,GAAG,qBAAqB,CAGvF;AAED,eAAO,MAAM,6BAA6B,4CAA+C,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ThemeReference } from '@fluentui-react-native/theme';
|
|
2
|
-
import { ThemeOptions } from '@fluentui-react-native/theme-types';
|
|
2
|
+
import type { ThemeOptions } from '@fluentui-react-native/theme-types';
|
|
3
3
|
/**
|
|
4
4
|
* create a theme reference for an Office win32 theme. This will be based upon the standard
|
|
5
5
|
* fluent defaults but will attempt to use the theming native module to get information about
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOfficeTheme.d.ts","sourceRoot":"","sources":["../src/createOfficeTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAI9D,OAAO,EAAwB,YAAY,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"createOfficeTheme.d.ts","sourceRoot":"","sources":["../src/createOfficeTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAI9D,OAAO,KAAK,EAAwB,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAY7F;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,GAAE,YAAiB,GAAG,cAAc,CAwD5E"}
|
|
@@ -37,7 +37,7 @@ function createOfficeTheme(options) {
|
|
|
37
37
|
return {};
|
|
38
38
|
}
|
|
39
39
|
return {
|
|
40
|
-
shadows:
|
|
40
|
+
shadows: tslib_1.__assign({}, (0, createOfficeAliasTokens_1.createOfficeShadowAliasTokens)(ref.themeName)),
|
|
41
41
|
typography: (0, getThemeTypography_1.win32Typography)(),
|
|
42
42
|
};
|
|
43
43
|
}, function () {
|
|
@@ -45,7 +45,7 @@ function createOfficeTheme(options) {
|
|
|
45
45
|
return {};
|
|
46
46
|
}
|
|
47
47
|
return {
|
|
48
|
-
colors:
|
|
48
|
+
colors: tslib_1.__assign({}, (0, createOfficeAliasTokens_1.createOfficeColorAliasTokens)(ref.themeName)),
|
|
49
49
|
typography: (0, getThemeTypography_1.win32Typography)(),
|
|
50
50
|
};
|
|
51
51
|
}, function (theme) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOfficeTheme.js","sourceRoot":"","sources":["../src/createOfficeTheme.ts"],"names":[],"mappings":";;;;AAAA,sDAA8D;AAC9D,sEAA0E;AAC1E,oEAAmE;AAGnE,uEAAsE;AACtE,qEAAwG;AACxG,6EAA4E;AAC5E,uEAAsE;AACtE,2DAAuD;AAEvD,SAAS,iBAAiB,CAAC,OAAqC;IAC9D,IAAM,SAAS,GAAG,OAAuB,CAAC;IAC1C,OAAO,SAAS,IAAI,SAAS,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAE,OAAyB,CAAC;AAC/F,CAAC;AAED;;;;;;;;GAQG;AACH,SAAgB,iBAAiB,CAAC,OAA0B;IAA1B,wBAAA,EAAA,YAA0B;IACpD,IAAA,KAAoB,IAAA,mCAAgB,GAAE,EAArC,MAAM,QAAA,EAAE,OAAO,QAAsB,CAAC;IAC7C,IAAM,GAAG,GAAG,EAAE,MAAM,QAAA,EAAE,OAAO,SAAA,EAAE,SAAS,EAAE,MAAM,CAAC,uBAAuB,IAAI,EAAE,EAAE,CAAC;IACzE,IAAA,WAAW,GAAK,OAAO,YAAZ,CAAa;IAEhC,IAAM,QAAQ,GAAG,IAAI,sBAAc,CACjC,IAAA,kCAAkB,EAAC,OAAO,CAAC,EAC3B;QACE,IAAM,IAAI,GAAG,WAAW,IAAI,aAAa,CAAC;QAC1C,IAAM,OAAO,GAAG,iBAAiB,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;QAC/D,OAAO,IAAA,mDAAwB,EAAC,MAAM,EAAE,GAAG,CAAC,SAAS,EAAE,OAAO,CAA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AClB,CAAC;AAxDD,8CAwDC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OfficePalette, PartialTheme } from '@fluentui-react-native/theme-types';
|
|
2
|
-
import { OfficeThemingModule } from './NativeModule/officeThemingModule';
|
|
1
|
+
import type { OfficePalette, PartialTheme } from '@fluentui-react-native/theme-types';
|
|
2
|
+
import type { OfficeThemingModule } from './NativeModule/officeThemingModule';
|
|
3
3
|
/**
|
|
4
4
|
* create a partial theme with overrides from the office native module
|
|
5
5
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createPartialOfficeTheme.d.ts","sourceRoot":"","sources":["../src/createPartialOfficeTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"createPartialOfficeTheme.d.ts","sourceRoot":"","sources":["../src/createPartialOfficeTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAgB9E;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,mBAAmB,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,YAAY,CAc/H"}
|
|
@@ -5,7 +5,7 @@ var tslib_1 = require("tslib");
|
|
|
5
5
|
var paletteFromOfficeColors_1 = require("./paletteFromOfficeColors");
|
|
6
6
|
var getRamps = function (module) {
|
|
7
7
|
return Object.keys(module.ramps).reduce(function (total, colorRamp) {
|
|
8
|
-
return Object.assign.apply(Object,
|
|
8
|
+
return Object.assign.apply(Object, tslib_1.__spreadArray([total], module.rampNames[colorRamp].map(function (rampValueName, index) {
|
|
9
9
|
var _a;
|
|
10
10
|
return _a = {}, _a[rampValueName] = module.ramps[colorRamp][index], _a;
|
|
11
11
|
}), false));
|
|
@@ -18,7 +18,7 @@ var getRamps = function (module) {
|
|
|
18
18
|
* @param palette - Office palette colors, if they have been successfully retrieved
|
|
19
19
|
*/
|
|
20
20
|
function createPartialOfficeTheme(module, themeName, palette) {
|
|
21
|
-
return
|
|
21
|
+
return tslib_1.__assign({ colors: tslib_1.__assign({}, (palette && (0, paletteFromOfficeColors_1.paletteFromOfficeColors)(palette))), typography: module.fluentTypography, host: {
|
|
22
22
|
// Office Semantic Colors
|
|
23
23
|
palette: palette || {},
|
|
24
24
|
// Office Branding Colors
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createPartialOfficeTheme.js","sourceRoot":"","sources":["../src/createPartialOfficeTheme.ts"],"names":[],"mappings":";;;;AAEA,qEAAoE;AAIpE,IAAM,QAAQ,GAAG,UAAC,MAA2B;IAC3C,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,CAAS,UAAC,KAAa,EAAE,SAAiB;QAC/E,OAAO,MAAM,CAAC,MAAM,OAAb,MAAM,
|
|
1
|
+
{"version":3,"file":"createPartialOfficeTheme.js","sourceRoot":"","sources":["../src/createPartialOfficeTheme.ts"],"names":[],"mappings":";;;;AAEA,qEAAoE;AAIpE,IAAM,QAAQ,GAAG,UAAC,MAA2B;IAC3C,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,CAAS,UAAC,KAAa,EAAE,SAAiB;QAC/E,OAAO,MAAM,CAAC,MAAM,OAAb,MAAM,yBACX,KAAK,GACF,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,UAAC,aAAqB,EAAE,KAAa;;YACtE,gBAAS,GAAC,aAAa,IAAG,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,KAAG;QAC7D,CAAC,CAAC,UACF;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC,CAAC;AAEF;;;;;GAKG;AACH,SAAgB,wBAAwB,CAAC,MAA2B,EAAE,SAAkB,EAAE,OAAuB;IAC/G,0BACE,MAAM,uBACD,CAAC,OAAO,IAAI,IAAA,iDAAuB,EAAC,OAAO,CAAC,CAAC,GAElD,UAAU,EAAE,MAAM,CAAC,gBAAgB,EACnC,IAAI,EAAE;YACJ,yBAAyB;YACzB,OAAO,EAAE,OAAO,IAAI,EAAE;YACtB,yBAAyB;YACzB,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC;SACzB,IACE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAChD;AACJ,CAAC;AAdD,4DAcC"}
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getOfficeShadowTokens = exports.getOfficeAliasTokens = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
|
-
var tokens_aliases_json_1 =
|
|
6
|
-
var tokens_aliases_json_2 =
|
|
7
|
-
var tokens_aliases_json_3 =
|
|
5
|
+
var tokens_aliases_json_1 = tslib_1.__importDefault(require("@fluentui-react-native/design-tokens-win32/colorful/tokens-aliases.json"));
|
|
6
|
+
var tokens_aliases_json_2 = tslib_1.__importDefault(require("@fluentui-react-native/design-tokens-win32/darkgray/tokens-aliases.json"));
|
|
7
|
+
var tokens_aliases_json_3 = tslib_1.__importDefault(require("@fluentui-react-native/design-tokens-win32/black/tokens-aliases.json"));
|
|
8
8
|
var tokens_alias_1 = require("./highContrast/tokens-alias");
|
|
9
|
-
var tokens_shadow_json_1 =
|
|
10
|
-
var tokens_shadow_json_2 =
|
|
11
|
-
var tokens_shadow_json_3 =
|
|
12
|
-
var tokens_shadow_json_4 =
|
|
9
|
+
var tokens_shadow_json_1 = tslib_1.__importDefault(require("@fluentui-react-native/design-tokens-win32/colorful/tokens-shadow.json"));
|
|
10
|
+
var tokens_shadow_json_2 = tslib_1.__importDefault(require("@fluentui-react-native/design-tokens-win32/darkgray/tokens-shadow.json"));
|
|
11
|
+
var tokens_shadow_json_3 = tslib_1.__importDefault(require("@fluentui-react-native/design-tokens-win32/black/tokens-shadow.json"));
|
|
12
|
+
var tokens_shadow_json_4 = tslib_1.__importDefault(require("@fluentui-react-native/design-tokens-win32/hc/tokens-shadow.json"));
|
|
13
13
|
function getOfficeAliasTokens(officeTheme) {
|
|
14
14
|
if (officeTheme === 'White' || officeTheme === 'Colorful') {
|
|
15
15
|
return tokens_aliases_json_1.default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getOfficeTokens.js","sourceRoot":"","sources":["../src/getOfficeTokens.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"getOfficeTokens.js","sourceRoot":"","sources":["../src/getOfficeTokens.ts"],"names":[],"mappings":";;;;AAAA,wIAA0G;AAC1G,wIAA0G;AAC1G,qIAAoG;AACpG,4DAA4D;AAC5D,sIAA0G;AAC1G,sIAA0G;AAC1G,mIAAoG;AACpG,gIAA8F;AAE9F,SAAgB,oBAAoB,CAAC,WAAmB;IACtD,IAAI,WAAW,KAAK,OAAO,IAAI,WAAW,KAAK,UAAU,EAAE;QACzD,OAAO,6BAAmB,CAAC;KAC5B;SAAM,IAAI,WAAW,KAAK,UAAU,EAAE;QACrC,OAAO,6BAAmB,CAAC;KAC5B;SAAM,IAAI,WAAW,KAAK,OAAO,EAAE;QAClC,OAAO,6BAAgB,CAAC;KACzB;SAAM,IAAI,WAAW,KAAK,cAAc,EAAE;QACzC,OAAO,4BAAa,CAAC;KACtB;IAED,OAAO,6BAAmB,CAAC;AAC7B,CAAC;AAZD,oDAYC;AAED,SAAgB,qBAAqB,CAAC,WAAmB;IACvD,IAAI,WAAW,KAAK,OAAO,IAAI,WAAW,KAAK,UAAU,EAAE;QACzD,OAAO,4BAAoB,CAAC;KAC7B;SAAM,IAAI,WAAW,KAAK,UAAU,EAAE;QACrC,OAAO,4BAAoB,CAAC;KAC7B;SAAM,IAAI,WAAW,KAAK,OAAO,EAAE;QAClC,OAAO,4BAAiB,CAAC;KAC1B;SAAM,IAAI,WAAW,KAAK,cAAc,EAAE;QACzC,OAAO,4BAAc,CAAC;KACvB;IAED,OAAO,6BAAmB,CAAC;AAC7B,CAAC;AAZD,sDAYC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getThemeTypography.d.ts","sourceRoot":"","sources":["../src/getThemeTypography.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAY,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"getThemeTypography.d.ts","sourceRoot":"","sources":["../src/getThemeTypography.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAY,MAAM,oCAAoC,CAAC;AAI/E,wBAAgB,eAAe,IAAI,UAAU,CAiC5C"}
|
|
@@ -18,7 +18,7 @@ function win32Typography() {
|
|
|
18
18
|
serif: 'System',
|
|
19
19
|
numeric: 'Bahnschrift',
|
|
20
20
|
},
|
|
21
|
-
variants:
|
|
21
|
+
variants: tslib_1.__assign({ captionStandard: { face: 'primary', size: 'caption', weight: 'regular' }, secondaryStandard: { face: 'primary', size: 'secondary', weight: 'regular' }, secondarySemibold: { face: 'primary', size: 'secondary', weight: 'semiBold' }, bodyStandard: { face: 'primary', size: 'body', weight: 'regular' }, bodySemibold: { face: 'primary', size: 'body', weight: 'semiBold' }, subheaderStandard: { face: 'primary', size: 'subheader', weight: 'regular' }, subheaderSemibold: { face: 'primary', size: 'subheader', weight: 'semiBold' }, headerStandard: { face: 'primary', size: 'header', weight: 'regular' }, headerSemibold: { face: 'primary', size: 'header', weight: 'semiBold' }, heroStandard: { face: 'primary', size: 'hero', weight: 'regular' }, heroSemibold: { face: 'primary', size: 'hero', weight: 'semiBold' }, heroLargeStandard: { face: 'primary', size: 'heroLarge', weight: 'regular' }, heroLargeSemibold: { face: 'primary', size: 'heroLarge', weight: 'semiBold' } }, (0, createFontAliasTokens_1.createFontAliasTokens)()),
|
|
22
22
|
};
|
|
23
23
|
return win32Dict;
|
|
24
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getThemeTypography.js","sourceRoot":"","sources":["../src/getThemeTypography.ts"],"names":[],"mappings":";;;;AACA,sEAA0E;AAC1E,iEAAgE;AAEhE,SAAgB,eAAe;IAC7B,IAAM,SAAS,GAAG;QAChB,KAAK,EAAE,IAAA,kCAAkB,GAAE,CAAC,UAAU,CAAC,KAAK;QAC5C,OAAO,EAAE,IAAA,kCAAkB,GAAE,CAAC,UAAU,CAAC,OAAO;QAChD,oDAAoD;QACpD,QAAQ,EAAE;YACR,OAAO,EAAE,UAAU;YACnB,SAAS,EAAE,mBAAmB;YAC9B,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,UAAU;YACrB,SAAS,EAAE,QAAQ;YACnB,KAAK,EAAE,QAAQ;YACf,OAAO,EAAE,aAAa;SACvB;QACD,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"getThemeTypography.js","sourceRoot":"","sources":["../src/getThemeTypography.ts"],"names":[],"mappings":";;;;AACA,sEAA0E;AAC1E,iEAAgE;AAEhE,SAAgB,eAAe;IAC7B,IAAM,SAAS,GAAG;QAChB,KAAK,EAAE,IAAA,kCAAkB,GAAE,CAAC,UAAU,CAAC,KAAK;QAC5C,OAAO,EAAE,IAAA,kCAAkB,GAAE,CAAC,UAAU,CAAC,OAAO;QAChD,oDAAoD;QACpD,QAAQ,EAAE;YACR,OAAO,EAAE,UAAU;YACnB,SAAS,EAAE,mBAAmB;YAC9B,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,UAAU;YACrB,SAAS,EAAE,QAAQ;YACnB,KAAK,EAAE,QAAQ;YACf,OAAO,EAAE,aAAa;SACvB;QACD,QAAQ,EAAE,mBACR,eAAe,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SA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,GAAE,CACf;KACd,CAAC;IAEF,OAAO,SAAS,CAAC;AACnB,CAAC;AAjCD,0CAiCC"}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.hcAliasTokens = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var react_native_1 = require("react-native");
|
|
6
|
-
var tokens_aliases_json_1 =
|
|
6
|
+
var tokens_aliases_json_1 = tslib_1.__importDefault(require("@fluentui-react-native/design-tokens-win32/hc/tokens-aliases.json"));
|
|
7
7
|
exports.hcAliasTokens = processAliasTokens(tokens_aliases_json_1.default);
|
|
8
8
|
function processAliasTokens(aliasTokens) {
|
|
9
9
|
for (var key in aliasTokens) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens-alias.js","sourceRoot":"","sources":["../../src/highContrast/tokens-alias.ts"],"names":[],"mappings":";;;;AAAA,6CAA6C;AAC7C,
|
|
1
|
+
{"version":3,"file":"tokens-alias.js","sourceRoot":"","sources":["../../src/highContrast/tokens-alias.ts"],"names":[],"mappings":";;;;AAAA,6CAA6C;AAC7C,kIAA4F;AAE/E,QAAA,aAAa,GAAG,kBAAkB,CAAC,6BAAW,CAAC,CAAC;AAE7D,SAAS,kBAAkB,CAAC,WAAgB;IAC1C,KAAK,IAAM,GAAG,IAAI,WAAW,EAAE;QAC7B,KAAK,IAAM,QAAQ,IAAI,WAAW,CAAC,GAAG,CAAC,EAAE;YACvC,IAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC;YACzC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE;gBAChE,IAAM,KAAK,GAAG,KAAK,CAAC,SAAS,CAAC,EAAE,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;gBACpD,WAAW,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,GAAG,IAAA,4BAAa,EAAC,KAAK,CAAC,CAAC;aACnD;SACF;KACF;IAED,OAAO,WAAW,CAAC;AACrB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Palette, OfficePalette } from '@fluentui-react-native/theme-types';
|
|
1
|
+
import type { Palette, OfficePalette } from '@fluentui-react-native/theme-types';
|
|
2
2
|
export declare function paletteFromOfficeColors(p: OfficePalette): Palette;
|
|
3
3
|
//# sourceMappingURL=paletteFromOfficeColors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paletteFromOfficeColors.d.ts","sourceRoot":"","sources":["../src/paletteFromOfficeColors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"paletteFromOfficeColors.d.ts","sourceRoot":"","sources":["../src/paletteFromOfficeColors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAEjF,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,aAAa,GAAG,OAAO,CA2LjE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/win32-theme",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.15",
|
|
4
4
|
"description": "Win32 office theme that works with the theming native module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
"author": "",
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@fluentui-react-native/default-theme": ">=0.16.
|
|
30
|
+
"@fluentui-react-native/default-theme": ">=0.16.28 <1.0.0",
|
|
31
31
|
"@fluentui-react-native/design-tokens-win32": "^0.42.0",
|
|
32
|
-
"@fluentui-react-native/memo-cache": "^1.1.
|
|
33
|
-
"@fluentui-react-native/theme-tokens": ">=0.24.
|
|
34
|
-
"@fluentui-react-native/theme-types": ">=0.30.
|
|
35
|
-
"@fluentui-react-native/theme": ">=0.7.
|
|
36
|
-
"@fluentui-react-native/theming-utils": ">=0.23.
|
|
32
|
+
"@fluentui-react-native/memo-cache": "^1.1.8",
|
|
33
|
+
"@fluentui-react-native/theme-tokens": ">=0.24.2 <1.0.0",
|
|
34
|
+
"@fluentui-react-native/theme-types": ">=0.30.2 <1.0.0",
|
|
35
|
+
"@fluentui-react-native/theme": ">=0.7.20 <1.0.0",
|
|
36
|
+
"@fluentui-react-native/theming-utils": ">=0.23.2 <1.0.0",
|
|
37
37
|
"tslib": "^2.3.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
@@ -50,14 +50,20 @@
|
|
|
50
50
|
"react-native": "^0.68.0"
|
|
51
51
|
},
|
|
52
52
|
"rnx-kit": {
|
|
53
|
-
"reactNativeVersion": "^0.68",
|
|
54
|
-
"reactNativeDevVersion": "^0.68",
|
|
55
53
|
"kitType": "library",
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"
|
|
61
|
-
|
|
54
|
+
"alignDeps": {
|
|
55
|
+
"presets": [
|
|
56
|
+
"microsoft/react-native"
|
|
57
|
+
],
|
|
58
|
+
"requirements": [
|
|
59
|
+
"react-native@0.68"
|
|
60
|
+
],
|
|
61
|
+
"capabilities": [
|
|
62
|
+
"core",
|
|
63
|
+
"core-android",
|
|
64
|
+
"core-ios",
|
|
65
|
+
"react"
|
|
66
|
+
]
|
|
67
|
+
}
|
|
62
68
|
}
|
|
63
69
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { fallbackOfficeModule } from '../fallbackOfficeModule';
|
|
2
|
-
import { OfficeThemingModule } from '../officeThemingModule';
|
|
2
|
+
import type { OfficeThemingModule } from '../officeThemingModule';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* implementations for react-native-web, where the native module will not exist. In this case just use the full fallback implementation
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OfficePalette } from '@fluentui-react-native/theme-types';
|
|
2
|
-
import { OfficeThemingModule } from './officeThemingModule';
|
|
1
|
+
import type { OfficePalette } from '@fluentui-react-native/theme-types';
|
|
2
|
+
import type { OfficeThemingModule } from './officeThemingModule';
|
|
3
3
|
|
|
4
4
|
const whiteColorsPalette: OfficePalette = {
|
|
5
5
|
Bkg: '#FFFFFF',
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { OfficeThemingModule } from './officeThemingModule';
|
|
2
|
-
import {
|
|
1
|
+
import type { OfficeThemingModule } from './officeThemingModule';
|
|
2
|
+
import type { EventSubscriptionVendor, TurboModule } from 'react-native';
|
|
3
|
+
import { NativeEventEmitter, TurboModuleRegistry } from 'react-native';
|
|
3
4
|
import { fallbackGetPalette, fallbackOfficeModule } from './fallbackOfficeModule';
|
|
4
5
|
|
|
5
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { NativeEventEmitter } from 'react-native';
|
|
1
|
+
import type { NativeEventEmitter } from 'react-native';
|
|
2
2
|
import { fallbackOfficeModule } from './fallbackOfficeModule';
|
|
3
|
-
import { OfficeThemingModule } from './officeThemingModule';
|
|
3
|
+
import type { OfficeThemingModule } from './officeThemingModule';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* implementations for react-native-web, where the native module will not exist. In this case just use the full fallback implementation
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { NativeModule, ColorValue } from 'react-native';
|
|
2
|
-
import { OfficePalette, Typography } from '@fluentui-react-native/theme-types';
|
|
2
|
+
import type { OfficePalette, Typography } from '@fluentui-react-native/theme-types';
|
|
3
3
|
|
|
4
4
|
export type PlatformDefaultsChangedArgs = { hostThemeSetting: string };
|
|
5
5
|
export type PlatformDefaultsChangedCallback = (args?: PlatformDefaultsChangedArgs) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AliasColorTokens, OfficePalette } from '@fluentui-react-native/theme-types';
|
|
1
|
+
import type { AliasColorTokens, OfficePalette } from '@fluentui-react-native/theme-types';
|
|
2
2
|
|
|
3
3
|
export function createAliasesFromPalette(palette: OfficePalette, isHighContrast: boolean): Partial<AliasColorTokens> {
|
|
4
4
|
// Workaround for getting checkmark to have correct color in HC
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Theme, PartialTheme, AliasColorTokens } from '@fluentui-react-native/theme-types';
|
|
1
|
+
import type { Theme, PartialTheme, AliasColorTokens } from '@fluentui-react-native/theme-types';
|
|
2
2
|
import { globalTokens } from '@fluentui-react-native/theme-tokens';
|
|
3
|
-
import { ColorValue } from 'react-native';
|
|
3
|
+
import type { ColorValue } from 'react-native';
|
|
4
4
|
|
|
5
5
|
export function createBrandedThemeWithAlias(themeName: string, theme: Theme): PartialTheme {
|
|
6
6
|
if (themeName === 'HighContrast' || !theme.host.colors) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getOfficeAliasTokens } from './getOfficeTokens';
|
|
2
|
-
import { Variants } from '@fluentui-react-native/theme-types';
|
|
2
|
+
import type { Variants } from '@fluentui-react-native/theme-types';
|
|
3
3
|
import { memoize } from '@fluentui-react-native/memo-cache';
|
|
4
4
|
import { mapFontPipelineToTheme } from '@fluentui-react-native/theming-utils';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getOfficeAliasTokens, getOfficeShadowTokens } from './getOfficeTokens';
|
|
2
|
-
import { AliasColorTokens, ThemeShadowDefinition } from '@fluentui-react-native/theme-types';
|
|
2
|
+
import type { AliasColorTokens, ThemeShadowDefinition } from '@fluentui-react-native/theme-types';
|
|
3
3
|
import { memoize } from '@fluentui-react-native/memo-cache';
|
|
4
4
|
import { mapPipelineToShadow, mapPipelineToTheme } from '@fluentui-react-native/theming-utils';
|
|
5
5
|
|
package/src/createOfficeTheme.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ThemeReference } from '@fluentui-react-native/theme';
|
|
2
2
|
import { createDefaultTheme } from '@fluentui-react-native/default-theme';
|
|
3
3
|
import { getThemingModule } from './NativeModule/getThemingModule';
|
|
4
|
-
import { CxxException, PlatformDefaultsChangedArgs } from './NativeModule/officeThemingModule';
|
|
5
|
-
import { OfficePalette, Theme, ThemeOptions } from '@fluentui-react-native/theme-types';
|
|
4
|
+
import type { CxxException, PlatformDefaultsChangedArgs } from './NativeModule/officeThemingModule';
|
|
5
|
+
import type { OfficePalette, Theme, ThemeOptions } from '@fluentui-react-native/theme-types';
|
|
6
6
|
import { createPartialOfficeTheme } from './createPartialOfficeTheme';
|
|
7
7
|
import { createOfficeColorAliasTokens, createOfficeShadowAliasTokens } from './createOfficeAliasTokens';
|
|
8
8
|
import { createBrandedThemeWithAlias } from './createBrandedThemeWithAlias';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OfficePalette, PartialTheme } from '@fluentui-react-native/theme-types';
|
|
2
|
-
import { OfficeThemingModule } from './NativeModule/officeThemingModule';
|
|
1
|
+
import type { OfficePalette, PartialTheme } from '@fluentui-react-native/theme-types';
|
|
2
|
+
import type { OfficeThemingModule } from './NativeModule/officeThemingModule';
|
|
3
3
|
import { paletteFromOfficeColors } from './paletteFromOfficeColors';
|
|
4
4
|
|
|
5
5
|
type Colors = { [key: string]: string };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Typography, Variants } from '@fluentui-react-native/theme-types';
|
|
1
|
+
import type { Typography, Variants } from '@fluentui-react-native/theme-types';
|
|
2
2
|
import { defaultFluentTheme } from '@fluentui-react-native/default-theme';
|
|
3
3
|
import { createFontAliasTokens } from './createFontAliasTokens';
|
|
4
4
|
|