@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
@@ -2,37 +2,37 @@ import type { NativeModule, ColorValue } from 'react-native';
2
2
  import type { OfficePalette, Typography } from '@fluentui-react-native/theme-types';
3
3
  type ObjectBase = {};
4
4
  export type PlatformDefaultsChangedArgs = {
5
- hostThemeSetting: string;
5
+ hostThemeSetting: string;
6
6
  };
7
7
  export type PlatformDefaultsChangedCallback = (args?: PlatformDefaultsChangedArgs) => void;
8
8
  export interface CxxException {
9
- message: string;
9
+ message: string;
10
10
  }
11
11
  export interface NativeColorRamps {
12
- FluentGrays: ColorValue[];
13
- ClassicGrays: ColorValue[];
14
- App: ColorValue[];
15
- Sepias: ColorValue[];
16
- [key: string]: ColorValue[];
12
+ FluentGrays: ColorValue[];
13
+ ClassicGrays: ColorValue[];
14
+ App: ColorValue[];
15
+ Sepias: ColorValue[];
16
+ [key: string]: ColorValue[];
17
17
  }
18
18
  export interface NativeColorNames {
19
- FluentGrays: string[];
20
- ClassicGrays: string[];
21
- App: string[];
22
- Sepias: string[];
19
+ FluentGrays: string[];
20
+ ClassicGrays: string[];
21
+ App: string[];
22
+ Sepias: string[];
23
23
  }
24
24
  export interface OfficeThemingModule extends NativeModule {
25
- getPalette(palette?: string): OfficePalette | CxxException;
26
- getConstants(): {
27
- typography: ObjectBase;
28
- fluentTypography: Typography;
29
- ramps: NativeColorRamps;
30
- rampNames: NativeColorNames;
31
- initialHostThemeSetting?: string;
32
- };
25
+ getPalette(palette?: string): OfficePalette | CxxException;
26
+ getConstants(): {
27
+ typography: ObjectBase;
28
+ fluentTypography: Typography;
29
+ ramps: NativeColorRamps;
30
+ rampNames: NativeColorNames;
31
+ initialHostThemeSetting?: string;
32
+ };
33
33
  }
34
34
  export interface IEventEmitter {
35
- addListener: (event: string, PlatformDefaultsChangedCallback: any) => void;
35
+ addListener: (event: string, PlatformDefaultsChangedCallback: any) => void;
36
36
  }
37
37
  export {};
38
- //# sourceMappingURL=officeThemingModule.d.ts.map
38
+ //# sourceMappingURL=officeThemingModule.d.ts.map
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=officeThemingModule.js.map
1
+ 'use strict';
2
+ Object.defineProperty(exports, '__esModule', { value: true });
3
+ //# sourceMappingURL=officeThemingModule.js.map
@@ -1,2 +1,2 @@
1
1
  export {};
2
- //# sourceMappingURL=win32-theme.test.d.ts.map
2
+ //# sourceMappingURL=win32-theme.test.d.ts.map
@@ -1,81 +1,81 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const createBrandedThemeWithAlias_1 = require("../createBrandedThemeWithAlias");
4
- const createFontAliasTokens_1 = require("../createFontAliasTokens");
5
- const createOfficeAliasTokens_1 = require("../createOfficeAliasTokens");
6
- const createOfficeTheme_1 = require("../createOfficeTheme");
7
- const createPartialOfficeTheme_1 = require("../createPartialOfficeTheme");
8
- const getThemeTypography_1 = require("../getThemeTypography");
9
- const hostThemeSetting_1 = require("../NativeModule/hostThemeSetting");
10
- const index_1 = require("../NativeModule/index");
1
+ 'use strict';
2
+ Object.defineProperty(exports, '__esModule', { value: true });
3
+ const createBrandedThemeWithAlias_1 = require('../createBrandedThemeWithAlias');
4
+ const createFontAliasTokens_1 = require('../createFontAliasTokens');
5
+ const createOfficeAliasTokens_1 = require('../createOfficeAliasTokens');
6
+ const createOfficeTheme_1 = require('../createOfficeTheme');
7
+ const createPartialOfficeTheme_1 = require('../createPartialOfficeTheme');
8
+ const getThemeTypography_1 = require('../getThemeTypography');
9
+ const hostThemeSetting_1 = require('../NativeModule/hostThemeSetting');
10
+ const index_1 = require('../NativeModule/index');
11
11
  const officeThemes = ['White', 'Colorful', 'DarkGray', 'Black', 'HighContrast'];
12
12
  const appPrimaries = ['#185abd', '#107c41', '#d83b01', '#80397b', '#0078d4', '#c43e1c'];
13
13
  it('win32Typography test', () => {
14
- expect(getThemeTypography_1.win32Typography).toMatchSnapshot();
14
+ expect(getThemeTypography_1.win32Typography).toMatchSnapshot();
15
15
  });
16
16
  it('fallbackOfficeModule test', () => {
17
- expect(index_1.fallbackOfficeModule).toMatchSnapshot();
18
- expect(index_1.fallbackOfficeModule.getConstants()).toMatchSnapshot();
17
+ expect(index_1.fallbackOfficeModule).toMatchSnapshot();
18
+ expect(index_1.fallbackOfficeModule.getConstants()).toMatchSnapshot();
19
19
  });
20
20
  it('getThemingModule test', () => {
21
- const themingModule = (0, index_1.getThemingModule)();
22
- expect(themingModule).toMatchSnapshot();
23
- expect(themingModule[0].getConstants()).toMatchSnapshot();
21
+ const themingModule = (0, index_1.getThemingModule)();
22
+ expect(themingModule).toMatchSnapshot();
23
+ expect(themingModule[0].getConstants()).toMatchSnapshot();
24
24
  });
25
25
  it('createPartialOfficeTheme test', () => {
26
- const themingModule = (0, index_1.getThemingModule)();
27
- const partialOfficeTheme = (0, createPartialOfficeTheme_1.createPartialOfficeTheme)(themingModule[0]);
28
- expect(partialOfficeTheme).toMatchSnapshot;
26
+ const themingModule = (0, index_1.getThemingModule)();
27
+ const partialOfficeTheme = (0, createPartialOfficeTheme_1.createPartialOfficeTheme)(themingModule[0]);
28
+ expect(partialOfficeTheme).toMatchSnapshot;
29
29
  });
30
30
  it('createFontAliasTokens test', () => {
31
- const fontAliasToken = (0, createFontAliasTokens_1.createFontAliasTokens)();
32
- expect(fontAliasToken).toMatchSnapshot();
31
+ const fontAliasToken = (0, createFontAliasTokens_1.createFontAliasTokens)();
32
+ expect(fontAliasToken).toMatchSnapshot();
33
33
  });
34
34
  it('createOfficeTheme test', () => {
35
- const officeTheme = (0, createOfficeTheme_1.createOfficeTheme)({ paletteName: 'TaskPane', appearance: 'light' }).theme;
36
- expect(officeTheme).toMatchSnapshot();
35
+ const officeTheme = (0, createOfficeTheme_1.createOfficeTheme)({ paletteName: 'TaskPane', appearance: 'light' }).theme;
36
+ expect(officeTheme).toMatchSnapshot();
37
37
  });
38
38
  it.concurrent.each(officeThemes)('createBrandedThemeWithAlias test themeName: %s', async (themeName) => {
39
- (0, hostThemeSetting_1.setCurrentHostThemeSetting)('Colorful');
40
- const officeTheme = (0, createOfficeTheme_1.createOfficeTheme)({ paletteName: 'TaskPane', appearance: 'light' }).theme;
41
- const brandedTheme = (0, createBrandedThemeWithAlias_1.createBrandedThemeWithAlias)(themeName, officeTheme);
42
- expect(brandedTheme).toMatchSnapshot();
39
+ (0, hostThemeSetting_1.setCurrentHostThemeSetting)('Colorful');
40
+ const officeTheme = (0, createOfficeTheme_1.createOfficeTheme)({ paletteName: 'TaskPane', appearance: 'light' }).theme;
41
+ const brandedTheme = (0, createBrandedThemeWithAlias_1.createBrandedThemeWithAlias)(themeName, officeTheme);
42
+ expect(brandedTheme).toMatchSnapshot();
43
43
  });
44
44
  it.concurrent.each(officeThemes)('createOfficeColorAliasTokens test officeTheme: %s', async (themeName) => {
45
- const colorAliasToken = (0, createOfficeAliasTokens_1.createOfficeColorAliasTokens)(themeName);
46
- expect(colorAliasToken).toMatchSnapshot();
45
+ const colorAliasToken = (0, createOfficeAliasTokens_1.createOfficeColorAliasTokens)(themeName);
46
+ expect(colorAliasToken).toMatchSnapshot();
47
47
  });
48
48
  it.concurrent.each(officeThemes)('createOfficeShadowAliasTokens test officeTheme: %s', async (themeName) => {
49
- const shadowAliasToken = (0, createOfficeAliasTokens_1.createOfficeShadowAliasTokens)(themeName);
50
- expect(shadowAliasToken).toMatchSnapshot();
49
+ const shadowAliasToken = (0, createOfficeAliasTokens_1.createOfficeShadowAliasTokens)(themeName);
50
+ expect(shadowAliasToken).toMatchSnapshot();
51
51
  });
52
52
  describe('fallbackGetPalette test', () => {
53
- it('TaskPane palette', () => {
54
- const fallbackPalette = (0, index_1.fallbackGetPalette)('TaskPane');
55
- expect(fallbackPalette).toMatchSnapshot();
56
- });
57
- it('Random palette', () => {
58
- /**
59
- * RedColors is just a random pallette, we're just testing to see what happens
60
- * if we use anything other than the TaskPane palette.
61
- * */
62
- const fallbackPalette = (0, index_1.fallbackGetPalette)('RedColors');
63
- expect(fallbackPalette).toMatchSnapshot();
64
- });
53
+ it('TaskPane palette', () => {
54
+ const fallbackPalette = (0, index_1.fallbackGetPalette)('TaskPane');
55
+ expect(fallbackPalette).toMatchSnapshot();
56
+ });
57
+ it('Random palette', () => {
58
+ /**
59
+ * RedColors is just a random pallette, we're just testing to see what happens
60
+ * if we use anything other than the TaskPane palette.
61
+ * */
62
+ const fallbackPalette = (0, index_1.fallbackGetPalette)('RedColors');
63
+ expect(fallbackPalette).toMatchSnapshot();
64
+ });
65
65
  });
66
66
  describe('getCurrentBrandAliasTokens test', () => {
67
- it.concurrent.each(appPrimaries)('themeName: White, appPrimary: %s', async (appPrimary) => {
68
- const brandAliasTokens = (0, createBrandedThemeWithAlias_1.getCurrentBrandAliasTokens)('White', appPrimary);
69
- expect(brandAliasTokens).toMatchSnapshot();
70
- });
71
- it.concurrent.each(appPrimaries)('themeName: Colorful, appPrimary: %s', async (appPrimary) => {
72
- const brandAliasTokens = (0, createBrandedThemeWithAlias_1.getCurrentBrandAliasTokens)('Colorful', appPrimary);
73
- expect(brandAliasTokens).toMatchSnapshot();
74
- });
75
- // Tests the variation of the alias tokens for when isWhiteOrColorfulTheme is not true
76
- it.concurrent.each(appPrimaries)('themeName: null, appPrimary: %s', async (appPrimary) => {
77
- const brandAliasTokens = (0, createBrandedThemeWithAlias_1.getCurrentBrandAliasTokens)(null, appPrimary);
78
- expect(brandAliasTokens).toMatchSnapshot();
79
- });
67
+ it.concurrent.each(appPrimaries)('themeName: White, appPrimary: %s', async (appPrimary) => {
68
+ const brandAliasTokens = (0, createBrandedThemeWithAlias_1.getCurrentBrandAliasTokens)('White', appPrimary);
69
+ expect(brandAliasTokens).toMatchSnapshot();
70
+ });
71
+ it.concurrent.each(appPrimaries)('themeName: Colorful, appPrimary: %s', async (appPrimary) => {
72
+ const brandAliasTokens = (0, createBrandedThemeWithAlias_1.getCurrentBrandAliasTokens)('Colorful', appPrimary);
73
+ expect(brandAliasTokens).toMatchSnapshot();
74
+ });
75
+ // Tests the variation of the alias tokens for when isWhiteOrColorfulTheme is not true
76
+ it.concurrent.each(appPrimaries)('themeName: null, appPrimary: %s', async (appPrimary) => {
77
+ const brandAliasTokens = (0, createBrandedThemeWithAlias_1.getCurrentBrandAliasTokens)(null, appPrimary);
78
+ expect(brandAliasTokens).toMatchSnapshot();
79
+ });
80
80
  });
81
- //# sourceMappingURL=win32-theme.test.js.map
81
+ //# sourceMappingURL=win32-theme.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"win32-theme.test.js","sourceRoot":"","sources":["../../src/__tests__/win32-theme.test.ts"],"names":[],"mappings":";;AAAA,gFAAyG;AACzG,oEAAiE;AACjE,wEAAyG;AACzG,4DAAyD;AACzD,0EAAuE;AACvE,8DAAwD;AACxD,uEAA8E;AAC9E,iDAAmG;AAEnG,MAAM,YAAY,GAAG,CAAC,OAAO,EAAE,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AAE,CAAC;IAAA,CAC5C,CAAC,CAAC;IAEH,sFAAsF;IACtF,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,iCAAiC,EAAE,KAAK,EAAE,UAAkB,EAAE,EAAE,CAAC;QAChG,MAAM,gBAAgB,GAAG,IAAA,wDAA0B,EAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QACtE,MAAM,CAAC,gBAAgB,CAAC,CAAC,eAAe,EAAE,CAAC;IAAA,CAC5C,CAAC,CAAC;AAAA,CACJ,CAAC,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { AliasColorTokens, OfficePalette } from '@fluentui-react-native/theme-types';
2
2
  export declare function createAliasesFromPalette(palette: OfficePalette, isHighContrast: boolean): Partial<AliasColorTokens>;
3
- //# sourceMappingURL=createAliasesFromPalette.d.ts.map
3
+ //# sourceMappingURL=createAliasesFromPalette.d.ts.map
@@ -1,62 +1,61 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createAliasesFromPalette = void 0;
1
+ 'use strict';
2
+ Object.defineProperty(exports, '__esModule', { value: true });
3
+ exports.createAliasesFromPalette = createAliasesFromPalette;
4
4
  function createAliasesFromPalette(palette, isHighContrast) {
5
- // Workaround for getting checkmark to have correct color in HC
6
- // while native code doesn't support PlatformColor
7
- if (isHighContrast) {
8
- return {};
9
- }
10
- return {
11
- neutralForeground1: palette.Text,
12
- neutralForeground1Hover: palette.TextHover,
13
- neutralForeground1Pressed: palette.TextPressed,
14
- neutralForeground1Selected: palette.TextSelected,
15
- neutralForeground2: palette.TextSecondary,
16
- neutralForeground2Hover: palette.TextSecondaryHover,
17
- neutralForeground2Pressed: palette.TextSecondaryPressed,
18
- neutralForeground2Selected: palette.TextSecondarySelected,
19
- neutralForeground4: palette.TextTextBoxPlaceholder,
20
- neutralForegroundDisabled: palette.TextDisabled,
21
- compoundBrandForeground1: palette.TextEmphasis,
22
- compoundBrandForeground1Hover: palette.TextEmphasisHover,
23
- compoundBrandForeground1Pressed: palette.TextEmphasisPressed,
24
- neutralForegroundOnBrand: palette.TextCtlEmphasis,
25
- neutralForegroundOnBrandHover: palette.TextCtlEmphasisHover,
26
- neutralForegroundOnBrandPressed: palette.TextCtlEmphasisPressed,
27
- neutralForegroundInvertedLink: palette.BkgToggleSwitchOff,
28
- neutralForegroundInvertedLinkHover: palette.BkgToggleSwitchOffHover,
29
- neutralForegroundInvertedLinkPressed: palette.BkgToggleSwitchOffPressed,
30
- neutralBackground1: palette.Bkg,
31
- neutralBackground1Hover: palette.BkgHover,
32
- neutralBackground1Pressed: palette.BkgPressed,
33
- neutralBackground1Selected: palette.BkgSelected,
34
- neutralBackground2: palette.BkgHeader,
35
- neutralBackground2Hover: palette.BkgSubtle,
36
- neutralBackground3: palette.BkgSubtle,
37
- neutralBackgroundInverted: palette.BkgSelectionHighlight,
38
- neutralBackgroundDisabled: palette.BkgCtlDisabled,
39
- neutralStencil1: palette.SliderBuffer,
40
- brandBackground: palette.BkgCtlEmphasis,
41
- brandBackgroundHover: palette.BkgCtlEmphasisHover,
42
- brandBackgroundPressed: palette.BkgCtlEmphasisPressed,
43
- compoundBrandBackground1: palette.BkgToggleSwitchOn,
44
- compoundBrandBackground1Hover: palette.BkgToggleSwitchOnHover,
45
- compoundBrandBackground1Pressed: palette.BkgToggleSwitchOnPressed,
46
- neutralStrokeAccessible: palette.StrokeOnlySelected,
47
- neutralStrokeAccessibleHover: palette.StrokeOnlyHover,
48
- neutralStrokeAccessiblePressed: palette.StrokeOnlyPressed,
49
- neutralStroke1: palette.StrokeCtl,
50
- neutralStroke1Hover: palette.StrokeSelectedHover,
51
- neutralStroke1Pressed: palette.StrokeOverPressed,
52
- neutralStroke2: palette.SliderBuffer,
53
- brandStroke1: palette.AccentEmphasis,
54
- compoundBrandStroke1: palette.StrokeToggleSwitchOn,
55
- compoundBrandStroke1Hover: palette.StrokeToggleSwitchOnHover,
56
- compoundBrandStroke1Pressed: palette.StrokeToggleSwitchOnPressed,
57
- neutralStrokeDisabled: palette.StrokeCtlDisabled,
58
- strokeFocus2: palette.StrokeKeyboard,
59
- };
5
+ // Workaround for getting checkmark to have correct color in HC
6
+ // while native code doesn't support PlatformColor
7
+ if (isHighContrast) {
8
+ return {};
9
+ }
10
+ return {
11
+ neutralForeground1: palette.Text,
12
+ neutralForeground1Hover: palette.TextHover,
13
+ neutralForeground1Pressed: palette.TextPressed,
14
+ neutralForeground1Selected: palette.TextSelected,
15
+ neutralForeground2: palette.TextSecondary,
16
+ neutralForeground2Hover: palette.TextSecondaryHover,
17
+ neutralForeground2Pressed: palette.TextSecondaryPressed,
18
+ neutralForeground2Selected: palette.TextSecondarySelected,
19
+ neutralForeground4: palette.TextTextBoxPlaceholder,
20
+ neutralForegroundDisabled: palette.TextDisabled,
21
+ compoundBrandForeground1: palette.TextEmphasis,
22
+ compoundBrandForeground1Hover: palette.TextEmphasisHover,
23
+ compoundBrandForeground1Pressed: palette.TextEmphasisPressed,
24
+ neutralForegroundOnBrand: palette.TextCtlEmphasis,
25
+ neutralForegroundOnBrandHover: palette.TextCtlEmphasisHover,
26
+ neutralForegroundOnBrandPressed: palette.TextCtlEmphasisPressed,
27
+ neutralForegroundInvertedLink: palette.BkgToggleSwitchOff,
28
+ neutralForegroundInvertedLinkHover: palette.BkgToggleSwitchOffHover,
29
+ neutralForegroundInvertedLinkPressed: palette.BkgToggleSwitchOffPressed,
30
+ neutralBackground1: palette.Bkg,
31
+ neutralBackground1Hover: palette.BkgHover,
32
+ neutralBackground1Pressed: palette.BkgPressed,
33
+ neutralBackground1Selected: palette.BkgSelected,
34
+ neutralBackground2: palette.BkgHeader,
35
+ neutralBackground2Hover: palette.BkgSubtle,
36
+ neutralBackground3: palette.BkgSubtle,
37
+ neutralBackgroundInverted: palette.BkgSelectionHighlight,
38
+ neutralBackgroundDisabled: palette.BkgCtlDisabled,
39
+ neutralStencil1: palette.SliderBuffer,
40
+ brandBackground: palette.BkgCtlEmphasis,
41
+ brandBackgroundHover: palette.BkgCtlEmphasisHover,
42
+ brandBackgroundPressed: palette.BkgCtlEmphasisPressed,
43
+ compoundBrandBackground1: palette.BkgToggleSwitchOn,
44
+ compoundBrandBackground1Hover: palette.BkgToggleSwitchOnHover,
45
+ compoundBrandBackground1Pressed: palette.BkgToggleSwitchOnPressed,
46
+ neutralStrokeAccessible: palette.StrokeOnlySelected,
47
+ neutralStrokeAccessibleHover: palette.StrokeOnlyHover,
48
+ neutralStrokeAccessiblePressed: palette.StrokeOnlyPressed,
49
+ neutralStroke1: palette.StrokeCtl,
50
+ neutralStroke1Hover: palette.StrokeSelectedHover,
51
+ neutralStroke1Pressed: palette.StrokeOverPressed,
52
+ neutralStroke2: palette.SliderBuffer,
53
+ brandStroke1: palette.AccentEmphasis,
54
+ compoundBrandStroke1: palette.StrokeToggleSwitchOn,
55
+ compoundBrandStroke1Hover: palette.StrokeToggleSwitchOnHover,
56
+ compoundBrandStroke1Pressed: palette.StrokeToggleSwitchOnPressed,
57
+ neutralStrokeDisabled: palette.StrokeCtlDisabled,
58
+ strokeFocus2: palette.StrokeKeyboard,
59
+ };
60
60
  }
61
- exports.createAliasesFromPalette = createAliasesFromPalette;
62
- //# sourceMappingURL=createAliasesFromPalette.js.map
61
+ //# sourceMappingURL=createAliasesFromPalette.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"createAliasesFromPalette.js","sourceRoot":"","sources":["../src/createAliasesFromPalette.ts"],"names":[],"mappings":";;;AAEA,SAAgB,wBAAwB,CAAC,OAAsB,EAAE,cAAuB;IACtF,+DAA+D;IAC/D,kDAAkD;IAClD,IAAI,cAAc,EAAE;QAClB,OAAO,EAAE,CAAC;KACX;IAED,OAAO;QACL,kBAAkB,EAAE,OAAO,CAAC,IAAI;QAChC,uBAAuB,EAAE,OAAO,CAAC,SAAS;QAC1C,yBAAyB,EAAE,OAAO,CAAC,WAAW;QAC9C,0BAA0B,EAAE,OAAO,CAAC,YAAY;QAChD,kBAAkB,EAAE,OAAO,CAAC,aA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AO,CAAC,cAAc;QACpC,oBAAoB,EAAE,OAAO,CAAC,oBAAoB;QAClD,yBAAyB,EAAE,OAAO,CAAC,yBAAyB;QAC5D,2BAA2B,EAAE,OAAO,CAAC,2BAA2B;QAChE,qBAAqB,EAAE,OAAO,CAAC,iBAAiB;QAEhD,YAAY,EAAE,OAAO,CAAC,cAAc;KACrC,CAAC;AAAA,CACH"}
@@ -2,4 +2,4 @@ import type { ColorValue } from 'react-native';
2
2
  import type { Theme, PartialTheme, AliasColorTokens } from '@fluentui-react-native/theme-types';
3
3
  export declare function createBrandedThemeWithAlias(themeName: string, theme: Theme): PartialTheme;
4
4
  export declare function getCurrentBrandAliasTokens(themeName: string, appPrimary: ColorValue): Partial<AliasColorTokens>;
5
- //# sourceMappingURL=createBrandedThemeWithAlias.d.ts.map
5
+ //# sourceMappingURL=createBrandedThemeWithAlias.d.ts.map
@@ -1,74 +1,68 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getCurrentBrandAliasTokens = exports.createBrandedThemeWithAlias = void 0;
4
- const theme_tokens_1 = require("@fluentui-react-native/theme-tokens");
1
+ 'use strict';
2
+ Object.defineProperty(exports, '__esModule', { value: true });
3
+ exports.createBrandedThemeWithAlias = createBrandedThemeWithAlias;
4
+ exports.getCurrentBrandAliasTokens = getCurrentBrandAliasTokens;
5
+ const theme_tokens_1 = require('@fluentui-react-native/theme-tokens');
5
6
  function createBrandedThemeWithAlias(themeName, theme) {
6
- if (themeName === 'HighContrast' || !theme.host.colors) {
7
- return {};
8
- }
9
- return {
10
- colors: getCurrentBrandAliasTokens(themeName, theme.host.colors.AppPrimary),
11
- };
7
+ if (themeName === 'HighContrast' || !theme.host.colors) {
8
+ return {};
9
+ }
10
+ return {
11
+ colors: getCurrentBrandAliasTokens(themeName, theme.host.colors.AppPrimary),
12
+ };
12
13
  }
13
- exports.createBrandedThemeWithAlias = createBrandedThemeWithAlias;
14
14
  function getCurrentBrandAliasTokens(themeName, appPrimary) {
15
- const appColors = getAppColors(appPrimary);
16
- const isWhiteOrColorfulTheme = themeName === 'White' || themeName === 'Colorful';
17
- return {
18
- neutralForeground2BrandHover: isWhiteOrColorfulTheme ? appColors.shade10 : appColors.tint40,
19
- neutralForeground2BrandPressed: isWhiteOrColorfulTheme ? appColors.shade30 : appColors.tint10,
20
- neutralForeground2BrandSelected: isWhiteOrColorfulTheme ? appColors.shade20 : appColors.tint40,
21
- neutralForeground3BrandHover: isWhiteOrColorfulTheme ? appColors.shade10 : appColors.tint40,
22
- neutralForeground3BrandPressed: isWhiteOrColorfulTheme ? appColors.shade30 : appColors.tint10,
23
- neutralForeground3BrandSelected: isWhiteOrColorfulTheme ? appColors.shade20 : appColors.tint40,
24
- brandForegroundLink: isWhiteOrColorfulTheme ? appColors.primary : appColors.tint30,
25
- brandForegroundLinkHover: isWhiteOrColorfulTheme ? appColors.shade10 : appColors.tint40,
26
- brandForegroundLinkPressed: isWhiteOrColorfulTheme ? appColors.shade30 : appColors.tint10,
27
- brandForegroundLinkSelected: isWhiteOrColorfulTheme ? appColors.shade20 : appColors.tint40,
28
- compoundBrandForeground1: isWhiteOrColorfulTheme ? appColors.primary : appColors.tint30,
29
- compoundBrandForeground1Hover: isWhiteOrColorfulTheme ? appColors.shade10 : appColors.tint40,
30
- compoundBrandForeground1Pressed: isWhiteOrColorfulTheme ? appColors.shade30 : appColors.tint10,
31
- brandForeground1: isWhiteOrColorfulTheme ? appColors.primary : appColors.tint30,
32
- brandForeground2: isWhiteOrColorfulTheme ? appColors.shade10 : appColors.tint40,
33
- brandBackground: appColors.primary,
34
- brandBackgroundHover: appColors.shade10,
35
- brandBackgroundPressed: appColors.shade30,
36
- brandBackgroundSelected: appColors.shade20,
37
- compoundBrandBackground1: appColors.primary,
38
- compoundBrandBackground1Hover: appColors.shade10,
39
- compoundBrandBackground1Pressed: appColors.shade20,
40
- brandBackgroundStatic: appColors.primary,
41
- brandBackground2: appColors.tint40,
42
- neutralStrokeAccessibleSelected: appColors.primary,
43
- brandStroke1: appColors.primary,
44
- brandStroke2: appColors.tint40,
45
- compoundBrandStroke1: appColors.primary,
46
- compoundBrandStroke1Hover: appColors.shade10,
47
- compoundBrandStroke1Pressed: appColors.shade20,
48
- };
15
+ const appColors = getAppColors(appPrimary);
16
+ const isWhiteOrColorfulTheme = themeName === 'White' || themeName === 'Colorful';
17
+ return {
18
+ neutralForeground2BrandHover: isWhiteOrColorfulTheme ? appColors.shade10 : appColors.tint40,
19
+ neutralForeground2BrandPressed: isWhiteOrColorfulTheme ? appColors.shade30 : appColors.tint10,
20
+ neutralForeground2BrandSelected: isWhiteOrColorfulTheme ? appColors.shade20 : appColors.tint40,
21
+ neutralForeground3BrandHover: isWhiteOrColorfulTheme ? appColors.shade10 : appColors.tint40,
22
+ neutralForeground3BrandPressed: isWhiteOrColorfulTheme ? appColors.shade30 : appColors.tint10,
23
+ neutralForeground3BrandSelected: isWhiteOrColorfulTheme ? appColors.shade20 : appColors.tint40,
24
+ brandForegroundLink: isWhiteOrColorfulTheme ? appColors.primary : appColors.tint30,
25
+ brandForegroundLinkHover: isWhiteOrColorfulTheme ? appColors.shade10 : appColors.tint40,
26
+ brandForegroundLinkPressed: isWhiteOrColorfulTheme ? appColors.shade30 : appColors.tint10,
27
+ brandForegroundLinkSelected: isWhiteOrColorfulTheme ? appColors.shade20 : appColors.tint40,
28
+ compoundBrandForeground1: isWhiteOrColorfulTheme ? appColors.primary : appColors.tint30,
29
+ compoundBrandForeground1Hover: isWhiteOrColorfulTheme ? appColors.shade10 : appColors.tint40,
30
+ compoundBrandForeground1Pressed: isWhiteOrColorfulTheme ? appColors.shade30 : appColors.tint10,
31
+ brandForeground1: isWhiteOrColorfulTheme ? appColors.primary : appColors.tint30,
32
+ brandForeground2: isWhiteOrColorfulTheme ? appColors.shade10 : appColors.tint40,
33
+ brandBackground: appColors.primary,
34
+ brandBackgroundHover: appColors.shade10,
35
+ brandBackgroundPressed: appColors.shade30,
36
+ brandBackgroundSelected: appColors.shade20,
37
+ compoundBrandBackground1: appColors.primary,
38
+ compoundBrandBackground1Hover: appColors.shade10,
39
+ compoundBrandBackground1Pressed: appColors.shade20,
40
+ brandBackgroundStatic: appColors.primary,
41
+ brandBackground2: appColors.tint40,
42
+ neutralStrokeAccessibleSelected: appColors.primary,
43
+ brandStroke1: appColors.primary,
44
+ brandStroke2: appColors.tint40,
45
+ compoundBrandStroke1: appColors.primary,
46
+ compoundBrandStroke1Hover: appColors.shade10,
47
+ compoundBrandStroke1Pressed: appColors.shade20,
48
+ };
49
49
  }
50
- exports.getCurrentBrandAliasTokens = getCurrentBrandAliasTokens;
51
50
  function getAppColors(primaryColor) {
52
- if (typeof primaryColor === 'string') {
53
- if (primaryColor.toLowerCase() === '#185abd') {
54
- return theme_tokens_1.globalTokens.color.word;
55
- }
56
- else if (primaryColor.toLowerCase() === '#107c41') {
57
- return theme_tokens_1.globalTokens.color.excel;
58
- }
59
- else if (primaryColor.toLowerCase() === '#d83b01') {
60
- return theme_tokens_1.globalTokens.color.office;
61
- }
62
- else if (primaryColor.toLowerCase() === '#80397b' || primaryColor.toLowerCase() === '#7719aa') {
63
- return theme_tokens_1.globalTokens.color.oneNote;
64
- }
65
- else if (primaryColor.toLowerCase() === '#0078d4') {
66
- return theme_tokens_1.globalTokens.color.outlook;
67
- }
68
- else if (primaryColor.toLowerCase() === '#c43e1c') {
69
- return theme_tokens_1.globalTokens.color.powerPoint;
70
- }
51
+ if (typeof primaryColor === 'string') {
52
+ if (primaryColor.toLowerCase() === '#185abd') {
53
+ return theme_tokens_1.globalTokens.color.word;
54
+ } else if (primaryColor.toLowerCase() === '#107c41') {
55
+ return theme_tokens_1.globalTokens.color.excel;
56
+ } else if (primaryColor.toLowerCase() === '#d83b01') {
57
+ return theme_tokens_1.globalTokens.color.office;
58
+ } else if (primaryColor.toLowerCase() === '#80397b' || primaryColor.toLowerCase() === '#7719aa') {
59
+ return theme_tokens_1.globalTokens.color.oneNote;
60
+ } else if (primaryColor.toLowerCase() === '#0078d4') {
61
+ return theme_tokens_1.globalTokens.color.outlook;
62
+ } else if (primaryColor.toLowerCase() === '#c43e1c') {
63
+ return theme_tokens_1.globalTokens.color.powerPoint;
71
64
  }
72
- return theme_tokens_1.globalTokens.color.brand;
65
+ }
66
+ return theme_tokens_1.globalTokens.color.brand;
73
67
  }
74
- //# sourceMappingURL=createBrandedThemeWithAlias.js.map
68
+ //# sourceMappingURL=createBrandedThemeWithAlias.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"createBrandedThemeWithAlias.js","sourceRoot":"","sources":["../src/createBrandedThemeWithAlias.ts"],"names":[],"mappings":";;;AAEA,sEAAmE;AAGnE,SAAgB,2BAA2B,CAAC,SAAiB,EAAE,KAAY;IACzE,IAAI,SAAS,KAAK,cAAc,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE;QACtD,OAAO,EAAE,CAAC;KACX;IAED,OAAO;QACL,MAAM,EAAE,0BAA0B,CAAC,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC;KAC5E,CAAC;AACJ,CAAC;AARD,kEAQC;AAED,SAAgB,0BAA0B,CAAC,SAAiB,EAAE,UAAsB;IAClF,MAAM,SAAS,GAAG,YAAY,CAAC,UAAU,CAAC,CAAC;IAC3C,MAAM,sBAAsB,GAAG,SAAS,KAAK,OAAO,IAAI,SAAS,KAAK,UAAU,CAAC;IAEjF,OAAO;QACL,4BAA4B,EAAE,sBAAsB,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM;QAC3F,8BAA8B,EAAE,sBAAsB,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM;QAC7F,+BAA+B,EAAE,sBAAsB,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM;QAC9F,4BAA4B,EAAE,sBAAsB,CAAC,CAAC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O,2BAAY,CAAC,KAAK,CAAC,UAAU,CAAC;QACvC,CAAC;IACH,CAAC;IAED,OAAO,2BAAY,CAAC,KAAK,CAAC,KAAK,CAAC;AAAA,CACjC"}
@@ -2,4 +2,4 @@ import type { Variants } from '@fluentui-react-native/theme-types';
2
2
  declare function createFontAliasTokensWorker(): Partial<Variants>;
3
3
  export declare const createFontAliasTokens: typeof createFontAliasTokensWorker;
4
4
  export {};
5
- //# sourceMappingURL=createFontAliasTokens.d.ts.map
5
+ //# sourceMappingURL=createFontAliasTokens.d.ts.map
@@ -1,12 +1,12 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ 'use strict';
2
+ Object.defineProperty(exports, '__esModule', { value: true });
3
3
  exports.createFontAliasTokens = void 0;
4
- const framework_base_1 = require("@fluentui-react-native/framework-base");
5
- const theming_utils_1 = require("@fluentui-react-native/theming-utils");
6
- const getOfficeTokens_1 = require("./getOfficeTokens");
4
+ const framework_base_1 = require('@fluentui-react-native/framework-base');
5
+ const theming_utils_1 = require('@fluentui-react-native/theming-utils');
6
+ const getOfficeTokens_1 = require('./getOfficeTokens');
7
7
  function createFontAliasTokensWorker() {
8
- const aliasTokens = (0, getOfficeTokens_1.getOfficeAliasTokens)('Colorful');
9
- return (0, theming_utils_1.mapFontPipelineToTheme)(aliasTokens);
8
+ const aliasTokens = (0, getOfficeTokens_1.getOfficeAliasTokens)('Colorful');
9
+ return (0, theming_utils_1.mapFontPipelineToTheme)(aliasTokens);
10
10
  }
11
11
  exports.createFontAliasTokens = (0, framework_base_1.memoize)(createFontAliasTokensWorker);
12
- //# sourceMappingURL=createFontAliasTokens.js.map
12
+ //# sourceMappingURL=createFontAliasTokens.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"createFontAliasTokens.js","sourceRoot":"","sources":["../src/createFontAliasTokens.ts"],"names":[],"mappings":";;;AAAA,0EAAgE;AAEhE,wEAA8E;AAE9E,uDAAyD;AAEzD,SAAS,2BAA2B;IAClC,MAAM,WAAW,GAAG,IAAA,sCAAoB,EAAC,UAAU,CAAC,CAAC;IACrD,OAAO,IAAA,sCAAsB,EAAC,WAAW,CAAC,CAAC;AAC7C,CAAC;AAEY,QAAA,qBAAqB,GAAG,IAAA,wBAAO,EAAC,2BAA2B,CAAC,CAAC"}
1
+ {"version":3,"file":"createFontAliasTokens.js","sourceRoot":"","sources":["../src/createFontAliasTokens.ts"],"names":[],"mappings":";;;AAAA,0EAAgE;AAEhE,wEAA8E;AAE9E,uDAAyD;AAEzD,SAAS,2BAA2B,GAAsB;IACxD,MAAM,WAAW,GAAG,IAAA,sCAAoB,EAAC,UAAU,CAAC,CAAC;IACrD,OAAO,IAAA,sCAAsB,EAAC,WAAW,CAAC,CAAC;AAAA,CAC5C;AAEY,QAAA,qBAAqB,GAAG,IAAA,wBAAO,EAAC,2BAA2B,CAAC,CAAC"}
@@ -4,4 +4,4 @@ export declare const createOfficeColorAliasTokens: typeof createOfficeColorAlias
4
4
  declare function createOfficeShadowAliasTokensWorker(officeTheme: string): ThemeShadowDefinition;
5
5
  export declare const createOfficeShadowAliasTokens: typeof createOfficeShadowAliasTokensWorker;
6
6
  export {};
7
- //# sourceMappingURL=createOfficeAliasTokens.d.ts.map
7
+ //# sourceMappingURL=createOfficeAliasTokens.d.ts.map
@@ -1,17 +1,17 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ 'use strict';
2
+ Object.defineProperty(exports, '__esModule', { value: true });
3
3
  exports.createOfficeShadowAliasTokens = exports.createOfficeColorAliasTokens = void 0;
4
- const framework_base_1 = require("@fluentui-react-native/framework-base");
5
- const theming_utils_1 = require("@fluentui-react-native/theming-utils");
6
- const getOfficeTokens_1 = require("./getOfficeTokens");
4
+ const framework_base_1 = require('@fluentui-react-native/framework-base');
5
+ const theming_utils_1 = require('@fluentui-react-native/theming-utils');
6
+ const getOfficeTokens_1 = require('./getOfficeTokens');
7
7
  function createOfficeColorAliasTokensWorker(officeTheme) {
8
- const aliasTokens = (0, getOfficeTokens_1.getOfficeAliasTokens)(officeTheme);
9
- return (0, theming_utils_1.mapPipelineToTheme)(aliasTokens);
8
+ const aliasTokens = (0, getOfficeTokens_1.getOfficeAliasTokens)(officeTheme);
9
+ return (0, theming_utils_1.mapPipelineToTheme)(aliasTokens);
10
10
  }
11
11
  exports.createOfficeColorAliasTokens = (0, framework_base_1.memoize)(createOfficeColorAliasTokensWorker);
12
12
  function createOfficeShadowAliasTokensWorker(officeTheme) {
13
- const aliasTokens = (0, getOfficeTokens_1.getOfficeShadowTokens)(officeTheme);
14
- return (0, theming_utils_1.mapPipelineToShadow)(aliasTokens);
13
+ const aliasTokens = (0, getOfficeTokens_1.getOfficeShadowTokens)(officeTheme);
14
+ return (0, theming_utils_1.mapPipelineToShadow)(aliasTokens);
15
15
  }
16
16
  exports.createOfficeShadowAliasTokens = (0, framework_base_1.memoize)(createOfficeShadowAliasTokensWorker);
17
- //# sourceMappingURL=createOfficeAliasTokens.js.map
17
+ //# sourceMappingURL=createOfficeAliasTokens.js.map