react-timelane 0.0.1 → 0.0.2
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/components/Timelane.d.ts +15 -0
- package/dist/components/TimelaneAside.d.ts +13 -0
- package/dist/components/TimelaneBackground.d.ts +5 -0
- package/dist/components/TimelaneBody.d.ts +6 -0
- package/dist/components/{TimelineBody.d.ts → TimelaneBodyInner.d.ts} +5 -2
- package/dist/components/{TimelineHeader/TimelineHeader.d.ts → TimelaneHeader/TimelaneHeader.d.ts} +2 -2
- package/dist/components/{TimelineHeader → TimelaneHeader}/index.d.ts +1 -1
- package/dist/components/TimelaneSelectionLayer.d.ts +6 -0
- package/dist/components/TimelaneSettingsContext.d.ts +7 -0
- package/dist/components/TimelaneSettingsProvider.d.ts +7 -0
- package/dist/components/{TimelineWrapper.d.ts → TimelaneWrapper.d.ts} +5 -2
- package/dist/components/core/CoreItem/CoreItemComponent.d.ts +2 -2
- package/dist/components/core/CoreSwimlane/CoreSwimlane.d.ts +1 -1
- package/dist/components/layout/TimelaneLayout.d.ts +23 -0
- package/dist/hooks/useTimelaneContext.d.ts +1 -0
- package/dist/index.d.ts +9 -9
- package/dist/react-timelane.css +1 -1
- package/dist/react-timelane.js +959 -1002
- package/dist/types/{TimelineSettings.d.ts → TimelaneSettings.d.ts} +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
- package/vite.config.ts +1 -1
- package/dist/components/TimelineAside.d.ts +0 -13
- package/dist/components/TimelineBackground.d.ts +0 -5
- package/dist/components/TimelineSelectionLayer.d.ts +0 -6
- package/dist/components/TimelineSettingsContext.d.ts +0 -7
- package/dist/components/TimelineSettingsProvider.d.ts +0 -7
- package/dist/components/layout/TimelineLayout.d.ts +0 -23
- package/dist/hooks/useTimelineContext.d.ts +0 -1
- /package/dist/components/{TimelineHeader → TimelaneHeader}/DaysHeader.d.ts +0 -0
- /package/dist/components/{TimelineHeader → TimelaneHeader}/MonthsHeader.d.ts +0 -0
- /package/dist/components/{TimelineHeader → TimelaneHeader}/WeeksHeader.d.ts +0 -0
- /package/dist/components/{TimelineHeader → TimelaneHeader}/renderingUtils.d.ts +0 -0
package/dist/types/index.d.ts
CHANGED
|
@@ -12,4 +12,4 @@ export { type SwimlaneId } from './SwimlaneId';
|
|
|
12
12
|
export { type SwimlaneT } from './SwimlaneT';
|
|
13
13
|
export { type DateBounds } from './DateBounds';
|
|
14
14
|
export { type OffsetBounds } from './OffsetBounds';
|
|
15
|
-
export { type
|
|
15
|
+
export { type TimelaneSettings } from './TimelaneSettings';
|
package/package.json
CHANGED
package/vite.config.ts
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { MouseEvent, ReactElement } from 'react';
|
|
2
|
-
import { SwimlaneT } from '../types';
|
|
3
|
-
interface TimelineAsideProps {
|
|
4
|
-
swimlanes: SwimlaneT[];
|
|
5
|
-
focusedSwimlane?: SwimlaneT | null;
|
|
6
|
-
setFocusedSwimlane?: (lane: SwimlaneT | null) => void;
|
|
7
|
-
onSwimlaneHeaderClick?: (lane: SwimlaneT, e: MouseEvent) => void;
|
|
8
|
-
onSwimlaneHeaderDoubleClick?: (lane: SwimlaneT, e: MouseEvent) => void;
|
|
9
|
-
onSwimlaneHeaderContextMenu?: (lane: SwimlaneT, e: MouseEvent) => void;
|
|
10
|
-
renderSwimlaneHeader?: (lane: SwimlaneT) => ReactElement;
|
|
11
|
-
}
|
|
12
|
-
export default function TimelineAside({ swimlanes, focusedSwimlane, setFocusedSwimlane, onSwimlaneHeaderClick, onSwimlaneHeaderDoubleClick, onSwimlaneHeaderContextMenu, renderSwimlaneHeader, }: TimelineAsideProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
interface TimelineSelectionLayerProps {
|
|
3
|
-
onSelect: (selection: number[]) => void;
|
|
4
|
-
}
|
|
5
|
-
export declare function TimelineSelectionLayer({ children, onSelect, }: PropsWithChildren<TimelineSelectionLayerProps>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import { TimelineSettings } from '../types/TimelineSettings';
|
|
3
|
-
export interface TimelineContextOuter {
|
|
4
|
-
settings: TimelineSettings;
|
|
5
|
-
setSettings: Dispatch<SetStateAction<TimelineSettings>>;
|
|
6
|
-
}
|
|
7
|
-
export declare const TimelineSettingsContext: import('react').Context<TimelineContextOuter>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { TimelineSettings } from '../types/TimelineSettings';
|
|
3
|
-
interface TimelineSettingsProviderProps {
|
|
4
|
-
settings: TimelineSettings;
|
|
5
|
-
}
|
|
6
|
-
export declare const TimelineSettingsProvider: ({ settings: _settings, children, }: PropsWithChildren<TimelineSettingsProviderProps>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
declare function TimelineLayout({ children }: PropsWithChildren<{}>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
declare namespace TimelineLayout {
|
|
4
|
-
var Header: typeof TimelineLayoutHeader;
|
|
5
|
-
var Body: typeof TimelineLayoutBody;
|
|
6
|
-
var Background: typeof TimelineLayoutBackground;
|
|
7
|
-
var Footer: typeof TimelineLayoutFooter;
|
|
8
|
-
var Aside: typeof TimelineLayoutAside;
|
|
9
|
-
var Corner: typeof TimelineLayoutCorner;
|
|
10
|
-
}
|
|
11
|
-
declare function TimelineLayoutHeader({ children }: PropsWithChildren<{}>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
declare function TimelineLayoutBackground({ children }: PropsWithChildren<{}>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
declare function TimelineLayoutBody({ children }: PropsWithChildren<{}>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
declare function TimelineLayoutFooter({ children }: PropsWithChildren<{}>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
interface TimelineLayoutAsideProps {
|
|
16
|
-
side?: "left" | "right";
|
|
17
|
-
}
|
|
18
|
-
declare function TimelineLayoutAside({ side, children, }: PropsWithChildren<TimelineLayoutAsideProps>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
interface TimelineLayoutCornerProps {
|
|
20
|
-
corner?: "top left" | "top right" | "bottom left" | "bottom right";
|
|
21
|
-
}
|
|
22
|
-
declare function TimelineLayoutCorner({ corner, children, }: PropsWithChildren<TimelineLayoutCornerProps>): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
export default TimelineLayout;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useTimelineContext: () => import('../components/TimelineSettingsContext').TimelineContextOuter;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|