@nutui/icons-react-taro 0.0.3 → 0.0.4

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.
@@ -2,6 +2,8 @@ import x from "react";
2
2
  const o = {
3
3
  name: "",
4
4
  size: "",
5
+ width: "",
6
+ height: "",
5
7
  classPrefix: "nut-icon",
6
8
  fontClassName: "nutui-iconfont",
7
9
  color: "",
@@ -15,39 +17,39 @@ function k(e) {
15
17
  }
16
18
  const r = (e) => {
17
19
  const {
18
- name: n,
20
+ name: t,
19
21
  size: a,
20
22
  classPrefix: l,
21
23
  color: m,
22
24
  tag: f,
23
25
  children: u,
24
- className: c,
25
- fontClassName: N,
26
- style: d,
27
- onClick: i,
28
- ...p
26
+ className: i,
27
+ fontClassName: h,
28
+ style: N,
29
+ onClick: c,
30
+ ...d
29
31
  } = {
30
32
  ...o,
31
33
  ...e
32
- }, s = n ? n.indexOf("/") !== -1 : !1, h = s ? "img" : f || "i", C = (g) => {
33
- i && i(g);
34
- }, $ = () => s ? { src: n } : {}, t = k(a || "");
34
+ }, s = t ? t.indexOf("/") !== -1 : !1, p = s ? "img" : f || "i", g = ($) => {
35
+ c && c($);
36
+ }, C = () => s ? { src: t } : {}, n = k(a || "");
35
37
  return x.createElement(
36
- h,
38
+ p,
37
39
  {
38
- className: s ? `nut-icon__img ${c || ""} ` : `${N} nut-icon ${l}-${n} ${c || ""}`,
40
+ className: s ? `nut-icon__img ${i || ""} ` : `${h} nut-icon ${l}-${t} ${i || ""}`,
39
41
  style: {
40
42
  color: m,
41
- ...t ? {
42
- fontSize: t,
43
- width: t,
44
- height: t
43
+ ...n ? {
44
+ fontSize: n,
45
+ width: n,
46
+ height: n
45
47
  } : {},
46
- ...d
48
+ ...N
47
49
  },
48
- ...p,
49
- onClick: C,
50
- ...$()
50
+ ...d,
51
+ onClick: g,
52
+ ...C()
51
53
  },
52
54
  u
53
55
  );
@@ -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:"",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 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
  *
@@ -1518,6 +1518,8 @@ Check the top-level render call using <` + o + ">.");
1518
1518
  const fo = /* @__PURE__ */ co(Qe), pt = {
1519
1519
  name: "",
1520
1520
  size: "",
1521
+ width: "",
1522
+ height: "",
1521
1523
  classPrefix: "nut-icon",
1522
1524
  fontClassName: "nutui-iconfont",
1523
1525
  color: "",
@@ -113,6 +113,8 @@ export declare const IconFont: FunctionComponent<IconFontProps>;
113
113
  declare interface IconFontProps {
114
114
  name?: string;
115
115
  size?: string | number;
116
+ width?: string | number;
117
+ height?: string | number;
116
118
  classPrefix?: string;
117
119
  color?: string;
118
120
  tag?: keyof ReactHTML;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nutui/icons-react-taro",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
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",