@nutui/nutui-react-taro 1.3.5 → 1.3.6

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 (125) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/esm/Audio.js +4 -4
  3. package/dist/esm/Calendar.js +4 -4
  4. package/dist/esm/CalendarItem.js +3 -3
  5. package/dist/esm/DatePicker.js +4 -4
  6. package/dist/esm/Drag.js +3 -4
  7. package/dist/esm/Elevator.js +2 -4
  8. package/dist/esm/NoticeBar.js +3 -3
  9. package/dist/esm/Picker.js +3 -3
  10. package/dist/esm/Popover.js +3 -3
  11. package/dist/esm/Range.js +3 -3
  12. package/dist/esm/SearchBar.js +3 -2
  13. package/dist/esm/Signature.js +3 -2
  14. package/dist/esm/Swipe.js +3 -3
  15. package/dist/esm/actionsheet.taro-360d8d34.js +15 -25
  16. package/dist/esm/address.taro-f16cef31.js +151 -219
  17. package/dist/esm/animatingnumbers.taro-6f40a2e9.js +13 -41
  18. package/dist/esm/{audio.taro-29f5568f.js → audio.taro-57d4f0da.js} +33 -60
  19. package/dist/esm/avatar.taro-ec620cdd.js +25 -50
  20. package/dist/esm/avatargroup-5b2584d9.js +2 -9
  21. package/dist/esm/backtop.taro-aa8b2bc5.js +29 -55
  22. package/dist/esm/badge.taro-38684262.js +9 -20
  23. package/dist/esm/barrage.taro-d86c367a.js +8 -21
  24. package/dist/esm/button.taro-a9ebb937.js +22 -37
  25. package/dist/esm/{calendar.taro-438940bd.js → calendar.taro-533b3219.js} +13 -24
  26. package/dist/esm/{calendaritem.taro-11333579.js → calendaritem.taro-fe5dd4bd.js} +71 -183
  27. package/dist/esm/card.taro-1bc35ebe.js +14 -20
  28. package/dist/esm/cascader.taro-77100fb4.js +77 -197
  29. package/dist/esm/cell.taro-a4c3bb7b.js +20 -30
  30. package/dist/esm/cellgroup.taro-8c87bf08.js +6 -12
  31. package/dist/esm/checkbox.taro-104557c1.js +27 -48
  32. package/dist/esm/checkboxgroup.taro-3d380042.js +12 -30
  33. package/dist/esm/circleprogress.taro-3c89a157.js +14 -41
  34. package/dist/esm/col.taro-2a437387.js +11 -22
  35. package/dist/esm/collapse.taro-72e58ba2.js +11 -27
  36. package/dist/esm/collapseitem-75843a5e.js +33 -47
  37. package/dist/esm/configprovider-3e87d67a.js +2 -6
  38. package/dist/esm/configprovider.taro-6c7b3056.js +4 -14
  39. package/dist/esm/countdown.taro-f2d9ffed.js +37 -74
  40. package/dist/esm/{datepicker.taro-1acec61f.js → datepicker.taro-49a4cf0c.js} +43 -104
  41. package/dist/esm/dialog.taro-492e2b9a.js +27 -58
  42. package/dist/esm/divider.taro-5236fe6a.js +8 -15
  43. package/dist/esm/drag.taro-0717c783.js +153 -0
  44. package/dist/esm/{elevator.taro-8e385785.js → elevator.taro-443253ec.js} +99 -124
  45. package/dist/esm/empty.taro-ab9c4f03.js +11 -24
  46. package/dist/esm/fixednav.taro-582322a1.js +16 -27
  47. package/dist/esm/grid.taro-5d75c0ad.js +13 -28
  48. package/dist/esm/griditem.taro-866cd288.js +18 -34
  49. package/dist/esm/icon-8dc4de10.js +11 -21
  50. package/dist/esm/icon.taro-1d0d4fb7.js +11 -21
  51. package/dist/esm/imagepreview.taro-1199e977.js +36 -71
  52. package/dist/esm/indicator.taro-183ea169.js +9 -20
  53. package/dist/esm/infiniteloading.taro-b95e62bf.js +23 -49
  54. package/dist/esm/input.taro-2453d7c4.js +62 -106
  55. package/dist/esm/inputnumber.taro-0cf7c1b7.js +25 -52
  56. package/dist/esm/layout.taro-358f014f.js +0 -6
  57. package/dist/esm/menu.taro-9345dcfd.js +21 -41
  58. package/dist/esm/menuitem.taro-fc0961b7.js +29 -54
  59. package/dist/esm/navbar.taro-c931c078.js +18 -34
  60. package/dist/esm/{noticebar.taro-1fa04a96.js → noticebar.taro-332691f9.js} +55 -107
  61. package/dist/esm/notify.taro-d9c48fae.js +18 -34
  62. package/dist/esm/numberkeyboard.taro-53c350b8.js +21 -52
  63. package/dist/esm/nutui-react.es.js +16 -16
  64. package/dist/esm/offsetContext-0e3d04b3.js +0 -3
  65. package/dist/esm/overlay.taro-be45fed5.js +12 -23
  66. package/dist/esm/pagination.taro-62bbd23f.js +38 -71
  67. package/dist/esm/{picker.taro-6a4dad23.js → picker.taro-f003b725.js} +95 -186
  68. package/dist/esm/{popover.taro-eddd0bd2.js → popover.taro-7e5dff8c.js} +33 -76
  69. package/dist/esm/popup.taro-33d0bbc8.js +40 -72
  70. package/dist/esm/price.taro-97393d8f.js +7 -24
  71. package/dist/esm/progress.taro-623bc807.js +23 -31
  72. package/dist/esm/pulltorefresh.taro-e66c78ad.js +29 -92
  73. package/dist/esm/radio.taro-95d43860.js +24 -47
  74. package/dist/esm/radiogroup.taro-b5dad516.js +14 -24
  75. package/dist/esm/{range.taro-515d37a4.js → range.taro-fc7c0b6a.js} +50 -133
  76. package/dist/esm/rate.taro-69c85081.js +21 -39
  77. package/dist/esm/row.taro-cec13a7e.js +7 -16
  78. package/dist/esm/{searchbar.taro-f134fb96.js → searchbar.taro-0d3c0081.js} +55 -70
  79. package/dist/esm/shortpassword.taro-2e96ca22.js +29 -56
  80. package/dist/esm/sidenavbar.taro-87f056cd.js +9 -16
  81. package/dist/esm/sidenavbaritem.taro-77e077f4.js +4 -11
  82. package/dist/esm/signature.taro-59b3b3ab.js +146 -0
  83. package/dist/esm/skeleton.taro-b9ff84b9.js +13 -23
  84. package/dist/esm/step.taro-f1057500.js +12 -28
  85. package/dist/esm/steps.taro-943f4fbb.js +6 -14
  86. package/dist/esm/sticky.taro-30d4e453.js +0 -7
  87. package/dist/esm/subsidenavbar.taro-2c1fcf16.js +7 -22
  88. package/dist/esm/{swipe.taro-dfb9a049.js → swipe.taro-83bc248f.js} +98 -91
  89. package/dist/esm/swiper.taro-f314d67a.js +110 -196
  90. package/dist/esm/swiperitem-d00e7513.js +2 -12
  91. package/dist/esm/switch.taro-be5eb823.js +13 -27
  92. package/dist/esm/tabbar.taro-da72fa2c.js +13 -25
  93. package/dist/esm/tabbaritem.taro-94cd62c2.js +15 -23
  94. package/dist/esm/table.taro-7ac89a6c.js +19 -39
  95. package/dist/esm/tabpane.taro-95aa185b.js +4 -10
  96. package/dist/esm/tabs.taro-86186dff.js +28 -54
  97. package/dist/esm/tag.taro-95d7f5c2.js +19 -36
  98. package/dist/esm/textarea.taro-388d1f90.js +18 -35
  99. package/dist/esm/timedetail.taro-519808cf.js +15 -28
  100. package/dist/esm/timepannel.taro-9904f6e6.js +5 -12
  101. package/dist/esm/timeselect.taro-73796bfc.js +35 -59
  102. package/dist/esm/toast.taro-86862dff.js +26 -46
  103. package/dist/esm/types/src/packages/elevator/demo.d.ts +1 -0
  104. package/dist/esm/types/src/packages/searchbar/searchbar.d.ts +2 -0
  105. package/dist/esm/types/src/packages/searchbar/searchbar.taro.d.ts +2 -0
  106. package/dist/esm/types/src/packages/signature/signature.taro.d.ts +10 -2
  107. package/dist/esm/uploader.taro-6184abe7.js +52 -144
  108. package/dist/esm/{useClientRect-8b7cc406.js → useClientRect-bf69d7b3.js} +1 -40
  109. package/dist/esm/useTouch-a2ea68c6.js +27 -47
  110. package/dist/esm/video-c1090c92.js +8 -19
  111. package/dist/esm/virtuallist.taro-6858f690.js +84 -118
  112. package/dist/locales/base.js +1 -1
  113. package/dist/locales/en-US.js +1 -1
  114. package/dist/locales/id-ID.js +1 -1
  115. package/dist/locales/zh-CN.js +1 -1
  116. package/dist/locales/zh-TW.js +1 -1
  117. package/dist/nutui.react.es.js +10844 -11362
  118. package/dist/nutui.react.umd.js +10844 -11362
  119. package/dist/packages/searchbar/searchbar.scss +20 -3
  120. package/dist/style.css +1 -1
  121. package/dist/style.es.js +1 -1
  122. package/dist/types/index.d.ts +17 -8
  123. package/package.json +1 -1
  124. package/dist/esm/drag.taro-56e8c87a.js +0 -134
  125. package/dist/esm/signature.taro-a9286cd1.js +0 -178
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # v1.3.6
2
+ `2022-10-12`
3
+ * :sparkles: feat: Swipe 组件适配小程序,Searchbar 增加 onCancel 回调函数 (#311) @Ymm0008
4
+ * :sparkles: chore: Switch demo import 优化 (#332) @oasis-cloud
5
+ * :bug: fix: Signature 和 Drag 组件 Taro 适配完成 (#322) @irisSong
6
+ * :bug: fix: searchbar 组件样式兼容 (#333) @Ymm0008
7
+
1
8
  # v1.3.5
2
9
  `2022-09-28`
3
10
  * :sparkles: feat: cascader 组件适配 taro (#318) @ailululu
package/dist/esm/Audio.js CHANGED
@@ -1,13 +1,13 @@
1
- import { A as Audio } from './audio.taro-29f5568f.js';
2
- export { A as default } from './audio.taro-29f5568f.js';
1
+ import { A as Audio } from './audio.taro-57d4f0da.js';
2
+ export { A as default } from './audio.taro-57d4f0da.js';
3
3
  import 'react';
4
4
  import '@tarojs/taro';
5
5
  import './icon.taro-1d0d4fb7.js';
6
6
  import './bem-893ad28d.js';
7
7
  import '@bem-react/classname';
8
- import './range.taro-515d37a4.js';
8
+ import './range.taro-fc7c0b6a.js';
9
9
  import './useTouch-a2ea68c6.js';
10
- import './useClientRect-8b7cc406.js';
10
+ import './useClientRect-bf69d7b3.js';
11
11
  import './toast.taro-86862dff.js';
12
12
  import 'classnames';
13
13
  import './icon-8dc4de10.js';
@@ -1,5 +1,5 @@
1
- import { C as Calendar } from './calendar.taro-438940bd.js';
2
- export { C as default } from './calendar.taro-438940bd.js';
1
+ import { C as Calendar } from './calendar.taro-533b3219.js';
2
+ export { C as default } from './calendar.taro-533b3219.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-11333579.js';
13
+ import './calendaritem.taro-fe5dd4bd.js';
14
14
  import './configprovider.taro-6c7b3056.js';
15
15
  import './zh-CN-14165629.js';
16
- import './useClientRect-8b7cc406.js';
16
+ import './useClientRect-bf69d7b3.js';
@@ -1,9 +1,9 @@
1
- import { C as CalendarItem } from './calendaritem.taro-11333579.js';
2
- export { C as default } from './calendaritem.taro-11333579.js';
1
+ import { C as CalendarItem } from './calendaritem.taro-fe5dd4bd.js';
2
+ export { C as default } from './calendaritem.taro-fe5dd4bd.js';
3
3
  import 'react';
4
4
  import 'classnames';
5
5
  import './bem-893ad28d.js';
6
6
  import '@bem-react/classname';
7
7
  import './configprovider.taro-6c7b3056.js';
8
8
  import './zh-CN-14165629.js';
9
- import './useClientRect-8b7cc406.js';
9
+ import './useClientRect-bf69d7b3.js';
@@ -1,7 +1,7 @@
1
- import { D as DatePicker } from './datepicker.taro-1acec61f.js';
2
- export { D as default } from './datepicker.taro-1acec61f.js';
1
+ import { D as DatePicker } from './datepicker.taro-49a4cf0c.js';
2
+ export { D as default } from './datepicker.taro-49a4cf0c.js';
3
3
  import 'react';
4
- import './picker.taro-6a4dad23.js';
4
+ import './picker.taro-f003b725.js';
5
5
  import './popup.taro-33d0bbc8.js';
6
6
  import 'react-dom';
7
7
  import 'react-transition-group';
@@ -12,6 +12,6 @@ import '@bem-react/classname';
12
12
  import './icon.taro-1d0d4fb7.js';
13
13
  import './typings-1c5f2628.js';
14
14
  import './useTouch-a2ea68c6.js';
15
- import './useClientRect-8b7cc406.js';
15
+ import './useClientRect-bf69d7b3.js';
16
16
  import './configprovider.taro-6c7b3056.js';
17
17
  import './zh-CN-14165629.js';
package/dist/esm/Drag.js CHANGED
@@ -1,7 +1,6 @@
1
- import { D as Drag } from './drag.taro-56e8c87a.js';
2
- export { D as default } from './drag.taro-56e8c87a.js';
1
+ import { D as Drag } from './drag.taro-0717c783.js';
2
+ export { D as default } from './drag.taro-0717c783.js';
3
3
  import 'react';
4
- import '@use-gesture/react';
5
- import '@react-spring/web';
4
+ import '@tarojs/taro';
6
5
  import './bem-893ad28d.js';
7
6
  import '@bem-react/classname';
@@ -1,8 +1,6 @@
1
- import { E as Elevator } from './elevator.taro-8e385785.js';
2
- export { E as default } from './elevator.taro-8e385785.js';
1
+ import { E as Elevator } from './elevator.taro-443253ec.js';
2
+ export { E as default } from './elevator.taro-443253ec.js';
3
3
  import 'react';
4
- import '@use-gesture/react';
5
- import '@react-spring/web';
6
4
  import '@tarojs/taro';
7
5
  import './bem-893ad28d.js';
8
6
  import '@bem-react/classname';
@@ -1,9 +1,9 @@
1
- import { N as NoticeBar } from './noticebar.taro-1fa04a96.js';
2
- export { N as default } from './noticebar.taro-1fa04a96.js';
1
+ import { N as NoticeBar } from './noticebar.taro-332691f9.js';
2
+ export { N as default } from './noticebar.taro-332691f9.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 './useClientRect-8b7cc406.js';
8
+ import './useClientRect-bf69d7b3.js';
9
9
  import './typings-1c5f2628.js';
@@ -1,5 +1,5 @@
1
- import { P as Picker } from './picker.taro-6a4dad23.js';
2
- export { P as default } from './picker.taro-6a4dad23.js';
1
+ import { P as Picker } from './picker.taro-f003b725.js';
2
+ export { P as default } from './picker.taro-f003b725.js';
3
3
  import 'react';
4
4
  import './popup.taro-33d0bbc8.js';
5
5
  import 'react-dom';
@@ -11,6 +11,6 @@ import '@bem-react/classname';
11
11
  import './icon.taro-1d0d4fb7.js';
12
12
  import './typings-1c5f2628.js';
13
13
  import './useTouch-a2ea68c6.js';
14
- import './useClientRect-8b7cc406.js';
14
+ import './useClientRect-bf69d7b3.js';
15
15
  import './configprovider.taro-6c7b3056.js';
16
16
  import './zh-CN-14165629.js';
@@ -1,10 +1,10 @@
1
- import { P as Popover } from './popover.taro-eddd0bd2.js';
2
- export { P as default } from './popover.taro-eddd0bd2.js';
1
+ import { P as Popover } from './popover.taro-7e5dff8c.js';
2
+ export { P as default } from './popover.taro-7e5dff8c.js';
3
3
  import 'react';
4
4
  import './icon.taro-1d0d4fb7.js';
5
5
  import './bem-893ad28d.js';
6
6
  import '@bem-react/classname';
7
7
  import './overlay.taro-be45fed5.js';
8
8
  import 'classnames';
9
- import './useClientRect-8b7cc406.js';
9
+ import './useClientRect-bf69d7b3.js';
10
10
  import './typings-1c5f2628.js';
package/dist/esm/Range.js CHANGED
@@ -1,8 +1,8 @@
1
- import { R as Range } from './range.taro-515d37a4.js';
2
- export { R as default } from './range.taro-515d37a4.js';
1
+ import { R as Range } from './range.taro-fc7c0b6a.js';
2
+ export { R as default } from './range.taro-fc7c0b6a.js';
3
3
  import 'react';
4
4
  import './useTouch-a2ea68c6.js';
5
- import './useClientRect-8b7cc406.js';
5
+ import './useClientRect-bf69d7b3.js';
6
6
  import './toast.taro-86862dff.js';
7
7
  import 'classnames';
8
8
  import './bem-893ad28d.js';
@@ -1,5 +1,5 @@
1
- import { S as SearchBar } from './searchbar.taro-f134fb96.js';
2
- export { S as default } from './searchbar.taro-f134fb96.js';
1
+ import { S as SearchBar } from './searchbar.taro-0d3c0081.js';
2
+ export { S as default } from './searchbar.taro-0d3c0081.js';
3
3
  import 'react';
4
4
  import './bem-893ad28d.js';
5
5
  import '@bem-react/classname';
@@ -7,3 +7,4 @@ import './configprovider.taro-6c7b3056.js';
7
7
  import './zh-CN-14165629.js';
8
8
  import './icon.taro-1d0d4fb7.js';
9
9
  import './typings-1c5f2628.js';
10
+ import '@tarojs/taro';
@@ -1,6 +1,7 @@
1
- import { S as Signature } from './signature.taro-a9286cd1.js';
2
- export { S as default } from './signature.taro-a9286cd1.js';
1
+ import { S as Signature } from './signature.taro-59b3b3ab.js';
2
+ export { S as default } from './signature.taro-59b3b3ab.js';
3
3
  import 'react';
4
+ import '@tarojs/taro';
4
5
  import './button.taro-a9ebb937.js';
5
6
  import './icon.taro-1d0d4fb7.js';
6
7
  import './bem-893ad28d.js';
package/dist/esm/Swipe.js CHANGED
@@ -1,7 +1,7 @@
1
- import { S as Swipe } from './swipe.taro-dfb9a049.js';
2
- export { S as default } from './swipe.taro-dfb9a049.js';
1
+ import { S as Swipe } from './swipe.taro-83bc248f.js';
2
+ export { S as default } from './swipe.taro-83bc248f.js';
3
3
  import 'react';
4
4
  import './bem-893ad28d.js';
5
5
  import '@bem-react/classname';
6
6
  import './useTouch-a2ea68c6.js';
7
- import './useClientRect-8b7cc406.js';
7
+ import './useClientRect-bf69d7b3.js';
@@ -1,11 +1,8 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["children", "cancelTxt", "optionTag", "optionSubTag", "chooseTagValue", "title", "color", "description", "menuItems", "onCancel", "onChoose", "visible", "className", "style"];
4
-
5
4
  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
-
7
5
  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; }
8
-
9
6
  import React__default from 'react';
10
7
  import { P as Popup } from './popup.taro-33d0bbc8.js';
11
8
  import { c as cn } from './bem-893ad28d.js';
@@ -24,41 +21,35 @@ var defaultProps = {
24
21
  className: '',
25
22
  style: {}
26
23
  };
27
-
28
24
  var ActionSheet = function ActionSheet(props) {
29
25
  var _defaultProps$props = _objectSpread(_objectSpread({}, defaultProps), props),
30
- children = _defaultProps$props.children,
31
- cancelTxt = _defaultProps$props.cancelTxt,
32
- optionTag = _defaultProps$props.optionTag,
33
- optionSubTag = _defaultProps$props.optionSubTag,
34
- chooseTagValue = _defaultProps$props.chooseTagValue,
35
- title = _defaultProps$props.title,
36
- color = _defaultProps$props.color,
37
- description = _defaultProps$props.description,
38
- menuItems = _defaultProps$props.menuItems,
39
- onCancel = _defaultProps$props.onCancel,
40
- onChoose = _defaultProps$props.onChoose,
41
- visible = _defaultProps$props.visible,
42
- className = _defaultProps$props.className,
43
- style = _defaultProps$props.style,
44
- rest = _objectWithoutProperties(_defaultProps$props, _excluded);
45
-
26
+ children = _defaultProps$props.children,
27
+ cancelTxt = _defaultProps$props.cancelTxt,
28
+ optionTag = _defaultProps$props.optionTag,
29
+ optionSubTag = _defaultProps$props.optionSubTag,
30
+ chooseTagValue = _defaultProps$props.chooseTagValue,
31
+ title = _defaultProps$props.title,
32
+ color = _defaultProps$props.color,
33
+ description = _defaultProps$props.description,
34
+ menuItems = _defaultProps$props.menuItems,
35
+ onCancel = _defaultProps$props.onCancel,
36
+ onChoose = _defaultProps$props.onChoose,
37
+ visible = _defaultProps$props.visible,
38
+ className = _defaultProps$props.className,
39
+ style = _defaultProps$props.style,
40
+ rest = _objectWithoutProperties(_defaultProps$props, _excluded);
46
41
  var b = cn('actionsheet');
47
-
48
42
  var isHighlight = function isHighlight(item) {
49
43
  return props.chooseTagValue && props.chooseTagValue === item[props.optionTag || 'name'] ? props.color : '#1a1a1a';
50
44
  };
51
-
52
45
  var cancelActionSheet = function cancelActionSheet() {
53
46
  onCancel && onCancel();
54
47
  };
55
-
56
48
  var chooseItem = function chooseItem(item, index) {
57
49
  if (!item.disable) {
58
50
  onChoose && onChoose(item, index);
59
51
  }
60
52
  };
61
-
62
53
  return React__default.createElement(Popup, {
63
54
  round: true,
64
55
  visible: visible,
@@ -95,7 +86,6 @@ var ActionSheet = function ActionSheet(props) {
95
86
  }
96
87
  }, cancelTxt)));
97
88
  };
98
-
99
89
  ActionSheet.defaultProps = defaultProps;
100
90
  ActionSheet.displayName = 'NutActionSheet';
101
91
  export { ActionSheet as A };