@thecb/components 10.7.5-beta.0 → 10.7.5-beta.2

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
@@ -18768,6 +18768,71 @@ var DisabledPaymentMethodsAddIcon = function DisabledPaymentMethodsAddIcon() {
18768
18768
  })));
18769
18769
  };
18770
18770
 
18771
+ var ReversalNeededIcon = function ReversalNeededIcon() {
18772
+ return /*#__PURE__*/React__default.createElement("svg", {
18773
+ width: "32",
18774
+ height: "32",
18775
+ viewBox: "0 0 32 32",
18776
+ fill: "none",
18777
+ xmlns: "http://www.w3.org/2000/svg"
18778
+ }, /*#__PURE__*/React__default.createElement("circle", {
18779
+ cx: "16",
18780
+ cy: "16",
18781
+ r: "16",
18782
+ fill: "#D11053"
18783
+ }), /*#__PURE__*/React__default.createElement("path", {
18784
+ d: "M14.4167 14.2222H13.5833C13.4453 14.2222 13.3333 14.1103 13.3333 13.9722V11.6667C13.3333 11.1144 13.781 10.6667 14.3333 10.6667H23C23.5523 10.6667 24 11.1144 24 11.6667V20.3333C24 20.8856 23.5523 21.3333 23 21.3333H14.3333C13.781 21.3333 13.3333 20.8856 13.3333 20.3333V18.0278C13.3333 17.8897 13.4453 17.7778 13.5833 17.7778H14.4167C14.5547 17.7778 14.6667 17.8897 14.6667 18.0278V20H22.6667V11.8518H14.6667V13.9722C14.6667 14.1103 14.5547 14.2222 14.4167 14.2222Z",
18785
+ fill: "white"
18786
+ }), /*#__PURE__*/React__default.createElement("path", {
18787
+ d: "M9.8706 11.4627L5.51011 15.8232C5.41248 15.9209 5.41248 16.0791 5.51011 16.1768L9.8706 20.5373C9.96823 20.6349 10.1265 20.6349 10.2242 20.5373L10.8134 19.948C10.911 19.8504 10.911 19.6921 10.8134 19.5945L7.39573 16.1768C7.2981 16.0791 7.2981 15.9209 7.39573 15.8232L10.8134 12.4055C10.911 12.3079 10.911 12.1496 10.8134 12.052L10.2242 11.4627C10.1265 11.3651 9.96823 11.3651 9.8706 11.4627Z",
18788
+ fill: "white"
18789
+ }), /*#__PURE__*/React__default.createElement("path", {
18790
+ d: "M6.66667 15.5833C6.66667 15.4453 6.7786 15.3333 6.91667 15.3333L18.4167 15.3333C18.5547 15.3333 18.6667 15.4453 18.6667 15.5833L18.6667 16.4167C18.6667 16.5547 18.5547 16.6667 18.4167 16.6667L6.91667 16.6667C6.7786 16.6667 6.66667 16.5547 6.66667 16.4167L6.66667 15.5833Z",
18791
+ fill: "white"
18792
+ }));
18793
+ };
18794
+
18795
+ var OverageIcon = function OverageIcon() {
18796
+ return /*#__PURE__*/React__default.createElement("svg", {
18797
+ width: "32",
18798
+ height: "32",
18799
+ viewBox: "0 0 32 32",
18800
+ fill: "none",
18801
+ xmlns: "http://www.w3.org/2000/svg"
18802
+ }, /*#__PURE__*/React__default.createElement("circle", {
18803
+ cx: "16",
18804
+ cy: "16",
18805
+ r: "16",
18806
+ transform: "rotate(-180 16 16)",
18807
+ fill: "#D11053"
18808
+ }), /*#__PURE__*/React__default.createElement("path", {
18809
+ fillRule: "evenodd",
18810
+ clipRule: "evenodd",
18811
+ d: "M15.6465 7.15426L9.7539 13.0468C9.55864 13.2421 9.55864 13.5587 9.7539 13.7539L10.461 14.461C10.6563 14.6563 10.9728 14.6563 11.1681 14.461L15 10.6291L15 20.6667H11.8333C11.5572 20.6667 11.3333 20.8905 11.3333 21.1667L11.3333 22.1667C11.3333 22.4428 11.5572 22.6667 11.8333 22.6667L20.1667 22.6667C20.4428 22.6667 20.6667 22.4428 20.6667 22.1667V21.1667C20.6667 20.8905 20.4428 20.6667 20.1667 20.6667H17L17 10.6291L20.8319 14.461C21.0272 14.6563 21.3437 14.6563 21.539 14.461L22.2461 13.7539C22.4414 13.5587 22.4414 13.2421 22.2461 13.0468L16.3536 7.15426C16.1583 6.959 15.8417 6.959 15.6465 7.15426Z",
18812
+ fill: "white"
18813
+ }));
18814
+ };
18815
+
18816
+ var ShortageIcon = function ShortageIcon() {
18817
+ return /*#__PURE__*/React__default.createElement("svg", {
18818
+ width: "32",
18819
+ height: "32",
18820
+ viewBox: "0 0 32 32",
18821
+ fill: "none",
18822
+ xmlns: "http://www.w3.org/2000/svg"
18823
+ }, /*#__PURE__*/React__default.createElement("circle", {
18824
+ cx: "16",
18825
+ cy: "16",
18826
+ r: "16",
18827
+ fill: "#D11053"
18828
+ }), /*#__PURE__*/React__default.createElement("path", {
18829
+ fillRule: "evenodd",
18830
+ clipRule: "evenodd",
18831
+ d: "M11.3333 9.83331C11.3333 9.55717 11.5572 9.33331 11.8333 9.33331H20.1667C20.4428 9.33331 20.6667 9.55717 20.6667 9.83331V10.8333C20.6667 11.1095 20.4428 11.3333 20.1667 11.3333H17V21.3709L20.8319 17.539C21.0272 17.3437 21.3437 17.3437 21.539 17.539L22.2461 18.2461C22.4414 18.4414 22.4414 18.7579 22.2461 18.9532L16.3535 24.8458C16.1583 25.041 15.8417 25.041 15.6464 24.8458L9.75388 18.9532C9.55862 18.7579 9.55862 18.4414 9.75388 18.2461L10.461 17.539C10.6563 17.3437 10.9728 17.3437 11.1681 17.539L15 21.3709V11.3333H11.8333C11.5572 11.3333 11.3333 11.1095 11.3333 10.8333V9.83331Z",
18832
+ fill: "white"
18833
+ }));
18834
+ };
18835
+
18771
18836
  var color$2 = "#15749D";
18772
18837
  var hoverColor$1 = "#116285";
18773
18838
  var activeColor$1 = "#0E506D";
@@ -27041,6 +27106,10 @@ var FormInput = function FormInput(_ref15) {
27041
27106
  _useState2 = _slicedToArray(_useState, 2),
27042
27107
  showPassword = _useState2[0],
27043
27108
  setShowPassword = _useState2[1];
27109
+ var _useState3 = React.useState(false),
27110
+ _useState4 = _slicedToArray(_useState3, 2),
27111
+ isFocused = _useState4[0],
27112
+ setIsFocused = _useState4[1];
27044
27113
  var _useContext = React.useContext(styled.ThemeContext),
27045
27114
  isMobile = _useContext.isMobile;
27046
27115
  var setValue = function setValue(value) {
@@ -27054,6 +27123,7 @@ var FormInput = function FormInput(_ref15) {
27054
27123
  if (isRequired && value === "") {
27055
27124
  setValue("");
27056
27125
  }
27126
+ setIsFocused(false);
27057
27127
  };
27058
27128
  return /*#__PURE__*/React__default.createElement(Stack, {
27059
27129
  childGap: "0.25rem"
@@ -27124,6 +27194,15 @@ var FormInput = function FormInput(_ref15) {
27124
27194
  "data-qa": dataQa || labelTextWhenNoError,
27125
27195
  autoComplete: autocompleteValue,
27126
27196
  required: isRequired
27197
+ // Additional handler to detect autofilled values
27198
+ }, autocompleteValue && {
27199
+ onFocus: function onFocus(e) {
27200
+ if (!isFocused) {
27201
+ var _e$target;
27202
+ setValue((_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value);
27203
+ setIsFocused(true);
27204
+ }
27205
+ }
27127
27206
  }, props)) : /*#__PURE__*/React__default.createElement(InputField, _extends({
27128
27207
  "aria-labelledby": createIdFromString(labelTextWhenNoError),
27129
27208
  "aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
@@ -39357,7 +39436,7 @@ var ToggleSwitch = function ToggleSwitch(_ref10) {
39357
39436
  isMobile: isMobile
39358
39437
  })))), label && /*#__PURE__*/React__default.createElement(Box, {
39359
39438
  as: labelAs,
39360
- extraStyles: "\n font-weight: ".concat(FONT_WEIGHT_SEMIBOLD, ";\n color: ").concat(CHARADE_GREY, ";\n margin: 0 0 0 0.25rem; \n position: relative; \n bottom: 1px; display: \n inline-block; \n ").concat(labelStyles),
39439
+ extraStyles: "\n font-weight: ".concat(FONT_WEIGHT_SEMIBOLD, ";\n color: ").concat(CHARADE_GREY, ";\n margin: 0 0 0 0.25rem; \n position: relative; \n bottom: 1px; \n display: inline-block; \n ").concat(labelStyles),
39361
39440
  id: "".concat(nameId, "-label"),
39362
39441
  htmlFor: labelAs === "label" ? nameId : null,
39363
39442
  padding: "0"
@@ -48623,6 +48702,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48623
48702
  },
48624
48703
  isNum: true,
48625
48704
  autocompleteValue: "cc-number",
48705
+ name: "cc-number",
48626
48706
  isRequired: true
48627
48707
  }), /*#__PURE__*/React__default.createElement(FormInputRow, {
48628
48708
  breakpoint: isMobile ? "1000rem" : "21rem",
@@ -50543,6 +50623,7 @@ exports.NoPaymentResultsIcon = NoPaymentResultsIcon;
50543
50623
  exports.NotFoundIcon = NotFoundIcon;
50544
50624
  exports.Obligation = Obligation$1;
50545
50625
  exports.ObligationIcons = iconsMap;
50626
+ exports.OverageIcon = OverageIcon;
50546
50627
  exports.Pagination = Pagination$1;
50547
50628
  exports.Paragraph = Paragraph$1;
50548
50629
  exports.PartialAmountForm = PartialAmountForm;
@@ -50587,11 +50668,13 @@ exports.ResetPasswordForm = ResetPasswordForm;
50587
50668
  exports.ResetPasswordIcon = ResetPasswordIcon;
50588
50669
  exports.ResetPasswordSuccess = ResetPasswordSuccess$1;
50589
50670
  exports.RevenueManagementImage = RevenueManagementImage;
50671
+ exports.ReversalNeededIcon = ReversalNeededIcon;
50590
50672
  exports.RoutingNumberImage = RoutingNumberImage;
50591
50673
  exports.SearchIcon = SearchIcon;
50592
50674
  exports.SearchableSelect = SearchableSelect$1;
50593
50675
  exports.SettingsIconSmall = SettingsIconSmall$1;
50594
50676
  exports.ShoppingCartIcon = ShoppingCartIcon;
50677
+ exports.ShortageIcon = ShortageIcon;
50595
50678
  exports.Sidebar = Sidebar;
50596
50679
  exports.SidebarSingleContent = SidebarSingleContent$1;
50597
50680
  exports.SidebarStackContent = SidebarStackContent$1;