@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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit",
3
3
  "description": "Bitrise React component library",
4
- "version": "11.4.0",
4
+ "version": "11.4.1",
5
5
  "repository": "git@github.com:bitrise-io/bitkit.git",
6
6
  "main": "src/index.ts",
7
7
  "license": "UNLICENSED",
@@ -5,7 +5,7 @@ const FormTheme = {
5
5
  baseStyle: {
6
6
  helperText: {
7
7
  fontSize: '2',
8
- lineHeight: '2',
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: '2',
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: '1',
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: '4',
20
+ lineHeight: '1.75rem',
21
21
  fontWeight: 'bold',
22
22
  color: 'purple.10',
23
23
  },
@@ -6,7 +6,7 @@ const TextTheme = {
6
6
  justifyContent: 'flex-start',
7
7
  fontSize: '3',
8
8
  gap: '8',
9
- lineHeight: '3',
9
+ lineHeight: '1.5rem',
10
10
  paddingX: '16',
11
11
  paddingTop: '12',
12
12
  paddingBottom: '10px',
@@ -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
  /**
@@ -64,7 +64,7 @@ const ToggleTheme: ComponentStyleConfig = {
64
64
  label: {
65
65
  fontSize: '3',
66
66
  fontWeight: 'normal',
67
- lineHeight: '3',
67
+ lineHeight: '1.5rem',
68
68
  marginBottom: 0,
69
69
  },
70
70
  spinner: {
@@ -5,7 +5,7 @@ const TooltipTheme: SystemStyleObject = {
5
5
  bg: 'neutral.10',
6
6
  color: 'neutral.95',
7
7
  fontSize: '2',
8
- lineHeight: '2',
8
+ lineHeight: '1.25rem',
9
9
  paddingX: '12',
10
10
  paddingY: '8',
11
11
  borderRadius: '8',
@@ -12,7 +12,7 @@ const AlertTheme = {
12
12
  borderWidth: '1px',
13
13
  padding: '12',
14
14
  fontSize: '3',
15
- lineHeight: '3',
15
+ lineHeight: '1.5rem',
16
16
  bg: `${colorScheme}.95`,
17
17
  color: `${colorScheme}.40`,
18
18
  borderColor: `${colorScheme}.80`,
@@ -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: '1',
34
+ lineHeight: '1rem',
44
35
  },
45
36
  '2': {
46
37
  fontSize: '2',
47
- lineHeight: '2',
38
+ lineHeight: '1.25rem',
48
39
  },
49
40
  '3': {
50
41
  fontSize: '3',
51
- lineHeight: '3',
42
+ lineHeight: '1.5rem',
52
43
  },
53
44
  '4': {
54
45
  fontSize: '4',
55
- lineHeight: '4',
46
+ lineHeight: '1.75rem',
56
47
  },
57
48
  '5': {
58
49
  fontSize: '5',
59
- lineHeight: '5',
50
+ lineHeight: '2.25rem',
60
51
  },
61
52
  '6': {
62
53
  fontSize: '6',
63
- lineHeight: '6',
54
+ lineHeight: '2.5rem',
64
55
  },
65
56
  '7': {
66
57
  fontSize: '7',
67
- lineHeight: '7',
58
+ lineHeight: '3rem',
68
59
  },
69
60
  '8': {
70
61
  fontSize: '8',
71
- lineHeight: '8',
62
+ lineHeight: '3.75rem',
72
63
  },
73
64
  },
74
65
  };
package/src/theme.ts CHANGED
@@ -57,7 +57,7 @@ const theme = {
57
57
  color: 'text.body',
58
58
  fontFamily: 'body',
59
59
  fontSize: '3',
60
- lineHeight: '3',
60
+ lineHeight: '1.5rem',
61
61
  },
62
62
  'pre, code, kbd, samp': {
63
63
  fontFamily: 'mono',