@bitrise/bitkit 11.4.0 → 11.4.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.
- package/package.json +1 -1
- package/src/Components/Form/Form.theme.ts +2 -2
- package/src/Components/Table/Table.theme.ts +2 -2
- package/src/Components/Tabs/Tabs.theme.ts +1 -1
- package/src/Components/Text/Text.tsx +2 -4
- package/src/Components/Toggle/Toggle.theme.ts +1 -1
- package/src/Components/Tooltip/Tooltip.theme.ts +1 -1
- package/src/Foundations/Themes/Alert.theme.ts +1 -1
- package/src/Foundations/Typography/Typography.ts +9 -18
- package/src/theme.ts +1 -1
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ const FormTheme = {
|
|
|
5
5
|
baseStyle: {
|
|
6
6
|
helperText: {
|
|
7
7
|
fontSize: '2',
|
|
8
|
-
lineHeight: '
|
|
8
|
+
lineHeight: '1.25rem',
|
|
9
9
|
marginTop: '4',
|
|
10
10
|
color: 'neutral.40',
|
|
11
11
|
},
|
|
@@ -15,7 +15,7 @@ const FormTheme = {
|
|
|
15
15
|
baseStyle: {
|
|
16
16
|
text: {
|
|
17
17
|
fontSize: '2',
|
|
18
|
-
lineHeight: '
|
|
18
|
+
lineHeight: '1.25rem',
|
|
19
19
|
marginTop: '4',
|
|
20
20
|
color: 'red.50',
|
|
21
21
|
},
|
|
@@ -5,7 +5,7 @@ export const separatorStyle: SystemStyleObject = {
|
|
|
5
5
|
color: 'neutral.50',
|
|
6
6
|
fontSize: '1',
|
|
7
7
|
fontWeight: 'bold',
|
|
8
|
-
lineHeight: '
|
|
8
|
+
lineHeight: '1rem',
|
|
9
9
|
textTransform: 'uppercase',
|
|
10
10
|
};
|
|
11
11
|
|
|
@@ -17,7 +17,7 @@ const Tabletheme: SystemStyleObject = {
|
|
|
17
17
|
},
|
|
18
18
|
captionTitle: {
|
|
19
19
|
fontSize: '4',
|
|
20
|
-
lineHeight: '
|
|
20
|
+
lineHeight: '1.75rem',
|
|
21
21
|
fontWeight: 'bold',
|
|
22
22
|
color: 'purple.10',
|
|
23
23
|
},
|
|
@@ -37,7 +37,6 @@ type TextTags =
|
|
|
37
37
|
| 'var';
|
|
38
38
|
|
|
39
39
|
export interface TextProps extends ChakraTextProps {
|
|
40
|
-
align?: ResponsiveValue<'center' | 'justify' | 'left' | 'right'>;
|
|
41
40
|
/**
|
|
42
41
|
* Any valid HTML text tag
|
|
43
42
|
*/
|
|
@@ -45,13 +44,12 @@ export interface TextProps extends ChakraTextProps {
|
|
|
45
44
|
/**
|
|
46
45
|
* Font weight
|
|
47
46
|
*/
|
|
48
|
-
fontWeight?: ResponsiveValue<'bold' | 'normal'>;
|
|
47
|
+
fontWeight?: ResponsiveValue<'bold' | 'demiBold' | 'normal'>;
|
|
48
|
+
hasEllipsis?: boolean;
|
|
49
49
|
/**
|
|
50
50
|
* Size config (https://www.figma.com/file/grik9mTaJ5DfhydhWhXdP5/Bitkit-Foundations?node-id=211%3A12)
|
|
51
51
|
*/
|
|
52
52
|
size?: ResponsiveValue<TextSizes>;
|
|
53
|
-
textTransform?: ResponsiveValue<'capitalize' | 'lowercase' | 'none' | 'uppercase'>;
|
|
54
|
-
hasEllipsis?: boolean;
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
/**
|
|
@@ -15,6 +15,7 @@ const typography = {
|
|
|
15
15
|
},
|
|
16
16
|
fontWeights: {
|
|
17
17
|
normal: 400,
|
|
18
|
+
demiBold: 600,
|
|
18
19
|
bold: 700,
|
|
19
20
|
},
|
|
20
21
|
letterSpacings: {
|
|
@@ -24,51 +25,41 @@ const typography = {
|
|
|
24
25
|
'4': '0.0375rem',
|
|
25
26
|
'5': '0.05rem',
|
|
26
27
|
},
|
|
27
|
-
lineHeights: {
|
|
28
|
-
'1': '1rem',
|
|
29
|
-
'2': '1.25rem',
|
|
30
|
-
'3': '1.5rem',
|
|
31
|
-
'4': '1.75rem',
|
|
32
|
-
'5': '2.25rem',
|
|
33
|
-
'6': '2.5rem',
|
|
34
|
-
'7': '3rem',
|
|
35
|
-
'8': '3.75rem',
|
|
36
|
-
},
|
|
37
28
|
};
|
|
38
29
|
|
|
39
30
|
export const textSizes = {
|
|
40
31
|
sizes: {
|
|
41
32
|
'1': {
|
|
42
33
|
fontSize: '1',
|
|
43
|
-
lineHeight: '
|
|
34
|
+
lineHeight: '1rem',
|
|
44
35
|
},
|
|
45
36
|
'2': {
|
|
46
37
|
fontSize: '2',
|
|
47
|
-
lineHeight: '
|
|
38
|
+
lineHeight: '1.25rem',
|
|
48
39
|
},
|
|
49
40
|
'3': {
|
|
50
41
|
fontSize: '3',
|
|
51
|
-
lineHeight: '
|
|
42
|
+
lineHeight: '1.5rem',
|
|
52
43
|
},
|
|
53
44
|
'4': {
|
|
54
45
|
fontSize: '4',
|
|
55
|
-
lineHeight: '
|
|
46
|
+
lineHeight: '1.75rem',
|
|
56
47
|
},
|
|
57
48
|
'5': {
|
|
58
49
|
fontSize: '5',
|
|
59
|
-
lineHeight: '
|
|
50
|
+
lineHeight: '2.25rem',
|
|
60
51
|
},
|
|
61
52
|
'6': {
|
|
62
53
|
fontSize: '6',
|
|
63
|
-
lineHeight: '
|
|
54
|
+
lineHeight: '2.5rem',
|
|
64
55
|
},
|
|
65
56
|
'7': {
|
|
66
57
|
fontSize: '7',
|
|
67
|
-
lineHeight: '
|
|
58
|
+
lineHeight: '3rem',
|
|
68
59
|
},
|
|
69
60
|
'8': {
|
|
70
61
|
fontSize: '8',
|
|
71
|
-
lineHeight: '
|
|
62
|
+
lineHeight: '3.75rem',
|
|
72
63
|
},
|
|
73
64
|
},
|
|
74
65
|
};
|