react-survey-builder 1.0.6 → 1.0.7

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.
@@ -31,7 +31,7 @@
31
31
  "bold": "Bold",
32
32
  "italic": "Italic",
33
33
  "description": "Description",
34
- "help": "Help",
34
+ "help-label": "Help instructions/details that will show up beneath the input field",
35
35
  "correct-answer": "Correct Answer",
36
36
  "populate-options-from-api": "Populate Options from API",
37
37
  "populate": "Populate",
@@ -176,6 +176,7 @@ var TextInput = /*#__PURE__*/function (_React$Component5) {
176
176
  props.className = 'form-control';
177
177
  props.name = this.props.data.field_name;
178
178
  props.placeholder = this.props.data.placeholder;
179
+ props.help = this.props.data.help;
179
180
  if (this.props.mutable) {
180
181
  props.defaultValue = this.props.defaultValue;
181
182
  props.ref = this.inputField;
@@ -198,7 +199,9 @@ var TextInput = /*#__PURE__*/function (_React$Component5) {
198
199
  name: props.name
199
200
  })), /*#__PURE__*/_react["default"].createElement(_reactBootstrap.Form.Control, (0, _extends2["default"])({
200
201
  id: props.name
201
- }, props)))));
202
+ }, props))), props.help ? /*#__PURE__*/_react["default"].createElement(_reactBootstrap.Form.Text, {
203
+ muted: true
204
+ }, props.help) : null));
202
205
  }
203
206
  }]);
204
207
  return TextInput;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-survey-builder",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "A complete survey builder for react.",
5
5
  "main": "lib/index.js",
6
6
  "types": "types/index.d.ts",