@trafilea/afrodita-components 4.0.1-beta.0 → 4.0.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js CHANGED
@@ -64,7 +64,7 @@ function __makeTemplateObject(cooked, raw) {
64
64
 
65
65
  var IconWrapper = function (_a) {
66
66
  var height = _a.height, width = _a.width, title = _a.title, viewBoxX = _a.viewBoxX, viewBoxY = _a.viewBoxY, children = _a.children, testid = _a.testid, fill = _a.fill;
67
- return (jsxRuntime.jsxs("svg", __assign({ width: width ? width + "rem" : '100%', height: height ? height + "rem" : '100%', viewBox: "0 0 " + viewBoxX + " " + viewBoxY, xmlns: "http://www.w3.org/2000/svg", "data-testid": testid ? testid : 'IconWrapper', fill: fill }, { children: [jsxRuntime.jsxs("title", { children: [title, " icon"] }, void 0), children] }), void 0));
67
+ return (jsxRuntime.jsxs("svg", __assign({ width: width ? "".concat(width, "rem") : '100%', height: height ? "".concat(height, "rem") : '100%', viewBox: "0 0 ".concat(viewBoxX, " ").concat(viewBoxY), xmlns: "http://www.w3.org/2000/svg", "data-testid": testid ? testid : 'IconWrapper', fill: fill }, { children: [jsxRuntime.jsxs("title", { children: [title, " icon"] }, void 0), children] }), void 0));
68
68
  };
69
69
 
70
70
  var SixtyDaysGuarantee = function (_a) {
@@ -209,12 +209,12 @@ var FlagUSA = function (_a) {
209
209
 
210
210
  var Minus = function (_a) {
211
211
  var height = _a.height, width = _a.width, fill = _a.fill, title = _a.title;
212
- return (jsxRuntime.jsxs("svg", __assign({ width: width + "rem", height: height + "rem", viewBox: "0 0 36 5", fill: fill, xmlns: "http://www.w3.org/2000/svg" }, { children: [jsxRuntime.jsx("title", { children: title }, void 0), jsxRuntime.jsx("path", { d: "M35.25 0H0.75C0.335625 0 0 0.372917 0 0.833333V4.16667C0 4.62708 0.335625 5 0.75 5H35.25C35.6644 5 36 4.62708 36 4.16667V0.833333C36 0.372917 35.6644 0 35.25 0Z", fill: fill }, void 0)] }), void 0));
212
+ return (jsxRuntime.jsxs("svg", __assign({ width: "".concat(width, "rem"), height: "".concat(height, "rem"), viewBox: "0 0 36 5", fill: fill, xmlns: "http://www.w3.org/2000/svg" }, { children: [jsxRuntime.jsx("title", { children: title }, void 0), jsxRuntime.jsx("path", { d: "M35.25 0H0.75C0.335625 0 0 0.372917 0 0.833333V4.16667C0 4.62708 0.335625 5 0.75 5H35.25C35.6644 5 36 4.62708 36 4.16667V0.833333C36 0.372917 35.6644 0 35.25 0Z", fill: fill }, void 0)] }), void 0));
213
213
  };
214
214
 
215
215
  var Plus = function (_a) {
216
216
  var height = _a.height, width = _a.width, fill = _a.fill, title = _a.title;
217
- return (jsxRuntime.jsxs("svg", __assign({ width: width + "rem", height: height + "rem", viewBox: "0 0 32 32", fill: fill, xmlns: "http://www.w3.org/2000/svg" }, { children: [jsxRuntime.jsx("title", { children: title }, void 0), jsxRuntime.jsx("path", { d: "M31.3333 14H18V0.666667C18 0.298333 17.7017 0 17.3333 0H14.6667C14.2983 0 14 0.298333 14 0.666667V14H0.666667C0.298333 14 0 14.2983 0 14.6667V17.3333C0 17.7017 0.298333 18 0.666667 18H14V31.3333C14 31.7017 14.2983 32 14.6667 32H17.3333C17.7017 32 18 31.7017 18 31.3333V18H31.3333C31.7017 18 32 17.7017 32 17.3333V14.6667C32 14.2983 31.7017 14 31.3333 14Z", fill: fill }, void 0)] }), void 0));
217
+ return (jsxRuntime.jsxs("svg", __assign({ width: "".concat(width, "rem"), height: "".concat(height, "rem"), viewBox: "0 0 32 32", fill: fill, xmlns: "http://www.w3.org/2000/svg" }, { children: [jsxRuntime.jsx("title", { children: title }, void 0), jsxRuntime.jsx("path", { d: "M31.3333 14H18V0.666667C18 0.298333 17.7017 0 17.3333 0H14.6667C14.2983 0 14 0.298333 14 0.666667V14H0.666667C0.298333 14 0 14.2983 0 14.6667V17.3333C0 17.7017 0.298333 18 0.666667 18H14V31.3333C14 31.7017 14.2983 32 14.6667 32H17.3333C17.7017 32 18 31.7017 18 31.3333V18H31.3333C31.7017 18 32 17.7017 32 17.3333V14.6667C32 14.2983 31.7017 14 31.3333 14Z", fill: fill }, void 0)] }), void 0));
218
218
  };
219
219
 
220
220
  var Rule = function (_a) {
@@ -462,14 +462,14 @@ function _extends$1() {
462
462
  }
463
463
 
464
464
  function memoize(fn) {
465
- var cache = {};
465
+ var cache = Object.create(null);
466
466
  return function (arg) {
467
467
  if (cache[arg] === undefined) cache[arg] = fn(arg);
468
468
  return cache[arg];
469
469
  };
470
470
  }
471
471
 
472
- var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
472
+ var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
473
473
 
474
474
  var isPropValid = /* #__PURE__ */memoize(function (prop) {
475
475
  return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
@@ -542,7 +542,13 @@ var StyleSheet = /*#__PURE__*/function () {
542
542
  var before;
543
543
 
544
544
  if (_this.tags.length === 0) {
545
- before = _this.prepend ? _this.container.firstChild : _this.before;
545
+ if (_this.insertionPoint) {
546
+ before = _this.insertionPoint.nextSibling;
547
+ } else if (_this.prepend) {
548
+ before = _this.container.firstChild;
549
+ } else {
550
+ before = _this.before;
551
+ }
546
552
  } else {
547
553
  before = _this.tags[_this.tags.length - 1].nextSibling;
548
554
  }
@@ -560,6 +566,7 @@ var StyleSheet = /*#__PURE__*/function () {
560
566
  this.key = options.key;
561
567
  this.container = options.container;
562
568
  this.prepend = options.prepend;
569
+ this.insertionPoint = options.insertionPoint;
563
570
  this.before = null;
564
571
  }
565
572
 
@@ -599,7 +606,7 @@ var StyleSheet = /*#__PURE__*/function () {
599
606
  // the big drawback is that the css won't be editable in devtools
600
607
  sheet.insertRule(rule, sheet.cssRules.length);
601
608
  } catch (e) {
602
- if (process.env.NODE_ENV !== 'production' && !/:(-moz-placeholder|-ms-input-placeholder|-moz-read-write|-moz-read-only){/.test(rule)) {
609
+ if (process.env.NODE_ENV !== 'production' && !/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear){/.test(rule)) {
603
610
  console.error("There was a problem inserting the following rule: \"" + rule + "\"", e);
604
611
  }
605
612
  }
@@ -613,7 +620,7 @@ var StyleSheet = /*#__PURE__*/function () {
613
620
  _proto.flush = function flush() {
614
621
  // $FlowFixMe
615
622
  this.tags.forEach(function (tag) {
616
- return tag.parentNode.removeChild(tag);
623
+ return tag.parentNode && tag.parentNode.removeChild(tag);
617
624
  });
618
625
  this.tags = [];
619
626
  this.ctr = 0;
@@ -648,6 +655,12 @@ var abs = Math.abs;
648
655
  */
649
656
  var from = String.fromCharCode;
650
657
 
658
+ /**
659
+ * @param {object}
660
+ * @return {object}
661
+ */
662
+ var assign = Object.assign;
663
+
651
664
  /**
652
665
  * @param {string} value
653
666
  * @param {number} length
@@ -686,7 +699,7 @@ function replace (value, pattern, replacement) {
686
699
 
687
700
  /**
688
701
  * @param {string} value
689
- * @param {string} value
702
+ * @param {string} search
690
703
  * @return {number}
691
704
  */
692
705
  function indexof (value, search) {
@@ -755,11 +768,11 @@ var characters = '';
755
768
 
756
769
  /**
757
770
  * @param {string} value
758
- * @param {object} root
759
- * @param {object?} parent
771
+ * @param {object | null} root
772
+ * @param {object | null} parent
760
773
  * @param {string} type
761
- * @param {string[]} props
762
- * @param {object[]} children
774
+ * @param {string[] | string} props
775
+ * @param {object[] | string} children
763
776
  * @param {number} length
764
777
  */
765
778
  function node (value, root, parent, type, props, children, length) {
@@ -767,12 +780,12 @@ function node (value, root, parent, type, props, children, length) {
767
780
  }
768
781
 
769
782
  /**
770
- * @param {string} value
771
783
  * @param {object} root
772
- * @param {string} type
784
+ * @param {object} props
785
+ * @return {object}
773
786
  */
774
- function copy (value, root, type) {
775
- return node(value, root.root, root.parent, type, root.props, root.children, 0)
787
+ function copy (root, props) {
788
+ return assign(node('', null, null, '', null, null, 0), root, {length: -root.length}, props)
776
789
  }
777
790
 
778
791
  /**
@@ -921,7 +934,9 @@ function delimiter (type) {
921
934
  return position
922
935
  // " '
923
936
  case 34: case 39:
924
- return delimiter(type === 34 || type === 39 ? type : character)
937
+ if (type !== 34 && type !== 39)
938
+ delimiter(character);
939
+ break
925
940
  // (
926
941
  case 40:
927
942
  if (type === 41)
@@ -1003,8 +1018,15 @@ function parse (value, root, parent, rule, rules, rulesets, pseudo, points, decl
1003
1018
 
1004
1019
  while (scanning)
1005
1020
  switch (previous = character, character = next()) {
1006
- // " ' [ (
1007
- case 34: case 39: case 91: case 40:
1021
+ // (
1022
+ case 40:
1023
+ if (previous != 108 && characters.charCodeAt(length - 1) == 58) {
1024
+ if (indexof(characters += replace(delimit(character), '&', '&\f'), '&\f') != -1)
1025
+ ampersand = -1;
1026
+ break
1027
+ }
1028
+ // " ' [
1029
+ case 34: case 39: case 91:
1008
1030
  characters += delimit(character);
1009
1031
  break
1010
1032
  // \t \n \r \s
@@ -1054,7 +1076,7 @@ function parse (value, root, parent, rule, rules, rulesets, pseudo, points, decl
1054
1076
  parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length), children), rules, children, length, points, rule ? props : children);
1055
1077
  break
1056
1078
  default:
1057
- parse(characters, reference, reference, reference, [''], children, length, points, children);
1079
+ parse(characters, reference, reference, reference, [''], children, 0, points, children);
1058
1080
  }
1059
1081
  }
1060
1082
 
@@ -1085,7 +1107,7 @@ function parse (value, root, parent, rule, rules, rulesets, pseudo, points, decl
1085
1107
  if (peek() === 45)
1086
1108
  characters += delimit(next());
1087
1109
 
1088
- atrule = peek(), offset = strlen(type = characters += identifier(caret())), character++;
1110
+ atrule = peek(), offset = length = strlen(type = characters += identifier(caret())), character++;
1089
1111
  break
1090
1112
  // -
1091
1113
  case 45:
@@ -1288,6 +1310,7 @@ function stringify$1 (element, index, children, callback) {
1288
1310
  switch (element.type) {
1289
1311
  case IMPORT: case DECLARATION: return element.return = element.return || element.value
1290
1312
  case COMMENT: return ''
1313
+ case KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}'
1291
1314
  case RULESET: element.value = element.props.join(',');
1292
1315
  }
1293
1316
 
@@ -1330,31 +1353,32 @@ function rulesheet (callback) {
1330
1353
  * @param {function} callback
1331
1354
  */
1332
1355
  function prefixer (element, index, children, callback) {
1333
- if (!element.return)
1334
- switch (element.type) {
1335
- case DECLARATION: element.return = prefix(element.value, element.length);
1336
- break
1337
- case KEYFRAMES:
1338
- return serialize([copy(replace(element.value, '@', '@' + WEBKIT), element, '')], callback)
1339
- case RULESET:
1340
- if (element.length)
1341
- return combine(element.props, function (value) {
1342
- switch (match$1(value, /(::plac\w+|:read-\w+)/)) {
1343
- // :read-(only|write)
1344
- case ':read-only': case ':read-write':
1345
- return serialize([copy(replace(value, /:(read-\w+)/, ':' + MOZ + '$1'), element, '')], callback)
1346
- // :placeholder
1347
- case '::placeholder':
1348
- return serialize([
1349
- copy(replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1'), element, ''),
1350
- copy(replace(value, /:(plac\w+)/, ':' + MOZ + '$1'), element, ''),
1351
- copy(replace(value, /:(plac\w+)/, MS + 'input-$1'), element, '')
1352
- ], callback)
1353
- }
1354
-
1355
- return ''
1356
- })
1357
- }
1356
+ if (element.length > -1)
1357
+ if (!element.return)
1358
+ switch (element.type) {
1359
+ case DECLARATION: element.return = prefix(element.value, element.length);
1360
+ break
1361
+ case KEYFRAMES:
1362
+ return serialize([copy(element, {value: replace(element.value, '@', '@' + WEBKIT)})], callback)
1363
+ case RULESET:
1364
+ if (element.length)
1365
+ return combine(element.props, function (value) {
1366
+ switch (match$1(value, /(::plac\w+|:read-\w+)/)) {
1367
+ // :read-(only|write)
1368
+ case ':read-only': case ':read-write':
1369
+ return serialize([copy(element, {props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]})], callback)
1370
+ // :placeholder
1371
+ case '::placeholder':
1372
+ return serialize([
1373
+ copy(element, {props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]}),
1374
+ copy(element, {props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]}),
1375
+ copy(element, {props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]})
1376
+ ], callback)
1377
+ }
1378
+
1379
+ return ''
1380
+ })
1381
+ }
1358
1382
  }
1359
1383
 
1360
1384
  var weakMemoize = function weakMemoize(func) {
@@ -1374,6 +1398,29 @@ var weakMemoize = function weakMemoize(func) {
1374
1398
 
1375
1399
  var last = function last(arr) {
1376
1400
  return arr.length ? arr[arr.length - 1] : null;
1401
+ }; // based on https://github.com/thysultan/stylis.js/blob/e6843c373ebcbbfade25ebcc23f540ed8508da0a/src/Tokenizer.js#L239-L244
1402
+
1403
+
1404
+ var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
1405
+ var previous = 0;
1406
+ var character = 0;
1407
+
1408
+ while (true) {
1409
+ previous = character;
1410
+ character = peek(); // &\f
1411
+
1412
+ if (previous === 38 && character === 12) {
1413
+ points[index] = 1;
1414
+ }
1415
+
1416
+ if (token(character)) {
1417
+ break;
1418
+ }
1419
+
1420
+ next();
1421
+ }
1422
+
1423
+ return slice(begin, position);
1377
1424
  };
1378
1425
 
1379
1426
  var toRules = function toRules(parsed, points) {
@@ -1393,7 +1440,7 @@ var toRules = function toRules(parsed, points) {
1393
1440
  points[index] = 1;
1394
1441
  }
1395
1442
 
1396
- parsed[index] += identifier(position - 1);
1443
+ parsed[index] += identifierWithPointTracking(position - 1, points, index);
1397
1444
  break;
1398
1445
 
1399
1446
  case 2:
@@ -1426,8 +1473,9 @@ var getRules = function getRules(value, points) {
1426
1473
 
1427
1474
  var fixedElements = /* #__PURE__ */new WeakMap();
1428
1475
  var compat = function compat(element) {
1429
- if (element.type !== 'rule' || !element.parent || // .length indicates if this rule contains pseudo or not
1430
- !element.length) {
1476
+ if (element.type !== 'rule' || !element.parent || // positive .length indicates that this rule contains pseudo
1477
+ // negative .length indicates that this rule has been already prefixed
1478
+ element.length < 1) {
1431
1479
  return;
1432
1480
  }
1433
1481
 
@@ -1541,8 +1589,8 @@ var incorrectImportAlarm = function incorrectImportAlarm(element, index, childre
1541
1589
  }
1542
1590
  };
1543
1591
 
1544
- var isBrowser$6 = typeof document !== 'undefined';
1545
- var getServerStylisCache = isBrowser$6 ? undefined : weakMemoize(function () {
1592
+ var isBrowser$5 = typeof document !== 'undefined';
1593
+ var getServerStylisCache = isBrowser$5 ? undefined : weakMemoize(function () {
1546
1594
  return memoize(function () {
1547
1595
  var cache = {};
1548
1596
  return function (name) {
@@ -1559,7 +1607,7 @@ var createCache = function createCache(options) {
1559
1607
  throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\n" + "If multiple caches share the same key they might \"fight\" for each other's style elements.");
1560
1608
  }
1561
1609
 
1562
- if (isBrowser$6 && key === 'css') {
1610
+ if (isBrowser$5 && key === 'css') {
1563
1611
  var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
1564
1612
  // document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
1565
1613
  // note this very very intentionally targets all style elements regardless of the key to ensure
@@ -1596,7 +1644,7 @@ var createCache = function createCache(options) {
1596
1644
  var container;
1597
1645
  var nodesToHydrate = [];
1598
1646
 
1599
- if (isBrowser$6) {
1647
+ if (isBrowser$5) {
1600
1648
  container = options.container || document.head;
1601
1649
  Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which
1602
1650
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
@@ -1624,7 +1672,7 @@ var createCache = function createCache(options) {
1624
1672
  }), incorrectImportAlarm);
1625
1673
  }
1626
1674
 
1627
- if (isBrowser$6) {
1675
+ if (isBrowser$5) {
1628
1676
  var currentSheet;
1629
1677
  var finalizingPlugins = [stringify$1, process.env.NODE_ENV !== 'production' ? function (element) {
1630
1678
  if (!element.root) {
@@ -1727,7 +1775,8 @@ var createCache = function createCache(options) {
1727
1775
  container: container,
1728
1776
  nonce: options.nonce,
1729
1777
  speedy: options.speedy,
1730
- prepend: options.prepend
1778
+ prepend: options.prepend,
1779
+ insertionPoint: options.insertionPoint
1731
1780
  }),
1732
1781
  nonce: options.nonce,
1733
1782
  inserted: inserted,
@@ -1966,8 +2015,8 @@ var TYPE_STATICS = {};
1966
2015
  TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
1967
2016
  TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
1968
2017
 
1969
- var isBrowser$5 = typeof document !== 'undefined';
1970
- function getRegisteredStyles$1(registered, registeredStyles, classNames) {
2018
+ var isBrowser$4 = typeof document !== 'undefined';
2019
+ function getRegisteredStyles(registered, registeredStyles, classNames) {
1971
2020
  var rawClassName = '';
1972
2021
  classNames.split(' ').forEach(function (className) {
1973
2022
  if (registered[className] !== undefined) {
@@ -1978,7 +2027,7 @@ function getRegisteredStyles$1(registered, registeredStyles, classNames) {
1978
2027
  });
1979
2028
  return rawClassName;
1980
2029
  }
1981
- var insertStyles$1 = function insertStyles(cache, serialized, isStringTag) {
2030
+ var insertStyles = function insertStyles(cache, serialized, isStringTag) {
1982
2031
  var className = cache.key + "-" + serialized.name;
1983
2032
 
1984
2033
  if ( // we only need to add the styles to the registered cache if the
@@ -1990,7 +2039,7 @@ var insertStyles$1 = function insertStyles(cache, serialized, isStringTag) {
1990
2039
  // in node since emotion-server relies on whether a style is in
1991
2040
  // the registered cache to know whether a style is global or not
1992
2041
  // also, note that this check will be dead code eliminated in the browser
1993
- isBrowser$5 === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
2042
+ isBrowser$4 === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
1994
2043
  cache.registered[className] = serialized.styles;
1995
2044
  }
1996
2045
 
@@ -2001,14 +2050,14 @@ var insertStyles$1 = function insertStyles(cache, serialized, isStringTag) {
2001
2050
  do {
2002
2051
  var maybeStyles = cache.insert(serialized === current ? "." + className : '', current, cache.sheet, true);
2003
2052
 
2004
- if (!isBrowser$5 && maybeStyles !== undefined) {
2053
+ if (!isBrowser$4 && maybeStyles !== undefined) {
2005
2054
  stylesForSSR += maybeStyles;
2006
2055
  }
2007
2056
 
2008
2057
  current = current.next;
2009
2058
  } while (current !== undefined);
2010
2059
 
2011
- if (!isBrowser$5 && stylesForSSR.length !== 0) {
2060
+ if (!isBrowser$4 && stylesForSSR.length !== 0) {
2012
2061
  return stylesForSSR;
2013
2062
  }
2014
2063
  }
@@ -2117,34 +2166,34 @@ var unitlessKeys = {
2117
2166
  strokeWidth: 1
2118
2167
  };
2119
2168
 
2120
- var ILLEGAL_ESCAPE_SEQUENCE_ERROR$2 = "You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences";
2121
- var UNDEFINED_AS_OBJECT_KEY_ERROR$1 = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).";
2122
- var hyphenateRegex$1 = /[A-Z]|^ms/g;
2123
- var animationRegex$1 = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
2169
+ var ILLEGAL_ESCAPE_SEQUENCE_ERROR$1 = "You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences";
2170
+ var UNDEFINED_AS_OBJECT_KEY_ERROR = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).";
2171
+ var hyphenateRegex = /[A-Z]|^ms/g;
2172
+ var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
2124
2173
 
2125
- var isCustomProperty$1 = function isCustomProperty(property) {
2174
+ var isCustomProperty = function isCustomProperty(property) {
2126
2175
  return property.charCodeAt(1) === 45;
2127
2176
  };
2128
2177
 
2129
- var isProcessableValue$1 = function isProcessableValue(value) {
2178
+ var isProcessableValue = function isProcessableValue(value) {
2130
2179
  return value != null && typeof value !== 'boolean';
2131
2180
  };
2132
2181
 
2133
- var processStyleName$1 = /* #__PURE__ */memoize(function (styleName) {
2134
- return isCustomProperty$1(styleName) ? styleName : styleName.replace(hyphenateRegex$1, '-$&').toLowerCase();
2182
+ var processStyleName = /* #__PURE__ */memoize(function (styleName) {
2183
+ return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();
2135
2184
  });
2136
2185
 
2137
- var processStyleValue$1 = function processStyleValue(key, value) {
2186
+ var processStyleValue = function processStyleValue(key, value) {
2138
2187
  switch (key) {
2139
2188
  case 'animation':
2140
2189
  case 'animationName':
2141
2190
  {
2142
2191
  if (typeof value === 'string') {
2143
- return value.replace(animationRegex$1, function (match, p1, p2) {
2144
- cursor$1 = {
2192
+ return value.replace(animationRegex, function (match, p1, p2) {
2193
+ cursor = {
2145
2194
  name: p1,
2146
2195
  styles: p2,
2147
- next: cursor$1
2196
+ next: cursor
2148
2197
  };
2149
2198
  return p1;
2150
2199
  });
@@ -2152,7 +2201,7 @@ var processStyleValue$1 = function processStyleValue(key, value) {
2152
2201
  }
2153
2202
  }
2154
2203
 
2155
- if (unitlessKeys[key] !== 1 && !isCustomProperty$1(key) && typeof value === 'number' && value !== 0) {
2204
+ if (unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {
2156
2205
  return value + 'px';
2157
2206
  }
2158
2207
 
@@ -2160,25 +2209,25 @@ var processStyleValue$1 = function processStyleValue(key, value) {
2160
2209
  };
2161
2210
 
2162
2211
  if (process.env.NODE_ENV !== 'production') {
2163
- var contentValuePattern$1 = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
2164
- var contentValues$1 = ['normal', 'none', 'initial', 'inherit', 'unset'];
2165
- var oldProcessStyleValue$1 = processStyleValue$1;
2166
- var msPattern$1 = /^-ms-/;
2167
- var hyphenPattern$1 = /-(.)/g;
2168
- var hyphenatedCache$1 = {};
2169
-
2170
- processStyleValue$1 = function processStyleValue(key, value) {
2212
+ var contentValuePattern = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
2213
+ var contentValues = ['normal', 'none', 'initial', 'inherit', 'unset'];
2214
+ var oldProcessStyleValue = processStyleValue;
2215
+ var msPattern = /^-ms-/;
2216
+ var hyphenPattern = /-(.)/g;
2217
+ var hyphenatedCache = {};
2218
+
2219
+ processStyleValue = function processStyleValue(key, value) {
2171
2220
  if (key === 'content') {
2172
- if (typeof value !== 'string' || contentValues$1.indexOf(value) === -1 && !contentValuePattern$1.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
2221
+ if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
2173
2222
  throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
2174
2223
  }
2175
2224
  }
2176
2225
 
2177
- var processed = oldProcessStyleValue$1(key, value);
2226
+ var processed = oldProcessStyleValue(key, value);
2178
2227
 
2179
- if (processed !== '' && !isCustomProperty$1(key) && key.indexOf('-') !== -1 && hyphenatedCache$1[key] === undefined) {
2180
- hyphenatedCache$1[key] = true;
2181
- console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + key.replace(msPattern$1, 'ms-').replace(hyphenPattern$1, function (str, _char) {
2228
+ if (processed !== '' && !isCustomProperty(key) && key.indexOf('-') !== -1 && hyphenatedCache[key] === undefined) {
2229
+ hyphenatedCache[key] = true;
2230
+ console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + key.replace(msPattern, 'ms-').replace(hyphenPattern, function (str, _char) {
2182
2231
  return _char.toUpperCase();
2183
2232
  }) + "?");
2184
2233
  }
@@ -2187,7 +2236,7 @@ if (process.env.NODE_ENV !== 'production') {
2187
2236
  };
2188
2237
  }
2189
2238
 
2190
- function handleInterpolation$1(mergedProps, registered, interpolation) {
2239
+ function handleInterpolation(mergedProps, registered, interpolation) {
2191
2240
  if (interpolation == null) {
2192
2241
  return '';
2193
2242
  }
@@ -2209,10 +2258,10 @@ function handleInterpolation$1(mergedProps, registered, interpolation) {
2209
2258
  case 'object':
2210
2259
  {
2211
2260
  if (interpolation.anim === 1) {
2212
- cursor$1 = {
2261
+ cursor = {
2213
2262
  name: interpolation.name,
2214
2263
  styles: interpolation.styles,
2215
- next: cursor$1
2264
+ next: cursor
2216
2265
  };
2217
2266
  return interpolation.name;
2218
2267
  }
@@ -2224,10 +2273,10 @@ function handleInterpolation$1(mergedProps, registered, interpolation) {
2224
2273
  // not the most efficient thing ever but this is a pretty rare case
2225
2274
  // and there will be very few iterations of this generally
2226
2275
  while (next !== undefined) {
2227
- cursor$1 = {
2276
+ cursor = {
2228
2277
  name: next.name,
2229
2278
  styles: next.styles,
2230
- next: cursor$1
2279
+ next: cursor
2231
2280
  };
2232
2281
  next = next.next;
2233
2282
  }
@@ -2242,16 +2291,16 @@ function handleInterpolation$1(mergedProps, registered, interpolation) {
2242
2291
  return styles;
2243
2292
  }
2244
2293
 
2245
- return createStringFromObject$1(mergedProps, registered, interpolation);
2294
+ return createStringFromObject(mergedProps, registered, interpolation);
2246
2295
  }
2247
2296
 
2248
2297
  case 'function':
2249
2298
  {
2250
2299
  if (mergedProps !== undefined) {
2251
- var previousCursor = cursor$1;
2300
+ var previousCursor = cursor;
2252
2301
  var result = interpolation(mergedProps);
2253
- cursor$1 = previousCursor;
2254
- return handleInterpolation$1(mergedProps, registered, result);
2302
+ cursor = previousCursor;
2303
+ return handleInterpolation(mergedProps, registered, result);
2255
2304
  } else if (process.env.NODE_ENV !== 'production') {
2256
2305
  console.error('Functions that are interpolated in css calls will be stringified.\n' + 'If you want to have a css call based on props, create a function that returns a css call like this\n' + 'let dynamicStyle = (props) => css`color: ${props.color}`\n' + 'It can be called directly with props or interpolated in a styled call like this\n' + "let SomeComponent = styled('div')`${dynamicStyle}`");
2257
2306
  }
@@ -2262,7 +2311,7 @@ function handleInterpolation$1(mergedProps, registered, interpolation) {
2262
2311
  case 'string':
2263
2312
  if (process.env.NODE_ENV !== 'production') {
2264
2313
  var matched = [];
2265
- var replaced = interpolation.replace(animationRegex$1, function (match, p1, p2) {
2314
+ var replaced = interpolation.replace(animationRegex, function (match, p1, p2) {
2266
2315
  var fakeVarName = "animation" + matched.length;
2267
2316
  matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, '') + "`");
2268
2317
  return "${" + fakeVarName + "}";
@@ -2285,12 +2334,12 @@ function handleInterpolation$1(mergedProps, registered, interpolation) {
2285
2334
  return cached !== undefined ? cached : interpolation;
2286
2335
  }
2287
2336
 
2288
- function createStringFromObject$1(mergedProps, registered, obj) {
2337
+ function createStringFromObject(mergedProps, registered, obj) {
2289
2338
  var string = '';
2290
2339
 
2291
2340
  if (Array.isArray(obj)) {
2292
2341
  for (var i = 0; i < obj.length; i++) {
2293
- string += handleInterpolation$1(mergedProps, registered, obj[i]) + ";";
2342
+ string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
2294
2343
  }
2295
2344
  } else {
2296
2345
  for (var _key in obj) {
@@ -2299,8 +2348,8 @@ function createStringFromObject$1(mergedProps, registered, obj) {
2299
2348
  if (typeof value !== 'object') {
2300
2349
  if (registered != null && registered[value] !== undefined) {
2301
2350
  string += _key + "{" + registered[value] + "}";
2302
- } else if (isProcessableValue$1(value)) {
2303
- string += processStyleName$1(_key) + ":" + processStyleValue$1(_key, value) + ";";
2351
+ } else if (isProcessableValue(value)) {
2352
+ string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";";
2304
2353
  }
2305
2354
  } else {
2306
2355
  if (_key === 'NO_COMPONENT_SELECTOR' && process.env.NODE_ENV !== 'production') {
@@ -2309,25 +2358,25 @@ function createStringFromObject$1(mergedProps, registered, obj) {
2309
2358
 
2310
2359
  if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {
2311
2360
  for (var _i = 0; _i < value.length; _i++) {
2312
- if (isProcessableValue$1(value[_i])) {
2313
- string += processStyleName$1(_key) + ":" + processStyleValue$1(_key, value[_i]) + ";";
2361
+ if (isProcessableValue(value[_i])) {
2362
+ string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";";
2314
2363
  }
2315
2364
  }
2316
2365
  } else {
2317
- var interpolated = handleInterpolation$1(mergedProps, registered, value);
2366
+ var interpolated = handleInterpolation(mergedProps, registered, value);
2318
2367
 
2319
2368
  switch (_key) {
2320
2369
  case 'animation':
2321
2370
  case 'animationName':
2322
2371
  {
2323
- string += processStyleName$1(_key) + ":" + interpolated + ";";
2372
+ string += processStyleName(_key) + ":" + interpolated + ";";
2324
2373
  break;
2325
2374
  }
2326
2375
 
2327
2376
  default:
2328
2377
  {
2329
2378
  if (process.env.NODE_ENV !== 'production' && _key === 'undefined') {
2330
- console.error(UNDEFINED_AS_OBJECT_KEY_ERROR$1);
2379
+ console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);
2331
2380
  }
2332
2381
 
2333
2382
  string += _key + "{" + interpolated + "}";
@@ -2341,32 +2390,32 @@ function createStringFromObject$1(mergedProps, registered, obj) {
2341
2390
  return string;
2342
2391
  }
2343
2392
 
2344
- var labelPattern$1 = /label:\s*([^\s;\n{]+)\s*(;|$)/g;
2345
- var sourceMapPattern$1;
2393
+ var labelPattern = /label:\s*([^\s;\n{]+)\s*(;|$)/g;
2394
+ var sourceMapPattern;
2346
2395
 
2347
2396
  if (process.env.NODE_ENV !== 'production') {
2348
- sourceMapPattern$1 = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;
2397
+ sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;
2349
2398
  } // this is the cursor for keyframes
2350
2399
  // keyframes are stored on the SerializedStyles object as a linked list
2351
2400
 
2352
2401
 
2353
- var cursor$1;
2354
- var serializeStyles$1 = function serializeStyles(args, registered, mergedProps) {
2402
+ var cursor;
2403
+ var serializeStyles = function serializeStyles(args, registered, mergedProps) {
2355
2404
  if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {
2356
2405
  return args[0];
2357
2406
  }
2358
2407
 
2359
2408
  var stringMode = true;
2360
2409
  var styles = '';
2361
- cursor$1 = undefined;
2410
+ cursor = undefined;
2362
2411
  var strings = args[0];
2363
2412
 
2364
2413
  if (strings == null || strings.raw === undefined) {
2365
2414
  stringMode = false;
2366
- styles += handleInterpolation$1(mergedProps, registered, strings);
2415
+ styles += handleInterpolation(mergedProps, registered, strings);
2367
2416
  } else {
2368
2417
  if (process.env.NODE_ENV !== 'production' && strings[0] === undefined) {
2369
- console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR$2);
2418
+ console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR$1);
2370
2419
  }
2371
2420
 
2372
2421
  styles += strings[0];
@@ -2374,11 +2423,11 @@ var serializeStyles$1 = function serializeStyles(args, registered, mergedProps)
2374
2423
 
2375
2424
 
2376
2425
  for (var i = 1; i < args.length; i++) {
2377
- styles += handleInterpolation$1(mergedProps, registered, args[i]);
2426
+ styles += handleInterpolation(mergedProps, registered, args[i]);
2378
2427
 
2379
2428
  if (stringMode) {
2380
2429
  if (process.env.NODE_ENV !== 'production' && strings[i] === undefined) {
2381
- console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR$2);
2430
+ console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR$1);
2382
2431
  }
2383
2432
 
2384
2433
  styles += strings[i];
@@ -2388,18 +2437,18 @@ var serializeStyles$1 = function serializeStyles(args, registered, mergedProps)
2388
2437
  var sourceMap;
2389
2438
 
2390
2439
  if (process.env.NODE_ENV !== 'production') {
2391
- styles = styles.replace(sourceMapPattern$1, function (match) {
2440
+ styles = styles.replace(sourceMapPattern, function (match) {
2392
2441
  sourceMap = match;
2393
2442
  return '';
2394
2443
  });
2395
2444
  } // using a global regex with .exec is stateful so lastIndex has to be reset each time
2396
2445
 
2397
2446
 
2398
- labelPattern$1.lastIndex = 0;
2447
+ labelPattern.lastIndex = 0;
2399
2448
  var identifierName = '';
2400
2449
  var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5
2401
2450
 
2402
- while ((match = labelPattern$1.exec(styles)) !== null) {
2451
+ while ((match = labelPattern.exec(styles)) !== null) {
2403
2452
  identifierName += '-' + // $FlowFixMe we know it's not null
2404
2453
  match[1];
2405
2454
  }
@@ -2412,7 +2461,7 @@ var serializeStyles$1 = function serializeStyles(args, registered, mergedProps)
2412
2461
  name: name,
2413
2462
  styles: styles,
2414
2463
  map: sourceMap,
2415
- next: cursor$1,
2464
+ next: cursor,
2416
2465
  toString: function toString() {
2417
2466
  return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
2418
2467
  }
@@ -2422,12 +2471,12 @@ var serializeStyles$1 = function serializeStyles(args, registered, mergedProps)
2422
2471
  return {
2423
2472
  name: name,
2424
2473
  styles: styles,
2425
- next: cursor$1
2474
+ next: cursor
2426
2475
  };
2427
2476
  };
2428
2477
 
2429
- var isBrowser$4 = typeof document !== 'undefined';
2430
- var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
2478
+ var isBrowser$3 = typeof document !== 'undefined';
2479
+ var hasOwnProperty$1 = {}.hasOwnProperty;
2431
2480
 
2432
2481
  var EmotionCacheContext = /* #__PURE__ */React.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
2433
2482
  // because this module is primarily intended for the browser and node
@@ -2438,6 +2487,11 @@ var EmotionCacheContext = /* #__PURE__ */React.createContext( // we're doing thi
2438
2487
  typeof HTMLElement !== 'undefined' ? /* #__PURE__ */createCache({
2439
2488
  key: 'css'
2440
2489
  }) : null);
2490
+
2491
+ if (process.env.NODE_ENV !== 'production') {
2492
+ EmotionCacheContext.displayName = 'EmotionCacheContext';
2493
+ }
2494
+
2441
2495
  EmotionCacheContext.Provider;
2442
2496
 
2443
2497
  var withEmotionCache = function withEmotionCache(func) {
@@ -2449,7 +2503,7 @@ var withEmotionCache = function withEmotionCache(func) {
2449
2503
  });
2450
2504
  };
2451
2505
 
2452
- if (!isBrowser$4) {
2506
+ if (!isBrowser$3) {
2453
2507
  withEmotionCache = function withEmotionCache(func) {
2454
2508
  return function (props) {
2455
2509
  var cache = React.useContext(EmotionCacheContext);
@@ -2474,6 +2528,11 @@ if (!isBrowser$4) {
2474
2528
  }
2475
2529
 
2476
2530
  var ThemeContext = /* #__PURE__ */React.createContext({});
2531
+
2532
+ if (process.env.NODE_ENV !== 'production') {
2533
+ ThemeContext.displayName = 'EmotionThemeContext';
2534
+ }
2535
+
2477
2536
  var useTheme$1 = function useTheme() {
2478
2537
  return React.useContext(ThemeContext);
2479
2538
  };
@@ -2513,12 +2572,48 @@ var ThemeProvider$1 = function ThemeProvider(props) {
2513
2572
  }, props.children);
2514
2573
  };
2515
2574
 
2516
- // thus we only need to replace what is a valid character for JS, but not for CSS
2575
+ var getFunctionNameFromStackTraceLine = function getFunctionNameFromStackTraceLine(line) {
2576
+ // V8
2577
+ var match = /^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(line);
2578
+
2579
+ if (match) {
2580
+ // The match may be something like 'Object.createEmotionProps'
2581
+ var parts = match[1].split('.');
2582
+ return parts[parts.length - 1];
2583
+ } // Safari / Firefox
2584
+
2585
+
2586
+ match = /^([A-Za-z0-9$.]+)@/.exec(line);
2587
+ if (match) return match[1];
2588
+ return undefined;
2589
+ };
2590
+
2591
+ var internalReactFunctionNames = /* #__PURE__ */new Set(['renderWithHooks', 'processChild', 'finishClassComponent', 'renderToString']); // These identifiers come from error stacks, so they have to be valid JS
2592
+ // identifiers, thus we only need to replace what is a valid character for JS,
2593
+ // but not for CSS.
2517
2594
 
2518
2595
  var sanitizeIdentifier = function sanitizeIdentifier(identifier) {
2519
2596
  return identifier.replace(/\$/g, '-');
2520
2597
  };
2521
2598
 
2599
+ var getLabelFromStackTrace = function getLabelFromStackTrace(stackTrace) {
2600
+ if (!stackTrace) return undefined;
2601
+ var lines = stackTrace.split('\n');
2602
+
2603
+ for (var i = 0; i < lines.length; i++) {
2604
+ var functionName = getFunctionNameFromStackTraceLine(lines[i]); // The first line of V8 stack traces is just "Error"
2605
+
2606
+ if (!functionName) continue; // If we reach one of these, we have gone too far and should quit
2607
+
2608
+ if (internalReactFunctionNames.has(functionName)) break; // The component name is the first function in the stack that starts with an
2609
+ // uppercase letter
2610
+
2611
+ if (/^[A-Z]/.test(functionName)) return sanitizeIdentifier(functionName);
2612
+ }
2613
+
2614
+ return undefined;
2615
+ };
2616
+
2522
2617
  var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';
2523
2618
  var labelPropName = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__';
2524
2619
  var createEmotionProps = function createEmotionProps(type, props) {
@@ -2535,28 +2630,21 @@ var createEmotionProps = function createEmotionProps(type, props) {
2535
2630
  }
2536
2631
  }
2537
2632
 
2538
- newProps[typePropName] = type;
2539
-
2540
- if (process.env.NODE_ENV !== 'production') {
2541
- var error = new Error();
2542
-
2543
- if (error.stack) {
2544
- // chrome
2545
- var match = error.stack.match(/at (?:Object\.|Module\.|)(?:jsx|createEmotionProps).*\n\s+at (?:Object\.|)([A-Z][A-Za-z0-9$]+) /);
2633
+ newProps[typePropName] = type; // For performance, only call getLabelFromStackTrace in development and when
2634
+ // the label hasn't already been computed
2546
2635
 
2547
- if (!match) {
2548
- // safari and firefox
2549
- match = error.stack.match(/.*\n([A-Z][A-Za-z0-9$]+)@/);
2550
- }
2551
-
2552
- if (match) {
2553
- newProps[labelPropName] = sanitizeIdentifier(match[1]);
2554
- }
2555
- }
2636
+ if (process.env.NODE_ENV !== 'production' && !!props.css && (typeof props.css !== 'object' || typeof props.css.name !== 'string' || props.css.name.indexOf('-') === -1)) {
2637
+ var label = getLabelFromStackTrace(new Error().stack);
2638
+ if (label) newProps[labelPropName] = label;
2556
2639
  }
2557
2640
 
2558
2641
  return newProps;
2559
2642
  };
2643
+
2644
+ var Noop$2 = function Noop() {
2645
+ return null;
2646
+ };
2647
+
2560
2648
  var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
2561
2649
  var cssProp = props.css; // so that using `css` from `emotion` and passing the result to the css prop works
2562
2650
  // not passing the registered cache to serializeStyles because it would
@@ -2571,22 +2659,22 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
2571
2659
  var className = '';
2572
2660
 
2573
2661
  if (typeof props.className === 'string') {
2574
- className = getRegisteredStyles$1(cache.registered, registeredStyles, props.className);
2662
+ className = getRegisteredStyles(cache.registered, registeredStyles, props.className);
2575
2663
  } else if (props.className != null) {
2576
2664
  className = props.className + " ";
2577
2665
  }
2578
2666
 
2579
- var serialized = serializeStyles$1(registeredStyles, undefined, typeof cssProp === 'function' || Array.isArray(cssProp) ? React.useContext(ThemeContext) : undefined);
2667
+ var serialized = serializeStyles(registeredStyles, undefined, React.useContext(ThemeContext));
2580
2668
 
2581
2669
  if (process.env.NODE_ENV !== 'production' && serialized.name.indexOf('-') === -1) {
2582
2670
  var labelFromStack = props[labelPropName];
2583
2671
 
2584
2672
  if (labelFromStack) {
2585
- serialized = serializeStyles$1([serialized, 'label:' + labelFromStack + ';']);
2673
+ serialized = serializeStyles([serialized, 'label:' + labelFromStack + ';']);
2586
2674
  }
2587
2675
  }
2588
2676
 
2589
- var rules = insertStyles$1(cache, serialized, typeof type === 'string');
2677
+ var rules = insertStyles(cache, serialized, typeof type === 'string');
2590
2678
  className += cache.key + "-" + serialized.name;
2591
2679
  var newProps = {};
2592
2680
 
@@ -2599,8 +2687,9 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
2599
2687
  newProps.ref = ref;
2600
2688
  newProps.className = className;
2601
2689
  var ele = /*#__PURE__*/React.createElement(type, newProps);
2690
+ var possiblyStyleElement = /*#__PURE__*/React.createElement(Noop$2, null);
2602
2691
 
2603
- if (!isBrowser$4 && rules !== undefined) {
2692
+ if (!isBrowser$3 && rules !== undefined) {
2604
2693
  var _ref;
2605
2694
 
2606
2695
  var serializedNames = serialized.name;
@@ -2611,12 +2700,13 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
2611
2700
  next = next.next;
2612
2701
  }
2613
2702
 
2614
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("style", (_ref = {}, _ref["data-emotion"] = cache.key + " " + serializedNames, _ref.dangerouslySetInnerHTML = {
2703
+ possiblyStyleElement = /*#__PURE__*/React.createElement("style", (_ref = {}, _ref["data-emotion"] = cache.key + " " + serializedNames, _ref.dangerouslySetInnerHTML = {
2615
2704
  __html: rules
2616
- }, _ref.nonce = cache.sheet.nonce, _ref)), ele);
2617
- }
2705
+ }, _ref.nonce = cache.sheet.nonce, _ref));
2706
+ } // Need to return the same number of siblings or else `React.useId` will cause hydration mismatches.
2618
2707
 
2619
- return ele;
2708
+
2709
+ return /*#__PURE__*/React.createElement(React.Fragment, null, possiblyStyleElement, ele);
2620
2710
  });
2621
2711
 
2622
2712
  if (process.env.NODE_ENV !== 'production') {
@@ -2625,7 +2715,7 @@ if (process.env.NODE_ENV !== 'production') {
2625
2715
 
2626
2716
  var pkg = {
2627
2717
  name: "@emotion/react",
2628
- version: "11.4.0",
2718
+ version: "11.7.1",
2629
2719
  main: "dist/emotion-react.cjs.js",
2630
2720
  module: "dist/emotion-react.esm.js",
2631
2721
  browser: {
@@ -2638,7 +2728,7 @@ var pkg = {
2638
2728
  "dist",
2639
2729
  "jsx-runtime",
2640
2730
  "jsx-dev-runtime",
2641
- "isolated-hoist-non-react-statics-do-not-use-this-in-your-code",
2731
+ "_isolated-hnrs",
2642
2732
  "types/*.d.ts",
2643
2733
  "macro.js",
2644
2734
  "macro.d.ts",
@@ -2652,9 +2742,9 @@ var pkg = {
2652
2742
  },
2653
2743
  dependencies: {
2654
2744
  "@babel/runtime": "^7.13.10",
2655
- "@emotion/cache": "^11.4.0",
2745
+ "@emotion/cache": "^11.7.1",
2656
2746
  "@emotion/serialize": "^1.0.2",
2657
- "@emotion/sheet": "^1.0.1",
2747
+ "@emotion/sheet": "^1.1.0",
2658
2748
  "@emotion/utils": "^1.0.0",
2659
2749
  "@emotion/weak-memoize": "^0.2.5",
2660
2750
  "hoist-non-react-statics": "^3.3.1"
@@ -2673,10 +2763,10 @@ var pkg = {
2673
2763
  },
2674
2764
  devDependencies: {
2675
2765
  "@babel/core": "^7.13.10",
2676
- "@emotion/css": "11.1.3",
2677
- "@emotion/css-prettifier": "1.0.0",
2766
+ "@emotion/css": "11.7.1",
2767
+ "@emotion/css-prettifier": "1.0.1",
2678
2768
  "@emotion/server": "11.4.0",
2679
- "@emotion/styled": "11.3.0",
2769
+ "@emotion/styled": "11.6.0",
2680
2770
  "@types/react": "^16.9.11",
2681
2771
  dtslint: "^0.3.0",
2682
2772
  "html-tag-names": "^1.1.2",
@@ -2693,7 +2783,7 @@ var pkg = {
2693
2783
  "./index.js",
2694
2784
  "./jsx-runtime.js",
2695
2785
  "./jsx-dev-runtime.js",
2696
- "./isolated-hoist-non-react-statics-do-not-use-this-in-your-code.js"
2786
+ "./_isolated-hnrs.js"
2697
2787
  ],
2698
2788
  umdName: "emotionReact"
2699
2789
  }
@@ -2714,9 +2804,9 @@ var Global = /* #__PURE__ */withEmotionCache(function (props, cache) {
2714
2804
  }
2715
2805
 
2716
2806
  var styles = props.styles;
2717
- var serialized = serializeStyles$1([styles], undefined, typeof styles === 'function' || Array.isArray(styles) ? React.useContext(ThemeContext) : undefined);
2807
+ var serialized = serializeStyles([styles], undefined, React.useContext(ThemeContext));
2718
2808
 
2719
- if (!isBrowser$4) {
2809
+ if (!isBrowser$3) {
2720
2810
  var _ref;
2721
2811
 
2722
2812
  var serializedNames = serialized.name;
@@ -2789,7 +2879,7 @@ var Global = /* #__PURE__ */withEmotionCache(function (props, cache) {
2789
2879
 
2790
2880
  if (serialized.next !== undefined) {
2791
2881
  // insert keyframes
2792
- insertStyles$1(cache, serialized.next, true);
2882
+ insertStyles(cache, serialized.next, true);
2793
2883
  }
2794
2884
 
2795
2885
  if (sheet.tags.length) {
@@ -2802,523 +2892,175 @@ var Global = /* #__PURE__ */withEmotionCache(function (props, cache) {
2802
2892
  cache.insert("", serialized, sheet, false);
2803
2893
  }, [cache, serialized.name]);
2804
2894
  return null;
2805
- });
2806
-
2807
- if (process.env.NODE_ENV !== 'production') {
2808
- Global.displayName = 'EmotionGlobal';
2809
- }
2810
-
2811
- function css() {
2812
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2813
- args[_key] = arguments[_key];
2814
- }
2815
-
2816
- return serializeStyles$1(args);
2817
- }
2818
-
2819
- var classnames$2 = function classnames(args) {
2820
- var len = args.length;
2821
- var i = 0;
2822
- var cls = '';
2823
-
2824
- for (; i < len; i++) {
2825
- var arg = args[i];
2826
- if (arg == null) continue;
2827
- var toAdd = void 0;
2828
-
2829
- switch (typeof arg) {
2830
- case 'boolean':
2831
- break;
2832
-
2833
- case 'object':
2834
- {
2835
- if (Array.isArray(arg)) {
2836
- toAdd = classnames(arg);
2837
- } else {
2838
- if (process.env.NODE_ENV !== 'production' && arg.styles !== undefined && arg.name !== undefined) {
2839
- console.error('You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n' + '`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component.');
2840
- }
2841
-
2842
- toAdd = '';
2843
-
2844
- for (var k in arg) {
2845
- if (arg[k] && k) {
2846
- toAdd && (toAdd += ' ');
2847
- toAdd += k;
2848
- }
2849
- }
2850
- }
2851
-
2852
- break;
2853
- }
2854
-
2855
- default:
2856
- {
2857
- toAdd = arg;
2858
- }
2859
- }
2860
-
2861
- if (toAdd) {
2862
- cls && (cls += ' ');
2863
- cls += toAdd;
2864
- }
2865
- }
2866
-
2867
- return cls;
2868
- };
2869
-
2870
- function merge(registered, css, className) {
2871
- var registeredStyles = [];
2872
- var rawClassName = getRegisteredStyles$1(registered, registeredStyles, className);
2873
-
2874
- if (registeredStyles.length < 2) {
2875
- return className;
2876
- }
2877
-
2878
- return rawClassName + css(registeredStyles);
2879
- }
2880
-
2881
- var ClassNames = /* #__PURE__ */withEmotionCache(function (props, cache) {
2882
- var rules = '';
2883
- var serializedHashes = '';
2884
- var hasRendered = false;
2885
-
2886
- var css = function css() {
2887
- if (hasRendered && process.env.NODE_ENV !== 'production') {
2888
- throw new Error('css can only be used during render');
2889
- }
2890
-
2891
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2892
- args[_key] = arguments[_key];
2893
- }
2894
-
2895
- var serialized = serializeStyles$1(args, cache.registered);
2896
-
2897
- if (isBrowser$4) {
2898
- insertStyles$1(cache, serialized, false);
2899
- } else {
2900
- var res = insertStyles$1(cache, serialized, false);
2901
-
2902
- if (res !== undefined) {
2903
- rules += res;
2904
- }
2905
- }
2906
-
2907
- if (!isBrowser$4) {
2908
- serializedHashes += " " + serialized.name;
2909
- }
2910
-
2911
- return cache.key + "-" + serialized.name;
2912
- };
2913
-
2914
- var cx = function cx() {
2915
- if (hasRendered && process.env.NODE_ENV !== 'production') {
2916
- throw new Error('cx can only be used during render');
2917
- }
2918
-
2919
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
2920
- args[_key2] = arguments[_key2];
2921
- }
2922
-
2923
- return merge(cache.registered, css, classnames$2(args));
2924
- };
2925
-
2926
- var content = {
2927
- css: css,
2928
- cx: cx,
2929
- theme: React.useContext(ThemeContext)
2930
- };
2931
- var ele = props.children(content);
2932
- hasRendered = true;
2933
-
2934
- if (!isBrowser$4 && rules.length !== 0) {
2935
- var _ref;
2936
-
2937
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("style", (_ref = {}, _ref["data-emotion"] = cache.key + " " + serializedHashes.substring(1), _ref.dangerouslySetInnerHTML = {
2938
- __html: rules
2939
- }, _ref.nonce = cache.sheet.nonce, _ref)), ele);
2940
- }
2941
-
2942
- return ele;
2943
- });
2944
-
2945
- if (process.env.NODE_ENV !== 'production') {
2946
- ClassNames.displayName = 'EmotionClassNames';
2947
- }
2948
-
2949
- if (process.env.NODE_ENV !== 'production') {
2950
- var isBrowser$3 = typeof document !== 'undefined'; // #1727 for some reason Jest evaluates modules twice if some consuming module gets mocked with jest.mock
2951
-
2952
- var isJest = typeof jest !== 'undefined';
2953
-
2954
- if (isBrowser$3 && !isJest) {
2955
- var globalContext = isBrowser$3 ? window : global;
2956
- var globalKey = "__EMOTION_REACT_" + pkg.version.split('.')[0] + "__";
2957
-
2958
- if (globalContext[globalKey]) {
2959
- console.warn('You are loading @emotion/react when it is already loaded. Running ' + 'multiple instances may cause problems. This can happen if multiple ' + 'versions are used, or if multiple builds of the same version are ' + 'used.');
2960
- }
2961
-
2962
- globalContext[globalKey] = true;
2963
- }
2964
- }
2965
-
2966
- var isBrowser$2 = typeof document !== 'undefined';
2967
- function getRegisteredStyles(registered, registeredStyles, classNames) {
2968
- var rawClassName = '';
2969
- classNames.split(' ').forEach(function (className) {
2970
- if (registered[className] !== undefined) {
2971
- registeredStyles.push(registered[className] + ";");
2972
- } else {
2973
- rawClassName += className + " ";
2974
- }
2975
- });
2976
- return rawClassName;
2977
- }
2978
- var insertStyles = function insertStyles(cache, serialized, isStringTag) {
2979
- var className = cache.key + "-" + serialized.name;
2980
-
2981
- if ( // we only need to add the styles to the registered cache if the
2982
- // class name could be used further down
2983
- // the tree but if it's a string tag, we know it won't
2984
- // so we don't have to add it to registered cache.
2985
- // this improves memory usage since we can avoid storing the whole style string
2986
- (isStringTag === false || // we need to always store it if we're in compat mode and
2987
- // in node since emotion-server relies on whether a style is in
2988
- // the registered cache to know whether a style is global or not
2989
- // also, note that this check will be dead code eliminated in the browser
2990
- isBrowser$2 === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
2991
- cache.registered[className] = serialized.styles;
2992
- }
2993
-
2994
- if (cache.inserted[serialized.name] === undefined) {
2995
- var stylesForSSR = '';
2996
- var current = serialized;
2997
-
2998
- do {
2999
- var maybeStyles = cache.insert(serialized === current ? "." + className : '', current, cache.sheet, true);
3000
-
3001
- if (!isBrowser$2 && maybeStyles !== undefined) {
3002
- stylesForSSR += maybeStyles;
3003
- }
3004
-
3005
- current = current.next;
3006
- } while (current !== undefined);
3007
-
3008
- if (!isBrowser$2 && stylesForSSR.length !== 0) {
3009
- return stylesForSSR;
3010
- }
3011
- }
3012
- };
3013
-
3014
- var ILLEGAL_ESCAPE_SEQUENCE_ERROR$1 = "You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences";
3015
- var UNDEFINED_AS_OBJECT_KEY_ERROR = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).";
3016
- var hyphenateRegex = /[A-Z]|^ms/g;
3017
- var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
3018
-
3019
- var isCustomProperty = function isCustomProperty(property) {
3020
- return property.charCodeAt(1) === 45;
3021
- };
3022
-
3023
- var isProcessableValue = function isProcessableValue(value) {
3024
- return value != null && typeof value !== 'boolean';
3025
- };
3026
-
3027
- var processStyleName = /* #__PURE__ */memoize(function (styleName) {
3028
- return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();
3029
- });
3030
-
3031
- var processStyleValue = function processStyleValue(key, value) {
3032
- switch (key) {
3033
- case 'animation':
3034
- case 'animationName':
3035
- {
3036
- if (typeof value === 'string') {
3037
- return value.replace(animationRegex, function (match, p1, p2) {
3038
- cursor = {
3039
- name: p1,
3040
- styles: p2,
3041
- next: cursor
3042
- };
3043
- return p1;
3044
- });
3045
- }
3046
- }
3047
- }
3048
-
3049
- if (unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {
3050
- return value + 'px';
3051
- }
3052
-
3053
- return value;
3054
- };
3055
-
3056
- if (process.env.NODE_ENV !== 'production') {
3057
- var contentValuePattern = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
3058
- var contentValues = ['normal', 'none', 'initial', 'inherit', 'unset'];
3059
- var oldProcessStyleValue = processStyleValue;
3060
- var msPattern = /^-ms-/;
3061
- var hyphenPattern = /-(.)/g;
3062
- var hyphenatedCache = {};
3063
-
3064
- processStyleValue = function processStyleValue(key, value) {
3065
- if (key === 'content') {
3066
- if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
3067
- throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
3068
- }
3069
- }
3070
-
3071
- var processed = oldProcessStyleValue(key, value);
3072
-
3073
- if (processed !== '' && !isCustomProperty(key) && key.indexOf('-') !== -1 && hyphenatedCache[key] === undefined) {
3074
- hyphenatedCache[key] = true;
3075
- console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + key.replace(msPattern, 'ms-').replace(hyphenPattern, function (str, _char) {
3076
- return _char.toUpperCase();
3077
- }) + "?");
3078
- }
3079
-
3080
- return processed;
3081
- };
3082
- }
3083
-
3084
- function handleInterpolation(mergedProps, registered, interpolation) {
3085
- if (interpolation == null) {
3086
- return '';
3087
- }
3088
-
3089
- if (interpolation.__emotion_styles !== undefined) {
3090
- if (process.env.NODE_ENV !== 'production' && interpolation.toString() === 'NO_COMPONENT_SELECTOR') {
3091
- throw new Error('Component selectors can only be used in conjunction with @emotion/babel-plugin.');
3092
- }
3093
-
3094
- return interpolation;
3095
- }
3096
-
3097
- switch (typeof interpolation) {
3098
- case 'boolean':
3099
- {
3100
- return '';
3101
- }
3102
-
3103
- case 'object':
3104
- {
3105
- if (interpolation.anim === 1) {
3106
- cursor = {
3107
- name: interpolation.name,
3108
- styles: interpolation.styles,
3109
- next: cursor
3110
- };
3111
- return interpolation.name;
3112
- }
3113
-
3114
- if (interpolation.styles !== undefined) {
3115
- var next = interpolation.next;
3116
-
3117
- if (next !== undefined) {
3118
- // not the most efficient thing ever but this is a pretty rare case
3119
- // and there will be very few iterations of this generally
3120
- while (next !== undefined) {
3121
- cursor = {
3122
- name: next.name,
3123
- styles: next.styles,
3124
- next: cursor
3125
- };
3126
- next = next.next;
3127
- }
3128
- }
3129
-
3130
- var styles = interpolation.styles + ";";
3131
-
3132
- if (process.env.NODE_ENV !== 'production' && interpolation.map !== undefined) {
3133
- styles += interpolation.map;
3134
- }
3135
-
3136
- return styles;
3137
- }
3138
-
3139
- return createStringFromObject(mergedProps, registered, interpolation);
3140
- }
3141
-
3142
- case 'function':
3143
- {
3144
- if (mergedProps !== undefined) {
3145
- var previousCursor = cursor;
3146
- var result = interpolation(mergedProps);
3147
- cursor = previousCursor;
3148
- return handleInterpolation(mergedProps, registered, result);
3149
- } else if (process.env.NODE_ENV !== 'production') {
3150
- console.error('Functions that are interpolated in css calls will be stringified.\n' + 'If you want to have a css call based on props, create a function that returns a css call like this\n' + 'let dynamicStyle = (props) => css`color: ${props.color}`\n' + 'It can be called directly with props or interpolated in a styled call like this\n' + "let SomeComponent = styled('div')`${dynamicStyle}`");
3151
- }
3152
-
3153
- break;
3154
- }
3155
-
3156
- case 'string':
3157
- if (process.env.NODE_ENV !== 'production') {
3158
- var matched = [];
3159
- var replaced = interpolation.replace(animationRegex, function (match, p1, p2) {
3160
- var fakeVarName = "animation" + matched.length;
3161
- matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, '') + "`");
3162
- return "${" + fakeVarName + "}";
3163
- });
3164
-
3165
- if (matched.length) {
3166
- console.error('`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\n' + 'Instead of doing this:\n\n' + [].concat(matched, ["`" + replaced + "`"]).join('\n') + '\n\nYou should wrap it with `css` like this:\n\n' + ("css`" + replaced + "`"));
3167
- }
3168
- }
3169
-
3170
- break;
3171
- } // finalize string values (regular strings and functions interpolated into css calls)
2895
+ });
3172
2896
 
2897
+ if (process.env.NODE_ENV !== 'production') {
2898
+ Global.displayName = 'EmotionGlobal';
2899
+ }
3173
2900
 
3174
- if (registered == null) {
3175
- return interpolation;
2901
+ function css() {
2902
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2903
+ args[_key] = arguments[_key];
3176
2904
  }
3177
2905
 
3178
- var cached = registered[interpolation];
3179
- return cached !== undefined ? cached : interpolation;
2906
+ return serializeStyles(args);
3180
2907
  }
3181
2908
 
3182
- function createStringFromObject(mergedProps, registered, obj) {
3183
- var string = '';
2909
+ var classnames$2 = function classnames(args) {
2910
+ var len = args.length;
2911
+ var i = 0;
2912
+ var cls = '';
3184
2913
 
3185
- if (Array.isArray(obj)) {
3186
- for (var i = 0; i < obj.length; i++) {
3187
- string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
3188
- }
3189
- } else {
3190
- for (var _key in obj) {
3191
- var value = obj[_key];
2914
+ for (; i < len; i++) {
2915
+ var arg = args[i];
2916
+ if (arg == null) continue;
2917
+ var toAdd = void 0;
3192
2918
 
3193
- if (typeof value !== 'object') {
3194
- if (registered != null && registered[value] !== undefined) {
3195
- string += _key + "{" + registered[value] + "}";
3196
- } else if (isProcessableValue(value)) {
3197
- string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";";
3198
- }
3199
- } else {
3200
- if (_key === 'NO_COMPONENT_SELECTOR' && process.env.NODE_ENV !== 'production') {
3201
- throw new Error('Component selectors can only be used in conjunction with @emotion/babel-plugin.');
3202
- }
2919
+ switch (typeof arg) {
2920
+ case 'boolean':
2921
+ break;
3203
2922
 
3204
- if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {
3205
- for (var _i = 0; _i < value.length; _i++) {
3206
- if (isProcessableValue(value[_i])) {
3207
- string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";";
2923
+ case 'object':
2924
+ {
2925
+ if (Array.isArray(arg)) {
2926
+ toAdd = classnames(arg);
2927
+ } else {
2928
+ if (process.env.NODE_ENV !== 'production' && arg.styles !== undefined && arg.name !== undefined) {
2929
+ console.error('You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n' + '`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component.');
3208
2930
  }
3209
- }
3210
- } else {
3211
- var interpolated = handleInterpolation(mergedProps, registered, value);
3212
-
3213
- switch (_key) {
3214
- case 'animation':
3215
- case 'animationName':
3216
- {
3217
- string += processStyleName(_key) + ":" + interpolated + ";";
3218
- break;
3219
- }
3220
2931
 
3221
- default:
3222
- {
3223
- if (process.env.NODE_ENV !== 'production' && _key === 'undefined') {
3224
- console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);
3225
- }
2932
+ toAdd = '';
3226
2933
 
3227
- string += _key + "{" + interpolated + "}";
2934
+ for (var k in arg) {
2935
+ if (arg[k] && k) {
2936
+ toAdd && (toAdd += ' ');
2937
+ toAdd += k;
3228
2938
  }
2939
+ }
3229
2940
  }
2941
+
2942
+ break;
3230
2943
  }
3231
- }
2944
+
2945
+ default:
2946
+ {
2947
+ toAdd = arg;
2948
+ }
2949
+ }
2950
+
2951
+ if (toAdd) {
2952
+ cls && (cls += ' ');
2953
+ cls += toAdd;
3232
2954
  }
3233
2955
  }
3234
2956
 
3235
- return string;
3236
- }
2957
+ return cls;
2958
+ };
3237
2959
 
3238
- var labelPattern = /label:\s*([^\s;\n{]+)\s*(;|$)/g;
3239
- var sourceMapPattern;
2960
+ function merge(registered, css, className) {
2961
+ var registeredStyles = [];
2962
+ var rawClassName = getRegisteredStyles(registered, registeredStyles, className);
3240
2963
 
3241
- if (process.env.NODE_ENV !== 'production') {
3242
- sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;
3243
- } // this is the cursor for keyframes
3244
- // keyframes are stored on the SerializedStyles object as a linked list
2964
+ if (registeredStyles.length < 2) {
2965
+ return className;
2966
+ }
3245
2967
 
2968
+ return rawClassName + css(registeredStyles);
2969
+ }
3246
2970
 
3247
- var cursor;
3248
- var serializeStyles = function serializeStyles(args, registered, mergedProps) {
3249
- if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {
3250
- return args[0];
3251
- }
2971
+ var Noop$1 = function Noop() {
2972
+ return null;
2973
+ };
3252
2974
 
3253
- var stringMode = true;
3254
- var styles = '';
3255
- cursor = undefined;
3256
- var strings = args[0];
2975
+ var ClassNames = /* #__PURE__ */withEmotionCache(function (props, cache) {
2976
+ var rules = '';
2977
+ var serializedHashes = '';
2978
+ var hasRendered = false;
3257
2979
 
3258
- if (strings == null || strings.raw === undefined) {
3259
- stringMode = false;
3260
- styles += handleInterpolation(mergedProps, registered, strings);
3261
- } else {
3262
- if (process.env.NODE_ENV !== 'production' && strings[0] === undefined) {
3263
- console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR$1);
2980
+ var css = function css() {
2981
+ if (hasRendered && process.env.NODE_ENV !== 'production') {
2982
+ throw new Error('css can only be used during render');
3264
2983
  }
3265
2984
 
3266
- styles += strings[0];
3267
- } // we start at 1 since we've already handled the first arg
2985
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2986
+ args[_key] = arguments[_key];
2987
+ }
3268
2988
 
2989
+ var serialized = serializeStyles(args, cache.registered);
3269
2990
 
3270
- for (var i = 1; i < args.length; i++) {
3271
- styles += handleInterpolation(mergedProps, registered, args[i]);
2991
+ if (isBrowser$3) {
2992
+ insertStyles(cache, serialized, false);
2993
+ } else {
2994
+ var res = insertStyles(cache, serialized, false);
3272
2995
 
3273
- if (stringMode) {
3274
- if (process.env.NODE_ENV !== 'production' && strings[i] === undefined) {
3275
- console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR$1);
2996
+ if (res !== undefined) {
2997
+ rules += res;
3276
2998
  }
2999
+ }
3277
3000
 
3278
- styles += strings[i];
3001
+ if (!isBrowser$3) {
3002
+ serializedHashes += " " + serialized.name;
3279
3003
  }
3280
- }
3281
3004
 
3282
- var sourceMap;
3005
+ return cache.key + "-" + serialized.name;
3006
+ };
3283
3007
 
3284
- if (process.env.NODE_ENV !== 'production') {
3285
- styles = styles.replace(sourceMapPattern, function (match) {
3286
- sourceMap = match;
3287
- return '';
3288
- });
3289
- } // using a global regex with .exec is stateful so lastIndex has to be reset each time
3008
+ var cx = function cx() {
3009
+ if (hasRendered && process.env.NODE_ENV !== 'production') {
3010
+ throw new Error('cx can only be used during render');
3011
+ }
3290
3012
 
3013
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
3014
+ args[_key2] = arguments[_key2];
3015
+ }
3291
3016
 
3292
- labelPattern.lastIndex = 0;
3293
- var identifierName = '';
3294
- var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5
3017
+ return merge(cache.registered, css, classnames$2(args));
3018
+ };
3295
3019
 
3296
- while ((match = labelPattern.exec(styles)) !== null) {
3297
- identifierName += '-' + // $FlowFixMe we know it's not null
3298
- match[1];
3299
- }
3020
+ var content = {
3021
+ css: css,
3022
+ cx: cx,
3023
+ theme: React.useContext(ThemeContext)
3024
+ };
3025
+ var ele = props.children(content);
3026
+ hasRendered = true;
3027
+ var possiblyStyleElement = /*#__PURE__*/React.createElement(Noop$1, null);
3300
3028
 
3301
- var name = murmur2(styles) + identifierName;
3029
+ if (!isBrowser$3 && rules.length !== 0) {
3030
+ var _ref;
3302
3031
 
3303
- if (process.env.NODE_ENV !== 'production') {
3304
- // $FlowFixMe SerializedStyles type doesn't have toString property (and we don't want to add it)
3305
- return {
3306
- name: name,
3307
- styles: styles,
3308
- map: sourceMap,
3309
- next: cursor,
3310
- toString: function toString() {
3311
- return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
3312
- }
3313
- };
3314
- }
3032
+ possiblyStyleElement = /*#__PURE__*/React.createElement("style", (_ref = {}, _ref["data-emotion"] = cache.key + " " + serializedHashes.substring(1), _ref.dangerouslySetInnerHTML = {
3033
+ __html: rules
3034
+ }, _ref.nonce = cache.sheet.nonce, _ref));
3035
+ } // Need to return the same number of siblings or else `React.useId` will cause hydration mismatches.
3315
3036
 
3316
- return {
3317
- name: name,
3318
- styles: styles,
3319
- next: cursor
3320
- };
3321
- };
3037
+
3038
+ return /*#__PURE__*/React.createElement(React.Fragment, null, possiblyStyleElement, ele);
3039
+ });
3040
+
3041
+ if (process.env.NODE_ENV !== 'production') {
3042
+ ClassNames.displayName = 'EmotionClassNames';
3043
+ }
3044
+
3045
+ if (process.env.NODE_ENV !== 'production') {
3046
+ var isBrowser$2 = typeof document !== 'undefined'; // #1727 for some reason Jest evaluates modules twice if some consuming module gets mocked with jest.mock
3047
+
3048
+ var isJest = typeof jest !== 'undefined';
3049
+
3050
+ if (isBrowser$2 && !isJest) {
3051
+ // globalThis has wide browser support - https://caniuse.com/?search=globalThis, Node.js 12 and later
3052
+ var globalContext = // $FlowIgnore
3053
+ typeof globalThis !== 'undefined' ? globalThis // eslint-disable-line no-undef
3054
+ : isBrowser$2 ? window : global;
3055
+ var globalKey = "__EMOTION_REACT_" + pkg.version.split('.')[0] + "__";
3056
+
3057
+ if (globalContext[globalKey]) {
3058
+ console.warn('You are loading @emotion/react when it is already loaded. Running ' + 'multiple instances may cause problems. This can happen if multiple ' + 'versions are used, or if multiple builds of the same version are ' + 'used.');
3059
+ }
3060
+
3061
+ globalContext[globalKey] = true;
3062
+ }
3063
+ }
3322
3064
 
3323
3065
  var testOmitPropsOnStringTag = isPropValid;
3324
3066
 
@@ -3352,6 +3094,10 @@ var composeShouldForwardProps = function composeShouldForwardProps(tag, options,
3352
3094
  var ILLEGAL_ESCAPE_SEQUENCE_ERROR = "You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences";
3353
3095
  var isBrowser$1 = typeof document !== 'undefined';
3354
3096
 
3097
+ var Noop = function Noop() {
3098
+ return null;
3099
+ };
3100
+
3355
3101
  var createStyled = function createStyled(tag, options) {
3356
3102
  if (process.env.NODE_ENV !== 'production') {
3357
3103
  if (tag === undefined) {
@@ -3446,6 +3192,7 @@ var createStyled = function createStyled(tag, options) {
3446
3192
  newProps.className = className;
3447
3193
  newProps.ref = ref;
3448
3194
  var ele = /*#__PURE__*/React.createElement(finalTag, newProps);
3195
+ var possiblyStyleElement = /*#__PURE__*/React.createElement(Noop, null);
3449
3196
 
3450
3197
  if (!isBrowser$1 && rules !== undefined) {
3451
3198
  var _ref;
@@ -3458,12 +3205,13 @@ var createStyled = function createStyled(tag, options) {
3458
3205
  next = next.next;
3459
3206
  }
3460
3207
 
3461
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("style", (_ref = {}, _ref["data-emotion"] = cache.key + " " + serializedNames, _ref.dangerouslySetInnerHTML = {
3208
+ possiblyStyleElement = /*#__PURE__*/React.createElement("style", (_ref = {}, _ref["data-emotion"] = cache.key + " " + serializedNames, _ref.dangerouslySetInnerHTML = {
3462
3209
  __html: rules
3463
- }, _ref.nonce = cache.sheet.nonce, _ref)), ele);
3464
- }
3210
+ }, _ref.nonce = cache.sheet.nonce, _ref));
3211
+ } // Need to return the same number of siblings or else `React.useId` will cause hydration mismatches.
3465
3212
 
3466
- return ele;
3213
+
3214
+ return /*#__PURE__*/React.createElement(React.Fragment, null, possiblyStyleElement, ele);
3467
3215
  });
3468
3216
  Styled.displayName = identifierName !== undefined ? identifierName : "Styled(" + (typeof baseTag === 'string' ? baseTag : baseTag.displayName || baseTag.name || 'Component') + ")";
3469
3217
  Styled.defaultProps = tag.defaultProps;
@@ -3568,7 +3316,7 @@ var variablesToObject = function (variables, theme) {
3568
3316
  for (var i = 0; i < path.length; i++) {
3569
3317
  var segment = path[i];
3570
3318
  var isLast = i === path.length - 1;
3571
- var isArray = new RegExp(segment + "-0$").test(key);
3319
+ var isArray = new RegExp("".concat(segment, "-0$")).test(key);
3572
3320
  var segmentValue = isLast ? variables[key] : isArray ? [] : {};
3573
3321
  if (segment in target === false) {
3574
3322
  // @ts-ignore
@@ -3584,7 +3332,7 @@ var variablesToObject = function (variables, theme) {
3584
3332
  var transformToVariables = function (prefix, variables, theme, pending) {
3585
3333
  for (var key in theme) {
3586
3334
  /* istanbul ignore next */
3587
- var fullKey = key === '$root' ? prefix : prefix + "-" + key;
3335
+ var fullKey = key === '$root' ? prefix : "".concat(prefix, "-").concat(key);
3588
3336
  var value = theme[key];
3589
3337
  if (value == null) {
3590
3338
  continue;
@@ -3601,12 +3349,12 @@ var transformToVariables = function (prefix, variables, theme, pending) {
3601
3349
  }
3602
3350
  };
3603
3351
  var stringify = function (variables) {
3604
- return inline("\n :root {\n " + Object.entries(variables)
3352
+ return inline("\n :root {\n ".concat(Object.entries(variables)
3605
3353
  .map(function (_a) {
3606
3354
  var key = _a[0], value = _a[1];
3607
- return key + ": " + value + ";";
3355
+ return "".concat(key, ": ").concat(value, ";");
3608
3356
  })
3609
- .join('\n') + "\n }\n ");
3357
+ .join('\n'), "\n }\n "));
3610
3358
  };
3611
3359
  var transformThemeIntoVariables = function (_a) {
3612
3360
  // eslint-disable-next-line
@@ -3620,7 +3368,7 @@ var transformThemeIntoVariables = function (_a) {
3620
3368
  delete variables[key];
3621
3369
  continue;
3622
3370
  }
3623
- variables[key] = "var(" + valueKey + ")";
3371
+ variables[key] = "var(".concat(valueKey, ")");
3624
3372
  }
3625
3373
  return stringify(variables) + transformFonts(fonts);
3626
3374
  };
@@ -3631,22 +3379,22 @@ var transformFonts = function (fonts) {
3631
3379
  var css = fonts.config
3632
3380
  .map(function (font) {
3633
3381
  var css = [
3634
- "font-family: \"" + font.family + "\"",
3635
- "src: url(\"" + fonts.url + "/" + font.src + "\") format(\"opentype\")",
3382
+ "font-family: \"".concat(font.family, "\""),
3383
+ "src: url(\"".concat(fonts.url, "/").concat(font.src, "\") format(\"opentype\")"),
3636
3384
  ];
3637
3385
  if (font.weight) {
3638
- css.push("font-weight: " + font.weight);
3386
+ css.push("font-weight: ".concat(font.weight));
3639
3387
  }
3640
3388
  if (font.stretch) {
3641
- css.push("font-stretch: " + font.stretch);
3389
+ css.push("font-stretch: ".concat(font.stretch));
3642
3390
  }
3643
3391
  if (font.style) {
3644
- css.push("font-style: " + font.style);
3392
+ css.push("font-style: ".concat(font.style));
3645
3393
  }
3646
- return inline("@font-face { " + css.join(';\n') + "; }");
3394
+ return inline("@font-face { ".concat(css.join(';\n'), "; }"));
3647
3395
  })
3648
3396
  .join('\n');
3649
- return inline("\n " + css + "\n body {\n font-family: \"" + fonts.config[0].family + "\";\n }\n ");
3397
+ return inline("\n ".concat(css, "\n body {\n font-family: \"").concat(fonts.config[0].family, "\";\n }\n "));
3650
3398
  };
3651
3399
  var inline = function (text) {
3652
3400
  return text.trim().replace(/\s+/g, ' ').replace(/\n/g, '');
@@ -3689,7 +3437,7 @@ var Container$C = newStyled.div(templateObject_1$Z || (templateObject_1$Z = __ma
3689
3437
  var widthAuto = _a.widthAuto;
3690
3438
  return (widthAuto ? 'auto' : 'fit-content');
3691
3439
  }, function (props) { return props.backgroundColor; }, function (props) { return props.theme.component.card.borderRadius; }, function (props) {
3692
- return props.border ? props.border.borderWidth + " solid " + props.border.borderColor : 'none';
3440
+ return props.border ? "".concat(props.border.borderWidth, " solid ").concat(props.border.borderColor) : 'none';
3693
3441
  });
3694
3442
  var Card = function (_a) {
3695
3443
  var children = _a.children, backgroundColor = _a.backgroundColor, _b = _a.widthAuto, widthAuto = _b === void 0 ? true : _b, border = _a.border, _c = _a.flex, flex = _c === void 0 ? true : _c;
@@ -3760,7 +3508,7 @@ var BaseCTA = function (_a) {
3760
3508
  var text = _a.text, onClick = _a.onClick, _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.wide, wide = _c === void 0 ? false : _c, _d = _a.size, size = _d === void 0 ? exports.ComponentSize.Medium : _d, type = _a.type, className = _a.className;
3761
3509
  var theme = useTheme();
3762
3510
  var stylesBySize = getStylesBySize$9(size, theme);
3763
- return (jsx(BaseButton, __assign({ onClick: onClick, disabled: disabled, className: className, type: type, css: __assign(__assign({ width: wide ? '100%' : '' }, stylesBySize), { fontWeight: theme.component.button.fontWeight, borderRadius: "" + theme.component.button.borderRadius, cursor: 'pointer', '&:disabled': {
3511
+ return (jsx(BaseButton, __assign({ onClick: onClick, disabled: disabled, className: className, type: type, css: __assign(__assign({ width: wide ? '100%' : '' }, stylesBySize), { fontWeight: theme.component.button.fontWeight, borderRadius: "".concat(theme.component.button.borderRadius), cursor: 'pointer', '&:disabled': {
3764
3512
  backgroundColor: theme.colors.background.disabled,
3765
3513
  color: theme.colors.text.disabled,
3766
3514
  cursor: 'not-allowed',
@@ -3808,7 +3556,7 @@ var ButtonSecondaryOutline = function (_a) {
3808
3556
  return (jsx(BaseCTA, { onClick: onClick, disabled: disabled, wide: wide, size: size, className: className, css: {
3809
3557
  backgroundColor: theme.component.button.secondary.active.color,
3810
3558
  color: theme.component.button.secondary.active.backgroundColor,
3811
- border: "1px solid " + theme.component.button.secondary.active.backgroundColor,
3559
+ border: "1px solid ".concat(theme.component.button.secondary.active.backgroundColor),
3812
3560
  '&:hover': {
3813
3561
  backgroundColor: theme.component.button.secondary.active.backgroundColor,
3814
3562
  color: theme.component.button.secondary.active.color,
@@ -4331,7 +4079,12 @@ function isFocusableElement(element, mode) {
4331
4079
  }, _match));
4332
4080
  }
4333
4081
  function focusIn(container, focus) {
4334
- var elements = Array.isArray(container) ? container : getFocusableElements(container);
4082
+ var elements = Array.isArray(container) ? container.slice().sort(function (a, b) {
4083
+ var position = a.compareDocumentPosition(b);
4084
+ if (position & Node.DOCUMENT_POSITION_FOLLOWING) return -1;
4085
+ if (position & Node.DOCUMENT_POSITION_PRECEDING) return 1;
4086
+ return 0;
4087
+ }) : getFocusableElements(container);
4335
4088
  var active = document.activeElement;
4336
4089
 
4337
4090
  var direction = function () {
@@ -4431,7 +4184,7 @@ function useDescriptions() {
4431
4184
  props: props.props
4432
4185
  };
4433
4186
  }, [register, props.slot, props.name, props.props]);
4434
- return React__default['default'].createElement(DescriptionContext.Provider, {
4187
+ return React__default["default"].createElement(DescriptionContext.Provider, {
4435
4188
  value: contextBag
4436
4189
  }, props.children);
4437
4190
  };
@@ -4474,11 +4227,41 @@ function useOpenClosed() {
4474
4227
  function OpenClosedProvider(_ref) {
4475
4228
  var value = _ref.value,
4476
4229
  children = _ref.children;
4477
- return React__default['default'].createElement(Context.Provider, {
4230
+ return React__default["default"].createElement(Context.Provider, {
4478
4231
  value: value
4479
4232
  }, children);
4480
4233
  }
4481
4234
 
4235
+ function resolveType(props) {
4236
+ var _props$as;
4237
+
4238
+ if (props.type) return props.type;
4239
+ var tag = (_props$as = props.as) != null ? _props$as : 'button';
4240
+ if (typeof tag === 'string' && tag.toLowerCase() === 'button') return 'button';
4241
+ return undefined;
4242
+ }
4243
+
4244
+ function useResolveButtonType(props, ref) {
4245
+ var _useState = React.useState(function () {
4246
+ return resolveType(props);
4247
+ }),
4248
+ type = _useState[0],
4249
+ setType = _useState[1];
4250
+
4251
+ useIsoMorphicEffect(function () {
4252
+ setType(resolveType(props));
4253
+ }, [props.type, props.as]);
4254
+ useIsoMorphicEffect(function () {
4255
+ if (type) return;
4256
+ if (!ref.current) return;
4257
+
4258
+ if (ref.current instanceof HTMLButtonElement && !ref.current.hasAttribute('type')) {
4259
+ setType('button');
4260
+ }
4261
+ }, [type, ref]);
4262
+ return type;
4263
+ }
4264
+
4482
4265
  var _reducers$2;
4483
4266
  var DisclosureStates;
4484
4267
 
@@ -4627,11 +4410,11 @@ function Disclosure(props) {
4627
4410
  close: close
4628
4411
  };
4629
4412
  }, [disclosureState, close]);
4630
- return React__default['default'].createElement(DisclosureContext.Provider, {
4413
+ return React__default["default"].createElement(DisclosureContext.Provider, {
4631
4414
  value: reducerBag
4632
- }, React__default['default'].createElement(DisclosureAPIContext.Provider, {
4415
+ }, React__default["default"].createElement(DisclosureAPIContext.Provider, {
4633
4416
  value: api
4634
- }, React__default['default'].createElement(OpenClosedProvider, {
4417
+ }, React__default["default"].createElement(OpenClosedProvider, {
4635
4418
  value: match(disclosureState, (_match2 = {}, _match2[DisclosureStates.Open] = State.Open, _match2[DisclosureStates.Closed] = State.Closed, _match2))
4636
4419
  }, render({
4637
4420
  props: passthroughProps,
@@ -4647,7 +4430,8 @@ var Button$6 = /*#__PURE__*/forwardRefWithAs(function Button(props, ref) {
4647
4430
  state = _useDisclosureContext[0],
4648
4431
  dispatch = _useDisclosureContext[1];
4649
4432
 
4650
- var buttonRef = useSyncRefs(ref);
4433
+ var internalButtonRef = React.useRef(null);
4434
+ var buttonRef = useSyncRefs(internalButtonRef, ref);
4651
4435
  var panelContext = useDisclosurePanelContext();
4652
4436
  var isWithinPanel = panelContext === null ? false : panelContext === state.panelId;
4653
4437
  var handleKeyDown = React.useCallback(function (event) {
@@ -4712,15 +4496,17 @@ var Button$6 = /*#__PURE__*/forwardRefWithAs(function Button(props, ref) {
4712
4496
  open: state.disclosureState === DisclosureStates.Open
4713
4497
  };
4714
4498
  }, [state]);
4499
+ var type = useResolveButtonType(props, internalButtonRef);
4715
4500
  var passthroughProps = props;
4716
4501
  var propsWeControl = isWithinPanel ? {
4717
- type: 'button',
4502
+ ref: buttonRef,
4503
+ type: type,
4718
4504
  onKeyDown: handleKeyDown,
4719
4505
  onClick: handleClick
4720
4506
  } : {
4721
4507
  ref: buttonRef,
4722
4508
  id: state.buttonId,
4723
- type: 'button',
4509
+ type: type,
4724
4510
  'aria-expanded': props.disabled ? undefined : state.disclosureState === DisclosureStates.Open,
4725
4511
  'aria-controls': state.linkedPanel ? state.panelId : undefined,
4726
4512
  onKeyDown: handleKeyDown,
@@ -4790,7 +4576,7 @@ var Panel = /*#__PURE__*/forwardRefWithAs(function Panel(props, ref) {
4790
4576
  id: state.panelId
4791
4577
  };
4792
4578
  var passthroughProps = props;
4793
- return React__default['default'].createElement(DisclosurePanelContext.Provider, {
4579
+ return React__default["default"].createElement(DisclosurePanelContext.Provider, {
4794
4580
  value: state.panelId
4795
4581
  }, render({
4796
4582
  props: _extends({}, passthroughProps, propsWeControl),
@@ -5185,9 +4971,9 @@ function Listbox(props) {
5185
4971
  disabled: disabled
5186
4972
  };
5187
4973
  }, [listboxState, disabled]);
5188
- return React__default['default'].createElement(ListboxContext.Provider, {
4974
+ return React__default["default"].createElement(ListboxContext.Provider, {
5189
4975
  value: reducerBag
5190
- }, React__default['default'].createElement(OpenClosedProvider, {
4976
+ }, React__default["default"].createElement(OpenClosedProvider, {
5191
4977
  value: match(listboxState, (_match = {}, _match[ListboxStates.Open] = State.Open, _match[ListboxStates.Closed] = State.Closed, _match))
5192
4978
  }, render({
5193
4979
  props: passThroughProps,
@@ -5285,7 +5071,7 @@ var Button$5 = /*#__PURE__*/forwardRefWithAs(function Button(props, ref) {
5285
5071
  var propsWeControl = {
5286
5072
  ref: buttonRef,
5287
5073
  id: id,
5288
- type: 'button',
5074
+ type: useResolveButtonType(props, state.buttonRef),
5289
5075
  'aria-haspopup': true,
5290
5076
  'aria-controls': (_state$optionsRef$cur = state.optionsRef.current) == null ? void 0 : _state$optionsRef$cur.id,
5291
5077
  'aria-expanded': state.disabled ? undefined : state.listboxState === ListboxStates.Open,
@@ -5771,7 +5557,7 @@ function useLabels() {
5771
5557
  props: props.props
5772
5558
  };
5773
5559
  }, [register, props.slot, props.name, props.props]);
5774
- return React__default['default'].createElement(LabelContext.Provider, {
5560
+ return React__default["default"].createElement(LabelContext.Provider, {
5775
5561
  value: contextBag
5776
5562
  }, props.children);
5777
5563
  };
@@ -5999,11 +5785,11 @@ function RadioGroup(props) {
5999
5785
  'aria-describedby': describedby,
6000
5786
  onKeyDown: handleKeyDown
6001
5787
  };
6002
- return React__default['default'].createElement(DescriptionProvider, {
5788
+ return React__default["default"].createElement(DescriptionProvider, {
6003
5789
  name: "RadioGroup.Description"
6004
- }, React__default['default'].createElement(LabelProvider, {
5790
+ }, React__default["default"].createElement(LabelProvider, {
6005
5791
  name: "RadioGroup.Label"
6006
- }, React__default['default'].createElement(RadioGroupContext.Provider, {
5792
+ }, React__default["default"].createElement(RadioGroupContext.Provider, {
6007
5793
  value: api
6008
5794
  }, render({
6009
5795
  props: _extends({}, passThroughProps, propsWeControl),
@@ -6110,9 +5896,9 @@ function Option$1(props) {
6110
5896
  active: hasFlag(OptionState.Active)
6111
5897
  };
6112
5898
  }, [checked, isDisabled, hasFlag]);
6113
- return React__default['default'].createElement(DescriptionProvider, {
5899
+ return React__default["default"].createElement(DescriptionProvider, {
6114
5900
  name: "RadioGroup.Description"
6115
- }, React__default['default'].createElement(LabelProvider, {
5901
+ }, React__default["default"].createElement(LabelProvider, {
6116
5902
  name: "RadioGroup.Label"
6117
5903
  }, render({
6118
5904
  props: _extends({}, passThroughProps, propsWeControl),
@@ -6157,7 +5943,7 @@ var templateObject_1$Y;
6157
5943
  var CustomButton = newStyled.button(function (_a) {
6158
5944
  var theme = _a.theme, wide = _a.wide, isSortOrFilter = _a.isSortOrFilter;
6159
5945
  return ({
6160
- border: "0.063rem solid " + (isSortOrFilter ? theme.colors.shades['100'].color : theme.colors.shades['200'].color),
5946
+ border: "0.063rem solid ".concat(isSortOrFilter ? theme.colors.shades['100'].color : theme.colors.shades['200'].color),
6161
5947
  boxSizing: 'border-box',
6162
5948
  borderRadius: theme.component.dropdown.borderRadius,
6163
5949
  display: 'flex',
@@ -6213,7 +5999,7 @@ var DropdownOptions = newStyled(BaseSelect$1.Options)(function (_a) {
6213
5999
  display: 'flex',
6214
6000
  flexDirection: 'column',
6215
6001
  alignItems: 'flex-start',
6216
- border: "0.063rem solid " + theme.component.dropdown.options.borderColor,
6002
+ border: "0.063rem solid ".concat(theme.component.dropdown.options.borderColor),
6217
6003
  boxSizing: 'border-box',
6218
6004
  borderRadius: theme.component.dropdown.borderRadius,
6219
6005
  background: theme.colors.shades.white.color,
@@ -6222,6 +6008,7 @@ var DropdownOptions = newStyled(BaseSelect$1.Options)(function (_a) {
6222
6008
  position: 'absolute',
6223
6009
  width: '100%',
6224
6010
  color: theme.colors.shades['700'].color,
6011
+ zIndex: 10,
6225
6012
  });
6226
6013
  });
6227
6014
  var BaseDropdownOptions = function (_a) {
@@ -6784,7 +6571,7 @@ var renderOptions$1 = function (options) {
6784
6571
  if (options.length)
6785
6572
  return options.map(function (option) { return (jsxRuntime.jsx(ColorRadioGroup$1.Option, __assign({ value: option }, { children: function (_a) {
6786
6573
  var checked = _a.checked;
6787
- return option.color ? (jsxRuntime.jsx(ColorSelector, __assign({}, option.color, { selected: checked, dataTestId: option.label + "-selector" }), void 0)) : (option.pattern && jsxRuntime.jsx(PatternSelector, { url: option.pattern.url, selected: checked }, void 0));
6574
+ return option.color ? (jsxRuntime.jsx(ColorSelector, __assign({}, option.color, { selected: checked, dataTestId: "".concat(option.label, "-selector") }), void 0)) : (option.pattern && jsxRuntime.jsx(PatternSelector, { url: option.pattern.url, selected: checked }, void 0));
6788
6575
  } }), option.label)); });
6789
6576
  else
6790
6577
  return jsxRuntime.jsx(OutOfStock, { title: "out of stock color" }, void 0);
@@ -6810,7 +6597,7 @@ var SingleColorPicker = function (_a) {
6810
6597
 
6811
6598
  var renderOptions = function (selectedColor, options) {
6812
6599
  if (options && options.length)
6813
- return options.map(function (option) { return (jsxRuntime.jsx(ColorRadioGroup$1.Option, __assign({ value: option }, { children: option.color ? (jsxRuntime.jsx(ColorSelector, __assign({}, option.color, { selected: selectedColor.has(option), dataTestId: option.label + "-selector" }), void 0)) : (option.pattern && (jsxRuntime.jsx(PatternSelector, { url: option.pattern.url, selected: selectedColor.has(option) }, void 0))) }), option.label)); });
6600
+ return options.map(function (option) { return (jsxRuntime.jsx(ColorRadioGroup$1.Option, __assign({ value: option }, { children: option.color ? (jsxRuntime.jsx(ColorSelector, __assign({}, option.color, { selected: selectedColor.has(option), dataTestId: "".concat(option.label, "-selector") }), void 0)) : (option.pattern && (jsxRuntime.jsx(PatternSelector, { url: option.pattern.url, selected: selectedColor.has(option) }, void 0))) }), option.label)); });
6814
6601
  else
6815
6602
  return jsxRuntime.jsx(OutOfStock, { title: "out of stock color" }, void 0);
6816
6603
  };
@@ -6846,7 +6633,7 @@ var MultiColorPicker = function (_a) {
6846
6633
 
6847
6634
  var Image$3 = newStyled.img(templateObject_1$P || (templateObject_1$P = __makeTemplateObject(["\n width: 4.063rem;\n height: 5.375rem;\n box-sizing: border-box;\n cursor: pointer;\n border: ", ";\n"], ["\n width: 4.063rem;\n height: 5.375rem;\n box-sizing: border-box;\n cursor: pointer;\n border: ", ";\n"])), function (_a) {
6848
6635
  var selected = _a.selected, theme = _a.theme;
6849
- return selected ? "0.063rem solid " + theme.colors.shades['700'].color : 'inherit';
6636
+ return selected ? "0.063rem solid ".concat(theme.colors.shades['700'].color) : 'inherit';
6850
6637
  });
6851
6638
  var ImageSmallPreview = function (_a) {
6852
6639
  var imageUrl = _a.imageUrl, alt = _a.alt, _b = _a.selected, selected = _b === void 0 ? false : _b, className = _a.className;
@@ -6937,7 +6724,7 @@ var StarContainer = newStyled.div(function (_a) {
6937
6724
  });
6938
6725
  var StarList = function (_a) {
6939
6726
  var rating = _a.rating, starsNumber = _a.starsNumber, fill = _a.fill, _b = _a.size, size = _b === void 0 ? exports.ComponentSize.Medium : _b;
6940
- return (jsxRuntime.jsx(Container$t, { children: __spreadArray([], new Array(starsNumber)).map(function (_, index) {
6727
+ return (jsxRuntime.jsx(Container$t, { children: __spreadArray([], new Array(starsNumber), true).map(function (_, index) {
6941
6728
  return (jsxRuntime.jsx(StarContainer, __assign({ "data-testid": "star-container", size: size }, { children: index < Math.floor(rating) ? (jsxRuntime.jsx(Icon.PDP.Star, { fill: fill }, void 0)) : index === Math.floor(rating) && rating % 1 != 0 ? (jsxRuntime.jsx(Icon.PDP.StarHalf, { fill: fill }, void 0)) : (jsxRuntime.jsx(Icon.PDP.StarEmpty, { fill: fill }, void 0)) }), index));
6942
6729
  }) }, void 0));
6943
6730
  };
@@ -7060,7 +6847,7 @@ var Container$q = newStyled.div(function (_a) {
7060
6847
  });
7061
6848
  });
7062
6849
  var getBarWithBasedOnPercent = function (percent) {
7063
- return percent <= 100 && percent >= 0 ? percent + "%" : '0%';
6850
+ return percent <= 100 && percent >= 0 ? "".concat(percent, "%") : '0%';
7064
6851
  };
7065
6852
  var ProgressBar = function (_a) {
7066
6853
  var description = _a.description, fillColor = _a.fillColor, _b = _a.widthAuto, widthAuto = _b === void 0 ? true : _b, percent = _a.percent;
@@ -7122,7 +6909,7 @@ var templateObject_1$H;
7122
6909
 
7123
6910
  var TooltipArrow = function (_a) {
7124
6911
  var height = _a.height, width = _a.width, fill = _a.fill, stroke = _a.stroke;
7125
- return (jsxRuntime.jsxs("svg", __assign({ width: width + "rem", height: height + "rem", viewBox: "0 0 20 12", xmlns: "http://www.w3.org/2000/svg" }, { children: [jsxRuntime.jsx("title", { children: "Tooltip Arrow" }, void 0), jsxRuntime.jsx("path", { d: "M11.1523 8.83618L18.9325 -0.500001L1.06752 -0.500001L8.84767 8.83618C9.44736 9.55581 10.5526 9.55581 11.1523 8.83618Z", fill: fill, stroke: stroke }, void 0)] }), void 0));
6912
+ return (jsxRuntime.jsxs("svg", __assign({ width: "".concat(width, "rem"), height: "".concat(height, "rem"), viewBox: "0 0 20 12", xmlns: "http://www.w3.org/2000/svg" }, { children: [jsxRuntime.jsx("title", { children: "Tooltip Arrow" }, void 0), jsxRuntime.jsx("path", { d: "M11.1523 8.83618L18.9325 -0.500001L1.06752 -0.500001L8.84767 8.83618C9.44736 9.55581 10.5526 9.55581 11.1523 8.83618Z", fill: fill, stroke: stroke }, void 0)] }), void 0));
7126
6913
  };
7127
6914
 
7128
6915
  var getWrapperFlexDirection = function (position) {
@@ -7209,10 +6996,10 @@ var TooltipContainer = newStyled.div(function (_a) {
7209
6996
  display: 'flex',
7210
6997
  flexDirection: getContainerFlexDirection(position),
7211
6998
  alignItems: getTooltipAlignItems(position, align),
7212
- marginLeft: getTooltipMargin(position, exports.ComponentPosition.Right, childrenWidth + "px"),
7213
- marginRight: getTooltipMargin(position, exports.ComponentPosition.Left, childrenWidth + "px"),
7214
- marginTop: getTooltipMargin(position, exports.ComponentPosition.Top, "-" + tooltipHeight + "px"),
7215
- marginBottom: getTooltipMargin(position, exports.ComponentPosition.Bottom, "-" + tooltipHeight + "px"),
6999
+ marginLeft: getTooltipMargin(position, exports.ComponentPosition.Right, "".concat(childrenWidth, "px")),
7000
+ marginRight: getTooltipMargin(position, exports.ComponentPosition.Left, "".concat(childrenWidth, "px")),
7001
+ marginTop: getTooltipMargin(position, exports.ComponentPosition.Top, "-".concat(tooltipHeight, "px")),
7002
+ marginBottom: getTooltipMargin(position, exports.ComponentPosition.Bottom, "-".concat(tooltipHeight, "px")),
7216
7003
  transition: 'opacity 0.2s ease',
7217
7004
  userSelect: 'none',
7218
7005
  opacity: 0,
@@ -7263,7 +7050,7 @@ var Tooltip = function (_a) {
7263
7050
  var ref = tooltipRef.current;
7264
7051
  setTooltipHeight((ref === null || ref === void 0 ? void 0 : ref.offsetHeight) || 0);
7265
7052
  }, [tooltipRef]);
7266
- return (jsxRuntime.jsxs(Wrapper$5, __assign({ position: position, "data-testid": "TooltipWrapper" }, { children: [jsxRuntime.jsx("div", __assign({ ref: childrenRef }, { children: children }), void 0), jsxRuntime.jsxs(TooltipContainer, __assign({ position: position, align: align, childrenWidth: childrenWidth, tooltipHeight: tooltipHeight, ref: tooltipRef, onClick: onClick, "data-testid": "TooltipContainer", className: "tooltip-container" }, { children: [jsxRuntime.jsxs(ContentWrapper, __assign({ borderColor: theme.colors.shades['200'].color }, { children: [header && (jsxRuntime.jsxs(TopSection, __assign({ "data-testid": "TooltipHeader" }, { children: [jsxRuntime.jsx(IconContainer$4, { children: React__default['default'].createElement(header.Icon, { fill: theme.colors.pallete.secondary.color }) }, void 0), jsxRuntime.jsx(Title$3, __assign({ color: theme.colors.pallete.secondary.color }, { children: header.title }), void 0)] }), void 0)), jsxRuntime.jsx(TooltipText, __assign({ color: theme.colors.pallete.secondary.color, "data-testid": "TooltipText" }, { children: text }), void 0)] }), void 0), jsxRuntime.jsx(TooltipArrowContainer, __assign({ position: position, "data-testid": "TooltipArrow" }, { children: jsxRuntime.jsx(TooltipArrow, { width: 1.25, height: 0.75, fill: "#ffffff", stroke: theme.colors.shades['10'].color }, void 0) }), void 0)] }), void 0)] }), void 0));
7053
+ return (jsxRuntime.jsxs(Wrapper$5, __assign({ position: position, "data-testid": "TooltipWrapper" }, { children: [jsxRuntime.jsx("div", __assign({ ref: childrenRef }, { children: children }), void 0), jsxRuntime.jsxs(TooltipContainer, __assign({ position: position, align: align, childrenWidth: childrenWidth, tooltipHeight: tooltipHeight, ref: tooltipRef, onClick: onClick, "data-testid": "TooltipContainer", className: "tooltip-container" }, { children: [jsxRuntime.jsxs(ContentWrapper, __assign({ borderColor: theme.colors.shades['200'].color }, { children: [header && (jsxRuntime.jsxs(TopSection, __assign({ "data-testid": "TooltipHeader" }, { children: [jsxRuntime.jsx(IconContainer$4, { children: React__default["default"].createElement(header.Icon, { fill: theme.colors.pallete.secondary.color }) }, void 0), jsxRuntime.jsx(Title$3, __assign({ color: theme.colors.pallete.secondary.color }, { children: header.title }), void 0)] }), void 0)), jsxRuntime.jsx(TooltipText, __assign({ color: theme.colors.pallete.secondary.color, "data-testid": "TooltipText" }, { children: text }), void 0)] }), void 0), jsxRuntime.jsx(TooltipArrowContainer, __assign({ position: position, "data-testid": "TooltipArrow" }, { children: jsxRuntime.jsx(TooltipArrow, { width: 1.25, height: 0.75, fill: "#ffffff", stroke: theme.colors.shades['10'].color }, void 0) }), void 0)] }), void 0)] }), void 0));
7267
7054
  };
7268
7055
 
7269
7056
  /* base styles & variants */
@@ -7414,7 +7201,7 @@ var RadioInput = function (_a) {
7414
7201
  var value = event.currentTarget.value;
7415
7202
  onChange({ value: value, label: label });
7416
7203
  };
7417
- return (jsxRuntime.jsxs(Wrapper$4, { children: [jsxRuntime.jsxs(Container$o, __assign({ theme: theme, size: size, "data-testid": "container" }, { children: [jsxRuntime.jsx(Input$2, { id: name + "-" + id, type: "radio", name: name, value: value, checked: checked, onChange: function (e) { return (disabled ? null : handleChange(e, label)); }, disabled: disabled }, void 0), jsxRuntime.jsx(CustomRadio, { size: size, isChecked: checked, disabled: disabled, theme: theme, "data-testid": "custom-radio" }, void 0)] }), void 0), jsxRuntime.jsx(Label$2, __assign({ htmlFor: name + "-" + id, "data-testid": "label", variant: "regular", size: size, disabled: disabled }, { children: label }), void 0)] }, void 0));
7204
+ return (jsxRuntime.jsxs(Wrapper$4, { children: [jsxRuntime.jsxs(Container$o, __assign({ theme: theme, size: size, "data-testid": "container" }, { children: [jsxRuntime.jsx(Input$2, { id: "".concat(name, "-").concat(id), type: "radio", name: name, value: value, checked: checked, onChange: function (e) { return (disabled ? null : handleChange(e, label)); }, disabled: disabled }, void 0), jsxRuntime.jsx(CustomRadio, { size: size, isChecked: checked, disabled: disabled, theme: theme, "data-testid": "custom-radio" }, void 0)] }), void 0), jsxRuntime.jsx(Label$2, __assign({ htmlFor: "".concat(name, "-").concat(id), "data-testid": "label", variant: "regular", size: size, disabled: disabled }, { children: label }), void 0)] }, void 0));
7418
7205
  };
7419
7206
  var templateObject_1$F, templateObject_2$s;
7420
7207
 
@@ -7426,7 +7213,7 @@ var RadioGroupInput = function (_a) {
7426
7213
  onChange(selected);
7427
7214
  };
7428
7215
  return (jsxRuntime.jsx("div", __assign({ "data-testid": "group-container" }, { children: options.map(function (option, index) {
7429
- return (jsxRuntime.jsx(RadioInput, { id: "" + index, name: name, value: option.value, label: option.label, onChange: function (option) { return handleChange(option); }, checked: option.value === (selectedInput === null || selectedInput === void 0 ? void 0 : selectedInput.value), size: size, disabled: disabled, "data-testid": "input" }, index));
7216
+ return (jsxRuntime.jsx(RadioInput, { id: "".concat(index), name: name, value: option.value, label: option.label, onChange: function (option) { return handleChange(option); }, checked: option.value === (selectedInput === null || selectedInput === void 0 ? void 0 : selectedInput.value), size: size, disabled: disabled, "data-testid": "input" }, index));
7430
7217
  }) }), void 0));
7431
7218
  };
7432
7219
 
@@ -7591,7 +7378,7 @@ var isEmpty = function (value) {
7591
7378
  };
7592
7379
 
7593
7380
  var sliceString = function (str, maxLength) {
7594
- return str.length > maxLength ? str.slice(0, maxLength) + "..." : str;
7381
+ return str.length > maxLength ? "".concat(str.slice(0, maxLength), "...") : str;
7595
7382
  };
7596
7383
 
7597
7384
  var ErrorText = newStyled.h3(templateObject_1$A || (templateObject_1$A = __makeTemplateObject(["\n color: ", " !important;\n font-size: 0.75rem;\n font-weight: 600;\n margin: 0;\n font-height: 1rem;\n margin-left: 0.313rem;\n"], ["\n color: ", " !important;\n font-size: 0.75rem;\n font-weight: 600;\n margin: 0;\n font-height: 1rem;\n margin-left: 0.313rem;\n"])), function (props) { return props.color; });
@@ -7603,7 +7390,7 @@ var Error$1 = function (_a) {
7603
7390
  };
7604
7391
  var templateObject_1$A, templateObject_2$o;
7605
7392
 
7606
- var Container$k = newStyled.div(templateObject_1$z || (templateObject_1$z = __makeTemplateObject(["\n height: 3rem;\n input {\n border-color: ", ";\n }\n"], ["\n height: 3rem;\n input {\n border-color: ", ";\n }\n"])), function (_a) {
7393
+ var Container$k = newStyled.div(templateObject_1$z || (templateObject_1$z = __makeTemplateObject(["\n input {\n border-color: ", ";\n }\n"], ["\n input {\n border-color: ", ";\n }\n"])), function (_a) {
7607
7394
  var color = _a.color;
7608
7395
  return color;
7609
7396
  });
@@ -7929,8 +7716,8 @@ var index$2 = function (breakpoints) {
7929
7716
  var mediaQueries = function (_a) {
7930
7717
  var theme = _a.theme;
7931
7718
  return index$2([
7932
- "@media(min-width: " + theme.mediaQueries.mobile + "px)",
7933
- "@media(min-width: " + theme.mediaQueries.desktop + "px)",
7719
+ "@media(min-width: ".concat(theme.mediaQueries.mobile, "px)"),
7720
+ "@media(min-width: ".concat(theme.mediaQueries.desktop, "px)"),
7934
7721
  ], { literal: true });
7935
7722
  };
7936
7723
 
@@ -8056,7 +7843,7 @@ function formatDate(date) {
8056
7843
  var day = date.getDate();
8057
7844
  var month = date.getMonth() + 1;
8058
7845
  var year = date.getFullYear();
8059
- return month < 10 ? day + "/0" + month + "/" + year : day + "/" + month + "/" + year;
7846
+ return month < 10 ? "".concat(day, "/0").concat(month, "/").concat(year) : "".concat(day, "/").concat(month, "/").concat(year);
8060
7847
  }
8061
7848
 
8062
7849
  var Container$b = newStyled.div(templateObject_1$j || (templateObject_1$j = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n width: auto;\n color: #292929;\n"], ["\n display: flex;\n flex-direction: column;\n width: auto;\n color: #292929;\n"])));
@@ -8113,7 +7900,7 @@ var Direction;
8113
7900
  })(Direction || (Direction = {}));
8114
7901
  var ArrowButton$1 = function (_a) {
8115
7902
  var direction = _a.direction, onClick = _a.onClick, width = _a.width, height = _a.height, className = _a.className;
8116
- return (jsxRuntime.jsx(Button$3, __assign({ className: className, type: "button", onClick: onClick, "data-testid": "arrow-button-" + direction }, { children: direction === 'left' ? (jsxRuntime.jsx(Icon.Arrows.ChevronLeft, { width: width, height: height, opacity: 0.5 }, void 0)) : (jsxRuntime.jsx(Icon.Arrows.ChevronRight, { width: width, height: height, opacity: 0.5 }, void 0)) }), void 0));
7903
+ return (jsxRuntime.jsx(Button$3, __assign({ className: className, type: "button", onClick: onClick, "data-testid": "arrow-button-".concat(direction) }, { children: direction === 'left' ? (jsxRuntime.jsx(Icon.Arrows.ChevronLeft, { width: width, height: height, opacity: 0.5 }, void 0)) : (jsxRuntime.jsx(Icon.Arrows.ChevronRight, { width: width, height: height, opacity: 0.5 }, void 0)) }), void 0));
8117
7904
  };
8118
7905
 
8119
7906
  function _defineProperty(obj, key, value) {
@@ -8136,14 +7923,9 @@ function ownKeys(object, enumerableOnly) {
8136
7923
 
8137
7924
  if (Object.getOwnPropertySymbols) {
8138
7925
  var symbols = Object.getOwnPropertySymbols(object);
8139
-
8140
- if (enumerableOnly) {
8141
- symbols = symbols.filter(function (sym) {
8142
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
8143
- });
8144
- }
8145
-
8146
- keys.push.apply(keys, symbols);
7926
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
7927
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
7928
+ })), keys.push.apply(keys, symbols);
8147
7929
  }
8148
7930
 
8149
7931
  return keys;
@@ -8151,19 +7933,12 @@ function ownKeys(object, enumerableOnly) {
8151
7933
 
8152
7934
  function _objectSpread2(target) {
8153
7935
  for (var i = 1; i < arguments.length; i++) {
8154
- var source = arguments[i] != null ? arguments[i] : {};
8155
-
8156
- if (i % 2) {
8157
- ownKeys(Object(source), true).forEach(function (key) {
8158
- _defineProperty(target, key, source[key]);
8159
- });
8160
- } else if (Object.getOwnPropertyDescriptors) {
8161
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
8162
- } else {
8163
- ownKeys(Object(source)).forEach(function (key) {
8164
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8165
- });
8166
- }
7936
+ var source = null != arguments[i] ? arguments[i] : {};
7937
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
7938
+ _defineProperty(target, key, source[key]);
7939
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
7940
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7941
+ });
8167
7942
  }
8168
7943
 
8169
7944
  return target;
@@ -8188,6 +7963,9 @@ function _defineProperties(target, props) {
8188
7963
  function _createClass(Constructor, protoProps, staticProps) {
8189
7964
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
8190
7965
  if (staticProps) _defineProperties(Constructor, staticProps);
7966
+ Object.defineProperty(Constructor, "prototype", {
7967
+ writable: false
7968
+ });
8191
7969
  return Constructor;
8192
7970
  }
8193
7971
 
@@ -8220,6 +7998,9 @@ function _inherits(subClass, superClass) {
8220
7998
  configurable: true
8221
7999
  }
8222
8000
  });
8001
+ Object.defineProperty(subClass, "prototype", {
8002
+ writable: false
8003
+ });
8223
8004
  if (superClass) _setPrototypeOf(subClass, superClass);
8224
8005
  }
8225
8006
 
@@ -8246,22 +8027,18 @@ function _isNativeReflectConstruct() {
8246
8027
  function _typeof(obj) {
8247
8028
  "@babel/helpers - typeof";
8248
8029
 
8249
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
8250
- _typeof = function _typeof(obj) {
8251
- return typeof obj;
8252
- };
8253
- } else {
8254
- _typeof = function _typeof(obj) {
8255
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
8256
- };
8257
- }
8258
-
8259
- return _typeof(obj);
8030
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8031
+ return typeof obj;
8032
+ } : function (obj) {
8033
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
8034
+ }, _typeof(obj);
8260
8035
  }
8261
8036
 
8262
8037
  function _possibleConstructorReturn(self, call) {
8263
8038
  if (call && (_typeof(call) === "object" || typeof call === "function")) {
8264
8039
  return call;
8040
+ } else if (call !== void 0) {
8041
+ throw new TypeError("Derived constructors may only return object or undefined");
8265
8042
  }
8266
8043
 
8267
8044
  return _assertThisInitialized(self);
@@ -9047,7 +8824,7 @@ var extractObject = function extractObject(spec, keys) {
9047
8824
 
9048
8825
  var initializedState = function initializedState(spec) {
9049
8826
  // spec also contains listRef, trackRef
9050
- var slideCount = React__default['default'].Children.count(spec.children);
8827
+ var slideCount = React__default["default"].Children.count(spec.children);
9051
8828
  var listNode = spec.listRef;
9052
8829
  var listWidth = Math.ceil(getWidth(listNode));
9053
8830
  var trackNode = spec.trackRef && spec.trackRef.node;
@@ -9854,10 +9631,10 @@ var renderSlides = function renderSlides(spec) {
9854
9631
  var slides = [];
9855
9632
  var preCloneSlides = [];
9856
9633
  var postCloneSlides = [];
9857
- var childrenCount = React__default['default'].Children.count(spec.children);
9634
+ var childrenCount = React__default["default"].Children.count(spec.children);
9858
9635
  var startIndex = lazyStartIndex(spec);
9859
9636
  var endIndex = lazyEndIndex(spec);
9860
- React__default['default'].Children.forEach(spec.children, function (elem, index) {
9637
+ React__default["default"].Children.forEach(spec.children, function (elem, index) {
9861
9638
  var child;
9862
9639
  var childOnClickOptions = {
9863
9640
  message: "children",
@@ -9869,7 +9646,7 @@ var renderSlides = function renderSlides(spec) {
9869
9646
  if (!spec.lazyLoad || spec.lazyLoad && spec.lazyLoadedList.indexOf(index) >= 0) {
9870
9647
  child = elem;
9871
9648
  } else {
9872
- child = /*#__PURE__*/React__default['default'].createElement("div", null);
9649
+ child = /*#__PURE__*/React__default["default"].createElement("div", null);
9873
9650
  }
9874
9651
 
9875
9652
  var childStyle = getSlideStyle(_objectSpread2(_objectSpread2({}, spec), {}, {
@@ -9880,7 +9657,7 @@ var renderSlides = function renderSlides(spec) {
9880
9657
  index: index
9881
9658
  })); // push a cloned element of the desired slide
9882
9659
 
9883
- slides.push( /*#__PURE__*/React__default['default'].cloneElement(child, {
9660
+ slides.push( /*#__PURE__*/React__default["default"].cloneElement(child, {
9884
9661
  key: "original" + getKey(child, index),
9885
9662
  "data-index": index,
9886
9663
  className: classnames(slideClasses, slideClass),
@@ -9911,7 +9688,7 @@ var renderSlides = function renderSlides(spec) {
9911
9688
  slideClasses = getSlideClasses(_objectSpread2(_objectSpread2({}, spec), {}, {
9912
9689
  index: key
9913
9690
  }));
9914
- preCloneSlides.push( /*#__PURE__*/React__default['default'].cloneElement(child, {
9691
+ preCloneSlides.push( /*#__PURE__*/React__default["default"].cloneElement(child, {
9915
9692
  key: "precloned" + getKey(child, key),
9916
9693
  "data-index": key,
9917
9694
  tabIndex: "-1",
@@ -9938,7 +9715,7 @@ var renderSlides = function renderSlides(spec) {
9938
9715
  slideClasses = getSlideClasses(_objectSpread2(_objectSpread2({}, spec), {}, {
9939
9716
  index: key
9940
9717
  }));
9941
- postCloneSlides.push( /*#__PURE__*/React__default['default'].cloneElement(child, {
9718
+ postCloneSlides.push( /*#__PURE__*/React__default["default"].cloneElement(child, {
9942
9719
  key: "postcloned" + getKey(child, key),
9943
9720
  "data-index": key,
9944
9721
  tabIndex: "-1",
@@ -10002,7 +9779,7 @@ var Track = /*#__PURE__*/function (_React$PureComponent) {
10002
9779
  onMouseOver: onMouseOver,
10003
9780
  onMouseLeave: onMouseLeave
10004
9781
  };
10005
- return /*#__PURE__*/React__default['default'].createElement("div", _extends$1({
9782
+ return /*#__PURE__*/React__default["default"].createElement("div", _extends$1({
10006
9783
  ref: this.handleRef,
10007
9784
  className: "slick-track",
10008
9785
  style: this.props.trackStyle
@@ -10011,7 +9788,7 @@ var Track = /*#__PURE__*/function (_React$PureComponent) {
10011
9788
  }]);
10012
9789
 
10013
9790
  return Track;
10014
- }(React__default['default'].PureComponent);
9791
+ }(React__default["default"].PureComponent);
10015
9792
 
10016
9793
  var getDotCount = function getDotCount(spec) {
10017
9794
  var dots;
@@ -10087,22 +9864,22 @@ var Dots = /*#__PURE__*/function (_React$PureComponent) {
10087
9864
  currentSlide: currentSlide
10088
9865
  };
10089
9866
  var onClick = this.clickHandler.bind(this, dotOptions);
10090
- dots = dots.concat( /*#__PURE__*/React__default['default'].createElement("li", {
9867
+ dots = dots.concat( /*#__PURE__*/React__default["default"].createElement("li", {
10091
9868
  key: i,
10092
9869
  className: className
10093
- }, /*#__PURE__*/React__default['default'].cloneElement(this.props.customPaging(i), {
9870
+ }, /*#__PURE__*/React__default["default"].cloneElement(this.props.customPaging(i), {
10094
9871
  onClick: onClick
10095
9872
  })));
10096
9873
  }
10097
9874
 
10098
- return /*#__PURE__*/React__default['default'].cloneElement(this.props.appendDots(dots), _objectSpread2({
9875
+ return /*#__PURE__*/React__default["default"].cloneElement(this.props.appendDots(dots), _objectSpread2({
10099
9876
  className: this.props.dotsClass
10100
9877
  }, mouseEvents));
10101
9878
  }
10102
9879
  }]);
10103
9880
 
10104
9881
  return Dots;
10105
- }(React__default['default'].PureComponent);
9882
+ }(React__default["default"].PureComponent);
10106
9883
 
10107
9884
  var PrevArrow = /*#__PURE__*/function (_React$PureComponent) {
10108
9885
  _inherits(PrevArrow, _React$PureComponent);
@@ -10156,9 +9933,9 @@ var PrevArrow = /*#__PURE__*/function (_React$PureComponent) {
10156
9933
  var prevArrow;
10157
9934
 
10158
9935
  if (this.props.prevArrow) {
10159
- prevArrow = /*#__PURE__*/React__default['default'].cloneElement(this.props.prevArrow, _objectSpread2(_objectSpread2({}, prevArrowProps), customProps));
9936
+ prevArrow = /*#__PURE__*/React__default["default"].cloneElement(this.props.prevArrow, _objectSpread2(_objectSpread2({}, prevArrowProps), customProps));
10160
9937
  } else {
10161
- prevArrow = /*#__PURE__*/React__default['default'].createElement("button", _extends$1({
9938
+ prevArrow = /*#__PURE__*/React__default["default"].createElement("button", _extends$1({
10162
9939
  key: "0",
10163
9940
  type: "button"
10164
9941
  }, prevArrowProps), " ", "Previous");
@@ -10169,7 +9946,7 @@ var PrevArrow = /*#__PURE__*/function (_React$PureComponent) {
10169
9946
  }]);
10170
9947
 
10171
9948
  return PrevArrow;
10172
- }(React__default['default'].PureComponent);
9949
+ }(React__default["default"].PureComponent);
10173
9950
  var NextArrow = /*#__PURE__*/function (_React$PureComponent2) {
10174
9951
  _inherits(NextArrow, _React$PureComponent2);
10175
9952
 
@@ -10222,9 +9999,9 @@ var NextArrow = /*#__PURE__*/function (_React$PureComponent2) {
10222
9999
  var nextArrow;
10223
10000
 
10224
10001
  if (this.props.nextArrow) {
10225
- nextArrow = /*#__PURE__*/React__default['default'].cloneElement(this.props.nextArrow, _objectSpread2(_objectSpread2({}, nextArrowProps), customProps));
10002
+ nextArrow = /*#__PURE__*/React__default["default"].cloneElement(this.props.nextArrow, _objectSpread2(_objectSpread2({}, nextArrowProps), customProps));
10226
10003
  } else {
10227
- nextArrow = /*#__PURE__*/React__default['default'].createElement("button", _extends$1({
10004
+ nextArrow = /*#__PURE__*/React__default["default"].createElement("button", _extends$1({
10228
10005
  key: "1",
10229
10006
  type: "button"
10230
10007
  }, nextArrowProps), " ", "Next");
@@ -10235,7 +10012,7 @@ var NextArrow = /*#__PURE__*/function (_React$PureComponent2) {
10235
10012
  }]);
10236
10013
 
10237
10014
  return NextArrow;
10238
- }(React__default['default'].PureComponent);
10015
+ }(React__default["default"].PureComponent);
10239
10016
 
10240
10017
  /**
10241
10018
  * A collection of shims that provide minimal functionality of the ES6 collections.
@@ -11317,10 +11094,10 @@ var InnerSlider = /*#__PURE__*/function (_React$Component) {
11317
11094
  var setTrackStyle = _this.didPropsChange(prevProps);
11318
11095
 
11319
11096
  setTrackStyle && _this.updateState(spec, setTrackStyle, function () {
11320
- if (_this.state.currentSlide >= React__default['default'].Children.count(_this.props.children)) {
11097
+ if (_this.state.currentSlide >= React__default["default"].Children.count(_this.props.children)) {
11321
11098
  _this.changeSlide({
11322
11099
  message: "index",
11323
- index: React__default['default'].Children.count(_this.props.children) - _this.props.slidesToShow,
11100
+ index: React__default["default"].Children.count(_this.props.children) - _this.props.slidesToShow,
11324
11101
  currentSlide: _this.state.currentSlide
11325
11102
  });
11326
11103
  }
@@ -11381,7 +11158,7 @@ var InnerSlider = /*#__PURE__*/function (_React$Component) {
11381
11158
  });
11382
11159
  var trackStyle = getTrackCSS(spec);
11383
11160
 
11384
- if (setTrackStyle || React__default['default'].Children.count(_this.props.children) !== React__default['default'].Children.count(spec.children)) {
11161
+ if (setTrackStyle || React__default["default"].Children.count(_this.props.children) !== React__default["default"].Children.count(spec.children)) {
11385
11162
  updatedState["trackStyle"] = trackStyle;
11386
11163
  }
11387
11164
 
@@ -11433,7 +11210,7 @@ var InnerSlider = /*#__PURE__*/function (_React$Component) {
11433
11210
  };
11434
11211
  }
11435
11212
 
11436
- var childrenCount = React__default['default'].Children.count(_this.props.children);
11213
+ var childrenCount = React__default["default"].Children.count(_this.props.children);
11437
11214
 
11438
11215
  var spec = _objectSpread2(_objectSpread2(_objectSpread2({}, _this.props), _this.state), {}, {
11439
11216
  slideCount: childrenCount
@@ -11859,7 +11636,7 @@ var InnerSlider = /*#__PURE__*/function (_React$Component) {
11859
11636
  onMouseOver: pauseOnDotsHover ? _this.onDotsOver : null,
11860
11637
  onMouseLeave: pauseOnDotsHover ? _this.onDotsLeave : null
11861
11638
  });
11862
- dots = /*#__PURE__*/React__default['default'].createElement(Dots, dotProps);
11639
+ dots = /*#__PURE__*/React__default["default"].createElement(Dots, dotProps);
11863
11640
  }
11864
11641
 
11865
11642
  var prevArrow, nextArrow;
@@ -11867,8 +11644,8 @@ var InnerSlider = /*#__PURE__*/function (_React$Component) {
11867
11644
  arrowProps.clickHandler = _this.changeSlide;
11868
11645
 
11869
11646
  if (_this.props.arrows) {
11870
- prevArrow = /*#__PURE__*/React__default['default'].createElement(PrevArrow, arrowProps);
11871
- nextArrow = /*#__PURE__*/React__default['default'].createElement(NextArrow, arrowProps);
11647
+ prevArrow = /*#__PURE__*/React__default["default"].createElement(PrevArrow, arrowProps);
11648
+ nextArrow = /*#__PURE__*/React__default["default"].createElement(NextArrow, arrowProps);
11872
11649
  }
11873
11650
 
11874
11651
  var verticalHeightStyle = null;
@@ -11927,9 +11704,9 @@ var InnerSlider = /*#__PURE__*/function (_React$Component) {
11927
11704
  };
11928
11705
  }
11929
11706
 
11930
- return /*#__PURE__*/React__default['default'].createElement("div", innerSliderProps, !_this.props.unslick ? prevArrow : "", /*#__PURE__*/React__default['default'].createElement("div", _extends$1({
11707
+ return /*#__PURE__*/React__default["default"].createElement("div", innerSliderProps, !_this.props.unslick ? prevArrow : "", /*#__PURE__*/React__default["default"].createElement("div", _extends$1({
11931
11708
  ref: _this.listRefHandler
11932
- }, listProps), /*#__PURE__*/React__default['default'].createElement(Track, _extends$1({
11709
+ }, listProps), /*#__PURE__*/React__default["default"].createElement(Track, _extends$1({
11933
11710
  ref: _this.trackRefHandler
11934
11711
  }, trackProps), _this.props.children)), !_this.props.unslick ? nextArrow : "", !_this.props.unslick ? dots : "");
11935
11712
  });
@@ -11938,7 +11715,7 @@ var InnerSlider = /*#__PURE__*/function (_React$Component) {
11938
11715
  _this.track = null;
11939
11716
  _this.state = _objectSpread2(_objectSpread2({}, initialState$1), {}, {
11940
11717
  currentSlide: _this.props.initialSlide,
11941
- slideCount: React__default['default'].Children.count(_this.props.children)
11718
+ slideCount: React__default["default"].Children.count(_this.props.children)
11942
11719
  });
11943
11720
  _this.callbackTimers = [];
11944
11721
  _this.clickable = true;
@@ -11974,12 +11751,12 @@ var InnerSlider = /*#__PURE__*/function (_React$Component) {
11974
11751
  }
11975
11752
  }
11976
11753
 
11977
- return setTrackStyle || React__default['default'].Children.count(this.props.children) !== React__default['default'].Children.count(prevProps.children);
11754
+ return setTrackStyle || React__default["default"].Children.count(this.props.children) !== React__default["default"].Children.count(prevProps.children);
11978
11755
  }
11979
11756
  }]);
11980
11757
 
11981
11758
  return InnerSlider;
11982
- }(React__default['default'].Component);
11759
+ }(React__default["default"].Component);
11983
11760
 
11984
11761
  var camel2hyphen$1 = function (str) {
11985
11762
  return str
@@ -12048,7 +11825,7 @@ var defaultProps = {
12048
11825
  adaptiveHeight: false,
12049
11826
  afterChange: null,
12050
11827
  appendDots: function appendDots(dots) {
12051
- return /*#__PURE__*/React__default['default'].createElement("ul", {
11828
+ return /*#__PURE__*/React__default["default"].createElement("ul", {
12052
11829
  style: {
12053
11830
  display: "block"
12054
11831
  }
@@ -12063,7 +11840,7 @@ var defaultProps = {
12063
11840
  className: "",
12064
11841
  cssEase: "ease",
12065
11842
  customPaging: function customPaging(i) {
12066
- return /*#__PURE__*/React__default['default'].createElement("button", null, i + 1);
11843
+ return /*#__PURE__*/React__default["default"].createElement("button", null, i + 1);
12067
11844
  },
12068
11845
  dots: false,
12069
11846
  dotsClass: "slick-dots",
@@ -12273,7 +12050,7 @@ var Slider = /*#__PURE__*/function (_React$Component) {
12273
12050
  } // makes sure that children is an array, even when there is only 1 child
12274
12051
 
12275
12052
 
12276
- var children = React__default['default'].Children.toArray(this.props.children); // Children may contain false or null, so we should filter them
12053
+ var children = React__default["default"].Children.toArray(this.props.children); // Children may contain false or null, so we should filter them
12277
12054
  // children may also contain string filled with spaces (in certain cases where we use jsx strings)
12278
12055
 
12279
12056
  children = children.filter(function (child) {
@@ -12304,7 +12081,7 @@ var Slider = /*#__PURE__*/function (_React$Component) {
12304
12081
  }
12305
12082
 
12306
12083
  if (k >= children.length) break;
12307
- row.push( /*#__PURE__*/React__default['default'].cloneElement(children[k], {
12084
+ row.push( /*#__PURE__*/React__default["default"].cloneElement(children[k], {
12308
12085
  key: 100 * i + 10 * j + k,
12309
12086
  tabIndex: -1,
12310
12087
  style: {
@@ -12314,20 +12091,20 @@ var Slider = /*#__PURE__*/function (_React$Component) {
12314
12091
  }));
12315
12092
  }
12316
12093
 
12317
- newSlide.push( /*#__PURE__*/React__default['default'].createElement("div", {
12094
+ newSlide.push( /*#__PURE__*/React__default["default"].createElement("div", {
12318
12095
  key: 10 * i + j
12319
12096
  }, row));
12320
12097
  }
12321
12098
 
12322
12099
  if (settings.variableWidth) {
12323
- newChildren.push( /*#__PURE__*/React__default['default'].createElement("div", {
12100
+ newChildren.push( /*#__PURE__*/React__default["default"].createElement("div", {
12324
12101
  key: i,
12325
12102
  style: {
12326
12103
  width: currentWidth
12327
12104
  }
12328
12105
  }, newSlide));
12329
12106
  } else {
12330
- newChildren.push( /*#__PURE__*/React__default['default'].createElement("div", {
12107
+ newChildren.push( /*#__PURE__*/React__default["default"].createElement("div", {
12331
12108
  key: i
12332
12109
  }, newSlide));
12333
12110
  }
@@ -12335,14 +12112,14 @@ var Slider = /*#__PURE__*/function (_React$Component) {
12335
12112
 
12336
12113
  if (settings === "unslick") {
12337
12114
  var className = "regular slider " + (this.props.className || "");
12338
- return /*#__PURE__*/React__default['default'].createElement("div", {
12115
+ return /*#__PURE__*/React__default["default"].createElement("div", {
12339
12116
  className: className
12340
12117
  }, children);
12341
12118
  } else if (newChildren.length <= settings.slidesToShow) {
12342
12119
  settings.unslick = true;
12343
12120
  }
12344
12121
 
12345
- return /*#__PURE__*/React__default['default'].createElement(InnerSlider, _extends$1({
12122
+ return /*#__PURE__*/React__default["default"].createElement(InnerSlider, _extends$1({
12346
12123
  style: this.props.style,
12347
12124
  ref: this.innerSliderRefHandler
12348
12125
  }, settings), newChildren);
@@ -12350,14 +12127,14 @@ var Slider = /*#__PURE__*/function (_React$Component) {
12350
12127
  }]);
12351
12128
 
12352
12129
  return Slider;
12353
- }(React__default['default'].Component);
12130
+ }(React__default["default"].Component);
12354
12131
 
12355
- var StyledSlider = newStyled(Slider)(templateObject_1$i || (templateObject_1$i = __makeTemplateObject(["\n .slick-dots {\n position: static;\n display: flex !important;\n justify-content: center;\n column-gap: ", ";\n margin-top: ", ";\n }\n .slick-prev {\n left: ", ";\n }\n .slick-next {\n right: ", ";\n }\n .slick-prev,\n .slick-next {\n width: fit-content;\n height: fit-content;\n }\n .slick-prev:before,\n .slick-next:before {\n content: none;\n }\n .slick-dots li {\n margin: 0;\n width: auto;\n line-height: 0;\n height: auto;\n }\n"], ["\n .slick-dots {\n position: static;\n display: flex !important;\n justify-content: center;\n column-gap: ", ";\n margin-top: ", ";\n }\n .slick-prev {\n left: ", ";\n }\n .slick-next {\n right: ", ";\n }\n .slick-prev,\n .slick-next {\n width: fit-content;\n height: fit-content;\n }\n .slick-prev:before,\n .slick-next:before {\n content: none;\n }\n .slick-dots li {\n margin: 0;\n width: auto;\n line-height: 0;\n height: auto;\n }\n"])), function (props) { return props.dotsSpacing + "rem"; }, function (props) { return props.dotListMarginTop + "rem"; }, function (_a) {
12132
+ var StyledSlider = newStyled(Slider)(templateObject_1$i || (templateObject_1$i = __makeTemplateObject(["\n .slick-dots {\n position: static;\n display: flex !important;\n justify-content: center;\n column-gap: ", ";\n margin-top: ", ";\n }\n .slick-prev {\n left: ", ";\n }\n .slick-next {\n right: ", ";\n }\n .slick-prev,\n .slick-next {\n width: fit-content;\n height: fit-content;\n }\n .slick-prev:before,\n .slick-next:before {\n content: none;\n }\n .slick-dots li {\n margin: 0;\n width: auto;\n line-height: 0;\n height: auto;\n }\n"], ["\n .slick-dots {\n position: static;\n display: flex !important;\n justify-content: center;\n column-gap: ", ";\n margin-top: ", ";\n }\n .slick-prev {\n left: ", ";\n }\n .slick-next {\n right: ", ";\n }\n .slick-prev,\n .slick-next {\n width: fit-content;\n height: fit-content;\n }\n .slick-prev:before,\n .slick-next:before {\n content: none;\n }\n .slick-dots li {\n margin: 0;\n width: auto;\n line-height: 0;\n height: auto;\n }\n"])), function (props) { return "".concat(props.dotsSpacing, "rem"); }, function (props) { return "".concat(props.dotListMarginTop, "rem"); }, function (_a) {
12356
12133
  var arrowPaddingOffset = _a.arrowPaddingOffset, _b = _a.arrowPadding, arrowPadding = _b === void 0 ? 0 : _b;
12357
- return "-" + (arrowPaddingOffset + arrowPadding) + "rem";
12134
+ return "-".concat(arrowPaddingOffset + arrowPadding, "rem");
12358
12135
  }, function (_a) {
12359
12136
  var arrowPaddingOffset = _a.arrowPaddingOffset, _b = _a.arrowPadding, arrowPadding = _b === void 0 ? 0 : _b;
12360
- return "-" + (arrowPaddingOffset + arrowPadding) + "rem";
12137
+ return "-".concat(arrowPaddingOffset + arrowPadding, "rem");
12361
12138
  });
12362
12139
  var templateObject_1$i;
12363
12140
 
@@ -12413,7 +12190,7 @@ var SliderNavigation = function (_a) {
12413
12190
  afterChange: setActiveIndex,
12414
12191
  };
12415
12192
  return (jsx("div", __assign({ css: {
12416
- padding: arrows ? "0 " + (arrows.arrowWidth + arrows.arrowPadding) + "rem" : 0,
12193
+ padding: arrows ? "0 ".concat(arrows.arrowWidth + arrows.arrowPadding, "rem") : 0,
12417
12194
  maxWidth: '100%',
12418
12195
  } }, { children: jsx(StyledSlider, __assign({}, settings, { arrowPadding: arrows && arrows.arrowPadding, dotListMarginTop: dotListMarginTop, arrowPaddingOffset: arrows ? arrows.arrowWidth : 0, dotsSpacing: styles.dotsSpacing }, { children: children }), void 0) }), void 0));
12419
12196
  };
@@ -12514,7 +12291,7 @@ function withProductGrid(ProductItemComponent, data) {
12514
12291
  }
12515
12292
  /* istanbul ignore next */
12516
12293
  var wrappedComponentName = ProductItemComponent.displayName || ProductItemComponent.name || 'Component';
12517
- WithProductGrid.displayName = "withGrid(" + wrappedComponentName + ")";
12294
+ WithProductGrid.displayName = "withGrid(".concat(wrappedComponentName, ")");
12518
12295
  return WithProductGrid;
12519
12296
  }
12520
12297
  var templateObject_1$d;
@@ -12526,7 +12303,7 @@ var Collection = {
12526
12303
 
12527
12304
  var Backdrop = newStyled.div(templateObject_1$c || (templateObject_1$c = __makeTemplateObject(["\n position: fixed;\n z-index: 2;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n overflow: auto;\n transition: background-color 0.3s ease-out;\n\n ", "\n"], ["\n position: fixed;\n z-index: 2;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n overflow: auto;\n transition: background-color 0.3s ease-out;\n\n ", "\n"])), function (_a) {
12528
12305
  var isOpen = _a.isOpen, backgroundColor = _a.backgroundColor;
12529
- return isOpen ? "background-color: " + backgroundColor + ";" : 'transparent';
12306
+ return isOpen ? "background-color: ".concat(backgroundColor, ";") : 'transparent';
12530
12307
  });
12531
12308
  var Sidebar = newStyled.div(templateObject_2$7 || (templateObject_2$7 = __makeTemplateObject(["\n height: 100%;\n width: ", ";\n position: fixed;\n z-index: 3;\n ", ": 0;\n top: 0;\n background-color: ", ";\n overflow-x: hidden;\n transition: transform 0.3s ease-in-out;\n\n ", "\n"], ["\n height: 100%;\n width: ", ";\n position: fixed;\n z-index: 3;\n ", ": 0;\n top: 0;\n background-color: ", ";\n overflow-x: hidden;\n transition: transform 0.3s ease-in-out;\n\n ", "\n"])), function (_a) {
12532
12309
  var width = _a.width;
@@ -12541,7 +12318,7 @@ var Sidebar = newStyled.div(templateObject_2$7 || (templateObject_2$7 = __makeTe
12541
12318
  var isOpen = _a.isOpen, position = _a.position;
12542
12319
  return isOpen
12543
12320
  ? 'transform: translateX(0);'
12544
- : "transform: translateX(" + (position === 'left' ? '-100%' : '100%') + ");";
12321
+ : "transform: translateX(".concat(position === 'left' ? '-100%' : '100%', ");");
12545
12322
  });
12546
12323
  var Drawer = function (_a) {
12547
12324
  var children = _a.children, isOpen = _a.isOpen, onClose = _a.onClose, onOpen = _a.onOpen, _b = _a.backgroundColor, backgroundColor = _b === void 0 ? '#fff' : _b, _c = _a.backdropColor, backdropColor = _c === void 0 ? 'rgba(0, 0, 0, 0.5)' : _c, _d = _a.position, position = _d === void 0 ? 'left' : _d, _e = _a.width, width = _e === void 0 ? '33%' : _e, onClickOutside = _a.onClickOutside;
@@ -12606,10 +12383,10 @@ function FilteringDropdown(_a) {
12606
12383
  var getFilterLabel = function () {
12607
12384
  return selectedValues.length === 0
12608
12385
  ? placeHolder
12609
- : "(" + selectedValues.length + ") " + selectedValues.map(function (_a) {
12386
+ : "(".concat(selectedValues.length, ") ").concat(selectedValues.map(function (_a) {
12610
12387
  var label = _a.label;
12611
12388
  return label;
12612
- }).join(', ');
12389
+ }).join(', '));
12613
12390
  };
12614
12391
  var onChangeHandler = function (value) {
12615
12392
  setSelectedValues(function (prevState) {
@@ -12618,7 +12395,7 @@ function FilteringDropdown(_a) {
12618
12395
  newState = prevState.filter(function (item) { return item.key !== value.key; });
12619
12396
  }
12620
12397
  else {
12621
- newState = __spreadArray(__spreadArray([], prevState), [value]);
12398
+ newState = __spreadArray(__spreadArray([], prevState, true), [value], false);
12622
12399
  }
12623
12400
  onChange(newState);
12624
12401
  return newState;
@@ -12647,7 +12424,7 @@ var PageNumber = newStyled.span(templateObject_4$2 || (templateObject_4$2 = __ma
12647
12424
  return color;
12648
12425
  }, function (_a) {
12649
12426
  var underline = _a.underline, borderColor = _a.borderColor;
12650
- return underline ? "0.063rem solid " + borderColor : 'none';
12427
+ return underline ? "0.063rem solid ".concat(borderColor) : 'none';
12651
12428
  }, function (_a) {
12652
12429
  var theme = _a.theme;
12653
12430
  return mediaQueries({ theme: theme })({
@@ -12661,7 +12438,7 @@ var templateObject_1$9, templateObject_2$4, templateObject_3$4, templateObject_4
12661
12438
  var Pagination = function (_a) {
12662
12439
  var from = _a.from, to = _a.to, _b = _a.currentPage, currentPage = _b === void 0 ? from : _b, onChange = _a.onChange, _c = _a.underlineActive, underlineActive = _c === void 0 ? true : _c, _d = _a.boldActive, boldActive = _d === void 0 ? true : _d, _e = _a.disabled, disabled = _e === void 0 ? false : _e;
12663
12440
  var theme = useTheme();
12664
- var _f = React__default['default'].useState(currentPage), page = _f[0], setPage = _f[1];
12441
+ var _f = React__default["default"].useState(currentPage), page = _f[0], setPage = _f[1];
12665
12442
  var handlePageChange = function (page) {
12666
12443
  if (disabled || page < from || page > to) {
12667
12444
  return;
@@ -12769,7 +12546,7 @@ var templateObject_1$8, templateObject_2$3, templateObject_3$3, templateObject_4
12769
12546
 
12770
12547
  var Container$6 = newStyled.div(templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n width: auto;\n padding: 0.688rem 0rem;\n ", ",\n"], ["\n display: flex;\n flex-direction: row;\n width: auto;\n padding: 0.688rem 0rem;\n ", ",\n"])), function (props) {
12771
12548
  return mediaQueries(props)({
12772
- borderTop: ["0.063rem solid " + props.theme.colors.shades['100'].color, 'none'],
12549
+ borderTop: ["0.063rem solid ".concat(props.theme.colors.shades['100'].color), 'none'],
12773
12550
  });
12774
12551
  });
12775
12552
  var Description = newStyled.div({
@@ -12819,7 +12596,7 @@ var Button$2 = newStyled.button({
12819
12596
  });
12820
12597
  var Container$4 = newStyled.div(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n margin: 0rem;\n padding: 0rem;\n position: absolute;\n width: 100%;\n background-color: white;\n box-sizing: border-box;\n border-radius: 0.5rem;\n ", ",\n"], ["\n display: flex;\n flex-direction: column;\n margin: 0rem;\n padding: 0rem;\n position: absolute;\n width: 100%;\n background-color: white;\n box-sizing: border-box;\n border-radius: 0.5rem;\n ", ",\n"])), function (props) {
12821
12598
  return mediaQueries(props)({
12822
- border: ['none', "0.063rem solid " + props.theme.colors.pallete.secondary.color],
12599
+ border: ['none', "0.063rem solid ".concat(props.theme.colors.pallete.secondary.color)],
12823
12600
  marginTop: ['1.25rem', '0.125rem'],
12824
12601
  });
12825
12602
  });
@@ -12856,7 +12633,7 @@ var Input = newStyled.input(function (props) { return ({
12856
12633
  },
12857
12634
  '&:disabled': {
12858
12635
  backgroundColor: props.theme.colors.background.disabled,
12859
- border: "0.063rem solid " + props.theme.colors.border.disabled,
12636
+ border: "0.063rem solid ".concat(props.theme.colors.border.disabled),
12860
12637
  color: props.theme.colors.text.disabled,
12861
12638
  placeholder: {
12862
12639
  color: props.theme.colors.text.disabled,
@@ -12979,7 +12756,7 @@ var SearchBar = function (_a) {
12979
12756
  return function () { return clearTimeout(id); };
12980
12757
  }, [onChange, state.term]);
12981
12758
  var options = resultOptions && resultOptions.length > 0 ? resultOptions : suggestions;
12982
- return (jsxRuntime.jsxs("form", __assign({ role: "search", onSubmit: function (e) { return e.preventDefault(); }, ref: ref, style: { position: 'relative' } }, { children: [jsxRuntime.jsxs(Container$3, __assign({ theme: theme }, { children: [jsxRuntime.jsx(Input, { value: state.term, placeholder: "Search for products", onChange: function (e) { return dispatch({ type: 'UPDATE_TERM', payload: { term: e.target.value } }); }, onFocus: function () { return dispatch({ type: 'TOGGLE_PANEL', payload: { open: true } }); }, id: "search", autoComplete: "off", theme: theme, "aria-label": "Search for products" }, void 0), jsxRuntime.jsx(SearchControl, { open: state.open, onClear: function () { return dispatch({ type: 'CLEAR', payload: {} }); }, onSearch: function () { return onSearch(state.term); } }, void 0)] }), void 0), state.open && (jsxRuntime.jsx(ResultsPanel, { dataTestId: resultsPanelDataTestId, options: options, header: resultOptions.length === 0 ? 'Most popular products' : undefined, footer: resultOptions.length > 0 ? "View all results (" + resultOptions.length + ")" : undefined, onClick: function (value) {
12759
+ return (jsxRuntime.jsxs("form", __assign({ role: "search", onSubmit: function (e) { return e.preventDefault(); }, ref: ref, style: { position: 'relative' } }, { children: [jsxRuntime.jsxs(Container$3, __assign({ theme: theme }, { children: [jsxRuntime.jsx(Input, { value: state.term, placeholder: "Search for products", onChange: function (e) { return dispatch({ type: 'UPDATE_TERM', payload: { term: e.target.value } }); }, onFocus: function () { return dispatch({ type: 'TOGGLE_PANEL', payload: { open: true } }); }, id: "search", autoComplete: "off", theme: theme, "aria-label": "Search for products" }, void 0), jsxRuntime.jsx(SearchControl, { open: state.open, onClear: function () { return dispatch({ type: 'CLEAR', payload: {} }); }, onSearch: function () { return onSearch(state.term); } }, void 0)] }), void 0), state.open && (jsxRuntime.jsx(ResultsPanel, { dataTestId: resultsPanelDataTestId, options: options, header: resultOptions.length === 0 ? 'Most popular products' : undefined, footer: resultOptions.length > 0 ? "View all results (".concat(resultOptions.length, ")") : undefined, onClick: function (value) {
12983
12760
  onSearch(value.title);
12984
12761
  dispatch({ type: 'UPDATE_OPTION', payload: { selectedOption: value } });
12985
12762
  }, onViewAll: function () { return onSearch(state.term); } }, void 0))] }), void 0));
@@ -13003,13 +12780,13 @@ var ArrowButton = function (_a) {
13003
12780
  var templateObject_1$3;
13004
12781
 
13005
12782
  var Container$1 = newStyled.div(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n position: absolute;\n bottom: 15px;\n display: flex;\n justify-content: center;\n width: 100%;\n svg {\n padding: 0.125rem;\n margin-left: 0.25rem;\n }\n"], ["\n position: absolute;\n bottom: 15px;\n display: flex;\n justify-content: center;\n width: 100%;\n svg {\n padding: 0.125rem;\n margin-left: 0.25rem;\n }\n"])));
13006
- var range = function (limit) { return __spreadArray([], new Array(limit)).map(function (_, index) { return index; }); };
12783
+ var range = function (limit) { return __spreadArray([], new Array(limit), true).map(function (_, index) { return index; }); };
13007
12784
  var SlideDots = function (_a) {
13008
12785
  var quantity = _a.quantity, selectedIndex = _a.selectedIndex, containerDataTestId = _a.containerDataTestId;
13009
12786
  var theme = useTheme();
13010
12787
  return (jsxRuntime.jsx(Container$1, __assign({ "data-testid": containerDataTestId }, { children: range(quantity).map(function (index) { return (jsxRuntime.jsx(Icon.SlideDots.SlideDot, { height: 0.75, width: 0.75, fill: index === selectedIndex
13011
12788
  ? theme.colors.shades.white.color
13012
- : theme.colors.shades['700'].color, opacity: 0.6, dataTestId: "slide-dot-" + index }, index)); }) }), void 0));
12789
+ : theme.colors.shades['700'].color, opacity: 0.6, dataTestId: "slide-dot-".concat(index) }, index)); }) }), void 0));
13013
12790
  };
13014
12791
  var templateObject_1$2;
13015
12792