@nutui/nutui-react-taro 1.3.12-beta.2 → 1.3.12-beta.3
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.
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/nutui.react.es.js +16 -16
- package/dist/nutui.react.umd.js +16 -16
- package/dist/style.es.js +1 -1
- package/package.json +1 -2
package/dist/locales/base.js
CHANGED
package/dist/locales/en-US.js
CHANGED
package/dist/locales/id-ID.js
CHANGED
package/dist/locales/zh-CN.js
CHANGED
package/dist/locales/zh-TW.js
CHANGED
package/dist/nutui.react.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui-react-taro v1.3.12-beta.2
|
|
2
|
+
* @nutui/nutui-react-taro v1.3.12-beta.2 Mon Nov 21 2022 13:52:51 GMT+0800 (China Standard Time)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -369,9 +369,9 @@ CellGroup.defaultProps = defaultProps$1l;
|
|
|
369
369
|
CellGroup.displayName = "NutCellGroup";
|
|
370
370
|
var classnames = { exports: {} };
|
|
371
371
|
/*!
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
372
|
+
Copyright (c) 2018 Jed Watson.
|
|
373
|
+
Licensed under the MIT License (MIT), see
|
|
374
|
+
http://jedwatson.github.io/classnames
|
|
375
375
|
*/
|
|
376
376
|
(function(module) {
|
|
377
377
|
(function() {
|
|
@@ -393,14 +393,14 @@ var classnames = { exports: {} };
|
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
395
|
} else if (argType === "object") {
|
|
396
|
-
if (arg.toString
|
|
397
|
-
for (var key in arg) {
|
|
398
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
399
|
-
classes.push(key);
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
} else {
|
|
396
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
403
397
|
classes.push(arg.toString());
|
|
398
|
+
continue;
|
|
399
|
+
}
|
|
400
|
+
for (var key in arg) {
|
|
401
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
402
|
+
classes.push(key);
|
|
403
|
+
}
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
406
|
}
|
|
@@ -10678,7 +10678,7 @@ function findRange(input, inputRange) {
|
|
|
10678
10678
|
return i - 1;
|
|
10679
10679
|
}
|
|
10680
10680
|
function _extends$2() {
|
|
10681
|
-
_extends$2 = Object.assign
|
|
10681
|
+
_extends$2 = Object.assign ? Object.assign.bind() : function(target) {
|
|
10682
10682
|
for (var i = 1; i < arguments.length; i++) {
|
|
10683
10683
|
var source = arguments[i];
|
|
10684
10684
|
for (var key in source) {
|
|
@@ -11091,7 +11091,7 @@ function getAnimatedType(value) {
|
|
|
11091
11091
|
return parentNode ? parentNode.constructor : is.arr(value) ? AnimatedArray : isAnimatedString(value) ? AnimatedString : AnimatedValue;
|
|
11092
11092
|
}
|
|
11093
11093
|
function _extends$1() {
|
|
11094
|
-
_extends$1 = Object.assign
|
|
11094
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function(target) {
|
|
11095
11095
|
for (var i = 1; i < arguments.length; i++) {
|
|
11096
11096
|
var source = arguments[i];
|
|
11097
11097
|
for (var key in source) {
|
|
@@ -11210,7 +11210,7 @@ const createHost = (components, {
|
|
|
11210
11210
|
};
|
|
11211
11211
|
const getDisplayName = (arg) => is.str(arg) ? arg : arg && is.str(arg.displayName) ? arg.displayName : is.fun(arg) && arg.name || null;
|
|
11212
11212
|
function _extends() {
|
|
11213
|
-
_extends = Object.assign
|
|
11213
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
11214
11214
|
for (var i = 1; i < arguments.length; i++) {
|
|
11215
11215
|
var source = arguments[i];
|
|
11216
11216
|
for (var key in source) {
|
|
@@ -11843,6 +11843,7 @@ class SpringValue extends FrameValue {
|
|
|
11843
11843
|
const from = anim.fromValues[i];
|
|
11844
11844
|
const v0 = node2.v0 != null ? node2.v0 : node2.v0 = is.arr(config2.velocity) ? config2.velocity[i] : config2.velocity;
|
|
11845
11845
|
let velocity;
|
|
11846
|
+
const precision = config2.precision || (from == to2 ? 5e-3 : Math.min(1, Math.abs(to2 - from) * 1e-3));
|
|
11846
11847
|
if (!is.und(config2.duration)) {
|
|
11847
11848
|
let p = 1;
|
|
11848
11849
|
if (config2.duration > 0) {
|
|
@@ -11864,11 +11865,10 @@ class SpringValue extends FrameValue {
|
|
|
11864
11865
|
const decay = config2.decay === true ? 0.998 : config2.decay;
|
|
11865
11866
|
const e2 = Math.exp(-(1 - decay) * elapsed);
|
|
11866
11867
|
position = from + v0 / (1 - decay) * (1 - e2);
|
|
11867
|
-
finished = Math.abs(node2.lastPosition - position)
|
|
11868
|
+
finished = Math.abs(node2.lastPosition - position) <= precision;
|
|
11868
11869
|
velocity = v0 * e2;
|
|
11869
11870
|
} else {
|
|
11870
11871
|
velocity = node2.lastVelocity == null ? v0 : node2.lastVelocity;
|
|
11871
|
-
const precision = config2.precision || (from == to2 ? 5e-3 : Math.min(1, Math.abs(to2 - from) * 1e-3));
|
|
11872
11872
|
const restVelocity = config2.restVelocity || precision / 10;
|
|
11873
11873
|
const bounceFactor = config2.clamp ? 0 : config2.bounce;
|
|
11874
11874
|
const canBounce = !is.und(bounceFactor);
|
package/dist/nutui.react.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui-react-taro v1.3.12-beta.2
|
|
2
|
+
* @nutui/nutui-react-taro v1.3.12-beta.2 Mon Nov 21 2022 13:52:51 GMT+0800 (China Standard Time)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -396,9 +396,9 @@
|
|
|
396
396
|
CellGroup.displayName = "NutCellGroup";
|
|
397
397
|
var classnames = { exports: {} };
|
|
398
398
|
/*!
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
399
|
+
Copyright (c) 2018 Jed Watson.
|
|
400
|
+
Licensed under the MIT License (MIT), see
|
|
401
|
+
http://jedwatson.github.io/classnames
|
|
402
402
|
*/
|
|
403
403
|
(function(module2) {
|
|
404
404
|
(function() {
|
|
@@ -420,14 +420,14 @@
|
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
422
|
} else if (argType === "object") {
|
|
423
|
-
if (arg.toString
|
|
424
|
-
for (var key in arg) {
|
|
425
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
426
|
-
classes.push(key);
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
} else {
|
|
423
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
430
424
|
classes.push(arg.toString());
|
|
425
|
+
continue;
|
|
426
|
+
}
|
|
427
|
+
for (var key in arg) {
|
|
428
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
429
|
+
classes.push(key);
|
|
430
|
+
}
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
433
|
}
|
|
@@ -10705,7 +10705,7 @@
|
|
|
10705
10705
|
return i - 1;
|
|
10706
10706
|
}
|
|
10707
10707
|
function _extends$2() {
|
|
10708
|
-
_extends$2 = Object.assign
|
|
10708
|
+
_extends$2 = Object.assign ? Object.assign.bind() : function(target) {
|
|
10709
10709
|
for (var i = 1; i < arguments.length; i++) {
|
|
10710
10710
|
var source = arguments[i];
|
|
10711
10711
|
for (var key in source) {
|
|
@@ -11118,7 +11118,7 @@
|
|
|
11118
11118
|
return parentNode ? parentNode.constructor : is.arr(value) ? AnimatedArray : isAnimatedString(value) ? AnimatedString : AnimatedValue;
|
|
11119
11119
|
}
|
|
11120
11120
|
function _extends$1() {
|
|
11121
|
-
_extends$1 = Object.assign
|
|
11121
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function(target) {
|
|
11122
11122
|
for (var i = 1; i < arguments.length; i++) {
|
|
11123
11123
|
var source = arguments[i];
|
|
11124
11124
|
for (var key in source) {
|
|
@@ -11237,7 +11237,7 @@
|
|
|
11237
11237
|
};
|
|
11238
11238
|
const getDisplayName = (arg) => is.str(arg) ? arg : arg && is.str(arg.displayName) ? arg.displayName : is.fun(arg) && arg.name || null;
|
|
11239
11239
|
function _extends() {
|
|
11240
|
-
_extends = Object.assign
|
|
11240
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
11241
11241
|
for (var i = 1; i < arguments.length; i++) {
|
|
11242
11242
|
var source = arguments[i];
|
|
11243
11243
|
for (var key in source) {
|
|
@@ -11870,6 +11870,7 @@
|
|
|
11870
11870
|
const from = anim.fromValues[i];
|
|
11871
11871
|
const v0 = node2.v0 != null ? node2.v0 : node2.v0 = is.arr(config2.velocity) ? config2.velocity[i] : config2.velocity;
|
|
11872
11872
|
let velocity;
|
|
11873
|
+
const precision = config2.precision || (from == to2 ? 5e-3 : Math.min(1, Math.abs(to2 - from) * 1e-3));
|
|
11873
11874
|
if (!is.und(config2.duration)) {
|
|
11874
11875
|
let p = 1;
|
|
11875
11876
|
if (config2.duration > 0) {
|
|
@@ -11891,11 +11892,10 @@
|
|
|
11891
11892
|
const decay = config2.decay === true ? 0.998 : config2.decay;
|
|
11892
11893
|
const e2 = Math.exp(-(1 - decay) * elapsed);
|
|
11893
11894
|
position = from + v0 / (1 - decay) * (1 - e2);
|
|
11894
|
-
finished = Math.abs(node2.lastPosition - position)
|
|
11895
|
+
finished = Math.abs(node2.lastPosition - position) <= precision;
|
|
11895
11896
|
velocity = v0 * e2;
|
|
11896
11897
|
} else {
|
|
11897
11898
|
velocity = node2.lastVelocity == null ? v0 : node2.lastVelocity;
|
|
11898
|
-
const precision = config2.precision || (from == to2 ? 5e-3 : Math.min(1, Math.abs(to2 - from) * 1e-3));
|
|
11899
11899
|
const restVelocity = config2.restVelocity || precision / 10;
|
|
11900
11900
|
const bounceFactor = config2.clamp ? 0 : config2.bounce;
|
|
11901
11901
|
const canBounce = !is.und(bounceFactor);
|
package/dist/style.es.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nutui/nutui-react-taro",
|
|
3
|
-
"version": "1.3.12-beta.
|
|
3
|
+
"version": "1.3.12-beta.3",
|
|
4
4
|
"style": "dist/style.css",
|
|
5
5
|
"main": "dist/nutui.react.umd.js",
|
|
6
6
|
"module": "dist/esm/nutui-react.es.js",
|
|
@@ -92,7 +92,6 @@
|
|
|
92
92
|
"@react-spring/web": "^9.3.2",
|
|
93
93
|
"@use-gesture/react": "^10.2.9",
|
|
94
94
|
"classnames": "^2.3.1",
|
|
95
|
-
"react-router-dom": "^5.2.0",
|
|
96
95
|
"react-transition-group": "^4.4.2"
|
|
97
96
|
},
|
|
98
97
|
"devDependencies": {
|