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.
Files changed (33) hide show
  1. package/dist/components/Timelane.d.ts +15 -0
  2. package/dist/components/TimelaneAside.d.ts +13 -0
  3. package/dist/components/TimelaneBackground.d.ts +5 -0
  4. package/dist/components/TimelaneBody.d.ts +6 -0
  5. package/dist/components/{TimelineBody.d.ts → TimelaneBodyInner.d.ts} +5 -2
  6. package/dist/components/{TimelineHeader/TimelineHeader.d.ts → TimelaneHeader/TimelaneHeader.d.ts} +2 -2
  7. package/dist/components/{TimelineHeader → TimelaneHeader}/index.d.ts +1 -1
  8. package/dist/components/TimelaneSelectionLayer.d.ts +6 -0
  9. package/dist/components/TimelaneSettingsContext.d.ts +7 -0
  10. package/dist/components/TimelaneSettingsProvider.d.ts +7 -0
  11. package/dist/components/{TimelineWrapper.d.ts → TimelaneWrapper.d.ts} +5 -2
  12. package/dist/components/core/CoreItem/CoreItemComponent.d.ts +2 -2
  13. package/dist/components/core/CoreSwimlane/CoreSwimlane.d.ts +1 -1
  14. package/dist/components/layout/TimelaneLayout.d.ts +23 -0
  15. package/dist/hooks/useTimelaneContext.d.ts +1 -0
  16. package/dist/index.d.ts +9 -9
  17. package/dist/react-timelane.css +1 -1
  18. package/dist/react-timelane.js +959 -1002
  19. package/dist/types/{TimelineSettings.d.ts → TimelaneSettings.d.ts} +1 -1
  20. package/dist/types/index.d.ts +1 -1
  21. package/package.json +1 -1
  22. package/vite.config.ts +1 -1
  23. package/dist/components/TimelineAside.d.ts +0 -13
  24. package/dist/components/TimelineBackground.d.ts +0 -5
  25. package/dist/components/TimelineSelectionLayer.d.ts +0 -6
  26. package/dist/components/TimelineSettingsContext.d.ts +0 -7
  27. package/dist/components/TimelineSettingsProvider.d.ts +0 -7
  28. package/dist/components/layout/TimelineLayout.d.ts +0 -23
  29. package/dist/hooks/useTimelineContext.d.ts +0 -1
  30. /package/dist/components/{TimelineHeader → TimelaneHeader}/DaysHeader.d.ts +0 -0
  31. /package/dist/components/{TimelineHeader → TimelaneHeader}/MonthsHeader.d.ts +0 -0
  32. /package/dist/components/{TimelineHeader → TimelaneHeader}/WeeksHeader.d.ts +0 -0
  33. /package/dist/components/{TimelineHeader → TimelaneHeader}/renderingUtils.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- export interface TimelineSettings {
1
+ export interface TimelaneSettings {
2
2
  start: Date;
3
3
  end: Date;
4
4
  pixelsPerDay: number;
@@ -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 TimelineSettings } from './TimelineSettings';
15
+ export { type TimelaneSettings } from './TimelaneSettings';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-timelane",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",
package/vite.config.ts CHANGED
@@ -24,7 +24,7 @@ export default defineConfig({
24
24
  // preprocessorOptions: {
25
25
  // scss: {
26
26
  // additionalData: `
27
- // @import "TimelineV3/layout/layout.scss";
27
+ // @import "TimelaneV3/layout/layout.scss";
28
28
  // `,
29
29
  // },
30
30
  // },
@@ -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,5 +0,0 @@
1
- interface TimelineBackgroundProps {
2
- focusedDay?: Date | null;
3
- }
4
- export default function TimelineBackground({ focusedDay, }: TimelineBackgroundProps): import("react/jsx-runtime").JSX.Element;
5
- 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;