@thecb/components 4.1.0 → 4.1.4

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/dist/index.cjs.js CHANGED
@@ -14175,6 +14175,190 @@ var SearchIcon = function SearchIcon() {
14175
14175
  })))))));
14176
14176
  };
14177
14177
 
14178
+ var WalletIcon = function WalletIcon(_ref) {
14179
+ var themeValues = _ref.themeValues;
14180
+ return /*#__PURE__*/React__default.createElement("svg", {
14181
+ xmlns: "http://www.w3.org/2000/svg",
14182
+ width: "299",
14183
+ height: "150",
14184
+ viewBox: "0 0 299 150"
14185
+ }, /*#__PURE__*/React__default.createElement("g", {
14186
+ fill: "none",
14187
+ fillRule: "evenodd",
14188
+ stroke: "none",
14189
+ strokeWidth: "1"
14190
+ }, /*#__PURE__*/React__default.createElement("g", {
14191
+ transform: "translate(-154 -340)"
14192
+ }, /*#__PURE__*/React__default.createElement("g", {
14193
+ transform: "translate(132 261)"
14194
+ }, /*#__PURE__*/React__default.createElement("g", {
14195
+ transform: "translate(22 79)"
14196
+ }, /*#__PURE__*/React__default.createElement("g", {
14197
+ stroke: "#3B414D",
14198
+ strokeLinecap: "round",
14199
+ strokeWidth: "4.08",
14200
+ transform: "translate(52.686 118.445)"
14201
+ }, /*#__PURE__*/React__default.createElement("path", {
14202
+ d: "M208.2 0.375L175.611 0.776"
14203
+ }), /*#__PURE__*/React__default.createElement("path", {
14204
+ d: "M233.568 0.375L218.318 0.776"
14205
+ }), /*#__PURE__*/React__default.createElement("path", {
14206
+ d: "M44.527 0.375L17.757 0.776"
14207
+ }), /*#__PURE__*/React__default.createElement("path", {
14208
+ d: "M7.759 0.375L0 0.776"
14209
+ })), /*#__PURE__*/React__default.createElement("path", {
14210
+ fill: "#B8E4F4",
14211
+ d: "M192.663 142.912c0 3.646-13.311 6.602-29.731 6.602s-29.73-2.956-29.73-6.602c0-3.646 13.31-6.602 29.73-6.602s29.73 2.956 29.73 6.602"
14212
+ }), /*#__PURE__*/React__default.createElement("g", {
14213
+ stroke: "#45B770",
14214
+ strokeLinecap: "round",
14215
+ strokeLinejoin: "round",
14216
+ strokeWidth: "4.08",
14217
+ transform: "translate(150.58 129.154)"
14218
+ }, /*#__PURE__*/React__default.createElement("path", {
14219
+ d: "M8.08496185 -1.08959555e-14L8.08496185 12.6741246 1.81599258e-15 12.6741246"
14220
+ }), /*#__PURE__*/React__default.createElement("path", {
14221
+ d: "M16.0044112 -1.18039517e-14L16.0044112 13.0723155 24.0893731 13.0723155"
14222
+ })), /*#__PURE__*/React__default.createElement("path", {
14223
+ stroke: "#45B770",
14224
+ strokeLinecap: "round",
14225
+ strokeLinejoin: "round",
14226
+ strokeWidth: "4.08",
14227
+ d: "M97.135 97.043L85.756 106.925"
14228
+ }), /*#__PURE__*/React__default.createElement("path", {
14229
+ stroke: "#45B770",
14230
+ strokeLinecap: "round",
14231
+ strokeLinejoin: "round",
14232
+ strokeWidth: "4.08",
14233
+ d: "M267.332301 89.6743933L241.12027 107.066692 228.276465 97.0878034"
14234
+ }), /*#__PURE__*/React__default.createElement("path", {
14235
+ stroke: "#45B770",
14236
+ strokeLinecap: "round",
14237
+ strokeWidth: "4.08",
14238
+ d: "M257.527 89.028L274.395 89.028"
14239
+ }), /*#__PURE__*/React__default.createElement("g", {
14240
+ transform: "translate(255.032 47.73)"
14241
+ }, /*#__PURE__*/React__default.createElement("rect", {
14242
+ width: "40.703",
14243
+ height: "25.03",
14244
+ x: "1.02",
14245
+ y: "1.02",
14246
+ fill: "#E8FFEF",
14247
+ stroke: "#45B770",
14248
+ strokeWidth: "2.04",
14249
+ rx: "2.72"
14250
+ }), /*#__PURE__*/React__default.createElement("path", {
14251
+ fill: "#45B770",
14252
+ d: "M0 6.411H42.743V12.11H0z"
14253
+ })), /*#__PURE__*/React__default.createElement("g", {
14254
+ transform: "translate(249.333 54.141)"
14255
+ }, /*#__PURE__*/React__default.createElement("rect", {
14256
+ width: "40.703",
14257
+ height: "25.03",
14258
+ x: "1.02",
14259
+ y: "1.02",
14260
+ fill: "#CACED8",
14261
+ stroke: "#3B414D",
14262
+ strokeWidth: "2.04",
14263
+ rx: "2.72"
14264
+ }), /*#__PURE__*/React__default.createElement("path", {
14265
+ fill: "#3B414D",
14266
+ d: "M0 6.411H42.743V12.11H0z"
14267
+ }), /*#__PURE__*/React__default.createElement("rect", {
14268
+ width: "9.973",
14269
+ height: "2.85",
14270
+ x: "27.163",
14271
+ y: "18.367",
14272
+ fill: "#3B414D",
14273
+ rx: "1.36"
14274
+ })), /*#__PURE__*/React__default.createElement("g", {
14275
+ transform: "translate(237.223 59.128)"
14276
+ }, /*#__PURE__*/React__default.createElement("circle", {
14277
+ cx: "8.905",
14278
+ cy: "8.905",
14279
+ r: "8.905",
14280
+ fill: themeValues.subIconColor
14281
+ }), /*#__PURE__*/React__default.createElement("g", {
14282
+ fill: "#FFF",
14283
+ transform: "translate(4.274 4.274)"
14284
+ }, /*#__PURE__*/React__default.createElement("path", {
14285
+ d: "M3.562 0H5.699V9.261H3.562z"
14286
+ }), /*#__PURE__*/React__default.createElement("path", {
14287
+ d: "M0 3.562H9.261V5.699H0z"
14288
+ }))), /*#__PURE__*/React__default.createElement("path", {
14289
+ fill: "#B8E4F4",
14290
+ stroke: "#3B414D",
14291
+ strokeWidth: "4.08",
14292
+ d: "M196.423 22.699c2.441 0 4.651.99 6.25 2.59 1.6 1.599 2.59 3.809 2.59 6.25h0V78.88c0 2.441-.99 4.651-2.59 6.25a8.812 8.812 0 01-6.25 2.59h0-90.084a8.812 8.812 0 01-6.25-2.59 8.812 8.812 0 01-2.59-6.25h0V28.139c0-1.502.609-2.862 1.593-3.847a5.423 5.423 0 013.847-1.593h0z"
14293
+ }), /*#__PURE__*/React__default.createElement("rect", {
14294
+ width: "32.964",
14295
+ height: "11.592",
14296
+ x: "97.499",
14297
+ y: "22.699",
14298
+ stroke: "#3B414D",
14299
+ strokeWidth: "4.08",
14300
+ rx: "5.796"
14301
+ }), /*#__PURE__*/React__default.createElement("path", {
14302
+ fill: "#B8E4F4",
14303
+ d: "M121.817 24.933H141.051V32.057H121.817z"
14304
+ }), /*#__PURE__*/React__default.createElement("rect", {
14305
+ width: "133.928",
14306
+ height: "98.309",
14307
+ x: "95.459",
14308
+ y: "32.057",
14309
+ fill: "#FFF",
14310
+ rx: "10.88"
14311
+ }), /*#__PURE__*/React__default.createElement("path", {
14312
+ stroke: "#3B414D",
14313
+ strokeWidth: "4.08",
14314
+ d: "M218.507 34.097c2.44 0 4.65.99 6.25 2.59 1.6 1.599 2.59 3.809 2.59 6.25h0v76.549c0 2.44-.99 4.65-2.59 6.25a8.812 8.812 0 01-6.25 2.59h0-112.168a8.812 8.812 0 01-6.25-2.59 8.812 8.812 0 01-2.59-6.25h0V34.097z"
14315
+ }), /*#__PURE__*/React__default.createElement("path", {
14316
+ fill: "#FFF",
14317
+ d: "M99.733 35.148c.745.789 2.175 1.183 4.289 1.183s2.114.304 0 .911l-4.289-.022v-2.072z"
14318
+ }), /*#__PURE__*/React__default.createElement("path", {
14319
+ stroke: "#45B770",
14320
+ strokeLinecap: "round",
14321
+ strokeLinejoin: "round",
14322
+ strokeWidth: "4.08",
14323
+ d: "M85.756 106.925L111.684 112.988"
14324
+ }), /*#__PURE__*/React__default.createElement("g", {
14325
+ stroke: "#45B770",
14326
+ strokeLinecap: "round",
14327
+ strokeLinejoin: "round",
14328
+ strokeWidth: "4.08",
14329
+ transform: "translate(112.486 110.241)"
14330
+ }, /*#__PURE__*/React__default.createElement("path", {
14331
+ d: "M3.887.053a3.887 3.887 0 000 7.775h3.396"
14332
+ })), /*#__PURE__*/React__default.createElement("g", {
14333
+ stroke: "#3B414D",
14334
+ strokeLinecap: "round",
14335
+ strokeLinejoin: "round",
14336
+ strokeWidth: "3.791",
14337
+ transform: "translate(147.003 64.237)"
14338
+ }, /*#__PURE__*/React__default.createElement("path", {
14339
+ d: "M.415 3.316C1.012 1.651 2.54.466 4.333.466c1.792 0 3.321 1.185 3.918 2.85"
14340
+ }), /*#__PURE__*/React__default.createElement("path", {
14341
+ d: "M23.928 3.316c.597-1.665 2.126-2.85 3.918-2.85 1.792 0 3.321 1.185 3.918 2.85"
14342
+ })), /*#__PURE__*/React__default.createElement("path", {
14343
+ stroke: "#3B414D",
14344
+ strokeLinecap: "round",
14345
+ strokeWidth: "3.791",
14346
+ d: "M173.17 87.239h0a3.52 3.52 0 01-3.52 3.52h-13.505a3.52 3.52 0 01-3.52-3.52"
14347
+ }), /*#__PURE__*/React__default.createElement("g", {
14348
+ fill: "#B8E4F4"
14349
+ }, /*#__PURE__*/React__default.createElement("path", {
14350
+ d: "M245.538 5.06c-.639 0-1.244.141-1.792.387a2.94 2.94 0 00-3.113-1.016A6.9 6.9 0 00234.193 0c-3.205 0-5.891 2.186-6.67 5.147a4.374 4.374 0 10-.865 8.662h18.88a4.374 4.374 0 100-8.749"
14351
+ }), /*#__PURE__*/React__default.createElement("path", {
14352
+ d: "M37.36 89.272a6.45 6.45 0 00-3.769 1.214c-.507-5.463-5.102-9.74-10.697-9.74-4.925 0-9.073 3.314-10.343 7.833a7.545 7.545 0 00-4.537-1.516 7.587 7.587 0 000 15.175h29.345a6.483 6.483 0 000-12.966"
14353
+ }), /*#__PURE__*/React__default.createElement("path", {
14354
+ d: "M108.726 75.108a4.35 4.35 0 00-1.792.387 2.943 2.943 0 00-3.114-1.016 6.9 6.9 0 00-6.44-4.431c-3.204 0-5.891 2.186-6.67 5.146a4.374 4.374 0 10-.864 8.662h18.88a4.374 4.374 0 100-8.748"
14355
+ }), /*#__PURE__*/React__default.createElement("path", {
14356
+ d: "M71.695 41.493c-.639 0-1.245.14-1.792.387a2.941 2.941 0 00-3.114-1.016 6.9 6.9 0 00-6.44-4.432c-3.204 0-5.89 2.187-6.67 5.147a4.374 4.374 0 10-.864 8.662h18.88a4.374 4.374 0 100-8.748"
14357
+ })))))));
14358
+ };
14359
+
14360
+ var WalletIcon$1 = themeComponent(WalletIcon, "Icons", fallbackValues$2, "info");
14361
+
14178
14362
  var color$2 = "#15749D";
14179
14363
  var hoverColor$1 = "#116285";
14180
14364
  var activeColor$1 = "#0E506D";
@@ -18321,7 +18505,7 @@ function _templateObject3$5() {
18321
18505
  }
18322
18506
 
18323
18507
  function _templateObject2$b() {
18324
- var data = _taggedTemplateLiteral(["\n transform-origin: 0 0;\n border: 1px solid ", ";\n border-radius: 2px;\n background-color: ", ";\n padding: 8px 0 8px;\n position: absolute;\n width: 100%;\n max-height: 400px;\n overflow-y: scroll;\n z-index: 1;\n box-sizing: border-box;\n &:focus {\n outline: none;\n }\n"]);
18508
+ var data = _taggedTemplateLiteral(["\n transform-origin: 0 0;\n border: 1px solid ", ";\n border-radius: 2px;\n background-color: ", ";\n padding: 8px 0 8px;\n position: absolute;\n width: 100%;\n max-height: ", ";\n overflow-y: scroll;\n z-index: 1;\n box-sizing: border-box;\n &:focus {\n outline: none;\n }\n"]);
18325
18509
 
18326
18510
  _templateObject2$b = function _templateObject2() {
18327
18511
  return data;
@@ -18343,44 +18527,48 @@ var IconWrapper = styled__default.div(_templateObject$n(), function (_ref) {
18343
18527
  var open = _ref.open;
18344
18528
  return open ? "transform: rotate(-180deg)" : "";
18345
18529
  });
18346
- var DropdownContentWrapper = styled__default.div(_templateObject2$b(), GREY_CHATEAU, WHITE);
18347
- var DropdownItemWrapper = styled__default.div(_templateObject3$5(), function (_ref2) {
18348
- var selected = _ref2.selected,
18349
- themeValues = _ref2.themeValues;
18530
+ var DropdownContentWrapper = styled__default.div(_templateObject2$b(), GREY_CHATEAU, WHITE, function (_ref2) {
18531
+ var maxHeight = _ref2.maxHeight;
18532
+ return maxHeight || "400px";
18533
+ });
18534
+ var DropdownItemWrapper = styled__default.div(_templateObject3$5(), function (_ref3) {
18535
+ var selected = _ref3.selected,
18536
+ themeValues = _ref3.themeValues;
18350
18537
  return selected ? themeValues.selectedColor : WHITE;
18351
- }, function (_ref3) {
18352
- var disabled = _ref3.disabled;
18353
- return disabled ? "default" : "pointer";
18354
18538
  }, function (_ref4) {
18355
- var selected = _ref4.selected,
18356
- disabled = _ref4.disabled,
18357
- themeValues = _ref4.themeValues;
18358
- return selected ? themeValues.selectedColor : disabled ? WHITE : themeValues.hoverColor;
18539
+ var disabled = _ref4.disabled;
18540
+ return disabled ? "default" : "pointer";
18359
18541
  }, function (_ref5) {
18360
18542
  var selected = _ref5.selected,
18361
18543
  disabled = _ref5.disabled,
18362
18544
  themeValues = _ref5.themeValues;
18363
18545
  return selected ? themeValues.selectedColor : disabled ? WHITE : themeValues.hoverColor;
18546
+ }, function (_ref6) {
18547
+ var selected = _ref6.selected,
18548
+ disabled = _ref6.disabled,
18549
+ themeValues = _ref6.themeValues;
18550
+ return selected ? themeValues.selectedColor : disabled ? WHITE : themeValues.hoverColor;
18364
18551
  });
18365
- var SearchInput = styled__default.input(_templateObject4$2(), function (_ref6) {
18366
- var themeValues = _ref6.themeValues;
18552
+ var SearchInput = styled__default.input(_templateObject4$2(), function (_ref7) {
18553
+ var themeValues = _ref7.themeValues;
18367
18554
  return themeValues.hoverColor && themeValues.hoverColor;
18368
18555
  });
18369
18556
 
18370
- var Dropdown = function Dropdown(_ref7) {
18557
+ var Dropdown = function Dropdown(_ref8) {
18371
18558
  var _options$find;
18372
18559
 
18373
- var placeholder = _ref7.placeholder,
18374
- options = _ref7.options,
18375
- value = _ref7.value,
18376
- isOpen = _ref7.isOpen,
18377
- isError = _ref7.isError,
18378
- onSelect = _ref7.onSelect,
18379
- _ref7$disabledValues = _ref7.disabledValues,
18380
- disabledValues = _ref7$disabledValues === void 0 ? [] : _ref7$disabledValues,
18381
- _ref7$onClick = _ref7.onClick,
18382
- onClick = _ref7$onClick === void 0 ? noop : _ref7$onClick,
18383
- themeValues = _ref7.themeValues;
18560
+ var placeholder = _ref8.placeholder,
18561
+ options = _ref8.options,
18562
+ value = _ref8.value,
18563
+ isOpen = _ref8.isOpen,
18564
+ isError = _ref8.isError,
18565
+ onSelect = _ref8.onSelect,
18566
+ _ref8$disabledValues = _ref8.disabledValues,
18567
+ disabledValues = _ref8$disabledValues === void 0 ? [] : _ref8$disabledValues,
18568
+ _ref8$onClick = _ref8.onClick,
18569
+ onClick = _ref8$onClick === void 0 ? noop : _ref8$onClick,
18570
+ themeValues = _ref8.themeValues,
18571
+ maxHeight = _ref8.maxHeight;
18384
18572
 
18385
18573
  var _useState = React.useState(""),
18386
18574
  _useState2 = _slicedToArray(_useState, 2),
@@ -18544,6 +18732,7 @@ var Dropdown = function Dropdown(_ref7) {
18544
18732
  })) === null || _options$find === void 0 ? void 0 : _options$find.text : placeholder), /*#__PURE__*/React__default.createElement(IconWrapper, {
18545
18733
  open: isOpen
18546
18734
  }, /*#__PURE__*/React__default.createElement(DropdownIcon, null)))), isOpen ? /*#__PURE__*/React__default.createElement(DropdownContentWrapper, {
18735
+ maxHeight: maxHeight,
18547
18736
  open: isOpen,
18548
18737
  ref: dropdownRef,
18549
18738
  tabIndex: 0
@@ -18639,7 +18828,8 @@ var FormSelect = function FormSelect(_ref) {
18639
18828
  options = _ref.options,
18640
18829
  field = _ref.field,
18641
18830
  showErrors = _ref.showErrors,
18642
- onChange = _ref.onChange;
18831
+ onChange = _ref.onChange,
18832
+ dropdownMaxHeight = _ref.dropdownMaxHeight;
18643
18833
 
18644
18834
  var _useState = React.useState(false),
18645
18835
  _useState2 = _slicedToArray(_useState, 2),
@@ -18668,6 +18858,7 @@ var FormSelect = function FormSelect(_ref) {
18668
18858
  weight: "400",
18669
18859
  extraStyles: "margin-bottom: 4px;"
18670
18860
  }, labelTextWhenNoError), /*#__PURE__*/React__default.createElement(Dropdown$1, {
18861
+ maxHeight: dropdownMaxHeight,
18671
18862
  placeholder: options[0] ? options[0].text : "",
18672
18863
  options: options,
18673
18864
  value: field.rawValue,
@@ -34325,6 +34516,7 @@ var EmailForm = function EmailForm(_ref) {
34325
34516
  fields = _ref.fields,
34326
34517
  actions = _ref.actions,
34327
34518
  showErrors = _ref.showErrors,
34519
+ guestCheckout = _ref.guestCheckout,
34328
34520
  _ref$handleSubmit = _ref.handleSubmit,
34329
34521
  handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit;
34330
34522
 
@@ -34341,7 +34533,9 @@ var EmailForm = function EmailForm(_ref) {
34341
34533
  variant: variant,
34342
34534
  role: "form",
34343
34535
  "aria-label": "Email"
34344
- }, /*#__PURE__*/React__default.createElement(FormInputColumn, null, /*#__PURE__*/React__default.createElement(FormInput$1, {
34536
+ }, guestCheckout && /*#__PURE__*/React__default.createElement(Paragraph$1, {
34537
+ margin: "0 0 1.125rem 0"
34538
+ }, "If desired, you can create a wallet later for faster checkout"), /*#__PURE__*/React__default.createElement(FormInputColumn, null, /*#__PURE__*/React__default.createElement(FormInput$1, {
34345
34539
  labelTextWhenNoError: "Email",
34346
34540
  errorMessages: emailFieldErrorMessages,
34347
34541
  type: "email",
@@ -38050,6 +38244,10 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
38050
38244
  forwardButtonText = _ref$forwardButtonTex === void 0 ? "Next" : _ref$forwardButtonTex,
38051
38245
  forwardButtonAction = _ref.forwardButtonAction,
38052
38246
  forwardButtonLoading = _ref.forwardButtonLoading,
38247
+ _ref$forwardButtonVar = _ref.forwardButtonVariant,
38248
+ forwardButtonVariant = _ref$forwardButtonVar === void 0 ? "primary" : _ref$forwardButtonVar,
38249
+ _ref$backButtonVarian = _ref.backButtonVariant,
38250
+ backButtonVariant = _ref$backButtonVarian === void 0 ? "secondary" : _ref$backButtonVarian,
38053
38251
  backButtonAction = _ref.backButtonAction,
38054
38252
  cancelURL = _ref.cancelURL,
38055
38253
  _ref$cancelText = _ref.cancelText,
@@ -38064,12 +38262,12 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
38064
38262
  var backButton = !!cancelURL && !!cancelText ? /*#__PURE__*/React__default.createElement(ButtonWithLink, {
38065
38263
  text: cancelText,
38066
38264
  url: cancelURL,
38067
- variant: "secondary",
38265
+ variant: backButtonVariant,
38068
38266
  extraStyles: isMobile && "flex-grow: 1",
38069
38267
  dataQa: cancelText
38070
38268
  }) : backButtonAction && /*#__PURE__*/React__default.createElement(ButtonWithAction, {
38071
38269
  text: "Back",
38072
- variant: "secondary",
38270
+ variant: backButtonVariant,
38073
38271
  action: backButtonAction,
38074
38272
  extraStyles: isMobile && "flex-grow: 1",
38075
38273
  dataQa: "Back"
@@ -38077,12 +38275,12 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
38077
38275
  var forwardButton = !!redirectURL ? /*#__PURE__*/React__default.createElement(ButtonWithLink, {
38078
38276
  url: redirectURL,
38079
38277
  text: redirectText,
38080
- variant: "primary",
38278
+ variant: forwardButtonVariant,
38081
38279
  extraStyles: isMobile && "flex-grow: 1",
38082
38280
  dataQa: redirectText
38083
38281
  }) : forwardButtonAction && /*#__PURE__*/React__default.createElement(ButtonWithAction, {
38084
38282
  text: forwardButtonText,
38085
- variant: "primary",
38283
+ variant: forwardButtonVariant,
38086
38284
  action: forwardButtonAction,
38087
38285
  isLoading: forwardButtonLoading,
38088
38286
  extraStyles: isMobile && "flex-grow: 1",
@@ -40001,6 +40199,7 @@ exports.TimeoutImage = TimeoutImage;
40001
40199
  exports.ToggleSwitch = ToggleSwitch$1;
40002
40200
  exports.TypeaheadInput = TypeaheadInput;
40003
40201
  exports.VerifiedEmailIcon = VerifiedEmailIcon$1;
40202
+ exports.WalletIcon = WalletIcon$1;
40004
40203
  exports.WelcomeModule = WelcomeModule$1;
40005
40204
  exports.WorkflowTile = WorkflowTile;
40006
40205
  exports.cardRegistry = cardRegistry;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "4.1.0",
3
+ "version": "4.1.4",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -31,7 +31,7 @@ const DropdownContentWrapper = styled.div`
31
31
  padding: 8px 0 8px;
32
32
  position: absolute;
33
33
  width: 100%;
34
- max-height: 400px;
34
+ max-height: ${({ maxHeight }) => maxHeight || "400px"};
35
35
  overflow-y: scroll;
36
36
  z-index: 1;
37
37
  box-sizing: border-box;
@@ -88,7 +88,8 @@ const Dropdown = ({
88
88
  onSelect,
89
89
  disabledValues = [],
90
90
  onClick = noop,
91
- themeValues
91
+ themeValues,
92
+ maxHeight
92
93
  }) => {
93
94
  const [inputValue, setInputValue] = useState("");
94
95
  const [optionsState, setOptionsState] = useState([]);
@@ -242,7 +243,12 @@ const Dropdown = ({
242
243
  </Stack>
243
244
  </Box>
244
245
  {isOpen ? (
245
- <DropdownContentWrapper open={isOpen} ref={dropdownRef} tabIndex={0}>
246
+ <DropdownContentWrapper
247
+ maxHeight={maxHeight}
248
+ open={isOpen}
249
+ ref={dropdownRef}
250
+ tabIndex={0}
251
+ >
246
252
  <Stack childGap="0">
247
253
  {filteredOptions.map((choice, i) => (
248
254
  <DropdownItemWrapper
@@ -11,7 +11,8 @@ const FormSelect = ({
11
11
  options,
12
12
  field,
13
13
  showErrors,
14
- onChange
14
+ onChange,
15
+ dropdownMaxHeight
15
16
  }) => {
16
17
  const [open, setOpen] = useState(false);
17
18
  const dropdownRef = useRef(null);
@@ -40,6 +41,7 @@ const FormSelect = ({
40
41
  {labelTextWhenNoError}
41
42
  </Text>
42
43
  <Dropdown
44
+ maxHeight={dropdownMaxHeight}
43
45
  placeholder={options[0] ? options[0].text : ""}
44
46
  options={options}
45
47
  value={field.rawValue}
@@ -0,0 +1,190 @@
1
+ import React from "react";
2
+ import { fallbackValues } from "./Icons.theme";
3
+ import { themeComponent } from "../../../util/themeUtils";
4
+
5
+ const WalletIcon = ({ themeValues }) => {
6
+ return (
7
+ <svg
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ width="299"
10
+ height="150"
11
+ viewBox="0 0 299 150"
12
+ >
13
+ <g fill="none" fillRule="evenodd" stroke="none" strokeWidth="1">
14
+ <g transform="translate(-154 -340)">
15
+ <g transform="translate(132 261)">
16
+ <g transform="translate(22 79)">
17
+ <g
18
+ stroke="#3B414D"
19
+ strokeLinecap="round"
20
+ strokeWidth="4.08"
21
+ transform="translate(52.686 118.445)"
22
+ >
23
+ <path d="M208.2 0.375L175.611 0.776"></path>
24
+ <path d="M233.568 0.375L218.318 0.776"></path>
25
+ <path d="M44.527 0.375L17.757 0.776"></path>
26
+ <path d="M7.759 0.375L0 0.776"></path>
27
+ </g>
28
+ <path
29
+ fill="#B8E4F4"
30
+ d="M192.663 142.912c0 3.646-13.311 6.602-29.731 6.602s-29.73-2.956-29.73-6.602c0-3.646 13.31-6.602 29.73-6.602s29.73 2.956 29.73 6.602"
31
+ ></path>
32
+ <g
33
+ stroke="#45B770"
34
+ strokeLinecap="round"
35
+ strokeLinejoin="round"
36
+ strokeWidth="4.08"
37
+ transform="translate(150.58 129.154)"
38
+ >
39
+ <path d="M8.08496185 -1.08959555e-14L8.08496185 12.6741246 1.81599258e-15 12.6741246"></path>
40
+ <path d="M16.0044112 -1.18039517e-14L16.0044112 13.0723155 24.0893731 13.0723155"></path>
41
+ </g>
42
+ <path
43
+ stroke="#45B770"
44
+ strokeLinecap="round"
45
+ strokeLinejoin="round"
46
+ strokeWidth="4.08"
47
+ d="M97.135 97.043L85.756 106.925"
48
+ ></path>
49
+ <path
50
+ stroke="#45B770"
51
+ strokeLinecap="round"
52
+ strokeLinejoin="round"
53
+ strokeWidth="4.08"
54
+ d="M267.332301 89.6743933L241.12027 107.066692 228.276465 97.0878034"
55
+ ></path>
56
+ <path
57
+ stroke="#45B770"
58
+ strokeLinecap="round"
59
+ strokeWidth="4.08"
60
+ d="M257.527 89.028L274.395 89.028"
61
+ ></path>
62
+ <g transform="translate(255.032 47.73)">
63
+ <rect
64
+ width="40.703"
65
+ height="25.03"
66
+ x="1.02"
67
+ y="1.02"
68
+ fill="#E8FFEF"
69
+ stroke="#45B770"
70
+ strokeWidth="2.04"
71
+ rx="2.72"
72
+ ></rect>
73
+ <path fill="#45B770" d="M0 6.411H42.743V12.11H0z"></path>
74
+ </g>
75
+ <g transform="translate(249.333 54.141)">
76
+ <rect
77
+ width="40.703"
78
+ height="25.03"
79
+ x="1.02"
80
+ y="1.02"
81
+ fill="#CACED8"
82
+ stroke="#3B414D"
83
+ strokeWidth="2.04"
84
+ rx="2.72"
85
+ ></rect>
86
+ <path fill="#3B414D" d="M0 6.411H42.743V12.11H0z"></path>
87
+ <rect
88
+ width="9.973"
89
+ height="2.85"
90
+ x="27.163"
91
+ y="18.367"
92
+ fill="#3B414D"
93
+ rx="1.36"
94
+ ></rect>
95
+ </g>
96
+ <g transform="translate(237.223 59.128)">
97
+ <circle
98
+ cx="8.905"
99
+ cy="8.905"
100
+ r="8.905"
101
+ fill={themeValues.subIconColor}
102
+ ></circle>
103
+ <g fill="#FFF" transform="translate(4.274 4.274)">
104
+ <path d="M3.562 0H5.699V9.261H3.562z"></path>
105
+ <path d="M0 3.562H9.261V5.699H0z"></path>
106
+ </g>
107
+ </g>
108
+ <path
109
+ fill="#B8E4F4"
110
+ stroke="#3B414D"
111
+ strokeWidth="4.08"
112
+ d="M196.423 22.699c2.441 0 4.651.99 6.25 2.59 1.6 1.599 2.59 3.809 2.59 6.25h0V78.88c0 2.441-.99 4.651-2.59 6.25a8.812 8.812 0 01-6.25 2.59h0-90.084a8.812 8.812 0 01-6.25-2.59 8.812 8.812 0 01-2.59-6.25h0V28.139c0-1.502.609-2.862 1.593-3.847a5.423 5.423 0 013.847-1.593h0z"
113
+ ></path>
114
+ <rect
115
+ width="32.964"
116
+ height="11.592"
117
+ x="97.499"
118
+ y="22.699"
119
+ stroke="#3B414D"
120
+ strokeWidth="4.08"
121
+ rx="5.796"
122
+ ></rect>
123
+ <path
124
+ fill="#B8E4F4"
125
+ d="M121.817 24.933H141.051V32.057H121.817z"
126
+ ></path>
127
+ <rect
128
+ width="133.928"
129
+ height="98.309"
130
+ x="95.459"
131
+ y="32.057"
132
+ fill="#FFF"
133
+ rx="10.88"
134
+ ></rect>
135
+ <path
136
+ stroke="#3B414D"
137
+ strokeWidth="4.08"
138
+ d="M218.507 34.097c2.44 0 4.65.99 6.25 2.59 1.6 1.599 2.59 3.809 2.59 6.25h0v76.549c0 2.44-.99 4.65-2.59 6.25a8.812 8.812 0 01-6.25 2.59h0-112.168a8.812 8.812 0 01-6.25-2.59 8.812 8.812 0 01-2.59-6.25h0V34.097z"
139
+ ></path>
140
+ <path
141
+ fill="#FFF"
142
+ d="M99.733 35.148c.745.789 2.175 1.183 4.289 1.183s2.114.304 0 .911l-4.289-.022v-2.072z"
143
+ ></path>
144
+ <path
145
+ stroke="#45B770"
146
+ strokeLinecap="round"
147
+ strokeLinejoin="round"
148
+ strokeWidth="4.08"
149
+ d="M85.756 106.925L111.684 112.988"
150
+ ></path>
151
+ <g
152
+ stroke="#45B770"
153
+ strokeLinecap="round"
154
+ strokeLinejoin="round"
155
+ strokeWidth="4.08"
156
+ transform="translate(112.486 110.241)"
157
+ >
158
+ <path d="M3.887.053a3.887 3.887 0 000 7.775h3.396"></path>
159
+ </g>
160
+ <g
161
+ stroke="#3B414D"
162
+ strokeLinecap="round"
163
+ strokeLinejoin="round"
164
+ strokeWidth="3.791"
165
+ transform="translate(147.003 64.237)"
166
+ >
167
+ <path d="M.415 3.316C1.012 1.651 2.54.466 4.333.466c1.792 0 3.321 1.185 3.918 2.85"></path>
168
+ <path d="M23.928 3.316c.597-1.665 2.126-2.85 3.918-2.85 1.792 0 3.321 1.185 3.918 2.85"></path>
169
+ </g>
170
+ <path
171
+ stroke="#3B414D"
172
+ strokeLinecap="round"
173
+ strokeWidth="3.791"
174
+ d="M173.17 87.239h0a3.52 3.52 0 01-3.52 3.52h-13.505a3.52 3.52 0 01-3.52-3.52"
175
+ ></path>
176
+ <g fill="#B8E4F4">
177
+ <path d="M245.538 5.06c-.639 0-1.244.141-1.792.387a2.94 2.94 0 00-3.113-1.016A6.9 6.9 0 00234.193 0c-3.205 0-5.891 2.186-6.67 5.147a4.374 4.374 0 10-.865 8.662h18.88a4.374 4.374 0 100-8.749"></path>
178
+ <path d="M37.36 89.272a6.45 6.45 0 00-3.769 1.214c-.507-5.463-5.102-9.74-10.697-9.74-4.925 0-9.073 3.314-10.343 7.833a7.545 7.545 0 00-4.537-1.516 7.587 7.587 0 000 15.175h29.345a6.483 6.483 0 000-12.966"></path>
179
+ <path d="M108.726 75.108a4.35 4.35 0 00-1.792.387 2.943 2.943 0 00-3.114-1.016 6.9 6.9 0 00-6.44-4.431c-3.204 0-5.891 2.186-6.67 5.146a4.374 4.374 0 10-.864 8.662h18.88a4.374 4.374 0 100-8.748"></path>
180
+ <path d="M71.695 41.493c-.639 0-1.245.14-1.792.387a2.941 2.941 0 00-3.114-1.016 6.9 6.9 0 00-6.44-4.432c-3.204 0-5.89 2.187-6.67 5.147a4.374 4.374 0 10-.864 8.662h18.88a4.374 4.374 0 100-8.748"></path>
181
+ </g>
182
+ </g>
183
+ </g>
184
+ </g>
185
+ </g>
186
+ </svg>
187
+ );
188
+ };
189
+
190
+ export default themeComponent(WalletIcon, "Icons", fallbackValues, "info");
@@ -23,6 +23,7 @@ import TimeoutImage from "./TimeoutImage";
23
23
  import AutopayOnIcon from "./AutopayOnIcon";
24
24
  import NotFoundIcon from "./NotFoundIcon";
25
25
  import SearchIcon from "./SearchIcon";
26
+ import WalletIcon from "./WalletIcon";
26
27
 
27
28
  export {
28
29
  AccountsIcon,
@@ -49,5 +50,6 @@ export {
49
50
  TimeoutImage,
50
51
  AutopayOnIcon,
51
52
  NotFoundIcon,
52
- SearchIcon
53
+ SearchIcon,
54
+ WalletIcon
53
55
  };
@@ -5,6 +5,7 @@ import {
5
5
  FormContainer,
6
6
  FormInputColumn
7
7
  } from "../../atoms/form-layouts";
8
+ import Paragraph from "../../atoms/paragraph";
8
9
  import { noop } from "../../../util/general";
9
10
 
10
11
  const EmailForm = ({
@@ -13,6 +14,7 @@ const EmailForm = ({
13
14
  fields,
14
15
  actions,
15
16
  showErrors,
17
+ guestCheckout,
16
18
  handleSubmit = noop
17
19
  }) => {
18
20
  if (clearOnDismount) {
@@ -25,6 +27,11 @@ const EmailForm = ({
25
27
 
26
28
  return (
27
29
  <FormContainer variant={variant} role="form" aria-label="Email">
30
+ {guestCheckout && (
31
+ <Paragraph margin="0 0 1.125rem 0">
32
+ If desired, you can create a wallet later for faster checkout
33
+ </Paragraph>
34
+ )}
28
35
  <FormInputColumn>
29
36
  <FormInput
30
37
  labelTextWhenNoError="Email"
@@ -10,6 +10,8 @@ const PaymentButtonBar = ({
10
10
  forwardButtonText = "Next",
11
11
  forwardButtonAction,
12
12
  forwardButtonLoading,
13
+ forwardButtonVariant = "primary",
14
+ backButtonVariant = "secondary",
13
15
  backButtonAction,
14
16
  cancelURL,
15
17
  cancelText = "Cancel",
@@ -23,7 +25,7 @@ const PaymentButtonBar = ({
23
25
  <ButtonWithLink
24
26
  text={cancelText}
25
27
  url={cancelURL}
26
- variant="secondary"
28
+ variant={backButtonVariant}
27
29
  extraStyles={isMobile && "flex-grow: 1"}
28
30
  dataQa={cancelText}
29
31
  />
@@ -31,7 +33,7 @@ const PaymentButtonBar = ({
31
33
  backButtonAction && (
32
34
  <ButtonWithAction
33
35
  text="Back"
34
- variant="secondary"
36
+ variant={backButtonVariant}
35
37
  action={backButtonAction}
36
38
  extraStyles={isMobile && "flex-grow: 1"}
37
39
  dataQa="Back"
@@ -43,7 +45,7 @@ const PaymentButtonBar = ({
43
45
  <ButtonWithLink
44
46
  url={redirectURL}
45
47
  text={redirectText}
46
- variant="primary"
48
+ variant={forwardButtonVariant}
47
49
  extraStyles={isMobile && "flex-grow: 1"}
48
50
  dataQa={redirectText}
49
51
  />
@@ -51,7 +53,7 @@ const PaymentButtonBar = ({
51
53
  forwardButtonAction && (
52
54
  <ButtonWithAction
53
55
  text={forwardButtonText}
54
- variant="primary"
56
+ variant={forwardButtonVariant}
55
57
  action={forwardButtonAction}
56
58
  isLoading={forwardButtonLoading}
57
59
  extraStyles={isMobile && "flex-grow: 1"}