@fluentui-react-native/win32-theme 0.37.1 → 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 +15 -0
- package/CHANGELOG.md +51 -2
- 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
- package/src/NativeModule/fallbackOfficeModule.ts +1 -1
- package/src/__tests__/__snapshots__/win32-theme.test.ts.snap +3 -3
- package/src/createAliasesFromPalette.ts +1 -1
- package/src/paletteFromOfficeColors.ts +1 -1
|
@@ -1,47 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
var __importDefault =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
1
|
+
'use strict';
|
|
2
|
+
var __importDefault =
|
|
3
|
+
(this && this.__importDefault) ||
|
|
4
|
+
function (mod) {
|
|
5
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
6
|
+
};
|
|
7
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
|
+
exports.getOfficeAliasTokens = getOfficeAliasTokens;
|
|
9
|
+
exports.getOfficeShadowTokens = getOfficeShadowTokens;
|
|
10
|
+
const tokens_aliases_json_1 = __importDefault(require('@fluentui-react-native/design-tokens-win32/black/tokens-aliases.json'));
|
|
11
|
+
const tokens_shadow_json_1 = __importDefault(require('@fluentui-react-native/design-tokens-win32/black/tokens-shadow.json'));
|
|
12
|
+
const tokens_aliases_json_2 = __importDefault(require('@fluentui-react-native/design-tokens-win32/colorful/tokens-aliases.json'));
|
|
13
|
+
const tokens_shadow_json_2 = __importDefault(require('@fluentui-react-native/design-tokens-win32/colorful/tokens-shadow.json'));
|
|
14
|
+
const tokens_aliases_json_3 = __importDefault(require('@fluentui-react-native/design-tokens-win32/darkgray/tokens-aliases.json'));
|
|
15
|
+
const tokens_shadow_json_3 = __importDefault(require('@fluentui-react-native/design-tokens-win32/darkgray/tokens-shadow.json'));
|
|
16
|
+
const tokens_shadow_json_4 = __importDefault(require('@fluentui-react-native/design-tokens-win32/hc/tokens-shadow.json'));
|
|
17
|
+
const tokens_alias_1 = require('./highContrast/tokens-alias');
|
|
15
18
|
function getOfficeAliasTokens(officeTheme) {
|
|
16
|
-
|
|
17
|
-
return tokens_aliases_json_2.default;
|
|
18
|
-
}
|
|
19
|
-
else if (officeTheme === 'DarkGray') {
|
|
20
|
-
return tokens_aliases_json_3.default;
|
|
21
|
-
}
|
|
22
|
-
else if (officeTheme === 'Black') {
|
|
23
|
-
return tokens_aliases_json_1.default;
|
|
24
|
-
}
|
|
25
|
-
else if (officeTheme === 'HighContrast') {
|
|
26
|
-
return tokens_alias_1.hcAliasTokens;
|
|
27
|
-
}
|
|
19
|
+
if (officeTheme === 'White' || officeTheme === 'Colorful') {
|
|
28
20
|
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
29
|
}
|
|
30
|
-
exports.getOfficeAliasTokens = getOfficeAliasTokens;
|
|
31
30
|
function getOfficeShadowTokens(officeTheme) {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
return tokens_shadow_json_4.default;
|
|
43
|
-
}
|
|
44
|
-
return tokens_aliases_json_2.default;
|
|
31
|
+
if (officeTheme === 'White' || officeTheme === 'Colorful') {
|
|
32
|
+
return tokens_shadow_json_2.default;
|
|
33
|
+
} else if (officeTheme === 'DarkGray') {
|
|
34
|
+
return tokens_shadow_json_3.default;
|
|
35
|
+
} else if (officeTheme === 'Black') {
|
|
36
|
+
return tokens_shadow_json_1.default;
|
|
37
|
+
} else if (officeTheme === 'HighContrast') {
|
|
38
|
+
return tokens_shadow_json_4.default;
|
|
39
|
+
}
|
|
40
|
+
return tokens_aliases_json_2.default;
|
|
45
41
|
}
|
|
46
|
-
|
|
47
|
-
//# sourceMappingURL=getOfficeTokens.js.map
|
|
42
|
+
//# sourceMappingURL=getOfficeTokens.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getOfficeTokens.js","sourceRoot":"","sources":["../src/getOfficeTokens.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getOfficeTokens.js","sourceRoot":"","sources":["../src/getOfficeTokens.ts"],"names":[],"mappings":";;;;;;;AAAA,+HAAoG;AACpG,6HAAoG;AACpG,kIAA0G;AAC1G,gIAA0G;AAC1G,kIAA0G;AAC1G,gIAA0G;AAC1G,0HAA8F;AAE9F,8DAA4D;AAE5D,8BAAqC,WAAmB,EAAE;IACxD,IAAI,WAAW,KAAK,OAAO,IAAI,WAAW,KAAK,UAAU,EAAE,CAAC;QAC1D,OAAO,6BAAmB,CAAC;IAC7B,CAAC;SAAM,IAAI,WAAW,KAAK,UAAU,EAAE,CAAC;QACtC,OAAO,6BAAmB,CAAC;IAC7B,CAAC;SAAM,IAAI,WAAW,KAAK,OAAO,EAAE,CAAC;QACnC,OAAO,6BAAgB,CAAC;IAC1B,CAAC;SAAM,IAAI,WAAW,KAAK,cAAc,EAAE,CAAC;QAC1C,OAAO,4BAAa,CAAC;IACvB,CAAC;IAED,OAAO,6BAAmB,CAAC;AAAA,CAC5B;AAED,+BAAsC,WAAmB,EAAE;IACzD,IAAI,WAAW,KAAK,OAAO,IAAI,WAAW,KAAK,UAAU,EAAE,CAAC;QAC1D,OAAO,4BAAoB,CAAC;IAC9B,CAAC;SAAM,IAAI,WAAW,KAAK,UAAU,EAAE,CAAC;QACtC,OAAO,4BAAoB,CAAC;IAC9B,CAAC;SAAM,IAAI,WAAW,KAAK,OAAO,EAAE,CAAC;QACnC,OAAO,4BAAiB,CAAC;IAC3B,CAAC;SAAM,IAAI,WAAW,KAAK,cAAc,EAAE,CAAC;QAC1C,OAAO,4BAAc,CAAC;IACxB,CAAC;IAED,OAAO,6BAAmB,CAAC;AAAA,CAC5B"}
|
|
@@ -1,40 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
3
|
-
exports.win32Typography =
|
|
4
|
-
const default_theme_1 = require(
|
|
5
|
-
const createFontAliasTokens_1 = require(
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
|
+
exports.win32Typography = win32Typography;
|
|
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
|
-
|
|
40
|
-
//# sourceMappingURL=getThemeTypography.js.map
|
|
39
|
+
//# sourceMappingURL=getThemeTypography.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getThemeTypography.js","sourceRoot":"","sources":["../src/getThemeTypography.ts"],"names":[],"mappings":";;;AAAA,wEAA0E;AAG1E,mEAAgE;AAEhE,
|
|
1
|
+
{"version":3,"file":"getThemeTypography.js","sourceRoot":"","sources":["../src/getThemeTypography.ts"],"names":[],"mappings":";;;AAAA,wEAA0E;AAG1E,mEAAgE;AAEhE,2BAA8C;IAC5C,MAAM,SAAS,GAAG;QAChB,KAAK,EAAE,kCAAkB,CAAC,UAAU,CAAC,KAAK;QAC1C,OAAO,EAAE,kCAAkB,CAAC,UAAU,CAAC,OAAO;QAC9C,oDAAoD;QACpD,QAAQ,EAAE;YACR,OAAO,EAAE,UAAU;YACnB,SAAS,EAAE,mBAAmB;YAC9B,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,UAAU;YACrB,SAAS,EAAE,QAAQ;YACnB,KAAK,EAAE,QAAQ;YACf,OAAO,EAAE,aAAa;SACvB;QACD,QAAQ,EAAE;YACR,eAAe,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE;YACxE,iBAAiB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE;YAC5E,iBAAiB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE;YAC7E,YAAY,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE;YAClE,YAAY,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE;YACnE,iBAAiB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE;YAC5E,iBAAiB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE;YAC7E,cAAc,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE;YACtE,cAAc,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE;YACvE,YAAY,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE;YAClE,YAAY,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE;YACnE,iBAAiB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE;YAC5E,iBAAiB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE;YAC7E,GAAG,IAAA,6CAAqB,GAAE;SACf;KACd,CAAC;IAEF,OAAO,SAAS,CAAC;AAAA,CAClB"}
|
|
@@ -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,23 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
var __importDefault =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
var __importDefault =
|
|
3
|
+
(this && this.__importDefault) ||
|
|
4
|
+
function (mod) {
|
|
5
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
6
|
+
};
|
|
7
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
6
8
|
exports.hcAliasTokens = void 0;
|
|
7
|
-
const react_native_1 = require(
|
|
8
|
-
const tokens_aliases_json_1 = __importDefault(require(
|
|
9
|
+
const react_native_1 = require('react-native');
|
|
10
|
+
const tokens_aliases_json_1 = __importDefault(require('@fluentui-react-native/design-tokens-win32/hc/tokens-aliases.json'));
|
|
9
11
|
exports.hcAliasTokens = processAliasTokens(tokens_aliases_json_1.default);
|
|
10
12
|
function processAliasTokens(aliasTokens) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
13
|
+
for (const key in aliasTokens) {
|
|
14
|
+
for (const innerKey in aliasTokens[key]) {
|
|
15
|
+
const entry = aliasTokens[key][innerKey];
|
|
16
|
+
if (typeof entry === 'string' && entry.includes('PlatformColor')) {
|
|
17
|
+
const color = entry.substring(14, entry.length - 1);
|
|
18
|
+
// eslint-disable-next-line @react-native/platform-colors
|
|
19
|
+
aliasTokens[key][innerKey] = (0, react_native_1.PlatformColor)(color);
|
|
20
|
+
}
|
|
20
21
|
}
|
|
21
|
-
|
|
22
|
+
}
|
|
23
|
+
return aliasTokens;
|
|
22
24
|
}
|
|
23
|
-
//# sourceMappingURL=tokens-alias.js.map
|
|
25
|
+
//# sourceMappingURL=tokens-alias.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens-alias.js","sourceRoot":"","sources":["../../src/highContrast/tokens-alias.ts"],"names":[],"mappings":";;;;;;AAAA,+CAA6C;AAE7C,4HAA4F;AAE/E,QAAA,aAAa,GAAG,kBAAkB,CAAC,6BAAW,CAAC,CAAC;AAE7D,SAAS,kBAAkB,CAAC,WAAgB;
|
|
1
|
+
{"version":3,"file":"tokens-alias.js","sourceRoot":"","sources":["../../src/highContrast/tokens-alias.ts"],"names":[],"mappings":";;;;;;AAAA,+CAA6C;AAE7C,4HAA4F;AAE/E,QAAA,aAAa,GAAG,kBAAkB,CAAC,6BAAW,CAAC,CAAC;AAE7D,SAAS,kBAAkB,CAAC,WAAgB,EAAE;IAC5C,KAAK,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC;QAC9B,KAAK,MAAM,QAAQ,IAAI,WAAW,CAAC,GAAG,CAAC,EAAE,CAAC;YACxC,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC;YACzC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC;gBACjE,MAAM,KAAK,GAAG,KAAK,CAAC,SAAS,CAAC,EAAE,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;gBACpD,yDAAyD;gBACzD,WAAW,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,GAAG,IAAA,4BAAa,EAAC,KAAK,CAAC,CAAC;YACpD,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,WAAW,CAAC;AAAA,CACpB"}
|
package/lib-commonjs/index.d.ts
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
export { createOfficeTheme } from './createOfficeTheme';
|
|
2
2
|
export { createPartialOfficeTheme } from './createPartialOfficeTheme';
|
|
3
3
|
export { fallbackGetPalette, fallbackOfficeModule, getThemingModule } from './NativeModule/index';
|
|
4
|
-
export type {
|
|
4
|
+
export type {
|
|
5
|
+
CxxException,
|
|
6
|
+
IEventEmitter,
|
|
7
|
+
NativeColorNames,
|
|
8
|
+
NativeColorRamps,
|
|
9
|
+
OfficeThemingModule,
|
|
10
|
+
PlatformDefaultsChangedArgs,
|
|
11
|
+
PlatformDefaultsChangedCallback,
|
|
12
|
+
} from './NativeModule/index';
|
|
5
13
|
export { paletteFromOfficeColors } from './paletteFromOfficeColors';
|
|
6
14
|
export { createOfficeColorAliasTokens as createOfficeAliasTokens } from './createOfficeAliasTokens';
|
|
7
15
|
export { createFontAliasTokens } from './createFontAliasTokens';
|
|
8
16
|
export { createBrandedThemeWithAlias, getCurrentBrandAliasTokens } from './createBrandedThemeWithAlias';
|
|
9
17
|
export { win32Typography } from './getThemeTypography';
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
package/lib-commonjs/index.js
CHANGED
|
@@ -1,23 +1,89 @@
|
|
|
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
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
|
+
exports.win32Typography =
|
|
4
|
+
exports.getCurrentBrandAliasTokens =
|
|
5
|
+
exports.createBrandedThemeWithAlias =
|
|
6
|
+
exports.createFontAliasTokens =
|
|
7
|
+
exports.createOfficeAliasTokens =
|
|
8
|
+
exports.paletteFromOfficeColors =
|
|
9
|
+
exports.getThemingModule =
|
|
10
|
+
exports.fallbackOfficeModule =
|
|
11
|
+
exports.fallbackGetPalette =
|
|
12
|
+
exports.createPartialOfficeTheme =
|
|
13
|
+
exports.createOfficeTheme =
|
|
14
|
+
void 0;
|
|
15
|
+
const createOfficeTheme_1 = require('./createOfficeTheme');
|
|
16
|
+
Object.defineProperty(exports, 'createOfficeTheme', {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () {
|
|
19
|
+
return createOfficeTheme_1.createOfficeTheme;
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
const createPartialOfficeTheme_1 = require('./createPartialOfficeTheme');
|
|
23
|
+
Object.defineProperty(exports, 'createPartialOfficeTheme', {
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,2DAAwD;AAA/C,sHAAA,iBAAiB,OAAA;AAC1B,yEAAsE;AAA7D,oIAAA,wBAAwB,OAAA;AACjC,gDAAkG;AAAzF,2GAAA,kBAAkB,OAAA;AAAE,6GAAA,oBAAoB,OAAA;AAAE,yGAAA,gBAAgB,OAAA;AAUnE,uEAAoE;AAA3D,kIAAA,uBAAuB,OAAA;AAChC,uEAAoG;AAA3F,kIAAA,4BAA4B,OAA2B;AAChE,mEAAgE;AAAvD,8HAAA,qBAAqB,OAAA;AAC9B,+EAAwG;AAA/F,0IAAA,2BAA2B,OAAA;AAAE,yIAAA,0BAA0B,OAAA;AAChE,6DAAuD;AAA9C,qHAAA,eAAe,OAAA"}
|