@cdek-it/react-native-ui-kit 1.0.0-beta.5 → 1.0.0-beta.6
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/README.md
CHANGED
|
@@ -39,7 +39,7 @@ UI kit использует следующие виды шрифтов.
|
|
|
39
39
|
| Тип шрифта | Используемые начертания | Рекомендуемый шрифт | Рекомендуемый аналог |
|
|
40
40
|
| ----------- | ---------------------------------------------- | ------------------- | -------------------- |
|
|
41
41
|
| `primary` | – regular<br/>– demibold<br/>– demibold italic | TT Fellows | Noto Sans |
|
|
42
|
-
| `secondary` | – regular<br/>–
|
|
42
|
+
| `secondary` | – regular<br/>– bold | Noto Sans | — |
|
|
43
43
|
|
|
44
44
|
Исходники шрифтов не поставляются вместе с пакетом, их требуется подключать
|
|
45
45
|
отдельно. После подключения шрифтов в проект, необходимо указать их в
|
|
@@ -87,7 +87,6 @@ UI kit использует следующие виды шрифтов.
|
|
|
87
87
|
fontFamily: 'Noto Sans',
|
|
88
88
|
fontDefinitions: [
|
|
89
89
|
{ path: './assets/NotoSans-Bold.ttf', weight: 700 },
|
|
90
|
-
{ path: './assets/NotoSans-Medium.ttf', weight: 500 },
|
|
91
90
|
{ path: './assets/NotoSans-Regular.ttf', weight: 400 },
|
|
92
91
|
],
|
|
93
92
|
},
|
|
@@ -108,7 +107,6 @@ UI kit использует следующие виды шрифтов.
|
|
|
108
107
|
<!-- xml_noto_sans.xml -->
|
|
109
108
|
<font-family xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
110
109
|
<font app:font="@font/noto_sans_bold" app:fontStyle="normal" app:fontWeight="700"/>
|
|
111
|
-
<font app:font="@font/noto_sans_medium" app:fontStyle="normal" app:fontWeight="500"/>
|
|
112
110
|
<font app:font="@font/noto_sans_regular" app:fontStyle="normal" app:fontWeight="400"/>
|
|
113
111
|
</font-family>
|
|
114
112
|
```
|
|
@@ -158,7 +156,6 @@ UI kit использует следующие виды шрифтов.
|
|
|
158
156
|
<string>TTFellows-DemiBoldItalic.ttf</string>
|
|
159
157
|
<string>TTFellows-Regular.ttf</string>
|
|
160
158
|
<string>NotoSans-Regular.ttf</string>
|
|
161
|
-
<string>NotoSans-Medium.ttf</string>
|
|
162
159
|
<string>NotoSans-Bold.ttf</string>
|
|
163
160
|
</array>
|
|
164
161
|
```
|
|
@@ -58,7 +58,11 @@ const styles = StyleSheet.create(({ spacing, typography, fonts }) => ({
|
|
|
58
58
|
letterSpacing: -0.25,
|
|
59
59
|
},
|
|
60
60
|
underlined: { textDecorationLine: 'underline' },
|
|
61
|
-
base: {
|
|
61
|
+
base: {
|
|
62
|
+
fontSize: typography.Size['text-base'],
|
|
63
|
+
lineHeight: undefined,
|
|
64
|
+
letterSpacing: 0,
|
|
65
|
+
},
|
|
62
66
|
visited: { color: typography.Color.Service['text-help'] },
|
|
63
67
|
icon: {
|
|
64
68
|
width: typography.Size['text-base'],
|
|
@@ -4,6 +4,6 @@ export interface BodyProps extends TextProps {
|
|
|
4
4
|
readonly color?: 'default' | 'secondary' | 'primary';
|
|
5
5
|
readonly disabled?: boolean;
|
|
6
6
|
readonly paragraph?: boolean;
|
|
7
|
-
readonly weight?: 'regular' | '
|
|
7
|
+
readonly weight?: 'regular' | 'bold';
|
|
8
8
|
}
|
|
9
9
|
export declare const Body: ({ base, color, disabled, paragraph, weight, style, ...other }: BodyProps) => import("react").JSX.Element;
|
|
@@ -18,11 +18,9 @@ const styles = StyleSheet.create(({ theme, typography, fonts }) => ({
|
|
|
18
18
|
verticalAlign: 'middle',
|
|
19
19
|
fontFamily: fonts.secondary,
|
|
20
20
|
lineHeight: 20,
|
|
21
|
-
letterSpacing: -0.5,
|
|
22
21
|
},
|
|
23
22
|
regular: { fontWeight: 400 },
|
|
24
|
-
|
|
25
|
-
bold: { fontWeight: 700 },
|
|
23
|
+
bold: { fontWeight: 700, letterSpacing: -0.5 },
|
|
26
24
|
default: { color: theme.General.textColor },
|
|
27
25
|
primary: { color: theme.General.primaryColor },
|
|
28
26
|
secondary: { color: theme.General.textSecondaryColor },
|
|
@@ -60,7 +60,7 @@ const styles = StyleSheet.create(({ typography, spacing, fonts }) => ({
|
|
|
60
60
|
lineHeight: 15,
|
|
61
61
|
letterSpacing: -0.25,
|
|
62
62
|
},
|
|
63
|
-
textBase: { lineHeight:
|
|
63
|
+
textBase: { lineHeight: undefined, fontSize: typography.Size['text-base'] },
|
|
64
64
|
warning: { color: typography.Color.Service['text-warning'] },
|
|
65
65
|
success: { color: typography.Color.Service['text-success'] },
|
|
66
66
|
info: { color: typography.Color.Service['text-info'] },
|
package/package.json
CHANGED