@asantemedia-org/edwardsvacuum-design-system 1.6.46 → 1.6.48
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 +26 -13
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +26 -13
- package/dist/index.js.map +1 -1
- package/dist/stories/components/Button/Button.d.ts +2 -1
- package/dist/stories/experiences/QRFormJourney/Qr-form/Qr-form.d.ts +0 -1
- package/dist/stories/experiences/QRFormJourney/Qr-form/i18n.d.ts +5 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -560,8 +560,10 @@ var Button = function (_a) {
|
|
|
560
560
|
href = _a.href,
|
|
561
561
|
target = _a.target,
|
|
562
562
|
rel = _a.rel,
|
|
563
|
+
_c = _a.type,
|
|
564
|
+
type = _c === void 0 ? 'button' : _c,
|
|
563
565
|
dataTargetSelector = _a["data-target-selector"],
|
|
564
|
-
props = __rest(_a, ["className", "buttonStyle", "label", "element", "onClick", "href", "target", "rel", 'data-target-selector']);
|
|
566
|
+
props = __rest(_a, ["className", "buttonStyle", "label", "element", "onClick", "href", "target", "rel", "type", 'data-target-selector']);
|
|
565
567
|
var mode = buttonStyle ? getStyle("cmp-button--style-".concat(buttonStyle)) : '';
|
|
566
568
|
var baseClass = getStyle('cmp-button');
|
|
567
569
|
// Add js-modal class if data-target-selector is present
|
|
@@ -579,7 +581,7 @@ var Button = function (_a) {
|
|
|
579
581
|
}
|
|
580
582
|
return /*#__PURE__*/React.createElement("button", _extends({
|
|
581
583
|
className: conditionalClasses,
|
|
582
|
-
type:
|
|
584
|
+
type: type,
|
|
583
585
|
onClick: onClick
|
|
584
586
|
}, props), label);
|
|
585
587
|
};
|
|
@@ -968,7 +970,12 @@ var defaultQrFormTranslations = {
|
|
|
968
970
|
label_customerSupport: "Customer Support",
|
|
969
971
|
label_technicalSupport: "Technical Support",
|
|
970
972
|
label_ProductDetails: "Product Information",
|
|
973
|
+
label_warrantyClaim: "Warranty claim",
|
|
974
|
+
label_serviceRequest: "Service request",
|
|
975
|
+
label_oilAndSpares: "Oil and spares",
|
|
976
|
+
label_other: "Other",
|
|
971
977
|
label_tellUsMore: "Tell us more",
|
|
978
|
+
label_tellUsMoreOptional: "Tell us more about your issue (optional)",
|
|
972
979
|
section_scannedProductDetails: "Scanned Product Details",
|
|
973
980
|
label_title: "Title",
|
|
974
981
|
label_lastName: "Last Name",
|
|
@@ -1123,20 +1130,23 @@ var QrForm = function (props) {
|
|
|
1123
1130
|
selected: true,
|
|
1124
1131
|
disabled: true
|
|
1125
1132
|
}, {
|
|
1126
|
-
label: i18n.
|
|
1127
|
-
value: "
|
|
1133
|
+
label: i18n.label_warrantyClaim,
|
|
1134
|
+
value: "warranty claim"
|
|
1128
1135
|
}, {
|
|
1129
|
-
label: i18n.
|
|
1130
|
-
value: "
|
|
1136
|
+
label: i18n.label_serviceRequest,
|
|
1137
|
+
value: "service request"
|
|
1131
1138
|
}, {
|
|
1132
|
-
label: i18n.
|
|
1133
|
-
value: "
|
|
1139
|
+
label: i18n.label_oilAndSpares,
|
|
1140
|
+
value: "oil and spares"
|
|
1141
|
+
}, {
|
|
1142
|
+
label: i18n.label_other,
|
|
1143
|
+
value: "other"
|
|
1134
1144
|
}]
|
|
1135
1145
|
}, {
|
|
1136
1146
|
type: "textarea",
|
|
1137
1147
|
name: "tell_us_more",
|
|
1138
|
-
placeholder: i18n.
|
|
1139
|
-
label: i18n.
|
|
1148
|
+
placeholder: i18n.label_tellUsMoreOptional,
|
|
1149
|
+
label: i18n.label_tellUsMoreOptional
|
|
1140
1150
|
}], false), /*page 2*/
|
|
1141
1151
|
[{
|
|
1142
1152
|
type: "text",
|
|
@@ -1336,9 +1346,12 @@ var QrForm = function (props) {
|
|
|
1336
1346
|
onClick: formNavigate,
|
|
1337
1347
|
"data-page_target": pageIndex + 1,
|
|
1338
1348
|
buttonStyle: "primary"
|
|
1339
|
-
}) : /*#__PURE__*/React.createElement(
|
|
1340
|
-
|
|
1341
|
-
|
|
1349
|
+
}) : /*#__PURE__*/React.createElement(Button, {
|
|
1350
|
+
label: i18n === null || i18n === void 0 ? void 0 : i18n.submit,
|
|
1351
|
+
onClick: handleSubmit,
|
|
1352
|
+
buttonStyle: "primary",
|
|
1353
|
+
element: "button",
|
|
1354
|
+
type: "submit"
|
|
1342
1355
|
}));
|
|
1343
1356
|
if (isPartial) {
|
|
1344
1357
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|