@nutui/nutui-react 1.3.14 → 1.3.15-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 (41) hide show
  1. package/CHANGELOG.md +21 -12
  2. package/dist/esm/Animate/style/index.js +2 -0
  3. package/dist/esm/Animate.js +55 -0
  4. package/dist/esm/Ellipsis/style/index.js +2 -0
  5. package/dist/esm/Ellipsis.js +178 -0
  6. package/dist/esm/nutui-react.es.js +2 -0
  7. package/dist/esm/types/src/locales/zh-UG.d.ts +3 -0
  8. package/dist/esm/types/src/packages/animate/__tests__/animate.spec.d.ts +1 -0
  9. package/dist/esm/types/src/packages/animate/animate.d.ts +11 -0
  10. package/dist/esm/types/src/packages/animate/demo.d.ts +4 -0
  11. package/dist/esm/types/src/packages/animate/index.d.ts +2 -0
  12. package/dist/esm/types/src/packages/animate/index.taro.d.ts +2 -0
  13. package/dist/esm/types/src/packages/animate/type.d.ts +2 -0
  14. package/dist/esm/types/src/packages/ellipsis/__test__/ellipsis.spec.d.ts +1 -0
  15. package/dist/esm/types/src/packages/ellipsis/demo.d.ts +3 -0
  16. package/dist/esm/types/src/packages/ellipsis/ellipsis.d.ts +14 -0
  17. package/dist/esm/types/src/packages/ellipsis/index.d.ts +2 -0
  18. package/dist/esm/types/src/packages/ellipsis/index.taro.d.ts +2 -0
  19. package/dist/esm/types/src/packages/nutui.react.build.d.ts +3 -1
  20. package/dist/esm/types/src/packages/nutui.react.d.ts +5 -1
  21. package/dist/esm/types/src/packages/nutui.react.scss.d.ts +2 -0
  22. package/dist/esm/types/src/packages/nutui.react.taro.d.ts +3 -1
  23. package/dist/esm/types/src/packages/nutui.react.taro.scss.d.ts +1 -0
  24. package/dist/esm/types/src/packages/nutui.taro.react.build.d.ts +2 -1
  25. package/dist/locales/base.js +1 -1
  26. package/dist/locales/en-US.js +1 -1
  27. package/dist/locales/id-ID.js +1 -1
  28. package/dist/locales/zh-CN.js +1 -1
  29. package/dist/locales/zh-TW.js +1 -1
  30. package/dist/locales/zh-UG.d.ts +3 -0
  31. package/dist/locales/zh-UG.js +132 -0
  32. package/dist/nutui.react.es.js +453 -242
  33. package/dist/nutui.react.umd.js +454 -241
  34. package/dist/packages/animate/animate.scss +284 -0
  35. package/dist/packages/ellipsis/ellipsis.scss +17 -0
  36. package/dist/style.css +1 -1
  37. package/dist/style.es.js +1 -1
  38. package/dist/styles/themes/default.scss +2 -0
  39. package/dist/types/index.d.ts +27 -1
  40. package/dist/types/nutui.react.build.ts +5 -1
  41. package/package.json +2 -1
@@ -0,0 +1,284 @@
1
+ .nut-animate {
2
+ .nut-ani-container {
3
+ display: inline-block;
4
+ }
5
+ /* Animation css */
6
+ [class*='nut-animate-'] {
7
+ animation-duration: 0.5s;
8
+ animation-timing-function: ease-out;
9
+ animation-fill-mode: both;
10
+ }
11
+
12
+ //右侧向左侧划入
13
+ .nut-animate-slide-right {
14
+ animation-name: slide-right;
15
+ }
16
+ @keyframes slide-right {
17
+ 0% {
18
+ opacity: 0;
19
+ transform: translateX(100%);
20
+ }
21
+
22
+ 100% {
23
+ opacity: 1;
24
+ transform: translateX(0);
25
+ }
26
+ }
27
+
28
+ //左侧向右侧划入
29
+ .nut-animate-slide-left {
30
+ animation-name: slide-left;
31
+ }
32
+ @keyframes slide-left {
33
+ 0% {
34
+ opacity: 0;
35
+ transform: translateX(-100%);
36
+ }
37
+
38
+ 100% {
39
+ opacity: 1;
40
+ transform: translateX(0);
41
+ }
42
+ }
43
+
44
+ //上面向下面划入
45
+ .nut-animate-slide-top {
46
+ animation-name: slide-top;
47
+ }
48
+ @keyframes slide-top {
49
+ 0% {
50
+ opacity: 0;
51
+ transform: translateY(-100%);
52
+ }
53
+
54
+ 100% {
55
+ opacity: 1;
56
+ transform: translateY(0);
57
+ }
58
+ }
59
+
60
+ //下面向上面划入
61
+ .nut-animate-slide-bottom {
62
+ animation-name: slide-bottom;
63
+ }
64
+ @keyframes slide-bottom {
65
+ 0% {
66
+ opacity: 0;
67
+ transform: translateY(100%);
68
+ }
69
+
70
+ 100% {
71
+ opacity: 1;
72
+ transform: translateY(0);
73
+ }
74
+ }
75
+
76
+ //抖动
77
+ .nut-animate-shake {
78
+ animation-name: shake;
79
+ }
80
+ @keyframes shake {
81
+ 0%,
82
+ 100% {
83
+ transform: translateX(0);
84
+ }
85
+
86
+ 10% {
87
+ transform: translateX(-9px);
88
+ }
89
+
90
+ 20% {
91
+ transform: translateX(8px);
92
+ }
93
+
94
+ 30% {
95
+ transform: translateX(-7px);
96
+ }
97
+
98
+ 40% {
99
+ transform: translateX(6px);
100
+ }
101
+
102
+ 50% {
103
+ transform: translateX(-5px);
104
+ }
105
+
106
+ 60% {
107
+ transform: translateX(4px);
108
+ }
109
+
110
+ 70% {
111
+ transform: translateX(-3px);
112
+ }
113
+
114
+ 80% {
115
+ transform: translateX(2px);
116
+ }
117
+
118
+ 90% {
119
+ transform: translateX(-1px);
120
+ }
121
+ }
122
+
123
+ //心跳
124
+ .nut-animate-ripple {
125
+ animation-name: ripple;
126
+ }
127
+ @keyframes ripple {
128
+ 0% {
129
+ transform: scale(1);
130
+ }
131
+ 50% {
132
+ transform: scale(1.1);
133
+ }
134
+ }
135
+
136
+ //呼吸灯
137
+ .nut-animate-breath {
138
+ animation-name: breath;
139
+ animation-duration: 2700ms;
140
+ animation-timing-function: ease-in-out;
141
+ animation-direction: alternate;
142
+ }
143
+ @keyframes breath {
144
+ 0% {
145
+ transform: scale(1);
146
+ }
147
+ 50% {
148
+ transform: scale(1.1);
149
+ }
150
+ 100% {
151
+ transform: scale(1);
152
+ }
153
+ }
154
+
155
+ // 水波
156
+ .nut-animate-twinkle {
157
+ position: relative;
158
+ &::after,
159
+ &::before {
160
+ width: 60 * 1px;
161
+ height: 60 * 1px;
162
+ content: '';
163
+ box-sizing: border-box;
164
+ border: 4 * 1px solid rgba(255, 255, 255, 0.6);
165
+ position: absolute;
166
+ border-radius: calc(60 / 2) * 1px;
167
+ right: 50%;
168
+ margin-top: calc(-30 / 2) * 1px;
169
+ margin-right: calc(-60 / 2) * 1px;
170
+ z-index: 1;
171
+ transform: scale(0);
172
+ animation: twinkle 2s ease-out infinite;
173
+ }
174
+
175
+ &::after {
176
+ animation-delay: 0.4s;
177
+ }
178
+ }
179
+ @keyframes twinkle {
180
+ 0% {
181
+ transform: scale(0);
182
+ }
183
+ 20% {
184
+ opacity: 1;
185
+ }
186
+ 50%,
187
+ 100% {
188
+ transform: scale(1.4);
189
+ opacity: 0;
190
+ }
191
+ }
192
+
193
+ .nut-animate-flicker {
194
+ position: relative;
195
+ overflow: hidden;
196
+
197
+ &::after {
198
+ width: 100 * 1px;
199
+ height: 60 * 1px;
200
+ position: absolute;
201
+ left: 0;
202
+ top: 0;
203
+ opacity: 0.73;
204
+ content: '';
205
+ background-image: linear-gradient(
206
+ 106deg,
207
+ rgba(232, 224, 255, 0) 24%,
208
+ #e8e0ff 91%
209
+ );
210
+ animation: flicker 1.5s linear infinite;
211
+ transform: skewX(-20deg);
212
+ filter: blur(3 * 1px);
213
+ }
214
+ }
215
+ @keyframes flicker {
216
+ 0% {
217
+ transform: translateX(-100 * 1px) skewX(-20deg);
218
+ }
219
+ 40%,
220
+ 100% {
221
+ transform: translateX(150 * 1px) skewX(-20deg);
222
+ }
223
+ }
224
+
225
+ // jump-跳跃
226
+ .nut-animate-jump {
227
+ transform-origin: center center;
228
+ animation: jump 0.7s linear;
229
+ }
230
+ @keyframes jump {
231
+ 0% {
232
+ animation-timing-function: ease-in;
233
+ transform: rotate(0deg) translateY(0);
234
+ }
235
+ 25% {
236
+ animation-timing-function: ease-out;
237
+ transform: rotate(10deg) translateY(20 * 1px);
238
+ }
239
+ 50% {
240
+ animation-timing-function: ease-in;
241
+ transform: rotate(0deg) translateY(-10 * 1px);
242
+ }
243
+ 75% {
244
+ animation-timing-function: ease-out;
245
+ transform: rotate(-10deg) translateY(20 * 1px);
246
+ }
247
+ 100% {
248
+ animation-timing-function: ease-in;
249
+ transform: rotate(0deg) translateY(0);
250
+ }
251
+ }
252
+
253
+ // 漂浮
254
+ .nut-animate-float {
255
+ position: relative;
256
+ animation-name: float-pop;
257
+ }
258
+ @keyframes float-pop {
259
+ 0% {
260
+ top: 0px;
261
+ }
262
+
263
+ 25% {
264
+ top: 1px;
265
+ }
266
+
267
+ 50% {
268
+ top: 4px;
269
+ }
270
+
271
+ 75% {
272
+ top: 1px;
273
+ }
274
+
275
+ 100% {
276
+ top: 0px;
277
+ }
278
+ }
279
+
280
+ //循环
281
+ .loop {
282
+ animation-iteration-count: infinite;
283
+ }
284
+ }
@@ -0,0 +1,17 @@
1
+ .nut-ellipsis {
2
+ display: flex;
3
+ .nut-ellipsis-text {
4
+ cursor: pointer;
5
+ color: $ellipsis-expand-collapse-color;
6
+ display: inline;
7
+ }
8
+
9
+ .nut-ellipsis-wordbreak {
10
+ word-break: break-all;
11
+ }
12
+ }
13
+
14
+ .nut-ellipsis-copy {
15
+ position: absolute;
16
+ top: -999999px;
17
+ }