@thecb/components 11.10.1-beta.0 → 11.10.1-beta.1
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
|
@@ -51466,6 +51466,8 @@ var fallbackValues$12 = {
|
|
|
51466
51466
|
var Tooltip = function Tooltip(_ref) {
|
|
51467
51467
|
var tooltipID = _ref.tooltipID,
|
|
51468
51468
|
children = _ref.children,
|
|
51469
|
+
_ref$hasCustomTrigger = _ref.hasCustomTrigger,
|
|
51470
|
+
hasCustomTrigger = _ref$hasCustomTrigger === void 0 ? false : _ref$hasCustomTrigger,
|
|
51469
51471
|
_ref$triggerText = _ref.triggerText,
|
|
51470
51472
|
triggerText = _ref$triggerText === void 0 ? "" : _ref$triggerText,
|
|
51471
51473
|
_ref$containerExtraSt = _ref.containerExtraStyles,
|
|
@@ -51474,7 +51476,6 @@ var Tooltip = function Tooltip(_ref) {
|
|
|
51474
51476
|
triggerButtonVariant = _ref$triggerButtonVar === void 0 ? "smallGhost" : _ref$triggerButtonVar,
|
|
51475
51477
|
_ref$content = _ref.content,
|
|
51476
51478
|
content = _ref$content === void 0 ? "" : _ref$content,
|
|
51477
|
-
_ref$contentBackgroun = _ref.contentBackgroundColor,
|
|
51478
51479
|
_ref$contentExtraStyl = _ref.contentExtraStyles,
|
|
51479
51480
|
contentExtraStyles = _ref$contentExtraStyl === void 0 ? "" : _ref$contentExtraStyl,
|
|
51480
51481
|
_ref$minWidth = _ref.minWidth,
|
|
@@ -51544,7 +51545,7 @@ var Tooltip = function Tooltip(_ref) {
|
|
|
51544
51545
|
};
|
|
51545
51546
|
}, []);
|
|
51546
51547
|
var renderTrigger = function renderTrigger() {
|
|
51547
|
-
if (children) {
|
|
51548
|
+
if (hasCustomTrigger && children) {
|
|
51548
51549
|
return /*#__PURE__*/React__default.cloneElement(React__default.Children.only(children), {
|
|
51549
51550
|
"aria-describedby": tooltipID,
|
|
51550
51551
|
onFocus: function onFocus() {
|
|
@@ -51572,7 +51573,7 @@ var Tooltip = function Tooltip(_ref) {
|
|
|
51572
51573
|
},
|
|
51573
51574
|
"data-qa": "tooltip-trigger-".concat(tooltipID),
|
|
51574
51575
|
text: triggerText,
|
|
51575
|
-
extraStyles: "\n color: ".concat(themeValues.linkColor, ";\n &:hover { color: ").concat(themeValues.hoverColor, "; text-decoration: none;}\n &:active, &:focus { color: ").concat(themeValues.activeColor, ";
|
|
51576
|
+
extraStyles: "\n color: ".concat(themeValues.linkColor, ";\n &:hover { color: ").concat(themeValues.hoverColor, "; text-decoration: none;}\n &:active, &:focus { color: ").concat(themeValues.activeColor, ";text-decoration: none;}\n button, span, &:hover span { text-decoration: none; }\n ")
|
|
51576
51577
|
});
|
|
51577
51578
|
};
|
|
51578
51579
|
return /*#__PURE__*/React__default.createElement(Box, {
|