@fluentui-react-native/win32-theme 0.38.0 → 0.39.0
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 +1 -1
- package/CHANGELOG.md +44 -3
- package/lib/NativeModule/_mocks_/getThemingModule.native.d.ts +1 -1
- package/lib/NativeModule/_mocks_/getThemingModule.native.js +2 -2
- package/lib/NativeModule/_mocks_/getThemingModule.native.js.map +1 -1
- package/lib/NativeModule/fallbackOfficeModule.d.ts +1 -1
- package/lib/NativeModule/fallbackOfficeModule.js +163 -163
- package/lib/NativeModule/fallbackOfficeModule.js.map +1 -1
- package/lib/NativeModule/getThemingModule.d.ts +1 -1
- package/lib/NativeModule/getThemingModule.js +2 -2
- package/lib/NativeModule/getThemingModule.js.map +1 -1
- package/lib/NativeModule/getThemingModule.native.d.ts +1 -1
- package/lib/NativeModule/getThemingModule.native.js +28 -30
- package/lib/NativeModule/getThemingModule.native.js.map +1 -1
- package/lib/NativeModule/hostThemeSetting.d.ts +1 -1
- package/lib/NativeModule/hostThemeSetting.d.ts.map +1 -1
- package/lib/NativeModule/hostThemeSetting.js +3 -3
- package/lib/NativeModule/hostThemeSetting.js.map +1 -1
- package/lib/NativeModule/index.d.ts +10 -2
- package/lib/NativeModule/index.js +1 -1
- package/lib/NativeModule/officeThemingModule.d.ts +21 -21
- package/lib/NativeModule/officeThemingModule.js +1 -1
- package/lib/__tests__/win32-theme.test.d.ts +1 -1
- package/lib/__tests__/win32-theme.test.js +47 -47
- package/lib/__tests__/win32-theme.test.js.map +1 -1
- package/lib/createAliasesFromPalette.d.ts +1 -1
- package/lib/createAliasesFromPalette.js +56 -56
- package/lib/createAliasesFromPalette.js.map +1 -1
- package/lib/createBrandedThemeWithAlias.d.ts +1 -1
- package/lib/createBrandedThemeWithAlias.js +56 -61
- package/lib/createBrandedThemeWithAlias.js.map +1 -1
- package/lib/createFontAliasTokens.d.ts +1 -1
- package/lib/createFontAliasTokens.js +3 -3
- package/lib/createFontAliasTokens.js.map +1 -1
- package/lib/createOfficeAliasTokens.d.ts +1 -1
- package/lib/createOfficeAliasTokens.js +5 -5
- package/lib/createOfficeAliasTokens.js.map +1 -1
- package/lib/createOfficeTheme.d.ts +1 -1
- package/lib/createOfficeTheme.js +53 -46
- package/lib/createOfficeTheme.js.map +1 -1
- package/lib/createPartialOfficeTheme.d.ts +1 -1
- package/lib/createPartialOfficeTheme.js +22 -19
- package/lib/createPartialOfficeTheme.js.map +1 -1
- package/lib/getOfficeTokens.d.ts +229 -227
- package/lib/getOfficeTokens.js +20 -26
- package/lib/getOfficeTokens.js.map +1 -1
- package/lib/getThemeTypography.d.ts +1 -1
- package/lib/getThemeTypography.js +32 -32
- package/lib/getThemeTypography.js.map +1 -1
- package/lib/highContrast/tokens-alias.d.ts +1 -1
- package/lib/highContrast/tokens-alias.js +11 -11
- package/lib/highContrast/tokens-alias.js.map +1 -1
- package/lib/index.d.ts +10 -2
- package/lib/index.js +1 -1
- package/lib/paletteFromOfficeColors.d.ts +1 -1
- package/lib/paletteFromOfficeColors.js +114 -114
- package/lib/paletteFromOfficeColors.js.map +1 -1
- package/lib-commonjs/NativeModule/_mocks_/getThemingModule.native.d.ts +1 -1
- package/lib-commonjs/NativeModule/_mocks_/getThemingModule.native.js +6 -7
- package/lib-commonjs/NativeModule/_mocks_/getThemingModule.native.js.map +1 -1
- package/lib-commonjs/NativeModule/fallbackOfficeModule.d.ts +1 -1
- package/lib-commonjs/NativeModule/fallbackOfficeModule.js +167 -167
- package/lib-commonjs/NativeModule/fallbackOfficeModule.js.map +1 -1
- package/lib-commonjs/NativeModule/getThemingModule.d.ts +1 -1
- package/lib-commonjs/NativeModule/getThemingModule.js +6 -7
- package/lib-commonjs/NativeModule/getThemingModule.js.map +1 -1
- package/lib-commonjs/NativeModule/getThemingModule.native.d.ts +1 -1
- package/lib-commonjs/NativeModule/getThemingModule.native.js +34 -37
- package/lib-commonjs/NativeModule/getThemingModule.native.js.map +1 -1
- package/lib-commonjs/NativeModule/hostThemeSetting.d.ts +1 -1
- package/lib-commonjs/NativeModule/hostThemeSetting.d.ts.map +1 -1
- package/lib-commonjs/NativeModule/hostThemeSetting.js +5 -5
- package/lib-commonjs/NativeModule/hostThemeSetting.js.map +1 -1
- package/lib-commonjs/NativeModule/index.d.ts +10 -2
- package/lib-commonjs/NativeModule/index.js +23 -8
- package/lib-commonjs/NativeModule/index.js.map +1 -1
- package/lib-commonjs/NativeModule/officeThemingModule.d.ts +21 -21
- package/lib-commonjs/NativeModule/officeThemingModule.js +3 -3
- package/lib-commonjs/__tests__/win32-theme.test.d.ts +1 -1
- package/lib-commonjs/__tests__/win32-theme.test.js +57 -57
- package/lib-commonjs/__tests__/win32-theme.test.js.map +1 -1
- package/lib-commonjs/createAliasesFromPalette.d.ts +1 -1
- package/lib-commonjs/createAliasesFromPalette.js +59 -60
- package/lib-commonjs/createAliasesFromPalette.js.map +1 -1
- package/lib-commonjs/createBrandedThemeWithAlias.d.ts +1 -1
- package/lib-commonjs/createBrandedThemeWithAlias.js +61 -67
- package/lib-commonjs/createBrandedThemeWithAlias.js.map +1 -1
- package/lib-commonjs/createFontAliasTokens.d.ts +1 -1
- package/lib-commonjs/createFontAliasTokens.js +8 -8
- package/lib-commonjs/createFontAliasTokens.js.map +1 -1
- package/lib-commonjs/createOfficeAliasTokens.d.ts +1 -1
- package/lib-commonjs/createOfficeAliasTokens.js +10 -10
- package/lib-commonjs/createOfficeAliasTokens.js.map +1 -1
- package/lib-commonjs/createOfficeTheme.d.ts +1 -1
- package/lib-commonjs/createOfficeTheme.js +67 -59
- package/lib-commonjs/createOfficeTheme.js.map +1 -1
- package/lib-commonjs/createPartialOfficeTheme.d.ts +1 -1
- package/lib-commonjs/createPartialOfficeTheme.js +26 -24
- package/lib-commonjs/createPartialOfficeTheme.js.map +1 -1
- package/lib-commonjs/getOfficeTokens.d.ts +229 -227
- package/lib-commonjs/getOfficeTokens.js +37 -42
- package/lib-commonjs/getOfficeTokens.js.map +1 -1
- package/lib-commonjs/getThemeTypography.d.ts +1 -1
- package/lib-commonjs/getThemeTypography.js +37 -38
- package/lib-commonjs/getThemeTypography.js.map +1 -1
- package/lib-commonjs/highContrast/tokens-alias.d.ts +1 -1
- package/lib-commonjs/highContrast/tokens-alias.js +20 -18
- package/lib-commonjs/highContrast/tokens-alias.js.map +1 -1
- package/lib-commonjs/index.d.ts +10 -2
- package/lib-commonjs/index.js +89 -23
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/paletteFromOfficeColors.d.ts +1 -1
- package/lib-commonjs/paletteFromOfficeColors.js +117 -118
- package/lib-commonjs/paletteFromOfficeColors.js.map +1 -1
- package/package.json +56 -56
|
@@ -2,37 +2,37 @@ import type { NativeModule, ColorValue } from 'react-native';
|
|
|
2
2
|
import type { OfficePalette, Typography } from '@fluentui-react-native/theme-types';
|
|
3
3
|
type ObjectBase = {};
|
|
4
4
|
export type PlatformDefaultsChangedArgs = {
|
|
5
|
-
|
|
5
|
+
hostThemeSetting: string;
|
|
6
6
|
};
|
|
7
7
|
export type PlatformDefaultsChangedCallback = (args?: PlatformDefaultsChangedArgs) => void;
|
|
8
8
|
export interface CxxException {
|
|
9
|
-
|
|
9
|
+
message: string;
|
|
10
10
|
}
|
|
11
11
|
export interface NativeColorRamps {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
FluentGrays: ColorValue[];
|
|
13
|
+
ClassicGrays: ColorValue[];
|
|
14
|
+
App: ColorValue[];
|
|
15
|
+
Sepias: ColorValue[];
|
|
16
|
+
[key: string]: ColorValue[];
|
|
17
17
|
}
|
|
18
18
|
export interface NativeColorNames {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
FluentGrays: string[];
|
|
20
|
+
ClassicGrays: string[];
|
|
21
|
+
App: string[];
|
|
22
|
+
Sepias: string[];
|
|
23
23
|
}
|
|
24
24
|
export interface OfficeThemingModule extends NativeModule {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
getPalette(palette?: string): OfficePalette | CxxException;
|
|
26
|
+
getConstants(): {
|
|
27
|
+
typography: ObjectBase;
|
|
28
|
+
fluentTypography: Typography;
|
|
29
|
+
ramps: NativeColorRamps;
|
|
30
|
+
rampNames: NativeColorNames;
|
|
31
|
+
initialHostThemeSetting?: string;
|
|
32
|
+
};
|
|
33
33
|
}
|
|
34
34
|
export interface IEventEmitter {
|
|
35
|
-
|
|
35
|
+
addListener: (event: string, PlatformDefaultsChangedCallback: any) => void;
|
|
36
36
|
}
|
|
37
37
|
export {};
|
|
38
|
-
//# sourceMappingURL=officeThemingModule.d.ts.map
|
|
38
|
+
//# sourceMappingURL=officeThemingModule.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
//# sourceMappingURL=officeThemingModule.js.map
|
|
2
|
+
//# sourceMappingURL=officeThemingModule.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
//# sourceMappingURL=win32-theme.test.d.ts.map
|
|
2
|
+
//# sourceMappingURL=win32-theme.test.d.ts.map
|
|
@@ -9,71 +9,71 @@ import { fallbackGetPalette, fallbackOfficeModule, getThemingModule } from '../N
|
|
|
9
9
|
const officeThemes = ['White', 'Colorful', 'DarkGray', 'Black', 'HighContrast'];
|
|
10
10
|
const appPrimaries = ['#185abd', '#107c41', '#d83b01', '#80397b', '#0078d4', '#c43e1c'];
|
|
11
11
|
it('win32Typography test', () => {
|
|
12
|
-
|
|
12
|
+
expect(win32Typography).toMatchSnapshot();
|
|
13
13
|
});
|
|
14
14
|
it('fallbackOfficeModule test', () => {
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
expect(fallbackOfficeModule).toMatchSnapshot();
|
|
16
|
+
expect(fallbackOfficeModule.getConstants()).toMatchSnapshot();
|
|
17
17
|
});
|
|
18
18
|
it('getThemingModule test', () => {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
const themingModule = getThemingModule();
|
|
20
|
+
expect(themingModule).toMatchSnapshot();
|
|
21
|
+
expect(themingModule[0].getConstants()).toMatchSnapshot();
|
|
22
22
|
});
|
|
23
23
|
it('createPartialOfficeTheme test', () => {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
const themingModule = getThemingModule();
|
|
25
|
+
const partialOfficeTheme = createPartialOfficeTheme(themingModule[0]);
|
|
26
|
+
expect(partialOfficeTheme).toMatchSnapshot;
|
|
27
27
|
});
|
|
28
28
|
it('createFontAliasTokens test', () => {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
const fontAliasToken = createFontAliasTokens();
|
|
30
|
+
expect(fontAliasToken).toMatchSnapshot();
|
|
31
31
|
});
|
|
32
32
|
it('createOfficeTheme test', () => {
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
const officeTheme = createOfficeTheme({ paletteName: 'TaskPane', appearance: 'light' }).theme;
|
|
34
|
+
expect(officeTheme).toMatchSnapshot();
|
|
35
35
|
});
|
|
36
36
|
it.concurrent.each(officeThemes)('createBrandedThemeWithAlias test themeName: %s', async (themeName) => {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
setCurrentHostThemeSetting('Colorful');
|
|
38
|
+
const officeTheme = createOfficeTheme({ paletteName: 'TaskPane', appearance: 'light' }).theme;
|
|
39
|
+
const brandedTheme = createBrandedThemeWithAlias(themeName, officeTheme);
|
|
40
|
+
expect(brandedTheme).toMatchSnapshot();
|
|
41
41
|
});
|
|
42
42
|
it.concurrent.each(officeThemes)('createOfficeColorAliasTokens test officeTheme: %s', async (themeName) => {
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
const colorAliasToken = createOfficeColorAliasTokens(themeName);
|
|
44
|
+
expect(colorAliasToken).toMatchSnapshot();
|
|
45
45
|
});
|
|
46
46
|
it.concurrent.each(officeThemes)('createOfficeShadowAliasTokens test officeTheme: %s', async (themeName) => {
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
const shadowAliasToken = createOfficeShadowAliasTokens(themeName);
|
|
48
|
+
expect(shadowAliasToken).toMatchSnapshot();
|
|
49
49
|
});
|
|
50
50
|
describe('fallbackGetPalette test', () => {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
51
|
+
it('TaskPane palette', () => {
|
|
52
|
+
const fallbackPalette = fallbackGetPalette('TaskPane');
|
|
53
|
+
expect(fallbackPalette).toMatchSnapshot();
|
|
54
|
+
});
|
|
55
|
+
it('Random palette', () => {
|
|
56
|
+
/**
|
|
57
|
+
* RedColors is just a random pallette, we're just testing to see what happens
|
|
58
|
+
* if we use anything other than the TaskPane palette.
|
|
59
|
+
* */
|
|
60
|
+
const fallbackPalette = fallbackGetPalette('RedColors');
|
|
61
|
+
expect(fallbackPalette).toMatchSnapshot();
|
|
62
|
+
});
|
|
63
63
|
});
|
|
64
64
|
describe('getCurrentBrandAliasTokens test', () => {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
65
|
+
it.concurrent.each(appPrimaries)('themeName: White, appPrimary: %s', async (appPrimary) => {
|
|
66
|
+
const brandAliasTokens = getCurrentBrandAliasTokens('White', appPrimary);
|
|
67
|
+
expect(brandAliasTokens).toMatchSnapshot();
|
|
68
|
+
});
|
|
69
|
+
it.concurrent.each(appPrimaries)('themeName: Colorful, appPrimary: %s', async (appPrimary) => {
|
|
70
|
+
const brandAliasTokens = getCurrentBrandAliasTokens('Colorful', appPrimary);
|
|
71
|
+
expect(brandAliasTokens).toMatchSnapshot();
|
|
72
|
+
});
|
|
73
|
+
// Tests the variation of the alias tokens for when isWhiteOrColorfulTheme is not true
|
|
74
|
+
it.concurrent.each(appPrimaries)('themeName: null, appPrimary: %s', async (appPrimary) => {
|
|
75
|
+
const brandAliasTokens = getCurrentBrandAliasTokens(null, appPrimary);
|
|
76
|
+
expect(brandAliasTokens).toMatchSnapshot();
|
|
77
|
+
});
|
|
78
78
|
});
|
|
79
|
-
//# sourceMappingURL=win32-theme.test.js.map
|
|
79
|
+
//# sourceMappingURL=win32-theme.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"win32-theme.test.js","sourceRoot":"","sources":["../../src/__tests__/win32-theme.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AACzG,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,4BAA4B,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AACzG,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEnG,MAAM,YAAY,GAAG,CAAC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,CAAC,CAAC;AAChF,MAAM,YAAY,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;AAExF,EAAE,CAAC,sBAAsB,EAAE,GAAG,EAAE;
|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CAAC,eAAe,EAAE,CAAC;IAAA,CAC5C,CAAC,CAAC;IAEH,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,qCAAqC,EAAE,KAAK,EAAE,UAAkB,EAAE,EAAE,CAAC;QACpG,MAAM,gBAAgB,GAAG,0BAA0B,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;QAC5E,MAAM,CAAC,gBAAgB,CAAC,CAAC,eAAe,EAAE,CAAC;IAAA,CAC5C,CAAC,CAAC;IAEH,sFAAsF;IACtF,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,iCAAiC,EAAE,KAAK,EAAE,UAAkB,EAAE,EAAE,CAAC;QAChG,MAAM,gBAAgB,GAAG,0BAA0B,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QACtE,MAAM,CAAC,gBAAgB,CAAC,CAAC,eAAe,EAAE,CAAC;IAAA,CAC5C,CAAC,CAAC;AAAA,CACJ,CAAC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { AliasColorTokens, OfficePalette } from '@fluentui-react-native/theme-types';
|
|
2
2
|
export declare function createAliasesFromPalette(palette: OfficePalette, isHighContrast: boolean): Partial<AliasColorTokens>;
|
|
3
|
-
//# sourceMappingURL=createAliasesFromPalette.d.ts.map
|
|
3
|
+
//# sourceMappingURL=createAliasesFromPalette.d.ts.map
|
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
export function createAliasesFromPalette(palette, isHighContrast) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
2
|
+
// Workaround for getting checkmark to have correct color in HC
|
|
3
|
+
// while native code doesn't support PlatformColor
|
|
4
|
+
if (isHighContrast) {
|
|
5
|
+
return {};
|
|
6
|
+
}
|
|
7
|
+
return {
|
|
8
|
+
neutralForeground1: palette.Text,
|
|
9
|
+
neutralForeground1Hover: palette.TextHover,
|
|
10
|
+
neutralForeground1Pressed: palette.TextPressed,
|
|
11
|
+
neutralForeground1Selected: palette.TextSelected,
|
|
12
|
+
neutralForeground2: palette.TextSecondary,
|
|
13
|
+
neutralForeground2Hover: palette.TextSecondaryHover,
|
|
14
|
+
neutralForeground2Pressed: palette.TextSecondaryPressed,
|
|
15
|
+
neutralForeground2Selected: palette.TextSecondarySelected,
|
|
16
|
+
neutralForeground4: palette.TextTextBoxPlaceholder,
|
|
17
|
+
neutralForegroundDisabled: palette.TextDisabled,
|
|
18
|
+
compoundBrandForeground1: palette.TextEmphasis,
|
|
19
|
+
compoundBrandForeground1Hover: palette.TextEmphasisHover,
|
|
20
|
+
compoundBrandForeground1Pressed: palette.TextEmphasisPressed,
|
|
21
|
+
neutralForegroundOnBrand: palette.TextCtlEmphasis,
|
|
22
|
+
neutralForegroundOnBrandHover: palette.TextCtlEmphasisHover,
|
|
23
|
+
neutralForegroundOnBrandPressed: palette.TextCtlEmphasisPressed,
|
|
24
|
+
neutralForegroundInvertedLink: palette.BkgToggleSwitchOff,
|
|
25
|
+
neutralForegroundInvertedLinkHover: palette.BkgToggleSwitchOffHover,
|
|
26
|
+
neutralForegroundInvertedLinkPressed: palette.BkgToggleSwitchOffPressed,
|
|
27
|
+
neutralBackground1: palette.Bkg,
|
|
28
|
+
neutralBackground1Hover: palette.BkgHover,
|
|
29
|
+
neutralBackground1Pressed: palette.BkgPressed,
|
|
30
|
+
neutralBackground1Selected: palette.BkgSelected,
|
|
31
|
+
neutralBackground2: palette.BkgHeader,
|
|
32
|
+
neutralBackground2Hover: palette.BkgSubtle,
|
|
33
|
+
neutralBackground3: palette.BkgSubtle,
|
|
34
|
+
neutralBackgroundInverted: palette.BkgSelectionHighlight,
|
|
35
|
+
neutralBackgroundDisabled: palette.BkgCtlDisabled,
|
|
36
|
+
neutralStencil1: palette.SliderBuffer,
|
|
37
|
+
brandBackground: palette.BkgCtlEmphasis,
|
|
38
|
+
brandBackgroundHover: palette.BkgCtlEmphasisHover,
|
|
39
|
+
brandBackgroundPressed: palette.BkgCtlEmphasisPressed,
|
|
40
|
+
compoundBrandBackground1: palette.BkgToggleSwitchOn,
|
|
41
|
+
compoundBrandBackground1Hover: palette.BkgToggleSwitchOnHover,
|
|
42
|
+
compoundBrandBackground1Pressed: palette.BkgToggleSwitchOnPressed,
|
|
43
|
+
neutralStrokeAccessible: palette.StrokeOnlySelected,
|
|
44
|
+
neutralStrokeAccessibleHover: palette.StrokeOnlyHover,
|
|
45
|
+
neutralStrokeAccessiblePressed: palette.StrokeOnlyPressed,
|
|
46
|
+
neutralStroke1: palette.StrokeCtl,
|
|
47
|
+
neutralStroke1Hover: palette.StrokeSelectedHover,
|
|
48
|
+
neutralStroke1Pressed: palette.StrokeOverPressed,
|
|
49
|
+
neutralStroke2: palette.SliderBuffer,
|
|
50
|
+
brandStroke1: palette.AccentEmphasis,
|
|
51
|
+
compoundBrandStroke1: palette.StrokeToggleSwitchOn,
|
|
52
|
+
compoundBrandStroke1Hover: palette.StrokeToggleSwitchOnHover,
|
|
53
|
+
compoundBrandStroke1Pressed: palette.StrokeToggleSwitchOnPressed,
|
|
54
|
+
neutralStrokeDisabled: palette.StrokeCtlDisabled,
|
|
55
|
+
strokeFocus2: palette.StrokeKeyboard,
|
|
56
|
+
};
|
|
57
57
|
}
|
|
58
|
-
//# sourceMappingURL=createAliasesFromPalette.js.map
|
|
58
|
+
//# sourceMappingURL=createAliasesFromPalette.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAliasesFromPalette.js","sourceRoot":"","sources":["../src/createAliasesFromPalette.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,wBAAwB,CAAC,OAAsB,EAAE,cAAuB;
|
|
1
|
+
{"version":3,"file":"createAliasesFromPalette.js","sourceRoot":"","sources":["../src/createAliasesFromPalette.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,wBAAwB,CAAC,OAAsB,EAAE,cAAuB,EAA6B;IACnH,+DAA+D;IAC/D,kDAAkD;IAClD,IAAI,cAAc,EAAE,CAAC;QACnB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,OAAO;QACL,kBAAkB,EAAE,OAAO,CAAC,IAAI;QAChC,uBAAuB,EAAE,OAAO,CAAC,SAAS;QAC1C,yBAAyB,EAAE,OAAO,CAAC,WAAW;QAC9C,0BAA0B,EAAE,OAAO,CAAC,YAAY;QAChD,kBAAkB,EAAE,OAAO,CAAC,aAAa;QACzC,uBAAuB,EAAE,OAAO,CAAC,kBAAkB;QACnD,yBAAyB,EAAE,OAAO,CAAC,oBAAoB;QACvD,0BAA0B,EAAE,OAAO,CAAC,qBAAqB;QACzD,kBAAkB,EAAE,OAAO,CAAC,sBAAsB;QAClD,yBAAyB,EAAE,OAAO,CAAC,YAAY;QAE/C,wBAAwB,EAAE,OAAO,CAAC,YAAY;QAC9C,6BAA6B,EAAE,OAAO,CAAC,iBAAiB;QACxD,+BAA+B,EAAE,OAAO,CAAC,mBAAmB;QAE5D,wBAAwB,EAAE,OAAO,CAAC,eAAe;QACjD,6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5D,2BAA2B,EAAE,OAAO,CAAC,2BAA2B;QAChE,qBAAqB,EAAE,OAAO,CAAC,iBAAiB;QAEhD,YAAY,EAAE,OAAO,CAAC,cAAc;KACrC,CAAC;AAAA,CACH"}
|
|
@@ -2,4 +2,4 @@ import type { ColorValue } from 'react-native';
|
|
|
2
2
|
import type { Theme, PartialTheme, AliasColorTokens } from '@fluentui-react-native/theme-types';
|
|
3
3
|
export declare function createBrandedThemeWithAlias(themeName: string, theme: Theme): PartialTheme;
|
|
4
4
|
export declare function getCurrentBrandAliasTokens(themeName: string, appPrimary: ColorValue): Partial<AliasColorTokens>;
|
|
5
|
-
//# sourceMappingURL=createBrandedThemeWithAlias.d.ts.map
|
|
5
|
+
//# sourceMappingURL=createBrandedThemeWithAlias.d.ts.map
|
|
@@ -1,69 +1,64 @@
|
|
|
1
1
|
import { globalTokens } from '@fluentui-react-native/theme-tokens';
|
|
2
2
|
export function createBrandedThemeWithAlias(themeName, theme) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
if (themeName === 'HighContrast' || !theme.host.colors) {
|
|
4
|
+
return {};
|
|
5
|
+
}
|
|
6
|
+
return {
|
|
7
|
+
colors: getCurrentBrandAliasTokens(themeName, theme.host.colors.AppPrimary),
|
|
8
|
+
};
|
|
9
9
|
}
|
|
10
10
|
export function getCurrentBrandAliasTokens(themeName, appPrimary) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
11
|
+
const appColors = getAppColors(appPrimary);
|
|
12
|
+
const isWhiteOrColorfulTheme = themeName === 'White' || themeName === 'Colorful';
|
|
13
|
+
return {
|
|
14
|
+
neutralForeground2BrandHover: isWhiteOrColorfulTheme ? appColors.shade10 : appColors.tint40,
|
|
15
|
+
neutralForeground2BrandPressed: isWhiteOrColorfulTheme ? appColors.shade30 : appColors.tint10,
|
|
16
|
+
neutralForeground2BrandSelected: isWhiteOrColorfulTheme ? appColors.shade20 : appColors.tint40,
|
|
17
|
+
neutralForeground3BrandHover: isWhiteOrColorfulTheme ? appColors.shade10 : appColors.tint40,
|
|
18
|
+
neutralForeground3BrandPressed: isWhiteOrColorfulTheme ? appColors.shade30 : appColors.tint10,
|
|
19
|
+
neutralForeground3BrandSelected: isWhiteOrColorfulTheme ? appColors.shade20 : appColors.tint40,
|
|
20
|
+
brandForegroundLink: isWhiteOrColorfulTheme ? appColors.primary : appColors.tint30,
|
|
21
|
+
brandForegroundLinkHover: isWhiteOrColorfulTheme ? appColors.shade10 : appColors.tint40,
|
|
22
|
+
brandForegroundLinkPressed: isWhiteOrColorfulTheme ? appColors.shade30 : appColors.tint10,
|
|
23
|
+
brandForegroundLinkSelected: isWhiteOrColorfulTheme ? appColors.shade20 : appColors.tint40,
|
|
24
|
+
compoundBrandForeground1: isWhiteOrColorfulTheme ? appColors.primary : appColors.tint30,
|
|
25
|
+
compoundBrandForeground1Hover: isWhiteOrColorfulTheme ? appColors.shade10 : appColors.tint40,
|
|
26
|
+
compoundBrandForeground1Pressed: isWhiteOrColorfulTheme ? appColors.shade30 : appColors.tint10,
|
|
27
|
+
brandForeground1: isWhiteOrColorfulTheme ? appColors.primary : appColors.tint30,
|
|
28
|
+
brandForeground2: isWhiteOrColorfulTheme ? appColors.shade10 : appColors.tint40,
|
|
29
|
+
brandBackground: appColors.primary,
|
|
30
|
+
brandBackgroundHover: appColors.shade10,
|
|
31
|
+
brandBackgroundPressed: appColors.shade30,
|
|
32
|
+
brandBackgroundSelected: appColors.shade20,
|
|
33
|
+
compoundBrandBackground1: appColors.primary,
|
|
34
|
+
compoundBrandBackground1Hover: appColors.shade10,
|
|
35
|
+
compoundBrandBackground1Pressed: appColors.shade20,
|
|
36
|
+
brandBackgroundStatic: appColors.primary,
|
|
37
|
+
brandBackground2: appColors.tint40,
|
|
38
|
+
neutralStrokeAccessibleSelected: appColors.primary,
|
|
39
|
+
brandStroke1: appColors.primary,
|
|
40
|
+
brandStroke2: appColors.tint40,
|
|
41
|
+
compoundBrandStroke1: appColors.primary,
|
|
42
|
+
compoundBrandStroke1Hover: appColors.shade10,
|
|
43
|
+
compoundBrandStroke1Pressed: appColors.shade20,
|
|
44
|
+
};
|
|
45
45
|
}
|
|
46
46
|
function getAppColors(primaryColor) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
else if (primaryColor.toLowerCase() === '#0078d4') {
|
|
61
|
-
return globalTokens.color.outlook;
|
|
62
|
-
}
|
|
63
|
-
else if (primaryColor.toLowerCase() === '#c43e1c') {
|
|
64
|
-
return globalTokens.color.powerPoint;
|
|
65
|
-
}
|
|
47
|
+
if (typeof primaryColor === 'string') {
|
|
48
|
+
if (primaryColor.toLowerCase() === '#185abd') {
|
|
49
|
+
return globalTokens.color.word;
|
|
50
|
+
} else if (primaryColor.toLowerCase() === '#107c41') {
|
|
51
|
+
return globalTokens.color.excel;
|
|
52
|
+
} else if (primaryColor.toLowerCase() === '#d83b01') {
|
|
53
|
+
return globalTokens.color.office;
|
|
54
|
+
} else if (primaryColor.toLowerCase() === '#80397b' || primaryColor.toLowerCase() === '#7719aa') {
|
|
55
|
+
return globalTokens.color.oneNote;
|
|
56
|
+
} else if (primaryColor.toLowerCase() === '#0078d4') {
|
|
57
|
+
return globalTokens.color.outlook;
|
|
58
|
+
} else if (primaryColor.toLowerCase() === '#c43e1c') {
|
|
59
|
+
return globalTokens.color.powerPoint;
|
|
66
60
|
}
|
|
67
|
-
|
|
61
|
+
}
|
|
62
|
+
return globalTokens.color.brand;
|
|
68
63
|
}
|
|
69
|
-
//# sourceMappingURL=createBrandedThemeWithAlias.js.map
|
|
64
|
+
//# sourceMappingURL=createBrandedThemeWithAlias.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createBrandedThemeWithAlias.js","sourceRoot":"","sources":["../src/createBrandedThemeWithAlias.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAGnE,MAAM,UAAU,2BAA2B,CAAC,SAAiB,EAAE,KAAY;
|
|
1
|
+
{"version":3,"file":"createBrandedThemeWithAlias.js","sourceRoot":"","sources":["../src/createBrandedThemeWithAlias.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAGnE,MAAM,UAAU,2BAA2B,CAAC,SAAiB,EAAE,KAAY,EAAgB;IACzF,IAAI,SAAS,KAAK,cAAc,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;QACvD,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,OAAO;QACL,MAAM,EAAE,0BAA0B,CAAC,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC;KAC5E,CAAC;AAAA,CACH;AAED,MAAM,UAAU,0BAA0B,CAAC,SAAiB,EAAE,UAAsB,EAA6B;IAC/G,MAAM,SAAS,GAAG,YAAY,CAAC,UAAU,CAAC,CAAC;IAC3C,MAAM,sBAAsB,GAAG,SAAS,KAAK,OAAO,IAAI,SAAS,KAAK,UAAU,CAAC;IAEjF,OAAO;QACL,4BAA4B,EAAE,sBAAsB,CAAC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K,SAAS,EAAE,CAAC;YACpD,OAAO,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC;QACnC,CAAC;aAAM,IAAI,YAAY,CAAC,WAAW,EAAE,KAAK,SAAS,IAAI,YAAY,CAAC,WAAW,EAAE,KAAK,SAAS,EAAE,CAAC;YAChG,OAAO,YAAY,CAAC,KAAK,CAAC,OAAO,CAAC;QACpC,CAAC;aAAM,IAAI,YAAY,CAAC,WAAW,EAAE,KAAK,SAAS,EAAE,CAAC;YACpD,OAAO,YAAY,CAAC,KAAK,CAAC,OAAO,CAAC;QACpC,CAAC;aAAM,IAAI,YAAY,CAAC,WAAW,EAAE,KAAK,SAAS,EAAE,CAAC;YACpD,OAAO,YAAY,CAAC,KAAK,CAAC,UAAU,CAAC;QACvC,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC,KAAK,CAAC,KAAK,CAAC;AAAA,CACjC"}
|
|
@@ -2,4 +2,4 @@ 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 {};
|
|
5
|
-
//# sourceMappingURL=createFontAliasTokens.d.ts.map
|
|
5
|
+
//# sourceMappingURL=createFontAliasTokens.d.ts.map
|
|
@@ -2,8 +2,8 @@ import { memoize } from '@fluentui-react-native/framework-base';
|
|
|
2
2
|
import { mapFontPipelineToTheme } from '@fluentui-react-native/theming-utils';
|
|
3
3
|
import { getOfficeAliasTokens } from './getOfficeTokens';
|
|
4
4
|
function createFontAliasTokensWorker() {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
const aliasTokens = getOfficeAliasTokens('Colorful');
|
|
6
|
+
return mapFontPipelineToTheme(aliasTokens);
|
|
7
7
|
}
|
|
8
8
|
export const createFontAliasTokens = memoize(createFontAliasTokensWorker);
|
|
9
|
-
//# sourceMappingURL=createFontAliasTokens.js.map
|
|
9
|
+
//# sourceMappingURL=createFontAliasTokens.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createFontAliasTokens.js","sourceRoot":"","sources":["../src/createFontAliasTokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAEhE,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAE9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEzD,SAAS,2BAA2B;
|
|
1
|
+
{"version":3,"file":"createFontAliasTokens.js","sourceRoot":"","sources":["../src/createFontAliasTokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAEhE,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAE9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEzD,SAAS,2BAA2B,GAAsB;IACxD,MAAM,WAAW,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAC;IACrD,OAAO,sBAAsB,CAAC,WAAW,CAAC,CAAC;AAAA,CAC5C;AAED,MAAM,CAAC,MAAM,qBAAqB,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC"}
|
|
@@ -4,4 +4,4 @@ export declare const createOfficeColorAliasTokens: typeof createOfficeColorAlias
|
|
|
4
4
|
declare function createOfficeShadowAliasTokensWorker(officeTheme: string): ThemeShadowDefinition;
|
|
5
5
|
export declare const createOfficeShadowAliasTokens: typeof createOfficeShadowAliasTokensWorker;
|
|
6
6
|
export {};
|
|
7
|
-
//# sourceMappingURL=createOfficeAliasTokens.d.ts.map
|
|
7
|
+
//# sourceMappingURL=createOfficeAliasTokens.d.ts.map
|
|
@@ -2,13 +2,13 @@ import { memoize } from '@fluentui-react-native/framework-base';
|
|
|
2
2
|
import { mapPipelineToShadow, mapPipelineToTheme } from '@fluentui-react-native/theming-utils';
|
|
3
3
|
import { getOfficeAliasTokens, getOfficeShadowTokens } from './getOfficeTokens';
|
|
4
4
|
function createOfficeColorAliasTokensWorker(officeTheme) {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
const aliasTokens = getOfficeAliasTokens(officeTheme);
|
|
6
|
+
return mapPipelineToTheme(aliasTokens);
|
|
7
7
|
}
|
|
8
8
|
export const createOfficeColorAliasTokens = memoize(createOfficeColorAliasTokensWorker);
|
|
9
9
|
function createOfficeShadowAliasTokensWorker(officeTheme) {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
const aliasTokens = getOfficeShadowTokens(officeTheme);
|
|
11
|
+
return mapPipelineToShadow(aliasTokens);
|
|
12
12
|
}
|
|
13
13
|
export const createOfficeShadowAliasTokens = memoize(createOfficeShadowAliasTokensWorker);
|
|
14
|
-
//# sourceMappingURL=createOfficeAliasTokens.js.map
|
|
14
|
+
//# sourceMappingURL=createOfficeAliasTokens.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOfficeAliasTokens.js","sourceRoot":"","sources":["../src/createOfficeAliasTokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAEhE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE/F,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAEhF,SAAS,kCAAkC,CAAC,WAAmB;
|
|
1
|
+
{"version":3,"file":"createOfficeAliasTokens.js","sourceRoot":"","sources":["../src/createOfficeAliasTokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAEhE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE/F,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAEhF,SAAS,kCAAkC,CAAC,WAAmB,EAAoB;IACjF,MAAM,WAAW,GAAG,oBAAoB,CAAC,WAAW,CAAC,CAAC;IACtD,OAAO,kBAAkB,CAAC,WAAW,CAAC,CAAC;AAAA,CACxC;AAED,MAAM,CAAC,MAAM,4BAA4B,GAAG,OAAO,CAAC,kCAAkC,CAAC,CAAC;AAExF,SAAS,mCAAmC,CAAC,WAAmB,EAAyB;IACvF,MAAM,WAAW,GAAG,qBAAqB,CAAC,WAAW,CAAC,CAAC;IACvD,OAAO,mBAAmB,CAAC,WAAW,CAAC,CAAC;AAAA,CACzC;AAED,MAAM,CAAC,MAAM,6BAA6B,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC"}
|
|
@@ -10,4 +10,4 @@ import type { ThemeOptions } from '@fluentui-react-native/theme-types';
|
|
|
10
10
|
* @param paletteName - optional specifier for the currently active office palette
|
|
11
11
|
*/
|
|
12
12
|
export declare function createOfficeTheme(options?: ThemeOptions): ThemeReference;
|
|
13
|
-
//# sourceMappingURL=createOfficeTheme.d.ts.map
|
|
13
|
+
//# sourceMappingURL=createOfficeTheme.d.ts.map
|