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