@thecb/components 6.1.2 → 6.1.4-beta.2

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.esm.js CHANGED
@@ -22542,7 +22542,7 @@ var fallbackValues$i = {
22542
22542
  };
22543
22543
 
22544
22544
  var _excluded$p = ["showErrors", "themeValues"],
22545
- _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "extraStyles"];
22545
+ _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocomplete", "extraStyles"];
22546
22546
  var InputField = styled.input.withConfig({
22547
22547
  displayName: "FormInput__InputField",
22548
22548
  componentId: "sc-l094r1-0"
@@ -22624,6 +22624,7 @@ var FormInput = function FormInput(_ref15) {
22624
22624
  themeValues = _ref15.themeValues,
22625
22625
  background = _ref15.background,
22626
22626
  customHeight = _ref15.customHeight,
22627
+ autocomplete = _ref15.autocomplete,
22627
22628
  extraStyles = _ref15.extraStyles,
22628
22629
  props = _objectWithoutProperties(_ref15, _excluded2);
22629
22630
 
@@ -22701,7 +22702,8 @@ var FormInput = function FormInput(_ref15) {
22701
22702
  "data-qa": labelTextWhenNoError,
22702
22703
  themeValues: themeValues,
22703
22704
  $customHeight: customHeight,
22704
- $extraStyles: extraStyles
22705
+ $extraStyles: extraStyles,
22706
+ autocomplete: autocomplete
22705
22707
  }, props)) : /*#__PURE__*/React.createElement(InputField, _extends({
22706
22708
  "aria-labelledby": createIdFromString(labelTextWhenNoError),
22707
22709
  "aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
@@ -22719,7 +22721,8 @@ var FormInput = function FormInput(_ref15) {
22719
22721
  themeValues: themeValues,
22720
22722
  background: background,
22721
22723
  $customHeight: customHeight,
22722
- $extraStyles: extraStyles
22724
+ $extraStyles: extraStyles,
22725
+ autocomplete: autocomplete
22723
22726
  }, props))), /*#__PURE__*/React.createElement(Stack, {
22724
22727
  direction: "row",
22725
22728
  justify: "space-between"
@@ -34403,7 +34406,8 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
34403
34406
  field = _ref.field,
34404
34407
  fieldActions = _ref.fieldActions,
34405
34408
  showErrors = _ref.showErrors,
34406
- countryCode = _ref.countryCode;
34409
+ countryCode = _ref.countryCode,
34410
+ autocomplete = _ref.autocomplete;
34407
34411
  var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
34408
34412
  var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
34409
34413
  return /*#__PURE__*/React.createElement(FormSelect$1, {
@@ -34413,7 +34417,7 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
34413
34417
  labelTextWhenNoError: labelTextWhenNoError,
34414
34418
  errorMessages: errorMessages,
34415
34419
  showErrors: showErrors,
34416
- autocompleteValue: "address-level1"
34420
+ autocompleteValue: autocomplete
34417
34421
  });
34418
34422
  };
34419
34423
 
@@ -34718,6 +34722,24 @@ const ONLY_NATURALS_ERROR = "error/ONLY_NATURALS";
34718
34722
  const onlyNaturals = createValidator(ONLY_NATURALS, ONLY_NATURALS_ERROR);
34719
34723
  validatorFns[ONLY_NATURALS] = (value, args, form) => /^(\d+)?$/.test(value);
34720
34724
 
34725
+ /*
34726
+ 07/22: experimental expiration date constraint
34727
+ should allow entry of expiration date using "/" character
34728
+ to accommodate browser autofill
34729
+
34730
+ not tested as validation function
34731
+ to validate exp date instead use combo of:
34732
+ required(), hasLength(), isValidMonth(), dateAfterToday()
34733
+ */
34734
+ const ONLY_EXPIRATION_DATE = "validator/ONLY_EXPIRATION_DATE";
34735
+ const ONLY_EXPIRATION_DATE_ERROR = "error/ONLY_EXPIRATION_DATE";
34736
+ const onlyExpirationDate = createValidator(
34737
+ ONLY_EXPIRATION_DATE,
34738
+ ONLY_EXPIRATION_DATE_ERROR
34739
+ );
34740
+ validatorFns[ONLY_EXPIRATION_DATE] = (value, args, form) =>
34741
+ /^(\d?\d?\/?\d?\d?)?$/.test(value);
34742
+
34721
34743
  const NUMBER_LESS_THAN = "validator/NUMBER_LESS_THAN";
34722
34744
  const NUMBER_LESS_THAN_ERROR = "error/NUMBER_LESS_THAN";
34723
34745
  const numberLessThan = createValidator(
@@ -35110,6 +35132,13 @@ const runValidator = (validator, value, form) => {
35110
35132
  };
35111
35133
 
35112
35134
  const _computeErrors = (fieldName, form, validators) => {
35135
+ console.log("field name is", fieldName);
35136
+ console.log("form is", form);
35137
+ console.log("validators are", validators);
35138
+ const validatorsResult = validators.map(v =>
35139
+ runValidator(v, form[fieldName].rawValue, form)
35140
+ );
35141
+ console.log("validators result is", validatorsResult);
35113
35142
  return validators
35114
35143
  .map(v => runValidator(v, form[fieldName].rawValue, form))
35115
35144
  .filter(x => x !== null);
@@ -36469,7 +36498,8 @@ var AddressForm = function AddressForm(_ref) {
36469
36498
  showErrors: showErrors,
36470
36499
  onKeyDown: function onKeyDown(e) {
36471
36500
  return e.key === "Enter" && handleSubmit(e);
36472
- }
36501
+ },
36502
+ autocomplete: "address-line1"
36473
36503
  }), /*#__PURE__*/React.createElement(FormInput$1, {
36474
36504
  labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
36475
36505
  field: fields.street2,
@@ -36477,7 +36507,8 @@ var AddressForm = function AddressForm(_ref) {
36477
36507
  showErrors: showErrors,
36478
36508
  onKeyDown: function onKeyDown(e) {
36479
36509
  return e.key === "Enter" && handleSubmit(e);
36480
- }
36510
+ },
36511
+ autocomplete: "address-line2"
36481
36512
  }), /*#__PURE__*/React.createElement(FormInput$1, {
36482
36513
  labelTextWhenNoError: "City",
36483
36514
  errorMessages: cityErrorMessages,
@@ -36486,7 +36517,8 @@ var AddressForm = function AddressForm(_ref) {
36486
36517
  showErrors: showErrors,
36487
36518
  onKeyDown: function onKeyDown(e) {
36488
36519
  return e.key === "Enter" && handleSubmit(e);
36489
- }
36520
+ },
36521
+ autocomplete: "address-level2"
36490
36522
  }), /*#__PURE__*/React.createElement(FormStateDropdown, {
36491
36523
  labelTextWhenNoError: isUS ? "State" : "State or Province",
36492
36524
  errorMessages: stateProvinceErrorMessages,
@@ -36496,7 +36528,8 @@ var AddressForm = function AddressForm(_ref) {
36496
36528
  showErrors: showErrors,
36497
36529
  onKeyDown: function onKeyDown(e) {
36498
36530
  return e.key === "Enter" && handleSubmit(e);
36499
- }
36531
+ },
36532
+ autocomplete: "address-level1"
36500
36533
  }), /*#__PURE__*/React.createElement(FormInput$1, {
36501
36534
  isNum: isUS,
36502
36535
  formatter: isUS ? zipFormat : null,
@@ -36507,7 +36540,8 @@ var AddressForm = function AddressForm(_ref) {
36507
36540
  showErrors: showErrors,
36508
36541
  onKeyDown: function onKeyDown(e) {
36509
36542
  return e.key === "Enter" && handleSubmit(e);
36510
- }
36543
+ },
36544
+ autocomplete: "postal-code"
36511
36545
  }), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
36512
36546
  name: "address checkbox",
36513
36547
  title: "Save address to wallet",
@@ -36611,7 +36645,8 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
36611
36645
  onKeyDown: function onKeyDown(e) {
36612
36646
  return e.key === "Enter" && handleSubmit(e);
36613
36647
  },
36614
- type: "password"
36648
+ type: "password",
36649
+ autocomplete: "current-password"
36615
36650
  }), /*#__PURE__*/React.createElement(FormInput$1, {
36616
36651
  labelTextWhenNoError: "New password",
36617
36652
  errorMessages: newPasswordErrorMessages,
@@ -36621,7 +36656,8 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
36621
36656
  onKeyDown: function onKeyDown(e) {
36622
36657
  return e.key === "Enter" && handleSubmit(e);
36623
36658
  },
36624
- type: "password"
36659
+ type: "password",
36660
+ autocomplete: "new-password"
36625
36661
  }), /*#__PURE__*/React.createElement(FormInput$1, {
36626
36662
  labelTextWhenNoError: "Confirm password",
36627
36663
  errorMessages: confirmNewPasswordErrorMessages,
@@ -36631,7 +36667,8 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
36631
36667
  onKeyDown: function onKeyDown(e) {
36632
36668
  return e.key === "Enter" && handleSubmit(e);
36633
36669
  },
36634
- type: "password"
36670
+ type: "password",
36671
+ autocomplete: "new-password"
36635
36672
  })), /*#__PURE__*/React.createElement(Box, {
36636
36673
  padding: isMobile ? "1rem 0 0" : "1.5rem 0 0"
36637
36674
  }, /*#__PURE__*/React.createElement(Cluster, {
@@ -36845,7 +36882,8 @@ var EditNameForm = function EditNameForm(_ref) {
36845
36882
  showErrors: showErrors,
36846
36883
  onKeyDown: function onKeyDown(e) {
36847
36884
  return e.key === "Enter" && handleSubmit(e);
36848
- }
36885
+ },
36886
+ autocomplete: "given-name"
36849
36887
  }), /*#__PURE__*/React.createElement(FormInput$1, {
36850
36888
  labelTextWhenNoError: "Last Name",
36851
36889
  errorMessages: lastNameErrorMessages,
@@ -36854,7 +36892,8 @@ var EditNameForm = function EditNameForm(_ref) {
36854
36892
  showErrors: showErrors,
36855
36893
  onKeyDown: function onKeyDown(e) {
36856
36894
  return e.key === "Enter" && handleSubmit(e);
36857
- }
36895
+ },
36896
+ autocomplete: "family-name"
36858
36897
  })));
36859
36898
  };
36860
36899
 
@@ -36921,7 +36960,8 @@ var EditableList = function EditableList(_ref) {
36921
36960
  autoPayMethods = _ref.autoPayMethods,
36922
36961
  _ref$as = _ref.as,
36923
36962
  as = _ref$as === void 0 ? "p" : _ref$as,
36924
- qaPrefix = _ref.qaPrefix;
36963
+ qaPrefix = _ref.qaPrefix,
36964
+ ariaLabel = _ref.ariaLabel;
36925
36965
  var addText = "Add a".concat(itemName[0].match(/[aieouAIEOU]/) ? "n" : "", " ").concat(itemName);
36926
36966
  return /*#__PURE__*/React.createElement(Box, {
36927
36967
  padding: "0rem 0rem 1.5rem 0rem",
@@ -36981,7 +37021,7 @@ var EditableList = function EditableList(_ref) {
36981
37021
  return removeItem(item.id);
36982
37022
  },
36983
37023
  extraStyles: "min-width: 0;",
36984
- "aria-label": "Remove ".concat(itemName)
37024
+ "aria-label": "Remove ".concat(ariaLabel || itemName)
36985
37025
  })), canEdit && /*#__PURE__*/React.createElement(Box, {
36986
37026
  padding: "0 0.5rem",
36987
37027
  border: "2px solid transparent",
@@ -36995,7 +37035,7 @@ var EditableList = function EditableList(_ref) {
36995
37035
  return editItem(item.id);
36996
37036
  },
36997
37037
  extraStyles: "min-width: 0;",
36998
- "aria-label": "Edit ".concat(itemName)
37038
+ "aria-label": "Edit ".concat(ariaLabel || itemName)
36999
37039
  }))));
37000
37040
  })), canAdd && (!maxItems || items.length < maxItems) && /*#__PURE__*/React.createElement(Box, {
37001
37041
  padding: items.length === 0 ? "0" : "1rem 0 0"
@@ -37188,7 +37228,8 @@ var EmailForm = function EmailForm(_ref) {
37188
37228
  onKeyDown: function onKeyDown(e) {
37189
37229
  return e.key === "Enter" && handleSubmit(e);
37190
37230
  },
37191
- isEmail: true
37231
+ isEmail: true,
37232
+ autocomplete: "email"
37192
37233
  }), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
37193
37234
  name: "email checkbox",
37194
37235
  title: "Save email address to wallet",
@@ -37240,7 +37281,8 @@ var ForgotPasswordForm = function ForgotPasswordForm(_ref) {
37240
37281
  onKeyDown: function onKeyDown(e) {
37241
37282
  return e.key === "Enter" && handleSubmit(e);
37242
37283
  },
37243
- isEmail: true
37284
+ isEmail: true,
37285
+ autocomplete: "email"
37244
37286
  });
37245
37287
  };
37246
37288
 
@@ -38902,7 +38944,8 @@ var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
38902
38944
  onKeyDown: function onKeyDown(e) {
38903
38945
  return e.key === "Enter" && handleSubmit(e);
38904
38946
  },
38905
- disabled: namesDisabled
38947
+ disabled: namesDisabled,
38948
+ autocomplete: "given-name"
38906
38949
  }), /*#__PURE__*/React.createElement(FormInput$1, {
38907
38950
  labelTextWhenNoError: "Last Name",
38908
38951
  errorMessages: lastNameErrorMessages,
@@ -38912,7 +38955,8 @@ var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
38912
38955
  onKeyDown: function onKeyDown(e) {
38913
38956
  return e.key === "Enter" && handleSubmit(e);
38914
38957
  },
38915
- disabled: namesDisabled
38958
+ disabled: namesDisabled,
38959
+ autocomplete: "family-name"
38916
38960
  }), /*#__PURE__*/React.createElement(FormInput$1, {
38917
38961
  labelTextWhenNoError: "Email",
38918
38962
  errorMessages: emailErrorMessages,
@@ -38922,7 +38966,8 @@ var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
38922
38966
  onKeyDown: function onKeyDown(e) {
38923
38967
  return e.key === "Enter" && handleSubmit(e);
38924
38968
  },
38925
- disabled: emailDisabled
38969
+ disabled: emailDisabled,
38970
+ autocomplete: "email"
38926
38971
  }), formType === PROFILE && /*#__PURE__*/React.createElement(FormInput$1, {
38927
38972
  labelTextWhenNoError: "Password",
38928
38973
  errorMessages: {},
@@ -39066,7 +39111,8 @@ var LoginForm = function LoginForm(_ref) {
39066
39111
  onKeyDown: function onKeyDown(e) {
39067
39112
  return e.key === "Enter" && handleSubmit(e);
39068
39113
  },
39069
- isEmail: true
39114
+ isEmail: true,
39115
+ autocomplete: "email"
39070
39116
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39071
39117
  labelTextWhenNoError: "Password",
39072
39118
  errorMessages: passwordErrorMessages,
@@ -39076,7 +39122,8 @@ var LoginForm = function LoginForm(_ref) {
39076
39122
  showErrors: showErrors,
39077
39123
  onKeyDown: function onKeyDown(e) {
39078
39124
  return e.key === "Enter" && handleSubmit(e);
39079
- }
39125
+ },
39126
+ autocomplete: "current-password"
39080
39127
  }));
39081
39128
  };
39082
39129
 
@@ -41991,7 +42038,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
41991
42038
  showErrors: showErrors,
41992
42039
  onKeyDown: function onKeyDown(e) {
41993
42040
  return e.key === "Enter" && handleSubmit(e);
41994
- }
42041
+ },
42042
+ autocomplete: "name"
41995
42043
  }), /*#__PURE__*/React.createElement(FormInput$1, {
41996
42044
  labelTextWhenNoError: "Routing number",
41997
42045
  errorMessages: routingNumberErrors,
@@ -42188,7 +42236,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
42188
42236
  showErrors: showErrors,
42189
42237
  onKeyDown: function onKeyDown(e) {
42190
42238
  return e.key === "Enter" && handleSubmit(e);
42191
- }
42239
+ },
42240
+ autocomplete: "cc-name"
42192
42241
  }), /*#__PURE__*/React.createElement(FormInput$1, {
42193
42242
  labelTextWhenNoError: "Credit card number",
42194
42243
  errorMessages: creditCardNumberErrors,
@@ -42199,7 +42248,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
42199
42248
  onKeyDown: function onKeyDown(e) {
42200
42249
  return e.key === "Enter" && handleSubmit(e);
42201
42250
  },
42202
- isNum: true
42251
+ isNum: true,
42252
+ autocomplete: "cc-number"
42203
42253
  }), /*#__PURE__*/React.createElement(FormInputRow, {
42204
42254
  breakpoint: isMobile ? "1000rem" : "21rem",
42205
42255
  childGap: isMobile ? "0rem" : "1rem"
@@ -42213,7 +42263,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
42213
42263
  onKeyDown: function onKeyDown(e) {
42214
42264
  return e.key === "Enter" && handleSubmit(e);
42215
42265
  },
42216
- isNum: true
42266
+ isNum: true,
42267
+ autocomplete: "cc-exp"
42217
42268
  }), /*#__PURE__*/React.createElement(FormInput$1, {
42218
42269
  labelTextWhenNoError: "CVV",
42219
42270
  errorMessages: cvvErrors,
@@ -42224,7 +42275,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
42224
42275
  background: checkCardBrand(fields.creditCardNumber.rawValue) == "AMEX" ? "/AmexCVVHint.svg" : "/CVVHint.svg",
42225
42276
  onKeyDown: function onKeyDown(e) {
42226
42277
  return e.key === "Enter" && handleSubmit(e);
42227
- }
42278
+ },
42279
+ autocomplete: "cc-csc"
42228
42280
  })), !hideZipCode && /*#__PURE__*/React.createElement(Box, {
42229
42281
  padding: isMobile ? "0" : "0 0.5rem 0 0",
42230
42282
  width: isMobile ? "100%" : "50%"
@@ -42238,7 +42290,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
42238
42290
  showErrors: showErrors,
42239
42291
  onKeyDown: function onKeyDown(e) {
42240
42292
  return e.key === "Enter" && handleSubmit(e);
42241
- }
42293
+ },
42294
+ autocomplete: "billing postal-code"
42242
42295
  })), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
42243
42296
  name: "credit card checkbox",
42244
42297
  title: "Save credit card to wallet",
@@ -42263,7 +42316,7 @@ var formConfig$8 = {
42263
42316
  },
42264
42317
  expirationDate: {
42265
42318
  validators: [required(), hasLength(4, 4), isValidMonth(0), dateAfterToday("MMYY", "month", true)],
42266
- constraints: [onlyIntegers(), hasLength(0, 4)]
42319
+ constraints: [onlyExpirationDate(), hasLength(0, 4)]
42267
42320
  },
42268
42321
  cvv: {
42269
42322
  validators: [required(), hasLength(3, 4)],
@@ -42322,7 +42375,8 @@ var PhoneForm = function PhoneForm(_ref) {
42322
42375
  onKeyUp: function onKeyUp(e) {
42323
42376
  return e.key === "Enter" && handleSubmit(e);
42324
42377
  },
42325
- isNum: true
42378
+ isNum: true,
42379
+ autocomplete: "tel"
42326
42380
  }), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
42327
42381
  name: "phone checkbox",
42328
42382
  title: "Save phone number to wallet",
@@ -42612,7 +42666,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
42612
42666
  showErrors: showErrors,
42613
42667
  onKeyDown: function onKeyDown(e) {
42614
42668
  return e.key === "Enter" && handleSubmit(e);
42615
- }
42669
+ },
42670
+ autocomplete: "given-name"
42616
42671
  }), /*#__PURE__*/React.createElement(FormInput$1, {
42617
42672
  labelTextWhenNoError: "Last name",
42618
42673
  errorMessages: lastNameErrorMessages,
@@ -42621,7 +42676,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
42621
42676
  showErrors: showErrors,
42622
42677
  onKeyDown: function onKeyDown(e) {
42623
42678
  return e.key === "Enter" && handleSubmit(e);
42624
- }
42679
+ },
42680
+ autocomplete: "family-name"
42625
42681
  }), /*#__PURE__*/React.createElement(FormInput$1, {
42626
42682
  labelTextWhenNoError: "Email address",
42627
42683
  errorMessages: emailErrorMessages,
@@ -42632,7 +42688,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
42632
42688
  return e.key === "Enter" && handleSubmit(e);
42633
42689
  },
42634
42690
  type: "email",
42635
- isEmail: true
42691
+ isEmail: true,
42692
+ autocomplete: "email"
42636
42693
  }), /*#__PURE__*/React.createElement(FormInput$1, {
42637
42694
  labelTextWhenNoError: "Password",
42638
42695
  errorMessages: passwordErrorMessages,
@@ -42642,7 +42699,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
42642
42699
  onKeyDown: function onKeyDown(e) {
42643
42700
  return e.key === "Enter" && handleSubmit(e);
42644
42701
  },
42645
- type: "password"
42702
+ type: "password",
42703
+ autocomplete: "new-password"
42646
42704
  }), /*#__PURE__*/React.createElement(FormInput$1, {
42647
42705
  labelTextWhenNoError: "Confirm password",
42648
42706
  errorMessages: confirmPasswordErrorMessages,
@@ -42652,7 +42710,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
42652
42710
  onKeyDown: function onKeyDown(e) {
42653
42711
  return e.key === "Enter" && handleSubmit(e);
42654
42712
  },
42655
- type: "password"
42713
+ type: "password",
42714
+ autocomplete: "new-password"
42656
42715
  }), /*#__PURE__*/React.createElement(Box, {
42657
42716
  padding: isMobile ? "0" : "0.5rem 0 0"
42658
42717
  }, /*#__PURE__*/React.createElement(PasswordRequirements, {
@@ -42772,7 +42831,8 @@ var ResetPasswordForm = function ResetPasswordForm(_ref) {
42772
42831
  onKeyDown: function onKeyDown(e) {
42773
42832
  return e.key === "Enter" && handleSubmit(e);
42774
42833
  },
42775
- type: "password"
42834
+ type: "password",
42835
+ autocomplete: "new-password"
42776
42836
  }), /*#__PURE__*/React.createElement(FormInput$1, {
42777
42837
  labelTextWhenNoError: "Confirm password",
42778
42838
  errorMessages: confirmPasswordErrorMessages,
@@ -42782,7 +42842,8 @@ var ResetPasswordForm = function ResetPasswordForm(_ref) {
42782
42842
  onKeyDown: function onKeyDown(e) {
42783
42843
  return e.key === "Enter" && handleSubmit(e);
42784
42844
  },
42785
- type: "password"
42845
+ type: "password",
42846
+ autocomplete: "new-password"
42786
42847
  }), /*#__PURE__*/React.createElement(Box, {
42787
42848
  padding: "0"
42788
42849
  }, /*#__PURE__*/React.createElement(PasswordRequirements, {