@nutui/nutui-react 1.2.3-beta.2 → 1.3.0-beta.5

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 (214) hide show
  1. package/dist/esm/Avatar.js +7 -5
  2. package/dist/esm/CalendarItem.js +19 -15
  3. package/dist/esm/CheckboxGroup.js +0 -1
  4. package/dist/esm/Drag.js +1 -1
  5. package/dist/esm/Icon/style/index.js +1 -0
  6. package/dist/esm/Icon.js +2 -2
  7. package/dist/esm/Infiniteloading.js +6 -5
  8. package/dist/esm/Input.js +8 -2
  9. package/dist/esm/InputNumber.js +11 -11
  10. package/dist/esm/NoticeBar.js +67 -28
  11. package/dist/esm/Notify.js +17 -3
  12. package/dist/esm/Picker.js +9 -4
  13. package/dist/esm/Popover.js +56 -72
  14. package/dist/esm/Price.js +14 -3
  15. package/dist/esm/Progress.js +1 -1
  16. package/dist/esm/Range.js +9 -3
  17. package/dist/esm/ShortPassword.js +22 -17
  18. package/dist/esm/TabbarItem.js +1 -1
  19. package/dist/esm/Tag.js +1 -1
  20. package/dist/esm/TextArea.js +3 -0
  21. package/dist/esm/Toast.js +22 -12
  22. package/dist/esm/Uploader.js +16 -6
  23. package/dist/esm/{icon-62bd7379.js → icon-8dc4de10.js} +9 -9
  24. package/dist/locales/base.js +1 -1
  25. package/dist/locales/en-US.js +1 -1
  26. package/dist/locales/id-ID.js +1 -1
  27. package/dist/locales/zh-CN.js +1 -1
  28. package/dist/locales/zh-TW.js +1 -1
  29. package/dist/nutui.react.es.js +240 -173
  30. package/dist/nutui.react.umd.js +16771 -28
  31. package/dist/packages/col/col.scss +2 -2
  32. package/dist/packages/collapseitem/collapseitem.scss +1 -2
  33. package/dist/packages/icon/icon.scss +104 -12
  34. package/dist/packages/noticebar/noticebar.scss +31 -15
  35. package/dist/packages/notify/notify.scss +9 -0
  36. package/dist/packages/popover/popover.scss +205 -83
  37. package/dist/packages/rate/rate.scss +14 -13
  38. package/dist/packages/toast/toast.scss +16 -13
  39. package/dist/style.css +1 -1
  40. package/dist/style.es.js +1 -1
  41. package/dist/styles/animation/icon.scss +245 -0
  42. package/dist/styles/animation/index.scss +1 -0
  43. package/dist/styles/font/config.json +169 -0
  44. package/dist/styles/font/demo_index.html +210 -3
  45. package/dist/styles/font/iconfont.css +39 -3
  46. package/dist/styles/font/iconfont.js +32 -32
  47. package/dist/styles/font/iconfont.json +63 -0
  48. package/dist/styles/font/iconfont.ttf +0 -0
  49. package/dist/styles/font/iconfont.woff +0 -0
  50. package/dist/styles/font/iconfont.woff2 +0 -0
  51. package/dist/styles/variables.scss +23 -8
  52. package/dist/types/actionsheet/actionsheet.taro.d.ts +20 -0
  53. package/dist/types/actionsheet/index.taro.d.ts +2 -0
  54. package/dist/types/address/address.taro.d.ts +34 -0
  55. package/dist/types/address/index.taro.d.ts +2 -0
  56. package/dist/types/animatingnumbers/animatingnumbers.taro.d.ts +12 -0
  57. package/dist/types/animatingnumbers/countup.taro.d.ts +11 -0
  58. package/dist/types/animatingnumbers/index.taro.d.ts +2 -0
  59. package/dist/types/avatar/avatar.taro.d.ts +17 -0
  60. package/dist/types/avatar/index.taro.d.ts +2 -0
  61. package/dist/types/avatargroup/index.taro.d.ts +2 -0
  62. package/dist/types/backtop/backtop.taro.d.ts +15 -0
  63. package/dist/types/backtop/index.taro.d.ts +2 -0
  64. package/dist/types/badge/badge.taro.d.ts +14 -0
  65. package/dist/types/badge/index.taro.d.ts +2 -0
  66. package/dist/types/barrage/barrage.taro.d.ts +12 -0
  67. package/dist/types/barrage/index.taro.d.ts +2 -0
  68. package/dist/types/button/button.taro.d.ts +20 -0
  69. package/dist/types/button/index.taro.d.ts +2 -0
  70. package/dist/types/calendar/calendar.taro.d.ts +14 -0
  71. package/dist/types/calendar/index.taro.d.ts +2 -0
  72. package/dist/types/calendaritem/calendaritem.taro.d.ts +17 -0
  73. package/dist/types/calendaritem/index.taro.d.ts +2 -0
  74. package/dist/types/card/card.taro.d.ts +17 -0
  75. package/dist/types/card/index.taro.d.ts +2 -0
  76. package/dist/types/cell/cell.taro.d.ts +20 -0
  77. package/dist/types/cell/index.taro.d.ts +2 -0
  78. package/dist/types/cellgroup/cellgroup.taro.d.ts +10 -0
  79. package/dist/types/cellgroup/index.taro.d.ts +2 -0
  80. package/dist/types/checkbox/checkbox.taro.d.ts +19 -0
  81. package/dist/types/checkbox/index.taro.d.ts +2 -0
  82. package/dist/types/checkboxgroup/checkboxgroup.taro.d.ts +8 -0
  83. package/dist/types/checkboxgroup/index.taro.d.ts +2 -0
  84. package/dist/types/circleprogress/circleprogress.taro.d.ts +15 -0
  85. package/dist/types/circleprogress/index.taro.d.ts +2 -0
  86. package/dist/types/col/col.taro.d.ts +10 -0
  87. package/dist/types/col/index.taro.d.ts +2 -0
  88. package/dist/types/collapse/collapse.taro.d.ts +12 -0
  89. package/dist/types/collapse/index.taro.d.ts +2 -0
  90. package/dist/types/collapseitem/index.taro.d.ts +2 -0
  91. package/dist/types/configprovider/configprovider.taro.d.ts +12 -0
  92. package/dist/types/configprovider/index.taro.d.ts +2 -0
  93. package/dist/types/countdown/countdown.taro.d.ts +15 -0
  94. package/dist/types/countdown/index.taro.d.ts +2 -0
  95. package/dist/types/datepicker/datepicker.taro.d.ts +27 -0
  96. package/dist/types/datepicker/index.taro.d.ts +2 -0
  97. package/dist/types/dialog/dialog.taro.d.ts +2 -0
  98. package/dist/types/dialog/index.taro.d.ts +2 -0
  99. package/dist/types/divider/divider.taro.d.ts +12 -0
  100. package/dist/types/divider/index.taro.d.ts +2 -0
  101. package/dist/types/drag/drag.taro.d.ts +14 -0
  102. package/dist/types/drag/index.taro.d.ts +2 -0
  103. package/dist/types/elevator/elevator.taro.d.ts +22 -0
  104. package/dist/types/elevator/index.taro.d.ts +2 -0
  105. package/dist/types/empty/empty.taro.d.ts +8 -0
  106. package/dist/types/empty/index.taro.d.ts +2 -0
  107. package/dist/types/fixednav/fixednav.taro.d.ts +22 -0
  108. package/dist/types/fixednav/index.taro.d.ts +2 -0
  109. package/dist/types/icon/icon.d.ts +9 -3
  110. package/dist/types/icon/icon.taro.d.ts +19 -0
  111. package/dist/types/icon/index.taro.d.ts +2 -0
  112. package/dist/types/indicator/index.taro.d.ts +2 -0
  113. package/dist/types/indicator/indicator.taro.d.ts +10 -0
  114. package/dist/types/infiniteloading/index.taro.d.ts +2 -0
  115. package/dist/types/infiniteloading/infiniteloading.taro.d.ts +20 -0
  116. package/dist/types/input/index.taro.d.ts +2 -0
  117. package/dist/types/input/input.taro.d.ts +57 -0
  118. package/dist/types/inputnumber/index.taro.d.ts +2 -0
  119. package/dist/types/inputnumber/inputnumber.taro.d.ts +22 -0
  120. package/dist/types/layout/index.taro.d.ts +2 -0
  121. package/dist/types/layout/layout.taro.d.ts +4 -0
  122. package/dist/types/navbar/index.taro.d.ts +2 -0
  123. package/dist/types/navbar/navbar.taro.d.ts +21 -0
  124. package/dist/types/noticebar/demo.d.ts +1 -0
  125. package/dist/types/noticebar/index.taro.d.ts +2 -0
  126. package/dist/types/noticebar/noticebar.d.ts +1 -1
  127. package/dist/types/noticebar/noticebar.taro.d.ts +23 -0
  128. package/dist/types/notify/Notification.d.ts +8 -7
  129. package/dist/types/notify/index.taro.d.ts +2 -0
  130. package/dist/types/notify/notify.taro.d.ts +10 -0
  131. package/dist/types/numberkeyboard/index.taro.d.ts +2 -0
  132. package/dist/types/numberkeyboard/numberkeyboard.taro.d.ts +20 -0
  133. package/dist/types/overlay/index.taro.d.ts +2 -0
  134. package/dist/types/overlay/overlay.taro.d.ts +12 -0
  135. package/dist/types/pagination/index.taro.d.ts +2 -0
  136. package/dist/types/pagination/pagination.taro.d.ts +19 -0
  137. package/dist/types/picker/index.taro.d.ts +2 -0
  138. package/dist/types/picker/picker.d.ts +1 -0
  139. package/dist/types/picker/picker.taro.d.ts +24 -0
  140. package/dist/types/picker/pickerSlot.d.ts +1 -0
  141. package/dist/types/popover/__tests__/popover.spec.d.ts +1 -0
  142. package/dist/types/popover/index.taro.d.ts +2 -0
  143. package/dist/types/popover/popover.d.ts +14 -7
  144. package/dist/types/popover/popover.taro.d.ts +21 -0
  145. package/dist/types/popup/index.taro.d.ts +2 -0
  146. package/dist/types/popup/popup.taro.d.ts +25 -0
  147. package/dist/types/price/index.taro.d.ts +2 -0
  148. package/dist/types/price/price.taro.d.ts +11 -0
  149. package/dist/types/progress/index.taro.d.ts +2 -0
  150. package/dist/types/progress/progress.taro.d.ts +26 -0
  151. package/dist/types/radio/index.taro.d.ts +2 -0
  152. package/dist/types/radio/radio.taro.d.ts +21 -0
  153. package/dist/types/radiogroup/index.taro.d.ts +2 -0
  154. package/dist/types/range/index.taro.d.ts +2 -0
  155. package/dist/types/range/range.taro.d.ts +25 -0
  156. package/dist/types/rate/index.taro.d.ts +2 -0
  157. package/dist/types/rate/rate.taro.d.ts +17 -0
  158. package/dist/types/row/index.taro.d.ts +2 -0
  159. package/dist/types/row/row.taro.d.ts +12 -0
  160. package/dist/types/searchbar/index.taro.d.ts +2 -0
  161. package/dist/types/searchbar/searchbar.taro.d.ts +60 -0
  162. package/dist/types/shortpassword/_test_/index.spec.d.ts +1 -0
  163. package/dist/types/shortpassword/index.taro.d.ts +2 -0
  164. package/dist/types/shortpassword/shortpassword.d.ts +3 -3
  165. package/dist/types/shortpassword/shortpassword.taro.d.ts +21 -0
  166. package/dist/types/sidenavbar/index.taro.d.ts +2 -0
  167. package/dist/types/sidenavbar/sidenavbar.taro.d.ts +3 -0
  168. package/dist/types/sidenavbaritem/index.taro.d.ts +2 -0
  169. package/dist/types/sidenavbaritem/sidenavbaritem.taro.d.ts +3 -0
  170. package/dist/types/signature/index.taro.d.ts +2 -0
  171. package/dist/types/signature/signature.taro.d.ts +11 -0
  172. package/dist/types/skeleton/index.taro.d.ts +2 -0
  173. package/dist/types/skeleton/skeleton.taro.d.ts +19 -0
  174. package/dist/types/step/index.taro.d.ts +2 -0
  175. package/dist/types/steps/index.taro.d.ts +2 -0
  176. package/dist/types/steps/steps.taro.d.ts +10 -0
  177. package/dist/types/subsidenavbar/index.taro.d.ts +2 -0
  178. package/dist/types/subsidenavbar/subsidenavbar.taro.d.ts +3 -0
  179. package/dist/types/swiper/index.taro.d.ts +2 -0
  180. package/dist/types/swiper/swiper.taro.d.ts +27 -0
  181. package/dist/types/swiperitem/index.taro.d.ts +2 -0
  182. package/dist/types/switch/index.taro.d.ts +2 -0
  183. package/dist/types/switch/switch.taro.d.ts +14 -0
  184. package/dist/types/tabbar/index.taro.d.ts +2 -0
  185. package/dist/types/tabbar/tabbar.taro.d.ts +14 -0
  186. package/dist/types/tabbaritem/index.taro.d.ts +2 -0
  187. package/dist/types/tabbaritem/tabbaritem.taro.d.ts +17 -0
  188. package/dist/types/table/index.taro.d.ts +2 -0
  189. package/dist/types/table/table.taro.d.ts +3 -0
  190. package/dist/types/tabpane/index.taro.d.ts +2 -0
  191. package/dist/types/tabpane/tabpane.taro.d.ts +10 -0
  192. package/dist/types/tabs/index.taro.d.ts +2 -0
  193. package/dist/types/tabs/tabs.taro.d.ts +30 -0
  194. package/dist/types/tag/index.taro.d.ts +2 -0
  195. package/dist/types/tag/tag.taro.d.ts +16 -0
  196. package/dist/types/textarea/index.taro.d.ts +2 -0
  197. package/dist/types/textarea/textarea.taro.d.ts +18 -0
  198. package/dist/types/timedetail/index.taro.d.ts +2 -0
  199. package/dist/types/timedetail/timedetail.taro.d.ts +13 -0
  200. package/dist/types/timepannel/index.taro.d.ts +2 -0
  201. package/dist/types/timepannel/timepannel.taro.d.ts +8 -0
  202. package/dist/types/timeselect/index.taro.d.ts +2 -0
  203. package/dist/types/timeselect/timeselect.taro.d.ts +21 -0
  204. package/dist/types/toast/Notification.d.ts +6 -4
  205. package/dist/types/toast/__test__/toast.spec.d.ts +1 -0
  206. package/dist/types/toast/index.taro.d.ts +2 -0
  207. package/dist/types/toast/toast.taro.d.ts +11 -0
  208. package/dist/types/uploader/index.taro.d.ts +2 -0
  209. package/dist/types/uploader/uploader.d.ts +2 -2
  210. package/dist/types/uploader/uploader.taro.d.ts +68 -0
  211. package/dist/types/video/index.taro.d.ts +2 -0
  212. package/dist/types/virtuallist/index.taro.d.ts +2 -0
  213. package/dist/types/virtuallist/virtuallist.taro.d.ts +3 -0
  214. package/package.json +22 -4
@@ -1,6 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["name", "size", "classPrefix", "color", "tag", "children", "className", "fontClassName", "style", "click"];
3
+ var _excluded = ["name", "size", "classPrefix", "color", "tag", "children", "className", "fontClassName", "style", "onClick"];
4
4
 
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
 
@@ -11,11 +11,11 @@ import { c as cn } from './bem-893ad28d.js';
11
11
  var defaultProps = {
12
12
  name: '',
13
13
  size: '',
14
- classPrefix: 'nutui-icon',
14
+ classPrefix: 'nut-icon',
15
15
  fontClassName: 'nutui-iconfont',
16
16
  color: '',
17
17
  tag: 'i',
18
- click: function click(e) {},
18
+ onClick: function onClick(e) {},
19
19
  className: ''
20
20
  };
21
21
 
@@ -23,7 +23,7 @@ function pxCheck(value) {
23
23
  return Number.isNaN(Number(value)) ? String(value) : "".concat(value, "px");
24
24
  }
25
25
 
26
- var Icon = function Icon(props) {
26
+ function Icon(props) {
27
27
  var _defaultProps$props = _objectSpread(_objectSpread({}, defaultProps), props),
28
28
  name = _defaultProps$props.name,
29
29
  size = _defaultProps$props.size,
@@ -34,7 +34,7 @@ var Icon = function Icon(props) {
34
34
  className = _defaultProps$props.className,
35
35
  fontClassName = _defaultProps$props.fontClassName,
36
36
  style = _defaultProps$props.style,
37
- click = _defaultProps$props.click,
37
+ onClick = _defaultProps$props.onClick,
38
38
  rest = _objectWithoutProperties(_defaultProps$props, _excluded);
39
39
 
40
40
  var isImage = name ? name.indexOf('/') !== -1 : false;
@@ -42,8 +42,8 @@ var Icon = function Icon(props) {
42
42
  var b = cn('icon');
43
43
 
44
44
  var handleClick = function handleClick(e) {
45
- if (props.click) {
46
- props.click(e);
45
+ if (onClick) {
46
+ onClick(e);
47
47
  }
48
48
  };
49
49
 
@@ -55,7 +55,7 @@ var Icon = function Icon(props) {
55
55
  };
56
56
 
57
57
  return React__default.createElement(type, _objectSpread(_objectSpread({
58
- className: isImage ? "".concat(className || '', " ").concat(b('img')) : "".concat(className || '', " ").concat(fontClassName, " ").concat(b(null, [classPrefix]), " nut-icon-").concat(name, " "),
58
+ className: isImage ? "".concat(b('img'), " ").concat(className || '', " ") : "".concat(fontClassName, " ").concat(b(null), " ").concat(classPrefix, "-").concat(name, " ").concat(className || ''),
59
59
  style: _objectSpread({
60
60
  color: color,
61
61
  fontSize: pxCheck(size),
@@ -65,7 +65,7 @@ var Icon = function Icon(props) {
65
65
  }, rest), {}, {
66
66
  onClick: handleClick
67
67
  }, hasSrc()), children);
68
- };
68
+ }
69
69
 
70
70
  Icon.defaultProps = defaultProps;
71
71
  Icon.displayName = 'NutIcon';
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.2.3-beta.1 Wed Aug 17 2022 09:36:02 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.3.0-beta.5 Wed Aug 24 2022 15:57:04 GMT+0800 (China Standard Time)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.2.3-beta.1 Wed Aug 17 2022 09:36:02 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.3.0-beta.5 Wed Aug 24 2022 15:57:04 GMT+0800 (China Standard Time)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.2.3-beta.1 Wed Aug 17 2022 09:36:02 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.3.0-beta.5 Wed Aug 24 2022 15:57:04 GMT+0800 (China Standard Time)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.2.3-beta.1 Wed Aug 17 2022 09:36:02 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.3.0-beta.5 Wed Aug 24 2022 15:57:04 GMT+0800 (China Standard Time)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.2.3-beta.1 Wed Aug 17 2022 09:36:02 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.3.0-beta.5 Wed Aug 24 2022 15:57:04 GMT+0800 (China Standard Time)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */