@thecb/components 10.12.4 → 10.12.5-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +304 -690
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +305 -689
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/.DS_Store +0 -0
- package/src/components/atoms/card/CardText.js +3 -4
- package/src/components/atoms/checkbox/Checkbox.js +9 -22
- package/src/components/atoms/checkbox/Checkbox.stories.js +13 -17
- package/src/components/atoms/checkbox/Checkbox.theme.js +2 -6
- package/src/components/atoms/icons/icons.stories.js +1 -5
- package/src/components/atoms/icons/index.js +1 -5
- package/src/components/molecules/multiple-select-filter/MultipleSelectFilter.js +25 -33
- package/src/components/molecules/multiple-select-filter/MultipleSelectFilter.stories.js +4 -2
- package/src/components/molecules/multiple-select-filter/MultipleSelectFilter.styled.js +7 -15
- package/src/components/molecules/multiple-select-filter/MultipleSelectFilter.theme.js +3 -7
- package/src/components/molecules/multiple-select-filter/__private__/ActionLinkButton.js +13 -16
- package/src/components/molecules/multiple-select-filter/__private__/FilterButton.js +14 -24
- package/src/components/molecules/multiple-select-filter/__private__/FilterDropdown.js +18 -22
- package/src/components/molecules/multiple-select-filter/__private__/FilterableList.js +41 -43
- package/src/components/molecules/multiple-select-filter/__private__/FilterableListItem.js +41 -52
- package/src/components/molecules/multiple-select-filter/__private__/SearchBox.js +7 -10
- package/src/components/molecules/multiple-select-filter/index.d.ts +2 -2
- package/src/components/atoms/icons/CheckboxCheckmarkIcon.js +0 -45
- package/src/components/atoms/icons/PaymentStatusIcon.d.ts +0 -1
- package/src/components/atoms/icons/PaymentStatusIcon.js +0 -28
- package/src/components/atoms/icons/PersonIcon.d.ts +0 -1
- package/src/components/atoms/icons/PersonIcon.js +0 -28
package/dist/index.cjs.js
CHANGED
|
@@ -236,58 +236,6 @@ 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;
|
|
291
239
|
}
|
|
292
240
|
|
|
293
241
|
function __spreadArrays() {
|
|
@@ -298,32 +246,6 @@ function __spreadArrays() {
|
|
|
298
246
|
return r;
|
|
299
247
|
}
|
|
300
248
|
|
|
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
|
-
|
|
327
249
|
var clamp = function (min, max) { return function (v) {
|
|
328
250
|
return Math.max(Math.min(v, max), min);
|
|
329
251
|
}; };
|
|
@@ -337,8 +259,8 @@ var number = {
|
|
|
337
259
|
parse: parseFloat,
|
|
338
260
|
transform: function (v) { return v; }
|
|
339
261
|
};
|
|
340
|
-
var alpha = __assign
|
|
341
|
-
var scale = __assign
|
|
262
|
+
var alpha = __assign(__assign({}, number), { transform: clamp(0, 1) });
|
|
263
|
+
var scale = __assign(__assign({}, number), { default: 1 });
|
|
342
264
|
|
|
343
265
|
var createUnitType = function (unit) { return ({
|
|
344
266
|
test: function (v) {
|
|
@@ -352,7 +274,7 @@ var percent = createUnitType('%');
|
|
|
352
274
|
var px = createUnitType('px');
|
|
353
275
|
var vh = createUnitType('vh');
|
|
354
276
|
var vw = createUnitType('vw');
|
|
355
|
-
var progressPercentage = __assign
|
|
277
|
+
var progressPercentage = __assign(__assign({}, percent), { parse: function (v) { return percent.parse(v) / 100; }, transform: function (v) { return percent.transform(v * 100); } });
|
|
356
278
|
|
|
357
279
|
var getValueFromFunctionString = function (value) {
|
|
358
280
|
return value.substring(value.indexOf('(') + 1, value.lastIndexOf(')'));
|
|
@@ -386,7 +308,7 @@ var hslaTemplate = function (_a) {
|
|
|
386
308
|
var hue = _a.hue, saturation = _a.saturation, lightness = _a.lightness, _b = _a.alpha, alpha = _b === void 0 ? 1 : _b;
|
|
387
309
|
return "hsla(" + hue + ", " + saturation + ", " + lightness + ", " + alpha + ")";
|
|
388
310
|
};
|
|
389
|
-
var rgbUnit = __assign
|
|
311
|
+
var rgbUnit = __assign(__assign({}, number), { transform: function (v) { return Math.round(clampRgbUnit(v)); } });
|
|
390
312
|
function isColorString(color, colorType) {
|
|
391
313
|
return color.startsWith(colorType) && singleColorRegex.test(color);
|
|
392
314
|
}
|
|
@@ -416,7 +338,7 @@ var hsla = {
|
|
|
416
338
|
});
|
|
417
339
|
}
|
|
418
340
|
};
|
|
419
|
-
var hex = __assign
|
|
341
|
+
var hex = __assign(__assign({}, rgba), { test: function (v) { return typeof v === 'string' && isColorString(v, '#'); }, parse: function (v) {
|
|
420
342
|
var r = '';
|
|
421
343
|
var g = '';
|
|
422
344
|
var b = '';
|
|
@@ -952,15 +874,15 @@ See the Apache Version 2.0 License for specific language governing permissions
|
|
|
952
874
|
and limitations under the License.
|
|
953
875
|
***************************************************************************** */
|
|
954
876
|
|
|
955
|
-
var __assign$
|
|
956
|
-
__assign$
|
|
877
|
+
var __assign$1 = function() {
|
|
878
|
+
__assign$1 = Object.assign || function __assign(t) {
|
|
957
879
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
958
880
|
s = arguments[i];
|
|
959
881
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
960
882
|
}
|
|
961
883
|
return t;
|
|
962
884
|
};
|
|
963
|
-
return __assign$
|
|
885
|
+
return __assign$1.apply(this, arguments);
|
|
964
886
|
};
|
|
965
887
|
|
|
966
888
|
var mixLinearColor = function (from, to, v) {
|
|
@@ -983,7 +905,7 @@ var mixColor = (function (from, to) {
|
|
|
983
905
|
invariant(fromColorType.transform === toColorType.transform, 'Both colors must be hex/RGBA, OR both must be HSLA.');
|
|
984
906
|
var fromColor = fromColorType.parse(from);
|
|
985
907
|
var toColor = toColorType.parse(to);
|
|
986
|
-
var blended = __assign$
|
|
908
|
+
var blended = __assign$1({}, fromColor);
|
|
987
909
|
var mixFunc = fromColorType === hsla ? mix : mixLinearColor;
|
|
988
910
|
return function (v) {
|
|
989
911
|
for (var key in blended) {
|
|
@@ -1028,7 +950,7 @@ var mixArray = function (from, to) {
|
|
|
1028
950
|
};
|
|
1029
951
|
};
|
|
1030
952
|
var mixObject = function (origin, target) {
|
|
1031
|
-
var output = __assign$
|
|
953
|
+
var output = __assign$1({}, origin, target);
|
|
1032
954
|
var blendValue = {};
|
|
1033
955
|
for (var key in output) {
|
|
1034
956
|
if (origin[key] !== undefined && target[key] !== undefined) {
|
|
@@ -1240,44 +1162,6 @@ var wrap$1 = curryRange(wrap);
|
|
|
1240
1162
|
|
|
1241
1163
|
var clampProgress = clamp$1$1(0, 1);
|
|
1242
1164
|
|
|
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
|
-
|
|
1281
1165
|
var createStyler = function (_a) {
|
|
1282
1166
|
var onRead = _a.onRead,
|
|
1283
1167
|
onRender = _a.onRender,
|
|
@@ -1289,7 +1173,7 @@ var createStyler = function (_a) {
|
|
|
1289
1173
|
if (_a === void 0) {
|
|
1290
1174
|
_a = {};
|
|
1291
1175
|
}
|
|
1292
|
-
var props = __rest
|
|
1176
|
+
var props = __rest(_a, []);
|
|
1293
1177
|
var state = {};
|
|
1294
1178
|
var changedValues = [];
|
|
1295
1179
|
var hasChanged = false;
|
|
@@ -1409,7 +1293,7 @@ function isTransformOriginProp(key) {
|
|
|
1409
1293
|
return transformOriginProps.has(key);
|
|
1410
1294
|
}
|
|
1411
1295
|
|
|
1412
|
-
var int = /*#__PURE__*/__assign
|
|
1296
|
+
var int = /*#__PURE__*/__assign( /*#__PURE__*/__assign({}, number), { transform: Math.round });
|
|
1413
1297
|
var valueTypes = {
|
|
1414
1298
|
color: color,
|
|
1415
1299
|
backgroundColor: color,
|
|
@@ -1641,8 +1525,8 @@ function createCssStyler(element, _a) {
|
|
|
1641
1525
|
}
|
|
1642
1526
|
var enableHardwareAcceleration = _a.enableHardwareAcceleration,
|
|
1643
1527
|
allowTransformNone = _a.allowTransformNone,
|
|
1644
|
-
props = __rest
|
|
1645
|
-
return cssStyler(__assign
|
|
1528
|
+
props = __rest(_a, ["enableHardwareAcceleration", "allowTransformNone"]);
|
|
1529
|
+
return cssStyler(__assign({ element: element, buildStyles: createStyleBuilder({
|
|
1646
1530
|
enableHardwareAcceleration: enableHardwareAcceleration,
|
|
1647
1531
|
allowTransformNone: allowTransformNone
|
|
1648
1532
|
}), preparseOutput: true }, props));
|
|
@@ -1692,7 +1576,7 @@ function buildSVGAttrs(_a, dimensions, totalPathLength, cssBuilder, attrs, isDas
|
|
|
1692
1576
|
pathSpacing = _b === void 0 ? 1 : _b,
|
|
1693
1577
|
_c = _a.pathOffset,
|
|
1694
1578
|
pathOffset = _c === void 0 ? 0 : _c,
|
|
1695
|
-
state = __rest
|
|
1579
|
+
state = __rest(_a, ["attrX", "attrY", "originX", "originY", "pathLength", "pathSpacing", "pathOffset"]);
|
|
1696
1580
|
var style = cssBuilder(state);
|
|
1697
1581
|
for (var key in style) {
|
|
1698
1582
|
if (key === 'transform') {
|
|
@@ -1821,7 +1705,7 @@ var Chainable = /*#__PURE__*/function () {
|
|
|
1821
1705
|
this.props = props;
|
|
1822
1706
|
}
|
|
1823
1707
|
Chainable.prototype.applyMiddleware = function (middleware) {
|
|
1824
|
-
return this.create(__assign
|
|
1708
|
+
return this.create(__assign(__assign({}, this.props), { middleware: this.props.middleware ? __spreadArrays([middleware], this.props.middleware) : [middleware] }));
|
|
1825
1709
|
};
|
|
1826
1710
|
Chainable.prototype.pipe = function () {
|
|
1827
1711
|
var funcs = [];
|
|
@@ -1893,7 +1777,7 @@ var createObserver = function (observerCandidate, _a, onComplete) {
|
|
|
1893
1777
|
};
|
|
1894
1778
|
|
|
1895
1779
|
var Action = /*#__PURE__*/function (_super) {
|
|
1896
|
-
__extends
|
|
1780
|
+
__extends(Action, _super);
|
|
1897
1781
|
function Action() {
|
|
1898
1782
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1899
1783
|
}
|
|
@@ -1912,13 +1796,13 @@ var Action = /*#__PURE__*/function (_super) {
|
|
|
1912
1796
|
};
|
|
1913
1797
|
var _a = this.props,
|
|
1914
1798
|
init = _a.init,
|
|
1915
|
-
observerProps = __rest
|
|
1799
|
+
observerProps = __rest(_a, ["init"]);
|
|
1916
1800
|
var observer = createObserver(observerCandidate, observerProps, function () {
|
|
1917
1801
|
isComplete = true;
|
|
1918
1802
|
subscription.stop();
|
|
1919
1803
|
});
|
|
1920
1804
|
var api = init(observer);
|
|
1921
|
-
subscription = api ? __assign
|
|
1805
|
+
subscription = api ? __assign(__assign({}, subscription), api) : subscription;
|
|
1922
1806
|
if (observerCandidate.registerParent) {
|
|
1923
1807
|
observerCandidate.registerParent(subscription);
|
|
1924
1808
|
}
|
|
@@ -1932,7 +1816,7 @@ var action = function (init) {
|
|
|
1932
1816
|
};
|
|
1933
1817
|
|
|
1934
1818
|
var BaseMulticast = /*#__PURE__*/function (_super) {
|
|
1935
|
-
__extends
|
|
1819
|
+
__extends(BaseMulticast, _super);
|
|
1936
1820
|
function BaseMulticast() {
|
|
1937
1821
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
1938
1822
|
_this.subscribers = [];
|
|
@@ -1992,7 +1876,7 @@ var isSingleValue = function (v) {
|
|
|
1992
1876
|
return typeOfV === 'string' || typeOfV === 'number';
|
|
1993
1877
|
};
|
|
1994
1878
|
var ValueReaction = /*#__PURE__*/function (_super) {
|
|
1995
|
-
__extends
|
|
1879
|
+
__extends(ValueReaction, _super);
|
|
1996
1880
|
function ValueReaction(props) {
|
|
1997
1881
|
var _this = _super.call(this, props) || this;
|
|
1998
1882
|
_this.scheduleVelocityCheck = function () {
|
|
@@ -2242,7 +2126,7 @@ var reduceArrayValue = function (i) {
|
|
|
2242
2126
|
var createArrayAction = function (action, props, vectorKeys) {
|
|
2243
2127
|
var firstVectorKey = vectorKeys[0];
|
|
2244
2128
|
var actionList = props[firstVectorKey].map(function (v, i) {
|
|
2245
|
-
var childActionProps = vectorKeys.reduce(reduceArrayValue(i), __assign
|
|
2129
|
+
var childActionProps = vectorKeys.reduce(reduceArrayValue(i), __assign({}, props));
|
|
2246
2130
|
return getActionCreator(v)(action, childActionProps);
|
|
2247
2131
|
});
|
|
2248
2132
|
return parallel$1.apply(void 0, actionList);
|
|
@@ -2256,7 +2140,7 @@ var reduceObjectValue = function (key) {
|
|
|
2256
2140
|
var createObjectAction = function (action, props, vectorKeys) {
|
|
2257
2141
|
var firstVectorKey = vectorKeys[0];
|
|
2258
2142
|
var actionMap = Object.keys(props[firstVectorKey]).reduce(function (map, key) {
|
|
2259
|
-
var childActionProps = vectorKeys.reduce(reduceObjectValue(key), __assign
|
|
2143
|
+
var childActionProps = vectorKeys.reduce(reduceObjectValue(key), __assign({}, props));
|
|
2260
2144
|
map[key] = getActionCreator(props[firstVectorKey][key])(action, childActionProps);
|
|
2261
2145
|
return map;
|
|
2262
2146
|
}, {});
|
|
@@ -2265,18 +2149,18 @@ var createObjectAction = function (action, props, vectorKeys) {
|
|
|
2265
2149
|
var createUnitAction = function (action, _a) {
|
|
2266
2150
|
var from = _a.from,
|
|
2267
2151
|
to = _a.to,
|
|
2268
|
-
props = __rest
|
|
2152
|
+
props = __rest(_a, ["from", "to"]);
|
|
2269
2153
|
var unitType = findUnitType(from) || findUnitType(to);
|
|
2270
2154
|
var transform = unitType.transform,
|
|
2271
2155
|
parse = unitType.parse;
|
|
2272
|
-
return action(__assign
|
|
2156
|
+
return action(__assign(__assign({}, props), { from: typeof from === 'string' ? parse(from) : from, to: typeof to === 'string' ? parse(to) : to })).pipe(transform);
|
|
2273
2157
|
};
|
|
2274
2158
|
var createMixerAction = function (mixer) {
|
|
2275
2159
|
return function (action, _a) {
|
|
2276
2160
|
var from = _a.from,
|
|
2277
2161
|
to = _a.to,
|
|
2278
|
-
props = __rest
|
|
2279
|
-
return action(__assign
|
|
2162
|
+
props = __rest(_a, ["from", "to"]);
|
|
2163
|
+
return action(__assign(__assign({}, props), { from: 0, to: 1 })).pipe(mixer(from, to));
|
|
2280
2164
|
};
|
|
2281
2165
|
};
|
|
2282
2166
|
var createColorAction = /*#__PURE__*/createMixerAction(mixColor);
|
|
@@ -2622,7 +2506,7 @@ var keyframes = function (_a) {
|
|
|
2622
2506
|
ease = _b === void 0 ? linear : _b,
|
|
2623
2507
|
times = _a.times,
|
|
2624
2508
|
values = _a.values,
|
|
2625
|
-
tweenProps = __rest
|
|
2509
|
+
tweenProps = __rest(_a, ["easings", "ease", "times", "values"]);
|
|
2626
2510
|
easings = Array.isArray(easings) ? easings : defaultEasings(values, easings);
|
|
2627
2511
|
times = times || defaultTimings(values);
|
|
2628
2512
|
var scrubbers = easings.map(function (easing, i) {
|
|
@@ -2632,7 +2516,7 @@ var keyframes = function (_a) {
|
|
|
2632
2516
|
ease: easing
|
|
2633
2517
|
});
|
|
2634
2518
|
});
|
|
2635
|
-
return tween(__assign
|
|
2519
|
+
return tween(__assign(__assign({}, tweenProps), { ease: ease })).applyMiddleware(function (update) {
|
|
2636
2520
|
return interpolateScrubbers(times, scrubbers, update);
|
|
2637
2521
|
});
|
|
2638
2522
|
};
|
|
@@ -2876,7 +2760,7 @@ var index$1 = function (_a) {
|
|
|
2876
2760
|
}
|
|
2877
2761
|
var x = _a.x,
|
|
2878
2762
|
y = _a.y,
|
|
2879
|
-
props = __rest
|
|
2763
|
+
props = __rest(_a, ["x", "y"]);
|
|
2880
2764
|
if (x !== undefined || y !== undefined) {
|
|
2881
2765
|
var applyXOffset_1 = applyOffset(x || 0);
|
|
2882
2766
|
var applyYOffset_1 = applyOffset(y || 0);
|
|
@@ -2950,7 +2834,7 @@ var steps$1 = function (st, min, max) {
|
|
|
2950
2834
|
};
|
|
2951
2835
|
var transformMap = function (childTransformers) {
|
|
2952
2836
|
return function (v) {
|
|
2953
|
-
var output = __assign
|
|
2837
|
+
var output = __assign({}, v);
|
|
2954
2838
|
for (var key in childTransformers) {
|
|
2955
2839
|
if (childTransformers.hasOwnProperty(key)) {
|
|
2956
2840
|
var childTransformer = childTransformers[key];
|
|
@@ -2981,52 +2865,6 @@ var transformers = /*#__PURE__*/Object.freeze({
|
|
|
2981
2865
|
transformMap: transformMap
|
|
2982
2866
|
});
|
|
2983
2867
|
|
|
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
|
-
|
|
3030
2868
|
var getPoseValues = function (_a) {
|
|
3031
2869
|
var transition = _a.transition,
|
|
3032
2870
|
flip = _a.flip,
|
|
@@ -3039,7 +2877,7 @@ var getPoseValues = function (_a) {
|
|
|
3039
2877
|
preTransition = _a.preTransition,
|
|
3040
2878
|
applyAtStart = _a.applyAtStart,
|
|
3041
2879
|
applyAtEnd = _a.applyAtEnd,
|
|
3042
|
-
props = __rest
|
|
2880
|
+
props = __rest(_a, ["transition", "flip", "delay", "delayChildren", "staggerChildren", "staggerDirection", "afterChildren", "beforeChildren", "preTransition", "applyAtStart", "applyAtEnd"]);
|
|
3043
2881
|
return props;
|
|
3044
2882
|
};
|
|
3045
2883
|
var selectPoses = function (_a) {
|
|
@@ -3051,7 +2889,7 @@ var selectPoses = function (_a) {
|
|
|
3051
2889
|
onChange = _a.onChange,
|
|
3052
2890
|
passive = _a.passive,
|
|
3053
2891
|
initialPose = _a.initialPose,
|
|
3054
|
-
poses = __rest
|
|
2892
|
+
poses = __rest(_a, ["label", "props", "values", "parentValues", "ancestorValues", "onChange", "passive", "initialPose"]);
|
|
3055
2893
|
return poses;
|
|
3056
2894
|
};
|
|
3057
2895
|
var selectAllValues = function (values, selectValue) {
|
|
@@ -3151,7 +2989,7 @@ var createPoseSetter = function (setterProps) {
|
|
|
3151
2989
|
var _a = nextProps.delay,
|
|
3152
2990
|
delay = _a === void 0 ? 0 : _a;
|
|
3153
2991
|
var hasChildren = children.size;
|
|
3154
|
-
var baseTransitionProps = __assign
|
|
2992
|
+
var baseTransitionProps = __assign(__assign({}, props), nextProps);
|
|
3155
2993
|
var nextPose = poses[next];
|
|
3156
2994
|
var getChildAnimations = function () {
|
|
3157
2995
|
return hasChildren && propagate ? startChildAnimations(children, next, nextPose, baseTransitionProps) : [];
|
|
@@ -3177,11 +3015,11 @@ var createPoseSetter = function (setterProps) {
|
|
|
3177
3015
|
valuePoses.splice(insertionIndex, 0, next);
|
|
3178
3016
|
return insertionIndex === 0 ? new Promise(function (complete) {
|
|
3179
3017
|
var value = values.get(key);
|
|
3180
|
-
var transitionProps = __assign
|
|
3018
|
+
var transitionProps = __assign(__assign({}, baseTransitionProps), { key: key,
|
|
3181
3019
|
value: value });
|
|
3182
3020
|
var target = resolveTarget(value, resolveProp(nextPose[key], transitionProps));
|
|
3183
3021
|
if (activeActions.has(key)) stopAction(activeActions.get(key));
|
|
3184
|
-
var resolveTransitionProps = __assign
|
|
3022
|
+
var resolveTransitionProps = __assign(__assign({ to: target }, transitionProps), getTransitionProps(value, target, transitionProps));
|
|
3185
3023
|
var transition = resolveTransition(getTransition, key, value, resolveTransitionProps, convertTransitionDefinition, getInstantTransition);
|
|
3186
3024
|
var poseDelay = delay || resolveProp(nextPose.delay, transitionProps);
|
|
3187
3025
|
if (poseDelay) {
|
|
@@ -3205,7 +3043,7 @@ var createPoseSetter = function (setterProps) {
|
|
|
3205
3043
|
});
|
|
3206
3044
|
}
|
|
3207
3045
|
}
|
|
3208
|
-
return Promise.all(__spreadArrays
|
|
3046
|
+
return Promise.all(__spreadArrays(getParentAnimations(), getChildAnimations()));
|
|
3209
3047
|
};
|
|
3210
3048
|
};
|
|
3211
3049
|
|
|
@@ -3331,7 +3169,7 @@ var createValueMap = function (props) {
|
|
|
3331
3169
|
};
|
|
3332
3170
|
|
|
3333
3171
|
var applyDefaultTransition = function (pose, key, defaultTransitions) {
|
|
3334
|
-
return __assign
|
|
3172
|
+
return __assign(__assign({}, pose), { transition: defaultTransitions.has(key) ? defaultTransitions.get(key) : defaultTransitions.get('default') });
|
|
3335
3173
|
};
|
|
3336
3174
|
var generateTransitions = function (poses, defaultTransitions) {
|
|
3337
3175
|
Object.keys(poses).forEach(function (key) {
|
|
@@ -3385,7 +3223,7 @@ var poseFactory = function (_a) {
|
|
|
3385
3223
|
var poses = generateTransitions(selectPoses(config), defaultTransitions);
|
|
3386
3224
|
var _b = config.props,
|
|
3387
3225
|
props = _b === void 0 ? {} : _b;
|
|
3388
|
-
if (getDefaultProps) props = __assign
|
|
3226
|
+
if (getDefaultProps) props = __assign(__assign({}, getDefaultProps(config)), props);
|
|
3389
3227
|
var passive = config.passive,
|
|
3390
3228
|
userSetValues = config.values,
|
|
3391
3229
|
_c = config.initialPose,
|
|
@@ -3460,10 +3298,10 @@ var poseFactory = function (_a) {
|
|
|
3460
3298
|
},
|
|
3461
3299
|
has: has,
|
|
3462
3300
|
setProps: function (newProps) {
|
|
3463
|
-
return state.props = __assign
|
|
3301
|
+
return state.props = __assign(__assign({}, state.props), newProps);
|
|
3464
3302
|
},
|
|
3465
3303
|
_addChild: function (childConfig, factory) {
|
|
3466
|
-
var child = factory(__assign
|
|
3304
|
+
var child = factory(__assign(__assign({ initialPose: initialPose }, childConfig), { ancestorValues: __spreadArrays([{ label: config.label, values: values }], ancestorValues) }));
|
|
3467
3305
|
children.add(child);
|
|
3468
3306
|
return child;
|
|
3469
3307
|
},
|
|
@@ -3502,18 +3340,18 @@ See the Apache Version 2.0 License for specific language governing permissions
|
|
|
3502
3340
|
and limitations under the License.
|
|
3503
3341
|
***************************************************************************** */
|
|
3504
3342
|
|
|
3505
|
-
var __assign$
|
|
3506
|
-
__assign$
|
|
3343
|
+
var __assign$2 = function () {
|
|
3344
|
+
__assign$2 = Object.assign || function __assign(t) {
|
|
3507
3345
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
3508
3346
|
s = arguments[i];
|
|
3509
3347
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
3510
3348
|
}
|
|
3511
3349
|
return t;
|
|
3512
3350
|
};
|
|
3513
|
-
return __assign$
|
|
3351
|
+
return __assign$2.apply(this, arguments);
|
|
3514
3352
|
};
|
|
3515
3353
|
|
|
3516
|
-
function __rest$
|
|
3354
|
+
function __rest$1(s, e) {
|
|
3517
3355
|
var t = {};
|
|
3518
3356
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
3519
3357
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -3630,12 +3468,12 @@ var intelligentTransition = {
|
|
|
3630
3468
|
opacity: linearTween,
|
|
3631
3469
|
default: tween
|
|
3632
3470
|
};
|
|
3633
|
-
var dragAction = /*#__PURE__*/__assign$
|
|
3471
|
+
var dragAction = /*#__PURE__*/__assign$2( /*#__PURE__*/__assign$2({}, intelligentTransition), { x: /*#__PURE__*/createPointer(pointerX, 'left', 'right', BoundingBoxDimension.width), y: /*#__PURE__*/createPointer(pointerY, 'top', 'bottom', BoundingBoxDimension.height) });
|
|
3634
3472
|
var justAxis = function (_a) {
|
|
3635
3473
|
var from = _a.from;
|
|
3636
3474
|
return just(from);
|
|
3637
3475
|
};
|
|
3638
|
-
var intelligentDragEnd = /*#__PURE__*/__assign$
|
|
3476
|
+
var intelligentDragEnd = /*#__PURE__*/__assign$2( /*#__PURE__*/__assign$2({}, intelligentTransition), { x: justAxis, y: justAxis });
|
|
3639
3477
|
var defaultTransitions = /*#__PURE__*/new Map([['default', intelligentTransition], ['drag', dragAction], ['dragEnd', intelligentDragEnd]]);
|
|
3640
3478
|
|
|
3641
3479
|
var animationLookup = {
|
|
@@ -3705,7 +3543,7 @@ var getAction = function (v, _a, _b) {
|
|
|
3705
3543
|
var _c = _a.type,
|
|
3706
3544
|
type = _c === void 0 ? 'tween' : _c,
|
|
3707
3545
|
definedEase = _a.ease,
|
|
3708
|
-
def = __rest$
|
|
3546
|
+
def = __rest$1(_a, ["type", "ease"]);
|
|
3709
3547
|
invariant(animationLookup[type] !== undefined, "Invalid transition type '" + type + "'. Valid transition types are: tween, spring, decay, physics and keyframes.");
|
|
3710
3548
|
var ease;
|
|
3711
3549
|
if (type === 'tween') {
|
|
@@ -3730,7 +3568,7 @@ var getAction = function (v, _a, _b) {
|
|
|
3730
3568
|
velocity: velocity,
|
|
3731
3569
|
ease: ease
|
|
3732
3570
|
} : { ease: ease };
|
|
3733
|
-
return animationLookup[type](__assign$
|
|
3571
|
+
return animationLookup[type](__assign$2(__assign$2({}, baseProps), def));
|
|
3734
3572
|
};
|
|
3735
3573
|
var isAction = function (action$$1) {
|
|
3736
3574
|
return typeof action$$1.start !== 'undefined';
|
|
@@ -3815,7 +3653,7 @@ var pose = function (_a) {
|
|
|
3815
3653
|
min = def.min,
|
|
3816
3654
|
max = def.max,
|
|
3817
3655
|
round = def.round,
|
|
3818
|
-
remainingDef = __rest$
|
|
3656
|
+
remainingDef = __rest$1(def, ["delay", "min", "max", "round"]);
|
|
3819
3657
|
var action$$1 = getAction(val, remainingDef, props);
|
|
3820
3658
|
var outputPipe = [];
|
|
3821
3659
|
if (delay$$1) action$$1 = addActionDelay(delay$$1, action$$1);
|
|
@@ -3997,7 +3835,7 @@ var explicitlyFlipPose = function (state, nextPose) {
|
|
|
3997
3835
|
bottom = nextPose.bottom,
|
|
3998
3836
|
right = nextPose.right,
|
|
3999
3837
|
position = nextPose.position,
|
|
4000
|
-
remainingPose = __rest$
|
|
3838
|
+
remainingPose = __rest$1(nextPose, ["width", "height", "top", "left", "bottom", "right", "position"]);
|
|
4001
3839
|
var propsToSet = positionalProps.concat('position').reduce(function (acc, key) {
|
|
4002
3840
|
if (nextPose[key] !== undefined) {
|
|
4003
3841
|
acc[key] = resolveProp$1(nextPose[key], state.props);
|
|
@@ -4109,7 +3947,7 @@ var convertPositionalUnits = function (state, nextPose) {
|
|
|
4109
3947
|
changedPositionalKeys.push(key);
|
|
4110
3948
|
if (!applyAtEndHasBeenCopied) {
|
|
4111
3949
|
applyAtEndHasBeenCopied = true;
|
|
4112
|
-
nextPose.applyAtEnd = nextPose.applyAtEnd ? __assign$
|
|
3950
|
+
nextPose.applyAtEnd = nextPose.applyAtEnd ? __assign$2({}, nextPose.applyAtEnd) : {};
|
|
4113
3951
|
}
|
|
4114
3952
|
nextPose.applyAtEnd[key] = nextPose.applyAtEnd[key] || nextPose[key];
|
|
4115
3953
|
setValue(state, key, to);
|
|
@@ -4165,8 +4003,8 @@ var createPoseConfig = function (element, _a) {
|
|
|
4165
4003
|
focusable = _a.focusable,
|
|
4166
4004
|
pressable = _a.pressable,
|
|
4167
4005
|
dragBounds = _a.dragBounds,
|
|
4168
|
-
config = __rest$
|
|
4169
|
-
var poseConfig = __assign$
|
|
4006
|
+
config = __rest$1(_a, ["onDragStart", "onDragEnd", "onPressStart", "onPressEnd", "draggable", "hoverable", "focusable", "pressable", "dragBounds"]);
|
|
4007
|
+
var poseConfig = __assign$2(__assign$2({ flip: {} }, config), { props: __assign$2(__assign$2({}, config.props), { onDragStart: onDragStart,
|
|
4170
4008
|
onDragEnd: onDragEnd,
|
|
4171
4009
|
onPressStart: onPressStart,
|
|
4172
4010
|
onPressEnd: onPressEnd,
|
|
@@ -4180,8 +4018,8 @@ var createPoseConfig = function (element, _a) {
|
|
|
4180
4018
|
var _b = dragPoses(draggable),
|
|
4181
4019
|
drag = _b.drag,
|
|
4182
4020
|
dragEnd = _b.dragEnd;
|
|
4183
|
-
poseConfig.drag = __assign$
|
|
4184
|
-
poseConfig.dragEnd = __assign$
|
|
4021
|
+
poseConfig.drag = __assign$2(__assign$2({}, drag), poseConfig.drag);
|
|
4022
|
+
poseConfig.dragEnd = __assign$2(__assign$2({}, dragEnd), poseConfig.dragEnd);
|
|
4185
4023
|
}
|
|
4186
4024
|
return poseConfig;
|
|
4187
4025
|
};
|
|
@@ -4189,7 +4027,7 @@ var domPose = /*#__PURE__*/pose({
|
|
|
4189
4027
|
posePriority: ['drag', 'press', 'focus', 'hover'],
|
|
4190
4028
|
transformPose: function (_a, name, state) {
|
|
4191
4029
|
var flip = _a.flip,
|
|
4192
|
-
pose$$1 = __rest$
|
|
4030
|
+
pose$$1 = __rest$1(_a, ["flip"]);
|
|
4193
4031
|
if (isFlipPose(flip, name, state)) {
|
|
4194
4032
|
return flipPose(state, pose$$1);
|
|
4195
4033
|
} else if (isPositional(pose$$1)) {
|
|
@@ -4227,7 +4065,7 @@ var domPose = /*#__PURE__*/pose({
|
|
|
4227
4065
|
var props = _a.props,
|
|
4228
4066
|
activeActions = _a.activeActions;
|
|
4229
4067
|
var measure = props.dimensions.measure;
|
|
4230
|
-
var poserApi = __assign$
|
|
4068
|
+
var poserApi = __assign$2(__assign$2({}, api), { addChild: function (element, childConfig) {
|
|
4231
4069
|
return api._addChild(createPoseConfig(element, childConfig), domPose);
|
|
4232
4070
|
}, measure: measure, flip: function (op) {
|
|
4233
4071
|
if (op) {
|
|
@@ -7255,104 +7093,6 @@ var Imposter = function Imposter(_ref) {
|
|
|
7255
7093
|
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null)));
|
|
7256
7094
|
};
|
|
7257
7095
|
|
|
7258
|
-
/*! *****************************************************************************
|
|
7259
|
-
Copyright (c) Microsoft Corporation.
|
|
7260
|
-
|
|
7261
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
7262
|
-
purpose with or without fee is hereby granted.
|
|
7263
|
-
|
|
7264
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
7265
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
7266
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
7267
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
7268
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
7269
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
7270
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
7271
|
-
***************************************************************************** */
|
|
7272
|
-
/* global Reflect, Promise */
|
|
7273
|
-
|
|
7274
|
-
var extendStatics$2 = function(d, b) {
|
|
7275
|
-
extendStatics$2 = Object.setPrototypeOf ||
|
|
7276
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7277
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7278
|
-
return extendStatics$2(d, b);
|
|
7279
|
-
};
|
|
7280
|
-
|
|
7281
|
-
function __extends$2(d, b) {
|
|
7282
|
-
extendStatics$2(d, b);
|
|
7283
|
-
function __() { this.constructor = d; }
|
|
7284
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
7285
|
-
}
|
|
7286
|
-
|
|
7287
|
-
var __assign$7 = function() {
|
|
7288
|
-
__assign$7 = Object.assign || function __assign(t) {
|
|
7289
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
7290
|
-
s = arguments[i];
|
|
7291
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
7292
|
-
}
|
|
7293
|
-
return t;
|
|
7294
|
-
};
|
|
7295
|
-
return __assign$7.apply(this, arguments);
|
|
7296
|
-
};
|
|
7297
|
-
|
|
7298
|
-
function __rest$5(s, e) {
|
|
7299
|
-
var t = {};
|
|
7300
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
7301
|
-
t[p] = s[p];
|
|
7302
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7303
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7304
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
7305
|
-
t[p[i]] = s[p[i]];
|
|
7306
|
-
}
|
|
7307
|
-
return t;
|
|
7308
|
-
}
|
|
7309
|
-
|
|
7310
|
-
function __spreadArrays$2() {
|
|
7311
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
7312
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
7313
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
7314
|
-
r[k] = a[j];
|
|
7315
|
-
return r;
|
|
7316
|
-
}
|
|
7317
|
-
|
|
7318
|
-
/*! *****************************************************************************
|
|
7319
|
-
Copyright (c) Microsoft Corporation.
|
|
7320
|
-
|
|
7321
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
7322
|
-
purpose with or without fee is hereby granted.
|
|
7323
|
-
|
|
7324
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
7325
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
7326
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
7327
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
7328
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
7329
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
7330
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
7331
|
-
***************************************************************************** */
|
|
7332
|
-
|
|
7333
|
-
var __assign$8 = function() {
|
|
7334
|
-
__assign$8 = Object.assign || function __assign(t) {
|
|
7335
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
7336
|
-
s = arguments[i];
|
|
7337
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
7338
|
-
}
|
|
7339
|
-
return t;
|
|
7340
|
-
};
|
|
7341
|
-
return __assign$8.apply(this, arguments);
|
|
7342
|
-
};
|
|
7343
|
-
|
|
7344
|
-
function __rest$6(s, e) {
|
|
7345
|
-
var t = {};
|
|
7346
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
7347
|
-
t[p] = s[p];
|
|
7348
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7349
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7350
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
7351
|
-
t[p[i]] = s[p[i]];
|
|
7352
|
-
}
|
|
7353
|
-
return t;
|
|
7354
|
-
}
|
|
7355
|
-
|
|
7356
7096
|
var Observer$1 = /*#__PURE__*/function () {
|
|
7357
7097
|
function Observer(_a, observer) {
|
|
7358
7098
|
var _this = this;
|
|
@@ -7415,18 +7155,18 @@ var Action$1 = /*#__PURE__*/function () {
|
|
|
7415
7155
|
};
|
|
7416
7156
|
var _a = this.props,
|
|
7417
7157
|
init = _a.init,
|
|
7418
|
-
observerProps = __rest
|
|
7158
|
+
observerProps = __rest(_a, ["init"]);
|
|
7419
7159
|
var observer = createObserver$1(observerCandidate, observerProps, function () {
|
|
7420
7160
|
isComplete = true;
|
|
7421
7161
|
subscription.stop();
|
|
7422
7162
|
});
|
|
7423
7163
|
var api = init(observer);
|
|
7424
|
-
subscription = api ? __assign
|
|
7164
|
+
subscription = api ? __assign({}, subscription, api) : subscription;
|
|
7425
7165
|
if (isComplete) subscription.stop();
|
|
7426
7166
|
return subscription;
|
|
7427
7167
|
};
|
|
7428
7168
|
Action.prototype.applyMiddleware = function (middleware) {
|
|
7429
|
-
return this.create(__assign
|
|
7169
|
+
return this.create(__assign({}, this.props, { middleware: this.props.middleware ? [middleware].concat(this.props.middleware) : [middleware] }));
|
|
7430
7170
|
};
|
|
7431
7171
|
Action.prototype.pipe = function () {
|
|
7432
7172
|
var funcs = [];
|
|
@@ -7479,18 +7219,18 @@ var createAction$1 = function (action, props) {
|
|
|
7479
7219
|
var createUnitAction$1 = function (action, _a) {
|
|
7480
7220
|
var from = _a.from,
|
|
7481
7221
|
to = _a.to,
|
|
7482
|
-
props = __rest
|
|
7222
|
+
props = __rest(_a, ["from", "to"]);
|
|
7483
7223
|
var unitType = findUnitType$1(from) || findUnitType$1(to);
|
|
7484
7224
|
var transform = unitType.transform,
|
|
7485
7225
|
parse = unitType.parse;
|
|
7486
|
-
return action(__assign
|
|
7226
|
+
return action(__assign({}, props, { from: typeof from === 'string' ? parse(from) : from, to: typeof to === 'string' ? parse(to) : to })).pipe(transform);
|
|
7487
7227
|
};
|
|
7488
7228
|
var createMixerAction$1 = function (mixer) {
|
|
7489
7229
|
return function (action, _a) {
|
|
7490
7230
|
var from = _a.from,
|
|
7491
7231
|
to = _a.to,
|
|
7492
|
-
props = __rest
|
|
7493
|
-
return action(__assign
|
|
7232
|
+
props = __rest(_a, ["from", "to"]);
|
|
7233
|
+
return action(__assign({}, props, { from: 0, to: 1 })).pipe(mixer(from, to));
|
|
7494
7234
|
};
|
|
7495
7235
|
};
|
|
7496
7236
|
var createColorAction$1 = /*#__PURE__*/createMixerAction$1(mixColor);
|
|
@@ -7703,7 +7443,7 @@ var inertia = function (_a) {
|
|
|
7703
7443
|
};
|
|
7704
7444
|
var startSpring = function (props) {
|
|
7705
7445
|
isSpring = true;
|
|
7706
|
-
startAnimation(vectorSpring$1(__assign
|
|
7446
|
+
startAnimation(vectorSpring$1(__assign({}, props, { to: isLessThanMin(props.from) ? min : max, stiffness: bounceStiffness, damping: bounceDamping, restDelta: restDelta })));
|
|
7707
7447
|
};
|
|
7708
7448
|
if (isOutOfBounds(from)) {
|
|
7709
7449
|
startSpring({ from: from, velocity: velocity });
|
|
@@ -7935,7 +7675,7 @@ var keyframes$1 = function (_a) {
|
|
|
7935
7675
|
ease = _b === void 0 ? linear : _b,
|
|
7936
7676
|
times = _a.times,
|
|
7937
7677
|
values = _a.values,
|
|
7938
|
-
tweenProps = __rest
|
|
7678
|
+
tweenProps = __rest(_a, ["easings", "ease", "times", "values"]);
|
|
7939
7679
|
easings = Array.isArray(easings) ? easings : defaultEasings$1(values, easings);
|
|
7940
7680
|
times = times || defaultTimings$1(values);
|
|
7941
7681
|
var scrubbers = easings.map(function (easing, i) {
|
|
@@ -7945,7 +7685,7 @@ var keyframes$1 = function (_a) {
|
|
|
7945
7685
|
ease: easing
|
|
7946
7686
|
});
|
|
7947
7687
|
});
|
|
7948
|
-
return tween$1(__assign
|
|
7688
|
+
return tween$1(__assign({}, tweenProps, { ease: ease })).applyMiddleware(function (update) {
|
|
7949
7689
|
return interpolateScrubbers$1(times, scrubbers, update);
|
|
7950
7690
|
});
|
|
7951
7691
|
};
|
|
@@ -8147,7 +7887,7 @@ var MotionValue = /** @class */ (function () {
|
|
|
8147
7887
|
*/
|
|
8148
7888
|
MotionValue.prototype.addChild = function (config) {
|
|
8149
7889
|
if (config === void 0) { config = {}; }
|
|
8150
|
-
var child = new MotionValue(this.current, __assign
|
|
7890
|
+
var child = new MotionValue(this.current, __assign({ parent: this }, config));
|
|
8151
7891
|
if (!this.children)
|
|
8152
7892
|
this.children = new Set();
|
|
8153
7893
|
this.children.add(child);
|
|
@@ -8589,7 +8329,7 @@ var buildStyleAttr = function (values, styleProp, isStatic) {
|
|
|
8589
8329
|
? transformTemplate({}, styleProp.transform)
|
|
8590
8330
|
: transformTemplate;
|
|
8591
8331
|
}
|
|
8592
|
-
return buildStyleProperty(__assign
|
|
8332
|
+
return buildStyleProperty(__assign(__assign({}, styleProp), motionValueStyles), !isStatic);
|
|
8593
8333
|
};
|
|
8594
8334
|
var useMotionStyles = function (values, styleProp, isStatic, transformValues) {
|
|
8595
8335
|
if (styleProp === void 0) { styleProp = {}; }
|
|
@@ -8643,7 +8383,7 @@ var auto$1 = {
|
|
|
8643
8383
|
parse: function (v) { return v; },
|
|
8644
8384
|
};
|
|
8645
8385
|
var dimensionTypes = [number, px, percent, degrees, vw, vh, auto$1];
|
|
8646
|
-
var valueTypes$1 = __spreadArrays
|
|
8386
|
+
var valueTypes$1 = __spreadArrays(dimensionTypes, [color, complex]);
|
|
8647
8387
|
var testValueType$1 = function (v) { return function (type) { return type.test(v); }; };
|
|
8648
8388
|
var getDimensionValueType = function (v) {
|
|
8649
8389
|
return dimensionTypes.find(testValueType$1(v));
|
|
@@ -8696,7 +8436,7 @@ var getDefaultTransition = function (valueKey, to) {
|
|
|
8696
8436
|
transitionFactory =
|
|
8697
8437
|
defaultTransitions$1[valueKey] || defaultTransitions$1.default;
|
|
8698
8438
|
}
|
|
8699
|
-
return __assign
|
|
8439
|
+
return __assign({ to: to }, transitionFactory(to));
|
|
8700
8440
|
};
|
|
8701
8441
|
|
|
8702
8442
|
/**
|
|
@@ -8792,9 +8532,9 @@ var transitionOptionParser = {
|
|
|
8792
8532
|
return opts;
|
|
8793
8533
|
},
|
|
8794
8534
|
keyframes: function (_a) {
|
|
8795
|
-
var from = _a.from, to = _a.to, velocity = _a.velocity, opts = __rest
|
|
8535
|
+
var from = _a.from, to = _a.to, velocity = _a.velocity, opts = __rest(_a, ["from", "to", "velocity"]);
|
|
8796
8536
|
if (opts.values && opts.values[0] === null) {
|
|
8797
|
-
var values = __spreadArrays
|
|
8537
|
+
var values = __spreadArrays(opts.values);
|
|
8798
8538
|
values[0] = from;
|
|
8799
8539
|
opts.values = values;
|
|
8800
8540
|
}
|
|
@@ -8808,7 +8548,7 @@ var transitionOptionParser = {
|
|
|
8808
8548
|
},
|
|
8809
8549
|
};
|
|
8810
8550
|
var isTransitionDefined = function (_a) {
|
|
8811
|
-
var when = _a.when, delay = _a.delay, delayChildren = _a.delayChildren, staggerChildren = _a.staggerChildren, staggerDirection = _a.staggerDirection, transition = __rest
|
|
8551
|
+
var when = _a.when, delay = _a.delay, delayChildren = _a.delayChildren, staggerChildren = _a.staggerChildren, staggerDirection = _a.staggerDirection, transition = __rest(_a, ["when", "delay", "delayChildren", "staggerChildren", "staggerDirection"]);
|
|
8812
8552
|
return Object.keys(transition).length;
|
|
8813
8553
|
};
|
|
8814
8554
|
var getTransitionDefinition = function (key, to, transitionDefinition) {
|
|
@@ -8818,7 +8558,7 @@ var getTransitionDefinition = function (key, to, transitionDefinition) {
|
|
|
8818
8558
|
// and see if there's any props remaining
|
|
8819
8559
|
if (transitionDefinition === undefined ||
|
|
8820
8560
|
!isTransitionDefined(transitionDefinition)) {
|
|
8821
|
-
return __assign
|
|
8561
|
+
return __assign({ delay: delay }, getDefaultTransition(key, to));
|
|
8822
8562
|
}
|
|
8823
8563
|
var valueTransitionDefinition = transitionDefinition[key] ||
|
|
8824
8564
|
transitionDefinition.default ||
|
|
@@ -8835,12 +8575,12 @@ var getTransitionDefinition = function (key, to, transitionDefinition) {
|
|
|
8835
8575
|
};
|
|
8836
8576
|
}
|
|
8837
8577
|
else if (isKeyframesTarget(to)) {
|
|
8838
|
-
return __assign
|
|
8578
|
+
return __assign(__assign({ values: to, duration: 0.8, delay: delay, ease: "linear" }, valueTransitionDefinition), {
|
|
8839
8579
|
// This animation must be keyframes if we're animating through an array
|
|
8840
8580
|
type: "keyframes" });
|
|
8841
8581
|
}
|
|
8842
8582
|
else {
|
|
8843
|
-
return __assign
|
|
8583
|
+
return __assign({ type: "tween", to: to,
|
|
8844
8584
|
delay: delay }, valueTransitionDefinition);
|
|
8845
8585
|
}
|
|
8846
8586
|
};
|
|
@@ -8857,12 +8597,12 @@ var getAnimation = function (key, value, target, transition) {
|
|
|
8857
8597
|
// for instance 100 to #fff. This might live better in Popmotion.
|
|
8858
8598
|
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.");
|
|
8859
8599
|
// Parse the `transition` prop and return options for the Popmotion animation
|
|
8860
|
-
var _a = getTransitionDefinition(key, target, transition), _b = _a.type, type = _b === void 0 ? "tween" : _b, transitionDefinition = __rest
|
|
8600
|
+
var _a = getTransitionDefinition(key, target, transition), _b = _a.type, type = _b === void 0 ? "tween" : _b, transitionDefinition = __rest(_a, ["type"]);
|
|
8861
8601
|
// If this is an animatable pair of values, return an animation, otherwise use `just`
|
|
8862
8602
|
var actionFactory = isOriginAnimatable && isTargetAnimatable
|
|
8863
8603
|
? transitions[type]
|
|
8864
8604
|
: just$1;
|
|
8865
|
-
var opts = preprocessOptions(type, __assign
|
|
8605
|
+
var opts = preprocessOptions(type, __assign({ from: origin, velocity: value.getVelocity() }, transitionDefinition));
|
|
8866
8606
|
// Convert duration from Framer Motion's seconds into Popmotion's milliseconds
|
|
8867
8607
|
if (isDurationAnimation(opts)) {
|
|
8868
8608
|
if (opts.duration) {
|
|
@@ -8880,10 +8620,10 @@ var getAnimation = function (key, value, target, transition) {
|
|
|
8880
8620
|
* @internal
|
|
8881
8621
|
*/
|
|
8882
8622
|
function startAnimation(key, value, target, _a) {
|
|
8883
|
-
var _b = _a.delay, delay$1$1 = _b === void 0 ? 0 : _b, transition = __rest
|
|
8623
|
+
var _b = _a.delay, delay$1$1 = _b === void 0 ? 0 : _b, transition = __rest(_a, ["delay"]);
|
|
8884
8624
|
return value.start(function (complete) {
|
|
8885
8625
|
var activeAnimation;
|
|
8886
|
-
var _a = getAnimation(key, value, target, transition), animationFactory = _a[0], _b = _a[1], valueDelay = _b.delay, options = __rest
|
|
8626
|
+
var _a = getAnimation(key, value, target, transition), animationFactory = _a[0], _b = _a[1], valueDelay = _b.delay, options = __rest(_b, ["delay"]);
|
|
8887
8627
|
if (valueDelay !== undefined) {
|
|
8888
8628
|
delay$1$1 = valueDelay;
|
|
8889
8629
|
}
|
|
@@ -9029,7 +8769,7 @@ var ValueAnimationControls = /** @class */ (function () {
|
|
|
9029
8769
|
var _this = this;
|
|
9030
8770
|
var _b = _a === void 0 ? {} : _a, _c = _b.isActive, isActive = _c === void 0 ? new Set() : _c, priority = _b.priority;
|
|
9031
8771
|
var _d = this.resolveVariant(definition), target = _d.target, transitionEnd = _d.transitionEnd;
|
|
9032
|
-
target = this.transformValues(__assign
|
|
8772
|
+
target = this.transformValues(__assign(__assign({}, target), transitionEnd));
|
|
9033
8773
|
return Object.keys(target).forEach(function (key) {
|
|
9034
8774
|
if (isActive.has(key))
|
|
9035
8775
|
return;
|
|
@@ -9119,7 +8859,7 @@ var ValueAnimationControls = /** @class */ (function () {
|
|
|
9119
8859
|
// resolve current and velocity
|
|
9120
8860
|
variant = variant(this.props.custom, getCurrent$1(this.values), getVelocity(this.values));
|
|
9121
8861
|
}
|
|
9122
|
-
var _a = variant.transition, transition = _a === void 0 ? this.defaultTransition : _a, transitionEnd = variant.transitionEnd, target = __rest
|
|
8862
|
+
var _a = variant.transition, transition = _a === void 0 ? this.defaultTransition : _a, transitionEnd = variant.transitionEnd, target = __rest(variant, ["transition", "transitionEnd"]);
|
|
9123
8863
|
return { transition: transition, transitionEnd: transitionEnd, target: target };
|
|
9124
8864
|
};
|
|
9125
8865
|
/**
|
|
@@ -9210,7 +8950,7 @@ var ValueAnimationControls = /** @class */ (function () {
|
|
|
9210
8950
|
ValueAnimationControls.prototype.applyVariantLabels = function (variantLabelList) {
|
|
9211
8951
|
var _this = this;
|
|
9212
8952
|
var isActive = new Set();
|
|
9213
|
-
var reversedList = __spreadArrays
|
|
8953
|
+
var reversedList = __spreadArrays(variantLabelList).reverse();
|
|
9214
8954
|
reversedList.forEach(function (key) {
|
|
9215
8955
|
var _a = _this.resolveVariant(_this.variants[key]), target = _a.target, transitionEnd = _a.transitionEnd;
|
|
9216
8956
|
if (transitionEnd) {
|
|
@@ -9281,7 +9021,7 @@ var ValueAnimationControls = /** @class */ (function () {
|
|
|
9281
9021
|
if (this.isAnimating.has(key))
|
|
9282
9022
|
continue;
|
|
9283
9023
|
this.isAnimating.add(key);
|
|
9284
|
-
animations.push(startAnimation(key, value, valueTarget, __assign
|
|
9024
|
+
animations.push(startAnimation(key, value, valueTarget, __assign({ delay: delay }, transition)));
|
|
9285
9025
|
}
|
|
9286
9026
|
var allAnimations = Promise.all(animations);
|
|
9287
9027
|
return transitionEnd
|
|
@@ -9292,7 +9032,7 @@ var ValueAnimationControls = /** @class */ (function () {
|
|
|
9292
9032
|
};
|
|
9293
9033
|
ValueAnimationControls.prototype.animateVariantLabels = function (variantLabels, opts) {
|
|
9294
9034
|
var _this = this;
|
|
9295
|
-
var animations = __spreadArrays
|
|
9035
|
+
var animations = __spreadArrays(variantLabels).reverse()
|
|
9296
9036
|
.map(function (label) { return _this.animateVariant(label, opts); });
|
|
9297
9037
|
return Promise.all(animations);
|
|
9298
9038
|
};
|
|
@@ -9736,7 +9476,7 @@ function useValueAnimationControls(config, props, subscribeToParentControls) {
|
|
|
9736
9476
|
// Remove reference to onAnimationComplete from controls. All the MotionValues
|
|
9737
9477
|
// are unsubscribed from this component separately. We let animations run out
|
|
9738
9478
|
// as they might be animating other components.
|
|
9739
|
-
var onAnimationComplete = props.onAnimationComplete, unmountProps = __rest
|
|
9479
|
+
var onAnimationComplete = props.onAnimationComplete, unmountProps = __rest(props, ["onAnimationComplete"]);
|
|
9740
9480
|
controls.setProps(unmountProps);
|
|
9741
9481
|
parentControls && parentControls.removeChild(controls);
|
|
9742
9482
|
};
|
|
@@ -10221,7 +9961,7 @@ var PanSession = /** @class */ (function () {
|
|
|
10221
9961
|
return;
|
|
10222
9962
|
var point = info.point;
|
|
10223
9963
|
var timestamp = getFrameData().timestamp;
|
|
10224
|
-
_this.history.push(__assign
|
|
9964
|
+
_this.history.push(__assign(__assign({}, point), { timestamp: timestamp }));
|
|
10225
9965
|
var _a = _this.handlers, onStart = _a.onStart, onMove = _a.onMove;
|
|
10226
9966
|
if (!isPanStarted) {
|
|
10227
9967
|
onStart && onStart(_this.lastMoveEvent, info);
|
|
@@ -10238,7 +9978,7 @@ var PanSession = /** @class */ (function () {
|
|
|
10238
9978
|
var initialInfo = transformPoint(info, this.transformPagePoint);
|
|
10239
9979
|
var point = initialInfo.point;
|
|
10240
9980
|
var timestamp = getFrameData().timestamp;
|
|
10241
|
-
this.history = [__assign
|
|
9981
|
+
this.history = [__assign(__assign({}, point), { timestamp: timestamp })];
|
|
10242
9982
|
var onSessionStart = handlers.onSessionStart;
|
|
10243
9983
|
onSessionStart &&
|
|
10244
9984
|
onSessionStart(event, getPanInfo(initialInfo, this.history));
|
|
@@ -10566,7 +10306,7 @@ var Gestures = {
|
|
|
10566
10306
|
return gestureProps.some(function (key) { return props.hasOwnProperty(key); });
|
|
10567
10307
|
},
|
|
10568
10308
|
Component: makeRenderlessComponent(function (_a) {
|
|
10569
|
-
var innerRef = _a.innerRef, props = __rest
|
|
10309
|
+
var innerRef = _a.innerRef, props = __rest(_a, ["innerRef"]);
|
|
10570
10310
|
useGestures(props, innerRef);
|
|
10571
10311
|
}),
|
|
10572
10312
|
};
|
|
@@ -10806,8 +10546,8 @@ var ComponentDragControls = /** @class */ (function () {
|
|
|
10806
10546
|
};
|
|
10807
10547
|
ComponentDragControls.prototype.updateProps = function (_a) {
|
|
10808
10548
|
var _this = this;
|
|
10809
|
-
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
|
|
10810
|
-
this.props = __assign
|
|
10549
|
+
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"]);
|
|
10550
|
+
this.props = __assign({ drag: drag,
|
|
10811
10551
|
dragDirectionLock: dragDirectionLock,
|
|
10812
10552
|
dragPropagation: dragPropagation,
|
|
10813
10553
|
dragConstraints: dragConstraints,
|
|
@@ -10863,7 +10603,7 @@ var ComponentDragControls = /** @class */ (function () {
|
|
|
10863
10603
|
var bounceStiffness = dragElastic ? 200 : 1000000;
|
|
10864
10604
|
var bounceDamping = dragElastic ? 40 : 10000000;
|
|
10865
10605
|
var animationControls = _dragTransitionControls || _this.controls;
|
|
10866
|
-
var inertia = __assign
|
|
10606
|
+
var inertia = __assign(__assign({ type: "inertia", velocity: dragMomentum ? velocity[axis] : 0, bounceStiffness: bounceStiffness,
|
|
10867
10607
|
bounceDamping: bounceDamping, timeConstant: 750, restDelta: 1 }, dragTransition), transition);
|
|
10868
10608
|
var externalAxisMotionValue = axis === "x" ? _dragValueX : _dragValueY;
|
|
10869
10609
|
// If we're not animating on an externally-provided `MotionValue` we can use the
|
|
@@ -10944,7 +10684,7 @@ function bothAxis(handler) {
|
|
|
10944
10684
|
return [handler("x"), handler("y")];
|
|
10945
10685
|
}
|
|
10946
10686
|
function convertPanToDrag(info, point) {
|
|
10947
|
-
return __assign
|
|
10687
|
+
return __assign(__assign({}, info), { point: {
|
|
10948
10688
|
x: point.x ? point.x.get() : 0,
|
|
10949
10689
|
y: point.y ? point.y.get() : 0,
|
|
10950
10690
|
} });
|
|
@@ -11055,7 +10795,7 @@ function useDrag(props, ref, values, controls) {
|
|
|
11055
10795
|
var groupDragControls = props.dragControls;
|
|
11056
10796
|
var transformPagePoint = React.useContext(MotionPluginContext).transformPagePoint;
|
|
11057
10797
|
var dragControls = useConstant(function () { return new ComponentDragControls({ ref: ref, values: values, controls: controls }); });
|
|
11058
|
-
dragControls.updateProps(__assign
|
|
10798
|
+
dragControls.updateProps(__assign(__assign({}, props), { transformPagePoint: transformPagePoint }));
|
|
11059
10799
|
React.useEffect(function () { return groupDragControls && groupDragControls.subscribe(dragControls); }, [dragControls]);
|
|
11060
10800
|
React.useEffect(function () { return dragControls.mount(ref.current); }, []);
|
|
11061
10801
|
}
|
|
@@ -11064,7 +10804,7 @@ var Drag = {
|
|
|
11064
10804
|
key: "drag",
|
|
11065
10805
|
shouldRender: function (props) { return !!props.drag; },
|
|
11066
10806
|
Component: makeRenderlessComponent(function (_a) {
|
|
11067
|
-
var innerRef = _a.innerRef, values = _a.values, controls = _a.controls, props = __rest
|
|
10807
|
+
var innerRef = _a.innerRef, values = _a.values, controls = _a.controls, props = __rest(_a, ["innerRef", "values", "controls"]);
|
|
11068
10808
|
return useDrag(props, innerRef, values, controls);
|
|
11069
10809
|
}),
|
|
11070
10810
|
};
|
|
@@ -11116,14 +10856,14 @@ function getVariableValue(current, element, depth) {
|
|
|
11116
10856
|
* @internal
|
|
11117
10857
|
*/
|
|
11118
10858
|
function resolveCSSVariables(values, ref, _a, transitionEnd) {
|
|
11119
|
-
var target = __rest
|
|
10859
|
+
var target = __rest(_a, []);
|
|
11120
10860
|
var element = ref.current;
|
|
11121
10861
|
if (!(element instanceof HTMLElement))
|
|
11122
10862
|
return { target: target, transitionEnd: transitionEnd };
|
|
11123
10863
|
// If `transitionEnd` isn't `undefined`, clone it. We could clone `target` and `transitionEnd`
|
|
11124
10864
|
// only if they change but I think this reads clearer and this isn't a performance-critical path.
|
|
11125
10865
|
if (transitionEnd) {
|
|
11126
|
-
transitionEnd = __assign
|
|
10866
|
+
transitionEnd = __assign({}, transitionEnd);
|
|
11127
10867
|
}
|
|
11128
10868
|
// Go through existing `MotionValue`s and ensure any existing CSS variables are resolved
|
|
11129
10869
|
values.forEach(function (value) {
|
|
@@ -11280,8 +11020,8 @@ var convertChangedValueTypes = function (target, values, element, elementStyler,
|
|
|
11280
11020
|
};
|
|
11281
11021
|
var checkAndConvertChangedValueTypes = function (values, ref, target, transitionEnd) {
|
|
11282
11022
|
if (transitionEnd === void 0) { transitionEnd = {}; }
|
|
11283
|
-
target = __assign
|
|
11284
|
-
transitionEnd = __assign
|
|
11023
|
+
target = __assign({}, target);
|
|
11024
|
+
transitionEnd = __assign({}, transitionEnd);
|
|
11285
11025
|
var element = ref.current;
|
|
11286
11026
|
var elementStyler = index(element);
|
|
11287
11027
|
var targetPositionalKeys = Object.keys(target).filter(isPositionalKey$1);
|
|
@@ -11509,7 +11249,7 @@ function calcAxisDelta(prev, next, names) {
|
|
|
11509
11249
|
return delta;
|
|
11510
11250
|
}
|
|
11511
11251
|
function calcDelta(prev, next) {
|
|
11512
|
-
var delta = __assign
|
|
11252
|
+
var delta = __assign(__assign({}, calcAxisDelta(prev, next, axisLabels.x)), calcAxisDelta(prev, next, axisLabels.y));
|
|
11513
11253
|
return delta;
|
|
11514
11254
|
}
|
|
11515
11255
|
var offset = {
|
|
@@ -11553,7 +11293,7 @@ function getTransition(_a) {
|
|
|
11553
11293
|
return layoutTransition || positionTransition;
|
|
11554
11294
|
}
|
|
11555
11295
|
var LayoutAnimation = /** @class */ (function (_super) {
|
|
11556
|
-
__extends
|
|
11296
|
+
__extends(LayoutAnimation, _super);
|
|
11557
11297
|
function LayoutAnimation() {
|
|
11558
11298
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
11559
11299
|
}
|
|
@@ -11620,11 +11360,11 @@ var LayoutAnimation = /** @class */ (function (_super) {
|
|
|
11620
11360
|
if (!delta[deltaKey])
|
|
11621
11361
|
return;
|
|
11622
11362
|
var baseTransition = typeof transitionDefinition === "boolean"
|
|
11623
|
-
? __assign
|
|
11363
|
+
? __assign({}, getDefaultLayoutTransition(isPositionOnly)) : transitionDefinition;
|
|
11624
11364
|
var value = values.get(transformKey, targetValue);
|
|
11625
11365
|
var velocity = value.getVelocity();
|
|
11626
11366
|
transition[transformKey] = baseTransition[transformKey]
|
|
11627
|
-
? __assign
|
|
11367
|
+
? __assign({}, baseTransition[transformKey]) : __assign({}, baseTransition);
|
|
11628
11368
|
if (transition[transformKey].velocity === undefined) {
|
|
11629
11369
|
transition[transformKey].velocity = velocity || 0;
|
|
11630
11370
|
}
|
|
@@ -11765,9 +11505,9 @@ var hasUpdated = function (prev, next) {
|
|
|
11765
11505
|
};
|
|
11766
11506
|
function targetWithoutTransition(_a, mergeTransitionEnd) {
|
|
11767
11507
|
if (mergeTransitionEnd === void 0) { mergeTransitionEnd = false; }
|
|
11768
|
-
var transition = _a.transition, transitionEnd = _a.transitionEnd, target = __rest
|
|
11508
|
+
var transition = _a.transition, transitionEnd = _a.transitionEnd, target = __rest(_a, ["transition", "transitionEnd"]);
|
|
11769
11509
|
return mergeTransitionEnd
|
|
11770
|
-
? __assign
|
|
11510
|
+
? __assign(__assign({}, target), transitionEnd)
|
|
11771
11511
|
: target;
|
|
11772
11512
|
}
|
|
11773
11513
|
/**
|
|
@@ -11819,9 +11559,9 @@ function useAnimateProp(targetAndTransition, controls, values, defaultTransition
|
|
|
11819
11559
|
}
|
|
11820
11560
|
}
|
|
11821
11561
|
isInitialRender.current = false;
|
|
11822
|
-
prevValues.current = __assign
|
|
11562
|
+
prevValues.current = __assign(__assign({}, prevValues.current), finalTarget);
|
|
11823
11563
|
if (Object.keys(targetToAnimate).length) {
|
|
11824
|
-
controls.start(__assign
|
|
11564
|
+
controls.start(__assign(__assign({}, targetToAnimate), { transition: targetAndTransition.transition || defaultTransition, transitionEnd: targetAndTransition.transitionEnd }));
|
|
11825
11565
|
}
|
|
11826
11566
|
}, [targetAndTransition]);
|
|
11827
11567
|
}
|
|
@@ -11995,7 +11735,7 @@ var Exit = {
|
|
|
11995
11735
|
React.useEffect(function () {
|
|
11996
11736
|
if (!isPresent) {
|
|
11997
11737
|
if (!isPlayingExitAnimation.current && exit) {
|
|
11998
|
-
controls.setProps(__assign
|
|
11738
|
+
controls.setProps(__assign(__assign({}, props), { custom: custom }));
|
|
11999
11739
|
controls.start(exit).then(onExitComplete);
|
|
12000
11740
|
}
|
|
12001
11741
|
isPlayingExitAnimation.current = true;
|
|
@@ -12066,7 +11806,7 @@ var buildHTMLProps = function (values, style, isStatic, isDrag) {
|
|
|
12066
11806
|
var buildSVGProps = function (values, style) {
|
|
12067
11807
|
var motionValueStyles = resolveCurrent(values);
|
|
12068
11808
|
var props = buildSVGAttrs(motionValueStyles, undefined, undefined, undefined, undefined, false);
|
|
12069
|
-
props.style = __assign
|
|
11809
|
+
props.style = __assign(__assign({}, style), props.style);
|
|
12070
11810
|
return props;
|
|
12071
11811
|
};
|
|
12072
11812
|
var functionalityComponents = [Layout, Drag, Gestures, Exit];
|
|
@@ -12085,7 +11825,7 @@ function createDomMotionConfig(Component) {
|
|
|
12085
11825
|
var staticVisualStyles = isSVG
|
|
12086
11826
|
? buildSVGProps(values, style)
|
|
12087
11827
|
: buildHTMLProps(values, style, isStatic, !!props.drag);
|
|
12088
|
-
return React.createElement(Component, __assign
|
|
11828
|
+
return React.createElement(Component, __assign(__assign(__assign({}, forwardedProps), { ref: ref }), staticVisualStyles));
|
|
12089
11829
|
},
|
|
12090
11830
|
/**
|
|
12091
11831
|
* loadFunctionalityComponents gets used by the `motion` component
|
|
@@ -12116,7 +11856,7 @@ function createDomMotionConfig(Component) {
|
|
|
12116
11856
|
for (var i = 0; i < numFunctionalityComponents; i++) {
|
|
12117
11857
|
var _a = functionalityComponents[i], shouldRender = _a.shouldRender, key = _a.key, Component_1 = _a.Component;
|
|
12118
11858
|
if (shouldRender(props, context)) {
|
|
12119
|
-
activeComponents.push(React.createElement(Component_1, __assign
|
|
11859
|
+
activeComponents.push(React.createElement(Component_1, __assign({ key: key }, props, { parentContext: context, values: values, controls: controls, innerRef: ref })));
|
|
12120
11860
|
}
|
|
12121
11861
|
}
|
|
12122
11862
|
return activeComponents;
|
|
@@ -12168,7 +11908,7 @@ var svgMotionComponents = svgElements.reduce(function (acc, Component) {
|
|
|
12168
11908
|
*
|
|
12169
11909
|
* @public
|
|
12170
11910
|
*/
|
|
12171
|
-
var motion = __assign
|
|
11911
|
+
var motion = __assign(__assign({
|
|
12172
11912
|
/**
|
|
12173
11913
|
* Convert a custom React component into a `motion` component.
|
|
12174
11914
|
*
|
|
@@ -12220,7 +11960,7 @@ var PresenceChild = function (_a) {
|
|
|
12220
11960
|
return function () { return numPresenceChildren.current--; };
|
|
12221
11961
|
};
|
|
12222
11962
|
}, [isPresent]);
|
|
12223
|
-
return (React.createElement(PresenceContext.Provider, { value: __assign
|
|
11963
|
+
return (React.createElement(PresenceContext.Provider, { value: __assign(__assign({}, context), { register: register }) }, children));
|
|
12224
11964
|
};
|
|
12225
11965
|
|
|
12226
11966
|
function getChildKey(child) {
|
|
@@ -12336,7 +12076,7 @@ var AnimatePresence = function (_a) {
|
|
|
12336
12076
|
return (React.createElement(React.Fragment, null, filteredChildren.map(function (child) { return (React.createElement(PresenceChild, { key: getChildKey(child), isPresent: true, initial: initial ? undefined : false }, child)); })));
|
|
12337
12077
|
}
|
|
12338
12078
|
// If this is a subsequent render, deal with entering and exiting children
|
|
12339
|
-
var childrenToRender = __spreadArrays
|
|
12079
|
+
var childrenToRender = __spreadArrays(filteredChildren);
|
|
12340
12080
|
// Diff the keys of the currently-present and target children to update our
|
|
12341
12081
|
// exiting list.
|
|
12342
12082
|
var presentKeys = presentChildren.current.map(getChildKey);
|
|
@@ -18857,52 +18597,6 @@ var AgencyIcon = function AgencyIcon(_ref) {
|
|
|
18857
18597
|
})));
|
|
18858
18598
|
};
|
|
18859
18599
|
|
|
18860
|
-
var _excluded$m = ["width", "height", "color"];
|
|
18861
|
-
var PersonIcon = function PersonIcon(_ref) {
|
|
18862
|
-
var _ref$width = _ref.width,
|
|
18863
|
-
width = _ref$width === void 0 ? "20" : _ref$width,
|
|
18864
|
-
_ref$height = _ref.height,
|
|
18865
|
-
height = _ref$height === void 0 ? "21" : _ref$height,
|
|
18866
|
-
_ref$color = _ref.color,
|
|
18867
|
-
color = _ref$color === void 0 ? CHARADE_GREY : _ref$color,
|
|
18868
|
-
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
18869
|
-
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
18870
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
18871
|
-
width: width,
|
|
18872
|
-
height: height,
|
|
18873
|
-
viewBox: "0 0 ".concat(width, " ").concat(height),
|
|
18874
|
-
fill: "none"
|
|
18875
|
-
}, props), /*#__PURE__*/React__default.createElement("path", {
|
|
18876
|
-
fillRule: "evenodd",
|
|
18877
|
-
clipRule: "evenodd",
|
|
18878
|
-
d: "M15.25 4.8125H4.75C4.50838 4.8125 4.3125 5.00838 4.3125 5.25V15.75C4.3125 15.9916 4.50838 16.1875 4.75 16.1875H5.625V14.7778C5.625 12.8985 7.02411 11.375 8.75 11.375H11.25C12.9759 11.375 14.375 12.8985 14.375 14.7778V16.1875H15.25C15.4916 16.1875 15.6875 15.9916 15.6875 15.75V5.25C15.6875 5.00838 15.4916 4.8125 15.25 4.8125ZM4.75 17.5H5.625H14.375H15.25C16.2165 17.5 17 16.7165 17 15.75V5.25C17 4.2835 16.2165 3.5 15.25 3.5H4.75C3.7835 3.5 3 4.2835 3 5.25V15.75C3 16.7165 3.7835 17.5 4.75 17.5ZM10 10.5C11.2081 10.5 12.1875 9.52062 12.1875 8.3125C12.1875 7.10438 11.2081 6.125 10 6.125C8.79188 6.125 7.8125 7.10438 7.8125 8.3125C7.8125 9.52062 8.79188 10.5 10 10.5Z",
|
|
18879
|
-
fill: color
|
|
18880
|
-
}));
|
|
18881
|
-
};
|
|
18882
|
-
|
|
18883
|
-
var _excluded$n = ["width", "height", "color"];
|
|
18884
|
-
var PaymentStatusIcon = function PaymentStatusIcon(_ref) {
|
|
18885
|
-
var _ref$width = _ref.width,
|
|
18886
|
-
width = _ref$width === void 0 ? "20" : _ref$width,
|
|
18887
|
-
_ref$height = _ref.height,
|
|
18888
|
-
height = _ref$height === void 0 ? "21" : _ref$height,
|
|
18889
|
-
_ref$color = _ref.color,
|
|
18890
|
-
color = _ref$color === void 0 ? CHARADE_GREY : _ref$color,
|
|
18891
|
-
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
18892
|
-
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
18893
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
18894
|
-
width: width,
|
|
18895
|
-
height: height,
|
|
18896
|
-
viewBox: "0 0 ".concat(width, " ").concat(height),
|
|
18897
|
-
fill: "none"
|
|
18898
|
-
}, props), /*#__PURE__*/React__default.createElement("path", {
|
|
18899
|
-
fillRule: "evenodd",
|
|
18900
|
-
clipRule: "evenodd",
|
|
18901
|
-
d: "M10.875 4.375C10.875 3.89175 11.2668 3.5 11.75 3.5H16.125C16.6082 3.5 17 3.89175 17 4.375V8.75C17 9.23325 16.6082 9.625 16.125 9.625H15.25V15.75C15.25 16.7165 14.4665 17.5 13.5 17.5H4.75C3.7835 17.5 3 16.7165 3 15.75V7C3 6.0335 3.7835 5.25 4.75 5.25H10.875V4.375ZM10.875 8.75V6.5625H4.75C4.50838 6.5625 4.3125 6.75838 4.3125 7V15.75C4.3125 15.9916 4.50838 16.1875 4.75 16.1875H13.5C13.7416 16.1875 13.9375 15.9916 13.9375 15.75V9.625H11.75C11.2668 9.625 10.875 9.23325 10.875 8.75ZM13.9375 7.875C14.6624 7.875 15.25 7.28737 15.25 6.5625C15.25 5.83763 14.6624 5.25 13.9375 5.25C13.2126 5.25 12.625 5.83763 12.625 6.5625C12.625 7.28737 13.2126 7.875 13.9375 7.875Z",
|
|
18902
|
-
fill: color
|
|
18903
|
-
}));
|
|
18904
|
-
};
|
|
18905
|
-
|
|
18906
18600
|
var color$2 = "#15749D";
|
|
18907
18601
|
var hoverColor$1 = "#116285";
|
|
18908
18602
|
var activeColor$1 = "#0E506D";
|
|
@@ -19556,7 +19250,7 @@ var mobileFallbackValues = {
|
|
|
19556
19250
|
};
|
|
19557
19251
|
var MOBILE_BREAKPOINT = 768;
|
|
19558
19252
|
|
|
19559
|
-
var _excluded$
|
|
19253
|
+
var _excluded$m = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
19560
19254
|
|
|
19561
19255
|
/*
|
|
19562
19256
|
New responsive text component for Title elements
|
|
@@ -19603,7 +19297,7 @@ var Title = function Title(_ref) {
|
|
|
19603
19297
|
as = _ref$as === void 0 ? "h1" : _ref$as,
|
|
19604
19298
|
dataQa = _ref.dataQa,
|
|
19605
19299
|
children = _ref.children,
|
|
19606
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
19300
|
+
rest = _objectWithoutProperties(_ref, _excluded$m);
|
|
19607
19301
|
return /*#__PURE__*/React__default.createElement(TitleText, _extends({
|
|
19608
19302
|
variant: variant,
|
|
19609
19303
|
as: as,
|
|
@@ -21031,12 +20725,12 @@ var fallbackValues$8 = {
|
|
|
21031
20725
|
linkColor: linkColor
|
|
21032
20726
|
};
|
|
21033
20727
|
|
|
21034
|
-
var _excluded$
|
|
20728
|
+
var _excluded$n = ["variant", "themeValues", "children"];
|
|
21035
20729
|
var BoxWithShadow = function BoxWithShadow(_ref) {
|
|
21036
20730
|
var variant = _ref.variant,
|
|
21037
20731
|
themeValues = _ref.themeValues,
|
|
21038
20732
|
children = _ref.children,
|
|
21039
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
20733
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
21040
20734
|
var shadowRegistry = {
|
|
21041
20735
|
baseStandard: "0px 3px 7px 2px ".concat(rgba$1(BLACK, 0.1), ", 0px 1px 2px 1px ").concat(rgba$1(BLACK, 0.1), ";"),
|
|
21042
20736
|
baseHover: "0px 1px 7px 0px ".concat(rgba$1(BLACK, 0.3), ", 0px 1px 4px 0px ").concat(rgba$1(BLACK, 0.2), ", 0px 7px 12px 0px ").concat(rgba$1(BLACK, 0.2), ";"),
|
|
@@ -21096,7 +20790,7 @@ var fallbackValues$a = {
|
|
|
21096
20790
|
externalLinkColor: externalLinkColor
|
|
21097
20791
|
};
|
|
21098
20792
|
|
|
21099
|
-
var _excluded$
|
|
20793
|
+
var _excluded$o = ["hoverColor", "activeColor", "extrastyles"];
|
|
21100
20794
|
var ROYAL_BLUE$1 = ROYAL_BLUE;
|
|
21101
20795
|
var LINK_TEXT_DECORATION$3 = LINK_TEXT_DECORATION;
|
|
21102
20796
|
|
|
@@ -21110,7 +20804,7 @@ var StyledExternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
|
|
|
21110
20804
|
var hoverColor = _ref.hoverColor,
|
|
21111
20805
|
activeColor = _ref.activeColor,
|
|
21112
20806
|
extrastyles = _ref.extrastyles,
|
|
21113
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
20807
|
+
props = _objectWithoutProperties(_ref, _excluded$o);
|
|
21114
20808
|
return /*#__PURE__*/React__default.createElement("a", _extends({}, props, {
|
|
21115
20809
|
ref: ref
|
|
21116
20810
|
}));
|
|
@@ -21185,7 +20879,7 @@ var ExternalLink = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
21185
20879
|
}, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
|
|
21186
20880
|
});
|
|
21187
20881
|
|
|
21188
|
-
var _excluded$
|
|
20882
|
+
var _excluded$p = ["hoverColor", "activeColor", "active", "color", "extrastyles"];
|
|
21189
20883
|
var ROYAL_BLUE$2 = ROYAL_BLUE;
|
|
21190
20884
|
var LINK_TEXT_DECORATION$4 = LINK_TEXT_DECORATION;
|
|
21191
20885
|
|
|
@@ -21201,7 +20895,7 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
|
|
|
21201
20895
|
active = _ref.active,
|
|
21202
20896
|
color = _ref.color,
|
|
21203
20897
|
extrastyles = _ref.extrastyles,
|
|
21204
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
20898
|
+
props = _objectWithoutProperties(_ref, _excluded$p);
|
|
21205
20899
|
return /*#__PURE__*/React__default.createElement(reactRouterDom.Link, _extends({}, props, {
|
|
21206
20900
|
ref: ref
|
|
21207
20901
|
}));
|
|
@@ -22884,7 +22578,7 @@ _curry2(function test(pattern, str) {
|
|
|
22884
22578
|
return _cloneRegExp(pattern).test(str);
|
|
22885
22579
|
});
|
|
22886
22580
|
|
|
22887
|
-
var _excluded$
|
|
22581
|
+
var _excluded$q = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
|
|
22888
22582
|
var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
22889
22583
|
var _ref$url = _ref.url,
|
|
22890
22584
|
url = _ref$url === void 0 ? "/" : _ref$url,
|
|
@@ -22899,7 +22593,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
|
22899
22593
|
_ref$newTab = _ref.newTab,
|
|
22900
22594
|
newTab = _ref$newTab === void 0 ? false : _ref$newTab,
|
|
22901
22595
|
dataQa = _ref.dataQa,
|
|
22902
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
22596
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$q);
|
|
22903
22597
|
var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
|
|
22904
22598
|
var children = _ref2.children,
|
|
22905
22599
|
url = _ref2.url,
|
|
@@ -22987,7 +22681,7 @@ var ParagraphText = styled__default.p.withConfig({
|
|
|
22987
22681
|
return extraStyles;
|
|
22988
22682
|
});
|
|
22989
22683
|
|
|
22990
|
-
var _excluded$
|
|
22684
|
+
var _excluded$r = ["themeValues", "weight", "color", "margin", "extraStyles", "dataQa", "children", "as"];
|
|
22991
22685
|
var Paragraph = function Paragraph(_ref) {
|
|
22992
22686
|
var themeValues = _ref.themeValues,
|
|
22993
22687
|
_ref$weight = _ref.weight,
|
|
@@ -23001,7 +22695,7 @@ var Paragraph = function Paragraph(_ref) {
|
|
|
23001
22695
|
dataQa = _ref.dataQa,
|
|
23002
22696
|
children = _ref.children,
|
|
23003
22697
|
as = _ref.as,
|
|
23004
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
22698
|
+
rest = _objectWithoutProperties(_ref, _excluded$r);
|
|
23005
22699
|
return /*#__PURE__*/React__default.createElement(ParagraphText, _extends({
|
|
23006
22700
|
weight: weight,
|
|
23007
22701
|
color: color,
|
|
@@ -23205,7 +22899,7 @@ var errorStyles = {
|
|
|
23205
22899
|
"default": "border: 1px solid ".concat(RED, ";")
|
|
23206
22900
|
};
|
|
23207
22901
|
var focusedStyles = {
|
|
23208
|
-
"default": "
|
|
22902
|
+
"default": "box-shadow: 0 0 5px 0 ".concat(MATISSE_BLUE, ";")
|
|
23209
22903
|
};
|
|
23210
22904
|
var disabledCheckedStyles = {
|
|
23211
22905
|
"default": "\n background: #6d717e;\n border: 1px solid #6d717e;\n"
|
|
@@ -23243,7 +22937,7 @@ var ENTER = 13;
|
|
|
23243
22937
|
var ESCAPE = 27;
|
|
23244
22938
|
var SPACEBAR = 32;
|
|
23245
22939
|
|
|
23246
|
-
var _excluded$
|
|
22940
|
+
var _excluded$s = ["title", "name", "checked", "onChange", "disabled", "themeValues", "hidden", "error", "checkboxMargin", "extraStyles", "textExtraStyles", "labelledById", "dataQa", "checkboxExtraStyles"];
|
|
23247
22941
|
var CheckboxContainer = styled__default.span.withConfig({
|
|
23248
22942
|
displayName: "Checkbox__CheckboxContainer",
|
|
23249
22943
|
componentId: "sc-36kqbv-0"
|
|
@@ -23251,7 +22945,7 @@ var CheckboxContainer = styled__default.span.withConfig({
|
|
|
23251
22945
|
var CheckboxLabelContainer = styled__default.label.withConfig({
|
|
23252
22946
|
displayName: "Checkbox__CheckboxLabelContainer",
|
|
23253
22947
|
componentId: "sc-36kqbv-1"
|
|
23254
|
-
})(["display:flex;align-items:center;column-gap:1rem;
|
|
22948
|
+
})(["display:flex;align-items:center;column-gap:1rem;"]);
|
|
23255
22949
|
var CheckboxIcon = styled__default.svg.withConfig({
|
|
23256
22950
|
displayName: "Checkbox__CheckboxIcon",
|
|
23257
22951
|
componentId: "sc-36kqbv-2"
|
|
@@ -23310,10 +23004,7 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref5, ref) {
|
|
|
23310
23004
|
_ref5$dataQa = _ref5.dataQa,
|
|
23311
23005
|
dataQa = _ref5$dataQa === void 0 ? null : _ref5$dataQa,
|
|
23312
23006
|
checkboxExtraStyles = _ref5.checkboxExtraStyles,
|
|
23313
|
-
|
|
23314
|
-
hasIconOverride = _ref5$hasIconOverride === void 0 ? false : _ref5$hasIconOverride,
|
|
23315
|
-
Icon = _ref5.icon,
|
|
23316
|
-
rest = _objectWithoutProperties(_ref5, _excluded$u);
|
|
23007
|
+
rest = _objectWithoutProperties(_ref5, _excluded$s);
|
|
23317
23008
|
var _useState = React.useState(false),
|
|
23318
23009
|
_useState2 = _slicedToArray(_useState, 2),
|
|
23319
23010
|
focused = _useState2[0],
|
|
@@ -23341,7 +23032,7 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref5, ref) {
|
|
|
23341
23032
|
},
|
|
23342
23033
|
hiddenStyles: hidden,
|
|
23343
23034
|
background: themeValues.backgroundColor,
|
|
23344
|
-
extraStyles: "
|
|
23035
|
+
extraStyles: "outline: none; ".concat(extraStyles, "; margin: ").concat(checkboxMargin, ";")
|
|
23345
23036
|
}, rest), /*#__PURE__*/React__default.createElement(CheckboxLabelContainer, {
|
|
23346
23037
|
"data-qa": dataQa
|
|
23347
23038
|
}, /*#__PURE__*/React__default.createElement(CheckboxContainer, {
|
|
@@ -23371,7 +23062,7 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref5, ref) {
|
|
|
23371
23062
|
disabledCheckedStyles: themeValues.disabledCheckedStyles,
|
|
23372
23063
|
focusedStyles: themeValues.focusedStyles,
|
|
23373
23064
|
checkboxExtraStyles: checkboxExtraStyles
|
|
23374
|
-
},
|
|
23065
|
+
}, /*#__PURE__*/React__default.createElement(CheckboxIcon, {
|
|
23375
23066
|
viewBox: "0 0 24 24",
|
|
23376
23067
|
disabled: disabled,
|
|
23377
23068
|
disabledCheckColor: themeValues.disabledCheckColor,
|
|
@@ -23669,7 +23360,7 @@ var TableRowWrapper = styled__default.tr.withConfig({
|
|
|
23669
23360
|
return extraStyles;
|
|
23670
23361
|
});
|
|
23671
23362
|
|
|
23672
|
-
var _excluded$
|
|
23363
|
+
var _excluded$t = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
|
|
23673
23364
|
var TableRow = function TableRow(_ref) {
|
|
23674
23365
|
var children = _ref.children,
|
|
23675
23366
|
extraStyles = _ref.extraStyles,
|
|
@@ -23678,7 +23369,7 @@ var TableRow = function TableRow(_ref) {
|
|
|
23678
23369
|
hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
|
|
23679
23370
|
onClick = _ref.onClick,
|
|
23680
23371
|
themeValues = _ref.themeValues,
|
|
23681
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
23372
|
+
props = _objectWithoutProperties(_ref, _excluded$t);
|
|
23682
23373
|
return /*#__PURE__*/React__default.createElement(TableRowWrapper, _extends({
|
|
23683
23374
|
onClick: onClick,
|
|
23684
23375
|
hoverEffect: hoverEffect,
|
|
@@ -26512,7 +26203,7 @@ var mobileFallbackValues$1 = {
|
|
|
26512
26203
|
};
|
|
26513
26204
|
var MOBILE_BREAKPOINT$1 = 768;
|
|
26514
26205
|
|
|
26515
|
-
var _excluded$
|
|
26206
|
+
var _excluded$u = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
26516
26207
|
|
|
26517
26208
|
/*
|
|
26518
26209
|
New responsive text component for Detail elements
|
|
@@ -26562,7 +26253,7 @@ var Detail = function Detail(_ref) {
|
|
|
26562
26253
|
as = _ref$as === void 0 ? "p" : _ref$as,
|
|
26563
26254
|
dataQa = _ref.dataQa,
|
|
26564
26255
|
children = _ref.children,
|
|
26565
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26256
|
+
rest = _objectWithoutProperties(_ref, _excluded$u);
|
|
26566
26257
|
return /*#__PURE__*/React__default.createElement(DetailText, _extends({
|
|
26567
26258
|
variant: variant,
|
|
26568
26259
|
as: as,
|
|
@@ -27156,79 +26847,83 @@ var createFormat = function createFormat(formats, formatChar) {
|
|
|
27156
26847
|
var FormattedInput = function FormattedInput(_ref) {
|
|
27157
26848
|
var value = _ref.value,
|
|
27158
26849
|
formatter = _ref.formatter,
|
|
27159
|
-
|
|
26850
|
+
onChange = _ref.onChange,
|
|
27160
26851
|
props = _objectWithoutProperties$1(_ref, ["value", "formatter", "onChange"]);
|
|
27161
26852
|
|
|
27162
|
-
var
|
|
26853
|
+
var _useState = React.useState(format$1(formatter)(value)),
|
|
26854
|
+
_useState2 = _slicedToArray$1(_useState, 2),
|
|
26855
|
+
formattedValue = _useState2[0],
|
|
26856
|
+
setFormattedValue = _useState2[1];
|
|
27163
26857
|
|
|
27164
|
-
var
|
|
26858
|
+
var inputEl = React.useRef(null);
|
|
26859
|
+
var stateRefs = React.useRef({
|
|
27165
26860
|
selectionStart: 0,
|
|
27166
26861
|
selectionEnd: 0,
|
|
27167
|
-
|
|
27168
|
-
|
|
27169
|
-
|
|
27170
|
-
}),
|
|
27171
|
-
_useState2 = _slicedToArray$1(_useState, 2),
|
|
27172
|
-
state = _useState2[0],
|
|
27173
|
-
setState = _useState2[1];
|
|
27174
|
-
|
|
26862
|
+
isDelete: false,
|
|
26863
|
+
rawValue: ''
|
|
26864
|
+
});
|
|
27175
26865
|
React.useLayoutEffect(function () {
|
|
27176
26866
|
// A lot of the work here is cursor manipulation
|
|
27177
26867
|
if (inputEl.current && inputEl.current === document.activeElement) {
|
|
27178
|
-
inputEl.current.setSelectionRange(
|
|
26868
|
+
inputEl.current.setSelectionRange(stateRefs.current.selectionStart, stateRefs.current.selectionEnd);
|
|
27179
26869
|
}
|
|
27180
|
-
});
|
|
26870
|
+
}, [stateRefs]);
|
|
26871
|
+
|
|
26872
|
+
var handleChange = function handleChange(event) {
|
|
26873
|
+
var deleteKeyPressed = stateRefs.current.isDelete;
|
|
26874
|
+
var maxFormatExceeded = stateRefs.current.rawValue.length >= formatter.formats.length - 1;
|
|
26875
|
+
|
|
26876
|
+
if (maxFormatExceeded && !deleteKeyPressed) {
|
|
26877
|
+
return;
|
|
26878
|
+
}
|
|
26879
|
+
/* At the beginning of onChange, event.target.value is a concat of the previous formatted value
|
|
26880
|
+
* and an unformatted injection at the start, end, or in the middle (maybe a deletion). To prepare
|
|
26881
|
+
* the unformatted value for the user's onChange, the formatted string and unformatted injection need
|
|
26882
|
+
* to be separated, then unformat the formatted string, then insert (or delete) the injection from the
|
|
26883
|
+
* old unformatted value.
|
|
26884
|
+
*/
|
|
26885
|
+
|
|
26886
|
+
|
|
26887
|
+
var injectionLength = event.target.value.length - formattedValue.length;
|
|
26888
|
+
var end = stateRefs.current.selectionStart === stateRefs.current.selectionEnd ? stateRefs.current.selectionStart + injectionLength : stateRefs.current.selectionEnd - 1;
|
|
26889
|
+
var injection = event.target.value.substring(stateRefs.current.selectionStart, end); // Injection is the new unformatted piece of the input
|
|
26890
|
+
// Need to find where to put it
|
|
26891
|
+
|
|
26892
|
+
var rawInjectionPointStart = formattedToUnformattedIndex(stateRefs.current.selectionStart, stateRefs.current.rawValue, formatter);
|
|
26893
|
+
var rawInjectionPointEnd = formattedToUnformattedIndex(stateRefs.current.selectionEnd, stateRefs.current.rawValue, formatter); // Unformat the previous formatted value for injection
|
|
26894
|
+
// Using the relevant format string, strips away chars not marked with the formatChar
|
|
26895
|
+
|
|
26896
|
+
var unformattedOldValue = unformat(formatter)(formattedValue, stateRefs.current.rawValue.length); // Edit the previous unformatted value (either add, update or delete)
|
|
26897
|
+
|
|
26898
|
+
var injectIntoOldValue = inject(unformattedOldValue);
|
|
26899
|
+
var unformattedNewValue = deleteKeyPressed ? rawInjectionPointStart === rawInjectionPointEnd ? injectIntoOldValue(rawInjectionPointStart - 1, rawInjectionPointStart, "") : injectIntoOldValue(rawInjectionPointStart, rawInjectionPointEnd, "") : injectIntoOldValue(rawInjectionPointStart, rawInjectionPointEnd, injection);
|
|
26900
|
+
var lengthDifference = unformattedNewValue.length - stateRefs.current.rawValue.length;
|
|
26901
|
+
var rawIndex = formattedToUnformattedIndex(stateRefs.current.selectionStart, stateRefs.current.rawValue, formatter) + lengthDifference; // Find the new cursor position for the potential formatted value
|
|
26902
|
+
// Applied by useLayoutEffect
|
|
26903
|
+
|
|
26904
|
+
var newFormattedCursorPosition = stateRefs.current.selectionStart === stateRefs.current.selectionEnd ? unformattedToFormattedIndex(rawIndex, unformattedNewValue, formatter, deleteKeyPressed) : deleteKeyPressed ? stateRefs.current.selectionStart : stateRefs.current.selectionEnd;
|
|
26905
|
+
var formattedNewValue = format$1(formatter)(unformattedNewValue);
|
|
26906
|
+
setFormattedValue(formattedNewValue); // Apply the external onChange function to the raw underlying string
|
|
26907
|
+
// This is where the user generally updates the input value
|
|
26908
|
+
|
|
26909
|
+
if (onChange) {
|
|
26910
|
+
onChange(unformattedNewValue);
|
|
26911
|
+
}
|
|
26912
|
+
};
|
|
26913
|
+
|
|
27181
26914
|
return React__default.createElement("input", _extends$2({}, props, {
|
|
27182
26915
|
ref: inputEl,
|
|
27183
26916
|
value: format$1(formatter)(value),
|
|
27184
26917
|
onKeyDown: function onKeyDown(event) {
|
|
27185
|
-
// Keep track of the state of the input before onChange
|
|
27186
|
-
|
|
27187
|
-
|
|
26918
|
+
// Keep track of the state of the input before onChange
|
|
26919
|
+
stateRefs.current = {
|
|
26920
|
+
isDelete: event.key === "Backspace" || event.key === "Delete",
|
|
27188
26921
|
selectionStart: event.target.selectionStart,
|
|
27189
26922
|
selectionEnd: event.target.selectionEnd,
|
|
27190
|
-
|
|
27191
|
-
|
|
27192
|
-
});
|
|
26923
|
+
rawValue: value
|
|
26924
|
+
};
|
|
27193
26925
|
},
|
|
27194
|
-
onChange:
|
|
27195
|
-
/* At the beginning of onChange, event.target.value is a concat of the previous formatted value
|
|
27196
|
-
* and an unformatted injection at the start, end, or in the middle (maybe a deletion). To prepare
|
|
27197
|
-
* the unformatted value for the user's onChange, the formatted string and unformatted injection need
|
|
27198
|
-
* to be separated, then unformat the formatted string, then insert (or delete) the injection from the
|
|
27199
|
-
* old unformatted value.
|
|
27200
|
-
*/
|
|
27201
|
-
var injectionLength = event.target.value.length - state.formattedValue.length;
|
|
27202
|
-
var end = state.selectionStart === state.selectionEnd ? state.selectionStart + injectionLength : state.selectionEnd - 1;
|
|
27203
|
-
var injection = event.target.value.substring(state.selectionStart, end); // Injection is the new unformatted piece of the input
|
|
27204
|
-
// Need to find where to put it
|
|
27205
|
-
|
|
27206
|
-
var rawInjectionPointStart = formattedToUnformattedIndex(state.selectionStart, state.rawValue, formatter);
|
|
27207
|
-
var rawInjectionPointEnd = formattedToUnformattedIndex(state.selectionEnd, state.rawValue, formatter); // Unformat the previous formatted value for injection
|
|
27208
|
-
// Using the relevant format string, strips away chars not marked with the formatChar
|
|
27209
|
-
|
|
27210
|
-
var unformattedOldValue = unformat(formatter)(state.formattedValue, state.rawValue.length); // Edit the previous unformatted value (either add, update or delete)
|
|
27211
|
-
|
|
27212
|
-
var injectIntoOldValue = inject(unformattedOldValue);
|
|
27213
|
-
var unformattedNewValue = state["delete"] ? rawInjectionPointStart === rawInjectionPointEnd ? injectIntoOldValue(rawInjectionPointStart - 1, rawInjectionPointStart, "") : injectIntoOldValue(rawInjectionPointStart, rawInjectionPointEnd, "") : injectIntoOldValue(rawInjectionPointStart, rawInjectionPointEnd, injection);
|
|
27214
|
-
var lengthDifference = unformattedNewValue.length - state.rawValue.length;
|
|
27215
|
-
var rawIndex = formattedToUnformattedIndex(state.selectionStart, state.rawValue, formatter) + lengthDifference; // Find the new cursor position for the potential formatted value
|
|
27216
|
-
// Applied by useLayoutEffect
|
|
27217
|
-
|
|
27218
|
-
var newFormattedCursorPosition = state.selectionStart == state.selectionEnd ? unformattedToFormattedIndex(rawIndex, unformattedNewValue, formatter, state["delete"]) : state["delete"] ? state.selectionStart : state.selectionEnd;
|
|
27219
|
-
setState({
|
|
27220
|
-
selectionStart: newFormattedCursorPosition,
|
|
27221
|
-
selectionEnd: newFormattedCursorPosition,
|
|
27222
|
-
rawValue: state.rawValue,
|
|
27223
|
-
"delete": false,
|
|
27224
|
-
formattedValue: state.formattedValue
|
|
27225
|
-
}); // Apply the external onChange function to the raw underlying string
|
|
27226
|
-
// This is where the user generally updates the input value
|
|
27227
|
-
|
|
27228
|
-
if (_onChange) {
|
|
27229
|
-
_onChange(unformattedNewValue);
|
|
27230
|
-
}
|
|
27231
|
-
}
|
|
26926
|
+
onChange: handleChange
|
|
27232
26927
|
}));
|
|
27233
26928
|
};
|
|
27234
26929
|
|
|
@@ -27296,7 +26991,7 @@ var fallbackValues$n = {
|
|
|
27296
26991
|
formFooterPanel: formFooterPanel
|
|
27297
26992
|
};
|
|
27298
26993
|
|
|
27299
|
-
var _excluded$
|
|
26994
|
+
var _excluded$v = ["showErrors", "themeValues"],
|
|
27300
26995
|
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired", "errorFieldExtraStyles", "showFieldErrorRow", "labelTextVariant", "errorTextVariant"];
|
|
27301
26996
|
var InputField = styled__default.input.withConfig({
|
|
27302
26997
|
displayName: "FormInput__InputField",
|
|
@@ -27331,7 +27026,7 @@ var InputField = styled__default.input.withConfig({
|
|
|
27331
27026
|
var FormattedInputField = styled__default(function (_ref8) {
|
|
27332
27027
|
var showErrors = _ref8.showErrors,
|
|
27333
27028
|
themeValues = _ref8.themeValues,
|
|
27334
|
-
props = _objectWithoutProperties(_ref8, _excluded$
|
|
27029
|
+
props = _objectWithoutProperties(_ref8, _excluded$v);
|
|
27335
27030
|
return /*#__PURE__*/React__default.createElement(FormattedInput, props);
|
|
27336
27031
|
}).withConfig({
|
|
27337
27032
|
displayName: "FormInput__FormattedInputField",
|
|
@@ -27536,7 +27231,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
27536
27231
|
};
|
|
27537
27232
|
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$n, "default");
|
|
27538
27233
|
|
|
27539
|
-
var _excluded$
|
|
27234
|
+
var _excluded$w = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
|
|
27540
27235
|
var FormInputRow = function FormInputRow(_ref) {
|
|
27541
27236
|
var _ref$breakpoint = _ref.breakpoint,
|
|
27542
27237
|
breakpoint = _ref$breakpoint === void 0 ? "30rem" : _ref$breakpoint,
|
|
@@ -27545,7 +27240,7 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
27545
27240
|
largeChild = _ref.largeChild,
|
|
27546
27241
|
largeChildSize = _ref.largeChildSize,
|
|
27547
27242
|
children = _ref.children,
|
|
27548
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27243
|
+
rest = _objectWithoutProperties(_ref, _excluded$w);
|
|
27549
27244
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
27550
27245
|
padding: "0"
|
|
27551
27246
|
}, rest), /*#__PURE__*/React__default.createElement(Switcher, {
|
|
@@ -27556,24 +27251,24 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
27556
27251
|
}, children));
|
|
27557
27252
|
};
|
|
27558
27253
|
|
|
27559
|
-
var _excluded$
|
|
27254
|
+
var _excluded$x = ["childGap", "bottomItem", "children"];
|
|
27560
27255
|
var FormInputColumn = function FormInputColumn(_ref) {
|
|
27561
27256
|
var _ref$childGap = _ref.childGap,
|
|
27562
27257
|
childGap = _ref$childGap === void 0 ? "0.5rem" : _ref$childGap,
|
|
27563
27258
|
bottomItem = _ref.bottomItem,
|
|
27564
27259
|
children = _ref.children,
|
|
27565
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27260
|
+
rest = _objectWithoutProperties(_ref, _excluded$x);
|
|
27566
27261
|
return /*#__PURE__*/React__default.createElement(Stack, _extends({
|
|
27567
27262
|
childGap: childGap,
|
|
27568
27263
|
bottomItem: bottomItem
|
|
27569
27264
|
}, rest), children);
|
|
27570
27265
|
};
|
|
27571
27266
|
|
|
27572
|
-
var _excluded$
|
|
27267
|
+
var _excluded$y = ["themeValues", "children"];
|
|
27573
27268
|
var FormContainer = function FormContainer(_ref) {
|
|
27574
27269
|
var themeValues = _ref.themeValues,
|
|
27575
27270
|
children = _ref.children,
|
|
27576
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27271
|
+
rest = _objectWithoutProperties(_ref, _excluded$y);
|
|
27577
27272
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
27578
27273
|
isMobile = _useContext.isMobile;
|
|
27579
27274
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
@@ -27883,7 +27578,7 @@ var fallbackValues$r = {
|
|
|
27883
27578
|
fontSize: fontSize$8
|
|
27884
27579
|
};
|
|
27885
27580
|
|
|
27886
|
-
var _excluded$
|
|
27581
|
+
var _excluded$z = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
27887
27582
|
var Heading = function Heading(_ref) {
|
|
27888
27583
|
var themeValues = _ref.themeValues,
|
|
27889
27584
|
_ref$weight = _ref.weight,
|
|
@@ -27902,7 +27597,7 @@ var Heading = function Heading(_ref) {
|
|
|
27902
27597
|
as = _ref$as === void 0 ? variant : _ref$as,
|
|
27903
27598
|
dataQa = _ref.dataQa,
|
|
27904
27599
|
children = _ref.children,
|
|
27905
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27600
|
+
rest = _objectWithoutProperties(_ref, _excluded$z);
|
|
27906
27601
|
return /*#__PURE__*/React__default.createElement(HeadingText, _extends({
|
|
27907
27602
|
variant: variant,
|
|
27908
27603
|
as: as,
|
|
@@ -28103,11 +27798,11 @@ var LabeledAmountV2 = function LabeledAmountV2(_ref) {
|
|
|
28103
27798
|
}, /*#__PURE__*/React__default.createElement("span", null, label), /*#__PURE__*/React__default.createElement("span", null, amount));
|
|
28104
27799
|
};
|
|
28105
27800
|
|
|
28106
|
-
var _excluded$
|
|
27801
|
+
var _excluded$A = ["version"];
|
|
28107
27802
|
var LabeledAmount = function LabeledAmount(_ref) {
|
|
28108
27803
|
var _ref$version = _ref.version,
|
|
28109
27804
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
28110
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27805
|
+
rest = _objectWithoutProperties(_ref, _excluded$A);
|
|
28111
27806
|
var LabeledAmountComponent = version === "v1" ? LabeledAmountV1 : LabeledAmountV2;
|
|
28112
27807
|
return /*#__PURE__*/React__default.createElement(LabeledAmountComponent, rest);
|
|
28113
27808
|
};
|
|
@@ -28252,7 +27947,7 @@ var Loading = function Loading() {
|
|
|
28252
27947
|
})))));
|
|
28253
27948
|
};
|
|
28254
27949
|
|
|
28255
|
-
var _excluded$
|
|
27950
|
+
var _excluded$B = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
|
|
28256
27951
|
var NavFooter = function NavFooter(_ref) {
|
|
28257
27952
|
var leftContent = _ref.leftContent,
|
|
28258
27953
|
rightContent = _ref.rightContent,
|
|
@@ -28267,7 +27962,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
28267
27962
|
footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
|
|
28268
27963
|
isMobile = _ref.isMobile,
|
|
28269
27964
|
footerWidth = _ref.footerWidth,
|
|
28270
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27965
|
+
rest = _objectWithoutProperties(_ref, _excluded$B);
|
|
28271
27966
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
28272
27967
|
padding: footerPadding,
|
|
28273
27968
|
background: backgroundColor,
|
|
@@ -28298,7 +27993,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
28298
27993
|
}, rightContent)))))));
|
|
28299
27994
|
};
|
|
28300
27995
|
|
|
28301
|
-
var _excluded$
|
|
27996
|
+
var _excluded$C = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
|
|
28302
27997
|
var NavHeader = function NavHeader(_ref) {
|
|
28303
27998
|
var leftContent = _ref.leftContent,
|
|
28304
27999
|
rightContent = _ref.rightContent,
|
|
@@ -28307,7 +28002,7 @@ var NavHeader = function NavHeader(_ref) {
|
|
|
28307
28002
|
isMobile = _ref.isMobile,
|
|
28308
28003
|
backgroundColor = _ref.backgroundColor,
|
|
28309
28004
|
headerWidth = _ref.headerWidth,
|
|
28310
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
28005
|
+
rest = _objectWithoutProperties(_ref, _excluded$C);
|
|
28311
28006
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
28312
28007
|
padding: "0 16px 4px",
|
|
28313
28008
|
background: backgroundColor,
|
|
@@ -39936,10 +39631,8 @@ var CardText = function CardText(_ref) {
|
|
|
39936
39631
|
themeValues = _ref.themeValues;
|
|
39937
39632
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
39938
39633
|
padding: padding
|
|
39939
|
-
}, /*#__PURE__*/React__default.createElement(Cover, null, /*#__PURE__*/React__default.createElement(Stack, null, /*#__PURE__*/React__default.createElement(
|
|
39940
|
-
|
|
39941
|
-
align: "center",
|
|
39942
|
-
overflow: true
|
|
39634
|
+
}, /*#__PURE__*/React__default.createElement(Cover, null, /*#__PURE__*/React__default.createElement(Stack, null, /*#__PURE__*/React__default.createElement(Box, {
|
|
39635
|
+
padding: "0"
|
|
39943
39636
|
}, titleText && /*#__PURE__*/React__default.createElement(Title$1, {
|
|
39944
39637
|
as: titleAs,
|
|
39945
39638
|
variant: titleVariant,
|
|
@@ -39954,7 +39647,7 @@ var CardText = function CardText(_ref) {
|
|
|
39954
39647
|
role: "button",
|
|
39955
39648
|
tabIndex: 0,
|
|
39956
39649
|
"aria-label": "Close Card: ".concat(titleText),
|
|
39957
|
-
extraStyles: "cursor: pointer;"
|
|
39650
|
+
extraStyles: "position: absolute; top: 0.5rem; right: 0.5rem; cursor: pointer;"
|
|
39958
39651
|
}, /*#__PURE__*/React__default.createElement(IconQuitLarge, null))), /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
39959
39652
|
as: textAs,
|
|
39960
39653
|
color: themeValues.textColor
|
|
@@ -46727,11 +46420,11 @@ var Modal$2 = function Modal(_ref) {
|
|
|
46727
46420
|
};
|
|
46728
46421
|
var ModalControlV2 = withWindowSize(Modal$2);
|
|
46729
46422
|
|
|
46730
|
-
var _excluded$
|
|
46423
|
+
var _excluded$D = ["version"];
|
|
46731
46424
|
var Modal$3 = function Modal(_ref) {
|
|
46732
46425
|
var _ref$version = _ref.version,
|
|
46733
46426
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
46734
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
46427
|
+
rest = _objectWithoutProperties(_ref, _excluded$D);
|
|
46735
46428
|
var ModalControl = version === "v1" ? Modal$1 : ModalControlV2;
|
|
46736
46429
|
return /*#__PURE__*/React__default.createElement(ModalControl, rest);
|
|
46737
46430
|
};
|
|
@@ -48033,7 +47726,7 @@ var fallbackValues$P = {
|
|
|
48033
47726
|
labeledAmountTotal: labeledAmountTotal
|
|
48034
47727
|
};
|
|
48035
47728
|
|
|
48036
|
-
var _excluded$
|
|
47729
|
+
var _excluded$E = ["amount"],
|
|
48037
47730
|
_excluded2$1 = ["amount"];
|
|
48038
47731
|
var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
48039
47732
|
var lineItemElems = _ref.lineItemElems,
|
|
@@ -48276,7 +47969,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
48276
47969
|
return fee.amount > 0;
|
|
48277
47970
|
}).map(function (_ref5) {
|
|
48278
47971
|
var amount = _ref5.amount,
|
|
48279
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
47972
|
+
rest = _objectWithoutProperties(_ref5, _excluded$E);
|
|
48280
47973
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
48281
47974
|
amount: displayCurrency(amount)
|
|
48282
47975
|
});
|
|
@@ -48713,11 +48406,11 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48713
48406
|
}, errorMessage))))));
|
|
48714
48407
|
};
|
|
48715
48408
|
|
|
48716
|
-
var _excluded$
|
|
48409
|
+
var _excluded$F = ["version"];
|
|
48717
48410
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
48718
48411
|
var _ref$version = _ref.version,
|
|
48719
48412
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
48720
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48413
|
+
rest = _objectWithoutProperties(_ref, _excluded$F);
|
|
48721
48414
|
var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
|
|
48722
48415
|
return /*#__PURE__*/React__default.createElement(TermsAndConditionsControl, rest);
|
|
48723
48416
|
};
|
|
@@ -49525,7 +49218,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
|
49525
49218
|
}, section.content))));
|
|
49526
49219
|
};
|
|
49527
49220
|
|
|
49528
|
-
var _excluded$
|
|
49221
|
+
var _excluded$G = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections", "borderOverride"];
|
|
49529
49222
|
|
|
49530
49223
|
/**
|
|
49531
49224
|
- The RadioSection component takes either a flat array (via the 'sections'
|
|
@@ -49574,7 +49267,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
49574
49267
|
isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire,
|
|
49575
49268
|
groupedSections = _ref.groupedSections,
|
|
49576
49269
|
borderOverride = _ref.borderOverride,
|
|
49577
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
49270
|
+
rest = _objectWithoutProperties(_ref, _excluded$G);
|
|
49578
49271
|
var _useState = React.useState(null),
|
|
49579
49272
|
_useState2 = _slicedToArray(_useState, 2),
|
|
49580
49273
|
focused = _useState2[0],
|
|
@@ -50121,7 +49814,7 @@ var Timeout = function Timeout(_ref) {
|
|
|
50121
49814
|
};
|
|
50122
49815
|
var Timeout$1 = withWindowSize(Timeout);
|
|
50123
49816
|
|
|
50124
|
-
var _excluded$
|
|
49817
|
+
var _excluded$H = ["variant", "message", "toastOpen", "closeToastNotification", "extraStyles", "minWidth", "maxWidth", "height", "childGap", "backgroundColor", "role", "ariaLive", "screenReaderMessage", "showScreenReaderMessage"];
|
|
50125
49818
|
var VARIANTS = {
|
|
50126
49819
|
SUCCESS: "success",
|
|
50127
49820
|
ERROR: "error"
|
|
@@ -50150,7 +49843,7 @@ var ToastNotification = function ToastNotification(_ref) {
|
|
|
50150
49843
|
screenReaderMessage = _ref.screenReaderMessage,
|
|
50151
49844
|
_ref$showScreenReader = _ref.showScreenReaderMessage,
|
|
50152
49845
|
showScreenReaderMessage = _ref$showScreenReader === void 0 ? true : _ref$showScreenReader,
|
|
50153
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
49846
|
+
rest = _objectWithoutProperties(_ref, _excluded$H);
|
|
50154
49847
|
var screenReaderMessageRef = React.useRef();
|
|
50155
49848
|
var LIVEREGION_TRANSITION_DELAY = 1000;
|
|
50156
49849
|
React.useEffect(function () {
|
|
@@ -50333,7 +50026,7 @@ var PopupMenuItemContainer = styled__default(ButtonWithAction).withConfig({
|
|
|
50333
50026
|
return "\n background-color: ".concat(isDeleteAction ? theme.menuItemHoverBackgroundColorDelete : theme.menuItemHoverBackgroundColor, ";\n ");
|
|
50334
50027
|
});
|
|
50335
50028
|
|
|
50336
|
-
var _excluded$
|
|
50029
|
+
var _excluded$I = ["id", "closeMenuCallback", "action", "themeValues", "text", "hasIcon", "isDeleteAction", "icon", "textExtraStyles", "hoverStyles", "activeStyles", "extraStyles"];
|
|
50337
50030
|
var PopupMenuItem = function PopupMenuItem(_ref) {
|
|
50338
50031
|
var id = _ref.id,
|
|
50339
50032
|
closeMenuCallback = _ref.closeMenuCallback,
|
|
@@ -50349,7 +50042,7 @@ var PopupMenuItem = function PopupMenuItem(_ref) {
|
|
|
50349
50042
|
hoverStyles = _ref.hoverStyles,
|
|
50350
50043
|
activeStyles = _ref.activeStyles,
|
|
50351
50044
|
extraStyles = _ref.extraStyles,
|
|
50352
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
50045
|
+
rest = _objectWithoutProperties(_ref, _excluded$I);
|
|
50353
50046
|
return /*#__PURE__*/React__default.createElement(PopupMenuItemContainer, _extends({
|
|
50354
50047
|
id: id,
|
|
50355
50048
|
role: "menuItem",
|
|
@@ -50522,21 +50215,20 @@ var PopupMenu = function PopupMenu(_ref) {
|
|
|
50522
50215
|
};
|
|
50523
50216
|
var PopupMenu$1 = themeComponent(PopupMenu, "PopupMenu", fallbackValues$Z);
|
|
50524
50217
|
|
|
50525
|
-
var primaryColor$1 =
|
|
50526
|
-
var primaryHoverColor = INFO_BLUE;
|
|
50218
|
+
var primaryColor$1 = INFO_BLUE;
|
|
50527
50219
|
var secondaryColor = MATISSE_BLUE;
|
|
50528
|
-
var secondaryHoverColor = "#115D7E";
|
|
50529
50220
|
var fallbackValues$_ = {
|
|
50530
50221
|
primaryColor: primaryColor$1,
|
|
50531
|
-
|
|
50532
|
-
secondaryColor: secondaryColor,
|
|
50533
|
-
secondaryHoverColor: secondaryHoverColor
|
|
50222
|
+
secondaryColor: secondaryColor
|
|
50534
50223
|
};
|
|
50535
50224
|
|
|
50536
50225
|
var StyledFilterContainer = styled__default(Box).withConfig({
|
|
50537
50226
|
displayName: "MultipleSelectFilterstyled__StyledFilterContainer",
|
|
50538
50227
|
componentId: "sc-126xgc2-0"
|
|
50539
|
-
})(["position:relative;
|
|
50228
|
+
})(["position:relative;box-sizing:border-box;padding:0;", ""], function (_ref) {
|
|
50229
|
+
var extraStyles = _ref.extraStyles;
|
|
50230
|
+
return extraStyles;
|
|
50231
|
+
});
|
|
50540
50232
|
var FilterContainer = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
50541
50233
|
return /*#__PURE__*/React__default.createElement(StyledFilterContainer, _extends({
|
|
50542
50234
|
ref: ref
|
|
@@ -50545,7 +50237,7 @@ var FilterContainer = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
50545
50237
|
var StyledFilterDropdown = styled__default(Box).withConfig({
|
|
50546
50238
|
displayName: "MultipleSelectFilterstyled__StyledFilterDropdown",
|
|
50547
50239
|
componentId: "sc-126xgc2-1"
|
|
50548
|
-
})(["position:absolute;top:calc(100% + 0.5rem);left:0;width:
|
|
50240
|
+
})(["position:absolute;top:calc(100% + 0.5rem);left:0;width:100%;background-color:white;z-index:1000;border-radius:0.25rem;box-shadow:0px 1px 0px 0px rgba(41,42,51,0.1),0px 2px 4px 0px rgba(41,42,51,0.2),0px 1px 2px 0px rgba(41,42,51,0.1);padding:0;max-width:18.625rem;"]);
|
|
50549
50241
|
var FilterDropdownContainer = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
50550
50242
|
return /*#__PURE__*/React__default.createElement(StyledFilterDropdown, _extends({
|
|
50551
50243
|
ref: ref
|
|
@@ -50554,16 +50246,12 @@ var FilterDropdownContainer = /*#__PURE__*/React.forwardRef(function (props, ref
|
|
|
50554
50246
|
var FilterButton = styled__default(ButtonWithAction).withConfig({
|
|
50555
50247
|
displayName: "MultipleSelectFilterstyled__FilterButton",
|
|
50556
50248
|
componentId: "sc-126xgc2-2"
|
|
50557
|
-
})(["min-width:auto;min-height:2.3125rem;margin:0;padding:0.5rem;border-radius:0.25rem;box-shadow:0px 1px 2px 0px rgba(41,42,51,0.1);", " ", ""], function (
|
|
50558
|
-
var
|
|
50559
|
-
|
|
50560
|
-
|
|
50561
|
-
|
|
50562
|
-
|
|
50563
|
-
var opened = _ref2.opened,
|
|
50564
|
-
backgroundColor = _ref2.backgroundColor,
|
|
50565
|
-
backgroundHoverColor = _ref2.backgroundHoverColor;
|
|
50566
|
-
return "\n background-color: ".concat(opened ? backgroundHoverColor : backgroundColor, "; \n :hover,\n :active,\n :focus {\n background-color: ").concat(backgroundHoverColor, ";\n }\n ");
|
|
50249
|
+
})(["min-width:auto;min-height:2.3125rem;margin:0;padding:0.5rem;border-radius:0.25rem;box-shadow:0px 1px 2px 0px rgba(41,42,51,0.1);", " ", ""], function (_ref2) {
|
|
50250
|
+
var textColor = _ref2.textColor;
|
|
50251
|
+
return "\n color: ".concat(textColor, ";\n ");
|
|
50252
|
+
}, function (_ref3) {
|
|
50253
|
+
var backgroundColor = _ref3.backgroundColor;
|
|
50254
|
+
return "\n background-color: ".concat(backgroundColor, ";\n :hover,\n :active,\n :focus {\n background-color: ").concat(backgroundColor, ";\n }\n ");
|
|
50567
50255
|
});
|
|
50568
50256
|
var StyledFilterButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
50569
50257
|
return /*#__PURE__*/React__default.createElement(FilterButton, _extends({
|
|
@@ -50574,8 +50262,7 @@ var StyledFilterButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
50574
50262
|
var ActionLinkButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
50575
50263
|
var action = _ref.action,
|
|
50576
50264
|
text = _ref.text,
|
|
50577
|
-
dataQa = _ref.dataQa
|
|
50578
|
-
ariaLabel = _ref.ariaLabel;
|
|
50265
|
+
dataQa = _ref.dataQa;
|
|
50579
50266
|
return /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
50580
50267
|
ref: ref,
|
|
50581
50268
|
action: action,
|
|
@@ -50583,12 +50270,11 @@ var ActionLinkButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
50583
50270
|
extraStyles: "\n padding: 0.2rem; \n margin: 0.5rem; \n min-height: auto; \n min-width: auto;\n ",
|
|
50584
50271
|
textExtraStyles: "font-weight: ".concat(FONT_WEIGHT_REGULAR, ";"),
|
|
50585
50272
|
text: text,
|
|
50586
|
-
dataQa: dataQa
|
|
50587
|
-
"aria-label": ariaLabel
|
|
50273
|
+
dataQa: dataQa
|
|
50588
50274
|
});
|
|
50589
50275
|
});
|
|
50590
50276
|
|
|
50591
|
-
var _excluded$
|
|
50277
|
+
var _excluded$J = ["width", "height", "color"];
|
|
50592
50278
|
var DropdownIconV2 = function DropdownIconV2(_ref) {
|
|
50593
50279
|
var _ref$width = _ref.width,
|
|
50594
50280
|
width = _ref$width === void 0 ? "18" : _ref$width,
|
|
@@ -50596,7 +50282,7 @@ var DropdownIconV2 = function DropdownIconV2(_ref) {
|
|
|
50596
50282
|
height = _ref$height === void 0 ? "19" : _ref$height,
|
|
50597
50283
|
_ref$color = _ref.color,
|
|
50598
50284
|
color = _ref$color === void 0 ? "#292A33" : _ref$color,
|
|
50599
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
50285
|
+
props = _objectWithoutProperties(_ref, _excluded$J);
|
|
50600
50286
|
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
50601
50287
|
width: width,
|
|
50602
50288
|
height: height,
|
|
@@ -50642,9 +50328,7 @@ var FilterButton$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
50642
50328
|
action = _ref$action === void 0 ? noop$1 : _ref$action,
|
|
50643
50329
|
opened = _ref.opened,
|
|
50644
50330
|
backgroundColor = _ref.backgroundColor,
|
|
50645
|
-
|
|
50646
|
-
textColor = _ref.textColor,
|
|
50647
|
-
textHoverColor = _ref.textHoverColor,
|
|
50331
|
+
contentColor = _ref.contentColor,
|
|
50648
50332
|
name = _ref.name,
|
|
50649
50333
|
filterDropdownID = _ref.filterDropdownID,
|
|
50650
50334
|
_ref$hasIcon = _ref.hasIcon,
|
|
@@ -50652,10 +50336,7 @@ var FilterButton$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
50652
50336
|
Icon = _ref.icon,
|
|
50653
50337
|
truncateBtnTextWidth = _ref.truncateBtnTextWidth,
|
|
50654
50338
|
filterLabel = _ref.filterLabel,
|
|
50655
|
-
selectedOptions = _ref.selectedOptions
|
|
50656
|
-
extraStyles = _ref.extraStyles;
|
|
50657
|
-
var btnTextFilterDescription = selectedOptions !== null && selectedOptions !== void 0 && selectedOptions.length ? "".concat(filterLabel ? "".concat(filterLabel, ": ") : "").concat(selectedOptions[0].name) : "".concat(filterLabel ? filterLabel : "");
|
|
50658
|
-
var btnTextItemsDescription = selectedOptions !== null && selectedOptions !== void 0 && selectedOptions.length && (selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions.length) > 1 ? ", +".concat((selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions.length) - 1, " More") : "";
|
|
50339
|
+
selectedOptions = _ref.selectedOptions;
|
|
50659
50340
|
return /*#__PURE__*/React__default.createElement(StyledFilterButton, {
|
|
50660
50341
|
ref: ref,
|
|
50661
50342
|
variant: "tertiary",
|
|
@@ -50664,13 +50345,7 @@ var FilterButton$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
50664
50345
|
"aria-expanded": opened,
|
|
50665
50346
|
"aria-controls": filterDropdownID,
|
|
50666
50347
|
backgroundColor: backgroundColor,
|
|
50667
|
-
backgroundHoverColor: backgroundHoverColor,
|
|
50668
|
-
textColor: textColor,
|
|
50669
|
-
textHoverColor: textHoverColor,
|
|
50670
|
-
opened: opened,
|
|
50671
50348
|
dataQa: "".concat(name, "-filter-button"),
|
|
50672
|
-
extraStyles: extraStyles,
|
|
50673
|
-
"aria-label": "".concat(filterLabel, " Filter: ").concat(btnTextFilterDescription, " ").concat(btnTextItemsDescription),
|
|
50674
50349
|
contentOverride: true
|
|
50675
50350
|
}, btnContentOverride ? btnContentOverride : /*#__PURE__*/React__default.createElement(Center, {
|
|
50676
50351
|
as: "span",
|
|
@@ -50680,7 +50355,7 @@ var FilterButton$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
50680
50355
|
},
|
|
50681
50356
|
intrinsic: true
|
|
50682
50357
|
}, hasIcon && /*#__PURE__*/React__default.createElement(Icon, {
|
|
50683
|
-
color:
|
|
50358
|
+
color: contentColor
|
|
50684
50359
|
}), /*#__PURE__*/React__default.createElement(Center, {
|
|
50685
50360
|
as: "span",
|
|
50686
50361
|
style: {
|
|
@@ -50691,22 +50366,20 @@ var FilterButton$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
50691
50366
|
intrinsic: true
|
|
50692
50367
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
50693
50368
|
variant: "pS",
|
|
50694
|
-
color:
|
|
50369
|
+
color: contentColor,
|
|
50695
50370
|
extraStyles: "\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n ".concat(truncateBtnTextWidth && "max-width:" + truncateBtnTextWidth, "\n ")
|
|
50696
|
-
},
|
|
50697
|
-
color:
|
|
50371
|
+
}, selectedOptions !== null && selectedOptions !== void 0 && selectedOptions.length ? "".concat(filterLabel ? filterLabel + ": " : "").concat(selectedOptions[0].name) : "".concat(filterLabel ? filterLabel : "")), /*#__PURE__*/React__default.createElement(Text$1, {
|
|
50372
|
+
color: contentColor,
|
|
50698
50373
|
variant: "pS"
|
|
50699
|
-
},
|
|
50700
|
-
color:
|
|
50374
|
+
}, selectedOptions !== null && selectedOptions !== void 0 && selectedOptions.length && (selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions.length) > 1 ? ", +".concat((selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions.length) - 1, " More") : "")), /*#__PURE__*/React__default.createElement(DropdownIconV2, {
|
|
50375
|
+
color: contentColor
|
|
50701
50376
|
})));
|
|
50702
50377
|
});
|
|
50703
50378
|
|
|
50704
50379
|
var FilterDropdown = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
50705
50380
|
var id = _ref.id,
|
|
50706
50381
|
ariaOwns = _ref.ariaOwns,
|
|
50707
|
-
ariaControls = _ref.ariaControls,
|
|
50708
50382
|
opened = _ref.opened,
|
|
50709
|
-
extraStyles = _ref.extraStyles,
|
|
50710
50383
|
children = _ref.children;
|
|
50711
50384
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, opened && /*#__PURE__*/React__default.createElement(FilterDropdownContainer, {
|
|
50712
50385
|
ref: ref,
|
|
@@ -50714,9 +50387,7 @@ var FilterDropdown = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
50714
50387
|
role: "combobox",
|
|
50715
50388
|
"aria-expanded": opened,
|
|
50716
50389
|
"aria-haspopup": "listbox",
|
|
50717
|
-
"aria-owns": ariaOwns
|
|
50718
|
-
"aria-controls": ariaControls,
|
|
50719
|
-
extraStyles: extraStyles
|
|
50390
|
+
"aria-owns": ariaOwns
|
|
50720
50391
|
}, children));
|
|
50721
50392
|
});
|
|
50722
50393
|
|
|
@@ -50737,54 +50408,10 @@ var SearchBox = function SearchBox(_ref) {
|
|
|
50737
50408
|
fieldActions: actions.fields.searchTerm,
|
|
50738
50409
|
placeholder: placeholder,
|
|
50739
50410
|
disabled: disabled,
|
|
50740
|
-
extraStyles: "\n
|
|
50411
|
+
extraStyles: "\n height: 2.875rem;\n border: 0; \n border-radius: 0;\n padding: 0.45rem;\n font-size: 0.875rem;\n border-bottom: 1px solid ".concat(GHOST_GREY, ";\n ")
|
|
50741
50412
|
}));
|
|
50742
50413
|
};
|
|
50743
50414
|
|
|
50744
|
-
var _excluded$M = ["width", "height", "color"];
|
|
50745
|
-
var CheckboxCheckmarkIcon = function CheckboxCheckmarkIcon(_ref) {
|
|
50746
|
-
var _ref$width = _ref.width,
|
|
50747
|
-
width = _ref$width === void 0 ? "18" : _ref$width,
|
|
50748
|
-
_ref$height = _ref.height,
|
|
50749
|
-
height = _ref$height === void 0 ? "18" : _ref$height,
|
|
50750
|
-
_ref$color = _ref.color,
|
|
50751
|
-
color = _ref$color === void 0 ? "#FEFEFE" : _ref$color,
|
|
50752
|
-
props = _objectWithoutProperties(_ref, _excluded$M);
|
|
50753
|
-
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
50754
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
50755
|
-
width: width,
|
|
50756
|
-
height: height,
|
|
50757
|
-
viewBox: "0 0 ".concat(width, " ").concat(height),
|
|
50758
|
-
fill: "none"
|
|
50759
|
-
}, props), /*#__PURE__*/React__default.createElement("path", {
|
|
50760
|
-
fillRule: "evenodd",
|
|
50761
|
-
clipRule: "evenodd",
|
|
50762
|
-
d: "M13.7503 5.35354C13.555 5.15828 13.2385 5.15828 13.0432 5.35354L7.52373 10.873L5.52808 8.87735C5.33282 8.68209 5.01624 8.68209 4.82097 8.87735L4.35348 9.34484C4.15822 9.54011 4.15822 9.85669 4.35348 10.052L6.70268 12.4012L7.17018 12.8687C7.36544 13.0639 7.68203 13.0639 7.87729 12.8687L8.34478 12.4012L14.2178 6.52814C14.4131 6.33288 14.4131 6.0163 14.2178 5.82104L13.7503 5.35354Z",
|
|
50763
|
-
fill: "#FEFEFE"
|
|
50764
|
-
}), /*#__PURE__*/React__default.createElement("mask", {
|
|
50765
|
-
id: "mask0_3361_1486",
|
|
50766
|
-
style: {
|
|
50767
|
-
maskType: "luminance"
|
|
50768
|
-
},
|
|
50769
|
-
maskUnits: "userSpaceOnUse",
|
|
50770
|
-
x: "4",
|
|
50771
|
-
y: "5",
|
|
50772
|
-
width: "11",
|
|
50773
|
-
height: "9"
|
|
50774
|
-
}, /*#__PURE__*/React__default.createElement("path", {
|
|
50775
|
-
fillRule: "evenodd",
|
|
50776
|
-
clipRule: "evenodd",
|
|
50777
|
-
d: "M13.7503 5.35354C13.555 5.15828 13.2385 5.15828 13.0432 5.35354L7.52373 10.873L5.52808 8.87735C5.33282 8.68209 5.01624 8.68209 4.82097 8.87735L4.35348 9.34484C4.15822 9.54011 4.15822 9.85669 4.35348 10.052L6.70268 12.4012L7.17018 12.8687C7.36544 13.0639 7.68203 13.0639 7.87729 12.8687L8.34478 12.4012L14.2178 6.52814C14.4131 6.33288 14.4131 6.0163 14.2178 5.82104L13.7503 5.35354Z",
|
|
50778
|
-
fill: "white"
|
|
50779
|
-
})), /*#__PURE__*/React__default.createElement("g", {
|
|
50780
|
-
mask: "url(#mask0_3361_1486)"
|
|
50781
|
-
}, /*#__PURE__*/React__default.createElement("rect", {
|
|
50782
|
-
width: width,
|
|
50783
|
-
height: height,
|
|
50784
|
-
fill: color
|
|
50785
|
-
})));
|
|
50786
|
-
};
|
|
50787
|
-
|
|
50788
50415
|
var FilterableListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
50789
50416
|
var index = _ref.index,
|
|
50790
50417
|
option = _ref.option,
|
|
@@ -50793,31 +50420,28 @@ var FilterableListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
50793
50420
|
disabled = _ref.disabled,
|
|
50794
50421
|
tabIndex = _ref.tabIndex,
|
|
50795
50422
|
name = _ref.name,
|
|
50796
|
-
showDivider = _ref.showDivider,
|
|
50797
|
-
extraStyles = _ref.extraStyles,
|
|
50798
50423
|
themeValues = _ref.themeValues;
|
|
50799
|
-
|
|
50800
|
-
|
|
50424
|
+
return /*#__PURE__*/React__default.createElement(Box, {
|
|
50425
|
+
padding: "0",
|
|
50801
50426
|
key: index,
|
|
50427
|
+
extraStyles: "\n :hover,\n :active,\n :focus {\n background-color: ".concat(themeValues.primaryColor, ";\n }\n ")
|
|
50428
|
+
}, /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
50802
50429
|
ref: ref,
|
|
50803
50430
|
title: option.name,
|
|
50804
50431
|
name: option.name,
|
|
50805
|
-
role: "option",
|
|
50806
|
-
"aria-selected": checked,
|
|
50807
|
-
tabIndex: tabIndex,
|
|
50808
|
-
dataQa: "".concat(name, "-option-").concat(index),
|
|
50809
50432
|
checked: checked,
|
|
50810
50433
|
onChange: function onChange() {
|
|
50811
50434
|
return selectOption(option);
|
|
50812
50435
|
},
|
|
50813
50436
|
textExtraStyles: "font-size: 0.875rem; margin: 0;",
|
|
50814
50437
|
disabled: disabled,
|
|
50815
|
-
extraStyles: "\n
|
|
50816
|
-
checkboxMargin:
|
|
50817
|
-
|
|
50818
|
-
|
|
50819
|
-
|
|
50820
|
-
|
|
50438
|
+
extraStyles: "\n padding: 0.075rem 0.325rem; \n margin: 0;\n :hover,\n :active,\n :focus {\n background-color: ".concat(themeValues.primaryColor, ";\n }\n "),
|
|
50439
|
+
checkboxMargin: "0.3rem",
|
|
50440
|
+
role: "option",
|
|
50441
|
+
checkboxExtraStyles: "\n width: 1.375rem; \n height: 1.375rem;\n ".concat(checked && !disabled ? "background: " + themeValues.secondaryColor + ";" : "", "\n "),
|
|
50442
|
+
tabIndex: tabIndex,
|
|
50443
|
+
dataQa: "".concat(name, "-option-").concat(index)
|
|
50444
|
+
}));
|
|
50821
50445
|
});
|
|
50822
50446
|
|
|
50823
50447
|
var filterItemsList = function filterItemsList(list, searchTerm) {
|
|
@@ -50982,12 +50606,14 @@ var FilterableList = function FilterableList(_ref) {
|
|
|
50982
50606
|
handleKeyDown = _useKeyboardNavigatio.handleKeyDown;
|
|
50983
50607
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
50984
50608
|
id: id,
|
|
50985
|
-
padding: "0",
|
|
50986
50609
|
role: "listbox",
|
|
50987
|
-
|
|
50988
|
-
|
|
50989
|
-
|
|
50990
|
-
}, (sortedAppliedOptions === null || sortedAppliedOptions === void 0 ? void 0 : sortedAppliedOptions.length) > 0 && /*#__PURE__*/React__default.createElement(
|
|
50610
|
+
padding: "0",
|
|
50611
|
+
extraStyles: "\n overflow-y: auto;\n max-height: 250px;\n display: flex;\n flex-flow: column;\n ",
|
|
50612
|
+
onKeyDown: handleKeyDown
|
|
50613
|
+
}, (sortedAppliedOptions === null || sortedAppliedOptions === void 0 ? void 0 : sortedAppliedOptions.length) > 0 && /*#__PURE__*/React__default.createElement(Box, {
|
|
50614
|
+
padding: "0",
|
|
50615
|
+
extraStyles: sortedOptions.length > 0 && "border-bottom: 1px solid ".concat(GHOST_GREY)
|
|
50616
|
+
}, sortedAppliedOptions.map(function (option, index) {
|
|
50991
50617
|
var checked = isChecked(option, selectedOptions);
|
|
50992
50618
|
var tabIndex = index === focusedIndex || index === 0 && focusedIndex === -1 ? "0" : "-1";
|
|
50993
50619
|
return /*#__PURE__*/React__default.createElement(FilterableListItem, {
|
|
@@ -51001,10 +50627,9 @@ var FilterableList = function FilterableList(_ref) {
|
|
|
51001
50627
|
selectOption: handleSelectOption,
|
|
51002
50628
|
tabIndex: tabIndex,
|
|
51003
50629
|
name: name,
|
|
51004
|
-
themeValues: themeValues
|
|
51005
|
-
showDivider: sortedOptions.length > 0 && index === sortedAppliedOptions.length - 1
|
|
50630
|
+
themeValues: themeValues
|
|
51006
50631
|
});
|
|
51007
|
-
})),
|
|
50632
|
+
})), sortedOptions.map(function (option, index) {
|
|
51008
50633
|
var checked = isChecked(option, selectedOptions);
|
|
51009
50634
|
var isDisabled = isMaxSelectionReached(maxSelections, selectedOptions) && !checked;
|
|
51010
50635
|
var indexOffset = sortedAppliedOptions !== null && sortedAppliedOptions !== void 0 && sortedAppliedOptions.length ? sortedAppliedOptions === null || sortedAppliedOptions === void 0 ? void 0 : sortedAppliedOptions.length : 0;
|
|
@@ -51024,7 +50649,7 @@ var FilterableList = function FilterableList(_ref) {
|
|
|
51024
50649
|
name: name,
|
|
51025
50650
|
themeValues: themeValues
|
|
51026
50651
|
});
|
|
51027
|
-
}))
|
|
50652
|
+
}));
|
|
51028
50653
|
};
|
|
51029
50654
|
var FilterableList$1 = /*#__PURE__*/React__default.memo(FilterableList);
|
|
51030
50655
|
|
|
@@ -51032,9 +50657,7 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
51032
50657
|
var actions = _ref.actions,
|
|
51033
50658
|
autocompleteValue = _ref.autocompleteValue,
|
|
51034
50659
|
btnContentOverride = _ref.btnContentOverride,
|
|
51035
|
-
btnExtraStyles = _ref.btnExtraStyles,
|
|
51036
50660
|
disabled = _ref.disabled,
|
|
51037
|
-
dropdownExtraStyles = _ref.dropdownExtraStyles,
|
|
51038
50661
|
extraStyles = _ref.extraStyles,
|
|
51039
50662
|
fields = _ref.fields,
|
|
51040
50663
|
filterLabel = _ref.filterLabel,
|
|
@@ -51053,6 +50676,8 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
51053
50676
|
placeholder = _ref$placeholder === void 0 ? "Search" : _ref$placeholder,
|
|
51054
50677
|
_ref$searchable = _ref.searchable,
|
|
51055
50678
|
searchable = _ref$searchable === void 0 ? true : _ref$searchable,
|
|
50679
|
+
selectedOptions = _ref.selectedOptions,
|
|
50680
|
+
setSelectedOptions = _ref.setSelectedOptions,
|
|
51056
50681
|
themeValues = _ref.themeValues,
|
|
51057
50682
|
_ref$truncateBtnTextW = _ref.truncateBtnTextWidth,
|
|
51058
50683
|
truncateBtnTextWidth = _ref$truncateBtnTextW === void 0 ? "15rem" : _ref$truncateBtnTextW;
|
|
@@ -51062,29 +50687,22 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
51062
50687
|
setOpened = _useState2[1];
|
|
51063
50688
|
var _useState3 = React.useState([]),
|
|
51064
50689
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
51065
|
-
|
|
51066
|
-
|
|
51067
|
-
var
|
|
51068
|
-
|
|
51069
|
-
|
|
51070
|
-
|
|
51071
|
-
var openedRef = React.useRef(opened);
|
|
51072
|
-
var handleOnClose = function handleOnClose() {
|
|
51073
|
-
if (openedRef.current) {
|
|
51074
|
-
setOpened(false);
|
|
51075
|
-
actions.fields.searchTerm.set("");
|
|
51076
|
-
}
|
|
50690
|
+
appliedOptions = _useState4[0],
|
|
50691
|
+
setAppliedOptions = _useState4[1];
|
|
50692
|
+
var handleClickOutsideContainer = function handleClickOutsideContainer() {
|
|
50693
|
+
setOpened(false);
|
|
50694
|
+
actions.fields.searchTerm.set("");
|
|
50695
|
+
onApply(selectedOptions);
|
|
51077
50696
|
};
|
|
51078
50697
|
var containerRef = useOutsideClickHook(function () {
|
|
51079
|
-
return
|
|
50698
|
+
return handleClickOutsideContainer();
|
|
51080
50699
|
});
|
|
51081
50700
|
var dropdownRef = React.useRef(null);
|
|
51082
50701
|
var filterButtonRef = React.useRef(null);
|
|
51083
50702
|
var applyFilterButtonRef = React.useRef(null);
|
|
51084
50703
|
var filterDropdownID = "".concat(name, "-filter-dropdown");
|
|
51085
|
-
var
|
|
50704
|
+
var checkboxListID = "".concat(name, "-checkbox-list");
|
|
51086
50705
|
React.useEffect(function () {
|
|
51087
|
-
openedRef.current = opened;
|
|
51088
50706
|
if (!opened) {
|
|
51089
50707
|
onApply(selectedOptions);
|
|
51090
50708
|
setAppliedOptions(selectedOptions);
|
|
@@ -51101,7 +50719,9 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
51101
50719
|
or tabbing backward past the filter button.
|
|
51102
50720
|
*/
|
|
51103
50721
|
if (event.key === "Escape" || event.key === "Tab" && !event.shiftKey && applyFilterButtonRef.current && applyFilterButtonRef.current.contains(event.target) || event.key === "Tab" && event.shiftKey && filterButtonRef.current && filterButtonRef.current.contains(event.target)) {
|
|
51104
|
-
|
|
50722
|
+
setOpened(false);
|
|
50723
|
+
actions.fields.searchTerm.set("");
|
|
50724
|
+
onApply(selectedOptions);
|
|
51105
50725
|
}
|
|
51106
50726
|
};
|
|
51107
50727
|
document.addEventListener("keydown", handleKeyDown);
|
|
@@ -51120,25 +50740,20 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
51120
50740
|
setOpened(!opened);
|
|
51121
50741
|
},
|
|
51122
50742
|
opened: opened,
|
|
51123
|
-
|
|
51124
|
-
|
|
51125
|
-
textColor: appliedOptions !== null && appliedOptions !== void 0 && appliedOptions.length ? WHITE : CHARADE_GREY,
|
|
51126
|
-
textHoverColor: opened && !(appliedOptions !== null && appliedOptions !== void 0 && appliedOptions.length) ? CHARADE_GREY : WHITE,
|
|
50743
|
+
backgroundColor: opened ? themeValues.primaryColor : selectedOptions !== null && selectedOptions !== void 0 && selectedOptions.length ? themeValues.secondaryColor : WHITE,
|
|
50744
|
+
contentColor: !opened && selectedOptions !== null && selectedOptions !== void 0 && selectedOptions.length ? WHITE : CHARADE_GREY,
|
|
51127
50745
|
name: name,
|
|
51128
50746
|
filterDropdownID: filterDropdownID,
|
|
51129
50747
|
hasIcon: hasIcon,
|
|
51130
50748
|
icon: Icon,
|
|
51131
50749
|
truncateBtnTextWidth: truncateBtnTextWidth,
|
|
51132
50750
|
filterLabel: filterLabel,
|
|
51133
|
-
selectedOptions: selectedOptions
|
|
51134
|
-
extraStyles: btnExtraStyles
|
|
50751
|
+
selectedOptions: selectedOptions
|
|
51135
50752
|
}), /*#__PURE__*/React__default.createElement(FilterDropdown, {
|
|
51136
50753
|
id: filterDropdownID,
|
|
51137
50754
|
ref: dropdownRef,
|
|
51138
|
-
ariaOwns:
|
|
51139
|
-
|
|
51140
|
-
opened: opened,
|
|
51141
|
-
extraStyles: dropdownExtraStyles
|
|
50755
|
+
ariaOwns: checkboxListID,
|
|
50756
|
+
opened: opened
|
|
51142
50757
|
}, /*#__PURE__*/React__default.createElement(SearchBox, {
|
|
51143
50758
|
showSearchBox: searchable && (options === null || options === void 0 ? void 0 : options.length) > 8,
|
|
51144
50759
|
autocompleteValue: autocompleteValue,
|
|
@@ -51147,7 +50762,7 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
51147
50762
|
placeholder: placeholder,
|
|
51148
50763
|
disabled: disabled
|
|
51149
50764
|
}), /*#__PURE__*/React__default.createElement(FilterableList$1, {
|
|
51150
|
-
id:
|
|
50765
|
+
id: checkboxListID,
|
|
51151
50766
|
options: options,
|
|
51152
50767
|
appliedOptions: appliedOptions,
|
|
51153
50768
|
themeValues: themeValues,
|
|
@@ -51161,21 +50776,22 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
51161
50776
|
extraStyles: "\n max-height: 100px; \n display: flex; \n flex-flow: row; \n justify-content: space-between;\n border-top: 1px solid ".concat(GHOST_GREY, ";\n ")
|
|
51162
50777
|
}, /*#__PURE__*/React__default.createElement(ActionLinkButton, {
|
|
51163
50778
|
action: function action() {
|
|
50779
|
+
setOpened(false);
|
|
51164
50780
|
setSelectedOptions([]);
|
|
51165
|
-
|
|
50781
|
+
actions.fields.searchTerm.set("");
|
|
51166
50782
|
onClear();
|
|
51167
50783
|
},
|
|
51168
50784
|
text: "Clear",
|
|
51169
|
-
dataQa: "".concat(name, "-clear-filters")
|
|
51170
|
-
ariaLabel: "Clear all filters"
|
|
50785
|
+
dataQa: "".concat(name, "-clear-filters")
|
|
51171
50786
|
}), /*#__PURE__*/React__default.createElement(ActionLinkButton, {
|
|
51172
50787
|
ref: applyFilterButtonRef,
|
|
51173
50788
|
action: function action() {
|
|
51174
|
-
|
|
50789
|
+
setOpened(false);
|
|
50790
|
+
actions.fields.searchTerm.set("");
|
|
50791
|
+
onApply(selectedOptions);
|
|
51175
50792
|
},
|
|
51176
50793
|
text: "Apply",
|
|
51177
|
-
dataQa: "".concat(name, "-apply-filters")
|
|
51178
|
-
ariaLabel: "Apply all filters"
|
|
50794
|
+
dataQa: "".concat(name, "-apply-filters")
|
|
51179
50795
|
}))));
|
|
51180
50796
|
};
|
|
51181
50797
|
var MultipleSelectFilter$1 = themeComponent(MultipleSelectFilter, "MultipleSelectFilter", fallbackValues$_);
|
|
@@ -51612,13 +51228,11 @@ exports.PaymentFormCard = PaymentFormCard$1;
|
|
|
51612
51228
|
exports.PaymentMethodAddIcon = PaymentMethodAddIcon$1;
|
|
51613
51229
|
exports.PaymentMethodIcon = PaymentMethodIcon$1;
|
|
51614
51230
|
exports.PaymentSearchIcon = PaymentSearchIcon;
|
|
51615
|
-
exports.PaymentStatusIcon = PaymentStatusIcon;
|
|
51616
51231
|
exports.PaymentsIconSmall = PaymentsIconSmall$1;
|
|
51617
51232
|
exports.PencilIcon = PencilIcon$1;
|
|
51618
51233
|
exports.PendingIcon = PendingIcon;
|
|
51619
51234
|
exports.PeriscopeDashboardIframe = PeriscopeDashboardIframe;
|
|
51620
51235
|
exports.PeriscopeFailedIcon = PeriscopeFailedIcon;
|
|
51621
|
-
exports.PersonIcon = PersonIcon;
|
|
51622
51236
|
exports.PhoneForm = PhoneForm;
|
|
51623
51237
|
exports.Placeholder = Placeholder$1;
|
|
51624
51238
|
exports.PlusCircleIcon = PlusCircleIcon;
|