@thecb/components 11.1.0-beta.8 → 11.1.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.
- package/dist/index.cjs.js +427 -143
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +427 -143
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/loading-line/LoadingLine.js +9 -1
- package/src/components/atoms/loading-line/LoadingPill.styled.js +7 -6
- package/src/components/atoms/.DS_Store +0 -0
package/dist/index.cjs.js
CHANGED
|
@@ -236,6 +236,58 @@ function __rest(s, e) {
|
|
|
236
236
|
t[p[i]] = s[p[i]];
|
|
237
237
|
}
|
|
238
238
|
return t;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/*! *****************************************************************************
|
|
242
|
+
Copyright (c) Microsoft Corporation.
|
|
243
|
+
|
|
244
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
245
|
+
purpose with or without fee is hereby granted.
|
|
246
|
+
|
|
247
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
248
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
249
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
250
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
251
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
252
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
253
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
254
|
+
***************************************************************************** */
|
|
255
|
+
/* global Reflect, Promise */
|
|
256
|
+
|
|
257
|
+
var extendStatics$1 = function(d, b) {
|
|
258
|
+
extendStatics$1 = Object.setPrototypeOf ||
|
|
259
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
260
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
261
|
+
return extendStatics$1(d, b);
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
function __extends$1(d, b) {
|
|
265
|
+
extendStatics$1(d, b);
|
|
266
|
+
function __() { this.constructor = d; }
|
|
267
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
var __assign$1 = function() {
|
|
271
|
+
__assign$1 = Object.assign || function __assign(t) {
|
|
272
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
273
|
+
s = arguments[i];
|
|
274
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
275
|
+
}
|
|
276
|
+
return t;
|
|
277
|
+
};
|
|
278
|
+
return __assign$1.apply(this, arguments);
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
function __rest$1(s, e) {
|
|
282
|
+
var t = {};
|
|
283
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
284
|
+
t[p] = s[p];
|
|
285
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
286
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
287
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
288
|
+
t[p[i]] = s[p[i]];
|
|
289
|
+
}
|
|
290
|
+
return t;
|
|
239
291
|
}
|
|
240
292
|
|
|
241
293
|
function __spreadArrays() {
|
|
@@ -246,6 +298,32 @@ function __spreadArrays() {
|
|
|
246
298
|
return r;
|
|
247
299
|
}
|
|
248
300
|
|
|
301
|
+
/*! *****************************************************************************
|
|
302
|
+
Copyright (c) Microsoft Corporation.
|
|
303
|
+
|
|
304
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
305
|
+
purpose with or without fee is hereby granted.
|
|
306
|
+
|
|
307
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
308
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
309
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
310
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
311
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
312
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
313
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
314
|
+
***************************************************************************** */
|
|
315
|
+
|
|
316
|
+
var __assign$2 = function() {
|
|
317
|
+
__assign$2 = Object.assign || function __assign(t) {
|
|
318
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
319
|
+
s = arguments[i];
|
|
320
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
321
|
+
}
|
|
322
|
+
return t;
|
|
323
|
+
};
|
|
324
|
+
return __assign$2.apply(this, arguments);
|
|
325
|
+
};
|
|
326
|
+
|
|
249
327
|
var clamp = function (min, max) { return function (v) {
|
|
250
328
|
return Math.max(Math.min(v, max), min);
|
|
251
329
|
}; };
|
|
@@ -259,8 +337,8 @@ var number = {
|
|
|
259
337
|
parse: parseFloat,
|
|
260
338
|
transform: function (v) { return v; }
|
|
261
339
|
};
|
|
262
|
-
var alpha = __assign(__assign({}, number), { transform: clamp(0, 1) });
|
|
263
|
-
var scale = __assign(__assign({}, number), { default: 1 });
|
|
340
|
+
var alpha = __assign$2(__assign$2({}, number), { transform: clamp(0, 1) });
|
|
341
|
+
var scale = __assign$2(__assign$2({}, number), { default: 1 });
|
|
264
342
|
|
|
265
343
|
var createUnitType = function (unit) { return ({
|
|
266
344
|
test: function (v) {
|
|
@@ -274,7 +352,7 @@ var percent = createUnitType('%');
|
|
|
274
352
|
var px = createUnitType('px');
|
|
275
353
|
var vh = createUnitType('vh');
|
|
276
354
|
var vw = createUnitType('vw');
|
|
277
|
-
var progressPercentage = __assign(__assign({}, percent), { parse: function (v) { return percent.parse(v) / 100; }, transform: function (v) { return percent.transform(v * 100); } });
|
|
355
|
+
var progressPercentage = __assign$2(__assign$2({}, percent), { parse: function (v) { return percent.parse(v) / 100; }, transform: function (v) { return percent.transform(v * 100); } });
|
|
278
356
|
|
|
279
357
|
var getValueFromFunctionString = function (value) {
|
|
280
358
|
return value.substring(value.indexOf('(') + 1, value.lastIndexOf(')'));
|
|
@@ -308,7 +386,7 @@ var hslaTemplate = function (_a) {
|
|
|
308
386
|
var hue = _a.hue, saturation = _a.saturation, lightness = _a.lightness, _b = _a.alpha, alpha = _b === void 0 ? 1 : _b;
|
|
309
387
|
return "hsla(" + hue + ", " + saturation + ", " + lightness + ", " + alpha + ")";
|
|
310
388
|
};
|
|
311
|
-
var rgbUnit = __assign(__assign({}, number), { transform: function (v) { return Math.round(clampRgbUnit(v)); } });
|
|
389
|
+
var rgbUnit = __assign$2(__assign$2({}, number), { transform: function (v) { return Math.round(clampRgbUnit(v)); } });
|
|
312
390
|
function isColorString(color, colorType) {
|
|
313
391
|
return color.startsWith(colorType) && singleColorRegex.test(color);
|
|
314
392
|
}
|
|
@@ -338,7 +416,7 @@ var hsla = {
|
|
|
338
416
|
});
|
|
339
417
|
}
|
|
340
418
|
};
|
|
341
|
-
var hex = __assign(__assign({}, rgba), { test: function (v) { return typeof v === 'string' && isColorString(v, '#'); }, parse: function (v) {
|
|
419
|
+
var hex = __assign$2(__assign$2({}, rgba), { test: function (v) { return typeof v === 'string' && isColorString(v, '#'); }, parse: function (v) {
|
|
342
420
|
var r = '';
|
|
343
421
|
var g = '';
|
|
344
422
|
var b = '';
|
|
@@ -874,15 +952,15 @@ See the Apache Version 2.0 License for specific language governing permissions
|
|
|
874
952
|
and limitations under the License.
|
|
875
953
|
***************************************************************************** */
|
|
876
954
|
|
|
877
|
-
var __assign$
|
|
878
|
-
__assign$
|
|
955
|
+
var __assign$3 = function() {
|
|
956
|
+
__assign$3 = Object.assign || function __assign(t) {
|
|
879
957
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
880
958
|
s = arguments[i];
|
|
881
959
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
882
960
|
}
|
|
883
961
|
return t;
|
|
884
962
|
};
|
|
885
|
-
return __assign$
|
|
963
|
+
return __assign$3.apply(this, arguments);
|
|
886
964
|
};
|
|
887
965
|
|
|
888
966
|
var mixLinearColor = function (from, to, v) {
|
|
@@ -905,7 +983,7 @@ var mixColor = (function (from, to) {
|
|
|
905
983
|
invariant(fromColorType.transform === toColorType.transform, 'Both colors must be hex/RGBA, OR both must be HSLA.');
|
|
906
984
|
var fromColor = fromColorType.parse(from);
|
|
907
985
|
var toColor = toColorType.parse(to);
|
|
908
|
-
var blended = __assign$
|
|
986
|
+
var blended = __assign$3({}, fromColor);
|
|
909
987
|
var mixFunc = fromColorType === hsla ? mix : mixLinearColor;
|
|
910
988
|
return function (v) {
|
|
911
989
|
for (var key in blended) {
|
|
@@ -950,7 +1028,7 @@ var mixArray = function (from, to) {
|
|
|
950
1028
|
};
|
|
951
1029
|
};
|
|
952
1030
|
var mixObject = function (origin, target) {
|
|
953
|
-
var output = __assign$
|
|
1031
|
+
var output = __assign$3({}, origin, target);
|
|
954
1032
|
var blendValue = {};
|
|
955
1033
|
for (var key in output) {
|
|
956
1034
|
if (origin[key] !== undefined && target[key] !== undefined) {
|
|
@@ -1162,6 +1240,44 @@ var wrap$1 = curryRange(wrap);
|
|
|
1162
1240
|
|
|
1163
1241
|
var clampProgress = clamp$1$1(0, 1);
|
|
1164
1242
|
|
|
1243
|
+
/*! *****************************************************************************
|
|
1244
|
+
Copyright (c) Microsoft Corporation.
|
|
1245
|
+
|
|
1246
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
1247
|
+
purpose with or without fee is hereby granted.
|
|
1248
|
+
|
|
1249
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
1250
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
1251
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
1252
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
1253
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
1254
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1255
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
1256
|
+
***************************************************************************** */
|
|
1257
|
+
|
|
1258
|
+
var __assign$4 = function() {
|
|
1259
|
+
__assign$4 = Object.assign || function __assign(t) {
|
|
1260
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
1261
|
+
s = arguments[i];
|
|
1262
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
1263
|
+
}
|
|
1264
|
+
return t;
|
|
1265
|
+
};
|
|
1266
|
+
return __assign$4.apply(this, arguments);
|
|
1267
|
+
};
|
|
1268
|
+
|
|
1269
|
+
function __rest$2(s, e) {
|
|
1270
|
+
var t = {};
|
|
1271
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
1272
|
+
t[p] = s[p];
|
|
1273
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
1274
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
1275
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
1276
|
+
t[p[i]] = s[p[i]];
|
|
1277
|
+
}
|
|
1278
|
+
return t;
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1165
1281
|
var createStyler = function (_a) {
|
|
1166
1282
|
var onRead = _a.onRead,
|
|
1167
1283
|
onRender = _a.onRender,
|
|
@@ -1173,7 +1289,7 @@ var createStyler = function (_a) {
|
|
|
1173
1289
|
if (_a === void 0) {
|
|
1174
1290
|
_a = {};
|
|
1175
1291
|
}
|
|
1176
|
-
var props = __rest(_a, []);
|
|
1292
|
+
var props = __rest$2(_a, []);
|
|
1177
1293
|
var state = {};
|
|
1178
1294
|
var changedValues = [];
|
|
1179
1295
|
var hasChanged = false;
|
|
@@ -1293,7 +1409,7 @@ function isTransformOriginProp(key) {
|
|
|
1293
1409
|
return transformOriginProps.has(key);
|
|
1294
1410
|
}
|
|
1295
1411
|
|
|
1296
|
-
var int = /*#__PURE__*/__assign( /*#__PURE__*/__assign({}, number), { transform: Math.round });
|
|
1412
|
+
var int = /*#__PURE__*/__assign$4( /*#__PURE__*/__assign$4({}, number), { transform: Math.round });
|
|
1297
1413
|
var valueTypes = {
|
|
1298
1414
|
color: color,
|
|
1299
1415
|
backgroundColor: color,
|
|
@@ -1525,8 +1641,8 @@ function createCssStyler(element, _a) {
|
|
|
1525
1641
|
}
|
|
1526
1642
|
var enableHardwareAcceleration = _a.enableHardwareAcceleration,
|
|
1527
1643
|
allowTransformNone = _a.allowTransformNone,
|
|
1528
|
-
props = __rest(_a, ["enableHardwareAcceleration", "allowTransformNone"]);
|
|
1529
|
-
return cssStyler(__assign({ element: element, buildStyles: createStyleBuilder({
|
|
1644
|
+
props = __rest$2(_a, ["enableHardwareAcceleration", "allowTransformNone"]);
|
|
1645
|
+
return cssStyler(__assign$4({ element: element, buildStyles: createStyleBuilder({
|
|
1530
1646
|
enableHardwareAcceleration: enableHardwareAcceleration,
|
|
1531
1647
|
allowTransformNone: allowTransformNone
|
|
1532
1648
|
}), preparseOutput: true }, props));
|
|
@@ -1576,7 +1692,7 @@ function buildSVGAttrs(_a, dimensions, totalPathLength, cssBuilder, attrs, isDas
|
|
|
1576
1692
|
pathSpacing = _b === void 0 ? 1 : _b,
|
|
1577
1693
|
_c = _a.pathOffset,
|
|
1578
1694
|
pathOffset = _c === void 0 ? 0 : _c,
|
|
1579
|
-
state = __rest(_a, ["attrX", "attrY", "originX", "originY", "pathLength", "pathSpacing", "pathOffset"]);
|
|
1695
|
+
state = __rest$2(_a, ["attrX", "attrY", "originX", "originY", "pathLength", "pathSpacing", "pathOffset"]);
|
|
1580
1696
|
var style = cssBuilder(state);
|
|
1581
1697
|
for (var key in style) {
|
|
1582
1698
|
if (key === 'transform') {
|
|
@@ -1705,7 +1821,7 @@ var Chainable = /*#__PURE__*/function () {
|
|
|
1705
1821
|
this.props = props;
|
|
1706
1822
|
}
|
|
1707
1823
|
Chainable.prototype.applyMiddleware = function (middleware) {
|
|
1708
|
-
return this.create(__assign(__assign({}, this.props), { middleware: this.props.middleware ? __spreadArrays([middleware], this.props.middleware) : [middleware] }));
|
|
1824
|
+
return this.create(__assign$1(__assign$1({}, this.props), { middleware: this.props.middleware ? __spreadArrays([middleware], this.props.middleware) : [middleware] }));
|
|
1709
1825
|
};
|
|
1710
1826
|
Chainable.prototype.pipe = function () {
|
|
1711
1827
|
var funcs = [];
|
|
@@ -1777,7 +1893,7 @@ var createObserver = function (observerCandidate, _a, onComplete) {
|
|
|
1777
1893
|
};
|
|
1778
1894
|
|
|
1779
1895
|
var Action = /*#__PURE__*/function (_super) {
|
|
1780
|
-
__extends(Action, _super);
|
|
1896
|
+
__extends$1(Action, _super);
|
|
1781
1897
|
function Action() {
|
|
1782
1898
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1783
1899
|
}
|
|
@@ -1796,13 +1912,13 @@ var Action = /*#__PURE__*/function (_super) {
|
|
|
1796
1912
|
};
|
|
1797
1913
|
var _a = this.props,
|
|
1798
1914
|
init = _a.init,
|
|
1799
|
-
observerProps = __rest(_a, ["init"]);
|
|
1915
|
+
observerProps = __rest$1(_a, ["init"]);
|
|
1800
1916
|
var observer = createObserver(observerCandidate, observerProps, function () {
|
|
1801
1917
|
isComplete = true;
|
|
1802
1918
|
subscription.stop();
|
|
1803
1919
|
});
|
|
1804
1920
|
var api = init(observer);
|
|
1805
|
-
subscription = api ? __assign(__assign({}, subscription), api) : subscription;
|
|
1921
|
+
subscription = api ? __assign$1(__assign$1({}, subscription), api) : subscription;
|
|
1806
1922
|
if (observerCandidate.registerParent) {
|
|
1807
1923
|
observerCandidate.registerParent(subscription);
|
|
1808
1924
|
}
|
|
@@ -1816,7 +1932,7 @@ var action = function (init) {
|
|
|
1816
1932
|
};
|
|
1817
1933
|
|
|
1818
1934
|
var BaseMulticast = /*#__PURE__*/function (_super) {
|
|
1819
|
-
__extends(BaseMulticast, _super);
|
|
1935
|
+
__extends$1(BaseMulticast, _super);
|
|
1820
1936
|
function BaseMulticast() {
|
|
1821
1937
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
1822
1938
|
_this.subscribers = [];
|
|
@@ -1876,7 +1992,7 @@ var isSingleValue = function (v) {
|
|
|
1876
1992
|
return typeOfV === 'string' || typeOfV === 'number';
|
|
1877
1993
|
};
|
|
1878
1994
|
var ValueReaction = /*#__PURE__*/function (_super) {
|
|
1879
|
-
__extends(ValueReaction, _super);
|
|
1995
|
+
__extends$1(ValueReaction, _super);
|
|
1880
1996
|
function ValueReaction(props) {
|
|
1881
1997
|
var _this = _super.call(this, props) || this;
|
|
1882
1998
|
_this.scheduleVelocityCheck = function () {
|
|
@@ -2126,7 +2242,7 @@ var reduceArrayValue = function (i) {
|
|
|
2126
2242
|
var createArrayAction = function (action, props, vectorKeys) {
|
|
2127
2243
|
var firstVectorKey = vectorKeys[0];
|
|
2128
2244
|
var actionList = props[firstVectorKey].map(function (v, i) {
|
|
2129
|
-
var childActionProps = vectorKeys.reduce(reduceArrayValue(i), __assign({}, props));
|
|
2245
|
+
var childActionProps = vectorKeys.reduce(reduceArrayValue(i), __assign$1({}, props));
|
|
2130
2246
|
return getActionCreator(v)(action, childActionProps);
|
|
2131
2247
|
});
|
|
2132
2248
|
return parallel$1.apply(void 0, actionList);
|
|
@@ -2140,7 +2256,7 @@ var reduceObjectValue = function (key) {
|
|
|
2140
2256
|
var createObjectAction = function (action, props, vectorKeys) {
|
|
2141
2257
|
var firstVectorKey = vectorKeys[0];
|
|
2142
2258
|
var actionMap = Object.keys(props[firstVectorKey]).reduce(function (map, key) {
|
|
2143
|
-
var childActionProps = vectorKeys.reduce(reduceObjectValue(key), __assign({}, props));
|
|
2259
|
+
var childActionProps = vectorKeys.reduce(reduceObjectValue(key), __assign$1({}, props));
|
|
2144
2260
|
map[key] = getActionCreator(props[firstVectorKey][key])(action, childActionProps);
|
|
2145
2261
|
return map;
|
|
2146
2262
|
}, {});
|
|
@@ -2149,18 +2265,18 @@ var createObjectAction = function (action, props, vectorKeys) {
|
|
|
2149
2265
|
var createUnitAction = function (action, _a) {
|
|
2150
2266
|
var from = _a.from,
|
|
2151
2267
|
to = _a.to,
|
|
2152
|
-
props = __rest(_a, ["from", "to"]);
|
|
2268
|
+
props = __rest$1(_a, ["from", "to"]);
|
|
2153
2269
|
var unitType = findUnitType(from) || findUnitType(to);
|
|
2154
2270
|
var transform = unitType.transform,
|
|
2155
2271
|
parse = unitType.parse;
|
|
2156
|
-
return action(__assign(__assign({}, props), { from: typeof from === 'string' ? parse(from) : from, to: typeof to === 'string' ? parse(to) : to })).pipe(transform);
|
|
2272
|
+
return action(__assign$1(__assign$1({}, props), { from: typeof from === 'string' ? parse(from) : from, to: typeof to === 'string' ? parse(to) : to })).pipe(transform);
|
|
2157
2273
|
};
|
|
2158
2274
|
var createMixerAction = function (mixer) {
|
|
2159
2275
|
return function (action, _a) {
|
|
2160
2276
|
var from = _a.from,
|
|
2161
2277
|
to = _a.to,
|
|
2162
|
-
props = __rest(_a, ["from", "to"]);
|
|
2163
|
-
return action(__assign(__assign({}, props), { from: 0, to: 1 })).pipe(mixer(from, to));
|
|
2278
|
+
props = __rest$1(_a, ["from", "to"]);
|
|
2279
|
+
return action(__assign$1(__assign$1({}, props), { from: 0, to: 1 })).pipe(mixer(from, to));
|
|
2164
2280
|
};
|
|
2165
2281
|
};
|
|
2166
2282
|
var createColorAction = /*#__PURE__*/createMixerAction(mixColor);
|
|
@@ -2506,7 +2622,7 @@ var keyframes = function (_a) {
|
|
|
2506
2622
|
ease = _b === void 0 ? linear : _b,
|
|
2507
2623
|
times = _a.times,
|
|
2508
2624
|
values = _a.values,
|
|
2509
|
-
tweenProps = __rest(_a, ["easings", "ease", "times", "values"]);
|
|
2625
|
+
tweenProps = __rest$1(_a, ["easings", "ease", "times", "values"]);
|
|
2510
2626
|
easings = Array.isArray(easings) ? easings : defaultEasings(values, easings);
|
|
2511
2627
|
times = times || defaultTimings(values);
|
|
2512
2628
|
var scrubbers = easings.map(function (easing, i) {
|
|
@@ -2516,7 +2632,7 @@ var keyframes = function (_a) {
|
|
|
2516
2632
|
ease: easing
|
|
2517
2633
|
});
|
|
2518
2634
|
});
|
|
2519
|
-
return tween(__assign(__assign({}, tweenProps), { ease: ease })).applyMiddleware(function (update) {
|
|
2635
|
+
return tween(__assign$1(__assign$1({}, tweenProps), { ease: ease })).applyMiddleware(function (update) {
|
|
2520
2636
|
return interpolateScrubbers(times, scrubbers, update);
|
|
2521
2637
|
});
|
|
2522
2638
|
};
|
|
@@ -2760,7 +2876,7 @@ var index$1 = function (_a) {
|
|
|
2760
2876
|
}
|
|
2761
2877
|
var x = _a.x,
|
|
2762
2878
|
y = _a.y,
|
|
2763
|
-
props = __rest(_a, ["x", "y"]);
|
|
2879
|
+
props = __rest$1(_a, ["x", "y"]);
|
|
2764
2880
|
if (x !== undefined || y !== undefined) {
|
|
2765
2881
|
var applyXOffset_1 = applyOffset(x || 0);
|
|
2766
2882
|
var applyYOffset_1 = applyOffset(y || 0);
|
|
@@ -2834,7 +2950,7 @@ var steps$1 = function (st, min, max) {
|
|
|
2834
2950
|
};
|
|
2835
2951
|
var transformMap = function (childTransformers) {
|
|
2836
2952
|
return function (v) {
|
|
2837
|
-
var output = __assign({}, v);
|
|
2953
|
+
var output = __assign$1({}, v);
|
|
2838
2954
|
for (var key in childTransformers) {
|
|
2839
2955
|
if (childTransformers.hasOwnProperty(key)) {
|
|
2840
2956
|
var childTransformer = childTransformers[key];
|
|
@@ -2865,6 +2981,52 @@ var transformers = /*#__PURE__*/Object.freeze({
|
|
|
2865
2981
|
transformMap: transformMap
|
|
2866
2982
|
});
|
|
2867
2983
|
|
|
2984
|
+
/*! *****************************************************************************
|
|
2985
|
+
Copyright (c) Microsoft Corporation.
|
|
2986
|
+
|
|
2987
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
2988
|
+
purpose with or without fee is hereby granted.
|
|
2989
|
+
|
|
2990
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
2991
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
2992
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
2993
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
2994
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
2995
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
2996
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
2997
|
+
***************************************************************************** */
|
|
2998
|
+
|
|
2999
|
+
var __assign$5 = function() {
|
|
3000
|
+
__assign$5 = Object.assign || function __assign(t) {
|
|
3001
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
3002
|
+
s = arguments[i];
|
|
3003
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
3004
|
+
}
|
|
3005
|
+
return t;
|
|
3006
|
+
};
|
|
3007
|
+
return __assign$5.apply(this, arguments);
|
|
3008
|
+
};
|
|
3009
|
+
|
|
3010
|
+
function __rest$3(s, e) {
|
|
3011
|
+
var t = {};
|
|
3012
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
3013
|
+
t[p] = s[p];
|
|
3014
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
3015
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
3016
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
3017
|
+
t[p[i]] = s[p[i]];
|
|
3018
|
+
}
|
|
3019
|
+
return t;
|
|
3020
|
+
}
|
|
3021
|
+
|
|
3022
|
+
function __spreadArrays$1() {
|
|
3023
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
3024
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
3025
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
3026
|
+
r[k] = a[j];
|
|
3027
|
+
return r;
|
|
3028
|
+
}
|
|
3029
|
+
|
|
2868
3030
|
var getPoseValues = function (_a) {
|
|
2869
3031
|
var transition = _a.transition,
|
|
2870
3032
|
flip = _a.flip,
|
|
@@ -2877,7 +3039,7 @@ var getPoseValues = function (_a) {
|
|
|
2877
3039
|
preTransition = _a.preTransition,
|
|
2878
3040
|
applyAtStart = _a.applyAtStart,
|
|
2879
3041
|
applyAtEnd = _a.applyAtEnd,
|
|
2880
|
-
props = __rest(_a, ["transition", "flip", "delay", "delayChildren", "staggerChildren", "staggerDirection", "afterChildren", "beforeChildren", "preTransition", "applyAtStart", "applyAtEnd"]);
|
|
3042
|
+
props = __rest$3(_a, ["transition", "flip", "delay", "delayChildren", "staggerChildren", "staggerDirection", "afterChildren", "beforeChildren", "preTransition", "applyAtStart", "applyAtEnd"]);
|
|
2881
3043
|
return props;
|
|
2882
3044
|
};
|
|
2883
3045
|
var selectPoses = function (_a) {
|
|
@@ -2889,7 +3051,7 @@ var selectPoses = function (_a) {
|
|
|
2889
3051
|
onChange = _a.onChange,
|
|
2890
3052
|
passive = _a.passive,
|
|
2891
3053
|
initialPose = _a.initialPose,
|
|
2892
|
-
poses = __rest(_a, ["label", "props", "values", "parentValues", "ancestorValues", "onChange", "passive", "initialPose"]);
|
|
3054
|
+
poses = __rest$3(_a, ["label", "props", "values", "parentValues", "ancestorValues", "onChange", "passive", "initialPose"]);
|
|
2893
3055
|
return poses;
|
|
2894
3056
|
};
|
|
2895
3057
|
var selectAllValues = function (values, selectValue) {
|
|
@@ -2989,7 +3151,7 @@ var createPoseSetter = function (setterProps) {
|
|
|
2989
3151
|
var _a = nextProps.delay,
|
|
2990
3152
|
delay = _a === void 0 ? 0 : _a;
|
|
2991
3153
|
var hasChildren = children.size;
|
|
2992
|
-
var baseTransitionProps = __assign(__assign({}, props), nextProps);
|
|
3154
|
+
var baseTransitionProps = __assign$5(__assign$5({}, props), nextProps);
|
|
2993
3155
|
var nextPose = poses[next];
|
|
2994
3156
|
var getChildAnimations = function () {
|
|
2995
3157
|
return hasChildren && propagate ? startChildAnimations(children, next, nextPose, baseTransitionProps) : [];
|
|
@@ -3015,11 +3177,11 @@ var createPoseSetter = function (setterProps) {
|
|
|
3015
3177
|
valuePoses.splice(insertionIndex, 0, next);
|
|
3016
3178
|
return insertionIndex === 0 ? new Promise(function (complete) {
|
|
3017
3179
|
var value = values.get(key);
|
|
3018
|
-
var transitionProps = __assign(__assign({}, baseTransitionProps), { key: key,
|
|
3180
|
+
var transitionProps = __assign$5(__assign$5({}, baseTransitionProps), { key: key,
|
|
3019
3181
|
value: value });
|
|
3020
3182
|
var target = resolveTarget(value, resolveProp(nextPose[key], transitionProps));
|
|
3021
3183
|
if (activeActions.has(key)) stopAction(activeActions.get(key));
|
|
3022
|
-
var resolveTransitionProps = __assign(__assign({ to: target }, transitionProps), getTransitionProps(value, target, transitionProps));
|
|
3184
|
+
var resolveTransitionProps = __assign$5(__assign$5({ to: target }, transitionProps), getTransitionProps(value, target, transitionProps));
|
|
3023
3185
|
var transition = resolveTransition(getTransition, key, value, resolveTransitionProps, convertTransitionDefinition, getInstantTransition);
|
|
3024
3186
|
var poseDelay = delay || resolveProp(nextPose.delay, transitionProps);
|
|
3025
3187
|
if (poseDelay) {
|
|
@@ -3043,7 +3205,7 @@ var createPoseSetter = function (setterProps) {
|
|
|
3043
3205
|
});
|
|
3044
3206
|
}
|
|
3045
3207
|
}
|
|
3046
|
-
return Promise.all(__spreadArrays(getParentAnimations(), getChildAnimations()));
|
|
3208
|
+
return Promise.all(__spreadArrays$1(getParentAnimations(), getChildAnimations()));
|
|
3047
3209
|
};
|
|
3048
3210
|
};
|
|
3049
3211
|
|
|
@@ -3169,7 +3331,7 @@ var createValueMap = function (props) {
|
|
|
3169
3331
|
};
|
|
3170
3332
|
|
|
3171
3333
|
var applyDefaultTransition = function (pose, key, defaultTransitions) {
|
|
3172
|
-
return __assign(__assign({}, pose), { transition: defaultTransitions.has(key) ? defaultTransitions.get(key) : defaultTransitions.get('default') });
|
|
3334
|
+
return __assign$5(__assign$5({}, pose), { transition: defaultTransitions.has(key) ? defaultTransitions.get(key) : defaultTransitions.get('default') });
|
|
3173
3335
|
};
|
|
3174
3336
|
var generateTransitions = function (poses, defaultTransitions) {
|
|
3175
3337
|
Object.keys(poses).forEach(function (key) {
|
|
@@ -3223,7 +3385,7 @@ var poseFactory = function (_a) {
|
|
|
3223
3385
|
var poses = generateTransitions(selectPoses(config), defaultTransitions);
|
|
3224
3386
|
var _b = config.props,
|
|
3225
3387
|
props = _b === void 0 ? {} : _b;
|
|
3226
|
-
if (getDefaultProps) props = __assign(__assign({}, getDefaultProps(config)), props);
|
|
3388
|
+
if (getDefaultProps) props = __assign$5(__assign$5({}, getDefaultProps(config)), props);
|
|
3227
3389
|
var passive = config.passive,
|
|
3228
3390
|
userSetValues = config.values,
|
|
3229
3391
|
_c = config.initialPose,
|
|
@@ -3298,10 +3460,10 @@ var poseFactory = function (_a) {
|
|
|
3298
3460
|
},
|
|
3299
3461
|
has: has,
|
|
3300
3462
|
setProps: function (newProps) {
|
|
3301
|
-
return state.props = __assign(__assign({}, state.props), newProps);
|
|
3463
|
+
return state.props = __assign$5(__assign$5({}, state.props), newProps);
|
|
3302
3464
|
},
|
|
3303
3465
|
_addChild: function (childConfig, factory) {
|
|
3304
|
-
var child = factory(__assign(__assign({ initialPose: initialPose }, childConfig), { ancestorValues: __spreadArrays([{ label: config.label, values: values }], ancestorValues) }));
|
|
3466
|
+
var child = factory(__assign$5(__assign$5({ initialPose: initialPose }, childConfig), { ancestorValues: __spreadArrays$1([{ label: config.label, values: values }], ancestorValues) }));
|
|
3305
3467
|
children.add(child);
|
|
3306
3468
|
return child;
|
|
3307
3469
|
},
|
|
@@ -3340,18 +3502,18 @@ See the Apache Version 2.0 License for specific language governing permissions
|
|
|
3340
3502
|
and limitations under the License.
|
|
3341
3503
|
***************************************************************************** */
|
|
3342
3504
|
|
|
3343
|
-
var __assign$
|
|
3344
|
-
__assign$
|
|
3505
|
+
var __assign$6 = function () {
|
|
3506
|
+
__assign$6 = Object.assign || function __assign(t) {
|
|
3345
3507
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
3346
3508
|
s = arguments[i];
|
|
3347
3509
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
3348
3510
|
}
|
|
3349
3511
|
return t;
|
|
3350
3512
|
};
|
|
3351
|
-
return __assign$
|
|
3513
|
+
return __assign$6.apply(this, arguments);
|
|
3352
3514
|
};
|
|
3353
3515
|
|
|
3354
|
-
function __rest$
|
|
3516
|
+
function __rest$4(s, e) {
|
|
3355
3517
|
var t = {};
|
|
3356
3518
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
3357
3519
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -3468,12 +3630,12 @@ var intelligentTransition = {
|
|
|
3468
3630
|
opacity: linearTween,
|
|
3469
3631
|
default: tween
|
|
3470
3632
|
};
|
|
3471
|
-
var dragAction = /*#__PURE__*/__assign$
|
|
3633
|
+
var dragAction = /*#__PURE__*/__assign$6( /*#__PURE__*/__assign$6({}, intelligentTransition), { x: /*#__PURE__*/createPointer(pointerX, 'left', 'right', BoundingBoxDimension.width), y: /*#__PURE__*/createPointer(pointerY, 'top', 'bottom', BoundingBoxDimension.height) });
|
|
3472
3634
|
var justAxis = function (_a) {
|
|
3473
3635
|
var from = _a.from;
|
|
3474
3636
|
return just(from);
|
|
3475
3637
|
};
|
|
3476
|
-
var intelligentDragEnd = /*#__PURE__*/__assign$
|
|
3638
|
+
var intelligentDragEnd = /*#__PURE__*/__assign$6( /*#__PURE__*/__assign$6({}, intelligentTransition), { x: justAxis, y: justAxis });
|
|
3477
3639
|
var defaultTransitions = /*#__PURE__*/new Map([['default', intelligentTransition], ['drag', dragAction], ['dragEnd', intelligentDragEnd]]);
|
|
3478
3640
|
|
|
3479
3641
|
var animationLookup = {
|
|
@@ -3543,7 +3705,7 @@ var getAction = function (v, _a, _b) {
|
|
|
3543
3705
|
var _c = _a.type,
|
|
3544
3706
|
type = _c === void 0 ? 'tween' : _c,
|
|
3545
3707
|
definedEase = _a.ease,
|
|
3546
|
-
def = __rest$
|
|
3708
|
+
def = __rest$4(_a, ["type", "ease"]);
|
|
3547
3709
|
invariant(animationLookup[type] !== undefined, "Invalid transition type '" + type + "'. Valid transition types are: tween, spring, decay, physics and keyframes.");
|
|
3548
3710
|
var ease;
|
|
3549
3711
|
if (type === 'tween') {
|
|
@@ -3568,7 +3730,7 @@ var getAction = function (v, _a, _b) {
|
|
|
3568
3730
|
velocity: velocity,
|
|
3569
3731
|
ease: ease
|
|
3570
3732
|
} : { ease: ease };
|
|
3571
|
-
return animationLookup[type](__assign$
|
|
3733
|
+
return animationLookup[type](__assign$6(__assign$6({}, baseProps), def));
|
|
3572
3734
|
};
|
|
3573
3735
|
var isAction = function (action$$1) {
|
|
3574
3736
|
return typeof action$$1.start !== 'undefined';
|
|
@@ -3653,7 +3815,7 @@ var pose = function (_a) {
|
|
|
3653
3815
|
min = def.min,
|
|
3654
3816
|
max = def.max,
|
|
3655
3817
|
round = def.round,
|
|
3656
|
-
remainingDef = __rest$
|
|
3818
|
+
remainingDef = __rest$4(def, ["delay", "min", "max", "round"]);
|
|
3657
3819
|
var action$$1 = getAction(val, remainingDef, props);
|
|
3658
3820
|
var outputPipe = [];
|
|
3659
3821
|
if (delay$$1) action$$1 = addActionDelay(delay$$1, action$$1);
|
|
@@ -3835,7 +3997,7 @@ var explicitlyFlipPose = function (state, nextPose) {
|
|
|
3835
3997
|
bottom = nextPose.bottom,
|
|
3836
3998
|
right = nextPose.right,
|
|
3837
3999
|
position = nextPose.position,
|
|
3838
|
-
remainingPose = __rest$
|
|
4000
|
+
remainingPose = __rest$4(nextPose, ["width", "height", "top", "left", "bottom", "right", "position"]);
|
|
3839
4001
|
var propsToSet = positionalProps.concat('position').reduce(function (acc, key) {
|
|
3840
4002
|
if (nextPose[key] !== undefined) {
|
|
3841
4003
|
acc[key] = resolveProp$1(nextPose[key], state.props);
|
|
@@ -3947,7 +4109,7 @@ var convertPositionalUnits = function (state, nextPose) {
|
|
|
3947
4109
|
changedPositionalKeys.push(key);
|
|
3948
4110
|
if (!applyAtEndHasBeenCopied) {
|
|
3949
4111
|
applyAtEndHasBeenCopied = true;
|
|
3950
|
-
nextPose.applyAtEnd = nextPose.applyAtEnd ? __assign$
|
|
4112
|
+
nextPose.applyAtEnd = nextPose.applyAtEnd ? __assign$6({}, nextPose.applyAtEnd) : {};
|
|
3951
4113
|
}
|
|
3952
4114
|
nextPose.applyAtEnd[key] = nextPose.applyAtEnd[key] || nextPose[key];
|
|
3953
4115
|
setValue(state, key, to);
|
|
@@ -4003,8 +4165,8 @@ var createPoseConfig = function (element, _a) {
|
|
|
4003
4165
|
focusable = _a.focusable,
|
|
4004
4166
|
pressable = _a.pressable,
|
|
4005
4167
|
dragBounds = _a.dragBounds,
|
|
4006
|
-
config = __rest$
|
|
4007
|
-
var poseConfig = __assign$
|
|
4168
|
+
config = __rest$4(_a, ["onDragStart", "onDragEnd", "onPressStart", "onPressEnd", "draggable", "hoverable", "focusable", "pressable", "dragBounds"]);
|
|
4169
|
+
var poseConfig = __assign$6(__assign$6({ flip: {} }, config), { props: __assign$6(__assign$6({}, config.props), { onDragStart: onDragStart,
|
|
4008
4170
|
onDragEnd: onDragEnd,
|
|
4009
4171
|
onPressStart: onPressStart,
|
|
4010
4172
|
onPressEnd: onPressEnd,
|
|
@@ -4018,8 +4180,8 @@ var createPoseConfig = function (element, _a) {
|
|
|
4018
4180
|
var _b = dragPoses(draggable),
|
|
4019
4181
|
drag = _b.drag,
|
|
4020
4182
|
dragEnd = _b.dragEnd;
|
|
4021
|
-
poseConfig.drag = __assign$
|
|
4022
|
-
poseConfig.dragEnd = __assign$
|
|
4183
|
+
poseConfig.drag = __assign$6(__assign$6({}, drag), poseConfig.drag);
|
|
4184
|
+
poseConfig.dragEnd = __assign$6(__assign$6({}, dragEnd), poseConfig.dragEnd);
|
|
4023
4185
|
}
|
|
4024
4186
|
return poseConfig;
|
|
4025
4187
|
};
|
|
@@ -4027,7 +4189,7 @@ var domPose = /*#__PURE__*/pose({
|
|
|
4027
4189
|
posePriority: ['drag', 'press', 'focus', 'hover'],
|
|
4028
4190
|
transformPose: function (_a, name, state) {
|
|
4029
4191
|
var flip = _a.flip,
|
|
4030
|
-
pose$$1 = __rest$
|
|
4192
|
+
pose$$1 = __rest$4(_a, ["flip"]);
|
|
4031
4193
|
if (isFlipPose(flip, name, state)) {
|
|
4032
4194
|
return flipPose(state, pose$$1);
|
|
4033
4195
|
} else if (isPositional(pose$$1)) {
|
|
@@ -4065,7 +4227,7 @@ var domPose = /*#__PURE__*/pose({
|
|
|
4065
4227
|
var props = _a.props,
|
|
4066
4228
|
activeActions = _a.activeActions;
|
|
4067
4229
|
var measure = props.dimensions.measure;
|
|
4068
|
-
var poserApi = __assign$
|
|
4230
|
+
var poserApi = __assign$6(__assign$6({}, api), { addChild: function (element, childConfig) {
|
|
4069
4231
|
return api._addChild(createPoseConfig(element, childConfig), domPose);
|
|
4070
4232
|
}, measure: measure, flip: function (op) {
|
|
4071
4233
|
if (op) {
|
|
@@ -7131,6 +7293,104 @@ var Imposter = function Imposter(_ref) {
|
|
|
7131
7293
|
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null)));
|
|
7132
7294
|
};
|
|
7133
7295
|
|
|
7296
|
+
/*! *****************************************************************************
|
|
7297
|
+
Copyright (c) Microsoft Corporation.
|
|
7298
|
+
|
|
7299
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
7300
|
+
purpose with or without fee is hereby granted.
|
|
7301
|
+
|
|
7302
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
7303
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
7304
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
7305
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
7306
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
7307
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
7308
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
7309
|
+
***************************************************************************** */
|
|
7310
|
+
/* global Reflect, Promise */
|
|
7311
|
+
|
|
7312
|
+
var extendStatics$2 = function(d, b) {
|
|
7313
|
+
extendStatics$2 = Object.setPrototypeOf ||
|
|
7314
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7315
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7316
|
+
return extendStatics$2(d, b);
|
|
7317
|
+
};
|
|
7318
|
+
|
|
7319
|
+
function __extends$2(d, b) {
|
|
7320
|
+
extendStatics$2(d, b);
|
|
7321
|
+
function __() { this.constructor = d; }
|
|
7322
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
7323
|
+
}
|
|
7324
|
+
|
|
7325
|
+
var __assign$7 = function() {
|
|
7326
|
+
__assign$7 = Object.assign || function __assign(t) {
|
|
7327
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
7328
|
+
s = arguments[i];
|
|
7329
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
7330
|
+
}
|
|
7331
|
+
return t;
|
|
7332
|
+
};
|
|
7333
|
+
return __assign$7.apply(this, arguments);
|
|
7334
|
+
};
|
|
7335
|
+
|
|
7336
|
+
function __rest$5(s, e) {
|
|
7337
|
+
var t = {};
|
|
7338
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
7339
|
+
t[p] = s[p];
|
|
7340
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7341
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7342
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
7343
|
+
t[p[i]] = s[p[i]];
|
|
7344
|
+
}
|
|
7345
|
+
return t;
|
|
7346
|
+
}
|
|
7347
|
+
|
|
7348
|
+
function __spreadArrays$2() {
|
|
7349
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
7350
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
7351
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
7352
|
+
r[k] = a[j];
|
|
7353
|
+
return r;
|
|
7354
|
+
}
|
|
7355
|
+
|
|
7356
|
+
/*! *****************************************************************************
|
|
7357
|
+
Copyright (c) Microsoft Corporation.
|
|
7358
|
+
|
|
7359
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
7360
|
+
purpose with or without fee is hereby granted.
|
|
7361
|
+
|
|
7362
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
7363
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
7364
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
7365
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
7366
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
7367
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
7368
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
7369
|
+
***************************************************************************** */
|
|
7370
|
+
|
|
7371
|
+
var __assign$8 = function() {
|
|
7372
|
+
__assign$8 = Object.assign || function __assign(t) {
|
|
7373
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
7374
|
+
s = arguments[i];
|
|
7375
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
7376
|
+
}
|
|
7377
|
+
return t;
|
|
7378
|
+
};
|
|
7379
|
+
return __assign$8.apply(this, arguments);
|
|
7380
|
+
};
|
|
7381
|
+
|
|
7382
|
+
function __rest$6(s, e) {
|
|
7383
|
+
var t = {};
|
|
7384
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
7385
|
+
t[p] = s[p];
|
|
7386
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7387
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7388
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
7389
|
+
t[p[i]] = s[p[i]];
|
|
7390
|
+
}
|
|
7391
|
+
return t;
|
|
7392
|
+
}
|
|
7393
|
+
|
|
7134
7394
|
var Observer$1 = /*#__PURE__*/function () {
|
|
7135
7395
|
function Observer(_a, observer) {
|
|
7136
7396
|
var _this = this;
|
|
@@ -7193,18 +7453,18 @@ var Action$1 = /*#__PURE__*/function () {
|
|
|
7193
7453
|
};
|
|
7194
7454
|
var _a = this.props,
|
|
7195
7455
|
init = _a.init,
|
|
7196
|
-
observerProps = __rest(_a, ["init"]);
|
|
7456
|
+
observerProps = __rest$6(_a, ["init"]);
|
|
7197
7457
|
var observer = createObserver$1(observerCandidate, observerProps, function () {
|
|
7198
7458
|
isComplete = true;
|
|
7199
7459
|
subscription.stop();
|
|
7200
7460
|
});
|
|
7201
7461
|
var api = init(observer);
|
|
7202
|
-
subscription = api ? __assign({}, subscription, api) : subscription;
|
|
7462
|
+
subscription = api ? __assign$8({}, subscription, api) : subscription;
|
|
7203
7463
|
if (isComplete) subscription.stop();
|
|
7204
7464
|
return subscription;
|
|
7205
7465
|
};
|
|
7206
7466
|
Action.prototype.applyMiddleware = function (middleware) {
|
|
7207
|
-
return this.create(__assign({}, this.props, { middleware: this.props.middleware ? [middleware].concat(this.props.middleware) : [middleware] }));
|
|
7467
|
+
return this.create(__assign$8({}, this.props, { middleware: this.props.middleware ? [middleware].concat(this.props.middleware) : [middleware] }));
|
|
7208
7468
|
};
|
|
7209
7469
|
Action.prototype.pipe = function () {
|
|
7210
7470
|
var funcs = [];
|
|
@@ -7257,18 +7517,18 @@ var createAction$1 = function (action, props) {
|
|
|
7257
7517
|
var createUnitAction$1 = function (action, _a) {
|
|
7258
7518
|
var from = _a.from,
|
|
7259
7519
|
to = _a.to,
|
|
7260
|
-
props = __rest(_a, ["from", "to"]);
|
|
7520
|
+
props = __rest$6(_a, ["from", "to"]);
|
|
7261
7521
|
var unitType = findUnitType$1(from) || findUnitType$1(to);
|
|
7262
7522
|
var transform = unitType.transform,
|
|
7263
7523
|
parse = unitType.parse;
|
|
7264
|
-
return action(__assign({}, props, { from: typeof from === 'string' ? parse(from) : from, to: typeof to === 'string' ? parse(to) : to })).pipe(transform);
|
|
7524
|
+
return action(__assign$8({}, props, { from: typeof from === 'string' ? parse(from) : from, to: typeof to === 'string' ? parse(to) : to })).pipe(transform);
|
|
7265
7525
|
};
|
|
7266
7526
|
var createMixerAction$1 = function (mixer) {
|
|
7267
7527
|
return function (action, _a) {
|
|
7268
7528
|
var from = _a.from,
|
|
7269
7529
|
to = _a.to,
|
|
7270
|
-
props = __rest(_a, ["from", "to"]);
|
|
7271
|
-
return action(__assign({}, props, { from: 0, to: 1 })).pipe(mixer(from, to));
|
|
7530
|
+
props = __rest$6(_a, ["from", "to"]);
|
|
7531
|
+
return action(__assign$8({}, props, { from: 0, to: 1 })).pipe(mixer(from, to));
|
|
7272
7532
|
};
|
|
7273
7533
|
};
|
|
7274
7534
|
var createColorAction$1 = /*#__PURE__*/createMixerAction$1(mixColor);
|
|
@@ -7481,7 +7741,7 @@ var inertia = function (_a) {
|
|
|
7481
7741
|
};
|
|
7482
7742
|
var startSpring = function (props) {
|
|
7483
7743
|
isSpring = true;
|
|
7484
|
-
startAnimation(vectorSpring$1(__assign({}, props, { to: isLessThanMin(props.from) ? min : max, stiffness: bounceStiffness, damping: bounceDamping, restDelta: restDelta })));
|
|
7744
|
+
startAnimation(vectorSpring$1(__assign$8({}, props, { to: isLessThanMin(props.from) ? min : max, stiffness: bounceStiffness, damping: bounceDamping, restDelta: restDelta })));
|
|
7485
7745
|
};
|
|
7486
7746
|
if (isOutOfBounds(from)) {
|
|
7487
7747
|
startSpring({ from: from, velocity: velocity });
|
|
@@ -7713,7 +7973,7 @@ var keyframes$1 = function (_a) {
|
|
|
7713
7973
|
ease = _b === void 0 ? linear : _b,
|
|
7714
7974
|
times = _a.times,
|
|
7715
7975
|
values = _a.values,
|
|
7716
|
-
tweenProps = __rest(_a, ["easings", "ease", "times", "values"]);
|
|
7976
|
+
tweenProps = __rest$6(_a, ["easings", "ease", "times", "values"]);
|
|
7717
7977
|
easings = Array.isArray(easings) ? easings : defaultEasings$1(values, easings);
|
|
7718
7978
|
times = times || defaultTimings$1(values);
|
|
7719
7979
|
var scrubbers = easings.map(function (easing, i) {
|
|
@@ -7723,7 +7983,7 @@ var keyframes$1 = function (_a) {
|
|
|
7723
7983
|
ease: easing
|
|
7724
7984
|
});
|
|
7725
7985
|
});
|
|
7726
|
-
return tween$1(__assign({}, tweenProps, { ease: ease })).applyMiddleware(function (update) {
|
|
7986
|
+
return tween$1(__assign$8({}, tweenProps, { ease: ease })).applyMiddleware(function (update) {
|
|
7727
7987
|
return interpolateScrubbers$1(times, scrubbers, update);
|
|
7728
7988
|
});
|
|
7729
7989
|
};
|
|
@@ -7925,7 +8185,7 @@ var MotionValue = /** @class */ (function () {
|
|
|
7925
8185
|
*/
|
|
7926
8186
|
MotionValue.prototype.addChild = function (config) {
|
|
7927
8187
|
if (config === void 0) { config = {}; }
|
|
7928
|
-
var child = new MotionValue(this.current, __assign({ parent: this }, config));
|
|
8188
|
+
var child = new MotionValue(this.current, __assign$7({ parent: this }, config));
|
|
7929
8189
|
if (!this.children)
|
|
7930
8190
|
this.children = new Set();
|
|
7931
8191
|
this.children.add(child);
|
|
@@ -8367,7 +8627,7 @@ var buildStyleAttr = function (values, styleProp, isStatic) {
|
|
|
8367
8627
|
? transformTemplate({}, styleProp.transform)
|
|
8368
8628
|
: transformTemplate;
|
|
8369
8629
|
}
|
|
8370
|
-
return buildStyleProperty(__assign(__assign({}, styleProp), motionValueStyles), !isStatic);
|
|
8630
|
+
return buildStyleProperty(__assign$7(__assign$7({}, styleProp), motionValueStyles), !isStatic);
|
|
8371
8631
|
};
|
|
8372
8632
|
var useMotionStyles = function (values, styleProp, isStatic, transformValues) {
|
|
8373
8633
|
if (styleProp === void 0) { styleProp = {}; }
|
|
@@ -8421,7 +8681,7 @@ var auto$1 = {
|
|
|
8421
8681
|
parse: function (v) { return v; },
|
|
8422
8682
|
};
|
|
8423
8683
|
var dimensionTypes = [number, px, percent, degrees, vw, vh, auto$1];
|
|
8424
|
-
var valueTypes$1 = __spreadArrays(dimensionTypes, [color, complex]);
|
|
8684
|
+
var valueTypes$1 = __spreadArrays$2(dimensionTypes, [color, complex]);
|
|
8425
8685
|
var testValueType$1 = function (v) { return function (type) { return type.test(v); }; };
|
|
8426
8686
|
var getDimensionValueType = function (v) {
|
|
8427
8687
|
return dimensionTypes.find(testValueType$1(v));
|
|
@@ -8474,7 +8734,7 @@ var getDefaultTransition = function (valueKey, to) {
|
|
|
8474
8734
|
transitionFactory =
|
|
8475
8735
|
defaultTransitions$1[valueKey] || defaultTransitions$1.default;
|
|
8476
8736
|
}
|
|
8477
|
-
return __assign({ to: to }, transitionFactory(to));
|
|
8737
|
+
return __assign$7({ to: to }, transitionFactory(to));
|
|
8478
8738
|
};
|
|
8479
8739
|
|
|
8480
8740
|
/**
|
|
@@ -8570,9 +8830,9 @@ var transitionOptionParser = {
|
|
|
8570
8830
|
return opts;
|
|
8571
8831
|
},
|
|
8572
8832
|
keyframes: function (_a) {
|
|
8573
|
-
var from = _a.from, to = _a.to, velocity = _a.velocity, opts = __rest(_a, ["from", "to", "velocity"]);
|
|
8833
|
+
var from = _a.from, to = _a.to, velocity = _a.velocity, opts = __rest$5(_a, ["from", "to", "velocity"]);
|
|
8574
8834
|
if (opts.values && opts.values[0] === null) {
|
|
8575
|
-
var values = __spreadArrays(opts.values);
|
|
8835
|
+
var values = __spreadArrays$2(opts.values);
|
|
8576
8836
|
values[0] = from;
|
|
8577
8837
|
opts.values = values;
|
|
8578
8838
|
}
|
|
@@ -8586,7 +8846,7 @@ var transitionOptionParser = {
|
|
|
8586
8846
|
},
|
|
8587
8847
|
};
|
|
8588
8848
|
var isTransitionDefined = function (_a) {
|
|
8589
|
-
var when = _a.when, delay = _a.delay, delayChildren = _a.delayChildren, staggerChildren = _a.staggerChildren, staggerDirection = _a.staggerDirection, transition = __rest(_a, ["when", "delay", "delayChildren", "staggerChildren", "staggerDirection"]);
|
|
8849
|
+
var when = _a.when, delay = _a.delay, delayChildren = _a.delayChildren, staggerChildren = _a.staggerChildren, staggerDirection = _a.staggerDirection, transition = __rest$5(_a, ["when", "delay", "delayChildren", "staggerChildren", "staggerDirection"]);
|
|
8590
8850
|
return Object.keys(transition).length;
|
|
8591
8851
|
};
|
|
8592
8852
|
var getTransitionDefinition = function (key, to, transitionDefinition) {
|
|
@@ -8596,7 +8856,7 @@ var getTransitionDefinition = function (key, to, transitionDefinition) {
|
|
|
8596
8856
|
// and see if there's any props remaining
|
|
8597
8857
|
if (transitionDefinition === undefined ||
|
|
8598
8858
|
!isTransitionDefined(transitionDefinition)) {
|
|
8599
|
-
return __assign({ delay: delay }, getDefaultTransition(key, to));
|
|
8859
|
+
return __assign$7({ delay: delay }, getDefaultTransition(key, to));
|
|
8600
8860
|
}
|
|
8601
8861
|
var valueTransitionDefinition = transitionDefinition[key] ||
|
|
8602
8862
|
transitionDefinition.default ||
|
|
@@ -8613,12 +8873,12 @@ var getTransitionDefinition = function (key, to, transitionDefinition) {
|
|
|
8613
8873
|
};
|
|
8614
8874
|
}
|
|
8615
8875
|
else if (isKeyframesTarget(to)) {
|
|
8616
|
-
return __assign(__assign({ values: to, duration: 0.8, delay: delay, ease: "linear" }, valueTransitionDefinition), {
|
|
8876
|
+
return __assign$7(__assign$7({ values: to, duration: 0.8, delay: delay, ease: "linear" }, valueTransitionDefinition), {
|
|
8617
8877
|
// This animation must be keyframes if we're animating through an array
|
|
8618
8878
|
type: "keyframes" });
|
|
8619
8879
|
}
|
|
8620
8880
|
else {
|
|
8621
|
-
return __assign({ type: "tween", to: to,
|
|
8881
|
+
return __assign$7({ type: "tween", to: to,
|
|
8622
8882
|
delay: delay }, valueTransitionDefinition);
|
|
8623
8883
|
}
|
|
8624
8884
|
};
|
|
@@ -8635,12 +8895,12 @@ var getAnimation = function (key, value, target, transition) {
|
|
|
8635
8895
|
// for instance 100 to #fff. This might live better in Popmotion.
|
|
8636
8896
|
warning(isOriginAnimatable === isTargetAnimatable, "You are trying to animate " + key + " from \"" + origin + "\" to " + target + ". \"" + origin + "\" is not an animatable value - to enable this animation set " + origin + " to a value animatable to " + target + " via the `style` property.");
|
|
8637
8897
|
// Parse the `transition` prop and return options for the Popmotion animation
|
|
8638
|
-
var _a = getTransitionDefinition(key, target, transition), _b = _a.type, type = _b === void 0 ? "tween" : _b, transitionDefinition = __rest(_a, ["type"]);
|
|
8898
|
+
var _a = getTransitionDefinition(key, target, transition), _b = _a.type, type = _b === void 0 ? "tween" : _b, transitionDefinition = __rest$5(_a, ["type"]);
|
|
8639
8899
|
// If this is an animatable pair of values, return an animation, otherwise use `just`
|
|
8640
8900
|
var actionFactory = isOriginAnimatable && isTargetAnimatable
|
|
8641
8901
|
? transitions[type]
|
|
8642
8902
|
: just$1;
|
|
8643
|
-
var opts = preprocessOptions(type, __assign({ from: origin, velocity: value.getVelocity() }, transitionDefinition));
|
|
8903
|
+
var opts = preprocessOptions(type, __assign$7({ from: origin, velocity: value.getVelocity() }, transitionDefinition));
|
|
8644
8904
|
// Convert duration from Framer Motion's seconds into Popmotion's milliseconds
|
|
8645
8905
|
if (isDurationAnimation(opts)) {
|
|
8646
8906
|
if (opts.duration) {
|
|
@@ -8658,10 +8918,10 @@ var getAnimation = function (key, value, target, transition) {
|
|
|
8658
8918
|
* @internal
|
|
8659
8919
|
*/
|
|
8660
8920
|
function startAnimation(key, value, target, _a) {
|
|
8661
|
-
var _b = _a.delay, delay$1$1 = _b === void 0 ? 0 : _b, transition = __rest(_a, ["delay"]);
|
|
8921
|
+
var _b = _a.delay, delay$1$1 = _b === void 0 ? 0 : _b, transition = __rest$5(_a, ["delay"]);
|
|
8662
8922
|
return value.start(function (complete) {
|
|
8663
8923
|
var activeAnimation;
|
|
8664
|
-
var _a = getAnimation(key, value, target, transition), animationFactory = _a[0], _b = _a[1], valueDelay = _b.delay, options = __rest(_b, ["delay"]);
|
|
8924
|
+
var _a = getAnimation(key, value, target, transition), animationFactory = _a[0], _b = _a[1], valueDelay = _b.delay, options = __rest$5(_b, ["delay"]);
|
|
8665
8925
|
if (valueDelay !== undefined) {
|
|
8666
8926
|
delay$1$1 = valueDelay;
|
|
8667
8927
|
}
|
|
@@ -8807,7 +9067,7 @@ var ValueAnimationControls = /** @class */ (function () {
|
|
|
8807
9067
|
var _this = this;
|
|
8808
9068
|
var _b = _a === void 0 ? {} : _a, _c = _b.isActive, isActive = _c === void 0 ? new Set() : _c, priority = _b.priority;
|
|
8809
9069
|
var _d = this.resolveVariant(definition), target = _d.target, transitionEnd = _d.transitionEnd;
|
|
8810
|
-
target = this.transformValues(__assign(__assign({}, target), transitionEnd));
|
|
9070
|
+
target = this.transformValues(__assign$7(__assign$7({}, target), transitionEnd));
|
|
8811
9071
|
return Object.keys(target).forEach(function (key) {
|
|
8812
9072
|
if (isActive.has(key))
|
|
8813
9073
|
return;
|
|
@@ -8897,7 +9157,7 @@ var ValueAnimationControls = /** @class */ (function () {
|
|
|
8897
9157
|
// resolve current and velocity
|
|
8898
9158
|
variant = variant(this.props.custom, getCurrent$1(this.values), getVelocity(this.values));
|
|
8899
9159
|
}
|
|
8900
|
-
var _a = variant.transition, transition = _a === void 0 ? this.defaultTransition : _a, transitionEnd = variant.transitionEnd, target = __rest(variant, ["transition", "transitionEnd"]);
|
|
9160
|
+
var _a = variant.transition, transition = _a === void 0 ? this.defaultTransition : _a, transitionEnd = variant.transitionEnd, target = __rest$5(variant, ["transition", "transitionEnd"]);
|
|
8901
9161
|
return { transition: transition, transitionEnd: transitionEnd, target: target };
|
|
8902
9162
|
};
|
|
8903
9163
|
/**
|
|
@@ -8988,7 +9248,7 @@ var ValueAnimationControls = /** @class */ (function () {
|
|
|
8988
9248
|
ValueAnimationControls.prototype.applyVariantLabels = function (variantLabelList) {
|
|
8989
9249
|
var _this = this;
|
|
8990
9250
|
var isActive = new Set();
|
|
8991
|
-
var reversedList = __spreadArrays(variantLabelList).reverse();
|
|
9251
|
+
var reversedList = __spreadArrays$2(variantLabelList).reverse();
|
|
8992
9252
|
reversedList.forEach(function (key) {
|
|
8993
9253
|
var _a = _this.resolveVariant(_this.variants[key]), target = _a.target, transitionEnd = _a.transitionEnd;
|
|
8994
9254
|
if (transitionEnd) {
|
|
@@ -9059,7 +9319,7 @@ var ValueAnimationControls = /** @class */ (function () {
|
|
|
9059
9319
|
if (this.isAnimating.has(key))
|
|
9060
9320
|
continue;
|
|
9061
9321
|
this.isAnimating.add(key);
|
|
9062
|
-
animations.push(startAnimation(key, value, valueTarget, __assign({ delay: delay }, transition)));
|
|
9322
|
+
animations.push(startAnimation(key, value, valueTarget, __assign$7({ delay: delay }, transition)));
|
|
9063
9323
|
}
|
|
9064
9324
|
var allAnimations = Promise.all(animations);
|
|
9065
9325
|
return transitionEnd
|
|
@@ -9070,7 +9330,7 @@ var ValueAnimationControls = /** @class */ (function () {
|
|
|
9070
9330
|
};
|
|
9071
9331
|
ValueAnimationControls.prototype.animateVariantLabels = function (variantLabels, opts) {
|
|
9072
9332
|
var _this = this;
|
|
9073
|
-
var animations = __spreadArrays(variantLabels).reverse()
|
|
9333
|
+
var animations = __spreadArrays$2(variantLabels).reverse()
|
|
9074
9334
|
.map(function (label) { return _this.animateVariant(label, opts); });
|
|
9075
9335
|
return Promise.all(animations);
|
|
9076
9336
|
};
|
|
@@ -9514,7 +9774,7 @@ function useValueAnimationControls(config, props, subscribeToParentControls) {
|
|
|
9514
9774
|
// Remove reference to onAnimationComplete from controls. All the MotionValues
|
|
9515
9775
|
// are unsubscribed from this component separately. We let animations run out
|
|
9516
9776
|
// as they might be animating other components.
|
|
9517
|
-
var onAnimationComplete = props.onAnimationComplete, unmountProps = __rest(props, ["onAnimationComplete"]);
|
|
9777
|
+
var onAnimationComplete = props.onAnimationComplete, unmountProps = __rest$5(props, ["onAnimationComplete"]);
|
|
9518
9778
|
controls.setProps(unmountProps);
|
|
9519
9779
|
parentControls && parentControls.removeChild(controls);
|
|
9520
9780
|
};
|
|
@@ -9999,7 +10259,7 @@ var PanSession = /** @class */ (function () {
|
|
|
9999
10259
|
return;
|
|
10000
10260
|
var point = info.point;
|
|
10001
10261
|
var timestamp = getFrameData().timestamp;
|
|
10002
|
-
_this.history.push(__assign(__assign({}, point), { timestamp: timestamp }));
|
|
10262
|
+
_this.history.push(__assign$7(__assign$7({}, point), { timestamp: timestamp }));
|
|
10003
10263
|
var _a = _this.handlers, onStart = _a.onStart, onMove = _a.onMove;
|
|
10004
10264
|
if (!isPanStarted) {
|
|
10005
10265
|
onStart && onStart(_this.lastMoveEvent, info);
|
|
@@ -10016,7 +10276,7 @@ var PanSession = /** @class */ (function () {
|
|
|
10016
10276
|
var initialInfo = transformPoint(info, this.transformPagePoint);
|
|
10017
10277
|
var point = initialInfo.point;
|
|
10018
10278
|
var timestamp = getFrameData().timestamp;
|
|
10019
|
-
this.history = [__assign(__assign({}, point), { timestamp: timestamp })];
|
|
10279
|
+
this.history = [__assign$7(__assign$7({}, point), { timestamp: timestamp })];
|
|
10020
10280
|
var onSessionStart = handlers.onSessionStart;
|
|
10021
10281
|
onSessionStart &&
|
|
10022
10282
|
onSessionStart(event, getPanInfo(initialInfo, this.history));
|
|
@@ -10344,7 +10604,7 @@ var Gestures = {
|
|
|
10344
10604
|
return gestureProps.some(function (key) { return props.hasOwnProperty(key); });
|
|
10345
10605
|
},
|
|
10346
10606
|
Component: makeRenderlessComponent(function (_a) {
|
|
10347
|
-
var innerRef = _a.innerRef, props = __rest(_a, ["innerRef"]);
|
|
10607
|
+
var innerRef = _a.innerRef, props = __rest$5(_a, ["innerRef"]);
|
|
10348
10608
|
useGestures(props, innerRef);
|
|
10349
10609
|
}),
|
|
10350
10610
|
};
|
|
@@ -10584,8 +10844,8 @@ var ComponentDragControls = /** @class */ (function () {
|
|
|
10584
10844
|
};
|
|
10585
10845
|
ComponentDragControls.prototype.updateProps = function (_a) {
|
|
10586
10846
|
var _this = this;
|
|
10587
|
-
var _b = _a.drag, drag = _b === void 0 ? false : _b, _c = _a.dragDirectionLock, dragDirectionLock = _c === void 0 ? false : _c, _d = _a.dragPropagation, dragPropagation = _d === void 0 ? false : _d, _e = _a.dragConstraints, dragConstraints = _e === void 0 ? false : _e, _f = _a.dragElastic, dragElastic = _f === void 0 ? true : _f, _g = _a.dragMomentum, dragMomentum = _g === void 0 ? true : _g, remainingProps = __rest(_a, ["drag", "dragDirectionLock", "dragPropagation", "dragConstraints", "dragElastic", "dragMomentum"]);
|
|
10588
|
-
this.props = __assign({ drag: drag,
|
|
10847
|
+
var _b = _a.drag, drag = _b === void 0 ? false : _b, _c = _a.dragDirectionLock, dragDirectionLock = _c === void 0 ? false : _c, _d = _a.dragPropagation, dragPropagation = _d === void 0 ? false : _d, _e = _a.dragConstraints, dragConstraints = _e === void 0 ? false : _e, _f = _a.dragElastic, dragElastic = _f === void 0 ? true : _f, _g = _a.dragMomentum, dragMomentum = _g === void 0 ? true : _g, remainingProps = __rest$5(_a, ["drag", "dragDirectionLock", "dragPropagation", "dragConstraints", "dragElastic", "dragMomentum"]);
|
|
10848
|
+
this.props = __assign$7({ drag: drag,
|
|
10589
10849
|
dragDirectionLock: dragDirectionLock,
|
|
10590
10850
|
dragPropagation: dragPropagation,
|
|
10591
10851
|
dragConstraints: dragConstraints,
|
|
@@ -10641,7 +10901,7 @@ var ComponentDragControls = /** @class */ (function () {
|
|
|
10641
10901
|
var bounceStiffness = dragElastic ? 200 : 1000000;
|
|
10642
10902
|
var bounceDamping = dragElastic ? 40 : 10000000;
|
|
10643
10903
|
var animationControls = _dragTransitionControls || _this.controls;
|
|
10644
|
-
var inertia = __assign(__assign({ type: "inertia", velocity: dragMomentum ? velocity[axis] : 0, bounceStiffness: bounceStiffness,
|
|
10904
|
+
var inertia = __assign$7(__assign$7({ type: "inertia", velocity: dragMomentum ? velocity[axis] : 0, bounceStiffness: bounceStiffness,
|
|
10645
10905
|
bounceDamping: bounceDamping, timeConstant: 750, restDelta: 1 }, dragTransition), transition);
|
|
10646
10906
|
var externalAxisMotionValue = axis === "x" ? _dragValueX : _dragValueY;
|
|
10647
10907
|
// If we're not animating on an externally-provided `MotionValue` we can use the
|
|
@@ -10722,7 +10982,7 @@ function bothAxis(handler) {
|
|
|
10722
10982
|
return [handler("x"), handler("y")];
|
|
10723
10983
|
}
|
|
10724
10984
|
function convertPanToDrag(info, point) {
|
|
10725
|
-
return __assign(__assign({}, info), { point: {
|
|
10985
|
+
return __assign$7(__assign$7({}, info), { point: {
|
|
10726
10986
|
x: point.x ? point.x.get() : 0,
|
|
10727
10987
|
y: point.y ? point.y.get() : 0,
|
|
10728
10988
|
} });
|
|
@@ -10833,7 +11093,7 @@ function useDrag(props, ref, values, controls) {
|
|
|
10833
11093
|
var groupDragControls = props.dragControls;
|
|
10834
11094
|
var transformPagePoint = React.useContext(MotionPluginContext).transformPagePoint;
|
|
10835
11095
|
var dragControls = useConstant(function () { return new ComponentDragControls({ ref: ref, values: values, controls: controls }); });
|
|
10836
|
-
dragControls.updateProps(__assign(__assign({}, props), { transformPagePoint: transformPagePoint }));
|
|
11096
|
+
dragControls.updateProps(__assign$7(__assign$7({}, props), { transformPagePoint: transformPagePoint }));
|
|
10837
11097
|
React.useEffect(function () { return groupDragControls && groupDragControls.subscribe(dragControls); }, [dragControls]);
|
|
10838
11098
|
React.useEffect(function () { return dragControls.mount(ref.current); }, []);
|
|
10839
11099
|
}
|
|
@@ -10842,7 +11102,7 @@ var Drag = {
|
|
|
10842
11102
|
key: "drag",
|
|
10843
11103
|
shouldRender: function (props) { return !!props.drag; },
|
|
10844
11104
|
Component: makeRenderlessComponent(function (_a) {
|
|
10845
|
-
var innerRef = _a.innerRef, values = _a.values, controls = _a.controls, props = __rest(_a, ["innerRef", "values", "controls"]);
|
|
11105
|
+
var innerRef = _a.innerRef, values = _a.values, controls = _a.controls, props = __rest$5(_a, ["innerRef", "values", "controls"]);
|
|
10846
11106
|
return useDrag(props, innerRef, values, controls);
|
|
10847
11107
|
}),
|
|
10848
11108
|
};
|
|
@@ -10894,14 +11154,14 @@ function getVariableValue(current, element, depth) {
|
|
|
10894
11154
|
* @internal
|
|
10895
11155
|
*/
|
|
10896
11156
|
function resolveCSSVariables(values, ref, _a, transitionEnd) {
|
|
10897
|
-
var target = __rest(_a, []);
|
|
11157
|
+
var target = __rest$5(_a, []);
|
|
10898
11158
|
var element = ref.current;
|
|
10899
11159
|
if (!(element instanceof HTMLElement))
|
|
10900
11160
|
return { target: target, transitionEnd: transitionEnd };
|
|
10901
11161
|
// If `transitionEnd` isn't `undefined`, clone it. We could clone `target` and `transitionEnd`
|
|
10902
11162
|
// only if they change but I think this reads clearer and this isn't a performance-critical path.
|
|
10903
11163
|
if (transitionEnd) {
|
|
10904
|
-
transitionEnd = __assign({}, transitionEnd);
|
|
11164
|
+
transitionEnd = __assign$7({}, transitionEnd);
|
|
10905
11165
|
}
|
|
10906
11166
|
// Go through existing `MotionValue`s and ensure any existing CSS variables are resolved
|
|
10907
11167
|
values.forEach(function (value) {
|
|
@@ -11058,8 +11318,8 @@ var convertChangedValueTypes = function (target, values, element, elementStyler,
|
|
|
11058
11318
|
};
|
|
11059
11319
|
var checkAndConvertChangedValueTypes = function (values, ref, target, transitionEnd) {
|
|
11060
11320
|
if (transitionEnd === void 0) { transitionEnd = {}; }
|
|
11061
|
-
target = __assign({}, target);
|
|
11062
|
-
transitionEnd = __assign({}, transitionEnd);
|
|
11321
|
+
target = __assign$7({}, target);
|
|
11322
|
+
transitionEnd = __assign$7({}, transitionEnd);
|
|
11063
11323
|
var element = ref.current;
|
|
11064
11324
|
var elementStyler = index(element);
|
|
11065
11325
|
var targetPositionalKeys = Object.keys(target).filter(isPositionalKey$1);
|
|
@@ -11287,7 +11547,7 @@ function calcAxisDelta(prev, next, names) {
|
|
|
11287
11547
|
return delta;
|
|
11288
11548
|
}
|
|
11289
11549
|
function calcDelta(prev, next) {
|
|
11290
|
-
var delta = __assign(__assign({}, calcAxisDelta(prev, next, axisLabels.x)), calcAxisDelta(prev, next, axisLabels.y));
|
|
11550
|
+
var delta = __assign$7(__assign$7({}, calcAxisDelta(prev, next, axisLabels.x)), calcAxisDelta(prev, next, axisLabels.y));
|
|
11291
11551
|
return delta;
|
|
11292
11552
|
}
|
|
11293
11553
|
var offset = {
|
|
@@ -11331,7 +11591,7 @@ function getTransition(_a) {
|
|
|
11331
11591
|
return layoutTransition || positionTransition;
|
|
11332
11592
|
}
|
|
11333
11593
|
var LayoutAnimation = /** @class */ (function (_super) {
|
|
11334
|
-
__extends(LayoutAnimation, _super);
|
|
11594
|
+
__extends$2(LayoutAnimation, _super);
|
|
11335
11595
|
function LayoutAnimation() {
|
|
11336
11596
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
11337
11597
|
}
|
|
@@ -11398,11 +11658,11 @@ var LayoutAnimation = /** @class */ (function (_super) {
|
|
|
11398
11658
|
if (!delta[deltaKey])
|
|
11399
11659
|
return;
|
|
11400
11660
|
var baseTransition = typeof transitionDefinition === "boolean"
|
|
11401
|
-
? __assign({}, getDefaultLayoutTransition(isPositionOnly)) : transitionDefinition;
|
|
11661
|
+
? __assign$7({}, getDefaultLayoutTransition(isPositionOnly)) : transitionDefinition;
|
|
11402
11662
|
var value = values.get(transformKey, targetValue);
|
|
11403
11663
|
var velocity = value.getVelocity();
|
|
11404
11664
|
transition[transformKey] = baseTransition[transformKey]
|
|
11405
|
-
? __assign({}, baseTransition[transformKey]) : __assign({}, baseTransition);
|
|
11665
|
+
? __assign$7({}, baseTransition[transformKey]) : __assign$7({}, baseTransition);
|
|
11406
11666
|
if (transition[transformKey].velocity === undefined) {
|
|
11407
11667
|
transition[transformKey].velocity = velocity || 0;
|
|
11408
11668
|
}
|
|
@@ -11543,9 +11803,9 @@ var hasUpdated = function (prev, next) {
|
|
|
11543
11803
|
};
|
|
11544
11804
|
function targetWithoutTransition(_a, mergeTransitionEnd) {
|
|
11545
11805
|
if (mergeTransitionEnd === void 0) { mergeTransitionEnd = false; }
|
|
11546
|
-
var transition = _a.transition, transitionEnd = _a.transitionEnd, target = __rest(_a, ["transition", "transitionEnd"]);
|
|
11806
|
+
var transition = _a.transition, transitionEnd = _a.transitionEnd, target = __rest$5(_a, ["transition", "transitionEnd"]);
|
|
11547
11807
|
return mergeTransitionEnd
|
|
11548
|
-
? __assign(__assign({}, target), transitionEnd)
|
|
11808
|
+
? __assign$7(__assign$7({}, target), transitionEnd)
|
|
11549
11809
|
: target;
|
|
11550
11810
|
}
|
|
11551
11811
|
/**
|
|
@@ -11597,9 +11857,9 @@ function useAnimateProp(targetAndTransition, controls, values, defaultTransition
|
|
|
11597
11857
|
}
|
|
11598
11858
|
}
|
|
11599
11859
|
isInitialRender.current = false;
|
|
11600
|
-
prevValues.current = __assign(__assign({}, prevValues.current), finalTarget);
|
|
11860
|
+
prevValues.current = __assign$7(__assign$7({}, prevValues.current), finalTarget);
|
|
11601
11861
|
if (Object.keys(targetToAnimate).length) {
|
|
11602
|
-
controls.start(__assign(__assign({}, targetToAnimate), { transition: targetAndTransition.transition || defaultTransition, transitionEnd: targetAndTransition.transitionEnd }));
|
|
11862
|
+
controls.start(__assign$7(__assign$7({}, targetToAnimate), { transition: targetAndTransition.transition || defaultTransition, transitionEnd: targetAndTransition.transitionEnd }));
|
|
11603
11863
|
}
|
|
11604
11864
|
}, [targetAndTransition]);
|
|
11605
11865
|
}
|
|
@@ -11773,7 +12033,7 @@ var Exit = {
|
|
|
11773
12033
|
React.useEffect(function () {
|
|
11774
12034
|
if (!isPresent) {
|
|
11775
12035
|
if (!isPlayingExitAnimation.current && exit) {
|
|
11776
|
-
controls.setProps(__assign(__assign({}, props), { custom: custom }));
|
|
12036
|
+
controls.setProps(__assign$7(__assign$7({}, props), { custom: custom }));
|
|
11777
12037
|
controls.start(exit).then(onExitComplete);
|
|
11778
12038
|
}
|
|
11779
12039
|
isPlayingExitAnimation.current = true;
|
|
@@ -11844,7 +12104,7 @@ var buildHTMLProps = function (values, style, isStatic, isDrag) {
|
|
|
11844
12104
|
var buildSVGProps = function (values, style) {
|
|
11845
12105
|
var motionValueStyles = resolveCurrent(values);
|
|
11846
12106
|
var props = buildSVGAttrs(motionValueStyles, undefined, undefined, undefined, undefined, false);
|
|
11847
|
-
props.style = __assign(__assign({}, style), props.style);
|
|
12107
|
+
props.style = __assign$7(__assign$7({}, style), props.style);
|
|
11848
12108
|
return props;
|
|
11849
12109
|
};
|
|
11850
12110
|
var functionalityComponents = [Layout, Drag, Gestures, Exit];
|
|
@@ -11863,7 +12123,7 @@ function createDomMotionConfig(Component) {
|
|
|
11863
12123
|
var staticVisualStyles = isSVG
|
|
11864
12124
|
? buildSVGProps(values, style)
|
|
11865
12125
|
: buildHTMLProps(values, style, isStatic, !!props.drag);
|
|
11866
|
-
return React.createElement(Component, __assign(__assign(__assign({}, forwardedProps), { ref: ref }), staticVisualStyles));
|
|
12126
|
+
return React.createElement(Component, __assign$7(__assign$7(__assign$7({}, forwardedProps), { ref: ref }), staticVisualStyles));
|
|
11867
12127
|
},
|
|
11868
12128
|
/**
|
|
11869
12129
|
* loadFunctionalityComponents gets used by the `motion` component
|
|
@@ -11894,7 +12154,7 @@ function createDomMotionConfig(Component) {
|
|
|
11894
12154
|
for (var i = 0; i < numFunctionalityComponents; i++) {
|
|
11895
12155
|
var _a = functionalityComponents[i], shouldRender = _a.shouldRender, key = _a.key, Component_1 = _a.Component;
|
|
11896
12156
|
if (shouldRender(props, context)) {
|
|
11897
|
-
activeComponents.push(React.createElement(Component_1, __assign({ key: key }, props, { parentContext: context, values: values, controls: controls, innerRef: ref })));
|
|
12157
|
+
activeComponents.push(React.createElement(Component_1, __assign$7({ key: key }, props, { parentContext: context, values: values, controls: controls, innerRef: ref })));
|
|
11898
12158
|
}
|
|
11899
12159
|
}
|
|
11900
12160
|
return activeComponents;
|
|
@@ -11946,7 +12206,7 @@ var svgMotionComponents = svgElements.reduce(function (acc, Component) {
|
|
|
11946
12206
|
*
|
|
11947
12207
|
* @public
|
|
11948
12208
|
*/
|
|
11949
|
-
var motion = __assign(__assign({
|
|
12209
|
+
var motion = __assign$7(__assign$7({
|
|
11950
12210
|
/**
|
|
11951
12211
|
* Convert a custom React component into a `motion` component.
|
|
11952
12212
|
*
|
|
@@ -11998,7 +12258,7 @@ var PresenceChild = function (_a) {
|
|
|
11998
12258
|
return function () { return numPresenceChildren.current--; };
|
|
11999
12259
|
};
|
|
12000
12260
|
}, [isPresent]);
|
|
12001
|
-
return (React.createElement(PresenceContext.Provider, { value: __assign(__assign({}, context), { register: register }) }, children));
|
|
12261
|
+
return (React.createElement(PresenceContext.Provider, { value: __assign$7(__assign$7({}, context), { register: register }) }, children));
|
|
12002
12262
|
};
|
|
12003
12263
|
|
|
12004
12264
|
function getChildKey(child) {
|
|
@@ -12114,7 +12374,7 @@ var AnimatePresence = function (_a) {
|
|
|
12114
12374
|
return (React.createElement(React.Fragment, null, filteredChildren.map(function (child) { return (React.createElement(PresenceChild, { key: getChildKey(child), isPresent: true, initial: initial ? undefined : false }, child)); })));
|
|
12115
12375
|
}
|
|
12116
12376
|
// If this is a subsequent render, deal with entering and exiting children
|
|
12117
|
-
var childrenToRender = __spreadArrays(filteredChildren);
|
|
12377
|
+
var childrenToRender = __spreadArrays$2(filteredChildren);
|
|
12118
12378
|
// Diff the keys of the currently-present and target children to update our
|
|
12119
12379
|
// exiting list.
|
|
12120
12380
|
var presentKeys = presentChildren.current.map(getChildKey);
|
|
@@ -39932,20 +40192,36 @@ var NavTabs = function NavTabs(_ref) {
|
|
|
39932
40192
|
};
|
|
39933
40193
|
|
|
39934
40194
|
var shineFrames = styled.keyframes(["{0{background-position:0 0;}20%{background-position:100% 100%;}100%{background-position:100% 100%;}}"]);
|
|
39935
|
-
var LoadingPill = styled__default.
|
|
40195
|
+
var LoadingPill = styled__default.span.withConfig({
|
|
39936
40196
|
displayName: "LoadingPillstyled__LoadingPill",
|
|
39937
40197
|
componentId: "sc-kn9rtt-0"
|
|
39938
|
-
})(["width:", "px;background-color:", ";margin:", ";height:", ";border-radius:16px;background-image:linear-gradient( 135deg,", " 0%,", " 40%,", " 60%,", " 100% );background-size:400%;animation:", " 2s infinite ease-in-out;animation-direction:reverse;"], function (_ref) {
|
|
40198
|
+
})(["display:block;width:", "px;background-color:", ";margin:", ";height:", ";border-radius:16px;background-image:linear-gradient( 135deg,", " 0%,", " 40%,", " 60%,", " 100% );background-size:400%;animation:", " 2s infinite ease-in-out;animation-direction:reverse;"], function (_ref) {
|
|
39939
40199
|
var width = _ref.width;
|
|
39940
40200
|
return width;
|
|
39941
|
-
},
|
|
39942
|
-
var
|
|
39943
|
-
return
|
|
40201
|
+
}, function (_ref2) {
|
|
40202
|
+
var backgroundColor = _ref2.backgroundColor;
|
|
40203
|
+
return backgroundColor;
|
|
39944
40204
|
}, function (_ref3) {
|
|
39945
|
-
var
|
|
40205
|
+
var margin = _ref3.margin;
|
|
40206
|
+
return margin;
|
|
40207
|
+
}, function (_ref4) {
|
|
40208
|
+
var height = _ref4.height;
|
|
39946
40209
|
return height;
|
|
39947
|
-
},
|
|
40210
|
+
}, function (_ref5) {
|
|
40211
|
+
var backgroundColor = _ref5.backgroundColor;
|
|
40212
|
+
return backgroundColor;
|
|
40213
|
+
}, function (_ref6) {
|
|
40214
|
+
var foregroundColor = _ref6.foregroundColor;
|
|
40215
|
+
return foregroundColor;
|
|
40216
|
+
}, function (_ref7) {
|
|
40217
|
+
var backgroundColor = _ref7.backgroundColor;
|
|
40218
|
+
return backgroundColor;
|
|
40219
|
+
}, function (_ref8) {
|
|
40220
|
+
var backgroundColor = _ref8.backgroundColor;
|
|
40221
|
+
return backgroundColor;
|
|
40222
|
+
}, shineFrames);
|
|
39948
40223
|
|
|
40224
|
+
var _excluded$G = ["minWidth", "maxWidth", "exactWidth", "height", "margin", "backgroundColor", "foregroundColor"];
|
|
39949
40225
|
var LoadingLine = function LoadingLine(_ref) {
|
|
39950
40226
|
var minWidth = _ref.minWidth,
|
|
39951
40227
|
maxWidth = _ref.maxWidth,
|
|
@@ -39954,13 +40230,21 @@ var LoadingLine = function LoadingLine(_ref) {
|
|
|
39954
40230
|
_ref$height = _ref.height,
|
|
39955
40231
|
height = _ref$height === void 0 ? "16px" : _ref$height,
|
|
39956
40232
|
_ref$margin = _ref.margin,
|
|
39957
|
-
margin = _ref$margin === void 0 ? "0px" : _ref$margin
|
|
40233
|
+
margin = _ref$margin === void 0 ? "0px" : _ref$margin,
|
|
40234
|
+
_ref$backgroundColor = _ref.backgroundColor,
|
|
40235
|
+
backgroundColor = _ref$backgroundColor === void 0 ? SEASHELL_WHITE : _ref$backgroundColor,
|
|
40236
|
+
_ref$foregroundColor = _ref.foregroundColor,
|
|
40237
|
+
foregroundColor = _ref$foregroundColor === void 0 ? ALABASTER_WHITE : _ref$foregroundColor,
|
|
40238
|
+
props = _objectWithoutProperties(_ref, _excluded$G);
|
|
39958
40239
|
var calculatedWidth = Math.floor(Math.random() * (parseInt(maxWidth) - parseInt(minWidth) + 1) + parseInt(minWidth));
|
|
39959
|
-
return /*#__PURE__*/React__default.createElement(LoadingPill, {
|
|
40240
|
+
return /*#__PURE__*/React__default.createElement(LoadingPill, _extends({
|
|
40241
|
+
"aria-label": "loading",
|
|
39960
40242
|
margin: margin,
|
|
39961
40243
|
height: height,
|
|
39962
|
-
width: exactWidth || calculatedWidth
|
|
39963
|
-
|
|
40244
|
+
width: exactWidth || calculatedWidth,
|
|
40245
|
+
backgroundColor: backgroundColor,
|
|
40246
|
+
foregroundColor: foregroundColor
|
|
40247
|
+
}, props));
|
|
39964
40248
|
};
|
|
39965
40249
|
|
|
39966
40250
|
var fontSize$9 = {
|
|
@@ -45929,11 +46213,11 @@ var Modal$2 = function Modal(_ref) {
|
|
|
45929
46213
|
};
|
|
45930
46214
|
var ModalControlV2 = withWindowSize(Modal$2);
|
|
45931
46215
|
|
|
45932
|
-
var _excluded$
|
|
46216
|
+
var _excluded$H = ["version"];
|
|
45933
46217
|
var Modal$3 = function Modal(_ref) {
|
|
45934
46218
|
var _ref$version = _ref.version,
|
|
45935
46219
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
45936
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
46220
|
+
rest = _objectWithoutProperties(_ref, _excluded$H);
|
|
45937
46221
|
var ModalControl = version === "v1" ? Modal$1 : ModalControlV2;
|
|
45938
46222
|
return /*#__PURE__*/React__default.createElement(ModalControl, rest);
|
|
45939
46223
|
};
|
|
@@ -47973,7 +48257,7 @@ var fallbackValues$P = {
|
|
|
47973
48257
|
labeledAmountTotal: labeledAmountTotal
|
|
47974
48258
|
};
|
|
47975
48259
|
|
|
47976
|
-
var _excluded$
|
|
48260
|
+
var _excluded$I = ["amount"],
|
|
47977
48261
|
_excluded2$1 = ["amount"];
|
|
47978
48262
|
var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
47979
48263
|
var lineItemElems = _ref.lineItemElems,
|
|
@@ -48216,7 +48500,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
48216
48500
|
return fee.amount > 0;
|
|
48217
48501
|
}).map(function (_ref5) {
|
|
48218
48502
|
var amount = _ref5.amount,
|
|
48219
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
48503
|
+
rest = _objectWithoutProperties(_ref5, _excluded$I);
|
|
48220
48504
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
48221
48505
|
amount: displayCurrency(amount)
|
|
48222
48506
|
});
|
|
@@ -48653,11 +48937,11 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48653
48937
|
}, errorMessage))))));
|
|
48654
48938
|
};
|
|
48655
48939
|
|
|
48656
|
-
var _excluded$
|
|
48940
|
+
var _excluded$J = ["version"];
|
|
48657
48941
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
48658
48942
|
var _ref$version = _ref.version,
|
|
48659
48943
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
48660
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48944
|
+
rest = _objectWithoutProperties(_ref, _excluded$J);
|
|
48661
48945
|
var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
|
|
48662
48946
|
return /*#__PURE__*/React__default.createElement(TermsAndConditionsControl, rest);
|
|
48663
48947
|
};
|
|
@@ -49465,7 +49749,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
|
49465
49749
|
}, section.content))));
|
|
49466
49750
|
};
|
|
49467
49751
|
|
|
49468
|
-
var _excluded$
|
|
49752
|
+
var _excluded$K = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections", "borderOverride"];
|
|
49469
49753
|
|
|
49470
49754
|
/**
|
|
49471
49755
|
- The RadioSection component takes either a flat array (via the 'sections'
|
|
@@ -49514,7 +49798,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
49514
49798
|
isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire,
|
|
49515
49799
|
groupedSections = _ref.groupedSections,
|
|
49516
49800
|
borderOverride = _ref.borderOverride,
|
|
49517
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
49801
|
+
rest = _objectWithoutProperties(_ref, _excluded$K);
|
|
49518
49802
|
var _useState = React.useState(null),
|
|
49519
49803
|
_useState2 = _slicedToArray(_useState, 2),
|
|
49520
49804
|
focused = _useState2[0],
|
|
@@ -50061,7 +50345,7 @@ var Timeout = function Timeout(_ref) {
|
|
|
50061
50345
|
};
|
|
50062
50346
|
var Timeout$1 = withWindowSize(Timeout);
|
|
50063
50347
|
|
|
50064
|
-
var _excluded$
|
|
50348
|
+
var _excluded$L = ["variant", "message", "toastOpen", "closeToastNotification", "extraStyles", "minWidth", "maxWidth", "height", "childGap", "backgroundColor", "role", "ariaLive", "screenReaderMessage", "showScreenReaderMessage"];
|
|
50065
50349
|
var VARIANTS = {
|
|
50066
50350
|
SUCCESS: "success",
|
|
50067
50351
|
ERROR: "error"
|
|
@@ -50090,7 +50374,7 @@ var ToastNotification = function ToastNotification(_ref) {
|
|
|
50090
50374
|
screenReaderMessage = _ref.screenReaderMessage,
|
|
50091
50375
|
_ref$showScreenReader = _ref.showScreenReaderMessage,
|
|
50092
50376
|
showScreenReaderMessage = _ref$showScreenReader === void 0 ? true : _ref$showScreenReader,
|
|
50093
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
50377
|
+
rest = _objectWithoutProperties(_ref, _excluded$L);
|
|
50094
50378
|
var screenReaderMessageRef = React.useRef();
|
|
50095
50379
|
var LIVEREGION_TRANSITION_DELAY = 1000;
|
|
50096
50380
|
React.useEffect(function () {
|
|
@@ -50273,7 +50557,7 @@ var PopupMenuItemContainer = styled__default(ButtonWithAction).withConfig({
|
|
|
50273
50557
|
return "\n background-color: ".concat(isDeleteAction ? theme.menuItemHoverBackgroundColorDelete : theme.menuItemHoverBackgroundColor, ";\n ");
|
|
50274
50558
|
});
|
|
50275
50559
|
|
|
50276
|
-
var _excluded$
|
|
50560
|
+
var _excluded$M = ["id", "closeMenuCallback", "action", "themeValues", "text", "hasIcon", "isDeleteAction", "icon", "textExtraStyles", "hoverStyles", "activeStyles", "extraStyles"];
|
|
50277
50561
|
var PopupMenuItem = function PopupMenuItem(_ref) {
|
|
50278
50562
|
var id = _ref.id,
|
|
50279
50563
|
closeMenuCallback = _ref.closeMenuCallback,
|
|
@@ -50289,7 +50573,7 @@ var PopupMenuItem = function PopupMenuItem(_ref) {
|
|
|
50289
50573
|
hoverStyles = _ref.hoverStyles,
|
|
50290
50574
|
activeStyles = _ref.activeStyles,
|
|
50291
50575
|
extraStyles = _ref.extraStyles,
|
|
50292
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
50576
|
+
rest = _objectWithoutProperties(_ref, _excluded$M);
|
|
50293
50577
|
return /*#__PURE__*/React__default.createElement(PopupMenuItemContainer, _extends({
|
|
50294
50578
|
id: id,
|
|
50295
50579
|
role: "menuItem",
|
|
@@ -50528,7 +50812,7 @@ var ActionLinkButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
50528
50812
|
});
|
|
50529
50813
|
});
|
|
50530
50814
|
|
|
50531
|
-
var _excluded$
|
|
50815
|
+
var _excluded$N = ["width", "height", "color"];
|
|
50532
50816
|
var DropdownIconV2 = function DropdownIconV2(_ref) {
|
|
50533
50817
|
var _ref$width = _ref.width,
|
|
50534
50818
|
width = _ref$width === void 0 ? "18" : _ref$width,
|
|
@@ -50536,7 +50820,7 @@ var DropdownIconV2 = function DropdownIconV2(_ref) {
|
|
|
50536
50820
|
height = _ref$height === void 0 ? "19" : _ref$height,
|
|
50537
50821
|
_ref$color = _ref.color,
|
|
50538
50822
|
color = _ref$color === void 0 ? "#292A33" : _ref$color,
|
|
50539
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
50823
|
+
props = _objectWithoutProperties(_ref, _excluded$N);
|
|
50540
50824
|
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
50541
50825
|
width: width,
|
|
50542
50826
|
height: height,
|
|
@@ -50681,7 +50965,7 @@ var SearchBox = function SearchBox(_ref) {
|
|
|
50681
50965
|
}));
|
|
50682
50966
|
};
|
|
50683
50967
|
|
|
50684
|
-
var _excluded$
|
|
50968
|
+
var _excluded$O = ["width", "height", "color"];
|
|
50685
50969
|
var CheckboxCheckmarkIcon = function CheckboxCheckmarkIcon(_ref) {
|
|
50686
50970
|
var _ref$width = _ref.width,
|
|
50687
50971
|
width = _ref$width === void 0 ? "18" : _ref$width,
|
|
@@ -50689,7 +50973,7 @@ var CheckboxCheckmarkIcon = function CheckboxCheckmarkIcon(_ref) {
|
|
|
50689
50973
|
height = _ref$height === void 0 ? "18" : _ref$height,
|
|
50690
50974
|
_ref$color = _ref.color,
|
|
50691
50975
|
color = _ref$color === void 0 ? "#FEFEFE" : _ref$color,
|
|
50692
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
50976
|
+
props = _objectWithoutProperties(_ref, _excluded$O);
|
|
50693
50977
|
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
50694
50978
|
xmlns: "http://www.w3.org/2000/svg",
|
|
50695
50979
|
width: width,
|