@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/README.md
CHANGED
|
@@ -65,23 +65,30 @@ Please include new component stories as this library will also be a sandbox.
|
|
|
65
65
|
|
|
66
66
|
## Version bumping and publishing
|
|
67
67
|
|
|
68
|
-
### Version bumping
|
|
68
|
+
### Version bumping and Publishing to NPM
|
|
69
69
|
|
|
70
|
-
-
|
|
70
|
+
- Authors of PRs are responsible for bumping the version of the package prior to merging an approved PR to master. Once your pending PR has been approved, before merging to master, run `yarn build && yarn publish` in the main directory to create and publish a new build to NPM. This step should happen immediately before you merge your PR to master, to minimize conflicts between built versions.
|
|
71
71
|
|
|
72
|
-
-
|
|
72
|
+
- CB Components follows semantic versioning practices, which divides version upgrades into three categories: "Patch" (e.g., `6.0.1` -> `6.0.2`), "Minor" (e.g., `6.0.2` -> `6.1.0`), and "Major" (e.g., `6.1.0` -> `7.0.0`)
|
|
73
73
|
|
|
74
74
|
- Patch versions should consist of small, non-breaking changes to components, component stories, and development tooling or documentation; or bug fixes
|
|
75
75
|
|
|
76
|
+
- Fixing a non-breaking bug, such as the border color of an input; adding an example to a component's storybook story; adding a new HTML attribute to an existing
|
|
77
|
+
component are all examples of patch changes
|
|
78
|
+
|
|
76
79
|
- Minor versions consist of moderate, non-breaking changes and additions: alterations to existing component structure or theme files; addition of new components, stories, or dependencies; significant changes to development tooling or introduction of tests
|
|
77
80
|
|
|
78
|
-
-
|
|
81
|
+
- Adding to, removing, or significantly changing a component's base-theme or themeable properties; adding a new version of a component triggered by an optional
|
|
82
|
+
prop; adding a new dependency to the library; changing the Rollup build files or plugins; or adding new unit tests to one or more components are all examples of
|
|
83
|
+
minor verison changes
|
|
79
84
|
|
|
80
|
-
|
|
85
|
+
- Major version relases should be reserved for breaking library changes: removal of in-use components; breaking changes to component layout or theme properties; addition or removal of crticial dependencies. These version increases should be rare.
|
|
81
86
|
|
|
82
|
-
-
|
|
87
|
+
- Removing currently used components entirely, or removing versions of a component; significantly changing the structure, function, or API (props) of an existing
|
|
88
|
+
component; removing existing library dependencies; adding a new peer dependency or moving a current library dependency to be a peer dep (such that the library
|
|
89
|
+
breaks if a consuming application fails to provide the proper verison of that dependency) are all examples of major verison changes
|
|
83
90
|
|
|
84
|
-
-
|
|
91
|
+
- Because of the potential for disruption of applications running in PROD, any changes that will result in a Major version increase require notifying other frontend engineers at CB who own applications such as Navigate Frontend (NFE), Revenue Management Dashboard (RMD), or Point of Sale Frontend (POS-Frontend), or any future applications which consume CB Components in advance of the change being merged to master and a new version being released
|
|
85
92
|
|
|
86
93
|
## Consuming in your application
|
|
87
94
|
|
package/dist/index.cjs.js
CHANGED
|
@@ -19169,7 +19169,9 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
19169
19169
|
"aria-label": name,
|
|
19170
19170
|
checked: checked,
|
|
19171
19171
|
onChange: onChange,
|
|
19172
|
-
tabIndex: "-1"
|
|
19172
|
+
tabIndex: "-1",
|
|
19173
|
+
"aria-invalid": error,
|
|
19174
|
+
"aria-describedby": "".concat(name, "-error-message")
|
|
19173
19175
|
}), /*#__PURE__*/React__default.createElement(StyledCheckbox, {
|
|
19174
19176
|
error: error,
|
|
19175
19177
|
disabled: disabled,
|
|
@@ -22548,7 +22550,7 @@ var fallbackValues$i = {
|
|
|
22548
22550
|
};
|
|
22549
22551
|
|
|
22550
22552
|
var _excluded$p = ["showErrors", "themeValues"],
|
|
22551
|
-
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "extraStyles"];
|
|
22553
|
+
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocomplete", "extraStyles"];
|
|
22552
22554
|
var InputField = styled__default.input.withConfig({
|
|
22553
22555
|
displayName: "FormInput__InputField",
|
|
22554
22556
|
componentId: "sc-l094r1-0"
|
|
@@ -22630,6 +22632,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
22630
22632
|
themeValues = _ref15.themeValues,
|
|
22631
22633
|
background = _ref15.background,
|
|
22632
22634
|
customHeight = _ref15.customHeight,
|
|
22635
|
+
autocomplete = _ref15.autocomplete,
|
|
22633
22636
|
extraStyles = _ref15.extraStyles,
|
|
22634
22637
|
props = _objectWithoutProperties(_ref15, _excluded2);
|
|
22635
22638
|
|
|
@@ -22707,7 +22710,8 @@ var FormInput = function FormInput(_ref15) {
|
|
|
22707
22710
|
"data-qa": labelTextWhenNoError,
|
|
22708
22711
|
themeValues: themeValues,
|
|
22709
22712
|
$customHeight: customHeight,
|
|
22710
|
-
$extraStyles: extraStyles
|
|
22713
|
+
$extraStyles: extraStyles,
|
|
22714
|
+
autocomplete: autocomplete
|
|
22711
22715
|
}, props)) : /*#__PURE__*/React__default.createElement(InputField, _extends({
|
|
22712
22716
|
"aria-labelledby": createIdFromString(labelTextWhenNoError),
|
|
22713
22717
|
"aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
|
|
@@ -22725,7 +22729,8 @@ var FormInput = function FormInput(_ref15) {
|
|
|
22725
22729
|
themeValues: themeValues,
|
|
22726
22730
|
background: background,
|
|
22727
22731
|
$customHeight: customHeight,
|
|
22728
|
-
$extraStyles: extraStyles
|
|
22732
|
+
$extraStyles: extraStyles,
|
|
22733
|
+
autocomplete: autocomplete
|
|
22729
22734
|
}, props))), /*#__PURE__*/React__default.createElement(Stack, {
|
|
22730
22735
|
direction: "row",
|
|
22731
22736
|
justify: "space-between"
|
|
@@ -34409,7 +34414,8 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
34409
34414
|
field = _ref.field,
|
|
34410
34415
|
fieldActions = _ref.fieldActions,
|
|
34411
34416
|
showErrors = _ref.showErrors,
|
|
34412
|
-
countryCode = _ref.countryCode
|
|
34417
|
+
countryCode = _ref.countryCode,
|
|
34418
|
+
autocomplete = _ref.autocomplete;
|
|
34413
34419
|
var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
|
|
34414
34420
|
var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
|
|
34415
34421
|
return /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
@@ -34419,7 +34425,7 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
34419
34425
|
labelTextWhenNoError: labelTextWhenNoError,
|
|
34420
34426
|
errorMessages: errorMessages,
|
|
34421
34427
|
showErrors: showErrors,
|
|
34422
|
-
autocompleteValue:
|
|
34428
|
+
autocompleteValue: autocomplete
|
|
34423
34429
|
});
|
|
34424
34430
|
};
|
|
34425
34431
|
|
|
@@ -36475,7 +36481,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
36475
36481
|
showErrors: showErrors,
|
|
36476
36482
|
onKeyDown: function onKeyDown(e) {
|
|
36477
36483
|
return e.key === "Enter" && handleSubmit(e);
|
|
36478
|
-
}
|
|
36484
|
+
},
|
|
36485
|
+
autocomplete: "address-line1"
|
|
36479
36486
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
36480
36487
|
labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
|
|
36481
36488
|
field: fields.street2,
|
|
@@ -36483,7 +36490,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
36483
36490
|
showErrors: showErrors,
|
|
36484
36491
|
onKeyDown: function onKeyDown(e) {
|
|
36485
36492
|
return e.key === "Enter" && handleSubmit(e);
|
|
36486
|
-
}
|
|
36493
|
+
},
|
|
36494
|
+
autocomplete: "address-line2"
|
|
36487
36495
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
36488
36496
|
labelTextWhenNoError: "City",
|
|
36489
36497
|
errorMessages: cityErrorMessages,
|
|
@@ -36492,7 +36500,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
36492
36500
|
showErrors: showErrors,
|
|
36493
36501
|
onKeyDown: function onKeyDown(e) {
|
|
36494
36502
|
return e.key === "Enter" && handleSubmit(e);
|
|
36495
|
-
}
|
|
36503
|
+
},
|
|
36504
|
+
autocomplete: "address-level2"
|
|
36496
36505
|
}), /*#__PURE__*/React__default.createElement(FormStateDropdown, {
|
|
36497
36506
|
labelTextWhenNoError: isUS ? "State" : "State or Province",
|
|
36498
36507
|
errorMessages: stateProvinceErrorMessages,
|
|
@@ -36502,7 +36511,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
36502
36511
|
showErrors: showErrors,
|
|
36503
36512
|
onKeyDown: function onKeyDown(e) {
|
|
36504
36513
|
return e.key === "Enter" && handleSubmit(e);
|
|
36505
|
-
}
|
|
36514
|
+
},
|
|
36515
|
+
autocomplete: "address-level1"
|
|
36506
36516
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
36507
36517
|
isNum: isUS,
|
|
36508
36518
|
formatter: isUS ? zipFormat : null,
|
|
@@ -36513,7 +36523,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
36513
36523
|
showErrors: showErrors,
|
|
36514
36524
|
onKeyDown: function onKeyDown(e) {
|
|
36515
36525
|
return e.key === "Enter" && handleSubmit(e);
|
|
36516
|
-
}
|
|
36526
|
+
},
|
|
36527
|
+
autocomplete: "postal-code"
|
|
36517
36528
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
36518
36529
|
name: "address checkbox",
|
|
36519
36530
|
title: "Save address to wallet",
|
|
@@ -36617,7 +36628,8 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
|
|
|
36617
36628
|
onKeyDown: function onKeyDown(e) {
|
|
36618
36629
|
return e.key === "Enter" && handleSubmit(e);
|
|
36619
36630
|
},
|
|
36620
|
-
type: "password"
|
|
36631
|
+
type: "password",
|
|
36632
|
+
autocomplete: "current-password"
|
|
36621
36633
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
36622
36634
|
labelTextWhenNoError: "New password",
|
|
36623
36635
|
errorMessages: newPasswordErrorMessages,
|
|
@@ -36627,7 +36639,8 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
|
|
|
36627
36639
|
onKeyDown: function onKeyDown(e) {
|
|
36628
36640
|
return e.key === "Enter" && handleSubmit(e);
|
|
36629
36641
|
},
|
|
36630
|
-
type: "password"
|
|
36642
|
+
type: "password",
|
|
36643
|
+
autocomplete: "new-password"
|
|
36631
36644
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
36632
36645
|
labelTextWhenNoError: "Confirm password",
|
|
36633
36646
|
errorMessages: confirmNewPasswordErrorMessages,
|
|
@@ -36637,7 +36650,8 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
|
|
|
36637
36650
|
onKeyDown: function onKeyDown(e) {
|
|
36638
36651
|
return e.key === "Enter" && handleSubmit(e);
|
|
36639
36652
|
},
|
|
36640
|
-
type: "password"
|
|
36653
|
+
type: "password",
|
|
36654
|
+
autocomplete: "new-password"
|
|
36641
36655
|
})), /*#__PURE__*/React__default.createElement(Box, {
|
|
36642
36656
|
padding: isMobile ? "1rem 0 0" : "1.5rem 0 0"
|
|
36643
36657
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
@@ -36851,7 +36865,8 @@ var EditNameForm = function EditNameForm(_ref) {
|
|
|
36851
36865
|
showErrors: showErrors,
|
|
36852
36866
|
onKeyDown: function onKeyDown(e) {
|
|
36853
36867
|
return e.key === "Enter" && handleSubmit(e);
|
|
36854
|
-
}
|
|
36868
|
+
},
|
|
36869
|
+
autocomplete: "given-name"
|
|
36855
36870
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
36856
36871
|
labelTextWhenNoError: "Last Name",
|
|
36857
36872
|
errorMessages: lastNameErrorMessages,
|
|
@@ -36860,7 +36875,8 @@ var EditNameForm = function EditNameForm(_ref) {
|
|
|
36860
36875
|
showErrors: showErrors,
|
|
36861
36876
|
onKeyDown: function onKeyDown(e) {
|
|
36862
36877
|
return e.key === "Enter" && handleSubmit(e);
|
|
36863
|
-
}
|
|
36878
|
+
},
|
|
36879
|
+
autocomplete: "family-name"
|
|
36864
36880
|
})));
|
|
36865
36881
|
};
|
|
36866
36882
|
|
|
@@ -36927,7 +36943,8 @@ var EditableList = function EditableList(_ref) {
|
|
|
36927
36943
|
autoPayMethods = _ref.autoPayMethods,
|
|
36928
36944
|
_ref$as = _ref.as,
|
|
36929
36945
|
as = _ref$as === void 0 ? "p" : _ref$as,
|
|
36930
|
-
qaPrefix = _ref.qaPrefix
|
|
36946
|
+
qaPrefix = _ref.qaPrefix,
|
|
36947
|
+
ariaLabel = _ref.ariaLabel;
|
|
36931
36948
|
var addText = "Add a".concat(itemName[0].match(/[aieouAIEOU]/) ? "n" : "", " ").concat(itemName);
|
|
36932
36949
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
36933
36950
|
padding: "0rem 0rem 1.5rem 0rem",
|
|
@@ -36987,7 +37004,7 @@ var EditableList = function EditableList(_ref) {
|
|
|
36987
37004
|
return removeItem(item.id);
|
|
36988
37005
|
},
|
|
36989
37006
|
extraStyles: "min-width: 0;",
|
|
36990
|
-
"aria-label": "Remove ".concat(itemName)
|
|
37007
|
+
"aria-label": "Remove ".concat(ariaLabel || itemName)
|
|
36991
37008
|
})), canEdit && /*#__PURE__*/React__default.createElement(Box, {
|
|
36992
37009
|
padding: "0 0.5rem",
|
|
36993
37010
|
border: "2px solid transparent",
|
|
@@ -37001,7 +37018,7 @@ var EditableList = function EditableList(_ref) {
|
|
|
37001
37018
|
return editItem(item.id);
|
|
37002
37019
|
},
|
|
37003
37020
|
extraStyles: "min-width: 0;",
|
|
37004
|
-
"aria-label": "Edit ".concat(itemName)
|
|
37021
|
+
"aria-label": "Edit ".concat(ariaLabel || itemName)
|
|
37005
37022
|
}))));
|
|
37006
37023
|
})), canAdd && (!maxItems || items.length < maxItems) && /*#__PURE__*/React__default.createElement(Box, {
|
|
37007
37024
|
padding: items.length === 0 ? "0" : "1rem 0 0"
|
|
@@ -37194,7 +37211,8 @@ var EmailForm = function EmailForm(_ref) {
|
|
|
37194
37211
|
onKeyDown: function onKeyDown(e) {
|
|
37195
37212
|
return e.key === "Enter" && handleSubmit(e);
|
|
37196
37213
|
},
|
|
37197
|
-
isEmail: true
|
|
37214
|
+
isEmail: true,
|
|
37215
|
+
autocomplete: "email"
|
|
37198
37216
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
37199
37217
|
name: "email checkbox",
|
|
37200
37218
|
title: "Save email address to wallet",
|
|
@@ -37246,7 +37264,8 @@ var ForgotPasswordForm = function ForgotPasswordForm(_ref) {
|
|
|
37246
37264
|
onKeyDown: function onKeyDown(e) {
|
|
37247
37265
|
return e.key === "Enter" && handleSubmit(e);
|
|
37248
37266
|
},
|
|
37249
|
-
isEmail: true
|
|
37267
|
+
isEmail: true,
|
|
37268
|
+
autocomplete: "email"
|
|
37250
37269
|
});
|
|
37251
37270
|
};
|
|
37252
37271
|
|
|
@@ -38908,7 +38927,8 @@ var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
|
|
|
38908
38927
|
onKeyDown: function onKeyDown(e) {
|
|
38909
38928
|
return e.key === "Enter" && handleSubmit(e);
|
|
38910
38929
|
},
|
|
38911
|
-
disabled: namesDisabled
|
|
38930
|
+
disabled: namesDisabled,
|
|
38931
|
+
autocomplete: "given-name"
|
|
38912
38932
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
38913
38933
|
labelTextWhenNoError: "Last Name",
|
|
38914
38934
|
errorMessages: lastNameErrorMessages,
|
|
@@ -38918,7 +38938,8 @@ var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
|
|
|
38918
38938
|
onKeyDown: function onKeyDown(e) {
|
|
38919
38939
|
return e.key === "Enter" && handleSubmit(e);
|
|
38920
38940
|
},
|
|
38921
|
-
disabled: namesDisabled
|
|
38941
|
+
disabled: namesDisabled,
|
|
38942
|
+
autocomplete: "family-name"
|
|
38922
38943
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
38923
38944
|
labelTextWhenNoError: "Email",
|
|
38924
38945
|
errorMessages: emailErrorMessages,
|
|
@@ -38928,7 +38949,8 @@ var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
|
|
|
38928
38949
|
onKeyDown: function onKeyDown(e) {
|
|
38929
38950
|
return e.key === "Enter" && handleSubmit(e);
|
|
38930
38951
|
},
|
|
38931
|
-
disabled: emailDisabled
|
|
38952
|
+
disabled: emailDisabled,
|
|
38953
|
+
autocomplete: "email"
|
|
38932
38954
|
}), formType === PROFILE && /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
38933
38955
|
labelTextWhenNoError: "Password",
|
|
38934
38956
|
errorMessages: {},
|
|
@@ -39072,7 +39094,8 @@ var LoginForm = function LoginForm(_ref) {
|
|
|
39072
39094
|
onKeyDown: function onKeyDown(e) {
|
|
39073
39095
|
return e.key === "Enter" && handleSubmit(e);
|
|
39074
39096
|
},
|
|
39075
|
-
isEmail: true
|
|
39097
|
+
isEmail: true,
|
|
39098
|
+
autocomplete: "email"
|
|
39076
39099
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
39077
39100
|
labelTextWhenNoError: "Password",
|
|
39078
39101
|
errorMessages: passwordErrorMessages,
|
|
@@ -39082,7 +39105,8 @@ var LoginForm = function LoginForm(_ref) {
|
|
|
39082
39105
|
showErrors: showErrors,
|
|
39083
39106
|
onKeyDown: function onKeyDown(e) {
|
|
39084
39107
|
return e.key === "Enter" && handleSubmit(e);
|
|
39085
|
-
}
|
|
39108
|
+
},
|
|
39109
|
+
autocomplete: "current-password"
|
|
39086
39110
|
}));
|
|
39087
39111
|
};
|
|
39088
39112
|
|
|
@@ -41997,7 +42021,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
41997
42021
|
showErrors: showErrors,
|
|
41998
42022
|
onKeyDown: function onKeyDown(e) {
|
|
41999
42023
|
return e.key === "Enter" && handleSubmit(e);
|
|
42000
|
-
}
|
|
42024
|
+
},
|
|
42025
|
+
autocomplete: "name"
|
|
42001
42026
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
42002
42027
|
labelTextWhenNoError: "Routing number",
|
|
42003
42028
|
errorMessages: routingNumberErrors,
|
|
@@ -42194,7 +42219,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
42194
42219
|
showErrors: showErrors,
|
|
42195
42220
|
onKeyDown: function onKeyDown(e) {
|
|
42196
42221
|
return e.key === "Enter" && handleSubmit(e);
|
|
42197
|
-
}
|
|
42222
|
+
},
|
|
42223
|
+
autocomplete: "cc-name"
|
|
42198
42224
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
42199
42225
|
labelTextWhenNoError: "Credit card number",
|
|
42200
42226
|
errorMessages: creditCardNumberErrors,
|
|
@@ -42205,7 +42231,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
42205
42231
|
onKeyDown: function onKeyDown(e) {
|
|
42206
42232
|
return e.key === "Enter" && handleSubmit(e);
|
|
42207
42233
|
},
|
|
42208
|
-
isNum: true
|
|
42234
|
+
isNum: true,
|
|
42235
|
+
autocomplete: "cc-number"
|
|
42209
42236
|
}), /*#__PURE__*/React__default.createElement(FormInputRow, {
|
|
42210
42237
|
breakpoint: isMobile ? "1000rem" : "21rem",
|
|
42211
42238
|
childGap: isMobile ? "0rem" : "1rem"
|
|
@@ -42219,7 +42246,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
42219
42246
|
onKeyDown: function onKeyDown(e) {
|
|
42220
42247
|
return e.key === "Enter" && handleSubmit(e);
|
|
42221
42248
|
},
|
|
42222
|
-
isNum: true
|
|
42249
|
+
isNum: true,
|
|
42250
|
+
autocomplete: "cc-exp"
|
|
42223
42251
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
42224
42252
|
labelTextWhenNoError: "CVV",
|
|
42225
42253
|
errorMessages: cvvErrors,
|
|
@@ -42230,7 +42258,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
42230
42258
|
background: checkCardBrand(fields.creditCardNumber.rawValue) == "AMEX" ? "/AmexCVVHint.svg" : "/CVVHint.svg",
|
|
42231
42259
|
onKeyDown: function onKeyDown(e) {
|
|
42232
42260
|
return e.key === "Enter" && handleSubmit(e);
|
|
42233
|
-
}
|
|
42261
|
+
},
|
|
42262
|
+
autocomplete: "cc-csc"
|
|
42234
42263
|
})), !hideZipCode && /*#__PURE__*/React__default.createElement(Box, {
|
|
42235
42264
|
padding: isMobile ? "0" : "0 0.5rem 0 0",
|
|
42236
42265
|
width: isMobile ? "100%" : "50%"
|
|
@@ -42244,7 +42273,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
42244
42273
|
showErrors: showErrors,
|
|
42245
42274
|
onKeyDown: function onKeyDown(e) {
|
|
42246
42275
|
return e.key === "Enter" && handleSubmit(e);
|
|
42247
|
-
}
|
|
42276
|
+
},
|
|
42277
|
+
autocomplete: "billing postal-code"
|
|
42248
42278
|
})), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
42249
42279
|
name: "credit card checkbox",
|
|
42250
42280
|
title: "Save credit card to wallet",
|
|
@@ -42328,7 +42358,8 @@ var PhoneForm = function PhoneForm(_ref) {
|
|
|
42328
42358
|
onKeyUp: function onKeyUp(e) {
|
|
42329
42359
|
return e.key === "Enter" && handleSubmit(e);
|
|
42330
42360
|
},
|
|
42331
|
-
isNum: true
|
|
42361
|
+
isNum: true,
|
|
42362
|
+
autocomplete: "tel"
|
|
42332
42363
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
42333
42364
|
name: "phone checkbox",
|
|
42334
42365
|
title: "Save phone number to wallet",
|
|
@@ -42618,7 +42649,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
42618
42649
|
showErrors: showErrors,
|
|
42619
42650
|
onKeyDown: function onKeyDown(e) {
|
|
42620
42651
|
return e.key === "Enter" && handleSubmit(e);
|
|
42621
|
-
}
|
|
42652
|
+
},
|
|
42653
|
+
autocomplete: "given-name"
|
|
42622
42654
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
42623
42655
|
labelTextWhenNoError: "Last name",
|
|
42624
42656
|
errorMessages: lastNameErrorMessages,
|
|
@@ -42627,7 +42659,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
42627
42659
|
showErrors: showErrors,
|
|
42628
42660
|
onKeyDown: function onKeyDown(e) {
|
|
42629
42661
|
return e.key === "Enter" && handleSubmit(e);
|
|
42630
|
-
}
|
|
42662
|
+
},
|
|
42663
|
+
autocomplete: "family-name"
|
|
42631
42664
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
42632
42665
|
labelTextWhenNoError: "Email address",
|
|
42633
42666
|
errorMessages: emailErrorMessages,
|
|
@@ -42638,7 +42671,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
42638
42671
|
return e.key === "Enter" && handleSubmit(e);
|
|
42639
42672
|
},
|
|
42640
42673
|
type: "email",
|
|
42641
|
-
isEmail: true
|
|
42674
|
+
isEmail: true,
|
|
42675
|
+
autocomplete: "email"
|
|
42642
42676
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
42643
42677
|
labelTextWhenNoError: "Password",
|
|
42644
42678
|
errorMessages: passwordErrorMessages,
|
|
@@ -42648,7 +42682,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
42648
42682
|
onKeyDown: function onKeyDown(e) {
|
|
42649
42683
|
return e.key === "Enter" && handleSubmit(e);
|
|
42650
42684
|
},
|
|
42651
|
-
type: "password"
|
|
42685
|
+
type: "password",
|
|
42686
|
+
autocomplete: "new-password"
|
|
42652
42687
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
42653
42688
|
labelTextWhenNoError: "Confirm password",
|
|
42654
42689
|
errorMessages: confirmPasswordErrorMessages,
|
|
@@ -42658,7 +42693,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
42658
42693
|
onKeyDown: function onKeyDown(e) {
|
|
42659
42694
|
return e.key === "Enter" && handleSubmit(e);
|
|
42660
42695
|
},
|
|
42661
|
-
type: "password"
|
|
42696
|
+
type: "password",
|
|
42697
|
+
autocomplete: "new-password"
|
|
42662
42698
|
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
42663
42699
|
padding: isMobile ? "0" : "0.5rem 0 0"
|
|
42664
42700
|
}, /*#__PURE__*/React__default.createElement(PasswordRequirements, {
|
|
@@ -42778,7 +42814,8 @@ var ResetPasswordForm = function ResetPasswordForm(_ref) {
|
|
|
42778
42814
|
onKeyDown: function onKeyDown(e) {
|
|
42779
42815
|
return e.key === "Enter" && handleSubmit(e);
|
|
42780
42816
|
},
|
|
42781
|
-
type: "password"
|
|
42817
|
+
type: "password",
|
|
42818
|
+
autocomplete: "new-password"
|
|
42782
42819
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
42783
42820
|
labelTextWhenNoError: "Confirm password",
|
|
42784
42821
|
errorMessages: confirmPasswordErrorMessages,
|
|
@@ -42788,7 +42825,8 @@ var ResetPasswordForm = function ResetPasswordForm(_ref) {
|
|
|
42788
42825
|
onKeyDown: function onKeyDown(e) {
|
|
42789
42826
|
return e.key === "Enter" && handleSubmit(e);
|
|
42790
42827
|
},
|
|
42791
|
-
type: "password"
|
|
42828
|
+
type: "password",
|
|
42829
|
+
autocomplete: "new-password"
|
|
42792
42830
|
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
42793
42831
|
padding: "0"
|
|
42794
42832
|
}, /*#__PURE__*/React__default.createElement(PasswordRequirements, {
|
|
@@ -43317,12 +43355,14 @@ var PeriscopeDashboardIframe = function PeriscopeDashboardIframe(_ref) {
|
|
|
43317
43355
|
};
|
|
43318
43356
|
React.useEffect(function () {
|
|
43319
43357
|
time.timer = setTimeout(function () {
|
|
43320
|
-
|
|
43358
|
+
if (!periscopeDataSuccess) {
|
|
43359
|
+
periscopeDataRequestFailure();
|
|
43360
|
+
}
|
|
43321
43361
|
}, 10000);
|
|
43322
43362
|
return function () {
|
|
43323
43363
|
return clearTimeout(time.timer);
|
|
43324
43364
|
};
|
|
43325
|
-
}, []);
|
|
43365
|
+
}, [periscopeDataSuccess]);
|
|
43326
43366
|
|
|
43327
43367
|
var Dashboard = function Dashboard(height) {
|
|
43328
43368
|
return function (url) {
|