@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.esm.js
CHANGED
|
@@ -228,58 +228,6 @@ function __rest(s, e) {
|
|
|
228
228
|
t[p[i]] = s[p[i]];
|
|
229
229
|
}
|
|
230
230
|
return t;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
/*! *****************************************************************************
|
|
234
|
-
Copyright (c) Microsoft Corporation.
|
|
235
|
-
|
|
236
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
237
|
-
purpose with or without fee is hereby granted.
|
|
238
|
-
|
|
239
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
240
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
241
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
242
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
243
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
244
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
245
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
246
|
-
***************************************************************************** */
|
|
247
|
-
/* global Reflect, Promise */
|
|
248
|
-
|
|
249
|
-
var extendStatics$1 = function(d, b) {
|
|
250
|
-
extendStatics$1 = Object.setPrototypeOf ||
|
|
251
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
252
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
253
|
-
return extendStatics$1(d, b);
|
|
254
|
-
};
|
|
255
|
-
|
|
256
|
-
function __extends$1(d, b) {
|
|
257
|
-
extendStatics$1(d, b);
|
|
258
|
-
function __() { this.constructor = d; }
|
|
259
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
var __assign$1 = function() {
|
|
263
|
-
__assign$1 = Object.assign || function __assign(t) {
|
|
264
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
265
|
-
s = arguments[i];
|
|
266
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
267
|
-
}
|
|
268
|
-
return t;
|
|
269
|
-
};
|
|
270
|
-
return __assign$1.apply(this, arguments);
|
|
271
|
-
};
|
|
272
|
-
|
|
273
|
-
function __rest$1(s, e) {
|
|
274
|
-
var t = {};
|
|
275
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
276
|
-
t[p] = s[p];
|
|
277
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
278
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
279
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
280
|
-
t[p[i]] = s[p[i]];
|
|
281
|
-
}
|
|
282
|
-
return t;
|
|
283
231
|
}
|
|
284
232
|
|
|
285
233
|
function __spreadArrays() {
|
|
@@ -290,32 +238,6 @@ function __spreadArrays() {
|
|
|
290
238
|
return r;
|
|
291
239
|
}
|
|
292
240
|
|
|
293
|
-
/*! *****************************************************************************
|
|
294
|
-
Copyright (c) Microsoft Corporation.
|
|
295
|
-
|
|
296
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
297
|
-
purpose with or without fee is hereby granted.
|
|
298
|
-
|
|
299
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
300
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
301
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
302
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
303
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
304
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
305
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
306
|
-
***************************************************************************** */
|
|
307
|
-
|
|
308
|
-
var __assign$2 = function() {
|
|
309
|
-
__assign$2 = Object.assign || function __assign(t) {
|
|
310
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
311
|
-
s = arguments[i];
|
|
312
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
313
|
-
}
|
|
314
|
-
return t;
|
|
315
|
-
};
|
|
316
|
-
return __assign$2.apply(this, arguments);
|
|
317
|
-
};
|
|
318
|
-
|
|
319
241
|
var clamp = function (min, max) { return function (v) {
|
|
320
242
|
return Math.max(Math.min(v, max), min);
|
|
321
243
|
}; };
|
|
@@ -329,8 +251,8 @@ var number = {
|
|
|
329
251
|
parse: parseFloat,
|
|
330
252
|
transform: function (v) { return v; }
|
|
331
253
|
};
|
|
332
|
-
var alpha = __assign
|
|
333
|
-
var scale = __assign
|
|
254
|
+
var alpha = __assign(__assign({}, number), { transform: clamp(0, 1) });
|
|
255
|
+
var scale = __assign(__assign({}, number), { default: 1 });
|
|
334
256
|
|
|
335
257
|
var createUnitType = function (unit) { return ({
|
|
336
258
|
test: function (v) {
|
|
@@ -344,7 +266,7 @@ var percent = createUnitType('%');
|
|
|
344
266
|
var px = createUnitType('px');
|
|
345
267
|
var vh = createUnitType('vh');
|
|
346
268
|
var vw = createUnitType('vw');
|
|
347
|
-
var progressPercentage = __assign
|
|
269
|
+
var progressPercentage = __assign(__assign({}, percent), { parse: function (v) { return percent.parse(v) / 100; }, transform: function (v) { return percent.transform(v * 100); } });
|
|
348
270
|
|
|
349
271
|
var getValueFromFunctionString = function (value) {
|
|
350
272
|
return value.substring(value.indexOf('(') + 1, value.lastIndexOf(')'));
|
|
@@ -378,7 +300,7 @@ var hslaTemplate = function (_a) {
|
|
|
378
300
|
var hue = _a.hue, saturation = _a.saturation, lightness = _a.lightness, _b = _a.alpha, alpha = _b === void 0 ? 1 : _b;
|
|
379
301
|
return "hsla(" + hue + ", " + saturation + ", " + lightness + ", " + alpha + ")";
|
|
380
302
|
};
|
|
381
|
-
var rgbUnit = __assign
|
|
303
|
+
var rgbUnit = __assign(__assign({}, number), { transform: function (v) { return Math.round(clampRgbUnit(v)); } });
|
|
382
304
|
function isColorString(color, colorType) {
|
|
383
305
|
return color.startsWith(colorType) && singleColorRegex.test(color);
|
|
384
306
|
}
|
|
@@ -408,7 +330,7 @@ var hsla = {
|
|
|
408
330
|
});
|
|
409
331
|
}
|
|
410
332
|
};
|
|
411
|
-
var hex = __assign
|
|
333
|
+
var hex = __assign(__assign({}, rgba), { test: function (v) { return typeof v === 'string' && isColorString(v, '#'); }, parse: function (v) {
|
|
412
334
|
var r = '';
|
|
413
335
|
var g = '';
|
|
414
336
|
var b = '';
|
|
@@ -944,15 +866,15 @@ See the Apache Version 2.0 License for specific language governing permissions
|
|
|
944
866
|
and limitations under the License.
|
|
945
867
|
***************************************************************************** */
|
|
946
868
|
|
|
947
|
-
var __assign$
|
|
948
|
-
__assign$
|
|
869
|
+
var __assign$1 = function() {
|
|
870
|
+
__assign$1 = Object.assign || function __assign(t) {
|
|
949
871
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
950
872
|
s = arguments[i];
|
|
951
873
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
952
874
|
}
|
|
953
875
|
return t;
|
|
954
876
|
};
|
|
955
|
-
return __assign$
|
|
877
|
+
return __assign$1.apply(this, arguments);
|
|
956
878
|
};
|
|
957
879
|
|
|
958
880
|
var mixLinearColor = function (from, to, v) {
|
|
@@ -975,7 +897,7 @@ var mixColor = (function (from, to) {
|
|
|
975
897
|
invariant(fromColorType.transform === toColorType.transform, 'Both colors must be hex/RGBA, OR both must be HSLA.');
|
|
976
898
|
var fromColor = fromColorType.parse(from);
|
|
977
899
|
var toColor = toColorType.parse(to);
|
|
978
|
-
var blended = __assign$
|
|
900
|
+
var blended = __assign$1({}, fromColor);
|
|
979
901
|
var mixFunc = fromColorType === hsla ? mix : mixLinearColor;
|
|
980
902
|
return function (v) {
|
|
981
903
|
for (var key in blended) {
|
|
@@ -1020,7 +942,7 @@ var mixArray = function (from, to) {
|
|
|
1020
942
|
};
|
|
1021
943
|
};
|
|
1022
944
|
var mixObject = function (origin, target) {
|
|
1023
|
-
var output = __assign$
|
|
945
|
+
var output = __assign$1({}, origin, target);
|
|
1024
946
|
var blendValue = {};
|
|
1025
947
|
for (var key in output) {
|
|
1026
948
|
if (origin[key] !== undefined && target[key] !== undefined) {
|
|
@@ -1232,44 +1154,6 @@ var wrap$1 = curryRange(wrap);
|
|
|
1232
1154
|
|
|
1233
1155
|
var clampProgress = clamp$1$1(0, 1);
|
|
1234
1156
|
|
|
1235
|
-
/*! *****************************************************************************
|
|
1236
|
-
Copyright (c) Microsoft Corporation.
|
|
1237
|
-
|
|
1238
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
1239
|
-
purpose with or without fee is hereby granted.
|
|
1240
|
-
|
|
1241
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
1242
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
1243
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
1244
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
1245
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
1246
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1247
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
1248
|
-
***************************************************************************** */
|
|
1249
|
-
|
|
1250
|
-
var __assign$4 = function() {
|
|
1251
|
-
__assign$4 = Object.assign || function __assign(t) {
|
|
1252
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
1253
|
-
s = arguments[i];
|
|
1254
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
1255
|
-
}
|
|
1256
|
-
return t;
|
|
1257
|
-
};
|
|
1258
|
-
return __assign$4.apply(this, arguments);
|
|
1259
|
-
};
|
|
1260
|
-
|
|
1261
|
-
function __rest$2(s, e) {
|
|
1262
|
-
var t = {};
|
|
1263
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
1264
|
-
t[p] = s[p];
|
|
1265
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
1266
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
1267
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
1268
|
-
t[p[i]] = s[p[i]];
|
|
1269
|
-
}
|
|
1270
|
-
return t;
|
|
1271
|
-
}
|
|
1272
|
-
|
|
1273
1157
|
var createStyler = function (_a) {
|
|
1274
1158
|
var onRead = _a.onRead,
|
|
1275
1159
|
onRender = _a.onRender,
|
|
@@ -1281,7 +1165,7 @@ var createStyler = function (_a) {
|
|
|
1281
1165
|
if (_a === void 0) {
|
|
1282
1166
|
_a = {};
|
|
1283
1167
|
}
|
|
1284
|
-
var props = __rest
|
|
1168
|
+
var props = __rest(_a, []);
|
|
1285
1169
|
var state = {};
|
|
1286
1170
|
var changedValues = [];
|
|
1287
1171
|
var hasChanged = false;
|
|
@@ -1401,7 +1285,7 @@ function isTransformOriginProp(key) {
|
|
|
1401
1285
|
return transformOriginProps.has(key);
|
|
1402
1286
|
}
|
|
1403
1287
|
|
|
1404
|
-
var int = /*#__PURE__*/__assign
|
|
1288
|
+
var int = /*#__PURE__*/__assign( /*#__PURE__*/__assign({}, number), { transform: Math.round });
|
|
1405
1289
|
var valueTypes = {
|
|
1406
1290
|
color: color,
|
|
1407
1291
|
backgroundColor: color,
|
|
@@ -1633,8 +1517,8 @@ function createCssStyler(element, _a) {
|
|
|
1633
1517
|
}
|
|
1634
1518
|
var enableHardwareAcceleration = _a.enableHardwareAcceleration,
|
|
1635
1519
|
allowTransformNone = _a.allowTransformNone,
|
|
1636
|
-
props = __rest
|
|
1637
|
-
return cssStyler(__assign
|
|
1520
|
+
props = __rest(_a, ["enableHardwareAcceleration", "allowTransformNone"]);
|
|
1521
|
+
return cssStyler(__assign({ element: element, buildStyles: createStyleBuilder({
|
|
1638
1522
|
enableHardwareAcceleration: enableHardwareAcceleration,
|
|
1639
1523
|
allowTransformNone: allowTransformNone
|
|
1640
1524
|
}), preparseOutput: true }, props));
|
|
@@ -1684,7 +1568,7 @@ function buildSVGAttrs(_a, dimensions, totalPathLength, cssBuilder, attrs, isDas
|
|
|
1684
1568
|
pathSpacing = _b === void 0 ? 1 : _b,
|
|
1685
1569
|
_c = _a.pathOffset,
|
|
1686
1570
|
pathOffset = _c === void 0 ? 0 : _c,
|
|
1687
|
-
state = __rest
|
|
1571
|
+
state = __rest(_a, ["attrX", "attrY", "originX", "originY", "pathLength", "pathSpacing", "pathOffset"]);
|
|
1688
1572
|
var style = cssBuilder(state);
|
|
1689
1573
|
for (var key in style) {
|
|
1690
1574
|
if (key === 'transform') {
|
|
@@ -1813,7 +1697,7 @@ var Chainable = /*#__PURE__*/function () {
|
|
|
1813
1697
|
this.props = props;
|
|
1814
1698
|
}
|
|
1815
1699
|
Chainable.prototype.applyMiddleware = function (middleware) {
|
|
1816
|
-
return this.create(__assign
|
|
1700
|
+
return this.create(__assign(__assign({}, this.props), { middleware: this.props.middleware ? __spreadArrays([middleware], this.props.middleware) : [middleware] }));
|
|
1817
1701
|
};
|
|
1818
1702
|
Chainable.prototype.pipe = function () {
|
|
1819
1703
|
var funcs = [];
|
|
@@ -1885,7 +1769,7 @@ var createObserver = function (observerCandidate, _a, onComplete) {
|
|
|
1885
1769
|
};
|
|
1886
1770
|
|
|
1887
1771
|
var Action = /*#__PURE__*/function (_super) {
|
|
1888
|
-
__extends
|
|
1772
|
+
__extends(Action, _super);
|
|
1889
1773
|
function Action() {
|
|
1890
1774
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1891
1775
|
}
|
|
@@ -1904,13 +1788,13 @@ var Action = /*#__PURE__*/function (_super) {
|
|
|
1904
1788
|
};
|
|
1905
1789
|
var _a = this.props,
|
|
1906
1790
|
init = _a.init,
|
|
1907
|
-
observerProps = __rest
|
|
1791
|
+
observerProps = __rest(_a, ["init"]);
|
|
1908
1792
|
var observer = createObserver(observerCandidate, observerProps, function () {
|
|
1909
1793
|
isComplete = true;
|
|
1910
1794
|
subscription.stop();
|
|
1911
1795
|
});
|
|
1912
1796
|
var api = init(observer);
|
|
1913
|
-
subscription = api ? __assign
|
|
1797
|
+
subscription = api ? __assign(__assign({}, subscription), api) : subscription;
|
|
1914
1798
|
if (observerCandidate.registerParent) {
|
|
1915
1799
|
observerCandidate.registerParent(subscription);
|
|
1916
1800
|
}
|
|
@@ -1924,7 +1808,7 @@ var action = function (init) {
|
|
|
1924
1808
|
};
|
|
1925
1809
|
|
|
1926
1810
|
var BaseMulticast = /*#__PURE__*/function (_super) {
|
|
1927
|
-
__extends
|
|
1811
|
+
__extends(BaseMulticast, _super);
|
|
1928
1812
|
function BaseMulticast() {
|
|
1929
1813
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
1930
1814
|
_this.subscribers = [];
|
|
@@ -1984,7 +1868,7 @@ var isSingleValue = function (v) {
|
|
|
1984
1868
|
return typeOfV === 'string' || typeOfV === 'number';
|
|
1985
1869
|
};
|
|
1986
1870
|
var ValueReaction = /*#__PURE__*/function (_super) {
|
|
1987
|
-
__extends
|
|
1871
|
+
__extends(ValueReaction, _super);
|
|
1988
1872
|
function ValueReaction(props) {
|
|
1989
1873
|
var _this = _super.call(this, props) || this;
|
|
1990
1874
|
_this.scheduleVelocityCheck = function () {
|
|
@@ -2234,7 +2118,7 @@ var reduceArrayValue = function (i) {
|
|
|
2234
2118
|
var createArrayAction = function (action, props, vectorKeys) {
|
|
2235
2119
|
var firstVectorKey = vectorKeys[0];
|
|
2236
2120
|
var actionList = props[firstVectorKey].map(function (v, i) {
|
|
2237
|
-
var childActionProps = vectorKeys.reduce(reduceArrayValue(i), __assign
|
|
2121
|
+
var childActionProps = vectorKeys.reduce(reduceArrayValue(i), __assign({}, props));
|
|
2238
2122
|
return getActionCreator(v)(action, childActionProps);
|
|
2239
2123
|
});
|
|
2240
2124
|
return parallel$1.apply(void 0, actionList);
|
|
@@ -2248,7 +2132,7 @@ var reduceObjectValue = function (key) {
|
|
|
2248
2132
|
var createObjectAction = function (action, props, vectorKeys) {
|
|
2249
2133
|
var firstVectorKey = vectorKeys[0];
|
|
2250
2134
|
var actionMap = Object.keys(props[firstVectorKey]).reduce(function (map, key) {
|
|
2251
|
-
var childActionProps = vectorKeys.reduce(reduceObjectValue(key), __assign
|
|
2135
|
+
var childActionProps = vectorKeys.reduce(reduceObjectValue(key), __assign({}, props));
|
|
2252
2136
|
map[key] = getActionCreator(props[firstVectorKey][key])(action, childActionProps);
|
|
2253
2137
|
return map;
|
|
2254
2138
|
}, {});
|
|
@@ -2257,18 +2141,18 @@ var createObjectAction = function (action, props, vectorKeys) {
|
|
|
2257
2141
|
var createUnitAction = function (action, _a) {
|
|
2258
2142
|
var from = _a.from,
|
|
2259
2143
|
to = _a.to,
|
|
2260
|
-
props = __rest
|
|
2144
|
+
props = __rest(_a, ["from", "to"]);
|
|
2261
2145
|
var unitType = findUnitType(from) || findUnitType(to);
|
|
2262
2146
|
var transform = unitType.transform,
|
|
2263
2147
|
parse = unitType.parse;
|
|
2264
|
-
return action(__assign
|
|
2148
|
+
return action(__assign(__assign({}, props), { from: typeof from === 'string' ? parse(from) : from, to: typeof to === 'string' ? parse(to) : to })).pipe(transform);
|
|
2265
2149
|
};
|
|
2266
2150
|
var createMixerAction = function (mixer) {
|
|
2267
2151
|
return function (action, _a) {
|
|
2268
2152
|
var from = _a.from,
|
|
2269
2153
|
to = _a.to,
|
|
2270
|
-
props = __rest
|
|
2271
|
-
return action(__assign
|
|
2154
|
+
props = __rest(_a, ["from", "to"]);
|
|
2155
|
+
return action(__assign(__assign({}, props), { from: 0, to: 1 })).pipe(mixer(from, to));
|
|
2272
2156
|
};
|
|
2273
2157
|
};
|
|
2274
2158
|
var createColorAction = /*#__PURE__*/createMixerAction(mixColor);
|
|
@@ -2614,7 +2498,7 @@ var keyframes = function (_a) {
|
|
|
2614
2498
|
ease = _b === void 0 ? linear : _b,
|
|
2615
2499
|
times = _a.times,
|
|
2616
2500
|
values = _a.values,
|
|
2617
|
-
tweenProps = __rest
|
|
2501
|
+
tweenProps = __rest(_a, ["easings", "ease", "times", "values"]);
|
|
2618
2502
|
easings = Array.isArray(easings) ? easings : defaultEasings(values, easings);
|
|
2619
2503
|
times = times || defaultTimings(values);
|
|
2620
2504
|
var scrubbers = easings.map(function (easing, i) {
|
|
@@ -2624,7 +2508,7 @@ var keyframes = function (_a) {
|
|
|
2624
2508
|
ease: easing
|
|
2625
2509
|
});
|
|
2626
2510
|
});
|
|
2627
|
-
return tween(__assign
|
|
2511
|
+
return tween(__assign(__assign({}, tweenProps), { ease: ease })).applyMiddleware(function (update) {
|
|
2628
2512
|
return interpolateScrubbers(times, scrubbers, update);
|
|
2629
2513
|
});
|
|
2630
2514
|
};
|
|
@@ -2868,7 +2752,7 @@ var index$1 = function (_a) {
|
|
|
2868
2752
|
}
|
|
2869
2753
|
var x = _a.x,
|
|
2870
2754
|
y = _a.y,
|
|
2871
|
-
props = __rest
|
|
2755
|
+
props = __rest(_a, ["x", "y"]);
|
|
2872
2756
|
if (x !== undefined || y !== undefined) {
|
|
2873
2757
|
var applyXOffset_1 = applyOffset(x || 0);
|
|
2874
2758
|
var applyYOffset_1 = applyOffset(y || 0);
|
|
@@ -2942,7 +2826,7 @@ var steps$1 = function (st, min, max) {
|
|
|
2942
2826
|
};
|
|
2943
2827
|
var transformMap = function (childTransformers) {
|
|
2944
2828
|
return function (v) {
|
|
2945
|
-
var output = __assign
|
|
2829
|
+
var output = __assign({}, v);
|
|
2946
2830
|
for (var key in childTransformers) {
|
|
2947
2831
|
if (childTransformers.hasOwnProperty(key)) {
|
|
2948
2832
|
var childTransformer = childTransformers[key];
|
|
@@ -2973,52 +2857,6 @@ var transformers = /*#__PURE__*/Object.freeze({
|
|
|
2973
2857
|
transformMap: transformMap
|
|
2974
2858
|
});
|
|
2975
2859
|
|
|
2976
|
-
/*! *****************************************************************************
|
|
2977
|
-
Copyright (c) Microsoft Corporation.
|
|
2978
|
-
|
|
2979
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
2980
|
-
purpose with or without fee is hereby granted.
|
|
2981
|
-
|
|
2982
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
2983
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
2984
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
2985
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
2986
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
2987
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
2988
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
2989
|
-
***************************************************************************** */
|
|
2990
|
-
|
|
2991
|
-
var __assign$5 = function() {
|
|
2992
|
-
__assign$5 = Object.assign || function __assign(t) {
|
|
2993
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
2994
|
-
s = arguments[i];
|
|
2995
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
2996
|
-
}
|
|
2997
|
-
return t;
|
|
2998
|
-
};
|
|
2999
|
-
return __assign$5.apply(this, arguments);
|
|
3000
|
-
};
|
|
3001
|
-
|
|
3002
|
-
function __rest$3(s, e) {
|
|
3003
|
-
var t = {};
|
|
3004
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
3005
|
-
t[p] = s[p];
|
|
3006
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
3007
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
3008
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
3009
|
-
t[p[i]] = s[p[i]];
|
|
3010
|
-
}
|
|
3011
|
-
return t;
|
|
3012
|
-
}
|
|
3013
|
-
|
|
3014
|
-
function __spreadArrays$1() {
|
|
3015
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
3016
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
3017
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
3018
|
-
r[k] = a[j];
|
|
3019
|
-
return r;
|
|
3020
|
-
}
|
|
3021
|
-
|
|
3022
2860
|
var getPoseValues = function (_a) {
|
|
3023
2861
|
var transition = _a.transition,
|
|
3024
2862
|
flip = _a.flip,
|
|
@@ -3031,7 +2869,7 @@ var getPoseValues = function (_a) {
|
|
|
3031
2869
|
preTransition = _a.preTransition,
|
|
3032
2870
|
applyAtStart = _a.applyAtStart,
|
|
3033
2871
|
applyAtEnd = _a.applyAtEnd,
|
|
3034
|
-
props = __rest
|
|
2872
|
+
props = __rest(_a, ["transition", "flip", "delay", "delayChildren", "staggerChildren", "staggerDirection", "afterChildren", "beforeChildren", "preTransition", "applyAtStart", "applyAtEnd"]);
|
|
3035
2873
|
return props;
|
|
3036
2874
|
};
|
|
3037
2875
|
var selectPoses = function (_a) {
|
|
@@ -3043,7 +2881,7 @@ var selectPoses = function (_a) {
|
|
|
3043
2881
|
onChange = _a.onChange,
|
|
3044
2882
|
passive = _a.passive,
|
|
3045
2883
|
initialPose = _a.initialPose,
|
|
3046
|
-
poses = __rest
|
|
2884
|
+
poses = __rest(_a, ["label", "props", "values", "parentValues", "ancestorValues", "onChange", "passive", "initialPose"]);
|
|
3047
2885
|
return poses;
|
|
3048
2886
|
};
|
|
3049
2887
|
var selectAllValues = function (values, selectValue) {
|
|
@@ -3143,7 +2981,7 @@ var createPoseSetter = function (setterProps) {
|
|
|
3143
2981
|
var _a = nextProps.delay,
|
|
3144
2982
|
delay = _a === void 0 ? 0 : _a;
|
|
3145
2983
|
var hasChildren = children.size;
|
|
3146
|
-
var baseTransitionProps = __assign
|
|
2984
|
+
var baseTransitionProps = __assign(__assign({}, props), nextProps);
|
|
3147
2985
|
var nextPose = poses[next];
|
|
3148
2986
|
var getChildAnimations = function () {
|
|
3149
2987
|
return hasChildren && propagate ? startChildAnimations(children, next, nextPose, baseTransitionProps) : [];
|
|
@@ -3169,11 +3007,11 @@ var createPoseSetter = function (setterProps) {
|
|
|
3169
3007
|
valuePoses.splice(insertionIndex, 0, next);
|
|
3170
3008
|
return insertionIndex === 0 ? new Promise(function (complete) {
|
|
3171
3009
|
var value = values.get(key);
|
|
3172
|
-
var transitionProps = __assign
|
|
3010
|
+
var transitionProps = __assign(__assign({}, baseTransitionProps), { key: key,
|
|
3173
3011
|
value: value });
|
|
3174
3012
|
var target = resolveTarget(value, resolveProp(nextPose[key], transitionProps));
|
|
3175
3013
|
if (activeActions.has(key)) stopAction(activeActions.get(key));
|
|
3176
|
-
var resolveTransitionProps = __assign
|
|
3014
|
+
var resolveTransitionProps = __assign(__assign({ to: target }, transitionProps), getTransitionProps(value, target, transitionProps));
|
|
3177
3015
|
var transition = resolveTransition(getTransition, key, value, resolveTransitionProps, convertTransitionDefinition, getInstantTransition);
|
|
3178
3016
|
var poseDelay = delay || resolveProp(nextPose.delay, transitionProps);
|
|
3179
3017
|
if (poseDelay) {
|
|
@@ -3197,7 +3035,7 @@ var createPoseSetter = function (setterProps) {
|
|
|
3197
3035
|
});
|
|
3198
3036
|
}
|
|
3199
3037
|
}
|
|
3200
|
-
return Promise.all(__spreadArrays
|
|
3038
|
+
return Promise.all(__spreadArrays(getParentAnimations(), getChildAnimations()));
|
|
3201
3039
|
};
|
|
3202
3040
|
};
|
|
3203
3041
|
|
|
@@ -3323,7 +3161,7 @@ var createValueMap = function (props) {
|
|
|
3323
3161
|
};
|
|
3324
3162
|
|
|
3325
3163
|
var applyDefaultTransition = function (pose, key, defaultTransitions) {
|
|
3326
|
-
return __assign
|
|
3164
|
+
return __assign(__assign({}, pose), { transition: defaultTransitions.has(key) ? defaultTransitions.get(key) : defaultTransitions.get('default') });
|
|
3327
3165
|
};
|
|
3328
3166
|
var generateTransitions = function (poses, defaultTransitions) {
|
|
3329
3167
|
Object.keys(poses).forEach(function (key) {
|
|
@@ -3377,7 +3215,7 @@ var poseFactory = function (_a) {
|
|
|
3377
3215
|
var poses = generateTransitions(selectPoses(config), defaultTransitions);
|
|
3378
3216
|
var _b = config.props,
|
|
3379
3217
|
props = _b === void 0 ? {} : _b;
|
|
3380
|
-
if (getDefaultProps) props = __assign
|
|
3218
|
+
if (getDefaultProps) props = __assign(__assign({}, getDefaultProps(config)), props);
|
|
3381
3219
|
var passive = config.passive,
|
|
3382
3220
|
userSetValues = config.values,
|
|
3383
3221
|
_c = config.initialPose,
|
|
@@ -3452,10 +3290,10 @@ var poseFactory = function (_a) {
|
|
|
3452
3290
|
},
|
|
3453
3291
|
has: has,
|
|
3454
3292
|
setProps: function (newProps) {
|
|
3455
|
-
return state.props = __assign
|
|
3293
|
+
return state.props = __assign(__assign({}, state.props), newProps);
|
|
3456
3294
|
},
|
|
3457
3295
|
_addChild: function (childConfig, factory) {
|
|
3458
|
-
var child = factory(__assign
|
|
3296
|
+
var child = factory(__assign(__assign({ initialPose: initialPose }, childConfig), { ancestorValues: __spreadArrays([{ label: config.label, values: values }], ancestorValues) }));
|
|
3459
3297
|
children.add(child);
|
|
3460
3298
|
return child;
|
|
3461
3299
|
},
|
|
@@ -3494,18 +3332,18 @@ See the Apache Version 2.0 License for specific language governing permissions
|
|
|
3494
3332
|
and limitations under the License.
|
|
3495
3333
|
***************************************************************************** */
|
|
3496
3334
|
|
|
3497
|
-
var __assign$
|
|
3498
|
-
__assign$
|
|
3335
|
+
var __assign$2 = function () {
|
|
3336
|
+
__assign$2 = Object.assign || function __assign(t) {
|
|
3499
3337
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
3500
3338
|
s = arguments[i];
|
|
3501
3339
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
3502
3340
|
}
|
|
3503
3341
|
return t;
|
|
3504
3342
|
};
|
|
3505
|
-
return __assign$
|
|
3343
|
+
return __assign$2.apply(this, arguments);
|
|
3506
3344
|
};
|
|
3507
3345
|
|
|
3508
|
-
function __rest$
|
|
3346
|
+
function __rest$1(s, e) {
|
|
3509
3347
|
var t = {};
|
|
3510
3348
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
3511
3349
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -3622,12 +3460,12 @@ var intelligentTransition = {
|
|
|
3622
3460
|
opacity: linearTween,
|
|
3623
3461
|
default: tween
|
|
3624
3462
|
};
|
|
3625
|
-
var dragAction = /*#__PURE__*/__assign$
|
|
3463
|
+
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) });
|
|
3626
3464
|
var justAxis = function (_a) {
|
|
3627
3465
|
var from = _a.from;
|
|
3628
3466
|
return just(from);
|
|
3629
3467
|
};
|
|
3630
|
-
var intelligentDragEnd = /*#__PURE__*/__assign$
|
|
3468
|
+
var intelligentDragEnd = /*#__PURE__*/__assign$2( /*#__PURE__*/__assign$2({}, intelligentTransition), { x: justAxis, y: justAxis });
|
|
3631
3469
|
var defaultTransitions = /*#__PURE__*/new Map([['default', intelligentTransition], ['drag', dragAction], ['dragEnd', intelligentDragEnd]]);
|
|
3632
3470
|
|
|
3633
3471
|
var animationLookup = {
|
|
@@ -3697,7 +3535,7 @@ var getAction = function (v, _a, _b) {
|
|
|
3697
3535
|
var _c = _a.type,
|
|
3698
3536
|
type = _c === void 0 ? 'tween' : _c,
|
|
3699
3537
|
definedEase = _a.ease,
|
|
3700
|
-
def = __rest$
|
|
3538
|
+
def = __rest$1(_a, ["type", "ease"]);
|
|
3701
3539
|
invariant(animationLookup[type] !== undefined, "Invalid transition type '" + type + "'. Valid transition types are: tween, spring, decay, physics and keyframes.");
|
|
3702
3540
|
var ease;
|
|
3703
3541
|
if (type === 'tween') {
|
|
@@ -3722,7 +3560,7 @@ var getAction = function (v, _a, _b) {
|
|
|
3722
3560
|
velocity: velocity,
|
|
3723
3561
|
ease: ease
|
|
3724
3562
|
} : { ease: ease };
|
|
3725
|
-
return animationLookup[type](__assign$
|
|
3563
|
+
return animationLookup[type](__assign$2(__assign$2({}, baseProps), def));
|
|
3726
3564
|
};
|
|
3727
3565
|
var isAction = function (action$$1) {
|
|
3728
3566
|
return typeof action$$1.start !== 'undefined';
|
|
@@ -3807,7 +3645,7 @@ var pose = function (_a) {
|
|
|
3807
3645
|
min = def.min,
|
|
3808
3646
|
max = def.max,
|
|
3809
3647
|
round = def.round,
|
|
3810
|
-
remainingDef = __rest$
|
|
3648
|
+
remainingDef = __rest$1(def, ["delay", "min", "max", "round"]);
|
|
3811
3649
|
var action$$1 = getAction(val, remainingDef, props);
|
|
3812
3650
|
var outputPipe = [];
|
|
3813
3651
|
if (delay$$1) action$$1 = addActionDelay(delay$$1, action$$1);
|
|
@@ -3989,7 +3827,7 @@ var explicitlyFlipPose = function (state, nextPose) {
|
|
|
3989
3827
|
bottom = nextPose.bottom,
|
|
3990
3828
|
right = nextPose.right,
|
|
3991
3829
|
position = nextPose.position,
|
|
3992
|
-
remainingPose = __rest$
|
|
3830
|
+
remainingPose = __rest$1(nextPose, ["width", "height", "top", "left", "bottom", "right", "position"]);
|
|
3993
3831
|
var propsToSet = positionalProps.concat('position').reduce(function (acc, key) {
|
|
3994
3832
|
if (nextPose[key] !== undefined) {
|
|
3995
3833
|
acc[key] = resolveProp$1(nextPose[key], state.props);
|
|
@@ -4101,7 +3939,7 @@ var convertPositionalUnits = function (state, nextPose) {
|
|
|
4101
3939
|
changedPositionalKeys.push(key);
|
|
4102
3940
|
if (!applyAtEndHasBeenCopied) {
|
|
4103
3941
|
applyAtEndHasBeenCopied = true;
|
|
4104
|
-
nextPose.applyAtEnd = nextPose.applyAtEnd ? __assign$
|
|
3942
|
+
nextPose.applyAtEnd = nextPose.applyAtEnd ? __assign$2({}, nextPose.applyAtEnd) : {};
|
|
4105
3943
|
}
|
|
4106
3944
|
nextPose.applyAtEnd[key] = nextPose.applyAtEnd[key] || nextPose[key];
|
|
4107
3945
|
setValue(state, key, to);
|
|
@@ -4157,8 +3995,8 @@ var createPoseConfig = function (element, _a) {
|
|
|
4157
3995
|
focusable = _a.focusable,
|
|
4158
3996
|
pressable = _a.pressable,
|
|
4159
3997
|
dragBounds = _a.dragBounds,
|
|
4160
|
-
config = __rest$
|
|
4161
|
-
var poseConfig = __assign$
|
|
3998
|
+
config = __rest$1(_a, ["onDragStart", "onDragEnd", "onPressStart", "onPressEnd", "draggable", "hoverable", "focusable", "pressable", "dragBounds"]);
|
|
3999
|
+
var poseConfig = __assign$2(__assign$2({ flip: {} }, config), { props: __assign$2(__assign$2({}, config.props), { onDragStart: onDragStart,
|
|
4162
4000
|
onDragEnd: onDragEnd,
|
|
4163
4001
|
onPressStart: onPressStart,
|
|
4164
4002
|
onPressEnd: onPressEnd,
|
|
@@ -4172,8 +4010,8 @@ var createPoseConfig = function (element, _a) {
|
|
|
4172
4010
|
var _b = dragPoses(draggable),
|
|
4173
4011
|
drag = _b.drag,
|
|
4174
4012
|
dragEnd = _b.dragEnd;
|
|
4175
|
-
poseConfig.drag = __assign$
|
|
4176
|
-
poseConfig.dragEnd = __assign$
|
|
4013
|
+
poseConfig.drag = __assign$2(__assign$2({}, drag), poseConfig.drag);
|
|
4014
|
+
poseConfig.dragEnd = __assign$2(__assign$2({}, dragEnd), poseConfig.dragEnd);
|
|
4177
4015
|
}
|
|
4178
4016
|
return poseConfig;
|
|
4179
4017
|
};
|
|
@@ -4181,7 +4019,7 @@ var domPose = /*#__PURE__*/pose({
|
|
|
4181
4019
|
posePriority: ['drag', 'press', 'focus', 'hover'],
|
|
4182
4020
|
transformPose: function (_a, name, state) {
|
|
4183
4021
|
var flip = _a.flip,
|
|
4184
|
-
pose$$1 = __rest$
|
|
4022
|
+
pose$$1 = __rest$1(_a, ["flip"]);
|
|
4185
4023
|
if (isFlipPose(flip, name, state)) {
|
|
4186
4024
|
return flipPose(state, pose$$1);
|
|
4187
4025
|
} else if (isPositional(pose$$1)) {
|
|
@@ -4219,7 +4057,7 @@ var domPose = /*#__PURE__*/pose({
|
|
|
4219
4057
|
var props = _a.props,
|
|
4220
4058
|
activeActions = _a.activeActions;
|
|
4221
4059
|
var measure = props.dimensions.measure;
|
|
4222
|
-
var poserApi = __assign$
|
|
4060
|
+
var poserApi = __assign$2(__assign$2({}, api), { addChild: function (element, childConfig) {
|
|
4223
4061
|
return api._addChild(createPoseConfig(element, childConfig), domPose);
|
|
4224
4062
|
}, measure: measure, flip: function (op) {
|
|
4225
4063
|
if (op) {
|
|
@@ -7247,104 +7085,6 @@ var Imposter = function Imposter(_ref) {
|
|
|
7247
7085
|
}, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null)));
|
|
7248
7086
|
};
|
|
7249
7087
|
|
|
7250
|
-
/*! *****************************************************************************
|
|
7251
|
-
Copyright (c) Microsoft Corporation.
|
|
7252
|
-
|
|
7253
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
7254
|
-
purpose with or without fee is hereby granted.
|
|
7255
|
-
|
|
7256
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
7257
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
7258
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
7259
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
7260
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
7261
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
7262
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
7263
|
-
***************************************************************************** */
|
|
7264
|
-
/* global Reflect, Promise */
|
|
7265
|
-
|
|
7266
|
-
var extendStatics$2 = function(d, b) {
|
|
7267
|
-
extendStatics$2 = Object.setPrototypeOf ||
|
|
7268
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7269
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7270
|
-
return extendStatics$2(d, b);
|
|
7271
|
-
};
|
|
7272
|
-
|
|
7273
|
-
function __extends$2(d, b) {
|
|
7274
|
-
extendStatics$2(d, b);
|
|
7275
|
-
function __() { this.constructor = d; }
|
|
7276
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
7277
|
-
}
|
|
7278
|
-
|
|
7279
|
-
var __assign$7 = function() {
|
|
7280
|
-
__assign$7 = Object.assign || function __assign(t) {
|
|
7281
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
7282
|
-
s = arguments[i];
|
|
7283
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
7284
|
-
}
|
|
7285
|
-
return t;
|
|
7286
|
-
};
|
|
7287
|
-
return __assign$7.apply(this, arguments);
|
|
7288
|
-
};
|
|
7289
|
-
|
|
7290
|
-
function __rest$5(s, e) {
|
|
7291
|
-
var t = {};
|
|
7292
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
7293
|
-
t[p] = s[p];
|
|
7294
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7295
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7296
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
7297
|
-
t[p[i]] = s[p[i]];
|
|
7298
|
-
}
|
|
7299
|
-
return t;
|
|
7300
|
-
}
|
|
7301
|
-
|
|
7302
|
-
function __spreadArrays$2() {
|
|
7303
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
7304
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
7305
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
7306
|
-
r[k] = a[j];
|
|
7307
|
-
return r;
|
|
7308
|
-
}
|
|
7309
|
-
|
|
7310
|
-
/*! *****************************************************************************
|
|
7311
|
-
Copyright (c) Microsoft Corporation.
|
|
7312
|
-
|
|
7313
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
7314
|
-
purpose with or without fee is hereby granted.
|
|
7315
|
-
|
|
7316
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
7317
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
7318
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
7319
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
7320
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
7321
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
7322
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
7323
|
-
***************************************************************************** */
|
|
7324
|
-
|
|
7325
|
-
var __assign$8 = function() {
|
|
7326
|
-
__assign$8 = Object.assign || function __assign(t) {
|
|
7327
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
7328
|
-
s = arguments[i];
|
|
7329
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
7330
|
-
}
|
|
7331
|
-
return t;
|
|
7332
|
-
};
|
|
7333
|
-
return __assign$8.apply(this, arguments);
|
|
7334
|
-
};
|
|
7335
|
-
|
|
7336
|
-
function __rest$6(s, e) {
|
|
7337
|
-
var t = {};
|
|
7338
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
7339
|
-
t[p] = s[p];
|
|
7340
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7341
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7342
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
7343
|
-
t[p[i]] = s[p[i]];
|
|
7344
|
-
}
|
|
7345
|
-
return t;
|
|
7346
|
-
}
|
|
7347
|
-
|
|
7348
7088
|
var Observer$1 = /*#__PURE__*/function () {
|
|
7349
7089
|
function Observer(_a, observer) {
|
|
7350
7090
|
var _this = this;
|
|
@@ -7407,18 +7147,18 @@ var Action$1 = /*#__PURE__*/function () {
|
|
|
7407
7147
|
};
|
|
7408
7148
|
var _a = this.props,
|
|
7409
7149
|
init = _a.init,
|
|
7410
|
-
observerProps = __rest
|
|
7150
|
+
observerProps = __rest(_a, ["init"]);
|
|
7411
7151
|
var observer = createObserver$1(observerCandidate, observerProps, function () {
|
|
7412
7152
|
isComplete = true;
|
|
7413
7153
|
subscription.stop();
|
|
7414
7154
|
});
|
|
7415
7155
|
var api = init(observer);
|
|
7416
|
-
subscription = api ? __assign
|
|
7156
|
+
subscription = api ? __assign({}, subscription, api) : subscription;
|
|
7417
7157
|
if (isComplete) subscription.stop();
|
|
7418
7158
|
return subscription;
|
|
7419
7159
|
};
|
|
7420
7160
|
Action.prototype.applyMiddleware = function (middleware) {
|
|
7421
|
-
return this.create(__assign
|
|
7161
|
+
return this.create(__assign({}, this.props, { middleware: this.props.middleware ? [middleware].concat(this.props.middleware) : [middleware] }));
|
|
7422
7162
|
};
|
|
7423
7163
|
Action.prototype.pipe = function () {
|
|
7424
7164
|
var funcs = [];
|
|
@@ -7471,18 +7211,18 @@ var createAction$1 = function (action, props) {
|
|
|
7471
7211
|
var createUnitAction$1 = function (action, _a) {
|
|
7472
7212
|
var from = _a.from,
|
|
7473
7213
|
to = _a.to,
|
|
7474
|
-
props = __rest
|
|
7214
|
+
props = __rest(_a, ["from", "to"]);
|
|
7475
7215
|
var unitType = findUnitType$1(from) || findUnitType$1(to);
|
|
7476
7216
|
var transform = unitType.transform,
|
|
7477
7217
|
parse = unitType.parse;
|
|
7478
|
-
return action(__assign
|
|
7218
|
+
return action(__assign({}, props, { from: typeof from === 'string' ? parse(from) : from, to: typeof to === 'string' ? parse(to) : to })).pipe(transform);
|
|
7479
7219
|
};
|
|
7480
7220
|
var createMixerAction$1 = function (mixer) {
|
|
7481
7221
|
return function (action, _a) {
|
|
7482
7222
|
var from = _a.from,
|
|
7483
7223
|
to = _a.to,
|
|
7484
|
-
props = __rest
|
|
7485
|
-
return action(__assign
|
|
7224
|
+
props = __rest(_a, ["from", "to"]);
|
|
7225
|
+
return action(__assign({}, props, { from: 0, to: 1 })).pipe(mixer(from, to));
|
|
7486
7226
|
};
|
|
7487
7227
|
};
|
|
7488
7228
|
var createColorAction$1 = /*#__PURE__*/createMixerAction$1(mixColor);
|
|
@@ -7695,7 +7435,7 @@ var inertia = function (_a) {
|
|
|
7695
7435
|
};
|
|
7696
7436
|
var startSpring = function (props) {
|
|
7697
7437
|
isSpring = true;
|
|
7698
|
-
startAnimation(vectorSpring$1(__assign
|
|
7438
|
+
startAnimation(vectorSpring$1(__assign({}, props, { to: isLessThanMin(props.from) ? min : max, stiffness: bounceStiffness, damping: bounceDamping, restDelta: restDelta })));
|
|
7699
7439
|
};
|
|
7700
7440
|
if (isOutOfBounds(from)) {
|
|
7701
7441
|
startSpring({ from: from, velocity: velocity });
|
|
@@ -7927,7 +7667,7 @@ var keyframes$1 = function (_a) {
|
|
|
7927
7667
|
ease = _b === void 0 ? linear : _b,
|
|
7928
7668
|
times = _a.times,
|
|
7929
7669
|
values = _a.values,
|
|
7930
|
-
tweenProps = __rest
|
|
7670
|
+
tweenProps = __rest(_a, ["easings", "ease", "times", "values"]);
|
|
7931
7671
|
easings = Array.isArray(easings) ? easings : defaultEasings$1(values, easings);
|
|
7932
7672
|
times = times || defaultTimings$1(values);
|
|
7933
7673
|
var scrubbers = easings.map(function (easing, i) {
|
|
@@ -7937,7 +7677,7 @@ var keyframes$1 = function (_a) {
|
|
|
7937
7677
|
ease: easing
|
|
7938
7678
|
});
|
|
7939
7679
|
});
|
|
7940
|
-
return tween$1(__assign
|
|
7680
|
+
return tween$1(__assign({}, tweenProps, { ease: ease })).applyMiddleware(function (update) {
|
|
7941
7681
|
return interpolateScrubbers$1(times, scrubbers, update);
|
|
7942
7682
|
});
|
|
7943
7683
|
};
|
|
@@ -8139,7 +7879,7 @@ var MotionValue = /** @class */ (function () {
|
|
|
8139
7879
|
*/
|
|
8140
7880
|
MotionValue.prototype.addChild = function (config) {
|
|
8141
7881
|
if (config === void 0) { config = {}; }
|
|
8142
|
-
var child = new MotionValue(this.current, __assign
|
|
7882
|
+
var child = new MotionValue(this.current, __assign({ parent: this }, config));
|
|
8143
7883
|
if (!this.children)
|
|
8144
7884
|
this.children = new Set();
|
|
8145
7885
|
this.children.add(child);
|
|
@@ -8581,7 +8321,7 @@ var buildStyleAttr = function (values, styleProp, isStatic) {
|
|
|
8581
8321
|
? transformTemplate({}, styleProp.transform)
|
|
8582
8322
|
: transformTemplate;
|
|
8583
8323
|
}
|
|
8584
|
-
return buildStyleProperty(__assign
|
|
8324
|
+
return buildStyleProperty(__assign(__assign({}, styleProp), motionValueStyles), !isStatic);
|
|
8585
8325
|
};
|
|
8586
8326
|
var useMotionStyles = function (values, styleProp, isStatic, transformValues) {
|
|
8587
8327
|
if (styleProp === void 0) { styleProp = {}; }
|
|
@@ -8635,7 +8375,7 @@ var auto$1 = {
|
|
|
8635
8375
|
parse: function (v) { return v; },
|
|
8636
8376
|
};
|
|
8637
8377
|
var dimensionTypes = [number, px, percent, degrees, vw, vh, auto$1];
|
|
8638
|
-
var valueTypes$1 = __spreadArrays
|
|
8378
|
+
var valueTypes$1 = __spreadArrays(dimensionTypes, [color, complex]);
|
|
8639
8379
|
var testValueType$1 = function (v) { return function (type) { return type.test(v); }; };
|
|
8640
8380
|
var getDimensionValueType = function (v) {
|
|
8641
8381
|
return dimensionTypes.find(testValueType$1(v));
|
|
@@ -8688,7 +8428,7 @@ var getDefaultTransition = function (valueKey, to) {
|
|
|
8688
8428
|
transitionFactory =
|
|
8689
8429
|
defaultTransitions$1[valueKey] || defaultTransitions$1.default;
|
|
8690
8430
|
}
|
|
8691
|
-
return __assign
|
|
8431
|
+
return __assign({ to: to }, transitionFactory(to));
|
|
8692
8432
|
};
|
|
8693
8433
|
|
|
8694
8434
|
/**
|
|
@@ -8784,9 +8524,9 @@ var transitionOptionParser = {
|
|
|
8784
8524
|
return opts;
|
|
8785
8525
|
},
|
|
8786
8526
|
keyframes: function (_a) {
|
|
8787
|
-
var from = _a.from, to = _a.to, velocity = _a.velocity, opts = __rest
|
|
8527
|
+
var from = _a.from, to = _a.to, velocity = _a.velocity, opts = __rest(_a, ["from", "to", "velocity"]);
|
|
8788
8528
|
if (opts.values && opts.values[0] === null) {
|
|
8789
|
-
var values = __spreadArrays
|
|
8529
|
+
var values = __spreadArrays(opts.values);
|
|
8790
8530
|
values[0] = from;
|
|
8791
8531
|
opts.values = values;
|
|
8792
8532
|
}
|
|
@@ -8800,7 +8540,7 @@ var transitionOptionParser = {
|
|
|
8800
8540
|
},
|
|
8801
8541
|
};
|
|
8802
8542
|
var isTransitionDefined = function (_a) {
|
|
8803
|
-
var when = _a.when, delay = _a.delay, delayChildren = _a.delayChildren, staggerChildren = _a.staggerChildren, staggerDirection = _a.staggerDirection, transition = __rest
|
|
8543
|
+
var when = _a.when, delay = _a.delay, delayChildren = _a.delayChildren, staggerChildren = _a.staggerChildren, staggerDirection = _a.staggerDirection, transition = __rest(_a, ["when", "delay", "delayChildren", "staggerChildren", "staggerDirection"]);
|
|
8804
8544
|
return Object.keys(transition).length;
|
|
8805
8545
|
};
|
|
8806
8546
|
var getTransitionDefinition = function (key, to, transitionDefinition) {
|
|
@@ -8810,7 +8550,7 @@ var getTransitionDefinition = function (key, to, transitionDefinition) {
|
|
|
8810
8550
|
// and see if there's any props remaining
|
|
8811
8551
|
if (transitionDefinition === undefined ||
|
|
8812
8552
|
!isTransitionDefined(transitionDefinition)) {
|
|
8813
|
-
return __assign
|
|
8553
|
+
return __assign({ delay: delay }, getDefaultTransition(key, to));
|
|
8814
8554
|
}
|
|
8815
8555
|
var valueTransitionDefinition = transitionDefinition[key] ||
|
|
8816
8556
|
transitionDefinition.default ||
|
|
@@ -8827,12 +8567,12 @@ var getTransitionDefinition = function (key, to, transitionDefinition) {
|
|
|
8827
8567
|
};
|
|
8828
8568
|
}
|
|
8829
8569
|
else if (isKeyframesTarget(to)) {
|
|
8830
|
-
return __assign
|
|
8570
|
+
return __assign(__assign({ values: to, duration: 0.8, delay: delay, ease: "linear" }, valueTransitionDefinition), {
|
|
8831
8571
|
// This animation must be keyframes if we're animating through an array
|
|
8832
8572
|
type: "keyframes" });
|
|
8833
8573
|
}
|
|
8834
8574
|
else {
|
|
8835
|
-
return __assign
|
|
8575
|
+
return __assign({ type: "tween", to: to,
|
|
8836
8576
|
delay: delay }, valueTransitionDefinition);
|
|
8837
8577
|
}
|
|
8838
8578
|
};
|
|
@@ -8849,12 +8589,12 @@ var getAnimation = function (key, value, target, transition) {
|
|
|
8849
8589
|
// for instance 100 to #fff. This might live better in Popmotion.
|
|
8850
8590
|
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.");
|
|
8851
8591
|
// Parse the `transition` prop and return options for the Popmotion animation
|
|
8852
|
-
var _a = getTransitionDefinition(key, target, transition), _b = _a.type, type = _b === void 0 ? "tween" : _b, transitionDefinition = __rest
|
|
8592
|
+
var _a = getTransitionDefinition(key, target, transition), _b = _a.type, type = _b === void 0 ? "tween" : _b, transitionDefinition = __rest(_a, ["type"]);
|
|
8853
8593
|
// If this is an animatable pair of values, return an animation, otherwise use `just`
|
|
8854
8594
|
var actionFactory = isOriginAnimatable && isTargetAnimatable
|
|
8855
8595
|
? transitions[type]
|
|
8856
8596
|
: just$1;
|
|
8857
|
-
var opts = preprocessOptions(type, __assign
|
|
8597
|
+
var opts = preprocessOptions(type, __assign({ from: origin, velocity: value.getVelocity() }, transitionDefinition));
|
|
8858
8598
|
// Convert duration from Framer Motion's seconds into Popmotion's milliseconds
|
|
8859
8599
|
if (isDurationAnimation(opts)) {
|
|
8860
8600
|
if (opts.duration) {
|
|
@@ -8872,10 +8612,10 @@ var getAnimation = function (key, value, target, transition) {
|
|
|
8872
8612
|
* @internal
|
|
8873
8613
|
*/
|
|
8874
8614
|
function startAnimation(key, value, target, _a) {
|
|
8875
|
-
var _b = _a.delay, delay$1$1 = _b === void 0 ? 0 : _b, transition = __rest
|
|
8615
|
+
var _b = _a.delay, delay$1$1 = _b === void 0 ? 0 : _b, transition = __rest(_a, ["delay"]);
|
|
8876
8616
|
return value.start(function (complete) {
|
|
8877
8617
|
var activeAnimation;
|
|
8878
|
-
var _a = getAnimation(key, value, target, transition), animationFactory = _a[0], _b = _a[1], valueDelay = _b.delay, options = __rest
|
|
8618
|
+
var _a = getAnimation(key, value, target, transition), animationFactory = _a[0], _b = _a[1], valueDelay = _b.delay, options = __rest(_b, ["delay"]);
|
|
8879
8619
|
if (valueDelay !== undefined) {
|
|
8880
8620
|
delay$1$1 = valueDelay;
|
|
8881
8621
|
}
|
|
@@ -9021,7 +8761,7 @@ var ValueAnimationControls = /** @class */ (function () {
|
|
|
9021
8761
|
var _this = this;
|
|
9022
8762
|
var _b = _a === void 0 ? {} : _a, _c = _b.isActive, isActive = _c === void 0 ? new Set() : _c, priority = _b.priority;
|
|
9023
8763
|
var _d = this.resolveVariant(definition), target = _d.target, transitionEnd = _d.transitionEnd;
|
|
9024
|
-
target = this.transformValues(__assign
|
|
8764
|
+
target = this.transformValues(__assign(__assign({}, target), transitionEnd));
|
|
9025
8765
|
return Object.keys(target).forEach(function (key) {
|
|
9026
8766
|
if (isActive.has(key))
|
|
9027
8767
|
return;
|
|
@@ -9111,7 +8851,7 @@ var ValueAnimationControls = /** @class */ (function () {
|
|
|
9111
8851
|
// resolve current and velocity
|
|
9112
8852
|
variant = variant(this.props.custom, getCurrent$1(this.values), getVelocity(this.values));
|
|
9113
8853
|
}
|
|
9114
|
-
var _a = variant.transition, transition = _a === void 0 ? this.defaultTransition : _a, transitionEnd = variant.transitionEnd, target = __rest
|
|
8854
|
+
var _a = variant.transition, transition = _a === void 0 ? this.defaultTransition : _a, transitionEnd = variant.transitionEnd, target = __rest(variant, ["transition", "transitionEnd"]);
|
|
9115
8855
|
return { transition: transition, transitionEnd: transitionEnd, target: target };
|
|
9116
8856
|
};
|
|
9117
8857
|
/**
|
|
@@ -9202,7 +8942,7 @@ var ValueAnimationControls = /** @class */ (function () {
|
|
|
9202
8942
|
ValueAnimationControls.prototype.applyVariantLabels = function (variantLabelList) {
|
|
9203
8943
|
var _this = this;
|
|
9204
8944
|
var isActive = new Set();
|
|
9205
|
-
var reversedList = __spreadArrays
|
|
8945
|
+
var reversedList = __spreadArrays(variantLabelList).reverse();
|
|
9206
8946
|
reversedList.forEach(function (key) {
|
|
9207
8947
|
var _a = _this.resolveVariant(_this.variants[key]), target = _a.target, transitionEnd = _a.transitionEnd;
|
|
9208
8948
|
if (transitionEnd) {
|
|
@@ -9273,7 +9013,7 @@ var ValueAnimationControls = /** @class */ (function () {
|
|
|
9273
9013
|
if (this.isAnimating.has(key))
|
|
9274
9014
|
continue;
|
|
9275
9015
|
this.isAnimating.add(key);
|
|
9276
|
-
animations.push(startAnimation(key, value, valueTarget, __assign
|
|
9016
|
+
animations.push(startAnimation(key, value, valueTarget, __assign({ delay: delay }, transition)));
|
|
9277
9017
|
}
|
|
9278
9018
|
var allAnimations = Promise.all(animations);
|
|
9279
9019
|
return transitionEnd
|
|
@@ -9284,7 +9024,7 @@ var ValueAnimationControls = /** @class */ (function () {
|
|
|
9284
9024
|
};
|
|
9285
9025
|
ValueAnimationControls.prototype.animateVariantLabels = function (variantLabels, opts) {
|
|
9286
9026
|
var _this = this;
|
|
9287
|
-
var animations = __spreadArrays
|
|
9027
|
+
var animations = __spreadArrays(variantLabels).reverse()
|
|
9288
9028
|
.map(function (label) { return _this.animateVariant(label, opts); });
|
|
9289
9029
|
return Promise.all(animations);
|
|
9290
9030
|
};
|
|
@@ -9728,7 +9468,7 @@ function useValueAnimationControls(config, props, subscribeToParentControls) {
|
|
|
9728
9468
|
// Remove reference to onAnimationComplete from controls. All the MotionValues
|
|
9729
9469
|
// are unsubscribed from this component separately. We let animations run out
|
|
9730
9470
|
// as they might be animating other components.
|
|
9731
|
-
var onAnimationComplete = props.onAnimationComplete, unmountProps = __rest
|
|
9471
|
+
var onAnimationComplete = props.onAnimationComplete, unmountProps = __rest(props, ["onAnimationComplete"]);
|
|
9732
9472
|
controls.setProps(unmountProps);
|
|
9733
9473
|
parentControls && parentControls.removeChild(controls);
|
|
9734
9474
|
};
|
|
@@ -10213,7 +9953,7 @@ var PanSession = /** @class */ (function () {
|
|
|
10213
9953
|
return;
|
|
10214
9954
|
var point = info.point;
|
|
10215
9955
|
var timestamp = getFrameData().timestamp;
|
|
10216
|
-
_this.history.push(__assign
|
|
9956
|
+
_this.history.push(__assign(__assign({}, point), { timestamp: timestamp }));
|
|
10217
9957
|
var _a = _this.handlers, onStart = _a.onStart, onMove = _a.onMove;
|
|
10218
9958
|
if (!isPanStarted) {
|
|
10219
9959
|
onStart && onStart(_this.lastMoveEvent, info);
|
|
@@ -10230,7 +9970,7 @@ var PanSession = /** @class */ (function () {
|
|
|
10230
9970
|
var initialInfo = transformPoint(info, this.transformPagePoint);
|
|
10231
9971
|
var point = initialInfo.point;
|
|
10232
9972
|
var timestamp = getFrameData().timestamp;
|
|
10233
|
-
this.history = [__assign
|
|
9973
|
+
this.history = [__assign(__assign({}, point), { timestamp: timestamp })];
|
|
10234
9974
|
var onSessionStart = handlers.onSessionStart;
|
|
10235
9975
|
onSessionStart &&
|
|
10236
9976
|
onSessionStart(event, getPanInfo(initialInfo, this.history));
|
|
@@ -10558,7 +10298,7 @@ var Gestures = {
|
|
|
10558
10298
|
return gestureProps.some(function (key) { return props.hasOwnProperty(key); });
|
|
10559
10299
|
},
|
|
10560
10300
|
Component: makeRenderlessComponent(function (_a) {
|
|
10561
|
-
var innerRef = _a.innerRef, props = __rest
|
|
10301
|
+
var innerRef = _a.innerRef, props = __rest(_a, ["innerRef"]);
|
|
10562
10302
|
useGestures(props, innerRef);
|
|
10563
10303
|
}),
|
|
10564
10304
|
};
|
|
@@ -10798,8 +10538,8 @@ var ComponentDragControls = /** @class */ (function () {
|
|
|
10798
10538
|
};
|
|
10799
10539
|
ComponentDragControls.prototype.updateProps = function (_a) {
|
|
10800
10540
|
var _this = this;
|
|
10801
|
-
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
|
|
10802
|
-
this.props = __assign
|
|
10541
|
+
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"]);
|
|
10542
|
+
this.props = __assign({ drag: drag,
|
|
10803
10543
|
dragDirectionLock: dragDirectionLock,
|
|
10804
10544
|
dragPropagation: dragPropagation,
|
|
10805
10545
|
dragConstraints: dragConstraints,
|
|
@@ -10855,7 +10595,7 @@ var ComponentDragControls = /** @class */ (function () {
|
|
|
10855
10595
|
var bounceStiffness = dragElastic ? 200 : 1000000;
|
|
10856
10596
|
var bounceDamping = dragElastic ? 40 : 10000000;
|
|
10857
10597
|
var animationControls = _dragTransitionControls || _this.controls;
|
|
10858
|
-
var inertia = __assign
|
|
10598
|
+
var inertia = __assign(__assign({ type: "inertia", velocity: dragMomentum ? velocity[axis] : 0, bounceStiffness: bounceStiffness,
|
|
10859
10599
|
bounceDamping: bounceDamping, timeConstant: 750, restDelta: 1 }, dragTransition), transition);
|
|
10860
10600
|
var externalAxisMotionValue = axis === "x" ? _dragValueX : _dragValueY;
|
|
10861
10601
|
// If we're not animating on an externally-provided `MotionValue` we can use the
|
|
@@ -10936,7 +10676,7 @@ function bothAxis(handler) {
|
|
|
10936
10676
|
return [handler("x"), handler("y")];
|
|
10937
10677
|
}
|
|
10938
10678
|
function convertPanToDrag(info, point) {
|
|
10939
|
-
return __assign
|
|
10679
|
+
return __assign(__assign({}, info), { point: {
|
|
10940
10680
|
x: point.x ? point.x.get() : 0,
|
|
10941
10681
|
y: point.y ? point.y.get() : 0,
|
|
10942
10682
|
} });
|
|
@@ -11047,7 +10787,7 @@ function useDrag(props, ref, values, controls) {
|
|
|
11047
10787
|
var groupDragControls = props.dragControls;
|
|
11048
10788
|
var transformPagePoint = useContext(MotionPluginContext).transformPagePoint;
|
|
11049
10789
|
var dragControls = useConstant(function () { return new ComponentDragControls({ ref: ref, values: values, controls: controls }); });
|
|
11050
|
-
dragControls.updateProps(__assign
|
|
10790
|
+
dragControls.updateProps(__assign(__assign({}, props), { transformPagePoint: transformPagePoint }));
|
|
11051
10791
|
useEffect$1(function () { return groupDragControls && groupDragControls.subscribe(dragControls); }, [dragControls]);
|
|
11052
10792
|
useEffect$1(function () { return dragControls.mount(ref.current); }, []);
|
|
11053
10793
|
}
|
|
@@ -11056,7 +10796,7 @@ var Drag = {
|
|
|
11056
10796
|
key: "drag",
|
|
11057
10797
|
shouldRender: function (props) { return !!props.drag; },
|
|
11058
10798
|
Component: makeRenderlessComponent(function (_a) {
|
|
11059
|
-
var innerRef = _a.innerRef, values = _a.values, controls = _a.controls, props = __rest
|
|
10799
|
+
var innerRef = _a.innerRef, values = _a.values, controls = _a.controls, props = __rest(_a, ["innerRef", "values", "controls"]);
|
|
11060
10800
|
return useDrag(props, innerRef, values, controls);
|
|
11061
10801
|
}),
|
|
11062
10802
|
};
|
|
@@ -11108,14 +10848,14 @@ function getVariableValue(current, element, depth) {
|
|
|
11108
10848
|
* @internal
|
|
11109
10849
|
*/
|
|
11110
10850
|
function resolveCSSVariables(values, ref, _a, transitionEnd) {
|
|
11111
|
-
var target = __rest
|
|
10851
|
+
var target = __rest(_a, []);
|
|
11112
10852
|
var element = ref.current;
|
|
11113
10853
|
if (!(element instanceof HTMLElement))
|
|
11114
10854
|
return { target: target, transitionEnd: transitionEnd };
|
|
11115
10855
|
// If `transitionEnd` isn't `undefined`, clone it. We could clone `target` and `transitionEnd`
|
|
11116
10856
|
// only if they change but I think this reads clearer and this isn't a performance-critical path.
|
|
11117
10857
|
if (transitionEnd) {
|
|
11118
|
-
transitionEnd = __assign
|
|
10858
|
+
transitionEnd = __assign({}, transitionEnd);
|
|
11119
10859
|
}
|
|
11120
10860
|
// Go through existing `MotionValue`s and ensure any existing CSS variables are resolved
|
|
11121
10861
|
values.forEach(function (value) {
|
|
@@ -11272,8 +11012,8 @@ var convertChangedValueTypes = function (target, values, element, elementStyler,
|
|
|
11272
11012
|
};
|
|
11273
11013
|
var checkAndConvertChangedValueTypes = function (values, ref, target, transitionEnd) {
|
|
11274
11014
|
if (transitionEnd === void 0) { transitionEnd = {}; }
|
|
11275
|
-
target = __assign
|
|
11276
|
-
transitionEnd = __assign
|
|
11015
|
+
target = __assign({}, target);
|
|
11016
|
+
transitionEnd = __assign({}, transitionEnd);
|
|
11277
11017
|
var element = ref.current;
|
|
11278
11018
|
var elementStyler = index(element);
|
|
11279
11019
|
var targetPositionalKeys = Object.keys(target).filter(isPositionalKey$1);
|
|
@@ -11501,7 +11241,7 @@ function calcAxisDelta(prev, next, names) {
|
|
|
11501
11241
|
return delta;
|
|
11502
11242
|
}
|
|
11503
11243
|
function calcDelta(prev, next) {
|
|
11504
|
-
var delta = __assign
|
|
11244
|
+
var delta = __assign(__assign({}, calcAxisDelta(prev, next, axisLabels.x)), calcAxisDelta(prev, next, axisLabels.y));
|
|
11505
11245
|
return delta;
|
|
11506
11246
|
}
|
|
11507
11247
|
var offset = {
|
|
@@ -11545,7 +11285,7 @@ function getTransition(_a) {
|
|
|
11545
11285
|
return layoutTransition || positionTransition;
|
|
11546
11286
|
}
|
|
11547
11287
|
var LayoutAnimation = /** @class */ (function (_super) {
|
|
11548
|
-
__extends
|
|
11288
|
+
__extends(LayoutAnimation, _super);
|
|
11549
11289
|
function LayoutAnimation() {
|
|
11550
11290
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
11551
11291
|
}
|
|
@@ -11612,11 +11352,11 @@ var LayoutAnimation = /** @class */ (function (_super) {
|
|
|
11612
11352
|
if (!delta[deltaKey])
|
|
11613
11353
|
return;
|
|
11614
11354
|
var baseTransition = typeof transitionDefinition === "boolean"
|
|
11615
|
-
? __assign
|
|
11355
|
+
? __assign({}, getDefaultLayoutTransition(isPositionOnly)) : transitionDefinition;
|
|
11616
11356
|
var value = values.get(transformKey, targetValue);
|
|
11617
11357
|
var velocity = value.getVelocity();
|
|
11618
11358
|
transition[transformKey] = baseTransition[transformKey]
|
|
11619
|
-
? __assign
|
|
11359
|
+
? __assign({}, baseTransition[transformKey]) : __assign({}, baseTransition);
|
|
11620
11360
|
if (transition[transformKey].velocity === undefined) {
|
|
11621
11361
|
transition[transformKey].velocity = velocity || 0;
|
|
11622
11362
|
}
|
|
@@ -11757,9 +11497,9 @@ var hasUpdated = function (prev, next) {
|
|
|
11757
11497
|
};
|
|
11758
11498
|
function targetWithoutTransition(_a, mergeTransitionEnd) {
|
|
11759
11499
|
if (mergeTransitionEnd === void 0) { mergeTransitionEnd = false; }
|
|
11760
|
-
var transition = _a.transition, transitionEnd = _a.transitionEnd, target = __rest
|
|
11500
|
+
var transition = _a.transition, transitionEnd = _a.transitionEnd, target = __rest(_a, ["transition", "transitionEnd"]);
|
|
11761
11501
|
return mergeTransitionEnd
|
|
11762
|
-
? __assign
|
|
11502
|
+
? __assign(__assign({}, target), transitionEnd)
|
|
11763
11503
|
: target;
|
|
11764
11504
|
}
|
|
11765
11505
|
/**
|
|
@@ -11811,9 +11551,9 @@ function useAnimateProp(targetAndTransition, controls, values, defaultTransition
|
|
|
11811
11551
|
}
|
|
11812
11552
|
}
|
|
11813
11553
|
isInitialRender.current = false;
|
|
11814
|
-
prevValues.current = __assign
|
|
11554
|
+
prevValues.current = __assign(__assign({}, prevValues.current), finalTarget);
|
|
11815
11555
|
if (Object.keys(targetToAnimate).length) {
|
|
11816
|
-
controls.start(__assign
|
|
11556
|
+
controls.start(__assign(__assign({}, targetToAnimate), { transition: targetAndTransition.transition || defaultTransition, transitionEnd: targetAndTransition.transitionEnd }));
|
|
11817
11557
|
}
|
|
11818
11558
|
}, [targetAndTransition]);
|
|
11819
11559
|
}
|
|
@@ -11987,7 +11727,7 @@ var Exit = {
|
|
|
11987
11727
|
useEffect$1(function () {
|
|
11988
11728
|
if (!isPresent) {
|
|
11989
11729
|
if (!isPlayingExitAnimation.current && exit) {
|
|
11990
|
-
controls.setProps(__assign
|
|
11730
|
+
controls.setProps(__assign(__assign({}, props), { custom: custom }));
|
|
11991
11731
|
controls.start(exit).then(onExitComplete);
|
|
11992
11732
|
}
|
|
11993
11733
|
isPlayingExitAnimation.current = true;
|
|
@@ -12058,7 +11798,7 @@ var buildHTMLProps = function (values, style, isStatic, isDrag) {
|
|
|
12058
11798
|
var buildSVGProps = function (values, style) {
|
|
12059
11799
|
var motionValueStyles = resolveCurrent(values);
|
|
12060
11800
|
var props = buildSVGAttrs(motionValueStyles, undefined, undefined, undefined, undefined, false);
|
|
12061
|
-
props.style = __assign
|
|
11801
|
+
props.style = __assign(__assign({}, style), props.style);
|
|
12062
11802
|
return props;
|
|
12063
11803
|
};
|
|
12064
11804
|
var functionalityComponents = [Layout, Drag, Gestures, Exit];
|
|
@@ -12077,7 +11817,7 @@ function createDomMotionConfig(Component) {
|
|
|
12077
11817
|
var staticVisualStyles = isSVG
|
|
12078
11818
|
? buildSVGProps(values, style)
|
|
12079
11819
|
: buildHTMLProps(values, style, isStatic, !!props.drag);
|
|
12080
|
-
return createElement(Component, __assign
|
|
11820
|
+
return createElement(Component, __assign(__assign(__assign({}, forwardedProps), { ref: ref }), staticVisualStyles));
|
|
12081
11821
|
},
|
|
12082
11822
|
/**
|
|
12083
11823
|
* loadFunctionalityComponents gets used by the `motion` component
|
|
@@ -12108,7 +11848,7 @@ function createDomMotionConfig(Component) {
|
|
|
12108
11848
|
for (var i = 0; i < numFunctionalityComponents; i++) {
|
|
12109
11849
|
var _a = functionalityComponents[i], shouldRender = _a.shouldRender, key = _a.key, Component_1 = _a.Component;
|
|
12110
11850
|
if (shouldRender(props, context)) {
|
|
12111
|
-
activeComponents.push(createElement(Component_1, __assign
|
|
11851
|
+
activeComponents.push(createElement(Component_1, __assign({ key: key }, props, { parentContext: context, values: values, controls: controls, innerRef: ref })));
|
|
12112
11852
|
}
|
|
12113
11853
|
}
|
|
12114
11854
|
return activeComponents;
|
|
@@ -12160,7 +11900,7 @@ var svgMotionComponents = svgElements.reduce(function (acc, Component) {
|
|
|
12160
11900
|
*
|
|
12161
11901
|
* @public
|
|
12162
11902
|
*/
|
|
12163
|
-
var motion = __assign
|
|
11903
|
+
var motion = __assign(__assign({
|
|
12164
11904
|
/**
|
|
12165
11905
|
* Convert a custom React component into a `motion` component.
|
|
12166
11906
|
*
|
|
@@ -12212,7 +11952,7 @@ var PresenceChild = function (_a) {
|
|
|
12212
11952
|
return function () { return numPresenceChildren.current--; };
|
|
12213
11953
|
};
|
|
12214
11954
|
}, [isPresent]);
|
|
12215
|
-
return (createElement(PresenceContext.Provider, { value: __assign
|
|
11955
|
+
return (createElement(PresenceContext.Provider, { value: __assign(__assign({}, context), { register: register }) }, children));
|
|
12216
11956
|
};
|
|
12217
11957
|
|
|
12218
11958
|
function getChildKey(child) {
|
|
@@ -12328,7 +12068,7 @@ var AnimatePresence = function (_a) {
|
|
|
12328
12068
|
return (createElement(Fragment$1, null, filteredChildren.map(function (child) { return (createElement(PresenceChild, { key: getChildKey(child), isPresent: true, initial: initial ? undefined : false }, child)); })));
|
|
12329
12069
|
}
|
|
12330
12070
|
// If this is a subsequent render, deal with entering and exiting children
|
|
12331
|
-
var childrenToRender = __spreadArrays
|
|
12071
|
+
var childrenToRender = __spreadArrays(filteredChildren);
|
|
12332
12072
|
// Diff the keys of the currently-present and target children to update our
|
|
12333
12073
|
// exiting list.
|
|
12334
12074
|
var presentKeys = presentChildren.current.map(getChildKey);
|
|
@@ -18849,52 +18589,6 @@ var AgencyIcon = function AgencyIcon(_ref) {
|
|
|
18849
18589
|
})));
|
|
18850
18590
|
};
|
|
18851
18591
|
|
|
18852
|
-
var _excluded$m = ["width", "height", "color"];
|
|
18853
|
-
var PersonIcon = function PersonIcon(_ref) {
|
|
18854
|
-
var _ref$width = _ref.width,
|
|
18855
|
-
width = _ref$width === void 0 ? "20" : _ref$width,
|
|
18856
|
-
_ref$height = _ref.height,
|
|
18857
|
-
height = _ref$height === void 0 ? "21" : _ref$height,
|
|
18858
|
-
_ref$color = _ref.color,
|
|
18859
|
-
color = _ref$color === void 0 ? CHARADE_GREY : _ref$color,
|
|
18860
|
-
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
18861
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
18862
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
18863
|
-
width: width,
|
|
18864
|
-
height: height,
|
|
18865
|
-
viewBox: "0 0 ".concat(width, " ").concat(height),
|
|
18866
|
-
fill: "none"
|
|
18867
|
-
}, props), /*#__PURE__*/React.createElement("path", {
|
|
18868
|
-
fillRule: "evenodd",
|
|
18869
|
-
clipRule: "evenodd",
|
|
18870
|
-
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",
|
|
18871
|
-
fill: color
|
|
18872
|
-
}));
|
|
18873
|
-
};
|
|
18874
|
-
|
|
18875
|
-
var _excluded$n = ["width", "height", "color"];
|
|
18876
|
-
var PaymentStatusIcon = function PaymentStatusIcon(_ref) {
|
|
18877
|
-
var _ref$width = _ref.width,
|
|
18878
|
-
width = _ref$width === void 0 ? "20" : _ref$width,
|
|
18879
|
-
_ref$height = _ref.height,
|
|
18880
|
-
height = _ref$height === void 0 ? "21" : _ref$height,
|
|
18881
|
-
_ref$color = _ref.color,
|
|
18882
|
-
color = _ref$color === void 0 ? CHARADE_GREY : _ref$color,
|
|
18883
|
-
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
18884
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
18885
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
18886
|
-
width: width,
|
|
18887
|
-
height: height,
|
|
18888
|
-
viewBox: "0 0 ".concat(width, " ").concat(height),
|
|
18889
|
-
fill: "none"
|
|
18890
|
-
}, props), /*#__PURE__*/React.createElement("path", {
|
|
18891
|
-
fillRule: "evenodd",
|
|
18892
|
-
clipRule: "evenodd",
|
|
18893
|
-
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",
|
|
18894
|
-
fill: color
|
|
18895
|
-
}));
|
|
18896
|
-
};
|
|
18897
|
-
|
|
18898
18592
|
var color$2 = "#15749D";
|
|
18899
18593
|
var hoverColor$1 = "#116285";
|
|
18900
18594
|
var activeColor$1 = "#0E506D";
|
|
@@ -19548,7 +19242,7 @@ var mobileFallbackValues = {
|
|
|
19548
19242
|
};
|
|
19549
19243
|
var MOBILE_BREAKPOINT = 768;
|
|
19550
19244
|
|
|
19551
|
-
var _excluded$
|
|
19245
|
+
var _excluded$m = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
19552
19246
|
|
|
19553
19247
|
/*
|
|
19554
19248
|
New responsive text component for Title elements
|
|
@@ -19595,7 +19289,7 @@ var Title = function Title(_ref) {
|
|
|
19595
19289
|
as = _ref$as === void 0 ? "h1" : _ref$as,
|
|
19596
19290
|
dataQa = _ref.dataQa,
|
|
19597
19291
|
children = _ref.children,
|
|
19598
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
19292
|
+
rest = _objectWithoutProperties(_ref, _excluded$m);
|
|
19599
19293
|
return /*#__PURE__*/React.createElement(TitleText, _extends({
|
|
19600
19294
|
variant: variant,
|
|
19601
19295
|
as: as,
|
|
@@ -21023,12 +20717,12 @@ var fallbackValues$8 = {
|
|
|
21023
20717
|
linkColor: linkColor
|
|
21024
20718
|
};
|
|
21025
20719
|
|
|
21026
|
-
var _excluded$
|
|
20720
|
+
var _excluded$n = ["variant", "themeValues", "children"];
|
|
21027
20721
|
var BoxWithShadow = function BoxWithShadow(_ref) {
|
|
21028
20722
|
var variant = _ref.variant,
|
|
21029
20723
|
themeValues = _ref.themeValues,
|
|
21030
20724
|
children = _ref.children,
|
|
21031
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
20725
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
21032
20726
|
var shadowRegistry = {
|
|
21033
20727
|
baseStandard: "0px 3px 7px 2px ".concat(rgba$1(BLACK, 0.1), ", 0px 1px 2px 1px ").concat(rgba$1(BLACK, 0.1), ";"),
|
|
21034
20728
|
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), ";"),
|
|
@@ -21088,7 +20782,7 @@ var fallbackValues$a = {
|
|
|
21088
20782
|
externalLinkColor: externalLinkColor
|
|
21089
20783
|
};
|
|
21090
20784
|
|
|
21091
|
-
var _excluded$
|
|
20785
|
+
var _excluded$o = ["hoverColor", "activeColor", "extrastyles"];
|
|
21092
20786
|
var ROYAL_BLUE$1 = ROYAL_BLUE;
|
|
21093
20787
|
var LINK_TEXT_DECORATION$3 = LINK_TEXT_DECORATION;
|
|
21094
20788
|
|
|
@@ -21102,7 +20796,7 @@ var StyledExternalLink = styled( /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
21102
20796
|
var hoverColor = _ref.hoverColor,
|
|
21103
20797
|
activeColor = _ref.activeColor,
|
|
21104
20798
|
extrastyles = _ref.extrastyles,
|
|
21105
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
20799
|
+
props = _objectWithoutProperties(_ref, _excluded$o);
|
|
21106
20800
|
return /*#__PURE__*/React.createElement("a", _extends({}, props, {
|
|
21107
20801
|
ref: ref
|
|
21108
20802
|
}));
|
|
@@ -21177,7 +20871,7 @@ var ExternalLink = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
21177
20871
|
}, safeChildren(children, /*#__PURE__*/React.createElement("span", null)));
|
|
21178
20872
|
});
|
|
21179
20873
|
|
|
21180
|
-
var _excluded$
|
|
20874
|
+
var _excluded$p = ["hoverColor", "activeColor", "active", "color", "extrastyles"];
|
|
21181
20875
|
var ROYAL_BLUE$2 = ROYAL_BLUE;
|
|
21182
20876
|
var LINK_TEXT_DECORATION$4 = LINK_TEXT_DECORATION;
|
|
21183
20877
|
|
|
@@ -21193,7 +20887,7 @@ var StyledInternalLink = styled( /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
21193
20887
|
active = _ref.active,
|
|
21194
20888
|
color = _ref.color,
|
|
21195
20889
|
extrastyles = _ref.extrastyles,
|
|
21196
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
20890
|
+
props = _objectWithoutProperties(_ref, _excluded$p);
|
|
21197
20891
|
return /*#__PURE__*/React.createElement(Link, _extends({}, props, {
|
|
21198
20892
|
ref: ref
|
|
21199
20893
|
}));
|
|
@@ -22876,7 +22570,7 @@ _curry2(function test(pattern, str) {
|
|
|
22876
22570
|
return _cloneRegExp(pattern).test(str);
|
|
22877
22571
|
});
|
|
22878
22572
|
|
|
22879
|
-
var _excluded$
|
|
22573
|
+
var _excluded$q = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
|
|
22880
22574
|
var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
22881
22575
|
var _ref$url = _ref.url,
|
|
22882
22576
|
url = _ref$url === void 0 ? "/" : _ref$url,
|
|
@@ -22891,7 +22585,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
|
22891
22585
|
_ref$newTab = _ref.newTab,
|
|
22892
22586
|
newTab = _ref$newTab === void 0 ? false : _ref$newTab,
|
|
22893
22587
|
dataQa = _ref.dataQa,
|
|
22894
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
22588
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$q);
|
|
22895
22589
|
var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
|
|
22896
22590
|
var children = _ref2.children,
|
|
22897
22591
|
url = _ref2.url,
|
|
@@ -22979,7 +22673,7 @@ var ParagraphText = styled.p.withConfig({
|
|
|
22979
22673
|
return extraStyles;
|
|
22980
22674
|
});
|
|
22981
22675
|
|
|
22982
|
-
var _excluded$
|
|
22676
|
+
var _excluded$r = ["themeValues", "weight", "color", "margin", "extraStyles", "dataQa", "children", "as"];
|
|
22983
22677
|
var Paragraph = function Paragraph(_ref) {
|
|
22984
22678
|
var themeValues = _ref.themeValues,
|
|
22985
22679
|
_ref$weight = _ref.weight,
|
|
@@ -22993,7 +22687,7 @@ var Paragraph = function Paragraph(_ref) {
|
|
|
22993
22687
|
dataQa = _ref.dataQa,
|
|
22994
22688
|
children = _ref.children,
|
|
22995
22689
|
as = _ref.as,
|
|
22996
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
22690
|
+
rest = _objectWithoutProperties(_ref, _excluded$r);
|
|
22997
22691
|
return /*#__PURE__*/React.createElement(ParagraphText, _extends({
|
|
22998
22692
|
weight: weight,
|
|
22999
22693
|
color: color,
|
|
@@ -23197,7 +22891,7 @@ var errorStyles = {
|
|
|
23197
22891
|
"default": "border: 1px solid ".concat(RED, ";")
|
|
23198
22892
|
};
|
|
23199
22893
|
var focusedStyles = {
|
|
23200
|
-
"default": "
|
|
22894
|
+
"default": "box-shadow: 0 0 5px 0 ".concat(MATISSE_BLUE, ";")
|
|
23201
22895
|
};
|
|
23202
22896
|
var disabledCheckedStyles = {
|
|
23203
22897
|
"default": "\n background: #6d717e;\n border: 1px solid #6d717e;\n"
|
|
@@ -23235,7 +22929,7 @@ var ENTER = 13;
|
|
|
23235
22929
|
var ESCAPE = 27;
|
|
23236
22930
|
var SPACEBAR = 32;
|
|
23237
22931
|
|
|
23238
|
-
var _excluded$
|
|
22932
|
+
var _excluded$s = ["title", "name", "checked", "onChange", "disabled", "themeValues", "hidden", "error", "checkboxMargin", "extraStyles", "textExtraStyles", "labelledById", "dataQa", "checkboxExtraStyles"];
|
|
23239
22933
|
var CheckboxContainer = styled.span.withConfig({
|
|
23240
22934
|
displayName: "Checkbox__CheckboxContainer",
|
|
23241
22935
|
componentId: "sc-36kqbv-0"
|
|
@@ -23243,7 +22937,7 @@ var CheckboxContainer = styled.span.withConfig({
|
|
|
23243
22937
|
var CheckboxLabelContainer = styled.label.withConfig({
|
|
23244
22938
|
displayName: "Checkbox__CheckboxLabelContainer",
|
|
23245
22939
|
componentId: "sc-36kqbv-1"
|
|
23246
|
-
})(["display:flex;align-items:center;column-gap:1rem;
|
|
22940
|
+
})(["display:flex;align-items:center;column-gap:1rem;"]);
|
|
23247
22941
|
var CheckboxIcon = styled.svg.withConfig({
|
|
23248
22942
|
displayName: "Checkbox__CheckboxIcon",
|
|
23249
22943
|
componentId: "sc-36kqbv-2"
|
|
@@ -23302,10 +22996,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref5, ref) {
|
|
|
23302
22996
|
_ref5$dataQa = _ref5.dataQa,
|
|
23303
22997
|
dataQa = _ref5$dataQa === void 0 ? null : _ref5$dataQa,
|
|
23304
22998
|
checkboxExtraStyles = _ref5.checkboxExtraStyles,
|
|
23305
|
-
|
|
23306
|
-
hasIconOverride = _ref5$hasIconOverride === void 0 ? false : _ref5$hasIconOverride,
|
|
23307
|
-
Icon = _ref5.icon,
|
|
23308
|
-
rest = _objectWithoutProperties(_ref5, _excluded$u);
|
|
22999
|
+
rest = _objectWithoutProperties(_ref5, _excluded$s);
|
|
23309
23000
|
var _useState = useState(false),
|
|
23310
23001
|
_useState2 = _slicedToArray(_useState, 2),
|
|
23311
23002
|
focused = _useState2[0],
|
|
@@ -23333,7 +23024,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref5, ref) {
|
|
|
23333
23024
|
},
|
|
23334
23025
|
hiddenStyles: hidden,
|
|
23335
23026
|
background: themeValues.backgroundColor,
|
|
23336
|
-
extraStyles: "
|
|
23027
|
+
extraStyles: "outline: none; ".concat(extraStyles, "; margin: ").concat(checkboxMargin, ";")
|
|
23337
23028
|
}, rest), /*#__PURE__*/React.createElement(CheckboxLabelContainer, {
|
|
23338
23029
|
"data-qa": dataQa
|
|
23339
23030
|
}, /*#__PURE__*/React.createElement(CheckboxContainer, {
|
|
@@ -23363,7 +23054,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref5, ref) {
|
|
|
23363
23054
|
disabledCheckedStyles: themeValues.disabledCheckedStyles,
|
|
23364
23055
|
focusedStyles: themeValues.focusedStyles,
|
|
23365
23056
|
checkboxExtraStyles: checkboxExtraStyles
|
|
23366
|
-
},
|
|
23057
|
+
}, /*#__PURE__*/React.createElement(CheckboxIcon, {
|
|
23367
23058
|
viewBox: "0 0 24 24",
|
|
23368
23059
|
disabled: disabled,
|
|
23369
23060
|
disabledCheckColor: themeValues.disabledCheckColor,
|
|
@@ -23661,7 +23352,7 @@ var TableRowWrapper = styled.tr.withConfig({
|
|
|
23661
23352
|
return extraStyles;
|
|
23662
23353
|
});
|
|
23663
23354
|
|
|
23664
|
-
var _excluded$
|
|
23355
|
+
var _excluded$t = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
|
|
23665
23356
|
var TableRow = function TableRow(_ref) {
|
|
23666
23357
|
var children = _ref.children,
|
|
23667
23358
|
extraStyles = _ref.extraStyles,
|
|
@@ -23670,7 +23361,7 @@ var TableRow = function TableRow(_ref) {
|
|
|
23670
23361
|
hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
|
|
23671
23362
|
onClick = _ref.onClick,
|
|
23672
23363
|
themeValues = _ref.themeValues,
|
|
23673
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
23364
|
+
props = _objectWithoutProperties(_ref, _excluded$t);
|
|
23674
23365
|
return /*#__PURE__*/React.createElement(TableRowWrapper, _extends({
|
|
23675
23366
|
onClick: onClick,
|
|
23676
23367
|
hoverEffect: hoverEffect,
|
|
@@ -26504,7 +26195,7 @@ var mobileFallbackValues$1 = {
|
|
|
26504
26195
|
};
|
|
26505
26196
|
var MOBILE_BREAKPOINT$1 = 768;
|
|
26506
26197
|
|
|
26507
|
-
var _excluded$
|
|
26198
|
+
var _excluded$u = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
26508
26199
|
|
|
26509
26200
|
/*
|
|
26510
26201
|
New responsive text component for Detail elements
|
|
@@ -26554,7 +26245,7 @@ var Detail = function Detail(_ref) {
|
|
|
26554
26245
|
as = _ref$as === void 0 ? "p" : _ref$as,
|
|
26555
26246
|
dataQa = _ref.dataQa,
|
|
26556
26247
|
children = _ref.children,
|
|
26557
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26248
|
+
rest = _objectWithoutProperties(_ref, _excluded$u);
|
|
26558
26249
|
return /*#__PURE__*/React.createElement(DetailText, _extends({
|
|
26559
26250
|
variant: variant,
|
|
26560
26251
|
as: as,
|
|
@@ -27148,79 +26839,83 @@ var createFormat = function createFormat(formats, formatChar) {
|
|
|
27148
26839
|
var FormattedInput = function FormattedInput(_ref) {
|
|
27149
26840
|
var value = _ref.value,
|
|
27150
26841
|
formatter = _ref.formatter,
|
|
27151
|
-
|
|
26842
|
+
onChange = _ref.onChange,
|
|
27152
26843
|
props = _objectWithoutProperties$1(_ref, ["value", "formatter", "onChange"]);
|
|
27153
26844
|
|
|
27154
|
-
var
|
|
26845
|
+
var _useState = useState(format$1(formatter)(value)),
|
|
26846
|
+
_useState2 = _slicedToArray$1(_useState, 2),
|
|
26847
|
+
formattedValue = _useState2[0],
|
|
26848
|
+
setFormattedValue = _useState2[1];
|
|
27155
26849
|
|
|
27156
|
-
var
|
|
26850
|
+
var inputEl = useRef(null);
|
|
26851
|
+
var stateRefs = useRef({
|
|
27157
26852
|
selectionStart: 0,
|
|
27158
26853
|
selectionEnd: 0,
|
|
27159
|
-
|
|
27160
|
-
|
|
27161
|
-
|
|
27162
|
-
}),
|
|
27163
|
-
_useState2 = _slicedToArray$1(_useState, 2),
|
|
27164
|
-
state = _useState2[0],
|
|
27165
|
-
setState = _useState2[1];
|
|
27166
|
-
|
|
26854
|
+
isDelete: false,
|
|
26855
|
+
rawValue: ''
|
|
26856
|
+
});
|
|
27167
26857
|
useLayoutEffect(function () {
|
|
27168
26858
|
// A lot of the work here is cursor manipulation
|
|
27169
26859
|
if (inputEl.current && inputEl.current === document.activeElement) {
|
|
27170
|
-
inputEl.current.setSelectionRange(
|
|
26860
|
+
inputEl.current.setSelectionRange(stateRefs.current.selectionStart, stateRefs.current.selectionEnd);
|
|
27171
26861
|
}
|
|
27172
|
-
});
|
|
26862
|
+
}, [stateRefs]);
|
|
26863
|
+
|
|
26864
|
+
var handleChange = function handleChange(event) {
|
|
26865
|
+
var deleteKeyPressed = stateRefs.current.isDelete;
|
|
26866
|
+
var maxFormatExceeded = stateRefs.current.rawValue.length >= formatter.formats.length - 1;
|
|
26867
|
+
|
|
26868
|
+
if (maxFormatExceeded && !deleteKeyPressed) {
|
|
26869
|
+
return;
|
|
26870
|
+
}
|
|
26871
|
+
/* At the beginning of onChange, event.target.value is a concat of the previous formatted value
|
|
26872
|
+
* and an unformatted injection at the start, end, or in the middle (maybe a deletion). To prepare
|
|
26873
|
+
* the unformatted value for the user's onChange, the formatted string and unformatted injection need
|
|
26874
|
+
* to be separated, then unformat the formatted string, then insert (or delete) the injection from the
|
|
26875
|
+
* old unformatted value.
|
|
26876
|
+
*/
|
|
26877
|
+
|
|
26878
|
+
|
|
26879
|
+
var injectionLength = event.target.value.length - formattedValue.length;
|
|
26880
|
+
var end = stateRefs.current.selectionStart === stateRefs.current.selectionEnd ? stateRefs.current.selectionStart + injectionLength : stateRefs.current.selectionEnd - 1;
|
|
26881
|
+
var injection = event.target.value.substring(stateRefs.current.selectionStart, end); // Injection is the new unformatted piece of the input
|
|
26882
|
+
// Need to find where to put it
|
|
26883
|
+
|
|
26884
|
+
var rawInjectionPointStart = formattedToUnformattedIndex(stateRefs.current.selectionStart, stateRefs.current.rawValue, formatter);
|
|
26885
|
+
var rawInjectionPointEnd = formattedToUnformattedIndex(stateRefs.current.selectionEnd, stateRefs.current.rawValue, formatter); // Unformat the previous formatted value for injection
|
|
26886
|
+
// Using the relevant format string, strips away chars not marked with the formatChar
|
|
26887
|
+
|
|
26888
|
+
var unformattedOldValue = unformat(formatter)(formattedValue, stateRefs.current.rawValue.length); // Edit the previous unformatted value (either add, update or delete)
|
|
26889
|
+
|
|
26890
|
+
var injectIntoOldValue = inject(unformattedOldValue);
|
|
26891
|
+
var unformattedNewValue = deleteKeyPressed ? rawInjectionPointStart === rawInjectionPointEnd ? injectIntoOldValue(rawInjectionPointStart - 1, rawInjectionPointStart, "") : injectIntoOldValue(rawInjectionPointStart, rawInjectionPointEnd, "") : injectIntoOldValue(rawInjectionPointStart, rawInjectionPointEnd, injection);
|
|
26892
|
+
var lengthDifference = unformattedNewValue.length - stateRefs.current.rawValue.length;
|
|
26893
|
+
var rawIndex = formattedToUnformattedIndex(stateRefs.current.selectionStart, stateRefs.current.rawValue, formatter) + lengthDifference; // Find the new cursor position for the potential formatted value
|
|
26894
|
+
// Applied by useLayoutEffect
|
|
26895
|
+
|
|
26896
|
+
var newFormattedCursorPosition = stateRefs.current.selectionStart === stateRefs.current.selectionEnd ? unformattedToFormattedIndex(rawIndex, unformattedNewValue, formatter, deleteKeyPressed) : deleteKeyPressed ? stateRefs.current.selectionStart : stateRefs.current.selectionEnd;
|
|
26897
|
+
var formattedNewValue = format$1(formatter)(unformattedNewValue);
|
|
26898
|
+
setFormattedValue(formattedNewValue); // Apply the external onChange function to the raw underlying string
|
|
26899
|
+
// This is where the user generally updates the input value
|
|
26900
|
+
|
|
26901
|
+
if (onChange) {
|
|
26902
|
+
onChange(unformattedNewValue);
|
|
26903
|
+
}
|
|
26904
|
+
};
|
|
26905
|
+
|
|
27173
26906
|
return React.createElement("input", _extends$2({}, props, {
|
|
27174
26907
|
ref: inputEl,
|
|
27175
26908
|
value: format$1(formatter)(value),
|
|
27176
26909
|
onKeyDown: function onKeyDown(event) {
|
|
27177
|
-
// Keep track of the state of the input before onChange
|
|
27178
|
-
|
|
27179
|
-
|
|
26910
|
+
// Keep track of the state of the input before onChange
|
|
26911
|
+
stateRefs.current = {
|
|
26912
|
+
isDelete: event.key === "Backspace" || event.key === "Delete",
|
|
27180
26913
|
selectionStart: event.target.selectionStart,
|
|
27181
26914
|
selectionEnd: event.target.selectionEnd,
|
|
27182
|
-
|
|
27183
|
-
|
|
27184
|
-
});
|
|
26915
|
+
rawValue: value
|
|
26916
|
+
};
|
|
27185
26917
|
},
|
|
27186
|
-
onChange:
|
|
27187
|
-
/* At the beginning of onChange, event.target.value is a concat of the previous formatted value
|
|
27188
|
-
* and an unformatted injection at the start, end, or in the middle (maybe a deletion). To prepare
|
|
27189
|
-
* the unformatted value for the user's onChange, the formatted string and unformatted injection need
|
|
27190
|
-
* to be separated, then unformat the formatted string, then insert (or delete) the injection from the
|
|
27191
|
-
* old unformatted value.
|
|
27192
|
-
*/
|
|
27193
|
-
var injectionLength = event.target.value.length - state.formattedValue.length;
|
|
27194
|
-
var end = state.selectionStart === state.selectionEnd ? state.selectionStart + injectionLength : state.selectionEnd - 1;
|
|
27195
|
-
var injection = event.target.value.substring(state.selectionStart, end); // Injection is the new unformatted piece of the input
|
|
27196
|
-
// Need to find where to put it
|
|
27197
|
-
|
|
27198
|
-
var rawInjectionPointStart = formattedToUnformattedIndex(state.selectionStart, state.rawValue, formatter);
|
|
27199
|
-
var rawInjectionPointEnd = formattedToUnformattedIndex(state.selectionEnd, state.rawValue, formatter); // Unformat the previous formatted value for injection
|
|
27200
|
-
// Using the relevant format string, strips away chars not marked with the formatChar
|
|
27201
|
-
|
|
27202
|
-
var unformattedOldValue = unformat(formatter)(state.formattedValue, state.rawValue.length); // Edit the previous unformatted value (either add, update or delete)
|
|
27203
|
-
|
|
27204
|
-
var injectIntoOldValue = inject(unformattedOldValue);
|
|
27205
|
-
var unformattedNewValue = state["delete"] ? rawInjectionPointStart === rawInjectionPointEnd ? injectIntoOldValue(rawInjectionPointStart - 1, rawInjectionPointStart, "") : injectIntoOldValue(rawInjectionPointStart, rawInjectionPointEnd, "") : injectIntoOldValue(rawInjectionPointStart, rawInjectionPointEnd, injection);
|
|
27206
|
-
var lengthDifference = unformattedNewValue.length - state.rawValue.length;
|
|
27207
|
-
var rawIndex = formattedToUnformattedIndex(state.selectionStart, state.rawValue, formatter) + lengthDifference; // Find the new cursor position for the potential formatted value
|
|
27208
|
-
// Applied by useLayoutEffect
|
|
27209
|
-
|
|
27210
|
-
var newFormattedCursorPosition = state.selectionStart == state.selectionEnd ? unformattedToFormattedIndex(rawIndex, unformattedNewValue, formatter, state["delete"]) : state["delete"] ? state.selectionStart : state.selectionEnd;
|
|
27211
|
-
setState({
|
|
27212
|
-
selectionStart: newFormattedCursorPosition,
|
|
27213
|
-
selectionEnd: newFormattedCursorPosition,
|
|
27214
|
-
rawValue: state.rawValue,
|
|
27215
|
-
"delete": false,
|
|
27216
|
-
formattedValue: state.formattedValue
|
|
27217
|
-
}); // Apply the external onChange function to the raw underlying string
|
|
27218
|
-
// This is where the user generally updates the input value
|
|
27219
|
-
|
|
27220
|
-
if (_onChange) {
|
|
27221
|
-
_onChange(unformattedNewValue);
|
|
27222
|
-
}
|
|
27223
|
-
}
|
|
26918
|
+
onChange: handleChange
|
|
27224
26919
|
}));
|
|
27225
26920
|
};
|
|
27226
26921
|
|
|
@@ -27288,7 +26983,7 @@ var fallbackValues$n = {
|
|
|
27288
26983
|
formFooterPanel: formFooterPanel
|
|
27289
26984
|
};
|
|
27290
26985
|
|
|
27291
|
-
var _excluded$
|
|
26986
|
+
var _excluded$v = ["showErrors", "themeValues"],
|
|
27292
26987
|
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired", "errorFieldExtraStyles", "showFieldErrorRow", "labelTextVariant", "errorTextVariant"];
|
|
27293
26988
|
var InputField = styled.input.withConfig({
|
|
27294
26989
|
displayName: "FormInput__InputField",
|
|
@@ -27323,7 +27018,7 @@ var InputField = styled.input.withConfig({
|
|
|
27323
27018
|
var FormattedInputField = styled(function (_ref8) {
|
|
27324
27019
|
var showErrors = _ref8.showErrors,
|
|
27325
27020
|
themeValues = _ref8.themeValues,
|
|
27326
|
-
props = _objectWithoutProperties(_ref8, _excluded$
|
|
27021
|
+
props = _objectWithoutProperties(_ref8, _excluded$v);
|
|
27327
27022
|
return /*#__PURE__*/React.createElement(FormattedInput, props);
|
|
27328
27023
|
}).withConfig({
|
|
27329
27024
|
displayName: "FormInput__FormattedInputField",
|
|
@@ -27528,7 +27223,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
27528
27223
|
};
|
|
27529
27224
|
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$n, "default");
|
|
27530
27225
|
|
|
27531
|
-
var _excluded$
|
|
27226
|
+
var _excluded$w = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
|
|
27532
27227
|
var FormInputRow = function FormInputRow(_ref) {
|
|
27533
27228
|
var _ref$breakpoint = _ref.breakpoint,
|
|
27534
27229
|
breakpoint = _ref$breakpoint === void 0 ? "30rem" : _ref$breakpoint,
|
|
@@ -27537,7 +27232,7 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
27537
27232
|
largeChild = _ref.largeChild,
|
|
27538
27233
|
largeChildSize = _ref.largeChildSize,
|
|
27539
27234
|
children = _ref.children,
|
|
27540
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27235
|
+
rest = _objectWithoutProperties(_ref, _excluded$w);
|
|
27541
27236
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
27542
27237
|
padding: "0"
|
|
27543
27238
|
}, rest), /*#__PURE__*/React.createElement(Switcher, {
|
|
@@ -27548,24 +27243,24 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
27548
27243
|
}, children));
|
|
27549
27244
|
};
|
|
27550
27245
|
|
|
27551
|
-
var _excluded$
|
|
27246
|
+
var _excluded$x = ["childGap", "bottomItem", "children"];
|
|
27552
27247
|
var FormInputColumn = function FormInputColumn(_ref) {
|
|
27553
27248
|
var _ref$childGap = _ref.childGap,
|
|
27554
27249
|
childGap = _ref$childGap === void 0 ? "0.5rem" : _ref$childGap,
|
|
27555
27250
|
bottomItem = _ref.bottomItem,
|
|
27556
27251
|
children = _ref.children,
|
|
27557
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27252
|
+
rest = _objectWithoutProperties(_ref, _excluded$x);
|
|
27558
27253
|
return /*#__PURE__*/React.createElement(Stack, _extends({
|
|
27559
27254
|
childGap: childGap,
|
|
27560
27255
|
bottomItem: bottomItem
|
|
27561
27256
|
}, rest), children);
|
|
27562
27257
|
};
|
|
27563
27258
|
|
|
27564
|
-
var _excluded$
|
|
27259
|
+
var _excluded$y = ["themeValues", "children"];
|
|
27565
27260
|
var FormContainer = function FormContainer(_ref) {
|
|
27566
27261
|
var themeValues = _ref.themeValues,
|
|
27567
27262
|
children = _ref.children,
|
|
27568
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27263
|
+
rest = _objectWithoutProperties(_ref, _excluded$y);
|
|
27569
27264
|
var _useContext = useContext(ThemeContext),
|
|
27570
27265
|
isMobile = _useContext.isMobile;
|
|
27571
27266
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
@@ -27875,7 +27570,7 @@ var fallbackValues$r = {
|
|
|
27875
27570
|
fontSize: fontSize$8
|
|
27876
27571
|
};
|
|
27877
27572
|
|
|
27878
|
-
var _excluded$
|
|
27573
|
+
var _excluded$z = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
27879
27574
|
var Heading = function Heading(_ref) {
|
|
27880
27575
|
var themeValues = _ref.themeValues,
|
|
27881
27576
|
_ref$weight = _ref.weight,
|
|
@@ -27894,7 +27589,7 @@ var Heading = function Heading(_ref) {
|
|
|
27894
27589
|
as = _ref$as === void 0 ? variant : _ref$as,
|
|
27895
27590
|
dataQa = _ref.dataQa,
|
|
27896
27591
|
children = _ref.children,
|
|
27897
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27592
|
+
rest = _objectWithoutProperties(_ref, _excluded$z);
|
|
27898
27593
|
return /*#__PURE__*/React.createElement(HeadingText, _extends({
|
|
27899
27594
|
variant: variant,
|
|
27900
27595
|
as: as,
|
|
@@ -28095,11 +27790,11 @@ var LabeledAmountV2 = function LabeledAmountV2(_ref) {
|
|
|
28095
27790
|
}, /*#__PURE__*/React.createElement("span", null, label), /*#__PURE__*/React.createElement("span", null, amount));
|
|
28096
27791
|
};
|
|
28097
27792
|
|
|
28098
|
-
var _excluded$
|
|
27793
|
+
var _excluded$A = ["version"];
|
|
28099
27794
|
var LabeledAmount = function LabeledAmount(_ref) {
|
|
28100
27795
|
var _ref$version = _ref.version,
|
|
28101
27796
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
28102
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27797
|
+
rest = _objectWithoutProperties(_ref, _excluded$A);
|
|
28103
27798
|
var LabeledAmountComponent = version === "v1" ? LabeledAmountV1 : LabeledAmountV2;
|
|
28104
27799
|
return /*#__PURE__*/React.createElement(LabeledAmountComponent, rest);
|
|
28105
27800
|
};
|
|
@@ -28244,7 +27939,7 @@ var Loading = function Loading() {
|
|
|
28244
27939
|
})))));
|
|
28245
27940
|
};
|
|
28246
27941
|
|
|
28247
|
-
var _excluded$
|
|
27942
|
+
var _excluded$B = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
|
|
28248
27943
|
var NavFooter = function NavFooter(_ref) {
|
|
28249
27944
|
var leftContent = _ref.leftContent,
|
|
28250
27945
|
rightContent = _ref.rightContent,
|
|
@@ -28259,7 +27954,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
28259
27954
|
footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
|
|
28260
27955
|
isMobile = _ref.isMobile,
|
|
28261
27956
|
footerWidth = _ref.footerWidth,
|
|
28262
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27957
|
+
rest = _objectWithoutProperties(_ref, _excluded$B);
|
|
28263
27958
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
28264
27959
|
padding: footerPadding,
|
|
28265
27960
|
background: backgroundColor,
|
|
@@ -28290,7 +27985,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
28290
27985
|
}, rightContent)))))));
|
|
28291
27986
|
};
|
|
28292
27987
|
|
|
28293
|
-
var _excluded$
|
|
27988
|
+
var _excluded$C = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
|
|
28294
27989
|
var NavHeader = function NavHeader(_ref) {
|
|
28295
27990
|
var leftContent = _ref.leftContent,
|
|
28296
27991
|
rightContent = _ref.rightContent,
|
|
@@ -28299,7 +27994,7 @@ var NavHeader = function NavHeader(_ref) {
|
|
|
28299
27994
|
isMobile = _ref.isMobile,
|
|
28300
27995
|
backgroundColor = _ref.backgroundColor,
|
|
28301
27996
|
headerWidth = _ref.headerWidth,
|
|
28302
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27997
|
+
rest = _objectWithoutProperties(_ref, _excluded$C);
|
|
28303
27998
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
28304
27999
|
padding: "0 16px 4px",
|
|
28305
28000
|
background: backgroundColor,
|
|
@@ -39928,10 +39623,8 @@ var CardText = function CardText(_ref) {
|
|
|
39928
39623
|
themeValues = _ref.themeValues;
|
|
39929
39624
|
return /*#__PURE__*/React.createElement(Box, {
|
|
39930
39625
|
padding: padding
|
|
39931
|
-
}, /*#__PURE__*/React.createElement(Cover, null, /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement(
|
|
39932
|
-
|
|
39933
|
-
align: "center",
|
|
39934
|
-
overflow: true
|
|
39626
|
+
}, /*#__PURE__*/React.createElement(Cover, null, /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement(Box, {
|
|
39627
|
+
padding: "0"
|
|
39935
39628
|
}, titleText && /*#__PURE__*/React.createElement(Title$1, {
|
|
39936
39629
|
as: titleAs,
|
|
39937
39630
|
variant: titleVariant,
|
|
@@ -39946,7 +39639,7 @@ var CardText = function CardText(_ref) {
|
|
|
39946
39639
|
role: "button",
|
|
39947
39640
|
tabIndex: 0,
|
|
39948
39641
|
"aria-label": "Close Card: ".concat(titleText),
|
|
39949
|
-
extraStyles: "cursor: pointer;"
|
|
39642
|
+
extraStyles: "position: absolute; top: 0.5rem; right: 0.5rem; cursor: pointer;"
|
|
39950
39643
|
}, /*#__PURE__*/React.createElement(IconQuitLarge, null))), /*#__PURE__*/React.createElement(Paragraph$1, {
|
|
39951
39644
|
as: textAs,
|
|
39952
39645
|
color: themeValues.textColor
|
|
@@ -46719,11 +46412,11 @@ var Modal$2 = function Modal(_ref) {
|
|
|
46719
46412
|
};
|
|
46720
46413
|
var ModalControlV2 = withWindowSize(Modal$2);
|
|
46721
46414
|
|
|
46722
|
-
var _excluded$
|
|
46415
|
+
var _excluded$D = ["version"];
|
|
46723
46416
|
var Modal$3 = function Modal(_ref) {
|
|
46724
46417
|
var _ref$version = _ref.version,
|
|
46725
46418
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
46726
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
46419
|
+
rest = _objectWithoutProperties(_ref, _excluded$D);
|
|
46727
46420
|
var ModalControl = version === "v1" ? Modal$1 : ModalControlV2;
|
|
46728
46421
|
return /*#__PURE__*/React.createElement(ModalControl, rest);
|
|
46729
46422
|
};
|
|
@@ -48025,7 +47718,7 @@ var fallbackValues$P = {
|
|
|
48025
47718
|
labeledAmountTotal: labeledAmountTotal
|
|
48026
47719
|
};
|
|
48027
47720
|
|
|
48028
|
-
var _excluded$
|
|
47721
|
+
var _excluded$E = ["amount"],
|
|
48029
47722
|
_excluded2$1 = ["amount"];
|
|
48030
47723
|
var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
48031
47724
|
var lineItemElems = _ref.lineItemElems,
|
|
@@ -48268,7 +47961,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
48268
47961
|
return fee.amount > 0;
|
|
48269
47962
|
}).map(function (_ref5) {
|
|
48270
47963
|
var amount = _ref5.amount,
|
|
48271
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
47964
|
+
rest = _objectWithoutProperties(_ref5, _excluded$E);
|
|
48272
47965
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
48273
47966
|
amount: displayCurrency(amount)
|
|
48274
47967
|
});
|
|
@@ -48705,11 +48398,11 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48705
48398
|
}, errorMessage))))));
|
|
48706
48399
|
};
|
|
48707
48400
|
|
|
48708
|
-
var _excluded$
|
|
48401
|
+
var _excluded$F = ["version"];
|
|
48709
48402
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
48710
48403
|
var _ref$version = _ref.version,
|
|
48711
48404
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
48712
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48405
|
+
rest = _objectWithoutProperties(_ref, _excluded$F);
|
|
48713
48406
|
var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
|
|
48714
48407
|
return /*#__PURE__*/React.createElement(TermsAndConditionsControl, rest);
|
|
48715
48408
|
};
|
|
@@ -49517,7 +49210,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
|
49517
49210
|
}, section.content))));
|
|
49518
49211
|
};
|
|
49519
49212
|
|
|
49520
|
-
var _excluded$
|
|
49213
|
+
var _excluded$G = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections", "borderOverride"];
|
|
49521
49214
|
|
|
49522
49215
|
/**
|
|
49523
49216
|
- The RadioSection component takes either a flat array (via the 'sections'
|
|
@@ -49566,7 +49259,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
49566
49259
|
isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire,
|
|
49567
49260
|
groupedSections = _ref.groupedSections,
|
|
49568
49261
|
borderOverride = _ref.borderOverride,
|
|
49569
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
49262
|
+
rest = _objectWithoutProperties(_ref, _excluded$G);
|
|
49570
49263
|
var _useState = useState(null),
|
|
49571
49264
|
_useState2 = _slicedToArray(_useState, 2),
|
|
49572
49265
|
focused = _useState2[0],
|
|
@@ -50113,7 +49806,7 @@ var Timeout = function Timeout(_ref) {
|
|
|
50113
49806
|
};
|
|
50114
49807
|
var Timeout$1 = withWindowSize(Timeout);
|
|
50115
49808
|
|
|
50116
|
-
var _excluded$
|
|
49809
|
+
var _excluded$H = ["variant", "message", "toastOpen", "closeToastNotification", "extraStyles", "minWidth", "maxWidth", "height", "childGap", "backgroundColor", "role", "ariaLive", "screenReaderMessage", "showScreenReaderMessage"];
|
|
50117
49810
|
var VARIANTS = {
|
|
50118
49811
|
SUCCESS: "success",
|
|
50119
49812
|
ERROR: "error"
|
|
@@ -50142,7 +49835,7 @@ var ToastNotification = function ToastNotification(_ref) {
|
|
|
50142
49835
|
screenReaderMessage = _ref.screenReaderMessage,
|
|
50143
49836
|
_ref$showScreenReader = _ref.showScreenReaderMessage,
|
|
50144
49837
|
showScreenReaderMessage = _ref$showScreenReader === void 0 ? true : _ref$showScreenReader,
|
|
50145
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
49838
|
+
rest = _objectWithoutProperties(_ref, _excluded$H);
|
|
50146
49839
|
var screenReaderMessageRef = useRef();
|
|
50147
49840
|
var LIVEREGION_TRANSITION_DELAY = 1000;
|
|
50148
49841
|
useEffect$1(function () {
|
|
@@ -50325,7 +50018,7 @@ var PopupMenuItemContainer = styled(ButtonWithAction).withConfig({
|
|
|
50325
50018
|
return "\n background-color: ".concat(isDeleteAction ? theme.menuItemHoverBackgroundColorDelete : theme.menuItemHoverBackgroundColor, ";\n ");
|
|
50326
50019
|
});
|
|
50327
50020
|
|
|
50328
|
-
var _excluded$
|
|
50021
|
+
var _excluded$I = ["id", "closeMenuCallback", "action", "themeValues", "text", "hasIcon", "isDeleteAction", "icon", "textExtraStyles", "hoverStyles", "activeStyles", "extraStyles"];
|
|
50329
50022
|
var PopupMenuItem = function PopupMenuItem(_ref) {
|
|
50330
50023
|
var id = _ref.id,
|
|
50331
50024
|
closeMenuCallback = _ref.closeMenuCallback,
|
|
@@ -50341,7 +50034,7 @@ var PopupMenuItem = function PopupMenuItem(_ref) {
|
|
|
50341
50034
|
hoverStyles = _ref.hoverStyles,
|
|
50342
50035
|
activeStyles = _ref.activeStyles,
|
|
50343
50036
|
extraStyles = _ref.extraStyles,
|
|
50344
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
50037
|
+
rest = _objectWithoutProperties(_ref, _excluded$I);
|
|
50345
50038
|
return /*#__PURE__*/React.createElement(PopupMenuItemContainer, _extends({
|
|
50346
50039
|
id: id,
|
|
50347
50040
|
role: "menuItem",
|
|
@@ -50514,21 +50207,20 @@ var PopupMenu = function PopupMenu(_ref) {
|
|
|
50514
50207
|
};
|
|
50515
50208
|
var PopupMenu$1 = themeComponent(PopupMenu, "PopupMenu", fallbackValues$Z);
|
|
50516
50209
|
|
|
50517
|
-
var primaryColor$1 =
|
|
50518
|
-
var primaryHoverColor = INFO_BLUE;
|
|
50210
|
+
var primaryColor$1 = INFO_BLUE;
|
|
50519
50211
|
var secondaryColor = MATISSE_BLUE;
|
|
50520
|
-
var secondaryHoverColor = "#115D7E";
|
|
50521
50212
|
var fallbackValues$_ = {
|
|
50522
50213
|
primaryColor: primaryColor$1,
|
|
50523
|
-
|
|
50524
|
-
secondaryColor: secondaryColor,
|
|
50525
|
-
secondaryHoverColor: secondaryHoverColor
|
|
50214
|
+
secondaryColor: secondaryColor
|
|
50526
50215
|
};
|
|
50527
50216
|
|
|
50528
50217
|
var StyledFilterContainer = styled(Box).withConfig({
|
|
50529
50218
|
displayName: "MultipleSelectFilterstyled__StyledFilterContainer",
|
|
50530
50219
|
componentId: "sc-126xgc2-0"
|
|
50531
|
-
})(["position:relative;
|
|
50220
|
+
})(["position:relative;box-sizing:border-box;padding:0;", ""], function (_ref) {
|
|
50221
|
+
var extraStyles = _ref.extraStyles;
|
|
50222
|
+
return extraStyles;
|
|
50223
|
+
});
|
|
50532
50224
|
var FilterContainer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
50533
50225
|
return /*#__PURE__*/React.createElement(StyledFilterContainer, _extends({
|
|
50534
50226
|
ref: ref
|
|
@@ -50537,7 +50229,7 @@ var FilterContainer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
50537
50229
|
var StyledFilterDropdown = styled(Box).withConfig({
|
|
50538
50230
|
displayName: "MultipleSelectFilterstyled__StyledFilterDropdown",
|
|
50539
50231
|
componentId: "sc-126xgc2-1"
|
|
50540
|
-
})(["position:absolute;top:calc(100% + 0.5rem);left:0;width:
|
|
50232
|
+
})(["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;"]);
|
|
50541
50233
|
var FilterDropdownContainer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
50542
50234
|
return /*#__PURE__*/React.createElement(StyledFilterDropdown, _extends({
|
|
50543
50235
|
ref: ref
|
|
@@ -50546,16 +50238,12 @@ var FilterDropdownContainer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
50546
50238
|
var FilterButton = styled(ButtonWithAction).withConfig({
|
|
50547
50239
|
displayName: "MultipleSelectFilterstyled__FilterButton",
|
|
50548
50240
|
componentId: "sc-126xgc2-2"
|
|
50549
|
-
})(["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 (
|
|
50550
|
-
var
|
|
50551
|
-
|
|
50552
|
-
|
|
50553
|
-
|
|
50554
|
-
|
|
50555
|
-
var opened = _ref2.opened,
|
|
50556
|
-
backgroundColor = _ref2.backgroundColor,
|
|
50557
|
-
backgroundHoverColor = _ref2.backgroundHoverColor;
|
|
50558
|
-
return "\n background-color: ".concat(opened ? backgroundHoverColor : backgroundColor, "; \n :hover,\n :active,\n :focus {\n background-color: ").concat(backgroundHoverColor, ";\n }\n ");
|
|
50241
|
+
})(["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) {
|
|
50242
|
+
var textColor = _ref2.textColor;
|
|
50243
|
+
return "\n color: ".concat(textColor, ";\n ");
|
|
50244
|
+
}, function (_ref3) {
|
|
50245
|
+
var backgroundColor = _ref3.backgroundColor;
|
|
50246
|
+
return "\n background-color: ".concat(backgroundColor, ";\n :hover,\n :active,\n :focus {\n background-color: ").concat(backgroundColor, ";\n }\n ");
|
|
50559
50247
|
});
|
|
50560
50248
|
var StyledFilterButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
50561
50249
|
return /*#__PURE__*/React.createElement(FilterButton, _extends({
|
|
@@ -50566,8 +50254,7 @@ var StyledFilterButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
50566
50254
|
var ActionLinkButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
50567
50255
|
var action = _ref.action,
|
|
50568
50256
|
text = _ref.text,
|
|
50569
|
-
dataQa = _ref.dataQa
|
|
50570
|
-
ariaLabel = _ref.ariaLabel;
|
|
50257
|
+
dataQa = _ref.dataQa;
|
|
50571
50258
|
return /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
50572
50259
|
ref: ref,
|
|
50573
50260
|
action: action,
|
|
@@ -50575,12 +50262,11 @@ var ActionLinkButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50575
50262
|
extraStyles: "\n padding: 0.2rem; \n margin: 0.5rem; \n min-height: auto; \n min-width: auto;\n ",
|
|
50576
50263
|
textExtraStyles: "font-weight: ".concat(FONT_WEIGHT_REGULAR, ";"),
|
|
50577
50264
|
text: text,
|
|
50578
|
-
dataQa: dataQa
|
|
50579
|
-
"aria-label": ariaLabel
|
|
50265
|
+
dataQa: dataQa
|
|
50580
50266
|
});
|
|
50581
50267
|
});
|
|
50582
50268
|
|
|
50583
|
-
var _excluded$
|
|
50269
|
+
var _excluded$J = ["width", "height", "color"];
|
|
50584
50270
|
var DropdownIconV2 = function DropdownIconV2(_ref) {
|
|
50585
50271
|
var _ref$width = _ref.width,
|
|
50586
50272
|
width = _ref$width === void 0 ? "18" : _ref$width,
|
|
@@ -50588,7 +50274,7 @@ var DropdownIconV2 = function DropdownIconV2(_ref) {
|
|
|
50588
50274
|
height = _ref$height === void 0 ? "19" : _ref$height,
|
|
50589
50275
|
_ref$color = _ref.color,
|
|
50590
50276
|
color = _ref$color === void 0 ? "#292A33" : _ref$color,
|
|
50591
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
50277
|
+
props = _objectWithoutProperties(_ref, _excluded$J);
|
|
50592
50278
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
50593
50279
|
width: width,
|
|
50594
50280
|
height: height,
|
|
@@ -50634,9 +50320,7 @@ var FilterButton$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50634
50320
|
action = _ref$action === void 0 ? noop$1 : _ref$action,
|
|
50635
50321
|
opened = _ref.opened,
|
|
50636
50322
|
backgroundColor = _ref.backgroundColor,
|
|
50637
|
-
|
|
50638
|
-
textColor = _ref.textColor,
|
|
50639
|
-
textHoverColor = _ref.textHoverColor,
|
|
50323
|
+
contentColor = _ref.contentColor,
|
|
50640
50324
|
name = _ref.name,
|
|
50641
50325
|
filterDropdownID = _ref.filterDropdownID,
|
|
50642
50326
|
_ref$hasIcon = _ref.hasIcon,
|
|
@@ -50644,10 +50328,7 @@ var FilterButton$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50644
50328
|
Icon = _ref.icon,
|
|
50645
50329
|
truncateBtnTextWidth = _ref.truncateBtnTextWidth,
|
|
50646
50330
|
filterLabel = _ref.filterLabel,
|
|
50647
|
-
selectedOptions = _ref.selectedOptions
|
|
50648
|
-
extraStyles = _ref.extraStyles;
|
|
50649
|
-
var btnTextFilterDescription = selectedOptions !== null && selectedOptions !== void 0 && selectedOptions.length ? "".concat(filterLabel ? "".concat(filterLabel, ": ") : "").concat(selectedOptions[0].name) : "".concat(filterLabel ? filterLabel : "");
|
|
50650
|
-
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") : "";
|
|
50331
|
+
selectedOptions = _ref.selectedOptions;
|
|
50651
50332
|
return /*#__PURE__*/React.createElement(StyledFilterButton, {
|
|
50652
50333
|
ref: ref,
|
|
50653
50334
|
variant: "tertiary",
|
|
@@ -50656,13 +50337,7 @@ var FilterButton$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50656
50337
|
"aria-expanded": opened,
|
|
50657
50338
|
"aria-controls": filterDropdownID,
|
|
50658
50339
|
backgroundColor: backgroundColor,
|
|
50659
|
-
backgroundHoverColor: backgroundHoverColor,
|
|
50660
|
-
textColor: textColor,
|
|
50661
|
-
textHoverColor: textHoverColor,
|
|
50662
|
-
opened: opened,
|
|
50663
50340
|
dataQa: "".concat(name, "-filter-button"),
|
|
50664
|
-
extraStyles: extraStyles,
|
|
50665
|
-
"aria-label": "".concat(filterLabel, " Filter: ").concat(btnTextFilterDescription, " ").concat(btnTextItemsDescription),
|
|
50666
50341
|
contentOverride: true
|
|
50667
50342
|
}, btnContentOverride ? btnContentOverride : /*#__PURE__*/React.createElement(Center, {
|
|
50668
50343
|
as: "span",
|
|
@@ -50672,7 +50347,7 @@ var FilterButton$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50672
50347
|
},
|
|
50673
50348
|
intrinsic: true
|
|
50674
50349
|
}, hasIcon && /*#__PURE__*/React.createElement(Icon, {
|
|
50675
|
-
color:
|
|
50350
|
+
color: contentColor
|
|
50676
50351
|
}), /*#__PURE__*/React.createElement(Center, {
|
|
50677
50352
|
as: "span",
|
|
50678
50353
|
style: {
|
|
@@ -50683,22 +50358,20 @@ var FilterButton$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50683
50358
|
intrinsic: true
|
|
50684
50359
|
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
50685
50360
|
variant: "pS",
|
|
50686
|
-
color:
|
|
50361
|
+
color: contentColor,
|
|
50687
50362
|
extraStyles: "\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n ".concat(truncateBtnTextWidth && "max-width:" + truncateBtnTextWidth, "\n ")
|
|
50688
|
-
},
|
|
50689
|
-
color:
|
|
50363
|
+
}, selectedOptions !== null && selectedOptions !== void 0 && selectedOptions.length ? "".concat(filterLabel ? filterLabel + ": " : "").concat(selectedOptions[0].name) : "".concat(filterLabel ? filterLabel : "")), /*#__PURE__*/React.createElement(Text$1, {
|
|
50364
|
+
color: contentColor,
|
|
50690
50365
|
variant: "pS"
|
|
50691
|
-
},
|
|
50692
|
-
color:
|
|
50366
|
+
}, 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.createElement(DropdownIconV2, {
|
|
50367
|
+
color: contentColor
|
|
50693
50368
|
})));
|
|
50694
50369
|
});
|
|
50695
50370
|
|
|
50696
50371
|
var FilterDropdown = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
50697
50372
|
var id = _ref.id,
|
|
50698
50373
|
ariaOwns = _ref.ariaOwns,
|
|
50699
|
-
ariaControls = _ref.ariaControls,
|
|
50700
50374
|
opened = _ref.opened,
|
|
50701
|
-
extraStyles = _ref.extraStyles,
|
|
50702
50375
|
children = _ref.children;
|
|
50703
50376
|
return /*#__PURE__*/React.createElement(React.Fragment, null, opened && /*#__PURE__*/React.createElement(FilterDropdownContainer, {
|
|
50704
50377
|
ref: ref,
|
|
@@ -50706,9 +50379,7 @@ var FilterDropdown = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50706
50379
|
role: "combobox",
|
|
50707
50380
|
"aria-expanded": opened,
|
|
50708
50381
|
"aria-haspopup": "listbox",
|
|
50709
|
-
"aria-owns": ariaOwns
|
|
50710
|
-
"aria-controls": ariaControls,
|
|
50711
|
-
extraStyles: extraStyles
|
|
50382
|
+
"aria-owns": ariaOwns
|
|
50712
50383
|
}, children));
|
|
50713
50384
|
});
|
|
50714
50385
|
|
|
@@ -50729,54 +50400,10 @@ var SearchBox = function SearchBox(_ref) {
|
|
|
50729
50400
|
fieldActions: actions.fields.searchTerm,
|
|
50730
50401
|
placeholder: placeholder,
|
|
50731
50402
|
disabled: disabled,
|
|
50732
|
-
extraStyles: "\n
|
|
50403
|
+
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 ")
|
|
50733
50404
|
}));
|
|
50734
50405
|
};
|
|
50735
50406
|
|
|
50736
|
-
var _excluded$M = ["width", "height", "color"];
|
|
50737
|
-
var CheckboxCheckmarkIcon = function CheckboxCheckmarkIcon(_ref) {
|
|
50738
|
-
var _ref$width = _ref.width,
|
|
50739
|
-
width = _ref$width === void 0 ? "18" : _ref$width,
|
|
50740
|
-
_ref$height = _ref.height,
|
|
50741
|
-
height = _ref$height === void 0 ? "18" : _ref$height,
|
|
50742
|
-
_ref$color = _ref.color,
|
|
50743
|
-
color = _ref$color === void 0 ? "#FEFEFE" : _ref$color,
|
|
50744
|
-
props = _objectWithoutProperties(_ref, _excluded$M);
|
|
50745
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
50746
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
50747
|
-
width: width,
|
|
50748
|
-
height: height,
|
|
50749
|
-
viewBox: "0 0 ".concat(width, " ").concat(height),
|
|
50750
|
-
fill: "none"
|
|
50751
|
-
}, props), /*#__PURE__*/React.createElement("path", {
|
|
50752
|
-
fillRule: "evenodd",
|
|
50753
|
-
clipRule: "evenodd",
|
|
50754
|
-
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",
|
|
50755
|
-
fill: "#FEFEFE"
|
|
50756
|
-
}), /*#__PURE__*/React.createElement("mask", {
|
|
50757
|
-
id: "mask0_3361_1486",
|
|
50758
|
-
style: {
|
|
50759
|
-
maskType: "luminance"
|
|
50760
|
-
},
|
|
50761
|
-
maskUnits: "userSpaceOnUse",
|
|
50762
|
-
x: "4",
|
|
50763
|
-
y: "5",
|
|
50764
|
-
width: "11",
|
|
50765
|
-
height: "9"
|
|
50766
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
50767
|
-
fillRule: "evenodd",
|
|
50768
|
-
clipRule: "evenodd",
|
|
50769
|
-
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",
|
|
50770
|
-
fill: "white"
|
|
50771
|
-
})), /*#__PURE__*/React.createElement("g", {
|
|
50772
|
-
mask: "url(#mask0_3361_1486)"
|
|
50773
|
-
}, /*#__PURE__*/React.createElement("rect", {
|
|
50774
|
-
width: width,
|
|
50775
|
-
height: height,
|
|
50776
|
-
fill: color
|
|
50777
|
-
})));
|
|
50778
|
-
};
|
|
50779
|
-
|
|
50780
50407
|
var FilterableListItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
50781
50408
|
var index = _ref.index,
|
|
50782
50409
|
option = _ref.option,
|
|
@@ -50785,31 +50412,28 @@ var FilterableListItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50785
50412
|
disabled = _ref.disabled,
|
|
50786
50413
|
tabIndex = _ref.tabIndex,
|
|
50787
50414
|
name = _ref.name,
|
|
50788
|
-
showDivider = _ref.showDivider,
|
|
50789
|
-
extraStyles = _ref.extraStyles,
|
|
50790
50415
|
themeValues = _ref.themeValues;
|
|
50791
|
-
|
|
50792
|
-
|
|
50416
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
50417
|
+
padding: "0",
|
|
50793
50418
|
key: index,
|
|
50419
|
+
extraStyles: "\n :hover,\n :active,\n :focus {\n background-color: ".concat(themeValues.primaryColor, ";\n }\n ")
|
|
50420
|
+
}, /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
50794
50421
|
ref: ref,
|
|
50795
50422
|
title: option.name,
|
|
50796
50423
|
name: option.name,
|
|
50797
|
-
role: "option",
|
|
50798
|
-
"aria-selected": checked,
|
|
50799
|
-
tabIndex: tabIndex,
|
|
50800
|
-
dataQa: "".concat(name, "-option-").concat(index),
|
|
50801
50424
|
checked: checked,
|
|
50802
50425
|
onChange: function onChange() {
|
|
50803
50426
|
return selectOption(option);
|
|
50804
50427
|
},
|
|
50805
50428
|
textExtraStyles: "font-size: 0.875rem; margin: 0;",
|
|
50806
50429
|
disabled: disabled,
|
|
50807
|
-
extraStyles: "\n
|
|
50808
|
-
checkboxMargin:
|
|
50809
|
-
|
|
50810
|
-
|
|
50811
|
-
|
|
50812
|
-
|
|
50430
|
+
extraStyles: "\n padding: 0.075rem 0.325rem; \n margin: 0;\n :hover,\n :active,\n :focus {\n background-color: ".concat(themeValues.primaryColor, ";\n }\n "),
|
|
50431
|
+
checkboxMargin: "0.3rem",
|
|
50432
|
+
role: "option",
|
|
50433
|
+
checkboxExtraStyles: "\n width: 1.375rem; \n height: 1.375rem;\n ".concat(checked && !disabled ? "background: " + themeValues.secondaryColor + ";" : "", "\n "),
|
|
50434
|
+
tabIndex: tabIndex,
|
|
50435
|
+
dataQa: "".concat(name, "-option-").concat(index)
|
|
50436
|
+
}));
|
|
50813
50437
|
});
|
|
50814
50438
|
|
|
50815
50439
|
var filterItemsList = function filterItemsList(list, searchTerm) {
|
|
@@ -50974,12 +50598,14 @@ var FilterableList = function FilterableList(_ref) {
|
|
|
50974
50598
|
handleKeyDown = _useKeyboardNavigatio.handleKeyDown;
|
|
50975
50599
|
return /*#__PURE__*/React.createElement(Box, {
|
|
50976
50600
|
id: id,
|
|
50977
|
-
padding: "0",
|
|
50978
50601
|
role: "listbox",
|
|
50979
|
-
|
|
50980
|
-
|
|
50981
|
-
|
|
50982
|
-
}, (sortedAppliedOptions === null || sortedAppliedOptions === void 0 ? void 0 : sortedAppliedOptions.length) > 0 && /*#__PURE__*/React.createElement(
|
|
50602
|
+
padding: "0",
|
|
50603
|
+
extraStyles: "\n overflow-y: auto;\n max-height: 250px;\n display: flex;\n flex-flow: column;\n ",
|
|
50604
|
+
onKeyDown: handleKeyDown
|
|
50605
|
+
}, (sortedAppliedOptions === null || sortedAppliedOptions === void 0 ? void 0 : sortedAppliedOptions.length) > 0 && /*#__PURE__*/React.createElement(Box, {
|
|
50606
|
+
padding: "0",
|
|
50607
|
+
extraStyles: sortedOptions.length > 0 && "border-bottom: 1px solid ".concat(GHOST_GREY)
|
|
50608
|
+
}, sortedAppliedOptions.map(function (option, index) {
|
|
50983
50609
|
var checked = isChecked(option, selectedOptions);
|
|
50984
50610
|
var tabIndex = index === focusedIndex || index === 0 && focusedIndex === -1 ? "0" : "-1";
|
|
50985
50611
|
return /*#__PURE__*/React.createElement(FilterableListItem, {
|
|
@@ -50993,10 +50619,9 @@ var FilterableList = function FilterableList(_ref) {
|
|
|
50993
50619
|
selectOption: handleSelectOption,
|
|
50994
50620
|
tabIndex: tabIndex,
|
|
50995
50621
|
name: name,
|
|
50996
|
-
themeValues: themeValues
|
|
50997
|
-
showDivider: sortedOptions.length > 0 && index === sortedAppliedOptions.length - 1
|
|
50622
|
+
themeValues: themeValues
|
|
50998
50623
|
});
|
|
50999
|
-
})),
|
|
50624
|
+
})), sortedOptions.map(function (option, index) {
|
|
51000
50625
|
var checked = isChecked(option, selectedOptions);
|
|
51001
50626
|
var isDisabled = isMaxSelectionReached(maxSelections, selectedOptions) && !checked;
|
|
51002
50627
|
var indexOffset = sortedAppliedOptions !== null && sortedAppliedOptions !== void 0 && sortedAppliedOptions.length ? sortedAppliedOptions === null || sortedAppliedOptions === void 0 ? void 0 : sortedAppliedOptions.length : 0;
|
|
@@ -51016,7 +50641,7 @@ var FilterableList = function FilterableList(_ref) {
|
|
|
51016
50641
|
name: name,
|
|
51017
50642
|
themeValues: themeValues
|
|
51018
50643
|
});
|
|
51019
|
-
}))
|
|
50644
|
+
}));
|
|
51020
50645
|
};
|
|
51021
50646
|
var FilterableList$1 = /*#__PURE__*/React.memo(FilterableList);
|
|
51022
50647
|
|
|
@@ -51024,9 +50649,7 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
51024
50649
|
var actions = _ref.actions,
|
|
51025
50650
|
autocompleteValue = _ref.autocompleteValue,
|
|
51026
50651
|
btnContentOverride = _ref.btnContentOverride,
|
|
51027
|
-
btnExtraStyles = _ref.btnExtraStyles,
|
|
51028
50652
|
disabled = _ref.disabled,
|
|
51029
|
-
dropdownExtraStyles = _ref.dropdownExtraStyles,
|
|
51030
50653
|
extraStyles = _ref.extraStyles,
|
|
51031
50654
|
fields = _ref.fields,
|
|
51032
50655
|
filterLabel = _ref.filterLabel,
|
|
@@ -51045,6 +50668,8 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
51045
50668
|
placeholder = _ref$placeholder === void 0 ? "Search" : _ref$placeholder,
|
|
51046
50669
|
_ref$searchable = _ref.searchable,
|
|
51047
50670
|
searchable = _ref$searchable === void 0 ? true : _ref$searchable,
|
|
50671
|
+
selectedOptions = _ref.selectedOptions,
|
|
50672
|
+
setSelectedOptions = _ref.setSelectedOptions,
|
|
51048
50673
|
themeValues = _ref.themeValues,
|
|
51049
50674
|
_ref$truncateBtnTextW = _ref.truncateBtnTextWidth,
|
|
51050
50675
|
truncateBtnTextWidth = _ref$truncateBtnTextW === void 0 ? "15rem" : _ref$truncateBtnTextW;
|
|
@@ -51054,29 +50679,22 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
51054
50679
|
setOpened = _useState2[1];
|
|
51055
50680
|
var _useState3 = useState([]),
|
|
51056
50681
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
51057
|
-
|
|
51058
|
-
|
|
51059
|
-
var
|
|
51060
|
-
|
|
51061
|
-
|
|
51062
|
-
|
|
51063
|
-
var openedRef = useRef(opened);
|
|
51064
|
-
var handleOnClose = function handleOnClose() {
|
|
51065
|
-
if (openedRef.current) {
|
|
51066
|
-
setOpened(false);
|
|
51067
|
-
actions.fields.searchTerm.set("");
|
|
51068
|
-
}
|
|
50682
|
+
appliedOptions = _useState4[0],
|
|
50683
|
+
setAppliedOptions = _useState4[1];
|
|
50684
|
+
var handleClickOutsideContainer = function handleClickOutsideContainer() {
|
|
50685
|
+
setOpened(false);
|
|
50686
|
+
actions.fields.searchTerm.set("");
|
|
50687
|
+
onApply(selectedOptions);
|
|
51069
50688
|
};
|
|
51070
50689
|
var containerRef = useOutsideClickHook(function () {
|
|
51071
|
-
return
|
|
50690
|
+
return handleClickOutsideContainer();
|
|
51072
50691
|
});
|
|
51073
50692
|
var dropdownRef = useRef(null);
|
|
51074
50693
|
var filterButtonRef = useRef(null);
|
|
51075
50694
|
var applyFilterButtonRef = useRef(null);
|
|
51076
50695
|
var filterDropdownID = "".concat(name, "-filter-dropdown");
|
|
51077
|
-
var
|
|
50696
|
+
var checkboxListID = "".concat(name, "-checkbox-list");
|
|
51078
50697
|
useEffect$1(function () {
|
|
51079
|
-
openedRef.current = opened;
|
|
51080
50698
|
if (!opened) {
|
|
51081
50699
|
onApply(selectedOptions);
|
|
51082
50700
|
setAppliedOptions(selectedOptions);
|
|
@@ -51093,7 +50711,9 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
51093
50711
|
or tabbing backward past the filter button.
|
|
51094
50712
|
*/
|
|
51095
50713
|
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)) {
|
|
51096
|
-
|
|
50714
|
+
setOpened(false);
|
|
50715
|
+
actions.fields.searchTerm.set("");
|
|
50716
|
+
onApply(selectedOptions);
|
|
51097
50717
|
}
|
|
51098
50718
|
};
|
|
51099
50719
|
document.addEventListener("keydown", handleKeyDown);
|
|
@@ -51112,25 +50732,20 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
51112
50732
|
setOpened(!opened);
|
|
51113
50733
|
},
|
|
51114
50734
|
opened: opened,
|
|
51115
|
-
|
|
51116
|
-
|
|
51117
|
-
textColor: appliedOptions !== null && appliedOptions !== void 0 && appliedOptions.length ? WHITE : CHARADE_GREY,
|
|
51118
|
-
textHoverColor: opened && !(appliedOptions !== null && appliedOptions !== void 0 && appliedOptions.length) ? CHARADE_GREY : WHITE,
|
|
50735
|
+
backgroundColor: opened ? themeValues.primaryColor : selectedOptions !== null && selectedOptions !== void 0 && selectedOptions.length ? themeValues.secondaryColor : WHITE,
|
|
50736
|
+
contentColor: !opened && selectedOptions !== null && selectedOptions !== void 0 && selectedOptions.length ? WHITE : CHARADE_GREY,
|
|
51119
50737
|
name: name,
|
|
51120
50738
|
filterDropdownID: filterDropdownID,
|
|
51121
50739
|
hasIcon: hasIcon,
|
|
51122
50740
|
icon: Icon,
|
|
51123
50741
|
truncateBtnTextWidth: truncateBtnTextWidth,
|
|
51124
50742
|
filterLabel: filterLabel,
|
|
51125
|
-
selectedOptions: selectedOptions
|
|
51126
|
-
extraStyles: btnExtraStyles
|
|
50743
|
+
selectedOptions: selectedOptions
|
|
51127
50744
|
}), /*#__PURE__*/React.createElement(FilterDropdown, {
|
|
51128
50745
|
id: filterDropdownID,
|
|
51129
50746
|
ref: dropdownRef,
|
|
51130
|
-
ariaOwns:
|
|
51131
|
-
|
|
51132
|
-
opened: opened,
|
|
51133
|
-
extraStyles: dropdownExtraStyles
|
|
50747
|
+
ariaOwns: checkboxListID,
|
|
50748
|
+
opened: opened
|
|
51134
50749
|
}, /*#__PURE__*/React.createElement(SearchBox, {
|
|
51135
50750
|
showSearchBox: searchable && (options === null || options === void 0 ? void 0 : options.length) > 8,
|
|
51136
50751
|
autocompleteValue: autocompleteValue,
|
|
@@ -51139,7 +50754,7 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
51139
50754
|
placeholder: placeholder,
|
|
51140
50755
|
disabled: disabled
|
|
51141
50756
|
}), /*#__PURE__*/React.createElement(FilterableList$1, {
|
|
51142
|
-
id:
|
|
50757
|
+
id: checkboxListID,
|
|
51143
50758
|
options: options,
|
|
51144
50759
|
appliedOptions: appliedOptions,
|
|
51145
50760
|
themeValues: themeValues,
|
|
@@ -51153,21 +50768,22 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
51153
50768
|
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 ")
|
|
51154
50769
|
}, /*#__PURE__*/React.createElement(ActionLinkButton, {
|
|
51155
50770
|
action: function action() {
|
|
50771
|
+
setOpened(false);
|
|
51156
50772
|
setSelectedOptions([]);
|
|
51157
|
-
|
|
50773
|
+
actions.fields.searchTerm.set("");
|
|
51158
50774
|
onClear();
|
|
51159
50775
|
},
|
|
51160
50776
|
text: "Clear",
|
|
51161
|
-
dataQa: "".concat(name, "-clear-filters")
|
|
51162
|
-
ariaLabel: "Clear all filters"
|
|
50777
|
+
dataQa: "".concat(name, "-clear-filters")
|
|
51163
50778
|
}), /*#__PURE__*/React.createElement(ActionLinkButton, {
|
|
51164
50779
|
ref: applyFilterButtonRef,
|
|
51165
50780
|
action: function action() {
|
|
51166
|
-
|
|
50781
|
+
setOpened(false);
|
|
50782
|
+
actions.fields.searchTerm.set("");
|
|
50783
|
+
onApply(selectedOptions);
|
|
51167
50784
|
},
|
|
51168
50785
|
text: "Apply",
|
|
51169
|
-
dataQa: "".concat(name, "-apply-filters")
|
|
51170
|
-
ariaLabel: "Apply all filters"
|
|
50786
|
+
dataQa: "".concat(name, "-apply-filters")
|
|
51171
50787
|
}))));
|
|
51172
50788
|
};
|
|
51173
50789
|
var MultipleSelectFilter$1 = themeComponent(MultipleSelectFilter, "MultipleSelectFilter", fallbackValues$_);
|
|
@@ -51465,5 +51081,5 @@ var index$6 = /*#__PURE__*/Object.freeze({
|
|
|
51465
51081
|
useToastNotification: useToastNotification
|
|
51466
51082
|
});
|
|
51467
51083
|
|
|
51468
|
-
export { AccountNumberImage, AccountsAddIcon$1 as AccountsAddIcon, AccountsIcon$1 as AccountsIcon, AccountsIconSmall$1 as AccountsIconSmall, AchReturnIcon, AddObligation$1 as AddObligation, AddressForm, AgencyIcon, Alert$1 as Alert, AllocatedIcon, AmountCallout$1 as AmountCallout, ArrowDownCircleIconSmall, ArrowLeftCircleIconMedium, ArrowLeftCircleIconSmall, ArrowRightCircleIconSmall, ArrowRightIcon, ArrowUpCircleIconSmall, AutopayIcon, AutopayOnIcon, Badge$1 as Badge, BankIcon, BankIconLarge, Banner$1 as Banner, Box, BoxWithShadow$1 as BoxWithShadow, Breadcrumbs as Breadcrumb, ButtonWithAction, ButtonWithLink, CalendarIcon, Card$1 as Card, CaretArrowDown$1 as CaretArrowDown, CaretArrowUp$1 as CaretArrowUp, CarrotIcon$1 as CarrotIcon, CashIcon, Center, CenterSingle$1 as CenterSingle, CenterStack$1 as CenterStack, ChangePasswordForm, ChargebackIcon, ChargebackIconMedium, ChargebackIconSmall, ChargebackReversalIcon, ChargebackReversalIconMedium, ChargebackReversalIconSmall, CheckIcon, Checkbox$1 as Checkbox, CheckboxList$1 as CheckboxList, CheckmarkIcon, ChevronIcon$1 as ChevronIcon, CloseIcon, Cluster, CollapsibleSection$1 as CollapsibleSection, Copyable, CountryDropdown, Cover, CustomerSearchIcon, DefaultPageTemplate, Detail$1 as Detail, DisabledAccountsAddIcon, DisabledPaymentMethodsAddIcon, DisabledPropertiesAddIcon, DisplayBox$1 as DisplayBox, DisplayCard, Dropdown$1 as Dropdown, DuplicateIcon, EditNameForm, EditableList, EditableTable, EmailForm, EmptyCartIcon$1 as EmptyCartIcon, EmptyCartIconV2$1 as EmptyCartIconV2, ErroredIcon, ExternalLink, ExternalLinkIcon, FailedIcon, FindIconSmall$1 as FindIconSmall, FooterWithSubfooter$1 as FooterWithSubfooter, ForgotPasswordForm, ForgotPasswordIcon$1 as ForgotPasswordIcon, FormContainer$1 as FormContainer, FormFooterPanel$1 as FormFooterPanel, FormInput$1 as FormInput, FormInputColumn, FormInputRow, FormSelect$1 as FormSelect, FormattedAddress$1 as FormattedAddress, FormattedBankAccount$1 as FormattedBankAccount, FormattedCreditCard$1 as FormattedCreditCard, Frame, GenericCard, GenericCardLarge, GenericErrorIcon, GoToEmailIcon$1 as GoToEmailIcon, Grid, GuidedCheckoutImage, HamburgerButton, Heading$1 as Heading, HighlightTabRow$1 as HighlightTabRow, HistoryIconSmall$1 as HistoryIconSmall, IconAdd, IconQuitLarge, ImageBox, Imposter, InternalLink, Jumbo$1 as Jumbo, KebabMenuIcon, KioskImage, LabeledAmount$1 as LabeledAmount, LineItem$1 as LineItem, LinkCard$1 as LinkCard, Loading, LoadingLine, LoginForm, Modal$3 as Modal, Module$1 as Module, Motion, MultiCartIcon, MultipleSelectFilter$1 as MultipleSelectFilter, NavFooter, NavHeader, NavMenuDesktop$1 as NavMenuDesktop, NavMenuMobile$1 as NavMenuMobile, NavTabs, NoResultsIcon, NotFoundIcon, Obligation$1 as Obligation, iconsMap as ObligationIcons, OverageIcon, Pagination$1 as Pagination, Paragraph$1 as Paragraph, PartialAmountForm, PasswordRequirements, PaymentButtonBar, PaymentDetails$1 as PaymentDetails, PaymentFormACH, PaymentFormCard$1 as PaymentFormCard, PaymentMethodAddIcon$1 as PaymentMethodAddIcon, PaymentMethodIcon$1 as PaymentMethodIcon, PaymentSearchIcon,
|
|
51084
|
+
export { AccountNumberImage, AccountsAddIcon$1 as AccountsAddIcon, AccountsIcon$1 as AccountsIcon, AccountsIconSmall$1 as AccountsIconSmall, AchReturnIcon, AddObligation$1 as AddObligation, AddressForm, AgencyIcon, Alert$1 as Alert, AllocatedIcon, AmountCallout$1 as AmountCallout, ArrowDownCircleIconSmall, ArrowLeftCircleIconMedium, ArrowLeftCircleIconSmall, ArrowRightCircleIconSmall, ArrowRightIcon, ArrowUpCircleIconSmall, AutopayIcon, AutopayOnIcon, Badge$1 as Badge, BankIcon, BankIconLarge, Banner$1 as Banner, Box, BoxWithShadow$1 as BoxWithShadow, Breadcrumbs as Breadcrumb, ButtonWithAction, ButtonWithLink, CalendarIcon, Card$1 as Card, CaretArrowDown$1 as CaretArrowDown, CaretArrowUp$1 as CaretArrowUp, CarrotIcon$1 as CarrotIcon, CashIcon, Center, CenterSingle$1 as CenterSingle, CenterStack$1 as CenterStack, ChangePasswordForm, ChargebackIcon, ChargebackIconMedium, ChargebackIconSmall, ChargebackReversalIcon, ChargebackReversalIconMedium, ChargebackReversalIconSmall, CheckIcon, Checkbox$1 as Checkbox, CheckboxList$1 as CheckboxList, CheckmarkIcon, ChevronIcon$1 as ChevronIcon, CloseIcon, Cluster, CollapsibleSection$1 as CollapsibleSection, Copyable, CountryDropdown, Cover, CustomerSearchIcon, DefaultPageTemplate, Detail$1 as Detail, DisabledAccountsAddIcon, DisabledPaymentMethodsAddIcon, DisabledPropertiesAddIcon, DisplayBox$1 as DisplayBox, DisplayCard, Dropdown$1 as Dropdown, DuplicateIcon, EditNameForm, EditableList, EditableTable, EmailForm, EmptyCartIcon$1 as EmptyCartIcon, EmptyCartIconV2$1 as EmptyCartIconV2, ErroredIcon, ExternalLink, ExternalLinkIcon, FailedIcon, FindIconSmall$1 as FindIconSmall, FooterWithSubfooter$1 as FooterWithSubfooter, ForgotPasswordForm, ForgotPasswordIcon$1 as ForgotPasswordIcon, FormContainer$1 as FormContainer, FormFooterPanel$1 as FormFooterPanel, FormInput$1 as FormInput, FormInputColumn, FormInputRow, FormSelect$1 as FormSelect, FormattedAddress$1 as FormattedAddress, FormattedBankAccount$1 as FormattedBankAccount, FormattedCreditCard$1 as FormattedCreditCard, Frame, GenericCard, GenericCardLarge, GenericErrorIcon, GoToEmailIcon$1 as GoToEmailIcon, Grid, GuidedCheckoutImage, HamburgerButton, Heading$1 as Heading, HighlightTabRow$1 as HighlightTabRow, HistoryIconSmall$1 as HistoryIconSmall, IconAdd, IconQuitLarge, ImageBox, Imposter, InternalLink, Jumbo$1 as Jumbo, KebabMenuIcon, KioskImage, LabeledAmount$1 as LabeledAmount, LineItem$1 as LineItem, LinkCard$1 as LinkCard, Loading, LoadingLine, LoginForm, Modal$3 as Modal, Module$1 as Module, Motion, MultiCartIcon, MultipleSelectFilter$1 as MultipleSelectFilter, NavFooter, NavHeader, NavMenuDesktop$1 as NavMenuDesktop, NavMenuMobile$1 as NavMenuMobile, NavTabs, NoResultsIcon, NotFoundIcon, Obligation$1 as Obligation, iconsMap as ObligationIcons, OverageIcon, Pagination$1 as Pagination, Paragraph$1 as Paragraph, PartialAmountForm, PasswordRequirements, PaymentButtonBar, PaymentDetails$1 as PaymentDetails, PaymentFormACH, PaymentFormCard$1 as PaymentFormCard, PaymentMethodAddIcon$1 as PaymentMethodAddIcon, PaymentMethodIcon$1 as PaymentMethodIcon, PaymentSearchIcon, PaymentsIconSmall$1 as PaymentsIconSmall, PencilIcon$1 as PencilIcon, PendingIcon, PeriscopeDashboardIframe, PeriscopeFailedIcon, PhoneForm, Placeholder$1 as Placeholder, PlusCircleIcon, PointOfSaleImage, Popover$1 as Popover, PopupMenu$1 as PopupMenu, ProcessingFee$1 as ProcessingFee, ProfileIcon$1 as ProfileIcon, ProfileIconSmall$1 as ProfileIconSmall, ProfileImage, PropertiesAddIcon$1 as PropertiesAddIcon, PropertiesIconSmall$1 as PropertiesIconSmall, RadioButton$2 as RadioButton, RadioButtonWithLabel$1 as RadioButtonWithLabel, RadioGroup, RadioSection$1 as RadioSection, Reel, RefundIcon, RefundIconMedium, RefundIconSmall, RegistrationForm, RejectedIcon, RejectedVelocityIcon, ResetConfirmationForm$1 as ResetConfirmationForm, ResetPasswordForm, ResetPasswordIcon, ResetPasswordSuccess$1 as ResetPasswordSuccess, RevenueManagementImage, ReversalNeededIcon, RoutingNumberImage, Search$1 as Search, SearchIcon, SearchableSelect$1 as SearchableSelect, SettingsIconSmall$1 as SettingsIconSmall, ShoppingCartIcon, ShortageIcon, Sidebar, SidebarSingleContent$1 as SidebarSingleContent, SidebarStackContent$1 as SidebarStackContent, SolidDivider$1 as SolidDivider, SortableTableHeading$1 as SortableTableHeading, Spinner$2 as Spinner, Stack, StandardCheckoutImage, FormStateDropdown as StateProvinceDropdown, StatusUnknownIcon, SuccessfulIcon, SuccessfulIconMedium, SuccessfulIconSmall, Switcher, TabSidebar$1 as TabSidebar, Table_styled as Table, TableBody_styled as TableBody, TableCell_styled as TableCell, TableHead$1 as TableHead, TableHeading, TableListItem, TableRow$1 as TableRow, Tabs$1 as Tabs, TermsAndConditions, TermsAndConditionsModal$1 as TermsAndConditionsModal, Text$1 as Text, Timeout$1 as Timeout, TimeoutImage, Title$1 as Title, ToastNotification, ToggleSwitch$1 as ToggleSwitch, TrashIcon$1 as TrashIcon, TrashIconV2$1 as TrashIconV2, TypeaheadInput, VerifiedEmailIcon$1 as VerifiedEmailIcon, VoidedIcon, WalletBannerIcon$1 as WalletBannerIcon, WalletIcon$1 as WalletIcon, WalletIconSmall$1 as WalletIconSmall, WalletName, WarningIconXS, WelcomeModule$1 as WelcomeModule, WorkflowTile, XCircleIconMedium, XCircleIconSmall, cardRegistry, index$4 as constants, createPartialAmountFormState, createPartialAmountFormValidators, index$5 as hooks, index$6 as util, withWindowSize };
|
|
51469
51085
|
//# sourceMappingURL=index.esm.js.map
|