@fluentui-react-native/apple-theme 0.29.0 → 0.29.1

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 (84) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +1 -1
  3. package/lib/__tests__/apple-theme.test.d.ts +1 -1
  4. package/lib/__tests__/apple-theme.test.js +41 -42
  5. package/lib/appleColors.ios.d.ts +1 -1
  6. package/lib/appleColors.ios.js +174 -174
  7. package/lib/appleColors.macos.d.ts +1 -1
  8. package/lib/appleColors.macos.js +367 -367
  9. package/lib/appleColors.types.ios.d.ts +15 -15
  10. package/lib/appleColors.types.ios.js +1 -1
  11. package/lib/appleColors.types.macos.d.ts +146 -146
  12. package/lib/appleColors.types.macos.js +1 -1
  13. package/lib/appleHighContrast.macos.d.ts +1 -1
  14. package/lib/appleHighContrast.macos.js +3 -3
  15. package/lib/appleShadows.ios.d.ts +1 -1
  16. package/lib/appleShadows.ios.js +4 -4
  17. package/lib/appleShadows.macos.d.ts +1 -1
  18. package/lib/appleShadows.macos.js +2 -2
  19. package/lib/appleTheme.ios.d.ts +1 -1
  20. package/lib/appleTheme.ios.js +122 -122
  21. package/lib/appleTheme.macos.d.ts +53 -53
  22. package/lib/appleTheme.macos.js +68 -68
  23. package/lib/appleTypography.ios.d.ts +1 -1
  24. package/lib/appleTypography.ios.js +50 -50
  25. package/lib/appleTypography.macos.d.ts +2 -2
  26. package/lib/appleTypography.macos.js +63 -63
  27. package/lib/createAppleTheme.d.ts +1 -1
  28. package/lib/createAppleTheme.ios.d.ts +1 -1
  29. package/lib/createAppleTheme.ios.js +14 -14
  30. package/lib/createAppleTheme.js +3 -3
  31. package/lib/createAppleTheme.macos.d.ts +1 -1
  32. package/lib/createAppleTheme.macos.js +23 -23
  33. package/lib/createFontAliasTokens.ios.d.ts +1 -1
  34. package/lib/createFontAliasTokens.ios.js +2 -2
  35. package/lib/createMacOSAliasTokens.d.ts +1 -1
  36. package/lib/createMacOSAliasTokens.js +5 -5
  37. package/lib/createiOSAliasTokens.d.ts +1 -1
  38. package/lib/createiOSAliasTokens.js +5 -5
  39. package/lib/getMacOSTokens.d.ts +435 -443
  40. package/lib/getMacOSTokens.js +45 -35
  41. package/lib/index.d.ts +1 -1
  42. package/lib/index.js +1 -1
  43. package/lib-commonjs/__tests__/apple-theme.test.d.ts +1 -1
  44. package/lib-commonjs/__tests__/apple-theme.test.js +46 -47
  45. package/lib-commonjs/appleColors.ios.d.ts +1 -1
  46. package/lib-commonjs/appleColors.ios.js +180 -180
  47. package/lib-commonjs/appleColors.macos.d.ts +1 -1
  48. package/lib-commonjs/appleColors.macos.js +372 -378
  49. package/lib-commonjs/appleColors.types.ios.d.ts +15 -15
  50. package/lib-commonjs/appleColors.types.ios.js +3 -3
  51. package/lib-commonjs/appleColors.types.macos.d.ts +146 -146
  52. package/lib-commonjs/appleColors.types.macos.js +3 -3
  53. package/lib-commonjs/appleHighContrast.macos.d.ts +1 -1
  54. package/lib-commonjs/appleHighContrast.macos.js +6 -6
  55. package/lib-commonjs/appleShadows.ios.d.ts +1 -1
  56. package/lib-commonjs/appleShadows.ios.js +9 -9
  57. package/lib-commonjs/appleShadows.macos.d.ts +1 -1
  58. package/lib-commonjs/appleShadows.macos.js +6 -6
  59. package/lib-commonjs/appleTheme.ios.d.ts +1 -1
  60. package/lib-commonjs/appleTheme.ios.js +128 -128
  61. package/lib-commonjs/appleTheme.macos.d.ts +53 -53
  62. package/lib-commonjs/appleTheme.macos.js +74 -74
  63. package/lib-commonjs/appleTypography.ios.d.ts +1 -1
  64. package/lib-commonjs/appleTypography.ios.js +53 -53
  65. package/lib-commonjs/appleTypography.macos.d.ts +2 -2
  66. package/lib-commonjs/appleTypography.macos.js +65 -65
  67. package/lib-commonjs/createAppleTheme.d.ts +1 -1
  68. package/lib-commonjs/createAppleTheme.ios.d.ts +1 -1
  69. package/lib-commonjs/createAppleTheme.ios.js +20 -20
  70. package/lib-commonjs/createAppleTheme.js +7 -7
  71. package/lib-commonjs/createAppleTheme.macos.d.ts +1 -1
  72. package/lib-commonjs/createAppleTheme.macos.js +31 -31
  73. package/lib-commonjs/createFontAliasTokens.ios.d.ts +1 -1
  74. package/lib-commonjs/createFontAliasTokens.ios.js +10 -12
  75. package/lib-commonjs/createMacOSAliasTokens.d.ts +1 -1
  76. package/lib-commonjs/createMacOSAliasTokens.js +10 -10
  77. package/lib-commonjs/createiOSAliasTokens.d.ts +1 -1
  78. package/lib-commonjs/createiOSAliasTokens.js +10 -10
  79. package/lib-commonjs/getMacOSTokens.d.ts +435 -443
  80. package/lib-commonjs/getMacOSTokens.js +59 -51
  81. package/lib-commonjs/index.d.ts +1 -1
  82. package/lib-commonjs/index.js +10 -30
  83. package/package.json +20 -19
  84. package/src/appleTypography.macos.ts +1 -1
@@ -1,61 +1,61 @@
1
1
  import type { Spacing, Theme, AppearanceOptions } from '@fluentui-react-native/theme-types';
2
2
  export declare function appleSpacing(): Spacing;
3
3
  export declare const appleComponents: {
4
- Button: {
5
- tokens: {
6
- borderRadius: number;
7
- borderWidth: number;
8
- minHeight: number;
9
- minWidth: number;
4
+ Button: {
5
+ tokens: {
6
+ borderRadius: number;
7
+ borderWidth: number;
8
+ minHeight: number;
9
+ minWidth: number;
10
+ };
11
+ root: {
12
+ style: {
13
+ margin: number;
14
+ };
15
+ };
16
+ stack: {
17
+ style: {
18
+ paddingVertical: number;
19
+ minHeight: number;
20
+ };
21
+ };
22
+ icon: {
23
+ style: {
24
+ marginEnd: number;
25
+ };
26
+ };
27
+ content: {
28
+ fontSize: number;
29
+ };
30
+ };
31
+ RNFText: {
32
+ tokens: {
33
+ variant: string;
34
+ };
35
+ };
36
+ Checkbox: {
37
+ checkbox: {
38
+ style: {
39
+ borderStyle: string;
40
+ borderWidth: number;
41
+ borderRadius: number;
42
+ minHeight: number;
43
+ minWidth: number;
44
+ marginEnd: number;
45
+ };
46
+ };
47
+ checkmarkIcon: {
48
+ width: number;
49
+ height: number;
50
+ style: {
51
+ marginVertical: number;
52
+ marginHorizontal: number;
53
+ };
54
+ };
55
+ _precedence: string[];
10
56
  };
11
- root: {
12
- style: {
13
- margin: number;
14
- };
15
- };
16
- stack: {
17
- style: {
18
- paddingVertical: number;
19
- minHeight: number;
20
- };
21
- };
22
- icon: {
23
- style: {
24
- marginEnd: number;
25
- };
26
- };
27
- content: {
28
- fontSize: number;
29
- };
30
- };
31
- RNFText: {
32
- tokens: {
33
- variant: string;
34
- };
35
- };
36
- Checkbox: {
37
- checkbox: {
38
- style: {
39
- borderStyle: string;
40
- borderWidth: number;
41
- borderRadius: number;
42
- minHeight: number;
43
- minWidth: number;
44
- marginEnd: number;
45
- };
46
- };
47
- checkmarkIcon: {
48
- width: number;
49
- height: number;
50
- style: {
51
- marginVertical: number;
52
- marginHorizontal: number;
53
- };
54
- };
55
- _precedence: string[];
56
- };
57
57
  };
58
58
  declare function getBaseAppleThemeMacOSWorker(mode: AppearanceOptions): Theme;
59
59
  export declare const getBaseAppleThemeMacOS: typeof getBaseAppleThemeMacOSWorker;
60
60
  export {};
61
- //# sourceMappingURL=appleTheme.macos.d.ts.map
61
+ //# sourceMappingURL=appleTheme.macos.d.ts.map
@@ -3,80 +3,80 @@ import { fallbackApplePalette } from './appleColors.macos';
3
3
  import { fallbackAppleShadows } from './appleShadows.macos';
4
4
  import { fallbackAppleTypography } from './appleTypography.macos';
5
5
  export function appleSpacing() {
6
- return {
7
- s2: '8px',
8
- s1: '12px',
9
- m: '16px',
10
- l1: '20px',
11
- l2: '24px',
12
- };
6
+ return {
7
+ s2: '8px',
8
+ s1: '12px',
9
+ m: '16px',
10
+ l1: '20px',
11
+ l2: '24px',
12
+ };
13
13
  }
14
14
  export const appleComponents = {
15
- // These values correspond to the "Large" Button Size values of the FluentUI Apple Button
16
- Button: {
17
- tokens: {
18
- borderRadius: 6,
19
- borderWidth: 1,
20
- minHeight: 28,
21
- minWidth: 72,
15
+ // These values correspond to the "Large" Button Size values of the FluentUI Apple Button
16
+ Button: {
17
+ tokens: {
18
+ borderRadius: 6,
19
+ borderWidth: 1,
20
+ minHeight: 28,
21
+ minWidth: 72,
22
+ },
23
+ root: {
24
+ style: {
25
+ margin: 8, // Padding around the outside of the button
26
+ },
27
+ },
28
+ stack: {
29
+ style: {
30
+ paddingVertical: 4.5,
31
+ minHeight: 28,
32
+ },
33
+ },
34
+ icon: {
35
+ style: {
36
+ marginEnd: 10,
37
+ },
38
+ },
39
+ content: {
40
+ fontSize: 15,
41
+ },
22
42
  },
23
- root: {
24
- style: {
25
- margin: 8, // Padding around the outside of the button
26
- },
43
+ RNFText: {
44
+ tokens: {
45
+ variant: 'bodyStandard',
46
+ },
27
47
  },
28
- stack: {
29
- style: {
30
- paddingVertical: 4.5,
31
- minHeight: 28,
32
- },
48
+ Checkbox: {
49
+ checkbox: {
50
+ style: {
51
+ borderStyle: 'solid',
52
+ borderWidth: 0.5,
53
+ borderRadius: 3,
54
+ minHeight: 14,
55
+ minWidth: 14,
56
+ marginEnd: 5,
57
+ },
58
+ },
59
+ checkmarkIcon: {
60
+ width: 10,
61
+ height: 10,
62
+ style: {
63
+ marginVertical: 2,
64
+ marginHorizontal: 2,
65
+ },
66
+ },
67
+ // This disables other available states like: hovered, focused, pressed.
68
+ _precedence: ['disabled', 'boxAtEnd', 'checked'],
33
69
  },
34
- icon: {
35
- style: {
36
- marginEnd: 10,
37
- },
38
- },
39
- content: {
40
- fontSize: 15,
41
- },
42
- },
43
- RNFText: {
44
- tokens: {
45
- variant: 'bodyStandard',
46
- },
47
- },
48
- Checkbox: {
49
- checkbox: {
50
- style: {
51
- borderStyle: 'solid',
52
- borderWidth: 0.5,
53
- borderRadius: 3,
54
- minHeight: 14,
55
- minWidth: 14,
56
- marginEnd: 5,
57
- },
58
- },
59
- checkmarkIcon: {
60
- width: 10,
61
- height: 10,
62
- style: {
63
- marginVertical: 2,
64
- marginHorizontal: 2,
65
- },
66
- },
67
- // This disables other available states like: hovered, focused, pressed.
68
- _precedence: ['disabled', 'boxAtEnd', 'checked'],
69
- },
70
70
  };
71
71
  function getBaseAppleThemeMacOSWorker(mode) {
72
- return {
73
- colors: fallbackApplePalette(mode),
74
- typography: fallbackAppleTypography(),
75
- shadows: fallbackAppleShadows(mode),
76
- spacing: appleSpacing(),
77
- components: appleComponents,
78
- host: { appearance: 'dynamic' },
79
- };
72
+ return {
73
+ colors: fallbackApplePalette(mode),
74
+ typography: fallbackAppleTypography(),
75
+ shadows: fallbackAppleShadows(mode),
76
+ spacing: appleSpacing(),
77
+ components: appleComponents,
78
+ host: { appearance: 'dynamic' },
79
+ };
80
80
  }
81
81
  export const getBaseAppleThemeMacOS = memoize(getBaseAppleThemeMacOSWorker);
82
- //# sourceMappingURL=appleTheme.macos.js.map
82
+ //# sourceMappingURL=appleTheme.macos.js.map
@@ -1,3 +1,3 @@
1
1
  import type { Typography } from '@fluentui-react-native/theme-types';
2
2
  export declare function appleTypography(): Typography;
3
- //# sourceMappingURL=appleTypography.ios.d.ts.map
3
+ //# sourceMappingURL=appleTypography.ios.d.ts.map
@@ -1,54 +1,54 @@
1
1
  import { createFontAliasTokens } from './createFontAliasTokens.ios';
2
2
  // The sizes are taken for the Dynamic Type Size "Large", which is the system default
3
3
  export function appleTypography() {
4
- const appleDict = {
5
- sizes: {
6
- caption: 12, // Caption 2
7
- secondary: 16, // Caption 1
8
- body: 17, // Body
9
- subheader: 15, // Subhead
10
- header: 17, // Headline
11
- hero: 26, /// Title 1
12
- heroLarge: 30, // Large Title,
13
- },
14
- weights: {
15
- ultralight: '100',
16
- thin: '200',
17
- light: '300',
18
- regular: '400',
19
- medium: '500',
20
- semiBold: '600',
21
- bold: '700',
22
- heavy: '800',
23
- black: '900',
24
- },
25
- families: {
26
- primary: 'System',
27
- secondary: 'System',
28
- cursive: 'System',
29
- monospace: 'System',
30
- numeric: 'System',
31
- sansSerif: 'System',
32
- serif: 'System',
33
- },
34
- variants: {
35
- captionStandard: { face: 'primary', size: 'caption', weight: '400' },
36
- secondaryStandard: { face: 'primary', size: 'secondary', weight: '400' },
37
- secondarySemibold: { face: 'primary', size: 'secondary', weight: '600' },
38
- bodyStandard: { face: 'primary', size: 'body', weight: '400' },
39
- bodySemibold: { face: 'primary', size: 'body', weight: '600' },
40
- subheaderStandard: { face: 'primary', size: 'subheader', weight: '400' },
41
- subheaderSemibold: { face: 'primary', size: 'subheader', weight: '600' },
42
- headerStandard: { face: 'primary', size: 'header', weight: '600' },
43
- headerSemibold: { face: 'primary', size: 'header', weight: '800' },
44
- heroStandard: { face: 'primary', size: 'hero', weight: '400' },
45
- heroSemibold: { face: 'primary', size: 'hero', weight: '600' },
46
- heroLargeStandard: { face: 'primary', size: 'heroLarge', weight: '400' },
47
- heroLargeSemibold: { face: 'primary', size: 'heroLarge', weight: '600' },
48
- // iOS styles
49
- ...createFontAliasTokens(),
50
- },
51
- };
52
- return appleDict;
4
+ const appleDict = {
5
+ sizes: {
6
+ caption: 12, // Caption 2
7
+ secondary: 16, // Caption 1
8
+ body: 17, // Body
9
+ subheader: 15, // Subhead
10
+ header: 17, // Headline
11
+ hero: 26, /// Title 1
12
+ heroLarge: 30, // Large Title,
13
+ },
14
+ weights: {
15
+ ultralight: '100',
16
+ thin: '200',
17
+ light: '300',
18
+ regular: '400',
19
+ medium: '500',
20
+ semiBold: '600',
21
+ bold: '700',
22
+ heavy: '800',
23
+ black: '900',
24
+ },
25
+ families: {
26
+ primary: 'System',
27
+ secondary: 'System',
28
+ cursive: 'System',
29
+ monospace: 'System',
30
+ numeric: 'System',
31
+ sansSerif: 'System',
32
+ serif: 'System',
33
+ },
34
+ variants: {
35
+ captionStandard: { face: 'primary', size: 'caption', weight: '400' },
36
+ secondaryStandard: { face: 'primary', size: 'secondary', weight: '400' },
37
+ secondarySemibold: { face: 'primary', size: 'secondary', weight: '600' },
38
+ bodyStandard: { face: 'primary', size: 'body', weight: '400' },
39
+ bodySemibold: { face: 'primary', size: 'body', weight: '600' },
40
+ subheaderStandard: { face: 'primary', size: 'subheader', weight: '400' },
41
+ subheaderSemibold: { face: 'primary', size: 'subheader', weight: '600' },
42
+ headerStandard: { face: 'primary', size: 'header', weight: '600' },
43
+ headerSemibold: { face: 'primary', size: 'header', weight: '800' },
44
+ heroStandard: { face: 'primary', size: 'hero', weight: '400' },
45
+ heroSemibold: { face: 'primary', size: 'hero', weight: '600' },
46
+ heroLargeStandard: { face: 'primary', size: 'heroLarge', weight: '400' },
47
+ heroLargeSemibold: { face: 'primary', size: 'heroLarge', weight: '600' },
48
+ // iOS styles
49
+ ...createFontAliasTokens(),
50
+ },
51
+ };
52
+ return appleDict;
53
53
  }
54
- //# sourceMappingURL=appleTypography.ios.js.map
54
+ //# sourceMappingURL=appleTypography.ios.js.map
@@ -1,9 +1,9 @@
1
1
  import type { Typography } from '@fluentui-react-native/theme-types';
2
2
  /**
3
3
  * The Typography is designed to match the styles defined in the Apple HIG:
4
- * https://developer.apple.com/design/human-interface-guidelines/macos/visual-design/typography/
4
+ * https://developer.apple.com/design/human-interface-guidelines/typography
5
5
  * These mappings and variants are subject to change as we moved to a unified cross platform Fluent typography ramp
6
6
  * Github #598 also tracks pulling these values from a Native Module rather than hardcoding the numbers in JS.
7
7
  */
8
8
  export declare function fallbackAppleTypography(): Typography;
9
- //# sourceMappingURL=appleTypography.macos.d.ts.map
9
+ //# sourceMappingURL=appleTypography.macos.d.ts.map
@@ -1,70 +1,70 @@
1
1
  /**
2
2
  * The Typography is designed to match the styles defined in the Apple HIG:
3
- * https://developer.apple.com/design/human-interface-guidelines/macos/visual-design/typography/
3
+ * https://developer.apple.com/design/human-interface-guidelines/typography
4
4
  * These mappings and variants are subject to change as we moved to a unified cross platform Fluent typography ramp
5
5
  * Github #598 also tracks pulling these values from a Native Module rather than hardcoding the numbers in JS.
6
6
  */
7
7
  export function fallbackAppleTypography() {
8
- const appleDict = {
9
- sizes: {
10
- caption: 10, // Caption 1
11
- secondary: 11, // Callout
12
- body: 13, // Body
13
- subheader: 16, // Subheadline
14
- header: 20, // Headline
15
- hero: 22, /// Title 1
16
- heroLarge: 26, // Large Title,
17
- },
18
- weights: {
19
- ultralight: '100',
20
- thin: '200',
21
- light: '300',
22
- regular: '400',
23
- medium: '500',
24
- semiBold: '600',
25
- bold: '700',
26
- heavy: '800',
27
- black: '900',
28
- },
29
- families: {
30
- primary: 'System',
31
- secondary: 'System',
32
- cursive: 'System',
33
- monospace: 'System',
34
- numeric: 'System',
35
- sansSerif: 'System',
36
- serif: 'System',
37
- },
38
- variants: {
39
- captionStandard: { face: 'primary', size: 'caption', weight: '500' },
40
- secondaryStandard: { face: 'primary', size: 'secondary', weight: '400' },
41
- secondarySemibold: { face: 'primary', size: 'secondary', weight: '600' },
42
- bodyStandard: { face: 'primary', size: 'body', weight: '400' },
43
- bodySemibold: { face: 'primary', size: 'body', weight: '600' },
44
- subheaderStandard: { face: 'primary', size: 'subheader', weight: '400' },
45
- subheaderSemibold: { face: 'primary', size: 'subheader', weight: '600' },
46
- headerStandard: { face: 'primary', size: 'header', weight: '700' },
47
- headerSemibold: { face: 'primary', size: 'header', weight: '800' },
48
- heroStandard: { face: 'primary', size: 'hero', weight: '400' },
49
- heroSemibold: { face: 'primary', size: 'hero', weight: '700' },
50
- heroLargeStandard: { face: 'primary', size: 'heroLarge', weight: '400' },
51
- heroLargeSemibold: { face: 'primary', size: 'heroLarge', weight: '700' },
52
- // mocked out
53
- caption1: { face: 'primary', size: 'caption', weight: '500' },
54
- body1: { face: 'primary', size: 'secondary', weight: '400' },
55
- body1Strong: { face: 'primary', size: 'secondary', weight: '600' },
56
- body2: { face: 'primary', size: 'body', weight: '400' },
57
- body2Strong: { face: 'primary', size: 'body', weight: '600' },
58
- subtitle1: { face: 'primary', size: 'header', weight: '700' },
59
- subtitle1Strong: { face: 'primary', size: 'header', weight: '800' },
60
- subtitle2: { face: 'primary', size: 'subheader', weight: '400' },
61
- subtitle2Strong: { face: 'primary', size: 'subheader', weight: '600' },
62
- title1: { face: 'primary', size: 'hero', weight: '400' },
63
- title1Strong: { face: 'primary', size: 'hero', weight: '700' },
64
- largeTitle: { face: 'primary', size: 'heroLarge', weight: '400' },
65
- display: { face: 'primary', size: 'heroLarge', weight: '700' },
66
- },
67
- };
68
- return appleDict;
8
+ const appleDict = {
9
+ sizes: {
10
+ caption: 10, // Caption 1
11
+ secondary: 11, // Callout
12
+ body: 13, // Body
13
+ subheader: 16, // Subheadline
14
+ header: 20, // Headline
15
+ hero: 22, /// Title 1
16
+ heroLarge: 26, // Large Title,
17
+ },
18
+ weights: {
19
+ ultralight: '100',
20
+ thin: '200',
21
+ light: '300',
22
+ regular: '400',
23
+ medium: '500',
24
+ semiBold: '600',
25
+ bold: '700',
26
+ heavy: '800',
27
+ black: '900',
28
+ },
29
+ families: {
30
+ primary: 'System',
31
+ secondary: 'System',
32
+ cursive: 'System',
33
+ monospace: 'System',
34
+ numeric: 'System',
35
+ sansSerif: 'System',
36
+ serif: 'System',
37
+ },
38
+ variants: {
39
+ captionStandard: { face: 'primary', size: 'caption', weight: '500' },
40
+ secondaryStandard: { face: 'primary', size: 'secondary', weight: '400' },
41
+ secondarySemibold: { face: 'primary', size: 'secondary', weight: '600' },
42
+ bodyStandard: { face: 'primary', size: 'body', weight: '400' },
43
+ bodySemibold: { face: 'primary', size: 'body', weight: '600' },
44
+ subheaderStandard: { face: 'primary', size: 'subheader', weight: '400' },
45
+ subheaderSemibold: { face: 'primary', size: 'subheader', weight: '600' },
46
+ headerStandard: { face: 'primary', size: 'header', weight: '700' },
47
+ headerSemibold: { face: 'primary', size: 'header', weight: '800' },
48
+ heroStandard: { face: 'primary', size: 'hero', weight: '400' },
49
+ heroSemibold: { face: 'primary', size: 'hero', weight: '700' },
50
+ heroLargeStandard: { face: 'primary', size: 'heroLarge', weight: '400' },
51
+ heroLargeSemibold: { face: 'primary', size: 'heroLarge', weight: '700' },
52
+ // mocked out
53
+ caption1: { face: 'primary', size: 'caption', weight: '500' },
54
+ body1: { face: 'primary', size: 'secondary', weight: '400' },
55
+ body1Strong: { face: 'primary', size: 'secondary', weight: '600' },
56
+ body2: { face: 'primary', size: 'body', weight: '400' },
57
+ body2Strong: { face: 'primary', size: 'body', weight: '600' },
58
+ subtitle1: { face: 'primary', size: 'header', weight: '700' },
59
+ subtitle1Strong: { face: 'primary', size: 'header', weight: '800' },
60
+ subtitle2: { face: 'primary', size: 'subheader', weight: '400' },
61
+ subtitle2Strong: { face: 'primary', size: 'subheader', weight: '600' },
62
+ title1: { face: 'primary', size: 'hero', weight: '400' },
63
+ title1Strong: { face: 'primary', size: 'hero', weight: '700' },
64
+ largeTitle: { face: 'primary', size: 'heroLarge', weight: '400' },
65
+ display: { face: 'primary', size: 'heroLarge', weight: '700' },
66
+ },
67
+ };
68
+ return appleDict;
69
69
  }
70
- //# sourceMappingURL=appleTypography.macos.js.map
70
+ //# sourceMappingURL=appleTypography.macos.js.map
@@ -1,3 +1,3 @@
1
1
  import { ThemeReference } from '@fluentui-react-native/theme';
2
2
  export declare function createAppleTheme(): ThemeReference;
3
- //# sourceMappingURL=createAppleTheme.d.ts.map
3
+ //# sourceMappingURL=createAppleTheme.d.ts.map
@@ -1,3 +1,3 @@
1
1
  import { ThemeReference } from '@fluentui-react-native/theme';
2
2
  export declare function createAppleTheme(): ThemeReference;
3
- //# sourceMappingURL=createAppleTheme.ios.d.ts.map
3
+ //# sourceMappingURL=createAppleTheme.ios.d.ts.map
@@ -3,18 +3,18 @@ import { NativeAppearanceAdditions } from '@fluentui-react-native/experimental-a
3
3
  import { ThemeReference } from '@fluentui-react-native/theme';
4
4
  import { getBaseAppleThemeIOS } from './appleTheme.ios';
5
5
  export function createAppleTheme() {
6
- const appleThemeReference = new ThemeReference({}, () => {
7
- const isLightMode = Appearance.getColorScheme() === 'light';
8
- const isElevated = NativeAppearanceAdditions.userInterfaceLevel() === 'elevated';
9
- return getBaseAppleThemeIOS(isLightMode, isElevated);
10
- });
11
- Appearance.addChangeListener(() => {
12
- appleThemeReference.invalidate();
13
- });
14
- const eventEmitter = new NativeEventEmitter(NativeAppearanceAdditions);
15
- eventEmitter.addListener('appearanceChanged', (_newTraits) => {
16
- appleThemeReference.invalidate();
17
- });
18
- return appleThemeReference;
6
+ const appleThemeReference = new ThemeReference({}, () => {
7
+ const isLightMode = Appearance.getColorScheme() === 'light';
8
+ const isElevated = NativeAppearanceAdditions.userInterfaceLevel() === 'elevated';
9
+ return getBaseAppleThemeIOS(isLightMode, isElevated);
10
+ });
11
+ Appearance.addChangeListener(() => {
12
+ appleThemeReference.invalidate();
13
+ });
14
+ const eventEmitter = new NativeEventEmitter(NativeAppearanceAdditions);
15
+ eventEmitter.addListener('appearanceChanged', (_newTraits) => {
16
+ appleThemeReference.invalidate();
17
+ });
18
+ return appleThemeReference;
19
19
  }
20
- //# sourceMappingURL=createAppleTheme.ios.js.map
20
+ //# sourceMappingURL=createAppleTheme.ios.js.map
@@ -1,7 +1,7 @@
1
1
  import { createDefaultTheme } from '@fluentui-react-native/default-theme';
2
2
  import { ThemeReference } from '@fluentui-react-native/theme';
3
3
  export function createAppleTheme() {
4
- console.warn('Platform is not supported by apple theme, using default theme');
5
- return new ThemeReference(createDefaultTheme());
4
+ console.warn('Platform is not supported by apple theme, using default theme');
5
+ return new ThemeReference(createDefaultTheme());
6
6
  }
7
- //# sourceMappingURL=createAppleTheme.js.map
7
+ //# sourceMappingURL=createAppleTheme.js.map
@@ -1,3 +1,3 @@
1
1
  import { ThemeReference } from '@fluentui-react-native/theme';
2
2
  export declare function createAppleTheme(): ThemeReference;
3
- //# sourceMappingURL=createAppleTheme.macos.d.ts.map
3
+ //# sourceMappingURL=createAppleTheme.macos.d.ts.map
@@ -6,30 +6,30 @@ import { setIsHighContrast } from './appleHighContrast.macos';
6
6
  import { getBaseAppleThemeMacOS } from './appleTheme.macos';
7
7
  let appleThemeReference;
8
8
  export function createAppleTheme() {
9
- appleThemeReference = new ThemeReference({}, () => {
10
- const appearance = Appearance.getColorScheme();
11
- const mode = getCurrentAppearance(appearance, 'light');
12
- return getBaseAppleThemeMacOS(mode);
13
- });
14
- // Fetch initial system settings for high contrast mode
15
- highContrastHandler();
16
- // Invalidate theme and set prop when high contrast setting changes
17
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
18
- // @ts-ignore
19
- AccessibilityInfo.addEventListener('highContrastChanged', () => {
9
+ appleThemeReference = new ThemeReference({}, () => {
10
+ const appearance = Appearance.getColorScheme();
11
+ const mode = getCurrentAppearance(appearance, 'light');
12
+ return getBaseAppleThemeMacOS(mode);
13
+ });
14
+ // Fetch initial system settings for high contrast mode
20
15
  highContrastHandler();
21
- });
22
- Appearance.addChangeListener(() => {
23
- appleThemeReference.invalidate();
24
- });
25
- return appleThemeReference;
16
+ // Invalidate theme and set prop when high contrast setting changes
17
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
18
+ // @ts-ignore
19
+ AccessibilityInfo.addEventListener('highContrastChanged', () => {
20
+ highContrastHandler();
21
+ });
22
+ Appearance.addChangeListener(() => {
23
+ appleThemeReference.invalidate();
24
+ });
25
+ return appleThemeReference;
26
26
  }
27
27
  function highContrastHandler() {
28
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
29
- // @ts-ignore
30
- AccessibilityInfo.isHighContrastEnabled().then((isEnabled) => {
31
- setIsHighContrast(isEnabled);
32
- appleThemeReference.invalidate();
33
- });
28
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
29
+ // @ts-ignore
30
+ AccessibilityInfo.isHighContrastEnabled().then((isEnabled) => {
31
+ setIsHighContrast(isEnabled);
32
+ appleThemeReference.invalidate();
33
+ });
34
34
  }
35
- //# sourceMappingURL=createAppleTheme.macos.js.map
35
+ //# sourceMappingURL=createAppleTheme.macos.js.map
@@ -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.ios.d.ts.map
5
+ //# sourceMappingURL=createFontAliasTokens.ios.d.ts.map