utopia-ui 3.0.0-alpha.99 → 3.0.0
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/LICENSE +674 -0
- package/README.md +29 -26
- package/dist/Components/AppShell/AppShell.d.ts +3 -2
- package/dist/Components/AppShell/ContextWrapper.d.ts +6 -0
- package/dist/Components/AppShell/NavBar.d.ts +2 -2
- package/dist/Components/AppShell/SideBar.d.ts +0 -1
- package/dist/Components/AppShell/SidebarSubmenu.d.ts +0 -1
- package/dist/Components/AppShell/Sitemap.d.ts +3 -0
- package/dist/Components/AppShell/index.d.ts +1 -0
- package/dist/Components/Input/ComboBoxInput.d.ts +11 -0
- package/dist/Components/Map/Layer.d.ts +1 -1
- package/dist/Components/Map/Subcomponents/Controls/Control.d.ts +2 -1
- package/dist/Components/Map/Subcomponents/Controls/FilterControl.d.ts +1 -2
- package/dist/Components/Map/Subcomponents/Controls/GratitudeControl.d.ts +1 -0
- package/dist/Components/Map/Subcomponents/Controls/SearchControl.d.ts +1 -3
- package/dist/Components/Map/Subcomponents/Controls/SidebarControl.d.ts +1 -0
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +14 -5
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupCheckboxInput.d.ts +6 -0
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +8 -3
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +2 -1
- package/dist/Components/Map/Subcomponents/SelectPosition.d.ts +3 -0
- package/dist/Components/Map/UtopiaMap.d.ts +2 -10
- package/dist/Components/Map/UtopiaMapInner.d.ts +4 -0
- package/dist/Components/Map/hooks/useClusterRef.d.ts +12 -0
- package/dist/Components/Map/hooks/useFilter.d.ts +8 -0
- package/dist/Components/Map/hooks/usePermissions.d.ts +2 -2
- package/dist/Components/Map/hooks/useSelectPosition.d.ts +23 -0
- package/dist/Components/Map/index.d.ts +1 -0
- package/dist/Components/Map/setItemLocation.d.ts +1 -0
- package/dist/Components/Profile/ProfileForm.d.ts +3 -0
- package/dist/Components/Profile/ProfileView.d.ts +5 -0
- package/dist/Components/Profile/Subcomponents/ActionsButton.d.ts +11 -0
- package/dist/Components/Profile/Subcomponents/AvatarWidget.d.ts +8 -0
- package/dist/Components/Profile/Subcomponents/ContactInfo.d.ts +8 -0
- package/dist/Components/Profile/Subcomponents/FormHeader.d.ts +5 -0
- package/dist/Components/Profile/Subcomponents/LinkedItemsHeaderView.d.ts +10 -0
- package/dist/Components/Profile/Subcomponents/PlusButton.d.ts +7 -0
- package/dist/Components/Profile/Subcomponents/ProfileSubHeader.d.ts +7 -0
- package/dist/Components/Profile/Subcomponents/RelationCard.d.ts +6 -0
- package/dist/Components/Profile/Subcomponents/SocialShareBar.d.ts +6 -0
- package/dist/Components/Profile/Subcomponents/SocialShareButton.d.ts +6 -0
- package/dist/Components/Profile/Templates/OnepagerForm.d.ts +22 -0
- package/dist/Components/Profile/Templates/OnepagerView.d.ts +5 -0
- package/dist/Components/Profile/Templates/SimpleForm.d.ts +4 -0
- package/dist/Components/Profile/Templates/SimpleView.d.ts +4 -0
- package/dist/Components/Profile/Templates/TabsForm.d.ts +10 -0
- package/dist/Components/Profile/Templates/TabsView.d.ts +14 -0
- package/dist/Components/Profile/UserSettings.d.ts +0 -2
- package/dist/Components/Profile/index.d.ts +3 -7
- package/dist/Components/Profile/itemFunctions.d.ts +5 -0
- package/dist/Components/Templates/AttestationForm.d.ts +4 -0
- package/dist/Components/Templates/DateUserInfo.d.ts +4 -0
- package/dist/Components/Templates/DialogModal.d.ts +3 -1
- package/dist/Components/Templates/EmojiPicker.d.ts +8 -0
- package/dist/Components/Templates/ItemCard.d.ts +8 -0
- package/dist/Components/Templates/OverlayItemsIndexPage.d.ts +6 -0
- package/dist/Components/Templates/SelectUser.d.ts +3 -0
- package/dist/Components/Templates/index.d.ts +3 -3
- package/dist/Utils/ReverseGeocoder.d.ts +1 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +3117 -2257
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +23 -1
- package/package.json +2 -2
- package/LICENSE.md +0 -5
- package/dist/Components/Auth/LoginPage copy.d.ts +0 -2
- package/dist/Components/Auth/ResetPasswordPage.d.ts +0 -2
- package/dist/Components/Auth/Signuppage.d.ts +0 -2
- package/dist/Components/Map/Subcomponents/Control.d.ts +0 -5
- package/dist/Components/Map/Subcomponents/FilterControl.d.ts +0 -2
- package/dist/Components/Map/Subcomponents/LayerControl.d.ts +0 -2
- package/dist/Components/Map/Subcomponents/QuestControl.d.ts +0 -2
- package/dist/Components/Profile/AvatarWidget.d.ts +0 -5
- package/dist/Components/Profile/Editor.d.ts +0 -4
- package/dist/Components/Profile/OverlayItemProfile.d.ts +0 -1
- package/dist/Components/Profile/OverlayItemProfileSettings.d.ts +0 -1
- package/dist/Components/Profile/OverlayProfile.d.ts +0 -1
- package/dist/Components/Profile/OverlayProfileSettings.d.ts +0 -1
- package/dist/Components/Profile/OverlayUserSettings.d.ts +0 -1
- package/dist/Components/Profile/PlusButton.d.ts +0 -5
- package/dist/Components/Profile/ProfileSettings.d.ts +0 -3
- package/dist/Components/Profile/Settings.d.ts +0 -4
- package/dist/Components/Profile/Tags.d.ts +0 -2
- package/dist/Components/Templates/ItemViewPage.d.ts +0 -14
- package/dist/Components/Templates/ItemsIndexPage.d.ts +0 -18
- package/dist/Components/Templates/MapOverlayScreen.d.ts +0 -4
- package/dist/Utils/DynamicHeroIcon.d.ts +0 -7
- package/dist/workspace/utopia-ui/src/Components/AppShell/AppShell.d.ts +0 -8
- package/dist/workspace/utopia-ui/src/Components/AppShell/Content.d.ts +0 -6
- package/dist/workspace/utopia-ui/src/Components/AppShell/NavBar.d.ts +0 -4
- package/dist/workspace/utopia-ui/src/Components/AppShell/SetAssetsApi.d.ts +0 -4
- package/dist/workspace/utopia-ui/src/Components/AppShell/SideBar.d.ts +0 -12
- package/dist/workspace/utopia-ui/src/Components/AppShell/SidebarSubmenu.d.ts +0 -7
- package/dist/workspace/utopia-ui/src/Components/AppShell/hooks/useAssets.d.ts +0 -13
- package/dist/workspace/utopia-ui/src/Components/AppShell/index.d.ts +0 -3
- package/dist/workspace/utopia-ui/src/Components/Auth/LoginPage.d.ts +0 -1
- package/dist/workspace/utopia-ui/src/Components/Auth/RequestPasswordPage.d.ts +0 -3
- package/dist/workspace/utopia-ui/src/Components/Auth/SetNewPasswordPage.d.ts +0 -1
- package/dist/workspace/utopia-ui/src/Components/Auth/SignupPage.d.ts +0 -1
- package/dist/workspace/utopia-ui/src/Components/Auth/index.d.ts +0 -5
- package/dist/workspace/utopia-ui/src/Components/Auth/useAuth.d.ts +0 -26
- package/dist/workspace/utopia-ui/src/Components/Gaming/Modal.d.ts +0 -5
- package/dist/workspace/utopia-ui/src/Components/Gaming/Quests.d.ts +0 -1
- package/dist/workspace/utopia-ui/src/Components/Gaming/hooks/useQuests.d.ts +0 -13
- package/dist/workspace/utopia-ui/src/Components/Gaming/index.d.ts +0 -2
- package/dist/workspace/utopia-ui/src/Components/Input/Autocomplete.d.ts +0 -7
- package/dist/workspace/utopia-ui/src/Components/Input/SelectBox.d.ts +0 -16
- package/dist/workspace/utopia-ui/src/Components/Input/TextAreaInput.d.ts +0 -12
- package/dist/workspace/utopia-ui/src/Components/Input/TextInput.d.ts +0 -14
- package/dist/workspace/utopia-ui/src/Components/Input/index.d.ts +0 -3
- package/dist/workspace/utopia-ui/src/Components/Map/ItemForm.d.ts +0 -18
- package/dist/workspace/utopia-ui/src/Components/Map/ItemView.d.ts +0 -16
- package/dist/workspace/utopia-ui/src/Components/Map/Layer.d.ts +0 -2
- package/dist/workspace/utopia-ui/src/Components/Map/Permissions.d.ts +0 -6
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/AddButton.d.ts +0 -4
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/Control.d.ts +0 -6
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/LayerControl.d.ts +0 -1
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/LocateControl.d.ts +0 -3
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/QuestControl.d.ts +0 -1
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/SearchControl.d.ts +0 -3
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/TagsControl.d.ts +0 -1
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemFormPopup.d.ts +0 -11
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +0 -7
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.d.ts +0 -8
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +0 -4
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.d.ts +0 -7
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.d.ts +0 -7
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/StartEndView.d.ts +0 -4
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +0 -6
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemViewPopup.d.ts +0 -9
- package/dist/workspace/utopia-ui/src/Components/Map/Tags.d.ts +0 -5
- package/dist/workspace/utopia-ui/src/Components/Map/UtopiaMap.d.ts +0 -11
- package/dist/workspace/utopia-ui/src/Components/Map/hooks/useDebounce.d.ts +0 -1
- package/dist/workspace/utopia-ui/src/Components/Map/hooks/useFilter.d.ts +0 -32
- package/dist/workspace/utopia-ui/src/Components/Map/hooks/useItems.d.ts +0 -26
- package/dist/workspace/utopia-ui/src/Components/Map/hooks/useLayers.d.ts +0 -14
- package/dist/workspace/utopia-ui/src/Components/Map/hooks/useLeafletRefs.d.ts +0 -22
- package/dist/workspace/utopia-ui/src/Components/Map/hooks/usePermissions.d.ts +0 -20
- package/dist/workspace/utopia-ui/src/Components/Map/hooks/useTags.d.ts +0 -22
- package/dist/workspace/utopia-ui/src/Components/Map/hooks/useTimeout.d.ts +0 -4
- package/dist/workspace/utopia-ui/src/Components/Map/hooks/useWindowDimension.d.ts +0 -4
- package/dist/workspace/utopia-ui/src/Components/Map/index.d.ts +0 -12
- package/dist/workspace/utopia-ui/src/Components/Profile/ColorPicker.d.ts +0 -6
- package/dist/workspace/utopia-ui/src/Components/Profile/Editor.d.ts +0 -4
- package/dist/workspace/utopia-ui/src/Components/Profile/OverlayProfile.d.ts +0 -1
- package/dist/workspace/utopia-ui/src/Components/Profile/OverlayProfileSettings.d.ts +0 -1
- package/dist/workspace/utopia-ui/src/Components/Profile/OverlayUserSettings.d.ts +0 -1
- package/dist/workspace/utopia-ui/src/Components/Profile/ProfileSettings.d.ts +0 -3
- package/dist/workspace/utopia-ui/src/Components/Profile/TagsWidget.d.ts +0 -6
- package/dist/workspace/utopia-ui/src/Components/Profile/UserSettings.d.ts +0 -3
- package/dist/workspace/utopia-ui/src/Components/Profile/index.d.ts +0 -5
- package/dist/workspace/utopia-ui/src/Components/Profile/useClickOutside.d.ts +0 -2
- package/dist/workspace/utopia-ui/src/Components/Templates/CardPage.d.ts +0 -10
- package/dist/workspace/utopia-ui/src/Components/Templates/CircleLayout.d.ts +0 -5
- package/dist/workspace/utopia-ui/src/Components/Templates/DialogModal.d.ts +0 -10
- package/dist/workspace/utopia-ui/src/Components/Templates/ItemsIndexPage.d.ts +0 -15
- package/dist/workspace/utopia-ui/src/Components/Templates/MapOverlayPage.d.ts +0 -7
- package/dist/workspace/utopia-ui/src/Components/Templates/MoonCalendar.d.ts +0 -1
- package/dist/workspace/utopia-ui/src/Components/Templates/TagView.d.ts +0 -6
- package/dist/workspace/utopia-ui/src/Components/Templates/TitleCard.d.ts +0 -11
- package/dist/workspace/utopia-ui/src/Components/Templates/index.d.ts +0 -6
- package/dist/workspace/utopia-ui/src/Components/Typography/ErrorText.d.ts +0 -5
- package/dist/workspace/utopia-ui/src/Components/Typography/Subtitle.d.ts +0 -6
- package/dist/workspace/utopia-ui/src/Utils/FormatTags.d.ts +0 -2
- package/dist/workspace/utopia-ui/src/Utils/GetValue.d.ts +0 -1
- package/dist/workspace/utopia-ui/src/Utils/HashTagRegex.d.ts +0 -1
- package/dist/workspace/utopia-ui/src/Utils/MarkerIconFactory.d.ts +0 -3
- package/dist/workspace/utopia-ui/src/Utils/Moon.d.ts +0 -7
- package/dist/workspace/utopia-ui/src/Utils/RandomColor.d.ts +0 -1
- package/dist/workspace/utopia-ui/src/Utils/ReplaceURLs.d.ts +0 -3
- package/dist/workspace/utopia-ui/src/Utils/TimeAgo.d.ts +0 -1
- package/dist/workspace/utopia-ui/src/index.d.ts +0 -13
- package/dist/workspace/utopia-ui/src/types.d.ts +0 -108
- /package/dist/Components/Profile/{ColorPicker.d.ts → Subcomponents/ColorPicker.d.ts} +0 -0
- /package/dist/Components/Profile/{TagsWidget.d.ts → Subcomponents/TagsWidget.d.ts} +0 -0
- /package/dist/Components/Profile/{useClickOutside.d.ts → hooks/useClickOutside.d.ts} +0 -0
package/README.md
CHANGED
@@ -36,35 +36,34 @@ Tags, colors and clusters help to retain the overview.
|
|
36
36
|
|
37
37
|
use the Map UI Component
|
38
38
|
```jsx
|
39
|
-
import { UtopiaMap, Layer
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
</UtopiaMap>
|
39
|
+
import { UtopiaMap, Layer} from 'utopia-ui'
|
40
|
+
|
41
|
+
<UtopiaMap zoom={5} height='100dvh' width="100dvw">
|
42
|
+
<Layer
|
43
|
+
name='events'
|
44
|
+
menuIcon='CalendarIcon'
|
45
|
+
menuText='add new event'
|
46
|
+
menuColor='#f9a825'
|
47
|
+
markerIcon='calendar'
|
48
|
+
markerShape='square'
|
49
|
+
markerDefaultColor='#777'
|
50
|
+
data={events} />
|
51
|
+
<Layer
|
52
|
+
name='places'
|
53
|
+
menuIcon='MapPinIcon'
|
54
|
+
menuText='add new place'
|
55
|
+
menuColor='#2E7D32'
|
56
|
+
markerIcon='point'
|
57
|
+
markerShape='circle'
|
58
|
+
markerDefaultColor='#777'
|
59
|
+
data={places} />
|
60
|
+
</UtopiaMap>
|
62
61
|
```
|
63
62
|
You can find some Sample Data (places, events, tags) for test in the `SamleData/` folder
|
64
63
|
|
65
64
|
|
66
65
|
|
67
|
-
### Options
|
66
|
+
### Map Options
|
68
67
|
|
69
68
|
Option | Type | Default | Required | Description
|
70
69
|
--- | --- | --- | --- | ---
|
@@ -73,12 +72,16 @@ You can find some Sample Data (places, events, tags) for test in the `SamleData/
|
|
73
72
|
`center` | `LatLng` |`[50.6, 9.5]` | No | initial map position
|
74
73
|
`zoom` | `number` |`10` | No | initial zoom level
|
75
74
|
|
75
|
+
### Layer Options
|
76
76
|
|
77
|
+
Option | Type | Default | Required | Description
|
78
|
+
--- | --- | --- | --- | ---
|
79
|
+
| ... | | | |
|
77
80
|
|
78
81
|
## Join the community
|
79
82
|
|
80
|
-
*This Library is in
|
83
|
+
*This Library is in alpha stage. You are very welcome to participate in the development*
|
81
84
|
|
82
85
|
*We are looking for Web Developer, UX Designer, Community Manager, Visionaries, Artists, etc. who like to support this Vision.*
|
83
86
|
|
84
|
-
[https://t.me/
|
87
|
+
[https://t.me/UtopiaMap](https://t.me/UtopiaMap)
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { AssetsApi } from '../../types';
|
3
|
-
|
3
|
+
import 'react-toastify/dist/ReactToastify.css';
|
4
|
+
export declare function AppShell({ appName, children, assetsApi, userType }: {
|
4
5
|
appName: string;
|
5
|
-
nameWidth?: number;
|
6
6
|
children: React.ReactNode;
|
7
7
|
assetsApi: AssetsApi;
|
8
|
+
userType: string;
|
8
9
|
}): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
interface ComboBoxProps {
|
2
|
+
id?: string;
|
3
|
+
options: {
|
4
|
+
value: string;
|
5
|
+
label: string;
|
6
|
+
}[];
|
7
|
+
value: string;
|
8
|
+
onValueChange: (newValue: string) => void;
|
9
|
+
}
|
10
|
+
declare const ComboBoxInput: ({ id, options, value, onValueChange }: ComboBoxProps) => import("react/jsx-runtime").JSX.Element;
|
11
|
+
export default ComboBoxInput;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { LayerProps } from '../../types';
|
2
|
-
export declare const Layer: ({ data, children, name, menuIcon, menuText, menuColor, markerIcon, markerShape, markerDefaultColor, api, itemNameField, itemTextField, itemAvatarField, itemColorField, itemOwnerField, itemLatitudeField, itemLongitudeField, itemTagsField, itemOffersField, itemNeedsField, onlyOnePerOwner, customEditLink, setItemFormPopup, itemFormPopup, clusterRef }: LayerProps) => import("react/jsx-runtime").JSX.Element;
|
2
|
+
export declare const Layer: ({ data, children, name, menuIcon, menuText, menuColor, markerIcon, markerShape, markerDefaultColor, markerDefaultColor2, api, itemType, itemNameField, itemSubnameField, itemTextField, itemAvatarField, itemColorField, itemOwnerField, itemLatitudeField, itemLongitudeField, itemTagsField, itemOffersField, itemNeedsField, onlyOnePerOwner, customEditLink, customEditParameter, public_edit_items, listed, setItemFormPopup, itemFormPopup, clusterRef }: LayerProps) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
export declare const Control: ({ position, children, zIndex }: {
|
2
|
+
export declare const Control: ({ position, children, zIndex, absolute }: {
|
3
3
|
position: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
4
4
|
children: React.ReactNode;
|
5
5
|
zIndex: string;
|
6
|
+
absolute: boolean;
|
6
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
export declare const FilterControl: () => JSX.Element;
|
1
|
+
export declare function FilterControl(): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const GratitudeControl: () => import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const SidebarControl: () => import("react/jsx-runtime").JSX.Element;
|
@@ -1,8 +1,17 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
import { Item } from "../../../../types";
|
4
|
-
export declare function HeaderView({ item, setItemFormPopup, hideMenu }: {
|
1
|
+
import { Item, ItemsApi } from "../../../../types";
|
2
|
+
export declare function HeaderView({ item, api, editCallback, deleteCallback, setPositionCallback, itemNameField, itemSubnameField, itemAvatarField, loading, hideMenu, big, truncateSubname, hideSubname, showAddress }: {
|
5
3
|
item: Item;
|
6
|
-
|
4
|
+
api?: ItemsApi<any>;
|
5
|
+
editCallback?: any;
|
6
|
+
deleteCallback?: any;
|
7
|
+
setPositionCallback?: any;
|
8
|
+
itemNameField?: string;
|
9
|
+
itemAvatarField?: string;
|
10
|
+
itemSubnameField?: string;
|
11
|
+
loading?: boolean;
|
7
12
|
hideMenu?: boolean;
|
13
|
+
big?: boolean;
|
14
|
+
hideSubname?: boolean;
|
15
|
+
truncateSubname?: boolean;
|
16
|
+
showAddress?: boolean;
|
8
17
|
}): import("react/jsx-runtime").JSX.Element;
|
@@ -1,4 +1,9 @@
|
|
1
1
|
import { Item } from '../../../../types';
|
2
|
-
|
3
|
-
item?: Item
|
4
|
-
|
2
|
+
declare type StartEndInputProps = {
|
3
|
+
item?: Item;
|
4
|
+
showLabels?: boolean;
|
5
|
+
updateStartValue?: (value: string) => void;
|
6
|
+
updateEndValue?: (value: string) => void;
|
7
|
+
};
|
8
|
+
export declare const PopupStartEndInput: ({ item, showLabels, updateStartValue, updateEndValue }: StartEndInputProps) => import("react/jsx-runtime").JSX.Element;
|
9
|
+
export {};
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { Item } from '../../../../types';
|
2
|
-
export declare const TextView: ({ item, truncate, itemTextField }: {
|
2
|
+
export declare const TextView: ({ item, truncate, itemTextField, rawText }: {
|
3
3
|
item?: Item | undefined;
|
4
4
|
truncate?: boolean | undefined;
|
5
5
|
itemTextField?: string | undefined;
|
6
|
+
rawText?: string | undefined;
|
6
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,11 +1,3 @@
|
|
1
|
-
import "
|
2
|
-
|
3
|
-
import { LayerProps, UtopiaMapProps } from "../../types";
|
4
|
-
import "./UtopiaMap.css";
|
5
|
-
export interface MapEventListenerProps {
|
6
|
-
selectNewItemPosition: LayerProps | null;
|
7
|
-
setSelectNewItemPosition: React.Dispatch<any>;
|
8
|
-
setItemFormPopup: React.Dispatch<React.SetStateAction<any>>;
|
9
|
-
}
|
10
|
-
declare function UtopiaMap({ height, width, center, zoom, children }: UtopiaMapProps): import("react/jsx-runtime").JSX.Element;
|
1
|
+
import { UtopiaMapProps } from "../../types";
|
2
|
+
declare function UtopiaMap(props: UtopiaMapProps): import("react/jsx-runtime").JSX.Element;
|
11
3
|
export { UtopiaMap };
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import "leaflet/dist/leaflet.css";
|
2
|
+
import { UtopiaMapProps } from "../../types";
|
3
|
+
import "./UtopiaMap.css";
|
4
|
+
export declare function UtopiaMapInner({ height, width, center, zoom, children, geo, showFilterControl, showGratitudeControl, showLayerControl }: UtopiaMapProps): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
declare type UseClusterRefManagerResult = ReturnType<typeof useClusterRefManager>;
|
3
|
+
declare function useClusterRefManager(): {
|
4
|
+
clusterRef: any;
|
5
|
+
setClusterRef: React.Dispatch<React.SetStateAction<React.MutableRefObject<undefined>>>;
|
6
|
+
};
|
7
|
+
export declare const ClusterRefProvider: React.FunctionComponent<{
|
8
|
+
children?: React.ReactNode;
|
9
|
+
}>;
|
10
|
+
export declare const useClusterRef: () => any;
|
11
|
+
export declare const useSetClusterRef: () => UseClusterRefManagerResult["setClusterRef"];
|
12
|
+
export {};
|
@@ -5,6 +5,7 @@ declare function useFilterManager(initialTags: Tag[]): {
|
|
5
5
|
filterTags: Tag[];
|
6
6
|
searchPhrase: string;
|
7
7
|
visibleLayers: LayerProps[];
|
8
|
+
visibleGroupTypes: string[];
|
8
9
|
addFilterTag: (tag: Tag) => void;
|
9
10
|
removeFilterTag: (name: string) => void;
|
10
11
|
resetFilterTags: () => void;
|
@@ -13,6 +14,9 @@ declare function useFilterManager(initialTags: Tag[]): {
|
|
13
14
|
toggleVisibleLayer: (layer: LayerProps) => void;
|
14
15
|
resetVisibleLayers: () => void;
|
15
16
|
isLayerVisible: (layer: LayerProps) => boolean;
|
17
|
+
addVisibleGroupType: (groupType: string) => void;
|
18
|
+
toggleVisibleGroupType: (groupType: string) => void;
|
19
|
+
isGroupTypeVisible: (groupType: string) => boolean;
|
16
20
|
};
|
17
21
|
export declare const FilterProvider: React.FunctionComponent<{
|
18
22
|
initialTags: Tag[];
|
@@ -29,4 +33,8 @@ export declare const useAddVisibleLayer: () => UseFilterManagerResult["addVisibl
|
|
29
33
|
export declare const useToggleVisibleLayer: () => UseFilterManagerResult["toggleVisibleLayer"];
|
30
34
|
export declare const useResetVisibleLayers: () => UseFilterManagerResult["resetVisibleLayers"];
|
31
35
|
export declare const useIsLayerVisible: () => UseFilterManagerResult["isLayerVisible"];
|
36
|
+
export declare const useAddVisibleGroupType: () => UseFilterManagerResult["addVisibleGroupType"];
|
37
|
+
export declare const useToggleVisibleGroupType: () => UseFilterManagerResult["toggleVisibleGroupType"];
|
38
|
+
export declare const useIsGroupTypeVisible: () => UseFilterManagerResult["isGroupTypeVisible"];
|
39
|
+
export declare const useVisibleGroupType: () => UseFilterManagerResult["visibleGroupTypes"];
|
32
40
|
export {};
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import * as React from "react";
|
2
|
-
import { Item, ItemsApi, Permission, PermissionAction } from "../../../types";
|
2
|
+
import { Item, ItemsApi, LayerProps, Permission, PermissionAction } from "../../../types";
|
3
3
|
declare type UsePermissionManagerResult = ReturnType<typeof usePermissionsManager>;
|
4
4
|
declare function usePermissionsManager(initialPermissions: Permission[]): {
|
5
5
|
permissions: Permission[];
|
6
6
|
setPermissionApi: (api: ItemsApi<any>) => void;
|
7
7
|
setPermissionData: (data: Permission[]) => void;
|
8
8
|
setAdminRole: (adminRole: string) => void;
|
9
|
-
hasUserPermission: (collectionName: string, action: PermissionAction, item?: Item) => boolean;
|
9
|
+
hasUserPermission: (collectionName: string, action: PermissionAction, item?: Item, layer?: LayerProps) => boolean;
|
10
10
|
};
|
11
11
|
export declare const PermissionsProvider: React.FunctionComponent<{
|
12
12
|
initialPermissions: Permission[];
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { Item, LayerProps } from '../../../types';
|
3
|
+
import { LatLng } from "leaflet";
|
4
|
+
import { ItemFormPopupProps } from "../Subcomponents/ItemFormPopup";
|
5
|
+
declare type PolygonClickedProps = {
|
6
|
+
position: LatLng;
|
7
|
+
setItemFormPopup: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
|
8
|
+
};
|
9
|
+
declare type UseSelectPositionManagerResult = ReturnType<typeof useSelectPositionManager>;
|
10
|
+
declare function useSelectPositionManager(): {
|
11
|
+
selectPosition: Item | LayerProps | null;
|
12
|
+
setSelectPosition: React.Dispatch<React.SetStateAction<Item | LayerProps | null>>;
|
13
|
+
setMarkerClicked: React.Dispatch<React.SetStateAction<Item>>;
|
14
|
+
setMapClicked: React.Dispatch<React.SetStateAction<PolygonClickedProps | undefined>>;
|
15
|
+
};
|
16
|
+
export declare const SelectPositionProvider: React.FunctionComponent<{
|
17
|
+
children?: React.ReactNode;
|
18
|
+
}>;
|
19
|
+
export declare const useSelectPosition: () => Item | LayerProps | null;
|
20
|
+
export declare const useSetSelectPosition: () => UseSelectPositionManagerResult["setSelectPosition"];
|
21
|
+
export declare const useSetMarkerClicked: () => UseSelectPositionManagerResult["setMarkerClicked"];
|
22
|
+
export declare const useSetMapClicked: () => UseSelectPositionManagerResult["setMapClicked"];
|
23
|
+
export {};
|
@@ -7,6 +7,7 @@ export { ItemView } from './ItemView';
|
|
7
7
|
export { PopupTextAreaInput } from './Subcomponents/ItemPopupComponents/PopupTextAreaInput';
|
8
8
|
export { PopupStartEndInput } from './Subcomponents/ItemPopupComponents/PopupStartEndInput';
|
9
9
|
export { PopupTextInput } from './Subcomponents/ItemPopupComponents/PopupTextInput';
|
10
|
+
export { PopupCheckboxInput } from './Subcomponents/ItemPopupComponents/PopupCheckboxInput';
|
10
11
|
export { TextView } from './Subcomponents/ItemPopupComponents/TextView';
|
11
12
|
export { StartEndView } from './Subcomponents/ItemPopupComponents/StartEndView';
|
12
13
|
export { PopupButton } from './Subcomponents/ItemPopupComponents/PopupButton';
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const setItemLocation: () => import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { Item } from "../../../types";
|
2
|
+
export declare function ActionButton({ item, triggerAddButton, triggerItemSelected, existingRelations, itemType, colorField, collection, customStyle }: {
|
3
|
+
triggerAddButton?: any;
|
4
|
+
triggerItemSelected?: any;
|
5
|
+
existingRelations: Item[];
|
6
|
+
itemType?: string;
|
7
|
+
colorField?: string;
|
8
|
+
collection?: string;
|
9
|
+
customStyle?: string;
|
10
|
+
item: Item;
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import * as React from "react";
|
2
|
+
import 'react-image-crop/dist/ReactCrop.css';
|
3
|
+
interface AvatarWidgetProps {
|
4
|
+
avatar: string;
|
5
|
+
setAvatar: React.Dispatch<React.SetStateAction<any>>;
|
6
|
+
}
|
7
|
+
export declare const AvatarWidget: React.FC<AvatarWidgetProps>;
|
8
|
+
export {};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { Item } from "../../../types";
|
2
|
+
export declare function LinkedItemsHeaderView({ item, unlinkCallback, itemNameField, itemAvatarField, loading, unlinkPermission, itemSubnameField }: {
|
3
|
+
item: Item;
|
4
|
+
unlinkCallback?: any;
|
5
|
+
itemNameField?: string;
|
6
|
+
itemAvatarField?: string;
|
7
|
+
itemSubnameField?: string;
|
8
|
+
loading?: boolean;
|
9
|
+
unlinkPermission: boolean;
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { Item, Tag } from "../../../types";
|
2
|
+
export declare const OnepagerForm: ({ item, state, setState }: {
|
3
|
+
state: {
|
4
|
+
color: string;
|
5
|
+
id: string;
|
6
|
+
groupType: string;
|
7
|
+
status: string;
|
8
|
+
name: string;
|
9
|
+
subname: string;
|
10
|
+
text: string;
|
11
|
+
contact: string;
|
12
|
+
telephone: string;
|
13
|
+
nextAppointment: string;
|
14
|
+
image: string;
|
15
|
+
markerIcon: string;
|
16
|
+
offers: Tag[];
|
17
|
+
needs: Tag[];
|
18
|
+
relations: Item[];
|
19
|
+
};
|
20
|
+
setState: React.Dispatch<React.SetStateAction<any>>;
|
21
|
+
item: Item;
|
22
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
export declare const TabsForm: ({ item, state, setState, updatePermission, linkItem, unlinkItem, loading, setUrlParams }: {
|
2
|
+
item: any;
|
3
|
+
state: any;
|
4
|
+
setState: any;
|
5
|
+
updatePermission: any;
|
6
|
+
linkItem: any;
|
7
|
+
unlinkItem: any;
|
8
|
+
loading: any;
|
9
|
+
setUrlParams: any;
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { Item, Tag } from 'utopia-ui/dist/types';
|
2
|
+
export declare const TabsView: ({ attestations, userType, item, offers, needs, relations, updatePermission, loading, linkItem, unlinkItem, setUrlParams }: {
|
3
|
+
attestations: Array<any>;
|
4
|
+
userType: string;
|
5
|
+
item: Item;
|
6
|
+
offers: Array<Tag>;
|
7
|
+
needs: Array<Tag>;
|
8
|
+
relations: Array<Item>;
|
9
|
+
updatePermission: boolean;
|
10
|
+
loading: boolean;
|
11
|
+
linkItem: (id: string) => Promise<void>;
|
12
|
+
unlinkItem: (id: string) => Promise<void>;
|
13
|
+
setUrlParams: any;
|
14
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,8 +1,4 @@
|
|
1
1
|
export { UserSettings } from './UserSettings';
|
2
|
-
export {
|
3
|
-
export {
|
4
|
-
export {
|
5
|
-
export { OverlayUserSettings } from './OverlayUserSettings';
|
6
|
-
export { OverlayItemProfile } from './OverlayItemProfile';
|
7
|
-
export { OverlayItemProfileSettings } from './OverlayItemProfileSettings';
|
8
|
-
export { PlusButton } from "./PlusButton";
|
2
|
+
export { PlusButton } from "./Subcomponents/PlusButton";
|
3
|
+
export { ProfileView } from "./ProfileView";
|
4
|
+
export { ProfileForm } from "./ProfileForm";
|
@@ -0,0 +1,5 @@
|
|
1
|
+
export declare const submitNewItem: (evt: any, type: string, item: any, user: any, setLoading: any, tags: any, addTag: any, addItem: any, linkItem: any, resetFilterTags: any, layers: any, addItemPopupType: any, setAddItemPopupType: any) => Promise<void>;
|
2
|
+
export declare const linkItem: (id: string, item: any, updateItem: any) => Promise<void>;
|
3
|
+
export declare const unlinkItem: (id: string, item: any, updateItem: any) => Promise<void>;
|
4
|
+
export declare const handleDelete: (event: React.MouseEvent<HTMLElement>, item: any, setLoading: any, removeItem: any, map: any, navigate: any) => Promise<void>;
|
5
|
+
export declare const onUpdateItem: (state: any, item: any, tags: any, addTag: any, setLoading: any, navigate: any, updateItem: any, addItem: any, user: any, params: any) => Promise<void>;
|
@@ -5,6 +5,8 @@ declare type Props = {
|
|
5
5
|
onClose: () => void;
|
6
6
|
children: React.ReactNode;
|
7
7
|
showCloseButton?: boolean;
|
8
|
+
closeOnClickOutside?: boolean;
|
9
|
+
className?: string;
|
8
10
|
};
|
9
|
-
declare const DialogModal: ({ title, isOpened, onClose, children, showCloseButton }: Props) => import("react/jsx-runtime").JSX.Element;
|
11
|
+
declare const DialogModal: ({ title, isOpened, onClose, children, showCloseButton, closeOnClickOutside, className, }: Props) => import("react/jsx-runtime").JSX.Element;
|
10
12
|
export default DialogModal;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
export declare const EmojiPicker: ({ selectedEmoji, selectedColor, selectedShape, setSelectedEmoji, setSelectedColor, setSelectedShape }: {
|
2
|
+
selectedEmoji: any;
|
3
|
+
selectedColor: any;
|
4
|
+
selectedShape: any;
|
5
|
+
setSelectedEmoji: any;
|
6
|
+
setSelectedColor: any;
|
7
|
+
setSelectedShape: any;
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Item } from '../../types';
|
2
|
+
export declare const ItemCard: ({ i, loading, url, parameterField, deleteCallback }: {
|
3
|
+
i: Item;
|
4
|
+
loading: boolean;
|
5
|
+
url: string;
|
6
|
+
parameterField: string;
|
7
|
+
deleteCallback: any;
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|