@fluentui-react-native/win32-theme 0.25.9 → 0.25.10
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 +28 -1
- package/CHANGELOG.md +12 -2
- package/lib/NativeModule/_mocks_/getThemingModule.native.d.ts +6 -0
- package/lib/NativeModule/_mocks_/getThemingModule.native.d.ts.map +1 -0
- package/lib/NativeModule/_mocks_/getThemingModule.native.js +8 -0
- package/lib/NativeModule/_mocks_/getThemingModule.native.js.map +1 -0
- package/lib/NativeModule/fallbackOfficeModule.d.ts +5 -0
- package/lib/NativeModule/fallbackOfficeModule.d.ts.map +1 -0
- package/lib/NativeModule/fallbackOfficeModule.js +162 -0
- package/lib/NativeModule/fallbackOfficeModule.js.map +1 -0
- package/lib/NativeModule/getThemingModule.d.ts +7 -0
- package/lib/NativeModule/getThemingModule.d.ts.map +1 -0
- package/lib/NativeModule/getThemingModule.js +8 -0
- package/lib/NativeModule/getThemingModule.js.map +1 -0
- package/lib/NativeModule/getThemingModule.native.d.ts +4 -0
- package/lib/NativeModule/getThemingModule.native.d.ts.map +1 -0
- package/lib/NativeModule/getThemingModule.native.js +27 -0
- package/lib/NativeModule/getThemingModule.native.js.map +1 -0
- package/lib/NativeModule/hostThemeSetting.d.ts +3 -0
- package/lib/NativeModule/hostThemeSetting.d.ts.map +1 -0
- package/lib/NativeModule/hostThemeSetting.js +17 -0
- package/lib/NativeModule/hostThemeSetting.js.map +1 -0
- package/lib/NativeModule/index.d.ts +4 -0
- package/lib/NativeModule/index.d.ts.map +1 -0
- package/lib/NativeModule/index.js +4 -0
- package/lib/NativeModule/index.js.map +1 -0
- package/lib/NativeModule/officeThemingModule.d.ts +34 -0
- package/lib/NativeModule/officeThemingModule.d.ts.map +1 -0
- package/lib/NativeModule/officeThemingModule.js +2 -0
- package/lib/NativeModule/officeThemingModule.js.map +1 -0
- package/lib/__tests__/win32-theme.test.d.ts +2 -0
- package/lib/__tests__/win32-theme.test.d.ts.map +1 -0
- package/lib/__tests__/win32-theme.test.js +102 -0
- package/lib/__tests__/win32-theme.test.js.map +1 -0
- package/lib/createAliasesFromPalette.d.ts +3 -0
- package/lib/createAliasesFromPalette.d.ts.map +1 -0
- package/lib/createAliasesFromPalette.js +59 -0
- package/lib/createAliasesFromPalette.js.map +1 -0
- package/lib/createBrandedThemeWithAlias.d.ts +5 -0
- package/lib/createBrandedThemeWithAlias.d.ts.map +1 -0
- package/lib/createBrandedThemeWithAlias.js +69 -0
- package/lib/createBrandedThemeWithAlias.js.map +1 -0
- package/lib/createFontAliasTokens.d.ts +5 -0
- package/lib/createFontAliasTokens.d.ts.map +1 -0
- package/lib/createFontAliasTokens.js +9 -0
- package/lib/createFontAliasTokens.js.map +1 -0
- package/lib/createOfficeAliasTokens.d.ts +7 -0
- package/lib/createOfficeAliasTokens.d.ts.map +1 -0
- package/lib/createOfficeAliasTokens.js +14 -0
- package/lib/createOfficeAliasTokens.js.map +1 -0
- package/lib/createOfficeTheme.d.ts +13 -0
- package/lib/createOfficeTheme.d.ts.map +1 -0
- package/lib/createOfficeTheme.js +70 -0
- package/lib/createOfficeTheme.js.map +1 -0
- package/lib/createPartialOfficeTheme.d.ts +10 -0
- package/lib/createPartialOfficeTheme.d.ts.map +1 -0
- package/lib/createPartialOfficeTheme.js +25 -0
- package/lib/createPartialOfficeTheme.js.map +1 -0
- package/lib/getOfficeTokens.d.ts +377 -0
- package/lib/getOfficeTokens.d.ts.map +1 -0
- package/lib/getOfficeTokens.js +39 -0
- package/lib/getOfficeTokens.js.map +1 -0
- package/lib/getThemeTypography.d.ts +3 -0
- package/lib/getThemeTypography.d.ts.map +1 -0
- package/lib/getThemeTypography.js +22 -0
- package/lib/getThemeTypography.js.map +1 -0
- package/lib/highContrast/tokens-alias.d.ts +2 -0
- package/lib/highContrast/tokens-alias.d.ts.map +1 -0
- package/lib/highContrast/tokens-alias.js +16 -0
- package/lib/highContrast/tokens-alias.js.map +1 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +9 -0
- package/lib/index.js.map +1 -0
- package/lib/paletteFromOfficeColors.d.ts +3 -0
- package/lib/paletteFromOfficeColors.d.ts.map +1 -0
- package/lib/paletteFromOfficeColors.js +160 -0
- package/lib/paletteFromOfficeColors.js.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ColorValue } from 'react-native';
|
|
2
|
+
import type { Theme, PartialTheme, AliasColorTokens } from '@fluentui-react-native/theme-types';
|
|
3
|
+
export declare function createBrandedThemeWithAlias(themeName: string, theme: Theme): PartialTheme;
|
|
4
|
+
export declare function getCurrentBrandAliasTokens(themeName: string, appPrimary: ColorValue): Partial<AliasColorTokens>;
|
|
5
|
+
//# sourceMappingURL=createBrandedThemeWithAlias.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createBrandedThemeWithAlias.d.ts","sourceRoot":"","sources":["../src/createBrandedThemeWithAlias.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,OAAO,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAEhG,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"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { globalTokens } from '@fluentui-react-native/theme-tokens';
|
|
2
|
+
export function createBrandedThemeWithAlias(themeName, theme) {
|
|
3
|
+
if (themeName === 'HighContrast' || !theme.host.colors) {
|
|
4
|
+
return {};
|
|
5
|
+
}
|
|
6
|
+
return {
|
|
7
|
+
colors: getCurrentBrandAliasTokens(themeName, theme.host.colors.AppPrimary),
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export function getCurrentBrandAliasTokens(themeName, appPrimary) {
|
|
11
|
+
var appColors = getAppColors(appPrimary);
|
|
12
|
+
var 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
|
+
}
|
|
46
|
+
function getAppColors(primaryColor) {
|
|
47
|
+
if (typeof primaryColor === 'string') {
|
|
48
|
+
if (primaryColor.toLowerCase() === '#185abd') {
|
|
49
|
+
return globalTokens.color.word;
|
|
50
|
+
}
|
|
51
|
+
else if (primaryColor.toLowerCase() === '#107c41') {
|
|
52
|
+
return globalTokens.color.excel;
|
|
53
|
+
}
|
|
54
|
+
else if (primaryColor.toLowerCase() === '#d83b01') {
|
|
55
|
+
return globalTokens.color.office;
|
|
56
|
+
}
|
|
57
|
+
else if (primaryColor.toLowerCase() === '#80397b') {
|
|
58
|
+
return globalTokens.color.oneNote;
|
|
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
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return globalTokens.color.brand;
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=createBrandedThemeWithAlias.js.map
|
|
@@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SAAS,CAAC,OAAO;QACxC,gBAAgB,EAAE,SAAS,CAAC,MAAM;QAClC,+BAA+B,EAAE,SAAS,CAAC,OAAO;QAClD,YAAY,EAAE,SAAS,CAAC,OAAO;QAC/B,YAAY,EAAE,SAAS,CAAC,MAAM;QAC9B,oBAAoB,EAAE,SAAS,CAAC,OAAO;QACvC,yBAAyB,EAAE,SAAS,CAAC,OAAO;QAC5C,2BAA2B,EAAE,SAAS,CAAC,OAAO;KAC/C,CAAC;AACJ,CAAC;AAED,SAAS,YAAY,CAAC,YAAwB;IAC5C,IAAI,OAAO,YAAY,KAAK,QAAQ,EAAE;QACpC,IAAI,YAAY,CAAC,WAAW,EAAE,KAAK,SAAS,EAAE;YAC5C,OAAO,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC;SAChC;aAAM,IAAI,YAAY,CAAC,WAAW,EAAE,KAAK,SAAS,EAAE;YACnD,OAAO,YAAY,CAAC,KAAK,CAAC,KAAK,CAAC;SACjC;aAAM,IAAI,YAAY,CAAC,WAAW,EAAE,KAAK,SAAS,EAAE;YACnD,OAAO,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC;SAClC;aAAM,IAAI,YAAY,CAAC,WAAW,EAAE,KAAK,SAAS,EAAE;YACnD,OAAO,YAAY,CAAC,KAAK,CAAC,OAAO,CAAC;SACnC;aAAM,IAAI,YAAY,CAAC,WAAW,EAAE,KAAK,SAAS,EAAE;YACnD,OAAO,YAAY,CAAC,KAAK,CAAC,OAAO,CAAC;SACnC;aAAM,IAAI,YAAY,CAAC,WAAW,EAAE,KAAK,SAAS,EAAE;YACnD,OAAO,YAAY,CAAC,KAAK,CAAC,UAAU,CAAC;SACtC;KACF;IAED,OAAO,YAAY,CAAC,KAAK,CAAC,KAAK,CAAC;AAClC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Variants } from '@fluentui-react-native/theme-types';
|
|
2
|
+
declare function createFontAliasTokensWorker(): Partial<Variants>;
|
|
3
|
+
export declare const createFontAliasTokens: typeof createFontAliasTokensWorker;
|
|
4
|
+
export {};
|
|
5
|
+
//# sourceMappingURL=createFontAliasTokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createFontAliasTokens.d.ts","sourceRoot":"","sources":["../src/createFontAliasTokens.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAKnE,iBAAS,2BAA2B,IAAI,OAAO,CAAC,QAAQ,CAAC,CAGxD;AAED,eAAO,MAAM,qBAAqB,oCAAuC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { memoize } from '@fluentui-react-native/memo-cache';
|
|
2
|
+
import { mapFontPipelineToTheme } from '@fluentui-react-native/theming-utils';
|
|
3
|
+
import { getOfficeAliasTokens } from './getOfficeTokens';
|
|
4
|
+
function createFontAliasTokensWorker() {
|
|
5
|
+
var aliasTokens = getOfficeAliasTokens('Colorful');
|
|
6
|
+
return mapFontPipelineToTheme(aliasTokens);
|
|
7
|
+
}
|
|
8
|
+
export var createFontAliasTokens = memoize(createFontAliasTokensWorker);
|
|
9
|
+
//# sourceMappingURL=createFontAliasTokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createFontAliasTokens.js","sourceRoot":"","sources":["../src/createFontAliasTokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAE5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAE9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEzD,SAAS,2BAA2B;IAClC,IAAM,WAAW,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAC;IACrD,OAAO,sBAAsB,CAAC,WAAW,CAAC,CAAC;AAC7C,CAAC;AAED,MAAM,CAAC,IAAM,qBAAqB,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AliasColorTokens, ThemeShadowDefinition } from '@fluentui-react-native/theme-types';
|
|
2
|
+
declare function createOfficeColorAliasTokensWorker(officeTheme: string): AliasColorTokens;
|
|
3
|
+
export declare const createOfficeColorAliasTokens: typeof createOfficeColorAliasTokensWorker;
|
|
4
|
+
declare function createOfficeShadowAliasTokensWorker(officeTheme: string): ThemeShadowDefinition;
|
|
5
|
+
export declare const createOfficeShadowAliasTokens: typeof createOfficeShadowAliasTokensWorker;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=createOfficeAliasTokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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;AAKlG,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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { memoize } from '@fluentui-react-native/memo-cache';
|
|
2
|
+
import { mapPipelineToShadow, mapPipelineToTheme } from '@fluentui-react-native/theming-utils';
|
|
3
|
+
import { getOfficeAliasTokens, getOfficeShadowTokens } from './getOfficeTokens';
|
|
4
|
+
function createOfficeColorAliasTokensWorker(officeTheme) {
|
|
5
|
+
var aliasTokens = getOfficeAliasTokens(officeTheme);
|
|
6
|
+
return mapPipelineToTheme(aliasTokens);
|
|
7
|
+
}
|
|
8
|
+
export var createOfficeColorAliasTokens = memoize(createOfficeColorAliasTokensWorker);
|
|
9
|
+
function createOfficeShadowAliasTokensWorker(officeTheme) {
|
|
10
|
+
var aliasTokens = getOfficeShadowTokens(officeTheme);
|
|
11
|
+
return mapPipelineToShadow(aliasTokens);
|
|
12
|
+
}
|
|
13
|
+
export var createOfficeShadowAliasTokens = memoize(createOfficeShadowAliasTokensWorker);
|
|
14
|
+
//# sourceMappingURL=createOfficeAliasTokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createOfficeAliasTokens.js","sourceRoot":"","sources":["../src/createOfficeAliasTokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAE5D,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;IAC7D,IAAM,WAAW,GAAG,oBAAoB,CAAC,WAAW,CAAC,CAAC;IACtD,OAAO,kBAAkB,CAAC,WAAW,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,CAAC,IAAM,4BAA4B,GAAG,OAAO,CAAC,kCAAkC,CAAC,CAAC;AAExF,SAAS,mCAAmC,CAAC,WAAmB;IAC9D,IAAM,WAAW,GAAG,qBAAqB,CAAC,WAAW,CAAC,CAAC;IACvD,OAAO,mBAAmB,CAAC,WAAW,CAAC,CAAC;AAC1C,CAAC;AAED,MAAM,CAAC,IAAM,6BAA6B,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ThemeReference } from '@fluentui-react-native/theme';
|
|
2
|
+
import type { ThemeOptions } from '@fluentui-react-native/theme-types';
|
|
3
|
+
/**
|
|
4
|
+
* create a theme reference for an Office win32 theme. This will be based upon the standard
|
|
5
|
+
* fluent defaults but will attempt to use the theming native module to get information about
|
|
6
|
+
* the office palette.
|
|
7
|
+
*
|
|
8
|
+
* This theme will also listen for native changes and reload itself when things change on the native side of things
|
|
9
|
+
*
|
|
10
|
+
* @param paletteName - optional specifier for the currently active office palette
|
|
11
|
+
*/
|
|
12
|
+
export declare function createOfficeTheme(options?: ThemeOptions): ThemeReference;
|
|
13
|
+
//# sourceMappingURL=createOfficeTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createOfficeTheme.d.ts","sourceRoot":"","sources":["../src/createOfficeTheme.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EAAwB,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAgB7F;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,GAAE,YAAiB,GAAG,cAAc,CAyD5E"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import { createDefaultTheme } from '@fluentui-react-native/default-theme';
|
|
3
|
+
import { ThemeReference } from '@fluentui-react-native/theme';
|
|
4
|
+
import { createAliasesFromPalette } from './createAliasesFromPalette';
|
|
5
|
+
import { createBrandedThemeWithAlias } from './createBrandedThemeWithAlias';
|
|
6
|
+
import { createOfficeColorAliasTokens, createOfficeShadowAliasTokens } from './createOfficeAliasTokens';
|
|
7
|
+
import { createPartialOfficeTheme } from './createPartialOfficeTheme';
|
|
8
|
+
import { win32Typography } from './getThemeTypography';
|
|
9
|
+
import { getThemingModule } from './NativeModule/getThemingModule';
|
|
10
|
+
import { getCurrentHostThemeSetting, setCurrentHostThemeSetting } from './NativeModule/hostThemeSetting';
|
|
11
|
+
function handlePaletteCall(palette) {
|
|
12
|
+
var exception = palette;
|
|
13
|
+
return exception && exception.message !== undefined ? undefined : palette;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* create a theme reference for an Office win32 theme. This will be based upon the standard
|
|
17
|
+
* fluent defaults but will attempt to use the theming native module to get information about
|
|
18
|
+
* the office palette.
|
|
19
|
+
*
|
|
20
|
+
* This theme will also listen for native changes and reload itself when things change on the native side of things
|
|
21
|
+
*
|
|
22
|
+
* @param paletteName - optional specifier for the currently active office palette
|
|
23
|
+
*/
|
|
24
|
+
export function createOfficeTheme(options) {
|
|
25
|
+
if (options === void 0) { options = {}; }
|
|
26
|
+
var _a = getThemingModule(), module = _a[0], emitter = _a[1];
|
|
27
|
+
var ref = { module: module, emitter: emitter, themeName: getCurrentHostThemeSetting() || '' };
|
|
28
|
+
var paletteName = options.paletteName;
|
|
29
|
+
var themeRef = new ThemeReference(createDefaultTheme(options), function () {
|
|
30
|
+
var name = paletteName || 'WhiteColors';
|
|
31
|
+
var palette = handlePaletteCall(ref.module.getPalette(name));
|
|
32
|
+
return createPartialOfficeTheme(module, ref.themeName, palette);
|
|
33
|
+
}, function () {
|
|
34
|
+
if (!ref.themeName || ref.themeName === '') {
|
|
35
|
+
return {};
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
shadows: __assign({}, createOfficeShadowAliasTokens(ref.themeName)),
|
|
39
|
+
typography: win32Typography(),
|
|
40
|
+
};
|
|
41
|
+
}, function () {
|
|
42
|
+
if (!ref.themeName || ref.themeName === '') {
|
|
43
|
+
return {};
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
colors: __assign({}, createOfficeColorAliasTokens(ref.themeName)),
|
|
47
|
+
typography: win32Typography(),
|
|
48
|
+
};
|
|
49
|
+
}, function (theme) {
|
|
50
|
+
return createBrandedThemeWithAlias(ref.themeName, theme);
|
|
51
|
+
}, function (theme) {
|
|
52
|
+
if (!theme.host.palette) {
|
|
53
|
+
return {};
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
colors: createAliasesFromPalette(theme.host.palette, ref.themeName === 'HighContrast'),
|
|
57
|
+
typography: win32Typography(),
|
|
58
|
+
};
|
|
59
|
+
});
|
|
60
|
+
// set up the callback for theme changes on the native side
|
|
61
|
+
var onPlatformDefaultsChanged = function (args) {
|
|
62
|
+
ref.themeName = (args && args.hostThemeSetting) || ref.themeName;
|
|
63
|
+
setCurrentHostThemeSetting(ref.themeName);
|
|
64
|
+
themeRef.invalidate();
|
|
65
|
+
};
|
|
66
|
+
emitter && emitter.addListener('onPlatformDefaultsChanged', onPlatformDefaultsChanged);
|
|
67
|
+
// now return the theme reference
|
|
68
|
+
return themeRef;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=createOfficeTheme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createOfficeTheme.js","sourceRoot":"","sources":["../src/createOfficeTheme.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAG9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,4BAA4B,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AACxG,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAGzG,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,MAAM,UAAU,iBAAiB,CAAC,OAA0B;IAA1B,wBAAA,EAAA,YAA0B;IACpD,IAAA,KAAoB,gBAAgB,EAAE,EAArC,MAAM,QAAA,EAAE,OAAO,QAA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,OAAO,EAAE,GAAG,CAAC,SAAS,KAAK,cAAc,CAAC;YACtF,UAAU,EAAE,eAAe,EAAE;SAC9B,CAAC;IACJ,CAAC,CACF,CAAC;IAEF,2DAA2D;IAC3D,IAAM,yBAAyB,GAAG,UAAC,IAAiC;QAClE,GAAG,CAAC,SAAS,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,gBAAgB,CAAC,IAAI,GAAG,CAAC,SAAS,CAAC;QACjE,0BAA0B,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAC1C,QAAQ,CAAC,UAAU,EAAE,CAAC;IACxB,CAAC,CAAC;IACF,OAAO,IAAI,OAAO,CAAC,WAAW,CAAC,2BAA2B,EAAE,yBAAyB,CAAC,CAAC;IAEvF,iCAAiC;IACjC,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { OfficePalette, PartialTheme } from '@fluentui-react-native/theme-types';
|
|
2
|
+
import type { OfficeThemingModule } from './NativeModule/officeThemingModule';
|
|
3
|
+
/**
|
|
4
|
+
* create a partial theme with overrides from the office native module
|
|
5
|
+
*
|
|
6
|
+
* @param module - theming native module, either the real one or a mock implementation
|
|
7
|
+
* @param palette - Office palette colors, if they have been successfully retrieved
|
|
8
|
+
*/
|
|
9
|
+
export declare function createPartialOfficeTheme(module: OfficeThemingModule, themeName?: string, palette?: OfficePalette): PartialTheme;
|
|
10
|
+
//# sourceMappingURL=createPartialOfficeTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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;AAEtF,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"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { __assign, __spreadArray } from "tslib";
|
|
2
|
+
import { paletteFromOfficeColors } from './paletteFromOfficeColors';
|
|
3
|
+
var getRamps = function (module) {
|
|
4
|
+
return Object.keys(module.ramps).reduce(function (total, colorRamp) {
|
|
5
|
+
return Object.assign.apply(Object, __spreadArray([total], module.rampNames[colorRamp].map(function (rampValueName, index) {
|
|
6
|
+
var _a;
|
|
7
|
+
return _a = {}, _a[rampValueName] = module.ramps[colorRamp][index], _a;
|
|
8
|
+
}), false));
|
|
9
|
+
}, {});
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* create a partial theme with overrides from the office native module
|
|
13
|
+
*
|
|
14
|
+
* @param module - theming native module, either the real one or a mock implementation
|
|
15
|
+
* @param palette - Office palette colors, if they have been successfully retrieved
|
|
16
|
+
*/
|
|
17
|
+
export function createPartialOfficeTheme(module, themeName, palette) {
|
|
18
|
+
return __assign({ colors: __assign({}, (palette && paletteFromOfficeColors(palette))), typography: module.fluentTypography, host: {
|
|
19
|
+
// Office Semantic Colors
|
|
20
|
+
palette: palette || {},
|
|
21
|
+
// Office Branding Colors
|
|
22
|
+
colors: getRamps(module),
|
|
23
|
+
} }, (themeName ? { name: themeName } : undefined));
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=createPartialOfficeTheme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createPartialOfficeTheme.js","sourceRoot":"","sources":["../src/createPartialOfficeTheme.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;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,iBACX,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,MAAM,UAAU,wBAAwB,CAAC,MAA2B,EAAE,SAAkB,EAAE,OAAuB;IAC/G,kBACE,MAAM,eACD,CAAC,OAAO,IAAI,uBAAuB,CAAC,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"}
|
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
export declare function getOfficeAliasTokens(officeTheme: string): any;
|
|
2
|
+
export declare function getOfficeShadowTokens(officeTheme: string): {
|
|
3
|
+
shadow16: {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
blur: number;
|
|
7
|
+
color: string;
|
|
8
|
+
}[];
|
|
9
|
+
shadow2: {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
blur: number;
|
|
13
|
+
color: string;
|
|
14
|
+
}[];
|
|
15
|
+
shadow28: {
|
|
16
|
+
x: number;
|
|
17
|
+
y: number;
|
|
18
|
+
blur: number;
|
|
19
|
+
color: string;
|
|
20
|
+
}[];
|
|
21
|
+
shadow4: {
|
|
22
|
+
x: number;
|
|
23
|
+
y: number;
|
|
24
|
+
blur: number;
|
|
25
|
+
color: string;
|
|
26
|
+
}[];
|
|
27
|
+
shadow64: {
|
|
28
|
+
x: number;
|
|
29
|
+
y: number;
|
|
30
|
+
blur: number;
|
|
31
|
+
color: string;
|
|
32
|
+
}[];
|
|
33
|
+
shadow8: {
|
|
34
|
+
x: number;
|
|
35
|
+
y: number;
|
|
36
|
+
blur: number;
|
|
37
|
+
color: string;
|
|
38
|
+
}[];
|
|
39
|
+
shadowBrand16: {
|
|
40
|
+
x: number;
|
|
41
|
+
y: number;
|
|
42
|
+
blur: number;
|
|
43
|
+
color: string;
|
|
44
|
+
}[];
|
|
45
|
+
shadowBrand2: {
|
|
46
|
+
x: number;
|
|
47
|
+
y: number;
|
|
48
|
+
blur: number;
|
|
49
|
+
color: string;
|
|
50
|
+
}[];
|
|
51
|
+
shadowBrand28: {
|
|
52
|
+
x: number;
|
|
53
|
+
y: number;
|
|
54
|
+
blur: number;
|
|
55
|
+
color: string;
|
|
56
|
+
}[];
|
|
57
|
+
shadowBrand4: {
|
|
58
|
+
x: number;
|
|
59
|
+
y: number;
|
|
60
|
+
blur: number;
|
|
61
|
+
color: string;
|
|
62
|
+
}[];
|
|
63
|
+
shadowBrand64: {
|
|
64
|
+
x: number;
|
|
65
|
+
y: number;
|
|
66
|
+
blur: number;
|
|
67
|
+
color: string;
|
|
68
|
+
}[];
|
|
69
|
+
shadowBrand8: {
|
|
70
|
+
x: number;
|
|
71
|
+
y: number;
|
|
72
|
+
blur: number;
|
|
73
|
+
color: string;
|
|
74
|
+
}[];
|
|
75
|
+
} | {
|
|
76
|
+
body1: {
|
|
77
|
+
fontFamily: string;
|
|
78
|
+
fontLineHeight: number;
|
|
79
|
+
fontSize: number;
|
|
80
|
+
fontWeight: string;
|
|
81
|
+
};
|
|
82
|
+
body1Strong: {
|
|
83
|
+
fontFamily: string;
|
|
84
|
+
fontLineHeight: number;
|
|
85
|
+
fontSize: number;
|
|
86
|
+
fontWeight: string;
|
|
87
|
+
};
|
|
88
|
+
body2: {
|
|
89
|
+
fontFamily: string;
|
|
90
|
+
fontLineHeight: number;
|
|
91
|
+
fontSize: number;
|
|
92
|
+
fontWeight: string;
|
|
93
|
+
};
|
|
94
|
+
body2Strong: {
|
|
95
|
+
fontFamily: string;
|
|
96
|
+
fontLineHeight: number;
|
|
97
|
+
fontSize: number;
|
|
98
|
+
fontWeight: string;
|
|
99
|
+
};
|
|
100
|
+
brandBackground: {
|
|
101
|
+
fillColorRest: string;
|
|
102
|
+
fillColorHover: string;
|
|
103
|
+
fillColorPressed: string;
|
|
104
|
+
fillColorSelected: string;
|
|
105
|
+
};
|
|
106
|
+
brandBackground2: {
|
|
107
|
+
fillColorRest: string;
|
|
108
|
+
};
|
|
109
|
+
brandBackgroundStatic: {
|
|
110
|
+
fillColorRest: string;
|
|
111
|
+
};
|
|
112
|
+
brandForeground1: {
|
|
113
|
+
fillColorRest: string;
|
|
114
|
+
};
|
|
115
|
+
brandForeground2: {
|
|
116
|
+
fillColorRest: string;
|
|
117
|
+
};
|
|
118
|
+
brandForegroundLink: {
|
|
119
|
+
fillColorRest: string;
|
|
120
|
+
fillColorHover: string;
|
|
121
|
+
fillColorPressed: string;
|
|
122
|
+
fillColorSelected: string;
|
|
123
|
+
};
|
|
124
|
+
brandStroke1: {
|
|
125
|
+
strokeColorRest: string;
|
|
126
|
+
strokeWidth: number;
|
|
127
|
+
};
|
|
128
|
+
brandStroke2: {
|
|
129
|
+
strokeColorRest: string;
|
|
130
|
+
strokeWidth: number;
|
|
131
|
+
};
|
|
132
|
+
caption1: {
|
|
133
|
+
fontFamily: string;
|
|
134
|
+
fontLineHeight: number;
|
|
135
|
+
fontSize: number;
|
|
136
|
+
fontWeight: string;
|
|
137
|
+
};
|
|
138
|
+
compoundBrandBackground1: {
|
|
139
|
+
fillColorRest: string;
|
|
140
|
+
fillColorHover: string;
|
|
141
|
+
fillColorPressed: string;
|
|
142
|
+
};
|
|
143
|
+
compoundBrandForeground1: {
|
|
144
|
+
fillColorRest: string;
|
|
145
|
+
fillColorHover: string;
|
|
146
|
+
fillColorPressed: string;
|
|
147
|
+
};
|
|
148
|
+
compoundBrandStroke1: {
|
|
149
|
+
strokeColorRest: string;
|
|
150
|
+
strokeColorHover: string;
|
|
151
|
+
strokeColorPressed: string;
|
|
152
|
+
strokeWidth: number;
|
|
153
|
+
};
|
|
154
|
+
display: {
|
|
155
|
+
fontFamily: string;
|
|
156
|
+
fontLineHeight: number;
|
|
157
|
+
fontSize: number;
|
|
158
|
+
fontWeight: string;
|
|
159
|
+
};
|
|
160
|
+
largeTitle: {
|
|
161
|
+
fontFamily: string;
|
|
162
|
+
fontLineHeight: number;
|
|
163
|
+
fontSize: number;
|
|
164
|
+
fontWeight: string;
|
|
165
|
+
};
|
|
166
|
+
neutralBackground1: {
|
|
167
|
+
fillColorRest: string;
|
|
168
|
+
fillColorHover: string;
|
|
169
|
+
fillColorPressed: string;
|
|
170
|
+
fillColorSelected: string;
|
|
171
|
+
};
|
|
172
|
+
neutralBackground2: {
|
|
173
|
+
fillColorRest: string;
|
|
174
|
+
fillColorHover: string;
|
|
175
|
+
fillColorPressed: string;
|
|
176
|
+
fillColorSelected: string;
|
|
177
|
+
};
|
|
178
|
+
neutralBackground3: {
|
|
179
|
+
fillColorRest: string;
|
|
180
|
+
fillColorHover: string;
|
|
181
|
+
fillColorPressed: string;
|
|
182
|
+
fillColorSelected: string;
|
|
183
|
+
};
|
|
184
|
+
neutralBackground4: {
|
|
185
|
+
fillColorRest: string;
|
|
186
|
+
fillColorHover: string;
|
|
187
|
+
fillColorPressed: string;
|
|
188
|
+
fillColorSelected: string;
|
|
189
|
+
};
|
|
190
|
+
neutralBackground5: {
|
|
191
|
+
fillColorRest: string;
|
|
192
|
+
fillColorHover: string;
|
|
193
|
+
fillColorPressed: string;
|
|
194
|
+
fillColorSelected: string;
|
|
195
|
+
};
|
|
196
|
+
neutralBackground6: {
|
|
197
|
+
fillColorRest: string;
|
|
198
|
+
};
|
|
199
|
+
neutralBackgroundDisabled: {
|
|
200
|
+
fillColorRest: string;
|
|
201
|
+
};
|
|
202
|
+
neutralBackgroundInverted: {
|
|
203
|
+
fillColorRest: string;
|
|
204
|
+
};
|
|
205
|
+
neutralForeground1: {
|
|
206
|
+
fillColorRest: string;
|
|
207
|
+
fillColorHover: string;
|
|
208
|
+
fillColorPressed: string;
|
|
209
|
+
fillColorSelected: string;
|
|
210
|
+
};
|
|
211
|
+
neutralForeground2: {
|
|
212
|
+
fillColorRest: string;
|
|
213
|
+
fillColorHover: string;
|
|
214
|
+
fillColorPressed: string;
|
|
215
|
+
fillColorBrandHover: string;
|
|
216
|
+
fillColorBrandPressed: string;
|
|
217
|
+
fillColorBrandSelected: string;
|
|
218
|
+
fillColorSelected: string;
|
|
219
|
+
};
|
|
220
|
+
neutralForeground3: {
|
|
221
|
+
fillColorRest: string;
|
|
222
|
+
fillColorHover: string;
|
|
223
|
+
fillColorPressed: string;
|
|
224
|
+
fillColorBrandHover: string;
|
|
225
|
+
fillColorBrandPressed: string;
|
|
226
|
+
fillColorBrandSelected: string;
|
|
227
|
+
fillColorSelected: string;
|
|
228
|
+
};
|
|
229
|
+
neutralForeground4: {
|
|
230
|
+
fillColorRest: string;
|
|
231
|
+
};
|
|
232
|
+
neutralForegroundDisabled: {
|
|
233
|
+
fillColorRest: string;
|
|
234
|
+
};
|
|
235
|
+
neutralForegroundInverted: {
|
|
236
|
+
fillColorRest: string;
|
|
237
|
+
};
|
|
238
|
+
neutralForegroundInvertedLink: {
|
|
239
|
+
fillColorRest: string;
|
|
240
|
+
fillColorHover: string;
|
|
241
|
+
fillColorPressed: string;
|
|
242
|
+
fillColorSelected: string;
|
|
243
|
+
};
|
|
244
|
+
neutralForegroundOnBrand: {
|
|
245
|
+
fillColorRest: string;
|
|
246
|
+
fillColorHover: string;
|
|
247
|
+
fillColorPressed: string;
|
|
248
|
+
fillColorSelected: string;
|
|
249
|
+
};
|
|
250
|
+
neutralStencil1: {
|
|
251
|
+
fillColorRest: string;
|
|
252
|
+
};
|
|
253
|
+
neutralStencil2: {
|
|
254
|
+
fillColorRest: string;
|
|
255
|
+
};
|
|
256
|
+
neutralStroke1: {
|
|
257
|
+
strokeColorRest: string;
|
|
258
|
+
strokeColorHover: string;
|
|
259
|
+
strokeColorPressed: string;
|
|
260
|
+
strokeColorSelected: string;
|
|
261
|
+
strokeWidth: number;
|
|
262
|
+
};
|
|
263
|
+
neutralStroke2: {
|
|
264
|
+
strokeColorRest: string;
|
|
265
|
+
strokeWidth: number;
|
|
266
|
+
};
|
|
267
|
+
neutralStroke3: {
|
|
268
|
+
strokeColorRest: string;
|
|
269
|
+
strokeWidth: number;
|
|
270
|
+
};
|
|
271
|
+
neutralStrokeAccessible: {
|
|
272
|
+
strokeColorRest: string;
|
|
273
|
+
strokeColorHover: string;
|
|
274
|
+
strokeColorPressed: string;
|
|
275
|
+
strokeColorSelected: string;
|
|
276
|
+
strokeWidth: number;
|
|
277
|
+
};
|
|
278
|
+
neutralStrokeDisabled: {
|
|
279
|
+
strokeColorRest: string;
|
|
280
|
+
strokeWidth: number;
|
|
281
|
+
};
|
|
282
|
+
redBackground1: {
|
|
283
|
+
fillColorRest: string;
|
|
284
|
+
};
|
|
285
|
+
redBackground2: {
|
|
286
|
+
fillColorRest: string;
|
|
287
|
+
};
|
|
288
|
+
redBackground3: {
|
|
289
|
+
fillColorRest: string;
|
|
290
|
+
};
|
|
291
|
+
redBorder1: {
|
|
292
|
+
strokeColorRest: string;
|
|
293
|
+
strokeWidth: number;
|
|
294
|
+
};
|
|
295
|
+
redBorder2: {
|
|
296
|
+
strokeColorRest: string;
|
|
297
|
+
strokeWidth: number;
|
|
298
|
+
};
|
|
299
|
+
redBorderActive: {
|
|
300
|
+
strokeColorRest: string;
|
|
301
|
+
strokeWidth: number;
|
|
302
|
+
};
|
|
303
|
+
redForeground1: {
|
|
304
|
+
fillColorRest: string;
|
|
305
|
+
};
|
|
306
|
+
redForeground2: {
|
|
307
|
+
fillColorRest: string;
|
|
308
|
+
};
|
|
309
|
+
redForeground3: {
|
|
310
|
+
fillColorRest: string;
|
|
311
|
+
};
|
|
312
|
+
strokeFocus1: {
|
|
313
|
+
strokeColorRest: string;
|
|
314
|
+
strokeWidth: number;
|
|
315
|
+
};
|
|
316
|
+
strokeFocus2: {
|
|
317
|
+
strokeColorRest: string;
|
|
318
|
+
strokeWidth: number;
|
|
319
|
+
};
|
|
320
|
+
subtitle1: {
|
|
321
|
+
fontFamily: string;
|
|
322
|
+
fontLineHeight: number;
|
|
323
|
+
fontSize: number;
|
|
324
|
+
fontWeight: string;
|
|
325
|
+
};
|
|
326
|
+
subtitle1Strong: {
|
|
327
|
+
fontFamily: string;
|
|
328
|
+
fontLineHeight: number;
|
|
329
|
+
fontSize: number;
|
|
330
|
+
fontWeight: string;
|
|
331
|
+
};
|
|
332
|
+
subtitle2: {
|
|
333
|
+
fontFamily: string;
|
|
334
|
+
fontLineHeight: number;
|
|
335
|
+
fontSize: number;
|
|
336
|
+
fontWeight: string;
|
|
337
|
+
};
|
|
338
|
+
subtitle2Strong: {
|
|
339
|
+
fontFamily: string;
|
|
340
|
+
fontLineHeight: number;
|
|
341
|
+
fontSize: number;
|
|
342
|
+
fontWeight: string;
|
|
343
|
+
};
|
|
344
|
+
subtleBackground: {
|
|
345
|
+
fillColorRest: string;
|
|
346
|
+
fillColorHover: string;
|
|
347
|
+
fillColorPressed: string;
|
|
348
|
+
fillColorSelected: string;
|
|
349
|
+
};
|
|
350
|
+
title1: {
|
|
351
|
+
fontFamily: string;
|
|
352
|
+
fontLineHeight: number;
|
|
353
|
+
fontSize: number;
|
|
354
|
+
fontWeight: string;
|
|
355
|
+
};
|
|
356
|
+
title1Strong: {
|
|
357
|
+
fontFamily: string;
|
|
358
|
+
fontLineHeight: number;
|
|
359
|
+
fontSize: number;
|
|
360
|
+
fontWeight: string;
|
|
361
|
+
};
|
|
362
|
+
transparentBackground: {
|
|
363
|
+
fillColorRest: string;
|
|
364
|
+
fillColorHover: string;
|
|
365
|
+
fillColorPressed: string;
|
|
366
|
+
fillColorSelected: string;
|
|
367
|
+
};
|
|
368
|
+
transparentStroke: {
|
|
369
|
+
strokeAlignment: string;
|
|
370
|
+
strokeColorRest: string;
|
|
371
|
+
strokeColorHover: string;
|
|
372
|
+
strokeColorPressed: string;
|
|
373
|
+
strokeColorDisabled: string;
|
|
374
|
+
strokeWidth: number;
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
//# sourceMappingURL=getOfficeTokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getOfficeTokens.d.ts","sourceRoot":"","sources":["../src/getOfficeTokens.ts"],"names":[],"mappings":"AAUA,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,OAYvD;AAED,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYxD"}
|