@thecb/components 11.1.7 → 11.1.8

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.esm.js CHANGED
@@ -28462,10 +28462,12 @@ var ProcessingFee = function ProcessingFee(_ref) {
28462
28462
  var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$w, "default");
28463
28463
 
28464
28464
  var activeColor$6 = MATISSE_BLUE;
28465
+ var disabledColor$1 = MANATEE_GREY;
28465
28466
  var inactiveBorderColor = GREY_CHATEAU;
28466
28467
  var fallbackValues$x = {
28467
- inactiveBorderColor: inactiveBorderColor,
28468
- activeColor: activeColor$6
28468
+ activeColor: activeColor$6,
28469
+ disabledColor: disabledColor$1,
28470
+ inactiveBorderColor: inactiveBorderColor
28469
28471
  };
28470
28472
 
28471
28473
  var HiddenRadioInput = styled.input.withConfig({
@@ -28476,8 +28478,8 @@ var Circle = styled.div.withConfig({
28476
28478
  displayName: "RadioButtonWithLabel__Circle",
28477
28479
  componentId: "sc-1m9whwg-1"
28478
28480
  })(["flex-shrink:0;margin-right:8px;width:1.5rem;height 1.5rem;border:", ";border-radius:50%;box-sizing:border-box;padding:2px;:after{content:\"\";width:100%;height:100%;display:block;background:", ";border-radius:50%;transform:scale(0);}"], function (_ref) {
28479
- var inactiveBorderColor = _ref.inactiveBorderColor;
28480
- return "1px solid ".concat(inactiveBorderColor);
28481
+ var borderColor = _ref.borderColor;
28482
+ return "1px solid ".concat(borderColor);
28481
28483
  }, function (_ref2) {
28482
28484
  var activeColor = _ref2.activeColor;
28483
28485
  return activeColor;
@@ -28486,11 +28488,11 @@ var InputAndLabelContainer = styled(Cluster).withConfig({
28486
28488
  displayName: "RadioButtonWithLabel__InputAndLabelContainer",
28487
28489
  componentId: "sc-1m9whwg-2"
28488
28490
  })(["overflow:visible;", ":checked + label ", ":after{transform:scale(0.85);transition:transform 0.15s;}", ":checked + label ", "{border:", "}", ":focus + label ", "{{box-shadow:", "}"], HiddenRadioInput, Circle, HiddenRadioInput, Circle, function (_ref3) {
28489
- var activeColor = _ref3.activeColor;
28490
- return "1px solid ".concat(activeColor, ";");
28491
+ var borderColor = _ref3.borderColor;
28492
+ return "1px solid ".concat(borderColor, ";");
28491
28493
  }, HiddenRadioInput, Circle, function (_ref4) {
28492
- var activeColor = _ref4.activeColor;
28493
- return "0px 0px 2px 1px ".concat(activeColor, ";");
28494
+ var borderColor = _ref4.borderColor;
28495
+ return "0px 0px 2px 1px ".concat(borderColor, ";");
28494
28496
  });
28495
28497
  var RadioButtonWithLabel = function RadioButtonWithLabel(_ref5) {
28496
28498
  var _ref5$id = _ref5.id,
@@ -28507,7 +28509,9 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref5) {
28507
28509
  _ref5$handleChange = _ref5.handleChange,
28508
28510
  handleChange = _ref5$handleChange === void 0 ? noop$1 : _ref5$handleChange,
28509
28511
  field = _ref5.field,
28510
- config = _ref5.config;
28512
+ config = _ref5.config,
28513
+ _ref5$disabled = _ref5.disabled,
28514
+ disabled = _ref5$disabled === void 0 ? false : _ref5$disabled;
28511
28515
  var getDefaultChecked = function getDefaultChecked(value, idx) {
28512
28516
  var selectionExistsInConfig = config === null || config === void 0 ? void 0 : config.map(function (c) {
28513
28517
  return c.value;
@@ -28522,8 +28526,9 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref5) {
28522
28526
  return /*#__PURE__*/React.createElement(InputAndLabelContainer, {
28523
28527
  align: "center",
28524
28528
  childGap: "0.5rem",
28525
- activeColor: themeValues.activeColor
28529
+ borderColor: disabled ? themeValues.inactiveBorderColor : themeValues.activeColor
28526
28530
  }, /*#__PURE__*/React.createElement(HiddenRadioInput, {
28531
+ disabled: disabled,
28527
28532
  "aria-invalid": ariaInvalid,
28528
28533
  style: {
28529
28534
  marginTop: 0
@@ -28542,8 +28547,8 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref5) {
28542
28547
  htmlFor: id,
28543
28548
  extraStyles: "\n font-size: 1rem;\n display: flex; \n width: 100%;\n :hover {\n cursor: pointer;\n }\n "
28544
28549
  }, /*#__PURE__*/React.createElement(Circle, {
28545
- activeColor: themeValues.activeColor,
28546
- inactiveBorderColor: themeValues.inactiveBorderColor
28550
+ activeColor: disabled ? themeValues.disabledColor : themeValues.activeColor,
28551
+ borderColor: themeValues.inactiveBorderColor
28547
28552
  }), labelText));
28548
28553
  };
28549
28554
  var RadioButtonWithLabel$1 = themeComponent(RadioButtonWithLabel, "RadioButtonWithLabel", fallbackValues$x);
@@ -46463,7 +46468,7 @@ var iconsMap = (_iconsMap = {}, _defineProperty(_defineProperty(_defineProperty(
46463
46468
 
46464
46469
  var disabledBackgroundColor$1 = TRANSPARENT;
46465
46470
  var disabledBorderColor$1 = GHOST_GREY;
46466
- var disabledColor$1 = MANATEE_GREY;
46471
+ var disabledColor$2 = MANATEE_GREY;
46467
46472
  var activeBackgroundColor$1 = CORNFLOWER_BLUE;
46468
46473
  var backgroundColor$a = LINK_WATER;
46469
46474
  var borderColor$5 = MOON_RAKER;
@@ -46471,7 +46476,7 @@ var color$b = ROYAL_BLUE_VIVID;
46471
46476
  var fallbackValues$L = {
46472
46477
  disabledBackgroundColor: disabledBackgroundColor$1,
46473
46478
  disabledBorderColor: disabledBorderColor$1,
46474
- disabledColor: disabledColor$1,
46479
+ disabledColor: disabledColor$2,
46475
46480
  activeBackgroundColor: activeBackgroundColor$1,
46476
46481
  backgroundColor: backgroundColor$a,
46477
46482
  borderColor: borderColor$5,