@nutui/nutui-react-taro 1.3.10-beta.0 → 1.3.11-beta.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.
Files changed (69) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +54 -46
  3. package/dist/esm/Audio.js +3 -3
  4. package/dist/esm/Avatar.js +3 -2
  5. package/dist/esm/Badge.js +2 -2
  6. package/dist/esm/Button.js +2 -2
  7. package/dist/esm/Calendar.js +3 -3
  8. package/dist/esm/CalendarItem.js +2 -2
  9. package/dist/esm/Card.js +3 -3
  10. package/dist/esm/Checkbox.js +2 -2
  11. package/dist/esm/CheckboxGroup.js +2 -2
  12. package/dist/esm/Col.js +2 -2
  13. package/dist/esm/Dialog.js +3 -3
  14. package/dist/esm/ImagePreview.js +3 -3
  15. package/dist/esm/Infiniteloading.js +2 -2
  16. package/dist/esm/Input.js +2 -2
  17. package/dist/esm/MenuItem.js +2 -2
  18. package/dist/esm/Radio.js +1 -1
  19. package/dist/esm/RadioGroup.js +2 -2
  20. package/dist/esm/Rate.js +2 -2
  21. package/dist/esm/Row.js +2 -2
  22. package/dist/esm/Signature.js +3 -3
  23. package/dist/esm/Skeleton.js +4 -3
  24. package/dist/esm/SwiperItem.js +2 -2
  25. package/dist/esm/TabbarItem.js +3 -3
  26. package/dist/esm/Tag.js +2 -2
  27. package/dist/esm/Uploader.js +3 -3
  28. package/dist/esm/{audio.taro-b42a082b.js → audio.taro-b4f71d1b.js} +1 -1
  29. package/dist/esm/{avatar.taro-deabe88a.js → avatar.taro-85ced995.js} +9 -7
  30. package/dist/esm/{badge.taro-38684262.js → badge.taro-9f72d846.js} +4 -1
  31. package/dist/esm/{button.taro-7e924b72.js → button.taro-4ce133b9.js} +26 -21
  32. package/dist/esm/{calendar.taro-533b3219.js → calendar.taro-a1f1a7f8.js} +1 -1
  33. package/dist/esm/{calendaritem.taro-fe5dd4bd.js → calendaritem.taro-3a12e7f2.js} +1 -1
  34. package/dist/esm/{card.taro-59f65b66.js → card.taro-a530dfb3.js} +1 -1
  35. package/dist/esm/{checkbox.taro-d8656076.js → checkbox.taro-0bda9796.js} +1 -1
  36. package/dist/esm/{col.taro-2a437387.js → col.taro-b61c7cba.js} +5 -2
  37. package/dist/esm/{dialog.taro-0c35b35f.js → dialog.taro-17e19e5e.js} +1 -1
  38. package/dist/esm/{imagepreview.taro-1199e977.js → imagepreview.taro-69d47ab0.js} +1 -1
  39. package/dist/esm/{index.taro-c092d216.js → index.taro-a36f96fb.js} +1 -1
  40. package/dist/esm/{infiniteloading.taro-b95e62bf.js → infiniteloading.taro-9701755f.js} +3 -1
  41. package/dist/esm/{input.taro-cc46bbc3.js → input.taro-14380bc6.js} +1 -3
  42. package/dist/esm/{menuitem.taro-06a135a5.js → menuitem.taro-bb55f482.js} +8 -3
  43. package/dist/esm/nutui-react.es.js +23 -23
  44. package/dist/esm/{rate.taro-69c85081.js → rate.taro-10197384.js} +4 -1
  45. package/dist/esm/{row.taro-cec13a7e.js → row.taro-37a895de.js} +5 -1
  46. package/dist/esm/{signature.taro-57f8de06.js → signature.taro-6589435b.js} +1 -1
  47. package/dist/esm/{skeleton.taro-acca102c.js → skeleton.taro-853ce460.js} +1 -1
  48. package/dist/esm/{swiperitem-d00e7513.js → swiperitem-86a3578a.js} +6 -4
  49. package/dist/esm/{tabbaritem.taro-fb90f659.js → tabbaritem.taro-8dfb8055.js} +5 -4
  50. package/dist/esm/{tag.taro-84d40117.js → tag.taro-bd900990.js} +1 -1
  51. package/dist/esm/types/src/packages/avatar/avatar.d.ts +1 -0
  52. package/dist/esm/types/src/packages/avatar/avatar.taro.d.ts +1 -1
  53. package/dist/esm/types/src/packages/button/button.taro.d.ts +4 -1
  54. package/dist/esm/types/src/packages/menuitem/menuitem.d.ts +2 -2
  55. package/dist/esm/types/src/packages/menuitem/menuitem.taro.d.ts +2 -2
  56. package/dist/esm/{uploader.taro-a03bb003.js → uploader.taro-2e16bff6.js} +1 -1
  57. package/dist/locales/base.js +1 -1
  58. package/dist/locales/en-US.js +1 -1
  59. package/dist/locales/id-ID.js +1 -1
  60. package/dist/locales/zh-CN.js +1 -1
  61. package/dist/locales/zh-TW.js +1 -1
  62. package/dist/nutui.react.es.js +77 -46
  63. package/dist/nutui.react.umd.js +76 -45
  64. package/dist/packages/avatar/avatar.scss +1 -1
  65. package/dist/packages/button/button.scss +6 -0
  66. package/dist/style.css +1 -1
  67. package/dist/style.es.js +1 -1
  68. package/dist/types/index.d.ts +5 -3
  69. package/package.json +9 -3
package/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ # v1.3.11
2
+ `2022-11-16`
3
+
4
+ * :bug: fix: CheckboxGroup和RadioGroup组件动态改变options没有导致子组件更新问题 (#464) @cuicuiworld
5
+ * :sparkles: feat: avatar组件支持iconSize自定义图标大小 (#461) @cuicuiworld
6
+ * :bug: fix: avatar img 标签增加 avatar-img (#462) @oasis-cloud
7
+ * :bug: fix: button 组件中 icon 单独使用不居中 @oasis-cloud
8
+ * :bug: fix: tag组件去除多余标签元素 (#459) @cuicuiworld
9
+ * :bug: fix: calendar 今日标签样式错误 (#460) @Phyzait
10
+ * :sparkles: feat: infiniteloading 组件适配 taro (#458) @junjun666
11
+ * :bug: fix: 修复taro原生img标签无法重新渲染的问题 (#455) @junjun666
12
+ * :sparkles: feat: swiperItem组件支持className和style属性 (#454) @cuicuiworld
13
+ * :bug: fix: 修复TabBar组件demo演示页路由跳转失败问题 (#451) @cuicuiworld
14
+ * :bug: fix: 修复Row组件的文档示例错误 (#453) @simpleStyle
15
+ * 📖 docs: 修复 datepicker 文档中示例代码错误 (#449) @xxxnine
16
+ * :sparkles: feat: 补全button的关于小程序API的typescript支持 (#447) @simpleStyle
17
+ * :bug: fix: input组件defaultvalue值为空时不可清除问题修复 (#452) vickyYe*
18
+ * :sparkles: feat: menuitem 支持 ref (#450) @oasis-cloud
19
+ * :sparkles: feat: badge组件支持className和style属性 (#444) @cuicuiworld
20
+ * :bug: fix: 引入样式文件运行报错(#439) (#441) @hydeia
21
+ * :sparkles: feat: button组件支持原生小程序和H5的button特性 (#433) @simpleStyle
22
+ * :sparkles: feat: row和col组件支持className和style属性 (#440) @cuicuiworld
23
+ * :sparkles: feat: rate组件添加className和style属性 (#438) @cuicuiworld
24
+
1
25
  # v1.3.10
2
26
  `2022-11-09`
3
27
 
package/README.md CHANGED
@@ -3,54 +3,52 @@
3
3
  <img alt="logo" src="https://img11.360buyimg.com/imagetools/jfs/t1/211965/25/7152/22022/61b16785E433119bb/aa41d7a9f7e823f3.png" width="150" style="margin-bottom: 10px;">
4
4
  </p>
5
5
 
6
- <p align="center">京东风格的轻量级移动端 React 组件库</p>
6
+ <p align="center">京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序</p>
7
7
 
8
8
  <p align="center">
9
9
  <a href="http://makeapullrequest.com">
10
10
  <img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square" alt="PRs Welcome" />
11
11
  </a>
12
-
13
-
14
- <a href="https://github.com/jdf2e/nutui">
15
- <img src="https://img.shields.io/npm/l/@nutui/nutui-react.svg" alt="license"/>
16
- </a>
17
- <a href="https://www.npmjs.com/package/@nutui/nutui-react">
18
- <img src="https://img.shields.io/npm/v/@nutui/nutui-react.svg?style=flat-square">
19
- </a>
20
- <a href="https://www.npmjs.com/package/@nutui/nutui-react">
21
- <img src="https://img.shields.io/npm/dt/@nutui/nutui-react.svg?style=flat-square">
22
- </a>
23
-
24
- <a href="https://github.com/jdf2e/nutui">
25
- <img src="https://img.shields.io/github/contributors/jdf2e/nutui-react" alt="GitHub contributors">
26
- </a>
12
+ <a href="https://github.com/jdf2e/nutui-react">
13
+ <img src="https://img.shields.io/npm/l/@nutui/nutui-react.svg" alt="license"/>
14
+ </a>
15
+ <a href="https://www.npmjs.com/package/@nutui/nutui-react">
16
+ <img src="https://img.shields.io/npm/v/@nutui/nutui-react.svg?style=flat-square">
17
+ </a>
18
+ <a href="https://www.npmjs.com/package/@nutui/nutui-react">
19
+ <img src="https://img.shields.io/npm/dt/@nutui/nutui-react.svg?style=flat-square">
20
+ </a>
21
+ <a href="https://github.com/jdf2e/nutui-react">
22
+ <img src="https://img.shields.io/github/contributors/jdf2e/nutui-react" alt="GitHub contributors">
23
+ </a>
24
+ <a href="https://github.com/jdf2e/nutui-react">
25
+ <img src="https://img.shields.io/github/release-date/jdf2e/nutui-react" alt="GitHub Release Date">
26
+ </a>
27
+ <a href="https://github.com/jdf2e/nutui-react">
28
+ <img src="https://img.shields.io/github/commit-activity/w/jdf2e/nutui-react" alt="GitHub commit activity">
29
+ </a>
27
30
  </p>
28
31
 
32
+ <p align='center'>
33
+ <img src="https://img12.360buyimg.com/imagetools/jfs/t1/202336/18/18586/7437/61b832ccE0b13d53d/18605da7232a5a0e.png" height="180" alt="NutUI-React" /> &nbsp;
34
+ <img src="https://img13.360buyimg.com/imagetools/jfs/t1/102323/22/33163/27773/632a7855E75c9fa02/8c351778f47d24f5.jpg" width="200" alt="NutUI-React" />
35
+ </p>
29
36
 
30
- > Nut[nʌt],源自电影《冰河世纪》里松鼠 Scrat "执迷不悟",一生追求,即便引发大灾难也绝不松手的坚果。
31
37
  ---
32
-
38
+ > Nut[nʌt],源自电影《冰河世纪》里松鼠 Scrat "执迷不悟",一生追求,即便引发大灾难也绝不松手的坚果。
33
39
 
34
40
  ## 特性
35
41
 
36
- * 🚀 70+ 高质量组件(React 1.0 持续开发中),覆盖移动端主流场景
42
+ * 🚀 60+ 高质量组件, 覆盖移动端主流场景
37
43
  * 📖 基于京东APP 10.0 视觉规范
38
44
  * 🍭 支持按需引用
39
45
  * 📖 详尽的文档和示例
40
46
  * 💪 支持 TypeScript
41
47
  * 💪 支持服务端渲染(测试阶段)
42
48
  * 🍭 支持定制主题
43
- * 🍭 单元测试覆盖(1.0 开发中),保障稳定性
49
+ * 🍭 单元测试覆盖率超过80%, 保障稳定性
44
50
  * 📖 提供 Sketch 设计资源
45
51
 
46
- ## 示例 H5 & 小程序
47
-
48
- <p>
49
- <img src="https://img12.360buyimg.com/imagetools/jfs/t1/202336/18/18586/7437/61b832ccE0b13d53d/18605da7232a5a0e.png" height="250" alt="NutUI" />
50
- </p>
51
- <p>
52
- <img src="https://img13.360buyimg.com/imagetools/jfs/t1/102323/22/33163/27773/632a7855E75c9fa02/8c351778f47d24f5.jpg" width="200" alt="NutUI-React" />
53
- </p>
54
52
  ## 构建版本
55
53
 
56
54
  > AMD 环境、Webpack、Vite 等构建工具环境、服务端建议使用 es 版,非模块化环境(如通过 `<script>` 标签直接引用)建议使用 umd 压缩版。
@@ -85,39 +83,49 @@
85
83
  </li>
86
84
  </ul>
87
85
 
88
- [//]: # (## 开发交流)
86
+ ## 开发交流
87
+ | 版本 | 微信群 |内部咚咚群 |
88
+ | --- | --- |--- |
89
+ | [NutUI React](https://github.com/jdf2e/nutui-react/issues) | <img src="https://storage.360buyimg.com/imgtools/17c67beff6-4acf07c0-609c-11ed-a6ef-69df15b605e4.png" width="100" /> 关注后回复「NutUI-React」 | 1025679314 |
90
+ | [NutUI x Taro](https://github.com/jdf2e/nutui/issues) | <img src="https://camo.githubusercontent.com/db4276b4ee4b443158195e943e9e678cb4d2afb7580f70d4d817ef0a90413aec/687474703a2f2f73746f726167652e333630627579696d672e636f6d2f7461726f2d6a642d636f6d2f7374617469632f636f6e746163745f7461726f5f6e757475695f71722e706e67" width="100" /> 关注后回复「NutUI-React」 | 1022545110 |
89
91
 
90
- [//]: # ()
91
- [//]: # (| 版本 | 微信群 |内部咚咚群 |)
92
+ ## 参与共建
92
93
 
93
- [//]: # (| --- | --- |--- |)
94
+ #### NutUI 社区共建倡议
94
95
 
95
- [//]: # (| [NutUI React]&#40;https://github.com/jdf2e/nutui-react/issues&#41; | 回复「NutUI」 | 1022619199)
96
+ [NutUI-React 邀您共建,Contributor 您好](https://github.com/jdf2e/nutui-react/discussions/348)
96
97
 
97
- [//]: # (| [NutUI Vue]&#40;https://github.com/jdf2e/nutui/issues&#41; | <img src="https://nutui.jd.com/3x/3.1.12/vx-code1.png" width="100" /> 关注后回复「NutUI」 | 82957939)
98
+ #### NutUI 贡献代码
98
99
 
99
- [//]: # (| [NutUI x Taro]&#40;https://github.com/jdf2e/nutui/issues&#41; | <img src="https://camo.githubusercontent.com/db4276b4ee4b443158195e943e9e678cb4d2afb7580f70d4d817ef0a90413aec/687474703a2f2f73746f726167652e333630627579696d672e636f6d2f7461726f2d6a642d636f6d2f7374617469632f636f6e746163745f7461726f5f6e757475695f71722e706e67" width="100" /> 关注后回复「NutUI」 | 1022545110 |)
100
+ NutUI 的共建方向主要分为:解决 issue、修复 bug、新增组件、增加国际化、UI 定制、平台适配、跨端扩展等。
100
101
 
101
- [//]: # ()
102
+ 欢迎社区开发者参与共建,在贡献您的代码之前请先阅读 [《NutUI 贡献指南》](https://github.com/jdf2e/nutui-react/discussions/348)
102
103
 
104
+ ## 问题反馈与建议
103
105
 
104
- [//]: # (## 贡献者们)
106
+ [ NutUI 提 Issue](https://nutui.jd.com/nutui-issue-helper/?repo=jdf2e/nutui-react&lang=zh-cn)
105
107
 
106
- [//]: # ()
107
- [//]: # (感谢以下小伙伴们为 NutUI 发展做出的贡献:)
108
+ > 在反馈问题之前,推荐阅读 [《提问的智慧》](https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way)、[《如何向开源社区提问题》](https://github.com/seajs/seajs/issues/545)和[《如何有效地报告 Bug》](http://www.chiark.greenend.org.uk/%7Esgtatham/bugs-cn.html),这样您能够更容易获得理解和帮助。
108
109
 
109
- [//]: # ()
110
- [//]: # (<a href="https://github.com/jdf2e/nutui/graphs/contributors">)
110
+ [参与 NutUI 社区讨论](https://github.com/jdf2e/nutui-react/discussions)
111
111
 
112
- [//]: # ( <img src="https://opencollective.com/nutui/contributors.svg?width=890&button=false" alt="contributors">)
112
+ 如果您有任何想法、疑问或建议,都可以参与社区讨论分享您的观点。
113
113
 
114
- [//]: # (</a>)
114
+ ## 贡献者们
115
115
 
116
- ## 参与共建
116
+ 感谢以下所有给 NutUI 贡献过代码的 [开发者](https://github.com/jdf2e/nutui-react/graphs/contributors)。
117
+
118
+ <a href="https://github.com/jdf2e/nutui-react/graphs/contributors">
119
+ <img src="https://contrib.rocks/image?repo=jdf2e/nutui-react" />
120
+ </a>
121
+
122
+ ## Stargazers
123
+
124
+ [![Stargazers repo roster for @jdf2e/nutui-react](https://reporoster.com/stars/jdf2e/nutui-react)](https://github.com/jdf2e/nutui-react/stargazers)
117
125
 
118
- 非常欢迎社区开发者为 NutUI 贡献代码,在贡献之前请先阅读 [贡献指南](https://nutui.jd.com/#/contributing),参与共建提 [PR](https://github.com/jdf2e/nutui/pulls)。
126
+ ## Forkers
119
127
 
120
- 感谢以下所有给 NutUI 贡献过代码的 [开发者](https://github.com/jdf2e/nutui/graphs/contributors)
128
+ [![Forkers repo roster for @jdf2e/nutui-react](https://reporoster.com/forks/jdf2e/nutui-react)](https://github.com/jdf2e/nutui-react/network/members)
121
129
 
122
130
  ## 开发计划
123
131
 
package/dist/esm/Audio.js CHANGED
@@ -1,5 +1,5 @@
1
- import { A as Audio } from './audio.taro-b42a082b.js';
2
- export { A as default } from './audio.taro-b42a082b.js';
1
+ import { A as Audio } from './audio.taro-b4f71d1b.js';
2
+ export { A as default } from './audio.taro-b4f71d1b.js';
3
3
  import 'react';
4
4
  import '@tarojs/taro';
5
5
  import './icon.taro-1d0d4fb7.js';
@@ -13,5 +13,5 @@ import 'classnames';
13
13
  import './icon-8dc4de10.js';
14
14
  import './configprovider.taro-6c7b3056.js';
15
15
  import './zh-CN-14165629.js';
16
- import './button.taro-7e924b72.js';
16
+ import './button.taro-4ce133b9.js';
17
17
  import './typings-1c5f2628.js';
@@ -1,9 +1,10 @@
1
- import { A as Avatar } from './avatar.taro-deabe88a.js';
2
- export { A as default } from './avatar.taro-deabe88a.js';
1
+ import { A as Avatar } from './avatar.taro-85ced995.js';
2
+ export { A as default } from './avatar.taro-85ced995.js';
3
3
  import 'react';
4
4
  import 'classnames';
5
5
  import './AvatarContext-7153ad2b.js';
6
6
  import './bem-893ad28d.js';
7
7
  import '@bem-react/classname';
8
+ import '@tarojs/components';
8
9
  import './icon.taro-1d0d4fb7.js';
9
10
  import './typings-1c5f2628.js';
package/dist/esm/Badge.js CHANGED
@@ -1,5 +1,5 @@
1
- import { B as Badge } from './badge.taro-38684262.js';
2
- export { B as default } from './badge.taro-38684262.js';
1
+ import { B as Badge } from './badge.taro-9f72d846.js';
2
+ export { B as default } from './badge.taro-9f72d846.js';
3
3
  import 'react';
4
4
  import './icon.taro-1d0d4fb7.js';
5
5
  import './bem-893ad28d.js';
@@ -1,5 +1,5 @@
1
- import { B as Button } from './button.taro-7e924b72.js';
2
- export { B as default } from './button.taro-7e924b72.js';
1
+ import { B as Button } from './button.taro-4ce133b9.js';
2
+ export { B as default } from './button.taro-4ce133b9.js';
3
3
  import 'react';
4
4
  import './icon.taro-1d0d4fb7.js';
5
5
  import './bem-893ad28d.js';
@@ -1,5 +1,5 @@
1
- import { C as Calendar } from './calendar.taro-533b3219.js';
2
- export { C as default } from './calendar.taro-533b3219.js';
1
+ import { C as Calendar } from './calendar.taro-a1f1a7f8.js';
2
+ export { C as default } from './calendar.taro-a1f1a7f8.js';
3
3
  import 'react';
4
4
  import './popup.taro-33d0bbc8.js';
5
5
  import 'react-dom';
@@ -10,7 +10,7 @@ import './bem-893ad28d.js';
10
10
  import '@bem-react/classname';
11
11
  import './icon.taro-1d0d4fb7.js';
12
12
  import './typings-1c5f2628.js';
13
- import './calendaritem.taro-fe5dd4bd.js';
13
+ import './calendaritem.taro-3a12e7f2.js';
14
14
  import './configprovider.taro-6c7b3056.js';
15
15
  import './zh-CN-14165629.js';
16
16
  import './useClientRect-bf69d7b3.js';
@@ -1,5 +1,5 @@
1
- import { C as CalendarItem } from './calendaritem.taro-fe5dd4bd.js';
2
- export { C as default } from './calendaritem.taro-fe5dd4bd.js';
1
+ import { C as CalendarItem } from './calendaritem.taro-3a12e7f2.js';
2
+ export { C as default } from './calendaritem.taro-3a12e7f2.js';
3
3
  import 'react';
4
4
  import 'classnames';
5
5
  import './bem-893ad28d.js';
package/dist/esm/Card.js CHANGED
@@ -1,9 +1,9 @@
1
- import { C as Card } from './card.taro-59f65b66.js';
2
- export { C as default } from './card.taro-59f65b66.js';
1
+ import { C as Card } from './card.taro-a530dfb3.js';
2
+ export { C as default } from './card.taro-a530dfb3.js';
3
3
  import 'react';
4
4
  import './price.taro-8801462e.js';
5
5
  import './bem-893ad28d.js';
6
6
  import '@bem-react/classname';
7
- import './tag.taro-84d40117.js';
7
+ import './tag.taro-bd900990.js';
8
8
  import './icon.taro-1d0d4fb7.js';
9
9
  import './typings-1c5f2628.js';
@@ -1,5 +1,5 @@
1
- import { C as Checkbox } from './checkbox.taro-d8656076.js';
2
- export { C as default } from './checkbox.taro-d8656076.js';
1
+ import { C as Checkbox } from './checkbox.taro-0bda9796.js';
2
+ export { C as default } from './checkbox.taro-0bda9796.js';
3
3
  import 'react';
4
4
  import './icon.taro-1d0d4fb7.js';
5
5
  import './bem-893ad28d.js';
@@ -1,5 +1,5 @@
1
- import { a as CheckboxGroup } from './checkbox.taro-d8656076.js';
2
- export { a as default } from './checkbox.taro-d8656076.js';
1
+ import { a as CheckboxGroup } from './checkbox.taro-0bda9796.js';
2
+ export { a as default } from './checkbox.taro-0bda9796.js';
3
3
  import 'react';
4
4
  import './icon.taro-1d0d4fb7.js';
5
5
  import './bem-893ad28d.js';
package/dist/esm/Col.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as Col } from './col.taro-2a437387.js';
2
- export { C as default } from './col.taro-2a437387.js';
1
+ import { C as Col } from './col.taro-b61c7cba.js';
2
+ export { C as default } from './col.taro-b61c7cba.js';
3
3
  import 'react';
4
4
  import './UserContext-be8097d2.js';
@@ -1,8 +1,8 @@
1
- import { D as Dialog } from './dialog.taro-0c35b35f.js';
2
- export { D as default } from './dialog.taro-0c35b35f.js';
1
+ import { D as Dialog } from './dialog.taro-17e19e5e.js';
2
+ export { D as default } from './dialog.taro-17e19e5e.js';
3
3
  import 'react';
4
4
  import 'classnames';
5
- import './button.taro-7e924b72.js';
5
+ import './button.taro-4ce133b9.js';
6
6
  import './icon.taro-1d0d4fb7.js';
7
7
  import './bem-893ad28d.js';
8
8
  import '@bem-react/classname';
@@ -1,5 +1,5 @@
1
- import { I as ImagePreview } from './imagepreview.taro-1199e977.js';
2
- export { I as default } from './imagepreview.taro-1199e977.js';
1
+ import { I as ImagePreview } from './imagepreview.taro-69d47ab0.js';
2
+ export { I as default } from './imagepreview.taro-69d47ab0.js';
3
3
  import 'react';
4
4
  import './popup.taro-33d0bbc8.js';
5
5
  import 'react-dom';
@@ -13,4 +13,4 @@ import './typings-1c5f2628.js';
13
13
  import './swiper.taro-f314d67a.js';
14
14
  import '@tarojs/taro';
15
15
  import './UserContext-b4181162.js';
16
- import './swiperitem-d00e7513.js';
16
+ import './swiperitem-86a3578a.js';
@@ -1,5 +1,5 @@
1
- import { I as Infiniteloading } from './infiniteloading.taro-b95e62bf.js';
2
- export { I as default } from './infiniteloading.taro-b95e62bf.js';
1
+ import { I as Infiniteloading } from './infiniteloading.taro-9701755f.js';
2
+ export { I as default } from './infiniteloading.taro-9701755f.js';
3
3
  import 'react';
4
4
  import 'classnames';
5
5
  import '@tarojs/components';
package/dist/esm/Input.js CHANGED
@@ -1,5 +1,5 @@
1
- import { I as Input } from './input.taro-cc46bbc3.js';
2
- export { I as default } from './input.taro-cc46bbc3.js';
1
+ import { I as Input } from './input.taro-14380bc6.js';
2
+ export { I as default } from './input.taro-14380bc6.js';
3
3
  import 'react';
4
4
  import './icon.taro-1d0d4fb7.js';
5
5
  import './bem-893ad28d.js';
@@ -1,5 +1,5 @@
1
- import { M as MenuItem } from './menuitem.taro-06a135a5.js';
2
- export { M as default } from './menuitem.taro-06a135a5.js';
1
+ import { M as MenuItem } from './menuitem.taro-bb55f482.js';
2
+ export { M as default } from './menuitem.taro-bb55f482.js';
3
3
  import 'react';
4
4
  import 'classnames';
5
5
  import 'react-transition-group';
package/dist/esm/Radio.js CHANGED
@@ -1,4 +1,4 @@
1
- export { R as default } from './index.taro-c092d216.js';
1
+ export { R as default } from './index.taro-a36f96fb.js';
2
2
  import 'react';
3
3
  import './icon.taro-1d0d4fb7.js';
4
4
  import './bem-893ad28d.js';
@@ -1,5 +1,5 @@
1
- import { a as RadioGroup } from './index.taro-c092d216.js';
2
- export { a as default } from './index.taro-c092d216.js';
1
+ import { a as RadioGroup } from './index.taro-a36f96fb.js';
2
+ export { a as default } from './index.taro-a36f96fb.js';
3
3
  import 'react';
4
4
  import './icon.taro-1d0d4fb7.js';
5
5
  import './bem-893ad28d.js';
package/dist/esm/Rate.js CHANGED
@@ -1,5 +1,5 @@
1
- import { R as Rate } from './rate.taro-69c85081.js';
2
- export { R as default } from './rate.taro-69c85081.js';
1
+ import { R as Rate } from './rate.taro-10197384.js';
2
+ export { R as default } from './rate.taro-10197384.js';
3
3
  import 'react';
4
4
  import './bem-893ad28d.js';
5
5
  import '@bem-react/classname';
package/dist/esm/Row.js CHANGED
@@ -1,4 +1,4 @@
1
- import { R as Row } from './row.taro-cec13a7e.js';
2
- export { R as default } from './row.taro-cec13a7e.js';
1
+ import { R as Row } from './row.taro-37a895de.js';
2
+ export { R as default } from './row.taro-37a895de.js';
3
3
  import 'react';
4
4
  import './UserContext-be8097d2.js';
@@ -1,8 +1,8 @@
1
- import { S as Signature } from './signature.taro-57f8de06.js';
2
- export { S as default } from './signature.taro-57f8de06.js';
1
+ import { S as Signature } from './signature.taro-6589435b.js';
2
+ export { S as default } from './signature.taro-6589435b.js';
3
3
  import 'react';
4
4
  import '@tarojs/taro';
5
- import './button.taro-7e924b72.js';
5
+ import './button.taro-4ce133b9.js';
6
6
  import './icon.taro-1d0d4fb7.js';
7
7
  import './bem-893ad28d.js';
8
8
  import '@bem-react/classname';
@@ -1,10 +1,11 @@
1
- import { S as Skeleton } from './skeleton.taro-acca102c.js';
2
- export { S as default } from './skeleton.taro-acca102c.js';
1
+ import { S as Skeleton } from './skeleton.taro-853ce460.js';
2
+ export { S as default } from './skeleton.taro-853ce460.js';
3
3
  import 'react';
4
4
  import 'classnames';
5
- import './avatar.taro-deabe88a.js';
5
+ import './avatar.taro-85ced995.js';
6
6
  import './AvatarContext-7153ad2b.js';
7
7
  import './bem-893ad28d.js';
8
8
  import '@bem-react/classname';
9
+ import '@tarojs/components';
9
10
  import './icon.taro-1d0d4fb7.js';
10
11
  import './typings-1c5f2628.js';
@@ -1,5 +1,5 @@
1
- import { S as SwiperItem } from './swiperitem-d00e7513.js';
2
- export { S as default } from './swiperitem-d00e7513.js';
1
+ import { S as SwiperItem } from './swiperitem-86a3578a.js';
2
+ export { S as default } from './swiperitem-86a3578a.js';
3
3
  import 'react';
4
4
  import 'classnames';
5
5
  import './UserContext-b4181162.js';
@@ -1,7 +1,7 @@
1
- import { T as TabbarItem } from './tabbaritem.taro-fb90f659.js';
2
- export { T as default } from './tabbaritem.taro-fb90f659.js';
1
+ import { T as TabbarItem } from './tabbaritem.taro-8dfb8055.js';
2
+ export { T as default } from './tabbaritem.taro-8dfb8055.js';
3
3
  import 'react';
4
- import 'react-router-dom';
4
+ import '@tarojs/taro';
5
5
  import './bem-893ad28d.js';
6
6
  import '@bem-react/classname';
7
7
  import './icon.taro-1d0d4fb7.js';
package/dist/esm/Tag.js CHANGED
@@ -1,5 +1,5 @@
1
- import { T as Tag } from './tag.taro-84d40117.js';
2
- export { T as default } from './tag.taro-84d40117.js';
1
+ import { T as Tag } from './tag.taro-bd900990.js';
2
+ export { T as default } from './tag.taro-bd900990.js';
3
3
  import 'react';
4
4
  import './icon.taro-1d0d4fb7.js';
5
5
  import './bem-893ad28d.js';
@@ -1,11 +1,11 @@
1
- import { U as Uploader } from './uploader.taro-a03bb003.js';
2
- export { U as default } from './uploader.taro-a03bb003.js';
1
+ import { U as Uploader } from './uploader.taro-2e16bff6.js';
2
+ export { U as default } from './uploader.taro-2e16bff6.js';
3
3
  import 'react';
4
4
  import 'classnames';
5
5
  import './icon.taro-1d0d4fb7.js';
6
6
  import './bem-893ad28d.js';
7
7
  import '@bem-react/classname';
8
- import './button.taro-7e924b72.js';
8
+ import './button.taro-4ce133b9.js';
9
9
  import './typings-1c5f2628.js';
10
10
  import './progress.taro-623bc807.js';
11
11
  import './icon-8dc4de10.js';
@@ -8,7 +8,7 @@ import React__default, { useState, useRef } from 'react';
8
8
  import Taro from '@tarojs/taro';
9
9
  import { I as Icon } from './icon.taro-1d0d4fb7.js';
10
10
  import { R as Range } from './range.taro-4232e6a7.js';
11
- import { B as Button } from './button.taro-7e924b72.js';
11
+ import { B as Button } from './button.taro-4ce133b9.js';
12
12
  import { c as cn } from './bem-893ad28d.js';
13
13
  import { u as useConfig } from './configprovider.taro-6c7b3056.js';
14
14
  import { C as ComponentDefaults } from './typings-1c5f2628.js';
@@ -1,23 +1,24 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
- var _excluded = ["children", "prefixCls", "size", "shape", "bgColor", "color", "url", "alt", "icon", "className", "style", "activeAvatar", "onActiveAvatar", "onError", "iconClassPrefix", "iconFontClassName"];
4
+ var _excluded = ["children", "prefixCls", "size", "shape", "bgColor", "color", "url", "icon", "iconSize", "className", "style", "activeAvatar", "onActiveAvatar", "onError", "iconClassPrefix", "iconFontClassName"];
5
5
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
6
6
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
7
7
  import React__default, { useState, useRef, useContext, useEffect } from 'react';
8
8
  import classNames from 'classnames';
9
9
  import { A as AvatarContext } from './AvatarContext-7153ad2b.js';
10
10
  import { c as cn } from './bem-893ad28d.js';
11
+ import { Image } from '@tarojs/components';
11
12
  import { I as Icon } from './icon.taro-1d0d4fb7.js';
12
13
  import { C as ComponentDefaults } from './typings-1c5f2628.js';
13
14
  var defaultProps = _objectSpread(_objectSpread({}, ComponentDefaults), {}, {
14
15
  size: '',
15
16
  icon: '',
17
+ iconSize: '',
16
18
  bgColor: '#eee',
17
19
  color: '#666',
18
20
  prefixCls: 'nut-avatar',
19
- url: '',
20
- alt: ''
21
+ url: ''
21
22
  });
22
23
  var Avatar = function Avatar(props) {
23
24
  var _parent$propAvatarGro, _parent$propAvatarGro2, _classNames, _parent$propAvatarGro3, _parent$propAvatarGro4, _parent$propAvatarGro5, _parent$propAvatarGro6, _parent$propAvatarGro7, _parent$propAvatarGro9, _parent$propAvatarGro10, _parent$propAvatarGro11, _parent$propAvatarGro12, _parent$propAvatarGro13, _parent$propAvatarGro14, _parent$propAvatarGro15, _parent$propAvatarGro16;
@@ -29,8 +30,8 @@ var Avatar = function Avatar(props) {
29
30
  bgColor = _defaultProps$props.bgColor,
30
31
  color = _defaultProps$props.color,
31
32
  url = _defaultProps$props.url,
32
- alt = _defaultProps$props.alt,
33
33
  icon = _defaultProps$props.icon,
34
+ iconSize = _defaultProps$props.iconSize,
34
35
  className = _defaultProps$props.className,
35
36
  style = _defaultProps$props.style,
36
37
  activeAvatar = _defaultProps$props.activeAvatar,
@@ -108,15 +109,16 @@ var Avatar = function Avatar(props) {
108
109
  style: !showMax ? styles : maxStyles,
109
110
  onClick: clickAvatar,
110
111
  ref: avatarRef
111
- }), (!(parent !== null && parent !== void 0 && (_parent$propAvatarGro12 = parent.propAvatarGroup) !== null && _parent$propAvatarGro12 !== void 0 && _parent$propAvatarGro12.maxCount) || avatarIndex <= (parent === null || parent === void 0 ? void 0 : (_parent$propAvatarGro13 = parent.propAvatarGroup) === null || _parent$propAvatarGro13 === void 0 ? void 0 : _parent$propAvatarGro13.maxCount)) && React__default.createElement(React__default.Fragment, null, url && React__default.createElement("img", {
112
+ }), (!(parent !== null && parent !== void 0 && (_parent$propAvatarGro12 = parent.propAvatarGroup) !== null && _parent$propAvatarGro12 !== void 0 && _parent$propAvatarGro12.maxCount) || avatarIndex <= (parent === null || parent === void 0 ? void 0 : (_parent$propAvatarGro13 = parent.propAvatarGroup) === null || _parent$propAvatarGro13 === void 0 ? void 0 : _parent$propAvatarGro13.maxCount)) && React__default.createElement(React__default.Fragment, null, url && React__default.createElement(Image, {
113
+ className: "avatar-img",
112
114
  src: url,
113
- alt: alt,
114
115
  onError: errorEvent
115
116
  }), icon && React__default.createElement(Icon, {
116
117
  classPrefix: iconClassPrefix,
117
118
  fontClassName: iconFontClassName,
118
119
  className: "icon",
119
- name: iconStyles
120
+ name: iconStyles,
121
+ size: iconSize
120
122
  }), children && React__default.createElement("span", {
121
123
  className: "text"
122
124
  }, children)), showMax && React__default.createElement("div", {
@@ -16,6 +16,8 @@ var defaultProps = _objectSpread(_objectSpread({}, ComponentDefaults), {}, {
16
16
  });
17
17
  var Badge = function Badge(props) {
18
18
  var _defaultProps$props = _objectSpread(_objectSpread({}, defaultProps), props),
19
+ className = _defaultProps$props.className,
20
+ style = _defaultProps$props.style,
19
21
  children = _defaultProps$props.children,
20
22
  dot = _defaultProps$props.dot,
21
23
  top = _defaultProps$props.top,
@@ -43,7 +45,8 @@ var Badge = function Badge(props) {
43
45
  return style;
44
46
  };
45
47
  return React__default.createElement("div", {
46
- className: "nut-badge"
48
+ className: "nut-badge ".concat(className),
49
+ style: style
47
50
  }, icons !== '' && React__default.createElement("div", {
48
51
  className: "slot-icons"
49
52
  }, React__default.createElement(Icon, {
@@ -77,27 +77,32 @@ var Button = function Button(props) {
77
77
  onClick(e);
78
78
  }
79
79
  };
80
- return React__default.createElement("div", _objectSpread(_objectSpread({
81
- className: "".concat(btnName, " ").concat(className),
82
- style: _objectSpread(_objectSpread({}, btnStyle), style)
83
- }, rest), {}, {
84
- onClick: function onClick(e) {
85
- return handleClick(e);
86
- }
87
- }), React__default.createElement("div", {
88
- className: "nut-button__warp",
89
- style: getStyle()
90
- }, loading && React__default.createElement(Icon, {
91
- classPrefix: iconClassPrefix,
92
- fontClassName: iconFontClassName,
93
- name: "loading"
94
- }), !loading && icon ? React__default.createElement(Icon, {
95
- classPrefix: iconClassPrefix,
96
- fontClassName: iconFontClassName,
97
- name: icon
98
- }) : '', React__default.createElement("div", {
99
- className: "text"
100
- }, children)));
80
+ return (
81
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
82
+ // @ts-ignore
83
+ // eslint-disable-next-line react/button-has-type
84
+ React__default.createElement("button", _objectSpread(_objectSpread({
85
+ className: "".concat(btnName, " ").concat(className),
86
+ style: _objectSpread(_objectSpread({}, btnStyle), style)
87
+ }, rest), {}, {
88
+ onClick: function onClick(e) {
89
+ return handleClick(e);
90
+ }
91
+ }), React__default.createElement("div", {
92
+ className: "nut-button__warp",
93
+ style: getStyle()
94
+ }, loading && React__default.createElement(Icon, {
95
+ classPrefix: iconClassPrefix,
96
+ fontClassName: iconFontClassName,
97
+ name: "loading"
98
+ }), !loading && icon ? React__default.createElement(Icon, {
99
+ classPrefix: iconClassPrefix,
100
+ fontClassName: iconFontClassName,
101
+ name: icon
102
+ }) : '', children && React__default.createElement("div", {
103
+ className: icon || loading ? 'text' : ''
104
+ }, children)))
105
+ );
101
106
  };
102
107
  Button.defaultProps = defaultProps;
103
108
  Button.displayName = 'NutButton';
@@ -3,7 +3,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
3
3
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
4
  import React__default from 'react';
5
5
  import { P as Popup } from './popup.taro-33d0bbc8.js';
6
- import { U as Utils, C as CalendarItem } from './calendaritem.taro-fe5dd4bd.js';
6
+ import { U as Utils, C as CalendarItem } from './calendaritem.taro-3a12e7f2.js';
7
7
  import { u as useConfig } from './configprovider.taro-6c7b3056.js';
8
8
  var defaultProps = {
9
9
  type: 'one',