@thecb/components 10.4.8-beta.0 → 10.4.9-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -14131,9 +14131,7 @@ var GenericErrorIcon = function GenericErrorIcon() {
14131
14131
  }));
14132
14132
  };
14133
14133
 
14134
- var IconAdd = function IconAdd(_ref) {
14135
- var _ref$strokeWidth = _ref.strokeWidth,
14136
- strokeWidth = _ref$strokeWidth === void 0 ? 1 : _ref$strokeWidth;
14134
+ var IconAdd = function IconAdd() {
14137
14135
  return /*#__PURE__*/React__default.createElement("svg", {
14138
14136
  xmlns: "http://www.w3.org/2000/svg",
14139
14137
  xmlnsXlink: "http://www.w3.org/1999/xlink",
@@ -14143,13 +14141,12 @@ var IconAdd = function IconAdd(_ref) {
14143
14141
  className: "icon"
14144
14142
  }, /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("path", {
14145
14143
  id: "path-1",
14146
- strokeWidth: strokeWidth,
14147
14144
  d: "M7.91666623 4.78508747L4.78508747 4.78508747 4.78508747 7.91666623 3.74122788 7.91666623 3.74122788 4.78508747 0.609649123 4.78508747 0.609649123 3.74122788 3.74122788 3.74122788 3.74122788 0.609649123 4.78508747 0.609649123 4.78508747 3.74122788 7.91666623 3.74122788z"
14148
14145
  })), /*#__PURE__*/React__default.createElement("g", {
14149
14146
  fill: "none",
14150
14147
  fillRule: "evenodd",
14151
14148
  stroke: "none",
14152
- strokeWidth: strokeWidth
14149
+ strokeWidth: "1"
14153
14150
  }, /*#__PURE__*/React__default.createElement("g", {
14154
14151
  transform: "translate(-407 -563)"
14155
14152
  }, /*#__PURE__*/React__default.createElement("g", {
@@ -14167,10 +14164,9 @@ var IconAdd = function IconAdd(_ref) {
14167
14164
  xlinkHref: "#path-1"
14168
14165
  })), /*#__PURE__*/React__default.createElement("circle", {
14169
14166
  className: "stroke",
14170
- strokeWidth: strokeWidth,
14171
14167
  cx: "8.155",
14172
14168
  cy: "8.072",
14173
- r: strokeWidth == 1 ? "8" : "7"
14169
+ r: "8"
14174
14170
  }))))));
14175
14171
  };
14176
14172
 
@@ -14184,7 +14180,7 @@ var IconQuitLarge = function IconQuitLarge(_ref) {
14184
14180
  version: "1.1",
14185
14181
  xmlns: "http://www.w3.org/2000/svg",
14186
14182
  xmlnsXlink: "http://www.w3.org/1999/xlink"
14187
- }, /*#__PURE__*/React__default.createElement("title", null, "Icon/X"), /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("polygon", {
14183
+ }, /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("polygon", {
14188
14184
  id: "quit-large-path-1",
14189
14185
  points: "18.9999989 6.40999946 17.589999 4.9999997 11.9999993 10.5899995 6.40999946 4.9999997 4.9999997 6.40999946 10.5899995 11.9999993 4.9999997 17.589999 6.40999946 18.9999989 11.9999993 13.409999 17.589999 18.9999989 18.9999989 17.589999 13.409999 11.9999993"
14190
14186
  })), /*#__PURE__*/React__default.createElement("g", {
@@ -19312,6 +19308,7 @@ function _wrapNativeSuper(Class) {
19312
19308
  }
19313
19309
 
19314
19310
  // based on https://github.com/styled-components/styled-components/blob/fcf6f3804c57a14dd7984dfab7bc06ee2edca044/src/utils/error.js
19311
+
19315
19312
  /**
19316
19313
  * Parse errors.md and turn it into a simple hash of code: message
19317
19314
  * @private
@@ -19396,71 +19393,84 @@ var ERRORS = {
19396
19393
  "77": "remToPx expects a value in \"rem\" but you provided it in \"%s\".\n\n",
19397
19394
  "78": "base must be set in \"px\" or \"%\" but you set it in \"%s\".\n"
19398
19395
  };
19399
-
19400
19396
  /**
19401
19397
  * super basic version of sprintf
19402
19398
  * @private
19403
19399
  */
19400
+
19404
19401
  function format() {
19405
19402
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
19406
19403
  args[_key] = arguments[_key];
19407
19404
  }
19405
+
19408
19406
  var a = args[0];
19409
19407
  var b = [];
19410
19408
  var c;
19409
+
19411
19410
  for (c = 1; c < args.length; c += 1) {
19412
19411
  b.push(args[c]);
19413
19412
  }
19413
+
19414
19414
  b.forEach(function (d) {
19415
19415
  a = a.replace(/%[a-z]/, d);
19416
19416
  });
19417
19417
  return a;
19418
19418
  }
19419
-
19420
19419
  /**
19421
19420
  * Create an error file out of errors.md for development and a simple web link to the full errors
19422
19421
  * in production mode.
19423
19422
  * @private
19424
19423
  */
19424
+
19425
+
19425
19426
  var PolishedError = /*#__PURE__*/function (_Error) {
19426
19427
  _inheritsLoose(PolishedError, _Error);
19428
+
19427
19429
  function PolishedError(code) {
19428
19430
  var _this;
19431
+
19429
19432
  if (process.env.NODE_ENV === 'production') {
19430
19433
  _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;
19431
19434
  } else {
19432
19435
  for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
19433
19436
  args[_key2 - 1] = arguments[_key2];
19434
19437
  }
19438
+
19435
19439
  _this = _Error.call(this, format.apply(void 0, [ERRORS[code]].concat(args))) || this;
19436
19440
  }
19441
+
19437
19442
  return _assertThisInitialized(_this);
19438
19443
  }
19444
+
19439
19445
  return PolishedError;
19440
19446
  }( /*#__PURE__*/_wrapNativeSuper(Error));
19441
19447
 
19442
19448
  function colorToInt(color) {
19443
19449
  return Math.round(color * 255);
19444
19450
  }
19451
+
19445
19452
  function convertToInt(red, green, blue) {
19446
19453
  return colorToInt(red) + "," + colorToInt(green) + "," + colorToInt(blue);
19447
19454
  }
19455
+
19448
19456
  function hslToRgb(hue, saturation, lightness, convert) {
19449
19457
  if (convert === void 0) {
19450
19458
  convert = convertToInt;
19451
19459
  }
19460
+
19452
19461
  if (saturation === 0) {
19453
19462
  // achromatic
19454
19463
  return convert(lightness, lightness, lightness);
19455
- }
19464
+ } // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV
19465
+
19456
19466
 
19457
- // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV
19458
19467
  var huePrime = (hue % 360 + 360) % 360 / 60;
19459
19468
  var chroma = (1 - Math.abs(2 * lightness - 1)) * saturation;
19460
19469
  var secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));
19461
19470
  var red = 0;
19462
19471
  var green = 0;
19463
19472
  var blue = 0;
19473
+
19464
19474
  if (huePrime >= 0 && huePrime < 1) {
19465
19475
  red = chroma;
19466
19476
  green = secondComponent;
@@ -19480,6 +19490,7 @@ function hslToRgb(hue, saturation, lightness, convert) {
19480
19490
  red = chroma;
19481
19491
  blue = secondComponent;
19482
19492
  }
19493
+
19483
19494
  var lightnessModification = lightness - chroma / 2;
19484
19495
  var finalRed = red + lightnessModification;
19485
19496
  var finalGreen = green + lightnessModification;
@@ -19637,11 +19648,11 @@ var namedColorMap = {
19637
19648
  yellow: 'ff0',
19638
19649
  yellowgreen: '9acd32'
19639
19650
  };
19640
-
19641
19651
  /**
19642
19652
  * Checks if a string is a CSS named color and returns its equivalent hex value, otherwise returns the original color.
19643
19653
  * @private
19644
19654
  */
19655
+
19645
19656
  function nameToHex(color) {
19646
19657
  if (typeof color !== 'string') return color;
19647
19658
  var normalizedColorName = color.toLowerCase();
@@ -19656,7 +19667,6 @@ var rgbRegex = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\
19656
19667
  var rgbaRegex = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
19657
19668
  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;
19658
19669
  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;
19659
-
19660
19670
  /**
19661
19671
  * Returns an RgbColor or RgbaColor object. This utility function is only useful
19662
19672
  * if want to extract a color component. With the color util `toColorString` you
@@ -19668,11 +19678,14 @@ var hslaRegex = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[
19668
19678
  * // Assigns `{ red: 92, green: 102, blue: 112, alpha: 0.75 }` to color2
19669
19679
  * const color2 = parseToRgb('hsla(210, 10%, 40%, 0.75)');
19670
19680
  */
19681
+
19671
19682
  function parseToRgb(color) {
19672
19683
  if (typeof color !== 'string') {
19673
19684
  throw new PolishedError(3);
19674
19685
  }
19686
+
19675
19687
  var normalizedColor = nameToHex(color);
19688
+
19676
19689
  if (normalizedColor.match(hexRegex)) {
19677
19690
  return {
19678
19691
  red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
@@ -19680,6 +19693,7 @@ function parseToRgb(color) {
19680
19693
  blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16)
19681
19694
  };
19682
19695
  }
19696
+
19683
19697
  if (normalizedColor.match(hexRgbaRegex)) {
19684
19698
  var alpha = parseFloat((parseInt("" + normalizedColor[7] + normalizedColor[8], 16) / 255).toFixed(2));
19685
19699
  return {
@@ -19689,6 +19703,7 @@ function parseToRgb(color) {
19689
19703
  alpha: alpha
19690
19704
  };
19691
19705
  }
19706
+
19692
19707
  if (normalizedColor.match(reducedHexRegex)) {
19693
19708
  return {
19694
19709
  red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
@@ -19696,8 +19711,10 @@ function parseToRgb(color) {
19696
19711
  blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16)
19697
19712
  };
19698
19713
  }
19714
+
19699
19715
  if (normalizedColor.match(reducedRgbaHexRegex)) {
19700
19716
  var _alpha = parseFloat((parseInt("" + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2));
19717
+
19701
19718
  return {
19702
19719
  red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
19703
19720
  green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16),
@@ -19705,7 +19722,9 @@ function parseToRgb(color) {
19705
19722
  alpha: _alpha
19706
19723
  };
19707
19724
  }
19725
+
19708
19726
  var rgbMatched = rgbRegex.exec(normalizedColor);
19727
+
19709
19728
  if (rgbMatched) {
19710
19729
  return {
19711
19730
  red: parseInt("" + rgbMatched[1], 10),
@@ -19713,7 +19732,9 @@ function parseToRgb(color) {
19713
19732
  blue: parseInt("" + rgbMatched[3], 10)
19714
19733
  };
19715
19734
  }
19735
+
19716
19736
  var rgbaMatched = rgbaRegex.exec(normalizedColor.substring(0, 50));
19737
+
19717
19738
  if (rgbaMatched) {
19718
19739
  return {
19719
19740
  red: parseInt("" + rgbaMatched[1], 10),
@@ -19722,32 +19743,44 @@ function parseToRgb(color) {
19722
19743
  alpha: parseFloat("" + rgbaMatched[4]) > 1 ? parseFloat("" + rgbaMatched[4]) / 100 : parseFloat("" + rgbaMatched[4])
19723
19744
  };
19724
19745
  }
19746
+
19725
19747
  var hslMatched = hslRegex.exec(normalizedColor);
19748
+
19726
19749
  if (hslMatched) {
19727
19750
  var hue = parseInt("" + hslMatched[1], 10);
19728
19751
  var saturation = parseInt("" + hslMatched[2], 10) / 100;
19729
19752
  var lightness = parseInt("" + hslMatched[3], 10) / 100;
19730
19753
  var rgbColorString = "rgb(" + hslToRgb(hue, saturation, lightness) + ")";
19731
19754
  var hslRgbMatched = rgbRegex.exec(rgbColorString);
19755
+
19732
19756
  if (!hslRgbMatched) {
19733
19757
  throw new PolishedError(4, normalizedColor, rgbColorString);
19734
19758
  }
19759
+
19735
19760
  return {
19736
19761
  red: parseInt("" + hslRgbMatched[1], 10),
19737
19762
  green: parseInt("" + hslRgbMatched[2], 10),
19738
19763
  blue: parseInt("" + hslRgbMatched[3], 10)
19739
19764
  };
19740
19765
  }
19766
+
19741
19767
  var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50));
19768
+
19742
19769
  if (hslaMatched) {
19743
19770
  var _hue = parseInt("" + hslaMatched[1], 10);
19771
+
19744
19772
  var _saturation = parseInt("" + hslaMatched[2], 10) / 100;
19773
+
19745
19774
  var _lightness = parseInt("" + hslaMatched[3], 10) / 100;
19775
+
19746
19776
  var _rgbColorString = "rgb(" + hslToRgb(_hue, _saturation, _lightness) + ")";
19777
+
19747
19778
  var _hslRgbMatched = rgbRegex.exec(_rgbColorString);
19779
+
19748
19780
  if (!_hslRgbMatched) {
19749
19781
  throw new PolishedError(4, normalizedColor, _rgbColorString);
19750
19782
  }
19783
+
19751
19784
  return {
19752
19785
  red: parseInt("" + _hslRgbMatched[1], 10),
19753
19786
  green: parseInt("" + _hslRgbMatched[2], 10),
@@ -19755,80 +19788,8 @@ function parseToRgb(color) {
19755
19788
  alpha: parseFloat("" + hslaMatched[4]) > 1 ? parseFloat("" + hslaMatched[4]) / 100 : parseFloat("" + hslaMatched[4])
19756
19789
  };
19757
19790
  }
19758
- throw new PolishedError(5);
19759
- }
19760
19791
 
19761
- function rgbToHsl(color) {
19762
- // make sure rgb are contained in a set of [0, 255]
19763
- var red = color.red / 255;
19764
- var green = color.green / 255;
19765
- var blue = color.blue / 255;
19766
- var max = Math.max(red, green, blue);
19767
- var min = Math.min(red, green, blue);
19768
- var lightness = (max + min) / 2;
19769
- if (max === min) {
19770
- // achromatic
19771
- if (color.alpha !== undefined) {
19772
- return {
19773
- hue: 0,
19774
- saturation: 0,
19775
- lightness: lightness,
19776
- alpha: color.alpha
19777
- };
19778
- } else {
19779
- return {
19780
- hue: 0,
19781
- saturation: 0,
19782
- lightness: lightness
19783
- };
19784
- }
19785
- }
19786
- var hue;
19787
- var delta = max - min;
19788
- var saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min);
19789
- switch (max) {
19790
- case red:
19791
- hue = (green - blue) / delta + (green < blue ? 6 : 0);
19792
- break;
19793
- case green:
19794
- hue = (blue - red) / delta + 2;
19795
- break;
19796
- default:
19797
- // blue case
19798
- hue = (red - green) / delta + 4;
19799
- break;
19800
- }
19801
- hue *= 60;
19802
- if (color.alpha !== undefined) {
19803
- return {
19804
- hue: hue,
19805
- saturation: saturation,
19806
- lightness: lightness,
19807
- alpha: color.alpha
19808
- };
19809
- }
19810
- return {
19811
- hue: hue,
19812
- saturation: saturation,
19813
- lightness: lightness
19814
- };
19815
- }
19816
-
19817
- /**
19818
- * Returns an HslColor or HslaColor object. This utility function is only useful
19819
- * if want to extract a color component. With the color util `toColorString` you
19820
- * can convert a HslColor or HslaColor object back to a string.
19821
- *
19822
- * @example
19823
- * // Assigns `{ hue: 0, saturation: 1, lightness: 0.5 }` to color1
19824
- * const color1 = parseToHsl('rgb(255, 0, 0)');
19825
- * // Assigns `{ hue: 128, saturation: 1, lightness: 0.5, alpha: 0.75 }` to color2
19826
- * const color2 = parseToHsl('hsla(128, 100%, 50%, 0.75)');
19827
- */
19828
- function parseToHsl(color) {
19829
- // Note: At a later stage we can optimize this function as right now a hsl
19830
- // color would be parsed converted to rgb values and converted back to hsl.
19831
- return rgbToHsl(parseToRgb(color));
19792
+ throw new PolishedError(5);
19832
19793
  }
19833
19794
 
19834
19795
  /**
@@ -19839,8 +19800,10 @@ var reduceHexValue = function reduceHexValue(value) {
19839
19800
  if (value.length === 7 && value[1] === value[2] && value[3] === value[4] && value[5] === value[6]) {
19840
19801
  return "#" + value[1] + value[3] + value[5];
19841
19802
  }
19803
+
19842
19804
  return value;
19843
19805
  };
19806
+
19844
19807
  var reduceHexValue$1 = reduceHexValue;
19845
19808
 
19846
19809
  function numberToHex(value) {
@@ -19848,83 +19811,6 @@ function numberToHex(value) {
19848
19811
  return hex.length === 1 ? "0" + hex : hex;
19849
19812
  }
19850
19813
 
19851
- function colorToHex(color) {
19852
- return numberToHex(Math.round(color * 255));
19853
- }
19854
- function convertToHex(red, green, blue) {
19855
- return reduceHexValue$1("#" + colorToHex(red) + colorToHex(green) + colorToHex(blue));
19856
- }
19857
- function hslToHex(hue, saturation, lightness) {
19858
- return hslToRgb(hue, saturation, lightness, convertToHex);
19859
- }
19860
-
19861
- /**
19862
- * Returns a string value for the color. The returned result is the smallest possible hex notation.
19863
- *
19864
- * @example
19865
- * // Styles as object usage
19866
- * const styles = {
19867
- * background: hsl(359, 0.75, 0.4),
19868
- * background: hsl({ hue: 360, saturation: 0.75, lightness: 0.4 }),
19869
- * }
19870
- *
19871
- * // styled-components usage
19872
- * const div = styled.div`
19873
- * background: ${hsl(359, 0.75, 0.4)};
19874
- * background: ${hsl({ hue: 360, saturation: 0.75, lightness: 0.4 })};
19875
- * `
19876
- *
19877
- * // CSS in JS Output
19878
- *
19879
- * element {
19880
- * background: "#b3191c";
19881
- * background: "#b3191c";
19882
- * }
19883
- */
19884
- function hsl(value, saturation, lightness) {
19885
- if (typeof value === 'number' && typeof saturation === 'number' && typeof lightness === 'number') {
19886
- return hslToHex(value, saturation, lightness);
19887
- } else if (typeof value === 'object' && saturation === undefined && lightness === undefined) {
19888
- return hslToHex(value.hue, value.saturation, value.lightness);
19889
- }
19890
- throw new PolishedError(1);
19891
- }
19892
-
19893
- /**
19894
- * Returns a string value for the color. The returned result is the smallest possible rgba or hex notation.
19895
- *
19896
- * @example
19897
- * // Styles as object usage
19898
- * const styles = {
19899
- * background: hsla(359, 0.75, 0.4, 0.7),
19900
- * background: hsla({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0,7 }),
19901
- * background: hsla(359, 0.75, 0.4, 1),
19902
- * }
19903
- *
19904
- * // styled-components usage
19905
- * const div = styled.div`
19906
- * background: ${hsla(359, 0.75, 0.4, 0.7)};
19907
- * background: ${hsla({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0,7 })};
19908
- * background: ${hsla(359, 0.75, 0.4, 1)};
19909
- * `
19910
- *
19911
- * // CSS in JS Output
19912
- *
19913
- * element {
19914
- * background: "rgba(179,25,28,0.7)";
19915
- * background: "rgba(179,25,28,0.7)";
19916
- * background: "#b3191c";
19917
- * }
19918
- */
19919
- function hsla$1(value, saturation, lightness, alpha) {
19920
- if (typeof value === 'number' && typeof saturation === 'number' && typeof lightness === 'number' && typeof alpha === 'number') {
19921
- return alpha >= 1 ? hslToHex(value, saturation, lightness) : "rgba(" + hslToRgb(value, saturation, lightness) + "," + alpha + ")";
19922
- } else if (typeof value === 'object' && saturation === undefined && lightness === undefined && alpha === undefined) {
19923
- return value.alpha >= 1 ? hslToHex(value.hue, value.saturation, value.lightness) : "rgba(" + hslToRgb(value.hue, value.saturation, value.lightness) + "," + value.alpha + ")";
19924
- }
19925
- throw new PolishedError(2);
19926
- }
19927
-
19928
19814
  /**
19929
19815
  * Returns a string value for the color. The returned result is the smallest possible hex notation.
19930
19816
  *
@@ -19954,6 +19840,7 @@ function rgb(value, green, blue) {
19954
19840
  } else if (typeof value === 'object' && green === undefined && blue === undefined) {
19955
19841
  return reduceHexValue$1("#" + numberToHex(value.red) + numberToHex(value.green) + numberToHex(value.blue));
19956
19842
  }
19843
+
19957
19844
  throw new PolishedError(6);
19958
19845
  }
19959
19846
 
@@ -20000,60 +19887,8 @@ function rgba$1(firstValue, secondValue, thirdValue, fourthValue) {
20000
19887
  } else if (typeof firstValue === 'object' && secondValue === undefined && thirdValue === undefined && fourthValue === undefined) {
20001
19888
  return firstValue.alpha >= 1 ? rgb(firstValue.red, firstValue.green, firstValue.blue) : "rgba(" + firstValue.red + "," + firstValue.green + "," + firstValue.blue + "," + firstValue.alpha + ")";
20002
19889
  }
20003
- throw new PolishedError(7);
20004
- }
20005
19890
 
20006
- var isRgb = function isRgb(color) {
20007
- return typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number' && (typeof color.alpha !== 'number' || typeof color.alpha === 'undefined');
20008
- };
20009
- var isRgba$1 = function isRgba(color) {
20010
- return typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number' && typeof color.alpha === 'number';
20011
- };
20012
- var isHsl = function isHsl(color) {
20013
- return typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number' && (typeof color.alpha !== 'number' || typeof color.alpha === 'undefined');
20014
- };
20015
- var isHsla$1 = function isHsla(color) {
20016
- return typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number' && typeof color.alpha === 'number';
20017
- };
20018
-
20019
- /**
20020
- * Converts a RgbColor, RgbaColor, HslColor or HslaColor object to a color string.
20021
- * This util is useful in case you only know on runtime which color object is
20022
- * used. Otherwise we recommend to rely on `rgb`, `rgba`, `hsl` or `hsla`.
20023
- *
20024
- * @example
20025
- * // Styles as object usage
20026
- * const styles = {
20027
- * background: toColorString({ red: 255, green: 205, blue: 100 }),
20028
- * background: toColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 }),
20029
- * background: toColorString({ hue: 240, saturation: 1, lightness: 0.5 }),
20030
- * background: toColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 }),
20031
- * }
20032
- *
20033
- * // styled-components usage
20034
- * const div = styled.div`
20035
- * background: ${toColorString({ red: 255, green: 205, blue: 100 })};
20036
- * background: ${toColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 })};
20037
- * background: ${toColorString({ hue: 240, saturation: 1, lightness: 0.5 })};
20038
- * background: ${toColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 })};
20039
- * `
20040
- *
20041
- * // CSS in JS Output
20042
- * element {
20043
- * background: "#ffcd64";
20044
- * background: "rgba(255,205,100,0.72)";
20045
- * background: "#00f";
20046
- * background: "rgba(179,25,25,0.72)";
20047
- * }
20048
- */
20049
-
20050
- function toColorString(color) {
20051
- if (typeof color !== 'object') throw new PolishedError(8);
20052
- if (isRgba$1(color)) return rgba$1(color);
20053
- if (isRgb(color)) return rgb(color);
20054
- if (isHsla$1(color)) return hsla$1(color);
20055
- if (isHsl(color)) return hsl(color);
20056
- throw new PolishedError(8);
19891
+ throw new PolishedError(7);
20057
19892
  }
20058
19893
 
20059
19894
  // Type definitions taken from https://github.com/gcanti/flow-static-land/blob/master/src/Fun.js
@@ -20066,156 +19901,14 @@ function curried(f, length, acc) {
20066
19901
  var combined = acc.concat(Array.prototype.slice.call(arguments));
20067
19902
  return combined.length >= length ? f.apply(this, combined) : curried(f, length, combined);
20068
19903
  };
20069
- }
19904
+ } // eslint-disable-next-line no-redeclare
19905
+
20070
19906
 
20071
- // eslint-disable-next-line no-redeclare
20072
19907
  function curry(f) {
20073
19908
  // eslint-disable-line no-redeclare
20074
19909
  return curried(f, f.length, []);
20075
19910
  }
20076
19911
 
20077
- /**
20078
- * Changes the hue of the color. Hue is a number between 0 to 360. The first
20079
- * argument for adjustHue is the amount of degrees the color is rotated around
20080
- * the color wheel, always producing a positive hue value.
20081
- *
20082
- * @example
20083
- * // Styles as object usage
20084
- * const styles = {
20085
- * background: adjustHue(180, '#448'),
20086
- * background: adjustHue('180', 'rgba(101,100,205,0.7)'),
20087
- * }
20088
- *
20089
- * // styled-components usage
20090
- * const div = styled.div`
20091
- * background: ${adjustHue(180, '#448')};
20092
- * background: ${adjustHue('180', 'rgba(101,100,205,0.7)')};
20093
- * `
20094
- *
20095
- * // CSS in JS Output
20096
- * element {
20097
- * background: "#888844";
20098
- * background: "rgba(136,136,68,0.7)";
20099
- * }
20100
- */
20101
- function adjustHue(degree, color) {
20102
- if (color === 'transparent') return color;
20103
- var hslColor = parseToHsl(color);
20104
- return toColorString(_extends$1({}, hslColor, {
20105
- hue: hslColor.hue + parseFloat(degree)
20106
- }));
20107
- }
20108
-
20109
- // prettier-ignore
20110
- var curriedAdjustHue = curry /* ::<number | string, string, string> */(adjustHue);
20111
-
20112
- function guard(lowerBoundary, upperBoundary, value) {
20113
- return Math.max(lowerBoundary, Math.min(upperBoundary, value));
20114
- }
20115
-
20116
- /**
20117
- * Returns a string value for the darkened color.
20118
- *
20119
- * @example
20120
- * // Styles as object usage
20121
- * const styles = {
20122
- * background: darken(0.2, '#FFCD64'),
20123
- * background: darken('0.2', 'rgba(255,205,100,0.7)'),
20124
- * }
20125
- *
20126
- * // styled-components usage
20127
- * const div = styled.div`
20128
- * background: ${darken(0.2, '#FFCD64')};
20129
- * background: ${darken('0.2', 'rgba(255,205,100,0.7)')};
20130
- * `
20131
- *
20132
- * // CSS in JS Output
20133
- *
20134
- * element {
20135
- * background: "#ffbd31";
20136
- * background: "rgba(255,189,49,0.7)";
20137
- * }
20138
- */
20139
- function darken(amount, color) {
20140
- if (color === 'transparent') return color;
20141
- var hslColor = parseToHsl(color);
20142
- return toColorString(_extends$1({}, hslColor, {
20143
- lightness: guard(0, 1, hslColor.lightness - parseFloat(amount))
20144
- }));
20145
- }
20146
-
20147
- // prettier-ignore
20148
- var curriedDarken = curry /* ::<number | string, string, string> */(darken);
20149
-
20150
- /**
20151
- * Decreases the intensity of a color. Its range is between 0 to 1. The first
20152
- * argument of the desaturate function is the amount by how much the color
20153
- * intensity should be decreased.
20154
- *
20155
- * @example
20156
- * // Styles as object usage
20157
- * const styles = {
20158
- * background: desaturate(0.2, '#CCCD64'),
20159
- * background: desaturate('0.2', 'rgba(204,205,100,0.7)'),
20160
- * }
20161
- *
20162
- * // styled-components usage
20163
- * const div = styled.div`
20164
- * background: ${desaturate(0.2, '#CCCD64')};
20165
- * background: ${desaturate('0.2', 'rgba(204,205,100,0.7)')};
20166
- * `
20167
- *
20168
- * // CSS in JS Output
20169
- * element {
20170
- * background: "#b8b979";
20171
- * background: "rgba(184,185,121,0.7)";
20172
- * }
20173
- */
20174
- function desaturate(amount, color) {
20175
- if (color === 'transparent') return color;
20176
- var hslColor = parseToHsl(color);
20177
- return toColorString(_extends$1({}, hslColor, {
20178
- saturation: guard(0, 1, hslColor.saturation - parseFloat(amount))
20179
- }));
20180
- }
20181
-
20182
- // prettier-ignore
20183
- var curriedDesaturate = curry /* ::<number | string, string, string> */(desaturate);
20184
-
20185
- /**
20186
- * Returns a string value for the lightened color.
20187
- *
20188
- * @example
20189
- * // Styles as object usage
20190
- * const styles = {
20191
- * background: lighten(0.2, '#CCCD64'),
20192
- * background: lighten('0.2', 'rgba(204,205,100,0.7)'),
20193
- * }
20194
- *
20195
- * // styled-components usage
20196
- * const div = styled.div`
20197
- * background: ${lighten(0.2, '#FFCD64')};
20198
- * background: ${lighten('0.2', 'rgba(204,205,100,0.7)')};
20199
- * `
20200
- *
20201
- * // CSS in JS Output
20202
- *
20203
- * element {
20204
- * background: "#e5e6b1";
20205
- * background: "rgba(229,230,177,0.7)";
20206
- * }
20207
- */
20208
- function lighten(amount, color) {
20209
- if (color === 'transparent') return color;
20210
- var hslColor = parseToHsl(color);
20211
- return toColorString(_extends$1({}, hslColor, {
20212
- lightness: guard(0, 1, hslColor.lightness + parseFloat(amount))
20213
- }));
20214
- }
20215
-
20216
- // prettier-ignore
20217
- var curriedLighten = curry /* ::<number | string, string, string> */(lighten);
20218
-
20219
19912
  /**
20220
19913
  * 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.
20221
19914
  *
@@ -20242,21 +19935,25 @@ var curriedLighten = curry /* ::<number | string, string, string> */(lighten);
20242
19935
  * background: "rgba(63, 0, 191, 0.75)";
20243
19936
  * }
20244
19937
  */
19938
+
20245
19939
  function mix$1(weight, color, otherColor) {
20246
19940
  if (color === 'transparent') return otherColor;
20247
19941
  if (otherColor === 'transparent') return color;
20248
19942
  if (weight === 0) return otherColor;
20249
19943
  var parsedColor1 = parseToRgb(color);
19944
+
20250
19945
  var color1 = _extends$1({}, parsedColor1, {
20251
19946
  alpha: typeof parsedColor1.alpha === 'number' ? parsedColor1.alpha : 1
20252
19947
  });
19948
+
20253
19949
  var parsedColor2 = parseToRgb(otherColor);
19950
+
20254
19951
  var color2 = _extends$1({}, parsedColor2, {
20255
19952
  alpha: typeof parsedColor2.alpha === 'number' ? parsedColor2.alpha : 1
20256
- });
20257
-
20258
- // The formula is copied from the original Sass implementation:
19953
+ }); // The formula is copied from the original Sass implementation:
20259
19954
  // http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method
19955
+
19956
+
20260
19957
  var alphaDelta = color1.alpha - color2.alpha;
20261
19958
  var x = parseFloat(weight) * 2 - 1;
20262
19959
  var y = x * alphaDelta === -1 ? x : x + alphaDelta;
@@ -20270,217 +19967,13 @@ function mix$1(weight, color, otherColor) {
20270
19967
  alpha: color1.alpha * parseFloat(weight) + color2.alpha * (1 - parseFloat(weight))
20271
19968
  };
20272
19969
  return rgba$1(mixedColor);
20273
- }
20274
-
20275
- // prettier-ignore
20276
- var curriedMix = curry /* ::<number | string, string, string, string> */(mix$1);
20277
- var mix$1$1 = curriedMix;
20278
-
20279
- /**
20280
- * Increases the opacity of a color. Its range for the amount is between 0 to 1.
20281
- *
20282
- *
20283
- * @example
20284
- * // Styles as object usage
20285
- * const styles = {
20286
- * background: opacify(0.1, 'rgba(255, 255, 255, 0.9)');
20287
- * background: opacify(0.2, 'hsla(0, 0%, 100%, 0.5)'),
20288
- * background: opacify('0.5', 'rgba(255, 0, 0, 0.2)'),
20289
- * }
20290
- *
20291
- * // styled-components usage
20292
- * const div = styled.div`
20293
- * background: ${opacify(0.1, 'rgba(255, 255, 255, 0.9)')};
20294
- * background: ${opacify(0.2, 'hsla(0, 0%, 100%, 0.5)')},
20295
- * background: ${opacify('0.5', 'rgba(255, 0, 0, 0.2)')},
20296
- * `
20297
- *
20298
- * // CSS in JS Output
20299
- *
20300
- * element {
20301
- * background: "#fff";
20302
- * background: "rgba(255,255,255,0.7)";
20303
- * background: "rgba(255,0,0,0.7)";
20304
- * }
20305
- */
20306
- function opacify(amount, color) {
20307
- if (color === 'transparent') return color;
20308
- var parsedColor = parseToRgb(color);
20309
- var alpha = typeof parsedColor.alpha === 'number' ? parsedColor.alpha : 1;
20310
- var colorWithAlpha = _extends$1({}, parsedColor, {
20311
- alpha: guard(0, 1, (alpha * 100 + parseFloat(amount) * 100) / 100)
20312
- });
20313
- return rgba$1(colorWithAlpha);
20314
- }
20315
-
20316
- // prettier-ignore
20317
- var curriedOpacify = curry /* ::<number | string, string, string> */(opacify);
20318
-
20319
- /**
20320
- * Increases the intensity of a color. Its range is between 0 to 1. The first
20321
- * argument of the saturate function is the amount by how much the color
20322
- * intensity should be increased.
20323
- *
20324
- * @example
20325
- * // Styles as object usage
20326
- * const styles = {
20327
- * background: saturate(0.2, '#CCCD64'),
20328
- * background: saturate('0.2', 'rgba(204,205,100,0.7)'),
20329
- * }
20330
- *
20331
- * // styled-components usage
20332
- * const div = styled.div`
20333
- * background: ${saturate(0.2, '#FFCD64')};
20334
- * background: ${saturate('0.2', 'rgba(204,205,100,0.7)')};
20335
- * `
20336
- *
20337
- * // CSS in JS Output
20338
- *
20339
- * element {
20340
- * background: "#e0e250";
20341
- * background: "rgba(224,226,80,0.7)";
20342
- * }
20343
- */
20344
- function saturate(amount, color) {
20345
- if (color === 'transparent') return color;
20346
- var hslColor = parseToHsl(color);
20347
- return toColorString(_extends$1({}, hslColor, {
20348
- saturation: guard(0, 1, hslColor.saturation + parseFloat(amount))
20349
- }));
20350
- }
20351
-
20352
- // prettier-ignore
20353
- var curriedSaturate = curry /* ::<number | string, string, string> */(saturate);
20354
-
20355
- /**
20356
- * Sets the hue of a color to the provided value. The hue range can be
20357
- * from 0 and 359.
20358
- *
20359
- * @example
20360
- * // Styles as object usage
20361
- * const styles = {
20362
- * background: setHue(42, '#CCCD64'),
20363
- * background: setHue('244', 'rgba(204,205,100,0.7)'),
20364
- * }
20365
- *
20366
- * // styled-components usage
20367
- * const div = styled.div`
20368
- * background: ${setHue(42, '#CCCD64')};
20369
- * background: ${setHue('244', 'rgba(204,205,100,0.7)')};
20370
- * `
20371
- *
20372
- * // CSS in JS Output
20373
- * element {
20374
- * background: "#cdae64";
20375
- * background: "rgba(107,100,205,0.7)";
20376
- * }
20377
- */
20378
- function setHue(hue, color) {
20379
- if (color === 'transparent') return color;
20380
- return toColorString(_extends$1({}, parseToHsl(color), {
20381
- hue: parseFloat(hue)
20382
- }));
20383
- }
20384
-
20385
- // prettier-ignore
20386
- var curriedSetHue = curry /* ::<number | string, string, string> */(setHue);
20387
-
20388
- /**
20389
- * Sets the lightness of a color to the provided value. The lightness range can be
20390
- * from 0 and 1.
20391
- *
20392
- * @example
20393
- * // Styles as object usage
20394
- * const styles = {
20395
- * background: setLightness(0.2, '#CCCD64'),
20396
- * background: setLightness('0.75', 'rgba(204,205,100,0.7)'),
20397
- * }
20398
- *
20399
- * // styled-components usage
20400
- * const div = styled.div`
20401
- * background: ${setLightness(0.2, '#CCCD64')};
20402
- * background: ${setLightness('0.75', 'rgba(204,205,100,0.7)')};
20403
- * `
20404
- *
20405
- * // CSS in JS Output
20406
- * element {
20407
- * background: "#4d4d19";
20408
- * background: "rgba(223,224,159,0.7)";
20409
- * }
20410
- */
20411
- function setLightness(lightness, color) {
20412
- if (color === 'transparent') return color;
20413
- return toColorString(_extends$1({}, parseToHsl(color), {
20414
- lightness: parseFloat(lightness)
20415
- }));
20416
- }
19970
+ } // prettier-ignore
20417
19971
 
20418
- // prettier-ignore
20419
- var curriedSetLightness = curry /* ::<number | string, string, string> */(setLightness);
20420
19972
 
20421
- /**
20422
- * Sets the saturation of a color to the provided value. The saturation range can be
20423
- * from 0 and 1.
20424
- *
20425
- * @example
20426
- * // Styles as object usage
20427
- * const styles = {
20428
- * background: setSaturation(0.2, '#CCCD64'),
20429
- * background: setSaturation('0.75', 'rgba(204,205,100,0.7)'),
20430
- * }
20431
- *
20432
- * // styled-components usage
20433
- * const div = styled.div`
20434
- * background: ${setSaturation(0.2, '#CCCD64')};
20435
- * background: ${setSaturation('0.75', 'rgba(204,205,100,0.7)')};
20436
- * `
20437
- *
20438
- * // CSS in JS Output
20439
- * element {
20440
- * background: "#adad84";
20441
- * background: "rgba(228,229,76,0.7)";
20442
- * }
20443
- */
20444
- function setSaturation(saturation, color) {
20445
- if (color === 'transparent') return color;
20446
- return toColorString(_extends$1({}, parseToHsl(color), {
20447
- saturation: parseFloat(saturation)
20448
- }));
20449
- }
20450
-
20451
- // prettier-ignore
20452
- var curriedSetSaturation = curry /* ::<number | string, string, string> */(setSaturation);
20453
-
20454
- /**
20455
- * Shades a color by mixing it with black. `shade` can produce
20456
- * hue shifts, where as `darken` manipulates the luminance channel and therefore
20457
- * doesn't produce hue shifts.
20458
- *
20459
- * @example
20460
- * // Styles as object usage
20461
- * const styles = {
20462
- * background: shade(0.25, '#00f')
20463
- * }
20464
- *
20465
- * // styled-components usage
20466
- * const div = styled.div`
20467
- * background: ${shade(0.25, '#00f')};
20468
- * `
20469
- *
20470
- * // CSS in JS Output
20471
- *
20472
- * element {
20473
- * background: "#00003f";
20474
- * }
20475
- */
20476
-
20477
- function shade(percentage, color) {
20478
- if (color === 'transparent') return color;
20479
- return mix$1$1(parseFloat(percentage), 'rgb(0, 0, 0)', color);
20480
- }
20481
-
20482
- // prettier-ignore
20483
- var curriedShade = curry /* ::<number | string, string, string> */(shade);
19973
+ var curriedMix = /*#__PURE__*/curry
19974
+ /* ::<number | string, string, string, string> */
19975
+ (mix$1);
19976
+ var mix$1$1 = curriedMix;
20484
19977
 
20485
19978
  /**
20486
19979
  * Tints a color by mixing it with white. `tint` can produce
@@ -20508,51 +20001,13 @@ var curriedShade = curry /* ::<number | string, string, string> */(shade);
20508
20001
  function tint(percentage, color) {
20509
20002
  if (color === 'transparent') return color;
20510
20003
  return mix$1$1(parseFloat(percentage), 'rgb(255, 255, 255)', color);
20511
- }
20004
+ } // prettier-ignore
20512
20005
 
20513
- // prettier-ignore
20514
- var curriedTint = curry /* ::<number | string, string, string> */(tint);
20515
- var curriedTint$1 = curriedTint;
20516
-
20517
- /**
20518
- * Decreases the opacity of a color. Its range for the amount is between 0 to 1.
20519
- *
20520
- *
20521
- * @example
20522
- * // Styles as object usage
20523
- * const styles = {
20524
- * background: transparentize(0.1, '#fff'),
20525
- * background: transparentize(0.2, 'hsl(0, 0%, 100%)'),
20526
- * background: transparentize('0.5', 'rgba(255, 0, 0, 0.8)'),
20527
- * }
20528
- *
20529
- * // styled-components usage
20530
- * const div = styled.div`
20531
- * background: ${transparentize(0.1, '#fff')};
20532
- * background: ${transparentize(0.2, 'hsl(0, 0%, 100%)')};
20533
- * background: ${transparentize('0.5', 'rgba(255, 0, 0, 0.8)')};
20534
- * `
20535
- *
20536
- * // CSS in JS Output
20537
- *
20538
- * element {
20539
- * background: "rgba(255,255,255,0.9)";
20540
- * background: "rgba(255,255,255,0.8)";
20541
- * background: "rgba(255,0,0,0.3)";
20542
- * }
20543
- */
20544
- function transparentize(amount, color) {
20545
- if (color === 'transparent') return color;
20546
- var parsedColor = parseToRgb(color);
20547
- var alpha = typeof parsedColor.alpha === 'number' ? parsedColor.alpha : 1;
20548
- var colorWithAlpha = _extends$1({}, parsedColor, {
20549
- alpha: guard(0, 1, +(alpha * 100 - parseFloat(amount) * 100).toFixed(2) / 100)
20550
- });
20551
- return rgba$1(colorWithAlpha);
20552
- }
20553
20006
 
20554
- // prettier-ignore
20555
- var curriedTransparentize = curry /* ::<number | string, string, string> */(transparentize);
20007
+ var curriedTint = /*#__PURE__*/curry
20008
+ /* ::<number | string, string, string> */
20009
+ (tint);
20010
+ var curriedTint$1 = curriedTint;
20556
20011
 
20557
20012
  var linkColor = MATISSE_BLUE;
20558
20013
  var fallbackValues$8 = {
@@ -23243,19 +22698,32 @@ var toIndexedObject = function (it) {
23243
22698
  return indexedObject(requireObjectCoercible(it));
23244
22699
  };
23245
22700
 
23246
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
23247
22701
  var documentAll = typeof document == 'object' && document.all;
23248
22702
 
22703
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
22704
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
22705
+ var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
22706
+
22707
+ var documentAll_1 = {
22708
+ all: documentAll,
22709
+ IS_HTMLDDA: IS_HTMLDDA
22710
+ };
22711
+
22712
+ var documentAll$1 = documentAll_1.all;
22713
+
23249
22714
  // `IsCallable` abstract operation
23250
22715
  // https://tc39.es/ecma262/#sec-iscallable
23251
- // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
23252
- var isCallable = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
23253
- return typeof argument == 'function' || argument === documentAll;
22716
+ var isCallable = documentAll_1.IS_HTMLDDA ? function (argument) {
22717
+ return typeof argument == 'function' || argument === documentAll$1;
23254
22718
  } : function (argument) {
23255
22719
  return typeof argument == 'function';
23256
22720
  };
23257
22721
 
23258
- var isObject = function (it) {
22722
+ var documentAll$2 = documentAll_1.all;
22723
+
22724
+ var isObject = documentAll_1.IS_HTMLDDA ? function (it) {
22725
+ return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll$2;
22726
+ } : function (it) {
23259
22727
  return typeof it == 'object' ? it !== null : isCallable(it);
23260
22728
  };
23261
22729
 
@@ -23391,10 +22859,10 @@ var shared = createCommonjsModule(function (module) {
23391
22859
  (module.exports = function (key, value) {
23392
22860
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
23393
22861
  })('versions', []).push({
23394
- version: '3.35.1',
22862
+ version: '3.33.3',
23395
22863
  mode: 'global',
23396
- copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
23397
- license: 'https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE',
22864
+ copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
22865
+ license: 'https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE',
23398
22866
  source: 'https://github.com/zloirock/core-js'
23399
22867
  });
23400
22868
  });
@@ -23691,7 +23159,7 @@ var TEMPLATE = String(String).split('String');
23691
23159
 
23692
23160
  var makeBuiltIn = module.exports = function (value, name, options) {
23693
23161
  if (stringSlice($String(name), 0, 7) === 'Symbol(') {
23694
- name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
23162
+ name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
23695
23163
  }
23696
23164
  if (options && options.getter) name = 'get ' + name;
23697
23165
  if (options && options.setter) name = 'set ' + name;
@@ -23779,8 +23247,7 @@ var min$1 = Math.min;
23779
23247
  // `ToLength` abstract operation
23780
23248
  // https://tc39.es/ecma262/#sec-tolength
23781
23249
  var toLength = function (argument) {
23782
- var len = toIntegerOrInfinity(argument);
23783
- return len > 0 ? min$1(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
23250
+ return argument > 0 ? min$1(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
23784
23251
  };
23785
23252
 
23786
23253
  // `LengthOfArrayLike` abstract operation
@@ -23940,7 +23407,7 @@ var _export = function (options, source) {
23940
23407
  } else if (STATIC) {
23941
23408
  target = global_1[TARGET] || defineGlobalProperty(TARGET, {});
23942
23409
  } else {
23943
- target = global_1[TARGET] && global_1[TARGET].prototype;
23410
+ target = (global_1[TARGET] || {}).prototype;
23944
23411
  }
23945
23412
  if (target) for (key in source) {
23946
23413
  sourceProperty = source[key];
@@ -24203,15 +23670,11 @@ var functionUncurryThisAccessor = function (object, key, method) {
24203
23670
  } catch (error) { /* empty */ }
24204
23671
  };
24205
23672
 
24206
- var isPossiblePrototype = function (argument) {
24207
- return isObject(argument) || argument === null;
24208
- };
24209
-
24210
23673
  var $String$4 = String;
24211
23674
  var $TypeError$6 = TypeError;
24212
23675
 
24213
23676
  var aPossiblePrototype = function (argument) {
24214
- if (isPossiblePrototype(argument)) return argument;
23677
+ if (typeof argument == 'object' || isCallable(argument)) return argument;
24215
23678
  throw new $TypeError$6("Can't set " + $String$4(argument) + ' as a prototype');
24216
23679
  };
24217
23680
 
@@ -25998,7 +25461,7 @@ var useToastNotification = function useToastNotification() {
25998
25461
  toastState = _useState2[0],
25999
25462
  setToastState = _useState2[1];
26000
25463
  React.useEffect(function () {
26001
- if (toastState.isOpen) {
25464
+ if (toastState.isOpen && timeout > 0) {
26002
25465
  setTimeout(function () {
26003
25466
  setToastState(initialToastState);
26004
25467
  }, timeout);
@@ -27840,13 +27303,13 @@ var Placeholder = function Placeholder(_ref2) {
27840
27303
  childGap: "0"
27841
27304
  }, variant === "large" && /*#__PURE__*/React__default.createElement("div", null), /*#__PURE__*/React__default.createElement(Box, {
27842
27305
  padding: "0",
27843
- extraStyles: ".fill { \n fill: ".concat(variant === "large" ? CHARADE_GREY : themeValues.color, "; \n } .stroke { \n stroke: ").concat(variant === "large" ? CHARADE_GREY : themeValues.color, "; \n } ")
27306
+ extraStyles: ".fill { \n fill: ".concat(variant === "large" ? CHARADE_GREY : themeValues.color, "; \n } .stroke { \n stroke: ").concat(variant === "large" ? CHARADE_GREY : themeValues.color, "; \n }")
27844
27307
  }, variant === "large" ? /*#__PURE__*/React__default.createElement(Center, {
27845
27308
  intrinsic: true
27846
27309
  }, getLargeIcon(largeIcon), /*#__PURE__*/React__default.createElement(Text$1, {
27847
27310
  variant: "pS",
27848
27311
  color: themeValues.color,
27849
- weight: FONT_WEIGHT_SEMIBOLD,
27312
+ weight: FONT_WEIGHT_REGULAR,
27850
27313
  extraStyles: "text-align: center;"
27851
27314
  }, text)) : /*#__PURE__*/React__default.createElement(Cover, {
27852
27315
  singleChild: true,
@@ -27854,14 +27317,12 @@ var Placeholder = function Placeholder(_ref2) {
27854
27317
  }, /*#__PURE__*/React__default.createElement(Cluster, {
27855
27318
  justify: "center",
27856
27319
  align: "center"
27857
- }, /*#__PURE__*/React__default.createElement(IconAdd, {
27858
- strokeWidth: "2"
27859
- }), /*#__PURE__*/React__default.createElement(Center, {
27320
+ }, /*#__PURE__*/React__default.createElement(IconAdd, null), /*#__PURE__*/React__default.createElement(Center, {
27860
27321
  intrinsic: true
27861
27322
  }, /*#__PURE__*/React__default.createElement(Text$1, {
27862
27323
  variant: "pS",
27863
27324
  color: themeValues.color,
27864
- weight: FONT_WEIGHT_SEMIBOLD,
27325
+ weight: FONT_WEIGHT_REGULAR,
27865
27326
  extraStyles: "padding: 0 0 0 8px; text-align: center;"
27866
27327
  }, text)))))))))));
27867
27328
  };
@@ -49925,7 +49386,9 @@ var ToastNotification = function ToastNotification(_ref) {
49925
49386
  height = _ref$height === void 0 ? "56px" : _ref$height,
49926
49387
  _ref$childGap = _ref.childGap,
49927
49388
  childGap = _ref$childGap === void 0 ? "1rem" : _ref$childGap,
49928
- backgroundColor = _ref.backgroundColor;
49389
+ backgroundColor = _ref.backgroundColor,
49390
+ _ref$role = _ref.role,
49391
+ role = _ref$role === void 0 ? "alert" : _ref$role;
49929
49392
  return /*#__PURE__*/React__default.createElement(Box, {
49930
49393
  onClick: closeToastNotification,
49931
49394
  background: backgroundColor ? backgroundColor : variant === VARIANTS.SUCCESS ? HINT_GREEN : variant === VARIANTS.ERROR ? ERROR_BACKGROUND_COLOR : WHITE,
@@ -49936,7 +49399,12 @@ var ToastNotification = function ToastNotification(_ref) {
49936
49399
  padding: "0rem 1rem",
49937
49400
  borderRadius: "4px",
49938
49401
  boxShadow: generateShadows().standard.base,
49939
- extraStyles: "\n display: ".concat(toastOpen ? "block" : "none", ";\n position: fixed; bottom: 4rem; left: 4rem;\n ").concat(extraStyles, ";\n cursor: pointer;\n ")
49402
+ extraStyles: "\n display: ".concat(toastOpen ? "block" : "none", ";\n position: fixed; bottom: 4rem; left: 4rem;\n ").concat(extraStyles, ";\n cursor: pointer;\n "),
49403
+ role: role
49404
+ }, /*#__PURE__*/React__default.createElement(Cluster, {
49405
+ align: "center",
49406
+ childGap: childGap,
49407
+ justify: "space-between"
49940
49408
  }, /*#__PURE__*/React__default.createElement(Cluster, {
49941
49409
  align: "center",
49942
49410
  childGap: childGap
@@ -49946,7 +49414,7 @@ var ToastNotification = function ToastNotification(_ref) {
49946
49414
  }, /*#__PURE__*/React__default.createElement(Paragraph$1, {
49947
49415
  weight: FONT_WEIGHT_SEMIBOLD,
49948
49416
  extraStyles: "word-break: break-word;"
49949
- }, message)), /*#__PURE__*/React__default.createElement(IconQuitLarge, null)));
49417
+ }, message))), /*#__PURE__*/React__default.createElement(IconQuitLarge, null)));
49950
49418
  };
49951
49419
 
49952
49420
  var fontWeight$9 = "600";