@thecb/components 8.4.11-beta.13 → 8.4.11-beta.15

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
@@ -24997,18 +24997,14 @@ var options = [{
24997
24997
  value: "ZW"
24998
24998
  }];
24999
24999
 
25000
- var _excluded$o = ["labelTextWhenNoError", "errorMessages", "field", "fieldActions", "showErrors", "onChange"];
25001
-
25002
25000
  var CountryDropdown = function CountryDropdown(_ref) {
25003
25001
  var labelTextWhenNoError = _ref.labelTextWhenNoError,
25004
25002
  errorMessages = _ref.errorMessages,
25005
25003
  field = _ref.field,
25006
25004
  fieldActions = _ref.fieldActions,
25007
25005
  showErrors = _ref.showErrors,
25008
- onChange = _ref.onChange,
25009
- rest = _objectWithoutProperties(_ref, _excluded$o);
25010
-
25011
- return /*#__PURE__*/React__default.createElement(FormSelect$1, _extends({
25006
+ onChange = _ref.onChange;
25007
+ return /*#__PURE__*/React__default.createElement(FormSelect$1, {
25012
25008
  options: options,
25013
25009
  field: field,
25014
25010
  fieldActions: fieldActions,
@@ -25017,7 +25013,7 @@ var CountryDropdown = function CountryDropdown(_ref) {
25017
25013
  showErrors: showErrors,
25018
25014
  onChange: onChange,
25019
25015
  autocompleteValue: "country-name"
25020
- }, rest));
25016
+ });
25021
25017
  };
25022
25018
 
25023
25019
  var DetailText = styled__default.p.withConfig({
@@ -25083,7 +25079,7 @@ var mobileFallbackValues$1 = {
25083
25079
  };
25084
25080
  var MOBILE_BREAKPOINT$1 = 768;
25085
25081
 
25086
- var _excluded$p = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
25082
+ var _excluded$o = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
25087
25083
  /*
25088
25084
  New responsive text component for Detail elements
25089
25085
  (Block level text elements which are smaller than "Title" elements)
@@ -25133,7 +25129,7 @@ var Detail = function Detail(_ref) {
25133
25129
  as = _ref$as === void 0 ? "p" : _ref$as,
25134
25130
  dataQa = _ref.dataQa,
25135
25131
  children = _ref.children,
25136
- rest = _objectWithoutProperties(_ref, _excluded$p);
25132
+ rest = _objectWithoutProperties(_ref, _excluded$o);
25137
25133
 
25138
25134
  return /*#__PURE__*/React__default.createElement(DetailText, _extends({
25139
25135
  variant: variant,
@@ -25857,7 +25853,7 @@ var fallbackValues$k = {
25857
25853
  formFooterPanel: formFooterPanel
25858
25854
  };
25859
25855
 
25860
- var _excluded$q = ["showErrors", "themeValues"],
25856
+ var _excluded$p = ["showErrors", "themeValues"],
25861
25857
  _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocomplete", "extraStyles", "removeFromValue"];
25862
25858
  var InputField = styled__default.input.withConfig({
25863
25859
  displayName: "FormInput__InputField",
@@ -25891,7 +25887,7 @@ var InputField = styled__default.input.withConfig({
25891
25887
  var FormattedInputField = styled__default(function (_ref8) {
25892
25888
  var showErrors = _ref8.showErrors,
25893
25889
  themeValues = _ref8.themeValues,
25894
- props = _objectWithoutProperties(_ref8, _excluded$q);
25890
+ props = _objectWithoutProperties(_ref8, _excluded$p);
25895
25891
 
25896
25892
  return /*#__PURE__*/React__default.createElement(FormattedInput, props);
25897
25893
  }).withConfig({
@@ -26069,7 +26065,7 @@ var FormInput = function FormInput(_ref15) {
26069
26065
 
26070
26066
  var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$k, "default");
26071
26067
 
26072
- var _excluded$r = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
26068
+ var _excluded$q = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
26073
26069
 
26074
26070
  var FormInputRow = function FormInputRow(_ref) {
26075
26071
  var _ref$breakpoint = _ref.breakpoint,
@@ -26079,7 +26075,7 @@ var FormInputRow = function FormInputRow(_ref) {
26079
26075
  largeChild = _ref.largeChild,
26080
26076
  largeChildSize = _ref.largeChildSize,
26081
26077
  children = _ref.children,
26082
- rest = _objectWithoutProperties(_ref, _excluded$r);
26078
+ rest = _objectWithoutProperties(_ref, _excluded$q);
26083
26079
 
26084
26080
  return /*#__PURE__*/React__default.createElement(Box, _extends({
26085
26081
  padding: "0"
@@ -26091,14 +26087,14 @@ var FormInputRow = function FormInputRow(_ref) {
26091
26087
  }, children));
26092
26088
  };
26093
26089
 
26094
- var _excluded$s = ["childGap", "bottomItem", "children"];
26090
+ var _excluded$r = ["childGap", "bottomItem", "children"];
26095
26091
 
26096
26092
  var FormInputColumn = function FormInputColumn(_ref) {
26097
26093
  var _ref$childGap = _ref.childGap,
26098
26094
  childGap = _ref$childGap === void 0 ? "0.5rem" : _ref$childGap,
26099
26095
  bottomItem = _ref.bottomItem,
26100
26096
  children = _ref.children,
26101
- rest = _objectWithoutProperties(_ref, _excluded$s);
26097
+ rest = _objectWithoutProperties(_ref, _excluded$r);
26102
26098
 
26103
26099
  return /*#__PURE__*/React__default.createElement(Stack, _extends({
26104
26100
  childGap: childGap,
@@ -26106,12 +26102,12 @@ var FormInputColumn = function FormInputColumn(_ref) {
26106
26102
  }, rest), children);
26107
26103
  };
26108
26104
 
26109
- var _excluded$t = ["themeValues", "children"];
26105
+ var _excluded$s = ["themeValues", "children"];
26110
26106
 
26111
26107
  var FormContainer = function FormContainer(_ref) {
26112
26108
  var themeValues = _ref.themeValues,
26113
26109
  children = _ref.children,
26114
- rest = _objectWithoutProperties(_ref, _excluded$t);
26110
+ rest = _objectWithoutProperties(_ref, _excluded$s);
26115
26111
 
26116
26112
  var _useContext = React.useContext(styled.ThemeContext),
26117
26113
  isMobile = _useContext.isMobile;
@@ -26376,7 +26372,7 @@ var fallbackValues$o = {
26376
26372
  fontSize: fontSize$8
26377
26373
  };
26378
26374
 
26379
- var _excluded$u = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
26375
+ var _excluded$t = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
26380
26376
 
26381
26377
  var Heading = function Heading(_ref) {
26382
26378
  var themeValues = _ref.themeValues,
@@ -26396,7 +26392,7 @@ var Heading = function Heading(_ref) {
26396
26392
  as = _ref$as === void 0 ? variant : _ref$as,
26397
26393
  dataQa = _ref.dataQa,
26398
26394
  children = _ref.children,
26399
- rest = _objectWithoutProperties(_ref, _excluded$u);
26395
+ rest = _objectWithoutProperties(_ref, _excluded$t);
26400
26396
 
26401
26397
  return /*#__PURE__*/React__default.createElement(HeadingText, _extends({
26402
26398
  variant: variant,
@@ -26687,7 +26683,7 @@ var Loading = function Loading() {
26687
26683
  })))));
26688
26684
  };
26689
26685
 
26690
- var _excluded$v = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
26686
+ var _excluded$u = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
26691
26687
 
26692
26688
  var NavFooter = function NavFooter(_ref) {
26693
26689
  var leftContent = _ref.leftContent,
@@ -26703,7 +26699,7 @@ var NavFooter = function NavFooter(_ref) {
26703
26699
  footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
26704
26700
  isMobile = _ref.isMobile,
26705
26701
  footerWidth = _ref.footerWidth,
26706
- rest = _objectWithoutProperties(_ref, _excluded$v);
26702
+ rest = _objectWithoutProperties(_ref, _excluded$u);
26707
26703
 
26708
26704
  return /*#__PURE__*/React__default.createElement(Box, _extends({
26709
26705
  padding: footerPadding,
@@ -26735,7 +26731,7 @@ var NavFooter = function NavFooter(_ref) {
26735
26731
  }, rightContent)))))));
26736
26732
  };
26737
26733
 
26738
- var _excluded$w = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
26734
+ var _excluded$v = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
26739
26735
 
26740
26736
  var NavHeader = function NavHeader(_ref) {
26741
26737
  var leftContent = _ref.leftContent,
@@ -26745,7 +26741,7 @@ var NavHeader = function NavHeader(_ref) {
26745
26741
  isMobile = _ref.isMobile,
26746
26742
  backgroundColor = _ref.backgroundColor,
26747
26743
  headerWidth = _ref.headerWidth,
26748
- rest = _objectWithoutProperties(_ref, _excluded$w);
26744
+ rest = _objectWithoutProperties(_ref, _excluded$v);
26749
26745
 
26750
26746
  return /*#__PURE__*/React__default.createElement(Box, _extends({
26751
26747
  padding: "0 16px 4px",
@@ -38523,7 +38519,7 @@ var TableRowWrapper = styled__default.tr.withConfig({
38523
38519
  return extraStyles;
38524
38520
  });
38525
38521
 
38526
- var _excluded$x = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
38522
+ var _excluded$w = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
38527
38523
 
38528
38524
  var TableRow = function TableRow(_ref) {
38529
38525
  var children = _ref.children,
@@ -38533,7 +38529,7 @@ var TableRow = function TableRow(_ref) {
38533
38529
  hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
38534
38530
  onClick = _ref.onClick,
38535
38531
  themeValues = _ref.themeValues,
38536
- props = _objectWithoutProperties(_ref, _excluded$x);
38532
+ props = _objectWithoutProperties(_ref, _excluded$w);
38537
38533
 
38538
38534
  return /*#__PURE__*/React__default.createElement(TableRowWrapper, _extends({
38539
38535
  onClick: onClick,
@@ -40445,7 +40441,7 @@ var AddressForm = function AddressForm(_ref) {
40445
40441
  onKeyDown: function onKeyDown(e) {
40446
40442
  return e.key === "Enter" && handleSubmit(e);
40447
40443
  },
40448
- "aria-label": "zip code",
40444
+ "aria-label": "Zip code",
40449
40445
  autocomplete: "postal-code",
40450
40446
  required: true
40451
40447
  }), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
@@ -48166,7 +48162,7 @@ var fallbackValues$N = {
48166
48162
  labeledAmountTotal: labeledAmountTotal
48167
48163
  };
48168
48164
 
48169
- var _excluded$y = ["amount"],
48165
+ var _excluded$x = ["amount"],
48170
48166
  _excluded2$1 = ["amount"];
48171
48167
 
48172
48168
  var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
@@ -48376,7 +48372,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
48376
48372
  return fee.amount > 0;
48377
48373
  }).map(function (_ref5) {
48378
48374
  var amount = _ref5.amount,
48379
- rest = _objectWithoutProperties(_ref5, _excluded$y);
48375
+ rest = _objectWithoutProperties(_ref5, _excluded$x);
48380
48376
 
48381
48377
  return _objectSpread2(_objectSpread2({}, rest), {}, {
48382
48378
  amount: displayCurrency(amount)
@@ -48810,12 +48806,12 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
48810
48806
  }, errorMessage)))));
48811
48807
  };
48812
48808
 
48813
- var _excluded$z = ["version"];
48809
+ var _excluded$y = ["version"];
48814
48810
 
48815
48811
  var TermsAndConditions = function TermsAndConditions(_ref) {
48816
48812
  var _ref$version = _ref.version,
48817
48813
  version = _ref$version === void 0 ? "v1" : _ref$version,
48818
- rest = _objectWithoutProperties(_ref, _excluded$z);
48814
+ rest = _objectWithoutProperties(_ref, _excluded$y);
48819
48815
 
48820
48816
  var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
48821
48817
  return /*#__PURE__*/React__default.createElement(TermsAndConditionsControl, rest);