@tanstack/query-devtools 5.24.0 → 5.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -50,7 +50,7 @@ import {
50
50
  use,
51
51
  useContext,
52
52
  useTransition
53
- } from "../chunk/IQDKCOXE.jsx";
53
+ } from "../chunk/HLOIZPIT.jsx";
54
54
 
55
55
  // ../../node_modules/.pnpm/@tanstack+match-sorter-utils@8.11.8/node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs
56
56
  var characterMap = {
@@ -9980,7 +9980,8 @@ var QueryDevtoolsContext = createContext({
9980
9980
  client: void 0,
9981
9981
  onlineManager: void 0,
9982
9982
  queryFlavor: "",
9983
- version: ""
9983
+ version: "",
9984
+ shadowDOMTarget: void 0
9984
9985
  });
9985
9986
  function useQueryDevtoolsContext() {
9986
9987
  return useContext(QueryDevtoolsContext);
@@ -10540,11 +10541,11 @@ var PiPProvider = (props) => {
10540
10541
  }
10541
10542
  });
10542
10543
  createEffect(() => {
10543
- const gooberStyles = document.getElementById("_goober");
10544
+ const gooberStyles = (useQueryDevtoolsContext().shadowDOMTarget || document).querySelector("#_goober");
10544
10545
  const w = pipWindow();
10545
10546
  if (gooberStyles && w) {
10546
10547
  const observer = new MutationObserver(() => {
10547
- const pip_style = w.document.getElementById("_goober");
10548
+ const pip_style = (useQueryDevtoolsContext().shadowDOMTarget || w.document).querySelector("#_goober");
10548
10549
  if (pip_style) {
10549
10550
  pip_style.textContent = gooberStyles.textContent;
10550
10551
  }
@@ -10595,8 +10596,9 @@ var DevtoolsComponent = (props) => {
10595
10596
  var Devtools_default = DevtoolsComponent;
10596
10597
  var Devtools = (props) => {
10597
10598
  const theme = useTheme();
10599
+ const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({ target: useQueryDevtoolsContext().shadowDOMTarget }) : u;
10598
10600
  const styles = createMemo(() => {
10599
- return theme() === "dark" ? darkStyles2 : lightStyles2;
10601
+ return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
10600
10602
  });
10601
10603
  const pip = usePiPWindow();
10602
10604
  const buttonPosition = createMemo(() => {
@@ -10645,7 +10647,7 @@ var Devtools = (props) => {
10645
10647
  /></PiPPanel></Portal></Show>
10646
10648
  <div
10647
10649
  class={clsx(
10648
- u`
10650
+ css`
10649
10651
  & .tsqd-panel-transition-exit-active,
10650
10652
  & .tsqd-panel-transition-enter-active {
10651
10653
  transition:
@@ -10700,19 +10702,20 @@ var Devtools = (props) => {
10700
10702
  var PiPPanel = (props) => {
10701
10703
  const pip = usePiPWindow();
10702
10704
  const theme = useTheme();
10705
+ const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({ target: useQueryDevtoolsContext().shadowDOMTarget }) : u;
10703
10706
  const styles = createMemo(() => {
10704
- return theme() === "dark" ? darkStyles2 : lightStyles2;
10707
+ return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
10705
10708
  });
10706
10709
  const getPanelDynamicStyles = () => {
10707
10710
  const { colors } = tokens;
10708
10711
  const t2 = (light, dark) => theme() === "dark" ? dark : light;
10709
10712
  if (panelWidth() < secondBreakpoint) {
10710
- return u`
10713
+ return css`
10711
10714
  flex-direction: column;
10712
10715
  background-color: ${t2(colors.gray[300], colors.gray[600])};
10713
10716
  `;
10714
10717
  }
10715
- return u`
10718
+ return css`
10716
10719
  flex-direction: row;
10717
10720
  background-color: ${t2(colors.gray[200], colors.darkGray[900])};
10718
10721
  `;
@@ -10745,7 +10748,7 @@ var PiPPanel = (props) => {
10745
10748
  styles().panel,
10746
10749
  getPanelDynamicStyles(),
10747
10750
  {
10748
- [u`
10751
+ [css`
10749
10752
  min-width: min-content;
10750
10753
  `]: panelWidth() < thirdBreakpoint
10751
10754
  },
@@ -10755,8 +10758,9 @@ var PiPPanel = (props) => {
10755
10758
  };
10756
10759
  var DevtoolsPanel = (props) => {
10757
10760
  const theme = useTheme();
10761
+ const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({ target: useQueryDevtoolsContext().shadowDOMTarget }) : u;
10758
10762
  const styles = createMemo(() => {
10759
- return theme() === "dark" ? darkStyles2 : lightStyles2;
10763
+ return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
10760
10764
  });
10761
10765
  const [isResizing, setIsResizing] = createSignal(false);
10762
10766
  const position = createMemo(
@@ -10845,12 +10849,12 @@ var DevtoolsPanel = (props) => {
10845
10849
  const { colors } = tokens;
10846
10850
  const t2 = (light, dark) => theme() === "dark" ? dark : light;
10847
10851
  if (panelWidth() < secondBreakpoint) {
10848
- return u`
10852
+ return css`
10849
10853
  flex-direction: column;
10850
10854
  background-color: ${t2(colors.gray[300], colors.gray[600])};
10851
10855
  `;
10852
10856
  }
10853
- return u`
10857
+ return css`
10854
10858
  flex-direction: row;
10855
10859
  background-color: ${t2(colors.gray[200], colors.darkGray[900])};
10856
10860
  `;
@@ -10861,7 +10865,7 @@ var DevtoolsPanel = (props) => {
10861
10865
  styles()[`panel-position-${position()}`],
10862
10866
  getPanelDynamicStyles(),
10863
10867
  {
10864
- [u`
10868
+ [css`
10865
10869
  min-width: min-content;
10866
10870
  `]: panelWidth() < thirdBreakpoint && (position() === "right" || position() === "left")
10867
10871
  },
@@ -10902,8 +10906,9 @@ var ContentView = (props) => {
10902
10906
  setupMutationCacheSubscription();
10903
10907
  let containerRef;
10904
10908
  const theme = useTheme();
10909
+ const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({ target: useQueryDevtoolsContext().shadowDOMTarget }) : u;
10905
10910
  const styles = createMemo(() => {
10906
- return theme() === "dark" ? darkStyles2 : lightStyles2;
10911
+ return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
10907
10912
  });
10908
10913
  const pip = usePiPWindow();
10909
10914
  const [selectedView, setSelectedView] = createSignal(
@@ -10988,11 +10993,11 @@ var ContentView = (props) => {
10988
10993
  <div
10989
10994
  class={clsx(
10990
10995
  styles().queriesContainer,
10991
- panelWidth() < secondBreakpoint && (selectedQueryHash() || selectedMutationId()) && u`
10996
+ panelWidth() < secondBreakpoint && (selectedQueryHash() || selectedMutationId()) && css`
10992
10997
  height: 50%;
10993
10998
  max-height: 50%;
10994
10999
  `,
10995
- panelWidth() < secondBreakpoint && !(selectedQueryHash() || selectedMutationId()) && u`
11000
+ panelWidth() < secondBreakpoint && !(selectedQueryHash() || selectedMutationId()) && css`
10996
11001
  height: 100%;
10997
11002
  max-height: 100%;
10998
11003
  `,
@@ -11371,8 +11376,9 @@ var ContentView = (props) => {
11371
11376
  };
11372
11377
  var QueryRow = (props) => {
11373
11378
  const theme = useTheme();
11379
+ const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({ target: useQueryDevtoolsContext().shadowDOMTarget }) : u;
11374
11380
  const styles = createMemo(() => {
11375
- return theme() === "dark" ? darkStyles2 : lightStyles2;
11381
+ return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
11376
11382
  });
11377
11383
  const { colors, alpha } = tokens;
11378
11384
  const t2 = (light, dark) => theme() === "dark" ? dark : light;
@@ -11413,12 +11419,12 @@ var QueryRow = (props) => {
11413
11419
  );
11414
11420
  const getObserverCountColorStyles = () => {
11415
11421
  if (color() === "gray") {
11416
- return u`
11422
+ return css`
11417
11423
  background-color: ${t2(colors[color()][200], colors[color()][700])};
11418
11424
  color: ${t2(colors[color()][700], colors[color()][300])};
11419
11425
  `;
11420
11426
  }
11421
- return u`
11427
+ return css`
11422
11428
  background-color: ${t2(
11423
11429
  colors[color()][200] + alpha[80],
11424
11430
  colors[color()][900]
@@ -11446,8 +11452,9 @@ var QueryRow = (props) => {
11446
11452
  };
11447
11453
  var MutationRow = (props) => {
11448
11454
  const theme = useTheme();
11455
+ const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({ target: useQueryDevtoolsContext().shadowDOMTarget }) : u;
11449
11456
  const styles = createMemo(() => {
11450
- return theme() === "dark" ? darkStyles2 : lightStyles2;
11457
+ return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
11451
11458
  });
11452
11459
  const { colors, alpha } = tokens;
11453
11460
  const t2 = (light, dark) => theme() === "dark" ? dark : light;
@@ -11486,12 +11493,12 @@ var MutationRow = (props) => {
11486
11493
  );
11487
11494
  const getObserverCountColorStyles = () => {
11488
11495
  if (color() === "gray") {
11489
- return u`
11496
+ return css`
11490
11497
  background-color: ${t2(colors[color()][200], colors[color()][700])};
11491
11498
  color: ${t2(colors[color()][700], colors[color()][300])};
11492
11499
  `;
11493
11500
  }
11494
- return u`
11501
+ return css`
11495
11502
  background-color: ${t2(
11496
11503
  colors[color()][200] + alpha[80],
11497
11504
  colors[color()][900]
@@ -11549,8 +11556,9 @@ var QueryStatusCount = () => {
11549
11556
  (queryCache) => queryCache().getAll().filter((q) => getQueryStatusLabel(q) === "inactive").length
11550
11557
  );
11551
11558
  const theme = useTheme();
11559
+ const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({ target: useQueryDevtoolsContext().shadowDOMTarget }) : u;
11552
11560
  const styles = createMemo(() => {
11553
- return theme() === "dark" ? darkStyles2 : lightStyles2;
11561
+ return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
11554
11562
  });
11555
11563
  return <div
11556
11564
  class={clsx(styles().queryStatusContainer, "tsqd-query-status-container")}
@@ -11596,8 +11604,9 @@ var MutationStatusCount = () => {
11596
11604
  ).length
11597
11605
  );
11598
11606
  const theme = useTheme();
11607
+ const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({ target: useQueryDevtoolsContext().shadowDOMTarget }) : u;
11599
11608
  const styles = createMemo(() => {
11600
- return theme() === "dark" ? darkStyles2 : lightStyles2;
11609
+ return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
11601
11610
  });
11602
11611
  return <div
11603
11612
  class={clsx(styles().queryStatusContainer, "tsqd-query-status-container")}
@@ -11610,8 +11619,9 @@ var MutationStatusCount = () => {
11610
11619
  };
11611
11620
  var QueryStatus = (props) => {
11612
11621
  const theme = useTheme();
11622
+ const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({ target: useQueryDevtoolsContext().shadowDOMTarget }) : u;
11613
11623
  const styles = createMemo(() => {
11614
- return theme() === "dark" ? darkStyles2 : lightStyles2;
11624
+ return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
11615
11625
  });
11616
11626
  const { colors, alpha } = tokens;
11617
11627
  const t2 = (light, dark) => theme() === "dark" ? dark : light;
@@ -11641,7 +11651,7 @@ var QueryStatus = (props) => {
11641
11651
  ref={tagRef}
11642
11652
  class={clsx(
11643
11653
  styles().queryStatusTag,
11644
- !showLabel() && u`
11654
+ !showLabel() && css`
11645
11655
  cursor: pointer;
11646
11656
  &:hover {
11647
11657
  background: ${t2(colors.gray[200], colors.darkGray[400])}${alpha[80]};
@@ -11661,7 +11671,7 @@ var QueryStatus = (props) => {
11661
11671
  >{props.label}</div></Show>
11662
11672
  <span
11663
11673
  class={clsx(
11664
- u`
11674
+ css`
11665
11675
  width: ${tokens.size[1.5]};
11666
11676
  height: ${tokens.size[1.5]};
11667
11677
  border-radius: ${tokens.border.radius.full};
@@ -11679,7 +11689,7 @@ var QueryStatus = (props) => {
11679
11689
  <span
11680
11690
  class={clsx(
11681
11691
  styles().queryStatusCount,
11682
- props.count > 0 && props.color !== "gray" && u`
11692
+ props.count > 0 && props.color !== "gray" && css`
11683
11693
  background-color: ${t2(
11684
11694
  colors[props.color][100],
11685
11695
  colors[props.color][900]
@@ -11693,8 +11703,9 @@ var QueryStatus = (props) => {
11693
11703
  };
11694
11704
  var QueryDetails = () => {
11695
11705
  const theme = useTheme();
11706
+ const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({ target: useQueryDevtoolsContext().shadowDOMTarget }) : u;
11696
11707
  const styles = createMemo(() => {
11697
- return theme() === "dark" ? darkStyles2 : lightStyles2;
11708
+ return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
11698
11709
  });
11699
11710
  const { colors } = tokens;
11700
11711
  const t2 = (light, dark) => theme() === "dark" ? dark : light;
@@ -11769,13 +11780,13 @@ var QueryDetails = () => {
11769
11780
  });
11770
11781
  const getQueryStatusColors = () => {
11771
11782
  if (color() === "gray") {
11772
- return u`
11783
+ return css`
11773
11784
  background-color: ${t2(colors[color()][200], colors[color()][700])};
11774
11785
  color: ${t2(colors[color()][700], colors[color()][300])};
11775
11786
  border-color: ${t2(colors[color()][400], colors[color()][600])};
11776
11787
  `;
11777
11788
  }
11778
- return u`
11789
+ return css`
11779
11790
  background-color: ${t2(colors[color()][100], colors[color()][900])};
11780
11791
  color: ${t2(colors[color()][700], colors[color()][300])};
11781
11792
  border-color: ${t2(colors[color()][400], colors[color()][600])};
@@ -11815,7 +11826,7 @@ var QueryDetails = () => {
11815
11826
  >
11816
11827
  <button
11817
11828
  class={clsx(
11818
- u`
11829
+ css`
11819
11830
  color: ${t2(colors.blue[600], colors.blue[400])};
11820
11831
  `,
11821
11832
  "tsqd-query-details-actions-btn",
@@ -11825,7 +11836,7 @@ var QueryDetails = () => {
11825
11836
  disabled={statusLabel() === "fetching"}
11826
11837
  >
11827
11838
  <span
11828
- class={u`
11839
+ class={css`
11829
11840
  background-color: ${t2(colors.blue[600], colors.blue[400])};
11830
11841
  `}
11831
11842
  />
@@ -11833,7 +11844,7 @@ var QueryDetails = () => {
11833
11844
  </button>
11834
11845
  <button
11835
11846
  class={clsx(
11836
- u`
11847
+ css`
11837
11848
  color: ${t2(colors.yellow[600], colors.yellow[400])};
11838
11849
  `,
11839
11850
  "tsqd-query-details-actions-btn",
@@ -11843,7 +11854,7 @@ var QueryDetails = () => {
11843
11854
  disabled={queryStatus() === "pending"}
11844
11855
  >
11845
11856
  <span
11846
- class={u`
11857
+ class={css`
11847
11858
  background-color: ${t2(colors.yellow[600], colors.yellow[400])};
11848
11859
  `}
11849
11860
  />
@@ -11851,7 +11862,7 @@ var QueryDetails = () => {
11851
11862
  </button>
11852
11863
  <button
11853
11864
  class={clsx(
11854
- u`
11865
+ css`
11855
11866
  color: ${t2(colors.gray[600], colors.gray[300])};
11856
11867
  `,
11857
11868
  "tsqd-query-details-actions-btn",
@@ -11861,7 +11872,7 @@ var QueryDetails = () => {
11861
11872
  disabled={queryStatus() === "pending"}
11862
11873
  >
11863
11874
  <span
11864
- class={u`
11875
+ class={css`
11865
11876
  background-color: ${t2(colors.gray[600], colors.gray[400])};
11866
11877
  `}
11867
11878
  />
@@ -11869,7 +11880,7 @@ var QueryDetails = () => {
11869
11880
  </button>
11870
11881
  <button
11871
11882
  class={clsx(
11872
- u`
11883
+ css`
11873
11884
  color: ${t2(colors.pink[500], colors.pink[400])};
11874
11885
  `,
11875
11886
  "tsqd-query-details-actions-btn",
@@ -11882,7 +11893,7 @@ var QueryDetails = () => {
11882
11893
  disabled={statusLabel() === "fetching"}
11883
11894
  >
11884
11895
  <span
11885
- class={u`
11896
+ class={css`
11886
11897
  background-color: ${t2(colors.pink[500], colors.pink[400])};
11887
11898
  `}
11888
11899
  />
@@ -11890,7 +11901,7 @@ var QueryDetails = () => {
11890
11901
  </button>
11891
11902
  <button
11892
11903
  class={clsx(
11893
- u`
11904
+ css`
11894
11905
  color: ${t2(colors.cyan[500], colors.cyan[400])};
11895
11906
  `,
11896
11907
  "tsqd-query-details-actions-btn",
@@ -11926,7 +11937,7 @@ var QueryDetails = () => {
11926
11937
  }}
11927
11938
  >
11928
11939
  <span
11929
- class={u`
11940
+ class={css`
11930
11941
  background-color: ${t2(colors.cyan[500], colors.cyan[400])};
11931
11942
  `}
11932
11943
  />
@@ -11935,7 +11946,7 @@ var QueryDetails = () => {
11935
11946
  </button>
11936
11947
  <Show when={errorTypes().length === 0 || queryStatus() === "error"}><button
11937
11948
  class={clsx(
11938
- u`
11949
+ css`
11939
11950
  color: ${t2(colors.red[500], colors.red[400])};
11940
11951
  `,
11941
11952
  "tsqd-query-details-actions-btn",
@@ -11951,7 +11962,7 @@ var QueryDetails = () => {
11951
11962
  disabled={queryStatus() === "pending"}
11952
11963
  >
11953
11964
  <span
11954
- class={u`
11965
+ class={css`
11955
11966
  background-color: ${t2(colors.red[500], colors.red[400])};
11956
11967
  `}
11957
11968
  />
@@ -11968,7 +11979,7 @@ var QueryDetails = () => {
11968
11979
  )}
11969
11980
  >
11970
11981
  <span
11971
- class={u`
11982
+ class={css`
11972
11983
  background-color: ${tokens.colors.red[400]};
11973
11984
  `}
11974
11985
  />
@@ -12016,8 +12027,9 @@ var QueryDetails = () => {
12016
12027
  };
12017
12028
  var MutationDetails = () => {
12018
12029
  const theme = useTheme();
12030
+ const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({ target: useQueryDevtoolsContext().shadowDOMTarget }) : u;
12019
12031
  const styles = createMemo(() => {
12020
- return theme() === "dark" ? darkStyles2 : lightStyles2;
12032
+ return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
12021
12033
  });
12022
12034
  const { colors } = tokens;
12023
12035
  const t2 = (light, dark) => theme() === "dark" ? dark : light;
@@ -12051,13 +12063,13 @@ var MutationDetails = () => {
12051
12063
  );
12052
12064
  const getQueryStatusColors = () => {
12053
12065
  if (color() === "gray") {
12054
- return u`
12066
+ return css`
12055
12067
  background-color: ${t2(colors[color()][200], colors[color()][700])};
12056
12068
  color: ${t2(colors[color()][700], colors[color()][300])};
12057
12069
  border-color: ${t2(colors[color()][400], colors[color()][600])};
12058
12070
  `;
12059
12071
  }
12060
- return u`
12072
+ return css`
12061
12073
  background-color: ${t2(colors[color()][100], colors[color()][900])};
12062
12074
  color: ${t2(colors[color()][700], colors[color()][300])};
12063
12075
  border-color: ${t2(colors[color()][400], colors[color()][600])};
@@ -12217,11 +12229,11 @@ var createSubscribeToMutationCacheBatcher = (callback, equalityCheck = true) =>
12217
12229
  });
12218
12230
  return value;
12219
12231
  };
12220
- var stylesFactory2 = (theme) => {
12232
+ var stylesFactory2 = (theme, css) => {
12221
12233
  const { colors, font, size: size2, alpha, shadow, border } = tokens;
12222
12234
  const t2 = (light, dark) => theme === "light" ? light : dark;
12223
12235
  return {
12224
- devtoolsBtn: u`
12236
+ devtoolsBtn: css`
12225
12237
  z-index: 100000;
12226
12238
  position: fixed;
12227
12239
  padding: 4px;
@@ -12275,7 +12287,7 @@ var stylesFactory2 = (theme) => {
12275
12287
  }
12276
12288
  }
12277
12289
  `,
12278
- panel: u`
12290
+ panel: css`
12279
12291
  position: fixed;
12280
12292
  z-index: 9999;
12281
12293
  display: flex;
@@ -12301,26 +12313,26 @@ var stylesFactory2 = (theme) => {
12301
12313
  background: ${t2(colors.gray[400], colors.darkGray[300])};
12302
12314
  }
12303
12315
  `,
12304
- "devtoolsBtn-position-bottom-right": u`
12316
+ "devtoolsBtn-position-bottom-right": css`
12305
12317
  bottom: 12px;
12306
12318
  right: 12px;
12307
12319
  `,
12308
- "devtoolsBtn-position-bottom-left": u`
12320
+ "devtoolsBtn-position-bottom-left": css`
12309
12321
  bottom: 12px;
12310
12322
  left: 12px;
12311
12323
  `,
12312
- "devtoolsBtn-position-top-left": u`
12324
+ "devtoolsBtn-position-top-left": css`
12313
12325
  top: 12px;
12314
12326
  left: 12px;
12315
12327
  `,
12316
- "devtoolsBtn-position-top-right": u`
12328
+ "devtoolsBtn-position-top-right": css`
12317
12329
  top: 12px;
12318
12330
  right: 12px;
12319
12331
  `,
12320
- "devtoolsBtn-position-relative": u`
12332
+ "devtoolsBtn-position-relative": css`
12321
12333
  position: relative;
12322
12334
  `,
12323
- "panel-position-top": u`
12335
+ "panel-position-top": css`
12324
12336
  top: 0;
12325
12337
  right: 0;
12326
12338
  left: 0;
@@ -12328,7 +12340,7 @@ var stylesFactory2 = (theme) => {
12328
12340
  min-height: ${size2[14]};
12329
12341
  border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
12330
12342
  `,
12331
- "panel-position-bottom": u`
12343
+ "panel-position-bottom": css`
12332
12344
  bottom: 0;
12333
12345
  right: 0;
12334
12346
  left: 0;
@@ -12336,21 +12348,21 @@ var stylesFactory2 = (theme) => {
12336
12348
  min-height: ${size2[14]};
12337
12349
  border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
12338
12350
  `,
12339
- "panel-position-right": u`
12351
+ "panel-position-right": css`
12340
12352
  bottom: 0;
12341
12353
  right: 0;
12342
12354
  top: 0;
12343
12355
  border-left: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
12344
12356
  max-width: 90%;
12345
12357
  `,
12346
- "panel-position-left": u`
12358
+ "panel-position-left": css`
12347
12359
  bottom: 0;
12348
12360
  left: 0;
12349
12361
  top: 0;
12350
12362
  border-right: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
12351
12363
  max-width: 90%;
12352
12364
  `,
12353
- closeBtn: u`
12365
+ closeBtn: css`
12354
12366
  position: absolute;
12355
12367
  cursor: pointer;
12356
12368
  z-index: 5;
@@ -12371,7 +12383,7 @@ var stylesFactory2 = (theme) => {
12371
12383
  height: ${size2[2]};
12372
12384
  }
12373
12385
  `,
12374
- "closeBtn-position-top": u`
12386
+ "closeBtn-position-top": css`
12375
12387
  bottom: 0;
12376
12388
  right: ${size2[2]};
12377
12389
  transform: translate(0, 100%);
@@ -12395,7 +12407,7 @@ var stylesFactory2 = (theme) => {
12395
12407
  transform: rotate(180deg);
12396
12408
  }
12397
12409
  `,
12398
- "closeBtn-position-bottom": u`
12410
+ "closeBtn-position-bottom": css`
12399
12411
  top: 0;
12400
12412
  right: ${size2[2]};
12401
12413
  transform: translate(0, -100%);
@@ -12415,7 +12427,7 @@ var stylesFactory2 = (theme) => {
12415
12427
  width: calc(100% + ${size2[5]});
12416
12428
  }
12417
12429
  `,
12418
- "closeBtn-position-right": u`
12430
+ "closeBtn-position-right": css`
12419
12431
  bottom: ${size2[2]};
12420
12432
  left: 0;
12421
12433
  transform: translate(-100%, 0);
@@ -12438,7 +12450,7 @@ var stylesFactory2 = (theme) => {
12438
12450
  transform: rotate(-90deg);
12439
12451
  }
12440
12452
  `,
12441
- "closeBtn-position-left": u`
12453
+ "closeBtn-position-left": css`
12442
12454
  bottom: ${size2[2]};
12443
12455
  right: 0;
12444
12456
  transform: translate(100%, 0);
@@ -12461,7 +12473,7 @@ var stylesFactory2 = (theme) => {
12461
12473
  transform: rotate(90deg);
12462
12474
  }
12463
12475
  `,
12464
- queriesContainer: u`
12476
+ queriesContainer: css`
12465
12477
  flex: 1 1 700px;
12466
12478
  background-color: ${t2(colors.gray[50], colors.darkGray[700])};
12467
12479
  display: flex;
@@ -12470,7 +12482,7 @@ var stylesFactory2 = (theme) => {
12470
12482
  font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
12471
12483
  }
12472
12484
  `,
12473
- dragHandle: u`
12485
+ dragHandle: css`
12474
12486
  position: absolute;
12475
12487
  transition: background-color 0.125s ease;
12476
12488
  &:hover {
@@ -12478,31 +12490,31 @@ var stylesFactory2 = (theme) => {
12478
12490
  }
12479
12491
  z-index: 4;
12480
12492
  `,
12481
- "dragHandle-position-top": u`
12493
+ "dragHandle-position-top": css`
12482
12494
  bottom: 0;
12483
12495
  width: 100%;
12484
12496
  height: 3px;
12485
12497
  cursor: ns-resize;
12486
12498
  `,
12487
- "dragHandle-position-bottom": u`
12499
+ "dragHandle-position-bottom": css`
12488
12500
  top: 0;
12489
12501
  width: 100%;
12490
12502
  height: 3px;
12491
12503
  cursor: ns-resize;
12492
12504
  `,
12493
- "dragHandle-position-right": u`
12505
+ "dragHandle-position-right": css`
12494
12506
  left: 0;
12495
12507
  width: 3px;
12496
12508
  height: 100%;
12497
12509
  cursor: ew-resize;
12498
12510
  `,
12499
- "dragHandle-position-left": u`
12511
+ "dragHandle-position-left": css`
12500
12512
  right: 0;
12501
12513
  width: 3px;
12502
12514
  height: 100%;
12503
12515
  cursor: ew-resize;
12504
12516
  `,
12505
- row: u`
12517
+ row: css`
12506
12518
  display: flex;
12507
12519
  justify-content: space-between;
12508
12520
  align-items: center;
@@ -12519,12 +12531,12 @@ var stylesFactory2 = (theme) => {
12519
12531
  flex-direction: column;
12520
12532
  }
12521
12533
  `,
12522
- logoAndToggleContainer: u`
12534
+ logoAndToggleContainer: css`
12523
12535
  display: flex;
12524
12536
  gap: ${tokens.size[3]};
12525
12537
  align-items: center;
12526
12538
  `,
12527
- logo: u`
12539
+ logo: css`
12528
12540
  cursor: pointer;
12529
12541
  display: flex;
12530
12542
  flex-direction: column;
@@ -12541,14 +12553,14 @@ var stylesFactory2 = (theme) => {
12541
12553
  outline: 2px solid ${colors.blue[800]};
12542
12554
  }
12543
12555
  `,
12544
- tanstackLogo: u`
12556
+ tanstackLogo: css`
12545
12557
  font-size: ${font.size.md};
12546
12558
  font-weight: ${font.weight.bold};
12547
12559
  line-height: ${font.lineHeight.xs};
12548
12560
  white-space: nowrap;
12549
12561
  color: ${t2(colors.gray[600], colors.gray[300])};
12550
12562
  `,
12551
- queryFlavorLogo: u`
12563
+ queryFlavorLogo: css`
12552
12564
  font-weight: ${font.weight.semibold};
12553
12565
  font-size: ${font.size.xs};
12554
12566
  background: linear-gradient(
@@ -12561,12 +12573,12 @@ var stylesFactory2 = (theme) => {
12561
12573
  -webkit-text-fill-color: transparent;
12562
12574
  white-space: nowrap;
12563
12575
  `,
12564
- queryStatusContainer: u`
12576
+ queryStatusContainer: css`
12565
12577
  display: flex;
12566
12578
  gap: ${tokens.size[2]};
12567
12579
  height: min-content;
12568
12580
  `,
12569
- queryStatusTag: u`
12581
+ queryStatusTag: css`
12570
12582
  display: flex;
12571
12583
  gap: ${tokens.size[1.5]};
12572
12584
  box-sizing: border-box;
@@ -12587,10 +12599,10 @@ var stylesFactory2 = (theme) => {
12587
12599
  outline: 2px solid ${colors.blue[800]};
12588
12600
  }
12589
12601
  `,
12590
- queryStatusTagLabel: u`
12602
+ queryStatusTagLabel: css`
12591
12603
  font-size: ${font.size.xs};
12592
12604
  `,
12593
- queryStatusCount: u`
12605
+ queryStatusCount: css`
12594
12606
  font-size: ${font.size.xs};
12595
12607
  padding: 0 5px;
12596
12608
  display: flex;
@@ -12602,7 +12614,7 @@ var stylesFactory2 = (theme) => {
12602
12614
  font-variant-numeric: tabular-nums;
12603
12615
  height: ${tokens.size[4.5]};
12604
12616
  `,
12605
- statusTooltip: u`
12617
+ statusTooltip: css`
12606
12618
  position: absolute;
12607
12619
  z-index: 1;
12608
12620
  background-color: ${t2(colors.gray[50], colors.darkGray[500])};
@@ -12642,7 +12654,7 @@ var stylesFactory2 = (theme) => {
12642
12654
  border-width: 7px;
12643
12655
  }
12644
12656
  `,
12645
- filtersContainer: u`
12657
+ filtersContainer: css`
12646
12658
  display: flex;
12647
12659
  gap: ${tokens.size[2]};
12648
12660
  & > button {
@@ -12671,7 +12683,7 @@ var stylesFactory2 = (theme) => {
12671
12683
  }
12672
12684
  }
12673
12685
  `,
12674
- filterInput: u`
12686
+ filterInput: css`
12675
12687
  padding: ${size2[0.5]} ${size2[2]};
12676
12688
  border-radius: ${tokens.border.radius.sm};
12677
12689
  background-color: ${t2(colors.gray[100], colors.darkGray[400])};
@@ -12710,7 +12722,7 @@ var stylesFactory2 = (theme) => {
12710
12722
  outline: 2px solid ${colors.blue[800]};
12711
12723
  }
12712
12724
  `,
12713
- filterSelect: u`
12725
+ filterSelect: css`
12714
12726
  padding: ${tokens.size[0.5]} ${tokens.size[2]};
12715
12727
  border-radius: ${tokens.border.radius.sm};
12716
12728
  background-color: ${t2(colors.gray[100], colors.darkGray[400])};
@@ -12744,11 +12756,11 @@ var stylesFactory2 = (theme) => {
12744
12756
  outline: 2px solid ${colors.blue[800]};
12745
12757
  }
12746
12758
  `,
12747
- actionsContainer: u`
12759
+ actionsContainer: css`
12748
12760
  display: flex;
12749
12761
  gap: ${tokens.size[2]};
12750
12762
  `,
12751
- actionsBtn: u`
12763
+ actionsBtn: css`
12752
12764
  border-radius: ${tokens.border.radius.sm};
12753
12765
  background-color: ${t2(colors.gray[100], colors.darkGray[400])};
12754
12766
  border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
@@ -12775,13 +12787,13 @@ var stylesFactory2 = (theme) => {
12775
12787
  outline: 2px solid ${colors.blue[800]};
12776
12788
  }
12777
12789
  `,
12778
- actionsBtnOffline: u`
12790
+ actionsBtnOffline: css`
12779
12791
  & svg {
12780
12792
  stroke: ${t2(colors.yellow[700], colors.yellow[500])};
12781
12793
  fill: ${t2(colors.yellow[700], colors.yellow[500])};
12782
12794
  }
12783
12795
  `,
12784
- overflowQueryContainer: u`
12796
+ overflowQueryContainer: css`
12785
12797
  flex: 1;
12786
12798
  overflow-y: auto;
12787
12799
  & > div {
@@ -12789,7 +12801,7 @@ var stylesFactory2 = (theme) => {
12789
12801
  flex-direction: column;
12790
12802
  }
12791
12803
  `,
12792
- queryRow: u`
12804
+ queryRow: css`
12793
12805
  display: flex;
12794
12806
  align-items: center;
12795
12807
  padding: 0;
@@ -12851,10 +12863,10 @@ var stylesFactory2 = (theme) => {
12851
12863
  font-size: ${font.size.xs};
12852
12864
  }
12853
12865
  `,
12854
- selectedQueryRow: u`
12866
+ selectedQueryRow: css`
12855
12867
  background-color: ${t2(colors.gray[200], colors.darkGray[500])};
12856
12868
  `,
12857
- detailsContainer: u`
12869
+ detailsContainer: css`
12858
12870
  flex: 1 1 700px;
12859
12871
  background-color: ${t2(colors.gray[50], colors.darkGray[700])};
12860
12872
  color: ${t2(colors.gray[700], colors.gray[300])};
@@ -12865,7 +12877,7 @@ var stylesFactory2 = (theme) => {
12865
12877
  display: flex;
12866
12878
  text-align: left;
12867
12879
  `,
12868
- detailsHeader: u`
12880
+ detailsHeader: css`
12869
12881
  font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
12870
12882
  position: sticky;
12871
12883
  top: 0;
@@ -12877,7 +12889,7 @@ var stylesFactory2 = (theme) => {
12877
12889
  line-height: ${font.lineHeight.xs};
12878
12890
  text-align: left;
12879
12891
  `,
12880
- detailsBody: u`
12892
+ detailsBody: css`
12881
12893
  margin: ${tokens.size[1.5]} 0px ${tokens.size[2]} 0px;
12882
12894
  & > div {
12883
12895
  display: flex;
@@ -12911,13 +12923,13 @@ var stylesFactory2 = (theme) => {
12911
12923
  align-items: center;
12912
12924
  }
12913
12925
  `,
12914
- queryDetailsStatus: u`
12926
+ queryDetailsStatus: css`
12915
12927
  border: 1px solid ${colors.darkGray[200]};
12916
12928
  border-radius: ${tokens.border.radius.sm};
12917
12929
  font-weight: ${font.weight.medium};
12918
12930
  padding: ${tokens.size[1]} ${tokens.size[2.5]};
12919
12931
  `,
12920
- actionsBody: u`
12932
+ actionsBody: css`
12921
12933
  flex-wrap: wrap;
12922
12934
  margin: ${tokens.size[2]} 0px ${tokens.size[2]} 0px;
12923
12935
  display: flex;
@@ -12957,7 +12969,7 @@ var stylesFactory2 = (theme) => {
12957
12969
  }
12958
12970
  }
12959
12971
  `,
12960
- actionsSelect: u`
12972
+ actionsSelect: css`
12961
12973
  font-size: ${font.size.xs};
12962
12974
  padding: ${tokens.size[0.5]} ${tokens.size[2]};
12963
12975
  display: flex;
@@ -13006,7 +13018,7 @@ var stylesFactory2 = (theme) => {
13006
13018
  height: ${tokens.size[2]};
13007
13019
  }
13008
13020
  `,
13009
- settingsMenu: u`
13021
+ settingsMenu: css`
13010
13022
  display: flex;
13011
13023
  & * {
13012
13024
  font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
@@ -13022,7 +13034,7 @@ var stylesFactory2 = (theme) => {
13022
13034
  min-width: 120px;
13023
13035
  padding: ${size2[0.5]};
13024
13036
  `,
13025
- settingsSubTrigger: u`
13037
+ settingsSubTrigger: css`
13026
13038
  display: flex;
13027
13039
  align-items: center;
13028
13040
  justify-content: space-between;
@@ -13050,14 +13062,14 @@ var stylesFactory2 = (theme) => {
13050
13062
  cursor: not-allowed;
13051
13063
  }
13052
13064
  `,
13053
- settingsMenuHeader: u`
13065
+ settingsMenuHeader: css`
13054
13066
  padding: ${tokens.size[1]} ${tokens.size[1]};
13055
13067
  font-weight: ${font.weight.medium};
13056
13068
  border-bottom: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
13057
13069
  color: ${t2(colors.gray[500], colors.gray[400])};
13058
13070
  font-size: ${font.size["xs"]};
13059
13071
  `,
13060
- settingsSubButton: u`
13072
+ settingsSubButton: css`
13061
13073
  display: flex;
13062
13074
  align-items: center;
13063
13075
  justify-content: space-between;
@@ -13079,7 +13091,7 @@ var stylesFactory2 = (theme) => {
13079
13091
  outline: 2px solid ${colors.blue[800]};
13080
13092
  }
13081
13093
  `,
13082
- themeSelectedButton: u`
13094
+ themeSelectedButton: css`
13083
13095
  background-color: ${t2(colors.purple[100], colors.purple[900])};
13084
13096
  color: ${t2(colors.purple[700], colors.purple[300])};
13085
13097
  & svg {
@@ -13089,7 +13101,7 @@ var stylesFactory2 = (theme) => {
13089
13101
  background-color: ${t2(colors.purple[100], colors.purple[900])};
13090
13102
  }
13091
13103
  `,
13092
- viewToggle: u`
13104
+ viewToggle: css`
13093
13105
  border-radius: ${tokens.border.radius.sm};
13094
13106
  background-color: ${t2(colors.gray[200], colors.darkGray[600])};
13095
13107
  border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
@@ -13141,8 +13153,8 @@ var stylesFactory2 = (theme) => {
13141
13153
  `
13142
13154
  };
13143
13155
  };
13144
- var lightStyles2 = stylesFactory2("light");
13145
- var darkStyles2 = stylesFactory2("dark");
13156
+ var lightStyles2 = (css) => stylesFactory2("light", css);
13157
+ var darkStyles2 = (css) => stylesFactory2("dark", css);
13146
13158
  export {
13147
13159
  Devtools_default as default
13148
13160
  };