@atlaskit/heading 1.3.0 → 1.3.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
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
package/dist/types/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/heading",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
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",
|
|
@@ -23,13 +23,21 @@
|
|
|
23
23
|
"module": "dist/esm/index.js",
|
|
24
24
|
"module:es2019": "dist/es2019/index.js",
|
|
25
25
|
"types": "dist/types/index.d.ts",
|
|
26
|
+
"typesVersions": {
|
|
27
|
+
">=4.5 <4.9": {
|
|
28
|
+
"*": [
|
|
29
|
+
"dist/types-ts4.5/*",
|
|
30
|
+
"dist/types-ts4.5/index.d.ts"
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
26
34
|
"sideEffects": false,
|
|
27
35
|
"atlaskit:src": "src/index.tsx",
|
|
28
36
|
"af:exports": {
|
|
29
37
|
".": "./src/index.tsx"
|
|
30
38
|
},
|
|
31
39
|
"dependencies": {
|
|
32
|
-
"@atlaskit/tokens": "^1.
|
|
40
|
+
"@atlaskit/tokens": "^1.4.0",
|
|
33
41
|
"@babel/runtime": "^7.0.0",
|
|
34
42
|
"@emotion/react": "^11.7.1"
|
|
35
43
|
},
|
|
@@ -50,7 +58,7 @@
|
|
|
50
58
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
51
59
|
"@testing-library/react": "^12.1.5",
|
|
52
60
|
"react-dom": "^16.8.0",
|
|
53
|
-
"typescript": "4.
|
|
61
|
+
"typescript": "~4.9.5",
|
|
54
62
|
"wait-for-expect": "^1.2.0"
|
|
55
63
|
},
|
|
56
64
|
"techstack": {
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
|
|
7
|
+
import { FC } from 'react';
|
|
8
|
+
import { ReactNode } from 'react';
|
|
9
|
+
|
|
10
|
+
// @public
|
|
11
|
+
const Heading: FC<HeadingProps>;
|
|
12
|
+
export default Heading;
|
|
13
|
+
|
|
14
|
+
// @public (undocumented)
|
|
15
|
+
interface HeadingContextProps {
|
|
16
|
+
// (undocumented)
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
value?: HeadingElement;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// @public
|
|
22
|
+
export const HeadingContextProvider: FC<HeadingContextProps>;
|
|
23
|
+
|
|
24
|
+
// @public (undocumented)
|
|
25
|
+
type HeadingElement = 1 | 2 | 3 | 4 | 5 | 6;
|
|
26
|
+
|
|
27
|
+
// @public (undocumented)
|
|
28
|
+
export type HeadingProps = {
|
|
29
|
+
testId?: string;
|
|
30
|
+
children: ReactNode;
|
|
31
|
+
level: 'h100' | 'h200' | 'h300' | 'h400' | 'h500' | 'h600' | 'h700' | 'h800' | 'h900';
|
|
32
|
+
id?: string;
|
|
33
|
+
as?: 'div' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'span';
|
|
34
|
+
color?: 'default' | 'inverse';
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
// (No @packageDocumentation comment for this package)
|
|
38
|
+
|
|
39
|
+
```
|