utopia-ui 3.0.0-alpha.26 → 3.0.0-alpha.260
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 -6
- package/dist/Components/AppShell/AppShell.d.ts +9 -6
- package/dist/Components/AppShell/Content.d.ts +1 -1
- package/dist/Components/AppShell/NavBar.d.ts +3 -3
- package/dist/Components/AppShell/SetAssetsApi.d.ts +1 -2
- package/dist/Components/AppShell/SideBar.d.ts +1 -2
- package/dist/Components/AppShell/SidebarSubmenu.d.ts +1 -2
- package/dist/Components/AppShell/Sitemap.d.ts +3 -0
- package/dist/Components/AppShell/index.d.ts +1 -0
- package/dist/Components/Auth/LoginPage.d.ts +1 -2
- package/dist/Components/Auth/RequestPasswordPage.d.ts +3 -0
- package/dist/Components/Auth/SetNewPasswordPage.d.ts +1 -0
- package/dist/Components/Auth/SignupPage.d.ts +1 -2
- package/dist/Components/Auth/index.d.ts +3 -1
- package/dist/Components/Auth/useAuth.d.ts +3 -1
- package/dist/Components/Gaming/Modal.d.ts +5 -10
- package/dist/Components/Gaming/Quests.d.ts +1 -2
- package/dist/Components/Input/Autocomplete.d.ts +7 -0
- package/dist/Components/Input/ComboBoxInput.d.ts +11 -0
- package/dist/Components/Input/SelectBox.d.ts +1 -2
- package/dist/Components/Input/TextAreaInput.d.ts +1 -2
- package/dist/Components/Input/TextInput.d.ts +1 -2
- package/dist/Components/Map/ItemForm.d.ts +4 -2
- package/dist/Components/Map/ItemView.d.ts +1 -1
- package/dist/Components/Map/Layer.d.ts +1 -2
- package/dist/Components/Map/Permissions.d.ts +1 -2
- package/dist/Components/Map/Subcomponents/AddButton.d.ts +3 -3
- package/dist/Components/Map/Subcomponents/Controls/Control.d.ts +7 -0
- package/dist/Components/Map/Subcomponents/Controls/FilterControl.d.ts +1 -0
- package/dist/Components/Map/Subcomponents/Controls/GratitudeControl.d.ts +1 -0
- package/dist/Components/Map/Subcomponents/Controls/LayerControl.d.ts +1 -0
- package/dist/Components/Map/Subcomponents/Controls/LocateControl.d.ts +3 -0
- package/dist/Components/Map/Subcomponents/Controls/QuestControl.d.ts +1 -0
- package/dist/Components/Map/Subcomponents/Controls/SearchControl.d.ts +1 -0
- package/dist/Components/Map/Subcomponents/Controls/SidebarControl.d.ts +1 -0
- package/dist/Components/Map/Subcomponents/Controls/TagsControl.d.ts +1 -0
- package/dist/Components/Map/Subcomponents/ItemFormPopup.d.ts +2 -2
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +16 -6
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.d.ts +8 -0
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupCheckboxInput.d.ts +6 -0
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +8 -4
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.d.ts +1 -2
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.d.ts +7 -2
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/StartEndView.d.ts +1 -2
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +5 -3
- package/dist/Components/Map/Subcomponents/SelectPosition.d.ts +3 -0
- package/dist/Components/Map/Tags.d.ts +1 -2
- package/dist/Components/Map/UtopiaMap.d.ts +2 -8
- package/dist/Components/Map/hooks/useClusterRef.d.ts +12 -0
- package/dist/Components/Map/hooks/useDebounce.d.ts +1 -0
- package/dist/Components/Map/hooks/useFilter.d.ts +9 -1
- package/dist/Components/Map/hooks/useItems.d.ts +2 -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/hooks/useTags.d.ts +2 -2
- package/dist/Components/Map/hooks/useTimeout.d.ts +4 -0
- package/dist/Components/Map/index.d.ts +3 -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/ColorPicker.d.ts +6 -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/Subcomponents/TagsWidget.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 +1 -0
- package/dist/Components/Profile/hooks/useClickOutside.d.ts +2 -0
- package/dist/Components/Profile/index.d.ts +4 -1
- package/dist/Components/Profile/itemFunctions.d.ts +5 -0
- package/dist/Components/Templates/AttestationForm.d.ts +4 -0
- package/dist/Components/Templates/CardPage.d.ts +6 -5
- package/dist/Components/Templates/CircleLayout.d.ts +5 -0
- package/dist/Components/Templates/DateUserInfo.d.ts +4 -0
- package/dist/Components/Templates/DialogModal.d.ts +4 -1
- package/dist/Components/Templates/EmojiPicker.d.ts +8 -0
- package/dist/Components/Templates/ItemCard.d.ts +8 -0
- package/dist/Components/Templates/MapOverlayPage.d.ts +7 -0
- package/dist/Components/Templates/MoonCalendar.d.ts +1 -0
- package/dist/Components/Templates/OverlayItemsIndexPage.d.ts +6 -0
- package/dist/Components/Templates/SelectUser.d.ts +3 -0
- package/dist/Components/Templates/TagView.d.ts +6 -0
- package/dist/Components/Templates/TitleCard.d.ts +5 -4
- package/dist/Components/Templates/index.d.ts +5 -0
- package/dist/Components/Typography/ErrorText.d.ts +1 -2
- package/dist/Components/Typography/Subtitle.d.ts +1 -1
- package/dist/Utils/FormatTags.d.ts +2 -0
- package/dist/Utils/GetValue.d.ts +1 -0
- package/dist/Utils/Moon.d.ts +7 -0
- package/dist/Utils/ReverseGeocoder.d.ts +1 -0
- package/dist/Utils/TimeAgo.d.ts +1 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.js +4313 -1383
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +68 -12
- package/package.json +10 -4
- package/LICENSE.md +0 -5
- package/dist/Components/AppShell/DialogModal.d.ts +0 -9
- package/dist/Components/Map/Subcomponents/Control.d.ts +0 -4
- 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/Settings.d.ts +0 -4
- package/dist/Utils/DynamicHeroIcon.d.ts +0 -7
@@ -6,5 +6,8 @@ export { ItemForm } from './ItemForm';
|
|
6
6
|
export { ItemView } from './ItemView';
|
7
7
|
export { PopupTextAreaInput } from './Subcomponents/ItemPopupComponents/PopupTextAreaInput';
|
8
8
|
export { PopupStartEndInput } from './Subcomponents/ItemPopupComponents/PopupStartEndInput';
|
9
|
+
export { PopupTextInput } from './Subcomponents/ItemPopupComponents/PopupTextInput';
|
10
|
+
export { PopupCheckboxInput } from './Subcomponents/ItemPopupComponents/PopupCheckboxInput';
|
9
11
|
export { TextView } from './Subcomponents/ItemPopupComponents/TextView';
|
10
12
|
export { StartEndView } from './Subcomponents/ItemPopupComponents/StartEndView';
|
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;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function UserSettings(): import("react/jsx-runtime").JSX.Element;
|
@@ -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>;
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import * as React from "react";
|
2
|
-
export declare function CardPage({ title, children,
|
2
|
+
export declare function CardPage({ title, hideTitle, children, parents }: {
|
3
3
|
title: string;
|
4
|
+
hideTitle?: boolean;
|
4
5
|
children?: React.ReactNode;
|
5
|
-
|
6
|
+
parents?: Array<{
|
6
7
|
name: string;
|
7
|
-
|
8
|
-
}
|
9
|
-
}): JSX.Element;
|
8
|
+
path: string;
|
9
|
+
}>;
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
@@ -4,6 +4,9 @@ declare type Props = {
|
|
4
4
|
isOpened: boolean;
|
5
5
|
onClose: () => void;
|
6
6
|
children: React.ReactNode;
|
7
|
+
showCloseButton?: boolean;
|
8
|
+
closeOnClickOutside?: boolean;
|
9
|
+
className?: string;
|
7
10
|
};
|
8
|
-
declare const DialogModal: ({ title, isOpened, onClose, children, }: Props) => JSX.Element;
|
11
|
+
declare const DialogModal: ({ title, isOpened, onClose, children, showCloseButton, closeOnClickOutside, className, }: Props) => import("react/jsx-runtime").JSX.Element;
|
9
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 @@
|
|
1
|
+
export declare const MoonCalendar: () => import("react/jsx-runtime").JSX.Element;
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import * as React from "react";
|
2
2
|
interface TitleCardProps {
|
3
|
-
title
|
4
|
-
|
5
|
-
|
3
|
+
title?: string;
|
4
|
+
hideTitle?: boolean;
|
5
|
+
children?: React.ReactNode;
|
6
|
+
topMargin?: string;
|
6
7
|
className?: string;
|
7
8
|
TopSideButtons?: any;
|
8
9
|
}
|
9
|
-
export declare function TitleCard({ title, children, topMargin, TopSideButtons, className }: TitleCardProps): JSX.Element;
|
10
|
+
export declare function TitleCard({ title, hideTitle, children, topMargin, TopSideButtons, className }: TitleCardProps): import("react/jsx-runtime").JSX.Element;
|
10
11
|
export {};
|
@@ -1,2 +1,7 @@
|
|
1
1
|
export { CardPage } from './CardPage';
|
2
2
|
export { TitleCard } from './TitleCard';
|
3
|
+
export { MapOverlayPage } from './MapOverlayPage';
|
4
|
+
export { MoonCalendar } from './MoonCalendar';
|
5
|
+
export { SelectUser } from "./SelectUser";
|
6
|
+
export { OverlayItemsIndexPage } from "./OverlayItemsIndexPage";
|
7
|
+
export { AttestationForm } from "./AttestationForm";
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function getValue(obj: any, path: any): any;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export declare const LUNAR_MONTH: number;
|
2
|
+
export declare const getJulianDate: (date?: Date) => number;
|
3
|
+
export declare const normalize: (value: number) => number;
|
4
|
+
export declare const getLunarAgePercent: (date?: Date) => number;
|
5
|
+
export declare const getLunarAge: (date?: Date) => number;
|
6
|
+
export declare const getNextNewMoon: () => Date;
|
7
|
+
export declare const getLastNewMoon: (date?: Date) => Date;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function reverseGeocode(lat: number, lon: number): Promise<string>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const timeAgo: (date: string | number | Date) => string;
|
package/dist/index.d.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
export { UtopiaMap, Layer, Tags, Permissions, ItemForm, ItemView, PopupTextAreaInput, PopupStartEndInput, TextView, StartEndView } from './Components/Map';
|
2
|
-
export { AppShell, Content, SideBar } from "./Components/AppShell";
|
3
|
-
export { AuthProvider, useAuth, LoginPage, SignupPage } from "./Components/Auth";
|
4
|
-
export {
|
1
|
+
export { UtopiaMap, Layer, Tags, Permissions, ItemForm, ItemView, PopupTextAreaInput, PopupStartEndInput, PopupTextInput, PopupButton, TextView, StartEndView, PopupCheckboxInput } from './Components/Map';
|
2
|
+
export { AppShell, Content, SideBar, Sitemap } from "./Components/AppShell";
|
3
|
+
export { AuthProvider, useAuth, LoginPage, SignupPage, RequestPasswordPage, SetNewPasswordPage } from "./Components/Auth";
|
4
|
+
export { UserSettings, ProfileView, ProfileForm } from './Components/Profile';
|
5
5
|
export { Quests, Modal } from './Components/Gaming';
|
6
|
-
export { TitleCard, CardPage } from './Components/Templates';
|
6
|
+
export { TitleCard, CardPage, MapOverlayPage, OverlayItemsIndexPage, MoonCalendar, SelectUser, AttestationForm } from './Components/Templates';
|
7
7
|
export { TextInput, TextAreaInput, SelectBox } from './Components/Input';
|
8
8
|
import "./index.css";
|
9
9
|
declare global {
|