utopia-ui 3.0.76 → 3.0.78

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.
@@ -1,6 +1,6 @@
1
1
  export declare const ContextWrapper: ({ children }: {
2
2
  children: React.ReactNode;
3
- }) => string | number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<import("react").ReactNode> | null | undefined;
3
+ }) => import("react").ReactNode;
4
4
  export declare const Wrappers: ({ children }: {
5
5
  children: any;
6
6
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,4 @@
1
1
  export * from './AppShell';
2
2
  export { SideBar } from './SideBar';
3
3
  export { Content } from './Content';
4
+ export { default as SVG } from 'react-inlinesvg';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @category Item
3
+ */
4
+ export declare const PopupForm: ({ children }: {
5
+ children?: React.ReactNode;
6
+ }) => import("react/jsx-runtime").JSX.Element | null | undefined;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @category Item
3
+ */
4
+ export declare const PopupView: ({ children }: {
5
+ children?: React.ReactNode;
6
+ }) => (import("react/jsx-runtime").JSX.Element | null)[];
@@ -0,0 +1,3 @@
1
+ import type { Item } from '#types/Item';
2
+ declare const ItemContext: import("react").Context<Item | undefined>;
3
+ export default ItemContext;
@@ -0,0 +1,37 @@
1
+ export { PopupForm } from './PopupForm';
2
+ export { PopupView } from './PopupView';
3
+ export declare const TextView: import("react").ComponentType<Omit<{
4
+ item?: import("../Map").Item;
5
+ itemId?: string;
6
+ text?: string;
7
+ truncate?: boolean;
8
+ rawText?: string;
9
+ itemTextField?: string;
10
+ }, "item">>;
11
+ export declare const StartEndView: import("react").ComponentType<Omit<{
12
+ item?: import("../Map").Item;
13
+ }, "item">>;
14
+ export declare const PopupTextInput: import("react").ComponentType<Omit<{
15
+ dataField: string;
16
+ placeholder: string;
17
+ style?: string;
18
+ item?: import("../Map").Item;
19
+ }, "item">>;
20
+ export declare const PopupButton: import("react").ComponentType<Omit<{
21
+ url: string;
22
+ parameterField?: string;
23
+ text: string;
24
+ item?: import("../Map").Item;
25
+ }, "item">>;
26
+ export declare const PopupCheckboxInput: import("react").ComponentType<Omit<{
27
+ dataField: string;
28
+ label: string;
29
+ item?: import("../Map").Item;
30
+ }, "item">>;
31
+ export declare const PopupTextAreaInput: import("react").ComponentType<Omit<{
32
+ dataField: string;
33
+ placeholder: string;
34
+ style?: string;
35
+ item?: import("../Map").Item;
36
+ }, "item">>;
37
+ export declare const PopupStartEndInput: import("react").ComponentType<Omit<import("../Map/Subcomponents/ItemPopupComponents/PopupStartEndInput").StartEndInputProps, "item">>;
@@ -0,0 +1,4 @@
1
+ import type { Item } from '#types/Item';
2
+ export declare function templateify<T extends {
3
+ item?: Item;
4
+ }>(Component: React.ComponentType<T>): React.ComponentType<Omit<T, "item">>;
@@ -0,0 +1,12 @@
1
+ import type { ItemFormPopupProps } from '#types/ItemFormPopupProps';
2
+ interface LayerContextType {
3
+ name: string;
4
+ markerDefaultColor: string;
5
+ markerDefaultColor2: string;
6
+ markerShape: string;
7
+ markerIcon: string;
8
+ itemFormPopup: ItemFormPopupProps | null | undefined;
9
+ setItemFormPopup: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>> | undefined;
10
+ }
11
+ declare const LayerContext: import("react").Context<LayerContextType>;
12
+ export default LayerContext;
@@ -0,0 +1,7 @@
1
+ export { PopupTextAreaInput } from './PopupTextAreaInput';
2
+ export { PopupStartEndInput } from './PopupStartEndInput';
3
+ export { PopupTextInput } from './PopupTextInput';
4
+ export { PopupCheckboxInput } from './PopupCheckboxInput';
5
+ export { TextView } from './TextView';
6
+ export { StartEndView } from './StartEndView';
7
+ export { PopupButton } from './PopupButton';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "utopia-ui",
3
- "version": "3.0.76",
3
+ "version": "3.0.78",
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/",
@@ -99,6 +99,7 @@
99
99
  "radash": "^12.1.0",
100
100
  "react-colorful": "^5.6.1",
101
101
  "react-image-crop": "^10.1.8",
102
+ "react-inlinesvg": "^4.2.0",
102
103
  "react-leaflet": "^4.2.1",
103
104
  "react-leaflet-cluster": "^2.1.0",
104
105
  "react-markdown": "^9.0.1",
@@ -1,6 +0,0 @@
1
- /**
2
- * @category AppShell
3
- */
4
- export declare const Sitemap: ({ url }: {
5
- url: string;
6
- }) => import("react/jsx-runtime").JSX.Element;
@@ -1,19 +0,0 @@
1
- interface SelectBoxProps {
2
- labelTitle?: string;
3
- labelStyle?: string;
4
- type?: string;
5
- containerStyle?: string;
6
- defaultValue: string;
7
- placeholder?: string;
8
- updateFormValue: (value: string) => void;
9
- options: {
10
- name: string;
11
- value: string;
12
- }[];
13
- labelDescription?: string;
14
- }
15
- /**
16
- * @category Input
17
- */
18
- export declare function SelectBox(props: SelectBoxProps): import("react/jsx-runtime").JSX.Element;
19
- export {};
@@ -1,5 +0,0 @@
1
- export declare const CircleLayout: ({ items, radius, fontSize, }: {
2
- items: any;
3
- radius: number;
4
- fontSize: any;
5
- }) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- /**
2
- * @category Templates
3
- */
4
- export declare const MoonCalendar: () => import("react/jsx-runtime").JSX.Element;