@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/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
|
@@ -22550,7 +22550,7 @@ var fallbackValues$i = {
|
|
|
22550
22550
|
};
|
|
22551
22551
|
|
|
22552
22552
|
var _excluded$p = ["showErrors", "themeValues"],
|
|
22553
|
-
_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"];
|
|
22554
22554
|
var InputField = styled__default.input.withConfig({
|
|
22555
22555
|
displayName: "FormInput__InputField",
|
|
22556
22556
|
componentId: "sc-l094r1-0"
|
|
@@ -22632,6 +22632,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
22632
22632
|
themeValues = _ref15.themeValues,
|
|
22633
22633
|
background = _ref15.background,
|
|
22634
22634
|
customHeight = _ref15.customHeight,
|
|
22635
|
+
autocomplete = _ref15.autocomplete,
|
|
22635
22636
|
extraStyles = _ref15.extraStyles,
|
|
22636
22637
|
props = _objectWithoutProperties(_ref15, _excluded2);
|
|
22637
22638
|
|
|
@@ -22709,7 +22710,8 @@ var FormInput = function FormInput(_ref15) {
|
|
|
22709
22710
|
"data-qa": labelTextWhenNoError,
|
|
22710
22711
|
themeValues: themeValues,
|
|
22711
22712
|
$customHeight: customHeight,
|
|
22712
|
-
$extraStyles: extraStyles
|
|
22713
|
+
$extraStyles: extraStyles,
|
|
22714
|
+
autocomplete: autocomplete
|
|
22713
22715
|
}, props)) : /*#__PURE__*/React__default.createElement(InputField, _extends({
|
|
22714
22716
|
"aria-labelledby": createIdFromString(labelTextWhenNoError),
|
|
22715
22717
|
"aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
|
|
@@ -22727,7 +22729,8 @@ var FormInput = function FormInput(_ref15) {
|
|
|
22727
22729
|
themeValues: themeValues,
|
|
22728
22730
|
background: background,
|
|
22729
22731
|
$customHeight: customHeight,
|
|
22730
|
-
$extraStyles: extraStyles
|
|
22732
|
+
$extraStyles: extraStyles,
|
|
22733
|
+
autocomplete: autocomplete
|
|
22731
22734
|
}, props))), /*#__PURE__*/React__default.createElement(Stack, {
|
|
22732
22735
|
direction: "row",
|
|
22733
22736
|
justify: "space-between"
|
|
@@ -34411,7 +34414,8 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
34411
34414
|
field = _ref.field,
|
|
34412
34415
|
fieldActions = _ref.fieldActions,
|
|
34413
34416
|
showErrors = _ref.showErrors,
|
|
34414
|
-
countryCode = _ref.countryCode
|
|
34417
|
+
countryCode = _ref.countryCode,
|
|
34418
|
+
autocomplete = _ref.autocomplete;
|
|
34415
34419
|
var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
|
|
34416
34420
|
var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
|
|
34417
34421
|
return /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
@@ -34421,7 +34425,7 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
34421
34425
|
labelTextWhenNoError: labelTextWhenNoError,
|
|
34422
34426
|
errorMessages: errorMessages,
|
|
34423
34427
|
showErrors: showErrors,
|
|
34424
|
-
autocompleteValue:
|
|
34428
|
+
autocompleteValue: autocomplete
|
|
34425
34429
|
});
|
|
34426
34430
|
};
|
|
34427
34431
|
|
|
@@ -36477,7 +36481,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
36477
36481
|
showErrors: showErrors,
|
|
36478
36482
|
onKeyDown: function onKeyDown(e) {
|
|
36479
36483
|
return e.key === "Enter" && handleSubmit(e);
|
|
36480
|
-
}
|
|
36484
|
+
},
|
|
36485
|
+
autocomplete: "address-line1"
|
|
36481
36486
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
36482
36487
|
labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
|
|
36483
36488
|
field: fields.street2,
|
|
@@ -36485,7 +36490,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
36485
36490
|
showErrors: showErrors,
|
|
36486
36491
|
onKeyDown: function onKeyDown(e) {
|
|
36487
36492
|
return e.key === "Enter" && handleSubmit(e);
|
|
36488
|
-
}
|
|
36493
|
+
},
|
|
36494
|
+
autocomplete: "address-line2"
|
|
36489
36495
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
36490
36496
|
labelTextWhenNoError: "City",
|
|
36491
36497
|
errorMessages: cityErrorMessages,
|
|
@@ -36494,7 +36500,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
36494
36500
|
showErrors: showErrors,
|
|
36495
36501
|
onKeyDown: function onKeyDown(e) {
|
|
36496
36502
|
return e.key === "Enter" && handleSubmit(e);
|
|
36497
|
-
}
|
|
36503
|
+
},
|
|
36504
|
+
autocomplete: "address-level2"
|
|
36498
36505
|
}), /*#__PURE__*/React__default.createElement(FormStateDropdown, {
|
|
36499
36506
|
labelTextWhenNoError: isUS ? "State" : "State or Province",
|
|
36500
36507
|
errorMessages: stateProvinceErrorMessages,
|
|
@@ -36504,7 +36511,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
36504
36511
|
showErrors: showErrors,
|
|
36505
36512
|
onKeyDown: function onKeyDown(e) {
|
|
36506
36513
|
return e.key === "Enter" && handleSubmit(e);
|
|
36507
|
-
}
|
|
36514
|
+
},
|
|
36515
|
+
autocomplete: "address-level1"
|
|
36508
36516
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
36509
36517
|
isNum: isUS,
|
|
36510
36518
|
formatter: isUS ? zipFormat : null,
|
|
@@ -36515,7 +36523,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
36515
36523
|
showErrors: showErrors,
|
|
36516
36524
|
onKeyDown: function onKeyDown(e) {
|
|
36517
36525
|
return e.key === "Enter" && handleSubmit(e);
|
|
36518
|
-
}
|
|
36526
|
+
},
|
|
36527
|
+
autocomplete: "postal-code"
|
|
36519
36528
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
36520
36529
|
name: "address checkbox",
|
|
36521
36530
|
title: "Save address to wallet",
|
|
@@ -36619,7 +36628,8 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
|
|
|
36619
36628
|
onKeyDown: function onKeyDown(e) {
|
|
36620
36629
|
return e.key === "Enter" && handleSubmit(e);
|
|
36621
36630
|
},
|
|
36622
|
-
type: "password"
|
|
36631
|
+
type: "password",
|
|
36632
|
+
autocomplete: "current-password"
|
|
36623
36633
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
36624
36634
|
labelTextWhenNoError: "New password",
|
|
36625
36635
|
errorMessages: newPasswordErrorMessages,
|
|
@@ -36629,7 +36639,8 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
|
|
|
36629
36639
|
onKeyDown: function onKeyDown(e) {
|
|
36630
36640
|
return e.key === "Enter" && handleSubmit(e);
|
|
36631
36641
|
},
|
|
36632
|
-
type: "password"
|
|
36642
|
+
type: "password",
|
|
36643
|
+
autocomplete: "new-password"
|
|
36633
36644
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
36634
36645
|
labelTextWhenNoError: "Confirm password",
|
|
36635
36646
|
errorMessages: confirmNewPasswordErrorMessages,
|
|
@@ -36639,7 +36650,8 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
|
|
|
36639
36650
|
onKeyDown: function onKeyDown(e) {
|
|
36640
36651
|
return e.key === "Enter" && handleSubmit(e);
|
|
36641
36652
|
},
|
|
36642
|
-
type: "password"
|
|
36653
|
+
type: "password",
|
|
36654
|
+
autocomplete: "new-password"
|
|
36643
36655
|
})), /*#__PURE__*/React__default.createElement(Box, {
|
|
36644
36656
|
padding: isMobile ? "1rem 0 0" : "1.5rem 0 0"
|
|
36645
36657
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
@@ -36853,7 +36865,8 @@ var EditNameForm = function EditNameForm(_ref) {
|
|
|
36853
36865
|
showErrors: showErrors,
|
|
36854
36866
|
onKeyDown: function onKeyDown(e) {
|
|
36855
36867
|
return e.key === "Enter" && handleSubmit(e);
|
|
36856
|
-
}
|
|
36868
|
+
},
|
|
36869
|
+
autocomplete: "given-name"
|
|
36857
36870
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
36858
36871
|
labelTextWhenNoError: "Last Name",
|
|
36859
36872
|
errorMessages: lastNameErrorMessages,
|
|
@@ -36862,7 +36875,8 @@ var EditNameForm = function EditNameForm(_ref) {
|
|
|
36862
36875
|
showErrors: showErrors,
|
|
36863
36876
|
onKeyDown: function onKeyDown(e) {
|
|
36864
36877
|
return e.key === "Enter" && handleSubmit(e);
|
|
36865
|
-
}
|
|
36878
|
+
},
|
|
36879
|
+
autocomplete: "family-name"
|
|
36866
36880
|
})));
|
|
36867
36881
|
};
|
|
36868
36882
|
|
|
@@ -36929,7 +36943,8 @@ var EditableList = function EditableList(_ref) {
|
|
|
36929
36943
|
autoPayMethods = _ref.autoPayMethods,
|
|
36930
36944
|
_ref$as = _ref.as,
|
|
36931
36945
|
as = _ref$as === void 0 ? "p" : _ref$as,
|
|
36932
|
-
qaPrefix = _ref.qaPrefix
|
|
36946
|
+
qaPrefix = _ref.qaPrefix,
|
|
36947
|
+
ariaLabel = _ref.ariaLabel;
|
|
36933
36948
|
var addText = "Add a".concat(itemName[0].match(/[aieouAIEOU]/) ? "n" : "", " ").concat(itemName);
|
|
36934
36949
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
36935
36950
|
padding: "0rem 0rem 1.5rem 0rem",
|
|
@@ -36989,7 +37004,7 @@ var EditableList = function EditableList(_ref) {
|
|
|
36989
37004
|
return removeItem(item.id);
|
|
36990
37005
|
},
|
|
36991
37006
|
extraStyles: "min-width: 0;",
|
|
36992
|
-
"aria-label": "Remove ".concat(itemName)
|
|
37007
|
+
"aria-label": "Remove ".concat(ariaLabel || itemName)
|
|
36993
37008
|
})), canEdit && /*#__PURE__*/React__default.createElement(Box, {
|
|
36994
37009
|
padding: "0 0.5rem",
|
|
36995
37010
|
border: "2px solid transparent",
|
|
@@ -37003,7 +37018,7 @@ var EditableList = function EditableList(_ref) {
|
|
|
37003
37018
|
return editItem(item.id);
|
|
37004
37019
|
},
|
|
37005
37020
|
extraStyles: "min-width: 0;",
|
|
37006
|
-
"aria-label": "Edit ".concat(itemName)
|
|
37021
|
+
"aria-label": "Edit ".concat(ariaLabel || itemName)
|
|
37007
37022
|
}))));
|
|
37008
37023
|
})), canAdd && (!maxItems || items.length < maxItems) && /*#__PURE__*/React__default.createElement(Box, {
|
|
37009
37024
|
padding: items.length === 0 ? "0" : "1rem 0 0"
|
|
@@ -37196,7 +37211,8 @@ var EmailForm = function EmailForm(_ref) {
|
|
|
37196
37211
|
onKeyDown: function onKeyDown(e) {
|
|
37197
37212
|
return e.key === "Enter" && handleSubmit(e);
|
|
37198
37213
|
},
|
|
37199
|
-
isEmail: true
|
|
37214
|
+
isEmail: true,
|
|
37215
|
+
autocomplete: "email"
|
|
37200
37216
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
37201
37217
|
name: "email checkbox",
|
|
37202
37218
|
title: "Save email address to wallet",
|
|
@@ -37248,7 +37264,8 @@ var ForgotPasswordForm = function ForgotPasswordForm(_ref) {
|
|
|
37248
37264
|
onKeyDown: function onKeyDown(e) {
|
|
37249
37265
|
return e.key === "Enter" && handleSubmit(e);
|
|
37250
37266
|
},
|
|
37251
|
-
isEmail: true
|
|
37267
|
+
isEmail: true,
|
|
37268
|
+
autocomplete: "email"
|
|
37252
37269
|
});
|
|
37253
37270
|
};
|
|
37254
37271
|
|
|
@@ -38910,7 +38927,8 @@ var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
|
|
|
38910
38927
|
onKeyDown: function onKeyDown(e) {
|
|
38911
38928
|
return e.key === "Enter" && handleSubmit(e);
|
|
38912
38929
|
},
|
|
38913
|
-
disabled: namesDisabled
|
|
38930
|
+
disabled: namesDisabled,
|
|
38931
|
+
autocomplete: "given-name"
|
|
38914
38932
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
38915
38933
|
labelTextWhenNoError: "Last Name",
|
|
38916
38934
|
errorMessages: lastNameErrorMessages,
|
|
@@ -38920,7 +38938,8 @@ var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
|
|
|
38920
38938
|
onKeyDown: function onKeyDown(e) {
|
|
38921
38939
|
return e.key === "Enter" && handleSubmit(e);
|
|
38922
38940
|
},
|
|
38923
|
-
disabled: namesDisabled
|
|
38941
|
+
disabled: namesDisabled,
|
|
38942
|
+
autocomplete: "family-name"
|
|
38924
38943
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
38925
38944
|
labelTextWhenNoError: "Email",
|
|
38926
38945
|
errorMessages: emailErrorMessages,
|
|
@@ -38930,7 +38949,8 @@ var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
|
|
|
38930
38949
|
onKeyDown: function onKeyDown(e) {
|
|
38931
38950
|
return e.key === "Enter" && handleSubmit(e);
|
|
38932
38951
|
},
|
|
38933
|
-
disabled: emailDisabled
|
|
38952
|
+
disabled: emailDisabled,
|
|
38953
|
+
autocomplete: "email"
|
|
38934
38954
|
}), formType === PROFILE && /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
38935
38955
|
labelTextWhenNoError: "Password",
|
|
38936
38956
|
errorMessages: {},
|
|
@@ -39074,7 +39094,8 @@ var LoginForm = function LoginForm(_ref) {
|
|
|
39074
39094
|
onKeyDown: function onKeyDown(e) {
|
|
39075
39095
|
return e.key === "Enter" && handleSubmit(e);
|
|
39076
39096
|
},
|
|
39077
|
-
isEmail: true
|
|
39097
|
+
isEmail: true,
|
|
39098
|
+
autocomplete: "email"
|
|
39078
39099
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
39079
39100
|
labelTextWhenNoError: "Password",
|
|
39080
39101
|
errorMessages: passwordErrorMessages,
|
|
@@ -39084,7 +39105,8 @@ var LoginForm = function LoginForm(_ref) {
|
|
|
39084
39105
|
showErrors: showErrors,
|
|
39085
39106
|
onKeyDown: function onKeyDown(e) {
|
|
39086
39107
|
return e.key === "Enter" && handleSubmit(e);
|
|
39087
|
-
}
|
|
39108
|
+
},
|
|
39109
|
+
autocomplete: "current-password"
|
|
39088
39110
|
}));
|
|
39089
39111
|
};
|
|
39090
39112
|
|
|
@@ -41999,7 +42021,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
41999
42021
|
showErrors: showErrors,
|
|
42000
42022
|
onKeyDown: function onKeyDown(e) {
|
|
42001
42023
|
return e.key === "Enter" && handleSubmit(e);
|
|
42002
|
-
}
|
|
42024
|
+
},
|
|
42025
|
+
autocomplete: "name"
|
|
42003
42026
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
42004
42027
|
labelTextWhenNoError: "Routing number",
|
|
42005
42028
|
errorMessages: routingNumberErrors,
|
|
@@ -42196,7 +42219,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
42196
42219
|
showErrors: showErrors,
|
|
42197
42220
|
onKeyDown: function onKeyDown(e) {
|
|
42198
42221
|
return e.key === "Enter" && handleSubmit(e);
|
|
42199
|
-
}
|
|
42222
|
+
},
|
|
42223
|
+
autocomplete: "cc-name"
|
|
42200
42224
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
42201
42225
|
labelTextWhenNoError: "Credit card number",
|
|
42202
42226
|
errorMessages: creditCardNumberErrors,
|
|
@@ -42207,7 +42231,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
42207
42231
|
onKeyDown: function onKeyDown(e) {
|
|
42208
42232
|
return e.key === "Enter" && handleSubmit(e);
|
|
42209
42233
|
},
|
|
42210
|
-
isNum: true
|
|
42234
|
+
isNum: true,
|
|
42235
|
+
autocomplete: "cc-number"
|
|
42211
42236
|
}), /*#__PURE__*/React__default.createElement(FormInputRow, {
|
|
42212
42237
|
breakpoint: isMobile ? "1000rem" : "21rem",
|
|
42213
42238
|
childGap: isMobile ? "0rem" : "1rem"
|
|
@@ -42221,7 +42246,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
42221
42246
|
onKeyDown: function onKeyDown(e) {
|
|
42222
42247
|
return e.key === "Enter" && handleSubmit(e);
|
|
42223
42248
|
},
|
|
42224
|
-
isNum: true
|
|
42249
|
+
isNum: true,
|
|
42250
|
+
autocomplete: "cc-exp"
|
|
42225
42251
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
42226
42252
|
labelTextWhenNoError: "CVV",
|
|
42227
42253
|
errorMessages: cvvErrors,
|
|
@@ -42232,7 +42258,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
42232
42258
|
background: checkCardBrand(fields.creditCardNumber.rawValue) == "AMEX" ? "/AmexCVVHint.svg" : "/CVVHint.svg",
|
|
42233
42259
|
onKeyDown: function onKeyDown(e) {
|
|
42234
42260
|
return e.key === "Enter" && handleSubmit(e);
|
|
42235
|
-
}
|
|
42261
|
+
},
|
|
42262
|
+
autocomplete: "cc-csc"
|
|
42236
42263
|
})), !hideZipCode && /*#__PURE__*/React__default.createElement(Box, {
|
|
42237
42264
|
padding: isMobile ? "0" : "0 0.5rem 0 0",
|
|
42238
42265
|
width: isMobile ? "100%" : "50%"
|
|
@@ -42246,7 +42273,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
42246
42273
|
showErrors: showErrors,
|
|
42247
42274
|
onKeyDown: function onKeyDown(e) {
|
|
42248
42275
|
return e.key === "Enter" && handleSubmit(e);
|
|
42249
|
-
}
|
|
42276
|
+
},
|
|
42277
|
+
autocomplete: "billing postal-code"
|
|
42250
42278
|
})), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
42251
42279
|
name: "credit card checkbox",
|
|
42252
42280
|
title: "Save credit card to wallet",
|
|
@@ -42330,7 +42358,8 @@ var PhoneForm = function PhoneForm(_ref) {
|
|
|
42330
42358
|
onKeyUp: function onKeyUp(e) {
|
|
42331
42359
|
return e.key === "Enter" && handleSubmit(e);
|
|
42332
42360
|
},
|
|
42333
|
-
isNum: true
|
|
42361
|
+
isNum: true,
|
|
42362
|
+
autocomplete: "tel"
|
|
42334
42363
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
42335
42364
|
name: "phone checkbox",
|
|
42336
42365
|
title: "Save phone number to wallet",
|
|
@@ -42620,7 +42649,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
42620
42649
|
showErrors: showErrors,
|
|
42621
42650
|
onKeyDown: function onKeyDown(e) {
|
|
42622
42651
|
return e.key === "Enter" && handleSubmit(e);
|
|
42623
|
-
}
|
|
42652
|
+
},
|
|
42653
|
+
autocomplete: "given-name"
|
|
42624
42654
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
42625
42655
|
labelTextWhenNoError: "Last name",
|
|
42626
42656
|
errorMessages: lastNameErrorMessages,
|
|
@@ -42629,7 +42659,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
42629
42659
|
showErrors: showErrors,
|
|
42630
42660
|
onKeyDown: function onKeyDown(e) {
|
|
42631
42661
|
return e.key === "Enter" && handleSubmit(e);
|
|
42632
|
-
}
|
|
42662
|
+
},
|
|
42663
|
+
autocomplete: "family-name"
|
|
42633
42664
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
42634
42665
|
labelTextWhenNoError: "Email address",
|
|
42635
42666
|
errorMessages: emailErrorMessages,
|
|
@@ -42640,7 +42671,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
42640
42671
|
return e.key === "Enter" && handleSubmit(e);
|
|
42641
42672
|
},
|
|
42642
42673
|
type: "email",
|
|
42643
|
-
isEmail: true
|
|
42674
|
+
isEmail: true,
|
|
42675
|
+
autocomplete: "email"
|
|
42644
42676
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
42645
42677
|
labelTextWhenNoError: "Password",
|
|
42646
42678
|
errorMessages: passwordErrorMessages,
|
|
@@ -42650,7 +42682,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
42650
42682
|
onKeyDown: function onKeyDown(e) {
|
|
42651
42683
|
return e.key === "Enter" && handleSubmit(e);
|
|
42652
42684
|
},
|
|
42653
|
-
type: "password"
|
|
42685
|
+
type: "password",
|
|
42686
|
+
autocomplete: "new-password"
|
|
42654
42687
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
42655
42688
|
labelTextWhenNoError: "Confirm password",
|
|
42656
42689
|
errorMessages: confirmPasswordErrorMessages,
|
|
@@ -42660,7 +42693,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
42660
42693
|
onKeyDown: function onKeyDown(e) {
|
|
42661
42694
|
return e.key === "Enter" && handleSubmit(e);
|
|
42662
42695
|
},
|
|
42663
|
-
type: "password"
|
|
42696
|
+
type: "password",
|
|
42697
|
+
autocomplete: "new-password"
|
|
42664
42698
|
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
42665
42699
|
padding: isMobile ? "0" : "0.5rem 0 0"
|
|
42666
42700
|
}, /*#__PURE__*/React__default.createElement(PasswordRequirements, {
|
|
@@ -42780,7 +42814,8 @@ var ResetPasswordForm = function ResetPasswordForm(_ref) {
|
|
|
42780
42814
|
onKeyDown: function onKeyDown(e) {
|
|
42781
42815
|
return e.key === "Enter" && handleSubmit(e);
|
|
42782
42816
|
},
|
|
42783
|
-
type: "password"
|
|
42817
|
+
type: "password",
|
|
42818
|
+
autocomplete: "new-password"
|
|
42784
42819
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
42785
42820
|
labelTextWhenNoError: "Confirm password",
|
|
42786
42821
|
errorMessages: confirmPasswordErrorMessages,
|
|
@@ -42790,7 +42825,8 @@ var ResetPasswordForm = function ResetPasswordForm(_ref) {
|
|
|
42790
42825
|
onKeyDown: function onKeyDown(e) {
|
|
42791
42826
|
return e.key === "Enter" && handleSubmit(e);
|
|
42792
42827
|
},
|
|
42793
|
-
type: "password"
|
|
42828
|
+
type: "password",
|
|
42829
|
+
autocomplete: "new-password"
|
|
42794
42830
|
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
42795
42831
|
padding: "0"
|
|
42796
42832
|
}, /*#__PURE__*/React__default.createElement(PasswordRequirements, {
|