utopia-ui 3.0.55 → 3.0.57

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 (137) hide show
  1. package/dist/index.cjs +4433 -0
  2. package/dist/index.d.ts +320 -88
  3. package/dist/{index.js → index.esm.js} +1 -948
  4. package/dist/types/setupTest.d.ts +1 -0
  5. package/dist/types/src/Components/AppShell/AppShell.d.ts +7 -0
  6. package/dist/types/src/Components/AppShell/Content.d.ts +5 -0
  7. package/dist/types/src/Components/AppShell/ContextWrapper.d.ts +6 -0
  8. package/dist/types/src/Components/AppShell/NavBar.d.ts +4 -0
  9. package/dist/types/src/Components/AppShell/SetAppState.d.ts +5 -0
  10. package/dist/types/src/Components/AppShell/SideBar.d.ts +12 -0
  11. package/dist/types/src/Components/AppShell/SidebarSubmenu.d.ts +7 -0
  12. package/dist/types/src/Components/AppShell/Sitemap.d.ts +3 -0
  13. package/dist/types/src/Components/AppShell/hooks/useAppState.d.ts +16 -0
  14. package/dist/types/src/Components/AppShell/hooks/useAssets.d.ts +12 -0
  15. package/dist/types/src/Components/AppShell/index.d.ts +4 -0
  16. package/dist/types/src/Components/Auth/LoginPage.d.ts +1 -0
  17. package/dist/types/src/Components/Auth/RequestPasswordPage.d.ts +3 -0
  18. package/dist/types/src/Components/Auth/SetNewPasswordPage.d.ts +1 -0
  19. package/dist/types/src/Components/Auth/SignupPage.d.ts +1 -0
  20. package/dist/types/src/Components/Auth/index.d.ts +5 -0
  21. package/dist/types/src/Components/Auth/useAuth.d.ts +26 -0
  22. package/dist/types/src/Components/Gaming/Modal.d.ts +4 -0
  23. package/dist/types/src/Components/Gaming/Quests.d.ts +1 -0
  24. package/dist/types/src/Components/Gaming/hooks/useQuests.d.ts +12 -0
  25. package/dist/types/src/Components/Gaming/index.d.ts +2 -0
  26. package/dist/types/src/Components/Input/Autocomplete.d.ts +7 -0
  27. package/dist/types/src/Components/Input/ComboBoxInput.d.ts +8 -0
  28. package/dist/types/src/Components/Input/SelectBox.d.ts +16 -0
  29. package/dist/types/src/Components/Input/TextAreaInput.d.ts +13 -0
  30. package/dist/types/src/Components/Input/TextInput.d.ts +16 -0
  31. package/dist/types/src/Components/Input/TextInput.spec.d.ts +1 -0
  32. package/dist/types/src/Components/Input/index.d.ts +3 -0
  33. package/dist/types/src/Components/Map/ItemForm.d.ts +16 -0
  34. package/dist/types/src/Components/Map/ItemView.d.ts +14 -0
  35. package/dist/types/src/Components/Map/Layer.d.ts +2 -0
  36. package/dist/types/src/Components/Map/Permissions.d.ts +7 -0
  37. package/dist/types/src/Components/Map/Subcomponents/AddButton.d.ts +3 -0
  38. package/dist/types/src/Components/Map/Subcomponents/Controls/Control.d.ts +6 -0
  39. package/dist/types/src/Components/Map/Subcomponents/Controls/FilterControl.d.ts +1 -0
  40. package/dist/types/src/Components/Map/Subcomponents/Controls/GratitudeControl.d.ts +1 -0
  41. package/dist/types/src/Components/Map/Subcomponents/Controls/LayerControl.d.ts +1 -0
  42. package/dist/types/src/Components/Map/Subcomponents/Controls/LocateControl.d.ts +3 -0
  43. package/dist/types/src/Components/Map/Subcomponents/Controls/QuestControl.d.ts +1 -0
  44. package/dist/types/src/Components/Map/Subcomponents/Controls/SearchControl.d.ts +1 -0
  45. package/dist/types/src/Components/Map/Subcomponents/Controls/SidebarControl.d.ts +1 -0
  46. package/dist/types/src/Components/Map/Subcomponents/Controls/TagsControl.d.ts +1 -0
  47. package/dist/types/src/Components/Map/Subcomponents/ItemFormPopup.d.ts +2 -0
  48. package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +18 -0
  49. package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.d.ts +8 -0
  50. package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/PopupCheckboxInput.d.ts +6 -0
  51. package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +9 -0
  52. package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.d.ts +7 -0
  53. package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.d.ts +7 -0
  54. package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/StartEndView.d.ts +4 -0
  55. package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +7 -0
  56. package/dist/types/src/Components/Map/Subcomponents/ItemViewPopup.d.ts +8 -0
  57. package/dist/types/src/Components/Map/Subcomponents/SelectPosition.d.ts +3 -0
  58. package/dist/types/src/Components/Map/Tags.d.ts +6 -0
  59. package/dist/types/src/Components/Map/UtopiaMap.d.ts +4 -0
  60. package/dist/types/src/Components/Map/UtopiaMapInner.d.ts +4 -0
  61. package/dist/types/src/Components/Map/hooks/useClusterRef.d.ts +11 -0
  62. package/dist/types/src/Components/Map/hooks/useDebounce.d.ts +1 -0
  63. package/dist/types/src/Components/Map/hooks/useFilter.d.ts +40 -0
  64. package/dist/types/src/Components/Map/hooks/useItems.d.ts +26 -0
  65. package/dist/types/src/Components/Map/hooks/useLayers.d.ts +13 -0
  66. package/dist/types/src/Components/Map/hooks/useLeafletRefs.d.ts +21 -0
  67. package/dist/types/src/Components/Map/hooks/usePermissions.d.ts +23 -0
  68. package/dist/types/src/Components/Map/hooks/useSelectPosition.d.ts +23 -0
  69. package/dist/types/src/Components/Map/hooks/useTags.d.ts +23 -0
  70. package/dist/types/src/Components/Map/hooks/useTimeout.d.ts +4 -0
  71. package/dist/types/src/Components/Map/hooks/useWindowDimension.d.ts +4 -0
  72. package/dist/types/src/Components/Map/index.d.ts +13 -0
  73. package/dist/types/src/Components/Map/setItemLocation.d.ts +1 -0
  74. package/dist/types/src/Components/Profile/ProfileForm.d.ts +1 -0
  75. package/dist/types/src/Components/Profile/ProfileView.d.ts +4 -0
  76. package/dist/types/src/Components/Profile/Subcomponents/ActionsButton.d.ts +11 -0
  77. package/dist/types/src/Components/Profile/Subcomponents/AvatarWidget.d.ts +7 -0
  78. package/dist/types/src/Components/Profile/Subcomponents/ColorPicker.d.ts +6 -0
  79. package/dist/types/src/Components/Profile/Subcomponents/ContactInfoForm.d.ts +5 -0
  80. package/dist/types/src/Components/Profile/Subcomponents/ContactInfoView.d.ts +5 -0
  81. package/dist/types/src/Components/Profile/Subcomponents/FormHeader.d.ts +5 -0
  82. package/dist/types/src/Components/Profile/Subcomponents/GalleryView.d.ts +6 -0
  83. package/dist/types/src/Components/Profile/Subcomponents/GroupSubHeaderView.d.ts +6 -0
  84. package/dist/types/src/Components/Profile/Subcomponents/GroupSubheaderForm.d.ts +18 -0
  85. package/dist/types/src/Components/Profile/Subcomponents/LinkedItemsHeaderView.d.ts +10 -0
  86. package/dist/types/src/Components/Profile/Subcomponents/MarkdownHint.d.ts +1 -0
  87. package/dist/types/src/Components/Profile/Subcomponents/PlusButton.d.ts +7 -0
  88. package/dist/types/src/Components/Profile/Subcomponents/ProfileStartEndForm.d.ts +5 -0
  89. package/dist/types/src/Components/Profile/Subcomponents/ProfileStartEndView.d.ts +4 -0
  90. package/dist/types/src/Components/Profile/Subcomponents/ProfileTextForm.d.ts +10 -0
  91. package/dist/types/src/Components/Profile/Subcomponents/ProfileTextView.d.ts +7 -0
  92. package/dist/types/src/Components/Profile/Subcomponents/RelationCard.d.ts +6 -0
  93. package/dist/types/src/Components/Profile/Subcomponents/SocialShareBar.d.ts +6 -0
  94. package/dist/types/src/Components/Profile/Subcomponents/SocialShareButton.d.ts +6 -0
  95. package/dist/types/src/Components/Profile/Subcomponents/TagsWidget.d.ts +6 -0
  96. package/dist/types/src/Components/Profile/Templates/FlexForm.d.ts +7 -0
  97. package/dist/types/src/Components/Profile/Templates/FlexView.d.ts +4 -0
  98. package/dist/types/src/Components/Profile/Templates/OnepagerForm.d.ts +7 -0
  99. package/dist/types/src/Components/Profile/Templates/OnepagerView.d.ts +4 -0
  100. package/dist/types/src/Components/Profile/Templates/SimpleForm.d.ts +4 -0
  101. package/dist/types/src/Components/Profile/Templates/SimpleView.d.ts +4 -0
  102. package/dist/types/src/Components/Profile/Templates/TabsForm.d.ts +10 -0
  103. package/dist/types/src/Components/Profile/Templates/TabsView.d.ts +13 -0
  104. package/dist/types/src/Components/Profile/UserSettings.d.ts +1 -0
  105. package/dist/types/src/Components/Profile/hooks/useClickOutside.d.ts +2 -0
  106. package/dist/types/src/Components/Profile/index.d.ts +4 -0
  107. package/dist/types/src/Components/Profile/itemFunctions.d.ts +5 -0
  108. package/dist/types/src/Components/Templates/AttestationForm.d.ts +4 -0
  109. package/dist/types/src/Components/Templates/CardPage.d.ts +9 -0
  110. package/dist/types/src/Components/Templates/CircleLayout.d.ts +5 -0
  111. package/dist/types/src/Components/Templates/DateUserInfo.d.ts +4 -0
  112. package/dist/types/src/Components/Templates/DialogModal.d.ts +11 -0
  113. package/dist/types/src/Components/Templates/EmojiPicker.d.ts +10 -0
  114. package/dist/types/src/Components/Templates/ItemCard.d.ts +8 -0
  115. package/dist/types/src/Components/Templates/MapOverlayPage.d.ts +6 -0
  116. package/dist/types/src/Components/Templates/MarketView.d.ts +1 -0
  117. package/dist/types/src/Components/Templates/MoonCalendar.d.ts +1 -0
  118. package/dist/types/src/Components/Templates/OverlayItemsIndexPage.d.ts +6 -0
  119. package/dist/types/src/Components/Templates/SelectUser.d.ts +1 -0
  120. package/dist/types/src/Components/Templates/TagView.d.ts +7 -0
  121. package/dist/types/src/Components/Templates/TitleCard.d.ts +10 -0
  122. package/dist/types/src/Components/Templates/index.d.ts +8 -0
  123. package/dist/types/src/Components/Typography/ErrorText.d.ts +5 -0
  124. package/dist/types/src/Components/Typography/Subtitle.d.ts +5 -0
  125. package/dist/types/src/Utils/ContainsUUID.d.ts +1 -0
  126. package/dist/types/src/Utils/FormatTags.d.ts +2 -0
  127. package/dist/types/src/Utils/GetValue.d.ts +1 -0
  128. package/dist/types/src/Utils/HashTagRegex.d.ts +1 -0
  129. package/dist/types/src/Utils/MarkerIconFactory.d.ts +2 -0
  130. package/dist/types/src/Utils/Moon.d.ts +7 -0
  131. package/dist/types/src/Utils/RandomColor.d.ts +1 -0
  132. package/dist/types/src/Utils/ReplaceURLs.d.ts +3 -0
  133. package/dist/types/src/Utils/ReverseGeocoder.d.ts +1 -0
  134. package/dist/types/src/Utils/TimeAgo.d.ts +1 -0
  135. package/dist/types/src/index.d.ts +15 -0
  136. package/dist/types/vite.config.d.ts +2 -0
  137. package/package.json +8 -6
package/dist/index.d.ts CHANGED
@@ -1,11 +1,31 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { GeoJsonObject, Geometry, Point } from 'geojson';
1
3
  import { LatLng } from 'leaflet';
2
- import { Geometry, Point, GeoJsonObject } from 'geojson';
4
+ import * as prop_types from 'prop-types';
3
5
 
4
- interface AssetsApi {
5
- upload(file: Blob, title: string): Promise<{ id: string }>
6
- url: string
6
+ interface Tag {
7
+ color: string
8
+ id: string
9
+ name: string
10
+ offer_or_need?: boolean
11
+ }
12
+
13
+ interface UtopiaMapProps {
14
+ height?: string
15
+ width?: string
16
+ center?: [number, number]
17
+ zoom?: number
18
+ tags?: Tag[]
19
+ children?: React.ReactNode
20
+ geo?: GeoJsonObject
21
+ showFilterControl?: boolean
22
+ showLayerControl?: boolean
23
+ showGratitudeControl?: boolean
24
+ infoText?: string
7
25
  }
8
26
 
27
+ declare function UtopiaMap({ height, width, center, zoom, children, geo, showFilterControl, showGratitudeControl, showLayerControl, infoText, }: UtopiaMapProps): react_jsx_runtime.JSX.Element;
28
+
9
29
  interface ItemsApi<T> {
10
30
  getItems(): Promise<T[]>
11
31
  getItem?(id: string): Promise<T>
@@ -15,58 +35,6 @@ interface ItemsApi<T> {
15
35
  collectionName?: string
16
36
  }
17
37
 
18
- interface ItemFormPopupProps {
19
- position: LatLng
20
- layer: LayerProps
21
- item?: Item
22
- children?: React.ReactNode
23
- setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>
24
- }
25
-
26
- interface ItemType {
27
- name: string
28
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
29
- [key: string]: any
30
- }
31
-
32
- interface LayerProps {
33
- id?: string
34
- data?: Item[]
35
- children?: React.ReactNode
36
- name: string
37
- menuIcon: string
38
- menuColor: string
39
- menuText: string
40
- markerIcon: string
41
- markerShape: string
42
- markerDefaultColor: string
43
- markerDefaultColor2?: string
44
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
45
- api?: ItemsApi<any>
46
- itemType: ItemType
47
- itemNameField?: string
48
- itemSubnameField?: string
49
- itemTextField?: string
50
- itemAvatarField?: string
51
- itemColorField?: string
52
- itemOwnerField?: string
53
- itemTagsField?: string
54
- itemLatitudeField?: string
55
- itemLongitudeField?: string
56
- itemOffersField?: string
57
- itemNeedsField?: string
58
- onlyOnePerOwner?: boolean
59
- customEditLink?: string
60
- customEditParameter?: string
61
- public_edit_items?: boolean
62
- listed?: boolean
63
- item_presets?: Record<string, unknown>
64
- setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>
65
- itemFormPopup?: ItemFormPopupProps | null
66
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
67
- clusterRef?: any
68
- }
69
-
70
38
  interface Relation {
71
39
  related_items_id: string
72
40
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -133,31 +101,65 @@ interface Item {
133
101
  } */
134
102
  }
135
103
 
136
- interface Tag {
137
- color: string
138
- id: string
104
+ interface ItemFormPopupProps {
105
+ position: LatLng
106
+ layer: LayerProps
107
+ item?: Item
108
+ children?: React.ReactNode
109
+ setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>
110
+ }
111
+
112
+ interface ItemType {
139
113
  name: string
140
- offer_or_need?: boolean
114
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
115
+ [key: string]: any
141
116
  }
142
117
 
143
- interface FormState {
144
- color: string
145
- id: string
146
- group_type: string
147
- status: string
118
+ interface LayerProps {
119
+ id?: string
120
+ data?: Item[]
121
+ children?: React.ReactNode
148
122
  name: string
149
- subname: string
150
- text: string
151
- contact: string
152
- telephone: string
153
- next_appointment: string
154
- image: string
155
- marker_icon: string
156
- offers: Tag[]
157
- needs: Tag[]
158
- relations: Item[]
123
+ menuIcon: string
124
+ menuColor: string
125
+ menuText: string
126
+ markerIcon: string
127
+ markerShape: string
128
+ markerDefaultColor: string
129
+ markerDefaultColor2?: string
130
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
131
+ api?: ItemsApi<any>
132
+ itemType: ItemType
133
+ itemNameField?: string
134
+ itemSubnameField?: string
135
+ itemTextField?: string
136
+ itemAvatarField?: string
137
+ itemColorField?: string
138
+ itemOwnerField?: string
139
+ itemTagsField?: string
140
+ itemLatitudeField?: string
141
+ itemLongitudeField?: string
142
+ itemOffersField?: string
143
+ itemNeedsField?: string
144
+ onlyOnePerOwner?: boolean
145
+ customEditLink?: string
146
+ customEditParameter?: string
147
+ public_edit_items?: boolean
148
+ listed?: boolean
149
+ item_presets?: Record<string, unknown>
150
+ setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>
151
+ itemFormPopup?: ItemFormPopupProps | null
152
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
153
+ clusterRef?: any
159
154
  }
160
155
 
156
+ declare const Layer: ({ data, children, name, menuIcon, menuText, menuColor, markerIcon, markerShape, markerDefaultColor, markerDefaultColor2, api, itemType, itemNameField, itemSubnameField, itemTextField, itemAvatarField, itemColorField, itemOwnerField, itemLatitudeField, itemLongitudeField, itemTagsField, itemOffersField, itemNeedsField, onlyOnePerOwner, customEditLink, customEditParameter, public_edit_items, listed, setItemFormPopup, itemFormPopup, clusterRef, }: LayerProps) => react_jsx_runtime.JSX.Element;
157
+
158
+ declare function Tags({ data, api }: {
159
+ data?: Tag[];
160
+ api?: ItemsApi<Tag>;
161
+ }): react_jsx_runtime.JSX.Element;
162
+
161
163
  type PermissionAction = 'create' | 'read' | 'update' | 'delete'
162
164
 
163
165
  interface PermissionCondition {
@@ -180,6 +182,122 @@ interface Permission {
180
182
  }
181
183
  }
182
184
 
185
+ declare function Permissions({ data, api, adminRole, }: {
186
+ data?: Permission[];
187
+ api?: ItemsApi<Permission>;
188
+ adminRole?: string;
189
+ }): react_jsx_runtime.JSX.Element;
190
+
191
+ declare const ItemForm: {
192
+ ({ children, item, title, setPopupTitle, }: {
193
+ children?: React.ReactNode;
194
+ item?: Item;
195
+ title?: string;
196
+ setPopupTitle?: React.Dispatch<React.SetStateAction<string>>;
197
+ }): react_jsx_runtime.JSX.Element;
198
+ propTypes: {
199
+ children: prop_types.Requireable<prop_types.ReactNodeLike>;
200
+ __TYPE: prop_types.Requireable<string>;
201
+ };
202
+ defaultProps: {
203
+ __TYPE: string;
204
+ };
205
+ };
206
+
207
+ declare const ItemView: {
208
+ ({ children, item }: {
209
+ children?: React.ReactNode;
210
+ item?: Item;
211
+ }): react_jsx_runtime.JSX.Element;
212
+ propTypes: {
213
+ children: prop_types.Requireable<prop_types.ReactNodeLike>;
214
+ __TYPE: prop_types.Requireable<string>;
215
+ };
216
+ defaultProps: {
217
+ __TYPE: string;
218
+ };
219
+ };
220
+
221
+ declare const PopupTextAreaInput: ({ dataField, placeholder, style, item, }: {
222
+ dataField: string;
223
+ placeholder: string;
224
+ style?: string;
225
+ item?: Item;
226
+ }) => react_jsx_runtime.JSX.Element;
227
+
228
+ interface StartEndInputProps {
229
+ item?: Item;
230
+ showLabels?: boolean;
231
+ updateStartValue?: (value: string) => void;
232
+ updateEndValue?: (value: string) => void;
233
+ }
234
+ declare const PopupStartEndInput: ({ item, showLabels, updateStartValue, updateEndValue, }: StartEndInputProps) => react_jsx_runtime.JSX.Element;
235
+
236
+ declare const PopupTextInput: ({ dataField, placeholder, style, item, }: {
237
+ dataField: string;
238
+ placeholder: string;
239
+ style?: string;
240
+ item?: Item;
241
+ }) => react_jsx_runtime.JSX.Element;
242
+
243
+ declare const PopupCheckboxInput: ({ dataField, label, item, }: {
244
+ dataField: string;
245
+ label: string;
246
+ item?: Item;
247
+ }) => react_jsx_runtime.JSX.Element;
248
+
249
+ declare const TextView: ({ item, truncate, itemTextField, rawText, }: {
250
+ item?: Item;
251
+ truncate?: boolean;
252
+ itemTextField?: string;
253
+ rawText?: string;
254
+ }) => react_jsx_runtime.JSX.Element;
255
+
256
+ declare const StartEndView: ({ item }: {
257
+ item?: Item;
258
+ }) => react_jsx_runtime.JSX.Element;
259
+
260
+ declare const PopupButton: ({ url, parameterField, text, colorField, item, }: {
261
+ url: string;
262
+ parameterField?: string;
263
+ text: string;
264
+ colorField?: string;
265
+ item?: Item;
266
+ }) => react_jsx_runtime.JSX.Element;
267
+
268
+ interface AssetsApi {
269
+ upload(file: Blob, title: string): Promise<{ id: string }>
270
+ url: string
271
+ }
272
+
273
+ declare function AppShell({ appName, children, assetsApi, userType, }: {
274
+ appName: string;
275
+ children: React.ReactNode;
276
+ assetsApi: AssetsApi;
277
+ userType: string;
278
+ }): react_jsx_runtime.JSX.Element;
279
+
280
+ type route = {
281
+ path: string;
282
+ icon: JSX.Element;
283
+ name: string;
284
+ submenu?: route;
285
+ blank?: boolean;
286
+ };
287
+ declare function SideBar({ routes, bottomRoutes }: {
288
+ routes: route[];
289
+ bottomRoutes?: route[];
290
+ }): react_jsx_runtime.JSX.Element;
291
+
292
+ type ContentProps = {
293
+ children?: React.ReactNode;
294
+ };
295
+ declare function Content({ children }: ContentProps): react_jsx_runtime.JSX.Element;
296
+
297
+ declare const Sitemap: ({ url }: {
298
+ url: string;
299
+ }) => react_jsx_runtime.JSX.Element;
300
+
183
301
  interface UserApi {
184
302
  register(email: string, password: string, userName: string): Promise<void>
185
303
  login(email: string, password: string): Promise<UserItem | undefined>
@@ -191,18 +309,132 @@ interface UserApi {
191
309
  passwordReset(token: string, new_password: string)
192
310
  }
193
311
 
194
- interface UtopiaMapProps {
195
- height?: string
196
- width?: string
197
- center?: [number, number]
198
- zoom?: number
199
- tags?: Tag[]
200
- children?: React.ReactNode
201
- geo?: GeoJsonObject
202
- showFilterControl?: boolean
203
- showLayerControl?: boolean
204
- showGratitudeControl?: boolean
205
- infoText?: string
312
+ interface AuthProviderProps {
313
+ userApi: UserApi;
314
+ children?: React.ReactNode;
315
+ }
316
+ declare const AuthProvider: ({ userApi, children }: AuthProviderProps) => react_jsx_runtime.JSX.Element;
317
+
318
+ declare function LoginPage(): react_jsx_runtime.JSX.Element;
319
+
320
+ declare function SignupPage(): react_jsx_runtime.JSX.Element;
321
+
322
+ declare function RequestPasswordPage({ resetUrl }: {
323
+ resetUrl: any;
324
+ }): react_jsx_runtime.JSX.Element;
325
+
326
+ declare function SetNewPasswordPage(): react_jsx_runtime.JSX.Element;
327
+
328
+ declare function UserSettings(): react_jsx_runtime.JSX.Element;
329
+
330
+ declare function ProfileView({ attestationApi }: {
331
+ attestationApi?: ItemsApi<any>;
332
+ }): react_jsx_runtime.JSX.Element;
333
+
334
+ declare function ProfileForm(): react_jsx_runtime.JSX.Element;
335
+
336
+ declare function Modal({ children, showOnStartup, }: {
337
+ children: React.ReactNode;
338
+ showOnStartup?: boolean;
339
+ }): react_jsx_runtime.JSX.Element;
340
+
341
+ declare function Quests(): react_jsx_runtime.JSX.Element;
342
+
343
+ declare function CardPage({ title, hideTitle, children, parents, }: {
344
+ title: string;
345
+ hideTitle?: boolean;
346
+ children?: React.ReactNode;
347
+ parents?: {
348
+ name: string;
349
+ path: string;
350
+ }[];
351
+ }): react_jsx_runtime.JSX.Element;
352
+
353
+ interface TitleCardProps {
354
+ title?: string;
355
+ hideTitle?: boolean;
356
+ children?: React.ReactNode;
357
+ topMargin?: string;
358
+ className?: string;
359
+ TopSideButtons?: any;
360
+ }
361
+ declare function TitleCard({ title, hideTitle, children, topMargin, TopSideButtons, className, }: TitleCardProps): react_jsx_runtime.JSX.Element;
362
+
363
+ declare function MapOverlayPage({ children, className, backdrop, card, }: {
364
+ children: React.ReactNode;
365
+ className?: string;
366
+ backdrop?: boolean;
367
+ card?: boolean;
368
+ }): react_jsx_runtime.JSX.Element;
369
+
370
+ declare const MoonCalendar: () => react_jsx_runtime.JSX.Element;
371
+
372
+ declare const SelectUser: () => react_jsx_runtime.JSX.Element;
373
+
374
+ declare const OverlayItemsIndexPage: ({ url, layerName, parameterField, plusButton, }: {
375
+ layerName: string;
376
+ url: string;
377
+ parameterField: string;
378
+ plusButton?: boolean;
379
+ }) => react_jsx_runtime.JSX.Element;
380
+
381
+ declare const AttestationForm: ({ api }: {
382
+ api?: ItemsApi<unknown>;
383
+ }) => react_jsx_runtime.JSX.Element;
384
+
385
+ declare const MarketView: () => react_jsx_runtime.JSX.Element;
386
+
387
+ type TextAreaProps = {
388
+ labelTitle?: string;
389
+ labelStyle?: string;
390
+ containerStyle?: string;
391
+ dataField?: string;
392
+ inputStyle?: string;
393
+ defaultValue: string;
394
+ placeholder?: string;
395
+ required?: boolean;
396
+ updateFormValue?: (value: string) => void;
397
+ };
398
+ declare function TextAreaInput({ labelTitle, dataField, labelStyle, containerStyle, inputStyle, defaultValue, placeholder, required, updateFormValue, }: TextAreaProps): react_jsx_runtime.JSX.Element;
399
+
400
+ type InputTextProps = {
401
+ labelTitle?: string;
402
+ labelStyle?: string;
403
+ type?: string;
404
+ dataField?: string;
405
+ containerStyle?: string;
406
+ inputStyle?: string;
407
+ defaultValue?: string;
408
+ placeholder?: string;
409
+ autocomplete?: string;
410
+ pattern?: string;
411
+ required?: boolean;
412
+ updateFormValue?: (value: string) => void;
413
+ };
414
+ declare function TextInput({ labelTitle, labelStyle, type, dataField, containerStyle, inputStyle, defaultValue, placeholder, autocomplete, pattern, required, updateFormValue, }: InputTextProps): react_jsx_runtime.JSX.Element;
415
+
416
+ type SelectBoxProps = {
417
+ labelTitle?: string;
418
+ labelStyle?: string;
419
+ type?: string;
420
+ containerStyle?: string;
421
+ defaultValue: string;
422
+ placeholder?: string;
423
+ updateFormValue: (value: string) => void;
424
+ options: {
425
+ name: string;
426
+ value: string;
427
+ }[];
428
+ labelDescription?: string;
429
+ };
430
+ declare function SelectBox(props: SelectBoxProps): react_jsx_runtime.JSX.Element;
431
+
432
+ declare global {
433
+ interface Window {
434
+ my_modal_3: {
435
+ showModal(): void;
436
+ };
437
+ }
206
438
  }
207
439
 
208
- export type { AssetsApi, FormState, Item, ItemFormPopupProps, ItemType, ItemsApi, LayerProps, Permission, PermissionAction, PermissionCondition, Profile, Relation, Tag, UserApi, UserItem, UtopiaMapProps };
440
+ export { AppShell, AttestationForm, AuthProvider, CardPage, Content, ItemForm, ItemView, Layer, LoginPage, MapOverlayPage, MarketView, Modal, MoonCalendar, OverlayItemsIndexPage, Permissions, PopupButton, PopupCheckboxInput, PopupStartEndInput, PopupTextAreaInput, PopupTextInput, ProfileForm, ProfileView, Quests, RequestPasswordPage, SelectBox, SelectUser, SetNewPasswordPage, SideBar, SignupPage, Sitemap, StartEndView, Tags, TextAreaInput, TextInput, TextView, TitleCard, UserSettings, UtopiaMap };