Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-usa-svg

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-usa-svg - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

7

lib/index.d.ts
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;

5

lib/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc