@nutui/nutui-react-taro 2.0.1 → 2.0.2-beta.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 (91) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/esm/ActionSheet/style/style.css +1 -1
  3. package/dist/esm/ActionSheet.js +3 -3
  4. package/dist/esm/Address/style/style.css +1 -1
  5. package/dist/esm/Address.js +4 -4
  6. package/dist/esm/AnimatingNumbers/style/style.css +1 -1
  7. package/dist/esm/Calendar/style/style.css +1 -1
  8. package/dist/esm/Calendar.js +4 -4
  9. package/dist/esm/CalendarItem.js +1 -1
  10. package/dist/esm/Cascader/style/style.css +1 -1
  11. package/dist/esm/Cascader.js +3 -3
  12. package/dist/esm/DatePicker/style/style.css +1 -1
  13. package/dist/esm/DatePicker.js +4 -4
  14. package/dist/esm/Dialog/style/style.css +1 -1
  15. package/dist/esm/Dialog.js +2 -2
  16. package/dist/esm/FixedNav/style/style.css +1 -1
  17. package/dist/esm/FixedNav.js +3 -2
  18. package/dist/esm/ImagePreview/style/style.css +1 -1
  19. package/dist/esm/ImagePreview.js +3 -3
  20. package/dist/esm/Menu/style/style.css +1 -1
  21. package/dist/esm/Menu.js +3 -3
  22. package/dist/esm/MenuItem/style/style.css +1 -1
  23. package/dist/esm/MenuItem.js +2 -2
  24. package/dist/esm/NumberKeyboard/style/style.css +1 -1
  25. package/dist/esm/NumberKeyboard.js +3 -3
  26. package/dist/esm/Overlay/style/style.css +1 -1
  27. package/dist/esm/Overlay.js +2 -1
  28. package/dist/esm/Picker/style/style.css +1 -1
  29. package/dist/esm/Picker.js +3 -3
  30. package/dist/esm/Popover/style/style.css +1 -1
  31. package/dist/esm/Popover.js +3 -3
  32. package/dist/esm/Popup/style/style.css +1 -1
  33. package/dist/esm/Popup.js +2 -2
  34. package/dist/esm/ShortPassword/style/style.css +1 -1
  35. package/dist/esm/ShortPassword.js +3 -3
  36. package/dist/esm/SideNavBar/style/style.css +1 -1
  37. package/dist/esm/SideNavBar.js +3 -3
  38. package/dist/esm/TimeSelect/style/style.css +1 -1
  39. package/dist/esm/TimeSelect.js +3 -3
  40. package/dist/esm/Toast.js +3 -2
  41. package/dist/esm/{actionsheet.taro-0fecc929.js → actionsheet.taro-8a2b2622.js} +1 -1
  42. package/dist/esm/{address.taro-3e9addcc.js → address.taro-8fa9f15c.js} +2 -2
  43. package/dist/esm/{calendar.taro-eedfb0ac.js → calendar.taro-1fbc673a.js} +8 -5
  44. package/dist/esm/{calendaritem.taro-22e09e6d.js → calendaritem.taro-39463c08.js} +11 -6
  45. package/dist/esm/{cascader.taro-cb5ead51.js → cascader.taro-840fdc66.js} +1 -1
  46. package/dist/esm/{datepicker.taro-a6b0ae2d.js → datepicker.taro-afea03e5.js} +1 -1
  47. package/dist/esm/{dialog.taro-2c2ca662.js → dialog.taro-e25e7241.js} +1 -1
  48. package/dist/esm/{fixednav.taro-c905d63e.js → fixednav.taro-5c8dd9c2.js} +1 -1
  49. package/dist/esm/{imagepreview.taro-71d57d47.js → imagepreview.taro-c62cdc3a.js} +1 -1
  50. package/dist/esm/{menu.taro-e8e96336.js → menu.taro-6450a3ae.js} +1 -1
  51. package/dist/esm/{menuitem.taro-7f8c12cf.js → menuitem.taro-11bd648e.js} +1 -1
  52. package/dist/esm/{numberkeyboard.taro-04a2f2c8.js → numberkeyboard.taro-f89f210b.js} +1 -1
  53. package/dist/esm/nutui-react.es.js +21 -21
  54. package/dist/esm/{overlay.taro-75012bd3.js → overlay.taro-08f8efbc.js} +19 -22
  55. package/dist/esm/{picker.taro-539089cb.js → picker.taro-9f2024c6.js} +1 -1
  56. package/dist/esm/{popover.taro-cec3a7a0.js → popover.taro-c8cac618.js} +1 -1
  57. package/dist/esm/{popup.taro-1cd1f9d2.js → popup.taro-938ee260.js} +5 -6
  58. package/dist/esm/{shortpassword.taro-9c3be7da.js → shortpassword.taro-897e620f.js} +1 -1
  59. package/dist/esm/{sidenavbar.taro-61eaa60b.js → sidenavbar.taro-25564345.js} +1 -1
  60. package/dist/esm/{timeselect.taro-45ab9d52.js → timeselect.taro-abdbb92f.js} +1 -1
  61. package/dist/esm/{toast.taro-85007ac8.js → toast.taro-56e9d2a1.js} +1 -1
  62. package/dist/esm/types/src/packages/calendar/calendar.d.ts +1 -0
  63. package/dist/esm/types/src/packages/calendar/calendar.taro.d.ts +1 -0
  64. package/dist/esm/types/src/packages/calendaritem/calendaritem.d.ts +1 -0
  65. package/dist/esm/types/src/packages/calendaritem/calendaritem.taro.d.ts +1 -0
  66. package/dist/esm/types/src/packages/circleprogress/circleprogress.d.ts +1 -1
  67. package/dist/esm/types/src/packages/circleprogress/circleprogress.taro.d.ts +1 -1
  68. package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -1
  69. package/dist/locales/base.js +1 -1
  70. package/dist/locales/en-US.js +1 -1
  71. package/dist/locales/id-ID.js +1 -1
  72. package/dist/locales/tr-TR.js +1 -1
  73. package/dist/locales/zh-CN.js +1 -1
  74. package/dist/locales/zh-TW.js +1 -1
  75. package/dist/locales/zh-UG.js +1 -1
  76. package/dist/nutui.react.es.js +2624 -2610
  77. package/dist/nutui.react.umd.js +2624 -2610
  78. package/dist/packages/animatingnumbers/countup.scss +5 -1
  79. package/dist/packages/calendar/calendar.scss +9 -0
  80. package/dist/packages/overlay/overlay.scss +32 -34
  81. package/dist/packages/popup/popup.scss +12 -12
  82. package/dist/style.css +1 -1
  83. package/dist/style.mjs +1 -1
  84. package/dist/styles/variables-jmapp.scss +1 -1
  85. package/dist/styles/variables.scss +18 -5
  86. package/dist/types/packages/calendar/calendar.taro.d.ts +5 -0
  87. package/dist/types/packages/calendaritem/calendaritem.taro.d.ts +1 -0
  88. package/dist/types/packages/circleprogress/circleprogress.taro.d.ts +1 -1
  89. package/dist/types/packages/configprovider/types.d.ts +1 -1
  90. package/dist/types/packages/overlay/overlay.taro.d.ts +2 -2
  91. package/package.json +4 -2
@@ -11,8 +11,12 @@
11
11
  color: $title-color;
12
12
  font-weight: bold;
13
13
  }
14
- &__number,
15
14
  &__separator {
15
+ display: flex;
16
+ height: 80%;
17
+ align-items: flex-end;
18
+ }
19
+ &__number {
16
20
  display: flex;
17
21
  flex-direction: column;
18
22
  align-items: center;
@@ -192,6 +192,15 @@
192
192
  }
193
193
  }
194
194
 
195
+ &-choose-disabled {
196
+ background-color: $calendar-choose-disable-background-color;
197
+ color: $calendar-disable-color !important;
198
+
199
+ .nut-calendar-day-info-curr {
200
+ display: none;
201
+ }
202
+ }
203
+
195
204
  &-choose {
196
205
  background-color: $calendar-choose-background-color;
197
206
  color: $calendar-choose-color;
@@ -5,15 +5,6 @@
5
5
  width: 100%;
6
6
  height: 100%;
7
7
  background: $overlay-bg-color;
8
- }
9
-
10
- .nut-overflow-hidden {
11
- overflow: hidden !important;
12
- }
13
-
14
- .nut-overlay-fade-enter-active {
15
- animation: nut-fade-in;
16
-
17
8
  .wrapper {
18
9
  .content {
19
10
  background-color: $overlay-content-bg-color;
@@ -22,42 +13,49 @@
22
13
  }
23
14
  }
24
15
 
25
- .nut-overlay-fade-leave-active {
26
- animation: nut-fade-out;
16
+ .nut-overflow-hidden {
17
+ overflow: hidden !important;
27
18
  }
28
19
 
29
- .nut-overlay-first-render {
30
- display: none;
31
- }
20
+ .nut-overlay-slide {
21
+ @keyframes nut-fade-in {
22
+ 0% {
23
+ opacity: 0;
24
+ }
32
25
 
33
- .nut-overlay-hidden-render {
34
- display: none;
35
- }
26
+ 1% {
27
+ opacity: 0;
28
+ }
36
29
 
37
- @keyframes nut-fade-in {
38
- 0% {
39
- opacity: 0;
30
+ 100% {
31
+ opacity: 1;
32
+ }
40
33
  }
41
34
 
42
- 1% {
43
- opacity: 0;
44
- }
35
+ @keyframes nut-fade-out {
36
+ 0% {
37
+ opacity: 1;
38
+ }
45
39
 
46
- 100% {
47
- opacity: 1;
48
- }
49
- }
40
+ 1% {
41
+ opacity: 1;
42
+ }
50
43
 
51
- @keyframes nut-fade-out {
52
- 0% {
53
- opacity: 1;
44
+ 100% {
45
+ opacity: 0;
46
+ }
54
47
  }
55
48
 
56
- 1% {
57
- opacity: 1;
49
+ &-enter-active,
50
+ &-appear-active {
51
+ animation-fill-mode: both;
52
+ animation-name: nut-fade-in;
53
+ animation-duration: $overlay-animation-duration;
58
54
  }
59
55
 
60
- 100% {
61
- opacity: 0;
56
+ &-exit-active {
57
+ animation-fill-mode: both;
58
+ animation-name: nut-fade-out;
59
+ animation-duration: $overlay-animation-duration;
62
60
  }
63
61
  }
@@ -139,13 +139,13 @@
139
139
  &-default-enter-active {
140
140
  animation-fill-mode: both;
141
141
  animation-name: popup-scale-fade-in;
142
- animation-duration: 0.3s;
142
+ animation-duration: $popup-animation-duration;
143
143
  }
144
144
 
145
145
  &-default-exit-active {
146
146
  animation-fill-mode: both;
147
147
  animation-name: popup-scale-fade-out;
148
- animation-duration: 0.3s;
148
+ animation-duration: $popup-animation-duration;
149
149
  }
150
150
 
151
151
  @keyframes popup-fade-in {
@@ -171,13 +171,13 @@
171
171
  &-center-enter-active {
172
172
  animation-fill-mode: both;
173
173
  animation-name: popup-fade-in;
174
- animation-duration: 0.3s;
174
+ animation-duration: $popup-animation-duration;
175
175
  }
176
176
 
177
177
  &-center-exit-active {
178
178
  animation-fill-mode: both;
179
179
  animation-name: popup-fade-out;
180
- animation-duration: 0.3s;
180
+ animation-duration: $popup-animation-duration;
181
181
  }
182
182
 
183
183
  /* 从顶部滑出 */
@@ -198,13 +198,13 @@
198
198
  transform: translate3d(0, 0%, 0);
199
199
  animation-fill-mode: both;
200
200
  animation-name: popup-slide-top-enter;
201
- animation-duration: 0.3s;
201
+ animation-duration: $popup-animation-duration;
202
202
  }
203
203
 
204
204
  &-top-exit-active {
205
205
  animation-fill-mode: both;
206
206
  animation-name: popup-slide-top-exit;
207
- animation-duration: 0.3s;
207
+ animation-duration: $popup-animation-duration;
208
208
  }
209
209
 
210
210
  /* 从右侧滑出 */
@@ -225,13 +225,13 @@
225
225
  transform: translate3d(0, 0, 0);
226
226
  animation-fill-mode: both;
227
227
  animation-name: popup-slide-right-enter;
228
- animation-duration: 0.3s;
228
+ animation-duration: $popup-animation-duration;
229
229
  }
230
230
 
231
231
  &-right-exit {
232
232
  animation-fill-mode: both;
233
233
  animation-name: popup-slide-right-exit;
234
- animation-duration: 0.3s;
234
+ animation-duration: $popup-animation-duration;
235
235
  }
236
236
 
237
237
  /* 从底部滑出 */
@@ -252,13 +252,13 @@
252
252
  transform: translate(0, 0);
253
253
  animation-fill-mode: both;
254
254
  animation-name: popup-slide-bottom-enter;
255
- animation-duration: 0.3s;
255
+ animation-duration: $popup-animation-duration;
256
256
  }
257
257
 
258
258
  &-bottom-exit {
259
259
  animation-fill-mode: both;
260
260
  animation-name: slide-bottom-exit;
261
- animation-duration: 0.3s;
261
+ animation-duration: $popup-animation-duration;
262
262
  }
263
263
 
264
264
  /* 从左侧滑出 */
@@ -279,14 +279,14 @@
279
279
  transform: translate(0, 0);
280
280
  animation-fill-mode: both;
281
281
  animation-name: popup-slide-left-enter;
282
- animation-duration: 0.3s;
282
+ animation-duration: $popup-animation-duration;
283
283
  }
284
284
 
285
285
  &-left-exit-active,
286
286
  &-left-exit-done {
287
287
  animation-fill-mode: both;
288
288
  animation-name: popup-slide-left-exit;
289
- animation-duration: 0.3s;
289
+ animation-duration: $popup-animation-duration;
290
290
  }
291
291
  }
292
292