@thecb/components 6.1.0 → 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 +82 -42
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +82 -42
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/checkbox/Checkbox.js +2 -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/periscope-dashboard-iframe/PeriscopeDashboardIframe.js +4 -2
- 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
|
@@ -19161,7 +19161,9 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
19161
19161
|
"aria-label": name,
|
|
19162
19162
|
checked: checked,
|
|
19163
19163
|
onChange: onChange,
|
|
19164
|
-
tabIndex: "-1"
|
|
19164
|
+
tabIndex: "-1",
|
|
19165
|
+
"aria-invalid": error,
|
|
19166
|
+
"aria-describedby": "".concat(name, "-error-message")
|
|
19165
19167
|
}), /*#__PURE__*/React.createElement(StyledCheckbox, {
|
|
19166
19168
|
error: error,
|
|
19167
19169
|
disabled: disabled,
|
|
@@ -22540,7 +22542,7 @@ var fallbackValues$i = {
|
|
|
22540
22542
|
};
|
|
22541
22543
|
|
|
22542
22544
|
var _excluded$p = ["showErrors", "themeValues"],
|
|
22543
|
-
_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"];
|
|
22544
22546
|
var InputField = styled.input.withConfig({
|
|
22545
22547
|
displayName: "FormInput__InputField",
|
|
22546
22548
|
componentId: "sc-l094r1-0"
|
|
@@ -22622,6 +22624,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
22622
22624
|
themeValues = _ref15.themeValues,
|
|
22623
22625
|
background = _ref15.background,
|
|
22624
22626
|
customHeight = _ref15.customHeight,
|
|
22627
|
+
autocomplete = _ref15.autocomplete,
|
|
22625
22628
|
extraStyles = _ref15.extraStyles,
|
|
22626
22629
|
props = _objectWithoutProperties(_ref15, _excluded2);
|
|
22627
22630
|
|
|
@@ -22699,7 +22702,8 @@ var FormInput = function FormInput(_ref15) {
|
|
|
22699
22702
|
"data-qa": labelTextWhenNoError,
|
|
22700
22703
|
themeValues: themeValues,
|
|
22701
22704
|
$customHeight: customHeight,
|
|
22702
|
-
$extraStyles: extraStyles
|
|
22705
|
+
$extraStyles: extraStyles,
|
|
22706
|
+
autocomplete: autocomplete
|
|
22703
22707
|
}, props)) : /*#__PURE__*/React.createElement(InputField, _extends({
|
|
22704
22708
|
"aria-labelledby": createIdFromString(labelTextWhenNoError),
|
|
22705
22709
|
"aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
|
|
@@ -22717,7 +22721,8 @@ var FormInput = function FormInput(_ref15) {
|
|
|
22717
22721
|
themeValues: themeValues,
|
|
22718
22722
|
background: background,
|
|
22719
22723
|
$customHeight: customHeight,
|
|
22720
|
-
$extraStyles: extraStyles
|
|
22724
|
+
$extraStyles: extraStyles,
|
|
22725
|
+
autocomplete: autocomplete
|
|
22721
22726
|
}, props))), /*#__PURE__*/React.createElement(Stack, {
|
|
22722
22727
|
direction: "row",
|
|
22723
22728
|
justify: "space-between"
|
|
@@ -34401,7 +34406,8 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
34401
34406
|
field = _ref.field,
|
|
34402
34407
|
fieldActions = _ref.fieldActions,
|
|
34403
34408
|
showErrors = _ref.showErrors,
|
|
34404
|
-
countryCode = _ref.countryCode
|
|
34409
|
+
countryCode = _ref.countryCode,
|
|
34410
|
+
autocomplete = _ref.autocomplete;
|
|
34405
34411
|
var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
|
|
34406
34412
|
var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
|
|
34407
34413
|
return /*#__PURE__*/React.createElement(FormSelect$1, {
|
|
@@ -34411,7 +34417,7 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
34411
34417
|
labelTextWhenNoError: labelTextWhenNoError,
|
|
34412
34418
|
errorMessages: errorMessages,
|
|
34413
34419
|
showErrors: showErrors,
|
|
34414
|
-
autocompleteValue:
|
|
34420
|
+
autocompleteValue: autocomplete
|
|
34415
34421
|
});
|
|
34416
34422
|
};
|
|
34417
34423
|
|
|
@@ -36467,7 +36473,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
36467
36473
|
showErrors: showErrors,
|
|
36468
36474
|
onKeyDown: function onKeyDown(e) {
|
|
36469
36475
|
return e.key === "Enter" && handleSubmit(e);
|
|
36470
|
-
}
|
|
36476
|
+
},
|
|
36477
|
+
autocomplete: "address-line1"
|
|
36471
36478
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
36472
36479
|
labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
|
|
36473
36480
|
field: fields.street2,
|
|
@@ -36475,7 +36482,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
36475
36482
|
showErrors: showErrors,
|
|
36476
36483
|
onKeyDown: function onKeyDown(e) {
|
|
36477
36484
|
return e.key === "Enter" && handleSubmit(e);
|
|
36478
|
-
}
|
|
36485
|
+
},
|
|
36486
|
+
autocomplete: "address-line2"
|
|
36479
36487
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
36480
36488
|
labelTextWhenNoError: "City",
|
|
36481
36489
|
errorMessages: cityErrorMessages,
|
|
@@ -36484,7 +36492,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
36484
36492
|
showErrors: showErrors,
|
|
36485
36493
|
onKeyDown: function onKeyDown(e) {
|
|
36486
36494
|
return e.key === "Enter" && handleSubmit(e);
|
|
36487
|
-
}
|
|
36495
|
+
},
|
|
36496
|
+
autocomplete: "address-level2"
|
|
36488
36497
|
}), /*#__PURE__*/React.createElement(FormStateDropdown, {
|
|
36489
36498
|
labelTextWhenNoError: isUS ? "State" : "State or Province",
|
|
36490
36499
|
errorMessages: stateProvinceErrorMessages,
|
|
@@ -36494,7 +36503,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
36494
36503
|
showErrors: showErrors,
|
|
36495
36504
|
onKeyDown: function onKeyDown(e) {
|
|
36496
36505
|
return e.key === "Enter" && handleSubmit(e);
|
|
36497
|
-
}
|
|
36506
|
+
},
|
|
36507
|
+
autocomplete: "address-level1"
|
|
36498
36508
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
36499
36509
|
isNum: isUS,
|
|
36500
36510
|
formatter: isUS ? zipFormat : null,
|
|
@@ -36505,7 +36515,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
36505
36515
|
showErrors: showErrors,
|
|
36506
36516
|
onKeyDown: function onKeyDown(e) {
|
|
36507
36517
|
return e.key === "Enter" && handleSubmit(e);
|
|
36508
|
-
}
|
|
36518
|
+
},
|
|
36519
|
+
autocomplete: "postal-code"
|
|
36509
36520
|
}), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
36510
36521
|
name: "address checkbox",
|
|
36511
36522
|
title: "Save address to wallet",
|
|
@@ -36609,7 +36620,8 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
|
|
|
36609
36620
|
onKeyDown: function onKeyDown(e) {
|
|
36610
36621
|
return e.key === "Enter" && handleSubmit(e);
|
|
36611
36622
|
},
|
|
36612
|
-
type: "password"
|
|
36623
|
+
type: "password",
|
|
36624
|
+
autocomplete: "current-password"
|
|
36613
36625
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
36614
36626
|
labelTextWhenNoError: "New password",
|
|
36615
36627
|
errorMessages: newPasswordErrorMessages,
|
|
@@ -36619,7 +36631,8 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
|
|
|
36619
36631
|
onKeyDown: function onKeyDown(e) {
|
|
36620
36632
|
return e.key === "Enter" && handleSubmit(e);
|
|
36621
36633
|
},
|
|
36622
|
-
type: "password"
|
|
36634
|
+
type: "password",
|
|
36635
|
+
autocomplete: "new-password"
|
|
36623
36636
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
36624
36637
|
labelTextWhenNoError: "Confirm password",
|
|
36625
36638
|
errorMessages: confirmNewPasswordErrorMessages,
|
|
@@ -36629,7 +36642,8 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
|
|
|
36629
36642
|
onKeyDown: function onKeyDown(e) {
|
|
36630
36643
|
return e.key === "Enter" && handleSubmit(e);
|
|
36631
36644
|
},
|
|
36632
|
-
type: "password"
|
|
36645
|
+
type: "password",
|
|
36646
|
+
autocomplete: "new-password"
|
|
36633
36647
|
})), /*#__PURE__*/React.createElement(Box, {
|
|
36634
36648
|
padding: isMobile ? "1rem 0 0" : "1.5rem 0 0"
|
|
36635
36649
|
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
@@ -36843,7 +36857,8 @@ var EditNameForm = function EditNameForm(_ref) {
|
|
|
36843
36857
|
showErrors: showErrors,
|
|
36844
36858
|
onKeyDown: function onKeyDown(e) {
|
|
36845
36859
|
return e.key === "Enter" && handleSubmit(e);
|
|
36846
|
-
}
|
|
36860
|
+
},
|
|
36861
|
+
autocomplete: "given-name"
|
|
36847
36862
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
36848
36863
|
labelTextWhenNoError: "Last Name",
|
|
36849
36864
|
errorMessages: lastNameErrorMessages,
|
|
@@ -36852,7 +36867,8 @@ var EditNameForm = function EditNameForm(_ref) {
|
|
|
36852
36867
|
showErrors: showErrors,
|
|
36853
36868
|
onKeyDown: function onKeyDown(e) {
|
|
36854
36869
|
return e.key === "Enter" && handleSubmit(e);
|
|
36855
|
-
}
|
|
36870
|
+
},
|
|
36871
|
+
autocomplete: "family-name"
|
|
36856
36872
|
})));
|
|
36857
36873
|
};
|
|
36858
36874
|
|
|
@@ -36919,7 +36935,8 @@ var EditableList = function EditableList(_ref) {
|
|
|
36919
36935
|
autoPayMethods = _ref.autoPayMethods,
|
|
36920
36936
|
_ref$as = _ref.as,
|
|
36921
36937
|
as = _ref$as === void 0 ? "p" : _ref$as,
|
|
36922
|
-
qaPrefix = _ref.qaPrefix
|
|
36938
|
+
qaPrefix = _ref.qaPrefix,
|
|
36939
|
+
ariaLabel = _ref.ariaLabel;
|
|
36923
36940
|
var addText = "Add a".concat(itemName[0].match(/[aieouAIEOU]/) ? "n" : "", " ").concat(itemName);
|
|
36924
36941
|
return /*#__PURE__*/React.createElement(Box, {
|
|
36925
36942
|
padding: "0rem 0rem 1.5rem 0rem",
|
|
@@ -36979,7 +36996,7 @@ var EditableList = function EditableList(_ref) {
|
|
|
36979
36996
|
return removeItem(item.id);
|
|
36980
36997
|
},
|
|
36981
36998
|
extraStyles: "min-width: 0;",
|
|
36982
|
-
"aria-label": "Remove ".concat(itemName)
|
|
36999
|
+
"aria-label": "Remove ".concat(ariaLabel || itemName)
|
|
36983
37000
|
})), canEdit && /*#__PURE__*/React.createElement(Box, {
|
|
36984
37001
|
padding: "0 0.5rem",
|
|
36985
37002
|
border: "2px solid transparent",
|
|
@@ -36993,7 +37010,7 @@ var EditableList = function EditableList(_ref) {
|
|
|
36993
37010
|
return editItem(item.id);
|
|
36994
37011
|
},
|
|
36995
37012
|
extraStyles: "min-width: 0;",
|
|
36996
|
-
"aria-label": "Edit ".concat(itemName)
|
|
37013
|
+
"aria-label": "Edit ".concat(ariaLabel || itemName)
|
|
36997
37014
|
}))));
|
|
36998
37015
|
})), canAdd && (!maxItems || items.length < maxItems) && /*#__PURE__*/React.createElement(Box, {
|
|
36999
37016
|
padding: items.length === 0 ? "0" : "1rem 0 0"
|
|
@@ -37186,7 +37203,8 @@ var EmailForm = function EmailForm(_ref) {
|
|
|
37186
37203
|
onKeyDown: function onKeyDown(e) {
|
|
37187
37204
|
return e.key === "Enter" && handleSubmit(e);
|
|
37188
37205
|
},
|
|
37189
|
-
isEmail: true
|
|
37206
|
+
isEmail: true,
|
|
37207
|
+
autocomplete: "email"
|
|
37190
37208
|
}), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
37191
37209
|
name: "email checkbox",
|
|
37192
37210
|
title: "Save email address to wallet",
|
|
@@ -37238,7 +37256,8 @@ var ForgotPasswordForm = function ForgotPasswordForm(_ref) {
|
|
|
37238
37256
|
onKeyDown: function onKeyDown(e) {
|
|
37239
37257
|
return e.key === "Enter" && handleSubmit(e);
|
|
37240
37258
|
},
|
|
37241
|
-
isEmail: true
|
|
37259
|
+
isEmail: true,
|
|
37260
|
+
autocomplete: "email"
|
|
37242
37261
|
});
|
|
37243
37262
|
};
|
|
37244
37263
|
|
|
@@ -38900,7 +38919,8 @@ var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
|
|
|
38900
38919
|
onKeyDown: function onKeyDown(e) {
|
|
38901
38920
|
return e.key === "Enter" && handleSubmit(e);
|
|
38902
38921
|
},
|
|
38903
|
-
disabled: namesDisabled
|
|
38922
|
+
disabled: namesDisabled,
|
|
38923
|
+
autocomplete: "given-name"
|
|
38904
38924
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
38905
38925
|
labelTextWhenNoError: "Last Name",
|
|
38906
38926
|
errorMessages: lastNameErrorMessages,
|
|
@@ -38910,7 +38930,8 @@ var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
|
|
|
38910
38930
|
onKeyDown: function onKeyDown(e) {
|
|
38911
38931
|
return e.key === "Enter" && handleSubmit(e);
|
|
38912
38932
|
},
|
|
38913
|
-
disabled: namesDisabled
|
|
38933
|
+
disabled: namesDisabled,
|
|
38934
|
+
autocomplete: "family-name"
|
|
38914
38935
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
38915
38936
|
labelTextWhenNoError: "Email",
|
|
38916
38937
|
errorMessages: emailErrorMessages,
|
|
@@ -38920,7 +38941,8 @@ var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
|
|
|
38920
38941
|
onKeyDown: function onKeyDown(e) {
|
|
38921
38942
|
return e.key === "Enter" && handleSubmit(e);
|
|
38922
38943
|
},
|
|
38923
|
-
disabled: emailDisabled
|
|
38944
|
+
disabled: emailDisabled,
|
|
38945
|
+
autocomplete: "email"
|
|
38924
38946
|
}), formType === PROFILE && /*#__PURE__*/React.createElement(FormInput$1, {
|
|
38925
38947
|
labelTextWhenNoError: "Password",
|
|
38926
38948
|
errorMessages: {},
|
|
@@ -39064,7 +39086,8 @@ var LoginForm = function LoginForm(_ref) {
|
|
|
39064
39086
|
onKeyDown: function onKeyDown(e) {
|
|
39065
39087
|
return e.key === "Enter" && handleSubmit(e);
|
|
39066
39088
|
},
|
|
39067
|
-
isEmail: true
|
|
39089
|
+
isEmail: true,
|
|
39090
|
+
autocomplete: "email"
|
|
39068
39091
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
39069
39092
|
labelTextWhenNoError: "Password",
|
|
39070
39093
|
errorMessages: passwordErrorMessages,
|
|
@@ -39074,7 +39097,8 @@ var LoginForm = function LoginForm(_ref) {
|
|
|
39074
39097
|
showErrors: showErrors,
|
|
39075
39098
|
onKeyDown: function onKeyDown(e) {
|
|
39076
39099
|
return e.key === "Enter" && handleSubmit(e);
|
|
39077
|
-
}
|
|
39100
|
+
},
|
|
39101
|
+
autocomplete: "current-password"
|
|
39078
39102
|
}));
|
|
39079
39103
|
};
|
|
39080
39104
|
|
|
@@ -41989,7 +42013,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
41989
42013
|
showErrors: showErrors,
|
|
41990
42014
|
onKeyDown: function onKeyDown(e) {
|
|
41991
42015
|
return e.key === "Enter" && handleSubmit(e);
|
|
41992
|
-
}
|
|
42016
|
+
},
|
|
42017
|
+
autocomplete: "name"
|
|
41993
42018
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
41994
42019
|
labelTextWhenNoError: "Routing number",
|
|
41995
42020
|
errorMessages: routingNumberErrors,
|
|
@@ -42186,7 +42211,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
42186
42211
|
showErrors: showErrors,
|
|
42187
42212
|
onKeyDown: function onKeyDown(e) {
|
|
42188
42213
|
return e.key === "Enter" && handleSubmit(e);
|
|
42189
|
-
}
|
|
42214
|
+
},
|
|
42215
|
+
autocomplete: "cc-name"
|
|
42190
42216
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
42191
42217
|
labelTextWhenNoError: "Credit card number",
|
|
42192
42218
|
errorMessages: creditCardNumberErrors,
|
|
@@ -42197,7 +42223,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
42197
42223
|
onKeyDown: function onKeyDown(e) {
|
|
42198
42224
|
return e.key === "Enter" && handleSubmit(e);
|
|
42199
42225
|
},
|
|
42200
|
-
isNum: true
|
|
42226
|
+
isNum: true,
|
|
42227
|
+
autocomplete: "cc-number"
|
|
42201
42228
|
}), /*#__PURE__*/React.createElement(FormInputRow, {
|
|
42202
42229
|
breakpoint: isMobile ? "1000rem" : "21rem",
|
|
42203
42230
|
childGap: isMobile ? "0rem" : "1rem"
|
|
@@ -42211,7 +42238,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
42211
42238
|
onKeyDown: function onKeyDown(e) {
|
|
42212
42239
|
return e.key === "Enter" && handleSubmit(e);
|
|
42213
42240
|
},
|
|
42214
|
-
isNum: true
|
|
42241
|
+
isNum: true,
|
|
42242
|
+
autocomplete: "cc-exp"
|
|
42215
42243
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
42216
42244
|
labelTextWhenNoError: "CVV",
|
|
42217
42245
|
errorMessages: cvvErrors,
|
|
@@ -42222,7 +42250,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
42222
42250
|
background: checkCardBrand(fields.creditCardNumber.rawValue) == "AMEX" ? "/AmexCVVHint.svg" : "/CVVHint.svg",
|
|
42223
42251
|
onKeyDown: function onKeyDown(e) {
|
|
42224
42252
|
return e.key === "Enter" && handleSubmit(e);
|
|
42225
|
-
}
|
|
42253
|
+
},
|
|
42254
|
+
autocomplete: "cc-csc"
|
|
42226
42255
|
})), !hideZipCode && /*#__PURE__*/React.createElement(Box, {
|
|
42227
42256
|
padding: isMobile ? "0" : "0 0.5rem 0 0",
|
|
42228
42257
|
width: isMobile ? "100%" : "50%"
|
|
@@ -42236,7 +42265,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
42236
42265
|
showErrors: showErrors,
|
|
42237
42266
|
onKeyDown: function onKeyDown(e) {
|
|
42238
42267
|
return e.key === "Enter" && handleSubmit(e);
|
|
42239
|
-
}
|
|
42268
|
+
},
|
|
42269
|
+
autocomplete: "billing postal-code"
|
|
42240
42270
|
})), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
42241
42271
|
name: "credit card checkbox",
|
|
42242
42272
|
title: "Save credit card to wallet",
|
|
@@ -42320,7 +42350,8 @@ var PhoneForm = function PhoneForm(_ref) {
|
|
|
42320
42350
|
onKeyUp: function onKeyUp(e) {
|
|
42321
42351
|
return e.key === "Enter" && handleSubmit(e);
|
|
42322
42352
|
},
|
|
42323
|
-
isNum: true
|
|
42353
|
+
isNum: true,
|
|
42354
|
+
autocomplete: "tel"
|
|
42324
42355
|
}), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
42325
42356
|
name: "phone checkbox",
|
|
42326
42357
|
title: "Save phone number to wallet",
|
|
@@ -42610,7 +42641,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
42610
42641
|
showErrors: showErrors,
|
|
42611
42642
|
onKeyDown: function onKeyDown(e) {
|
|
42612
42643
|
return e.key === "Enter" && handleSubmit(e);
|
|
42613
|
-
}
|
|
42644
|
+
},
|
|
42645
|
+
autocomplete: "given-name"
|
|
42614
42646
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
42615
42647
|
labelTextWhenNoError: "Last name",
|
|
42616
42648
|
errorMessages: lastNameErrorMessages,
|
|
@@ -42619,7 +42651,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
42619
42651
|
showErrors: showErrors,
|
|
42620
42652
|
onKeyDown: function onKeyDown(e) {
|
|
42621
42653
|
return e.key === "Enter" && handleSubmit(e);
|
|
42622
|
-
}
|
|
42654
|
+
},
|
|
42655
|
+
autocomplete: "family-name"
|
|
42623
42656
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
42624
42657
|
labelTextWhenNoError: "Email address",
|
|
42625
42658
|
errorMessages: emailErrorMessages,
|
|
@@ -42630,7 +42663,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
42630
42663
|
return e.key === "Enter" && handleSubmit(e);
|
|
42631
42664
|
},
|
|
42632
42665
|
type: "email",
|
|
42633
|
-
isEmail: true
|
|
42666
|
+
isEmail: true,
|
|
42667
|
+
autocomplete: "email"
|
|
42634
42668
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
42635
42669
|
labelTextWhenNoError: "Password",
|
|
42636
42670
|
errorMessages: passwordErrorMessages,
|
|
@@ -42640,7 +42674,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
42640
42674
|
onKeyDown: function onKeyDown(e) {
|
|
42641
42675
|
return e.key === "Enter" && handleSubmit(e);
|
|
42642
42676
|
},
|
|
42643
|
-
type: "password"
|
|
42677
|
+
type: "password",
|
|
42678
|
+
autocomplete: "new-password"
|
|
42644
42679
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
42645
42680
|
labelTextWhenNoError: "Confirm password",
|
|
42646
42681
|
errorMessages: confirmPasswordErrorMessages,
|
|
@@ -42650,7 +42685,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
42650
42685
|
onKeyDown: function onKeyDown(e) {
|
|
42651
42686
|
return e.key === "Enter" && handleSubmit(e);
|
|
42652
42687
|
},
|
|
42653
|
-
type: "password"
|
|
42688
|
+
type: "password",
|
|
42689
|
+
autocomplete: "new-password"
|
|
42654
42690
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
42655
42691
|
padding: isMobile ? "0" : "0.5rem 0 0"
|
|
42656
42692
|
}, /*#__PURE__*/React.createElement(PasswordRequirements, {
|
|
@@ -42770,7 +42806,8 @@ var ResetPasswordForm = function ResetPasswordForm(_ref) {
|
|
|
42770
42806
|
onKeyDown: function onKeyDown(e) {
|
|
42771
42807
|
return e.key === "Enter" && handleSubmit(e);
|
|
42772
42808
|
},
|
|
42773
|
-
type: "password"
|
|
42809
|
+
type: "password",
|
|
42810
|
+
autocomplete: "new-password"
|
|
42774
42811
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
42775
42812
|
labelTextWhenNoError: "Confirm password",
|
|
42776
42813
|
errorMessages: confirmPasswordErrorMessages,
|
|
@@ -42780,7 +42817,8 @@ var ResetPasswordForm = function ResetPasswordForm(_ref) {
|
|
|
42780
42817
|
onKeyDown: function onKeyDown(e) {
|
|
42781
42818
|
return e.key === "Enter" && handleSubmit(e);
|
|
42782
42819
|
},
|
|
42783
|
-
type: "password"
|
|
42820
|
+
type: "password",
|
|
42821
|
+
autocomplete: "new-password"
|
|
42784
42822
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
42785
42823
|
padding: "0"
|
|
42786
42824
|
}, /*#__PURE__*/React.createElement(PasswordRequirements, {
|
|
@@ -43309,12 +43347,14 @@ var PeriscopeDashboardIframe = function PeriscopeDashboardIframe(_ref) {
|
|
|
43309
43347
|
};
|
|
43310
43348
|
useEffect$1(function () {
|
|
43311
43349
|
time.timer = setTimeout(function () {
|
|
43312
|
-
|
|
43350
|
+
if (!periscopeDataSuccess) {
|
|
43351
|
+
periscopeDataRequestFailure();
|
|
43352
|
+
}
|
|
43313
43353
|
}, 10000);
|
|
43314
43354
|
return function () {
|
|
43315
43355
|
return clearTimeout(time.timer);
|
|
43316
43356
|
};
|
|
43317
|
-
}, []);
|
|
43357
|
+
}, [periscopeDataSuccess]);
|
|
43318
43358
|
|
|
43319
43359
|
var Dashboard = function Dashboard(height) {
|
|
43320
43360
|
return function (url) {
|