@nutui/nutui-react 0.1.2 → 1.0.0-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.
Files changed (120) hide show
  1. package/dist/esm/ActionSheet/style/css.js +1 -0
  2. package/dist/esm/ActionSheet/style/index.js +1 -1
  3. package/dist/esm/Address/style/css.js +1 -0
  4. package/dist/esm/Address/style/index.js +1 -1
  5. package/dist/esm/AnimatingNumbers/style/css.js +1 -0
  6. package/dist/esm/AnimatingNumbers/style/index.js +1 -1
  7. package/dist/esm/Avatar/style/css.js +1 -0
  8. package/dist/esm/Avatar/style/index.js +1 -1
  9. package/dist/esm/BackTop/style/css.js +1 -0
  10. package/dist/esm/BackTop/style/index.js +1 -1
  11. package/dist/esm/Badge/style/css.js +1 -0
  12. package/dist/esm/Badge/style/index.js +1 -1
  13. package/dist/esm/Barrage/style/css.js +1 -0
  14. package/dist/esm/Barrage/style/index.js +1 -1
  15. package/dist/esm/Button/style/css.js +1 -0
  16. package/dist/esm/Button/style/index.js +1 -1
  17. package/dist/esm/Calendar/style/css.js +1 -0
  18. package/dist/esm/Calendar/style/index.js +1 -1
  19. package/dist/esm/CalendarItem/style/css.js +1 -0
  20. package/dist/esm/CalendarItem/style/index.js +1 -1
  21. package/dist/esm/Cell/style/css.js +1 -0
  22. package/dist/esm/Cell/style/index.js +1 -1
  23. package/dist/esm/CellGroup/style/css.js +1 -0
  24. package/dist/esm/CellGroup/style/index.js +1 -1
  25. package/dist/esm/Checkbox/style/css.js +1 -0
  26. package/dist/esm/Checkbox/style/index.js +1 -1
  27. package/dist/esm/CheckboxGroup/style/css.js +1 -0
  28. package/dist/esm/CheckboxGroup/style/index.js +1 -1
  29. package/dist/esm/CircleProgress/style/css.js +1 -0
  30. package/dist/esm/CircleProgress/style/index.js +1 -1
  31. package/dist/esm/Col/style/css.js +1 -0
  32. package/dist/esm/Col/style/index.js +1 -1
  33. package/dist/esm/Collapse/style/css.js +1 -0
  34. package/dist/esm/Collapse/style/index.js +1 -1
  35. package/dist/esm/CollapseItem/style/css.js +1 -0
  36. package/dist/esm/CollapseItem/style/index.js +1 -1
  37. package/dist/esm/Dialog/style/css.js +1 -0
  38. package/dist/esm/Dialog/style/index.js +1 -1
  39. package/dist/esm/Divider/style/css.js +1 -0
  40. package/dist/esm/Divider/style/index.js +1 -1
  41. package/dist/esm/Drag/style/css.js +1 -0
  42. package/dist/esm/Drag/style/index.js +1 -1
  43. package/dist/esm/Elevator/style/css.js +1 -0
  44. package/dist/esm/Elevator/style/index.js +1 -1
  45. package/dist/esm/FixedNav/style/css.js +1 -0
  46. package/dist/esm/FixedNav/style/index.js +1 -1
  47. package/dist/esm/Icon/style/css.js +1 -0
  48. package/dist/esm/Icon/style/index.js +1 -1
  49. package/dist/esm/Infiniteloading/style/css.js +1 -0
  50. package/dist/esm/Infiniteloading/style/index.js +1 -1
  51. package/dist/esm/Input/style/css.js +1 -0
  52. package/dist/esm/Input/style/index.js +1 -1
  53. package/dist/esm/InputNumber/style/css.js +1 -0
  54. package/dist/esm/InputNumber/style/index.js +1 -1
  55. package/dist/esm/Layout/style/css.js +1 -0
  56. package/dist/esm/Layout/style/index.js +1 -1
  57. package/dist/esm/NavBar/style/css.js +1 -0
  58. package/dist/esm/NavBar/style/index.js +1 -1
  59. package/dist/esm/NoticeBar/style/css.js +1 -0
  60. package/dist/esm/NoticeBar/style/index.js +1 -1
  61. package/dist/esm/Notify/style/css.js +1 -0
  62. package/dist/esm/Notify/style/index.js +1 -1
  63. package/dist/esm/Overlay/style/css.js +1 -0
  64. package/dist/esm/Overlay/style/index.js +1 -1
  65. package/dist/esm/Pagination/style/css.js +1 -0
  66. package/dist/esm/Pagination/style/index.js +1 -1
  67. package/dist/esm/Picker/style/css.js +1 -0
  68. package/dist/esm/Picker/style/index.js +1 -1
  69. package/dist/esm/Popover/style/css.js +1 -0
  70. package/dist/esm/Popover/style/index.js +1 -1
  71. package/dist/esm/Popup/style/css.js +1 -0
  72. package/dist/esm/Popup/style/index.js +1 -1
  73. package/dist/esm/Price/style/css.js +1 -0
  74. package/dist/esm/Price/style/index.js +1 -1
  75. package/dist/esm/Radio/style/css.js +1 -0
  76. package/dist/esm/Radio/style/index.js +1 -1
  77. package/dist/esm/RadioGroup/style/css.js +1 -0
  78. package/dist/esm/RadioGroup/style/index.js +1 -1
  79. package/dist/esm/Range/style/css.js +1 -0
  80. package/dist/esm/Range/style/index.js +1 -1
  81. package/dist/esm/Rate/style/css.js +1 -0
  82. package/dist/esm/Rate/style/index.js +1 -1
  83. package/dist/esm/Row/style/css.js +1 -0
  84. package/dist/esm/Row/style/index.js +1 -1
  85. package/dist/esm/ShortPassword/style/css.js +1 -0
  86. package/dist/esm/ShortPassword/style/index.js +1 -1
  87. package/dist/esm/Signature/style/css.js +1 -0
  88. package/dist/esm/Signature/style/index.js +1 -1
  89. package/dist/esm/Step/style/css.js +1 -0
  90. package/dist/esm/Step/style/index.js +1 -1
  91. package/dist/esm/Steps/style/css.js +1 -0
  92. package/dist/esm/Steps/style/index.js +1 -1
  93. package/dist/esm/Swiper/style/css.js +1 -0
  94. package/dist/esm/Swiper/style/index.js +1 -1
  95. package/dist/esm/SwiperItem/style/css.js +1 -0
  96. package/dist/esm/SwiperItem/style/index.js +1 -1
  97. package/dist/esm/Switch/style/css.js +1 -0
  98. package/dist/esm/Switch/style/index.js +1 -1
  99. package/dist/esm/Tabbar/style/css.js +1 -0
  100. package/dist/esm/Tabbar/style/index.js +1 -1
  101. package/dist/esm/TabbarItem/style/css.js +1 -0
  102. package/dist/esm/TabbarItem/style/index.js +1 -1
  103. package/dist/esm/Tag/style/css.js +1 -0
  104. package/dist/esm/Tag/style/index.js +1 -1
  105. package/dist/esm/TextArea/style/css.js +1 -0
  106. package/dist/esm/TextArea/style/index.js +1 -1
  107. package/dist/esm/Toast/style/css.js +1 -0
  108. package/dist/esm/Toast/style/index.js +1 -1
  109. package/dist/esm/Uploader/style/css.js +1 -0
  110. package/dist/esm/Uploader/style/index.js +1 -1
  111. package/dist/esm/types/src/packages/tabbaritem/index.d.ts +1 -1
  112. package/dist/esm/types/src/packages/tabbaritem/{tabbarItem.d.ts → tabbaritem.d.ts} +0 -0
  113. package/dist/nutui.react.es.js +1 -1
  114. package/dist/nutui.react.umd.js +1 -1
  115. package/dist/packages/dialog/dialog.scss +7 -0
  116. package/dist/style.css +1 -1
  117. package/dist/style.es.js +1 -1
  118. package/dist/styles/font/iconfont.scss +455 -0
  119. package/dist/styles/variables.scss +3 -3
  120. package/package.json +10 -11
package/dist/style.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v0.1.2 Thu Jan 06 2022 17:37:34 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.0.0-beta.1 Mon Jan 10 2022 08:30:04 GMT+0800 (China Standard Time)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -0,0 +1,455 @@
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
+
@@ -346,6 +346,6 @@ $dialog-vertical-footer-ok-margin-top: 10px !default;
346
346
  $dialog-footer-button-min-width: 100px !default;
347
347
  $dialog-footer-cancel-margin-right: 20px !default;
348
348
  $dialog-footer-ok-max-width: 128px !default;
349
-
350
- @import './mixins/index';
351
- @import './animation/index';
349
+ // 在组件中import
350
+ //@import './mixins/index';
351
+ //@import './animation/index';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nutui/nutui-react",
3
- "version": "0.1.2",
3
+ "version": "1.0.0-beta.1",
4
4
  "style": "dist/style.css",
5
5
  "main": "dist/nutui.react.umd.js",
6
6
  "module": "dist/esm/nutui-react.es.js",
@@ -37,27 +37,26 @@
37
37
  ],
38
38
  "scripts": {
39
39
  "add": "node scripts/createComponentMode.js",
40
- "generate:types": "tsc && npm run replace:types",
41
40
  "generate:file": "node scripts/generate-nutui.js",
42
- "generate:loader-style": "node scripts/generate-loader-style.js",
43
- "replace:scss": "node scripts/replace-scss.js",
44
- "replace:types": "node scripts/replace-types.js",
45
41
  "generate:themes": "node scripts/generate-themes.js",
46
42
  "checked": "npm run generate:file && tsc",
47
43
  "dev": "npm run checked && vite --open --force",
48
- "build:css": "npm run generate:themes && vite build --config vite.config.build.css.ts && npm run build:replace",
44
+ "replace:scss": "node scripts/replace-scss-alias.js",
45
+ "replace:types": "node scripts/replace-types-alias.js",
46
+ "build:types": "tsc && npm run replace:types",
47
+ "build:loader-style": "node scripts/generate-loader-style.js",
48
+ "build:component:css": "node scripts/build-component-css.js",
49
+ "build:css": "npm run generate:themes && vite build --config vite.config.build.css.ts && npm run build:replace ",
49
50
  "build:replace": "npm run replace:scss",
50
- "build:esm": "npx rollup -c rollup.config.es.js",
51
- "build": "npm run checked && vite build --config vite.config.build.ts && npm run build:esm && npm run build:css && npm run generate:types && npm run generate:loader-style",
51
+ "build:es": "npx rollup -c rollup.config.es.js",
52
+ "build": "npm run checked && vite build --config vite.config.build.ts && npm run build:es && npm run build:css && npm run build:loader-style && npm run build:types ",
52
53
  "build:site": "npm run checked && vite build --config vite.config.build.site.ts",
53
54
  "publish:beta": "npm publish --tag beta",
54
55
  "prepare": "husky install"
55
56
  },
56
57
  "lint-staged": {
57
58
  "*.md": "prettier --write",
58
- "*.{ts,tsx,js,scss}": "prettier --write",
59
- "*.js": "eslint --cache --fix",
60
- "*.{js,css,md}": "prettier --write"
59
+ "{**/*,*}.{js,ts,jsx,tsx,scss}": "prettier --write && eslint --cache --fix"
61
60
  },
62
61
  "dependencies": {
63
62
  "@babel/runtime": "^7.16.5",