@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/LGDS24HT.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) {
@@ -8970,12 +8963,12 @@ var untransformValue = function(json, type, superJson) {
8970
8963
 
8971
8964
  // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/accessDeep.js
8972
8965
  var getNthKey = function(value, n2) {
8973
- var keys3 = value.keys();
8966
+ var keys2 = value.keys();
8974
8967
  while (n2 > 0) {
8975
- keys3.next();
8968
+ keys2.next();
8976
8969
  n2--;
8977
8970
  }
8978
- return keys3.next().value;
8971
+ return keys2.next().value;
8979
8972
  };
8980
8973
  function validatePath(path) {
8981
8974
  if (includes(path, "__proto__")) {
@@ -9285,7 +9278,7 @@ function isOneOf(a2, b2, c2, d, e2) {
9285
9278
  return (value) => a2(value) || b2(value) || !!c2 && c2(value) || !!d && d(value) || !!e2 && e2(value);
9286
9279
  }
9287
9280
 
9288
- // ../../node_modules/.pnpm/copy-anything@3.0.2/node_modules/copy-anything/dist/index.es.js
9281
+ // ../../node_modules/.pnpm/copy-anything@3.0.5/node_modules/copy-anything/dist/index.js
9289
9282
  function assignProp(carry, key, newVal, originalObject, includeNonenumerable) {
9290
9283
  const propType = {}.propertyIsEnumerable.call(originalObject, key) ? "enumerable" : "nonenumerable";
9291
9284
  if (propType === "enumerable")
@@ -9478,6 +9471,19 @@ var sortFns = {
9478
9471
  var convertRemToPixels = (rem) => {
9479
9472
  return rem * parseFloat(getComputedStyle(document.documentElement).fontSize);
9480
9473
  };
9474
+ var getPreferredColorScheme = () => {
9475
+ const [colorScheme, setColorScheme] = createSignal("dark");
9476
+ onMount(() => {
9477
+ const query = window.matchMedia("(prefers-color-scheme: dark)");
9478
+ setColorScheme(query.matches ? "dark" : "light");
9479
+ const listener = (e2) => {
9480
+ setColorScheme(e2.matches ? "dark" : "light");
9481
+ };
9482
+ query.addEventListener("change", listener);
9483
+ onCleanup(() => query.removeEventListener("change", listener));
9484
+ });
9485
+ return colorScheme;
9486
+ };
9481
9487
  var updateNestedDataByPath = (oldData, updatePath2, value) => {
9482
9488
  if (updatePath2.length === 0) {
9483
9489
  return value;
@@ -9569,7 +9575,7 @@ function Search() {
9569
9575
  xmlns="http://www.w3.org/2000/svg"
9570
9576
  ><path
9571
9577
  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"
9572
- stroke="#98A2B3"
9578
+ stroke="currentColor"
9573
9579
  stroke-width="1.66667"
9574
9580
  stroke-linecap="round"
9575
9581
  stroke-linejoin="round"
@@ -9584,8 +9590,8 @@ function Trash() {
9584
9590
  xmlns="http://www.w3.org/2000/svg"
9585
9591
  ><path
9586
9592
  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"
9587
- stroke="#d0d5dd"
9588
- stroke-width="1.66667"
9593
+ stroke="currentColor"
9594
+ stroke-width="2"
9589
9595
  stroke-linecap="round"
9590
9596
  stroke-linejoin="round"
9591
9597
  /></svg>;
@@ -9599,7 +9605,7 @@ function ChevronDown() {
9599
9605
  xmlns="http://www.w3.org/2000/svg"
9600
9606
  ><path
9601
9607
  d="M1 1L5 5L9 1"
9602
- stroke="#98A2B3"
9608
+ stroke="currentColor"
9603
9609
  stroke-width="1.66667"
9604
9610
  stroke-linecap="round"
9605
9611
  stroke-linejoin="round"
@@ -9614,7 +9620,7 @@ function ArrowUp() {
9614
9620
  xmlns="http://www.w3.org/2000/svg"
9615
9621
  ><path
9616
9622
  d="M8 13.3333V2.66667M8 2.66667L4 6.66667M8 2.66667L12 6.66667"
9617
- stroke="#98A2B3"
9623
+ stroke="currentColor"
9618
9624
  stroke-width="1.66667"
9619
9625
  stroke-linecap="round"
9620
9626
  stroke-linejoin="round"
@@ -9629,7 +9635,7 @@ function ArrowDown() {
9629
9635
  xmlns="http://www.w3.org/2000/svg"
9630
9636
  ><path
9631
9637
  d="M8 2.66667V13.3333M8 13.3333L4 9.33333M8 13.3333L12 9.33333"
9632
- stroke="#98A2B3"
9638
+ stroke="currentColor"
9633
9639
  stroke-width="1.66667"
9634
9640
  stroke-linecap="round"
9635
9641
  stroke-linejoin="round"
@@ -9647,7 +9653,7 @@ function ArrowLeft() {
9647
9653
  }}
9648
9654
  ><path
9649
9655
  d="M8 2.66667V13.3333M8 13.3333L4 9.33333M8 13.3333L12 9.33333"
9650
- stroke="#98A2B3"
9656
+ stroke="currentColor"
9651
9657
  stroke-width="1.66667"
9652
9658
  stroke-linecap="round"
9653
9659
  stroke-linejoin="round"
@@ -9665,16 +9671,61 @@ function ArrowRight() {
9665
9671
  }}
9666
9672
  ><path
9667
9673
  d="M8 2.66667V13.3333M8 13.3333L4 9.33333M8 13.3333L12 9.33333"
9668
- stroke="#98A2B3"
9674
+ stroke="currentColor"
9669
9675
  stroke-width="1.66667"
9670
9676
  stroke-linecap="round"
9671
9677
  stroke-linejoin="round"
9672
9678
  /></svg>;
9673
9679
  }
9680
+ function Sun() {
9681
+ return <svg
9682
+ viewBox="0 0 24 24"
9683
+ height="12"
9684
+ width="12"
9685
+ fill="none"
9686
+ xmlns="http://www.w3.org/2000/svg"
9687
+ ><path
9688
+ 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"
9689
+ stroke="currentColor"
9690
+ stroke-width="2"
9691
+ stroke-linecap="round"
9692
+ stroke-linejoin="round"
9693
+ /></svg>;
9694
+ }
9695
+ function Moon() {
9696
+ return <svg
9697
+ viewBox="0 0 24 24"
9698
+ height="12"
9699
+ width="12"
9700
+ fill="none"
9701
+ xmlns="http://www.w3.org/2000/svg"
9702
+ ><path
9703
+ 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"
9704
+ stroke="currentColor"
9705
+ stroke-width="2"
9706
+ stroke-linecap="round"
9707
+ stroke-linejoin="round"
9708
+ /></svg>;
9709
+ }
9710
+ function Monitor() {
9711
+ return <svg
9712
+ viewBox="0 0 24 24"
9713
+ height="12"
9714
+ width="12"
9715
+ fill="none"
9716
+ xmlns="http://www.w3.org/2000/svg"
9717
+ ><path
9718
+ 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"
9719
+ stroke="currentColor"
9720
+ stroke-width="2"
9721
+ stroke-linecap="round"
9722
+ stroke-linejoin="round"
9723
+ /></svg>;
9724
+ }
9674
9725
  function Wifi() {
9675
9726
  return <svg
9676
- stroke="#d0d5dd"
9677
- fill="#d0d5dd"
9727
+ stroke="currentColor"
9728
+ fill="currentColor"
9678
9729
  stroke-width="0"
9679
9730
  viewBox="0 0 24 24"
9680
9731
  height="1em"
@@ -9687,8 +9738,6 @@ function Wifi() {
9687
9738
  }
9688
9739
  function Offline() {
9689
9740
  return <svg
9690
- stroke={tokens.colors.yellow[500]}
9691
- fill={tokens.colors.yellow[500]}
9692
9741
  stroke-width="0"
9693
9742
  viewBox="0 0 24 24"
9694
9743
  height="1em"
@@ -9712,14 +9761,14 @@ function Settings() {
9712
9761
  >
9713
9762
  <path
9714
9763
  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"
9715
- stroke="#d0d5dd"
9764
+ stroke="currentColor"
9716
9765
  stroke-width="2"
9717
9766
  stroke-linecap="round"
9718
9767
  stroke-linejoin="round"
9719
9768
  />
9720
9769
  <path
9721
9770
  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"
9722
- stroke="#d0d5dd"
9771
+ stroke="currentColor"
9723
9772
  stroke-width="2"
9724
9773
  stroke-linecap="round"
9725
9774
  stroke-linejoin="round"
@@ -9739,10 +9788,10 @@ function Copier() {
9739
9788
  stroke-width="2"
9740
9789
  stroke-linecap="round"
9741
9790
  stroke-linejoin="round"
9742
- stroke="#98A2B3"
9791
+ stroke="currentColor"
9743
9792
  /></svg>;
9744
9793
  }
9745
- function CopiedCopier() {
9794
+ function CopiedCopier(props) {
9746
9795
  return <svg
9747
9796
  width="24"
9748
9797
  height="24"
@@ -9751,7 +9800,7 @@ function CopiedCopier() {
9751
9800
  xmlns="http://www.w3.org/2000/svg"
9752
9801
  ><path
9753
9802
  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"
9754
- stroke="#12B76A"
9803
+ stroke={props.theme === "dark" ? "#12B76A" : "#027A48"}
9755
9804
  stroke-width="2"
9756
9805
  stroke-linecap="round"
9757
9806
  stroke-linejoin="round"
@@ -9778,7 +9827,7 @@ function List() {
9778
9827
  height="24"
9779
9828
  viewBox="0 0 24 24"
9780
9829
  fill="none"
9781
- stroke="#98A2B3"
9830
+ stroke="currentColor"
9782
9831
  stroke-width="2"
9783
9832
  xmlns="http://www.w3.org/2000/svg"
9784
9833
  >
@@ -9788,10 +9837,41 @@ function List() {
9788
9837
  <line class="list-item" y1="17" y2="17" x1="6" x2="18" />
9789
9838
  </svg>;
9790
9839
  }
9840
+ function Check(props) {
9841
+ return <>
9842
+ <Show when={props.checked}><svg
9843
+ width="24"
9844
+ height="24"
9845
+ viewBox="0 0 24 24"
9846
+ fill="none"
9847
+ xmlns="http://www.w3.org/2000/svg"
9848
+ ><path
9849
+ 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"
9850
+ stroke={props.theme === "dark" ? "#9B8AFB" : "#6938EF"}
9851
+ stroke-width="2"
9852
+ stroke-linecap="round"
9853
+ stroke-linejoin="round"
9854
+ /></svg></Show>
9855
+ <Show when={!props.checked}><svg
9856
+ viewBox="0 0 24 24"
9857
+ height="20"
9858
+ width="20"
9859
+ fill="none"
9860
+ xmlns="http://www.w3.org/2000/svg"
9861
+ ><path
9862
+ 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"
9863
+ stroke={props.theme === "dark" ? "#9B8AFB" : "#6938EF"}
9864
+ stroke-width="2"
9865
+ stroke-linecap="round"
9866
+ stroke-linejoin="round"
9867
+ /></svg></Show>
9868
+ </>;
9869
+ }
9791
9870
  function TanstackLogo() {
9871
+ const id = createUniqueId();
9792
9872
  return <svg version="1.0" viewBox="0 0 633 633">
9793
9873
  <linearGradient
9794
- id="a"
9874
+ id={`a-${id}`}
9795
9875
  x1="-666.45"
9796
9876
  x2="-666.45"
9797
9877
  y1="163.28"
@@ -9804,9 +9884,9 @@ function TanstackLogo() {
9804
9884
  <stop stop-color="#FFA770" offset=".71" />
9805
9885
  <stop stop-color="#FF7373" offset="1" />
9806
9886
  </linearGradient>
9807
- <circle cx="316.5" cy="316.5" r="316.5" fill="url(#a)" />
9887
+ <circle cx="316.5" cy="316.5" r="316.5" fill={`url(#a-${id})`} />
9808
9888
  <defs><filter
9809
- id="am"
9889
+ id={`am-${id}`}
9810
9890
  x="-137.5"
9811
9891
  y="412"
9812
9892
  width="454"
@@ -9814,14 +9894,14 @@ function TanstackLogo() {
9814
9894
  filterUnits="userSpaceOnUse"
9815
9895
  ><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0" /></filter></defs>
9816
9896
  <mask
9817
- id="b"
9897
+ id={`b-${id}`}
9818
9898
  x="-137.5"
9819
9899
  y="412"
9820
9900
  width="454"
9821
9901
  height="396.9"
9822
9902
  maskUnits="userSpaceOnUse"
9823
- ><g filter="url(#am)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
9824
- <g mask="url(#b)"><ellipse
9903
+ ><g filter={`url(#am-${id})`}><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
9904
+ <g mask={`url(#b-${id})`}><ellipse
9825
9905
  cx="89.5"
9826
9906
  cy="610.5"
9827
9907
  rx="214.5"
@@ -9831,7 +9911,7 @@ function TanstackLogo() {
9831
9911
  stroke-width="25"
9832
9912
  /></g>
9833
9913
  <defs><filter
9834
- id="ah"
9914
+ id={`ah-${id}`}
9835
9915
  x="316.5"
9836
9916
  y="412"
9837
9917
  width="454"
@@ -9839,14 +9919,14 @@ function TanstackLogo() {
9839
9919
  filterUnits="userSpaceOnUse"
9840
9920
  ><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0" /></filter></defs>
9841
9921
  <mask
9842
- id="k"
9922
+ id={`k-${id}`}
9843
9923
  x="316.5"
9844
9924
  y="412"
9845
9925
  width="454"
9846
9926
  height="396.9"
9847
9927
  maskUnits="userSpaceOnUse"
9848
- ><g filter="url(#ah)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
9849
- <g mask="url(#k)"><ellipse
9928
+ ><g filter={`url(#ah-${id})`}><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
9929
+ <g mask={`url(#k-${id})`}><ellipse
9850
9930
  cx="543.5"
9851
9931
  cy="610.5"
9852
9932
  rx="214.5"
@@ -9856,7 +9936,7 @@ function TanstackLogo() {
9856
9936
  stroke-width="25"
9857
9937
  /></g>
9858
9938
  <defs><filter
9859
- id="ae"
9939
+ id={`ae-${id}`}
9860
9940
  x="-137.5"
9861
9941
  y="450"
9862
9942
  width="454"
@@ -9864,14 +9944,14 @@ function TanstackLogo() {
9864
9944
  filterUnits="userSpaceOnUse"
9865
9945
  ><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0" /></filter></defs>
9866
9946
  <mask
9867
- id="j"
9947
+ id={`j-${id}`}
9868
9948
  x="-137.5"
9869
9949
  y="450"
9870
9950
  width="454"
9871
9951
  height="396.9"
9872
9952
  maskUnits="userSpaceOnUse"
9873
- ><g filter="url(#ae)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
9874
- <g mask="url(#j)"><ellipse
9953
+ ><g filter={`url(#ae-${id})`}><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
9954
+ <g mask={`url(#j-${id})`}><ellipse
9875
9955
  cx="89.5"
9876
9956
  cy="648.5"
9877
9957
  rx="214.5"
@@ -9881,7 +9961,7 @@ function TanstackLogo() {
9881
9961
  stroke-width="25"
9882
9962
  /></g>
9883
9963
  <defs><filter
9884
- id="ai"
9964
+ id={`ai-${id}`}
9885
9965
  x="316.5"
9886
9966
  y="450"
9887
9967
  width="454"
@@ -9889,14 +9969,14 @@ function TanstackLogo() {
9889
9969
  filterUnits="userSpaceOnUse"
9890
9970
  ><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0" /></filter></defs>
9891
9971
  <mask
9892
- id="i"
9972
+ id={`i-${id}`}
9893
9973
  x="316.5"
9894
9974
  y="450"
9895
9975
  width="454"
9896
9976
  height="396.9"
9897
9977
  maskUnits="userSpaceOnUse"
9898
- ><g filter="url(#ai)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
9899
- <g mask="url(#i)"><ellipse
9978
+ ><g filter={`url(#ai-${id})`}><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
9979
+ <g mask={`url(#i-${id})`}><ellipse
9900
9980
  cx="543.5"
9901
9981
  cy="648.5"
9902
9982
  rx="214.5"
@@ -9906,7 +9986,7 @@ function TanstackLogo() {
9906
9986
  stroke-width="25"
9907
9987
  /></g>
9908
9988
  <defs><filter
9909
- id="aj"
9989
+ id={`aj-${id}`}
9910
9990
  x="-137.5"
9911
9991
  y="486"
9912
9992
  width="454"
@@ -9914,14 +9994,14 @@ function TanstackLogo() {
9914
9994
  filterUnits="userSpaceOnUse"
9915
9995
  ><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0" /></filter></defs>
9916
9996
  <mask
9917
- id="h"
9997
+ id={`h-${id}`}
9918
9998
  x="-137.5"
9919
9999
  y="486"
9920
10000
  width="454"
9921
10001
  height="396.9"
9922
10002
  maskUnits="userSpaceOnUse"
9923
- ><g filter="url(#aj)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
9924
- <g mask="url(#h)"><ellipse
10003
+ ><g filter={`url(#aj-${id})`}><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
10004
+ <g mask={`url(#h-${id})`}><ellipse
9925
10005
  cx="89.5"
9926
10006
  cy="684.5"
9927
10007
  rx="214.5"
@@ -9931,7 +10011,7 @@ function TanstackLogo() {
9931
10011
  stroke-width="25"
9932
10012
  /></g>
9933
10013
  <defs><filter
9934
- id="ag"
10014
+ id={`ag-${id}`}
9935
10015
  x="316.5"
9936
10016
  y="486"
9937
10017
  width="454"
@@ -9939,14 +10019,14 @@ function TanstackLogo() {
9939
10019
  filterUnits="userSpaceOnUse"
9940
10020
  ><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0" /></filter></defs>
9941
10021
  <mask
9942
- id="g"
10022
+ id={`g-${id}`}
9943
10023
  x="316.5"
9944
10024
  y="486"
9945
10025
  width="454"
9946
10026
  height="396.9"
9947
10027
  maskUnits="userSpaceOnUse"
9948
- ><g filter="url(#ag)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
9949
- <g mask="url(#g)"><ellipse
10028
+ ><g filter={`url(#ag-${id})`}><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
10029
+ <g mask={`url(#g-${id})`}><ellipse
9950
10030
  cx="543.5"
9951
10031
  cy="684.5"
9952
10032
  rx="214.5"
@@ -9956,7 +10036,7 @@ function TanstackLogo() {
9956
10036
  stroke-width="25"
9957
10037
  /></g>
9958
10038
  <defs><filter
9959
- id="af"
10039
+ id={`af-${id}`}
9960
10040
  x="272.2"
9961
10041
  y="308"
9962
10042
  width="176.9"
@@ -9964,14 +10044,14 @@ function TanstackLogo() {
9964
10044
  filterUnits="userSpaceOnUse"
9965
10045
  ><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0" /></filter></defs>
9966
10046
  <mask
9967
- id="f"
10047
+ id={`f-${id}`}
9968
10048
  x="272.2"
9969
10049
  y="308"
9970
10050
  width="176.9"
9971
10051
  height="129.3"
9972
10052
  maskUnits="userSpaceOnUse"
9973
- ><g filter="url(#af)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
9974
- <g mask="url(#f)">
10053
+ ><g filter={`url(#af-${id})`}><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
10054
+ <g mask={`url(#f-${id})`}>
9975
10055
  <line
9976
10056
  x1="436"
9977
10057
  x2="431"
@@ -10006,7 +10086,7 @@ function TanstackLogo() {
10006
10086
  stroke-width="11"
10007
10087
  />
10008
10088
  <linearGradient
10009
- id="m"
10089
+ id={`m-${id}`}
10010
10090
  x1="-670.75"
10011
10091
  x2="-671.59"
10012
10092
  y1="164.4"
@@ -10020,7 +10100,7 @@ function TanstackLogo() {
10020
10100
  <path
10021
10101
  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"
10022
10102
  clip-rule="evenodd"
10023
- fill="url(#m)"
10103
+ fill={`url(#m-${id})`}
10024
10104
  fill-rule="evenodd"
10025
10105
  />
10026
10106
  <line
@@ -10080,7 +10160,7 @@ function TanstackLogo() {
10080
10160
  />
10081
10161
  </g>
10082
10162
  <defs><filter
10083
- id="ak"
10163
+ id={`ak-${id}`}
10084
10164
  x="73.2"
10085
10165
  y="113.8"
10086
10166
  width="280.6"
@@ -10088,16 +10168,16 @@ function TanstackLogo() {
10088
10168
  filterUnits="userSpaceOnUse"
10089
10169
  ><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0" /></filter></defs>
10090
10170
  <mask
10091
- id="e"
10171
+ id={`e-${id}`}
10092
10172
  x="73.2"
10093
10173
  y="113.8"
10094
10174
  width="280.6"
10095
10175
  height="317.4"
10096
10176
  maskUnits="userSpaceOnUse"
10097
- ><g filter="url(#ak)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
10098
- <g mask="url(#e)">
10177
+ ><g filter={`url(#ak-${id})`}><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
10178
+ <g mask={`url(#e-${id})`}>
10099
10179
  <linearGradient
10100
- id="n"
10180
+ id={`n-${id}`}
10101
10181
  x1="-672.16"
10102
10182
  x2="-672.16"
10103
10183
  y1="165.03"
@@ -10111,12 +10191,12 @@ function TanstackLogo() {
10111
10191
  <path
10112
10192
  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"
10113
10193
  clip-rule="evenodd"
10114
- fill="url(#n)"
10194
+ fill={`url(#n-${id})`}
10115
10195
  fill-rule="evenodd"
10116
10196
  />
10117
10197
  <g stroke="#2F8A00">
10118
10198
  <linearGradient
10119
- id="r"
10199
+ id={`r-${id}`}
10120
10200
  x1="-660.23"
10121
10201
  x2="-660.23"
10122
10202
  y1="166.72"
@@ -10130,12 +10210,12 @@ function TanstackLogo() {
10130
10210
  <path
10131
10211
  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"
10132
10212
  clip-rule="evenodd"
10133
- fill="url(#r)"
10213
+ fill={`url(#r-${id})`}
10134
10214
  fill-rule="evenodd"
10135
10215
  stroke-width="13"
10136
10216
  />
10137
10217
  <linearGradient
10138
- id="s"
10218
+ id={`s-${id}`}
10139
10219
  x1="-661.36"
10140
10220
  x2="-661.36"
10141
10221
  y1="164.18"
@@ -10149,12 +10229,12 @@ function TanstackLogo() {
10149
10229
  <path
10150
10230
  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"
10151
10231
  clip-rule="evenodd"
10152
- fill="url(#s)"
10232
+ fill={`url(#s-${id})`}
10153
10233
  fill-rule="evenodd"
10154
10234
  stroke-width="13"
10155
10235
  />
10156
10236
  <linearGradient
10157
- id="q"
10237
+ id={`q-${id}`}
10158
10238
  x1="-656.79"
10159
10239
  x2="-656.79"
10160
10240
  y1="165.15"
@@ -10168,12 +10248,12 @@ function TanstackLogo() {
10168
10248
  <path
10169
10249
  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"
10170
10250
  clip-rule="evenodd"
10171
- fill="url(#q)"
10251
+ fill={`url(#q-${id})`}
10172
10252
  fill-rule="evenodd"
10173
10253
  stroke-width="13"
10174
10254
  />
10175
10255
  <linearGradient
10176
- id="p"
10256
+ id={`p-${id}`}
10177
10257
  x1="-663.07"
10178
10258
  x2="-663.07"
10179
10259
  y1="165.44"
@@ -10187,12 +10267,12 @@ function TanstackLogo() {
10187
10267
  <path
10188
10268
  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"
10189
10269
  clip-rule="evenodd"
10190
- fill="url(#p)"
10270
+ fill={`url(#p-${id})`}
10191
10271
  fill-rule="evenodd"
10192
10272
  stroke-width="13"
10193
10273
  />
10194
10274
  <linearGradient
10195
- id="o"
10275
+ id={`o-${id}`}
10196
10276
  x1="-662.57"
10197
10277
  x2="-662.57"
10198
10278
  y1="164.44"
@@ -10206,12 +10286,12 @@ function TanstackLogo() {
10206
10286
  <path
10207
10287
  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"
10208
10288
  clip-rule="evenodd"
10209
- fill="url(#o)"
10289
+ fill={`url(#o-${id})`}
10210
10290
  fill-rule="evenodd"
10211
10291
  stroke-width="13"
10212
10292
  />
10213
10293
  <linearGradient
10214
- id="l"
10294
+ id={`l-${id}`}
10215
10295
  x1="-656.43"
10216
10296
  x2="-656.43"
10217
10297
  y1="163.86"
@@ -10225,7 +10305,7 @@ function TanstackLogo() {
10225
10305
  <path
10226
10306
  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"
10227
10307
  clip-rule="evenodd"
10228
- fill="url(#l)"
10308
+ fill={`url(#l-${id})`}
10229
10309
  fill-rule="evenodd"
10230
10310
  stroke-width="13"
10231
10311
  />
@@ -10256,7 +10336,7 @@ function TanstackLogo() {
10256
10336
  </g>
10257
10337
  </g>
10258
10338
  <defs><filter
10259
- id="al"
10339
+ id={`al-${id}`}
10260
10340
  x="50.5"
10261
10341
  y="399"
10262
10342
  width="532"
@@ -10264,16 +10344,16 @@ function TanstackLogo() {
10264
10344
  filterUnits="userSpaceOnUse"
10265
10345
  ><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0" /></filter></defs>
10266
10346
  <mask
10267
- id="d"
10347
+ id={`d-${id}`}
10268
10348
  x="50.5"
10269
10349
  y="399"
10270
10350
  width="532"
10271
10351
  height="633"
10272
10352
  maskUnits="userSpaceOnUse"
10273
- ><g filter="url(#al)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
10274
- <g mask="url(#d)">
10353
+ ><g filter={`url(#al-${id})`}><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
10354
+ <g mask={`url(#d-${id})`}>
10275
10355
  <linearGradient
10276
- id="u"
10356
+ id={`u-${id}`}
10277
10357
  x1="-666.06"
10278
10358
  x2="-666.23"
10279
10359
  y1="163.36"
@@ -10284,10 +10364,16 @@ function TanstackLogo() {
10284
10364
  <stop stop-color="#FFF400" offset="0" />
10285
10365
  <stop stop-color="#3C8700" offset="1" />
10286
10366
  </linearGradient>
10287
- <ellipse cx="316.5" cy="715.5" rx="266" ry="316.5" fill="url(#u)" />
10367
+ <ellipse
10368
+ cx="316.5"
10369
+ cy="715.5"
10370
+ rx="266"
10371
+ ry="316.5"
10372
+ fill={`url(#u-${id})`}
10373
+ />
10288
10374
  </g>
10289
10375
  <defs><filter
10290
- id="ad"
10376
+ id={`ad-${id}`}
10291
10377
  x="391"
10292
10378
  y="-24"
10293
10379
  width="288"
@@ -10295,16 +10381,16 @@ function TanstackLogo() {
10295
10381
  filterUnits="userSpaceOnUse"
10296
10382
  ><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0" /></filter></defs>
10297
10383
  <mask
10298
- id="c"
10384
+ id={`c-${id}`}
10299
10385
  x="391"
10300
10386
  y="-24"
10301
10387
  width="288"
10302
10388
  height="283"
10303
10389
  maskUnits="userSpaceOnUse"
10304
- ><g filter="url(#ad)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
10305
- <g mask="url(#c)">
10390
+ ><g filter={`url(#ad-${id})`}><circle cx="316.5" cy="316.5" r="316.5" fill="#fff" /></g></mask>
10391
+ <g mask={`url(#c-${id})`}>
10306
10392
  <linearGradient
10307
- id="t"
10393
+ id={`t-${id}`}
10308
10394
  x1="-664.56"
10309
10395
  x2="-664.56"
10310
10396
  y1="163.79"
@@ -10315,9 +10401,9 @@ function TanstackLogo() {
10315
10401
  <stop stop-color="#FFDF00" offset="0" />
10316
10402
  <stop stop-color="#FF9D00" offset="1" />
10317
10403
  </linearGradient>
10318
- <circle cx="565.5" cy="89.5" r="113.5" fill="url(#t)" />
10404
+ <circle cx="565.5" cy="89.5" r="113.5" fill={`url(#t-${id})`} />
10319
10405
  <linearGradient
10320
- id="v"
10406
+ id={`v-${id}`}
10321
10407
  x1="-644.5"
10322
10408
  x2="-645.77"
10323
10409
  y1="342"
@@ -10334,13 +10420,13 @@ function TanstackLogo() {
10334
10420
  y1="89"
10335
10421
  y2="89"
10336
10422
  fill="none"
10337
- stroke="url(#v)"
10423
+ stroke={`url(#v-${id})`}
10338
10424
  stroke-linecap="round"
10339
10425
  stroke-linejoin="bevel"
10340
10426
  stroke-width="12"
10341
10427
  />
10342
10428
  <linearGradient
10343
- id="aa"
10429
+ id={`aa-${id}`}
10344
10430
  x1="-641.56"
10345
10431
  x2="-642.83"
10346
10432
  y1="196.02"
@@ -10357,13 +10443,13 @@ function TanstackLogo() {
10357
10443
  y1="55.5"
10358
10444
  y2="50"
10359
10445
  fill="none"
10360
- stroke="url(#aa)"
10446
+ stroke={`url(#aa-${id})`}
10361
10447
  stroke-linecap="round"
10362
10448
  stroke-linejoin="bevel"
10363
10449
  stroke-width="12"
10364
10450
  />
10365
10451
  <linearGradient
10366
- id="w"
10452
+ id={`w-${id}`}
10367
10453
  x1="-643.73"
10368
10454
  x2="-645"
10369
10455
  y1="185.83"
@@ -10380,13 +10466,13 @@ function TanstackLogo() {
10380
10466
  y1="122"
10381
10467
  y2="130"
10382
10468
  fill="none"
10383
- stroke="url(#w)"
10469
+ stroke={`url(#w-${id})`}
10384
10470
  stroke-linecap="round"
10385
10471
  stroke-linejoin="bevel"
10386
10472
  stroke-width="12"
10387
10473
  />
10388
10474
  <linearGradient
10389
- id="ac"
10475
+ id={`ac-${id}`}
10390
10476
  x1="-638.94"
10391
10477
  x2="-640.22"
10392
10478
  y1="177.09"
@@ -10403,13 +10489,13 @@ function TanstackLogo() {
10403
10489
  y1="153"
10404
10490
  y2="166"
10405
10491
  fill="none"
10406
- stroke="url(#ac)"
10492
+ stroke={`url(#ac-${id})`}
10407
10493
  stroke-linecap="round"
10408
10494
  stroke-linejoin="bevel"
10409
10495
  stroke-width="12"
10410
10496
  />
10411
10497
  <linearGradient
10412
- id="ab"
10498
+ id={`ab-${id}`}
10413
10499
  x1="-633.42"
10414
10500
  x2="-634.7"
10415
10501
  y1="172.41"
@@ -10426,13 +10512,13 @@ function TanstackLogo() {
10426
10512
  y1="180"
10427
10513
  y2="199"
10428
10514
  fill="none"
10429
- stroke="url(#ab)"
10515
+ stroke={`url(#ab-${id})`}
10430
10516
  stroke-linecap="round"
10431
10517
  stroke-linejoin="bevel"
10432
10518
  stroke-width="12"
10433
10519
  />
10434
10520
  <linearGradient
10435
- id="y"
10521
+ id={`y-${id}`}
10436
10522
  x1="-619.05"
10437
10523
  x2="-619.52"
10438
10524
  y1="170.82"
@@ -10449,13 +10535,13 @@ function TanstackLogo() {
10449
10535
  y1="203"
10450
10536
  y2="225.9"
10451
10537
  fill="none"
10452
- stroke="url(#y)"
10538
+ stroke={`url(#y-${id})`}
10453
10539
  stroke-linecap="round"
10454
10540
  stroke-linejoin="bevel"
10455
10541
  stroke-width="12"
10456
10542
  />
10457
10543
  <linearGradient
10458
- id="x"
10544
+ id={`x-${id}`}
10459
10545
  x1="-578.5"
10460
10546
  x2="-578.63"
10461
10547
  y1="170.31"
@@ -10472,13 +10558,13 @@ function TanstackLogo() {
10472
10558
  y1="219.5"
10473
10559
  y2="244"
10474
10560
  fill="none"
10475
- stroke="url(#x)"
10561
+ stroke={`url(#x-${id})`}
10476
10562
  stroke-linecap="round"
10477
10563
  stroke-linejoin="bevel"
10478
10564
  stroke-width="12"
10479
10565
  />
10480
10566
  <linearGradient
10481
- id="z"
10567
+ id={`z-${id}`}
10482
10568
  x1="666.5"
10483
10569
  x2="666.5"
10484
10570
  y1="170.31"
@@ -10495,7 +10581,7 @@ function TanstackLogo() {
10495
10581
  y1="228.5"
10496
10582
  y2="253"
10497
10583
  fill="none"
10498
- stroke="url(#z)"
10584
+ stroke={`url(#z-${id})`}
10499
10585
  stroke-linecap="round"
10500
10586
  stroke-linejoin="bevel"
10501
10587
  stroke-width="12"
@@ -10514,6 +10600,12 @@ var QueryDevtoolsContext = createContext({
10514
10600
  function useQueryDevtoolsContext() {
10515
10601
  return useContext(QueryDevtoolsContext);
10516
10602
  }
10603
+ var ThemeContext = createContext(
10604
+ () => "dark"
10605
+ );
10606
+ function useTheme() {
10607
+ return useContext(ThemeContext);
10608
+ }
10517
10609
 
10518
10610
  // src/Explorer.tsx
10519
10611
  function chunkArray(array, size2) {
@@ -10528,10 +10620,13 @@ function chunkArray(array, size2) {
10528
10620
  return result;
10529
10621
  }
10530
10622
  var Expander = (props) => {
10531
- const styles = getStyles();
10623
+ const theme = useTheme();
10624
+ const styles = createMemo(() => {
10625
+ return theme() === "dark" ? darkStyles : lightStyles;
10626
+ });
10532
10627
  return <span
10533
10628
  class={clsx(
10534
- styles.expander,
10629
+ styles().expander,
10535
10630
  u`
10536
10631
  transform: rotate(${props.expanded ? 90 : 0}deg);
10537
10632
  `,
@@ -10555,10 +10650,13 @@ var Expander = (props) => {
10555
10650
  /></svg></span>;
10556
10651
  };
10557
10652
  var CopyButton = (props) => {
10558
- const styles = getStyles();
10653
+ const theme = useTheme();
10654
+ const styles = createMemo(() => {
10655
+ return theme() === "dark" ? darkStyles : lightStyles;
10656
+ });
10559
10657
  const [copyState, setCopyState] = createSignal("NoCopy");
10560
10658
  return <button
10561
- class={styles.actionButton}
10659
+ class={styles().actionButton}
10562
10660
  title="Copy object to clipboard"
10563
10661
  aria-label={`${copyState() === "NoCopy" ? "Copy object to clipboard" : copyState() === "SuccessCopy" ? "Object copied to clipboard" : "Error copying object to clipboard"}`}
10564
10662
  onClick={copyState() === "NoCopy" ? () => {
@@ -10580,15 +10678,18 @@ var CopyButton = (props) => {
10580
10678
  } : void 0}
10581
10679
  ><Switch>
10582
10680
  <Match when={copyState() === "NoCopy"}><Copier /></Match>
10583
- <Match when={copyState() === "SuccessCopy"}><CopiedCopier /></Match>
10681
+ <Match when={copyState() === "SuccessCopy"}><CopiedCopier theme={theme()} /></Match>
10584
10682
  <Match when={copyState() === "ErrorCopy"}><ErrorCopier /></Match>
10585
10683
  </Switch></button>;
10586
10684
  };
10587
10685
  var ClearArrayButton = (props) => {
10588
- const styles = getStyles();
10686
+ const theme = useTheme();
10687
+ const styles = createMemo(() => {
10688
+ return theme() === "dark" ? darkStyles : lightStyles;
10689
+ });
10589
10690
  const queryClient = useQueryDevtoolsContext().client;
10590
10691
  return <button
10591
- class={styles.actionButton}
10692
+ class={styles().actionButton}
10592
10693
  title="Remove all items"
10593
10694
  aria-label="Remove all items"
10594
10695
  onClick={() => {
@@ -10599,10 +10700,13 @@ var ClearArrayButton = (props) => {
10599
10700
  ><List /></button>;
10600
10701
  };
10601
10702
  var DeleteItemButton = (props) => {
10602
- const styles = getStyles();
10703
+ const theme = useTheme();
10704
+ const styles = createMemo(() => {
10705
+ return theme() === "dark" ? darkStyles : lightStyles;
10706
+ });
10603
10707
  const queryClient = useQueryDevtoolsContext().client;
10604
10708
  return <button
10605
- class={clsx(styles.actionButton)}
10709
+ class={clsx(styles().actionButton)}
10606
10710
  title="Delete item"
10607
10711
  aria-label="Delete item"
10608
10712
  onClick={() => {
@@ -10612,11 +10716,41 @@ var DeleteItemButton = (props) => {
10612
10716
  }}
10613
10717
  ><Trash /></button>;
10614
10718
  };
10719
+ var ToggleValueButton = (props) => {
10720
+ const theme = useTheme();
10721
+ const styles = createMemo(() => {
10722
+ return theme() === "dark" ? darkStyles : lightStyles;
10723
+ });
10724
+ const queryClient = useQueryDevtoolsContext().client;
10725
+ return <button
10726
+ class={clsx(
10727
+ styles().actionButton,
10728
+ u`
10729
+ width: ${tokens.size[3.5]};
10730
+ height: ${tokens.size[3.5]};
10731
+ `
10732
+ )}
10733
+ title="Toggle value"
10734
+ aria-label="Toggle value"
10735
+ onClick={() => {
10736
+ const oldData = props.activeQuery.state.data;
10737
+ const newData = updateNestedDataByPath(
10738
+ oldData,
10739
+ props.dataPath,
10740
+ !props.value
10741
+ );
10742
+ queryClient.setQueryData(props.activeQuery.queryKey, newData);
10743
+ }}
10744
+ ><Check theme={theme()} checked={props.value} /></button>;
10745
+ };
10615
10746
  function isIterable(x) {
10616
10747
  return Symbol.iterator in x;
10617
10748
  }
10618
10749
  function Explorer(props) {
10619
- const styles = getStyles();
10750
+ const theme = useTheme();
10751
+ const styles = createMemo(() => {
10752
+ return theme() === "dark" ? darkStyles : lightStyles;
10753
+ });
10620
10754
  const queryClient = useQueryDevtoolsContext().client;
10621
10755
  const [expanded, setExpanded] = createSignal(
10622
10756
  (props.defaultExpanded || []).includes(props.label)
@@ -10660,25 +10794,25 @@ function Explorer(props) {
10660
10794
  });
10661
10795
  const subEntryPages = createMemo(() => chunkArray(subEntries(), 100));
10662
10796
  const currentDataPath = props.dataPath ?? [];
10663
- return <div class={styles.entry}>
10797
+ return <div class={styles().entry}>
10664
10798
  <Show when={subEntryPages().length}>
10665
- <div class={styles.expanderButtonContainer}>
10799
+ <div class={styles().expanderButtonContainer}>
10666
10800
  <button
10667
- class={styles.expanderButton}
10801
+ class={styles().expanderButton}
10668
10802
  onClick={() => toggleExpanded()}
10669
10803
  >
10670
10804
  <Expander expanded={expanded()} />
10671
10805
  {" "}
10672
10806
  <span>{props.label}</span>
10673
10807
  {" "}
10674
- <span class={styles.info}>
10808
+ <span class={styles().info}>
10675
10809
  {String(type()).toLowerCase() === "iterable" ? "(Iterable) " : ""}
10676
10810
  {subEntries().length}
10677
10811
  {" "}
10678
10812
  {subEntries().length > 1 ? `items` : `item`}
10679
10813
  </span>
10680
10814
  </button>
10681
- <Show when={props.editable}><div class={styles.actions}>
10815
+ <Show when={props.editable}><div class={styles().actions}>
10682
10816
  <CopyButton value={props.value} />
10683
10817
  <Show
10684
10818
  when={props.itemsDeletable && props.activeQuery !== void 0}
@@ -10695,7 +10829,7 @@ function Explorer(props) {
10695
10829
  </div></Show>
10696
10830
  </div>
10697
10831
  <Show when={expanded()}>
10698
- <Show when={subEntryPages().length === 1}><div class={styles.subEntry}><Key each={subEntries()} by={(item) => item.label}>{(entry) => {
10832
+ <Show when={subEntryPages().length === 1}><div class={styles().subEntry}><Key each={subEntries()} by={(item) => item.label}>{(entry) => {
10699
10833
  return <Explorer
10700
10834
  defaultExpanded={props.defaultExpanded}
10701
10835
  label={entry().label}
@@ -10706,12 +10840,12 @@ function Explorer(props) {
10706
10840
  itemsDeletable={type() === "array" || type() === "Iterable" || type() === "object"}
10707
10841
  />;
10708
10842
  }}</Key></div></Show>
10709
- <Show when={subEntryPages().length > 1}><div class={styles.subEntry}><Index each={subEntryPages()}>{(entries3, index) => <div><div class={styles.entry}>
10843
+ <Show when={subEntryPages().length > 1}><div class={styles().subEntry}><Index each={subEntryPages()}>{(entries2, index) => <div><div class={styles().entry}>
10710
10844
  <button
10711
10845
  onClick={() => setExpandedPages(
10712
10846
  (old) => old.includes(index) ? old.filter((d) => d !== index) : [...old, index]
10713
10847
  )}
10714
- class={styles.expanderButton}
10848
+ class={styles().expanderButton}
10715
10849
  >
10716
10850
  <Expander expanded={expandedPages().includes(index)} />
10717
10851
  {" "}
@@ -10721,7 +10855,7 @@ function Explorer(props) {
10721
10855
  {index * 100 + 100 - 1}
10722
10856
  {"]"}
10723
10857
  </button>
10724
- <Show when={expandedPages().includes(index)}><div class={styles.subEntry}><Key each={entries3()} by={(entry) => entry.label}>{(entry) => <Explorer
10858
+ <Show when={expandedPages().includes(index)}><div class={styles().subEntry}><Key each={entries2()} by={(entry) => entry.label}>{(entry) => <Explorer
10725
10859
  defaultExpanded={props.defaultExpanded}
10726
10860
  label={entry().label}
10727
10861
  value={entry().value}
@@ -10732,28 +10866,46 @@ function Explorer(props) {
10732
10866
  </div></div>}</Index></div></Show>
10733
10867
  </Show>
10734
10868
  </Show>
10735
- <Show when={subEntryPages().length === 0}><div class={styles.row}>
10736
- <span class={styles.label}>
10869
+ <Show when={subEntryPages().length === 0}><div class={styles().row}>
10870
+ <span class={styles().label}>
10737
10871
  {props.label}
10738
10872
  {":"}
10739
10873
  </span>
10740
10874
  <Show
10741
- when={props.editable && props.activeQuery !== void 0 && (type() === "string" || type() === "number")}
10742
- fallback={<span class={styles.value}>{displayValue(props.value)}</span>}
10743
- ><input
10744
- type={type() === "number" ? "number" : "text"}
10745
- class={clsx(styles.value, styles.editableInput)}
10746
- value={props.value}
10747
- onChange={(changeEvent) => {
10748
- const oldData = props.activeQuery.state.data;
10749
- const newData = updateNestedDataByPath(
10750
- oldData,
10751
- currentDataPath,
10752
- type() === "number" ? changeEvent.target.valueAsNumber : changeEvent.target.value
10753
- );
10754
- queryClient.setQueryData(props.activeQuery.queryKey, newData);
10755
- }}
10756
- /></Show>
10875
+ when={props.editable && props.activeQuery !== void 0 && (type() === "string" || type() === "number" || type() === "boolean")}
10876
+ fallback={<span class={styles().value}>{displayValue(props.value)}</span>}
10877
+ >
10878
+ <Show
10879
+ when={props.editable && props.activeQuery !== void 0 && (type() === "string" || type() === "number")}
10880
+ ><input
10881
+ type={type() === "number" ? "number" : "text"}
10882
+ class={clsx(styles().value, styles().editableInput)}
10883
+ value={props.value}
10884
+ onChange={(changeEvent) => {
10885
+ const oldData = props.activeQuery.state.data;
10886
+ const newData = updateNestedDataByPath(
10887
+ oldData,
10888
+ currentDataPath,
10889
+ type() === "number" ? changeEvent.target.valueAsNumber : changeEvent.target.value
10890
+ );
10891
+ queryClient.setQueryData(props.activeQuery.queryKey, newData);
10892
+ }}
10893
+ /></Show>
10894
+ <Show when={type() === "boolean"}><span
10895
+ class={clsx(
10896
+ styles().value,
10897
+ styles().actions,
10898
+ styles().editableInput
10899
+ )}
10900
+ >
10901
+ <ToggleValueButton
10902
+ activeQuery={props.activeQuery}
10903
+ dataPath={currentDataPath}
10904
+ value={props.value}
10905
+ />
10906
+ {displayValue(props.value)}
10907
+ </span></Show>
10908
+ </Show>
10757
10909
  <Show
10758
10910
  when={props.editable && props.itemsDeletable && props.activeQuery !== void 0}
10759
10911
  ><DeleteItemButton
@@ -10763,8 +10915,9 @@ function Explorer(props) {
10763
10915
  </div></Show>
10764
10916
  </div>;
10765
10917
  }
10766
- var getStyles = () => {
10918
+ var stylesFactory = (theme) => {
10767
10919
  const { colors, font, size: size2, border } = tokens;
10920
+ const t2 = (light, dark) => theme === "light" ? light : dark;
10768
10921
  return {
10769
10922
  entry: u`
10770
10923
  & * {
@@ -10778,7 +10931,7 @@ var getStyles = () => {
10778
10931
  subEntry: u`
10779
10932
  margin: 0 0 0 0.5em;
10780
10933
  padding-left: 0.75em;
10781
- border-left: 2px solid ${colors.darkGray[400]};
10934
+ border-left: 2px solid ${t2(colors.gray[300], colors.darkGray[400])};
10782
10935
  /* outline: 1px solid ${colors.teal[400]}; */
10783
10936
  `,
10784
10937
  expander: u`
@@ -10827,21 +10980,22 @@ var getStyles = () => {
10827
10980
  }
10828
10981
  `,
10829
10982
  info: u`
10830
- color: ${colors.gray[500]};
10983
+ color: ${t2(colors.gray[500], colors.gray[500])};
10831
10984
  font-size: ${font.size.xs};
10832
10985
  margin-left: ${size2[1]};
10833
10986
  /* outline: 1px solid ${colors.yellow[400]}; */
10834
10987
  `,
10835
10988
  label: u`
10836
- color: ${colors.gray[300]};
10989
+ color: ${t2(colors.gray[700], colors.gray[300])};
10837
10990
  `,
10838
10991
  value: u`
10839
- color: ${colors.purple[400]};
10992
+ color: ${t2(colors.purple[600], colors.purple[400])};
10840
10993
  flex-grow: 1;
10841
10994
  `,
10842
10995
  actions: u`
10843
10996
  display: inline-flex;
10844
10997
  gap: ${size2[2]};
10998
+ align-items: center;
10845
10999
  `,
10846
11000
  row: u`
10847
11001
  display: inline-flex;
@@ -10849,19 +11003,22 @@ var getStyles = () => {
10849
11003
  width: 100%;
10850
11004
  margin-bottom: ${size2[0.5]};
10851
11005
  line-height: 1.125rem;
11006
+ align-items: center;
10852
11007
  `,
10853
11008
  editableInput: u`
10854
11009
  border: none;
10855
- padding: 0px ${size2[1]};
11010
+ padding: ${size2[0.5]} ${size2[1]} ${size2[0.5]} ${size2[1.5]};
10856
11011
  flex-grow: 1;
10857
- background-color: ${colors.gray[900]};
11012
+ border-radius: ${border.radius.xs};
11013
+ background-color: ${t2(colors.gray[200], colors.darkGray[500])};
10858
11014
 
10859
11015
  &:hover {
10860
- background-color: ${colors.gray[800]};
11016
+ background-color: ${t2(colors.gray[300], colors.darkGray[600])};
10861
11017
  }
10862
11018
  `,
10863
11019
  actionButton: u`
10864
11020
  background-color: transparent;
11021
+ color: ${t2(colors.gray[500], colors.gray[500])};
10865
11022
  border: none;
10866
11023
  display: inline-flex;
10867
11024
  padding: 0px;
@@ -10874,14 +11031,7 @@ var getStyles = () => {
10874
11031
  z-index: 1;
10875
11032
 
10876
11033
  &:hover svg {
10877
- .copier,
10878
- .list {
10879
- stroke: ${colors.gray[500]} !important;
10880
- }
10881
-
10882
- .list-item {
10883
- stroke: ${colors.gray[700]};
10884
- }
11034
+ color: ${t2(colors.gray[600], colors.gray[400])};
10885
11035
  }
10886
11036
 
10887
11037
  &:focus-visible {
@@ -10892,6 +11042,8 @@ var getStyles = () => {
10892
11042
  `
10893
11043
  };
10894
11044
  };
11045
+ var lightStyles = stylesFactory("light");
11046
+ var darkStyles = stylesFactory("dark");
10895
11047
 
10896
11048
  // src/fonts.ts
10897
11049
  var loadFonts = () => {
@@ -10907,6 +11059,7 @@ var secondBreakpoint = 796;
10907
11059
  var thirdBreakpoint = 700;
10908
11060
  var BUTTON_POSITION = "bottom-right";
10909
11061
  var POSITION = "bottom";
11062
+ var THEME_PREFERENCE = "system";
10910
11063
  var INITIAL_IS_OPEN = false;
10911
11064
  var DEFAULT_HEIGHT = 500;
10912
11065
  var DEFAULT_WIDTH = 500;
@@ -10917,28 +11070,38 @@ var [selectedQueryHash, setSelectedQueryHash] = createSignal(
10917
11070
  );
10918
11071
  var [panelWidth, setPanelWidth] = createSignal(0);
10919
11072
  var DevtoolsComponent = (props) => {
10920
- return <QueryDevtoolsContext.Provider value={props}><Devtools /></QueryDevtoolsContext.Provider>;
11073
+ const [localStore, setLocalStore] = createLocalStorage({
11074
+ prefix: "TanstackQueryDevtools"
11075
+ });
11076
+ const colorScheme = getPreferredColorScheme();
11077
+ const theme = createMemo(() => {
11078
+ const preference = localStore.theme_preference || THEME_PREFERENCE;
11079
+ if (preference !== "system")
11080
+ return preference;
11081
+ return colorScheme();
11082
+ });
11083
+ return <QueryDevtoolsContext.Provider value={props}><ThemeContext.Provider value={theme}><Devtools localStore={localStore} setLocalStore={setLocalStore} /></ThemeContext.Provider></QueryDevtoolsContext.Provider>;
10921
11084
  };
10922
11085
  var Devtools_default = DevtoolsComponent;
10923
- var Devtools = () => {
11086
+ var Devtools = (props) => {
10924
11087
  loadFonts();
10925
- const styles = getStyles2();
10926
- const [localStore, setLocalStore] = createLocalStorage({
10927
- prefix: "TanstackQueryDevtools"
11088
+ const theme = useTheme();
11089
+ const styles = createMemo(() => {
11090
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
10928
11091
  });
10929
11092
  const buttonPosition = createMemo(() => {
10930
11093
  return useQueryDevtoolsContext().buttonPosition || BUTTON_POSITION;
10931
11094
  });
10932
11095
  const isOpen = createMemo(() => {
10933
- return localStore.open === "true" ? true : localStore.open === "false" ? false : useQueryDevtoolsContext().initialIsOpen || INITIAL_IS_OPEN;
11096
+ return props.localStore.open === "true" ? true : props.localStore.open === "false" ? false : useQueryDevtoolsContext().initialIsOpen || INITIAL_IS_OPEN;
10934
11097
  });
10935
11098
  const position = createMemo(() => {
10936
- return localStore.position || useQueryDevtoolsContext().position || POSITION;
11099
+ return props.localStore.position || useQueryDevtoolsContext().position || POSITION;
10937
11100
  });
10938
11101
  createEffect(() => {
10939
11102
  const root = document.querySelector(".tsqd-parent-container");
10940
- const height = localStore.height || DEFAULT_HEIGHT;
10941
- const width = localStore.width || DEFAULT_WIDTH;
11103
+ const height = props.localStore.height || DEFAULT_HEIGHT;
11104
+ const width = props.localStore.width || DEFAULT_WIDTH;
10942
11105
  const panelPosition = position();
10943
11106
  root.style.setProperty(
10944
11107
  "--tsqd-panel-height",
@@ -10976,25 +11139,28 @@ var Devtools = () => {
10976
11139
  )}
10977
11140
  >
10978
11141
  <TransitionGroup name="tsqd-panel-transition"><Show when={isOpen()}><DevtoolsPanel
10979
- localStore={localStore}
10980
- setLocalStore={setLocalStore}
11142
+ localStore={props.localStore}
11143
+ setLocalStore={props.setLocalStore}
10981
11144
  /></Show></TransitionGroup>
10982
11145
  <TransitionGroup name="tsqd-button-transition"><Show when={!isOpen()}><div
10983
11146
  class={clsx(
10984
- styles.devtoolsBtn,
10985
- styles[`devtoolsBtn-position-${buttonPosition()}`]
11147
+ styles().devtoolsBtn,
11148
+ styles()[`devtoolsBtn-position-${buttonPosition()}`]
10986
11149
  )}
10987
11150
  >
10988
11151
  <div aria-hidden="true"><TanstackLogo /></div>
10989
11152
  <button
10990
11153
  aria-label="Open Tanstack query devtools"
10991
- onClick={() => setLocalStore("open", "true")}
11154
+ onClick={() => props.setLocalStore("open", "true")}
10992
11155
  ><TanstackLogo /></button>
10993
11156
  </div></Show></TransitionGroup>
10994
11157
  </div>;
10995
11158
  };
10996
11159
  var DevtoolsPanel = (props) => {
10997
- const styles = getStyles2();
11160
+ const theme = useTheme();
11161
+ const styles = createMemo(() => {
11162
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
11163
+ });
10998
11164
  const [isResizing, setIsResizing] = createSignal(false);
10999
11165
  const sort = createMemo(() => props.localStore.sort || DEFAULT_SORT_FN_NAME);
11000
11166
  const sortOrder = createMemo(
@@ -11111,14 +11277,25 @@ var DevtoolsPanel = (props) => {
11111
11277
  });
11112
11278
  });
11113
11279
  });
11280
+ const getPanelDynamicStyles = () => {
11281
+ const { colors } = tokens;
11282
+ const t2 = (light, dark) => theme() === "dark" ? dark : light;
11283
+ if (panelWidth() < secondBreakpoint) {
11284
+ return u`
11285
+ flex-direction: column;
11286
+ background-color: ${t2(colors.gray[300], colors.gray[600])};
11287
+ `;
11288
+ }
11289
+ return u`
11290
+ flex-direction: row;
11291
+ background-color: ${t2(colors.gray[200], colors.darkGray[900])};
11292
+ `;
11293
+ };
11114
11294
  return <aside
11115
11295
  class={clsx(
11116
- styles.panel,
11117
- styles[`panel-position-${position()}`],
11118
- u`
11119
- flex-direction: ${panelWidth() < secondBreakpoint ? "column" : "row"};
11120
- background-color: ${panelWidth() < secondBreakpoint ? tokens.colors.gray[600] : tokens.colors.darkGray[900]};
11121
- `,
11296
+ styles().panel,
11297
+ styles()[`panel-position-${position()}`],
11298
+ getPanelDynamicStyles(),
11122
11299
  {
11123
11300
  [u`
11124
11301
  min-width: min-content;
@@ -11135,8 +11312,8 @@ var DevtoolsPanel = (props) => {
11135
11312
  >
11136
11313
  <div
11137
11314
  class={clsx(
11138
- styles.dragHandle,
11139
- styles[`dragHandle-position-${position()}`],
11315
+ styles().dragHandle,
11316
+ styles()[`dragHandle-position-${position()}`],
11140
11317
  "tsqd-drag-handle"
11141
11318
  )}
11142
11319
  onMouseDown={handleDragStart}
@@ -11144,8 +11321,8 @@ var DevtoolsPanel = (props) => {
11144
11321
  <button
11145
11322
  aria-label="Close tanstack query devtools"
11146
11323
  class={clsx(
11147
- styles.closeBtn,
11148
- styles[`closeBtn-position-${position()}`],
11324
+ styles().closeBtn,
11325
+ styles()[`closeBtn-position-${position()}`],
11149
11326
  "tsqd-minimize-btn"
11150
11327
  )}
11151
11328
  onClick={() => props.setLocalStore("open", "false")}
@@ -11153,7 +11330,7 @@ var DevtoolsPanel = (props) => {
11153
11330
  <div
11154
11331
  ref={queriesContainerRef}
11155
11332
  class={clsx(
11156
- styles.queriesContainer,
11333
+ styles().queriesContainer,
11157
11334
  panelWidth() < secondBreakpoint && selectedQueryHash() && u`
11158
11335
  height: 50%;
11159
11336
  max-height: 50%;
@@ -11161,15 +11338,18 @@ var DevtoolsPanel = (props) => {
11161
11338
  "tsqd-queries-container"
11162
11339
  )}
11163
11340
  >
11164
- <div class={clsx(styles.row, "tsqd-header")}>
11341
+ <div class={clsx(styles().row, "tsqd-header")}>
11165
11342
  <button
11166
- class={clsx(styles.logo, "tsqd-text-logo-container")}
11343
+ class={clsx(styles().logo, "tsqd-text-logo-container")}
11167
11344
  onClick={() => props.setLocalStore("open", "false")}
11168
11345
  aria-label="Close Tanstack query devtools"
11169
11346
  >
11170
- <span class={clsx(styles.tanstackLogo, "tsqd-text-logo-tanstack")}>TANSTACK</span>
11347
+ <span class={clsx(styles().tanstackLogo, "tsqd-text-logo-tanstack")}>TANSTACK</span>
11171
11348
  <span
11172
- class={clsx(styles.queryFlavorLogo, "tsqd-text-logo-query-flavor")}
11349
+ class={clsx(
11350
+ styles().queryFlavorLogo,
11351
+ "tsqd-text-logo-query-flavor"
11352
+ )}
11173
11353
  >
11174
11354
  {useQueryDevtoolsContext().queryFlavor}
11175
11355
  {" v"}
@@ -11180,17 +11360,17 @@ var DevtoolsPanel = (props) => {
11180
11360
  </div>
11181
11361
  <div
11182
11362
  class={clsx(
11183
- styles.row,
11363
+ styles().row,
11184
11364
  u`
11185
11365
  gap: ${tokens.size[2.5]};
11186
11366
  `,
11187
11367
  "tsqd-filters-actions-container"
11188
11368
  )}
11189
11369
  >
11190
- <div class={clsx(styles.filtersContainer, "tsqd-filters-container")}>
11370
+ <div class={clsx(styles().filtersContainer, "tsqd-filters-container")}>
11191
11371
  <div
11192
11372
  class={clsx(
11193
- styles.filterInput,
11373
+ styles().filterInput,
11194
11374
  "tsqd-query-filter-textfield-container"
11195
11375
  )}
11196
11376
  >
@@ -11206,7 +11386,7 @@ var DevtoolsPanel = (props) => {
11206
11386
  </div>
11207
11387
  <div
11208
11388
  class={clsx(
11209
- styles.filterSelect,
11389
+ styles().filterSelect,
11210
11390
  "tsqd-query-filter-sort-container"
11211
11391
  )}
11212
11392
  >
@@ -11237,13 +11417,13 @@ var DevtoolsPanel = (props) => {
11237
11417
  </Show>
11238
11418
  </button>
11239
11419
  </div>
11240
- <div class={clsx(styles.actionsContainer, "tsqd-actions-container")}>
11420
+ <div class={clsx(styles().actionsContainer, "tsqd-actions-container")}>
11241
11421
  <button
11242
11422
  onClick={() => {
11243
11423
  cache().clear();
11244
11424
  }}
11245
11425
  class={clsx(
11246
- styles.actionsBtn,
11426
+ styles().actionsBtn,
11247
11427
  "tsqd-actions-btn",
11248
11428
  "tsqd-action-clear-cache"
11249
11429
  )}
@@ -11261,7 +11441,8 @@ var DevtoolsPanel = (props) => {
11261
11441
  }
11262
11442
  }}
11263
11443
  class={clsx(
11264
- styles.actionsBtn,
11444
+ styles().actionsBtn,
11445
+ offline() && styles().actionsBtnOffline,
11265
11446
  "tsqd-actions-btn",
11266
11447
  "tsqd-action-mock-offline-behavior"
11267
11448
  )}
@@ -11272,24 +11453,24 @@ var DevtoolsPanel = (props) => {
11272
11453
  <index$d.Root gutter={4}>
11273
11454
  <index$d.Trigger
11274
11455
  class={clsx(
11275
- styles.actionsBtn,
11456
+ styles().actionsBtn,
11276
11457
  "tsqd-actions-btn",
11277
11458
  "tsqd-action-settings"
11278
11459
  )}
11279
11460
  ><Settings /></index$d.Trigger>
11280
11461
  <index$d.Portal><index$d.Content
11281
- class={clsx(styles.settingsMenu, "tsqd-settings-menu")}
11462
+ class={clsx(styles().settingsMenu, "tsqd-settings-menu")}
11282
11463
  >
11283
11464
  <div
11284
11465
  class={clsx(
11285
- styles.settingsMenuHeader,
11466
+ styles().settingsMenuHeader,
11286
11467
  "tsqd-settings-menu-header"
11287
11468
  )}
11288
11469
  >Settings</div>
11289
11470
  <index$d.Sub overlap gutter={8} shift={-4}>
11290
11471
  <index$d.SubTrigger
11291
11472
  class={clsx(
11292
- styles.settingsSubTrigger,
11473
+ styles().settingsSubTrigger,
11293
11474
  "tsqd-settings-menu-sub-trigger",
11294
11475
  "tsqd-settings-menu-sub-trigger-position"
11295
11476
  )}
@@ -11298,7 +11479,10 @@ var DevtoolsPanel = (props) => {
11298
11479
  <ChevronDown />
11299
11480
  </index$d.SubTrigger>
11300
11481
  <index$d.Portal><index$d.SubContent
11301
- class={clsx(styles.settingsMenu, "tsqd-settings-submenu")}
11482
+ class={clsx(
11483
+ styles().settingsMenu,
11484
+ "tsqd-settings-submenu"
11485
+ )}
11302
11486
  >
11303
11487
  <index$d.Item
11304
11488
  onSelect={() => {
@@ -11306,7 +11490,7 @@ var DevtoolsPanel = (props) => {
11306
11490
  }}
11307
11491
  as="button"
11308
11492
  class={clsx(
11309
- styles.settingsSubButton,
11493
+ styles().settingsSubButton,
11310
11494
  "tsqd-settings-menu-position-btn",
11311
11495
  "tsqd-settings-menu-position-btn-top"
11312
11496
  )}
@@ -11320,7 +11504,7 @@ var DevtoolsPanel = (props) => {
11320
11504
  }}
11321
11505
  as="button"
11322
11506
  class={clsx(
11323
- styles.settingsSubButton,
11507
+ styles().settingsSubButton,
11324
11508
  "tsqd-settings-menu-position-btn",
11325
11509
  "tsqd-settings-menu-position-btn-bottom"
11326
11510
  )}
@@ -11334,7 +11518,7 @@ var DevtoolsPanel = (props) => {
11334
11518
  }}
11335
11519
  as="button"
11336
11520
  class={clsx(
11337
- styles.settingsSubButton,
11521
+ styles().settingsSubButton,
11338
11522
  "tsqd-settings-menu-position-btn",
11339
11523
  "tsqd-settings-menu-position-btn-left"
11340
11524
  )}
@@ -11348,7 +11532,7 @@ var DevtoolsPanel = (props) => {
11348
11532
  }}
11349
11533
  as="button"
11350
11534
  class={clsx(
11351
- styles.settingsSubButton,
11535
+ styles().settingsSubButton,
11352
11536
  "tsqd-settings-menu-position-btn",
11353
11537
  "tsqd-settings-menu-position-btn-right"
11354
11538
  )}
@@ -11358,13 +11542,77 @@ var DevtoolsPanel = (props) => {
11358
11542
  </index$d.Item>
11359
11543
  </index$d.SubContent></index$d.Portal>
11360
11544
  </index$d.Sub>
11545
+ <index$d.Sub overlap gutter={8} shift={-4}>
11546
+ <index$d.SubTrigger
11547
+ class={clsx(
11548
+ styles().settingsSubTrigger,
11549
+ "tsqd-settings-menu-sub-trigger",
11550
+ "tsqd-settings-menu-sub-trigger-position"
11551
+ )}
11552
+ >
11553
+ <span>Theme</span>
11554
+ <ChevronDown />
11555
+ </index$d.SubTrigger>
11556
+ <index$d.Portal><index$d.SubContent
11557
+ class={clsx(
11558
+ styles().settingsMenu,
11559
+ "tsqd-settings-submenu"
11560
+ )}
11561
+ >
11562
+ <index$d.Item
11563
+ onSelect={() => {
11564
+ props.setLocalStore("theme_preference", "light");
11565
+ }}
11566
+ as="button"
11567
+ class={clsx(
11568
+ styles().settingsSubButton,
11569
+ props.localStore.theme_preference === "light" && styles().themeSelectedButton,
11570
+ "tsqd-settings-menu-position-btn",
11571
+ "tsqd-settings-menu-position-btn-top"
11572
+ )}
11573
+ >
11574
+ <span>Light</span>
11575
+ <Sun />
11576
+ </index$d.Item>
11577
+ <index$d.Item
11578
+ onSelect={() => {
11579
+ props.setLocalStore("theme_preference", "dark");
11580
+ }}
11581
+ as="button"
11582
+ class={clsx(
11583
+ styles().settingsSubButton,
11584
+ props.localStore.theme_preference === "dark" && styles().themeSelectedButton,
11585
+ "tsqd-settings-menu-position-btn",
11586
+ "tsqd-settings-menu-position-btn-bottom"
11587
+ )}
11588
+ >
11589
+ <span>Dark</span>
11590
+ <Moon />
11591
+ </index$d.Item>
11592
+ <index$d.Item
11593
+ onSelect={() => {
11594
+ props.setLocalStore("theme_preference", "system");
11595
+ }}
11596
+ as="button"
11597
+ class={clsx(
11598
+ styles().settingsSubButton,
11599
+ props.localStore.theme_preference === "system" && styles().themeSelectedButton,
11600
+ "tsqd-settings-menu-position-btn",
11601
+ "tsqd-settings-menu-position-btn-left"
11602
+ )}
11603
+ >
11604
+ <span>System</span>
11605
+ <Monitor />
11606
+ </index$d.Item>
11607
+ </index$d.SubContent></index$d.Portal>
11608
+ </index$d.Sub>
11361
11609
  </index$d.Content></index$d.Portal>
11362
11610
  </index$d.Root>
11363
11611
  </div>
11364
11612
  </div>
11365
11613
  <div
11366
11614
  class={clsx(
11367
- styles.overflowQueryContainer,
11615
+ styles().overflowQueryContainer,
11368
11616
  "tsqd-queries-overflow-container"
11369
11617
  )}
11370
11618
  ><div class="tsqd-queries-container"><Key by={(q) => q.queryHash} each={queries()}>{(query) => <QueryRow query={query()} />}</Key></div></div>
@@ -11373,7 +11621,12 @@ var DevtoolsPanel = (props) => {
11373
11621
  </aside>;
11374
11622
  };
11375
11623
  var QueryRow = (props) => {
11376
- const styles = getStyles2();
11624
+ const theme = useTheme();
11625
+ const styles = createMemo(() => {
11626
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
11627
+ });
11628
+ const { colors, alpha } = tokens;
11629
+ const t2 = (light, dark) => theme() === "dark" ? dark : light;
11377
11630
  const queryState = createSubscribeToQueryCacheBatcher(
11378
11631
  (queryCache) => queryCache().find({
11379
11632
  queryKey: props.query.queryKey
@@ -11401,28 +11654,34 @@ var QueryRow = (props) => {
11401
11654
  isStale: isStale()
11402
11655
  })
11403
11656
  );
11657
+ const getObserverCountColorStyles = () => {
11658
+ if (color() === "gray") {
11659
+ return u`
11660
+ background-color: ${t2(colors[color()][200], colors[color()][700])};
11661
+ color: ${t2(colors[color()][700], colors[color()][300])};
11662
+ `;
11663
+ }
11664
+ return u`
11665
+ background-color: ${t2(
11666
+ colors[color()][200] + alpha[80],
11667
+ colors[color()][900]
11668
+ )};
11669
+ color: ${t2(colors[color()][800], colors[color()][300])};
11670
+ `;
11671
+ };
11404
11672
  return <Show when={queryState()}><button
11405
11673
  onClick={() => setSelectedQueryHash(
11406
11674
  props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash
11407
11675
  )}
11408
11676
  class={clsx(
11409
- styles.queryRow,
11410
- selectedQueryHash() === props.query.queryHash && styles.selectedQueryRow,
11677
+ styles().queryRow,
11678
+ selectedQueryHash() === props.query.queryHash && styles().selectedQueryRow,
11411
11679
  "tsqd-query-row"
11412
11680
  )}
11413
11681
  aria-label={`Query key ${props.query.queryHash}`}
11414
11682
  >
11415
11683
  <div
11416
- class={clsx(
11417
- color() === "gray" ? u`
11418
- background-color: ${tokens.colors[color()][700]};
11419
- color: ${tokens.colors[color()][300]};
11420
- ` : u`
11421
- background-color: ${tokens.colors[color()][900]};
11422
- color: ${tokens.colors[color()][300]};
11423
- `,
11424
- "tsqd-query-observer-count"
11425
- )}
11684
+ class={clsx(getObserverCountColorStyles(), "tsqd-query-observer-count")}
11426
11685
  >{observers()}</div>
11427
11686
  <code class="tsqd-query-hash">{props.query.queryHash}</code>
11428
11687
  <Show when={isDisabled()}><div class="tsqd-query-disabled-indicator">disabled</div></Show>
@@ -11444,8 +11703,13 @@ var QueryStatusCount = () => {
11444
11703
  const inactive = createSubscribeToQueryCacheBatcher(
11445
11704
  (queryCache) => queryCache().getAll().filter((q) => getQueryStatusLabel(q) === "inactive").length
11446
11705
  );
11447
- const styles = getStyles2();
11448
- return <div class={clsx(styles.queryStatusContainer, "tsqd-query-status-container")}>
11706
+ const theme = useTheme();
11707
+ const styles = createMemo(() => {
11708
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
11709
+ });
11710
+ return <div
11711
+ class={clsx(styles().queryStatusContainer, "tsqd-query-status-container")}
11712
+ >
11449
11713
  <QueryStatus label="Fresh" color="green" count={fresh()} />
11450
11714
  <QueryStatus label="Fetching" color="blue" count={fetching()} />
11451
11715
  <QueryStatus label="Paused" color="purple" count={paused()} />
@@ -11454,7 +11718,12 @@ var QueryStatusCount = () => {
11454
11718
  </div>;
11455
11719
  };
11456
11720
  var QueryStatus = (props) => {
11457
- const styles = getStyles2();
11721
+ const theme = useTheme();
11722
+ const styles = createMemo(() => {
11723
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
11724
+ });
11725
+ const { colors, alpha } = tokens;
11726
+ const t2 = (light, dark) => theme() === "dark" ? dark : light;
11458
11727
  let tagRef;
11459
11728
  const [mouseOver, setMouseOver] = createSignal(false);
11460
11729
  const [focused, setFocused] = createSignal(false);
@@ -11480,11 +11749,11 @@ var QueryStatus = (props) => {
11480
11749
  disabled={showLabel()}
11481
11750
  ref={tagRef}
11482
11751
  class={clsx(
11483
- styles.queryStatusTag,
11752
+ styles().queryStatusTag,
11484
11753
  !showLabel() && u`
11485
11754
  cursor: pointer;
11486
11755
  &:hover {
11487
- background: ${tokens.colors.darkGray[400]}${tokens.alpha[80]};
11756
+ background: ${t2(colors.gray[200], colors.darkGray[400])}${alpha[80]};
11488
11757
  }
11489
11758
  `,
11490
11759
  "tsqd-query-status-tag",
@@ -11497,7 +11766,7 @@ var QueryStatus = (props) => {
11497
11766
  <Show when={!showLabel() && (mouseOver() || focused())}><div
11498
11767
  role="tooltip"
11499
11768
  id="tsqd-status-tooltip"
11500
- class={clsx(styles.statusTooltip, "tsqd-query-status-tooltip")}
11769
+ class={clsx(styles().statusTooltip, "tsqd-query-status-tooltip")}
11501
11770
  >{props.label}</div></Show>
11502
11771
  <span
11503
11772
  class={clsx(
@@ -11511,24 +11780,33 @@ var QueryStatus = (props) => {
11511
11780
  )}
11512
11781
  />
11513
11782
  <Show when={showLabel()}><span
11514
- class={clsx(styles.queryStatusTagLabel, "tsqd-query-status-tag-label")}
11783
+ class={clsx(
11784
+ styles().queryStatusTagLabel,
11785
+ "tsqd-query-status-tag-label"
11786
+ )}
11515
11787
  >{props.label}</span></Show>
11516
11788
  <span
11517
11789
  class={clsx(
11518
- styles.queryStatusCount,
11519
- props.count > 0 && props.color !== "gray" ? u`
11520
- background-color: ${tokens.colors[props.color][900]};
11521
- color: ${tokens.colors[props.color][300]};
11522
- ` : u`
11523
- color: ${tokens.colors["gray"][400]};
11524
- `,
11790
+ styles().queryStatusCount,
11791
+ props.count > 0 && props.color !== "gray" && u`
11792
+ background-color: ${t2(
11793
+ colors[props.color][100],
11794
+ colors[props.color][900]
11795
+ )};
11796
+ color: ${t2(colors[props.color][700], colors[props.color][300])};
11797
+ `,
11525
11798
  "tsqd-query-status-tag-count"
11526
11799
  )}
11527
11800
  >{props.count}</span>
11528
11801
  </button>;
11529
11802
  };
11530
11803
  var QueryDetails = () => {
11531
- const styles = getStyles2();
11804
+ const theme = useTheme();
11805
+ const styles = createMemo(() => {
11806
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
11807
+ });
11808
+ const { colors } = tokens;
11809
+ const t2 = (light, dark) => theme() === "dark" ? dark : light;
11532
11810
  const queryClient = useQueryDevtoolsContext().client;
11533
11811
  const [restoringLoading, setRestoringLoading] = createSignal(false);
11534
11812
  const errorTypes = createMemo(() => {
@@ -11599,26 +11877,34 @@ var QueryDetails = () => {
11599
11877
  setRestoringLoading(false);
11600
11878
  }
11601
11879
  });
11602
- return <Show when={activeQuery() && activeQueryState()}><div class={clsx(styles.detailsContainer, "tsqd-query-details-container")}>
11603
- <div class={clsx(styles.detailsHeader, "tsqd-query-details-header")}>Query Details</div>
11880
+ const getQueryStatusColors = () => {
11881
+ if (color() === "gray") {
11882
+ return u`
11883
+ background-color: ${t2(colors[color()][200], colors[color()][700])};
11884
+ color: ${t2(colors[color()][700], colors[color()][300])};
11885
+ border-color: ${t2(colors[color()][400], colors[color()][600])};
11886
+ `;
11887
+ }
11888
+ return u`
11889
+ background-color: ${t2(colors[color()][100], colors[color()][900])};
11890
+ color: ${t2(colors[color()][700], colors[color()][300])};
11891
+ border-color: ${t2(colors[color()][400], colors[color()][600])};
11892
+ `;
11893
+ };
11894
+ return <Show when={activeQuery() && activeQueryState()}><div
11895
+ class={clsx(styles().detailsContainer, "tsqd-query-details-container")}
11896
+ >
11897
+ <div class={clsx(styles().detailsHeader, "tsqd-query-details-header")}>Query Details</div>
11604
11898
  <div
11605
- class={clsx(styles.detailsBody, "tsqd-query-details-summary-container")}
11899
+ class={clsx(
11900
+ styles().detailsBody,
11901
+ "tsqd-query-details-summary-container"
11902
+ )}
11606
11903
  >
11607
11904
  <div class="tsqd-query-details-summary">
11608
11905
  <pre><code>{displayValue(activeQuery().queryKey, true)}</code></pre>
11609
11906
  <span
11610
- class={clsx(
11611
- styles.queryDetailsStatus,
11612
- color() === "gray" ? u`
11613
- background-color: ${tokens.colors[color()][700]};
11614
- color: ${tokens.colors[color()][300]};
11615
- border-color: ${tokens.colors[color()][600]};
11616
- ` : u`
11617
- background-color: ${tokens.colors[color()][900]};
11618
- color: ${tokens.colors[color()][300]};
11619
- border-color: ${tokens.colors[color()][600]};
11620
- `
11621
- )}
11907
+ class={clsx(styles().queryDetailsStatus, getQueryStatusColors())}
11622
11908
  >{statusLabel()}</span>
11623
11909
  </div>
11624
11910
  <div class="tsqd-query-details-observers-count">
@@ -11630,14 +11916,17 @@ var QueryDetails = () => {
11630
11916
  <span>{new Date(activeQueryState().dataUpdatedAt).toLocaleTimeString()}</span>
11631
11917
  </div>
11632
11918
  </div>
11633
- <div class={clsx(styles.detailsHeader, "tsqd-query-details-header")}>Actions</div>
11919
+ <div class={clsx(styles().detailsHeader, "tsqd-query-details-header")}>Actions</div>
11634
11920
  <div
11635
- class={clsx(styles.actionsBody, "tsqd-query-details-actions-container")}
11921
+ class={clsx(
11922
+ styles().actionsBody,
11923
+ "tsqd-query-details-actions-container"
11924
+ )}
11636
11925
  >
11637
11926
  <button
11638
11927
  class={clsx(
11639
11928
  u`
11640
- color: ${tokens.colors.blue[400]};
11929
+ color: ${t2(colors.blue[600], colors.blue[400])};
11641
11930
  `,
11642
11931
  "tsqd-query-details-actions-btn",
11643
11932
  "tsqd-query-details-action-refetch"
@@ -11647,7 +11936,7 @@ var QueryDetails = () => {
11647
11936
  >
11648
11937
  <span
11649
11938
  class={u`
11650
- background-color: ${tokens.colors.blue[400]};
11939
+ background-color: ${t2(colors.blue[600], colors.blue[400])};
11651
11940
  `}
11652
11941
  />
11653
11942
  {"Refetch"}
@@ -11655,7 +11944,7 @@ var QueryDetails = () => {
11655
11944
  <button
11656
11945
  class={clsx(
11657
11946
  u`
11658
- color: ${tokens.colors.yellow[400]};
11947
+ color: ${t2(colors.yellow[600], colors.yellow[400])};
11659
11948
  `,
11660
11949
  "tsqd-query-details-actions-btn",
11661
11950
  "tsqd-query-details-action-invalidate"
@@ -11665,7 +11954,7 @@ var QueryDetails = () => {
11665
11954
  >
11666
11955
  <span
11667
11956
  class={u`
11668
- background-color: ${tokens.colors.yellow[400]};
11957
+ background-color: ${t2(colors.yellow[600], colors.yellow[400])};
11669
11958
  `}
11670
11959
  />
11671
11960
  {"Invalidate"}
@@ -11673,7 +11962,7 @@ var QueryDetails = () => {
11673
11962
  <button
11674
11963
  class={clsx(
11675
11964
  u`
11676
- color: ${tokens.colors.gray[300]};
11965
+ color: ${t2(colors.gray[600], colors.gray[300])};
11677
11966
  `,
11678
11967
  "tsqd-query-details-actions-btn",
11679
11968
  "tsqd-query-details-action-reset"
@@ -11683,7 +11972,7 @@ var QueryDetails = () => {
11683
11972
  >
11684
11973
  <span
11685
11974
  class={u`
11686
- background-color: ${tokens.colors.gray[400]};
11975
+ background-color: ${t2(colors.gray[600], colors.gray[400])};
11687
11976
  `}
11688
11977
  />
11689
11978
  {"Reset"}
@@ -11691,7 +11980,7 @@ var QueryDetails = () => {
11691
11980
  <button
11692
11981
  class={clsx(
11693
11982
  u`
11694
- color: ${tokens.colors.pink[400]};
11983
+ color: ${t2(colors.pink[500], colors.pink[400])};
11695
11984
  `,
11696
11985
  "tsqd-query-details-actions-btn",
11697
11986
  "tsqd-query-details-action-remove"
@@ -11704,7 +11993,7 @@ var QueryDetails = () => {
11704
11993
  >
11705
11994
  <span
11706
11995
  class={u`
11707
- background-color: ${tokens.colors.pink[400]};
11996
+ background-color: ${t2(colors.pink[500], colors.pink[400])};
11708
11997
  `}
11709
11998
  />
11710
11999
  {"Remove"}
@@ -11712,7 +12001,7 @@ var QueryDetails = () => {
11712
12001
  <button
11713
12002
  class={clsx(
11714
12003
  u`
11715
- color: ${tokens.colors.cyan[400]};
12004
+ color: ${t2(colors.cyan[500], colors.cyan[400])};
11716
12005
  `,
11717
12006
  "tsqd-query-details-actions-btn",
11718
12007
  "tsqd-query-details-action-loading"
@@ -11749,7 +12038,7 @@ var QueryDetails = () => {
11749
12038
  >
11750
12039
  <span
11751
12040
  class={u`
11752
- background-color: ${tokens.colors.cyan[400]};
12041
+ background-color: ${t2(colors.cyan[500], colors.cyan[400])};
11753
12042
  `}
11754
12043
  />
11755
12044
  {queryStatus() === "pending" ? "Restore" : "Trigger"}
@@ -11758,7 +12047,7 @@ var QueryDetails = () => {
11758
12047
  <Show when={errorTypes().length === 0 || queryStatus() === "error"}><button
11759
12048
  class={clsx(
11760
12049
  u`
11761
- color: ${tokens.colors.red[400]};
12050
+ color: ${t2(colors.red[500], colors.red[400])};
11762
12051
  `,
11763
12052
  "tsqd-query-details-actions-btn",
11764
12053
  "tsqd-query-details-action-error"
@@ -11774,7 +12063,7 @@ var QueryDetails = () => {
11774
12063
  >
11775
12064
  <span
11776
12065
  class={u`
11777
- background-color: ${tokens.colors.red[400]};
12066
+ background-color: ${t2(colors.red[500], colors.red[400])};
11778
12067
  `}
11779
12068
  />
11780
12069
  {queryStatus() === "error" ? "Restore" : "Trigger"}
@@ -11784,7 +12073,7 @@ var QueryDetails = () => {
11784
12073
  when={!(errorTypes().length === 0 || queryStatus() === "error")}
11785
12074
  ><div
11786
12075
  class={clsx(
11787
- styles.actionsSelect,
12076
+ styles().actionsSelect,
11788
12077
  "tsqd-query-details-actions-btn",
11789
12078
  "tsqd-query-details-action-error-multiple"
11790
12079
  )}
@@ -11799,7 +12088,7 @@ var QueryDetails = () => {
11799
12088
  disabled={queryStatus() === "pending"}
11800
12089
  onChange={(e2) => {
11801
12090
  const errorType = errorTypes().find(
11802
- (t2) => t2.name === e2.currentTarget.value
12091
+ (et) => et.name === e2.currentTarget.value
11803
12092
  );
11804
12093
  triggerError(errorType);
11805
12094
  }}
@@ -11810,7 +12099,7 @@ var QueryDetails = () => {
11810
12099
  <ChevronDown />
11811
12100
  </div></Show>
11812
12101
  </div>
11813
- <div class={clsx(styles.detailsHeader, "tsqd-query-details-header")}>Data Explorer</div>
12102
+ <div class={clsx(styles().detailsHeader, "tsqd-query-details-header")}>Data Explorer</div>
11814
12103
  <div
11815
12104
  style={{
11816
12105
  padding: "0.5rem"
@@ -11823,7 +12112,7 @@ var QueryDetails = () => {
11823
12112
  editable={true}
11824
12113
  activeQuery={activeQuery()}
11825
12114
  /></div>
11826
- <div class={clsx(styles.detailsHeader, "tsqd-query-details-header")}>Query Explorer</div>
12115
+ <div class={clsx(styles().detailsHeader, "tsqd-query-details-header")}>Query Explorer</div>
11827
12116
  <div
11828
12117
  style={{
11829
12118
  padding: "0.5rem"
@@ -11873,8 +12162,9 @@ var createSubscribeToQueryCacheBatcher = (callback, equalityCheck = true) => {
11873
12162
  });
11874
12163
  return value;
11875
12164
  };
11876
- var getStyles2 = () => {
12165
+ var stylesFactory2 = (theme) => {
11877
12166
  const { colors, font, size: size2, alpha, shadow, border } = tokens;
12167
+ const t2 = (light, dark) => theme === "light" ? light : dark;
11878
12168
  return {
11879
12169
  devtoolsBtn: u`
11880
12170
  z-index: 100000;
@@ -11936,8 +12226,6 @@ var getStyles2 = () => {
11936
12226
  display: flex;
11937
12227
  gap: ${tokens.size[0.5]};
11938
12228
  & * {
11939
- font-family: 'Inter', sans-serif;
11940
- color: ${colors.gray[300]};
11941
12229
  box-sizing: border-box;
11942
12230
  text-transform: none;
11943
12231
  }
@@ -11964,7 +12252,7 @@ var getStyles2 = () => {
11964
12252
  left: 0;
11965
12253
  max-height: 90%;
11966
12254
  min-height: 3.5rem;
11967
- border-bottom: ${colors.darkGray[300]} 1px solid;
12255
+ border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11968
12256
  `,
11969
12257
  "panel-position-bottom": u`
11970
12258
  bottom: 0;
@@ -11972,20 +12260,20 @@ var getStyles2 = () => {
11972
12260
  left: 0;
11973
12261
  max-height: 90%;
11974
12262
  min-height: 3.5rem;
11975
- border-top: ${colors.darkGray[300]} 1px solid;
12263
+ border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11976
12264
  `,
11977
12265
  "panel-position-right": u`
11978
12266
  bottom: 0;
11979
12267
  right: 0;
11980
12268
  top: 0;
11981
- border-left: ${colors.darkGray[300]} 1px solid;
12269
+ border-left: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11982
12270
  max-width: 90%;
11983
12271
  `,
11984
12272
  "panel-position-left": u`
11985
12273
  bottom: 0;
11986
12274
  left: 0;
11987
12275
  top: 0;
11988
- border-right: ${colors.darkGray[300]} 1px solid;
12276
+ border-right: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11989
12277
  max-width: 90%;
11990
12278
  `,
11991
12279
  closeBtn: u`
@@ -11996,13 +12284,15 @@ var getStyles2 = () => {
11996
12284
  align-items: center;
11997
12285
  justify-content: center;
11998
12286
  outline: none;
12287
+ background-color: ${t2(colors.gray[50], colors.darkGray[700])};
11999
12288
  &:hover {
12000
- background-color: ${colors.darkGray[500]};
12289
+ background-color: ${t2(colors.gray[200], colors.darkGray[500])};
12001
12290
  }
12002
12291
  &:focus-visible {
12003
12292
  outline: 2px solid ${colors.blue[600]};
12004
12293
  }
12005
12294
  & svg {
12295
+ color: ${t2(colors.gray[600], colors.gray[400])};
12006
12296
  width: ${size2[2]};
12007
12297
  height: ${size2[2]};
12008
12298
  }
@@ -12011,11 +12301,10 @@ var getStyles2 = () => {
12011
12301
  bottom: 0;
12012
12302
  right: ${size2[2]};
12013
12303
  transform: translate(0, 100%);
12014
- background-color: ${colors.darkGray[700]};
12015
- border-right: ${colors.darkGray[300]} 1px solid;
12016
- border-left: ${colors.darkGray[300]} 1px solid;
12304
+ border-right: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
12305
+ border-left: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
12017
12306
  border-top: none;
12018
- border-bottom: ${colors.darkGray[300]} 1px solid;
12307
+ border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
12019
12308
  border-radius: 0px 0px ${border.radius.sm} ${border.radius.sm};
12020
12309
  padding: ${size2[0.5]} ${size2[1.5]} ${size2[1]} ${size2[1.5]};
12021
12310
 
@@ -12036,10 +12325,9 @@ var getStyles2 = () => {
12036
12325
  top: 0;
12037
12326
  right: ${size2[2]};
12038
12327
  transform: translate(0, -100%);
12039
- background-color: ${colors.darkGray[700]};
12040
- border-right: ${colors.darkGray[300]} 1px solid;
12041
- border-left: ${colors.darkGray[300]} 1px solid;
12042
- border-top: ${colors.darkGray[300]} 1px solid;
12328
+ border-right: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
12329
+ border-left: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
12330
+ border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
12043
12331
  border-bottom: none;
12044
12332
  border-radius: ${border.radius.sm} ${border.radius.sm} 0px 0px;
12045
12333
  padding: ${size2[1]} ${size2[1.5]} ${size2[0.5]} ${size2[1.5]};
@@ -12057,11 +12345,10 @@ var getStyles2 = () => {
12057
12345
  bottom: ${size2[2]};
12058
12346
  left: 0;
12059
12347
  transform: translate(-100%, 0);
12060
- background-color: ${colors.darkGray[700]};
12061
12348
  border-right: none;
12062
- border-left: ${colors.darkGray[300]} 1px solid;
12063
- border-top: ${colors.darkGray[300]} 1px solid;
12064
- border-bottom: ${colors.darkGray[300]} 1px solid;
12349
+ border-left: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
12350
+ border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
12351
+ border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
12065
12352
  border-radius: ${border.radius.sm} 0px 0px ${border.radius.sm};
12066
12353
  padding: ${size2[1.5]} ${size2[0.5]} ${size2[1.5]} ${size2[1]};
12067
12354
 
@@ -12081,11 +12368,10 @@ var getStyles2 = () => {
12081
12368
  bottom: ${size2[2]};
12082
12369
  right: 0;
12083
12370
  transform: translate(100%, 0);
12084
- background-color: ${colors.darkGray[700]};
12085
12371
  border-left: none;
12086
- border-right: ${colors.darkGray[300]} 1px solid;
12087
- border-top: ${colors.darkGray[300]} 1px solid;
12088
- border-bottom: ${colors.darkGray[300]} 1px solid;
12372
+ border-right: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
12373
+ border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
12374
+ border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
12089
12375
  border-radius: 0px ${border.radius.sm} ${border.radius.sm} 0px;
12090
12376
  padding: ${size2[1.5]} ${size2[1]} ${size2[1.5]} ${size2[0.5]};
12091
12377
 
@@ -12103,15 +12389,18 @@ var getStyles2 = () => {
12103
12389
  `,
12104
12390
  queriesContainer: u`
12105
12391
  flex: 1 1 700px;
12106
- background-color: ${colors.darkGray[700]};
12392
+ background-color: ${t2(colors.gray[50], colors.darkGray[700])};
12107
12393
  display: flex;
12108
12394
  flex-direction: column;
12395
+ & * {
12396
+ font-family: 'Inter', sans-serif;
12397
+ }
12109
12398
  `,
12110
12399
  dragHandle: u`
12111
12400
  position: absolute;
12112
12401
  transition: background-color 0.125s ease;
12113
12402
  &:hover {
12114
- background-color: ${colors.purple[400]}${alpha[90]};
12403
+ background-color: ${colors.purple[400]}${t2("", alpha[90])};
12115
12404
  }
12116
12405
  z-index: 4;
12117
12406
  `,
@@ -12145,7 +12434,7 @@ var getStyles2 = () => {
12145
12434
  align-items: center;
12146
12435
  padding: ${tokens.size[2]} ${tokens.size[2.5]};
12147
12436
  gap: ${tokens.size[3]};
12148
- border-bottom: ${colors.darkGray[500]} 1px solid;
12437
+ border-bottom: ${t2(colors.gray[300], colors.darkGray[500])} 1px solid;
12149
12438
  align-items: center;
12150
12439
  & > button {
12151
12440
  padding: 0;
@@ -12172,11 +12461,15 @@ var getStyles2 = () => {
12172
12461
  font-weight: ${font.weight.bold};
12173
12462
  line-height: ${font.lineHeight.xs};
12174
12463
  white-space: nowrap;
12464
+ color: ${t2(colors.gray[600], colors.gray[300])};
12175
12465
  `,
12176
12466
  queryFlavorLogo: u`
12177
12467
  font-weight: ${font.weight.semibold};
12178
12468
  font-size: ${font.size.xs};
12179
- background: linear-gradient(to right, #dd524b, #e9a03b);
12469
+ background: linear-gradient(
12470
+ to right,
12471
+ ${t2("#ea4037, #ff9b11", "#dd524b, #e9a03b")}
12472
+ );
12180
12473
  background-clip: text;
12181
12474
  -webkit-background-clip: text;
12182
12475
  line-height: 1;
@@ -12191,14 +12484,17 @@ var getStyles2 = () => {
12191
12484
  queryStatusTag: u`
12192
12485
  display: flex;
12193
12486
  gap: ${tokens.size[1.5]};
12194
- background: ${colors.darkGray[500]};
12487
+ box-sizing: border-box;
12488
+ height: ${tokens.size[6.5]};
12489
+ background: ${t2(colors.gray[50], colors.darkGray[500])};
12490
+ color: ${t2(colors.gray[700], colors.gray[300])};
12195
12491
  border-radius: ${tokens.border.radius.sm};
12196
12492
  font-size: ${font.size.sm};
12197
12493
  padding: ${tokens.size[1]};
12198
- padding-left: ${tokens.size[2]};
12494
+ padding-left: ${tokens.size[1.5]};
12199
12495
  align-items: center;
12200
12496
  font-weight: ${font.weight.medium};
12201
- border: none;
12497
+ border: ${t2("1px solid " + colors.gray[300], "1px solid transparent")};
12202
12498
  user-select: none;
12203
12499
  position: relative;
12204
12500
  &:focus-visible {
@@ -12215,8 +12511,8 @@ var getStyles2 = () => {
12215
12511
  display: flex;
12216
12512
  align-items: center;
12217
12513
  justify-content: center;
12218
- color: ${colors.gray[400]};
12219
- background-color: ${colors.darkGray[300]};
12514
+ color: ${t2(colors.gray[500], colors.gray[400])};
12515
+ background-color: ${t2(colors.gray[200], colors.darkGray[300])};
12220
12516
  border-radius: 2px;
12221
12517
  font-variant-numeric: tabular-nums;
12222
12518
  height: ${tokens.size[4.5]};
@@ -12224,15 +12520,15 @@ var getStyles2 = () => {
12224
12520
  statusTooltip: u`
12225
12521
  position: absolute;
12226
12522
  z-index: 1;
12227
- background-color: ${colors.darkGray[500]};
12523
+ background-color: ${t2(colors.gray[50], colors.darkGray[500])};
12228
12524
  top: 100%;
12229
12525
  left: 50%;
12230
12526
  transform: translate(-50%, calc(${tokens.size[2]}));
12231
12527
  padding: ${tokens.size[0.5]} ${tokens.size[2]};
12232
- border-radius: ${tokens.border.radius.md};
12528
+ border-radius: ${tokens.border.radius.sm};
12233
12529
  font-size: ${font.size.xs};
12234
- border: 1px solid ${colors.gray[600]};
12235
- color: ${tokens.colors["gray"][300]};
12530
+ border: 1px solid ${t2(colors.gray[400], colors.gray[600])};
12531
+ color: ${t2(colors["gray"][600], colors["gray"][300])};
12236
12532
 
12237
12533
  &::before {
12238
12534
  top: 0px;
@@ -12241,7 +12537,8 @@ var getStyles2 = () => {
12241
12537
  left: 50%;
12242
12538
  transform: translate(-50%, -100%);
12243
12539
  position: absolute;
12244
- border-color: transparent transparent ${colors.gray[600]} transparent;
12540
+ border-color: transparent transparent
12541
+ ${t2(colors.gray[400], colors.gray[600])} transparent;
12245
12542
  border-style: solid;
12246
12543
  border-width: 7px;
12247
12544
  /* transform: rotate(180deg); */
@@ -12252,17 +12549,14 @@ var getStyles2 = () => {
12252
12549
  content: ' ';
12253
12550
  display: block;
12254
12551
  left: 50%;
12255
- transform: translate(-50%, calc(-100% + 2.5px));
12552
+ transform: translate(-50%, calc(-100% + 2px));
12256
12553
  position: absolute;
12257
- border-color: transparent transparent ${colors.darkGray[500]}
12258
- transparent;
12554
+ border-color: transparent transparent
12555
+ ${t2(colors.gray[100], colors.darkGray[500])} transparent;
12259
12556
  border-style: solid;
12260
12557
  border-width: 7px;
12261
12558
  }
12262
12559
  `,
12263
- selectedQueryRow: u`
12264
- background-color: ${colors.darkGray[500]};
12265
- `,
12266
12560
  filtersContainer: u`
12267
12561
  display: flex;
12268
12562
  gap: ${tokens.size[2]};
@@ -12271,47 +12565,52 @@ var getStyles2 = () => {
12271
12565
  padding: ${tokens.size[0.5]} ${tokens.size[2]};
12272
12566
  padding-right: ${tokens.size[1.5]};
12273
12567
  border-radius: ${tokens.border.radius.sm};
12274
- background-color: ${colors.darkGray[400]};
12568
+ background-color: ${t2(colors.gray[100], colors.darkGray[400])};
12569
+ border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
12570
+ color: ${t2(colors.gray[700], colors.gray[300])};
12275
12571
  font-size: ${font.size.xs};
12276
12572
  display: flex;
12277
12573
  align-items: center;
12278
12574
  line-height: ${font.lineHeight.sm};
12279
12575
  gap: ${tokens.size[1.5]};
12280
12576
  max-width: 160px;
12281
- border: 1px solid ${colors.darkGray[200]};
12282
12577
  &:focus-visible {
12283
12578
  outline-offset: 2px;
12284
12579
  border-radius: ${border.radius.xs};
12285
12580
  outline: 2px solid ${colors.blue[800]};
12286
12581
  }
12582
+ & svg {
12583
+ color: ${t2(colors.gray[500], colors.gray[400])};
12584
+ }
12287
12585
  }
12288
12586
  `,
12289
12587
  filterInput: u`
12290
- padding: ${tokens.size[0.5]} ${tokens.size[2]};
12588
+ padding: ${size2[0.5]} ${size2[2]};
12291
12589
  border-radius: ${tokens.border.radius.sm};
12292
- background-color: ${colors.darkGray[400]};
12590
+ background-color: ${t2(colors.gray[100], colors.darkGray[400])};
12293
12591
  display: flex;
12294
12592
  box-sizing: content-box;
12295
12593
  align-items: center;
12296
12594
  gap: ${tokens.size[1.5]};
12297
12595
  max-width: 160px;
12298
12596
  min-width: 100px;
12299
- border: 1px solid ${colors.darkGray[200]};
12597
+ border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
12300
12598
  height: min-content;
12599
+ color: ${t2(colors.gray[600], colors.gray[400])};
12301
12600
  & > svg {
12302
- width: ${tokens.size[3]};
12303
- height: ${tokens.size[3]};
12601
+ width: ${size2[3]};
12602
+ height: ${size2[3]};
12304
12603
  }
12305
12604
  & input {
12306
12605
  font-size: ${font.size.xs};
12307
12606
  width: 100%;
12308
- background-color: ${colors.darkGray[400]};
12607
+ background-color: ${t2(colors.gray[100], colors.darkGray[400])};
12309
12608
  border: none;
12310
12609
  padding: 0;
12311
12610
  line-height: ${font.lineHeight.sm};
12312
- color: ${colors.gray[300]};
12611
+ color: ${t2(colors.gray[700], colors.gray[300])};
12313
12612
  &::placeholder {
12314
- color: ${colors.gray[300]};
12613
+ color: ${t2(colors.gray[700], colors.gray[300])};
12315
12614
  }
12316
12615
  &:focus {
12317
12616
  outline: none;
@@ -12327,24 +12626,26 @@ var getStyles2 = () => {
12327
12626
  filterSelect: u`
12328
12627
  padding: ${tokens.size[0.5]} ${tokens.size[2]};
12329
12628
  border-radius: ${tokens.border.radius.sm};
12330
- background-color: ${colors.darkGray[400]};
12629
+ background-color: ${t2(colors.gray[100], colors.darkGray[400])};
12331
12630
  display: flex;
12332
12631
  align-items: center;
12333
12632
  gap: ${tokens.size[1.5]};
12334
12633
  box-sizing: content-box;
12335
12634
  max-width: 160px;
12336
- border: 1px solid ${colors.darkGray[200]};
12635
+ border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
12337
12636
  height: min-content;
12338
12637
  & > svg {
12638
+ color: ${t2(colors.gray[600], colors.gray[400])};
12339
12639
  width: ${tokens.size[2]};
12340
12640
  height: ${tokens.size[2]};
12341
12641
  }
12342
12642
  & > select {
12343
12643
  appearance: none;
12644
+ color: ${t2(colors.gray[700], colors.gray[300])};
12344
12645
  min-width: 100px;
12345
12646
  line-height: ${font.lineHeight.sm};
12346
12647
  font-size: ${font.size.xs};
12347
- background-color: ${colors.darkGray[400]};
12648
+ background-color: ${t2(colors.gray[100], colors.darkGray[400])};
12348
12649
  border: none;
12349
12650
  &:focus {
12350
12651
  outline: none;
@@ -12362,7 +12663,8 @@ var getStyles2 = () => {
12362
12663
  `,
12363
12664
  actionsBtn: u`
12364
12665
  border-radius: ${tokens.border.radius.sm};
12365
- background-color: ${colors.darkGray[400]};
12666
+ background-color: ${t2(colors.gray[100], colors.darkGray[400])};
12667
+ border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
12366
12668
  width: 1.625rem;
12367
12669
  height: 1.625rem;
12368
12670
  justify-content: center;
@@ -12370,13 +12672,13 @@ var getStyles2 = () => {
12370
12672
  align-items: center;
12371
12673
  gap: ${tokens.size[1.5]};
12372
12674
  max-width: 160px;
12373
- border: 1px solid ${colors.darkGray[200]};
12374
12675
  cursor: pointer;
12375
12676
  padding: 0;
12376
12677
  &:hover {
12377
- background-color: ${colors.darkGray[500]};
12678
+ background-color: ${t2(colors.gray[200], colors.darkGray[500])};
12378
12679
  }
12379
12680
  & svg {
12681
+ color: ${t2(colors.gray[700], colors.gray[300])};
12380
12682
  width: ${tokens.size[3]};
12381
12683
  height: ${tokens.size[3]};
12382
12684
  }
@@ -12386,6 +12688,12 @@ var getStyles2 = () => {
12386
12688
  outline: 2px solid ${colors.blue[800]};
12387
12689
  }
12388
12690
  `,
12691
+ actionsBtnOffline: u`
12692
+ & svg {
12693
+ stroke: ${t2(colors.yellow[700], colors.yellow[500])};
12694
+ fill: ${t2(colors.yellow[700], colors.yellow[500])};
12695
+ }
12696
+ `,
12389
12697
  overflowQueryContainer: u`
12390
12698
  flex: 1;
12391
12699
  overflow-y: auto;
@@ -12398,9 +12706,11 @@ var getStyles2 = () => {
12398
12706
  display: flex;
12399
12707
  align-items: center;
12400
12708
  padding: 0;
12401
- background-color: inherit;
12402
12709
  border: none;
12403
12710
  cursor: pointer;
12711
+ color: ${t2(colors.gray[700], colors.gray[300])};
12712
+ background-color: ${t2(colors.gray[50], colors.darkGray[700])};
12713
+ line-height: 1;
12404
12714
  &:focus {
12405
12715
  outline: none;
12406
12716
  }
@@ -12410,7 +12720,7 @@ var getStyles2 = () => {
12410
12720
  outline: 2px solid ${colors.blue[800]};
12411
12721
  }
12412
12722
  &:hover .tsqd-query-hash {
12413
- background-color: ${colors.darkGray[600]};
12723
+ background-color: ${t2(colors.gray[200], colors.darkGray[600])};
12414
12724
  }
12415
12725
 
12416
12726
  & .tsqd-query-observer-count {
@@ -12425,7 +12735,7 @@ var getStyles2 = () => {
12425
12735
  font-weight: ${font.weight.medium};
12426
12736
  border-bottom-width: 1px;
12427
12737
  border-bottom-style: solid;
12428
- border-bottom: 1px solid ${colors.darkGray[700]};
12738
+ border-bottom: 1px solid ${t2(colors.gray[300], colors.darkGray[700])};
12429
12739
  }
12430
12740
  & .tsqd-query-hash {
12431
12741
  user-select: text;
@@ -12436,7 +12746,7 @@ var getStyles2 = () => {
12436
12746
  flex: 1;
12437
12747
  padding: ${tokens.size[1]} ${tokens.size[2]};
12438
12748
  font-family: 'Menlo', 'Fira Code', monospace;
12439
- border-bottom: 1px solid ${colors.darkGray[400]};
12749
+ border-bottom: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
12440
12750
  text-align: left;
12441
12751
  text-overflow: clip;
12442
12752
  word-break: break-word;
@@ -12447,15 +12757,20 @@ var getStyles2 = () => {
12447
12757
  display: flex;
12448
12758
  align-items: center;
12449
12759
  padding: 0 ${tokens.size[2]};
12450
- color: ${colors.gray[300]};
12451
- background-color: ${colors.darkGray[600]};
12452
- border-bottom: 1px solid ${colors.darkGray[400]};
12760
+ color: ${t2(colors.gray[800], colors.gray[300])};
12761
+ background-color: ${t2(colors.gray[300], colors.darkGray[600])};
12762
+ border-bottom: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
12453
12763
  font-size: ${font.size.xs};
12454
12764
  }
12455
12765
  `,
12766
+ selectedQueryRow: u`
12767
+ background-color: ${t2(colors.gray[200], colors.darkGray[500])};
12768
+ `,
12456
12769
  detailsContainer: u`
12457
12770
  flex: 1 1 700px;
12458
- background-color: ${colors.darkGray[700]};
12771
+ background-color: ${t2(colors.gray[50], colors.darkGray[700])};
12772
+ color: ${t2(colors.gray[700], colors.gray[300])};
12773
+ font-family: 'Inter', sans-serif;
12459
12774
  display: flex;
12460
12775
  flex-direction: column;
12461
12776
  overflow-y: auto;
@@ -12463,10 +12778,11 @@ var getStyles2 = () => {
12463
12778
  text-align: left;
12464
12779
  `,
12465
12780
  detailsHeader: u`
12781
+ font-family: 'Inter', sans-serif;
12466
12782
  position: sticky;
12467
12783
  top: 0;
12468
12784
  z-index: 2;
12469
- background-color: ${colors.darkGray[600]};
12785
+ background-color: ${t2(colors.gray[200], colors.darkGray[600])};
12470
12786
  padding: ${tokens.size[1.5]} ${tokens.size[2]};
12471
12787
  font-weight: ${font.weight.medium};
12472
12788
  font-size: ${font.size.xs};
@@ -12499,6 +12815,10 @@ var getStyles2 = () => {
12499
12815
  font-size: ${font.size.xs};
12500
12816
  line-height: ${font.lineHeight.xs};
12501
12817
  }
12818
+
12819
+ & pre {
12820
+ margin: 0;
12821
+ }
12502
12822
  `,
12503
12823
  queryDetailsStatus: u`
12504
12824
  border: 1px solid ${colors.darkGray[200]};
@@ -12513,12 +12833,13 @@ var getStyles2 = () => {
12513
12833
  gap: ${tokens.size[2]};
12514
12834
  padding: 0px ${tokens.size[2]};
12515
12835
  & > button {
12836
+ font-family: 'Inter', sans-serif;
12516
12837
  font-size: ${font.size.xs};
12517
12838
  padding: ${tokens.size[1]} ${tokens.size[2]};
12518
12839
  display: flex;
12519
12840
  border-radius: ${tokens.border.radius.sm};
12520
- border: 1px solid ${colors.darkGray[400]};
12521
- background-color: ${colors.darkGray[600]};
12841
+ background-color: ${t2(colors.gray[100], colors.darkGray[600])};
12842
+ border: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
12522
12843
  align-items: center;
12523
12844
  gap: ${tokens.size[2]};
12524
12845
  font-weight: ${font.weight.medium};
@@ -12530,7 +12851,7 @@ var getStyles2 = () => {
12530
12851
  outline: 2px solid ${colors.blue[800]};
12531
12852
  }
12532
12853
  &:hover {
12533
- background-color: ${colors.darkGray[500]};
12854
+ background-color: ${t2(colors.gray[200], colors.darkGray[500])};
12534
12855
  }
12535
12856
 
12536
12857
  &:disabled {
@@ -12551,17 +12872,17 @@ var getStyles2 = () => {
12551
12872
  display: flex;
12552
12873
  border-radius: ${tokens.border.radius.sm};
12553
12874
  overflow: hidden;
12554
- border: 1px solid ${colors.darkGray[400]};
12555
- background-color: ${colors.darkGray[600]};
12875
+ background-color: ${t2(colors.gray[100], colors.darkGray[600])};
12876
+ border: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
12556
12877
  align-items: center;
12557
12878
  gap: ${tokens.size[2]};
12558
12879
  font-weight: ${font.weight.medium};
12559
12880
  line-height: ${font.lineHeight.sm};
12560
- color: ${tokens.colors.red[400]};
12881
+ color: ${t2(colors.red[500], colors.red[400])};
12561
12882
  cursor: pointer;
12562
12883
  position: relative;
12563
12884
  &:hover {
12564
- background-color: ${colors.darkGray[500]};
12885
+ background-color: ${t2(colors.gray[200], colors.darkGray[500])};
12565
12886
  }
12566
12887
  & > span {
12567
12888
  width: ${size2[1.5]};
@@ -12602,10 +12923,10 @@ var getStyles2 = () => {
12602
12923
  flex-direction: column;
12603
12924
  gap: ${size2[0.5]};
12604
12925
  border-radius: ${tokens.border.radius.sm};
12605
- border: 1px solid ${colors.gray[700]};
12606
- background-color: ${colors.darkGray[600]};
12926
+ border: 1px solid ${t2(colors.gray[300], colors.gray[700])};
12927
+ background-color: ${t2(colors.gray[50], colors.darkGray[600])};
12607
12928
  font-size: ${font.size.xs};
12608
- color: ${colors.gray[300]};
12929
+ color: ${t2(colors.gray[700], colors.gray[300])};
12609
12930
  z-index: 99999;
12610
12931
  min-width: 120px;
12611
12932
  padding: ${size2[0.5]};
@@ -12615,17 +12936,19 @@ var getStyles2 = () => {
12615
12936
  align-items: center;
12616
12937
  justify-content: space-between;
12617
12938
  border-radius: ${tokens.border.radius.xs};
12618
- padding: ${tokens.size[0.5]} ${tokens.size[1]};
12939
+ padding: ${tokens.size[1]} ${tokens.size[1]};
12619
12940
  cursor: pointer;
12620
12941
  background-color: transparent;
12621
12942
  border: none;
12943
+ color: ${t2(colors.gray[700], colors.gray[300])};
12622
12944
  & svg {
12945
+ color: ${t2(colors.gray[600], colors.gray[400])};
12623
12946
  transform: rotate(-90deg);
12624
12947
  width: ${tokens.size[2]};
12625
12948
  height: ${tokens.size[2]};
12626
12949
  }
12627
12950
  &:hover {
12628
- background-color: ${colors.darkGray[500]};
12951
+ background-color: ${t2(colors.gray[200], colors.darkGray[500])};
12629
12952
  }
12630
12953
  &:focus-visible {
12631
12954
  outline-offset: 2px;
@@ -12637,33 +12960,48 @@ var getStyles2 = () => {
12637
12960
  }
12638
12961
  `,
12639
12962
  settingsMenuHeader: u`
12640
- padding: ${tokens.size[0.5]} ${tokens.size[1]};
12963
+ padding: ${tokens.size[1]} ${tokens.size[1]};
12641
12964
  font-weight: ${font.weight.medium};
12642
- border-bottom: 1px solid ${colors.darkGray[400]};
12643
- color: ${colors.gray[400]};
12965
+ border-bottom: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
12966
+ color: ${t2(colors.gray[500], colors.gray[400])};
12644
12967
  font-size: ${font.size["xs"]};
12645
12968
  `,
12646
12969
  settingsSubButton: u`
12647
12970
  display: flex;
12648
12971
  align-items: center;
12649
12972
  justify-content: space-between;
12650
- color: ${colors.gray[300]};
12973
+ color: ${t2(colors.gray[700], colors.gray[300])};
12651
12974
  font-size: ${font.size["xs"]};
12652
12975
  border-radius: ${tokens.border.radius.xs};
12653
- padding: ${tokens.size[0.5]} ${tokens.size[1]};
12976
+ padding: ${tokens.size[1]} ${tokens.size[1]};
12654
12977
  cursor: pointer;
12655
12978
  background-color: transparent;
12656
12979
  border: none;
12980
+ & svg {
12981
+ color: ${t2(colors.gray[600], colors.gray[400])};
12982
+ }
12657
12983
  &:hover {
12658
- background-color: ${colors.darkGray[500]};
12984
+ background-color: ${t2(colors.gray[200], colors.darkGray[500])};
12659
12985
  }
12660
12986
  &:focus-visible {
12661
12987
  outline-offset: 2px;
12662
12988
  outline: 2px solid ${colors.blue[800]};
12663
12989
  }
12990
+ `,
12991
+ themeSelectedButton: u`
12992
+ background-color: ${t2(colors.purple[100], colors.purple[900])};
12993
+ color: ${t2(colors.purple[700], colors.purple[300])};
12994
+ & svg {
12995
+ color: ${t2(colors.purple[700], colors.purple[300])};
12996
+ }
12997
+ &:hover {
12998
+ background-color: ${t2(colors.purple[100], colors.purple[900])};
12999
+ }
12664
13000
  `
12665
13001
  };
12666
13002
  };
13003
+ var lightStyles2 = stylesFactory2("light");
13004
+ var darkStyles2 = stylesFactory2("dark");
12667
13005
  export {
12668
13006
  Devtools,
12669
13007
  DevtoolsComponent,