utopia-ui 3.0.0-alpha.211 → 3.0.0-alpha.212

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.
Files changed (32) hide show
  1. package/dist/Components/AppShell/Sitemap.d.ts +3 -0
  2. package/dist/Components/Map/hooks/useFilter.d.ts +0 -2
  3. package/dist/Components/Profile/ProfileForm.d.ts +3 -0
  4. package/dist/Components/Profile/ProfileView.d.ts +3 -0
  5. package/dist/Components/Profile/Subcomponents/ActionsButton.d.ts +11 -0
  6. package/dist/Components/Profile/Subcomponents/AvatarWidget.d.ts +6 -0
  7. package/dist/Components/Profile/Subcomponents/ColorPicker.d.ts +6 -0
  8. package/dist/Components/Profile/Subcomponents/ContactInfo.d.ts +8 -0
  9. package/dist/Components/Profile/Subcomponents/FormHeader.d.ts +5 -0
  10. package/dist/Components/Profile/Subcomponents/LinkedItemsHeaderView.d.ts +10 -0
  11. package/dist/Components/Profile/Subcomponents/PlusButton.d.ts +7 -0
  12. package/dist/Components/Profile/Subcomponents/ProfileSubHeader.d.ts +7 -0
  13. package/dist/Components/Profile/Subcomponents/RelationCard.d.ts +6 -0
  14. package/dist/Components/Profile/Subcomponents/SocialShareBar.d.ts +6 -0
  15. package/dist/Components/Profile/Subcomponents/SocialShareButton.d.ts +6 -0
  16. package/dist/Components/Profile/Subcomponents/TagsWidget.d.ts +6 -0
  17. package/dist/Components/Profile/Templates/Onepager.d.ts +5 -0
  18. package/dist/Components/Profile/Templates/OnepagerForm.d.ts +22 -0
  19. package/dist/Components/Profile/Templates/OnepagerView.d.ts +5 -0
  20. package/dist/Components/Profile/Templates/Simple.d.ts +4 -0
  21. package/dist/Components/Profile/Templates/SimpleForm.d.ts +1 -0
  22. package/dist/Components/Profile/Templates/SimpleView.d.ts +4 -0
  23. package/dist/Components/Profile/Templates/Tabs.d.ts +11 -0
  24. package/dist/Components/Profile/Templates/TabsForm.d.ts +9 -0
  25. package/dist/Components/Profile/Templates/TabsView.d.ts +11 -0
  26. package/dist/Components/Profile/hooks/useClickOutside.d.ts +2 -0
  27. package/dist/Components/Profile/itemFunctions.d.ts +5 -0
  28. package/dist/Components/Templates/index.d.ts +1 -0
  29. package/dist/index.d.ts +1 -1
  30. package/dist/index.js +146 -50
  31. package/dist/index.js.map +1 -1
  32. package/package.json +1 -1
@@ -0,0 +1,3 @@
1
+ export declare const Sitemap: ({ url }: {
2
+ url: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -5,7 +5,6 @@ declare function useFilterManager(initialTags: Tag[]): {
5
5
  filterTags: Tag[];
6
6
  searchPhrase: string;
7
7
  visibleLayers: LayerProps[];
8
- visibleGroupTypes: string[];
9
8
  addFilterTag: (tag: Tag) => void;
10
9
  removeFilterTag: (name: string) => void;
11
10
  resetFilterTags: () => void;
@@ -36,5 +35,4 @@ export declare const useIsLayerVisible: () => UseFilterManagerResult["isLayerVis
36
35
  export declare const useAddVisibleGroupType: () => UseFilterManagerResult["addVisibleGroupType"];
37
36
  export declare const useToggleVisibleGroupType: () => UseFilterManagerResult["toggleVisibleGroupType"];
38
37
  export declare const useIsGroupTypeVisible: () => UseFilterManagerResult["isGroupTypeVisible"];
39
- export declare const useVisibleGroupType: () => UseFilterManagerResult["visibleGroupTypes"];
40
38
  export {};
@@ -0,0 +1,3 @@
1
+ export declare function ProfileForm({ userType }: {
2
+ userType: string;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare function ProfileView({ userType }: {
2
+ userType: string;
3
+ }): 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,6 @@
1
+ import * as React from "react";
2
+ import 'react-image-crop/dist/ReactCrop.css';
3
+ export declare const AvatarWidget: ({ avatar, setAvatar }: {
4
+ avatar: string;
5
+ setAvatar: React.Dispatch<React.SetStateAction<any>>;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import "./ColorPicker.css";
2
+ export declare const ColorPicker: ({ color, onChange, className }: {
3
+ color: any;
4
+ onChange: any;
5
+ className: any;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ declare const ContactInfo: ({ email, telephone, name, avatar, link }: {
2
+ email: string;
3
+ telephone: string;
4
+ name: string;
5
+ avatar: string;
6
+ link?: string | undefined;
7
+ }) => import("react/jsx-runtime").JSX.Element;
8
+ export default ContactInfo;
@@ -0,0 +1,5 @@
1
+ export declare const FormHeader: ({ item, state, setState }: {
2
+ item: any;
3
+ state: any;
4
+ setState: any;
5
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -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,7 @@
1
+ import { LayerProps } from "../../../types";
2
+ export declare function PlusButton({ layer, triggerAction, color, collection }: {
3
+ layer?: LayerProps;
4
+ triggerAction: any;
5
+ color: string;
6
+ collection?: string;
7
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ declare const SubHeader: ({ type, status, url, title }: {
2
+ type: any;
3
+ status: any;
4
+ url: any;
5
+ title: any;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ export default SubHeader;
@@ -0,0 +1,6 @@
1
+ declare const RelationCard: ({ title, description, imageSrc }: {
2
+ title: any;
3
+ description: any;
4
+ imageSrc: any;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export default RelationCard;
@@ -0,0 +1,6 @@
1
+ declare const SocialShareBar: ({ url, title, platforms }: {
2
+ url: any;
3
+ title: any;
4
+ platforms?: string[] | undefined;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export default SocialShareBar;
@@ -0,0 +1,6 @@
1
+ declare const SocialShareButton: ({ platform, url, title }: {
2
+ platform: any;
3
+ url: any;
4
+ title: any;
5
+ }) => import("react/jsx-runtime").JSX.Element | null;
6
+ export default SocialShareButton;
@@ -0,0 +1,6 @@
1
+ export declare const TagsWidget: ({ placeholder, containerStyle, defaultTags, onUpdate }: {
2
+ placeholder: any;
3
+ containerStyle: any;
4
+ defaultTags: any;
5
+ onUpdate: any;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { Item } from "utopia-ui/dist/types";
2
+ export declare const Onepager: ({ item, userType }: {
3
+ item: Item;
4
+ userType: string;
5
+ }) => 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,5 @@
1
+ import { Item } from "utopia-ui/dist/types";
2
+ export declare const OnepagerView: ({ item, userType }: {
3
+ item: Item;
4
+ userType: string;
5
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { Item } from '../../../types';
2
+ export declare const Simple: ({ item }: {
3
+ item: Item;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const SimpleForm: (item: any, setState: any) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { Item } from '../../../types';
2
+ export declare const SimpleView: ({ item }: {
3
+ item: Item;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { Item, Tag } from 'utopia-ui/dist/types';
2
+ export declare const Tabs: ({ item, offers, needs, relations, updatePermission, loading, linkItem, unlinkItem }: {
3
+ item: Item;
4
+ offers: Array<Tag>;
5
+ needs: Array<Tag>;
6
+ relations: Array<Item>;
7
+ updatePermission: boolean;
8
+ loading: boolean;
9
+ linkItem: (id: string) => Promise<void>;
10
+ unlinkItem: (id: string) => Promise<void>;
11
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ export declare const TabsForm: ({ item, state, setState, updatePermission, linkItem, unlinkItem, loading }: {
2
+ item: any;
3
+ state: any;
4
+ setState: any;
5
+ updatePermission: any;
6
+ linkItem: any;
7
+ unlinkItem: any;
8
+ loading: any;
9
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { Item, Tag } from 'utopia-ui/dist/types';
2
+ export declare const TabsView: ({ item, offers, needs, relations, updatePermission, loading, linkItem, unlinkItem }: {
3
+ item: Item;
4
+ offers: Array<Tag>;
5
+ needs: Array<Tag>;
6
+ relations: Array<Item>;
7
+ updatePermission: boolean;
8
+ loading: boolean;
9
+ linkItem: (id: string) => Promise<void>;
10
+ unlinkItem: (id: string) => Promise<void>;
11
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ declare const useClickOutside: (ref: any, handler: any) => void;
2
+ export default useClickOutside;
@@ -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>;
@@ -6,3 +6,4 @@ export { MoonCalendar } from './MoonCalendar';
6
6
  export { ItemsIndexPage } from "./ItemsIndexPage";
7
7
  export { ItemViewPage } from "./ItemViewPage";
8
8
  export { OverlayItemsIndexPage } from "./OverlayItemsIndexPage";
9
+ export { SelectUser } from "./SelectUser";
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, OverlayItemProfile, OverlayItemProfileSettings } from './Components/Profile';
5
5
  export { Quests, Modal } from './Components/Gaming';
6
- export { TitleCard, CardPage, MapOverlayPage, OverlayItemsIndexPage, CircleLayout, MoonCalendar, ItemsIndexPage, ItemViewPage } from './Components/Templates';
6
+ export { TitleCard, CardPage, MapOverlayPage, OverlayItemsIndexPage, CircleLayout, MoonCalendar, ItemsIndexPage, ItemViewPage, SelectUser } from './Components/Templates';
7
7
  export { TextInput, TextAreaInput, SelectBox } from './Components/Input';
8
8
  import "./index.css";
9
9
  declare global {