@fluentui-react-native/win32-theme 0.39.0 → 0.39.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -0
- package/lib/NativeModule/_mocks_/getThemingModule.native.d.ts +1 -1
- package/lib/NativeModule/_mocks_/getThemingModule.native.js +2 -2
- package/lib/NativeModule/fallbackOfficeModule.d.ts +1 -1
- package/lib/NativeModule/fallbackOfficeModule.js +163 -163
- package/lib/NativeModule/getThemingModule.d.ts +1 -1
- package/lib/NativeModule/getThemingModule.js +2 -2
- package/lib/NativeModule/getThemingModule.native.d.ts +1 -1
- package/lib/NativeModule/getThemingModule.native.js +30 -28
- package/lib/NativeModule/hostThemeSetting.d.ts +1 -1
- package/lib/NativeModule/hostThemeSetting.js +3 -3
- package/lib/NativeModule/index.d.ts +2 -10
- 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/createAliasesFromPalette.d.ts +1 -1
- package/lib/createAliasesFromPalette.js +56 -56
- package/lib/createBrandedThemeWithAlias.d.ts +1 -1
- package/lib/createBrandedThemeWithAlias.js +61 -56
- package/lib/createFontAliasTokens.d.ts +1 -1
- package/lib/createFontAliasTokens.js +3 -3
- package/lib/createOfficeAliasTokens.d.ts +1 -1
- package/lib/createOfficeAliasTokens.js +5 -5
- package/lib/createOfficeTheme.d.ts +1 -1
- package/lib/createOfficeTheme.js +46 -53
- package/lib/createPartialOfficeTheme.d.ts +1 -1
- package/lib/createPartialOfficeTheme.js +19 -22
- package/lib/getOfficeTokens.d.ts +227 -229
- package/lib/getOfficeTokens.js +26 -20
- package/lib/getThemeTypography.d.ts +1 -1
- package/lib/getThemeTypography.js +32 -32
- package/lib/highContrast/tokens-alias.d.ts +1 -1
- package/lib/highContrast/tokens-alias.js +11 -11
- package/lib/index.d.ts +2 -10
- package/lib/index.js +1 -1
- package/lib/paletteFromOfficeColors.d.ts +1 -1
- package/lib/paletteFromOfficeColors.js +114 -114
- package/lib-commonjs/NativeModule/_mocks_/getThemingModule.native.d.ts +1 -1
- package/lib-commonjs/NativeModule/_mocks_/getThemingModule.native.js +5 -5
- package/lib-commonjs/NativeModule/fallbackOfficeModule.d.ts +1 -1
- package/lib-commonjs/NativeModule/fallbackOfficeModule.js +165 -165
- package/lib-commonjs/NativeModule/getThemingModule.d.ts +1 -1
- package/lib-commonjs/NativeModule/getThemingModule.js +5 -5
- package/lib-commonjs/NativeModule/getThemingModule.native.d.ts +1 -1
- package/lib-commonjs/NativeModule/getThemingModule.native.js +35 -33
- package/lib-commonjs/NativeModule/hostThemeSetting.d.ts +1 -1
- package/lib-commonjs/NativeModule/hostThemeSetting.js +5 -5
- package/lib-commonjs/NativeModule/index.d.ts +2 -10
- package/lib-commonjs/NativeModule/index.js +8 -23
- 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/createAliasesFromPalette.d.ts +1 -1
- package/lib-commonjs/createAliasesFromPalette.js +58 -58
- package/lib-commonjs/createBrandedThemeWithAlias.d.ts +1 -1
- package/lib-commonjs/createBrandedThemeWithAlias.js +64 -59
- package/lib-commonjs/createFontAliasTokens.d.ts +1 -1
- package/lib-commonjs/createFontAliasTokens.js +8 -8
- package/lib-commonjs/createOfficeAliasTokens.d.ts +1 -1
- package/lib-commonjs/createOfficeAliasTokens.js +10 -10
- package/lib-commonjs/createOfficeTheme.d.ts +1 -1
- package/lib-commonjs/createOfficeTheme.js +57 -66
- package/lib-commonjs/createPartialOfficeTheme.d.ts +1 -1
- package/lib-commonjs/createPartialOfficeTheme.js +22 -25
- package/lib-commonjs/getOfficeTokens.d.ts +227 -229
- package/lib-commonjs/getOfficeTokens.js +39 -35
- package/lib-commonjs/getThemeTypography.d.ts +1 -1
- package/lib-commonjs/getThemeTypography.js +36 -36
- package/lib-commonjs/highContrast/tokens-alias.d.ts +1 -1
- package/lib-commonjs/highContrast/tokens-alias.js +18 -20
- package/lib-commonjs/index.d.ts +2 -10
- package/lib-commonjs/index.js +23 -89
- package/lib-commonjs/paletteFromOfficeColors.d.ts +1 -1
- package/lib-commonjs/paletteFromOfficeColors.js +116 -116
- package/package.json +26 -25
- package/eslint.config.js +0 -3
|
@@ -1,42 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
var __importDefault =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
6
|
exports.getOfficeAliasTokens = getOfficeAliasTokens;
|
|
9
7
|
exports.getOfficeShadowTokens = getOfficeShadowTokens;
|
|
10
|
-
const tokens_aliases_json_1 = __importDefault(require(
|
|
11
|
-
const tokens_shadow_json_1 = __importDefault(require(
|
|
12
|
-
const tokens_aliases_json_2 = __importDefault(require(
|
|
13
|
-
const tokens_shadow_json_2 = __importDefault(require(
|
|
14
|
-
const tokens_aliases_json_3 = __importDefault(require(
|
|
15
|
-
const tokens_shadow_json_3 = __importDefault(require(
|
|
16
|
-
const tokens_shadow_json_4 = __importDefault(require(
|
|
17
|
-
const tokens_alias_1 = require(
|
|
8
|
+
const tokens_aliases_json_1 = __importDefault(require("@fluentui-react-native/design-tokens-win32/black/tokens-aliases.json"));
|
|
9
|
+
const tokens_shadow_json_1 = __importDefault(require("@fluentui-react-native/design-tokens-win32/black/tokens-shadow.json"));
|
|
10
|
+
const tokens_aliases_json_2 = __importDefault(require("@fluentui-react-native/design-tokens-win32/colorful/tokens-aliases.json"));
|
|
11
|
+
const tokens_shadow_json_2 = __importDefault(require("@fluentui-react-native/design-tokens-win32/colorful/tokens-shadow.json"));
|
|
12
|
+
const tokens_aliases_json_3 = __importDefault(require("@fluentui-react-native/design-tokens-win32/darkgray/tokens-aliases.json"));
|
|
13
|
+
const tokens_shadow_json_3 = __importDefault(require("@fluentui-react-native/design-tokens-win32/darkgray/tokens-shadow.json"));
|
|
14
|
+
const tokens_shadow_json_4 = __importDefault(require("@fluentui-react-native/design-tokens-win32/hc/tokens-shadow.json"));
|
|
15
|
+
const tokens_alias_1 = require("./highContrast/tokens-alias");
|
|
18
16
|
function getOfficeAliasTokens(officeTheme) {
|
|
19
|
-
|
|
17
|
+
if (officeTheme === 'White' || officeTheme === 'Colorful') {
|
|
18
|
+
return tokens_aliases_json_2.default;
|
|
19
|
+
}
|
|
20
|
+
else if (officeTheme === 'DarkGray') {
|
|
21
|
+
return tokens_aliases_json_3.default;
|
|
22
|
+
}
|
|
23
|
+
else if (officeTheme === 'Black') {
|
|
24
|
+
return tokens_aliases_json_1.default;
|
|
25
|
+
}
|
|
26
|
+
else if (officeTheme === 'HighContrast') {
|
|
27
|
+
return tokens_alias_1.hcAliasTokens;
|
|
28
|
+
}
|
|
20
29
|
return tokens_aliases_json_2.default;
|
|
21
|
-
} else if (officeTheme === 'DarkGray') {
|
|
22
|
-
return tokens_aliases_json_3.default;
|
|
23
|
-
} else if (officeTheme === 'Black') {
|
|
24
|
-
return tokens_aliases_json_1.default;
|
|
25
|
-
} else if (officeTheme === 'HighContrast') {
|
|
26
|
-
return tokens_alias_1.hcAliasTokens;
|
|
27
|
-
}
|
|
28
|
-
return tokens_aliases_json_2.default;
|
|
29
30
|
}
|
|
30
31
|
function getOfficeShadowTokens(officeTheme) {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
32
|
+
if (officeTheme === 'White' || officeTheme === 'Colorful') {
|
|
33
|
+
return tokens_shadow_json_2.default;
|
|
34
|
+
}
|
|
35
|
+
else if (officeTheme === 'DarkGray') {
|
|
36
|
+
return tokens_shadow_json_3.default;
|
|
37
|
+
}
|
|
38
|
+
else if (officeTheme === 'Black') {
|
|
39
|
+
return tokens_shadow_json_1.default;
|
|
40
|
+
}
|
|
41
|
+
else if (officeTheme === 'HighContrast') {
|
|
42
|
+
return tokens_shadow_json_4.default;
|
|
43
|
+
}
|
|
44
|
+
return tokens_aliases_json_2.default;
|
|
41
45
|
}
|
|
42
|
-
//# sourceMappingURL=getOfficeTokens.js.map
|
|
46
|
+
//# sourceMappingURL=getOfficeTokens.js.map
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.win32Typography = win32Typography;
|
|
4
|
-
const default_theme_1 = require(
|
|
5
|
-
const createFontAliasTokens_1 = require(
|
|
4
|
+
const default_theme_1 = require("@fluentui-react-native/default-theme");
|
|
5
|
+
const createFontAliasTokens_1 = require("./createFontAliasTokens");
|
|
6
6
|
function win32Typography() {
|
|
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
|
-
|
|
7
|
+
const win32Dict = {
|
|
8
|
+
sizes: default_theme_1.defaultFluentTheme.typography.sizes,
|
|
9
|
+
weights: default_theme_1.defaultFluentTheme.typography.weights,
|
|
10
|
+
// hard coded until we support new fontFamily format
|
|
11
|
+
families: {
|
|
12
|
+
primary: 'Segoe UI',
|
|
13
|
+
secondary: 'Segoe UI Semibold',
|
|
14
|
+
cursive: 'System',
|
|
15
|
+
monospace: 'Consolas',
|
|
16
|
+
sansSerif: 'System',
|
|
17
|
+
serif: 'System',
|
|
18
|
+
numeric: 'Bahnschrift',
|
|
19
|
+
},
|
|
20
|
+
variants: {
|
|
21
|
+
captionStandard: { face: 'primary', size: 'caption', weight: 'regular' },
|
|
22
|
+
secondaryStandard: { face: 'primary', size: 'secondary', weight: 'regular' },
|
|
23
|
+
secondarySemibold: { face: 'primary', size: 'secondary', weight: 'semiBold' },
|
|
24
|
+
bodyStandard: { face: 'primary', size: 'body', weight: 'regular' },
|
|
25
|
+
bodySemibold: { face: 'primary', size: 'body', weight: 'semiBold' },
|
|
26
|
+
subheaderStandard: { face: 'primary', size: 'subheader', weight: 'regular' },
|
|
27
|
+
subheaderSemibold: { face: 'primary', size: 'subheader', weight: 'semiBold' },
|
|
28
|
+
headerStandard: { face: 'primary', size: 'header', weight: 'regular' },
|
|
29
|
+
headerSemibold: { face: 'primary', size: 'header', weight: 'semiBold' },
|
|
30
|
+
heroStandard: { face: 'primary', size: 'hero', weight: 'regular' },
|
|
31
|
+
heroSemibold: { face: 'primary', size: 'hero', weight: 'semiBold' },
|
|
32
|
+
heroLargeStandard: { face: 'primary', size: 'heroLarge', weight: 'regular' },
|
|
33
|
+
heroLargeSemibold: { face: 'primary', size: 'heroLarge', weight: 'semiBold' },
|
|
34
|
+
...(0, createFontAliasTokens_1.createFontAliasTokens)(),
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
return win32Dict;
|
|
38
38
|
}
|
|
39
|
-
//# sourceMappingURL=getThemeTypography.js.map
|
|
39
|
+
//# sourceMappingURL=getThemeTypography.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const hcAliasTokens: any;
|
|
2
|
-
//# sourceMappingURL=tokens-alias.d.ts.map
|
|
2
|
+
//# sourceMappingURL=tokens-alias.d.ts.map
|
|
@@ -1,25 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
var __importDefault =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
6
|
exports.hcAliasTokens = void 0;
|
|
9
|
-
const react_native_1 = require(
|
|
10
|
-
const tokens_aliases_json_1 = __importDefault(require(
|
|
7
|
+
const react_native_1 = require("react-native");
|
|
8
|
+
const tokens_aliases_json_1 = __importDefault(require("@fluentui-react-native/design-tokens-win32/hc/tokens-aliases.json"));
|
|
11
9
|
exports.hcAliasTokens = processAliasTokens(tokens_aliases_json_1.default);
|
|
12
10
|
function processAliasTokens(aliasTokens) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
11
|
+
for (const key in aliasTokens) {
|
|
12
|
+
for (const innerKey in aliasTokens[key]) {
|
|
13
|
+
const entry = aliasTokens[key][innerKey];
|
|
14
|
+
if (typeof entry === 'string' && entry.includes('PlatformColor')) {
|
|
15
|
+
const color = entry.substring(14, entry.length - 1);
|
|
16
|
+
// eslint-disable-next-line @react-native/platform-colors
|
|
17
|
+
aliasTokens[key][innerKey] = (0, react_native_1.PlatformColor)(color);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
21
20
|
}
|
|
22
|
-
|
|
23
|
-
return aliasTokens;
|
|
21
|
+
return aliasTokens;
|
|
24
22
|
}
|
|
25
|
-
//# sourceMappingURL=tokens-alias.js.map
|
|
23
|
+
//# sourceMappingURL=tokens-alias.js.map
|
package/lib-commonjs/index.d.ts
CHANGED
|
@@ -1,18 +1,10 @@
|
|
|
1
1
|
export { createOfficeTheme } from './createOfficeTheme';
|
|
2
2
|
export { createPartialOfficeTheme } from './createPartialOfficeTheme';
|
|
3
3
|
export { fallbackGetPalette, fallbackOfficeModule, getThemingModule } from './NativeModule/index';
|
|
4
|
-
export type {
|
|
5
|
-
CxxException,
|
|
6
|
-
IEventEmitter,
|
|
7
|
-
NativeColorNames,
|
|
8
|
-
NativeColorRamps,
|
|
9
|
-
OfficeThemingModule,
|
|
10
|
-
PlatformDefaultsChangedArgs,
|
|
11
|
-
PlatformDefaultsChangedCallback,
|
|
12
|
-
} from './NativeModule/index';
|
|
4
|
+
export type { CxxException, IEventEmitter, NativeColorNames, NativeColorRamps, OfficeThemingModule, PlatformDefaultsChangedArgs, PlatformDefaultsChangedCallback, } from './NativeModule/index';
|
|
13
5
|
export { paletteFromOfficeColors } from './paletteFromOfficeColors';
|
|
14
6
|
export { createOfficeColorAliasTokens as createOfficeAliasTokens } from './createOfficeAliasTokens';
|
|
15
7
|
export { createFontAliasTokens } from './createFontAliasTokens';
|
|
16
8
|
export { createBrandedThemeWithAlias, getCurrentBrandAliasTokens } from './createBrandedThemeWithAlias';
|
|
17
9
|
export { win32Typography } from './getThemeTypography';
|
|
18
|
-
//# sourceMappingURL=index.d.ts.map
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
package/lib-commonjs/index.js
CHANGED
|
@@ -1,89 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
3
|
-
exports.win32Typography =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function () {
|
|
26
|
-
return createPartialOfficeTheme_1.createPartialOfficeTheme;
|
|
27
|
-
},
|
|
28
|
-
});
|
|
29
|
-
const index_1 = require('./NativeModule/index');
|
|
30
|
-
Object.defineProperty(exports, 'fallbackGetPalette', {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function () {
|
|
33
|
-
return index_1.fallbackGetPalette;
|
|
34
|
-
},
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, 'fallbackOfficeModule', {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function () {
|
|
39
|
-
return index_1.fallbackOfficeModule;
|
|
40
|
-
},
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(exports, 'getThemingModule', {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function () {
|
|
45
|
-
return index_1.getThemingModule;
|
|
46
|
-
},
|
|
47
|
-
});
|
|
48
|
-
const paletteFromOfficeColors_1 = require('./paletteFromOfficeColors');
|
|
49
|
-
Object.defineProperty(exports, 'paletteFromOfficeColors', {
|
|
50
|
-
enumerable: true,
|
|
51
|
-
get: function () {
|
|
52
|
-
return paletteFromOfficeColors_1.paletteFromOfficeColors;
|
|
53
|
-
},
|
|
54
|
-
});
|
|
55
|
-
const createOfficeAliasTokens_1 = require('./createOfficeAliasTokens');
|
|
56
|
-
Object.defineProperty(exports, 'createOfficeAliasTokens', {
|
|
57
|
-
enumerable: true,
|
|
58
|
-
get: function () {
|
|
59
|
-
return createOfficeAliasTokens_1.createOfficeColorAliasTokens;
|
|
60
|
-
},
|
|
61
|
-
});
|
|
62
|
-
const createFontAliasTokens_1 = require('./createFontAliasTokens');
|
|
63
|
-
Object.defineProperty(exports, 'createFontAliasTokens', {
|
|
64
|
-
enumerable: true,
|
|
65
|
-
get: function () {
|
|
66
|
-
return createFontAliasTokens_1.createFontAliasTokens;
|
|
67
|
-
},
|
|
68
|
-
});
|
|
69
|
-
const createBrandedThemeWithAlias_1 = require('./createBrandedThemeWithAlias');
|
|
70
|
-
Object.defineProperty(exports, 'createBrandedThemeWithAlias', {
|
|
71
|
-
enumerable: true,
|
|
72
|
-
get: function () {
|
|
73
|
-
return createBrandedThemeWithAlias_1.createBrandedThemeWithAlias;
|
|
74
|
-
},
|
|
75
|
-
});
|
|
76
|
-
Object.defineProperty(exports, 'getCurrentBrandAliasTokens', {
|
|
77
|
-
enumerable: true,
|
|
78
|
-
get: function () {
|
|
79
|
-
return createBrandedThemeWithAlias_1.getCurrentBrandAliasTokens;
|
|
80
|
-
},
|
|
81
|
-
});
|
|
82
|
-
const getThemeTypography_1 = require('./getThemeTypography');
|
|
83
|
-
Object.defineProperty(exports, 'win32Typography', {
|
|
84
|
-
enumerable: true,
|
|
85
|
-
get: function () {
|
|
86
|
-
return getThemeTypography_1.win32Typography;
|
|
87
|
-
},
|
|
88
|
-
});
|
|
89
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.win32Typography = exports.getCurrentBrandAliasTokens = exports.createBrandedThemeWithAlias = exports.createFontAliasTokens = exports.createOfficeAliasTokens = exports.paletteFromOfficeColors = exports.getThemingModule = exports.fallbackOfficeModule = exports.fallbackGetPalette = exports.createPartialOfficeTheme = exports.createOfficeTheme = void 0;
|
|
4
|
+
const createOfficeTheme_1 = require("./createOfficeTheme");
|
|
5
|
+
Object.defineProperty(exports, "createOfficeTheme", { enumerable: true, get: function () { return createOfficeTheme_1.createOfficeTheme; } });
|
|
6
|
+
const createPartialOfficeTheme_1 = require("./createPartialOfficeTheme");
|
|
7
|
+
Object.defineProperty(exports, "createPartialOfficeTheme", { enumerable: true, get: function () { return createPartialOfficeTheme_1.createPartialOfficeTheme; } });
|
|
8
|
+
const index_1 = require("./NativeModule/index");
|
|
9
|
+
Object.defineProperty(exports, "fallbackGetPalette", { enumerable: true, get: function () { return index_1.fallbackGetPalette; } });
|
|
10
|
+
Object.defineProperty(exports, "fallbackOfficeModule", { enumerable: true, get: function () { return index_1.fallbackOfficeModule; } });
|
|
11
|
+
Object.defineProperty(exports, "getThemingModule", { enumerable: true, get: function () { return index_1.getThemingModule; } });
|
|
12
|
+
const paletteFromOfficeColors_1 = require("./paletteFromOfficeColors");
|
|
13
|
+
Object.defineProperty(exports, "paletteFromOfficeColors", { enumerable: true, get: function () { return paletteFromOfficeColors_1.paletteFromOfficeColors; } });
|
|
14
|
+
const createOfficeAliasTokens_1 = require("./createOfficeAliasTokens");
|
|
15
|
+
Object.defineProperty(exports, "createOfficeAliasTokens", { enumerable: true, get: function () { return createOfficeAliasTokens_1.createOfficeColorAliasTokens; } });
|
|
16
|
+
const createFontAliasTokens_1 = require("./createFontAliasTokens");
|
|
17
|
+
Object.defineProperty(exports, "createFontAliasTokens", { enumerable: true, get: function () { return createFontAliasTokens_1.createFontAliasTokens; } });
|
|
18
|
+
const createBrandedThemeWithAlias_1 = require("./createBrandedThemeWithAlias");
|
|
19
|
+
Object.defineProperty(exports, "createBrandedThemeWithAlias", { enumerable: true, get: function () { return createBrandedThemeWithAlias_1.createBrandedThemeWithAlias; } });
|
|
20
|
+
Object.defineProperty(exports, "getCurrentBrandAliasTokens", { enumerable: true, get: function () { return createBrandedThemeWithAlias_1.getCurrentBrandAliasTokens; } });
|
|
21
|
+
const getThemeTypography_1 = require("./getThemeTypography");
|
|
22
|
+
Object.defineProperty(exports, "win32Typography", { enumerable: true, get: function () { return getThemeTypography_1.win32Typography; } });
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,119 +1,119 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paletteFromOfficeColors = paletteFromOfficeColors;
|
|
4
4
|
function paletteFromOfficeColors(p) {
|
|
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
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
5
|
+
return {
|
|
6
|
+
background: p.Bkg,
|
|
7
|
+
bodyStandoutBackground: p.Bkg,
|
|
8
|
+
bodyFrameBackground: p.Bkg,
|
|
9
|
+
bodyFrameDivider: p.AccentLight,
|
|
10
|
+
bodyText: p.Text,
|
|
11
|
+
bodyTextChecked: p.TextSelected,
|
|
12
|
+
subText: p.TextSecondary,
|
|
13
|
+
bodyDivider: p.AccentLight,
|
|
14
|
+
disabledBackground: p.BkgCtlSubtleDisabled,
|
|
15
|
+
disabledText: p.TextCtlSubtleDisabled,
|
|
16
|
+
disabledBodyText: p.TextDisabled,
|
|
17
|
+
focusBorder: p.StrokeKeyboard,
|
|
18
|
+
variantBorder: p.AccentOutline,
|
|
19
|
+
errorText: p.TextError,
|
|
20
|
+
inputBorder: p.StrokeCtlSubtle,
|
|
21
|
+
inputBackground: p.BkgCtlSubtle,
|
|
22
|
+
inputFocusBorderAlt: p.StrokeCtlSubtleKeyboard,
|
|
23
|
+
inputText: p.TextCtlSubtle,
|
|
24
|
+
inputPlaceholderText: p.TextTextBoxPlaceholder,
|
|
25
|
+
buttonBackground: p.BkgCtl,
|
|
26
|
+
buttonBackgroundChecked: p.BkgCtlSelected,
|
|
27
|
+
buttonBackgroundHovered: p.BkgCtlHover,
|
|
28
|
+
buttonBackgroundPressed: p.BkgCtlPressed,
|
|
29
|
+
buttonBackgroundDisabled: p.BkgCtlDisabled,
|
|
30
|
+
buttonBorder: p.StrokeCtl,
|
|
31
|
+
buttonText: p.TextCtl,
|
|
32
|
+
buttonTextHovered: p.TextCtlHover,
|
|
33
|
+
buttonTextChecked: p.TextCtlSelected,
|
|
34
|
+
buttonTextPressed: p.TextCtlPressed,
|
|
35
|
+
buttonTextDisabled: p.TextCtlDisabled,
|
|
36
|
+
buttonBorderDisabled: p.StrokeCtlDisabled,
|
|
37
|
+
buttonBorderFocused: p.StrokeCtlKeyboard,
|
|
38
|
+
primaryButtonBackground: p.BkgCtlEmphasis,
|
|
39
|
+
primaryButtonBackgroundHovered: p.BkgCtlEmphasisHover,
|
|
40
|
+
primaryButtonBackgroundPressed: p.BkgCtlEmphasisPressed,
|
|
41
|
+
primaryButtonBackgroundDisabled: p.BkgCtlEmphasisDisabled,
|
|
42
|
+
primaryButtonBorder: p.StrokeCtlEmphasis,
|
|
43
|
+
primaryButtonBorderFocused: p.StrokeCtlEmphasisKeyboard,
|
|
44
|
+
primaryButtonText: p.TextCtlEmphasis,
|
|
45
|
+
primaryButtonTextHovered: p.TextCtlEmphasisHover,
|
|
46
|
+
primaryButtonTextPressed: p.TextCtlEmphasisPressed,
|
|
47
|
+
primaryButtonTextDisabled: p.TextCtlEmphasisDisabled,
|
|
48
|
+
accentButtonBackground: p.BkgCtlEmphasis,
|
|
49
|
+
menuBackground: p.Bkg,
|
|
50
|
+
menuDivider: p.AccentLight,
|
|
51
|
+
menuIcon: p.Text,
|
|
52
|
+
menuItemBackgroundHovered: p.BkgHover,
|
|
53
|
+
menuItemBackgroundPressed: p.BkgPressed,
|
|
54
|
+
menuItemText: p.Text,
|
|
55
|
+
menuItemTextHovered: p.TextHover,
|
|
56
|
+
listHeaderBackgroundHovered: p.BkgHover,
|
|
57
|
+
listHeaderBackgroundPressed: p.BkgPressed,
|
|
58
|
+
actionLink: p.TextActive,
|
|
59
|
+
link: p.TextHyperlink,
|
|
60
|
+
linkHovered: p.TextHyperlinkHover,
|
|
61
|
+
linkPressed: p.TextHyperlinkPressed,
|
|
62
|
+
defaultBackground: p.BkgCtl,
|
|
63
|
+
defaultBorder: p.StrokeCtl,
|
|
64
|
+
defaultContent: p.TextCtl,
|
|
65
|
+
defaultIcon: p.TextCtl,
|
|
66
|
+
defaultHoveredBackground: p.BkgCtlHover,
|
|
67
|
+
defaultHoveredBorder: p.StrokeCtlHover,
|
|
68
|
+
defaultHoveredContent: p.TextCtlHover,
|
|
69
|
+
defaultHoveredIcon: p.TextCtlHover,
|
|
70
|
+
defaultFocusedBackground: p.BkgCtlHover,
|
|
71
|
+
defaultFocusedBorder: p.StrokeCtlKeyboard,
|
|
72
|
+
defaultFocusedContent: p.TextCtlHover,
|
|
73
|
+
defaultFocusedIcon: p.TextCtlHover,
|
|
74
|
+
defaultPressedBackground: p.BkgCtlPressed,
|
|
75
|
+
defaultPressedBorder: p.StrokeCtlPressed,
|
|
76
|
+
defaultPressedContent: p.TextCtlPressed,
|
|
77
|
+
defaultPressedIcon: p.TextCtlPressed,
|
|
78
|
+
defaultDisabledBackground: p.BkgCtlDisabled,
|
|
79
|
+
defaultDisabledBorder: p.StrokeCtlDisabled,
|
|
80
|
+
defaultDisabledContent: p.TextCtlDisabled,
|
|
81
|
+
defaultDisabledIcon: p.TextCtlDisabled,
|
|
82
|
+
ghostBackground: p.Bkg,
|
|
83
|
+
ghostBorder: p.Bkg,
|
|
84
|
+
ghostContent: p.Text,
|
|
85
|
+
ghostIcon: p.Text,
|
|
86
|
+
ghostHoveredBackground: p.BkgHover,
|
|
87
|
+
ghostHoveredBorder: p.BkgHover,
|
|
88
|
+
ghostHoveredContent: p.TextHover,
|
|
89
|
+
ghostHoveredIcon: p.TextHover,
|
|
90
|
+
ghostFocusedBackground: p.BkgHover,
|
|
91
|
+
ghostFocusedBorder: p.StrokeKeyboard,
|
|
92
|
+
ghostFocusedContent: p.TextHover,
|
|
93
|
+
ghostFocusedIcon: p.TextHover,
|
|
94
|
+
ghostPressedBackground: p.BkgPressed,
|
|
95
|
+
ghostPressedBorder: p.BkgPressed,
|
|
96
|
+
ghostPressedContent: p.TextPressed,
|
|
97
|
+
ghostPressedIcon: p.TextPressed,
|
|
98
|
+
ghostDisabledBackground: p.Bkg,
|
|
99
|
+
ghostDisabledBorder: p.Bkg,
|
|
100
|
+
ghostDisabledContent: p.TextDisabled,
|
|
101
|
+
ghostDisabledIcon: p.TextDisabled,
|
|
102
|
+
brandedBackground: p.BkgCtlEmphasis,
|
|
103
|
+
brandedDisabledBorder: p.StrokeCtlEmphasisDisabled,
|
|
104
|
+
defaultCheckedBackground: p.BkgCtlSelected,
|
|
105
|
+
defaultCheckedContent: p.TextCtlSelected,
|
|
106
|
+
defaultCheckedHoveredBackground: p.BkgCtlHover,
|
|
107
|
+
defaultCheckedHoveredContent: p.TextCtlHover,
|
|
108
|
+
ghostCheckedBackground: p.BkgSelected,
|
|
109
|
+
ghostCheckedContent: p.TextSelected,
|
|
110
|
+
ghostCheckedHoveredBackground: p.BkgHover,
|
|
111
|
+
ghostCheckedHoveredContent: p.TextHover,
|
|
112
|
+
ghostCheckedHoveredBorder: p.StrokeSelectedHover,
|
|
113
|
+
ghostSecondaryContent: p.TextSecondary,
|
|
114
|
+
ghostFocusedSecondaryContent: p.TextSecondaryHover,
|
|
115
|
+
ghostHoveredSecondaryContent: p.TextSecondaryHover,
|
|
116
|
+
ghostPressedSecondaryContent: p.TextSecondaryPressed,
|
|
117
|
+
};
|
|
118
118
|
}
|
|
119
|
-
//# sourceMappingURL=paletteFromOfficeColors.js.map
|
|
119
|
+
//# sourceMappingURL=paletteFromOfficeColors.js.map
|