@storybook/addon-onboarding 10.1.0-alpha.0 → 10.1.0-alpha.10

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.
@@ -1438,6 +1438,855 @@ __name(HighlightElement, "HighlightElement");
1438
1438
  // src/features/GuidedTour/GuidedTour.tsx
1439
1439
  import React12, { useEffect as useEffect3, useState } from "react";
1440
1440
 
1441
+ // ../../node_modules/@babel/runtime/helpers/esm/extends.js
1442
+ function _extends() {
1443
+ return _extends = Object.assign ? Object.assign.bind() : function(n2) {
1444
+ for (var e2 = 1; e2 < arguments.length; e2++) {
1445
+ var t2 = arguments[e2];
1446
+ for (var r2 in t2) ({}).hasOwnProperty.call(t2, r2) && (n2[r2] = t2[r2]);
1447
+ }
1448
+ return n2;
1449
+ }, _extends.apply(null, arguments);
1450
+ }
1451
+ __name(_extends, "_extends");
1452
+
1453
+ // ../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
1454
+ function _assertThisInitialized(e2) {
1455
+ if (void 0 === e2) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1456
+ return e2;
1457
+ }
1458
+ __name(_assertThisInitialized, "_assertThisInitialized");
1459
+
1460
+ // ../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
1461
+ function _setPrototypeOf(t2, e2) {
1462
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t3, e3) {
1463
+ return t3.__proto__ = e3, t3;
1464
+ }, _setPrototypeOf(t2, e2);
1465
+ }
1466
+ __name(_setPrototypeOf, "_setPrototypeOf");
1467
+
1468
+ // ../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
1469
+ function _inheritsLoose(t2, o2) {
1470
+ t2.prototype = Object.create(o2.prototype), t2.prototype.constructor = t2, _setPrototypeOf(t2, o2);
1471
+ }
1472
+ __name(_inheritsLoose, "_inheritsLoose");
1473
+
1474
+ // ../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
1475
+ function _getPrototypeOf(t2) {
1476
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t3) {
1477
+ return t3.__proto__ || Object.getPrototypeOf(t3);
1478
+ }, _getPrototypeOf(t2);
1479
+ }
1480
+ __name(_getPrototypeOf, "_getPrototypeOf");
1481
+
1482
+ // ../../node_modules/@babel/runtime/helpers/esm/isNativeFunction.js
1483
+ function _isNativeFunction(t2) {
1484
+ try {
1485
+ return -1 !== Function.toString.call(t2).indexOf("[native code]");
1486
+ } catch (n2) {
1487
+ return "function" == typeof t2;
1488
+ }
1489
+ }
1490
+ __name(_isNativeFunction, "_isNativeFunction");
1491
+
1492
+ // ../../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
1493
+ function _isNativeReflectConstruct() {
1494
+ try {
1495
+ var t2 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1496
+ }));
1497
+ } catch (t3) {
1498
+ }
1499
+ return (_isNativeReflectConstruct = /* @__PURE__ */ __name(function _isNativeReflectConstruct3() {
1500
+ return !!t2;
1501
+ }, "_isNativeReflectConstruct"))();
1502
+ }
1503
+ __name(_isNativeReflectConstruct, "_isNativeReflectConstruct");
1504
+
1505
+ // ../../node_modules/@babel/runtime/helpers/esm/construct.js
1506
+ function _construct(t2, e2, r2) {
1507
+ if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
1508
+ var o2 = [null];
1509
+ o2.push.apply(o2, e2);
1510
+ var p2 = new (t2.bind.apply(t2, o2))();
1511
+ return r2 && _setPrototypeOf(p2, r2.prototype), p2;
1512
+ }
1513
+ __name(_construct, "_construct");
1514
+
1515
+ // ../../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js
1516
+ function _wrapNativeSuper(t2) {
1517
+ var r2 = "function" == typeof Map ? /* @__PURE__ */ new Map() : void 0;
1518
+ return _wrapNativeSuper = /* @__PURE__ */ __name(function _wrapNativeSuper2(t3) {
1519
+ if (null === t3 || !_isNativeFunction(t3)) return t3;
1520
+ if ("function" != typeof t3) throw new TypeError("Super expression must either be null or a function");
1521
+ if (void 0 !== r2) {
1522
+ if (r2.has(t3)) return r2.get(t3);
1523
+ r2.set(t3, Wrapper4);
1524
+ }
1525
+ function Wrapper4() {
1526
+ return _construct(t3, arguments, _getPrototypeOf(this).constructor);
1527
+ }
1528
+ __name(Wrapper4, "Wrapper");
1529
+ return Wrapper4.prototype = Object.create(t3.prototype, {
1530
+ constructor: {
1531
+ value: Wrapper4,
1532
+ enumerable: false,
1533
+ writable: true,
1534
+ configurable: true
1535
+ }
1536
+ }), _setPrototypeOf(Wrapper4, t3);
1537
+ }, "_wrapNativeSuper"), _wrapNativeSuper(t2);
1538
+ }
1539
+ __name(_wrapNativeSuper, "_wrapNativeSuper");
1540
+
1541
+ // ../../node_modules/polished/dist/polished.esm.js
1542
+ var ERRORS = {
1543
+ "1": "Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\n\n",
1544
+ "2": "Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\n\n",
1545
+ "3": "Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n",
1546
+ "4": "Couldn't generate valid rgb string from %s, it returned %s.\n\n",
1547
+ "5": "Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\n\n",
1548
+ "6": "Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).\n\n",
1549
+ "7": "Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).\n\n",
1550
+ "8": "Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\n\n",
1551
+ "9": "Please provide a number of steps to the modularScale helper.\n\n",
1552
+ "10": "Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",
1553
+ "11": 'Invalid value passed as base to modularScale, expected number or em string but got "%s"\n\n',
1554
+ "12": 'Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.\n\n',
1555
+ "13": 'Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.\n\n',
1556
+ "14": 'Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',
1557
+ "15": 'Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',
1558
+ "16": "You must provide a template to this method.\n\n",
1559
+ "17": "You passed an unsupported selector state to this method.\n\n",
1560
+ "18": "minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",
1561
+ "19": "fromSize and toSize must be provided as stringified numbers with the same units.\n\n",
1562
+ "20": "expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",
1563
+ "21": "expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",
1564
+ "22": "expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",
1565
+ "23": "fontFace expects a name of a font-family.\n\n",
1566
+ "24": "fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",
1567
+ "25": "fontFace expects localFonts to be an array.\n\n",
1568
+ "26": "fontFace expects fileFormats to be an array.\n\n",
1569
+ "27": "radialGradient requries at least 2 color-stops to properly render.\n\n",
1570
+ "28": "Please supply a filename to retinaImage() as the first argument.\n\n",
1571
+ "29": "Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",
1572
+ "30": "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",
1573
+ "31": "The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\n\n",
1574
+ "32": "To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')\n\n",
1575
+ "33": "The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\n\n",
1576
+ "34": "borderRadius expects a radius value as a string or number as the second argument.\n\n",
1577
+ "35": 'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',
1578
+ "36": "Property must be a string value.\n\n",
1579
+ "37": "Syntax Error at %s.\n\n",
1580
+ "38": "Formula contains a function that needs parentheses at %s.\n\n",
1581
+ "39": "Formula is missing closing parenthesis at %s.\n\n",
1582
+ "40": "Formula has too many closing parentheses at %s.\n\n",
1583
+ "41": "All values in a formula must have the same unit or be unitless.\n\n",
1584
+ "42": "Please provide a number of steps to the modularScale helper.\n\n",
1585
+ "43": "Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",
1586
+ "44": "Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\n\n",
1587
+ "45": "Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\n\n",
1588
+ "46": "Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\n\n",
1589
+ "47": "minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",
1590
+ "48": "fromSize and toSize must be provided as stringified numbers with the same units.\n\n",
1591
+ "49": "Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",
1592
+ "50": "Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\n\n",
1593
+ "51": "Expects the first argument object to have the properties prop, fromSize, and toSize.\n\n",
1594
+ "52": "fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",
1595
+ "53": "fontFace expects localFonts to be an array.\n\n",
1596
+ "54": "fontFace expects fileFormats to be an array.\n\n",
1597
+ "55": "fontFace expects a name of a font-family.\n\n",
1598
+ "56": "linearGradient requries at least 2 color-stops to properly render.\n\n",
1599
+ "57": "radialGradient requries at least 2 color-stops to properly render.\n\n",
1600
+ "58": "Please supply a filename to retinaImage() as the first argument.\n\n",
1601
+ "59": "Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",
1602
+ "60": "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",
1603
+ "61": "Property must be a string value.\n\n",
1604
+ "62": "borderRadius expects a radius value as a string or number as the second argument.\n\n",
1605
+ "63": 'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',
1606
+ "64": "The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\n\n",
1607
+ "65": "To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').\n\n",
1608
+ "66": "The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\n\n",
1609
+ "67": "You must provide a template to this method.\n\n",
1610
+ "68": "You passed an unsupported selector state to this method.\n\n",
1611
+ "69": 'Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.\n\n',
1612
+ "70": 'Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.\n\n',
1613
+ "71": 'Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.\n\n',
1614
+ "72": 'Passed invalid base value %s to %s(), please pass a value like "12px" or 12.\n\n',
1615
+ "73": "Please provide a valid CSS variable.\n\n",
1616
+ "74": "CSS variable not found and no default was provided.\n\n",
1617
+ "75": "important requires a valid style object, got a %s instead.\n\n",
1618
+ "76": "fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n\n",
1619
+ "77": 'remToPx expects a value in "rem" but you provided it in "%s".\n\n',
1620
+ "78": 'base must be set in "px" or "%" but you set it in "%s".\n'
1621
+ };
1622
+ function format() {
1623
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1624
+ args[_key] = arguments[_key];
1625
+ }
1626
+ var a2 = args[0];
1627
+ var b2 = [];
1628
+ var c2;
1629
+ for (c2 = 1; c2 < args.length; c2 += 1) {
1630
+ b2.push(args[c2]);
1631
+ }
1632
+ b2.forEach(function(d2) {
1633
+ a2 = a2.replace(/%[a-z]/, d2);
1634
+ });
1635
+ return a2;
1636
+ }
1637
+ __name(format, "format");
1638
+ var PolishedError = function(_Error) {
1639
+ _inheritsLoose(PolishedError2, _Error);
1640
+ function PolishedError2(code) {
1641
+ var _this;
1642
+ if (process.env.NODE_ENV === "production") {
1643
+ _this = _Error.call(this, "An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#" + code + " for more information.") || this;
1644
+ } else {
1645
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
1646
+ args[_key2 - 1] = arguments[_key2];
1647
+ }
1648
+ _this = _Error.call(this, format.apply(void 0, [ERRORS[code]].concat(args))) || this;
1649
+ }
1650
+ return _assertThisInitialized(_this);
1651
+ }
1652
+ __name(PolishedError2, "PolishedError");
1653
+ return PolishedError2;
1654
+ }(_wrapNativeSuper(Error));
1655
+ function endsWith(string, suffix) {
1656
+ return string.substr(-suffix.length) === suffix;
1657
+ }
1658
+ __name(endsWith, "endsWith");
1659
+ var cssRegex$1 = /^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;
1660
+ function stripUnit(value) {
1661
+ if (typeof value !== "string") return value;
1662
+ var matchedValue = value.match(cssRegex$1);
1663
+ return matchedValue ? parseFloat(value) : value;
1664
+ }
1665
+ __name(stripUnit, "stripUnit");
1666
+ var pxtoFactory = /* @__PURE__ */ __name(function pxtoFactory2(to) {
1667
+ return function(pxval, base) {
1668
+ if (base === void 0) {
1669
+ base = "16px";
1670
+ }
1671
+ var newPxval = pxval;
1672
+ var newBase = base;
1673
+ if (typeof pxval === "string") {
1674
+ if (!endsWith(pxval, "px")) {
1675
+ throw new PolishedError(69, to, pxval);
1676
+ }
1677
+ newPxval = stripUnit(pxval);
1678
+ }
1679
+ if (typeof base === "string") {
1680
+ if (!endsWith(base, "px")) {
1681
+ throw new PolishedError(70, to, base);
1682
+ }
1683
+ newBase = stripUnit(base);
1684
+ }
1685
+ if (typeof newPxval === "string") {
1686
+ throw new PolishedError(71, pxval, to);
1687
+ }
1688
+ if (typeof newBase === "string") {
1689
+ throw new PolishedError(72, base, to);
1690
+ }
1691
+ return "" + newPxval / newBase + to;
1692
+ };
1693
+ }, "pxtoFactory");
1694
+ var pixelsto = pxtoFactory;
1695
+ var em = pixelsto("em");
1696
+ var rem = pixelsto("rem");
1697
+ function colorToInt(color2) {
1698
+ return Math.round(color2 * 255);
1699
+ }
1700
+ __name(colorToInt, "colorToInt");
1701
+ function convertToInt(red, green, blue) {
1702
+ return colorToInt(red) + "," + colorToInt(green) + "," + colorToInt(blue);
1703
+ }
1704
+ __name(convertToInt, "convertToInt");
1705
+ function hslToRgb(hue, saturation, lightness, convert2) {
1706
+ if (convert2 === void 0) {
1707
+ convert2 = convertToInt;
1708
+ }
1709
+ if (saturation === 0) {
1710
+ return convert2(lightness, lightness, lightness);
1711
+ }
1712
+ var huePrime = (hue % 360 + 360) % 360 / 60;
1713
+ var chroma = (1 - Math.abs(2 * lightness - 1)) * saturation;
1714
+ var secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));
1715
+ var red = 0;
1716
+ var green = 0;
1717
+ var blue = 0;
1718
+ if (huePrime >= 0 && huePrime < 1) {
1719
+ red = chroma;
1720
+ green = secondComponent;
1721
+ } else if (huePrime >= 1 && huePrime < 2) {
1722
+ red = secondComponent;
1723
+ green = chroma;
1724
+ } else if (huePrime >= 2 && huePrime < 3) {
1725
+ green = chroma;
1726
+ blue = secondComponent;
1727
+ } else if (huePrime >= 3 && huePrime < 4) {
1728
+ green = secondComponent;
1729
+ blue = chroma;
1730
+ } else if (huePrime >= 4 && huePrime < 5) {
1731
+ red = secondComponent;
1732
+ blue = chroma;
1733
+ } else if (huePrime >= 5 && huePrime < 6) {
1734
+ red = chroma;
1735
+ blue = secondComponent;
1736
+ }
1737
+ var lightnessModification = lightness - chroma / 2;
1738
+ var finalRed = red + lightnessModification;
1739
+ var finalGreen = green + lightnessModification;
1740
+ var finalBlue = blue + lightnessModification;
1741
+ return convert2(finalRed, finalGreen, finalBlue);
1742
+ }
1743
+ __name(hslToRgb, "hslToRgb");
1744
+ var namedColorMap = {
1745
+ aliceblue: "f0f8ff",
1746
+ antiquewhite: "faebd7",
1747
+ aqua: "00ffff",
1748
+ aquamarine: "7fffd4",
1749
+ azure: "f0ffff",
1750
+ beige: "f5f5dc",
1751
+ bisque: "ffe4c4",
1752
+ black: "000",
1753
+ blanchedalmond: "ffebcd",
1754
+ blue: "0000ff",
1755
+ blueviolet: "8a2be2",
1756
+ brown: "a52a2a",
1757
+ burlywood: "deb887",
1758
+ cadetblue: "5f9ea0",
1759
+ chartreuse: "7fff00",
1760
+ chocolate: "d2691e",
1761
+ coral: "ff7f50",
1762
+ cornflowerblue: "6495ed",
1763
+ cornsilk: "fff8dc",
1764
+ crimson: "dc143c",
1765
+ cyan: "00ffff",
1766
+ darkblue: "00008b",
1767
+ darkcyan: "008b8b",
1768
+ darkgoldenrod: "b8860b",
1769
+ darkgray: "a9a9a9",
1770
+ darkgreen: "006400",
1771
+ darkgrey: "a9a9a9",
1772
+ darkkhaki: "bdb76b",
1773
+ darkmagenta: "8b008b",
1774
+ darkolivegreen: "556b2f",
1775
+ darkorange: "ff8c00",
1776
+ darkorchid: "9932cc",
1777
+ darkred: "8b0000",
1778
+ darksalmon: "e9967a",
1779
+ darkseagreen: "8fbc8f",
1780
+ darkslateblue: "483d8b",
1781
+ darkslategray: "2f4f4f",
1782
+ darkslategrey: "2f4f4f",
1783
+ darkturquoise: "00ced1",
1784
+ darkviolet: "9400d3",
1785
+ deeppink: "ff1493",
1786
+ deepskyblue: "00bfff",
1787
+ dimgray: "696969",
1788
+ dimgrey: "696969",
1789
+ dodgerblue: "1e90ff",
1790
+ firebrick: "b22222",
1791
+ floralwhite: "fffaf0",
1792
+ forestgreen: "228b22",
1793
+ fuchsia: "ff00ff",
1794
+ gainsboro: "dcdcdc",
1795
+ ghostwhite: "f8f8ff",
1796
+ gold: "ffd700",
1797
+ goldenrod: "daa520",
1798
+ gray: "808080",
1799
+ green: "008000",
1800
+ greenyellow: "adff2f",
1801
+ grey: "808080",
1802
+ honeydew: "f0fff0",
1803
+ hotpink: "ff69b4",
1804
+ indianred: "cd5c5c",
1805
+ indigo: "4b0082",
1806
+ ivory: "fffff0",
1807
+ khaki: "f0e68c",
1808
+ lavender: "e6e6fa",
1809
+ lavenderblush: "fff0f5",
1810
+ lawngreen: "7cfc00",
1811
+ lemonchiffon: "fffacd",
1812
+ lightblue: "add8e6",
1813
+ lightcoral: "f08080",
1814
+ lightcyan: "e0ffff",
1815
+ lightgoldenrodyellow: "fafad2",
1816
+ lightgray: "d3d3d3",
1817
+ lightgreen: "90ee90",
1818
+ lightgrey: "d3d3d3",
1819
+ lightpink: "ffb6c1",
1820
+ lightsalmon: "ffa07a",
1821
+ lightseagreen: "20b2aa",
1822
+ lightskyblue: "87cefa",
1823
+ lightslategray: "789",
1824
+ lightslategrey: "789",
1825
+ lightsteelblue: "b0c4de",
1826
+ lightyellow: "ffffe0",
1827
+ lime: "0f0",
1828
+ limegreen: "32cd32",
1829
+ linen: "faf0e6",
1830
+ magenta: "f0f",
1831
+ maroon: "800000",
1832
+ mediumaquamarine: "66cdaa",
1833
+ mediumblue: "0000cd",
1834
+ mediumorchid: "ba55d3",
1835
+ mediumpurple: "9370db",
1836
+ mediumseagreen: "3cb371",
1837
+ mediumslateblue: "7b68ee",
1838
+ mediumspringgreen: "00fa9a",
1839
+ mediumturquoise: "48d1cc",
1840
+ mediumvioletred: "c71585",
1841
+ midnightblue: "191970",
1842
+ mintcream: "f5fffa",
1843
+ mistyrose: "ffe4e1",
1844
+ moccasin: "ffe4b5",
1845
+ navajowhite: "ffdead",
1846
+ navy: "000080",
1847
+ oldlace: "fdf5e6",
1848
+ olive: "808000",
1849
+ olivedrab: "6b8e23",
1850
+ orange: "ffa500",
1851
+ orangered: "ff4500",
1852
+ orchid: "da70d6",
1853
+ palegoldenrod: "eee8aa",
1854
+ palegreen: "98fb98",
1855
+ paleturquoise: "afeeee",
1856
+ palevioletred: "db7093",
1857
+ papayawhip: "ffefd5",
1858
+ peachpuff: "ffdab9",
1859
+ peru: "cd853f",
1860
+ pink: "ffc0cb",
1861
+ plum: "dda0dd",
1862
+ powderblue: "b0e0e6",
1863
+ purple: "800080",
1864
+ rebeccapurple: "639",
1865
+ red: "f00",
1866
+ rosybrown: "bc8f8f",
1867
+ royalblue: "4169e1",
1868
+ saddlebrown: "8b4513",
1869
+ salmon: "fa8072",
1870
+ sandybrown: "f4a460",
1871
+ seagreen: "2e8b57",
1872
+ seashell: "fff5ee",
1873
+ sienna: "a0522d",
1874
+ silver: "c0c0c0",
1875
+ skyblue: "87ceeb",
1876
+ slateblue: "6a5acd",
1877
+ slategray: "708090",
1878
+ slategrey: "708090",
1879
+ snow: "fffafa",
1880
+ springgreen: "00ff7f",
1881
+ steelblue: "4682b4",
1882
+ tan: "d2b48c",
1883
+ teal: "008080",
1884
+ thistle: "d8bfd8",
1885
+ tomato: "ff6347",
1886
+ turquoise: "40e0d0",
1887
+ violet: "ee82ee",
1888
+ wheat: "f5deb3",
1889
+ white: "fff",
1890
+ whitesmoke: "f5f5f5",
1891
+ yellow: "ff0",
1892
+ yellowgreen: "9acd32"
1893
+ };
1894
+ function nameToHex(color2) {
1895
+ if (typeof color2 !== "string") return color2;
1896
+ var normalizedColorName = color2.toLowerCase();
1897
+ return namedColorMap[normalizedColorName] ? "#" + namedColorMap[normalizedColorName] : color2;
1898
+ }
1899
+ __name(nameToHex, "nameToHex");
1900
+ var hexRegex = /^#[a-fA-F0-9]{6}$/;
1901
+ var hexRgbaRegex = /^#[a-fA-F0-9]{8}$/;
1902
+ var reducedHexRegex = /^#[a-fA-F0-9]{3}$/;
1903
+ var reducedRgbaHexRegex = /^#[a-fA-F0-9]{4}$/;
1904
+ var rgbRegex = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i;
1905
+ var rgbaRegex = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
1906
+ var hslRegex = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i;
1907
+ var hslaRegex = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
1908
+ function parseToRgb(color2) {
1909
+ if (typeof color2 !== "string") {
1910
+ throw new PolishedError(3);
1911
+ }
1912
+ var normalizedColor = nameToHex(color2);
1913
+ if (normalizedColor.match(hexRegex)) {
1914
+ return {
1915
+ red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
1916
+ green: parseInt("" + normalizedColor[3] + normalizedColor[4], 16),
1917
+ blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16)
1918
+ };
1919
+ }
1920
+ if (normalizedColor.match(hexRgbaRegex)) {
1921
+ var alpha = parseFloat((parseInt("" + normalizedColor[7] + normalizedColor[8], 16) / 255).toFixed(2));
1922
+ return {
1923
+ red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
1924
+ green: parseInt("" + normalizedColor[3] + normalizedColor[4], 16),
1925
+ blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16),
1926
+ alpha
1927
+ };
1928
+ }
1929
+ if (normalizedColor.match(reducedHexRegex)) {
1930
+ return {
1931
+ red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
1932
+ green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16),
1933
+ blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16)
1934
+ };
1935
+ }
1936
+ if (normalizedColor.match(reducedRgbaHexRegex)) {
1937
+ var _alpha = parseFloat((parseInt("" + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2));
1938
+ return {
1939
+ red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
1940
+ green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16),
1941
+ blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16),
1942
+ alpha: _alpha
1943
+ };
1944
+ }
1945
+ var rgbMatched = rgbRegex.exec(normalizedColor);
1946
+ if (rgbMatched) {
1947
+ return {
1948
+ red: parseInt("" + rgbMatched[1], 10),
1949
+ green: parseInt("" + rgbMatched[2], 10),
1950
+ blue: parseInt("" + rgbMatched[3], 10)
1951
+ };
1952
+ }
1953
+ var rgbaMatched = rgbaRegex.exec(normalizedColor.substring(0, 50));
1954
+ if (rgbaMatched) {
1955
+ return {
1956
+ red: parseInt("" + rgbaMatched[1], 10),
1957
+ green: parseInt("" + rgbaMatched[2], 10),
1958
+ blue: parseInt("" + rgbaMatched[3], 10),
1959
+ alpha: parseFloat("" + rgbaMatched[4]) > 1 ? parseFloat("" + rgbaMatched[4]) / 100 : parseFloat("" + rgbaMatched[4])
1960
+ };
1961
+ }
1962
+ var hslMatched = hslRegex.exec(normalizedColor);
1963
+ if (hslMatched) {
1964
+ var hue = parseInt("" + hslMatched[1], 10);
1965
+ var saturation = parseInt("" + hslMatched[2], 10) / 100;
1966
+ var lightness = parseInt("" + hslMatched[3], 10) / 100;
1967
+ var rgbColorString = "rgb(" + hslToRgb(hue, saturation, lightness) + ")";
1968
+ var hslRgbMatched = rgbRegex.exec(rgbColorString);
1969
+ if (!hslRgbMatched) {
1970
+ throw new PolishedError(4, normalizedColor, rgbColorString);
1971
+ }
1972
+ return {
1973
+ red: parseInt("" + hslRgbMatched[1], 10),
1974
+ green: parseInt("" + hslRgbMatched[2], 10),
1975
+ blue: parseInt("" + hslRgbMatched[3], 10)
1976
+ };
1977
+ }
1978
+ var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50));
1979
+ if (hslaMatched) {
1980
+ var _hue = parseInt("" + hslaMatched[1], 10);
1981
+ var _saturation = parseInt("" + hslaMatched[2], 10) / 100;
1982
+ var _lightness = parseInt("" + hslaMatched[3], 10) / 100;
1983
+ var _rgbColorString = "rgb(" + hslToRgb(_hue, _saturation, _lightness) + ")";
1984
+ var _hslRgbMatched = rgbRegex.exec(_rgbColorString);
1985
+ if (!_hslRgbMatched) {
1986
+ throw new PolishedError(4, normalizedColor, _rgbColorString);
1987
+ }
1988
+ return {
1989
+ red: parseInt("" + _hslRgbMatched[1], 10),
1990
+ green: parseInt("" + _hslRgbMatched[2], 10),
1991
+ blue: parseInt("" + _hslRgbMatched[3], 10),
1992
+ alpha: parseFloat("" + hslaMatched[4]) > 1 ? parseFloat("" + hslaMatched[4]) / 100 : parseFloat("" + hslaMatched[4])
1993
+ };
1994
+ }
1995
+ throw new PolishedError(5);
1996
+ }
1997
+ __name(parseToRgb, "parseToRgb");
1998
+ function rgbToHsl(color2) {
1999
+ var red = color2.red / 255;
2000
+ var green = color2.green / 255;
2001
+ var blue = color2.blue / 255;
2002
+ var max = Math.max(red, green, blue);
2003
+ var min = Math.min(red, green, blue);
2004
+ var lightness = (max + min) / 2;
2005
+ if (max === min) {
2006
+ if (color2.alpha !== void 0) {
2007
+ return {
2008
+ hue: 0,
2009
+ saturation: 0,
2010
+ lightness,
2011
+ alpha: color2.alpha
2012
+ };
2013
+ } else {
2014
+ return {
2015
+ hue: 0,
2016
+ saturation: 0,
2017
+ lightness
2018
+ };
2019
+ }
2020
+ }
2021
+ var hue;
2022
+ var delta = max - min;
2023
+ var saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min);
2024
+ switch (max) {
2025
+ case red:
2026
+ hue = (green - blue) / delta + (green < blue ? 6 : 0);
2027
+ break;
2028
+ case green:
2029
+ hue = (blue - red) / delta + 2;
2030
+ break;
2031
+ default:
2032
+ hue = (red - green) / delta + 4;
2033
+ break;
2034
+ }
2035
+ hue *= 60;
2036
+ if (color2.alpha !== void 0) {
2037
+ return {
2038
+ hue,
2039
+ saturation,
2040
+ lightness,
2041
+ alpha: color2.alpha
2042
+ };
2043
+ }
2044
+ return {
2045
+ hue,
2046
+ saturation,
2047
+ lightness
2048
+ };
2049
+ }
2050
+ __name(rgbToHsl, "rgbToHsl");
2051
+ function parseToHsl(color2) {
2052
+ return rgbToHsl(parseToRgb(color2));
2053
+ }
2054
+ __name(parseToHsl, "parseToHsl");
2055
+ var reduceHexValue = /* @__PURE__ */ __name(function reduceHexValue2(value) {
2056
+ if (value.length === 7 && value[1] === value[2] && value[3] === value[4] && value[5] === value[6]) {
2057
+ return "#" + value[1] + value[3] + value[5];
2058
+ }
2059
+ return value;
2060
+ }, "reduceHexValue");
2061
+ var reduceHexValue$1 = reduceHexValue;
2062
+ function numberToHex(value) {
2063
+ var hex = value.toString(16);
2064
+ return hex.length === 1 ? "0" + hex : hex;
2065
+ }
2066
+ __name(numberToHex, "numberToHex");
2067
+ function colorToHex(color2) {
2068
+ return numberToHex(Math.round(color2 * 255));
2069
+ }
2070
+ __name(colorToHex, "colorToHex");
2071
+ function convertToHex(red, green, blue) {
2072
+ return reduceHexValue$1("#" + colorToHex(red) + colorToHex(green) + colorToHex(blue));
2073
+ }
2074
+ __name(convertToHex, "convertToHex");
2075
+ function hslToHex(hue, saturation, lightness) {
2076
+ return hslToRgb(hue, saturation, lightness, convertToHex);
2077
+ }
2078
+ __name(hslToHex, "hslToHex");
2079
+ function hsl(value, saturation, lightness) {
2080
+ if (typeof value === "number" && typeof saturation === "number" && typeof lightness === "number") {
2081
+ return hslToHex(value, saturation, lightness);
2082
+ } else if (typeof value === "object" && saturation === void 0 && lightness === void 0) {
2083
+ return hslToHex(value.hue, value.saturation, value.lightness);
2084
+ }
2085
+ throw new PolishedError(1);
2086
+ }
2087
+ __name(hsl, "hsl");
2088
+ function hsla(value, saturation, lightness, alpha) {
2089
+ if (typeof value === "number" && typeof saturation === "number" && typeof lightness === "number" && typeof alpha === "number") {
2090
+ return alpha >= 1 ? hslToHex(value, saturation, lightness) : "rgba(" + hslToRgb(value, saturation, lightness) + "," + alpha + ")";
2091
+ } else if (typeof value === "object" && saturation === void 0 && lightness === void 0 && alpha === void 0) {
2092
+ return value.alpha >= 1 ? hslToHex(value.hue, value.saturation, value.lightness) : "rgba(" + hslToRgb(value.hue, value.saturation, value.lightness) + "," + value.alpha + ")";
2093
+ }
2094
+ throw new PolishedError(2);
2095
+ }
2096
+ __name(hsla, "hsla");
2097
+ function rgb(value, green, blue) {
2098
+ if (typeof value === "number" && typeof green === "number" && typeof blue === "number") {
2099
+ return reduceHexValue$1("#" + numberToHex(value) + numberToHex(green) + numberToHex(blue));
2100
+ } else if (typeof value === "object" && green === void 0 && blue === void 0) {
2101
+ return reduceHexValue$1("#" + numberToHex(value.red) + numberToHex(value.green) + numberToHex(value.blue));
2102
+ }
2103
+ throw new PolishedError(6);
2104
+ }
2105
+ __name(rgb, "rgb");
2106
+ function rgba(firstValue, secondValue, thirdValue, fourthValue) {
2107
+ if (typeof firstValue === "string" && typeof secondValue === "number") {
2108
+ var rgbValue = parseToRgb(firstValue);
2109
+ return "rgba(" + rgbValue.red + "," + rgbValue.green + "," + rgbValue.blue + "," + secondValue + ")";
2110
+ } else if (typeof firstValue === "number" && typeof secondValue === "number" && typeof thirdValue === "number" && typeof fourthValue === "number") {
2111
+ return fourthValue >= 1 ? rgb(firstValue, secondValue, thirdValue) : "rgba(" + firstValue + "," + secondValue + "," + thirdValue + "," + fourthValue + ")";
2112
+ } else if (typeof firstValue === "object" && secondValue === void 0 && thirdValue === void 0 && fourthValue === void 0) {
2113
+ return firstValue.alpha >= 1 ? rgb(firstValue.red, firstValue.green, firstValue.blue) : "rgba(" + firstValue.red + "," + firstValue.green + "," + firstValue.blue + "," + firstValue.alpha + ")";
2114
+ }
2115
+ throw new PolishedError(7);
2116
+ }
2117
+ __name(rgba, "rgba");
2118
+ var isRgb = /* @__PURE__ */ __name(function isRgb2(color2) {
2119
+ return typeof color2.red === "number" && typeof color2.green === "number" && typeof color2.blue === "number" && (typeof color2.alpha !== "number" || typeof color2.alpha === "undefined");
2120
+ }, "isRgb");
2121
+ var isRgba = /* @__PURE__ */ __name(function isRgba2(color2) {
2122
+ return typeof color2.red === "number" && typeof color2.green === "number" && typeof color2.blue === "number" && typeof color2.alpha === "number";
2123
+ }, "isRgba");
2124
+ var isHsl = /* @__PURE__ */ __name(function isHsl2(color2) {
2125
+ return typeof color2.hue === "number" && typeof color2.saturation === "number" && typeof color2.lightness === "number" && (typeof color2.alpha !== "number" || typeof color2.alpha === "undefined");
2126
+ }, "isHsl");
2127
+ var isHsla = /* @__PURE__ */ __name(function isHsla2(color2) {
2128
+ return typeof color2.hue === "number" && typeof color2.saturation === "number" && typeof color2.lightness === "number" && typeof color2.alpha === "number";
2129
+ }, "isHsla");
2130
+ function toColorString(color2) {
2131
+ if (typeof color2 !== "object") throw new PolishedError(8);
2132
+ if (isRgba(color2)) return rgba(color2);
2133
+ if (isRgb(color2)) return rgb(color2);
2134
+ if (isHsla(color2)) return hsla(color2);
2135
+ if (isHsl(color2)) return hsl(color2);
2136
+ throw new PolishedError(8);
2137
+ }
2138
+ __name(toColorString, "toColorString");
2139
+ function curried(f2, length, acc) {
2140
+ return /* @__PURE__ */ __name(function fn() {
2141
+ var combined = acc.concat(Array.prototype.slice.call(arguments));
2142
+ return combined.length >= length ? f2.apply(this, combined) : curried(f2, length, combined);
2143
+ }, "fn");
2144
+ }
2145
+ __name(curried, "curried");
2146
+ function curry(f2) {
2147
+ return curried(f2, f2.length, []);
2148
+ }
2149
+ __name(curry, "curry");
2150
+ function adjustHue(degree, color2) {
2151
+ if (color2 === "transparent") return color2;
2152
+ var hslColor = parseToHsl(color2);
2153
+ return toColorString(_extends({}, hslColor, {
2154
+ hue: hslColor.hue + parseFloat(degree)
2155
+ }));
2156
+ }
2157
+ __name(adjustHue, "adjustHue");
2158
+ var curriedAdjustHue = curry(adjustHue);
2159
+ function guard(lowerBoundary, upperBoundary, value) {
2160
+ return Math.max(lowerBoundary, Math.min(upperBoundary, value));
2161
+ }
2162
+ __name(guard, "guard");
2163
+ function darken(amount, color2) {
2164
+ if (color2 === "transparent") return color2;
2165
+ var hslColor = parseToHsl(color2);
2166
+ return toColorString(_extends({}, hslColor, {
2167
+ lightness: guard(0, 1, hslColor.lightness - parseFloat(amount))
2168
+ }));
2169
+ }
2170
+ __name(darken, "darken");
2171
+ var curriedDarken = curry(darken);
2172
+ var curriedDarken$1 = curriedDarken;
2173
+ function desaturate(amount, color2) {
2174
+ if (color2 === "transparent") return color2;
2175
+ var hslColor = parseToHsl(color2);
2176
+ return toColorString(_extends({}, hslColor, {
2177
+ saturation: guard(0, 1, hslColor.saturation - parseFloat(amount))
2178
+ }));
2179
+ }
2180
+ __name(desaturate, "desaturate");
2181
+ var curriedDesaturate = curry(desaturate);
2182
+ function lighten(amount, color2) {
2183
+ if (color2 === "transparent") return color2;
2184
+ var hslColor = parseToHsl(color2);
2185
+ return toColorString(_extends({}, hslColor, {
2186
+ lightness: guard(0, 1, hslColor.lightness + parseFloat(amount))
2187
+ }));
2188
+ }
2189
+ __name(lighten, "lighten");
2190
+ var curriedLighten = curry(lighten);
2191
+ var curriedLighten$1 = curriedLighten;
2192
+ function mix(weight, color2, otherColor) {
2193
+ if (color2 === "transparent") return otherColor;
2194
+ if (otherColor === "transparent") return color2;
2195
+ if (weight === 0) return otherColor;
2196
+ var parsedColor1 = parseToRgb(color2);
2197
+ var color1 = _extends({}, parsedColor1, {
2198
+ alpha: typeof parsedColor1.alpha === "number" ? parsedColor1.alpha : 1
2199
+ });
2200
+ var parsedColor2 = parseToRgb(otherColor);
2201
+ var color22 = _extends({}, parsedColor2, {
2202
+ alpha: typeof parsedColor2.alpha === "number" ? parsedColor2.alpha : 1
2203
+ });
2204
+ var alphaDelta = color1.alpha - color22.alpha;
2205
+ var x2 = parseFloat(weight) * 2 - 1;
2206
+ var y2 = x2 * alphaDelta === -1 ? x2 : x2 + alphaDelta;
2207
+ var z2 = 1 + x2 * alphaDelta;
2208
+ var weight1 = (y2 / z2 + 1) / 2;
2209
+ var weight2 = 1 - weight1;
2210
+ var mixedColor = {
2211
+ red: Math.floor(color1.red * weight1 + color22.red * weight2),
2212
+ green: Math.floor(color1.green * weight1 + color22.green * weight2),
2213
+ blue: Math.floor(color1.blue * weight1 + color22.blue * weight2),
2214
+ alpha: color1.alpha * parseFloat(weight) + color22.alpha * (1 - parseFloat(weight))
2215
+ };
2216
+ return rgba(mixedColor);
2217
+ }
2218
+ __name(mix, "mix");
2219
+ var curriedMix = curry(mix);
2220
+ var mix$1 = curriedMix;
2221
+ function opacify(amount, color2) {
2222
+ if (color2 === "transparent") return color2;
2223
+ var parsedColor = parseToRgb(color2);
2224
+ var alpha = typeof parsedColor.alpha === "number" ? parsedColor.alpha : 1;
2225
+ var colorWithAlpha = _extends({}, parsedColor, {
2226
+ alpha: guard(0, 1, (alpha * 100 + parseFloat(amount) * 100) / 100)
2227
+ });
2228
+ return rgba(colorWithAlpha);
2229
+ }
2230
+ __name(opacify, "opacify");
2231
+ var curriedOpacify = curry(opacify);
2232
+ function saturate(amount, color2) {
2233
+ if (color2 === "transparent") return color2;
2234
+ var hslColor = parseToHsl(color2);
2235
+ return toColorString(_extends({}, hslColor, {
2236
+ saturation: guard(0, 1, hslColor.saturation + parseFloat(amount))
2237
+ }));
2238
+ }
2239
+ __name(saturate, "saturate");
2240
+ var curriedSaturate = curry(saturate);
2241
+ function setHue(hue, color2) {
2242
+ if (color2 === "transparent") return color2;
2243
+ return toColorString(_extends({}, parseToHsl(color2), {
2244
+ hue: parseFloat(hue)
2245
+ }));
2246
+ }
2247
+ __name(setHue, "setHue");
2248
+ var curriedSetHue = curry(setHue);
2249
+ function setLightness(lightness, color2) {
2250
+ if (color2 === "transparent") return color2;
2251
+ return toColorString(_extends({}, parseToHsl(color2), {
2252
+ lightness: parseFloat(lightness)
2253
+ }));
2254
+ }
2255
+ __name(setLightness, "setLightness");
2256
+ var curriedSetLightness = curry(setLightness);
2257
+ function setSaturation(saturation, color2) {
2258
+ if (color2 === "transparent") return color2;
2259
+ return toColorString(_extends({}, parseToHsl(color2), {
2260
+ saturation: parseFloat(saturation)
2261
+ }));
2262
+ }
2263
+ __name(setSaturation, "setSaturation");
2264
+ var curriedSetSaturation = curry(setSaturation);
2265
+ function shade(percentage, color2) {
2266
+ if (color2 === "transparent") return color2;
2267
+ return mix$1(parseFloat(percentage), "rgb(0, 0, 0)", color2);
2268
+ }
2269
+ __name(shade, "shade");
2270
+ var curriedShade = curry(shade);
2271
+ function tint(percentage, color2) {
2272
+ if (color2 === "transparent") return color2;
2273
+ return mix$1(parseFloat(percentage), "rgb(255, 255, 255)", color2);
2274
+ }
2275
+ __name(tint, "tint");
2276
+ var curriedTint = curry(tint);
2277
+ function transparentize(amount, color2) {
2278
+ if (color2 === "transparent") return color2;
2279
+ var parsedColor = parseToRgb(color2);
2280
+ var alpha = typeof parsedColor.alpha === "number" ? parsedColor.alpha : 1;
2281
+ var colorWithAlpha = _extends({}, parsedColor, {
2282
+ alpha: guard(0, 1, +(alpha * 100 - parseFloat(amount) * 100).toFixed(2) / 100)
2283
+ });
2284
+ return rgba(colorWithAlpha);
2285
+ }
2286
+ __name(transparentize, "transparentize");
2287
+ var curriedTransparentize = curry(transparentize);
2288
+ var curriedTransparentize$1 = curriedTransparentize;
2289
+
1441
2290
  // ../../node_modules/react-joyride/dist/index.mjs
1442
2291
  import * as React9 from "react";
1443
2292
 
@@ -2225,7 +3074,7 @@ var defineProperty = /* @__PURE__ */ __name(function(obj, key, value) {
2225
3074
  }
2226
3075
  return obj;
2227
3076
  }, "defineProperty");
2228
- var _extends = Object.assign || function(target) {
3077
+ var _extends2 = Object.assign || function(target) {
2229
3078
  for (var i2 = 1; i2 < arguments.length; i2++) {
2230
3079
  var source = arguments[i2];
2231
3080
  for (var key in source) {
@@ -2237,7 +3086,7 @@ var _extends = Object.assign || function(target) {
2237
3086
  return target;
2238
3087
  };
2239
3088
  function getClientRect(offsets) {
2240
- return _extends({}, offsets, {
3089
+ return _extends2({}, offsets, {
2241
3090
  right: offsets.left + offsets.width,
2242
3091
  bottom: offsets.top + offsets.height
2243
3092
  });
@@ -2429,7 +3278,7 @@ function computeAutoPlacement(placement, refRect, popper, reference, boundariesE
2429
3278
  }
2430
3279
  };
2431
3280
  var sortedAreas = Object.keys(rects).map(function(key) {
2432
- return _extends({
3281
+ return _extends2({
2433
3282
  key
2434
3283
  }, rects[key], {
2435
3284
  area: getArea(rects[key])
@@ -2761,9 +3610,9 @@ function computeStyle(data, options) {
2761
3610
  var attributes = {
2762
3611
  "x-placement": data.placement
2763
3612
  };
2764
- data.attributes = _extends({}, attributes, data.attributes);
2765
- data.styles = _extends({}, styles, data.styles);
2766
- data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles);
3613
+ data.attributes = _extends2({}, attributes, data.attributes);
3614
+ data.styles = _extends2({}, styles, data.styles);
3615
+ data.arrowStyles = _extends2({}, data.offsets.arrow, data.arrowStyles);
2767
3616
  return data;
2768
3617
  }
2769
3618
  __name(computeStyle, "computeStyle");
@@ -2903,7 +3752,7 @@ function flip(data, options) {
2903
3752
  variation = getOppositeVariation(variation);
2904
3753
  }
2905
3754
  data.placement = placement + (variation ? "-" + variation : "");
2906
- data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));
3755
+ data.offsets.popper = _extends2({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));
2907
3756
  data = runModifiers(data.instance.modifiers, data, "flip");
2908
3757
  }
2909
3758
  });
@@ -3067,7 +3916,7 @@ function preventOverflow(data, options) {
3067
3916
  };
3068
3917
  order.forEach(function(placement) {
3069
3918
  var side = ["left", "top"].indexOf(placement) !== -1 ? "primary" : "secondary";
3070
- popper = _extends({}, popper, check[side](placement));
3919
+ popper = _extends2({}, popper, check[side](placement));
3071
3920
  });
3072
3921
  data.offsets.popper = popper;
3073
3922
  return data;
@@ -3086,7 +3935,7 @@ function shift(data) {
3086
3935
  start: defineProperty({}, side, reference[side]),
3087
3936
  end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement])
3088
3937
  };
3089
- data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]);
3938
+ data.offsets.popper = _extends2({}, popper, shiftOffsets[shiftvariation]);
3090
3939
  }
3091
3940
  return data;
3092
3941
  }
@@ -3492,7 +4341,7 @@ var Popper = function() {
3492
4341
  return requestAnimationFrame(_this.update);
3493
4342
  };
3494
4343
  this.update = debounce(this.update.bind(this));
3495
- this.options = _extends({}, Popper2.Defaults, options);
4344
+ this.options = _extends2({}, Popper2.Defaults, options);
3496
4345
  this.state = {
3497
4346
  isDestroyed: false,
3498
4347
  isCreated: false,
@@ -3501,11 +4350,11 @@ var Popper = function() {
3501
4350
  this.reference = reference && reference.jquery ? reference[0] : reference;
3502
4351
  this.popper = popper && popper.jquery ? popper[0] : popper;
3503
4352
  this.options.modifiers = {};
3504
- Object.keys(_extends({}, Popper2.Defaults.modifiers, options.modifiers)).forEach(function(name) {
3505
- _this.options.modifiers[name] = _extends({}, Popper2.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});
4353
+ Object.keys(_extends2({}, Popper2.Defaults.modifiers, options.modifiers)).forEach(function(name) {
4354
+ _this.options.modifiers[name] = _extends2({}, Popper2.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});
3506
4355
  });
3507
4356
  this.modifiers = Object.keys(this.options.modifiers).map(function(name) {
3508
- return _extends({
4357
+ return _extends2({
3509
4358
  name
3510
4359
  }, _this.options.modifiers[name]);
3511
4360
  }).sort(function(a2, b2) {
@@ -4493,25 +5342,25 @@ function _inherits(subClass, superClass) {
4493
5342
  Object.defineProperty(subClass, "prototype", {
4494
5343
  writable: false
4495
5344
  });
4496
- if (superClass) _setPrototypeOf(subClass, superClass);
5345
+ if (superClass) _setPrototypeOf2(subClass, superClass);
4497
5346
  }
4498
5347
  __name(_inherits, "_inherits");
4499
- function _getPrototypeOf(o2) {
4500
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : /* @__PURE__ */ __name(function _getPrototypeOf2(o3) {
5348
+ function _getPrototypeOf2(o2) {
5349
+ _getPrototypeOf2 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : /* @__PURE__ */ __name(function _getPrototypeOf3(o3) {
4501
5350
  return o3.__proto__ || Object.getPrototypeOf(o3);
4502
5351
  }, "_getPrototypeOf");
4503
- return _getPrototypeOf(o2);
5352
+ return _getPrototypeOf2(o2);
4504
5353
  }
4505
- __name(_getPrototypeOf, "_getPrototypeOf");
4506
- function _setPrototypeOf(o2, p2) {
4507
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : /* @__PURE__ */ __name(function _setPrototypeOf2(o3, p3) {
5354
+ __name(_getPrototypeOf2, "_getPrototypeOf");
5355
+ function _setPrototypeOf2(o2, p2) {
5356
+ _setPrototypeOf2 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : /* @__PURE__ */ __name(function _setPrototypeOf3(o3, p3) {
4508
5357
  o3.__proto__ = p3;
4509
5358
  return o3;
4510
5359
  }, "_setPrototypeOf");
4511
- return _setPrototypeOf(o2, p2);
5360
+ return _setPrototypeOf2(o2, p2);
4512
5361
  }
4513
- __name(_setPrototypeOf, "_setPrototypeOf");
4514
- function _isNativeReflectConstruct() {
5362
+ __name(_setPrototypeOf2, "_setPrototypeOf");
5363
+ function _isNativeReflectConstruct2() {
4515
5364
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
4516
5365
  if (Reflect.construct.sham) return false;
4517
5366
  if (typeof Proxy === "function") return true;
@@ -4523,7 +5372,7 @@ function _isNativeReflectConstruct() {
4523
5372
  return false;
4524
5373
  }
4525
5374
  }
4526
- __name(_isNativeReflectConstruct, "_isNativeReflectConstruct");
5375
+ __name(_isNativeReflectConstruct2, "_isNativeReflectConstruct");
4527
5376
  function _objectWithoutPropertiesLoose(source, excluded) {
4528
5377
  if (source == null) return {};
4529
5378
  var target = {};
@@ -4553,28 +5402,28 @@ function _objectWithoutProperties(source, excluded) {
4553
5402
  return target;
4554
5403
  }
4555
5404
  __name(_objectWithoutProperties, "_objectWithoutProperties");
4556
- function _assertThisInitialized(self) {
5405
+ function _assertThisInitialized2(self) {
4557
5406
  if (self === void 0) {
4558
5407
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4559
5408
  }
4560
5409
  return self;
4561
5410
  }
4562
- __name(_assertThisInitialized, "_assertThisInitialized");
5411
+ __name(_assertThisInitialized2, "_assertThisInitialized");
4563
5412
  function _possibleConstructorReturn(self, call) {
4564
5413
  if (call && (typeof call === "object" || typeof call === "function")) {
4565
5414
  return call;
4566
5415
  } else if (call !== void 0) {
4567
5416
  throw new TypeError("Derived constructors may only return object or undefined");
4568
5417
  }
4569
- return _assertThisInitialized(self);
5418
+ return _assertThisInitialized2(self);
4570
5419
  }
4571
5420
  __name(_possibleConstructorReturn, "_possibleConstructorReturn");
4572
5421
  function _createSuper(Derived) {
4573
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
5422
+ var hasNativeReflectConstruct = _isNativeReflectConstruct2();
4574
5423
  return /* @__PURE__ */ __name(function _createSuperInternal() {
4575
- var Super = _getPrototypeOf(Derived), result;
5424
+ var Super = _getPrototypeOf2(Derived), result;
4576
5425
  if (hasNativeReflectConstruct) {
4577
- var NewTarget = _getPrototypeOf(this).constructor;
5426
+ var NewTarget = _getPrototypeOf2(this).constructor;
4578
5427
  result = Reflect.construct(Super, arguments, NewTarget);
4579
5428
  } else {
4580
5429
  result = Super.apply(this, arguments);
@@ -4977,19 +5826,19 @@ var ReactFloater = function(_React$Component) {
4977
5826
  var _this;
4978
5827
  _classCallCheck(this, ReactFloater2);
4979
5828
  _this = _super.call(this, props);
4980
- _defineProperty(_assertThisInitialized(_this), "setArrowRef", function(ref) {
5829
+ _defineProperty(_assertThisInitialized2(_this), "setArrowRef", function(ref) {
4981
5830
  _this.arrowRef = ref;
4982
5831
  });
4983
- _defineProperty(_assertThisInitialized(_this), "setChildRef", function(ref) {
5832
+ _defineProperty(_assertThisInitialized2(_this), "setChildRef", function(ref) {
4984
5833
  _this.childRef = ref;
4985
5834
  });
4986
- _defineProperty(_assertThisInitialized(_this), "setFloaterRef", function(ref) {
5835
+ _defineProperty(_assertThisInitialized2(_this), "setFloaterRef", function(ref) {
4987
5836
  _this.floaterRef = ref;
4988
5837
  });
4989
- _defineProperty(_assertThisInitialized(_this), "setWrapperRef", function(ref) {
5838
+ _defineProperty(_assertThisInitialized2(_this), "setWrapperRef", function(ref) {
4990
5839
  _this.wrapperRef = ref;
4991
5840
  });
4992
- _defineProperty(_assertThisInitialized(_this), "handleTransitionEnd", function() {
5841
+ _defineProperty(_assertThisInitialized2(_this), "handleTransitionEnd", function() {
4993
5842
  var status = _this.state.status;
4994
5843
  var callback = _this.props.callback;
4995
5844
  if (_this.wrapperPopper) {
@@ -5000,7 +5849,7 @@ var ReactFloater = function(_React$Component) {
5000
5849
  callback(newStatus === STATUS.OPEN ? "open" : "close", _this.props);
5001
5850
  });
5002
5851
  });
5003
- _defineProperty(_assertThisInitialized(_this), "handleClick", function() {
5852
+ _defineProperty(_assertThisInitialized2(_this), "handleClick", function() {
5004
5853
  var _this$props = _this.props, event = _this$props.event, open = _this$props.open;
5005
5854
  if (esm_default["boolean"](open)) return;
5006
5855
  var _this$state = _this.state, positionWrapper = _this$state.positionWrapper, status = _this$state.status;
@@ -5009,7 +5858,7 @@ var ReactFloater = function(_React$Component) {
5009
5858
  _this.toggle();
5010
5859
  }
5011
5860
  });
5012
- _defineProperty(_assertThisInitialized(_this), "handleMouseEnter", function() {
5861
+ _defineProperty(_assertThisInitialized2(_this), "handleMouseEnter", function() {
5013
5862
  var _this$props2 = _this.props, event = _this$props2.event, open = _this$props2.open;
5014
5863
  if (esm_default["boolean"](open) || isMobile()) return;
5015
5864
  var status = _this.state.status;
@@ -5019,7 +5868,7 @@ var ReactFloater = function(_React$Component) {
5019
5868
  _this.toggle();
5020
5869
  }
5021
5870
  });
5022
- _defineProperty(_assertThisInitialized(_this), "handleMouseLeave", function() {
5871
+ _defineProperty(_assertThisInitialized2(_this), "handleMouseLeave", function() {
5023
5872
  var _this$props3 = _this.props, event = _this$props3.event, eventDelay = _this$props3.eventDelay, open = _this$props3.open;
5024
5873
  if (esm_default["boolean"](open) || isMobile()) return;
5025
5874
  var _this$state2 = _this.state, status = _this$state2.status, positionWrapper = _this$state2.positionWrapper;
@@ -7392,122 +8241,93 @@ import { useTheme } from "storybook/theming";
7392
8241
 
7393
8242
  // src/features/GuidedTour/Tooltip.tsx
7394
8243
  import React11, { useEffect as useEffect2 } from "react";
7395
- import { IconButton } from "storybook/internal/components";
8244
+ import { Button as Button3 } from "storybook/internal/components";
7396
8245
  import { CloseAltIcon } from "@storybook/icons";
7397
8246
  import { color, styled as styled3 } from "storybook/theming";
7398
8247
 
7399
8248
  // src/components/Button/Button.tsx
7400
8249
  import React10, { forwardRef } from "react";
7401
8250
  import { styled as styled2 } from "storybook/theming";
7402
- var StyledButton = styled2.button`
7403
- all: unset;
7404
- box-sizing: border-box;
7405
- border: 0;
7406
- border-radius: 0.25rem;
7407
- cursor: pointer;
7408
- display: inline-flex;
7409
- align-items: center;
7410
- justify-content: center;
7411
- padding: 0 0.75rem;
7412
- background: ${({ theme: theme2, variant }) => {
7413
- if (variant === "primary") {
7414
- return theme2.color.secondary;
7415
- }
7416
- if (variant === "secondary") {
7417
- return theme2.color.lighter;
7418
- }
7419
- if (variant === "outline") {
7420
- return "transparent";
7421
- }
7422
- if (variant === "white") {
7423
- return theme2.color.lightest;
7424
- }
7425
- return theme2.color.secondary;
7426
- }};
7427
- color: ${({ theme: theme2, variant }) => {
7428
- if (variant === "primary") {
7429
- return theme2.color.lightest;
7430
- }
7431
- if (variant === "secondary") {
7432
- return theme2.darkest;
7433
- }
7434
- if (variant === "outline") {
7435
- return theme2.darkest;
7436
- }
7437
- if (variant === "white") {
7438
- return theme2.color.secondary;
7439
- }
7440
- return theme2.color.lightest;
7441
- }};
7442
- box-shadow: ${({ variant }) => {
7443
- if (variant === "secondary") {
7444
- return "#D9E8F2 0 0 0 1px inset";
7445
- }
7446
- if (variant === "outline") {
7447
- return "#D9E8F2 0 0 0 1px inset";
7448
- }
7449
- return "none";
7450
- }};
7451
- height: 32px;
7452
- font-size: 0.8125rem;
7453
- font-weight: 700;
7454
- font-family: ${({ theme: theme2 }) => theme2.typography.fonts.base};
7455
- transition: background-color, box-shadow, color, opacity;
7456
- transition-duration: 0.16s;
7457
- transition-timing-function: ease-in-out;
7458
- text-decoration: none;
7459
-
7460
- &:hover {
7461
- background-color: ${({ theme: theme2, variant }) => {
7462
- if (variant === "primary") {
7463
- return "#0b94eb";
7464
- }
7465
- if (variant === "secondary") {
7466
- return "#eef4f9";
7467
- }
7468
- if (variant === "outline") {
7469
- return "transparent";
7470
- }
7471
- if (variant === "white") {
7472
- return theme2.color.lightest;
7473
- }
7474
- return "#0b94eb";
7475
- }};
7476
- color: ${({ theme: theme2, variant }) => {
7477
- if (variant === "primary") {
8251
+ var StyledButton = styled2.button(({ theme: theme2, variant }) => ({
8252
+ all: "unset",
8253
+ boxSizing: "border-box",
8254
+ border: 0,
8255
+ borderRadius: "4px",
8256
+ cursor: "pointer",
8257
+ display: "inline-flex",
8258
+ alignItems: "center",
8259
+ justifyContent: "center",
8260
+ padding: "0 0.75rem",
8261
+ background: (() => {
8262
+ if (variant === "secondary") {
8263
+ return theme2.button.background;
8264
+ }
8265
+ if (variant === "outline") {
8266
+ return "transparent";
8267
+ }
8268
+ if (variant === "white") {
8269
+ return theme2.color.lightest;
8270
+ }
8271
+ return theme2.base === "light" ? theme2.color.secondary : curriedDarken$1(0.18, theme2.color.secondary);
8272
+ })(),
8273
+ color: (() => {
8274
+ if (variant === "secondary" || variant === "outline") {
8275
+ return theme2.color.defaultText;
8276
+ }
8277
+ if (variant === "white") {
8278
+ return theme2.base === "light" ? theme2.color.secondary : curriedDarken$1(0.18, theme2.color.secondary);
8279
+ }
7478
8280
  return theme2.color.lightest;
7479
- }
7480
- if (variant === "secondary") {
7481
- return theme2.darkest;
7482
- }
7483
- if (variant === "outline") {
7484
- return theme2.darkest;
7485
- }
7486
- if (variant === "white") {
7487
- return theme2.color.darkest;
7488
- }
7489
- return theme2.color.lightest;
7490
- }};
7491
- }
7492
-
7493
- &:focus {
7494
- box-shadow: ${({ variant }) => {
7495
- if (variant === "primary") {
7496
- return "inset 0 0 0 1px rgba(0, 0, 0, 0.2)";
7497
- }
7498
- if (variant === "secondary") {
7499
- return "inset 0 0 0 1px #0b94eb";
7500
- }
7501
- if (variant === "outline") {
7502
- return "inset 0 0 0 1px #0b94eb";
7503
- }
7504
- if (variant === "white") {
8281
+ })(),
8282
+ boxShadow: (() => {
8283
+ if (variant === "secondary") {
8284
+ return `${theme2.button.border} 0 0 0 1px inset`;
8285
+ }
8286
+ if (variant === "outline") {
8287
+ return `${theme2.button.border} 0 0 0 1px inset`;
8288
+ }
7505
8289
  return "none";
8290
+ })(),
8291
+ height: "32px",
8292
+ fontSize: "0.8125rem",
8293
+ fontWeight: "700",
8294
+ fontFamily: theme2.typography.fonts.base,
8295
+ transition: "background-color, box-shadow, color, opacity",
8296
+ transitionDuration: "0.16s",
8297
+ transitionTimingFunction: "ease-in-out",
8298
+ textDecoration: "none",
8299
+ "&:hover, &:focus": {
8300
+ background: (() => {
8301
+ if (variant === "secondary" || variant === "outline") {
8302
+ return curriedTransparentize$1(0.93, theme2.color.secondary);
8303
+ }
8304
+ if (variant === "white") {
8305
+ return curriedTransparentize$1(0.1, theme2.color.lightest);
8306
+ }
8307
+ return theme2.base === "light" ? curriedLighten$1(0.1, theme2.color.secondary) : curriedDarken$1(0.3, theme2.color.secondary);
8308
+ })(),
8309
+ color: (() => {
8310
+ if (variant === "secondary" || variant === "outline") {
8311
+ return theme2.barSelectedColor;
8312
+ }
8313
+ if (variant === "white") {
8314
+ return theme2.base === "light" ? curriedLighten$1(0.1, theme2.color.secondary) : curriedDarken$1(0.3, theme2.color.secondary);
8315
+ }
8316
+ return theme2.color.lightest;
8317
+ })(),
8318
+ boxShadow: (() => {
8319
+ if (variant === "secondary" || variant === "outline" || variant === "white") {
8320
+ return `inset 0 0 0 1px ${theme2.barSelectedColor}`;
8321
+ }
8322
+ return "none";
8323
+ })()
8324
+ },
8325
+ "&:focus-visible": {
8326
+ outline: `solid ${theme2.color.secondary}`,
8327
+ outlineOffset: "2px",
8328
+ outlineWidth: "2px"
7506
8329
  }
7507
- return "inset 0 0 0 2px rgba(0, 0, 0, 0.1)";
7508
- }};
7509
- }
7510
- `;
8330
+ }));
7511
8331
  var Button = forwardRef(/* @__PURE__ */ __name(function Button2({ children, onClick, variant = "primary", ...rest }, ref) {
7512
8332
  return React10.createElement(StyledButton, { ref, onClick, variant, ...rest }, children);
7513
8333
  }, "Button"));
@@ -7588,7 +8408,17 @@ var Tooltip = /* @__PURE__ */ __name(({
7588
8408
  }
7589
8409
  };
7590
8410
  }, []);
7591
- return React11.createElement(TooltipBody, { ...tooltipProps, style: step.styles?.tooltip }, React11.createElement(Wrapper2, null, React11.createElement(TooltipHeader, null, step.title && React11.createElement(TooltipTitle, null, step.title), React11.createElement(IconButton, { ...closeProps, onClick: closeProps.onClick, variant: "solid" }, React11.createElement(CloseAltIcon, null))), React11.createElement(TooltipContent, null, step.content)), React11.createElement(TooltipFooter, { id: "buttonNext" }, React11.createElement(Count, null, index + 1, " of ", size), !step.hideNextButton && React11.createElement(
8411
+ return React11.createElement(TooltipBody, { ...tooltipProps, style: step.styles?.tooltip }, React11.createElement(Wrapper2, null, React11.createElement(TooltipHeader, null, step.title && React11.createElement(TooltipTitle, null, step.title), React11.createElement(
8412
+ Button3,
8413
+ {
8414
+ ...closeProps,
8415
+ onClick: closeProps.onClick,
8416
+ variant: "solid",
8417
+ padding: "small",
8418
+ ariaLabel: "Close"
8419
+ },
8420
+ React11.createElement(CloseAltIcon, null)
8421
+ )), React11.createElement(TooltipContent, null, step.content)), React11.createElement(TooltipFooter, { id: "buttonNext" }, React11.createElement(Count, null, index + 1, " of ", size), !step.hideNextButton && React11.createElement(
7592
8422
  Button,
7593
8423
  {
7594
8424
  ...primaryProps,
@@ -7664,18 +8494,18 @@ function GuidedTour({
7664
8494
  },
7665
8495
  spotlight: {
7666
8496
  backgroundColor: "none",
7667
- border: `solid 2px ${theme2.color.secondary}`,
8497
+ border: `solid 2px ${theme2.base === "light" ? theme2.color.secondary : curriedDarken$1(0.18, theme2.color.secondary)}`,
7668
8498
  boxShadow: "0px 0px 0px 9999px rgba(27, 28, 29, 0.2)"
7669
8499
  },
7670
8500
  tooltip: {
7671
8501
  width: 280,
7672
8502
  color: theme2.color.lightest,
7673
- background: theme2.color.secondary
8503
+ background: theme2.base === "light" ? theme2.color.secondary : curriedDarken$1(0.18, theme2.color.secondary)
7674
8504
  },
7675
8505
  options: {
7676
8506
  zIndex: 9998,
7677
- primaryColor: theme2.color.secondary,
7678
- arrowColor: theme2.color.secondary
8507
+ primaryColor: theme2.base === "light" ? theme2.color.secondary : curriedDarken$1(0.18, theme2.color.secondary),
8508
+ arrowColor: theme2.base === "light" ? theme2.color.secondary : curriedDarken$1(0.18, theme2.color.secondary)
7679
8509
  }
7680
8510
  }
7681
8511
  }
@@ -7685,7 +8515,7 @@ __name(GuidedTour, "GuidedTour");
7685
8515
 
7686
8516
  // src/features/IntentSurvey/IntentSurvey.tsx
7687
8517
  import React13, { useState as useState2 } from "react";
7688
- import { Button as Button3, Form, Modal } from "storybook/internal/components";
8518
+ import { Button as Button4, Form, Modal } from "storybook/internal/components";
7689
8519
  import { styled as styled4 } from "storybook/theming";
7690
8520
 
7691
8521
  // ../../.storybook/isChromatic.ts
@@ -7821,34 +8651,57 @@ var IntentSurvey = /* @__PURE__ */ __name(({
7821
8651
  Object.fromEntries(Object.entries(formFields).map(([key, field]) => [key, field.values]))
7822
8652
  );
7823
8653
  }, "onSubmitForm");
7824
- return React13.createElement(Modal, { defaultOpen: true, width: 420, onEscapeKeyDown: onDismiss }, React13.createElement(Form, { onSubmit: onSubmitForm, id: "intent-survey-form" }, React13.createElement(Content, null, React13.createElement(Modal.Header, null, React13.createElement(Modal.Title, null, "Help improve Storybook")), Object.keys(formFields).map((key) => {
7825
- const field = formFields[key];
7826
- return React13.createElement(React13.Fragment, { key }, React13.createElement(Question, null, field.label), field.type === "checkbox" && React13.createElement(Row, null, Object.entries(field.options).map(([opt, option]) => {
7827
- const id = `${key}:${opt}`;
7828
- return React13.createElement("div", { key: id }, React13.createElement(Label, { htmlFor: id }, React13.createElement(
7829
- Checkbox,
8654
+ return React13.createElement(
8655
+ Modal,
8656
+ {
8657
+ ariaLabel: "Storybook user survey",
8658
+ defaultOpen: true,
8659
+ width: 420,
8660
+ onOpenChange: (isOpen) => {
8661
+ if (!isOpen) {
8662
+ onDismiss();
8663
+ }
8664
+ }
8665
+ },
8666
+ React13.createElement(Form, { onSubmit: onSubmitForm, id: "intent-survey-form" }, React13.createElement(Content, null, React13.createElement(Modal.Header, null, React13.createElement(Modal.Title, null, "Help improve Storybook")), Object.keys(formFields).map((key) => {
8667
+ const field = formFields[key];
8668
+ return React13.createElement(React13.Fragment, { key }, React13.createElement(Question, null, field.label), field.type === "checkbox" && React13.createElement(Row, null, Object.entries(field.options).map(([opt, option]) => {
8669
+ const id = `${key}:${opt}`;
8670
+ return React13.createElement("div", { key: id }, React13.createElement(Label, { htmlFor: id }, React13.createElement(
8671
+ Checkbox,
8672
+ {
8673
+ name: id,
8674
+ id,
8675
+ checked: field.values[opt],
8676
+ disabled: isSubmitting,
8677
+ onChange: (e2) => updateFormData(key, opt, e2.target.checked)
8678
+ }
8679
+ ), option.label));
8680
+ })), field.type === "select" && React13.createElement(
8681
+ Form.Select,
7830
8682
  {
7831
- name: id,
7832
- id,
7833
- checked: field.values[opt],
8683
+ name: key,
8684
+ id: key,
8685
+ value: Object.entries(field.values).find(([, isSelected]) => isSelected)?.[0] || "",
8686
+ required: field.required,
7834
8687
  disabled: isSubmitting,
7835
- onChange: (e2) => updateFormData(key, opt, e2.target.checked)
7836
- }
7837
- ), option.label));
7838
- })), field.type === "select" && React13.createElement(
7839
- Form.Select,
8688
+ onChange: (e2) => updateFormData(key, e2.target.value)
8689
+ },
8690
+ React13.createElement("option", { disabled: true, hidden: true, value: "" }, "Select an option..."),
8691
+ Object.entries(field.options).map(([opt, option]) => React13.createElement("option", { key: opt, value: opt }, option.label))
8692
+ ));
8693
+ }), React13.createElement(Actions, null, React13.createElement(
8694
+ Button4,
7840
8695
  {
7841
- name: key,
7842
- id: key,
7843
- value: Object.entries(field.values).find(([, isSelected]) => isSelected)?.[0] || "",
7844
- required: field.required,
7845
- disabled: isSubmitting,
7846
- onChange: (e2) => updateFormData(key, e2.target.value)
8696
+ ariaLabel: false,
8697
+ disabled: isSubmitting || !isValid,
8698
+ size: "medium",
8699
+ type: "submit",
8700
+ variant: "solid"
7847
8701
  },
7848
- React13.createElement("option", { disabled: true, hidden: true, value: "" }, "Select an option..."),
7849
- Object.entries(field.options).map(([opt, option]) => React13.createElement("option", { key: opt, value: opt }, option.label))
7850
- ));
7851
- }), React13.createElement(Actions, null, React13.createElement(Button3, { disabled: isSubmitting || !isValid, size: "medium", type: "submit", variant: "solid" }, "Submit")))));
8702
+ "Submit"
8703
+ ))))
8704
+ );
7852
8705
  }, "IntentSurvey");
7853
8706
  function shuffle(array) {
7854
8707
  for (let i2 = array.length - 1; i2 > 0; i2--) {