@arquimedes.co/eureka-forms 1.8.2 → 1.8.3-test

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.
@@ -153,7 +153,8 @@ function ColumnForm(_a) {
153
153
  reload();
154
154
  setShowConfirmation(undefined);
155
155
  } }, void 0)), sections.map(function (idSection, index) { return (_jsx(SectionComponent, __assign({ form: form, domain: domain, postview: postview, clearErrors: clearErrors, widthStats: widthStats, control: control, getValues: getValues, originalValues: originalValues, errors: errors, index: index, setSections: setSections, section: form.sections[idSection], formStyle: formStyle, customSteps: customSteps, setDependencyStore: setDependencyStore, dependencyStore: dependencyStore, trigger: trigger }, others), index)); }), form.terms &&
156
- !internal &&
156
+ (!internal || (internal && postview)) &&
157
+ (originalValues === null || originalValues === void 0 ? void 0 : originalValues['INTERNAL_CREATING_AGENT']) === undefined &&
157
158
  form.terms.map(function (term, index) { return (_jsx(TermComponent, { setValue: setValue, postview: postview, tempError: tempError, term: term, control: control, errors: errors, form: form, formStyle: formStyle }, index)); }), !postview && (_jsx("div", __assign({ className: styles.submitBtnContainer }, { children: _jsxs("button", __assign({ "data-testid": "form__submit", className: styles.submitBtn, onClick: function () {
158
159
  onSubmit();
159
160
  }, style: {
@@ -88,15 +88,13 @@ function FormComponent(_a) {
88
88
  if ((postview || internal || !form.isStandAlone) &&
89
89
  widthStats !== undefined) {
90
90
  return (_jsx("div", __assign({ style: {
91
- backgroundColor: internal || postview
91
+ backgroundColor: internal
92
92
  ? InternalFormStyle.backgroundColor
93
93
  : form.style.backgroundColor,
94
94
  minHeight: '100%',
95
95
  } }, { children: _jsx("div", __assign({ className: styles.widgetFormContainer, ref: containerRef }, { children: _jsx(FormTypeComponent, __assign({}, others, { handleLoaded: function () {
96
96
  setLoaded(true);
97
- }, widthStats: widthStats, form: form, internal: internal, postview: postview, organization: organization, formStyle: internal || postview
98
- ? InternalFormStyle
99
- : form.style }), void 0) }), void 0) }), void 0));
97
+ }, widthStats: widthStats, form: form, internal: internal, postview: postview, organization: organization, formStyle: internal ? InternalFormStyle : form.style }), void 0) }), void 0) }), void 0));
100
98
  }
101
99
  else if (organization && widthStats !== undefined) {
102
100
  //Standalone cant have widget
@@ -77,7 +77,10 @@ function TextAreaStep(_a) {
77
77
  if (canEdit) {
78
78
  setFocus(false);
79
79
  }
80
- } }, { children: _jsx("div", __assign({ className: styles.textContainer + ' EF-DraftContainer', "data-testid": step.id, style: calcStyle(), onMouseEnter: function () {
80
+ } }, { children: _jsx("div", __assign({ className: postview
81
+ ? styles.postViewContainer +
82
+ ' EF-DraftContainer'
83
+ : styles.textContainer + ' EF-DraftContainer', "data-testid": step.id, style: calcStyle(), onMouseEnter: function () {
81
84
  if (canEdit) {
82
85
  setHovering(true);
83
86
  }
@@ -155,7 +158,7 @@ function TextAreaStep(_a) {
155
158
  }, shouldUnregister: true, render: function (_a) {
156
159
  var _b;
157
160
  var field = _a.field;
158
- return (_jsx(RoundedTextField, __assign({}, field, { "data-testid": step.id, maxLength: maxLength, label: step.label, inputRef: field.ref, required: step.required, cantEdit: !canEdit, fontWeight: 400, multiline: true, minRows: 4, maxRows: 6, focusColor: formStyle.primaryColor, outlineColor: formStyle.outlineColor, textColor: formStyle.textColor, errorColor: formStyle.errorColor, backgroundColor: backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : formStyle.backgroundColor, innerBackgroundColor: formStyle.stepBackgroundColor, helperTextColor: formStyle.descriptionTextColor, helperText: errors[step.id]
161
+ return (_jsx(RoundedTextField, __assign({}, field, { "data-testid": step.id, maxLength: maxLength, label: step.label, inputRef: field.ref, required: step.required, cantEdit: !canEdit, fontWeight: 400, multiline: true, minRows: 4, focusColor: formStyle.primaryColor, outlineColor: formStyle.outlineColor, textColor: formStyle.textColor, errorColor: formStyle.errorColor, backgroundColor: backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : formStyle.backgroundColor, innerBackgroundColor: formStyle.stepBackgroundColor, helperTextColor: formStyle.descriptionTextColor, helperText: errors[step.id]
159
162
  ? errors[step.id].message
160
163
  : (_b = step.description) !== null && _b !== void 0 ? _b : (step.required ? ' ' : null), error: !!errors[step.id] }), void 0));
161
164
  } }, void 0) }), void 0));
@@ -13,7 +13,15 @@
13
13
  display: flex;
14
14
  flex-direction: column;
15
15
  }
16
-
16
+ .postViewContainer {
17
+ height: fit-content;
18
+ border-radius: 15px;
19
+ min-height: 265px;
20
+ width: 100%;
21
+ position: relative;
22
+ margin-bottom: 1px;
23
+ overflow: hidden;
24
+ }
17
25
  .textContainer {
18
26
  height: 100%;
19
27
  border-radius: 15px;
@@ -46,7 +46,7 @@ var useTextfieldStyles = function (props) {
46
46
  backgroundColor: props.backgroundColor,
47
47
  '& input, textarea': {
48
48
  cursor: props.cantEdit ? 'default' : 'text',
49
- padding: props.multiline ? '' : props.padding,
49
+ padding: props.multiline ? props.padding : props.padding,
50
50
  fontWeight: props.fontWeight,
51
51
  color: props.textColor,
52
52
  fontSize: props.fontSize,
@@ -54,7 +54,7 @@ var useTextfieldStyles = function (props) {
54
54
  fontSize: props.fontSize,
55
55
  },
56
56
  backgroundColor: props.innerBackgroundColor,
57
- borderRadius: props.multiline ? '0px' : props.borderRadius,
57
+ borderRadius: props.borderRadius,
58
58
  },
59
59
  '& label': {
60
60
  marginTop: props.multiline ? '0px' : '-4px',
@@ -106,7 +106,7 @@ var useTextfieldStyles = function (props) {
106
106
  marginRight: props.maxLength ? 40 : 14,
107
107
  },
108
108
  '& .EF-MuiOutlinedInput-multiline': {
109
- padding: props.padding,
109
+ padding: 0,
110
110
  backgroundColor: props.innerBackgroundColor,
111
111
  },
112
112
  },
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.8.2",
4
+ "version":"1.8.3-test",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "build": "react-scripts build",