utopia-ui 3.0.0-alpha.29 → 3.0.0-alpha.30
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 +19 -5
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +3 -1
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.d.ts +7 -1
- package/dist/Components/Map/Subcomponents/ItemViewPopup.d.ts +2 -0
- package/dist/Components/Map/index.d.ts +1 -0
- package/dist/Components/Profile/ColorPicker.d.ts +7 -0
- package/dist/Components/Profile/useClickOutside.d.ts +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +133 -54
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +5 -1
- package/package.json +2 -1
package/README.md
CHANGED
@@ -1,11 +1,25 @@
|
|
1
1
|
# Utopia UI [](https://www.npmjs.com/package/utopia-ui)
|
2
|
-
|
2
|
+
**UI Framework for Real-Life-Networking-Apps**
|
3
3
|
|
4
|
-
|
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.*
|
5
5
|
|
6
|
-
*
|
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.*
|
7
7
|
|
8
|
-
|
8
|
+
## Mission
|
9
|
+
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
|
+
|
11
|
+
The building blocks are designed to allow different networks and communities to assemble their map and app for their specific needs and purpose.
|
12
|
+
|
13
|
+
Utopia Game is the first app 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)
|
14
|
+
|
15
|
+
## Features
|
16
|
+
|
17
|
+
* Interactive Component Map with customizable Layers (like Projects, Event, People)
|
18
|
+
* Flexible API-Interface to make it work with every backend or p2p database
|
19
|
+
* Create, Update, Delete Items
|
20
|
+
* User Authentification API-Interface
|
21
|
+
* User Profiles
|
22
|
+
* App Shell
|
9
23
|
|
10
24
|
## Getting Started
|
11
25
|
|
@@ -67,4 +81,4 @@ You can find some Sample Data (places, events, tags) for test in the `SamleData/
|
|
67
81
|
|
68
82
|
*We are looking for Web Developer, UX Designer, Community Manager, Visionaries, Artists, etc. who like to support this Vision.*
|
69
83
|
|
70
|
-
[https://t.me/utopiaOS](https://t.me/utopiaOS)
|
84
|
+
[https://t.me/utopiaOS](https://t.me/utopiaOS)
|
@@ -1,7 +1,9 @@
|
|
1
1
|
import * as React from "react";
|
2
2
|
import { ItemFormPopupProps } from "../ItemFormPopup";
|
3
3
|
import { Item } from "../../../../types";
|
4
|
-
export declare function HeaderView({ item, setItemFormPopup }: {
|
4
|
+
export declare function HeaderView({ item, title, avatar, setItemFormPopup }: {
|
5
5
|
item: Item;
|
6
|
+
title?: string;
|
7
|
+
avatar?: string;
|
6
8
|
setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
|
7
9
|
}): JSX.Element;
|
@@ -1,2 +1,8 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
|
2
|
+
import { Item } from '../../../../types';
|
3
|
+
export declare const PopupTextInput: ({ dataField, placeholder, style, item }: {
|
4
|
+
dataField: string;
|
5
|
+
placeholder: string;
|
6
|
+
style?: string | undefined;
|
7
|
+
item?: Item | undefined;
|
8
|
+
}) => JSX.Element;
|
@@ -4,6 +4,8 @@ import { ItemFormPopupProps } from './ItemFormPopup';
|
|
4
4
|
export interface ItemViewPopupProps {
|
5
5
|
item: Item;
|
6
6
|
children?: React.ReactNode;
|
7
|
+
itemTitleField?: string;
|
8
|
+
itemAvatarField?: string;
|
7
9
|
setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
|
8
10
|
}
|
9
11
|
export declare const ItemViewPopup: React.ForwardRefExoticComponent<ItemViewPopupProps & React.RefAttributes<unknown>>;
|
@@ -6,5 +6,6 @@ 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';
|
9
10
|
export { TextView } from './Subcomponents/ItemPopupComponents/TextView';
|
10
11
|
export { StartEndView } from './Subcomponents/ItemPopupComponents/StartEndView';
|
package/dist/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { UtopiaMap, Layer, Tags, Permissions, ItemForm, ItemView, PopupTextAreaInput, PopupStartEndInput, TextView, StartEndView } from './Components/Map';
|
1
|
+
export { UtopiaMap, Layer, Tags, Permissions, ItemForm, ItemView, PopupTextAreaInput, PopupStartEndInput, PopupTextInput, TextView, StartEndView } from './Components/Map';
|
2
2
|
export { AppShell, Content, SideBar } from "./Components/AppShell";
|
3
3
|
export { AuthProvider, useAuth, LoginPage, SignupPage } from "./Components/Auth";
|
4
4
|
export { Settings } from './Components/Profile';
|