@nutui/icons-react-taro 0.0.4 → 0.0.5-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,15 +13,15 @@ const o = {
13
13
  className: ""
14
14
  };
15
15
  function k(e) {
16
- return Number.isNaN(Number(e)) ? String(e) : `${e}px`;
16
+ return e ? Number.isNaN(Number(e)) ? String(e) : `${e}px` : "";
17
17
  }
18
18
  const r = (e) => {
19
19
  const {
20
20
  name: t,
21
21
  size: a,
22
22
  classPrefix: l,
23
- color: m,
24
- tag: f,
23
+ color: f,
24
+ tag: m,
25
25
  children: u,
26
26
  className: i,
27
27
  fontClassName: h,
@@ -31,7 +31,7 @@ const r = (e) => {
31
31
  } = {
32
32
  ...o,
33
33
  ...e
34
- }, s = t ? t.indexOf("/") !== -1 : !1, p = s ? "img" : f || "i", g = ($) => {
34
+ }, s = t ? t.indexOf("/") !== -1 : !1, p = s ? "img" : m || "i", g = ($) => {
35
35
  c && c($);
36
36
  }, C = () => s ? { src: t } : {}, n = k(a || "");
37
37
  return x.createElement(
@@ -39,7 +39,7 @@ const r = (e) => {
39
39
  {
40
40
  className: s ? `nut-icon__img ${i || ""} ` : `${h} nut-icon ${l}-${t} ${i || ""}`,
41
41
  style: {
42
- color: m,
42
+ color: f,
43
43
  ...n ? {
44
44
  fontSize: n,
45
45
  width: n,
@@ -1,4 +1,4 @@
1
- (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={};/**
1
+ (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 n?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={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -1529,7 +1529,7 @@ const fo = /* @__PURE__ */ co(Qe), pt = {
1529
1529
  className: ""
1530
1530
  };
1531
1531
  function mo(n) {
1532
- return Number.isNaN(Number(n)) ? String(n) : `${n}px`;
1532
+ return n ? Number.isNaN(Number(n)) ? String(n) : `${n}px` : "";
1533
1533
  }
1534
1534
  const Vn = (n) => {
1535
1535
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nutui/icons-react-taro",
3
- "version": "0.0.4",
3
+ "version": "0.0.5-beta.1",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "vite build --config vite.config.build.es.ts && vite build --config vite.config.build.umd.ts && vite build --config vite.config.build.css.ts && vite build --config vite.config.dts.ts",