@thecb/components 8.4.11-beta.1 → 8.4.11-beta.10

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
@@ -18818,7 +18818,8 @@ var Alert = function Alert(_ref) {
18818
18818
  borderColor: themeValues.border,
18819
18819
  borderSize: noBorder ? "0px" : "1px",
18820
18820
  boxShadow: enableBoxShadow ? (_generateShadows = generateShadows()) === null || _generateShadows === void 0 ? void 0 : (_generateShadows$inse = _generateShadows.inset) === null || _generateShadows$inse === void 0 ? void 0 : _generateShadows$inse.base : "",
18821
- extraStyles: extraStyles
18821
+ extraStyles: extraStyles,
18822
+ role: "alert"
18822
18823
  }, maxContentWidth ? /*#__PURE__*/React__default.createElement(Center, {
18823
18824
  maxWidth: maxContentWidth
18824
18825
  }, content) : content);
@@ -22150,7 +22151,7 @@ var Checkbox = function Checkbox(_ref4) {
22150
22151
  onChange: onChange,
22151
22152
  tabIndex: "-1",
22152
22153
  "aria-invalid": error,
22153
- "aria-describedby": error ? "".concat(name, "-error-message") : ""
22154
+ "aria-describedby": name
22154
22155
  }), /*#__PURE__*/React__default.createElement(StyledCheckbox, {
22155
22156
  error: error,
22156
22157
  disabled: disabled,
@@ -23984,17 +23985,13 @@ var Dropdown = function Dropdown(_ref8) {
23984
23985
  }, /*#__PURE__*/React__default.createElement(Box, {
23985
23986
  as: "input",
23986
23987
  "aria-multiline": "false",
23987
- "aria-autocomplete": "list",
23988
- "aria-controls": "".concat(ariaLabelledby, "_listbox"),
23989
- "aria-activedescendant": "focused_option",
23990
- "aria-owns": "".concat(ariaLabelledby, "_listbox"),
23988
+ "aria-autocomplete": "list" // aria-activedescendant="focused_option"
23989
+ // aria-owns={`${ariaLabelledby}_listbox`}
23990
+ // aria-controls={`${ariaLabelledby}_listbox`}
23991
+ ,
23991
23992
  "aria-haspopup": "listbox",
23992
23993
  "aria-labelledby": ariaLabelledby,
23993
23994
  "aria-describedby": ariaDescribedby,
23994
- "aria-expanded": isOpen,
23995
- "aria-live": "assertive",
23996
- role: "combobox",
23997
- disabled: disabled,
23998
23995
  autoComplete: autocompleteValue,
23999
23996
  background: isOpen ? themeValues.hoverColor : WHITE,
24000
23997
  borderRadius: "2px",
@@ -24005,7 +24002,8 @@ var Dropdown = function Dropdown(_ref8) {
24005
24002
  isOpen: isOpen,
24006
24003
  minHeight: "48px",
24007
24004
  minWidth: "100%",
24008
- name: autocompleteValue,
24005
+ name: autocompleteValue // aria-expanded={isOpen}
24006
+ ,
24009
24007
  onChange: function onChange(e) {
24010
24008
  // support autofill and copy/paste
24011
24009
  if (e.target.value !== inputValue) {
@@ -24045,7 +24043,7 @@ var Dropdown = function Dropdown(_ref8) {
24045
24043
  id: focusedRef === optionRefs.current[i] ? "focused_option" : choice.value,
24046
24044
  key: choice.value,
24047
24045
  ref: optionRefs.current[i],
24048
- tabIndex: 0,
24046
+ tabIndex: -1,
24049
24047
  onClick: function onClick(e) {
24050
24048
  return handleItemSelection(e, choice, i);
24051
24049
  },
@@ -24067,7 +24065,7 @@ var Dropdown = function Dropdown(_ref8) {
24067
24065
  }, /*#__PURE__*/React__default.createElement(Text$1, {
24068
24066
  variant: "p",
24069
24067
  color: choice.value === value ? WHITE : disabledValues.includes(choice.value) ? STORM_GREY : MINESHAFT_GREY,
24070
- extraStyles: "padding-left: 16px; \n cursor: ".concat(disabledValues.includes(choice.value) ? "default" : "pointer", "; \n white-space: nowrap; \n overflow: hidden; \n text-overflow: ellipsis;")
24068
+ extraStyles: "padding-left: 16px; \n cursor: ".concat(disabledValues.includes(choice.value) ? "default" : "pointer", "; \n white-space: nowrap; \n overflow: hidden; \n text-overflow: ellipsis;")
24071
24069
  }, choice.text));
24072
24070
  }))) : /*#__PURE__*/React__default.createElement(React.Fragment, null)));
24073
24071
  };
@@ -24157,8 +24155,6 @@ var fallbackValues$g = {
24157
24155
  hoverFocusStyles: hoverFocusStyles
24158
24156
  };
24159
24157
 
24160
- var _excluded$o = ["fieldActions", "labelTextWhenNoError", "errorMessages", "options", "field", "showErrors", "onChange", "dropdownMaxHeight", "disabledValues", "disabled", "themeValues", "hasTitles", "autocompleteValue", "smoothScroll"];
24161
-
24162
24158
  var FormSelect = function FormSelect(_ref) {
24163
24159
  var fieldActions = _ref.fieldActions,
24164
24160
  labelTextWhenNoError = _ref.labelTextWhenNoError,
@@ -24175,8 +24171,7 @@ var FormSelect = function FormSelect(_ref) {
24175
24171
  hasTitles = _ref$hasTitles === void 0 ? false : _ref$hasTitles,
24176
24172
  autocompleteValue = _ref.autocompleteValue,
24177
24173
  _ref$smoothScroll = _ref.smoothScroll,
24178
- smoothScroll = _ref$smoothScroll === void 0 ? true : _ref$smoothScroll,
24179
- rest = _objectWithoutProperties(_ref, _excluded$o);
24174
+ smoothScroll = _ref$smoothScroll === void 0 ? true : _ref$smoothScroll;
24180
24175
 
24181
24176
  var _useState = React.useState(false),
24182
24177
  _useState2 = _slicedToArray(_useState, 2),
@@ -24197,10 +24192,10 @@ var FormSelect = function FormSelect(_ref) {
24197
24192
  document.removeEventListener("mousedown", handleClickAway);
24198
24193
  };
24199
24194
  });
24200
- return /*#__PURE__*/React__default.createElement(SelectContainer, _extends({
24195
+ return /*#__PURE__*/React__default.createElement(SelectContainer, {
24201
24196
  ref: dropdownRef,
24202
24197
  disabled: disabled
24203
- }, rest), /*#__PURE__*/React__default.createElement(Box, {
24198
+ }, /*#__PURE__*/React__default.createElement(Box, {
24204
24199
  padding: "0",
24205
24200
  minWidth: "100%"
24206
24201
  }, /*#__PURE__*/React__default.createElement(Cluster, {
@@ -24214,8 +24209,8 @@ var FormSelect = function FormSelect(_ref) {
24214
24209
  extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
24215
24210
  id: createIdFromString(labelTextWhenNoError)
24216
24211
  }, labelTextWhenNoError))), /*#__PURE__*/React__default.createElement(Dropdown$1, {
24217
- "aria-labelledBy": createIdFromString(labelTextWhenNoError),
24218
- "aria-describedBy": createIdFromString(labelTextWhenNoError, "error message"),
24212
+ ariaLabelledby: createIdFromString(labelTextWhenNoError),
24213
+ ariaDescribedby: createIdFromString(labelTextWhenNoError),
24219
24214
  maxHeight: dropdownMaxHeight,
24220
24215
  hasTitles: hasTitles,
24221
24216
  placeholder: options[0] ? options[0].text : "",
@@ -24232,21 +24227,20 @@ var FormSelect = function FormSelect(_ref) {
24232
24227
  onClick: function onClick() {
24233
24228
  return setOpen(!open);
24234
24229
  },
24235
- "aria-disabled": disabled,
24230
+ disabled: disabled,
24236
24231
  autocompleteValue: autocompleteValue,
24237
24232
  smoothScroll: smoothScroll,
24238
24233
  required: options.required
24239
24234
  }), /*#__PURE__*/React__default.createElement(Stack, {
24240
24235
  direction: "row",
24241
24236
  justify: "space-between",
24242
- "aria-live": "assertive"
24237
+ role: "alert"
24243
24238
  }, /*#__PURE__*/React__default.createElement(Text$1, {
24244
24239
  color: ERROR_COLOR,
24245
24240
  variant: "pXS",
24246
24241
  weight: themeValues.fontWeight,
24247
24242
  extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
24248
- id: createIdFromString(labelTextWhenNoError, "error message"),
24249
- "aria-live": "assertive"
24243
+ id: createIdFromString(labelTextWhenNoError, "error message")
24250
24244
  }, field.hasErrors && field.dirty || field.hasErrors && showErrors ? errorMessages[field.errors[0]] : "")));
24251
24245
  };
24252
24246
 
@@ -24995,7 +24989,7 @@ var options = [{
24995
24989
  value: "ZW"
24996
24990
  }];
24997
24991
 
24998
- var _excluded$p = ["labelTextWhenNoError", "errorMessages", "field", "fieldActions", "showErrors", "onChange"];
24992
+ var _excluded$o = ["labelTextWhenNoError", "errorMessages", "field", "fieldActions", "showErrors", "onChange"];
24999
24993
 
25000
24994
  var CountryDropdown = function CountryDropdown(_ref) {
25001
24995
  var labelTextWhenNoError = _ref.labelTextWhenNoError,
@@ -25004,7 +24998,7 @@ var CountryDropdown = function CountryDropdown(_ref) {
25004
24998
  fieldActions = _ref.fieldActions,
25005
24999
  showErrors = _ref.showErrors,
25006
25000
  onChange = _ref.onChange,
25007
- rest = _objectWithoutProperties(_ref, _excluded$p);
25001
+ rest = _objectWithoutProperties(_ref, _excluded$o);
25008
25002
 
25009
25003
  return /*#__PURE__*/React__default.createElement(FormSelect$1, _extends({
25010
25004
  options: options,
@@ -25014,8 +25008,7 @@ var CountryDropdown = function CountryDropdown(_ref) {
25014
25008
  errorMessages: errorMessages,
25015
25009
  showErrors: showErrors,
25016
25010
  onChange: onChange,
25017
- autocompleteValue: "country-name",
25018
- autoComplete: "country-name"
25011
+ autocompleteValue: "country-name"
25019
25012
  }, rest));
25020
25013
  };
25021
25014
 
@@ -25082,7 +25075,7 @@ var mobileFallbackValues$1 = {
25082
25075
  };
25083
25076
  var MOBILE_BREAKPOINT$1 = 768;
25084
25077
 
25085
- var _excluded$q = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
25078
+ var _excluded$p = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
25086
25079
  /*
25087
25080
  New responsive text component for Detail elements
25088
25081
  (Block level text elements which are smaller than "Title" elements)
@@ -25132,7 +25125,7 @@ var Detail = function Detail(_ref) {
25132
25125
  as = _ref$as === void 0 ? "p" : _ref$as,
25133
25126
  dataQa = _ref.dataQa,
25134
25127
  children = _ref.children,
25135
- rest = _objectWithoutProperties(_ref, _excluded$q);
25128
+ rest = _objectWithoutProperties(_ref, _excluded$p);
25136
25129
 
25137
25130
  return /*#__PURE__*/React__default.createElement(DetailText, _extends({
25138
25131
  variant: variant,
@@ -25856,7 +25849,7 @@ var fallbackValues$k = {
25856
25849
  formFooterPanel: formFooterPanel
25857
25850
  };
25858
25851
 
25859
- var _excluded$r = ["showErrors", "themeValues"],
25852
+ var _excluded$q = ["showErrors", "themeValues"],
25860
25853
  _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocomplete", "extraStyles", "removeFromValue"];
25861
25854
  var InputField = styled__default.input.withConfig({
25862
25855
  displayName: "FormInput__InputField",
@@ -25890,7 +25883,7 @@ var InputField = styled__default.input.withConfig({
25890
25883
  var FormattedInputField = styled__default(function (_ref8) {
25891
25884
  var showErrors = _ref8.showErrors,
25892
25885
  themeValues = _ref8.themeValues,
25893
- props = _objectWithoutProperties(_ref8, _excluded$r);
25886
+ props = _objectWithoutProperties(_ref8, _excluded$q);
25894
25887
 
25895
25888
  return /*#__PURE__*/React__default.createElement(FormattedInput, props);
25896
25889
  }).withConfig({
@@ -26011,7 +26004,7 @@ var FormInput = function FormInput(_ref15) {
26011
26004
  padding: "0"
26012
26005
  }, formatter ? /*#__PURE__*/React__default.createElement(FormattedInputField, _extends({
26013
26006
  "aria-labelledby": createIdFromString(labelTextWhenNoError),
26014
- "aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
26007
+ "aria-describedby": createIdFromString(labelTextWhenNoError),
26015
26008
  "aria-invalid": field.dirty && field.hasErrors || field.hasErrors && showErrors,
26016
26009
  onChange: function onChange(value) {
26017
26010
  return setValue(value);
@@ -26027,10 +26020,10 @@ var FormInput = function FormInput(_ref15) {
26027
26020
  themeValues: themeValues,
26028
26021
  $customHeight: customHeight,
26029
26022
  $extraStyles: extraStyles,
26030
- autoComplete: autocomplete
26023
+ autocomplete: autocomplete
26031
26024
  }, props)) : /*#__PURE__*/React__default.createElement(InputField, _extends({
26032
26025
  "aria-labelledby": createIdFromString(labelTextWhenNoError),
26033
- "aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
26026
+ "aria-describedby": createIdFromString(labelTextWhenNoError),
26034
26027
  "aria-invalid": field.dirty && field.hasErrors || field.hasErrors && showErrors,
26035
26028
  onChange: function onChange(e) {
26036
26029
  return setValue(e.target.value);
@@ -26046,7 +26039,7 @@ var FormInput = function FormInput(_ref15) {
26046
26039
  background: background,
26047
26040
  $customHeight: customHeight,
26048
26041
  $extraStyles: extraStyles,
26049
- autoComplete: autocomplete
26042
+ autocomplete: autocomplete
26050
26043
  }, props))), /*#__PURE__*/React__default.createElement(Stack, {
26051
26044
  direction: "row",
26052
26045
  justify: "space-between",
@@ -26066,7 +26059,7 @@ var FormInput = function FormInput(_ref15) {
26066
26059
 
26067
26060
  var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$k, "default");
26068
26061
 
26069
- var _excluded$s = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
26062
+ var _excluded$r = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
26070
26063
 
26071
26064
  var FormInputRow = function FormInputRow(_ref) {
26072
26065
  var _ref$breakpoint = _ref.breakpoint,
@@ -26076,7 +26069,7 @@ var FormInputRow = function FormInputRow(_ref) {
26076
26069
  largeChild = _ref.largeChild,
26077
26070
  largeChildSize = _ref.largeChildSize,
26078
26071
  children = _ref.children,
26079
- rest = _objectWithoutProperties(_ref, _excluded$s);
26072
+ rest = _objectWithoutProperties(_ref, _excluded$r);
26080
26073
 
26081
26074
  return /*#__PURE__*/React__default.createElement(Box, _extends({
26082
26075
  padding: "0"
@@ -26088,14 +26081,14 @@ var FormInputRow = function FormInputRow(_ref) {
26088
26081
  }, children));
26089
26082
  };
26090
26083
 
26091
- var _excluded$t = ["childGap", "bottomItem", "children"];
26084
+ var _excluded$s = ["childGap", "bottomItem", "children"];
26092
26085
 
26093
26086
  var FormInputColumn = function FormInputColumn(_ref) {
26094
26087
  var _ref$childGap = _ref.childGap,
26095
26088
  childGap = _ref$childGap === void 0 ? "0.5rem" : _ref$childGap,
26096
26089
  bottomItem = _ref.bottomItem,
26097
26090
  children = _ref.children,
26098
- rest = _objectWithoutProperties(_ref, _excluded$t);
26091
+ rest = _objectWithoutProperties(_ref, _excluded$s);
26099
26092
 
26100
26093
  return /*#__PURE__*/React__default.createElement(Stack, _extends({
26101
26094
  childGap: childGap,
@@ -26103,12 +26096,12 @@ var FormInputColumn = function FormInputColumn(_ref) {
26103
26096
  }, rest), children);
26104
26097
  };
26105
26098
 
26106
- var _excluded$u = ["themeValues", "children"];
26099
+ var _excluded$t = ["themeValues", "children"];
26107
26100
 
26108
26101
  var FormContainer = function FormContainer(_ref) {
26109
26102
  var themeValues = _ref.themeValues,
26110
26103
  children = _ref.children,
26111
- rest = _objectWithoutProperties(_ref, _excluded$u);
26104
+ rest = _objectWithoutProperties(_ref, _excluded$t);
26112
26105
 
26113
26106
  var _useContext = React.useContext(styled.ThemeContext),
26114
26107
  isMobile = _useContext.isMobile;
@@ -26373,7 +26366,7 @@ var fallbackValues$o = {
26373
26366
  fontSize: fontSize$8
26374
26367
  };
26375
26368
 
26376
- var _excluded$v = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
26369
+ var _excluded$u = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
26377
26370
 
26378
26371
  var Heading = function Heading(_ref) {
26379
26372
  var themeValues = _ref.themeValues,
@@ -26393,7 +26386,7 @@ var Heading = function Heading(_ref) {
26393
26386
  as = _ref$as === void 0 ? variant : _ref$as,
26394
26387
  dataQa = _ref.dataQa,
26395
26388
  children = _ref.children,
26396
- rest = _objectWithoutProperties(_ref, _excluded$v);
26389
+ rest = _objectWithoutProperties(_ref, _excluded$u);
26397
26390
 
26398
26391
  return /*#__PURE__*/React__default.createElement(HeadingText, _extends({
26399
26392
  variant: variant,
@@ -26684,7 +26677,7 @@ var Loading = function Loading() {
26684
26677
  })))));
26685
26678
  };
26686
26679
 
26687
- var _excluded$w = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
26680
+ var _excluded$v = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
26688
26681
 
26689
26682
  var NavFooter = function NavFooter(_ref) {
26690
26683
  var leftContent = _ref.leftContent,
@@ -26700,7 +26693,7 @@ var NavFooter = function NavFooter(_ref) {
26700
26693
  footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
26701
26694
  isMobile = _ref.isMobile,
26702
26695
  footerWidth = _ref.footerWidth,
26703
- rest = _objectWithoutProperties(_ref, _excluded$w);
26696
+ rest = _objectWithoutProperties(_ref, _excluded$v);
26704
26697
 
26705
26698
  return /*#__PURE__*/React__default.createElement(Box, _extends({
26706
26699
  padding: footerPadding,
@@ -26732,7 +26725,7 @@ var NavFooter = function NavFooter(_ref) {
26732
26725
  }, rightContent)))))));
26733
26726
  };
26734
26727
 
26735
- var _excluded$x = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
26728
+ var _excluded$w = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
26736
26729
 
26737
26730
  var NavHeader = function NavHeader(_ref) {
26738
26731
  var leftContent = _ref.leftContent,
@@ -26742,7 +26735,7 @@ var NavHeader = function NavHeader(_ref) {
26742
26735
  isMobile = _ref.isMobile,
26743
26736
  backgroundColor = _ref.backgroundColor,
26744
26737
  headerWidth = _ref.headerWidth,
26745
- rest = _objectWithoutProperties(_ref, _excluded$x);
26738
+ rest = _objectWithoutProperties(_ref, _excluded$w);
26746
26739
 
26747
26740
  return /*#__PURE__*/React__default.createElement(Box, _extends({
26748
26741
  padding: "0 16px 4px",
@@ -38517,7 +38510,7 @@ var TableRowWrapper = styled__default.tr.withConfig({
38517
38510
  return extraStyles;
38518
38511
  });
38519
38512
 
38520
- var _excluded$y = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
38513
+ var _excluded$x = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
38521
38514
 
38522
38515
  var TableRow = function TableRow(_ref) {
38523
38516
  var children = _ref.children,
@@ -38527,7 +38520,7 @@ var TableRow = function TableRow(_ref) {
38527
38520
  hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
38528
38521
  onClick = _ref.onClick,
38529
38522
  themeValues = _ref.themeValues,
38530
- props = _objectWithoutProperties(_ref, _excluded$y);
38523
+ props = _objectWithoutProperties(_ref, _excluded$x);
38531
38524
 
38532
38525
  return /*#__PURE__*/React__default.createElement(TableRowWrapper, _extends({
38533
38526
  onClick: onClick,
@@ -40368,7 +40361,6 @@ var AddressForm = function AddressForm(_ref) {
40368
40361
  }, /*#__PURE__*/React__default.createElement(FormInputColumn, null, /*#__PURE__*/React__default.createElement(CountryDropdown, {
40369
40362
  labelTextWhenNoError: "Country",
40370
40363
  errorMessages: countryErrorMessages,
40371
- "aria-label": "country",
40372
40364
  field: fields.country,
40373
40365
  onChange: function onChange(value) {
40374
40366
  actions.fields.country.set(value); // temporary measure to not dirty fields until
@@ -40382,19 +40374,20 @@ var AddressForm = function AddressForm(_ref) {
40382
40374
  actions.fields.zip.set("");
40383
40375
  }
40384
40376
  },
40385
- showErrors: showErrors
40377
+ showErrors: showErrors,
40378
+ "aria-label": "Country"
40386
40379
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
40387
40380
  labelTextWhenNoError: "Address",
40388
40381
  errorMessages: street1ErrorMessages,
40389
40382
  required: true,
40390
- "aria-label": "address line 1",
40391
40383
  field: fields.street1,
40392
40384
  fieldActions: actions.fields.street1,
40393
40385
  showErrors: showErrors,
40394
40386
  onKeyDown: function onKeyDown(e) {
40395
40387
  return e.key === "Enter" && handleSubmit(e);
40396
40388
  },
40397
- autoComplete: "address-line1"
40389
+ autocomplete: "address-line1",
40390
+ "aria-label": "Address Line 1"
40398
40391
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
40399
40392
  labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
40400
40393
  field: fields.street2,
@@ -40403,10 +40396,10 @@ var AddressForm = function AddressForm(_ref) {
40403
40396
  onKeyDown: function onKeyDown(e) {
40404
40397
  return e.key === "Enter" && handleSubmit(e);
40405
40398
  },
40406
- autoComplete: "address-line2"
40399
+ autocomplete: "address-line2",
40400
+ "aria-label": "Address Line 2"
40407
40401
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
40408
40402
  labelTextWhenNoError: "City",
40409
- "aria-label": "city",
40410
40403
  required: true,
40411
40404
  errorMessages: cityErrorMessages,
40412
40405
  field: fields.city,
@@ -40415,7 +40408,8 @@ var AddressForm = function AddressForm(_ref) {
40415
40408
  onKeyDown: function onKeyDown(e) {
40416
40409
  return e.key === "Enter" && handleSubmit(e);
40417
40410
  },
40418
- autoComplete: "address-level2"
40411
+ autocomplete: "city",
40412
+ "aria-label": "City"
40419
40413
  }), /*#__PURE__*/React__default.createElement(FormStateDropdown, {
40420
40414
  labelTextWhenNoError: isUS ? "State" : "State or Province",
40421
40415
  errorMessages: stateProvinceErrorMessages,
@@ -40426,7 +40420,6 @@ var AddressForm = function AddressForm(_ref) {
40426
40420
  onKeyDown: function onKeyDown(e) {
40427
40421
  return e.key === "Enter" && handleSubmit(e);
40428
40422
  },
40429
- autoComplete: "address-level1",
40430
40423
  "aria-label": isUS ? "State" : "State or Province",
40431
40424
  required: true
40432
40425
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
@@ -40440,10 +40433,12 @@ var AddressForm = function AddressForm(_ref) {
40440
40433
  onKeyDown: function onKeyDown(e) {
40441
40434
  return e.key === "Enter" && handleSubmit(e);
40442
40435
  },
40443
- autoComplete: "postal-code"
40436
+ "aria-label": "zip code",
40437
+ autocomplete: "postal-code",
40438
+ required: true
40444
40439
  }), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
40445
40440
  name: "address checkbox",
40446
- title: "Save address to wallet",
40441
+ title: "Save address to Wallet",
40447
40442
  checked: walletCheckboxMarked,
40448
40443
  onChange: saveToWallet
40449
40444
  })));
@@ -48159,7 +48154,7 @@ var fallbackValues$N = {
48159
48154
  labeledAmountTotal: labeledAmountTotal
48160
48155
  };
48161
48156
 
48162
- var _excluded$z = ["amount"],
48157
+ var _excluded$y = ["amount"],
48163
48158
  _excluded2$1 = ["amount"];
48164
48159
 
48165
48160
  var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
@@ -48369,7 +48364,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
48369
48364
  return fee.amount > 0;
48370
48365
  }).map(function (_ref5) {
48371
48366
  var amount = _ref5.amount,
48372
- rest = _objectWithoutProperties(_ref5, _excluded$z);
48367
+ rest = _objectWithoutProperties(_ref5, _excluded$y);
48373
48368
 
48374
48369
  return _objectSpread2(_objectSpread2({}, rest), {}, {
48375
48370
  amount: displayCurrency(amount)
@@ -48803,12 +48798,12 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
48803
48798
  }, errorMessage)))));
48804
48799
  };
48805
48800
 
48806
- var _excluded$A = ["version"];
48801
+ var _excluded$z = ["version"];
48807
48802
 
48808
48803
  var TermsAndConditions = function TermsAndConditions(_ref) {
48809
48804
  var _ref$version = _ref.version,
48810
48805
  version = _ref$version === void 0 ? "v1" : _ref$version,
48811
- rest = _objectWithoutProperties(_ref, _excluded$A);
48806
+ rest = _objectWithoutProperties(_ref, _excluded$z);
48812
48807
 
48813
48808
  var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
48814
48809
  return /*#__PURE__*/React__default.createElement(TermsAndConditionsControl, rest);