react-leaflet-custom-control
Advanced tools
Comparing version
@@ -1,13 +0,1 @@ | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
import { jsx as _jsx } from "react/jsx-runtime"; | ||
import React from 'react'; | ||
@@ -29,3 +17,3 @@ import L from 'leaflet'; | ||
}, [positionClass]); | ||
var controlContainer = (_jsx("div", __assign({ className: 'leaflet-control leaflet-bar', style: props.style }, { children: props.children }), void 0)); | ||
var controlContainer = (React.createElement("div", { className: 'leaflet-control leaflet-bar', style: props.style }, props.children)); | ||
L.DomEvent.disableClickPropagation(container); | ||
@@ -32,0 +20,0 @@ return ReactDOM.createPortal(controlContainer, container); |
{ | ||
"name": "react-leaflet-custom-control", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "Creates a control wrapper around a React element", | ||
@@ -22,16 +22,16 @@ "main": "lib/Control.js", | ||
"leaflet": "^1.7.1", | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2" | ||
"react": "^18.0.0", | ||
"react-dom": "^18.0.0" | ||
}, | ||
"devDependencies": { | ||
"@testing-library/jest-dom": "^5.14.1", | ||
"@testing-library/react": "^11.2.7", | ||
"@testing-library/user-event": "^12.8.3", | ||
"@types/jest": "^26.0.24", | ||
"@types/node": "^12.20.28", | ||
"@types/react": "^17.0.27", | ||
"@types/react-dom": "^17.0.9", | ||
"@types/leaflet": "^1.7.5", | ||
"react-scripts": "4.0.3", | ||
"typescript": "^4.4.3" | ||
"@testing-library/jest-dom": "^5.16.4", | ||
"@testing-library/react": "^13.1.1", | ||
"@testing-library/user-event": "^14.1.1", | ||
"@types/jest": "^27.4.1", | ||
"@types/leaflet": "^1.7.9", | ||
"@types/node": "^17.0.25", | ||
"@types/react": "^18.0.6", | ||
"@types/react-dom": "^18.0.2", | ||
"react-scripts": "^5.0.1", | ||
"typescript": "^4.6.3" | ||
}, | ||
@@ -42,2 +42,2 @@ "bugs": { | ||
"homepage": "https://github.com/chris-m92/react-leaflet-custom-control#readme" | ||
} | ||
} |
@@ -24,3 +24,3 @@ { | ||
"sourceMap": true, | ||
"jsx": "react-jsx" | ||
"jsx": "react" | ||
}, | ||
@@ -27,0 +27,0 @@ "include": [ |
Sorry, the diff of this file is not supported yet
8377
-5.94%89
-11.88%