@bitrise/bitkit 8.5.0 → 8.5.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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [8.5.1](https://github.com/bitrise-io/bitkit/compare/v8.5.0...v8.5.1) (2022-02-02)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **Text:** line-height fixes ([f1116d0](https://github.com/bitrise-io/bitkit/commit/f1116d0))
7
+
1
8
  # [8.5.0](https://github.com/bitrise-io/bitkit/compare/v8.4.0...v8.5.0) (2022-02-01)
2
9
 
3
10
 
@@ -48,7 +48,7 @@ var InlineComponentMap = function (props) {
48
48
  */
49
49
  var Text = function (props) {
50
50
  var _a;
51
- var Component = props.Component, align = props.align, breakOn = props.breakOn, className = props.className, ellipsis = props.ellipsis, emphasis = props.emphasis, inline = props.inline, letterSpacing = props.letterSpacing, monospace = props.monospace, size = props.size, titlecase = props.titlecase, uppercase = props.uppercase, weight = props.weight, rest = __rest(props, ["Component", "align", "breakOn", "className", "ellipsis", "emphasis", "inline", "letterSpacing", "monospace", "size", "titlecase", "uppercase", "weight"]);
51
+ var Component = props.Component, align = props.align, breakOn = props.breakOn, className = props.className, ellipsis = props.ellipsis, emphasis = props.emphasis, inline = props.inline, letterSpacing = props.letterSpacing, monospace = props.monospace, _b = props.size, size = _b === void 0 ? '3' : _b, titlecase = props.titlecase, uppercase = props.uppercase, weight = props.weight, rest = __rest(props, ["Component", "align", "breakOn", "className", "ellipsis", "emphasis", "inline", "letterSpacing", "monospace", "size", "titlecase", "uppercase", "weight"]);
52
52
  var classes = classnames_1.default(className, 'Text', (_a = {
53
53
  'Text--ellipsis': ellipsis,
54
54
  'Text--emphasis': emphasis,
@@ -1 +1 @@
1
- {"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../src/Text/Text.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2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
  .Text--size-4 {
17
17
  font-size: var(--font-size--4);
18
- line-height: var(--line-heigt--4);
18
+ line-height: var(--line-height--4);
19
19
  }
20
20
 
21
21
  .Text--size-5 {
@@ -885,7 +885,7 @@
885
885
  "signature": "a2ca5f90c17bd0a8345685eebf3b781f69b6d311649e6144b983b974d5dbcf99"
886
886
  },
887
887
  "/bitrise/src/src/Text/Text.tsx": {
888
- "version": "edf3e6e13c902da9d763d67ed9213942eabf28118f4773d71e1181b6c12ce518",
888
+ "version": "5a77f3ddae947c78bc750545e350dc549a8f4f5a9c1e0b662e13ba41ab45eecc",
889
889
  "signature": "451036154ad4a66eeaba320b67a25ef795b374f6f78ddd52783bff751bb4410a"
890
890
  },
891
891
  "/bitrise/src/src/Badge/Badge.tsx": {
@@ -167,14 +167,14 @@
167
167
  --font-weight-monospace--medium: 500;
168
168
  --font-weight-monospace--bold: 600;
169
169
 
170
- --line-height--1: 1.45; /* 16px / 1rem */
171
- --line-height--2: 1.45; /* 20px / 1.25rem */
172
- --line-height--3: 1.5; /* 24px / 1.5rem */
173
- --line-height--4: 1.45; /* 28px / 1.75rem */
174
- --line-height--5: 1.5; /* 36px / 2.25rem */
175
- --line-height--6: 1.33; /* 40px / 2.5rem */
176
- --line-height--7: 1.33; /* 48px / 3rem */
177
- --line-height--8: 1.25; /* 60px / 3.75rem */
170
+ --line-height--1: 1rem; /* 16px */
171
+ --line-height--2: 1.25rem; /* 20px */
172
+ --line-height--3: 1.5rem; /* 24px */
173
+ --line-height--4: 1.75rem; /* 28px */
174
+ --line-height--5: 2.25rem; /* 36px */
175
+ --line-height--6: 2.5rem; /* 40px */
176
+ --line-height--7: 3rem; /* 48px */
177
+ --line-height--8: 3.75rem; /* 60px */
178
178
 
179
179
  --letter-spacing--x1: 0.00625rem;
180
180
  --letter-spacing--x2: 0.009375rem;
@@ -11,7 +11,7 @@ const InlineComponentMap = (props) => (props.weight === 'bold' && 'strong') ||
11
11
  * styling.
12
12
  */
13
13
  const Text = (props) => {
14
- const { Component, align, breakOn, className, ellipsis, emphasis, inline, letterSpacing, monospace, size, titlecase, uppercase, weight, ...rest } = props;
14
+ const { Component, align, breakOn, className, ellipsis, emphasis, inline, letterSpacing, monospace, size = '3', titlecase, uppercase, weight, ...rest } = props;
15
15
  const classes = classnames(className, 'Text', {
16
16
  'Text--ellipsis': ellipsis,
17
17
  'Text--emphasis': emphasis,
@@ -1 +1 @@
1
- {"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../src/Text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,IAA4B,MAAM,cAAc,CAAC;AACxD,OAAO,iBAAiB,CAAC;AACzB,OAAO,YAAY,CAAC;AAuCpB,MAAM,kBAAkB,GAAG,CAAC,KAAY,EAAE,EAAE,CAC1C,CAAC,KAAK,CAAC,MAAM,KAAK,MAAM,IAAI,QAAQ,CAAC;IACrC,CAAC,KAAK,CAAC,QAAQ,IAAI,IAAI,CAAC;IACxB,MAAM,CAAC;AAET;;;GAGG;AACH,MAAM,IAAI,GAAmC,CAAC,KAAY,EAAE,EAAE;IAC5D,MAAM,EACJ,SAAS,EACT,KAAK,EACL,OAAO,EACP,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,aAAa,EACb,SAAS,EACT,IAAI,EACJ,SAAS,EACT,SAAS,EACT,MAAM,EACN,GAAG,IAAI,EACR,GAAG,KAAK,CAAC;IAEV,MAAM,OAAO,GAAG,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE;QAC5C,gBAAgB,EAAE,QAAQ;QAC1B,gBAAgB,EAAE,QAAQ;QAC1B,iBAAiB,EAAE,SAAS;QAC5B,iBAAiB,EAAE,SAAS;QAC5B,iBAAiB,EAAE,SAAS;QAC5B,CAAC,eAAe,KAAK,EAAE,CAAC,EAAE,KAAK;QAC/B,CAAC,eAAe,OAAO,EAAE,CAAC,EAAE,OAAO;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AAQ;QAC1B,iBAAiB,EAAE,SAAS;QAC5B,iBAAiB,EAAE,SAAS;QAC5B,iBAAiB,EAAE,SAAS;QAC5B,CAAC,eAAe,KAAK,EAAE,CAAC,EAAE,KAAK;QAC/B,CAAC,eAAe,OAAO,EAAE,CAAC,EAAE,OAAO;QACnC,CAAC,wBAAwB,aAAa,EAAE,CAAC,EAAE,aAAa;QACxD,CAAC,cAAc,IAAI,EAAE,CAAC,EAAE,IAAI;QAC5B,CAAC,gBAAgB,MAAM,EAAE,CAAC,EAAE,MAAM;KACnC,CAAC,CAAC;IAEH,MAAM,SAAS,GAAG,MAAM,CAAC,CAAC,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAEjE,OAAO,CACL,oBAAC,IAAI,oBAAM,IAAI,IACX,SAAS,EAAG,SAAS,EACrB,SAAS,EAAG,OAAO,IAAK,CAC7B,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -15,7 +15,7 @@
15
15
 
16
16
  .Text--size-4 {
17
17
  font-size: var(--font-size--4);
18
- line-height: var(--line-heigt--4);
18
+ line-height: var(--line-height--4);
19
19
  }
20
20
 
21
21
  .Text--size-5 {
@@ -913,7 +913,7 @@
913
913
  "signature": "a2ca5f90c17bd0a8345685eebf3b781f69b6d311649e6144b983b974d5dbcf99"
914
914
  },
915
915
  "/bitrise/src/src/Text/Text.tsx": {
916
- "version": "edf3e6e13c902da9d763d67ed9213942eabf28118f4773d71e1181b6c12ce518",
916
+ "version": "5a77f3ddae947c78bc750545e350dc549a8f4f5a9c1e0b662e13ba41ab45eecc",
917
917
  "signature": "451036154ad4a66eeaba320b67a25ef795b374f6f78ddd52783bff751bb4410a"
918
918
  },
919
919
  "/bitrise/src/src/Badge/Badge.tsx": {
@@ -167,14 +167,14 @@
167
167
  --font-weight-monospace--medium: 500;
168
168
  --font-weight-monospace--bold: 600;
169
169
 
170
- --line-height--1: 1.45; /* 16px / 1rem */
171
- --line-height--2: 1.45; /* 20px / 1.25rem */
172
- --line-height--3: 1.5; /* 24px / 1.5rem */
173
- --line-height--4: 1.45; /* 28px / 1.75rem */
174
- --line-height--5: 1.5; /* 36px / 2.25rem */
175
- --line-height--6: 1.33; /* 40px / 2.5rem */
176
- --line-height--7: 1.33; /* 48px / 3rem */
177
- --line-height--8: 1.25; /* 60px / 3.75rem */
170
+ --line-height--1: 1rem; /* 16px */
171
+ --line-height--2: 1.25rem; /* 20px */
172
+ --line-height--3: 1.5rem; /* 24px */
173
+ --line-height--4: 1.75rem; /* 28px */
174
+ --line-height--5: 2.25rem; /* 36px */
175
+ --line-height--6: 2.5rem; /* 40px */
176
+ --line-height--7: 3rem; /* 48px */
177
+ --line-height--8: 3.75rem; /* 60px */
178
178
 
179
179
  --letter-spacing--x1: 0.00625rem;
180
180
  --letter-spacing--x2: 0.009375rem;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit",
3
3
  "description": "Bitrise React component library",
4
- "version": "8.5.0",
4
+ "version": "8.5.1",
5
5
  "repository": "git@github.com:bitrise-io/bitkit.git",
6
6
  "main": "lib/cjs/index.js",
7
7
  "esnext": "lib/esn/index.js",
@@ -7,7 +7,7 @@ const SectionText = () => {
7
7
  return (
8
8
  <Section paddingVertical="x8">
9
9
  <Text align="middle" margin="x2" size="6" weight="bold">The spectacle before us was indeed sublime.</Text>
10
- <Text align="middle" margin="x2" size="3">
10
+ <Text align="middle" margin="x2">
11
11
  Apparently we had reached a great height in the atmosphere,
12
12
  for the sky was a dead black, and the stars had ceased to twinkle.
13
13
  By the same illusion which lifts the horizon of the sea to the
package/src/Text/Text.tsx CHANGED
@@ -61,7 +61,7 @@ const Text: React.FunctionComponent<Props> = (props: Props) => {
61
61
  inline,
62
62
  letterSpacing,
63
63
  monospace,
64
- size,
64
+ size = '3',
65
65
  titlecase,
66
66
  uppercase,
67
67
  weight,
@@ -15,7 +15,7 @@
15
15
 
16
16
  .Text--size-4 {
17
17
  font-size: var(--font-size--4);
18
- line-height: var(--line-heigt--4);
18
+ line-height: var(--line-height--4);
19
19
  }
20
20
 
21
21
  .Text--size-5 {
package/src/variables.css CHANGED
@@ -167,14 +167,14 @@
167
167
  --font-weight-monospace--medium: 500;
168
168
  --font-weight-monospace--bold: 600;
169
169
 
170
- --line-height--1: 1.45; /* 16px / 1rem */
171
- --line-height--2: 1.45; /* 20px / 1.25rem */
172
- --line-height--3: 1.5; /* 24px / 1.5rem */
173
- --line-height--4: 1.45; /* 28px / 1.75rem */
174
- --line-height--5: 1.5; /* 36px / 2.25rem */
175
- --line-height--6: 1.33; /* 40px / 2.5rem */
176
- --line-height--7: 1.33; /* 48px / 3rem */
177
- --line-height--8: 1.25; /* 60px / 3.75rem */
170
+ --line-height--1: 1rem; /* 16px */
171
+ --line-height--2: 1.25rem; /* 20px */
172
+ --line-height--3: 1.5rem; /* 24px */
173
+ --line-height--4: 1.75rem; /* 28px */
174
+ --line-height--5: 2.25rem; /* 36px */
175
+ --line-height--6: 2.5rem; /* 40px */
176
+ --line-height--7: 3rem; /* 48px */
177
+ --line-height--8: 3.75rem; /* 60px */
178
178
 
179
179
  --letter-spacing--x1: 0.00625rem;
180
180
  --letter-spacing--x2: 0.009375rem;