@instructure/quiz-core 20.36.1-rc.10 → 20.36.1-rc.12

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.
@@ -8,14 +8,13 @@ import { Component } from 'react';
8
8
  import PropTypes from 'prop-types';
9
9
  import ImmutablePropTypes from 'react-immutable-proptypes';
10
10
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
11
- import { FormField } from '@instructure/ui-form-field';
12
11
  import { jsx } from '@instructure/emotion';
13
12
  import { Heading } from '@instructure/ui-heading';
14
13
  import { RichContentInput, RCE_SINGLE_LINE_HEIGHT } from '@instructure/quiz-rce';
15
14
  import { toErrors } from "../../../../util/instUIMessages.js";
16
15
  import { IconUpdownLine } from '@instructure/ui-icons';
17
16
  import { ToggleDetails } from '@instructure/ui-toggle-details';
18
- import { SimpleSelect, TextInput, TOP, withStyleOverrides, FormFieldGroup } from '@instructure/quiz-common';
17
+ import { SimpleSelect, TextInput, TOP, withStyleOverrides, FormFieldGroup, FormField } from '@instructure/quiz-common';
19
18
  import t from '@instructure/quiz-i18n/es/format-message';
20
19
  import generateStyle from "./styles.js";
21
20
  import generateComponentTheme from "./theme.js";
@@ -110,6 +109,7 @@ export var StimulusEditInfo = (_dec = withStyleOverrides(generateStyle, generate
110
109
  }, jsx(TextInput, {
111
110
  messages: this.inputErrors('title'),
112
111
  renderLabel: t('Title'),
112
+ isRequired: true,
113
113
  type: "text",
114
114
  ref: this.props.setTitleRef,
115
115
  onChange: this.onTextInputChange('title'),
@@ -126,13 +126,12 @@ export var StimulusEditInfo = (_dec = withStyleOverrides(generateStyle, generate
126
126
  })), jsx("div", {
127
127
  css: this.props.styles.section
128
128
  }, jsx(FormField, {
129
- id: stimulusBodyId,
130
- label: t('Content')
129
+ id: stimulusBodyId
131
130
  }, jsx(RichContentInput, {
132
131
  actsAsInput: true,
133
- label: "",
132
+ label: t('Content'),
133
+ isRequired: true,
134
134
  messages: this.inputErrors('body'),
135
- placeholder: t('Add Stimulus Content...'),
136
135
  textareaId: textAreaId,
137
136
  defaultContent: stimulus.get('body'),
138
137
  onKeyUp: this.onBodyChange,
@@ -13,7 +13,6 @@ var _react = require("react");
13
13
  var _propTypes = _interopRequireDefault(require("prop-types"));
14
14
  var _reactImmutableProptypes = _interopRequireDefault(require("react-immutable-proptypes"));
15
15
  var _uiA11yContent = require("@instructure/ui-a11y-content");
16
- var _uiFormField = require("@instructure/ui-form-field");
17
16
  var _emotion = require("@instructure/emotion");
18
17
  var _uiHeading = require("@instructure/ui-heading");
19
18
  var _quizRce = require("@instructure/quiz-rce");
@@ -117,6 +116,7 @@ var StimulusEditInfo = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defau
117
116
  }, (0, _emotion.jsx)(_quizCommon.TextInput, {
118
117
  messages: this.inputErrors('title'),
119
118
  renderLabel: (0, _formatMessage.default)('Title'),
119
+ isRequired: true,
120
120
  type: "text",
121
121
  ref: this.props.setTitleRef,
122
122
  onChange: this.onTextInputChange('title'),
@@ -132,14 +132,13 @@ var StimulusEditInfo = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defau
132
132
  "data-automation": "sdk-stimulus-instructions-input"
133
133
  })), (0, _emotion.jsx)("div", {
134
134
  css: this.props.styles.section
135
- }, (0, _emotion.jsx)(_uiFormField.FormField, {
136
- id: stimulusBodyId,
137
- label: (0, _formatMessage.default)('Content')
135
+ }, (0, _emotion.jsx)(_quizCommon.FormField, {
136
+ id: stimulusBodyId
138
137
  }, (0, _emotion.jsx)(_quizRce.RichContentInput, {
139
138
  actsAsInput: true,
140
- label: "",
139
+ label: (0, _formatMessage.default)('Content'),
140
+ isRequired: true,
141
141
  messages: this.inputErrors('body'),
142
- placeholder: (0, _formatMessage.default)('Add Stimulus Content...'),
143
142
  textareaId: textAreaId,
144
143
  defaultContent: stimulus.get('body'),
145
144
  onKeyUp: this.onBodyChange,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/quiz-core",
3
- "version": "20.36.1-rc.10+a472645f2",
3
+ "version": "20.36.1-rc.12+5be21ed72",
4
4
  "license": "MIT",
5
5
  "description": "The Quiz React SDK by Instructure Inc.",
6
6
  "author": "Instructure, Inc. Engineering and Product Design",
@@ -46,11 +46,11 @@
46
46
  "@instructure/emotion": "^8.56.3",
47
47
  "@instructure/grading-utils": "^1.0.0",
48
48
  "@instructure/outcomes-ui": "^3.2.2",
49
- "@instructure/quiz-common": "^20.36.1-rc.10+a472645f2",
50
- "@instructure/quiz-i18n": "^20.36.1-rc.10+a472645f2",
51
- "@instructure/quiz-interactions": "^20.36.1-rc.10+a472645f2",
52
- "@instructure/quiz-number-input": "^20.36.1-rc.10+a472645f2",
53
- "@instructure/quiz-rce": "^20.36.1-rc.10+a472645f2",
49
+ "@instructure/quiz-common": "^20.36.1-rc.12+5be21ed72",
50
+ "@instructure/quiz-i18n": "^20.36.1-rc.12+5be21ed72",
51
+ "@instructure/quiz-interactions": "^20.36.1-rc.12+5be21ed72",
52
+ "@instructure/quiz-number-input": "^20.36.1-rc.12+5be21ed72",
53
+ "@instructure/quiz-rce": "^20.36.1-rc.12+5be21ed72",
54
54
  "@instructure/ui-a11y-content": "^8.56.3",
55
55
  "@instructure/ui-alerts": "^8.56.3",
56
56
  "@instructure/ui-avatar": "^8.56.3",
@@ -114,7 +114,7 @@
114
114
  "file-saver": "~2.0.5",
115
115
  "humps": "^2.0.0",
116
116
  "immutable": "^3.8.1",
117
- "instructure-validations": "^20.36.1-rc.10+a472645f2",
117
+ "instructure-validations": "^20.36.1-rc.12+5be21ed72",
118
118
  "ipaddr.js": "^1.5.4",
119
119
  "isomorphic-fetch": "^2.2.0",
120
120
  "isuuid": "^0.1.0",
@@ -164,7 +164,7 @@
164
164
  "jquery": "^2.2.3",
165
165
  "karma-junit-reporter": "^2.0.1",
166
166
  "most-subject": "^5.3.0",
167
- "quiz-presets": "^20.36.1-rc.10+a472645f2",
167
+ "quiz-presets": "^20.36.1-rc.12+5be21ed72",
168
168
  "react": "^16.8.6",
169
169
  "react-addons-test-utils": "^15.6.2",
170
170
  "react-dom": "^16.8.6",
@@ -180,5 +180,5 @@
180
180
  "publishConfig": {
181
181
  "access": "public"
182
182
  },
183
- "gitHead": "a472645f22013a25f3de9a8d0c499c3b0bcbce33"
183
+ "gitHead": "5be21ed72894f68d2f70c6d86b858ae981d420fb"
184
184
  }