@sinco/react 1.1.2-rc.97 → 1.2.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.
- package/index.esm.js +56 -68
- package/package.json +1 -1
package/index.esm.js
CHANGED
@@ -6,6 +6,47 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
6
|
import * as ReactDOM from 'react-dom';
|
7
7
|
import ReactDOM__default from 'react-dom';
|
8
8
|
|
9
|
+
function _arrayLikeToArray(r, a) {
|
10
|
+
(null == a || a > r.length) && (a = r.length);
|
11
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
12
|
+
return n;
|
13
|
+
}
|
14
|
+
function _arrayWithHoles(r) {
|
15
|
+
if (Array.isArray(r)) return r;
|
16
|
+
}
|
17
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
18
|
+
try {
|
19
|
+
var i = n[a](c),
|
20
|
+
u = i.value;
|
21
|
+
} catch (n) {
|
22
|
+
return void e(n);
|
23
|
+
}
|
24
|
+
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
25
|
+
}
|
26
|
+
function _asyncToGenerator(n) {
|
27
|
+
return function () {
|
28
|
+
var t = this,
|
29
|
+
e = arguments;
|
30
|
+
return new Promise(function (r, o) {
|
31
|
+
var a = n.apply(t, e);
|
32
|
+
function _next(n) {
|
33
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
34
|
+
}
|
35
|
+
function _throw(n) {
|
36
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
37
|
+
}
|
38
|
+
_next(void 0);
|
39
|
+
});
|
40
|
+
};
|
41
|
+
}
|
42
|
+
function _defineProperty(e, r, t) {
|
43
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
44
|
+
value: t,
|
45
|
+
enumerable: !0,
|
46
|
+
configurable: !0,
|
47
|
+
writable: !0
|
48
|
+
}) : e[r] = t, e;
|
49
|
+
}
|
9
50
|
function _iterableToArrayLimit(r, l) {
|
10
51
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
11
52
|
if (null != t) {
|
@@ -33,6 +74,9 @@ function _iterableToArrayLimit(r, l) {
|
|
33
74
|
return a;
|
34
75
|
}
|
35
76
|
}
|
77
|
+
function _nonIterableRest() {
|
78
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
79
|
+
}
|
36
80
|
function ownKeys(e, r) {
|
37
81
|
var t = Object.keys(e);
|
38
82
|
if (Object.getOwnPropertySymbols) {
|
@@ -162,7 +206,7 @@ function _regeneratorRuntime() {
|
|
162
206
|
function makeInvokeMethod(e, r, n) {
|
163
207
|
var o = h;
|
164
208
|
return function (i, a) {
|
165
|
-
if (o === f) throw
|
209
|
+
if (o === f) throw Error("Generator is already running");
|
166
210
|
if (o === s) {
|
167
211
|
if ("throw" === i) throw a;
|
168
212
|
return {
|
@@ -304,7 +348,7 @@ function _regeneratorRuntime() {
|
|
304
348
|
} else if (c) {
|
305
349
|
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
306
350
|
} else {
|
307
|
-
if (!u) throw
|
351
|
+
if (!u) throw Error("try statement without catch or finally");
|
308
352
|
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
309
353
|
}
|
310
354
|
}
|
@@ -344,7 +388,7 @@ function _regeneratorRuntime() {
|
|
344
388
|
return o;
|
345
389
|
}
|
346
390
|
}
|
347
|
-
throw
|
391
|
+
throw Error("illegal catch attempt");
|
348
392
|
},
|
349
393
|
delegateYield: function (e, r, n) {
|
350
394
|
return this.delegate = {
|
@@ -355,6 +399,9 @@ function _regeneratorRuntime() {
|
|
355
399
|
}
|
356
400
|
}, e;
|
357
401
|
}
|
402
|
+
function _slicedToArray(r, e) {
|
403
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
404
|
+
}
|
358
405
|
function _toPrimitive(t, r) {
|
359
406
|
if ("object" != typeof t || !t) return t;
|
360
407
|
var e = t[Symbol.toPrimitive];
|
@@ -367,73 +414,14 @@ function _toPrimitive(t, r) {
|
|
367
414
|
}
|
368
415
|
function _toPropertyKey(t) {
|
369
416
|
var i = _toPrimitive(t, "string");
|
370
|
-
return "symbol" == typeof i ? i :
|
417
|
+
return "symbol" == typeof i ? i : i + "";
|
371
418
|
}
|
372
|
-
function
|
373
|
-
|
374
|
-
|
375
|
-
var
|
376
|
-
|
377
|
-
reject(error);
|
378
|
-
return;
|
419
|
+
function _unsupportedIterableToArray(r, a) {
|
420
|
+
if (r) {
|
421
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
422
|
+
var t = {}.toString.call(r).slice(8, -1);
|
423
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
379
424
|
}
|
380
|
-
if (info.done) {
|
381
|
-
resolve(value);
|
382
|
-
} else {
|
383
|
-
Promise.resolve(value).then(_next, _throw);
|
384
|
-
}
|
385
|
-
}
|
386
|
-
function _asyncToGenerator(fn) {
|
387
|
-
return function () {
|
388
|
-
var self = this,
|
389
|
-
args = arguments;
|
390
|
-
return new Promise(function (resolve, reject) {
|
391
|
-
var gen = fn.apply(self, args);
|
392
|
-
function _next(value) {
|
393
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
394
|
-
}
|
395
|
-
function _throw(err) {
|
396
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
397
|
-
}
|
398
|
-
_next(undefined);
|
399
|
-
});
|
400
|
-
};
|
401
|
-
}
|
402
|
-
function _defineProperty(obj, key, value) {
|
403
|
-
key = _toPropertyKey(key);
|
404
|
-
if (key in obj) {
|
405
|
-
Object.defineProperty(obj, key, {
|
406
|
-
value: value,
|
407
|
-
enumerable: true,
|
408
|
-
configurable: true,
|
409
|
-
writable: true
|
410
|
-
});
|
411
|
-
} else {
|
412
|
-
obj[key] = value;
|
413
|
-
}
|
414
|
-
return obj;
|
415
|
-
}
|
416
|
-
function _slicedToArray(arr, i) {
|
417
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
418
|
-
}
|
419
|
-
function _arrayWithHoles(arr) {
|
420
|
-
if (Array.isArray(arr)) return arr;
|
421
|
-
}
|
422
|
-
function _unsupportedIterableToArray(o, minLen) {
|
423
|
-
if (!o) return;
|
424
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
425
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
426
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
427
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
428
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
429
|
-
}
|
430
|
-
function _arrayLikeToArray(arr, len) {
|
431
|
-
if (len == null || len > arr.length) len = arr.length;
|
432
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
433
|
-
return arr2;
|
434
|
-
}
|
435
|
-
function _nonIterableRest() {
|
436
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
437
425
|
}
|
438
426
|
|
439
427
|
function chainPropTypes(propType1, propType2) {
|