utopia-ui 3.0.0-alpha.44 → 3.0.0-alpha.45
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/index.js +1 -13
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -5,7 +5,6 @@ import { createContext, useContext, useReducer, useCallback, useState, useEffect
|
|
5
5
|
import * as L from 'leaflet';
|
6
6
|
import { LatLngBounds, LatLng } from 'leaflet';
|
7
7
|
import MarkerClusterGroup from 'react-leaflet-cluster';
|
8
|
-
import * as HIcons from '@heroicons/react/20/solid';
|
9
8
|
import { Link, useNavigate, Outlet, useLocation, BrowserRouter, NavLink } from 'react-router-dom';
|
10
9
|
import { toast, ToastContainer } from 'react-toastify';
|
11
10
|
import axios from 'axios';
|
@@ -140,17 +139,6 @@ function __spreadArray(to, from, pack) {
|
|
140
139
|
return to.concat(ar || Array.prototype.slice.call(from));
|
141
140
|
}
|
142
141
|
|
143
|
-
// DynamicHeroIcon.tsx
|
144
|
-
var DynamicHeroIcon = function (props) {
|
145
|
-
var icons = __rest(HIcons, []);
|
146
|
-
var TheIcon = icons[props.icon];
|
147
|
-
if (!TheIcon) {
|
148
|
-
console.log("Icon ".concat(props.icon, " doesn't exist"));
|
149
|
-
}
|
150
|
-
return (React.createElement(React.Fragment, null,
|
151
|
-
React.createElement(TheIcon, { className: props.className ? props.className : "tw-h-6 tw-w-6 tw-text-white", "aria-hidden": "true" })));
|
152
|
-
};
|
153
|
-
|
154
142
|
var LayerContext = createContext({
|
155
143
|
layers: [],
|
156
144
|
addLayer: function () { },
|
@@ -704,7 +692,7 @@ function AddButton(_a) {
|
|
704
692
|
React.createElement("a", null,
|
705
693
|
React.createElement("div", { className: "tw-tooltip tw-tooltip-left", "data-tip": layer.menuText },
|
706
694
|
React.createElement("button", { tabIndex: 0, className: "tw-z-500 tw-border-0 tw-pl-2 tw-p-0 tw-mb-3 tw-w-10 tw-h-10 tw-cursor-pointer tw-rounded-full tw-mouse tw-drop-shadow-md tw-transition tw-ease-in tw-duration-200 focus:tw-outline-none", style: { backgroundColor: layer.menuColor }, onClick: function () { setSelectNewItemPosition(layer); } },
|
707
|
-
React.createElement(
|
695
|
+
React.createElement(layer.menuIcon, { className: "tw-h-6 tw-w-6 tw-text-white" })))))));
|
708
696
|
}))) : ""));
|
709
697
|
}
|
710
698
|
|