utopia-ui 3.0.9 → 3.0.11

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 (81) hide show
  1. package/dist/Components/AppShell/AppShell.d.ts +1 -1
  2. package/dist/Components/AppShell/SetAppState.d.ts +5 -0
  3. package/dist/Components/AppShell/SidebarSubmenu.d.ts +1 -1
  4. package/dist/Components/AppShell/hooks/useAppState.d.ts +17 -0
  5. package/dist/Components/AppShell/hooks/useAssets.d.ts +2 -2
  6. package/dist/Components/AppShell/index.d.ts +4 -4
  7. package/dist/Components/Auth/RequestPasswordPage.d.ts +2 -2
  8. package/dist/Components/Auth/index.d.ts +2 -2
  9. package/dist/Components/Auth/useAuth.d.ts +2 -2
  10. package/dist/Components/Gaming/Modal.d.ts +2 -2
  11. package/dist/Components/Gaming/hooks/useQuests.d.ts +2 -2
  12. package/dist/Components/Input/Autocomplete.d.ts +1 -1
  13. package/dist/Components/Input/ComboBoxInput.d.ts +1 -4
  14. package/dist/Components/Input/TextAreaInput.d.ts +1 -1
  15. package/dist/Components/Input/TextInput.d.ts +1 -1
  16. package/dist/Components/Input/index.d.ts +3 -3
  17. package/dist/Components/Map/ItemForm.d.ts +1 -1
  18. package/dist/Components/Map/Layer.d.ts +1 -1
  19. package/dist/Components/Map/Permissions.d.ts +1 -1
  20. package/dist/Components/Map/Subcomponents/AddButton.d.ts +1 -1
  21. package/dist/Components/Map/Subcomponents/Controls/Control.d.ts +2 -2
  22. package/dist/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +2 -2
  23. package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.d.ts +1 -1
  24. package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupCheckboxInput.d.ts +1 -1
  25. package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +1 -1
  26. package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.d.ts +1 -1
  27. package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.d.ts +1 -1
  28. package/dist/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +1 -1
  29. package/dist/Components/Map/UtopiaMap.d.ts +1 -1
  30. package/dist/Components/Map/UtopiaMapInner.d.ts +4 -4
  31. package/dist/Components/Map/hooks/useClusterRef.d.ts +1 -1
  32. package/dist/Components/Map/hooks/useFilter.d.ts +16 -16
  33. package/dist/Components/Map/hooks/useItems.d.ts +9 -9
  34. package/dist/Components/Map/hooks/useLayers.d.ts +3 -3
  35. package/dist/Components/Map/hooks/useLeafletRefs.d.ts +5 -5
  36. package/dist/Components/Map/hooks/usePermissions.d.ts +6 -6
  37. package/dist/Components/Map/hooks/useSelectPosition.d.ts +5 -5
  38. package/dist/Components/Map/hooks/useTags.d.ts +7 -7
  39. package/dist/Components/Map/index.d.ts +2 -2
  40. package/dist/Components/Profile/ProfileForm.d.ts +1 -3
  41. package/dist/Components/Profile/ProfileView.d.ts +1 -2
  42. package/dist/Components/Profile/Subcomponents/ActionsButton.d.ts +2 -2
  43. package/dist/Components/Profile/Subcomponents/AvatarWidget.d.ts +1 -1
  44. package/dist/Components/Profile/Subcomponents/ColorPicker.d.ts +1 -1
  45. package/dist/Components/Profile/Subcomponents/ContactInfo.d.ts +3 -6
  46. package/dist/Components/Profile/Subcomponents/ContactInfoForm.d.ts +6 -0
  47. package/dist/Components/Profile/Subcomponents/ContactInfoView.d.ts +5 -0
  48. package/dist/Components/Profile/Subcomponents/GroupSubHeaderView.d.ts +5 -0
  49. package/dist/Components/Profile/Subcomponents/GroupSubheaderForm.d.ts +19 -0
  50. package/dist/Components/Profile/Subcomponents/LinkedItemsHeaderView.d.ts +2 -2
  51. package/dist/Components/Profile/Subcomponents/PlusButton.d.ts +2 -2
  52. package/dist/Components/Profile/Subcomponents/ProfileStartEndForm.d.ts +6 -0
  53. package/dist/Components/Profile/Subcomponents/ProfileStartEndView.d.ts +4 -0
  54. package/dist/Components/Profile/Subcomponents/ProfileTextForm.d.ts +10 -0
  55. package/dist/Components/Profile/Subcomponents/ProfileTextView.d.ts +7 -0
  56. package/dist/Components/Profile/Subcomponents/SocialShareBar.d.ts +1 -1
  57. package/dist/Components/Profile/Templates/FlexForm.d.ts +8 -0
  58. package/dist/Components/Profile/Templates/FlexView.d.ts +4 -0
  59. package/dist/Components/Profile/Templates/OnepagerForm.d.ts +20 -19
  60. package/dist/Components/Profile/Templates/OnepagerView.d.ts +2 -3
  61. package/dist/Components/Profile/Templates/TabsForm.d.ts +1 -1
  62. package/dist/Components/Profile/Templates/TabsView.d.ts +1 -2
  63. package/dist/Components/Profile/index.d.ts +3 -3
  64. package/dist/Components/Templates/CardPage.d.ts +2 -2
  65. package/dist/Components/Templates/CircleLayout.d.ts +1 -1
  66. package/dist/Components/Templates/DateUserInfo.d.ts +1 -1
  67. package/dist/Components/Templates/DialogModal.d.ts +1 -1
  68. package/dist/Components/Templates/EmojiPicker.d.ts +1 -1
  69. package/dist/Components/Templates/ItemCard.d.ts +1 -1
  70. package/dist/Components/Templates/MapOverlayPage.d.ts +1 -1
  71. package/dist/Components/Templates/OverlayItemsIndexPage.d.ts +1 -1
  72. package/dist/Components/Templates/SelectUser.d.ts +1 -3
  73. package/dist/Components/Templates/TagView.d.ts +1 -1
  74. package/dist/Components/Templates/TitleCard.d.ts +2 -2
  75. package/dist/Components/Templates/index.d.ts +4 -4
  76. package/dist/Components/Typography/Subtitle.d.ts +1 -1
  77. package/dist/index.d.ts +5 -5
  78. package/dist/index.js +1593 -1110
  79. package/dist/index.js.map +1 -1
  80. package/dist/types.d.ts +44 -44
  81. package/package.json +7 -2
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import { FormState } from '../Templates/OnepagerForm';
3
+ export declare const ProfileTextForm: ({ state, setState, dataField, heading, size, hideInputLabel, }: {
4
+ state: FormState;
5
+ setState: React.Dispatch<React.SetStateAction<any>>;
6
+ dataField?: string | undefined;
7
+ heading: string;
8
+ size: string;
9
+ hideInputLabel: boolean;
10
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { Item } from '../../../types';
2
+ export declare const ProfileTextView: ({ item, dataField, heading, hideWhenEmpty, }: {
3
+ item: Item;
4
+ dataField: string;
5
+ heading: string;
6
+ hideWhenEmpty: boolean;
7
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- declare const SocialShareBar: ({ url, title, platforms }: {
1
+ declare const SocialShareBar: ({ url, title, platforms, }: {
2
2
  url: any;
3
3
  title: any;
4
4
  platforms?: string[] | undefined;
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import { Item } from '../../../types';
3
+ import { FormState } from './OnepagerForm';
4
+ export declare const FlexForm: ({ item, state, setState, }: {
5
+ state: FormState;
6
+ setState: React.Dispatch<React.SetStateAction<any>>;
7
+ item: Item;
8
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { Item } from '../../../types';
2
+ export declare const FlexView: ({ item }: {
3
+ item: Item;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,23 +1,24 @@
1
1
  import * as React from 'react';
2
- import { Item, Tag } from "../../../types";
3
- export declare const OnepagerForm: ({ item, state, setState }: {
4
- state: {
5
- color: string;
6
- id: string;
7
- groupType: string;
8
- status: string;
9
- name: string;
10
- subname: string;
11
- text: string;
12
- contact: string;
13
- telephone: string;
14
- nextAppointment: string;
15
- image: string;
16
- markerIcon: string;
17
- offers: Tag[];
18
- needs: Tag[];
19
- relations: Item[];
20
- };
2
+ import { Item, Tag } from '../../../types';
3
+ export declare type FormState = {
4
+ color: string;
5
+ id: string;
6
+ group_type: string;
7
+ status: string;
8
+ name: string;
9
+ subname: string;
10
+ text: string;
11
+ contact: string;
12
+ telephone: string;
13
+ next_appointment: string;
14
+ image: string;
15
+ marker_icon: string;
16
+ offers: Tag[];
17
+ needs: Tag[];
18
+ relations: Item[];
19
+ };
20
+ export declare const OnepagerForm: ({ item, state, setState, }: {
21
+ state: FormState;
21
22
  setState: React.Dispatch<React.SetStateAction<any>>;
22
23
  item: Item;
23
24
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,4 @@
1
- import { Item } from "../../../types";
2
- export declare const OnepagerView: ({ item, userType }: {
1
+ import { Item } from '../../../types';
2
+ export declare const OnepagerView: ({ item }: {
3
3
  item: Item;
4
- userType: string;
5
4
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- export declare const TabsForm: ({ item, state, setState, updatePermission, linkItem, unlinkItem, loading, setUrlParams }: {
1
+ export declare const TabsForm: ({ item, state, setState, updatePermission, linkItem, unlinkItem, loading, setUrlParams, }: {
2
2
  item: any;
3
3
  state: any;
4
4
  setState: any;
@@ -1,7 +1,6 @@
1
1
  import { Item, Tag } from '../../../types';
2
- export declare const TabsView: ({ attestations, userType, item, offers, needs, relations, updatePermission, loading, linkItem, unlinkItem }: {
2
+ export declare const TabsView: ({ attestations, item, offers, needs, relations, updatePermission, loading, linkItem, unlinkItem, }: {
3
3
  attestations: Array<any>;
4
- userType: string;
5
4
  item: Item;
6
5
  offers: Array<Tag>;
7
6
  needs: Array<Tag>;
@@ -1,4 +1,4 @@
1
1
  export { UserSettings } from './UserSettings';
2
- export { PlusButton } from "./Subcomponents/PlusButton";
3
- export { ProfileView } from "./ProfileView";
4
- export { ProfileForm } from "./ProfileForm";
2
+ export { PlusButton } from './Subcomponents/PlusButton';
3
+ export { ProfileView } from './ProfileView';
4
+ export { ProfileForm } from './ProfileForm';
@@ -1,5 +1,5 @@
1
- import * as React from "react";
2
- export declare function CardPage({ title, hideTitle, children, parents }: {
1
+ import * as React from 'react';
2
+ export declare function CardPage({ title, hideTitle, children, parents, }: {
3
3
  title: string;
4
4
  hideTitle?: boolean;
5
5
  children?: React.ReactNode;
@@ -1,4 +1,4 @@
1
- export declare const CircleLayout: ({ items, radius, fontSize }: {
1
+ export declare const CircleLayout: ({ items, radius, fontSize, }: {
2
2
  items: any;
3
3
  radius: number;
4
4
  fontSize: any;
@@ -1,4 +1,4 @@
1
- import { Item } from "../../types";
1
+ import { Item } from '../../types';
2
2
  export declare const DateUserInfo: ({ item }: {
3
3
  item: Item;
4
4
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import * as React from 'react';
2
2
  declare type Props = {
3
3
  title: string;
4
4
  isOpened: boolean;
@@ -1,4 +1,4 @@
1
- export declare const EmojiPicker: ({ selectedEmoji, selectedColor, selectedShape, setSelectedEmoji, setSelectedColor, setSelectedShape }: {
1
+ export declare const EmojiPicker: ({ selectedEmoji, selectedColor, selectedShape, setSelectedEmoji, setSelectedColor, setSelectedShape, }: {
2
2
  selectedEmoji: any;
3
3
  selectedColor: any;
4
4
  selectedShape: any;
@@ -1,5 +1,5 @@
1
1
  import { Item } from '../../types';
2
- export declare const ItemCard: ({ i, loading, url, parameterField, deleteCallback }: {
2
+ export declare const ItemCard: ({ i, loading, url, parameterField, deleteCallback, }: {
3
3
  i: Item;
4
4
  loading: boolean;
5
5
  url: string;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- export declare function MapOverlayPage({ children, className, backdrop, card }: {
2
+ export declare function MapOverlayPage({ children, className, backdrop, card, }: {
3
3
  children: React.ReactNode;
4
4
  className?: string;
5
5
  backdrop?: boolean;
@@ -1,4 +1,4 @@
1
- export declare const OverlayItemsIndexPage: ({ url, layerName, parameterField, plusButton }: {
1
+ export declare const OverlayItemsIndexPage: ({ url, layerName, parameterField, plusButton, }: {
2
2
  layerName: string;
3
3
  url: string;
4
4
  parameterField: string;
@@ -1,3 +1 @@
1
- export declare const SelectUser: ({ userType }: {
2
- userType: string;
3
- }) => import("react/jsx-runtime").JSX.Element;
1
+ export declare const SelectUser: () => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { Tag } from '../../types';
2
- export declare const TagView: ({ tag, heighlight, onClick, count }: {
2
+ export declare const TagView: ({ tag, heighlight, onClick, count, }: {
3
3
  tag: Tag;
4
4
  heighlight?: boolean | undefined;
5
5
  onClick?: (() => void) | undefined;
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import * as React from 'react';
2
2
  interface TitleCardProps {
3
3
  title?: string;
4
4
  hideTitle?: boolean;
@@ -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): import("react/jsx-runtime").JSX.Element;
10
+ export declare function TitleCard({ title, hideTitle, children, topMargin, TopSideButtons, className, }: TitleCardProps): import("react/jsx-runtime").JSX.Element;
11
11
  export {};
@@ -2,7 +2,7 @@ export { CardPage } from './CardPage';
2
2
  export { TitleCard } from './TitleCard';
3
3
  export { MapOverlayPage } from './MapOverlayPage';
4
4
  export { MoonCalendar } from './MoonCalendar';
5
- export { SelectUser } from "./SelectUser";
6
- export { OverlayItemsIndexPage } from "./OverlayItemsIndexPage";
7
- export { AttestationForm } from "./AttestationForm";
8
- export { MarketView } from "./MarketView";
5
+ export { SelectUser } from './SelectUser';
6
+ export { OverlayItemsIndexPage } from './OverlayItemsIndexPage';
7
+ export { AttestationForm } from './AttestationForm';
8
+ export { MarketView } from './MarketView';
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import * as React from 'react';
2
2
  declare function Subtitle({ styleClass, children }: {
3
3
  styleClass: string;
4
4
  children: React.ReactNode;
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- export { UtopiaMap, Layer, Tags, Permissions, ItemForm, ItemView, PopupTextAreaInput, PopupStartEndInput, PopupTextInput, PopupButton, TextView, StartEndView, PopupCheckboxInput } from './Components/Map';
2
- export { AppShell, Content, SideBar, Sitemap } from "./Components/AppShell";
3
- export { AuthProvider, useAuth, LoginPage, SignupPage, RequestPasswordPage, SetNewPasswordPage } from "./Components/Auth";
1
+ import './index.css';
2
+ export { UtopiaMap, Layer, Tags, Permissions, ItemForm, ItemView, PopupTextAreaInput, PopupStartEndInput, PopupTextInput, PopupButton, TextView, StartEndView, PopupCheckboxInput, } from './Components/Map';
3
+ export { AppShell, Content, SideBar, Sitemap } from './Components/AppShell';
4
+ export { AuthProvider, useAuth, LoginPage, SignupPage, RequestPasswordPage, SetNewPasswordPage, } from './Components/Auth';
4
5
  export { UserSettings, ProfileView, ProfileForm } from './Components/Profile';
5
6
  export { Quests, Modal } from './Components/Gaming';
6
- export { TitleCard, CardPage, MapOverlayPage, OverlayItemsIndexPage, MoonCalendar, SelectUser, AttestationForm, MarketView } from './Components/Templates';
7
+ export { TitleCard, CardPage, MapOverlayPage, OverlayItemsIndexPage, MoonCalendar, SelectUser, AttestationForm, MarketView, } from './Components/Templates';
7
8
  export { TextInput, TextAreaInput, SelectBox } from './Components/Input';
8
- import "./index.css";
9
9
  declare global {
10
10
  interface Window {
11
11
  my_modal_3: any;