@nutui/icons-react-taro 0.0.2 → 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:
|
|
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:
|
|
25
|
-
fontClassName:
|
|
26
|
-
style:
|
|
27
|
-
onClick:
|
|
28
|
-
...
|
|
26
|
+
className: i,
|
|
27
|
+
fontClassName: h,
|
|
28
|
+
style: N,
|
|
29
|
+
onClick: c,
|
|
30
|
+
...d
|
|
29
31
|
} = {
|
|
30
32
|
...o,
|
|
31
33
|
...e
|
|
32
|
-
}, s =
|
|
33
|
-
|
|
34
|
-
},
|
|
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
|
-
|
|
38
|
+
p,
|
|
37
39
|
{
|
|
38
|
-
className: s ? `nut-icon__img ${
|
|
40
|
+
className: s ? `nut-icon__img ${i || ""} ` : `${h} nut-icon ${l}-${t} ${i || ""}`,
|
|
39
41
|
style: {
|
|
40
42
|
color: m,
|
|
41
|
-
...
|
|
42
|
-
fontSize:
|
|
43
|
-
width:
|
|
44
|
-
height:
|
|
43
|
+
...n ? {
|
|
44
|
+
fontSize: n,
|
|
45
|
+
width: n,
|
|
46
|
+
height: n
|
|
45
47
|
} : {},
|
|
46
|
-
...
|
|
48
|
+
...N
|
|
47
49
|
},
|
|
48
|
-
...
|
|
49
|
-
onClick:
|
|
50
|
-
|
|
50
|
+
...d,
|
|
51
|
+
onClick: g,
|
|
52
|
+
...C()
|
|
51
53
|
},
|
|
52
54
|
u
|
|
53
55
|
);
|
package/dist/lib/index.umd.js
CHANGED
|
@@ -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: "",
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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
|
+
"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",
|