@arquimedes.co/eureka-forms 1.9.129 → 1.9.130

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.
@@ -70,21 +70,20 @@ function ColumnForm(_a) {
70
70
  var form = props.form, formStyle = props.formStyle, customSubmit = props.customSubmit;
71
71
  var _c = useState(false), loading = _c[0], setLoading = _c[1];
72
72
  var getValues = formController.getValues, setValue = formController.setValue, clearErrors = formController.clearErrors, handleSubmit = formController.handleSubmit, control = formController.control, errors = formController.formState.errors, setFocus = formController.setFocus;
73
- return (_jsxs("div", __assign({ className: styles.container, style: { color: formStyle.textColor } }, { children: [loading && _jsx("div", { className: styles.curtain }), _jsx(ColumnSection, __assign({ control: control, errors: errors, getValues: getValues, setValue: setValue, clearErrors: clearErrors, setFocus: setFocus, section: form.sections[form.firstSection] }, props)), _jsx(Terms, __assign({}, props, { onSubmit: onSubmit, formController: formController })), !props.postview && props.editable && (_jsxs(React.Fragment, { children: [!customSubmit && (_jsx("div", __assign({ className: styles.submitBtnContainer }, { children: _jsxs("button", __assign({ "data-testid": "form__submit", className: styles.submitBtn, onClick: function () {
74
- handleSubmit(function (values) { return __awaiter(_this, void 0, void 0, function () {
75
- return __generator(this, function (_a) {
76
- switch (_a.label) {
77
- case 0:
78
- setLoading(true);
79
- return [4 /*yield*/, onSubmit(values)];
80
- case 1:
81
- _a.sent();
82
- setLoading(false);
83
- return [2 /*return*/];
84
- }
85
- });
86
- }); });
87
- }, style: {
73
+ var submit = handleSubmit(function (values) { return __awaiter(_this, void 0, void 0, function () {
74
+ return __generator(this, function (_a) {
75
+ switch (_a.label) {
76
+ case 0:
77
+ setLoading(true);
78
+ return [4 /*yield*/, onSubmit(values)];
79
+ case 1:
80
+ _a.sent();
81
+ setLoading(false);
82
+ return [2 /*return*/];
83
+ }
84
+ });
85
+ }); });
86
+ return (_jsxs("div", __assign({ className: styles.container, style: { color: formStyle.textColor } }, { children: [loading && _jsx("div", { className: styles.curtain }), _jsx(ColumnSection, __assign({ control: control, errors: errors, getValues: getValues, setValue: setValue, clearErrors: clearErrors, setFocus: setFocus, section: form.sections[form.firstSection] }, props)), _jsx(Terms, __assign({}, props, { onSubmit: onSubmit, formController: formController })), !props.postview && props.editable && (_jsxs(React.Fragment, { children: [!customSubmit && (_jsx("div", __assign({ className: styles.submitBtnContainer }, { children: _jsxs("button", __assign({ "data-testid": "form__submit", className: styles.submitBtn, onClick: submit, style: {
88
87
  background: formStyle.primaryColor,
89
88
  color: formStyle.primaryContrastColor,
90
89
  }, disabled: loading }, { children: [_jsx("div", __assign({ style: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arquimedes.co/eureka-forms",
3
3
  "repository": "git://github.com/Arquimede5/Eureka-Forms.git",
4
- "version": "1.9.129",
4
+ "version": "1.9.130",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "build": "react-scripts build",