@nutui/nutui-react-taro 1.3.1 → 1.3.2

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 (160) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/esm/ActionSheet.js +5 -5
  3. package/dist/esm/Address.js +11 -7
  4. package/dist/esm/Audio.js +7 -8
  5. package/dist/esm/Avatar.js +3 -3
  6. package/dist/esm/AvatarGroup.js +4 -4
  7. package/dist/esm/BackTop.js +3 -3
  8. package/dist/esm/Badge.js +3 -3
  9. package/dist/esm/Button.js +3 -3
  10. package/dist/esm/Calendar.js +8 -8
  11. package/dist/esm/CalendarItem.js +4 -4
  12. package/dist/esm/Card.js +5 -3
  13. package/dist/esm/Cascader.js +6 -7
  14. package/dist/esm/Cell.js +3 -3
  15. package/dist/esm/Checkbox.js +4 -3
  16. package/dist/esm/ConfigProvider.js +3 -3
  17. package/dist/esm/CountDown.js +4 -4
  18. package/dist/esm/DatePicker.js +9 -8
  19. package/dist/esm/Dialog.js +7 -6
  20. package/dist/esm/Elevator.js +4 -2
  21. package/dist/esm/Empty.js +4 -4
  22. package/dist/esm/FixedNav.js +6 -6
  23. package/dist/esm/Grid.js +4 -4
  24. package/dist/esm/GridItem.js +5 -5
  25. package/dist/esm/ImagePreview.js +7 -6
  26. package/dist/esm/Infiniteloading.js +5 -5
  27. package/dist/esm/Input.js +5 -5
  28. package/dist/esm/InputNumber.js +3 -3
  29. package/dist/esm/MenuItem.js +5 -5
  30. package/dist/esm/NavBar.js +3 -3
  31. package/dist/esm/NoticeBar.js +3 -3
  32. package/dist/esm/NumberKeyboard.js +7 -7
  33. package/dist/esm/Overlay.js +2 -2
  34. package/dist/esm/Pagination.js +4 -4
  35. package/dist/esm/Picker.js +8 -8
  36. package/dist/esm/Popover.js +4 -4
  37. package/dist/esm/Popup.js +4 -4
  38. package/dist/esm/Progress.js +3 -3
  39. package/dist/esm/PullToRefresh/style/index.js +2 -0
  40. package/dist/esm/PullToRefresh.js +7 -0
  41. package/dist/esm/Radio.js +4 -4
  42. package/dist/esm/RadioGroup.js +2 -2
  43. package/dist/esm/Range.js +5 -5
  44. package/dist/esm/Rate.js +3 -3
  45. package/dist/esm/SearchBar.js +5 -5
  46. package/dist/esm/ShortPassword.js +7 -7
  47. package/dist/esm/SideNavBar.js +7 -7
  48. package/dist/esm/Signature.js +6 -6
  49. package/dist/esm/Skeleton.js +4 -3
  50. package/dist/esm/Swiper.js +3 -3
  51. package/dist/esm/TabbarItem.js +3 -3
  52. package/dist/esm/Table.js +5 -5
  53. package/dist/esm/Tabs.js +3 -3
  54. package/dist/esm/Tag.js +3 -3
  55. package/dist/esm/TextArea.js +4 -4
  56. package/dist/esm/TimeDetail.js +4 -4
  57. package/dist/esm/TimePannel.js +4 -4
  58. package/dist/esm/TimeSelect.js +9 -7
  59. package/dist/esm/Toast.js +2 -3
  60. package/dist/esm/Uploader.js +4 -4
  61. package/dist/esm/VirtualList.js +4 -4
  62. package/dist/esm/{actionsheet.taro-f4d407b0.js → actionsheet.taro-1b3e7972.js} +9 -9
  63. package/dist/esm/{address.taro-4765a826.js → address.taro-f045886a.js} +48 -60
  64. package/dist/esm/{audio.taro-cd6cc93b.js → audio.taro-b34a1eb6.js} +3 -3
  65. package/dist/esm/{avatar.taro-0a0472fd.js → avatar.taro-c3a605b9.js} +1 -1
  66. package/dist/esm/{avatargroup-1ca79066.js → avatargroup-5b2584d9.js} +1 -1
  67. package/dist/esm/{backtop.taro-0e2e3946.js → backtop.taro-eb9359e8.js} +1 -1
  68. package/dist/esm/{badge.taro-eeac9de8.js → badge.taro-e6c4fe5f.js} +4 -4
  69. package/dist/esm/{button-521a516b.js → button.taro-bffc9543.js} +1 -1
  70. package/dist/esm/{calendar.taro-1abb1925.js → calendar.taro-1fc76ba0.js} +3 -3
  71. package/dist/esm/{calendaritem.taro-3c06a809.js → calendaritem.taro-11333579.js} +1 -1
  72. package/dist/esm/card.taro-2fbfbf59.js +67 -0
  73. package/dist/esm/{cascader.taro-31dbc60e.js → cascader.taro-d7e71bdf.js} +2 -2
  74. package/dist/esm/{cell.taro-3bb1b0f2.js → cell.taro-263a8927.js} +1 -1
  75. package/dist/esm/checkbox.taro-9d05ae76.js +140 -0
  76. package/dist/esm/{configprovider-9c393a29.js → configprovider-3e87d67a.js} +1 -1
  77. package/dist/esm/{configprovider.taro-1ff7f150.js → configprovider.taro-6c7b3056.js} +1 -1
  78. package/dist/esm/{countdown.taro-b00d0d46.js → countdown.taro-5d5df894.js} +1 -1
  79. package/dist/esm/{datepicker.taro-e385849d.js → datepicker.taro-318e9561.js} +22 -274
  80. package/dist/esm/{dialog.taro-c80b7b5f.js → dialog.taro-0e53ade9.js} +109 -9
  81. package/dist/esm/{elevator.taro-15b0d8c2.js → elevator.taro-8e385785.js} +39 -47
  82. package/dist/esm/{empty.taro-20b8adac.js → empty.taro-ab9c4f03.js} +1 -1
  83. package/dist/esm/{fixednav.taro-75e35339.js → fixednav.taro-6c0279ba.js} +3 -3
  84. package/dist/esm/{grid.taro-7fb43d02.js → grid.taro-5d75c0ad.js} +1 -1
  85. package/dist/esm/{griditem.taro-8020b409.js → griditem.taro-edb212e3.js} +2 -2
  86. package/dist/esm/imagepreview.taro-dae0757b.js +257 -0
  87. package/dist/esm/{infiniteloading.taro-0a86819e.js → infiniteloading.taro-067759de.js} +2 -2
  88. package/dist/esm/{input.taro-1d23861d.js → input.taro-505632ac.js} +2 -2
  89. package/dist/esm/{inputnumber.taro-75662231.js → inputnumber.taro-102203f3.js} +1 -1
  90. package/dist/esm/{menuitem.taro-56bf3205.js → menuitem.taro-0d8f50f9.js} +7 -7
  91. package/dist/esm/{navbar.taro-f2eae6a6.js → navbar.taro-2e969a0f.js} +1 -1
  92. package/dist/esm/{noticebar.taro-1890c693.js → noticebar.taro-f8bb6ae8.js} +1 -1
  93. package/dist/esm/{numberkeyboard.taro-5d685c76.js → numberkeyboard.taro-cf7d06f4.js} +2 -2
  94. package/dist/esm/nutui-react.es.js +66 -70
  95. package/dist/esm/{overlay-ed3eb37d.js → overlay.taro-be45fed5.js} +0 -0
  96. package/dist/esm/{pagination.taro-10449c4a.js → pagination.taro-62bbd23f.js} +1 -1
  97. package/dist/esm/picker.taro-62ce13e0.js +633 -0
  98. package/dist/esm/{popover.taro-9b3da0fa.js → popover.taro-0afa7cfa.js} +2 -2
  99. package/dist/esm/{popup.taro-a89dd3a1.js → popup.taro-8363fbae.js} +2 -2
  100. package/dist/esm/{progress.taro-dd93ac38.js → progress.taro-32ca3a69.js} +1 -1
  101. package/dist/esm/pulltorefresh.taro-8846f019.js +366 -0
  102. package/dist/esm/{radio.taro-32cb0172.js → radio.taro-1c63512f.js} +2 -2
  103. package/dist/esm/{radiogroup-e698d3df.js → radiogroup.taro-b5dad516.js} +0 -0
  104. package/dist/esm/{range.taro-fe08c5f4.js → range.taro-ef3b30f0.js} +2 -119
  105. package/dist/esm/{rate.taro-a0b21714.js → rate.taro-bb2e6c87.js} +1 -1
  106. package/dist/esm/{searchbar.taro-450d2f88.js → searchbar.taro-81867286.js} +2 -2
  107. package/dist/esm/{shortpassword.taro-08a05360.js → shortpassword.taro-2db97cc8.js} +3 -3
  108. package/dist/esm/{sidenavbar.taro-dd471476.js → sidenavbar.taro-e243b626.js} +2 -2
  109. package/dist/esm/{signature.taro-7cb77bab.js → signature.taro-e7369db8.js} +2 -2
  110. package/dist/esm/skeleton.taro-c19acc4e.js +109 -0
  111. package/dist/esm/{swiper.taro-7a2ef124.js → swiper.taro-448cd0ad.js} +56 -41
  112. package/dist/esm/{tabbaritem.taro-a88d3ae7.js → tabbaritem.taro-d0f2cec9.js} +1 -1
  113. package/dist/esm/{table.taro-305e0317.js → table.taro-25aeccba.js} +2 -2
  114. package/dist/esm/{tabs.taro-d1e85ea5.js → tabs.taro-d6006610.js} +1 -1
  115. package/dist/esm/{tag.taro-3bbbb557.js → tag.taro-ce9c52cd.js} +1 -1
  116. package/dist/esm/{textarea.taro-700b04c2.js → textarea.taro-388d1f90.js} +1 -1
  117. package/dist/esm/{timedetail.taro-7cc00243.js → timedetail.taro-519808cf.js} +1 -1
  118. package/dist/esm/{timepannel.taro-e24537e4.js → timepannel.taro-9904f6e6.js} +1 -1
  119. package/dist/esm/{timeselect.taro-210fd548.js → timeselect.taro-eea8d569.js} +16 -111
  120. package/dist/esm/{Notification-422905bd.js → toast.taro-d4ecd6af.js} +115 -1
  121. package/dist/esm/{uploader.taro-f7528535.js → uploader.taro-b232b2d3.js} +1 -1
  122. package/dist/esm/{virtuallist.taro-ce9619f9.js → virtuallist.taro-6858f690.js} +1 -1
  123. package/dist/esm/{zh-CN-91090ae2.js → zh-CN-14165629.js} +6 -0
  124. package/dist/locales/base.d.ts +6 -0
  125. package/dist/locales/base.js +1 -1
  126. package/dist/locales/en-US.js +7 -1
  127. package/dist/locales/id-ID.js +7 -1
  128. package/dist/locales/zh-CN.js +7 -1
  129. package/dist/locales/zh-TW.js +7 -1
  130. package/dist/nutui.react.es.js +14229 -14812
  131. package/dist/nutui.react.umd.js +14236 -14818
  132. package/dist/packages/actionsheet/actionsheet.scss +2 -0
  133. package/dist/packages/elevator/elevator.scss +1 -0
  134. package/dist/packages/pulltorefresh/pulltorefresh.scss +18 -0
  135. package/dist/style.css +1 -1
  136. package/dist/style.es.js +1 -1
  137. package/dist/styles/themes/default.scss +1 -0
  138. package/dist/types/actionsheet/actionsheet.taro.d.ts +2 -2
  139. package/dist/types/checkbox/checkbox.taro.d.ts +1 -1
  140. package/dist/types/elevator/elevator.taro.d.ts +2 -2
  141. package/dist/types/nutui.react.d.ts +3 -1
  142. package/dist/types/picker/pickerSlot.taro.d.ts +16 -0
  143. package/dist/types/popup/popup.taro.d.ts +1 -1
  144. package/dist/types/pulltorefresh/index.taro.d.ts +2 -0
  145. package/dist/types/pulltorefresh/pulltorefresh.taro.d.ts +18 -0
  146. package/dist/types/radio/radio.taro.d.ts +1 -1
  147. package/dist/types/radiogroup/index.taro.d.ts +1 -1
  148. package/dist/types/radiogroup/radiogroup.taro.d.ts +11 -0
  149. package/dist/types/timeselect/timeselect.taro.d.ts +1 -1
  150. package/package.json +2 -3
  151. package/dist/esm/button.taro-d5968f9d.js +0 -109
  152. package/dist/esm/card.taro-0861c7b3.js +0 -265
  153. package/dist/esm/checkbox.taro-6fbc4b3c.js +0 -255
  154. package/dist/esm/imagepreview.taro-a0ddd8a2.js +0 -813
  155. package/dist/esm/overlay.taro-a784329e.js +0 -94
  156. package/dist/esm/picker.taro-216cc3cb.js +0 -264
  157. package/dist/esm/pickerSlot-f8e4e542.js +0 -248
  158. package/dist/esm/popup-67173ec6.js +0 -217
  159. package/dist/esm/skeleton.taro-5934c7d7.js +0 -245
  160. package/dist/esm/toast.taro-bb181833.js +0 -122
@@ -1,7 +1,7 @@
1
- import { P as Progress } from './progress.taro-dd93ac38.js';
2
- export { P as default } from './progress.taro-dd93ac38.js';
1
+ import { P as Progress } from './progress.taro-32ca3a69.js';
2
+ export { P as default } from './progress.taro-32ca3a69.js';
3
3
  import 'react';
4
4
  import 'classnames';
5
- import './icon-8dc4de10.js';
5
+ import './icon.taro-1d0d4fb7.js';
6
6
  import './bem-893ad28d.js';
7
7
  import '@bem-react/classname';
@@ -0,0 +1,2 @@
1
+
2
+ require('../../../packages/pulltorefresh/pulltorefresh.scss')
@@ -0,0 +1,7 @@
1
+ import { P as PullToRefresh } from './pulltorefresh.taro-8846f019.js';
2
+ export { P as default } from './pulltorefresh.taro-8846f019.js';
3
+ import 'react';
4
+ import '@use-gesture/react';
5
+ import '@react-spring/web';
6
+ import './configprovider.taro-6c7b3056.js';
7
+ import './zh-CN-14165629.js';
package/dist/esm/Radio.js CHANGED
@@ -1,7 +1,7 @@
1
- import { R as Radio } from './radio.taro-32cb0172.js';
2
- export { R as default } from './radio.taro-32cb0172.js';
1
+ import { R as Radio } from './radio.taro-1c63512f.js';
2
+ export { R as default } from './radio.taro-1c63512f.js';
3
3
  import 'react';
4
- import './icon-8dc4de10.js';
4
+ import './icon.taro-1d0d4fb7.js';
5
5
  import './bem-893ad28d.js';
6
6
  import '@bem-react/classname';
7
- import './radiogroup-e698d3df.js';
7
+ import './radiogroup.taro-b5dad516.js';
@@ -1,5 +1,5 @@
1
- import { R as RadioGroup } from './radiogroup-e698d3df.js';
2
- export { R as default } from './radiogroup-e698d3df.js';
1
+ import { R as RadioGroup } from './radiogroup.taro-b5dad516.js';
2
+ export { R as default } from './radiogroup.taro-b5dad516.js';
3
3
  import 'react';
4
4
  import './bem-893ad28d.js';
5
5
  import '@bem-react/classname';
package/dist/esm/Range.js CHANGED
@@ -1,14 +1,14 @@
1
- import { R as Range } from './range.taro-fe08c5f4.js';
2
- export { R as default } from './range.taro-fe08c5f4.js';
1
+ import { R as Range } from './range.taro-ef3b30f0.js';
2
+ export { R as default } from './range.taro-ef3b30f0.js';
3
3
  import 'react';
4
4
  import './useTouch-a2ea68c6.js';
5
5
  import './useClientRect-8b7cc406.js';
6
- import './Notification-422905bd.js';
6
+ import './toast.taro-d4ecd6af.js';
7
7
  import 'react-dom';
8
8
  import 'classnames';
9
9
  import './bem-893ad28d.js';
10
10
  import '@bem-react/classname';
11
11
  import './icon-8dc4de10.js';
12
12
  import './render-4a3856cb.js';
13
- import './configprovider-9c393a29.js';
14
- import './zh-CN-91090ae2.js';
13
+ import './configprovider.taro-6c7b3056.js';
14
+ import './zh-CN-14165629.js';
package/dist/esm/Rate.js CHANGED
@@ -1,6 +1,6 @@
1
- import { R as Rate } from './rate.taro-a0b21714.js';
2
- export { R as default } from './rate.taro-a0b21714.js';
1
+ import { R as Rate } from './rate.taro-bb2e6c87.js';
2
+ export { R as default } from './rate.taro-bb2e6c87.js';
3
3
  import 'react';
4
4
  import './bem-893ad28d.js';
5
5
  import '@bem-react/classname';
6
- import './icon-8dc4de10.js';
6
+ import './icon.taro-1d0d4fb7.js';
@@ -1,8 +1,8 @@
1
- import { S as SearchBar } from './searchbar.taro-450d2f88.js';
2
- export { S as default } from './searchbar.taro-450d2f88.js';
1
+ import { S as SearchBar } from './searchbar.taro-81867286.js';
2
+ export { S as default } from './searchbar.taro-81867286.js';
3
3
  import 'react';
4
4
  import './bem-893ad28d.js';
5
5
  import '@bem-react/classname';
6
- import './configprovider-9c393a29.js';
7
- import './zh-CN-91090ae2.js';
8
- import './icon-8dc4de10.js';
6
+ import './configprovider.taro-6c7b3056.js';
7
+ import './zh-CN-14165629.js';
8
+ import './icon.taro-1d0d4fb7.js';
@@ -1,13 +1,13 @@
1
- import { S as ShortPassword } from './shortpassword.taro-08a05360.js';
2
- export { S as default } from './shortpassword.taro-08a05360.js';
1
+ import { S as ShortPassword } from './shortpassword.taro-2db97cc8.js';
2
+ export { S as default } from './shortpassword.taro-2db97cc8.js';
3
3
  import 'react';
4
4
  import './bem-893ad28d.js';
5
5
  import '@bem-react/classname';
6
- import './popup-67173ec6.js';
6
+ import './popup.taro-8363fbae.js';
7
7
  import 'react-dom';
8
8
  import 'react-transition-group';
9
9
  import 'classnames';
10
- import './overlay-ed3eb37d.js';
11
- import './icon-8dc4de10.js';
12
- import './configprovider-9c393a29.js';
13
- import './zh-CN-91090ae2.js';
10
+ import './overlay.taro-be45fed5.js';
11
+ import './icon.taro-1d0d4fb7.js';
12
+ import './configprovider.taro-6c7b3056.js';
13
+ import './zh-CN-14165629.js';
@@ -1,14 +1,14 @@
1
- import { S as SideNavBar } from './sidenavbar.taro-dd471476.js';
2
- export { S as default } from './sidenavbar.taro-dd471476.js';
1
+ import { S as SideNavBar } from './sidenavbar.taro-e243b626.js';
2
+ export { S as default } from './sidenavbar.taro-e243b626.js';
3
3
  import 'react';
4
- import './configprovider-9c393a29.js';
5
- import './zh-CN-91090ae2.js';
6
- import './popup-67173ec6.js';
4
+ import './configprovider.taro-6c7b3056.js';
5
+ import './zh-CN-14165629.js';
6
+ import './popup.taro-8363fbae.js';
7
7
  import 'react-dom';
8
8
  import 'react-transition-group';
9
9
  import 'classnames';
10
- import './overlay-ed3eb37d.js';
10
+ import './overlay.taro-be45fed5.js';
11
11
  import './bem-893ad28d.js';
12
12
  import '@bem-react/classname';
13
- import './icon-8dc4de10.js';
13
+ import './icon.taro-1d0d4fb7.js';
14
14
  import './offsetContext-0e3d04b3.js';
@@ -1,9 +1,9 @@
1
- import { S as Signature } from './signature.taro-7cb77bab.js';
2
- export { S as default } from './signature.taro-7cb77bab.js';
1
+ import { S as Signature } from './signature.taro-e7369db8.js';
2
+ export { S as default } from './signature.taro-e7369db8.js';
3
3
  import 'react';
4
- import './button-521a516b.js';
5
- import './icon-8dc4de10.js';
4
+ import './button.taro-bffc9543.js';
5
+ import './icon.taro-1d0d4fb7.js';
6
6
  import './bem-893ad28d.js';
7
7
  import '@bem-react/classname';
8
- import './configprovider-9c393a29.js';
9
- import './zh-CN-91090ae2.js';
8
+ import './configprovider.taro-6c7b3056.js';
9
+ import './zh-CN-14165629.js';
@@ -1,8 +1,9 @@
1
- import { S as Skeleton } from './skeleton.taro-5934c7d7.js';
2
- export { S as default } from './skeleton.taro-5934c7d7.js';
1
+ import { S as Skeleton } from './skeleton.taro-c19acc4e.js';
2
+ export { S as default } from './skeleton.taro-c19acc4e.js';
3
3
  import 'react';
4
4
  import 'classnames';
5
+ import './avatar.taro-c3a605b9.js';
5
6
  import './AvatarContext-7153ad2b.js';
6
7
  import './bem-893ad28d.js';
7
8
  import '@bem-react/classname';
8
- import './icon-8dc4de10.js';
9
+ import './icon.taro-1d0d4fb7.js';
@@ -1,8 +1,8 @@
1
- import { S as Swiper } from './swiper.taro-7a2ef124.js';
2
- export { S as default } from './swiper.taro-7a2ef124.js';
1
+ import { S as Swiper } from './swiper.taro-448cd0ad.js';
2
+ export { S as default } from './swiper.taro-448cd0ad.js';
3
3
  import 'react';
4
4
  import 'classnames';
5
5
  import './UserContext-b4181162.js';
6
6
  import './bem-893ad28d.js';
7
7
  import '@bem-react/classname';
8
- import './useClientRect-8b7cc406.js';
8
+ import '@tarojs/taro';
@@ -1,7 +1,7 @@
1
- import { T as TabbarItem } from './tabbaritem.taro-a88d3ae7.js';
2
- export { T as default } from './tabbaritem.taro-a88d3ae7.js';
1
+ import { T as TabbarItem } from './tabbaritem.taro-d0f2cec9.js';
2
+ export { T as default } from './tabbaritem.taro-d0f2cec9.js';
3
3
  import 'react';
4
4
  import 'react-router-dom';
5
5
  import './bem-893ad28d.js';
6
6
  import '@bem-react/classname';
7
- import './icon-8dc4de10.js';
7
+ import './icon.taro-1d0d4fb7.js';
package/dist/esm/Table.js CHANGED
@@ -1,9 +1,9 @@
1
- import { T as Table } from './table.taro-305e0317.js';
2
- export { T as default } from './table.taro-305e0317.js';
1
+ import { T as Table } from './table.taro-25aeccba.js';
2
+ export { T as default } from './table.taro-25aeccba.js';
3
3
  import 'react';
4
4
  import 'classnames';
5
5
  import './bem-893ad28d.js';
6
6
  import '@bem-react/classname';
7
- import './icon-8dc4de10.js';
8
- import './configprovider-9c393a29.js';
9
- import './zh-CN-91090ae2.js';
7
+ import './icon.taro-1d0d4fb7.js';
8
+ import './configprovider.taro-6c7b3056.js';
9
+ import './zh-CN-14165629.js';
package/dist/esm/Tabs.js CHANGED
@@ -1,7 +1,7 @@
1
- import { T as Tabs } from './tabs.taro-d1e85ea5.js';
2
- export { T as default } from './tabs.taro-d1e85ea5.js';
1
+ import { T as Tabs } from './tabs.taro-d6006610.js';
2
+ export { T as default } from './tabs.taro-d6006610.js';
3
3
  import 'react';
4
4
  import 'classnames';
5
5
  import './bem-893ad28d.js';
6
6
  import '@bem-react/classname';
7
- import './icon-8dc4de10.js';
7
+ import './icon.taro-1d0d4fb7.js';
package/dist/esm/Tag.js CHANGED
@@ -1,6 +1,6 @@
1
- import { T as Tag } from './tag.taro-3bbbb557.js';
2
- export { T as default } from './tag.taro-3bbbb557.js';
1
+ import { T as Tag } from './tag.taro-ce9c52cd.js';
2
+ export { T as default } from './tag.taro-ce9c52cd.js';
3
3
  import 'react';
4
- import './icon-8dc4de10.js';
4
+ import './icon.taro-1d0d4fb7.js';
5
5
  import './bem-893ad28d.js';
6
6
  import '@bem-react/classname';
@@ -1,7 +1,7 @@
1
- import { T as TextArea } from './textarea.taro-700b04c2.js';
2
- export { T as default } from './textarea.taro-700b04c2.js';
1
+ import { T as TextArea } from './textarea.taro-388d1f90.js';
2
+ export { T as default } from './textarea.taro-388d1f90.js';
3
3
  import 'react';
4
- import './configprovider-9c393a29.js';
5
- import './zh-CN-91090ae2.js';
4
+ import './configprovider.taro-6c7b3056.js';
5
+ import './zh-CN-14165629.js';
6
6
  import './bem-893ad28d.js';
7
7
  import '@bem-react/classname';
@@ -1,7 +1,7 @@
1
- import { T as TimeDetail } from './timedetail.taro-7cc00243.js';
2
- export { T as default } from './timedetail.taro-7cc00243.js';
1
+ import { T as TimeDetail } from './timedetail.taro-519808cf.js';
2
+ export { T as default } from './timedetail.taro-519808cf.js';
3
3
  import 'react';
4
4
  import './bem-893ad28d.js';
5
5
  import '@bem-react/classname';
6
- import './configprovider-9c393a29.js';
7
- import './zh-CN-91090ae2.js';
6
+ import './configprovider.taro-6c7b3056.js';
7
+ import './zh-CN-14165629.js';
@@ -1,7 +1,7 @@
1
- import { T as TimePannel } from './timepannel.taro-e24537e4.js';
2
- export { T as default } from './timepannel.taro-e24537e4.js';
1
+ import { T as TimePannel } from './timepannel.taro-9904f6e6.js';
2
+ export { T as default } from './timepannel.taro-9904f6e6.js';
3
3
  import 'react';
4
4
  import './bem-893ad28d.js';
5
5
  import '@bem-react/classname';
6
- import './configprovider-9c393a29.js';
7
- import './zh-CN-91090ae2.js';
6
+ import './configprovider.taro-6c7b3056.js';
7
+ import './zh-CN-14165629.js';
@@ -1,13 +1,15 @@
1
- import { T as TimeSelect } from './timeselect.taro-210fd548.js';
2
- export { T as default } from './timeselect.taro-210fd548.js';
1
+ import { T as TimeSelect } from './timeselect.taro-eea8d569.js';
2
+ export { T as default } from './timeselect.taro-eea8d569.js';
3
3
  import 'react';
4
- import './popup-67173ec6.js';
4
+ import './popup.taro-8363fbae.js';
5
5
  import 'react-dom';
6
6
  import 'react-transition-group';
7
7
  import 'classnames';
8
- import './overlay-ed3eb37d.js';
8
+ import './overlay.taro-be45fed5.js';
9
9
  import './bem-893ad28d.js';
10
10
  import '@bem-react/classname';
11
- import './icon-8dc4de10.js';
12
- import './configprovider-9c393a29.js';
13
- import './zh-CN-91090ae2.js';
11
+ import './icon.taro-1d0d4fb7.js';
12
+ import './timepannel.taro-9904f6e6.js';
13
+ import './configprovider.taro-6c7b3056.js';
14
+ import './zh-CN-14165629.js';
15
+ import './timedetail.taro-519808cf.js';
package/dist/esm/Toast.js CHANGED
@@ -1,6 +1,5 @@
1
- import { T as Toast } from './toast.taro-bb181833.js';
2
- export { T as default } from './toast.taro-bb181833.js';
3
- import './Notification-422905bd.js';
1
+ import { T as Toast } from './toast.taro-d4ecd6af.js';
2
+ export { T as default } from './toast.taro-d4ecd6af.js';
4
3
  import 'react';
5
4
  import 'react-dom';
6
5
  import 'classnames';
@@ -1,9 +1,9 @@
1
- import { U as Uploader } from './uploader.taro-f7528535.js';
2
- export { U as default } from './uploader.taro-f7528535.js';
1
+ import { U as Uploader } from './uploader.taro-b232b2d3.js';
2
+ export { U as default } from './uploader.taro-b232b2d3.js';
3
3
  import 'react';
4
4
  import 'classnames';
5
5
  import './icon-8dc4de10.js';
6
6
  import './bem-893ad28d.js';
7
7
  import '@bem-react/classname';
8
- import './configprovider-9c393a29.js';
9
- import './zh-CN-91090ae2.js';
8
+ import './configprovider.taro-6c7b3056.js';
9
+ import './zh-CN-14165629.js';
@@ -1,5 +1,5 @@
1
- import { V as VirtualList } from './virtuallist.taro-ce9619f9.js';
2
- export { V as default } from './virtuallist.taro-ce9619f9.js';
1
+ import { V as VirtualList } from './virtuallist.taro-6858f690.js';
2
+ export { V as default } from './virtuallist.taro-6858f690.js';
3
3
  import 'react';
4
- import './configprovider-9c393a29.js';
5
- import './zh-CN-91090ae2.js';
4
+ import './configprovider.taro-6c7b3056.js';
5
+ import './zh-CN-14165629.js';
@@ -1,13 +1,13 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["cancelTxt", "optionTag", "optionSubTag", "chooseTagValue", "title", "color", "description", "menuItems", "cancel", "choose", "visible", "className", "style"];
3
+ var _excluded = ["cancelTxt", "optionTag", "optionSubTag", "chooseTagValue", "title", "color", "description", "menuItems", "onCancel", "onChoose", "visible", "className", "style"];
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
 
7
7
  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
8
 
9
9
  import React__default from 'react';
10
- import { P as Popup } from './popup-67173ec6.js';
10
+ import { P as Popup } from './popup.taro-8363fbae.js';
11
11
  import { c as cn } from './bem-893ad28d.js';
12
12
  var defaultProps = {
13
13
  cancelTxt: '',
@@ -18,8 +18,8 @@ var defaultProps = {
18
18
  color: '#ee0a24',
19
19
  description: '',
20
20
  menuItems: [],
21
- cancel: function cancel() {},
22
- choose: function choose() {},
21
+ onCancel: function onCancel() {},
22
+ onChoose: function onChoose() {},
23
23
  visible: false,
24
24
  className: '',
25
25
  style: {}
@@ -35,8 +35,8 @@ var ActionSheet = function ActionSheet(props) {
35
35
  color = _defaultProps$props.color,
36
36
  description = _defaultProps$props.description,
37
37
  menuItems = _defaultProps$props.menuItems,
38
- cancel = _defaultProps$props.cancel,
39
- choose = _defaultProps$props.choose,
38
+ onCancel = _defaultProps$props.onCancel,
39
+ onChoose = _defaultProps$props.onChoose,
40
40
  visible = _defaultProps$props.visible,
41
41
  className = _defaultProps$props.className,
42
42
  style = _defaultProps$props.style,
@@ -49,12 +49,12 @@ var ActionSheet = function ActionSheet(props) {
49
49
  };
50
50
 
51
51
  var cancelActionSheet = function cancelActionSheet() {
52
- cancel && cancel();
52
+ onCancel && onCancel();
53
53
  };
54
54
 
55
55
  var chooseItem = function chooseItem(item, index) {
56
56
  if (!item.disable) {
57
- choose && choose(item, index);
57
+ onChoose && onChoose(item, index);
58
58
  }
59
59
  };
60
60
 
@@ -63,7 +63,7 @@ var ActionSheet = function ActionSheet(props) {
63
63
  visible: visible,
64
64
  position: "bottom",
65
65
  onClose: function onClose() {
66
- cancel && cancel();
66
+ onCancel && onCancel();
67
67
  }
68
68
  }, React__default.createElement("div", _objectSpread({
69
69
  className: "".concat(b(), " ").concat(className),
@@ -3,7 +3,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
5
5
  var _excluded = ["children", "type", "existAddress", "selectedIcon", "defaultIcon", "isShowCustomAddress", "customAndExistTitle", "onSelected", "onClose", "onSwitchModule"],
6
- _excluded2 = ["height", "acceptKey", "indexList", "isSticky", "spaceHeight", "titleHeight", "className", "clickItem", "clickIndex", "children"],
6
+ _excluded2 = ["height", "acceptKey", "indexList", "isSticky", "spaceHeight", "titleHeight", "className", "onClickItem", "onClickIndex", "children"],
7
7
  _excluded3 = ["children", "type", "modelValue", "height", "province", "city", "country", "town", "onNextArea", "onTabClick", "onClose"],
8
8
  _excluded4 = ["modelValue", "modelSelect", "children", "type", "height", "customAddressTitle", "existAddress", "existAddressTitle", "province", "city", "country", "town", "isShowCustomAddress", "customAndExistTitle", "selectedIcon", "defaultIcon", "closeBtnIcon", "backBtnIcon", "onChange", "onSelected", "onClose", "closeMask", "switchModule", "onTabChecked", "style", "className"];
9
9
 
@@ -12,10 +12,14 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
12
12
  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; }
13
13
 
14
14
  import React__default, { useEffect, createContext, useRef, useState } from 'react';
15
- import { I as Icon } from './icon-8dc4de10.js';
16
- import { P as Popup } from './popup-67173ec6.js';
15
+ import { I as Icon$1 } from './icon.taro-1d0d4fb7.js';
16
+ import { P as Popup } from './popup.taro-8363fbae.js';
17
17
  import { c as cn } from './bem-893ad28d.js';
18
- import { u as useConfig } from './configprovider-9c393a29.js';
18
+ import { I as Icon } from './icon-8dc4de10.js';
19
+ import { u as useConfig } from './configprovider-3e87d67a.js';
20
+ import { useGesture } from '@use-gesture/react';
21
+ import { animated } from '@react-spring/web';
22
+ import { u as useConfig$1 } from './configprovider.taro-6c7b3056.js';
19
23
  var defaultProps$3 = {
20
24
  type: 'custom',
21
25
  existAddress: [],
@@ -131,8 +135,8 @@ var Elevator = function Elevator(props) {
131
135
  spaceHeight = _defaultProps$2$props.spaceHeight,
132
136
  titleHeight = _defaultProps$2$props.titleHeight,
133
137
  className = _defaultProps$2$props.className,
134
- clickItem = _defaultProps$2$props.clickItem,
135
- clickIndex = _defaultProps$2$props.clickIndex,
138
+ onClickItem = _defaultProps$2$props.onClickItem,
139
+ onClickIndex = _defaultProps$2$props.onClickIndex,
136
140
  children = _defaultProps$2$props.children,
137
141
  rest = _objectWithoutProperties(_defaultProps$2$props, _excluded2);
138
142
 
@@ -233,44 +237,39 @@ var Elevator = function Elevator(props) {
233
237
  }
234
238
  };
235
239
 
236
- var touchMove = function touchMove(e) {
237
- var firstTouch = e.touches[0];
238
- touchState.current.y2 = firstTouch.pageY;
239
- var delta = (touchState.current.y2 - touchState.current.y1) / spaceHeight || 0; // delta 是一个浮点数, 需要四舍五入一下, 否则页面会找不到最终计算后的index
240
-
241
- var cacheIndex = state.current.anchorIndex + Math.ceil(delta);
242
- setCodeIndex(cacheIndex);
243
- scrollTo(cacheIndex);
244
- e.preventDefault();
245
- };
246
-
247
- var touchEnd = function touchEnd() {
248
- resetScrollState();
249
- };
250
-
251
- var touchStart = function touchStart(e) {
252
- setScrollStart(true);
253
- var index = Number(getData(e.target, 'index'));
254
- var firstTouch = e.touches[0];
255
- touchState.current.y1 = firstTouch.pageY;
256
- state.current.anchorIndex = +index;
257
- setCodeIndex(function (codeIndex) {
258
- return codeIndex + index;
259
- });
260
- scrollTo(index);
261
- var target = e.currentTarget;
262
- target.removeEventListener('touchend', touchEnd, false);
263
- target.addEventListener('touchend', touchEnd, false);
264
- };
240
+ var bind = useGesture({
241
+ onDragStart: function onDragStart(_ref) {
242
+ var target = _ref.target,
243
+ offset = _ref.offset;
244
+ setScrollStart(true);
245
+ var index = Number(getData(target, 'index'));
246
+ touchState.current.y1 = offset[1];
247
+ state.current.anchorIndex = +index;
248
+ setCodeIndex(function (codeIndex) {
249
+ return codeIndex + index;
250
+ });
251
+ scrollTo(index);
252
+ },
253
+ onDragEnd: function onDragEnd(_ref2) {
254
+ var offset = _ref2.offset;
255
+ touchState.current.y2 = offset[1];
256
+ var delta = (touchState.current.y2 - touchState.current.y1) / spaceHeight || 0; // delta 是一个浮点数, 需要四舍五入一下, 否则页面会找不到最终计算后的index
257
+
258
+ var cacheIndex = state.current.anchorIndex + Math.ceil(delta);
259
+ setCodeIndex(cacheIndex);
260
+ scrollTo(cacheIndex);
261
+ resetScrollState();
262
+ }
263
+ });
265
264
 
266
265
  var handleClickItem = function handleClickItem(key, item) {
267
- clickItem && clickItem(key, item);
266
+ onClickItem && onClickItem(key, item);
268
267
  setCurrentData(item);
269
268
  setCurrentKey(key);
270
269
  };
271
270
 
272
271
  var handleClickIndex = function handleClickIndex(key) {
273
- clickIndex && clickIndex(key);
272
+ onClickIndex && onClickIndex(key);
274
273
  };
275
274
 
276
275
  var setListGroup = function setListGroup() {
@@ -332,17 +331,6 @@ var Elevator = function Elevator(props) {
332
331
  if (state.current.fixedTop === fixedTop) return;
333
332
  state.current.fixedTop = fixedTop;
334
333
  }, [state.current.diff, titleHeight]);
335
- var refIndexBar = useRef(null); // 之前的代码, 手指在index条上下移动的时候, 下面的列表也会跟随滚动, 需要阻止默认事件
336
- // 如果使用react的touchmove, 没有找到可以设置passive的选项, 无法阻止默认事件, 所以使用了原生的方法进行添加
337
-
338
- useEffect(function () {
339
- refIndexBar.current && refIndexBar.current.addEventListener('touchmove', touchMove, {
340
- passive: false
341
- });
342
- return function () {
343
- refIndexBar.current && refIndexBar.current.removeEventListener('touchmove', touchMove);
344
- };
345
- }, []);
346
334
  return React__default.createElement("div", _objectSpread({
347
335
  className: "".concat(b(), " ").concat(className)
348
336
  }, rest), isSticky && scrollY > 0 ? React__default.createElement("div", {
@@ -381,14 +369,14 @@ var Elevator = function Elevator(props) {
381
369
  current: true
382
370
  })
383
371
  }, indexList[codeIndex][acceptKey]) : null, React__default.createElement("div", {
384
- ref: refIndexBar,
385
- className: b('bars'),
386
- onTouchStart: function onTouchStart(event) {
387
- return touchStart(event);
388
- }
389
- }, React__default.createElement("div", {
372
+ className: b('bars')
373
+ }, React__default.createElement(animated.div, _objectSpread(_objectSpread({
390
374
  className: b('bars__inner')
391
- }, indexList.map(function (item, index) {
375
+ }, bind()), {}, {
376
+ style: {
377
+ touchAction: 'pan-y'
378
+ }
379
+ }), indexList.map(function (item, index) {
392
380
  return React__default.createElement("div", {
393
381
  className: b('bars__inner__item', {
394
382
  active: item[acceptKey] === indexList[currentIndex][acceptKey]
@@ -722,7 +710,7 @@ var CustomRender = function CustomRender(props) {
722
710
  }, React__default.createElement(Elevator, {
723
711
  height: height,
724
712
  indexList: regionList[tabName[tabIndex]],
725
- clickItem: handleElevatorItem
713
+ onClickItem: handleElevatorItem
726
714
  })));
727
715
  };
728
716
 
@@ -747,8 +735,8 @@ var defaultProps = {
747
735
  };
748
736
 
749
737
  var Address = function Address(props) {
750
- var _useConfig3 = useConfig(),
751
- locale = _useConfig3.locale;
738
+ var _useConfig$ = useConfig$1(),
739
+ locale = _useConfig$.locale;
752
740
 
753
741
  var _defaultProps$props = _objectSpread(_objectSpread({}, defaultProps), props),
754
742
  modelValue = _defaultProps$props.modelValue,
@@ -909,7 +897,7 @@ var Address = function Address(props) {
909
897
  }, React__default.createElement("div", {
910
898
  className: "arrow-back",
911
899
  onClick: onSwitchModule
912
- }, privateType === 'custom' && backBtnIcon && React__default.createElement(Icon, {
900
+ }, privateType === 'custom' && backBtnIcon && React__default.createElement(Icon$1, {
913
901
  name: backBtnIcon,
914
902
  color: "#cccccc"
915
903
  })), React__default.createElement("div", {
@@ -918,7 +906,7 @@ var Address = function Address(props) {
918
906
  onClick: function onClick() {
919
907
  return handClose();
920
908
  }
921
- }, closeBtnIcon && React__default.createElement(Icon, {
909
+ }, closeBtnIcon && React__default.createElement(Icon$1, {
922
910
  name: closeBtnIcon,
923
911
  color: "#cccccc",
924
912
  size: "18px"
@@ -9,10 +9,10 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
9
9
 
10
10
  import React__default, { useState, useRef, useEffect } from 'react';
11
11
  import { I as Icon } from './icon.taro-1d0d4fb7.js';
12
- import { R as Range } from './range.taro-fe08c5f4.js';
12
+ import { R as Range } from './range.taro-ef3b30f0.js';
13
13
  import { c as cn } from './bem-893ad28d.js';
14
- import { B as Button } from './button.taro-d5968f9d.js';
15
- import { u as useConfig } from './configprovider.taro-1ff7f150.js';
14
+ import { B as Button } from './button.taro-bffc9543.js';
15
+ import { u as useConfig } from './configprovider.taro-6c7b3056.js';
16
16
  var defaultProps = {
17
17
  className: '',
18
18
  url: '',
@@ -11,7 +11,7 @@ import React__default, { useState, useRef, useContext, useEffect } from 'react';
11
11
  import classNames from 'classnames';
12
12
  import { A as AvatarContext } from './AvatarContext-7153ad2b.js';
13
13
  import { c as cn } from './bem-893ad28d.js';
14
- import { I as Icon } from './icon-8dc4de10.js';
14
+ import { I as Icon } from './icon.taro-1d0d4fb7.js';
15
15
  var defaultProps = {
16
16
  size: '',
17
17
  icon: '',
@@ -8,7 +8,7 @@ import React__default, { useRef } 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 { u as useConfig } from './configprovider-9c393a29.js';
11
+ import { u as useConfig } from './configprovider-3e87d67a.js';
12
12
  var defaultProps = {
13
13
  maxContent: '',
14
14
  maxCount: '',