@redis-ui/styles 21.25.0 → 21.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -744,316 +744,6 @@ var p = {
744
744
  }
745
745
  }
746
746
  }, de = {
747
- width: "100%",
748
- height: "fit-content",
749
- variants: {
750
- primary: {
751
- bgColor: m.semantic.color.background.secondary0,
752
- borderColor: m.semantic.color.border.secondary200
753
- },
754
- secondary: {
755
- bgColor: m.semantic.color.background.neutral100,
756
- borderColor: m.semantic.color.border.secondary300
757
- },
758
- informative: {
759
- bgColor: m.semantic.color.background.informative0,
760
- borderColor: m.semantic.color.border.informative100
761
- },
762
- success: {
763
- bgColor: m.semantic.color.background.success0,
764
- borderColor: m.semantic.color.border.success100
765
- },
766
- notice: {
767
- bgColor: m.semantic.color.background.notice0,
768
- borderColor: m.semantic.color.border.notice100
769
- },
770
- attention: {
771
- bgColor: m.semantic.color.background.attention0,
772
- borderColor: m.semantic.color.border.attention100
773
- },
774
- danger: {
775
- bgColor: m.semantic.color.background.danger0,
776
- borderColor: m.semantic.color.border.danger100
777
- },
778
- upsell: {
779
- bgColor: m.semantic.color.background.discovery0,
780
- borderColor: m.semantic.color.border.discovery100
781
- }
782
- }
783
- }, fe = {
784
- categorical: [
785
- m.semantic.color.icon.informative400,
786
- m.semantic.color.icon.discovery400,
787
- m.semantic.color.icon.success400,
788
- m.semantic.color.icon.attention400,
789
- m.semantic.color.icon.primary400,
790
- m.semantic.color.icon.secondary400,
791
- m.semantic.color.icon.informative700,
792
- m.semantic.color.icon.discovery700
793
- ],
794
- grid: m.semantic.color.border.secondary200,
795
- gridDashArray: "3",
796
- axisLabel: m.semantic.color.text.secondary500,
797
- threshold: {
798
- warning: m.semantic.color.icon.attention400,
799
- critical: m.semantic.color.icon.danger500
800
- },
801
- axis: {
802
- fontFamily: m.core.font.fontFamily.regular,
803
- fontSize: {
804
- S: m.core.font.fontSize.s10,
805
- M: m.core.font.fontSize.s12
806
- }
807
- },
808
- series: {
809
- strokeWidth: {
810
- S: 2,
811
- M: 2
812
- },
813
- areaOpacity: {
814
- from: .3,
815
- to: 0
816
- }
817
- },
818
- cursor: {
819
- color: m.semantic.color.border.secondary300,
820
- width: 1
821
- },
822
- activeDot: {
823
- size: 8,
824
- ringColor: m.semantic.color.background.secondary0,
825
- ringWidth: 2
826
- },
827
- referenceLine: {
828
- color: m.semantic.color.border.secondary500,
829
- dashArray: "4 4"
830
- },
831
- tooltip: {
832
- bgColor: m.semantic.color.background.secondary0,
833
- textColor: m.semantic.color.text.secondary950,
834
- labelColor: m.semantic.color.text.secondary500,
835
- borderColor: m.semantic.color.border.secondary200,
836
- borderRadius: "0.4rem",
837
- shadow: m.core.shadow.shadow200,
838
- padding: "0.8rem 1.2rem",
839
- fontSize: m.core.font.fontSize.s12,
840
- labelFontSize: m.core.font.fontSize.s12,
841
- valueFontFamily: m.core.font.fontFamily.regular,
842
- markerSize: "0.8rem"
843
- },
844
- legend: {
845
- textColor: m.semantic.color.text.secondary600,
846
- fontFamily: {
847
- S: m.core.font.fontFamily.regular,
848
- M: m.core.font.fontFamily.regular
849
- },
850
- fontSize: {
851
- S: m.core.font.fontSize.s12,
852
- M: m.core.font.fontSize.s12
853
- },
854
- gap: {
855
- S: "1.2rem",
856
- M: "1.6rem"
857
- },
858
- dotSize: "0.8rem",
859
- lineWidth: "1.2rem",
860
- lineHeight: "0.2rem"
861
- },
862
- sparkline: {
863
- strokeWidth: 1.5,
864
- areaOpacity: {
865
- from: .4,
866
- to: .04
867
- }
868
- },
869
- panel: {
870
- padding: {
871
- S: m.core.space.space200,
872
- M: m.core.space.space200
873
- },
874
- gap: {
875
- S: m.core.space.space100,
876
- M: m.core.space.space100
877
- }
878
- }
879
- }, pe = {
880
- width: "1.8rem",
881
- height: "1.8rem",
882
- padding: "0",
883
- borderRadius: "0.4rem",
884
- borderWidth: "1px",
885
- label: {
886
- padding: "0 0.8rem",
887
- gap: "0.8rem"
888
- },
889
- variants: {
890
- primary: {
891
- on: {
892
- normal: {
893
- bgColor: m.semantic.color.background.primary400,
894
- iconColor: m.semantic.color.icon.secondary0,
895
- textColor: m.semantic.color.text.secondary950
896
- },
897
- disabled: {
898
- bgColor: m.semantic.color.background.secondary300,
899
- iconColor: m.semantic.color.icon.secondary0,
900
- textColor: m.semantic.color.text.secondary300
901
- }
902
- },
903
- off: {
904
- normal: {
905
- bgColor: m.semantic.color.background.secondary0,
906
- borderColor: m.semantic.color.border.secondary600,
907
- textColor: m.semantic.color.text.secondary950
908
- },
909
- disabled: {
910
- bgColor: m.semantic.color.background.secondary0,
911
- borderColor: m.semantic.color.border.secondary300,
912
- textColor: m.semantic.color.text.secondary300
913
- }
914
- }
915
- },
916
- danger: {
917
- on: {
918
- normal: {
919
- bgColor: m.semantic.color.background.danger500,
920
- iconColor: m.semantic.color.icon.secondary0,
921
- textColor: m.semantic.color.text.danger500
922
- },
923
- disabled: {
924
- bgColor: m.semantic.color.background.danger100,
925
- iconColor: m.semantic.color.icon.secondary0,
926
- textColor: m.semantic.color.text.danger100
927
- }
928
- },
929
- off: {
930
- normal: {
931
- bgColor: m.semantic.color.background.secondary0,
932
- borderColor: m.semantic.color.border.danger500,
933
- textColor: m.semantic.color.text.danger500
934
- },
935
- disabled: {
936
- bgColor: m.semantic.color.background.secondary0,
937
- borderColor: m.semantic.color.border.danger100,
938
- textColor: m.semantic.color.text.danger100
939
- }
940
- }
941
- }
942
- }
943
- }, me = {
944
- sizes: {
945
- M: {
946
- height: "2.8rem",
947
- padding: "0.4rem 0.6rem",
948
- borderRadius: "4px",
949
- gap: "0.5rem"
950
- },
951
- S: {
952
- height: "2.4rem",
953
- padding: "0.4rem 0.6rem",
954
- borderRadius: "4px",
955
- gap: "0.5rem"
956
- }
957
- },
958
- variant: {
959
- regular: {
960
- normal: {
961
- bgColor: m.semantic.color.background.secondary200,
962
- textColor: m.semantic.color.text.secondary950
963
- },
964
- disabled: {
965
- bgColor: m.semantic.color.background.neutral200,
966
- textColor: m.semantic.color.text.neutral400
967
- }
968
- },
969
- flat: {
970
- normal: {
971
- bgColor: m.semantic.color.background.secondary200,
972
- textColor: m.semantic.color.text.secondary950
973
- },
974
- disabled: {
975
- bgColor: m.semantic.color.background.neutral200,
976
- textColor: m.semantic.color.text.neutral400
977
- }
978
- }
979
- },
980
- closeButton: {
981
- variant: {
982
- regular: { color: m.semantic.color.icon.secondary700 },
983
- flat: { color: m.semantic.color.icon.secondary700 }
984
- },
985
- size: {
986
- M: {
987
- size: "2rem",
988
- borderRadius: "100%"
989
- },
990
- S: {
991
- size: "1.6rem",
992
- borderRadius: "100%"
993
- }
994
- }
995
- }
996
- }, he = {
997
- sizes: {
998
- M: { gap: "0.8rem 5px" },
999
- S: { gap: "0.8rem 5px" }
1000
- },
1001
- popupList: {
1002
- bgColor: m.semantic.color.background.secondary100,
1003
- color: m.semantic.color.text.secondary600,
1004
- disabledColor: m.semantic.color.text.secondary400,
1005
- minWidth: "18rem",
1006
- maxHeight: "33.2rem",
1007
- gap: "0.4rem",
1008
- padding: "1.2rem 1.6rem"
1009
- }
1010
- }, ge = {
1011
- bgColor: m.semantic.color.background.neutral100,
1012
- textColor: m.semantic.color.text.secondary950,
1013
- borderRadius: "0.5rem",
1014
- border: "none",
1015
- fontFamily: m.core.font.fontFamily.sourceCodeProRegular,
1016
- lineHeight: "1.7",
1017
- paddingY: "1.4rem",
1018
- paddingX: "1.6rem",
1019
- paddingRightWithCopy: "4.8rem",
1020
- sizes: {
1021
- M: { fontSize: "1.25rem" },
1022
- S: { fontSize: "1.15rem" }
1023
- }
1024
- }, { background: h, border: g, icon: _ } = m.semantic.color, _e = { variants: { outline: {
1025
- size: "3.2rem",
1026
- iconSize: "1.4rem",
1027
- borderRadius: "0.4rem",
1028
- states: {
1029
- normal: {
1030
- bgColor: h.neutral0,
1031
- borderColor: g.secondary500,
1032
- iconColor: _.secondary700
1033
- },
1034
- hover: {
1035
- bgColor: h.secondary700,
1036
- borderColor: g.secondary700,
1037
- iconColor: _.neutral0
1038
- },
1039
- copied: {
1040
- bgColor: h.secondary300,
1041
- borderColor: g.secondary300,
1042
- iconColor: _.secondary950
1043
- },
1044
- disabled: {
1045
- bgColor: h.neutral0,
1046
- borderColor: g.secondary300,
1047
- iconColor: _.secondary400
1048
- }
1049
- }
1050
- } } }, ve = {
1051
- width: "2.7rem",
1052
- height: "2rem",
1053
- borderRadius: "5px",
1054
- borderWidth: "0.1px",
1055
- borderColor: m.semantic.color.border.secondary400
1056
- }, ye = {
1057
747
  aliceblue: [
1058
748
  240,
1059
749
  248,
@@ -1795,708 +1485,1023 @@ var p = {
1795
1485
  50
1796
1486
  ]
1797
1487
  };
1798
- for (let e in ye) Object.freeze(ye[e]);
1799
- var be = Object.freeze(ye), xe = Ce, Se = {
1800
- red: 0,
1801
- orange: 60,
1802
- yellow: 120,
1803
- green: 180,
1804
- blue: 240,
1805
- purple: 300
1488
+ for (let e in de) Object.freeze(de[e]);
1489
+ var fe = Object.freeze(de), pe = he, me = {
1490
+ red: 0,
1491
+ orange: 60,
1492
+ yellow: 120,
1493
+ green: 180,
1494
+ blue: 240,
1495
+ purple: 300
1496
+ };
1497
+ function he(e) {
1498
+ var t, n = [], r = 1, i;
1499
+ if (typeof e == "number" || typeof e == "number") return {
1500
+ space: "rgb",
1501
+ values: [
1502
+ e >>> 16,
1503
+ (e & 65280) >>> 8,
1504
+ e & 255
1505
+ ],
1506
+ alpha: 1
1507
+ };
1508
+ if (e = String(e).toLowerCase(), fe[e]) n = fe[e].slice(), i = "rgb";
1509
+ else if (e === "transparent") r = 0, i = "rgb", n = [
1510
+ 0,
1511
+ 0,
1512
+ 0
1513
+ ];
1514
+ else if (e[0] === "#") {
1515
+ var a = e.slice(1), o = a.length, s = o <= 4;
1516
+ r = 1, s ? (n = [
1517
+ parseInt(a[0] + a[0], 16),
1518
+ parseInt(a[1] + a[1], 16),
1519
+ parseInt(a[2] + a[2], 16)
1520
+ ], o === 4 && (r = parseInt(a[3] + a[3], 16) / 255)) : (n = [
1521
+ parseInt(a[0] + a[1], 16),
1522
+ parseInt(a[2] + a[3], 16),
1523
+ parseInt(a[4] + a[5], 16)
1524
+ ], o === 8 && (r = parseInt(a[6] + a[7], 16) / 255)), n[0] ||= 0, n[1] ||= 0, n[2] ||= 0, i = "rgb";
1525
+ } else if (t = /^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)) {
1526
+ i = t[1].replace(/a$/, "");
1527
+ var c = i === "cmyk" ? 4 : i === "gray" ? 1 : 3;
1528
+ n = t[2].trim().split(/\s*[,\/]\s*|\s+/), i === "color" && (i = n.shift()), n = n.map(function(e, t) {
1529
+ if (e[e.length - 1] === "%") return e = parseFloat(e) / 100, t === 3 ? e : i === "rgb" ? e * 255 : i[0] === "h" || i[0] === "l" && !t ? e * 100 : i === "lab" ? e * 125 : i === "lch" ? t < 2 ? e * 150 : e * 360 : i[0] === "o" && !t ? e : i === "oklab" ? e * .4 : i === "oklch" ? t < 2 ? e * .4 : e * 360 : e;
1530
+ if (i[t] === "h" || t === 2 && i[i.length - 1] === "h") {
1531
+ if (me[e] !== void 0) return me[e];
1532
+ if (e.endsWith("deg")) return parseFloat(e);
1533
+ if (e.endsWith("turn")) return parseFloat(e) * 360;
1534
+ if (e.endsWith("grad")) return parseFloat(e) * 360 / 400;
1535
+ if (e.endsWith("rad")) return parseFloat(e) * 180 / Math.PI;
1536
+ }
1537
+ return e === "none" ? 0 : parseFloat(e);
1538
+ }), r = n.length > c ? n.pop() : 1;
1539
+ } else /[0-9](?:\s|\/|,)/.test(e) && (n = e.match(/([0-9]+)/g).map(function(e) {
1540
+ return parseFloat(e);
1541
+ }), i = e.match(/([a-z])/gi)?.join("")?.toLowerCase() || "rgb");
1542
+ return {
1543
+ space: i,
1544
+ values: n,
1545
+ alpha: r
1546
+ };
1547
+ }
1548
+ //#endregion
1549
+ //#region ../../node_modules/color-alpha/index.js
1550
+ function ge(e, t) {
1551
+ var { space: n, values: r, alpha: i } = pe(e);
1552
+ return n[0] === "h" ? `${n}a(${r[0]}, ${r[1]}%, ${r[2]}%, ${t})` : `${n}a(${r}, ${t})`;
1553
+ }
1554
+ //#endregion
1555
+ //#region ../../node_modules/@babel/runtime/helpers/esm/extends.js
1556
+ function h() {
1557
+ return h = Object.assign ? Object.assign.bind() : function(e) {
1558
+ for (var t = 1; t < arguments.length; t++) {
1559
+ var n = arguments[t];
1560
+ for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
1561
+ }
1562
+ return e;
1563
+ }, h.apply(null, arguments);
1564
+ }
1565
+ //#endregion
1566
+ //#region ../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
1567
+ function _e(e) {
1568
+ if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
1569
+ return e;
1570
+ }
1571
+ //#endregion
1572
+ //#region ../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
1573
+ function g(e, t) {
1574
+ return g = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
1575
+ return e.__proto__ = t, e;
1576
+ }, g(e, t);
1577
+ }
1578
+ //#endregion
1579
+ //#region ../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
1580
+ function ve(e, t) {
1581
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, g(e, t);
1582
+ }
1583
+ //#endregion
1584
+ //#region ../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
1585
+ function ye(e) {
1586
+ return ye = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
1587
+ return e.__proto__ || Object.getPrototypeOf(e);
1588
+ }, ye(e);
1589
+ }
1590
+ //#endregion
1591
+ //#region ../../node_modules/@babel/runtime/helpers/esm/isNativeFunction.js
1592
+ function be(e) {
1593
+ try {
1594
+ return Function.toString.call(e).indexOf("[native code]") !== -1;
1595
+ } catch {
1596
+ return typeof e == "function";
1597
+ }
1598
+ }
1599
+ //#endregion
1600
+ //#region ../../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
1601
+ function xe() {
1602
+ try {
1603
+ var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1604
+ } catch {}
1605
+ return (xe = function() {
1606
+ return !!e;
1607
+ })();
1608
+ }
1609
+ //#endregion
1610
+ //#region ../../node_modules/@babel/runtime/helpers/esm/construct.js
1611
+ function Se(e, t, n) {
1612
+ if (xe()) return Reflect.construct.apply(null, arguments);
1613
+ var r = [null];
1614
+ r.push.apply(r, t);
1615
+ var i = new (e.bind.apply(e, r))();
1616
+ return n && g(i, n.prototype), i;
1617
+ }
1618
+ //#endregion
1619
+ //#region ../../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js
1620
+ function Ce(e) {
1621
+ var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
1622
+ return Ce = function(e) {
1623
+ if (e === null || !be(e)) return e;
1624
+ if (typeof e != "function") throw TypeError("Super expression must either be null or a function");
1625
+ if (t !== void 0) {
1626
+ if (t.has(e)) return t.get(e);
1627
+ t.set(e, n);
1628
+ }
1629
+ function n() {
1630
+ return Se(e, arguments, ye(this).constructor);
1631
+ }
1632
+ return n.prototype = Object.create(e.prototype, { constructor: {
1633
+ value: n,
1634
+ enumerable: !1,
1635
+ writable: !0,
1636
+ configurable: !0
1637
+ } }), g(n, e);
1638
+ }, Ce(e);
1639
+ }
1640
+ //#endregion
1641
+ //#region ../../node_modules/polished/dist/polished.esm.js
1642
+ var we = {
1643
+ 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",
1644
+ 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",
1645
+ 3: "Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n",
1646
+ 4: "Couldn't generate valid rgb string from %s, it returned %s.\n\n",
1647
+ 5: "Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\n\n",
1648
+ 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",
1649
+ 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",
1650
+ 8: "Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\n\n",
1651
+ 9: "Please provide a number of steps to the modularScale helper.\n\n",
1652
+ 10: "Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",
1653
+ 11: "Invalid value passed as base to modularScale, expected number or em string but got \"%s\"\n\n",
1654
+ 12: "Expected a string ending in \"px\" or a number passed as the first argument to %s(), got \"%s\" instead.\n\n",
1655
+ 13: "Expected a string ending in \"px\" or a number passed as the second argument to %s(), got \"%s\" instead.\n\n",
1656
+ 14: "Passed invalid pixel value (\"%s\") to %s(), please pass a value like \"12px\" or 12.\n\n",
1657
+ 15: "Passed invalid base value (\"%s\") to %s(), please pass a value like \"12px\" or 12.\n\n",
1658
+ 16: "You must provide a template to this method.\n\n",
1659
+ 17: "You passed an unsupported selector state to this method.\n\n",
1660
+ 18: "minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",
1661
+ 19: "fromSize and toSize must be provided as stringified numbers with the same units.\n\n",
1662
+ 20: "expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",
1663
+ 21: "expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",
1664
+ 22: "expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",
1665
+ 23: "fontFace expects a name of a font-family.\n\n",
1666
+ 24: "fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",
1667
+ 25: "fontFace expects localFonts to be an array.\n\n",
1668
+ 26: "fontFace expects fileFormats to be an array.\n\n",
1669
+ 27: "radialGradient requries at least 2 color-stops to properly render.\n\n",
1670
+ 28: "Please supply a filename to retinaImage() as the first argument.\n\n",
1671
+ 29: "Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",
1672
+ 30: "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",
1673
+ 31: "The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\n\n",
1674
+ 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",
1675
+ 33: "The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\n\n",
1676
+ 34: "borderRadius expects a radius value as a string or number as the second argument.\n\n",
1677
+ 35: "borderRadius expects one of \"top\", \"bottom\", \"left\" or \"right\" as the first argument.\n\n",
1678
+ 36: "Property must be a string value.\n\n",
1679
+ 37: "Syntax Error at %s.\n\n",
1680
+ 38: "Formula contains a function that needs parentheses at %s.\n\n",
1681
+ 39: "Formula is missing closing parenthesis at %s.\n\n",
1682
+ 40: "Formula has too many closing parentheses at %s.\n\n",
1683
+ 41: "All values in a formula must have the same unit or be unitless.\n\n",
1684
+ 42: "Please provide a number of steps to the modularScale helper.\n\n",
1685
+ 43: "Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",
1686
+ 44: "Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\n\n",
1687
+ 45: "Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\n\n",
1688
+ 46: "Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\n\n",
1689
+ 47: "minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",
1690
+ 48: "fromSize and toSize must be provided as stringified numbers with the same units.\n\n",
1691
+ 49: "Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",
1692
+ 50: "Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\n\n",
1693
+ 51: "Expects the first argument object to have the properties prop, fromSize, and toSize.\n\n",
1694
+ 52: "fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",
1695
+ 53: "fontFace expects localFonts to be an array.\n\n",
1696
+ 54: "fontFace expects fileFormats to be an array.\n\n",
1697
+ 55: "fontFace expects a name of a font-family.\n\n",
1698
+ 56: "linearGradient requries at least 2 color-stops to properly render.\n\n",
1699
+ 57: "radialGradient requries at least 2 color-stops to properly render.\n\n",
1700
+ 58: "Please supply a filename to retinaImage() as the first argument.\n\n",
1701
+ 59: "Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",
1702
+ 60: "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",
1703
+ 61: "Property must be a string value.\n\n",
1704
+ 62: "borderRadius expects a radius value as a string or number as the second argument.\n\n",
1705
+ 63: "borderRadius expects one of \"top\", \"bottom\", \"left\" or \"right\" as the first argument.\n\n",
1706
+ 64: "The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\n\n",
1707
+ 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",
1708
+ 66: "The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\n\n",
1709
+ 67: "You must provide a template to this method.\n\n",
1710
+ 68: "You passed an unsupported selector state to this method.\n\n",
1711
+ 69: "Expected a string ending in \"px\" or a number passed as the first argument to %s(), got %s instead.\n\n",
1712
+ 70: "Expected a string ending in \"px\" or a number passed as the second argument to %s(), got %s instead.\n\n",
1713
+ 71: "Passed invalid pixel value %s to %s(), please pass a value like \"12px\" or 12.\n\n",
1714
+ 72: "Passed invalid base value %s to %s(), please pass a value like \"12px\" or 12.\n\n",
1715
+ 73: "Please provide a valid CSS variable.\n\n",
1716
+ 74: "CSS variable not found and no default was provided.\n\n",
1717
+ 75: "important requires a valid style object, got a %s instead.\n\n",
1718
+ 76: "fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n\n",
1719
+ 77: "remToPx expects a value in \"rem\" but you provided it in \"%s\".\n\n",
1720
+ 78: "base must be set in \"px\" or \"%\" but you set it in \"%s\".\n"
1721
+ };
1722
+ function Te() {
1723
+ var e = [...arguments], t = e[0], n = [], r;
1724
+ for (r = 1; r < e.length; r += 1) n.push(e[r]);
1725
+ return n.forEach(function(e) {
1726
+ t = t.replace(/%[a-z]/, e);
1727
+ }), t;
1728
+ }
1729
+ var _ = /*#__PURE__*/ function(e) {
1730
+ ve(t, e);
1731
+ function t(t) {
1732
+ var n;
1733
+ if (process.env.NODE_ENV === "production") n = e.call(this, "An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#" + t + " for more information.") || this;
1734
+ else {
1735
+ var r = [...arguments].slice(1);
1736
+ n = e.call(this, Te.apply(void 0, [we[t]].concat(r))) || this;
1737
+ }
1738
+ return _e(n);
1739
+ }
1740
+ return t;
1741
+ }(/*#__PURE__*/ Ce(Error));
1742
+ function Ee(e) {
1743
+ return Math.round(e * 255);
1744
+ }
1745
+ function De(e, t, n) {
1746
+ return Ee(e) + "," + Ee(t) + "," + Ee(n);
1747
+ }
1748
+ function v(e, t, n, r) {
1749
+ if (r === void 0 && (r = De), t === 0) return r(n, n, n);
1750
+ var i = (e % 360 + 360) % 360 / 60, a = (1 - Math.abs(2 * n - 1)) * t, o = a * (1 - Math.abs(i % 2 - 1)), s = 0, c = 0, l = 0;
1751
+ i >= 0 && i < 1 ? (s = a, c = o) : i >= 1 && i < 2 ? (s = o, c = a) : i >= 2 && i < 3 ? (c = a, l = o) : i >= 3 && i < 4 ? (c = o, l = a) : i >= 4 && i < 5 ? (s = o, l = a) : i >= 5 && i < 6 && (s = a, l = o);
1752
+ var u = n - a / 2, d = s + u, f = c + u, p = l + u;
1753
+ return r(d, f, p);
1754
+ }
1755
+ var Oe = {
1756
+ aliceblue: "f0f8ff",
1757
+ antiquewhite: "faebd7",
1758
+ aqua: "00ffff",
1759
+ aquamarine: "7fffd4",
1760
+ azure: "f0ffff",
1761
+ beige: "f5f5dc",
1762
+ bisque: "ffe4c4",
1763
+ black: "000",
1764
+ blanchedalmond: "ffebcd",
1765
+ blue: "0000ff",
1766
+ blueviolet: "8a2be2",
1767
+ brown: "a52a2a",
1768
+ burlywood: "deb887",
1769
+ cadetblue: "5f9ea0",
1770
+ chartreuse: "7fff00",
1771
+ chocolate: "d2691e",
1772
+ coral: "ff7f50",
1773
+ cornflowerblue: "6495ed",
1774
+ cornsilk: "fff8dc",
1775
+ crimson: "dc143c",
1776
+ cyan: "00ffff",
1777
+ darkblue: "00008b",
1778
+ darkcyan: "008b8b",
1779
+ darkgoldenrod: "b8860b",
1780
+ darkgray: "a9a9a9",
1781
+ darkgreen: "006400",
1782
+ darkgrey: "a9a9a9",
1783
+ darkkhaki: "bdb76b",
1784
+ darkmagenta: "8b008b",
1785
+ darkolivegreen: "556b2f",
1786
+ darkorange: "ff8c00",
1787
+ darkorchid: "9932cc",
1788
+ darkred: "8b0000",
1789
+ darksalmon: "e9967a",
1790
+ darkseagreen: "8fbc8f",
1791
+ darkslateblue: "483d8b",
1792
+ darkslategray: "2f4f4f",
1793
+ darkslategrey: "2f4f4f",
1794
+ darkturquoise: "00ced1",
1795
+ darkviolet: "9400d3",
1796
+ deeppink: "ff1493",
1797
+ deepskyblue: "00bfff",
1798
+ dimgray: "696969",
1799
+ dimgrey: "696969",
1800
+ dodgerblue: "1e90ff",
1801
+ firebrick: "b22222",
1802
+ floralwhite: "fffaf0",
1803
+ forestgreen: "228b22",
1804
+ fuchsia: "ff00ff",
1805
+ gainsboro: "dcdcdc",
1806
+ ghostwhite: "f8f8ff",
1807
+ gold: "ffd700",
1808
+ goldenrod: "daa520",
1809
+ gray: "808080",
1810
+ green: "008000",
1811
+ greenyellow: "adff2f",
1812
+ grey: "808080",
1813
+ honeydew: "f0fff0",
1814
+ hotpink: "ff69b4",
1815
+ indianred: "cd5c5c",
1816
+ indigo: "4b0082",
1817
+ ivory: "fffff0",
1818
+ khaki: "f0e68c",
1819
+ lavender: "e6e6fa",
1820
+ lavenderblush: "fff0f5",
1821
+ lawngreen: "7cfc00",
1822
+ lemonchiffon: "fffacd",
1823
+ lightblue: "add8e6",
1824
+ lightcoral: "f08080",
1825
+ lightcyan: "e0ffff",
1826
+ lightgoldenrodyellow: "fafad2",
1827
+ lightgray: "d3d3d3",
1828
+ lightgreen: "90ee90",
1829
+ lightgrey: "d3d3d3",
1830
+ lightpink: "ffb6c1",
1831
+ lightsalmon: "ffa07a",
1832
+ lightseagreen: "20b2aa",
1833
+ lightskyblue: "87cefa",
1834
+ lightslategray: "789",
1835
+ lightslategrey: "789",
1836
+ lightsteelblue: "b0c4de",
1837
+ lightyellow: "ffffe0",
1838
+ lime: "0f0",
1839
+ limegreen: "32cd32",
1840
+ linen: "faf0e6",
1841
+ magenta: "f0f",
1842
+ maroon: "800000",
1843
+ mediumaquamarine: "66cdaa",
1844
+ mediumblue: "0000cd",
1845
+ mediumorchid: "ba55d3",
1846
+ mediumpurple: "9370db",
1847
+ mediumseagreen: "3cb371",
1848
+ mediumslateblue: "7b68ee",
1849
+ mediumspringgreen: "00fa9a",
1850
+ mediumturquoise: "48d1cc",
1851
+ mediumvioletred: "c71585",
1852
+ midnightblue: "191970",
1853
+ mintcream: "f5fffa",
1854
+ mistyrose: "ffe4e1",
1855
+ moccasin: "ffe4b5",
1856
+ navajowhite: "ffdead",
1857
+ navy: "000080",
1858
+ oldlace: "fdf5e6",
1859
+ olive: "808000",
1860
+ olivedrab: "6b8e23",
1861
+ orange: "ffa500",
1862
+ orangered: "ff4500",
1863
+ orchid: "da70d6",
1864
+ palegoldenrod: "eee8aa",
1865
+ palegreen: "98fb98",
1866
+ paleturquoise: "afeeee",
1867
+ palevioletred: "db7093",
1868
+ papayawhip: "ffefd5",
1869
+ peachpuff: "ffdab9",
1870
+ peru: "cd853f",
1871
+ pink: "ffc0cb",
1872
+ plum: "dda0dd",
1873
+ powderblue: "b0e0e6",
1874
+ purple: "800080",
1875
+ rebeccapurple: "639",
1876
+ red: "f00",
1877
+ rosybrown: "bc8f8f",
1878
+ royalblue: "4169e1",
1879
+ saddlebrown: "8b4513",
1880
+ salmon: "fa8072",
1881
+ sandybrown: "f4a460",
1882
+ seagreen: "2e8b57",
1883
+ seashell: "fff5ee",
1884
+ sienna: "a0522d",
1885
+ silver: "c0c0c0",
1886
+ skyblue: "87ceeb",
1887
+ slateblue: "6a5acd",
1888
+ slategray: "708090",
1889
+ slategrey: "708090",
1890
+ snow: "fffafa",
1891
+ springgreen: "00ff7f",
1892
+ steelblue: "4682b4",
1893
+ tan: "d2b48c",
1894
+ teal: "008080",
1895
+ thistle: "d8bfd8",
1896
+ tomato: "ff6347",
1897
+ turquoise: "40e0d0",
1898
+ violet: "ee82ee",
1899
+ wheat: "f5deb3",
1900
+ white: "fff",
1901
+ whitesmoke: "f5f5f5",
1902
+ yellow: "ff0",
1903
+ yellowgreen: "9acd32"
1806
1904
  };
1807
- function Ce(e) {
1808
- var t, n = [], r = 1, i;
1809
- if (typeof e == "number" || typeof e == "number") return {
1810
- space: "rgb",
1811
- values: [
1812
- e >>> 16,
1813
- (e & 65280) >>> 8,
1814
- e & 255
1815
- ],
1816
- alpha: 1
1905
+ function ke(e) {
1906
+ if (typeof e != "string") return e;
1907
+ var t = e.toLowerCase();
1908
+ return Oe[t] ? "#" + Oe[t] : e;
1909
+ }
1910
+ var Ae = /^#[a-fA-F0-9]{6}$/, je = /^#[a-fA-F0-9]{8}$/, Me = /^#[a-fA-F0-9]{3}$/, Ne = /^#[a-fA-F0-9]{4}$/, Pe = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i, Fe = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i, Ie = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i, Le = /^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;
1911
+ function y(e) {
1912
+ if (typeof e != "string") throw new _(3);
1913
+ var t = ke(e);
1914
+ if (t.match(Ae)) return {
1915
+ red: parseInt("" + t[1] + t[2], 16),
1916
+ green: parseInt("" + t[3] + t[4], 16),
1917
+ blue: parseInt("" + t[5] + t[6], 16)
1817
1918
  };
1818
- if (e = String(e).toLowerCase(), be[e]) n = be[e].slice(), i = "rgb";
1819
- else if (e === "transparent") r = 0, i = "rgb", n = [
1820
- 0,
1821
- 0,
1822
- 0
1823
- ];
1824
- else if (e[0] === "#") {
1825
- var a = e.slice(1), o = a.length, s = o <= 4;
1826
- r = 1, s ? (n = [
1827
- parseInt(a[0] + a[0], 16),
1828
- parseInt(a[1] + a[1], 16),
1829
- parseInt(a[2] + a[2], 16)
1830
- ], o === 4 && (r = parseInt(a[3] + a[3], 16) / 255)) : (n = [
1831
- parseInt(a[0] + a[1], 16),
1832
- parseInt(a[2] + a[3], 16),
1833
- parseInt(a[4] + a[5], 16)
1834
- ], o === 8 && (r = parseInt(a[6] + a[7], 16) / 255)), n[0] ||= 0, n[1] ||= 0, n[2] ||= 0, i = "rgb";
1835
- } else if (t = /^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)) {
1836
- i = t[1].replace(/a$/, "");
1837
- var c = i === "cmyk" ? 4 : i === "gray" ? 1 : 3;
1838
- n = t[2].trim().split(/\s*[,\/]\s*|\s+/), i === "color" && (i = n.shift()), n = n.map(function(e, t) {
1839
- if (e[e.length - 1] === "%") return e = parseFloat(e) / 100, t === 3 ? e : i === "rgb" ? e * 255 : i[0] === "h" || i[0] === "l" && !t ? e * 100 : i === "lab" ? e * 125 : i === "lch" ? t < 2 ? e * 150 : e * 360 : i[0] === "o" && !t ? e : i === "oklab" ? e * .4 : i === "oklch" ? t < 2 ? e * .4 : e * 360 : e;
1840
- if (i[t] === "h" || t === 2 && i[i.length - 1] === "h") {
1841
- if (Se[e] !== void 0) return Se[e];
1842
- if (e.endsWith("deg")) return parseFloat(e);
1843
- if (e.endsWith("turn")) return parseFloat(e) * 360;
1844
- if (e.endsWith("grad")) return parseFloat(e) * 360 / 400;
1845
- if (e.endsWith("rad")) return parseFloat(e) * 180 / Math.PI;
1846
- }
1847
- return e === "none" ? 0 : parseFloat(e);
1848
- }), r = n.length > c ? n.pop() : 1;
1849
- } else /[0-9](?:\s|\/|,)/.test(e) && (n = e.match(/([0-9]+)/g).map(function(e) {
1850
- return parseFloat(e);
1851
- }), i = e.match(/([a-z])/gi)?.join("")?.toLowerCase() || "rgb");
1852
- return {
1853
- space: i,
1854
- values: n,
1855
- alpha: r
1919
+ if (t.match(je)) {
1920
+ var n = parseFloat((parseInt("" + t[7] + t[8], 16) / 255).toFixed(2));
1921
+ return {
1922
+ red: parseInt("" + t[1] + t[2], 16),
1923
+ green: parseInt("" + t[3] + t[4], 16),
1924
+ blue: parseInt("" + t[5] + t[6], 16),
1925
+ alpha: n
1926
+ };
1927
+ }
1928
+ if (t.match(Me)) return {
1929
+ red: parseInt("" + t[1] + t[1], 16),
1930
+ green: parseInt("" + t[2] + t[2], 16),
1931
+ blue: parseInt("" + t[3] + t[3], 16)
1932
+ };
1933
+ if (t.match(Ne)) {
1934
+ var r = parseFloat((parseInt("" + t[4] + t[4], 16) / 255).toFixed(2));
1935
+ return {
1936
+ red: parseInt("" + t[1] + t[1], 16),
1937
+ green: parseInt("" + t[2] + t[2], 16),
1938
+ blue: parseInt("" + t[3] + t[3], 16),
1939
+ alpha: r
1940
+ };
1941
+ }
1942
+ var i = Pe.exec(t);
1943
+ if (i) return {
1944
+ red: parseInt("" + i[1], 10),
1945
+ green: parseInt("" + i[2], 10),
1946
+ blue: parseInt("" + i[3], 10)
1856
1947
  };
1948
+ var a = Fe.exec(t.substring(0, 50));
1949
+ if (a) return {
1950
+ red: parseInt("" + a[1], 10),
1951
+ green: parseInt("" + a[2], 10),
1952
+ blue: parseInt("" + a[3], 10),
1953
+ alpha: parseFloat("" + a[4]) > 1 ? parseFloat("" + a[4]) / 100 : parseFloat("" + a[4])
1954
+ };
1955
+ var o = Ie.exec(t);
1956
+ if (o) {
1957
+ var s = "rgb(" + v(parseInt("" + o[1], 10), parseInt("" + o[2], 10) / 100, parseInt("" + o[3], 10) / 100) + ")", c = Pe.exec(s);
1958
+ if (!c) throw new _(4, t, s);
1959
+ return {
1960
+ red: parseInt("" + c[1], 10),
1961
+ green: parseInt("" + c[2], 10),
1962
+ blue: parseInt("" + c[3], 10)
1963
+ };
1964
+ }
1965
+ var l = Le.exec(t.substring(0, 50));
1966
+ if (l) {
1967
+ var u = "rgb(" + v(parseInt("" + l[1], 10), parseInt("" + l[2], 10) / 100, parseInt("" + l[3], 10) / 100) + ")", d = Pe.exec(u);
1968
+ if (!d) throw new _(4, t, u);
1969
+ return {
1970
+ red: parseInt("" + d[1], 10),
1971
+ green: parseInt("" + d[2], 10),
1972
+ blue: parseInt("" + d[3], 10),
1973
+ alpha: parseFloat("" + l[4]) > 1 ? parseFloat("" + l[4]) / 100 : parseFloat("" + l[4])
1974
+ };
1975
+ }
1976
+ throw new _(5);
1857
1977
  }
1858
- //#endregion
1859
- //#region ../../node_modules/color-alpha/index.js
1860
- function we(e, t) {
1861
- var { space: n, values: r, alpha: i } = xe(e);
1862
- return n[0] === "h" ? `${n}a(${r[0]}, ${r[1]}%, ${r[2]}%, ${t})` : `${n}a(${r}, ${t})`;
1978
+ function Re(e) {
1979
+ var t = e.red / 255, n = e.green / 255, r = e.blue / 255, i = Math.max(t, n, r), a = Math.min(t, n, r), o = (i + a) / 2;
1980
+ if (i === a) return e.alpha === void 0 ? {
1981
+ hue: 0,
1982
+ saturation: 0,
1983
+ lightness: o
1984
+ } : {
1985
+ hue: 0,
1986
+ saturation: 0,
1987
+ lightness: o,
1988
+ alpha: e.alpha
1989
+ };
1990
+ var s, c = i - a, l = o > .5 ? c / (2 - i - a) : c / (i + a);
1991
+ switch (i) {
1992
+ case t:
1993
+ s = (n - r) / c + (n < r ? 6 : 0);
1994
+ break;
1995
+ case n:
1996
+ s = (r - t) / c + 2;
1997
+ break;
1998
+ default:
1999
+ s = (t - n) / c + 4;
2000
+ break;
2001
+ }
2002
+ return s *= 60, e.alpha === void 0 ? {
2003
+ hue: s,
2004
+ saturation: l,
2005
+ lightness: o
2006
+ } : {
2007
+ hue: s,
2008
+ saturation: l,
2009
+ lightness: o,
2010
+ alpha: e.alpha
2011
+ };
1863
2012
  }
1864
- //#endregion
1865
- //#region ../../node_modules/@babel/runtime/helpers/esm/extends.js
1866
- function v() {
1867
- return v = Object.assign ? Object.assign.bind() : function(e) {
1868
- for (var t = 1; t < arguments.length; t++) {
1869
- var n = arguments[t];
1870
- for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
1871
- }
1872
- return e;
1873
- }, v.apply(null, arguments);
2013
+ function b(e) {
2014
+ return Re(y(e));
2015
+ }
2016
+ var ze = function(e) {
2017
+ return e.length === 7 && e[1] === e[2] && e[3] === e[4] && e[5] === e[6] ? "#" + e[1] + e[3] + e[5] : e;
2018
+ };
2019
+ function x(e) {
2020
+ var t = e.toString(16);
2021
+ return t.length === 1 ? "0" + t : t;
2022
+ }
2023
+ function Be(e) {
2024
+ return x(Math.round(e * 255));
2025
+ }
2026
+ function Ve(e, t, n) {
2027
+ return ze("#" + Be(e) + Be(t) + Be(n));
2028
+ }
2029
+ function S(e, t, n) {
2030
+ return v(e, t, n, Ve);
2031
+ }
2032
+ function He(e, t, n) {
2033
+ if (typeof e == "number" && typeof t == "number" && typeof n == "number") return S(e, t, n);
2034
+ if (typeof e == "object" && t === void 0 && n === void 0) return S(e.hue, e.saturation, e.lightness);
2035
+ throw new _(1);
2036
+ }
2037
+ function Ue(e, t, n, r) {
2038
+ if (typeof e == "number" && typeof t == "number" && typeof n == "number" && typeof r == "number") return r >= 1 ? S(e, t, n) : "rgba(" + v(e, t, n) + "," + r + ")";
2039
+ if (typeof e == "object" && t === void 0 && n === void 0 && r === void 0) return e.alpha >= 1 ? S(e.hue, e.saturation, e.lightness) : "rgba(" + v(e.hue, e.saturation, e.lightness) + "," + e.alpha + ")";
2040
+ throw new _(2);
2041
+ }
2042
+ function We(e, t, n) {
2043
+ if (typeof e == "number" && typeof t == "number" && typeof n == "number") return ze("#" + x(e) + x(t) + x(n));
2044
+ if (typeof e == "object" && t === void 0 && n === void 0) return ze("#" + x(e.red) + x(e.green) + x(e.blue));
2045
+ throw new _(6);
2046
+ }
2047
+ function C(e, t, n, r) {
2048
+ if (typeof e == "string" && typeof t == "number") {
2049
+ var i = y(e);
2050
+ return "rgba(" + i.red + "," + i.green + "," + i.blue + "," + t + ")";
2051
+ } else if (typeof e == "number" && typeof t == "number" && typeof n == "number" && typeof r == "number") return r >= 1 ? We(e, t, n) : "rgba(" + e + "," + t + "," + n + "," + r + ")";
2052
+ else if (typeof e == "object" && t === void 0 && n === void 0 && r === void 0) return e.alpha >= 1 ? We(e.red, e.green, e.blue) : "rgba(" + e.red + "," + e.green + "," + e.blue + "," + e.alpha + ")";
2053
+ throw new _(7);
2054
+ }
2055
+ var Ge = function(e) {
2056
+ return typeof e.red == "number" && typeof e.green == "number" && typeof e.blue == "number" && (typeof e.alpha != "number" || e.alpha === void 0);
2057
+ }, Ke = function(e) {
2058
+ return typeof e.red == "number" && typeof e.green == "number" && typeof e.blue == "number" && typeof e.alpha == "number";
2059
+ }, qe = function(e) {
2060
+ return typeof e.hue == "number" && typeof e.saturation == "number" && typeof e.lightness == "number" && (typeof e.alpha != "number" || e.alpha === void 0);
2061
+ }, Je = function(e) {
2062
+ return typeof e.hue == "number" && typeof e.saturation == "number" && typeof e.lightness == "number" && typeof e.alpha == "number";
2063
+ };
2064
+ function w(e) {
2065
+ if (typeof e != "object") throw new _(8);
2066
+ if (Ke(e)) return C(e);
2067
+ if (Ge(e)) return We(e);
2068
+ if (Je(e)) return Ue(e);
2069
+ if (qe(e)) return He(e);
2070
+ throw new _(8);
2071
+ }
2072
+ function Ye(e, t, n) {
2073
+ return function() {
2074
+ var r = n.concat(Array.prototype.slice.call(arguments));
2075
+ return r.length >= t ? e.apply(this, r) : Ye(e, t, r);
2076
+ };
2077
+ }
2078
+ function T(e) {
2079
+ return Ye(e, e.length, []);
2080
+ }
2081
+ function Xe(e, t) {
2082
+ if (t === "transparent") return t;
2083
+ var n = b(t);
2084
+ return w(h({}, n, { hue: n.hue + parseFloat(e) }));
2085
+ }
2086
+ T(Xe);
2087
+ function E(e, t, n) {
2088
+ return Math.max(e, Math.min(t, n));
2089
+ }
2090
+ function Ze(e, t) {
2091
+ if (t === "transparent") return t;
2092
+ var n = b(t);
2093
+ return w(h({}, n, { lightness: E(0, 1, n.lightness - parseFloat(e)) }));
2094
+ }
2095
+ var Qe = T(Ze);
2096
+ function $e(e, t) {
2097
+ if (t === "transparent") return t;
2098
+ var n = b(t);
2099
+ return w(h({}, n, { saturation: E(0, 1, n.saturation - parseFloat(e)) }));
2100
+ }
2101
+ T($e);
2102
+ function et(e) {
2103
+ if (e === "transparent") return 0;
2104
+ var t = y(e), n = Object.keys(t).map(function(e) {
2105
+ var n = t[e] / 255;
2106
+ return n <= .03928 ? n / 12.92 : ((n + .055) / 1.055) ** 2.4;
2107
+ }), r = n[0], i = n[1], a = n[2];
2108
+ return parseFloat((.2126 * r + .7152 * i + .0722 * a).toFixed(3));
2109
+ }
2110
+ function tt(e, t) {
2111
+ if (t === "transparent") return t;
2112
+ var n = b(t);
2113
+ return w(h({}, n, { lightness: E(0, 1, n.lightness + parseFloat(e)) }));
2114
+ }
2115
+ var nt = T(tt);
2116
+ function rt(e, t, n) {
2117
+ if (t === "transparent") return n;
2118
+ if (n === "transparent") return t;
2119
+ if (e === 0) return n;
2120
+ var r = y(t), i = h({}, r, { alpha: typeof r.alpha == "number" ? r.alpha : 1 }), a = y(n), o = h({}, a, { alpha: typeof a.alpha == "number" ? a.alpha : 1 }), s = i.alpha - o.alpha, c = parseFloat(e) * 2 - 1, l = ((c * s === -1 ? c : c + s) / (1 + c * s) + 1) / 2, u = 1 - l;
2121
+ return C({
2122
+ red: Math.floor(i.red * l + o.red * u),
2123
+ green: Math.floor(i.green * l + o.green * u),
2124
+ blue: Math.floor(i.blue * l + o.blue * u),
2125
+ alpha: i.alpha * parseFloat(e) + o.alpha * (1 - parseFloat(e))
2126
+ });
2127
+ }
2128
+ var it = T(rt);
2129
+ function at(e, t) {
2130
+ if (t === "transparent") return t;
2131
+ var n = y(t);
2132
+ return C(h({}, n, { alpha: E(0, 1, ((typeof n.alpha == "number" ? n.alpha : 1) * 100 + parseFloat(e) * 100) / 100) }));
1874
2133
  }
1875
- //#endregion
1876
- //#region ../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
1877
- function Te(e) {
1878
- if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
1879
- return e;
2134
+ T(at);
2135
+ function ot(e, t) {
2136
+ if (t === "transparent") return t;
2137
+ var n = b(t);
2138
+ return w(h({}, n, { saturation: E(0, 1, n.saturation + parseFloat(e)) }));
1880
2139
  }
1881
- //#endregion
1882
- //#region ../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
1883
- function y(e, t) {
1884
- return y = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
1885
- return e.__proto__ = t, e;
1886
- }, y(e, t);
2140
+ T(ot);
2141
+ function st(e, t) {
2142
+ return t === "transparent" ? t : w(h({}, b(t), { hue: parseFloat(e) }));
1887
2143
  }
1888
- //#endregion
1889
- //#region ../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
1890
- function Ee(e, t) {
1891
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, y(e, t);
2144
+ T(st);
2145
+ function ct(e, t) {
2146
+ return t === "transparent" ? t : w(h({}, b(t), { lightness: parseFloat(e) }));
1892
2147
  }
1893
- //#endregion
1894
- //#region ../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
1895
- function De(e) {
1896
- return De = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
1897
- return e.__proto__ || Object.getPrototypeOf(e);
1898
- }, De(e);
2148
+ T(ct);
2149
+ function lt(e, t) {
2150
+ return t === "transparent" ? t : w(h({}, b(t), { saturation: parseFloat(e) }));
1899
2151
  }
1900
- //#endregion
1901
- //#region ../../node_modules/@babel/runtime/helpers/esm/isNativeFunction.js
1902
- function Oe(e) {
1903
- try {
1904
- return Function.toString.call(e).indexOf("[native code]") !== -1;
1905
- } catch {
1906
- return typeof e == "function";
1907
- }
2152
+ T(lt);
2153
+ function ut(e, t) {
2154
+ return t === "transparent" ? t : it(parseFloat(e), "rgb(0, 0, 0)", t);
1908
2155
  }
1909
- //#endregion
1910
- //#region ../../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
1911
- function ke() {
1912
- try {
1913
- var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1914
- } catch {}
1915
- return (ke = function() {
1916
- return !!e;
1917
- })();
2156
+ T(ut);
2157
+ function dt(e, t) {
2158
+ return t === "transparent" ? t : it(parseFloat(e), "rgb(255, 255, 255)", t);
1918
2159
  }
1919
- //#endregion
1920
- //#region ../../node_modules/@babel/runtime/helpers/esm/construct.js
1921
- function Ae(e, t, n) {
1922
- if (ke()) return Reflect.construct.apply(null, arguments);
1923
- var r = [null];
1924
- r.push.apply(r, t);
1925
- var i = new (e.bind.apply(e, r))();
1926
- return n && y(i, n.prototype), i;
2160
+ T(dt);
2161
+ function ft(e, t) {
2162
+ if (t === "transparent") return t;
2163
+ var n = y(t);
2164
+ return C(h({}, n, { alpha: E(0, 1, ((typeof n.alpha == "number" ? n.alpha : 1) * 100 - parseFloat(e) * 100).toFixed(2) / 100) }));
1927
2165
  }
2166
+ T(ft);
1928
2167
  //#endregion
1929
- //#region ../../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js
1930
- function je(e) {
1931
- var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
1932
- return je = function(e) {
1933
- if (e === null || !Oe(e)) return e;
1934
- if (typeof e != "function") throw TypeError("Super expression must either be null or a function");
1935
- if (t !== void 0) {
1936
- if (t.has(e)) return t.get(e);
1937
- t.set(e, n);
2168
+ //#region src/utils.ts
2169
+ var D = (e, t) => ge(e, t);
2170
+ function pt(e) {
2171
+ let t = et(e), n = Math.max(Math.abs(t - .5) * 1.2, .3);
2172
+ return t < .5 ? nt(n, e) : Qe(n, e);
2173
+ }
2174
+ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark), e), {
2175
+ light: [],
2176
+ dark: []
2177
+ }), ht = (e) => e.flatMap((e) => Object.values(e)), gt = (e) => e.reduce((e, t) => {
2178
+ let n = e[t.name] || {};
2179
+ return n[t.mode] = t, e[t.name] = n, e;
2180
+ }, {}), _t = (e) => e.reduce((e, t) => (e[t.mode].push(t), e), {
2181
+ light: [],
2182
+ dark: []
2183
+ }), vt = (e) => ({
2184
+ groupedByName: gt(e),
2185
+ groupedByMode: _t(e)
2186
+ }), yt = (e, t, n) => {
2187
+ let r = e.groupedByName[t];
2188
+ if (r) return n ? r[n] || e.groupedByMode[n]?.[0] : r.light || r.dark;
2189
+ if (n) return e.groupedByMode[n]?.[0];
2190
+ }, bt = {
2191
+ width: "100%",
2192
+ height: "fit-content",
2193
+ variants: {
2194
+ primary: {
2195
+ bgColor: m.semantic.color.background.secondary0,
2196
+ borderColor: m.semantic.color.border.secondary200
2197
+ },
2198
+ secondary: {
2199
+ bgColor: m.semantic.color.background.neutral100,
2200
+ borderColor: m.semantic.color.border.secondary300
2201
+ },
2202
+ informative: {
2203
+ bgColor: m.semantic.color.background.informative0,
2204
+ borderColor: m.semantic.color.border.informative100
2205
+ },
2206
+ success: {
2207
+ bgColor: m.semantic.color.background.success0,
2208
+ borderColor: m.semantic.color.border.success100
2209
+ },
2210
+ notice: {
2211
+ bgColor: m.semantic.color.background.notice0,
2212
+ borderColor: m.semantic.color.border.notice100
2213
+ },
2214
+ attention: {
2215
+ bgColor: m.semantic.color.background.attention0,
2216
+ borderColor: m.semantic.color.border.attention100
2217
+ },
2218
+ danger: {
2219
+ bgColor: m.semantic.color.background.danger0,
2220
+ borderColor: m.semantic.color.border.danger100
2221
+ },
2222
+ upsell: {
2223
+ bgColor: m.semantic.color.background.discovery0,
2224
+ borderColor: m.semantic.color.border.discovery100
1938
2225
  }
1939
- function n() {
1940
- return Ae(e, arguments, De(this).constructor);
2226
+ },
2227
+ hover: {
2228
+ bgColor: m.semantic.color.background.neutral100,
2229
+ borderColor: m.semantic.color.border.secondary400,
2230
+ sunsetColor: D(m.semantic.color.background.primary400, .14)
2231
+ }
2232
+ }, xt = {
2233
+ categorical: [
2234
+ m.semantic.color.icon.informative400,
2235
+ m.semantic.color.icon.discovery400,
2236
+ m.semantic.color.icon.success400,
2237
+ m.semantic.color.icon.attention400,
2238
+ m.semantic.color.icon.primary400,
2239
+ m.semantic.color.icon.secondary400,
2240
+ m.semantic.color.icon.informative700,
2241
+ m.semantic.color.icon.discovery700
2242
+ ],
2243
+ grid: m.semantic.color.border.secondary200,
2244
+ gridDashArray: "3",
2245
+ axisLabel: m.semantic.color.text.secondary500,
2246
+ threshold: {
2247
+ warning: m.semantic.color.icon.attention400,
2248
+ critical: m.semantic.color.icon.danger500
2249
+ },
2250
+ axis: {
2251
+ fontFamily: m.core.font.fontFamily.regular,
2252
+ fontSize: {
2253
+ S: m.core.font.fontSize.s10,
2254
+ M: m.core.font.fontSize.s12
1941
2255
  }
1942
- return n.prototype = Object.create(e.prototype, { constructor: {
1943
- value: n,
1944
- enumerable: !1,
1945
- writable: !0,
1946
- configurable: !0
1947
- } }), y(n, e);
1948
- }, je(e);
1949
- }
1950
- //#endregion
1951
- //#region ../../node_modules/polished/dist/polished.esm.js
1952
- var Me = {
1953
- 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",
1954
- 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",
1955
- 3: "Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n",
1956
- 4: "Couldn't generate valid rgb string from %s, it returned %s.\n\n",
1957
- 5: "Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\n\n",
1958
- 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",
1959
- 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",
1960
- 8: "Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\n\n",
1961
- 9: "Please provide a number of steps to the modularScale helper.\n\n",
1962
- 10: "Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",
1963
- 11: "Invalid value passed as base to modularScale, expected number or em string but got \"%s\"\n\n",
1964
- 12: "Expected a string ending in \"px\" or a number passed as the first argument to %s(), got \"%s\" instead.\n\n",
1965
- 13: "Expected a string ending in \"px\" or a number passed as the second argument to %s(), got \"%s\" instead.\n\n",
1966
- 14: "Passed invalid pixel value (\"%s\") to %s(), please pass a value like \"12px\" or 12.\n\n",
1967
- 15: "Passed invalid base value (\"%s\") to %s(), please pass a value like \"12px\" or 12.\n\n",
1968
- 16: "You must provide a template to this method.\n\n",
1969
- 17: "You passed an unsupported selector state to this method.\n\n",
1970
- 18: "minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",
1971
- 19: "fromSize and toSize must be provided as stringified numbers with the same units.\n\n",
1972
- 20: "expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",
1973
- 21: "expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",
1974
- 22: "expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",
1975
- 23: "fontFace expects a name of a font-family.\n\n",
1976
- 24: "fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",
1977
- 25: "fontFace expects localFonts to be an array.\n\n",
1978
- 26: "fontFace expects fileFormats to be an array.\n\n",
1979
- 27: "radialGradient requries at least 2 color-stops to properly render.\n\n",
1980
- 28: "Please supply a filename to retinaImage() as the first argument.\n\n",
1981
- 29: "Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",
1982
- 30: "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",
1983
- 31: "The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\n\n",
1984
- 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",
1985
- 33: "The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\n\n",
1986
- 34: "borderRadius expects a radius value as a string or number as the second argument.\n\n",
1987
- 35: "borderRadius expects one of \"top\", \"bottom\", \"left\" or \"right\" as the first argument.\n\n",
1988
- 36: "Property must be a string value.\n\n",
1989
- 37: "Syntax Error at %s.\n\n",
1990
- 38: "Formula contains a function that needs parentheses at %s.\n\n",
1991
- 39: "Formula is missing closing parenthesis at %s.\n\n",
1992
- 40: "Formula has too many closing parentheses at %s.\n\n",
1993
- 41: "All values in a formula must have the same unit or be unitless.\n\n",
1994
- 42: "Please provide a number of steps to the modularScale helper.\n\n",
1995
- 43: "Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",
1996
- 44: "Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\n\n",
1997
- 45: "Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\n\n",
1998
- 46: "Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\n\n",
1999
- 47: "minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",
2000
- 48: "fromSize and toSize must be provided as stringified numbers with the same units.\n\n",
2001
- 49: "Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",
2002
- 50: "Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\n\n",
2003
- 51: "Expects the first argument object to have the properties prop, fromSize, and toSize.\n\n",
2004
- 52: "fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",
2005
- 53: "fontFace expects localFonts to be an array.\n\n",
2006
- 54: "fontFace expects fileFormats to be an array.\n\n",
2007
- 55: "fontFace expects a name of a font-family.\n\n",
2008
- 56: "linearGradient requries at least 2 color-stops to properly render.\n\n",
2009
- 57: "radialGradient requries at least 2 color-stops to properly render.\n\n",
2010
- 58: "Please supply a filename to retinaImage() as the first argument.\n\n",
2011
- 59: "Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",
2012
- 60: "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",
2013
- 61: "Property must be a string value.\n\n",
2014
- 62: "borderRadius expects a radius value as a string or number as the second argument.\n\n",
2015
- 63: "borderRadius expects one of \"top\", \"bottom\", \"left\" or \"right\" as the first argument.\n\n",
2016
- 64: "The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\n\n",
2017
- 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",
2018
- 66: "The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\n\n",
2019
- 67: "You must provide a template to this method.\n\n",
2020
- 68: "You passed an unsupported selector state to this method.\n\n",
2021
- 69: "Expected a string ending in \"px\" or a number passed as the first argument to %s(), got %s instead.\n\n",
2022
- 70: "Expected a string ending in \"px\" or a number passed as the second argument to %s(), got %s instead.\n\n",
2023
- 71: "Passed invalid pixel value %s to %s(), please pass a value like \"12px\" or 12.\n\n",
2024
- 72: "Passed invalid base value %s to %s(), please pass a value like \"12px\" or 12.\n\n",
2025
- 73: "Please provide a valid CSS variable.\n\n",
2026
- 74: "CSS variable not found and no default was provided.\n\n",
2027
- 75: "important requires a valid style object, got a %s instead.\n\n",
2028
- 76: "fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n\n",
2029
- 77: "remToPx expects a value in \"rem\" but you provided it in \"%s\".\n\n",
2030
- 78: "base must be set in \"px\" or \"%\" but you set it in \"%s\".\n"
2031
- };
2032
- function Ne() {
2033
- var e = [...arguments], t = e[0], n = [], r;
2034
- for (r = 1; r < e.length; r += 1) n.push(e[r]);
2035
- return n.forEach(function(e) {
2036
- t = t.replace(/%[a-z]/, e);
2037
- }), t;
2038
- }
2039
- var b = /*#__PURE__*/ function(e) {
2040
- Ee(t, e);
2041
- function t(t) {
2042
- var n;
2043
- if (process.env.NODE_ENV === "production") n = e.call(this, "An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#" + t + " for more information.") || this;
2044
- else {
2045
- var r = [...arguments].slice(1);
2046
- n = e.call(this, Ne.apply(void 0, [Me[t]].concat(r))) || this;
2256
+ },
2257
+ series: {
2258
+ strokeWidth: {
2259
+ S: 2,
2260
+ M: 2
2261
+ },
2262
+ areaOpacity: {
2263
+ from: .3,
2264
+ to: 0
2265
+ }
2266
+ },
2267
+ cursor: {
2268
+ color: m.semantic.color.border.secondary300,
2269
+ width: 1
2270
+ },
2271
+ activeDot: {
2272
+ size: 8,
2273
+ ringColor: m.semantic.color.background.secondary0,
2274
+ ringWidth: 2
2275
+ },
2276
+ referenceLine: {
2277
+ color: m.semantic.color.border.secondary500,
2278
+ dashArray: "4 4"
2279
+ },
2280
+ tooltip: {
2281
+ bgColor: m.semantic.color.background.secondary0,
2282
+ textColor: m.semantic.color.text.secondary950,
2283
+ labelColor: m.semantic.color.text.secondary500,
2284
+ borderColor: m.semantic.color.border.secondary200,
2285
+ borderRadius: "0.4rem",
2286
+ shadow: m.core.shadow.shadow200,
2287
+ padding: "0.8rem 1.2rem",
2288
+ fontSize: m.core.font.fontSize.s12,
2289
+ labelFontSize: m.core.font.fontSize.s12,
2290
+ valueFontFamily: m.core.font.fontFamily.regular,
2291
+ markerSize: "0.8rem"
2292
+ },
2293
+ legend: {
2294
+ textColor: m.semantic.color.text.secondary600,
2295
+ fontFamily: {
2296
+ S: m.core.font.fontFamily.regular,
2297
+ M: m.core.font.fontFamily.regular
2298
+ },
2299
+ fontSize: {
2300
+ S: m.core.font.fontSize.s12,
2301
+ M: m.core.font.fontSize.s12
2302
+ },
2303
+ gap: {
2304
+ S: "1.2rem",
2305
+ M: "1.6rem"
2306
+ },
2307
+ dotSize: "0.8rem",
2308
+ lineWidth: "1.2rem",
2309
+ lineHeight: "0.2rem"
2310
+ },
2311
+ sparkline: {
2312
+ strokeWidth: 1.5,
2313
+ areaOpacity: {
2314
+ from: .4,
2315
+ to: .04
2316
+ }
2317
+ },
2318
+ panel: {
2319
+ padding: {
2320
+ S: m.core.space.space200,
2321
+ M: m.core.space.space200
2322
+ },
2323
+ gap: {
2324
+ S: m.core.space.space100,
2325
+ M: m.core.space.space100
2047
2326
  }
2048
- return Te(n);
2049
2327
  }
2050
- return t;
2051
- }(/*#__PURE__*/ je(Error));
2052
- function Pe(e) {
2053
- return Math.round(e * 255);
2054
- }
2055
- function Fe(e, t, n) {
2056
- return Pe(e) + "," + Pe(t) + "," + Pe(n);
2057
- }
2058
- function x(e, t, n, r) {
2059
- if (r === void 0 && (r = Fe), t === 0) return r(n, n, n);
2060
- var i = (e % 360 + 360) % 360 / 60, a = (1 - Math.abs(2 * n - 1)) * t, o = a * (1 - Math.abs(i % 2 - 1)), s = 0, c = 0, l = 0;
2061
- i >= 0 && i < 1 ? (s = a, c = o) : i >= 1 && i < 2 ? (s = o, c = a) : i >= 2 && i < 3 ? (c = a, l = o) : i >= 3 && i < 4 ? (c = o, l = a) : i >= 4 && i < 5 ? (s = o, l = a) : i >= 5 && i < 6 && (s = a, l = o);
2062
- var u = n - a / 2, d = s + u, f = c + u, p = l + u;
2063
- return r(d, f, p);
2064
- }
2065
- var Ie = {
2066
- aliceblue: "f0f8ff",
2067
- antiquewhite: "faebd7",
2068
- aqua: "00ffff",
2069
- aquamarine: "7fffd4",
2070
- azure: "f0ffff",
2071
- beige: "f5f5dc",
2072
- bisque: "ffe4c4",
2073
- black: "000",
2074
- blanchedalmond: "ffebcd",
2075
- blue: "0000ff",
2076
- blueviolet: "8a2be2",
2077
- brown: "a52a2a",
2078
- burlywood: "deb887",
2079
- cadetblue: "5f9ea0",
2080
- chartreuse: "7fff00",
2081
- chocolate: "d2691e",
2082
- coral: "ff7f50",
2083
- cornflowerblue: "6495ed",
2084
- cornsilk: "fff8dc",
2085
- crimson: "dc143c",
2086
- cyan: "00ffff",
2087
- darkblue: "00008b",
2088
- darkcyan: "008b8b",
2089
- darkgoldenrod: "b8860b",
2090
- darkgray: "a9a9a9",
2091
- darkgreen: "006400",
2092
- darkgrey: "a9a9a9",
2093
- darkkhaki: "bdb76b",
2094
- darkmagenta: "8b008b",
2095
- darkolivegreen: "556b2f",
2096
- darkorange: "ff8c00",
2097
- darkorchid: "9932cc",
2098
- darkred: "8b0000",
2099
- darksalmon: "e9967a",
2100
- darkseagreen: "8fbc8f",
2101
- darkslateblue: "483d8b",
2102
- darkslategray: "2f4f4f",
2103
- darkslategrey: "2f4f4f",
2104
- darkturquoise: "00ced1",
2105
- darkviolet: "9400d3",
2106
- deeppink: "ff1493",
2107
- deepskyblue: "00bfff",
2108
- dimgray: "696969",
2109
- dimgrey: "696969",
2110
- dodgerblue: "1e90ff",
2111
- firebrick: "b22222",
2112
- floralwhite: "fffaf0",
2113
- forestgreen: "228b22",
2114
- fuchsia: "ff00ff",
2115
- gainsboro: "dcdcdc",
2116
- ghostwhite: "f8f8ff",
2117
- gold: "ffd700",
2118
- goldenrod: "daa520",
2119
- gray: "808080",
2120
- green: "008000",
2121
- greenyellow: "adff2f",
2122
- grey: "808080",
2123
- honeydew: "f0fff0",
2124
- hotpink: "ff69b4",
2125
- indianred: "cd5c5c",
2126
- indigo: "4b0082",
2127
- ivory: "fffff0",
2128
- khaki: "f0e68c",
2129
- lavender: "e6e6fa",
2130
- lavenderblush: "fff0f5",
2131
- lawngreen: "7cfc00",
2132
- lemonchiffon: "fffacd",
2133
- lightblue: "add8e6",
2134
- lightcoral: "f08080",
2135
- lightcyan: "e0ffff",
2136
- lightgoldenrodyellow: "fafad2",
2137
- lightgray: "d3d3d3",
2138
- lightgreen: "90ee90",
2139
- lightgrey: "d3d3d3",
2140
- lightpink: "ffb6c1",
2141
- lightsalmon: "ffa07a",
2142
- lightseagreen: "20b2aa",
2143
- lightskyblue: "87cefa",
2144
- lightslategray: "789",
2145
- lightslategrey: "789",
2146
- lightsteelblue: "b0c4de",
2147
- lightyellow: "ffffe0",
2148
- lime: "0f0",
2149
- limegreen: "32cd32",
2150
- linen: "faf0e6",
2151
- magenta: "f0f",
2152
- maroon: "800000",
2153
- mediumaquamarine: "66cdaa",
2154
- mediumblue: "0000cd",
2155
- mediumorchid: "ba55d3",
2156
- mediumpurple: "9370db",
2157
- mediumseagreen: "3cb371",
2158
- mediumslateblue: "7b68ee",
2159
- mediumspringgreen: "00fa9a",
2160
- mediumturquoise: "48d1cc",
2161
- mediumvioletred: "c71585",
2162
- midnightblue: "191970",
2163
- mintcream: "f5fffa",
2164
- mistyrose: "ffe4e1",
2165
- moccasin: "ffe4b5",
2166
- navajowhite: "ffdead",
2167
- navy: "000080",
2168
- oldlace: "fdf5e6",
2169
- olive: "808000",
2170
- olivedrab: "6b8e23",
2171
- orange: "ffa500",
2172
- orangered: "ff4500",
2173
- orchid: "da70d6",
2174
- palegoldenrod: "eee8aa",
2175
- palegreen: "98fb98",
2176
- paleturquoise: "afeeee",
2177
- palevioletred: "db7093",
2178
- papayawhip: "ffefd5",
2179
- peachpuff: "ffdab9",
2180
- peru: "cd853f",
2181
- pink: "ffc0cb",
2182
- plum: "dda0dd",
2183
- powderblue: "b0e0e6",
2184
- purple: "800080",
2185
- rebeccapurple: "639",
2186
- red: "f00",
2187
- rosybrown: "bc8f8f",
2188
- royalblue: "4169e1",
2189
- saddlebrown: "8b4513",
2190
- salmon: "fa8072",
2191
- sandybrown: "f4a460",
2192
- seagreen: "2e8b57",
2193
- seashell: "fff5ee",
2194
- sienna: "a0522d",
2195
- silver: "c0c0c0",
2196
- skyblue: "87ceeb",
2197
- slateblue: "6a5acd",
2198
- slategray: "708090",
2199
- slategrey: "708090",
2200
- snow: "fffafa",
2201
- springgreen: "00ff7f",
2202
- steelblue: "4682b4",
2203
- tan: "d2b48c",
2204
- teal: "008080",
2205
- thistle: "d8bfd8",
2206
- tomato: "ff6347",
2207
- turquoise: "40e0d0",
2208
- violet: "ee82ee",
2209
- wheat: "f5deb3",
2210
- white: "fff",
2211
- whitesmoke: "f5f5f5",
2212
- yellow: "ff0",
2213
- yellowgreen: "9acd32"
2214
- };
2215
- function Le(e) {
2216
- if (typeof e != "string") return e;
2217
- var t = e.toLowerCase();
2218
- return Ie[t] ? "#" + Ie[t] : e;
2219
- }
2220
- var Re = /^#[a-fA-F0-9]{6}$/, ze = /^#[a-fA-F0-9]{8}$/, Be = /^#[a-fA-F0-9]{3}$/, Ve = /^#[a-fA-F0-9]{4}$/, He = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i, Ue = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i, We = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i, Ge = /^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;
2221
- function S(e) {
2222
- if (typeof e != "string") throw new b(3);
2223
- var t = Le(e);
2224
- if (t.match(Re)) return {
2225
- red: parseInt("" + t[1] + t[2], 16),
2226
- green: parseInt("" + t[3] + t[4], 16),
2227
- blue: parseInt("" + t[5] + t[6], 16)
2228
- };
2229
- if (t.match(ze)) {
2230
- var n = parseFloat((parseInt("" + t[7] + t[8], 16) / 255).toFixed(2));
2231
- return {
2232
- red: parseInt("" + t[1] + t[2], 16),
2233
- green: parseInt("" + t[3] + t[4], 16),
2234
- blue: parseInt("" + t[5] + t[6], 16),
2235
- alpha: n
2236
- };
2328
+ }, St = {
2329
+ width: "1.8rem",
2330
+ height: "1.8rem",
2331
+ padding: "0",
2332
+ borderRadius: "0.4rem",
2333
+ borderWidth: "1px",
2334
+ label: {
2335
+ padding: "0 0.8rem",
2336
+ gap: "0.8rem"
2337
+ },
2338
+ variants: {
2339
+ primary: {
2340
+ on: {
2341
+ normal: {
2342
+ bgColor: m.semantic.color.background.primary400,
2343
+ iconColor: m.semantic.color.icon.secondary0,
2344
+ textColor: m.semantic.color.text.secondary950
2345
+ },
2346
+ disabled: {
2347
+ bgColor: m.semantic.color.background.secondary300,
2348
+ iconColor: m.semantic.color.icon.secondary0,
2349
+ textColor: m.semantic.color.text.secondary300
2350
+ }
2351
+ },
2352
+ off: {
2353
+ normal: {
2354
+ bgColor: m.semantic.color.background.secondary0,
2355
+ borderColor: m.semantic.color.border.secondary600,
2356
+ textColor: m.semantic.color.text.secondary950
2357
+ },
2358
+ disabled: {
2359
+ bgColor: m.semantic.color.background.secondary0,
2360
+ borderColor: m.semantic.color.border.secondary300,
2361
+ textColor: m.semantic.color.text.secondary300
2362
+ }
2363
+ }
2364
+ },
2365
+ danger: {
2366
+ on: {
2367
+ normal: {
2368
+ bgColor: m.semantic.color.background.danger500,
2369
+ iconColor: m.semantic.color.icon.secondary0,
2370
+ textColor: m.semantic.color.text.danger500
2371
+ },
2372
+ disabled: {
2373
+ bgColor: m.semantic.color.background.danger100,
2374
+ iconColor: m.semantic.color.icon.secondary0,
2375
+ textColor: m.semantic.color.text.danger100
2376
+ }
2377
+ },
2378
+ off: {
2379
+ normal: {
2380
+ bgColor: m.semantic.color.background.secondary0,
2381
+ borderColor: m.semantic.color.border.danger500,
2382
+ textColor: m.semantic.color.text.danger500
2383
+ },
2384
+ disabled: {
2385
+ bgColor: m.semantic.color.background.secondary0,
2386
+ borderColor: m.semantic.color.border.danger100,
2387
+ textColor: m.semantic.color.text.danger100
2388
+ }
2389
+ }
2390
+ }
2237
2391
  }
2238
- if (t.match(Be)) return {
2239
- red: parseInt("" + t[1] + t[1], 16),
2240
- green: parseInt("" + t[2] + t[2], 16),
2241
- blue: parseInt("" + t[3] + t[3], 16)
2242
- };
2243
- if (t.match(Ve)) {
2244
- var r = parseFloat((parseInt("" + t[4] + t[4], 16) / 255).toFixed(2));
2245
- return {
2246
- red: parseInt("" + t[1] + t[1], 16),
2247
- green: parseInt("" + t[2] + t[2], 16),
2248
- blue: parseInt("" + t[3] + t[3], 16),
2249
- alpha: r
2250
- };
2392
+ }, Ct = {
2393
+ sizes: {
2394
+ M: {
2395
+ height: "2.8rem",
2396
+ padding: "0.4rem 0.6rem",
2397
+ borderRadius: "4px",
2398
+ gap: "0.5rem"
2399
+ },
2400
+ S: {
2401
+ height: "2.4rem",
2402
+ padding: "0.4rem 0.6rem",
2403
+ borderRadius: "4px",
2404
+ gap: "0.5rem"
2405
+ }
2406
+ },
2407
+ variant: {
2408
+ regular: {
2409
+ normal: {
2410
+ bgColor: m.semantic.color.background.secondary200,
2411
+ textColor: m.semantic.color.text.secondary950
2412
+ },
2413
+ disabled: {
2414
+ bgColor: m.semantic.color.background.neutral200,
2415
+ textColor: m.semantic.color.text.neutral400
2416
+ }
2417
+ },
2418
+ flat: {
2419
+ normal: {
2420
+ bgColor: m.semantic.color.background.secondary200,
2421
+ textColor: m.semantic.color.text.secondary950
2422
+ },
2423
+ disabled: {
2424
+ bgColor: m.semantic.color.background.neutral200,
2425
+ textColor: m.semantic.color.text.neutral400
2426
+ }
2427
+ }
2428
+ },
2429
+ closeButton: {
2430
+ variant: {
2431
+ regular: { color: m.semantic.color.icon.secondary700 },
2432
+ flat: { color: m.semantic.color.icon.secondary700 }
2433
+ },
2434
+ size: {
2435
+ M: {
2436
+ size: "2rem",
2437
+ borderRadius: "100%"
2438
+ },
2439
+ S: {
2440
+ size: "1.6rem",
2441
+ borderRadius: "100%"
2442
+ }
2443
+ }
2251
2444
  }
2252
- var i = He.exec(t);
2253
- if (i) return {
2254
- red: parseInt("" + i[1], 10),
2255
- green: parseInt("" + i[2], 10),
2256
- blue: parseInt("" + i[3], 10)
2257
- };
2258
- var a = Ue.exec(t.substring(0, 50));
2259
- if (a) return {
2260
- red: parseInt("" + a[1], 10),
2261
- green: parseInt("" + a[2], 10),
2262
- blue: parseInt("" + a[3], 10),
2263
- alpha: parseFloat("" + a[4]) > 1 ? parseFloat("" + a[4]) / 100 : parseFloat("" + a[4])
2264
- };
2265
- var o = We.exec(t);
2266
- if (o) {
2267
- var s = "rgb(" + x(parseInt("" + o[1], 10), parseInt("" + o[2], 10) / 100, parseInt("" + o[3], 10) / 100) + ")", c = He.exec(s);
2268
- if (!c) throw new b(4, t, s);
2269
- return {
2270
- red: parseInt("" + c[1], 10),
2271
- green: parseInt("" + c[2], 10),
2272
- blue: parseInt("" + c[3], 10)
2273
- };
2445
+ }, wt = {
2446
+ sizes: {
2447
+ M: { gap: "0.8rem 5px" },
2448
+ S: { gap: "0.8rem 5px" }
2449
+ },
2450
+ popupList: {
2451
+ bgColor: m.semantic.color.background.secondary100,
2452
+ color: m.semantic.color.text.secondary600,
2453
+ disabledColor: m.semantic.color.text.secondary400,
2454
+ minWidth: "18rem",
2455
+ maxHeight: "33.2rem",
2456
+ gap: "0.4rem",
2457
+ padding: "1.2rem 1.6rem"
2274
2458
  }
2275
- var l = Ge.exec(t.substring(0, 50));
2276
- if (l) {
2277
- var u = "rgb(" + x(parseInt("" + l[1], 10), parseInt("" + l[2], 10) / 100, parseInt("" + l[3], 10) / 100) + ")", d = He.exec(u);
2278
- if (!d) throw new b(4, t, u);
2279
- return {
2280
- red: parseInt("" + d[1], 10),
2281
- green: parseInt("" + d[2], 10),
2282
- blue: parseInt("" + d[3], 10),
2283
- alpha: parseFloat("" + l[4]) > 1 ? parseFloat("" + l[4]) / 100 : parseFloat("" + l[4])
2284
- };
2459
+ }, Tt = {
2460
+ bgColor: m.semantic.color.background.neutral100,
2461
+ textColor: m.semantic.color.text.secondary950,
2462
+ borderRadius: "0.5rem",
2463
+ border: "none",
2464
+ fontFamily: m.core.font.fontFamily.sourceCodeProRegular,
2465
+ lineHeight: "1.7",
2466
+ paddingY: "1.4rem",
2467
+ paddingX: "1.6rem",
2468
+ paddingRightWithCopy: "4.8rem",
2469
+ sizes: {
2470
+ M: { fontSize: "1.25rem" },
2471
+ S: { fontSize: "1.15rem" }
2285
2472
  }
2286
- throw new b(5);
2287
- }
2288
- function Ke(e) {
2289
- var t = e.red / 255, n = e.green / 255, r = e.blue / 255, i = Math.max(t, n, r), a = Math.min(t, n, r), o = (i + a) / 2;
2290
- if (i === a) return e.alpha === void 0 ? {
2291
- hue: 0,
2292
- saturation: 0,
2293
- lightness: o
2294
- } : {
2295
- hue: 0,
2296
- saturation: 0,
2297
- lightness: o,
2298
- alpha: e.alpha
2299
- };
2300
- var s, c = i - a, l = o > .5 ? c / (2 - i - a) : c / (i + a);
2301
- switch (i) {
2302
- case t:
2303
- s = (n - r) / c + (n < r ? 6 : 0);
2304
- break;
2305
- case n:
2306
- s = (r - t) / c + 2;
2307
- break;
2308
- default:
2309
- s = (t - n) / c + 4;
2310
- break;
2473
+ }, { background: O, border: k, icon: A } = m.semantic.color, Et = { variants: { outline: {
2474
+ size: "3.2rem",
2475
+ iconSize: "1.4rem",
2476
+ borderRadius: "0.4rem",
2477
+ states: {
2478
+ normal: {
2479
+ bgColor: O.neutral0,
2480
+ borderColor: k.secondary500,
2481
+ iconColor: A.secondary700
2482
+ },
2483
+ hover: {
2484
+ bgColor: O.secondary700,
2485
+ borderColor: k.secondary700,
2486
+ iconColor: A.neutral0
2487
+ },
2488
+ copied: {
2489
+ bgColor: O.secondary300,
2490
+ borderColor: k.secondary300,
2491
+ iconColor: A.secondary950
2492
+ },
2493
+ disabled: {
2494
+ bgColor: O.neutral0,
2495
+ borderColor: k.secondary300,
2496
+ iconColor: A.secondary400
2497
+ }
2311
2498
  }
2312
- return s *= 60, e.alpha === void 0 ? {
2313
- hue: s,
2314
- saturation: l,
2315
- lightness: o
2316
- } : {
2317
- hue: s,
2318
- saturation: l,
2319
- lightness: o,
2320
- alpha: e.alpha
2321
- };
2322
- }
2323
- function C(e) {
2324
- return Ke(S(e));
2325
- }
2326
- var qe = function(e) {
2327
- return e.length === 7 && e[1] === e[2] && e[3] === e[4] && e[5] === e[6] ? "#" + e[1] + e[3] + e[5] : e;
2328
- };
2329
- function w(e) {
2330
- var t = e.toString(16);
2331
- return t.length === 1 ? "0" + t : t;
2332
- }
2333
- function Je(e) {
2334
- return w(Math.round(e * 255));
2335
- }
2336
- function Ye(e, t, n) {
2337
- return qe("#" + Je(e) + Je(t) + Je(n));
2338
- }
2339
- function T(e, t, n) {
2340
- return x(e, t, n, Ye);
2341
- }
2342
- function Xe(e, t, n) {
2343
- if (typeof e == "number" && typeof t == "number" && typeof n == "number") return T(e, t, n);
2344
- if (typeof e == "object" && t === void 0 && n === void 0) return T(e.hue, e.saturation, e.lightness);
2345
- throw new b(1);
2346
- }
2347
- function Ze(e, t, n, r) {
2348
- if (typeof e == "number" && typeof t == "number" && typeof n == "number" && typeof r == "number") return r >= 1 ? T(e, t, n) : "rgba(" + x(e, t, n) + "," + r + ")";
2349
- if (typeof e == "object" && t === void 0 && n === void 0 && r === void 0) return e.alpha >= 1 ? T(e.hue, e.saturation, e.lightness) : "rgba(" + x(e.hue, e.saturation, e.lightness) + "," + e.alpha + ")";
2350
- throw new b(2);
2351
- }
2352
- function Qe(e, t, n) {
2353
- if (typeof e == "number" && typeof t == "number" && typeof n == "number") return qe("#" + w(e) + w(t) + w(n));
2354
- if (typeof e == "object" && t === void 0 && n === void 0) return qe("#" + w(e.red) + w(e.green) + w(e.blue));
2355
- throw new b(6);
2356
- }
2357
- function E(e, t, n, r) {
2358
- if (typeof e == "string" && typeof t == "number") {
2359
- var i = S(e);
2360
- return "rgba(" + i.red + "," + i.green + "," + i.blue + "," + t + ")";
2361
- } else if (typeof e == "number" && typeof t == "number" && typeof n == "number" && typeof r == "number") return r >= 1 ? Qe(e, t, n) : "rgba(" + e + "," + t + "," + n + "," + r + ")";
2362
- else if (typeof e == "object" && t === void 0 && n === void 0 && r === void 0) return e.alpha >= 1 ? Qe(e.red, e.green, e.blue) : "rgba(" + e.red + "," + e.green + "," + e.blue + "," + e.alpha + ")";
2363
- throw new b(7);
2364
- }
2365
- var $e = function(e) {
2366
- return typeof e.red == "number" && typeof e.green == "number" && typeof e.blue == "number" && (typeof e.alpha != "number" || e.alpha === void 0);
2367
- }, et = function(e) {
2368
- return typeof e.red == "number" && typeof e.green == "number" && typeof e.blue == "number" && typeof e.alpha == "number";
2369
- }, tt = function(e) {
2370
- return typeof e.hue == "number" && typeof e.saturation == "number" && typeof e.lightness == "number" && (typeof e.alpha != "number" || e.alpha === void 0);
2371
- }, nt = function(e) {
2372
- return typeof e.hue == "number" && typeof e.saturation == "number" && typeof e.lightness == "number" && typeof e.alpha == "number";
2373
- };
2374
- function D(e) {
2375
- if (typeof e != "object") throw new b(8);
2376
- if (et(e)) return E(e);
2377
- if ($e(e)) return Qe(e);
2378
- if (nt(e)) return Ze(e);
2379
- if (tt(e)) return Xe(e);
2380
- throw new b(8);
2381
- }
2382
- function rt(e, t, n) {
2383
- return function() {
2384
- var r = n.concat(Array.prototype.slice.call(arguments));
2385
- return r.length >= t ? e.apply(this, r) : rt(e, t, r);
2386
- };
2387
- }
2388
- function O(e) {
2389
- return rt(e, e.length, []);
2390
- }
2391
- function it(e, t) {
2392
- if (t === "transparent") return t;
2393
- var n = C(t);
2394
- return D(v({}, n, { hue: n.hue + parseFloat(e) }));
2395
- }
2396
- O(it);
2397
- function k(e, t, n) {
2398
- return Math.max(e, Math.min(t, n));
2399
- }
2400
- function at(e, t) {
2401
- if (t === "transparent") return t;
2402
- var n = C(t);
2403
- return D(v({}, n, { lightness: k(0, 1, n.lightness - parseFloat(e)) }));
2404
- }
2405
- var ot = O(at);
2406
- function st(e, t) {
2407
- if (t === "transparent") return t;
2408
- var n = C(t);
2409
- return D(v({}, n, { saturation: k(0, 1, n.saturation - parseFloat(e)) }));
2410
- }
2411
- O(st);
2412
- function ct(e) {
2413
- if (e === "transparent") return 0;
2414
- var t = S(e), n = Object.keys(t).map(function(e) {
2415
- var n = t[e] / 255;
2416
- return n <= .03928 ? n / 12.92 : ((n + .055) / 1.055) ** 2.4;
2417
- }), r = n[0], i = n[1], a = n[2];
2418
- return parseFloat((.2126 * r + .7152 * i + .0722 * a).toFixed(3));
2419
- }
2420
- function lt(e, t) {
2421
- if (t === "transparent") return t;
2422
- var n = C(t);
2423
- return D(v({}, n, { lightness: k(0, 1, n.lightness + parseFloat(e)) }));
2424
- }
2425
- var ut = O(lt);
2426
- function dt(e, t, n) {
2427
- if (t === "transparent") return n;
2428
- if (n === "transparent") return t;
2429
- if (e === 0) return n;
2430
- var r = S(t), i = v({}, r, { alpha: typeof r.alpha == "number" ? r.alpha : 1 }), a = S(n), o = v({}, a, { alpha: typeof a.alpha == "number" ? a.alpha : 1 }), s = i.alpha - o.alpha, c = parseFloat(e) * 2 - 1, l = ((c * s === -1 ? c : c + s) / (1 + c * s) + 1) / 2, u = 1 - l;
2431
- return E({
2432
- red: Math.floor(i.red * l + o.red * u),
2433
- green: Math.floor(i.green * l + o.green * u),
2434
- blue: Math.floor(i.blue * l + o.blue * u),
2435
- alpha: i.alpha * parseFloat(e) + o.alpha * (1 - parseFloat(e))
2436
- });
2437
- }
2438
- var ft = O(dt);
2439
- function pt(e, t) {
2440
- if (t === "transparent") return t;
2441
- var n = S(t);
2442
- return E(v({}, n, { alpha: k(0, 1, ((typeof n.alpha == "number" ? n.alpha : 1) * 100 + parseFloat(e) * 100) / 100) }));
2443
- }
2444
- O(pt);
2445
- function mt(e, t) {
2446
- if (t === "transparent") return t;
2447
- var n = C(t);
2448
- return D(v({}, n, { saturation: k(0, 1, n.saturation + parseFloat(e)) }));
2449
- }
2450
- O(mt);
2451
- function ht(e, t) {
2452
- return t === "transparent" ? t : D(v({}, C(t), { hue: parseFloat(e) }));
2453
- }
2454
- O(ht);
2455
- function gt(e, t) {
2456
- return t === "transparent" ? t : D(v({}, C(t), { lightness: parseFloat(e) }));
2457
- }
2458
- O(gt);
2459
- function _t(e, t) {
2460
- return t === "transparent" ? t : D(v({}, C(t), { saturation: parseFloat(e) }));
2461
- }
2462
- O(_t);
2463
- function vt(e, t) {
2464
- return t === "transparent" ? t : ft(parseFloat(e), "rgb(0, 0, 0)", t);
2465
- }
2466
- O(vt);
2467
- function yt(e, t) {
2468
- return t === "transparent" ? t : ft(parseFloat(e), "rgb(255, 255, 255)", t);
2469
- }
2470
- O(yt);
2471
- function bt(e, t) {
2472
- if (t === "transparent") return t;
2473
- var n = S(t);
2474
- return E(v({}, n, { alpha: k(0, 1, ((typeof n.alpha == "number" ? n.alpha : 1) * 100 - parseFloat(e) * 100).toFixed(2) / 100) }));
2475
- }
2476
- O(bt);
2477
- //#endregion
2478
- //#region src/utils.ts
2479
- var A = (e, t) => we(e, t);
2480
- function xt(e) {
2481
- let t = ct(e), n = Math.max(Math.abs(t - .5) * 1.2, .3);
2482
- return t < .5 ? ut(n, e) : ot(n, e);
2483
- }
2484
- var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark), e), {
2485
- light: [],
2486
- dark: []
2487
- }), Ct = (e) => e.flatMap((e) => Object.values(e)), wt = (e) => e.reduce((e, t) => {
2488
- let n = e[t.name] || {};
2489
- return n[t.mode] = t, e[t.name] = n, e;
2490
- }, {}), Tt = (e) => e.reduce((e, t) => (e[t.mode].push(t), e), {
2491
- light: [],
2492
- dark: []
2493
- }), Et = (e) => ({
2494
- groupedByName: wt(e),
2495
- groupedByMode: Tt(e)
2496
- }), Dt = (e, t, n) => {
2497
- let r = e.groupedByName[t];
2498
- if (r) return n ? r[n] || e.groupedByMode[n]?.[0] : r.light || r.dark;
2499
- if (n) return e.groupedByMode[n]?.[0];
2499
+ } } }, Dt = {
2500
+ width: "2.7rem",
2501
+ height: "2rem",
2502
+ borderRadius: "5px",
2503
+ borderWidth: "0.1px",
2504
+ borderColor: m.semantic.color.border.secondary400
2500
2505
  }, Ot = {
2501
2506
  shadow: m.core.shadow.shadow500,
2502
2507
  bgColor: m.semantic.color.background.neutral0,
@@ -2518,7 +2523,7 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
2518
2523
  border: `1px solid ${m.semantic.color.border.secondary300}`,
2519
2524
  buttonsGap: "1.6rem"
2520
2525
  },
2521
- overlay: { bgColor: A(m.semantic.color.background.secondary0, .8) }
2526
+ overlay: { bgColor: D(m.semantic.color.background.secondary0, .8) }
2522
2527
  }, kt = {
2523
2528
  chipList: {
2524
2529
  padding: "0.8rem 1.6rem",
@@ -2923,7 +2928,7 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
2923
2928
  textColor: m.semantic.color.icon.secondary950
2924
2929
  },
2925
2930
  inverse: {
2926
- bgColor: A(m.semantic.color.icon.secondary0, .2),
2931
+ bgColor: D(m.semantic.color.icon.secondary0, .2),
2927
2932
  color: m.semantic.color.icon.secondary0,
2928
2933
  textColor: m.semantic.color.icon.secondary0
2929
2934
  }
@@ -3015,7 +3020,7 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
3015
3020
  blockPadding: "4rem 0",
3016
3021
  buttonsGap: "0.8rem"
3017
3022
  },
3018
- overlay: { bgColor: A(m.semantic.color.background.secondary0, .8) }
3023
+ overlay: { bgColor: D(m.semantic.color.background.secondary0, .8) }
3019
3024
  }, Wt = { iconColor: m.semantic.color.icon.secondary600 }, Gt = {
3020
3025
  bgColor: m.semantic.color.background.neutral100,
3021
3026
  shadow: m.core.shadow.shadow400,
@@ -4464,14 +4469,14 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
4464
4469
  breadcrumbs: ce,
4465
4470
  button: le,
4466
4471
  buttonGroup: ue,
4467
- card: de,
4468
- charts: fe,
4469
- checkbox: pe,
4470
- chip: me,
4471
- chipList: he,
4472
- codeBlock: ge,
4473
- copyToClipboardButton: _e,
4474
- countryFlag: ve,
4472
+ card: bt,
4473
+ charts: xt,
4474
+ checkbox: St,
4475
+ chip: Ct,
4476
+ chipList: wt,
4477
+ codeBlock: Tt,
4478
+ copyToClipboardButton: Et,
4479
+ countryFlag: Dt,
4475
4480
  drawer: Ot,
4476
4481
  filters: kt,
4477
4482
  formField: At,
@@ -5298,6 +5303,11 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
5298
5303
  bgColor: P.semantic.color.background.discovery900,
5299
5304
  borderColor: P.semantic.color.border.discovery500
5300
5305
  }
5306
+ },
5307
+ hover: {
5308
+ bgColor: P.semantic.color.background.secondary800,
5309
+ borderColor: P.semantic.color.border.secondary600,
5310
+ sunsetColor: D(P.semantic.color.background.primary400, .14)
5301
5311
  }
5302
5312
  }, Fn = {
5303
5313
  categorical: [
@@ -5593,7 +5603,7 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
5593
5603
  border: `1px solid ${P.semantic.color.border.secondary800}`,
5594
5604
  buttonsGap: "1.6rem"
5595
5605
  },
5596
- overlay: { bgColor: A(P.semantic.color.background.secondary990, .8) }
5606
+ overlay: { bgColor: D(P.semantic.color.background.secondary990, .8) }
5597
5607
  }, Un = {
5598
5608
  chipList: {
5599
5609
  padding: "0.8rem 1.6rem",
@@ -5998,7 +6008,7 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
5998
6008
  textColor: P.semantic.color.icon.secondary200
5999
6009
  },
6000
6010
  inverse: {
6001
- bgColor: A(P.semantic.color.icon.secondary0, .2),
6011
+ bgColor: D(P.semantic.color.icon.secondary0, .2),
6002
6012
  color: P.semantic.color.icon.secondary950,
6003
6013
  textColor: P.semantic.color.icon.secondary950
6004
6014
  }
@@ -6090,7 +6100,7 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
6090
6100
  blockPadding: "4rem 0",
6091
6101
  buttonsGap: "0.8rem"
6092
6102
  },
6093
- overlay: { bgColor: A(P.semantic.color.background.secondary990, .8) }
6103
+ overlay: { bgColor: D(P.semantic.color.background.secondary990, .8) }
6094
6104
  }, ir = { iconColor: P.semantic.color.icon.secondary500 }, ar = {
6095
6105
  bgColor: P.semantic.color.background.secondary900,
6096
6106
  shadow: P.core.shadow.shadow400,
@@ -7942,31 +7952,31 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
7942
7952
  informative: {
7943
7953
  backgroundColor: V.semantic.color.background.informative0,
7944
7954
  color: "#0F6FB8",
7945
- borderColor: A(V.semantic.color.border.informative300, .24),
7955
+ borderColor: D(V.semantic.color.border.informative300, .24),
7946
7956
  iconColor: "#0F6FB8"
7947
7957
  },
7948
7958
  success: {
7949
7959
  backgroundColor: V.semantic.color.background.success0,
7950
7960
  color: "#15803D",
7951
- borderColor: A(V.semantic.color.border.success500, .24),
7961
+ borderColor: D(V.semantic.color.border.success500, .24),
7952
7962
  iconColor: "#15803D"
7953
7963
  },
7954
7964
  notice: {
7955
7965
  backgroundColor: V.semantic.color.background.notice0,
7956
7966
  color: "#B45309",
7957
- borderColor: A(V.semantic.color.border.notice400, .24),
7967
+ borderColor: D(V.semantic.color.border.notice400, .24),
7958
7968
  iconColor: "#B45309"
7959
7969
  },
7960
7970
  danger: {
7961
7971
  backgroundColor: V.semantic.color.background.primary0,
7962
7972
  color: V.semantic.color.text.danger500,
7963
- borderColor: A(V.semantic.color.border.primary400, .24),
7973
+ borderColor: D(V.semantic.color.border.primary400, .24),
7964
7974
  iconColor: V.semantic.color.icon.danger500
7965
7975
  },
7966
7976
  attention: {
7967
7977
  backgroundColor: V.semantic.color.background.notice0,
7968
7978
  color: "#B45309",
7969
- borderColor: A(V.semantic.color.border.notice400, .24),
7979
+ borderColor: D(V.semantic.color.border.notice400, .24),
7970
7980
  iconColor: "#B45309"
7971
7981
  },
7972
7982
  upsell: {
@@ -8029,7 +8039,7 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
8029
8039
  },
8030
8040
  checked: {
8031
8041
  normal: {
8032
- bgColor: A("#0F6FB8", .08),
8042
+ bgColor: D("#0F6FB8", .08),
8033
8043
  borderColor: "#0F6FB8",
8034
8044
  markerColor: "transparent",
8035
8045
  textColor: V.semantic.color.text.secondary950,
@@ -8287,7 +8297,7 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
8287
8297
  }
8288
8298
  }, qr = {
8289
8299
  borderRadius: "0.5rem",
8290
- border: `1px solid ${V.semantic.color.border.transparent}`,
8300
+ border: `1px solid ${V.semantic.color.border.secondary200}`,
8291
8301
  bgColor: V.semantic.color.background.secondary50,
8292
8302
  fontSize: "1.4rem",
8293
8303
  fontWeight: V.core.font.fontWeight.normal,
@@ -8361,28 +8371,33 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
8361
8371
  },
8362
8372
  informative: {
8363
8373
  bgColor: V.semantic.color.background.informative0,
8364
- borderColor: A(V.semantic.color.border.informative300, .24)
8374
+ borderColor: D(V.semantic.color.border.informative300, .24)
8365
8375
  },
8366
8376
  success: {
8367
8377
  bgColor: V.semantic.color.background.success0,
8368
- borderColor: A(V.semantic.color.border.success500, .24)
8378
+ borderColor: D(V.semantic.color.border.success500, .24)
8369
8379
  },
8370
8380
  notice: {
8371
8381
  bgColor: V.semantic.color.background.notice0,
8372
- borderColor: A(V.semantic.color.border.notice400, .24)
8382
+ borderColor: D(V.semantic.color.border.notice400, .24)
8373
8383
  },
8374
8384
  attention: {
8375
8385
  bgColor: V.semantic.color.background.notice0,
8376
- borderColor: A(V.semantic.color.border.notice400, .24)
8386
+ borderColor: D(V.semantic.color.border.notice400, .24)
8377
8387
  },
8378
8388
  danger: {
8379
8389
  bgColor: V.semantic.color.background.primary0,
8380
- borderColor: A(V.semantic.color.border.primary400, .24)
8390
+ borderColor: D(V.semantic.color.border.primary400, .24)
8381
8391
  },
8382
8392
  upsell: {
8383
8393
  bgColor: V.semantic.color.background.discovery0,
8384
8394
  borderColor: V.semantic.color.border.discovery100
8385
8395
  }
8396
+ },
8397
+ hover: {
8398
+ bgColor: V.semantic.color.background.neutral100,
8399
+ borderColor: V.semantic.color.border.secondary400,
8400
+ sunsetColor: D(V.semantic.color.background.primary700, .14)
8386
8401
  }
8387
8402
  }, Yr = {
8388
8403
  categorical: [
@@ -8686,7 +8701,7 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
8686
8701
  border: `1px solid ${V.semantic.color.border.secondary200}`,
8687
8702
  buttonsGap: "1.6rem"
8688
8703
  },
8689
- overlay: { bgColor: A(V.semantic.color.background.secondary950, .55) }
8704
+ overlay: { bgColor: D(V.semantic.color.background.secondary950, .55) }
8690
8705
  }, ri = {
8691
8706
  chipList: {
8692
8707
  padding: "0.8rem 1.6rem",
@@ -8757,7 +8772,7 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
8757
8772
  }
8758
8773
  }, oi = { variants: {
8759
8774
  primary: {
8760
- background: A(V.semantic.color.background.primary700, .04),
8775
+ background: D(V.semantic.color.background.primary700, .04),
8761
8776
  text: V.semantic.color.text.primary700
8762
8777
  },
8763
8778
  secondary: {
@@ -9092,7 +9107,7 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
9092
9107
  textColor: V.semantic.color.text.secondary950
9093
9108
  },
9094
9109
  inverse: {
9095
- bgColor: A(V.semantic.color.background.secondary0, .2),
9110
+ bgColor: D(V.semantic.color.background.secondary0, .2),
9096
9111
  color: V.semantic.color.text.secondary0,
9097
9112
  textColor: V.semantic.color.text.secondary0
9098
9113
  }
@@ -9190,7 +9205,7 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
9190
9205
  secondaryButtonVariant: "secondary-fill"
9191
9206
  },
9192
9207
  overlay: {
9193
- bgColor: A(V.semantic.color.background.secondary950, .55),
9208
+ bgColor: D(V.semantic.color.background.secondary950, .55),
9194
9209
  backdropFilter: "blur(4px)"
9195
9210
  }
9196
9211
  }, vi = { iconColor: V.semantic.color.icon.secondary500 }, yi = {
@@ -9753,27 +9768,27 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
9753
9768
  informative: {
9754
9769
  bgColor: V.semantic.color.background.informative0,
9755
9770
  textColor: V.semantic.color.text.secondary950,
9756
- borderColor: A(V.semantic.color.border.informative300, .24)
9771
+ borderColor: D(V.semantic.color.border.informative300, .24)
9757
9772
  },
9758
9773
  success: {
9759
9774
  bgColor: V.semantic.color.background.success0,
9760
9775
  textColor: V.semantic.color.text.secondary950,
9761
- borderColor: A(V.semantic.color.border.success500, .24)
9776
+ borderColor: D(V.semantic.color.border.success500, .24)
9762
9777
  },
9763
9778
  notice: {
9764
9779
  bgColor: V.semantic.color.background.notice0,
9765
9780
  textColor: V.semantic.color.text.secondary950,
9766
- borderColor: A(V.semantic.color.border.notice400, .24)
9781
+ borderColor: D(V.semantic.color.border.notice400, .24)
9767
9782
  },
9768
9783
  danger: {
9769
9784
  bgColor: V.semantic.color.background.primary0,
9770
9785
  textColor: V.semantic.color.text.secondary950,
9771
- borderColor: A(V.semantic.color.border.primary400, .24)
9786
+ borderColor: D(V.semantic.color.border.primary400, .24)
9772
9787
  },
9773
9788
  attention: {
9774
9789
  bgColor: V.semantic.color.background.notice0,
9775
9790
  textColor: V.semantic.color.text.secondary950,
9776
- borderColor: A(V.semantic.color.border.notice400, .24)
9791
+ borderColor: D(V.semantic.color.border.notice400, .24)
9777
9792
  }
9778
9793
  }
9779
9794
  }, ki = { variants: {
@@ -9832,7 +9847,7 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
9832
9847
  },
9833
9848
  active: {
9834
9849
  textColor: V.semantic.color.text.primary700,
9835
- bgColor: A(V.semantic.color.background.primary700, .04),
9850
+ bgColor: D(V.semantic.color.background.primary700, .04),
9836
9851
  labelColor: V.semantic.color.text.primary700
9837
9852
  },
9838
9853
  activeHover: { textColor: V.semantic.color.text.primary700 }
@@ -9953,7 +9968,7 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
9953
9968
  },
9954
9969
  focused: {
9955
9970
  indicator: {
9956
- bgColor: A(V.semantic.color.background.primary400, .14),
9971
+ bgColor: D(V.semantic.color.background.primary400, .14),
9957
9972
  iconColor: V.semantic.color.text.primary300,
9958
9973
  border: `1px solid ${V.semantic.color.border.primary400}`,
9959
9974
  borderRadius: "100%"
@@ -10623,27 +10638,27 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
10623
10638
  informative: {
10624
10639
  backgroundColor: V.semantic.color.background.informative0,
10625
10640
  color: "#0F6FB8",
10626
- borderColor: A(V.semantic.color.border.informative300, .24)
10641
+ borderColor: D(V.semantic.color.border.informative300, .24)
10627
10642
  },
10628
10643
  success: {
10629
10644
  backgroundColor: V.semantic.color.background.success0,
10630
10645
  color: "#15803D",
10631
- borderColor: A(V.semantic.color.border.success500, .24)
10646
+ borderColor: D(V.semantic.color.border.success500, .24)
10632
10647
  },
10633
10648
  notice: {
10634
10649
  backgroundColor: V.semantic.color.background.notice0,
10635
10650
  color: "#B45309",
10636
- borderColor: A(V.semantic.color.border.notice400, .24)
10651
+ borderColor: D(V.semantic.color.border.notice400, .24)
10637
10652
  },
10638
10653
  danger: {
10639
10654
  backgroundColor: V.semantic.color.background.primary0,
10640
10655
  color: V.semantic.color.text.danger500,
10641
- borderColor: A(V.semantic.color.border.primary400, .24)
10656
+ borderColor: D(V.semantic.color.border.primary400, .24)
10642
10657
  },
10643
10658
  attention: {
10644
10659
  backgroundColor: V.semantic.color.background.notice0,
10645
10660
  color: "#B45309",
10646
- borderColor: A(V.semantic.color.border.notice400, .24)
10661
+ borderColor: D(V.semantic.color.border.notice400, .24)
10647
10662
  },
10648
10663
  disabled: {
10649
10664
  backgroundColor: V.semantic.color.background.secondary200,
@@ -11094,31 +11109,31 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
11094
11109
  informative: {
11095
11110
  backgroundColor: q.semantic.color.background.informative0,
11096
11111
  color: q.semantic.color.text.informative300,
11097
- borderColor: A(q.semantic.color.border.informative200, .24),
11112
+ borderColor: D(q.semantic.color.border.informative200, .24),
11098
11113
  iconColor: q.semantic.color.icon.informative300
11099
11114
  },
11100
11115
  success: {
11101
11116
  backgroundColor: q.semantic.color.background.success0,
11102
11117
  color: q.semantic.color.text.success500,
11103
- borderColor: A(q.semantic.color.border.success500, .24),
11118
+ borderColor: D(q.semantic.color.border.success500, .24),
11104
11119
  iconColor: q.semantic.color.icon.success500
11105
11120
  },
11106
11121
  notice: {
11107
11122
  backgroundColor: q.semantic.color.background.notice0,
11108
11123
  color: q.semantic.color.text.notice400,
11109
- borderColor: A(q.semantic.color.border.notice400, .24),
11124
+ borderColor: D(q.semantic.color.border.notice400, .24),
11110
11125
  iconColor: q.semantic.color.icon.notice400
11111
11126
  },
11112
11127
  danger: {
11113
11128
  backgroundColor: q.semantic.color.background.primary0,
11114
11129
  color: q.semantic.color.text.primary300,
11115
- borderColor: A(q.semantic.color.border.primary300, .24),
11130
+ borderColor: D(q.semantic.color.border.primary300, .24),
11116
11131
  iconColor: q.semantic.color.icon.primary300
11117
11132
  },
11118
11133
  attention: {
11119
11134
  backgroundColor: q.semantic.color.background.notice0,
11120
11135
  color: q.semantic.color.text.notice400,
11121
- borderColor: A(q.semantic.color.border.notice400, .24),
11136
+ borderColor: D(q.semantic.color.border.notice400, .24),
11122
11137
  iconColor: q.semantic.color.icon.notice400
11123
11138
  },
11124
11139
  upsell: {
@@ -11181,7 +11196,7 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
11181
11196
  },
11182
11197
  checked: {
11183
11198
  normal: {
11184
- bgColor: A(q.semantic.color.background.informative300, .08),
11199
+ bgColor: D(q.semantic.color.background.informative300, .08),
11185
11200
  borderColor: q.semantic.color.border.informative300,
11186
11201
  markerColor: "transparent",
11187
11202
  textColor: q.semantic.color.text.secondary0,
@@ -11439,7 +11454,7 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
11439
11454
  }
11440
11455
  }, sa = {
11441
11456
  borderRadius: "0.5rem",
11442
- border: `1px solid ${q.semantic.color.border.transparent}`,
11457
+ border: `1px solid ${q.semantic.color.border.secondary700}`,
11443
11458
  bgColor: q.semantic.color.background.secondary990,
11444
11459
  fontSize: "1.4rem",
11445
11460
  fontWeight: q.core.font.fontWeight.normal,
@@ -11455,22 +11470,22 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
11455
11470
  toggleStates: {
11456
11471
  on: {
11457
11472
  normal: {
11458
- bgColor: q.semantic.color.background.secondary950,
11473
+ bgColor: q.semantic.color.background.secondary900,
11459
11474
  textColor: q.semantic.color.text.secondary0,
11460
11475
  borderColor: q.semantic.color.border.secondary500
11461
11476
  },
11462
11477
  hover: {
11463
- bgColor: q.semantic.color.background.secondary950,
11478
+ bgColor: q.semantic.color.background.secondary900,
11464
11479
  textColor: q.semantic.color.text.secondary0,
11465
11480
  borderColor: q.semantic.color.border.secondary500
11466
11481
  },
11467
11482
  active: {
11468
- bgColor: q.semantic.color.background.secondary950,
11483
+ bgColor: q.semantic.color.background.secondary900,
11469
11484
  textColor: q.semantic.color.text.secondary0,
11470
11485
  borderColor: q.semantic.color.border.secondary500
11471
11486
  },
11472
11487
  disabled: {
11473
- bgColor: q.semantic.color.background.secondary950,
11488
+ bgColor: q.semantic.color.background.secondary900,
11474
11489
  textColor: q.semantic.color.text.secondary400,
11475
11490
  borderColor: q.semantic.color.border.secondary500
11476
11491
  }
@@ -11513,28 +11528,33 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
11513
11528
  },
11514
11529
  informative: {
11515
11530
  bgColor: q.semantic.color.background.informative0,
11516
- borderColor: A(q.semantic.color.border.informative200, .24)
11531
+ borderColor: D(q.semantic.color.border.informative200, .24)
11517
11532
  },
11518
11533
  success: {
11519
11534
  bgColor: q.semantic.color.background.success0,
11520
- borderColor: A(q.semantic.color.border.success500, .24)
11535
+ borderColor: D(q.semantic.color.border.success500, .24)
11521
11536
  },
11522
11537
  notice: {
11523
11538
  bgColor: q.semantic.color.background.notice0,
11524
- borderColor: A(q.semantic.color.border.notice400, .24)
11539
+ borderColor: D(q.semantic.color.border.notice400, .24)
11525
11540
  },
11526
11541
  attention: {
11527
11542
  bgColor: q.semantic.color.background.notice0,
11528
- borderColor: A(q.semantic.color.border.notice400, .24)
11543
+ borderColor: D(q.semantic.color.border.notice400, .24)
11529
11544
  },
11530
11545
  danger: {
11531
11546
  bgColor: q.semantic.color.background.primary0,
11532
- borderColor: A(q.semantic.color.border.primary300, .24)
11547
+ borderColor: D(q.semantic.color.border.primary300, .24)
11533
11548
  },
11534
11549
  upsell: {
11535
11550
  bgColor: q.semantic.color.background.discovery900,
11536
11551
  borderColor: q.semantic.color.border.discovery500
11537
11552
  }
11553
+ },
11554
+ hover: {
11555
+ bgColor: it(.8, q.semantic.color.background.secondary900, q.semantic.color.background.secondary800),
11556
+ borderColor: q.semantic.color.border.secondary500,
11557
+ sunsetColor: D(q.semantic.color.background.primary400, .14)
11538
11558
  }
11539
11559
  }, la = {
11540
11560
  categorical: [
@@ -11838,7 +11858,7 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
11838
11858
  border: `1px solid ${q.semantic.color.border.secondary700}`,
11839
11859
  buttonsGap: "1.6rem"
11840
11860
  },
11841
- overlay: { bgColor: A(q.semantic.color.background.secondary950, .55) }
11861
+ overlay: { bgColor: D(q.semantic.color.background.secondary950, .55) }
11842
11862
  }, _a = {
11843
11863
  chipList: {
11844
11864
  padding: "0.8rem 1.6rem",
@@ -11909,7 +11929,7 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
11909
11929
  }
11910
11930
  }, ba = { variants: {
11911
11931
  primary: {
11912
- background: A(q.semantic.color.background.primary400, .1),
11932
+ background: D(q.semantic.color.background.primary400, .1),
11913
11933
  text: q.semantic.color.text.primary400
11914
11934
  },
11915
11935
  secondary: {
@@ -12244,7 +12264,7 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
12244
12264
  textColor: q.semantic.color.text.secondary0
12245
12265
  },
12246
12266
  inverse: {
12247
- bgColor: A(q.semantic.color.background.secondary950, .2),
12267
+ bgColor: D(q.semantic.color.background.secondary950, .2),
12248
12268
  color: q.semantic.color.text.secondary950,
12249
12269
  textColor: q.semantic.color.text.secondary950
12250
12270
  }
@@ -12342,7 +12362,7 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
12342
12362
  secondaryButtonVariant: "secondary-fill"
12343
12363
  },
12344
12364
  overlay: {
12345
- bgColor: A(q.semantic.color.background.secondary950, .55),
12365
+ bgColor: D(q.semantic.color.background.secondary950, .55),
12346
12366
  backdropFilter: "blur(4px)"
12347
12367
  }
12348
12368
  }, Ma = { iconColor: q.semantic.color.icon.secondary400 }, Na = {
@@ -12906,27 +12926,27 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
12906
12926
  informative: {
12907
12927
  bgColor: q.semantic.color.background.informative0,
12908
12928
  textColor: q.semantic.color.text.secondary0,
12909
- borderColor: A(q.semantic.color.border.informative200, .24)
12929
+ borderColor: D(q.semantic.color.border.informative200, .24)
12910
12930
  },
12911
12931
  success: {
12912
12932
  bgColor: q.semantic.color.background.success0,
12913
12933
  textColor: q.semantic.color.text.secondary0,
12914
- borderColor: A(q.semantic.color.border.success500, .24)
12934
+ borderColor: D(q.semantic.color.border.success500, .24)
12915
12935
  },
12916
12936
  notice: {
12917
12937
  bgColor: q.semantic.color.background.notice0,
12918
12938
  textColor: q.semantic.color.text.secondary0,
12919
- borderColor: A(q.semantic.color.border.notice400, .24)
12939
+ borderColor: D(q.semantic.color.border.notice400, .24)
12920
12940
  },
12921
12941
  danger: {
12922
12942
  bgColor: q.semantic.color.background.primary0,
12923
12943
  textColor: q.semantic.color.text.secondary0,
12924
- borderColor: A(q.semantic.color.border.primary300, .24)
12944
+ borderColor: D(q.semantic.color.border.primary300, .24)
12925
12945
  },
12926
12946
  attention: {
12927
12947
  bgColor: q.semantic.color.background.notice0,
12928
12948
  textColor: q.semantic.color.text.secondary0,
12929
- borderColor: A(q.semantic.color.border.notice400, .24)
12949
+ borderColor: D(q.semantic.color.border.notice400, .24)
12930
12950
  }
12931
12951
  }
12932
12952
  }, Ua = { variants: {
@@ -12985,7 +13005,7 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
12985
13005
  },
12986
13006
  active: {
12987
13007
  textColor: q.semantic.color.text.primary400,
12988
- bgColor: A(q.semantic.color.background.primary400, .1),
13008
+ bgColor: D(q.semantic.color.background.primary400, .1),
12989
13009
  labelColor: q.semantic.color.text.primary400
12990
13010
  },
12991
13011
  activeHover: { textColor: q.semantic.color.text.primary400 }
@@ -13106,7 +13126,7 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
13106
13126
  },
13107
13127
  focused: {
13108
13128
  indicator: {
13109
- bgColor: A(q.semantic.color.background.primary400, .14),
13129
+ bgColor: D(q.semantic.color.background.primary400, .14),
13110
13130
  iconColor: q.semantic.color.text.primary300,
13111
13131
  border: `1px solid ${q.semantic.color.border.primary400}`,
13112
13132
  borderRadius: "100%"
@@ -13776,27 +13796,27 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
13776
13796
  informative: {
13777
13797
  backgroundColor: q.semantic.color.background.informative0,
13778
13798
  color: q.semantic.color.text.informative300,
13779
- borderColor: A(q.semantic.color.border.informative200, .24)
13799
+ borderColor: D(q.semantic.color.border.informative200, .24)
13780
13800
  },
13781
13801
  success: {
13782
13802
  backgroundColor: q.semantic.color.background.success0,
13783
13803
  color: q.semantic.color.text.success500,
13784
- borderColor: A(q.semantic.color.border.success500, .24)
13804
+ borderColor: D(q.semantic.color.border.success500, .24)
13785
13805
  },
13786
13806
  notice: {
13787
13807
  backgroundColor: q.semantic.color.background.notice0,
13788
13808
  color: q.semantic.color.text.notice400,
13789
- borderColor: A(q.semantic.color.border.notice400, .24)
13809
+ borderColor: D(q.semantic.color.border.notice400, .24)
13790
13810
  },
13791
13811
  danger: {
13792
13812
  backgroundColor: q.semantic.color.background.primary0,
13793
13813
  color: q.semantic.color.text.primary300,
13794
- borderColor: A(q.semantic.color.border.primary300, .24)
13814
+ borderColor: D(q.semantic.color.border.primary300, .24)
13795
13815
  },
13796
13816
  attention: {
13797
13817
  backgroundColor: q.semantic.color.background.notice0,
13798
13818
  color: q.semantic.color.text.notice400,
13799
- borderColor: A(q.semantic.color.border.notice400, .24)
13819
+ borderColor: D(q.semantic.color.border.notice400, .24)
13800
13820
  },
13801
13821
  disabled: {
13802
13822
  backgroundColor: q.semantic.color.background.secondary700,
@@ -13902,6 +13922,11 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
13902
13922
  "danger",
13903
13923
  "upsell"
13904
13924
  ], mo = [
13925
+ "none",
13926
+ "sunset",
13927
+ "lift",
13928
+ "highlight"
13929
+ ], ho = [
13905
13930
  "primary",
13906
13931
  "secondary",
13907
13932
  "informative",
@@ -13911,7 +13936,7 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
13911
13936
  "error",
13912
13937
  "upsell",
13913
13938
  "neutral"
13914
- ], ho = [
13939
+ ], go = [
13915
13940
  "primary",
13916
13941
  "secondary",
13917
13942
  "notice",
@@ -13920,23 +13945,23 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
13920
13945
  "danger",
13921
13946
  "upsell",
13922
13947
  "informative"
13923
- ], go = Sn, _o = {
13948
+ ], _o = Sn, vo = {
13924
13949
  light: Sn,
13925
13950
  dark: Ir
13926
- }, vo = {
13951
+ }, yo = {
13927
13952
  light: Xi,
13928
13953
  dark: fo
13929
- }, Q = () => r() || go, yo = () => typeof window > "u" ? null : window.matchMedia("(prefers-reduced-motion: reduce)"), bo = () => {
13930
- let [e, t] = d(() => yo()?.matches ?? !1);
13954
+ }, Q = () => r() || _o, bo = () => typeof window > "u" ? null : window.matchMedia("(prefers-reduced-motion: reduce)"), xo = () => {
13955
+ let [e, t] = d(() => bo()?.matches ?? !1);
13931
13956
  return s(() => {
13932
- let e = yo();
13957
+ let e = bo();
13933
13958
  if (!e) return;
13934
13959
  t(e.matches);
13935
13960
  let n = (e) => t(e.matches);
13936
13961
  if (typeof e.addEventListener == "function") return e.addEventListener("change", n), () => e.removeEventListener("change", n);
13937
13962
  if (typeof e.addListener == "function") return e.addListener(n), () => e.removeListener?.(n);
13938
13963
  }, []), e;
13939
- }, xo = ({ value: e, storageKey: t, onChange: n }) => {
13964
+ }, So = ({ value: e, storageKey: t, onChange: n }) => {
13940
13965
  let r = a(() => {
13941
13966
  try {
13942
13967
  return localStorage.getItem(t) ?? void 0;
@@ -13973,31 +13998,31 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
13973
13998
  readFromStorage: r,
13974
13999
  saveToStorage: i
13975
14000
  };
13976
- }, So = (e) => n`
14001
+ }, Co = (e) => n`
13977
14002
  &:focus-visible {
13978
14003
  outline: ${() => Q().core.focus.size} solid ${() => Q().core.focus.color};
13979
14004
  outline-offset: ${() => e || Q().core.focus.margin};
13980
14005
  }
13981
- `, Co = (e) => n`
14006
+ `, wo = (e) => n`
13982
14007
  outline: ${() => Q().core.focus.size} solid ${() => Q().core.focus.color};
13983
14008
  outline-offset: ${() => e || Q().core.focus.margin};
13984
14009
  `, $ = {
13985
14010
  System: "system",
13986
14011
  Light: "light",
13987
14012
  Dark: "dark"
13988
- }, wo = [$.Light, $.Dark], To = [...wo, $.System], Eo = (e, t) => !!e && (t ? To : wo).includes(e), Do = () => typeof window > "u" ? { matches: !1 } : window.matchMedia("(prefers-color-scheme: dark)"), Oo = (e) => $.System === e ? Do().matches ? $.Dark : $.Light : e, ko = (e, t) => Eo(e, t) ? e : Oo($.System), Ao = (e) => Oo(e ?? $.System) === $.Dark ? $.Light : $.Dark, jo = ({ allowSystemThemeMode: e, defaultThemeMode: t }) => {
13989
- let [n, r] = d(() => ko(t, e)), [i, o] = d(() => n && Oo(n)), c = Eo(n, e);
14013
+ }, To = [$.Light, $.Dark], Eo = [...To, $.System], Do = (e, t) => !!e && (t ? Eo : To).includes(e), Oo = () => typeof window > "u" ? { matches: !1 } : window.matchMedia("(prefers-color-scheme: dark)"), ko = (e) => $.System === e ? Oo().matches ? $.Dark : $.Light : e, Ao = (e, t) => Do(e, t) ? e : ko($.System), jo = (e) => ko(e ?? $.System) === $.Dark ? $.Light : $.Dark, Mo = ({ allowSystemThemeMode: e, defaultThemeMode: t }) => {
14014
+ let [n, r] = d(() => Ao(t, e)), [i, o] = d(() => n && ko(n)), c = Do(n, e);
13990
14015
  s(() => {
13991
14016
  !c && i && r(i);
13992
14017
  }, [i, c]);
13993
14018
  let l = a((n) => {
13994
14019
  let i;
13995
- if (Eo(n, e)) i = n;
14020
+ if (Do(n, e)) i = n;
13996
14021
  else {
13997
14022
  if (c) return !1;
13998
- i = ko(t, e);
14023
+ i = Ao(t, e);
13999
14024
  }
14000
- return r(i), o(Oo(i)), !0;
14025
+ return r(i), o(ko(i)), !0;
14001
14026
  }, [
14002
14027
  c,
14003
14028
  e,
@@ -14005,49 +14030,49 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
14005
14030
  ]), u = a(() => {
14006
14031
  o((e) => {
14007
14032
  if (!e) return e;
14008
- let t = Ao(e);
14033
+ let t = jo(e);
14009
14034
  return r(t), t;
14010
14035
  });
14011
14036
  }, []);
14012
14037
  return s(() => {
14013
14038
  if (!e || $.System !== n) return;
14014
- let t = Do(), r = (e) => o(e.matches ? $.Dark : $.Light);
14039
+ let t = Oo(), r = (e) => o(e.matches ? $.Dark : $.Light);
14015
14040
  return t.addEventListener("change", r), () => t?.removeEventListener("change", r);
14016
14041
  }, [n, e]), {
14017
14042
  setUserThemeMode: l,
14018
14043
  toggleAppThemeMode: u,
14019
- getNextThemeModeToToggle: Ao,
14044
+ getNextThemeModeToToggle: jo,
14020
14045
  userThemeMode: n,
14021
14046
  appThemeMode: i
14022
14047
  };
14023
- }, Mo = i(null), No = ({ children: e, ...t }) => {
14048
+ }, No = i(null), Po = ({ children: e, ...t }) => {
14024
14049
  let n = l(() => t, Object.values(t));
14025
- return /* @__PURE__ */ f(Mo.Provider, {
14050
+ return /* @__PURE__ */ f(No.Provider, {
14026
14051
  value: n,
14027
14052
  children: e
14028
14053
  });
14029
- }, Po = () => {
14030
- let e = o(Mo);
14054
+ }, Fo = () => {
14055
+ let e = o(No);
14031
14056
  if (!e) throw Error("Missing ThemeSwitchContext");
14032
14057
  return e;
14033
- }, Fo = ({ children: t, storageKey: n, lightTheme: r, darkTheme: i, allowSystemThemeMode: a, defaultThemeMode: o }) => {
14034
- let { appThemeMode: s, ...c } = jo({
14058
+ }, Io = ({ children: t, storageKey: n, lightTheme: r, darkTheme: i, allowSystemThemeMode: a, defaultThemeMode: o }) => {
14059
+ let { appThemeMode: s, ...c } = Mo({
14035
14060
  allowSystemThemeMode: a,
14036
14061
  defaultThemeMode: o
14037
14062
  });
14038
- return xo({
14063
+ return So({
14039
14064
  storageKey: n,
14040
14065
  value: c.userThemeMode,
14041
14066
  onChange: c.setUserThemeMode
14042
14067
  }), /* @__PURE__ */ f(e, {
14043
14068
  theme: s === $.Dark ? i : r,
14044
- children: /* @__PURE__ */ f(No, {
14069
+ children: /* @__PURE__ */ f(Po, {
14045
14070
  ...c,
14046
14071
  allowSystemThemeMode: a,
14047
14072
  children: t
14048
14073
  })
14049
14074
  });
14050
- }, Io = t`
14075
+ }, Lo = t`
14051
14076
  ${n`
14052
14077
  body {
14053
14078
  background: ${({ theme: e }) => e.globals.body.bgColor};
@@ -14119,4 +14144,4 @@ var St = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
14119
14144
  `};
14120
14145
  `;
14121
14146
  //#endregion
14122
- export { Io as CommonStyles, Fo as SwitchableModeThemeProvider, No as ThemeModeSwitchingProvider, $ as ThemeModes, po as cardVariants, Dt as findThemeByNameAndMode, So as getFocusStyle, Co as getFocusStyleProperties, Ct as getThemesFlatList, Tt as groupFlatByMode, wt as groupFlatByNameAndMode, St as groupThemesByMode, mo as highlightedIconVariants, ho as iconVariants, Et as prepareThemesForSearch, go as theme, _o as themes, vo as themesNext, bo as usePrefersReducedMotion, xo as useStorage, Q as useTheme, Po as useThemeModeSwitchingContext, jo as useThemeModeSwitchingManager, xt as withContrast, A as withOpacity };
14147
+ export { Lo as CommonStyles, Io as SwitchableModeThemeProvider, Po as ThemeModeSwitchingProvider, $ as ThemeModes, mo as cardHoverEffects, po as cardVariants, yt as findThemeByNameAndMode, Co as getFocusStyle, wo as getFocusStyleProperties, ht as getThemesFlatList, _t as groupFlatByMode, gt as groupFlatByNameAndMode, mt as groupThemesByMode, ho as highlightedIconVariants, go as iconVariants, vt as prepareThemesForSearch, _o as theme, vo as themes, yo as themesNext, xo as usePrefersReducedMotion, So as useStorage, Q as useTheme, Fo as useThemeModeSwitchingContext, Mo as useThemeModeSwitchingManager, pt as withContrast, D as withOpacity };