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 CHANGED
@@ -1,11 +1,25 @@
1
1
  # Utopia UI [![npm version](https://img.shields.io/npm/v/utopia-ui.svg)](https://www.npmjs.com/package/utopia-ui)
2
- is a UI Library to build mapping apps with focus of real life action, local connection and positiv impact.
2
+ **UI Framework for Real-Life-Networking-Apps**
3
3
 
4
- Check [utopia-os.org](https://utopia-os.org) for more information
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
- *In early 2021, we developed a Django-based Proof of Concept, which can be found @ [new.docutopia.de](https://new.docutopia.de). This map can be edited freely you can register to create an account and place them on the map.*
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
- Utopia UI is the approach to create a Open Source Library of JavaScript Components which should bring useful maps and apps to all kind of projects and communities.
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
- export declare const PopupTextInput: () => JSX.Element;
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';
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import "./ColorPicker.css";
3
+ export declare const ColorPicker: ({ color, onChange, className }: {
4
+ color: any;
5
+ onChange: any;
6
+ className: any;
7
+ }) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ declare const useClickOutside: (ref: any, handler: any) => void;
2
+ export default useClickOutside;
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';