@thecb/components 3.7.0-beta.1 → 4.0.2
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/.storybook/main.js +1 -1
- package/.storybook/page.js +2 -0
- package/.tool-versions +1 -0
- package/dist/index.cjs.js +361 -355
- package/package.json +2 -2
- package/src/components/atoms/alert/Alert.js +53 -35
- package/src/components/atoms/breadcrumb/Breadcrumb.js +4 -1
- package/src/components/atoms/button-with-action/ButtonWithAction.js +2 -2
- package/src/components/atoms/checkbox/Checkbox.js +1 -0
- package/src/components/atoms/checkbox-list/CheckboxList.js +3 -1
- package/src/components/atoms/display-card/DisplayCard.js +4 -2
- package/src/components/atoms/dropdown/Dropdown.js +4 -4
- package/src/components/atoms/dropdown/Dropdown.stories.js +10 -33
- package/src/components/atoms/form-layouts/FormInput.js +8 -5
- package/src/components/atoms/form-layouts/FormLayouts.stories.js +5 -5
- package/src/components/atoms/hamburger-button/HamburgerButton.js +4 -3
- package/src/components/atoms/icons/AccountsIconSmall.js +6 -13
- package/src/components/atoms/icons/ChevronIcon.js +4 -4
- package/src/components/atoms/icons/icons.stories.js +1 -1
- package/src/components/atoms/layouts/Box.styled.js +1 -0
- package/src/components/atoms/layouts/Cluster.styled.js +5 -1
- package/src/components/atoms/layouts/Sidebar.styled.js +7 -1
- package/src/components/atoms/radio-button/RadioButton.js +1 -0
- package/src/components/atoms/radio-button/RadioButton.stories.js +26 -61
- package/src/components/atoms/toggle-switch/ToggleSwitch.js +1 -0
- package/src/components/atoms/toggle-switch/ToggleSwitch.stories.js +10 -51
- package/src/components/molecules/editable-list/EditableList.js +11 -8
- package/src/components/molecules/nav-menu/NavMenuDesktop.js +2 -1
- package/src/components/molecules/nav-menu/NavMenuMobile.js +7 -1
- package/src/components/molecules/obligation/Obligation.js +9 -7
- package/src/components/molecules/obligation/modules/PaymentDetailsActions.js +23 -23
- package/src/components/molecules/pagination/Pagination.js +31 -7
- package/src/components/molecules/radio-section/RadioSection.js +7 -3
- package/src/deprecated/components/radio-button/radio-button.js +5 -1
- package/src/deprecated/icons/IconInvalid.js +7 -31
- package/src/deprecated/icons/IconNeutral.js +5 -4
- package/src/deprecated/icons/IconValid.js +8 -33
- package/src/util/general.js +10 -1
- package/src/components/molecules/content/Content.js +0 -20
- package/src/components/molecules/content/Content.theme.js +0 -60
- package/src/components/molecules/content/blocks/accordion-block/AccordionBlock.js +0 -108
- package/src/components/molecules/content/blocks/accordion-block/index.js +0 -3
- package/src/components/molecules/content/blocks/article-block/ArticleBlock.js +0 -58
- package/src/components/molecules/content/blocks/article-block/index.js +0 -3
- package/src/components/molecules/content/blocks/attached-file-block/AttachedFileBlock.js +0 -60
- package/src/components/molecules/content/blocks/attached-file-block/index.js +0 -3
- package/src/components/molecules/content/blocks/featured-content-block/FeaturedContentBlock.js +0 -0
- package/src/components/molecules/content/blocks/featured-content-block/index.js +0 -0
- package/src/components/molecules/content/blocks/hero-block/HeroBlock.js +0 -54
- package/src/components/molecules/content/blocks/hero-block/index.js +0 -3
- package/src/components/molecules/content/blocks/highlight-block/HighlightBlock.js +0 -42
- package/src/components/molecules/content/blocks/highlight-block/index.js +0 -3
- package/src/components/molecules/content/blocks/index.js +0 -33
- package/src/components/molecules/content/blocks/info-block/InfoBlock.js +0 -15
- package/src/components/molecules/content/blocks/info-block/index.js +0 -3
- package/src/components/molecules/content/blocks/location-block/LocationBlock.js +0 -228
- package/src/components/molecules/content/blocks/location-block/index.js +0 -3
- package/src/components/molecules/content/blocks/related-links-block/RelatedLinksBlock.js +0 -35
- package/src/components/molecules/content/blocks/related-links-block/index.js +0 -3
- package/src/components/molecules/content/blocks/screendoor-block/ScreendoorBlock.js +0 -57
- package/src/components/molecules/content/blocks/screendoor-block/ScreendoorForm.styled.js +0 -314
- package/src/components/molecules/content/blocks/screendoor-block/index.js +0 -3
- package/src/components/molecules/content/blocks/tagline-block/TaglineBlock.js +0 -45
- package/src/components/molecules/content/blocks/tagline-block/index.js +0 -3
- package/src/components/molecules/content/blocks/task-block/TaskBlock.js +0 -40
- package/src/components/molecules/content/blocks/task-block/index.js +0 -3
- package/src/components/molecules/content/blocks/text-block/TextBlock.js +0 -40
- package/src/components/molecules/content/blocks/text-block/index.js +0 -3
- package/src/components/molecules/content/header/Header.js +0 -283
- package/src/components/molecules/content/header/Header.theme.js +0 -11
- package/src/components/molecules/content/header/index.js +0 -3
- package/src/components/molecules/content/index.js +0 -3
package/dist/index.cjs.js
CHANGED
|
@@ -275,47 +275,21 @@ function __spreadArrays() {
|
|
|
275
275
|
return r;
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
-
/*! *****************************************************************************
|
|
279
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
280
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
281
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
282
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
283
|
-
|
|
284
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
285
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
286
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
287
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
288
|
-
|
|
289
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
290
|
-
and limitations under the License.
|
|
291
|
-
***************************************************************************** */
|
|
292
|
-
|
|
293
|
-
var __assign$1 = function() {
|
|
294
|
-
__assign$1 = Object.assign || function __assign(t) {
|
|
295
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
296
|
-
s = arguments[i];
|
|
297
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
298
|
-
}
|
|
299
|
-
return t;
|
|
300
|
-
};
|
|
301
|
-
return __assign$1.apply(this, arguments);
|
|
302
|
-
};
|
|
303
|
-
|
|
304
278
|
var clamp = function (min, max) { return function (v) {
|
|
305
279
|
return Math.max(Math.min(v, max), min);
|
|
306
280
|
}; };
|
|
307
281
|
var sanitize = function (v) { return (v % 1 ? Number(v.toFixed(5)) : v); };
|
|
308
282
|
var floatRegex = /(-)?(\d[\d\.]*)/g;
|
|
309
|
-
var colorRegex = /(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((
|
|
310
|
-
var singleColorRegex = /^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((
|
|
283
|
+
var colorRegex = /(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi;
|
|
284
|
+
var singleColorRegex = /^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;
|
|
311
285
|
|
|
312
286
|
var number = {
|
|
313
287
|
test: function (v) { return typeof v === 'number'; },
|
|
314
288
|
parse: parseFloat,
|
|
315
289
|
transform: function (v) { return v; }
|
|
316
290
|
};
|
|
317
|
-
var alpha = __assign
|
|
318
|
-
var scale = __assign
|
|
291
|
+
var alpha = __assign(__assign({}, number), { transform: clamp(0, 1) });
|
|
292
|
+
var scale = __assign(__assign({}, number), { default: 1 });
|
|
319
293
|
|
|
320
294
|
var createUnitType = function (unit) { return ({
|
|
321
295
|
test: function (v) {
|
|
@@ -329,7 +303,7 @@ var percent = createUnitType('%');
|
|
|
329
303
|
var px = createUnitType('px');
|
|
330
304
|
var vh = createUnitType('vh');
|
|
331
305
|
var vw = createUnitType('vw');
|
|
332
|
-
var progressPercentage = __assign
|
|
306
|
+
var progressPercentage = __assign(__assign({}, percent), { parse: function (v) { return percent.parse(v) / 100; }, transform: function (v) { return percent.transform(v * 100); } });
|
|
333
307
|
|
|
334
308
|
var getValueFromFunctionString = function (value) {
|
|
335
309
|
return value.substring(value.indexOf('(') + 1, value.lastIndexOf(')'));
|
|
@@ -337,12 +311,17 @@ var getValueFromFunctionString = function (value) {
|
|
|
337
311
|
var clampRgbUnit = clamp(0, 255);
|
|
338
312
|
var isRgba = function (v) { return v.red !== undefined; };
|
|
339
313
|
var isHsla = function (v) { return v.hue !== undefined; };
|
|
314
|
+
function getValuesAsArray(value) {
|
|
315
|
+
return getValueFromFunctionString(value)
|
|
316
|
+
.replace(/(,|\/)/g, ' ')
|
|
317
|
+
.split(/ \s*/);
|
|
318
|
+
}
|
|
340
319
|
var splitColorValues = function (terms) {
|
|
341
320
|
return function (v) {
|
|
342
321
|
if (typeof v !== 'string')
|
|
343
322
|
return v;
|
|
344
323
|
var values = {};
|
|
345
|
-
var valuesArray =
|
|
324
|
+
var valuesArray = getValuesAsArray(v);
|
|
346
325
|
for (var i = 0; i < 4; i++) {
|
|
347
326
|
values[terms[i]] =
|
|
348
327
|
valuesArray[i] !== undefined ? parseFloat(valuesArray[i]) : 1;
|
|
@@ -351,14 +330,14 @@ var splitColorValues = function (terms) {
|
|
|
351
330
|
};
|
|
352
331
|
};
|
|
353
332
|
var rgbaTemplate = function (_a) {
|
|
354
|
-
var red = _a.red, green = _a.green, blue = _a.blue, _b = _a.alpha, alpha
|
|
355
|
-
return "rgba(" + red + ", " + green + ", " + blue + ", " + alpha
|
|
333
|
+
var red = _a.red, green = _a.green, blue = _a.blue, _b = _a.alpha, alpha = _b === void 0 ? 1 : _b;
|
|
334
|
+
return "rgba(" + red + ", " + green + ", " + blue + ", " + alpha + ")";
|
|
356
335
|
};
|
|
357
336
|
var hslaTemplate = function (_a) {
|
|
358
|
-
var hue = _a.hue, saturation = _a.saturation, lightness = _a.lightness, _b = _a.alpha, alpha
|
|
359
|
-
return "hsla(" + hue + ", " + saturation + ", " + lightness + ", " + alpha
|
|
337
|
+
var hue = _a.hue, saturation = _a.saturation, lightness = _a.lightness, _b = _a.alpha, alpha = _b === void 0 ? 1 : _b;
|
|
338
|
+
return "hsla(" + hue + ", " + saturation + ", " + lightness + ", " + alpha + ")";
|
|
360
339
|
};
|
|
361
|
-
var rgbUnit = __assign
|
|
340
|
+
var rgbUnit = __assign(__assign({}, number), { transform: function (v) { return Math.round(clampRgbUnit(v)); } });
|
|
362
341
|
function isColorString(color, colorType) {
|
|
363
342
|
return color.startsWith(colorType) && singleColorRegex.test(color);
|
|
364
343
|
}
|
|
@@ -366,12 +345,12 @@ var rgba = {
|
|
|
366
345
|
test: function (v) { return (typeof v === 'string' ? isColorString(v, 'rgb') : isRgba(v)); },
|
|
367
346
|
parse: splitColorValues(['red', 'green', 'blue', 'alpha']),
|
|
368
347
|
transform: function (_a) {
|
|
369
|
-
var red = _a.red, green = _a.green, blue = _a.blue, _b = _a.alpha, alpha
|
|
348
|
+
var red = _a.red, green = _a.green, blue = _a.blue, _b = _a.alpha, alpha$1 = _b === void 0 ? 1 : _b;
|
|
370
349
|
return rgbaTemplate({
|
|
371
350
|
red: rgbUnit.transform(red),
|
|
372
351
|
green: rgbUnit.transform(green),
|
|
373
352
|
blue: rgbUnit.transform(blue),
|
|
374
|
-
alpha: sanitize(alpha.transform(alpha
|
|
353
|
+
alpha: sanitize(alpha.transform(alpha$1))
|
|
375
354
|
});
|
|
376
355
|
}
|
|
377
356
|
};
|
|
@@ -379,16 +358,16 @@ var hsla = {
|
|
|
379
358
|
test: function (v) { return (typeof v === 'string' ? isColorString(v, 'hsl') : isHsla(v)); },
|
|
380
359
|
parse: splitColorValues(['hue', 'saturation', 'lightness', 'alpha']),
|
|
381
360
|
transform: function (_a) {
|
|
382
|
-
var hue = _a.hue, saturation = _a.saturation, lightness = _a.lightness, _b = _a.alpha, alpha
|
|
361
|
+
var hue = _a.hue, saturation = _a.saturation, lightness = _a.lightness, _b = _a.alpha, alpha$1 = _b === void 0 ? 1 : _b;
|
|
383
362
|
return hslaTemplate({
|
|
384
363
|
hue: Math.round(hue),
|
|
385
364
|
saturation: percent.transform(sanitize(saturation)),
|
|
386
365
|
lightness: percent.transform(sanitize(lightness)),
|
|
387
|
-
alpha: sanitize(alpha.transform(alpha
|
|
366
|
+
alpha: sanitize(alpha.transform(alpha$1))
|
|
388
367
|
});
|
|
389
368
|
}
|
|
390
369
|
};
|
|
391
|
-
var hex = __assign
|
|
370
|
+
var hex = __assign(__assign({}, rgba), { test: function (v) { return typeof v === 'string' && isColorString(v, '#'); }, parse: function (v) {
|
|
392
371
|
var r = '';
|
|
393
372
|
var g = '';
|
|
394
373
|
var b = '';
|
|
@@ -522,140 +501,134 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
522
501
|
};
|
|
523
502
|
}
|
|
524
503
|
|
|
525
|
-
var prevTime = 0;
|
|
526
|
-
var onNextFrame = typeof window !== 'undefined' && window.requestAnimationFrame !== undefined
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
504
|
+
var prevTime = 0;
|
|
505
|
+
var onNextFrame = typeof window !== 'undefined' && window.requestAnimationFrame !== undefined ? function (callback) {
|
|
506
|
+
return window.requestAnimationFrame(callback);
|
|
507
|
+
} : function (callback) {
|
|
508
|
+
var timestamp = Date.now();
|
|
509
|
+
var timeToCall = Math.max(0, 16.7 - (timestamp - prevTime));
|
|
510
|
+
prevTime = timestamp + timeToCall;
|
|
511
|
+
setTimeout(function () {
|
|
512
|
+
return callback(prevTime);
|
|
513
|
+
}, timeToCall);
|
|
514
|
+
};
|
|
515
|
+
|
|
516
|
+
var createStep = function (setRunNextFrame) {
|
|
517
|
+
var processToRun = [];
|
|
518
|
+
var processToRunNextFrame = [];
|
|
519
|
+
var numThisFrame = 0;
|
|
520
|
+
var isProcessing = false;
|
|
521
|
+
var i = 0;
|
|
522
|
+
var cancelled = new WeakSet();
|
|
523
|
+
var toKeepAlive = new WeakSet();
|
|
524
|
+
var renderStep = {
|
|
525
|
+
cancel: function (process) {
|
|
526
|
+
var indexOfCallback = processToRunNextFrame.indexOf(process);
|
|
527
|
+
cancelled.add(process);
|
|
528
|
+
if (indexOfCallback !== -1) {
|
|
529
|
+
processToRunNextFrame.splice(indexOfCallback, 1);
|
|
530
|
+
}
|
|
531
|
+
},
|
|
532
|
+
process: function (frame) {
|
|
533
|
+
var _a;
|
|
534
|
+
isProcessing = true;
|
|
535
|
+
_a = [processToRunNextFrame, processToRun], processToRun = _a[0], processToRunNextFrame = _a[1];
|
|
536
|
+
processToRunNextFrame.length = 0;
|
|
537
|
+
numThisFrame = processToRun.length;
|
|
538
|
+
if (numThisFrame) {
|
|
539
|
+
var process_1;
|
|
540
|
+
for (i = 0; i < numThisFrame; i++) {
|
|
541
|
+
process_1 = processToRun[i];
|
|
542
|
+
process_1(frame);
|
|
543
|
+
if (toKeepAlive.has(process_1) === true && !cancelled.has(process_1)) {
|
|
544
|
+
renderStep.schedule(process_1);
|
|
545
|
+
setRunNextFrame(true);
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
isProcessing = false;
|
|
550
|
+
},
|
|
551
|
+
schedule: function (process, keepAlive, immediate) {
|
|
552
|
+
if (keepAlive === void 0) {
|
|
553
|
+
keepAlive = false;
|
|
554
|
+
}
|
|
555
|
+
if (immediate === void 0) {
|
|
556
|
+
immediate = false;
|
|
557
|
+
}
|
|
558
|
+
invariant(typeof process === "function", "Argument must be a function");
|
|
559
|
+
var addToCurrentBuffer = immediate && isProcessing;
|
|
560
|
+
var buffer = addToCurrentBuffer ? processToRun : processToRunNextFrame;
|
|
561
|
+
cancelled.delete(process);
|
|
562
|
+
if (keepAlive) toKeepAlive.add(process);
|
|
563
|
+
if (buffer.indexOf(process) === -1) {
|
|
564
|
+
buffer.push(process);
|
|
565
|
+
if (addToCurrentBuffer) numThisFrame = processToRun.length;
|
|
566
|
+
}
|
|
567
|
+
}
|
|
533
568
|
};
|
|
569
|
+
return renderStep;
|
|
570
|
+
};
|
|
534
571
|
|
|
535
|
-
var
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
var
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
StepId["Update"] = "update";
|
|
596
|
-
StepId["Render"] = "render";
|
|
597
|
-
StepId["PostRender"] = "postRender";
|
|
598
|
-
StepId["FixedUpdate"] = "fixedUpdate";
|
|
599
|
-
})(StepId || (StepId = {}));
|
|
600
|
-
|
|
601
|
-
var maxElapsed = 40;
|
|
602
|
-
var defaultElapsed = (1 / 60) * 1000;
|
|
603
|
-
var useDefaultElapsed = true;
|
|
604
|
-
var willRunNextFrame = false;
|
|
605
|
-
var isProcessing = false;
|
|
606
|
-
var frame = {
|
|
607
|
-
delta: 0,
|
|
608
|
-
timestamp: 0
|
|
609
|
-
};
|
|
610
|
-
var stepsOrder = [
|
|
611
|
-
StepId.Read,
|
|
612
|
-
StepId.Update,
|
|
613
|
-
StepId.Render,
|
|
614
|
-
StepId.PostRender
|
|
615
|
-
];
|
|
616
|
-
var setWillRunNextFrame = function (willRun) { return (willRunNextFrame = willRun); };
|
|
617
|
-
var _a = stepsOrder.reduce(function (acc, key) {
|
|
618
|
-
var step = createStep(setWillRunNextFrame);
|
|
619
|
-
acc.sync[key] = function (process, keepAlive, immediate) {
|
|
620
|
-
if (keepAlive === void 0) { keepAlive = false; }
|
|
621
|
-
if (immediate === void 0) { immediate = false; }
|
|
622
|
-
if (!willRunNextFrame)
|
|
623
|
-
startLoop();
|
|
624
|
-
step.schedule(process, keepAlive, immediate);
|
|
625
|
-
return process;
|
|
626
|
-
};
|
|
627
|
-
acc.cancelSync[key] = function (process) { return step.cancel(process); };
|
|
628
|
-
acc.steps[key] = step;
|
|
629
|
-
return acc;
|
|
630
|
-
}, {
|
|
631
|
-
steps: {},
|
|
632
|
-
sync: {},
|
|
633
|
-
cancelSync: {}
|
|
634
|
-
}), steps = _a.steps, sync = _a.sync, cancelSync = _a.cancelSync;
|
|
635
|
-
var processStep = function (stepId) { return steps[stepId].process(frame); };
|
|
636
|
-
var processFrame = function (timestamp) {
|
|
637
|
-
willRunNextFrame = false;
|
|
638
|
-
frame.delta = useDefaultElapsed
|
|
639
|
-
? defaultElapsed
|
|
640
|
-
: Math.max(Math.min(timestamp - frame.timestamp, maxElapsed), 1);
|
|
641
|
-
if (!useDefaultElapsed)
|
|
642
|
-
defaultElapsed = frame.delta;
|
|
643
|
-
frame.timestamp = timestamp;
|
|
644
|
-
isProcessing = true;
|
|
645
|
-
stepsOrder.forEach(processStep);
|
|
646
|
-
isProcessing = false;
|
|
647
|
-
if (willRunNextFrame) {
|
|
648
|
-
useDefaultElapsed = false;
|
|
649
|
-
onNextFrame(processFrame);
|
|
650
|
-
}
|
|
651
|
-
};
|
|
652
|
-
var startLoop = function () {
|
|
653
|
-
willRunNextFrame = true;
|
|
654
|
-
useDefaultElapsed = true;
|
|
655
|
-
if (!isProcessing)
|
|
656
|
-
onNextFrame(processFrame);
|
|
657
|
-
};
|
|
658
|
-
var getFrameData = function () { return frame; };
|
|
572
|
+
var maxElapsed = 40;
|
|
573
|
+
var defaultElapsed = 1 / 60 * 1000;
|
|
574
|
+
var useDefaultElapsed = true;
|
|
575
|
+
var willRunNextFrame = false;
|
|
576
|
+
var isProcessing = false;
|
|
577
|
+
var frame = {
|
|
578
|
+
delta: 0,
|
|
579
|
+
timestamp: 0
|
|
580
|
+
};
|
|
581
|
+
var stepsOrder = ["read", "update", "preRender", "render", "postRender"];
|
|
582
|
+
var setWillRunNextFrame = function (willRun) {
|
|
583
|
+
return willRunNextFrame = willRun;
|
|
584
|
+
};
|
|
585
|
+
var steps = /*#__PURE__*/stepsOrder.reduce(function (acc, key) {
|
|
586
|
+
acc[key] = createStep(setWillRunNextFrame);
|
|
587
|
+
return acc;
|
|
588
|
+
}, {});
|
|
589
|
+
var sync = /*#__PURE__*/stepsOrder.reduce(function (acc, key) {
|
|
590
|
+
var step = steps[key];
|
|
591
|
+
acc[key] = function (process, keepAlive, immediate) {
|
|
592
|
+
if (keepAlive === void 0) {
|
|
593
|
+
keepAlive = false;
|
|
594
|
+
}
|
|
595
|
+
if (immediate === void 0) {
|
|
596
|
+
immediate = false;
|
|
597
|
+
}
|
|
598
|
+
if (!willRunNextFrame) startLoop();
|
|
599
|
+
step.schedule(process, keepAlive, immediate);
|
|
600
|
+
return process;
|
|
601
|
+
};
|
|
602
|
+
return acc;
|
|
603
|
+
}, {});
|
|
604
|
+
var cancelSync = /*#__PURE__*/stepsOrder.reduce(function (acc, key) {
|
|
605
|
+
acc[key] = steps[key].cancel;
|
|
606
|
+
return acc;
|
|
607
|
+
}, {});
|
|
608
|
+
var processStep = function (stepId) {
|
|
609
|
+
return steps[stepId].process(frame);
|
|
610
|
+
};
|
|
611
|
+
var processFrame = function (timestamp) {
|
|
612
|
+
willRunNextFrame = false;
|
|
613
|
+
frame.delta = useDefaultElapsed ? defaultElapsed : Math.max(Math.min(timestamp - frame.timestamp, maxElapsed), 1);
|
|
614
|
+
if (!useDefaultElapsed) defaultElapsed = frame.delta;
|
|
615
|
+
frame.timestamp = timestamp;
|
|
616
|
+
isProcessing = true;
|
|
617
|
+
stepsOrder.forEach(processStep);
|
|
618
|
+
isProcessing = false;
|
|
619
|
+
if (willRunNextFrame) {
|
|
620
|
+
useDefaultElapsed = false;
|
|
621
|
+
onNextFrame(processFrame);
|
|
622
|
+
}
|
|
623
|
+
};
|
|
624
|
+
var startLoop = function () {
|
|
625
|
+
willRunNextFrame = true;
|
|
626
|
+
useDefaultElapsed = true;
|
|
627
|
+
if (!isProcessing) onNextFrame(processFrame);
|
|
628
|
+
};
|
|
629
|
+
var getFrameData = function () {
|
|
630
|
+
return frame;
|
|
631
|
+
};
|
|
659
632
|
|
|
660
633
|
var DEFAULT_OVERSHOOT_STRENGTH = 1.525;
|
|
661
634
|
var reversed = function (easing) {
|
|
@@ -930,15 +903,15 @@ See the Apache Version 2.0 License for specific language governing permissions
|
|
|
930
903
|
and limitations under the License.
|
|
931
904
|
***************************************************************************** */
|
|
932
905
|
|
|
933
|
-
var __assign$
|
|
934
|
-
__assign$
|
|
906
|
+
var __assign$1 = function() {
|
|
907
|
+
__assign$1 = Object.assign || function __assign(t) {
|
|
935
908
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
936
909
|
s = arguments[i];
|
|
937
910
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
938
911
|
}
|
|
939
912
|
return t;
|
|
940
913
|
};
|
|
941
|
-
return __assign$
|
|
914
|
+
return __assign$1.apply(this, arguments);
|
|
942
915
|
};
|
|
943
916
|
|
|
944
917
|
var mixLinearColor = function (from, to, v) {
|
|
@@ -961,7 +934,7 @@ var mixColor = (function (from, to) {
|
|
|
961
934
|
invariant(fromColorType.transform === toColorType.transform, 'Both colors must be hex/RGBA, OR both must be HSLA.');
|
|
962
935
|
var fromColor = fromColorType.parse(from);
|
|
963
936
|
var toColor = toColorType.parse(to);
|
|
964
|
-
var blended = __assign$
|
|
937
|
+
var blended = __assign$1({}, fromColor);
|
|
965
938
|
var mixFunc = fromColorType === hsla ? mix : mixLinearColor;
|
|
966
939
|
return function (v) {
|
|
967
940
|
for (var key in blended) {
|
|
@@ -1006,7 +979,7 @@ var mixArray = function (from, to) {
|
|
|
1006
979
|
};
|
|
1007
980
|
};
|
|
1008
981
|
var mixObject = function (origin, target) {
|
|
1009
|
-
var output = __assign$
|
|
982
|
+
var output = __assign$1({}, origin, target);
|
|
1010
983
|
var blendValue = {};
|
|
1011
984
|
for (var key in output) {
|
|
1012
985
|
if (origin[key] !== undefined && target[key] !== undefined) {
|
|
@@ -3396,15 +3369,15 @@ See the Apache Version 2.0 License for specific language governing permissions
|
|
|
3396
3369
|
and limitations under the License.
|
|
3397
3370
|
***************************************************************************** */
|
|
3398
3371
|
|
|
3399
|
-
var __assign$
|
|
3400
|
-
__assign$
|
|
3372
|
+
var __assign$2 = function () {
|
|
3373
|
+
__assign$2 = Object.assign || function __assign(t) {
|
|
3401
3374
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
3402
3375
|
s = arguments[i];
|
|
3403
3376
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
3404
3377
|
}
|
|
3405
3378
|
return t;
|
|
3406
3379
|
};
|
|
3407
|
-
return __assign$
|
|
3380
|
+
return __assign$2.apply(this, arguments);
|
|
3408
3381
|
};
|
|
3409
3382
|
|
|
3410
3383
|
function __rest$1(s, e) {
|
|
@@ -3524,12 +3497,12 @@ var intelligentTransition = {
|
|
|
3524
3497
|
opacity: linearTween,
|
|
3525
3498
|
default: tween
|
|
3526
3499
|
};
|
|
3527
|
-
var dragAction = /*#__PURE__*/__assign$
|
|
3500
|
+
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) });
|
|
3528
3501
|
var justAxis = function (_a) {
|
|
3529
3502
|
var from = _a.from;
|
|
3530
3503
|
return just(from);
|
|
3531
3504
|
};
|
|
3532
|
-
var intelligentDragEnd = /*#__PURE__*/__assign$
|
|
3505
|
+
var intelligentDragEnd = /*#__PURE__*/__assign$2( /*#__PURE__*/__assign$2({}, intelligentTransition), { x: justAxis, y: justAxis });
|
|
3533
3506
|
var defaultTransitions = /*#__PURE__*/new Map([['default', intelligentTransition], ['drag', dragAction], ['dragEnd', intelligentDragEnd]]);
|
|
3534
3507
|
|
|
3535
3508
|
var animationLookup = {
|
|
@@ -3624,7 +3597,7 @@ var getAction = function (v, _a, _b) {
|
|
|
3624
3597
|
velocity: velocity,
|
|
3625
3598
|
ease: ease
|
|
3626
3599
|
} : { ease: ease };
|
|
3627
|
-
return animationLookup[type](__assign$
|
|
3600
|
+
return animationLookup[type](__assign$2(__assign$2({}, baseProps), def));
|
|
3628
3601
|
};
|
|
3629
3602
|
var isAction = function (action$$1) {
|
|
3630
3603
|
return typeof action$$1.start !== 'undefined';
|
|
@@ -4003,7 +3976,7 @@ var convertPositionalUnits = function (state, nextPose) {
|
|
|
4003
3976
|
changedPositionalKeys.push(key);
|
|
4004
3977
|
if (!applyAtEndHasBeenCopied) {
|
|
4005
3978
|
applyAtEndHasBeenCopied = true;
|
|
4006
|
-
nextPose.applyAtEnd = nextPose.applyAtEnd ? __assign$
|
|
3979
|
+
nextPose.applyAtEnd = nextPose.applyAtEnd ? __assign$2({}, nextPose.applyAtEnd) : {};
|
|
4007
3980
|
}
|
|
4008
3981
|
nextPose.applyAtEnd[key] = nextPose.applyAtEnd[key] || nextPose[key];
|
|
4009
3982
|
setValue(state, key, to);
|
|
@@ -4060,7 +4033,7 @@ var createPoseConfig = function (element, _a) {
|
|
|
4060
4033
|
pressable = _a.pressable,
|
|
4061
4034
|
dragBounds = _a.dragBounds,
|
|
4062
4035
|
config = __rest$1(_a, ["onDragStart", "onDragEnd", "onPressStart", "onPressEnd", "draggable", "hoverable", "focusable", "pressable", "dragBounds"]);
|
|
4063
|
-
var poseConfig = __assign$
|
|
4036
|
+
var poseConfig = __assign$2(__assign$2({ flip: {} }, config), { props: __assign$2(__assign$2({}, config.props), { onDragStart: onDragStart,
|
|
4064
4037
|
onDragEnd: onDragEnd,
|
|
4065
4038
|
onPressStart: onPressStart,
|
|
4066
4039
|
onPressEnd: onPressEnd,
|
|
@@ -4074,8 +4047,8 @@ var createPoseConfig = function (element, _a) {
|
|
|
4074
4047
|
var _b = dragPoses(draggable),
|
|
4075
4048
|
drag = _b.drag,
|
|
4076
4049
|
dragEnd = _b.dragEnd;
|
|
4077
|
-
poseConfig.drag = __assign$
|
|
4078
|
-
poseConfig.dragEnd = __assign$
|
|
4050
|
+
poseConfig.drag = __assign$2(__assign$2({}, drag), poseConfig.drag);
|
|
4051
|
+
poseConfig.dragEnd = __assign$2(__assign$2({}, dragEnd), poseConfig.dragEnd);
|
|
4079
4052
|
}
|
|
4080
4053
|
return poseConfig;
|
|
4081
4054
|
};
|
|
@@ -4121,7 +4094,7 @@ var domPose = /*#__PURE__*/pose({
|
|
|
4121
4094
|
var props = _a.props,
|
|
4122
4095
|
activeActions = _a.activeActions;
|
|
4123
4096
|
var measure = props.dimensions.measure;
|
|
4124
|
-
var poserApi = __assign$
|
|
4097
|
+
var poserApi = __assign$2(__assign$2({}, api), { addChild: function (element, childConfig) {
|
|
4125
4098
|
return api._addChild(createPoseConfig(element, childConfig), domPose);
|
|
4126
4099
|
}, measure: measure, flip: function (op) {
|
|
4127
4100
|
if (op) {
|
|
@@ -4191,7 +4164,7 @@ var pickAssign = function (shouldPick, sources) {
|
|
|
4191
4164
|
}, {});
|
|
4192
4165
|
};
|
|
4193
4166
|
|
|
4194
|
-
var _a
|
|
4167
|
+
var _a = React.createContext({}), PoseParentConsumer = _a.Consumer, PoseParentProvider = _a.Provider;
|
|
4195
4168
|
var calcPopFromFlowStyle = function (el) {
|
|
4196
4169
|
var offsetTop = el.offsetTop, offsetLeft = el.offsetLeft, offsetWidth = el.offsetWidth, offsetHeight = el.offsetHeight;
|
|
4197
4170
|
return {
|
|
@@ -6087,12 +6060,19 @@ var displayCurrency = function displayCurrency(cents) {
|
|
|
6087
6060
|
var convertCentsToMoneyInt = function convertCentsToMoneyInt(n) {
|
|
6088
6061
|
return (n / 100).toFixed(0);
|
|
6089
6062
|
};
|
|
6063
|
+
|
|
6064
|
+
var createUniqueId = function createUniqueId() {
|
|
6065
|
+
return "_" + Math.random().toString(36).substr(2, 9);
|
|
6066
|
+
};
|
|
6067
|
+
|
|
6090
6068
|
var safeChildren = function safeChildren(children) {
|
|
6091
6069
|
var replacement = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
6092
6070
|
|
|
6093
6071
|
if (children && children instanceof Array) {
|
|
6094
6072
|
return children.map(function (child) {
|
|
6095
|
-
return !child ?
|
|
6073
|
+
return !child ? /*#__PURE__*/React__default.createElement(React.Fragment, {
|
|
6074
|
+
key: createUniqueId()
|
|
6075
|
+
}, replacement) : child;
|
|
6096
6076
|
});
|
|
6097
6077
|
}
|
|
6098
6078
|
|
|
@@ -6251,7 +6231,8 @@ var BoxWrapper = styled__default(function (_ref) {
|
|
|
6251
6231
|
minWidth = _ref.minWidth,
|
|
6252
6232
|
maxWidth = _ref.maxWidth,
|
|
6253
6233
|
padding = _ref.padding,
|
|
6254
|
-
|
|
6234
|
+
hiddenStyles = _ref.hiddenStyles,
|
|
6235
|
+
props = _objectWithoutProperties(_ref, ["activeStyles", "hoverStyles", "disabledStyles", "extraStyles", "borderSize", "borderColor", "borderWidthOverride", "borderRadius", "textAlign", "boxShadow", "minHeight", "minWidth", "maxWidth", "padding", "hiddenStyles"]);
|
|
6255
6236
|
|
|
6256
6237
|
return /*#__PURE__*/React__default.createElement("div", props);
|
|
6257
6238
|
})(_templateObject$1(), function (_ref2) {
|
|
@@ -6462,30 +6443,37 @@ function _templateObject$3() {
|
|
|
6462
6443
|
|
|
6463
6444
|
return data;
|
|
6464
6445
|
}
|
|
6465
|
-
|
|
6466
|
-
|
|
6446
|
+
/* eslint-disable no-unused-vars */
|
|
6447
|
+
|
|
6448
|
+
var ClusterWrapper = styled__default(function (_ref) {
|
|
6449
|
+
var overflow = _ref.overflow,
|
|
6450
|
+
props = _objectWithoutProperties(_ref, ["overflow"]);
|
|
6451
|
+
|
|
6452
|
+
return /*#__PURE__*/React__default.createElement("div", props);
|
|
6453
|
+
})(_templateObject$3(), function (_ref2) {
|
|
6454
|
+
var overflow = _ref2.overflow;
|
|
6467
6455
|
return overflow ? "visible" : "hidden";
|
|
6468
6456
|
});
|
|
6469
|
-
var ClusterInnerWrapper = styled__default.div(_templateObject2$2(), function (
|
|
6470
|
-
var nowrap =
|
|
6457
|
+
var ClusterInnerWrapper = styled__default.div(_templateObject2$2(), function (_ref3) {
|
|
6458
|
+
var nowrap = _ref3.nowrap;
|
|
6471
6459
|
return nowrap ? "nowrap" : "wrap";
|
|
6472
|
-
}, function (_ref3) {
|
|
6473
|
-
var justify = _ref3.justify;
|
|
6474
|
-
return justify;
|
|
6475
6460
|
}, function (_ref4) {
|
|
6476
|
-
var
|
|
6477
|
-
return
|
|
6461
|
+
var justify = _ref4.justify;
|
|
6462
|
+
return justify;
|
|
6478
6463
|
}, function (_ref5) {
|
|
6479
|
-
var
|
|
6480
|
-
return
|
|
6464
|
+
var align = _ref5.align;
|
|
6465
|
+
return align;
|
|
6481
6466
|
}, function (_ref6) {
|
|
6482
|
-
var
|
|
6483
|
-
return
|
|
6467
|
+
var childGap = _ref6.childGap;
|
|
6468
|
+
return childGap;
|
|
6484
6469
|
}, function (_ref7) {
|
|
6485
|
-
var
|
|
6486
|
-
return
|
|
6470
|
+
var minHeight = _ref7.minHeight;
|
|
6471
|
+
return minHeight;
|
|
6487
6472
|
}, function (_ref8) {
|
|
6488
|
-
var
|
|
6473
|
+
var minWidth = _ref8.minWidth;
|
|
6474
|
+
return minWidth;
|
|
6475
|
+
}, function (_ref9) {
|
|
6476
|
+
var childGap = _ref9.childGap;
|
|
6489
6477
|
return childGap;
|
|
6490
6478
|
});
|
|
6491
6479
|
|
|
@@ -6608,25 +6596,35 @@ var SidebarWrapper = styled__default.div(_templateObject$5(), function (_ref) {
|
|
|
6608
6596
|
var fullHeight = _ref.fullHeight;
|
|
6609
6597
|
return fullHeight ? "height: 100%;" : "";
|
|
6610
6598
|
});
|
|
6611
|
-
var SidebarInnerWrapper = styled__default
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
|
|
6599
|
+
var SidebarInnerWrapper = styled__default( // eslint-disable-next-line no-unused-vars
|
|
6600
|
+
function (_ref2) {
|
|
6601
|
+
var onRight = _ref2.onRight,
|
|
6602
|
+
childGap = _ref2.childGap,
|
|
6603
|
+
contentMinWidth = _ref2.contentMinWidth,
|
|
6604
|
+
minHeight = _ref2.minHeight,
|
|
6605
|
+
fullHeight = _ref2.fullHeight,
|
|
6606
|
+
props = _objectWithoutProperties(_ref2, ["onRight", "childGap", "contentMinWidth", "minHeight", "fullHeight"]);
|
|
6607
|
+
|
|
6608
|
+
return /*#__PURE__*/React__default.createElement("div", props);
|
|
6609
|
+
})(_templateObject2$3(), function (_ref3) {
|
|
6615
6610
|
var childGap = _ref3.childGap;
|
|
6616
6611
|
return childGap;
|
|
6617
6612
|
}, function (_ref4) {
|
|
6618
|
-
var
|
|
6619
|
-
return
|
|
6613
|
+
var childGap = _ref4.childGap;
|
|
6614
|
+
return childGap;
|
|
6620
6615
|
}, function (_ref5) {
|
|
6621
|
-
var
|
|
6622
|
-
return
|
|
6616
|
+
var width = _ref5.width;
|
|
6617
|
+
return width ? "flex-basis: ".concat(width) : "";
|
|
6623
6618
|
}, function (_ref6) {
|
|
6624
|
-
var
|
|
6625
|
-
|
|
6626
|
-
childGap = _ref6.childGap;
|
|
6627
|
-
return sidebarOnRight ? "> :first-child {\n flex-basis: 0;\n flex-grow: 999;\n min-width: calc(".concat(contentMinWidth, " - ").concat(childGap, ");\n }\n ") : "> :last-child {\n flex-basis: 0;\n flex-grow: 999;\n min-width: calc(".concat(contentMinWidth, " - ").concat(childGap, ");\n }");
|
|
6619
|
+
var minHeight = _ref6.minHeight;
|
|
6620
|
+
return minHeight ? "margin-top: 0; margin-bottom: 0;" : "";
|
|
6628
6621
|
}, function (_ref7) {
|
|
6629
|
-
var
|
|
6622
|
+
var sidebarOnRight = _ref7.sidebarOnRight,
|
|
6623
|
+
contentMinWidth = _ref7.contentMinWidth,
|
|
6624
|
+
childGap = _ref7.childGap;
|
|
6625
|
+
return sidebarOnRight ? "> :first-child {\n flex-basis: 0;\n flex-grow: 999;\n min-width: calc(".concat(contentMinWidth, " - ").concat(childGap, ");\n }\n ") : "> :last-child {\n flex-basis: 0;\n flex-grow: 999;\n min-width: calc(".concat(contentMinWidth, " - ").concat(childGap, ");\n }");
|
|
6626
|
+
}, function (_ref8) {
|
|
6627
|
+
var fullHeight = _ref8.fullHeight;
|
|
6630
6628
|
return fullHeight ? "min-height: 100%;" : "";
|
|
6631
6629
|
});
|
|
6632
6630
|
|
|
@@ -10044,9 +10042,11 @@ function usePanGesture(_a, ref) {
|
|
|
10044
10042
|
onPanEnd && onPanEnd(event, info);
|
|
10045
10043
|
},
|
|
10046
10044
|
};
|
|
10047
|
-
|
|
10048
|
-
panSession.current
|
|
10049
|
-
|
|
10045
|
+
React.useEffect(function () {
|
|
10046
|
+
if (panSession.current !== null) {
|
|
10047
|
+
panSession.current.updateHandlers(handlers);
|
|
10048
|
+
}
|
|
10049
|
+
});
|
|
10050
10050
|
function onPointerDown(event) {
|
|
10051
10051
|
panSession.current = new PanSession(event, handlers, {
|
|
10052
10052
|
transformPagePoint: transformPagePoint,
|
|
@@ -11087,7 +11087,7 @@ function useForceUpdate() {
|
|
|
11087
11087
|
|
|
11088
11088
|
var SyncLayoutContext = React.createContext(null);
|
|
11089
11089
|
|
|
11090
|
-
var _a$
|
|
11090
|
+
var _a$1;
|
|
11091
11091
|
var StepName;
|
|
11092
11092
|
(function (StepName) {
|
|
11093
11093
|
StepName["Prepare"] = "prepare";
|
|
@@ -11125,12 +11125,12 @@ var createUseSyncEffect = function (stepName) { return function (callback) {
|
|
|
11125
11125
|
jobsNeedProcessing = true;
|
|
11126
11126
|
jobs[stepName].push(callback);
|
|
11127
11127
|
}; };
|
|
11128
|
-
var layoutSync = (_a$
|
|
11129
|
-
_a$
|
|
11130
|
-
_a$
|
|
11131
|
-
_a$
|
|
11132
|
-
_a$
|
|
11133
|
-
_a$
|
|
11128
|
+
var layoutSync = (_a$1 = {},
|
|
11129
|
+
_a$1[StepName.Prepare] = createUseSyncEffect(StepName.Prepare),
|
|
11130
|
+
_a$1[StepName.Read] = createUseSyncEffect(StepName.Read),
|
|
11131
|
+
_a$1[StepName.Render] = createUseSyncEffect(StepName.Render),
|
|
11132
|
+
_a$1.flush = flushAllJobs,
|
|
11133
|
+
_a$1);
|
|
11134
11134
|
|
|
11135
11135
|
function isHTMLElement$1(element) {
|
|
11136
11136
|
return element instanceof HTMLElement;
|
|
@@ -12641,7 +12641,7 @@ var ButtonWithAction = function ButtonWithAction(_ref) {
|
|
|
12641
12641
|
var loadingExtraStyles = "".concat(extraStyles, "; padding-top: 0.75rem; padding-bottom: 0.75rem;");
|
|
12642
12642
|
var hoverStyles = "\n outline: none;\n background-color: ".concat(themeValues.hoverBackgroundColor, ";\n border-color: ").concat(themeValues.hoverBorderColor, ";\n color: ").concat(themeValues.hoverColor, ";\n text-decoration: ").concat(variant === "ghost" || variant === "smallGhost" ? "underline" : "none", ";\n ");
|
|
12643
12643
|
var activeStyles = "\n outline: none;\n background-color: ".concat(themeValues.activeBackgroundColor, ";\n border-color: ").concat(themeValues.activeBorderColor, ";\n color: ").concat(themeValues.activeColor, ";\n text-decoration: ").concat(variant === "ghost" || variant === "smallGhost" ? "underline" : "none", ";\n ");
|
|
12644
|
-
var disabledStyles = "\n background-clor: #6E727E;\n border-
|
|
12644
|
+
var disabledStyles = "\n background-clor: #6E727E;\n border-color: #6E727E;\n color: #FFFFFF;\n &:focus {\n box-shadow: 0 0 10px #6E727E;\n outline: none;\n }\n ";
|
|
12645
12645
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
12646
12646
|
variant: variant,
|
|
12647
12647
|
padding: themeValues.padding,
|
|
@@ -12653,7 +12653,7 @@ var ButtonWithAction = function ButtonWithAction(_ref) {
|
|
|
12653
12653
|
activeStyles: activeStyles,
|
|
12654
12654
|
disabledStyles: disabledStyles,
|
|
12655
12655
|
as: "button",
|
|
12656
|
-
onClick: action,
|
|
12656
|
+
onClick: !isLoading && action,
|
|
12657
12657
|
borderRadius: "2px",
|
|
12658
12658
|
theme: themeContext,
|
|
12659
12659
|
extraStyles: isLoading ? loadingExtraStyles : extraStyles,
|
|
@@ -12936,29 +12936,17 @@ var AccountsIconSmall = function AccountsIconSmall(_ref) {
|
|
|
12936
12936
|
width: "29",
|
|
12937
12937
|
height: "27"
|
|
12938
12938
|
})), /*#__PURE__*/React__default.createElement("g", {
|
|
12939
|
-
id: "Random-Icon-Work",
|
|
12940
12939
|
stroke: "none",
|
|
12941
12940
|
strokeWidth: "1",
|
|
12942
12941
|
fill: "none",
|
|
12943
12942
|
fillRule: "evenodd"
|
|
12944
|
-
}, /*#__PURE__*/React__default.createElement("g", {
|
|
12945
|
-
id: "Header/Desktop/Menu"
|
|
12946
|
-
}, /*#__PURE__*/React__default.createElement("g", {
|
|
12947
|
-
id: "Header/Desktop/Menu/Accounts-Tab"
|
|
12948
|
-
}, /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("g", {
|
|
12949
|
-
id: "Payments"
|
|
12950
|
-
}, /*#__PURE__*/React__default.createElement("g", {
|
|
12951
|
-
id: "folder-open"
|
|
12952
|
-
}, /*#__PURE__*/React__default.createElement("mask", {
|
|
12943
|
+
}, /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("mask", {
|
|
12953
12944
|
id: "mask-2-accountssmall",
|
|
12954
12945
|
fill: "white"
|
|
12955
12946
|
}, /*#__PURE__*/React__default.createElement("use", {
|
|
12956
12947
|
xlinkHref: "#path-1-accountssmall"
|
|
12957
|
-
})), /*#__PURE__*/React__default.createElement("g", {
|
|
12958
|
-
id: "Mask"
|
|
12959
|
-
}), /*#__PURE__*/React__default.createElement("path", {
|
|
12948
|
+
})), /*#__PURE__*/React__default.createElement("g", null), /*#__PURE__*/React__default.createElement("path", {
|
|
12960
12949
|
d: "M1.875,17.9609424 L4.30077547,13.8125148 C4.60546242,13.2968908 5.01561733,12.8867359 5.53124128,12.5820489 C6.04686523,12.277362 6.60936389,12.1250188 7.21873726,12.1250188 L7.21873726,12.1250188 L18.7499598,12.1250188 L18.7499598,10.4375228 C18.7499598,9.9687741 18.5858975,9.57033719 18.2577734,9.24221315 C17.9296494,8.91408911 17.5312125,8.75002682 17.0624638,8.75002682 L17.0624638,8.75002682 L11.4374772,8.75002682 L9.18748257,6.50003219 L3.56249598,6.50003219 C3.09374727,6.50003219 2.69531037,6.66409447 2.36718633,6.99221851 C2.03906229,7.32034255 1.875,7.71877946 1.875,8.18752816 L1.875,8.18752816 L1.875,17.9609424 Z M17.519494,20 C17.9179303,20 18.2929296,19.900391 18.6444913,19.7011726 C18.9960529,19.5019541 19.2655837,19.2265643 19.4530831,18.8750027 L19.4530831,18.8750027 L22.0194832,14.5156381 C22.1835455,14.2343887 22.1835455,13.9531394 22.0194832,13.6718901 C21.8554209,13.3906408 21.6093278,13.2500161 21.2812037,13.2500161 L21.2812037,13.2500161 L7.21873726,13.2500161 C6.82030089,13.2500161 6.4453016,13.3496251 6.09373994,13.5488435 C5.74217828,13.748062 5.47264749,14.0234517 5.28514812,14.3750134 L5.28514812,14.3750134 L2.71874799,18.734378 C2.5546857,19.0156273 2.5546857,19.2968767 2.71874799,19.578126 C2.88281028,19.8593753 3.12890344,20 3.45702748,20 L3.45702748,20 L17.519494,20 Z",
|
|
12961
|
-
id: "f",
|
|
12962
12950
|
fill: themeValues.singleIconColor,
|
|
12963
12951
|
fillRule: "nonzero",
|
|
12964
12952
|
mask: "url(#mask-2-accountssmall)"
|
|
@@ -13099,7 +13087,8 @@ var SettingsIconSmall = function SettingsIconSmall(_ref) {
|
|
|
13099
13087
|
var SettingsIconSmall$1 = themeComponent(SettingsIconSmall, "Icons", fallbackValues$2, "primary");
|
|
13100
13088
|
|
|
13101
13089
|
var ChevronIcon = function ChevronIcon(_ref) {
|
|
13102
|
-
var themeValues = _ref.themeValues
|
|
13090
|
+
var themeValues = _ref.themeValues,
|
|
13091
|
+
iconFill = _ref.iconFill;
|
|
13103
13092
|
return /*#__PURE__*/React__default.createElement("svg", {
|
|
13104
13093
|
width: "24",
|
|
13105
13094
|
height: "24",
|
|
@@ -13120,16 +13109,16 @@ var ChevronIcon = function ChevronIcon(_ref) {
|
|
|
13120
13109
|
}, /*#__PURE__*/React__default.createElement("mask", {
|
|
13121
13110
|
id: "icon-chevron-mask-2"
|
|
13122
13111
|
}, /*#__PURE__*/React__default.createElement("use", {
|
|
13123
|
-
fill: themeValues.singleIconColor,
|
|
13112
|
+
fill: iconFill !== null && iconFill !== void 0 ? iconFill : themeValues.singleIconColor,
|
|
13124
13113
|
xlinkHref: "#icon-chevron-path-1"
|
|
13125
13114
|
})), /*#__PURE__*/React__default.createElement("use", {
|
|
13126
|
-
fill: themeValues.singleIconColor,
|
|
13115
|
+
fill: iconFill !== null && iconFill !== void 0 ? iconFill : themeValues.singleIconColor,
|
|
13127
13116
|
id: "icon-chevron-Fill-2",
|
|
13128
13117
|
xlinkHref: "#icon-chevron-path-1"
|
|
13129
13118
|
}), /*#__PURE__*/React__default.createElement("g", {
|
|
13130
13119
|
id: "Colors/Blue-Dark",
|
|
13131
13120
|
mask: "url(#icon-chevron-mask-2)",
|
|
13132
|
-
fill: themeValues.singleIconColor
|
|
13121
|
+
fill: iconFill !== null && iconFill !== void 0 ? iconFill : themeValues.singleIconColor
|
|
13133
13122
|
}, /*#__PURE__*/React__default.createElement("rect", {
|
|
13134
13123
|
id: "icon-chevron-rect",
|
|
13135
13124
|
width: "24",
|
|
@@ -13879,18 +13868,13 @@ var IconNeutral = function IconNeutral(_ref) {
|
|
|
13879
13868
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
13880
13869
|
style: {
|
|
13881
13870
|
margin: margin
|
|
13882
|
-
}
|
|
13871
|
+
},
|
|
13872
|
+
"aria-label": "Neutral"
|
|
13883
13873
|
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13884
|
-
id: "icon-neutral-group",
|
|
13885
13874
|
fill: fill,
|
|
13886
13875
|
fillRule: "nonzero",
|
|
13887
13876
|
stroke: fill
|
|
13888
|
-
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13889
|
-
id: "icon-neutral-Group-2"
|
|
13890
|
-
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13891
|
-
id: "icon-neutral-PasswordVerification-Empty"
|
|
13892
|
-
}, /*#__PURE__*/React__default.createElement("circle", {
|
|
13893
|
-
id: "icon-neutral-Oval",
|
|
13877
|
+
}, /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("circle", {
|
|
13894
13878
|
cx: "9",
|
|
13895
13879
|
cy: "9",
|
|
13896
13880
|
r: "8.5"
|
|
@@ -13917,27 +13901,22 @@ var IconValid = function IconValid(_ref) {
|
|
|
13917
13901
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
13918
13902
|
style: {
|
|
13919
13903
|
margin: margin
|
|
13920
|
-
}
|
|
13904
|
+
},
|
|
13905
|
+
"aria-label": "Valid"
|
|
13921
13906
|
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13922
|
-
id: "icon-valid-Authentication",
|
|
13923
13907
|
stroke: "none",
|
|
13924
13908
|
strokeWidth: "1",
|
|
13925
13909
|
fill: "none",
|
|
13926
13910
|
fillRule: "evenodd"
|
|
13927
13911
|
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13928
|
-
id: "icon-valid-00.1.0.1---HSS---Register---Already-Exists-Error",
|
|
13929
13912
|
transform: "translate(-538.000000, -996.000000)"
|
|
13930
13913
|
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13931
|
-
id: "icon-valid-Password-Requirements",
|
|
13932
13914
|
transform: "translate(457.000000, 938.000000)"
|
|
13933
13915
|
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13934
|
-
id: "icon-valid-Group-2",
|
|
13935
13916
|
transform: "translate(81.000000, 20.000000)"
|
|
13936
13917
|
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13937
|
-
id: "icon-valid-PasswordVerification-Sucess",
|
|
13938
13918
|
transform: "translate(0.000000, 38.000000)"
|
|
13939
13919
|
}, /*#__PURE__*/React__default.createElement("circle", {
|
|
13940
|
-
id: "icon-valid-Oval",
|
|
13941
13920
|
stroke: bgFill,
|
|
13942
13921
|
fill: bgFill,
|
|
13943
13922
|
fillRule: "nonzero",
|
|
@@ -13945,13 +13924,10 @@ var IconValid = function IconValid(_ref) {
|
|
|
13945
13924
|
cy: "9",
|
|
13946
13925
|
r: "8.5"
|
|
13947
13926
|
}), /*#__PURE__*/React__default.createElement("g", {
|
|
13948
|
-
id: "icon-valid-baseline-check-24px",
|
|
13949
13927
|
transform: "translate(2.000000, 2.000000)"
|
|
13950
13928
|
}, /*#__PURE__*/React__default.createElement("polygon", {
|
|
13951
|
-
id: "icon-valid-Path",
|
|
13952
13929
|
points: "0 0 14 0 14 14 0 14"
|
|
13953
13930
|
}), /*#__PURE__*/React__default.createElement("polygon", {
|
|
13954
|
-
id: "icon-valid-Path-2",
|
|
13955
13931
|
fill: iconFill,
|
|
13956
13932
|
points: "5.25 9.4325 2.8175 7 1.98916667 7.8225 5.25 11.0833333 12.25 4.08333333 11.4275 3.26083333"
|
|
13957
13933
|
}))))))));
|
|
@@ -13977,40 +13953,33 @@ var IconInvalid = function IconInvalid(_ref) {
|
|
|
13977
13953
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
13978
13954
|
style: {
|
|
13979
13955
|
margin: margin
|
|
13980
|
-
}
|
|
13956
|
+
},
|
|
13957
|
+
"aria-label": "Invalid"
|
|
13981
13958
|
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13982
|
-
id: "icon-invalid-Authentication",
|
|
13983
13959
|
stroke: "none",
|
|
13984
13960
|
strokeWidth: "1",
|
|
13985
13961
|
fill: "none",
|
|
13986
13962
|
fillRule: "evenodd"
|
|
13987
13963
|
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13988
|
-
id: "icon-invalid-00.1.0.1---HSS---Register---Already-Exists-Error",
|
|
13989
13964
|
transform: "translate(-538.000000, -1064.000000)",
|
|
13990
13965
|
fillRule: "nonzero"
|
|
13991
13966
|
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13992
|
-
id: "icon-invalid-Password-Requirements",
|
|
13993
13967
|
transform: "translate(457.000000, 938.000000)"
|
|
13994
13968
|
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13995
|
-
id: "icon-invalid-Group-2",
|
|
13996
13969
|
transform: "translate(81.000000, 20.000000)"
|
|
13997
13970
|
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13998
|
-
id: "icon-invalid-PasswordVerification-Error",
|
|
13999
13971
|
transform: "translate(0.000000, 106.000000)"
|
|
14000
13972
|
}, /*#__PURE__*/React__default.createElement("circle", {
|
|
14001
|
-
id: "icon-invalid-Oval",
|
|
14002
13973
|
stroke: bgFill,
|
|
14003
13974
|
fill: bgFill,
|
|
14004
13975
|
cx: "9",
|
|
14005
13976
|
cy: "9",
|
|
14006
13977
|
r: "8.5"
|
|
14007
13978
|
}), /*#__PURE__*/React__default.createElement("g", {
|
|
14008
|
-
id: "icon-invalid-Icon/Close",
|
|
14009
13979
|
transform: "translate(2.000000, 2.000000)",
|
|
14010
13980
|
fill: iconFill
|
|
14011
13981
|
}, /*#__PURE__*/React__default.createElement("path", {
|
|
14012
13982
|
d: "M7.58333333,7.58333333 L7.58333333,11.6666667 L6.41666667,11.6666667 L6.41666667,7.58333333 L2.33333333,7.58333333 L2.33333333,6.41666667 L6.41666667,6.41666667 L6.41666667,2.33333333 L7.58333333,2.33333333 L7.58333333,6.41666667 L11.6666667,6.41666667 L11.6666667,7.58333333 L7.58333333,7.58333333 Z",
|
|
14013
|
-
id: "icon-invalid-x",
|
|
14014
13983
|
transform: "translate(7.000000, 7.000000) rotate(45.000000) translate(-7.000000, -7.000000) "
|
|
14015
13984
|
}))))))));
|
|
14016
13985
|
};
|
|
@@ -14243,28 +14212,24 @@ var fallbackValues$4 = {
|
|
|
14243
14212
|
var Alert = function Alert(_ref) {
|
|
14244
14213
|
var heading = _ref.heading,
|
|
14245
14214
|
text = _ref.text,
|
|
14215
|
+
textOverride = _ref.textOverride,
|
|
14246
14216
|
variant = _ref.variant,
|
|
14247
14217
|
children = _ref.children,
|
|
14248
14218
|
height = _ref.height,
|
|
14249
14219
|
onLinkClick = _ref.onLinkClick,
|
|
14220
|
+
_ref$padding = _ref.padding,
|
|
14221
|
+
padding = _ref$padding === void 0 ? "0.5rem" : _ref$padding,
|
|
14250
14222
|
_ref$showQuitLink = _ref.showQuitLink,
|
|
14251
14223
|
showQuitLink = _ref$showQuitLink === void 0 ? true : _ref$showQuitLink,
|
|
14252
|
-
themeValues = _ref.themeValues
|
|
14224
|
+
themeValues = _ref.themeValues,
|
|
14225
|
+
extraStyles = _ref.extraStyles,
|
|
14226
|
+
maxContentWidth = _ref.maxContentWidth;
|
|
14253
14227
|
var Icon = AlertIcons[variant];
|
|
14254
|
-
|
|
14255
|
-
padding: "0.5rem",
|
|
14256
|
-
width: "100%",
|
|
14257
|
-
minHeight: "100px",
|
|
14258
|
-
height: height ? height : "auto",
|
|
14259
|
-
background: themeValues.background,
|
|
14260
|
-
borderRadius: "4px",
|
|
14261
|
-
borderColor: themeValues.border,
|
|
14262
|
-
borderSize: "1px"
|
|
14263
|
-
}, /*#__PURE__*/React__default.createElement(Sidebar, {
|
|
14228
|
+
var content = /*#__PURE__*/React__default.createElement(Sidebar, {
|
|
14264
14229
|
width: "24px",
|
|
14265
14230
|
childGap: "0rem"
|
|
14266
14231
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
14267
|
-
padding: "0 0
|
|
14232
|
+
padding: "0 0 0 1rem",
|
|
14268
14233
|
minHeight: "100%"
|
|
14269
14234
|
}, /*#__PURE__*/React__default.createElement(Cover, {
|
|
14270
14235
|
minHeight: "100%",
|
|
@@ -14280,11 +14245,11 @@ var Alert = function Alert(_ref) {
|
|
|
14280
14245
|
width: "24px",
|
|
14281
14246
|
childGap: "0rem"
|
|
14282
14247
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
14283
|
-
padding: "
|
|
14248
|
+
padding: maxContentWidth ? "".concat(padding, " 1rem") : "1rem"
|
|
14284
14249
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
14285
14250
|
justify: "flex-start",
|
|
14286
14251
|
align: "center"
|
|
14287
|
-
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
14252
|
+
}, textOverride ? textOverride : /*#__PURE__*/React__default.createElement(Stack, {
|
|
14288
14253
|
fullHeight: true,
|
|
14289
14254
|
childGap: "0.25rem"
|
|
14290
14255
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
@@ -14301,7 +14266,20 @@ var Alert = function Alert(_ref) {
|
|
|
14301
14266
|
padding: "0",
|
|
14302
14267
|
minHeight: "100%",
|
|
14303
14268
|
onClick: onLinkClick
|
|
14304
|
-
}, /*#__PURE__*/React__default.createElement(IconQuit, null))))))
|
|
14269
|
+
}, /*#__PURE__*/React__default.createElement(IconQuit, null))))));
|
|
14270
|
+
return /*#__PURE__*/React__default.createElement(Box, {
|
|
14271
|
+
padding: padding,
|
|
14272
|
+
width: "100%",
|
|
14273
|
+
minHeight: height && parseInt(height) < 100 ? height : "100px",
|
|
14274
|
+
height: height ? height : "auto",
|
|
14275
|
+
background: themeValues.background,
|
|
14276
|
+
borderRadius: "4px",
|
|
14277
|
+
borderColor: themeValues.border,
|
|
14278
|
+
borderSize: "1px",
|
|
14279
|
+
extraStyles: extraStyles
|
|
14280
|
+
}, maxContentWidth ? /*#__PURE__*/React__default.createElement(Center, {
|
|
14281
|
+
maxWidth: maxContentWidth
|
|
14282
|
+
}, content) : content);
|
|
14305
14283
|
};
|
|
14306
14284
|
|
|
14307
14285
|
var Alert$1 = themeComponent(Alert, "Alert", fallbackValues$4, "info");
|
|
@@ -14647,8 +14625,8 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
|
14647
14625
|
var themeValues = createThemeValues(themeContext, fallbackValues$7, "Breadcrumb");
|
|
14648
14626
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
14649
14627
|
padding: "0",
|
|
14650
|
-
|
|
14651
|
-
"aria-
|
|
14628
|
+
as: "nav",
|
|
14629
|
+
"aria-label": "Breadcrumb navigation"
|
|
14652
14630
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
14653
14631
|
justify: "flex-start",
|
|
14654
14632
|
align: "center"
|
|
@@ -14659,6 +14637,7 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
|
14659
14637
|
return /*#__PURE__*/React__default.createElement(React.Fragment, {
|
|
14660
14638
|
key: "breadcrumb-".concat(linkText)
|
|
14661
14639
|
}, /*#__PURE__*/React__default.createElement(InternalLink, {
|
|
14640
|
+
"aria-current": index === breadcrumbsList.length - 1 && "location",
|
|
14662
14641
|
to: linkDestination,
|
|
14663
14642
|
active: isActive.toString(),
|
|
14664
14643
|
color: themeValues.color,
|
|
@@ -16505,6 +16484,7 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
16505
16484
|
id: "checkbox-".concat(name),
|
|
16506
16485
|
disabled: disabled,
|
|
16507
16486
|
name: name,
|
|
16487
|
+
"aria-label": name,
|
|
16508
16488
|
checked: checked,
|
|
16509
16489
|
onChange: onChange,
|
|
16510
16490
|
tabIndex: "-1"
|
|
@@ -16619,7 +16599,8 @@ var RadioButton = function RadioButton(_ref3) {
|
|
|
16619
16599
|
name = _ref3.name;
|
|
16620
16600
|
return /*#__PURE__*/React__default.createElement(RadioButtonBorder, {
|
|
16621
16601
|
isSelected: isSelected,
|
|
16622
|
-
name: name
|
|
16602
|
+
name: name,
|
|
16603
|
+
"aria-checked": isSelected
|
|
16623
16604
|
}, isSelected && /*#__PURE__*/React__default.createElement(RadioButtonCenter, null));
|
|
16624
16605
|
};
|
|
16625
16606
|
|
|
@@ -16665,6 +16646,8 @@ var CheckboxListItem = function CheckboxListItem(_ref) {
|
|
|
16665
16646
|
name = _ref.name,
|
|
16666
16647
|
imageUrl = _ref.imageUrl,
|
|
16667
16648
|
image = _ref.image,
|
|
16649
|
+
_ref$imageAlt = _ref.imageAlt,
|
|
16650
|
+
imageAlt = _ref$imageAlt === void 0 ? "checkbox icon" : _ref$imageAlt,
|
|
16668
16651
|
disabled = _ref.disabled,
|
|
16669
16652
|
borderColor = _ref.borderColor,
|
|
16670
16653
|
color = _ref.color,
|
|
@@ -16688,6 +16671,7 @@ var CheckboxListItem = function CheckboxListItem(_ref) {
|
|
|
16688
16671
|
id: "checkbox-".concat(name, "-").concat(index)
|
|
16689
16672
|
}), /*#__PURE__*/React__default.createElement(CheckboxLabel, {
|
|
16690
16673
|
name: name,
|
|
16674
|
+
"aria-label": name,
|
|
16691
16675
|
htmlFor: "checkbox-".concat(name, "-").concat(index),
|
|
16692
16676
|
onClick: disabled ? noop : onSelect,
|
|
16693
16677
|
onKeyDown: disabled ? noop : onSelect,
|
|
@@ -16707,7 +16691,8 @@ var CheckboxListItem = function CheckboxListItem(_ref) {
|
|
|
16707
16691
|
justify: "flex-start",
|
|
16708
16692
|
align: "center"
|
|
16709
16693
|
}, /*#__PURE__*/React__default.createElement(CheckboxItemIcon, {
|
|
16710
|
-
src: imageUrl
|
|
16694
|
+
src: imageUrl,
|
|
16695
|
+
alt: imageAlt
|
|
16711
16696
|
}))), /*#__PURE__*/React__default.createElement(Box, {
|
|
16712
16697
|
padding: "0rem 0.5rem 0rem 0rem",
|
|
16713
16698
|
hiddenStyles: !image
|
|
@@ -16804,7 +16789,7 @@ function _templateObject4$2() {
|
|
|
16804
16789
|
}
|
|
16805
16790
|
|
|
16806
16791
|
function _templateObject3$5() {
|
|
16807
|
-
var data = _taggedTemplateLiteral(["\n background-color: ", ";\n text-align: start;\n border-
|
|
16792
|
+
var data = _taggedTemplateLiteral(["\n background-color: ", ";\n text-align: start;\n border-width: 0px;\n border-color: transparent;\n box-shadow: none;\n padding: 1rem;\n box-sizing: border-box;\n width: 100%;\n cursor: ", ";\n\n &:hover {\n background-color: ", ";\n }\n &:focus {\n background-color: ", ";\n outline: none;\n }\n"]);
|
|
16808
16793
|
|
|
16809
16794
|
_templateObject3$5 = function _templateObject3() {
|
|
16810
16795
|
return data;
|
|
@@ -17009,7 +16994,7 @@ var Dropdown = function Dropdown(_ref7) {
|
|
|
17009
16994
|
tabIndex: 0,
|
|
17010
16995
|
padding: "0",
|
|
17011
16996
|
width: "100%",
|
|
17012
|
-
|
|
16997
|
+
hoverStyles: "background-color: ".concat(themeValues.hoverColor, ";"),
|
|
17013
16998
|
"aria-expanded": isOpen
|
|
17014
16999
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
17015
17000
|
as: "button",
|
|
@@ -17017,7 +17002,6 @@ var Dropdown = function Dropdown(_ref7) {
|
|
|
17017
17002
|
width: "100%",
|
|
17018
17003
|
padding: "12px",
|
|
17019
17004
|
hoverStyles: "background-color: ".concat(themeValues.hoverColor, ";"),
|
|
17020
|
-
focusStyles: "background-color: ".concat(themeValues.hoverColor, ";"),
|
|
17021
17005
|
borderSize: "1px",
|
|
17022
17006
|
borderColor: isError ? ERROR_COLOR : isOpen ? themeValues.selectedColor : GREY_CHATEAU,
|
|
17023
17007
|
borderRadius: "2px",
|
|
@@ -17027,6 +17011,7 @@ var Dropdown = function Dropdown(_ref7) {
|
|
|
17027
17011
|
direction: "row",
|
|
17028
17012
|
bottomItem: 2
|
|
17029
17013
|
}, isOpen ? /*#__PURE__*/React__default.createElement(SearchInput, {
|
|
17014
|
+
"aria-label": inputValue || "Dropdown awaiting search value",
|
|
17030
17015
|
value: inputValue,
|
|
17031
17016
|
onChange: noop,
|
|
17032
17017
|
themeValues: themeValues
|
|
@@ -17039,7 +17024,7 @@ var Dropdown = function Dropdown(_ref7) {
|
|
|
17039
17024
|
}, /*#__PURE__*/React__default.createElement(DropdownIcon, null)))), isOpen ? /*#__PURE__*/React__default.createElement(DropdownContentWrapper, {
|
|
17040
17025
|
open: isOpen,
|
|
17041
17026
|
ref: dropdownRef,
|
|
17042
|
-
tabIndex:
|
|
17027
|
+
tabIndex: 0
|
|
17043
17028
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
17044
17029
|
childGap: "0"
|
|
17045
17030
|
}, filteredOptions.map(function (choice, i) {
|
|
@@ -18081,13 +18066,13 @@ var DisplayCard = function DisplayCard(_ref) {
|
|
|
18081
18066
|
variant: "smallGhost",
|
|
18082
18067
|
dataQa: buttonText,
|
|
18083
18068
|
extraStyles: "min-width: 0;"
|
|
18084
|
-
}) : /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
18069
|
+
}) : buttonAction ? /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
18085
18070
|
text: buttonText,
|
|
18086
18071
|
action: buttonAction,
|
|
18087
18072
|
variant: "smallGhost",
|
|
18088
18073
|
dataQa: buttonText,
|
|
18089
18074
|
extraStyles: "min-width: 0;"
|
|
18090
|
-
}))))));
|
|
18075
|
+
}) : /*#__PURE__*/React__default.createElement(React.Fragment, null))))));
|
|
18091
18076
|
};
|
|
18092
18077
|
|
|
18093
18078
|
var src = createCommonjsModule(function (module, exports) {
|
|
@@ -18512,7 +18497,8 @@ var InputField = styled__default.input(_templateObject$p(), function (_ref) {
|
|
|
18512
18497
|
|
|
18513
18498
|
var FormattedInputField = styled__default(function (_ref7) {
|
|
18514
18499
|
var showErrors = _ref7.showErrors,
|
|
18515
|
-
|
|
18500
|
+
themeValues = _ref7.themeValues,
|
|
18501
|
+
props = _objectWithoutProperties(_ref7, ["showErrors", "themeValues"]);
|
|
18516
18502
|
|
|
18517
18503
|
return /*#__PURE__*/React__default.createElement(src_1, props);
|
|
18518
18504
|
})(_templateObject3$7(), function (_ref8) {
|
|
@@ -18537,7 +18523,8 @@ var FormattedInputField = styled__default(function (_ref7) {
|
|
|
18537
18523
|
var FormInput = function FormInput(_ref13) {
|
|
18538
18524
|
var _ref13$type = _ref13.type,
|
|
18539
18525
|
type = _ref13$type === void 0 ? "text" : _ref13$type,
|
|
18540
|
-
|
|
18526
|
+
_ref13$labelTextWhenN = _ref13.labelTextWhenNoError,
|
|
18527
|
+
labelTextWhenNoError = _ref13$labelTextWhenN === void 0 ? "" : _ref13$labelTextWhenN,
|
|
18541
18528
|
errorMessages = _ref13.errorMessages,
|
|
18542
18529
|
_ref13$isNum = _ref13.isNum,
|
|
18543
18530
|
isNum = _ref13$isNum === void 0 ? false : _ref13$isNum,
|
|
@@ -18571,10 +18558,12 @@ var FormInput = function FormInput(_ref13) {
|
|
|
18571
18558
|
justify: "space-between",
|
|
18572
18559
|
align: "center"
|
|
18573
18560
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
18561
|
+
as: "label",
|
|
18574
18562
|
color: themeValues.labelColor,
|
|
18575
18563
|
variant: "pS",
|
|
18576
18564
|
weight: themeValues.fontWeight,
|
|
18577
|
-
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }"
|
|
18565
|
+
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
|
|
18566
|
+
id: labelTextWhenNoError.replace(/\s+/g, "-")
|
|
18578
18567
|
}, labelTextWhenNoError), /*#__PURE__*/React__default.createElement(Text$1, {
|
|
18579
18568
|
color: themeValues.linkColor,
|
|
18580
18569
|
variant: "pS",
|
|
@@ -18586,11 +18575,12 @@ var FormInput = function FormInput(_ref13) {
|
|
|
18586
18575
|
justify: "space-between",
|
|
18587
18576
|
align: "center"
|
|
18588
18577
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
18578
|
+
as: "label",
|
|
18589
18579
|
color: themeValues.labelColor,
|
|
18590
18580
|
variant: "pS",
|
|
18591
18581
|
fontWeight: themeValues.fontWeight,
|
|
18592
18582
|
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
|
|
18593
|
-
id: labelTextWhenNoError
|
|
18583
|
+
id: labelTextWhenNoError.replace(/\s+/g, "-")
|
|
18594
18584
|
}, labelTextWhenNoError), type === "password" && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
18595
18585
|
variant: "pS",
|
|
18596
18586
|
color: themeValues.linkColor,
|
|
@@ -18610,7 +18600,7 @@ var FormInput = function FormInput(_ref13) {
|
|
|
18610
18600
|
}, decorator)))), /*#__PURE__*/React__default.createElement(Box, {
|
|
18611
18601
|
padding: "0"
|
|
18612
18602
|
}, formatter ? /*#__PURE__*/React__default.createElement(FormattedInputField, _extends({
|
|
18613
|
-
"aria-labelledby": labelTextWhenNoError,
|
|
18603
|
+
"aria-labelledby": labelTextWhenNoError.replace(/\s+/g, "-"),
|
|
18614
18604
|
onChange: function onChange(e) {
|
|
18615
18605
|
return fieldActions.set(e);
|
|
18616
18606
|
},
|
|
@@ -18626,7 +18616,7 @@ var FormInput = function FormInput(_ref13) {
|
|
|
18626
18616
|
customHeight: customHeight,
|
|
18627
18617
|
extraStyles: extraStyles
|
|
18628
18618
|
}, props)) : /*#__PURE__*/React__default.createElement(InputField, _extends({
|
|
18629
|
-
"aria-labelledby": labelTextWhenNoError,
|
|
18619
|
+
"aria-labelledby": labelTextWhenNoError.replace(/\s+/g, "-"),
|
|
18630
18620
|
onChange: function onChange(e) {
|
|
18631
18621
|
return fieldActions.set(e.target.value);
|
|
18632
18622
|
},
|
|
@@ -18917,13 +18907,14 @@ var HamburgerButton = function HamburgerButton(_ref4) {
|
|
|
18917
18907
|
inactiveColor = _ref4.inactiveColor,
|
|
18918
18908
|
isActive = _ref4.isActive,
|
|
18919
18909
|
_ref4$onClick = _ref4.onClick,
|
|
18920
|
-
onClick = _ref4$onClick === void 0 ? noop : _ref4$onClick
|
|
18910
|
+
onClick = _ref4$onClick === void 0 ? noop : _ref4$onClick,
|
|
18911
|
+
controls = _ref4.controls;
|
|
18921
18912
|
return /*#__PURE__*/React__default.createElement(Hamburger, {
|
|
18922
18913
|
className: isActive === true ? "active" : "",
|
|
18923
18914
|
onClick: onClick,
|
|
18924
18915
|
type: "button",
|
|
18925
|
-
|
|
18926
|
-
|
|
18916
|
+
"aria-label": "Menu",
|
|
18917
|
+
"aria-controls": controls
|
|
18927
18918
|
}, /*#__PURE__*/React__default.createElement(HamburgerBox, null, /*#__PURE__*/React__default.createElement(HamburgerInner, {
|
|
18928
18919
|
className: isActive === true ? "active" : "",
|
|
18929
18920
|
inactiveColor: inactiveColor,
|
|
@@ -19732,6 +19723,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
19732
19723
|
animate: radioOn ? radioFocused ? "onFocused" : "on" : radioFocused ? "offFocused" : "off"
|
|
19733
19724
|
}, /*#__PURE__*/React__default.createElement(HiddenRadioButton, {
|
|
19734
19725
|
id: "#radio-".concat(name),
|
|
19726
|
+
"aria-label": name,
|
|
19735
19727
|
disabled: disabled,
|
|
19736
19728
|
onClick: toggleRadio,
|
|
19737
19729
|
tabIndex: "-1"
|
|
@@ -30537,6 +30529,7 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
|
|
|
30537
30529
|
extraStyles: "display: flex; align-items: center;",
|
|
30538
30530
|
dataQa: dataQa
|
|
30539
30531
|
}, /*#__PURE__*/React__default.createElement(HiddenToggleSwitchBox, {
|
|
30532
|
+
"aria-label": name,
|
|
30540
30533
|
checked: isOn,
|
|
30541
30534
|
onChange: disabled ? noop : onToggle,
|
|
30542
30535
|
disabled: disabled,
|
|
@@ -32618,29 +32611,31 @@ var EditableList = function EditableList(_ref) {
|
|
|
32618
32611
|
padding: "0",
|
|
32619
32612
|
borderRadius: "4px",
|
|
32620
32613
|
extraStyles: "box-shadow: 0px 2px 14px 0px rgb(246, 246, 249),\n 0px 3px 8px 0px rgb(202, 206, 216);"
|
|
32621
|
-
}, items.map(function (
|
|
32614
|
+
}, items.map(function (item) {
|
|
32622
32615
|
var _useState = React.useState(false),
|
|
32623
32616
|
_useState2 = _slicedToArray(_useState, 2),
|
|
32624
32617
|
modalOpen = _useState2[0],
|
|
32625
32618
|
toggleModal = _useState2[1];
|
|
32626
32619
|
|
|
32627
32620
|
return /*#__PURE__*/React__default.createElement(EditableListItem, {
|
|
32628
|
-
listItemSize: !!
|
|
32629
|
-
key:
|
|
32621
|
+
listItemSize: !!item.id && item.id === autoPayMethod ? "big" : listItemSize,
|
|
32622
|
+
key: item.id || item
|
|
32630
32623
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
32631
32624
|
variant: "p",
|
|
32632
32625
|
color: CHARADE_GREY
|
|
32633
|
-
}, renderItem(
|
|
32626
|
+
}, renderItem(item)), /*#__PURE__*/React__default.createElement(EditableListItemControls, null, item.isPrimary && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
32634
32627
|
variant: "p",
|
|
32635
32628
|
color: STORM_GREY,
|
|
32636
|
-
extraStyles: "font-style: italic;"
|
|
32629
|
+
extraStyles: "font-style: italic;",
|
|
32630
|
+
key: "Default ".concat(itemName)
|
|
32637
32631
|
}, "Default ", itemName), canRemove && /*#__PURE__*/React__default.createElement(Box, {
|
|
32638
32632
|
padding: "0 0.5rem",
|
|
32639
32633
|
border: "2px solid transparent",
|
|
32640
32634
|
extraStyles: ":not(:first-child) { border-left: 2px solid ".concat(BOSTON_BLUE, ";}"),
|
|
32641
|
-
dataQa: qaPrefix + " Remove"
|
|
32635
|
+
dataQa: qaPrefix + " Remove",
|
|
32636
|
+
key: "Remove ".concat(item.id)
|
|
32642
32637
|
}, useModal ? /*#__PURE__*/React__default.createElement(Modal, _extends({
|
|
32643
|
-
item: _objectSpread2({},
|
|
32638
|
+
item: _objectSpread2({}, item)
|
|
32644
32639
|
}, modalProps, {
|
|
32645
32640
|
modalOpen: modalOpen,
|
|
32646
32641
|
toggleModal: toggleModal
|
|
@@ -32648,19 +32643,20 @@ var EditableList = function EditableList(_ref) {
|
|
|
32648
32643
|
variant: "smallGhost",
|
|
32649
32644
|
text: "Remove",
|
|
32650
32645
|
action: function action() {
|
|
32651
|
-
return removeItem(
|
|
32646
|
+
return removeItem(item.id);
|
|
32652
32647
|
},
|
|
32653
32648
|
extraStyles: "min-width: 0;"
|
|
32654
32649
|
})), canEdit && /*#__PURE__*/React__default.createElement(Box, {
|
|
32655
32650
|
padding: "0 0.5rem",
|
|
32656
32651
|
border: "2px solid transparent",
|
|
32657
32652
|
extraStyles: ":not(:first-child) { border-left: 2px solid ".concat(BOSTON_BLUE, ";}"),
|
|
32658
|
-
dataQa: qaPrefix + " Edit"
|
|
32653
|
+
dataQa: qaPrefix + " Edit",
|
|
32654
|
+
key: "Edit ".concat(item.id)
|
|
32659
32655
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
32660
32656
|
variant: "smallGhost",
|
|
32661
32657
|
text: "Edit",
|
|
32662
32658
|
action: function action() {
|
|
32663
|
-
return editItem(
|
|
32659
|
+
return editItem(item.id);
|
|
32664
32660
|
},
|
|
32665
32661
|
extraStyles: "min-width: 0;"
|
|
32666
32662
|
}))));
|
|
@@ -34448,7 +34444,8 @@ var fallbackValues$s = {
|
|
|
34448
34444
|
};
|
|
34449
34445
|
|
|
34450
34446
|
var NavMenuDesktop = function NavMenuDesktop(_ref) {
|
|
34451
|
-
var
|
|
34447
|
+
var id = _ref.id,
|
|
34448
|
+
_ref$top = _ref.top,
|
|
34452
34449
|
top = _ref$top === void 0 ? "125%" : _ref$top,
|
|
34453
34450
|
_ref$left = _ref.left,
|
|
34454
34451
|
left = _ref$left === void 0 ? "-100%" : _ref$left,
|
|
@@ -34463,6 +34460,7 @@ var NavMenuDesktop = function NavMenuDesktop(_ref) {
|
|
|
34463
34460
|
themeValues = _ref.themeValues;
|
|
34464
34461
|
var menuCarat = "&:after { bottom: 100%; right: 10px; border: solid transparent; content: \" \"; height: 0; width: 0; position: absolute; pointer-events: none; border-color: ".concat(themeValues.backgroundColor, "00; border-bottom-color: ").concat(themeValues.backgroundColor, "; border-width: 10px; margin-left: -10px; }");
|
|
34465
34462
|
return /*#__PURE__*/React__default.createElement(Imposter, {
|
|
34463
|
+
id: id,
|
|
34466
34464
|
breakout: true,
|
|
34467
34465
|
top: top,
|
|
34468
34466
|
left: left,
|
|
@@ -34525,12 +34523,14 @@ var menu = posed.div({
|
|
|
34525
34523
|
var ImposterMenu = styled__default(menu)(_templateObject$y());
|
|
34526
34524
|
|
|
34527
34525
|
var NavMenuMobile = function NavMenuMobile(_ref) {
|
|
34528
|
-
var
|
|
34526
|
+
var id = _ref.id,
|
|
34527
|
+
_ref$menuContent = _ref.menuContent,
|
|
34529
34528
|
menuContent = _ref$menuContent === void 0 ? [] : _ref$menuContent,
|
|
34530
34529
|
_ref$visible = _ref.visible,
|
|
34531
34530
|
visible = _ref$visible === void 0 ? false : _ref$visible,
|
|
34532
34531
|
themeValues = _ref.themeValues;
|
|
34533
34532
|
return /*#__PURE__*/React__default.createElement(ImposterMenu, {
|
|
34533
|
+
id: id,
|
|
34534
34534
|
initialPose: "invisible",
|
|
34535
34535
|
pose: visible ? "visible" : "invisible"
|
|
34536
34536
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -36203,9 +36203,6 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
|
|
|
36203
36203
|
justify: "space-between",
|
|
36204
36204
|
align: "center",
|
|
36205
36205
|
nowrap: true
|
|
36206
|
-
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
36207
|
-
padding: "0",
|
|
36208
|
-
width: "100%"
|
|
36209
36206
|
}, /*#__PURE__*/React__default.createElement(AmountModule, {
|
|
36210
36207
|
totalAmountDue: obligations.reduce(function (acc, curr) {
|
|
36211
36208
|
return acc + curr.amountDue;
|
|
@@ -36215,19 +36212,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
|
|
|
36215
36212
|
deactivatePaymentSchedule: deactivatePaymentSchedule,
|
|
36216
36213
|
navigateToSettings: navigateToSettings,
|
|
36217
36214
|
autoPaySchedule: autoPaySchedule
|
|
36218
|
-
})), /*#__PURE__*/React__default.createElement(Box, {
|
|
36219
|
-
padding: "0",
|
|
36220
|
-
width: "100%"
|
|
36221
|
-
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
36222
|
-
isLoading: isLoading,
|
|
36223
|
-
action: function action() {
|
|
36224
|
-
return handleClick(obligations);
|
|
36225
|
-
},
|
|
36226
|
-
text: "Pay Now",
|
|
36227
|
-
variant: isMobile ? "smallSecondary" : "secondary",
|
|
36228
|
-
dataQa: "Pay Now",
|
|
36229
|
-
extraStyles: isMobile && "flex-grow: 1; width: 100%;"
|
|
36230
|
-
})))), /*#__PURE__*/React__default.createElement(Box, {
|
|
36215
|
+
}))), /*#__PURE__*/React__default.createElement(Box, {
|
|
36231
36216
|
padding: isMobile ? "16px" : "0"
|
|
36232
36217
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
36233
36218
|
justify: isMobile ? "center" : "flex-end",
|
|
@@ -36275,7 +36260,19 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
|
|
|
36275
36260
|
variant: isMobile ? "smallSecondary" : "secondary",
|
|
36276
36261
|
dataQa: "Pay Now",
|
|
36277
36262
|
extraStyles: isMobile && "flex-grow: 1; width: 100%;"
|
|
36278
|
-
})))
|
|
36263
|
+
}))), isMobile && /*#__PURE__*/React__default.createElement(Box, {
|
|
36264
|
+
padding: "8px 0 0",
|
|
36265
|
+
width: "100%"
|
|
36266
|
+
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
36267
|
+
isLoading: isLoading,
|
|
36268
|
+
action: function action() {
|
|
36269
|
+
return handleClick(obligations);
|
|
36270
|
+
},
|
|
36271
|
+
text: "Pay Now",
|
|
36272
|
+
variant: isMobile ? "smallSecondary" : "secondary",
|
|
36273
|
+
dataQa: "Pay Now",
|
|
36274
|
+
extraStyles: isMobile && "flex-grow: 1; width: 100%;"
|
|
36275
|
+
}))));
|
|
36279
36276
|
};
|
|
36280
36277
|
|
|
36281
36278
|
var Obligation = function Obligation(_ref) {
|
|
@@ -36313,7 +36310,7 @@ var Obligation = function Obligation(_ref) {
|
|
|
36313
36310
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
36314
36311
|
justify: "flex-start",
|
|
36315
36312
|
align: "center"
|
|
36316
|
-
}, /*#__PURE__*/React__default.createElement(IconsModule, {
|
|
36313
|
+
}, !isMobile && /*#__PURE__*/React__default.createElement(IconsModule, {
|
|
36317
36314
|
icon: config.icon,
|
|
36318
36315
|
iconDefault: config.iconDefault,
|
|
36319
36316
|
configIconMap: config.iconMap,
|
|
@@ -36458,7 +36455,9 @@ var PAGING_INIT_SPACE = 3; // first delimiter should appear after 3 pages
|
|
|
36458
36455
|
|
|
36459
36456
|
var PrevNextButton = function PrevNextButton(_ref) {
|
|
36460
36457
|
var action = _ref.action,
|
|
36461
|
-
type = _ref.type
|
|
36458
|
+
type = _ref.type,
|
|
36459
|
+
arrowColor = _ref.arrowColor,
|
|
36460
|
+
numberColor = _ref.numberColor;
|
|
36462
36461
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
36463
36462
|
padding: "0 10px 0",
|
|
36464
36463
|
minHeight: "40px",
|
|
@@ -36467,12 +36466,13 @@ var PrevNextButton = function PrevNextButton(_ref) {
|
|
|
36467
36466
|
action: action,
|
|
36468
36467
|
contentOverride: true,
|
|
36469
36468
|
dataQa: type,
|
|
36470
|
-
extraStyles: "\n min-width: 40px;\n min-height: 100%;\n max-height: 40px;\n padding: 6px;\n border-radius: 3px;\n "
|
|
36469
|
+
extraStyles: "\n min-width: 40px;\n min-height: 100%;\n max-height: 40px;\n padding: 6px;\n border-radius: 3px;\n background-color: ".concat(numberColor !== null && numberColor !== void 0 ? numberColor : MATISSE_BLUE, ";\n border-color: ").concat(numberColor !== null && numberColor !== void 0 ? numberColor : MATISSE_BLUE, "\n ")
|
|
36471
36470
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
36472
36471
|
padding: "0",
|
|
36473
36472
|
extraStyles: type === "prev" && "transform: scaleX(-1)"
|
|
36474
36473
|
}, /*#__PURE__*/React__default.createElement(ChevronIcon$1, {
|
|
36475
|
-
variant: "darkMode"
|
|
36474
|
+
variant: "darkMode",
|
|
36475
|
+
iconFill: arrowColor
|
|
36476
36476
|
}))));
|
|
36477
36477
|
};
|
|
36478
36478
|
|
|
@@ -36527,17 +36527,21 @@ var Pagination = function Pagination(_ref2) {
|
|
|
36527
36527
|
pageNext = _ref2.pageNext,
|
|
36528
36528
|
setCurrentPage = _ref2.setCurrentPage,
|
|
36529
36529
|
currentPage = _ref2.currentPage,
|
|
36530
|
-
pageCount = _ref2.pageCount
|
|
36530
|
+
pageCount = _ref2.pageCount,
|
|
36531
|
+
numberColor = _ref2.numberColor,
|
|
36532
|
+
arrowColor = _ref2.arrowColor;
|
|
36531
36533
|
return /*#__PURE__*/React__default.createElement(Cluster, {
|
|
36532
36534
|
justify: "center",
|
|
36533
36535
|
childGap: "10px"
|
|
36534
36536
|
}, currentPage > 1 && /*#__PURE__*/React__default.createElement(PrevNextButton, {
|
|
36535
36537
|
type: "prev",
|
|
36536
|
-
action: pagePrevious
|
|
36538
|
+
action: pagePrevious,
|
|
36539
|
+
arrowColor: arrowColor,
|
|
36540
|
+
numberColor: numberColor
|
|
36537
36541
|
}), getPagesPanel(currentPage, pageCount).map(function (item, index) {
|
|
36538
36542
|
return item.isButton ? /*#__PURE__*/React__default.createElement(Box, {
|
|
36539
36543
|
padding: "0",
|
|
36540
|
-
border: item.active && "1px solid ".concat(MATISSE_BLUE),
|
|
36544
|
+
border: item.active && "1px solid ".concat(numberColor !== null && numberColor !== void 0 ? numberColor : MATISSE_BLUE),
|
|
36541
36545
|
borderRadius: item.active && "3px",
|
|
36542
36546
|
extraStyles: "max-height: 40px;"
|
|
36543
36547
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
@@ -36551,7 +36555,7 @@ var Pagination = function Pagination(_ref2) {
|
|
|
36551
36555
|
});
|
|
36552
36556
|
} : noop,
|
|
36553
36557
|
textExtraStyles: "font-size: 17px; font-weight: 900;",
|
|
36554
|
-
extraStyles: "\n min-width: 40px; min-height: 100%; padding: 0;\n &:hover, &:focus {\n text-decoration: none;\n > * > span {\n text-decoration: none;\n }\n }\n }\n &:hover { ".concat(item.active ? "cursor: default;" : "background-color: ".concat(ALABASTER_WHITE), " }\n "),
|
|
36558
|
+
extraStyles: "\n min-width: 40px; min-height: 100%; padding: 0;\n &:hover, &:focus {\n text-decoration: none;\n > * > span {\n text-decoration: none;\n }\n }\n > * > span {\n color: ".concat(numberColor !== null && numberColor !== void 0 ? numberColor : MATISSE_BLUE, "\n }\n }\n &:hover { ").concat(item.active ? "cursor: default;" : "background-color: ".concat(ALABASTER_WHITE), " }\n "),
|
|
36555
36559
|
dataQa: index
|
|
36556
36560
|
}, item.index)) : /*#__PURE__*/React__default.createElement(Box, {
|
|
36557
36561
|
padding: "0 10px"
|
|
@@ -36561,11 +36565,13 @@ var Pagination = function Pagination(_ref2) {
|
|
|
36561
36565
|
key: index,
|
|
36562
36566
|
variant: "pXL",
|
|
36563
36567
|
weight: "900",
|
|
36564
|
-
color: MATISSE_BLUE
|
|
36568
|
+
color: numberColor !== null && numberColor !== void 0 ? numberColor : MATISSE_BLUE
|
|
36565
36569
|
}, "...")));
|
|
36566
36570
|
}), currentPage < pageCount && /*#__PURE__*/React__default.createElement(PrevNextButton, {
|
|
36567
36571
|
type: "next",
|
|
36568
|
-
action: pageNext
|
|
36572
|
+
action: pageNext,
|
|
36573
|
+
arrowColor: arrowColor,
|
|
36574
|
+
numberColor: numberColor
|
|
36569
36575
|
}));
|
|
36570
36576
|
};
|
|
36571
36577
|
|
|
@@ -37398,10 +37404,10 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
37398
37404
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
37399
37405
|
padding: section.hideRadioButton ? "1.5rem" : "1.25rem 1.5rem 1.25rem 1.25rem",
|
|
37400
37406
|
background: section.disabled ? themeValues.headingDisabledColor : themeValues.headingBackgroundColor,
|
|
37401
|
-
onClick: isMobile && supportsTouch ? noop : function () {
|
|
37407
|
+
onClick: isMobile && supportsTouch || section.disabled ? noop : function () {
|
|
37402
37408
|
return toggleOpenSection(section.id);
|
|
37403
37409
|
},
|
|
37404
|
-
onTouchEnd: isMobile && supportsTouch ? function () {
|
|
37410
|
+
onTouchEnd: isMobile && supportsTouch || !section.disabled ? function () {
|
|
37405
37411
|
return toggleOpenSection(section.id);
|
|
37406
37412
|
} : noop,
|
|
37407
37413
|
key: "header-".concat(section.id),
|
|
@@ -37425,7 +37431,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
37425
37431
|
name: section.id,
|
|
37426
37432
|
radioOn: openSection === section.id,
|
|
37427
37433
|
radioFocused: focused === section.id,
|
|
37428
|
-
toggleRadio: function
|
|
37434
|
+
toggleRadio: section.disabled ? noop : function () {
|
|
37429
37435
|
return toggleOpenSection(section.id);
|
|
37430
37436
|
},
|
|
37431
37437
|
tabIndex: "-1"
|