@atlaskit/heading 5.2.19 → 5.2.20
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 +6 -0
- package/dist/cjs/heading.compiled.css +14 -14
- package/dist/cjs/heading.js +14 -14
- package/dist/es2019/heading.compiled.css +14 -14
- package/dist/es2019/heading.js +14 -14
- package/dist/esm/heading.compiled.css +14 -14
- package/dist/esm/heading.js +14 -14
- package/dist/types/heading-context.d.ts +4 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
.
|
|
2
|
-
.
|
|
3
|
-
.
|
|
4
|
-
.
|
|
5
|
-
.
|
|
6
|
-
.
|
|
7
|
-
.
|
|
8
|
-
.
|
|
9
|
-
.
|
|
10
|
-
.
|
|
11
|
-
.
|
|
12
|
-
.
|
|
13
|
-
.
|
|
14
|
-
.
|
|
1
|
+
._11c810sd{font:var(--ds-font-heading-large,normal 653 24px/28px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._11c812ln{font:var(--ds-font-heading-xlarge,normal 653 28px/2pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
3
|
+
._11c81af2{font:var(--ds-font-heading-medium,normal 653 20px/24px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
4
|
+
._11c81e3o{font:var(--ds-font-heading-small,normal 653 1pc/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
5
|
+
._11c81iff{font:var(--ds-font-heading-xxlarge,normal 653 2pc/36px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
6
|
+
._11c81qyo{font:var(--ds-font-heading-xsmall,normal 653 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
7
|
+
._11c8i4vh{font:var(--ds-font-heading-xxsmall,normal 653 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
8
|
+
._fqox10sd._fqox10sd{font:var(--ds-font-heading-large,normal 653 24px/28px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
9
|
+
._fqox12ln._fqox12ln{font:var(--ds-font-heading-xlarge,normal 653 28px/2pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
10
|
+
._fqox1af2._fqox1af2{font:var(--ds-font-heading-medium,normal 653 20px/24px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
11
|
+
._fqox1e3o._fqox1e3o{font:var(--ds-font-heading-small,normal 653 1pc/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
12
|
+
._fqox1iff._fqox1iff{font:var(--ds-font-heading-xxlarge,normal 653 2pc/36px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
13
|
+
._fqox1qyo._fqox1qyo{font:var(--ds-font-heading-xsmall,normal 653 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
14
|
+
._fqoxi4vh._fqoxi4vh{font:var(--ds-font-heading-xxsmall,normal 653 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
15
15
|
._1mouidpf{margin-block:0}
|
|
16
16
|
._dxsyidpf._dxsyidpf{margin-block:0}
|
|
17
17
|
._1dyz4jg8{letter-spacing:normal}
|
package/dist/cjs/heading.js
CHANGED
|
@@ -49,13 +49,13 @@ var headingColorStyles = {
|
|
|
49
49
|
* Remove with `platform-dst-heading-specificity` fg cleanup
|
|
50
50
|
*/
|
|
51
51
|
var headingSizeStyles = {
|
|
52
|
-
xxlarge: "
|
|
53
|
-
xlarge: "
|
|
54
|
-
large: "
|
|
55
|
-
medium: "
|
|
56
|
-
small: "
|
|
57
|
-
xsmall: "
|
|
58
|
-
xxsmall: "
|
|
52
|
+
xxlarge: "_11c81iff",
|
|
53
|
+
xlarge: "_11c812ln",
|
|
54
|
+
large: "_11c810sd",
|
|
55
|
+
medium: "_11c81af2",
|
|
56
|
+
small: "_11c81e3o",
|
|
57
|
+
xsmall: "_11c81qyo",
|
|
58
|
+
xxsmall: "_11c8i4vh"
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
/**
|
|
@@ -78,13 +78,13 @@ var headingColorStylesWithSpecificity = {
|
|
|
78
78
|
* Using '&&' here to increase specificity of Heading styles such that app styles like ".wiki-content h4" cannot override this component.
|
|
79
79
|
*/
|
|
80
80
|
var headingSizeWithSpecificityStyles = {
|
|
81
|
-
xxlarge: "
|
|
82
|
-
xlarge: "
|
|
83
|
-
large: "
|
|
84
|
-
medium: "
|
|
85
|
-
small: "
|
|
86
|
-
xsmall: "
|
|
87
|
-
xxsmall: "
|
|
81
|
+
xxlarge: "_fqox1iff",
|
|
82
|
+
xlarge: "_fqox12ln",
|
|
83
|
+
large: "_fqox10sd",
|
|
84
|
+
medium: "_fqox1af2",
|
|
85
|
+
small: "_fqox1e3o",
|
|
86
|
+
xsmall: "_fqox1qyo",
|
|
87
|
+
xxsmall: "_fqoxi4vh"
|
|
88
88
|
};
|
|
89
89
|
/**
|
|
90
90
|
* @codegenEnd
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
.
|
|
2
|
-
.
|
|
3
|
-
.
|
|
4
|
-
.
|
|
5
|
-
.
|
|
6
|
-
.
|
|
7
|
-
.
|
|
8
|
-
.
|
|
9
|
-
.
|
|
10
|
-
.
|
|
11
|
-
.
|
|
12
|
-
.
|
|
13
|
-
.
|
|
14
|
-
.
|
|
1
|
+
._11c810sd{font:var(--ds-font-heading-large,normal 653 24px/28px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._11c812ln{font:var(--ds-font-heading-xlarge,normal 653 28px/2pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
3
|
+
._11c81af2{font:var(--ds-font-heading-medium,normal 653 20px/24px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
4
|
+
._11c81e3o{font:var(--ds-font-heading-small,normal 653 1pc/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
5
|
+
._11c81iff{font:var(--ds-font-heading-xxlarge,normal 653 2pc/36px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
6
|
+
._11c81qyo{font:var(--ds-font-heading-xsmall,normal 653 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
7
|
+
._11c8i4vh{font:var(--ds-font-heading-xxsmall,normal 653 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
8
|
+
._fqox10sd._fqox10sd{font:var(--ds-font-heading-large,normal 653 24px/28px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
9
|
+
._fqox12ln._fqox12ln{font:var(--ds-font-heading-xlarge,normal 653 28px/2pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
10
|
+
._fqox1af2._fqox1af2{font:var(--ds-font-heading-medium,normal 653 20px/24px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
11
|
+
._fqox1e3o._fqox1e3o{font:var(--ds-font-heading-small,normal 653 1pc/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
12
|
+
._fqox1iff._fqox1iff{font:var(--ds-font-heading-xxlarge,normal 653 2pc/36px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
13
|
+
._fqox1qyo._fqox1qyo{font:var(--ds-font-heading-xsmall,normal 653 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
14
|
+
._fqoxi4vh._fqoxi4vh{font:var(--ds-font-heading-xxsmall,normal 653 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
15
15
|
._1mouidpf{margin-block:0}
|
|
16
16
|
._dxsyidpf._dxsyidpf{margin-block:0}
|
|
17
17
|
._1dyz4jg8{letter-spacing:normal}
|
package/dist/es2019/heading.js
CHANGED
|
@@ -39,13 +39,13 @@ const headingColorStyles = {
|
|
|
39
39
|
* Remove with `platform-dst-heading-specificity` fg cleanup
|
|
40
40
|
*/
|
|
41
41
|
const headingSizeStyles = {
|
|
42
|
-
xxlarge: "
|
|
43
|
-
xlarge: "
|
|
44
|
-
large: "
|
|
45
|
-
medium: "
|
|
46
|
-
small: "
|
|
47
|
-
xsmall: "
|
|
48
|
-
xxsmall: "
|
|
42
|
+
xxlarge: "_11c81iff",
|
|
43
|
+
xlarge: "_11c812ln",
|
|
44
|
+
large: "_11c810sd",
|
|
45
|
+
medium: "_11c81af2",
|
|
46
|
+
small: "_11c81e3o",
|
|
47
|
+
xsmall: "_11c81qyo",
|
|
48
|
+
xxsmall: "_11c8i4vh"
|
|
49
49
|
};
|
|
50
50
|
|
|
51
51
|
/**
|
|
@@ -68,13 +68,13 @@ const headingColorStylesWithSpecificity = {
|
|
|
68
68
|
* Using '&&' here to increase specificity of Heading styles such that app styles like ".wiki-content h4" cannot override this component.
|
|
69
69
|
*/
|
|
70
70
|
const headingSizeWithSpecificityStyles = {
|
|
71
|
-
xxlarge: "
|
|
72
|
-
xlarge: "
|
|
73
|
-
large: "
|
|
74
|
-
medium: "
|
|
75
|
-
small: "
|
|
76
|
-
xsmall: "
|
|
77
|
-
xxsmall: "
|
|
71
|
+
xxlarge: "_fqox1iff",
|
|
72
|
+
xlarge: "_fqox12ln",
|
|
73
|
+
large: "_fqox10sd",
|
|
74
|
+
medium: "_fqox1af2",
|
|
75
|
+
small: "_fqox1e3o",
|
|
76
|
+
xsmall: "_fqox1qyo",
|
|
77
|
+
xxsmall: "_fqoxi4vh"
|
|
78
78
|
};
|
|
79
79
|
/**
|
|
80
80
|
* @codegenEnd
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
.
|
|
2
|
-
.
|
|
3
|
-
.
|
|
4
|
-
.
|
|
5
|
-
.
|
|
6
|
-
.
|
|
7
|
-
.
|
|
8
|
-
.
|
|
9
|
-
.
|
|
10
|
-
.
|
|
11
|
-
.
|
|
12
|
-
.
|
|
13
|
-
.
|
|
14
|
-
.
|
|
1
|
+
._11c810sd{font:var(--ds-font-heading-large,normal 653 24px/28px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._11c812ln{font:var(--ds-font-heading-xlarge,normal 653 28px/2pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
3
|
+
._11c81af2{font:var(--ds-font-heading-medium,normal 653 20px/24px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
4
|
+
._11c81e3o{font:var(--ds-font-heading-small,normal 653 1pc/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
5
|
+
._11c81iff{font:var(--ds-font-heading-xxlarge,normal 653 2pc/36px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
6
|
+
._11c81qyo{font:var(--ds-font-heading-xsmall,normal 653 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
7
|
+
._11c8i4vh{font:var(--ds-font-heading-xxsmall,normal 653 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
8
|
+
._fqox10sd._fqox10sd{font:var(--ds-font-heading-large,normal 653 24px/28px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
9
|
+
._fqox12ln._fqox12ln{font:var(--ds-font-heading-xlarge,normal 653 28px/2pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
10
|
+
._fqox1af2._fqox1af2{font:var(--ds-font-heading-medium,normal 653 20px/24px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
11
|
+
._fqox1e3o._fqox1e3o{font:var(--ds-font-heading-small,normal 653 1pc/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
12
|
+
._fqox1iff._fqox1iff{font:var(--ds-font-heading-xxlarge,normal 653 2pc/36px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
13
|
+
._fqox1qyo._fqox1qyo{font:var(--ds-font-heading-xsmall,normal 653 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
14
|
+
._fqoxi4vh._fqoxi4vh{font:var(--ds-font-heading-xxsmall,normal 653 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
15
15
|
._1mouidpf{margin-block:0}
|
|
16
16
|
._dxsyidpf._dxsyidpf{margin-block:0}
|
|
17
17
|
._1dyz4jg8{letter-spacing:normal}
|
package/dist/esm/heading.js
CHANGED
|
@@ -41,13 +41,13 @@ var headingColorStyles = {
|
|
|
41
41
|
* Remove with `platform-dst-heading-specificity` fg cleanup
|
|
42
42
|
*/
|
|
43
43
|
var headingSizeStyles = {
|
|
44
|
-
xxlarge: "
|
|
45
|
-
xlarge: "
|
|
46
|
-
large: "
|
|
47
|
-
medium: "
|
|
48
|
-
small: "
|
|
49
|
-
xsmall: "
|
|
50
|
-
xxsmall: "
|
|
44
|
+
xxlarge: "_11c81iff",
|
|
45
|
+
xlarge: "_11c812ln",
|
|
46
|
+
large: "_11c810sd",
|
|
47
|
+
medium: "_11c81af2",
|
|
48
|
+
small: "_11c81e3o",
|
|
49
|
+
xsmall: "_11c81qyo",
|
|
50
|
+
xxsmall: "_11c8i4vh"
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
/**
|
|
@@ -70,13 +70,13 @@ var headingColorStylesWithSpecificity = {
|
|
|
70
70
|
* Using '&&' here to increase specificity of Heading styles such that app styles like ".wiki-content h4" cannot override this component.
|
|
71
71
|
*/
|
|
72
72
|
var headingSizeWithSpecificityStyles = {
|
|
73
|
-
xxlarge: "
|
|
74
|
-
xlarge: "
|
|
75
|
-
large: "
|
|
76
|
-
medium: "
|
|
77
|
-
small: "
|
|
78
|
-
xsmall: "
|
|
79
|
-
xxsmall: "
|
|
73
|
+
xxlarge: "_fqox1iff",
|
|
74
|
+
xlarge: "_fqox12ln",
|
|
75
|
+
large: "_fqox10sd",
|
|
76
|
+
medium: "_fqox1af2",
|
|
77
|
+
small: "_fqox1e3o",
|
|
78
|
+
xsmall: "_fqox1qyo",
|
|
79
|
+
xxsmall: "_fqoxi4vh"
|
|
80
80
|
};
|
|
81
81
|
/**
|
|
82
82
|
* @codegenEnd
|
|
@@ -4,7 +4,10 @@ type HeadingElement = `h${1 | 2 | 3 | 4 | 5 | 6}` | 'div';
|
|
|
4
4
|
/**
|
|
5
5
|
* Infers the correct heading markup based on the current heading level context.
|
|
6
6
|
*/
|
|
7
|
-
export declare const useHeading: (fallback: HeadingElement) => readonly [
|
|
7
|
+
export declare const useHeading: (fallback: HeadingElement) => readonly [
|
|
8
|
+
HeadingLevel,
|
|
9
|
+
HeadingElement
|
|
10
|
+
];
|
|
8
11
|
interface HeadingLevelContextProps {
|
|
9
12
|
/**
|
|
10
13
|
* Optional - only apply this value if the intent is to reset the heading context outside the normal content flow, for example inside a `section`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/heading",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.20",
|
|
4
4
|
"description": "A heading is a typography component used to display text in different sizes and formats.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@atlaskit/css": "^0.19.0",
|
|
28
28
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
29
|
-
"@atlaskit/primitives": "^
|
|
30
|
-
"@atlaskit/tokens": "^
|
|
29
|
+
"@atlaskit/primitives": "^18.0.0",
|
|
30
|
+
"@atlaskit/tokens": "^11.0.0",
|
|
31
31
|
"@babel/runtime": "^7.0.0",
|
|
32
32
|
"@compiled/react": "^0.18.6"
|
|
33
33
|
},
|