@thecb/components 10.6.9 → 10.6.10-beta.1
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 +135 -652
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +135 -652
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/{components/atoms/.DS_Store → .DS_Store} +0 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/molecules/.DS_Store +0 -0
- package/src/components/molecules/obligation/.DS_Store +0 -0
- package/src/components/molecules/obligation/modules/PaymentDetailsActions.js +3 -1
- package/src/components/molecules/reset-confirmation-form/ResetConfirmatForm.theme.js +9 -0
- package/src/components/molecules/reset-confirmation-form/ResetConfirmationForm.js +15 -3
- package/src/components/molecules/reset-password-success/ResetPasswordSuccess.js +17 -5
- package/src/components/molecules/reset-password-success/ResetPasswordSuccess.theme.js +9 -0
- package/src/components/atoms/icons/.DS_Store +0 -0
package/dist/index.esm.js
CHANGED
|
@@ -19621,6 +19621,7 @@ function _wrapNativeSuper(Class) {
|
|
|
19621
19621
|
}
|
|
19622
19622
|
|
|
19623
19623
|
// based on https://github.com/styled-components/styled-components/blob/fcf6f3804c57a14dd7984dfab7bc06ee2edca044/src/utils/error.js
|
|
19624
|
+
|
|
19624
19625
|
/**
|
|
19625
19626
|
* Parse errors.md and turn it into a simple hash of code: message
|
|
19626
19627
|
* @private
|
|
@@ -19705,71 +19706,84 @@ var ERRORS = {
|
|
|
19705
19706
|
"77": "remToPx expects a value in \"rem\" but you provided it in \"%s\".\n\n",
|
|
19706
19707
|
"78": "base must be set in \"px\" or \"%\" but you set it in \"%s\".\n"
|
|
19707
19708
|
};
|
|
19708
|
-
|
|
19709
19709
|
/**
|
|
19710
19710
|
* super basic version of sprintf
|
|
19711
19711
|
* @private
|
|
19712
19712
|
*/
|
|
19713
|
+
|
|
19713
19714
|
function format() {
|
|
19714
19715
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
19715
19716
|
args[_key] = arguments[_key];
|
|
19716
19717
|
}
|
|
19718
|
+
|
|
19717
19719
|
var a = args[0];
|
|
19718
19720
|
var b = [];
|
|
19719
19721
|
var c;
|
|
19722
|
+
|
|
19720
19723
|
for (c = 1; c < args.length; c += 1) {
|
|
19721
19724
|
b.push(args[c]);
|
|
19722
19725
|
}
|
|
19726
|
+
|
|
19723
19727
|
b.forEach(function (d) {
|
|
19724
19728
|
a = a.replace(/%[a-z]/, d);
|
|
19725
19729
|
});
|
|
19726
19730
|
return a;
|
|
19727
19731
|
}
|
|
19728
|
-
|
|
19729
19732
|
/**
|
|
19730
19733
|
* Create an error file out of errors.md for development and a simple web link to the full errors
|
|
19731
19734
|
* in production mode.
|
|
19732
19735
|
* @private
|
|
19733
19736
|
*/
|
|
19737
|
+
|
|
19738
|
+
|
|
19734
19739
|
var PolishedError = /*#__PURE__*/function (_Error) {
|
|
19735
19740
|
_inheritsLoose(PolishedError, _Error);
|
|
19741
|
+
|
|
19736
19742
|
function PolishedError(code) {
|
|
19737
19743
|
var _this;
|
|
19744
|
+
|
|
19738
19745
|
if (process.env.NODE_ENV === 'production') {
|
|
19739
19746
|
_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;
|
|
19740
19747
|
} else {
|
|
19741
19748
|
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
19742
19749
|
args[_key2 - 1] = arguments[_key2];
|
|
19743
19750
|
}
|
|
19751
|
+
|
|
19744
19752
|
_this = _Error.call(this, format.apply(void 0, [ERRORS[code]].concat(args))) || this;
|
|
19745
19753
|
}
|
|
19754
|
+
|
|
19746
19755
|
return _assertThisInitialized(_this);
|
|
19747
19756
|
}
|
|
19757
|
+
|
|
19748
19758
|
return PolishedError;
|
|
19749
19759
|
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
19750
19760
|
|
|
19751
19761
|
function colorToInt(color) {
|
|
19752
19762
|
return Math.round(color * 255);
|
|
19753
19763
|
}
|
|
19764
|
+
|
|
19754
19765
|
function convertToInt(red, green, blue) {
|
|
19755
19766
|
return colorToInt(red) + "," + colorToInt(green) + "," + colorToInt(blue);
|
|
19756
19767
|
}
|
|
19768
|
+
|
|
19757
19769
|
function hslToRgb(hue, saturation, lightness, convert) {
|
|
19758
19770
|
if (convert === void 0) {
|
|
19759
19771
|
convert = convertToInt;
|
|
19760
19772
|
}
|
|
19773
|
+
|
|
19761
19774
|
if (saturation === 0) {
|
|
19762
19775
|
// achromatic
|
|
19763
19776
|
return convert(lightness, lightness, lightness);
|
|
19764
|
-
}
|
|
19777
|
+
} // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV
|
|
19778
|
+
|
|
19765
19779
|
|
|
19766
|
-
// formulae from https://en.wikipedia.org/wiki/HSL_and_HSV
|
|
19767
19780
|
var huePrime = (hue % 360 + 360) % 360 / 60;
|
|
19768
19781
|
var chroma = (1 - Math.abs(2 * lightness - 1)) * saturation;
|
|
19769
19782
|
var secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));
|
|
19770
19783
|
var red = 0;
|
|
19771
19784
|
var green = 0;
|
|
19772
19785
|
var blue = 0;
|
|
19786
|
+
|
|
19773
19787
|
if (huePrime >= 0 && huePrime < 1) {
|
|
19774
19788
|
red = chroma;
|
|
19775
19789
|
green = secondComponent;
|
|
@@ -19789,6 +19803,7 @@ function hslToRgb(hue, saturation, lightness, convert) {
|
|
|
19789
19803
|
red = chroma;
|
|
19790
19804
|
blue = secondComponent;
|
|
19791
19805
|
}
|
|
19806
|
+
|
|
19792
19807
|
var lightnessModification = lightness - chroma / 2;
|
|
19793
19808
|
var finalRed = red + lightnessModification;
|
|
19794
19809
|
var finalGreen = green + lightnessModification;
|
|
@@ -19946,11 +19961,11 @@ var namedColorMap = {
|
|
|
19946
19961
|
yellow: 'ff0',
|
|
19947
19962
|
yellowgreen: '9acd32'
|
|
19948
19963
|
};
|
|
19949
|
-
|
|
19950
19964
|
/**
|
|
19951
19965
|
* Checks if a string is a CSS named color and returns its equivalent hex value, otherwise returns the original color.
|
|
19952
19966
|
* @private
|
|
19953
19967
|
*/
|
|
19968
|
+
|
|
19954
19969
|
function nameToHex(color) {
|
|
19955
19970
|
if (typeof color !== 'string') return color;
|
|
19956
19971
|
var normalizedColorName = color.toLowerCase();
|
|
@@ -19965,7 +19980,6 @@ var rgbRegex = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\
|
|
|
19965
19980
|
var rgbaRegex = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
|
|
19966
19981
|
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;
|
|
19967
19982
|
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;
|
|
19968
|
-
|
|
19969
19983
|
/**
|
|
19970
19984
|
* Returns an RgbColor or RgbaColor object. This utility function is only useful
|
|
19971
19985
|
* if want to extract a color component. With the color util `toColorString` you
|
|
@@ -19977,11 +19991,14 @@ var hslaRegex = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[
|
|
|
19977
19991
|
* // Assigns `{ red: 92, green: 102, blue: 112, alpha: 0.75 }` to color2
|
|
19978
19992
|
* const color2 = parseToRgb('hsla(210, 10%, 40%, 0.75)');
|
|
19979
19993
|
*/
|
|
19994
|
+
|
|
19980
19995
|
function parseToRgb(color) {
|
|
19981
19996
|
if (typeof color !== 'string') {
|
|
19982
19997
|
throw new PolishedError(3);
|
|
19983
19998
|
}
|
|
19999
|
+
|
|
19984
20000
|
var normalizedColor = nameToHex(color);
|
|
20001
|
+
|
|
19985
20002
|
if (normalizedColor.match(hexRegex)) {
|
|
19986
20003
|
return {
|
|
19987
20004
|
red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
|
|
@@ -19989,6 +20006,7 @@ function parseToRgb(color) {
|
|
|
19989
20006
|
blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16)
|
|
19990
20007
|
};
|
|
19991
20008
|
}
|
|
20009
|
+
|
|
19992
20010
|
if (normalizedColor.match(hexRgbaRegex)) {
|
|
19993
20011
|
var alpha = parseFloat((parseInt("" + normalizedColor[7] + normalizedColor[8], 16) / 255).toFixed(2));
|
|
19994
20012
|
return {
|
|
@@ -19998,6 +20016,7 @@ function parseToRgb(color) {
|
|
|
19998
20016
|
alpha: alpha
|
|
19999
20017
|
};
|
|
20000
20018
|
}
|
|
20019
|
+
|
|
20001
20020
|
if (normalizedColor.match(reducedHexRegex)) {
|
|
20002
20021
|
return {
|
|
20003
20022
|
red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
|
|
@@ -20005,8 +20024,10 @@ function parseToRgb(color) {
|
|
|
20005
20024
|
blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16)
|
|
20006
20025
|
};
|
|
20007
20026
|
}
|
|
20027
|
+
|
|
20008
20028
|
if (normalizedColor.match(reducedRgbaHexRegex)) {
|
|
20009
20029
|
var _alpha = parseFloat((parseInt("" + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2));
|
|
20030
|
+
|
|
20010
20031
|
return {
|
|
20011
20032
|
red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
|
|
20012
20033
|
green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16),
|
|
@@ -20014,7 +20035,9 @@ function parseToRgb(color) {
|
|
|
20014
20035
|
alpha: _alpha
|
|
20015
20036
|
};
|
|
20016
20037
|
}
|
|
20038
|
+
|
|
20017
20039
|
var rgbMatched = rgbRegex.exec(normalizedColor);
|
|
20040
|
+
|
|
20018
20041
|
if (rgbMatched) {
|
|
20019
20042
|
return {
|
|
20020
20043
|
red: parseInt("" + rgbMatched[1], 10),
|
|
@@ -20022,7 +20045,9 @@ function parseToRgb(color) {
|
|
|
20022
20045
|
blue: parseInt("" + rgbMatched[3], 10)
|
|
20023
20046
|
};
|
|
20024
20047
|
}
|
|
20048
|
+
|
|
20025
20049
|
var rgbaMatched = rgbaRegex.exec(normalizedColor.substring(0, 50));
|
|
20050
|
+
|
|
20026
20051
|
if (rgbaMatched) {
|
|
20027
20052
|
return {
|
|
20028
20053
|
red: parseInt("" + rgbaMatched[1], 10),
|
|
@@ -20031,32 +20056,44 @@ function parseToRgb(color) {
|
|
|
20031
20056
|
alpha: parseFloat("" + rgbaMatched[4]) > 1 ? parseFloat("" + rgbaMatched[4]) / 100 : parseFloat("" + rgbaMatched[4])
|
|
20032
20057
|
};
|
|
20033
20058
|
}
|
|
20059
|
+
|
|
20034
20060
|
var hslMatched = hslRegex.exec(normalizedColor);
|
|
20061
|
+
|
|
20035
20062
|
if (hslMatched) {
|
|
20036
20063
|
var hue = parseInt("" + hslMatched[1], 10);
|
|
20037
20064
|
var saturation = parseInt("" + hslMatched[2], 10) / 100;
|
|
20038
20065
|
var lightness = parseInt("" + hslMatched[3], 10) / 100;
|
|
20039
20066
|
var rgbColorString = "rgb(" + hslToRgb(hue, saturation, lightness) + ")";
|
|
20040
20067
|
var hslRgbMatched = rgbRegex.exec(rgbColorString);
|
|
20068
|
+
|
|
20041
20069
|
if (!hslRgbMatched) {
|
|
20042
20070
|
throw new PolishedError(4, normalizedColor, rgbColorString);
|
|
20043
20071
|
}
|
|
20072
|
+
|
|
20044
20073
|
return {
|
|
20045
20074
|
red: parseInt("" + hslRgbMatched[1], 10),
|
|
20046
20075
|
green: parseInt("" + hslRgbMatched[2], 10),
|
|
20047
20076
|
blue: parseInt("" + hslRgbMatched[3], 10)
|
|
20048
20077
|
};
|
|
20049
20078
|
}
|
|
20079
|
+
|
|
20050
20080
|
var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50));
|
|
20081
|
+
|
|
20051
20082
|
if (hslaMatched) {
|
|
20052
20083
|
var _hue = parseInt("" + hslaMatched[1], 10);
|
|
20084
|
+
|
|
20053
20085
|
var _saturation = parseInt("" + hslaMatched[2], 10) / 100;
|
|
20086
|
+
|
|
20054
20087
|
var _lightness = parseInt("" + hslaMatched[3], 10) / 100;
|
|
20088
|
+
|
|
20055
20089
|
var _rgbColorString = "rgb(" + hslToRgb(_hue, _saturation, _lightness) + ")";
|
|
20090
|
+
|
|
20056
20091
|
var _hslRgbMatched = rgbRegex.exec(_rgbColorString);
|
|
20092
|
+
|
|
20057
20093
|
if (!_hslRgbMatched) {
|
|
20058
20094
|
throw new PolishedError(4, normalizedColor, _rgbColorString);
|
|
20059
20095
|
}
|
|
20096
|
+
|
|
20060
20097
|
return {
|
|
20061
20098
|
red: parseInt("" + _hslRgbMatched[1], 10),
|
|
20062
20099
|
green: parseInt("" + _hslRgbMatched[2], 10),
|
|
@@ -20064,80 +20101,8 @@ function parseToRgb(color) {
|
|
|
20064
20101
|
alpha: parseFloat("" + hslaMatched[4]) > 1 ? parseFloat("" + hslaMatched[4]) / 100 : parseFloat("" + hslaMatched[4])
|
|
20065
20102
|
};
|
|
20066
20103
|
}
|
|
20067
|
-
throw new PolishedError(5);
|
|
20068
|
-
}
|
|
20069
20104
|
|
|
20070
|
-
|
|
20071
|
-
// make sure rgb are contained in a set of [0, 255]
|
|
20072
|
-
var red = color.red / 255;
|
|
20073
|
-
var green = color.green / 255;
|
|
20074
|
-
var blue = color.blue / 255;
|
|
20075
|
-
var max = Math.max(red, green, blue);
|
|
20076
|
-
var min = Math.min(red, green, blue);
|
|
20077
|
-
var lightness = (max + min) / 2;
|
|
20078
|
-
if (max === min) {
|
|
20079
|
-
// achromatic
|
|
20080
|
-
if (color.alpha !== undefined) {
|
|
20081
|
-
return {
|
|
20082
|
-
hue: 0,
|
|
20083
|
-
saturation: 0,
|
|
20084
|
-
lightness: lightness,
|
|
20085
|
-
alpha: color.alpha
|
|
20086
|
-
};
|
|
20087
|
-
} else {
|
|
20088
|
-
return {
|
|
20089
|
-
hue: 0,
|
|
20090
|
-
saturation: 0,
|
|
20091
|
-
lightness: lightness
|
|
20092
|
-
};
|
|
20093
|
-
}
|
|
20094
|
-
}
|
|
20095
|
-
var hue;
|
|
20096
|
-
var delta = max - min;
|
|
20097
|
-
var saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min);
|
|
20098
|
-
switch (max) {
|
|
20099
|
-
case red:
|
|
20100
|
-
hue = (green - blue) / delta + (green < blue ? 6 : 0);
|
|
20101
|
-
break;
|
|
20102
|
-
case green:
|
|
20103
|
-
hue = (blue - red) / delta + 2;
|
|
20104
|
-
break;
|
|
20105
|
-
default:
|
|
20106
|
-
// blue case
|
|
20107
|
-
hue = (red - green) / delta + 4;
|
|
20108
|
-
break;
|
|
20109
|
-
}
|
|
20110
|
-
hue *= 60;
|
|
20111
|
-
if (color.alpha !== undefined) {
|
|
20112
|
-
return {
|
|
20113
|
-
hue: hue,
|
|
20114
|
-
saturation: saturation,
|
|
20115
|
-
lightness: lightness,
|
|
20116
|
-
alpha: color.alpha
|
|
20117
|
-
};
|
|
20118
|
-
}
|
|
20119
|
-
return {
|
|
20120
|
-
hue: hue,
|
|
20121
|
-
saturation: saturation,
|
|
20122
|
-
lightness: lightness
|
|
20123
|
-
};
|
|
20124
|
-
}
|
|
20125
|
-
|
|
20126
|
-
/**
|
|
20127
|
-
* Returns an HslColor or HslaColor object. This utility function is only useful
|
|
20128
|
-
* if want to extract a color component. With the color util `toColorString` you
|
|
20129
|
-
* can convert a HslColor or HslaColor object back to a string.
|
|
20130
|
-
*
|
|
20131
|
-
* @example
|
|
20132
|
-
* // Assigns `{ hue: 0, saturation: 1, lightness: 0.5 }` to color1
|
|
20133
|
-
* const color1 = parseToHsl('rgb(255, 0, 0)');
|
|
20134
|
-
* // Assigns `{ hue: 128, saturation: 1, lightness: 0.5, alpha: 0.75 }` to color2
|
|
20135
|
-
* const color2 = parseToHsl('hsla(128, 100%, 50%, 0.75)');
|
|
20136
|
-
*/
|
|
20137
|
-
function parseToHsl(color) {
|
|
20138
|
-
// Note: At a later stage we can optimize this function as right now a hsl
|
|
20139
|
-
// color would be parsed converted to rgb values and converted back to hsl.
|
|
20140
|
-
return rgbToHsl(parseToRgb(color));
|
|
20105
|
+
throw new PolishedError(5);
|
|
20141
20106
|
}
|
|
20142
20107
|
|
|
20143
20108
|
/**
|
|
@@ -20148,8 +20113,10 @@ var reduceHexValue = function reduceHexValue(value) {
|
|
|
20148
20113
|
if (value.length === 7 && value[1] === value[2] && value[3] === value[4] && value[5] === value[6]) {
|
|
20149
20114
|
return "#" + value[1] + value[3] + value[5];
|
|
20150
20115
|
}
|
|
20116
|
+
|
|
20151
20117
|
return value;
|
|
20152
20118
|
};
|
|
20119
|
+
|
|
20153
20120
|
var reduceHexValue$1 = reduceHexValue;
|
|
20154
20121
|
|
|
20155
20122
|
function numberToHex(value) {
|
|
@@ -20157,83 +20124,6 @@ function numberToHex(value) {
|
|
|
20157
20124
|
return hex.length === 1 ? "0" + hex : hex;
|
|
20158
20125
|
}
|
|
20159
20126
|
|
|
20160
|
-
function colorToHex(color) {
|
|
20161
|
-
return numberToHex(Math.round(color * 255));
|
|
20162
|
-
}
|
|
20163
|
-
function convertToHex(red, green, blue) {
|
|
20164
|
-
return reduceHexValue$1("#" + colorToHex(red) + colorToHex(green) + colorToHex(blue));
|
|
20165
|
-
}
|
|
20166
|
-
function hslToHex(hue, saturation, lightness) {
|
|
20167
|
-
return hslToRgb(hue, saturation, lightness, convertToHex);
|
|
20168
|
-
}
|
|
20169
|
-
|
|
20170
|
-
/**
|
|
20171
|
-
* Returns a string value for the color. The returned result is the smallest possible hex notation.
|
|
20172
|
-
*
|
|
20173
|
-
* @example
|
|
20174
|
-
* // Styles as object usage
|
|
20175
|
-
* const styles = {
|
|
20176
|
-
* background: hsl(359, 0.75, 0.4),
|
|
20177
|
-
* background: hsl({ hue: 360, saturation: 0.75, lightness: 0.4 }),
|
|
20178
|
-
* }
|
|
20179
|
-
*
|
|
20180
|
-
* // styled-components usage
|
|
20181
|
-
* const div = styled.div`
|
|
20182
|
-
* background: ${hsl(359, 0.75, 0.4)};
|
|
20183
|
-
* background: ${hsl({ hue: 360, saturation: 0.75, lightness: 0.4 })};
|
|
20184
|
-
* `
|
|
20185
|
-
*
|
|
20186
|
-
* // CSS in JS Output
|
|
20187
|
-
*
|
|
20188
|
-
* element {
|
|
20189
|
-
* background: "#b3191c";
|
|
20190
|
-
* background: "#b3191c";
|
|
20191
|
-
* }
|
|
20192
|
-
*/
|
|
20193
|
-
function hsl(value, saturation, lightness) {
|
|
20194
|
-
if (typeof value === 'number' && typeof saturation === 'number' && typeof lightness === 'number') {
|
|
20195
|
-
return hslToHex(value, saturation, lightness);
|
|
20196
|
-
} else if (typeof value === 'object' && saturation === undefined && lightness === undefined) {
|
|
20197
|
-
return hslToHex(value.hue, value.saturation, value.lightness);
|
|
20198
|
-
}
|
|
20199
|
-
throw new PolishedError(1);
|
|
20200
|
-
}
|
|
20201
|
-
|
|
20202
|
-
/**
|
|
20203
|
-
* Returns a string value for the color. The returned result is the smallest possible rgba or hex notation.
|
|
20204
|
-
*
|
|
20205
|
-
* @example
|
|
20206
|
-
* // Styles as object usage
|
|
20207
|
-
* const styles = {
|
|
20208
|
-
* background: hsla(359, 0.75, 0.4, 0.7),
|
|
20209
|
-
* background: hsla({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0,7 }),
|
|
20210
|
-
* background: hsla(359, 0.75, 0.4, 1),
|
|
20211
|
-
* }
|
|
20212
|
-
*
|
|
20213
|
-
* // styled-components usage
|
|
20214
|
-
* const div = styled.div`
|
|
20215
|
-
* background: ${hsla(359, 0.75, 0.4, 0.7)};
|
|
20216
|
-
* background: ${hsla({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0,7 })};
|
|
20217
|
-
* background: ${hsla(359, 0.75, 0.4, 1)};
|
|
20218
|
-
* `
|
|
20219
|
-
*
|
|
20220
|
-
* // CSS in JS Output
|
|
20221
|
-
*
|
|
20222
|
-
* element {
|
|
20223
|
-
* background: "rgba(179,25,28,0.7)";
|
|
20224
|
-
* background: "rgba(179,25,28,0.7)";
|
|
20225
|
-
* background: "#b3191c";
|
|
20226
|
-
* }
|
|
20227
|
-
*/
|
|
20228
|
-
function hsla$1(value, saturation, lightness, alpha) {
|
|
20229
|
-
if (typeof value === 'number' && typeof saturation === 'number' && typeof lightness === 'number' && typeof alpha === 'number') {
|
|
20230
|
-
return alpha >= 1 ? hslToHex(value, saturation, lightness) : "rgba(" + hslToRgb(value, saturation, lightness) + "," + alpha + ")";
|
|
20231
|
-
} else if (typeof value === 'object' && saturation === undefined && lightness === undefined && alpha === undefined) {
|
|
20232
|
-
return value.alpha >= 1 ? hslToHex(value.hue, value.saturation, value.lightness) : "rgba(" + hslToRgb(value.hue, value.saturation, value.lightness) + "," + value.alpha + ")";
|
|
20233
|
-
}
|
|
20234
|
-
throw new PolishedError(2);
|
|
20235
|
-
}
|
|
20236
|
-
|
|
20237
20127
|
/**
|
|
20238
20128
|
* Returns a string value for the color. The returned result is the smallest possible hex notation.
|
|
20239
20129
|
*
|
|
@@ -20263,6 +20153,7 @@ function rgb(value, green, blue) {
|
|
|
20263
20153
|
} else if (typeof value === 'object' && green === undefined && blue === undefined) {
|
|
20264
20154
|
return reduceHexValue$1("#" + numberToHex(value.red) + numberToHex(value.green) + numberToHex(value.blue));
|
|
20265
20155
|
}
|
|
20156
|
+
|
|
20266
20157
|
throw new PolishedError(6);
|
|
20267
20158
|
}
|
|
20268
20159
|
|
|
@@ -20309,60 +20200,8 @@ function rgba$1(firstValue, secondValue, thirdValue, fourthValue) {
|
|
|
20309
20200
|
} else if (typeof firstValue === 'object' && secondValue === undefined && thirdValue === undefined && fourthValue === undefined) {
|
|
20310
20201
|
return firstValue.alpha >= 1 ? rgb(firstValue.red, firstValue.green, firstValue.blue) : "rgba(" + firstValue.red + "," + firstValue.green + "," + firstValue.blue + "," + firstValue.alpha + ")";
|
|
20311
20202
|
}
|
|
20312
|
-
throw new PolishedError(7);
|
|
20313
|
-
}
|
|
20314
20203
|
|
|
20315
|
-
|
|
20316
|
-
return typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number' && (typeof color.alpha !== 'number' || typeof color.alpha === 'undefined');
|
|
20317
|
-
};
|
|
20318
|
-
var isRgba$1 = function isRgba(color) {
|
|
20319
|
-
return typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number' && typeof color.alpha === 'number';
|
|
20320
|
-
};
|
|
20321
|
-
var isHsl = function isHsl(color) {
|
|
20322
|
-
return typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number' && (typeof color.alpha !== 'number' || typeof color.alpha === 'undefined');
|
|
20323
|
-
};
|
|
20324
|
-
var isHsla$1 = function isHsla(color) {
|
|
20325
|
-
return typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number' && typeof color.alpha === 'number';
|
|
20326
|
-
};
|
|
20327
|
-
|
|
20328
|
-
/**
|
|
20329
|
-
* Converts a RgbColor, RgbaColor, HslColor or HslaColor object to a color string.
|
|
20330
|
-
* This util is useful in case you only know on runtime which color object is
|
|
20331
|
-
* used. Otherwise we recommend to rely on `rgb`, `rgba`, `hsl` or `hsla`.
|
|
20332
|
-
*
|
|
20333
|
-
* @example
|
|
20334
|
-
* // Styles as object usage
|
|
20335
|
-
* const styles = {
|
|
20336
|
-
* background: toColorString({ red: 255, green: 205, blue: 100 }),
|
|
20337
|
-
* background: toColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 }),
|
|
20338
|
-
* background: toColorString({ hue: 240, saturation: 1, lightness: 0.5 }),
|
|
20339
|
-
* background: toColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 }),
|
|
20340
|
-
* }
|
|
20341
|
-
*
|
|
20342
|
-
* // styled-components usage
|
|
20343
|
-
* const div = styled.div`
|
|
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
|
-
* // CSS in JS Output
|
|
20351
|
-
* element {
|
|
20352
|
-
* background: "#ffcd64";
|
|
20353
|
-
* background: "rgba(255,205,100,0.72)";
|
|
20354
|
-
* background: "#00f";
|
|
20355
|
-
* background: "rgba(179,25,25,0.72)";
|
|
20356
|
-
* }
|
|
20357
|
-
*/
|
|
20358
|
-
|
|
20359
|
-
function toColorString(color) {
|
|
20360
|
-
if (typeof color !== 'object') throw new PolishedError(8);
|
|
20361
|
-
if (isRgba$1(color)) return rgba$1(color);
|
|
20362
|
-
if (isRgb(color)) return rgb(color);
|
|
20363
|
-
if (isHsla$1(color)) return hsla$1(color);
|
|
20364
|
-
if (isHsl(color)) return hsl(color);
|
|
20365
|
-
throw new PolishedError(8);
|
|
20204
|
+
throw new PolishedError(7);
|
|
20366
20205
|
}
|
|
20367
20206
|
|
|
20368
20207
|
// Type definitions taken from https://github.com/gcanti/flow-static-land/blob/master/src/Fun.js
|
|
@@ -20375,156 +20214,14 @@ function curried(f, length, acc) {
|
|
|
20375
20214
|
var combined = acc.concat(Array.prototype.slice.call(arguments));
|
|
20376
20215
|
return combined.length >= length ? f.apply(this, combined) : curried(f, length, combined);
|
|
20377
20216
|
};
|
|
20378
|
-
}
|
|
20217
|
+
} // eslint-disable-next-line no-redeclare
|
|
20218
|
+
|
|
20379
20219
|
|
|
20380
|
-
// eslint-disable-next-line no-redeclare
|
|
20381
20220
|
function curry(f) {
|
|
20382
20221
|
// eslint-disable-line no-redeclare
|
|
20383
20222
|
return curried(f, f.length, []);
|
|
20384
20223
|
}
|
|
20385
20224
|
|
|
20386
|
-
/**
|
|
20387
|
-
* Changes the hue of the color. Hue is a number between 0 to 360. The first
|
|
20388
|
-
* argument for adjustHue is the amount of degrees the color is rotated around
|
|
20389
|
-
* the color wheel, always producing a positive hue value.
|
|
20390
|
-
*
|
|
20391
|
-
* @example
|
|
20392
|
-
* // Styles as object usage
|
|
20393
|
-
* const styles = {
|
|
20394
|
-
* background: adjustHue(180, '#448'),
|
|
20395
|
-
* background: adjustHue('180', 'rgba(101,100,205,0.7)'),
|
|
20396
|
-
* }
|
|
20397
|
-
*
|
|
20398
|
-
* // styled-components usage
|
|
20399
|
-
* const div = styled.div`
|
|
20400
|
-
* background: ${adjustHue(180, '#448')};
|
|
20401
|
-
* background: ${adjustHue('180', 'rgba(101,100,205,0.7)')};
|
|
20402
|
-
* `
|
|
20403
|
-
*
|
|
20404
|
-
* // CSS in JS Output
|
|
20405
|
-
* element {
|
|
20406
|
-
* background: "#888844";
|
|
20407
|
-
* background: "rgba(136,136,68,0.7)";
|
|
20408
|
-
* }
|
|
20409
|
-
*/
|
|
20410
|
-
function adjustHue(degree, color) {
|
|
20411
|
-
if (color === 'transparent') return color;
|
|
20412
|
-
var hslColor = parseToHsl(color);
|
|
20413
|
-
return toColorString(_extends$1({}, hslColor, {
|
|
20414
|
-
hue: hslColor.hue + parseFloat(degree)
|
|
20415
|
-
}));
|
|
20416
|
-
}
|
|
20417
|
-
|
|
20418
|
-
// prettier-ignore
|
|
20419
|
-
var curriedAdjustHue = curry /* ::<number | string, string, string> */(adjustHue);
|
|
20420
|
-
|
|
20421
|
-
function guard(lowerBoundary, upperBoundary, value) {
|
|
20422
|
-
return Math.max(lowerBoundary, Math.min(upperBoundary, value));
|
|
20423
|
-
}
|
|
20424
|
-
|
|
20425
|
-
/**
|
|
20426
|
-
* Returns a string value for the darkened color.
|
|
20427
|
-
*
|
|
20428
|
-
* @example
|
|
20429
|
-
* // Styles as object usage
|
|
20430
|
-
* const styles = {
|
|
20431
|
-
* background: darken(0.2, '#FFCD64'),
|
|
20432
|
-
* background: darken('0.2', 'rgba(255,205,100,0.7)'),
|
|
20433
|
-
* }
|
|
20434
|
-
*
|
|
20435
|
-
* // styled-components usage
|
|
20436
|
-
* const div = styled.div`
|
|
20437
|
-
* background: ${darken(0.2, '#FFCD64')};
|
|
20438
|
-
* background: ${darken('0.2', 'rgba(255,205,100,0.7)')};
|
|
20439
|
-
* `
|
|
20440
|
-
*
|
|
20441
|
-
* // CSS in JS Output
|
|
20442
|
-
*
|
|
20443
|
-
* element {
|
|
20444
|
-
* background: "#ffbd31";
|
|
20445
|
-
* background: "rgba(255,189,49,0.7)";
|
|
20446
|
-
* }
|
|
20447
|
-
*/
|
|
20448
|
-
function darken(amount, color) {
|
|
20449
|
-
if (color === 'transparent') return color;
|
|
20450
|
-
var hslColor = parseToHsl(color);
|
|
20451
|
-
return toColorString(_extends$1({}, hslColor, {
|
|
20452
|
-
lightness: guard(0, 1, hslColor.lightness - parseFloat(amount))
|
|
20453
|
-
}));
|
|
20454
|
-
}
|
|
20455
|
-
|
|
20456
|
-
// prettier-ignore
|
|
20457
|
-
var curriedDarken = curry /* ::<number | string, string, string> */(darken);
|
|
20458
|
-
|
|
20459
|
-
/**
|
|
20460
|
-
* Decreases the intensity of a color. Its range is between 0 to 1. The first
|
|
20461
|
-
* argument of the desaturate function is the amount by how much the color
|
|
20462
|
-
* intensity should be decreased.
|
|
20463
|
-
*
|
|
20464
|
-
* @example
|
|
20465
|
-
* // Styles as object usage
|
|
20466
|
-
* const styles = {
|
|
20467
|
-
* background: desaturate(0.2, '#CCCD64'),
|
|
20468
|
-
* background: desaturate('0.2', 'rgba(204,205,100,0.7)'),
|
|
20469
|
-
* }
|
|
20470
|
-
*
|
|
20471
|
-
* // styled-components usage
|
|
20472
|
-
* const div = styled.div`
|
|
20473
|
-
* background: ${desaturate(0.2, '#CCCD64')};
|
|
20474
|
-
* background: ${desaturate('0.2', 'rgba(204,205,100,0.7)')};
|
|
20475
|
-
* `
|
|
20476
|
-
*
|
|
20477
|
-
* // CSS in JS Output
|
|
20478
|
-
* element {
|
|
20479
|
-
* background: "#b8b979";
|
|
20480
|
-
* background: "rgba(184,185,121,0.7)";
|
|
20481
|
-
* }
|
|
20482
|
-
*/
|
|
20483
|
-
function desaturate(amount, color) {
|
|
20484
|
-
if (color === 'transparent') return color;
|
|
20485
|
-
var hslColor = parseToHsl(color);
|
|
20486
|
-
return toColorString(_extends$1({}, hslColor, {
|
|
20487
|
-
saturation: guard(0, 1, hslColor.saturation - parseFloat(amount))
|
|
20488
|
-
}));
|
|
20489
|
-
}
|
|
20490
|
-
|
|
20491
|
-
// prettier-ignore
|
|
20492
|
-
var curriedDesaturate = curry /* ::<number | string, string, string> */(desaturate);
|
|
20493
|
-
|
|
20494
|
-
/**
|
|
20495
|
-
* Returns a string value for the lightened color.
|
|
20496
|
-
*
|
|
20497
|
-
* @example
|
|
20498
|
-
* // Styles as object usage
|
|
20499
|
-
* const styles = {
|
|
20500
|
-
* background: lighten(0.2, '#CCCD64'),
|
|
20501
|
-
* background: lighten('0.2', 'rgba(204,205,100,0.7)'),
|
|
20502
|
-
* }
|
|
20503
|
-
*
|
|
20504
|
-
* // styled-components usage
|
|
20505
|
-
* const div = styled.div`
|
|
20506
|
-
* background: ${lighten(0.2, '#FFCD64')};
|
|
20507
|
-
* background: ${lighten('0.2', 'rgba(204,205,100,0.7)')};
|
|
20508
|
-
* `
|
|
20509
|
-
*
|
|
20510
|
-
* // CSS in JS Output
|
|
20511
|
-
*
|
|
20512
|
-
* element {
|
|
20513
|
-
* background: "#e5e6b1";
|
|
20514
|
-
* background: "rgba(229,230,177,0.7)";
|
|
20515
|
-
* }
|
|
20516
|
-
*/
|
|
20517
|
-
function lighten(amount, color) {
|
|
20518
|
-
if (color === 'transparent') return color;
|
|
20519
|
-
var hslColor = parseToHsl(color);
|
|
20520
|
-
return toColorString(_extends$1({}, hslColor, {
|
|
20521
|
-
lightness: guard(0, 1, hslColor.lightness + parseFloat(amount))
|
|
20522
|
-
}));
|
|
20523
|
-
}
|
|
20524
|
-
|
|
20525
|
-
// prettier-ignore
|
|
20526
|
-
var curriedLighten = curry /* ::<number | string, string, string> */(lighten);
|
|
20527
|
-
|
|
20528
20225
|
/**
|
|
20529
20226
|
* 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.
|
|
20530
20227
|
*
|
|
@@ -20551,21 +20248,25 @@ var curriedLighten = curry /* ::<number | string, string, string> */(lighten);
|
|
|
20551
20248
|
* background: "rgba(63, 0, 191, 0.75)";
|
|
20552
20249
|
* }
|
|
20553
20250
|
*/
|
|
20251
|
+
|
|
20554
20252
|
function mix$1(weight, color, otherColor) {
|
|
20555
20253
|
if (color === 'transparent') return otherColor;
|
|
20556
20254
|
if (otherColor === 'transparent') return color;
|
|
20557
20255
|
if (weight === 0) return otherColor;
|
|
20558
20256
|
var parsedColor1 = parseToRgb(color);
|
|
20257
|
+
|
|
20559
20258
|
var color1 = _extends$1({}, parsedColor1, {
|
|
20560
20259
|
alpha: typeof parsedColor1.alpha === 'number' ? parsedColor1.alpha : 1
|
|
20561
20260
|
});
|
|
20261
|
+
|
|
20562
20262
|
var parsedColor2 = parseToRgb(otherColor);
|
|
20263
|
+
|
|
20563
20264
|
var color2 = _extends$1({}, parsedColor2, {
|
|
20564
20265
|
alpha: typeof parsedColor2.alpha === 'number' ? parsedColor2.alpha : 1
|
|
20565
|
-
});
|
|
20566
|
-
|
|
20567
|
-
// The formula is copied from the original Sass implementation:
|
|
20266
|
+
}); // The formula is copied from the original Sass implementation:
|
|
20568
20267
|
// http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method
|
|
20268
|
+
|
|
20269
|
+
|
|
20569
20270
|
var alphaDelta = color1.alpha - color2.alpha;
|
|
20570
20271
|
var x = parseFloat(weight) * 2 - 1;
|
|
20571
20272
|
var y = x * alphaDelta === -1 ? x : x + alphaDelta;
|
|
@@ -20579,217 +20280,13 @@ function mix$1(weight, color, otherColor) {
|
|
|
20579
20280
|
alpha: color1.alpha * parseFloat(weight) + color2.alpha * (1 - parseFloat(weight))
|
|
20580
20281
|
};
|
|
20581
20282
|
return rgba$1(mixedColor);
|
|
20582
|
-
}
|
|
20583
|
-
|
|
20584
|
-
// prettier-ignore
|
|
20585
|
-
var curriedMix = curry /* ::<number | string, string, string, string> */(mix$1);
|
|
20586
|
-
var mix$1$1 = curriedMix;
|
|
20587
|
-
|
|
20588
|
-
/**
|
|
20589
|
-
* Increases the opacity of a color. Its range for the amount is between 0 to 1.
|
|
20590
|
-
*
|
|
20591
|
-
*
|
|
20592
|
-
* @example
|
|
20593
|
-
* // Styles as object usage
|
|
20594
|
-
* const styles = {
|
|
20595
|
-
* background: opacify(0.1, 'rgba(255, 255, 255, 0.9)');
|
|
20596
|
-
* background: opacify(0.2, 'hsla(0, 0%, 100%, 0.5)'),
|
|
20597
|
-
* background: opacify('0.5', 'rgba(255, 0, 0, 0.2)'),
|
|
20598
|
-
* }
|
|
20599
|
-
*
|
|
20600
|
-
* // styled-components usage
|
|
20601
|
-
* const div = styled.div`
|
|
20602
|
-
* background: ${opacify(0.1, 'rgba(255, 255, 255, 0.9)')};
|
|
20603
|
-
* background: ${opacify(0.2, 'hsla(0, 0%, 100%, 0.5)')},
|
|
20604
|
-
* background: ${opacify('0.5', 'rgba(255, 0, 0, 0.2)')},
|
|
20605
|
-
* `
|
|
20606
|
-
*
|
|
20607
|
-
* // CSS in JS Output
|
|
20608
|
-
*
|
|
20609
|
-
* element {
|
|
20610
|
-
* background: "#fff";
|
|
20611
|
-
* background: "rgba(255,255,255,0.7)";
|
|
20612
|
-
* background: "rgba(255,0,0,0.7)";
|
|
20613
|
-
* }
|
|
20614
|
-
*/
|
|
20615
|
-
function opacify(amount, color) {
|
|
20616
|
-
if (color === 'transparent') return color;
|
|
20617
|
-
var parsedColor = parseToRgb(color);
|
|
20618
|
-
var alpha = typeof parsedColor.alpha === 'number' ? parsedColor.alpha : 1;
|
|
20619
|
-
var colorWithAlpha = _extends$1({}, parsedColor, {
|
|
20620
|
-
alpha: guard(0, 1, (alpha * 100 + parseFloat(amount) * 100) / 100)
|
|
20621
|
-
});
|
|
20622
|
-
return rgba$1(colorWithAlpha);
|
|
20623
|
-
}
|
|
20624
|
-
|
|
20625
|
-
// prettier-ignore
|
|
20626
|
-
var curriedOpacify = curry /* ::<number | string, string, string> */(opacify);
|
|
20627
|
-
|
|
20628
|
-
/**
|
|
20629
|
-
* Increases the intensity of a color. Its range is between 0 to 1. The first
|
|
20630
|
-
* argument of the saturate function is the amount by how much the color
|
|
20631
|
-
* intensity should be increased.
|
|
20632
|
-
*
|
|
20633
|
-
* @example
|
|
20634
|
-
* // Styles as object usage
|
|
20635
|
-
* const styles = {
|
|
20636
|
-
* background: saturate(0.2, '#CCCD64'),
|
|
20637
|
-
* background: saturate('0.2', 'rgba(204,205,100,0.7)'),
|
|
20638
|
-
* }
|
|
20639
|
-
*
|
|
20640
|
-
* // styled-components usage
|
|
20641
|
-
* const div = styled.div`
|
|
20642
|
-
* background: ${saturate(0.2, '#FFCD64')};
|
|
20643
|
-
* background: ${saturate('0.2', 'rgba(204,205,100,0.7)')};
|
|
20644
|
-
* `
|
|
20645
|
-
*
|
|
20646
|
-
* // CSS in JS Output
|
|
20647
|
-
*
|
|
20648
|
-
* element {
|
|
20649
|
-
* background: "#e0e250";
|
|
20650
|
-
* background: "rgba(224,226,80,0.7)";
|
|
20651
|
-
* }
|
|
20652
|
-
*/
|
|
20653
|
-
function saturate(amount, color) {
|
|
20654
|
-
if (color === 'transparent') return color;
|
|
20655
|
-
var hslColor = parseToHsl(color);
|
|
20656
|
-
return toColorString(_extends$1({}, hslColor, {
|
|
20657
|
-
saturation: guard(0, 1, hslColor.saturation + parseFloat(amount))
|
|
20658
|
-
}));
|
|
20659
|
-
}
|
|
20660
|
-
|
|
20661
|
-
// prettier-ignore
|
|
20662
|
-
var curriedSaturate = curry /* ::<number | string, string, string> */(saturate);
|
|
20663
|
-
|
|
20664
|
-
/**
|
|
20665
|
-
* Sets the hue of a color to the provided value. The hue range can be
|
|
20666
|
-
* from 0 and 359.
|
|
20667
|
-
*
|
|
20668
|
-
* @example
|
|
20669
|
-
* // Styles as object usage
|
|
20670
|
-
* const styles = {
|
|
20671
|
-
* background: setHue(42, '#CCCD64'),
|
|
20672
|
-
* background: setHue('244', 'rgba(204,205,100,0.7)'),
|
|
20673
|
-
* }
|
|
20674
|
-
*
|
|
20675
|
-
* // styled-components usage
|
|
20676
|
-
* const div = styled.div`
|
|
20677
|
-
* background: ${setHue(42, '#CCCD64')};
|
|
20678
|
-
* background: ${setHue('244', 'rgba(204,205,100,0.7)')};
|
|
20679
|
-
* `
|
|
20680
|
-
*
|
|
20681
|
-
* // CSS in JS Output
|
|
20682
|
-
* element {
|
|
20683
|
-
* background: "#cdae64";
|
|
20684
|
-
* background: "rgba(107,100,205,0.7)";
|
|
20685
|
-
* }
|
|
20686
|
-
*/
|
|
20687
|
-
function setHue(hue, color) {
|
|
20688
|
-
if (color === 'transparent') return color;
|
|
20689
|
-
return toColorString(_extends$1({}, parseToHsl(color), {
|
|
20690
|
-
hue: parseFloat(hue)
|
|
20691
|
-
}));
|
|
20692
|
-
}
|
|
20693
|
-
|
|
20694
|
-
// prettier-ignore
|
|
20695
|
-
var curriedSetHue = curry /* ::<number | string, string, string> */(setHue);
|
|
20696
|
-
|
|
20697
|
-
/**
|
|
20698
|
-
* Sets the lightness of a color to the provided value. The lightness range can be
|
|
20699
|
-
* from 0 and 1.
|
|
20700
|
-
*
|
|
20701
|
-
* @example
|
|
20702
|
-
* // Styles as object usage
|
|
20703
|
-
* const styles = {
|
|
20704
|
-
* background: setLightness(0.2, '#CCCD64'),
|
|
20705
|
-
* background: setLightness('0.75', 'rgba(204,205,100,0.7)'),
|
|
20706
|
-
* }
|
|
20707
|
-
*
|
|
20708
|
-
* // styled-components usage
|
|
20709
|
-
* const div = styled.div`
|
|
20710
|
-
* background: ${setLightness(0.2, '#CCCD64')};
|
|
20711
|
-
* background: ${setLightness('0.75', 'rgba(204,205,100,0.7)')};
|
|
20712
|
-
* `
|
|
20713
|
-
*
|
|
20714
|
-
* // CSS in JS Output
|
|
20715
|
-
* element {
|
|
20716
|
-
* background: "#4d4d19";
|
|
20717
|
-
* background: "rgba(223,224,159,0.7)";
|
|
20718
|
-
* }
|
|
20719
|
-
*/
|
|
20720
|
-
function setLightness(lightness, color) {
|
|
20721
|
-
if (color === 'transparent') return color;
|
|
20722
|
-
return toColorString(_extends$1({}, parseToHsl(color), {
|
|
20723
|
-
lightness: parseFloat(lightness)
|
|
20724
|
-
}));
|
|
20725
|
-
}
|
|
20283
|
+
} // prettier-ignore
|
|
20726
20284
|
|
|
20727
|
-
// prettier-ignore
|
|
20728
|
-
var curriedSetLightness = curry /* ::<number | string, string, string> */(setLightness);
|
|
20729
20285
|
|
|
20730
|
-
|
|
20731
|
-
|
|
20732
|
-
|
|
20733
|
-
|
|
20734
|
-
* @example
|
|
20735
|
-
* // Styles as object usage
|
|
20736
|
-
* const styles = {
|
|
20737
|
-
* background: setSaturation(0.2, '#CCCD64'),
|
|
20738
|
-
* background: setSaturation('0.75', 'rgba(204,205,100,0.7)'),
|
|
20739
|
-
* }
|
|
20740
|
-
*
|
|
20741
|
-
* // styled-components usage
|
|
20742
|
-
* const div = styled.div`
|
|
20743
|
-
* background: ${setSaturation(0.2, '#CCCD64')};
|
|
20744
|
-
* background: ${setSaturation('0.75', 'rgba(204,205,100,0.7)')};
|
|
20745
|
-
* `
|
|
20746
|
-
*
|
|
20747
|
-
* // CSS in JS Output
|
|
20748
|
-
* element {
|
|
20749
|
-
* background: "#adad84";
|
|
20750
|
-
* background: "rgba(228,229,76,0.7)";
|
|
20751
|
-
* }
|
|
20752
|
-
*/
|
|
20753
|
-
function setSaturation(saturation, color) {
|
|
20754
|
-
if (color === 'transparent') return color;
|
|
20755
|
-
return toColorString(_extends$1({}, parseToHsl(color), {
|
|
20756
|
-
saturation: parseFloat(saturation)
|
|
20757
|
-
}));
|
|
20758
|
-
}
|
|
20759
|
-
|
|
20760
|
-
// prettier-ignore
|
|
20761
|
-
var curriedSetSaturation = curry /* ::<number | string, string, string> */(setSaturation);
|
|
20762
|
-
|
|
20763
|
-
/**
|
|
20764
|
-
* Shades a color by mixing it with black. `shade` can produce
|
|
20765
|
-
* hue shifts, where as `darken` manipulates the luminance channel and therefore
|
|
20766
|
-
* doesn't produce hue shifts.
|
|
20767
|
-
*
|
|
20768
|
-
* @example
|
|
20769
|
-
* // Styles as object usage
|
|
20770
|
-
* const styles = {
|
|
20771
|
-
* background: shade(0.25, '#00f')
|
|
20772
|
-
* }
|
|
20773
|
-
*
|
|
20774
|
-
* // styled-components usage
|
|
20775
|
-
* const div = styled.div`
|
|
20776
|
-
* background: ${shade(0.25, '#00f')};
|
|
20777
|
-
* `
|
|
20778
|
-
*
|
|
20779
|
-
* // CSS in JS Output
|
|
20780
|
-
*
|
|
20781
|
-
* element {
|
|
20782
|
-
* background: "#00003f";
|
|
20783
|
-
* }
|
|
20784
|
-
*/
|
|
20785
|
-
|
|
20786
|
-
function shade(percentage, color) {
|
|
20787
|
-
if (color === 'transparent') return color;
|
|
20788
|
-
return mix$1$1(parseFloat(percentage), 'rgb(0, 0, 0)', color);
|
|
20789
|
-
}
|
|
20790
|
-
|
|
20791
|
-
// prettier-ignore
|
|
20792
|
-
var curriedShade = curry /* ::<number | string, string, string> */(shade);
|
|
20286
|
+
var curriedMix = /*#__PURE__*/curry
|
|
20287
|
+
/* ::<number | string, string, string, string> */
|
|
20288
|
+
(mix$1);
|
|
20289
|
+
var mix$1$1 = curriedMix;
|
|
20793
20290
|
|
|
20794
20291
|
/**
|
|
20795
20292
|
* Tints a color by mixing it with white. `tint` can produce
|
|
@@ -20817,51 +20314,13 @@ var curriedShade = curry /* ::<number | string, string, string> */(shade);
|
|
|
20817
20314
|
function tint(percentage, color) {
|
|
20818
20315
|
if (color === 'transparent') return color;
|
|
20819
20316
|
return mix$1$1(parseFloat(percentage), 'rgb(255, 255, 255)', color);
|
|
20820
|
-
}
|
|
20821
|
-
|
|
20822
|
-
// prettier-ignore
|
|
20823
|
-
var curriedTint = curry /* ::<number | string, string, string> */(tint);
|
|
20824
|
-
var curriedTint$1 = curriedTint;
|
|
20317
|
+
} // prettier-ignore
|
|
20825
20318
|
|
|
20826
|
-
/**
|
|
20827
|
-
* Decreases the opacity of a color. Its range for the amount is between 0 to 1.
|
|
20828
|
-
*
|
|
20829
|
-
*
|
|
20830
|
-
* @example
|
|
20831
|
-
* // Styles as object usage
|
|
20832
|
-
* const styles = {
|
|
20833
|
-
* background: transparentize(0.1, '#fff'),
|
|
20834
|
-
* background: transparentize(0.2, 'hsl(0, 0%, 100%)'),
|
|
20835
|
-
* background: transparentize('0.5', 'rgba(255, 0, 0, 0.8)'),
|
|
20836
|
-
* }
|
|
20837
|
-
*
|
|
20838
|
-
* // styled-components usage
|
|
20839
|
-
* const div = styled.div`
|
|
20840
|
-
* background: ${transparentize(0.1, '#fff')};
|
|
20841
|
-
* background: ${transparentize(0.2, 'hsl(0, 0%, 100%)')};
|
|
20842
|
-
* background: ${transparentize('0.5', 'rgba(255, 0, 0, 0.8)')};
|
|
20843
|
-
* `
|
|
20844
|
-
*
|
|
20845
|
-
* // CSS in JS Output
|
|
20846
|
-
*
|
|
20847
|
-
* element {
|
|
20848
|
-
* background: "rgba(255,255,255,0.9)";
|
|
20849
|
-
* background: "rgba(255,255,255,0.8)";
|
|
20850
|
-
* background: "rgba(255,0,0,0.3)";
|
|
20851
|
-
* }
|
|
20852
|
-
*/
|
|
20853
|
-
function transparentize(amount, color) {
|
|
20854
|
-
if (color === 'transparent') return color;
|
|
20855
|
-
var parsedColor = parseToRgb(color);
|
|
20856
|
-
var alpha = typeof parsedColor.alpha === 'number' ? parsedColor.alpha : 1;
|
|
20857
|
-
var colorWithAlpha = _extends$1({}, parsedColor, {
|
|
20858
|
-
alpha: guard(0, 1, +(alpha * 100 - parseFloat(amount) * 100).toFixed(2) / 100)
|
|
20859
|
-
});
|
|
20860
|
-
return rgba$1(colorWithAlpha);
|
|
20861
|
-
}
|
|
20862
20319
|
|
|
20863
|
-
|
|
20864
|
-
|
|
20320
|
+
var curriedTint = /*#__PURE__*/curry
|
|
20321
|
+
/* ::<number | string, string, string> */
|
|
20322
|
+
(tint);
|
|
20323
|
+
var curriedTint$1 = curriedTint;
|
|
20865
20324
|
|
|
20866
20325
|
var linkColor = MATISSE_BLUE;
|
|
20867
20326
|
var fallbackValues$8 = {
|
|
@@ -23552,19 +23011,32 @@ var toIndexedObject = function (it) {
|
|
|
23552
23011
|
return indexedObject(requireObjectCoercible(it));
|
|
23553
23012
|
};
|
|
23554
23013
|
|
|
23555
|
-
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
23556
23014
|
var documentAll = typeof document == 'object' && document.all;
|
|
23557
23015
|
|
|
23016
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
23017
|
+
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
23018
|
+
var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
|
|
23019
|
+
|
|
23020
|
+
var documentAll_1 = {
|
|
23021
|
+
all: documentAll,
|
|
23022
|
+
IS_HTMLDDA: IS_HTMLDDA
|
|
23023
|
+
};
|
|
23024
|
+
|
|
23025
|
+
var documentAll$1 = documentAll_1.all;
|
|
23026
|
+
|
|
23558
23027
|
// `IsCallable` abstract operation
|
|
23559
23028
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
23560
|
-
|
|
23561
|
-
|
|
23562
|
-
return typeof argument == 'function' || argument === documentAll;
|
|
23029
|
+
var isCallable = documentAll_1.IS_HTMLDDA ? function (argument) {
|
|
23030
|
+
return typeof argument == 'function' || argument === documentAll$1;
|
|
23563
23031
|
} : function (argument) {
|
|
23564
23032
|
return typeof argument == 'function';
|
|
23565
23033
|
};
|
|
23566
23034
|
|
|
23567
|
-
var
|
|
23035
|
+
var documentAll$2 = documentAll_1.all;
|
|
23036
|
+
|
|
23037
|
+
var isObject = documentAll_1.IS_HTMLDDA ? function (it) {
|
|
23038
|
+
return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll$2;
|
|
23039
|
+
} : function (it) {
|
|
23568
23040
|
return typeof it == 'object' ? it !== null : isCallable(it);
|
|
23569
23041
|
};
|
|
23570
23042
|
|
|
@@ -23700,10 +23172,10 @@ var shared = createCommonjsModule(function (module) {
|
|
|
23700
23172
|
(module.exports = function (key, value) {
|
|
23701
23173
|
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
|
23702
23174
|
})('versions', []).push({
|
|
23703
|
-
version: '3.
|
|
23175
|
+
version: '3.33.3',
|
|
23704
23176
|
mode: 'global',
|
|
23705
|
-
copyright: '© 2014-
|
|
23706
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
23177
|
+
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
|
|
23178
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE',
|
|
23707
23179
|
source: 'https://github.com/zloirock/core-js'
|
|
23708
23180
|
});
|
|
23709
23181
|
});
|
|
@@ -24000,7 +23472,7 @@ var TEMPLATE = String(String).split('String');
|
|
|
24000
23472
|
|
|
24001
23473
|
var makeBuiltIn = module.exports = function (value, name, options) {
|
|
24002
23474
|
if (stringSlice($String(name), 0, 7) === 'Symbol(') {
|
|
24003
|
-
name = '[' + replace($String(name), /^Symbol\(([^)]*)\)
|
|
23475
|
+
name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
24004
23476
|
}
|
|
24005
23477
|
if (options && options.getter) name = 'get ' + name;
|
|
24006
23478
|
if (options && options.setter) name = 'set ' + name;
|
|
@@ -24088,8 +23560,7 @@ var min$1 = Math.min;
|
|
|
24088
23560
|
// `ToLength` abstract operation
|
|
24089
23561
|
// https://tc39.es/ecma262/#sec-tolength
|
|
24090
23562
|
var toLength = function (argument) {
|
|
24091
|
-
|
|
24092
|
-
return len > 0 ? min$1(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
23563
|
+
return argument > 0 ? min$1(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
24093
23564
|
};
|
|
24094
23565
|
|
|
24095
23566
|
// `LengthOfArrayLike` abstract operation
|
|
@@ -24249,7 +23720,7 @@ var _export = function (options, source) {
|
|
|
24249
23720
|
} else if (STATIC) {
|
|
24250
23721
|
target = global_1[TARGET] || defineGlobalProperty(TARGET, {});
|
|
24251
23722
|
} else {
|
|
24252
|
-
target = global_1[TARGET]
|
|
23723
|
+
target = (global_1[TARGET] || {}).prototype;
|
|
24253
23724
|
}
|
|
24254
23725
|
if (target) for (key in source) {
|
|
24255
23726
|
sourceProperty = source[key];
|
|
@@ -24512,15 +23983,11 @@ var functionUncurryThisAccessor = function (object, key, method) {
|
|
|
24512
23983
|
} catch (error) { /* empty */ }
|
|
24513
23984
|
};
|
|
24514
23985
|
|
|
24515
|
-
var isPossiblePrototype = function (argument) {
|
|
24516
|
-
return isObject(argument) || argument === null;
|
|
24517
|
-
};
|
|
24518
|
-
|
|
24519
23986
|
var $String$4 = String;
|
|
24520
23987
|
var $TypeError$6 = TypeError;
|
|
24521
23988
|
|
|
24522
23989
|
var aPossiblePrototype = function (argument) {
|
|
24523
|
-
if (
|
|
23990
|
+
if (typeof argument == 'object' || isCallable(argument)) return argument;
|
|
24524
23991
|
throw new $TypeError$6("Can't set " + $String$4(argument) + ' as a prototype');
|
|
24525
23992
|
};
|
|
24526
23993
|
|
|
@@ -46746,8 +46213,10 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
|
|
|
46746
46213
|
width: "100%"
|
|
46747
46214
|
}, /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
46748
46215
|
isLoading: isLoading,
|
|
46749
|
-
action:
|
|
46750
|
-
return
|
|
46216
|
+
action: function action() {
|
|
46217
|
+
return disableActions ? noop : function () {
|
|
46218
|
+
return handleClick(obligations);
|
|
46219
|
+
};
|
|
46751
46220
|
},
|
|
46752
46221
|
text: "Pay Now",
|
|
46753
46222
|
variant: isMobile ? "smallSecondary" : "secondary",
|
|
@@ -49297,9 +48766,16 @@ RegistrationForm.reducer = reducer$9;
|
|
|
49297
48766
|
RegistrationForm.mapStateToProps = mapStateToProps$a;
|
|
49298
48767
|
RegistrationForm.mapDispatchToProps = mapDispatchToProps$9;
|
|
49299
48768
|
|
|
48769
|
+
var GRECIAN_GREY$1 = GRECIAN_GREY;
|
|
48770
|
+
var bannerBackgroundColor = GRECIAN_GREY$1;
|
|
48771
|
+
var fallbackValues$R = {
|
|
48772
|
+
bannerBackgroundColor: bannerBackgroundColor
|
|
48773
|
+
};
|
|
48774
|
+
|
|
49300
48775
|
var ResetConfirmationForm = function ResetConfirmationForm() {
|
|
49301
|
-
var
|
|
49302
|
-
|
|
48776
|
+
var themeContext = useContext(ThemeContext);
|
|
48777
|
+
var themeValues = createThemeValues(themeContext, fallbackValues$R, "ResetConfirmationForm");
|
|
48778
|
+
var isMobile = themeContext.isMobile;
|
|
49303
48779
|
return /*#__PURE__*/React.createElement(Box, {
|
|
49304
48780
|
padding: "0",
|
|
49305
48781
|
width: isMobile ? "auto" : "576px",
|
|
@@ -49307,7 +48783,7 @@ var ResetConfirmationForm = function ResetConfirmationForm() {
|
|
|
49307
48783
|
background: WHITE,
|
|
49308
48784
|
boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)"
|
|
49309
48785
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
49310
|
-
background:
|
|
48786
|
+
background: themeValues.bannerBackgroundColor,
|
|
49311
48787
|
minWidth: "100%",
|
|
49312
48788
|
padding: "0.5rem"
|
|
49313
48789
|
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
@@ -49411,9 +48887,16 @@ ResetPasswordForm.reducer = reducer$a;
|
|
|
49411
48887
|
ResetPasswordForm.mapStateToProps = mapStateToProps$b;
|
|
49412
48888
|
ResetPasswordForm.mapDispatchToProps = mapDispatchToProps$a;
|
|
49413
48889
|
|
|
49414
|
-
var
|
|
49415
|
-
|
|
49416
|
-
|
|
48890
|
+
var GRECIAN_GREY$2 = GRECIAN_GREY;
|
|
48891
|
+
var bannerBackgroundColor$1 = GRECIAN_GREY$2;
|
|
48892
|
+
var fallbackValues$S = {
|
|
48893
|
+
bannerBackgroundColor: bannerBackgroundColor$1
|
|
48894
|
+
};
|
|
48895
|
+
|
|
48896
|
+
var ResetPasswordSuccess = function ResetPasswordSuccess() {
|
|
48897
|
+
var themeContext = useContext(ThemeContext);
|
|
48898
|
+
var themeValues = createThemeValues(themeContext, fallbackValues$S, "ResetPasswordSuccess");
|
|
48899
|
+
var isMobile = themeContext.isMobile;
|
|
49417
48900
|
return /*#__PURE__*/React.createElement(Box, {
|
|
49418
48901
|
padding: "0",
|
|
49419
48902
|
width: isMobile ? "auto" : "576px",
|
|
@@ -49421,7 +48904,7 @@ var ResetConfirmationForm$2 = function ResetConfirmationForm() {
|
|
|
49421
48904
|
background: WHITE,
|
|
49422
48905
|
boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)"
|
|
49423
48906
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
49424
|
-
background:
|
|
48907
|
+
background: themeValues.bannerBackgroundColor,
|
|
49425
48908
|
minWidth: "100%",
|
|
49426
48909
|
padding: "0.5rem"
|
|
49427
48910
|
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
@@ -49456,12 +48939,12 @@ var ResetConfirmationForm$2 = function ResetConfirmationForm() {
|
|
|
49456
48939
|
linkExtraStyles: "width: 100%;"
|
|
49457
48940
|
}))))));
|
|
49458
48941
|
};
|
|
49459
|
-
var ResetPasswordSuccess = withWindowSize(
|
|
48942
|
+
var ResetPasswordSuccess$1 = withWindowSize(ResetPasswordSuccess);
|
|
49460
48943
|
|
|
49461
48944
|
var activeTabBackground = "#FFFFFF";
|
|
49462
48945
|
var activeTabAccent = "#15749D";
|
|
49463
48946
|
var activeTabHover = "#B8D5E1";
|
|
49464
|
-
var fallbackValues$
|
|
48947
|
+
var fallbackValues$T = {
|
|
49465
48948
|
activeTabBackground: activeTabBackground,
|
|
49466
48949
|
activeTabAccent: activeTabAccent,
|
|
49467
48950
|
activeTabHover: activeTabHover
|
|
@@ -49529,12 +49012,12 @@ var Tabs = function Tabs(_ref) {
|
|
|
49529
49012
|
}, tab.content);
|
|
49530
49013
|
}))));
|
|
49531
49014
|
};
|
|
49532
|
-
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$
|
|
49015
|
+
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$T);
|
|
49533
49016
|
|
|
49534
49017
|
var activeTabBackground$1 = "#FFFFFF";
|
|
49535
49018
|
var activeTabAccent$1 = "#15749D";
|
|
49536
49019
|
var activeTabHover$1 = "#B8D5E1";
|
|
49537
|
-
var fallbackValues$
|
|
49020
|
+
var fallbackValues$U = {
|
|
49538
49021
|
activeTabBackground: activeTabBackground$1,
|
|
49539
49022
|
activeTabAccent: activeTabAccent$1,
|
|
49540
49023
|
activeTabHover: activeTabHover$1
|
|
@@ -49589,7 +49072,7 @@ var TabSidebar = function TabSidebar(_ref) {
|
|
|
49589
49072
|
}, text)))));
|
|
49590
49073
|
})));
|
|
49591
49074
|
};
|
|
49592
|
-
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$
|
|
49075
|
+
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$U);
|
|
49593
49076
|
|
|
49594
49077
|
var Timeout = function Timeout(_ref) {
|
|
49595
49078
|
var onLogout = _ref.onLogout;
|
|
@@ -49689,7 +49172,7 @@ var fontColor$1 = WHITE;
|
|
|
49689
49172
|
var textAlign$1 = "left";
|
|
49690
49173
|
var headerBackgroundColor$1 = BRIGHT_GREY;
|
|
49691
49174
|
var imageBackgroundColor$1 = MATISSE_BLUE;
|
|
49692
|
-
var fallbackValues$
|
|
49175
|
+
var fallbackValues$V = {
|
|
49693
49176
|
fontWeight: fontWeight$9,
|
|
49694
49177
|
fontColor: fontColor$1,
|
|
49695
49178
|
textAlign: textAlign$1,
|
|
@@ -49734,7 +49217,7 @@ var WelcomeModule = function WelcomeModule(_ref) {
|
|
|
49734
49217
|
src: welcomeImage
|
|
49735
49218
|
})))));
|
|
49736
49219
|
};
|
|
49737
|
-
var WelcomeModule$1 = /*#__PURE__*/memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$
|
|
49220
|
+
var WelcomeModule$1 = /*#__PURE__*/memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$V));
|
|
49738
49221
|
|
|
49739
49222
|
var WorkflowTile = function WorkflowTile(_ref) {
|
|
49740
49223
|
var _ref$workflowName = _ref.workflowName,
|
|
@@ -49794,7 +49277,7 @@ var menuItemColorDelete = RAZZMATAZZ_RED;
|
|
|
49794
49277
|
var menuItemHoverBackgroundColor = CORNFLOWER_BLUE;
|
|
49795
49278
|
var menuItemHoverBackgroundColorDelete = BLUSH_RED;
|
|
49796
49279
|
var menuItemHoverColor = ROYAL_BLUE_VIVID;
|
|
49797
|
-
var fallbackValues$
|
|
49280
|
+
var fallbackValues$W = {
|
|
49798
49281
|
menuItemBackgroundColor: menuItemBackgroundColor,
|
|
49799
49282
|
menuItemColor: menuItemColor,
|
|
49800
49283
|
menuItemColorDelete: menuItemColorDelete,
|
|
@@ -49861,13 +49344,13 @@ var PopupMenuItem = function PopupMenuItem(_ref) {
|
|
|
49861
49344
|
extraStyles: textExtraStyles
|
|
49862
49345
|
}, text)));
|
|
49863
49346
|
};
|
|
49864
|
-
var PopupMenuItem$1 = themeComponent(PopupMenuItem, "PopupMenuItem", fallbackValues$
|
|
49347
|
+
var PopupMenuItem$1 = themeComponent(PopupMenuItem, "PopupMenuItem", fallbackValues$W);
|
|
49865
49348
|
|
|
49866
49349
|
var hoverColor$6 = "#116285";
|
|
49867
49350
|
var activeColor$a = "#0E506D";
|
|
49868
49351
|
var menuTriggerColor = "#15749D";
|
|
49869
49352
|
var backgroundColor$e = "white";
|
|
49870
|
-
var fallbackValues$
|
|
49353
|
+
var fallbackValues$X = {
|
|
49871
49354
|
hoverColor: hoverColor$6,
|
|
49872
49355
|
activeColor: activeColor$a,
|
|
49873
49356
|
menuTriggerColor: menuTriggerColor,
|
|
@@ -50003,10 +49486,10 @@ var PopupMenu = function PopupMenu(_ref) {
|
|
|
50003
49486
|
}, item));
|
|
50004
49487
|
})));
|
|
50005
49488
|
};
|
|
50006
|
-
var PopupMenu$1 = themeComponent(PopupMenu, "PopupMenu", fallbackValues$
|
|
49489
|
+
var PopupMenu$1 = themeComponent(PopupMenu, "PopupMenu", fallbackValues$X);
|
|
50007
49490
|
|
|
50008
49491
|
var pageBackground = "#FBFCFD";
|
|
50009
|
-
var fallbackValues$
|
|
49492
|
+
var fallbackValues$Y = {
|
|
50010
49493
|
pageBackground: pageBackground
|
|
50011
49494
|
};
|
|
50012
49495
|
|
|
@@ -50054,7 +49537,7 @@ var CenterSingle = function CenterSingle(_ref) {
|
|
|
50054
49537
|
padding: "0"
|
|
50055
49538
|
})));
|
|
50056
49539
|
};
|
|
50057
|
-
var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$
|
|
49540
|
+
var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$Y));
|
|
50058
49541
|
|
|
50059
49542
|
var CenterStack = function CenterStack(_ref) {
|
|
50060
49543
|
var header = _ref.header,
|
|
@@ -50097,7 +49580,7 @@ var CenterStack = function CenterStack(_ref) {
|
|
|
50097
49580
|
padding: "0"
|
|
50098
49581
|
})));
|
|
50099
49582
|
};
|
|
50100
|
-
var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$
|
|
49583
|
+
var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$Y));
|
|
50101
49584
|
|
|
50102
49585
|
var CenterSingle$2 = function CenterSingle(_ref) {
|
|
50103
49586
|
var header = _ref.header,
|
|
@@ -50143,7 +49626,7 @@ var CenterSingle$2 = function CenterSingle(_ref) {
|
|
|
50143
49626
|
padding: "0"
|
|
50144
49627
|
})));
|
|
50145
49628
|
};
|
|
50146
|
-
var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$
|
|
49629
|
+
var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$Y));
|
|
50147
49630
|
|
|
50148
49631
|
var SidebarSingleContent = function SidebarSingleContent(_ref) {
|
|
50149
49632
|
var header = _ref.header,
|
|
@@ -50196,7 +49679,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
|
|
|
50196
49679
|
padding: "0"
|
|
50197
49680
|
})));
|
|
50198
49681
|
};
|
|
50199
|
-
var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$
|
|
49682
|
+
var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$Y));
|
|
50200
49683
|
|
|
50201
49684
|
var SidebarStackContent = function SidebarStackContent(_ref) {
|
|
50202
49685
|
var header = _ref.header,
|
|
@@ -50266,7 +49749,7 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
|
|
|
50266
49749
|
key: "footer-box"
|
|
50267
49750
|
})));
|
|
50268
49751
|
};
|
|
50269
|
-
var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$
|
|
49752
|
+
var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$Y));
|
|
50270
49753
|
|
|
50271
49754
|
var useFocusInvalidInput = function useFocusInvalidInput(hasErrors) {
|
|
50272
49755
|
var resetHasErrors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
|
|
@@ -50298,5 +49781,5 @@ var index$6 = /*#__PURE__*/Object.freeze({
|
|
|
50298
49781
|
useToastNotification: useToastNotification
|
|
50299
49782
|
});
|
|
50300
49783
|
|
|
50301
|
-
export { AccountNumberImage, AccountsAddIcon$1 as AccountsAddIcon, AccountsIcon$1 as AccountsIcon, AccountsIconSmall$1 as AccountsIconSmall, AchReturnIcon, AddObligation$1 as AddObligation, AddressForm, Alert$1 as Alert, AllocatedIcon, AmountCallout$1 as AmountCallout, ArrowDownCircleIconSmall, ArrowLeftCircleIconMedium, ArrowLeftCircleIconSmall, ArrowRightCircleIconSmall, ArrowRightIcon, ArrowUpCircleIconSmall, AutopayIcon, AutopayOnIcon, Badge$1 as Badge, BankIcon, BankIconLarge, Banner$1 as Banner, Box, BoxWithShadow$1 as BoxWithShadow, Breadcrumbs as Breadcrumb, ButtonWithAction, ButtonWithLink, CalendarIcon, Card$1 as Card, CarrotIcon$1 as CarrotIcon, CashIcon, Center, CenterSingle$1 as CenterSingle, CenterStack$1 as CenterStack, ChangePasswordForm, ChargebackIcon, ChargebackIconMedium, ChargebackIconSmall, ChargebackReversalIcon, ChargebackReversalIconMedium, ChargebackReversalIconSmall, CheckIcon, Checkbox$1 as Checkbox, CheckboxList$1 as CheckboxList, CheckmarkIcon, ChevronIcon$1 as ChevronIcon, CloseIcon, Cluster, CollapsibleSection$1 as CollapsibleSection, Copyable, CountryDropdown, Cover, CustomerSearchIcon, DefaultPageTemplate, Detail$1 as Detail, DisabledAccountsAddIcon, DisabledPaymentMethodsAddIcon, DisabledPropertiesAddIcon, DisplayBox$1 as DisplayBox, DisplayCard, Dropdown$1 as Dropdown, DuplicateIcon, EditNameForm, EditableList, EditableTable, EmailForm, EmptyCartIcon$1 as EmptyCartIcon, EmptyCartIconV2$1 as EmptyCartIconV2, ErroredIcon, ExternalLink, ExternalLinkIcon, FailedIcon, FindIconSmall$1 as FindIconSmall, FooterWithSubfooter$1 as FooterWithSubfooter, ForgotPasswordForm, ForgotPasswordIcon$1 as ForgotPasswordIcon, FormContainer$1 as FormContainer, FormFooterPanel$1 as FormFooterPanel, FormInput$1 as FormInput, FormInputColumn, FormInputRow, FormSelect$1 as FormSelect, FormattedAddress$1 as FormattedAddress, FormattedBankAccount$1 as FormattedBankAccount, FormattedCreditCard$1 as FormattedCreditCard, Frame, GenericCard, GenericCardLarge, GenericErrorIcon, GoToEmailIcon$1 as GoToEmailIcon, Grid, GuidedCheckoutImage, HamburgerButton, Heading$1 as Heading, HighlightTabRow$1 as HighlightTabRow, HistoryIconSmall$1 as HistoryIconSmall, IconAdd, IconQuitLarge, ImageBox, Imposter, InternalLink, Jumbo$1 as Jumbo, KebabMenuIcon, KioskImage, LabeledAmount$1 as LabeledAmount, LineItem$1 as LineItem, LinkCard$1 as LinkCard, Loading, LoadingLine, LoginForm, Modal$3 as Modal, Module$1 as Module, Motion, MultiCartIcon, NavFooter, NavHeader, NavMenuDesktop$1 as NavMenuDesktop, NavMenuMobile$1 as NavMenuMobile, NavTabs, NoCustomerResultsIcon, NoPaymentResultsIcon, NotFoundIcon, Obligation, iconsMap as ObligationIcons, Pagination$1 as Pagination, Paragraph$1 as Paragraph, PartialAmountForm, PasswordRequirements, PaymentButtonBar, PaymentDetails$1 as PaymentDetails, PaymentFormACH, PaymentFormCard$1 as PaymentFormCard, PaymentMethodAddIcon$1 as PaymentMethodAddIcon, PaymentMethodIcon$1 as PaymentMethodIcon, PaymentSearchIcon, PaymentsIconSmall$1 as PaymentsIconSmall, PencilIcon$1 as PencilIcon, PendingIcon, PeriscopeDashboardIframe, PeriscopeFailedIcon, PhoneForm, Placeholder$1 as Placeholder, PlusCircleIcon, PointOfSaleImage, Popover$1 as Popover, PopupMenu$1 as PopupMenu, ProcessingFee$1 as ProcessingFee, ProfileIcon$1 as ProfileIcon, ProfileIconSmall$1 as ProfileIconSmall, ProfileImage, PropertiesAddIcon$1 as PropertiesAddIcon, PropertiesIconSmall$1 as PropertiesIconSmall, RadioButton$2 as RadioButton, RadioButtonWithLabel$1 as RadioButtonWithLabel, RadioGroup, RadioSection$1 as RadioSection, Reel, RefundIcon, RefundIconMedium, RefundIconSmall, RegistrationForm, RejectedIcon, RejectedVelocityIcon, ResetConfirmationForm$1 as ResetConfirmationForm, ResetPasswordForm, ResetPasswordIcon, ResetPasswordSuccess, RevenueManagementImage, RoutingNumberImage, SearchIcon, SearchableSelect$1 as SearchableSelect, SettingsIconSmall$1 as SettingsIconSmall, ShoppingCartIcon, Sidebar, SidebarSingleContent$1 as SidebarSingleContent, SidebarStackContent$1 as SidebarStackContent, SolidDivider$1 as SolidDivider, Spinner$2 as Spinner, Stack, StandardCheckoutImage, FormStateDropdown as StateProvinceDropdown, StatusUnknownIcon, SuccessfulIcon, SuccessfulIconMedium, SuccessfulIconSmall, Switcher, TabSidebar$1 as TabSidebar, Table_styled as Table, TableBody_styled as TableBody, TableCell_styled as TableCell, TableHead$1 as TableHead, TableHeading_styled as TableHeading, TableListItem, TableRow$1 as TableRow, Tabs$1 as Tabs, TermsAndConditions, TermsAndConditionsModal$1 as TermsAndConditionsModal, Text$1 as Text, Timeout$1 as Timeout, TimeoutImage, Title$1 as Title, ToastNotification, ToggleSwitch$1 as ToggleSwitch, TrashIcon$1 as TrashIcon, TrashIconV2$1 as TrashIconV2, TypeaheadInput, VerifiedEmailIcon$1 as VerifiedEmailIcon, VoidedIcon, WalletBannerIcon$1 as WalletBannerIcon, WalletIcon$1 as WalletIcon, WalletIconSmall$1 as WalletIconSmall, WalletName, WarningIconXS, WelcomeModule$1 as WelcomeModule, WorkflowTile, XCircleIconMedium, XCircleIconSmall, cardRegistry, index$4 as constants, createPartialAmountFormState, createPartialAmountFormValidators, index$5 as hooks, index$6 as util, withWindowSize };
|
|
49784
|
+
export { AccountNumberImage, AccountsAddIcon$1 as AccountsAddIcon, AccountsIcon$1 as AccountsIcon, AccountsIconSmall$1 as AccountsIconSmall, AchReturnIcon, AddObligation$1 as AddObligation, AddressForm, Alert$1 as Alert, AllocatedIcon, AmountCallout$1 as AmountCallout, ArrowDownCircleIconSmall, ArrowLeftCircleIconMedium, ArrowLeftCircleIconSmall, ArrowRightCircleIconSmall, ArrowRightIcon, ArrowUpCircleIconSmall, AutopayIcon, AutopayOnIcon, Badge$1 as Badge, BankIcon, BankIconLarge, Banner$1 as Banner, Box, BoxWithShadow$1 as BoxWithShadow, Breadcrumbs as Breadcrumb, ButtonWithAction, ButtonWithLink, CalendarIcon, Card$1 as Card, CarrotIcon$1 as CarrotIcon, CashIcon, Center, CenterSingle$1 as CenterSingle, CenterStack$1 as CenterStack, ChangePasswordForm, ChargebackIcon, ChargebackIconMedium, ChargebackIconSmall, ChargebackReversalIcon, ChargebackReversalIconMedium, ChargebackReversalIconSmall, CheckIcon, Checkbox$1 as Checkbox, CheckboxList$1 as CheckboxList, CheckmarkIcon, ChevronIcon$1 as ChevronIcon, CloseIcon, Cluster, CollapsibleSection$1 as CollapsibleSection, Copyable, CountryDropdown, Cover, CustomerSearchIcon, DefaultPageTemplate, Detail$1 as Detail, DisabledAccountsAddIcon, DisabledPaymentMethodsAddIcon, DisabledPropertiesAddIcon, DisplayBox$1 as DisplayBox, DisplayCard, Dropdown$1 as Dropdown, DuplicateIcon, EditNameForm, EditableList, EditableTable, EmailForm, EmptyCartIcon$1 as EmptyCartIcon, EmptyCartIconV2$1 as EmptyCartIconV2, ErroredIcon, ExternalLink, ExternalLinkIcon, FailedIcon, FindIconSmall$1 as FindIconSmall, FooterWithSubfooter$1 as FooterWithSubfooter, ForgotPasswordForm, ForgotPasswordIcon$1 as ForgotPasswordIcon, FormContainer$1 as FormContainer, FormFooterPanel$1 as FormFooterPanel, FormInput$1 as FormInput, FormInputColumn, FormInputRow, FormSelect$1 as FormSelect, FormattedAddress$1 as FormattedAddress, FormattedBankAccount$1 as FormattedBankAccount, FormattedCreditCard$1 as FormattedCreditCard, Frame, GenericCard, GenericCardLarge, GenericErrorIcon, GoToEmailIcon$1 as GoToEmailIcon, Grid, GuidedCheckoutImage, HamburgerButton, Heading$1 as Heading, HighlightTabRow$1 as HighlightTabRow, HistoryIconSmall$1 as HistoryIconSmall, IconAdd, IconQuitLarge, ImageBox, Imposter, InternalLink, Jumbo$1 as Jumbo, KebabMenuIcon, KioskImage, LabeledAmount$1 as LabeledAmount, LineItem$1 as LineItem, LinkCard$1 as LinkCard, Loading, LoadingLine, LoginForm, Modal$3 as Modal, Module$1 as Module, Motion, MultiCartIcon, NavFooter, NavHeader, NavMenuDesktop$1 as NavMenuDesktop, NavMenuMobile$1 as NavMenuMobile, NavTabs, NoCustomerResultsIcon, NoPaymentResultsIcon, NotFoundIcon, Obligation, iconsMap as ObligationIcons, Pagination$1 as Pagination, Paragraph$1 as Paragraph, PartialAmountForm, PasswordRequirements, PaymentButtonBar, PaymentDetails$1 as PaymentDetails, PaymentFormACH, PaymentFormCard$1 as PaymentFormCard, PaymentMethodAddIcon$1 as PaymentMethodAddIcon, PaymentMethodIcon$1 as PaymentMethodIcon, PaymentSearchIcon, PaymentsIconSmall$1 as PaymentsIconSmall, PencilIcon$1 as PencilIcon, PendingIcon, PeriscopeDashboardIframe, PeriscopeFailedIcon, PhoneForm, Placeholder$1 as Placeholder, PlusCircleIcon, PointOfSaleImage, Popover$1 as Popover, PopupMenu$1 as PopupMenu, ProcessingFee$1 as ProcessingFee, ProfileIcon$1 as ProfileIcon, ProfileIconSmall$1 as ProfileIconSmall, ProfileImage, PropertiesAddIcon$1 as PropertiesAddIcon, PropertiesIconSmall$1 as PropertiesIconSmall, RadioButton$2 as RadioButton, RadioButtonWithLabel$1 as RadioButtonWithLabel, RadioGroup, RadioSection$1 as RadioSection, Reel, RefundIcon, RefundIconMedium, RefundIconSmall, RegistrationForm, RejectedIcon, RejectedVelocityIcon, ResetConfirmationForm$1 as ResetConfirmationForm, ResetPasswordForm, ResetPasswordIcon, ResetPasswordSuccess$1 as ResetPasswordSuccess, RevenueManagementImage, RoutingNumberImage, SearchIcon, SearchableSelect$1 as SearchableSelect, SettingsIconSmall$1 as SettingsIconSmall, ShoppingCartIcon, Sidebar, SidebarSingleContent$1 as SidebarSingleContent, SidebarStackContent$1 as SidebarStackContent, SolidDivider$1 as SolidDivider, Spinner$2 as Spinner, Stack, StandardCheckoutImage, FormStateDropdown as StateProvinceDropdown, StatusUnknownIcon, SuccessfulIcon, SuccessfulIconMedium, SuccessfulIconSmall, Switcher, TabSidebar$1 as TabSidebar, Table_styled as Table, TableBody_styled as TableBody, TableCell_styled as TableCell, TableHead$1 as TableHead, TableHeading_styled as TableHeading, TableListItem, TableRow$1 as TableRow, Tabs$1 as Tabs, TermsAndConditions, TermsAndConditionsModal$1 as TermsAndConditionsModal, Text$1 as Text, Timeout$1 as Timeout, TimeoutImage, Title$1 as Title, ToastNotification, ToggleSwitch$1 as ToggleSwitch, TrashIcon$1 as TrashIcon, TrashIconV2$1 as TrashIconV2, TypeaheadInput, VerifiedEmailIcon$1 as VerifiedEmailIcon, VoidedIcon, WalletBannerIcon$1 as WalletBannerIcon, WalletIcon$1 as WalletIcon, WalletIconSmall$1 as WalletIconSmall, WalletName, WarningIconXS, WelcomeModule$1 as WelcomeModule, WorkflowTile, XCircleIconMedium, XCircleIconSmall, cardRegistry, index$4 as constants, createPartialAmountFormState, createPartialAmountFormValidators, index$5 as hooks, index$6 as util, withWindowSize };
|
|
50302
49785
|
//# sourceMappingURL=index.esm.js.map
|