New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@diana-ui/icon

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@diana-ui/icon - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

15

lib/Icon.js

@@ -12,2 +12,13 @@ var __assign = (this && this.__assign) || function () {

};
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};
import React, { useMemo } from "react";

@@ -19,3 +30,3 @@ import { withStyles, useTheme } from "@diana-ui/base";

var Icon = function (_a) {
var name = _a.name, height = _a.height, width = _a.width, stroke = _a.stroke, fill = _a.fill, color = _a.color, className = _a.className, src = _a.src, size = _a.size, cx = _a.cx, styles = _a.styles;
var name = _a.name, height = _a.height, width = _a.width, stroke = _a.stroke, fill = _a.fill, color = _a.color, className = _a.className, src = _a.src, size = _a.size, cx = _a.cx, styles = _a.styles, props = __rest(_a, ["name", "height", "width", "stroke", "fill", "color", "className", "src", "size", "cx", "styles"]);
var theme = useTheme();

@@ -44,5 +55,5 @@ // eslint-disable-next-line @typescript-eslint/no-explicit-any

newProps.className = "y-icon " + cx(styles.icon) + " " + (className || "");
return React.createElement(SvgIcon, __assign({}, newProps));
return React.createElement(SvgIcon, __assign({}, props, newProps));
};
Icon.displayName = "Icon";
export default withStyles(styleSheet, { register: true })(Icon);

@@ -0,1 +1,12 @@

var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};
import React, { useMemo } from "react";

@@ -6,3 +17,4 @@ import { withStyles, useTheme } from "@diana-ui/base";

});
const Icon = ({ name, height, width, stroke, fill, color, className, src, size, cx, styles }) => {
const Icon = (_a) => {
var { name, height, width, stroke, fill, color, className, src, size, cx, styles } = _a, props = __rest(_a, ["name", "height", "width", "stroke", "fill", "color", "className", "src", "size", "cx", "styles"]);
const theme = useTheme();

@@ -31,5 +43,5 @@ // eslint-disable-next-line @typescript-eslint/no-explicit-any

newProps.className = `y-icon ${cx(styles.icon)} ${className || ""}`;
return React.createElement(SvgIcon, Object.assign({}, newProps));
return React.createElement(SvgIcon, Object.assign({}, props, newProps));
};
Icon.displayName = "Icon";
export default withStyles(styleSheet, { register: true })(Icon);

4

package.json
{
"name": "@diana-ui/icon",
"version": "0.2.1",
"version": "0.2.2",
"main": "lib/index.js",

@@ -47,3 +47,3 @@ "module": "module/index.js",

},
"gitHead": "6279b4669fc82997a5545a35cc5a5412d3c96904"
"gitHead": "3fe6aa301fede66032b78be8a76a9bd9aa7df7ba"
}
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