@thecb/components 10.4.4-beta.0 → 10.4.5-beta.0

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
@@ -14131,7 +14131,9 @@ var GenericErrorIcon = function GenericErrorIcon() {
14131
14131
  }));
14132
14132
  };
14133
14133
 
14134
- var IconAdd = function IconAdd() {
14134
+ var IconAdd = function IconAdd(_ref) {
14135
+ var _ref$strokeWidth = _ref.strokeWidth,
14136
+ strokeWidth = _ref$strokeWidth === void 0 ? 1 : _ref$strokeWidth;
14135
14137
  return /*#__PURE__*/React__default.createElement("svg", {
14136
14138
  xmlns: "http://www.w3.org/2000/svg",
14137
14139
  xmlnsXlink: "http://www.w3.org/1999/xlink",
@@ -14146,7 +14148,7 @@ var IconAdd = function IconAdd() {
14146
14148
  fill: "none",
14147
14149
  fillRule: "evenodd",
14148
14150
  stroke: "none",
14149
- strokeWidth: "1"
14151
+ strokeWidth: strokeWidth
14150
14152
  }, /*#__PURE__*/React__default.createElement("g", {
14151
14153
  transform: "translate(-407 -563)"
14152
14154
  }, /*#__PURE__*/React__default.createElement("g", {
@@ -14164,6 +14166,7 @@ var IconAdd = function IconAdd() {
14164
14166
  xlinkHref: "#path-1"
14165
14167
  })), /*#__PURE__*/React__default.createElement("circle", {
14166
14168
  className: "stroke",
14169
+ strokeWidth: strokeWidth,
14167
14170
  cx: "8.155",
14168
14171
  cy: "8.072",
14169
14172
  r: "8"
@@ -18434,180 +18437,6 @@ var TrashIconV2 = function TrashIconV2(_ref) {
18434
18437
  };
18435
18438
  var TrashIconV2$1 = themeComponent(TrashIconV2, "Icons", fallbackValues$2, "primary");
18436
18439
 
18437
- var DisabledAccountsAddIcon = function DisabledAccountsAddIcon() {
18438
- return /*#__PURE__*/React__default.createElement("svg", {
18439
- width: "100",
18440
- height: "100",
18441
- viewBox: "0 0 100 100",
18442
- fill: "none",
18443
- xmlns: "http://www.w3.org/2000/svg"
18444
- }, /*#__PURE__*/React__default.createElement("path", {
18445
- fillRule: "evenodd",
18446
- clipRule: "evenodd",
18447
- d: "M77.0408 78.1002V32.5154C77.0408 31.9007 76.5506 31.4039 75.9474 31.4039H32.3148C31.7106 31.4039 31.2213 31.9007 31.2213 32.5154V84.5326C31.2213 84.5326 55.7247 98.7028 77.0408 78.1002Z",
18448
- fill: "white"
18449
- }), /*#__PURE__*/React__default.createElement("path", {
18450
- fillRule: "evenodd",
18451
- clipRule: "evenodd",
18452
- d: "M88.0002 51.4983C88.0002 72.4847 70.9876 89.4983 50.0002 89.4983C29.0128 89.4983 12.0002 72.4847 12.0002 51.4983C12.0002 30.5109 29.0128 13.4983 50.0002 13.4983C59.0261 13.4983 67.3177 16.6447 73.8366 21.902C82.475 28.8674 88.0002 39.5368 88.0002 51.4983Z",
18453
- stroke: "#878E9B",
18454
- strokeWidth: "2.59255",
18455
- strokeLinejoin: "round"
18456
- }), /*#__PURE__*/React__default.createElement("path", {
18457
- d: "M77.0408 78.1002V32.5154C77.0408 31.9007 76.5506 31.4039 75.9474 31.4039H32.3148C31.7106 31.4039 31.2213 31.9007 31.2213 32.5154V81.3853",
18458
- stroke: "#3B414D",
18459
- strokeWidth: "2.0653",
18460
- strokeLinecap: "round",
18461
- strokeLinejoin: "round"
18462
- }), /*#__PURE__*/React__default.createElement("path", {
18463
- fillRule: "evenodd",
18464
- clipRule: "evenodd",
18465
- d: "M23.3362 78.1002V11.6448C23.3362 11.0302 23.8264 10.5324 24.4306 10.5324H68.0622C68.6664 10.5324 69.1556 11.0302 69.1556 11.6448V84.1973C69.1556 84.1973 58.4947 90.719 43.9673 88.1179C32.3336 86.0346 23.3362 78.1002 23.3362 78.1002Z",
18466
- fill: "white"
18467
- }), /*#__PURE__*/React__default.createElement("path", {
18468
- d: "M69.156 84.1973V11.6448C69.156 11.0302 68.6658 10.5324 68.0625 10.5324H24.43C23.8258 10.5324 23.3365 11.0302 23.3365 11.6448V78.1002",
18469
- stroke: "#3B414D",
18470
- strokeWidth: "2.0653",
18471
- strokeLinecap: "round",
18472
- strokeLinejoin: "round"
18473
- }), /*#__PURE__*/React__default.createElement("path", {
18474
- d: "M23.3362 19.3115H69.1556",
18475
- stroke: "#3B414D",
18476
- strokeWidth: "1.9285",
18477
- strokeLinecap: "round",
18478
- strokeLinejoin: "round"
18479
- }), /*#__PURE__*/React__default.createElement("path", {
18480
- d: "M69.156 40.1818H77.041",
18481
- stroke: "#3B414D",
18482
- strokeWidth: "1.9285",
18483
- strokeLinecap: "round",
18484
- strokeLinejoin: "round"
18485
- }), /*#__PURE__*/React__default.createElement("path", {
18486
- fillRule: "evenodd",
18487
- clipRule: "evenodd",
18488
- d: "M29.82 36.5974H62.672V31.4038H29.82V36.5974Z",
18489
- fill: "white"
18490
- }), /*#__PURE__*/React__default.createElement("path", {
18491
- fillRule: "evenodd",
18492
- clipRule: "evenodd",
18493
- d: "M29.82 36.5974H62.672V31.4038H29.82V36.5974Z",
18494
- stroke: "#3B414D",
18495
- strokeWidth: "2.0653",
18496
- strokeLinecap: "round",
18497
- strokeLinejoin: "round"
18498
- }), /*#__PURE__*/React__default.createElement("path", {
18499
- fillRule: "evenodd",
18500
- clipRule: "evenodd",
18501
- d: "M29.82 45.9207H62.672V40.7271H29.82V45.9207Z",
18502
- fill: "white"
18503
- }), /*#__PURE__*/React__default.createElement("path", {
18504
- fillRule: "evenodd",
18505
- clipRule: "evenodd",
18506
- d: "M29.82 45.9207H62.672V40.7271H29.82V45.9207Z",
18507
- stroke: "#3B414D",
18508
- strokeWidth: "2.0653",
18509
- strokeLinecap: "round",
18510
- strokeLinejoin: "round"
18511
- }), /*#__PURE__*/React__default.createElement("path", {
18512
- d: "M29.8201 26.2602H46.2466",
18513
- stroke: "#3B414D",
18514
- strokeWidth: "2.0653",
18515
- strokeLinecap: "round",
18516
- strokeLinejoin: "round"
18517
- }), /*#__PURE__*/React__default.createElement("path", {
18518
- fillRule: "evenodd",
18519
- clipRule: "evenodd",
18520
- d: "M29.82 63.0901H62.672V57.8964H29.82V63.0901Z",
18521
- fill: "white"
18522
- }), /*#__PURE__*/React__default.createElement("path", {
18523
- fillRule: "evenodd",
18524
- clipRule: "evenodd",
18525
- d: "M29.82 63.0901H62.672V57.8964H29.82V63.0901Z",
18526
- stroke: "#3B414D",
18527
- strokeWidth: "2.0653",
18528
- strokeLinecap: "round",
18529
- strokeLinejoin: "round"
18530
- }), /*#__PURE__*/React__default.createElement("path", {
18531
- fillRule: "evenodd",
18532
- clipRule: "evenodd",
18533
- d: "M29.82 72.4143H62.672V67.2207H29.82V72.4143Z",
18534
- fill: "white"
18535
- }), /*#__PURE__*/React__default.createElement("path", {
18536
- fillRule: "evenodd",
18537
- clipRule: "evenodd",
18538
- d: "M29.82 72.4143H62.672V67.2207H29.82V72.4143Z",
18539
- stroke: "#3B414D",
18540
- strokeWidth: "2.0653",
18541
- strokeLinecap: "round",
18542
- strokeLinejoin: "round"
18543
- }), /*#__PURE__*/React__default.createElement("path", {
18544
- fillRule: "evenodd",
18545
- clipRule: "evenodd",
18546
- d: "M48.3403 83.2719H62.672V79.298H48.3403V83.2719Z",
18547
- fill: "#3B414D"
18548
- }), /*#__PURE__*/React__default.createElement("path", {
18549
- fillRule: "evenodd",
18550
- clipRule: "evenodd",
18551
- d: "M48.3403 83.2719H62.672V79.298H48.3403V83.2719Z",
18552
- stroke: "#3B414D",
18553
- strokeWidth: "2.0653",
18554
- strokeLinecap: "round",
18555
- strokeLinejoin: "round"
18556
- }), /*#__PURE__*/React__default.createElement("path", {
18557
- d: "M29.8201 52.7535H46.2466",
18558
- stroke: "#3B414D",
18559
- strokeWidth: "2.0653",
18560
- strokeLinecap: "round",
18561
- strokeLinejoin: "round"
18562
- }), /*#__PURE__*/React__default.createElement("path", {
18563
- d: "M73.8364 21.9017C82.4748 28.8671 88 39.5365 88 51.498C88 72.4844 70.9874 89.498 50 89.498C29.0126 89.498 12 72.4844 12 51.498",
18564
- stroke: "#878E9B",
18565
- strokeWidth: "2.59255",
18566
- strokeLinejoin: "round"
18567
- }), /*#__PURE__*/React__default.createElement("path", {
18568
- fillRule: "evenodd",
18569
- clipRule: "evenodd",
18570
- d: "M69.1557 40.1818H77.0407V31.4038H69.1557V40.1818Z",
18571
- fill: "#3B414D"
18572
- }), /*#__PURE__*/React__default.createElement("path", {
18573
- fillRule: "evenodd",
18574
- clipRule: "evenodd",
18575
- d: "M23.3363 19.3112H69.1557V10.5323H23.3363V19.3112Z",
18576
- fill: "#3B414D"
18577
- }), /*#__PURE__*/React__default.createElement("path", {
18578
- d: "M72.0041 90.1C79.3495 90.1 85.3041 84.1454 85.3041 76.8C85.3041 69.4546 79.3495 63.5 72.0041 63.5C64.6587 63.5 58.7041 69.4546 58.7041 76.8C58.7041 84.1454 64.6587 90.1 72.0041 90.1Z",
18579
- fill: "#878E9B"
18580
- }), /*#__PURE__*/React__default.createElement("path", {
18581
- fillRule: "evenodd",
18582
- clipRule: "evenodd",
18583
- d: "M79.2041 77.5H73.2041V83.5H71.2041V77.5H65.2041V75.5H71.2041V69.5H73.2041V75.5H79.2041V77.5Z",
18584
- fill: "white"
18585
- }), /*#__PURE__*/React__default.createElement("mask", {
18586
- id: "mask0_7610_37196",
18587
- style: {
18588
- maskType: "luminance"
18589
- },
18590
- maskUnits: "userSpaceOnUse",
18591
- x: "65",
18592
- y: "69",
18593
- width: "15",
18594
- height: "15"
18595
- }, /*#__PURE__*/React__default.createElement("path", {
18596
- fillRule: "evenodd",
18597
- clipRule: "evenodd",
18598
- d: "M79.2041 77.5H73.2041V83.5H71.2041V77.5H65.2041V75.5H71.2041V69.5H73.2041V75.5H79.2041V77.5Z",
18599
- fill: "white"
18600
- })), /*#__PURE__*/React__default.createElement("g", {
18601
- mask: "url(#mask0_7610_37196)"
18602
- }, /*#__PURE__*/React__default.createElement("rect", {
18603
- x: "60.2041",
18604
- y: "64.5",
18605
- width: "24",
18606
- height: "24",
18607
- fill: "white"
18608
- })));
18609
- };
18610
-
18611
18440
  var color$2 = "#15749D";
18612
18441
  var hoverColor$1 = "#116285";
18613
18442
  var activeColor$1 = "#0E506D";
@@ -27932,16 +27761,16 @@ var fallbackValues$s = {
27932
27761
  height: height$1
27933
27762
  };
27934
27763
 
27935
- var getLargeIcon = function getLargeIcon(iconName, isDisabled) {
27764
+ var getLargeIcon = function getLargeIcon(iconName) {
27936
27765
  switch (iconName) {
27937
27766
  case "accounts":
27938
- return isDisabled ? /*#__PURE__*/React__default.createElement(DisabledAccountsAddIcon, null) : /*#__PURE__*/React__default.createElement(AccountsAddIcon$1, null);
27767
+ return /*#__PURE__*/React__default.createElement(AccountsAddIcon$1, null);
27939
27768
  case "properties":
27940
- return isDisabled ? /*#__PURE__*/React__default.createElement(DisabledAccountsAddIcon, null) : /*#__PURE__*/React__default.createElement(PropertiesAddIcon$1, null);
27769
+ return /*#__PURE__*/React__default.createElement(PropertiesAddIcon$1, null);
27941
27770
  case "payments":
27942
- return isDisabled ? /*#__PURE__*/React__default.createElement(DisabledAccountsAddIcon, null) : /*#__PURE__*/React__default.createElement(PaymentMethodAddIcon$1, null);
27771
+ return /*#__PURE__*/React__default.createElement(PaymentMethodAddIcon$1, null);
27943
27772
  default:
27944
- return isDisabled ? /*#__PURE__*/React__default.createElement(DisabledAccountsAddIcon, null) : /*#__PURE__*/React__default.createElement(AccountsAddIcon$1, null);
27773
+ return /*#__PURE__*/React__default.createElement(AccountsAddIcon$1, null);
27945
27774
  }
27946
27775
  };
27947
27776
  var PlaceholderContentWrapper = function PlaceholderContentWrapper(_ref) {
@@ -27949,35 +27778,22 @@ var PlaceholderContentWrapper = function PlaceholderContentWrapper(_ref) {
27949
27778
  action = _ref.action,
27950
27779
  destination = _ref.destination,
27951
27780
  children = _ref.children,
27952
- _ref$isDisabled = _ref.isDisabled,
27953
- isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
27954
27781
  dataQa = _ref.dataQa;
27955
- return isDisabled ? /*#__PURE__*/React__default.createElement(Box, {
27956
- padding: "0",
27957
- minHeight: "100%",
27958
- extraStyles: isDisabled ? "cursor: default" : "cursor: pointer;",
27959
- "aria-disabled": isDisabled
27960
- }, children) : isLink ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
27782
+ return isLink ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
27961
27783
  to: destination,
27962
27784
  "data-qa": dataQa,
27963
- disabled: isDisabled,
27964
- style: isDisabled ? {
27965
- textDecoration: "none",
27966
- color: "".concat(MANATEE_GREY),
27967
- borderColor: "".concat(MANATEE_GREY)
27968
- } : {
27785
+ style: {
27969
27786
  textDecoration: "none"
27970
27787
  }
27971
27788
  }, /*#__PURE__*/React__default.createElement(Box, {
27972
27789
  padding: "0",
27973
27790
  minHeight: "100%",
27974
- extraStyles: isDisabled ? "cursor: default;" : "cursor: pointer;"
27791
+ extraStyles: "cursor: pointer;"
27975
27792
  }, children)) : /*#__PURE__*/React__default.createElement(Box, {
27976
- onClick: isDisabled ? noop : action,
27793
+ onClick: action,
27977
27794
  padding: "0",
27978
27795
  minHeight: "100%",
27979
- "aria-disabled": isDisabled,
27980
- extraStyles: isDisabled ? "cursor: default" : "cursor: pointer;",
27796
+ extraStyles: "cursor: pointer;",
27981
27797
  dataQa: dataQa
27982
27798
  }, children);
27983
27799
  };
@@ -27992,30 +27808,27 @@ var Placeholder = function Placeholder(_ref2) {
27992
27808
  variant = _ref2.variant,
27993
27809
  largeIcon = _ref2.largeIcon,
27994
27810
  themeValues = _ref2.themeValues,
27995
- _ref2$isDisabled = _ref2.isDisabled,
27996
- isDisabled = _ref2$isDisabled === void 0 ? false : _ref2$isDisabled,
27997
27811
  dataQa = _ref2.dataQa;
27998
27812
  return /*#__PURE__*/React__default.createElement(PlaceholderContentWrapper, {
27999
27813
  isLink: isLink,
28000
27814
  action: action,
28001
27815
  destination: destination,
28002
- dataQa: dataQa,
28003
- isDisabled: isDisabled
27816
+ dataQa: dataQa
28004
27817
  }, /*#__PURE__*/React__default.createElement(Box, {
28005
27818
  padding: "0",
28006
27819
  borderRadius: "4px",
28007
27820
  border: "none",
28008
27821
  minHeight: themeValues.height,
28009
27822
  hiddenStyles: !visible,
28010
- extraStyles: isDisabled ? "border: 1px dashed ".concat(MANATEE_GREY, "; \n display: flex;\n justify-content: center;\n align-items:center;") : "\n background: linear-gradient(\n to right,\n ".concat(variant === "large" ? STORM_GREY : themeValues.color, " 40%,\n rgba(255, 255, 255, 0) 0%\n ),\n linear-gradient(").concat(variant === "large" ? STORM_GREY : themeValues.color, " 40%, rgba(255, 255, 255, 0) 0%),\n linear-gradient(to right, ").concat(variant === "large" ? STORM_GREY : themeValues.color, " 40%, rgba(255, 255, 255, 0) 0%),\n linear-gradient(").concat(variant === "large" ? STORM_GREY : themeValues.color, " 40%, rgba(255, 255, 255, 0) 0%);\n background-position: top, right, bottom, left;\n background-repeat: repeat-x, repeat-y;\n background-size: 5px 1px, 1px 5px;\n display: flex;\n justify-content: center;\n align-items:center;"),
28011
- hoverStyles: "background-color: ".concat(isDisabled ? TRANSPARENT : variant === "large" ? GRECIAN_GREY : curriedTint$1(0.9, themeValues.color), ";")
27823
+ extraStyles: "\n background: linear-gradient(\n to right,\n ".concat(variant === "large" ? STORM_GREY : themeValues.color, " 40%,\n rgba(255, 255, 255, 0) 0%\n ),\n linear-gradient(").concat(variant === "large" ? STORM_GREY : themeValues.color, " 40%, rgba(255, 255, 255, 0) 0%),\n linear-gradient(to right, ").concat(variant === "large" ? STORM_GREY : themeValues.color, " 40%, rgba(255, 255, 255, 0) 0%),\n linear-gradient(").concat(variant === "large" ? STORM_GREY : themeValues.color, " 40%, rgba(255, 255, 255, 0) 0%);\n background-position: top, right, bottom, left;\n background-repeat: repeat-x, repeat-y;\n background-size: 5px 1px, 1px 5px;\n display: flex;\n justify-content: center;\n align-items:center;"),
27824
+ hoverStyles: "background-color: ".concat(variant === "large" ? GRECIAN_GREY : curriedTint$1(0.9, themeValues.color), ";")
28012
27825
  }, /*#__PURE__*/React__default.createElement(Center, {
28013
27826
  maxWidth: "300px"
28014
27827
  }, /*#__PURE__*/React__default.createElement(Box, {
28015
27828
  padding: "0",
28016
27829
  tabIndex: "0",
28017
27830
  onKeyPress: function onKeyPress(e) {
28018
- return isDisabled ? noop : e.key === "Enter" && action();
27831
+ return e.key === "Enter" && action();
28019
27832
  }
28020
27833
  }, /*#__PURE__*/React__default.createElement(Cluster, {
28021
27834
  justify: "center",
@@ -28026,14 +27839,13 @@ var Placeholder = function Placeholder(_ref2) {
28026
27839
  childGap: "0"
28027
27840
  }, variant === "large" && /*#__PURE__*/React__default.createElement("div", null), /*#__PURE__*/React__default.createElement(Box, {
28028
27841
  padding: "0",
28029
- "aria-disabled": isDisabled,
28030
- extraStyles: ".fill { \n fill: ".concat(isDisabled ? MANATEE_GREY : variant === "large" ? CHARADE_GREY : themeValues.color, "; \n } .stroke { \n stroke: ").concat(isDisabled ? MANATEE_GREY : variant === "large" ? CHARADE_GREY : themeValues.color, "; \n }")
27842
+ extraStyles: ".fill { \n fill: ".concat(variant === "large" ? CHARADE_GREY : themeValues.color, "; \n } .stroke { \n stroke: ").concat(variant === "large" ? CHARADE_GREY : themeValues.color, "; \n } ")
28031
27843
  }, variant === "large" ? /*#__PURE__*/React__default.createElement(Center, {
28032
27844
  intrinsic: true
28033
- }, getLargeIcon(largeIcon, isDisabled), /*#__PURE__*/React__default.createElement(Text$1, {
27845
+ }, getLargeIcon(largeIcon), /*#__PURE__*/React__default.createElement(Text$1, {
28034
27846
  variant: "pS",
28035
- color: isDisabled ? MANATEE_GREY : themeValues.color,
28036
- weight: FONT_WEIGHT_REGULAR,
27847
+ color: themeValues.color,
27848
+ weight: FONT_WEIGHT_SEMIBOLD,
28037
27849
  extraStyles: "text-align: center;"
28038
27850
  }, text)) : /*#__PURE__*/React__default.createElement(Cover, {
28039
27851
  singleChild: true,
@@ -28042,13 +27854,13 @@ var Placeholder = function Placeholder(_ref2) {
28042
27854
  justify: "center",
28043
27855
  align: "center"
28044
27856
  }, /*#__PURE__*/React__default.createElement(IconAdd, {
28045
- fill: isDisabled ? MANATEE_GREY : "#fff"
27857
+ strokeWidth: "2"
28046
27858
  }), /*#__PURE__*/React__default.createElement(Center, {
28047
27859
  intrinsic: true
28048
27860
  }, /*#__PURE__*/React__default.createElement(Text$1, {
28049
27861
  variant: "pS",
28050
- color: isDisabled ? MANATEE_GREY : themeValues.color,
28051
- weight: FONT_WEIGHT_REGULAR,
27862
+ color: themeValues.color,
27863
+ weight: FONT_WEIGHT_SEMIBOLD,
28052
27864
  extraStyles: "padding: 0 0 0 8px; text-align: center;"
28053
27865
  }, text)))))))))));
28054
27866
  };
@@ -50807,7 +50619,6 @@ exports.Cover = Cover;
50807
50619
  exports.CustomerSearchIcon = CustomerSearchIcon;
50808
50620
  exports.DefaultPageTemplate = DefaultPageTemplate;
50809
50621
  exports.Detail = Detail$1;
50810
- exports.DisabledAccountsAddIcon = DisabledAccountsAddIcon;
50811
50622
  exports.DisplayBox = DisplayBox$1;
50812
50623
  exports.DisplayCard = DisplayCard;
50813
50624
  exports.Dropdown = Dropdown$1;