odaptos_design_system 1.4.25 → 1.4.26
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/Tooltip/Tooltip.d.ts +1 -1
- package/dist/odaptos_design_system.cjs.development.js +4 -3
- package/dist/odaptos_design_system.cjs.development.js.map +1 -1
- package/dist/odaptos_design_system.cjs.production.min.js +1 -1
- package/dist/odaptos_design_system.cjs.production.min.js.map +1 -1
- package/dist/odaptos_design_system.esm.js +4 -3
- package/dist/odaptos_design_system.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/Tooltip/Tooltip.tsx +5 -4
|
@@ -19,7 +19,7 @@ interface TooltipProps {
|
|
|
19
19
|
buttonTwoOnClick?: () => void;
|
|
20
20
|
arrow?: boolean;
|
|
21
21
|
followCursor?: boolean;
|
|
22
|
-
shouldBeOpen?:
|
|
22
|
+
shouldBeOpen?: undefined | false;
|
|
23
23
|
children: JSX.Element;
|
|
24
24
|
}
|
|
25
25
|
export declare const Tooltip: ({ placement, onOpen, onClose, title, closeButton, tooltipDescription, customContent, buttonOneText, buttonTwoText, buttonOneVariant, buttonTwoVariant, buttonOneIconLeft, buttonTwoIconLeft, buttonOneIconRight, buttonTwoIconRight, buttonOneOnClick, buttonTwoOnClick, arrow, followCursor, shouldBeOpen, children, }: TooltipProps) => JSX.Element;
|
|
@@ -5527,7 +5527,7 @@ const Tooltip = ({
|
|
|
5527
5527
|
buttonTwoOnClick,
|
|
5528
5528
|
arrow,
|
|
5529
5529
|
followCursor,
|
|
5530
|
-
shouldBeOpen =
|
|
5530
|
+
shouldBeOpen = undefined,
|
|
5531
5531
|
children
|
|
5532
5532
|
}) => {
|
|
5533
5533
|
const [open, setOpen] = React.useState(false);
|
|
@@ -5539,7 +5539,7 @@ const Tooltip = ({
|
|
|
5539
5539
|
setOpen(true);
|
|
5540
5540
|
onOpen && onOpen();
|
|
5541
5541
|
};
|
|
5542
|
-
if (shouldBeOpen) return /*#__PURE__*/React__default.createElement(StyledTooltip, {
|
|
5542
|
+
if (shouldBeOpen === undefined) return /*#__PURE__*/React__default.createElement(StyledTooltip, {
|
|
5543
5543
|
open: open,
|
|
5544
5544
|
placement: placement,
|
|
5545
5545
|
onClose: handleClose,
|
|
@@ -5575,7 +5575,8 @@ const Tooltip = ({
|
|
|
5575
5575
|
}),
|
|
5576
5576
|
arrow: arrow,
|
|
5577
5577
|
followCursor: followCursor
|
|
5578
|
-
}, children);
|
|
5578
|
+
}, children);
|
|
5579
|
+
if (shouldBeOpen === false) return children;else return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
|
|
5579
5580
|
};
|
|
5580
5581
|
|
|
5581
5582
|
var css_248z$m = ".header-modules_table_header__tWpCj{align-items:center;align-self:stretch;background:var(--color-neutral-background,#f9fafc);border:1px solid var(--color-neutral-clear-shades-300,#d5d5d6);border-radius:.375rem .375rem 0 0;display:flex;height:3.5rem;padding:0 .5rem}.header-modules_table_header__tWpCj .header-modules_header_cell__3OmZ3{align-items:center;display:flex;flex-shrink:0;gap:.75rem;padding:.25rem .5rem}.header-modules_table_header__tWpCj .header-modules_header_cell__3OmZ3 svg{fill:#000;height:.75rem;width:.75rem}";
|