odaptos_design_system 1.4.24 → 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 +5 -4
- 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 +5 -4
- package/dist/odaptos_design_system.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/Tag/Tag.modules.scss +0 -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;
|
|
@@ -4709,7 +4709,7 @@ const Button = ({
|
|
|
4709
4709
|
}), iconRight && iconRight);
|
|
4710
4710
|
};
|
|
4711
4711
|
|
|
4712
|
-
var css_248z$9 = ".Tag-modules_tag__H7-4Y{align-items:center;border-radius:.25rem;display:flex;gap:.25rem;
|
|
4712
|
+
var css_248z$9 = ".Tag-modules_tag__H7-4Y{align-items:center;border-radius:.25rem;display:flex;gap:.25rem;padding:0 .75rem;width:-moz-fit-content;width:fit-content}.Tag-modules_tag_idle__Fq6m8{background:var(--color-neutral-dark-shades-600,#717376)}.Tag-modules_tag_idle__Fq6m8 svg{stroke:#fff!important;fill:#fff!important}.Tag-modules_tag_info__aMPRZ{background:var(--color-primary-100,#e5f1ff)}.Tag-modules_tag_info__aMPRZ svg{stroke:#004799!important;fill:#004799!important}.Tag-modules_tag_success__2LvMD{background:var(--color-extended-green-100,#e8f5ea)}.Tag-modules_tag_success__2LvMD svg{stroke:#3c743d!important;fill:#3c743d!important}.Tag-modules_tag_warning__AIt1v{background:var(--color-extended-yellow-100,#fff3d6)}.Tag-modules_tag_warning__AIt1v svg{stroke:#6e4f00!important;fill:#6e4f00!important}.Tag-modules_tag_critical__LQoYS{background:var(--color-extended-red-100,#fddbdb)}.Tag-modules_tag_critical__LQoYS svg{stroke:#98312e!important;fill:#98312e!important}.Tag-modules_tag_sm__6woOo svg{height:.75rem;width:.75rem}.Tag-modules_tag_base__NFJol svg{height:1rem;width:1rem}";
|
|
4713
4713
|
var styles$9 = {"tag":"Tag-modules_tag__H7-4Y","tag_idle":"Tag-modules_tag_idle__Fq6m8","tag_info":"Tag-modules_tag_info__aMPRZ","tag_success":"Tag-modules_tag_success__2LvMD","tag_warning":"Tag-modules_tag_warning__AIt1v","tag_critical":"Tag-modules_tag_critical__LQoYS","tag_sm":"Tag-modules_tag_sm__6woOo","tag_base":"Tag-modules_tag_base__NFJol"};
|
|
4714
4714
|
styleInject(css_248z$9);
|
|
4715
4715
|
|
|
@@ -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}";
|