@nutui/nutui-react-taro 2.7.6 → 2.7.8

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 (54) hide show
  1. package/CHANGELOG.md +29 -7
  2. package/dist/esm/Address/style/style.css +1 -1
  3. package/dist/esm/Address.js +1 -1
  4. package/dist/esm/Animate/style/style.css +1 -1
  5. package/dist/esm/Animate.js +1 -1
  6. package/dist/esm/Calendar/style/style.css +1 -1
  7. package/dist/esm/Calendar.js +1 -1
  8. package/dist/esm/CalendarCard.js +1 -1
  9. package/dist/esm/CalendarItem.js +1 -1
  10. package/dist/esm/Cascader/style/style.css +1 -1
  11. package/dist/esm/Cascader.js +1 -1
  12. package/dist/esm/DatePicker.js +1 -1
  13. package/dist/esm/Empty.js +1 -1
  14. package/dist/esm/Form.js +2 -1
  15. package/dist/esm/FormItem.js +1 -1
  16. package/dist/esm/TabPane.js +1 -1
  17. package/dist/esm/Tabs/style/style.css +1 -1
  18. package/dist/esm/Tabs.js +1 -1
  19. package/dist/esm/{address.taro-BCoDZM6h.js → address.taro-Ck0ZmxRg.js} +1 -1
  20. package/dist/esm/{animate.taro-CQVEyDKL.js → animate.taro-BHDZMzJF.js} +9 -12
  21. package/dist/esm/{calendar.taro-CM4yWFlF.js → calendar.taro-CUDVpJBa.js} +3 -3
  22. package/dist/esm/{calendarcard.taro-CvWyBqnr.js → calendarcard.taro-BiOnui_b.js} +4 -4
  23. package/dist/esm/{calendaritem.taro-BGbbuJOS.js → calendaritem.taro-DveeC4_t.js} +237 -219
  24. package/dist/esm/{cascader.taro-BwRnRQXE.js → cascader.taro-DUJvcGw0.js} +1 -1
  25. package/dist/esm/date-BmUWlDuN.js +147 -0
  26. package/dist/esm/{datepicker.taro-DicskhhH.js → datepicker.taro-Dwh8sKhJ.js} +8 -0
  27. package/dist/esm/{empty.taro-DhCHSdca.js → empty.taro-ChtnK90s.js} +1 -1
  28. package/dist/esm/{formitem.taro-CU6rrcJD.js → formitem.taro-Bee3MWwq.js} +121 -31
  29. package/dist/esm/nutui-react.es.js +11 -11
  30. package/dist/esm/{tabpane.taro-BAe86j3t.js → tabpane.taro-BAihO3w8.js} +2 -1
  31. package/dist/esm/{tabs.taro-CnXiMR_B.js → tabs.taro-sp_DNWis.js} +26 -44
  32. package/dist/locales/base.js +1 -1
  33. package/dist/locales/en-US.js +1 -1
  34. package/dist/locales/id-ID.js +1 -1
  35. package/dist/locales/tr-TR.js +1 -1
  36. package/dist/locales/zh-CN.js +1 -1
  37. package/dist/locales/zh-TW.js +1 -1
  38. package/dist/locales/zh-UG.js +1 -1
  39. package/dist/nutui.react.es.js +529 -555
  40. package/dist/nutui.react.umd.js +529 -555
  41. package/dist/packages/animate/animate.scss +63 -105
  42. package/dist/packages/calendar/calendar.scss +9 -9
  43. package/dist/packages/tabs/tabs.scss +72 -115
  44. package/dist/style.css +1 -1
  45. package/dist/types/packages/animate/animate.taro.d.ts +2 -1
  46. package/dist/types/packages/form/__tests__/merge.spec.d.ts +1 -0
  47. package/dist/types/packages/form/index.d.ts +2 -1
  48. package/dist/types/packages/form/index.taro.d.ts +2 -1
  49. package/dist/types/packages/form/useform.d.ts +2 -1
  50. package/dist/types/packages/form/useform.taro.d.ts +2 -1
  51. package/dist/types/utils/date.d.ts +54 -52
  52. package/dist/types/utils/merge.d.ts +14 -1
  53. package/package.json +1 -1
  54. package/dist/esm/date-CYwRNlGq.js +0 -219
@@ -1,185 +1,161 @@
1
1
  .nut-animate {
2
- /* Animation css */
2
+ /* Animation CSS */
3
3
  [class*='nut-animate-'] {
4
4
  animation-duration: 0.5s;
5
5
  animation-timing-function: ease-out;
6
6
  animation-fill-mode: both;
7
7
  }
8
8
 
9
- //右侧向左侧划入
10
- .nut-animate-slide-right {
11
- animation-name: slide-right;
12
- }
13
-
9
+ /* Slide Animations */
14
10
  @keyframes slide-right {
15
11
  0% {
16
12
  opacity: 0;
17
13
  transform: translateX(100%);
18
14
  }
19
-
20
15
  100% {
21
16
  opacity: 1;
22
17
  transform: translateX(0);
23
18
  }
24
19
  }
25
20
 
26
- //左侧向右侧划入
27
- .nut-animate-slide-left {
28
- animation-name: slide-left;
29
- }
30
-
31
21
  @keyframes slide-left {
32
22
  0% {
33
23
  opacity: 0;
34
24
  transform: translateX(-100%);
35
25
  }
36
-
37
26
  100% {
38
27
  opacity: 1;
39
28
  transform: translateX(0);
40
29
  }
41
30
  }
42
31
 
43
- //上面向下面划入
44
- .nut-animate-slide-top {
45
- animation-name: slide-top;
46
- }
47
-
48
32
  @keyframes slide-top {
49
33
  0% {
50
34
  opacity: 0;
51
35
  transform: translateY(-100%);
52
36
  }
53
-
54
37
  100% {
55
38
  opacity: 1;
56
39
  transform: translateY(0);
57
40
  }
58
41
  }
59
42
 
60
- //下面向上面划入
61
- .nut-animate-slide-bottom {
62
- animation-name: slide-bottom;
63
- }
64
-
65
43
  @keyframes slide-bottom {
66
44
  0% {
67
45
  opacity: 0;
68
46
  transform: translateY(100%);
69
47
  }
70
-
71
48
  100% {
72
49
  opacity: 1;
73
50
  transform: translateY(0);
74
51
  }
75
52
  }
76
53
 
77
- //抖动
78
- .nut-animate-shake {
79
- animation-name: shake;
54
+ // Assign slide animations
55
+ // 右侧向左侧滑入
56
+ .nut-animate-slide-right {
57
+ animation-name: slide-right;
58
+ }
59
+ // 左侧向右侧滑入
60
+ .nut-animate-slide-left {
61
+ animation-name: slide-left;
62
+ }
63
+ // 上面向下面滑入
64
+ .nut-animate-slide-top {
65
+ animation-name: slide-top;
66
+ }
67
+ // 下面向上面滑入
68
+ .nut-animate-slide-bottom {
69
+ animation-name: slide-bottom;
80
70
  }
81
71
 
72
+ /* Shake Animation */
82
73
  @keyframes shake {
83
74
  0%,
84
75
  100% {
85
76
  transform: translateX(0);
86
77
  }
87
-
88
78
  10% {
89
79
  transform: translateX(-9px);
90
80
  }
91
-
92
81
  20% {
93
82
  transform: translateX(8px);
94
83
  }
95
-
96
84
  30% {
97
85
  transform: translateX(-7px);
98
86
  }
99
-
100
87
  40% {
101
88
  transform: translateX(6px);
102
89
  }
103
-
104
90
  50% {
105
91
  transform: translateX(-5px);
106
92
  }
107
-
108
93
  60% {
109
94
  transform: translateX(4px);
110
95
  }
111
-
112
96
  70% {
113
97
  transform: translateX(-3px);
114
98
  }
115
-
116
99
  80% {
117
100
  transform: translateX(2px);
118
101
  }
119
-
120
102
  90% {
121
103
  transform: translateX(-1px);
122
104
  }
123
105
  }
124
-
125
- //心跳
126
- .nut-animate-ripple {
127
- animation-name: ripple;
106
+ .nut-animate-shake {
107
+ animation-name: shake;
128
108
  }
129
109
 
110
+ /* Ripple Animation */
130
111
  @keyframes ripple {
131
112
  0% {
132
113
  transform: scale(1);
133
114
  }
134
-
135
115
  50% {
136
116
  transform: scale(1.1);
137
117
  }
138
118
  }
139
-
140
- //呼吸灯
141
- .nut-animate-breath {
142
- animation-name: breath;
143
- animation-duration: 2700ms;
144
- animation-timing-function: ease-in-out;
145
- animation-direction: alternate;
119
+ .nut-animate-ripple {
120
+ animation-name: ripple;
146
121
  }
147
122
 
123
+ /* Breath Animation */
148
124
  @keyframes breath {
149
- 0% {
125
+ 0%,
126
+ 100% {
150
127
  transform: scale(1);
151
128
  }
152
-
153
129
  50% {
154
130
  transform: scale(1.1);
155
131
  }
156
-
157
- 100% {
158
- transform: scale(1);
159
- }
132
+ }
133
+ .nut-animate-breath {
134
+ animation-name: breath;
135
+ animation-duration: 2700ms;
136
+ animation-timing-function: ease-in-out;
137
+ animation-direction: alternate;
160
138
  }
161
139
 
162
- // 水波
140
+ /* Twinkle Animation */
163
141
  .nut-animate-twinkle {
164
142
  position: relative;
165
-
166
143
  &::after,
167
144
  &::before {
168
- width: 60 * 1px;
169
- height: 60 * 1px;
145
+ width: 60px;
146
+ height: 60px;
170
147
  content: '';
171
148
  box-sizing: border-box;
172
- border: 4 * 1px solid rgba(255, 255, 255, 0.6);
149
+ border: 4px solid rgba(255, 255, 255, 0.6);
173
150
  position: absolute;
174
- border-radius: calc(60 / 2) * 1px;
151
+ border-radius: 30px;
175
152
  right: 50%;
176
- margin-top: calc(-30 / 2) * 1px;
177
- margin-right: calc(-60 / 2) * 1px;
153
+ margin-top: -30px;
154
+ margin-right: -30px;
178
155
  z-index: 1;
179
156
  transform: scale(0);
180
157
  animation: twinkle 2s ease-out infinite;
181
158
  }
182
-
183
159
  &::after {
184
160
  animation-delay: 0.4s;
185
161
  }
@@ -189,11 +165,9 @@
189
165
  0% {
190
166
  transform: scale(0);
191
167
  }
192
-
193
168
  20% {
194
169
  opacity: 1;
195
170
  }
196
-
197
171
  50%,
198
172
  100% {
199
173
  transform: scale(1.4);
@@ -201,13 +175,13 @@
201
175
  }
202
176
  }
203
177
 
178
+ /* Flicker Animation */
204
179
  .nut-animate-flicker {
205
180
  position: relative;
206
181
  overflow: hidden;
207
-
208
182
  &::after {
209
- width: 100 * 1px;
210
- height: 60 * 1px;
183
+ width: 100px;
184
+ height: 60px;
211
185
  position: absolute;
212
186
  left: 0;
213
187
  top: 0;
@@ -220,83 +194,67 @@
220
194
  );
221
195
  animation: flicker 1.5s linear infinite;
222
196
  transform: skewX(-20deg);
223
- filter: blur(3 * 1px);
197
+ filter: blur(3px);
224
198
  }
225
199
  }
226
200
 
227
201
  @keyframes flicker {
228
202
  0% {
229
- transform: translateX(-100 * 1px) skewX(-20deg);
203
+ transform: translateX(-100px) skewX(-20deg);
230
204
  }
231
-
232
205
  40%,
233
206
  100% {
234
- transform: translateX(150 * 1px) skewX(-20deg);
207
+ transform: translateX(150px) skewX(-20deg);
235
208
  }
236
209
  }
237
210
 
238
- // jump-跳跃
239
- .nut-animate-jump {
240
- transform-origin: center center;
241
- animation: jump 0.7s linear;
242
- }
243
-
211
+ /* Jump Animation */
244
212
  @keyframes jump {
245
213
  0% {
246
- animation-timing-function: ease-in;
247
- transform: rotate(0deg) translateY(0);
214
+ transform: rotate(0) translateY(0);
248
215
  }
249
-
250
216
  25% {
251
- animation-timing-function: ease-out;
252
- transform: rotate(10deg) translateY(20 * 1px);
217
+ transform: rotate(10deg) translateY(20px);
253
218
  }
254
-
255
219
  50% {
256
- animation-timing-function: ease-in;
257
- transform: rotate(0deg) translateY(-10 * 1px);
220
+ transform: rotate(0) translateY(-10px);
258
221
  }
259
-
260
222
  75% {
261
- animation-timing-function: ease-out;
262
- transform: rotate(-10deg) translateY(20 * 1px);
223
+ transform: rotate(-10deg) translateY(20px);
263
224
  }
264
-
265
225
  100% {
266
- animation-timing-function: ease-in;
267
- transform: rotate(0deg) translateY(0);
226
+ transform: rotate(0) translateY(0);
268
227
  }
269
228
  }
270
-
271
- // 漂浮
272
- .nut-animate-float {
273
- position: relative;
274
- animation-name: float-pop;
229
+ .nut-animate-jump {
230
+ transform-origin: center center;
231
+ animation: jump 0.7s linear;
275
232
  }
276
233
 
234
+ /* Float Animation */
277
235
  @keyframes float-pop {
278
236
  0% {
279
- top: 0px;
237
+ top: 0;
280
238
  }
281
-
282
239
  25% {
283
240
  top: 1px;
284
241
  }
285
-
286
242
  50% {
287
243
  top: 4px;
288
244
  }
289
-
290
245
  75% {
291
246
  top: 1px;
292
247
  }
293
-
294
248
  100% {
295
- top: 0px;
249
+ top: 0;
296
250
  }
297
251
  }
252
+ .nut-animate-float {
253
+ position: relative;
254
+ animation-name: float-pop;
255
+ }
298
256
 
299
- //循环
257
+ /* Loop Animation */
300
258
  .loop {
301
259
  animation-iteration-count: infinite;
302
260
  }
@@ -189,18 +189,18 @@
189
189
  }
190
190
  }
191
191
 
192
- &-choose-disabled {
193
- background-color: $calendar-choose-disable-background-color;
194
- color: $calendar-disable-color !important;
195
-
196
- .nut-calendar-day-info-curr {
197
- display: none;
198
- }
199
- }
200
-
201
192
  &-choose {
202
193
  background-color: $calendar-choose-background-color;
203
194
  color: $calendar-choose-color;
195
+
196
+ &-disabled {
197
+ background-color: $calendar-choose-disable-background-color;
198
+ color: $calendar-disable-color !important;
199
+
200
+ .nut-calendar-day-info-curr {
201
+ display: none;
202
+ }
203
+ }
204
204
  }
205
205
  }
206
206