This commit is contained in:
Marta Kowalska
2025-10-28 09:56:45 +00:00
parent 41cf34bb8f
commit 934520a631
6 changed files with 9 additions and 6 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "@svar-ui/react-gantt",
"version": "2.3.2",
"version": "2.3.3",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@svar-ui/react-gantt",
"version": "2.3.2",
"version": "2.3.3",
"license": "GPL-3.0",
"dependencies": {
"@svar-ui/gantt-data-provider": "2.3.0",

View File

@@ -1,6 +1,6 @@
{
"name": "@svar-ui/react-gantt",
"version": "2.3.2",
"version": "2.3.3",
"description": "A customizable, high-performance React Gantt chart component for building project timelines.",
"productTag": "gantt",
"type": "module",

View File

@@ -29,6 +29,7 @@ const ContextMenu = forwardRef(function ContextMenu(
at = 'point',
children,
onClick,
css
},
ref,
) {
@@ -161,6 +162,7 @@ const ContextMenu = forwardRef(function ContextMenu(
onClick={menuAction}
at={at}
ref={menuRef}
css={css}
/>
<span onContextMenu={onContextMenu} data-menu-ignore="true">
{typeof children === 'function' ? children() : children}

View File

@@ -25,6 +25,7 @@ function Fullscreen({ hotkey = null, children }) {
});
useEffect(() => {
if(hotkey)
hotkeys.subscribe(v => v.add(hotkey, toggleFullscreen.current));
}, []);

View File

@@ -3,7 +3,7 @@ import './Willow.css';
function Willow({ fonts = true, children }) {
return children ? (
<CoreWillow fonts={fonts}>{children()}</CoreWillow>
<CoreWillow fonts={fonts}>{children}</CoreWillow>
) : (
<CoreWillow fonts={fonts} />
);

View File

@@ -3,7 +3,7 @@ import './WillowDark.css';
export default function WillowDark({ fonts = true, children }) {
if (children) {
return <WillowDarkCore fonts={fonts}>{children()}</WillowDarkCore>;
return <WillowDarkCore fonts={fonts}>{children}</WillowDarkCore>;
} else {
return <WillowDarkCore fonts={fonts} />;
}