@instructure/quiz-core 18.3.1-rc.15 → 18.3.1-rc.16
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.
|
@@ -16,17 +16,17 @@ import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
|
16
16
|
import { themeable } from '@instructure/ui-themeable';
|
|
17
17
|
import Card from "../../../../../common/components/shared/Card/index.js";
|
|
18
18
|
var styles = {
|
|
19
|
-
componentId: '
|
|
19
|
+
componentId: 'bLTgQ',
|
|
20
20
|
template: function template(theme) {
|
|
21
|
-
return "\n\n.
|
|
21
|
+
return "\n\n.bLTgQ_bqdH{column-gap:5px;display:flex;justify-content:space-between;padding-bottom:".concat(theme.metricsPadding || 'inherit', ";row-gap:8px}\n\n.bLTgQ_PFlN{border-radius:").concat(theme.cardBorderRadius || 'inherit', ";box-shadow:").concat(theme.cardBoxShadow || 'inherit', ";display:inline-flex;flex-direction:column;margin:").concat(theme.cardMargin || 'inherit', ";padding:").concat(theme.cardPadding || 'inherit', ";width:").concat(theme.cardWidth || 'inherit', "}\n\n.bLTgQ_dJIh{height:").concat(theme.cardHeight || 'inherit', "}\n\n.bLTgQ_eWEX{align-items:flex-end;align-self:flex-end;display:flex;height:100%;justify-content:flex-end}\n\n.bLTgQ_blRb{max-width:160px;padding-right:10px}\n\n.bLTgQ_bxzy{border-bottom:1px solid ").concat(theme.quizSummaryBorderBottomColor || 'inherit', ";margin-bottom:15px;padding-bottom:15px}\n\n.bLTgQ_dKIc{padding-bottom:15px}\n\n@media only screen and (max-width:25rem){.bLTgQ_dJIh{height:auto}.bLTgQ_PFlN{max-width:").concat(theme.cardWidth || 'inherit', ";width:auto}.bLTgQ_bqdH{flex-wrap:wrap}}");
|
|
22
22
|
},
|
|
23
|
-
'metricsContainer': '
|
|
24
|
-
'reportCard': '
|
|
25
|
-
'emptyReportCard': '
|
|
26
|
-
'emptyCardBodyContainer': '
|
|
27
|
-
'dateContainer': '
|
|
28
|
-
'quizAnalysisSummary': '
|
|
29
|
-
'titleContainer': '
|
|
23
|
+
'metricsContainer': 'bLTgQ_bqdH',
|
|
24
|
+
'reportCard': 'bLTgQ_PFlN',
|
|
25
|
+
'emptyReportCard': 'bLTgQ_dJIh',
|
|
26
|
+
'emptyCardBodyContainer': 'bLTgQ_eWEX',
|
|
27
|
+
'dateContainer': 'bLTgQ_blRb',
|
|
28
|
+
'quizAnalysisSummary': 'bLTgQ_bxzy',
|
|
29
|
+
'titleContainer': 'bLTgQ_dKIc'
|
|
30
30
|
};
|
|
31
31
|
import theme from "./theme.js";
|
|
32
32
|
import classnames from 'classnames';
|
|
@@ -157,8 +157,9 @@ export var NewQuizAndItemAnalysisReportCardPresenter = (_dec = themeable(theme,
|
|
|
157
157
|
var _this$props3 = this.props,
|
|
158
158
|
fetchInProgress = _this$props3.fetchInProgress,
|
|
159
159
|
name = _this$props3.name,
|
|
160
|
-
quizAnalysis = _this$props3.quizAnalysis
|
|
161
|
-
|
|
160
|
+
quizAnalysis = _this$props3.quizAnalysis,
|
|
161
|
+
analysisError = _this$props3.analysisError;
|
|
162
|
+
var reportCardStyles = classnames(styles.reportCard, _defineProperty({}, styles.emptyReportCard, !quizAnalysis && !analysisError));
|
|
162
163
|
return /*#__PURE__*/React.createElement(Card, {
|
|
163
164
|
className: reportCardStyles
|
|
164
165
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -52,17 +52,17 @@ var _propTypes2 = require("../propTypes.js");
|
|
|
52
52
|
var _dec, _class, _class2, _temp;
|
|
53
53
|
|
|
54
54
|
var styles = {
|
|
55
|
-
componentId: '
|
|
55
|
+
componentId: 'bLTgQ',
|
|
56
56
|
template: function template(theme) {
|
|
57
|
-
return "\n\n.
|
|
57
|
+
return "\n\n.bLTgQ_bqdH{column-gap:5px;display:flex;justify-content:space-between;padding-bottom:".concat(theme.metricsPadding || 'inherit', ";row-gap:8px}\n\n.bLTgQ_PFlN{border-radius:").concat(theme.cardBorderRadius || 'inherit', ";box-shadow:").concat(theme.cardBoxShadow || 'inherit', ";display:inline-flex;flex-direction:column;margin:").concat(theme.cardMargin || 'inherit', ";padding:").concat(theme.cardPadding || 'inherit', ";width:").concat(theme.cardWidth || 'inherit', "}\n\n.bLTgQ_dJIh{height:").concat(theme.cardHeight || 'inherit', "}\n\n.bLTgQ_eWEX{align-items:flex-end;align-self:flex-end;display:flex;height:100%;justify-content:flex-end}\n\n.bLTgQ_blRb{max-width:160px;padding-right:10px}\n\n.bLTgQ_bxzy{border-bottom:1px solid ").concat(theme.quizSummaryBorderBottomColor || 'inherit', ";margin-bottom:15px;padding-bottom:15px}\n\n.bLTgQ_dKIc{padding-bottom:15px}\n\n@media only screen and (max-width:25rem){.bLTgQ_dJIh{height:auto}.bLTgQ_PFlN{max-width:").concat(theme.cardWidth || 'inherit', ";width:auto}.bLTgQ_bqdH{flex-wrap:wrap}}");
|
|
58
58
|
},
|
|
59
|
-
'metricsContainer': '
|
|
60
|
-
'reportCard': '
|
|
61
|
-
'emptyReportCard': '
|
|
62
|
-
'emptyCardBodyContainer': '
|
|
63
|
-
'dateContainer': '
|
|
64
|
-
'quizAnalysisSummary': '
|
|
65
|
-
'titleContainer': '
|
|
59
|
+
'metricsContainer': 'bLTgQ_bqdH',
|
|
60
|
+
'reportCard': 'bLTgQ_PFlN',
|
|
61
|
+
'emptyReportCard': 'bLTgQ_dJIh',
|
|
62
|
+
'emptyCardBodyContainer': 'bLTgQ_eWEX',
|
|
63
|
+
'dateContainer': 'bLTgQ_blRb',
|
|
64
|
+
'quizAnalysisSummary': 'bLTgQ_bxzy',
|
|
65
|
+
'titleContainer': 'bLTgQ_dKIc'
|
|
66
66
|
};
|
|
67
67
|
var NewQuizAndItemAnalysisReportCardPresenter = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
68
68
|
(0, _inherits2.default)(NewQuizAndItemAnalysisReportCardPresenter, _Component);
|
|
@@ -187,8 +187,9 @@ var NewQuizAndItemAnalysisReportCardPresenter = (_dec = (0, _uiThemeable.themeab
|
|
|
187
187
|
var _this$props3 = this.props,
|
|
188
188
|
fetchInProgress = _this$props3.fetchInProgress,
|
|
189
189
|
name = _this$props3.name,
|
|
190
|
-
quizAnalysis = _this$props3.quizAnalysis
|
|
191
|
-
|
|
190
|
+
quizAnalysis = _this$props3.quizAnalysis,
|
|
191
|
+
analysisError = _this$props3.analysisError;
|
|
192
|
+
var reportCardStyles = (0, _classnames2.default)(styles.reportCard, (0, _defineProperty2.default)({}, styles.emptyReportCard, !quizAnalysis && !analysisError));
|
|
192
193
|
return /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
193
194
|
className: reportCardStyles
|
|
194
195
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/quiz-core",
|
|
3
|
-
"version": "18.3.1-rc.
|
|
3
|
+
"version": "18.3.1-rc.16+1b173ad32",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "The Quiz React SDK by Instructure Inc.",
|
|
6
6
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@instructure/grading-utils": "^1.0.0",
|
|
44
44
|
"@instructure/outcomes-ui": "^2.1.9",
|
|
45
|
-
"@instructure/quiz-common": "18.3.1-rc.
|
|
46
|
-
"@instructure/quiz-i18n": "18.3.1-rc.
|
|
47
|
-
"@instructure/quiz-interactions": "18.3.1-rc.
|
|
48
|
-
"@instructure/quiz-number-input": "18.3.1-rc.
|
|
49
|
-
"@instructure/quiz-rce": "18.3.1-rc.
|
|
45
|
+
"@instructure/quiz-common": "18.3.1-rc.16+1b173ad32",
|
|
46
|
+
"@instructure/quiz-i18n": "18.3.1-rc.16+1b173ad32",
|
|
47
|
+
"@instructure/quiz-interactions": "18.3.1-rc.16+1b173ad32",
|
|
48
|
+
"@instructure/quiz-number-input": "18.3.1-rc.16+1b173ad32",
|
|
49
|
+
"@instructure/quiz-rce": "18.3.1-rc.16+1b173ad32",
|
|
50
50
|
"@instructure/ui-a11y-content": "^7.22.1",
|
|
51
51
|
"@instructure/ui-alerts": "^7.22.1",
|
|
52
52
|
"@instructure/ui-avatar": "^7.22.1",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"eventemitter3": "^3.1.0",
|
|
108
108
|
"humps": "^2.0.0",
|
|
109
109
|
"immutable": "^3.8.1",
|
|
110
|
-
"instructure-validations": "18.3.1-rc.
|
|
110
|
+
"instructure-validations": "18.3.1-rc.16+1b173ad32",
|
|
111
111
|
"ipaddr.js": "^1.5.4",
|
|
112
112
|
"isomorphic-fetch": "^2.2.0",
|
|
113
113
|
"isuuid": "^0.1.0",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"intl": "^1.2.4",
|
|
159
159
|
"jquery": "^2.2.3",
|
|
160
160
|
"most-subject": "^5.3.0",
|
|
161
|
-
"quiz-presets": "18.3.1-rc.
|
|
161
|
+
"quiz-presets": "18.3.1-rc.16+1b173ad32",
|
|
162
162
|
"react": "^16.8.6",
|
|
163
163
|
"react-addons-test-utils": "^15.6.2",
|
|
164
164
|
"react-dom": "^16.8.6",
|
|
@@ -174,5 +174,5 @@
|
|
|
174
174
|
"publishConfig": {
|
|
175
175
|
"access": "public"
|
|
176
176
|
},
|
|
177
|
-
"gitHead": "
|
|
177
|
+
"gitHead": "1b173ad323d4e182131f144eca9a55c55144ef6a"
|
|
178
178
|
}
|