@mxenabled/connect-widget 0.0.11 → 0.0.12

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
@@ -52027,9 +52027,30 @@ const RequestInstitution = React__default.forwardRef((props, requestInstitutionR
52027
52027
  institutionWebsite: "",
52028
52028
  institutionLogin: ""
52029
52029
  };
52030
+ const schema = {
52031
+ email: {
52032
+ label: __("Your email address"),
52033
+ required: true,
52034
+ pattern: "email"
52035
+ },
52036
+ institutionName: {
52037
+ label: __("Institution name"),
52038
+ required: true
52039
+ },
52040
+ institutionWebsite: {
52041
+ label: __("Institution website"),
52042
+ required: true,
52043
+ pattern: "url"
52044
+ },
52045
+ institutionLogin: {
52046
+ label: __("Institution login page (optional)"),
52047
+ required: false,
52048
+ pattern: "url"
52049
+ }
52050
+ };
52030
52051
  const { handleTextInputChange, handleSubmit, values, errors } = useForm(
52031
52052
  () => setSubmitting(true),
52032
- schema$5,
52053
+ schema,
52033
52054
  initialForm
52034
52055
  );
52035
52056
  const tokens = useTokens();
@@ -52067,10 +52088,11 @@ const RequestInstitution = React__default.forwardRef((props, requestInstitutionR
52067
52088
  autoComplete: "off",
52068
52089
  autoFocus: !user.email,
52069
52090
  disabled: submitting,
52070
- error: errors.email,
52091
+ error: !!errors.email,
52071
52092
  fullWidth: true,
52072
52093
  helperText: errors.email,
52073
- label: schema$5.email.label,
52094
+ id: "email",
52095
+ label: schema.email.label,
52074
52096
  name: "email",
52075
52097
  onChange: handleTextInputChange,
52076
52098
  value: values.email
@@ -52080,12 +52102,13 @@ const RequestInstitution = React__default.forwardRef((props, requestInstitutionR
52080
52102
  ProtectedTextField,
52081
52103
  {
52082
52104
  autoComplete: "off",
52083
- autoFocus: user.email,
52105
+ autoFocus: !!user.email,
52084
52106
  disabled: submitting,
52085
- error: errors.institutionName,
52107
+ error: !!errors.institutionName,
52086
52108
  fullWidth: true,
52087
52109
  helperText: errors.institutionName,
52088
- label: schema$5.institutionName.label,
52110
+ id: "institutionName",
52111
+ label: schema.institutionName.label,
52089
52112
  name: "institutionName",
52090
52113
  onChange: handleTextInputChange,
52091
52114
  value: values.institutionName
@@ -52096,10 +52119,11 @@ const RequestInstitution = React__default.forwardRef((props, requestInstitutionR
52096
52119
  {
52097
52120
  autoComplete: "off",
52098
52121
  disabled: submitting,
52099
- error: errors.institutionWebsite,
52122
+ error: !!errors.institutionWebsite,
52100
52123
  fullWidth: true,
52101
52124
  helperText: errors.institutionWebsite,
52102
- label: schema$5.institutionWebsite.label,
52125
+ id: "institutionWebsite",
52126
+ label: schema.institutionWebsite.label,
52103
52127
  name: "institutionWebsite",
52104
52128
  onChange: handleTextInputChange,
52105
52129
  value: values.institutionWebsite
@@ -52108,13 +52132,14 @@ const RequestInstitution = React__default.forwardRef((props, requestInstitutionR
52108
52132
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.input, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
52109
52133
  ProtectedTextField,
52110
52134
  {
52111
- "aria-label": schema$5.institutionLogin.label,
52135
+ "aria-label": schema.institutionLogin.label,
52112
52136
  autoComplete: "off",
52113
52137
  disabled: submitting,
52114
- error: errors.institutionLogin,
52138
+ error: !!errors.institutionLogin,
52115
52139
  fullWidth: true,
52116
52140
  helperText: errors.institutionLogin,
52117
- label: schema$5.institutionLogin.label,
52141
+ id: "institutionLogin",
52142
+ label: schema.institutionLogin.label,
52118
52143
  name: "institutionLogin",
52119
52144
  onChange: handleTextInputChange,
52120
52145
  value: values.institutionLogin
@@ -52190,27 +52215,6 @@ RequestInstitution.propTypes = {
52190
52215
  user: PropTypes$1.object.isRequired
52191
52216
  };
52192
52217
  RequestInstitution.displayName = "RequestInstitution";
52193
- const schema$5 = {
52194
- email: {
52195
- label: __("Your email address"),
52196
- required: true,
52197
- pattern: "email"
52198
- },
52199
- institutionName: {
52200
- label: __("Institution name"),
52201
- required: true
52202
- },
52203
- institutionWebsite: {
52204
- label: __("Institution website"),
52205
- required: true,
52206
- pattern: "url"
52207
- },
52208
- institutionLogin: {
52209
- label: __("Institution login page (optional)"),
52210
- required: false,
52211
- pattern: "url"
52212
- }
52213
- };
52214
52218
 
52215
52219
  const GeneralSupport = React__default.forwardRef((props, generalSupportRef) => {
52216
52220
  const { handleClose, handleTicketSuccess, user } = props;
@@ -52222,9 +52226,24 @@ const GeneralSupport = React__default.forwardRef((props, generalSupportRef) => {
52222
52226
  issueDescription: "",
52223
52227
  issueDetails: ""
52224
52228
  };
52229
+ const schema = {
52230
+ email: {
52231
+ label: __("Your email address"),
52232
+ required: true,
52233
+ pattern: "email"
52234
+ },
52235
+ issueDescription: {
52236
+ label: __("Brief description of the issue"),
52237
+ required: true
52238
+ },
52239
+ issueDetails: {
52240
+ label: __("Details of the issue"),
52241
+ required: true
52242
+ }
52243
+ };
52225
52244
  const { handleTextInputChange, handleSubmit, values, errors } = useForm(
52226
52245
  () => setSubmitting(true),
52227
- schema$4,
52246
+ schema,
52228
52247
  initialForm
52229
52248
  );
52230
52249
  const tokens = useTokens();
@@ -52258,10 +52277,11 @@ const GeneralSupport = React__default.forwardRef((props, generalSupportRef) => {
52258
52277
  autoComplete: "off",
52259
52278
  autoFocus: !user.email,
52260
52279
  disabled: submitting,
52261
- error: errors.email,
52280
+ error: !!errors.email,
52262
52281
  fullWidth: true,
52263
52282
  helperText: errors.email,
52264
- label: schema$4.email.label,
52283
+ id: "email",
52284
+ label: schema.email.label,
52265
52285
  name: "email",
52266
52286
  onChange: handleTextInputChange,
52267
52287
  value: values.email
@@ -52273,10 +52293,11 @@ const GeneralSupport = React__default.forwardRef((props, generalSupportRef) => {
52273
52293
  autoComplete: "off",
52274
52294
  autoFocus: !!user.email,
52275
52295
  disabled: submitting,
52276
- error: errors.issueDescription,
52296
+ error: !!errors.issueDescription,
52277
52297
  fullWidth: true,
52278
52298
  helperText: errors.issueDescription,
52279
- label: schema$4.issueDescription.label,
52299
+ id: "issueDescription",
52300
+ label: schema.issueDescription.label,
52280
52301
  name: "issueDescription",
52281
52302
  onChange: handleTextInputChange,
52282
52303
  value: values.issueDescription
@@ -52287,10 +52308,11 @@ const GeneralSupport = React__default.forwardRef((props, generalSupportRef) => {
52287
52308
  {
52288
52309
  autoComplete: "off",
52289
52310
  disabled: submitting,
52290
- error: errors.issueDetails,
52311
+ error: !!errors.issueDetails,
52291
52312
  fullWidth: true,
52292
52313
  helperText: errors.issueDetails,
52293
- label: schema$4.issueDetails.label,
52314
+ id: "issueDetails",
52315
+ label: schema.issueDetails.label,
52294
52316
  multiline: true,
52295
52317
  name: "issueDetails",
52296
52318
  onChange: handleTextInputChange,
@@ -52364,21 +52386,6 @@ GeneralSupport.propTypes = {
52364
52386
  user: PropTypes$1.object.isRequired
52365
52387
  };
52366
52388
  GeneralSupport.displayName = "GeneralSupport";
52367
- const schema$4 = {
52368
- email: {
52369
- label: __("Your email address"),
52370
- required: true,
52371
- pattern: "email"
52372
- },
52373
- issueDescription: {
52374
- label: __("Brief description of the issue"),
52375
- required: true
52376
- },
52377
- issueDetails: {
52378
- label: __("Details of the issue"),
52379
- required: true
52380
- }
52381
- };
52382
52389
 
52383
52390
  const SupportSuccess = React__default.forwardRef((props, supportSuccessRef) => {
52384
52391
  const { email, handleClose } = props;
@@ -52813,8 +52820,10 @@ const Search$2 = React__default.forwardRef((props, navigationRef) => {
52813
52820
  }
52814
52821
  ) }) : null
52815
52822
  },
52823
+ disabled: state.currentView === SEARCH_VIEWS.LOADING,
52816
52824
  fullWidth: true,
52817
52825
  id: "mx-connect-search",
52826
+ inputProps: { "aria-label": __("Enter institution name"), "data-test": "search-input" },
52818
52827
  inputRef: searchInput,
52819
52828
  label: "",
52820
52829
  name: "Search",
@@ -53695,13 +53704,13 @@ const DefaultMFA = (props) => {
53695
53704
  /* @__PURE__ */ jsxRuntimeExports.jsx(
53696
53705
  ProtectedTextField,
53697
53706
  {
53698
- "aria-label": credential.label,
53699
53707
  disabled: isSubmitting,
53700
53708
  error: true,
53701
53709
  helperText: errors[credential.label],
53710
+ inputProps: { "aria-label": credential.label },
53711
+ inputRef: i === 0 ? buttonRef : null,
53702
53712
  name: credential.label,
53703
53713
  onChange: handleMFACodeChange,
53704
- ref: i === 0 ? buttonRef : null,
53705
53714
  value: values[credential.label] || ""
53706
53715
  }
53707
53716
  )
@@ -57266,7 +57275,7 @@ const usePasswordInputValidation = () => {
57266
57275
  "aria-label": showPassword ? __("Hide password") : __("Show password"),
57267
57276
  edge: "end",
57268
57277
  onClick: handleTogglePassword,
57269
- children: showPassword ? /* @__PURE__ */ jsxRuntimeExports.jsx(b, { name: "visibility_off" }) : /* @__PURE__ */ jsxRuntimeExports.jsx(b, { name: "visibility" })
57278
+ children: showPassword ? /* @__PURE__ */ jsxRuntimeExports.jsx(b, { className: "material-symbols-rounded", name: "visibility_off" }) : /* @__PURE__ */ jsxRuntimeExports.jsx(b, { className: "material-symbols-rounded", name: "visibility" })
57270
57279
  }
57271
57280
  ) })
57272
57281
  )
@@ -57596,13 +57605,14 @@ const Credentials = React__default.forwardRef(
57596
57605
  ProtectedTextField,
57597
57606
  {
57598
57607
  InputProps: { endAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(PasswordShowButton, {}) },
57599
- "aria-label": field.label,
57600
57608
  autoCapitalize: "none",
57601
57609
  autoComplete: "new-password",
57602
57610
  disabled: isProcessingMember,
57603
57611
  error: validations.isError || !!errors[field.field_name],
57604
57612
  fullWidth: true,
57605
57613
  helperText: validations.isCapsLockOn && __("Caps lock is on") || validations.validateSpaceMessage || errors[field.field_name],
57614
+ id: field.field_name,
57615
+ inputProps: { "aria-label": field.label },
57606
57616
  label: field.label,
57607
57617
  name: field.field_name,
57608
57618
  onBlur: handleBlur,
@@ -57619,7 +57629,6 @@ const Credentials = React__default.forwardRef(
57619
57629
  ) }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: errors[field.field_name] ? styles.inputError : styles.input, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
57620
57630
  ProtectedTextField,
57621
57631
  {
57622
- "aria-label": __("Enter your %1", field.label),
57623
57632
  autoCapitalize: "none",
57624
57633
  autoComplete: "new-password",
57625
57634
  autoFocus: i === 0,
@@ -57627,6 +57636,8 @@ const Credentials = React__default.forwardRef(
57627
57636
  error: !!errors[field.field_name],
57628
57637
  fullWidth: true,
57629
57638
  helperText: errors[field.field_name],
57639
+ id: field.field_name,
57640
+ inputProps: { "aria-label": __("Enter your %1", field.label) },
57630
57641
  label: field.label,
57631
57642
  name: field.field_name,
57632
57643
  onChange: handleUserNameTextChange,
@@ -60097,19 +60108,19 @@ const getStyles$n = (tokens) => {
60097
60108
  };
60098
60109
  };
60099
60110
 
60100
- const schema$3 = {
60101
- routingNumber: {
60102
- label: __("Routing number"),
60103
- required: true,
60104
- pattern: "digits",
60105
- length: 9
60106
- }
60107
- };
60108
60111
  const RoutingNumber = (props) => {
60109
60112
  const { accountDetails, onContinue, stepToIAV } = props;
60110
60113
  const connectConfig = useSelector(selectConnectConfig);
60111
60114
  const includeIdentity = connectConfig?.include_identity ?? false;
60112
60115
  const { api } = useApi();
60116
+ const schema = {
60117
+ routingNumber: {
60118
+ label: __("Routing number"),
60119
+ required: true,
60120
+ pattern: "digits",
60121
+ length: 9
60122
+ }
60123
+ };
60113
60124
  const containerRef = useRef(null);
60114
60125
  useAnalyticsPath(...PageviewInfo.CONNECT_MICRODEPOSITS_ROUTING_NUMBER);
60115
60126
  const tokens = useTokens();
@@ -60123,7 +60134,7 @@ const RoutingNumber = (props) => {
60123
60134
  const initialForm = { routingNumber: accountDetails?.routing_number ?? "" };
60124
60135
  const { handleTextInputChange, handleSubmit, values, errors } = useForm(
60125
60136
  () => setSubmitting(true),
60126
- schema$3,
60137
+ schema,
60127
60138
  initialForm
60128
60139
  );
60129
60140
  useEffect(() => {
@@ -60207,11 +60218,11 @@ const RoutingNumber = (props) => {
60207
60218
  {
60208
60219
  autoComplete: "off",
60209
60220
  autoFocus: true,
60210
- "data-test": "routing-number-input",
60211
60221
  disabled: submitting,
60212
- error: errors.routingNumber ?? routingBlocked,
60222
+ error: !!errors.routingNumber || routingBlocked,
60213
60223
  fullWidth: true,
60214
60224
  helperText: errors.routingNumber ?? routingBlocked,
60225
+ inputProps: { "data-test": "routing-number-input" },
60215
60226
  label: __("Routing number"),
60216
60227
  name: "routingNumber",
60217
60228
  onChange: handleTextInputChange,
@@ -60314,21 +60325,6 @@ HowItWorks.propTypes = {
60314
60325
  onContinue: PropTypes$1.func.isRequired
60315
60326
  };
60316
60327
 
60317
- const schema$2 = {
60318
- firstName: {
60319
- label: __("First name"),
60320
- required: true
60321
- },
60322
- lastName: {
60323
- label: __("Last name"),
60324
- required: true
60325
- },
60326
- email: {
60327
- label: __("Email"),
60328
- required: true,
60329
- pattern: "email"
60330
- }
60331
- };
60332
60328
  const PersonalInfoForm = ({ accountDetails, onContinue }) => {
60333
60329
  const containerRef = useRef(null);
60334
60330
  useAnalyticsPath(...PageviewInfo.CONNECT_MICRODEPOSITS_PERSONAL_INFO_FORM);
@@ -60338,9 +60334,24 @@ const PersonalInfoForm = ({ accountDetails, onContinue }) => {
60338
60334
  lastName: accountDetails.last_name ?? "",
60339
60335
  email: accountDetails.email ?? ""
60340
60336
  };
60337
+ const schema = {
60338
+ firstName: {
60339
+ label: __("First name"),
60340
+ required: true
60341
+ },
60342
+ lastName: {
60343
+ label: __("Last name"),
60344
+ required: true
60345
+ },
60346
+ email: {
60347
+ label: __("Email"),
60348
+ required: true,
60349
+ pattern: "email"
60350
+ }
60351
+ };
60341
60352
  const { handleTextInputChange, handleSubmit, values, errors } = useForm(
60342
60353
  () => setIsSubmitting(true),
60343
- schema$2,
60354
+ schema,
60344
60355
  initialFormValues
60345
60356
  );
60346
60357
  const tokens = useTokens();
@@ -60370,11 +60381,11 @@ const PersonalInfoForm = ({ accountDetails, onContinue }) => {
60370
60381
  ProtectedTextField,
60371
60382
  {
60372
60383
  autoFocus: true,
60373
- "data-test": "first-name-input",
60374
60384
  error: errors.firstName,
60375
60385
  fullWidth: true,
60376
- helperText: errors.firstName,
60377
- label: schema$2.firstName.label,
60386
+ helperText: !!errors.firstName,
60387
+ inputProps: { "data-test": "first-name-input" },
60388
+ label: schema.firstName.label,
60378
60389
  name: "firstName",
60379
60390
  onChange: handleTextInputChange,
60380
60391
  value: values.firstName
@@ -60383,11 +60394,11 @@ const PersonalInfoForm = ({ accountDetails, onContinue }) => {
60383
60394
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.inputStyle, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
60384
60395
  ProtectedTextField,
60385
60396
  {
60386
- "data-test": "last-name-input",
60387
60397
  error: errors.lastName,
60388
60398
  fullWidth: true,
60389
- helperText: errors.lastName,
60390
- label: schema$2.lastName.label,
60399
+ helperText: !!errors.lastName,
60400
+ inputProps: { "data-test": "last-name-input" },
60401
+ label: schema.lastName.label,
60391
60402
  name: "lastName",
60392
60403
  onChange: handleTextInputChange,
60393
60404
  value: values.lastName
@@ -60396,11 +60407,11 @@ const PersonalInfoForm = ({ accountDetails, onContinue }) => {
60396
60407
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.inputStyle, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
60397
60408
  ProtectedTextField,
60398
60409
  {
60399
- "data-test": "email-input",
60400
- error: errors.email,
60410
+ error: !!errors.email,
60401
60411
  fullWidth: true,
60402
60412
  helperText: errors.email,
60403
- label: schema$2.email.label,
60413
+ inputProps: { "data-test": "email-input" },
60414
+ label: schema.email.label,
60404
60415
  name: "email",
60405
60416
  onChange: handleTextInputChange,
60406
60417
  value: values.email
@@ -60442,20 +60453,6 @@ PersonalInfoForm.propTypes = {
60442
60453
  onContinue: PropTypes$1.func.isRequired
60443
60454
  };
60444
60455
 
60445
- const schema$1 = {
60446
- accountNumber: {
60447
- label: __("Account number"),
60448
- required: true,
60449
- pattern: "digits",
60450
- equalTo: "accountNumberConfirm"
60451
- },
60452
- accountNumberConfirm: {
60453
- label: __("Confirm account number"),
60454
- required: true,
60455
- pattern: "digits",
60456
- equalTo: "accountNumber"
60457
- }
60458
- };
60459
60456
  const AccountInfo = (props) => {
60460
60457
  const { accountDetails, focus, onContinue } = props;
60461
60458
  const containerRef = useRef(null);
@@ -60468,9 +60465,23 @@ const AccountInfo = (props) => {
60468
60465
  accountNumber: accountDetails?.account_number ?? "",
60469
60466
  accountNumberConfirm: accountDetails?.account_number ?? ""
60470
60467
  };
60468
+ const schema = {
60469
+ accountNumber: {
60470
+ label: __("Account number"),
60471
+ required: true,
60472
+ pattern: "digits",
60473
+ equalTo: "accountNumberConfirm"
60474
+ },
60475
+ accountNumberConfirm: {
60476
+ label: __("Confirm account number"),
60477
+ required: true,
60478
+ pattern: "digits",
60479
+ equalTo: "accountNumber"
60480
+ }
60481
+ };
60471
60482
  const { handleTextInputChange, handleSubmit, values, errors } = useForm(
60472
60483
  handleContinue,
60473
- schema$1,
60484
+ schema,
60474
60485
  initialForm
60475
60486
  );
60476
60487
  const tokens = useTokens();
@@ -60527,11 +60538,11 @@ const AccountInfo = (props) => {
60527
60538
  {
60528
60539
  autoComplete: "off",
60529
60540
  autoFocus: focus === AccountFields.ACCOUNT_NUMBER,
60530
- "data-test": "account-number-input",
60531
- error: errors.accountNumber,
60541
+ error: !!errors.accountNumber,
60532
60542
  fullWidth: true,
60533
60543
  helperText: errors.accountNumber,
60534
- label: schema$1.accountNumber.label,
60544
+ inputProps: { "data-test": "account-number-input" },
60545
+ label: schema.accountNumber.label,
60535
60546
  name: "accountNumber",
60536
60547
  onChange: handleTextInputChange,
60537
60548
  type: "tel",
@@ -60542,11 +60553,11 @@ const AccountInfo = (props) => {
60542
60553
  ProtectedTextField,
60543
60554
  {
60544
60555
  autoComplete: "off",
60545
- "data-test": "confirm-account-number-input",
60546
- error: errors.accountNumberConfirm,
60556
+ error: !!errors.accountNumberConfirm,
60547
60557
  fullWidth: true,
60548
60558
  helperText: errors.accountNumberConfirm,
60549
- label: schema$1.accountNumberConfirm.label,
60559
+ inputProps: { "data-test": "confirm-account-number-input" },
60560
+ label: schema.accountNumberConfirm.label,
60550
60561
  name: "accountNumberConfirm",
60551
60562
  onChange: handleTextInputChange,
60552
60563
  type: "tel",
@@ -60947,22 +60958,6 @@ ComeBack.propTypes = {
60947
60958
  onDone: PropTypes$1.func.isRequired
60948
60959
  };
60949
60960
 
60950
- const schema = {
60951
- firstAmount: {
60952
- label: __("Amount 1"),
60953
- pattern: "number",
60954
- required: true,
60955
- min: 0.01,
60956
- max: 0.09
60957
- },
60958
- secondAmount: {
60959
- label: __("Amount 2"),
60960
- pattern: "number",
60961
- required: true,
60962
- min: 0.01,
60963
- max: 0.09
60964
- }
60965
- };
60966
60961
  const ACTIONS$1 = {
60967
60962
  SET_SUBMITTING: "verifyDeposits/set_submitting",
60968
60963
  SUBMITTING_ERROR: "verifyDeposits/submitting_error"
@@ -60982,6 +60977,22 @@ const VerifyDeposits = ({ microdeposit, onSuccess }) => {
60982
60977
  useAnalyticsPath(...PageviewInfo.CONNECT_MICRODEPOSITS_VERIFY_DEPOSITS);
60983
60978
  const { api } = useApi();
60984
60979
  const initialForm = { firstAmount: "", secondAmount: "" };
60980
+ const schema = {
60981
+ firstAmount: {
60982
+ label: __("Amount 1"),
60983
+ pattern: "number",
60984
+ required: true,
60985
+ min: 0.01,
60986
+ max: 0.09
60987
+ },
60988
+ secondAmount: {
60989
+ label: __("Amount 2"),
60990
+ pattern: "number",
60991
+ required: true,
60992
+ min: 0.01,
60993
+ max: 0.09
60994
+ }
60995
+ };
60985
60996
  const { handleTextInputChange, handleSubmit, values, errors } = useForm(
60986
60997
  () => dispatch({ type: ACTIONS$1.SET_SUBMITTING }),
60987
60998
  schema,
@@ -61033,10 +61044,12 @@ const VerifyDeposits = ({ microdeposit, onSuccess }) => {
61033
61044
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.firstInput, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
61034
61045
  ProtectedTextField,
61035
61046
  {
61047
+ FormHelperTextProps: { id: "firstAmount-error" },
61036
61048
  autoComplete: "off",
61037
- "data-test": "amount-1-input",
61038
- error: errors.firstAmount,
61049
+ error: !!errors.firstAmount,
61039
61050
  helperText: errors.firstAmount,
61051
+ id: schema.firstAmount.label,
61052
+ inputProps: { "data-test": "amount-1-input" },
61040
61053
  label: schema.firstAmount.label,
61041
61054
  name: "firstAmount",
61042
61055
  onChange: handleTextInputChange,
@@ -61047,10 +61060,12 @@ const VerifyDeposits = ({ microdeposit, onSuccess }) => {
61047
61060
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.secondInput, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
61048
61061
  ProtectedTextField,
61049
61062
  {
61063
+ FormHelperTextProps: { id: "secondAmount-error" },
61050
61064
  autoComplete: "off",
61051
- "data-test": "amount-2-input",
61052
- error: errors.secondAmount,
61065
+ error: !!errors.secondAmount,
61053
61066
  helperText: errors.secondAmount,
61067
+ id: schema.secondAmount.label,
61068
+ inputProps: { "data-test": "amount-2-input" },
61054
61069
  label: schema.secondAmount.label,
61055
61070
  name: "secondAmount",
61056
61071
  onChange: handleTextInputChange,
@@ -62545,11 +62560,13 @@ const ManualAccountForm = React__default.forwardRef(
62545
62560
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.dateInput, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
62546
62561
  ProtectedTextField,
62547
62562
  {
62563
+ FormHelperTextProps: { id: field.name + "-error" },
62548
62564
  autoFocus: shouldFocus(field.name, returnField, i),
62549
- "data-test": "date-input",
62550
- error: errors[field.name],
62565
+ error: !!errors[field.name],
62551
62566
  fullWidth: true,
62552
62567
  helperText: errors[field.name],
62568
+ id: field.name,
62569
+ inputProps: { "data-test": "date-input" },
62553
62570
  label: field.label,
62554
62571
  name: field.name,
62555
62572
  onChange: () => {
@@ -62580,11 +62597,13 @@ const ManualAccountForm = React__default.forwardRef(
62580
62597
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.textInput, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
62581
62598
  ProtectedTextField,
62582
62599
  {
62600
+ FormHelperTextProps: { id: field.name + "-error" },
62583
62601
  autoFocus: shouldFocus(field.name, returnField, i),
62584
- "data-test": `text-input-${field.name}`,
62585
- error: errors[field.name],
62602
+ error: !!errors[field.name],
62586
62603
  fullWidth: true,
62587
62604
  helperText: errors[field.name],
62605
+ id: field.name,
62606
+ inputProps: { "data-test": `text-input-${field.name}` },
62588
62607
  label: field.label,
62589
62608
  name: field.name,
62590
62609
  onChange: handleTextInputChange,