@thecb/components 10.7.0-beta.0 → 10.7.1-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 +431 -161
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +431 -161
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/{molecules/obligation → atoms}/.DS_Store +0 -0
- package/src/components/atoms/icons/.DS_Store +0 -0
- package/src/components/molecules/obligation/Obligation.js +2 -6
- package/src/components/molecules/obligation/modules/AmountModule.js +1 -1
- package/src/components/molecules/obligation/modules/AutopayModalModule.js +11 -11
- package/src/components/molecules/obligation/modules/AutopayModalModule.theme.js +20 -0
- package/src/components/molecules/obligation/modules/IconModule.js +7 -3
- package/src/components/molecules/obligation/modules/InactiveControlsModule.js +1 -1
- package/src/components/molecules/obligation/modules/PaymentDetailsActions.js +7 -3
- package/src/.DS_Store +0 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/molecules/.DS_Store +0 -0
- package/src/components/molecules/obligation/Obligation.theme.js +0 -7
- package/src/stories/Button.stories.ts +0 -53
- package/src/stories/Button.tsx +0 -48
- package/src/stories/Configure.mdx +0 -364
- package/src/stories/Header.stories.ts +0 -33
- package/src/stories/Header.tsx +0 -56
- package/src/stories/Page.stories.ts +0 -32
- package/src/stories/Page.tsx +0 -73
- package/src/stories/assets/accessibility.png +0 -0
- package/src/stories/assets/accessibility.svg +0 -5
- package/src/stories/assets/addon-library.png +0 -0
- package/src/stories/assets/assets.png +0 -0
- package/src/stories/assets/avif-test-image.avif +0 -0
- package/src/stories/assets/context.png +0 -0
- package/src/stories/assets/discord.svg +0 -15
- package/src/stories/assets/docs.png +0 -0
- package/src/stories/assets/figma-plugin.png +0 -0
- package/src/stories/assets/github.svg +0 -3
- package/src/stories/assets/share.png +0 -0
- package/src/stories/assets/styling.png +0 -0
- package/src/stories/assets/testing.png +0 -0
- package/src/stories/assets/theming.png +0 -0
- package/src/stories/assets/tutorials.svg +0 -12
- package/src/stories/assets/youtube.svg +0 -4
- package/src/stories/button.css +0 -30
- package/src/stories/header.css +0 -32
- package/src/stories/page.css +0 -69
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) {
|
|
@@ -7078,6 +7240,104 @@ var Imposter = function Imposter(_ref) {
|
|
|
7078
7240
|
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null)));
|
|
7079
7241
|
};
|
|
7080
7242
|
|
|
7243
|
+
/*! *****************************************************************************
|
|
7244
|
+
Copyright (c) Microsoft Corporation.
|
|
7245
|
+
|
|
7246
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
7247
|
+
purpose with or without fee is hereby granted.
|
|
7248
|
+
|
|
7249
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
7250
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
7251
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
7252
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
7253
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
7254
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
7255
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
7256
|
+
***************************************************************************** */
|
|
7257
|
+
/* global Reflect, Promise */
|
|
7258
|
+
|
|
7259
|
+
var extendStatics$2 = function(d, b) {
|
|
7260
|
+
extendStatics$2 = Object.setPrototypeOf ||
|
|
7261
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7262
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7263
|
+
return extendStatics$2(d, b);
|
|
7264
|
+
};
|
|
7265
|
+
|
|
7266
|
+
function __extends$2(d, b) {
|
|
7267
|
+
extendStatics$2(d, b);
|
|
7268
|
+
function __() { this.constructor = d; }
|
|
7269
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
7270
|
+
}
|
|
7271
|
+
|
|
7272
|
+
var __assign$7 = function() {
|
|
7273
|
+
__assign$7 = Object.assign || function __assign(t) {
|
|
7274
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
7275
|
+
s = arguments[i];
|
|
7276
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
7277
|
+
}
|
|
7278
|
+
return t;
|
|
7279
|
+
};
|
|
7280
|
+
return __assign$7.apply(this, arguments);
|
|
7281
|
+
};
|
|
7282
|
+
|
|
7283
|
+
function __rest$5(s, e) {
|
|
7284
|
+
var t = {};
|
|
7285
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
7286
|
+
t[p] = s[p];
|
|
7287
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7288
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7289
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
7290
|
+
t[p[i]] = s[p[i]];
|
|
7291
|
+
}
|
|
7292
|
+
return t;
|
|
7293
|
+
}
|
|
7294
|
+
|
|
7295
|
+
function __spreadArrays$2() {
|
|
7296
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
7297
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
7298
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
7299
|
+
r[k] = a[j];
|
|
7300
|
+
return r;
|
|
7301
|
+
}
|
|
7302
|
+
|
|
7303
|
+
/*! *****************************************************************************
|
|
7304
|
+
Copyright (c) Microsoft Corporation.
|
|
7305
|
+
|
|
7306
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
7307
|
+
purpose with or without fee is hereby granted.
|
|
7308
|
+
|
|
7309
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
7310
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
7311
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
7312
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
7313
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
7314
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
7315
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
7316
|
+
***************************************************************************** */
|
|
7317
|
+
|
|
7318
|
+
var __assign$8 = function() {
|
|
7319
|
+
__assign$8 = Object.assign || function __assign(t) {
|
|
7320
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
7321
|
+
s = arguments[i];
|
|
7322
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
7323
|
+
}
|
|
7324
|
+
return t;
|
|
7325
|
+
};
|
|
7326
|
+
return __assign$8.apply(this, arguments);
|
|
7327
|
+
};
|
|
7328
|
+
|
|
7329
|
+
function __rest$6(s, e) {
|
|
7330
|
+
var t = {};
|
|
7331
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
7332
|
+
t[p] = s[p];
|
|
7333
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7334
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7335
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
7336
|
+
t[p[i]] = s[p[i]];
|
|
7337
|
+
}
|
|
7338
|
+
return t;
|
|
7339
|
+
}
|
|
7340
|
+
|
|
7081
7341
|
var Observer$1 = /*#__PURE__*/function () {
|
|
7082
7342
|
function Observer(_a, observer) {
|
|
7083
7343
|
var _this = this;
|
|
@@ -7140,18 +7400,18 @@ var Action$1 = /*#__PURE__*/function () {
|
|
|
7140
7400
|
};
|
|
7141
7401
|
var _a = this.props,
|
|
7142
7402
|
init = _a.init,
|
|
7143
|
-
observerProps = __rest(_a, ["init"]);
|
|
7403
|
+
observerProps = __rest$6(_a, ["init"]);
|
|
7144
7404
|
var observer = createObserver$1(observerCandidate, observerProps, function () {
|
|
7145
7405
|
isComplete = true;
|
|
7146
7406
|
subscription.stop();
|
|
7147
7407
|
});
|
|
7148
7408
|
var api = init(observer);
|
|
7149
|
-
subscription = api ? __assign({}, subscription, api) : subscription;
|
|
7409
|
+
subscription = api ? __assign$8({}, subscription, api) : subscription;
|
|
7150
7410
|
if (isComplete) subscription.stop();
|
|
7151
7411
|
return subscription;
|
|
7152
7412
|
};
|
|
7153
7413
|
Action.prototype.applyMiddleware = function (middleware) {
|
|
7154
|
-
return this.create(__assign({}, this.props, { middleware: this.props.middleware ? [middleware].concat(this.props.middleware) : [middleware] }));
|
|
7414
|
+
return this.create(__assign$8({}, this.props, { middleware: this.props.middleware ? [middleware].concat(this.props.middleware) : [middleware] }));
|
|
7155
7415
|
};
|
|
7156
7416
|
Action.prototype.pipe = function () {
|
|
7157
7417
|
var funcs = [];
|
|
@@ -7204,18 +7464,18 @@ var createAction$1 = function (action, props) {
|
|
|
7204
7464
|
var createUnitAction$1 = function (action, _a) {
|
|
7205
7465
|
var from = _a.from,
|
|
7206
7466
|
to = _a.to,
|
|
7207
|
-
props = __rest(_a, ["from", "to"]);
|
|
7467
|
+
props = __rest$6(_a, ["from", "to"]);
|
|
7208
7468
|
var unitType = findUnitType$1(from) || findUnitType$1(to);
|
|
7209
7469
|
var transform = unitType.transform,
|
|
7210
7470
|
parse = unitType.parse;
|
|
7211
|
-
return action(__assign({}, props, { from: typeof from === 'string' ? parse(from) : from, to: typeof to === 'string' ? parse(to) : to })).pipe(transform);
|
|
7471
|
+
return action(__assign$8({}, props, { from: typeof from === 'string' ? parse(from) : from, to: typeof to === 'string' ? parse(to) : to })).pipe(transform);
|
|
7212
7472
|
};
|
|
7213
7473
|
var createMixerAction$1 = function (mixer) {
|
|
7214
7474
|
return function (action, _a) {
|
|
7215
7475
|
var from = _a.from,
|
|
7216
7476
|
to = _a.to,
|
|
7217
|
-
props = __rest(_a, ["from", "to"]);
|
|
7218
|
-
return action(__assign({}, props, { from: 0, to: 1 })).pipe(mixer(from, to));
|
|
7477
|
+
props = __rest$6(_a, ["from", "to"]);
|
|
7478
|
+
return action(__assign$8({}, props, { from: 0, to: 1 })).pipe(mixer(from, to));
|
|
7219
7479
|
};
|
|
7220
7480
|
};
|
|
7221
7481
|
var createColorAction$1 = /*#__PURE__*/createMixerAction$1(mixColor);
|
|
@@ -7428,7 +7688,7 @@ var inertia = function (_a) {
|
|
|
7428
7688
|
};
|
|
7429
7689
|
var startSpring = function (props) {
|
|
7430
7690
|
isSpring = true;
|
|
7431
|
-
startAnimation(vectorSpring$1(__assign({}, props, { to: isLessThanMin(props.from) ? min : max, stiffness: bounceStiffness, damping: bounceDamping, restDelta: restDelta })));
|
|
7691
|
+
startAnimation(vectorSpring$1(__assign$8({}, props, { to: isLessThanMin(props.from) ? min : max, stiffness: bounceStiffness, damping: bounceDamping, restDelta: restDelta })));
|
|
7432
7692
|
};
|
|
7433
7693
|
if (isOutOfBounds(from)) {
|
|
7434
7694
|
startSpring({ from: from, velocity: velocity });
|
|
@@ -7660,7 +7920,7 @@ var keyframes$1 = function (_a) {
|
|
|
7660
7920
|
ease = _b === void 0 ? linear : _b,
|
|
7661
7921
|
times = _a.times,
|
|
7662
7922
|
values = _a.values,
|
|
7663
|
-
tweenProps = __rest(_a, ["easings", "ease", "times", "values"]);
|
|
7923
|
+
tweenProps = __rest$6(_a, ["easings", "ease", "times", "values"]);
|
|
7664
7924
|
easings = Array.isArray(easings) ? easings : defaultEasings$1(values, easings);
|
|
7665
7925
|
times = times || defaultTimings$1(values);
|
|
7666
7926
|
var scrubbers = easings.map(function (easing, i) {
|
|
@@ -7670,7 +7930,7 @@ var keyframes$1 = function (_a) {
|
|
|
7670
7930
|
ease: easing
|
|
7671
7931
|
});
|
|
7672
7932
|
});
|
|
7673
|
-
return tween$1(__assign({}, tweenProps, { ease: ease })).applyMiddleware(function (update) {
|
|
7933
|
+
return tween$1(__assign$8({}, tweenProps, { ease: ease })).applyMiddleware(function (update) {
|
|
7674
7934
|
return interpolateScrubbers$1(times, scrubbers, update);
|
|
7675
7935
|
});
|
|
7676
7936
|
};
|
|
@@ -7872,7 +8132,7 @@ var MotionValue = /** @class */ (function () {
|
|
|
7872
8132
|
*/
|
|
7873
8133
|
MotionValue.prototype.addChild = function (config) {
|
|
7874
8134
|
if (config === void 0) { config = {}; }
|
|
7875
|
-
var child = new MotionValue(this.current, __assign({ parent: this }, config));
|
|
8135
|
+
var child = new MotionValue(this.current, __assign$7({ parent: this }, config));
|
|
7876
8136
|
if (!this.children)
|
|
7877
8137
|
this.children = new Set();
|
|
7878
8138
|
this.children.add(child);
|
|
@@ -8314,7 +8574,7 @@ var buildStyleAttr = function (values, styleProp, isStatic) {
|
|
|
8314
8574
|
? transformTemplate({}, styleProp.transform)
|
|
8315
8575
|
: transformTemplate;
|
|
8316
8576
|
}
|
|
8317
|
-
return buildStyleProperty(__assign(__assign({}, styleProp), motionValueStyles), !isStatic);
|
|
8577
|
+
return buildStyleProperty(__assign$7(__assign$7({}, styleProp), motionValueStyles), !isStatic);
|
|
8318
8578
|
};
|
|
8319
8579
|
var useMotionStyles = function (values, styleProp, isStatic, transformValues) {
|
|
8320
8580
|
if (styleProp === void 0) { styleProp = {}; }
|
|
@@ -8368,7 +8628,7 @@ var auto$1 = {
|
|
|
8368
8628
|
parse: function (v) { return v; },
|
|
8369
8629
|
};
|
|
8370
8630
|
var dimensionTypes = [number, px, percent, degrees, vw, vh, auto$1];
|
|
8371
|
-
var valueTypes$1 = __spreadArrays(dimensionTypes, [color, complex]);
|
|
8631
|
+
var valueTypes$1 = __spreadArrays$2(dimensionTypes, [color, complex]);
|
|
8372
8632
|
var testValueType$1 = function (v) { return function (type) { return type.test(v); }; };
|
|
8373
8633
|
var getDimensionValueType = function (v) {
|
|
8374
8634
|
return dimensionTypes.find(testValueType$1(v));
|
|
@@ -8421,7 +8681,7 @@ var getDefaultTransition = function (valueKey, to) {
|
|
|
8421
8681
|
transitionFactory =
|
|
8422
8682
|
defaultTransitions$1[valueKey] || defaultTransitions$1.default;
|
|
8423
8683
|
}
|
|
8424
|
-
return __assign({ to: to }, transitionFactory(to));
|
|
8684
|
+
return __assign$7({ to: to }, transitionFactory(to));
|
|
8425
8685
|
};
|
|
8426
8686
|
|
|
8427
8687
|
/**
|
|
@@ -8517,9 +8777,9 @@ var transitionOptionParser = {
|
|
|
8517
8777
|
return opts;
|
|
8518
8778
|
},
|
|
8519
8779
|
keyframes: function (_a) {
|
|
8520
|
-
var from = _a.from, to = _a.to, velocity = _a.velocity, opts = __rest(_a, ["from", "to", "velocity"]);
|
|
8780
|
+
var from = _a.from, to = _a.to, velocity = _a.velocity, opts = __rest$5(_a, ["from", "to", "velocity"]);
|
|
8521
8781
|
if (opts.values && opts.values[0] === null) {
|
|
8522
|
-
var values = __spreadArrays(opts.values);
|
|
8782
|
+
var values = __spreadArrays$2(opts.values);
|
|
8523
8783
|
values[0] = from;
|
|
8524
8784
|
opts.values = values;
|
|
8525
8785
|
}
|
|
@@ -8533,7 +8793,7 @@ var transitionOptionParser = {
|
|
|
8533
8793
|
},
|
|
8534
8794
|
};
|
|
8535
8795
|
var isTransitionDefined = function (_a) {
|
|
8536
|
-
var when = _a.when, delay = _a.delay, delayChildren = _a.delayChildren, staggerChildren = _a.staggerChildren, staggerDirection = _a.staggerDirection, transition = __rest(_a, ["when", "delay", "delayChildren", "staggerChildren", "staggerDirection"]);
|
|
8796
|
+
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"]);
|
|
8537
8797
|
return Object.keys(transition).length;
|
|
8538
8798
|
};
|
|
8539
8799
|
var getTransitionDefinition = function (key, to, transitionDefinition) {
|
|
@@ -8543,7 +8803,7 @@ var getTransitionDefinition = function (key, to, transitionDefinition) {
|
|
|
8543
8803
|
// and see if there's any props remaining
|
|
8544
8804
|
if (transitionDefinition === undefined ||
|
|
8545
8805
|
!isTransitionDefined(transitionDefinition)) {
|
|
8546
|
-
return __assign({ delay: delay }, getDefaultTransition(key, to));
|
|
8806
|
+
return __assign$7({ delay: delay }, getDefaultTransition(key, to));
|
|
8547
8807
|
}
|
|
8548
8808
|
var valueTransitionDefinition = transitionDefinition[key] ||
|
|
8549
8809
|
transitionDefinition.default ||
|
|
@@ -8560,12 +8820,12 @@ var getTransitionDefinition = function (key, to, transitionDefinition) {
|
|
|
8560
8820
|
};
|
|
8561
8821
|
}
|
|
8562
8822
|
else if (isKeyframesTarget(to)) {
|
|
8563
|
-
return __assign(__assign({ values: to, duration: 0.8, delay: delay, ease: "linear" }, valueTransitionDefinition), {
|
|
8823
|
+
return __assign$7(__assign$7({ values: to, duration: 0.8, delay: delay, ease: "linear" }, valueTransitionDefinition), {
|
|
8564
8824
|
// This animation must be keyframes if we're animating through an array
|
|
8565
8825
|
type: "keyframes" });
|
|
8566
8826
|
}
|
|
8567
8827
|
else {
|
|
8568
|
-
return __assign({ type: "tween", to: to,
|
|
8828
|
+
return __assign$7({ type: "tween", to: to,
|
|
8569
8829
|
delay: delay }, valueTransitionDefinition);
|
|
8570
8830
|
}
|
|
8571
8831
|
};
|
|
@@ -8582,12 +8842,12 @@ var getAnimation = function (key, value, target, transition) {
|
|
|
8582
8842
|
// for instance 100 to #fff. This might live better in Popmotion.
|
|
8583
8843
|
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.");
|
|
8584
8844
|
// Parse the `transition` prop and return options for the Popmotion animation
|
|
8585
|
-
var _a = getTransitionDefinition(key, target, transition), _b = _a.type, type = _b === void 0 ? "tween" : _b, transitionDefinition = __rest(_a, ["type"]);
|
|
8845
|
+
var _a = getTransitionDefinition(key, target, transition), _b = _a.type, type = _b === void 0 ? "tween" : _b, transitionDefinition = __rest$5(_a, ["type"]);
|
|
8586
8846
|
// If this is an animatable pair of values, return an animation, otherwise use `just`
|
|
8587
8847
|
var actionFactory = isOriginAnimatable && isTargetAnimatable
|
|
8588
8848
|
? transitions[type]
|
|
8589
8849
|
: just$1;
|
|
8590
|
-
var opts = preprocessOptions(type, __assign({ from: origin, velocity: value.getVelocity() }, transitionDefinition));
|
|
8850
|
+
var opts = preprocessOptions(type, __assign$7({ from: origin, velocity: value.getVelocity() }, transitionDefinition));
|
|
8591
8851
|
// Convert duration from Framer Motion's seconds into Popmotion's milliseconds
|
|
8592
8852
|
if (isDurationAnimation(opts)) {
|
|
8593
8853
|
if (opts.duration) {
|
|
@@ -8605,10 +8865,10 @@ var getAnimation = function (key, value, target, transition) {
|
|
|
8605
8865
|
* @internal
|
|
8606
8866
|
*/
|
|
8607
8867
|
function startAnimation(key, value, target, _a) {
|
|
8608
|
-
var _b = _a.delay, delay$1$1 = _b === void 0 ? 0 : _b, transition = __rest(_a, ["delay"]);
|
|
8868
|
+
var _b = _a.delay, delay$1$1 = _b === void 0 ? 0 : _b, transition = __rest$5(_a, ["delay"]);
|
|
8609
8869
|
return value.start(function (complete) {
|
|
8610
8870
|
var activeAnimation;
|
|
8611
|
-
var _a = getAnimation(key, value, target, transition), animationFactory = _a[0], _b = _a[1], valueDelay = _b.delay, options = __rest(_b, ["delay"]);
|
|
8871
|
+
var _a = getAnimation(key, value, target, transition), animationFactory = _a[0], _b = _a[1], valueDelay = _b.delay, options = __rest$5(_b, ["delay"]);
|
|
8612
8872
|
if (valueDelay !== undefined) {
|
|
8613
8873
|
delay$1$1 = valueDelay;
|
|
8614
8874
|
}
|
|
@@ -8754,7 +9014,7 @@ var ValueAnimationControls = /** @class */ (function () {
|
|
|
8754
9014
|
var _this = this;
|
|
8755
9015
|
var _b = _a === void 0 ? {} : _a, _c = _b.isActive, isActive = _c === void 0 ? new Set() : _c, priority = _b.priority;
|
|
8756
9016
|
var _d = this.resolveVariant(definition), target = _d.target, transitionEnd = _d.transitionEnd;
|
|
8757
|
-
target = this.transformValues(__assign(__assign({}, target), transitionEnd));
|
|
9017
|
+
target = this.transformValues(__assign$7(__assign$7({}, target), transitionEnd));
|
|
8758
9018
|
return Object.keys(target).forEach(function (key) {
|
|
8759
9019
|
if (isActive.has(key))
|
|
8760
9020
|
return;
|
|
@@ -8844,7 +9104,7 @@ var ValueAnimationControls = /** @class */ (function () {
|
|
|
8844
9104
|
// resolve current and velocity
|
|
8845
9105
|
variant = variant(this.props.custom, getCurrent$1(this.values), getVelocity(this.values));
|
|
8846
9106
|
}
|
|
8847
|
-
var _a = variant.transition, transition = _a === void 0 ? this.defaultTransition : _a, transitionEnd = variant.transitionEnd, target = __rest(variant, ["transition", "transitionEnd"]);
|
|
9107
|
+
var _a = variant.transition, transition = _a === void 0 ? this.defaultTransition : _a, transitionEnd = variant.transitionEnd, target = __rest$5(variant, ["transition", "transitionEnd"]);
|
|
8848
9108
|
return { transition: transition, transitionEnd: transitionEnd, target: target };
|
|
8849
9109
|
};
|
|
8850
9110
|
/**
|
|
@@ -8935,7 +9195,7 @@ var ValueAnimationControls = /** @class */ (function () {
|
|
|
8935
9195
|
ValueAnimationControls.prototype.applyVariantLabels = function (variantLabelList) {
|
|
8936
9196
|
var _this = this;
|
|
8937
9197
|
var isActive = new Set();
|
|
8938
|
-
var reversedList = __spreadArrays(variantLabelList).reverse();
|
|
9198
|
+
var reversedList = __spreadArrays$2(variantLabelList).reverse();
|
|
8939
9199
|
reversedList.forEach(function (key) {
|
|
8940
9200
|
var _a = _this.resolveVariant(_this.variants[key]), target = _a.target, transitionEnd = _a.transitionEnd;
|
|
8941
9201
|
if (transitionEnd) {
|
|
@@ -9006,7 +9266,7 @@ var ValueAnimationControls = /** @class */ (function () {
|
|
|
9006
9266
|
if (this.isAnimating.has(key))
|
|
9007
9267
|
continue;
|
|
9008
9268
|
this.isAnimating.add(key);
|
|
9009
|
-
animations.push(startAnimation(key, value, valueTarget, __assign({ delay: delay }, transition)));
|
|
9269
|
+
animations.push(startAnimation(key, value, valueTarget, __assign$7({ delay: delay }, transition)));
|
|
9010
9270
|
}
|
|
9011
9271
|
var allAnimations = Promise.all(animations);
|
|
9012
9272
|
return transitionEnd
|
|
@@ -9017,7 +9277,7 @@ var ValueAnimationControls = /** @class */ (function () {
|
|
|
9017
9277
|
};
|
|
9018
9278
|
ValueAnimationControls.prototype.animateVariantLabels = function (variantLabels, opts) {
|
|
9019
9279
|
var _this = this;
|
|
9020
|
-
var animations = __spreadArrays(variantLabels).reverse()
|
|
9280
|
+
var animations = __spreadArrays$2(variantLabels).reverse()
|
|
9021
9281
|
.map(function (label) { return _this.animateVariant(label, opts); });
|
|
9022
9282
|
return Promise.all(animations);
|
|
9023
9283
|
};
|
|
@@ -9461,7 +9721,7 @@ function useValueAnimationControls(config, props, subscribeToParentControls) {
|
|
|
9461
9721
|
// Remove reference to onAnimationComplete from controls. All the MotionValues
|
|
9462
9722
|
// are unsubscribed from this component separately. We let animations run out
|
|
9463
9723
|
// as they might be animating other components.
|
|
9464
|
-
var onAnimationComplete = props.onAnimationComplete, unmountProps = __rest(props, ["onAnimationComplete"]);
|
|
9724
|
+
var onAnimationComplete = props.onAnimationComplete, unmountProps = __rest$5(props, ["onAnimationComplete"]);
|
|
9465
9725
|
controls.setProps(unmountProps);
|
|
9466
9726
|
parentControls && parentControls.removeChild(controls);
|
|
9467
9727
|
};
|
|
@@ -9946,7 +10206,7 @@ var PanSession = /** @class */ (function () {
|
|
|
9946
10206
|
return;
|
|
9947
10207
|
var point = info.point;
|
|
9948
10208
|
var timestamp = getFrameData().timestamp;
|
|
9949
|
-
_this.history.push(__assign(__assign({}, point), { timestamp: timestamp }));
|
|
10209
|
+
_this.history.push(__assign$7(__assign$7({}, point), { timestamp: timestamp }));
|
|
9950
10210
|
var _a = _this.handlers, onStart = _a.onStart, onMove = _a.onMove;
|
|
9951
10211
|
if (!isPanStarted) {
|
|
9952
10212
|
onStart && onStart(_this.lastMoveEvent, info);
|
|
@@ -9963,7 +10223,7 @@ var PanSession = /** @class */ (function () {
|
|
|
9963
10223
|
var initialInfo = transformPoint(info, this.transformPagePoint);
|
|
9964
10224
|
var point = initialInfo.point;
|
|
9965
10225
|
var timestamp = getFrameData().timestamp;
|
|
9966
|
-
this.history = [__assign(__assign({}, point), { timestamp: timestamp })];
|
|
10226
|
+
this.history = [__assign$7(__assign$7({}, point), { timestamp: timestamp })];
|
|
9967
10227
|
var onSessionStart = handlers.onSessionStart;
|
|
9968
10228
|
onSessionStart &&
|
|
9969
10229
|
onSessionStart(event, getPanInfo(initialInfo, this.history));
|
|
@@ -10291,7 +10551,7 @@ var Gestures = {
|
|
|
10291
10551
|
return gestureProps.some(function (key) { return props.hasOwnProperty(key); });
|
|
10292
10552
|
},
|
|
10293
10553
|
Component: makeRenderlessComponent(function (_a) {
|
|
10294
|
-
var innerRef = _a.innerRef, props = __rest(_a, ["innerRef"]);
|
|
10554
|
+
var innerRef = _a.innerRef, props = __rest$5(_a, ["innerRef"]);
|
|
10295
10555
|
useGestures(props, innerRef);
|
|
10296
10556
|
}),
|
|
10297
10557
|
};
|
|
@@ -10531,8 +10791,8 @@ var ComponentDragControls = /** @class */ (function () {
|
|
|
10531
10791
|
};
|
|
10532
10792
|
ComponentDragControls.prototype.updateProps = function (_a) {
|
|
10533
10793
|
var _this = this;
|
|
10534
|
-
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"]);
|
|
10535
|
-
this.props = __assign({ drag: drag,
|
|
10794
|
+
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"]);
|
|
10795
|
+
this.props = __assign$7({ drag: drag,
|
|
10536
10796
|
dragDirectionLock: dragDirectionLock,
|
|
10537
10797
|
dragPropagation: dragPropagation,
|
|
10538
10798
|
dragConstraints: dragConstraints,
|
|
@@ -10588,7 +10848,7 @@ var ComponentDragControls = /** @class */ (function () {
|
|
|
10588
10848
|
var bounceStiffness = dragElastic ? 200 : 1000000;
|
|
10589
10849
|
var bounceDamping = dragElastic ? 40 : 10000000;
|
|
10590
10850
|
var animationControls = _dragTransitionControls || _this.controls;
|
|
10591
|
-
var inertia = __assign(__assign({ type: "inertia", velocity: dragMomentum ? velocity[axis] : 0, bounceStiffness: bounceStiffness,
|
|
10851
|
+
var inertia = __assign$7(__assign$7({ type: "inertia", velocity: dragMomentum ? velocity[axis] : 0, bounceStiffness: bounceStiffness,
|
|
10592
10852
|
bounceDamping: bounceDamping, timeConstant: 750, restDelta: 1 }, dragTransition), transition);
|
|
10593
10853
|
var externalAxisMotionValue = axis === "x" ? _dragValueX : _dragValueY;
|
|
10594
10854
|
// If we're not animating on an externally-provided `MotionValue` we can use the
|
|
@@ -10669,7 +10929,7 @@ function bothAxis(handler) {
|
|
|
10669
10929
|
return [handler("x"), handler("y")];
|
|
10670
10930
|
}
|
|
10671
10931
|
function convertPanToDrag(info, point) {
|
|
10672
|
-
return __assign(__assign({}, info), { point: {
|
|
10932
|
+
return __assign$7(__assign$7({}, info), { point: {
|
|
10673
10933
|
x: point.x ? point.x.get() : 0,
|
|
10674
10934
|
y: point.y ? point.y.get() : 0,
|
|
10675
10935
|
} });
|
|
@@ -10780,7 +11040,7 @@ function useDrag(props, ref, values, controls) {
|
|
|
10780
11040
|
var groupDragControls = props.dragControls;
|
|
10781
11041
|
var transformPagePoint = React.useContext(MotionPluginContext).transformPagePoint;
|
|
10782
11042
|
var dragControls = useConstant(function () { return new ComponentDragControls({ ref: ref, values: values, controls: controls }); });
|
|
10783
|
-
dragControls.updateProps(__assign(__assign({}, props), { transformPagePoint: transformPagePoint }));
|
|
11043
|
+
dragControls.updateProps(__assign$7(__assign$7({}, props), { transformPagePoint: transformPagePoint }));
|
|
10784
11044
|
React.useEffect(function () { return groupDragControls && groupDragControls.subscribe(dragControls); }, [dragControls]);
|
|
10785
11045
|
React.useEffect(function () { return dragControls.mount(ref.current); }, []);
|
|
10786
11046
|
}
|
|
@@ -10789,7 +11049,7 @@ var Drag = {
|
|
|
10789
11049
|
key: "drag",
|
|
10790
11050
|
shouldRender: function (props) { return !!props.drag; },
|
|
10791
11051
|
Component: makeRenderlessComponent(function (_a) {
|
|
10792
|
-
var innerRef = _a.innerRef, values = _a.values, controls = _a.controls, props = __rest(_a, ["innerRef", "values", "controls"]);
|
|
11052
|
+
var innerRef = _a.innerRef, values = _a.values, controls = _a.controls, props = __rest$5(_a, ["innerRef", "values", "controls"]);
|
|
10793
11053
|
return useDrag(props, innerRef, values, controls);
|
|
10794
11054
|
}),
|
|
10795
11055
|
};
|
|
@@ -10841,14 +11101,14 @@ function getVariableValue(current, element, depth) {
|
|
|
10841
11101
|
* @internal
|
|
10842
11102
|
*/
|
|
10843
11103
|
function resolveCSSVariables(values, ref, _a, transitionEnd) {
|
|
10844
|
-
var target = __rest(_a, []);
|
|
11104
|
+
var target = __rest$5(_a, []);
|
|
10845
11105
|
var element = ref.current;
|
|
10846
11106
|
if (!(element instanceof HTMLElement))
|
|
10847
11107
|
return { target: target, transitionEnd: transitionEnd };
|
|
10848
11108
|
// If `transitionEnd` isn't `undefined`, clone it. We could clone `target` and `transitionEnd`
|
|
10849
11109
|
// only if they change but I think this reads clearer and this isn't a performance-critical path.
|
|
10850
11110
|
if (transitionEnd) {
|
|
10851
|
-
transitionEnd = __assign({}, transitionEnd);
|
|
11111
|
+
transitionEnd = __assign$7({}, transitionEnd);
|
|
10852
11112
|
}
|
|
10853
11113
|
// Go through existing `MotionValue`s and ensure any existing CSS variables are resolved
|
|
10854
11114
|
values.forEach(function (value) {
|
|
@@ -11005,8 +11265,8 @@ var convertChangedValueTypes = function (target, values, element, elementStyler,
|
|
|
11005
11265
|
};
|
|
11006
11266
|
var checkAndConvertChangedValueTypes = function (values, ref, target, transitionEnd) {
|
|
11007
11267
|
if (transitionEnd === void 0) { transitionEnd = {}; }
|
|
11008
|
-
target = __assign({}, target);
|
|
11009
|
-
transitionEnd = __assign({}, transitionEnd);
|
|
11268
|
+
target = __assign$7({}, target);
|
|
11269
|
+
transitionEnd = __assign$7({}, transitionEnd);
|
|
11010
11270
|
var element = ref.current;
|
|
11011
11271
|
var elementStyler = index(element);
|
|
11012
11272
|
var targetPositionalKeys = Object.keys(target).filter(isPositionalKey$1);
|
|
@@ -11234,7 +11494,7 @@ function calcAxisDelta(prev, next, names) {
|
|
|
11234
11494
|
return delta;
|
|
11235
11495
|
}
|
|
11236
11496
|
function calcDelta(prev, next) {
|
|
11237
|
-
var delta = __assign(__assign({}, calcAxisDelta(prev, next, axisLabels.x)), calcAxisDelta(prev, next, axisLabels.y));
|
|
11497
|
+
var delta = __assign$7(__assign$7({}, calcAxisDelta(prev, next, axisLabels.x)), calcAxisDelta(prev, next, axisLabels.y));
|
|
11238
11498
|
return delta;
|
|
11239
11499
|
}
|
|
11240
11500
|
var offset = {
|
|
@@ -11278,7 +11538,7 @@ function getTransition(_a) {
|
|
|
11278
11538
|
return layoutTransition || positionTransition;
|
|
11279
11539
|
}
|
|
11280
11540
|
var LayoutAnimation = /** @class */ (function (_super) {
|
|
11281
|
-
__extends(LayoutAnimation, _super);
|
|
11541
|
+
__extends$2(LayoutAnimation, _super);
|
|
11282
11542
|
function LayoutAnimation() {
|
|
11283
11543
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
11284
11544
|
}
|
|
@@ -11345,11 +11605,11 @@ var LayoutAnimation = /** @class */ (function (_super) {
|
|
|
11345
11605
|
if (!delta[deltaKey])
|
|
11346
11606
|
return;
|
|
11347
11607
|
var baseTransition = typeof transitionDefinition === "boolean"
|
|
11348
|
-
? __assign({}, getDefaultLayoutTransition(isPositionOnly)) : transitionDefinition;
|
|
11608
|
+
? __assign$7({}, getDefaultLayoutTransition(isPositionOnly)) : transitionDefinition;
|
|
11349
11609
|
var value = values.get(transformKey, targetValue);
|
|
11350
11610
|
var velocity = value.getVelocity();
|
|
11351
11611
|
transition[transformKey] = baseTransition[transformKey]
|
|
11352
|
-
? __assign({}, baseTransition[transformKey]) : __assign({}, baseTransition);
|
|
11612
|
+
? __assign$7({}, baseTransition[transformKey]) : __assign$7({}, baseTransition);
|
|
11353
11613
|
if (transition[transformKey].velocity === undefined) {
|
|
11354
11614
|
transition[transformKey].velocity = velocity || 0;
|
|
11355
11615
|
}
|
|
@@ -11490,9 +11750,9 @@ var hasUpdated = function (prev, next) {
|
|
|
11490
11750
|
};
|
|
11491
11751
|
function targetWithoutTransition(_a, mergeTransitionEnd) {
|
|
11492
11752
|
if (mergeTransitionEnd === void 0) { mergeTransitionEnd = false; }
|
|
11493
|
-
var transition = _a.transition, transitionEnd = _a.transitionEnd, target = __rest(_a, ["transition", "transitionEnd"]);
|
|
11753
|
+
var transition = _a.transition, transitionEnd = _a.transitionEnd, target = __rest$5(_a, ["transition", "transitionEnd"]);
|
|
11494
11754
|
return mergeTransitionEnd
|
|
11495
|
-
? __assign(__assign({}, target), transitionEnd)
|
|
11755
|
+
? __assign$7(__assign$7({}, target), transitionEnd)
|
|
11496
11756
|
: target;
|
|
11497
11757
|
}
|
|
11498
11758
|
/**
|
|
@@ -11544,9 +11804,9 @@ function useAnimateProp(targetAndTransition, controls, values, defaultTransition
|
|
|
11544
11804
|
}
|
|
11545
11805
|
}
|
|
11546
11806
|
isInitialRender.current = false;
|
|
11547
|
-
prevValues.current = __assign(__assign({}, prevValues.current), finalTarget);
|
|
11807
|
+
prevValues.current = __assign$7(__assign$7({}, prevValues.current), finalTarget);
|
|
11548
11808
|
if (Object.keys(targetToAnimate).length) {
|
|
11549
|
-
controls.start(__assign(__assign({}, targetToAnimate), { transition: targetAndTransition.transition || defaultTransition, transitionEnd: targetAndTransition.transitionEnd }));
|
|
11809
|
+
controls.start(__assign$7(__assign$7({}, targetToAnimate), { transition: targetAndTransition.transition || defaultTransition, transitionEnd: targetAndTransition.transitionEnd }));
|
|
11550
11810
|
}
|
|
11551
11811
|
}, [targetAndTransition]);
|
|
11552
11812
|
}
|
|
@@ -11720,7 +11980,7 @@ var Exit = {
|
|
|
11720
11980
|
React.useEffect(function () {
|
|
11721
11981
|
if (!isPresent) {
|
|
11722
11982
|
if (!isPlayingExitAnimation.current && exit) {
|
|
11723
|
-
controls.setProps(__assign(__assign({}, props), { custom: custom }));
|
|
11983
|
+
controls.setProps(__assign$7(__assign$7({}, props), { custom: custom }));
|
|
11724
11984
|
controls.start(exit).then(onExitComplete);
|
|
11725
11985
|
}
|
|
11726
11986
|
isPlayingExitAnimation.current = true;
|
|
@@ -11791,7 +12051,7 @@ var buildHTMLProps = function (values, style, isStatic, isDrag) {
|
|
|
11791
12051
|
var buildSVGProps = function (values, style) {
|
|
11792
12052
|
var motionValueStyles = resolveCurrent(values);
|
|
11793
12053
|
var props = buildSVGAttrs(motionValueStyles, undefined, undefined, undefined, undefined, false);
|
|
11794
|
-
props.style = __assign(__assign({}, style), props.style);
|
|
12054
|
+
props.style = __assign$7(__assign$7({}, style), props.style);
|
|
11795
12055
|
return props;
|
|
11796
12056
|
};
|
|
11797
12057
|
var functionalityComponents = [Layout, Drag, Gestures, Exit];
|
|
@@ -11810,7 +12070,7 @@ function createDomMotionConfig(Component) {
|
|
|
11810
12070
|
var staticVisualStyles = isSVG
|
|
11811
12071
|
? buildSVGProps(values, style)
|
|
11812
12072
|
: buildHTMLProps(values, style, isStatic, !!props.drag);
|
|
11813
|
-
return React.createElement(Component, __assign(__assign(__assign({}, forwardedProps), { ref: ref }), staticVisualStyles));
|
|
12073
|
+
return React.createElement(Component, __assign$7(__assign$7(__assign$7({}, forwardedProps), { ref: ref }), staticVisualStyles));
|
|
11814
12074
|
},
|
|
11815
12075
|
/**
|
|
11816
12076
|
* loadFunctionalityComponents gets used by the `motion` component
|
|
@@ -11841,7 +12101,7 @@ function createDomMotionConfig(Component) {
|
|
|
11841
12101
|
for (var i = 0; i < numFunctionalityComponents; i++) {
|
|
11842
12102
|
var _a = functionalityComponents[i], shouldRender = _a.shouldRender, key = _a.key, Component_1 = _a.Component;
|
|
11843
12103
|
if (shouldRender(props, context)) {
|
|
11844
|
-
activeComponents.push(React.createElement(Component_1, __assign({ key: key }, props, { parentContext: context, values: values, controls: controls, innerRef: ref })));
|
|
12104
|
+
activeComponents.push(React.createElement(Component_1, __assign$7({ key: key }, props, { parentContext: context, values: values, controls: controls, innerRef: ref })));
|
|
11845
12105
|
}
|
|
11846
12106
|
}
|
|
11847
12107
|
return activeComponents;
|
|
@@ -11893,7 +12153,7 @@ var svgMotionComponents = svgElements.reduce(function (acc, Component) {
|
|
|
11893
12153
|
*
|
|
11894
12154
|
* @public
|
|
11895
12155
|
*/
|
|
11896
|
-
var motion = __assign(__assign({
|
|
12156
|
+
var motion = __assign$7(__assign$7({
|
|
11897
12157
|
/**
|
|
11898
12158
|
* Convert a custom React component into a `motion` component.
|
|
11899
12159
|
*
|
|
@@ -11945,7 +12205,7 @@ var PresenceChild = function (_a) {
|
|
|
11945
12205
|
return function () { return numPresenceChildren.current--; };
|
|
11946
12206
|
};
|
|
11947
12207
|
}, [isPresent]);
|
|
11948
|
-
return (React.createElement(PresenceContext.Provider, { value: __assign(__assign({}, context), { register: register }) }, children));
|
|
12208
|
+
return (React.createElement(PresenceContext.Provider, { value: __assign$7(__assign$7({}, context), { register: register }) }, children));
|
|
11949
12209
|
};
|
|
11950
12210
|
|
|
11951
12211
|
function getChildKey(child) {
|
|
@@ -12061,7 +12321,7 @@ var AnimatePresence = function (_a) {
|
|
|
12061
12321
|
return (React.createElement(React.Fragment, null, filteredChildren.map(function (child) { return (React.createElement(PresenceChild, { key: getChildKey(child), isPresent: true, initial: initial ? undefined : false }, child)); })));
|
|
12062
12322
|
}
|
|
12063
12323
|
// If this is a subsequent render, deal with entering and exiting children
|
|
12064
|
-
var childrenToRender = __spreadArrays(filteredChildren);
|
|
12324
|
+
var childrenToRender = __spreadArrays$2(filteredChildren);
|
|
12065
12325
|
// Diff the keys of the currently-present and target children to update our
|
|
12066
12326
|
// exiting list.
|
|
12067
12327
|
var presentKeys = presentChildren.current.map(getChildKey);
|
|
@@ -46114,13 +46374,15 @@ var NavMenuMobile = function NavMenuMobile(_ref2) {
|
|
|
46114
46374
|
};
|
|
46115
46375
|
var NavMenuMobile$1 = themeComponent(NavMenuMobile, "NavMenu", fallbackValues$K, "profile");
|
|
46116
46376
|
|
|
46377
|
+
// Uses the theme values (singleIconColor) for the other icons, located in /atoms/icons
|
|
46378
|
+
|
|
46117
46379
|
var IconsModule = function IconsModule(_ref) {
|
|
46118
46380
|
var icon = _ref.icon,
|
|
46119
46381
|
iconDefault = _ref.iconDefault,
|
|
46120
46382
|
configIconMap = _ref.configIconMap,
|
|
46121
46383
|
iconValue = _ref.iconValue,
|
|
46122
46384
|
customAttributes = _ref.customAttributes,
|
|
46123
|
-
|
|
46385
|
+
themeValues = _ref.themeValues;
|
|
46124
46386
|
var Icon;
|
|
46125
46387
|
if (_typeof(icon) === "object") {
|
|
46126
46388
|
var _configIconMap$iconID;
|
|
@@ -46136,9 +46398,10 @@ var IconsModule = function IconsModule(_ref) {
|
|
|
46136
46398
|
justify: "center",
|
|
46137
46399
|
align: "center"
|
|
46138
46400
|
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
46139
|
-
color:
|
|
46401
|
+
color: themeValues.singleIconColor
|
|
46140
46402
|
})));
|
|
46141
46403
|
};
|
|
46404
|
+
var IconModule = themeComponent(IconsModule, "Icon", fallbackValues$2, "primary");
|
|
46142
46405
|
|
|
46143
46406
|
var TitleModule = function TitleModule(_ref) {
|
|
46144
46407
|
var title = _ref.title,
|
|
@@ -46163,7 +46426,22 @@ var TitleModule = function TitleModule(_ref) {
|
|
|
46163
46426
|
}, subtitle)));
|
|
46164
46427
|
};
|
|
46165
46428
|
|
|
46166
|
-
var
|
|
46429
|
+
var color$c = "#15749D";
|
|
46430
|
+
var hoverColor$5 = "#116285";
|
|
46431
|
+
var activeColor$8 = "#0E506D";
|
|
46432
|
+
var linkColor$4 = "#3176AA";
|
|
46433
|
+
var fontWeight$6 = FONT_WEIGHT_REGULAR;
|
|
46434
|
+
var modalLinkHoverFocus = "outline: none;\n cursor: pointer;\n text-decoration: underline;\n text-decoration-color: #317D4F;";
|
|
46435
|
+
var fallbackValues$L = {
|
|
46436
|
+
color: color$c,
|
|
46437
|
+
hoverColor: hoverColor$5,
|
|
46438
|
+
activeColor: activeColor$8,
|
|
46439
|
+
linkColor: linkColor$4,
|
|
46440
|
+
fontWeight: fontWeight$6,
|
|
46441
|
+
modalLinkHoverFocus: modalLinkHoverFocus
|
|
46442
|
+
};
|
|
46443
|
+
|
|
46444
|
+
var AutopayModal = function AutopayModal(_ref) {
|
|
46167
46445
|
var autoPayActive = _ref.autoPayActive,
|
|
46168
46446
|
autoPaySchedule = _ref.autoPaySchedule,
|
|
46169
46447
|
paymentPlanSchedule = _ref.paymentPlanSchedule,
|
|
@@ -46174,6 +46452,7 @@ var AutopayModalModule = function AutopayModalModule(_ref) {
|
|
|
46174
46452
|
_ref$controlType = _ref.controlType,
|
|
46175
46453
|
controlType = _ref$controlType === void 0 ? "tertiary" : _ref$controlType,
|
|
46176
46454
|
isMobile = _ref.isMobile,
|
|
46455
|
+
themeValues = _ref.themeValues,
|
|
46177
46456
|
isPaymentPlan = _ref.isPaymentPlan,
|
|
46178
46457
|
nextAutopayDate = _ref.nextAutopayDate,
|
|
46179
46458
|
dueDate = _ref.dueDate,
|
|
@@ -46207,7 +46486,6 @@ var AutopayModalModule = function AutopayModalModule(_ref) {
|
|
|
46207
46486
|
toggleModal(false);
|
|
46208
46487
|
} : navigateToSettings
|
|
46209
46488
|
};
|
|
46210
|
-
var modalLinkHoverFocus = "\n outline: none;\n cursor: pointer;\n text-decoration: underline;\n text-decoration-color: #317D4F;\n ";
|
|
46211
46489
|
var hoverStyles = "text-decoration: underline;";
|
|
46212
46490
|
var activeStyles = "text-decoration: underline;";
|
|
46213
46491
|
var renderAutoPayControl = function renderAutoPayControl() {
|
|
@@ -46262,8 +46540,8 @@ var AutopayModalModule = function AutopayModalModule(_ref) {
|
|
|
46262
46540
|
tabIndex: "0",
|
|
46263
46541
|
dataQa: "".concat(shortPlan, " On"),
|
|
46264
46542
|
color: SEA_GREEN,
|
|
46265
|
-
weight:
|
|
46266
|
-
hoverStyles: modalLinkHoverFocus,
|
|
46543
|
+
weight: themeValues.fontWeight,
|
|
46544
|
+
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
46267
46545
|
extraStyles: "padding-left: 0.25rem;",
|
|
46268
46546
|
disabled: disableActions
|
|
46269
46547
|
}, "".concat(shortPlan, " ").concat(nextAutopayDate))));
|
|
@@ -46280,6 +46558,7 @@ var AutopayModalModule = function AutopayModalModule(_ref) {
|
|
|
46280
46558
|
modalOpen: modalOpen
|
|
46281
46559
|
}, modalExtraProps), renderAutoPayControl());
|
|
46282
46560
|
};
|
|
46561
|
+
var AutopayModalModule = themeComponent(AutopayModal, "AutopayModal", fallbackValues$L);
|
|
46283
46562
|
|
|
46284
46563
|
var AmountModule = function AmountModule(_ref) {
|
|
46285
46564
|
var totalAmountDue = _ref.totalAmountDue,
|
|
@@ -46382,6 +46661,9 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
|
|
|
46382
46661
|
setDetailedObligation(obligations, config, obligationAssocID);
|
|
46383
46662
|
navigateToDetailedObligation(detailsSlug);
|
|
46384
46663
|
};
|
|
46664
|
+
var handlePayNowClick = disableActions ? noop : function () {
|
|
46665
|
+
return handleClick(obligations);
|
|
46666
|
+
};
|
|
46385
46667
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
46386
46668
|
padding: isMobile ? "0" : "16px 0 0",
|
|
46387
46669
|
minWidth: "100%",
|
|
@@ -46463,9 +46745,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
|
|
|
46463
46745
|
padding: "0"
|
|
46464
46746
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
46465
46747
|
isLoading: isLoading,
|
|
46466
|
-
action:
|
|
46467
|
-
return handleClick(obligations);
|
|
46468
|
-
},
|
|
46748
|
+
action: handlePayNowClick,
|
|
46469
46749
|
text: "Pay Now",
|
|
46470
46750
|
variant: isMobile ? "smallSecondary" : "secondary",
|
|
46471
46751
|
dataQa: "Pay Now",
|
|
@@ -46475,9 +46755,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
|
|
|
46475
46755
|
width: "100%"
|
|
46476
46756
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
46477
46757
|
isLoading: isLoading,
|
|
46478
|
-
action:
|
|
46479
|
-
return handleClick(obligations);
|
|
46480
|
-
},
|
|
46758
|
+
action: handlePayNowClick,
|
|
46481
46759
|
text: "Pay Now",
|
|
46482
46760
|
variant: isMobile ? "smallSecondary" : "secondary",
|
|
46483
46761
|
dataQa: "Pay Now",
|
|
@@ -46638,11 +46916,6 @@ var InactiveTitleModule = function InactiveTitleModule(_ref) {
|
|
|
46638
46916
|
}, "This may mean that the balance has been paid, or there was an error loading it.".concat(autoPayEnabled ? " You may disable autopay for this account by pressing the 'Turn off Autopay' button." : ""))));
|
|
46639
46917
|
};
|
|
46640
46918
|
|
|
46641
|
-
var iconColor = ROYAL_BLUE_VIVID;
|
|
46642
|
-
var fallbackValues$L = {
|
|
46643
|
-
iconColor: iconColor
|
|
46644
|
-
};
|
|
46645
|
-
|
|
46646
46919
|
var Obligation = function Obligation(_ref) {
|
|
46647
46920
|
var _obligations$, _firstObligation$cust;
|
|
46648
46921
|
var config = _ref.config,
|
|
@@ -46670,8 +46943,7 @@ var Obligation = function Obligation(_ref) {
|
|
|
46670
46943
|
_ref$inactiveLookupVa = _ref.inactiveLookupValue,
|
|
46671
46944
|
inactiveLookupValue = _ref$inactiveLookupVa === void 0 ? "" : _ref$inactiveLookupVa,
|
|
46672
46945
|
_ref$isInCustomerMana = _ref.isInCustomerManagement,
|
|
46673
|
-
isInCustomerManagement = _ref$isInCustomerMana === void 0 ? false : _ref$isInCustomerMana
|
|
46674
|
-
themeValues = _ref.themeValues;
|
|
46946
|
+
isInCustomerManagement = _ref$isInCustomerMana === void 0 ? false : _ref$isInCustomerMana;
|
|
46675
46947
|
/*
|
|
46676
46948
|
The value of obligations is always an array. It can contain:
|
|
46677
46949
|
- A single obligation
|
|
@@ -46716,7 +46988,7 @@ var Obligation = function Obligation(_ref) {
|
|
|
46716
46988
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
46717
46989
|
justify: "flex-start",
|
|
46718
46990
|
align: "center"
|
|
46719
|
-
}, !isMobile && /*#__PURE__*/React__default.createElement(
|
|
46991
|
+
}, !isMobile && /*#__PURE__*/React__default.createElement(IconModule, {
|
|
46720
46992
|
icon: config.icon,
|
|
46721
46993
|
iconDefault: config.iconDefault,
|
|
46722
46994
|
configIconMap: config.iconMap,
|
|
@@ -46808,13 +47080,12 @@ var Obligation = function Obligation(_ref) {
|
|
|
46808
47080
|
justify: "flex-start",
|
|
46809
47081
|
align: "center",
|
|
46810
47082
|
nowrap: true
|
|
46811
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
47083
|
+
}, /*#__PURE__*/React__default.createElement(IconModule, {
|
|
46812
47084
|
icon: config.icon,
|
|
46813
47085
|
iconDefault: config.iconDefault,
|
|
46814
47086
|
configIconMap: config.iconMap,
|
|
46815
47087
|
iconValue: config.iconValue,
|
|
46816
|
-
customAttributes: customAttributes
|
|
46817
|
-
iconColor: themeValues.iconColor
|
|
47088
|
+
customAttributes: customAttributes
|
|
46818
47089
|
}), /*#__PURE__*/React__default.createElement(InactiveTitleModule, {
|
|
46819
47090
|
title: inactiveLookupTitle,
|
|
46820
47091
|
subtitle: "".concat(inactiveLookupInput, ": ").concat(inactiveLookupValue),
|
|
@@ -46860,7 +47131,6 @@ var Obligation = function Obligation(_ref) {
|
|
|
46860
47131
|
}))));
|
|
46861
47132
|
return inactive ? inactiveObligation : activeObligation;
|
|
46862
47133
|
};
|
|
46863
|
-
var Obligation$1 = themeComponent(Obligation, "Obligation", fallbackValues$L);
|
|
46864
47134
|
|
|
46865
47135
|
var PartialAmountField = function PartialAmountField(_ref) {
|
|
46866
47136
|
var lineItem = _ref.lineItem,
|
|
@@ -46997,9 +47267,9 @@ var arrowColor = WHITE;
|
|
|
46997
47267
|
var numberColor = MATISSE_BLUE;
|
|
46998
47268
|
var hoverBackgroundColor$2 = ALABASTER_WHITE;
|
|
46999
47269
|
var activeBackgroundColor$2 = WHITE;
|
|
47000
|
-
var activeColor$
|
|
47270
|
+
var activeColor$9 = MATISSE_BLUE;
|
|
47001
47271
|
var fallbackValues$M = {
|
|
47002
|
-
activeColor: activeColor$
|
|
47272
|
+
activeColor: activeColor$9,
|
|
47003
47273
|
activeBackgroundColor: activeBackgroundColor$2,
|
|
47004
47274
|
arrowColor: arrowColor,
|
|
47005
47275
|
hoverBackgroundColor: hoverBackgroundColor$2,
|
|
@@ -47662,7 +47932,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
47662
47932
|
};
|
|
47663
47933
|
var PaymentDetails$1 = themeComponent(PaymentDetails, "PaymentDetails", fallbackValues$N, "default");
|
|
47664
47934
|
|
|
47665
|
-
var linkColor$
|
|
47935
|
+
var linkColor$5 = {
|
|
47666
47936
|
"default": "#3176AA"
|
|
47667
47937
|
};
|
|
47668
47938
|
var fontSize$a = {
|
|
@@ -47671,21 +47941,21 @@ var fontSize$a = {
|
|
|
47671
47941
|
var lineHeight$4 = {
|
|
47672
47942
|
"default": "1.5rem"
|
|
47673
47943
|
};
|
|
47674
|
-
var fontWeight$
|
|
47944
|
+
var fontWeight$7 = {
|
|
47675
47945
|
"default": FONT_WEIGHT_REGULAR
|
|
47676
47946
|
};
|
|
47677
|
-
var modalLinkHoverFocus = {
|
|
47947
|
+
var modalLinkHoverFocus$1 = {
|
|
47678
47948
|
"default": "outline: none; text-decoration: underline;"
|
|
47679
47949
|
};
|
|
47680
47950
|
var linkTextDecoration = {
|
|
47681
47951
|
"default": LINK_TEXT_DECORATION
|
|
47682
47952
|
};
|
|
47683
47953
|
var fallbackValues$O = {
|
|
47684
|
-
linkColor: linkColor$
|
|
47954
|
+
linkColor: linkColor$5,
|
|
47685
47955
|
fontSize: fontSize$a,
|
|
47686
47956
|
lineHeight: lineHeight$4,
|
|
47687
|
-
fontWeight: fontWeight$
|
|
47688
|
-
modalLinkHoverFocus: modalLinkHoverFocus,
|
|
47957
|
+
fontWeight: fontWeight$7,
|
|
47958
|
+
modalLinkHoverFocus: modalLinkHoverFocus$1,
|
|
47689
47959
|
linkTextDecoration: linkTextDecoration
|
|
47690
47960
|
};
|
|
47691
47961
|
|
|
@@ -47750,7 +48020,7 @@ var backgroundColor$d = {
|
|
|
47750
48020
|
"default": "#ffffff",
|
|
47751
48021
|
footer: "#ffffff"
|
|
47752
48022
|
};
|
|
47753
|
-
var linkColor$
|
|
48023
|
+
var linkColor$6 = {
|
|
47754
48024
|
"default": "#3176AA",
|
|
47755
48025
|
footer: "#ffffff"
|
|
47756
48026
|
};
|
|
@@ -47766,12 +48036,12 @@ var lineHeight$5 = {
|
|
|
47766
48036
|
"default": "1.5rem",
|
|
47767
48037
|
footer: "1.25rem"
|
|
47768
48038
|
};
|
|
47769
|
-
var fontWeight$
|
|
48039
|
+
var fontWeight$8 = {
|
|
47770
48040
|
"default": FONT_WEIGHT_REGULAR,
|
|
47771
48041
|
footer: FONT_WEIGHT_SEMIBOLD
|
|
47772
48042
|
};
|
|
47773
48043
|
var standardInteractionStyles = "\n &:hover {\n outline: none; \n text-decoration: underline;\n }\n &:focus {\n outline: 3px solid #3181E3;\n outline-offset: 2px;\n }\n";
|
|
47774
|
-
var modalLinkHoverFocus$
|
|
48044
|
+
var modalLinkHoverFocus$2 = {
|
|
47775
48045
|
"default": standardInteractionStyles,
|
|
47776
48046
|
footer: standardInteractionStyles
|
|
47777
48047
|
};
|
|
@@ -47781,12 +48051,12 @@ var modalLinkTextDecoration = {
|
|
|
47781
48051
|
};
|
|
47782
48052
|
var fallbackValues$P = {
|
|
47783
48053
|
backgroundColor: backgroundColor$d,
|
|
47784
|
-
linkColor: linkColor$
|
|
48054
|
+
linkColor: linkColor$6,
|
|
47785
48055
|
border: border$3,
|
|
47786
48056
|
fontSize: fontSize$b,
|
|
47787
48057
|
lineHeight: lineHeight$5,
|
|
47788
|
-
fontWeight: fontWeight$
|
|
47789
|
-
modalLinkHoverFocus: modalLinkHoverFocus$
|
|
48058
|
+
fontWeight: fontWeight$8,
|
|
48059
|
+
modalLinkHoverFocus: modalLinkHoverFocus$2,
|
|
47790
48060
|
modalLinkTextDecoration: modalLinkTextDecoration
|
|
47791
48061
|
};
|
|
47792
48062
|
|
|
@@ -49421,13 +49691,13 @@ var ToastNotification = function ToastNotification(_ref) {
|
|
|
49421
49691
|
}, message))), /*#__PURE__*/React__default.createElement(IconQuitLarge, null)));
|
|
49422
49692
|
};
|
|
49423
49693
|
|
|
49424
|
-
var fontWeight$
|
|
49694
|
+
var fontWeight$9 = "600";
|
|
49425
49695
|
var fontColor$1 = WHITE;
|
|
49426
49696
|
var textAlign$1 = "left";
|
|
49427
49697
|
var headerBackgroundColor$1 = BRIGHT_GREY;
|
|
49428
49698
|
var imageBackgroundColor$1 = MATISSE_BLUE;
|
|
49429
49699
|
var fallbackValues$T = {
|
|
49430
|
-
fontWeight: fontWeight$
|
|
49700
|
+
fontWeight: fontWeight$9,
|
|
49431
49701
|
fontColor: fontColor$1,
|
|
49432
49702
|
textAlign: textAlign$1,
|
|
49433
49703
|
headerBackgroundColor: headerBackgroundColor$1,
|
|
@@ -49600,13 +49870,13 @@ var PopupMenuItem = function PopupMenuItem(_ref) {
|
|
|
49600
49870
|
};
|
|
49601
49871
|
var PopupMenuItem$1 = themeComponent(PopupMenuItem, "PopupMenuItem", fallbackValues$U);
|
|
49602
49872
|
|
|
49603
|
-
var hoverColor$
|
|
49604
|
-
var activeColor$
|
|
49873
|
+
var hoverColor$6 = "#116285";
|
|
49874
|
+
var activeColor$a = "#0E506D";
|
|
49605
49875
|
var menuTriggerColor = "#15749D";
|
|
49606
49876
|
var backgroundColor$e = "white";
|
|
49607
49877
|
var fallbackValues$V = {
|
|
49608
|
-
hoverColor: hoverColor$
|
|
49609
|
-
activeColor: activeColor$
|
|
49878
|
+
hoverColor: hoverColor$6,
|
|
49879
|
+
activeColor: activeColor$a,
|
|
49610
49880
|
menuTriggerColor: menuTriggerColor,
|
|
49611
49881
|
backgroundColor: backgroundColor$e
|
|
49612
49882
|
};
|
|
@@ -50157,7 +50427,7 @@ exports.NavTabs = NavTabs;
|
|
|
50157
50427
|
exports.NoCustomerResultsIcon = NoCustomerResultsIcon;
|
|
50158
50428
|
exports.NoPaymentResultsIcon = NoPaymentResultsIcon;
|
|
50159
50429
|
exports.NotFoundIcon = NotFoundIcon;
|
|
50160
|
-
exports.Obligation = Obligation
|
|
50430
|
+
exports.Obligation = Obligation;
|
|
50161
50431
|
exports.ObligationIcons = iconsMap;
|
|
50162
50432
|
exports.Pagination = Pagination$1;
|
|
50163
50433
|
exports.Paragraph = Paragraph$1;
|