@thecb/components 10.7.0-beta.2 → 10.7.1-beta.1
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 +485 -193
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +484 -192
- 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/button-with-action/ButtonWithAction.js +0 -2
- package/src/components/atoms/icons/.DS_Store +0 -0
- package/src/components/atoms/wallet-name/WalletName.js +6 -4
- package/src/components/atoms/wallet-name/WalletName.stories.js +26 -1
- package/src/components/atoms/wallet-name/index.d.ts +2 -0
- package/src/components/molecules/obligation/Obligation.js +2 -7
- 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 +1 -1
- package/src/components/molecules/payment-button-bar/PaymentButtonBar.js +6 -4
- package/src/components/molecules/radio-section/RadioSection.js +2 -1
- package/src/components/molecules/reset-confirmation-form/ResetConfirmationForm.js +15 -3
- package/src/components/molecules/reset-confirmation-form/ResetConfirmationForm.theme.js +9 -0
- package/src/components/molecules/reset-password-success/ResetPasswordSuccess.js +17 -5
- package/src/components/molecules/reset-password-success/ResetPasswordSuccess.theme.js +9 -0
- 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);
|
|
@@ -12784,8 +13044,6 @@ var ButtonWithAction = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
12784
13044
|
var themeContext = React.useContext(styled.ThemeContext);
|
|
12785
13045
|
var themeValues = createThemeValues(themeContext, fallbackValues$1, "Button", variant);
|
|
12786
13046
|
var isMobile = themeContext.isMobile;
|
|
12787
|
-
console.log("button text / theme context is", text, themeContext);
|
|
12788
|
-
console.log("button text / theme values are", text, themeValues);
|
|
12789
13047
|
var hoverStyles = "\n outline: none;\n background-color: ".concat(themeValues.hoverBackgroundColor, ";\n border-color: ").concat(themeValues.hoverBorderColor, ";\n color: ").concat(themeValues.hoverColor, ";\n text-decoration: ").concat(variant === "ghost" || variant === "smallGhost" ? "underline" : "none", ";\n cursor: pointer;\n ");
|
|
12790
13048
|
var activeStyles = "\n outline: none;\n background-color: ".concat(themeValues.activeBackgroundColor, ";\n border-color: ").concat(themeValues.activeBorderColor, ";\n color: ").concat(themeValues.activeColor, ";\n text-decoration: ").concat(variant === "ghost" || variant === "smallGhost" ? "underline" : "none", ";\n ");
|
|
12791
13049
|
var disabledStyles = "\n background-color: ".concat(themeValues.disabledBackgroundColor, ";\n border-color: ").concat(themeValues.disabledBorderColor, ";\n color: ").concat(themeValues.disabledColor, ";\n cursor: default;\n &:focus {\n outline: 3px solid ").concat(themeValues.disabledBorderColor, ";\n outline-offset: 2px;\n }\n ").concat(extraDisabledStyles, "\n ");
|
|
@@ -39456,7 +39714,11 @@ var WalletName = function WalletName(_ref) {
|
|
|
39456
39714
|
_ref$linkButtonExtraS = _ref.linkButtonExtraStyles,
|
|
39457
39715
|
linkButtonExtraStyles = _ref$linkButtonExtraS === void 0 ? "" : _ref$linkButtonExtraS,
|
|
39458
39716
|
_ref$isLoading = _ref.isLoading,
|
|
39459
|
-
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading
|
|
39717
|
+
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
|
|
39718
|
+
_ref$dataQa = _ref.dataQa,
|
|
39719
|
+
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
|
|
39720
|
+
_ref$actionTextPositi = _ref.actionTextPositionMobile,
|
|
39721
|
+
actionTextPositionMobile = _ref$actionTextPositi === void 0 ? "outside" : _ref$actionTextPositi;
|
|
39460
39722
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
39461
39723
|
isMobile = _useContext.isMobile;
|
|
39462
39724
|
return /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(Module$1, {
|
|
@@ -39479,17 +39741,18 @@ var WalletName = function WalletName(_ref) {
|
|
|
39479
39741
|
radius: "10",
|
|
39480
39742
|
cx: "12",
|
|
39481
39743
|
cy: "12"
|
|
39482
|
-
})) : mainText && /*#__PURE__*/React__default.createElement(Text$1, null, mainText)), !isMobile && /*#__PURE__*/React__default.createElement(Box, {
|
|
39744
|
+
})) : mainText && /*#__PURE__*/React__default.createElement(Text$1, null, mainText)), (actionTextPositionMobile === "inside" || !isMobile) && /*#__PURE__*/React__default.createElement(Box, {
|
|
39483
39745
|
padding: "0"
|
|
39484
39746
|
}, text && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
39485
39747
|
variant: "pXS"
|
|
39486
39748
|
}, text), (text || actionText) && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, "\xA0"), action && actionText && /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
39487
39749
|
disabled: disableAction,
|
|
39488
39750
|
text: actionText,
|
|
39751
|
+
dataQa: dataQa,
|
|
39489
39752
|
action: action,
|
|
39490
39753
|
variant: "smallGhost",
|
|
39491
39754
|
extraStyles: "\n margin: 0;\n min-width: 0;\n span {font-size: 0.75rem;}\n ".concat(linkButtonExtraStyles, "\n ")
|
|
39492
|
-
})))), isMobile && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
39755
|
+
})))), !!isMobile && actionTextPositionMobile === "outside" && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
39493
39756
|
align: "center",
|
|
39494
39757
|
justify: text || actionText ? "flex-end" : "flex-start",
|
|
39495
39758
|
extraStyles: "margin-top: 0.5rem;"
|
|
@@ -46116,13 +46379,15 @@ var NavMenuMobile = function NavMenuMobile(_ref2) {
|
|
|
46116
46379
|
};
|
|
46117
46380
|
var NavMenuMobile$1 = themeComponent(NavMenuMobile, "NavMenu", fallbackValues$K, "profile");
|
|
46118
46381
|
|
|
46382
|
+
// Uses the theme values (singleIconColor) for the other icons, located in /atoms/icons
|
|
46383
|
+
|
|
46119
46384
|
var IconsModule = function IconsModule(_ref) {
|
|
46120
46385
|
var icon = _ref.icon,
|
|
46121
46386
|
iconDefault = _ref.iconDefault,
|
|
46122
46387
|
configIconMap = _ref.configIconMap,
|
|
46123
46388
|
iconValue = _ref.iconValue,
|
|
46124
46389
|
customAttributes = _ref.customAttributes,
|
|
46125
|
-
|
|
46390
|
+
themeValues = _ref.themeValues;
|
|
46126
46391
|
var Icon;
|
|
46127
46392
|
if (_typeof(icon) === "object") {
|
|
46128
46393
|
var _configIconMap$iconID;
|
|
@@ -46138,9 +46403,10 @@ var IconsModule = function IconsModule(_ref) {
|
|
|
46138
46403
|
justify: "center",
|
|
46139
46404
|
align: "center"
|
|
46140
46405
|
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
46141
|
-
color:
|
|
46406
|
+
color: themeValues.singleIconColor
|
|
46142
46407
|
})));
|
|
46143
46408
|
};
|
|
46409
|
+
var IconModule = themeComponent(IconsModule, "Icon", fallbackValues$2, "primary");
|
|
46144
46410
|
|
|
46145
46411
|
var TitleModule = function TitleModule(_ref) {
|
|
46146
46412
|
var title = _ref.title,
|
|
@@ -46165,7 +46431,22 @@ var TitleModule = function TitleModule(_ref) {
|
|
|
46165
46431
|
}, subtitle)));
|
|
46166
46432
|
};
|
|
46167
46433
|
|
|
46168
|
-
var
|
|
46434
|
+
var color$c = "#15749D";
|
|
46435
|
+
var hoverColor$5 = "#116285";
|
|
46436
|
+
var activeColor$8 = "#0E506D";
|
|
46437
|
+
var linkColor$4 = "#3176AA";
|
|
46438
|
+
var fontWeight$6 = FONT_WEIGHT_REGULAR;
|
|
46439
|
+
var modalLinkHoverFocus = "outline: none;\n cursor: pointer;\n text-decoration: underline;\n text-decoration-color: #317D4F;";
|
|
46440
|
+
var fallbackValues$L = {
|
|
46441
|
+
color: color$c,
|
|
46442
|
+
hoverColor: hoverColor$5,
|
|
46443
|
+
activeColor: activeColor$8,
|
|
46444
|
+
linkColor: linkColor$4,
|
|
46445
|
+
fontWeight: fontWeight$6,
|
|
46446
|
+
modalLinkHoverFocus: modalLinkHoverFocus
|
|
46447
|
+
};
|
|
46448
|
+
|
|
46449
|
+
var AutopayModal = function AutopayModal(_ref) {
|
|
46169
46450
|
var autoPayActive = _ref.autoPayActive,
|
|
46170
46451
|
autoPaySchedule = _ref.autoPaySchedule,
|
|
46171
46452
|
paymentPlanSchedule = _ref.paymentPlanSchedule,
|
|
@@ -46176,6 +46457,7 @@ var AutopayModalModule = function AutopayModalModule(_ref) {
|
|
|
46176
46457
|
_ref$controlType = _ref.controlType,
|
|
46177
46458
|
controlType = _ref$controlType === void 0 ? "tertiary" : _ref$controlType,
|
|
46178
46459
|
isMobile = _ref.isMobile,
|
|
46460
|
+
themeValues = _ref.themeValues,
|
|
46179
46461
|
isPaymentPlan = _ref.isPaymentPlan,
|
|
46180
46462
|
nextAutopayDate = _ref.nextAutopayDate,
|
|
46181
46463
|
dueDate = _ref.dueDate,
|
|
@@ -46209,7 +46491,6 @@ var AutopayModalModule = function AutopayModalModule(_ref) {
|
|
|
46209
46491
|
toggleModal(false);
|
|
46210
46492
|
} : navigateToSettings
|
|
46211
46493
|
};
|
|
46212
|
-
var modalLinkHoverFocus = "\n outline: none;\n cursor: pointer;\n text-decoration: underline;\n text-decoration-color: #317D4F;\n ";
|
|
46213
46494
|
var hoverStyles = "text-decoration: underline;";
|
|
46214
46495
|
var activeStyles = "text-decoration: underline;";
|
|
46215
46496
|
var renderAutoPayControl = function renderAutoPayControl() {
|
|
@@ -46264,8 +46545,8 @@ var AutopayModalModule = function AutopayModalModule(_ref) {
|
|
|
46264
46545
|
tabIndex: "0",
|
|
46265
46546
|
dataQa: "".concat(shortPlan, " On"),
|
|
46266
46547
|
color: SEA_GREEN,
|
|
46267
|
-
weight:
|
|
46268
|
-
hoverStyles: modalLinkHoverFocus,
|
|
46548
|
+
weight: themeValues.fontWeight,
|
|
46549
|
+
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
46269
46550
|
extraStyles: "padding-left: 0.25rem;",
|
|
46270
46551
|
disabled: disableActions
|
|
46271
46552
|
}, "".concat(shortPlan, " ").concat(nextAutopayDate))));
|
|
@@ -46282,6 +46563,7 @@ var AutopayModalModule = function AutopayModalModule(_ref) {
|
|
|
46282
46563
|
modalOpen: modalOpen
|
|
46283
46564
|
}, modalExtraProps), renderAutoPayControl());
|
|
46284
46565
|
};
|
|
46566
|
+
var AutopayModalModule = themeComponent(AutopayModal, "AutopayModal", fallbackValues$L);
|
|
46285
46567
|
|
|
46286
46568
|
var AmountModule = function AmountModule(_ref) {
|
|
46287
46569
|
var totalAmountDue = _ref.totalAmountDue,
|
|
@@ -46640,11 +46922,6 @@ var InactiveTitleModule = function InactiveTitleModule(_ref) {
|
|
|
46640
46922
|
}, "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." : ""))));
|
|
46641
46923
|
};
|
|
46642
46924
|
|
|
46643
|
-
var iconColor = ROYAL_BLUE_VIVID;
|
|
46644
|
-
var fallbackValues$L = {
|
|
46645
|
-
iconColor: iconColor
|
|
46646
|
-
};
|
|
46647
|
-
|
|
46648
46925
|
var Obligation = function Obligation(_ref) {
|
|
46649
46926
|
var _obligations$, _firstObligation$cust;
|
|
46650
46927
|
var config = _ref.config,
|
|
@@ -46672,8 +46949,7 @@ var Obligation = function Obligation(_ref) {
|
|
|
46672
46949
|
_ref$inactiveLookupVa = _ref.inactiveLookupValue,
|
|
46673
46950
|
inactiveLookupValue = _ref$inactiveLookupVa === void 0 ? "" : _ref$inactiveLookupVa,
|
|
46674
46951
|
_ref$isInCustomerMana = _ref.isInCustomerManagement,
|
|
46675
|
-
isInCustomerManagement = _ref$isInCustomerMana === void 0 ? false : _ref$isInCustomerMana
|
|
46676
|
-
themeValues = _ref.themeValues;
|
|
46952
|
+
isInCustomerManagement = _ref$isInCustomerMana === void 0 ? false : _ref$isInCustomerMana;
|
|
46677
46953
|
/*
|
|
46678
46954
|
The value of obligations is always an array. It can contain:
|
|
46679
46955
|
- A single obligation
|
|
@@ -46718,13 +46994,12 @@ var Obligation = function Obligation(_ref) {
|
|
|
46718
46994
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
46719
46995
|
justify: "flex-start",
|
|
46720
46996
|
align: "center"
|
|
46721
|
-
}, !isMobile && /*#__PURE__*/React__default.createElement(
|
|
46997
|
+
}, !isMobile && /*#__PURE__*/React__default.createElement(IconModule, {
|
|
46722
46998
|
icon: config.icon,
|
|
46723
46999
|
iconDefault: config.iconDefault,
|
|
46724
47000
|
configIconMap: config.iconMap,
|
|
46725
47001
|
iconValue: config.iconValue,
|
|
46726
|
-
customAttributes: customAttributes
|
|
46727
|
-
iconColor: themeValues.iconColor
|
|
47002
|
+
customAttributes: customAttributes
|
|
46728
47003
|
}), /*#__PURE__*/React__default.createElement(TitleModule, {
|
|
46729
47004
|
title: description,
|
|
46730
47005
|
subtitle: subDescription,
|
|
@@ -46811,13 +47086,12 @@ var Obligation = function Obligation(_ref) {
|
|
|
46811
47086
|
justify: "flex-start",
|
|
46812
47087
|
align: "center",
|
|
46813
47088
|
nowrap: true
|
|
46814
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
47089
|
+
}, /*#__PURE__*/React__default.createElement(IconModule, {
|
|
46815
47090
|
icon: config.icon,
|
|
46816
47091
|
iconDefault: config.iconDefault,
|
|
46817
47092
|
configIconMap: config.iconMap,
|
|
46818
47093
|
iconValue: config.iconValue,
|
|
46819
|
-
customAttributes: customAttributes
|
|
46820
|
-
iconColor: themeValues.iconColor
|
|
47094
|
+
customAttributes: customAttributes
|
|
46821
47095
|
}), /*#__PURE__*/React__default.createElement(InactiveTitleModule, {
|
|
46822
47096
|
title: inactiveLookupTitle,
|
|
46823
47097
|
subtitle: "".concat(inactiveLookupInput, ": ").concat(inactiveLookupValue),
|
|
@@ -46863,7 +47137,6 @@ var Obligation = function Obligation(_ref) {
|
|
|
46863
47137
|
}))));
|
|
46864
47138
|
return inactive ? inactiveObligation : activeObligation;
|
|
46865
47139
|
};
|
|
46866
|
-
var Obligation$1 = themeComponent(Obligation, "Obligation", fallbackValues$L);
|
|
46867
47140
|
|
|
46868
47141
|
var PartialAmountField = function PartialAmountField(_ref) {
|
|
46869
47142
|
var lineItem = _ref.lineItem,
|
|
@@ -47000,9 +47273,9 @@ var arrowColor = WHITE;
|
|
|
47000
47273
|
var numberColor = MATISSE_BLUE;
|
|
47001
47274
|
var hoverBackgroundColor$2 = ALABASTER_WHITE;
|
|
47002
47275
|
var activeBackgroundColor$2 = WHITE;
|
|
47003
|
-
var activeColor$
|
|
47276
|
+
var activeColor$9 = MATISSE_BLUE;
|
|
47004
47277
|
var fallbackValues$M = {
|
|
47005
|
-
activeColor: activeColor$
|
|
47278
|
+
activeColor: activeColor$9,
|
|
47006
47279
|
activeBackgroundColor: activeBackgroundColor$2,
|
|
47007
47280
|
arrowColor: arrowColor,
|
|
47008
47281
|
hoverBackgroundColor: hoverBackgroundColor$2,
|
|
@@ -47225,7 +47498,11 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
47225
47498
|
buttonGroupStyles = _ref.buttonGroupStyles,
|
|
47226
47499
|
_ref$hideAdditionalBu = _ref.hideAdditionalButton,
|
|
47227
47500
|
hideAdditionalButton = _ref$hideAdditionalBu === void 0 ? false : _ref$hideAdditionalBu,
|
|
47228
|
-
additionalButton = _ref.additionalButton
|
|
47501
|
+
additionalButton = _ref.additionalButton,
|
|
47502
|
+
_ref$nextButtonTestId = _ref.nextButtonTestId,
|
|
47503
|
+
nextButtonTestId = _ref$nextButtonTestId === void 0 ? null : _ref$nextButtonTestId,
|
|
47504
|
+
_ref$backButtonTestId = _ref.backButtonTestId,
|
|
47505
|
+
backButtonTestId = _ref$backButtonTestId === void 0 ? null : _ref$backButtonTestId;
|
|
47229
47506
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
47230
47507
|
isMobile = _useContext.isMobile;
|
|
47231
47508
|
var backButton = !!cancelURL && !!cancelText ? /*#__PURE__*/React__default.createElement(ButtonWithLink, {
|
|
@@ -47233,7 +47510,7 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
47233
47510
|
url: cancelURL,
|
|
47234
47511
|
variant: backButtonVariant,
|
|
47235
47512
|
extraStyles: isMobile && "flex-grow: 1",
|
|
47236
|
-
dataQa: cancelText,
|
|
47513
|
+
dataQa: backButtonTestId || cancelText,
|
|
47237
47514
|
"aria-labelledby": "".concat(kebabCaseString(cancelText), "-button"),
|
|
47238
47515
|
role: "link"
|
|
47239
47516
|
}) : backButtonAction && /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
@@ -47250,7 +47527,7 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
47250
47527
|
text: redirectText,
|
|
47251
47528
|
variant: forwardButtonVariant,
|
|
47252
47529
|
extraStyles: isMobile && "flex-grow: 1",
|
|
47253
|
-
dataQa: redirectText,
|
|
47530
|
+
dataQa: nextButtonTestId || redirectText,
|
|
47254
47531
|
disabled: isForwardButtonDisabled,
|
|
47255
47532
|
"aria-labelledby": "".concat(kebabCaseString(redirectText), "-button"),
|
|
47256
47533
|
role: forwardButtonAriaRole
|
|
@@ -47260,7 +47537,7 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
47260
47537
|
action: forwardButtonAction,
|
|
47261
47538
|
isLoading: forwardButtonLoading,
|
|
47262
47539
|
extraStyles: isMobile && "flex-grow: 1",
|
|
47263
|
-
dataQa: forwardButtonText,
|
|
47540
|
+
dataQa: nextButtonTestId || forwardButtonText,
|
|
47264
47541
|
disabled: isForwardButtonDisabled,
|
|
47265
47542
|
"aria-labelledby": "".concat(kebabCaseString(forwardButtonText), "-button"),
|
|
47266
47543
|
role: forwardButtonAriaRole
|
|
@@ -47665,7 +47942,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
47665
47942
|
};
|
|
47666
47943
|
var PaymentDetails$1 = themeComponent(PaymentDetails, "PaymentDetails", fallbackValues$N, "default");
|
|
47667
47944
|
|
|
47668
|
-
var linkColor$
|
|
47945
|
+
var linkColor$5 = {
|
|
47669
47946
|
"default": "#3176AA"
|
|
47670
47947
|
};
|
|
47671
47948
|
var fontSize$a = {
|
|
@@ -47674,21 +47951,21 @@ var fontSize$a = {
|
|
|
47674
47951
|
var lineHeight$4 = {
|
|
47675
47952
|
"default": "1.5rem"
|
|
47676
47953
|
};
|
|
47677
|
-
var fontWeight$
|
|
47954
|
+
var fontWeight$7 = {
|
|
47678
47955
|
"default": FONT_WEIGHT_REGULAR
|
|
47679
47956
|
};
|
|
47680
|
-
var modalLinkHoverFocus = {
|
|
47957
|
+
var modalLinkHoverFocus$1 = {
|
|
47681
47958
|
"default": "outline: none; text-decoration: underline;"
|
|
47682
47959
|
};
|
|
47683
47960
|
var linkTextDecoration = {
|
|
47684
47961
|
"default": LINK_TEXT_DECORATION
|
|
47685
47962
|
};
|
|
47686
47963
|
var fallbackValues$O = {
|
|
47687
|
-
linkColor: linkColor$
|
|
47964
|
+
linkColor: linkColor$5,
|
|
47688
47965
|
fontSize: fontSize$a,
|
|
47689
47966
|
lineHeight: lineHeight$4,
|
|
47690
|
-
fontWeight: fontWeight$
|
|
47691
|
-
modalLinkHoverFocus: modalLinkHoverFocus,
|
|
47967
|
+
fontWeight: fontWeight$7,
|
|
47968
|
+
modalLinkHoverFocus: modalLinkHoverFocus$1,
|
|
47692
47969
|
linkTextDecoration: linkTextDecoration
|
|
47693
47970
|
};
|
|
47694
47971
|
|
|
@@ -47753,7 +48030,7 @@ var backgroundColor$d = {
|
|
|
47753
48030
|
"default": "#ffffff",
|
|
47754
48031
|
footer: "#ffffff"
|
|
47755
48032
|
};
|
|
47756
|
-
var linkColor$
|
|
48033
|
+
var linkColor$6 = {
|
|
47757
48034
|
"default": "#3176AA",
|
|
47758
48035
|
footer: "#ffffff"
|
|
47759
48036
|
};
|
|
@@ -47769,12 +48046,12 @@ var lineHeight$5 = {
|
|
|
47769
48046
|
"default": "1.5rem",
|
|
47770
48047
|
footer: "1.25rem"
|
|
47771
48048
|
};
|
|
47772
|
-
var fontWeight$
|
|
48049
|
+
var fontWeight$8 = {
|
|
47773
48050
|
"default": FONT_WEIGHT_REGULAR,
|
|
47774
48051
|
footer: FONT_WEIGHT_SEMIBOLD
|
|
47775
48052
|
};
|
|
47776
48053
|
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";
|
|
47777
|
-
var modalLinkHoverFocus$
|
|
48054
|
+
var modalLinkHoverFocus$2 = {
|
|
47778
48055
|
"default": standardInteractionStyles,
|
|
47779
48056
|
footer: standardInteractionStyles
|
|
47780
48057
|
};
|
|
@@ -47784,12 +48061,12 @@ var modalLinkTextDecoration = {
|
|
|
47784
48061
|
};
|
|
47785
48062
|
var fallbackValues$P = {
|
|
47786
48063
|
backgroundColor: backgroundColor$d,
|
|
47787
|
-
linkColor: linkColor$
|
|
48064
|
+
linkColor: linkColor$6,
|
|
47788
48065
|
border: border$3,
|
|
47789
48066
|
fontSize: fontSize$b,
|
|
47790
48067
|
lineHeight: lineHeight$5,
|
|
47791
|
-
fontWeight: fontWeight$
|
|
47792
|
-
modalLinkHoverFocus: modalLinkHoverFocus$
|
|
48068
|
+
fontWeight: fontWeight$8,
|
|
48069
|
+
modalLinkHoverFocus: modalLinkHoverFocus$2,
|
|
47793
48070
|
modalLinkTextDecoration: modalLinkTextDecoration
|
|
47794
48071
|
};
|
|
47795
48072
|
|
|
@@ -48784,7 +49061,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
|
48784
49061
|
}, section.content))));
|
|
48785
49062
|
};
|
|
48786
49063
|
|
|
48787
|
-
var _excluded$E = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections"];
|
|
49064
|
+
var _excluded$E = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections", "borderOverride"];
|
|
48788
49065
|
|
|
48789
49066
|
/**
|
|
48790
49067
|
- The RadioSection component takes either a flat array (via the 'sections'
|
|
@@ -48832,6 +49109,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48832
49109
|
_ref$isSectionRequire = _ref.isSectionRequired,
|
|
48833
49110
|
isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire,
|
|
48834
49111
|
groupedSections = _ref.groupedSections,
|
|
49112
|
+
borderOverride = _ref.borderOverride,
|
|
48835
49113
|
rest = _objectWithoutProperties(_ref, _excluded$E);
|
|
48836
49114
|
var _useState = React.useState(null),
|
|
48837
49115
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -48864,7 +49142,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48864
49142
|
};
|
|
48865
49143
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
48866
49144
|
padding: "1px",
|
|
48867
|
-
border: "1px solid ".concat(themeValues.borderColor),
|
|
49145
|
+
border: borderOverride || "1px solid ".concat(themeValues.borderColor),
|
|
48868
49146
|
borderRadius: "4px",
|
|
48869
49147
|
extraStyles: containerStyles,
|
|
48870
49148
|
role: "radiogroup",
|
|
@@ -49037,9 +49315,16 @@ RegistrationForm.reducer = reducer$9;
|
|
|
49037
49315
|
RegistrationForm.mapStateToProps = mapStateToProps$a;
|
|
49038
49316
|
RegistrationForm.mapDispatchToProps = mapDispatchToProps$9;
|
|
49039
49317
|
|
|
49318
|
+
var GRECIAN_GREY$1 = GRECIAN_GREY;
|
|
49319
|
+
var bannerBackgroundColor = GRECIAN_GREY$1;
|
|
49320
|
+
var fallbackValues$R = {
|
|
49321
|
+
bannerBackgroundColor: bannerBackgroundColor
|
|
49322
|
+
};
|
|
49323
|
+
|
|
49040
49324
|
var ResetConfirmationForm = function ResetConfirmationForm() {
|
|
49041
|
-
var
|
|
49042
|
-
|
|
49325
|
+
var themeContext = React.useContext(styled.ThemeContext);
|
|
49326
|
+
var themeValues = createThemeValues(themeContext, fallbackValues$R, "ResetConfirmationForm");
|
|
49327
|
+
var isMobile = themeContext.isMobile;
|
|
49043
49328
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
49044
49329
|
padding: "0",
|
|
49045
49330
|
width: isMobile ? "auto" : "576px",
|
|
@@ -49047,7 +49332,7 @@ var ResetConfirmationForm = function ResetConfirmationForm() {
|
|
|
49047
49332
|
background: WHITE,
|
|
49048
49333
|
boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)"
|
|
49049
49334
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
49050
|
-
background:
|
|
49335
|
+
background: themeValues.bannerBackgroundColor,
|
|
49051
49336
|
minWidth: "100%",
|
|
49052
49337
|
padding: "0.5rem"
|
|
49053
49338
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
@@ -49151,9 +49436,16 @@ ResetPasswordForm.reducer = reducer$a;
|
|
|
49151
49436
|
ResetPasswordForm.mapStateToProps = mapStateToProps$b;
|
|
49152
49437
|
ResetPasswordForm.mapDispatchToProps = mapDispatchToProps$a;
|
|
49153
49438
|
|
|
49154
|
-
var
|
|
49155
|
-
|
|
49156
|
-
|
|
49439
|
+
var GRECIAN_GREY$2 = GRECIAN_GREY;
|
|
49440
|
+
var bannerBackgroundColor$1 = GRECIAN_GREY$2;
|
|
49441
|
+
var fallbackValues$S = {
|
|
49442
|
+
bannerBackgroundColor: bannerBackgroundColor$1
|
|
49443
|
+
};
|
|
49444
|
+
|
|
49445
|
+
var ResetPasswordSuccess = function ResetPasswordSuccess() {
|
|
49446
|
+
var themeContext = React.useContext(styled.ThemeContext);
|
|
49447
|
+
var themeValues = createThemeValues(themeContext, fallbackValues$S, "ResetPasswordSuccess");
|
|
49448
|
+
var isMobile = themeContext.isMobile;
|
|
49157
49449
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
49158
49450
|
padding: "0",
|
|
49159
49451
|
width: isMobile ? "auto" : "576px",
|
|
@@ -49161,7 +49453,7 @@ var ResetConfirmationForm$2 = function ResetConfirmationForm() {
|
|
|
49161
49453
|
background: WHITE,
|
|
49162
49454
|
boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)"
|
|
49163
49455
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
49164
|
-
background:
|
|
49456
|
+
background: themeValues.bannerBackgroundColor,
|
|
49165
49457
|
minWidth: "100%",
|
|
49166
49458
|
padding: "0.5rem"
|
|
49167
49459
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
@@ -49196,12 +49488,12 @@ var ResetConfirmationForm$2 = function ResetConfirmationForm() {
|
|
|
49196
49488
|
linkExtraStyles: "width: 100%;"
|
|
49197
49489
|
}))))));
|
|
49198
49490
|
};
|
|
49199
|
-
var ResetPasswordSuccess = withWindowSize(
|
|
49491
|
+
var ResetPasswordSuccess$1 = withWindowSize(ResetPasswordSuccess);
|
|
49200
49492
|
|
|
49201
49493
|
var activeTabBackground = "#FFFFFF";
|
|
49202
49494
|
var activeTabAccent = "#15749D";
|
|
49203
49495
|
var activeTabHover = "#B8D5E1";
|
|
49204
|
-
var fallbackValues$
|
|
49496
|
+
var fallbackValues$T = {
|
|
49205
49497
|
activeTabBackground: activeTabBackground,
|
|
49206
49498
|
activeTabAccent: activeTabAccent,
|
|
49207
49499
|
activeTabHover: activeTabHover
|
|
@@ -49269,12 +49561,12 @@ var Tabs = function Tabs(_ref) {
|
|
|
49269
49561
|
}, tab.content);
|
|
49270
49562
|
}))));
|
|
49271
49563
|
};
|
|
49272
|
-
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$
|
|
49564
|
+
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$T);
|
|
49273
49565
|
|
|
49274
49566
|
var activeTabBackground$1 = "#FFFFFF";
|
|
49275
49567
|
var activeTabAccent$1 = "#15749D";
|
|
49276
49568
|
var activeTabHover$1 = "#B8D5E1";
|
|
49277
|
-
var fallbackValues$
|
|
49569
|
+
var fallbackValues$U = {
|
|
49278
49570
|
activeTabBackground: activeTabBackground$1,
|
|
49279
49571
|
activeTabAccent: activeTabAccent$1,
|
|
49280
49572
|
activeTabHover: activeTabHover$1
|
|
@@ -49329,7 +49621,7 @@ var TabSidebar = function TabSidebar(_ref) {
|
|
|
49329
49621
|
}, text)))));
|
|
49330
49622
|
})));
|
|
49331
49623
|
};
|
|
49332
|
-
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$
|
|
49624
|
+
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$U);
|
|
49333
49625
|
|
|
49334
49626
|
var Timeout = function Timeout(_ref) {
|
|
49335
49627
|
var onLogout = _ref.onLogout;
|
|
@@ -49424,13 +49716,13 @@ var ToastNotification = function ToastNotification(_ref) {
|
|
|
49424
49716
|
}, message))), /*#__PURE__*/React__default.createElement(IconQuitLarge, null)));
|
|
49425
49717
|
};
|
|
49426
49718
|
|
|
49427
|
-
var fontWeight$
|
|
49719
|
+
var fontWeight$9 = "600";
|
|
49428
49720
|
var fontColor$1 = WHITE;
|
|
49429
49721
|
var textAlign$1 = "left";
|
|
49430
49722
|
var headerBackgroundColor$1 = BRIGHT_GREY;
|
|
49431
49723
|
var imageBackgroundColor$1 = MATISSE_BLUE;
|
|
49432
|
-
var fallbackValues$
|
|
49433
|
-
fontWeight: fontWeight$
|
|
49724
|
+
var fallbackValues$V = {
|
|
49725
|
+
fontWeight: fontWeight$9,
|
|
49434
49726
|
fontColor: fontColor$1,
|
|
49435
49727
|
textAlign: textAlign$1,
|
|
49436
49728
|
headerBackgroundColor: headerBackgroundColor$1,
|
|
@@ -49474,7 +49766,7 @@ var WelcomeModule = function WelcomeModule(_ref) {
|
|
|
49474
49766
|
src: welcomeImage
|
|
49475
49767
|
})))));
|
|
49476
49768
|
};
|
|
49477
|
-
var WelcomeModule$1 = /*#__PURE__*/React.memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$
|
|
49769
|
+
var WelcomeModule$1 = /*#__PURE__*/React.memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$V));
|
|
49478
49770
|
|
|
49479
49771
|
var WorkflowTile = function WorkflowTile(_ref) {
|
|
49480
49772
|
var _ref$workflowName = _ref.workflowName,
|
|
@@ -49534,7 +49826,7 @@ var menuItemColorDelete = RAZZMATAZZ_RED;
|
|
|
49534
49826
|
var menuItemHoverBackgroundColor = CORNFLOWER_BLUE;
|
|
49535
49827
|
var menuItemHoverBackgroundColorDelete = BLUSH_RED;
|
|
49536
49828
|
var menuItemHoverColor = ROYAL_BLUE_VIVID;
|
|
49537
|
-
var fallbackValues$
|
|
49829
|
+
var fallbackValues$W = {
|
|
49538
49830
|
menuItemBackgroundColor: menuItemBackgroundColor,
|
|
49539
49831
|
menuItemColor: menuItemColor,
|
|
49540
49832
|
menuItemColorDelete: menuItemColorDelete,
|
|
@@ -49601,15 +49893,15 @@ var PopupMenuItem = function PopupMenuItem(_ref) {
|
|
|
49601
49893
|
extraStyles: textExtraStyles
|
|
49602
49894
|
}, text)));
|
|
49603
49895
|
};
|
|
49604
|
-
var PopupMenuItem$1 = themeComponent(PopupMenuItem, "PopupMenuItem", fallbackValues$
|
|
49896
|
+
var PopupMenuItem$1 = themeComponent(PopupMenuItem, "PopupMenuItem", fallbackValues$W);
|
|
49605
49897
|
|
|
49606
|
-
var hoverColor$
|
|
49607
|
-
var activeColor$
|
|
49898
|
+
var hoverColor$6 = "#116285";
|
|
49899
|
+
var activeColor$a = "#0E506D";
|
|
49608
49900
|
var menuTriggerColor = "#15749D";
|
|
49609
49901
|
var backgroundColor$e = "white";
|
|
49610
|
-
var fallbackValues$
|
|
49611
|
-
hoverColor: hoverColor$
|
|
49612
|
-
activeColor: activeColor$
|
|
49902
|
+
var fallbackValues$X = {
|
|
49903
|
+
hoverColor: hoverColor$6,
|
|
49904
|
+
activeColor: activeColor$a,
|
|
49613
49905
|
menuTriggerColor: menuTriggerColor,
|
|
49614
49906
|
backgroundColor: backgroundColor$e
|
|
49615
49907
|
};
|
|
@@ -49743,10 +50035,10 @@ var PopupMenu = function PopupMenu(_ref) {
|
|
|
49743
50035
|
}, item));
|
|
49744
50036
|
})));
|
|
49745
50037
|
};
|
|
49746
|
-
var PopupMenu$1 = themeComponent(PopupMenu, "PopupMenu", fallbackValues$
|
|
50038
|
+
var PopupMenu$1 = themeComponent(PopupMenu, "PopupMenu", fallbackValues$X);
|
|
49747
50039
|
|
|
49748
50040
|
var pageBackground = "#FBFCFD";
|
|
49749
|
-
var fallbackValues$
|
|
50041
|
+
var fallbackValues$Y = {
|
|
49750
50042
|
pageBackground: pageBackground
|
|
49751
50043
|
};
|
|
49752
50044
|
|
|
@@ -49794,7 +50086,7 @@ var CenterSingle = function CenterSingle(_ref) {
|
|
|
49794
50086
|
padding: "0"
|
|
49795
50087
|
})));
|
|
49796
50088
|
};
|
|
49797
|
-
var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$
|
|
50089
|
+
var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$Y));
|
|
49798
50090
|
|
|
49799
50091
|
var CenterStack = function CenterStack(_ref) {
|
|
49800
50092
|
var header = _ref.header,
|
|
@@ -49837,7 +50129,7 @@ var CenterStack = function CenterStack(_ref) {
|
|
|
49837
50129
|
padding: "0"
|
|
49838
50130
|
})));
|
|
49839
50131
|
};
|
|
49840
|
-
var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$
|
|
50132
|
+
var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$Y));
|
|
49841
50133
|
|
|
49842
50134
|
var CenterSingle$2 = function CenterSingle(_ref) {
|
|
49843
50135
|
var header = _ref.header,
|
|
@@ -49883,7 +50175,7 @@ var CenterSingle$2 = function CenterSingle(_ref) {
|
|
|
49883
50175
|
padding: "0"
|
|
49884
50176
|
})));
|
|
49885
50177
|
};
|
|
49886
|
-
var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$
|
|
50178
|
+
var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$Y));
|
|
49887
50179
|
|
|
49888
50180
|
var SidebarSingleContent = function SidebarSingleContent(_ref) {
|
|
49889
50181
|
var header = _ref.header,
|
|
@@ -49936,7 +50228,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
|
|
|
49936
50228
|
padding: "0"
|
|
49937
50229
|
})));
|
|
49938
50230
|
};
|
|
49939
|
-
var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$
|
|
50231
|
+
var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$Y));
|
|
49940
50232
|
|
|
49941
50233
|
var SidebarStackContent = function SidebarStackContent(_ref) {
|
|
49942
50234
|
var header = _ref.header,
|
|
@@ -50006,7 +50298,7 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
|
|
|
50006
50298
|
key: "footer-box"
|
|
50007
50299
|
})));
|
|
50008
50300
|
};
|
|
50009
|
-
var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$
|
|
50301
|
+
var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$Y));
|
|
50010
50302
|
|
|
50011
50303
|
var useFocusInvalidInput = function useFocusInvalidInput(hasErrors) {
|
|
50012
50304
|
var resetHasErrors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
|
|
@@ -50160,7 +50452,7 @@ exports.NavTabs = NavTabs;
|
|
|
50160
50452
|
exports.NoCustomerResultsIcon = NoCustomerResultsIcon;
|
|
50161
50453
|
exports.NoPaymentResultsIcon = NoPaymentResultsIcon;
|
|
50162
50454
|
exports.NotFoundIcon = NotFoundIcon;
|
|
50163
|
-
exports.Obligation = Obligation
|
|
50455
|
+
exports.Obligation = Obligation;
|
|
50164
50456
|
exports.ObligationIcons = iconsMap;
|
|
50165
50457
|
exports.Pagination = Pagination$1;
|
|
50166
50458
|
exports.Paragraph = Paragraph$1;
|
|
@@ -50204,7 +50496,7 @@ exports.RejectedVelocityIcon = RejectedVelocityIcon;
|
|
|
50204
50496
|
exports.ResetConfirmationForm = ResetConfirmationForm$1;
|
|
50205
50497
|
exports.ResetPasswordForm = ResetPasswordForm;
|
|
50206
50498
|
exports.ResetPasswordIcon = ResetPasswordIcon;
|
|
50207
|
-
exports.ResetPasswordSuccess = ResetPasswordSuccess;
|
|
50499
|
+
exports.ResetPasswordSuccess = ResetPasswordSuccess$1;
|
|
50208
50500
|
exports.RevenueManagementImage = RevenueManagementImage;
|
|
50209
50501
|
exports.RoutingNumberImage = RoutingNumberImage;
|
|
50210
50502
|
exports.SearchIcon = SearchIcon;
|