@instructure/quiz-core 17.40.1-rc.3 → 17.40.1-rc.4

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.
@@ -14,13 +14,14 @@ import QuizInstructionsEdit from "../Edit/index.js";
14
14
  import QuizInstructionsShow from "../Show/index.js";
15
15
  import EditButton from "../../editButton/EditButton.js";
16
16
  var styles = {
17
- componentId: 'fFmWj',
17
+ componentId: 'bIKna',
18
18
  template: function template(theme) {
19
- return "\n\n.fFmWj_qYhL{display:flex;justify-content:space-between}\n\n.fFmWj_blJt{color:".concat(theme.labelColor || 'inherit', ";font-size:").concat(theme.labelFontSize || 'inherit', ";padding:").concat(theme.labelPadding || 'inherit', ";padding-bottom:").concat(theme.labelBottomPadding || 'inherit', ";padding-left:").concat(theme.labelLeftPadding || 'inherit', "}\n\n.fFmWj_UraS{align-self:flex-end;margin-right:").concat(theme.editButtonWrapperRightMargin || 'inherit', "}\n\n@media print{.fFmWj_qYhL{display:none}}");
19
+ return "\n\n.bIKna_qYhL{display:flex;justify-content:space-between}\n\n.bIKna_DlrZ{display:flex;flex-direction:column;flex-grow:1;min-width:0}\n\n.bIKna_blJt{color:".concat(theme.labelColor || 'inherit', ";font-size:").concat(theme.labelFontSize || 'inherit', ";padding:").concat(theme.labelPadding || 'inherit', ";padding-bottom:").concat(theme.labelBottomPadding || 'inherit', ";padding-left:").concat(theme.labelLeftPadding || 'inherit', "}\n\n.bIKna_UraS{align-self:flex-end;margin-right:").concat(theme.editButtonWrapperRightMargin || 'inherit', ";padding-top:").concat(theme.labelPadding || 'inherit', "}\n\n@media print{.bIKna_qYhL{display:none}}");
20
20
  },
21
- 'topRow': 'fFmWj_qYhL',
22
- 'label': 'fFmWj_blJt',
23
- 'editButtonWrapper': 'fFmWj_UraS'
21
+ 'topRow': 'bIKna_qYhL',
22
+ 'flexContainer': 'bIKna_DlrZ',
23
+ 'label': 'bIKna_blJt',
24
+ 'editButtonWrapper': 'bIKna_UraS'
24
25
  };
25
26
  import theme from "./theme.js";
26
27
  import t from '@instructure/quiz-i18n/es/format-message'; // ======================================
@@ -172,22 +173,23 @@ export var QuizInstructions = (_dec = themeable(theme, styles), _dec(_class = (_
172
173
  key: "render",
173
174
  value: function render() {
174
175
  return /*#__PURE__*/React.createElement("div", {
175
- tabIndex: "-1"
176
- }, /*#__PURE__*/React.createElement("div", {
176
+ tabIndex: "-1",
177
177
  className: styles.topRow
178
+ }, /*#__PURE__*/React.createElement("div", {
179
+ className: styles.flexContainer
178
180
  }, /*#__PURE__*/React.createElement("div", {
179
181
  className: styles.label
180
182
  }, /*#__PURE__*/React.createElement(Heading, {
181
183
  level: "h4",
182
184
  as: "h2"
183
- }, t('Instructions'))), !this.props.isEditing && !this.isContentLocked() && /*#__PURE__*/React.createElement("div", {
185
+ }, t('Instructions'))), /*#__PURE__*/React.createElement("div", null, this.editingRender(), this.showRender())), /*#__PURE__*/React.createElement("div", null, !this.props.isEditing && !this.isContentLocked() && /*#__PURE__*/React.createElement("div", {
184
186
  className: styles.editButtonWrapper
185
187
  }, /*#__PURE__*/React.createElement(EditButton, {
186
188
  screenreaderText: t('Edit Instructions'),
187
189
  scrollKey: this.props.scrollKey,
188
190
  onClick: this.toggleEditing,
189
191
  ref: this.setRef('editButton')
190
- }))), this.editingRender(), this.showRender());
192
+ }))));
191
193
  }
192
194
  }]);
193
195
 
@@ -14,15 +14,15 @@ import defer from 'lodash/defer';
14
14
  import classNames from 'classnames';
15
15
  import { themeable } from '@instructure/ui-themeable';
16
16
  var styles = {
17
- componentId: 'cgmZU',
17
+ componentId: 'ciuec',
18
18
  template: function template(theme) {
19
- return "\n\n.cgmZU_eqoe{border-bottom:solid;border-color:".concat(theme.titleEditWrapperBorderColor || 'inherit', ";border-width:").concat(theme.titleEditWrapperBorderWidth || 'inherit', ";box-sizing:border-box;display:flex;flex-direction:column;height:5rem;justify-content:center;padding-left:").concat(theme.titleEditWrapperLeftPadding || 'inherit', ";position:relative;width:100%}\n\n.cgmZU_dwFS{font-family:").concat(theme.titleEditInputFontFamily || 'inherit', ";font-size:").concat(theme.titleEditInputFontSize || 'inherit', ";width:80%}\n\n.cgmZU_dRxD,.cgmZU_dvSU{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;width:100%}\n\n.cgmZU_xXob{border:solid 1px ").concat(theme.errorBorderColor || 'inherit', ";border-radius:").concat(theme.errorBorderBorderRadius || 'inherit', ";margin:").concat(theme.errorBorderMargin || 'inherit', ";padding:").concat(theme.errorBorderPadding || 'inherit', "}");
19
+ return "\n\n.ciuec_eqoe{box-sizing:border-box;display:flex;flex-direction:column;height:5rem;justify-content:center;padding-left:".concat(theme.titleEditWrapperLeftPadding || 'inherit', ";padding-right:").concat(theme.titleEditWrapperRightPadding || 'inherit', ";position:relative;width:100%}\n\n.ciuec_dwFS{font-family:").concat(theme.titleEditInputFontFamily || 'inherit', ";font-size:").concat(theme.titleEditInputFontSize || 'inherit', "}\n\n.ciuec_dRxD,.ciuec_dvSU{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;width:100%}\n\n.ciuec_xXob{border:solid 1px ").concat(theme.errorBorderColor || 'inherit', ";border-radius:").concat(theme.errorBorderBorderRadius || 'inherit', ";margin:").concat(theme.errorBorderMargin || 'inherit', ";padding:").concat(theme.errorBorderPadding || 'inherit', "}");
20
20
  },
21
- 'titleEditWrapper': 'cgmZU_eqoe',
22
- 'titleEditInput': 'cgmZU_dwFS',
23
- 'errorsWrapper': 'cgmZU_dRxD',
24
- 'inputWrapper': 'cgmZU_dvSU',
25
- 'errorBorder': 'cgmZU_xXob'
21
+ 'titleEditWrapper': 'ciuec_eqoe',
22
+ 'titleEditInput': 'ciuec_dwFS',
23
+ 'errorsWrapper': 'ciuec_dRxD',
24
+ 'inputWrapper': 'ciuec_dvSU',
25
+ 'errorBorder': 'ciuec_xXob'
26
26
  };
27
27
  import theme from "./theme.js";
28
28
  import Errors from "../../../../../../common/components/shared/errors/Errors.js";
@@ -4,9 +4,8 @@ export default function generator(_ref) {
4
4
  typography = _ref.typography,
5
5
  borders = _ref.borders;
6
6
  return {
7
- titleEditWrapperBorderWidth: borders.widthSmall,
8
- titleEditWrapperBorderColor: colors.ash,
9
7
  titleEditWrapperLeftPadding: spacing.large,
8
+ titleEditWrapperRightPadding: spacing.large,
10
9
  titleEditInputFontFamily: typography.fontFamily,
11
10
  titleEditInputFontSize: typography.fontSizeXLarge,
12
11
  errorBorderMargin: spacing.xxSmall,
@@ -13,11 +13,11 @@ import { Text } from '@instructure/ui-text';
13
13
  import Overlay from "../../../../../../common/components/shared/overlay/Overlay.js";
14
14
  import makeScrollable from "../../../../../../common/components/shared/functionality/makeScrollable.js";
15
15
  var styles = {
16
- componentId: 'eDyPC',
16
+ componentId: 'bTfJQ',
17
17
  template: function template(theme) {
18
- return "\n\n.eDyPC_VGME{border-bottom:".concat(theme.titleShowWrapperBottomBorder || 'inherit', ";box-sizing:border-box;display:flex;flex-direction:column;height:5rem;justify-content:center;padding-left:").concat(theme.titleShowWrapperLeftPadding || 'inherit', ";position:relative;width:100%}");
18
+ return "\n\n.bTfJQ_VGME{box-sizing:border-box;display:flex;flex-direction:column;height:5rem;justify-content:center;padding-left:".concat(theme.titleShowWrapperLeftPadding || 'inherit', ";position:relative;width:100%}");
19
19
  },
20
- 'titleShowWrapper': 'eDyPC_VGME'
20
+ 'titleShowWrapper': 'bTfJQ_VGME'
21
21
  };
22
22
  import theme from "./theme.js"; // ====================================
23
23
  // this component shows the quiz title
@@ -1,9 +1,6 @@
1
1
  export default function generator(_ref) {
2
- var borders = _ref.borders,
3
- colors = _ref.colors,
4
- spacing = _ref.spacing;
2
+ var spacing = _ref.spacing;
5
3
  return {
6
- titleShowWrapperBottomBorder: "".concat(borders.widthMedium, " ").concat(borders.style, " ").concat(colors.porcelain),
7
4
  titleShowWrapperLeftPadding: spacing.large
8
5
  };
9
6
  }
@@ -15,13 +15,15 @@ import EditButton from "../../editButton/EditButton.js";
15
15
  import QuizTitleEdit from "../Edit/index.js";
16
16
  import QuizTitleShow from "../Show/index.js";
17
17
  var styles = {
18
- componentId: 'fFmWj',
18
+ componentId: 'bpmxb',
19
19
  template: function template(theme) {
20
- return "\n\n.fFmWj_qYhL{display:flex;justify-content:space-between}\n\n.fFmWj_blJt{color:".concat(theme.labelColor || 'inherit', ";font-size:").concat(theme.labelFontSize || 'inherit', ";padding:").concat(theme.labelPadding || 'inherit', ";padding-bottom:").concat(theme.labelBottomPadding || 'inherit', ";padding-left:").concat(theme.labelLeftPadding || 'inherit', "}\n\n.fFmWj_UraS{align-self:flex-end;margin-right:").concat(theme.editButtonWrapperRightMargin || 'inherit', "}\n\n@media print{.fFmWj_qYhL{display:none}}");
20
+ return "\n\n.bpmxb_qYhL{border-bottom:".concat(theme.titleShowWrapperBottomBorder || 'inherit', ";display:flex;justify-content:space-between}\n\n.bpmxb_qYhL.bpmxb_cocM{border-bottom:solid;border-color:").concat(theme.titleEditWrapperBorderColor || 'inherit', ";border-width:").concat(theme.titleEditWrapperBorderWidth || 'inherit', "}\n\n.bpmxb_DlrZ{display:flex;flex-direction:column;flex-grow:1;min-width:0}\n\n.bpmxb_blJt{color:").concat(theme.labelColor || 'inherit', ";font-size:").concat(theme.labelFontSize || 'inherit', ";padding:").concat(theme.labelPadding || 'inherit', ";padding-bottom:").concat(theme.labelBottomPadding || 'inherit', ";padding-left:").concat(theme.labelLeftPadding || 'inherit', "}\n\n.bpmxb_UraS{align-self:flex-end;margin-right:").concat(theme.editButtonWrapperRightMargin || 'inherit', ";padding-top:").concat(theme.labelPadding || 'inherit', "}\n\n@media print{.bpmxb_qYhL{display:none}}");
21
21
  },
22
- 'topRow': 'fFmWj_qYhL',
23
- 'label': 'fFmWj_blJt',
24
- 'editButtonWrapper': 'fFmWj_UraS'
22
+ 'topRow': 'bpmxb_qYhL',
23
+ 'editing': 'bpmxb_cocM',
24
+ 'flexContainer': 'bpmxb_DlrZ',
25
+ 'label': 'bpmxb_blJt',
26
+ 'editButtonWrapper': 'bpmxb_UraS'
25
27
  };
26
28
  import theme from "./theme.js";
27
29
  import t from '@instructure/quiz-i18n/es/format-message'; // ================================
@@ -154,17 +156,19 @@ export var QuizTitlePresenter = (_dec = themeable(theme, styles), _dec(_class =
154
156
  }, {
155
157
  key: "render",
156
158
  value: function render() {
159
+ var classnames = "".concat(styles.topRow, " ").concat(this.props.isEditing ? styles.editing : '');
157
160
  var content = this.props.isEditing ? this.renderEdit() : this.renderShow();
158
161
  return /*#__PURE__*/React.createElement("div", {
159
- tabIndex: "-1"
162
+ tabIndex: "-1",
163
+ className: classnames
160
164
  }, /*#__PURE__*/React.createElement("div", {
161
- className: styles.topRow
165
+ className: styles.flexContainer
162
166
  }, /*#__PURE__*/React.createElement("div", {
163
167
  className: styles.label
164
168
  }, /*#__PURE__*/React.createElement(Heading, {
165
169
  level: "h4",
166
170
  as: "h2"
167
- }, t('Title'))), !this.props.isEditing && !this.isContentLocked() && /*#__PURE__*/React.createElement("div", {
171
+ }, t('Title'))), /*#__PURE__*/React.createElement("div", null, content)), /*#__PURE__*/React.createElement("div", null, !this.props.isEditing && !this.isContentLocked() && /*#__PURE__*/React.createElement("div", {
168
172
  className: styles.editButtonWrapper
169
173
  }, /*#__PURE__*/React.createElement(EditButton, {
170
174
  ref: this.handleEditButtonRef,
@@ -172,7 +176,7 @@ export var QuizTitlePresenter = (_dec = themeable(theme, styles), _dec(_class =
172
176
  scrollKey: this.props.scrollKey,
173
177
  onClick: this.toggleEditing,
174
178
  "data-automation": "sdk-build-edit-title"
175
- }))), content);
179
+ }))));
176
180
  }
177
181
  }]);
178
182
 
@@ -1,5 +1,6 @@
1
1
  export default function generator(_ref) {
2
- var typography = _ref.typography,
2
+ var borders = _ref.borders,
3
+ typography = _ref.typography,
3
4
  colors = _ref.colors,
4
5
  spacing = _ref.spacing;
5
6
  return {
@@ -8,6 +9,9 @@ export default function generator(_ref) {
8
9
  labelBottomPadding: spacing.xxSmall,
9
10
  labelFontSize: typography.fontSizeSmall,
10
11
  labelColor: colors.slate,
11
- editButtonWrapperRightMargin: spacing.large
12
+ editButtonWrapperRightMargin: spacing.large,
13
+ titleShowWrapperBottomBorder: "".concat(borders.widthMedium, " ").concat(borders.style, " ").concat(colors.porcelain),
14
+ titleEditWrapperBorderWidth: borders.widthSmall,
15
+ titleEditWrapperBorderColor: colors.ash
12
16
  };
13
17
  }
@@ -40,13 +40,14 @@ var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/f
40
40
  var _dec, _class, _class2, _temp;
41
41
 
42
42
  var styles = {
43
- componentId: 'fFmWj',
43
+ componentId: 'bIKna',
44
44
  template: function template(theme) {
45
- return "\n\n.fFmWj_qYhL{display:flex;justify-content:space-between}\n\n.fFmWj_blJt{color:".concat(theme.labelColor || 'inherit', ";font-size:").concat(theme.labelFontSize || 'inherit', ";padding:").concat(theme.labelPadding || 'inherit', ";padding-bottom:").concat(theme.labelBottomPadding || 'inherit', ";padding-left:").concat(theme.labelLeftPadding || 'inherit', "}\n\n.fFmWj_UraS{align-self:flex-end;margin-right:").concat(theme.editButtonWrapperRightMargin || 'inherit', "}\n\n@media print{.fFmWj_qYhL{display:none}}");
45
+ return "\n\n.bIKna_qYhL{display:flex;justify-content:space-between}\n\n.bIKna_DlrZ{display:flex;flex-direction:column;flex-grow:1;min-width:0}\n\n.bIKna_blJt{color:".concat(theme.labelColor || 'inherit', ";font-size:").concat(theme.labelFontSize || 'inherit', ";padding:").concat(theme.labelPadding || 'inherit', ";padding-bottom:").concat(theme.labelBottomPadding || 'inherit', ";padding-left:").concat(theme.labelLeftPadding || 'inherit', "}\n\n.bIKna_UraS{align-self:flex-end;margin-right:").concat(theme.editButtonWrapperRightMargin || 'inherit', ";padding-top:").concat(theme.labelPadding || 'inherit', "}\n\n@media print{.bIKna_qYhL{display:none}}");
46
46
  },
47
- 'topRow': 'fFmWj_qYhL',
48
- 'label': 'fFmWj_blJt',
49
- 'editButtonWrapper': 'fFmWj_UraS'
47
+ 'topRow': 'bIKna_qYhL',
48
+ 'flexContainer': 'bIKna_DlrZ',
49
+ 'label': 'bIKna_blJt',
50
+ 'editButtonWrapper': 'bIKna_UraS'
50
51
  };
51
52
  // ======================================
52
53
  // renders the editable quiz instructions
@@ -196,22 +197,23 @@ var QuizInstructions = (_dec = (0, _uiThemeable.themeable)(_theme.default, style
196
197
  key: "render",
197
198
  value: function render() {
198
199
  return /*#__PURE__*/_react.default.createElement("div", {
199
- tabIndex: "-1"
200
- }, /*#__PURE__*/_react.default.createElement("div", {
200
+ tabIndex: "-1",
201
201
  className: styles.topRow
202
+ }, /*#__PURE__*/_react.default.createElement("div", {
203
+ className: styles.flexContainer
202
204
  }, /*#__PURE__*/_react.default.createElement("div", {
203
205
  className: styles.label
204
206
  }, /*#__PURE__*/_react.default.createElement(_uiHeading.Heading, {
205
207
  level: "h4",
206
208
  as: "h2"
207
- }, (0, _formatMessage.default)('Instructions'))), !this.props.isEditing && !this.isContentLocked() && /*#__PURE__*/_react.default.createElement("div", {
209
+ }, (0, _formatMessage.default)('Instructions'))), /*#__PURE__*/_react.default.createElement("div", null, this.editingRender(), this.showRender())), /*#__PURE__*/_react.default.createElement("div", null, !this.props.isEditing && !this.isContentLocked() && /*#__PURE__*/_react.default.createElement("div", {
208
210
  className: styles.editButtonWrapper
209
211
  }, /*#__PURE__*/_react.default.createElement(_EditButton.default, {
210
212
  screenreaderText: (0, _formatMessage.default)('Edit Instructions'),
211
213
  scrollKey: this.props.scrollKey,
212
214
  onClick: this.toggleEditing,
213
215
  ref: this.setRef('editButton')
214
- }))), this.editingRender(), this.showRender());
216
+ }))));
215
217
  }
216
218
  }]);
217
219
  QuizInstructions.displayName = "QuizInstructions";
@@ -42,15 +42,15 @@ var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/f
42
42
  var _dec, _class, _class2, _temp;
43
43
 
44
44
  var styles = {
45
- componentId: 'cgmZU',
45
+ componentId: 'ciuec',
46
46
  template: function template(theme) {
47
- return "\n\n.cgmZU_eqoe{border-bottom:solid;border-color:".concat(theme.titleEditWrapperBorderColor || 'inherit', ";border-width:").concat(theme.titleEditWrapperBorderWidth || 'inherit', ";box-sizing:border-box;display:flex;flex-direction:column;height:5rem;justify-content:center;padding-left:").concat(theme.titleEditWrapperLeftPadding || 'inherit', ";position:relative;width:100%}\n\n.cgmZU_dwFS{font-family:").concat(theme.titleEditInputFontFamily || 'inherit', ";font-size:").concat(theme.titleEditInputFontSize || 'inherit', ";width:80%}\n\n.cgmZU_dRxD,.cgmZU_dvSU{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;width:100%}\n\n.cgmZU_xXob{border:solid 1px ").concat(theme.errorBorderColor || 'inherit', ";border-radius:").concat(theme.errorBorderBorderRadius || 'inherit', ";margin:").concat(theme.errorBorderMargin || 'inherit', ";padding:").concat(theme.errorBorderPadding || 'inherit', "}");
47
+ return "\n\n.ciuec_eqoe{box-sizing:border-box;display:flex;flex-direction:column;height:5rem;justify-content:center;padding-left:".concat(theme.titleEditWrapperLeftPadding || 'inherit', ";padding-right:").concat(theme.titleEditWrapperRightPadding || 'inherit', ";position:relative;width:100%}\n\n.ciuec_dwFS{font-family:").concat(theme.titleEditInputFontFamily || 'inherit', ";font-size:").concat(theme.titleEditInputFontSize || 'inherit', "}\n\n.ciuec_dRxD,.ciuec_dvSU{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;width:100%}\n\n.ciuec_xXob{border:solid 1px ").concat(theme.errorBorderColor || 'inherit', ";border-radius:").concat(theme.errorBorderBorderRadius || 'inherit', ";margin:").concat(theme.errorBorderMargin || 'inherit', ";padding:").concat(theme.errorBorderPadding || 'inherit', "}");
48
48
  },
49
- 'titleEditWrapper': 'cgmZU_eqoe',
50
- 'titleEditInput': 'cgmZU_dwFS',
51
- 'errorsWrapper': 'cgmZU_dRxD',
52
- 'inputWrapper': 'cgmZU_dvSU',
53
- 'errorBorder': 'cgmZU_xXob'
49
+ 'titleEditWrapper': 'ciuec_eqoe',
50
+ 'titleEditInput': 'ciuec_dwFS',
51
+ 'errorsWrapper': 'ciuec_dRxD',
52
+ 'inputWrapper': 'ciuec_dvSU',
53
+ 'errorBorder': 'ciuec_xXob'
54
54
  };
55
55
  // =================================
56
56
  // once editing is toggled this div
@@ -11,9 +11,8 @@ function generator(_ref) {
11
11
  typography = _ref.typography,
12
12
  borders = _ref.borders;
13
13
  return {
14
- titleEditWrapperBorderWidth: borders.widthSmall,
15
- titleEditWrapperBorderColor: colors.ash,
16
14
  titleEditWrapperLeftPadding: spacing.large,
15
+ titleEditWrapperRightPadding: spacing.large,
17
16
  titleEditInputFontFamily: typography.fontFamily,
18
17
  titleEditInputFontSize: typography.fontSizeXLarge,
19
18
  errorBorderMargin: spacing.xxSmall,
@@ -36,11 +36,11 @@ var _theme = _interopRequireDefault(require("./theme.js"));
36
36
  var _dec, _class, _class2, _temp;
37
37
 
38
38
  var styles = {
39
- componentId: 'eDyPC',
39
+ componentId: 'bTfJQ',
40
40
  template: function template(theme) {
41
- return "\n\n.eDyPC_VGME{border-bottom:".concat(theme.titleShowWrapperBottomBorder || 'inherit', ";box-sizing:border-box;display:flex;flex-direction:column;height:5rem;justify-content:center;padding-left:").concat(theme.titleShowWrapperLeftPadding || 'inherit', ";position:relative;width:100%}");
41
+ return "\n\n.bTfJQ_VGME{box-sizing:border-box;display:flex;flex-direction:column;height:5rem;justify-content:center;padding-left:".concat(theme.titleShowWrapperLeftPadding || 'inherit', ";position:relative;width:100%}");
42
42
  },
43
- 'titleShowWrapper': 'eDyPC_VGME'
43
+ 'titleShowWrapper': 'bTfJQ_VGME'
44
44
  };
45
45
  // ====================================
46
46
  // this component shows the quiz title
@@ -6,11 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = generator;
7
7
 
8
8
  function generator(_ref) {
9
- var borders = _ref.borders,
10
- colors = _ref.colors,
11
- spacing = _ref.spacing;
9
+ var spacing = _ref.spacing;
12
10
  return {
13
- titleShowWrapperBottomBorder: "".concat(borders.widthMedium, " ").concat(borders.style, " ").concat(colors.porcelain),
14
11
  titleShowWrapperLeftPadding: spacing.large
15
12
  };
16
13
  }
@@ -42,13 +42,15 @@ var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/f
42
42
  var _dec, _class, _class2, _temp;
43
43
 
44
44
  var styles = {
45
- componentId: 'fFmWj',
45
+ componentId: 'bpmxb',
46
46
  template: function template(theme) {
47
- return "\n\n.fFmWj_qYhL{display:flex;justify-content:space-between}\n\n.fFmWj_blJt{color:".concat(theme.labelColor || 'inherit', ";font-size:").concat(theme.labelFontSize || 'inherit', ";padding:").concat(theme.labelPadding || 'inherit', ";padding-bottom:").concat(theme.labelBottomPadding || 'inherit', ";padding-left:").concat(theme.labelLeftPadding || 'inherit', "}\n\n.fFmWj_UraS{align-self:flex-end;margin-right:").concat(theme.editButtonWrapperRightMargin || 'inherit', "}\n\n@media print{.fFmWj_qYhL{display:none}}");
47
+ return "\n\n.bpmxb_qYhL{border-bottom:".concat(theme.titleShowWrapperBottomBorder || 'inherit', ";display:flex;justify-content:space-between}\n\n.bpmxb_qYhL.bpmxb_cocM{border-bottom:solid;border-color:").concat(theme.titleEditWrapperBorderColor || 'inherit', ";border-width:").concat(theme.titleEditWrapperBorderWidth || 'inherit', "}\n\n.bpmxb_DlrZ{display:flex;flex-direction:column;flex-grow:1;min-width:0}\n\n.bpmxb_blJt{color:").concat(theme.labelColor || 'inherit', ";font-size:").concat(theme.labelFontSize || 'inherit', ";padding:").concat(theme.labelPadding || 'inherit', ";padding-bottom:").concat(theme.labelBottomPadding || 'inherit', ";padding-left:").concat(theme.labelLeftPadding || 'inherit', "}\n\n.bpmxb_UraS{align-self:flex-end;margin-right:").concat(theme.editButtonWrapperRightMargin || 'inherit', ";padding-top:").concat(theme.labelPadding || 'inherit', "}\n\n@media print{.bpmxb_qYhL{display:none}}");
48
48
  },
49
- 'topRow': 'fFmWj_qYhL',
50
- 'label': 'fFmWj_blJt',
51
- 'editButtonWrapper': 'fFmWj_UraS'
49
+ 'topRow': 'bpmxb_qYhL',
50
+ 'editing': 'bpmxb_cocM',
51
+ 'flexContainer': 'bpmxb_DlrZ',
52
+ 'label': 'bpmxb_blJt',
53
+ 'editButtonWrapper': 'bpmxb_UraS'
52
54
  };
53
55
  // ================================
54
56
  // renders the editable quiz title
@@ -179,17 +181,19 @@ var QuizTitlePresenter = (_dec = (0, _uiThemeable.themeable)(_theme.default, sty
179
181
  }, {
180
182
  key: "render",
181
183
  value: function render() {
184
+ var classnames = "".concat(styles.topRow, " ").concat(this.props.isEditing ? styles.editing : '');
182
185
  var content = this.props.isEditing ? this.renderEdit() : this.renderShow();
183
186
  return /*#__PURE__*/_react.default.createElement("div", {
184
- tabIndex: "-1"
187
+ tabIndex: "-1",
188
+ className: classnames
185
189
  }, /*#__PURE__*/_react.default.createElement("div", {
186
- className: styles.topRow
190
+ className: styles.flexContainer
187
191
  }, /*#__PURE__*/_react.default.createElement("div", {
188
192
  className: styles.label
189
193
  }, /*#__PURE__*/_react.default.createElement(_uiHeading.Heading, {
190
194
  level: "h4",
191
195
  as: "h2"
192
- }, (0, _formatMessage.default)('Title'))), !this.props.isEditing && !this.isContentLocked() && /*#__PURE__*/_react.default.createElement("div", {
196
+ }, (0, _formatMessage.default)('Title'))), /*#__PURE__*/_react.default.createElement("div", null, content)), /*#__PURE__*/_react.default.createElement("div", null, !this.props.isEditing && !this.isContentLocked() && /*#__PURE__*/_react.default.createElement("div", {
193
197
  className: styles.editButtonWrapper
194
198
  }, /*#__PURE__*/_react.default.createElement(_EditButton.default, {
195
199
  ref: this.handleEditButtonRef,
@@ -197,7 +201,7 @@ var QuizTitlePresenter = (_dec = (0, _uiThemeable.themeable)(_theme.default, sty
197
201
  scrollKey: this.props.scrollKey,
198
202
  onClick: this.toggleEditing,
199
203
  "data-automation": "sdk-build-edit-title"
200
- }))), content);
204
+ }))));
201
205
  }
202
206
  }]);
203
207
  QuizTitlePresenter.displayName = "QuizTitlePresenter";
@@ -6,7 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = generator;
7
7
 
8
8
  function generator(_ref) {
9
- var typography = _ref.typography,
9
+ var borders = _ref.borders,
10
+ typography = _ref.typography,
10
11
  colors = _ref.colors,
11
12
  spacing = _ref.spacing;
12
13
  return {
@@ -15,6 +16,9 @@ function generator(_ref) {
15
16
  labelBottomPadding: spacing.xxSmall,
16
17
  labelFontSize: typography.fontSizeSmall,
17
18
  labelColor: colors.slate,
18
- editButtonWrapperRightMargin: spacing.large
19
+ editButtonWrapperRightMargin: spacing.large,
20
+ titleShowWrapperBottomBorder: "".concat(borders.widthMedium, " ").concat(borders.style, " ").concat(colors.porcelain),
21
+ titleEditWrapperBorderWidth: borders.widthSmall,
22
+ titleEditWrapperBorderColor: colors.ash
19
23
  };
20
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/quiz-core",
3
- "version": "17.40.1-rc.3+6a8b0e644",
3
+ "version": "17.40.1-rc.4+63e606a59",
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.2",
44
- "@instructure/quiz-common": "17.40.1-rc.3+6a8b0e644",
45
- "@instructure/quiz-i18n": "17.40.1-rc.3+6a8b0e644",
46
- "@instructure/quiz-interactions": "17.40.1-rc.3+6a8b0e644",
47
- "@instructure/quiz-number-input": "17.40.1-rc.3+6a8b0e644",
48
- "@instructure/quiz-rce": "17.40.1-rc.3+6a8b0e644",
44
+ "@instructure/quiz-common": "17.40.1-rc.4+63e606a59",
45
+ "@instructure/quiz-i18n": "17.40.1-rc.4+63e606a59",
46
+ "@instructure/quiz-interactions": "17.40.1-rc.4+63e606a59",
47
+ "@instructure/quiz-number-input": "17.40.1-rc.4+63e606a59",
48
+ "@instructure/quiz-rce": "17.40.1-rc.4+63e606a59",
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.40.1-rc.3+6a8b0e644",
109
+ "instructure-validations": "17.40.1-rc.4+63e606a59",
110
110
  "ipaddr.js": "^1.5.4",
111
111
  "isomorphic-fetch": "^2.2.0",
112
112
  "isuuid": "^0.1.0",
@@ -137,7 +137,7 @@
137
137
  "uuid": "^3.2.1"
138
138
  },
139
139
  "devDependencies": {
140
- "@instructure/quiz-scripts": "17.40.1-rc.3+6a8b0e644",
140
+ "@instructure/quiz-scripts": "17.40.1-rc.4+63e606a59",
141
141
  "@instructure/ui-axe-check": "^7.20.0",
142
142
  "@instructure/ui-babel-preset": "^7.20.0",
143
143
  "@instructure/ui-karma-config": "^7.20.0",
@@ -156,7 +156,7 @@
156
156
  "intl": "^1.2.4",
157
157
  "jquery": "^2.2.3",
158
158
  "most-subject": "^5.3.0",
159
- "quiz-presets": "17.40.1-rc.3+6a8b0e644",
159
+ "quiz-presets": "17.40.1-rc.4+63e606a59",
160
160
  "react": "^16.8.6",
161
161
  "react-addons-test-utils": "^15.6.2",
162
162
  "react-dom": "^16.8.6",
@@ -172,5 +172,5 @@
172
172
  "publishConfig": {
173
173
  "access": "public"
174
174
  },
175
- "gitHead": "6a8b0e644cc12dc6c5388acf9959b151020ba630"
175
+ "gitHead": "63e606a59de7030438443d640ebf54fd021ae235"
176
176
  }