@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.
Files changed (115) hide show
  1. package/CHANGELOG.json +1 -1
  2. package/CHANGELOG.md +44 -3
  3. package/lib/NativeModule/_mocks_/getThemingModule.native.d.ts +1 -1
  4. package/lib/NativeModule/_mocks_/getThemingModule.native.js +2 -2
  5. package/lib/NativeModule/_mocks_/getThemingModule.native.js.map +1 -1
  6. package/lib/NativeModule/fallbackOfficeModule.d.ts +1 -1
  7. package/lib/NativeModule/fallbackOfficeModule.js +163 -163
  8. package/lib/NativeModule/fallbackOfficeModule.js.map +1 -1
  9. package/lib/NativeModule/getThemingModule.d.ts +1 -1
  10. package/lib/NativeModule/getThemingModule.js +2 -2
  11. package/lib/NativeModule/getThemingModule.js.map +1 -1
  12. package/lib/NativeModule/getThemingModule.native.d.ts +1 -1
  13. package/lib/NativeModule/getThemingModule.native.js +28 -30
  14. package/lib/NativeModule/getThemingModule.native.js.map +1 -1
  15. package/lib/NativeModule/hostThemeSetting.d.ts +1 -1
  16. package/lib/NativeModule/hostThemeSetting.d.ts.map +1 -1
  17. package/lib/NativeModule/hostThemeSetting.js +3 -3
  18. package/lib/NativeModule/hostThemeSetting.js.map +1 -1
  19. package/lib/NativeModule/index.d.ts +10 -2
  20. package/lib/NativeModule/index.js +1 -1
  21. package/lib/NativeModule/officeThemingModule.d.ts +21 -21
  22. package/lib/NativeModule/officeThemingModule.js +1 -1
  23. package/lib/__tests__/win32-theme.test.d.ts +1 -1
  24. package/lib/__tests__/win32-theme.test.js +47 -47
  25. package/lib/__tests__/win32-theme.test.js.map +1 -1
  26. package/lib/createAliasesFromPalette.d.ts +1 -1
  27. package/lib/createAliasesFromPalette.js +56 -56
  28. package/lib/createAliasesFromPalette.js.map +1 -1
  29. package/lib/createBrandedThemeWithAlias.d.ts +1 -1
  30. package/lib/createBrandedThemeWithAlias.js +56 -61
  31. package/lib/createBrandedThemeWithAlias.js.map +1 -1
  32. package/lib/createFontAliasTokens.d.ts +1 -1
  33. package/lib/createFontAliasTokens.js +3 -3
  34. package/lib/createFontAliasTokens.js.map +1 -1
  35. package/lib/createOfficeAliasTokens.d.ts +1 -1
  36. package/lib/createOfficeAliasTokens.js +5 -5
  37. package/lib/createOfficeAliasTokens.js.map +1 -1
  38. package/lib/createOfficeTheme.d.ts +1 -1
  39. package/lib/createOfficeTheme.js +53 -46
  40. package/lib/createOfficeTheme.js.map +1 -1
  41. package/lib/createPartialOfficeTheme.d.ts +1 -1
  42. package/lib/createPartialOfficeTheme.js +22 -19
  43. package/lib/createPartialOfficeTheme.js.map +1 -1
  44. package/lib/getOfficeTokens.d.ts +229 -227
  45. package/lib/getOfficeTokens.js +20 -26
  46. package/lib/getOfficeTokens.js.map +1 -1
  47. package/lib/getThemeTypography.d.ts +1 -1
  48. package/lib/getThemeTypography.js +32 -32
  49. package/lib/getThemeTypography.js.map +1 -1
  50. package/lib/highContrast/tokens-alias.d.ts +1 -1
  51. package/lib/highContrast/tokens-alias.js +11 -11
  52. package/lib/highContrast/tokens-alias.js.map +1 -1
  53. package/lib/index.d.ts +10 -2
  54. package/lib/index.js +1 -1
  55. package/lib/paletteFromOfficeColors.d.ts +1 -1
  56. package/lib/paletteFromOfficeColors.js +114 -114
  57. package/lib/paletteFromOfficeColors.js.map +1 -1
  58. package/lib-commonjs/NativeModule/_mocks_/getThemingModule.native.d.ts +1 -1
  59. package/lib-commonjs/NativeModule/_mocks_/getThemingModule.native.js +6 -7
  60. package/lib-commonjs/NativeModule/_mocks_/getThemingModule.native.js.map +1 -1
  61. package/lib-commonjs/NativeModule/fallbackOfficeModule.d.ts +1 -1
  62. package/lib-commonjs/NativeModule/fallbackOfficeModule.js +167 -167
  63. package/lib-commonjs/NativeModule/fallbackOfficeModule.js.map +1 -1
  64. package/lib-commonjs/NativeModule/getThemingModule.d.ts +1 -1
  65. package/lib-commonjs/NativeModule/getThemingModule.js +6 -7
  66. package/lib-commonjs/NativeModule/getThemingModule.js.map +1 -1
  67. package/lib-commonjs/NativeModule/getThemingModule.native.d.ts +1 -1
  68. package/lib-commonjs/NativeModule/getThemingModule.native.js +34 -37
  69. package/lib-commonjs/NativeModule/getThemingModule.native.js.map +1 -1
  70. package/lib-commonjs/NativeModule/hostThemeSetting.d.ts +1 -1
  71. package/lib-commonjs/NativeModule/hostThemeSetting.d.ts.map +1 -1
  72. package/lib-commonjs/NativeModule/hostThemeSetting.js +5 -5
  73. package/lib-commonjs/NativeModule/hostThemeSetting.js.map +1 -1
  74. package/lib-commonjs/NativeModule/index.d.ts +10 -2
  75. package/lib-commonjs/NativeModule/index.js +23 -8
  76. package/lib-commonjs/NativeModule/index.js.map +1 -1
  77. package/lib-commonjs/NativeModule/officeThemingModule.d.ts +21 -21
  78. package/lib-commonjs/NativeModule/officeThemingModule.js +3 -3
  79. package/lib-commonjs/__tests__/win32-theme.test.d.ts +1 -1
  80. package/lib-commonjs/__tests__/win32-theme.test.js +57 -57
  81. package/lib-commonjs/__tests__/win32-theme.test.js.map +1 -1
  82. package/lib-commonjs/createAliasesFromPalette.d.ts +1 -1
  83. package/lib-commonjs/createAliasesFromPalette.js +59 -60
  84. package/lib-commonjs/createAliasesFromPalette.js.map +1 -1
  85. package/lib-commonjs/createBrandedThemeWithAlias.d.ts +1 -1
  86. package/lib-commonjs/createBrandedThemeWithAlias.js +61 -67
  87. package/lib-commonjs/createBrandedThemeWithAlias.js.map +1 -1
  88. package/lib-commonjs/createFontAliasTokens.d.ts +1 -1
  89. package/lib-commonjs/createFontAliasTokens.js +8 -8
  90. package/lib-commonjs/createFontAliasTokens.js.map +1 -1
  91. package/lib-commonjs/createOfficeAliasTokens.d.ts +1 -1
  92. package/lib-commonjs/createOfficeAliasTokens.js +10 -10
  93. package/lib-commonjs/createOfficeAliasTokens.js.map +1 -1
  94. package/lib-commonjs/createOfficeTheme.d.ts +1 -1
  95. package/lib-commonjs/createOfficeTheme.js +67 -59
  96. package/lib-commonjs/createOfficeTheme.js.map +1 -1
  97. package/lib-commonjs/createPartialOfficeTheme.d.ts +1 -1
  98. package/lib-commonjs/createPartialOfficeTheme.js +26 -24
  99. package/lib-commonjs/createPartialOfficeTheme.js.map +1 -1
  100. package/lib-commonjs/getOfficeTokens.d.ts +229 -227
  101. package/lib-commonjs/getOfficeTokens.js +37 -42
  102. package/lib-commonjs/getOfficeTokens.js.map +1 -1
  103. package/lib-commonjs/getThemeTypography.d.ts +1 -1
  104. package/lib-commonjs/getThemeTypography.js +37 -38
  105. package/lib-commonjs/getThemeTypography.js.map +1 -1
  106. package/lib-commonjs/highContrast/tokens-alias.d.ts +1 -1
  107. package/lib-commonjs/highContrast/tokens-alias.js +20 -18
  108. package/lib-commonjs/highContrast/tokens-alias.js.map +1 -1
  109. package/lib-commonjs/index.d.ts +10 -2
  110. package/lib-commonjs/index.js +89 -23
  111. package/lib-commonjs/index.js.map +1 -1
  112. package/lib-commonjs/paletteFromOfficeColors.d.ts +1 -1
  113. package/lib-commonjs/paletteFromOfficeColors.js +117 -118
  114. package/lib-commonjs/paletteFromOfficeColors.js.map +1 -1
  115. package/package.json +56 -56
@@ -1,47 +1,42 @@
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 });
6
- exports.getOfficeShadowTokens = exports.getOfficeAliasTokens = void 0;
7
- const tokens_aliases_json_1 = __importDefault(require("@fluentui-react-native/design-tokens-win32/black/tokens-aliases.json"));
8
- const tokens_shadow_json_1 = __importDefault(require("@fluentui-react-native/design-tokens-win32/black/tokens-shadow.json"));
9
- const tokens_aliases_json_2 = __importDefault(require("@fluentui-react-native/design-tokens-win32/colorful/tokens-aliases.json"));
10
- const tokens_shadow_json_2 = __importDefault(require("@fluentui-react-native/design-tokens-win32/colorful/tokens-shadow.json"));
11
- const tokens_aliases_json_3 = __importDefault(require("@fluentui-react-native/design-tokens-win32/darkgray/tokens-aliases.json"));
12
- const tokens_shadow_json_3 = __importDefault(require("@fluentui-react-native/design-tokens-win32/darkgray/tokens-shadow.json"));
13
- const tokens_shadow_json_4 = __importDefault(require("@fluentui-react-native/design-tokens-win32/hc/tokens-shadow.json"));
14
- const tokens_alias_1 = require("./highContrast/tokens-alias");
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
- if (officeTheme === 'White' || officeTheme === 'Colorful') {
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
- 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;
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
- exports.getOfficeShadowTokens = getOfficeShadowTokens;
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":";;;;;;AAAA,+HAAoG;AACpG,6HAAoG;AACpG,kIAA0G;AAC1G,gIAA0G;AAC1G,kIAA0G;AAC1G,gIAA0G;AAC1G,0HAA8F;AAE9F,8DAA4D;AAE5D,SAAgB,oBAAoB,CAAC,WAAmB;IACtD,IAAI,WAAW,KAAK,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I,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,3 +1,3 @@
1
1
  import type { Typography } from '@fluentui-react-native/theme-types';
2
2
  export declare function win32Typography(): Typography;
3
- //# sourceMappingURL=getThemeTypography.d.ts.map
3
+ //# sourceMappingURL=getThemeTypography.d.ts.map
@@ -1,40 +1,39 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.win32Typography = void 0;
4
- const default_theme_1 = require("@fluentui-react-native/default-theme");
5
- const createFontAliasTokens_1 = require("./createFontAliasTokens");
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
- 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;
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
- exports.win32Typography = win32Typography;
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,SAAgB,eAAe;IAC7B,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,IA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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
- "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 });
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("react-native");
8
- const tokens_aliases_json_1 = __importDefault(require("@fluentui-react-native/design-tokens-win32/hc/tokens-aliases.json"));
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
- 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
- }
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
- return aliasTokens;
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;IAC1C,KAAK,MAAM,GAAG,IAAI,WAAW,EAAE;QAC7B,KAAK,MAAM,QAAQ,IAAI,WAAW,CAAC,GAAG,CAAC,EAAE;YACvC,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;gBAChE,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;aACnD;SACF;KACF;IAED,OAAO,WAAW,CAAC;AACrB,CAAC"}
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"}
@@ -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 { CxxException, IEventEmitter, NativeColorNames, NativeColorRamps, OfficeThemingModule, PlatformDefaultsChangedArgs, PlatformDefaultsChangedCallback, } from './NativeModule/index';
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
@@ -1,23 +1,89 @@
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
- var createOfficeTheme_1 = require("./createOfficeTheme");
5
- Object.defineProperty(exports, "createOfficeTheme", { enumerable: true, get: function () { return createOfficeTheme_1.createOfficeTheme; } });
6
- var createPartialOfficeTheme_1 = require("./createPartialOfficeTheme");
7
- Object.defineProperty(exports, "createPartialOfficeTheme", { enumerable: true, get: function () { return createPartialOfficeTheme_1.createPartialOfficeTheme; } });
8
- var 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
- var paletteFromOfficeColors_1 = require("./paletteFromOfficeColors");
13
- Object.defineProperty(exports, "paletteFromOfficeColors", { enumerable: true, get: function () { return paletteFromOfficeColors_1.paletteFromOfficeColors; } });
14
- var createOfficeAliasTokens_1 = require("./createOfficeAliasTokens");
15
- Object.defineProperty(exports, "createOfficeAliasTokens", { enumerable: true, get: function () { return createOfficeAliasTokens_1.createOfficeColorAliasTokens; } });
16
- var createFontAliasTokens_1 = require("./createFontAliasTokens");
17
- Object.defineProperty(exports, "createFontAliasTokens", { enumerable: true, get: function () { return createFontAliasTokens_1.createFontAliasTokens; } });
18
- var 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
- var getThemeTypography_1 = require("./getThemeTypography");
22
- Object.defineProperty(exports, "win32Typography", { enumerable: true, get: function () { return getThemeTypography_1.win32Typography; } });
23
- //# sourceMappingURL=index.js.map
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,yDAAwD;AAA/C,sHAAA,iBAAiB,OAAA;AAC1B,uEAAsE;AAA7D,oIAAA,wBAAwB,OAAA;AACjC,8CAAkG;AAAzF,2GAAA,kBAAkB,OAAA;AAAE,6GAAA,oBAAoB,OAAA;AAAE,yGAAA,gBAAgB,OAAA;AAUnE,qEAAoE;AAA3D,kIAAA,uBAAuB,OAAA;AAChC,qEAAoG;AAA3F,kIAAA,4BAA4B,OAA2B;AAChE,iEAAgE;AAAvD,8HAAA,qBAAqB,OAAA;AAC9B,6EAAwG;AAA/F,0IAAA,2BAA2B,OAAA;AAAE,yIAAA,0BAA0B,OAAA;AAChE,2DAAuD;AAA9C,qHAAA,eAAe,OAAA"}
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"}
@@ -1,3 +1,3 @@
1
1
  import type { Palette, OfficePalette } from '@fluentui-react-native/theme-types';
2
2
  export declare function paletteFromOfficeColors(p: OfficePalette): Palette;
3
- //# sourceMappingURL=paletteFromOfficeColors.d.ts.map
3
+ //# sourceMappingURL=paletteFromOfficeColors.d.ts.map