@instructure/ui-byline 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/Byline/index.js +17 -18
- package/lib/Byline/index.js +18 -19
- package/package.json +10 -10
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-byline
|
|
9
9
|
|
package/es/Byline/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _dec, _class;
|
|
1
|
+
var _dec, _class, _class2;
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
* The MIT License (MIT)
|
|
@@ -39,23 +39,20 @@ category: components
|
|
|
39
39
|
---
|
|
40
40
|
@tsProps
|
|
41
41
|
**/
|
|
42
|
-
let Byline = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class Byline extends Component {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
static allowedProps = allowedProps;
|
|
47
|
-
static defaultProps = {
|
|
48
|
-
alignContent: 'center'
|
|
49
|
-
};
|
|
50
|
-
ref = null;
|
|
51
|
-
handleRef = el => {
|
|
52
|
-
const elementRef = this.props.elementRef;
|
|
53
|
-
this.ref = el;
|
|
42
|
+
let Byline = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_class2 = class Byline extends Component {
|
|
43
|
+
constructor() {
|
|
44
|
+
super(...arguments);
|
|
45
|
+
this.ref = null;
|
|
54
46
|
|
|
55
|
-
|
|
56
|
-
elementRef
|
|
57
|
-
|
|
58
|
-
|
|
47
|
+
this.handleRef = el => {
|
|
48
|
+
const elementRef = this.props.elementRef;
|
|
49
|
+
this.ref = el;
|
|
50
|
+
|
|
51
|
+
if (typeof elementRef === 'function') {
|
|
52
|
+
elementRef(el);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}
|
|
59
56
|
|
|
60
57
|
componentDidMount() {
|
|
61
58
|
var _this$props$makeStyle, _this$props;
|
|
@@ -90,6 +87,8 @@ let Byline = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_cla
|
|
|
90
87
|
}, this.props.description)));
|
|
91
88
|
}
|
|
92
89
|
|
|
93
|
-
}
|
|
90
|
+
}, _class2.displayName = "Byline", _class2.componentId = 'Byline', _class2.propTypes = propTypes, _class2.allowedProps = allowedProps, _class2.defaultProps = {
|
|
91
|
+
alignContent: 'center'
|
|
92
|
+
}, _class2)) || _class);
|
|
94
93
|
export default Byline;
|
|
95
94
|
export { Byline };
|
package/lib/Byline/index.js
CHANGED
|
@@ -21,7 +21,7 @@ var _theme = _interopRequireDefault(require("./theme"));
|
|
|
21
21
|
|
|
22
22
|
var _props = require("./props");
|
|
23
23
|
|
|
24
|
-
var _dec, _class;
|
|
24
|
+
var _dec, _class, _class2;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
---
|
|
@@ -29,23 +29,20 @@ category: components
|
|
|
29
29
|
---
|
|
30
30
|
@tsProps
|
|
31
31
|
**/
|
|
32
|
-
let Byline = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = class Byline extends _react.Component {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
elementRef(el);
|
|
47
|
-
}
|
|
48
|
-
};
|
|
32
|
+
let Byline = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_class2 = class Byline extends _react.Component {
|
|
33
|
+
constructor() {
|
|
34
|
+
super(...arguments);
|
|
35
|
+
this.ref = null;
|
|
36
|
+
|
|
37
|
+
this.handleRef = el => {
|
|
38
|
+
const elementRef = this.props.elementRef;
|
|
39
|
+
this.ref = el;
|
|
40
|
+
|
|
41
|
+
if (typeof elementRef === 'function') {
|
|
42
|
+
elementRef(el);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
}
|
|
49
46
|
|
|
50
47
|
componentDidMount() {
|
|
51
48
|
var _this$props$makeStyle, _this$props;
|
|
@@ -81,7 +78,9 @@ let Byline = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _
|
|
|
81
78
|
}, this.props.description)));
|
|
82
79
|
}
|
|
83
80
|
|
|
84
|
-
}
|
|
81
|
+
}, _class2.displayName = "Byline", _class2.componentId = 'Byline', _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.defaultProps = {
|
|
82
|
+
alignContent: 'center'
|
|
83
|
+
}, _class2)) || _class);
|
|
85
84
|
exports.Byline = Byline;
|
|
86
85
|
var _default = Byline;
|
|
87
86
|
exports.default = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-byline",
|
|
3
|
-
"version": "8.25.1-snapshot-
|
|
3
|
+
"version": "8.25.1-snapshot-13",
|
|
4
4
|
"description": "A Byline component.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -24,18 +24,18 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/runtime": "^7.13.10",
|
|
27
|
-
"@instructure/emotion": "8.25.1-snapshot-
|
|
28
|
-
"@instructure/shared-types": "8.25.1-snapshot-
|
|
29
|
-
"@instructure/ui-react-utils": "8.25.1-snapshot-
|
|
30
|
-
"@instructure/ui-testable": "8.25.1-snapshot-
|
|
31
|
-
"@instructure/ui-view": "8.25.1-snapshot-
|
|
27
|
+
"@instructure/emotion": "8.25.1-snapshot-13",
|
|
28
|
+
"@instructure/shared-types": "8.25.1-snapshot-13",
|
|
29
|
+
"@instructure/ui-react-utils": "8.25.1-snapshot-13",
|
|
30
|
+
"@instructure/ui-testable": "8.25.1-snapshot-13",
|
|
31
|
+
"@instructure/ui-view": "8.25.1-snapshot-13",
|
|
32
32
|
"prop-types": "^15"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@instructure/ui-babel-preset": "8.25.1-snapshot-
|
|
36
|
-
"@instructure/ui-color-utils": "8.25.1-snapshot-
|
|
37
|
-
"@instructure/ui-test-utils": "8.25.1-snapshot-
|
|
38
|
-
"@instructure/ui-themes": "8.25.1-snapshot-
|
|
35
|
+
"@instructure/ui-babel-preset": "8.25.1-snapshot-13",
|
|
36
|
+
"@instructure/ui-color-utils": "8.25.1-snapshot-13",
|
|
37
|
+
"@instructure/ui-test-utils": "8.25.1-snapshot-13",
|
|
38
|
+
"@instructure/ui-themes": "8.25.1-snapshot-13"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"react": ">=16.8 <=17"
|