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