utopia-ui 3.0.32 → 3.0.34
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.
- package/dist/Components/AppShell/AppShell.d.ts +1 -1
- package/dist/Components/AppShell/SetAppState.d.ts +1 -1
- package/dist/Components/AppShell/hooks/useAppState.d.ts +1 -1
- package/dist/Components/AppShell/hooks/useAssets.d.ts +1 -1
- package/dist/Components/Auth/useAuth.d.ts +2 -1
- package/dist/Components/Input/TextAreaInput.d.ts +2 -1
- package/dist/Components/Map/ItemForm.d.ts +1 -1
- package/dist/Components/Map/ItemView.d.ts +1 -1
- package/dist/Components/Map/Layer.d.ts +1 -1
- package/dist/Components/Map/Permissions.d.ts +2 -1
- package/dist/Components/Map/Subcomponents/ItemFormPopup.d.ts +1 -1
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +2 -1
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.d.ts +1 -1
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupCheckboxInput.d.ts +1 -1
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +1 -1
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.d.ts +1 -1
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.d.ts +1 -1
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/StartEndView.d.ts +1 -1
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +1 -1
- package/dist/Components/Map/Subcomponents/ItemViewPopup.d.ts +2 -1
- package/dist/Components/Map/Tags.d.ts +2 -1
- package/dist/Components/Map/UtopiaMap.d.ts +1 -1
- package/dist/Components/Map/UtopiaMapInner.d.ts +1 -1
- package/dist/Components/Map/hooks/useFilter.d.ts +2 -1
- package/dist/Components/Map/hooks/useItems.d.ts +2 -1
- package/dist/Components/Map/hooks/useLayers.d.ts +1 -1
- package/dist/Components/Map/hooks/useLeafletRefs.d.ts +2 -2
- package/dist/Components/Map/hooks/usePermissions.d.ts +5 -1
- package/dist/Components/Map/hooks/useSelectPosition.d.ts +4 -2
- package/dist/Components/Map/hooks/useTags.d.ts +3 -1
- package/dist/Components/Profile/ProfileView.d.ts +1 -1
- package/dist/Components/Profile/Subcomponents/ActionsButton.d.ts +1 -1
- package/dist/Components/Profile/Subcomponents/ContactInfoForm.d.ts +1 -1
- package/dist/Components/Profile/Subcomponents/ContactInfoView.d.ts +1 -1
- package/dist/Components/Profile/Subcomponents/GalleryView.d.ts +4 -0
- package/dist/Components/Profile/Subcomponents/GroupSubHeaderView.d.ts +1 -1
- package/dist/Components/Profile/Subcomponents/GroupSubheaderForm.d.ts +2 -1
- package/dist/Components/Profile/Subcomponents/LinkedItemsHeaderView.d.ts +1 -1
- package/dist/Components/Profile/Subcomponents/PlusButton.d.ts +1 -1
- package/dist/Components/Profile/Subcomponents/ProfileStartEndForm.d.ts +1 -1
- package/dist/Components/Profile/Subcomponents/ProfileStartEndView.d.ts +1 -1
- package/dist/Components/Profile/Subcomponents/ProfileTextForm.d.ts +3 -2
- package/dist/Components/Profile/Subcomponents/ProfileTextView.d.ts +1 -1
- package/dist/Components/Profile/Templates/FlexForm.d.ts +2 -1
- package/dist/Components/Profile/Templates/FlexView.d.ts +1 -1
- package/dist/Components/Profile/Templates/OnepagerForm.d.ts +2 -1
- package/dist/Components/Profile/Templates/OnepagerView.d.ts +1 -1
- package/dist/Components/Profile/Templates/SimpleView.d.ts +1 -1
- package/dist/Components/Profile/Templates/TabsView.d.ts +2 -1
- package/dist/Components/Templates/AttestationForm.d.ts +1 -1
- package/dist/Components/Templates/DateUserInfo.d.ts +1 -1
- package/dist/Components/Templates/ItemCard.d.ts +1 -1
- package/dist/Components/Templates/TagView.d.ts +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +78 -75
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
@@ -6,7 +6,8 @@ declare type TextAreaProps = {
|
|
6
6
|
inputStyle?: string;
|
7
7
|
defaultValue: string;
|
8
8
|
placeholder?: string;
|
9
|
+
required?: boolean;
|
9
10
|
updateFormValue?: (value: string) => void;
|
10
11
|
};
|
11
|
-
export declare function TextAreaInput({ labelTitle, dataField, labelStyle, containerStyle, inputStyle, defaultValue, placeholder, updateFormValue, }: TextAreaProps): import("react/jsx-runtime").JSX.Element;
|
12
|
+
export declare function TextAreaInput({ labelTitle, dataField, labelStyle, containerStyle, inputStyle, defaultValue, placeholder, required, updateFormValue, }: TextAreaProps): import("react/jsx-runtime").JSX.Element;
|
12
13
|
export {};
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { LayerProps } from '#
|
1
|
+
import type { LayerProps } from '#types/LayerProps';
|
2
2
|
export 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) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ItemsApi
|
1
|
+
import type { ItemsApi } from '#types/ItemsApi';
|
2
|
+
import type { Permission } from '#types/Permission';
|
2
3
|
export declare function Permissions({ data, api, adminRole, }: {
|
3
4
|
data?: Permission[];
|
4
5
|
api?: ItemsApi<Permission>;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { ItemFormPopupProps } from '#
|
1
|
+
import type { ItemFormPopupProps } from '#types/ItemFormPopupProps';
|
2
2
|
export declare function ItemFormPopup(props: ItemFormPopupProps): import("react/jsx-runtime").JSX.Element;
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { Item
|
1
|
+
import type { Item } from '#types/Item';
|
2
|
+
import type { ItemsApi } from '#types/ItemsApi';
|
2
3
|
export declare function HeaderView({ item, api, editCallback, deleteCallback, setPositionCallback, itemNameField, itemSubnameField, itemAvatarField, loading, hideMenu, big, truncateSubname, hideSubname, showAddress, }: {
|
3
4
|
item: Item;
|
4
5
|
api?: ItemsApi<any>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { Item
|
2
|
+
import type { Item } from '#types/Item';
|
3
|
+
import type { ItemFormPopupProps } from '#types/ItemFormPopupProps';
|
3
4
|
export interface ItemViewPopupProps {
|
4
5
|
item: Item;
|
5
6
|
children?: React.ReactNode;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { UtopiaMapProps } from '#
|
1
|
+
import type { UtopiaMapProps } from '#types/UtopiaMapProps';
|
2
2
|
import 'react-toastify/dist/ReactToastify.css';
|
3
3
|
declare function UtopiaMap(props: UtopiaMapProps): import("react/jsx-runtime").JSX.Element;
|
4
4
|
export { UtopiaMap };
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import 'leaflet/dist/leaflet.css';
|
2
|
-
import { UtopiaMapProps } from '#src/types';
|
3
2
|
import './UtopiaMap.css';
|
3
|
+
import type { UtopiaMapProps } from '#types/UtopiaMapProps';
|
4
4
|
export declare function UtopiaMapInner({ height, width, center, zoom, children, geo, showFilterControl, showGratitudeControl, showLayerControl, infoText, }: UtopiaMapProps): import("react/jsx-runtime").JSX.Element;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { LayerProps
|
2
|
+
import type { LayerProps } from '#types/LayerProps';
|
3
|
+
import type { Tag } from '#types/Tag';
|
3
4
|
declare type UseFilterManagerResult = ReturnType<typeof useFilterManager>;
|
4
5
|
declare function useFilterManager(initialTags: Tag[]): {
|
5
6
|
filterTags: Tag[];
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { Item
|
2
|
+
import type { Item } from '#types/Item';
|
3
|
+
import type { LayerProps } from '#types/LayerProps';
|
3
4
|
declare type UseItemManagerResult = ReturnType<typeof useItemsManager>;
|
4
5
|
declare function useItemsManager(initialItems: Item[]): {
|
5
6
|
items: Item[];
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { LayerProps } from '#
|
2
|
+
import type { LayerProps } from '#types/LayerProps';
|
3
3
|
declare type UseItemManagerResult = ReturnType<typeof useLayerManager>;
|
4
4
|
declare function useLayerManager(initialLayers: LayerProps[]): {
|
5
5
|
layers: LayerProps[];
|
@@ -1,5 +1,9 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { Item
|
2
|
+
import type { Item } from '#types/Item';
|
3
|
+
import type { ItemsApi } from '#types/ItemsApi';
|
4
|
+
import type { LayerProps } from '#types/LayerProps';
|
5
|
+
import type { Permission } from '#types/Permission';
|
6
|
+
import type { PermissionAction } from '#types/PermissionAction';
|
3
7
|
declare type UsePermissionManagerResult = ReturnType<typeof usePermissionsManager>;
|
4
8
|
declare function usePermissionsManager(initialPermissions: Permission[]): {
|
5
9
|
permissions: Permission[];
|
@@ -1,6 +1,8 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import {
|
3
|
-
import {
|
2
|
+
import type { Item } from '#types/Item';
|
3
|
+
import type { ItemFormPopupProps } from '#types/ItemFormPopupProps';
|
4
|
+
import type { LayerProps } from '#types/LayerProps';
|
5
|
+
import type { LatLng } from 'leaflet';
|
4
6
|
interface PolygonClickedProps {
|
5
7
|
position: LatLng;
|
6
8
|
setItemFormPopup: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
|
@@ -1,5 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { Item
|
2
|
+
import type { Item } from '#types/Item';
|
3
|
+
import type { ItemsApi } from '#types/ItemsApi';
|
4
|
+
import type { Tag } from '#types/Tag';
|
3
5
|
declare type UseTagManagerResult = ReturnType<typeof useTagsManager>;
|
4
6
|
declare function useTagsManager(initialTags: Tag[]): {
|
5
7
|
tags: Tag[];
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Item } from '#
|
1
|
+
import type { Item } from '#types/Item';
|
2
2
|
export declare function ActionButton({ item, triggerAddButton, triggerItemSelected, existingRelations, itemType, colorField, collection, customStyle, }: {
|
3
3
|
triggerAddButton?: any;
|
4
4
|
triggerItemSelected?: any;
|
@@ -1,9 +1,10 @@
|
|
1
|
-
import { FormState } from '#
|
2
|
-
export declare const ProfileTextForm: ({ state, setState, dataField, heading, size, hideInputLabel, }: {
|
1
|
+
import type { FormState } from '#types/FormState';
|
2
|
+
export declare const ProfileTextForm: ({ state, setState, dataField, heading, size, hideInputLabel, required, }: {
|
3
3
|
state: FormState;
|
4
4
|
setState: React.Dispatch<React.SetStateAction<any>>;
|
5
5
|
dataField?: string | undefined;
|
6
6
|
heading: string;
|
7
7
|
size: string;
|
8
8
|
hideInputLabel: boolean;
|
9
|
+
required?: boolean | undefined;
|
9
10
|
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import type { FormState } from '#types/FormState';
|
2
|
+
import type { Item } from '#types/Item';
|
2
3
|
export declare const FlexForm: ({ item, state, setState, }: {
|
3
4
|
state: FormState;
|
4
5
|
setState: React.Dispatch<React.SetStateAction<any>>;
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { FormState
|
1
|
+
import type { FormState } from '#types/FormState';
|
2
|
+
import type { Item } from '#types/Item';
|
2
3
|
export declare const OnepagerForm: ({ item, state, setState, }: {
|
3
4
|
state: FormState;
|
4
5
|
setState: React.Dispatch<React.SetStateAction<any>>;
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { Item
|
1
|
+
import type { Item } from '#types/Item';
|
2
|
+
import type { Tag } from '#types/Tag';
|
2
3
|
export declare const TabsView: ({ attestations, item, offers, needs, relations, updatePermission, loading, linkItem, unlinkItem, }: {
|
3
4
|
attestations: any[];
|
4
5
|
item: Item;
|
package/dist/index.d.ts
CHANGED
@@ -8,6 +8,8 @@ export { TitleCard, CardPage, MapOverlayPage, OverlayItemsIndexPage, MoonCalenda
|
|
8
8
|
export { TextInput, TextAreaInput, SelectBox } from './Components/Input';
|
9
9
|
declare global {
|
10
10
|
interface Window {
|
11
|
-
my_modal_3:
|
11
|
+
my_modal_3: {
|
12
|
+
showModal(): void;
|
13
|
+
};
|
12
14
|
}
|
13
15
|
}
|