@thecb/components 6.1.2 → 6.1.3
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/README.md +14 -7
- package/dist/index.cjs.js +75 -39
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +75 -39
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/components/atoms/form-layouts/FormInput.js +3 -0
- package/src/components/atoms/state-province-dropdown/StateProvinceDropdown.js +3 -2
- package/src/components/molecules/address-form/AddressForm.js +5 -0
- package/src/components/molecules/change-password-form/ChangePasswordForm.js +3 -0
- package/src/components/molecules/edit-name-form/EditNameForm.js +2 -0
- package/src/components/molecules/editable-list/EditableList.js +4 -3
- package/src/components/molecules/email-form/EmailForm.js +1 -0
- package/src/components/molecules/forgot-password-form/ForgotPasswordForm.js +1 -0
- package/src/components/molecules/internal-user-info-form/InternalUserInfoForm.js +3 -0
- package/src/components/molecules/login-form/LoginForm.js +2 -0
- package/src/components/molecules/payment-form-ach/PaymentFormACH.js +1 -0
- package/src/components/molecules/payment-form-card/PaymentFormCard.js +5 -0
- package/src/components/molecules/phone-form/PhoneForm.js +1 -0
- package/src/components/molecules/registration-form/RegistrationForm.js +5 -0
- package/src/components/molecules/reset-password-form/ResetPasswordForm.js +2 -0
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:
|
|
34420
|
+
autocompleteValue: autocomplete
|
|
34417
34421
|
});
|
|
34418
34422
|
};
|
|
34419
34423
|
|
|
@@ -36469,7 +36473,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
36469
36473
|
showErrors: showErrors,
|
|
36470
36474
|
onKeyDown: function onKeyDown(e) {
|
|
36471
36475
|
return e.key === "Enter" && handleSubmit(e);
|
|
36472
|
-
}
|
|
36476
|
+
},
|
|
36477
|
+
autocomplete: "address-line1"
|
|
36473
36478
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
36474
36479
|
labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
|
|
36475
36480
|
field: fields.street2,
|
|
@@ -36477,7 +36482,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
36477
36482
|
showErrors: showErrors,
|
|
36478
36483
|
onKeyDown: function onKeyDown(e) {
|
|
36479
36484
|
return e.key === "Enter" && handleSubmit(e);
|
|
36480
|
-
}
|
|
36485
|
+
},
|
|
36486
|
+
autocomplete: "address-line2"
|
|
36481
36487
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
36482
36488
|
labelTextWhenNoError: "City",
|
|
36483
36489
|
errorMessages: cityErrorMessages,
|
|
@@ -36486,7 +36492,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
36486
36492
|
showErrors: showErrors,
|
|
36487
36493
|
onKeyDown: function onKeyDown(e) {
|
|
36488
36494
|
return e.key === "Enter" && handleSubmit(e);
|
|
36489
|
-
}
|
|
36495
|
+
},
|
|
36496
|
+
autocomplete: "address-level2"
|
|
36490
36497
|
}), /*#__PURE__*/React.createElement(FormStateDropdown, {
|
|
36491
36498
|
labelTextWhenNoError: isUS ? "State" : "State or Province",
|
|
36492
36499
|
errorMessages: stateProvinceErrorMessages,
|
|
@@ -36496,7 +36503,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
36496
36503
|
showErrors: showErrors,
|
|
36497
36504
|
onKeyDown: function onKeyDown(e) {
|
|
36498
36505
|
return e.key === "Enter" && handleSubmit(e);
|
|
36499
|
-
}
|
|
36506
|
+
},
|
|
36507
|
+
autocomplete: "address-level1"
|
|
36500
36508
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
36501
36509
|
isNum: isUS,
|
|
36502
36510
|
formatter: isUS ? zipFormat : null,
|
|
@@ -36507,7 +36515,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
36507
36515
|
showErrors: showErrors,
|
|
36508
36516
|
onKeyDown: function onKeyDown(e) {
|
|
36509
36517
|
return e.key === "Enter" && handleSubmit(e);
|
|
36510
|
-
}
|
|
36518
|
+
},
|
|
36519
|
+
autocomplete: "postal-code"
|
|
36511
36520
|
}), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
36512
36521
|
name: "address checkbox",
|
|
36513
36522
|
title: "Save address to wallet",
|
|
@@ -36611,7 +36620,8 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
|
|
|
36611
36620
|
onKeyDown: function onKeyDown(e) {
|
|
36612
36621
|
return e.key === "Enter" && handleSubmit(e);
|
|
36613
36622
|
},
|
|
36614
|
-
type: "password"
|
|
36623
|
+
type: "password",
|
|
36624
|
+
autocomplete: "current-password"
|
|
36615
36625
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
36616
36626
|
labelTextWhenNoError: "New password",
|
|
36617
36627
|
errorMessages: newPasswordErrorMessages,
|
|
@@ -36621,7 +36631,8 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
|
|
|
36621
36631
|
onKeyDown: function onKeyDown(e) {
|
|
36622
36632
|
return e.key === "Enter" && handleSubmit(e);
|
|
36623
36633
|
},
|
|
36624
|
-
type: "password"
|
|
36634
|
+
type: "password",
|
|
36635
|
+
autocomplete: "new-password"
|
|
36625
36636
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
36626
36637
|
labelTextWhenNoError: "Confirm password",
|
|
36627
36638
|
errorMessages: confirmNewPasswordErrorMessages,
|
|
@@ -36631,7 +36642,8 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
|
|
|
36631
36642
|
onKeyDown: function onKeyDown(e) {
|
|
36632
36643
|
return e.key === "Enter" && handleSubmit(e);
|
|
36633
36644
|
},
|
|
36634
|
-
type: "password"
|
|
36645
|
+
type: "password",
|
|
36646
|
+
autocomplete: "new-password"
|
|
36635
36647
|
})), /*#__PURE__*/React.createElement(Box, {
|
|
36636
36648
|
padding: isMobile ? "1rem 0 0" : "1.5rem 0 0"
|
|
36637
36649
|
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
@@ -36845,7 +36857,8 @@ var EditNameForm = function EditNameForm(_ref) {
|
|
|
36845
36857
|
showErrors: showErrors,
|
|
36846
36858
|
onKeyDown: function onKeyDown(e) {
|
|
36847
36859
|
return e.key === "Enter" && handleSubmit(e);
|
|
36848
|
-
}
|
|
36860
|
+
},
|
|
36861
|
+
autocomplete: "given-name"
|
|
36849
36862
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
36850
36863
|
labelTextWhenNoError: "Last Name",
|
|
36851
36864
|
errorMessages: lastNameErrorMessages,
|
|
@@ -36854,7 +36867,8 @@ var EditNameForm = function EditNameForm(_ref) {
|
|
|
36854
36867
|
showErrors: showErrors,
|
|
36855
36868
|
onKeyDown: function onKeyDown(e) {
|
|
36856
36869
|
return e.key === "Enter" && handleSubmit(e);
|
|
36857
|
-
}
|
|
36870
|
+
},
|
|
36871
|
+
autocomplete: "family-name"
|
|
36858
36872
|
})));
|
|
36859
36873
|
};
|
|
36860
36874
|
|
|
@@ -36921,7 +36935,8 @@ var EditableList = function EditableList(_ref) {
|
|
|
36921
36935
|
autoPayMethods = _ref.autoPayMethods,
|
|
36922
36936
|
_ref$as = _ref.as,
|
|
36923
36937
|
as = _ref$as === void 0 ? "p" : _ref$as,
|
|
36924
|
-
qaPrefix = _ref.qaPrefix
|
|
36938
|
+
qaPrefix = _ref.qaPrefix,
|
|
36939
|
+
ariaLabel = _ref.ariaLabel;
|
|
36925
36940
|
var addText = "Add a".concat(itemName[0].match(/[aieouAIEOU]/) ? "n" : "", " ").concat(itemName);
|
|
36926
36941
|
return /*#__PURE__*/React.createElement(Box, {
|
|
36927
36942
|
padding: "0rem 0rem 1.5rem 0rem",
|
|
@@ -36981,7 +36996,7 @@ var EditableList = function EditableList(_ref) {
|
|
|
36981
36996
|
return removeItem(item.id);
|
|
36982
36997
|
},
|
|
36983
36998
|
extraStyles: "min-width: 0;",
|
|
36984
|
-
"aria-label": "Remove ".concat(itemName)
|
|
36999
|
+
"aria-label": "Remove ".concat(ariaLabel || itemName)
|
|
36985
37000
|
})), canEdit && /*#__PURE__*/React.createElement(Box, {
|
|
36986
37001
|
padding: "0 0.5rem",
|
|
36987
37002
|
border: "2px solid transparent",
|
|
@@ -36995,7 +37010,7 @@ var EditableList = function EditableList(_ref) {
|
|
|
36995
37010
|
return editItem(item.id);
|
|
36996
37011
|
},
|
|
36997
37012
|
extraStyles: "min-width: 0;",
|
|
36998
|
-
"aria-label": "Edit ".concat(itemName)
|
|
37013
|
+
"aria-label": "Edit ".concat(ariaLabel || itemName)
|
|
36999
37014
|
}))));
|
|
37000
37015
|
})), canAdd && (!maxItems || items.length < maxItems) && /*#__PURE__*/React.createElement(Box, {
|
|
37001
37016
|
padding: items.length === 0 ? "0" : "1rem 0 0"
|
|
@@ -37188,7 +37203,8 @@ var EmailForm = function EmailForm(_ref) {
|
|
|
37188
37203
|
onKeyDown: function onKeyDown(e) {
|
|
37189
37204
|
return e.key === "Enter" && handleSubmit(e);
|
|
37190
37205
|
},
|
|
37191
|
-
isEmail: true
|
|
37206
|
+
isEmail: true,
|
|
37207
|
+
autocomplete: "email"
|
|
37192
37208
|
}), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
37193
37209
|
name: "email checkbox",
|
|
37194
37210
|
title: "Save email address to wallet",
|
|
@@ -37240,7 +37256,8 @@ var ForgotPasswordForm = function ForgotPasswordForm(_ref) {
|
|
|
37240
37256
|
onKeyDown: function onKeyDown(e) {
|
|
37241
37257
|
return e.key === "Enter" && handleSubmit(e);
|
|
37242
37258
|
},
|
|
37243
|
-
isEmail: true
|
|
37259
|
+
isEmail: true,
|
|
37260
|
+
autocomplete: "email"
|
|
37244
37261
|
});
|
|
37245
37262
|
};
|
|
37246
37263
|
|
|
@@ -38902,7 +38919,8 @@ var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
|
|
|
38902
38919
|
onKeyDown: function onKeyDown(e) {
|
|
38903
38920
|
return e.key === "Enter" && handleSubmit(e);
|
|
38904
38921
|
},
|
|
38905
|
-
disabled: namesDisabled
|
|
38922
|
+
disabled: namesDisabled,
|
|
38923
|
+
autocomplete: "given-name"
|
|
38906
38924
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
38907
38925
|
labelTextWhenNoError: "Last Name",
|
|
38908
38926
|
errorMessages: lastNameErrorMessages,
|
|
@@ -38912,7 +38930,8 @@ var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
|
|
|
38912
38930
|
onKeyDown: function onKeyDown(e) {
|
|
38913
38931
|
return e.key === "Enter" && handleSubmit(e);
|
|
38914
38932
|
},
|
|
38915
|
-
disabled: namesDisabled
|
|
38933
|
+
disabled: namesDisabled,
|
|
38934
|
+
autocomplete: "family-name"
|
|
38916
38935
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
38917
38936
|
labelTextWhenNoError: "Email",
|
|
38918
38937
|
errorMessages: emailErrorMessages,
|
|
@@ -38922,7 +38941,8 @@ var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
|
|
|
38922
38941
|
onKeyDown: function onKeyDown(e) {
|
|
38923
38942
|
return e.key === "Enter" && handleSubmit(e);
|
|
38924
38943
|
},
|
|
38925
|
-
disabled: emailDisabled
|
|
38944
|
+
disabled: emailDisabled,
|
|
38945
|
+
autocomplete: "email"
|
|
38926
38946
|
}), formType === PROFILE && /*#__PURE__*/React.createElement(FormInput$1, {
|
|
38927
38947
|
labelTextWhenNoError: "Password",
|
|
38928
38948
|
errorMessages: {},
|
|
@@ -39066,7 +39086,8 @@ var LoginForm = function LoginForm(_ref) {
|
|
|
39066
39086
|
onKeyDown: function onKeyDown(e) {
|
|
39067
39087
|
return e.key === "Enter" && handleSubmit(e);
|
|
39068
39088
|
},
|
|
39069
|
-
isEmail: true
|
|
39089
|
+
isEmail: true,
|
|
39090
|
+
autocomplete: "email"
|
|
39070
39091
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
39071
39092
|
labelTextWhenNoError: "Password",
|
|
39072
39093
|
errorMessages: passwordErrorMessages,
|
|
@@ -39076,7 +39097,8 @@ var LoginForm = function LoginForm(_ref) {
|
|
|
39076
39097
|
showErrors: showErrors,
|
|
39077
39098
|
onKeyDown: function onKeyDown(e) {
|
|
39078
39099
|
return e.key === "Enter" && handleSubmit(e);
|
|
39079
|
-
}
|
|
39100
|
+
},
|
|
39101
|
+
autocomplete: "current-password"
|
|
39080
39102
|
}));
|
|
39081
39103
|
};
|
|
39082
39104
|
|
|
@@ -41991,7 +42013,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
41991
42013
|
showErrors: showErrors,
|
|
41992
42014
|
onKeyDown: function onKeyDown(e) {
|
|
41993
42015
|
return e.key === "Enter" && handleSubmit(e);
|
|
41994
|
-
}
|
|
42016
|
+
},
|
|
42017
|
+
autocomplete: "name"
|
|
41995
42018
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
41996
42019
|
labelTextWhenNoError: "Routing number",
|
|
41997
42020
|
errorMessages: routingNumberErrors,
|
|
@@ -42188,7 +42211,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
42188
42211
|
showErrors: showErrors,
|
|
42189
42212
|
onKeyDown: function onKeyDown(e) {
|
|
42190
42213
|
return e.key === "Enter" && handleSubmit(e);
|
|
42191
|
-
}
|
|
42214
|
+
},
|
|
42215
|
+
autocomplete: "cc-name"
|
|
42192
42216
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
42193
42217
|
labelTextWhenNoError: "Credit card number",
|
|
42194
42218
|
errorMessages: creditCardNumberErrors,
|
|
@@ -42199,7 +42223,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
42199
42223
|
onKeyDown: function onKeyDown(e) {
|
|
42200
42224
|
return e.key === "Enter" && handleSubmit(e);
|
|
42201
42225
|
},
|
|
42202
|
-
isNum: true
|
|
42226
|
+
isNum: true,
|
|
42227
|
+
autocomplete: "cc-number"
|
|
42203
42228
|
}), /*#__PURE__*/React.createElement(FormInputRow, {
|
|
42204
42229
|
breakpoint: isMobile ? "1000rem" : "21rem",
|
|
42205
42230
|
childGap: isMobile ? "0rem" : "1rem"
|
|
@@ -42213,7 +42238,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
42213
42238
|
onKeyDown: function onKeyDown(e) {
|
|
42214
42239
|
return e.key === "Enter" && handleSubmit(e);
|
|
42215
42240
|
},
|
|
42216
|
-
isNum: true
|
|
42241
|
+
isNum: true,
|
|
42242
|
+
autocomplete: "cc-exp"
|
|
42217
42243
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
42218
42244
|
labelTextWhenNoError: "CVV",
|
|
42219
42245
|
errorMessages: cvvErrors,
|
|
@@ -42224,7 +42250,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
42224
42250
|
background: checkCardBrand(fields.creditCardNumber.rawValue) == "AMEX" ? "/AmexCVVHint.svg" : "/CVVHint.svg",
|
|
42225
42251
|
onKeyDown: function onKeyDown(e) {
|
|
42226
42252
|
return e.key === "Enter" && handleSubmit(e);
|
|
42227
|
-
}
|
|
42253
|
+
},
|
|
42254
|
+
autocomplete: "cc-csc"
|
|
42228
42255
|
})), !hideZipCode && /*#__PURE__*/React.createElement(Box, {
|
|
42229
42256
|
padding: isMobile ? "0" : "0 0.5rem 0 0",
|
|
42230
42257
|
width: isMobile ? "100%" : "50%"
|
|
@@ -42238,7 +42265,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
42238
42265
|
showErrors: showErrors,
|
|
42239
42266
|
onKeyDown: function onKeyDown(e) {
|
|
42240
42267
|
return e.key === "Enter" && handleSubmit(e);
|
|
42241
|
-
}
|
|
42268
|
+
},
|
|
42269
|
+
autocomplete: "billing postal-code"
|
|
42242
42270
|
})), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
42243
42271
|
name: "credit card checkbox",
|
|
42244
42272
|
title: "Save credit card to wallet",
|
|
@@ -42322,7 +42350,8 @@ var PhoneForm = function PhoneForm(_ref) {
|
|
|
42322
42350
|
onKeyUp: function onKeyUp(e) {
|
|
42323
42351
|
return e.key === "Enter" && handleSubmit(e);
|
|
42324
42352
|
},
|
|
42325
|
-
isNum: true
|
|
42353
|
+
isNum: true,
|
|
42354
|
+
autocomplete: "tel"
|
|
42326
42355
|
}), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
42327
42356
|
name: "phone checkbox",
|
|
42328
42357
|
title: "Save phone number to wallet",
|
|
@@ -42612,7 +42641,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
42612
42641
|
showErrors: showErrors,
|
|
42613
42642
|
onKeyDown: function onKeyDown(e) {
|
|
42614
42643
|
return e.key === "Enter" && handleSubmit(e);
|
|
42615
|
-
}
|
|
42644
|
+
},
|
|
42645
|
+
autocomplete: "given-name"
|
|
42616
42646
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
42617
42647
|
labelTextWhenNoError: "Last name",
|
|
42618
42648
|
errorMessages: lastNameErrorMessages,
|
|
@@ -42621,7 +42651,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
42621
42651
|
showErrors: showErrors,
|
|
42622
42652
|
onKeyDown: function onKeyDown(e) {
|
|
42623
42653
|
return e.key === "Enter" && handleSubmit(e);
|
|
42624
|
-
}
|
|
42654
|
+
},
|
|
42655
|
+
autocomplete: "family-name"
|
|
42625
42656
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
42626
42657
|
labelTextWhenNoError: "Email address",
|
|
42627
42658
|
errorMessages: emailErrorMessages,
|
|
@@ -42632,7 +42663,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
42632
42663
|
return e.key === "Enter" && handleSubmit(e);
|
|
42633
42664
|
},
|
|
42634
42665
|
type: "email",
|
|
42635
|
-
isEmail: true
|
|
42666
|
+
isEmail: true,
|
|
42667
|
+
autocomplete: "email"
|
|
42636
42668
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
42637
42669
|
labelTextWhenNoError: "Password",
|
|
42638
42670
|
errorMessages: passwordErrorMessages,
|
|
@@ -42642,7 +42674,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
42642
42674
|
onKeyDown: function onKeyDown(e) {
|
|
42643
42675
|
return e.key === "Enter" && handleSubmit(e);
|
|
42644
42676
|
},
|
|
42645
|
-
type: "password"
|
|
42677
|
+
type: "password",
|
|
42678
|
+
autocomplete: "new-password"
|
|
42646
42679
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
42647
42680
|
labelTextWhenNoError: "Confirm password",
|
|
42648
42681
|
errorMessages: confirmPasswordErrorMessages,
|
|
@@ -42652,7 +42685,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
42652
42685
|
onKeyDown: function onKeyDown(e) {
|
|
42653
42686
|
return e.key === "Enter" && handleSubmit(e);
|
|
42654
42687
|
},
|
|
42655
|
-
type: "password"
|
|
42688
|
+
type: "password",
|
|
42689
|
+
autocomplete: "new-password"
|
|
42656
42690
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
42657
42691
|
padding: isMobile ? "0" : "0.5rem 0 0"
|
|
42658
42692
|
}, /*#__PURE__*/React.createElement(PasswordRequirements, {
|
|
@@ -42772,7 +42806,8 @@ var ResetPasswordForm = function ResetPasswordForm(_ref) {
|
|
|
42772
42806
|
onKeyDown: function onKeyDown(e) {
|
|
42773
42807
|
return e.key === "Enter" && handleSubmit(e);
|
|
42774
42808
|
},
|
|
42775
|
-
type: "password"
|
|
42809
|
+
type: "password",
|
|
42810
|
+
autocomplete: "new-password"
|
|
42776
42811
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
42777
42812
|
labelTextWhenNoError: "Confirm password",
|
|
42778
42813
|
errorMessages: confirmPasswordErrorMessages,
|
|
@@ -42782,7 +42817,8 @@ var ResetPasswordForm = function ResetPasswordForm(_ref) {
|
|
|
42782
42817
|
onKeyDown: function onKeyDown(e) {
|
|
42783
42818
|
return e.key === "Enter" && handleSubmit(e);
|
|
42784
42819
|
},
|
|
42785
|
-
type: "password"
|
|
42820
|
+
type: "password",
|
|
42821
|
+
autocomplete: "new-password"
|
|
42786
42822
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
42787
42823
|
padding: "0"
|
|
42788
42824
|
}, /*#__PURE__*/React.createElement(PasswordRequirements, {
|