utopia-ui 2.0.6 → 3.0.0-alpha.1

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,11 @@
1
+ import * as React from 'react';
2
+ import { LatLng } from 'leaflet';
3
+ import { LayerProps, Item, ItemsApi } from '../../../types';
4
+ export interface ItemFormPopupProps {
5
+ position: LatLng;
6
+ layer: LayerProps;
7
+ item?: Item;
8
+ api?: ItemsApi<any>;
9
+ setItemFormPopup: React.Dispatch<React.SetStateAction<any>>;
10
+ }
11
+ export default function ItemFormPopup(props: ItemFormPopupProps): JSX.Element;
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import { Item, Tag } from '../../../types';
3
+ import { ItemFormPopupProps } from './ItemFormPopup';
4
+ export interface ItemViewPopupProps {
5
+ item: Item;
6
+ tags: Tag[];
7
+ setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
8
+ }
9
+ declare const ItemViewPopup: (props: ItemViewPopupProps) => JSX.Element;
10
+ export { ItemViewPopup };
@@ -5,7 +5,7 @@ import "./UtopiaMap.css";
5
5
  export interface MapEventListenerProps {
6
6
  selectMode: LayerProps | null;
7
7
  setSelectMode: React.Dispatch<any>;
8
- setNewItemPopup: React.Dispatch<React.SetStateAction<any>>;
8
+ setItemFormPopup: React.Dispatch<React.SetStateAction<any>>;
9
9
  }
10
10
  /** This is a description of the foo function. */
11
11
  declare function UtopiaMap({ height, width, center, zoom, children }: UtopiaMapProps): JSX.Element;
@@ -4,7 +4,7 @@ declare type UseTagManagerResult = ReturnType<typeof useTagsManager>;
4
4
  declare function useTagsManager(initialTags: Tag[]): {
5
5
  tags: Tag[];
6
6
  addTag: (tag: Tag) => void;
7
- removeTag: (id: number) => void;
7
+ removeTag: (id: string) => void;
8
8
  };
9
9
  export declare const TagsProvider: React.FunctionComponent<{
10
10
  initialTags: Tag[];
@@ -0,0 +1,2 @@
1
+ import { Tag } from "../types";
2
+ export declare function heighlightTags(message: string, tags: Tag[]): string;