@thecb/components 6.1.1 → 6.1.4-beta.1

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 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
- - The version of the package is automatically bumped via GitHub Action after a pull request is merged to the master branch.
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
- - The auto version bump action analyzes commit messages in the PR to determine what value to increment the package by. Including the keyword `major` in a commit message will result in a major version bump (i.e., `2.3.0` -> `3.0.0`). Including the keyword `minor` will result in a minor version bump (i.e., `2.3.0` -> `2.4.0`). PRs that are merged with neither the `major` or `minor` keywords present in commit messages will result in a patch version bump (i.e., `2.3.0` -> `2.3.1`).
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
- - 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
+ - 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
- ### Publishing new versions to NPM
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
- - While GitHub will handle bumping the version of the library with every PR merge to master, publishing an update version of the library to NPM requires creating a release using the `release` script. This script triggers an action in the repo to create a release tagged with a publication date. After a new release is created, manually run `yarn build && yarn publish` in your repo directory to publish a new version to NPM. When yarn asks you what version to publish, enter the same number that it gives you, as this number will already reflect the increase in version from the auto version bump action.
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
- - Once a new version of the library is published to NPM, you may either manually update your application's `package.json` to request that new version, or wait until the following morning when dependabot will pick up the change and create an update PR for you.
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: "address-level1"
34428
+ autocompleteValue: autocomplete
34425
34429
  });
34426
34430
  };
34427
34431
 
@@ -34726,6 +34730,24 @@ const ONLY_NATURALS_ERROR = "error/ONLY_NATURALS";
34726
34730
  const onlyNaturals = createValidator(ONLY_NATURALS, ONLY_NATURALS_ERROR);
34727
34731
  validatorFns[ONLY_NATURALS] = (value, args, form) => /^(\d+)?$/.test(value);
34728
34732
 
34733
+ /*
34734
+ 07/22: experimental expiration date constraint
34735
+ should allow entry of expiration date using "/" character
34736
+ to accommodate browser autofill
34737
+
34738
+ not tested as validation function
34739
+ to validate exp date instead use combo of:
34740
+ required(), hasLength(), isValidMonth(), dateAfterToday()
34741
+ */
34742
+ const ONLY_EXPIRATION_DATE = "validator/ONLY_EXPIRATION_DATE";
34743
+ const ONLY_EXPIRATION_DATE_ERROR = "error/ONLY_EXPIRATION_DATE";
34744
+ const onlyExpirationDate = createValidator(
34745
+ ONLY_EXPIRATION_DATE,
34746
+ ONLY_EXPIRATION_DATE_ERROR
34747
+ );
34748
+ validatorFns[ONLY_EXPIRATION_DATE] = (value, args, form) =>
34749
+ /^(\d?\d?\/?\d?\d?)?$/.test(value);
34750
+
34729
34751
  const NUMBER_LESS_THAN = "validator/NUMBER_LESS_THAN";
34730
34752
  const NUMBER_LESS_THAN_ERROR = "error/NUMBER_LESS_THAN";
34731
34753
  const numberLessThan = createValidator(
@@ -36477,7 +36499,8 @@ var AddressForm = function AddressForm(_ref) {
36477
36499
  showErrors: showErrors,
36478
36500
  onKeyDown: function onKeyDown(e) {
36479
36501
  return e.key === "Enter" && handleSubmit(e);
36480
- }
36502
+ },
36503
+ autocomplete: "address-line1"
36481
36504
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
36482
36505
  labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
36483
36506
  field: fields.street2,
@@ -36485,7 +36508,8 @@ var AddressForm = function AddressForm(_ref) {
36485
36508
  showErrors: showErrors,
36486
36509
  onKeyDown: function onKeyDown(e) {
36487
36510
  return e.key === "Enter" && handleSubmit(e);
36488
- }
36511
+ },
36512
+ autocomplete: "address-line2"
36489
36513
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
36490
36514
  labelTextWhenNoError: "City",
36491
36515
  errorMessages: cityErrorMessages,
@@ -36494,7 +36518,8 @@ var AddressForm = function AddressForm(_ref) {
36494
36518
  showErrors: showErrors,
36495
36519
  onKeyDown: function onKeyDown(e) {
36496
36520
  return e.key === "Enter" && handleSubmit(e);
36497
- }
36521
+ },
36522
+ autocomplete: "address-level2"
36498
36523
  }), /*#__PURE__*/React__default.createElement(FormStateDropdown, {
36499
36524
  labelTextWhenNoError: isUS ? "State" : "State or Province",
36500
36525
  errorMessages: stateProvinceErrorMessages,
@@ -36504,7 +36529,8 @@ var AddressForm = function AddressForm(_ref) {
36504
36529
  showErrors: showErrors,
36505
36530
  onKeyDown: function onKeyDown(e) {
36506
36531
  return e.key === "Enter" && handleSubmit(e);
36507
- }
36532
+ },
36533
+ autocomplete: "address-level1"
36508
36534
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
36509
36535
  isNum: isUS,
36510
36536
  formatter: isUS ? zipFormat : null,
@@ -36515,7 +36541,8 @@ var AddressForm = function AddressForm(_ref) {
36515
36541
  showErrors: showErrors,
36516
36542
  onKeyDown: function onKeyDown(e) {
36517
36543
  return e.key === "Enter" && handleSubmit(e);
36518
- }
36544
+ },
36545
+ autocomplete: "postal-code"
36519
36546
  }), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
36520
36547
  name: "address checkbox",
36521
36548
  title: "Save address to wallet",
@@ -36619,7 +36646,8 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
36619
36646
  onKeyDown: function onKeyDown(e) {
36620
36647
  return e.key === "Enter" && handleSubmit(e);
36621
36648
  },
36622
- type: "password"
36649
+ type: "password",
36650
+ autocomplete: "current-password"
36623
36651
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
36624
36652
  labelTextWhenNoError: "New password",
36625
36653
  errorMessages: newPasswordErrorMessages,
@@ -36629,7 +36657,8 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
36629
36657
  onKeyDown: function onKeyDown(e) {
36630
36658
  return e.key === "Enter" && handleSubmit(e);
36631
36659
  },
36632
- type: "password"
36660
+ type: "password",
36661
+ autocomplete: "new-password"
36633
36662
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
36634
36663
  labelTextWhenNoError: "Confirm password",
36635
36664
  errorMessages: confirmNewPasswordErrorMessages,
@@ -36639,7 +36668,8 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
36639
36668
  onKeyDown: function onKeyDown(e) {
36640
36669
  return e.key === "Enter" && handleSubmit(e);
36641
36670
  },
36642
- type: "password"
36671
+ type: "password",
36672
+ autocomplete: "new-password"
36643
36673
  })), /*#__PURE__*/React__default.createElement(Box, {
36644
36674
  padding: isMobile ? "1rem 0 0" : "1.5rem 0 0"
36645
36675
  }, /*#__PURE__*/React__default.createElement(Cluster, {
@@ -36853,7 +36883,8 @@ var EditNameForm = function EditNameForm(_ref) {
36853
36883
  showErrors: showErrors,
36854
36884
  onKeyDown: function onKeyDown(e) {
36855
36885
  return e.key === "Enter" && handleSubmit(e);
36856
- }
36886
+ },
36887
+ autocomplete: "given-name"
36857
36888
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
36858
36889
  labelTextWhenNoError: "Last Name",
36859
36890
  errorMessages: lastNameErrorMessages,
@@ -36862,7 +36893,8 @@ var EditNameForm = function EditNameForm(_ref) {
36862
36893
  showErrors: showErrors,
36863
36894
  onKeyDown: function onKeyDown(e) {
36864
36895
  return e.key === "Enter" && handleSubmit(e);
36865
- }
36896
+ },
36897
+ autocomplete: "family-name"
36866
36898
  })));
36867
36899
  };
36868
36900
 
@@ -36929,7 +36961,8 @@ var EditableList = function EditableList(_ref) {
36929
36961
  autoPayMethods = _ref.autoPayMethods,
36930
36962
  _ref$as = _ref.as,
36931
36963
  as = _ref$as === void 0 ? "p" : _ref$as,
36932
- qaPrefix = _ref.qaPrefix;
36964
+ qaPrefix = _ref.qaPrefix,
36965
+ ariaLabel = _ref.ariaLabel;
36933
36966
  var addText = "Add a".concat(itemName[0].match(/[aieouAIEOU]/) ? "n" : "", " ").concat(itemName);
36934
36967
  return /*#__PURE__*/React__default.createElement(Box, {
36935
36968
  padding: "0rem 0rem 1.5rem 0rem",
@@ -36989,7 +37022,7 @@ var EditableList = function EditableList(_ref) {
36989
37022
  return removeItem(item.id);
36990
37023
  },
36991
37024
  extraStyles: "min-width: 0;",
36992
- "aria-label": "Remove ".concat(itemName)
37025
+ "aria-label": "Remove ".concat(ariaLabel || itemName)
36993
37026
  })), canEdit && /*#__PURE__*/React__default.createElement(Box, {
36994
37027
  padding: "0 0.5rem",
36995
37028
  border: "2px solid transparent",
@@ -37003,7 +37036,7 @@ var EditableList = function EditableList(_ref) {
37003
37036
  return editItem(item.id);
37004
37037
  },
37005
37038
  extraStyles: "min-width: 0;",
37006
- "aria-label": "Edit ".concat(itemName)
37039
+ "aria-label": "Edit ".concat(ariaLabel || itemName)
37007
37040
  }))));
37008
37041
  })), canAdd && (!maxItems || items.length < maxItems) && /*#__PURE__*/React__default.createElement(Box, {
37009
37042
  padding: items.length === 0 ? "0" : "1rem 0 0"
@@ -37196,7 +37229,8 @@ var EmailForm = function EmailForm(_ref) {
37196
37229
  onKeyDown: function onKeyDown(e) {
37197
37230
  return e.key === "Enter" && handleSubmit(e);
37198
37231
  },
37199
- isEmail: true
37232
+ isEmail: true,
37233
+ autocomplete: "email"
37200
37234
  }), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
37201
37235
  name: "email checkbox",
37202
37236
  title: "Save email address to wallet",
@@ -37248,7 +37282,8 @@ var ForgotPasswordForm = function ForgotPasswordForm(_ref) {
37248
37282
  onKeyDown: function onKeyDown(e) {
37249
37283
  return e.key === "Enter" && handleSubmit(e);
37250
37284
  },
37251
- isEmail: true
37285
+ isEmail: true,
37286
+ autocomplete: "email"
37252
37287
  });
37253
37288
  };
37254
37289
 
@@ -38910,7 +38945,8 @@ var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
38910
38945
  onKeyDown: function onKeyDown(e) {
38911
38946
  return e.key === "Enter" && handleSubmit(e);
38912
38947
  },
38913
- disabled: namesDisabled
38948
+ disabled: namesDisabled,
38949
+ autocomplete: "given-name"
38914
38950
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
38915
38951
  labelTextWhenNoError: "Last Name",
38916
38952
  errorMessages: lastNameErrorMessages,
@@ -38920,7 +38956,8 @@ var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
38920
38956
  onKeyDown: function onKeyDown(e) {
38921
38957
  return e.key === "Enter" && handleSubmit(e);
38922
38958
  },
38923
- disabled: namesDisabled
38959
+ disabled: namesDisabled,
38960
+ autocomplete: "family-name"
38924
38961
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
38925
38962
  labelTextWhenNoError: "Email",
38926
38963
  errorMessages: emailErrorMessages,
@@ -38930,7 +38967,8 @@ var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
38930
38967
  onKeyDown: function onKeyDown(e) {
38931
38968
  return e.key === "Enter" && handleSubmit(e);
38932
38969
  },
38933
- disabled: emailDisabled
38970
+ disabled: emailDisabled,
38971
+ autocomplete: "email"
38934
38972
  }), formType === PROFILE && /*#__PURE__*/React__default.createElement(FormInput$1, {
38935
38973
  labelTextWhenNoError: "Password",
38936
38974
  errorMessages: {},
@@ -39074,7 +39112,8 @@ var LoginForm = function LoginForm(_ref) {
39074
39112
  onKeyDown: function onKeyDown(e) {
39075
39113
  return e.key === "Enter" && handleSubmit(e);
39076
39114
  },
39077
- isEmail: true
39115
+ isEmail: true,
39116
+ autocomplete: "email"
39078
39117
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
39079
39118
  labelTextWhenNoError: "Password",
39080
39119
  errorMessages: passwordErrorMessages,
@@ -39084,7 +39123,8 @@ var LoginForm = function LoginForm(_ref) {
39084
39123
  showErrors: showErrors,
39085
39124
  onKeyDown: function onKeyDown(e) {
39086
39125
  return e.key === "Enter" && handleSubmit(e);
39087
- }
39126
+ },
39127
+ autocomplete: "current-password"
39088
39128
  }));
39089
39129
  };
39090
39130
 
@@ -41999,7 +42039,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
41999
42039
  showErrors: showErrors,
42000
42040
  onKeyDown: function onKeyDown(e) {
42001
42041
  return e.key === "Enter" && handleSubmit(e);
42002
- }
42042
+ },
42043
+ autocomplete: "name"
42003
42044
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
42004
42045
  labelTextWhenNoError: "Routing number",
42005
42046
  errorMessages: routingNumberErrors,
@@ -42196,7 +42237,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
42196
42237
  showErrors: showErrors,
42197
42238
  onKeyDown: function onKeyDown(e) {
42198
42239
  return e.key === "Enter" && handleSubmit(e);
42199
- }
42240
+ },
42241
+ autocomplete: "cc-name"
42200
42242
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
42201
42243
  labelTextWhenNoError: "Credit card number",
42202
42244
  errorMessages: creditCardNumberErrors,
@@ -42207,7 +42249,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
42207
42249
  onKeyDown: function onKeyDown(e) {
42208
42250
  return e.key === "Enter" && handleSubmit(e);
42209
42251
  },
42210
- isNum: true
42252
+ isNum: true,
42253
+ autocomplete: "cc-number"
42211
42254
  }), /*#__PURE__*/React__default.createElement(FormInputRow, {
42212
42255
  breakpoint: isMobile ? "1000rem" : "21rem",
42213
42256
  childGap: isMobile ? "0rem" : "1rem"
@@ -42221,7 +42264,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
42221
42264
  onKeyDown: function onKeyDown(e) {
42222
42265
  return e.key === "Enter" && handleSubmit(e);
42223
42266
  },
42224
- isNum: true
42267
+ isNum: true,
42268
+ autocomplete: "cc-exp"
42225
42269
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
42226
42270
  labelTextWhenNoError: "CVV",
42227
42271
  errorMessages: cvvErrors,
@@ -42232,7 +42276,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
42232
42276
  background: checkCardBrand(fields.creditCardNumber.rawValue) == "AMEX" ? "/AmexCVVHint.svg" : "/CVVHint.svg",
42233
42277
  onKeyDown: function onKeyDown(e) {
42234
42278
  return e.key === "Enter" && handleSubmit(e);
42235
- }
42279
+ },
42280
+ autocomplete: "cc-csc"
42236
42281
  })), !hideZipCode && /*#__PURE__*/React__default.createElement(Box, {
42237
42282
  padding: isMobile ? "0" : "0 0.5rem 0 0",
42238
42283
  width: isMobile ? "100%" : "50%"
@@ -42246,7 +42291,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
42246
42291
  showErrors: showErrors,
42247
42292
  onKeyDown: function onKeyDown(e) {
42248
42293
  return e.key === "Enter" && handleSubmit(e);
42249
- }
42294
+ },
42295
+ autocomplete: "billing postal-code"
42250
42296
  })), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
42251
42297
  name: "credit card checkbox",
42252
42298
  title: "Save credit card to wallet",
@@ -42271,7 +42317,7 @@ var formConfig$8 = {
42271
42317
  },
42272
42318
  expirationDate: {
42273
42319
  validators: [required(), hasLength(4, 4), isValidMonth(0), dateAfterToday("MMYY", "month", true)],
42274
- constraints: [onlyIntegers(), hasLength(0, 4)]
42320
+ constraints: [onlyExpirationDate(), hasLength(0, 4)]
42275
42321
  },
42276
42322
  cvv: {
42277
42323
  validators: [required(), hasLength(3, 4)],
@@ -42330,7 +42376,8 @@ var PhoneForm = function PhoneForm(_ref) {
42330
42376
  onKeyUp: function onKeyUp(e) {
42331
42377
  return e.key === "Enter" && handleSubmit(e);
42332
42378
  },
42333
- isNum: true
42379
+ isNum: true,
42380
+ autocomplete: "tel"
42334
42381
  }), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
42335
42382
  name: "phone checkbox",
42336
42383
  title: "Save phone number to wallet",
@@ -42620,7 +42667,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
42620
42667
  showErrors: showErrors,
42621
42668
  onKeyDown: function onKeyDown(e) {
42622
42669
  return e.key === "Enter" && handleSubmit(e);
42623
- }
42670
+ },
42671
+ autocomplete: "given-name"
42624
42672
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
42625
42673
  labelTextWhenNoError: "Last name",
42626
42674
  errorMessages: lastNameErrorMessages,
@@ -42629,7 +42677,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
42629
42677
  showErrors: showErrors,
42630
42678
  onKeyDown: function onKeyDown(e) {
42631
42679
  return e.key === "Enter" && handleSubmit(e);
42632
- }
42680
+ },
42681
+ autocomplete: "family-name"
42633
42682
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
42634
42683
  labelTextWhenNoError: "Email address",
42635
42684
  errorMessages: emailErrorMessages,
@@ -42640,7 +42689,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
42640
42689
  return e.key === "Enter" && handleSubmit(e);
42641
42690
  },
42642
42691
  type: "email",
42643
- isEmail: true
42692
+ isEmail: true,
42693
+ autocomplete: "email"
42644
42694
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
42645
42695
  labelTextWhenNoError: "Password",
42646
42696
  errorMessages: passwordErrorMessages,
@@ -42650,7 +42700,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
42650
42700
  onKeyDown: function onKeyDown(e) {
42651
42701
  return e.key === "Enter" && handleSubmit(e);
42652
42702
  },
42653
- type: "password"
42703
+ type: "password",
42704
+ autocomplete: "new-password"
42654
42705
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
42655
42706
  labelTextWhenNoError: "Confirm password",
42656
42707
  errorMessages: confirmPasswordErrorMessages,
@@ -42660,7 +42711,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
42660
42711
  onKeyDown: function onKeyDown(e) {
42661
42712
  return e.key === "Enter" && handleSubmit(e);
42662
42713
  },
42663
- type: "password"
42714
+ type: "password",
42715
+ autocomplete: "new-password"
42664
42716
  }), /*#__PURE__*/React__default.createElement(Box, {
42665
42717
  padding: isMobile ? "0" : "0.5rem 0 0"
42666
42718
  }, /*#__PURE__*/React__default.createElement(PasswordRequirements, {
@@ -42780,7 +42832,8 @@ var ResetPasswordForm = function ResetPasswordForm(_ref) {
42780
42832
  onKeyDown: function onKeyDown(e) {
42781
42833
  return e.key === "Enter" && handleSubmit(e);
42782
42834
  },
42783
- type: "password"
42835
+ type: "password",
42836
+ autocomplete: "new-password"
42784
42837
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
42785
42838
  labelTextWhenNoError: "Confirm password",
42786
42839
  errorMessages: confirmPasswordErrorMessages,
@@ -42790,7 +42843,8 @@ var ResetPasswordForm = function ResetPasswordForm(_ref) {
42790
42843
  onKeyDown: function onKeyDown(e) {
42791
42844
  return e.key === "Enter" && handleSubmit(e);
42792
42845
  },
42793
- type: "password"
42846
+ type: "password",
42847
+ autocomplete: "new-password"
42794
42848
  }), /*#__PURE__*/React__default.createElement(Box, {
42795
42849
  padding: "0"
42796
42850
  }, /*#__PURE__*/React__default.createElement(PasswordRequirements, {
@@ -43319,12 +43373,14 @@ var PeriscopeDashboardIframe = function PeriscopeDashboardIframe(_ref) {
43319
43373
  };
43320
43374
  React.useEffect(function () {
43321
43375
  time.timer = setTimeout(function () {
43322
- periscopeDataRequestFailure();
43376
+ if (!periscopeDataSuccess) {
43377
+ periscopeDataRequestFailure();
43378
+ }
43323
43379
  }, 10000);
43324
43380
  return function () {
43325
43381
  return clearTimeout(time.timer);
43326
43382
  };
43327
- }, []);
43383
+ }, [periscopeDataSuccess]);
43328
43384
 
43329
43385
  var Dashboard = function Dashboard(height) {
43330
43386
  return function (url) {