@thecb/components 10.3.1 → 10.3.2-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.esm.js CHANGED
@@ -19248,7 +19248,6 @@ function _wrapNativeSuper(Class) {
19248
19248
  }
19249
19249
 
19250
19250
  // based on https://github.com/styled-components/styled-components/blob/fcf6f3804c57a14dd7984dfab7bc06ee2edca044/src/utils/error.js
19251
-
19252
19251
  /**
19253
19252
  * Parse errors.md and turn it into a simple hash of code: message
19254
19253
  * @private
@@ -19333,84 +19332,71 @@ var ERRORS = {
19333
19332
  "77": "remToPx expects a value in \"rem\" but you provided it in \"%s\".\n\n",
19334
19333
  "78": "base must be set in \"px\" or \"%\" but you set it in \"%s\".\n"
19335
19334
  };
19335
+
19336
19336
  /**
19337
19337
  * super basic version of sprintf
19338
19338
  * @private
19339
19339
  */
19340
-
19341
19340
  function format() {
19342
19341
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
19343
19342
  args[_key] = arguments[_key];
19344
19343
  }
19345
-
19346
19344
  var a = args[0];
19347
19345
  var b = [];
19348
19346
  var c;
19349
-
19350
19347
  for (c = 1; c < args.length; c += 1) {
19351
19348
  b.push(args[c]);
19352
19349
  }
19353
-
19354
19350
  b.forEach(function (d) {
19355
19351
  a = a.replace(/%[a-z]/, d);
19356
19352
  });
19357
19353
  return a;
19358
19354
  }
19355
+
19359
19356
  /**
19360
19357
  * Create an error file out of errors.md for development and a simple web link to the full errors
19361
19358
  * in production mode.
19362
19359
  * @private
19363
19360
  */
19364
-
19365
-
19366
19361
  var PolishedError = /*#__PURE__*/function (_Error) {
19367
19362
  _inheritsLoose(PolishedError, _Error);
19368
-
19369
19363
  function PolishedError(code) {
19370
19364
  var _this;
19371
-
19372
19365
  if (process.env.NODE_ENV === 'production') {
19373
19366
  _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;
19374
19367
  } else {
19375
19368
  for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
19376
19369
  args[_key2 - 1] = arguments[_key2];
19377
19370
  }
19378
-
19379
19371
  _this = _Error.call(this, format.apply(void 0, [ERRORS[code]].concat(args))) || this;
19380
19372
  }
19381
-
19382
19373
  return _assertThisInitialized(_this);
19383
19374
  }
19384
-
19385
19375
  return PolishedError;
19386
19376
  }( /*#__PURE__*/_wrapNativeSuper(Error));
19387
19377
 
19388
19378
  function colorToInt(color) {
19389
19379
  return Math.round(color * 255);
19390
19380
  }
19391
-
19392
19381
  function convertToInt(red, green, blue) {
19393
19382
  return colorToInt(red) + "," + colorToInt(green) + "," + colorToInt(blue);
19394
19383
  }
19395
-
19396
19384
  function hslToRgb(hue, saturation, lightness, convert) {
19397
19385
  if (convert === void 0) {
19398
19386
  convert = convertToInt;
19399
19387
  }
19400
-
19401
19388
  if (saturation === 0) {
19402
19389
  // achromatic
19403
19390
  return convert(lightness, lightness, lightness);
19404
- } // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV
19405
-
19391
+ }
19406
19392
 
19393
+ // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV
19407
19394
  var huePrime = (hue % 360 + 360) % 360 / 60;
19408
19395
  var chroma = (1 - Math.abs(2 * lightness - 1)) * saturation;
19409
19396
  var secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));
19410
19397
  var red = 0;
19411
19398
  var green = 0;
19412
19399
  var blue = 0;
19413
-
19414
19400
  if (huePrime >= 0 && huePrime < 1) {
19415
19401
  red = chroma;
19416
19402
  green = secondComponent;
@@ -19430,7 +19416,6 @@ function hslToRgb(hue, saturation, lightness, convert) {
19430
19416
  red = chroma;
19431
19417
  blue = secondComponent;
19432
19418
  }
19433
-
19434
19419
  var lightnessModification = lightness - chroma / 2;
19435
19420
  var finalRed = red + lightnessModification;
19436
19421
  var finalGreen = green + lightnessModification;
@@ -19588,11 +19573,11 @@ var namedColorMap = {
19588
19573
  yellow: 'ff0',
19589
19574
  yellowgreen: '9acd32'
19590
19575
  };
19576
+
19591
19577
  /**
19592
19578
  * Checks if a string is a CSS named color and returns its equivalent hex value, otherwise returns the original color.
19593
19579
  * @private
19594
19580
  */
19595
-
19596
19581
  function nameToHex(color) {
19597
19582
  if (typeof color !== 'string') return color;
19598
19583
  var normalizedColorName = color.toLowerCase();
@@ -19607,6 +19592,7 @@ var rgbRegex = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\
19607
19592
  var rgbaRegex = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
19608
19593
  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;
19609
19594
  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;
19595
+
19610
19596
  /**
19611
19597
  * Returns an RgbColor or RgbaColor object. This utility function is only useful
19612
19598
  * if want to extract a color component. With the color util `toColorString` you
@@ -19618,14 +19604,11 @@ var hslaRegex = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[
19618
19604
  * // Assigns `{ red: 92, green: 102, blue: 112, alpha: 0.75 }` to color2
19619
19605
  * const color2 = parseToRgb('hsla(210, 10%, 40%, 0.75)');
19620
19606
  */
19621
-
19622
19607
  function parseToRgb(color) {
19623
19608
  if (typeof color !== 'string') {
19624
19609
  throw new PolishedError(3);
19625
19610
  }
19626
-
19627
19611
  var normalizedColor = nameToHex(color);
19628
-
19629
19612
  if (normalizedColor.match(hexRegex)) {
19630
19613
  return {
19631
19614
  red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
@@ -19633,7 +19616,6 @@ function parseToRgb(color) {
19633
19616
  blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16)
19634
19617
  };
19635
19618
  }
19636
-
19637
19619
  if (normalizedColor.match(hexRgbaRegex)) {
19638
19620
  var alpha = parseFloat((parseInt("" + normalizedColor[7] + normalizedColor[8], 16) / 255).toFixed(2));
19639
19621
  return {
@@ -19643,7 +19625,6 @@ function parseToRgb(color) {
19643
19625
  alpha: alpha
19644
19626
  };
19645
19627
  }
19646
-
19647
19628
  if (normalizedColor.match(reducedHexRegex)) {
19648
19629
  return {
19649
19630
  red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
@@ -19651,10 +19632,8 @@ function parseToRgb(color) {
19651
19632
  blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16)
19652
19633
  };
19653
19634
  }
19654
-
19655
19635
  if (normalizedColor.match(reducedRgbaHexRegex)) {
19656
19636
  var _alpha = parseFloat((parseInt("" + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2));
19657
-
19658
19637
  return {
19659
19638
  red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
19660
19639
  green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16),
@@ -19662,9 +19641,7 @@ function parseToRgb(color) {
19662
19641
  alpha: _alpha
19663
19642
  };
19664
19643
  }
19665
-
19666
19644
  var rgbMatched = rgbRegex.exec(normalizedColor);
19667
-
19668
19645
  if (rgbMatched) {
19669
19646
  return {
19670
19647
  red: parseInt("" + rgbMatched[1], 10),
@@ -19672,9 +19649,7 @@ function parseToRgb(color) {
19672
19649
  blue: parseInt("" + rgbMatched[3], 10)
19673
19650
  };
19674
19651
  }
19675
-
19676
19652
  var rgbaMatched = rgbaRegex.exec(normalizedColor.substring(0, 50));
19677
-
19678
19653
  if (rgbaMatched) {
19679
19654
  return {
19680
19655
  red: parseInt("" + rgbaMatched[1], 10),
@@ -19683,44 +19658,32 @@ function parseToRgb(color) {
19683
19658
  alpha: parseFloat("" + rgbaMatched[4]) > 1 ? parseFloat("" + rgbaMatched[4]) / 100 : parseFloat("" + rgbaMatched[4])
19684
19659
  };
19685
19660
  }
19686
-
19687
19661
  var hslMatched = hslRegex.exec(normalizedColor);
19688
-
19689
19662
  if (hslMatched) {
19690
19663
  var hue = parseInt("" + hslMatched[1], 10);
19691
19664
  var saturation = parseInt("" + hslMatched[2], 10) / 100;
19692
19665
  var lightness = parseInt("" + hslMatched[3], 10) / 100;
19693
19666
  var rgbColorString = "rgb(" + hslToRgb(hue, saturation, lightness) + ")";
19694
19667
  var hslRgbMatched = rgbRegex.exec(rgbColorString);
19695
-
19696
19668
  if (!hslRgbMatched) {
19697
19669
  throw new PolishedError(4, normalizedColor, rgbColorString);
19698
19670
  }
19699
-
19700
19671
  return {
19701
19672
  red: parseInt("" + hslRgbMatched[1], 10),
19702
19673
  green: parseInt("" + hslRgbMatched[2], 10),
19703
19674
  blue: parseInt("" + hslRgbMatched[3], 10)
19704
19675
  };
19705
19676
  }
19706
-
19707
19677
  var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50));
19708
-
19709
19678
  if (hslaMatched) {
19710
19679
  var _hue = parseInt("" + hslaMatched[1], 10);
19711
-
19712
19680
  var _saturation = parseInt("" + hslaMatched[2], 10) / 100;
19713
-
19714
19681
  var _lightness = parseInt("" + hslaMatched[3], 10) / 100;
19715
-
19716
19682
  var _rgbColorString = "rgb(" + hslToRgb(_hue, _saturation, _lightness) + ")";
19717
-
19718
19683
  var _hslRgbMatched = rgbRegex.exec(_rgbColorString);
19719
-
19720
19684
  if (!_hslRgbMatched) {
19721
19685
  throw new PolishedError(4, normalizedColor, _rgbColorString);
19722
19686
  }
19723
-
19724
19687
  return {
19725
19688
  red: parseInt("" + _hslRgbMatched[1], 10),
19726
19689
  green: parseInt("" + _hslRgbMatched[2], 10),
@@ -19728,10 +19691,82 @@ function parseToRgb(color) {
19728
19691
  alpha: parseFloat("" + hslaMatched[4]) > 1 ? parseFloat("" + hslaMatched[4]) / 100 : parseFloat("" + hslaMatched[4])
19729
19692
  };
19730
19693
  }
19731
-
19732
19694
  throw new PolishedError(5);
19733
19695
  }
19734
19696
 
19697
+ function rgbToHsl(color) {
19698
+ // make sure rgb are contained in a set of [0, 255]
19699
+ var red = color.red / 255;
19700
+ var green = color.green / 255;
19701
+ var blue = color.blue / 255;
19702
+ var max = Math.max(red, green, blue);
19703
+ var min = Math.min(red, green, blue);
19704
+ var lightness = (max + min) / 2;
19705
+ if (max === min) {
19706
+ // achromatic
19707
+ if (color.alpha !== undefined) {
19708
+ return {
19709
+ hue: 0,
19710
+ saturation: 0,
19711
+ lightness: lightness,
19712
+ alpha: color.alpha
19713
+ };
19714
+ } else {
19715
+ return {
19716
+ hue: 0,
19717
+ saturation: 0,
19718
+ lightness: lightness
19719
+ };
19720
+ }
19721
+ }
19722
+ var hue;
19723
+ var delta = max - min;
19724
+ var saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min);
19725
+ switch (max) {
19726
+ case red:
19727
+ hue = (green - blue) / delta + (green < blue ? 6 : 0);
19728
+ break;
19729
+ case green:
19730
+ hue = (blue - red) / delta + 2;
19731
+ break;
19732
+ default:
19733
+ // blue case
19734
+ hue = (red - green) / delta + 4;
19735
+ break;
19736
+ }
19737
+ hue *= 60;
19738
+ if (color.alpha !== undefined) {
19739
+ return {
19740
+ hue: hue,
19741
+ saturation: saturation,
19742
+ lightness: lightness,
19743
+ alpha: color.alpha
19744
+ };
19745
+ }
19746
+ return {
19747
+ hue: hue,
19748
+ saturation: saturation,
19749
+ lightness: lightness
19750
+ };
19751
+ }
19752
+
19753
+ /**
19754
+ * Returns an HslColor or HslaColor object. This utility function is only useful
19755
+ * if want to extract a color component. With the color util `toColorString` you
19756
+ * can convert a HslColor or HslaColor object back to a string.
19757
+ *
19758
+ * @example
19759
+ * // Assigns `{ hue: 0, saturation: 1, lightness: 0.5 }` to color1
19760
+ * const color1 = parseToHsl('rgb(255, 0, 0)');
19761
+ * // Assigns `{ hue: 128, saturation: 1, lightness: 0.5, alpha: 0.75 }` to color2
19762
+ * const color2 = parseToHsl('hsla(128, 100%, 50%, 0.75)');
19763
+ */
19764
+ function parseToHsl(color) {
19765
+ // Note: At a later stage we can optimize this function as right now a hsl
19766
+ // color would be parsed converted to rgb values and converted back to hsl.
19767
+ return rgbToHsl(parseToRgb(color));
19768
+ }
19769
+
19735
19770
  /**
19736
19771
  * Reduces hex values if possible e.g. #ff8866 to #f86
19737
19772
  * @private
@@ -19740,10 +19775,8 @@ var reduceHexValue = function reduceHexValue(value) {
19740
19775
  if (value.length === 7 && value[1] === value[2] && value[3] === value[4] && value[5] === value[6]) {
19741
19776
  return "#" + value[1] + value[3] + value[5];
19742
19777
  }
19743
-
19744
19778
  return value;
19745
19779
  };
19746
-
19747
19780
  var reduceHexValue$1 = reduceHexValue;
19748
19781
 
19749
19782
  function numberToHex(value) {
@@ -19751,6 +19784,83 @@ function numberToHex(value) {
19751
19784
  return hex.length === 1 ? "0" + hex : hex;
19752
19785
  }
19753
19786
 
19787
+ function colorToHex(color) {
19788
+ return numberToHex(Math.round(color * 255));
19789
+ }
19790
+ function convertToHex(red, green, blue) {
19791
+ return reduceHexValue$1("#" + colorToHex(red) + colorToHex(green) + colorToHex(blue));
19792
+ }
19793
+ function hslToHex(hue, saturation, lightness) {
19794
+ return hslToRgb(hue, saturation, lightness, convertToHex);
19795
+ }
19796
+
19797
+ /**
19798
+ * Returns a string value for the color. The returned result is the smallest possible hex notation.
19799
+ *
19800
+ * @example
19801
+ * // Styles as object usage
19802
+ * const styles = {
19803
+ * background: hsl(359, 0.75, 0.4),
19804
+ * background: hsl({ hue: 360, saturation: 0.75, lightness: 0.4 }),
19805
+ * }
19806
+ *
19807
+ * // styled-components usage
19808
+ * const div = styled.div`
19809
+ * background: ${hsl(359, 0.75, 0.4)};
19810
+ * background: ${hsl({ hue: 360, saturation: 0.75, lightness: 0.4 })};
19811
+ * `
19812
+ *
19813
+ * // CSS in JS Output
19814
+ *
19815
+ * element {
19816
+ * background: "#b3191c";
19817
+ * background: "#b3191c";
19818
+ * }
19819
+ */
19820
+ function hsl(value, saturation, lightness) {
19821
+ if (typeof value === 'number' && typeof saturation === 'number' && typeof lightness === 'number') {
19822
+ return hslToHex(value, saturation, lightness);
19823
+ } else if (typeof value === 'object' && saturation === undefined && lightness === undefined) {
19824
+ return hslToHex(value.hue, value.saturation, value.lightness);
19825
+ }
19826
+ throw new PolishedError(1);
19827
+ }
19828
+
19829
+ /**
19830
+ * Returns a string value for the color. The returned result is the smallest possible rgba or hex notation.
19831
+ *
19832
+ * @example
19833
+ * // Styles as object usage
19834
+ * const styles = {
19835
+ * background: hsla(359, 0.75, 0.4, 0.7),
19836
+ * background: hsla({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0,7 }),
19837
+ * background: hsla(359, 0.75, 0.4, 1),
19838
+ * }
19839
+ *
19840
+ * // styled-components usage
19841
+ * const div = styled.div`
19842
+ * background: ${hsla(359, 0.75, 0.4, 0.7)};
19843
+ * background: ${hsla({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0,7 })};
19844
+ * background: ${hsla(359, 0.75, 0.4, 1)};
19845
+ * `
19846
+ *
19847
+ * // CSS in JS Output
19848
+ *
19849
+ * element {
19850
+ * background: "rgba(179,25,28,0.7)";
19851
+ * background: "rgba(179,25,28,0.7)";
19852
+ * background: "#b3191c";
19853
+ * }
19854
+ */
19855
+ function hsla$1(value, saturation, lightness, alpha) {
19856
+ if (typeof value === 'number' && typeof saturation === 'number' && typeof lightness === 'number' && typeof alpha === 'number') {
19857
+ return alpha >= 1 ? hslToHex(value, saturation, lightness) : "rgba(" + hslToRgb(value, saturation, lightness) + "," + alpha + ")";
19858
+ } else if (typeof value === 'object' && saturation === undefined && lightness === undefined && alpha === undefined) {
19859
+ return value.alpha >= 1 ? hslToHex(value.hue, value.saturation, value.lightness) : "rgba(" + hslToRgb(value.hue, value.saturation, value.lightness) + "," + value.alpha + ")";
19860
+ }
19861
+ throw new PolishedError(2);
19862
+ }
19863
+
19754
19864
  /**
19755
19865
  * Returns a string value for the color. The returned result is the smallest possible hex notation.
19756
19866
  *
@@ -19780,7 +19890,6 @@ function rgb(value, green, blue) {
19780
19890
  } else if (typeof value === 'object' && green === undefined && blue === undefined) {
19781
19891
  return reduceHexValue$1("#" + numberToHex(value.red) + numberToHex(value.green) + numberToHex(value.blue));
19782
19892
  }
19783
-
19784
19893
  throw new PolishedError(6);
19785
19894
  }
19786
19895
 
@@ -19827,10 +19936,62 @@ function rgba$1(firstValue, secondValue, thirdValue, fourthValue) {
19827
19936
  } else if (typeof firstValue === 'object' && secondValue === undefined && thirdValue === undefined && fourthValue === undefined) {
19828
19937
  return firstValue.alpha >= 1 ? rgb(firstValue.red, firstValue.green, firstValue.blue) : "rgba(" + firstValue.red + "," + firstValue.green + "," + firstValue.blue + "," + firstValue.alpha + ")";
19829
19938
  }
19830
-
19831
19939
  throw new PolishedError(7);
19832
19940
  }
19833
19941
 
19942
+ var isRgb = function isRgb(color) {
19943
+ return typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number' && (typeof color.alpha !== 'number' || typeof color.alpha === 'undefined');
19944
+ };
19945
+ var isRgba$1 = function isRgba(color) {
19946
+ return typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number' && typeof color.alpha === 'number';
19947
+ };
19948
+ var isHsl = function isHsl(color) {
19949
+ return typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number' && (typeof color.alpha !== 'number' || typeof color.alpha === 'undefined');
19950
+ };
19951
+ var isHsla$1 = function isHsla(color) {
19952
+ return typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number' && typeof color.alpha === 'number';
19953
+ };
19954
+
19955
+ /**
19956
+ * Converts a RgbColor, RgbaColor, HslColor or HslaColor object to a color string.
19957
+ * This util is useful in case you only know on runtime which color object is
19958
+ * used. Otherwise we recommend to rely on `rgb`, `rgba`, `hsl` or `hsla`.
19959
+ *
19960
+ * @example
19961
+ * // Styles as object usage
19962
+ * const styles = {
19963
+ * background: toColorString({ red: 255, green: 205, blue: 100 }),
19964
+ * background: toColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 }),
19965
+ * background: toColorString({ hue: 240, saturation: 1, lightness: 0.5 }),
19966
+ * background: toColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 }),
19967
+ * }
19968
+ *
19969
+ * // styled-components usage
19970
+ * const div = styled.div`
19971
+ * background: ${toColorString({ red: 255, green: 205, blue: 100 })};
19972
+ * background: ${toColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 })};
19973
+ * background: ${toColorString({ hue: 240, saturation: 1, lightness: 0.5 })};
19974
+ * background: ${toColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 })};
19975
+ * `
19976
+ *
19977
+ * // CSS in JS Output
19978
+ * element {
19979
+ * background: "#ffcd64";
19980
+ * background: "rgba(255,205,100,0.72)";
19981
+ * background: "#00f";
19982
+ * background: "rgba(179,25,25,0.72)";
19983
+ * }
19984
+ */
19985
+
19986
+ function toColorString(color) {
19987
+ if (typeof color !== 'object') throw new PolishedError(8);
19988
+ if (isRgba$1(color)) return rgba$1(color);
19989
+ if (isRgb(color)) return rgb(color);
19990
+ if (isHsla$1(color)) return hsla$1(color);
19991
+ if (isHsl(color)) return hsl(color);
19992
+ throw new PolishedError(8);
19993
+ }
19994
+
19834
19995
  // Type definitions taken from https://github.com/gcanti/flow-static-land/blob/master/src/Fun.js
19835
19996
  // eslint-disable-next-line no-unused-vars
19836
19997
  // eslint-disable-next-line no-unused-vars
@@ -19841,14 +20002,156 @@ function curried(f, length, acc) {
19841
20002
  var combined = acc.concat(Array.prototype.slice.call(arguments));
19842
20003
  return combined.length >= length ? f.apply(this, combined) : curried(f, length, combined);
19843
20004
  };
19844
- } // eslint-disable-next-line no-redeclare
19845
-
20005
+ }
19846
20006
 
20007
+ // eslint-disable-next-line no-redeclare
19847
20008
  function curry(f) {
19848
20009
  // eslint-disable-line no-redeclare
19849
20010
  return curried(f, f.length, []);
19850
20011
  }
19851
20012
 
20013
+ /**
20014
+ * Changes the hue of the color. Hue is a number between 0 to 360. The first
20015
+ * argument for adjustHue is the amount of degrees the color is rotated around
20016
+ * the color wheel, always producing a positive hue value.
20017
+ *
20018
+ * @example
20019
+ * // Styles as object usage
20020
+ * const styles = {
20021
+ * background: adjustHue(180, '#448'),
20022
+ * background: adjustHue('180', 'rgba(101,100,205,0.7)'),
20023
+ * }
20024
+ *
20025
+ * // styled-components usage
20026
+ * const div = styled.div`
20027
+ * background: ${adjustHue(180, '#448')};
20028
+ * background: ${adjustHue('180', 'rgba(101,100,205,0.7)')};
20029
+ * `
20030
+ *
20031
+ * // CSS in JS Output
20032
+ * element {
20033
+ * background: "#888844";
20034
+ * background: "rgba(136,136,68,0.7)";
20035
+ * }
20036
+ */
20037
+ function adjustHue(degree, color) {
20038
+ if (color === 'transparent') return color;
20039
+ var hslColor = parseToHsl(color);
20040
+ return toColorString(_extends$1({}, hslColor, {
20041
+ hue: hslColor.hue + parseFloat(degree)
20042
+ }));
20043
+ }
20044
+
20045
+ // prettier-ignore
20046
+ var curriedAdjustHue = curry /* ::<number | string, string, string> */(adjustHue);
20047
+
20048
+ function guard(lowerBoundary, upperBoundary, value) {
20049
+ return Math.max(lowerBoundary, Math.min(upperBoundary, value));
20050
+ }
20051
+
20052
+ /**
20053
+ * Returns a string value for the darkened color.
20054
+ *
20055
+ * @example
20056
+ * // Styles as object usage
20057
+ * const styles = {
20058
+ * background: darken(0.2, '#FFCD64'),
20059
+ * background: darken('0.2', 'rgba(255,205,100,0.7)'),
20060
+ * }
20061
+ *
20062
+ * // styled-components usage
20063
+ * const div = styled.div`
20064
+ * background: ${darken(0.2, '#FFCD64')};
20065
+ * background: ${darken('0.2', 'rgba(255,205,100,0.7)')};
20066
+ * `
20067
+ *
20068
+ * // CSS in JS Output
20069
+ *
20070
+ * element {
20071
+ * background: "#ffbd31";
20072
+ * background: "rgba(255,189,49,0.7)";
20073
+ * }
20074
+ */
20075
+ function darken(amount, color) {
20076
+ if (color === 'transparent') return color;
20077
+ var hslColor = parseToHsl(color);
20078
+ return toColorString(_extends$1({}, hslColor, {
20079
+ lightness: guard(0, 1, hslColor.lightness - parseFloat(amount))
20080
+ }));
20081
+ }
20082
+
20083
+ // prettier-ignore
20084
+ var curriedDarken = curry /* ::<number | string, string, string> */(darken);
20085
+
20086
+ /**
20087
+ * Decreases the intensity of a color. Its range is between 0 to 1. The first
20088
+ * argument of the desaturate function is the amount by how much the color
20089
+ * intensity should be decreased.
20090
+ *
20091
+ * @example
20092
+ * // Styles as object usage
20093
+ * const styles = {
20094
+ * background: desaturate(0.2, '#CCCD64'),
20095
+ * background: desaturate('0.2', 'rgba(204,205,100,0.7)'),
20096
+ * }
20097
+ *
20098
+ * // styled-components usage
20099
+ * const div = styled.div`
20100
+ * background: ${desaturate(0.2, '#CCCD64')};
20101
+ * background: ${desaturate('0.2', 'rgba(204,205,100,0.7)')};
20102
+ * `
20103
+ *
20104
+ * // CSS in JS Output
20105
+ * element {
20106
+ * background: "#b8b979";
20107
+ * background: "rgba(184,185,121,0.7)";
20108
+ * }
20109
+ */
20110
+ function desaturate(amount, color) {
20111
+ if (color === 'transparent') return color;
20112
+ var hslColor = parseToHsl(color);
20113
+ return toColorString(_extends$1({}, hslColor, {
20114
+ saturation: guard(0, 1, hslColor.saturation - parseFloat(amount))
20115
+ }));
20116
+ }
20117
+
20118
+ // prettier-ignore
20119
+ var curriedDesaturate = curry /* ::<number | string, string, string> */(desaturate);
20120
+
20121
+ /**
20122
+ * Returns a string value for the lightened color.
20123
+ *
20124
+ * @example
20125
+ * // Styles as object usage
20126
+ * const styles = {
20127
+ * background: lighten(0.2, '#CCCD64'),
20128
+ * background: lighten('0.2', 'rgba(204,205,100,0.7)'),
20129
+ * }
20130
+ *
20131
+ * // styled-components usage
20132
+ * const div = styled.div`
20133
+ * background: ${lighten(0.2, '#FFCD64')};
20134
+ * background: ${lighten('0.2', 'rgba(204,205,100,0.7)')};
20135
+ * `
20136
+ *
20137
+ * // CSS in JS Output
20138
+ *
20139
+ * element {
20140
+ * background: "#e5e6b1";
20141
+ * background: "rgba(229,230,177,0.7)";
20142
+ * }
20143
+ */
20144
+ function lighten(amount, color) {
20145
+ if (color === 'transparent') return color;
20146
+ var hslColor = parseToHsl(color);
20147
+ return toColorString(_extends$1({}, hslColor, {
20148
+ lightness: guard(0, 1, hslColor.lightness + parseFloat(amount))
20149
+ }));
20150
+ }
20151
+
20152
+ // prettier-ignore
20153
+ var curriedLighten = curry /* ::<number | string, string, string> */(lighten);
20154
+
19852
20155
  /**
19853
20156
  * 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.
19854
20157
  *
@@ -19875,25 +20178,21 @@ function curry(f) {
19875
20178
  * background: "rgba(63, 0, 191, 0.75)";
19876
20179
  * }
19877
20180
  */
19878
-
19879
20181
  function mix$1(weight, color, otherColor) {
19880
20182
  if (color === 'transparent') return otherColor;
19881
20183
  if (otherColor === 'transparent') return color;
19882
20184
  if (weight === 0) return otherColor;
19883
20185
  var parsedColor1 = parseToRgb(color);
19884
-
19885
20186
  var color1 = _extends$1({}, parsedColor1, {
19886
20187
  alpha: typeof parsedColor1.alpha === 'number' ? parsedColor1.alpha : 1
19887
20188
  });
19888
-
19889
20189
  var parsedColor2 = parseToRgb(otherColor);
19890
-
19891
20190
  var color2 = _extends$1({}, parsedColor2, {
19892
20191
  alpha: typeof parsedColor2.alpha === 'number' ? parsedColor2.alpha : 1
19893
- }); // The formula is copied from the original Sass implementation:
19894
- // http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method
19895
-
20192
+ });
19896
20193
 
20194
+ // The formula is copied from the original Sass implementation:
20195
+ // http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method
19897
20196
  var alphaDelta = color1.alpha - color2.alpha;
19898
20197
  var x = parseFloat(weight) * 2 - 1;
19899
20198
  var y = x * alphaDelta === -1 ? x : x + alphaDelta;
@@ -19907,14 +20206,218 @@ function mix$1(weight, color, otherColor) {
19907
20206
  alpha: color1.alpha * parseFloat(weight) + color2.alpha * (1 - parseFloat(weight))
19908
20207
  };
19909
20208
  return rgba$1(mixedColor);
19910
- } // prettier-ignore
19911
-
20209
+ }
19912
20210
 
19913
- var curriedMix = /*#__PURE__*/curry
19914
- /* ::<number | string, string, string, string> */
19915
- (mix$1);
20211
+ // prettier-ignore
20212
+ var curriedMix = curry /* ::<number | string, string, string, string> */(mix$1);
19916
20213
  var mix$1$1 = curriedMix;
19917
20214
 
20215
+ /**
20216
+ * Increases the opacity of a color. Its range for the amount is between 0 to 1.
20217
+ *
20218
+ *
20219
+ * @example
20220
+ * // Styles as object usage
20221
+ * const styles = {
20222
+ * background: opacify(0.1, 'rgba(255, 255, 255, 0.9)');
20223
+ * background: opacify(0.2, 'hsla(0, 0%, 100%, 0.5)'),
20224
+ * background: opacify('0.5', 'rgba(255, 0, 0, 0.2)'),
20225
+ * }
20226
+ *
20227
+ * // styled-components usage
20228
+ * const div = styled.div`
20229
+ * background: ${opacify(0.1, 'rgba(255, 255, 255, 0.9)')};
20230
+ * background: ${opacify(0.2, 'hsla(0, 0%, 100%, 0.5)')},
20231
+ * background: ${opacify('0.5', 'rgba(255, 0, 0, 0.2)')},
20232
+ * `
20233
+ *
20234
+ * // CSS in JS Output
20235
+ *
20236
+ * element {
20237
+ * background: "#fff";
20238
+ * background: "rgba(255,255,255,0.7)";
20239
+ * background: "rgba(255,0,0,0.7)";
20240
+ * }
20241
+ */
20242
+ function opacify(amount, color) {
20243
+ if (color === 'transparent') return color;
20244
+ var parsedColor = parseToRgb(color);
20245
+ var alpha = typeof parsedColor.alpha === 'number' ? parsedColor.alpha : 1;
20246
+ var colorWithAlpha = _extends$1({}, parsedColor, {
20247
+ alpha: guard(0, 1, (alpha * 100 + parseFloat(amount) * 100) / 100)
20248
+ });
20249
+ return rgba$1(colorWithAlpha);
20250
+ }
20251
+
20252
+ // prettier-ignore
20253
+ var curriedOpacify = curry /* ::<number | string, string, string> */(opacify);
20254
+
20255
+ /**
20256
+ * Increases the intensity of a color. Its range is between 0 to 1. The first
20257
+ * argument of the saturate function is the amount by how much the color
20258
+ * intensity should be increased.
20259
+ *
20260
+ * @example
20261
+ * // Styles as object usage
20262
+ * const styles = {
20263
+ * background: saturate(0.2, '#CCCD64'),
20264
+ * background: saturate('0.2', 'rgba(204,205,100,0.7)'),
20265
+ * }
20266
+ *
20267
+ * // styled-components usage
20268
+ * const div = styled.div`
20269
+ * background: ${saturate(0.2, '#FFCD64')};
20270
+ * background: ${saturate('0.2', 'rgba(204,205,100,0.7)')};
20271
+ * `
20272
+ *
20273
+ * // CSS in JS Output
20274
+ *
20275
+ * element {
20276
+ * background: "#e0e250";
20277
+ * background: "rgba(224,226,80,0.7)";
20278
+ * }
20279
+ */
20280
+ function saturate(amount, color) {
20281
+ if (color === 'transparent') return color;
20282
+ var hslColor = parseToHsl(color);
20283
+ return toColorString(_extends$1({}, hslColor, {
20284
+ saturation: guard(0, 1, hslColor.saturation + parseFloat(amount))
20285
+ }));
20286
+ }
20287
+
20288
+ // prettier-ignore
20289
+ var curriedSaturate = curry /* ::<number | string, string, string> */(saturate);
20290
+
20291
+ /**
20292
+ * Sets the hue of a color to the provided value. The hue range can be
20293
+ * from 0 and 359.
20294
+ *
20295
+ * @example
20296
+ * // Styles as object usage
20297
+ * const styles = {
20298
+ * background: setHue(42, '#CCCD64'),
20299
+ * background: setHue('244', 'rgba(204,205,100,0.7)'),
20300
+ * }
20301
+ *
20302
+ * // styled-components usage
20303
+ * const div = styled.div`
20304
+ * background: ${setHue(42, '#CCCD64')};
20305
+ * background: ${setHue('244', 'rgba(204,205,100,0.7)')};
20306
+ * `
20307
+ *
20308
+ * // CSS in JS Output
20309
+ * element {
20310
+ * background: "#cdae64";
20311
+ * background: "rgba(107,100,205,0.7)";
20312
+ * }
20313
+ */
20314
+ function setHue(hue, color) {
20315
+ if (color === 'transparent') return color;
20316
+ return toColorString(_extends$1({}, parseToHsl(color), {
20317
+ hue: parseFloat(hue)
20318
+ }));
20319
+ }
20320
+
20321
+ // prettier-ignore
20322
+ var curriedSetHue = curry /* ::<number | string, string, string> */(setHue);
20323
+
20324
+ /**
20325
+ * Sets the lightness of a color to the provided value. The lightness range can be
20326
+ * from 0 and 1.
20327
+ *
20328
+ * @example
20329
+ * // Styles as object usage
20330
+ * const styles = {
20331
+ * background: setLightness(0.2, '#CCCD64'),
20332
+ * background: setLightness('0.75', 'rgba(204,205,100,0.7)'),
20333
+ * }
20334
+ *
20335
+ * // styled-components usage
20336
+ * const div = styled.div`
20337
+ * background: ${setLightness(0.2, '#CCCD64')};
20338
+ * background: ${setLightness('0.75', 'rgba(204,205,100,0.7)')};
20339
+ * `
20340
+ *
20341
+ * // CSS in JS Output
20342
+ * element {
20343
+ * background: "#4d4d19";
20344
+ * background: "rgba(223,224,159,0.7)";
20345
+ * }
20346
+ */
20347
+ function setLightness(lightness, color) {
20348
+ if (color === 'transparent') return color;
20349
+ return toColorString(_extends$1({}, parseToHsl(color), {
20350
+ lightness: parseFloat(lightness)
20351
+ }));
20352
+ }
20353
+
20354
+ // prettier-ignore
20355
+ var curriedSetLightness = curry /* ::<number | string, string, string> */(setLightness);
20356
+
20357
+ /**
20358
+ * Sets the saturation of a color to the provided value. The saturation range can be
20359
+ * from 0 and 1.
20360
+ *
20361
+ * @example
20362
+ * // Styles as object usage
20363
+ * const styles = {
20364
+ * background: setSaturation(0.2, '#CCCD64'),
20365
+ * background: setSaturation('0.75', 'rgba(204,205,100,0.7)'),
20366
+ * }
20367
+ *
20368
+ * // styled-components usage
20369
+ * const div = styled.div`
20370
+ * background: ${setSaturation(0.2, '#CCCD64')};
20371
+ * background: ${setSaturation('0.75', 'rgba(204,205,100,0.7)')};
20372
+ * `
20373
+ *
20374
+ * // CSS in JS Output
20375
+ * element {
20376
+ * background: "#adad84";
20377
+ * background: "rgba(228,229,76,0.7)";
20378
+ * }
20379
+ */
20380
+ function setSaturation(saturation, color) {
20381
+ if (color === 'transparent') return color;
20382
+ return toColorString(_extends$1({}, parseToHsl(color), {
20383
+ saturation: parseFloat(saturation)
20384
+ }));
20385
+ }
20386
+
20387
+ // prettier-ignore
20388
+ var curriedSetSaturation = curry /* ::<number | string, string, string> */(setSaturation);
20389
+
20390
+ /**
20391
+ * Shades a color by mixing it with black. `shade` can produce
20392
+ * hue shifts, where as `darken` manipulates the luminance channel and therefore
20393
+ * doesn't produce hue shifts.
20394
+ *
20395
+ * @example
20396
+ * // Styles as object usage
20397
+ * const styles = {
20398
+ * background: shade(0.25, '#00f')
20399
+ * }
20400
+ *
20401
+ * // styled-components usage
20402
+ * const div = styled.div`
20403
+ * background: ${shade(0.25, '#00f')};
20404
+ * `
20405
+ *
20406
+ * // CSS in JS Output
20407
+ *
20408
+ * element {
20409
+ * background: "#00003f";
20410
+ * }
20411
+ */
20412
+
20413
+ function shade(percentage, color) {
20414
+ if (color === 'transparent') return color;
20415
+ return mix$1$1(parseFloat(percentage), 'rgb(0, 0, 0)', color);
20416
+ }
20417
+
20418
+ // prettier-ignore
20419
+ var curriedShade = curry /* ::<number | string, string, string> */(shade);
20420
+
19918
20421
  /**
19919
20422
  * Tints a color by mixing it with white. `tint` can produce
19920
20423
  * hue shifts, where as `lighten` manipulates the luminance channel and therefore
@@ -19941,14 +20444,52 @@ var mix$1$1 = curriedMix;
19941
20444
  function tint(percentage, color) {
19942
20445
  if (color === 'transparent') return color;
19943
20446
  return mix$1$1(parseFloat(percentage), 'rgb(255, 255, 255)', color);
19944
- } // prettier-ignore
19945
-
20447
+ }
19946
20448
 
19947
- var curriedTint = /*#__PURE__*/curry
19948
- /* ::<number | string, string, string> */
19949
- (tint);
20449
+ // prettier-ignore
20450
+ var curriedTint = curry /* ::<number | string, string, string> */(tint);
19950
20451
  var curriedTint$1 = curriedTint;
19951
20452
 
20453
+ /**
20454
+ * Decreases the opacity of a color. Its range for the amount is between 0 to 1.
20455
+ *
20456
+ *
20457
+ * @example
20458
+ * // Styles as object usage
20459
+ * const styles = {
20460
+ * background: transparentize(0.1, '#fff'),
20461
+ * background: transparentize(0.2, 'hsl(0, 0%, 100%)'),
20462
+ * background: transparentize('0.5', 'rgba(255, 0, 0, 0.8)'),
20463
+ * }
20464
+ *
20465
+ * // styled-components usage
20466
+ * const div = styled.div`
20467
+ * background: ${transparentize(0.1, '#fff')};
20468
+ * background: ${transparentize(0.2, 'hsl(0, 0%, 100%)')};
20469
+ * background: ${transparentize('0.5', 'rgba(255, 0, 0, 0.8)')};
20470
+ * `
20471
+ *
20472
+ * // CSS in JS Output
20473
+ *
20474
+ * element {
20475
+ * background: "rgba(255,255,255,0.9)";
20476
+ * background: "rgba(255,255,255,0.8)";
20477
+ * background: "rgba(255,0,0,0.3)";
20478
+ * }
20479
+ */
20480
+ function transparentize(amount, color) {
20481
+ if (color === 'transparent') return color;
20482
+ var parsedColor = parseToRgb(color);
20483
+ var alpha = typeof parsedColor.alpha === 'number' ? parsedColor.alpha : 1;
20484
+ var colorWithAlpha = _extends$1({}, parsedColor, {
20485
+ alpha: guard(0, 1, +(alpha * 100 - parseFloat(amount) * 100).toFixed(2) / 100)
20486
+ });
20487
+ return rgba$1(colorWithAlpha);
20488
+ }
20489
+
20490
+ // prettier-ignore
20491
+ var curriedTransparentize = curry /* ::<number | string, string, string> */(transparentize);
20492
+
19952
20493
  var linkColor = MATISSE_BLUE;
19953
20494
  var fallbackValues$8 = {
19954
20495
  linkColor: linkColor
@@ -22638,32 +23179,19 @@ var toIndexedObject = function (it) {
22638
23179
  return indexedObject(requireObjectCoercible(it));
22639
23180
  };
22640
23181
 
22641
- var documentAll = typeof document == 'object' && document.all;
22642
-
22643
23182
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
22644
- // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
22645
- var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
22646
-
22647
- var documentAll_1 = {
22648
- all: documentAll,
22649
- IS_HTMLDDA: IS_HTMLDDA
22650
- };
22651
-
22652
- var documentAll$1 = documentAll_1.all;
23183
+ var documentAll = typeof document == 'object' && document.all;
22653
23184
 
22654
23185
  // `IsCallable` abstract operation
22655
23186
  // https://tc39.es/ecma262/#sec-iscallable
22656
- var isCallable = documentAll_1.IS_HTMLDDA ? function (argument) {
22657
- return typeof argument == 'function' || argument === documentAll$1;
23187
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
23188
+ var isCallable = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
23189
+ return typeof argument == 'function' || argument === documentAll;
22658
23190
  } : function (argument) {
22659
23191
  return typeof argument == 'function';
22660
23192
  };
22661
23193
 
22662
- var documentAll$2 = documentAll_1.all;
22663
-
22664
- var isObject = documentAll_1.IS_HTMLDDA ? function (it) {
22665
- return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll$2;
22666
- } : function (it) {
23194
+ var isObject = function (it) {
22667
23195
  return typeof it == 'object' ? it !== null : isCallable(it);
22668
23196
  };
22669
23197
 
@@ -22799,10 +23327,10 @@ var shared = createCommonjsModule(function (module) {
22799
23327
  (module.exports = function (key, value) {
22800
23328
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
22801
23329
  })('versions', []).push({
22802
- version: '3.33.3',
23330
+ version: '3.35.1',
22803
23331
  mode: 'global',
22804
- copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
22805
- license: 'https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE',
23332
+ copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
23333
+ license: 'https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE',
22806
23334
  source: 'https://github.com/zloirock/core-js'
22807
23335
  });
22808
23336
  });
@@ -23099,7 +23627,7 @@ var TEMPLATE = String(String).split('String');
23099
23627
 
23100
23628
  var makeBuiltIn = module.exports = function (value, name, options) {
23101
23629
  if (stringSlice($String(name), 0, 7) === 'Symbol(') {
23102
- name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
23630
+ name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
23103
23631
  }
23104
23632
  if (options && options.getter) name = 'get ' + name;
23105
23633
  if (options && options.setter) name = 'set ' + name;
@@ -23187,7 +23715,8 @@ var min$1 = Math.min;
23187
23715
  // `ToLength` abstract operation
23188
23716
  // https://tc39.es/ecma262/#sec-tolength
23189
23717
  var toLength = function (argument) {
23190
- return argument > 0 ? min$1(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
23718
+ var len = toIntegerOrInfinity(argument);
23719
+ return len > 0 ? min$1(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
23191
23720
  };
23192
23721
 
23193
23722
  // `LengthOfArrayLike` abstract operation
@@ -23347,7 +23876,7 @@ var _export = function (options, source) {
23347
23876
  } else if (STATIC) {
23348
23877
  target = global_1[TARGET] || defineGlobalProperty(TARGET, {});
23349
23878
  } else {
23350
- target = (global_1[TARGET] || {}).prototype;
23879
+ target = global_1[TARGET] && global_1[TARGET].prototype;
23351
23880
  }
23352
23881
  if (target) for (key in source) {
23353
23882
  sourceProperty = source[key];
@@ -23610,11 +24139,15 @@ var functionUncurryThisAccessor = function (object, key, method) {
23610
24139
  } catch (error) { /* empty */ }
23611
24140
  };
23612
24141
 
24142
+ var isPossiblePrototype = function (argument) {
24143
+ return isObject(argument) || argument === null;
24144
+ };
24145
+
23613
24146
  var $String$4 = String;
23614
24147
  var $TypeError$6 = TypeError;
23615
24148
 
23616
24149
  var aPossiblePrototype = function (argument) {
23617
- if (typeof argument == 'object' || isCallable(argument)) return argument;
24150
+ if (isPossiblePrototype(argument)) return argument;
23618
24151
  throw new $TypeError$6("Can't set " + $String$4(argument) + ' as a prototype');
23619
24152
  };
23620
24153
 
@@ -48779,8 +49312,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
48779
49312
  };
48780
49313
  }, []);
48781
49314
  }
48782
- var firstNameErrorMessages = _defineProperty({}, required.error, "First name is required");
48783
- var lastNameErrorMessages = _defineProperty({}, required.error, "Last name is required");
49315
+ var firstNameErrorMessages = _defineProperty(_defineProperty({}, required.error, "First name is required"), matchesRegex.error, "First name must contain at least one letter");
49316
+ var lastNameErrorMessages = _defineProperty(_defineProperty({}, required.error, "Last name is required"), matchesRegex.error, "Last name must contain at least one letter");
48784
49317
  var emailErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email is required"), isProbablyEmail.error, "Invalid email address");
48785
49318
  var passwordErrorMessages = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, required.error, "Password is required"), hasLength.error, "Password must have at least 8 characters"), hasNumber.error, "Password must contain at least one number"), hasLowercaseLetter.error, "Password must contain at least one lowercase letter"), hasUppercaseLetter.error, "Password must contain at least one uppercase letter"), hasSpecialCharacter.error, "Password must contain at least one special character (!@#$%^&*.?)");
48786
49319
  var confirmPasswordErrorMessages = _defineProperty({}, matchesField.error, "Confirm password must match password");
@@ -48856,10 +49389,10 @@ var RegistrationForm = function RegistrationForm(_ref) {
48856
49389
 
48857
49390
  var formConfig$9 = {
48858
49391
  firstName: {
48859
- validators: [required()]
49392
+ validators: [required(), matchesRegex(/\w+/i)]
48860
49393
  },
48861
49394
  lastName: {
48862
- validators: [required()]
49395
+ validators: [required(), matchesRegex(/\w+/i)]
48863
49396
  },
48864
49397
  email: {
48865
49398
  validators: [required(), isProbablyEmail()]