Socket
Socket
Sign inDemoInstall

@uiw/react-icon

Package Overview
Dependencies
Maintainers
2
Versions
171
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uiw/react-icon - npm Package Compare versions

Comparing version 4.21.19 to 4.21.20

33

cjs/index.js
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
Object.defineProperty(exports, "__esModule", {

@@ -9,30 +8,22 @@ value: true

exports["default"] = Icon;
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
var _react = _interopRequireDefault(require("react"));
var _wIcon = _interopRequireDefault(require("@uiw/icons/fonts/w-icon.json"));
var _jsxRuntime = require("react/jsx-runtime");
var _excluded = ["className", "prefixCls", "verticalAlign", "tagName", "color", "type", "spin"];
function Icon(props) {
var className = props.className,
_props$prefixCls = props.prefixCls,
prefixCls = _props$prefixCls === void 0 ? 'w-icon' : _props$prefixCls,
_props$verticalAlign = props.verticalAlign,
verticalAlign = _props$verticalAlign === void 0 ? 'middle' : _props$verticalAlign,
_props$tagName = props.tagName,
TagName = _props$tagName === void 0 ? 'span' : _props$tagName,
color = props.color,
type = props.type,
_props$spin = props.spin,
spin = _props$spin === void 0 ? false : _props$spin,
others = (0, _objectWithoutProperties2["default"])(props, _excluded);
_props$prefixCls = props.prefixCls,
prefixCls = _props$prefixCls === void 0 ? 'w-icon' : _props$prefixCls,
_props$verticalAlign = props.verticalAlign,
verticalAlign = _props$verticalAlign === void 0 ? 'middle' : _props$verticalAlign,
_props$tagName = props.tagName,
TagName = _props$tagName === void 0 ? 'span' : _props$tagName,
color = props.color,
type = props.type,
_props$spin = props.spin,
spin = _props$spin === void 0 ? false : _props$spin,
others = (0, _objectWithoutProperties2["default"])(props, _excluded);
var svg = null;
if (typeof type === 'string') {

@@ -56,3 +47,2 @@ svg = /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {

}
others.style = (0, _objectSpread2["default"])({

@@ -66,4 +56,3 @@ fill: 'currentColor'

}
module.exports = exports.default;
//# sourceMappingURL=index.js.map

@@ -10,14 +10,12 @@ import _extends from "@babel/runtime/helpers/extends";

var {
className,
prefixCls = 'w-icon',
verticalAlign = 'middle',
tagName: TagName = 'span',
color,
type,
spin = false
} = props,
others = _objectWithoutPropertiesLoose(props, _excluded);
className,
prefixCls = 'w-icon',
verticalAlign = 'middle',
tagName: TagName = 'span',
color,
type,
spin = false
} = props,
others = _objectWithoutPropertiesLoose(props, _excluded);
var svg = null;
if (typeof type === 'string') {

@@ -39,13 +37,10 @@ svg = /*#__PURE__*/_jsx("svg", {

}
others.style = _extends({
fill: 'currentColor'
}, others.style);
var propps = _extends({}, others, {
className: [prefixCls, className, prefixCls && verticalAlign ? prefixCls + "-" + verticalAlign : null, spin && prefixCls ? prefixCls + "-spin" : null].filter(Boolean).join(' ').trim()
});
return /*#__PURE__*/React.createElement(TagName, _extends({}, propps), svg);
}
//# sourceMappingURL=index.js.map
{
"name": "@uiw/react-icon",
"version": "4.21.19",
"version": "4.21.20",
"description": "Icon component",

@@ -5,0 +5,0 @@ "author": "Kenny Wong <wowohoo@qq.com>",

Sorry, the diff of this file is not supported yet

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