@instructure/quiz-core 17.64.1-rc.1 → 17.64.1-rc.2

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.
@@ -9,18 +9,19 @@ var _dec, _class, _class2, _temp;
9
9
  import { Heading } from '@instructure/ui-heading';
10
10
  import React, { Component } from 'react';
11
11
  var styles = {
12
- componentId: 'bnyej',
12
+ componentId: 'bIeGi',
13
13
  template: function template(theme) {
14
- return "\n\n.bnyej_eKXQ{padding:".concat(theme.cardWrapperPadding || 'inherit', ";position:relative}\n\n.bnyej_bwlc{align-items:flex-start;gap:24px;justify-content:space-between;row-gap:32px}\n\n.bnyej_bwlc,.bnyej_bqdH{display:flex;flex-direction:row;flex-wrap:wrap}\n\n.bnyej_bqdH{align-items:center;row-gap:24px}\n\n.bnyej_NpIG{position:absolute;right:").concat(theme.viewPaddingRight || 'inherit', ";top:").concat(theme.viewPaddingTop || 'inherit', "}\n\n.bnyej_eoBe{font-size:").concat(theme.metricNumberContextFontSize || 'inherit', ";font-weight:").concat(theme.metricNumberContextFontWeight || 'inherit', "}\n\n.bnyej_fFDJ{display:none}\n\n.bnyej_esVF{min-height:48px}\n\n.bnyej_eTZq{position:relative}\n\n.bnyej_eTZq:after{background:linear-gradient(180deg,hsla(0,0%,100%,0),#fff);content:\"\";height:48px;left:0;position:absolute;top:0;width:100%}");
14
+ return "\n\n.bIeGi_eKXQ{padding:".concat(theme.cardWrapperPadding || 'inherit', ";position:relative}\n\n.bIeGi_bwlc{align-items:flex-start;gap:24px;justify-content:space-between;row-gap:32px}\n\n.bIeGi_bwlc,.bIeGi_bqdH{display:flex;flex-direction:row;flex-wrap:wrap}\n\n.bIeGi_bqdH{align-items:center;row-gap:24px}\n\n.bIeGi_NpIG{position:absolute;right:").concat(theme.viewPaddingRight || 'inherit', ";top:").concat(theme.viewPaddingTop || 'inherit', "}\n\n.bIeGi_eoBe{font-size:").concat(theme.metricNumberContextFontSize || 'inherit', ";font-weight:").concat(theme.metricNumberContextFontWeight || 'inherit', "}\n\n.bIeGi_fFDJ{display:none}\n\n.bIeGi_esVF{min-height:48px}\n\n.bIeGi_eTZq{position:relative}\n\n.bIeGi_eTZq:after{background:linear-gradient(180deg,hsla(0,0%,100%,0),#fff);content:\"\";height:48px;left:0;position:absolute;top:0;width:100%}\n\n.bIeGi_fkgx{max-width:100%;width:calc(25% + 350px)}");
15
15
  },
16
- 'cardWrapper': 'bnyej_eKXQ',
17
- 'itemCardInnerContainer': 'bnyej_bwlc',
18
- 'metricsContainer': 'bnyej_bqdH',
19
- 'itemCardToggleButtonWrapper': 'bnyej_NpIG',
20
- 'metricNumberContext': 'bnyej_eoBe',
21
- 'hiddenMetrics': 'bnyej_fFDJ',
22
- 'itemBody': 'bnyej_esVF',
23
- 'hiddenItemBody': 'bnyej_eTZq'
16
+ 'cardWrapper': 'bIeGi_eKXQ',
17
+ 'itemCardInnerContainer': 'bIeGi_bwlc',
18
+ 'metricsContainer': 'bIeGi_bqdH',
19
+ 'itemCardToggleButtonWrapper': 'bIeGi_NpIG',
20
+ 'metricNumberContext': 'bIeGi_eoBe',
21
+ 'hiddenMetrics': 'bIeGi_fFDJ',
22
+ 'itemBody': 'bIeGi_esVF',
23
+ 'hiddenItemBody': 'bIeGi_eTZq',
24
+ 'answerSummaryTableContainer': 'bIeGi_fkgx'
24
25
  };
25
26
  import t from '@instructure/quiz-i18n/es/format-message';
26
27
  import ExpandButton from "../../../../../common/components/shared/ExpandButton/index.js";
@@ -183,14 +184,16 @@ export var NewItemAnalysis = (_dec = themeable(theme, styles), _dec(_class = (_t
183
184
  _this.renderAnswerSummaryTable = function (itemId, answer_summary, isSupportedTable, metricsClass) {
184
185
  return /*#__PURE__*/React.createElement("div", {
185
186
  className: metricsClass
187
+ }, /*#__PURE__*/React.createElement("div", {
188
+ className: styles.answerSummaryTableContainer
186
189
  }, isSupportedTable && /*#__PURE__*/React.createElement(Flex, {
187
190
  direction: "row"
188
191
  }, /*#__PURE__*/React.createElement(Flex.Item, {
189
- size: "55%"
192
+ shouldGrow: true
190
193
  }, /*#__PURE__*/React.createElement(AnswerSummaryTable, {
191
194
  itemId: itemId,
192
195
  answerSummary: answer_summary
193
- }))));
196
+ })))));
194
197
  };
195
198
 
196
199
  return _this;
@@ -56,18 +56,19 @@ var _uiFlex = require("@instructure/ui-flex");
56
56
  var _dec, _class, _class2, _temp;
57
57
 
58
58
  var styles = {
59
- componentId: 'bnyej',
59
+ componentId: 'bIeGi',
60
60
  template: function template(theme) {
61
- return "\n\n.bnyej_eKXQ{padding:".concat(theme.cardWrapperPadding || 'inherit', ";position:relative}\n\n.bnyej_bwlc{align-items:flex-start;gap:24px;justify-content:space-between;row-gap:32px}\n\n.bnyej_bwlc,.bnyej_bqdH{display:flex;flex-direction:row;flex-wrap:wrap}\n\n.bnyej_bqdH{align-items:center;row-gap:24px}\n\n.bnyej_NpIG{position:absolute;right:").concat(theme.viewPaddingRight || 'inherit', ";top:").concat(theme.viewPaddingTop || 'inherit', "}\n\n.bnyej_eoBe{font-size:").concat(theme.metricNumberContextFontSize || 'inherit', ";font-weight:").concat(theme.metricNumberContextFontWeight || 'inherit', "}\n\n.bnyej_fFDJ{display:none}\n\n.bnyej_esVF{min-height:48px}\n\n.bnyej_eTZq{position:relative}\n\n.bnyej_eTZq:after{background:linear-gradient(180deg,hsla(0,0%,100%,0),#fff);content:\"\";height:48px;left:0;position:absolute;top:0;width:100%}");
61
+ return "\n\n.bIeGi_eKXQ{padding:".concat(theme.cardWrapperPadding || 'inherit', ";position:relative}\n\n.bIeGi_bwlc{align-items:flex-start;gap:24px;justify-content:space-between;row-gap:32px}\n\n.bIeGi_bwlc,.bIeGi_bqdH{display:flex;flex-direction:row;flex-wrap:wrap}\n\n.bIeGi_bqdH{align-items:center;row-gap:24px}\n\n.bIeGi_NpIG{position:absolute;right:").concat(theme.viewPaddingRight || 'inherit', ";top:").concat(theme.viewPaddingTop || 'inherit', "}\n\n.bIeGi_eoBe{font-size:").concat(theme.metricNumberContextFontSize || 'inherit', ";font-weight:").concat(theme.metricNumberContextFontWeight || 'inherit', "}\n\n.bIeGi_fFDJ{display:none}\n\n.bIeGi_esVF{min-height:48px}\n\n.bIeGi_eTZq{position:relative}\n\n.bIeGi_eTZq:after{background:linear-gradient(180deg,hsla(0,0%,100%,0),#fff);content:\"\";height:48px;left:0;position:absolute;top:0;width:100%}\n\n.bIeGi_fkgx{max-width:100%;width:calc(25% + 350px)}");
62
62
  },
63
- 'cardWrapper': 'bnyej_eKXQ',
64
- 'itemCardInnerContainer': 'bnyej_bwlc',
65
- 'metricsContainer': 'bnyej_bqdH',
66
- 'itemCardToggleButtonWrapper': 'bnyej_NpIG',
67
- 'metricNumberContext': 'bnyej_eoBe',
68
- 'hiddenMetrics': 'bnyej_fFDJ',
69
- 'itemBody': 'bnyej_esVF',
70
- 'hiddenItemBody': 'bnyej_eTZq'
63
+ 'cardWrapper': 'bIeGi_eKXQ',
64
+ 'itemCardInnerContainer': 'bIeGi_bwlc',
65
+ 'metricsContainer': 'bIeGi_bqdH',
66
+ 'itemCardToggleButtonWrapper': 'bIeGi_NpIG',
67
+ 'metricNumberContext': 'bIeGi_eoBe',
68
+ 'hiddenMetrics': 'bIeGi_fFDJ',
69
+ 'itemBody': 'bIeGi_esVF',
70
+ 'hiddenItemBody': 'bIeGi_eTZq',
71
+ 'answerSummaryTableContainer': 'bIeGi_fkgx'
71
72
  };
72
73
  var supportedTables = ['choice', 'true-false', 'multi-answer'];
73
74
  var NewItemAnalysis = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
@@ -215,14 +216,16 @@ var NewItemAnalysis = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles
215
216
  _this.renderAnswerSummaryTable = function (itemId, answer_summary, isSupportedTable, metricsClass) {
216
217
  return /*#__PURE__*/_react.default.createElement("div", {
217
218
  className: metricsClass
219
+ }, /*#__PURE__*/_react.default.createElement("div", {
220
+ className: styles.answerSummaryTableContainer
218
221
  }, isSupportedTable && /*#__PURE__*/_react.default.createElement(_uiFlex.Flex, {
219
222
  direction: "row"
220
223
  }, /*#__PURE__*/_react.default.createElement(_uiFlex.Flex.Item, {
221
- size: "55%"
224
+ shouldGrow: true
222
225
  }, /*#__PURE__*/_react.default.createElement(_index5.default, {
223
226
  itemId: itemId,
224
227
  answerSummary: answer_summary
225
- }))));
228
+ })))));
226
229
  };
227
230
 
228
231
  return _this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/quiz-core",
3
- "version": "17.64.1-rc.1+d9504945a",
3
+ "version": "17.64.1-rc.2+819871daa",
4
4
  "license": "MIT",
5
5
  "description": "The Quiz React SDK by Instructure Inc.",
6
6
  "author": "Instructure, Inc. Engineering and Product Design",
@@ -41,11 +41,11 @@
41
41
  ],
42
42
  "dependencies": {
43
43
  "@instructure/outcomes-ui": "^2.1.9",
44
- "@instructure/quiz-common": "17.64.1-rc.1+d9504945a",
45
- "@instructure/quiz-i18n": "17.64.1-rc.1+d9504945a",
46
- "@instructure/quiz-interactions": "17.64.1-rc.1+d9504945a",
47
- "@instructure/quiz-number-input": "17.64.1-rc.1+d9504945a",
48
- "@instructure/quiz-rce": "17.64.1-rc.1+d9504945a",
44
+ "@instructure/quiz-common": "17.64.1-rc.2+819871daa",
45
+ "@instructure/quiz-i18n": "17.64.1-rc.2+819871daa",
46
+ "@instructure/quiz-interactions": "17.64.1-rc.2+819871daa",
47
+ "@instructure/quiz-number-input": "17.64.1-rc.2+819871daa",
48
+ "@instructure/quiz-rce": "17.64.1-rc.2+819871daa",
49
49
  "@instructure/ui-a11y-content": "^7.20.0",
50
50
  "@instructure/ui-alerts": "^7.20.0",
51
51
  "@instructure/ui-avatar": "^7.20.0",
@@ -106,7 +106,7 @@
106
106
  "eventemitter3": "^3.1.0",
107
107
  "humps": "^2.0.0",
108
108
  "immutable": "^3.8.1",
109
- "instructure-validations": "17.64.1-rc.1+d9504945a",
109
+ "instructure-validations": "17.64.1-rc.2+819871daa",
110
110
  "ipaddr.js": "^1.5.4",
111
111
  "isomorphic-fetch": "^2.2.0",
112
112
  "isuuid": "^0.1.0",
@@ -157,7 +157,7 @@
157
157
  "intl": "^1.2.4",
158
158
  "jquery": "^2.2.3",
159
159
  "most-subject": "^5.3.0",
160
- "quiz-presets": "17.64.1-rc.1+d9504945a",
160
+ "quiz-presets": "17.64.1-rc.2+819871daa",
161
161
  "react": "^16.8.6",
162
162
  "react-addons-test-utils": "^15.6.2",
163
163
  "react-dom": "^16.8.6",
@@ -173,5 +173,5 @@
173
173
  "publishConfig": {
174
174
  "access": "public"
175
175
  },
176
- "gitHead": "d9504945ac55a3f72b36440a0b2636e59e881bdc"
176
+ "gitHead": "819871daafc1c68e4691ee2efbdfe6108144329e"
177
177
  }