v2.3.3
This commit is contained in:
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@svar-ui/react-gantt",
|
"name": "@svar-ui/react-gantt",
|
||||||
"version": "2.3.2",
|
"version": "2.3.3",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@svar-ui/react-gantt",
|
"name": "@svar-ui/react-gantt",
|
||||||
"version": "2.3.2",
|
"version": "2.3.3",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@svar-ui/gantt-data-provider": "2.3.0",
|
"@svar-ui/gantt-data-provider": "2.3.0",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@svar-ui/react-gantt",
|
"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.",
|
"description": "A customizable, high-performance React Gantt chart component for building project timelines.",
|
||||||
"productTag": "gantt",
|
"productTag": "gantt",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ const ContextMenu = forwardRef(function ContextMenu(
|
|||||||
at = 'point',
|
at = 'point',
|
||||||
children,
|
children,
|
||||||
onClick,
|
onClick,
|
||||||
|
css
|
||||||
},
|
},
|
||||||
ref,
|
ref,
|
||||||
) {
|
) {
|
||||||
@@ -161,6 +162,7 @@ const ContextMenu = forwardRef(function ContextMenu(
|
|||||||
onClick={menuAction}
|
onClick={menuAction}
|
||||||
at={at}
|
at={at}
|
||||||
ref={menuRef}
|
ref={menuRef}
|
||||||
|
css={css}
|
||||||
/>
|
/>
|
||||||
<span onContextMenu={onContextMenu} data-menu-ignore="true">
|
<span onContextMenu={onContextMenu} data-menu-ignore="true">
|
||||||
{typeof children === 'function' ? children() : children}
|
{typeof children === 'function' ? children() : children}
|
||||||
|
|||||||
@@ -25,7 +25,8 @@ function Fullscreen({ hotkey = null, children }) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
hotkeys.subscribe(v => v.add(hotkey, toggleFullscreen.current));
|
if(hotkey)
|
||||||
|
hotkeys.subscribe(v => v.add(hotkey, toggleFullscreen.current));
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import './Willow.css';
|
|||||||
|
|
||||||
function Willow({ fonts = true, children }) {
|
function Willow({ fonts = true, children }) {
|
||||||
return children ? (
|
return children ? (
|
||||||
<CoreWillow fonts={fonts}>{children()}</CoreWillow>
|
<CoreWillow fonts={fonts}>{children}</CoreWillow>
|
||||||
) : (
|
) : (
|
||||||
<CoreWillow fonts={fonts} />
|
<CoreWillow fonts={fonts} />
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import './WillowDark.css';
|
|||||||
|
|
||||||
export default function WillowDark({ fonts = true, children }) {
|
export default function WillowDark({ fonts = true, children }) {
|
||||||
if (children) {
|
if (children) {
|
||||||
return <WillowDarkCore fonts={fonts}>{children()}</WillowDarkCore>;
|
return <WillowDarkCore fonts={fonts}>{children}</WillowDarkCore>;
|
||||||
} else {
|
} else {
|
||||||
return <WillowDarkCore fonts={fonts} />;
|
return <WillowDarkCore fonts={fonts} />;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user