@fluentui-react-native/apple-theme 0.29.5 → 0.29.6
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/.cache/tsconfig.tsbuildinfo +1 -1
- package/CHANGELOG.md +29 -0
- package/lib/__tests__/apple-theme.test.js +3 -3
- package/lib/__tests__/apple-theme.test.js.map +1 -1
- package/lib/appleColors.ios.d.ts +1 -1
- package/lib/appleColors.ios.d.ts.map +1 -1
- package/lib/appleColors.ios.js +3 -3
- package/lib/appleColors.ios.js.map +1 -1
- package/lib/appleColors.macos.d.ts +1 -1
- package/lib/appleColors.macos.d.ts.map +1 -1
- package/lib/appleHighContrast.macos.js +1 -1
- package/lib/appleHighContrast.macos.js.map +1 -1
- package/lib/appleShadows.ios.d.ts +1 -1
- package/lib/appleShadows.ios.d.ts.map +1 -1
- package/lib/appleShadows.ios.js +1 -1
- package/lib/appleShadows.ios.js.map +1 -1
- package/lib/appleShadows.macos.d.ts +1 -1
- package/lib/appleShadows.macos.d.ts.map +1 -1
- package/lib/appleTheme.ios.d.ts +1 -4
- package/lib/appleTheme.ios.d.ts.map +1 -1
- package/lib/appleTheme.macos.d.ts +2 -4
- package/lib/appleTheme.macos.d.ts.map +1 -1
- package/lib/appleTypography.ios.d.ts +1 -1
- package/lib/appleTypography.ios.d.ts.map +1 -1
- package/lib/appleTypography.macos.d.ts +1 -1
- package/lib/appleTypography.macos.d.ts.map +1 -1
- package/lib/createAppleTheme.d.ts +1 -1
- package/lib/createAppleTheme.d.ts.map +1 -1
- package/lib/createAppleTheme.ios.d.ts +1 -1
- package/lib/createAppleTheme.ios.d.ts.map +1 -1
- package/lib/createAppleTheme.ios.js +1 -1
- package/lib/createAppleTheme.ios.js.map +1 -1
- package/lib/createAppleTheme.js +1 -1
- package/lib/createAppleTheme.js.map +1 -1
- package/lib/createAppleTheme.macos.d.ts +1 -1
- package/lib/createAppleTheme.macos.d.ts.map +1 -1
- package/lib/createAppleTheme.macos.js +1 -3
- package/lib/createAppleTheme.macos.js.map +1 -1
- package/lib/createFontAliasTokens.ios.d.ts +1 -4
- package/lib/createFontAliasTokens.ios.d.ts.map +1 -1
- package/lib/createMacOSAliasTokens.d.ts +2 -7
- package/lib/createMacOSAliasTokens.d.ts.map +1 -1
- package/lib/createiOSAliasTokens.d.ts +2 -7
- package/lib/createiOSAliasTokens.d.ts.map +1 -1
- package/lib/getMacOSTokens.d.ts +1 -1
- package/lib/getMacOSTokens.d.ts.map +1 -1
- package/package.json +8 -10
- package/src/__tests__/apple-theme.test.ts +4 -4
- package/src/appleColors.ios.ts +4 -4
- package/src/appleColors.macos.ts +1 -1
- package/src/appleHighContrast.macos.ts +1 -1
- package/src/appleShadows.ios.ts +2 -2
- package/src/appleShadows.macos.ts +1 -1
- package/src/appleTheme.ios.ts +1 -1
- package/src/appleTheme.macos.ts +1 -1
- package/src/appleTypography.ios.ts +1 -1
- package/src/appleTypography.macos.ts +1 -1
- package/src/createAppleTheme.ios.ts +2 -2
- package/src/createAppleTheme.macos.ts +2 -4
- package/src/createAppleTheme.ts +1 -1
- package/src/createFontAliasTokens.ios.ts +1 -1
- package/src/createMacOSAliasTokens.ts +2 -2
- package/src/createiOSAliasTokens.ts +2 -2
- package/src/getMacOSTokens.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import aliasTokens from '@fluentui-react-native/design-tokens-ios/light/tokens-aliases.json'; // Font alias tokens should be the same for all color styles
|
|
2
2
|
import { memoize } from '@fluentui-react-native/framework-base';
|
|
3
|
-
import type { Variants } from '@fluentui-react-native/
|
|
3
|
+
import type { Variants } from '@fluentui-react-native/design/theming';
|
|
4
4
|
import { mapFontPipelineToTheme } from '@fluentui-react-native/theming-utils';
|
|
5
5
|
|
|
6
6
|
function createFontAliasTokensWorker(): Partial<Variants> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { memoize } from '@fluentui-react-native/framework-base';
|
|
2
|
-
import type { AliasColorTokens, AppearanceOptions } from '@fluentui-react-native/
|
|
3
|
-
import type { ThemeShadowDefinition } from '@fluentui-react-native/
|
|
2
|
+
import type { AliasColorTokens, AppearanceOptions } from '@fluentui-react-native/design/theming';
|
|
3
|
+
import type { ThemeShadowDefinition } from '@fluentui-react-native/design/theming';
|
|
4
4
|
import { mapPipelineToTheme, mapPipelineToShadow } from '@fluentui-react-native/theming-utils';
|
|
5
5
|
|
|
6
6
|
import { getMacOSAliasTokens, getMacOSShadowTokens } from './getMacOSTokens';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { memoize } from '@fluentui-react-native/framework-base';
|
|
2
2
|
import { getAliasTokens, getShadowTokens } from '@fluentui-react-native/theme-tokens';
|
|
3
|
-
import type { AliasColorTokens, AppearanceOptions } from '@fluentui-react-native/
|
|
4
|
-
import type { ThemeShadowDefinition } from '@fluentui-react-native/
|
|
3
|
+
import type { AliasColorTokens, AppearanceOptions } from '@fluentui-react-native/design/theming';
|
|
4
|
+
import type { ThemeShadowDefinition } from '@fluentui-react-native/design/theming';
|
|
5
5
|
import { mapPipelineToTheme, mapPipelineToShadow } from '@fluentui-react-native/theming-utils';
|
|
6
6
|
|
|
7
7
|
function createiOSColorAliasTokensWorker(mode: AppearanceOptions): AliasColorTokens {
|
package/src/getMacOSTokens.ts
CHANGED
|
@@ -6,7 +6,7 @@ import macOSLightHCAliasTokens from '@fluentui-react-native/design-tokens-macos/
|
|
|
6
6
|
import macOSLightHCShadowTokens from '@fluentui-react-native/design-tokens-macos/hclight/tokens-shadow.json';
|
|
7
7
|
import macOSLightAliasTokens from '@fluentui-react-native/design-tokens-macos/light/tokens-aliases.json';
|
|
8
8
|
import macOSLightShadowTokens from '@fluentui-react-native/design-tokens-macos/light/tokens-shadow.json';
|
|
9
|
-
import type { AppearanceOptions } from '@fluentui-react-native/
|
|
9
|
+
import type { AppearanceOptions } from '@fluentui-react-native/design/theming';
|
|
10
10
|
import { assertNever } from 'assert-never';
|
|
11
11
|
|
|
12
12
|
export function getMacOSAliasTokens(mode: AppearanceOptions, isHighContrast: boolean) {
|