@arquimedes.co/eureka-forms 1.8.3-test → 1.8.4-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.
- package/dist/App.js +1 -1
- package/dist/App.module.css +0 -1
- package/dist/FormComponents/Form/Form.d.ts +2 -1
- package/dist/FormComponents/Form/Form.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +0 -1
- package/dist/index.module.css +0 -6
- package/package.json +1 -1
- package/dist/index.css +0 -3
package/dist/App.js
CHANGED
|
@@ -270,7 +270,7 @@ function App(_a) {
|
|
|
270
270
|
if (handleConfirmed) {
|
|
271
271
|
handleConfirmed();
|
|
272
272
|
}
|
|
273
|
-
}, editable: editable, postview: postview === true, internal: internal === true, apiKey: apiKey, domain: domain, customSend: customSend, originalValues: originalValues, containerRef: containerRef, organization: organizationInfo !== null && organizationInfo !== void 0 ? organizationInfo : { idOrganization: domain }, customSteps: customSteps !== null && customSteps !== void 0 ? customSteps : {} }), void 0) }), void 0));
|
|
273
|
+
}, editable: editable, postview: postview === true, internal: internal === true, apiKey: apiKey, domain: domain, customSend: customSend, originalValues: originalValues, containerRef: containerRef, organization: organizationInfo !== null && organizationInfo !== void 0 ? organizationInfo : { idOrganization: domain }, customSteps: customSteps !== null && customSteps !== void 0 ? customSteps : {}, isWidget: isWidget === true }), void 0) }), void 0));
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
export default App;
|
package/dist/App.module.css
CHANGED
|
@@ -30,8 +30,9 @@ export interface FormComponentProps {
|
|
|
30
30
|
/** The custom send label to display */
|
|
31
31
|
sendLabel?: string;
|
|
32
32
|
}
|
|
33
|
-
declare function FormComponent({ form, internal, postview, organization, containerRef, ...others }: Omit<FormComponentProps, 'widthStats' | 'formStyle' | 'handleLoaded'> & {
|
|
33
|
+
declare function FormComponent({ form, isWidget, internal, postview, organization, containerRef, ...others }: Omit<FormComponentProps, 'widthStats' | 'formStyle' | 'handleLoaded'> & {
|
|
34
34
|
containerRef: any;
|
|
35
35
|
organization: Organization | null;
|
|
36
|
+
isWidget: boolean;
|
|
36
37
|
}): JSX.Element;
|
|
37
38
|
export default FormComponent;
|
|
@@ -49,7 +49,7 @@ export var getLocale = function () {
|
|
|
49
49
|
};
|
|
50
50
|
function FormComponent(_a) {
|
|
51
51
|
var _b, _c;
|
|
52
|
-
var form = _a.form, internal = _a.internal, postview = _a.postview, organization = _a.organization, containerRef = _a.containerRef, others = __rest(_a, ["form", "internal", "postview", "organization", "containerRef"]);
|
|
52
|
+
var form = _a.form, isWidget = _a.isWidget, internal = _a.internal, postview = _a.postview, organization = _a.organization, containerRef = _a.containerRef, others = __rest(_a, ["form", "isWidget", "internal", "postview", "organization", "containerRef"]);
|
|
53
53
|
var _d = useState(false), loaded = _d[0], setLoaded = _d[1];
|
|
54
54
|
var _e = useState(undefined), widthStats = _e[0], setWidthStats = _e[1];
|
|
55
55
|
/** Calcs the currentBreakPoint and if is mobile */
|
|
@@ -91,7 +91,7 @@ function FormComponent(_a) {
|
|
|
91
91
|
backgroundColor: internal
|
|
92
92
|
? InternalFormStyle.backgroundColor
|
|
93
93
|
: form.style.backgroundColor,
|
|
94
|
-
minHeight: '100%',
|
|
94
|
+
minHeight: isWidget ? '100%' : '100vh',
|
|
95
95
|
} }, { children: _jsx("div", __assign({ className: styles.widgetFormContainer, ref: containerRef }, { children: _jsx(FormTypeComponent, __assign({}, others, { handleLoaded: function () {
|
|
96
96
|
setLoaded(true);
|
|
97
97
|
}, widthStats: widthStats, form: form, internal: internal, postview: postview, organization: organization, formStyle: internal ? InternalFormStyle : form.style }), void 0) }), void 0) }), void 0));
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
13
13
|
import * as ReactDOM from 'react-dom';
|
|
14
14
|
import App from './App';
|
|
15
15
|
import styles from './index.module.css';
|
|
16
|
-
import './index.css';
|
|
17
16
|
var urlParams = new URLSearchParams(window.location.search);
|
|
18
17
|
var values = urlParams.get('data-values');
|
|
19
18
|
var dataValues = undefined;
|
package/dist/index.module.css
CHANGED
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200;0,300;0,400;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,600;1,700;1,800;1,900&display=swap');
|
|
2
2
|
|
|
3
|
-
html {
|
|
4
|
-
height: 100%;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
3
|
body {
|
|
8
4
|
font-family: 'Nunito';
|
|
9
|
-
height: 100%;
|
|
10
5
|
}
|
|
11
6
|
|
|
12
7
|
.eurekaForm {
|
|
13
8
|
min-height: 100vh;
|
|
14
9
|
width: 100%;
|
|
15
|
-
height: 100%;
|
|
16
10
|
scroll-behavior: smooth;
|
|
17
11
|
overflow: hidden;
|
|
18
12
|
overflow-x: hidden;
|
package/package.json
CHANGED
package/dist/index.css
DELETED