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.
Files changed (176) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +29 -26
  3. package/dist/Components/AppShell/AppShell.d.ts +3 -2
  4. package/dist/Components/AppShell/ContextWrapper.d.ts +6 -0
  5. package/dist/Components/AppShell/NavBar.d.ts +2 -2
  6. package/dist/Components/AppShell/SideBar.d.ts +0 -1
  7. package/dist/Components/AppShell/SidebarSubmenu.d.ts +0 -1
  8. package/dist/Components/AppShell/Sitemap.d.ts +3 -0
  9. package/dist/Components/AppShell/index.d.ts +1 -0
  10. package/dist/Components/Input/ComboBoxInput.d.ts +11 -0
  11. package/dist/Components/Map/Layer.d.ts +1 -1
  12. package/dist/Components/Map/Subcomponents/Controls/Control.d.ts +2 -1
  13. package/dist/Components/Map/Subcomponents/Controls/FilterControl.d.ts +1 -2
  14. package/dist/Components/Map/Subcomponents/Controls/GratitudeControl.d.ts +1 -0
  15. package/dist/Components/Map/Subcomponents/Controls/SearchControl.d.ts +1 -3
  16. package/dist/Components/Map/Subcomponents/Controls/SidebarControl.d.ts +1 -0
  17. package/dist/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +14 -5
  18. package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupCheckboxInput.d.ts +6 -0
  19. package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +8 -3
  20. package/dist/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +2 -1
  21. package/dist/Components/Map/Subcomponents/SelectPosition.d.ts +3 -0
  22. package/dist/Components/Map/UtopiaMap.d.ts +2 -10
  23. package/dist/Components/Map/UtopiaMapInner.d.ts +4 -0
  24. package/dist/Components/Map/hooks/useClusterRef.d.ts +12 -0
  25. package/dist/Components/Map/hooks/useFilter.d.ts +8 -0
  26. package/dist/Components/Map/hooks/usePermissions.d.ts +2 -2
  27. package/dist/Components/Map/hooks/useSelectPosition.d.ts +23 -0
  28. package/dist/Components/Map/index.d.ts +1 -0
  29. package/dist/Components/Map/setItemLocation.d.ts +1 -0
  30. package/dist/Components/Profile/ProfileForm.d.ts +3 -0
  31. package/dist/Components/Profile/ProfileView.d.ts +5 -0
  32. package/dist/Components/Profile/Subcomponents/ActionsButton.d.ts +11 -0
  33. package/dist/Components/Profile/Subcomponents/AvatarWidget.d.ts +8 -0
  34. package/dist/Components/Profile/Subcomponents/ContactInfo.d.ts +8 -0
  35. package/dist/Components/Profile/Subcomponents/FormHeader.d.ts +5 -0
  36. package/dist/Components/Profile/Subcomponents/LinkedItemsHeaderView.d.ts +10 -0
  37. package/dist/Components/Profile/Subcomponents/PlusButton.d.ts +7 -0
  38. package/dist/Components/Profile/Subcomponents/ProfileSubHeader.d.ts +7 -0
  39. package/dist/Components/Profile/Subcomponents/RelationCard.d.ts +6 -0
  40. package/dist/Components/Profile/Subcomponents/SocialShareBar.d.ts +6 -0
  41. package/dist/Components/Profile/Subcomponents/SocialShareButton.d.ts +6 -0
  42. package/dist/Components/Profile/Templates/OnepagerForm.d.ts +22 -0
  43. package/dist/Components/Profile/Templates/OnepagerView.d.ts +5 -0
  44. package/dist/Components/Profile/Templates/SimpleForm.d.ts +4 -0
  45. package/dist/Components/Profile/Templates/SimpleView.d.ts +4 -0
  46. package/dist/Components/Profile/Templates/TabsForm.d.ts +10 -0
  47. package/dist/Components/Profile/Templates/TabsView.d.ts +14 -0
  48. package/dist/Components/Profile/UserSettings.d.ts +0 -2
  49. package/dist/Components/Profile/index.d.ts +3 -7
  50. package/dist/Components/Profile/itemFunctions.d.ts +5 -0
  51. package/dist/Components/Templates/AttestationForm.d.ts +4 -0
  52. package/dist/Components/Templates/DateUserInfo.d.ts +4 -0
  53. package/dist/Components/Templates/DialogModal.d.ts +3 -1
  54. package/dist/Components/Templates/EmojiPicker.d.ts +8 -0
  55. package/dist/Components/Templates/ItemCard.d.ts +8 -0
  56. package/dist/Components/Templates/OverlayItemsIndexPage.d.ts +6 -0
  57. package/dist/Components/Templates/SelectUser.d.ts +3 -0
  58. package/dist/Components/Templates/index.d.ts +3 -3
  59. package/dist/Utils/ReverseGeocoder.d.ts +1 -0
  60. package/dist/index.d.ts +4 -4
  61. package/dist/index.js +3117 -2257
  62. package/dist/index.js.map +1 -1
  63. package/dist/types.d.ts +23 -1
  64. package/package.json +2 -2
  65. package/LICENSE.md +0 -5
  66. package/dist/Components/Auth/LoginPage copy.d.ts +0 -2
  67. package/dist/Components/Auth/ResetPasswordPage.d.ts +0 -2
  68. package/dist/Components/Auth/Signuppage.d.ts +0 -2
  69. package/dist/Components/Map/Subcomponents/Control.d.ts +0 -5
  70. package/dist/Components/Map/Subcomponents/FilterControl.d.ts +0 -2
  71. package/dist/Components/Map/Subcomponents/LayerControl.d.ts +0 -2
  72. package/dist/Components/Map/Subcomponents/QuestControl.d.ts +0 -2
  73. package/dist/Components/Profile/AvatarWidget.d.ts +0 -5
  74. package/dist/Components/Profile/Editor.d.ts +0 -4
  75. package/dist/Components/Profile/OverlayItemProfile.d.ts +0 -1
  76. package/dist/Components/Profile/OverlayItemProfileSettings.d.ts +0 -1
  77. package/dist/Components/Profile/OverlayProfile.d.ts +0 -1
  78. package/dist/Components/Profile/OverlayProfileSettings.d.ts +0 -1
  79. package/dist/Components/Profile/OverlayUserSettings.d.ts +0 -1
  80. package/dist/Components/Profile/PlusButton.d.ts +0 -5
  81. package/dist/Components/Profile/ProfileSettings.d.ts +0 -3
  82. package/dist/Components/Profile/Settings.d.ts +0 -4
  83. package/dist/Components/Profile/Tags.d.ts +0 -2
  84. package/dist/Components/Templates/ItemViewPage.d.ts +0 -14
  85. package/dist/Components/Templates/ItemsIndexPage.d.ts +0 -18
  86. package/dist/Components/Templates/MapOverlayScreen.d.ts +0 -4
  87. package/dist/Utils/DynamicHeroIcon.d.ts +0 -7
  88. package/dist/workspace/utopia-ui/src/Components/AppShell/AppShell.d.ts +0 -8
  89. package/dist/workspace/utopia-ui/src/Components/AppShell/Content.d.ts +0 -6
  90. package/dist/workspace/utopia-ui/src/Components/AppShell/NavBar.d.ts +0 -4
  91. package/dist/workspace/utopia-ui/src/Components/AppShell/SetAssetsApi.d.ts +0 -4
  92. package/dist/workspace/utopia-ui/src/Components/AppShell/SideBar.d.ts +0 -12
  93. package/dist/workspace/utopia-ui/src/Components/AppShell/SidebarSubmenu.d.ts +0 -7
  94. package/dist/workspace/utopia-ui/src/Components/AppShell/hooks/useAssets.d.ts +0 -13
  95. package/dist/workspace/utopia-ui/src/Components/AppShell/index.d.ts +0 -3
  96. package/dist/workspace/utopia-ui/src/Components/Auth/LoginPage.d.ts +0 -1
  97. package/dist/workspace/utopia-ui/src/Components/Auth/RequestPasswordPage.d.ts +0 -3
  98. package/dist/workspace/utopia-ui/src/Components/Auth/SetNewPasswordPage.d.ts +0 -1
  99. package/dist/workspace/utopia-ui/src/Components/Auth/SignupPage.d.ts +0 -1
  100. package/dist/workspace/utopia-ui/src/Components/Auth/index.d.ts +0 -5
  101. package/dist/workspace/utopia-ui/src/Components/Auth/useAuth.d.ts +0 -26
  102. package/dist/workspace/utopia-ui/src/Components/Gaming/Modal.d.ts +0 -5
  103. package/dist/workspace/utopia-ui/src/Components/Gaming/Quests.d.ts +0 -1
  104. package/dist/workspace/utopia-ui/src/Components/Gaming/hooks/useQuests.d.ts +0 -13
  105. package/dist/workspace/utopia-ui/src/Components/Gaming/index.d.ts +0 -2
  106. package/dist/workspace/utopia-ui/src/Components/Input/Autocomplete.d.ts +0 -7
  107. package/dist/workspace/utopia-ui/src/Components/Input/SelectBox.d.ts +0 -16
  108. package/dist/workspace/utopia-ui/src/Components/Input/TextAreaInput.d.ts +0 -12
  109. package/dist/workspace/utopia-ui/src/Components/Input/TextInput.d.ts +0 -14
  110. package/dist/workspace/utopia-ui/src/Components/Input/index.d.ts +0 -3
  111. package/dist/workspace/utopia-ui/src/Components/Map/ItemForm.d.ts +0 -18
  112. package/dist/workspace/utopia-ui/src/Components/Map/ItemView.d.ts +0 -16
  113. package/dist/workspace/utopia-ui/src/Components/Map/Layer.d.ts +0 -2
  114. package/dist/workspace/utopia-ui/src/Components/Map/Permissions.d.ts +0 -6
  115. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/AddButton.d.ts +0 -4
  116. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/Control.d.ts +0 -6
  117. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/LayerControl.d.ts +0 -1
  118. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/LocateControl.d.ts +0 -3
  119. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/QuestControl.d.ts +0 -1
  120. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/SearchControl.d.ts +0 -3
  121. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/TagsControl.d.ts +0 -1
  122. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemFormPopup.d.ts +0 -11
  123. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +0 -7
  124. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.d.ts +0 -8
  125. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +0 -4
  126. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.d.ts +0 -7
  127. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.d.ts +0 -7
  128. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/StartEndView.d.ts +0 -4
  129. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +0 -6
  130. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemViewPopup.d.ts +0 -9
  131. package/dist/workspace/utopia-ui/src/Components/Map/Tags.d.ts +0 -5
  132. package/dist/workspace/utopia-ui/src/Components/Map/UtopiaMap.d.ts +0 -11
  133. package/dist/workspace/utopia-ui/src/Components/Map/hooks/useDebounce.d.ts +0 -1
  134. package/dist/workspace/utopia-ui/src/Components/Map/hooks/useFilter.d.ts +0 -32
  135. package/dist/workspace/utopia-ui/src/Components/Map/hooks/useItems.d.ts +0 -26
  136. package/dist/workspace/utopia-ui/src/Components/Map/hooks/useLayers.d.ts +0 -14
  137. package/dist/workspace/utopia-ui/src/Components/Map/hooks/useLeafletRefs.d.ts +0 -22
  138. package/dist/workspace/utopia-ui/src/Components/Map/hooks/usePermissions.d.ts +0 -20
  139. package/dist/workspace/utopia-ui/src/Components/Map/hooks/useTags.d.ts +0 -22
  140. package/dist/workspace/utopia-ui/src/Components/Map/hooks/useTimeout.d.ts +0 -4
  141. package/dist/workspace/utopia-ui/src/Components/Map/hooks/useWindowDimension.d.ts +0 -4
  142. package/dist/workspace/utopia-ui/src/Components/Map/index.d.ts +0 -12
  143. package/dist/workspace/utopia-ui/src/Components/Profile/ColorPicker.d.ts +0 -6
  144. package/dist/workspace/utopia-ui/src/Components/Profile/Editor.d.ts +0 -4
  145. package/dist/workspace/utopia-ui/src/Components/Profile/OverlayProfile.d.ts +0 -1
  146. package/dist/workspace/utopia-ui/src/Components/Profile/OverlayProfileSettings.d.ts +0 -1
  147. package/dist/workspace/utopia-ui/src/Components/Profile/OverlayUserSettings.d.ts +0 -1
  148. package/dist/workspace/utopia-ui/src/Components/Profile/ProfileSettings.d.ts +0 -3
  149. package/dist/workspace/utopia-ui/src/Components/Profile/TagsWidget.d.ts +0 -6
  150. package/dist/workspace/utopia-ui/src/Components/Profile/UserSettings.d.ts +0 -3
  151. package/dist/workspace/utopia-ui/src/Components/Profile/index.d.ts +0 -5
  152. package/dist/workspace/utopia-ui/src/Components/Profile/useClickOutside.d.ts +0 -2
  153. package/dist/workspace/utopia-ui/src/Components/Templates/CardPage.d.ts +0 -10
  154. package/dist/workspace/utopia-ui/src/Components/Templates/CircleLayout.d.ts +0 -5
  155. package/dist/workspace/utopia-ui/src/Components/Templates/DialogModal.d.ts +0 -10
  156. package/dist/workspace/utopia-ui/src/Components/Templates/ItemsIndexPage.d.ts +0 -15
  157. package/dist/workspace/utopia-ui/src/Components/Templates/MapOverlayPage.d.ts +0 -7
  158. package/dist/workspace/utopia-ui/src/Components/Templates/MoonCalendar.d.ts +0 -1
  159. package/dist/workspace/utopia-ui/src/Components/Templates/TagView.d.ts +0 -6
  160. package/dist/workspace/utopia-ui/src/Components/Templates/TitleCard.d.ts +0 -11
  161. package/dist/workspace/utopia-ui/src/Components/Templates/index.d.ts +0 -6
  162. package/dist/workspace/utopia-ui/src/Components/Typography/ErrorText.d.ts +0 -5
  163. package/dist/workspace/utopia-ui/src/Components/Typography/Subtitle.d.ts +0 -6
  164. package/dist/workspace/utopia-ui/src/Utils/FormatTags.d.ts +0 -2
  165. package/dist/workspace/utopia-ui/src/Utils/GetValue.d.ts +0 -1
  166. package/dist/workspace/utopia-ui/src/Utils/HashTagRegex.d.ts +0 -1
  167. package/dist/workspace/utopia-ui/src/Utils/MarkerIconFactory.d.ts +0 -3
  168. package/dist/workspace/utopia-ui/src/Utils/Moon.d.ts +0 -7
  169. package/dist/workspace/utopia-ui/src/Utils/RandomColor.d.ts +0 -1
  170. package/dist/workspace/utopia-ui/src/Utils/ReplaceURLs.d.ts +0 -3
  171. package/dist/workspace/utopia-ui/src/Utils/TimeAgo.d.ts +0 -1
  172. package/dist/workspace/utopia-ui/src/index.d.ts +0 -13
  173. package/dist/workspace/utopia-ui/src/types.d.ts +0 -108
  174. /package/dist/Components/Profile/{ColorPicker.d.ts → Subcomponents/ColorPicker.d.ts} +0 -0
  175. /package/dist/Components/Profile/{TagsWidget.d.ts → Subcomponents/TagsWidget.d.ts} +0 -0
  176. /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, Tags } from 'utopia-ui'
40
-
41
- <UtopiaMap zoom={5} height='calc(100vh - 64px)' width="100%">
42
- <Layer
43
- name='events'
44
- menuIcon='CalendarIcon'
45
- menuText='add new event'
46
- menuColor='#f9a825'
47
- markerIcon='calendar-days-solid'
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='circle-solid'
57
- markerShape='circle'
58
- markerDefaultColor='#777'
59
- data={places} />
60
- <Tags data={tags}></Tags>
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 early alpha stage. You are very welcome to participate in the development*
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/utopiaOS](https://t.me/utopiaOS)
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
- export declare function AppShell({ appName, nameWidth, children, assetsApi }: {
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,6 @@
1
+ export declare const ContextWrapper: ({ children }: {
2
+ children: any;
3
+ }) => any;
4
+ export declare const Wrappers: ({ children }: {
5
+ children: any;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- export default function NavBar({ appName, nameWidth }: {
1
+ export default function NavBar({ appName, userType }: {
2
2
  appName: string;
3
- nameWidth?: number;
3
+ userType: string;
4
4
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare type route = {
3
2
  path: string;
4
3
  icon: JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare function SidebarSubmenu({ submenu, name, icon }: {
3
2
  path: string;
4
3
  icon: JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare const Sitemap: ({ url }: {
2
+ url: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,4 @@
1
1
  export { AppShell } from "./AppShell";
2
2
  export { SideBar } from "./SideBar";
3
3
  export { Content } from "./Content";
4
+ export { Sitemap } from "./Sitemap";
@@ -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
- /// <reference types="react" />
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;
@@ -1,3 +1 @@
1
- export declare const SearchControl: ({ clusterRef }: {
2
- clusterRef: any;
3
- }) => import("react/jsx-runtime").JSX.Element;
1
+ export declare const SearchControl: () => 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 * as React from "react";
2
- import { ItemFormPopupProps } from "../ItemFormPopup";
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
- setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
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;
@@ -0,0 +1,6 @@
1
+ import { Item } from '../../../../types';
2
+ export declare const PopupCheckboxInput: ({ dataField, label, item }: {
3
+ dataField: string;
4
+ label: string;
5
+ item?: Item | undefined;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,9 @@
1
1
  import { Item } from '../../../../types';
2
- export declare const PopupStartEndInput: ({ item }: {
3
- item?: Item | undefined;
4
- }) => import("react/jsx-runtime").JSX.Element;
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;
@@ -0,0 +1,3 @@
1
+ export declare const SelectPosition: ({ setSelectNewItemPosition }: {
2
+ setSelectNewItemPosition: any;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,3 @@
1
- import "leaflet/dist/leaflet.css";
2
- import * as React from "react";
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,3 @@
1
+ export declare function ProfileForm({ userType }: {
2
+ userType: string;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { ItemsApi } from '../../types';
2
+ export declare function ProfileView({ userType, attestationApi }: {
3
+ userType: string;
4
+ attestationApi?: ItemsApi<any>;
5
+ }): 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,8 @@
1
+ declare const ContactInfo: ({ email, telephone, name, avatar, link }: {
2
+ email: string;
3
+ telephone: string;
4
+ name: string;
5
+ avatar: string;
6
+ link?: string | undefined;
7
+ }) => import("react/jsx-runtime").JSX.Element;
8
+ export default ContactInfo;
@@ -0,0 +1,5 @@
1
+ export declare const FormHeader: ({ item, state, setState }: {
2
+ item: any;
3
+ state: any;
4
+ setState: any;
5
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -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,7 @@
1
+ import { LayerProps } from "../../../types";
2
+ export declare function PlusButton({ layer, triggerAction, color, collection }: {
3
+ layer?: LayerProps;
4
+ triggerAction: any;
5
+ color: string;
6
+ collection?: string;
7
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ declare const SubHeader: ({ type, status, url, title }: {
2
+ type: any;
3
+ status: any;
4
+ url: any;
5
+ title: any;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ export default SubHeader;
@@ -0,0 +1,6 @@
1
+ declare const RelationCard: ({ title, description, imageSrc }: {
2
+ title: any;
3
+ description: any;
4
+ imageSrc: any;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export default RelationCard;
@@ -0,0 +1,6 @@
1
+ declare const SocialShareBar: ({ url, title, platforms }: {
2
+ url: any;
3
+ title: any;
4
+ platforms?: string[] | undefined;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export default SocialShareBar;
@@ -0,0 +1,6 @@
1
+ declare const SocialShareButton: ({ platform, url, title }: {
2
+ platform: any;
3
+ url: any;
4
+ title: any;
5
+ }) => import("react/jsx-runtime").JSX.Element | null;
6
+ export default SocialShareButton;
@@ -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,5 @@
1
+ import { Item } from "utopia-ui/dist/types";
2
+ export declare const OnepagerView: ({ item, userType }: {
3
+ item: Item;
4
+ userType: string;
5
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export declare const SimpleForm: ({ state, setState }: {
2
+ state: any;
3
+ setState: any;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { Item } from '../../../types';
2
+ export declare const SimpleView: ({ item }: {
3
+ item: Item;
4
+ }) => 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,3 +1 @@
1
- import 'react-image-crop/dist/ReactCrop.css';
2
- import 'react-toastify/dist/ReactToastify.css';
3
1
  export declare function UserSettings(): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,4 @@
1
1
  export { UserSettings } from './UserSettings';
2
- export { ProfileSettings } from './ProfileSettings';
3
- export { OverlayProfile } from './OverlayProfile';
4
- export { OverlayProfileSettings } from './OverlayProfileSettings';
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>;
@@ -0,0 +1,4 @@
1
+ import { ItemsApi } from '../../types';
2
+ export declare const AttestationForm: ({ api }: {
3
+ api?: ItemsApi<any> | undefined;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { Item } from "../../types";
2
+ export declare const DateUserInfo: ({ item }: {
3
+ item: Item;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -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;
@@ -0,0 +1,6 @@
1
+ export declare const OverlayItemsIndexPage: ({ url, layerName, parameterField, plusButton }: {
2
+ layerName: string;
3
+ url: string;
4
+ parameterField: string;
5
+ plusButton?: boolean | undefined;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare const SelectUser: ({ userType }: {
2
+ userType: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;