@atlaskit/heading 0.1.10 → 0.1.13
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 +18 -0
- package/README.md +1 -0
- package/dist/cjs/heading.js +9 -9
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/heading.js +9 -9
- package/dist/es2019/version.json +1 -1
- package/dist/esm/heading.js +9 -9
- package/dist/esm/version.json +1 -1
- package/package.json +9 -6
- package/report.api.md +59 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/heading
|
|
2
2
|
|
|
3
|
+
## 0.1.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`354050b68da`](https://bitbucket.org/atlassian/atlassian-frontend/commits/354050b68da) - Revert font size calculations to raw pixels.
|
|
8
|
+
|
|
9
|
+
## 0.1.12
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 0.1.11
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
20
|
+
|
|
3
21
|
## 0.1.10
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/README.md
CHANGED
package/dist/cjs/heading.js
CHANGED
|
@@ -30,49 +30,49 @@ var headingResetStyles = (0, _core.css)({
|
|
|
30
30
|
});
|
|
31
31
|
var h900Styles = (0, _core.css)({
|
|
32
32
|
color: "var(--ds-text, ".concat(_colors.N800, ")"),
|
|
33
|
-
fontSize:
|
|
33
|
+
fontSize: 35,
|
|
34
34
|
fontWeight: 500,
|
|
35
35
|
letterSpacing: '-0.01em',
|
|
36
36
|
lineHeight: (0, _utils.lh)(35, 40)
|
|
37
37
|
});
|
|
38
38
|
var h800Styles = (0, _core.css)({
|
|
39
39
|
color: "var(--ds-text, ".concat(_colors.N800, ")"),
|
|
40
|
-
fontSize:
|
|
40
|
+
fontSize: 29,
|
|
41
41
|
fontWeight: 600,
|
|
42
42
|
letterSpacing: '-0.01em',
|
|
43
43
|
lineHeight: (0, _utils.lh)(29, 32)
|
|
44
44
|
});
|
|
45
45
|
var h700Styles = (0, _core.css)({
|
|
46
46
|
color: "var(--ds-text, ".concat(_colors.N800, ")"),
|
|
47
|
-
fontSize:
|
|
47
|
+
fontSize: 24,
|
|
48
48
|
fontWeight: 500,
|
|
49
49
|
letterSpacing: '-0.01em',
|
|
50
50
|
lineHeight: (0, _utils.lh)(24, 28)
|
|
51
51
|
});
|
|
52
52
|
var h600Styles = (0, _core.css)({
|
|
53
53
|
color: "var(--ds-text, ".concat(_colors.N800, ")"),
|
|
54
|
-
fontSize:
|
|
54
|
+
fontSize: 20,
|
|
55
55
|
fontWeight: 500,
|
|
56
56
|
letterSpacing: '-0.008em',
|
|
57
57
|
lineHeight: (0, _utils.lh)(20, 24)
|
|
58
58
|
});
|
|
59
59
|
var h500Styles = (0, _core.css)({
|
|
60
60
|
color: "var(--ds-text, ".concat(_colors.N800, ")"),
|
|
61
|
-
fontSize:
|
|
61
|
+
fontSize: 16,
|
|
62
62
|
fontWeight: 600,
|
|
63
63
|
letterSpacing: '-0.006em',
|
|
64
64
|
lineHeight: (0, _utils.lh)(16, 20)
|
|
65
65
|
});
|
|
66
66
|
var h400Styles = (0, _core.css)({
|
|
67
67
|
color: "var(--ds-text, ".concat(_colors.N800, ")"),
|
|
68
|
-
fontSize:
|
|
68
|
+
fontSize: 14,
|
|
69
69
|
fontWeight: 600,
|
|
70
70
|
letterSpacing: '-0.003em',
|
|
71
71
|
lineHeight: (0, _utils.lh)(14, 16)
|
|
72
72
|
});
|
|
73
73
|
var h300Styles = (0, _core.css)({
|
|
74
74
|
color: "var(--ds-text, ".concat(_colors.N800, ")"),
|
|
75
|
-
fontSize:
|
|
75
|
+
fontSize: 12,
|
|
76
76
|
fontWeight: 600,
|
|
77
77
|
letterSpacing: 0,
|
|
78
78
|
lineHeight: (0, _utils.lh)(12, 16),
|
|
@@ -80,14 +80,14 @@ var h300Styles = (0, _core.css)({
|
|
|
80
80
|
});
|
|
81
81
|
var h200Styles = (0, _core.css)({
|
|
82
82
|
color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")"),
|
|
83
|
-
fontSize:
|
|
83
|
+
fontSize: 12,
|
|
84
84
|
fontWeight: 600,
|
|
85
85
|
letterSpacing: 0,
|
|
86
86
|
lineHeight: (0, _utils.lh)(12, 16)
|
|
87
87
|
});
|
|
88
88
|
var h100Styles = (0, _core.css)({
|
|
89
89
|
color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")"),
|
|
90
|
-
fontSize:
|
|
90
|
+
fontSize: 11,
|
|
91
91
|
fontWeight: 700,
|
|
92
92
|
letterSpacing: 0,
|
|
93
93
|
lineHeight: (0, _utils.lh)(11, 16)
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/heading.js
CHANGED
|
@@ -20,49 +20,49 @@ const headingResetStyles = css({
|
|
|
20
20
|
});
|
|
21
21
|
const h900Styles = css({
|
|
22
22
|
color: `var(--ds-text, ${N800})`,
|
|
23
|
-
fontSize:
|
|
23
|
+
fontSize: 35,
|
|
24
24
|
fontWeight: 500,
|
|
25
25
|
letterSpacing: '-0.01em',
|
|
26
26
|
lineHeight: lh(35, 40)
|
|
27
27
|
});
|
|
28
28
|
const h800Styles = css({
|
|
29
29
|
color: `var(--ds-text, ${N800})`,
|
|
30
|
-
fontSize:
|
|
30
|
+
fontSize: 29,
|
|
31
31
|
fontWeight: 600,
|
|
32
32
|
letterSpacing: '-0.01em',
|
|
33
33
|
lineHeight: lh(29, 32)
|
|
34
34
|
});
|
|
35
35
|
const h700Styles = css({
|
|
36
36
|
color: `var(--ds-text, ${N800})`,
|
|
37
|
-
fontSize:
|
|
37
|
+
fontSize: 24,
|
|
38
38
|
fontWeight: 500,
|
|
39
39
|
letterSpacing: '-0.01em',
|
|
40
40
|
lineHeight: lh(24, 28)
|
|
41
41
|
});
|
|
42
42
|
const h600Styles = css({
|
|
43
43
|
color: `var(--ds-text, ${N800})`,
|
|
44
|
-
fontSize:
|
|
44
|
+
fontSize: 20,
|
|
45
45
|
fontWeight: 500,
|
|
46
46
|
letterSpacing: '-0.008em',
|
|
47
47
|
lineHeight: lh(20, 24)
|
|
48
48
|
});
|
|
49
49
|
const h500Styles = css({
|
|
50
50
|
color: `var(--ds-text, ${N800})`,
|
|
51
|
-
fontSize:
|
|
51
|
+
fontSize: 16,
|
|
52
52
|
fontWeight: 600,
|
|
53
53
|
letterSpacing: '-0.006em',
|
|
54
54
|
lineHeight: lh(16, 20)
|
|
55
55
|
});
|
|
56
56
|
const h400Styles = css({
|
|
57
57
|
color: `var(--ds-text, ${N800})`,
|
|
58
|
-
fontSize:
|
|
58
|
+
fontSize: 14,
|
|
59
59
|
fontWeight: 600,
|
|
60
60
|
letterSpacing: '-0.003em',
|
|
61
61
|
lineHeight: lh(14, 16)
|
|
62
62
|
});
|
|
63
63
|
const h300Styles = css({
|
|
64
64
|
color: `var(--ds-text, ${N800})`,
|
|
65
|
-
fontSize:
|
|
65
|
+
fontSize: 12,
|
|
66
66
|
fontWeight: 600,
|
|
67
67
|
letterSpacing: 0,
|
|
68
68
|
lineHeight: lh(12, 16),
|
|
@@ -70,14 +70,14 @@ const h300Styles = css({
|
|
|
70
70
|
});
|
|
71
71
|
const h200Styles = css({
|
|
72
72
|
color: `var(--ds-text-subtlest, ${N200})`,
|
|
73
|
-
fontSize:
|
|
73
|
+
fontSize: 12,
|
|
74
74
|
fontWeight: 600,
|
|
75
75
|
letterSpacing: 0,
|
|
76
76
|
lineHeight: lh(12, 16)
|
|
77
77
|
});
|
|
78
78
|
const h100Styles = css({
|
|
79
79
|
color: `var(--ds-text-subtlest, ${N200})`,
|
|
80
|
-
fontSize:
|
|
80
|
+
fontSize: 11,
|
|
81
81
|
fontWeight: 700,
|
|
82
82
|
letterSpacing: 0,
|
|
83
83
|
lineHeight: lh(11, 16)
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/heading.js
CHANGED
|
@@ -20,49 +20,49 @@ var headingResetStyles = css({
|
|
|
20
20
|
});
|
|
21
21
|
var h900Styles = css({
|
|
22
22
|
color: "var(--ds-text, ".concat(N800, ")"),
|
|
23
|
-
fontSize:
|
|
23
|
+
fontSize: 35,
|
|
24
24
|
fontWeight: 500,
|
|
25
25
|
letterSpacing: '-0.01em',
|
|
26
26
|
lineHeight: lh(35, 40)
|
|
27
27
|
});
|
|
28
28
|
var h800Styles = css({
|
|
29
29
|
color: "var(--ds-text, ".concat(N800, ")"),
|
|
30
|
-
fontSize:
|
|
30
|
+
fontSize: 29,
|
|
31
31
|
fontWeight: 600,
|
|
32
32
|
letterSpacing: '-0.01em',
|
|
33
33
|
lineHeight: lh(29, 32)
|
|
34
34
|
});
|
|
35
35
|
var h700Styles = css({
|
|
36
36
|
color: "var(--ds-text, ".concat(N800, ")"),
|
|
37
|
-
fontSize:
|
|
37
|
+
fontSize: 24,
|
|
38
38
|
fontWeight: 500,
|
|
39
39
|
letterSpacing: '-0.01em',
|
|
40
40
|
lineHeight: lh(24, 28)
|
|
41
41
|
});
|
|
42
42
|
var h600Styles = css({
|
|
43
43
|
color: "var(--ds-text, ".concat(N800, ")"),
|
|
44
|
-
fontSize:
|
|
44
|
+
fontSize: 20,
|
|
45
45
|
fontWeight: 500,
|
|
46
46
|
letterSpacing: '-0.008em',
|
|
47
47
|
lineHeight: lh(20, 24)
|
|
48
48
|
});
|
|
49
49
|
var h500Styles = css({
|
|
50
50
|
color: "var(--ds-text, ".concat(N800, ")"),
|
|
51
|
-
fontSize:
|
|
51
|
+
fontSize: 16,
|
|
52
52
|
fontWeight: 600,
|
|
53
53
|
letterSpacing: '-0.006em',
|
|
54
54
|
lineHeight: lh(16, 20)
|
|
55
55
|
});
|
|
56
56
|
var h400Styles = css({
|
|
57
57
|
color: "var(--ds-text, ".concat(N800, ")"),
|
|
58
|
-
fontSize:
|
|
58
|
+
fontSize: 14,
|
|
59
59
|
fontWeight: 600,
|
|
60
60
|
letterSpacing: '-0.003em',
|
|
61
61
|
lineHeight: lh(14, 16)
|
|
62
62
|
});
|
|
63
63
|
var h300Styles = css({
|
|
64
64
|
color: "var(--ds-text, ".concat(N800, ")"),
|
|
65
|
-
fontSize:
|
|
65
|
+
fontSize: 12,
|
|
66
66
|
fontWeight: 600,
|
|
67
67
|
letterSpacing: 0,
|
|
68
68
|
lineHeight: lh(12, 16),
|
|
@@ -70,14 +70,14 @@ var h300Styles = css({
|
|
|
70
70
|
});
|
|
71
71
|
var h200Styles = css({
|
|
72
72
|
color: "var(--ds-text-subtlest, ".concat(N200, ")"),
|
|
73
|
-
fontSize:
|
|
73
|
+
fontSize: 12,
|
|
74
74
|
fontWeight: 600,
|
|
75
75
|
letterSpacing: 0,
|
|
76
76
|
lineHeight: lh(12, 16)
|
|
77
77
|
});
|
|
78
78
|
var h100Styles = css({
|
|
79
79
|
color: "var(--ds-text-subtlest, ".concat(N200, ")"),
|
|
80
|
-
fontSize:
|
|
80
|
+
fontSize: 11,
|
|
81
81
|
fontWeight: 700,
|
|
82
82
|
letterSpacing: 0,
|
|
83
83
|
lineHeight: lh(11, 16)
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/heading",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"description": "A heading is a typography component used to display text in different sizes and formats.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -11,10 +11,11 @@
|
|
|
11
11
|
"team": "Design System Team",
|
|
12
12
|
"releaseModel": "continuous",
|
|
13
13
|
"website": {
|
|
14
|
-
"name": "Heading"
|
|
14
|
+
"name": "Heading",
|
|
15
|
+
"category": "Components"
|
|
15
16
|
}
|
|
16
17
|
},
|
|
17
|
-
"repository": "https://bitbucket.org/atlassian/atlassian-frontend",
|
|
18
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
18
19
|
"main": "dist/cjs/index.js",
|
|
19
20
|
"module": "dist/esm/index.js",
|
|
20
21
|
"module:es2019": "dist/es2019/index.js",
|
|
@@ -26,7 +27,7 @@
|
|
|
26
27
|
},
|
|
27
28
|
"dependencies": {
|
|
28
29
|
"@atlaskit/theme": "^12.1.0",
|
|
29
|
-
"@atlaskit/tokens": "^0.
|
|
30
|
+
"@atlaskit/tokens": "^0.10.0",
|
|
30
31
|
"@babel/runtime": "^7.0.0",
|
|
31
32
|
"@emotion/core": "^10.0.9"
|
|
32
33
|
},
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
"react": "^16.8.0"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
37
|
-
"@atlaskit/button": "^16.
|
|
38
|
+
"@atlaskit/button": "^16.3.0",
|
|
38
39
|
"@atlaskit/docs": "*",
|
|
39
40
|
"@atlaskit/ssr": "*",
|
|
40
41
|
"@atlaskit/visual-regression": "*",
|
|
@@ -42,7 +43,7 @@
|
|
|
42
43
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
43
44
|
"@testing-library/react": "^8.0.1",
|
|
44
45
|
"react-dom": "^16.8.0",
|
|
45
|
-
"typescript": "
|
|
46
|
+
"typescript": "4.2.4",
|
|
46
47
|
"wait-for-expect": "^1.2.0"
|
|
47
48
|
},
|
|
48
49
|
"techstack": {
|
|
@@ -51,6 +52,7 @@
|
|
|
51
52
|
"circular-dependencies": "file-and-folder-level"
|
|
52
53
|
},
|
|
53
54
|
"@repo/internal": {
|
|
55
|
+
"dom-events": "use-bind-event-listener",
|
|
54
56
|
"design-system": "v1",
|
|
55
57
|
"styling": [
|
|
56
58
|
"static",
|
|
@@ -62,5 +64,6 @@
|
|
|
62
64
|
"deprecation": "no-deprecated-imports"
|
|
63
65
|
}
|
|
64
66
|
},
|
|
67
|
+
"homepage": "https://atlaskit.atlassian.com/packages/design-system/heading",
|
|
65
68
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
|
|
66
69
|
}
|
package/report.api.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
## API Report File for "@atlaskit/heading"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
````ts
|
|
6
|
+
import { FC } from 'react';
|
|
7
|
+
import { ReactNode } from 'react';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* __Heading__
|
|
11
|
+
*
|
|
12
|
+
* A heading is a typography component used to display text in different sizes and formats.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
*
|
|
16
|
+
* ```jsx
|
|
17
|
+
* import Heading from '@atlaskit/heading';
|
|
18
|
+
*
|
|
19
|
+
* const H100 = () => (
|
|
20
|
+
* <Heading level="h100">h100</Heading>
|
|
21
|
+
* );
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
declare const Heading: FC<HeadingProps>;
|
|
25
|
+
export default Heading;
|
|
26
|
+
|
|
27
|
+
export declare type HeadingProps = {
|
|
28
|
+
/**
|
|
29
|
+
* A `testId` prop is provided for specified elements, which is a unique
|
|
30
|
+
* string that appears as a data attribute `data-testid` in the rendered code,
|
|
31
|
+
* serving as a hook for automated tests
|
|
32
|
+
*/
|
|
33
|
+
testId?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The text of the heading
|
|
36
|
+
*/
|
|
37
|
+
children: ReactNode;
|
|
38
|
+
/**
|
|
39
|
+
* The headling level as defined by by the ADG
|
|
40
|
+
*/
|
|
41
|
+
level:
|
|
42
|
+
| 'h900'
|
|
43
|
+
| 'h800'
|
|
44
|
+
| 'h700'
|
|
45
|
+
| 'h600'
|
|
46
|
+
| 'h500'
|
|
47
|
+
| 'h400'
|
|
48
|
+
| 'h300'
|
|
49
|
+
| 'h200'
|
|
50
|
+
| 'h100';
|
|
51
|
+
id?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Allows the component to be rendered as the specified DOM Element
|
|
54
|
+
*/
|
|
55
|
+
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div' | 'span';
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export {};
|
|
59
|
+
````
|