@nutui/nutui-react 1.0.0-beta.1 → 1.0.0

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.
@@ -34,7 +34,7 @@ var __publicField = (obj, key, value) => {
34
34
  return value;
35
35
  };
36
36
  /*!
37
- * @nutui/nutui-react v1.0.0-beta.1 Mon Jan 10 2022 08:29:47 GMT+0800 (China Standard Time)
37
+ * @nutui/nutui-react v1.0.0 Mon Jan 10 2022 09:47:15 GMT+0800 (China Standard Time)
38
38
  * (c) 2021 @jdf2e.
39
39
  * Released under the MIT License.
40
40
  */
@@ -1,5 +1,5 @@
1
1
  var Nf=Object.defineProperty,Cf=Object.defineProperties;var Sf=Object.getOwnPropertyDescriptors;var Yn=Object.getOwnPropertySymbols;var Oo=Object.prototype.hasOwnProperty,Fo=Object.prototype.propertyIsEnumerable;var Ar=(M,p,ye)=>p in M?Nf(M,p,{enumerable:!0,configurable:!0,writable:!0,value:ye}):M[p]=ye,N=(M,p)=>{for(var ye in p||(p={}))Oo.call(p,ye)&&Ar(M,ye,p[ye]);if(Yn)for(var ye of Yn(p))Fo.call(p,ye)&&Ar(M,ye,p[ye]);return M},ve=(M,p)=>Cf(M,Sf(p));var fe=(M,p)=>{var ye={};for(var Ie in M)Oo.call(M,Ie)&&p.indexOf(Ie)<0&&(ye[Ie]=M[Ie]);if(M!=null&&Yn)for(var Ie of Yn(M))p.indexOf(Ie)<0&&Fo.call(M,Ie)&&(ye[Ie]=M[Ie]);return ye};var pe=(M,p,ye)=>(Ar(M,typeof p!="symbol"?p+"":p,ye),ye);/*!
2
- * @nutui/nutui-react v1.0.0-beta.1 Mon Jan 10 2022 08:29:47 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.0.0 Mon Jan 10 2022 09:47:15 GMT+0800 (China Standard Time)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */(function(M,p){typeof exports=="object"&&typeof module!="undefined"?p(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],p):(M=typeof globalThis!="undefined"?globalThis:M||self,p((M.nutui=M.nutui||{},M.nutui.react={}),M.React,M.ReactDOM))})(this,function(M,p,ye){"use strict";function Ie(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}function Dr(e){if(e&&e.__esModule)return e;var t={__proto__:null,[Symbol.toStringTag]:"Module"};return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var i=Ie(p),be=Dr(p),en=Dr(ye),mt=Ie(ye),Ir={exports:{}},tn={};function Or(e){function t(r,a,l,o){var c=a?n+r+e.e+a:n+r,u=c;if(l){var d=" "+u+e.m;for(var f in l)if(l.hasOwnProperty(f)){var m=l[f];m===!0?u+=d+f:m&&(u+=d+f+s+m)}}if(o!==void 0)for(var y=0,h=o.length;y<h;y++){var b=o[y];if(b&&typeof b.valueOf()=="string")for(var E=b.valueOf().split(" "),g=0;g<E.length;g++){var S=E[g];S!==c&&(u+=" "+S)}}return u}var n=e.n||"",s=e.v||e.m;return function(r,a){return function(l,o,c){return typeof l=="string"?Array.isArray(o)?t(r,l,void 0,o):t(r,l,o,c):t(r,a,l,o)}}}Object.defineProperty(tn,"__esModule",{value:!0});var Mo=Or({e:"-",m:"_"});tn.cn=Mo,tn.withNaming=Or,Ir.exports=tn;const Q=Ir.exports.withNaming({n:"nut-",e:"__",m:"--",v:"-"}),Fr={name:"",size:"",classPrefix:"nutui-iconfont",color:"",tag:"i",click:e=>{},className:""};function Wn(e){return Number.isNaN(Number(e))?String(e):`${e}px`}const te=e=>{const E=N(N({},Fr),e),{name:t,size:n,classPrefix:s,color:r,tag:a,children:l,className:o,style:c,click:u}=E,d=fe(E,["name","size","classPrefix","color","tag","children","className","style","click"]),f=t?t.indexOf("/")!==-1:!1,m=f?"img":a,y=Q("icon"),h=g=>{e.click&&e.click(g)},b=()=>f?{src:t}:{};return i.default.createElement(m,N(ve(N({className:f?`${o||""} ${y("img")}`:`${o||""} ${y(null,[s])} nut-icon-${t} `,style:N({color:r,fontSize:Wn(n),width:Wn(n),height:Wn(n)},c)},d),{onClick:h}),b()),l)};te.defaultProps=Fr,te.displayName="NutIcon";var Mr={exports:{}};/*!
package/dist/style.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.0.0-beta.1 Mon Jan 10 2022 08:30:04 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.0.0 Mon Jan 10 2022 09:47:22 GMT+0800 (China Standard Time)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nutui/nutui-react",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0",
4
4
  "style": "dist/style.css",
5
5
  "main": "dist/nutui.react.umd.js",
6
6
  "module": "dist/esm/nutui-react.es.js",
@@ -56,7 +56,7 @@
56
56
  },
57
57
  "lint-staged": {
58
58
  "*.md": "prettier --write",
59
- "{**/*,*}.{js,ts,jsx,tsx,scss}": "prettier --write && eslint --cache --fix"
59
+ "*.{ts,tsx,js,vue,scss}": "prettier --write"
60
60
  },
61
61
  "dependencies": {
62
62
  "@babel/runtime": "^7.16.5",
@@ -1,455 +0,0 @@
1
- @font-face {
2
- font-family: "nutui-iconfont"; /* Project id 2166874 */
3
- src: url('./iconfont.woff2?t=1620383008438') format('woff2'),
4
- url('./iconfont.woff?t=1620383008438') format('woff'),
5
- url('./iconfont.ttf?t=1620383008438') format('truetype');
6
- }
7
-
8
- .nutui-iconfont {
9
- font-family: "nutui-iconfont" !important;
10
- font-size: 16px;
11
- font-style: normal;
12
- -webkit-font-smoothing: antialiased;
13
- -moz-osx-font-smoothing: grayscale;
14
- }
15
-
16
- .nut-icon-checked:before {
17
- content: "\e601";
18
- }
19
-
20
- .nut-icon-checklist:before {
21
- content: "\e6c8";
22
- }
23
-
24
- .nut-icon-check-disabled:before {
25
- content: "\e6c7";
26
- }
27
-
28
- .nut-icon-check-normal:before {
29
- content: "\e6c5";
30
- }
31
-
32
- .nut-icon-check-checked:before {
33
- content: "\e6c6";
34
- }
35
-
36
- .nut-icon-loading:before {
37
- content: "\e6c4";
38
- }
39
-
40
- .nut-icon-heart-n:before {
41
- content: "\e6c0";
42
- }
43
-
44
- .nut-icon-star-fill-n:before {
45
- content: "\e6c1";
46
- }
47
-
48
- .nut-icon-heart-fill-n:before {
49
- content: "\e6c2";
50
- }
51
-
52
- .nut-icon-star-n:before {
53
- content: "\e6c3";
54
- }
55
-
56
- .nut-icon-heart:before {
57
- content: "\e69d";
58
- }
59
-
60
- .nut-icon-heart1:before {
61
- content: "\e69e";
62
- }
63
-
64
- .nut-icon-heart-fill:before {
65
- content: "\e69f";
66
- }
67
-
68
- .nut-icon-heart-fill2:before {
69
- content: "\e6bf";
70
- }
71
-
72
- .nut-icon-heart-fill1:before {
73
- content: "\e6be";
74
- }
75
-
76
- .nut-icon-star-fill2:before {
77
- content: "\e6ae";
78
- }
79
-
80
- .nut-icon-star11:before {
81
- content: "\e6ad";
82
- }
83
-
84
- .nut-icon-star1:before {
85
- content: "\e6a0";
86
- }
87
-
88
- .nut-icon-star-fill:before {
89
- content: "\e6a1";
90
- }
91
-
92
- .nut-icon-share-n:before {
93
- content: "\e6bd";
94
- }
95
-
96
- .nut-icon-horizontal-n:before {
97
- content: "\e6bc";
98
- }
99
-
100
- .nut-icon-more-x:before {
101
- content: "\e6bb";
102
- }
103
-
104
- .nut-icon-more-s:before {
105
- content: "\e6ba";
106
- }
107
-
108
- .nut-icon-star-fill1:before {
109
- content: "\e6b8";
110
- }
111
-
112
- .nut-icon-star2:before {
113
- content: "\e6b9";
114
- }
115
-
116
- .nut-icon-heart2:before {
117
- content: "\e6b6";
118
- }
119
-
120
- .nut-icon-heart-fill3:before {
121
- content: "\e6b7";
122
- }
123
-
124
- .nut-icon-retweet:before {
125
- content: "\e6b5";
126
- }
127
-
128
- .nut-icon-poweroff-circle-fill:before {
129
- content: "\e6b3";
130
- }
131
-
132
- .nut-icon-play-circle-fill:before {
133
- content: "\e6b4";
134
- }
135
-
136
- .nut-icon-down-arrow:before {
137
- content: "\e6b2";
138
- }
139
-
140
- .nut-icon-success:before {
141
- content: "\e6af";
142
- }
143
-
144
- .nut-icon-failure:before {
145
- content: "\e6b0";
146
- }
147
-
148
- .nut-icon-issue:before {
149
- content: "\e6b1";
150
- }
151
-
152
- .nut-icon-Check:before {
153
- content: "\e6ac";
154
- }
155
-
156
- .nut-icon-plus:before {
157
- content: "\e600";
158
- }
159
-
160
- .nut-icon-minus:before {
161
- content: "\e6ab";
162
- }
163
-
164
- .nut-icon-arrow-up2:before {
165
- content: "\e6a6";
166
- }
167
-
168
- .nut-icon-arrow-down2:before {
169
- content: "\e6a7";
170
- }
171
-
172
- .nut-icon-screen-little:before {
173
- content: "\e6a8";
174
- }
175
-
176
- .nut-icon-arrow-right2:before {
177
- content: "\e6a9";
178
- }
179
-
180
- .nut-icon-close-little:before {
181
- content: "\e6aa";
182
- }
183
-
184
- .nut-icon-joy-smile:before {
185
- content: "\e6a5";
186
- }
187
-
188
- .nut-icon-arrow-down:before {
189
- content: "\e6a2";
190
- }
191
-
192
- .nut-icon-arrow-right:before {
193
- content: "\e6a3";
194
- }
195
-
196
- .nut-icon-arrow-up:before {
197
- content: "\e6a4";
198
- }
199
-
200
- .nut-icon-github:before {
201
- content: "\e69c";
202
- }
203
-
204
- .nut-icon-uploader:before {
205
- content: "\e69b";
206
- }
207
-
208
- .nut-icon-mask-close:before {
209
- content: "\e69a";
210
- }
211
-
212
- .nut-icon-circle-close:before {
213
- content: "\e699";
214
- }
215
-
216
- .nut-icon-right:before {
217
- content: "\e698";
218
- }
219
-
220
- .nut-icon-jdl:before {
221
- content: "\e696";
222
- }
223
-
224
- .nut-icon-order:before {
225
- content: "\e697";
226
- }
227
-
228
- .nut-icon-refresh:before {
229
- content: "\e690";
230
- }
231
-
232
- .nut-icon-add:before {
233
- content: "\e691";
234
- }
235
-
236
- .nut-icon-JD:before {
237
- content: "\e692";
238
- }
239
-
240
- .nut-icon-eye:before {
241
- content: "\e693";
242
- }
243
-
244
- .nut-icon-dshop:before {
245
- content: "\e694";
246
- }
247
-
248
- .nut-icon-my2:before {
249
- content: "\e695";
250
- }
251
-
252
- .nut-icon-star:before {
253
- content: "\e68e";
254
- }
255
-
256
- .nut-icon-del2:before {
257
- content: "\e68f";
258
- }
259
-
260
- .nut-icon-comment:before {
261
- content: "\e68a";
262
- }
263
-
264
- .nut-icon-microphone:before {
265
- content: "\e68b";
266
- }
267
-
268
- .nut-icon-people:before {
269
- content: "\e68c";
270
- }
271
-
272
- .nut-icon-service:before {
273
- content: "\e68d";
274
- }
275
-
276
- .nut-icon-cart2:before {
277
- content: "\e689";
278
- }
279
-
280
- .nut-icon-location2:before {
281
- content: "\e684";
282
- }
283
-
284
- .nut-icon-marshalling:before {
285
- content: "\e685";
286
- }
287
-
288
- .nut-icon-fabulous:before {
289
- content: "\e686";
290
- }
291
-
292
- .nut-icon-s-follow:before {
293
- content: "\e687";
294
- }
295
-
296
- .nut-icon-shop:before {
297
- content: "\e688";
298
- }
299
-
300
- .nut-icon-message:before {
301
- content: "\e683";
302
- }
303
-
304
- .nut-icon-ask2:before {
305
- content: "\e67e";
306
- }
307
-
308
- .nut-icon-search2:before {
309
- content: "\e67f";
310
- }
311
-
312
- .nut-icon-clock:before {
313
- content: "\e680";
314
- }
315
-
316
- .nut-icon-setting:before {
317
- content: "\e681";
318
- }
319
-
320
- .nut-icon-refresh2:before {
321
- content: "\e682";
322
- }
323
-
324
- .nut-icon-horizontal:before {
325
- content: "\e679";
326
- }
327
-
328
- .nut-icon-date:before {
329
- content: "\e67a";
330
- }
331
-
332
- .nut-icon-photograph:before {
333
- content: "\e67b";
334
- }
335
-
336
- .nut-icon-link:before {
337
- content: "\e67c";
338
- }
339
-
340
- .nut-icon-scan2:before {
341
- content: "\e67d";
342
- }
343
-
344
- .nut-icon-left:before {
345
- content: "\e673";
346
- }
347
-
348
- .nut-icon-close:before {
349
- content: "\e674";
350
- }
351
-
352
- .nut-icon-locationg3:before {
353
- content: "\e675";
354
- }
355
-
356
- .nut-icon-share1:before {
357
- content: "\e676";
358
- }
359
-
360
- .nut-icon-shop3:before {
361
- content: "\e677";
362
- }
363
-
364
- .nut-icon-more:before {
365
- content: "\e678";
366
- }
367
-
368
- .nut-icon-ask:before {
369
- content: "\e670";
370
- }
371
-
372
- .nut-icon-tips:before {
373
- content: "\e671";
374
- }
375
-
376
- .nut-icon-notice:before {
377
- content: "\e672";
378
- }
379
-
380
- .nut-icon-lower:before {
381
- content: "\e668";
382
- }
383
-
384
- .nut-icon-top:before {
385
- content: "\e669";
386
- }
387
-
388
- .nut-icon-download:before {
389
- content: "\e66a";
390
- }
391
-
392
- .nut-icon-dongdong:before {
393
- content: "\e66b";
394
- }
395
-
396
- .nut-icon-JIMI40:before {
397
- content: "\e66c";
398
- }
399
-
400
- .nut-icon-location:before {
401
- content: "\e66d";
402
- }
403
-
404
- .nut-icon-scan:before {
405
- content: "\e66e";
406
- }
407
-
408
- .nut-icon-addfollow:before {
409
- content: "\e66f";
410
- }
411
-
412
- .nut-icon-search:before {
413
- content: "\e663";
414
- }
415
-
416
- .nut-icon-share:before {
417
- content: "\e664";
418
- }
419
-
420
- .nut-icon-follow:before {
421
- content: "\e665";
422
- }
423
-
424
- .nut-icon-del:before {
425
- content: "\e666";
426
- }
427
-
428
- .nut-icon-edit:before {
429
- content: "\e667";
430
- }
431
-
432
- .nut-icon-cart:before {
433
- content: "\e65f";
434
- }
435
-
436
- .nut-icon-home:before {
437
- content: "\e660";
438
- }
439
-
440
- .nut-icon-find:before {
441
- content: "\e661";
442
- }
443
-
444
- .nut-icon-category:before {
445
- content: "\e662";
446
- }
447
-
448
- .nut-icon-my:before {
449
- content: "\e65e";
450
- }
451
-
452
- .nut-icon-footprint:before {
453
- content: "\e65d";
454
- }
455
-