@mxenabled/connect-widget 1.2.0 → 1.2.1

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
@@ -66853,7 +66853,30 @@ const DefaultMFA = (props) => {
66853
66853
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(React__default.Fragment, { children: [
66854
66854
  mfaCredentials.map((credential, i) => {
66855
66855
  const metaData = credential.meta_data || credential.image_data;
66856
+ const asteriskColor = "#E32727";
66856
66857
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: styles.label, children: [
66858
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(
66859
+ Typography$1,
66860
+ {
66861
+ id: `label-for-mfa-text-field`,
66862
+ style: styles.challengeLabel,
66863
+ variant: "subtitle1",
66864
+ children: [
66865
+ credential.label,
66866
+ " ",
66867
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
66868
+ Typography$1,
66869
+ {
66870
+ component: "span",
66871
+ sx: {
66872
+ color: asteriskColor
66873
+ },
66874
+ children: "*"
66875
+ }
66876
+ )
66877
+ ]
66878
+ }
66879
+ ),
66857
66880
  metaData ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.metaData, children: /* @__PURE__ */ jsxRuntimeExports.jsx("img", { alt: __("Challenge Image"), src: metaData, style: styles.mfaImage }) }) : null,
66858
66881
  /* @__PURE__ */ jsxRuntimeExports.jsx(
66859
66882
  ProtectedTextField,
@@ -66862,9 +66885,8 @@ const DefaultMFA = (props) => {
66862
66885
  error: !!errors[credential.label],
66863
66886
  fullWidth: true,
66864
66887
  helperText: errors[credential.label],
66865
- inputProps: { "aria-label": credential.label },
66888
+ inputProps: { "aria-labelledby": `label-for-mfa-text-field` },
66866
66889
  inputRef: i === 0 ? buttonRef : null,
66867
- label: credential.label,
66868
66890
  name: credential.label,
66869
66891
  onChange: handleMFACodeChange,
66870
66892
  required: true,
@@ -66897,10 +66919,11 @@ const DefaultMFA = (props) => {
66897
66919
  const getStyles$Y = (tokens) => {
66898
66920
  return {
66899
66921
  label: {
66900
- marginTop: tokens.Spacing.XLarge
66922
+ marginTop: tokens.Spacing.Medium
66901
66923
  },
66902
66924
  challengeLabel: {
66903
- marginBottom: tokens.Spacing.Tiny
66925
+ marginBottom: tokens.Spacing.Tiny,
66926
+ lineHeight: "24px"
66904
66927
  },
66905
66928
  metaData: {
66906
66929
  display: "flex",
@@ -67157,7 +67180,7 @@ const getStyles$W = (tokens) => {
67157
67180
  height: "100%"
67158
67181
  },
67159
67182
  title: {
67160
- marginBottom: tokens.Spacing.XLarge
67183
+ marginBottom: tokens.Spacing.Medium
67161
67184
  },
67162
67185
  credentialLabel: {
67163
67186
  lineHeight: tokens.LineHeight.Paragraph,