@instructure/ui-billboard 8.25.1-snapshot-7 → 8.25.1-snapshot-10

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
@@ -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-7](https://github.com/instructure/instructure-ui/compare/v8.25.0...v8.25.1-snapshot-7) (2022-06-13)
6
+ ## [8.25.1-snapshot-10](https://github.com/instructure/instructure-ui/compare/v8.25.0...v8.25.1-snapshot-10) (2022-06-20)
7
7
 
8
8
  **Note:** Version bump only for package @instructure/ui-billboard
9
9
 
@@ -1,4 +1,4 @@
1
- var _dec, _class, _class2;
1
+ var _dec, _class;
2
2
 
3
3
  /*
4
4
  * The MIT License (MIT)
@@ -40,52 +40,48 @@ category: components
40
40
  ---
41
41
  @tsProps
42
42
  **/
43
- let Billboard = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_class2 = class Billboard extends Component {
44
- constructor() {
45
- super(...arguments);
46
- this.ref = null;
47
-
48
- this.handleRef = el => {
49
- const elementRef = this.props.elementRef;
50
- this.ref = el;
51
-
52
- if (typeof elementRef === 'function') {
53
- elementRef(el);
54
- }
55
- };
56
-
57
- this.handleClick = e => {
58
- const _this$props = this.props,
59
- readOnly = _this$props.readOnly,
60
- onClick = _this$props.onClick;
61
-
62
- if (readOnly) {
63
- e.preventDefault();
64
- e.stopPropagation();
65
- } else if (typeof onClick === 'function') {
66
- onClick(e);
67
- }
68
- };
69
- }
43
+ let Billboard = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class Billboard extends Component {
44
+ static displayName = "Billboard";
45
+ static componentId = 'Billboard';
46
+ static propTypes = propTypes;
47
+ static allowedProps = allowedProps;
48
+ static defaultProps = {
49
+ disabled: false,
50
+ readOnly: false,
51
+ size: 'medium',
52
+ headingAs: 'span',
53
+ headingLevel: 'h1',
54
+ as: 'span',
55
+ elementRef: () => {}
56
+ };
57
+ ref = null;
58
+ handleRef = el => {
59
+ const elementRef = this.props.elementRef;
60
+ this.ref = el;
61
+
62
+ if (typeof elementRef === 'function') {
63
+ elementRef(el);
64
+ }
65
+ };
70
66
 
71
67
  componentDidMount() {
72
- var _this$props$makeStyle, _this$props2;
68
+ var _this$props$makeStyle, _this$props;
73
69
 
74
- (_this$props$makeStyle = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props2);
70
+ (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
75
71
  }
76
72
 
77
73
  componentDidUpdate() {
78
- var _this$props$makeStyle2, _this$props3;
74
+ var _this$props$makeStyle2, _this$props2;
79
75
 
80
- (_this$props$makeStyle2 = (_this$props3 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props3);
76
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
81
77
  }
82
78
 
83
79
  renderHeading() {
84
- const _this$props4 = this.props,
85
- headingLevel = _this$props4.headingLevel,
86
- headingAs = _this$props4.headingAs,
87
- heading = _this$props4.heading,
88
- styles = _this$props4.styles;
80
+ const _this$props3 = this.props,
81
+ headingLevel = _this$props3.headingLevel,
82
+ headingAs = _this$props3.headingAs,
83
+ heading = _this$props3.heading,
84
+ styles = _this$props3.styles;
89
85
  return jsx("span", {
90
86
  css: styles === null || styles === void 0 ? void 0 : styles.heading
91
87
  }, jsx(Heading, {
@@ -116,11 +112,11 @@ let Billboard = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_
116
112
  }
117
113
 
118
114
  renderContent() {
119
- const _this$props5 = this.props,
120
- heading = _this$props5.heading,
121
- message = _this$props5.message,
122
- hero = _this$props5.hero,
123
- styles = _this$props5.styles;
115
+ const _this$props4 = this.props,
116
+ heading = _this$props4.heading,
117
+ message = _this$props4.message,
118
+ hero = _this$props4.hero,
119
+ styles = _this$props4.styles;
124
120
  return jsx("span", {
125
121
  css: styles === null || styles === void 0 ? void 0 : styles.content
126
122
  }, hero && jsx("span", {
@@ -130,6 +126,19 @@ let Billboard = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_
130
126
  }, callRenderProp(message)));
131
127
  }
132
128
 
129
+ handleClick = e => {
130
+ const _this$props5 = this.props,
131
+ readOnly = _this$props5.readOnly,
132
+ onClick = _this$props5.onClick;
133
+
134
+ if (readOnly) {
135
+ e.preventDefault();
136
+ e.stopPropagation();
137
+ } else if (typeof onClick === 'function') {
138
+ onClick(e);
139
+ }
140
+ };
141
+
133
142
  render() {
134
143
  const _this$props6 = this.props,
135
144
  href = _this$props6.href,
@@ -153,14 +162,6 @@ let Billboard = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_
153
162
  }), this.renderContent()));
154
163
  }
155
164
 
156
- }, _class2.displayName = "Billboard", _class2.componentId = 'Billboard', _class2.propTypes = propTypes, _class2.allowedProps = allowedProps, _class2.defaultProps = {
157
- disabled: false,
158
- readOnly: false,
159
- size: 'medium',
160
- headingAs: 'span',
161
- headingLevel: 'h1',
162
- as: 'span',
163
- elementRef: () => {}
164
- }, _class2)) || _class);
165
+ }) || _class);
165
166
  export default Billboard;
166
167
  export { Billboard };
@@ -27,7 +27,7 @@ var _theme = _interopRequireDefault(require("./theme"));
27
27
 
28
28
  var _props = require("./props");
29
29
 
30
- var _dec, _class, _class2;
30
+ var _dec, _class;
31
31
 
32
32
  /**
33
33
  ---
@@ -35,52 +35,48 @@ category: components
35
35
  ---
36
36
  @tsProps
37
37
  **/
38
- let Billboard = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_class2 = class Billboard extends _react.Component {
39
- constructor() {
40
- super(...arguments);
41
- this.ref = null;
42
-
43
- this.handleRef = el => {
44
- const elementRef = this.props.elementRef;
45
- this.ref = el;
46
-
47
- if (typeof elementRef === 'function') {
48
- elementRef(el);
49
- }
50
- };
51
-
52
- this.handleClick = e => {
53
- const _this$props = this.props,
54
- readOnly = _this$props.readOnly,
55
- onClick = _this$props.onClick;
56
-
57
- if (readOnly) {
58
- e.preventDefault();
59
- e.stopPropagation();
60
- } else if (typeof onClick === 'function') {
61
- onClick(e);
62
- }
63
- };
64
- }
38
+ let Billboard = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = class Billboard extends _react.Component {
39
+ static displayName = "Billboard";
40
+ static componentId = 'Billboard';
41
+ static propTypes = _props.propTypes;
42
+ static allowedProps = _props.allowedProps;
43
+ static defaultProps = {
44
+ disabled: false,
45
+ readOnly: false,
46
+ size: 'medium',
47
+ headingAs: 'span',
48
+ headingLevel: 'h1',
49
+ as: 'span',
50
+ elementRef: () => {}
51
+ };
52
+ ref = null;
53
+ handleRef = el => {
54
+ const elementRef = this.props.elementRef;
55
+ this.ref = el;
56
+
57
+ if (typeof elementRef === 'function') {
58
+ elementRef(el);
59
+ }
60
+ };
65
61
 
66
62
  componentDidMount() {
67
- var _this$props$makeStyle, _this$props2;
63
+ var _this$props$makeStyle, _this$props;
68
64
 
69
- (_this$props$makeStyle = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props2);
65
+ (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
70
66
  }
71
67
 
72
68
  componentDidUpdate() {
73
- var _this$props$makeStyle2, _this$props3;
69
+ var _this$props$makeStyle2, _this$props2;
74
70
 
75
- (_this$props$makeStyle2 = (_this$props3 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props3);
71
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
76
72
  }
77
73
 
78
74
  renderHeading() {
79
- const _this$props4 = this.props,
80
- headingLevel = _this$props4.headingLevel,
81
- headingAs = _this$props4.headingAs,
82
- heading = _this$props4.heading,
83
- styles = _this$props4.styles;
75
+ const _this$props3 = this.props,
76
+ headingLevel = _this$props3.headingLevel,
77
+ headingAs = _this$props3.headingAs,
78
+ heading = _this$props3.heading,
79
+ styles = _this$props3.styles;
84
80
  return (0, _emotion.jsx)("span", {
85
81
  css: styles === null || styles === void 0 ? void 0 : styles.heading
86
82
  }, (0, _emotion.jsx)(_Heading.Heading, {
@@ -111,11 +107,11 @@ let Billboard = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
111
107
  }
112
108
 
113
109
  renderContent() {
114
- const _this$props5 = this.props,
115
- heading = _this$props5.heading,
116
- message = _this$props5.message,
117
- hero = _this$props5.hero,
118
- styles = _this$props5.styles;
110
+ const _this$props4 = this.props,
111
+ heading = _this$props4.heading,
112
+ message = _this$props4.message,
113
+ hero = _this$props4.hero,
114
+ styles = _this$props4.styles;
119
115
  return (0, _emotion.jsx)("span", {
120
116
  css: styles === null || styles === void 0 ? void 0 : styles.content
121
117
  }, hero && (0, _emotion.jsx)("span", {
@@ -125,6 +121,19 @@ let Billboard = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
125
121
  }, (0, _callRenderProp.callRenderProp)(message)));
126
122
  }
127
123
 
124
+ handleClick = e => {
125
+ const _this$props5 = this.props,
126
+ readOnly = _this$props5.readOnly,
127
+ onClick = _this$props5.onClick;
128
+
129
+ if (readOnly) {
130
+ e.preventDefault();
131
+ e.stopPropagation();
132
+ } else if (typeof onClick === 'function') {
133
+ onClick(e);
134
+ }
135
+ };
136
+
128
137
  render() {
129
138
  const _this$props6 = this.props,
130
139
  href = _this$props6.href,
@@ -148,15 +157,7 @@ let Billboard = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
148
157
  }), this.renderContent()));
149
158
  }
150
159
 
151
- }, _class2.displayName = "Billboard", _class2.componentId = 'Billboard', _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.defaultProps = {
152
- disabled: false,
153
- readOnly: false,
154
- size: 'medium',
155
- headingAs: 'span',
156
- headingLevel: 'h1',
157
- as: 'span',
158
- elementRef: () => {}
159
- }, _class2)) || _class);
160
+ }) || _class);
160
161
  exports.Billboard = Billboard;
161
162
  var _default = Billboard;
162
163
  exports.default = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-billboard",
3
- "version": "8.25.1-snapshot-7",
3
+ "version": "8.25.1-snapshot-10",
4
4
  "description": "A UI component to display empty states, 404 pages, redirects, etc.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,20 +23,20 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-babel-preset": "8.25.1-snapshot-7",
27
- "@instructure/ui-color-utils": "8.25.1-snapshot-7",
28
- "@instructure/ui-icons": "8.25.1-snapshot-7",
29
- "@instructure/ui-test-utils": "8.25.1-snapshot-7",
30
- "@instructure/ui-themes": "8.25.1-snapshot-7"
26
+ "@instructure/ui-babel-preset": "8.25.1-snapshot-10",
27
+ "@instructure/ui-color-utils": "8.25.1-snapshot-10",
28
+ "@instructure/ui-icons": "8.25.1-snapshot-10",
29
+ "@instructure/ui-test-utils": "8.25.1-snapshot-10",
30
+ "@instructure/ui-themes": "8.25.1-snapshot-10"
31
31
  },
32
32
  "dependencies": {
33
33
  "@babel/runtime": "^7.13.10",
34
- "@instructure/emotion": "8.25.1-snapshot-7",
35
- "@instructure/shared-types": "8.25.1-snapshot-7",
36
- "@instructure/ui-heading": "8.25.1-snapshot-7",
37
- "@instructure/ui-img": "8.25.1-snapshot-7",
38
- "@instructure/ui-react-utils": "8.25.1-snapshot-7",
39
- "@instructure/ui-view": "8.25.1-snapshot-7",
34
+ "@instructure/emotion": "8.25.1-snapshot-10",
35
+ "@instructure/shared-types": "8.25.1-snapshot-10",
36
+ "@instructure/ui-heading": "8.25.1-snapshot-10",
37
+ "@instructure/ui-img": "8.25.1-snapshot-10",
38
+ "@instructure/ui-react-utils": "8.25.1-snapshot-10",
39
+ "@instructure/ui-view": "8.25.1-snapshot-10",
40
40
  "prop-types": "^15"
41
41
  },
42
42
  "peerDependencies": {