@redis-ui/styles 21.25.0 → 21.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.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,8 +1485,8 @@ 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 = {
1488
+ for (let e in de) Object.freeze(de[e]);
1489
+ var fe = Object.freeze(de), pe = he, me = {
1800
1490
  red: 0,
1801
1491
  orange: 60,
1802
1492
  yellow: 120,
@@ -1804,7 +1494,7 @@ var be = Object.freeze(ye), xe = Ce, Se = {
1804
1494
  blue: 240,
1805
1495
  purple: 300
1806
1496
  };
1807
- function Ce(e) {
1497
+ function he(e) {
1808
1498
  var t, n = [], r = 1, i;
1809
1499
  if (typeof e == "number" || typeof e == "number") return {
1810
1500
  space: "rgb",
@@ -1815,7 +1505,7 @@ function Ce(e) {
1815
1505
  ],
1816
1506
  alpha: 1
1817
1507
  };
1818
- if (e = String(e).toLowerCase(), be[e]) n = be[e].slice(), i = "rgb";
1508
+ if (e = String(e).toLowerCase(), fe[e]) n = fe[e].slice(), i = "rgb";
1819
1509
  else if (e === "transparent") r = 0, i = "rgb", n = [
1820
1510
  0,
1821
1511
  0,
@@ -1838,7 +1528,7 @@ function Ce(e) {
1838
1528
  n = t[2].trim().split(/\s*[,\/]\s*|\s+/), i === "color" && (i = n.shift()), n = n.map(function(e, t) {
1839
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;
1840
1530
  if (i[t] === "h" || t === 2 && i[i.length - 1] === "h") {
1841
- if (Se[e] !== void 0) return Se[e];
1531
+ if (me[e] !== void 0) return me[e];
1842
1532
  if (e.endsWith("deg")) return parseFloat(e);
1843
1533
  if (e.endsWith("turn")) return parseFloat(e) * 360;
1844
1534
  if (e.endsWith("grad")) return parseFloat(e) * 360 / 400;
@@ -1857,49 +1547,49 @@ function Ce(e) {
1857
1547
  }
1858
1548
  //#endregion
1859
1549
  //#region ../../node_modules/color-alpha/index.js
1860
- function we(e, t) {
1861
- var { space: n, values: r, alpha: i } = xe(e);
1550
+ function ge(e, t) {
1551
+ var { space: n, values: r, alpha: i } = pe(e);
1862
1552
  return n[0] === "h" ? `${n}a(${r[0]}, ${r[1]}%, ${r[2]}%, ${t})` : `${n}a(${r}, ${t})`;
1863
1553
  }
1864
1554
  //#endregion
1865
1555
  //#region ../../node_modules/@babel/runtime/helpers/esm/extends.js
1866
- function v() {
1867
- return v = Object.assign ? Object.assign.bind() : function(e) {
1556
+ function h() {
1557
+ return h = Object.assign ? Object.assign.bind() : function(e) {
1868
1558
  for (var t = 1; t < arguments.length; t++) {
1869
1559
  var n = arguments[t];
1870
1560
  for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
1871
1561
  }
1872
1562
  return e;
1873
- }, v.apply(null, arguments);
1563
+ }, h.apply(null, arguments);
1874
1564
  }
1875
1565
  //#endregion
1876
1566
  //#region ../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
1877
- function Te(e) {
1567
+ function _e(e) {
1878
1568
  if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
1879
1569
  return e;
1880
1570
  }
1881
1571
  //#endregion
1882
1572
  //#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) {
1573
+ function g(e, t) {
1574
+ return g = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
1885
1575
  return e.__proto__ = t, e;
1886
- }, y(e, t);
1576
+ }, g(e, t);
1887
1577
  }
1888
1578
  //#endregion
1889
1579
  //#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);
1580
+ function ve(e, t) {
1581
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, g(e, t);
1892
1582
  }
1893
1583
  //#endregion
1894
1584
  //#region ../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
1895
- function De(e) {
1896
- return De = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
1585
+ function ye(e) {
1586
+ return ye = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
1897
1587
  return e.__proto__ || Object.getPrototypeOf(e);
1898
- }, De(e);
1588
+ }, ye(e);
1899
1589
  }
1900
1590
  //#endregion
1901
1591
  //#region ../../node_modules/@babel/runtime/helpers/esm/isNativeFunction.js
1902
- function Oe(e) {
1592
+ function be(e) {
1903
1593
  try {
1904
1594
  return Function.toString.call(e).indexOf("[native code]") !== -1;
1905
1595
  } catch {
@@ -1908,48 +1598,48 @@ function Oe(e) {
1908
1598
  }
1909
1599
  //#endregion
1910
1600
  //#region ../../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
1911
- function ke() {
1601
+ function xe() {
1912
1602
  try {
1913
1603
  var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1914
1604
  } catch {}
1915
- return (ke = function() {
1605
+ return (xe = function() {
1916
1606
  return !!e;
1917
1607
  })();
1918
1608
  }
1919
1609
  //#endregion
1920
1610
  //#region ../../node_modules/@babel/runtime/helpers/esm/construct.js
1921
- function Ae(e, t, n) {
1922
- if (ke()) return Reflect.construct.apply(null, arguments);
1611
+ function Se(e, t, n) {
1612
+ if (xe()) return Reflect.construct.apply(null, arguments);
1923
1613
  var r = [null];
1924
1614
  r.push.apply(r, t);
1925
1615
  var i = new (e.bind.apply(e, r))();
1926
- return n && y(i, n.prototype), i;
1616
+ return n && g(i, n.prototype), i;
1927
1617
  }
1928
1618
  //#endregion
1929
1619
  //#region ../../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js
1930
- function je(e) {
1620
+ function Ce(e) {
1931
1621
  var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
1932
- return je = function(e) {
1933
- if (e === null || !Oe(e)) return e;
1622
+ return Ce = function(e) {
1623
+ if (e === null || !be(e)) return e;
1934
1624
  if (typeof e != "function") throw TypeError("Super expression must either be null or a function");
1935
1625
  if (t !== void 0) {
1936
1626
  if (t.has(e)) return t.get(e);
1937
1627
  t.set(e, n);
1938
1628
  }
1939
1629
  function n() {
1940
- return Ae(e, arguments, De(this).constructor);
1630
+ return Se(e, arguments, ye(this).constructor);
1941
1631
  }
1942
1632
  return n.prototype = Object.create(e.prototype, { constructor: {
1943
1633
  value: n,
1944
1634
  enumerable: !1,
1945
1635
  writable: !0,
1946
1636
  configurable: !0
1947
- } }), y(n, e);
1948
- }, je(e);
1637
+ } }), g(n, e);
1638
+ }, Ce(e);
1949
1639
  }
1950
1640
  //#endregion
1951
1641
  //#region ../../node_modules/polished/dist/polished.esm.js
1952
- var Me = {
1642
+ var we = {
1953
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",
1954
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",
1955
1645
  3: "Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n",
@@ -2029,40 +1719,40 @@ var Me = {
2029
1719
  77: "remToPx expects a value in \"rem\" but you provided it in \"%s\".\n\n",
2030
1720
  78: "base must be set in \"px\" or \"%\" but you set it in \"%s\".\n"
2031
1721
  };
2032
- function Ne() {
1722
+ function Te() {
2033
1723
  var e = [...arguments], t = e[0], n = [], r;
2034
1724
  for (r = 1; r < e.length; r += 1) n.push(e[r]);
2035
1725
  return n.forEach(function(e) {
2036
1726
  t = t.replace(/%[a-z]/, e);
2037
1727
  }), t;
2038
1728
  }
2039
- var b = /*#__PURE__*/ function(e) {
2040
- Ee(t, e);
1729
+ var _ = /*#__PURE__*/ function(e) {
1730
+ ve(t, e);
2041
1731
  function t(t) {
2042
1732
  var n;
2043
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;
2044
1734
  else {
2045
1735
  var r = [...arguments].slice(1);
2046
- n = e.call(this, Ne.apply(void 0, [Me[t]].concat(r))) || this;
1736
+ n = e.call(this, Te.apply(void 0, [we[t]].concat(r))) || this;
2047
1737
  }
2048
- return Te(n);
1738
+ return _e(n);
2049
1739
  }
2050
1740
  return t;
2051
- }(/*#__PURE__*/ je(Error));
2052
- function Pe(e) {
1741
+ }(/*#__PURE__*/ Ce(Error));
1742
+ function Ee(e) {
2053
1743
  return Math.round(e * 255);
2054
1744
  }
2055
- function Fe(e, t, n) {
2056
- return Pe(e) + "," + Pe(t) + "," + Pe(n);
1745
+ function De(e, t, n) {
1746
+ return Ee(e) + "," + Ee(t) + "," + Ee(n);
2057
1747
  }
2058
- function x(e, t, n, r) {
2059
- if (r === void 0 && (r = Fe), t === 0) return r(n, n, n);
1748
+ function v(e, t, n, r) {
1749
+ if (r === void 0 && (r = De), t === 0) return r(n, n, n);
2060
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;
2061
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);
2062
1752
  var u = n - a / 2, d = s + u, f = c + u, p = l + u;
2063
1753
  return r(d, f, p);
2064
1754
  }
2065
- var Ie = {
1755
+ var Oe = {
2066
1756
  aliceblue: "f0f8ff",
2067
1757
  antiquewhite: "faebd7",
2068
1758
  aqua: "00ffff",
@@ -2212,291 +1902,606 @@ var Ie = {
2212
1902
  yellow: "ff0",
2213
1903
  yellowgreen: "9acd32"
2214
1904
  };
2215
- function Le(e) {
2216
- if (typeof e != "string") return e;
2217
- var t = e.toLowerCase();
2218
- return Ie[t] ? "#" + Ie[t] : e;
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)
1918
+ };
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)
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);
1977
+ }
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
+ };
2012
+ }
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);
2219
2071
  }
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)
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);
2228
2076
  };
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
- };
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) }));
2133
+ }
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)) }));
2139
+ }
2140
+ T(ot);
2141
+ function st(e, t) {
2142
+ return t === "transparent" ? t : w(h({}, b(t), { hue: parseFloat(e) }));
2143
+ }
2144
+ T(st);
2145
+ function ct(e, t) {
2146
+ return t === "transparent" ? t : w(h({}, b(t), { lightness: parseFloat(e) }));
2147
+ }
2148
+ T(ct);
2149
+ function lt(e, t) {
2150
+ return t === "transparent" ? t : w(h({}, b(t), { saturation: parseFloat(e) }));
2151
+ }
2152
+ T(lt);
2153
+ function ut(e, t) {
2154
+ return t === "transparent" ? t : it(parseFloat(e), "rgb(0, 0, 0)", t);
2155
+ }
2156
+ T(ut);
2157
+ function dt(e, t) {
2158
+ return t === "transparent" ? t : it(parseFloat(e), "rgb(255, 255, 255)", t);
2159
+ }
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) }));
2165
+ }
2166
+ T(ft);
2167
+ //#endregion
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
2225
+ }
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
2255
+ }
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
2326
+ }
2327
+ }
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,
@@ -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,
@@ -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 };