utopia-ui 3.0.18 → 3.0.20

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 (74) hide show
  1. package/README.md +9 -7
  2. package/dist/Components/AppShell/AppShell.d.ts +2 -2
  3. package/dist/Components/AppShell/Content.d.ts +1 -1
  4. package/dist/Components/AppShell/SetAppState.d.ts +1 -1
  5. package/dist/Components/AppShell/hooks/useAppState.d.ts +4 -4
  6. package/dist/Components/AppShell/hooks/useAssets.d.ts +2 -2
  7. package/dist/Components/Auth/useAuth.d.ts +8 -8
  8. package/dist/Components/Gaming/Modal.d.ts +1 -1
  9. package/dist/Components/Gaming/hooks/useQuests.d.ts +1 -1
  10. package/dist/Components/Input/Autocomplete.d.ts +1 -1
  11. package/dist/Components/Map/ItemForm.d.ts +5 -6
  12. package/dist/Components/Map/ItemView.d.ts +3 -5
  13. package/dist/Components/Map/Layer.d.ts +1 -1
  14. package/dist/Components/Map/Permissions.d.ts +1 -1
  15. package/dist/Components/Map/Subcomponents/AddButton.d.ts +1 -1
  16. package/dist/Components/Map/Subcomponents/Controls/Control.d.ts +0 -1
  17. package/dist/Components/Map/Subcomponents/ItemFormPopup.d.ts +1 -10
  18. package/dist/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +1 -1
  19. package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.d.ts +1 -1
  20. package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupCheckboxInput.d.ts +1 -1
  21. package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +3 -3
  22. package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.d.ts +1 -1
  23. package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.d.ts +1 -1
  24. package/dist/Components/Map/Subcomponents/ItemPopupComponents/StartEndView.d.ts +1 -1
  25. package/dist/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +1 -1
  26. package/dist/Components/Map/Subcomponents/ItemViewPopup.d.ts +3 -4
  27. package/dist/Components/Map/Tags.d.ts +1 -1
  28. package/dist/Components/Map/UtopiaMap.d.ts +1 -1
  29. package/dist/Components/Map/UtopiaMapInner.d.ts +1 -1
  30. package/dist/Components/Map/hooks/useClusterRef.d.ts +1 -1
  31. package/dist/Components/Map/hooks/useFilter.d.ts +2 -2
  32. package/dist/Components/Map/hooks/useItems.d.ts +2 -2
  33. package/dist/Components/Map/hooks/useLayers.d.ts +2 -2
  34. package/dist/Components/Map/hooks/useLeafletRefs.d.ts +4 -4
  35. package/dist/Components/Map/hooks/usePermissions.d.ts +2 -2
  36. package/dist/Components/Map/hooks/useSelectPosition.d.ts +4 -5
  37. package/dist/Components/Map/hooks/useTags.d.ts +2 -2
  38. package/dist/Components/Profile/ProfileView.d.ts +1 -1
  39. package/dist/Components/Profile/Subcomponents/ActionsButton.d.ts +1 -1
  40. package/dist/Components/Profile/Subcomponents/AvatarWidget.d.ts +1 -1
  41. package/dist/Components/Profile/Subcomponents/ContactInfo.d.ts +6 -3
  42. package/dist/Components/Profile/Subcomponents/ContactInfoForm.d.ts +1 -2
  43. package/dist/Components/Profile/Subcomponents/ContactInfoView.d.ts +1 -1
  44. package/dist/Components/Profile/Subcomponents/GroupSubHeaderView.d.ts +1 -1
  45. package/dist/Components/Profile/Subcomponents/GroupSubheaderForm.d.ts +3 -5
  46. package/dist/Components/Profile/Subcomponents/LinkedItemsHeaderView.d.ts +1 -1
  47. package/dist/Components/Profile/Subcomponents/PlusButton.d.ts +1 -1
  48. package/dist/Components/Profile/Subcomponents/ProfileStartEndForm.d.ts +1 -2
  49. package/dist/Components/Profile/Subcomponents/ProfileStartEndView.d.ts +1 -1
  50. package/dist/Components/Profile/Subcomponents/ProfileTextForm.d.ts +1 -2
  51. package/dist/Components/Profile/Subcomponents/ProfileTextView.d.ts +1 -1
  52. package/dist/Components/Profile/Subcomponents/SocialShareBar.d.ts +2 -2
  53. package/dist/Components/Profile/Subcomponents/SocialShareButton.d.ts +4 -4
  54. package/dist/Components/Profile/Templates/FlexForm.d.ts +1 -3
  55. package/dist/Components/Profile/Templates/FlexView.d.ts +1 -1
  56. package/dist/Components/Profile/Templates/OnepagerForm.d.ts +1 -19
  57. package/dist/Components/Profile/Templates/OnepagerView.d.ts +1 -1
  58. package/dist/Components/Profile/Templates/SimpleView.d.ts +1 -1
  59. package/dist/Components/Profile/Templates/TabsView.d.ts +5 -5
  60. package/dist/Components/Profile/itemFunctions.d.ts +0 -1
  61. package/dist/Components/Templates/AttestationForm.d.ts +1 -1
  62. package/dist/Components/Templates/CardPage.d.ts +3 -3
  63. package/dist/Components/Templates/DateUserInfo.d.ts +1 -1
  64. package/dist/Components/Templates/DialogModal.d.ts +3 -3
  65. package/dist/Components/Templates/ItemCard.d.ts +1 -1
  66. package/dist/Components/Templates/MapOverlayPage.d.ts +1 -1
  67. package/dist/Components/Templates/TagView.d.ts +1 -1
  68. package/dist/Components/Templates/TitleCard.d.ts +1 -1
  69. package/dist/Components/Typography/Subtitle.d.ts +1 -1
  70. package/dist/Utils/MarkerIconFactory.d.ts +1 -2
  71. package/dist/index.js +3100 -3057
  72. package/dist/index.js.map +1 -1
  73. package/dist/types.d.ts +37 -12
  74. package/package.json +15 -4
package/README.md CHANGED
@@ -1,25 +1,27 @@
1
1
  # Utopia UI [![npm version](https://img.shields.io/npm/v/utopia-ui.svg)](https://www.npmjs.com/package/utopia-ui)
2
2
  **UI Framework for Real-Life-Networking-Apps**
3
3
 
4
- *Real change happens in real life when we meet in person and connect as local communities manifesting their ideas with the earth. When we help each other to step out of capitalism and individualism and start building common infrastructure to meet human needs in harmony with Mother Earth.*
4
+ *Real change happens in real life when we meet in person and connect as local communities manifesting their ideas with the earth. When we help each other to step out of our bubbles at home and start building common infrastructure to meet human needs in harmony with Mother Earth.*
5
5
 
6
- *That is why Utopia UI exists. It is a UI kit for minimalist, fast, intuitive and mobile-first map apps, as a tool for local connection and decentralised networking. It can work with any backend or p2p database and any kind of data structure.*
6
+ *That is why Utopia UI exists. It is a UI kit for minimalist, fast, intuitive and mobile-first map apps, as a tool for local connection and decentralised networking. We believe in maps as the perfect link between digital tools and real life action*
7
+
8
+ *It can work with any backend or p2p database and any kind of data structure.*
7
9
 
8
10
  ## Mission
9
11
  Utopia UIs mission is to provide open source building blocks to create beautiful applications with a focus on real life impact, local communities and gamification.
10
12
 
11
13
  The building blocks are designed to allow different networks and communities to assemble their map and app for their specific needs and purpose.
12
14
 
13
- Utopia Game is one of the apps made with Utopia UI. It is an attempt to use gamification to get users to take action and make the map even more alive. Check it out at [utopia-game.org](https://utopia-game.org/) or see the code in the [repository](https://github.com/utopia-os/utopia-game)
15
+ It is the base of [Utopia Map](https://github.com/utopia-os/utopia-map) and [Utopia Game](https://github.com/utopia-os/utopia-game).
14
16
 
15
17
  ## Features
16
18
 
17
19
  * Interactive Component Map with customizable Layers (like Projects, Event, People)
18
20
  * Flexible API-Interface to make it work with every backend or p2p database
19
21
  * Create, Update, Delete Items
20
- * User Authentification API-Interface
21
- * User Profiles
22
- * App Shell
22
+ * User authentification API-Interface
23
+ * Customizable Profiles for users and other items
24
+ * App shell with navigation bar and sidebar
23
25
 
24
26
  ## Getting Started
25
27
 
@@ -65,7 +67,7 @@ And can open our first map app in the browser 🙂
65
67
 
66
68
  ### Static Layers
67
69
 
68
- Now we add some static layer.
70
+ Now we add some static content in two layer.
69
71
 
70
72
  First we put some sample data in a new file called `src/sample-data.js`
71
73
 
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
- import { AssetsApi } from '../../types';
1
+ /// <reference types="react" />
2
+ import { AssetsApi } from '#src/types';
3
3
  export declare function AppShell({ appName, children, assetsApi, userType, }: {
4
4
  appName: string;
5
5
  children: React.ReactNode;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ /// <reference types="react" />
2
2
  declare type ContentProps = {
3
3
  children?: React.ReactNode;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { AssetsApi } from '../../types';
1
+ import { AssetsApi } from '#src/types';
2
2
  export declare const SetAppState: ({ assetsApi, userType, }: {
3
3
  assetsApi: AssetsApi;
4
4
  userType: string;
@@ -1,9 +1,9 @@
1
- import * as React from 'react';
2
- import { AssetsApi } from '../../../types';
3
- declare type AppState = {
1
+ /// <reference types="react" />
2
+ import { AssetsApi } from '#src/types';
3
+ interface AppState {
4
4
  assetsApi: AssetsApi;
5
5
  userType: string;
6
- };
6
+ }
7
7
  declare type UseAppManagerResult = ReturnType<typeof useAppManager>;
8
8
  declare function useAppManager(): {
9
9
  state: AppState;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
- import { AssetsApi } from '../../../types';
1
+ /// <reference types="react" />
2
+ import { AssetsApi } from '#src/types';
3
3
  declare type UseAssetManagerResult = ReturnType<typeof useAssetsManager>;
4
4
  declare function useAssetsManager(): {
5
5
  api: AssetsApi;
@@ -1,15 +1,15 @@
1
- import * as React from 'react';
2
- import { UserApi, UserItem } from '../../types';
3
- declare type AuthProviderProps = {
1
+ /// <reference types="react" />
2
+ import { UserApi, UserItem } from '#src/types';
3
+ interface AuthProviderProps {
4
4
  userApi: UserApi;
5
5
  children?: React.ReactNode;
6
- };
7
- declare type AuthCredentials = {
6
+ }
7
+ interface AuthCredentials {
8
8
  email: string;
9
9
  password: string;
10
10
  otp?: string | undefined;
11
- };
12
- declare type AuthContextProps = {
11
+ }
12
+ interface AuthContextProps {
13
13
  isAuthenticated: boolean;
14
14
  user: UserItem | null;
15
15
  login: (credentials: AuthCredentials) => Promise<UserItem | undefined>;
@@ -20,7 +20,7 @@ declare type AuthContextProps = {
20
20
  token: string | null;
21
21
  requestPasswordReset: (email: string, reset_url: string) => Promise<any>;
22
22
  passwordReset: (token: string, new_password: string) => Promise<any>;
23
- };
23
+ }
24
24
  export declare const AuthProvider: ({ userApi, children }: AuthProviderProps) => import("react/jsx-runtime").JSX.Element;
25
25
  export declare const useAuth: () => AuthContextProps;
26
26
  export {};
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ /// <reference types="react" />
2
2
  export declare function Modal({ children, showOnStartup, }: {
3
3
  children: React.ReactNode;
4
4
  showOnStartup?: boolean;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ /// <reference types="react" />
2
2
  declare type UseQuestManagerResult = ReturnType<typeof useQuestsManager>;
3
3
  declare function useQuestsManager(initialOpen: boolean): {
4
4
  open: boolean;
@@ -1,6 +1,6 @@
1
1
  export declare const Autocomplete: ({ inputProps, suggestions, onSelected, pushFilteredSuggestions, setFocus, }: {
2
2
  inputProps: any;
3
- suggestions: Array<any>;
3
+ suggestions: any[];
4
4
  onSelected: (suggestion: any) => void;
5
5
  pushFilteredSuggestions?: any[] | undefined;
6
6
  setFocus?: boolean | undefined;
@@ -1,16 +1,15 @@
1
- import * as React from 'react';
2
- import { Item } from '../../types';
3
- import * as PropTypes from 'prop-types';
1
+ /// <reference types="react" />
2
+ import { Item } from '#src/types';
4
3
  export declare const ItemForm: {
5
4
  ({ children, item, title, setPopupTitle, }: {
6
5
  children?: React.ReactNode;
7
6
  item?: Item | undefined;
8
7
  title?: string | undefined;
9
- setPopupTitle?: React.Dispatch<React.SetStateAction<string>> | undefined;
8
+ setPopupTitle?: import("react").Dispatch<import("react").SetStateAction<string>> | undefined;
10
9
  }): import("react/jsx-runtime").JSX.Element;
11
10
  propTypes: {
12
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
13
- __TYPE: PropTypes.Requireable<string>;
11
+ children: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
12
+ __TYPE: import("prop-types").Requireable<string>;
14
13
  };
15
14
  defaultProps: {
16
15
  __TYPE: string;
@@ -1,14 +1,12 @@
1
- import * as React from 'react';
2
- import { Item } from '../../types';
3
- import * as PropTypes from 'prop-types';
1
+ import { Item } from '#src/types';
4
2
  export declare const ItemView: {
5
3
  ({ children, item }: {
6
4
  children?: React.ReactNode;
7
5
  item?: Item | undefined;
8
6
  }): import("react/jsx-runtime").JSX.Element;
9
7
  propTypes: {
10
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
11
- __TYPE: PropTypes.Requireable<string>;
8
+ children: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
9
+ __TYPE: import("prop-types").Requireable<string>;
12
10
  };
13
11
  defaultProps: {
14
12
  __TYPE: string;
@@ -1,2 +1,2 @@
1
- import { LayerProps } from '../../types';
1
+ import { LayerProps } from '#src/types';
2
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,4 +1,4 @@
1
- import { ItemsApi, Permission } from '../../types';
1
+ import { ItemsApi, Permission } from '#src/types';
2
2
  export declare function Permissions({ data, api, adminRole, }: {
3
3
  data?: Permission[];
4
4
  api?: ItemsApi<Permission>;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ /// <reference types="react" />
2
2
  export default function AddButton({ triggerAction, }: {
3
3
  triggerAction: React.Dispatch<React.SetStateAction<any>>;
4
4
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- import * as React from 'react';
2
1
  export declare const Control: ({ position, children, zIndex, absolute, }: {
3
2
  position: 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
4
3
  children: React.ReactNode;
@@ -1,11 +1,2 @@
1
- import * as React from 'react';
2
- import { LatLng } from 'leaflet';
3
- import { LayerProps, Item } from '../../../types';
4
- export interface ItemFormPopupProps {
5
- position: LatLng;
6
- layer: LayerProps;
7
- item?: Item;
8
- children?: React.ReactNode;
9
- setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
10
- }
1
+ import { ItemFormPopupProps } from '#src/types';
11
2
  export declare function ItemFormPopup(props: ItemFormPopupProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { Item, ItemsApi } from '../../../../types';
1
+ import { Item, ItemsApi } from '#src/types';
2
2
  export declare function HeaderView({ item, api, editCallback, deleteCallback, setPositionCallback, itemNameField, itemSubnameField, itemAvatarField, loading, hideMenu, big, truncateSubname, hideSubname, showAddress, }: {
3
3
  item: Item;
4
4
  api?: ItemsApi<any>;
@@ -1,4 +1,4 @@
1
- import { Item } from '../../../../types';
1
+ import { Item } from '#src/types';
2
2
  export declare const PopupButton: ({ url, parameterField, text, colorField, item, }: {
3
3
  url: string;
4
4
  parameterField?: string | undefined;
@@ -1,4 +1,4 @@
1
- import { Item } from '../../../../types';
1
+ import { Item } from '#src/types';
2
2
  export declare const PopupCheckboxInput: ({ dataField, label, item, }: {
3
3
  dataField: string;
4
4
  label: string;
@@ -1,9 +1,9 @@
1
- import { Item } from '../../../../types';
2
- declare type StartEndInputProps = {
1
+ import { Item } from '#src/types';
2
+ interface StartEndInputProps {
3
3
  item?: Item;
4
4
  showLabels?: boolean;
5
5
  updateStartValue?: (value: string) => void;
6
6
  updateEndValue?: (value: string) => void;
7
- };
7
+ }
8
8
  export declare const PopupStartEndInput: ({ item, showLabels, updateStartValue, updateEndValue, }: StartEndInputProps) => import("react/jsx-runtime").JSX.Element;
9
9
  export {};
@@ -1,4 +1,4 @@
1
- import { Item } from '../../../../types';
1
+ import { Item } from '#src/types';
2
2
  export declare const PopupTextAreaInput: ({ dataField, placeholder, style, item, }: {
3
3
  dataField: string;
4
4
  placeholder: string;
@@ -1,4 +1,4 @@
1
- import { Item } from '../../../../types';
1
+ import { Item } from '#src/types';
2
2
  export declare const PopupTextInput: ({ dataField, placeholder, style, item, }: {
3
3
  dataField: string;
4
4
  placeholder: string;
@@ -1,4 +1,4 @@
1
- import { Item } from '../../../../types';
1
+ import { Item } from '#src/types';
2
2
  export declare const StartEndView: ({ item }: {
3
3
  item?: Item | undefined;
4
4
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { Item } from '../../../../types';
1
+ import { Item } from '#src/types';
2
2
  export declare const TextView: ({ item, truncate, itemTextField, rawText, }: {
3
3
  item?: Item | undefined;
4
4
  truncate?: boolean | undefined;
@@ -1,9 +1,8 @@
1
- import * as React from 'react';
2
- import { Item } from '../../../types';
3
- import { ItemFormPopupProps } from './ItemFormPopup';
1
+ /// <reference types="react" />
2
+ import { Item, ItemFormPopupProps } from '#src/types';
4
3
  export interface ItemViewPopupProps {
5
4
  item: Item;
6
5
  children?: React.ReactNode;
7
6
  setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
8
7
  }
9
- export declare const ItemViewPopup: React.ForwardRefExoticComponent<ItemViewPopupProps & React.RefAttributes<unknown>>;
8
+ export declare const ItemViewPopup: import("react").ForwardRefExoticComponent<ItemViewPopupProps & import("react").RefAttributes<unknown>>;
@@ -1,4 +1,4 @@
1
- import { ItemsApi, Tag } from '../../types';
1
+ import { ItemsApi, Tag } from '#src/types';
2
2
  export declare function Tags({ data, api }: {
3
3
  data?: Tag[];
4
4
  api?: ItemsApi<Tag>;
@@ -1,4 +1,4 @@
1
- import { UtopiaMapProps } from '../../types';
1
+ import { UtopiaMapProps } from '#src/types';
2
2
  import 'react-toastify/dist/ReactToastify.css';
3
3
  declare function UtopiaMap(props: UtopiaMapProps): import("react/jsx-runtime").JSX.Element;
4
4
  export { UtopiaMap };
@@ -1,4 +1,4 @@
1
1
  import 'leaflet/dist/leaflet.css';
2
- import { UtopiaMapProps } from '../../types';
2
+ import { UtopiaMapProps } from '#src/types';
3
3
  import './UtopiaMap.css';
4
4
  export declare function UtopiaMapInner({ height, width, center, zoom, children, geo, showFilterControl, showGratitudeControl, showLayerControl, infoText, }: UtopiaMapProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ /// <reference types="react" />
2
2
  declare type UseClusterRefManagerResult = ReturnType<typeof useClusterRefManager>;
3
3
  declare function useClusterRefManager(): {
4
4
  clusterRef: any;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
- import { LayerProps, Tag } from '../../../types';
1
+ /// <reference types="react" />
2
+ import { LayerProps, Tag } from '#src/types';
3
3
  declare type UseFilterManagerResult = ReturnType<typeof useFilterManager>;
4
4
  declare function useFilterManager(initialTags: Tag[]): {
5
5
  filterTags: Tag[];
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
- import { Item, LayerProps } from '../../../types';
1
+ /// <reference types="react" />
2
+ import { Item, LayerProps } from '#src/types';
3
3
  declare type UseItemManagerResult = ReturnType<typeof useItemsManager>;
4
4
  declare function useItemsManager(initialItems: Item[]): {
5
5
  items: Item[];
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
- import { LayerProps } from '../../../types';
1
+ /// <reference types="react" />
2
+ import { LayerProps } from '#src/types';
3
3
  declare type UseItemManagerResult = ReturnType<typeof useLayerManager>;
4
4
  declare function useLayerManager(initialLayers: LayerProps[]): {
5
5
  layers: LayerProps[];
@@ -1,11 +1,11 @@
1
- import * as React from 'react';
2
- import { Item } from '../../../types';
1
+ /// <reference types="react" />
3
2
  import { Marker, Popup } from 'leaflet';
4
- declare type LeafletRef = {
3
+ import { Item } from '#src/types';
4
+ interface LeafletRef {
5
5
  item: Item;
6
6
  marker: Marker;
7
7
  popup: Popup;
8
- };
8
+ }
9
9
  declare type UseLeafletRefsManagerResult = ReturnType<typeof useLeafletRefsManager>;
10
10
  declare function useLeafletRefsManager(initialLeafletRefs: {}): {
11
11
  leafletRefs: Record<string, LeafletRef>;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
- import { Item, ItemsApi, LayerProps, Permission, PermissionAction } from '../../../types';
1
+ /// <reference types="react" />
2
+ import { Item, ItemsApi, LayerProps, Permission, PermissionAction } from '#src/types';
3
3
  declare type UsePermissionManagerResult = ReturnType<typeof usePermissionsManager>;
4
4
  declare function usePermissionsManager(initialPermissions: Permission[]): {
5
5
  permissions: Permission[];
@@ -1,11 +1,10 @@
1
- import * as React from 'react';
2
- import { Item, LayerProps } from '../../../types';
1
+ /// <reference types="react" />
3
2
  import { LatLng } from 'leaflet';
4
- import { ItemFormPopupProps } from '../Subcomponents/ItemFormPopup';
5
- declare type PolygonClickedProps = {
3
+ import { Item, LayerProps, ItemFormPopupProps } from '#src/types';
4
+ interface PolygonClickedProps {
6
5
  position: LatLng;
7
6
  setItemFormPopup: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
8
- };
7
+ }
9
8
  declare type UseSelectPositionManagerResult = ReturnType<typeof useSelectPositionManager>;
10
9
  declare function useSelectPositionManager(): {
11
10
  selectPosition: Item | LayerProps | null;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
- import { Item, ItemsApi, Tag } from '../../../types';
1
+ /// <reference types="react" />
2
+ import { Item, ItemsApi, Tag } from '#src/types';
3
3
  declare type UseTagManagerResult = ReturnType<typeof useTagsManager>;
4
4
  declare function useTagsManager(initialTags: Tag[]): {
5
5
  tags: Tag[];
@@ -1,4 +1,4 @@
1
- import { ItemsApi } from '../../types';
1
+ import { ItemsApi } from '#src/types';
2
2
  export declare function ProfileView({ attestationApi }: {
3
3
  attestationApi?: ItemsApi<any>;
4
4
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { Item } from '../../../types';
1
+ import { Item } from '#src/types';
2
2
  export declare function ActionButton({ item, triggerAddButton, triggerItemSelected, existingRelations, itemType, colorField, collection, customStyle, }: {
3
3
  triggerAddButton?: any;
4
4
  triggerItemSelected?: any;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ /// <reference types="react" />
2
2
  import 'react-image-crop/dist/ReactCrop.css';
3
3
  interface AvatarWidgetProps {
4
4
  avatar: string;
@@ -1,5 +1,8 @@
1
- import { Item } from '../../../types';
2
- declare const ContactInfo: ({ item }: {
3
- item: Item;
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;
4
7
  }) => import("react/jsx-runtime").JSX.Element;
5
8
  export default ContactInfo;
@@ -1,5 +1,4 @@
1
- import * as React from 'react';
2
- import { FormState } from '../Templates/OnepagerForm';
1
+ import { FormState } from '#src/types';
3
2
  export declare const ContactInfoForm: ({ state, setState, }: {
4
3
  state: FormState;
5
4
  setState: React.Dispatch<React.SetStateAction<any>>;
@@ -1,4 +1,4 @@
1
- import { Item } from '../../../types';
1
+ import { Item } from '#src/types';
2
2
  export declare const ContactInfoView: ({ item, heading }: {
3
3
  item: Item;
4
4
  heading: string;
@@ -1,4 +1,4 @@
1
- import { Item } from '../../../types';
1
+ import { Item } from '#src/types';
2
2
  export declare const GroupSubHeaderView: ({ item, shareBaseUrl, platforms, }: {
3
3
  item: Item;
4
4
  shareBaseUrl: string;
@@ -1,14 +1,12 @@
1
- import * as React from 'react';
2
- import { Item } from '../../../types';
3
- import { FormState } from '../Templates/OnepagerForm';
4
- declare type groupType = {
1
+ import { Item, FormState } from '#src/types';
2
+ interface groupType {
5
3
  groupTypes_id: {
6
4
  name: string;
7
5
  color: string;
8
6
  image: string;
9
7
  markerIcon: string;
10
8
  };
11
- };
9
+ }
12
10
  export declare const GroupSubheaderForm: ({ state, setState, groupStates, groupTypes, }: {
13
11
  state: FormState;
14
12
  setState: React.Dispatch<React.SetStateAction<any>>;
@@ -1,4 +1,4 @@
1
- import { Item } from '../../../types';
1
+ import { Item } from '#src/types';
2
2
  export declare function LinkedItemsHeaderView({ item, unlinkCallback, itemNameField, itemAvatarField, loading, unlinkPermission, itemSubnameField, }: {
3
3
  item: Item;
4
4
  unlinkCallback?: any;
@@ -1,4 +1,4 @@
1
- import { LayerProps } from '../../../types';
1
+ import { LayerProps } from '#src/types';
2
2
  export declare function PlusButton({ layer, triggerAction, color, collection, }: {
3
3
  layer?: LayerProps;
4
4
  triggerAction: any;
@@ -1,5 +1,4 @@
1
- import * as React from 'react';
2
- import { Item } from '../../../types';
1
+ import { Item } from '#src/types';
3
2
  export declare const ProfileStartEndForm: ({ item, setState, }: {
4
3
  item: Item;
5
4
  setState: React.Dispatch<React.SetStateAction<any>>;
@@ -1,4 +1,4 @@
1
- import { Item } from '../../../types';
1
+ import { Item } from '#src/types';
2
2
  export declare const ProfileStartEndView: ({ item }: {
3
3
  item: Item;
4
4
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,4 @@
1
- import * as React from 'react';
2
- import { FormState } from '../Templates/OnepagerForm';
1
+ import { FormState } from '#src/types';
3
2
  export declare const ProfileTextForm: ({ state, setState, dataField, heading, size, hideInputLabel, }: {
4
3
  state: FormState;
5
4
  setState: React.Dispatch<React.SetStateAction<any>>;
@@ -1,4 +1,4 @@
1
- import { Item } from '../../../types';
1
+ import { Item } from '#src/types';
2
2
  export declare const ProfileTextView: ({ item, dataField, heading, hideWhenEmpty, }: {
3
3
  item: Item;
4
4
  dataField: string;
@@ -1,6 +1,6 @@
1
1
  declare const SocialShareBar: ({ url, title, platforms, }: {
2
- url: any;
3
- title: any;
2
+ url: string;
3
+ title: string;
4
4
  platforms?: string[] | undefined;
5
5
  }) => import("react/jsx-runtime").JSX.Element;
6
6
  export default SocialShareBar;
@@ -1,6 +1,6 @@
1
- declare const SocialShareButton: ({ platform, url, title }: {
2
- platform: any;
3
- url: any;
4
- title: any;
1
+ declare const SocialShareButton: ({ platform, url, title, }: {
2
+ platform: string;
3
+ url: string;
4
+ title: string;
5
5
  }) => import("react/jsx-runtime").JSX.Element | null;
6
6
  export default SocialShareButton;
@@ -1,6 +1,4 @@
1
- import * as React from 'react';
2
- import { Item } from '../../../types';
3
- import { FormState } from './OnepagerForm';
1
+ import { Item, FormState } from '#src/types';
4
2
  export declare const FlexForm: ({ item, state, setState, }: {
5
3
  state: FormState;
6
4
  setState: React.Dispatch<React.SetStateAction<any>>;
@@ -1,4 +1,4 @@
1
- import { Item } from '../../../types';
1
+ import { Item } from '#src/types';
2
2
  export declare const FlexView: ({ item }: {
3
3
  item: Item;
4
4
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,22 +1,4 @@
1
- import * as React from 'react';
2
- import { Item, Tag } from '../../../types';
3
- export declare type FormState = {
4
- color: string;
5
- id: string;
6
- group_type: string;
7
- status: string;
8
- name: string;
9
- subname: string;
10
- text: string;
11
- contact: string;
12
- telephone: string;
13
- next_appointment: string;
14
- image: string;
15
- marker_icon: string;
16
- offers: Tag[];
17
- needs: Tag[];
18
- relations: Item[];
19
- };
1
+ import { FormState, Item } from '#src/types';
20
2
  export declare const OnepagerForm: ({ item, state, setState, }: {
21
3
  state: FormState;
22
4
  setState: React.Dispatch<React.SetStateAction<any>>;
@@ -1,4 +1,4 @@
1
- import { Item } from '../../../types';
1
+ import { Item } from '#src/types';
2
2
  export declare const OnepagerView: ({ item }: {
3
3
  item: Item;
4
4
  }) => import("react/jsx-runtime").JSX.Element;