@instructure/quiz-core 20.11.4 → 20.11.5-rc.1

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.
Files changed (23) hide show
  1. package/es/reporting/components/MetricsListItem/index.js +13 -19
  2. package/es/reporting/components/MetricsListItem/styles.js +12 -0
  3. package/es/reporting/components/MetricsListItem/theme.js +0 -3
  4. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +33 -61
  5. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +45 -0
  6. package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +4 -2
  7. package/es/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +6 -6
  8. package/es/reporting/components/quizAnalysis/QuizAnalysisOverview.js +9 -9
  9. package/es/reporting/components/resources/QuizAndItemAnalysis/presenter.js +46 -50
  10. package/es/reporting/components/resources/QuizAndItemAnalysis/styles.js +18 -0
  11. package/es/reporting/components/resources/QuizAndItemAnalysis/theme.js +4 -2
  12. package/lib/reporting/components/MetricsListItem/index.js +12 -22
  13. package/lib/reporting/components/MetricsListItem/styles.js +20 -0
  14. package/lib/reporting/components/MetricsListItem/theme.js +1 -10
  15. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +32 -64
  16. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/styles.js +56 -0
  17. package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +6 -3
  18. package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +5 -5
  19. package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +9 -9
  20. package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +45 -54
  21. package/lib/reporting/components/resources/QuizAndItemAnalysis/styles.js +26 -0
  22. package/lib/reporting/components/resources/QuizAndItemAnalysis/theme.js +6 -3
  23. package/package.json +10 -10
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = generator;
6
+ exports.default = void 0;
7
7
 
8
- function generator(_ref) {
8
+ var generateComponentTheme = function generateComponentTheme(_ref) {
9
9
  var breakpoints = _ref.breakpoints,
10
10
  colors = _ref.colors,
11
11
  spacing = _ref.spacing,
@@ -30,4 +30,7 @@ function generator(_ref) {
30
30
  phoneBreakPoint: "max-width: ".concat(breakpoints.medium),
31
31
  barTransition: "width ".concat(transitions.duration)
32
32
  };
33
- }
33
+ };
34
+
35
+ var _default = generateComponentTheme;
36
+ exports.default = _default;
@@ -136,7 +136,7 @@ var ItemAnalysisRow = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.de
136
136
  }, {
137
137
  key: "renderStem",
138
138
  value: function renderStem() {
139
- return (0, _emotion.jsx)(_quizRce.RichContentRenderer, {
139
+ return (0, _emotion.jsx)(_quizRce.RichContentRendererEmotion, {
140
140
  customStyles: this.props.styles.stem,
141
141
  content: this.props.itemAnalysis.itemBody
142
142
  });
@@ -162,25 +162,25 @@ var ItemAnalysisRow = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.de
162
162
  key: "difficultyIndex",
163
163
  renderLabel: (0, _formatMessage.default)('Difficulty Index'),
164
164
  renderValue: this.props.itemAnalysis.difficultyIndex(this.locale),
165
- css: this.props.styles.metric,
165
+ customStyles: this.props.styles.metric,
166
166
  isGroupChild: true
167
167
  }), (0, _emotion.jsx)(_index7.default, {
168
168
  key: "discriminationIndex",
169
169
  renderLabel: (0, _formatMessage.default)('Discrimination Index'),
170
170
  renderValue: this.props.itemAnalysis.discriminationIndex(this.locale),
171
- css: this.props.styles.metric,
171
+ customStyles: this.props.styles.metric,
172
172
  isGroupChild: true
173
173
  }), (0, _emotion.jsx)(_index7.default, {
174
174
  key: "rpb",
175
175
  renderLabel: (0, _formatMessage.default)('RPB'),
176
176
  renderValue: this.props.itemAnalysis.pointBiserial(this.locale),
177
- css: this.props.styles.metric,
177
+ customStyles: this.props.styles.metric,
178
178
  isGroupChild: true
179
179
  }), (0, _emotion.jsx)(_index7.default, {
180
180
  key: "meanEarnedScore",
181
181
  renderLabel: (0, _formatMessage.default)('Mean Earned Score'),
182
182
  renderValue: mean,
183
- css: this.props.styles.metric,
183
+ customStyles: this.props.styles.metric,
184
184
  isGroupChild: true
185
185
  }));
186
186
  }
@@ -83,8 +83,8 @@ var QuizAnalysisOverview = (_dec = (0, _emotion.withStyle)(_styles.default, _the
83
83
  }
84
84
 
85
85
  (0, _createClass2.default)(QuizAnalysisOverview, [{
86
- key: "defaulMetrics",
87
- value: function defaulMetrics() {
86
+ key: "defaultMetrics",
87
+ value: function defaultMetrics() {
88
88
  var quizAnalysis = this.props.quizAnalysis;
89
89
  var formattedElapsedTime = (0, _emotion.jsx)(_index.default, {
90
90
  fontSize: "x-large",
@@ -94,25 +94,25 @@ var QuizAnalysisOverview = (_dec = (0, _emotion.withStyle)(_styles.default, _the
94
94
  key: "highScore",
95
95
  renderLabel: (0, _formatMessage.default)('High Score'),
96
96
  renderValue: quizAnalysis.highScore(),
97
- css: this.props.styles.metric,
97
+ customStyles: this.props.styles.metric,
98
98
  isGroupChild: true
99
99
  }), (0, _emotion.jsx)(_index4.default, {
100
100
  key: "lowScore",
101
101
  renderLabel: (0, _formatMessage.default)('Low Score'),
102
102
  renderValue: quizAnalysis.lowScore(),
103
- css: this.props.styles.metric,
103
+ customStyles: this.props.styles.metric,
104
104
  isGroupChild: true
105
105
  }), (0, _emotion.jsx)(_index4.default, {
106
106
  key: "meanScore",
107
107
  renderLabel: (0, _formatMessage.default)('Mean Score'),
108
108
  renderValue: quizAnalysis.meanScore(),
109
- css: this.props.styles.metric,
109
+ customStyles: this.props.styles.metric,
110
110
  isGroupChild: true
111
111
  }), (0, _emotion.jsx)(_index4.default, {
112
112
  key: "standardDeviation",
113
113
  renderLabel: (0, _formatMessage.default)('Standard Deviation'),
114
114
  renderValue: quizAnalysis.standardDeviation(),
115
- css: this.props.styles.metric,
115
+ customStyles: this.props.styles.metric,
116
116
  isGroupChild: true
117
117
  }), (0, _emotion.jsx)(_index4.default, {
118
118
  key: "meanElapsedTime",
@@ -120,13 +120,13 @@ var QuizAnalysisOverview = (_dec = (0, _emotion.withStyle)(_styles.default, _the
120
120
  renderValue: (0, _emotion.jsx)(_uiText.Text, {
121
121
  size: "x-large"
122
122
  }, formattedElapsedTime),
123
- css: this.props.styles.metric,
123
+ customStyles: this.props.styles.metric,
124
124
  isGroupChild: true
125
125
  }), (0, _emotion.jsx)(_index4.default, {
126
126
  key: "cronbachsAlpha",
127
127
  renderLabel: (0, _formatMessage.default)('Cronbach\'s Alpha'),
128
128
  renderValue: quizAnalysis.cronbachsAlpha(),
129
- css: this.props.styles.metric,
129
+ customStyles: this.props.styles.metric,
130
130
  isGroupChild: true
131
131
  }));
132
132
  }
@@ -139,7 +139,7 @@ var QuizAnalysisOverview = (_dec = (0, _emotion.withStyle)(_styles.default, _the
139
139
  quizAnalysis = _this$props.quizAnalysis,
140
140
  quizTitle = _this$props.quizTitle;
141
141
  if (!quizAnalysis.isLoaded()) return _ref2;
142
- var list = _react.default.Children.count(this.props.children) === 0 ? this.defaulMetrics() : (0, _emotion.jsx)(_uiMetric.MetricGroup, null, this.props.children);
142
+ var list = _react.default.Children.count(this.props.children) === 0 ? this.defaultMetrics() : (0, _emotion.jsx)(_uiMetric.MetricGroup, null, this.props.children);
143
143
  return (0, _emotion.jsx)(_index2.default, {
144
144
  css: this.props.styles.root
145
145
  }, (0, _emotion.jsx)(_uiHeading.Heading, {
@@ -2,8 +2,6 @@
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
 
5
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
6
-
7
5
  Object.defineProperty(exports, "__esModule", {
8
6
  value: true
9
7
  });
@@ -17,7 +15,7 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
17
15
 
18
16
  var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
19
17
 
20
- var _react = _interopRequireWildcard(require("react"));
18
+ var _react = require("react");
21
19
 
22
20
  var _propTypes = _interopRequireDefault(require("prop-types"));
23
21
 
@@ -25,7 +23,7 @@ var _reactImmutableProptypes = _interopRequireDefault(require("react-immutable-p
25
23
 
26
24
  var _uiHeading = require("@instructure/ui-heading");
27
25
 
28
- var _uiThemeable = require("@instructure/ui-themeable");
26
+ var _emotion = require("@instructure/emotion");
29
27
 
30
28
  var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
31
29
 
@@ -43,23 +41,15 @@ var _QuizAnalysisOverview = _interopRequireDefault(require("../../../../reportin
43
41
 
44
42
  var _index4 = _interopRequireDefault(require("../../MetricsListItem/index.js"));
45
43
 
44
+ var _styles = _interopRequireDefault(require("./styles.js"));
45
+
46
46
  var _theme = _interopRequireDefault(require("./theme.js"));
47
47
 
48
48
  var _dec, _class, _class2, _temp;
49
49
 
50
- var styles = {
51
- componentId: 'cNnNG',
52
- template: function template(theme) {
53
- return "\n\n.cNnNG_nvdO{margin:".concat(theme.titleMarginTop || 'inherit', " ").concat(theme.titleMarginLeftRight || 'inherit', " ").concat(theme.titleMarginBottom || 'inherit', " ").concat(theme.titleMarginLeftRight || 'inherit', "}\n\n.cNnNG_bwKH{color:").concat(theme.emptyTextColor || 'inherit', ";font-size:").concat(theme.emptyTextFontSize || 'inherit', ";padding:").concat(theme.emptyTextPadding || 'inherit', ";text-align:center}\n\n[dir=ltr] .cNnNG_bwKH,[dir=rtl] .cNnNG_bwKH{text-align:center}\n\n.cNnNG_eiMu{justify-content:center}");
54
- },
55
- 'title': 'cNnNG_nvdO',
56
- 'emptyText': 'cNnNG_bwKH',
57
- 'metric': 'cNnNG_eiMu'
58
- };
59
-
60
- var _ref2 = /*#__PURE__*/_react.default.createElement(_Spinner.default, null);
50
+ var _ref2 = (0, _emotion.jsx)(_Spinner.default, null);
61
51
 
62
- var QuizAndItemAnalysis = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_withI18nSupport) {
52
+ var QuizAndItemAnalysis = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_withI18nSupport) {
63
53
  (0, _inherits2.default)(QuizAndItemAnalysis, _withI18nSupport);
64
54
 
65
55
  var _super = (0, _createSuper2.default)(QuizAndItemAnalysis);
@@ -98,9 +88,9 @@ var QuizAndItemAnalysis = (_dec = (0, _uiThemeable.themeable)(_theme.default, st
98
88
  var mean = _formatMessage.default.rich('{score}<0>/{possible, number} pts</0>', {
99
89
  0: function _(_ref) {
100
90
  var children = _ref.children;
101
- return /*#__PURE__*/_react.default.createElement("span", {
91
+ return (0, _emotion.jsx)("span", {
102
92
  key: "mean",
103
- className: styles.metricNote
93
+ css: _this.props.styles.metricNote
104
94
  }, children);
105
95
  },
106
96
  score: itemAnalysis.meanScore(this.locale) || 0,
@@ -110,41 +100,41 @@ var QuizAndItemAnalysis = (_dec = (0, _uiThemeable.themeable)(_theme.default, st
110
100
  this.props.itemMetrics.forEach(function (key) {
111
101
  switch (key) {
112
102
  case 'difficultyIndex':
113
- metrics.push( /*#__PURE__*/_react.default.createElement(_index4.default, {
103
+ metrics.push((0, _emotion.jsx)(_index4.default, {
114
104
  key: "difficultyIndex",
115
105
  renderLabel: (0, _formatMessage.default)('Difficulty Index'),
116
106
  renderValue: itemAnalysis.difficultyIndex(_this.locale),
117
- className: styles.metric,
107
+ customStyles: _this.props.styles.metric,
118
108
  isGroupChild: true
119
109
  }));
120
110
  break;
121
111
 
122
112
  case 'discriminationIndex':
123
- metrics.push( /*#__PURE__*/_react.default.createElement(_index4.default, {
113
+ metrics.push((0, _emotion.jsx)(_index4.default, {
124
114
  key: "discriminationIndex",
125
115
  renderLabel: (0, _formatMessage.default)('Discrimination Index'),
126
116
  renderValue: itemAnalysis.discriminationIndex(_this.locale),
127
- className: styles.metric,
117
+ customStyles: _this.props.styles.metric,
128
118
  isGroupChild: true
129
119
  }));
130
120
  break;
131
121
 
132
122
  case 'rpb':
133
- metrics.push( /*#__PURE__*/_react.default.createElement(_index4.default, {
123
+ metrics.push((0, _emotion.jsx)(_index4.default, {
134
124
  key: "rpb",
135
125
  renderLabel: (0, _formatMessage.default)('RPB'),
136
126
  renderValue: itemAnalysis.pointBiserial(_this.locale),
137
- className: styles.metric,
127
+ customStyles: _this.props.styles.metric,
138
128
  isGroupChild: true
139
129
  }));
140
130
  break;
141
131
 
142
132
  case 'meanEarnedScore':
143
- metrics.push( /*#__PURE__*/_react.default.createElement(_index4.default, {
133
+ metrics.push((0, _emotion.jsx)(_index4.default, {
144
134
  key: "meanEarnedScore",
145
135
  renderLabel: (0, _formatMessage.default)('Mean Earned Score'),
146
136
  renderValue: mean,
147
- className: styles.metric,
137
+ customStyles: _this.props.styles.metric,
148
138
  isGroupChild: true
149
139
  }));
150
140
  break;
@@ -155,70 +145,70 @@ var QuizAndItemAnalysis = (_dec = (0, _uiThemeable.themeable)(_theme.default, st
155
145
  }, {
156
146
  key: "generateQuizAnalysisMetrics",
157
147
  value: function generateQuizAnalysisMetrics(quizAnalysis) {
158
- var metrics = [];
148
+ var _this2 = this;
159
149
 
160
- var formattedElapsedTime = /*#__PURE__*/_react.default.createElement(_index2.default, {
150
+ var metrics = [];
151
+ var formattedElapsedTime = (0, _emotion.jsx)(_index2.default, {
161
152
  seconds: quizAnalysis.meanElapsedTime()
162
153
  });
163
-
164
154
  this.props.quizMetrics.forEach(function (key) {
165
155
  switch (key) {
166
156
  case 'highScore':
167
- metrics.push( /*#__PURE__*/_react.default.createElement(_index4.default, {
157
+ metrics.push((0, _emotion.jsx)(_index4.default, {
168
158
  key: "highScore",
169
159
  renderLabel: (0, _formatMessage.default)('High Score'),
170
160
  renderValue: quizAnalysis.highScore(),
171
- className: styles.metric,
161
+ customStyles: _this2.props.styles.metric,
172
162
  isGroupChild: true
173
163
  }));
174
164
  break;
175
165
 
176
166
  case 'lowScore':
177
- metrics.push( /*#__PURE__*/_react.default.createElement(_index4.default, {
167
+ metrics.push((0, _emotion.jsx)(_index4.default, {
178
168
  key: "lowScore",
179
169
  renderLabel: (0, _formatMessage.default)('Low Score'),
180
170
  renderValue: quizAnalysis.lowScore(),
181
- className: styles.metric,
171
+ customStyles: _this2.props.styles.metric,
182
172
  isGroupChild: true
183
173
  }));
184
174
  break;
185
175
 
186
176
  case 'meanScore':
187
- metrics.push( /*#__PURE__*/_react.default.createElement(_index4.default, {
177
+ metrics.push((0, _emotion.jsx)(_index4.default, {
188
178
  key: "meanScore",
189
179
  renderLabel: (0, _formatMessage.default)('Mean Score'),
190
180
  renderValue: quizAnalysis.meanScore(),
191
- className: styles.metric,
181
+ customStyles: _this2.props.styles.metric,
192
182
  isGroupChild: true
193
183
  }));
194
184
  break;
195
185
 
196
186
  case 'standardDeviation':
197
- metrics.push( /*#__PURE__*/_react.default.createElement(_index4.default, {
187
+ metrics.push((0, _emotion.jsx)(_index4.default, {
198
188
  key: "standardDeviation",
199
189
  renderLabel: (0, _formatMessage.default)('Standard Deviation'),
200
190
  renderValue: quizAnalysis.standardDeviation(),
201
- className: styles.metric,
191
+ customStyles: _this2.props.styles.metric,
202
192
  isGroupChild: true
203
193
  }));
204
194
  break;
205
195
 
206
196
  case 'meanElapsedTime':
207
- metrics.push( /*#__PURE__*/_react.default.createElement(_index4.default, {
197
+ metrics.push((0, _emotion.jsx)(_index4.default, {
208
198
  key: "meanElapsedTime",
209
199
  renderLabel: (0, _formatMessage.default)('Mean Elapsed Time'),
210
200
  renderValue: formattedElapsedTime,
211
- className: styles.metric,
201
+ customStyles: _this2.props.styles.metric,
212
202
  isGroupChild: true
213
203
  }));
214
204
  break;
215
205
 
216
206
  case 'cronbachsAlpha':
217
- metrics.push( /*#__PURE__*/_react.default.createElement(_index4.default, {
207
+ metrics.push((0, _emotion.jsx)(_index4.default, {
218
208
  key: "cronbachsAlpha",
219
209
  renderLabel: (0, _formatMessage.default)('Cronbach\'s Alpha'),
220
210
  renderValue: quizAnalysis.cronbachsAlpha(),
221
- className: styles.metric,
211
+ customStyles: _this2.props.styles.metric,
222
212
  isGroupChild: true
223
213
  }));
224
214
  break;
@@ -229,7 +219,7 @@ var QuizAndItemAnalysis = (_dec = (0, _uiThemeable.themeable)(_theme.default, st
229
219
  }, {
230
220
  key: "renderItemAnalysisRows",
231
221
  value: function renderItemAnalysisRows() {
232
- var _this2 = this;
222
+ var _this3 = this;
233
223
 
234
224
  var _this$props = this.props,
235
225
  animateDelay = _this$props.animateDelay,
@@ -244,16 +234,16 @@ var QuizAndItemAnalysis = (_dec = (0, _uiThemeable.themeable)(_theme.default, st
244
234
  return;
245
235
  }
246
236
 
247
- return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
248
- className: styles.title
249
- }, /*#__PURE__*/_react.default.createElement(_uiHeading.Heading, {
237
+ return (0, _emotion.jsx)("div", null, (0, _emotion.jsx)("div", {
238
+ css: this.props.styles.title
239
+ }, (0, _emotion.jsx)(_uiHeading.Heading, {
250
240
  level: "h3",
251
241
  as: "h2",
252
242
  color: "primary"
253
243
  }, (0, _formatMessage.default)('Item Analysis'))), itemAnalyses.toArray().map(function (itemAnalysis, i) {
254
- var itemMetrics = _this2.generateItemAnalysisMetrics(itemAnalysis);
244
+ var itemMetrics = _this3.generateItemAnalysisMetrics(itemAnalysis);
255
245
 
256
- return /*#__PURE__*/_react.default.createElement(_index3.default, {
246
+ return (0, _emotion.jsx)(_index3.default, {
257
247
  animateDelay: animateDelay,
258
248
  animateDuration: animateDuration,
259
249
  expanded: openRows[itemAnalysis.itemId],
@@ -263,16 +253,16 @@ var QuizAndItemAnalysis = (_dec = (0, _uiThemeable.themeable)(_theme.default, st
263
253
  position: i + 1,
264
254
  quizId: activeQuizId,
265
255
  toggleExpanded: toggleItemAnalysisRowExpanded,
266
- outcomesEndpoint: _this2.props.outcomesEndpoint,
267
- outcomesToken: _this2.props.outcomesToken
256
+ outcomesEndpoint: _this3.props.outcomesEndpoint,
257
+ outcomesToken: _this3.props.outcomesToken
268
258
  }, itemMetrics);
269
259
  }));
270
260
  }
271
261
  }, {
272
262
  key: "renderNotFound",
273
263
  value: function renderNotFound() {
274
- return /*#__PURE__*/_react.default.createElement(_index.default, {
275
- className: styles.emptyText
264
+ return (0, _emotion.jsx)(_index.default, {
265
+ css: this.props.styles.emptyText
276
266
  }, (0, _formatMessage.default)('This report is no longer in use, please use the new Quiz and Item Analysis report. ' + 'Reports generated before { lastReportDate } from this link will be available ' + 'until the summer of 2024. New reports cannot be generated from this link.', {
277
267
  lastReportDate: this.formatDateShort(new Date('2024-01-31'))
278
268
  }));
@@ -286,9 +276,9 @@ var QuizAndItemAnalysis = (_dec = (0, _uiThemeable.themeable)(_theme.default, st
286
276
  quiz = _this$props2.quiz,
287
277
  quizAnalysis = _this$props2.quizAnalysis;
288
278
  var quizMetrics = this.generateQuizAnalysisMetrics(quizAnalysis);
289
- return /*#__PURE__*/_react.default.createElement("div", {
279
+ return (0, _emotion.jsx)("div", {
290
280
  className: "fs-mask"
291
- }, /*#__PURE__*/_react.default.createElement(_QuizAnalysisOverview.default, {
281
+ }, (0, _emotion.jsx)(_QuizAnalysisOverview.default, {
292
282
  animateDelay: animateDelay,
293
283
  animateDuration: animateDuration,
294
284
  quizAnalysis: quizAnalysis,
@@ -325,7 +315,8 @@ var QuizAndItemAnalysis = (_dec = (0, _uiThemeable.themeable)(_theme.default, st
325
315
  getExistingQuiz: _propTypes.default.func.isRequired,
326
316
  getItemAnalyses: _propTypes.default.func.isRequired,
327
317
  getQuizAnalysis: _propTypes.default.func.isRequired,
328
- locale: _propTypes.default.string
318
+ locale: _propTypes.default.string,
319
+ styles: _propTypes.default.object
329
320
  }, _class2.defaultProps = {
330
321
  animateDelay: void 0,
331
322
  animateDuration: void 0,
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var generateStyle = function generateStyle(componentTheme) {
9
+ return {
10
+ title: {
11
+ margin: "".concat(componentTheme.titleMarginTop, " ").concat(componentTheme.titleMarginLeftRight, " ").concat(componentTheme.titleMarginBottom, " ").concat(componentTheme.titleMarginLeftRight)
12
+ },
13
+ emptyText: {
14
+ padding: componentTheme.emptyTextPadding,
15
+ fontSize: componentTheme.emptyTextFontSize,
16
+ textAlign: 'center',
17
+ color: componentTheme.emptyTextColor
18
+ },
19
+ metric: {
20
+ justifyContent: 'center'
21
+ }
22
+ };
23
+ };
24
+
25
+ var _default = generateStyle;
26
+ exports.default = _default;
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = generator;
6
+ exports.default = void 0;
7
7
 
8
- function generator(_ref) {
8
+ var generateComponentTheme = function generateComponentTheme(_ref) {
9
9
  var spacing = _ref.spacing,
10
10
  typography = _ref.typography,
11
11
  colors = _ref.colors;
@@ -17,4 +17,7 @@ function generator(_ref) {
17
17
  emptyTextFontSize: typography.fontSizeLarge,
18
18
  emptyTextColor: colors.ash
19
19
  };
20
- }
20
+ };
21
+
22
+ var _default = generateComponentTheme;
23
+ exports.default = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/quiz-core",
3
- "version": "20.11.4",
3
+ "version": "20.11.5-rc.1+ea577f6df",
4
4
  "license": "MIT",
5
5
  "description": "The Quiz React SDK by Instructure Inc.",
6
6
  "author": "Instructure, Inc. Engineering and Product Design",
@@ -44,11 +44,11 @@
44
44
  "@instructure/emotion": "^8.51.0",
45
45
  "@instructure/grading-utils": "^1.0.0",
46
46
  "@instructure/outcomes-ui": "^3.2.2",
47
- "@instructure/quiz-common": "^20.11.4",
48
- "@instructure/quiz-i18n": "^20.11.4",
49
- "@instructure/quiz-interactions": "^20.11.4",
50
- "@instructure/quiz-number-input": "^20.11.4",
51
- "@instructure/quiz-rce": "^20.11.4",
47
+ "@instructure/quiz-common": "20.11.5-rc.1+ea577f6df",
48
+ "@instructure/quiz-i18n": "20.11.5-rc.1+ea577f6df",
49
+ "@instructure/quiz-interactions": "20.11.5-rc.1+ea577f6df",
50
+ "@instructure/quiz-number-input": "20.11.5-rc.1+ea577f6df",
51
+ "@instructure/quiz-rce": "20.11.5-rc.1+ea577f6df",
52
52
  "@instructure/ui-a11y-content": "^8.51.0",
53
53
  "@instructure/ui-alerts": "^8.51.0",
54
54
  "@instructure/ui-avatar": "^8.51.0",
@@ -112,7 +112,7 @@
112
112
  "file-saver": "~2.0.5",
113
113
  "humps": "^2.0.0",
114
114
  "immutable": "^3.8.1",
115
- "instructure-validations": "^20.11.4",
115
+ "instructure-validations": "20.11.5-rc.1+ea577f6df",
116
116
  "ipaddr.js": "^1.5.4",
117
117
  "isomorphic-fetch": "^2.2.0",
118
118
  "isuuid": "^0.1.0",
@@ -143,7 +143,7 @@
143
143
  "uuid": "^3.2.1"
144
144
  },
145
145
  "devDependencies": {
146
- "@instructure/quiz-scripts": "^20.11.4",
146
+ "@instructure/quiz-scripts": "20.11.4",
147
147
  "@instructure/ui-axe-check": "^8.51.0",
148
148
  "@instructure/ui-babel-preset": "^7.22.1",
149
149
  "@instructure/ui-karma-config": "^7.22.1",
@@ -163,7 +163,7 @@
163
163
  "intl": "^1.2.4",
164
164
  "jquery": "^2.2.3",
165
165
  "most-subject": "^5.3.0",
166
- "quiz-presets": "^20.11.4",
166
+ "quiz-presets": "20.11.5-rc.1+ea577f6df",
167
167
  "react": "^16.8.6",
168
168
  "react-addons-test-utils": "^15.6.2",
169
169
  "react-dom": "^16.8.6",
@@ -179,5 +179,5 @@
179
179
  "publishConfig": {
180
180
  "access": "public"
181
181
  },
182
- "gitHead": "a3f05a42de2442324d4bce7b12f8a86765ea2426"
182
+ "gitHead": "ea577f6dfa9ca8b11ceeccc2fccc608f95911022"
183
183
  }