@monolith-forensics/monolith-ui 1.3.104 → 1.3.108
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.
|
@@ -91,6 +91,18 @@ const TextAreaInput = forwardRef((props, ref) => {
|
|
|
91
91
|
// Trigger SelectBox to open using the new enhanced props
|
|
92
92
|
setTriggerSelectBoxOpen(true);
|
|
93
93
|
}
|
|
94
|
+
else if (item.value === "clear") {
|
|
95
|
+
// Built-in clear functionality
|
|
96
|
+
const textarea = textareaRef.current;
|
|
97
|
+
if (textarea) {
|
|
98
|
+
textarea.value = "";
|
|
99
|
+
textarea.focus();
|
|
100
|
+
// Trigger change event so controlled components update
|
|
101
|
+
const event = new Event("input", { bubbles: true });
|
|
102
|
+
textarea.dispatchEvent(event);
|
|
103
|
+
}
|
|
104
|
+
onActionMenuSelect === null || onActionMenuSelect === void 0 ? void 0 : onActionMenuSelect(item);
|
|
105
|
+
}
|
|
94
106
|
else {
|
|
95
107
|
onActionMenuSelect === null || onActionMenuSelect === void 0 ? void 0 : onActionMenuSelect(item);
|
|
96
108
|
}
|
|
@@ -7,8 +7,6 @@ interface TooltipProps {
|
|
|
7
7
|
sideOffset?: number;
|
|
8
8
|
align?: "start" | "center" | "end";
|
|
9
9
|
delayDuration?: number;
|
|
10
|
-
/** When true, the tooltip stays open while hovering over its content */
|
|
11
|
-
hoverableContent?: boolean;
|
|
12
10
|
}
|
|
13
|
-
declare const Tooltip: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<TooltipProps, never>> & string & Omit<({ className, children, content, side, sideOffset, align, delayDuration,
|
|
11
|
+
declare const Tooltip: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<TooltipProps, never>> & string & Omit<({ className, children, content, side, sideOffset, align, delayDuration, }: TooltipProps) => string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined, keyof import("react").Component<any, {}, any>>;
|
|
14
12
|
export default Tooltip;
|
package/dist/Tooltip/Tooltip.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import styled from "styled-components";
|
|
3
3
|
import * as RadixTooltip from "@radix-ui/react-tooltip";
|
|
4
|
-
const Tooltip = styled(({ className, children, content, side = "right", sideOffset = 15, align = "start", delayDuration =
|
|
4
|
+
const Tooltip = styled(({ className, children, content, side = "right", sideOffset = 15, align = "start", delayDuration = 800, }) => {
|
|
5
5
|
if (!content)
|
|
6
6
|
return children;
|
|
7
|
-
return (_jsx(RadixTooltip.Provider, { delayDuration: delayDuration, skipDelayDuration: 0, disableHoverableContent:
|
|
7
|
+
return (_jsx(RadixTooltip.Provider, { delayDuration: delayDuration || 800, skipDelayDuration: 0, disableHoverableContent: true, children: _jsxs(RadixTooltip.Root, { children: [_jsx(RadixTooltip.Trigger, { asChild: true, children: children }), _jsx(RadixTooltip.Portal, { children: _jsx(RadixTooltip.Content, { className: className, side: side || "right", sideOffset: sideOffset || 15, align: align || "start", onClick: (e) => e.stopPropagation(), children: content }) })] }) }));
|
|
8
8
|
}) `
|
|
9
|
-
pointer-events:
|
|
9
|
+
pointer-events: none;
|
|
10
10
|
z-index: 999999;
|
|
11
11
|
background-color: ${({ theme }) => theme.palette.background.default};
|
|
12
12
|
padding: 15px;
|