utopia-ui 3.0.0-alpha.20 → 3.0.0-alpha.21
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/Input/SelectBox.d.ts +17 -0
- package/dist/Components/Input/index.d.ts +1 -0
- package/dist/Components/Templates/TitleCard.d.ts +2 -1
- package/dist/Utils/DynamicHeroIcon.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +38 -20
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/Components/Auth/authDirectus.d.ts +0 -24
- package/dist/Components/Input/FancyTextAreaInput.d.ts +0 -13
- package/dist/Components/Input/InputText.d.ts +0 -13
- package/dist/Components/Input/TributeTextAreaInput copy.d.ts +0 -13
- package/dist/Components/Input/TributeTextAreaInput.d.ts +0 -13
- package/dist/Components/Map/ItemFormPopup.d.ts +0 -12
- package/dist/Components/Map/ItemViewPopup.d.ts +0 -8
- package/dist/Components/Map/Subcomponents/HeaderView.d.ts +0 -7
- package/dist/Components/Map/Subcomponents/LocateControl.d.ts +0 -1
- package/dist/Components/Map/Subcomponents/SearchBar.d.ts +0 -2
- package/dist/Components/Map/Subcomponents/StartEndView.d.ts +0 -6
- package/dist/Components/Map/Subcomponents/TagFilterControl.d.ts +0 -2
- package/dist/Components/Map/Subcomponents/TextView.d.ts +0 -5
- package/dist/Components/TitleCard.d.ts +0 -9
- package/dist/Utils/HeighlightTags.d.ts +0 -1
- package/dist/Utils/TaggedText.d.ts +0 -3
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "utopia-ui",
|
3
|
-
"version": "3.0.0-alpha.
|
3
|
+
"version": "3.0.0-alpha.21",
|
4
4
|
"description": "Reuseable React Components to build mapping apps for real life communities and networks",
|
5
5
|
"repository": "https://github.com/utopia-os/utopia-ui",
|
6
6
|
"homepage:": "https://utopia-os.org/",
|
@@ -52,6 +52,6 @@
|
|
52
52
|
"react-string-replace": "^1.1.1",
|
53
53
|
"react-toastify": "^9.1.3",
|
54
54
|
"tributejs": "^5.1.3",
|
55
|
-
"tw-elements": "^1.0.0
|
55
|
+
"tw-elements": "^1.0.0"
|
56
56
|
}
|
57
57
|
}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import * as React from "react";
|
2
|
-
import { UserApi, UserItem } from "../../types";
|
3
|
-
declare type AuthProviderProps = {
|
4
|
-
userApi: UserApi;
|
5
|
-
children?: React.ReactNode;
|
6
|
-
};
|
7
|
-
declare type AuthCredentials = {
|
8
|
-
email: string;
|
9
|
-
password: string;
|
10
|
-
otp?: string | undefined;
|
11
|
-
};
|
12
|
-
declare type AuthContextProps = {
|
13
|
-
isAuthenticated: Boolean;
|
14
|
-
user: UserItem | null;
|
15
|
-
login: (credentials: AuthCredentials) => Promise<UserItem | undefined>;
|
16
|
-
register: (credentials: AuthCredentials, userName: string) => Promise<UserItem | undefined>;
|
17
|
-
loading: Boolean;
|
18
|
-
logout: () => void;
|
19
|
-
updateUser: (user: UserItem) => any;
|
20
|
-
token: String | null;
|
21
|
-
};
|
22
|
-
export declare const AuthProviderDirectus: ({ userApi, children }: AuthProviderProps) => JSX.Element;
|
23
|
-
export declare const useAuthDirectus: () => AuthContextProps;
|
24
|
-
export {};
|
@@ -1,13 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
declare type TextAreaProps = {
|
3
|
-
labelTitle?: string;
|
4
|
-
labelStyle?: string;
|
5
|
-
containerStyle?: string;
|
6
|
-
dataField?: string;
|
7
|
-
inputStyle?: string;
|
8
|
-
defaultValue: string;
|
9
|
-
placeholder?: string;
|
10
|
-
updateFormValue?: (value: string) => void;
|
11
|
-
};
|
12
|
-
export declare function FancyTextAreaInput({ labelTitle, dataField, labelStyle, containerStyle, inputStyle, defaultValue, placeholder, updateFormValue }: TextAreaProps): JSX.Element;
|
13
|
-
export {};
|
@@ -1,13 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
declare type InputTextProps = {
|
3
|
-
labelTitle?: string;
|
4
|
-
labelStyle?: string;
|
5
|
-
type?: string;
|
6
|
-
dataField?: string;
|
7
|
-
containerStyle?: string;
|
8
|
-
defaultValue: string;
|
9
|
-
placeholder?: string;
|
10
|
-
updateFormValue?: (value: string) => void;
|
11
|
-
};
|
12
|
-
declare function TextInput({ labelTitle, labelStyle, type, dataField, containerStyle, defaultValue, placeholder, updateFormValue }: InputTextProps): JSX.Element;
|
13
|
-
export default TextInput;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
declare type TextAreaProps = {
|
3
|
-
labelTitle?: string;
|
4
|
-
labelStyle?: string;
|
5
|
-
containerStyle?: string;
|
6
|
-
dataField?: string;
|
7
|
-
inputStyle?: string;
|
8
|
-
defaultValue: string;
|
9
|
-
placeholder?: string;
|
10
|
-
updateFormValue?: (value: string) => void;
|
11
|
-
};
|
12
|
-
export declare function TextAreaInput({ labelTitle, dataField, labelStyle, containerStyle, inputStyle, defaultValue, placeholder, updateFormValue }: TextAreaProps): JSX.Element;
|
13
|
-
export {};
|
@@ -1,13 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
declare type TextAreaProps = {
|
3
|
-
labelTitle?: string;
|
4
|
-
labelStyle?: string;
|
5
|
-
containerStyle?: string;
|
6
|
-
dataField?: string;
|
7
|
-
inputStyle?: string;
|
8
|
-
defaultValue: string;
|
9
|
-
placeholder?: string;
|
10
|
-
updateFormValue?: (value: string) => void;
|
11
|
-
};
|
12
|
-
export declare function TributeTextAreaInput({ labelTitle, dataField, labelStyle, containerStyle, inputStyle, defaultValue, placeholder, updateFormValue }: TextAreaProps): JSX.Element;
|
13
|
-
export {};
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import { LatLng } from 'leaflet';
|
3
|
-
import { LayerProps, Item, ItemsApi } from '../../types';
|
4
|
-
export interface ItemFormPopupProps {
|
5
|
-
position: LatLng;
|
6
|
-
layer: LayerProps;
|
7
|
-
item?: Item;
|
8
|
-
api?: ItemsApi<any>;
|
9
|
-
children?: React.ReactNode;
|
10
|
-
setItemFormPopup: React.Dispatch<React.SetStateAction<any>>;
|
11
|
-
}
|
12
|
-
export declare function ItemFormPopup(props: ItemFormPopupProps): JSX.Element;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import { Item } from '../../types';
|
3
|
-
import { ItemFormPopupProps } from './ItemFormPopup';
|
4
|
-
export interface ItemViewPopupProps {
|
5
|
-
item: Item;
|
6
|
-
setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
|
7
|
-
}
|
8
|
-
export declare const ItemViewPopup: (props: ItemViewPopupProps) => JSX.Element;
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import * as React from "react";
|
2
|
-
import { ItemFormPopupProps } from "./ItemFormPopup";
|
3
|
-
import { Item } from "../../../types";
|
4
|
-
export declare function HeaderView({ item, setItemFormPopup }: {
|
5
|
-
item: Item;
|
6
|
-
setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
|
7
|
-
}): JSX.Element;
|
@@ -1 +0,0 @@
|
|
1
|
-
export default function LocateControl(): null;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import * as React from "react";
|
2
|
-
interface TitleCardProps {
|
3
|
-
title: string;
|
4
|
-
children: React.ReactNode;
|
5
|
-
topMargin: string;
|
6
|
-
TopSideButtons?: any;
|
7
|
-
}
|
8
|
-
export declare function TitleCard({ title, children, topMargin, TopSideButtons }: TitleCardProps): JSX.Element;
|
9
|
-
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const hashTagRegex: RegExp;
|