@nutui/nutui-react-taro 2.5.1 → 2.6.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 (90) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/esm/ActionSheet.js +1 -1
  3. package/dist/esm/Address.js +1 -1
  4. package/dist/esm/Audio.js +1 -1
  5. package/dist/esm/AvatarCropper.js +1 -1
  6. package/dist/esm/Calendar.js +1 -1
  7. package/dist/esm/CalendarCard.js +1 -1
  8. package/dist/esm/Cascader.js +1 -1
  9. package/dist/esm/DatePicker.js +1 -1
  10. package/dist/esm/Dialog.js +1 -1
  11. package/dist/esm/FixedNav.js +1 -1
  12. package/dist/esm/Form/style/style.css +1 -1
  13. package/dist/esm/ImagePreview/style/style.css +1 -1
  14. package/dist/esm/ImagePreview.js +1 -1
  15. package/dist/esm/Input.js +1 -1
  16. package/dist/esm/Menu.js +1 -1
  17. package/dist/esm/MenuItem.js +1 -1
  18. package/dist/esm/NumberKeyboard.js +1 -1
  19. package/dist/esm/Overlay.js +1 -1
  20. package/dist/esm/Picker.js +1 -1
  21. package/dist/esm/Popover.js +1 -1
  22. package/dist/esm/Popup.js +1 -1
  23. package/dist/esm/PullToRefresh.js +1 -1
  24. package/dist/esm/Radio/style/style.css +1 -1
  25. package/dist/esm/RadioGroup/style/style.css +1 -1
  26. package/dist/esm/Range.js +1 -1
  27. package/dist/esm/ShortPassword.js +1 -1
  28. package/dist/esm/SideNavBar.js +1 -1
  29. package/dist/esm/Swipe.js +1 -1
  30. package/dist/esm/Swiper/style/index.js +0 -1
  31. package/dist/esm/Swiper/style/style.css +1 -1
  32. package/dist/esm/TimeSelect.js +1 -1
  33. package/dist/esm/Toast.js +1 -1
  34. package/dist/esm/Tour.js +1 -1
  35. package/dist/esm/{actionsheet.taro-C5BqWoML.js → actionsheet.taro-Dpjoa3xo.js} +1 -1
  36. package/dist/esm/{address.taro-CQmN9x1W.js → address.taro-C7tIIp3x.js} +2 -2
  37. package/dist/esm/{audio.taro-BEskw47C.js → audio.taro-2hRKQ2Lk.js} +1 -1
  38. package/dist/esm/{avatarcropper.taro-CsVKBnvS.js → avatarcropper.taro-Dd4pAR3N.js} +1 -1
  39. package/dist/esm/{calendar.taro-DbHJEx4G.js → calendar.taro-DEsLc-lS.js} +1 -1
  40. package/dist/esm/{cascader.taro-7Xhq98L4.js → cascader.taro-CFcAyFL-.js} +1 -1
  41. package/dist/esm/{datepicker.taro-FiLalMAA.js → datepicker.taro-Bgq3ZNDe.js} +1 -1
  42. package/dist/esm/{dialog.taro-B8Usf0kl.js → dialog.taro-x_jRYew5.js} +1 -1
  43. package/dist/esm/{fixednav.taro-WTBxWxOo.js → fixednav.taro-CJUDQcX1.js} +1 -1
  44. package/dist/esm/{imagepreview.taro-Bb1TkBCV.js → imagepreview.taro-BMlwAhT0.js} +1 -1
  45. package/dist/esm/{input.taro-Dh6zXTLQ.js → input.taro-CAZ-rRMH.js} +2 -1
  46. package/dist/esm/{menu.taro-BAiJPGR7.js → menu.taro-J7oZoaGM.js} +1 -1
  47. package/dist/esm/{menuitem.taro-oLv6ZYC5.js → menuitem.taro-CaI5vTha.js} +1 -1
  48. package/dist/esm/{numberkeyboard.taro-B9rMgy7D.js → numberkeyboard.taro-DjxjkImT.js} +1 -1
  49. package/dist/esm/nutui-react.es.js +27 -27
  50. package/dist/esm/{overlay.taro-BaBu-3-F.js → overlay.taro--1Kf1D7C.js} +1 -1
  51. package/dist/esm/{picker.taro-Cmng9GW9.js → picker.taro-DR2HAkv6.js} +3 -3
  52. package/dist/esm/{popover.taro-BG0msyw5.js → popover.taro-MnR5htLt.js} +1 -1
  53. package/dist/esm/{popup.taro-Iy_WQZ-m.js → popup.taro-B7_iPgl4.js} +1 -1
  54. package/dist/esm/{pulltorefresh.taro-DfVmOGuo.js → pulltorefresh.taro-Ck1i2xRr.js} +1 -1
  55. package/dist/esm/{range.taro-GsWDprz5.js → range.taro-CsC41L60.js} +1 -1
  56. package/dist/esm/{shortpassword.taro-BXsxku33.js → shortpassword.taro-GkcE-e__.js} +1 -1
  57. package/dist/esm/{sidenavbar.taro-eK5vaZPR.js → sidenavbar.taro-5d-6iiNq.js} +1 -1
  58. package/dist/esm/{swipe.taro-aEnunftO.js → swipe.taro-CavqgBEb.js} +1 -1
  59. package/dist/esm/{timeselect.taro-BXq4APSJ.js → timeselect.taro-DkdpBJlT.js} +1 -1
  60. package/dist/esm/{toast.taro-BVXqvjNJ.js → toast.taro-B0YEmeDn.js} +1 -1
  61. package/dist/esm/{tour.taro-BqlNfxdD.js → tour.taro-CdX6pugO.js} +1 -1
  62. package/dist/esm/{use-touch-OfEaR5qi.js → use-touch-BeiLHDO9.js} +13 -3
  63. package/dist/locales/base.js +1 -1
  64. package/dist/locales/en-US.js +1 -1
  65. package/dist/locales/id-ID.js +1 -1
  66. package/dist/locales/tr-TR.js +1 -1
  67. package/dist/locales/zh-CN.js +1 -1
  68. package/dist/locales/zh-TW.js +1 -1
  69. package/dist/locales/zh-UG.js +1 -1
  70. package/dist/nutui.react.es.js +321 -305
  71. package/dist/nutui.react.umd.js +329 -313
  72. package/dist/packages/form/form.scss +0 -3
  73. package/dist/packages/radiogroup/radiogroup.scss +1 -2
  74. package/dist/packages/swiper/swiper.scss +30 -16
  75. package/dist/style.css +1 -1
  76. package/dist/style.mjs +1 -1
  77. package/dist/styles/variables.scss +1 -1
  78. package/dist/types/packages/configprovider/types.d.ts +1 -1
  79. package/dist/types/packages/input/input.taro.d.ts +1 -1
  80. package/dist/types/packages/swiper/effects/default.d.ts +11 -0
  81. package/dist/types/packages/swiper/effects/focus.d.ts +21 -0
  82. package/dist/types/packages/swiper/index.d.ts +4 -2
  83. package/dist/types/packages/swiper/swiper.d.ts +12 -15
  84. package/dist/types/packages/swiper/types.d.ts +6 -0
  85. package/dist/types/packages/swiperitem/swiperitem.d.ts +8 -4
  86. package/dist/types/utils/use-ref-state.d.ts +3 -0
  87. package/dist/types/utils/use-touch.d.ts +3 -1
  88. package/package.json +1 -1
  89. package/dist/types/packages/picker/doc.en.d.ts +0 -145
  90. package/dist/esm/{calendarcard.taro-CK31xju_.js → calendarcard.taro-C7P3oqAL.js} +1 -1
@@ -1,7 +1,6 @@
1
1
 
2
2
  .form-layout-right .nut-form-item-label {
3
3
  text-align: right;
4
- font-size: 14px;
5
4
  padding-right: 24px;
6
5
  white-space: nowrap;
7
6
  }
@@ -9,7 +8,6 @@
9
8
  .form-layout-left .nut-form-item-label {
10
9
  position: relative;
11
10
  text-align: left;
12
- font-size: 14px;
13
11
  padding-left: 12px;
14
12
  white-space: nowrap;
15
13
 
@@ -30,7 +28,6 @@
30
28
  .form-layout-top .nut-form-item-label {
31
29
  padding-bottom: 4px;
32
30
  display: block;
33
- font-size: 14px;
34
31
  padding-right: 24px;
35
32
  }
36
33
 
@@ -1,7 +1,6 @@
1
1
  .nut-radiogroup {
2
2
  .nut-radio {
3
- margin-right: $radiogroup-radio-margin;
4
- margin-bottom: $radiogroup-radio-margin-bottom;
3
+ margin: 0 $radiogroup-radio-margin $radiogroup-radio-margin-bottom 0;
5
4
 
6
5
  &-label {
7
6
  margin: $radiogroup-radio-label-margin;
@@ -1,22 +1,10 @@
1
1
 
2
2
  .nut-swiper {
3
- position: relative;
4
- z-index: 1;
5
- display: flex;
6
- transition-property: transform;
7
- box-sizing: content-box;
3
+ width: 100%;
4
+ height: 100%;
8
5
  overflow: hidden;
9
-
10
- &-inner {
11
- display: flex;
12
- height: 100%;
13
- }
14
-
15
- &-vertical {
16
- -webkit-box-orient: vertical;
17
- -webkit-box-direction: normal;
18
- flex-direction: column;
19
- }
6
+ touch-action: none;
7
+ position: relative;
20
8
 
21
9
  &-indicator {
22
10
  display: flex;
@@ -38,6 +26,32 @@
38
26
  z-index: 1;
39
27
  }
40
28
  }
29
+ .nut-swiper-inner {
30
+ width: 100%;
31
+ height: 100%;
32
+ display: flex;
33
+ position: relative;
34
+ &-horizontal {
35
+ transform: translateX(var(--swiper-offset));
36
+ }
37
+
38
+ &-vertical {
39
+ transform: translateY(var(--swiper-offset));
40
+ flex-direction: column;
41
+ }
42
+ }
43
+
44
+ .nut-swiper-slide {
45
+ width: 100%;
46
+ height: 100%;
47
+ position: relative;
48
+ flex-shrink: 0;
49
+ }
50
+
51
+ .nut-swiper-item {
52
+ width: 100%;
53
+ height: 100%;
54
+ }
41
55
 
42
56
  [dir='rtl'] .nut-swiper,
43
57
  .nut-rtl .nut-swiper {