@mxenabled/connect-widget 0.20.6 → 0.20.7

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.es.js CHANGED
@@ -5087,39 +5087,23 @@ function baseFindIndex$2(array, predicate, fromIndex, fromRight) {
5087
5087
  }
5088
5088
  var _baseFindIndex = baseFindIndex$2;
5089
5089
 
5090
- var _trimmedEndIndex;
5091
- var hasRequired_trimmedEndIndex;
5092
-
5093
- function require_trimmedEndIndex () {
5094
- if (hasRequired_trimmedEndIndex) return _trimmedEndIndex;
5095
- hasRequired_trimmedEndIndex = 1;
5096
- var reWhitespace = /\s/;
5097
- function trimmedEndIndex(string) {
5098
- var index = string.length;
5099
- while (index-- && reWhitespace.test(string.charAt(index))) {
5100
- }
5101
- return index;
5102
- }
5103
- _trimmedEndIndex = trimmedEndIndex;
5104
- return _trimmedEndIndex;
5090
+ var reWhitespace = /\s/;
5091
+ function trimmedEndIndex$1(string) {
5092
+ var index = string.length;
5093
+ while (index-- && reWhitespace.test(string.charAt(index))) {
5094
+ }
5095
+ return index;
5105
5096
  }
5097
+ var _trimmedEndIndex = trimmedEndIndex$1;
5106
5098
 
5107
- var _baseTrim;
5108
- var hasRequired_baseTrim;
5109
-
5110
- function require_baseTrim () {
5111
- if (hasRequired_baseTrim) return _baseTrim;
5112
- hasRequired_baseTrim = 1;
5113
- var trimmedEndIndex = require_trimmedEndIndex();
5114
- var reTrimStart = /^\s+/;
5115
- function baseTrim(string) {
5116
- return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
5117
- }
5118
- _baseTrim = baseTrim;
5119
- return _baseTrim;
5099
+ var trimmedEndIndex = _trimmedEndIndex;
5100
+ var reTrimStart = /^\s+/;
5101
+ function baseTrim$1(string) {
5102
+ return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
5120
5103
  }
5104
+ var _baseTrim = baseTrim$1;
5121
5105
 
5122
- var baseTrim = require_baseTrim(), isObject$7 = isObject_1, isSymbol$1 = isSymbol_1;
5106
+ var baseTrim = _baseTrim, isObject$7 = isObject_1, isSymbol$1 = isSymbol_1;
5123
5107
  var NAN = 0 / 0;
5124
5108
  var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
5125
5109
  var reIsBinary = /^0b[01]+$/i;
@@ -8575,7 +8559,7 @@ var hasRequiredTrim;
8575
8559
  function requireTrim () {
8576
8560
  if (hasRequiredTrim) return trim_1;
8577
8561
  hasRequiredTrim = 1;
8578
- var baseToString = _baseToString, baseTrim = require_baseTrim(), castSlice = require_castSlice(), charsEndIndex = require_charsEndIndex(), charsStartIndex = require_charsStartIndex(), stringToArray = require_stringToArray(), toString = toString_1;
8562
+ var baseToString = _baseToString, baseTrim = _baseTrim, castSlice = require_castSlice(), charsEndIndex = require_charsEndIndex(), charsStartIndex = require_charsStartIndex(), stringToArray = require_stringToArray(), toString = toString_1;
8579
8563
  function trim(string, chars, guard) {
8580
8564
  string = toString(string);
8581
8565
  if (string && (guard || chars === void 0)) {
@@ -66683,11 +66667,23 @@ const MFAOptions = (props) => {
66683
66667
  );
66684
66668
  });
66685
66669
  }),
66686
- /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { style: { color: "#666", fontSize: 13, marginBottom: 12 }, children: [
66687
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { color: "#E32727", fontSize: 13 }, children: "*" }),
66688
- " ",
66689
- __("Required")
66690
- ] }),
66670
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(
66671
+ "span",
66672
+ {
66673
+ style: {
66674
+ color: "#666",
66675
+ fontSize: tokens.FontSize.Small,
66676
+ marginBottom: tokens.Spacing.XSmall,
66677
+ display: "inline-block",
66678
+ marginTop: tokens.Spacing.Tiny
66679
+ },
66680
+ children: [
66681
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { color: "#E32727", fontSize: 13 }, children: "*" }),
66682
+ " ",
66683
+ __("Required")
66684
+ ]
66685
+ }
66686
+ ),
66691
66687
  isSubmitted && _isEmpty(selectedOption) && /* @__PURE__ */ jsxRuntimeExports.jsxs("section", { role: "alert", style: styles.errorContent, children: [
66692
66688
  /* @__PURE__ */ jsxRuntimeExports.jsx(AttentionFilled, { color: tokens.Color.Error300 }),
66693
66689
  /* @__PURE__ */ jsxRuntimeExports.jsx("p", { style: styles.errorMessage, children: isSAS ? __("Account selection is required.") : __("Choose an option") })
@@ -66708,7 +66704,7 @@ const MFAOptions = (props) => {
66708
66704
  const getStyles$Z = (tokens) => {
66709
66705
  return {
66710
66706
  label: {
66711
- marginBottom: tokens.Spacing.Medium
66707
+ marginBottom: tokens.Spacing.Small
66712
66708
  },
66713
66709
  optionLabel: {
66714
66710
  textAlign: "left",
@@ -67064,7 +67060,7 @@ const MFAForm = (props) => {
67064
67060
  const mfaCredentials = _get(currentMember, "mfa.credentials", []);
67065
67061
  const mfaType = getMFAFieldType(mfaCredentials);
67066
67062
  const isSAS = mfaCredentials[0].external_id === "single_account_select";
67067
- const styles = getStyles$W(tokens, isSAS);
67063
+ const styles = getStyles$W(tokens);
67068
67064
  const handleSubmit = (credentials) => {
67069
67065
  const posthogEventMetadata = {
67070
67066
  institution_guid: institution.guid,
@@ -67114,11 +67110,11 @@ const MFAForm = (props) => {
67114
67110
  );
67115
67111
  }
67116
67112
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles.container, children: [
67117
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.title, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ViewTitle, { title: isSAS ? __("Select an account") : __("Verify identity") }) }),
67113
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.title, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ViewTitle, { title: isSAS ? __("Account selection") : __("Verify identity") }) }),
67118
67114
  /* @__PURE__ */ jsxRuntimeExports.jsx("form", { onSubmit: (e) => e.preventDefault(), children: Form })
67119
67115
  ] });
67120
67116
  };
67121
- const getStyles$W = (tokens, isSAS) => {
67117
+ const getStyles$W = (tokens) => {
67122
67118
  return {
67123
67119
  container: {
67124
67120
  display: "flex",
@@ -67127,7 +67123,7 @@ const getStyles$W = (tokens, isSAS) => {
67127
67123
  height: "100%"
67128
67124
  },
67129
67125
  title: {
67130
- marginBottom: isSAS ? tokens.Spacing.Medium : tokens.Spacing.Tiny
67126
+ marginBottom: tokens.Spacing.XLarge
67131
67127
  },
67132
67128
  credentialLabel: {
67133
67129
  lineHeight: tokens.LineHeight.Paragraph,
@@ -80208,7 +80204,7 @@ const frCa = {
80208
80204
  "Enter account number": "Entrer le numéro de compte",
80209
80205
  Recommended: Recommended$1,
80210
80206
  Manual: Manual$1,
80211
- "Select an account": "Sélectionner un compte",
80207
+ "Account selection": "Sélection du compte",
80212
80208
  "Loading …": "Chargement …",
80213
80209
  "Load more institutions": "Charger plus d'institutions",
80214
80210
  "Log in at %1": "Connectez-vous à %1",
@@ -80703,7 +80699,7 @@ const es = {
80703
80699
  "Enter account number": "Ingrese el número de cuenta",
80704
80700
  Recommended: Recommended,
80705
80701
  Manual: Manual,
80706
- "Select an account": "Seleccione una cuenta",
80702
+ "Account selection": "Selección de cuenta",
80707
80703
  "Loading …": "Cargando …",
80708
80704
  "Load more institutions": "Cargar más instituciones",
80709
80705
  "Log in at %1": "Iniciar sesión en %1",