@asantemedia-org/edwardsvacuum-design-system 1.6.52 → 1.6.54
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.css +11 -3
- package/dist/index.esm.css +11 -3
- package/dist/index.esm.js +33 -26
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +80 -64
- package/dist/index.js.map +1 -1
- package/dist/index.scss +11 -3
- package/dist/stories/experiences/QRFormJourney/Qr-form/i18n.d.ts +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -458,13 +458,21 @@
|
|
|
458
458
|
background: rgb(255, 255, 255);
|
|
459
459
|
color: #2d363a;
|
|
460
460
|
}
|
|
461
|
+
.Button-module__cmp-button--style-primary___hfLAd:focus-visible {
|
|
462
|
+
outline: 2px solid rgb(196, 38, 46);
|
|
463
|
+
outline-offset: 2px;
|
|
464
|
+
}
|
|
461
465
|
.Button-module__cmp-button--style-secondary___3Dqvg {
|
|
462
466
|
background: #2d363a;
|
|
463
467
|
color: rgb(255, 255, 255);
|
|
464
468
|
}
|
|
465
469
|
.Button-module__cmp-button--style-secondary___3Dqvg:hover {
|
|
466
|
-
background:
|
|
467
|
-
color:
|
|
470
|
+
background: rgb(255, 255, 255);
|
|
471
|
+
color: #2d363a;
|
|
472
|
+
}
|
|
473
|
+
.Button-module__cmp-button--style-secondary___3Dqvg:focus-visible {
|
|
474
|
+
outline: 2px solid #2d363a;
|
|
475
|
+
outline-offset: 2px;
|
|
468
476
|
}
|
|
469
477
|
.Button-module__cmp-button--style-tertiary___Akcep {
|
|
470
478
|
background: rgb(255, 255, 255);
|
|
@@ -1609,7 +1617,7 @@
|
|
|
1609
1617
|
}
|
|
1610
1618
|
.qr-journey-form-wrapper .qr-form-filed-wrapper label select, .qr-journey-form-wrapper .qr-form-filed-wrapper label textarea {
|
|
1611
1619
|
line-height: 1em;
|
|
1612
|
-
padding:
|
|
1620
|
+
padding: 1.5rem 1rem 0rem 1rem;
|
|
1613
1621
|
box-sizing: content-box;
|
|
1614
1622
|
}
|
|
1615
1623
|
.qr-journey-form-wrapper .qr-form-filed-wrapper label select {
|
package/dist/index.esm.css
CHANGED
|
@@ -458,13 +458,21 @@
|
|
|
458
458
|
background: rgb(255, 255, 255);
|
|
459
459
|
color: #2d363a;
|
|
460
460
|
}
|
|
461
|
+
.Button-module__cmp-button--style-primary___hfLAd:focus-visible {
|
|
462
|
+
outline: 2px solid rgb(196, 38, 46);
|
|
463
|
+
outline-offset: 2px;
|
|
464
|
+
}
|
|
461
465
|
.Button-module__cmp-button--style-secondary___3Dqvg {
|
|
462
466
|
background: #2d363a;
|
|
463
467
|
color: rgb(255, 255, 255);
|
|
464
468
|
}
|
|
465
469
|
.Button-module__cmp-button--style-secondary___3Dqvg:hover {
|
|
466
|
-
background:
|
|
467
|
-
color:
|
|
470
|
+
background: rgb(255, 255, 255);
|
|
471
|
+
color: #2d363a;
|
|
472
|
+
}
|
|
473
|
+
.Button-module__cmp-button--style-secondary___3Dqvg:focus-visible {
|
|
474
|
+
outline: 2px solid #2d363a;
|
|
475
|
+
outline-offset: 2px;
|
|
468
476
|
}
|
|
469
477
|
.Button-module__cmp-button--style-tertiary___Akcep {
|
|
470
478
|
background: rgb(255, 255, 255);
|
|
@@ -1609,7 +1617,7 @@
|
|
|
1609
1617
|
}
|
|
1610
1618
|
.qr-journey-form-wrapper .qr-form-filed-wrapper label select, .qr-journey-form-wrapper .qr-form-filed-wrapper label textarea {
|
|
1611
1619
|
line-height: 1em;
|
|
1612
|
-
padding:
|
|
1620
|
+
padding: 1.5rem 1rem 0rem 1rem;
|
|
1613
1621
|
box-sizing: content-box;
|
|
1614
1622
|
}
|
|
1615
1623
|
.qr-journey-form-wrapper .qr-form-filed-wrapper label select {
|
package/dist/index.esm.js
CHANGED
|
@@ -526,13 +526,14 @@ var ProductDetailsCard = function (_a) {
|
|
|
526
526
|
className: getClassName("cmp-card--type-product_details__header__title")
|
|
527
527
|
}, title), /*#__PURE__*/React.createElement("p", {
|
|
528
528
|
className: getClassName("cmp-card--type-product_details__header__product-code")
|
|
529
|
-
}, "Product:", hit === null || hit === void 0 ? void 0 : hit.code), /*#__PURE__*/React.createElement("img", {
|
|
529
|
+
}, "Product: ", hit === null || hit === void 0 ? void 0 : hit.code), /*#__PURE__*/React.createElement("img", {
|
|
530
530
|
src: hit === null || hit === void 0 ? void 0 : hit.image,
|
|
531
531
|
alt: imageAlt,
|
|
532
532
|
className: getClassName("cmp-card--type-product_details__header__product-image")
|
|
533
533
|
})), facets && /*#__PURE__*/React.createElement(AccordionSection, {
|
|
534
534
|
title: "Specifications",
|
|
535
|
-
className: getClassName("folding-specification-holder")
|
|
535
|
+
className: getClassName("folding-specification-holder"),
|
|
536
|
+
defaultOpen: true
|
|
536
537
|
}, /*#__PURE__*/React.createElement("ul", {
|
|
537
538
|
className: getClassName("folding-specification-list")
|
|
538
539
|
}, facets && facets.map(function (facet) {
|
|
@@ -969,7 +970,7 @@ var QrFormField = function (props) {
|
|
|
969
970
|
} : {}, props.type === "select" ? {
|
|
970
971
|
options: props.options
|
|
971
972
|
} : {}, {
|
|
972
|
-
placeholder: props.placeholder,
|
|
973
|
+
placeholder: "".concat(props.placeholder, " ").concat(props.required ? "*" : ""),
|
|
973
974
|
maxLength: props.maxLength
|
|
974
975
|
}))), props.errorMessage && props.hasError && /*#__PURE__*/React.createElement("span", {
|
|
975
976
|
className: "formfield-error"
|
|
@@ -1004,10 +1005,10 @@ var defaultQrFormTranslations = {
|
|
|
1004
1005
|
pageTitle_aboutYou: "About you",
|
|
1005
1006
|
pageTitle_contactDetails: "Your contact details",
|
|
1006
1007
|
pageTitle_consents: "Consents",
|
|
1007
|
-
|
|
1008
|
-
label_customerSupport: "Customer
|
|
1009
|
-
label_technicalSupport: "Technical
|
|
1010
|
-
label_ProductDetails: "Product
|
|
1008
|
+
label_howMayWeHelpYou: "How may we help you?",
|
|
1009
|
+
label_customerSupport: "Customer support",
|
|
1010
|
+
label_technicalSupport: "Technical support",
|
|
1011
|
+
label_ProductDetails: "Product information",
|
|
1011
1012
|
label_warrantyClaim: "Warranty claim",
|
|
1012
1013
|
label_serviceRequest: "Service request",
|
|
1013
1014
|
label_oilAndSpares: "Oil and spares",
|
|
@@ -1023,7 +1024,7 @@ var defaultQrFormTranslations = {
|
|
|
1023
1024
|
label_email: "Email",
|
|
1024
1025
|
label_phone: "Phone",
|
|
1025
1026
|
label_city: "City",
|
|
1026
|
-
|
|
1027
|
+
label_postcodeOrZip: "Postcode or ZIP",
|
|
1027
1028
|
consent_acceptPolicy: "I accept the policy",
|
|
1028
1029
|
consent_default: "Consent",
|
|
1029
1030
|
consent_requiredMessage: "Please acknowledge this consent"
|
|
@@ -1165,10 +1166,13 @@ var QrForm = function (props) {
|
|
|
1165
1166
|
type: "select",
|
|
1166
1167
|
name: "how_can_we_help",
|
|
1167
1168
|
options: [{
|
|
1168
|
-
label: i18n.
|
|
1169
|
+
label: i18n.label_howMayWeHelpYou,
|
|
1169
1170
|
value: "",
|
|
1170
1171
|
selected: true,
|
|
1171
1172
|
disabled: true
|
|
1173
|
+
}, {
|
|
1174
|
+
label: i18n.label_technicalSupport,
|
|
1175
|
+
value: "technical support"
|
|
1172
1176
|
}, {
|
|
1173
1177
|
label: i18n.label_warrantyClaim,
|
|
1174
1178
|
value: "warranty claim"
|
|
@@ -1235,9 +1239,9 @@ var QrForm = function (props) {
|
|
|
1235
1239
|
required: false
|
|
1236
1240
|
}, {
|
|
1237
1241
|
type: "text",
|
|
1238
|
-
name: "
|
|
1239
|
-
label: i18n.
|
|
1240
|
-
placeholder: i18n.
|
|
1242
|
+
name: "postcodeOrZip",
|
|
1243
|
+
label: i18n.label_postcodeOrZip,
|
|
1244
|
+
placeholder: i18n.label_postcodeOrZip,
|
|
1241
1245
|
required: false
|
|
1242
1246
|
}], __spreadArray([], consentFields, true)];
|
|
1243
1247
|
var handleChange = function (name, value) {
|
|
@@ -1330,20 +1334,23 @@ var QrForm = function (props) {
|
|
|
1330
1334
|
}
|
|
1331
1335
|
}
|
|
1332
1336
|
var renderQrFormField = function (field) {
|
|
1333
|
-
return
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1337
|
+
return (
|
|
1338
|
+
// if no label, don't render the field
|
|
1339
|
+
field.value ? /*#__PURE__*/React.createElement(QrFormField, _extends({}, field, {
|
|
1340
|
+
key: field.name,
|
|
1341
|
+
label: field.label,
|
|
1342
|
+
value: formValues[field.name],
|
|
1343
|
+
onChange: function (e) {
|
|
1344
|
+
return handleChange(field.name, e.target.value);
|
|
1345
|
+
},
|
|
1346
|
+
isDisabled: field.isDisabled,
|
|
1347
|
+
errorMessage: field.errorMessage,
|
|
1348
|
+
hasError: errors[field.name] || false,
|
|
1349
|
+
required: field.required
|
|
1350
|
+
}, field.type === "text" || field.type === "email" || field.type === "tel" || field.type === "textarea" || field.type === "number" ? {
|
|
1351
|
+
regex: field.regex
|
|
1352
|
+
} : {})) : null
|
|
1353
|
+
);
|
|
1347
1354
|
};
|
|
1348
1355
|
var renderProgressBar = function (pageIndex) {
|
|
1349
1356
|
return isMobile ? /*#__PURE__*/React.createElement("div", {
|