@nutui/nutui-react-taro 1.3.0-beta.5 → 1.3.1-beta.1

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 (158) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/esm/Address.js +4 -4
  3. package/dist/esm/Audio/style/index.js +4 -0
  4. package/dist/esm/Audio.js +18 -0
  5. package/dist/esm/AvatarGroup.js +4 -4
  6. package/dist/esm/Calendar/style/index.js +1 -2
  7. package/dist/esm/Calendar.js +6 -5
  8. package/dist/esm/CalendarItem.js +5 -5
  9. package/dist/esm/Cascader/style/index.js +2 -0
  10. package/dist/esm/Cascader.js +14 -0
  11. package/dist/esm/ConfigProvider.js +3 -3
  12. package/dist/esm/CountDown.js +4 -4
  13. package/dist/esm/DatePicker.js +4 -4
  14. package/dist/esm/Dialog.js +4 -4
  15. package/dist/esm/Empty.js +4 -4
  16. package/dist/esm/FixedNav.js +4 -4
  17. package/dist/esm/Grid/style/index.js +2 -0
  18. package/dist/esm/Grid.js +7 -0
  19. package/dist/esm/GridItem/style/index.js +2 -0
  20. package/dist/esm/GridItem.js +8 -0
  21. package/dist/esm/ImagePreview/style/index.js +2 -0
  22. package/dist/esm/ImagePreview.js +15 -0
  23. package/dist/esm/Infiniteloading.js +4 -4
  24. package/dist/esm/Input.js +4 -4
  25. package/dist/esm/Menu/style/index.js +3 -0
  26. package/dist/esm/Menu.js +7 -0
  27. package/dist/esm/MenuItem/style/index.js +3 -0
  28. package/dist/esm/MenuItem.js +11 -0
  29. package/dist/esm/NoticeBar.js +3 -2
  30. package/dist/esm/{Notification-dccc7625.js → Notification-422905bd.js} +2 -1
  31. package/dist/esm/Notify.js +3 -2
  32. package/dist/esm/NumberKeyboard.js +4 -4
  33. package/dist/esm/Pagination.js +4 -4
  34. package/dist/esm/Picker.js +4 -4
  35. package/dist/esm/Popover.js +3 -2
  36. package/dist/esm/Range.js +7 -5
  37. package/dist/esm/SearchBar.js +4 -4
  38. package/dist/esm/ShortPassword.js +4 -4
  39. package/dist/esm/SideNavBar.js +4 -4
  40. package/dist/esm/Signature.js +4 -4
  41. package/dist/esm/Swipe/style/index.js +2 -0
  42. package/dist/esm/Swipe.js +7 -0
  43. package/dist/esm/Swiper.js +3 -2
  44. package/dist/esm/Table.js +4 -4
  45. package/dist/esm/TextArea.js +4 -4
  46. package/dist/esm/TimeDetail.js +4 -4
  47. package/dist/esm/TimePannel.js +4 -4
  48. package/dist/esm/TimeSelect.js +4 -4
  49. package/dist/esm/Toast.js +4 -3
  50. package/dist/esm/Uploader.js +4 -4
  51. package/dist/esm/VirtualList.js +4 -4
  52. package/dist/esm/{address.taro-a1092e30.js → address.taro-4765a826.js} +17 -6
  53. package/dist/esm/audio.taro-cd6cc93b.js +292 -0
  54. package/dist/esm/{avatargroup-65173caa.js → avatargroup-1ca79066.js} +1 -1
  55. package/dist/esm/calendar.taro-1abb1925.js +89 -0
  56. package/dist/esm/{calendaritem.taro-fe84d94b.js → calendaritem.taro-3c06a809.js} +130 -5
  57. package/dist/esm/cascader.taro-31dbc60e.js +786 -0
  58. package/dist/esm/{configprovider-18657611.js → configprovider-9c393a29.js} +1 -1
  59. package/dist/esm/{configprovider.taro-98343012.js → configprovider.taro-1ff7f150.js} +2 -2
  60. package/dist/esm/{countdown.taro-cd6a1bd4.js → countdown.taro-b00d0d46.js} +1 -1
  61. package/dist/esm/{datepicker.taro-c1249537.js → datepicker.taro-e385849d.js} +1 -1
  62. package/dist/esm/{dialog.taro-5b850861.js → dialog.taro-c80b7b5f.js} +12 -18
  63. package/dist/esm/{empty.taro-6f86eda5.js → empty.taro-20b8adac.js} +1 -1
  64. package/dist/esm/{fixednav.taro-ca94fd6a.js → fixednav.taro-75e35339.js} +1 -1
  65. package/dist/esm/grid.taro-7fb43d02.js +90 -0
  66. package/dist/esm/griditem.taro-8020b409.js +98 -0
  67. package/dist/esm/imagepreview.taro-a0ddd8a2.js +813 -0
  68. package/dist/esm/{infiniteloading.taro-d2c0ca14.js → infiniteloading.taro-0a86819e.js} +1 -1
  69. package/dist/esm/{input.taro-2e31ebbb.js → input.taro-1d23861d.js} +1 -1
  70. package/dist/esm/menu.taro-03e3b011.js +153 -0
  71. package/dist/esm/menuitem.taro-56bf3205.js +195 -0
  72. package/dist/esm/{noticebar.taro-ae593896.js → noticebar.taro-1890c693.js} +3 -2
  73. package/dist/esm/{notify.taro-95b5f97e.js → notify.taro-22b8f4cd.js} +2 -1
  74. package/dist/esm/{numberkeyboard.taro-71b2e0eb.js → numberkeyboard.taro-5d685c76.js} +1 -1
  75. package/dist/esm/nutui-react.es.js +45 -36
  76. package/dist/esm/{pagination.taro-abc4a71e.js → pagination.taro-10449c4a.js} +1 -1
  77. package/dist/esm/{picker.taro-0eb8bfa3.js → picker.taro-216cc3cb.js} +1 -1
  78. package/dist/esm/{popover.taro-4c102df6.js → popover.taro-9b3da0fa.js} +17 -71
  79. package/dist/esm/{range.taro-034fcf7a.js → range.taro-fe08c5f4.js} +118 -110
  80. package/dist/esm/render-4a3856cb.js +32 -0
  81. package/dist/esm/{searchbar.taro-4c6091cb.js → searchbar.taro-450d2f88.js} +1 -1
  82. package/dist/esm/{shortpassword.taro-ce46b9cd.js → shortpassword.taro-08a05360.js} +23 -18
  83. package/dist/esm/{sidenavbar.taro-36f1e118.js → sidenavbar.taro-dd471476.js} +1 -1
  84. package/dist/esm/{signature.taro-45aedfa9.js → signature.taro-7cb77bab.js} +1 -1
  85. package/dist/esm/swipe.taro-dfb9a049.js +264 -0
  86. package/dist/esm/{swiper.taro-59bf2777.js → swiper.taro-7a2ef124.js} +2 -1
  87. package/dist/esm/{table.taro-49009dfc.js → table.taro-305e0317.js} +1 -1
  88. package/dist/esm/{textarea.taro-0c40e966.js → textarea.taro-700b04c2.js} +1 -1
  89. package/dist/esm/{timedetail.taro-0e31b4a5.js → timedetail.taro-7cc00243.js} +1 -1
  90. package/dist/esm/{timepannel.taro-2d54b3db.js → timepannel.taro-e24537e4.js} +1 -1
  91. package/dist/esm/{timeselect.taro-c35d3490.js → timeselect.taro-210fd548.js} +1 -1
  92. package/dist/esm/{toast.taro-48539c09.js → toast.taro-bb181833.js} +1 -1
  93. package/dist/esm/{uploader.taro-ece83a00.js → uploader.taro-f7528535.js} +1 -1
  94. package/dist/esm/useClientRect-8b7cc406.js +74 -0
  95. package/dist/esm/{virtuallist.taro-2ff1a5ad.js → virtuallist.taro-ce9619f9.js} +1 -1
  96. package/dist/esm/{zh-CN-f5124686.js → zh-CN-91090ae2.js} +16 -0
  97. package/dist/locales/base.d.ts +16 -0
  98. package/dist/locales/base.js +1 -1
  99. package/dist/locales/en-US.js +17 -1
  100. package/dist/locales/id-ID.js +17 -1
  101. package/dist/locales/zh-CN.js +17 -1
  102. package/dist/locales/zh-TW.js +17 -1
  103. package/dist/nutui.react.es.js +5595 -4062
  104. package/dist/nutui.react.umd.js +20243 -30
  105. package/dist/packages/audio/audio.scss +80 -0
  106. package/dist/packages/calendar/calendar.scss +57 -36
  107. package/dist/packages/calendaritem/calendaritem.scss +0 -191
  108. package/dist/packages/cascader/cascader.scss +69 -0
  109. package/dist/packages/grid/grid.scss +10 -0
  110. package/dist/packages/griditem/griditem.scss +103 -0
  111. package/dist/packages/imagepreview/imagepreview.scss +51 -0
  112. package/dist/packages/menu/menu.scss +72 -0
  113. package/dist/packages/menuitem/menuitem.scss +90 -0
  114. package/dist/packages/popup/popup.scss +1 -1
  115. package/dist/packages/searchbar/searchbar.scss +1 -0
  116. package/dist/packages/shortpassword/shortpassword.scss +6 -1
  117. package/dist/packages/swipe/swipe.scss +33 -0
  118. package/dist/packages/textarea/textarea.scss +16 -1
  119. package/dist/style.css +1 -1
  120. package/dist/style.es.js +1 -1
  121. package/dist/styles/font/iconfont.js +20 -18
  122. package/dist/styles/themes/default.scss +8 -0
  123. package/dist/styles/variables.scss +59 -8
  124. package/dist/types/audio/audio.taro.d.ts +18 -0
  125. package/dist/types/audio/index.taro.d.ts +2 -0
  126. package/dist/types/cascader/cascader.taro.d.ts +25 -0
  127. package/dist/types/cascader/cascaderItem.taro.d.ts +25 -0
  128. package/dist/types/cascader/index.taro.d.ts +2 -0
  129. package/dist/types/checkbox/checkbox.taro.d.ts +2 -2
  130. package/dist/types/checkboxgroup/checkboxgroup.taro.d.ts +2 -2
  131. package/dist/types/dialog/dialog.taro.d.ts +2 -1
  132. package/dist/types/grid/grid.taro.d.ts +16 -0
  133. package/dist/types/grid/index.taro.d.ts +2 -0
  134. package/dist/types/griditem/griditem.taro.d.ts +20 -0
  135. package/dist/types/griditem/index.taro.d.ts +2 -0
  136. package/dist/types/icon/icon.taro.d.ts +1 -2
  137. package/dist/types/imagepreview/imagepreview.taro.d.ts +26 -0
  138. package/dist/types/imagepreview/index.taro.d.ts +2 -0
  139. package/dist/types/menu/index.taro.d.ts +2 -0
  140. package/dist/types/menu/menu.taro.d.ts +12 -0
  141. package/dist/types/menuitem/index.taro.d.ts +2 -0
  142. package/dist/types/menuitem/menuitem.taro.d.ts +23 -0
  143. package/dist/types/notify/notify.taro.d.ts +13 -0
  144. package/dist/types/nutui.react.d.ts +95 -1
  145. package/dist/types/picker/picker.taro.d.ts +2 -2
  146. package/dist/types/popup/popup.taro.d.ts +1 -1
  147. package/dist/types/shortpassword/shortpassword.taro.d.ts +3 -3
  148. package/dist/types/sidenavbar/sidenavbar.taro.d.ts +14 -2
  149. package/dist/types/sidenavbaritem/sidenavbaritem.taro.d.ts +10 -2
  150. package/dist/types/subsidenavbar/subsidenavbar.taro.d.ts +13 -3
  151. package/dist/types/swipe/index.taro.d.ts +2 -0
  152. package/dist/types/swipe/swipe.taro.d.ts +41 -0
  153. package/dist/types/table/table.taro.d.ts +2 -1
  154. package/dist/types/toast/toast.taro.d.ts +18 -0
  155. package/dist/types/virtuallist/virtuallist.taro.d.ts +2 -1
  156. package/package.json +4 -4
  157. package/dist/esm/calendar.taro-4b2103c1.js +0 -621
  158. package/dist/esm/raf-3fbb5f92.js +0 -126
@@ -0,0 +1,72 @@
1
+ @import '../../styles/mixins/text-ellipsis.scss';
2
+
3
+ .nut-theme-dark {
4
+ .nut-menu {
5
+ .nut-menu__bar {
6
+ background-color: $dark-background;
7
+
8
+ .nut-menu__item {
9
+ color: $dark-color;
10
+ }
11
+ }
12
+ }
13
+ }
14
+
15
+ .nut-menu {
16
+ &.scroll-fixed {
17
+ position: fixed;
18
+ top: $menu-scroll-fixed-top;
19
+ z-index: $menu-scroll-fixed-z-index;
20
+ width: 100%;
21
+ }
22
+
23
+ .nut-menu__bar {
24
+ position: relative;
25
+ display: flex;
26
+ line-height: $menu-bar-line-height;
27
+ background-color: $white;
28
+ box-shadow: $menu-bar-box-shadow;
29
+
30
+ &.opened {
31
+ z-index: $menu-bar-opened-z-index;
32
+ }
33
+
34
+ .nut-menu__item {
35
+ flex: 1;
36
+ text-align: center;
37
+ font-size: $menu-item-font-size;
38
+ color: $menu-item-text-color;
39
+ min-width: 0;
40
+
41
+ &.active {
42
+ color: $menu-item-active-text-color;
43
+ }
44
+
45
+ &.disabled {
46
+ color: $menu-item-disabled-color;
47
+ }
48
+
49
+ .nut-menu__title-icon {
50
+ transition: all 0.2s linear;
51
+ }
52
+
53
+ .nut-menu__title {
54
+ display: flex;
55
+ align-items: center;
56
+ justify-content: center;
57
+ max-width: 100%;
58
+
59
+ .nut-menu__title-text {
60
+ @include text-ellipsis;
61
+ display: block;
62
+ padding-left: $menu-title-text-padding-left;
63
+ padding-right: $menu-title-text-padding-right;
64
+ }
65
+
66
+ &.active .nut-menu__title-icon {
67
+ transform: rotate(180deg);
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
@@ -0,0 +1,90 @@
1
+
2
+ .nut-theme-dark {
3
+ .nut-menu-item__content {
4
+ .nut-menu-item__option {
5
+ color: $dark-color;
6
+ }
7
+ }
8
+ }
9
+
10
+ .nut-menu-item__content {
11
+ padding: $menu-item-content-padding;
12
+ max-height: $menu-item-content-max-height;
13
+ overflow-y: auto;
14
+ display: flex;
15
+ flex-wrap: wrap;
16
+ background: #fff;
17
+
18
+ &_fixed {
19
+ width: 100%;
20
+ opacity: 0;
21
+ position: fixed;
22
+ }
23
+
24
+ .nut-menu-item__option {
25
+ color: $title-color;
26
+ font-size: $font-size-2;
27
+ padding-top: $menu-item-option-padding-top;
28
+ padding-bottom: $menu-item-option-padding-bottom;
29
+ display: flex;
30
+ align-items: center;
31
+
32
+ &.active {
33
+ font-weight: 500;
34
+ color: $menu-item-active-text-color;
35
+ }
36
+
37
+ i {
38
+ margin-right: $menu-item-option-i-margin-right;
39
+ }
40
+ }
41
+ }
42
+
43
+ .nut-menu-item__wrap {
44
+ position: fixed;
45
+ width: 100%;
46
+ z-index: 2052;
47
+ overflow: hidden;
48
+ }
49
+
50
+ .overlay-fade-enter-active.nut-menu__overlay {
51
+ top: auto;
52
+ z-index: 2052;
53
+ }
54
+
55
+ .nut-menu__pop.nut-popup {
56
+ transition: all 0s ease 0s;
57
+ transform: none;
58
+ }
59
+
60
+ .placeholder-element {
61
+ position: fixed;
62
+ top: -$menu-bar-line-height;
63
+ left: 0;
64
+ right: 0;
65
+ z-index: $menu-bar-opened-z-index;
66
+ background-color: transparent;
67
+
68
+ &.up {
69
+ bottom: -$menu-bar-line-height;
70
+ }
71
+ }
72
+
73
+ .menu-item-enter {
74
+ opacity: 0;
75
+ }
76
+
77
+ .menu-item-enter-done {
78
+ opacity: 1;
79
+ transition: all 100ms;
80
+ }
81
+
82
+ .menu-item-exit {
83
+ opacity: 1;
84
+ transition: all 100ms;
85
+ }
86
+
87
+ .menu-item-exit-done {
88
+ opacity: 0;
89
+ transition: all 100ms;
90
+ }
@@ -92,7 +92,7 @@
92
92
  max-height: 100%;
93
93
  overflow-y: auto;
94
94
  background-color: $white;
95
- transition: transform 0.2s;
95
+ transition: transform 0.5s;
96
96
  -webkit-overflow-scrolling: touch;
97
97
  }
98
98
 
@@ -52,6 +52,7 @@
52
52
  top: 53%;
53
53
  }
54
54
  &__input {
55
+ box-sizing: border-box;
55
56
  display: flex;
56
57
  align-items: center;
57
58
  width: $searchbar-input-width;
@@ -27,6 +27,7 @@
27
27
  outline: 0 none;
28
28
  border: 0;
29
29
  text-decoration: none;
30
+ z-index: -99;
30
31
  }
31
32
 
32
33
  &-site {
@@ -102,7 +103,11 @@
102
103
  }
103
104
 
104
105
  &__sure {
105
- background: linear-gradient(135deg, $primary-color 0%, $primary-color-end 100%);
106
+ background: linear-gradient(
107
+ 135deg,
108
+ $primary-color 0%,
109
+ $primary-color-end 100%
110
+ );
106
111
  border-radius: 15px;
107
112
  padding: 8px 38px;
108
113
  line-height: 1;
@@ -0,0 +1,33 @@
1
+ .nut-swipe {
2
+ position: relative;
3
+ overflow: hidden;
4
+ cursor: grab;
5
+
6
+ &__wrapper {
7
+ transition-timing-function: cubic-bezier(0.18, 0.89, 0.32, 1);
8
+ transition-property: transform;
9
+ .nut-button {
10
+ height: 100%;
11
+ }
12
+ .nut-cell {
13
+ margin: 0;
14
+ }
15
+ }
16
+
17
+ &__left,
18
+ &__right {
19
+ position: absolute;
20
+ top: 0;
21
+ height: 100%;
22
+ }
23
+
24
+ &__left {
25
+ left: 0;
26
+ transform: translate3d(-100%, 0, 0);
27
+ }
28
+
29
+ &__right {
30
+ right: 0;
31
+ transform: translate3d(101%, 0, 0);
32
+ }
33
+ }
@@ -1,3 +1,12 @@
1
+ .nut-theme-dark {
2
+ .nut-textarea {
3
+ background: $dark-background;
4
+ &__textarea {
5
+ color: $dark-color;
6
+ }
7
+ }
8
+ }
9
+
1
10
  .nut-textarea {
2
11
  position: relative;
3
12
  width: 100%;
@@ -22,7 +31,7 @@
22
31
  color: $textarea-limit-color;
23
32
  }
24
33
  &__textarea {
25
- min-height: $textarea-height;
34
+ // min-height: $textarea-height;
26
35
  outline: none;
27
36
  display: block;
28
37
  box-sizing: border-box;
@@ -30,10 +39,16 @@
30
39
  min-width: 0;
31
40
  margin: 0;
32
41
  padding: 0;
42
+ font-size: $textarea-font;
33
43
  color: $textarea-text-color;
34
44
  text-align: left;
35
45
  background-color: transparent;
36
46
  border: 0;
37
47
  resize: none;
38
48
  }
49
+ .cpoyText {
50
+ position: absolute;
51
+ top: -999999px;
52
+ left: -999999px;
53
+ }
39
54
  }