@arquimedes.co/eureka-forms 2.0.35-test → 2.0.36-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.
@@ -9,9 +9,10 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
- import { jsx as _jsx } from "react/jsx-runtime";
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import RoundedTextField from '../../../Shared/RoundedTextField/RoundedTextField';
14
14
  import styles from './MaterialTextAreaStep.module.css';
15
+ import React from 'react';
15
16
  import { useAppSelector } from '../../../hooks';
16
17
  import { useFormStep } from '../../StepHooks';
17
18
  function TextAreaStep(_a) {
@@ -26,11 +27,22 @@ function TextAreaStep(_a) {
26
27
  },
27
28
  }), ref = _e.ref, value = _e.value, onChange = _e.onChange, error = _e.error, field = _e.field;
28
29
  var canEdit = editable && !postview;
29
- return (_jsx("div", __assign({ className: styles.container, style: {
30
+ return (_jsxs("div", __assign({ className: styles.container, style: {
30
31
  paddingBottom: step.required || step.description || !!error
31
32
  ? '0px'
32
33
  : '5px',
33
- breakInside: 'avoid',
34
- } }, { children: _jsx("div", __assign({ className: styles.erkTextArea }, { children: _jsx(RoundedTextField, __assign({}, field, { inputRef: ref, value: value, onChange: function (e) { return onChange(e.target.value); }, "data-testid": step.id, maxLength: maxLength, label: step.label, required: step.required, cantEdit: !canEdit, fontWeight: 400, multiline: true, minRows: postview && partial ? undefined : 4, focusColor: formStyle.primaryColor, outlineColor: formStyle.outlineColor, textColor: formStyle.textColor, errorColor: formStyle.errorColor, backgroundColor: formStyle.stepBackgroundColor, helperTextColor: formStyle.descriptionTextColor, helperText: (_c = (_b = error === null || error === void 0 ? void 0 : error.message) !== null && _b !== void 0 ? _b : step.description) !== null && _c !== void 0 ? _c : (step.required ? ' ' : null), error: !!error })) })) })));
34
+ breakAfter: 'auto',
35
+ } }, { children: [_jsx("div", __assign({ className: styles.erkTextArea }, { children: _jsx(RoundedTextField, __assign({}, field, { inputRef: ref, value: value, onChange: function (e) { return onChange(e.target.value); }, "data-testid": step.id, maxLength: maxLength, label: step.label, required: step.required, cantEdit: !canEdit, fontWeight: 400, multiline: true, minRows: postview && partial ? undefined : 4, focusColor: formStyle.primaryColor, outlineColor: formStyle.outlineColor, textColor: formStyle.textColor, errorColor: formStyle.errorColor, backgroundColor: formStyle.stepBackgroundColor, helperTextColor: formStyle.descriptionTextColor, helperText: (_c = (_b = error === null || error === void 0 ? void 0 : error.message) !== null && _b !== void 0 ? _b : step.description) !== null && _c !== void 0 ? _c : (step.required ? ' ' : null), error: !!error })) })), _jsxs("div", __assign({ className: styles.print }, { children: [value && (_jsxs(React.Fragment, { children: [_jsx("div", __assign({ className: styles.printLbl, style: {
36
+ color: formStyle.descriptionTextColor,
37
+ } }, { children: step.label })), _jsx("div", __assign({ className: styles.printLine, style: {
38
+ color: formStyle.stepBackgroundColor,
39
+ backgroundColor: formStyle.stepBackgroundColor,
40
+ } }, { children: step.label }))] })), !value && (_jsx("div", __assign({ className: styles.emptyPrintLbl, style: {
41
+ color: formStyle.textColor + '8a',
42
+ } }, { children: step.label }))), _jsx("p", __assign({ className: styles.printContainer, style: {
43
+ backgroundColor: formStyle.stepBackgroundColor,
44
+ borderColor: formStyle.outlineColor,
45
+ whiteSpace: 'pre-wrap',
46
+ } }, { children: value }))] }))] })));
35
47
  }
36
48
  export default TextAreaStep;
@@ -58,14 +58,39 @@
58
58
  }
59
59
  .print {
60
60
  display: none;
61
+ position: relative;
62
+ }
63
+ .printLbl {
64
+ padding: 0px 4px;
65
+ top: -8px;
66
+ left: 10.5px;
67
+ font-size: 0.75rem;
68
+ position: absolute;
69
+ z-index: 3;
70
+ }
71
+ .emptyPrintLbl {
72
+ position: absolute;
73
+ top: 9px;
74
+ left: 14px;
75
+ }
76
+ .printLine {
77
+ top: 0px;
78
+ padding: 0px 5px;
79
+ left: 9px;
80
+ height: 1px;
81
+ font-size: 0.75rem;
82
+ position: absolute;
83
+ overflow: hidden;
84
+ z-index: 2;
61
85
  }
62
86
  .printContainer {
63
87
  border-radius: 10px;
64
88
  border: 1px solid black;
65
- padding: 6px 12px;
89
+ padding: 5px 11px;
66
90
  width: calc(100% - 2);
67
91
  font-size: 1rem;
68
- min-height: 50px;
92
+ min-height: 76px;
93
+ line-height: 1.2rem;
69
94
  margin: 0px;
70
95
  }
71
96
  .erkTextArea {
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.35-test",
4
+ "version":"2.0.36-test",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "build": "react-scripts build",