@instructure/ui-billboard 8.17.1-snapshot.21 → 8.17.1-snapshot.71
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/es/Billboard/index.js +23 -27
- package/es/Billboard/theme.js +21 -21
- package/lib/Billboard/index.js +23 -27
- package/lib/Billboard/theme.js +21 -21
- package/package.json +13 -13
- package/tsconfig.build.tsbuildinfo +1 -1
package/es/Billboard/index.js
CHANGED
|
@@ -69,25 +69,21 @@ let Billboard = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
componentDidMount() {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
(_this$props$makeStyle = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props2);
|
|
72
|
+
this.props.makeStyles?.();
|
|
75
73
|
}
|
|
76
74
|
|
|
77
75
|
componentDidUpdate() {
|
|
78
|
-
|
|
79
|
-
|
|
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.makeStyles?.();
|
|
81
77
|
}
|
|
82
78
|
|
|
83
79
|
renderHeading() {
|
|
84
|
-
const _this$
|
|
85
|
-
headingLevel = _this$
|
|
86
|
-
headingAs = _this$
|
|
87
|
-
heading = _this$
|
|
88
|
-
styles = _this$
|
|
80
|
+
const _this$props2 = this.props,
|
|
81
|
+
headingLevel = _this$props2.headingLevel,
|
|
82
|
+
headingAs = _this$props2.headingAs,
|
|
83
|
+
heading = _this$props2.heading,
|
|
84
|
+
styles = _this$props2.styles;
|
|
89
85
|
return jsx("span", {
|
|
90
|
-
css: styles
|
|
86
|
+
css: styles?.heading
|
|
91
87
|
}, jsx(Heading, {
|
|
92
88
|
level: headingLevel,
|
|
93
89
|
as: headingAs,
|
|
@@ -116,27 +112,27 @@ let Billboard = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_
|
|
|
116
112
|
}
|
|
117
113
|
|
|
118
114
|
renderContent() {
|
|
119
|
-
const _this$
|
|
120
|
-
heading = _this$
|
|
121
|
-
message = _this$
|
|
122
|
-
hero = _this$
|
|
123
|
-
styles = _this$
|
|
115
|
+
const _this$props3 = this.props,
|
|
116
|
+
heading = _this$props3.heading,
|
|
117
|
+
message = _this$props3.message,
|
|
118
|
+
hero = _this$props3.hero,
|
|
119
|
+
styles = _this$props3.styles;
|
|
124
120
|
return jsx("span", {
|
|
125
|
-
css: styles
|
|
121
|
+
css: styles?.content
|
|
126
122
|
}, hero && jsx("span", {
|
|
127
|
-
css: styles
|
|
123
|
+
css: styles?.hero
|
|
128
124
|
}, this.renderHero()), heading && this.renderHeading(), message && jsx("span", {
|
|
129
|
-
css: styles
|
|
125
|
+
css: styles?.message
|
|
130
126
|
}, callRenderProp(message)));
|
|
131
127
|
}
|
|
132
128
|
|
|
133
129
|
render() {
|
|
134
|
-
const _this$
|
|
135
|
-
href = _this$
|
|
136
|
-
disabled = _this$
|
|
137
|
-
readOnly = _this$
|
|
138
|
-
margin = _this$
|
|
139
|
-
styles = _this$
|
|
130
|
+
const _this$props4 = this.props,
|
|
131
|
+
href = _this$props4.href,
|
|
132
|
+
disabled = _this$props4.disabled,
|
|
133
|
+
readOnly = _this$props4.readOnly,
|
|
134
|
+
margin = _this$props4.margin,
|
|
135
|
+
styles = _this$props4.styles;
|
|
140
136
|
const Element = getElementType(Billboard, this.props);
|
|
141
137
|
return jsx(View, {
|
|
142
138
|
as: "div",
|
|
@@ -145,7 +141,7 @@ let Billboard = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_
|
|
|
145
141
|
type: Element === 'button' ? 'button' : void 0,
|
|
146
142
|
as: Element,
|
|
147
143
|
elementRef: this.handleRef,
|
|
148
|
-
css: styles
|
|
144
|
+
css: styles?.billboard,
|
|
149
145
|
href: href,
|
|
150
146
|
onClick: this.handleClick,
|
|
151
147
|
disabled: disabled,
|
package/es/Billboard/theme.js
CHANGED
|
@@ -43,27 +43,27 @@ const generateComponentTheme = theme => {
|
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
const componentVariables = {
|
|
46
|
-
fontFamily: typography
|
|
47
|
-
paddingSmall: spacing
|
|
48
|
-
paddingMedium: spacing
|
|
49
|
-
paddingLarge: spacing
|
|
50
|
-
iconColor: colors
|
|
51
|
-
mediumMargin: spacing
|
|
52
|
-
largeMargin: spacing
|
|
53
|
-
iconHoverColor: colors
|
|
54
|
-
backgroundColor: colors
|
|
55
|
-
iconHoverColorInverse: colors
|
|
56
|
-
buttonBorderWidth: borders
|
|
57
|
-
buttonBorderRadius: borders
|
|
58
|
-
messageColor: colors
|
|
59
|
-
messageColorClickable: colors
|
|
60
|
-
messageColorInverse: colors
|
|
61
|
-
messageFontSizeSmall: typography
|
|
62
|
-
messageFontSizeMedium: typography
|
|
63
|
-
messageFontSizeLarge: typography
|
|
64
|
-
clickableActiveBg: colors
|
|
65
|
-
clickableActiveText: colors
|
|
66
|
-
buttonBorderStyle: borders
|
|
46
|
+
fontFamily: typography?.fontFamily,
|
|
47
|
+
paddingSmall: spacing?.small,
|
|
48
|
+
paddingMedium: spacing?.medium,
|
|
49
|
+
paddingLarge: spacing?.medium,
|
|
50
|
+
iconColor: colors?.textDark,
|
|
51
|
+
mediumMargin: spacing?.small,
|
|
52
|
+
largeMargin: spacing?.medium,
|
|
53
|
+
iconHoverColor: colors?.textLink,
|
|
54
|
+
backgroundColor: colors?.backgroundLightest,
|
|
55
|
+
iconHoverColorInverse: colors?.textLightest,
|
|
56
|
+
buttonBorderWidth: borders?.widthMedium,
|
|
57
|
+
buttonBorderRadius: borders?.radiusLarge,
|
|
58
|
+
messageColor: colors?.textDark,
|
|
59
|
+
messageColorClickable: colors?.textLink,
|
|
60
|
+
messageColorInverse: colors?.textLight,
|
|
61
|
+
messageFontSizeSmall: typography?.fontSizeSmall,
|
|
62
|
+
messageFontSizeMedium: typography?.fontSizeMedium,
|
|
63
|
+
messageFontSizeLarge: typography?.fontSizeLarge,
|
|
64
|
+
clickableActiveBg: colors?.backgroundBrand,
|
|
65
|
+
clickableActiveText: colors?.textLightest,
|
|
66
|
+
buttonBorderStyle: borders?.style,
|
|
67
67
|
buttonHoverBorderStyle: 'dashed'
|
|
68
68
|
};
|
|
69
69
|
return { ...componentVariables,
|
package/lib/Billboard/index.js
CHANGED
|
@@ -64,25 +64,21 @@ let Billboard = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
componentDidMount() {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
(_this$props$makeStyle = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props2);
|
|
67
|
+
this.props.makeStyles?.();
|
|
70
68
|
}
|
|
71
69
|
|
|
72
70
|
componentDidUpdate() {
|
|
73
|
-
|
|
74
|
-
|
|
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.makeStyles?.();
|
|
76
72
|
}
|
|
77
73
|
|
|
78
74
|
renderHeading() {
|
|
79
|
-
const _this$
|
|
80
|
-
headingLevel = _this$
|
|
81
|
-
headingAs = _this$
|
|
82
|
-
heading = _this$
|
|
83
|
-
styles = _this$
|
|
75
|
+
const _this$props2 = this.props,
|
|
76
|
+
headingLevel = _this$props2.headingLevel,
|
|
77
|
+
headingAs = _this$props2.headingAs,
|
|
78
|
+
heading = _this$props2.heading,
|
|
79
|
+
styles = _this$props2.styles;
|
|
84
80
|
return (0, _emotion.jsx)("span", {
|
|
85
|
-
css: styles
|
|
81
|
+
css: styles?.heading
|
|
86
82
|
}, (0, _emotion.jsx)(_Heading.Heading, {
|
|
87
83
|
level: headingLevel,
|
|
88
84
|
as: headingAs,
|
|
@@ -111,27 +107,27 @@ let Billboard = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
|
|
|
111
107
|
}
|
|
112
108
|
|
|
113
109
|
renderContent() {
|
|
114
|
-
const _this$
|
|
115
|
-
heading = _this$
|
|
116
|
-
message = _this$
|
|
117
|
-
hero = _this$
|
|
118
|
-
styles = _this$
|
|
110
|
+
const _this$props3 = this.props,
|
|
111
|
+
heading = _this$props3.heading,
|
|
112
|
+
message = _this$props3.message,
|
|
113
|
+
hero = _this$props3.hero,
|
|
114
|
+
styles = _this$props3.styles;
|
|
119
115
|
return (0, _emotion.jsx)("span", {
|
|
120
|
-
css: styles
|
|
116
|
+
css: styles?.content
|
|
121
117
|
}, hero && (0, _emotion.jsx)("span", {
|
|
122
|
-
css: styles
|
|
118
|
+
css: styles?.hero
|
|
123
119
|
}, this.renderHero()), heading && this.renderHeading(), message && (0, _emotion.jsx)("span", {
|
|
124
|
-
css: styles
|
|
120
|
+
css: styles?.message
|
|
125
121
|
}, (0, _callRenderProp.callRenderProp)(message)));
|
|
126
122
|
}
|
|
127
123
|
|
|
128
124
|
render() {
|
|
129
|
-
const _this$
|
|
130
|
-
href = _this$
|
|
131
|
-
disabled = _this$
|
|
132
|
-
readOnly = _this$
|
|
133
|
-
margin = _this$
|
|
134
|
-
styles = _this$
|
|
125
|
+
const _this$props4 = this.props,
|
|
126
|
+
href = _this$props4.href,
|
|
127
|
+
disabled = _this$props4.disabled,
|
|
128
|
+
readOnly = _this$props4.readOnly,
|
|
129
|
+
margin = _this$props4.margin,
|
|
130
|
+
styles = _this$props4.styles;
|
|
135
131
|
const Element = (0, _getElementType.getElementType)(Billboard, this.props);
|
|
136
132
|
return (0, _emotion.jsx)(_View.View, {
|
|
137
133
|
as: "div",
|
|
@@ -140,7 +136,7 @@ let Billboard = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
|
|
|
140
136
|
type: Element === 'button' ? 'button' : void 0,
|
|
141
137
|
as: Element,
|
|
142
138
|
elementRef: this.handleRef,
|
|
143
|
-
css: styles
|
|
139
|
+
css: styles?.billboard,
|
|
144
140
|
href: href,
|
|
145
141
|
onClick: this.handleClick,
|
|
146
142
|
disabled: disabled,
|
package/lib/Billboard/theme.js
CHANGED
|
@@ -50,27 +50,27 @@ const generateComponentTheme = theme => {
|
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
const componentVariables = {
|
|
53
|
-
fontFamily: typography
|
|
54
|
-
paddingSmall: spacing
|
|
55
|
-
paddingMedium: spacing
|
|
56
|
-
paddingLarge: spacing
|
|
57
|
-
iconColor: colors
|
|
58
|
-
mediumMargin: spacing
|
|
59
|
-
largeMargin: spacing
|
|
60
|
-
iconHoverColor: colors
|
|
61
|
-
backgroundColor: colors
|
|
62
|
-
iconHoverColorInverse: colors
|
|
63
|
-
buttonBorderWidth: borders
|
|
64
|
-
buttonBorderRadius: borders
|
|
65
|
-
messageColor: colors
|
|
66
|
-
messageColorClickable: colors
|
|
67
|
-
messageColorInverse: colors
|
|
68
|
-
messageFontSizeSmall: typography
|
|
69
|
-
messageFontSizeMedium: typography
|
|
70
|
-
messageFontSizeLarge: typography
|
|
71
|
-
clickableActiveBg: colors
|
|
72
|
-
clickableActiveText: colors
|
|
73
|
-
buttonBorderStyle: borders
|
|
53
|
+
fontFamily: typography?.fontFamily,
|
|
54
|
+
paddingSmall: spacing?.small,
|
|
55
|
+
paddingMedium: spacing?.medium,
|
|
56
|
+
paddingLarge: spacing?.medium,
|
|
57
|
+
iconColor: colors?.textDark,
|
|
58
|
+
mediumMargin: spacing?.small,
|
|
59
|
+
largeMargin: spacing?.medium,
|
|
60
|
+
iconHoverColor: colors?.textLink,
|
|
61
|
+
backgroundColor: colors?.backgroundLightest,
|
|
62
|
+
iconHoverColorInverse: colors?.textLightest,
|
|
63
|
+
buttonBorderWidth: borders?.widthMedium,
|
|
64
|
+
buttonBorderRadius: borders?.radiusLarge,
|
|
65
|
+
messageColor: colors?.textDark,
|
|
66
|
+
messageColorClickable: colors?.textLink,
|
|
67
|
+
messageColorInverse: colors?.textLight,
|
|
68
|
+
messageFontSizeSmall: typography?.fontSizeSmall,
|
|
69
|
+
messageFontSizeMedium: typography?.fontSizeMedium,
|
|
70
|
+
messageFontSizeLarge: typography?.fontSizeLarge,
|
|
71
|
+
clickableActiveBg: colors?.backgroundBrand,
|
|
72
|
+
clickableActiveText: colors?.textLightest,
|
|
73
|
+
buttonBorderStyle: borders?.style,
|
|
74
74
|
buttonHoverBorderStyle: 'dashed'
|
|
75
75
|
};
|
|
76
76
|
return { ...componentVariables,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-billboard",
|
|
3
|
-
"version": "8.17.1-snapshot.
|
|
3
|
+
"version": "8.17.1-snapshot.71+34dfb2442",
|
|
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.17.1-snapshot.
|
|
27
|
-
"@instructure/ui-color-utils": "8.17.1-snapshot.
|
|
28
|
-
"@instructure/ui-icons": "8.17.1-snapshot.
|
|
29
|
-
"@instructure/ui-test-utils": "8.17.1-snapshot.
|
|
30
|
-
"@instructure/ui-themes": "8.17.1-snapshot.
|
|
26
|
+
"@instructure/ui-babel-preset": "8.17.1-snapshot.71+34dfb2442",
|
|
27
|
+
"@instructure/ui-color-utils": "8.17.1-snapshot.71+34dfb2442",
|
|
28
|
+
"@instructure/ui-icons": "8.17.1-snapshot.71+34dfb2442",
|
|
29
|
+
"@instructure/ui-test-utils": "8.17.1-snapshot.71+34dfb2442",
|
|
30
|
+
"@instructure/ui-themes": "8.17.1-snapshot.71+34dfb2442"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/runtime": "^7.13.10",
|
|
34
|
-
"@instructure/emotion": "8.17.1-snapshot.
|
|
35
|
-
"@instructure/shared-types": "8.17.1-snapshot.
|
|
36
|
-
"@instructure/ui-heading": "8.17.1-snapshot.
|
|
37
|
-
"@instructure/ui-img": "8.17.1-snapshot.
|
|
38
|
-
"@instructure/ui-react-utils": "8.17.1-snapshot.
|
|
39
|
-
"@instructure/ui-view": "8.17.1-snapshot.
|
|
34
|
+
"@instructure/emotion": "8.17.1-snapshot.71+34dfb2442",
|
|
35
|
+
"@instructure/shared-types": "8.17.1-snapshot.71+34dfb2442",
|
|
36
|
+
"@instructure/ui-heading": "8.17.1-snapshot.71+34dfb2442",
|
|
37
|
+
"@instructure/ui-img": "8.17.1-snapshot.71+34dfb2442",
|
|
38
|
+
"@instructure/ui-react-utils": "8.17.1-snapshot.71+34dfb2442",
|
|
39
|
+
"@instructure/ui-view": "8.17.1-snapshot.71+34dfb2442",
|
|
40
40
|
"prop-types": "^15"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
48
|
"sideEffects": false,
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "34dfb2442c7ddce048d78ab1ecd5f3cbb78ee8d6"
|
|
50
50
|
}
|