@arquimedes.co/eureka-forms 1.9.58 → 1.9.59

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.
@@ -34,7 +34,10 @@ function CheckBox(_a) {
34
34
  width: widthStats.currentBreakPoint <= step.size
35
35
  ? '100%'
36
36
  : calcStepWidth(step.size, form.size),
37
- minHeight: step.description || step.required ? '55px' : '43px',
37
+ minHeight: step.description ||
38
+ (!postview && editable && step.required)
39
+ ? '55px'
40
+ : '43px',
38
41
  } }, { children: [_jsxs("div", __assign({ className: styles.labelCheckBoxContainer }, { children: [step.label && (_jsxs("div", __assign({ className: styles.checkboxLbl }, { children: [step.label, step.required ? ' *' : '', ":"] }))), _jsx(RoundedCheckBox, { onChange: onChange, onBlur: onBlur, "data-testid": step.id, inputRef: inputRef, padding: "0px", size: "1.6rem", error: !!errors[step.id], cantEdit: !editable || postview, checkedColor: formStyle.primaryColor, uncheckedColor: formStyle.outlineColor, checked: value })] })), (step.description || !!errors[step.id]) && (_jsx("div", __assign({ className: styles.descriptionPar, style: {
39
42
  color: !!errors[step.id]
40
43
  ? formStyle.errorColor
@@ -70,7 +70,10 @@ function ClassifierSelector(_a) {
70
70
  width: widthStats.currentBreakPoint <= step.size
71
71
  ? '100%'
72
72
  : calcStepWidth(step.size, form.size),
73
- minHeight: step.description || step.required ? '55px' : '43px',
73
+ minHeight: step.description ||
74
+ (!postview && editable && step.required)
75
+ ? '55px'
76
+ : '43px',
74
77
  } }, { children: _jsx(RoundedSmartSelect, { value: value, onBlur: onBlur, disabled: false, loading: false, options: options, inputRef: inputRef, cantEdit: !editable || postview, fullWidth: true, backgroundColor: "transparent", innerBackgroundColor: (_a = formStyle.stepBackgroundColor) !== null && _a !== void 0 ? _a : 'white', label: step.label ? step.label : classifier.name, required: step.required, height: '31px', searchable: step.searchable, icon: undefined, helperTextColor: formStyle.descriptionTextColor, focusColor: formStyle.primaryColor, outlineColor: formStyle.outlineColor, errorColor: formStyle.errorColor, color: formStyle.textColor, containerMargin: "0px", handleUpdate: function (value) {
75
78
  onChange(value);
76
79
  sizeChange();
@@ -31,7 +31,9 @@ function DatePickerStep(_a) {
31
31
  width: widthStats.currentBreakPoint <= step.size
32
32
  ? '100%'
33
33
  : calcStepWidth(step.size, form.size),
34
- minHeight: step.description || step.required ? '55px' : '43px',
34
+ minHeight: step.description || (!postview && editable && step.required)
35
+ ? '55px'
36
+ : '43px',
35
37
  } }, { children: _jsx(Controller, { name: step.id, control: control, defaultValue: defaultValue, rules: {
36
38
  required: step.required
37
39
  ? 'Este campo es obligatorio'
@@ -202,7 +202,13 @@ function FileUploadStep(_a) {
202
202
  return '';
203
203
  };
204
204
  return (_jsxs("div", __assign({ className: styles.container +
205
- (error || !!errors[step.id] ? ' EF-error' : ''), "data-testid": step.id }, { children: [_jsx("div", __assign({ className: styles.labelLabel }, { children: step.label })), step.description && (_jsx("div", __assign({ className: styles.stepDescriptionLabel, style: { color: formStyle.descriptionTextColor } }, { children: step.description }))), _jsx("input", { type: "file", ref: inputRef, className: styles.filesInput, onChange: function (e) {
205
+ (error || !!errors[step.id] ? ' EF-error' : ''), style: editable == false || postview
206
+ ? {
207
+ paddingBottom: 5,
208
+ }
209
+ : {
210
+ minHeight: '100px',
211
+ }, "data-testid": step.id }, { children: [_jsx("div", __assign({ className: styles.labelLabel }, { children: step.label })), step.description && (_jsx("div", __assign({ className: styles.stepDescriptionLabel, style: { color: formStyle.descriptionTextColor } }, { children: step.description }))), _jsx("input", { type: "file", ref: inputRef, className: styles.filesInput, onChange: function (e) {
206
212
  var files = e.target.files;
207
213
  if (files) {
208
214
  var filesArray = Array.from(files);
@@ -6,7 +6,6 @@
6
6
  padding-bottom: 0px;
7
7
  padding-top: 5px;
8
8
  margin-bottom: 0px;
9
- min-height: 100px;
10
9
  width: 100%;
11
10
  flex-direction: column;
12
11
  }
@@ -46,7 +46,10 @@ function Selector(_a) {
46
46
  width: widthStats.currentBreakPoint <= step.size
47
47
  ? '100%'
48
48
  : calcStepWidth(step.size, form.size),
49
- minHeight: step.description || step.required ? '55px' : '43px',
49
+ minHeight: step.description ||
50
+ (!postview && editable && step.required)
51
+ ? '55px'
52
+ : '43px',
50
53
  } }, { children: _jsx(RoundedSmartSelect, { value: value, onBlur: onBlur, disabled: false, loading: false, options: step.options, inputRef: inputRef, cantEdit: !editable || postview, fullWidth: true, backgroundColor: "transparent", innerBackgroundColor: (_a = formStyle.stepBackgroundColor) !== null && _a !== void 0 ? _a : 'white', label: step.label, required: step.required, height: '31px', searchable: step.searchable, icon: undefined, helperTextColor: formStyle.descriptionTextColor, focusColor: formStyle.primaryColor, outlineColor: formStyle.outlineColor, errorColor: formStyle.errorColor, color: formStyle.textColor, containerMargin: "0px", handleUpdate: function (value) {
51
54
  onChange(value);
52
55
  }, getOptionSelected: function (option, value) {
@@ -179,7 +179,10 @@ function SmartSelect(_a) {
179
179
  width: widthStats.currentBreakPoint <= step.size
180
180
  ? '100%'
181
181
  : calcStepWidth(step.size, form.size),
182
- minHeight: step.description || step.required ? '55px' : '43px',
182
+ minHeight: step.description ||
183
+ (!postview && editable && step.required)
184
+ ? '55px'
185
+ : '43px',
183
186
  }, onClick: function () {
184
187
  if (options === null && !(!editable || postview)) {
185
188
  handleMissingDep();
@@ -33,7 +33,10 @@ function TextInputStep(_a) {
33
33
  width: widthStats.currentBreakPoint <= step.size
34
34
  ? '100%'
35
35
  : calcStepWidth(step.size, form.size),
36
- minHeight: step.description || step.required || step.validation
36
+ minHeight: (!postview &&
37
+ editable &&
38
+ (step.required || step.validation)) ||
39
+ step.description
37
40
  ? '55px'
38
41
  : '43px',
39
42
  } }, { children: _jsx(Controller, { name: step.id, control: control, defaultValue: defaultValue, rules: {
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.58",
4
+ "version": "1.9.59",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "build": "react-scripts build",