@paubox/ui 0.8.0 → 0.8.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/index.esm.js +10 -5
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -32302,7 +32302,8 @@ function _templateObject() {
|
|
|
32302
32302
|
}
|
|
32303
32303
|
function _templateObject1() {
|
|
32304
32304
|
var data = _tagged_template_literal([
|
|
32305
|
-
"\n position: relative;\n display: inline-block;\n overflow:
|
|
32305
|
+
"\n position: relative;\n display: inline-block;\n overflow: ",
|
|
32306
|
+
";\n width: 100%;\n max-width: max-content;\n height: fit-content;\n cursor: help;\n"
|
|
32306
32307
|
]);
|
|
32307
32308
|
_templateObject1 = function _templateObject() {
|
|
32308
32309
|
return data;
|
|
@@ -32324,12 +32325,15 @@ var TooltipWrapper = styled.div(_templateObject(), neutral900, $paragraph300Regu
|
|
|
32324
32325
|
return hover ? 'block' : 'none';
|
|
32325
32326
|
}, function(param) {
|
|
32326
32327
|
var size = param.size;
|
|
32327
|
-
return size === 'small' ? 'min-content' : '
|
|
32328
|
+
return size === 'small' ? 'min-content' : 'max-content';
|
|
32328
32329
|
}, function(param) {
|
|
32329
32330
|
var _param_x = param.x, x = _param_x === void 0 ? 'bottom' : _param_x, _param_y = param.y, y = _param_y === void 0 ? 'left' : _param_y;
|
|
32330
32331
|
return "\n margin-right: ".concat(x === 'left' ? '100%' : 'auto', ";\n margin-left: ").concat(x === 'right' ? '100%' : 'auto', ";\n z-index: 50;\n top: ").concat(y === 'bottom' ? '150%' : y === 'center' ? '0rem' : 'auto', ";\n bottom: ").concat(y === 'top' ? '150%' : y === 'center' ? '0rem' : 'auto', ";\n left: ").concat(y === 'center' ? x === 'right' ? '1rem' : 'auto' : x === 'right' ? '-1.5rem' : x === 'center' ? '0' : 'auto', ";\n right: ").concat(y === 'center' ? x === 'left' ? '1rem' : 'auto' : x === 'left' ? '-1.5rem' : x === 'center' ? '0' : 'auto', ";\n ");
|
|
32331
32332
|
});
|
|
32332
|
-
var TooltipContainer = styled.div(_templateObject1())
|
|
32333
|
+
var TooltipContainer = styled.div(_templateObject1(), function(param) {
|
|
32334
|
+
var hover = param.hover;
|
|
32335
|
+
return hover ? 'visible' : 'hidden';
|
|
32336
|
+
});
|
|
32333
32337
|
var Triangle = function(param) {
|
|
32334
32338
|
var className = param.className;
|
|
32335
32339
|
return /*#__PURE__*/ jsx("svg", {
|
|
@@ -32362,10 +32366,11 @@ var Tooltip = function(_param) {
|
|
|
32362
32366
|
setHover(false);
|
|
32363
32367
|
};
|
|
32364
32368
|
return /*#__PURE__*/ jsxs(TooltipContainer, {
|
|
32369
|
+
onMouseEnter: handleMouseEnter,
|
|
32370
|
+
onMouseLeave: handleMouseLeave,
|
|
32371
|
+
hover: hover,
|
|
32365
32372
|
children: [
|
|
32366
32373
|
/*#__PURE__*/ jsx("div", {
|
|
32367
|
-
onMouseEnter: handleMouseEnter,
|
|
32368
|
-
onMouseLeave: handleMouseLeave,
|
|
32369
32374
|
children: children
|
|
32370
32375
|
}),
|
|
32371
32376
|
/*#__PURE__*/ jsxs(TooltipWrapper, _object_spread_props(_object_spread({}, rest), {
|