@arquimedes.co/eureka-forms 2.0.41 → 2.0.42

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.
@@ -38,10 +38,12 @@ function CheckBoxStep(_a) {
38
38
  return (_jsx(StepComponent, { editable: editable, step: subStep }, idStep));
39
39
  }) }));
40
40
  };
41
- return (_jsxs(StepFillerContainer, __assign({ step: step }, { children: [_jsxs(MaterialInputContainer, __assign({ step: step, editable: editable }, { children: [_jsxs("div", __assign({ className: styles.labelCheckBoxContainer }, { children: [step.label && (_jsxs("div", __assign({ className: styles.checkboxLbl }, { children: [step.label, step.required ? ' *' : '', ":"] }))), _jsx(RoundedCheckBox, __assign({}, field, { inputRef: ref, onChange: onChange, "data-testid": step.id, padding: "0px", size: "1.6rem", error: !!error, cantEdit: !editable || postview, checkedColor: formStyle.primaryColor, uncheckedColor: formStyle.outlineColor, checked: value }))] })), (step.description || !!error) && (_jsx("div", __assign({ className: styles.descriptionPar, style: {
42
- color: error
43
- ? formStyle.errorColor
44
- : formStyle.descriptionTextColor,
45
- } }, { children: error ? 'Este campo es obligatorio' : step.description })))] })), renderNested()] })));
41
+ return (_jsxs(StepFillerContainer, __assign({ step: step }, { children: [_jsx(MaterialInputContainer, __assign({ step: step, editable: editable }, { children: _jsxs("div", __assign({ className: styles.container }, { children: [_jsxs("div", __assign({ className: styles.labelCheckBoxContainer }, { children: [step.label && (_jsxs("div", __assign({ className: styles.checkboxLbl }, { children: [step.label, step.required ? ' *' : '', ":"] }))), _jsx(RoundedCheckBox, __assign({}, field, { inputRef: ref, onChange: onChange, "data-testid": step.id, padding: "0px", size: "1.6rem", error: !!error, cantEdit: !editable || postview, checkedColor: formStyle.primaryColor, uncheckedColor: formStyle.outlineColor, checked: value }))] })), (step.description || !!error) && (_jsx("div", __assign({ className: styles.descriptionPar, style: {
42
+ color: error
43
+ ? formStyle.errorColor
44
+ : formStyle.descriptionTextColor,
45
+ } }, { children: error
46
+ ? 'Este campo es obligatorio'
47
+ : step.description })))] })) })), renderNested()] })));
46
48
  }
47
49
  export default CheckBoxStep;
@@ -1,3 +1,7 @@
1
+ .container {
2
+ display: flex;
3
+ flex-direction: column;
4
+ }
1
5
  .checkboxLbl {
2
6
  font-size: 18px;
3
7
  margin-right: 10px;
@@ -29,9 +29,9 @@ function StepFiller(_a) {
29
29
  if (step.maxSize && step.maxSize < form.size.blockNum) {
30
30
  return (_jsxs("div", __assign({ className: styles.firstLvlContainer, style: {
31
31
  width: currentBreakPoint <= step.size ? '100%' : 'fit-content',
32
- } }, { children: [_jsx(SizeChangeContext.Provider, __assign({ value: handleSizeChange }, { children: children })), _jsx("div", { className: styles.smallSeparator, style: {
32
+ } }, { children: [_jsx(SizeChangeContext.Provider, __assign({ value: handleSizeChange }, { children: children })), fillerSize > 0 && (_jsx("div", { className: styles.smallSeparator, style: {
33
33
  width: fillerSize,
34
- } })] })));
34
+ } }))] })));
35
35
  }
36
36
  else {
37
37
  return (_jsxs(SizeChangeContext.Provider, __assign({ value: handleSizeChange }, { children: [children, step.maxSize && _jsx("div", { className: styles.separator })] })));
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": "2.0.41",
4
+ "version": "2.0.42",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "build": "react-scripts build",