utopia-ui 3.0.30 → 3.0.32

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 (134) hide show
  1. package/README.md +2 -1
  2. package/dist/Components/Profile/Subcomponents/MarkdownHint.d.ts +1 -0
  3. package/dist/index.js +8 -3
  4. package/dist/index.js.map +1 -1
  5. package/dist/types/Components/AppShell/AppShell.d.ts +8 -0
  6. package/dist/types/Components/AppShell/Content.d.ts +6 -0
  7. package/dist/types/Components/AppShell/ContextWrapper.d.ts +6 -0
  8. package/dist/types/Components/AppShell/NavBar.d.ts +4 -0
  9. package/dist/types/Components/AppShell/SetAppState.d.ts +5 -0
  10. package/dist/types/Components/AppShell/SideBar.d.ts +13 -0
  11. package/dist/types/Components/AppShell/SidebarSubmenu.d.ts +8 -0
  12. package/dist/types/Components/AppShell/Sitemap.d.ts +3 -0
  13. package/dist/types/Components/AppShell/hooks/useAppState.d.ts +17 -0
  14. package/dist/types/Components/AppShell/hooks/useAssets.d.ts +13 -0
  15. package/dist/types/Components/AppShell/index.d.ts +4 -0
  16. package/dist/types/Components/Auth/LoginPage.d.ts +1 -0
  17. package/dist/types/Components/Auth/RequestPasswordPage.d.ts +3 -0
  18. package/dist/types/Components/Auth/SetNewPasswordPage.d.ts +1 -0
  19. package/dist/types/Components/Auth/SignupPage.d.ts +1 -0
  20. package/dist/types/Components/Auth/index.d.ts +5 -0
  21. package/dist/types/Components/Auth/useAuth.d.ts +26 -0
  22. package/dist/types/Components/Gaming/Modal.d.ts +5 -0
  23. package/dist/types/Components/Gaming/Quests.d.ts +1 -0
  24. package/dist/types/Components/Gaming/hooks/useQuests.d.ts +13 -0
  25. package/dist/types/Components/Gaming/index.d.ts +2 -0
  26. package/dist/types/Components/Input/Autocomplete.d.ts +7 -0
  27. package/dist/types/Components/Input/ComboBoxInput.d.ts +8 -0
  28. package/dist/types/Components/Input/SelectBox.d.ts +16 -0
  29. package/dist/types/Components/Input/TextAreaInput.d.ts +12 -0
  30. package/dist/types/Components/Input/TextInput.d.ts +16 -0
  31. package/dist/types/Components/Input/index.d.ts +3 -0
  32. package/dist/types/Components/Map/ItemForm.d.ts +17 -0
  33. package/dist/types/Components/Map/ItemView.d.ts +14 -0
  34. package/dist/types/Components/Map/Layer.d.ts +2 -0
  35. package/dist/types/Components/Map/Permissions.d.ts +6 -0
  36. package/dist/types/Components/Map/Subcomponents/AddButton.d.ts +4 -0
  37. package/dist/types/Components/Map/Subcomponents/Controls/Control.d.ts +6 -0
  38. package/dist/types/Components/Map/Subcomponents/Controls/FilterControl.d.ts +1 -0
  39. package/dist/types/Components/Map/Subcomponents/Controls/GratitudeControl.d.ts +1 -0
  40. package/dist/types/Components/Map/Subcomponents/Controls/LayerControl.d.ts +1 -0
  41. package/dist/types/Components/Map/Subcomponents/Controls/LocateControl.d.ts +3 -0
  42. package/dist/types/Components/Map/Subcomponents/Controls/QuestControl.d.ts +1 -0
  43. package/dist/types/Components/Map/Subcomponents/Controls/SearchControl.d.ts +1 -0
  44. package/dist/types/Components/Map/Subcomponents/Controls/SidebarControl.d.ts +1 -0
  45. package/dist/types/Components/Map/Subcomponents/Controls/TagsControl.d.ts +1 -0
  46. package/dist/types/Components/Map/Subcomponents/ItemFormPopup.d.ts +2 -0
  47. package/dist/types/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +17 -0
  48. package/dist/types/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.d.ts +8 -0
  49. package/dist/types/Components/Map/Subcomponents/ItemPopupComponents/PopupCheckboxInput.d.ts +6 -0
  50. package/dist/types/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +9 -0
  51. package/dist/types/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.d.ts +7 -0
  52. package/dist/types/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.d.ts +7 -0
  53. package/dist/types/Components/Map/Subcomponents/ItemPopupComponents/StartEndView.d.ts +4 -0
  54. package/dist/types/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +7 -0
  55. package/dist/types/Components/Map/Subcomponents/ItemViewPopup.d.ts +8 -0
  56. package/dist/types/Components/Map/Subcomponents/SelectPosition.d.ts +3 -0
  57. package/dist/types/Components/Map/Tags.d.ts +5 -0
  58. package/dist/types/Components/Map/UtopiaMap.d.ts +4 -0
  59. package/dist/types/Components/Map/UtopiaMapInner.d.ts +4 -0
  60. package/dist/types/Components/Map/hooks/useClusterRef.d.ts +12 -0
  61. package/dist/types/Components/Map/hooks/useDebounce.d.ts +1 -0
  62. package/dist/types/Components/Map/hooks/useFilter.d.ts +40 -0
  63. package/dist/types/Components/Map/hooks/useItems.d.ts +26 -0
  64. package/dist/types/Components/Map/hooks/useLayers.d.ts +14 -0
  65. package/dist/types/Components/Map/hooks/useLeafletRefs.d.ts +22 -0
  66. package/dist/types/Components/Map/hooks/usePermissions.d.ts +20 -0
  67. package/dist/types/Components/Map/hooks/useSelectPosition.d.ts +22 -0
  68. package/dist/types/Components/Map/hooks/useTags.d.ts +22 -0
  69. package/dist/types/Components/Map/hooks/useTimeout.d.ts +4 -0
  70. package/dist/types/Components/Map/hooks/useWindowDimension.d.ts +4 -0
  71. package/dist/types/Components/Map/index.d.ts +13 -0
  72. package/dist/types/Components/Map/setItemLocation.d.ts +1 -0
  73. package/dist/types/Components/Profile/ProfileForm.d.ts +1 -0
  74. package/dist/types/Components/Profile/ProfileView.d.ts +4 -0
  75. package/dist/types/Components/Profile/Subcomponents/ActionsButton.d.ts +11 -0
  76. package/dist/types/Components/Profile/Subcomponents/AvatarWidget.d.ts +8 -0
  77. package/dist/types/Components/Profile/Subcomponents/ColorPicker.d.ts +6 -0
  78. package/dist/types/Components/Profile/Subcomponents/ContactInfoForm.d.ts +5 -0
  79. package/dist/types/Components/Profile/Subcomponents/ContactInfoView.d.ts +5 -0
  80. package/dist/types/Components/Profile/Subcomponents/FormHeader.d.ts +5 -0
  81. package/dist/types/Components/Profile/Subcomponents/GroupSubHeaderView.d.ts +6 -0
  82. package/dist/types/Components/Profile/Subcomponents/GroupSubheaderForm.d.ts +17 -0
  83. package/dist/types/Components/Profile/Subcomponents/LinkedItemsHeaderView.d.ts +10 -0
  84. package/dist/types/Components/Profile/Subcomponents/MarkdownHint.d.ts +1 -0
  85. package/dist/types/Components/Profile/Subcomponents/PlusButton.d.ts +7 -0
  86. package/dist/types/Components/Profile/Subcomponents/ProfileStartEndForm.d.ts +5 -0
  87. package/dist/types/Components/Profile/Subcomponents/ProfileStartEndView.d.ts +4 -0
  88. package/dist/types/Components/Profile/Subcomponents/ProfileTextForm.d.ts +9 -0
  89. package/dist/types/Components/Profile/Subcomponents/ProfileTextView.d.ts +7 -0
  90. package/dist/types/Components/Profile/Subcomponents/RelationCard.d.ts +6 -0
  91. package/dist/types/Components/Profile/Subcomponents/SocialShareBar.d.ts +6 -0
  92. package/dist/types/Components/Profile/Subcomponents/SocialShareButton.d.ts +6 -0
  93. package/dist/types/Components/Profile/Subcomponents/TagsWidget.d.ts +6 -0
  94. package/dist/types/Components/Profile/Templates/FlexForm.d.ts +6 -0
  95. package/dist/types/Components/Profile/Templates/FlexView.d.ts +4 -0
  96. package/dist/types/Components/Profile/Templates/OnepagerForm.d.ts +6 -0
  97. package/dist/types/Components/Profile/Templates/OnepagerView.d.ts +4 -0
  98. package/dist/types/Components/Profile/Templates/SimpleForm.d.ts +4 -0
  99. package/dist/types/Components/Profile/Templates/SimpleView.d.ts +4 -0
  100. package/dist/types/Components/Profile/Templates/TabsForm.d.ts +10 -0
  101. package/dist/types/Components/Profile/Templates/TabsView.d.ts +12 -0
  102. package/dist/types/Components/Profile/UserSettings.d.ts +1 -0
  103. package/dist/types/Components/Profile/hooks/useClickOutside.d.ts +2 -0
  104. package/dist/types/Components/Profile/index.d.ts +4 -0
  105. package/dist/types/Components/Profile/itemFunctions.d.ts +5 -0
  106. package/dist/types/Components/Templates/AttestationForm.d.ts +4 -0
  107. package/dist/types/Components/Templates/CardPage.d.ts +10 -0
  108. package/dist/types/Components/Templates/CircleLayout.d.ts +5 -0
  109. package/dist/types/Components/Templates/DateUserInfo.d.ts +4 -0
  110. package/dist/types/Components/Templates/DialogModal.d.ts +12 -0
  111. package/dist/types/Components/Templates/EmojiPicker.d.ts +8 -0
  112. package/dist/types/Components/Templates/ItemCard.d.ts +8 -0
  113. package/dist/types/Components/Templates/MapOverlayPage.d.ts +7 -0
  114. package/dist/types/Components/Templates/MarketView.d.ts +1 -0
  115. package/dist/types/Components/Templates/MoonCalendar.d.ts +1 -0
  116. package/dist/types/Components/Templates/OverlayItemsIndexPage.d.ts +6 -0
  117. package/dist/types/Components/Templates/SelectUser.d.ts +1 -0
  118. package/dist/types/Components/Templates/TagView.d.ts +7 -0
  119. package/dist/types/Components/Templates/TitleCard.d.ts +11 -0
  120. package/dist/types/Components/Templates/index.d.ts +8 -0
  121. package/dist/types/Components/Typography/ErrorText.d.ts +5 -0
  122. package/dist/types/Components/Typography/Subtitle.d.ts +6 -0
  123. package/dist/types/Utils/FormatTags.d.ts +2 -0
  124. package/dist/types/Utils/GetValue.d.ts +1 -0
  125. package/dist/types/Utils/HashTagRegex.d.ts +1 -0
  126. package/dist/types/Utils/MarkerIconFactory.d.ts +2 -0
  127. package/dist/types/Utils/Moon.d.ts +7 -0
  128. package/dist/types/Utils/RandomColor.d.ts +1 -0
  129. package/dist/types/Utils/ReplaceURLs.d.ts +3 -0
  130. package/dist/types/Utils/ReverseGeocoder.d.ts +1 -0
  131. package/dist/types/Utils/TimeAgo.d.ts +1 -0
  132. package/dist/types/index.d.ts +13 -0
  133. package/dist/types/types.d.ts +169 -0
  134. package/package.json +1 -1
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ import { LatLng } from 'leaflet';
3
+ import { Item, LayerProps, ItemFormPopupProps } from '#src/types';
4
+ interface PolygonClickedProps {
5
+ position: LatLng;
6
+ setItemFormPopup: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
7
+ }
8
+ declare type UseSelectPositionManagerResult = ReturnType<typeof useSelectPositionManager>;
9
+ declare function useSelectPositionManager(): {
10
+ selectPosition: Item | LayerProps | null;
11
+ setSelectPosition: React.Dispatch<React.SetStateAction<Item | LayerProps | null>>;
12
+ setMarkerClicked: React.Dispatch<React.SetStateAction<Item>>;
13
+ setMapClicked: React.Dispatch<React.SetStateAction<PolygonClickedProps | undefined>>;
14
+ };
15
+ export declare const SelectPositionProvider: React.FunctionComponent<{
16
+ children?: React.ReactNode;
17
+ }>;
18
+ export declare const useSelectPosition: () => Item | LayerProps | null;
19
+ export declare const useSetSelectPosition: () => UseSelectPositionManagerResult['setSelectPosition'];
20
+ export declare const useSetMarkerClicked: () => UseSelectPositionManagerResult['setMarkerClicked'];
21
+ export declare const useSetMapClicked: () => UseSelectPositionManagerResult['setMapClicked'];
22
+ export {};
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ import { Item, ItemsApi, Tag } from '#src/types';
3
+ declare type UseTagManagerResult = ReturnType<typeof useTagsManager>;
4
+ declare function useTagsManager(initialTags: Tag[]): {
5
+ tags: Tag[];
6
+ addTag: (tag: Tag) => void;
7
+ setTagApi: (api: ItemsApi<Tag>) => void;
8
+ setTagData: (data: Tag[]) => void;
9
+ getItemTags: (item: Item) => Tag[];
10
+ allTagsLoaded: boolean;
11
+ };
12
+ export declare const TagsProvider: React.FunctionComponent<{
13
+ initialTags: Tag[];
14
+ children?: React.ReactNode;
15
+ }>;
16
+ export declare const useTags: () => Tag[];
17
+ export declare const useAddTag: () => UseTagManagerResult['addTag'];
18
+ export declare const useSetTagApi: () => UseTagManagerResult['setTagApi'];
19
+ export declare const useSetTagData: () => UseTagManagerResult['setTagData'];
20
+ export declare const useGetItemTags: () => UseTagManagerResult['getItemTags'];
21
+ export declare const useAllTagsLoaded: () => UseTagManagerResult['allTagsLoaded'];
22
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare const useTimeout: (callback: any, delay: any) => {
2
+ reset: () => void;
3
+ clear: () => void;
4
+ };
@@ -0,0 +1,4 @@
1
+ export default function useWindowDimensions(): {
2
+ width: number;
3
+ height: number;
4
+ };
@@ -0,0 +1,13 @@
1
+ export { UtopiaMap } from './UtopiaMap';
2
+ export { Layer } from './Layer';
3
+ export { Tags } from './Tags';
4
+ export { Permissions } from './Permissions';
5
+ export { ItemForm } from './ItemForm';
6
+ export { ItemView } from './ItemView';
7
+ export { PopupTextAreaInput } from './Subcomponents/ItemPopupComponents/PopupTextAreaInput';
8
+ export { PopupStartEndInput } from './Subcomponents/ItemPopupComponents/PopupStartEndInput';
9
+ export { PopupTextInput } from './Subcomponents/ItemPopupComponents/PopupTextInput';
10
+ export { PopupCheckboxInput } from './Subcomponents/ItemPopupComponents/PopupCheckboxInput';
11
+ export { TextView } from './Subcomponents/ItemPopupComponents/TextView';
12
+ export { StartEndView } from './Subcomponents/ItemPopupComponents/StartEndView';
13
+ export { PopupButton } from './Subcomponents/ItemPopupComponents/PopupButton';
@@ -0,0 +1 @@
1
+ export declare const setItemLocation: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function ProfileForm(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { ItemsApi } from '#src/types';
2
+ export declare function ProfileView({ attestationApi }: {
3
+ attestationApi?: ItemsApi<any>;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { Item } from '#src/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,8 @@
1
+ /// <reference types="react" />
2
+ import 'react-image-crop/dist/ReactCrop.css';
3
+ interface AvatarWidgetProps {
4
+ avatar: string;
5
+ setAvatar: React.Dispatch<React.SetStateAction<any>>;
6
+ }
7
+ export declare const AvatarWidget: React.FC<AvatarWidgetProps>;
8
+ export {};
@@ -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,5 @@
1
+ import { FormState } from '#src/types';
2
+ export declare const ContactInfoForm: ({ state, setState, }: {
3
+ state: FormState;
4
+ setState: React.Dispatch<React.SetStateAction<any>>;
5
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { Item } from '#src/types';
2
+ export declare const ContactInfoView: ({ item, heading }: {
3
+ item: Item;
4
+ heading: string;
5
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -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,6 @@
1
+ import { Item } from '#src/types';
2
+ export declare const GroupSubHeaderView: ({ item, shareBaseUrl, platforms, }: {
3
+ item: Item;
4
+ shareBaseUrl: string;
5
+ platforms?: string[] | undefined;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,17 @@
1
+ import { Item, FormState } from '#src/types';
2
+ interface groupType {
3
+ groupTypes_id: {
4
+ name: string;
5
+ color: string;
6
+ image: string;
7
+ markerIcon: string;
8
+ };
9
+ }
10
+ export declare const GroupSubheaderForm: ({ state, setState, groupStates, groupTypes, }: {
11
+ state: FormState;
12
+ setState: React.Dispatch<React.SetStateAction<any>>;
13
+ item: Item;
14
+ groupStates?: string[] | undefined;
15
+ groupTypes?: groupType[] | undefined;
16
+ }) => import("react/jsx-runtime").JSX.Element;
17
+ export {};
@@ -0,0 +1,10 @@
1
+ import { Item } from '#src/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 @@
1
+ export declare const MarkdownHint: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { LayerProps } from '#src/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,5 @@
1
+ import { Item } from '#src/types';
2
+ export declare const ProfileStartEndForm: ({ item, setState, }: {
3
+ item: Item;
4
+ setState: React.Dispatch<React.SetStateAction<any>>;
5
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { Item } from '#src/types';
2
+ export declare const ProfileStartEndView: ({ item }: {
3
+ item: Item;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { FormState } from '#src/types';
2
+ export declare const ProfileTextForm: ({ state, setState, dataField, heading, size, hideInputLabel, }: {
3
+ state: FormState;
4
+ setState: React.Dispatch<React.SetStateAction<any>>;
5
+ dataField?: string | undefined;
6
+ heading: string;
7
+ size: string;
8
+ hideInputLabel: boolean;
9
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { Item } from '#src/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;
@@ -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: string;
3
+ title: string;
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: string;
3
+ url: string;
4
+ title: string;
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,6 @@
1
+ import { Item, FormState } from '#src/types';
2
+ export declare const FlexForm: ({ item, state, setState, }: {
3
+ state: FormState;
4
+ setState: React.Dispatch<React.SetStateAction<any>>;
5
+ item: Item;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { Item } from '#src/types';
2
+ export declare const FlexView: ({ item }: {
3
+ item: Item;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { FormState, Item } from '#src/types';
2
+ export declare const OnepagerForm: ({ item, state, setState, }: {
3
+ state: FormState;
4
+ setState: React.Dispatch<React.SetStateAction<any>>;
5
+ item: Item;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { Item } from '#src/types';
2
+ export declare const OnepagerView: ({ item }: {
3
+ item: Item;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export declare const SimpleForm: ({ state, setState }: {
2
+ state: any;
3
+ setState: any;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { Item } from '#src/types';
2
+ export declare const SimpleView: ({ item }: {
3
+ item: Item;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ export declare const TabsForm: ({ item, state, setState, updatePermission, linkItem, unlinkItem, loading, setUrlParams, }: {
2
+ item: any;
3
+ state: any;
4
+ setState: any;
5
+ updatePermission: any;
6
+ linkItem: any;
7
+ unlinkItem: any;
8
+ loading: any;
9
+ setUrlParams: any;
10
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { Item, Tag } from '#src/types';
2
+ export declare const TabsView: ({ attestations, item, offers, needs, relations, updatePermission, loading, linkItem, unlinkItem, }: {
3
+ attestations: any[];
4
+ item: Item;
5
+ offers: Tag[];
6
+ needs: Tag[];
7
+ relations: Item[];
8
+ updatePermission: boolean;
9
+ loading: boolean;
10
+ linkItem: (id: string) => Promise<void>;
11
+ unlinkItem: (id: string) => Promise<void>;
12
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function UserSettings(): 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,4 @@
1
+ export { UserSettings } from './UserSettings';
2
+ export { PlusButton } from './Subcomponents/PlusButton';
3
+ export { ProfileView } from './ProfileView';
4
+ export { ProfileForm } from './ProfileForm';
@@ -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>;
@@ -0,0 +1,4 @@
1
+ import { ItemsApi } from '#src/types';
2
+ export declare const AttestationForm: ({ api }: {
3
+ api?: ItemsApi<any> | undefined;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ export declare function CardPage({ title, hideTitle, children, parents, }: {
3
+ title: string;
4
+ hideTitle?: boolean;
5
+ children?: React.ReactNode;
6
+ parents?: {
7
+ name: string;
8
+ path: string;
9
+ }[];
10
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export declare const CircleLayout: ({ items, radius, fontSize, }: {
2
+ items: any;
3
+ radius: number;
4
+ fontSize: any;
5
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { Item } from '#src/types';
2
+ export declare const DateUserInfo: ({ item }: {
3
+ item: Item;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ interface Props {
3
+ title: string;
4
+ isOpened: boolean;
5
+ onClose: () => void;
6
+ children: React.ReactNode;
7
+ showCloseButton?: boolean;
8
+ closeOnClickOutside?: boolean;
9
+ className?: string;
10
+ }
11
+ declare const DialogModal: ({ title, isOpened, onClose, children, showCloseButton, closeOnClickOutside, className, }: Props) => import("react/jsx-runtime").JSX.Element;
12
+ export default DialogModal;
@@ -0,0 +1,8 @@
1
+ export declare const EmojiPicker: ({ selectedEmoji, selectedColor, selectedShape, setSelectedEmoji, setSelectedColor, setSelectedShape, }: {
2
+ selectedEmoji: any;
3
+ selectedColor: any;
4
+ selectedShape: any;
5
+ setSelectedEmoji: any;
6
+ setSelectedColor: any;
7
+ setSelectedShape: any;
8
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { Item } from '#src/types';
2
+ export declare const ItemCard: ({ i, loading, url, parameterField, deleteCallback, }: {
3
+ i: Item;
4
+ loading: boolean;
5
+ url: string;
6
+ parameterField: string;
7
+ deleteCallback: any;
8
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export declare function MapOverlayPage({ children, className, backdrop, card, }: {
3
+ children: React.ReactNode;
4
+ className?: string;
5
+ backdrop?: boolean;
6
+ card?: boolean;
7
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const MarketView: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const MoonCalendar: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ export declare const OverlayItemsIndexPage: ({ url, layerName, parameterField, plusButton, }: {
2
+ layerName: string;
3
+ url: string;
4
+ parameterField: string;
5
+ plusButton?: boolean | undefined;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const SelectUser: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { Tag } from '#src/types';
2
+ export declare const TagView: ({ tag, heighlight, onClick, count, }: {
3
+ tag: Tag;
4
+ heighlight?: boolean | undefined;
5
+ onClick?: (() => void) | undefined;
6
+ count?: number | undefined;
7
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ interface TitleCardProps {
3
+ title?: string;
4
+ hideTitle?: boolean;
5
+ children?: React.ReactNode;
6
+ topMargin?: string;
7
+ className?: string;
8
+ TopSideButtons?: any;
9
+ }
10
+ export declare function TitleCard({ title, hideTitle, children, topMargin, TopSideButtons, className, }: TitleCardProps): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,8 @@
1
+ export { CardPage } from './CardPage';
2
+ export { TitleCard } from './TitleCard';
3
+ export { MapOverlayPage } from './MapOverlayPage';
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';
@@ -0,0 +1,5 @@
1
+ declare function ErrorText({ styleClass, children }: {
2
+ styleClass: any;
3
+ children: any;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ export default ErrorText;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ declare function Subtitle({ styleClass, children }: {
3
+ styleClass: string;
4
+ children: React.ReactNode;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ export default Subtitle;
@@ -0,0 +1,2 @@
1
+ export declare function decodeTag(string: string): string;
2
+ export declare function encodeTag(string: string): string;
@@ -0,0 +1 @@
1
+ export declare function getValue(obj: any, path: any): any;
@@ -0,0 +1 @@
1
+ export declare const hashTagRegex: RegExp;
@@ -0,0 +1,2 @@
1
+ declare const MarkerIconFactory: (shape: string, color1: string, color2: string, icon: string) => import("leaflet").DivIcon;
2
+ export default MarkerIconFactory;
@@ -0,0 +1,7 @@
1
+ export declare const LUNAR_MONTH = 29.530588853;
2
+ export declare const getJulianDate: (date?: Date) => number;
3
+ export declare const normalize: (value: number) => number;
4
+ export declare const getLunarAgePercent: (date?: Date) => number;
5
+ export declare const getLunarAge: (date?: Date) => number;
6
+ export declare const getNextNewMoon: () => Date;
7
+ export declare const getLastNewMoon: (date?: Date) => Date;
@@ -0,0 +1 @@
1
+ export declare const randomColor: () => string;
@@ -0,0 +1,3 @@
1
+ export declare const urlRegex: RegExp;
2
+ export declare const mailRegex: RegExp;
3
+ export declare function fixUrls(message: string): string;
@@ -0,0 +1 @@
1
+ export declare function reverseGeocode(lat: number, lon: number): Promise<string>;
@@ -0,0 +1 @@
1
+ export declare const timeAgo: (date: string | number | Date) => string;
@@ -0,0 +1,13 @@
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';
5
+ export { UserSettings, ProfileView, ProfileForm } from './Components/Profile';
6
+ export { Quests, Modal } from './Components/Gaming';
7
+ export { TitleCard, CardPage, MapOverlayPage, OverlayItemsIndexPage, MoonCalendar, SelectUser, AttestationForm, MarketView, } from './Components/Templates';
8
+ export { TextInput, TextAreaInput, SelectBox } from './Components/Input';
9
+ declare global {
10
+ interface Window {
11
+ my_modal_3: any;
12
+ }
13
+ }