@thecb/components 6.0.0-beta.27 → 6.0.0-beta.28

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
@@ -6189,7 +6189,7 @@ var Text = function Text(_ref) {
6189
6189
 
6190
6190
  var Text$1 = themeComponent(Text, "Text", fallbackValues, "p");
6191
6191
 
6192
- var _excluded$2 = ["activeStyles", "hoverStyles", "disabledStyles", "extraStyles", "borderSize", "borderColor", "borderWidthOverride", "borderRadius", "textAlign", "boxShadow", "minHeight", "minWidth", "maxWidth", "padding", "hiddenStyles", "ariaControls", "ariaLabel", "ref"];
6192
+ var _excluded$2 = ["activeStyles", "hoverStyles", "disabledStyles", "extraStyles", "borderSize", "borderColor", "borderWidthOverride", "borderRadius", "textAlign", "boxShadow", "minHeight", "minWidth", "maxWidth", "padding", "hiddenStyles", "ariaControls", "ariaLabel"];
6193
6193
  /*
6194
6194
  The child span selector on hover styles targets the text inside of buttons when a button is hovered,
6195
6195
  as long as the box wrapper has an "as" prop equal to "button"
@@ -6218,13 +6218,11 @@ var BoxWrapper = styled(function (_ref) {
6218
6218
  hiddenStyles = _ref.hiddenStyles,
6219
6219
  ariaControls = _ref.ariaControls,
6220
6220
  ariaLabel = _ref.ariaLabel,
6221
- ref = _ref.ref,
6222
6221
  props = _objectWithoutProperties(_ref, _excluded$2);
6223
6222
 
6224
6223
  return /*#__PURE__*/React.createElement("div", _extends({
6225
6224
  "aria-controls": ariaControls,
6226
- "aria-label": ariaLabel,
6227
- ref: ref
6225
+ "aria-label": ariaLabel
6228
6226
  }, props));
6229
6227
  }).withConfig({
6230
6228
  displayName: "Boxstyled__BoxWrapper",
@@ -6294,7 +6292,7 @@ var BoxWrapper = styled(function (_ref) {
6294
6292
  });
6295
6293
  /* eslint-enable no-unused-vars */
6296
6294
 
6297
- var _excluded$3 = ["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", "ref", "dataQa", "children"];
6295
+ var _excluded$3 = ["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"];
6298
6296
  /*
6299
6297
  Box component to create generic boxes
6300
6298
  Supply padding, border, background, and color values
@@ -6303,7 +6301,7 @@ var _excluded$3 = ["padding", "borderSize", "borderColor", "borderRadius", "boxS
6303
6301
  completely off screen (only for users of screen readers)
6304
6302
  */
6305
6303
 
6306
- var Box = function Box(_ref) {
6304
+ var Box = /*#__PURE__*/forwardRef(function (_ref, ref) {
6307
6305
  var _ref$padding = _ref.padding,
6308
6306
  padding = _ref$padding === void 0 ? "16px" : _ref$padding,
6309
6307
  _ref$borderSize = _ref.borderSize,
@@ -6339,7 +6337,6 @@ var Box = function Box(_ref) {
6339
6337
  extraStyles = _ref.extraStyles,
6340
6338
  _ref$srOnly = _ref.srOnly,
6341
6339
  srOnly = _ref$srOnly === void 0 ? false : _ref$srOnly,
6342
- ref = _ref.ref,
6343
6340
  dataQa = _ref.dataQa,
6344
6341
  children = _ref.children,
6345
6342
  rest = _objectWithoutProperties(_ref, _excluded$3);
@@ -6377,7 +6374,7 @@ var Box = function Box(_ref) {
6377
6374
  onTouchEnd: onTouchEnd,
6378
6375
  ref: ref
6379
6376
  }, rest), children && safeChildren(children, /*#__PURE__*/React.createElement(Fragment, null)));
6380
- };
6377
+ });
6381
6378
 
6382
6379
  var CenterWrapper = styled.div.withConfig({
6383
6380
  displayName: "Centerstyled__CenterWrapper",