utopia-ui 3.0.0-alpha.14 → 3.0.0-alpha.140

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 (205) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +29 -6
  3. package/dist/Components/AppShell/AppShell.d.ts +7 -5
  4. package/dist/Components/AppShell/Content.d.ts +1 -1
  5. package/dist/Components/AppShell/NavBar.d.ts +1 -2
  6. package/dist/Components/AppShell/SetAssetsApi.d.ts +4 -0
  7. package/dist/Components/AppShell/SideBar.d.ts +4 -2
  8. package/dist/Components/AppShell/SidebarSubmenu.d.ts +1 -1
  9. package/dist/Components/AppShell/hooks/useAssets.d.ts +13 -0
  10. package/dist/Components/Auth/LoginPage copy.d.ts +2 -0
  11. package/dist/Components/Auth/LoginPage.d.ts +1 -2
  12. package/dist/Components/Auth/RequestPasswordPage.d.ts +3 -0
  13. package/dist/Components/Auth/ResetPasswordPage.d.ts +2 -0
  14. package/dist/Components/Auth/SetNewPasswordPage.d.ts +1 -0
  15. package/dist/Components/Auth/SignupPage.d.ts +1 -2
  16. package/dist/Components/Auth/Signuppage.d.ts +2 -0
  17. package/dist/Components/Auth/index.d.ts +3 -1
  18. package/dist/Components/Auth/useAuth.d.ts +4 -2
  19. package/dist/Components/Gaming/Modal.d.ts +5 -9
  20. package/dist/Components/Gaming/Quests.d.ts +1 -2
  21. package/dist/Components/Gaming/hooks/useQuests.d.ts +13 -0
  22. package/dist/Components/Input/Autocomplete.d.ts +7 -0
  23. package/dist/Components/Input/SelectBox.d.ts +16 -0
  24. package/dist/Components/Input/TextAreaInput.d.ts +1 -2
  25. package/dist/Components/Input/TextInput.d.ts +2 -2
  26. package/dist/Components/Input/index.d.ts +1 -0
  27. package/dist/Components/Map/ItemForm.d.ts +4 -2
  28. package/dist/Components/Map/ItemView.d.ts +1 -1
  29. package/dist/Components/Map/Layer.d.ts +1 -2
  30. package/dist/Components/Map/Permissions.d.ts +1 -2
  31. package/dist/Components/Map/Subcomponents/AddButton.d.ts +3 -3
  32. package/dist/Components/Map/Subcomponents/Control.d.ts +5 -0
  33. package/dist/Components/Map/Subcomponents/Controls/Control.d.ts +6 -0
  34. package/dist/Components/Map/Subcomponents/Controls/FilterControl.d.ts +2 -0
  35. package/dist/Components/Map/Subcomponents/Controls/LayerControl.d.ts +1 -0
  36. package/dist/Components/Map/Subcomponents/Controls/LocateControl.d.ts +3 -0
  37. package/dist/Components/Map/Subcomponents/Controls/QuestControl.d.ts +1 -0
  38. package/dist/Components/Map/Subcomponents/Controls/SearchControl.d.ts +1 -0
  39. package/dist/Components/Map/Subcomponents/Controls/TagsControl.d.ts +1 -0
  40. package/dist/Components/Map/Subcomponents/ItemFormPopup.d.ts +2 -2
  41. package/dist/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +15 -6
  42. package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.d.ts +8 -0
  43. package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +1 -2
  44. package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.d.ts +1 -2
  45. package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.d.ts +7 -2
  46. package/dist/Components/Map/Subcomponents/ItemPopupComponents/StartEndView.d.ts +1 -2
  47. package/dist/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +4 -3
  48. package/dist/Components/Map/Subcomponents/LayerControl.d.ts +2 -0
  49. package/dist/Components/Map/Subcomponents/QuestControl.d.ts +2 -0
  50. package/dist/Components/Map/Tags.d.ts +1 -2
  51. package/dist/Components/Map/UtopiaMap.d.ts +3 -3
  52. package/dist/Components/Map/hooks/useClusterRef.d.ts +12 -0
  53. package/dist/Components/Map/hooks/useDebounce.d.ts +1 -0
  54. package/dist/Components/Map/hooks/useFilter.d.ts +12 -2
  55. package/dist/Components/Map/hooks/useItems.d.ts +2 -0
  56. package/dist/Components/Map/hooks/usePermissions.d.ts +2 -2
  57. package/dist/Components/Map/hooks/useSelectPosition.d.ts +15 -0
  58. package/dist/Components/Map/hooks/useSetItemPosition.d.ts +13 -0
  59. package/dist/Components/Map/hooks/useTags.d.ts +2 -2
  60. package/dist/Components/Map/hooks/useTimeout.d.ts +4 -0
  61. package/dist/Components/Map/index.d.ts +2 -0
  62. package/dist/Components/Map/setItemLocation.d.ts +1 -0
  63. package/dist/Components/Profile/ActionButton.d.ts +5 -0
  64. package/dist/Components/Profile/ActionsButton.d.ts +10 -0
  65. package/dist/Components/Profile/AvatarWidget.d.ts +5 -0
  66. package/dist/Components/Profile/ColorPicker.d.ts +6 -0
  67. package/dist/Components/Profile/Editor.d.ts +4 -0
  68. package/dist/Components/Profile/ItemForm.d.ts +1 -0
  69. package/dist/Components/Profile/LinkedItemsHeaderView.d.ts +10 -0
  70. package/dist/Components/Profile/OverlayItemProfile.d.ts +1 -0
  71. package/dist/Components/Profile/OverlayItemProfileSettings.d.ts +1 -0
  72. package/dist/Components/Profile/OverlayProfile.d.ts +1 -0
  73. package/dist/Components/Profile/OverlayProfileSettings.d.ts +1 -0
  74. package/dist/Components/Profile/OverlayUserSettings.d.ts +1 -0
  75. package/dist/Components/Profile/PlusButton.d.ts +5 -0
  76. package/dist/Components/Profile/ProfileSettings.d.ts +3 -0
  77. package/dist/Components/Profile/Settings.d.ts +1 -0
  78. package/dist/Components/Profile/Tags.d.ts +2 -0
  79. package/dist/Components/Profile/TagsWidget.d.ts +6 -0
  80. package/dist/Components/Profile/UserSettings.d.ts +3 -0
  81. package/dist/Components/Profile/index.d.ts +8 -1
  82. package/dist/Components/Profile/useClickOutside.d.ts +2 -0
  83. package/dist/Components/Templates/CardItem.d.ts +6 -0
  84. package/dist/Components/Templates/CardPage.d.ts +7 -2
  85. package/dist/Components/Templates/CircleLayout.d.ts +5 -0
  86. package/dist/Components/Templates/DateUserInfo.d.ts +4 -0
  87. package/dist/Components/Templates/DialogModal.d.ts +12 -0
  88. package/dist/Components/Templates/ItemCard.d.ts +9 -0
  89. package/dist/Components/Templates/ItemViewPage.d.ts +14 -0
  90. package/dist/Components/Templates/ItemsIndexPage.d.ts +19 -0
  91. package/dist/Components/Templates/MapOverlayPage.d.ts +7 -0
  92. package/dist/Components/Templates/MapOverlayScreen.d.ts +4 -0
  93. package/dist/Components/Templates/MoonCalendar.d.ts +1 -0
  94. package/dist/Components/Templates/OverlayItemsIndexPage.d.ts +19 -0
  95. package/dist/Components/Templates/TagView.d.ts +6 -0
  96. package/dist/Components/Templates/TitleCard.d.ts +6 -4
  97. package/dist/Components/Templates/index.d.ts +6 -0
  98. package/dist/Components/Typography/ErrorText.d.ts +1 -2
  99. package/dist/Components/Typography/Subtitle.d.ts +1 -1
  100. package/dist/Utils/DynamicHeroIcon.d.ts +2 -0
  101. package/dist/Utils/FormatTags.d.ts +2 -0
  102. package/dist/Utils/GetValue.d.ts +1 -0
  103. package/dist/Utils/Moon.d.ts +7 -0
  104. package/dist/Utils/TimeAgo.d.ts +1 -0
  105. package/dist/index.d.ts +5 -5
  106. package/dist/index.js +4326 -1290
  107. package/dist/index.js.map +1 -1
  108. package/dist/types.d.ts +61 -11
  109. package/dist/workspace/utopia-ui/src/Components/AppShell/AppShell.d.ts +8 -0
  110. package/dist/workspace/utopia-ui/src/Components/AppShell/Content.d.ts +6 -0
  111. package/dist/workspace/utopia-ui/src/Components/AppShell/NavBar.d.ts +4 -0
  112. package/dist/workspace/utopia-ui/src/Components/AppShell/SetAssetsApi.d.ts +4 -0
  113. package/dist/workspace/utopia-ui/src/Components/AppShell/SideBar.d.ts +12 -0
  114. package/dist/workspace/utopia-ui/src/Components/AppShell/SidebarSubmenu.d.ts +7 -0
  115. package/dist/workspace/utopia-ui/src/Components/AppShell/hooks/useAssets.d.ts +13 -0
  116. package/dist/workspace/utopia-ui/src/Components/AppShell/index.d.ts +3 -0
  117. package/dist/workspace/utopia-ui/src/Components/Auth/LoginPage.d.ts +1 -0
  118. package/dist/workspace/utopia-ui/src/Components/Auth/RequestPasswordPage.d.ts +3 -0
  119. package/dist/workspace/utopia-ui/src/Components/Auth/SetNewPasswordPage.d.ts +1 -0
  120. package/dist/workspace/utopia-ui/src/Components/Auth/SignupPage.d.ts +1 -0
  121. package/dist/workspace/utopia-ui/src/Components/Auth/index.d.ts +5 -0
  122. package/dist/{Components/Auth/authDirectus.d.ts → workspace/utopia-ui/src/Components/Auth/useAuth.d.ts} +6 -4
  123. package/dist/workspace/utopia-ui/src/Components/Gaming/Modal.d.ts +5 -0
  124. package/dist/workspace/utopia-ui/src/Components/Gaming/Quests.d.ts +1 -0
  125. package/dist/workspace/utopia-ui/src/Components/Gaming/hooks/useQuests.d.ts +13 -0
  126. package/dist/workspace/utopia-ui/src/Components/Gaming/index.d.ts +2 -0
  127. package/dist/workspace/utopia-ui/src/Components/Input/Autocomplete.d.ts +7 -0
  128. package/dist/workspace/utopia-ui/src/Components/Input/SelectBox.d.ts +16 -0
  129. package/dist/{Components/Input/TributeTextAreaInput copy.d.ts → workspace/utopia-ui/src/Components/Input/TextAreaInput.d.ts} +0 -1
  130. package/dist/workspace/utopia-ui/src/Components/Input/TextInput.d.ts +14 -0
  131. package/dist/workspace/utopia-ui/src/Components/Input/index.d.ts +3 -0
  132. package/dist/workspace/utopia-ui/src/Components/Map/ItemForm.d.ts +18 -0
  133. package/dist/workspace/utopia-ui/src/Components/Map/ItemView.d.ts +16 -0
  134. package/dist/workspace/utopia-ui/src/Components/Map/Layer.d.ts +2 -0
  135. package/dist/workspace/utopia-ui/src/Components/Map/Permissions.d.ts +6 -0
  136. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/AddButton.d.ts +4 -0
  137. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/Control.d.ts +6 -0
  138. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/LayerControl.d.ts +1 -0
  139. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/LocateControl.d.ts +3 -0
  140. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/QuestControl.d.ts +1 -0
  141. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/SearchControl.d.ts +3 -0
  142. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/TagsControl.d.ts +1 -0
  143. package/dist/{Components/Map → workspace/utopia-ui/src/Components/Map/Subcomponents}/ItemFormPopup.d.ts +2 -3
  144. package/dist/{Components/Map/Subcomponents → workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents}/HeaderView.d.ts +2 -2
  145. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.d.ts +8 -0
  146. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +4 -0
  147. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.d.ts +7 -0
  148. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.d.ts +7 -0
  149. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/StartEndView.d.ts +4 -0
  150. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +6 -0
  151. package/dist/{Components/Map → workspace/utopia-ui/src/Components/Map/Subcomponents}/ItemViewPopup.d.ts +3 -2
  152. package/dist/workspace/utopia-ui/src/Components/Map/Tags.d.ts +5 -0
  153. package/dist/workspace/utopia-ui/src/Components/Map/UtopiaMap.d.ts +11 -0
  154. package/dist/workspace/utopia-ui/src/Components/Map/hooks/useDebounce.d.ts +1 -0
  155. package/dist/workspace/utopia-ui/src/Components/Map/hooks/useFilter.d.ts +32 -0
  156. package/dist/workspace/utopia-ui/src/Components/Map/hooks/useItems.d.ts +26 -0
  157. package/dist/workspace/utopia-ui/src/Components/Map/hooks/useLayers.d.ts +14 -0
  158. package/dist/workspace/utopia-ui/src/Components/Map/hooks/useLeafletRefs.d.ts +22 -0
  159. package/dist/workspace/utopia-ui/src/Components/Map/hooks/usePermissions.d.ts +20 -0
  160. package/dist/workspace/utopia-ui/src/Components/Map/hooks/useTags.d.ts +22 -0
  161. package/dist/workspace/utopia-ui/src/Components/Map/hooks/useTimeout.d.ts +4 -0
  162. package/dist/workspace/utopia-ui/src/Components/Map/hooks/useWindowDimension.d.ts +4 -0
  163. package/dist/workspace/utopia-ui/src/Components/Map/index.d.ts +12 -0
  164. package/dist/workspace/utopia-ui/src/Components/Profile/ColorPicker.d.ts +6 -0
  165. package/dist/workspace/utopia-ui/src/Components/Profile/Editor.d.ts +4 -0
  166. package/dist/workspace/utopia-ui/src/Components/Profile/OverlayProfile.d.ts +1 -0
  167. package/dist/workspace/utopia-ui/src/Components/Profile/OverlayProfileSettings.d.ts +1 -0
  168. package/dist/workspace/utopia-ui/src/Components/Profile/OverlayUserSettings.d.ts +1 -0
  169. package/dist/workspace/utopia-ui/src/Components/Profile/ProfileSettings.d.ts +3 -0
  170. package/dist/workspace/utopia-ui/src/Components/Profile/TagsWidget.d.ts +6 -0
  171. package/dist/workspace/utopia-ui/src/Components/Profile/UserSettings.d.ts +3 -0
  172. package/dist/workspace/utopia-ui/src/Components/Profile/index.d.ts +5 -0
  173. package/dist/workspace/utopia-ui/src/Components/Profile/useClickOutside.d.ts +2 -0
  174. package/dist/workspace/utopia-ui/src/Components/Templates/CardPage.d.ts +10 -0
  175. package/dist/workspace/utopia-ui/src/Components/Templates/CircleLayout.d.ts +5 -0
  176. package/dist/{Components/AppShell → workspace/utopia-ui/src/Components/Templates}/DialogModal.d.ts +2 -1
  177. package/dist/workspace/utopia-ui/src/Components/Templates/ItemsIndexPage.d.ts +15 -0
  178. package/dist/workspace/utopia-ui/src/Components/Templates/MapOverlayPage.d.ts +7 -0
  179. package/dist/workspace/utopia-ui/src/Components/Templates/MoonCalendar.d.ts +1 -0
  180. package/dist/workspace/utopia-ui/src/Components/Templates/TagView.d.ts +6 -0
  181. package/dist/workspace/utopia-ui/src/Components/Templates/TitleCard.d.ts +11 -0
  182. package/dist/workspace/utopia-ui/src/Components/Templates/index.d.ts +6 -0
  183. package/dist/workspace/utopia-ui/src/Components/Typography/ErrorText.d.ts +5 -0
  184. package/dist/workspace/utopia-ui/src/Components/Typography/Subtitle.d.ts +6 -0
  185. package/dist/workspace/utopia-ui/src/Utils/FormatTags.d.ts +2 -0
  186. package/dist/workspace/utopia-ui/src/Utils/GetValue.d.ts +1 -0
  187. package/dist/workspace/utopia-ui/src/Utils/MarkerIconFactory.d.ts +3 -0
  188. package/dist/workspace/utopia-ui/src/Utils/Moon.d.ts +7 -0
  189. package/dist/workspace/utopia-ui/src/Utils/RandomColor.d.ts +1 -0
  190. package/dist/workspace/utopia-ui/src/Utils/ReplaceURLs.d.ts +3 -0
  191. package/dist/workspace/utopia-ui/src/Utils/TimeAgo.d.ts +1 -0
  192. package/dist/workspace/utopia-ui/src/index.d.ts +13 -0
  193. package/dist/workspace/utopia-ui/src/types.d.ts +108 -0
  194. package/package.json +13 -4
  195. package/LICENSE.md +0 -5
  196. package/dist/Components/Input/FancyTextAreaInput.d.ts +0 -13
  197. package/dist/Components/Input/InputText.d.ts +0 -13
  198. package/dist/Components/Input/TributeTextAreaInput.d.ts +0 -13
  199. package/dist/Components/Map/Subcomponents/SearchBar.d.ts +0 -2
  200. package/dist/Components/Map/Subcomponents/StartEndView.d.ts +0 -6
  201. package/dist/Components/Map/Subcomponents/TagFilterControl.d.ts +0 -2
  202. package/dist/Components/Map/Subcomponents/TextView.d.ts +0 -5
  203. package/dist/Components/TitleCard.d.ts +0 -9
  204. package/dist/Utils/TaggedText.d.ts +0 -3
  205. /package/dist/{Utils/HeighlightTags.d.ts → workspace/utopia-ui/src/Utils/HashTagRegex.d.ts} +0 -0
@@ -4,10 +4,10 @@ declare type UseTagManagerResult = ReturnType<typeof useTagsManager>;
4
4
  declare function useTagsManager(initialTags: Tag[]): {
5
5
  tags: Tag[];
6
6
  addTag: (tag: Tag) => void;
7
- removeTag: (id: string) => void;
8
7
  setTagApi: (api: ItemsApi<Tag>) => void;
9
8
  setTagData: (data: Tag[]) => void;
10
9
  getItemTags: (item: Item) => Tag[];
10
+ allTagsLoaded: boolean;
11
11
  };
12
12
  export declare const TagsProvider: React.FunctionComponent<{
13
13
  initialTags: Tag[];
@@ -15,8 +15,8 @@ export declare const TagsProvider: React.FunctionComponent<{
15
15
  }>;
16
16
  export declare const useTags: () => Tag[];
17
17
  export declare const useAddTag: () => UseTagManagerResult["addTag"];
18
- export declare const useRemoveTag: () => UseTagManagerResult["removeTag"];
19
18
  export declare const useSetTagApi: () => UseTagManagerResult["setTagApi"];
20
19
  export declare const useSetTagData: () => UseTagManagerResult["setTagData"];
21
20
  export declare const useGetItemTags: () => UseTagManagerResult["getItemTags"];
21
+ export declare const useAllTagsLoaded: () => UseTagManagerResult["allTagsLoaded"];
22
22
  export {};
@@ -0,0 +1,4 @@
1
+ export declare const useTimeout: (callback: any, delay: any) => {
2
+ reset: () => void;
3
+ clear: () => void;
4
+ };
@@ -6,5 +6,7 @@ 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';
12
+ export { PopupButton } from './Subcomponents/ItemPopupComponents/PopupButton';
@@ -0,0 +1 @@
1
+ export declare const setItemLocation: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export declare function ActionButton({ triggerAction, color, collection }: {
2
+ triggerAction: any;
3
+ color: string;
4
+ collection?: string;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { Item } from "../../types";
2
+ export declare function ActionButton({ item, triggerAddButton, triggerItemSelected, existingRelations, itemType, color, collection }: {
3
+ triggerAddButton?: any;
4
+ triggerItemSelected?: any;
5
+ existingRelations: Item[];
6
+ itemType?: string;
7
+ color: string;
8
+ collection?: string;
9
+ item: Item;
10
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ export declare const AvatarWidget: ({ avatar, setAvatar }: {
3
+ avatar: string;
4
+ setAvatar: React.Dispatch<React.SetStateAction<string>>;
5
+ }) => 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,4 @@
1
+ export declare function TextEditor({ value, updateFormValue }: {
2
+ value: string;
3
+ updateFormValue: (string: any) => void;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const OverlayItemProfileSettings: () => 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 @@
1
+ export declare function OverlayItemProfile(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function OverlayItemProfileSettings(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function OverlayProfile(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function OverlayProfileSettings(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function OverlayUserSettings(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export declare function PlusButton({ triggerAction, color, collection }: {
2
+ triggerAction: any;
3
+ color: string;
4
+ collection?: string;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import 'react-image-crop/dist/ReactCrop.css';
2
+ import 'react-toastify/dist/ReactToastify.css';
3
+ export declare function ProfileSettings(): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,4 @@
1
1
  /// <reference types="react" />
2
+ import 'react-image-crop/dist/ReactCrop.css';
2
3
  import 'react-toastify/dist/ReactToastify.css';
3
4
  export declare function Settings(): JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const Tags: () => JSX.Element;
@@ -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,3 @@
1
+ import 'react-image-crop/dist/ReactCrop.css';
2
+ import 'react-toastify/dist/ReactToastify.css';
3
+ export declare function UserSettings(): import("react/jsx-runtime").JSX.Element;
@@ -1 +1,8 @@
1
- export { Settings } from './Settings';
1
+ export { UserSettings } from './UserSettings';
2
+ export { ProfileSettings } from './ProfileSettings';
3
+ export { OverlayProfile } from './OverlayProfile';
4
+ export { OverlayProfileSettings } from './OverlayProfileSettings';
5
+ export { OverlayUserSettings } from './OverlayUserSettings';
6
+ export { OverlayItemProfile } from './OverlayItemProfile';
7
+ export { OverlayItemProfileSettings } from './OverlayItemProfileSettings';
8
+ export { PlusButton } from "./PlusButton";
@@ -0,0 +1,2 @@
1
+ declare const useClickOutside: (ref: any, handler: any) => void;
2
+ export default useClickOutside;
@@ -0,0 +1,6 @@
1
+ import { Item } from "../../types";
2
+ export declare const CardItem: ({ item, deleteCallback, loading }: {
3
+ item: Item;
4
+ deleteCallback: (item: Item) => void;
5
+ loading: boolean;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,10 @@
1
1
  import * as React from "react";
2
- export declare function CardPage({ title, children }: {
2
+ export declare function CardPage({ title, hideTitle, children, parents }: {
3
3
  title: string;
4
+ hideTitle?: boolean;
4
5
  children?: React.ReactNode;
5
- }): JSX.Element;
6
+ parents?: Array<{
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 "../../types";
2
+ export declare const DateUserInfo: ({ item }: {
3
+ item: Item;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import * as React from "react";
2
+ declare type 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,9 @@
1
+ import { Item } from "../../types";
2
+ export declare const ItemCard: ({ item, url, parameterField, deleteCallback, navigateCallback, loading }: {
3
+ item: Item;
4
+ url: string;
5
+ parameterField: string;
6
+ deleteCallback: (item: Item) => void;
7
+ loading: boolean;
8
+ navigateCallback: (url: string) => void;
9
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { ItemsApi } from "../../types";
2
+ declare type breadcrumb = {
3
+ name: string;
4
+ path: string;
5
+ };
6
+ export declare const ItemViewPage: ({ api, parents, itemNameField, itemTextField, itemImageField, itemSymbolField }: {
7
+ api: ItemsApi<any>;
8
+ parents: Array<breadcrumb>;
9
+ itemNameField: string;
10
+ itemTextField: string;
11
+ itemImageField: string;
12
+ itemSymbolField: string;
13
+ }) => import("react/jsx-runtime").JSX.Element;
14
+ export {};
@@ -0,0 +1,19 @@
1
+ import { ReactNode } from 'react';
2
+ import { ItemsApi } from '../../types';
3
+ declare type breadcrumb = {
4
+ name: string;
5
+ path: string;
6
+ };
7
+ export declare const ItemsIndexPage: ({ api, url, parameterField, breadcrumbs, itemNameField, itemTextField, itemImageField, itemSymbolField, itemSubnameField, children }: {
8
+ api: ItemsApi<any>;
9
+ url: string;
10
+ parameterField: string;
11
+ breadcrumbs: Array<breadcrumb>;
12
+ itemNameField: string;
13
+ itemTextField: string;
14
+ itemImageField: string;
15
+ itemSymbolField: string;
16
+ itemSubnameField: string;
17
+ children?: ReactNode;
18
+ }) => import("react/jsx-runtime").JSX.Element;
19
+ export {};
@@ -0,0 +1,7 @@
1
+ import * as React from '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,4 @@
1
+ import * as React from 'react';
2
+ export declare function MapOverlayScreen({ children }: {
3
+ children: React.ReactNode;
4
+ }): JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const MoonCalendar: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import { ReactNode } from 'react';
2
+ declare type breadcrumb = {
3
+ name: string;
4
+ path: string;
5
+ };
6
+ export declare const OverlayItemsIndexPage: ({ url, layerName, parameterField, breadcrumbs, itemNameField, itemTextField, itemImageField, itemSymbolField, itemSubnameField, plusButton, children }: {
7
+ layerName: string;
8
+ url: string;
9
+ parameterField: string;
10
+ breadcrumbs: Array<breadcrumb>;
11
+ itemNameField: string;
12
+ itemTextField: string;
13
+ itemImageField: string;
14
+ itemSymbolField: string;
15
+ itemSubnameField: string;
16
+ plusButton?: boolean | undefined;
17
+ children?: ReactNode;
18
+ }) => import("react/jsx-runtime").JSX.Element;
19
+ export {};
@@ -0,0 +1,6 @@
1
+ import { Tag } from '../../types';
2
+ export declare const TagView: ({ tag, heighlight, onClick }: {
3
+ tag: Tag;
4
+ heighlight?: boolean | undefined;
5
+ onClick?: ((e: any) => void) | undefined;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,11 @@
1
1
  import * as React from "react";
2
2
  interface TitleCardProps {
3
- title: string;
4
- children: React.ReactNode;
5
- topMargin: string;
3
+ title?: string;
4
+ hideTitle?: boolean;
5
+ children?: React.ReactNode;
6
+ topMargin?: string;
7
+ className?: string;
6
8
  TopSideButtons?: any;
7
9
  }
8
- export declare function TitleCard({ title, children, topMargin, TopSideButtons }: TitleCardProps): JSX.Element;
10
+ export declare function TitleCard({ title, hideTitle, children, topMargin, TopSideButtons, className }: TitleCardProps): import("react/jsx-runtime").JSX.Element;
9
11
  export {};
@@ -1,2 +1,8 @@
1
1
  export { CardPage } from './CardPage';
2
2
  export { TitleCard } from './TitleCard';
3
+ export { MapOverlayPage } from './MapOverlayPage';
4
+ export { CircleLayout } from './CircleLayout';
5
+ export { MoonCalendar } from './MoonCalendar';
6
+ export { ItemsIndexPage } from "./ItemsIndexPage";
7
+ export { ItemViewPage } from "./ItemViewPage";
8
+ export { OverlayItemsIndexPage } from "./OverlayItemsIndexPage";
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  declare function ErrorText({ styleClass, children }: {
3
2
  styleClass: any;
4
3
  children: any;
5
- }): JSX.Element;
4
+ }): import("react/jsx-runtime").JSX.Element;
6
5
  export default ErrorText;
@@ -2,5 +2,5 @@ import * as React from "react";
2
2
  declare function Subtitle({ styleClass, children }: {
3
3
  styleClass: string;
4
4
  children: React.ReactNode;
5
- }): JSX.Element;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
6
  export default Subtitle;
@@ -1,5 +1,7 @@
1
1
  import { FC } from 'react';
2
2
  declare const DynamicHeroIcon: FC<{
3
3
  icon: string;
4
+ type?: "solid" | "outline";
5
+ className?: string;
4
6
  }>;
5
7
  export default DynamicHeroIcon;
@@ -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,7 @@
1
+ export declare const LUNAR_MONTH: number;
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 timeAgo: (date: string | number | Date) => string;
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
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, PopupButton, TextView, StartEndView } from './Components/Map';
2
2
  export { AppShell, Content, SideBar } from "./Components/AppShell";
3
- export { AuthProvider, useAuth, LoginPage, SignupPage } from "./Components/Auth";
4
- export { Settings } from './Components/Profile';
3
+ export { AuthProvider, useAuth, LoginPage, SignupPage, RequestPasswordPage, SetNewPasswordPage } from "./Components/Auth";
4
+ export { UserSettings, ProfileSettings, OverlayProfile, OverlayProfileSettings, OverlayUserSettings, OverlayItemProfile, OverlayItemProfileSettings } from './Components/Profile';
5
5
  export { Quests, Modal } from './Components/Gaming';
6
- export { TitleCard, CardPage } from './Components/Templates';
7
- export { TextInput, TextAreaInput } from './Components/Input';
6
+ export { TitleCard, CardPage, MapOverlayPage, OverlayItemsIndexPage, CircleLayout, MoonCalendar, ItemsIndexPage, ItemViewPage } from './Components/Templates';
7
+ export { TextInput, TextAreaInput, SelectBox } from './Components/Input';
8
8
  import "./index.css";
9
9
  declare global {
10
10
  interface Window {