utopia-ui 3.0.75 → 3.0.77
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 +1219 -108
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.esm.js +1221 -111
- package/dist/index.esm.js.map +1 -1
- package/dist/types/src/Components/AppShell/ContextWrapper.d.ts +1 -1
- package/dist/types/src/Components/AppShell/hooks/useAppState.d.ts +2 -1
- package/dist/types/src/Components/AppShell/index.d.ts +1 -0
- package/dist/types/src/Components/Item/PopupForm.d.ts +6 -0
- package/dist/types/src/Components/Item/PopupView.d.ts +6 -0
- package/dist/types/src/Components/Item/TemplateItemContext.d.ts +3 -0
- package/dist/types/src/Components/Item/index.d.ts +37 -0
- package/dist/types/src/Components/Item/templateify.d.ts +4 -0
- package/dist/types/src/Components/Map/LayerContext.d.ts +12 -0
- package/dist/types/src/Components/Map/Subcomponents/Controls/LocateControl.d.ts +0 -1
- package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/index.d.ts +7 -0
- package/dist/types/src/Components/Map/UtopiaMap.d.ts +0 -1
- package/dist/types/src/Components/Map/UtopiaMapInner.d.ts +0 -2
- package/dist/types/src/Components/Profile/Subcomponents/AvatarWidget.d.ts +0 -1
- package/dist/types/src/Components/Profile/Subcomponents/ColorPicker.d.ts +0 -1
- package/dist/types/src/Components/Profile/Subcomponents/GalleryView.d.ts +0 -2
- package/dist/types/src/Components/Templates/ItemCard.d.ts +1 -1
- package/dist/types/src/Components/Templates/TitleCard.d.ts +1 -1
- package/dist/types/src/Components/Typography/ErrorText.d.ts +2 -2
- package/dist/types/src/css.d.ts +14 -0
- package/dist/types/src/index.d.ts +1 -1
- package/package.json +2 -2
- package/dist/types/src/Components/AppShell/Sitemap.d.ts +0 -6
- package/dist/types/src/Components/Input/SelectBox.d.ts +0 -19
- package/dist/types/src/Components/Templates/CircleLayout.d.ts +0 -5
- package/dist/types/src/Components/Templates/MoonCalendar.d.ts +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const ContextWrapper: ({ children }: {
|
|
2
2
|
children: React.ReactNode;
|
|
3
|
-
}) =>
|
|
3
|
+
}) => import("react").ReactNode;
|
|
4
4
|
export declare const Wrappers: ({ children }: {
|
|
5
5
|
children: any;
|
|
6
6
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { AssetsApi } from '#types/AssetsApi';
|
|
2
2
|
interface AppState {
|
|
3
3
|
assetsApi: AssetsApi;
|
|
4
|
-
|
|
4
|
+
sideBarOpen: boolean;
|
|
5
|
+
sideBarSlim: boolean;
|
|
5
6
|
}
|
|
6
7
|
type UseAppManagerResult = ReturnType<typeof useAppManager>;
|
|
7
8
|
declare function useAppManager(): {
|
|
@@ -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,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';
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import 'leaflet/dist/leaflet.css';
|
|
2
|
-
import './UtopiaMap.css';
|
|
3
1
|
import type { UtopiaMapProps } from '#types/UtopiaMapProps';
|
|
4
2
|
export declare function UtopiaMapInner({ children, geo, showFilterControl, showGratitudeControl, showLayerControl, donationWidget, }: UtopiaMapProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import 'leaflet/dist/leaflet.css';
|
|
2
|
+
import 'leaflet.locatecontrol/dist/L.Control.Locate.css';
|
|
3
|
+
import 'react-image-crop/dist/ReactCrop.css';
|
|
4
|
+
import 'react-photo-album/rows.css';
|
|
5
|
+
import 'react-toastify/dist/ReactToastify.css';
|
|
6
|
+
import 'yet-another-react-lightbox/styles.css';
|
|
7
|
+
import '#assets/css/tailwind.css';
|
|
8
|
+
import '#assets/css/masonry.css';
|
|
9
|
+
import '#assets/css/toastify.css';
|
|
10
|
+
import '#assets/css/custom-file-upload.css';
|
|
11
|
+
import '#assets/css/misc.css';
|
|
12
|
+
import '#assets/css/marker-icons.css';
|
|
13
|
+
import '#assets/css/leaflet.css';
|
|
14
|
+
import '#assets/css/color-picker.css';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "utopia-ui",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.77",
|
|
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",
|
|
@@ -106,7 +107,6 @@
|
|
|
106
107
|
"react-router-dom": "^6.16.0",
|
|
107
108
|
"react-toastify": "^9.1.3",
|
|
108
109
|
"remark-breaks": "^4.0.0",
|
|
109
|
-
"tw-elements": "^1.0.0",
|
|
110
110
|
"yet-another-react-lightbox": "^3.21.7"
|
|
111
111
|
},
|
|
112
112
|
"imports": {
|
|
@@ -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 {};
|