@asantemedia-org/edwardsvacuum-design-system 1.6.57 → 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
@@ -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 : ""