@tanstack/query-devtools 5.0.0-rc.9 → 5.0.3

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.
@@ -34,7 +34,7 @@ import {
34
34
  untrack,
35
35
  useContext,
36
36
  useTransition
37
- } from "../chunk/PWC4YVZY.jsx";
37
+ } from "../chunk/AHAJNSNO.jsx";
38
38
 
39
39
  // ../../node_modules/.pnpm/@tanstack+match-sorter-utils@8.8.4/node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs
40
40
  var characterMap = {
@@ -711,7 +711,7 @@ function clsx() {
711
711
  return n2;
712
712
  }
713
713
 
714
- // ../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.2_solid-js@1.7.8/node_modules/@solid-primitives/transition-group/dist/index.js
714
+ // ../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.3_solid-js@1.8.1/node_modules/@solid-primitives/transition-group/dist/index.js
715
715
  var noop = () => {
716
716
  };
717
717
  function createListTransition(source, options) {
@@ -779,9 +779,12 @@ function createListTransition(source, options) {
779
779
  );
780
780
  }
781
781
 
782
- // ../../node_modules/.pnpm/@solid-primitives+utils@6.2.1_solid-js@1.7.8/node_modules/@solid-primitives/utils/dist/chunk/R5675YMU.js
782
+ // ../../node_modules/.pnpm/@solid-primitives+utils@6.2.1_solid-js@1.8.1/node_modules/@solid-primitives/utils/dist/chunk/R5675YMU.js
783
783
  var isClient = !isServer;
784
784
  var isDev = isClient && !!DEV;
785
+ var noop2 = () => void 0;
786
+ var isNonNullable = (i2) => i2 != null;
787
+ var filterNonNullable = (arr) => arr.filter(isNonNullable);
785
788
  function chain(callbacks) {
786
789
  return (...args) => {
787
790
  for (const callback of callbacks)
@@ -802,8 +805,42 @@ function accessWith(valueOrFn, ...args) {
802
805
  return typeof valueOrFn === "function" ? valueOrFn(...args) : valueOrFn;
803
806
  }
804
807
  var tryOnCleanup = isDev ? (fn) => getOwner() ? onCleanup(fn) : fn : onCleanup;
808
+ function handleDiffArray(current, prev, handleAdded, handleRemoved) {
809
+ const currLength = current.length;
810
+ const prevLength = prev.length;
811
+ let i2 = 0;
812
+ if (!prevLength) {
813
+ for (; i2 < currLength; i2++)
814
+ handleAdded(current[i2]);
815
+ return;
816
+ }
817
+ if (!currLength) {
818
+ for (; i2 < prevLength; i2++)
819
+ handleRemoved(prev[i2]);
820
+ return;
821
+ }
822
+ for (; i2 < prevLength; i2++) {
823
+ if (prev[i2] !== current[i2])
824
+ break;
825
+ }
826
+ let prevEl;
827
+ let currEl;
828
+ prev = prev.slice(i2);
829
+ current = current.slice(i2);
830
+ for (prevEl of prev) {
831
+ if (!current.includes(prevEl))
832
+ handleRemoved(prevEl);
833
+ }
834
+ for (currEl of current) {
835
+ if (!prev.includes(currEl))
836
+ handleAdded(currEl);
837
+ }
838
+ }
805
839
 
806
- // ../../node_modules/.pnpm/@solid-primitives+refs@1.0.4_solid-js@1.7.8/node_modules/@solid-primitives/refs/dist/index.js
840
+ // ../../node_modules/.pnpm/@solid-primitives+refs@1.0.5_solid-js@1.8.1/node_modules/@solid-primitives/refs/dist/index.js
841
+ function mergeRefs(...refs) {
842
+ return chain(refs);
843
+ }
807
844
  var defaultElementPredicate = isServer ? (item) => item != null && typeof item === "object" && "t" in item : (item) => item instanceof Element;
808
845
  function getResolvedElements(value, predicate) {
809
846
  if (predicate(value))
@@ -833,7 +870,7 @@ function resolveElements(fn, predicate = defaultElementPredicate, serverPredicat
833
870
  return memo;
834
871
  }
835
872
 
836
- // ../../node_modules/.pnpm/solid-transition-group@0.2.2_solid-js@1.7.8/node_modules/solid-transition-group/dist/index.js
873
+ // ../../node_modules/.pnpm/solid-transition-group@0.2.2_solid-js@1.8.1/node_modules/solid-transition-group/dist/index.js
837
874
  function createClassnames(props) {
838
875
  return createMemo(() => {
839
876
  const name = props.name || "s";
@@ -956,7 +993,7 @@ var TransitionGroup = (props) => {
956
993
  });
957
994
  };
958
995
 
959
- // ../../node_modules/.pnpm/@solid-primitives+keyed@1.2.0_solid-js@1.7.8/node_modules/@solid-primitives/keyed/dist/index.js
996
+ // ../../node_modules/.pnpm/@solid-primitives+keyed@1.2.0_solid-js@1.8.1/node_modules/@solid-primitives/keyed/dist/index.js
960
997
  var FALLBACK = Symbol("fallback");
961
998
  function dispose(list) {
962
999
  for (const o2 of list)
@@ -1054,45 +1091,7 @@ function Key(props) {
1054
1091
  );
1055
1092
  }
1056
1093
 
1057
- // ../../node_modules/.pnpm/@solid-primitives+utils@6.2.0_solid-js@1.7.8/node_modules/@solid-primitives/utils/dist/chunk/APG4HSEJ.js
1058
- var noop3 = () => void 0;
1059
- var isNonNullable2 = (i2) => i2 != null;
1060
- var filterNonNullable2 = (arr) => arr.filter(isNonNullable2);
1061
- var access2 = (v) => typeof v === "function" && !v.length ? v() : v;
1062
- var asArray2 = (value) => Array.isArray(value) ? value : value ? [value] : [];
1063
- function handleDiffArray2(current, prev, handleAdded, handleRemoved) {
1064
- const currLength = current.length;
1065
- const prevLength = prev.length;
1066
- let i2 = 0;
1067
- if (!prevLength) {
1068
- for (; i2 < currLength; i2++)
1069
- handleAdded(current[i2]);
1070
- return;
1071
- }
1072
- if (!currLength) {
1073
- for (; i2 < prevLength; i2++)
1074
- handleRemoved(prev[i2]);
1075
- return;
1076
- }
1077
- for (; i2 < prevLength; i2++) {
1078
- if (prev[i2] !== current[i2])
1079
- break;
1080
- }
1081
- let prevEl;
1082
- let currEl;
1083
- prev = prev.slice(i2);
1084
- current = current.slice(i2);
1085
- for (prevEl of prev) {
1086
- if (!current.includes(prevEl))
1087
- handleRemoved(prevEl);
1088
- }
1089
- for (currEl of current) {
1090
- if (!prev.includes(currEl))
1091
- handleAdded(currEl);
1092
- }
1093
- }
1094
-
1095
- // ../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.7.8/node_modules/@solid-primitives/storage/dist/index.js
1094
+ // ../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.8.1/node_modules/@solid-primitives/storage/dist/index.js
1096
1095
  function createStorage(props) {
1097
1096
  const [error, setError] = createSignal();
1098
1097
  const handleError = props?.throw ? (err, fallback) => {
@@ -1311,10 +1310,30 @@ var cookieStorage = addClearMethod({
1311
1310
  }
1312
1311
  });
1313
1312
 
1314
- // ../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.18_solid-js@1.7.8/node_modules/@solid-primitives/resize-observer/dist/index.js
1313
+ // ../../node_modules/.pnpm/@solid-primitives+event-listener@2.3.0_solid-js@1.8.1/node_modules/@solid-primitives/event-listener/dist/index.js
1314
+ function makeEventListener(target, type, handler, options) {
1315
+ target.addEventListener(type, handler, options);
1316
+ return tryOnCleanup(target.removeEventListener.bind(target, type, handler, options));
1317
+ }
1318
+ function createEventListener(targets, type, handler, options) {
1319
+ if (isServer)
1320
+ return;
1321
+ const attachListeners = () => {
1322
+ asArray(access(targets)).forEach((el) => {
1323
+ if (el)
1324
+ asArray(access(type)).forEach((type2) => makeEventListener(el, type2, handler, options));
1325
+ });
1326
+ };
1327
+ if (typeof targets === "function")
1328
+ createEffect(attachListeners);
1329
+ else
1330
+ createRenderEffect(attachListeners);
1331
+ }
1332
+
1333
+ // ../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.18_solid-js@1.8.1/node_modules/@solid-primitives/resize-observer/dist/index.js
1315
1334
  function makeResizeObserver(callback, options) {
1316
1335
  if (isServer) {
1317
- return { observe: noop3, unobserve: noop3 };
1336
+ return { observe: noop2, unobserve: noop2 };
1318
1337
  }
1319
1338
  const observer = new ResizeObserver(callback);
1320
1339
  onCleanup(observer.disconnect.bind(observer));
@@ -1326,8 +1345,8 @@ function makeResizeObserver(callback, options) {
1326
1345
  function createResizeObserver(targets, onResize, options) {
1327
1346
  if (isServer)
1328
1347
  return;
1329
- const previousMap = /* @__PURE__ */ new WeakMap(), { observe, unobserve } = makeResizeObserver((entries3) => {
1330
- for (const entry of entries3) {
1348
+ const previousMap = /* @__PURE__ */ new WeakMap(), { observe, unobserve } = makeResizeObserver((entries2) => {
1349
+ for (const entry of entries2) {
1331
1350
  const { contentRect, target } = entry, width = Math.round(contentRect.width), height = Math.round(contentRect.height), previous = previousMap.get(target);
1332
1351
  if (!previous || previous.width !== width || previous.height !== height) {
1333
1352
  onResize(contentRect, target, entry);
@@ -1336,34 +1355,14 @@ function createResizeObserver(targets, onResize, options) {
1336
1355
  }
1337
1356
  }, options);
1338
1357
  createEffect((prev) => {
1339
- const refs = filterNonNullable2(asArray2(access2(targets)));
1340
- handleDiffArray2(refs, prev, observe, unobserve);
1358
+ const refs = filterNonNullable(asArray(access(targets)));
1359
+ handleDiffArray(refs, prev, observe, unobserve);
1341
1360
  return refs;
1342
1361
  }, []);
1343
1362
  }
1344
1363
 
1345
- // ../../node_modules/.pnpm/@solid-primitives+event-listener@2.3.0_solid-js@1.7.8/node_modules/@solid-primitives/event-listener/dist/index.js
1346
- function makeEventListener(target, type, handler, options) {
1347
- target.addEventListener(type, handler, options);
1348
- return tryOnCleanup(target.removeEventListener.bind(target, type, handler, options));
1349
- }
1350
- function createEventListener(targets, type, handler, options) {
1351
- if (isServer)
1352
- return;
1353
- const attachListeners = () => {
1354
- asArray(access(targets)).forEach((el) => {
1355
- if (el)
1356
- asArray(access(type)).forEach((type2) => makeEventListener(el, type2, handler, options));
1357
- });
1358
- };
1359
- if (typeof targets === "function")
1360
- createEffect(attachListeners);
1361
- else
1362
- createRenderEffect(attachListeners);
1363
- }
1364
-
1365
- // ../../node_modules/.pnpm/@solid-primitives+props@3.1.8_solid-js@1.7.8/node_modules/@solid-primitives/props/dist/index.js
1366
- function trueFn3() {
1364
+ // ../../node_modules/.pnpm/@solid-primitives+props@3.1.8_solid-js@1.8.1/node_modules/@solid-primitives/props/dist/index.js
1365
+ function trueFn2() {
1367
1366
  return true;
1368
1367
  }
1369
1368
  var propTraps = {
@@ -1375,8 +1374,8 @@ var propTraps = {
1375
1374
  has(_, property) {
1376
1375
  return _.has(property);
1377
1376
  },
1378
- set: trueFn3,
1379
- deleteProperty: trueFn3,
1377
+ set: trueFn2,
1378
+ deleteProperty: trueFn2,
1380
1379
  getOwnPropertyDescriptor(_, property) {
1381
1380
  return {
1382
1381
  configurable: true,
@@ -1384,8 +1383,8 @@ var propTraps = {
1384
1383
  get() {
1385
1384
  return _.get(property);
1386
1385
  },
1387
- set: trueFn3,
1388
- deleteProperty: trueFn3
1386
+ set: trueFn2,
1387
+ deleteProperty: trueFn2
1389
1388
  };
1390
1389
  },
1391
1390
  ownKeys(_) {
@@ -1484,12 +1483,7 @@ function combineProps(...args) {
1484
1483
  );
1485
1484
  }
1486
1485
 
1487
- // ../../node_modules/.pnpm/@solid-primitives+refs@1.0.5_solid-js@1.7.8/node_modules/@solid-primitives/refs/dist/index.js
1488
- function mergeRefs(...refs) {
1489
- return chain(refs);
1490
- }
1491
-
1492
- // ../../node_modules/.pnpm/@kobalte+utils@0.9.0_solid-js@1.7.8/node_modules/@kobalte/utils/dist/index.js
1486
+ // ../../node_modules/.pnpm/@kobalte+utils@0.9.0_solid-js@1.8.1/node_modules/@kobalte/utils/dist/index.js
1493
1487
  function addItemToArray(array, item, index = -1) {
1494
1488
  if (!(index in array)) {
1495
1489
  return [...array, item];
@@ -1759,7 +1753,7 @@ function getFocusableTreeWalker(root, opts, scope) {
1759
1753
  }
1760
1754
  return walker2;
1761
1755
  }
1762
- function noop4() {
1756
+ function noop3() {
1763
1757
  return;
1764
1758
  }
1765
1759
  function isPointInPolygon(point, polygon) {
@@ -1906,9 +1900,11 @@ var visuallyHiddenStyles = {
1906
1900
  "white-space": "nowrap"
1907
1901
  };
1908
1902
 
1909
- // ../../node_modules/.pnpm/solid-js@1.7.8/node_modules/solid-js/store/dist/store.js
1903
+ // ../../node_modules/.pnpm/solid-js@1.8.1/node_modules/solid-js/store/dist/store.js
1910
1904
  var $RAW = Symbol("store-raw");
1911
1905
  var $NODE = Symbol("store-node");
1906
+ var $HAS = Symbol("store-has");
1907
+ var $SELF = Symbol("store-self");
1912
1908
  function wrap$1(value) {
1913
1909
  let p2 = value[$PROXY];
1914
1910
  if (!p2) {
@@ -1916,9 +1912,9 @@ function wrap$1(value) {
1916
1912
  value: p2 = new Proxy(value, proxyTraps$1)
1917
1913
  });
1918
1914
  if (!Array.isArray(value)) {
1919
- const keys3 = Object.keys(value), desc = Object.getOwnPropertyDescriptors(value);
1920
- for (let i2 = 0, l2 = keys3.length; i2 < l2; i2++) {
1921
- const prop = keys3[i2];
1915
+ const keys2 = Object.keys(value), desc = Object.getOwnPropertyDescriptors(value);
1916
+ for (let i2 = 0, l2 = keys2.length; i2 < l2; i2++) {
1917
+ const prop = keys2[i2];
1922
1918
  if (desc[prop].get) {
1923
1919
  Object.defineProperty(value, prop, {
1924
1920
  enumerable: desc[prop].enumerable,
@@ -1955,9 +1951,9 @@ function unwrap(item, set = /* @__PURE__ */ new Set()) {
1955
1951
  item = Object.assign({}, item);
1956
1952
  else
1957
1953
  set.add(item);
1958
- const keys3 = Object.keys(item), desc = Object.getOwnPropertyDescriptors(item);
1959
- for (let i2 = 0, l2 = keys3.length; i2 < l2; i2++) {
1960
- prop = keys3[i2];
1954
+ const keys2 = Object.keys(item), desc = Object.getOwnPropertyDescriptors(item);
1955
+ for (let i2 = 0, l2 = keys2.length; i2 < l2; i2++) {
1956
+ prop = keys2[i2];
1961
1957
  if (desc[prop].get)
1962
1958
  continue;
1963
1959
  v = item[prop];
@@ -1967,16 +1963,23 @@ function unwrap(item, set = /* @__PURE__ */ new Set()) {
1967
1963
  }
1968
1964
  return item;
1969
1965
  }
1970
- function getDataNodes(target) {
1971
- let nodes = target[$NODE];
1966
+ function getNodes(target, symbol) {
1967
+ let nodes = target[symbol];
1972
1968
  if (!nodes)
1973
- Object.defineProperty(target, $NODE, {
1969
+ Object.defineProperty(target, symbol, {
1974
1970
  value: nodes = /* @__PURE__ */ Object.create(null)
1975
1971
  });
1976
1972
  return nodes;
1977
1973
  }
1978
- function getDataNode(nodes, property, value) {
1979
- return nodes[property] || (nodes[property] = createDataNode(value));
1974
+ function getNode(nodes, property, value) {
1975
+ if (nodes[property])
1976
+ return nodes[property];
1977
+ const [s2, set] = createSignal(value, {
1978
+ equals: false,
1979
+ internal: true
1980
+ });
1981
+ s2.$ = set;
1982
+ return nodes[property] = s2;
1980
1983
  }
1981
1984
  function proxyDescriptor$1(target, property) {
1982
1985
  const desc = Reflect.getOwnPropertyDescriptor(target, property);
@@ -1988,23 +1991,12 @@ function proxyDescriptor$1(target, property) {
1988
1991
  return desc;
1989
1992
  }
1990
1993
  function trackSelf(target) {
1991
- if (getListener()) {
1992
- const nodes = getDataNodes(target);
1993
- (nodes._ || (nodes._ = createDataNode()))();
1994
- }
1994
+ getListener() && getNode(getNodes(target, $NODE), $SELF)();
1995
1995
  }
1996
1996
  function ownKeys(target) {
1997
1997
  trackSelf(target);
1998
1998
  return Reflect.ownKeys(target);
1999
1999
  }
2000
- function createDataNode(value) {
2001
- const [s2, set] = createSignal(value, {
2002
- equals: false,
2003
- internal: true
2004
- });
2005
- s2.$ = set;
2006
- return s2;
2007
- }
2008
2000
  var proxyTraps$1 = {
2009
2001
  get(target, property, receiver) {
2010
2002
  if (property === $RAW)
@@ -2015,22 +2007,22 @@ var proxyTraps$1 = {
2015
2007
  trackSelf(target);
2016
2008
  return receiver;
2017
2009
  }
2018
- const nodes = getDataNodes(target);
2010
+ const nodes = getNodes(target, $NODE);
2019
2011
  const tracked = nodes[property];
2020
2012
  let value = tracked ? tracked() : target[property];
2021
- if (property === $NODE || property === "__proto__")
2013
+ if (property === $NODE || property === $HAS || property === "__proto__")
2022
2014
  return value;
2023
2015
  if (!tracked) {
2024
2016
  const desc = Object.getOwnPropertyDescriptor(target, property);
2025
2017
  if (getListener() && (typeof value !== "function" || target.hasOwnProperty(property)) && !(desc && desc.get))
2026
- value = getDataNode(nodes, property, value)();
2018
+ value = getNode(nodes, property, value)();
2027
2019
  }
2028
2020
  return isWrappable(value) ? wrap$1(value) : value;
2029
2021
  },
2030
2022
  has(target, property) {
2031
- if (property === $RAW || property === $PROXY || property === $TRACK || property === $NODE || property === "__proto__")
2023
+ if (property === $RAW || property === $PROXY || property === $TRACK || property === $NODE || property === $HAS || property === "__proto__")
2032
2024
  return true;
2033
- this.get(target, property, target);
2025
+ getListener() && getNode(getNodes(target, $HAS), property)();
2034
2026
  return property in target;
2035
2027
  },
2036
2028
  set() {
@@ -2046,24 +2038,29 @@ function setProperty(state2, property, value, deleting = false) {
2046
2038
  if (!deleting && state2[property] === value)
2047
2039
  return;
2048
2040
  const prev = state2[property], len = state2.length;
2049
- if (value === void 0)
2041
+ if (value === void 0) {
2050
2042
  delete state2[property];
2051
- else
2043
+ if (state2[$HAS] && state2[$HAS][property] && prev !== void 0)
2044
+ state2[$HAS][property].$();
2045
+ } else {
2052
2046
  state2[property] = value;
2053
- let nodes = getDataNodes(state2), node;
2054
- if (node = getDataNode(nodes, property, prev))
2047
+ if (state2[$HAS] && state2[$HAS][property] && prev === void 0)
2048
+ state2[$HAS][property].$();
2049
+ }
2050
+ let nodes = getNodes(state2, $NODE), node;
2051
+ if (node = getNode(nodes, property, prev))
2055
2052
  node.$(() => value);
2056
2053
  if (Array.isArray(state2) && state2.length !== len) {
2057
2054
  for (let i2 = state2.length; i2 < len; i2++)
2058
2055
  (node = nodes[i2]) && node.$();
2059
- (node = getDataNode(nodes, "length", len)) && node.$(state2.length);
2056
+ (node = getNode(nodes, "length", len)) && node.$(state2.length);
2060
2057
  }
2061
- (node = nodes._) && node.$();
2058
+ (node = nodes[$SELF]) && node.$();
2062
2059
  }
2063
2060
  function mergeStoreNode(state2, value) {
2064
- const keys3 = Object.keys(value);
2065
- for (let i2 = 0; i2 < keys3.length; i2 += 1) {
2066
- const key = keys3[i2];
2061
+ const keys2 = Object.keys(value);
2062
+ for (let i2 = 0; i2 < keys2.length; i2 += 1) {
2063
+ const key = keys2[i2];
2067
2064
  setProperty(state2, key, value[key]);
2068
2065
  }
2069
2066
  }
@@ -2101,11 +2098,7 @@ function updatePath(current, path, traversed = []) {
2101
2098
  }
2102
2099
  return;
2103
2100
  } else if (isArray4 && partType === "object") {
2104
- const {
2105
- from = 0,
2106
- to = current.length - 1,
2107
- by = 1
2108
- } = part;
2101
+ const { from = 0, to = current.length - 1, by = 1 } = part;
2109
2102
  for (let i2 = from; i2 <= to; i2 += by) {
2110
2103
  updatePath(current, [i2].concat(path), traversed);
2111
2104
  }
@@ -2182,7 +2175,7 @@ function $d6fd23bc337660df$var$getLanguage(locale) {
2182
2175
  return locale.split("-")[0];
2183
2176
  }
2184
2177
 
2185
- // ../../node_modules/.pnpm/@floating-ui+utils@0.1.4/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
2178
+ // ../../node_modules/.pnpm/@floating-ui+utils@0.1.6/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
2186
2179
  var sides = ["top", "right", "bottom", "left"];
2187
2180
  var min = Math.min;
2188
2181
  var max = Math.max;
@@ -2202,7 +2195,7 @@ var oppositeAlignmentMap = {
2202
2195
  start: "end",
2203
2196
  end: "start"
2204
2197
  };
2205
- function clamp3(start, value, end) {
2198
+ function clamp2(start, value, end) {
2206
2199
  return max(start, min(value, end));
2207
2200
  }
2208
2201
  function evaluate(value, param) {
@@ -2545,7 +2538,7 @@ var arrow = (options) => ({
2545
2538
  const min$1 = minPadding;
2546
2539
  const max2 = clientSize - arrowDimensions[length] - maxPadding;
2547
2540
  const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
2548
- const offset2 = clamp3(min$1, center, max2);
2541
+ const offset2 = clamp2(min$1, center, max2);
2549
2542
  const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center != offset2 && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
2550
2543
  const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max2 : 0;
2551
2544
  return {
@@ -2818,14 +2811,14 @@ var shift = function(options) {
2818
2811
  const maxSide = mainAxis === "y" ? "bottom" : "right";
2819
2812
  const min2 = mainAxisCoord + overflow[minSide];
2820
2813
  const max2 = mainAxisCoord - overflow[maxSide];
2821
- mainAxisCoord = clamp3(min2, mainAxisCoord, max2);
2814
+ mainAxisCoord = clamp2(min2, mainAxisCoord, max2);
2822
2815
  }
2823
2816
  if (checkCrossAxis) {
2824
2817
  const minSide = crossAxis === "y" ? "top" : "left";
2825
2818
  const maxSide = crossAxis === "y" ? "bottom" : "right";
2826
2819
  const min2 = crossAxisCoord + overflow[minSide];
2827
2820
  const max2 = crossAxisCoord - overflow[maxSide];
2828
- crossAxisCoord = clamp3(min2, crossAxisCoord, max2);
2821
+ crossAxisCoord = clamp2(min2, crossAxisCoord, max2);
2829
2822
  }
2830
2823
  const limitedCoords = limiter.fn({
2831
2824
  ...state2,
@@ -2919,7 +2912,7 @@ var size = function(options) {
2919
2912
  };
2920
2913
  };
2921
2914
 
2922
- // ../../node_modules/.pnpm/@floating-ui+utils@0.1.4/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.mjs
2915
+ // ../../node_modules/.pnpm/@floating-ui+utils@0.1.6/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.mjs
2923
2916
  function getNodeName(node) {
2924
2917
  if (isNode(node)) {
2925
2918
  return (node.nodeName || "").toLowerCase();
@@ -3457,8 +3450,8 @@ function observeMove(element, onMove) {
3457
3450
  threshold: max(0, min(1, threshold)) || 1
3458
3451
  };
3459
3452
  let isFirstUpdate = true;
3460
- function handleObserve(entries3) {
3461
- const ratio = entries3[0].intersectionRatio;
3453
+ function handleObserve(entries2) {
3454
+ const ratio = entries2[0].intersectionRatio;
3462
3455
  if (ratio !== threshold) {
3463
3456
  if (!isFirstUpdate) {
3464
3457
  return refresh();
@@ -3569,7 +3562,7 @@ var computePosition2 = (reference, floating, options) => {
3569
3562
  });
3570
3563
  };
3571
3564
 
3572
- // ../../node_modules/.pnpm/@kobalte+core@0.11.0_solid-js@1.7.8/node_modules/@kobalte/core/dist/esm/index.js
3565
+ // ../../node_modules/.pnpm/@kobalte+core@0.11.0_solid-js@1.8.1/node_modules/@kobalte/core/dist/esm/index.js
3573
3566
  var ColorModeContext = createContext();
3574
3567
  var COLOR_MODE_STORAGE_KEY = "kb-color-mode";
3575
3568
  function createLocalStorageManager(key) {
@@ -4205,7 +4198,7 @@ var POINTER_DOWN_OUTSIDE_EVENT = "interactOutside.pointerDownOutside";
4205
4198
  var FOCUS_OUTSIDE_EVENT = "interactOutside.focusOutside";
4206
4199
  function createInteractOutside(props, ref) {
4207
4200
  let pointerDownTimeoutId;
4208
- let clickHandler = noop4;
4201
+ let clickHandler = noop3;
4209
4202
  const ownerDocument = () => getDocument(ref());
4210
4203
  const onPointerDownOutside = (e2) => props.onPointerDownOutside?.(e2);
4211
4204
  const onFocusOutside = (e2) => props.onFocusOutside?.(e2);
@@ -4654,11 +4647,11 @@ function createCollator(options) {
4654
4647
  });
4655
4648
  }
4656
4649
  var Selection = class _Selection extends Set {
4657
- constructor(keys3, anchorKey, currentKey) {
4658
- super(keys3);
4659
- if (keys3 instanceof _Selection) {
4660
- this.anchorKey = anchorKey || keys3.anchorKey;
4661
- this.currentKey = currentKey || keys3.currentKey;
4650
+ constructor(keys2, anchorKey, currentKey) {
4651
+ super(keys2);
4652
+ if (keys2 instanceof _Selection) {
4653
+ this.anchorKey = anchorKey || keys2.anchorKey;
4654
+ this.currentKey = currentKey || keys2.currentKey;
4662
4655
  } else {
4663
4656
  this.anchorKey = anchorKey;
4664
4657
  this.currentKey = currentKey;
@@ -4722,9 +4715,9 @@ function createMultipleSelectionState(props) {
4722
4715
  const [selectionBehavior, setSelectionBehavior] = createSignal(access(props.selectionBehavior));
4723
4716
  const selectionMode = () => access(props.selectionMode);
4724
4717
  const disallowEmptySelection = () => access(props.disallowEmptySelection) ?? false;
4725
- const setSelectedKeys = (keys3) => {
4726
- if (access(props.allowDuplicateSelectionEvents) || !isSameSelection(keys3, selectedKeys())) {
4727
- _setSelectedKeys(keys3);
4718
+ const setSelectedKeys = (keys2) => {
4719
+ if (access(props.allowDuplicateSelectionEvents) || !isSameSelection(keys2, selectedKeys())) {
4720
+ _setSelectedKeys(keys2);
4728
4721
  }
4729
4722
  };
4730
4723
  createEffect(() => {
@@ -5339,15 +5332,15 @@ var SelectionManager = class {
5339
5332
  return [];
5340
5333
  }
5341
5334
  getKeyRangeInternal(from, to) {
5342
- const keys3 = [];
5335
+ const keys2 = [];
5343
5336
  let key = from;
5344
5337
  while (key != null) {
5345
5338
  const item = this.collection().getItem(key);
5346
5339
  if (item && item.type === "item") {
5347
- keys3.push(key);
5340
+ keys2.push(key);
5348
5341
  }
5349
5342
  if (key === to) {
5350
- return keys3;
5343
+ return keys2;
5351
5344
  }
5352
5345
  key = this.collection().getKeyAfter(key);
5353
5346
  }
@@ -5376,18 +5369,18 @@ var SelectionManager = class {
5376
5369
  if (retrievedKey == null) {
5377
5370
  return;
5378
5371
  }
5379
- const keys3 = new Selection(this.state.selectedKeys());
5380
- if (keys3.has(retrievedKey)) {
5381
- keys3.delete(retrievedKey);
5372
+ const keys2 = new Selection(this.state.selectedKeys());
5373
+ if (keys2.has(retrievedKey)) {
5374
+ keys2.delete(retrievedKey);
5382
5375
  } else if (this.canSelectItem(retrievedKey)) {
5383
- keys3.add(retrievedKey);
5384
- keys3.anchorKey = retrievedKey;
5385
- keys3.currentKey = retrievedKey;
5376
+ keys2.add(retrievedKey);
5377
+ keys2.anchorKey = retrievedKey;
5378
+ keys2.currentKey = retrievedKey;
5386
5379
  }
5387
- if (this.disallowEmptySelection() && keys3.size === 0) {
5380
+ if (this.disallowEmptySelection() && keys2.size === 0) {
5388
5381
  return;
5389
5382
  }
5390
- this.state.setSelectedKeys(keys3);
5383
+ this.state.setSelectedKeys(keys2);
5391
5384
  }
5392
5385
  /** Replaces the selection with only the given key. */
5393
5386
  replaceSelection(key) {
@@ -5402,12 +5395,12 @@ var SelectionManager = class {
5402
5395
  this.state.setSelectedKeys(selection);
5403
5396
  }
5404
5397
  /** Replaces the selection with the given keys. */
5405
- setSelectedKeys(keys3) {
5398
+ setSelectedKeys(keys2) {
5406
5399
  if (this.selectionMode() === "none") {
5407
5400
  return;
5408
5401
  }
5409
5402
  const selection = new Selection();
5410
- for (const key of keys3) {
5403
+ for (const key of keys2) {
5411
5404
  const retrievedKey = this.getKey(key);
5412
5405
  if (retrievedKey != null) {
5413
5406
  selection.add(retrievedKey);
@@ -5492,7 +5485,7 @@ var SelectionManager = class {
5492
5485
  return !item || item.disabled;
5493
5486
  }
5494
5487
  getAllSelectableKeys() {
5495
- const keys3 = [];
5488
+ const keys2 = [];
5496
5489
  const addKeys = (key) => {
5497
5490
  while (key != null) {
5498
5491
  if (this.canSelectItem(key)) {
@@ -5501,14 +5494,14 @@ var SelectionManager = class {
5501
5494
  continue;
5502
5495
  }
5503
5496
  if (item.type === "item") {
5504
- keys3.push(key);
5497
+ keys2.push(key);
5505
5498
  }
5506
5499
  }
5507
5500
  key = this.collection().getKeyAfter(key);
5508
5501
  }
5509
5502
  };
5510
5503
  addKeys(this.collection().getFirstKey());
5511
- return keys3;
5504
+ return keys2;
5512
5505
  }
5513
5506
  };
5514
5507
  var ListCollection = class {
@@ -5564,8 +5557,8 @@ var ListCollection = class {
5564
5557
  return this.keyMap.get(key);
5565
5558
  }
5566
5559
  at(idx) {
5567
- const keys3 = [...this.getKeys()];
5568
- return this.getItem(keys3[idx]);
5560
+ const keys2 = [...this.getKeys()];
5561
+ return this.getItem(keys2[idx]);
5569
5562
  }
5570
5563
  };
5571
5564
  function createListState(props) {
@@ -8969,12 +8962,12 @@ var untransformValue = function(json, type, superJson) {
8969
8962
 
8970
8963
  // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/accessDeep.js
8971
8964
  var getNthKey = function(value, n2) {
8972
- var keys3 = value.keys();
8965
+ var keys2 = value.keys();
8973
8966
  while (n2 > 0) {
8974
- keys3.next();
8967
+ keys2.next();
8975
8968
  n2--;
8976
8969
  }
8977
- return keys3.next().value;
8970
+ return keys2.next().value;
8978
8971
  };
8979
8972
  function validatePath(path) {
8980
8973
  if (includes(path, "__proto__")) {
@@ -9284,7 +9277,7 @@ function isOneOf(a2, b2, c2, d, e2) {
9284
9277
  return (value) => a2(value) || b2(value) || !!c2 && c2(value) || !!d && d(value) || !!e2 && e2(value);
9285
9278
  }
9286
9279
 
9287
- // ../../node_modules/.pnpm/copy-anything@3.0.2/node_modules/copy-anything/dist/index.es.js
9280
+ // ../../node_modules/.pnpm/copy-anything@3.0.5/node_modules/copy-anything/dist/index.js
9288
9281
  function assignProp(carry, key, newVal, originalObject, includeNonenumerable) {
9289
9282
  const propType = {}.propertyIsEnumerable.call(originalObject, key) ? "enumerable" : "nonenumerable";
9290
9283
  if (propType === "enumerable")
@@ -9477,6 +9470,19 @@ var sortFns = {
9477
9470
  var convertRemToPixels = (rem) => {
9478
9471
  return rem * parseFloat(getComputedStyle(document.documentElement).fontSize);
9479
9472
  };
9473
+ var getPreferredColorScheme = () => {
9474
+ const [colorScheme, setColorScheme] = createSignal("dark");
9475
+ onMount(() => {
9476
+ const query = window.matchMedia("(prefers-color-scheme: dark)");
9477
+ setColorScheme(query.matches ? "dark" : "light");
9478
+ const listener = (e2) => {
9479
+ setColorScheme(e2.matches ? "dark" : "light");
9480
+ };
9481
+ query.addEventListener("change", listener);
9482
+ onCleanup(() => query.removeEventListener("change", listener));
9483
+ });
9484
+ return colorScheme;
9485
+ };
9480
9486
  var updateNestedDataByPath = (oldData, updatePath2, value) => {
9481
9487
  if (updatePath2.length === 0) {
9482
9488
  return value;
@@ -9568,7 +9574,7 @@ function Search() {
9568
9574
  xmlns="http://www.w3.org/2000/svg"
9569
9575
  ><path
9570
9576
  d="M13 13L9.00007 9M10.3333 5.66667C10.3333 8.244 8.244 10.3333 5.66667 10.3333C3.08934 10.3333 1 8.244 1 5.66667C1 3.08934 3.08934 1 5.66667 1C8.244 1 10.3333 3.08934 10.3333 5.66667Z"
9571
- stroke="#98A2B3"
9577
+ stroke="currentColor"
9572
9578
  stroke-width="1.66667"
9573
9579
  stroke-linecap="round"
9574
9580
  stroke-linejoin="round"
@@ -9583,8 +9589,8 @@ function Trash() {
9583
9589
  xmlns="http://www.w3.org/2000/svg"
9584
9590
  ><path
9585
9591
  d="M9 3H15M3 6H21M19 6L18.2987 16.5193C18.1935 18.0975 18.1409 18.8867 17.8 19.485C17.4999 20.0118 17.0472 20.4353 16.5017 20.6997C15.882 21 15.0911 21 13.5093 21H10.4907C8.90891 21 8.11803 21 7.49834 20.6997C6.95276 20.4353 6.50009 20.0118 6.19998 19.485C5.85911 18.8867 5.8065 18.0975 5.70129 16.5193L5 6M10 10.5V15.5M14 10.5V15.5"
9586
- stroke="#d0d5dd"
9587
- stroke-width="1.66667"
9592
+ stroke="currentColor"
9593
+ stroke-width="2"
9588
9594
  stroke-linecap="round"
9589
9595
  stroke-linejoin="round"
9590
9596
  /></svg>;
@@ -9598,7 +9604,7 @@ function ChevronDown() {
9598
9604
  xmlns="http://www.w3.org/2000/svg"
9599
9605
  ><path
9600
9606
  d="M1 1L5 5L9 1"
9601
- stroke="#98A2B3"
9607
+ stroke="currentColor"
9602
9608
  stroke-width="1.66667"
9603
9609
  stroke-linecap="round"
9604
9610
  stroke-linejoin="round"
@@ -9613,7 +9619,7 @@ function ArrowUp() {
9613
9619
  xmlns="http://www.w3.org/2000/svg"
9614
9620
  ><path
9615
9621
  d="M8 13.3333V2.66667M8 2.66667L4 6.66667M8 2.66667L12 6.66667"
9616
- stroke="#98A2B3"
9622
+ stroke="currentColor"
9617
9623
  stroke-width="1.66667"
9618
9624
  stroke-linecap="round"
9619
9625
  stroke-linejoin="round"
@@ -9628,7 +9634,7 @@ function ArrowDown() {
9628
9634
  xmlns="http://www.w3.org/2000/svg"
9629
9635
  ><path
9630
9636
  d="M8 2.66667V13.3333M8 13.3333L4 9.33333M8 13.3333L12 9.33333"
9631
- stroke="#98A2B3"
9637
+ stroke="currentColor"
9632
9638
  stroke-width="1.66667"
9633
9639
  stroke-linecap="round"
9634
9640
  stroke-linejoin="round"
@@ -9646,7 +9652,7 @@ function ArrowLeft() {
9646
9652
  }}
9647
9653
  ><path
9648
9654
  d="M8 2.66667V13.3333M8 13.3333L4 9.33333M8 13.3333L12 9.33333"
9649
- stroke="#98A2B3"
9655
+ stroke="currentColor"
9650
9656
  stroke-width="1.66667"
9651
9657
  stroke-linecap="round"
9652
9658
  stroke-linejoin="round"
@@ -9664,16 +9670,61 @@ function ArrowRight() {
9664
9670
  }}
9665
9671
  ><path
9666
9672
  d="M8 2.66667V13.3333M8 13.3333L4 9.33333M8 13.3333L12 9.33333"
9667
- stroke="#98A2B3"
9673
+ stroke="currentColor"
9668
9674
  stroke-width="1.66667"
9669
9675
  stroke-linecap="round"
9670
9676
  stroke-linejoin="round"
9671
9677
  /></svg>;
9672
9678
  }
9679
+ function Sun() {
9680
+ return <svg
9681
+ viewBox="0 0 24 24"
9682
+ height="12"
9683
+ width="12"
9684
+ fill="none"
9685
+ xmlns="http://www.w3.org/2000/svg"
9686
+ ><path
9687
+ d="M12 2v2m0 16v2M4 12H2m4.314-5.686L4.9 4.9m12.786 1.414L19.1 4.9M6.314 17.69 4.9 19.104m12.786-1.414 1.414 1.414M22 12h-2m-3 0a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"
9688
+ stroke="currentColor"
9689
+ stroke-width="2"
9690
+ stroke-linecap="round"
9691
+ stroke-linejoin="round"
9692
+ /></svg>;
9693
+ }
9694
+ function Moon() {
9695
+ return <svg
9696
+ viewBox="0 0 24 24"
9697
+ height="12"
9698
+ width="12"
9699
+ fill="none"
9700
+ xmlns="http://www.w3.org/2000/svg"
9701
+ ><path
9702
+ d="M22 15.844a10.424 10.424 0 0 1-4.306.925c-5.779 0-10.463-4.684-10.463-10.462 0-1.536.33-2.994.925-4.307A10.464 10.464 0 0 0 2 11.538C2 17.316 6.684 22 12.462 22c4.243 0 7.896-2.526 9.538-6.156Z"
9703
+ stroke="currentColor"
9704
+ stroke-width="2"
9705
+ stroke-linecap="round"
9706
+ stroke-linejoin="round"
9707
+ /></svg>;
9708
+ }
9709
+ function Monitor() {
9710
+ return <svg
9711
+ viewBox="0 0 24 24"
9712
+ height="12"
9713
+ width="12"
9714
+ fill="none"
9715
+ xmlns="http://www.w3.org/2000/svg"
9716
+ ><path
9717
+ d="M8 21h8m-4-4v4m-5.2-4h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 14.72 22 13.88 22 12.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v4.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 17 5.12 17 6.8 17Z"
9718
+ stroke="currentColor"
9719
+ stroke-width="2"
9720
+ stroke-linecap="round"
9721
+ stroke-linejoin="round"
9722
+ /></svg>;
9723
+ }
9673
9724
  function Wifi() {
9674
9725
  return <svg
9675
- stroke="#d0d5dd"
9676
- fill="#d0d5dd"
9726
+ stroke="currentColor"
9727
+ fill="currentColor"
9677
9728
  stroke-width="0"
9678
9729
  viewBox="0 0 24 24"
9679
9730
  height="1em"
@@ -9686,8 +9737,6 @@ function Wifi() {
9686
9737
  }
9687
9738
  function Offline() {
9688
9739
  return <svg
9689
- stroke={tokens.colors.yellow[500]}
9690
- fill={tokens.colors.yellow[500]}
9691
9740
  stroke-width="0"
9692
9741
  viewBox="0 0 24 24"
9693
9742
  height="1em"
@@ -9711,14 +9760,14 @@ function Settings() {
9711
9760
  >
9712
9761
  <path
9713
9762
  d="M9.3951 19.3711L9.97955 20.6856C10.1533 21.0768 10.4368 21.4093 10.7958 21.6426C11.1547 21.8759 11.5737 22.0001 12.0018 22C12.4299 22.0001 12.8488 21.8759 13.2078 21.6426C13.5667 21.4093 13.8503 21.0768 14.024 20.6856L14.6084 19.3711C14.8165 18.9047 15.1664 18.5159 15.6084 18.26C16.0532 18.0034 16.5678 17.8941 17.0784 17.9478L18.5084 18.1C18.9341 18.145 19.3637 18.0656 19.7451 17.8713C20.1265 17.6771 20.4434 17.3763 20.6573 17.0056C20.8715 16.635 20.9735 16.2103 20.9511 15.7829C20.9286 15.3555 20.7825 14.9438 20.5307 14.5978L19.684 13.4344C19.3825 13.0171 19.2214 12.5148 19.224 12C19.2239 11.4866 19.3865 10.9864 19.6884 10.5711L20.5351 9.40778C20.787 9.06175 20.933 8.65007 20.9555 8.22267C20.978 7.79528 20.8759 7.37054 20.6618 7C20.4479 6.62923 20.131 6.32849 19.7496 6.13423C19.3681 5.93997 18.9386 5.86053 18.5129 5.90556L17.0829 6.05778C16.5722 6.11141 16.0577 6.00212 15.6129 5.74556C15.17 5.48825 14.82 5.09736 14.6129 4.62889L14.024 3.31444C13.8503 2.92317 13.5667 2.59072 13.2078 2.3574C12.8488 2.12408 12.4299 1.99993 12.0018 2C11.5737 1.99993 11.1547 2.12408 10.7958 2.3574C10.4368 2.59072 10.1533 2.92317 9.97955 3.31444L9.3951 4.62889C9.18803 5.09736 8.83798 5.48825 8.3951 5.74556C7.95032 6.00212 7.43577 6.11141 6.9251 6.05778L5.49066 5.90556C5.06499 5.86053 4.6354 5.93997 4.25397 6.13423C3.87255 6.32849 3.55567 6.62923 3.34177 7C3.12759 7.37054 3.02555 7.79528 3.04804 8.22267C3.07052 8.65007 3.21656 9.06175 3.46844 9.40778L4.3151 10.5711C4.61704 10.9864 4.77964 11.4866 4.77955 12C4.77964 12.5134 4.61704 13.0137 4.3151 13.4289L3.46844 14.5922C3.21656 14.9382 3.07052 15.3499 3.04804 15.7773C3.02555 16.2047 3.12759 16.6295 3.34177 17C3.55589 17.3706 3.8728 17.6712 4.25417 17.8654C4.63554 18.0596 5.06502 18.1392 5.49066 18.0944L6.92066 17.9422C7.43133 17.8886 7.94587 17.9979 8.39066 18.2544C8.83519 18.511 9.18687 18.902 9.3951 19.3711Z"
9714
- stroke="#d0d5dd"
9763
+ stroke="currentColor"
9715
9764
  stroke-width="2"
9716
9765
  stroke-linecap="round"
9717
9766
  stroke-linejoin="round"
9718
9767
  />
9719
9768
  <path
9720
9769
  d="M12 15C13.6568 15 15 13.6569 15 12C15 10.3431 13.6568 9 12 9C10.3431 9 8.99998 10.3431 8.99998 12C8.99998 13.6569 10.3431 15 12 15Z"
9721
- stroke="#d0d5dd"
9770
+ stroke="currentColor"
9722
9771
  stroke-width="2"
9723
9772
  stroke-linecap="round"
9724
9773
  stroke-linejoin="round"
@@ -9738,10 +9787,10 @@ function Copier() {
9738
9787
  stroke-width="2"
9739
9788
  stroke-linecap="round"
9740
9789
  stroke-linejoin="round"
9741
- stroke="#98A2B3"
9790
+ stroke="currentColor"
9742
9791
  /></svg>;
9743
9792
  }
9744
- function CopiedCopier() {
9793
+ function CopiedCopier(props) {
9745
9794
  return <svg
9746
9795
  width="24"
9747
9796
  height="24"
@@ -9750,7 +9799,7 @@ function CopiedCopier() {
9750
9799
  xmlns="http://www.w3.org/2000/svg"
9751
9800
  ><path
9752
9801
  d="M7.5 12L10.5 15L16.5 9M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"
9753
- stroke="#12B76A"
9802
+ stroke={props.theme === "dark" ? "#12B76A" : "#027A48"}
9754
9803
  stroke-width="2"
9755
9804
  stroke-linecap="round"
9756
9805
  stroke-linejoin="round"
@@ -9777,7 +9826,7 @@ function List() {
9777
9826
  height="24"
9778
9827
  viewBox="0 0 24 24"
9779
9828
  fill="none"
9780
- stroke="#98A2B3"
9829
+ stroke="currentColor"
9781
9830
  stroke-width="2"
9782
9831
  xmlns="http://www.w3.org/2000/svg"
9783
9832
  >
@@ -9787,10 +9836,41 @@ function List() {
9787
9836
  <line class="list-item" y1="17" y2="17" x1="6" x2="18" />
9788
9837
  </svg>;
9789
9838
  }
9839
+ function Check(props) {
9840
+ return <>
9841
+ <Show when={props.checked}><svg
9842
+ width="24"
9843
+ height="24"
9844
+ viewBox="0 0 24 24"
9845
+ fill="none"
9846
+ xmlns="http://www.w3.org/2000/svg"
9847
+ ><path
9848
+ d="M7.5 12L10.5 15L16.5 9M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"
9849
+ stroke={props.theme === "dark" ? "#9B8AFB" : "#6938EF"}
9850
+ stroke-width="2"
9851
+ stroke-linecap="round"
9852
+ stroke-linejoin="round"
9853
+ /></svg></Show>
9854
+ <Show when={!props.checked}><svg
9855
+ viewBox="0 0 24 24"
9856
+ height="20"
9857
+ width="20"
9858
+ fill="none"
9859
+ xmlns="http://www.w3.org/2000/svg"
9860
+ ><path
9861
+ d="M3 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8Z"
9862
+ stroke={props.theme === "dark" ? "#9B8AFB" : "#6938EF"}
9863
+ stroke-width="2"
9864
+ stroke-linecap="round"
9865
+ stroke-linejoin="round"
9866
+ /></svg></Show>
9867
+ </>;
9868
+ }
9790
9869
  function TanstackLogo() {
9870
+ const id = createUniqueId();
9791
9871
  return <svg version="1.0" viewBox="0 0 633 633">
9792
9872
  <linearGradient
9793
- id="a"
9873
+ id={`a-${id}`}
9794
9874
  x1="-666.45"
9795
9875
  x2="-666.45"
9796
9876
  y1="163.28"
@@ -9803,9 +9883,9 @@ function TanstackLogo() {
9803
9883
  <stop stop-color="#FFA770" offset=".71" />
9804
9884
  <stop stop-color="#FF7373" offset="1" />
9805
9885
  </linearGradient>
9806
- <circle cx="316.5" cy="316.5" r="316.5" fill="url(#a)" />
9886
+ <circle cx="316.5" cy="316.5" r="316.5" fill={`url(#a-${id})`} />
9807
9887
  <defs><filter
9808
- id="am"
9888
+ id={`am-${id}`}
9809
9889
  x="-137.5"
9810
9890
  y="412"
9811
9891
  width="454"
@@ -9813,14 +9893,14 @@ function TanstackLogo() {
9813
9893
  filterUnits="userSpaceOnUse"
9814
9894
  ><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0" /></filter></defs>
9815
9895
  <mask
9816
- id="b"
9896
+ id={`b-${id}`}
9817
9897
  x="-137.5"
9818
9898
  y="412"
9819
9899
  width="454"
9820
9900
  height="396.9"
9821
9901
  maskUnits="userSpaceOnUse"
9822
- ><g filter="url(#am)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
9823
- <g mask="url(#b)"><ellipse
9902
+ ><g filter={`url(#am-${id})`}><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
9903
+ <g mask={`url(#b-${id})`}><ellipse
9824
9904
  cx="89.5"
9825
9905
  cy="610.5"
9826
9906
  rx="214.5"
@@ -9830,7 +9910,7 @@ function TanstackLogo() {
9830
9910
  stroke-width="25"
9831
9911
  /></g>
9832
9912
  <defs><filter
9833
- id="ah"
9913
+ id={`ah-${id}`}
9834
9914
  x="316.5"
9835
9915
  y="412"
9836
9916
  width="454"
@@ -9838,14 +9918,14 @@ function TanstackLogo() {
9838
9918
  filterUnits="userSpaceOnUse"
9839
9919
  ><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0" /></filter></defs>
9840
9920
  <mask
9841
- id="k"
9921
+ id={`k-${id}`}
9842
9922
  x="316.5"
9843
9923
  y="412"
9844
9924
  width="454"
9845
9925
  height="396.9"
9846
9926
  maskUnits="userSpaceOnUse"
9847
- ><g filter="url(#ah)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
9848
- <g mask="url(#k)"><ellipse
9927
+ ><g filter={`url(#ah-${id})`}><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
9928
+ <g mask={`url(#k-${id})`}><ellipse
9849
9929
  cx="543.5"
9850
9930
  cy="610.5"
9851
9931
  rx="214.5"
@@ -9855,7 +9935,7 @@ function TanstackLogo() {
9855
9935
  stroke-width="25"
9856
9936
  /></g>
9857
9937
  <defs><filter
9858
- id="ae"
9938
+ id={`ae-${id}`}
9859
9939
  x="-137.5"
9860
9940
  y="450"
9861
9941
  width="454"
@@ -9863,14 +9943,14 @@ function TanstackLogo() {
9863
9943
  filterUnits="userSpaceOnUse"
9864
9944
  ><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0" /></filter></defs>
9865
9945
  <mask
9866
- id="j"
9946
+ id={`j-${id}`}
9867
9947
  x="-137.5"
9868
9948
  y="450"
9869
9949
  width="454"
9870
9950
  height="396.9"
9871
9951
  maskUnits="userSpaceOnUse"
9872
- ><g filter="url(#ae)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
9873
- <g mask="url(#j)"><ellipse
9952
+ ><g filter={`url(#ae-${id})`}><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
9953
+ <g mask={`url(#j-${id})`}><ellipse
9874
9954
  cx="89.5"
9875
9955
  cy="648.5"
9876
9956
  rx="214.5"
@@ -9880,7 +9960,7 @@ function TanstackLogo() {
9880
9960
  stroke-width="25"
9881
9961
  /></g>
9882
9962
  <defs><filter
9883
- id="ai"
9963
+ id={`ai-${id}`}
9884
9964
  x="316.5"
9885
9965
  y="450"
9886
9966
  width="454"
@@ -9888,14 +9968,14 @@ function TanstackLogo() {
9888
9968
  filterUnits="userSpaceOnUse"
9889
9969
  ><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0" /></filter></defs>
9890
9970
  <mask
9891
- id="i"
9971
+ id={`i-${id}`}
9892
9972
  x="316.5"
9893
9973
  y="450"
9894
9974
  width="454"
9895
9975
  height="396.9"
9896
9976
  maskUnits="userSpaceOnUse"
9897
- ><g filter="url(#ai)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
9898
- <g mask="url(#i)"><ellipse
9977
+ ><g filter={`url(#ai-${id})`}><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
9978
+ <g mask={`url(#i-${id})`}><ellipse
9899
9979
  cx="543.5"
9900
9980
  cy="648.5"
9901
9981
  rx="214.5"
@@ -9905,7 +9985,7 @@ function TanstackLogo() {
9905
9985
  stroke-width="25"
9906
9986
  /></g>
9907
9987
  <defs><filter
9908
- id="aj"
9988
+ id={`aj-${id}`}
9909
9989
  x="-137.5"
9910
9990
  y="486"
9911
9991
  width="454"
@@ -9913,14 +9993,14 @@ function TanstackLogo() {
9913
9993
  filterUnits="userSpaceOnUse"
9914
9994
  ><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0" /></filter></defs>
9915
9995
  <mask
9916
- id="h"
9996
+ id={`h-${id}`}
9917
9997
  x="-137.5"
9918
9998
  y="486"
9919
9999
  width="454"
9920
10000
  height="396.9"
9921
10001
  maskUnits="userSpaceOnUse"
9922
- ><g filter="url(#aj)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
9923
- <g mask="url(#h)"><ellipse
10002
+ ><g filter={`url(#aj-${id})`}><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
10003
+ <g mask={`url(#h-${id})`}><ellipse
9924
10004
  cx="89.5"
9925
10005
  cy="684.5"
9926
10006
  rx="214.5"
@@ -9930,7 +10010,7 @@ function TanstackLogo() {
9930
10010
  stroke-width="25"
9931
10011
  /></g>
9932
10012
  <defs><filter
9933
- id="ag"
10013
+ id={`ag-${id}`}
9934
10014
  x="316.5"
9935
10015
  y="486"
9936
10016
  width="454"
@@ -9938,14 +10018,14 @@ function TanstackLogo() {
9938
10018
  filterUnits="userSpaceOnUse"
9939
10019
  ><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0" /></filter></defs>
9940
10020
  <mask
9941
- id="g"
10021
+ id={`g-${id}`}
9942
10022
  x="316.5"
9943
10023
  y="486"
9944
10024
  width="454"
9945
10025
  height="396.9"
9946
10026
  maskUnits="userSpaceOnUse"
9947
- ><g filter="url(#ag)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
9948
- <g mask="url(#g)"><ellipse
10027
+ ><g filter={`url(#ag-${id})`}><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
10028
+ <g mask={`url(#g-${id})`}><ellipse
9949
10029
  cx="543.5"
9950
10030
  cy="684.5"
9951
10031
  rx="214.5"
@@ -9955,7 +10035,7 @@ function TanstackLogo() {
9955
10035
  stroke-width="25"
9956
10036
  /></g>
9957
10037
  <defs><filter
9958
- id="af"
10038
+ id={`af-${id}`}
9959
10039
  x="272.2"
9960
10040
  y="308"
9961
10041
  width="176.9"
@@ -9963,14 +10043,14 @@ function TanstackLogo() {
9963
10043
  filterUnits="userSpaceOnUse"
9964
10044
  ><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0" /></filter></defs>
9965
10045
  <mask
9966
- id="f"
10046
+ id={`f-${id}`}
9967
10047
  x="272.2"
9968
10048
  y="308"
9969
10049
  width="176.9"
9970
10050
  height="129.3"
9971
10051
  maskUnits="userSpaceOnUse"
9972
- ><g filter="url(#af)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
9973
- <g mask="url(#f)">
10052
+ ><g filter={`url(#af-${id})`}><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
10053
+ <g mask={`url(#f-${id})`}>
9974
10054
  <line
9975
10055
  x1="436"
9976
10056
  x2="431"
@@ -10005,7 +10085,7 @@ function TanstackLogo() {
10005
10085
  stroke-width="11"
10006
10086
  />
10007
10087
  <linearGradient
10008
- id="m"
10088
+ id={`m-${id}`}
10009
10089
  x1="-670.75"
10010
10090
  x2="-671.59"
10011
10091
  y1="164.4"
@@ -10019,7 +10099,7 @@ function TanstackLogo() {
10019
10099
  <path
10020
10100
  d="m344.1 363 97.7 17.2c5.8 2.1 8.2 6.1 7.1 12.1s-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1 0.8-12.8s8.3-4.4 13.7-2.1l55.2 53.6z"
10021
10101
  clip-rule="evenodd"
10022
- fill="url(#m)"
10102
+ fill={`url(#m-${id})`}
10023
10103
  fill-rule="evenodd"
10024
10104
  />
10025
10105
  <line
@@ -10079,7 +10159,7 @@ function TanstackLogo() {
10079
10159
  />
10080
10160
  </g>
10081
10161
  <defs><filter
10082
- id="ak"
10162
+ id={`ak-${id}`}
10083
10163
  x="73.2"
10084
10164
  y="113.8"
10085
10165
  width="280.6"
@@ -10087,16 +10167,16 @@ function TanstackLogo() {
10087
10167
  filterUnits="userSpaceOnUse"
10088
10168
  ><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0" /></filter></defs>
10089
10169
  <mask
10090
- id="e"
10170
+ id={`e-${id}`}
10091
10171
  x="73.2"
10092
10172
  y="113.8"
10093
10173
  width="280.6"
10094
10174
  height="317.4"
10095
10175
  maskUnits="userSpaceOnUse"
10096
- ><g filter="url(#ak)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
10097
- <g mask="url(#e)">
10176
+ ><g filter={`url(#ak-${id})`}><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
10177
+ <g mask={`url(#e-${id})`}>
10098
10178
  <linearGradient
10099
- id="n"
10179
+ id={`n-${id}`}
10100
10180
  x1="-672.16"
10101
10181
  x2="-672.16"
10102
10182
  y1="165.03"
@@ -10110,12 +10190,12 @@ function TanstackLogo() {
10110
10190
  <path
10111
10191
  d="m192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.1-3 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6s-10.8-51.9-22.1-99.6l-25.3 4.6"
10112
10192
  clip-rule="evenodd"
10113
- fill="url(#n)"
10193
+ fill={`url(#n-${id})`}
10114
10194
  fill-rule="evenodd"
10115
10195
  />
10116
10196
  <g stroke="#2F8A00">
10117
10197
  <linearGradient
10118
- id="r"
10198
+ id={`r-${id}`}
10119
10199
  x1="-660.23"
10120
10200
  x2="-660.23"
10121
10201
  y1="166.72"
@@ -10129,12 +10209,12 @@ function TanstackLogo() {
10129
10209
  <path
10130
10210
  d="m195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z"
10131
10211
  clip-rule="evenodd"
10132
- fill="url(#r)"
10212
+ fill={`url(#r-${id})`}
10133
10213
  fill-rule="evenodd"
10134
10214
  stroke-width="13"
10135
10215
  />
10136
10216
  <linearGradient
10137
- id="s"
10217
+ id={`s-${id}`}
10138
10218
  x1="-661.36"
10139
10219
  x2="-661.36"
10140
10220
  y1="164.18"
@@ -10148,12 +10228,12 @@ function TanstackLogo() {
10148
10228
  <path
10149
10229
  d="m194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.4 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20.2 49.6-53.2 49.6-53.2z"
10150
10230
  clip-rule="evenodd"
10151
- fill="url(#s)"
10231
+ fill={`url(#s-${id})`}
10152
10232
  fill-rule="evenodd"
10153
10233
  stroke-width="13"
10154
10234
  />
10155
10235
  <linearGradient
10156
- id="q"
10236
+ id={`q-${id}`}
10157
10237
  x1="-656.79"
10158
10238
  x2="-656.79"
10159
10239
  y1="165.15"
@@ -10167,12 +10247,12 @@ function TanstackLogo() {
10167
10247
  <path
10168
10248
  d="m195 183.9c-0.8-21.9 6-38 20.6-48.2s29.8-15.4 45.5-15.3c-6.1 21.4-14.5 35.8-25.2 43.4s-24.4 14.2-40.9 20.1z"
10169
10249
  clip-rule="evenodd"
10170
- fill="url(#q)"
10250
+ fill={`url(#q-${id})`}
10171
10251
  fill-rule="evenodd"
10172
10252
  stroke-width="13"
10173
10253
  />
10174
10254
  <linearGradient
10175
- id="p"
10255
+ id={`p-${id}`}
10176
10256
  x1="-663.07"
10177
10257
  x2="-663.07"
10178
10258
  y1="165.44"
@@ -10186,12 +10266,12 @@ function TanstackLogo() {
10186
10266
  <path
10187
10267
  d="m194.9 184.5c31.9-30 64.1-39.7 96.7-29s50.8 30.4 54.6 59.1c-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z"
10188
10268
  clip-rule="evenodd"
10189
- fill="url(#p)"
10269
+ fill={`url(#p-${id})`}
10190
10270
  fill-rule="evenodd"
10191
10271
  stroke-width="13"
10192
10272
  />
10193
10273
  <linearGradient
10194
- id="o"
10274
+ id={`o-${id}`}
10195
10275
  x1="-662.57"
10196
10276
  x2="-662.57"
10197
10277
  y1="164.44"
@@ -10205,12 +10285,12 @@ function TanstackLogo() {
10205
10285
  <path
10206
10286
  d="m194.9 184.5c35.8-7.6 65.6-0.2 89.2 22s37.7 49 42.3 80.3c-39.8-9.7-68.3-23.8-85.5-42.4s-32.5-38.5-46-59.9z"
10207
10287
  clip-rule="evenodd"
10208
- fill="url(#o)"
10288
+ fill={`url(#o-${id})`}
10209
10289
  fill-rule="evenodd"
10210
10290
  stroke-width="13"
10211
10291
  />
10212
10292
  <linearGradient
10213
- id="l"
10293
+ id={`l-${id}`}
10214
10294
  x1="-656.43"
10215
10295
  x2="-656.43"
10216
10296
  y1="163.86"
@@ -10224,7 +10304,7 @@ function TanstackLogo() {
10224
10304
  <path
10225
10305
  d="m194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6s-3.6 63.1 8.7 99.6c27.4-40.3 43.2-69.6 47.4-88s5.6-44.1 4-77.2z"
10226
10306
  clip-rule="evenodd"
10227
- fill="url(#l)"
10307
+ fill={`url(#l-${id})`}
10228
10308
  fill-rule="evenodd"
10229
10309
  stroke-width="13"
10230
10310
  />
@@ -10255,7 +10335,7 @@ function TanstackLogo() {
10255
10335
  </g>
10256
10336
  </g>
10257
10337
  <defs><filter
10258
- id="al"
10338
+ id={`al-${id}`}
10259
10339
  x="50.5"
10260
10340
  y="399"
10261
10341
  width="532"
@@ -10263,16 +10343,16 @@ function TanstackLogo() {
10263
10343
  filterUnits="userSpaceOnUse"
10264
10344
  ><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0" /></filter></defs>
10265
10345
  <mask
10266
- id="d"
10346
+ id={`d-${id}`}
10267
10347
  x="50.5"
10268
10348
  y="399"
10269
10349
  width="532"
10270
10350
  height="633"
10271
10351
  maskUnits="userSpaceOnUse"
10272
- ><g filter="url(#al)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
10273
- <g mask="url(#d)">
10352
+ ><g filter={`url(#al-${id})`}><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
10353
+ <g mask={`url(#d-${id})`}>
10274
10354
  <linearGradient
10275
- id="u"
10355
+ id={`u-${id}`}
10276
10356
  x1="-666.06"
10277
10357
  x2="-666.23"
10278
10358
  y1="163.36"
@@ -10283,10 +10363,16 @@ function TanstackLogo() {
10283
10363
  <stop stop-color="#FFF400" offset="0" />
10284
10364
  <stop stop-color="#3C8700" offset="1" />
10285
10365
  </linearGradient>
10286
- <ellipse cx="316.5" cy="715.5" rx="266" ry="316.5" fill="url(#u)" />
10366
+ <ellipse
10367
+ cx="316.5"
10368
+ cy="715.5"
10369
+ rx="266"
10370
+ ry="316.5"
10371
+ fill={`url(#u-${id})`}
10372
+ />
10287
10373
  </g>
10288
10374
  <defs><filter
10289
- id="ad"
10375
+ id={`ad-${id}`}
10290
10376
  x="391"
10291
10377
  y="-24"
10292
10378
  width="288"
@@ -10294,16 +10380,16 @@ function TanstackLogo() {
10294
10380
  filterUnits="userSpaceOnUse"
10295
10381
  ><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0" /></filter></defs>
10296
10382
  <mask
10297
- id="c"
10383
+ id={`c-${id}`}
10298
10384
  x="391"
10299
10385
  y="-24"
10300
10386
  width="288"
10301
10387
  height="283"
10302
10388
  maskUnits="userSpaceOnUse"
10303
- ><g filter="url(#ad)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
10304
- <g mask="url(#c)">
10389
+ ><g filter={`url(#ad-${id})`}><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
10390
+ <g mask={`url(#c-${id})`}>
10305
10391
  <linearGradient
10306
- id="t"
10392
+ id={`t-${id}`}
10307
10393
  x1="-664.56"
10308
10394
  x2="-664.56"
10309
10395
  y1="163.79"
@@ -10314,9 +10400,9 @@ function TanstackLogo() {
10314
10400
  <stop stop-color="#FFDF00" offset="0" />
10315
10401
  <stop stop-color="#FF9D00" offset="1" />
10316
10402
  </linearGradient>
10317
- <circle cx="565.5" cy="89.5" r="113.5" fill="url(#t)" />
10403
+ <circle cx="565.5" cy="89.5" r="113.5" fill={`url(#t-${id})`} />
10318
10404
  <linearGradient
10319
- id="v"
10405
+ id={`v-${id}`}
10320
10406
  x1="-644.5"
10321
10407
  x2="-645.77"
10322
10408
  y1="342"
@@ -10333,13 +10419,13 @@ function TanstackLogo() {
10333
10419
  y1="89"
10334
10420
  y2="89"
10335
10421
  fill="none"
10336
- stroke="url(#v)"
10422
+ stroke={`url(#v-${id})`}
10337
10423
  stroke-linecap="round"
10338
10424
  stroke-linejoin="bevel"
10339
10425
  stroke-width="12"
10340
10426
  />
10341
10427
  <linearGradient
10342
- id="aa"
10428
+ id={`aa-${id}`}
10343
10429
  x1="-641.56"
10344
10430
  x2="-642.83"
10345
10431
  y1="196.02"
@@ -10356,13 +10442,13 @@ function TanstackLogo() {
10356
10442
  y1="55.5"
10357
10443
  y2="50"
10358
10444
  fill="none"
10359
- stroke="url(#aa)"
10445
+ stroke={`url(#aa-${id})`}
10360
10446
  stroke-linecap="round"
10361
10447
  stroke-linejoin="bevel"
10362
10448
  stroke-width="12"
10363
10449
  />
10364
10450
  <linearGradient
10365
- id="w"
10451
+ id={`w-${id}`}
10366
10452
  x1="-643.73"
10367
10453
  x2="-645"
10368
10454
  y1="185.83"
@@ -10379,13 +10465,13 @@ function TanstackLogo() {
10379
10465
  y1="122"
10380
10466
  y2="130"
10381
10467
  fill="none"
10382
- stroke="url(#w)"
10468
+ stroke={`url(#w-${id})`}
10383
10469
  stroke-linecap="round"
10384
10470
  stroke-linejoin="bevel"
10385
10471
  stroke-width="12"
10386
10472
  />
10387
10473
  <linearGradient
10388
- id="ac"
10474
+ id={`ac-${id}`}
10389
10475
  x1="-638.94"
10390
10476
  x2="-640.22"
10391
10477
  y1="177.09"
@@ -10402,13 +10488,13 @@ function TanstackLogo() {
10402
10488
  y1="153"
10403
10489
  y2="166"
10404
10490
  fill="none"
10405
- stroke="url(#ac)"
10491
+ stroke={`url(#ac-${id})`}
10406
10492
  stroke-linecap="round"
10407
10493
  stroke-linejoin="bevel"
10408
10494
  stroke-width="12"
10409
10495
  />
10410
10496
  <linearGradient
10411
- id="ab"
10497
+ id={`ab-${id}`}
10412
10498
  x1="-633.42"
10413
10499
  x2="-634.7"
10414
10500
  y1="172.41"
@@ -10425,13 +10511,13 @@ function TanstackLogo() {
10425
10511
  y1="180"
10426
10512
  y2="199"
10427
10513
  fill="none"
10428
- stroke="url(#ab)"
10514
+ stroke={`url(#ab-${id})`}
10429
10515
  stroke-linecap="round"
10430
10516
  stroke-linejoin="bevel"
10431
10517
  stroke-width="12"
10432
10518
  />
10433
10519
  <linearGradient
10434
- id="y"
10520
+ id={`y-${id}`}
10435
10521
  x1="-619.05"
10436
10522
  x2="-619.52"
10437
10523
  y1="170.82"
@@ -10448,13 +10534,13 @@ function TanstackLogo() {
10448
10534
  y1="203"
10449
10535
  y2="225.9"
10450
10536
  fill="none"
10451
- stroke="url(#y)"
10537
+ stroke={`url(#y-${id})`}
10452
10538
  stroke-linecap="round"
10453
10539
  stroke-linejoin="bevel"
10454
10540
  stroke-width="12"
10455
10541
  />
10456
10542
  <linearGradient
10457
- id="x"
10543
+ id={`x-${id}`}
10458
10544
  x1="-578.5"
10459
10545
  x2="-578.63"
10460
10546
  y1="170.31"
@@ -10471,13 +10557,13 @@ function TanstackLogo() {
10471
10557
  y1="219.5"
10472
10558
  y2="244"
10473
10559
  fill="none"
10474
- stroke="url(#x)"
10560
+ stroke={`url(#x-${id})`}
10475
10561
  stroke-linecap="round"
10476
10562
  stroke-linejoin="bevel"
10477
10563
  stroke-width="12"
10478
10564
  />
10479
10565
  <linearGradient
10480
- id="z"
10566
+ id={`z-${id}`}
10481
10567
  x1="666.5"
10482
10568
  x2="666.5"
10483
10569
  y1="170.31"
@@ -10494,7 +10580,7 @@ function TanstackLogo() {
10494
10580
  y1="228.5"
10495
10581
  y2="253"
10496
10582
  fill="none"
10497
- stroke="url(#z)"
10583
+ stroke={`url(#z-${id})`}
10498
10584
  stroke-linecap="round"
10499
10585
  stroke-linejoin="bevel"
10500
10586
  stroke-width="12"
@@ -10513,6 +10599,12 @@ var QueryDevtoolsContext = createContext({
10513
10599
  function useQueryDevtoolsContext() {
10514
10600
  return useContext(QueryDevtoolsContext);
10515
10601
  }
10602
+ var ThemeContext = createContext(
10603
+ () => "dark"
10604
+ );
10605
+ function useTheme() {
10606
+ return useContext(ThemeContext);
10607
+ }
10516
10608
 
10517
10609
  // src/Explorer.tsx
10518
10610
  function chunkArray(array, size2) {
@@ -10527,10 +10619,13 @@ function chunkArray(array, size2) {
10527
10619
  return result;
10528
10620
  }
10529
10621
  var Expander = (props) => {
10530
- const styles = getStyles();
10622
+ const theme = useTheme();
10623
+ const styles = createMemo(() => {
10624
+ return theme() === "dark" ? darkStyles : lightStyles;
10625
+ });
10531
10626
  return <span
10532
10627
  class={clsx(
10533
- styles.expander,
10628
+ styles().expander,
10534
10629
  u`
10535
10630
  transform: rotate(${props.expanded ? 90 : 0}deg);
10536
10631
  `,
@@ -10554,10 +10649,13 @@ var Expander = (props) => {
10554
10649
  /></svg></span>;
10555
10650
  };
10556
10651
  var CopyButton = (props) => {
10557
- const styles = getStyles();
10652
+ const theme = useTheme();
10653
+ const styles = createMemo(() => {
10654
+ return theme() === "dark" ? darkStyles : lightStyles;
10655
+ });
10558
10656
  const [copyState, setCopyState] = createSignal("NoCopy");
10559
10657
  return <button
10560
- class={styles.actionButton}
10658
+ class={styles().actionButton}
10561
10659
  title="Copy object to clipboard"
10562
10660
  aria-label={`${copyState() === "NoCopy" ? "Copy object to clipboard" : copyState() === "SuccessCopy" ? "Object copied to clipboard" : "Error copying object to clipboard"}`}
10563
10661
  onClick={copyState() === "NoCopy" ? () => {
@@ -10578,15 +10676,18 @@ var CopyButton = (props) => {
10578
10676
  } : void 0}
10579
10677
  ><Switch>
10580
10678
  <Match when={copyState() === "NoCopy"}><Copier /></Match>
10581
- <Match when={copyState() === "SuccessCopy"}><CopiedCopier /></Match>
10679
+ <Match when={copyState() === "SuccessCopy"}><CopiedCopier theme={theme()} /></Match>
10582
10680
  <Match when={copyState() === "ErrorCopy"}><ErrorCopier /></Match>
10583
10681
  </Switch></button>;
10584
10682
  };
10585
10683
  var ClearArrayButton = (props) => {
10586
- const styles = getStyles();
10684
+ const theme = useTheme();
10685
+ const styles = createMemo(() => {
10686
+ return theme() === "dark" ? darkStyles : lightStyles;
10687
+ });
10587
10688
  const queryClient = useQueryDevtoolsContext().client;
10588
10689
  return <button
10589
- class={styles.actionButton}
10690
+ class={styles().actionButton}
10590
10691
  title="Remove all items"
10591
10692
  aria-label="Remove all items"
10592
10693
  onClick={() => {
@@ -10597,10 +10698,13 @@ var ClearArrayButton = (props) => {
10597
10698
  ><List /></button>;
10598
10699
  };
10599
10700
  var DeleteItemButton = (props) => {
10600
- const styles = getStyles();
10701
+ const theme = useTheme();
10702
+ const styles = createMemo(() => {
10703
+ return theme() === "dark" ? darkStyles : lightStyles;
10704
+ });
10601
10705
  const queryClient = useQueryDevtoolsContext().client;
10602
10706
  return <button
10603
- class={clsx(styles.actionButton)}
10707
+ class={clsx(styles().actionButton)}
10604
10708
  title="Delete item"
10605
10709
  aria-label="Delete item"
10606
10710
  onClick={() => {
@@ -10610,11 +10714,41 @@ var DeleteItemButton = (props) => {
10610
10714
  }}
10611
10715
  ><Trash /></button>;
10612
10716
  };
10717
+ var ToggleValueButton = (props) => {
10718
+ const theme = useTheme();
10719
+ const styles = createMemo(() => {
10720
+ return theme() === "dark" ? darkStyles : lightStyles;
10721
+ });
10722
+ const queryClient = useQueryDevtoolsContext().client;
10723
+ return <button
10724
+ class={clsx(
10725
+ styles().actionButton,
10726
+ u`
10727
+ width: ${tokens.size[3.5]};
10728
+ height: ${tokens.size[3.5]};
10729
+ `
10730
+ )}
10731
+ title="Toggle value"
10732
+ aria-label="Toggle value"
10733
+ onClick={() => {
10734
+ const oldData = props.activeQuery.state.data;
10735
+ const newData = updateNestedDataByPath(
10736
+ oldData,
10737
+ props.dataPath,
10738
+ !props.value
10739
+ );
10740
+ queryClient.setQueryData(props.activeQuery.queryKey, newData);
10741
+ }}
10742
+ ><Check theme={theme()} checked={props.value} /></button>;
10743
+ };
10613
10744
  function isIterable(x) {
10614
10745
  return Symbol.iterator in x;
10615
10746
  }
10616
10747
  function Explorer(props) {
10617
- const styles = getStyles();
10748
+ const theme = useTheme();
10749
+ const styles = createMemo(() => {
10750
+ return theme() === "dark" ? darkStyles : lightStyles;
10751
+ });
10618
10752
  const queryClient = useQueryDevtoolsContext().client;
10619
10753
  const [expanded, setExpanded] = createSignal(
10620
10754
  (props.defaultExpanded || []).includes(props.label)
@@ -10658,25 +10792,25 @@ function Explorer(props) {
10658
10792
  });
10659
10793
  const subEntryPages = createMemo(() => chunkArray(subEntries(), 100));
10660
10794
  const currentDataPath = props.dataPath ?? [];
10661
- return <div class={styles.entry}>
10795
+ return <div class={styles().entry}>
10662
10796
  <Show when={subEntryPages().length}>
10663
- <div class={styles.expanderButtonContainer}>
10797
+ <div class={styles().expanderButtonContainer}>
10664
10798
  <button
10665
- class={styles.expanderButton}
10799
+ class={styles().expanderButton}
10666
10800
  onClick={() => toggleExpanded()}
10667
10801
  >
10668
10802
  <Expander expanded={expanded()} />
10669
10803
  {" "}
10670
10804
  <span>{props.label}</span>
10671
10805
  {" "}
10672
- <span class={styles.info}>
10806
+ <span class={styles().info}>
10673
10807
  {String(type()).toLowerCase() === "iterable" ? "(Iterable) " : ""}
10674
10808
  {subEntries().length}
10675
10809
  {" "}
10676
10810
  {subEntries().length > 1 ? `items` : `item`}
10677
10811
  </span>
10678
10812
  </button>
10679
- <Show when={props.editable}><div class={styles.actions}>
10813
+ <Show when={props.editable}><div class={styles().actions}>
10680
10814
  <CopyButton value={props.value} />
10681
10815
  <Show
10682
10816
  when={props.itemsDeletable && props.activeQuery !== void 0}
@@ -10693,7 +10827,7 @@ function Explorer(props) {
10693
10827
  </div></Show>
10694
10828
  </div>
10695
10829
  <Show when={expanded()}>
10696
- <Show when={subEntryPages().length === 1}><div class={styles.subEntry}><Key each={subEntries()} by={(item) => item.label}>{(entry) => {
10830
+ <Show when={subEntryPages().length === 1}><div class={styles().subEntry}><Key each={subEntries()} by={(item) => item.label}>{(entry) => {
10697
10831
  return <Explorer
10698
10832
  defaultExpanded={props.defaultExpanded}
10699
10833
  label={entry().label}
@@ -10704,12 +10838,12 @@ function Explorer(props) {
10704
10838
  itemsDeletable={type() === "array" || type() === "Iterable" || type() === "object"}
10705
10839
  />;
10706
10840
  }}</Key></div></Show>
10707
- <Show when={subEntryPages().length > 1}><div class={styles.subEntry}><Index each={subEntryPages()}>{(entries3, index) => <div><div class={styles.entry}>
10841
+ <Show when={subEntryPages().length > 1}><div class={styles().subEntry}><Index each={subEntryPages()}>{(entries2, index) => <div><div class={styles().entry}>
10708
10842
  <button
10709
10843
  onClick={() => setExpandedPages(
10710
10844
  (old) => old.includes(index) ? old.filter((d) => d !== index) : [...old, index]
10711
10845
  )}
10712
- class={styles.expanderButton}
10846
+ class={styles().expanderButton}
10713
10847
  >
10714
10848
  <Expander expanded={expandedPages().includes(index)} />
10715
10849
  {" "}
@@ -10719,7 +10853,7 @@ function Explorer(props) {
10719
10853
  {index * 100 + 100 - 1}
10720
10854
  {"]"}
10721
10855
  </button>
10722
- <Show when={expandedPages().includes(index)}><div class={styles.subEntry}><Key each={entries3()} by={(entry) => entry.label}>{(entry) => <Explorer
10856
+ <Show when={expandedPages().includes(index)}><div class={styles().subEntry}><Key each={entries2()} by={(entry) => entry.label}>{(entry) => <Explorer
10723
10857
  defaultExpanded={props.defaultExpanded}
10724
10858
  label={entry().label}
10725
10859
  value={entry().value}
@@ -10730,28 +10864,46 @@ function Explorer(props) {
10730
10864
  </div></div>}</Index></div></Show>
10731
10865
  </Show>
10732
10866
  </Show>
10733
- <Show when={subEntryPages().length === 0}><div class={styles.row}>
10734
- <span class={styles.label}>
10867
+ <Show when={subEntryPages().length === 0}><div class={styles().row}>
10868
+ <span class={styles().label}>
10735
10869
  {props.label}
10736
10870
  {":"}
10737
10871
  </span>
10738
10872
  <Show
10739
- when={props.editable && props.activeQuery !== void 0 && (type() === "string" || type() === "number")}
10740
- fallback={<span class={styles.value}>{displayValue(props.value)}</span>}
10741
- ><input
10742
- type={type() === "number" ? "number" : "text"}
10743
- class={clsx(styles.value, styles.editableInput)}
10744
- value={props.value}
10745
- onChange={(changeEvent) => {
10746
- const oldData = props.activeQuery.state.data;
10747
- const newData = updateNestedDataByPath(
10748
- oldData,
10749
- currentDataPath,
10750
- type() === "number" ? changeEvent.target.valueAsNumber : changeEvent.target.value
10751
- );
10752
- queryClient.setQueryData(props.activeQuery.queryKey, newData);
10753
- }}
10754
- /></Show>
10873
+ when={props.editable && props.activeQuery !== void 0 && (type() === "string" || type() === "number" || type() === "boolean")}
10874
+ fallback={<span class={styles().value}>{displayValue(props.value)}</span>}
10875
+ >
10876
+ <Show
10877
+ when={props.editable && props.activeQuery !== void 0 && (type() === "string" || type() === "number")}
10878
+ ><input
10879
+ type={type() === "number" ? "number" : "text"}
10880
+ class={clsx(styles().value, styles().editableInput)}
10881
+ value={props.value}
10882
+ onChange={(changeEvent) => {
10883
+ const oldData = props.activeQuery.state.data;
10884
+ const newData = updateNestedDataByPath(
10885
+ oldData,
10886
+ currentDataPath,
10887
+ type() === "number" ? changeEvent.target.valueAsNumber : changeEvent.target.value
10888
+ );
10889
+ queryClient.setQueryData(props.activeQuery.queryKey, newData);
10890
+ }}
10891
+ /></Show>
10892
+ <Show when={type() === "boolean"}><span
10893
+ class={clsx(
10894
+ styles().value,
10895
+ styles().actions,
10896
+ styles().editableInput
10897
+ )}
10898
+ >
10899
+ <ToggleValueButton
10900
+ activeQuery={props.activeQuery}
10901
+ dataPath={currentDataPath}
10902
+ value={props.value}
10903
+ />
10904
+ {displayValue(props.value)}
10905
+ </span></Show>
10906
+ </Show>
10755
10907
  <Show
10756
10908
  when={props.editable && props.itemsDeletable && props.activeQuery !== void 0}
10757
10909
  ><DeleteItemButton
@@ -10761,8 +10913,9 @@ function Explorer(props) {
10761
10913
  </div></Show>
10762
10914
  </div>;
10763
10915
  }
10764
- var getStyles = () => {
10916
+ var stylesFactory = (theme) => {
10765
10917
  const { colors, font, size: size2, border } = tokens;
10918
+ const t2 = (light, dark) => theme === "light" ? light : dark;
10766
10919
  return {
10767
10920
  entry: u`
10768
10921
  & * {
@@ -10776,7 +10929,7 @@ var getStyles = () => {
10776
10929
  subEntry: u`
10777
10930
  margin: 0 0 0 0.5em;
10778
10931
  padding-left: 0.75em;
10779
- border-left: 2px solid ${colors.darkGray[400]};
10932
+ border-left: 2px solid ${t2(colors.gray[300], colors.darkGray[400])};
10780
10933
  /* outline: 1px solid ${colors.teal[400]}; */
10781
10934
  `,
10782
10935
  expander: u`
@@ -10825,21 +10978,22 @@ var getStyles = () => {
10825
10978
  }
10826
10979
  `,
10827
10980
  info: u`
10828
- color: ${colors.gray[500]};
10981
+ color: ${t2(colors.gray[500], colors.gray[500])};
10829
10982
  font-size: ${font.size.xs};
10830
10983
  margin-left: ${size2[1]};
10831
10984
  /* outline: 1px solid ${colors.yellow[400]}; */
10832
10985
  `,
10833
10986
  label: u`
10834
- color: ${colors.gray[300]};
10987
+ color: ${t2(colors.gray[700], colors.gray[300])};
10835
10988
  `,
10836
10989
  value: u`
10837
- color: ${colors.purple[400]};
10990
+ color: ${t2(colors.purple[600], colors.purple[400])};
10838
10991
  flex-grow: 1;
10839
10992
  `,
10840
10993
  actions: u`
10841
10994
  display: inline-flex;
10842
10995
  gap: ${size2[2]};
10996
+ align-items: center;
10843
10997
  `,
10844
10998
  row: u`
10845
10999
  display: inline-flex;
@@ -10847,19 +11001,22 @@ var getStyles = () => {
10847
11001
  width: 100%;
10848
11002
  margin-bottom: ${size2[0.5]};
10849
11003
  line-height: 1.125rem;
11004
+ align-items: center;
10850
11005
  `,
10851
11006
  editableInput: u`
10852
11007
  border: none;
10853
- padding: 0px ${size2[1]};
11008
+ padding: ${size2[0.5]} ${size2[1]} ${size2[0.5]} ${size2[1.5]};
10854
11009
  flex-grow: 1;
10855
- background-color: ${colors.gray[900]};
11010
+ border-radius: ${border.radius.xs};
11011
+ background-color: ${t2(colors.gray[200], colors.darkGray[500])};
10856
11012
 
10857
11013
  &:hover {
10858
- background-color: ${colors.gray[800]};
11014
+ background-color: ${t2(colors.gray[300], colors.darkGray[600])};
10859
11015
  }
10860
11016
  `,
10861
11017
  actionButton: u`
10862
11018
  background-color: transparent;
11019
+ color: ${t2(colors.gray[500], colors.gray[500])};
10863
11020
  border: none;
10864
11021
  display: inline-flex;
10865
11022
  padding: 0px;
@@ -10872,14 +11029,7 @@ var getStyles = () => {
10872
11029
  z-index: 1;
10873
11030
 
10874
11031
  &:hover svg {
10875
- .copier,
10876
- .list {
10877
- stroke: ${colors.gray[500]} !important;
10878
- }
10879
-
10880
- .list-item {
10881
- stroke: ${colors.gray[700]};
10882
- }
11032
+ color: ${t2(colors.gray[600], colors.gray[400])};
10883
11033
  }
10884
11034
 
10885
11035
  &:focus-visible {
@@ -10890,6 +11040,8 @@ var getStyles = () => {
10890
11040
  `
10891
11041
  };
10892
11042
  };
11043
+ var lightStyles = stylesFactory("light");
11044
+ var darkStyles = stylesFactory("dark");
10893
11045
 
10894
11046
  // src/fonts.ts
10895
11047
  var loadFonts = () => {
@@ -10905,6 +11057,7 @@ var secondBreakpoint = 796;
10905
11057
  var thirdBreakpoint = 700;
10906
11058
  var BUTTON_POSITION = "bottom-right";
10907
11059
  var POSITION = "bottom";
11060
+ var THEME_PREFERENCE = "system";
10908
11061
  var INITIAL_IS_OPEN = false;
10909
11062
  var DEFAULT_HEIGHT = 500;
10910
11063
  var DEFAULT_WIDTH = 500;
@@ -10915,28 +11068,38 @@ var [selectedQueryHash, setSelectedQueryHash] = createSignal(
10915
11068
  );
10916
11069
  var [panelWidth, setPanelWidth] = createSignal(0);
10917
11070
  var DevtoolsComponent = (props) => {
10918
- return <QueryDevtoolsContext.Provider value={props}><Devtools /></QueryDevtoolsContext.Provider>;
11071
+ const [localStore, setLocalStore] = createLocalStorage({
11072
+ prefix: "TanstackQueryDevtools"
11073
+ });
11074
+ const colorScheme = getPreferredColorScheme();
11075
+ const theme = createMemo(() => {
11076
+ const preference = localStore.theme_preference || THEME_PREFERENCE;
11077
+ if (preference !== "system")
11078
+ return preference;
11079
+ return colorScheme();
11080
+ });
11081
+ return <QueryDevtoolsContext.Provider value={props}><ThemeContext.Provider value={theme}><Devtools localStore={localStore} setLocalStore={setLocalStore} /></ThemeContext.Provider></QueryDevtoolsContext.Provider>;
10919
11082
  };
10920
11083
  var Devtools_default = DevtoolsComponent;
10921
- var Devtools = () => {
11084
+ var Devtools = (props) => {
10922
11085
  loadFonts();
10923
- const styles = getStyles2();
10924
- const [localStore, setLocalStore] = createLocalStorage({
10925
- prefix: "TanstackQueryDevtools"
11086
+ const theme = useTheme();
11087
+ const styles = createMemo(() => {
11088
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
10926
11089
  });
10927
11090
  const buttonPosition = createMemo(() => {
10928
11091
  return useQueryDevtoolsContext().buttonPosition || BUTTON_POSITION;
10929
11092
  });
10930
11093
  const isOpen = createMemo(() => {
10931
- return localStore.open === "true" ? true : localStore.open === "false" ? false : useQueryDevtoolsContext().initialIsOpen || INITIAL_IS_OPEN;
11094
+ return props.localStore.open === "true" ? true : props.localStore.open === "false" ? false : useQueryDevtoolsContext().initialIsOpen || INITIAL_IS_OPEN;
10932
11095
  });
10933
11096
  const position = createMemo(() => {
10934
- return localStore.position || useQueryDevtoolsContext().position || POSITION;
11097
+ return props.localStore.position || useQueryDevtoolsContext().position || POSITION;
10935
11098
  });
10936
11099
  createEffect(() => {
10937
11100
  const root = document.querySelector(".tsqd-parent-container");
10938
- const height = localStore.height || DEFAULT_HEIGHT;
10939
- const width = localStore.width || DEFAULT_WIDTH;
11101
+ const height = props.localStore.height || DEFAULT_HEIGHT;
11102
+ const width = props.localStore.width || DEFAULT_WIDTH;
10940
11103
  const panelPosition = position();
10941
11104
  root.style.setProperty(
10942
11105
  "--tsqd-panel-height",
@@ -10974,25 +11137,28 @@ var Devtools = () => {
10974
11137
  )}
10975
11138
  >
10976
11139
  <TransitionGroup name="tsqd-panel-transition"><Show when={isOpen()}><DevtoolsPanel
10977
- localStore={localStore}
10978
- setLocalStore={setLocalStore}
11140
+ localStore={props.localStore}
11141
+ setLocalStore={props.setLocalStore}
10979
11142
  /></Show></TransitionGroup>
10980
11143
  <TransitionGroup name="tsqd-button-transition"><Show when={!isOpen()}><div
10981
11144
  class={clsx(
10982
- styles.devtoolsBtn,
10983
- styles[`devtoolsBtn-position-${buttonPosition()}`]
11145
+ styles().devtoolsBtn,
11146
+ styles()[`devtoolsBtn-position-${buttonPosition()}`]
10984
11147
  )}
10985
11148
  >
10986
11149
  <div aria-hidden="true"><TanstackLogo /></div>
10987
11150
  <button
10988
11151
  aria-label="Open Tanstack query devtools"
10989
- onClick={() => setLocalStore("open", "true")}
11152
+ onClick={() => props.setLocalStore("open", "true")}
10990
11153
  ><TanstackLogo /></button>
10991
11154
  </div></Show></TransitionGroup>
10992
11155
  </div>;
10993
11156
  };
10994
11157
  var DevtoolsPanel = (props) => {
10995
- const styles = getStyles2();
11158
+ const theme = useTheme();
11159
+ const styles = createMemo(() => {
11160
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
11161
+ });
10996
11162
  const [isResizing, setIsResizing] = createSignal(false);
10997
11163
  const sort = createMemo(() => props.localStore.sort || DEFAULT_SORT_FN_NAME);
10998
11164
  const sortOrder = createMemo(
@@ -11109,14 +11275,25 @@ var DevtoolsPanel = (props) => {
11109
11275
  });
11110
11276
  });
11111
11277
  });
11278
+ const getPanelDynamicStyles = () => {
11279
+ const { colors } = tokens;
11280
+ const t2 = (light, dark) => theme() === "dark" ? dark : light;
11281
+ if (panelWidth() < secondBreakpoint) {
11282
+ return u`
11283
+ flex-direction: column;
11284
+ background-color: ${t2(colors.gray[300], colors.gray[600])};
11285
+ `;
11286
+ }
11287
+ return u`
11288
+ flex-direction: row;
11289
+ background-color: ${t2(colors.gray[200], colors.darkGray[900])};
11290
+ `;
11291
+ };
11112
11292
  return <aside
11113
11293
  class={clsx(
11114
- styles.panel,
11115
- styles[`panel-position-${position()}`],
11116
- u`
11117
- flex-direction: ${panelWidth() < secondBreakpoint ? "column" : "row"};
11118
- background-color: ${panelWidth() < secondBreakpoint ? tokens.colors.gray[600] : tokens.colors.darkGray[900]};
11119
- `,
11294
+ styles().panel,
11295
+ styles()[`panel-position-${position()}`],
11296
+ getPanelDynamicStyles(),
11120
11297
  {
11121
11298
  [u`
11122
11299
  min-width: min-content;
@@ -11133,8 +11310,8 @@ var DevtoolsPanel = (props) => {
11133
11310
  >
11134
11311
  <div
11135
11312
  class={clsx(
11136
- styles.dragHandle,
11137
- styles[`dragHandle-position-${position()}`],
11313
+ styles().dragHandle,
11314
+ styles()[`dragHandle-position-${position()}`],
11138
11315
  "tsqd-drag-handle"
11139
11316
  )}
11140
11317
  onMouseDown={handleDragStart}
@@ -11142,8 +11319,8 @@ var DevtoolsPanel = (props) => {
11142
11319
  <button
11143
11320
  aria-label="Close tanstack query devtools"
11144
11321
  class={clsx(
11145
- styles.closeBtn,
11146
- styles[`closeBtn-position-${position()}`],
11322
+ styles().closeBtn,
11323
+ styles()[`closeBtn-position-${position()}`],
11147
11324
  "tsqd-minimize-btn"
11148
11325
  )}
11149
11326
  onClick={() => props.setLocalStore("open", "false")}
@@ -11151,7 +11328,7 @@ var DevtoolsPanel = (props) => {
11151
11328
  <div
11152
11329
  ref={queriesContainerRef}
11153
11330
  class={clsx(
11154
- styles.queriesContainer,
11331
+ styles().queriesContainer,
11155
11332
  panelWidth() < secondBreakpoint && selectedQueryHash() && u`
11156
11333
  height: 50%;
11157
11334
  max-height: 50%;
@@ -11159,15 +11336,18 @@ var DevtoolsPanel = (props) => {
11159
11336
  "tsqd-queries-container"
11160
11337
  )}
11161
11338
  >
11162
- <div class={clsx(styles.row, "tsqd-header")}>
11339
+ <div class={clsx(styles().row, "tsqd-header")}>
11163
11340
  <button
11164
- class={clsx(styles.logo, "tsqd-text-logo-container")}
11341
+ class={clsx(styles().logo, "tsqd-text-logo-container")}
11165
11342
  onClick={() => props.setLocalStore("open", "false")}
11166
11343
  aria-label="Close Tanstack query devtools"
11167
11344
  >
11168
- <span class={clsx(styles.tanstackLogo, "tsqd-text-logo-tanstack")}>TANSTACK</span>
11345
+ <span class={clsx(styles().tanstackLogo, "tsqd-text-logo-tanstack")}>TANSTACK</span>
11169
11346
  <span
11170
- class={clsx(styles.queryFlavorLogo, "tsqd-text-logo-query-flavor")}
11347
+ class={clsx(
11348
+ styles().queryFlavorLogo,
11349
+ "tsqd-text-logo-query-flavor"
11350
+ )}
11171
11351
  >
11172
11352
  {useQueryDevtoolsContext().queryFlavor}
11173
11353
  {" v"}
@@ -11178,17 +11358,17 @@ var DevtoolsPanel = (props) => {
11178
11358
  </div>
11179
11359
  <div
11180
11360
  class={clsx(
11181
- styles.row,
11361
+ styles().row,
11182
11362
  u`
11183
11363
  gap: ${tokens.size[2.5]};
11184
11364
  `,
11185
11365
  "tsqd-filters-actions-container"
11186
11366
  )}
11187
11367
  >
11188
- <div class={clsx(styles.filtersContainer, "tsqd-filters-container")}>
11368
+ <div class={clsx(styles().filtersContainer, "tsqd-filters-container")}>
11189
11369
  <div
11190
11370
  class={clsx(
11191
- styles.filterInput,
11371
+ styles().filterInput,
11192
11372
  "tsqd-query-filter-textfield-container"
11193
11373
  )}
11194
11374
  >
@@ -11204,7 +11384,7 @@ var DevtoolsPanel = (props) => {
11204
11384
  </div>
11205
11385
  <div
11206
11386
  class={clsx(
11207
- styles.filterSelect,
11387
+ styles().filterSelect,
11208
11388
  "tsqd-query-filter-sort-container"
11209
11389
  )}
11210
11390
  >
@@ -11235,13 +11415,13 @@ var DevtoolsPanel = (props) => {
11235
11415
  </Show>
11236
11416
  </button>
11237
11417
  </div>
11238
- <div class={clsx(styles.actionsContainer, "tsqd-actions-container")}>
11418
+ <div class={clsx(styles().actionsContainer, "tsqd-actions-container")}>
11239
11419
  <button
11240
11420
  onClick={() => {
11241
11421
  cache().clear();
11242
11422
  }}
11243
11423
  class={clsx(
11244
- styles.actionsBtn,
11424
+ styles().actionsBtn,
11245
11425
  "tsqd-actions-btn",
11246
11426
  "tsqd-action-clear-cache"
11247
11427
  )}
@@ -11259,7 +11439,8 @@ var DevtoolsPanel = (props) => {
11259
11439
  }
11260
11440
  }}
11261
11441
  class={clsx(
11262
- styles.actionsBtn,
11442
+ styles().actionsBtn,
11443
+ offline() && styles().actionsBtnOffline,
11263
11444
  "tsqd-actions-btn",
11264
11445
  "tsqd-action-mock-offline-behavior"
11265
11446
  )}
@@ -11270,24 +11451,24 @@ var DevtoolsPanel = (props) => {
11270
11451
  <index$d.Root gutter={4}>
11271
11452
  <index$d.Trigger
11272
11453
  class={clsx(
11273
- styles.actionsBtn,
11454
+ styles().actionsBtn,
11274
11455
  "tsqd-actions-btn",
11275
11456
  "tsqd-action-settings"
11276
11457
  )}
11277
11458
  ><Settings /></index$d.Trigger>
11278
11459
  <index$d.Portal><index$d.Content
11279
- class={clsx(styles.settingsMenu, "tsqd-settings-menu")}
11460
+ class={clsx(styles().settingsMenu, "tsqd-settings-menu")}
11280
11461
  >
11281
11462
  <div
11282
11463
  class={clsx(
11283
- styles.settingsMenuHeader,
11464
+ styles().settingsMenuHeader,
11284
11465
  "tsqd-settings-menu-header"
11285
11466
  )}
11286
11467
  >Settings</div>
11287
11468
  <index$d.Sub overlap gutter={8} shift={-4}>
11288
11469
  <index$d.SubTrigger
11289
11470
  class={clsx(
11290
- styles.settingsSubTrigger,
11471
+ styles().settingsSubTrigger,
11291
11472
  "tsqd-settings-menu-sub-trigger",
11292
11473
  "tsqd-settings-menu-sub-trigger-position"
11293
11474
  )}
@@ -11296,7 +11477,10 @@ var DevtoolsPanel = (props) => {
11296
11477
  <ChevronDown />
11297
11478
  </index$d.SubTrigger>
11298
11479
  <index$d.Portal><index$d.SubContent
11299
- class={clsx(styles.settingsMenu, "tsqd-settings-submenu")}
11480
+ class={clsx(
11481
+ styles().settingsMenu,
11482
+ "tsqd-settings-submenu"
11483
+ )}
11300
11484
  >
11301
11485
  <index$d.Item
11302
11486
  onSelect={() => {
@@ -11304,7 +11488,7 @@ var DevtoolsPanel = (props) => {
11304
11488
  }}
11305
11489
  as="button"
11306
11490
  class={clsx(
11307
- styles.settingsSubButton,
11491
+ styles().settingsSubButton,
11308
11492
  "tsqd-settings-menu-position-btn",
11309
11493
  "tsqd-settings-menu-position-btn-top"
11310
11494
  )}
@@ -11318,7 +11502,7 @@ var DevtoolsPanel = (props) => {
11318
11502
  }}
11319
11503
  as="button"
11320
11504
  class={clsx(
11321
- styles.settingsSubButton,
11505
+ styles().settingsSubButton,
11322
11506
  "tsqd-settings-menu-position-btn",
11323
11507
  "tsqd-settings-menu-position-btn-bottom"
11324
11508
  )}
@@ -11332,7 +11516,7 @@ var DevtoolsPanel = (props) => {
11332
11516
  }}
11333
11517
  as="button"
11334
11518
  class={clsx(
11335
- styles.settingsSubButton,
11519
+ styles().settingsSubButton,
11336
11520
  "tsqd-settings-menu-position-btn",
11337
11521
  "tsqd-settings-menu-position-btn-left"
11338
11522
  )}
@@ -11346,7 +11530,7 @@ var DevtoolsPanel = (props) => {
11346
11530
  }}
11347
11531
  as="button"
11348
11532
  class={clsx(
11349
- styles.settingsSubButton,
11533
+ styles().settingsSubButton,
11350
11534
  "tsqd-settings-menu-position-btn",
11351
11535
  "tsqd-settings-menu-position-btn-right"
11352
11536
  )}
@@ -11356,13 +11540,77 @@ var DevtoolsPanel = (props) => {
11356
11540
  </index$d.Item>
11357
11541
  </index$d.SubContent></index$d.Portal>
11358
11542
  </index$d.Sub>
11543
+ <index$d.Sub overlap gutter={8} shift={-4}>
11544
+ <index$d.SubTrigger
11545
+ class={clsx(
11546
+ styles().settingsSubTrigger,
11547
+ "tsqd-settings-menu-sub-trigger",
11548
+ "tsqd-settings-menu-sub-trigger-position"
11549
+ )}
11550
+ >
11551
+ <span>Theme</span>
11552
+ <ChevronDown />
11553
+ </index$d.SubTrigger>
11554
+ <index$d.Portal><index$d.SubContent
11555
+ class={clsx(
11556
+ styles().settingsMenu,
11557
+ "tsqd-settings-submenu"
11558
+ )}
11559
+ >
11560
+ <index$d.Item
11561
+ onSelect={() => {
11562
+ props.setLocalStore("theme_preference", "light");
11563
+ }}
11564
+ as="button"
11565
+ class={clsx(
11566
+ styles().settingsSubButton,
11567
+ props.localStore.theme_preference === "light" && styles().themeSelectedButton,
11568
+ "tsqd-settings-menu-position-btn",
11569
+ "tsqd-settings-menu-position-btn-top"
11570
+ )}
11571
+ >
11572
+ <span>Light</span>
11573
+ <Sun />
11574
+ </index$d.Item>
11575
+ <index$d.Item
11576
+ onSelect={() => {
11577
+ props.setLocalStore("theme_preference", "dark");
11578
+ }}
11579
+ as="button"
11580
+ class={clsx(
11581
+ styles().settingsSubButton,
11582
+ props.localStore.theme_preference === "dark" && styles().themeSelectedButton,
11583
+ "tsqd-settings-menu-position-btn",
11584
+ "tsqd-settings-menu-position-btn-bottom"
11585
+ )}
11586
+ >
11587
+ <span>Dark</span>
11588
+ <Moon />
11589
+ </index$d.Item>
11590
+ <index$d.Item
11591
+ onSelect={() => {
11592
+ props.setLocalStore("theme_preference", "system");
11593
+ }}
11594
+ as="button"
11595
+ class={clsx(
11596
+ styles().settingsSubButton,
11597
+ props.localStore.theme_preference === "system" && styles().themeSelectedButton,
11598
+ "tsqd-settings-menu-position-btn",
11599
+ "tsqd-settings-menu-position-btn-left"
11600
+ )}
11601
+ >
11602
+ <span>System</span>
11603
+ <Monitor />
11604
+ </index$d.Item>
11605
+ </index$d.SubContent></index$d.Portal>
11606
+ </index$d.Sub>
11359
11607
  </index$d.Content></index$d.Portal>
11360
11608
  </index$d.Root>
11361
11609
  </div>
11362
11610
  </div>
11363
11611
  <div
11364
11612
  class={clsx(
11365
- styles.overflowQueryContainer,
11613
+ styles().overflowQueryContainer,
11366
11614
  "tsqd-queries-overflow-container"
11367
11615
  )}
11368
11616
  ><div class="tsqd-queries-container"><Key by={(q) => q.queryHash} each={queries()}>{(query) => <QueryRow query={query()} />}</Key></div></div>
@@ -11371,7 +11619,12 @@ var DevtoolsPanel = (props) => {
11371
11619
  </aside>;
11372
11620
  };
11373
11621
  var QueryRow = (props) => {
11374
- const styles = getStyles2();
11622
+ const theme = useTheme();
11623
+ const styles = createMemo(() => {
11624
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
11625
+ });
11626
+ const { colors, alpha } = tokens;
11627
+ const t2 = (light, dark) => theme() === "dark" ? dark : light;
11375
11628
  const queryState = createSubscribeToQueryCacheBatcher(
11376
11629
  (queryCache) => queryCache().find({
11377
11630
  queryKey: props.query.queryKey
@@ -11399,28 +11652,34 @@ var QueryRow = (props) => {
11399
11652
  isStale: isStale()
11400
11653
  })
11401
11654
  );
11655
+ const getObserverCountColorStyles = () => {
11656
+ if (color() === "gray") {
11657
+ return u`
11658
+ background-color: ${t2(colors[color()][200], colors[color()][700])};
11659
+ color: ${t2(colors[color()][700], colors[color()][300])};
11660
+ `;
11661
+ }
11662
+ return u`
11663
+ background-color: ${t2(
11664
+ colors[color()][200] + alpha[80],
11665
+ colors[color()][900]
11666
+ )};
11667
+ color: ${t2(colors[color()][800], colors[color()][300])};
11668
+ `;
11669
+ };
11402
11670
  return <Show when={queryState()}><button
11403
11671
  onClick={() => setSelectedQueryHash(
11404
11672
  props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash
11405
11673
  )}
11406
11674
  class={clsx(
11407
- styles.queryRow,
11408
- selectedQueryHash() === props.query.queryHash && styles.selectedQueryRow,
11675
+ styles().queryRow,
11676
+ selectedQueryHash() === props.query.queryHash && styles().selectedQueryRow,
11409
11677
  "tsqd-query-row"
11410
11678
  )}
11411
11679
  aria-label={`Query key ${props.query.queryHash}`}
11412
11680
  >
11413
11681
  <div
11414
- class={clsx(
11415
- color() === "gray" ? u`
11416
- background-color: ${tokens.colors[color()][700]};
11417
- color: ${tokens.colors[color()][300]};
11418
- ` : u`
11419
- background-color: ${tokens.colors[color()][900]};
11420
- color: ${tokens.colors[color()][300]};
11421
- `,
11422
- "tsqd-query-observer-count"
11423
- )}
11682
+ class={clsx(getObserverCountColorStyles(), "tsqd-query-observer-count")}
11424
11683
  >{observers()}</div>
11425
11684
  <code class="tsqd-query-hash">{props.query.queryHash}</code>
11426
11685
  <Show when={isDisabled()}><div class="tsqd-query-disabled-indicator">disabled</div></Show>
@@ -11442,8 +11701,13 @@ var QueryStatusCount = () => {
11442
11701
  const inactive = createSubscribeToQueryCacheBatcher(
11443
11702
  (queryCache) => queryCache().getAll().filter((q) => getQueryStatusLabel(q) === "inactive").length
11444
11703
  );
11445
- const styles = getStyles2();
11446
- return <div class={clsx(styles.queryStatusContainer, "tsqd-query-status-container")}>
11704
+ const theme = useTheme();
11705
+ const styles = createMemo(() => {
11706
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
11707
+ });
11708
+ return <div
11709
+ class={clsx(styles().queryStatusContainer, "tsqd-query-status-container")}
11710
+ >
11447
11711
  <QueryStatus label="Fresh" color="green" count={fresh()} />
11448
11712
  <QueryStatus label="Fetching" color="blue" count={fetching()} />
11449
11713
  <QueryStatus label="Paused" color="purple" count={paused()} />
@@ -11452,7 +11716,12 @@ var QueryStatusCount = () => {
11452
11716
  </div>;
11453
11717
  };
11454
11718
  var QueryStatus = (props) => {
11455
- const styles = getStyles2();
11719
+ const theme = useTheme();
11720
+ const styles = createMemo(() => {
11721
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
11722
+ });
11723
+ const { colors, alpha } = tokens;
11724
+ const t2 = (light, dark) => theme() === "dark" ? dark : light;
11456
11725
  let tagRef;
11457
11726
  const [mouseOver, setMouseOver] = createSignal(false);
11458
11727
  const [focused, setFocused] = createSignal(false);
@@ -11478,11 +11747,11 @@ var QueryStatus = (props) => {
11478
11747
  disabled={showLabel()}
11479
11748
  ref={tagRef}
11480
11749
  class={clsx(
11481
- styles.queryStatusTag,
11750
+ styles().queryStatusTag,
11482
11751
  !showLabel() && u`
11483
11752
  cursor: pointer;
11484
11753
  &:hover {
11485
- background: ${tokens.colors.darkGray[400]}${tokens.alpha[80]};
11754
+ background: ${t2(colors.gray[200], colors.darkGray[400])}${alpha[80]};
11486
11755
  }
11487
11756
  `,
11488
11757
  "tsqd-query-status-tag",
@@ -11495,7 +11764,7 @@ var QueryStatus = (props) => {
11495
11764
  <Show when={!showLabel() && (mouseOver() || focused())}><div
11496
11765
  role="tooltip"
11497
11766
  id="tsqd-status-tooltip"
11498
- class={clsx(styles.statusTooltip, "tsqd-query-status-tooltip")}
11767
+ class={clsx(styles().statusTooltip, "tsqd-query-status-tooltip")}
11499
11768
  >{props.label}</div></Show>
11500
11769
  <span
11501
11770
  class={clsx(
@@ -11509,24 +11778,33 @@ var QueryStatus = (props) => {
11509
11778
  )}
11510
11779
  />
11511
11780
  <Show when={showLabel()}><span
11512
- class={clsx(styles.queryStatusTagLabel, "tsqd-query-status-tag-label")}
11781
+ class={clsx(
11782
+ styles().queryStatusTagLabel,
11783
+ "tsqd-query-status-tag-label"
11784
+ )}
11513
11785
  >{props.label}</span></Show>
11514
11786
  <span
11515
11787
  class={clsx(
11516
- styles.queryStatusCount,
11517
- props.count > 0 && props.color !== "gray" ? u`
11518
- background-color: ${tokens.colors[props.color][900]};
11519
- color: ${tokens.colors[props.color][300]};
11520
- ` : u`
11521
- color: ${tokens.colors["gray"][400]};
11522
- `,
11788
+ styles().queryStatusCount,
11789
+ props.count > 0 && props.color !== "gray" && u`
11790
+ background-color: ${t2(
11791
+ colors[props.color][100],
11792
+ colors[props.color][900]
11793
+ )};
11794
+ color: ${t2(colors[props.color][700], colors[props.color][300])};
11795
+ `,
11523
11796
  "tsqd-query-status-tag-count"
11524
11797
  )}
11525
11798
  >{props.count}</span>
11526
11799
  </button>;
11527
11800
  };
11528
11801
  var QueryDetails = () => {
11529
- const styles = getStyles2();
11802
+ const theme = useTheme();
11803
+ const styles = createMemo(() => {
11804
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
11805
+ });
11806
+ const { colors } = tokens;
11807
+ const t2 = (light, dark) => theme() === "dark" ? dark : light;
11530
11808
  const queryClient = useQueryDevtoolsContext().client;
11531
11809
  const [restoringLoading, setRestoringLoading] = createSignal(false);
11532
11810
  const errorTypes = createMemo(() => {
@@ -11597,26 +11875,34 @@ var QueryDetails = () => {
11597
11875
  setRestoringLoading(false);
11598
11876
  }
11599
11877
  });
11600
- return <Show when={activeQuery() && activeQueryState()}><div class={clsx(styles.detailsContainer, "tsqd-query-details-container")}>
11601
- <div class={clsx(styles.detailsHeader, "tsqd-query-details-header")}>Query Details</div>
11878
+ const getQueryStatusColors = () => {
11879
+ if (color() === "gray") {
11880
+ return u`
11881
+ background-color: ${t2(colors[color()][200], colors[color()][700])};
11882
+ color: ${t2(colors[color()][700], colors[color()][300])};
11883
+ border-color: ${t2(colors[color()][400], colors[color()][600])};
11884
+ `;
11885
+ }
11886
+ return u`
11887
+ background-color: ${t2(colors[color()][100], colors[color()][900])};
11888
+ color: ${t2(colors[color()][700], colors[color()][300])};
11889
+ border-color: ${t2(colors[color()][400], colors[color()][600])};
11890
+ `;
11891
+ };
11892
+ return <Show when={activeQuery() && activeQueryState()}><div
11893
+ class={clsx(styles().detailsContainer, "tsqd-query-details-container")}
11894
+ >
11895
+ <div class={clsx(styles().detailsHeader, "tsqd-query-details-header")}>Query Details</div>
11602
11896
  <div
11603
- class={clsx(styles.detailsBody, "tsqd-query-details-summary-container")}
11897
+ class={clsx(
11898
+ styles().detailsBody,
11899
+ "tsqd-query-details-summary-container"
11900
+ )}
11604
11901
  >
11605
11902
  <div class="tsqd-query-details-summary">
11606
11903
  <pre><code>{displayValue(activeQuery().queryKey, true)}</code></pre>
11607
11904
  <span
11608
- class={clsx(
11609
- styles.queryDetailsStatus,
11610
- color() === "gray" ? u`
11611
- background-color: ${tokens.colors[color()][700]};
11612
- color: ${tokens.colors[color()][300]};
11613
- border-color: ${tokens.colors[color()][600]};
11614
- ` : u`
11615
- background-color: ${tokens.colors[color()][900]};
11616
- color: ${tokens.colors[color()][300]};
11617
- border-color: ${tokens.colors[color()][600]};
11618
- `
11619
- )}
11905
+ class={clsx(styles().queryDetailsStatus, getQueryStatusColors())}
11620
11906
  >{statusLabel()}</span>
11621
11907
  </div>
11622
11908
  <div class="tsqd-query-details-observers-count">
@@ -11628,14 +11914,17 @@ var QueryDetails = () => {
11628
11914
  <span>{new Date(activeQueryState().dataUpdatedAt).toLocaleTimeString()}</span>
11629
11915
  </div>
11630
11916
  </div>
11631
- <div class={clsx(styles.detailsHeader, "tsqd-query-details-header")}>Actions</div>
11917
+ <div class={clsx(styles().detailsHeader, "tsqd-query-details-header")}>Actions</div>
11632
11918
  <div
11633
- class={clsx(styles.actionsBody, "tsqd-query-details-actions-container")}
11919
+ class={clsx(
11920
+ styles().actionsBody,
11921
+ "tsqd-query-details-actions-container"
11922
+ )}
11634
11923
  >
11635
11924
  <button
11636
11925
  class={clsx(
11637
11926
  u`
11638
- color: ${tokens.colors.blue[400]};
11927
+ color: ${t2(colors.blue[600], colors.blue[400])};
11639
11928
  `,
11640
11929
  "tsqd-query-details-actions-btn",
11641
11930
  "tsqd-query-details-action-refetch"
@@ -11645,7 +11934,7 @@ var QueryDetails = () => {
11645
11934
  >
11646
11935
  <span
11647
11936
  class={u`
11648
- background-color: ${tokens.colors.blue[400]};
11937
+ background-color: ${t2(colors.blue[600], colors.blue[400])};
11649
11938
  `}
11650
11939
  />
11651
11940
  {"Refetch"}
@@ -11653,7 +11942,7 @@ var QueryDetails = () => {
11653
11942
  <button
11654
11943
  class={clsx(
11655
11944
  u`
11656
- color: ${tokens.colors.yellow[400]};
11945
+ color: ${t2(colors.yellow[600], colors.yellow[400])};
11657
11946
  `,
11658
11947
  "tsqd-query-details-actions-btn",
11659
11948
  "tsqd-query-details-action-invalidate"
@@ -11663,7 +11952,7 @@ var QueryDetails = () => {
11663
11952
  >
11664
11953
  <span
11665
11954
  class={u`
11666
- background-color: ${tokens.colors.yellow[400]};
11955
+ background-color: ${t2(colors.yellow[600], colors.yellow[400])};
11667
11956
  `}
11668
11957
  />
11669
11958
  {"Invalidate"}
@@ -11671,7 +11960,7 @@ var QueryDetails = () => {
11671
11960
  <button
11672
11961
  class={clsx(
11673
11962
  u`
11674
- color: ${tokens.colors.gray[300]};
11963
+ color: ${t2(colors.gray[600], colors.gray[300])};
11675
11964
  `,
11676
11965
  "tsqd-query-details-actions-btn",
11677
11966
  "tsqd-query-details-action-reset"
@@ -11681,7 +11970,7 @@ var QueryDetails = () => {
11681
11970
  >
11682
11971
  <span
11683
11972
  class={u`
11684
- background-color: ${tokens.colors.gray[400]};
11973
+ background-color: ${t2(colors.gray[600], colors.gray[400])};
11685
11974
  `}
11686
11975
  />
11687
11976
  {"Reset"}
@@ -11689,7 +11978,7 @@ var QueryDetails = () => {
11689
11978
  <button
11690
11979
  class={clsx(
11691
11980
  u`
11692
- color: ${tokens.colors.pink[400]};
11981
+ color: ${t2(colors.pink[500], colors.pink[400])};
11693
11982
  `,
11694
11983
  "tsqd-query-details-actions-btn",
11695
11984
  "tsqd-query-details-action-remove"
@@ -11702,7 +11991,7 @@ var QueryDetails = () => {
11702
11991
  >
11703
11992
  <span
11704
11993
  class={u`
11705
- background-color: ${tokens.colors.pink[400]};
11994
+ background-color: ${t2(colors.pink[500], colors.pink[400])};
11706
11995
  `}
11707
11996
  />
11708
11997
  {"Remove"}
@@ -11710,7 +11999,7 @@ var QueryDetails = () => {
11710
11999
  <button
11711
12000
  class={clsx(
11712
12001
  u`
11713
- color: ${tokens.colors.cyan[400]};
12002
+ color: ${t2(colors.cyan[500], colors.cyan[400])};
11714
12003
  `,
11715
12004
  "tsqd-query-details-actions-btn",
11716
12005
  "tsqd-query-details-action-loading"
@@ -11747,7 +12036,7 @@ var QueryDetails = () => {
11747
12036
  >
11748
12037
  <span
11749
12038
  class={u`
11750
- background-color: ${tokens.colors.cyan[400]};
12039
+ background-color: ${t2(colors.cyan[500], colors.cyan[400])};
11751
12040
  `}
11752
12041
  />
11753
12042
  {queryStatus() === "pending" ? "Restore" : "Trigger"}
@@ -11756,7 +12045,7 @@ var QueryDetails = () => {
11756
12045
  <Show when={errorTypes().length === 0 || queryStatus() === "error"}><button
11757
12046
  class={clsx(
11758
12047
  u`
11759
- color: ${tokens.colors.red[400]};
12048
+ color: ${t2(colors.red[500], colors.red[400])};
11760
12049
  `,
11761
12050
  "tsqd-query-details-actions-btn",
11762
12051
  "tsqd-query-details-action-error"
@@ -11772,7 +12061,7 @@ var QueryDetails = () => {
11772
12061
  >
11773
12062
  <span
11774
12063
  class={u`
11775
- background-color: ${tokens.colors.red[400]};
12064
+ background-color: ${t2(colors.red[500], colors.red[400])};
11776
12065
  `}
11777
12066
  />
11778
12067
  {queryStatus() === "error" ? "Restore" : "Trigger"}
@@ -11782,7 +12071,7 @@ var QueryDetails = () => {
11782
12071
  when={!(errorTypes().length === 0 || queryStatus() === "error")}
11783
12072
  ><div
11784
12073
  class={clsx(
11785
- styles.actionsSelect,
12074
+ styles().actionsSelect,
11786
12075
  "tsqd-query-details-actions-btn",
11787
12076
  "tsqd-query-details-action-error-multiple"
11788
12077
  )}
@@ -11797,7 +12086,7 @@ var QueryDetails = () => {
11797
12086
  disabled={queryStatus() === "pending"}
11798
12087
  onChange={(e2) => {
11799
12088
  const errorType = errorTypes().find(
11800
- (t2) => t2.name === e2.currentTarget.value
12089
+ (et) => et.name === e2.currentTarget.value
11801
12090
  );
11802
12091
  triggerError(errorType);
11803
12092
  }}
@@ -11808,7 +12097,7 @@ var QueryDetails = () => {
11808
12097
  <ChevronDown />
11809
12098
  </div></Show>
11810
12099
  </div>
11811
- <div class={clsx(styles.detailsHeader, "tsqd-query-details-header")}>Data Explorer</div>
12100
+ <div class={clsx(styles().detailsHeader, "tsqd-query-details-header")}>Data Explorer</div>
11812
12101
  <div
11813
12102
  style={{
11814
12103
  padding: "0.5rem"
@@ -11821,7 +12110,7 @@ var QueryDetails = () => {
11821
12110
  editable={true}
11822
12111
  activeQuery={activeQuery()}
11823
12112
  /></div>
11824
- <div class={clsx(styles.detailsHeader, "tsqd-query-details-header")}>Query Explorer</div>
12113
+ <div class={clsx(styles().detailsHeader, "tsqd-query-details-header")}>Query Explorer</div>
11825
12114
  <div
11826
12115
  style={{
11827
12116
  padding: "0.5rem"
@@ -11871,8 +12160,9 @@ var createSubscribeToQueryCacheBatcher = (callback, equalityCheck = true) => {
11871
12160
  });
11872
12161
  return value;
11873
12162
  };
11874
- var getStyles2 = () => {
12163
+ var stylesFactory2 = (theme) => {
11875
12164
  const { colors, font, size: size2, alpha, shadow, border } = tokens;
12165
+ const t2 = (light, dark) => theme === "light" ? light : dark;
11876
12166
  return {
11877
12167
  devtoolsBtn: u`
11878
12168
  z-index: 100000;
@@ -11934,8 +12224,6 @@ var getStyles2 = () => {
11934
12224
  display: flex;
11935
12225
  gap: ${tokens.size[0.5]};
11936
12226
  & * {
11937
- font-family: 'Inter', sans-serif;
11938
- color: ${colors.gray[300]};
11939
12227
  box-sizing: border-box;
11940
12228
  text-transform: none;
11941
12229
  }
@@ -11962,7 +12250,7 @@ var getStyles2 = () => {
11962
12250
  left: 0;
11963
12251
  max-height: 90%;
11964
12252
  min-height: 3.5rem;
11965
- border-bottom: ${colors.darkGray[300]} 1px solid;
12253
+ border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11966
12254
  `,
11967
12255
  "panel-position-bottom": u`
11968
12256
  bottom: 0;
@@ -11970,20 +12258,20 @@ var getStyles2 = () => {
11970
12258
  left: 0;
11971
12259
  max-height: 90%;
11972
12260
  min-height: 3.5rem;
11973
- border-top: ${colors.darkGray[300]} 1px solid;
12261
+ border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11974
12262
  `,
11975
12263
  "panel-position-right": u`
11976
12264
  bottom: 0;
11977
12265
  right: 0;
11978
12266
  top: 0;
11979
- border-left: ${colors.darkGray[300]} 1px solid;
12267
+ border-left: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11980
12268
  max-width: 90%;
11981
12269
  `,
11982
12270
  "panel-position-left": u`
11983
12271
  bottom: 0;
11984
12272
  left: 0;
11985
12273
  top: 0;
11986
- border-right: ${colors.darkGray[300]} 1px solid;
12274
+ border-right: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11987
12275
  max-width: 90%;
11988
12276
  `,
11989
12277
  closeBtn: u`
@@ -11994,13 +12282,15 @@ var getStyles2 = () => {
11994
12282
  align-items: center;
11995
12283
  justify-content: center;
11996
12284
  outline: none;
12285
+ background-color: ${t2(colors.gray[50], colors.darkGray[700])};
11997
12286
  &:hover {
11998
- background-color: ${colors.darkGray[500]};
12287
+ background-color: ${t2(colors.gray[200], colors.darkGray[500])};
11999
12288
  }
12000
12289
  &:focus-visible {
12001
12290
  outline: 2px solid ${colors.blue[600]};
12002
12291
  }
12003
12292
  & svg {
12293
+ color: ${t2(colors.gray[600], colors.gray[400])};
12004
12294
  width: ${size2[2]};
12005
12295
  height: ${size2[2]};
12006
12296
  }
@@ -12009,11 +12299,10 @@ var getStyles2 = () => {
12009
12299
  bottom: 0;
12010
12300
  right: ${size2[2]};
12011
12301
  transform: translate(0, 100%);
12012
- background-color: ${colors.darkGray[700]};
12013
- border-right: ${colors.darkGray[300]} 1px solid;
12014
- border-left: ${colors.darkGray[300]} 1px solid;
12302
+ border-right: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
12303
+ border-left: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
12015
12304
  border-top: none;
12016
- border-bottom: ${colors.darkGray[300]} 1px solid;
12305
+ border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
12017
12306
  border-radius: 0px 0px ${border.radius.sm} ${border.radius.sm};
12018
12307
  padding: ${size2[0.5]} ${size2[1.5]} ${size2[1]} ${size2[1.5]};
12019
12308
 
@@ -12034,10 +12323,9 @@ var getStyles2 = () => {
12034
12323
  top: 0;
12035
12324
  right: ${size2[2]};
12036
12325
  transform: translate(0, -100%);
12037
- background-color: ${colors.darkGray[700]};
12038
- border-right: ${colors.darkGray[300]} 1px solid;
12039
- border-left: ${colors.darkGray[300]} 1px solid;
12040
- border-top: ${colors.darkGray[300]} 1px solid;
12326
+ border-right: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
12327
+ border-left: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
12328
+ border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
12041
12329
  border-bottom: none;
12042
12330
  border-radius: ${border.radius.sm} ${border.radius.sm} 0px 0px;
12043
12331
  padding: ${size2[1]} ${size2[1.5]} ${size2[0.5]} ${size2[1.5]};
@@ -12055,11 +12343,10 @@ var getStyles2 = () => {
12055
12343
  bottom: ${size2[2]};
12056
12344
  left: 0;
12057
12345
  transform: translate(-100%, 0);
12058
- background-color: ${colors.darkGray[700]};
12059
12346
  border-right: none;
12060
- border-left: ${colors.darkGray[300]} 1px solid;
12061
- border-top: ${colors.darkGray[300]} 1px solid;
12062
- border-bottom: ${colors.darkGray[300]} 1px solid;
12347
+ border-left: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
12348
+ border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
12349
+ border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
12063
12350
  border-radius: ${border.radius.sm} 0px 0px ${border.radius.sm};
12064
12351
  padding: ${size2[1.5]} ${size2[0.5]} ${size2[1.5]} ${size2[1]};
12065
12352
 
@@ -12079,11 +12366,10 @@ var getStyles2 = () => {
12079
12366
  bottom: ${size2[2]};
12080
12367
  right: 0;
12081
12368
  transform: translate(100%, 0);
12082
- background-color: ${colors.darkGray[700]};
12083
12369
  border-left: none;
12084
- border-right: ${colors.darkGray[300]} 1px solid;
12085
- border-top: ${colors.darkGray[300]} 1px solid;
12086
- border-bottom: ${colors.darkGray[300]} 1px solid;
12370
+ border-right: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
12371
+ border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
12372
+ border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
12087
12373
  border-radius: 0px ${border.radius.sm} ${border.radius.sm} 0px;
12088
12374
  padding: ${size2[1.5]} ${size2[1]} ${size2[1.5]} ${size2[0.5]};
12089
12375
 
@@ -12101,15 +12387,18 @@ var getStyles2 = () => {
12101
12387
  `,
12102
12388
  queriesContainer: u`
12103
12389
  flex: 1 1 700px;
12104
- background-color: ${colors.darkGray[700]};
12390
+ background-color: ${t2(colors.gray[50], colors.darkGray[700])};
12105
12391
  display: flex;
12106
12392
  flex-direction: column;
12393
+ & * {
12394
+ font-family: 'Inter', sans-serif;
12395
+ }
12107
12396
  `,
12108
12397
  dragHandle: u`
12109
12398
  position: absolute;
12110
12399
  transition: background-color 0.125s ease;
12111
12400
  &:hover {
12112
- background-color: ${colors.purple[400]}${alpha[90]};
12401
+ background-color: ${colors.purple[400]}${t2("", alpha[90])};
12113
12402
  }
12114
12403
  z-index: 4;
12115
12404
  `,
@@ -12143,7 +12432,7 @@ var getStyles2 = () => {
12143
12432
  align-items: center;
12144
12433
  padding: ${tokens.size[2]} ${tokens.size[2.5]};
12145
12434
  gap: ${tokens.size[3]};
12146
- border-bottom: ${colors.darkGray[500]} 1px solid;
12435
+ border-bottom: ${t2(colors.gray[300], colors.darkGray[500])} 1px solid;
12147
12436
  align-items: center;
12148
12437
  & > button {
12149
12438
  padding: 0;
@@ -12170,11 +12459,15 @@ var getStyles2 = () => {
12170
12459
  font-weight: ${font.weight.bold};
12171
12460
  line-height: ${font.lineHeight.xs};
12172
12461
  white-space: nowrap;
12462
+ color: ${t2(colors.gray[600], colors.gray[300])};
12173
12463
  `,
12174
12464
  queryFlavorLogo: u`
12175
12465
  font-weight: ${font.weight.semibold};
12176
12466
  font-size: ${font.size.xs};
12177
- background: linear-gradient(to right, #dd524b, #e9a03b);
12467
+ background: linear-gradient(
12468
+ to right,
12469
+ ${t2("#ea4037, #ff9b11", "#dd524b, #e9a03b")}
12470
+ );
12178
12471
  background-clip: text;
12179
12472
  -webkit-background-clip: text;
12180
12473
  line-height: 1;
@@ -12189,14 +12482,17 @@ var getStyles2 = () => {
12189
12482
  queryStatusTag: u`
12190
12483
  display: flex;
12191
12484
  gap: ${tokens.size[1.5]};
12192
- background: ${colors.darkGray[500]};
12485
+ box-sizing: border-box;
12486
+ height: ${tokens.size[6.5]};
12487
+ background: ${t2(colors.gray[50], colors.darkGray[500])};
12488
+ color: ${t2(colors.gray[700], colors.gray[300])};
12193
12489
  border-radius: ${tokens.border.radius.sm};
12194
12490
  font-size: ${font.size.sm};
12195
12491
  padding: ${tokens.size[1]};
12196
- padding-left: ${tokens.size[2]};
12492
+ padding-left: ${tokens.size[1.5]};
12197
12493
  align-items: center;
12198
12494
  font-weight: ${font.weight.medium};
12199
- border: none;
12495
+ border: ${t2("1px solid " + colors.gray[300], "1px solid transparent")};
12200
12496
  user-select: none;
12201
12497
  position: relative;
12202
12498
  &:focus-visible {
@@ -12213,8 +12509,8 @@ var getStyles2 = () => {
12213
12509
  display: flex;
12214
12510
  align-items: center;
12215
12511
  justify-content: center;
12216
- color: ${colors.gray[400]};
12217
- background-color: ${colors.darkGray[300]};
12512
+ color: ${t2(colors.gray[500], colors.gray[400])};
12513
+ background-color: ${t2(colors.gray[200], colors.darkGray[300])};
12218
12514
  border-radius: 2px;
12219
12515
  font-variant-numeric: tabular-nums;
12220
12516
  height: ${tokens.size[4.5]};
@@ -12222,15 +12518,15 @@ var getStyles2 = () => {
12222
12518
  statusTooltip: u`
12223
12519
  position: absolute;
12224
12520
  z-index: 1;
12225
- background-color: ${colors.darkGray[500]};
12521
+ background-color: ${t2(colors.gray[50], colors.darkGray[500])};
12226
12522
  top: 100%;
12227
12523
  left: 50%;
12228
12524
  transform: translate(-50%, calc(${tokens.size[2]}));
12229
12525
  padding: ${tokens.size[0.5]} ${tokens.size[2]};
12230
- border-radius: ${tokens.border.radius.md};
12526
+ border-radius: ${tokens.border.radius.sm};
12231
12527
  font-size: ${font.size.xs};
12232
- border: 1px solid ${colors.gray[600]};
12233
- color: ${tokens.colors["gray"][300]};
12528
+ border: 1px solid ${t2(colors.gray[400], colors.gray[600])};
12529
+ color: ${t2(colors["gray"][600], colors["gray"][300])};
12234
12530
 
12235
12531
  &::before {
12236
12532
  top: 0px;
@@ -12239,7 +12535,8 @@ var getStyles2 = () => {
12239
12535
  left: 50%;
12240
12536
  transform: translate(-50%, -100%);
12241
12537
  position: absolute;
12242
- border-color: transparent transparent ${colors.gray[600]} transparent;
12538
+ border-color: transparent transparent
12539
+ ${t2(colors.gray[400], colors.gray[600])} transparent;
12243
12540
  border-style: solid;
12244
12541
  border-width: 7px;
12245
12542
  /* transform: rotate(180deg); */
@@ -12250,17 +12547,14 @@ var getStyles2 = () => {
12250
12547
  content: ' ';
12251
12548
  display: block;
12252
12549
  left: 50%;
12253
- transform: translate(-50%, calc(-100% + 2.5px));
12550
+ transform: translate(-50%, calc(-100% + 2px));
12254
12551
  position: absolute;
12255
- border-color: transparent transparent ${colors.darkGray[500]}
12256
- transparent;
12552
+ border-color: transparent transparent
12553
+ ${t2(colors.gray[100], colors.darkGray[500])} transparent;
12257
12554
  border-style: solid;
12258
12555
  border-width: 7px;
12259
12556
  }
12260
12557
  `,
12261
- selectedQueryRow: u`
12262
- background-color: ${colors.darkGray[500]};
12263
- `,
12264
12558
  filtersContainer: u`
12265
12559
  display: flex;
12266
12560
  gap: ${tokens.size[2]};
@@ -12269,47 +12563,52 @@ var getStyles2 = () => {
12269
12563
  padding: ${tokens.size[0.5]} ${tokens.size[2]};
12270
12564
  padding-right: ${tokens.size[1.5]};
12271
12565
  border-radius: ${tokens.border.radius.sm};
12272
- background-color: ${colors.darkGray[400]};
12566
+ background-color: ${t2(colors.gray[100], colors.darkGray[400])};
12567
+ border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
12568
+ color: ${t2(colors.gray[700], colors.gray[300])};
12273
12569
  font-size: ${font.size.xs};
12274
12570
  display: flex;
12275
12571
  align-items: center;
12276
12572
  line-height: ${font.lineHeight.sm};
12277
12573
  gap: ${tokens.size[1.5]};
12278
12574
  max-width: 160px;
12279
- border: 1px solid ${colors.darkGray[200]};
12280
12575
  &:focus-visible {
12281
12576
  outline-offset: 2px;
12282
12577
  border-radius: ${border.radius.xs};
12283
12578
  outline: 2px solid ${colors.blue[800]};
12284
12579
  }
12580
+ & svg {
12581
+ color: ${t2(colors.gray[500], colors.gray[400])};
12582
+ }
12285
12583
  }
12286
12584
  `,
12287
12585
  filterInput: u`
12288
- padding: ${tokens.size[0.5]} ${tokens.size[2]};
12586
+ padding: ${size2[0.5]} ${size2[2]};
12289
12587
  border-radius: ${tokens.border.radius.sm};
12290
- background-color: ${colors.darkGray[400]};
12588
+ background-color: ${t2(colors.gray[100], colors.darkGray[400])};
12291
12589
  display: flex;
12292
12590
  box-sizing: content-box;
12293
12591
  align-items: center;
12294
12592
  gap: ${tokens.size[1.5]};
12295
12593
  max-width: 160px;
12296
12594
  min-width: 100px;
12297
- border: 1px solid ${colors.darkGray[200]};
12595
+ border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
12298
12596
  height: min-content;
12597
+ color: ${t2(colors.gray[600], colors.gray[400])};
12299
12598
  & > svg {
12300
- width: ${tokens.size[3]};
12301
- height: ${tokens.size[3]};
12599
+ width: ${size2[3]};
12600
+ height: ${size2[3]};
12302
12601
  }
12303
12602
  & input {
12304
12603
  font-size: ${font.size.xs};
12305
12604
  width: 100%;
12306
- background-color: ${colors.darkGray[400]};
12605
+ background-color: ${t2(colors.gray[100], colors.darkGray[400])};
12307
12606
  border: none;
12308
12607
  padding: 0;
12309
12608
  line-height: ${font.lineHeight.sm};
12310
- color: ${colors.gray[300]};
12609
+ color: ${t2(colors.gray[700], colors.gray[300])};
12311
12610
  &::placeholder {
12312
- color: ${colors.gray[300]};
12611
+ color: ${t2(colors.gray[700], colors.gray[300])};
12313
12612
  }
12314
12613
  &:focus {
12315
12614
  outline: none;
@@ -12325,24 +12624,26 @@ var getStyles2 = () => {
12325
12624
  filterSelect: u`
12326
12625
  padding: ${tokens.size[0.5]} ${tokens.size[2]};
12327
12626
  border-radius: ${tokens.border.radius.sm};
12328
- background-color: ${colors.darkGray[400]};
12627
+ background-color: ${t2(colors.gray[100], colors.darkGray[400])};
12329
12628
  display: flex;
12330
12629
  align-items: center;
12331
12630
  gap: ${tokens.size[1.5]};
12332
12631
  box-sizing: content-box;
12333
12632
  max-width: 160px;
12334
- border: 1px solid ${colors.darkGray[200]};
12633
+ border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
12335
12634
  height: min-content;
12336
12635
  & > svg {
12636
+ color: ${t2(colors.gray[600], colors.gray[400])};
12337
12637
  width: ${tokens.size[2]};
12338
12638
  height: ${tokens.size[2]};
12339
12639
  }
12340
12640
  & > select {
12341
12641
  appearance: none;
12642
+ color: ${t2(colors.gray[700], colors.gray[300])};
12342
12643
  min-width: 100px;
12343
12644
  line-height: ${font.lineHeight.sm};
12344
12645
  font-size: ${font.size.xs};
12345
- background-color: ${colors.darkGray[400]};
12646
+ background-color: ${t2(colors.gray[100], colors.darkGray[400])};
12346
12647
  border: none;
12347
12648
  &:focus {
12348
12649
  outline: none;
@@ -12360,7 +12661,8 @@ var getStyles2 = () => {
12360
12661
  `,
12361
12662
  actionsBtn: u`
12362
12663
  border-radius: ${tokens.border.radius.sm};
12363
- background-color: ${colors.darkGray[400]};
12664
+ background-color: ${t2(colors.gray[100], colors.darkGray[400])};
12665
+ border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
12364
12666
  width: 1.625rem;
12365
12667
  height: 1.625rem;
12366
12668
  justify-content: center;
@@ -12368,13 +12670,13 @@ var getStyles2 = () => {
12368
12670
  align-items: center;
12369
12671
  gap: ${tokens.size[1.5]};
12370
12672
  max-width: 160px;
12371
- border: 1px solid ${colors.darkGray[200]};
12372
12673
  cursor: pointer;
12373
12674
  padding: 0;
12374
12675
  &:hover {
12375
- background-color: ${colors.darkGray[500]};
12676
+ background-color: ${t2(colors.gray[200], colors.darkGray[500])};
12376
12677
  }
12377
12678
  & svg {
12679
+ color: ${t2(colors.gray[700], colors.gray[300])};
12378
12680
  width: ${tokens.size[3]};
12379
12681
  height: ${tokens.size[3]};
12380
12682
  }
@@ -12384,6 +12686,12 @@ var getStyles2 = () => {
12384
12686
  outline: 2px solid ${colors.blue[800]};
12385
12687
  }
12386
12688
  `,
12689
+ actionsBtnOffline: u`
12690
+ & svg {
12691
+ stroke: ${t2(colors.yellow[700], colors.yellow[500])};
12692
+ fill: ${t2(colors.yellow[700], colors.yellow[500])};
12693
+ }
12694
+ `,
12387
12695
  overflowQueryContainer: u`
12388
12696
  flex: 1;
12389
12697
  overflow-y: auto;
@@ -12396,9 +12704,11 @@ var getStyles2 = () => {
12396
12704
  display: flex;
12397
12705
  align-items: center;
12398
12706
  padding: 0;
12399
- background-color: inherit;
12400
12707
  border: none;
12401
12708
  cursor: pointer;
12709
+ color: ${t2(colors.gray[700], colors.gray[300])};
12710
+ background-color: ${t2(colors.gray[50], colors.darkGray[700])};
12711
+ line-height: 1;
12402
12712
  &:focus {
12403
12713
  outline: none;
12404
12714
  }
@@ -12408,7 +12718,7 @@ var getStyles2 = () => {
12408
12718
  outline: 2px solid ${colors.blue[800]};
12409
12719
  }
12410
12720
  &:hover .tsqd-query-hash {
12411
- background-color: ${colors.darkGray[600]};
12721
+ background-color: ${t2(colors.gray[200], colors.darkGray[600])};
12412
12722
  }
12413
12723
 
12414
12724
  & .tsqd-query-observer-count {
@@ -12423,7 +12733,7 @@ var getStyles2 = () => {
12423
12733
  font-weight: ${font.weight.medium};
12424
12734
  border-bottom-width: 1px;
12425
12735
  border-bottom-style: solid;
12426
- border-bottom: 1px solid ${colors.darkGray[700]};
12736
+ border-bottom: 1px solid ${t2(colors.gray[300], colors.darkGray[700])};
12427
12737
  }
12428
12738
  & .tsqd-query-hash {
12429
12739
  user-select: text;
@@ -12434,7 +12744,7 @@ var getStyles2 = () => {
12434
12744
  flex: 1;
12435
12745
  padding: ${tokens.size[1]} ${tokens.size[2]};
12436
12746
  font-family: 'Menlo', 'Fira Code', monospace;
12437
- border-bottom: 1px solid ${colors.darkGray[400]};
12747
+ border-bottom: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
12438
12748
  text-align: left;
12439
12749
  text-overflow: clip;
12440
12750
  word-break: break-word;
@@ -12445,15 +12755,20 @@ var getStyles2 = () => {
12445
12755
  display: flex;
12446
12756
  align-items: center;
12447
12757
  padding: 0 ${tokens.size[2]};
12448
- color: ${colors.gray[300]};
12449
- background-color: ${colors.darkGray[600]};
12450
- border-bottom: 1px solid ${colors.darkGray[400]};
12758
+ color: ${t2(colors.gray[800], colors.gray[300])};
12759
+ background-color: ${t2(colors.gray[300], colors.darkGray[600])};
12760
+ border-bottom: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
12451
12761
  font-size: ${font.size.xs};
12452
12762
  }
12453
12763
  `,
12764
+ selectedQueryRow: u`
12765
+ background-color: ${t2(colors.gray[200], colors.darkGray[500])};
12766
+ `,
12454
12767
  detailsContainer: u`
12455
12768
  flex: 1 1 700px;
12456
- background-color: ${colors.darkGray[700]};
12769
+ background-color: ${t2(colors.gray[50], colors.darkGray[700])};
12770
+ color: ${t2(colors.gray[700], colors.gray[300])};
12771
+ font-family: 'Inter', sans-serif;
12457
12772
  display: flex;
12458
12773
  flex-direction: column;
12459
12774
  overflow-y: auto;
@@ -12461,10 +12776,11 @@ var getStyles2 = () => {
12461
12776
  text-align: left;
12462
12777
  `,
12463
12778
  detailsHeader: u`
12779
+ font-family: 'Inter', sans-serif;
12464
12780
  position: sticky;
12465
12781
  top: 0;
12466
12782
  z-index: 2;
12467
- background-color: ${colors.darkGray[600]};
12783
+ background-color: ${t2(colors.gray[200], colors.darkGray[600])};
12468
12784
  padding: ${tokens.size[1.5]} ${tokens.size[2]};
12469
12785
  font-weight: ${font.weight.medium};
12470
12786
  font-size: ${font.size.xs};
@@ -12497,6 +12813,10 @@ var getStyles2 = () => {
12497
12813
  font-size: ${font.size.xs};
12498
12814
  line-height: ${font.lineHeight.xs};
12499
12815
  }
12816
+
12817
+ & pre {
12818
+ margin: 0;
12819
+ }
12500
12820
  `,
12501
12821
  queryDetailsStatus: u`
12502
12822
  border: 1px solid ${colors.darkGray[200]};
@@ -12511,12 +12831,13 @@ var getStyles2 = () => {
12511
12831
  gap: ${tokens.size[2]};
12512
12832
  padding: 0px ${tokens.size[2]};
12513
12833
  & > button {
12834
+ font-family: 'Inter', sans-serif;
12514
12835
  font-size: ${font.size.xs};
12515
12836
  padding: ${tokens.size[1]} ${tokens.size[2]};
12516
12837
  display: flex;
12517
12838
  border-radius: ${tokens.border.radius.sm};
12518
- border: 1px solid ${colors.darkGray[400]};
12519
- background-color: ${colors.darkGray[600]};
12839
+ background-color: ${t2(colors.gray[100], colors.darkGray[600])};
12840
+ border: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
12520
12841
  align-items: center;
12521
12842
  gap: ${tokens.size[2]};
12522
12843
  font-weight: ${font.weight.medium};
@@ -12528,7 +12849,7 @@ var getStyles2 = () => {
12528
12849
  outline: 2px solid ${colors.blue[800]};
12529
12850
  }
12530
12851
  &:hover {
12531
- background-color: ${colors.darkGray[500]};
12852
+ background-color: ${t2(colors.gray[200], colors.darkGray[500])};
12532
12853
  }
12533
12854
 
12534
12855
  &:disabled {
@@ -12549,17 +12870,17 @@ var getStyles2 = () => {
12549
12870
  display: flex;
12550
12871
  border-radius: ${tokens.border.radius.sm};
12551
12872
  overflow: hidden;
12552
- border: 1px solid ${colors.darkGray[400]};
12553
- background-color: ${colors.darkGray[600]};
12873
+ background-color: ${t2(colors.gray[100], colors.darkGray[600])};
12874
+ border: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
12554
12875
  align-items: center;
12555
12876
  gap: ${tokens.size[2]};
12556
12877
  font-weight: ${font.weight.medium};
12557
12878
  line-height: ${font.lineHeight.sm};
12558
- color: ${tokens.colors.red[400]};
12879
+ color: ${t2(colors.red[500], colors.red[400])};
12559
12880
  cursor: pointer;
12560
12881
  position: relative;
12561
12882
  &:hover {
12562
- background-color: ${colors.darkGray[500]};
12883
+ background-color: ${t2(colors.gray[200], colors.darkGray[500])};
12563
12884
  }
12564
12885
  & > span {
12565
12886
  width: ${size2[1.5]};
@@ -12600,10 +12921,10 @@ var getStyles2 = () => {
12600
12921
  flex-direction: column;
12601
12922
  gap: ${size2[0.5]};
12602
12923
  border-radius: ${tokens.border.radius.sm};
12603
- border: 1px solid ${colors.gray[700]};
12604
- background-color: ${colors.darkGray[600]};
12924
+ border: 1px solid ${t2(colors.gray[300], colors.gray[700])};
12925
+ background-color: ${t2(colors.gray[50], colors.darkGray[600])};
12605
12926
  font-size: ${font.size.xs};
12606
- color: ${colors.gray[300]};
12927
+ color: ${t2(colors.gray[700], colors.gray[300])};
12607
12928
  z-index: 99999;
12608
12929
  min-width: 120px;
12609
12930
  padding: ${size2[0.5]};
@@ -12613,17 +12934,19 @@ var getStyles2 = () => {
12613
12934
  align-items: center;
12614
12935
  justify-content: space-between;
12615
12936
  border-radius: ${tokens.border.radius.xs};
12616
- padding: ${tokens.size[0.5]} ${tokens.size[1]};
12937
+ padding: ${tokens.size[1]} ${tokens.size[1]};
12617
12938
  cursor: pointer;
12618
12939
  background-color: transparent;
12619
12940
  border: none;
12941
+ color: ${t2(colors.gray[700], colors.gray[300])};
12620
12942
  & svg {
12943
+ color: ${t2(colors.gray[600], colors.gray[400])};
12621
12944
  transform: rotate(-90deg);
12622
12945
  width: ${tokens.size[2]};
12623
12946
  height: ${tokens.size[2]};
12624
12947
  }
12625
12948
  &:hover {
12626
- background-color: ${colors.darkGray[500]};
12949
+ background-color: ${t2(colors.gray[200], colors.darkGray[500])};
12627
12950
  }
12628
12951
  &:focus-visible {
12629
12952
  outline-offset: 2px;
@@ -12635,33 +12958,48 @@ var getStyles2 = () => {
12635
12958
  }
12636
12959
  `,
12637
12960
  settingsMenuHeader: u`
12638
- padding: ${tokens.size[0.5]} ${tokens.size[1]};
12961
+ padding: ${tokens.size[1]} ${tokens.size[1]};
12639
12962
  font-weight: ${font.weight.medium};
12640
- border-bottom: 1px solid ${colors.darkGray[400]};
12641
- color: ${colors.gray[400]};
12963
+ border-bottom: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
12964
+ color: ${t2(colors.gray[500], colors.gray[400])};
12642
12965
  font-size: ${font.size["xs"]};
12643
12966
  `,
12644
12967
  settingsSubButton: u`
12645
12968
  display: flex;
12646
12969
  align-items: center;
12647
12970
  justify-content: space-between;
12648
- color: ${colors.gray[300]};
12971
+ color: ${t2(colors.gray[700], colors.gray[300])};
12649
12972
  font-size: ${font.size["xs"]};
12650
12973
  border-radius: ${tokens.border.radius.xs};
12651
- padding: ${tokens.size[0.5]} ${tokens.size[1]};
12974
+ padding: ${tokens.size[1]} ${tokens.size[1]};
12652
12975
  cursor: pointer;
12653
12976
  background-color: transparent;
12654
12977
  border: none;
12978
+ & svg {
12979
+ color: ${t2(colors.gray[600], colors.gray[400])};
12980
+ }
12655
12981
  &:hover {
12656
- background-color: ${colors.darkGray[500]};
12982
+ background-color: ${t2(colors.gray[200], colors.darkGray[500])};
12657
12983
  }
12658
12984
  &:focus-visible {
12659
12985
  outline-offset: 2px;
12660
12986
  outline: 2px solid ${colors.blue[800]};
12661
12987
  }
12988
+ `,
12989
+ themeSelectedButton: u`
12990
+ background-color: ${t2(colors.purple[100], colors.purple[900])};
12991
+ color: ${t2(colors.purple[700], colors.purple[300])};
12992
+ & svg {
12993
+ color: ${t2(colors.purple[700], colors.purple[300])};
12994
+ }
12995
+ &:hover {
12996
+ background-color: ${t2(colors.purple[100], colors.purple[900])};
12997
+ }
12662
12998
  `
12663
12999
  };
12664
13000
  };
13001
+ var lightStyles2 = stylesFactory2("light");
13002
+ var darkStyles2 = stylesFactory2("dark");
12665
13003
  export {
12666
13004
  Devtools,
12667
13005
  DevtoolsComponent,