@geowiki/ui 0.16.0-dev.0 → 0.16.0-dev.2

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.
@@ -20,7 +20,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
21
21
  get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
22
22
  }) : x)(function(x) {
23
- if (typeof require !== "undefined") return require.apply(this, arguments);
23
+ if (typeof require !== "undefined")
24
+ return require.apply(this, arguments);
24
25
  throw Error('Dynamic require of "' + x + '" is not supported');
25
26
  });
26
27
  var __objRest = (source, exclude) => {
@@ -56,47 +57,10 @@ var __async = (__this, __arguments, generator) => {
56
57
  });
57
58
  };
58
59
 
59
- // src/components/Elements/loader.tsx
60
- import { jsx, jsxs } from "react/jsx-runtime";
61
- var LoaderFull = ({
62
- showInCenter = true,
63
- cssClass = null
64
- }) => {
65
- return /* @__PURE__ */ jsx(
66
- "div",
67
- {
68
- className: showInCenter ? "w-full min-h-screen flex items-center justify-center " + (cssClass !== null ? cssClass : "z-[1000] fixed top-0 left-0") : "w-full flex items-center justify-center " + (cssClass !== null ? cssClass : "z-[1000] fixed top-0 left-0"),
69
- children: /* @__PURE__ */ jsx(
70
- "svg",
71
- {
72
- viewBox: "0 0 38 38",
73
- className: "animate-spin h-20 w-20 stroke-current text-black-600 mr-2",
74
- xmlns: "http://www.w3.org/2000/svg",
75
- children: /* @__PURE__ */ jsx("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ jsxs("g", { transform: "translate(1 1)", strokeWidth: "2", children: [
76
- /* @__PURE__ */ jsx("circle", { strokeOpacity: ".5", cx: "18", cy: "18", r: "18" }),
77
- /* @__PURE__ */ jsx("path", { d: "M36 18c0-9.94-8.06-18-18-18", children: /* @__PURE__ */ jsx(
78
- "animateTransform",
79
- {
80
- attributeName: "transform",
81
- type: "rotate",
82
- from: "0 18 18",
83
- to: "360 18 18",
84
- dur: "1s",
85
- repeatCount: "indefinite"
86
- }
87
- ) })
88
- ] }) })
89
- }
90
- )
91
- }
92
- );
93
- };
94
-
95
60
  export {
96
61
  __spreadValues,
97
62
  __spreadProps,
98
63
  __require,
99
64
  __objRest,
100
- __async,
101
- LoaderFull
65
+ __async
102
66
  };
@@ -1,10 +1,9 @@
1
1
  "use client";
2
2
  import {
3
- LoaderFull,
4
3
  __objRest,
5
4
  __spreadProps,
6
5
  __spreadValues
7
- } from "./chunk-J22S7K3T.mjs";
6
+ } from "./chunk-2KORXHVU.mjs";
8
7
 
9
8
  // src/components/ClusterMap/cluster-map.tsx
10
9
  import { MapContainer, TileLayer } from "react-leaflet";
@@ -33,6 +32,7 @@ var location_marker_default = LocationMarker;
33
32
  import { DivIcon, LatLng as LatLng2 } from "leaflet";
34
33
  import { Marker as Marker2, Popup as Popup2 } from "react-leaflet";
35
34
  import { useClusterMapInfo } from "@geowiki/core";
35
+ import { LoaderFull } from "@geowiki/design-system";
36
36
  import Image from "next/image";
37
37
 
38
38
  // src/components/ClusterMap/MarkerClusterGroup.tsx
@@ -90,8 +90,10 @@ var ClusterMarkers = (_props) => {
90
90
  const { data: ConfigSettings, isLoading: IsConfigSettingsLoaded } = useConfigSettings();
91
91
  const { data, error, isLoading } = useClusterMapInfo();
92
92
  const fileUrl = useFileUrl();
93
- if (error) return null;
94
- if (isLoading || IsConfigSettingsLoaded) return /* @__PURE__ */ jsx2(LoaderFull, {});
93
+ if (error)
94
+ return null;
95
+ if (isLoading || IsConfigSettingsLoaded)
96
+ return /* @__PURE__ */ jsx2(LoaderFull, {});
95
97
  if ((_b = (_a = ConfigSettings == null ? void 0 : ConfigSettings.ConfigSettings) == null ? void 0 : _a.FeaturesFarmerCluster) == null ? void 0 : _b.Text) {
96
98
  return /* @__PURE__ */ jsx2("div", { children: /* @__PURE__ */ jsx2(MarkerClusterGroup2, { children: data == null ? void 0 : data.map((cluster) => {
97
99
  var _a2, _b2;