@instructure/ui-heading 8.25.1-snapshot-10 → 8.25.1-snapshot-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 +1 -1
- package/es/Heading/index.js +20 -21
- package/lib/Heading/index.js +21 -22
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [8.25.1-snapshot-
|
|
6
|
+
## [8.25.1-snapshot-13](https://github.com/instructure/instructure-ui/compare/v8.25.0...v8.25.1-snapshot-13) (2022-06-22)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-heading
|
|
9
9
|
|
package/es/Heading/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
2
|
const _excluded = ["border", "children", "color", "level", "margin", "elementRef", "makeStyles"];
|
|
3
3
|
|
|
4
|
-
var _dec, _dec2, _class;
|
|
4
|
+
var _dec, _dec2, _class, _class2;
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
7
|
* The MIT License (MIT)
|
|
@@ -43,26 +43,20 @@ category: components
|
|
|
43
43
|
---
|
|
44
44
|
@tsProps
|
|
45
45
|
**/
|
|
46
|
-
let Heading = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = class Heading extends Component {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
static allowedProps = allowedProps;
|
|
51
|
-
static defaultProps = {
|
|
52
|
-
children: null,
|
|
53
|
-
border: 'none',
|
|
54
|
-
color: 'inherit',
|
|
55
|
-
level: 'h2'
|
|
56
|
-
};
|
|
57
|
-
ref = null;
|
|
58
|
-
handleRef = el => {
|
|
59
|
-
const elementRef = this.props.elementRef;
|
|
60
|
-
this.ref = el;
|
|
46
|
+
let Heading = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_class2 = class Heading extends Component {
|
|
47
|
+
constructor() {
|
|
48
|
+
super(...arguments);
|
|
49
|
+
this.ref = null;
|
|
61
50
|
|
|
62
|
-
|
|
63
|
-
elementRef
|
|
64
|
-
|
|
65
|
-
|
|
51
|
+
this.handleRef = el => {
|
|
52
|
+
const elementRef = this.props.elementRef;
|
|
53
|
+
this.ref = el;
|
|
54
|
+
|
|
55
|
+
if (typeof elementRef === 'function') {
|
|
56
|
+
elementRef(el);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
66
60
|
|
|
67
61
|
componentDidMount() {
|
|
68
62
|
var _this$props$makeStyle, _this$props;
|
|
@@ -104,6 +98,11 @@ let Heading = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 =
|
|
|
104
98
|
}), children);
|
|
105
99
|
}
|
|
106
100
|
|
|
107
|
-
}
|
|
101
|
+
}, _class2.displayName = "Heading", _class2.componentId = 'Heading', _class2.propTypes = propTypes, _class2.allowedProps = allowedProps, _class2.defaultProps = {
|
|
102
|
+
children: null,
|
|
103
|
+
border: 'none',
|
|
104
|
+
color: 'inherit',
|
|
105
|
+
level: 'h2'
|
|
106
|
+
}, _class2)) || _class) || _class);
|
|
108
107
|
export default Heading;
|
|
109
108
|
export { Heading };
|
package/lib/Heading/index.js
CHANGED
|
@@ -29,7 +29,7 @@ var _props = require("./props");
|
|
|
29
29
|
|
|
30
30
|
const _excluded = ["border", "children", "color", "level", "margin", "elementRef", "makeStyles"];
|
|
31
31
|
|
|
32
|
-
var _dec, _dec2, _class;
|
|
32
|
+
var _dec, _dec2, _class, _class2;
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
35
|
---
|
|
@@ -37,26 +37,20 @@ category: components
|
|
|
37
37
|
---
|
|
38
38
|
@tsProps
|
|
39
39
|
**/
|
|
40
|
-
let Heading = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = class Heading extends _react.Component {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
this.ref = el;
|
|
55
|
-
|
|
56
|
-
if (typeof elementRef === 'function') {
|
|
57
|
-
elementRef(el);
|
|
58
|
-
}
|
|
59
|
-
};
|
|
40
|
+
let Heading = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class Heading extends _react.Component {
|
|
41
|
+
constructor() {
|
|
42
|
+
super(...arguments);
|
|
43
|
+
this.ref = null;
|
|
44
|
+
|
|
45
|
+
this.handleRef = el => {
|
|
46
|
+
const elementRef = this.props.elementRef;
|
|
47
|
+
this.ref = el;
|
|
48
|
+
|
|
49
|
+
if (typeof elementRef === 'function') {
|
|
50
|
+
elementRef(el);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
}
|
|
60
54
|
|
|
61
55
|
componentDidMount() {
|
|
62
56
|
var _this$props$makeStyle, _this$props;
|
|
@@ -97,7 +91,12 @@ let Heading = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default),
|
|
|
97
91
|
}), children);
|
|
98
92
|
}
|
|
99
93
|
|
|
100
|
-
}
|
|
94
|
+
}, _class2.displayName = "Heading", _class2.componentId = 'Heading', _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.defaultProps = {
|
|
95
|
+
children: null,
|
|
96
|
+
border: 'none',
|
|
97
|
+
color: 'inherit',
|
|
98
|
+
level: 'h2'
|
|
99
|
+
}, _class2)) || _class) || _class);
|
|
101
100
|
exports.Heading = Heading;
|
|
102
101
|
var _default = Heading;
|
|
103
102
|
exports.default = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-heading",
|
|
3
|
-
"version": "8.25.1-snapshot-
|
|
3
|
+
"version": "8.25.1-snapshot-13",
|
|
4
4
|
"description": "A component for creating typographic headings",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -24,20 +24,20 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/runtime": "^7.13.10",
|
|
27
|
-
"@instructure/console": "8.25.1-snapshot-
|
|
28
|
-
"@instructure/emotion": "8.25.1-snapshot-
|
|
29
|
-
"@instructure/shared-types": "8.25.1-snapshot-
|
|
30
|
-
"@instructure/ui-prop-types": "8.25.1-snapshot-
|
|
31
|
-
"@instructure/ui-react-utils": "8.25.1-snapshot-
|
|
32
|
-
"@instructure/ui-testable": "8.25.1-snapshot-
|
|
33
|
-
"@instructure/ui-view": "8.25.1-snapshot-
|
|
27
|
+
"@instructure/console": "8.25.1-snapshot-13",
|
|
28
|
+
"@instructure/emotion": "8.25.1-snapshot-13",
|
|
29
|
+
"@instructure/shared-types": "8.25.1-snapshot-13",
|
|
30
|
+
"@instructure/ui-prop-types": "8.25.1-snapshot-13",
|
|
31
|
+
"@instructure/ui-react-utils": "8.25.1-snapshot-13",
|
|
32
|
+
"@instructure/ui-testable": "8.25.1-snapshot-13",
|
|
33
|
+
"@instructure/ui-view": "8.25.1-snapshot-13",
|
|
34
34
|
"prop-types": "^15"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@instructure/ui-babel-preset": "8.25.1-snapshot-
|
|
38
|
-
"@instructure/ui-test-locator": "8.25.1-snapshot-
|
|
39
|
-
"@instructure/ui-test-utils": "8.25.1-snapshot-
|
|
40
|
-
"@instructure/ui-themes": "8.25.1-snapshot-
|
|
37
|
+
"@instructure/ui-babel-preset": "8.25.1-snapshot-13",
|
|
38
|
+
"@instructure/ui-test-locator": "8.25.1-snapshot-13",
|
|
39
|
+
"@instructure/ui-test-utils": "8.25.1-snapshot-13",
|
|
40
|
+
"@instructure/ui-themes": "8.25.1-snapshot-13"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"react": ">=16.8 <=17"
|