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

@nutui/icons-react-taro

Package Overview
Dependencies
Maintainers
2
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nutui/icons-react-taro - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

40

dist/es/icons/IconFont.js

@@ -5,2 +5,4 @@ import x from "react";

size: "",
width: "",
height: "",
classPrefix: "nut-icon",

@@ -19,3 +21,3 @@ fontClassName: "nutui-iconfont",

const {
name: n,
name: t,
size: a,

@@ -26,29 +28,29 @@ classPrefix: l,

children: u,
className: c,
fontClassName: N,
style: d,
onClick: i,
...p
className: i,
fontClassName: h,
style: N,
onClick: c,
...d
} = {
...o,
...e
}, s = n ? n.indexOf("/") !== -1 : !1, h = s ? "img" : f || "i", C = (g) => {
i && i(g);
}, $ = () => s ? { src: n } : {}, t = k(a || "");
}, s = t ? t.indexOf("/") !== -1 : !1, p = s ? "img" : f || "i", g = ($) => {
c && c($);
}, C = () => s ? { src: t } : {}, n = k(a || "");
return x.createElement(
h,
p,
{
className: s ? `nut-icon__img ${c || ""} ` : `${N} nut-icon ${l}-${n} ${c || ""}`,
className: s ? `nut-icon__img ${i || ""} ` : `${h} nut-icon ${l}-${t} ${i || ""}`,
style: {
color: m,
...t ? {
fontSize: t,
width: t,
height: t
...n ? {
fontSize: n,
width: n,
height: n
} : {},
...d
...N
},
...p,
onClick: C,
...$()
...d,
onClick: g,
...C()
},

@@ -55,0 +57,0 @@ u

@@ -1,2 +0,2 @@

(function(a,C){typeof exports=="object"&&typeof module<"u"?C(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],C):(a=typeof globalThis<"u"?globalThis:a||self,C(a.NutUIIcons={},a.React))})(this,function(a,C){"use strict";const cn={name:"",size:"",classPrefix:"nut-icon",fontClassName:"nutui-iconfont",color:"",tag:"i",onClick:n=>{},className:""};function pa(n){return Number.isNaN(Number(n))?String(n):`${n}px`}const K=n=>{const{name:w,size:W,classPrefix:_,color:O,tag:j,children:T,className:b,fontClassName:I,style:k,onClick:N,...v}={...cn,...n},g=w?w.indexOf("/")!==-1:!1,D=g?"img":j||"i",J=S=>{N&&N(S)},p=()=>g?{src:w}:{},F=pa(W||"");return C.createElement(D,{className:g?`nut-icon__img ${b||""} `:`${I} nut-icon ${_}-${w} ${b||""}`,style:{color:O,...F?{fontSize:F,width:F,height:F}:{},...k},...v,onClick:J,...p()},T)};K.defaultProps=cn,K.displayName="NutIcon";const t=K,Qa={name:"nutui-icon",data:[{name:"粗体 Icon",nameEn:"Bold Icon",icons:["order","refresh","add","JD","eye","dshop","my2","star","del2","more-x","comment","microphone","people","service","cart2","location2","marshalling","fabulous","s-follow","shop","jdl"]},{name:"细体 Icon",nameEn:"Thin Icon",icons:["ask","tips","notice","lower","top","download","dongdong","JIMI40","location","scan","addfollow","search","share","follow","del","edit","cart","home","find","category","my","footprint","link","scan2","left","close","locationg3","share","shop3","message","ask2","search2","clock","setting","refresh2","horizontal","date","photograph","more-s","play-stop","play-start","play-double-back","play-double-forward","voice","image","image-error"]},{name:"应用图标",nameEn:"Application Icon",icons:["arrow-up","arrow-down","arrow-up2","arrow-down2","down-arrow","joy-smile","close-little","horizontal-n","share-n","heart1","heart-fill","star-n","star-fill-n","triangle-down","triangle-up"]},{name:"基础图标",nameEn:"Basic Icon",icons:["rect-up","rect-down","rect-left","rect-right","uploader","mask-close","circle-close","right","arrow-right","github","screen-little","plus","minus","Check","issue","failure","success","retweet","poweroff-circle-fill","play-circle-fill","checked","checklist","check-disabled","check-normal","check-checked","loading","loading1"]}],style:[{name:"通用动态样式",nameEn:"Universal Dynamic Style",icons:[{name:"dou-arrow-up","animation-name":"am-jump","animation-time":"am-infinite"},{name:"star","animation-name":"am-blink","animation-time":"am-infinite"},{name:"refresh2","animation-name":"am-rotate","animation-time":"am-infinite"},{name:"heart-fill","animation-name":"am-breathe","animation-time":"am-infinite"},{name:"microphone","animation-name":"am-flash","animation-time":"am-infinite"},{name:"download","animation-name":"am-bounce","animation-time":"am-infinite"},{name:"message","animation-name":"am-shake","animation-time":"am-infinite"}]}]};var X={},Za={get exports(){return X},set exports(n){X=n}},L={};/**
(function(a,C){typeof exports=="object"&&typeof module<"u"?C(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],C):(a=typeof globalThis<"u"?globalThis:a||self,C(a.NutUIIcons={},a.React))})(this,function(a,C){"use strict";const cn={name:"",size:"",width:"",height:"",classPrefix:"nut-icon",fontClassName:"nutui-iconfont",color:"",tag:"i",onClick:n=>{},className:""};function pa(n){return Number.isNaN(Number(n))?String(n):`${n}px`}const K=n=>{const{name:w,size:W,classPrefix:_,color:O,tag:j,children:T,className:b,fontClassName:I,style:k,onClick:N,...v}={...cn,...n},g=w?w.indexOf("/")!==-1:!1,D=g?"img":j||"i",J=S=>{N&&N(S)},p=()=>g?{src:w}:{},F=pa(W||"");return C.createElement(D,{className:g?`nut-icon__img ${b||""} `:`${I} nut-icon ${_}-${w} ${b||""}`,style:{color:O,...F?{fontSize:F,width:F,height:F}:{},...k},...v,onClick:J,...p()},T)};K.defaultProps=cn,K.displayName="NutIcon";const t=K,Qa={name:"nutui-icon",data:[{name:"粗体 Icon",nameEn:"Bold Icon",icons:["order","refresh","add","JD","eye","dshop","my2","star","del2","more-x","comment","microphone","people","service","cart2","location2","marshalling","fabulous","s-follow","shop","jdl"]},{name:"细体 Icon",nameEn:"Thin Icon",icons:["ask","tips","notice","lower","top","download","dongdong","JIMI40","location","scan","addfollow","search","share","follow","del","edit","cart","home","find","category","my","footprint","link","scan2","left","close","locationg3","share","shop3","message","ask2","search2","clock","setting","refresh2","horizontal","date","photograph","more-s","play-stop","play-start","play-double-back","play-double-forward","voice","image","image-error"]},{name:"应用图标",nameEn:"Application Icon",icons:["arrow-up","arrow-down","arrow-up2","arrow-down2","down-arrow","joy-smile","close-little","horizontal-n","share-n","heart1","heart-fill","star-n","star-fill-n","triangle-down","triangle-up"]},{name:"基础图标",nameEn:"Basic Icon",icons:["rect-up","rect-down","rect-left","rect-right","uploader","mask-close","circle-close","right","arrow-right","github","screen-little","plus","minus","Check","issue","failure","success","retweet","poweroff-circle-fill","play-circle-fill","checked","checklist","check-disabled","check-normal","check-checked","loading","loading1"]}],style:[{name:"通用动态样式",nameEn:"Universal Dynamic Style",icons:[{name:"dou-arrow-up","animation-name":"am-jump","animation-time":"am-infinite"},{name:"star","animation-name":"am-blink","animation-time":"am-infinite"},{name:"refresh2","animation-name":"am-rotate","animation-time":"am-infinite"},{name:"heart-fill","animation-name":"am-breathe","animation-time":"am-infinite"},{name:"microphone","animation-name":"am-flash","animation-time":"am-infinite"},{name:"download","animation-name":"am-bounce","animation-time":"am-infinite"},{name:"message","animation-name":"am-shake","animation-time":"am-infinite"}]}]};var X={},Za={get exports(){return X},set exports(n){X=n}},L={};/**
* @license React

@@ -3,0 +3,0 @@ * react-jsx-runtime.production.min.js

@@ -116,2 +116,4 @@ import { FunctionComponent } from 'react';

size?: string | number;
width?: string | number;
height?: string | number;
classPrefix?: string;

@@ -118,0 +120,0 @@ color?: string;

{
"name": "@nutui/icons-react-taro",
"version": "0.0.3",
"version": "0.0.4",
"scripts": {

@@ -5,0 +5,0 @@ "dev": "vite",

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