utopia-ui 3.0.0-alpha.87 → 3.0.0-alpha.89
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/dist/Components/AppShell/AppShell.d.ts +1 -1
- package/dist/Components/AppShell/Content.d.ts +1 -1
- package/dist/Components/AppShell/NavBar.d.ts +1 -2
- package/dist/Components/AppShell/SetAssetsApi.d.ts +1 -2
- package/dist/Components/AppShell/SideBar.d.ts +1 -1
- package/dist/Components/AppShell/SidebarSubmenu.d.ts +1 -1
- package/dist/Components/Auth/useAuth.d.ts +1 -1
- package/dist/Components/Gaming/Modal.d.ts +1 -1
- package/dist/Components/Gaming/Quests.d.ts +1 -2
- package/dist/Components/Input/Autocomplete.d.ts +1 -2
- 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 +1 -1
- 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 +1 -1
- package/dist/Components/Map/Subcomponents/Controls/Control.d.ts +1 -1
- package/dist/Components/Map/Subcomponents/Controls/LayerControl.d.ts +1 -2
- package/dist/Components/Map/Subcomponents/Controls/LocateControl.d.ts +1 -2
- package/dist/Components/Map/Subcomponents/Controls/QuestControl.d.ts +1 -2
- package/dist/Components/Map/Subcomponents/Controls/SearchControl.d.ts +1 -2
- package/dist/Components/Map/Subcomponents/Controls/TagsControl.d.ts +1 -2
- package/dist/Components/Map/Subcomponents/ItemFormPopup.d.ts +1 -1
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +1 -1
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.d.ts +1 -2
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +1 -2
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.d.ts +1 -2
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.d.ts +1 -2
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/StartEndView.d.ts +1 -2
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +1 -2
- package/dist/Components/Map/Tags.d.ts +1 -2
- package/dist/Components/Map/UtopiaMap.d.ts +1 -1
- package/dist/Components/Profile/ColorPicker.d.ts +1 -2
- package/dist/Components/Profile/ProfileSettings.d.ts +1 -2
- package/dist/Components/Profile/TagsWidget.d.ts +1 -2
- package/dist/Components/Profile/UserSettings.d.ts +1 -2
- package/dist/Components/Templates/CardPage.d.ts +5 -5
- package/dist/Components/Templates/CircleLayout.d.ts +1 -2
- package/dist/Components/Templates/DialogModal.d.ts +1 -1
- package/dist/Components/Templates/ItemViewPage.d.ts +14 -0
- package/dist/Components/Templates/ItemsIndexPage.d.ts +2 -1
- package/dist/Components/Templates/MapOverlayPage.d.ts +1 -1
- package/dist/Components/Templates/MoonCalendar.d.ts +1 -2
- package/dist/Components/Templates/TagView.d.ts +1 -2
- package/dist/Components/Templates/TitleCard.d.ts +1 -1
- package/dist/Components/Templates/index.d.ts +1 -0
- package/dist/Components/Typography/Subtitle.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +39 -9
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
@@ -2,5 +2,5 @@ import * as React from 'react';
|
|
2
2
|
declare type ContentProps = {
|
3
3
|
children?: React.ReactNode;
|
4
4
|
};
|
5
|
-
export declare function Content({ children }: ContentProps): JSX.Element;
|
5
|
+
export declare function Content({ children }: ContentProps): import("react/jsx-runtime").JSX.Element;
|
6
6
|
export {};
|
@@ -21,6 +21,6 @@ declare type AuthContextProps = {
|
|
21
21
|
requestPasswordReset: (email: string, reset_url: string) => Promise<any>;
|
22
22
|
passwordReset: (token: string, new_password: string) => Promise<any>;
|
23
23
|
};
|
24
|
-
export declare const AuthProvider: ({ userApi, children }: AuthProviderProps) => JSX.Element;
|
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,2 +1 @@
|
|
1
|
-
|
2
|
-
export declare function Quests(): JSX.Element;
|
1
|
+
export declare function Quests(): import("react/jsx-runtime").JSX.Element;
|
@@ -1,8 +1,7 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
export declare const Autocomplete: ({ inputProps, suggestions, onSelected, pushFilteredSuggestions, setFocus }: {
|
3
2
|
inputProps: any;
|
4
3
|
suggestions: Array<any>;
|
5
4
|
onSelected: (suggestion: any) => void;
|
6
5
|
pushFilteredSuggestions?: any[] | undefined;
|
7
6
|
setFocus?: boolean | undefined;
|
8
|
-
}) => JSX.Element;
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
declare type SelectBoxProps = {
|
3
2
|
labelTitle?: string;
|
4
3
|
labelStyle?: string;
|
@@ -13,5 +12,5 @@ declare type SelectBoxProps = {
|
|
13
12
|
}[];
|
14
13
|
labelDescription?: string;
|
15
14
|
};
|
16
|
-
export declare function SelectBox(props: SelectBoxProps): JSX.Element;
|
15
|
+
export declare function SelectBox(props: SelectBoxProps): import("react/jsx-runtime").JSX.Element;
|
17
16
|
export {};
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
declare type TextAreaProps = {
|
3
2
|
labelTitle?: string;
|
4
3
|
labelStyle?: string;
|
@@ -9,5 +8,5 @@ declare type TextAreaProps = {
|
|
9
8
|
placeholder?: string;
|
10
9
|
updateFormValue?: (value: string) => void;
|
11
10
|
};
|
12
|
-
export declare function TextAreaInput({ labelTitle, dataField, labelStyle, containerStyle, inputStyle, defaultValue, placeholder, updateFormValue }: TextAreaProps): JSX.Element;
|
11
|
+
export declare function TextAreaInput({ labelTitle, dataField, labelStyle, containerStyle, inputStyle, defaultValue, placeholder, updateFormValue }: TextAreaProps): import("react/jsx-runtime").JSX.Element;
|
13
12
|
export {};
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
declare type InputTextProps = {
|
3
2
|
labelTitle?: string;
|
4
3
|
labelStyle?: string;
|
@@ -11,5 +10,5 @@ declare type InputTextProps = {
|
|
11
10
|
autocomplete?: string;
|
12
11
|
updateFormValue?: (value: string) => void;
|
13
12
|
};
|
14
|
-
export declare function TextInput({ labelTitle, labelStyle, type, dataField, containerStyle, inputStyle, defaultValue, placeholder, autocomplete, updateFormValue }: InputTextProps): JSX.Element;
|
13
|
+
export declare function TextInput({ labelTitle, labelStyle, type, dataField, containerStyle, inputStyle, defaultValue, placeholder, autocomplete, updateFormValue }: InputTextProps): import("react/jsx-runtime").JSX.Element;
|
15
14
|
export {};
|
@@ -7,7 +7,7 @@ export declare const ItemForm: {
|
|
7
7
|
item?: Item | undefined;
|
8
8
|
title?: string | undefined;
|
9
9
|
setPopupTitle?: React.Dispatch<React.SetStateAction<string>> | undefined;
|
10
|
-
}): JSX.Element;
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
11
11
|
propTypes: {
|
12
12
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
13
13
|
__TYPE: PropTypes.Requireable<string>;
|
@@ -5,7 +5,7 @@ export declare const ItemView: {
|
|
5
5
|
({ children, item }: {
|
6
6
|
children?: React.ReactNode;
|
7
7
|
item?: Item | undefined;
|
8
|
-
}): JSX.Element;
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
9
9
|
propTypes: {
|
10
10
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
11
11
|
__TYPE: PropTypes.Requireable<string>;
|
@@ -1,3 +1,2 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import { LayerProps } from '../../types';
|
3
|
-
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) => JSX.Element;
|
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;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import { ItemsApi, Permission } from '../../types';
|
3
2
|
export declare function Permissions({ data, api, adminRole }: {
|
4
3
|
data?: Permission[];
|
5
4
|
api?: ItemsApi<Permission>;
|
6
5
|
adminRole?: string;
|
7
|
-
}): JSX.Element;
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
export declare function LayerControl(): JSX.Element;
|
1
|
+
export declare function LayerControl(): import("react/jsx-runtime").JSX.Element;
|
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
export declare function QuestControl(): JSX.Element;
|
1
|
+
export declare function QuestControl(): import("react/jsx-runtime").JSX.Element;
|
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
export declare const TagsControl: () => JSX.Element;
|
1
|
+
export declare const TagsControl: () => import("react/jsx-runtime").JSX.Element;
|
@@ -8,4 +8,4 @@ export interface ItemFormPopupProps {
|
|
8
8
|
children?: React.ReactNode;
|
9
9
|
setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
|
10
10
|
}
|
11
|
-
export declare function ItemFormPopup(props: ItemFormPopupProps): JSX.Element;
|
11
|
+
export declare function ItemFormPopup(props: ItemFormPopupProps): import("react/jsx-runtime").JSX.Element;
|
@@ -4,4 +4,4 @@ import { Item } from "../../../../types";
|
|
4
4
|
export declare function HeaderView({ item, setItemFormPopup }: {
|
5
5
|
item: Item;
|
6
6
|
setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
|
7
|
-
}): JSX.Element;
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import { Item } from '../../../../types';
|
3
2
|
export declare const PopupButton: ({ url, parameterField, text, colorField, item }: {
|
4
3
|
url: string;
|
@@ -6,4 +5,4 @@ export declare const PopupButton: ({ url, parameterField, text, colorField, item
|
|
6
5
|
text: string;
|
7
6
|
colorField?: string | undefined;
|
8
7
|
item?: Item | undefined;
|
9
|
-
}) => JSX.Element;
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,8 +1,7 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import { Item } from '../../../../types';
|
3
2
|
export declare const PopupTextAreaInput: ({ dataField, placeholder, style, item }: {
|
4
3
|
dataField: string;
|
5
4
|
placeholder: string;
|
6
5
|
style?: string | undefined;
|
7
6
|
item?: Item | undefined;
|
8
|
-
}) => JSX.Element;
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,8 +1,7 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import { Item } from '../../../../types';
|
3
2
|
export declare const PopupTextInput: ({ dataField, placeholder, style, item }: {
|
4
3
|
dataField: string;
|
5
4
|
placeholder: string;
|
6
5
|
style?: string | undefined;
|
7
6
|
item?: Item | undefined;
|
8
|
-
}) => JSX.Element;
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import { Item } from '../../../../types';
|
3
2
|
export declare const TextView: ({ item, truncate, itemTextField }: {
|
4
3
|
item?: Item | undefined;
|
5
4
|
truncate?: boolean | undefined;
|
6
5
|
itemTextField?: string | undefined;
|
7
|
-
}) => JSX.Element;
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -7,5 +7,5 @@ export interface MapEventListenerProps {
|
|
7
7
|
setSelectNewItemPosition: React.Dispatch<any>;
|
8
8
|
setItemFormPopup: React.Dispatch<React.SetStateAction<any>>;
|
9
9
|
}
|
10
|
-
declare function UtopiaMap({ height, width, center, zoom, children }: UtopiaMapProps): JSX.Element;
|
10
|
+
declare function UtopiaMap({ height, width, center, zoom, children }: UtopiaMapProps): import("react/jsx-runtime").JSX.Element;
|
11
11
|
export { UtopiaMap };
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import 'react-image-crop/dist/ReactCrop.css';
|
3
2
|
import 'react-toastify/dist/ReactToastify.css';
|
4
|
-
export declare function ProfileSettings(): JSX.Element;
|
3
|
+
export declare function ProfileSettings(): import("react/jsx-runtime").JSX.Element;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
export declare const TagsWidget: ({ placeholder, containerStyle, defaultTags, onUpdate }: {
|
3
2
|
placeholder: any;
|
4
3
|
containerStyle: any;
|
5
4
|
defaultTags: any;
|
6
5
|
onUpdate: any;
|
7
|
-
}) => JSX.Element;
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import * as React from "react";
|
2
|
-
export declare function CardPage({ title, hideTitle, children,
|
2
|
+
export declare function CardPage({ title, hideTitle, children, parents }: {
|
3
3
|
title: string;
|
4
4
|
hideTitle?: boolean;
|
5
5
|
children?: React.ReactNode;
|
6
|
-
|
6
|
+
parents?: Array<{
|
7
7
|
name: string;
|
8
|
-
|
9
|
-
}
|
10
|
-
}): JSX.Element;
|
8
|
+
path: string;
|
9
|
+
}>;
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
@@ -6,5 +6,5 @@ declare type Props = {
|
|
6
6
|
children: React.ReactNode;
|
7
7
|
showCloseButton?: boolean;
|
8
8
|
};
|
9
|
-
declare const DialogModal: ({ title, isOpened, onClose, children, showCloseButton }: Props) => JSX.Element;
|
9
|
+
declare const DialogModal: ({ title, isOpened, onClose, children, showCloseButton }: Props) => import("react/jsx-runtime").JSX.Element;
|
10
10
|
export default DialogModal;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { ItemsApi } from "../../types";
|
2
|
+
declare type breadcrumb = {
|
3
|
+
name: string;
|
4
|
+
path: string;
|
5
|
+
};
|
6
|
+
export declare const ItemViewPage: ({ api, parents, itemNameField, itemTextField, itemImageField, itemSymbolField }: {
|
7
|
+
api: ItemsApi<any>;
|
8
|
+
parents: Array<breadcrumb>;
|
9
|
+
itemNameField: string;
|
10
|
+
itemTextField: string;
|
11
|
+
itemImageField: string;
|
12
|
+
itemSymbolField: string;
|
13
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
14
|
+
export {};
|
@@ -3,7 +3,7 @@ declare type breadcrumb = {
|
|
3
3
|
name: string;
|
4
4
|
path: string;
|
5
5
|
};
|
6
|
-
export declare const ItemsIndexPage: ({ api, url, parameterField, breadcrumbs, itemNameField, itemTextField, itemImageField }: {
|
6
|
+
export declare const ItemsIndexPage: ({ api, url, parameterField, breadcrumbs, itemNameField, itemTextField, itemImageField, itemSymbolField }: {
|
7
7
|
api: ItemsApi<any>;
|
8
8
|
url: string;
|
9
9
|
parameterField: string;
|
@@ -11,5 +11,6 @@ export declare const ItemsIndexPage: ({ api, url, parameterField, breadcrumbs, i
|
|
11
11
|
itemNameField: string;
|
12
12
|
itemTextField: string;
|
13
13
|
itemImageField: string;
|
14
|
+
itemSymbolField: string;
|
14
15
|
}) => import("react/jsx-runtime").JSX.Element;
|
15
16
|
export {};
|
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
export declare const MoonCalendar: () => JSX.Element;
|
1
|
+
export declare const MoonCalendar: () => import("react/jsx-runtime").JSX.Element;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import { Tag } from '../../types';
|
3
2
|
export declare const TagView: ({ tag, heighlight, onClick }: {
|
4
3
|
tag: Tag;
|
5
4
|
heighlight?: boolean | undefined;
|
6
5
|
onClick?: ((e: any) => void) | undefined;
|
7
|
-
}) => JSX.Element;
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -7,5 +7,5 @@ interface TitleCardProps {
|
|
7
7
|
className?: string;
|
8
8
|
TopSideButtons?: any;
|
9
9
|
}
|
10
|
-
export declare function TitleCard({ title, hideTitle, 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;
|
11
11
|
export {};
|
package/dist/index.d.ts
CHANGED
@@ -3,7 +3,7 @@ export { AppShell, Content, SideBar } from "./Components/AppShell";
|
|
3
3
|
export { AuthProvider, useAuth, LoginPage, SignupPage, RequestPasswordPage, SetNewPasswordPage } from "./Components/Auth";
|
4
4
|
export { UserSettings, ProfileSettings, OverlayProfile, OverlayProfileSettings, OverlayUserSettings } from './Components/Profile';
|
5
5
|
export { Quests, Modal } from './Components/Gaming';
|
6
|
-
export { TitleCard, CardPage, MapOverlayPage, CircleLayout, MoonCalendar, ItemsIndexPage } from './Components/Templates';
|
6
|
+
export { TitleCard, CardPage, MapOverlayPage, CircleLayout, MoonCalendar, ItemsIndexPage, ItemViewPage } from './Components/Templates';
|
7
7
|
export { TextInput, TextAreaInput, SelectBox } from './Components/Input';
|
8
8
|
import "./index.css";
|
9
9
|
declare global {
|