@fluentui-react-native/apple-theme 0.29.4 → 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.
Files changed (64) hide show
  1. package/.cache/tsconfig.tsbuildinfo +1 -1
  2. package/CHANGELOG.md +44 -0
  3. package/lib/__tests__/apple-theme.test.js +3 -3
  4. package/lib/__tests__/apple-theme.test.js.map +1 -1
  5. package/lib/appleColors.ios.d.ts +1 -1
  6. package/lib/appleColors.ios.d.ts.map +1 -1
  7. package/lib/appleColors.ios.js +3 -3
  8. package/lib/appleColors.ios.js.map +1 -1
  9. package/lib/appleColors.macos.d.ts +1 -1
  10. package/lib/appleColors.macos.d.ts.map +1 -1
  11. package/lib/appleHighContrast.macos.js +1 -1
  12. package/lib/appleHighContrast.macos.js.map +1 -1
  13. package/lib/appleShadows.ios.d.ts +1 -1
  14. package/lib/appleShadows.ios.d.ts.map +1 -1
  15. package/lib/appleShadows.ios.js +1 -1
  16. package/lib/appleShadows.ios.js.map +1 -1
  17. package/lib/appleShadows.macos.d.ts +1 -1
  18. package/lib/appleShadows.macos.d.ts.map +1 -1
  19. package/lib/appleTheme.ios.d.ts +1 -4
  20. package/lib/appleTheme.ios.d.ts.map +1 -1
  21. package/lib/appleTheme.macos.d.ts +2 -4
  22. package/lib/appleTheme.macos.d.ts.map +1 -1
  23. package/lib/appleTypography.ios.d.ts +1 -1
  24. package/lib/appleTypography.ios.d.ts.map +1 -1
  25. package/lib/appleTypography.macos.d.ts +1 -1
  26. package/lib/appleTypography.macos.d.ts.map +1 -1
  27. package/lib/createAppleTheme.d.ts +1 -1
  28. package/lib/createAppleTheme.d.ts.map +1 -1
  29. package/lib/createAppleTheme.ios.d.ts +1 -1
  30. package/lib/createAppleTheme.ios.d.ts.map +1 -1
  31. package/lib/createAppleTheme.ios.js +1 -1
  32. package/lib/createAppleTheme.ios.js.map +1 -1
  33. package/lib/createAppleTheme.js +1 -1
  34. package/lib/createAppleTheme.js.map +1 -1
  35. package/lib/createAppleTheme.macos.d.ts +1 -1
  36. package/lib/createAppleTheme.macos.d.ts.map +1 -1
  37. package/lib/createAppleTheme.macos.js +1 -3
  38. package/lib/createAppleTheme.macos.js.map +1 -1
  39. package/lib/createFontAliasTokens.ios.d.ts +1 -4
  40. package/lib/createFontAliasTokens.ios.d.ts.map +1 -1
  41. package/lib/createMacOSAliasTokens.d.ts +2 -7
  42. package/lib/createMacOSAliasTokens.d.ts.map +1 -1
  43. package/lib/createiOSAliasTokens.d.ts +2 -7
  44. package/lib/createiOSAliasTokens.d.ts.map +1 -1
  45. package/lib/getMacOSTokens.d.ts +1 -1
  46. package/lib/getMacOSTokens.d.ts.map +1 -1
  47. package/package.json +8 -10
  48. package/src/__tests__/apple-theme.test.ts +4 -4
  49. package/src/appleColors.ios.ts +4 -4
  50. package/src/appleColors.macos.ts +1 -1
  51. package/src/appleHighContrast.macos.ts +1 -1
  52. package/src/appleShadows.ios.ts +2 -2
  53. package/src/appleShadows.macos.ts +1 -1
  54. package/src/appleTheme.ios.ts +1 -1
  55. package/src/appleTheme.macos.ts +1 -1
  56. package/src/appleTypography.ios.ts +1 -1
  57. package/src/appleTypography.macos.ts +1 -1
  58. package/src/createAppleTheme.ios.ts +2 -2
  59. package/src/createAppleTheme.macos.ts +2 -4
  60. package/src/createAppleTheme.ts +1 -1
  61. package/src/createFontAliasTokens.ios.ts +1 -1
  62. package/src/createMacOSAliasTokens.ts +2 -2
  63. package/src/createiOSAliasTokens.ts +2 -2
  64. package/src/getMacOSTokens.ts +1 -1
@@ -1,11 +1,9 @@
1
1
  import { Appearance } from 'react-native';
2
2
 
3
- import { ThemeReference } from '@fluentui-react-native/theme';
4
- import type { Theme } from '@fluentui-react-native/theme-types';
5
- import { getCurrentAppearance } from '@fluentui-react-native/theming-utils';
3
+ import { getCurrentAppearance, setIsHighContrast, ThemeReference } from '@fluentui-react-native/design/theming';
4
+ import type { Theme } from '@fluentui-react-native/design/theming';
6
5
  import { AccessibilityInfo } from 'react-native-macos';
7
6
 
8
- import { setIsHighContrast } from './appleHighContrast.macos';
9
7
  import { getBaseAppleThemeMacOS } from './appleTheme.macos';
10
8
 
11
9
  let appleThemeReference: ThemeReference;
@@ -1,5 +1,5 @@
1
1
  import { createDefaultTheme } from '@fluentui-react-native/default-theme';
2
- import { ThemeReference } from '@fluentui-react-native/theme';
2
+ import { ThemeReference } from '@fluentui-react-native/design/theming';
3
3
 
4
4
  export function createAppleTheme(): ThemeReference {
5
5
  console.warn('Platform is not supported by apple theme, using default theme');
@@ -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/theme-types';
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/theme-types';
3
- import type { ThemeShadowDefinition } from '@fluentui-react-native/theme-types';
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/theme-types';
4
- import type { ThemeShadowDefinition } from '@fluentui-react-native/theme-types';
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 {
@@ -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/theme-types';
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) {