@experium/findy-form 1.2.15 → 1.2.19

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.
@@ -92,11 +92,7 @@ var getConstructorOpd = function getConstructorOpd(opdSettings, language) {
92
92
  return res + (cur.text || '');
93
93
 
94
94
  case 'checkbox':
95
- return "".concat(res, "<p>\n <input type=\"checkbox\" id=\"", "checkbox-".concat(cur.id), "\" />\n <label htmlFor=\"", "checkbox-".concat(cur.id), "\">").concat(cur.required ? /*#__PURE__*/_react["default"].createElement("span", {
96
- style: {
97
- color: 'red'
98
- }
99
- }, "* ") : '').concat(cur.label || '', "</label>\n </p>");
95
+ return "".concat(res, "<p>\n <input type=\"checkbox\" id=\"", "checkbox-".concat(cur.id), "\" />\n <label htmlFor=\"", "checkbox-".concat(cur.id), "\">").concat(cur.required ? '<span style="color: red;">* </span>' : '').concat(cur.label || '').concat(cur.label || '', "</label>\n </p>");
100
96
 
101
97
  case 'opdCheckbox':
102
98
  return "".concat(res, "<p>\n <input type=\"checkbox\" id=\"").concat(cur.opdType, "\" />\n <label htmlFor=\"").concat(cur.opdType, "\">").concat((0, _ramda.path)([cur.opdType, 'required'], opdSettings) ? '<span style="color: red;">* </span>' : '').concat((0, _ramda.pathOr)('', [cur.opdType, 'label'], opdSettings), "</label>\n </p>");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experium/findy-form",
3
- "version": "1.2.15",
3
+ "version": "1.2.19",
4
4
  "main": "./lib/index.js",
5
5
  "homepage": "https://experium.github.io/findy-form",
6
6
  "repository": "https://github.com/experium/findy-form",
@@ -25,7 +25,7 @@ const getConstructorOpd = (opdSettings, language) => {
25
25
  case 'checkbox':
26
26
  return `${res}<p>
27
27
  <input type="checkbox" id="${`checkbox-${cur.id}`}" />
28
- <label htmlFor="${`checkbox-${cur.id}`}">${cur.required ? <span style={{ color: 'red' }}>* </span> : ''}${cur.label || ''}</label>
28
+ <label htmlFor="${`checkbox-${cur.id}`}">${cur.required ? '<span style="color: red;">* </span>' : ''}${cur.label || ''}${cur.label || ''}</label>
29
29
  </p>`;
30
30
  case 'opdCheckbox':
31
31
  return `${res}<p>