Add numeric font family (#2703)
* Add numeric font family type * Fix build issues * Change files * Change files
This commit is contained in:
Родитель
ad4dd29422
Коммит
b2d39b11db
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"type": "minor",
|
||||
"comment": "Add numeric font family type",
|
||||
"packageName": "@fluentui-react-native/android-theme",
|
||||
"email": "ruaraki@microsoft.com",
|
||||
"dependentChangeType": "patch"
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"type": "minor",
|
||||
"comment": "Add numeric font family type",
|
||||
"packageName": "@fluentui-react-native/apple-theme",
|
||||
"email": "ruaraki@microsoft.com",
|
||||
"dependentChangeType": "patch"
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"type": "minor",
|
||||
"comment": "Add numeric font family type",
|
||||
"packageName": "@fluentui-react-native/default-theme",
|
||||
"email": "ruaraki@microsoft.com",
|
||||
"dependentChangeType": "patch"
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"type": "minor",
|
||||
"comment": "Add numeric font family type",
|
||||
"packageName": "@fluentui-react-native/theme-types",
|
||||
"email": "ruaraki@microsoft.com",
|
||||
"dependentChangeType": "patch"
|
||||
}
|
|
@ -474,6 +474,7 @@ Object {
|
|||
"families": Object {
|
||||
"cursive": "cursive",
|
||||
"monospace": "monospace",
|
||||
"numeric": "numeric",
|
||||
"primary": "sans-serif",
|
||||
"primaryLight": "sans-serif-light",
|
||||
"primarySemibold": "sans-serif-medium",
|
||||
|
@ -1110,6 +1111,7 @@ Object {
|
|||
"families": Object {
|
||||
"cursive": "cursive",
|
||||
"monospace": "monospace",
|
||||
"numeric": "numeric",
|
||||
"primary": "sans-serif",
|
||||
"primaryLight": "sans-serif-light",
|
||||
"primarySemibold": "sans-serif-medium",
|
||||
|
@ -1746,6 +1748,7 @@ Object {
|
|||
"families": Object {
|
||||
"cursive": "cursive",
|
||||
"monospace": "monospace",
|
||||
"numeric": "numeric",
|
||||
"primary": "sans-serif",
|
||||
"primaryLight": "sans-serif-light",
|
||||
"primarySemibold": "sans-serif-medium",
|
||||
|
@ -2382,6 +2385,7 @@ Object {
|
|||
"families": Object {
|
||||
"cursive": "cursive",
|
||||
"monospace": "monospace",
|
||||
"numeric": "numeric",
|
||||
"primary": "sans-serif",
|
||||
"primaryLight": "sans-serif-light",
|
||||
"primarySemibold": "sans-serif-medium",
|
||||
|
@ -3018,6 +3022,7 @@ Object {
|
|||
"families": Object {
|
||||
"cursive": "cursive",
|
||||
"monospace": "monospace",
|
||||
"numeric": "numeric",
|
||||
"primary": "sans-serif",
|
||||
"primaryLight": "sans-serif-light",
|
||||
"primarySemibold": "sans-serif-medium",
|
||||
|
@ -3654,6 +3659,7 @@ Object {
|
|||
"families": Object {
|
||||
"cursive": "cursive",
|
||||
"monospace": "monospace",
|
||||
"numeric": "numeric",
|
||||
"primary": "sans-serif",
|
||||
"primaryLight": "sans-serif-light",
|
||||
"primarySemibold": "sans-serif-medium",
|
||||
|
@ -4290,6 +4296,7 @@ Object {
|
|||
"families": Object {
|
||||
"cursive": "cursive",
|
||||
"monospace": "monospace",
|
||||
"numeric": "numeric",
|
||||
"primary": "sans-serif",
|
||||
"primaryLight": "sans-serif-light",
|
||||
"primarySemibold": "sans-serif-medium",
|
||||
|
|
|
@ -26,6 +26,7 @@ export function androidTypography(): Typography {
|
|||
secondary: 'System',
|
||||
cursive: 'cursive',
|
||||
monospace: 'monospace',
|
||||
numeric: 'numeric',
|
||||
sansSerif: 'sans-serif',
|
||||
serif: 'serif',
|
||||
},
|
||||
|
|
|
@ -922,6 +922,7 @@ Object {
|
|||
"families": Object {
|
||||
"cursive": "System",
|
||||
"monospace": "System",
|
||||
"numeric": "System",
|
||||
"primary": "System",
|
||||
"sansSerif": "System",
|
||||
"secondary": "System",
|
||||
|
|
|
@ -30,6 +30,7 @@ export function appleTypography(): Typography {
|
|||
secondary: 'System',
|
||||
cursive: 'System',
|
||||
monospace: 'System',
|
||||
numeric: 'System',
|
||||
sansSerif: 'System',
|
||||
serif: 'System',
|
||||
},
|
||||
|
|
|
@ -34,6 +34,7 @@ export function fallbackAppleTypography(): Typography {
|
|||
secondary: 'System',
|
||||
cursive: 'System',
|
||||
monospace: 'System',
|
||||
numeric: 'System',
|
||||
sansSerif: 'System',
|
||||
serif: 'System',
|
||||
},
|
||||
|
|
|
@ -1240,6 +1240,7 @@ Object {
|
|||
"families": Object {
|
||||
"cursive": "System",
|
||||
"monospace": "System",
|
||||
"numeric": "System",
|
||||
"primary": "Segoe UI",
|
||||
"sansSerif": "System",
|
||||
"secondary": "Segoe UI",
|
||||
|
@ -1868,6 +1869,7 @@ Object {
|
|||
"families": Object {
|
||||
"cursive": "System",
|
||||
"monospace": "System",
|
||||
"numeric": "System",
|
||||
"primary": "Segoe UI",
|
||||
"sansSerif": "System",
|
||||
"secondary": "Segoe UI",
|
||||
|
@ -2908,6 +2910,7 @@ Object {
|
|||
"families": Object {
|
||||
"cursive": "System",
|
||||
"monospace": "System",
|
||||
"numeric": "System",
|
||||
"primary": "Segoe UI",
|
||||
"sansSerif": "System",
|
||||
"secondary": "Segoe UI",
|
||||
|
@ -3536,6 +3539,7 @@ Object {
|
|||
"families": Object {
|
||||
"cursive": "System",
|
||||
"monospace": "System",
|
||||
"numeric": "System",
|
||||
"primary": "Segoe UI",
|
||||
"sansSerif": "System",
|
||||
"secondary": "Segoe UI",
|
||||
|
@ -4164,6 +4168,7 @@ Object {
|
|||
"families": Object {
|
||||
"cursive": "System",
|
||||
"monospace": "System",
|
||||
"numeric": "System",
|
||||
"primary": "Segoe UI",
|
||||
"sansSerif": "System",
|
||||
"secondary": "Segoe UI",
|
||||
|
@ -5311,6 +5316,7 @@ Object {
|
|||
"families": Object {
|
||||
"cursive": "System",
|
||||
"monospace": "System",
|
||||
"numeric": "System",
|
||||
"primary": "Segoe UI",
|
||||
"sansSerif": "System",
|
||||
"secondary": "Segoe UI",
|
||||
|
@ -5939,6 +5945,7 @@ Object {
|
|||
"families": Object {
|
||||
"cursive": "System",
|
||||
"monospace": "System",
|
||||
"numeric": "System",
|
||||
"primary": "Segoe UI",
|
||||
"sansSerif": "System",
|
||||
"secondary": "Segoe UI",
|
||||
|
|
|
@ -26,6 +26,7 @@ function _defaultTypography(): Typography {
|
|||
secondary: 'Segoe UI',
|
||||
cursive: 'System',
|
||||
monospace: 'System',
|
||||
numeric: 'System',
|
||||
sansSerif: 'System',
|
||||
serif: 'System',
|
||||
},
|
||||
|
@ -66,6 +67,7 @@ function _defaultTypography(): Typography {
|
|||
secondary: 'System',
|
||||
cursive: 'System',
|
||||
monospace: 'System',
|
||||
numeric: 'System',
|
||||
sansSerif: 'System',
|
||||
serif: 'System',
|
||||
};
|
||||
|
|
|
@ -28,6 +28,7 @@ export interface FontFamilies {
|
|||
secondary: FontFamilyValue;
|
||||
cursive: FontFamilyValue;
|
||||
monospace: FontFamilyValue;
|
||||
numeric: FontFamilyValue;
|
||||
sansSerif: FontFamilyValue;
|
||||
serif: FontFamilyValue;
|
||||
}
|
||||
|
|
|
@ -158,7 +158,15 @@ export const mockTheme: Theme = {
|
|||
typography: {
|
||||
sizes: { caption: 10, secondary: 12, body: 14, subheader: 16, header: 20, hero: 28, heroLarge: 42 },
|
||||
weights: { regular: '400', semiBold: '600' },
|
||||
families: { primary: 'Segoe UI', secondary: 'System', cursive: 'System', monospace: 'System', sansSerif: 'System', serif: 'System' },
|
||||
families: {
|
||||
primary: 'Segoe UI',
|
||||
secondary: 'System',
|
||||
cursive: 'System',
|
||||
monospace: 'System',
|
||||
numeric: 'System',
|
||||
sansSerif: 'System',
|
||||
serif: 'System',
|
||||
},
|
||||
variants: {
|
||||
captionStandard: { face: 'primary', size: 'caption', weight: 'regular' },
|
||||
secondaryStandard: { face: 'primary', size: 'secondary', weight: 'regular' },
|
||||
|
|
Загрузка…
Ссылка в новой задаче