utopia-ui 3.0.19 → 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.
- package/README.md +9 -7
- package/dist/Components/AppShell/AppShell.d.ts +2 -2
- package/dist/Components/AppShell/Content.d.ts +1 -1
- package/dist/Components/AppShell/SetAppState.d.ts +1 -1
- package/dist/Components/AppShell/hooks/useAppState.d.ts +4 -4
- package/dist/Components/AppShell/hooks/useAssets.d.ts +2 -2
- package/dist/Components/Auth/useAuth.d.ts +8 -8
- package/dist/Components/Gaming/Modal.d.ts +1 -1
- package/dist/Components/Gaming/hooks/useQuests.d.ts +1 -1
- package/dist/Components/Input/Autocomplete.d.ts +1 -1
- package/dist/Components/Map/ItemForm.d.ts +5 -6
- package/dist/Components/Map/ItemView.d.ts +3 -5
- package/dist/Components/Map/Layer.d.ts +1 -1
- package/dist/Components/Map/Permissions.d.ts +1 -1
- package/dist/Components/Map/Subcomponents/AddButton.d.ts +1 -1
- package/dist/Components/Map/Subcomponents/Controls/Control.d.ts +0 -1
- package/dist/Components/Map/Subcomponents/ItemFormPopup.d.ts +1 -10
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +1 -1
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.d.ts +1 -1
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupCheckboxInput.d.ts +1 -1
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +3 -3
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.d.ts +1 -1
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.d.ts +1 -1
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/StartEndView.d.ts +1 -1
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +1 -1
- package/dist/Components/Map/Subcomponents/ItemViewPopup.d.ts +3 -4
- package/dist/Components/Map/Tags.d.ts +1 -1
- package/dist/Components/Map/UtopiaMap.d.ts +1 -1
- package/dist/Components/Map/UtopiaMapInner.d.ts +1 -1
- package/dist/Components/Map/hooks/useClusterRef.d.ts +1 -1
- package/dist/Components/Map/hooks/useFilter.d.ts +2 -2
- package/dist/Components/Map/hooks/useItems.d.ts +2 -2
- package/dist/Components/Map/hooks/useLayers.d.ts +2 -2
- package/dist/Components/Map/hooks/useLeafletRefs.d.ts +4 -4
- package/dist/Components/Map/hooks/usePermissions.d.ts +2 -2
- package/dist/Components/Map/hooks/useSelectPosition.d.ts +4 -5
- package/dist/Components/Map/hooks/useTags.d.ts +2 -2
- package/dist/Components/Profile/ProfileView.d.ts +1 -1
- package/dist/Components/Profile/Subcomponents/ActionsButton.d.ts +1 -1
- package/dist/Components/Profile/Subcomponents/AvatarWidget.d.ts +1 -1
- package/dist/Components/Profile/Subcomponents/ContactInfo.d.ts +6 -3
- package/dist/Components/Profile/Subcomponents/ContactInfoForm.d.ts +1 -2
- package/dist/Components/Profile/Subcomponents/ContactInfoView.d.ts +1 -1
- package/dist/Components/Profile/Subcomponents/GroupSubHeaderView.d.ts +1 -1
- package/dist/Components/Profile/Subcomponents/GroupSubheaderForm.d.ts +3 -5
- package/dist/Components/Profile/Subcomponents/LinkedItemsHeaderView.d.ts +1 -1
- package/dist/Components/Profile/Subcomponents/PlusButton.d.ts +1 -1
- package/dist/Components/Profile/Subcomponents/ProfileStartEndForm.d.ts +1 -2
- package/dist/Components/Profile/Subcomponents/ProfileStartEndView.d.ts +1 -1
- package/dist/Components/Profile/Subcomponents/ProfileTextForm.d.ts +1 -2
- package/dist/Components/Profile/Subcomponents/ProfileTextView.d.ts +1 -1
- package/dist/Components/Profile/Subcomponents/SocialShareBar.d.ts +2 -2
- package/dist/Components/Profile/Subcomponents/SocialShareButton.d.ts +4 -4
- package/dist/Components/Profile/Templates/FlexForm.d.ts +1 -3
- package/dist/Components/Profile/Templates/FlexView.d.ts +1 -1
- package/dist/Components/Profile/Templates/OnepagerForm.d.ts +1 -19
- package/dist/Components/Profile/Templates/OnepagerView.d.ts +1 -1
- package/dist/Components/Profile/Templates/SimpleView.d.ts +1 -1
- package/dist/Components/Profile/Templates/TabsView.d.ts +5 -5
- package/dist/Components/Profile/itemFunctions.d.ts +0 -1
- package/dist/Components/Templates/AttestationForm.d.ts +1 -1
- package/dist/Components/Templates/CardPage.d.ts +3 -3
- package/dist/Components/Templates/DateUserInfo.d.ts +1 -1
- package/dist/Components/Templates/DialogModal.d.ts +3 -3
- package/dist/Components/Templates/ItemCard.d.ts +1 -1
- package/dist/Components/Templates/MapOverlayPage.d.ts +1 -1
- package/dist/Components/Templates/TagView.d.ts +1 -1
- package/dist/Components/Templates/TitleCard.d.ts +1 -1
- package/dist/Components/Typography/Subtitle.d.ts +1 -1
- package/dist/Utils/MarkerIconFactory.d.ts +1 -2
- package/dist/index.js +3100 -3057
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +37 -12
- package/package.json +15 -4
package/README.md
CHANGED
@@ -1,25 +1,27 @@
|
|
1
1
|
# Utopia UI [](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
|
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.
|
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
|
-
|
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
|
21
|
-
*
|
22
|
-
* App
|
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
|
-
|
2
|
-
import { AssetsApi } from '
|
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,9 +1,9 @@
|
|
1
|
-
|
2
|
-
import { AssetsApi } from '
|
3
|
-
|
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
|
-
|
2
|
-
import { AssetsApi } from '
|
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
|
-
|
2
|
-
import { UserApi, UserItem } from '
|
3
|
-
|
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
|
-
|
6
|
+
}
|
7
|
+
interface AuthCredentials {
|
8
8
|
email: string;
|
9
9
|
password: string;
|
10
10
|
otp?: string | undefined;
|
11
|
-
}
|
12
|
-
|
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,6 +1,6 @@
|
|
1
1
|
export declare const Autocomplete: ({ inputProps, suggestions, onSelected, pushFilteredSuggestions, setFocus, }: {
|
2
2
|
inputProps: any;
|
3
|
-
suggestions:
|
3
|
+
suggestions: any[];
|
4
4
|
onSelected: (suggestion: any) => void;
|
5
5
|
pushFilteredSuggestions?: any[] | undefined;
|
6
6
|
setFocus?: boolean | undefined;
|
@@ -1,16 +1,15 @@
|
|
1
|
-
|
2
|
-
import { Item } from '
|
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?:
|
8
|
+
setPopupTitle?: import("react").Dispatch<import("react").SetStateAction<string>> | undefined;
|
10
9
|
}): import("react/jsx-runtime").JSX.Element;
|
11
10
|
propTypes: {
|
12
|
-
children:
|
13
|
-
__TYPE:
|
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
|
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:
|
11
|
-
__TYPE:
|
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 '
|
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,11 +1,2 @@
|
|
1
|
-
import
|
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 '
|
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,9 +1,9 @@
|
|
1
|
-
import { Item } from '
|
2
|
-
|
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,9 +1,8 @@
|
|
1
|
-
|
2
|
-
import { Item } from '
|
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:
|
8
|
+
export declare const ItemViewPopup: import("react").ForwardRefExoticComponent<ItemViewPopupProps & import("react").RefAttributes<unknown>>;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import 'leaflet/dist/leaflet.css';
|
2
|
-
import { UtopiaMapProps } from '
|
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,5 +1,5 @@
|
|
1
|
-
|
2
|
-
import { LayerProps, Tag } from '
|
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
|
-
|
2
|
-
import { Item, LayerProps } from '
|
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
|
-
|
2
|
-
import { LayerProps } from '
|
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
|
-
|
2
|
-
import { Item } from '../../../types';
|
1
|
+
/// <reference types="react" />
|
3
2
|
import { Marker, Popup } from 'leaflet';
|
4
|
-
|
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
|
-
|
2
|
-
import { Item, ItemsApi, LayerProps, Permission, PermissionAction } from '
|
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
|
-
|
2
|
-
import { Item, LayerProps } from '../../../types';
|
1
|
+
/// <reference types="react" />
|
3
2
|
import { LatLng } from 'leaflet';
|
4
|
-
import { ItemFormPopupProps } from '
|
5
|
-
|
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
|
-
|
2
|
-
import { Item, ItemsApi, Tag } from '
|
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 { Item } from '
|
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,5 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
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
|
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,14 +1,12 @@
|
|
1
|
-
import
|
2
|
-
|
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,5 +1,4 @@
|
|
1
|
-
import
|
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,6 +1,6 @@
|
|
1
|
-
declare const SocialShareButton: ({ platform, url, title }: {
|
2
|
-
platform:
|
3
|
-
url:
|
4
|
-
title:
|
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
|
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,22 +1,4 @@
|
|
1
|
-
import
|
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>>;
|