@thecb/components 8.4.10 → 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,15 +23985,14 @@ 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
- autocomplete: autocompleteValue,
23995
+ autoComplete: autocompleteValue,
23996
23996
  background: isOpen ? themeValues.hoverColor : WHITE,
23997
23997
  borderRadius: "2px",
23998
23998
  borderSize: "1px",
@@ -24002,7 +24002,8 @@ var Dropdown = function Dropdown(_ref8) {
24002
24002
  isOpen: isOpen,
24003
24003
  minHeight: "48px",
24004
24004
  minWidth: "100%",
24005
- name: autocompleteValue,
24005
+ name: autocompleteValue // aria-expanded={isOpen}
24006
+ ,
24006
24007
  onChange: function onChange(e) {
24007
24008
  // support autofill and copy/paste
24008
24009
  if (e.target.value !== inputValue) {
@@ -24012,7 +24013,6 @@ var Dropdown = function Dropdown(_ref8) {
24012
24013
  },
24013
24014
  padding: "12px",
24014
24015
  placeholder: getSelection(),
24015
- role: "combobox",
24016
24016
  themeValues: themeValues,
24017
24017
  title: hasTitles ? getSelection() : null,
24018
24018
  type: "text",
@@ -24065,7 +24065,7 @@ var Dropdown = function Dropdown(_ref8) {
24065
24065
  }, /*#__PURE__*/React__default.createElement(Text$1, {
24066
24066
  variant: "p",
24067
24067
  color: choice.value === value ? WHITE : disabledValues.includes(choice.value) ? STORM_GREY : MINESHAFT_GREY,
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;")
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;")
24069
24069
  }, choice.text));
24070
24070
  }))) : /*#__PURE__*/React__default.createElement(React.Fragment, null)));
24071
24071
  };
@@ -24210,7 +24210,7 @@ var FormSelect = function FormSelect(_ref) {
24210
24210
  id: createIdFromString(labelTextWhenNoError)
24211
24211
  }, labelTextWhenNoError))), /*#__PURE__*/React__default.createElement(Dropdown$1, {
24212
24212
  ariaLabelledby: createIdFromString(labelTextWhenNoError),
24213
- ariaDescribedby: createIdFromString(labelTextWhenNoError, "error message"),
24213
+ ariaDescribedby: createIdFromString(labelTextWhenNoError),
24214
24214
  maxHeight: dropdownMaxHeight,
24215
24215
  hasTitles: hasTitles,
24216
24216
  placeholder: options[0] ? options[0].text : "",
@@ -24229,20 +24229,19 @@ var FormSelect = function FormSelect(_ref) {
24229
24229
  },
24230
24230
  disabled: disabled,
24231
24231
  autocompleteValue: autocompleteValue,
24232
- smoothScroll: smoothScroll
24232
+ smoothScroll: smoothScroll,
24233
+ required: options.required
24233
24234
  }), /*#__PURE__*/React__default.createElement(Stack, {
24234
24235
  direction: "row",
24235
24236
  justify: "space-between",
24236
- "aria-live": "polite"
24237
- }, field.hasErrors && field.dirty || field.hasErrors && showErrors ? /*#__PURE__*/React__default.createElement(Text$1, {
24237
+ role: "alert"
24238
+ }, /*#__PURE__*/React__default.createElement(Text$1, {
24238
24239
  color: ERROR_COLOR,
24239
24240
  variant: "pXS",
24240
24241
  weight: themeValues.fontWeight,
24241
- extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
24242
+ extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
24242
24243
  id: createIdFromString(labelTextWhenNoError, "error message")
24243
- }, errorMessages[field.errors[0]]) : /*#__PURE__*/React__default.createElement(Text$1, {
24244
- extraStyles: "height: ".concat(themeValues.lineHeight, ";")
24245
- })));
24244
+ }, field.hasErrors && field.dirty || field.hasErrors && showErrors ? errorMessages[field.errors[0]] : "")));
24246
24245
  };
24247
24246
 
24248
24247
  var FormSelect$1 = themeComponent(FormSelect, "FormSelect", fallbackValues$g, "default");
@@ -24990,14 +24989,18 @@ var options = [{
24990
24989
  value: "ZW"
24991
24990
  }];
24992
24991
 
24992
+ var _excluded$o = ["labelTextWhenNoError", "errorMessages", "field", "fieldActions", "showErrors", "onChange"];
24993
+
24993
24994
  var CountryDropdown = function CountryDropdown(_ref) {
24994
24995
  var labelTextWhenNoError = _ref.labelTextWhenNoError,
24995
24996
  errorMessages = _ref.errorMessages,
24996
24997
  field = _ref.field,
24997
24998
  fieldActions = _ref.fieldActions,
24998
24999
  showErrors = _ref.showErrors,
24999
- onChange = _ref.onChange;
25000
- return /*#__PURE__*/React__default.createElement(FormSelect$1, {
25000
+ onChange = _ref.onChange,
25001
+ rest = _objectWithoutProperties(_ref, _excluded$o);
25002
+
25003
+ return /*#__PURE__*/React__default.createElement(FormSelect$1, _extends({
25001
25004
  options: options,
25002
25005
  field: field,
25003
25006
  fieldActions: fieldActions,
@@ -25006,7 +25009,7 @@ var CountryDropdown = function CountryDropdown(_ref) {
25006
25009
  showErrors: showErrors,
25007
25010
  onChange: onChange,
25008
25011
  autocompleteValue: "country-name"
25009
- });
25012
+ }, rest));
25010
25013
  };
25011
25014
 
25012
25015
  var DetailText = styled__default.p.withConfig({
@@ -25072,7 +25075,7 @@ var mobileFallbackValues$1 = {
25072
25075
  };
25073
25076
  var MOBILE_BREAKPOINT$1 = 768;
25074
25077
 
25075
- var _excluded$o = ["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"];
25076
25079
  /*
25077
25080
  New responsive text component for Detail elements
25078
25081
  (Block level text elements which are smaller than "Title" elements)
@@ -25122,7 +25125,7 @@ var Detail = function Detail(_ref) {
25122
25125
  as = _ref$as === void 0 ? "p" : _ref$as,
25123
25126
  dataQa = _ref.dataQa,
25124
25127
  children = _ref.children,
25125
- rest = _objectWithoutProperties(_ref, _excluded$o);
25128
+ rest = _objectWithoutProperties(_ref, _excluded$p);
25126
25129
 
25127
25130
  return /*#__PURE__*/React__default.createElement(DetailText, _extends({
25128
25131
  variant: variant,
@@ -25846,7 +25849,7 @@ var fallbackValues$k = {
25846
25849
  formFooterPanel: formFooterPanel
25847
25850
  };
25848
25851
 
25849
- var _excluded$p = ["showErrors", "themeValues"],
25852
+ var _excluded$q = ["showErrors", "themeValues"],
25850
25853
  _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocomplete", "extraStyles", "removeFromValue"];
25851
25854
  var InputField = styled__default.input.withConfig({
25852
25855
  displayName: "FormInput__InputField",
@@ -25880,7 +25883,7 @@ var InputField = styled__default.input.withConfig({
25880
25883
  var FormattedInputField = styled__default(function (_ref8) {
25881
25884
  var showErrors = _ref8.showErrors,
25882
25885
  themeValues = _ref8.themeValues,
25883
- props = _objectWithoutProperties(_ref8, _excluded$p);
25886
+ props = _objectWithoutProperties(_ref8, _excluded$q);
25884
25887
 
25885
25888
  return /*#__PURE__*/React__default.createElement(FormattedInput, props);
25886
25889
  }).withConfig({
@@ -26001,7 +26004,7 @@ var FormInput = function FormInput(_ref15) {
26001
26004
  padding: "0"
26002
26005
  }, formatter ? /*#__PURE__*/React__default.createElement(FormattedInputField, _extends({
26003
26006
  "aria-labelledby": createIdFromString(labelTextWhenNoError),
26004
- "aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
26007
+ "aria-describedby": createIdFromString(labelTextWhenNoError),
26005
26008
  "aria-invalid": field.dirty && field.hasErrors || field.hasErrors && showErrors,
26006
26009
  onChange: function onChange(value) {
26007
26010
  return setValue(value);
@@ -26017,10 +26020,10 @@ var FormInput = function FormInput(_ref15) {
26017
26020
  themeValues: themeValues,
26018
26021
  $customHeight: customHeight,
26019
26022
  $extraStyles: extraStyles,
26020
- autoComplete: autocomplete
26023
+ autocomplete: autocomplete
26021
26024
  }, props)) : /*#__PURE__*/React__default.createElement(InputField, _extends({
26022
26025
  "aria-labelledby": createIdFromString(labelTextWhenNoError),
26023
- "aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
26026
+ "aria-describedby": createIdFromString(labelTextWhenNoError),
26024
26027
  "aria-invalid": field.dirty && field.hasErrors || field.hasErrors && showErrors,
26025
26028
  onChange: function onChange(e) {
26026
26029
  return setValue(e.target.value);
@@ -26036,11 +26039,11 @@ var FormInput = function FormInput(_ref15) {
26036
26039
  background: background,
26037
26040
  $customHeight: customHeight,
26038
26041
  $extraStyles: extraStyles,
26039
- autoComplete: autocomplete
26042
+ autocomplete: autocomplete
26040
26043
  }, props))), /*#__PURE__*/React__default.createElement(Stack, {
26041
26044
  direction: "row",
26042
26045
  justify: "space-between",
26043
- "aria-live": "polite"
26046
+ role: "alert"
26044
26047
  }, field.hasErrors && field.dirty || field.hasErrors && showErrors ? /*#__PURE__*/React__default.createElement(Text$1, {
26045
26048
  color: ERROR_COLOR,
26046
26049
  variant: "pXS",
@@ -26056,7 +26059,7 @@ var FormInput = function FormInput(_ref15) {
26056
26059
 
26057
26060
  var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$k, "default");
26058
26061
 
26059
- var _excluded$q = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
26062
+ var _excluded$r = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
26060
26063
 
26061
26064
  var FormInputRow = function FormInputRow(_ref) {
26062
26065
  var _ref$breakpoint = _ref.breakpoint,
@@ -26066,7 +26069,7 @@ var FormInputRow = function FormInputRow(_ref) {
26066
26069
  largeChild = _ref.largeChild,
26067
26070
  largeChildSize = _ref.largeChildSize,
26068
26071
  children = _ref.children,
26069
- rest = _objectWithoutProperties(_ref, _excluded$q);
26072
+ rest = _objectWithoutProperties(_ref, _excluded$r);
26070
26073
 
26071
26074
  return /*#__PURE__*/React__default.createElement(Box, _extends({
26072
26075
  padding: "0"
@@ -26078,14 +26081,14 @@ var FormInputRow = function FormInputRow(_ref) {
26078
26081
  }, children));
26079
26082
  };
26080
26083
 
26081
- var _excluded$r = ["childGap", "bottomItem", "children"];
26084
+ var _excluded$s = ["childGap", "bottomItem", "children"];
26082
26085
 
26083
26086
  var FormInputColumn = function FormInputColumn(_ref) {
26084
26087
  var _ref$childGap = _ref.childGap,
26085
26088
  childGap = _ref$childGap === void 0 ? "0.5rem" : _ref$childGap,
26086
26089
  bottomItem = _ref.bottomItem,
26087
26090
  children = _ref.children,
26088
- rest = _objectWithoutProperties(_ref, _excluded$r);
26091
+ rest = _objectWithoutProperties(_ref, _excluded$s);
26089
26092
 
26090
26093
  return /*#__PURE__*/React__default.createElement(Stack, _extends({
26091
26094
  childGap: childGap,
@@ -26093,12 +26096,12 @@ var FormInputColumn = function FormInputColumn(_ref) {
26093
26096
  }, rest), children);
26094
26097
  };
26095
26098
 
26096
- var _excluded$s = ["themeValues", "children"];
26099
+ var _excluded$t = ["themeValues", "children"];
26097
26100
 
26098
26101
  var FormContainer = function FormContainer(_ref) {
26099
26102
  var themeValues = _ref.themeValues,
26100
26103
  children = _ref.children,
26101
- rest = _objectWithoutProperties(_ref, _excluded$s);
26104
+ rest = _objectWithoutProperties(_ref, _excluded$t);
26102
26105
 
26103
26106
  var _useContext = React.useContext(styled.ThemeContext),
26104
26107
  isMobile = _useContext.isMobile;
@@ -26363,7 +26366,7 @@ var fallbackValues$o = {
26363
26366
  fontSize: fontSize$8
26364
26367
  };
26365
26368
 
26366
- var _excluded$t = ["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"];
26367
26370
 
26368
26371
  var Heading = function Heading(_ref) {
26369
26372
  var themeValues = _ref.themeValues,
@@ -26383,7 +26386,7 @@ var Heading = function Heading(_ref) {
26383
26386
  as = _ref$as === void 0 ? variant : _ref$as,
26384
26387
  dataQa = _ref.dataQa,
26385
26388
  children = _ref.children,
26386
- rest = _objectWithoutProperties(_ref, _excluded$t);
26389
+ rest = _objectWithoutProperties(_ref, _excluded$u);
26387
26390
 
26388
26391
  return /*#__PURE__*/React__default.createElement(HeadingText, _extends({
26389
26392
  variant: variant,
@@ -26674,7 +26677,7 @@ var Loading = function Loading() {
26674
26677
  })))));
26675
26678
  };
26676
26679
 
26677
- var _excluded$u = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
26680
+ var _excluded$v = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
26678
26681
 
26679
26682
  var NavFooter = function NavFooter(_ref) {
26680
26683
  var leftContent = _ref.leftContent,
@@ -26690,7 +26693,7 @@ var NavFooter = function NavFooter(_ref) {
26690
26693
  footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
26691
26694
  isMobile = _ref.isMobile,
26692
26695
  footerWidth = _ref.footerWidth,
26693
- rest = _objectWithoutProperties(_ref, _excluded$u);
26696
+ rest = _objectWithoutProperties(_ref, _excluded$v);
26694
26697
 
26695
26698
  return /*#__PURE__*/React__default.createElement(Box, _extends({
26696
26699
  padding: footerPadding,
@@ -26722,7 +26725,7 @@ var NavFooter = function NavFooter(_ref) {
26722
26725
  }, rightContent)))))));
26723
26726
  };
26724
26727
 
26725
- var _excluded$v = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
26728
+ var _excluded$w = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
26726
26729
 
26727
26730
  var NavHeader = function NavHeader(_ref) {
26728
26731
  var leftContent = _ref.leftContent,
@@ -26732,7 +26735,7 @@ var NavHeader = function NavHeader(_ref) {
26732
26735
  isMobile = _ref.isMobile,
26733
26736
  backgroundColor = _ref.backgroundColor,
26734
26737
  headerWidth = _ref.headerWidth,
26735
- rest = _objectWithoutProperties(_ref, _excluded$v);
26738
+ rest = _objectWithoutProperties(_ref, _excluded$w);
26736
26739
 
26737
26740
  return /*#__PURE__*/React__default.createElement(Box, _extends({
26738
26741
  padding: "0 16px 4px",
@@ -38507,7 +38510,7 @@ var TableRowWrapper = styled__default.tr.withConfig({
38507
38510
  return extraStyles;
38508
38511
  });
38509
38512
 
38510
- var _excluded$w = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
38513
+ var _excluded$x = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
38511
38514
 
38512
38515
  var TableRow = function TableRow(_ref) {
38513
38516
  var children = _ref.children,
@@ -38517,7 +38520,7 @@ var TableRow = function TableRow(_ref) {
38517
38520
  hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
38518
38521
  onClick = _ref.onClick,
38519
38522
  themeValues = _ref.themeValues,
38520
- props = _objectWithoutProperties(_ref, _excluded$w);
38523
+ props = _objectWithoutProperties(_ref, _excluded$x);
38521
38524
 
38522
38525
  return /*#__PURE__*/React__default.createElement(TableRowWrapper, _extends({
38523
38526
  onClick: onClick,
@@ -40371,17 +40374,20 @@ var AddressForm = function AddressForm(_ref) {
40371
40374
  actions.fields.zip.set("");
40372
40375
  }
40373
40376
  },
40374
- showErrors: showErrors
40377
+ showErrors: showErrors,
40378
+ "aria-label": "Country"
40375
40379
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
40376
40380
  labelTextWhenNoError: "Address",
40377
40381
  errorMessages: street1ErrorMessages,
40382
+ required: true,
40378
40383
  field: fields.street1,
40379
40384
  fieldActions: actions.fields.street1,
40380
40385
  showErrors: showErrors,
40381
40386
  onKeyDown: function onKeyDown(e) {
40382
40387
  return e.key === "Enter" && handleSubmit(e);
40383
40388
  },
40384
- autocomplete: "address-line1"
40389
+ autocomplete: "address-line1",
40390
+ "aria-label": "Address Line 1"
40385
40391
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
40386
40392
  labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
40387
40393
  field: fields.street2,
@@ -40390,9 +40396,11 @@ var AddressForm = function AddressForm(_ref) {
40390
40396
  onKeyDown: function onKeyDown(e) {
40391
40397
  return e.key === "Enter" && handleSubmit(e);
40392
40398
  },
40393
- autocomplete: "address-line2"
40399
+ autocomplete: "address-line2",
40400
+ "aria-label": "Address Line 2"
40394
40401
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
40395
40402
  labelTextWhenNoError: "City",
40403
+ required: true,
40396
40404
  errorMessages: cityErrorMessages,
40397
40405
  field: fields.city,
40398
40406
  fieldActions: actions.fields.city,
@@ -40400,7 +40408,8 @@ var AddressForm = function AddressForm(_ref) {
40400
40408
  onKeyDown: function onKeyDown(e) {
40401
40409
  return e.key === "Enter" && handleSubmit(e);
40402
40410
  },
40403
- autocomplete: "address-level2"
40411
+ autocomplete: "city",
40412
+ "aria-label": "City"
40404
40413
  }), /*#__PURE__*/React__default.createElement(FormStateDropdown, {
40405
40414
  labelTextWhenNoError: isUS ? "State" : "State or Province",
40406
40415
  errorMessages: stateProvinceErrorMessages,
@@ -40411,7 +40420,8 @@ var AddressForm = function AddressForm(_ref) {
40411
40420
  onKeyDown: function onKeyDown(e) {
40412
40421
  return e.key === "Enter" && handleSubmit(e);
40413
40422
  },
40414
- autocomplete: "address-level1"
40423
+ "aria-label": isUS ? "State" : "State or Province",
40424
+ required: true
40415
40425
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
40416
40426
  isNum: isUS,
40417
40427
  formatter: isUS ? zipFormat : null,
@@ -40423,10 +40433,12 @@ var AddressForm = function AddressForm(_ref) {
40423
40433
  onKeyDown: function onKeyDown(e) {
40424
40434
  return e.key === "Enter" && handleSubmit(e);
40425
40435
  },
40426
- autocomplete: "postal-code"
40436
+ "aria-label": "zip code",
40437
+ autocomplete: "postal-code",
40438
+ required: true
40427
40439
  }), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
40428
40440
  name: "address checkbox",
40429
- title: "Save address to wallet",
40441
+ title: "Save address to Wallet",
40430
40442
  checked: walletCheckboxMarked,
40431
40443
  onChange: saveToWallet
40432
40444
  })));
@@ -48142,7 +48154,7 @@ var fallbackValues$N = {
48142
48154
  labeledAmountTotal: labeledAmountTotal
48143
48155
  };
48144
48156
 
48145
- var _excluded$x = ["amount"],
48157
+ var _excluded$y = ["amount"],
48146
48158
  _excluded2$1 = ["amount"];
48147
48159
 
48148
48160
  var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
@@ -48352,7 +48364,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
48352
48364
  return fee.amount > 0;
48353
48365
  }).map(function (_ref5) {
48354
48366
  var amount = _ref5.amount,
48355
- rest = _objectWithoutProperties(_ref5, _excluded$x);
48367
+ rest = _objectWithoutProperties(_ref5, _excluded$y);
48356
48368
 
48357
48369
  return _objectSpread2(_objectSpread2({}, rest), {}, {
48358
48370
  amount: displayCurrency(amount)
@@ -48786,12 +48798,12 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
48786
48798
  }, errorMessage)))));
48787
48799
  };
48788
48800
 
48789
- var _excluded$y = ["version"];
48801
+ var _excluded$z = ["version"];
48790
48802
 
48791
48803
  var TermsAndConditions = function TermsAndConditions(_ref) {
48792
48804
  var _ref$version = _ref.version,
48793
48805
  version = _ref$version === void 0 ? "v1" : _ref$version,
48794
- rest = _objectWithoutProperties(_ref, _excluded$y);
48806
+ rest = _objectWithoutProperties(_ref, _excluded$z);
48795
48807
 
48796
48808
  var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
48797
48809
  return /*#__PURE__*/React__default.createElement(TermsAndConditionsControl, rest);