react-usa-svg
Advanced tools
Comparing version 2.0.0 to 2.1.0
import { SVGProps } from "react"; | ||
import { STATES_LIST } from "./STATES_LIST"; | ||
export type StatesListUnrendered = "AS" | "GU" | "MH" | "MP" | "VI"; | ||
export type StatesListRendererMap = Omit< | ||
@@ -8,3 +10,3 @@ { | ||
}, | ||
"AS" | "GU" | "MH" | "MP" | "VI" | ||
StatesListUnrendered | ||
>; | ||
@@ -32,2 +34,5 @@ | ||
// Extra renderers | ||
ExtraRenderers?: Array<React.FC<any>>; | ||
// Props for additional frames | ||
@@ -34,0 +39,0 @@ framesStroke?: string; |
@@ -55,3 +55,3 @@ "use strict"; | ||
function USA(props) { | ||
var SVGFilters = props.SVGFilters, HOC = props.HOC, _framesStroke = props.framesStroke, _framesStrokeWidth = props.framesStrokeWidth, getSVGProps = props.getSVGProps; | ||
var SVGFilters = props.SVGFilters, ExtraRenderers = props.ExtraRenderers, HOC = props.HOC, _framesStroke = props.framesStroke, _framesStrokeWidth = props.framesStrokeWidth, getSVGProps = props.getSVGProps; | ||
var framesStroke = _framesStroke || defaultFramesStroke; | ||
@@ -77,3 +77,4 @@ var framesStrokeWidth = _framesStrokeWidth || defaultFramesStrokeWidth; | ||
})("DC"), | ||
React.createElement("path", { id: "frames", fill: "none", stroke: framesStroke, strokeWidth: framesStrokeWidth, d: "M215 493v55l36 45M0 425h147l68 68h85l54 54v46" }))); | ||
React.createElement("path", { id: "frames", fill: "none", stroke: framesStroke, strokeWidth: framesStrokeWidth, d: "M215 493v55l36 45M0 425h147l68 68h85l54 54v46" }), ExtraRenderers === null || ExtraRenderers === void 0 ? void 0 : | ||
ExtraRenderers.map(function (ExtraRendererComponent, key) { return (React.createElement(ExtraRendererComponent, { key: key })); }))); | ||
} | ||
@@ -80,0 +81,0 @@ exports.USA = USA; |
{ | ||
"author": "Konstantin Ryzhov", | ||
"name": "react-usa-svg", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "React.js SVG-components for USA map", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
266248
2840
0