@thecb/components 10.2.4-beta.2 → 10.2.4-beta.3

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
@@ -6496,7 +6496,7 @@ var BoxWrapper = styled(function (_ref) {
6496
6496
  });
6497
6497
  /* eslint-enable no-unused-vars */
6498
6498
 
6499
- var _excluded$3 = ["autocompleteValue", "padding", "borderSize", "borderColor", "borderRadius", "boxShadow", "background", "color", "minHeight", "width", "minWidth", "maxWidth", "borderWidthOverride", "border", "textAlign", "hoverStyles", "activeStyles", "disabledStyles", "variant", "as", "onClick", "onKeyDown", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur", "onTouchEnd", "theme", "hiddenStyles", "extraStyles", "srOnly", "dataQa", "children"];
6499
+ var _excluded$3 = ["autocompleteValue", "padding", "borderSize", "borderColor", "borderRadius", "boxShadow", "background", "color", "minHeight", "width", "minWidth", "maxWidth", "borderWidthOverride", "border", "textAlign", "hoverStyles", "activeStyles", "disabledStyles", "variant", "as", "onClick", "onKeyDown", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur", "onTouchEnd", "theme", "hiddenStyles", "extraStyles", "srOnly", "dataQa", "disabled", "children"];
6500
6500
 
6501
6501
  /*
6502
6502
  Box component to create generic boxes
@@ -6544,6 +6544,7 @@ var Box = /*#__PURE__*/forwardRef(function (_ref, ref) {
6544
6544
  _ref$srOnly = _ref.srOnly,
6545
6545
  srOnly = _ref$srOnly === void 0 ? false : _ref$srOnly,
6546
6546
  dataQa = _ref.dataQa,
6547
+ _ref$disabled = _ref.disabled,
6547
6548
  children = _ref.children,
6548
6549
  rest = _objectWithoutProperties(_ref, _excluded$3);
6549
6550
  return /*#__PURE__*/React.createElement(BoxWrapper, _extends({
@@ -27577,18 +27578,18 @@ var PlaceholderContentWrapper = function PlaceholderContentWrapper(_ref) {
27577
27578
  return isLink ? /*#__PURE__*/React.createElement(Link, {
27578
27579
  to: destination,
27579
27580
  "data-qa": dataQa,
27580
- disabled: disabled
27581
+ "aria-disabled": disabled
27581
27582
  }, /*#__PURE__*/React.createElement(Box, {
27582
27583
  padding: "0",
27583
27584
  minHeight: "100%",
27584
- extraStyles: "cursor: pointer;"
27585
+ extraStyles: disabled ? "cursor: default;" : "cursor: pointer;"
27585
27586
  }, children)) : /*#__PURE__*/React.createElement(Box, {
27586
27587
  onClick: disabled ? noop : action,
27587
27588
  padding: "0",
27588
27589
  minHeight: "100%",
27589
27590
  dataQa: dataQa,
27590
27591
  "aria-disabled": disabled,
27591
- extraStyles: disabled ? "cursor: default; opacity: 0.7;" : "cursor: pointer; opacity: 1;"
27592
+ extraStyles: disabled ? "cursor: default;" : "cursor: pointer;"
27592
27593
  }, children);
27593
27594
  };
27594
27595
  var Placeholder = function Placeholder(_ref2) {
@@ -27605,6 +27606,7 @@ var Placeholder = function Placeholder(_ref2) {
27605
27606
  dataQa = _ref2.dataQa,
27606
27607
  _ref2$disabled = _ref2.disabled,
27607
27608
  disabled = _ref2$disabled === void 0 ? false : _ref2$disabled;
27609
+ var tintedColor = "".concat(curriedTint$1(0.9, themeValues.color));
27608
27610
  return /*#__PURE__*/React.createElement(PlaceholderContentWrapper, {
27609
27611
  isLink: isLink,
27610
27612
  action: action,
@@ -27618,7 +27620,7 @@ var Placeholder = function Placeholder(_ref2) {
27618
27620
  minHeight: themeValues.height,
27619
27621
  hiddenStyles: !visible,
27620
27622
  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;"),
27621
- hoverStyles: "background-color: ".concat(variant === "large" ? GRECIAN_GREY : curriedTint$1(0.9, themeValues.color), ";")
27623
+ hoverStyles: "background-color: ".concat(variant === "large" ? GRECIAN_GREY : tintedColor, ";")
27622
27624
  }, /*#__PURE__*/React.createElement(Center, {
27623
27625
  maxWidth: "300px"
27624
27626
  }, /*#__PURE__*/React.createElement(Box, {