@asantemedia-org/edwardsvacuum-design-system 1.6.16 → 1.6.18
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/index.esm.js +13 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +43 -27
- package/dist/index.js.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/stories/experiences/QRFormJourney/Qr-form/Qr-form.d.ts +13 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -636,7 +636,7 @@ var AlgoliaDynamicSearch = function (_a) {
|
|
|
636
636
|
return null;
|
|
637
637
|
}
|
|
638
638
|
return /*#__PURE__*/React.createElement(Component, {
|
|
639
|
-
key: index,
|
|
639
|
+
key: hit.catalogId || hit.objectID || index,
|
|
640
640
|
className: cardClassName,
|
|
641
641
|
title: title,
|
|
642
642
|
imageUrl: imageUrl,
|
|
@@ -796,6 +796,7 @@ var QrForm = function (props) {
|
|
|
796
796
|
_d[0];
|
|
797
797
|
var setShowErrors = _d[1];
|
|
798
798
|
var i18n = props;
|
|
799
|
+
var buttonProps = props;
|
|
799
800
|
useEffect(function () {
|
|
800
801
|
var initialValues = {};
|
|
801
802
|
props.fields.forEach(function (field) {
|
|
@@ -924,6 +925,7 @@ var QrForm = function (props) {
|
|
|
924
925
|
return __generator(this, function (_a) {
|
|
925
926
|
ev.preventDefault();
|
|
926
927
|
setShowErrors(true); // Attempting to submit, so show errors
|
|
928
|
+
debugger;
|
|
927
929
|
if (validatePage(currentPage)) {
|
|
928
930
|
if (props.onSubmit) {
|
|
929
931
|
props.onSubmit(formValues);
|
|
@@ -1035,7 +1037,8 @@ var QrForm = function (props) {
|
|
|
1035
1037
|
};
|
|
1036
1038
|
return /*#__PURE__*/React.createElement("div", {
|
|
1037
1039
|
className: "qr-journey-form-wrapper"
|
|
1038
|
-
}, props.formHeader && /*#__PURE__*/React.createElement("h1", null, props.formHeader), /*#__PURE__*/React.createElement("form", {
|
|
1040
|
+
}, props.formHeader && /*#__PURE__*/React.createElement("h1", null, props.formHeader), "Show thank you:", props.showThankYou, /*#__PURE__*/React.createElement("form", {
|
|
1041
|
+
hidden: props.showThankYou,
|
|
1039
1042
|
action: "".concat(props.formAction, "/").concat(props.hubspotAppId, "/").concat(props.hubspotId),
|
|
1040
1043
|
onSubmit: handleSubmit
|
|
1041
1044
|
}, currentPage === 0 && /*#__PURE__*/React.createElement("section", {
|
|
@@ -1063,6 +1066,14 @@ var QrForm = function (props) {
|
|
|
1063
1066
|
}), renderFormSection({
|
|
1064
1067
|
pageIndex: 3,
|
|
1065
1068
|
sectionTitle: "Form consent"
|
|
1069
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
1070
|
+
className: "qr-form-thank-you-page",
|
|
1071
|
+
hidden: !props.showThankYou
|
|
1072
|
+
}, /*#__PURE__*/React.createElement("h2", null, props.thankYouTitle), /*#__PURE__*/React.createElement("p", null, props.thankYouText), /*#__PURE__*/React.createElement(Button, {
|
|
1073
|
+
label: buttonProps.buttonText,
|
|
1074
|
+
href: buttonProps.url,
|
|
1075
|
+
target: buttonProps.newTab ? '_blank' : '',
|
|
1076
|
+
buttonStyle: "primary"
|
|
1066
1077
|
})));
|
|
1067
1078
|
};
|
|
1068
1079
|
|