@thecb/components 4.0.3 → 4.0.7-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 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?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi;
310
- var singleColorRegex = /^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))$/i;
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$1(__assign$1({}, number), { transform: clamp(0, 1) });
318
- var scale = __assign$1(__assign$1({}, number), { default: 1 });
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$1(__assign$1({}, percent), { parse: function (v) { return percent.parse(v) / 100; }, transform: function (v) { return percent.transform(v * 100); } });
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 = getValueFromFunctionString(v).split(/,\s*/);
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$$1 = _b === void 0 ? 1 : _b;
355
- return "rgba(" + red + ", " + green + ", " + blue + ", " + alpha$$1 + ")";
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$$1 = _b === void 0 ? 1 : _b;
359
- return "hsla(" + hue + ", " + saturation + ", " + lightness + ", " + alpha$$1 + ")";
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$1(__assign$1({}, number), { transform: function (v) { return Math.round(clampRgbUnit(v)); } });
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$$1 = _b === void 0 ? 1 : _b;
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$$1))
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$$1 = _b === void 0 ? 1 : _b;
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$$1))
366
+ alpha: sanitize(alpha.transform(alpha$1))
388
367
  });
389
368
  }
390
369
  };
391
- var hex = __assign$1(__assign$1({}, rgba), { test: function (v) { return typeof v === 'string' && isColorString(v, '#'); }, parse: function (v) {
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
- ? function (callback) { return window.requestAnimationFrame(callback); }
528
- : function (callback) {
529
- var timestamp = Date.now();
530
- var timeToCall = Math.max(0, 16.7 - (timestamp - prevTime));
531
- prevTime = timestamp + timeToCall;
532
- setTimeout(function () { return callback(prevTime); }, timeToCall);
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 createStep = (function (setRunNextFrame) {
536
- var processToRun = [];
537
- var processToRunNextFrame = [];
538
- var numThisFrame = 0;
539
- var isProcessing = false;
540
- var i = 0;
541
- var cancelled = new WeakSet();
542
- var toKeepAlive = new WeakSet();
543
- var renderStep = {
544
- cancel: function (process) {
545
- var indexOfCallback = processToRunNextFrame.indexOf(process);
546
- cancelled.add(process);
547
- if (indexOfCallback !== -1) {
548
- processToRunNextFrame.splice(indexOfCallback, 1);
549
- }
550
- },
551
- process: function (frame) {
552
- var _a;
553
- isProcessing = true;
554
- _a = [
555
- processToRunNextFrame,
556
- processToRun
557
- ], processToRun = _a[0], processToRunNextFrame = _a[1];
558
- processToRunNextFrame.length = 0;
559
- numThisFrame = processToRun.length;
560
- if (numThisFrame) {
561
- var process_1;
562
- for (i = 0; i < numThisFrame; i++) {
563
- process_1 = processToRun[i];
564
- process_1(frame);
565
- if (toKeepAlive.has(process_1) === true && !cancelled.has(process_1)) {
566
- renderStep.schedule(process_1);
567
- setRunNextFrame(true);
568
- }
569
- }
570
- }
571
- isProcessing = false;
572
- },
573
- schedule: function (process, keepAlive, immediate) {
574
- if (keepAlive === void 0) { keepAlive = false; }
575
- if (immediate === void 0) { immediate = false; }
576
- invariant(typeof process === 'function', 'Argument must be a function');
577
- var addToCurrentBuffer = immediate && isProcessing;
578
- var buffer = addToCurrentBuffer ? processToRun : processToRunNextFrame;
579
- cancelled.delete(process);
580
- if (keepAlive)
581
- toKeepAlive.add(process);
582
- if (buffer.indexOf(process) === -1) {
583
- buffer.push(process);
584
- if (addToCurrentBuffer)
585
- numThisFrame = processToRun.length;
586
- }
587
- }
588
- };
589
- return renderStep;
590
- });
591
-
592
- var StepId;
593
- (function (StepId) {
594
- StepId["Read"] = "read";
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$2 = function() {
934
- __assign$2 = Object.assign || function __assign(t) {
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$2.apply(this, arguments);
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$2({}, fromColor);
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$2({}, origin, target);
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$3 = function () {
3400
- __assign$3 = Object.assign || function __assign(t) {
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$3.apply(this, arguments);
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$3( /*#__PURE__*/__assign$3({}, intelligentTransition), { x: /*#__PURE__*/createPointer(pointerX, 'left', 'right', BoundingBoxDimension.width), y: /*#__PURE__*/createPointer(pointerY, 'top', 'bottom', BoundingBoxDimension.height) });
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$3( /*#__PURE__*/__assign$3({}, intelligentTransition), { x: justAxis, y: justAxis });
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$3(__assign$3({}, baseProps), def));
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$3({}, nextPose.applyAtEnd) : {};
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$3(__assign$3({ flip: {} }, config), { props: __assign$3(__assign$3({}, config.props), { onDragStart: onDragStart,
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$3(__assign$3({}, drag), poseConfig.drag);
4078
- poseConfig.dragEnd = __assign$3(__assign$3({}, dragEnd), poseConfig.dragEnd);
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$3(__assign$3({}, api), { addChild: function (element, childConfig) {
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$1 = React.createContext({}), PoseParentConsumer = _a$1.Consumer, PoseParentProvider = _a$1.Provider;
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 {
@@ -6164,16 +6137,6 @@ var Text = function Text(_ref) {
6164
6137
 
6165
6138
  var Text$1 = themeComponent(Text, "Text", fallbackValues, "p");
6166
6139
 
6167
- function _templateObject7() {
6168
- var data = _taggedTemplateLiteral(["\n display: none;\n "]);
6169
-
6170
- _templateObject7 = function _templateObject7() {
6171
- return data;
6172
- };
6173
-
6174
- return data;
6175
- }
6176
-
6177
6140
  function _templateObject6() {
6178
6141
  var data = _taggedTemplateLiteral(["\n ", "\n "]);
6179
6142
 
@@ -6225,7 +6188,7 @@ function _templateObject2$1() {
6225
6188
  }
6226
6189
 
6227
6190
  function _templateObject$1() {
6228
- var data = _taggedTemplateLiteral(["\n position: relative;\n box-sizing: border-box;\n padding: ", ";\n border: ", ";\n box-shadow: ", ";\n background-color: ", ";\n min-height: ", ";\n ", "\n min-width: ", ";\n max-width: ", ";\n color: ", ";\n border-radius: ", ";\n border-width: ", ";\n border: ", ";\n text-align: ", ";\n\n &:hover, &:focus {\n ", "\n }\n\n &:active {\n ", "\n }\n\n &:disabled {\n ", "\n }\n\n & * {\n color: ", ";\n }\n\n ", "\n ", "\n\n ", "\n"]);
6191
+ var data = _taggedTemplateLiteral(["\n position: relative;\n box-sizing: border-box;\n padding: ", ";\n border: ", ";\n box-shadow: ", ";\n background-color: ", ";\n min-height: ", ";\n ", "\n min-width: ", ";\n max-width: ", ";\n color: ", ";\n border-radius: ", ";\n border-width: ", ";\n border: ", ";\n text-align: ", ";\n\n &:hover, &:focus {\n ", "\n }\n\n &:active {\n ", "\n }\n\n &:disabled {\n ", "\n }\n\n & * {\n color: ", ";\n }\n\n ", "\n ", "\n"]);
6229
6192
 
6230
6193
  _templateObject$1 = function _templateObject() {
6231
6194
  return data;
@@ -6259,9 +6222,14 @@ var BoxWrapper = styled__default(function (_ref) {
6259
6222
  maxWidth = _ref.maxWidth,
6260
6223
  padding = _ref.padding,
6261
6224
  hiddenStyles = _ref.hiddenStyles,
6262
- props = _objectWithoutProperties(_ref, ["activeStyles", "hoverStyles", "disabledStyles", "extraStyles", "borderSize", "borderColor", "borderWidthOverride", "borderRadius", "textAlign", "boxShadow", "minHeight", "minWidth", "maxWidth", "padding", "hiddenStyles"]);
6263
-
6264
- return /*#__PURE__*/React__default.createElement("div", props);
6225
+ ariaControls = _ref.ariaControls,
6226
+ ariaLabel = _ref.ariaLabel,
6227
+ props = _objectWithoutProperties(_ref, ["activeStyles", "hoverStyles", "disabledStyles", "extraStyles", "borderSize", "borderColor", "borderWidthOverride", "borderRadius", "textAlign", "boxShadow", "minHeight", "minWidth", "maxWidth", "padding", "hiddenStyles", "ariaControls", "ariaLabel"]);
6228
+
6229
+ return /*#__PURE__*/React__default.createElement("div", _extends({
6230
+ "aria-controls": ariaControls,
6231
+ "aria-label": ariaLabel
6232
+ }, props));
6265
6233
  })(_templateObject$1(), function (_ref2) {
6266
6234
  var padding = _ref2.padding;
6267
6235
  return padding;
@@ -6324,9 +6292,6 @@ var BoxWrapper = styled__default(function (_ref) {
6324
6292
  }, function (_ref20) {
6325
6293
  var extraStyles = _ref20.extraStyles;
6326
6294
  return styled.css(_templateObject6(), extraStyles);
6327
- }, function (_ref21) {
6328
- var hiddenStyles = _ref21.hiddenStyles;
6329
- return hiddenStyles && styled.css(_templateObject7());
6330
6295
  });
6331
6296
  /* eslint-enable no-unused-vars */
6332
6297
 
@@ -10069,9 +10034,11 @@ function usePanGesture(_a, ref) {
10069
10034
  onPanEnd && onPanEnd(event, info);
10070
10035
  },
10071
10036
  };
10072
- if (panSession.current !== null) {
10073
- panSession.current.updateHandlers(handlers);
10074
- }
10037
+ React.useEffect(function () {
10038
+ if (panSession.current !== null) {
10039
+ panSession.current.updateHandlers(handlers);
10040
+ }
10041
+ });
10075
10042
  function onPointerDown(event) {
10076
10043
  panSession.current = new PanSession(event, handlers, {
10077
10044
  transformPagePoint: transformPagePoint,
@@ -11112,7 +11079,7 @@ function useForceUpdate() {
11112
11079
 
11113
11080
  var SyncLayoutContext = React.createContext(null);
11114
11081
 
11115
- var _a$2;
11082
+ var _a$1;
11116
11083
  var StepName;
11117
11084
  (function (StepName) {
11118
11085
  StepName["Prepare"] = "prepare";
@@ -11150,12 +11117,12 @@ var createUseSyncEffect = function (stepName) { return function (callback) {
11150
11117
  jobsNeedProcessing = true;
11151
11118
  jobs[stepName].push(callback);
11152
11119
  }; };
11153
- var layoutSync = (_a$2 = {},
11154
- _a$2[StepName.Prepare] = createUseSyncEffect(StepName.Prepare),
11155
- _a$2[StepName.Read] = createUseSyncEffect(StepName.Read),
11156
- _a$2[StepName.Render] = createUseSyncEffect(StepName.Render),
11157
- _a$2.flush = flushAllJobs,
11158
- _a$2);
11120
+ var layoutSync = (_a$1 = {},
11121
+ _a$1[StepName.Prepare] = createUseSyncEffect(StepName.Prepare),
11122
+ _a$1[StepName.Read] = createUseSyncEffect(StepName.Read),
11123
+ _a$1[StepName.Render] = createUseSyncEffect(StepName.Render),
11124
+ _a$1.flush = flushAllJobs,
11125
+ _a$1);
11159
11126
 
11160
11127
  function isHTMLElement$1(element) {
11161
11128
  return element instanceof HTMLElement;
@@ -14372,12 +14339,15 @@ var Heading = function Heading(_ref) {
14372
14339
  className = _ref.className,
14373
14340
  _ref$variant = _ref.variant,
14374
14341
  variant = _ref$variant === void 0 ? "h1" : _ref$variant,
14342
+ _ref$as = _ref.as,
14343
+ as = _ref$as === void 0 ? "h1" : _ref$as,
14375
14344
  dataQa = _ref.dataQa,
14376
14345
  children = _ref.children,
14377
- rest = _objectWithoutProperties(_ref, ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "dataQa", "children"]);
14346
+ rest = _objectWithoutProperties(_ref, ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"]);
14378
14347
 
14379
14348
  return /*#__PURE__*/React__default.createElement(HeadingText, _extends({
14380
- as: variant,
14349
+ variant: variant,
14350
+ as: as,
14381
14351
  weight: weight,
14382
14352
  color: color,
14383
14353
  margin: margin,
@@ -16388,10 +16358,10 @@ function _templateObject8() {
16388
16358
  return data;
16389
16359
  }
16390
16360
 
16391
- function _templateObject7$1() {
16361
+ function _templateObject7() {
16392
16362
  var data = _taggedTemplateLiteral(["\n display: inline-block;\n width: 24px;\n height: 24px;\n border-radius: 2px;\n transition: all 150ms;\n\n ", " {\n visibility: ", ";\n }\n\n ", ";\n"]);
16393
16363
 
16394
- _templateObject7$1 = function _templateObject7() {
16364
+ _templateObject7 = function _templateObject7() {
16395
16365
  return data;
16396
16366
  };
16397
16367
 
@@ -16468,7 +16438,7 @@ var CheckboxIcon = styled__default.svg(_templateObject3$3(), function (_ref) {
16468
16438
  var HiddenCheckbox = styled__default.input.attrs({
16469
16439
  type: "checkbox"
16470
16440
  })(_templateObject6$1());
16471
- var StyledCheckbox = styled__default.div(_templateObject7$1(), CheckboxIcon, function (_ref2) {
16441
+ var StyledCheckbox = styled__default.div(_templateObject7(), CheckboxIcon, function (_ref2) {
16472
16442
  var checked = _ref2.checked;
16473
16443
  return checked ? "visible" : "hidden";
16474
16444
  }, function (_ref3) {
@@ -18417,8 +18387,8 @@ var color$5 = {
18417
18387
  disabled: "".concat(DUSTY_GREY)
18418
18388
  };
18419
18389
  var labelColor = {
18420
- "default": "".concat(STORM_GREY),
18421
- disabled: "".concat(STORM_GREY)
18390
+ "default": "".concat(FIREFLY_GREY),
18391
+ disabled: "".concat(FIREFLY_GREY)
18422
18392
  };
18423
18393
  var borderColor = {
18424
18394
  "default": "".concat(GREY_CHATEAU),
@@ -18867,16 +18837,23 @@ var CCIconWrapper = styled__default.div(_templateObject2$e());
18867
18837
  var FormattedCreditCard = function FormattedCreditCard(_ref) {
18868
18838
  var lastFour = _ref.lastFour,
18869
18839
  autoPay = _ref.autoPay,
18840
+ expireDate = _ref.expireDate,
18870
18841
  themeValues = _ref.themeValues;
18871
18842
  return /*#__PURE__*/React__default.createElement(CreditCardWrapper, null, /*#__PURE__*/React__default.createElement(CCIconWrapper, null, /*#__PURE__*/React__default.createElement(GenericCard, null)), /*#__PURE__*/React__default.createElement(Stack, {
18872
18843
  childGap: "0"
18844
+ }, /*#__PURE__*/React__default.createElement(Box, {
18845
+ padding: "0"
18873
18846
  }, /*#__PURE__*/React__default.createElement(Text$1, {
18874
18847
  variant: "p",
18875
18848
  padding: "0 0 0 8px",
18876
18849
  color: themeValues.textColor,
18877
18850
  textAlign: "left",
18878
18851
  extraStyles: "display: inline-block;"
18879
- }, "Card ending in ".concat(lastFour)), autoPay && /*#__PURE__*/React__default.createElement(Text$1, {
18852
+ }, "Card ending in ".concat(lastFour)), expireDate && /*#__PURE__*/React__default.createElement(Paragraph$1, {
18853
+ variant: "pXS",
18854
+ color: ASH_GREY,
18855
+ textAlign: "left"
18856
+ }, "Exp ".concat(expireDate))), autoPay && /*#__PURE__*/React__default.createElement(Text$1, {
18880
18857
  variant: "p",
18881
18858
  color: themeValues.autopayTextColor,
18882
18859
  extraStyles: "font-style: italic;"
@@ -19015,16 +18992,19 @@ var LabeledAmount = function LabeledAmount(_ref) {
19015
18992
  variant = _ref$variant === void 0 ? "pL" : _ref$variant,
19016
18993
  label = _ref.label,
19017
18994
  amount = _ref.amount,
19018
- themeValues = _ref.themeValues;
18995
+ themeValues = _ref.themeValues,
18996
+ as = _ref.as;
19019
18997
  var LabeledAmountText = variant === "h6" ? Heading$1 : Paragraph$1;
19020
18998
  return /*#__PURE__*/React__default.createElement(Stack, {
19021
18999
  direction: "row"
19022
19000
  }, /*#__PURE__*/React__default.createElement(LabeledAmountText, {
19023
19001
  variant: variant,
19002
+ as: as,
19024
19003
  weight: themeValues.fontWeight,
19025
19004
  extraStyles: "text-align: start; flex: 3;"
19026
19005
  }, label, ":"), /*#__PURE__*/React__default.createElement(LabeledAmountText, {
19027
19006
  variant: variant,
19007
+ as: as,
19028
19008
  weight: themeValues.fontWeight,
19029
19009
  extraStyles: "text-align: end; flex: 1;"
19030
19010
  }, amount));
@@ -19312,10 +19292,10 @@ function _templateObject8$1() {
19312
19292
  return data;
19313
19293
  }
19314
19294
 
19315
- function _templateObject7$2() {
19295
+ function _templateObject7$1() {
19316
19296
  var data = _taggedTemplateLiteral(["", " needs an uppercase letter"]);
19317
19297
 
19318
- _templateObject7$2 = function _templateObject7() {
19298
+ _templateObject7$1 = function _templateObject7() {
19319
19299
  return data;
19320
19300
  };
19321
19301
 
@@ -19421,7 +19401,7 @@ with interpolation.
19421
19401
  */
19422
19402
 
19423
19403
 
19424
- var DEFAULT_ERROR_MESSAGES = (_DEFAULT_ERROR_MESSAG = {}, _defineProperty(_DEFAULT_ERROR_MESSAG, MIN_LENGTH_ERROR, genErrorMessage(_templateObject$t(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, MAX_LENGTH_ERROR, genErrorMessage(_templateObject2$h(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, EXACT_LENGTH_ERROR, genErrorMessage(_templateObject3$9(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, MULTIPLE_LENGTHS_ERROR, genErrorMessage(_templateObject4$5(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, EMAIL_ERROR, genErrorMessage(_templateObject5$2(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, HAS_NUMBER_ERROR, genErrorMessage(_templateObject6$2(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, HAS_UPPERCASE_LETTER_ERROR, genErrorMessage(_templateObject7$2(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, HAS_LOWERCASE_LETTER_ERROR, genErrorMessage(_templateObject8$1(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, HAS_SPECIAL_CHARACTER_ERROR, genErrorMessage(_templateObject9$1(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, ONLY_NUMBERS_ERROR, genErrorMessage(_templateObject10$1(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, ONLY_LETTERS_ERROR, genErrorMessage(_templateObject11$1(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, REQUIRED_FIELD_ERROR, genErrorMessage(_templateObject12(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, NUM_GREATER_THAN_ERROR, genErrorMessage(_templateObject13(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, NUM_LESS_THAN_ERROR, genErrorMessage(_templateObject14(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, MATCHES_FIELD_ERROR, genErrorMessage(_templateObject15(), "fieldLabel", "matchField")), _defineProperty(_DEFAULT_ERROR_MESSAG, VALID_SELECT_OPTION_ERROR, genErrorMessage(_templateObject16(), "fieldLabel")), _DEFAULT_ERROR_MESSAG); // Constants to represent an input's state
19404
+ var DEFAULT_ERROR_MESSAGES = (_DEFAULT_ERROR_MESSAG = {}, _defineProperty(_DEFAULT_ERROR_MESSAG, MIN_LENGTH_ERROR, genErrorMessage(_templateObject$t(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, MAX_LENGTH_ERROR, genErrorMessage(_templateObject2$h(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, EXACT_LENGTH_ERROR, genErrorMessage(_templateObject3$9(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, MULTIPLE_LENGTHS_ERROR, genErrorMessage(_templateObject4$5(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, EMAIL_ERROR, genErrorMessage(_templateObject5$2(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, HAS_NUMBER_ERROR, genErrorMessage(_templateObject6$2(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, HAS_UPPERCASE_LETTER_ERROR, genErrorMessage(_templateObject7$1(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, HAS_LOWERCASE_LETTER_ERROR, genErrorMessage(_templateObject8$1(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, HAS_SPECIAL_CHARACTER_ERROR, genErrorMessage(_templateObject9$1(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, ONLY_NUMBERS_ERROR, genErrorMessage(_templateObject10$1(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, ONLY_LETTERS_ERROR, genErrorMessage(_templateObject11$1(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, REQUIRED_FIELD_ERROR, genErrorMessage(_templateObject12(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, NUM_GREATER_THAN_ERROR, genErrorMessage(_templateObject13(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, NUM_LESS_THAN_ERROR, genErrorMessage(_templateObject14(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, MATCHES_FIELD_ERROR, genErrorMessage(_templateObject15(), "fieldLabel", "matchField")), _defineProperty(_DEFAULT_ERROR_MESSAG, VALID_SELECT_OPTION_ERROR, genErrorMessage(_templateObject16(), "fieldLabel")), _DEFAULT_ERROR_MESSAG); // Constants to represent an input's state
19425
19405
  // Neutral - has not been validated
19426
19406
  // Invalid - has been validated and has an error
19427
19407
  // Valid - has been validated and has no error
@@ -32714,10 +32694,10 @@ function _templateObject8$2() {
32714
32694
  return data;
32715
32695
  }
32716
32696
 
32717
- function _templateObject7$3() {
32697
+ function _templateObject7$2() {
32718
32698
  var data = _taggedTemplateLiteral(["\n display: flex;\n ", ";\n ", ";\n ", ";\n font-size: ", ";\n color: ", ";\n"]);
32719
32699
 
32720
- _templateObject7$3 = function _templateObject7() {
32700
+ _templateObject7$2 = function _templateObject7() {
32721
32701
  return data;
32722
32702
  };
32723
32703
 
@@ -32810,7 +32790,7 @@ var ActionWrapper = styled__default.div(_templateObject6$3(), function (_ref7) {
32810
32790
  var isMobile = _ref7.isMobile;
32811
32791
  return isMobile && "display: none";
32812
32792
  });
32813
- var TableItemKey = styled__default.div(_templateObject7$3(), function (_ref8) {
32793
+ var TableItemKey = styled__default.div(_templateObject7$2(), function (_ref8) {
32814
32794
  var isMobile = _ref8.isMobile;
32815
32795
  return !isMobile && "flex: 1";
32816
32796
  }, function (_ref9) {
@@ -33029,7 +33009,8 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
33029
33009
  key: t,
33030
33010
  borderSize: "3px",
33031
33011
  borderColor: highlightIndex == i ? themeValues.textColor : "transparent",
33032
- borderWidthOverride: "0 0 3px 0"
33012
+ borderWidthOverride: "0 0 3px 0",
33013
+ extraStyles: "text-align: center;"
33033
33014
  }, /*#__PURE__*/React__default.createElement(Text$1, {
33034
33015
  variant: "p",
33035
33016
  textAlign: "center",
@@ -34393,7 +34374,7 @@ var textAlign = {
34393
34374
  };
34394
34375
  var titleType = {
34395
34376
  "default": "h5",
34396
- largeTitle: "h3"
34377
+ largeTitle: "h1"
34397
34378
  };
34398
34379
  var titleSpacing = {
34399
34380
  "default": "0.5rem",
@@ -34437,12 +34418,11 @@ var Module = function Module(_ref) {
34437
34418
  variant = _ref$variant === void 0 ? "default" : _ref$variant,
34438
34419
  children = _ref.children;
34439
34420
  return /*#__PURE__*/React__default.createElement(React.Fragment, null, heading && /*#__PURE__*/React__default.createElement(Heading$1, {
34440
- variant: variant === "default" ? "h5" : "h3",
34421
+ variant: variant === "default" ? "h5" : "h2",
34441
34422
  weight: themeValues.fontWeight,
34442
34423
  color: themeValues.fontColor,
34443
34424
  margin: "".concat(spacing, " 0 ").concat(themeValues.titleSpacing, " 0"),
34444
- textAlign: themeValues.textAlign,
34445
- "aria-level": variant === "default" ? "3" : "1"
34425
+ textAlign: themeValues.textAlign
34446
34426
  }, heading), /*#__PURE__*/React__default.createElement(Box, {
34447
34427
  padding: "0 0 ".concat(spacingBottom)
34448
34428
  }, /*#__PURE__*/React__default.createElement(Box, {
@@ -36712,6 +36692,7 @@ var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
36712
36692
  label: "Subtotal",
36713
36693
  amount: displayCurrency(subtotal)
36714
36694
  }), feeElems), /*#__PURE__*/React__default.createElement(SolidDivider$1, null), /*#__PURE__*/React__default.createElement(LabeledAmount$1, {
36695
+ as: "h2",
36715
36696
  variant: themeValues.labeledAmountTotal,
36716
36697
  label: "Total",
36717
36698
  amount: displayCurrency(total)
@@ -36833,9 +36814,11 @@ var PaymentDetails = function PaymentDetails(_ref4) {
36833
36814
  justify: "space-between",
36834
36815
  align: "center"
36835
36816
  }, /*#__PURE__*/React__default.createElement(Heading$1, {
36836
- variant: "h6",
36837
- weight: "700"
36817
+ variant: "h5",
36818
+ weight: "700",
36819
+ as: "h1"
36838
36820
  }, titleText), displayCurrency(total))) : /*#__PURE__*/React__default.createElement(Heading$1, {
36821
+ as: "h1",
36839
36822
  variant: "h3",
36840
36823
  weight: "700",
36841
36824
  margin: "1rem 0 0 0"
@@ -37497,7 +37480,8 @@ var RadioSection = function RadioSection(_ref) {
37497
37480
  src: icon.img,
37498
37481
  key: icon.img,
37499
37482
  fade: !icon.enabled,
37500
- isMobile: isMobile
37483
+ isMobile: isMobile,
37484
+ alt: icon.altText
37501
37485
  });
37502
37486
  })))), /*#__PURE__*/React__default.createElement(AnimatePresence, {
37503
37487
  initial: false