@fluentui-react-native/win32-theme 0.25.2 → 0.25.4
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 +85 -1
- package/CHANGELOG.md +27 -2
- package/lib/NativeModule/fallbackOfficeModule.d.ts.map +1 -1
- package/lib/NativeModule/fallbackOfficeModule.js.map +1 -1
- package/lib/NativeModule/getThemingModule.d.ts.map +1 -1
- package/lib/NativeModule/getThemingModule.js.map +1 -1
- package/lib/NativeModule/getThemingModule.native.d.ts +1 -1
- package/lib/NativeModule/getThemingModule.native.d.ts.map +1 -1
- package/lib/NativeModule/getThemingModule.native.js.map +1 -1
- package/lib/NativeModule/officeThemingModule.d.ts.map +1 -1
- package/lib/__tests__/win32-theme.test.js +4 -4
- package/lib/__tests__/win32-theme.test.js.map +1 -1
- package/lib/createBrandedThemeWithAlias.d.ts +1 -1
- package/lib/createBrandedThemeWithAlias.d.ts.map +1 -1
- package/lib/createBrandedThemeWithAlias.js.map +1 -1
- package/lib/createFontAliasTokens.d.ts.map +1 -1
- package/lib/createFontAliasTokens.js +1 -1
- package/lib/createFontAliasTokens.js.map +1 -1
- package/lib/createOfficeAliasTokens.d.ts.map +1 -1
- package/lib/createOfficeAliasTokens.js +1 -1
- package/lib/createOfficeAliasTokens.js.map +1 -1
- package/lib/createOfficeTheme.d.ts.map +1 -1
- package/lib/createOfficeTheme.js +5 -5
- package/lib/createOfficeTheme.js.map +1 -1
- package/lib/createPartialOfficeTheme.d.ts.map +1 -1
- package/lib/createPartialOfficeTheme.js.map +1 -1
- package/lib/getOfficeTokens.d.ts +73 -73
- package/lib/getOfficeTokens.d.ts.map +1 -1
- package/lib/getOfficeTokens.js +4 -4
- package/lib/getOfficeTokens.js.map +1 -1
- package/lib/getThemeTypography.d.ts.map +1 -1
- package/lib/getThemeTypography.js.map +1 -1
- package/lib/highContrast/tokens-alias.d.ts.map +1 -1
- package/lib/highContrast/tokens-alias.js.map +1 -1
- package/lib-commonjs/NativeModule/fallbackOfficeModule.d.ts.map +1 -1
- package/lib-commonjs/NativeModule/fallbackOfficeModule.js.map +1 -1
- package/lib-commonjs/NativeModule/getThemingModule.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/lib-commonjs/NativeModule/getThemingModule.native.js.map +1 -1
- package/lib-commonjs/NativeModule/officeThemingModule.d.ts.map +1 -1
- package/lib-commonjs/__tests__/win32-theme.test.js +4 -4
- package/lib-commonjs/__tests__/win32-theme.test.js.map +1 -1
- package/lib-commonjs/createBrandedThemeWithAlias.d.ts +1 -1
- package/lib-commonjs/createBrandedThemeWithAlias.d.ts.map +1 -1
- package/lib-commonjs/createBrandedThemeWithAlias.js.map +1 -1
- package/lib-commonjs/createFontAliasTokens.d.ts.map +1 -1
- package/lib-commonjs/createFontAliasTokens.js +1 -1
- package/lib-commonjs/createFontAliasTokens.js.map +1 -1
- package/lib-commonjs/createOfficeAliasTokens.d.ts.map +1 -1
- package/lib-commonjs/createOfficeAliasTokens.js +1 -1
- package/lib-commonjs/createOfficeAliasTokens.js.map +1 -1
- package/lib-commonjs/createOfficeTheme.d.ts.map +1 -1
- package/lib-commonjs/createOfficeTheme.js +5 -5
- package/lib-commonjs/createOfficeTheme.js.map +1 -1
- package/lib-commonjs/createPartialOfficeTheme.d.ts.map +1 -1
- package/lib-commonjs/createPartialOfficeTheme.js.map +1 -1
- package/lib-commonjs/getOfficeTokens.d.ts +73 -73
- package/lib-commonjs/getOfficeTokens.d.ts.map +1 -1
- package/lib-commonjs/getOfficeTokens.js +15 -15
- package/lib-commonjs/getOfficeTokens.js.map +1 -1
- package/lib-commonjs/getThemeTypography.d.ts.map +1 -1
- package/lib-commonjs/getThemeTypography.js.map +1 -1
- package/lib-commonjs/highContrast/tokens-alias.d.ts.map +1 -1
- package/lib-commonjs/highContrast/tokens-alias.js.map +1 -1
- package/package.json +6 -6
- package/src/NativeModule/fallbackOfficeModule.ts +1 -0
- package/src/NativeModule/getThemingModule.native.ts +2 -1
- package/src/NativeModule/getThemingModule.ts +1 -0
- package/src/NativeModule/officeThemingModule.ts +1 -0
- package/src/__tests__/win32-theme.test.ts +4 -4
- package/src/createBrandedThemeWithAlias.ts +3 -2
- package/src/createFontAliasTokens.ts +3 -2
- package/src/createOfficeAliasTokens.ts +3 -2
- package/src/createOfficeTheme.ts +7 -6
- package/src/createPartialOfficeTheme.ts +1 -0
- package/src/getOfficeTokens.ts +5 -4
- package/src/getThemeTypography.ts +2 -1
- package/src/highContrast/tokens-alias.ts +1 -0
package/src/getOfficeTokens.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import colorfulAliasTokens from '@fluentui-react-native/design-tokens-win32/colorful/tokens-aliases.json';
|
|
2
|
-
import darkGrayAliasTokens from '@fluentui-react-native/design-tokens-win32/darkgray/tokens-aliases.json';
|
|
3
1
|
import blackAliasTokens from '@fluentui-react-native/design-tokens-win32/black/tokens-aliases.json';
|
|
4
|
-
import
|
|
2
|
+
import blackShadowTokens from '@fluentui-react-native/design-tokens-win32/black/tokens-shadow.json';
|
|
3
|
+
import colorfulAliasTokens from '@fluentui-react-native/design-tokens-win32/colorful/tokens-aliases.json';
|
|
5
4
|
import colorfulShadowTokens from '@fluentui-react-native/design-tokens-win32/colorful/tokens-shadow.json';
|
|
5
|
+
import darkGrayAliasTokens from '@fluentui-react-native/design-tokens-win32/darkgray/tokens-aliases.json';
|
|
6
6
|
import darkGrayShadowTokens from '@fluentui-react-native/design-tokens-win32/darkgray/tokens-shadow.json';
|
|
7
|
-
import blackShadowTokens from '@fluentui-react-native/design-tokens-win32/black/tokens-shadow.json';
|
|
8
7
|
import hcShadowTokens from '@fluentui-react-native/design-tokens-win32/hc/tokens-shadow.json';
|
|
9
8
|
|
|
9
|
+
import { hcAliasTokens } from './highContrast/tokens-alias';
|
|
10
|
+
|
|
10
11
|
export function getOfficeAliasTokens(officeTheme: string) {
|
|
11
12
|
if (officeTheme === 'White' || officeTheme === 'Colorful') {
|
|
12
13
|
return colorfulAliasTokens;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { Typography, Variants } from '@fluentui-react-native/theme-types';
|
|
2
1
|
import { defaultFluentTheme } from '@fluentui-react-native/default-theme';
|
|
2
|
+
import type { Typography, Variants } from '@fluentui-react-native/theme-types';
|
|
3
|
+
|
|
3
4
|
import { createFontAliasTokens } from './createFontAliasTokens';
|
|
4
5
|
|
|
5
6
|
export function win32Typography(): Typography {
|