@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,24 +1,24 @@
1
1
  import type { ColorValue } from 'react-native';
2
2
  /** Palette of colors defined in FluentUI Apple */
3
3
  interface FluentUIApplePalette {
4
- communicationBlue: ColorValue;
5
- communicationBlueTint10: ColorValue;
6
- communicationBlueTint20: ColorValue;
7
- communicationBlueTint30: ColorValue;
8
- dangerPrimary: ColorValue;
9
- dangerTint10: ColorValue;
10
- gray20: ColorValue;
11
- gray30: ColorValue;
12
- gray40: ColorValue;
13
- successTint10: ColorValue;
14
- warningPrimary: ColorValue;
15
- warningTint10: ColorValue;
4
+ communicationBlue: ColorValue;
5
+ communicationBlueTint10: ColorValue;
6
+ communicationBlueTint20: ColorValue;
7
+ communicationBlueTint30: ColorValue;
8
+ dangerPrimary: ColorValue;
9
+ dangerTint10: ColorValue;
10
+ gray20: ColorValue;
11
+ gray30: ColorValue;
12
+ gray40: ColorValue;
13
+ successTint10: ColorValue;
14
+ warningPrimary: ColorValue;
15
+ warningTint10: ColorValue;
16
16
  }
17
17
  /** FluentUI Apple Colors defined for the iOS Button */
18
18
  interface FluentAppleButtonColors {
19
- buttonBackgroundFilledPressed: ColorValue;
20
- buttonTitleDisabled: ColorValue;
19
+ buttonBackgroundFilledPressed: ColorValue;
20
+ buttonTitleDisabled: ColorValue;
21
21
  }
22
22
  export type ApplePalette = FluentUIApplePalette & FluentAppleButtonColors;
23
23
  export {};
24
- //# sourceMappingURL=appleColors.types.ios.d.ts.map
24
+ //# sourceMappingURL=appleColors.types.ios.d.ts.map
@@ -1,2 +1,2 @@
1
1
  export {};
2
- //# sourceMappingURL=appleColors.types.ios.js.map
2
+ //# sourceMappingURL=appleColors.types.ios.js.map
@@ -1,155 +1,155 @@
1
1
  import type { ColorValue } from 'react-native';
2
2
  /** Palette of Apple Platform Colors, defined at https://developer.apple.com/documentation/appkit/nscolor/ui_element_colors */
3
3
  export interface AppleSemanticPalette {
4
- /** The primary color to use for text labels */
5
- labelColor: ColorValue;
6
- /** The secondary color to use for text labels */
7
- secondaryLabelColor: ColorValue;
8
- /** The tertiary color to use for text labels */
9
- tertiaryLabelColor: ColorValue;
10
- /** The quaternary color to use for text labels and separators */
11
- quaternaryLabelColor: ColorValue;
12
- /** The color to use for text */
13
- textColor: ColorValue;
14
- /** The color to use for placeholder text in controls or text views */
15
- placeholderTextColor: ColorValue;
16
- /** The color to use for selected text */
17
- selectedTextColor: ColorValue;
18
- /** The color to use for the background area behind text */
19
- textBackgroundColor: ColorValue;
20
- /** The color to use for the background of selected text */
21
- selectedTextBackgroundColor: ColorValue;
22
- /** The color to use for the keyboard focus ring around controls */
23
- keyboardFocusIndicatorColor: ColorValue;
24
- /** The color to use for selected text in an unemphasized context */
25
- unemphasizedSelectedTextColor: ColorValue;
26
- /** The color to use for the text background in an unemphasized context */
27
- unemphasizedSelectedTextBackgroundColor: ColorValue;
28
- /** The color to use for links */
29
- linkColor: ColorValue;
30
- /** The color to use for separators between different sections of content */
31
- separatorColor: ColorValue;
32
- /** The color to use for the background of selected and emphasized content */
33
- selectedContentBackgroundColor: ColorValue;
34
- /** The color to use for selected and unemphasized content */
35
- unemphasizedSelectedContentBackgroundColor: ColorValue;
36
- /** The color to use for the text in menu items */
37
- selectedMenuItemTextColor: ColorValue;
38
- /** The color to use for the optional gridlines, such as those in a table view */
39
- gridColor: ColorValue;
40
- /** The color to use for text in header cells in table views and outline views */
41
- headerTextColor: ColorValue;
42
- /** The colors to use for alternating (odd Rows) content, typically found in table views and collection views */
43
- alternatingOddContentBackgroundColor: ColorValue;
44
- /** The colors to use for alternating (even Rows)content, typically found in table views and collection views */
45
- alternatingEvenContentBackgroundColor: ColorValue;
46
- /** The user's current accent color preference */
47
- controlAccentColor: ColorValue;
48
- /** The color to use for the flat surfaces of a control */
49
- controlColor: ColorValue;
50
- /** The color to use for the background of large controls, such as scroll views or table views */
51
- controlBackgroundColor: ColorValue;
52
- /** The color to use for text on enabled controls */
53
- controlTextColor: ColorValue;
54
- /** The color to use for text on disabled controls */
55
- disabledControlTextColor: ColorValue;
56
- /** The color to use for the face of a selected control—that is, a control that has been clicked or is being dragged */
57
- selectedControlColor: ColorValue;
58
- /** The color to use for text in a selected control—that is, a control being clicked or dragged */
59
- selectedControlTextColor: ColorValue;
60
- /** The color to use for text in a selected control */
61
- alternateSelectedControlTextColor: ColorValue;
62
- /** The patterned color to use for the background of a scrubber control */
63
- scrubberTexturedBackground: ColorValue;
64
- /** The color to use for the window background */
65
- windowBackgroundColor: ColorValue;
66
- /** The color to use for text in a window's frame */
67
- windowFrameTextColor: ColorValue;
68
- /** The color to use in the area beneath your window's views */
69
- underPageBackgroundColor: ColorValue;
70
- /** The highlight color to use for the bubble that shows inline search result values */
71
- findHighlightColor: ColorValue;
72
- /** The color to use as a virtual light source on the screen */
73
- highlightColor: ColorValue;
74
- /** The color to use for virtual shadows cast by raised objects on the screen */
75
- shadowColor: ColorValue;
4
+ /** The primary color to use for text labels */
5
+ labelColor: ColorValue;
6
+ /** The secondary color to use for text labels */
7
+ secondaryLabelColor: ColorValue;
8
+ /** The tertiary color to use for text labels */
9
+ tertiaryLabelColor: ColorValue;
10
+ /** The quaternary color to use for text labels and separators */
11
+ quaternaryLabelColor: ColorValue;
12
+ /** The color to use for text */
13
+ textColor: ColorValue;
14
+ /** The color to use for placeholder text in controls or text views */
15
+ placeholderTextColor: ColorValue;
16
+ /** The color to use for selected text */
17
+ selectedTextColor: ColorValue;
18
+ /** The color to use for the background area behind text */
19
+ textBackgroundColor: ColorValue;
20
+ /** The color to use for the background of selected text */
21
+ selectedTextBackgroundColor: ColorValue;
22
+ /** The color to use for the keyboard focus ring around controls */
23
+ keyboardFocusIndicatorColor: ColorValue;
24
+ /** The color to use for selected text in an unemphasized context */
25
+ unemphasizedSelectedTextColor: ColorValue;
26
+ /** The color to use for the text background in an unemphasized context */
27
+ unemphasizedSelectedTextBackgroundColor: ColorValue;
28
+ /** The color to use for links */
29
+ linkColor: ColorValue;
30
+ /** The color to use for separators between different sections of content */
31
+ separatorColor: ColorValue;
32
+ /** The color to use for the background of selected and emphasized content */
33
+ selectedContentBackgroundColor: ColorValue;
34
+ /** The color to use for selected and unemphasized content */
35
+ unemphasizedSelectedContentBackgroundColor: ColorValue;
36
+ /** The color to use for the text in menu items */
37
+ selectedMenuItemTextColor: ColorValue;
38
+ /** The color to use for the optional gridlines, such as those in a table view */
39
+ gridColor: ColorValue;
40
+ /** The color to use for text in header cells in table views and outline views */
41
+ headerTextColor: ColorValue;
42
+ /** The colors to use for alternating (odd Rows) content, typically found in table views and collection views */
43
+ alternatingOddContentBackgroundColor: ColorValue;
44
+ /** The colors to use for alternating (even Rows)content, typically found in table views and collection views */
45
+ alternatingEvenContentBackgroundColor: ColorValue;
46
+ /** The user's current accent color preference */
47
+ controlAccentColor: ColorValue;
48
+ /** The color to use for the flat surfaces of a control */
49
+ controlColor: ColorValue;
50
+ /** The color to use for the background of large controls, such as scroll views or table views */
51
+ controlBackgroundColor: ColorValue;
52
+ /** The color to use for text on enabled controls */
53
+ controlTextColor: ColorValue;
54
+ /** The color to use for text on disabled controls */
55
+ disabledControlTextColor: ColorValue;
56
+ /** The color to use for the face of a selected control—that is, a control that has been clicked or is being dragged */
57
+ selectedControlColor: ColorValue;
58
+ /** The color to use for text in a selected control—that is, a control being clicked or dragged */
59
+ selectedControlTextColor: ColorValue;
60
+ /** The color to use for text in a selected control */
61
+ alternateSelectedControlTextColor: ColorValue;
62
+ /** The patterned color to use for the background of a scrubber control */
63
+ scrubberTexturedBackground: ColorValue;
64
+ /** The color to use for the window background */
65
+ windowBackgroundColor: ColorValue;
66
+ /** The color to use for text in a window's frame */
67
+ windowFrameTextColor: ColorValue;
68
+ /** The color to use in the area beneath your window's views */
69
+ underPageBackgroundColor: ColorValue;
70
+ /** The highlight color to use for the bubble that shows inline search result values */
71
+ findHighlightColor: ColorValue;
72
+ /** The color to use as a virtual light source on the screen */
73
+ highlightColor: ColorValue;
74
+ /** The color to use for virtual shadows cast by raised objects on the screen */
75
+ shadowColor: ColorValue;
76
76
  }
77
77
  /** Palette of colors defined in FluentUI Apple */
78
78
  interface FluentUIAppleBasePalette {
79
- blue10: ColorValue;
80
- blueMagenta20: ColorValue;
81
- blueMagenta30: ColorValue;
82
- communicationBlue: ColorValue;
83
- communicationBlueShade10: ColorValue;
84
- communicationBlueShade20: ColorValue;
85
- communicationBlueShade30: ColorValue;
86
- communicationBlueTint10: ColorValue;
87
- communicationBlueTint20: ColorValue;
88
- communicationBlueTint30: ColorValue;
89
- communicationBlueTint40: ColorValue;
90
- cyan20: ColorValue;
91
- cyan30: ColorValue;
92
- cyanBlue10: ColorValue;
93
- cyanBlue20: ColorValue;
94
- dangerPrimary: ColorValue;
95
- dangerShade10: ColorValue;
96
- dangerShade20: ColorValue;
97
- dangerShade30: ColorValue;
98
- dangerTint10: ColorValue;
99
- dangerTint20: ColorValue;
100
- dangerTint30: ColorValue;
101
- dangerTint40: ColorValue;
102
- gray20: ColorValue;
103
- gray25: ColorValue;
104
- gray30: ColorValue;
105
- gray40: ColorValue;
106
- gray50: ColorValue;
107
- gray100: ColorValue;
108
- gray200: ColorValue;
109
- gray300: ColorValue;
110
- gray400: ColorValue;
111
- gray500: ColorValue;
112
- gray600: ColorValue;
113
- gray700: ColorValue;
114
- gray800: ColorValue;
115
- gray900: ColorValue;
116
- gray950: ColorValue;
117
- green10: ColorValue;
118
- green20: ColorValue;
119
- magenta10: ColorValue;
120
- magenta20: ColorValue;
121
- magentaPink10: ColorValue;
122
- orange20: ColorValue;
123
- orange30: ColorValue;
124
- orangeYellow20: ColorValue;
125
- pinkRed10: ColorValue;
126
- presenceAvailable: ColorValue;
127
- presenceAway: ColorValue;
128
- presenceBlocked: ColorValue;
129
- presenceBusy: ColorValue;
130
- presenceDnd: ColorValue;
131
- presenceOffline: ColorValue;
132
- presenceOof: ColorValue;
133
- presenceUnknown: ColorValue;
134
- red10: ColorValue;
135
- red20: ColorValue;
136
- successPrimary: ColorValue;
137
- successShade10: ColorValue;
138
- successShade20: ColorValue;
139
- successShade30: ColorValue;
140
- successTint10: ColorValue;
141
- successTint20: ColorValue;
142
- successTint30: ColorValue;
143
- successTint40: ColorValue;
144
- warningPrimary: ColorValue;
145
- warningShade10: ColorValue;
146
- warningShade20: ColorValue;
147
- warningShade30: ColorValue;
148
- warningTint10: ColorValue;
149
- warningTint20: ColorValue;
150
- warningTint30: ColorValue;
151
- warningTint40: ColorValue;
79
+ blue10: ColorValue;
80
+ blueMagenta20: ColorValue;
81
+ blueMagenta30: ColorValue;
82
+ communicationBlue: ColorValue;
83
+ communicationBlueShade10: ColorValue;
84
+ communicationBlueShade20: ColorValue;
85
+ communicationBlueShade30: ColorValue;
86
+ communicationBlueTint10: ColorValue;
87
+ communicationBlueTint20: ColorValue;
88
+ communicationBlueTint30: ColorValue;
89
+ communicationBlueTint40: ColorValue;
90
+ cyan20: ColorValue;
91
+ cyan30: ColorValue;
92
+ cyanBlue10: ColorValue;
93
+ cyanBlue20: ColorValue;
94
+ dangerPrimary: ColorValue;
95
+ dangerShade10: ColorValue;
96
+ dangerShade20: ColorValue;
97
+ dangerShade30: ColorValue;
98
+ dangerTint10: ColorValue;
99
+ dangerTint20: ColorValue;
100
+ dangerTint30: ColorValue;
101
+ dangerTint40: ColorValue;
102
+ gray20: ColorValue;
103
+ gray25: ColorValue;
104
+ gray30: ColorValue;
105
+ gray40: ColorValue;
106
+ gray50: ColorValue;
107
+ gray100: ColorValue;
108
+ gray200: ColorValue;
109
+ gray300: ColorValue;
110
+ gray400: ColorValue;
111
+ gray500: ColorValue;
112
+ gray600: ColorValue;
113
+ gray700: ColorValue;
114
+ gray800: ColorValue;
115
+ gray900: ColorValue;
116
+ gray950: ColorValue;
117
+ green10: ColorValue;
118
+ green20: ColorValue;
119
+ magenta10: ColorValue;
120
+ magenta20: ColorValue;
121
+ magentaPink10: ColorValue;
122
+ orange20: ColorValue;
123
+ orange30: ColorValue;
124
+ orangeYellow20: ColorValue;
125
+ pinkRed10: ColorValue;
126
+ presenceAvailable: ColorValue;
127
+ presenceAway: ColorValue;
128
+ presenceBlocked: ColorValue;
129
+ presenceBusy: ColorValue;
130
+ presenceDnd: ColorValue;
131
+ presenceOffline: ColorValue;
132
+ presenceOof: ColorValue;
133
+ presenceUnknown: ColorValue;
134
+ red10: ColorValue;
135
+ red20: ColorValue;
136
+ successPrimary: ColorValue;
137
+ successShade10: ColorValue;
138
+ successShade20: ColorValue;
139
+ successShade30: ColorValue;
140
+ successTint10: ColorValue;
141
+ successTint20: ColorValue;
142
+ successTint30: ColorValue;
143
+ successTint40: ColorValue;
144
+ warningPrimary: ColorValue;
145
+ warningShade10: ColorValue;
146
+ warningShade20: ColorValue;
147
+ warningShade30: ColorValue;
148
+ warningTint10: ColorValue;
149
+ warningTint20: ColorValue;
150
+ warningTint30: ColorValue;
151
+ warningTint40: ColorValue;
152
152
  }
153
153
  export type FluentUIApplePalette = FluentUIAppleBasePalette;
154
154
  export {};
155
- //# sourceMappingURL=appleColors.types.macos.d.ts.map
155
+ //# sourceMappingURL=appleColors.types.macos.d.ts.map
@@ -1,2 +1,2 @@
1
1
  export {};
2
- //# sourceMappingURL=appleColors.types.macos.js.map
2
+ //# sourceMappingURL=appleColors.types.macos.js.map
@@ -1,3 +1,3 @@
1
1
  export declare function setIsHighContrast(newIsHighContrast: boolean): void;
2
2
  export declare function getIsHighContrast(): boolean;
3
- //# sourceMappingURL=appleHighContrast.macos.d.ts.map
3
+ //# sourceMappingURL=appleHighContrast.macos.d.ts.map
@@ -1,8 +1,8 @@
1
1
  import { isHighContrast, setIsHighContrast as setIsHighContrastCore } from '@fluentui-react-native/theming-utils';
2
2
  export function setIsHighContrast(newIsHighContrast) {
3
- setIsHighContrastCore(newIsHighContrast);
3
+ setIsHighContrastCore(newIsHighContrast);
4
4
  }
5
5
  export function getIsHighContrast() {
6
- return isHighContrast();
6
+ return isHighContrast();
7
7
  }
8
- //# sourceMappingURL=appleHighContrast.macos.js.map
8
+ //# sourceMappingURL=appleHighContrast.macos.js.map
@@ -1,3 +1,3 @@
1
1
  import type { ThemeShadowDefinition } from '@fluentui-react-native/theme-types';
2
2
  export declare function iOSShadows(): ThemeShadowDefinition;
3
- //# sourceMappingURL=appleShadows.ios.d.ts.map
3
+ //# sourceMappingURL=appleShadows.ios.d.ts.map
@@ -2,8 +2,8 @@ import { Appearance } from 'react-native';
2
2
  import { getCurrentAppearance } from '@fluentui-react-native/theming-utils';
3
3
  import { createiOSShadowAliasTokens } from './createiOSAliasTokens';
4
4
  export function iOSShadows() {
5
- const appearance = Appearance.getColorScheme();
6
- const mode = getCurrentAppearance(appearance, 'light');
7
- return createiOSShadowAliasTokens(mode);
5
+ const appearance = Appearance.getColorScheme();
6
+ const mode = getCurrentAppearance(appearance, 'light');
7
+ return createiOSShadowAliasTokens(mode);
8
8
  }
9
- //# sourceMappingURL=appleShadows.ios.js.map
9
+ //# sourceMappingURL=appleShadows.ios.js.map
@@ -1,3 +1,3 @@
1
1
  import type { ThemeShadowDefinition, AppearanceOptions } from '@fluentui-react-native/theme-types';
2
2
  export declare function fallbackAppleShadows(mode: AppearanceOptions): ThemeShadowDefinition;
3
- //# sourceMappingURL=appleShadows.macos.d.ts.map
3
+ //# sourceMappingURL=appleShadows.macos.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { getIsHighContrast } from './appleHighContrast.macos';
2
2
  import { createMacOSShadowAliasTokens } from './createMacOSAliasTokens';
3
3
  export function fallbackAppleShadows(mode) {
4
- return createMacOSShadowAliasTokens(mode, getIsHighContrast());
4
+ return createMacOSShadowAliasTokens(mode, getIsHighContrast());
5
5
  }
6
- //# sourceMappingURL=appleShadows.macos.js.map
6
+ //# sourceMappingURL=appleShadows.macos.js.map
@@ -2,4 +2,4 @@ import type { Theme } from '@fluentui-react-native/theme-types';
2
2
  declare function getBaseAppleThemeIOSWorker(isLightMode: boolean, isElevated: boolean): Theme;
3
3
  export declare const getBaseAppleThemeIOS: typeof getBaseAppleThemeIOSWorker;
4
4
  export {};
5
- //# sourceMappingURL=appleTheme.ios.d.ts.map
5
+ //# sourceMappingURL=appleTheme.ios.d.ts.map
@@ -3,132 +3,132 @@ import { paletteFromAppleColors } from './appleColors.ios';
3
3
  import { iOSShadows } from './appleShadows.ios';
4
4
  import { appleTypography } from './appleTypography.ios';
5
5
  function appleSpacing() {
6
- return {
7
- s2: '4px',
8
- s1: '8px',
9
- l1: '20px',
10
- l2: '32px',
11
- };
6
+ return {
7
+ s2: '4px',
8
+ s1: '8px',
9
+ l1: '20px',
10
+ l2: '32px',
11
+ };
12
12
  }
13
13
  const appleComponents = {
14
- // The Default Button corresponds to the "secondary outline" button style on iOS
15
- Button: {
16
- tokens: {
17
- borderRadius: 8,
18
- borderWidth: 1,
14
+ // The Default Button corresponds to the "secondary outline" button style on iOS
15
+ Button: {
16
+ tokens: {
17
+ borderRadius: 8,
18
+ borderWidth: 1,
19
+ },
20
+ root: {
21
+ style: {
22
+ margin: 8, // Padding around the outside of the button
23
+ },
24
+ },
25
+ stack: {
26
+ style: {
27
+ paddingVertical: 10,
28
+ paddingHorizontal: 14,
29
+ },
30
+ },
31
+ icon: {
32
+ style: {
33
+ marginEnd: 8,
34
+ },
35
+ },
36
+ content: {
37
+ fontSize: 12,
38
+ height: 18,
39
+ },
40
+ },
41
+ PrimaryButton: {
42
+ tokens: {
43
+ borderRadius: 8,
44
+ borderWidth: 1,
45
+ },
46
+ root: {
47
+ style: {
48
+ margin: 8, // Padding around the outside of the button
49
+ },
50
+ },
51
+ stack: {
52
+ style: {
53
+ paddingVertical: 16,
54
+ paddingHorizontal: 20,
55
+ },
56
+ },
57
+ icon: {
58
+ style: {
59
+ marginEnd: 10,
60
+ },
61
+ },
62
+ content: {
63
+ fontSize: 15,
64
+ height: 20,
65
+ },
66
+ },
67
+ StealthButton: {
68
+ tokens: {
69
+ borderRadius: 8,
70
+ borderWidth: 1,
71
+ },
72
+ root: {
73
+ style: {
74
+ margin: 8, // Padding around the outside of the button
75
+ },
76
+ },
77
+ stack: {
78
+ style: {
79
+ paddingVertical: 7,
80
+ paddingHorizontal: 12,
81
+ },
82
+ },
83
+ icon: {
84
+ style: {
85
+ display: 'none',
86
+ },
87
+ },
88
+ content: {
89
+ fontSize: 15,
90
+ height: 20,
91
+ },
92
+ },
93
+ RNFText: {
94
+ tokens: {
95
+ variant: 'bodyStandard',
96
+ },
97
+ },
98
+ Checkbox: {
99
+ root: {
100
+ style: {
101
+ minHeight: 20,
102
+ marginVertical: 2,
103
+ },
104
+ },
105
+ checkbox: {
106
+ style: {
107
+ borderRadius: 100,
108
+ minHeight: 24,
109
+ minWidth: 24,
110
+ },
111
+ },
112
+ checkmarkIcon: {
113
+ width: 8.5,
114
+ height: 7,
115
+ style: {
116
+ marginVertical: 8.5,
117
+ marginLeft: 8,
118
+ marginRight: 7,
119
+ },
120
+ },
19
121
  },
20
- root: {
21
- style: {
22
- margin: 8, // Padding around the outside of the button
23
- },
24
- },
25
- stack: {
26
- style: {
27
- paddingVertical: 10,
28
- paddingHorizontal: 14,
29
- },
30
- },
31
- icon: {
32
- style: {
33
- marginEnd: 8,
34
- },
35
- },
36
- content: {
37
- fontSize: 12,
38
- height: 18,
39
- },
40
- },
41
- PrimaryButton: {
42
- tokens: {
43
- borderRadius: 8,
44
- borderWidth: 1,
45
- },
46
- root: {
47
- style: {
48
- margin: 8, // Padding around the outside of the button
49
- },
50
- },
51
- stack: {
52
- style: {
53
- paddingVertical: 16,
54
- paddingHorizontal: 20,
55
- },
56
- },
57
- icon: {
58
- style: {
59
- marginEnd: 10,
60
- },
61
- },
62
- content: {
63
- fontSize: 15,
64
- height: 20,
65
- },
66
- },
67
- StealthButton: {
68
- tokens: {
69
- borderRadius: 8,
70
- borderWidth: 1,
71
- },
72
- root: {
73
- style: {
74
- margin: 8, // Padding around the outside of the button
75
- },
76
- },
77
- stack: {
78
- style: {
79
- paddingVertical: 7,
80
- paddingHorizontal: 12,
81
- },
82
- },
83
- icon: {
84
- style: {
85
- display: 'none',
86
- },
87
- },
88
- content: {
89
- fontSize: 15,
90
- height: 20,
91
- },
92
- },
93
- RNFText: {
94
- tokens: {
95
- variant: 'bodyStandard',
96
- },
97
- },
98
- Checkbox: {
99
- root: {
100
- style: {
101
- minHeight: 20,
102
- marginVertical: 2,
103
- },
104
- },
105
- checkbox: {
106
- style: {
107
- borderRadius: 100,
108
- minHeight: 24,
109
- minWidth: 24,
110
- },
111
- },
112
- checkmarkIcon: {
113
- width: 8.5,
114
- height: 7,
115
- style: {
116
- marginVertical: 8.5,
117
- marginLeft: 8,
118
- marginRight: 7,
119
- },
120
- },
121
- },
122
122
  };
123
123
  function getBaseAppleThemeIOSWorker(isLightMode, isElevated) {
124
- return {
125
- colors: paletteFromAppleColors(isLightMode, isElevated),
126
- typography: appleTypography(),
127
- shadows: iOSShadows(),
128
- spacing: appleSpacing(),
129
- components: appleComponents,
130
- host: { appearance: isLightMode ? 'light' : 'dark' },
131
- };
124
+ return {
125
+ colors: paletteFromAppleColors(isLightMode, isElevated),
126
+ typography: appleTypography(),
127
+ shadows: iOSShadows(),
128
+ spacing: appleSpacing(),
129
+ components: appleComponents,
130
+ host: { appearance: isLightMode ? 'light' : 'dark' },
131
+ };
132
132
  }
133
133
  export const getBaseAppleThemeIOS = memoize(getBaseAppleThemeIOSWorker);
134
- //# sourceMappingURL=appleTheme.ios.js.map
134
+ //# sourceMappingURL=appleTheme.ios.js.map