@conboai/storybook.components 0.5.87 → 0.5.88

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.
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+
3
+ declare const EditablePoint: ({ startTime, endTime, direction, handleDirectionChange, handleTimeChange, close }: any) => React.JSX.Element;
4
+ export default EditablePoint;
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ import { Point, PointDirection } from './PointFinder';
3
+
4
+ interface IMapPoint {
5
+ point: Point;
6
+ onPointClick: (id: string) => void;
7
+ handleDirectionChange: (id: string, direction: PointDirection) => void;
8
+ handleTimeChange: (id: string, property: "startTime" | "endTime", value: number) => void;
9
+ }
10
+ declare const MapPoint: ({ point, onPointClick, handleDirectionChange, handleTimeChange }: IMapPoint) => React.JSX.Element;
11
+ export default MapPoint;
@@ -1,8 +1,22 @@
1
1
  import { default as React } from 'react';
2
2
 
3
- type Point = {
3
+ export declare enum PointVariant {
4
+ current = "current",
5
+ disabled = "disabled",
6
+ default = "default"
7
+ }
8
+ export declare enum PointDirection {
9
+ plus = "plus",
10
+ minus = "minus"
11
+ }
12
+ export type Point = {
4
13
  id: string;
5
- number: number;
14
+ circleText?: string;
15
+ popupText: string;
16
+ startTime: number;
17
+ endTime: number;
18
+ variant: PointVariant;
19
+ direction: PointDirection;
6
20
  coords: {
7
21
  lon: number;
8
22
  lat: number;
@@ -15,6 +29,10 @@ type Connection = {
15
29
  interface IPointFinder {
16
30
  points: Point[];
17
31
  connections?: Connection[];
32
+ editable?: boolean;
33
+ onPointClick: (id: string) => void;
34
+ handleDirectionChange: (id: string, value: PointDirection) => void;
35
+ handleTimeChange: (id: string, property: "startTime" | "endTime", value: number) => void;
18
36
  }
19
- export default function App({ points, connections }: IPointFinder): React.JSX.Element | null;
37
+ export default function App({ points, connections, editable, onPointClick, handleDirectionChange, handleTimeChange }: IPointFinder): React.JSX.Element | null;
20
38
  export {};