@thecb/components 10.6.2-beta.6 → 10.6.2-beta.7
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 +10 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +10 -5
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/layouts/Box.js +2 -0
- package/src/components/atoms/layouts/Box.styled.js +3 -1
- package/src/components/atoms/placeholder/Placeholder.js +4 -1
- package/src/components/molecules/editable-list/EditableList.stories.js +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -6427,7 +6427,7 @@ var Text = function Text(_ref) {
|
|
|
6427
6427
|
};
|
|
6428
6428
|
var Text$1 = themeComponent(Text, "Text", fallbackValues, "p");
|
|
6429
6429
|
|
|
6430
|
-
var _excluded$2 = ["activeStyles", "hoverStyles", "disabledStyles", "extraStyles", "borderSize", "borderColor", "borderWidthOverride", "borderRadius", "textAlign", "boxShadow", "minHeight", "minWidth", "maxWidth", "padding", "hiddenStyles", "ariaControls", "ariaLabel"];
|
|
6430
|
+
var _excluded$2 = ["activeStyles", "focusStyles", "hoverStyles", "disabledStyles", "extraStyles", "borderSize", "borderColor", "borderWidthOverride", "borderRadius", "textAlign", "boxShadow", "minHeight", "minWidth", "maxWidth", "padding", "hiddenStyles", "ariaControls", "ariaLabel"];
|
|
6431
6431
|
/*
|
|
6432
6432
|
The child span selector on hover styles targets the text inside of buttons when a button is hovered,
|
|
6433
6433
|
as long as the box wrapper has an "as" prop equal to "button"
|
|
@@ -6439,6 +6439,7 @@ var _excluded$2 = ["activeStyles", "hoverStyles", "disabledStyles", "extraStyles
|
|
|
6439
6439
|
/* eslint-disable no-unused-vars */
|
|
6440
6440
|
var BoxWrapper = styled__default(function (_ref) {
|
|
6441
6441
|
var activeStyles = _ref.activeStyles,
|
|
6442
|
+
focusStyles = _ref.focusStyles,
|
|
6442
6443
|
hoverStyles = _ref.hoverStyles,
|
|
6443
6444
|
disabledStyles = _ref.disabledStyles,
|
|
6444
6445
|
extraStyles = _ref.extraStyles,
|
|
@@ -6507,8 +6508,9 @@ var BoxWrapper = styled__default(function (_ref) {
|
|
|
6507
6508
|
disabled = _ref14.disabled;
|
|
6508
6509
|
return styled.css(["", " ", ""], hoverStyles, as === "button" && !disabled ? "> * > span {\n ".concat(hoverStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
|
|
6509
6510
|
}, function (_ref15) {
|
|
6510
|
-
var
|
|
6511
|
-
|
|
6511
|
+
var focusStyles = _ref15.focusStyles,
|
|
6512
|
+
as = _ref15.as;
|
|
6513
|
+
return styled.css(["", " outline:3px solid ", ";outline-offset:2px;", ""], focusStyles, ROYAL_BLUE, as === "button" && "\n > * > span {\n border: none;\n outline: none;\n box-shadow: none;\n }");
|
|
6512
6514
|
}, function (_ref16) {
|
|
6513
6515
|
var activeStyles = _ref16.activeStyles,
|
|
6514
6516
|
as = _ref16.as;
|
|
@@ -6533,7 +6535,7 @@ var BoxWrapper = styled__default(function (_ref) {
|
|
|
6533
6535
|
});
|
|
6534
6536
|
/* eslint-enable no-unused-vars */
|
|
6535
6537
|
|
|
6536
|
-
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"];
|
|
6538
|
+
var _excluded$3 = ["autocompleteValue", "padding", "borderSize", "borderColor", "borderRadius", "boxShadow", "background", "color", "minHeight", "width", "minWidth", "maxWidth", "borderWidthOverride", "border", "textAlign", "hoverStyles", "activeStyles", "disabledStyles", "focusStyles", "variant", "as", "onClick", "onKeyDown", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur", "onTouchEnd", "theme", "hiddenStyles", "extraStyles", "srOnly", "dataQa", "children"];
|
|
6537
6539
|
|
|
6538
6540
|
/*
|
|
6539
6541
|
Box component to create generic boxes
|
|
@@ -6566,6 +6568,7 @@ var Box = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
6566
6568
|
hoverStyles = _ref.hoverStyles,
|
|
6567
6569
|
activeStyles = _ref.activeStyles,
|
|
6568
6570
|
disabledStyles = _ref.disabledStyles,
|
|
6571
|
+
focusStyles = _ref.focusStyles,
|
|
6569
6572
|
variant = _ref.variant,
|
|
6570
6573
|
as = _ref.as,
|
|
6571
6574
|
onClick = _ref.onClick,
|
|
@@ -6601,6 +6604,7 @@ var Box = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
6601
6604
|
hoverStyles: hoverStyles,
|
|
6602
6605
|
activeStyles: activeStyles,
|
|
6603
6606
|
disabledStyles: disabledStyles,
|
|
6607
|
+
focusStyles: focusStyles,
|
|
6604
6608
|
variant: variant,
|
|
6605
6609
|
as: as,
|
|
6606
6610
|
onClick: onClick,
|
|
@@ -27635,7 +27639,8 @@ var Placeholder = function Placeholder(_ref4) {
|
|
|
27635
27639
|
hiddenStyles: !visible,
|
|
27636
27640
|
extraStyles: "\n display: flex;\n justify-content: center;\n align-items:center;\n background-image: repeating-linear-gradient(0deg, ".concat(borderColor, ", ").concat(borderColor, " 2px, transparent 2px, transparent 4px, ").concat(borderColor, " 4px), repeating-linear-gradient(90deg, ").concat(borderColor, ", ").concat(borderColor, " 2px, transparent 2px, transparent 4px, ").concat(borderColor, " 4px), repeating-linear-gradient(180deg, ").concat(borderColor, ", ").concat(borderColor, " 2px, transparent 2px, transparent 4px, ").concat(borderColor, " 4px), repeating-linear-gradient(270deg, ").concat(borderColor, ", ").concat(borderColor, " 2px, transparent 2px, transparent 4px, ").concat(borderColor, " 4px);\n background-size: 2px 100%, 100% 2px, 2px 100% , 100% 2px;\n background-position: 0 0, 0 0, 100% 0, 0 100%;\n background-repeat: no-repeat;\n "),
|
|
27637
27641
|
hoverStyles: "background-color: ".concat(isDisabled ? TRANSPARENT : curriedTint$1(0.9, themeValues.color), ";"),
|
|
27638
|
-
|
|
27642
|
+
focusStyles: "background-color: ".concat(isDisabled ? TRANSPARENT : curriedTint$1(0.9, themeValues.color), ";"),
|
|
27643
|
+
activeStyles: "background-color: ".concat(isDisabled ? TRANSPARENT : curriedTint$1(0.8, themeValues.color), "; ").concat(!isDisabled && "background-image:none; border: 2px solid ".concat(borderColor, ";}"))
|
|
27639
27644
|
}, /*#__PURE__*/React__default.createElement(Center, {
|
|
27640
27645
|
maxWidth: "300px"
|
|
27641
27646
|
}, /*#__PURE__*/React__default.createElement(Box, {
|