@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.cjs.js
CHANGED
|
@@ -6197,7 +6197,7 @@ var Text = function Text(_ref) {
|
|
|
6197
6197
|
|
|
6198
6198
|
var Text$1 = themeComponent(Text, "Text", fallbackValues, "p");
|
|
6199
6199
|
|
|
6200
|
-
var _excluded$2 = ["activeStyles", "hoverStyles", "disabledStyles", "extraStyles", "borderSize", "borderColor", "borderWidthOverride", "borderRadius", "textAlign", "boxShadow", "minHeight", "minWidth", "maxWidth", "padding", "hiddenStyles", "ariaControls", "ariaLabel"
|
|
6200
|
+
var _excluded$2 = ["activeStyles", "hoverStyles", "disabledStyles", "extraStyles", "borderSize", "borderColor", "borderWidthOverride", "borderRadius", "textAlign", "boxShadow", "minHeight", "minWidth", "maxWidth", "padding", "hiddenStyles", "ariaControls", "ariaLabel"];
|
|
6201
6201
|
/*
|
|
6202
6202
|
The child span selector on hover styles targets the text inside of buttons when a button is hovered,
|
|
6203
6203
|
as long as the box wrapper has an "as" prop equal to "button"
|
|
@@ -6226,13 +6226,11 @@ var BoxWrapper = styled__default(function (_ref) {
|
|
|
6226
6226
|
hiddenStyles = _ref.hiddenStyles,
|
|
6227
6227
|
ariaControls = _ref.ariaControls,
|
|
6228
6228
|
ariaLabel = _ref.ariaLabel,
|
|
6229
|
-
ref = _ref.ref,
|
|
6230
6229
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
6231
6230
|
|
|
6232
6231
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
6233
6232
|
"aria-controls": ariaControls,
|
|
6234
|
-
"aria-label": ariaLabel
|
|
6235
|
-
ref: ref
|
|
6233
|
+
"aria-label": ariaLabel
|
|
6236
6234
|
}, props));
|
|
6237
6235
|
}).withConfig({
|
|
6238
6236
|
displayName: "Boxstyled__BoxWrapper",
|
|
@@ -6302,7 +6300,7 @@ var BoxWrapper = styled__default(function (_ref) {
|
|
|
6302
6300
|
});
|
|
6303
6301
|
/* eslint-enable no-unused-vars */
|
|
6304
6302
|
|
|
6305
|
-
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", "
|
|
6303
|
+
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"];
|
|
6306
6304
|
/*
|
|
6307
6305
|
Box component to create generic boxes
|
|
6308
6306
|
Supply padding, border, background, and color values
|
|
@@ -6311,7 +6309,7 @@ var _excluded$3 = ["padding", "borderSize", "borderColor", "borderRadius", "boxS
|
|
|
6311
6309
|
completely off screen (only for users of screen readers)
|
|
6312
6310
|
*/
|
|
6313
6311
|
|
|
6314
|
-
var Box = function
|
|
6312
|
+
var Box = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
6315
6313
|
var _ref$padding = _ref.padding,
|
|
6316
6314
|
padding = _ref$padding === void 0 ? "16px" : _ref$padding,
|
|
6317
6315
|
_ref$borderSize = _ref.borderSize,
|
|
@@ -6347,7 +6345,6 @@ var Box = function Box(_ref) {
|
|
|
6347
6345
|
extraStyles = _ref.extraStyles,
|
|
6348
6346
|
_ref$srOnly = _ref.srOnly,
|
|
6349
6347
|
srOnly = _ref$srOnly === void 0 ? false : _ref$srOnly,
|
|
6350
|
-
ref = _ref.ref,
|
|
6351
6348
|
dataQa = _ref.dataQa,
|
|
6352
6349
|
children = _ref.children,
|
|
6353
6350
|
rest = _objectWithoutProperties(_ref, _excluded$3);
|
|
@@ -6385,7 +6382,7 @@ var Box = function Box(_ref) {
|
|
|
6385
6382
|
onTouchEnd: onTouchEnd,
|
|
6386
6383
|
ref: ref
|
|
6387
6384
|
}, rest), children && safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null)));
|
|
6388
|
-
};
|
|
6385
|
+
});
|
|
6389
6386
|
|
|
6390
6387
|
var CenterWrapper = styled__default.div.withConfig({
|
|
6391
6388
|
displayName: "Centerstyled__CenterWrapper",
|