@brikka/locations 1.0.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.
- package/index.cjs.d.ts +1 -0
- package/index.cjs.js +1979 -0
- package/index.esm.d.ts +1 -0
- package/index.esm.js +1974 -0
- package/package.json +6 -0
- package/src/index.d.ts +2 -0
- package/src/lib/AddLocationButton.d.ts +12 -0
- package/src/lib/SidebarMapsCard.d.ts +9 -0
package/package.json
ADDED
package/src/index.d.ts
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { ButtonBarButtonProps } from "@compill/admin";
|
3
|
+
import { API } from "@compill/api";
|
4
|
+
import { Location } from "@compill/models";
|
5
|
+
export interface NewLocationButtonProps extends ButtonBarButtonProps {
|
6
|
+
api: API<Location>;
|
7
|
+
lat: number;
|
8
|
+
lng: number;
|
9
|
+
mapZoom: number;
|
10
|
+
locationTypeLabel?: string;
|
11
|
+
}
|
12
|
+
export declare function NewLocationButton({ api, lat, lng, mapZoom, locationTypeLabel, ...props }: NewLocationButtonProps): JSX.Element;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { Location } from "@compill/models";
|
3
|
+
interface SidebarMapsCardProps {
|
4
|
+
location?: Location;
|
5
|
+
}
|
6
|
+
export declare function SidebarMapsCard({ title, location }: {
|
7
|
+
title?: string;
|
8
|
+
} & SidebarMapsCardProps): JSX.Element | null;
|
9
|
+
export {};
|