utopia-ui 3.0.90 → 3.0.92
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/index.cjs +812 -784
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +61 -109
- package/dist/index.esm.js +812 -784
- package/dist/index.esm.js.map +1 -1
- package/dist/types/src/Components/Map/Layer.d.ts +1 -1
- package/dist/types/src/Components/Map/LayerContext.d.ts +2 -1
- package/dist/types/src/Components/Map/Subcomponents/ItemFormPopup.d.ts +5 -2
- package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +1 -2
- package/dist/types/src/Components/Map/Subcomponents/ItemViewPopup.d.ts +0 -2
- package/dist/types/src/Components/Map/hooks/useSelectPosition.d.ts +2 -2
- package/dist/types/src/Components/Map/index.d.ts +0 -9
- package/dist/types/src/index.d.ts +1 -0
- package/package.json +1 -1
@@ -7,4 +7,4 @@ export type { Popup } from 'leaflet';
|
|
7
7
|
/**
|
8
8
|
* @category Map
|
9
9
|
*/
|
10
|
-
export declare const Layer: ({ data, children, name, menuIcon, menuText, menuColor, markerIcon, markerShape, markerDefaultColor, markerDefaultColor2, api, itemType, userProfileLayer, customEditLink, customEditParameter, public_edit_items, listed,
|
10
|
+
export declare const Layer: ({ data, children, name, menuIcon, menuText, menuColor, markerIcon, markerShape, markerDefaultColor, markerDefaultColor2, api, itemType, userProfileLayer, customEditLink, customEditParameter, public_edit_items, listed, }: LayerProps) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,10 +1,11 @@
|
|
1
|
+
import type { MarkerIcon } from '#types/MarkerIcon';
|
1
2
|
interface LayerContextType {
|
2
3
|
name: string;
|
3
4
|
markerDefaultColor: string;
|
4
5
|
markerDefaultColor2: string;
|
5
6
|
markerShape: string;
|
6
|
-
markerIcon: string;
|
7
7
|
menuText: string;
|
8
|
+
markerIcon?: MarkerIcon;
|
8
9
|
}
|
9
10
|
declare const LayerContext: import("react").Context<LayerContextType>;
|
10
11
|
export default LayerContext;
|
@@ -1,2 +1,5 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
interface Props {
|
2
|
+
children?: React.ReactNode;
|
3
|
+
}
|
4
|
+
export declare function ItemFormPopup(props: Props): false | import("react/jsx-runtime").JSX.Element | null;
|
5
|
+
export {};
|
package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { Item } from '#types/Item';
|
2
|
-
interface StartEndInputProps {
|
2
|
+
export interface StartEndInputProps {
|
3
3
|
item?: Item;
|
4
4
|
showLabels?: boolean;
|
5
5
|
updateStartValue?: (value: string) => void;
|
@@ -9,4 +9,3 @@ interface StartEndInputProps {
|
|
9
9
|
* @category Map
|
10
10
|
*/
|
11
11
|
export declare const PopupStartEndInput: ({ item, showLabels, updateStartValue, updateEndValue, }: StartEndInputProps) => import("react/jsx-runtime").JSX.Element;
|
12
|
-
export {};
|
@@ -1,8 +1,6 @@
|
|
1
1
|
import type { Item } from '#types/Item';
|
2
|
-
import type { ItemFormPopupProps } from '#types/ItemFormPopupProps';
|
3
2
|
export interface ItemViewPopupProps {
|
4
3
|
item: Item;
|
5
4
|
children?: React.ReactNode;
|
6
|
-
setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
|
7
5
|
}
|
8
6
|
export declare const ItemViewPopup: import("react").ForwardRefExoticComponent<ItemViewPopupProps & import("react").RefAttributes<unknown>>;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import type { Item } from '#types/Item';
|
2
|
-
import type { ItemFormPopupProps } from '#types/ItemFormPopupProps';
|
3
2
|
import type { LayerProps } from '#types/LayerProps';
|
3
|
+
import type { PopupFormState } from '#types/PopupFormState';
|
4
4
|
import type { LatLng } from 'leaflet';
|
5
5
|
interface PolygonClickedProps {
|
6
6
|
position: LatLng;
|
7
|
-
setItemFormPopup: React.Dispatch<React.SetStateAction<
|
7
|
+
setItemFormPopup: React.Dispatch<React.SetStateAction<PopupFormState | null>>;
|
8
8
|
}
|
9
9
|
type UseSelectPositionManagerResult = ReturnType<typeof useSelectPositionManager>;
|
10
10
|
declare function useSelectPositionManager(): {
|
@@ -2,12 +2,3 @@ export { UtopiaMap } from './UtopiaMap';
|
|
2
2
|
export * from './Layer';
|
3
3
|
export { Tags } from './Tags';
|
4
4
|
export * from './Permissions';
|
5
|
-
export { ItemForm } from './ItemForm';
|
6
|
-
export { ItemView } from './ItemView';
|
7
|
-
export { PopupTextAreaInput } from './Subcomponents/ItemPopupComponents/PopupTextAreaInput';
|
8
|
-
export { PopupStartEndInput } from './Subcomponents/ItemPopupComponents/PopupStartEndInput';
|
9
|
-
export { PopupTextInput } from './Subcomponents/ItemPopupComponents/PopupTextInput';
|
10
|
-
export { PopupCheckboxInput } from './Subcomponents/ItemPopupComponents/PopupCheckboxInput';
|
11
|
-
export { TextView } from './Subcomponents/ItemPopupComponents/TextView';
|
12
|
-
export { StartEndView } from './Subcomponents/ItemPopupComponents/StartEndView';
|
13
|
-
export { PopupButton } from './Subcomponents/ItemPopupComponents/PopupButton';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "utopia-ui",
|
3
|
-
"version": "3.0.
|
3
|
+
"version": "3.0.92",
|
4
4
|
"description": "Reuseable React Components to build mapping apps for real life communities and networks",
|
5
5
|
"repository": "https://github.com/utopia-os/utopia-ui",
|
6
6
|
"homepage": "https://utopia-os.org/",
|