react-survey-builder 1.0.26 → 1.0.28

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.
@@ -63,6 +63,7 @@ var ReactSurveyFormFields = function ReactSurveyFormFields(_ref) {
63
63
  authenticity_token = _ref.authenticity_token,
64
64
  task_id = _ref.task_id,
65
65
  buttonClassName = _ref.buttonClassName,
66
+ checkboxButtonClassName = _ref.checkboxButtonClassName,
66
67
  formId = _ref.formId,
67
68
  methods = _ref.methods,
68
69
  _ref$print = _ref.print,
@@ -444,7 +445,8 @@ var ReactSurveyFormFields = function ReactSurveyFormFields(_ref) {
444
445
  return inputs.current[item.fieldName] = c;
445
446
  },
446
447
  isInvalid: invalid,
447
- item: item
448
+ item: item,
449
+ className: item.element === 'RadioButtons' || item.element === 'Checkbox' ? checkboxButtonClassName !== null && checkboxButtonClassName !== void 0 ? checkboxButtonClassName : null : null
448
450
  });
449
451
  }
450
452
  });
@@ -695,7 +697,8 @@ var ReactSurveyFormFields = function ReactSurveyFormFields(_ref) {
695
697
  return inputs.current[item.fieldName] = c;
696
698
  },
697
699
  isInvalid: invalid,
698
- item: item
700
+ item: item,
701
+ className: checkboxButtonClassName !== null && checkboxButtonClassName !== void 0 ? checkboxButtonClassName : null
699
702
  });
700
703
  }
701
704
  });
package/lib/form.js CHANGED
@@ -63,6 +63,7 @@ var ReactSurvey = function ReactSurvey(_ref) {
63
63
  authenticity_token = _ref.authenticity_token,
64
64
  task_id = _ref.task_id,
65
65
  buttonClassName = _ref.buttonClassName,
66
+ checkboxButtonClassName = _ref.checkboxButtonClassName,
66
67
  formId = _ref.formId,
67
68
  _ref$print = _ref.print,
68
69
  print = _ref$print === void 0 ? false : _ref$print;
@@ -452,7 +453,8 @@ var ReactSurvey = function ReactSurvey(_ref) {
452
453
  return inputs.current[item.fieldName] = c;
453
454
  },
454
455
  isInvalid: invalid,
455
- item: item
456
+ item: item,
457
+ className: item.element === 'RadioButtons' || item.element === 'Checkbox' ? checkboxButtonClassName !== null && checkboxButtonClassName !== void 0 ? checkboxButtonClassName : null : null
456
458
  });
457
459
  }
458
460
  });
@@ -703,7 +705,8 @@ var ReactSurvey = function ReactSurvey(_ref) {
703
705
  return inputs.current[item.fieldName] = c;
704
706
  },
705
707
  isInvalid: invalid,
706
- item: item
708
+ item: item,
709
+ className: checkboxButtonClassName !== null && checkboxButtonClassName !== void 0 ? checkboxButtonClassName : null
707
710
  });
708
711
  }
709
712
  });