@fluentui-react-native/default-theme 0.11.0 → 0.14.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 +97 -5
- package/CHANGELOG.md +31 -2
- package/lib/defaultTheme.d.ts.map +1 -1
- package/lib/defaultTheme.js +15 -29
- package/lib/defaultTheme.js.map +1 -1
- package/lib-commonjs/defaultTheme.d.ts.map +1 -1
- package/lib-commonjs/defaultTheme.js +15 -29
- package/lib-commonjs/defaultTheme.js.map +1 -1
- package/package.json +9 -9
- package/src/defaultTheme.ts +15 -31
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,99 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/default-theme",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Thu, 14 Jul 2022 18:07:21 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/default-theme_v0.14.0",
|
|
7
|
+
"version": "0.14.0",
|
|
8
|
+
"comments": {
|
|
9
|
+
"minor": [
|
|
10
|
+
{
|
|
11
|
+
"author": "sanajmi@microsoft.com",
|
|
12
|
+
"package": "@fluentui-react-native/default-theme",
|
|
13
|
+
"commit": "155145b496a51b06bba73f8f9c6b89dc7b348c4b",
|
|
14
|
+
"comment": "Update to React Native 0.66"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@fluentui-react-native/default-theme",
|
|
19
|
+
"comment": "Bump @fluentui-react-native/theme-tokens to v0.19.0",
|
|
20
|
+
"commit": "155145b496a51b06bba73f8f9c6b89dc7b348c4b"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "beachball",
|
|
24
|
+
"package": "@fluentui-react-native/default-theme",
|
|
25
|
+
"comment": "Bump @fluentui-react-native/theme-types to v0.18.0",
|
|
26
|
+
"commit": "155145b496a51b06bba73f8f9c6b89dc7b348c4b"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"author": "beachball",
|
|
30
|
+
"package": "@fluentui-react-native/default-theme",
|
|
31
|
+
"comment": "Bump @fluentui-react-native/theme to v0.7.0",
|
|
32
|
+
"commit": "155145b496a51b06bba73f8f9c6b89dc7b348c4b"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"author": "beachball",
|
|
36
|
+
"package": "@fluentui-react-native/default-theme",
|
|
37
|
+
"comment": "Bump @fluentui-react-native/theming-utils to v0.14.0",
|
|
38
|
+
"commit": "155145b496a51b06bba73f8f9c6b89dc7b348c4b"
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"date": "Wed, 25 May 2022 18:43:08 GMT",
|
|
45
|
+
"tag": "@fluentui-react-native/default-theme_v0.13.0",
|
|
46
|
+
"version": "0.13.0",
|
|
47
|
+
"comments": {
|
|
48
|
+
"minor": [
|
|
49
|
+
{
|
|
50
|
+
"author": "email not defined",
|
|
51
|
+
"package": "@fluentui-react-native/default-theme",
|
|
52
|
+
"commit": "18480e3fdf2038a34147995f413a45d14f012a73",
|
|
53
|
+
"comment": "Add text implementation v2"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"author": "beachball",
|
|
57
|
+
"package": "@fluentui-react-native/default-theme",
|
|
58
|
+
"comment": "Bump @fluentui-react-native/theme-tokens to v0.18.0",
|
|
59
|
+
"commit": "f4e881a5caef5a8258094f2a2ba674c62321886d"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"author": "beachball",
|
|
63
|
+
"package": "@fluentui-react-native/default-theme",
|
|
64
|
+
"comment": "Bump @fluentui-react-native/theme-types to v0.17.0",
|
|
65
|
+
"commit": "f4e881a5caef5a8258094f2a2ba674c62321886d"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"author": "beachball",
|
|
69
|
+
"package": "@fluentui-react-native/default-theme",
|
|
70
|
+
"comment": "Bump @fluentui-react-native/theme to v0.6.11",
|
|
71
|
+
"commit": "f4e881a5caef5a8258094f2a2ba674c62321886d"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"author": "beachball",
|
|
75
|
+
"package": "@fluentui-react-native/default-theme",
|
|
76
|
+
"comment": "Bump @fluentui-react-native/theming-utils to v0.13.0",
|
|
77
|
+
"commit": "f4e881a5caef5a8258094f2a2ba674c62321886d"
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"patch": [
|
|
81
|
+
{
|
|
82
|
+
"author": "krsiler@microsoft.com",
|
|
83
|
+
"package": "@fluentui-react-native/default-theme",
|
|
84
|
+
"commit": "7d1c5dba49eb5da6c18681b8c9295c7fa0d0353b",
|
|
85
|
+
"comment": "Version bump for packages to attempt to fix NPM publish pipeline"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"author": "krsiler@microsoft.com",
|
|
89
|
+
"package": "@fluentui-react-native/default-theme",
|
|
90
|
+
"commit": "f4e881a5caef5a8258094f2a2ba674c62321886d",
|
|
91
|
+
"comment": "beachball sync"
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"date": "Sat, 21 May 2022 01:47:57 GMT",
|
|
6
98
|
"tag": "@fluentui-react-native/default-theme_v0.11.0",
|
|
7
99
|
"version": "0.11.0",
|
|
8
100
|
"comments": {
|
|
@@ -17,25 +109,25 @@
|
|
|
17
109
|
"author": "beachball",
|
|
18
110
|
"package": "@fluentui-react-native/default-theme",
|
|
19
111
|
"comment": "Bump @fluentui-react-native/theme-tokens to v0.16.3",
|
|
20
|
-
"commit": "
|
|
112
|
+
"commit": "36ea0d81629f9326eb8c23912d9949381014dade"
|
|
21
113
|
},
|
|
22
114
|
{
|
|
23
115
|
"author": "beachball",
|
|
24
116
|
"package": "@fluentui-react-native/default-theme",
|
|
25
117
|
"comment": "Bump @fluentui-react-native/theme-types to v0.15.0",
|
|
26
|
-
"commit": "
|
|
118
|
+
"commit": "36ea0d81629f9326eb8c23912d9949381014dade"
|
|
27
119
|
},
|
|
28
120
|
{
|
|
29
121
|
"author": "beachball",
|
|
30
122
|
"package": "@fluentui-react-native/default-theme",
|
|
31
123
|
"comment": "Bump @fluentui-react-native/theme to v0.6.9",
|
|
32
|
-
"commit": "
|
|
124
|
+
"commit": "36ea0d81629f9326eb8c23912d9949381014dade"
|
|
33
125
|
},
|
|
34
126
|
{
|
|
35
127
|
"author": "beachball",
|
|
36
128
|
"package": "@fluentui-react-native/default-theme",
|
|
37
129
|
"comment": "Bump @fluentui-react-native/theming-utils to v0.11.0",
|
|
38
|
-
"commit": "
|
|
130
|
+
"commit": "36ea0d81629f9326eb8c23912d9949381014dade"
|
|
39
131
|
}
|
|
40
132
|
]
|
|
41
133
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,41 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/default-theme
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 14 Jul 2022 18:07:21 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.14.0
|
|
8
|
+
|
|
9
|
+
Thu, 14 Jul 2022 18:07:21 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- Update to React Native 0.66 (sanajmi@microsoft.com)
|
|
14
|
+
- Bump @fluentui-react-native/theme-tokens to v0.19.0
|
|
15
|
+
- Bump @fluentui-react-native/theme-types to v0.18.0
|
|
16
|
+
- Bump @fluentui-react-native/theme to v0.7.0
|
|
17
|
+
- Bump @fluentui-react-native/theming-utils to v0.14.0
|
|
18
|
+
|
|
19
|
+
## 0.13.0
|
|
20
|
+
|
|
21
|
+
Wed, 25 May 2022 18:43:08 GMT
|
|
22
|
+
|
|
23
|
+
### Minor changes
|
|
24
|
+
|
|
25
|
+
- Add text implementation v2 (email not defined)
|
|
26
|
+
- Bump @fluentui-react-native/theme-tokens to v0.18.0
|
|
27
|
+
- Bump @fluentui-react-native/theme-types to v0.17.0
|
|
28
|
+
- Bump @fluentui-react-native/theme to v0.6.11
|
|
29
|
+
- Bump @fluentui-react-native/theming-utils to v0.13.0
|
|
30
|
+
|
|
31
|
+
### Patches
|
|
32
|
+
|
|
33
|
+
- Version bump for packages to attempt to fix NPM publish pipeline (krsiler@microsoft.com)
|
|
34
|
+
- beachball sync (krsiler@microsoft.com)
|
|
35
|
+
|
|
7
36
|
## 0.11.0
|
|
8
37
|
|
|
9
|
-
Sat, 21 May 2022 01:
|
|
38
|
+
Sat, 21 May 2022 01:47:57 GMT
|
|
10
39
|
|
|
11
40
|
### Minor changes
|
|
12
41
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultTheme.d.ts","sourceRoot":"","sources":["../src/defaultTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAc,OAAO,EAAkD,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"defaultTheme.d.ts","sourceRoot":"","sources":["../src/defaultTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAc,OAAO,EAAkD,MAAM,oCAAoC,CAAC;AA2EhI,wBAAgB,cAAc,IAAI,OAAO,CAExC;AAED,eAAO,MAAM,kBAAkB,EAAE,KAOhC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,KAOpC,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,KAO7C,CAAC"}
|
package/lib/defaultTheme.js
CHANGED
|
@@ -11,7 +11,7 @@ function _defaultTypography() {
|
|
|
11
11
|
subheader: globalTokens.font.size['400'],
|
|
12
12
|
header: globalTokens.font.size['500'],
|
|
13
13
|
hero: globalTokens.font.size['700'],
|
|
14
|
-
heroLarge:
|
|
14
|
+
heroLarge: globalTokens.font.size['900'],
|
|
15
15
|
},
|
|
16
16
|
weights: {
|
|
17
17
|
regular: globalTokens.font.weight.regular,
|
|
@@ -39,6 +39,20 @@ function _defaultTypography() {
|
|
|
39
39
|
heroSemibold: { face: 'primary', size: 'hero', weight: 'semiBold' },
|
|
40
40
|
heroLargeStandard: { face: 'primary', size: 'heroLarge', weight: 'regular' },
|
|
41
41
|
heroLargeSemibold: { face: 'primary', size: 'heroLarge', weight: 'semiBold' },
|
|
42
|
+
// mocked out
|
|
43
|
+
caption1: { face: 'primary', size: 'caption', weight: 'regular' },
|
|
44
|
+
body1: { face: 'primary', size: 'secondary', weight: 'regular' },
|
|
45
|
+
body1Strong: { face: 'primary', size: 'secondary', weight: 'semiBold' },
|
|
46
|
+
body2: { face: 'primary', size: 'body', weight: 'regular' },
|
|
47
|
+
body2Strong: { face: 'primary', size: 'body', weight: 'semiBold' },
|
|
48
|
+
subtitle1: { face: 'primary', size: 'header', weight: 'regular' },
|
|
49
|
+
subtitle1Strong: { face: 'primary', size: 'header', weight: 'semiBold' },
|
|
50
|
+
subtitle2: { face: 'primary', size: 'subheader', weight: 'regular' },
|
|
51
|
+
subtitle2Strong: { face: 'primary', size: 'subheader', weight: 'semiBold' },
|
|
52
|
+
title1: { face: 'primary', size: 'hero', weight: 'regular' },
|
|
53
|
+
title1Strong: { face: 'primary', size: 'hero', weight: 'semiBold' },
|
|
54
|
+
largeTitle: { face: 'primary', size: 'heroLarge', weight: 'regular' },
|
|
55
|
+
display: { face: 'primary', size: 'heroLarge', weight: 'semiBold' },
|
|
42
56
|
},
|
|
43
57
|
};
|
|
44
58
|
if (Platform.OS === 'macos' || Platform.OS === 'ios') {
|
|
@@ -52,34 +66,6 @@ function _defaultTypography() {
|
|
|
52
66
|
};
|
|
53
67
|
defaultsDict.families = familiesDictApple;
|
|
54
68
|
}
|
|
55
|
-
// In certain cases on win32, semibold font renders incorrectly so 'Segoe UI Semibold' is used
|
|
56
|
-
if (Platform.OS === 'win32') {
|
|
57
|
-
var familiesDictWin32 = {
|
|
58
|
-
primary: 'Segoe UI',
|
|
59
|
-
secondary: 'Segoe UI Semibold',
|
|
60
|
-
cursive: 'System',
|
|
61
|
-
monospace: 'System',
|
|
62
|
-
sansSerif: 'System',
|
|
63
|
-
serif: 'System',
|
|
64
|
-
};
|
|
65
|
-
defaultsDict.families = familiesDictWin32;
|
|
66
|
-
var variantsDictWin32 = {
|
|
67
|
-
captionStandard: { face: 'primary', size: 'caption', weight: 'regular' },
|
|
68
|
-
secondaryStandard: { face: 'primary', size: 'secondary', weight: 'regular' },
|
|
69
|
-
secondarySemibold: { face: 'secondary', size: 'secondary', weight: 'semiBold' },
|
|
70
|
-
bodyStandard: { face: 'primary', size: 'body', weight: 'regular' },
|
|
71
|
-
bodySemibold: { face: 'secondary', size: 'body', weight: 'semiBold' },
|
|
72
|
-
subheaderStandard: { face: 'primary', size: 'subheader', weight: 'regular' },
|
|
73
|
-
subheaderSemibold: { face: 'secondary', size: 'subheader', weight: 'semiBold' },
|
|
74
|
-
headerStandard: { face: 'primary', size: 'header', weight: 'regular' },
|
|
75
|
-
headerSemibold: { face: 'secondary', size: 'header', weight: 'semiBold' },
|
|
76
|
-
heroStandard: { face: 'primary', size: 'hero', weight: 'regular' },
|
|
77
|
-
heroSemibold: { face: 'secondary', size: 'hero', weight: 'semiBold' },
|
|
78
|
-
heroLargeStandard: { face: 'primary', size: 'heroLarge', weight: 'regular' },
|
|
79
|
-
heroLargeSemibold: { face: 'secondary', size: 'heroLarge', weight: 'semiBold' },
|
|
80
|
-
};
|
|
81
|
-
defaultsDict.variants = variantsDictWin32;
|
|
82
|
-
}
|
|
83
69
|
return defaultsDict;
|
|
84
70
|
}
|
|
85
71
|
export function defaultSpacing() {
|
package/lib/defaultTheme.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultTheme.js","sourceRoot":"","sources":["../src/defaultTheme.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE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ED,MAAM,CAAC,IAAM,kBAAkB,GAAU;IACvC,MAAM,EAAE,kBAAkB,EAAE;IAC5B,UAAU,EAAE,kBAAkB,EAAE;IAChC,OAAO,EAAE,cAAc,EAAE;IACzB,OAAO,EAAE,uBAAuB,CAAC,OAAO,CAAC;IACzC,UAAU,EAAE,EAAE;IACd,IAAI,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE;CAC9B,CAAC;AAEF,MAAM,CAAC,IAAM,sBAAsB,GAAU;IAC3C,MAAM,EAAE,sBAAsB,EAAE;IAChC,UAAU,EAAE,kBAAkB,CAAC,UAAU;IACzC,OAAO,EAAE,uBAAuB,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE,kBAAkB,CAAC,OAAO;IACnC,UAAU,EAAE,EAAE;IACd,IAAI,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE;CAC7B,CAAC;AAEF,MAAM,CAAC,IAAM,+BAA+B,GAAU;IACpD,MAAM,EAAE,oBAAoB,EAAE;IAC9B,UAAU,EAAE,kBAAkB,CAAC,UAAU;IACzC,OAAO,EAAE,uBAAuB,CAAC,cAAc,CAAC;IAChD,OAAO,EAAE,kBAAkB,CAAC,OAAO;IACnC,UAAU,EAAE,EAAE;IACd,IAAI,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE;CACrC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultTheme.d.ts","sourceRoot":"","sources":["../src/defaultTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAc,OAAO,EAAkD,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"defaultTheme.d.ts","sourceRoot":"","sources":["../src/defaultTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAc,OAAO,EAAkD,MAAM,oCAAoC,CAAC;AA2EhI,wBAAgB,cAAc,IAAI,OAAO,CAExC;AAED,eAAO,MAAM,kBAAkB,EAAE,KAOhC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,KAOpC,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,KAO7C,CAAC"}
|
|
@@ -14,7 +14,7 @@ function _defaultTypography() {
|
|
|
14
14
|
subheader: theme_tokens_1.globalTokens.font.size['400'],
|
|
15
15
|
header: theme_tokens_1.globalTokens.font.size['500'],
|
|
16
16
|
hero: theme_tokens_1.globalTokens.font.size['700'],
|
|
17
|
-
heroLarge:
|
|
17
|
+
heroLarge: theme_tokens_1.globalTokens.font.size['900'],
|
|
18
18
|
},
|
|
19
19
|
weights: {
|
|
20
20
|
regular: theme_tokens_1.globalTokens.font.weight.regular,
|
|
@@ -42,6 +42,20 @@ function _defaultTypography() {
|
|
|
42
42
|
heroSemibold: { face: 'primary', size: 'hero', weight: 'semiBold' },
|
|
43
43
|
heroLargeStandard: { face: 'primary', size: 'heroLarge', weight: 'regular' },
|
|
44
44
|
heroLargeSemibold: { face: 'primary', size: 'heroLarge', weight: 'semiBold' },
|
|
45
|
+
// mocked out
|
|
46
|
+
caption1: { face: 'primary', size: 'caption', weight: 'regular' },
|
|
47
|
+
body1: { face: 'primary', size: 'secondary', weight: 'regular' },
|
|
48
|
+
body1Strong: { face: 'primary', size: 'secondary', weight: 'semiBold' },
|
|
49
|
+
body2: { face: 'primary', size: 'body', weight: 'regular' },
|
|
50
|
+
body2Strong: { face: 'primary', size: 'body', weight: 'semiBold' },
|
|
51
|
+
subtitle1: { face: 'primary', size: 'header', weight: 'regular' },
|
|
52
|
+
subtitle1Strong: { face: 'primary', size: 'header', weight: 'semiBold' },
|
|
53
|
+
subtitle2: { face: 'primary', size: 'subheader', weight: 'regular' },
|
|
54
|
+
subtitle2Strong: { face: 'primary', size: 'subheader', weight: 'semiBold' },
|
|
55
|
+
title1: { face: 'primary', size: 'hero', weight: 'regular' },
|
|
56
|
+
title1Strong: { face: 'primary', size: 'hero', weight: 'semiBold' },
|
|
57
|
+
largeTitle: { face: 'primary', size: 'heroLarge', weight: 'regular' },
|
|
58
|
+
display: { face: 'primary', size: 'heroLarge', weight: 'semiBold' },
|
|
45
59
|
},
|
|
46
60
|
};
|
|
47
61
|
if (react_native_1.Platform.OS === 'macos' || react_native_1.Platform.OS === 'ios') {
|
|
@@ -55,34 +69,6 @@ function _defaultTypography() {
|
|
|
55
69
|
};
|
|
56
70
|
defaultsDict.families = familiesDictApple;
|
|
57
71
|
}
|
|
58
|
-
// In certain cases on win32, semibold font renders incorrectly so 'Segoe UI Semibold' is used
|
|
59
|
-
if (react_native_1.Platform.OS === 'win32') {
|
|
60
|
-
var familiesDictWin32 = {
|
|
61
|
-
primary: 'Segoe UI',
|
|
62
|
-
secondary: 'Segoe UI Semibold',
|
|
63
|
-
cursive: 'System',
|
|
64
|
-
monospace: 'System',
|
|
65
|
-
sansSerif: 'System',
|
|
66
|
-
serif: 'System',
|
|
67
|
-
};
|
|
68
|
-
defaultsDict.families = familiesDictWin32;
|
|
69
|
-
var variantsDictWin32 = {
|
|
70
|
-
captionStandard: { face: 'primary', size: 'caption', weight: 'regular' },
|
|
71
|
-
secondaryStandard: { face: 'primary', size: 'secondary', weight: 'regular' },
|
|
72
|
-
secondarySemibold: { face: 'secondary', size: 'secondary', weight: 'semiBold' },
|
|
73
|
-
bodyStandard: { face: 'primary', size: 'body', weight: 'regular' },
|
|
74
|
-
bodySemibold: { face: 'secondary', size: 'body', weight: 'semiBold' },
|
|
75
|
-
subheaderStandard: { face: 'primary', size: 'subheader', weight: 'regular' },
|
|
76
|
-
subheaderSemibold: { face: 'secondary', size: 'subheader', weight: 'semiBold' },
|
|
77
|
-
headerStandard: { face: 'primary', size: 'header', weight: 'regular' },
|
|
78
|
-
headerSemibold: { face: 'secondary', size: 'header', weight: 'semiBold' },
|
|
79
|
-
heroStandard: { face: 'primary', size: 'hero', weight: 'regular' },
|
|
80
|
-
heroSemibold: { face: 'secondary', size: 'hero', weight: 'semiBold' },
|
|
81
|
-
heroLargeStandard: { face: 'primary', size: 'heroLarge', weight: 'regular' },
|
|
82
|
-
heroLargeSemibold: { face: 'secondary', size: 'heroLarge', weight: 'semiBold' },
|
|
83
|
-
};
|
|
84
|
-
defaultsDict.variants = variantsDictWin32;
|
|
85
|
-
}
|
|
86
72
|
return defaultsDict;
|
|
87
73
|
}
|
|
88
74
|
function defaultSpacing() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultTheme.js","sourceRoot":"","sources":["../src/defaultTheme.ts"],"names":[],"mappings":";;;AACA,6CAAwC;AACxC,iDAAmG;AACnG,oEAAmE;AACnE,yDAA8D;AAE9D,SAAS,kBAAkB;IACzB,IAAM,YAAY,GAAG;QACnB,KAAK,EAAE;YACL,OAAO,EAAE,2BAAY,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAa;YAClD,SAAS,EAAE,2BAAY,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAa;YACpD,IAAI,EAAE,2BAAY,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAa;YAC/C,SAAS,EAAE,2BAAY,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAa;YACpD,MAAM,EAAE,2BAAY,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAa;YACjD,IAAI,EAAE,2BAAY,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAa;YAC/C,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"defaultTheme.js","sourceRoot":"","sources":["../src/defaultTheme.ts"],"names":[],"mappings":";;;AACA,6CAAwC;AACxC,iDAAmG;AACnG,oEAAmE;AACnE,yDAA8D;AAE9D,SAAS,kBAAkB;IACzB,IAAM,YAAY,GAAG;QACnB,KAAK,EAAE;YACL,OAAO,EAAE,2BAAY,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAa;YAClD,SAAS,EAAE,2BAAY,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAa;YACpD,IAAI,EAAE,2BAAY,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,C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AAM,EAAE,CAAC;AACrE,CAAC;AAFD,wCAEC;AAEY,QAAA,kBAAkB,GAAU;IACvC,MAAM,EAAE,IAAA,kCAAkB,GAAE;IAC5B,UAAU,EAAE,kBAAkB,EAAE;IAChC,OAAO,EAAE,cAAc,EAAE;IACzB,OAAO,EAAE,IAAA,2CAAuB,EAAC,OAAO,CAAC;IACzC,UAAU,EAAE,EAAE;IACd,IAAI,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE;CAC9B,CAAC;AAEW,QAAA,sBAAsB,GAAU;IAC3C,MAAM,EAAE,IAAA,sCAAsB,GAAE;IAChC,UAAU,EAAE,0BAAkB,CAAC,UAAU;IACzC,OAAO,EAAE,IAAA,2CAAuB,EAAC,MAAM,CAAC;IACxC,OAAO,EAAE,0BAAkB,CAAC,OAAO;IACnC,UAAU,EAAE,EAAE;IACd,IAAI,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE;CAC7B,CAAC;AAEW,QAAA,+BAA+B,GAAU;IACpD,MAAM,EAAE,IAAA,oCAAoB,GAAE;IAC9B,UAAU,EAAE,0BAAkB,CAAC,UAAU;IACzC,OAAO,EAAE,IAAA,2CAAuB,EAAC,cAAc,CAAC;IAChD,OAAO,EAAE,0BAAkB,CAAC,OAAO;IACnC,UAAU,EAAE,EAAE;IACd,IAAI,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE;CACrC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/default-theme",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Typing only package for fluentui-react-native theme types",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,21 +30,21 @@
|
|
|
30
30
|
"@fluentui-react-native/design-tokens-win32": "^0.13.0",
|
|
31
31
|
"@fluentui-react-native/design-tokens-windows": "^0.13.0",
|
|
32
32
|
"@fluentui-react-native/memo-cache": "^1.1.7",
|
|
33
|
-
"@fluentui-react-native/theme-tokens": "^0.
|
|
34
|
-
"@fluentui-react-native/theme-types": ">=0.
|
|
35
|
-
"@fluentui-react-native/theme": ">=0.
|
|
36
|
-
"@fluentui-react-native/theming-utils": ">=0.
|
|
33
|
+
"@fluentui-react-native/theme-tokens": "^0.19.0",
|
|
34
|
+
"@fluentui-react-native/theme-types": ">=0.18.0 <1.0.0",
|
|
35
|
+
"@fluentui-react-native/theme": ">=0.7.0 <1.0.0",
|
|
36
|
+
"@fluentui-react-native/theming-utils": ">=0.14.0 <1.0.0",
|
|
37
37
|
"assert-never": "^1.2.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@fluentui-react-native/eslint-config-rules": "^0.1.1",
|
|
41
41
|
"@types/react": "^17.0.2",
|
|
42
42
|
"@fluentui-react-native/scripts": "^0.1.1",
|
|
43
|
-
"react": "17.0.
|
|
44
|
-
"react-native": "^0.
|
|
43
|
+
"react": "17.0.2",
|
|
44
|
+
"react-native": "^0.66.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"react": ">=17.0.
|
|
48
|
-
"react-native": ">=0.
|
|
47
|
+
"react": ">=17.0.2",
|
|
48
|
+
"react-native": ">=0.66.0"
|
|
49
49
|
}
|
|
50
50
|
}
|
package/src/defaultTheme.ts
CHANGED
|
@@ -13,7 +13,7 @@ function _defaultTypography(): Typography {
|
|
|
13
13
|
subheader: globalTokens.font.size['400'] as FontSize,
|
|
14
14
|
header: globalTokens.font.size['500'] as FontSize,
|
|
15
15
|
hero: globalTokens.font.size['700'] as FontSize,
|
|
16
|
-
heroLarge:
|
|
16
|
+
heroLarge: globalTokens.font.size['900'] as FontSize,
|
|
17
17
|
} as FontSizes,
|
|
18
18
|
weights: {
|
|
19
19
|
regular: globalTokens.font.weight.regular as FontWeightValue,
|
|
@@ -41,6 +41,20 @@ function _defaultTypography(): Typography {
|
|
|
41
41
|
heroSemibold: { face: 'primary', size: 'hero', weight: 'semiBold' },
|
|
42
42
|
heroLargeStandard: { face: 'primary', size: 'heroLarge', weight: 'regular' },
|
|
43
43
|
heroLargeSemibold: { face: 'primary', size: 'heroLarge', weight: 'semiBold' },
|
|
44
|
+
// mocked out
|
|
45
|
+
caption1: { face: 'primary', size: 'caption', weight: 'regular' },
|
|
46
|
+
body1: { face: 'primary', size: 'secondary', weight: 'regular' },
|
|
47
|
+
body1Strong: { face: 'primary', size: 'secondary', weight: 'semiBold' },
|
|
48
|
+
body2: { face: 'primary', size: 'body', weight: 'regular' },
|
|
49
|
+
body2Strong: { face: 'primary', size: 'body', weight: 'semiBold' },
|
|
50
|
+
subtitle1: { face: 'primary', size: 'header', weight: 'regular' },
|
|
51
|
+
subtitle1Strong: { face: 'primary', size: 'header', weight: 'semiBold' },
|
|
52
|
+
subtitle2: { face: 'primary', size: 'subheader', weight: 'regular' },
|
|
53
|
+
subtitle2Strong: { face: 'primary', size: 'subheader', weight: 'semiBold' },
|
|
54
|
+
title1: { face: 'primary', size: 'hero', weight: 'regular' },
|
|
55
|
+
title1Strong: { face: 'primary', size: 'hero', weight: 'semiBold' },
|
|
56
|
+
largeTitle: { face: 'primary', size: 'heroLarge', weight: 'regular' },
|
|
57
|
+
display: { face: 'primary', size: 'heroLarge', weight: 'semiBold' },
|
|
44
58
|
} as Variants,
|
|
45
59
|
};
|
|
46
60
|
|
|
@@ -56,36 +70,6 @@ function _defaultTypography(): Typography {
|
|
|
56
70
|
defaultsDict.families = familiesDictApple;
|
|
57
71
|
}
|
|
58
72
|
|
|
59
|
-
// In certain cases on win32, semibold font renders incorrectly so 'Segoe UI Semibold' is used
|
|
60
|
-
if (Platform.OS === ('win32' as any)) {
|
|
61
|
-
const familiesDictWin32 = {
|
|
62
|
-
primary: 'Segoe UI',
|
|
63
|
-
secondary: 'Segoe UI Semibold',
|
|
64
|
-
cursive: 'System',
|
|
65
|
-
monospace: 'System',
|
|
66
|
-
sansSerif: 'System',
|
|
67
|
-
serif: 'System',
|
|
68
|
-
};
|
|
69
|
-
defaultsDict.families = familiesDictWin32;
|
|
70
|
-
|
|
71
|
-
const variantsDictWin32 = {
|
|
72
|
-
captionStandard: { face: 'primary', size: 'caption', weight: 'regular' },
|
|
73
|
-
secondaryStandard: { face: 'primary', size: 'secondary', weight: 'regular' },
|
|
74
|
-
secondarySemibold: { face: 'secondary', size: 'secondary', weight: 'semiBold' },
|
|
75
|
-
bodyStandard: { face: 'primary', size: 'body', weight: 'regular' },
|
|
76
|
-
bodySemibold: { face: 'secondary', size: 'body', weight: 'semiBold' },
|
|
77
|
-
subheaderStandard: { face: 'primary', size: 'subheader', weight: 'regular' },
|
|
78
|
-
subheaderSemibold: { face: 'secondary', size: 'subheader', weight: 'semiBold' },
|
|
79
|
-
headerStandard: { face: 'primary', size: 'header', weight: 'regular' },
|
|
80
|
-
headerSemibold: { face: 'secondary', size: 'header', weight: 'semiBold' },
|
|
81
|
-
heroStandard: { face: 'primary', size: 'hero', weight: 'regular' },
|
|
82
|
-
heroSemibold: { face: 'secondary', size: 'hero', weight: 'semiBold' },
|
|
83
|
-
heroLargeStandard: { face: 'primary', size: 'heroLarge', weight: 'regular' },
|
|
84
|
-
heroLargeSemibold: { face: 'secondary', size: 'heroLarge', weight: 'semiBold' },
|
|
85
|
-
} as Variants;
|
|
86
|
-
defaultsDict.variants = variantsDictWin32;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
73
|
return defaultsDict;
|
|
90
74
|
}
|
|
91
75
|
|