@thecb/components 10.6.9-beta.1 → 10.6.9

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
@@ -6304,9 +6304,9 @@ var displayCardBrand = function displayCardBrand(number) {
6304
6304
  return "Mastercard";
6305
6305
  } else if (/^4/.test(number)) {
6306
6306
  return "Visa";
6307
- } else if (/^3[4,7]/.test(number)) {
6307
+ } else if (/^3[4,7]\d{13}$/.test(number)) {
6308
6308
  return "American Express";
6309
- } else return "Unknown Card";
6309
+ } else return "Unknown";
6310
6310
  };
6311
6311
  var checkDeniedCards = function checkDeniedCards(name) {
6312
6312
  switch (name) {
@@ -18419,42 +18419,26 @@ var CloseIcon = function CloseIcon(_ref) {
18419
18419
  var _ref$iconFill = _ref.iconFill,
18420
18420
  iconFill = _ref$iconFill === void 0 ? "#3B414D" : _ref$iconFill,
18421
18421
  _ref$iconWidth = _ref.iconWidth,
18422
- iconWidth = _ref$iconWidth === void 0 ? "24" : _ref$iconWidth,
18422
+ iconWidth = _ref$iconWidth === void 0 ? "24px" : _ref$iconWidth,
18423
18423
  _ref$iconHeight = _ref.iconHeight,
18424
- iconHeight = _ref$iconHeight === void 0 ? "24" : _ref$iconHeight,
18424
+ iconHeight = _ref$iconHeight === void 0 ? "24px" : _ref$iconHeight,
18425
18425
  rest = _objectWithoutProperties(_ref, _excluded$k);
18426
18426
  return /*#__PURE__*/React__default.createElement("svg", _extends({
18427
18427
  xmlns: "http://www.w3.org/2000/svg",
18428
- width: iconWidth,
18429
- height: iconHeight,
18430
- viewBox: "0 0 24 24",
18431
- fill: "none"
18432
- }, rest), /*#__PURE__*/React__default.createElement("title", null, "Close Icon"), /*#__PURE__*/React__default.createElement("path", {
18433
- fillRule: "evenodd",
18434
- clipRule: "evenodd",
18435
- d: "M17.3033 5.98982C17.108 5.79456 16.7915 5.79456 16.5962 5.98982L12 10.586L7.40381 5.98982C7.20854 5.79456 6.89196 5.79456 6.6967 5.98982L5.98959 6.69693C5.79433 6.89219 5.79433 7.20878 5.98959 7.40404L10.5858 12.0002L5.98959 16.5964C5.79433 16.7917 5.79433 17.1083 5.98959 17.3035L6.6967 18.0106C6.89196 18.2059 7.20854 18.2059 7.40381 18.0106L12 13.4144L16.5962 18.0106C16.7915 18.2059 17.108 18.2059 17.3033 18.0106L18.0104 17.3035C18.2057 17.1083 18.2057 16.7917 18.0104 16.5964L13.4142 12.0002L18.0104 7.40404C18.2057 7.20878 18.2057 6.89219 18.0104 6.69693L17.3033 5.98982Z",
18436
- fill: iconFill
18437
- }), /*#__PURE__*/React__default.createElement("mask", {
18438
- id: "mask0_3727_16765",
18428
+ width: "24",
18429
+ height: "25",
18430
+ viewBox: "0 0 24 25",
18431
+ fill: "none",
18439
18432
  style: {
18440
- maskType: "luminance"
18441
- },
18442
- maskUnits: "userSpaceOnUse",
18443
- x: "5",
18444
- y: "5",
18445
- width: "14",
18446
- height: "14"
18447
- }, /*#__PURE__*/React__default.createElement("path", {
18433
+ width: iconWidth,
18434
+ height: iconHeight
18435
+ }
18436
+ }, rest), /*#__PURE__*/React__default.createElement("title", null, "Close Icon"), /*#__PURE__*/React__default.createElement("path", {
18448
18437
  fillRule: "evenodd",
18449
18438
  clipRule: "evenodd",
18450
- d: "M17.3033 5.98982C17.108 5.79456 16.7915 5.79456 16.5962 5.98982L12 10.586L7.40381 5.98982C7.20854 5.79456 6.89196 5.79456 6.6967 5.98982L5.98959 6.69693C5.79433 6.89219 5.79433 7.20878 5.98959 7.40404L10.5858 12.0002L5.98959 16.5964C5.79433 16.7917 5.79433 17.1083 5.98959 17.3035L6.6967 18.0106C6.89196 18.2059 7.20854 18.2059 7.40381 18.0106L12 13.4144L16.5962 18.0106C16.7915 18.2059 17.108 18.2059 17.3033 18.0106L18.0104 17.3035C18.2057 17.1083 18.2057 16.7917 18.0104 16.5964L13.4142 12.0002L18.0104 7.40404C18.2057 7.20878 18.2057 6.89219 18.0104 6.69693L17.3033 5.98982Z",
18451
- fill: "none"
18452
- })), /*#__PURE__*/React__default.createElement("g", {
18453
- mask: "url(#mask0_3727_16765)"
18454
- }, /*#__PURE__*/React__default.createElement("path", {
18455
- d: "M0 0H24V24H0V0Z",
18439
+ d: "M17.3033 6.48982C17.108 6.29456 16.7915 6.29456 16.5962 6.48982L12 11.086L7.40381 6.48982C7.20854 6.29456 6.89196 6.29456 6.6967 6.48982L5.98959 7.19693C5.79433 7.39219 5.79433 7.70878 5.98959 7.90404L10.5858 12.5002L5.98959 17.0964C5.79433 17.2917 5.79433 17.6083 5.98959 17.8035L6.6967 18.5106C6.89196 18.7059 7.20854 18.7059 7.40381 18.5106L12 13.9144L16.5962 18.5106C16.7915 18.7059 17.108 18.7059 17.3033 18.5106L18.0104 17.8035C18.2057 17.6083 18.2057 17.2917 18.0104 17.0964L13.4142 12.5002L18.0104 7.90404C18.2057 7.70878 18.2057 7.39219 18.0104 7.19693L17.3033 6.48982Z",
18456
18440
  fill: iconFill
18457
- })));
18441
+ }));
18458
18442
  };
18459
18443
 
18460
18444
  var TrashIconV2 = function TrashIconV2(_ref) {
@@ -19645,7 +19629,6 @@ function _wrapNativeSuper(Class) {
19645
19629
  }
19646
19630
 
19647
19631
  // based on https://github.com/styled-components/styled-components/blob/fcf6f3804c57a14dd7984dfab7bc06ee2edca044/src/utils/error.js
19648
-
19649
19632
  /**
19650
19633
  * Parse errors.md and turn it into a simple hash of code: message
19651
19634
  * @private
@@ -19730,84 +19713,71 @@ var ERRORS = {
19730
19713
  "77": "remToPx expects a value in \"rem\" but you provided it in \"%s\".\n\n",
19731
19714
  "78": "base must be set in \"px\" or \"%\" but you set it in \"%s\".\n"
19732
19715
  };
19716
+
19733
19717
  /**
19734
19718
  * super basic version of sprintf
19735
19719
  * @private
19736
19720
  */
19737
-
19738
19721
  function format() {
19739
19722
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
19740
19723
  args[_key] = arguments[_key];
19741
19724
  }
19742
-
19743
19725
  var a = args[0];
19744
19726
  var b = [];
19745
19727
  var c;
19746
-
19747
19728
  for (c = 1; c < args.length; c += 1) {
19748
19729
  b.push(args[c]);
19749
19730
  }
19750
-
19751
19731
  b.forEach(function (d) {
19752
19732
  a = a.replace(/%[a-z]/, d);
19753
19733
  });
19754
19734
  return a;
19755
19735
  }
19736
+
19756
19737
  /**
19757
19738
  * Create an error file out of errors.md for development and a simple web link to the full errors
19758
19739
  * in production mode.
19759
19740
  * @private
19760
19741
  */
19761
-
19762
-
19763
19742
  var PolishedError = /*#__PURE__*/function (_Error) {
19764
19743
  _inheritsLoose(PolishedError, _Error);
19765
-
19766
19744
  function PolishedError(code) {
19767
19745
  var _this;
19768
-
19769
19746
  if (process.env.NODE_ENV === 'production') {
19770
19747
  _this = _Error.call(this, "An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#" + code + " for more information.") || this;
19771
19748
  } else {
19772
19749
  for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
19773
19750
  args[_key2 - 1] = arguments[_key2];
19774
19751
  }
19775
-
19776
19752
  _this = _Error.call(this, format.apply(void 0, [ERRORS[code]].concat(args))) || this;
19777
19753
  }
19778
-
19779
19754
  return _assertThisInitialized(_this);
19780
19755
  }
19781
-
19782
19756
  return PolishedError;
19783
19757
  }( /*#__PURE__*/_wrapNativeSuper(Error));
19784
19758
 
19785
19759
  function colorToInt(color) {
19786
19760
  return Math.round(color * 255);
19787
19761
  }
19788
-
19789
19762
  function convertToInt(red, green, blue) {
19790
19763
  return colorToInt(red) + "," + colorToInt(green) + "," + colorToInt(blue);
19791
19764
  }
19792
-
19793
19765
  function hslToRgb(hue, saturation, lightness, convert) {
19794
19766
  if (convert === void 0) {
19795
19767
  convert = convertToInt;
19796
19768
  }
19797
-
19798
19769
  if (saturation === 0) {
19799
19770
  // achromatic
19800
19771
  return convert(lightness, lightness, lightness);
19801
- } // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV
19802
-
19772
+ }
19803
19773
 
19774
+ // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV
19804
19775
  var huePrime = (hue % 360 + 360) % 360 / 60;
19805
19776
  var chroma = (1 - Math.abs(2 * lightness - 1)) * saturation;
19806
19777
  var secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));
19807
19778
  var red = 0;
19808
19779
  var green = 0;
19809
19780
  var blue = 0;
19810
-
19811
19781
  if (huePrime >= 0 && huePrime < 1) {
19812
19782
  red = chroma;
19813
19783
  green = secondComponent;
@@ -19827,7 +19797,6 @@ function hslToRgb(hue, saturation, lightness, convert) {
19827
19797
  red = chroma;
19828
19798
  blue = secondComponent;
19829
19799
  }
19830
-
19831
19800
  var lightnessModification = lightness - chroma / 2;
19832
19801
  var finalRed = red + lightnessModification;
19833
19802
  var finalGreen = green + lightnessModification;
@@ -19985,11 +19954,11 @@ var namedColorMap = {
19985
19954
  yellow: 'ff0',
19986
19955
  yellowgreen: '9acd32'
19987
19956
  };
19957
+
19988
19958
  /**
19989
19959
  * Checks if a string is a CSS named color and returns its equivalent hex value, otherwise returns the original color.
19990
19960
  * @private
19991
19961
  */
19992
-
19993
19962
  function nameToHex(color) {
19994
19963
  if (typeof color !== 'string') return color;
19995
19964
  var normalizedColorName = color.toLowerCase();
@@ -20004,6 +19973,7 @@ var rgbRegex = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\
20004
19973
  var rgbaRegex = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
20005
19974
  var hslRegex = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i;
20006
19975
  var hslaRegex = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
19976
+
20007
19977
  /**
20008
19978
  * Returns an RgbColor or RgbaColor object. This utility function is only useful
20009
19979
  * if want to extract a color component. With the color util `toColorString` you
@@ -20015,14 +19985,11 @@ var hslaRegex = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[
20015
19985
  * // Assigns `{ red: 92, green: 102, blue: 112, alpha: 0.75 }` to color2
20016
19986
  * const color2 = parseToRgb('hsla(210, 10%, 40%, 0.75)');
20017
19987
  */
20018
-
20019
19988
  function parseToRgb(color) {
20020
19989
  if (typeof color !== 'string') {
20021
19990
  throw new PolishedError(3);
20022
19991
  }
20023
-
20024
19992
  var normalizedColor = nameToHex(color);
20025
-
20026
19993
  if (normalizedColor.match(hexRegex)) {
20027
19994
  return {
20028
19995
  red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
@@ -20030,7 +19997,6 @@ function parseToRgb(color) {
20030
19997
  blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16)
20031
19998
  };
20032
19999
  }
20033
-
20034
20000
  if (normalizedColor.match(hexRgbaRegex)) {
20035
20001
  var alpha = parseFloat((parseInt("" + normalizedColor[7] + normalizedColor[8], 16) / 255).toFixed(2));
20036
20002
  return {
@@ -20040,7 +20006,6 @@ function parseToRgb(color) {
20040
20006
  alpha: alpha
20041
20007
  };
20042
20008
  }
20043
-
20044
20009
  if (normalizedColor.match(reducedHexRegex)) {
20045
20010
  return {
20046
20011
  red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
@@ -20048,10 +20013,8 @@ function parseToRgb(color) {
20048
20013
  blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16)
20049
20014
  };
20050
20015
  }
20051
-
20052
20016
  if (normalizedColor.match(reducedRgbaHexRegex)) {
20053
20017
  var _alpha = parseFloat((parseInt("" + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2));
20054
-
20055
20018
  return {
20056
20019
  red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
20057
20020
  green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16),
@@ -20059,9 +20022,7 @@ function parseToRgb(color) {
20059
20022
  alpha: _alpha
20060
20023
  };
20061
20024
  }
20062
-
20063
20025
  var rgbMatched = rgbRegex.exec(normalizedColor);
20064
-
20065
20026
  if (rgbMatched) {
20066
20027
  return {
20067
20028
  red: parseInt("" + rgbMatched[1], 10),
@@ -20069,9 +20030,7 @@ function parseToRgb(color) {
20069
20030
  blue: parseInt("" + rgbMatched[3], 10)
20070
20031
  };
20071
20032
  }
20072
-
20073
20033
  var rgbaMatched = rgbaRegex.exec(normalizedColor.substring(0, 50));
20074
-
20075
20034
  if (rgbaMatched) {
20076
20035
  return {
20077
20036
  red: parseInt("" + rgbaMatched[1], 10),
@@ -20080,44 +20039,32 @@ function parseToRgb(color) {
20080
20039
  alpha: parseFloat("" + rgbaMatched[4]) > 1 ? parseFloat("" + rgbaMatched[4]) / 100 : parseFloat("" + rgbaMatched[4])
20081
20040
  };
20082
20041
  }
20083
-
20084
20042
  var hslMatched = hslRegex.exec(normalizedColor);
20085
-
20086
20043
  if (hslMatched) {
20087
20044
  var hue = parseInt("" + hslMatched[1], 10);
20088
20045
  var saturation = parseInt("" + hslMatched[2], 10) / 100;
20089
20046
  var lightness = parseInt("" + hslMatched[3], 10) / 100;
20090
20047
  var rgbColorString = "rgb(" + hslToRgb(hue, saturation, lightness) + ")";
20091
20048
  var hslRgbMatched = rgbRegex.exec(rgbColorString);
20092
-
20093
20049
  if (!hslRgbMatched) {
20094
20050
  throw new PolishedError(4, normalizedColor, rgbColorString);
20095
20051
  }
20096
-
20097
20052
  return {
20098
20053
  red: parseInt("" + hslRgbMatched[1], 10),
20099
20054
  green: parseInt("" + hslRgbMatched[2], 10),
20100
20055
  blue: parseInt("" + hslRgbMatched[3], 10)
20101
20056
  };
20102
20057
  }
20103
-
20104
20058
  var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50));
20105
-
20106
20059
  if (hslaMatched) {
20107
20060
  var _hue = parseInt("" + hslaMatched[1], 10);
20108
-
20109
20061
  var _saturation = parseInt("" + hslaMatched[2], 10) / 100;
20110
-
20111
20062
  var _lightness = parseInt("" + hslaMatched[3], 10) / 100;
20112
-
20113
20063
  var _rgbColorString = "rgb(" + hslToRgb(_hue, _saturation, _lightness) + ")";
20114
-
20115
20064
  var _hslRgbMatched = rgbRegex.exec(_rgbColorString);
20116
-
20117
20065
  if (!_hslRgbMatched) {
20118
20066
  throw new PolishedError(4, normalizedColor, _rgbColorString);
20119
20067
  }
20120
-
20121
20068
  return {
20122
20069
  red: parseInt("" + _hslRgbMatched[1], 10),
20123
20070
  green: parseInt("" + _hslRgbMatched[2], 10),
@@ -20125,10 +20072,82 @@ function parseToRgb(color) {
20125
20072
  alpha: parseFloat("" + hslaMatched[4]) > 1 ? parseFloat("" + hslaMatched[4]) / 100 : parseFloat("" + hslaMatched[4])
20126
20073
  };
20127
20074
  }
20128
-
20129
20075
  throw new PolishedError(5);
20130
20076
  }
20131
20077
 
20078
+ function rgbToHsl(color) {
20079
+ // make sure rgb are contained in a set of [0, 255]
20080
+ var red = color.red / 255;
20081
+ var green = color.green / 255;
20082
+ var blue = color.blue / 255;
20083
+ var max = Math.max(red, green, blue);
20084
+ var min = Math.min(red, green, blue);
20085
+ var lightness = (max + min) / 2;
20086
+ if (max === min) {
20087
+ // achromatic
20088
+ if (color.alpha !== undefined) {
20089
+ return {
20090
+ hue: 0,
20091
+ saturation: 0,
20092
+ lightness: lightness,
20093
+ alpha: color.alpha
20094
+ };
20095
+ } else {
20096
+ return {
20097
+ hue: 0,
20098
+ saturation: 0,
20099
+ lightness: lightness
20100
+ };
20101
+ }
20102
+ }
20103
+ var hue;
20104
+ var delta = max - min;
20105
+ var saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min);
20106
+ switch (max) {
20107
+ case red:
20108
+ hue = (green - blue) / delta + (green < blue ? 6 : 0);
20109
+ break;
20110
+ case green:
20111
+ hue = (blue - red) / delta + 2;
20112
+ break;
20113
+ default:
20114
+ // blue case
20115
+ hue = (red - green) / delta + 4;
20116
+ break;
20117
+ }
20118
+ hue *= 60;
20119
+ if (color.alpha !== undefined) {
20120
+ return {
20121
+ hue: hue,
20122
+ saturation: saturation,
20123
+ lightness: lightness,
20124
+ alpha: color.alpha
20125
+ };
20126
+ }
20127
+ return {
20128
+ hue: hue,
20129
+ saturation: saturation,
20130
+ lightness: lightness
20131
+ };
20132
+ }
20133
+
20134
+ /**
20135
+ * Returns an HslColor or HslaColor object. This utility function is only useful
20136
+ * if want to extract a color component. With the color util `toColorString` you
20137
+ * can convert a HslColor or HslaColor object back to a string.
20138
+ *
20139
+ * @example
20140
+ * // Assigns `{ hue: 0, saturation: 1, lightness: 0.5 }` to color1
20141
+ * const color1 = parseToHsl('rgb(255, 0, 0)');
20142
+ * // Assigns `{ hue: 128, saturation: 1, lightness: 0.5, alpha: 0.75 }` to color2
20143
+ * const color2 = parseToHsl('hsla(128, 100%, 50%, 0.75)');
20144
+ */
20145
+ function parseToHsl(color) {
20146
+ // Note: At a later stage we can optimize this function as right now a hsl
20147
+ // color would be parsed converted to rgb values and converted back to hsl.
20148
+ return rgbToHsl(parseToRgb(color));
20149
+ }
20150
+
20132
20151
  /**
20133
20152
  * Reduces hex values if possible e.g. #ff8866 to #f86
20134
20153
  * @private
@@ -20137,10 +20156,8 @@ var reduceHexValue = function reduceHexValue(value) {
20137
20156
  if (value.length === 7 && value[1] === value[2] && value[3] === value[4] && value[5] === value[6]) {
20138
20157
  return "#" + value[1] + value[3] + value[5];
20139
20158
  }
20140
-
20141
20159
  return value;
20142
20160
  };
20143
-
20144
20161
  var reduceHexValue$1 = reduceHexValue;
20145
20162
 
20146
20163
  function numberToHex(value) {
@@ -20148,6 +20165,83 @@ function numberToHex(value) {
20148
20165
  return hex.length === 1 ? "0" + hex : hex;
20149
20166
  }
20150
20167
 
20168
+ function colorToHex(color) {
20169
+ return numberToHex(Math.round(color * 255));
20170
+ }
20171
+ function convertToHex(red, green, blue) {
20172
+ return reduceHexValue$1("#" + colorToHex(red) + colorToHex(green) + colorToHex(blue));
20173
+ }
20174
+ function hslToHex(hue, saturation, lightness) {
20175
+ return hslToRgb(hue, saturation, lightness, convertToHex);
20176
+ }
20177
+
20178
+ /**
20179
+ * Returns a string value for the color. The returned result is the smallest possible hex notation.
20180
+ *
20181
+ * @example
20182
+ * // Styles as object usage
20183
+ * const styles = {
20184
+ * background: hsl(359, 0.75, 0.4),
20185
+ * background: hsl({ hue: 360, saturation: 0.75, lightness: 0.4 }),
20186
+ * }
20187
+ *
20188
+ * // styled-components usage
20189
+ * const div = styled.div`
20190
+ * background: ${hsl(359, 0.75, 0.4)};
20191
+ * background: ${hsl({ hue: 360, saturation: 0.75, lightness: 0.4 })};
20192
+ * `
20193
+ *
20194
+ * // CSS in JS Output
20195
+ *
20196
+ * element {
20197
+ * background: "#b3191c";
20198
+ * background: "#b3191c";
20199
+ * }
20200
+ */
20201
+ function hsl(value, saturation, lightness) {
20202
+ if (typeof value === 'number' && typeof saturation === 'number' && typeof lightness === 'number') {
20203
+ return hslToHex(value, saturation, lightness);
20204
+ } else if (typeof value === 'object' && saturation === undefined && lightness === undefined) {
20205
+ return hslToHex(value.hue, value.saturation, value.lightness);
20206
+ }
20207
+ throw new PolishedError(1);
20208
+ }
20209
+
20210
+ /**
20211
+ * Returns a string value for the color. The returned result is the smallest possible rgba or hex notation.
20212
+ *
20213
+ * @example
20214
+ * // Styles as object usage
20215
+ * const styles = {
20216
+ * background: hsla(359, 0.75, 0.4, 0.7),
20217
+ * background: hsla({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0,7 }),
20218
+ * background: hsla(359, 0.75, 0.4, 1),
20219
+ * }
20220
+ *
20221
+ * // styled-components usage
20222
+ * const div = styled.div`
20223
+ * background: ${hsla(359, 0.75, 0.4, 0.7)};
20224
+ * background: ${hsla({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0,7 })};
20225
+ * background: ${hsla(359, 0.75, 0.4, 1)};
20226
+ * `
20227
+ *
20228
+ * // CSS in JS Output
20229
+ *
20230
+ * element {
20231
+ * background: "rgba(179,25,28,0.7)";
20232
+ * background: "rgba(179,25,28,0.7)";
20233
+ * background: "#b3191c";
20234
+ * }
20235
+ */
20236
+ function hsla$1(value, saturation, lightness, alpha) {
20237
+ if (typeof value === 'number' && typeof saturation === 'number' && typeof lightness === 'number' && typeof alpha === 'number') {
20238
+ return alpha >= 1 ? hslToHex(value, saturation, lightness) : "rgba(" + hslToRgb(value, saturation, lightness) + "," + alpha + ")";
20239
+ } else if (typeof value === 'object' && saturation === undefined && lightness === undefined && alpha === undefined) {
20240
+ return value.alpha >= 1 ? hslToHex(value.hue, value.saturation, value.lightness) : "rgba(" + hslToRgb(value.hue, value.saturation, value.lightness) + "," + value.alpha + ")";
20241
+ }
20242
+ throw new PolishedError(2);
20243
+ }
20244
+
20151
20245
  /**
20152
20246
  * Returns a string value for the color. The returned result is the smallest possible hex notation.
20153
20247
  *
@@ -20177,7 +20271,6 @@ function rgb(value, green, blue) {
20177
20271
  } else if (typeof value === 'object' && green === undefined && blue === undefined) {
20178
20272
  return reduceHexValue$1("#" + numberToHex(value.red) + numberToHex(value.green) + numberToHex(value.blue));
20179
20273
  }
20180
-
20181
20274
  throw new PolishedError(6);
20182
20275
  }
20183
20276
 
@@ -20224,10 +20317,62 @@ function rgba$1(firstValue, secondValue, thirdValue, fourthValue) {
20224
20317
  } else if (typeof firstValue === 'object' && secondValue === undefined && thirdValue === undefined && fourthValue === undefined) {
20225
20318
  return firstValue.alpha >= 1 ? rgb(firstValue.red, firstValue.green, firstValue.blue) : "rgba(" + firstValue.red + "," + firstValue.green + "," + firstValue.blue + "," + firstValue.alpha + ")";
20226
20319
  }
20227
-
20228
20320
  throw new PolishedError(7);
20229
20321
  }
20230
20322
 
20323
+ var isRgb = function isRgb(color) {
20324
+ return typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number' && (typeof color.alpha !== 'number' || typeof color.alpha === 'undefined');
20325
+ };
20326
+ var isRgba$1 = function isRgba(color) {
20327
+ return typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number' && typeof color.alpha === 'number';
20328
+ };
20329
+ var isHsl = function isHsl(color) {
20330
+ return typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number' && (typeof color.alpha !== 'number' || typeof color.alpha === 'undefined');
20331
+ };
20332
+ var isHsla$1 = function isHsla(color) {
20333
+ return typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number' && typeof color.alpha === 'number';
20334
+ };
20335
+
20336
+ /**
20337
+ * Converts a RgbColor, RgbaColor, HslColor or HslaColor object to a color string.
20338
+ * This util is useful in case you only know on runtime which color object is
20339
+ * used. Otherwise we recommend to rely on `rgb`, `rgba`, `hsl` or `hsla`.
20340
+ *
20341
+ * @example
20342
+ * // Styles as object usage
20343
+ * const styles = {
20344
+ * background: toColorString({ red: 255, green: 205, blue: 100 }),
20345
+ * background: toColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 }),
20346
+ * background: toColorString({ hue: 240, saturation: 1, lightness: 0.5 }),
20347
+ * background: toColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 }),
20348
+ * }
20349
+ *
20350
+ * // styled-components usage
20351
+ * const div = styled.div`
20352
+ * background: ${toColorString({ red: 255, green: 205, blue: 100 })};
20353
+ * background: ${toColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 })};
20354
+ * background: ${toColorString({ hue: 240, saturation: 1, lightness: 0.5 })};
20355
+ * background: ${toColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 })};
20356
+ * `
20357
+ *
20358
+ * // CSS in JS Output
20359
+ * element {
20360
+ * background: "#ffcd64";
20361
+ * background: "rgba(255,205,100,0.72)";
20362
+ * background: "#00f";
20363
+ * background: "rgba(179,25,25,0.72)";
20364
+ * }
20365
+ */
20366
+
20367
+ function toColorString(color) {
20368
+ if (typeof color !== 'object') throw new PolishedError(8);
20369
+ if (isRgba$1(color)) return rgba$1(color);
20370
+ if (isRgb(color)) return rgb(color);
20371
+ if (isHsla$1(color)) return hsla$1(color);
20372
+ if (isHsl(color)) return hsl(color);
20373
+ throw new PolishedError(8);
20374
+ }
20375
+
20231
20376
  // Type definitions taken from https://github.com/gcanti/flow-static-land/blob/master/src/Fun.js
20232
20377
  // eslint-disable-next-line no-unused-vars
20233
20378
  // eslint-disable-next-line no-unused-vars
@@ -20238,14 +20383,156 @@ function curried(f, length, acc) {
20238
20383
  var combined = acc.concat(Array.prototype.slice.call(arguments));
20239
20384
  return combined.length >= length ? f.apply(this, combined) : curried(f, length, combined);
20240
20385
  };
20241
- } // eslint-disable-next-line no-redeclare
20242
-
20386
+ }
20243
20387
 
20388
+ // eslint-disable-next-line no-redeclare
20244
20389
  function curry(f) {
20245
20390
  // eslint-disable-line no-redeclare
20246
20391
  return curried(f, f.length, []);
20247
20392
  }
20248
20393
 
20394
+ /**
20395
+ * Changes the hue of the color. Hue is a number between 0 to 360. The first
20396
+ * argument for adjustHue is the amount of degrees the color is rotated around
20397
+ * the color wheel, always producing a positive hue value.
20398
+ *
20399
+ * @example
20400
+ * // Styles as object usage
20401
+ * const styles = {
20402
+ * background: adjustHue(180, '#448'),
20403
+ * background: adjustHue('180', 'rgba(101,100,205,0.7)'),
20404
+ * }
20405
+ *
20406
+ * // styled-components usage
20407
+ * const div = styled.div`
20408
+ * background: ${adjustHue(180, '#448')};
20409
+ * background: ${adjustHue('180', 'rgba(101,100,205,0.7)')};
20410
+ * `
20411
+ *
20412
+ * // CSS in JS Output
20413
+ * element {
20414
+ * background: "#888844";
20415
+ * background: "rgba(136,136,68,0.7)";
20416
+ * }
20417
+ */
20418
+ function adjustHue(degree, color) {
20419
+ if (color === 'transparent') return color;
20420
+ var hslColor = parseToHsl(color);
20421
+ return toColorString(_extends$1({}, hslColor, {
20422
+ hue: hslColor.hue + parseFloat(degree)
20423
+ }));
20424
+ }
20425
+
20426
+ // prettier-ignore
20427
+ var curriedAdjustHue = curry /* ::<number | string, string, string> */(adjustHue);
20428
+
20429
+ function guard(lowerBoundary, upperBoundary, value) {
20430
+ return Math.max(lowerBoundary, Math.min(upperBoundary, value));
20431
+ }
20432
+
20433
+ /**
20434
+ * Returns a string value for the darkened color.
20435
+ *
20436
+ * @example
20437
+ * // Styles as object usage
20438
+ * const styles = {
20439
+ * background: darken(0.2, '#FFCD64'),
20440
+ * background: darken('0.2', 'rgba(255,205,100,0.7)'),
20441
+ * }
20442
+ *
20443
+ * // styled-components usage
20444
+ * const div = styled.div`
20445
+ * background: ${darken(0.2, '#FFCD64')};
20446
+ * background: ${darken('0.2', 'rgba(255,205,100,0.7)')};
20447
+ * `
20448
+ *
20449
+ * // CSS in JS Output
20450
+ *
20451
+ * element {
20452
+ * background: "#ffbd31";
20453
+ * background: "rgba(255,189,49,0.7)";
20454
+ * }
20455
+ */
20456
+ function darken(amount, color) {
20457
+ if (color === 'transparent') return color;
20458
+ var hslColor = parseToHsl(color);
20459
+ return toColorString(_extends$1({}, hslColor, {
20460
+ lightness: guard(0, 1, hslColor.lightness - parseFloat(amount))
20461
+ }));
20462
+ }
20463
+
20464
+ // prettier-ignore
20465
+ var curriedDarken = curry /* ::<number | string, string, string> */(darken);
20466
+
20467
+ /**
20468
+ * Decreases the intensity of a color. Its range is between 0 to 1. The first
20469
+ * argument of the desaturate function is the amount by how much the color
20470
+ * intensity should be decreased.
20471
+ *
20472
+ * @example
20473
+ * // Styles as object usage
20474
+ * const styles = {
20475
+ * background: desaturate(0.2, '#CCCD64'),
20476
+ * background: desaturate('0.2', 'rgba(204,205,100,0.7)'),
20477
+ * }
20478
+ *
20479
+ * // styled-components usage
20480
+ * const div = styled.div`
20481
+ * background: ${desaturate(0.2, '#CCCD64')};
20482
+ * background: ${desaturate('0.2', 'rgba(204,205,100,0.7)')};
20483
+ * `
20484
+ *
20485
+ * // CSS in JS Output
20486
+ * element {
20487
+ * background: "#b8b979";
20488
+ * background: "rgba(184,185,121,0.7)";
20489
+ * }
20490
+ */
20491
+ function desaturate(amount, color) {
20492
+ if (color === 'transparent') return color;
20493
+ var hslColor = parseToHsl(color);
20494
+ return toColorString(_extends$1({}, hslColor, {
20495
+ saturation: guard(0, 1, hslColor.saturation - parseFloat(amount))
20496
+ }));
20497
+ }
20498
+
20499
+ // prettier-ignore
20500
+ var curriedDesaturate = curry /* ::<number | string, string, string> */(desaturate);
20501
+
20502
+ /**
20503
+ * Returns a string value for the lightened color.
20504
+ *
20505
+ * @example
20506
+ * // Styles as object usage
20507
+ * const styles = {
20508
+ * background: lighten(0.2, '#CCCD64'),
20509
+ * background: lighten('0.2', 'rgba(204,205,100,0.7)'),
20510
+ * }
20511
+ *
20512
+ * // styled-components usage
20513
+ * const div = styled.div`
20514
+ * background: ${lighten(0.2, '#FFCD64')};
20515
+ * background: ${lighten('0.2', 'rgba(204,205,100,0.7)')};
20516
+ * `
20517
+ *
20518
+ * // CSS in JS Output
20519
+ *
20520
+ * element {
20521
+ * background: "#e5e6b1";
20522
+ * background: "rgba(229,230,177,0.7)";
20523
+ * }
20524
+ */
20525
+ function lighten(amount, color) {
20526
+ if (color === 'transparent') return color;
20527
+ var hslColor = parseToHsl(color);
20528
+ return toColorString(_extends$1({}, hslColor, {
20529
+ lightness: guard(0, 1, hslColor.lightness + parseFloat(amount))
20530
+ }));
20531
+ }
20532
+
20533
+ // prettier-ignore
20534
+ var curriedLighten = curry /* ::<number | string, string, string> */(lighten);
20535
+
20249
20536
  /**
20250
20537
  * Mixes the two provided colors together by calculating the average of each of the RGB components weighted to the first color by the provided weight.
20251
20538
  *
@@ -20272,25 +20559,21 @@ function curry(f) {
20272
20559
  * background: "rgba(63, 0, 191, 0.75)";
20273
20560
  * }
20274
20561
  */
20275
-
20276
20562
  function mix$1(weight, color, otherColor) {
20277
20563
  if (color === 'transparent') return otherColor;
20278
20564
  if (otherColor === 'transparent') return color;
20279
20565
  if (weight === 0) return otherColor;
20280
20566
  var parsedColor1 = parseToRgb(color);
20281
-
20282
20567
  var color1 = _extends$1({}, parsedColor1, {
20283
20568
  alpha: typeof parsedColor1.alpha === 'number' ? parsedColor1.alpha : 1
20284
20569
  });
20285
-
20286
20570
  var parsedColor2 = parseToRgb(otherColor);
20287
-
20288
20571
  var color2 = _extends$1({}, parsedColor2, {
20289
20572
  alpha: typeof parsedColor2.alpha === 'number' ? parsedColor2.alpha : 1
20290
- }); // The formula is copied from the original Sass implementation:
20291
- // http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method
20292
-
20573
+ });
20293
20574
 
20575
+ // The formula is copied from the original Sass implementation:
20576
+ // http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method
20294
20577
  var alphaDelta = color1.alpha - color2.alpha;
20295
20578
  var x = parseFloat(weight) * 2 - 1;
20296
20579
  var y = x * alphaDelta === -1 ? x : x + alphaDelta;
@@ -20304,14 +20587,218 @@ function mix$1(weight, color, otherColor) {
20304
20587
  alpha: color1.alpha * parseFloat(weight) + color2.alpha * (1 - parseFloat(weight))
20305
20588
  };
20306
20589
  return rgba$1(mixedColor);
20307
- } // prettier-ignore
20308
-
20590
+ }
20309
20591
 
20310
- var curriedMix = /*#__PURE__*/curry
20311
- /* ::<number | string, string, string, string> */
20312
- (mix$1);
20592
+ // prettier-ignore
20593
+ var curriedMix = curry /* ::<number | string, string, string, string> */(mix$1);
20313
20594
  var mix$1$1 = curriedMix;
20314
20595
 
20596
+ /**
20597
+ * Increases the opacity of a color. Its range for the amount is between 0 to 1.
20598
+ *
20599
+ *
20600
+ * @example
20601
+ * // Styles as object usage
20602
+ * const styles = {
20603
+ * background: opacify(0.1, 'rgba(255, 255, 255, 0.9)');
20604
+ * background: opacify(0.2, 'hsla(0, 0%, 100%, 0.5)'),
20605
+ * background: opacify('0.5', 'rgba(255, 0, 0, 0.2)'),
20606
+ * }
20607
+ *
20608
+ * // styled-components usage
20609
+ * const div = styled.div`
20610
+ * background: ${opacify(0.1, 'rgba(255, 255, 255, 0.9)')};
20611
+ * background: ${opacify(0.2, 'hsla(0, 0%, 100%, 0.5)')},
20612
+ * background: ${opacify('0.5', 'rgba(255, 0, 0, 0.2)')},
20613
+ * `
20614
+ *
20615
+ * // CSS in JS Output
20616
+ *
20617
+ * element {
20618
+ * background: "#fff";
20619
+ * background: "rgba(255,255,255,0.7)";
20620
+ * background: "rgba(255,0,0,0.7)";
20621
+ * }
20622
+ */
20623
+ function opacify(amount, color) {
20624
+ if (color === 'transparent') return color;
20625
+ var parsedColor = parseToRgb(color);
20626
+ var alpha = typeof parsedColor.alpha === 'number' ? parsedColor.alpha : 1;
20627
+ var colorWithAlpha = _extends$1({}, parsedColor, {
20628
+ alpha: guard(0, 1, (alpha * 100 + parseFloat(amount) * 100) / 100)
20629
+ });
20630
+ return rgba$1(colorWithAlpha);
20631
+ }
20632
+
20633
+ // prettier-ignore
20634
+ var curriedOpacify = curry /* ::<number | string, string, string> */(opacify);
20635
+
20636
+ /**
20637
+ * Increases the intensity of a color. Its range is between 0 to 1. The first
20638
+ * argument of the saturate function is the amount by how much the color
20639
+ * intensity should be increased.
20640
+ *
20641
+ * @example
20642
+ * // Styles as object usage
20643
+ * const styles = {
20644
+ * background: saturate(0.2, '#CCCD64'),
20645
+ * background: saturate('0.2', 'rgba(204,205,100,0.7)'),
20646
+ * }
20647
+ *
20648
+ * // styled-components usage
20649
+ * const div = styled.div`
20650
+ * background: ${saturate(0.2, '#FFCD64')};
20651
+ * background: ${saturate('0.2', 'rgba(204,205,100,0.7)')};
20652
+ * `
20653
+ *
20654
+ * // CSS in JS Output
20655
+ *
20656
+ * element {
20657
+ * background: "#e0e250";
20658
+ * background: "rgba(224,226,80,0.7)";
20659
+ * }
20660
+ */
20661
+ function saturate(amount, color) {
20662
+ if (color === 'transparent') return color;
20663
+ var hslColor = parseToHsl(color);
20664
+ return toColorString(_extends$1({}, hslColor, {
20665
+ saturation: guard(0, 1, hslColor.saturation + parseFloat(amount))
20666
+ }));
20667
+ }
20668
+
20669
+ // prettier-ignore
20670
+ var curriedSaturate = curry /* ::<number | string, string, string> */(saturate);
20671
+
20672
+ /**
20673
+ * Sets the hue of a color to the provided value. The hue range can be
20674
+ * from 0 and 359.
20675
+ *
20676
+ * @example
20677
+ * // Styles as object usage
20678
+ * const styles = {
20679
+ * background: setHue(42, '#CCCD64'),
20680
+ * background: setHue('244', 'rgba(204,205,100,0.7)'),
20681
+ * }
20682
+ *
20683
+ * // styled-components usage
20684
+ * const div = styled.div`
20685
+ * background: ${setHue(42, '#CCCD64')};
20686
+ * background: ${setHue('244', 'rgba(204,205,100,0.7)')};
20687
+ * `
20688
+ *
20689
+ * // CSS in JS Output
20690
+ * element {
20691
+ * background: "#cdae64";
20692
+ * background: "rgba(107,100,205,0.7)";
20693
+ * }
20694
+ */
20695
+ function setHue(hue, color) {
20696
+ if (color === 'transparent') return color;
20697
+ return toColorString(_extends$1({}, parseToHsl(color), {
20698
+ hue: parseFloat(hue)
20699
+ }));
20700
+ }
20701
+
20702
+ // prettier-ignore
20703
+ var curriedSetHue = curry /* ::<number | string, string, string> */(setHue);
20704
+
20705
+ /**
20706
+ * Sets the lightness of a color to the provided value. The lightness range can be
20707
+ * from 0 and 1.
20708
+ *
20709
+ * @example
20710
+ * // Styles as object usage
20711
+ * const styles = {
20712
+ * background: setLightness(0.2, '#CCCD64'),
20713
+ * background: setLightness('0.75', 'rgba(204,205,100,0.7)'),
20714
+ * }
20715
+ *
20716
+ * // styled-components usage
20717
+ * const div = styled.div`
20718
+ * background: ${setLightness(0.2, '#CCCD64')};
20719
+ * background: ${setLightness('0.75', 'rgba(204,205,100,0.7)')};
20720
+ * `
20721
+ *
20722
+ * // CSS in JS Output
20723
+ * element {
20724
+ * background: "#4d4d19";
20725
+ * background: "rgba(223,224,159,0.7)";
20726
+ * }
20727
+ */
20728
+ function setLightness(lightness, color) {
20729
+ if (color === 'transparent') return color;
20730
+ return toColorString(_extends$1({}, parseToHsl(color), {
20731
+ lightness: parseFloat(lightness)
20732
+ }));
20733
+ }
20734
+
20735
+ // prettier-ignore
20736
+ var curriedSetLightness = curry /* ::<number | string, string, string> */(setLightness);
20737
+
20738
+ /**
20739
+ * Sets the saturation of a color to the provided value. The saturation range can be
20740
+ * from 0 and 1.
20741
+ *
20742
+ * @example
20743
+ * // Styles as object usage
20744
+ * const styles = {
20745
+ * background: setSaturation(0.2, '#CCCD64'),
20746
+ * background: setSaturation('0.75', 'rgba(204,205,100,0.7)'),
20747
+ * }
20748
+ *
20749
+ * // styled-components usage
20750
+ * const div = styled.div`
20751
+ * background: ${setSaturation(0.2, '#CCCD64')};
20752
+ * background: ${setSaturation('0.75', 'rgba(204,205,100,0.7)')};
20753
+ * `
20754
+ *
20755
+ * // CSS in JS Output
20756
+ * element {
20757
+ * background: "#adad84";
20758
+ * background: "rgba(228,229,76,0.7)";
20759
+ * }
20760
+ */
20761
+ function setSaturation(saturation, color) {
20762
+ if (color === 'transparent') return color;
20763
+ return toColorString(_extends$1({}, parseToHsl(color), {
20764
+ saturation: parseFloat(saturation)
20765
+ }));
20766
+ }
20767
+
20768
+ // prettier-ignore
20769
+ var curriedSetSaturation = curry /* ::<number | string, string, string> */(setSaturation);
20770
+
20771
+ /**
20772
+ * Shades a color by mixing it with black. `shade` can produce
20773
+ * hue shifts, where as `darken` manipulates the luminance channel and therefore
20774
+ * doesn't produce hue shifts.
20775
+ *
20776
+ * @example
20777
+ * // Styles as object usage
20778
+ * const styles = {
20779
+ * background: shade(0.25, '#00f')
20780
+ * }
20781
+ *
20782
+ * // styled-components usage
20783
+ * const div = styled.div`
20784
+ * background: ${shade(0.25, '#00f')};
20785
+ * `
20786
+ *
20787
+ * // CSS in JS Output
20788
+ *
20789
+ * element {
20790
+ * background: "#00003f";
20791
+ * }
20792
+ */
20793
+
20794
+ function shade(percentage, color) {
20795
+ if (color === 'transparent') return color;
20796
+ return mix$1$1(parseFloat(percentage), 'rgb(0, 0, 0)', color);
20797
+ }
20798
+
20799
+ // prettier-ignore
20800
+ var curriedShade = curry /* ::<number | string, string, string> */(shade);
20801
+
20315
20802
  /**
20316
20803
  * Tints a color by mixing it with white. `tint` can produce
20317
20804
  * hue shifts, where as `lighten` manipulates the luminance channel and therefore
@@ -20338,14 +20825,52 @@ var mix$1$1 = curriedMix;
20338
20825
  function tint(percentage, color) {
20339
20826
  if (color === 'transparent') return color;
20340
20827
  return mix$1$1(parseFloat(percentage), 'rgb(255, 255, 255)', color);
20341
- } // prettier-ignore
20342
-
20828
+ }
20343
20829
 
20344
- var curriedTint = /*#__PURE__*/curry
20345
- /* ::<number | string, string, string> */
20346
- (tint);
20830
+ // prettier-ignore
20831
+ var curriedTint = curry /* ::<number | string, string, string> */(tint);
20347
20832
  var curriedTint$1 = curriedTint;
20348
20833
 
20834
+ /**
20835
+ * Decreases the opacity of a color. Its range for the amount is between 0 to 1.
20836
+ *
20837
+ *
20838
+ * @example
20839
+ * // Styles as object usage
20840
+ * const styles = {
20841
+ * background: transparentize(0.1, '#fff'),
20842
+ * background: transparentize(0.2, 'hsl(0, 0%, 100%)'),
20843
+ * background: transparentize('0.5', 'rgba(255, 0, 0, 0.8)'),
20844
+ * }
20845
+ *
20846
+ * // styled-components usage
20847
+ * const div = styled.div`
20848
+ * background: ${transparentize(0.1, '#fff')};
20849
+ * background: ${transparentize(0.2, 'hsl(0, 0%, 100%)')};
20850
+ * background: ${transparentize('0.5', 'rgba(255, 0, 0, 0.8)')};
20851
+ * `
20852
+ *
20853
+ * // CSS in JS Output
20854
+ *
20855
+ * element {
20856
+ * background: "rgba(255,255,255,0.9)";
20857
+ * background: "rgba(255,255,255,0.8)";
20858
+ * background: "rgba(255,0,0,0.3)";
20859
+ * }
20860
+ */
20861
+ function transparentize(amount, color) {
20862
+ if (color === 'transparent') return color;
20863
+ var parsedColor = parseToRgb(color);
20864
+ var alpha = typeof parsedColor.alpha === 'number' ? parsedColor.alpha : 1;
20865
+ var colorWithAlpha = _extends$1({}, parsedColor, {
20866
+ alpha: guard(0, 1, +(alpha * 100 - parseFloat(amount) * 100).toFixed(2) / 100)
20867
+ });
20868
+ return rgba$1(colorWithAlpha);
20869
+ }
20870
+
20871
+ // prettier-ignore
20872
+ var curriedTransparentize = curry /* ::<number | string, string, string> */(transparentize);
20873
+
20349
20874
  var linkColor = MATISSE_BLUE;
20350
20875
  var fallbackValues$8 = {
20351
20876
  linkColor: linkColor
@@ -23035,32 +23560,19 @@ var toIndexedObject = function (it) {
23035
23560
  return indexedObject(requireObjectCoercible(it));
23036
23561
  };
23037
23562
 
23038
- var documentAll = typeof document == 'object' && document.all;
23039
-
23040
23563
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
23041
- // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
23042
- var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
23043
-
23044
- var documentAll_1 = {
23045
- all: documentAll,
23046
- IS_HTMLDDA: IS_HTMLDDA
23047
- };
23048
-
23049
- var documentAll$1 = documentAll_1.all;
23564
+ var documentAll = typeof document == 'object' && document.all;
23050
23565
 
23051
23566
  // `IsCallable` abstract operation
23052
23567
  // https://tc39.es/ecma262/#sec-iscallable
23053
- var isCallable = documentAll_1.IS_HTMLDDA ? function (argument) {
23054
- return typeof argument == 'function' || argument === documentAll$1;
23568
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
23569
+ var isCallable = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
23570
+ return typeof argument == 'function' || argument === documentAll;
23055
23571
  } : function (argument) {
23056
23572
  return typeof argument == 'function';
23057
23573
  };
23058
23574
 
23059
- var documentAll$2 = documentAll_1.all;
23060
-
23061
- var isObject = documentAll_1.IS_HTMLDDA ? function (it) {
23062
- return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll$2;
23063
- } : function (it) {
23575
+ var isObject = function (it) {
23064
23576
  return typeof it == 'object' ? it !== null : isCallable(it);
23065
23577
  };
23066
23578
 
@@ -23196,10 +23708,10 @@ var shared = createCommonjsModule(function (module) {
23196
23708
  (module.exports = function (key, value) {
23197
23709
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
23198
23710
  })('versions', []).push({
23199
- version: '3.33.3',
23711
+ version: '3.35.1',
23200
23712
  mode: 'global',
23201
- copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
23202
- license: 'https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE',
23713
+ copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
23714
+ license: 'https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE',
23203
23715
  source: 'https://github.com/zloirock/core-js'
23204
23716
  });
23205
23717
  });
@@ -23496,7 +24008,7 @@ var TEMPLATE = String(String).split('String');
23496
24008
 
23497
24009
  var makeBuiltIn = module.exports = function (value, name, options) {
23498
24010
  if (stringSlice($String(name), 0, 7) === 'Symbol(') {
23499
- name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
24011
+ name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
23500
24012
  }
23501
24013
  if (options && options.getter) name = 'get ' + name;
23502
24014
  if (options && options.setter) name = 'set ' + name;
@@ -23584,7 +24096,8 @@ var min$1 = Math.min;
23584
24096
  // `ToLength` abstract operation
23585
24097
  // https://tc39.es/ecma262/#sec-tolength
23586
24098
  var toLength = function (argument) {
23587
- return argument > 0 ? min$1(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
24099
+ var len = toIntegerOrInfinity(argument);
24100
+ return len > 0 ? min$1(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
23588
24101
  };
23589
24102
 
23590
24103
  // `LengthOfArrayLike` abstract operation
@@ -23744,7 +24257,7 @@ var _export = function (options, source) {
23744
24257
  } else if (STATIC) {
23745
24258
  target = global_1[TARGET] || defineGlobalProperty(TARGET, {});
23746
24259
  } else {
23747
- target = (global_1[TARGET] || {}).prototype;
24260
+ target = global_1[TARGET] && global_1[TARGET].prototype;
23748
24261
  }
23749
24262
  if (target) for (key in source) {
23750
24263
  sourceProperty = source[key];
@@ -24007,11 +24520,15 @@ var functionUncurryThisAccessor = function (object, key, method) {
24007
24520
  } catch (error) { /* empty */ }
24008
24521
  };
24009
24522
 
24523
+ var isPossiblePrototype = function (argument) {
24524
+ return isObject(argument) || argument === null;
24525
+ };
24526
+
24010
24527
  var $String$4 = String;
24011
24528
  var $TypeError$6 = TypeError;
24012
24529
 
24013
24530
  var aPossiblePrototype = function (argument) {
24014
- if (typeof argument == 'object' || isCallable(argument)) return argument;
24531
+ if (isPossiblePrototype(argument)) return argument;
24015
24532
  throw new $TypeError$6("Can't set " + $String$4(argument) + ' as a prototype');
24016
24533
  };
24017
24534
 
@@ -24559,7 +25076,7 @@ var Dropdown = function Dropdown(_ref13) {
24559
25076
  setInputChangedByAutofill(true);
24560
25077
  }
24561
25078
  },
24562
- padding: "12px",
25079
+ padding: "12px 25px 12px 12px",
24563
25080
  placeholder: getSelection(),
24564
25081
  required: options.required || isRequired,
24565
25082
  role: "combobox",
@@ -45488,9 +46005,9 @@ var CloseIconButton = function CloseIconButton(_ref) {
45488
46005
  _ref$hideModal = _ref.hideModal,
45489
46006
  hideModal = _ref$hideModal === void 0 ? noop : _ref$hideModal,
45490
46007
  _ref$iconWidth = _ref.iconWidth,
45491
- iconWidth = _ref$iconWidth === void 0 ? "24" : _ref$iconWidth,
46008
+ iconWidth = _ref$iconWidth === void 0 ? "24px" : _ref$iconWidth,
45492
46009
  _ref$iconHeight = _ref.iconHeight,
45493
- iconHeight = _ref$iconHeight === void 0 ? "24" : _ref$iconHeight,
46010
+ iconHeight = _ref$iconHeight === void 0 ? "24px" : _ref$iconHeight,
45494
46011
  _ref$ariaLabel = _ref.ariaLabel,
45495
46012
  ariaLabel = _ref$ariaLabel === void 0 ? "Close Modal" : _ref$ariaLabel;
45496
46013
  return /*#__PURE__*/React__default.createElement(ButtonWithAction, {
@@ -45690,7 +46207,9 @@ var Modal$2 = function Modal(_ref) {
45690
46207
  weight: FONT_WEIGHT_SEMIBOLD,
45691
46208
  fontSize: isMobile ? FONT_SIZE.MD : FONT_SIZE.LG
45692
46209
  }, modalHeaderText), showCloseIconButton && /*#__PURE__*/React__default.createElement(CloseIconButton, {
45693
- hideModal: hideModal
46210
+ hideModal: hideModal,
46211
+ iconHeight: isMobile ? "20px" : "24px",
46212
+ iconWidth: isMobile ? "20px" : "24px"
45694
46213
  }))), /*#__PURE__*/React__default.createElement(Box, {
45695
46214
  background: modalBodyBg || ATHENS_GREY,
45696
46215
  padding: "0"
@@ -46235,10 +46754,8 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
46235
46754
  width: "100%"
46236
46755
  }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
46237
46756
  isLoading: isLoading,
46238
- action: function action() {
46239
- return disableActions ? noop : function () {
46240
- return handleClick(obligations);
46241
- };
46757
+ action: disableActions ? noop : function () {
46758
+ return handleClick(obligations);
46242
46759
  },
46243
46760
  text: "Pay Now",
46244
46761
  variant: isMobile ? "smallSecondary" : "secondary",
@@ -47980,7 +48497,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
47980
48497
  }
47981
48498
  }, []);
47982
48499
  var nameOnCardErrors = _defineProperty({}, required.error, "Name is required");
47983
- var creditCardNumberErrors = _defineProperty(_defineProperty(_defineProperty({}, required.error, "Credit card number is required"), hasLength.error, "Credit card number is invalid"), matchesRegex.error, "".concat(displayCardBrand(fields.creditCardNumber.rawValue), " is not accepted"));
48500
+ var creditCardNumberErrors = _defineProperty(_defineProperty(_defineProperty({}, required.error, "Credit card number is required"), hasLength.error, "Credit card number is invalid"), matchesRegex.error, "".concat(displayCardBrand(fields.creditCardNumber.rawValue), " cards are not available for payment"));
47984
48501
  var expirationDateErrors = _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, required.error, "Expiration date is required"), hasLength.error, "Expiration date is invalid"), isValidMonth.error, "Expiration month is invalid"), dateAfterToday.error, "Expiration date is invalid");
47985
48502
  var cvvErrors = _defineProperty(_defineProperty({}, required.error, "CVV is required"), hasLength.error, "CVV is invalid");
47986
48503
  var zipCodeErrors = _defineProperty(_defineProperty({}, required.error, "Zip code is required"), hasLength.error, "Zip code is invalid");
@@ -48788,16 +49305,9 @@ RegistrationForm.reducer = reducer$9;
48788
49305
  RegistrationForm.mapStateToProps = mapStateToProps$a;
48789
49306
  RegistrationForm.mapDispatchToProps = mapDispatchToProps$9;
48790
49307
 
48791
- var GRECIAN_GREY$1 = GRECIAN_GREY;
48792
- var bannerBackgroundColor = GRECIAN_GREY$1;
48793
- var fallbackValues$R = {
48794
- bannerBackgroundColor: bannerBackgroundColor
48795
- };
48796
-
48797
49308
  var ResetConfirmationForm = function ResetConfirmationForm() {
48798
- var themeContext = React.useContext(styled.ThemeContext);
48799
- var themeValues = createThemeValues(themeContext, fallbackValues$R, "ResetConfirmationForm");
48800
- var isMobile = themeContext.isMobile;
49309
+ var _useContext = React.useContext(styled.ThemeContext),
49310
+ isMobile = _useContext.isMobile;
48801
49311
  return /*#__PURE__*/React__default.createElement(Box, {
48802
49312
  padding: "0",
48803
49313
  width: isMobile ? "auto" : "576px",
@@ -48805,7 +49315,7 @@ var ResetConfirmationForm = function ResetConfirmationForm() {
48805
49315
  background: WHITE,
48806
49316
  boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)"
48807
49317
  }, /*#__PURE__*/React__default.createElement(Box, {
48808
- background: themeValues.bannerBackgroundColor,
49318
+ background: GRECIAN_GREY,
48809
49319
  minWidth: "100%",
48810
49320
  padding: "0.5rem"
48811
49321
  }, /*#__PURE__*/React__default.createElement(Cluster, {
@@ -48909,16 +49419,9 @@ ResetPasswordForm.reducer = reducer$a;
48909
49419
  ResetPasswordForm.mapStateToProps = mapStateToProps$b;
48910
49420
  ResetPasswordForm.mapDispatchToProps = mapDispatchToProps$a;
48911
49421
 
48912
- var GRECIAN_GREY$2 = GRECIAN_GREY;
48913
- var bannerBackgroundColor$1 = GRECIAN_GREY$2;
48914
- var fallbackValues$S = {
48915
- bannerBackgroundColor: bannerBackgroundColor$1
48916
- };
48917
-
48918
- var ResetPasswordSuccess = function ResetPasswordSuccess() {
48919
- var themeContext = React.useContext(styled.ThemeContext);
48920
- var themeValues = createThemeValues(themeContext, fallbackValues$S, "ResetPasswordSuccess");
48921
- var isMobile = themeContext.isMobile;
49422
+ var ResetConfirmationForm$2 = function ResetConfirmationForm() {
49423
+ var _useContext = React.useContext(styled.ThemeContext),
49424
+ isMobile = _useContext.isMobile;
48922
49425
  return /*#__PURE__*/React__default.createElement(Box, {
48923
49426
  padding: "0",
48924
49427
  width: isMobile ? "auto" : "576px",
@@ -48926,7 +49429,7 @@ var ResetPasswordSuccess = function ResetPasswordSuccess() {
48926
49429
  background: WHITE,
48927
49430
  boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)"
48928
49431
  }, /*#__PURE__*/React__default.createElement(Box, {
48929
- background: themeValues.bannerBackgroundColor,
49432
+ background: GRECIAN_GREY,
48930
49433
  minWidth: "100%",
48931
49434
  padding: "0.5rem"
48932
49435
  }, /*#__PURE__*/React__default.createElement(Cluster, {
@@ -48961,12 +49464,12 @@ var ResetPasswordSuccess = function ResetPasswordSuccess() {
48961
49464
  linkExtraStyles: "width: 100%;"
48962
49465
  }))))));
48963
49466
  };
48964
- var ResetPasswordSuccess$1 = withWindowSize(ResetPasswordSuccess);
49467
+ var ResetPasswordSuccess = withWindowSize(ResetConfirmationForm$2);
48965
49468
 
48966
49469
  var activeTabBackground = "#FFFFFF";
48967
49470
  var activeTabAccent = "#15749D";
48968
49471
  var activeTabHover = "#B8D5E1";
48969
- var fallbackValues$T = {
49472
+ var fallbackValues$R = {
48970
49473
  activeTabBackground: activeTabBackground,
48971
49474
  activeTabAccent: activeTabAccent,
48972
49475
  activeTabHover: activeTabHover
@@ -49034,12 +49537,12 @@ var Tabs = function Tabs(_ref) {
49034
49537
  }, tab.content);
49035
49538
  }))));
49036
49539
  };
49037
- var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$T);
49540
+ var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$R);
49038
49541
 
49039
49542
  var activeTabBackground$1 = "#FFFFFF";
49040
49543
  var activeTabAccent$1 = "#15749D";
49041
49544
  var activeTabHover$1 = "#B8D5E1";
49042
- var fallbackValues$U = {
49545
+ var fallbackValues$S = {
49043
49546
  activeTabBackground: activeTabBackground$1,
49044
49547
  activeTabAccent: activeTabAccent$1,
49045
49548
  activeTabHover: activeTabHover$1
@@ -49094,7 +49597,7 @@ var TabSidebar = function TabSidebar(_ref) {
49094
49597
  }, text)))));
49095
49598
  })));
49096
49599
  };
49097
- var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$U);
49600
+ var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$S);
49098
49601
 
49099
49602
  var Timeout = function Timeout(_ref) {
49100
49603
  var onLogout = _ref.onLogout;
@@ -49130,6 +49633,7 @@ var Timeout = function Timeout(_ref) {
49130
49633
  };
49131
49634
  var Timeout$1 = withWindowSize(Timeout);
49132
49635
 
49636
+ var _excluded$F = ["variant", "message", "toastOpen", "closeToastNotification", "extraStyles", "minWidth", "maxWidth", "height", "childGap", "backgroundColor", "role", "ariaLive"];
49133
49637
  var VARIANTS = {
49134
49638
  SUCCESS: "success",
49135
49639
  ERROR: "error"
@@ -49152,9 +49656,15 @@ var ToastNotification = function ToastNotification(_ref) {
49152
49656
  childGap = _ref$childGap === void 0 ? "1rem" : _ref$childGap,
49153
49657
  backgroundColor = _ref.backgroundColor,
49154
49658
  _ref$role = _ref.role,
49155
- role = _ref$role === void 0 ? "alert" : _ref$role;
49156
- return /*#__PURE__*/React__default.createElement(Box, {
49659
+ role = _ref$role === void 0 ? "alert" : _ref$role,
49660
+ _ref$ariaLive = _ref.ariaLive,
49661
+ ariaLive = _ref$ariaLive === void 0 ? "polite" : _ref$ariaLive,
49662
+ rest = _objectWithoutProperties(_ref, _excluded$F);
49663
+ return /*#__PURE__*/React__default.createElement(Box, _extends({
49157
49664
  onClick: closeToastNotification,
49665
+ onKeyDown: function onKeyDown(e) {
49666
+ return e.key === "Enter" && closeToastNotification();
49667
+ },
49158
49668
  background: backgroundColor ? backgroundColor : variant === VARIANTS.SUCCESS ? HINT_GREEN : variant === VARIANTS.ERROR ? ERROR_BACKGROUND_COLOR : WHITE,
49159
49669
  minWidth: minWidth,
49160
49670
  minHeight: height && parseInt(height) < 100 ? height : "100px",
@@ -49164,8 +49674,9 @@ var ToastNotification = function ToastNotification(_ref) {
49164
49674
  borderRadius: "4px",
49165
49675
  boxShadow: generateShadows().standard.base,
49166
49676
  extraStyles: "\n display: ".concat(toastOpen ? "block" : "none", ";\n position: fixed; bottom: 4rem; left: 4rem;\n ").concat(extraStyles, ";\n cursor: pointer;\n "),
49167
- role: role
49168
- }, /*#__PURE__*/React__default.createElement(Cluster, {
49677
+ role: role,
49678
+ "aria-live": ariaLive
49679
+ }, rest), /*#__PURE__*/React__default.createElement(Cluster, {
49169
49680
  align: "center",
49170
49681
  childGap: childGap,
49171
49682
  justify: "space-between"
@@ -49186,7 +49697,7 @@ var fontColor$1 = WHITE;
49186
49697
  var textAlign$1 = "left";
49187
49698
  var headerBackgroundColor$1 = BRIGHT_GREY;
49188
49699
  var imageBackgroundColor$1 = MATISSE_BLUE;
49189
- var fallbackValues$V = {
49700
+ var fallbackValues$T = {
49190
49701
  fontWeight: fontWeight$9,
49191
49702
  fontColor: fontColor$1,
49192
49703
  textAlign: textAlign$1,
@@ -49231,7 +49742,7 @@ var WelcomeModule = function WelcomeModule(_ref) {
49231
49742
  src: welcomeImage
49232
49743
  })))));
49233
49744
  };
49234
- var WelcomeModule$1 = /*#__PURE__*/React.memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$V));
49745
+ var WelcomeModule$1 = /*#__PURE__*/React.memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$T));
49235
49746
 
49236
49747
  var WorkflowTile = function WorkflowTile(_ref) {
49237
49748
  var _ref$workflowName = _ref.workflowName,
@@ -49291,7 +49802,7 @@ var menuItemColorDelete = RAZZMATAZZ_RED;
49291
49802
  var menuItemHoverBackgroundColor = CORNFLOWER_BLUE;
49292
49803
  var menuItemHoverBackgroundColorDelete = BLUSH_RED;
49293
49804
  var menuItemHoverColor = ROYAL_BLUE_VIVID;
49294
- var fallbackValues$W = {
49805
+ var fallbackValues$U = {
49295
49806
  menuItemBackgroundColor: menuItemBackgroundColor,
49296
49807
  menuItemColor: menuItemColor,
49297
49808
  menuItemColorDelete: menuItemColorDelete,
@@ -49313,7 +49824,7 @@ var PopupMenuItemContainer = styled__default(ButtonWithAction).withConfig({
49313
49824
  return "\n background-color: ".concat(isDeleteAction ? theme.menuItemHoverBackgroundColorDelete : theme.menuItemHoverBackgroundColor, ";\n ");
49314
49825
  });
49315
49826
 
49316
- var _excluded$F = ["id", "closeMenuCallback", "action", "themeValues", "text", "hasIcon", "isDeleteAction", "icon", "textExtraStyles", "hoverStyles", "activeStyles", "extraStyles"];
49827
+ var _excluded$G = ["id", "closeMenuCallback", "action", "themeValues", "text", "hasIcon", "isDeleteAction", "icon", "textExtraStyles", "hoverStyles", "activeStyles", "extraStyles"];
49317
49828
  var PopupMenuItem = function PopupMenuItem(_ref) {
49318
49829
  var id = _ref.id,
49319
49830
  closeMenuCallback = _ref.closeMenuCallback,
@@ -49329,7 +49840,7 @@ var PopupMenuItem = function PopupMenuItem(_ref) {
49329
49840
  hoverStyles = _ref.hoverStyles,
49330
49841
  activeStyles = _ref.activeStyles,
49331
49842
  extraStyles = _ref.extraStyles,
49332
- rest = _objectWithoutProperties(_ref, _excluded$F);
49843
+ rest = _objectWithoutProperties(_ref, _excluded$G);
49333
49844
  return /*#__PURE__*/React__default.createElement(PopupMenuItemContainer, _extends({
49334
49845
  id: id,
49335
49846
  role: "menuItem",
@@ -49358,13 +49869,13 @@ var PopupMenuItem = function PopupMenuItem(_ref) {
49358
49869
  extraStyles: textExtraStyles
49359
49870
  }, text)));
49360
49871
  };
49361
- var PopupMenuItem$1 = themeComponent(PopupMenuItem, "PopupMenuItem", fallbackValues$W);
49872
+ var PopupMenuItem$1 = themeComponent(PopupMenuItem, "PopupMenuItem", fallbackValues$U);
49362
49873
 
49363
49874
  var hoverColor$6 = "#116285";
49364
49875
  var activeColor$a = "#0E506D";
49365
49876
  var menuTriggerColor = "#15749D";
49366
49877
  var backgroundColor$e = "white";
49367
- var fallbackValues$X = {
49878
+ var fallbackValues$V = {
49368
49879
  hoverColor: hoverColor$6,
49369
49880
  activeColor: activeColor$a,
49370
49881
  menuTriggerColor: menuTriggerColor,
@@ -49500,10 +50011,10 @@ var PopupMenu = function PopupMenu(_ref) {
49500
50011
  }, item));
49501
50012
  })));
49502
50013
  };
49503
- var PopupMenu$1 = themeComponent(PopupMenu, "PopupMenu", fallbackValues$X);
50014
+ var PopupMenu$1 = themeComponent(PopupMenu, "PopupMenu", fallbackValues$V);
49504
50015
 
49505
50016
  var pageBackground = "#FBFCFD";
49506
- var fallbackValues$Y = {
50017
+ var fallbackValues$W = {
49507
50018
  pageBackground: pageBackground
49508
50019
  };
49509
50020
 
@@ -49551,7 +50062,7 @@ var CenterSingle = function CenterSingle(_ref) {
49551
50062
  padding: "0"
49552
50063
  })));
49553
50064
  };
49554
- var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$Y));
50065
+ var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$W));
49555
50066
 
49556
50067
  var CenterStack = function CenterStack(_ref) {
49557
50068
  var header = _ref.header,
@@ -49594,7 +50105,7 @@ var CenterStack = function CenterStack(_ref) {
49594
50105
  padding: "0"
49595
50106
  })));
49596
50107
  };
49597
- var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$Y));
50108
+ var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$W));
49598
50109
 
49599
50110
  var CenterSingle$2 = function CenterSingle(_ref) {
49600
50111
  var header = _ref.header,
@@ -49640,7 +50151,7 @@ var CenterSingle$2 = function CenterSingle(_ref) {
49640
50151
  padding: "0"
49641
50152
  })));
49642
50153
  };
49643
- var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$Y));
50154
+ var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$W));
49644
50155
 
49645
50156
  var SidebarSingleContent = function SidebarSingleContent(_ref) {
49646
50157
  var header = _ref.header,
@@ -49693,7 +50204,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
49693
50204
  padding: "0"
49694
50205
  })));
49695
50206
  };
49696
- var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$Y));
50207
+ var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$W));
49697
50208
 
49698
50209
  var SidebarStackContent = function SidebarStackContent(_ref) {
49699
50210
  var header = _ref.header,
@@ -49763,7 +50274,7 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
49763
50274
  key: "footer-box"
49764
50275
  })));
49765
50276
  };
49766
- var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$Y));
50277
+ var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$W));
49767
50278
 
49768
50279
  var useFocusInvalidInput = function useFocusInvalidInput(hasErrors) {
49769
50280
  var resetHasErrors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
@@ -49961,7 +50472,7 @@ exports.RejectedVelocityIcon = RejectedVelocityIcon;
49961
50472
  exports.ResetConfirmationForm = ResetConfirmationForm$1;
49962
50473
  exports.ResetPasswordForm = ResetPasswordForm;
49963
50474
  exports.ResetPasswordIcon = ResetPasswordIcon;
49964
- exports.ResetPasswordSuccess = ResetPasswordSuccess$1;
50475
+ exports.ResetPasswordSuccess = ResetPasswordSuccess;
49965
50476
  exports.RevenueManagementImage = RevenueManagementImage;
49966
50477
  exports.RoutingNumberImage = RoutingNumberImage;
49967
50478
  exports.SearchIcon = SearchIcon;