@fluentui-react-native/apple-theme 0.9.14 → 0.11.0
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.json +70 -1
- package/CHANGELOG.md +30 -2
- package/lib/appleColors.macos.js +2 -2
- package/lib/createMacOSAliasTokens.js +1 -1
- package/lib/createMacOSAliasTokens.js.map +1 -1
- package/lib/getMacOSAliasTokens.d.ts +471 -0
- package/lib/getMacOSAliasTokens.d.ts.map +1 -0
- package/lib/getMacOSAliasTokens.js +30 -0
- package/lib/getMacOSAliasTokens.js.map +1 -0
- package/lib-commonjs/appleColors.macos.js +2 -2
- package/lib-commonjs/createMacOSAliasTokens.js +2 -2
- package/lib-commonjs/createMacOSAliasTokens.js.map +1 -1
- package/lib-commonjs/getMacOSAliasTokens.d.ts +471 -0
- package/lib-commonjs/getMacOSAliasTokens.d.ts.map +1 -0
- package/lib-commonjs/getMacOSAliasTokens.js +37 -0
- package/lib-commonjs/getMacOSAliasTokens.js.map +1 -0
- package/package.json +5 -4
- package/src/appleColors.macos.ts +2 -2
- package/src/createMacOSAliasTokens.ts +1 -1
- package/src/getMacOSAliasTokens.ts +26 -0
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,76 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/apple-theme",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Wed, 06 Apr 2022 22:56:55 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/apple-theme_v0.11.0",
|
|
7
|
+
"version": "0.11.0",
|
|
8
|
+
"comments": {
|
|
9
|
+
"minor": [
|
|
10
|
+
{
|
|
11
|
+
"author": "ruaraki@microsoft.com",
|
|
12
|
+
"package": "@fluentui-react-native/apple-theme",
|
|
13
|
+
"commit": "bcd4ac6dc74295095a0564905024ef32d6450cff",
|
|
14
|
+
"comment": "Hook up design tokens"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@fluentui-react-native/apple-theme",
|
|
19
|
+
"comment": "Bump @fluentui-react-native/default-theme to v0.9.15",
|
|
20
|
+
"commit": "bcd4ac6dc74295095a0564905024ef32d6450cff"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "beachball",
|
|
24
|
+
"package": "@fluentui-react-native/apple-theme",
|
|
25
|
+
"comment": "Bump @fluentui-react-native/theming-utils to v0.9.4",
|
|
26
|
+
"commit": "bcd4ac6dc74295095a0564905024ef32d6450cff"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"date": "Tue, 05 Apr 2022 20:05:50 GMT",
|
|
33
|
+
"tag": "@fluentui-react-native/apple-theme_v0.10.0",
|
|
34
|
+
"version": "0.10.0",
|
|
35
|
+
"comments": {
|
|
36
|
+
"minor": [
|
|
37
|
+
{
|
|
38
|
+
"author": "ruaraki@microsoft.com",
|
|
39
|
+
"package": "@fluentui-react-native/apple-theme",
|
|
40
|
+
"commit": "c183b7eb02925bf1d1284ad1b3c80c0f2e0c442f",
|
|
41
|
+
"comment": "Move apple alias tokens out"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"author": "beachball",
|
|
45
|
+
"package": "@fluentui-react-native/apple-theme",
|
|
46
|
+
"comment": "Bump @fluentui-react-native/default-theme to v0.9.14",
|
|
47
|
+
"commit": "c183b7eb02925bf1d1284ad1b3c80c0f2e0c442f"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"author": "beachball",
|
|
51
|
+
"package": "@fluentui-react-native/apple-theme",
|
|
52
|
+
"comment": "Bump @fluentui-react-native/theming-utils to v0.9.3",
|
|
53
|
+
"commit": "c183b7eb02925bf1d1284ad1b3c80c0f2e0c442f"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"date": "Mon, 04 Apr 2022 18:41:35 GMT",
|
|
60
|
+
"tag": "@fluentui-react-native/apple-theme_v0.9.15",
|
|
61
|
+
"version": "0.9.15",
|
|
62
|
+
"comments": {
|
|
63
|
+
"patch": [
|
|
64
|
+
{
|
|
65
|
+
"author": "amchiu@microsoft.com",
|
|
66
|
+
"package": "@fluentui-react-native/apple-theme",
|
|
67
|
+
"commit": "535124a01c7ebb054cbe871a72d042fb699c6601",
|
|
68
|
+
"comment": "Fix button styling"
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"date": "Thu, 31 Mar 2022 07:27:47 GMT",
|
|
6
75
|
"tag": "@fluentui-react-native/apple-theme_v0.9.14",
|
|
7
76
|
"version": "0.9.14",
|
|
8
77
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,40 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/apple-theme
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 06 Apr 2022 22:56:55 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.11.0
|
|
8
|
+
|
|
9
|
+
Wed, 06 Apr 2022 22:56:55 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- Hook up design tokens (ruaraki@microsoft.com)
|
|
14
|
+
- Bump @fluentui-react-native/default-theme to v0.9.15
|
|
15
|
+
- Bump @fluentui-react-native/theming-utils to v0.9.4
|
|
16
|
+
|
|
17
|
+
## 0.10.0
|
|
18
|
+
|
|
19
|
+
Tue, 05 Apr 2022 20:05:50 GMT
|
|
20
|
+
|
|
21
|
+
### Minor changes
|
|
22
|
+
|
|
23
|
+
- Move apple alias tokens out (ruaraki@microsoft.com)
|
|
24
|
+
- Bump @fluentui-react-native/default-theme to v0.9.14
|
|
25
|
+
- Bump @fluentui-react-native/theming-utils to v0.9.3
|
|
26
|
+
|
|
27
|
+
## 0.9.15
|
|
28
|
+
|
|
29
|
+
Mon, 04 Apr 2022 18:41:35 GMT
|
|
30
|
+
|
|
31
|
+
### Patches
|
|
32
|
+
|
|
33
|
+
- Fix button styling (amchiu@microsoft.com)
|
|
34
|
+
|
|
7
35
|
## 0.9.14
|
|
8
36
|
|
|
9
|
-
Thu, 31 Mar 2022 07:
|
|
37
|
+
Thu, 31 Mar 2022 07:27:47 GMT
|
|
10
38
|
|
|
11
39
|
### Patches
|
|
12
40
|
|
package/lib/appleColors.macos.js
CHANGED
|
@@ -365,9 +365,9 @@ export function fallbackApplePalette() {
|
|
|
365
365
|
defaultHoveredBorder: fluentUIApple.neutralStroke2,
|
|
366
366
|
defaultHoveredContent: fluentUIApple.neutralForeground3,
|
|
367
367
|
defaultHoveredIcon: fluentUIApple.neutralForeground3,
|
|
368
|
-
defaultFocusedBackground: fluentUIApple.
|
|
368
|
+
defaultFocusedBackground: fluentUIApple.neutralBackground2,
|
|
369
369
|
defaultFocusedBorder: fluentUIApple.neutralStroke2,
|
|
370
|
-
defaultFocusedContent: fluentUIApple.
|
|
370
|
+
defaultFocusedContent: fluentUIApple.neutralForeground2,
|
|
371
371
|
defaultFocusedIcon: fluentUIApple.neutralForeground3,
|
|
372
372
|
defaultPressedBackground: fluentUIApple.neutralBackground2Pressed,
|
|
373
373
|
defaultPressedBorder: fluentUIApple.neutralStroke2,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getMacOSAliasTokens } from '
|
|
1
|
+
import { getMacOSAliasTokens } from './getMacOSAliasTokens';
|
|
2
2
|
import { mapPipelineToTheme } from '@fluentui-react-native/theming-utils';
|
|
3
3
|
import { memoize } from '@fluentui-react-native/memo-cache';
|
|
4
4
|
function createMacOSAliasTokensWorker(mode, isHighContrast) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createMacOSAliasTokens.js","sourceRoot":"","sources":["../src/createMacOSAliasTokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"createMacOSAliasTokens.js","sourceRoot":"","sources":["../src/createMacOSAliasTokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAE5D,SAAS,4BAA4B,CAAC,IAAuB,EAAE,cAAuB;IACpF,IAAM,WAAW,GAAG,mBAAmB,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;IAC9D,OAAO,kBAAkB,CAAC,WAAW,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,CAAC,IAAM,sBAAsB,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC"}
|
|
@@ -0,0 +1,471 @@
|
|
|
1
|
+
import { AppearanceOptions } from '@fluentui-react-native/theme-types';
|
|
2
|
+
export declare function getMacOSAliasTokens(mode: AppearanceOptions, isHighContrast: boolean): {
|
|
3
|
+
brandBackground: {
|
|
4
|
+
fillColorRest: string;
|
|
5
|
+
fillColorHover: string;
|
|
6
|
+
fillColorPressed: string;
|
|
7
|
+
fillColorDisabled: string;
|
|
8
|
+
fillColorSelected: string;
|
|
9
|
+
};
|
|
10
|
+
brandBackground2: {
|
|
11
|
+
fillColorRest: string;
|
|
12
|
+
};
|
|
13
|
+
brandBackgroundStatic: {
|
|
14
|
+
fillColorRest: string;
|
|
15
|
+
};
|
|
16
|
+
brandForeground1: {
|
|
17
|
+
fillColorRest: string;
|
|
18
|
+
fillColorHover: string;
|
|
19
|
+
fillColorPressed: string;
|
|
20
|
+
fillColorDisabled: string;
|
|
21
|
+
fillColorSelected: string;
|
|
22
|
+
};
|
|
23
|
+
brandForeground2: {
|
|
24
|
+
fillColorRest: string;
|
|
25
|
+
};
|
|
26
|
+
brandForegroundLink: {
|
|
27
|
+
fillColorRest: string;
|
|
28
|
+
fillColorHover: string;
|
|
29
|
+
fillColorPressed: string;
|
|
30
|
+
fillColorSelected: string;
|
|
31
|
+
};
|
|
32
|
+
brandStroke1: {
|
|
33
|
+
strokeColorRest: string;
|
|
34
|
+
strokeColorHover: string;
|
|
35
|
+
strokeColorPressed: string;
|
|
36
|
+
strokeColorDisabled: string;
|
|
37
|
+
strokeColorSelected: string;
|
|
38
|
+
strokeWidth: number;
|
|
39
|
+
};
|
|
40
|
+
brandStroke2: {
|
|
41
|
+
strokeColorRest: string;
|
|
42
|
+
strokeWidth: number;
|
|
43
|
+
};
|
|
44
|
+
compoundBrandBackground1: {
|
|
45
|
+
fillColorRest: string;
|
|
46
|
+
fillColorHover: string;
|
|
47
|
+
fillColorPressed: string;
|
|
48
|
+
};
|
|
49
|
+
compoundBrandForeground1: {
|
|
50
|
+
fillColorRest: string;
|
|
51
|
+
fillColorHover: string;
|
|
52
|
+
fillColorPressed: string;
|
|
53
|
+
};
|
|
54
|
+
compoundBrandStroke1: {
|
|
55
|
+
strokeColorRest: string;
|
|
56
|
+
strokeColorHover: string;
|
|
57
|
+
strokeColorPressed: string;
|
|
58
|
+
strokeWidth: number;
|
|
59
|
+
};
|
|
60
|
+
neutralBackground1: {
|
|
61
|
+
fillColorRest: string;
|
|
62
|
+
fillColorHover: string;
|
|
63
|
+
fillColorPressed: string;
|
|
64
|
+
fillColorSelected: string;
|
|
65
|
+
};
|
|
66
|
+
neutralBackground2: {
|
|
67
|
+
fillColorRest: string;
|
|
68
|
+
fillColorHover: string;
|
|
69
|
+
fillColorPressed: string;
|
|
70
|
+
fillColorSelected: string;
|
|
71
|
+
};
|
|
72
|
+
neutralBackground3: {
|
|
73
|
+
fillColorRest: string;
|
|
74
|
+
fillColorHover: string;
|
|
75
|
+
fillColorPressed: string;
|
|
76
|
+
fillColorSelected: string;
|
|
77
|
+
};
|
|
78
|
+
neutralBackground4: {
|
|
79
|
+
fillColorRest: string;
|
|
80
|
+
fillColorHover: string;
|
|
81
|
+
fillColorPressed: string;
|
|
82
|
+
fillColorSelected: string;
|
|
83
|
+
};
|
|
84
|
+
neutralBackground5: {
|
|
85
|
+
fillColorRest: string;
|
|
86
|
+
fillColorHover: string;
|
|
87
|
+
fillColorPressed: string;
|
|
88
|
+
fillColorSelected: string;
|
|
89
|
+
};
|
|
90
|
+
neutralBackground6: {
|
|
91
|
+
fillColorRest: string;
|
|
92
|
+
};
|
|
93
|
+
neutralBackgroundDisabled: {
|
|
94
|
+
fillColorRest: string;
|
|
95
|
+
fillColorPressed: string;
|
|
96
|
+
};
|
|
97
|
+
neutralBackgroundInverted: {
|
|
98
|
+
fillColorRest: string;
|
|
99
|
+
};
|
|
100
|
+
neutralForeground1: {
|
|
101
|
+
fillColorRest: string;
|
|
102
|
+
fillColorHover: string;
|
|
103
|
+
fillColorPressed: string;
|
|
104
|
+
fillColorSelected: string;
|
|
105
|
+
};
|
|
106
|
+
neutralForeground2: {
|
|
107
|
+
fillColorRest: string;
|
|
108
|
+
fillColorHover: string;
|
|
109
|
+
fillColorPressed: string;
|
|
110
|
+
fillColorBrandHover: string;
|
|
111
|
+
fillColorBrandPressed: string;
|
|
112
|
+
fillColorBrandSelected: string;
|
|
113
|
+
fillColorSelected: string;
|
|
114
|
+
};
|
|
115
|
+
neutralForeground3: {
|
|
116
|
+
fillColorRest: string;
|
|
117
|
+
fillColorHover: string;
|
|
118
|
+
fillColorPressed: string;
|
|
119
|
+
fillColorBrandHover: string;
|
|
120
|
+
fillColorBrandPressed: string;
|
|
121
|
+
fillColorBrandSelected: string;
|
|
122
|
+
fillColorSelected: string;
|
|
123
|
+
};
|
|
124
|
+
neutralForeground4: {
|
|
125
|
+
fillColorRest: string;
|
|
126
|
+
};
|
|
127
|
+
neutralForegroundDisabled: {
|
|
128
|
+
fillColorRest: string;
|
|
129
|
+
};
|
|
130
|
+
neutralForegroundInverted: {
|
|
131
|
+
fillColorRest: string;
|
|
132
|
+
fillColorPressed: string;
|
|
133
|
+
};
|
|
134
|
+
neutralForegroundInvertedLink: {
|
|
135
|
+
fillColorRest: string;
|
|
136
|
+
fillColorHover: string;
|
|
137
|
+
fillColorPressed: string;
|
|
138
|
+
fillColorSelected: string;
|
|
139
|
+
};
|
|
140
|
+
neutralForegroundOnBrand: {
|
|
141
|
+
fillColorRest: string;
|
|
142
|
+
fillColorHover: string;
|
|
143
|
+
fillColorPressed: string;
|
|
144
|
+
fillColorSelected: string;
|
|
145
|
+
};
|
|
146
|
+
neutralStencil1: {
|
|
147
|
+
fillColorRest: string;
|
|
148
|
+
};
|
|
149
|
+
neutralStencil2: {
|
|
150
|
+
fillColorRest: string;
|
|
151
|
+
};
|
|
152
|
+
neutralStroke1: {
|
|
153
|
+
strokeColorRest: string;
|
|
154
|
+
strokeColorHover: string;
|
|
155
|
+
strokeColorPressed: string;
|
|
156
|
+
strokeColorSelected: string;
|
|
157
|
+
strokeWidth: number;
|
|
158
|
+
};
|
|
159
|
+
neutralStroke2: {
|
|
160
|
+
strokeColorRest: string;
|
|
161
|
+
strokeWidth: number;
|
|
162
|
+
};
|
|
163
|
+
neutralStroke3: {
|
|
164
|
+
strokeColorRest: string;
|
|
165
|
+
strokeWidth: number;
|
|
166
|
+
};
|
|
167
|
+
neutralStrokeAccessible: {
|
|
168
|
+
strokeColorRest: string;
|
|
169
|
+
strokeColorHover: string;
|
|
170
|
+
strokeColorPressed: string;
|
|
171
|
+
strokeColorSelected: string;
|
|
172
|
+
strokeWidth: number;
|
|
173
|
+
};
|
|
174
|
+
neutralStrokeDisabled: {
|
|
175
|
+
strokeColorRest: string;
|
|
176
|
+
strokeWidth: number;
|
|
177
|
+
};
|
|
178
|
+
redBackground1: {
|
|
179
|
+
fillColorRest: string;
|
|
180
|
+
};
|
|
181
|
+
redBackground2: {
|
|
182
|
+
fillColorRest: string;
|
|
183
|
+
};
|
|
184
|
+
redBackground3: {
|
|
185
|
+
fillColorRest: string;
|
|
186
|
+
};
|
|
187
|
+
redBorder1: {
|
|
188
|
+
strokeColorRest: string;
|
|
189
|
+
strokeWidth: number;
|
|
190
|
+
};
|
|
191
|
+
redBorder2: {
|
|
192
|
+
strokeColorRest: string;
|
|
193
|
+
strokeWidth: number;
|
|
194
|
+
};
|
|
195
|
+
redBorderActive: {
|
|
196
|
+
strokeColorRest: string;
|
|
197
|
+
strokeWidth: number;
|
|
198
|
+
};
|
|
199
|
+
redForeground1: {
|
|
200
|
+
fillColorRest: string;
|
|
201
|
+
};
|
|
202
|
+
redForeground2: {
|
|
203
|
+
fillColorRest: string;
|
|
204
|
+
};
|
|
205
|
+
redForeground3: {
|
|
206
|
+
fillColorRest: string;
|
|
207
|
+
};
|
|
208
|
+
strokeFocus1: {
|
|
209
|
+
strokeColorRest: string;
|
|
210
|
+
strokeWidth: number;
|
|
211
|
+
};
|
|
212
|
+
strokeFocus2: {
|
|
213
|
+
strokeColorRest: string;
|
|
214
|
+
strokeWidth: number;
|
|
215
|
+
};
|
|
216
|
+
subtleBackground: {
|
|
217
|
+
fillColorRest: string;
|
|
218
|
+
fillColorHover: string;
|
|
219
|
+
fillColorPressed: string;
|
|
220
|
+
fillColorSelected: string;
|
|
221
|
+
};
|
|
222
|
+
transparentBackground: {
|
|
223
|
+
fillColorRest: string;
|
|
224
|
+
fillColorHover: string;
|
|
225
|
+
fillColorPressed: string;
|
|
226
|
+
fillColorSelected: string;
|
|
227
|
+
};
|
|
228
|
+
transparentStroke: {
|
|
229
|
+
strokeAlignment: string;
|
|
230
|
+
strokeColorRest: string;
|
|
231
|
+
strokeColorHover: string;
|
|
232
|
+
strokeColorPressed: string;
|
|
233
|
+
strokeColorDisabled: string;
|
|
234
|
+
strokeWidth: number;
|
|
235
|
+
};
|
|
236
|
+
} | {
|
|
237
|
+
brandBackground: {
|
|
238
|
+
fillColorRest: string;
|
|
239
|
+
fillColorHover: string;
|
|
240
|
+
fillColorPressed: string;
|
|
241
|
+
fillColorDisabled: string;
|
|
242
|
+
fillColorSelected: string;
|
|
243
|
+
};
|
|
244
|
+
brandBackground2: {
|
|
245
|
+
fillColorRest: string;
|
|
246
|
+
};
|
|
247
|
+
brandBackgroundStatic: {
|
|
248
|
+
fillColorRest: string;
|
|
249
|
+
};
|
|
250
|
+
brandForeground1: {
|
|
251
|
+
fillColorRest: string;
|
|
252
|
+
fillColorHover: string;
|
|
253
|
+
fillColorPressed: string;
|
|
254
|
+
fillColorDisabled: string;
|
|
255
|
+
fillColorSelected: string;
|
|
256
|
+
};
|
|
257
|
+
brandForeground2: {
|
|
258
|
+
fillColorRest: string;
|
|
259
|
+
};
|
|
260
|
+
brandForegroundLink: {
|
|
261
|
+
fillColorRest: string;
|
|
262
|
+
fillColorHover: string;
|
|
263
|
+
fillColorPressed: string;
|
|
264
|
+
fillColorSelected: string;
|
|
265
|
+
};
|
|
266
|
+
brandStroke1: {
|
|
267
|
+
strokeColorRest: string;
|
|
268
|
+
strokeColorHover: string;
|
|
269
|
+
strokeColorPressed: string;
|
|
270
|
+
strokeColorDisabled: string;
|
|
271
|
+
strokeColorSelected: string;
|
|
272
|
+
strokeWidth: number;
|
|
273
|
+
};
|
|
274
|
+
brandStroke2: {
|
|
275
|
+
strokeColorRest: string;
|
|
276
|
+
strokeWidth: number;
|
|
277
|
+
};
|
|
278
|
+
compoundBrandBackground1: {
|
|
279
|
+
fillColorRest: string;
|
|
280
|
+
fillColorHover: string;
|
|
281
|
+
fillColorPressed: string;
|
|
282
|
+
};
|
|
283
|
+
compoundBrandForeground1: {
|
|
284
|
+
fillColorRest: string;
|
|
285
|
+
fillColorHover: string;
|
|
286
|
+
fillColorPressed: string;
|
|
287
|
+
};
|
|
288
|
+
compoundBrandStroke1: {
|
|
289
|
+
strokeColorRest: string;
|
|
290
|
+
strokeColorHover: string;
|
|
291
|
+
strokeColorPressed: string;
|
|
292
|
+
strokeWidth: number;
|
|
293
|
+
};
|
|
294
|
+
neutralBackground1: {
|
|
295
|
+
fillColorRest: string;
|
|
296
|
+
fillColorHover: string;
|
|
297
|
+
fillColorPressed: string;
|
|
298
|
+
fillColorSelected: string;
|
|
299
|
+
};
|
|
300
|
+
neutralBackground2: {
|
|
301
|
+
fillColorRest: string;
|
|
302
|
+
fillColorHover: string;
|
|
303
|
+
fillColorPressed: string;
|
|
304
|
+
fillColorSelected: string;
|
|
305
|
+
};
|
|
306
|
+
neutralBackground3: {
|
|
307
|
+
fillColorRest: string;
|
|
308
|
+
fillColorHover: string;
|
|
309
|
+
fillColorPressed: string;
|
|
310
|
+
fillColorSelected: string;
|
|
311
|
+
};
|
|
312
|
+
neutralBackground4: {
|
|
313
|
+
fillColorRest: string;
|
|
314
|
+
fillColorHover: string;
|
|
315
|
+
fillColorPressed: string;
|
|
316
|
+
fillColorSelected: string;
|
|
317
|
+
};
|
|
318
|
+
neutralBackground5: {
|
|
319
|
+
fillColorRest: string;
|
|
320
|
+
fillColorHover: string;
|
|
321
|
+
fillColorPressed: string;
|
|
322
|
+
fillColorSelected: string;
|
|
323
|
+
};
|
|
324
|
+
neutralBackground6: {
|
|
325
|
+
fillColorRest: string;
|
|
326
|
+
};
|
|
327
|
+
neutralBackgroundDisabled: {
|
|
328
|
+
fillColorRest: string;
|
|
329
|
+
};
|
|
330
|
+
neutralBackgroundInverted: {
|
|
331
|
+
fillColorRest: string;
|
|
332
|
+
};
|
|
333
|
+
neutralForeground1: {
|
|
334
|
+
fillColorRest: string;
|
|
335
|
+
fillColorHover: string;
|
|
336
|
+
fillColorPressed: string;
|
|
337
|
+
fillColorSelected: string;
|
|
338
|
+
};
|
|
339
|
+
neutralForeground2: {
|
|
340
|
+
fillColorRest: string;
|
|
341
|
+
fillColorHover: string;
|
|
342
|
+
fillColorPressed: string;
|
|
343
|
+
fillColorDisabled: string;
|
|
344
|
+
fillColorBrandHover: string;
|
|
345
|
+
fillColorBrandPressed: string;
|
|
346
|
+
fillColorBrandSelected: string;
|
|
347
|
+
fillColorSelected: string;
|
|
348
|
+
};
|
|
349
|
+
neutralForeground3: {
|
|
350
|
+
fillColorRest: string;
|
|
351
|
+
fillColorHover: string;
|
|
352
|
+
fillColorPressed: string;
|
|
353
|
+
fillColorBrandHover: string;
|
|
354
|
+
fillColorBrandPressed: string;
|
|
355
|
+
fillColorBrandSelected: string;
|
|
356
|
+
fillColorSelected: string;
|
|
357
|
+
};
|
|
358
|
+
neutralForeground4: {
|
|
359
|
+
fillColorRest: string;
|
|
360
|
+
};
|
|
361
|
+
neutralForegroundDisabled: {
|
|
362
|
+
fillColorRest: string;
|
|
363
|
+
};
|
|
364
|
+
neutralForegroundInverted: {
|
|
365
|
+
fillColorRest: string;
|
|
366
|
+
fillColorPressed: string;
|
|
367
|
+
};
|
|
368
|
+
neutralForegroundInvertedLink: {
|
|
369
|
+
fillColorRest: string;
|
|
370
|
+
fillColorHover: string;
|
|
371
|
+
fillColorPressed: string;
|
|
372
|
+
fillColorSelected: string;
|
|
373
|
+
};
|
|
374
|
+
neutralForegroundOnBrand: {
|
|
375
|
+
fillColorRest: string;
|
|
376
|
+
fillColorHover: string;
|
|
377
|
+
fillColorPressed: string;
|
|
378
|
+
fillColorSelected: string;
|
|
379
|
+
};
|
|
380
|
+
neutralStencil1: {
|
|
381
|
+
fillColorRest: string;
|
|
382
|
+
};
|
|
383
|
+
neutralStencil2: {
|
|
384
|
+
fillColorRest: string;
|
|
385
|
+
};
|
|
386
|
+
neutralStroke1: {
|
|
387
|
+
strokeColorRest: string;
|
|
388
|
+
strokeColorHover: string;
|
|
389
|
+
strokeColorPressed: string;
|
|
390
|
+
strokeColorSelected: string;
|
|
391
|
+
strokeWidth: number;
|
|
392
|
+
};
|
|
393
|
+
neutralStroke2: {
|
|
394
|
+
strokeColorRest: string;
|
|
395
|
+
strokeWidth: number;
|
|
396
|
+
};
|
|
397
|
+
neutralStroke3: {
|
|
398
|
+
strokeColorRest: string;
|
|
399
|
+
strokeWidth: number;
|
|
400
|
+
};
|
|
401
|
+
neutralStrokeAccessible: {
|
|
402
|
+
strokeColorRest: string;
|
|
403
|
+
strokeColorHover: string;
|
|
404
|
+
strokeColorPressed: string;
|
|
405
|
+
strokeColorSelected: string;
|
|
406
|
+
strokeWidth: number;
|
|
407
|
+
};
|
|
408
|
+
neutralStrokeDisabled: {
|
|
409
|
+
strokeColorRest: string;
|
|
410
|
+
strokeWidth: number;
|
|
411
|
+
};
|
|
412
|
+
redBackground1: {
|
|
413
|
+
fillColorRest: string;
|
|
414
|
+
};
|
|
415
|
+
redBackground2: {
|
|
416
|
+
fillColorRest: string;
|
|
417
|
+
};
|
|
418
|
+
redBackground3: {
|
|
419
|
+
fillColorRest: string;
|
|
420
|
+
};
|
|
421
|
+
redBorder1: {
|
|
422
|
+
strokeColorRest: string;
|
|
423
|
+
strokeWidth: number;
|
|
424
|
+
};
|
|
425
|
+
redBorder2: {
|
|
426
|
+
strokeColorRest: string;
|
|
427
|
+
strokeWidth: number;
|
|
428
|
+
};
|
|
429
|
+
redBorderActive: {
|
|
430
|
+
strokeColorRest: string;
|
|
431
|
+
strokeWidth: number;
|
|
432
|
+
};
|
|
433
|
+
redForeground1: {
|
|
434
|
+
fillColorRest: string;
|
|
435
|
+
};
|
|
436
|
+
redForeground2: {
|
|
437
|
+
fillColorRest: string;
|
|
438
|
+
};
|
|
439
|
+
redForeground3: {
|
|
440
|
+
fillColorRest: string;
|
|
441
|
+
};
|
|
442
|
+
strokeFocus1: {
|
|
443
|
+
strokeColorRest: string;
|
|
444
|
+
strokeWidth: number;
|
|
445
|
+
};
|
|
446
|
+
strokeFocus2: {
|
|
447
|
+
strokeColorRest: string;
|
|
448
|
+
strokeWidth: number;
|
|
449
|
+
};
|
|
450
|
+
subtleBackground: {
|
|
451
|
+
fillColorRest: string;
|
|
452
|
+
fillColorHover: string;
|
|
453
|
+
fillColorPressed: string;
|
|
454
|
+
fillColorSelected: string;
|
|
455
|
+
};
|
|
456
|
+
transparentBackground: {
|
|
457
|
+
fillColorRest: string;
|
|
458
|
+
fillColorHover: string;
|
|
459
|
+
fillColorPressed: string;
|
|
460
|
+
fillColorSelected: string;
|
|
461
|
+
};
|
|
462
|
+
transparentStroke: {
|
|
463
|
+
strokeAlignment: string;
|
|
464
|
+
strokeColorRest: string;
|
|
465
|
+
strokeColorHover: string;
|
|
466
|
+
strokeColorPressed: string;
|
|
467
|
+
strokeColorDisabled: string;
|
|
468
|
+
strokeWidth: number;
|
|
469
|
+
};
|
|
470
|
+
};
|
|
471
|
+
//# sourceMappingURL=getMacOSAliasTokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMacOSAliasTokens.d.ts","sourceRoot":"","sources":["../src/getMacOSAliasTokens.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAGvE,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,iBAAiB,EAAE,cAAc,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBnF"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import macOSLightAliasTokens from '@fluentui-react-native/design-tokens-macos/light/tokens-aliases.json';
|
|
2
|
+
import macOSDarkAliasTokens from '@fluentui-react-native/design-tokens-macos/dark/tokens-aliases.json';
|
|
3
|
+
import macOSLightHCAliasTokens from '@fluentui-react-native/design-tokens-macos/hclight/tokens-aliases.json';
|
|
4
|
+
import macOSDarkHCAliasTokens from '@fluentui-react-native/design-tokens-macos/hcdark/tokens-aliases.json';
|
|
5
|
+
import { assertNever } from 'assert-never';
|
|
6
|
+
export function getMacOSAliasTokens(mode, isHighContrast) {
|
|
7
|
+
if (mode === 'light') {
|
|
8
|
+
if (isHighContrast) {
|
|
9
|
+
return macOSLightHCAliasTokens;
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
return macOSLightAliasTokens;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
else if (mode === 'dark') {
|
|
16
|
+
if (isHighContrast) {
|
|
17
|
+
return macOSDarkHCAliasTokens;
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
return macOSDarkAliasTokens;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
else if (mode === 'highContrast') {
|
|
24
|
+
throw new Error('highContrast is not a valid AppearanceOptions on macOS');
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
assertNever(mode);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=getMacOSAliasTokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMacOSAliasTokens.js","sourceRoot":"","sources":["../src/getMacOSAliasTokens.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,MAAM,sEAAsE,CAAC;AACzG,OAAO,oBAAoB,MAAM,qEAAqE,CAAC;AACvG,OAAO,uBAAuB,MAAM,wEAAwE,CAAC;AAC7G,OAAO,sBAAsB,MAAM,uEAAuE,CAAC;AAE3G,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,UAAU,mBAAmB,CAAC,IAAuB,EAAE,cAAuB;IAClF,IAAI,IAAI,KAAK,OAAO,EAAE;QACpB,IAAI,cAAc,EAAE;YAClB,OAAO,uBAAuB,CAAC;SAChC;aAAM;YACL,OAAO,qBAAqB,CAAC;SAC9B;KACF;SAAM,IAAI,IAAI,KAAK,MAAM,EAAE;QAC1B,IAAI,cAAc,EAAE;YAClB,OAAO,sBAAsB,CAAC;SAC/B;aAAM;YACL,OAAO,oBAAoB,CAAC;SAC7B;KACF;SAAM,IAAI,IAAI,KAAK,cAAc,EAAE;QAClC,MAAM,IAAI,KAAK,CAAC,wDAAwD,CAAC,CAAC;KAC3E;SAAM;QACL,WAAW,CAAC,IAAI,CAAC,CAAC;KACnB;AACH,CAAC"}
|
|
@@ -369,9 +369,9 @@ function fallbackApplePalette() {
|
|
|
369
369
|
defaultHoveredBorder: fluentUIApple.neutralStroke2,
|
|
370
370
|
defaultHoveredContent: fluentUIApple.neutralForeground3,
|
|
371
371
|
defaultHoveredIcon: fluentUIApple.neutralForeground3,
|
|
372
|
-
defaultFocusedBackground: fluentUIApple.
|
|
372
|
+
defaultFocusedBackground: fluentUIApple.neutralBackground2,
|
|
373
373
|
defaultFocusedBorder: fluentUIApple.neutralStroke2,
|
|
374
|
-
defaultFocusedContent: fluentUIApple.
|
|
374
|
+
defaultFocusedContent: fluentUIApple.neutralForeground2,
|
|
375
375
|
defaultFocusedIcon: fluentUIApple.neutralForeground3,
|
|
376
376
|
defaultPressedBackground: fluentUIApple.neutralBackground2Pressed,
|
|
377
377
|
defaultPressedBorder: fluentUIApple.neutralStroke2,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createMacOSAliasTokens = void 0;
|
|
4
|
-
var
|
|
4
|
+
var getMacOSAliasTokens_1 = require("./getMacOSAliasTokens");
|
|
5
5
|
var theming_utils_1 = require("@fluentui-react-native/theming-utils");
|
|
6
6
|
var memo_cache_1 = require("@fluentui-react-native/memo-cache");
|
|
7
7
|
function createMacOSAliasTokensWorker(mode, isHighContrast) {
|
|
8
|
-
var aliasTokens = (0,
|
|
8
|
+
var aliasTokens = (0, getMacOSAliasTokens_1.getMacOSAliasTokens)(mode, isHighContrast);
|
|
9
9
|
return (0, theming_utils_1.mapPipelineToTheme)(aliasTokens);
|
|
10
10
|
}
|
|
11
11
|
exports.createMacOSAliasTokens = (0, memo_cache_1.memoize)(createMacOSAliasTokensWorker);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createMacOSAliasTokens.js","sourceRoot":"","sources":["../src/createMacOSAliasTokens.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"createMacOSAliasTokens.js","sourceRoot":"","sources":["../src/createMacOSAliasTokens.ts"],"names":[],"mappings":";;;AAAA,6DAA4D;AAE5D,sEAA0E;AAC1E,gEAA4D;AAE5D,SAAS,4BAA4B,CAAC,IAAuB,EAAE,cAAuB;IACpF,IAAM,WAAW,GAAG,IAAA,yCAAmB,EAAC,IAAI,EAAE,cAAc,CAAC,CAAC;IAC9D,OAAO,IAAA,kCAAkB,EAAC,WAAW,CAAC,CAAC;AACzC,CAAC;AAEY,QAAA,sBAAsB,GAAG,IAAA,oBAAO,EAAC,4BAA4B,CAAC,CAAC"}
|
|
@@ -0,0 +1,471 @@
|
|
|
1
|
+
import { AppearanceOptions } from '@fluentui-react-native/theme-types';
|
|
2
|
+
export declare function getMacOSAliasTokens(mode: AppearanceOptions, isHighContrast: boolean): {
|
|
3
|
+
brandBackground: {
|
|
4
|
+
fillColorRest: string;
|
|
5
|
+
fillColorHover: string;
|
|
6
|
+
fillColorPressed: string;
|
|
7
|
+
fillColorDisabled: string;
|
|
8
|
+
fillColorSelected: string;
|
|
9
|
+
};
|
|
10
|
+
brandBackground2: {
|
|
11
|
+
fillColorRest: string;
|
|
12
|
+
};
|
|
13
|
+
brandBackgroundStatic: {
|
|
14
|
+
fillColorRest: string;
|
|
15
|
+
};
|
|
16
|
+
brandForeground1: {
|
|
17
|
+
fillColorRest: string;
|
|
18
|
+
fillColorHover: string;
|
|
19
|
+
fillColorPressed: string;
|
|
20
|
+
fillColorDisabled: string;
|
|
21
|
+
fillColorSelected: string;
|
|
22
|
+
};
|
|
23
|
+
brandForeground2: {
|
|
24
|
+
fillColorRest: string;
|
|
25
|
+
};
|
|
26
|
+
brandForegroundLink: {
|
|
27
|
+
fillColorRest: string;
|
|
28
|
+
fillColorHover: string;
|
|
29
|
+
fillColorPressed: string;
|
|
30
|
+
fillColorSelected: string;
|
|
31
|
+
};
|
|
32
|
+
brandStroke1: {
|
|
33
|
+
strokeColorRest: string;
|
|
34
|
+
strokeColorHover: string;
|
|
35
|
+
strokeColorPressed: string;
|
|
36
|
+
strokeColorDisabled: string;
|
|
37
|
+
strokeColorSelected: string;
|
|
38
|
+
strokeWidth: number;
|
|
39
|
+
};
|
|
40
|
+
brandStroke2: {
|
|
41
|
+
strokeColorRest: string;
|
|
42
|
+
strokeWidth: number;
|
|
43
|
+
};
|
|
44
|
+
compoundBrandBackground1: {
|
|
45
|
+
fillColorRest: string;
|
|
46
|
+
fillColorHover: string;
|
|
47
|
+
fillColorPressed: string;
|
|
48
|
+
};
|
|
49
|
+
compoundBrandForeground1: {
|
|
50
|
+
fillColorRest: string;
|
|
51
|
+
fillColorHover: string;
|
|
52
|
+
fillColorPressed: string;
|
|
53
|
+
};
|
|
54
|
+
compoundBrandStroke1: {
|
|
55
|
+
strokeColorRest: string;
|
|
56
|
+
strokeColorHover: string;
|
|
57
|
+
strokeColorPressed: string;
|
|
58
|
+
strokeWidth: number;
|
|
59
|
+
};
|
|
60
|
+
neutralBackground1: {
|
|
61
|
+
fillColorRest: string;
|
|
62
|
+
fillColorHover: string;
|
|
63
|
+
fillColorPressed: string;
|
|
64
|
+
fillColorSelected: string;
|
|
65
|
+
};
|
|
66
|
+
neutralBackground2: {
|
|
67
|
+
fillColorRest: string;
|
|
68
|
+
fillColorHover: string;
|
|
69
|
+
fillColorPressed: string;
|
|
70
|
+
fillColorSelected: string;
|
|
71
|
+
};
|
|
72
|
+
neutralBackground3: {
|
|
73
|
+
fillColorRest: string;
|
|
74
|
+
fillColorHover: string;
|
|
75
|
+
fillColorPressed: string;
|
|
76
|
+
fillColorSelected: string;
|
|
77
|
+
};
|
|
78
|
+
neutralBackground4: {
|
|
79
|
+
fillColorRest: string;
|
|
80
|
+
fillColorHover: string;
|
|
81
|
+
fillColorPressed: string;
|
|
82
|
+
fillColorSelected: string;
|
|
83
|
+
};
|
|
84
|
+
neutralBackground5: {
|
|
85
|
+
fillColorRest: string;
|
|
86
|
+
fillColorHover: string;
|
|
87
|
+
fillColorPressed: string;
|
|
88
|
+
fillColorSelected: string;
|
|
89
|
+
};
|
|
90
|
+
neutralBackground6: {
|
|
91
|
+
fillColorRest: string;
|
|
92
|
+
};
|
|
93
|
+
neutralBackgroundDisabled: {
|
|
94
|
+
fillColorRest: string;
|
|
95
|
+
fillColorPressed: string;
|
|
96
|
+
};
|
|
97
|
+
neutralBackgroundInverted: {
|
|
98
|
+
fillColorRest: string;
|
|
99
|
+
};
|
|
100
|
+
neutralForeground1: {
|
|
101
|
+
fillColorRest: string;
|
|
102
|
+
fillColorHover: string;
|
|
103
|
+
fillColorPressed: string;
|
|
104
|
+
fillColorSelected: string;
|
|
105
|
+
};
|
|
106
|
+
neutralForeground2: {
|
|
107
|
+
fillColorRest: string;
|
|
108
|
+
fillColorHover: string;
|
|
109
|
+
fillColorPressed: string;
|
|
110
|
+
fillColorBrandHover: string;
|
|
111
|
+
fillColorBrandPressed: string;
|
|
112
|
+
fillColorBrandSelected: string;
|
|
113
|
+
fillColorSelected: string;
|
|
114
|
+
};
|
|
115
|
+
neutralForeground3: {
|
|
116
|
+
fillColorRest: string;
|
|
117
|
+
fillColorHover: string;
|
|
118
|
+
fillColorPressed: string;
|
|
119
|
+
fillColorBrandHover: string;
|
|
120
|
+
fillColorBrandPressed: string;
|
|
121
|
+
fillColorBrandSelected: string;
|
|
122
|
+
fillColorSelected: string;
|
|
123
|
+
};
|
|
124
|
+
neutralForeground4: {
|
|
125
|
+
fillColorRest: string;
|
|
126
|
+
};
|
|
127
|
+
neutralForegroundDisabled: {
|
|
128
|
+
fillColorRest: string;
|
|
129
|
+
};
|
|
130
|
+
neutralForegroundInverted: {
|
|
131
|
+
fillColorRest: string;
|
|
132
|
+
fillColorPressed: string;
|
|
133
|
+
};
|
|
134
|
+
neutralForegroundInvertedLink: {
|
|
135
|
+
fillColorRest: string;
|
|
136
|
+
fillColorHover: string;
|
|
137
|
+
fillColorPressed: string;
|
|
138
|
+
fillColorSelected: string;
|
|
139
|
+
};
|
|
140
|
+
neutralForegroundOnBrand: {
|
|
141
|
+
fillColorRest: string;
|
|
142
|
+
fillColorHover: string;
|
|
143
|
+
fillColorPressed: string;
|
|
144
|
+
fillColorSelected: string;
|
|
145
|
+
};
|
|
146
|
+
neutralStencil1: {
|
|
147
|
+
fillColorRest: string;
|
|
148
|
+
};
|
|
149
|
+
neutralStencil2: {
|
|
150
|
+
fillColorRest: string;
|
|
151
|
+
};
|
|
152
|
+
neutralStroke1: {
|
|
153
|
+
strokeColorRest: string;
|
|
154
|
+
strokeColorHover: string;
|
|
155
|
+
strokeColorPressed: string;
|
|
156
|
+
strokeColorSelected: string;
|
|
157
|
+
strokeWidth: number;
|
|
158
|
+
};
|
|
159
|
+
neutralStroke2: {
|
|
160
|
+
strokeColorRest: string;
|
|
161
|
+
strokeWidth: number;
|
|
162
|
+
};
|
|
163
|
+
neutralStroke3: {
|
|
164
|
+
strokeColorRest: string;
|
|
165
|
+
strokeWidth: number;
|
|
166
|
+
};
|
|
167
|
+
neutralStrokeAccessible: {
|
|
168
|
+
strokeColorRest: string;
|
|
169
|
+
strokeColorHover: string;
|
|
170
|
+
strokeColorPressed: string;
|
|
171
|
+
strokeColorSelected: string;
|
|
172
|
+
strokeWidth: number;
|
|
173
|
+
};
|
|
174
|
+
neutralStrokeDisabled: {
|
|
175
|
+
strokeColorRest: string;
|
|
176
|
+
strokeWidth: number;
|
|
177
|
+
};
|
|
178
|
+
redBackground1: {
|
|
179
|
+
fillColorRest: string;
|
|
180
|
+
};
|
|
181
|
+
redBackground2: {
|
|
182
|
+
fillColorRest: string;
|
|
183
|
+
};
|
|
184
|
+
redBackground3: {
|
|
185
|
+
fillColorRest: string;
|
|
186
|
+
};
|
|
187
|
+
redBorder1: {
|
|
188
|
+
strokeColorRest: string;
|
|
189
|
+
strokeWidth: number;
|
|
190
|
+
};
|
|
191
|
+
redBorder2: {
|
|
192
|
+
strokeColorRest: string;
|
|
193
|
+
strokeWidth: number;
|
|
194
|
+
};
|
|
195
|
+
redBorderActive: {
|
|
196
|
+
strokeColorRest: string;
|
|
197
|
+
strokeWidth: number;
|
|
198
|
+
};
|
|
199
|
+
redForeground1: {
|
|
200
|
+
fillColorRest: string;
|
|
201
|
+
};
|
|
202
|
+
redForeground2: {
|
|
203
|
+
fillColorRest: string;
|
|
204
|
+
};
|
|
205
|
+
redForeground3: {
|
|
206
|
+
fillColorRest: string;
|
|
207
|
+
};
|
|
208
|
+
strokeFocus1: {
|
|
209
|
+
strokeColorRest: string;
|
|
210
|
+
strokeWidth: number;
|
|
211
|
+
};
|
|
212
|
+
strokeFocus2: {
|
|
213
|
+
strokeColorRest: string;
|
|
214
|
+
strokeWidth: number;
|
|
215
|
+
};
|
|
216
|
+
subtleBackground: {
|
|
217
|
+
fillColorRest: string;
|
|
218
|
+
fillColorHover: string;
|
|
219
|
+
fillColorPressed: string;
|
|
220
|
+
fillColorSelected: string;
|
|
221
|
+
};
|
|
222
|
+
transparentBackground: {
|
|
223
|
+
fillColorRest: string;
|
|
224
|
+
fillColorHover: string;
|
|
225
|
+
fillColorPressed: string;
|
|
226
|
+
fillColorSelected: string;
|
|
227
|
+
};
|
|
228
|
+
transparentStroke: {
|
|
229
|
+
strokeAlignment: string;
|
|
230
|
+
strokeColorRest: string;
|
|
231
|
+
strokeColorHover: string;
|
|
232
|
+
strokeColorPressed: string;
|
|
233
|
+
strokeColorDisabled: string;
|
|
234
|
+
strokeWidth: number;
|
|
235
|
+
};
|
|
236
|
+
} | {
|
|
237
|
+
brandBackground: {
|
|
238
|
+
fillColorRest: string;
|
|
239
|
+
fillColorHover: string;
|
|
240
|
+
fillColorPressed: string;
|
|
241
|
+
fillColorDisabled: string;
|
|
242
|
+
fillColorSelected: string;
|
|
243
|
+
};
|
|
244
|
+
brandBackground2: {
|
|
245
|
+
fillColorRest: string;
|
|
246
|
+
};
|
|
247
|
+
brandBackgroundStatic: {
|
|
248
|
+
fillColorRest: string;
|
|
249
|
+
};
|
|
250
|
+
brandForeground1: {
|
|
251
|
+
fillColorRest: string;
|
|
252
|
+
fillColorHover: string;
|
|
253
|
+
fillColorPressed: string;
|
|
254
|
+
fillColorDisabled: string;
|
|
255
|
+
fillColorSelected: string;
|
|
256
|
+
};
|
|
257
|
+
brandForeground2: {
|
|
258
|
+
fillColorRest: string;
|
|
259
|
+
};
|
|
260
|
+
brandForegroundLink: {
|
|
261
|
+
fillColorRest: string;
|
|
262
|
+
fillColorHover: string;
|
|
263
|
+
fillColorPressed: string;
|
|
264
|
+
fillColorSelected: string;
|
|
265
|
+
};
|
|
266
|
+
brandStroke1: {
|
|
267
|
+
strokeColorRest: string;
|
|
268
|
+
strokeColorHover: string;
|
|
269
|
+
strokeColorPressed: string;
|
|
270
|
+
strokeColorDisabled: string;
|
|
271
|
+
strokeColorSelected: string;
|
|
272
|
+
strokeWidth: number;
|
|
273
|
+
};
|
|
274
|
+
brandStroke2: {
|
|
275
|
+
strokeColorRest: string;
|
|
276
|
+
strokeWidth: number;
|
|
277
|
+
};
|
|
278
|
+
compoundBrandBackground1: {
|
|
279
|
+
fillColorRest: string;
|
|
280
|
+
fillColorHover: string;
|
|
281
|
+
fillColorPressed: string;
|
|
282
|
+
};
|
|
283
|
+
compoundBrandForeground1: {
|
|
284
|
+
fillColorRest: string;
|
|
285
|
+
fillColorHover: string;
|
|
286
|
+
fillColorPressed: string;
|
|
287
|
+
};
|
|
288
|
+
compoundBrandStroke1: {
|
|
289
|
+
strokeColorRest: string;
|
|
290
|
+
strokeColorHover: string;
|
|
291
|
+
strokeColorPressed: string;
|
|
292
|
+
strokeWidth: number;
|
|
293
|
+
};
|
|
294
|
+
neutralBackground1: {
|
|
295
|
+
fillColorRest: string;
|
|
296
|
+
fillColorHover: string;
|
|
297
|
+
fillColorPressed: string;
|
|
298
|
+
fillColorSelected: string;
|
|
299
|
+
};
|
|
300
|
+
neutralBackground2: {
|
|
301
|
+
fillColorRest: string;
|
|
302
|
+
fillColorHover: string;
|
|
303
|
+
fillColorPressed: string;
|
|
304
|
+
fillColorSelected: string;
|
|
305
|
+
};
|
|
306
|
+
neutralBackground3: {
|
|
307
|
+
fillColorRest: string;
|
|
308
|
+
fillColorHover: string;
|
|
309
|
+
fillColorPressed: string;
|
|
310
|
+
fillColorSelected: string;
|
|
311
|
+
};
|
|
312
|
+
neutralBackground4: {
|
|
313
|
+
fillColorRest: string;
|
|
314
|
+
fillColorHover: string;
|
|
315
|
+
fillColorPressed: string;
|
|
316
|
+
fillColorSelected: string;
|
|
317
|
+
};
|
|
318
|
+
neutralBackground5: {
|
|
319
|
+
fillColorRest: string;
|
|
320
|
+
fillColorHover: string;
|
|
321
|
+
fillColorPressed: string;
|
|
322
|
+
fillColorSelected: string;
|
|
323
|
+
};
|
|
324
|
+
neutralBackground6: {
|
|
325
|
+
fillColorRest: string;
|
|
326
|
+
};
|
|
327
|
+
neutralBackgroundDisabled: {
|
|
328
|
+
fillColorRest: string;
|
|
329
|
+
};
|
|
330
|
+
neutralBackgroundInverted: {
|
|
331
|
+
fillColorRest: string;
|
|
332
|
+
};
|
|
333
|
+
neutralForeground1: {
|
|
334
|
+
fillColorRest: string;
|
|
335
|
+
fillColorHover: string;
|
|
336
|
+
fillColorPressed: string;
|
|
337
|
+
fillColorSelected: string;
|
|
338
|
+
};
|
|
339
|
+
neutralForeground2: {
|
|
340
|
+
fillColorRest: string;
|
|
341
|
+
fillColorHover: string;
|
|
342
|
+
fillColorPressed: string;
|
|
343
|
+
fillColorDisabled: string;
|
|
344
|
+
fillColorBrandHover: string;
|
|
345
|
+
fillColorBrandPressed: string;
|
|
346
|
+
fillColorBrandSelected: string;
|
|
347
|
+
fillColorSelected: string;
|
|
348
|
+
};
|
|
349
|
+
neutralForeground3: {
|
|
350
|
+
fillColorRest: string;
|
|
351
|
+
fillColorHover: string;
|
|
352
|
+
fillColorPressed: string;
|
|
353
|
+
fillColorBrandHover: string;
|
|
354
|
+
fillColorBrandPressed: string;
|
|
355
|
+
fillColorBrandSelected: string;
|
|
356
|
+
fillColorSelected: string;
|
|
357
|
+
};
|
|
358
|
+
neutralForeground4: {
|
|
359
|
+
fillColorRest: string;
|
|
360
|
+
};
|
|
361
|
+
neutralForegroundDisabled: {
|
|
362
|
+
fillColorRest: string;
|
|
363
|
+
};
|
|
364
|
+
neutralForegroundInverted: {
|
|
365
|
+
fillColorRest: string;
|
|
366
|
+
fillColorPressed: string;
|
|
367
|
+
};
|
|
368
|
+
neutralForegroundInvertedLink: {
|
|
369
|
+
fillColorRest: string;
|
|
370
|
+
fillColorHover: string;
|
|
371
|
+
fillColorPressed: string;
|
|
372
|
+
fillColorSelected: string;
|
|
373
|
+
};
|
|
374
|
+
neutralForegroundOnBrand: {
|
|
375
|
+
fillColorRest: string;
|
|
376
|
+
fillColorHover: string;
|
|
377
|
+
fillColorPressed: string;
|
|
378
|
+
fillColorSelected: string;
|
|
379
|
+
};
|
|
380
|
+
neutralStencil1: {
|
|
381
|
+
fillColorRest: string;
|
|
382
|
+
};
|
|
383
|
+
neutralStencil2: {
|
|
384
|
+
fillColorRest: string;
|
|
385
|
+
};
|
|
386
|
+
neutralStroke1: {
|
|
387
|
+
strokeColorRest: string;
|
|
388
|
+
strokeColorHover: string;
|
|
389
|
+
strokeColorPressed: string;
|
|
390
|
+
strokeColorSelected: string;
|
|
391
|
+
strokeWidth: number;
|
|
392
|
+
};
|
|
393
|
+
neutralStroke2: {
|
|
394
|
+
strokeColorRest: string;
|
|
395
|
+
strokeWidth: number;
|
|
396
|
+
};
|
|
397
|
+
neutralStroke3: {
|
|
398
|
+
strokeColorRest: string;
|
|
399
|
+
strokeWidth: number;
|
|
400
|
+
};
|
|
401
|
+
neutralStrokeAccessible: {
|
|
402
|
+
strokeColorRest: string;
|
|
403
|
+
strokeColorHover: string;
|
|
404
|
+
strokeColorPressed: string;
|
|
405
|
+
strokeColorSelected: string;
|
|
406
|
+
strokeWidth: number;
|
|
407
|
+
};
|
|
408
|
+
neutralStrokeDisabled: {
|
|
409
|
+
strokeColorRest: string;
|
|
410
|
+
strokeWidth: number;
|
|
411
|
+
};
|
|
412
|
+
redBackground1: {
|
|
413
|
+
fillColorRest: string;
|
|
414
|
+
};
|
|
415
|
+
redBackground2: {
|
|
416
|
+
fillColorRest: string;
|
|
417
|
+
};
|
|
418
|
+
redBackground3: {
|
|
419
|
+
fillColorRest: string;
|
|
420
|
+
};
|
|
421
|
+
redBorder1: {
|
|
422
|
+
strokeColorRest: string;
|
|
423
|
+
strokeWidth: number;
|
|
424
|
+
};
|
|
425
|
+
redBorder2: {
|
|
426
|
+
strokeColorRest: string;
|
|
427
|
+
strokeWidth: number;
|
|
428
|
+
};
|
|
429
|
+
redBorderActive: {
|
|
430
|
+
strokeColorRest: string;
|
|
431
|
+
strokeWidth: number;
|
|
432
|
+
};
|
|
433
|
+
redForeground1: {
|
|
434
|
+
fillColorRest: string;
|
|
435
|
+
};
|
|
436
|
+
redForeground2: {
|
|
437
|
+
fillColorRest: string;
|
|
438
|
+
};
|
|
439
|
+
redForeground3: {
|
|
440
|
+
fillColorRest: string;
|
|
441
|
+
};
|
|
442
|
+
strokeFocus1: {
|
|
443
|
+
strokeColorRest: string;
|
|
444
|
+
strokeWidth: number;
|
|
445
|
+
};
|
|
446
|
+
strokeFocus2: {
|
|
447
|
+
strokeColorRest: string;
|
|
448
|
+
strokeWidth: number;
|
|
449
|
+
};
|
|
450
|
+
subtleBackground: {
|
|
451
|
+
fillColorRest: string;
|
|
452
|
+
fillColorHover: string;
|
|
453
|
+
fillColorPressed: string;
|
|
454
|
+
fillColorSelected: string;
|
|
455
|
+
};
|
|
456
|
+
transparentBackground: {
|
|
457
|
+
fillColorRest: string;
|
|
458
|
+
fillColorHover: string;
|
|
459
|
+
fillColorPressed: string;
|
|
460
|
+
fillColorSelected: string;
|
|
461
|
+
};
|
|
462
|
+
transparentStroke: {
|
|
463
|
+
strokeAlignment: string;
|
|
464
|
+
strokeColorRest: string;
|
|
465
|
+
strokeColorHover: string;
|
|
466
|
+
strokeColorPressed: string;
|
|
467
|
+
strokeColorDisabled: string;
|
|
468
|
+
strokeWidth: number;
|
|
469
|
+
};
|
|
470
|
+
};
|
|
471
|
+
//# sourceMappingURL=getMacOSAliasTokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMacOSAliasTokens.d.ts","sourceRoot":"","sources":["../src/getMacOSAliasTokens.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAGvE,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,iBAAiB,EAAE,cAAc,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBnF"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getMacOSAliasTokens = void 0;
|
|
7
|
+
var tokens_aliases_json_1 = __importDefault(require("@fluentui-react-native/design-tokens-macos/light/tokens-aliases.json"));
|
|
8
|
+
var tokens_aliases_json_2 = __importDefault(require("@fluentui-react-native/design-tokens-macos/dark/tokens-aliases.json"));
|
|
9
|
+
var tokens_aliases_json_3 = __importDefault(require("@fluentui-react-native/design-tokens-macos/hclight/tokens-aliases.json"));
|
|
10
|
+
var tokens_aliases_json_4 = __importDefault(require("@fluentui-react-native/design-tokens-macos/hcdark/tokens-aliases.json"));
|
|
11
|
+
var assert_never_1 = require("assert-never");
|
|
12
|
+
function getMacOSAliasTokens(mode, isHighContrast) {
|
|
13
|
+
if (mode === 'light') {
|
|
14
|
+
if (isHighContrast) {
|
|
15
|
+
return tokens_aliases_json_3.default;
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
return tokens_aliases_json_1.default;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
else if (mode === 'dark') {
|
|
22
|
+
if (isHighContrast) {
|
|
23
|
+
return tokens_aliases_json_4.default;
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
return tokens_aliases_json_2.default;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
else if (mode === 'highContrast') {
|
|
30
|
+
throw new Error('highContrast is not a valid AppearanceOptions on macOS');
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
(0, assert_never_1.assertNever)(mode);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.getMacOSAliasTokens = getMacOSAliasTokens;
|
|
37
|
+
//# sourceMappingURL=getMacOSAliasTokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMacOSAliasTokens.js","sourceRoot":"","sources":["../src/getMacOSAliasTokens.ts"],"names":[],"mappings":";;;;;;AAAA,6HAAyG;AACzG,4HAAuG;AACvG,+HAA6G;AAC7G,8HAA2G;AAE3G,6CAA2C;AAE3C,SAAgB,mBAAmB,CAAC,IAAuB,EAAE,cAAuB;IAClF,IAAI,IAAI,KAAK,OAAO,EAAE;QACpB,IAAI,cAAc,EAAE;YAClB,OAAO,6BAAuB,CAAC;SAChC;aAAM;YACL,OAAO,6BAAqB,CAAC;SAC9B;KACF;SAAM,IAAI,IAAI,KAAK,MAAM,EAAE;QAC1B,IAAI,cAAc,EAAE;YAClB,OAAO,6BAAsB,CAAC;SAC/B;aAAM;YACL,OAAO,6BAAoB,CAAC;SAC7B;KACF;SAAM,IAAI,IAAI,KAAK,cAAc,EAAE;QAClC,MAAM,IAAI,KAAK,CAAC,wDAAwD,CAAC,CAAC;KAC3E;SAAM;QACL,IAAA,0BAAW,EAAC,IAAI,CAAC,CAAC;KACnB;AACH,CAAC;AAlBD,kDAkBC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/apple-theme",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "A FluentUI React Native theme that pulls constants from FluentUI Apple",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Microsoft <fluentuinativeowners@microsoft.com>",
|
|
@@ -27,12 +27,13 @@
|
|
|
27
27
|
"directory": "packages/theming/apple-theme"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@fluentui-react-native/default-theme": ">=0.9.
|
|
30
|
+
"@fluentui-react-native/default-theme": ">=0.9.15 <1.0.0",
|
|
31
|
+
"@fluentui-react-native/design-tokens-macos": "^0.5.0-test",
|
|
31
32
|
"@fluentui-react-native/memo-cache": "^1.1.7",
|
|
32
33
|
"@fluentui-react-native/theme": ">=0.6.6 <1.0.0",
|
|
33
|
-
"@fluentui-react-native/theme-tokens": "^0.13.2",
|
|
34
34
|
"@fluentui-react-native/theme-types": ">=0.14.1 <1.0.0",
|
|
35
|
-
"@fluentui-react-native/theming-utils": "^0.9.
|
|
35
|
+
"@fluentui-react-native/theming-utils": "^0.9.4",
|
|
36
|
+
"assert-never": "^1.2.1"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
39
|
"@fluentui-react-native/eslint-config-rules": "^0.1.1",
|
package/src/appleColors.macos.ts
CHANGED
|
@@ -396,9 +396,9 @@ export function fallbackApplePalette(): ThemeColorDefinition {
|
|
|
396
396
|
defaultHoveredContent: fluentUIApple.neutralForeground3,
|
|
397
397
|
defaultHoveredIcon: fluentUIApple.neutralForeground3, //GH:728 Icon doesn't support PlatformColor
|
|
398
398
|
|
|
399
|
-
defaultFocusedBackground: fluentUIApple.
|
|
399
|
+
defaultFocusedBackground: fluentUIApple.neutralBackground2,
|
|
400
400
|
defaultFocusedBorder: fluentUIApple.neutralStroke2,
|
|
401
|
-
defaultFocusedContent: fluentUIApple.
|
|
401
|
+
defaultFocusedContent: fluentUIApple.neutralForeground2,
|
|
402
402
|
defaultFocusedIcon: fluentUIApple.neutralForeground3, //GH:728 Icon doesn't support PlatformColor
|
|
403
403
|
|
|
404
404
|
defaultPressedBackground: fluentUIApple.neutralBackground2Pressed,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getMacOSAliasTokens } from '
|
|
1
|
+
import { getMacOSAliasTokens } from './getMacOSAliasTokens';
|
|
2
2
|
import { AliasColorTokens, AppearanceOptions } from '@fluentui-react-native/theme-types';
|
|
3
3
|
import { mapPipelineToTheme } from '@fluentui-react-native/theming-utils';
|
|
4
4
|
import { memoize } from '@fluentui-react-native/memo-cache';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import macOSLightAliasTokens from '@fluentui-react-native/design-tokens-macos/light/tokens-aliases.json';
|
|
2
|
+
import macOSDarkAliasTokens from '@fluentui-react-native/design-tokens-macos/dark/tokens-aliases.json';
|
|
3
|
+
import macOSLightHCAliasTokens from '@fluentui-react-native/design-tokens-macos/hclight/tokens-aliases.json';
|
|
4
|
+
import macOSDarkHCAliasTokens from '@fluentui-react-native/design-tokens-macos/hcdark/tokens-aliases.json';
|
|
5
|
+
import { AppearanceOptions } from '@fluentui-react-native/theme-types';
|
|
6
|
+
import { assertNever } from 'assert-never';
|
|
7
|
+
|
|
8
|
+
export function getMacOSAliasTokens(mode: AppearanceOptions, isHighContrast: boolean) {
|
|
9
|
+
if (mode === 'light') {
|
|
10
|
+
if (isHighContrast) {
|
|
11
|
+
return macOSLightHCAliasTokens;
|
|
12
|
+
} else {
|
|
13
|
+
return macOSLightAliasTokens;
|
|
14
|
+
}
|
|
15
|
+
} else if (mode === 'dark') {
|
|
16
|
+
if (isHighContrast) {
|
|
17
|
+
return macOSDarkHCAliasTokens;
|
|
18
|
+
} else {
|
|
19
|
+
return macOSDarkAliasTokens;
|
|
20
|
+
}
|
|
21
|
+
} else if (mode === 'highContrast') {
|
|
22
|
+
throw new Error('highContrast is not a valid AppearanceOptions on macOS');
|
|
23
|
+
} else {
|
|
24
|
+
assertNever(mode);
|
|
25
|
+
}
|
|
26
|
+
}
|