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

react-antd-icons

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-antd-icons - npm Package Compare versions

Comparing version 0.0.1-alpha.3 to 0.0.1-alpha.4

.rpt2_cache/ab8b7e7dc0816886f38b7b2c0f1cbc46a8eedd2c/code/cache/67d2dfa589a3e7e2fef729eee457dca026262220

1

esm/components/AntdIcon.d.ts
import * as React from 'react';
export interface IAntdIconProps {
type: string;
prefix?: string;
className?: string;

@@ -5,0 +6,0 @@ onClick?: React.MouseEventHandler<SVGSVGElement>;

4

esm/index.js

@@ -54,5 +54,5 @@ import { library, prefix } from 'antd-icons';

AntdIcon.prototype.render = function () {
var _a = this.props, type = _a.type, rest = __rest(_a, ["type"]);
var _a = this.props, type = _a.type, prefix$$1 = _a.prefix, rest = __rest(_a, ["type", "prefix"]);
return (createElement("svg", __assign({ "data-icon": type, width: '1em', height: '1em', fill: 'currentColor' }, rest),
createElement("use", { xlinkHref: "#" + prefix + type })));
createElement("use", { xlinkHref: "#" + (typeof prefix$$1 === 'string' ? prefix$$1 : prefix) + type })));
};

@@ -59,0 +59,0 @@ AntdIcon.prototype.componentDidMount = function () {

import * as React from 'react';
export interface IAntdIconProps {
type: string;
prefix?: string;
className?: string;

@@ -5,0 +6,0 @@ onClick?: React.MouseEventHandler<SVGSVGElement>;

@@ -58,5 +58,5 @@ 'use strict';

AntdIcon.prototype.render = function () {
var _a = this.props, type = _a.type, rest = __rest(_a, ["type"]);
var _a = this.props, type = _a.type, prefix = _a.prefix, rest = __rest(_a, ["type", "prefix"]);
return (React.createElement("svg", __assign({ "data-icon": type, width: '1em', height: '1em', fill: 'currentColor' }, rest),
React.createElement("use", { xlinkHref: "#" + antdIcons.prefix + type })));
React.createElement("use", { xlinkHref: "#" + (typeof prefix === 'string' ? prefix : antdIcons.prefix) + type })));
};

@@ -63,0 +63,0 @@ AntdIcon.prototype.componentDidMount = function () {

{
"name": "react-antd-icons",
"version": "0.0.1-alpha.3",
"version": "0.0.1-alpha.4",
"main": "./lib/index.js",

@@ -5,0 +5,0 @@ "module": "./esm/index.js",

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