utopia-ui 3.0.75 → 3.0.77

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 (31) hide show
  1. package/dist/index.cjs +1219 -108
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.ts +3 -2
  4. package/dist/index.esm.js +1221 -111
  5. package/dist/index.esm.js.map +1 -1
  6. package/dist/types/src/Components/AppShell/ContextWrapper.d.ts +1 -1
  7. package/dist/types/src/Components/AppShell/hooks/useAppState.d.ts +2 -1
  8. package/dist/types/src/Components/AppShell/index.d.ts +1 -0
  9. package/dist/types/src/Components/Item/PopupForm.d.ts +6 -0
  10. package/dist/types/src/Components/Item/PopupView.d.ts +6 -0
  11. package/dist/types/src/Components/Item/TemplateItemContext.d.ts +3 -0
  12. package/dist/types/src/Components/Item/index.d.ts +37 -0
  13. package/dist/types/src/Components/Item/templateify.d.ts +4 -0
  14. package/dist/types/src/Components/Map/LayerContext.d.ts +12 -0
  15. package/dist/types/src/Components/Map/Subcomponents/Controls/LocateControl.d.ts +0 -1
  16. package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/index.d.ts +7 -0
  17. package/dist/types/src/Components/Map/UtopiaMap.d.ts +0 -1
  18. package/dist/types/src/Components/Map/UtopiaMapInner.d.ts +0 -2
  19. package/dist/types/src/Components/Profile/Subcomponents/AvatarWidget.d.ts +0 -1
  20. package/dist/types/src/Components/Profile/Subcomponents/ColorPicker.d.ts +0 -1
  21. package/dist/types/src/Components/Profile/Subcomponents/GalleryView.d.ts +0 -2
  22. package/dist/types/src/Components/Templates/ItemCard.d.ts +1 -1
  23. package/dist/types/src/Components/Templates/TitleCard.d.ts +1 -1
  24. package/dist/types/src/Components/Typography/ErrorText.d.ts +2 -2
  25. package/dist/types/src/css.d.ts +14 -0
  26. package/dist/types/src/index.d.ts +1 -1
  27. package/package.json +2 -2
  28. package/dist/types/src/Components/AppShell/Sitemap.d.ts +0 -6
  29. package/dist/types/src/Components/Input/SelectBox.d.ts +0 -19
  30. package/dist/types/src/Components/Templates/CircleLayout.d.ts +0 -5
  31. package/dist/types/src/Components/Templates/MoonCalendar.d.ts +0 -4
@@ -1,6 +1,6 @@
1
1
  export declare const ContextWrapper: ({ children }: {
2
2
  children: React.ReactNode;
3
- }) => string | number | boolean | Iterable<import("react").ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
3
+ }) => import("react").ReactNode;
4
4
  export declare const Wrappers: ({ children }: {
5
5
  children: any;
6
6
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,8 @@
1
1
  import type { AssetsApi } from '#types/AssetsApi';
2
2
  interface AppState {
3
3
  assetsApi: AssetsApi;
4
- userType: string;
4
+ sideBarOpen: boolean;
5
+ sideBarSlim: boolean;
5
6
  }
6
7
  type UseAppManagerResult = ReturnType<typeof useAppManager>;
7
8
  declare function useAppManager(): {
@@ -1,3 +1,4 @@
1
1
  export * from './AppShell';
2
2
  export { SideBar } from './SideBar';
3
3
  export { Content } from './Content';
4
+ export { default as SVG } from 'react-inlinesvg';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @category Item
3
+ */
4
+ export declare const PopupForm: ({ children }: {
5
+ children?: React.ReactNode;
6
+ }) => import("react/jsx-runtime").JSX.Element | null | undefined;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @category Item
3
+ */
4
+ export declare const PopupView: ({ children }: {
5
+ children?: React.ReactNode;
6
+ }) => (import("react/jsx-runtime").JSX.Element | null)[];
@@ -0,0 +1,3 @@
1
+ import type { Item } from '#types/Item';
2
+ declare const ItemContext: import("react").Context<Item | undefined>;
3
+ export default ItemContext;
@@ -0,0 +1,37 @@
1
+ export { PopupForm } from './PopupForm';
2
+ export { PopupView } from './PopupView';
3
+ export declare const TextView: import("react").ComponentType<Omit<{
4
+ item?: import("../Map").Item;
5
+ itemId?: string;
6
+ text?: string;
7
+ truncate?: boolean;
8
+ rawText?: string;
9
+ itemTextField?: string;
10
+ }, "item">>;
11
+ export declare const StartEndView: import("react").ComponentType<Omit<{
12
+ item?: import("../Map").Item;
13
+ }, "item">>;
14
+ export declare const PopupTextInput: import("react").ComponentType<Omit<{
15
+ dataField: string;
16
+ placeholder: string;
17
+ style?: string;
18
+ item?: import("../Map").Item;
19
+ }, "item">>;
20
+ export declare const PopupButton: import("react").ComponentType<Omit<{
21
+ url: string;
22
+ parameterField?: string;
23
+ text: string;
24
+ item?: import("../Map").Item;
25
+ }, "item">>;
26
+ export declare const PopupCheckboxInput: import("react").ComponentType<Omit<{
27
+ dataField: string;
28
+ label: string;
29
+ item?: import("../Map").Item;
30
+ }, "item">>;
31
+ export declare const PopupTextAreaInput: import("react").ComponentType<Omit<{
32
+ dataField: string;
33
+ placeholder: string;
34
+ style?: string;
35
+ item?: import("../Map").Item;
36
+ }, "item">>;
37
+ export declare const PopupStartEndInput: import("react").ComponentType<Omit<import("../Map/Subcomponents/ItemPopupComponents/PopupStartEndInput").StartEndInputProps, "item">>;
@@ -0,0 +1,4 @@
1
+ import type { Item } from '#types/Item';
2
+ export declare function templateify<T extends {
3
+ item?: Item;
4
+ }>(Component: React.ComponentType<T>): React.ComponentType<Omit<T, "item">>;
@@ -0,0 +1,12 @@
1
+ import type { ItemFormPopupProps } from '#types/ItemFormPopupProps';
2
+ interface LayerContextType {
3
+ name: string;
4
+ markerDefaultColor: string;
5
+ markerDefaultColor2: string;
6
+ markerShape: string;
7
+ markerIcon: string;
8
+ itemFormPopup: ItemFormPopupProps | null | undefined;
9
+ setItemFormPopup: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>> | undefined;
10
+ }
11
+ declare const LayerContext: import("react").Context<LayerContextType>;
12
+ export default LayerContext;
@@ -1,3 +1,2 @@
1
1
  import 'leaflet.locatecontrol';
2
- import 'leaflet.locatecontrol/dist/L.Control.Locate.css';
3
2
  export declare const LocateControl: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ export { PopupTextAreaInput } from './PopupTextAreaInput';
2
+ export { PopupStartEndInput } from './PopupStartEndInput';
3
+ export { PopupTextInput } from './PopupTextInput';
4
+ export { PopupCheckboxInput } from './PopupCheckboxInput';
5
+ export { TextView } from './TextView';
6
+ export { StartEndView } from './StartEndView';
7
+ export { PopupButton } from './PopupButton';
@@ -1,5 +1,4 @@
1
1
  import type { UtopiaMapProps } from '#types/UtopiaMapProps';
2
- import 'react-toastify/dist/ReactToastify.css';
3
2
  /**
4
3
  * @category Map
5
4
  */
@@ -1,4 +1,2 @@
1
- import 'leaflet/dist/leaflet.css';
2
- import './UtopiaMap.css';
3
1
  import type { UtopiaMapProps } from '#types/UtopiaMapProps';
4
2
  export declare function UtopiaMapInner({ children, geo, showFilterControl, showGratitudeControl, showLayerControl, donationWidget, }: UtopiaMapProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- import 'react-image-crop/dist/ReactCrop.css';
2
1
  interface AvatarWidgetProps {
3
2
  avatar: string;
4
3
  setAvatar: React.Dispatch<React.SetStateAction<any>>;
@@ -1,4 +1,3 @@
1
- import './ColorPicker.css';
2
1
  export declare const ColorPicker: ({ color, onChange, className }: {
3
2
  color: any;
4
3
  onChange: any;
@@ -1,5 +1,3 @@
1
- import 'yet-another-react-lightbox/styles.css';
2
- import 'react-photo-album/rows.css';
3
1
  import type { Item } from '#types/Item';
4
2
  export declare const GalleryView: ({ item }: {
5
3
  item: Item;
@@ -3,5 +3,5 @@ export declare const ItemCard: ({ i, loading, url, deleteCallback, }: {
3
3
  i: Item;
4
4
  loading: boolean;
5
5
  url: string;
6
- deleteCallback: any;
6
+ deleteCallback: (item: Item) => void;
7
7
  }) => import("react/jsx-runtime").JSX.Element;
@@ -4,7 +4,7 @@ interface TitleCardProps {
4
4
  children?: React.ReactNode;
5
5
  topMargin?: string;
6
6
  className?: string;
7
- TopSideButtons?: any;
7
+ TopSideButtons?: React.ReactNode;
8
8
  }
9
9
  /**
10
10
  * @category Templates
@@ -1,5 +1,5 @@
1
1
  declare function ErrorText({ styleClass, children }: {
2
- styleClass: any;
3
- children: any;
2
+ styleClass: string;
3
+ children: React.ReactNode;
4
4
  }): import("react/jsx-runtime").JSX.Element;
5
5
  export default ErrorText;
@@ -0,0 +1,14 @@
1
+ import 'leaflet/dist/leaflet.css';
2
+ import 'leaflet.locatecontrol/dist/L.Control.Locate.css';
3
+ import 'react-image-crop/dist/ReactCrop.css';
4
+ import 'react-photo-album/rows.css';
5
+ import 'react-toastify/dist/ReactToastify.css';
6
+ import 'yet-another-react-lightbox/styles.css';
7
+ import '#assets/css/tailwind.css';
8
+ import '#assets/css/masonry.css';
9
+ import '#assets/css/toastify.css';
10
+ import '#assets/css/custom-file-upload.css';
11
+ import '#assets/css/misc.css';
12
+ import '#assets/css/marker-icons.css';
13
+ import '#assets/css/leaflet.css';
14
+ import '#assets/css/color-picker.css';
@@ -1,4 +1,4 @@
1
- import './index.css';
1
+ import './css';
2
2
  export * from './Components/Map';
3
3
  export * from './Components/AppShell';
4
4
  export * from './Components/Auth';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "utopia-ui",
3
- "version": "3.0.75",
3
+ "version": "3.0.77",
4
4
  "description": "Reuseable React Components to build mapping apps for real life communities and networks",
5
5
  "repository": "https://github.com/utopia-os/utopia-ui",
6
6
  "homepage": "https://utopia-os.org/",
@@ -99,6 +99,7 @@
99
99
  "radash": "^12.1.0",
100
100
  "react-colorful": "^5.6.1",
101
101
  "react-image-crop": "^10.1.8",
102
+ "react-inlinesvg": "^4.2.0",
102
103
  "react-leaflet": "^4.2.1",
103
104
  "react-leaflet-cluster": "^2.1.0",
104
105
  "react-markdown": "^9.0.1",
@@ -106,7 +107,6 @@
106
107
  "react-router-dom": "^6.16.0",
107
108
  "react-toastify": "^9.1.3",
108
109
  "remark-breaks": "^4.0.0",
109
- "tw-elements": "^1.0.0",
110
110
  "yet-another-react-lightbox": "^3.21.7"
111
111
  },
112
112
  "imports": {
@@ -1,6 +0,0 @@
1
- /**
2
- * @category AppShell
3
- */
4
- export declare const Sitemap: ({ url }: {
5
- url: string;
6
- }) => import("react/jsx-runtime").JSX.Element;
@@ -1,19 +0,0 @@
1
- interface SelectBoxProps {
2
- labelTitle?: string;
3
- labelStyle?: string;
4
- type?: string;
5
- containerStyle?: string;
6
- defaultValue: string;
7
- placeholder?: string;
8
- updateFormValue: (value: string) => void;
9
- options: {
10
- name: string;
11
- value: string;
12
- }[];
13
- labelDescription?: string;
14
- }
15
- /**
16
- * @category Input
17
- */
18
- export declare function SelectBox(props: SelectBoxProps): import("react/jsx-runtime").JSX.Element;
19
- export {};
@@ -1,5 +0,0 @@
1
- export declare const CircleLayout: ({ items, radius, fontSize, }: {
2
- items: any;
3
- radius: number;
4
- fontSize: any;
5
- }) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- /**
2
- * @category Templates
3
- */
4
- export declare const MoonCalendar: () => import("react/jsx-runtime").JSX.Element;