@asantemedia-org/edwardsvacuum-design-system 1.6.56 → 1.6.58

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.js CHANGED
@@ -1006,7 +1006,7 @@ var defaultQrFormTranslations = {
1006
1006
  pageTitle_productInformation: "Product information",
1007
1007
  pageTitle_aboutYou: "About you",
1008
1008
  pageTitle_contactDetails: "Your contact details",
1009
- pageTitle_consents: "Consents",
1009
+ pageTitle_consents: "Form consent",
1010
1010
  label_howMayWeHelpYou: "How may we help you?",
1011
1011
  label_customerSupport: "Customer support",
1012
1012
  label_technicalSupport: "Technical support",
@@ -1028,6 +1028,7 @@ var defaultQrFormTranslations = {
1028
1028
  label_city: "City",
1029
1029
  label_postcodeOrZip: "Postcode or ZIP",
1030
1030
  consent_acceptPolicy: "I accept the policy",
1031
+ consent_viewPolicy: "View Policy",
1031
1032
  consent_default: "Consent",
1032
1033
  consent_requiredMessage: "Please acknowledge this consent"
1033
1034
  };
@@ -1061,7 +1062,11 @@ var QrForm = function (props) {
1061
1062
  return {
1062
1063
  type: consent.type === "info" ? "info" : "checkbox",
1063
1064
  name: "consent_".concat(index + 1),
1064
- label: consent.policyText ? consent.policyText : consent.policyLink ? "".concat(i18n.consent_acceptPolicy, ": ").concat(consent.policyLink) : "".concat(i18n.consent_default).concat(index + 1),
1065
+ label: consent.policyLink ? /*#__PURE__*/React.createElement("span", null, consent.policyText || i18n.consent_acceptPolicy, " ", /*#__PURE__*/React.createElement("a", {
1066
+ href: consent.policyLink,
1067
+ target: "_blank",
1068
+ rel: "noopener noreferrer"
1069
+ }, i18n.consent_viewPolicy || "View Policy")) : consent.policyText ? consent.policyText : "".concat(i18n.consent_default).concat(index + 1),
1065
1070
  value: "true",
1066
1071
  required: !!consent.policyMandatory,
1067
1072
  errorMessage: consent.policyMandatory ? i18n.consent_requiredMessage : ""