@tanstack/query-devtools 5.23.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.
@@ -1,4 +1,4 @@
1
- import { createContext, delegateEvents, sortFns, mutationSortFns, createSignal, $PROXY, $TRACK, getListener, batch, getPreferredColorScheme, createMemo, createComponent, createEffect, onMount, onCleanup, Show, Portal, use, insert, createRenderEffect, className, on, setAttribute, getQueryStatusColor, getMutationStatusColor, getQueryStatusLabel, spread, mergeProps, getQueryStatusColorByLabel, displayValue, For, isServer, createUniqueId, useContext, Index, updateNestedDataByPath, template, convertRemToPixels, getSidedProp, untrack, useTransition, createRoot, splitProps, addEventListener, stringify, Switch, Match, deleteNestedDataByPath, Dynamic, children, createComputed, getOwner, DEV } from '../chunk/O2PITFF6.js';
1
+ import { createContext, delegateEvents, sortFns, mutationSortFns, createSignal, $PROXY, $TRACK, getListener, batch, getPreferredColorScheme, createMemo, createComponent, createEffect, onMount, onCleanup, Show, Portal, use, insert, createRenderEffect, className, on, setAttribute, getQueryStatusColor, getMutationStatusColor, getQueryStatusLabel, spread, mergeProps, getQueryStatusColorByLabel, displayValue, For, isServer, createUniqueId, useContext, Index, updateNestedDataByPath, template, convertRemToPixels, getSidedProp, untrack, useTransition, createRoot, splitProps, addEventListener, stringify, Switch, Match, deleteNestedDataByPath, clearDelegatedEvents, Dynamic, children, createComputed, getOwner, DEV } from '../chunk/BWUNFN7M.js';
2
2
 
3
3
  // ../../node_modules/.pnpm/@tanstack+match-sorter-utils@8.11.8/node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs
4
4
  var characterMap = {
@@ -8836,7 +8836,8 @@ var QueryDevtoolsContext = createContext({
8836
8836
  client: void 0,
8837
8837
  onlineManager: void 0,
8838
8838
  queryFlavor: "",
8839
- version: ""
8839
+ version: "",
8840
+ shadowDOMTarget: void 0
8840
8841
  });
8841
8842
  function useQueryDevtoolsContext() {
8842
8843
  return useContext(QueryDevtoolsContext);
@@ -8903,7 +8904,6 @@ var CopyButton = (props) => {
8903
8904
  setCopyState("NoCopy");
8904
8905
  }, 1500);
8905
8906
  }, (err) => {
8906
- console.error("Failed to copy: ", err);
8907
8907
  setCopyState("ErrorCopy");
8908
8908
  setTimeout(() => {
8909
8909
  setCopyState("NoCopy");
@@ -9552,13 +9552,17 @@ var PiPProvider = (props) => {
9552
9552
  if (pipWindow() != null) {
9553
9553
  return;
9554
9554
  }
9555
- const pip = window.open("", "", `width=${width},height=${height},popup`);
9555
+ const pip = window.open("", "TSQD-Devtools-Panel", `width=${width},height=${height},popup`);
9556
9556
  if (!pip) {
9557
9557
  throw new Error("Failed to open popup. Please allow popups for this site to view the devtools in picture-in-picture mode.");
9558
9558
  }
9559
+ pip.document.head.innerHTML = "";
9560
+ pip.document.body.innerHTML = "";
9561
+ clearDelegatedEvents(pip.document);
9559
9562
  pip.document.title = "TanStack Query Devtools";
9560
9563
  pip.document.body.style.margin = "0";
9561
9564
  pip.addEventListener("pagehide", () => {
9565
+ props.setLocalStore("pip_open", "false");
9562
9566
  setPipWindow(null);
9563
9567
  });
9564
9568
  [...document.styleSheets].forEach((styleSheet) => {
@@ -9588,23 +9592,21 @@ var PiPProvider = (props) => {
9588
9592
  }
9589
9593
  });
9590
9594
  delegateEvents(["focusin", "focusout", "pointermove", "keydown", "pointerdown", "pointerup", "click", "mousedown", "input"], pip.document);
9595
+ props.setLocalStore("pip_open", "true");
9591
9596
  setPipWindow(pip);
9592
9597
  };
9593
9598
  createEffect(() => {
9594
- const closePipWindowOnUnload = () => {
9595
- closePipWindow();
9596
- };
9597
- window.addEventListener("beforeunload", closePipWindowOnUnload);
9598
- onCleanup(() => {
9599
- window.removeEventListener("beforeunload", closePipWindowOnUnload);
9600
- });
9599
+ const pip_open = props.localStore.pip_open ?? "false";
9600
+ if (pip_open === "true") {
9601
+ requestPipWindow(Number(window.innerWidth), Number(props.localStore.height || DEFAULT_HEIGHT));
9602
+ }
9601
9603
  });
9602
9604
  createEffect(() => {
9603
- const gooberStyles = document.getElementById("_goober");
9605
+ const gooberStyles = (useQueryDevtoolsContext().shadowDOMTarget || document).querySelector("#_goober");
9604
9606
  const w = pipWindow();
9605
9607
  if (gooberStyles && w) {
9606
9608
  const observer = new MutationObserver(() => {
9607
- const pip_style = w.document.getElementById("_goober");
9609
+ const pip_style = (useQueryDevtoolsContext().shadowDOMTarget || w.document).querySelector("#_goober");
9608
9610
  if (pip_style) {
9609
9611
  pip_style.textContent = gooberStyles.textContent;
9610
9612
  }
@@ -9659,6 +9661,8 @@ var DevtoolsComponent = (props) => {
9659
9661
  value: props,
9660
9662
  get children() {
9661
9663
  return createComponent(PiPProvider, {
9664
+ localStore,
9665
+ setLocalStore,
9662
9666
  get children() {
9663
9667
  return createComponent(ThemeContext.Provider, {
9664
9668
  value: theme,
@@ -9677,8 +9681,11 @@ var DevtoolsComponent = (props) => {
9677
9681
  var Devtools_default = DevtoolsComponent;
9678
9682
  var Devtools = (props) => {
9679
9683
  const theme = useTheme();
9684
+ const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
9685
+ target: useQueryDevtoolsContext().shadowDOMTarget
9686
+ }) : u;
9680
9687
  const styles = createMemo(() => {
9681
- return theme() === "dark" ? darkStyles2 : lightStyles2;
9688
+ return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
9682
9689
  });
9683
9690
  const pip = usePiPWindow();
9684
9691
  const buttonPosition = createMemo(() => {
@@ -9711,9 +9718,10 @@ var Devtools = (props) => {
9711
9718
  window.removeEventListener("focus", onFocus);
9712
9719
  });
9713
9720
  });
9721
+ const pip_open = createMemo(() => props.localStore.pip_open ?? "false");
9714
9722
  return [createComponent(Show, {
9715
9723
  get when() {
9716
- return pip().pipWindow;
9724
+ return createMemo(() => !!pip().pipWindow)() && pip_open() == "true";
9717
9725
  },
9718
9726
  get children() {
9719
9727
  return createComponent(Portal, {
@@ -9745,7 +9753,7 @@ var Devtools = (props) => {
9745
9753
  get children() {
9746
9754
  return createComponent(Show, {
9747
9755
  get when() {
9748
- return createMemo(() => !!isOpen())() && !pip().pipWindow;
9756
+ return createMemo(() => !!(isOpen() && !pip().pipWindow))() && pip_open() == "false";
9749
9757
  },
9750
9758
  get children() {
9751
9759
  return createComponent(DevtoolsPanel, {
@@ -9778,7 +9786,7 @@ var Devtools = (props) => {
9778
9786
  });
9779
9787
  }
9780
9788
  }), null);
9781
- createRenderEffect(() => className(_el$, clsx(u`
9789
+ createRenderEffect(() => className(_el$, clsx(css`
9782
9790
  & .tsqd-panel-transition-exit-active,
9783
9791
  & .tsqd-panel-transition-enter-active {
9784
9792
  transition:
@@ -9811,8 +9819,11 @@ var Devtools = (props) => {
9811
9819
  var PiPPanel = (props) => {
9812
9820
  const pip = usePiPWindow();
9813
9821
  const theme = useTheme();
9822
+ const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
9823
+ target: useQueryDevtoolsContext().shadowDOMTarget
9824
+ }) : u;
9814
9825
  const styles = createMemo(() => {
9815
- return theme() === "dark" ? darkStyles2 : lightStyles2;
9826
+ return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
9816
9827
  });
9817
9828
  const getPanelDynamicStyles = () => {
9818
9829
  const {
@@ -9820,12 +9831,12 @@ var PiPPanel = (props) => {
9820
9831
  } = tokens;
9821
9832
  const t2 = (light, dark) => theme() === "dark" ? dark : light;
9822
9833
  if (panelWidth() < secondBreakpoint) {
9823
- return u`
9834
+ return css`
9824
9835
  flex-direction: column;
9825
9836
  background-color: ${t2(colors.gray[300], colors.gray[600])};
9826
9837
  `;
9827
9838
  }
9828
- return u`
9839
+ return css`
9829
9840
  flex-direction: row;
9830
9841
  background-color: ${t2(colors.gray[200], colors.darkGray[900])};
9831
9842
  `;
@@ -9839,6 +9850,7 @@ var PiPPanel = (props) => {
9839
9850
  };
9840
9851
  if (win) {
9841
9852
  win.addEventListener("resize", resizeCB);
9853
+ resizeCB();
9842
9854
  }
9843
9855
  onCleanup(() => {
9844
9856
  if (win) {
@@ -9854,7 +9866,7 @@ var PiPPanel = (props) => {
9854
9866
  _el$5.style.setProperty("width", "100vw");
9855
9867
  insert(_el$5, () => props.children);
9856
9868
  createRenderEffect(() => className(_el$5, clsx(styles().panel, getPanelDynamicStyles(), {
9857
- [u`
9869
+ [css`
9858
9870
  min-width: min-content;
9859
9871
  `]: panelWidth() < thirdBreakpoint
9860
9872
  }, "tsqd-main-panel")));
@@ -9863,8 +9875,11 @@ var PiPPanel = (props) => {
9863
9875
  };
9864
9876
  var DevtoolsPanel = (props) => {
9865
9877
  const theme = useTheme();
9878
+ const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
9879
+ target: useQueryDevtoolsContext().shadowDOMTarget
9880
+ }) : u;
9866
9881
  const styles = createMemo(() => {
9867
- return theme() === "dark" ? darkStyles2 : lightStyles2;
9882
+ return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
9868
9883
  });
9869
9884
  const [isResizing, setIsResizing] = createSignal(false);
9870
9885
  const position = createMemo(() => props.localStore.position || useQueryDevtoolsContext().position || POSITION);
@@ -9958,12 +9973,12 @@ var DevtoolsPanel = (props) => {
9958
9973
  } = tokens;
9959
9974
  const t2 = (light, dark) => theme() === "dark" ? dark : light;
9960
9975
  if (panelWidth() < secondBreakpoint) {
9961
- return u`
9976
+ return css`
9962
9977
  flex-direction: column;
9963
9978
  background-color: ${t2(colors.gray[300], colors.gray[600])};
9964
9979
  `;
9965
9980
  }
9966
- return u`
9981
+ return css`
9967
9982
  flex-direction: row;
9968
9983
  background-color: ${t2(colors.gray[200], colors.darkGray[900])};
9969
9984
  `;
@@ -9985,7 +10000,7 @@ var DevtoolsPanel = (props) => {
9985
10000
  }), null);
9986
10001
  createRenderEffect((_p$) => {
9987
10002
  const _v$ = clsx(styles().panel, styles()[`panel-position-${position()}`], getPanelDynamicStyles(), {
9988
- [u`
10003
+ [css`
9989
10004
  min-width: min-content;
9990
10005
  `]: panelWidth() < thirdBreakpoint && (position() === "right" || position() === "left")
9991
10006
  }, "tsqd-main-panel"), _v$2 = position() === "bottom" || position() === "top" ? `${props.localStore.height || DEFAULT_HEIGHT}px` : "auto", _v$3 = position() === "right" || position() === "left" ? `${props.localStore.width || DEFAULT_WIDTH}px` : "auto", _v$4 = clsx(styles().dragHandle, styles()[`dragHandle-position-${position()}`], "tsqd-drag-handle"), _v$5 = clsx(styles().closeBtn, styles()[`closeBtn-position-${position()}`], "tsqd-minimize-btn");
@@ -10010,8 +10025,11 @@ var ContentView = (props) => {
10010
10025
  setupMutationCacheSubscription();
10011
10026
  let containerRef;
10012
10027
  const theme = useTheme();
10028
+ const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
10029
+ target: useQueryDevtoolsContext().shadowDOMTarget
10030
+ }) : u;
10013
10031
  const styles = createMemo(() => {
10014
- return theme() === "dark" ? darkStyles2 : lightStyles2;
10032
+ return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
10015
10033
  });
10016
10034
  const pip = usePiPWindow();
10017
10035
  const [selectedView, setSelectedView] = createSignal("queries");
@@ -10442,10 +10460,10 @@ var ContentView = (props) => {
10442
10460
  }
10443
10461
  }), null);
10444
10462
  createRenderEffect((_p$) => {
10445
- const _v$6 = clsx(styles().queriesContainer, panelWidth() < secondBreakpoint && (selectedQueryHash() || selectedMutationId()) && u`
10463
+ const _v$6 = clsx(styles().queriesContainer, panelWidth() < secondBreakpoint && (selectedQueryHash() || selectedMutationId()) && css`
10446
10464
  height: 50%;
10447
10465
  max-height: 50%;
10448
- `, panelWidth() < secondBreakpoint && !(selectedQueryHash() || selectedMutationId()) && u`
10466
+ `, panelWidth() < secondBreakpoint && !(selectedQueryHash() || selectedMutationId()) && css`
10449
10467
  height: 100%;
10450
10468
  max-height: 100%;
10451
10469
  `, "tsqd-queries-container"), _v$7 = clsx(styles().row, "tsqd-header"), _v$8 = styles().logoAndToggleContainer, _v$9 = clsx(styles().logo, "tsqd-text-logo-container"), _v$10 = clsx(styles().tanstackLogo, "tsqd-text-logo-tanstack"), _v$11 = clsx(styles().queryFlavorLogo, "tsqd-text-logo-query-flavor"), _v$12 = clsx(styles().row, "tsqd-filters-actions-container"), _v$13 = clsx(styles().filtersContainer, "tsqd-filters-container"), _v$14 = clsx(styles().filterInput, "tsqd-query-filter-textfield-container"), _v$15 = clsx("tsqd-query-filter-textfield"), _v$16 = clsx(styles().filterSelect, "tsqd-query-filter-sort-container"), _v$17 = `Sort order ${(selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1 ? "descending" : "ascending"}`, _v$18 = (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1, _v$19 = clsx(styles().actionsContainer, "tsqd-actions-container"), _v$20 = clsx(styles().actionsBtn, "tsqd-actions-btn", "tsqd-action-clear-cache"), _v$21 = `Clear ${selectedView()} cache`, _v$22 = clsx(styles().actionsBtn, offline() && styles().actionsBtnOffline, "tsqd-actions-btn", "tsqd-action-mock-offline-behavior"), _v$23 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, _v$24 = offline(), _v$25 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`;
@@ -10512,8 +10530,11 @@ var ContentView = (props) => {
10512
10530
  };
10513
10531
  var QueryRow = (props) => {
10514
10532
  const theme = useTheme();
10533
+ const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
10534
+ target: useQueryDevtoolsContext().shadowDOMTarget
10535
+ }) : u;
10515
10536
  const styles = createMemo(() => {
10516
- return theme() === "dark" ? darkStyles2 : lightStyles2;
10537
+ return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
10517
10538
  });
10518
10539
  const {
10519
10540
  colors,
@@ -10539,12 +10560,12 @@ var QueryRow = (props) => {
10539
10560
  }));
10540
10561
  const getObserverCountColorStyles = () => {
10541
10562
  if (color() === "gray") {
10542
- return u`
10563
+ return css`
10543
10564
  background-color: ${t2(colors[color()][200], colors[color()][700])};
10544
10565
  color: ${t2(colors[color()][700], colors[color()][300])};
10545
10566
  `;
10546
10567
  }
10547
- return u`
10568
+ return css`
10548
10569
  background-color: ${t2(colors[color()][200] + alpha[80], colors[color()][900])};
10549
10570
  color: ${t2(colors[color()][800], colors[color()][300])};
10550
10571
  `;
@@ -10583,8 +10604,11 @@ var QueryRow = (props) => {
10583
10604
  };
10584
10605
  var MutationRow = (props) => {
10585
10606
  const theme = useTheme();
10607
+ const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
10608
+ target: useQueryDevtoolsContext().shadowDOMTarget
10609
+ }) : u;
10586
10610
  const styles = createMemo(() => {
10587
- return theme() === "dark" ? darkStyles2 : lightStyles2;
10611
+ return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
10588
10612
  });
10589
10613
  const {
10590
10614
  colors,
@@ -10616,12 +10640,12 @@ var MutationRow = (props) => {
10616
10640
  }));
10617
10641
  const getObserverCountColorStyles = () => {
10618
10642
  if (color() === "gray") {
10619
- return u`
10643
+ return css`
10620
10644
  background-color: ${t2(colors[color()][200], colors[color()][700])};
10621
10645
  color: ${t2(colors[color()][700], colors[color()][300])};
10622
10646
  `;
10623
10647
  }
10624
- return u`
10648
+ return css`
10625
10649
  background-color: ${t2(colors[color()][200] + alpha[80], colors[color()][900])};
10626
10650
  color: ${t2(colors[color()][800], colors[color()][300])};
10627
10651
  `;
@@ -10698,8 +10722,11 @@ var QueryStatusCount = () => {
10698
10722
  const paused = createSubscribeToQueryCacheBatcher((queryCache) => queryCache().getAll().filter((q) => getQueryStatusLabel(q) === "paused").length);
10699
10723
  const inactive = createSubscribeToQueryCacheBatcher((queryCache) => queryCache().getAll().filter((q) => getQueryStatusLabel(q) === "inactive").length);
10700
10724
  const theme = useTheme();
10725
+ const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
10726
+ target: useQueryDevtoolsContext().shadowDOMTarget
10727
+ }) : u;
10701
10728
  const styles = createMemo(() => {
10702
- return theme() === "dark" ? darkStyles2 : lightStyles2;
10729
+ return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
10703
10730
  });
10704
10731
  return (() => {
10705
10732
  const _el$55 = _tmpl$26();
@@ -10760,8 +10787,11 @@ var MutationStatusCount = () => {
10760
10787
  status: m.state.status
10761
10788
  }) === "red").length);
10762
10789
  const theme = useTheme();
10790
+ const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
10791
+ target: useQueryDevtoolsContext().shadowDOMTarget
10792
+ }) : u;
10763
10793
  const styles = createMemo(() => {
10764
- return theme() === "dark" ? darkStyles2 : lightStyles2;
10794
+ return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
10765
10795
  });
10766
10796
  return (() => {
10767
10797
  const _el$56 = _tmpl$26();
@@ -10799,8 +10829,11 @@ var MutationStatusCount = () => {
10799
10829
  };
10800
10830
  var QueryStatus = (props) => {
10801
10831
  const theme = useTheme();
10832
+ const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
10833
+ target: useQueryDevtoolsContext().shadowDOMTarget
10834
+ }) : u;
10802
10835
  const styles = createMemo(() => {
10803
- return theme() === "dark" ? darkStyles2 : lightStyles2;
10836
+ return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
10804
10837
  });
10805
10838
  const {
10806
10839
  colors,
@@ -10837,7 +10870,7 @@ var QueryStatus = (props) => {
10837
10870
  return showLabel();
10838
10871
  },
10839
10872
  get ["class"]() {
10840
- return clsx(styles().queryStatusTag, !showLabel() && u`
10873
+ return clsx(styles().queryStatusTag, !showLabel() && css`
10841
10874
  cursor: pointer;
10842
10875
  &:hover {
10843
10876
  background: ${t2(colors.gray[200], colors.darkGray[400])}${alpha[80]};
@@ -10871,12 +10904,12 @@ var QueryStatus = (props) => {
10871
10904
  }), _el$61);
10872
10905
  insert(_el$61, () => props.count);
10873
10906
  createRenderEffect((_p$) => {
10874
- const _v$32 = clsx(u`
10907
+ const _v$32 = clsx(css`
10875
10908
  width: ${tokens.size[1.5]};
10876
10909
  height: ${tokens.size[1.5]};
10877
10910
  border-radius: ${tokens.border.radius.full};
10878
10911
  background-color: ${tokens.colors[props.color][500]};
10879
- `, "tsqd-query-status-tag-dot"), _v$33 = clsx(styles().queryStatusCount, props.count > 0 && props.color !== "gray" && u`
10912
+ `, "tsqd-query-status-tag-dot"), _v$33 = clsx(styles().queryStatusCount, props.count > 0 && props.color !== "gray" && css`
10880
10913
  background-color: ${t2(colors[props.color][100], colors[props.color][900])};
10881
10914
  color: ${t2(colors[props.color][700], colors[props.color][300])};
10882
10915
  `, "tsqd-query-status-tag-count");
@@ -10892,8 +10925,11 @@ var QueryStatus = (props) => {
10892
10925
  };
10893
10926
  var QueryDetails = () => {
10894
10927
  const theme = useTheme();
10928
+ const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
10929
+ target: useQueryDevtoolsContext().shadowDOMTarget
10930
+ }) : u;
10895
10931
  const styles = createMemo(() => {
10896
- return theme() === "dark" ? darkStyles2 : lightStyles2;
10932
+ return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
10897
10933
  });
10898
10934
  const {
10899
10935
  colors
@@ -10956,13 +10992,13 @@ var QueryDetails = () => {
10956
10992
  });
10957
10993
  const getQueryStatusColors = () => {
10958
10994
  if (color() === "gray") {
10959
- return u`
10995
+ return css`
10960
10996
  background-color: ${t2(colors[color()][200], colors[color()][700])};
10961
10997
  color: ${t2(colors[color()][700], colors[color()][300])};
10962
10998
  border-color: ${t2(colors[color()][400], colors[color()][600])};
10963
10999
  `;
10964
11000
  }
10965
- return u`
11001
+ return css`
10966
11002
  background-color: ${t2(colors[color()][100], colors[color()][900])};
10967
11003
  color: ${t2(colors[color()][700], colors[color()][300])};
10968
11004
  border-color: ${t2(colors[color()][400], colors[color()][600])};
@@ -11028,9 +11064,9 @@ var QueryDetails = () => {
11028
11064
  };
11029
11065
  insert(_el$88, () => queryStatus() === "error" ? "Restore" : "Trigger", _el$90);
11030
11066
  createRenderEffect((_p$) => {
11031
- const _v$34 = clsx(u`
11067
+ const _v$34 = clsx(css`
11032
11068
  color: ${t2(colors.red[500], colors.red[400])};
11033
- `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), _v$35 = queryStatus() === "pending", _v$36 = u`
11069
+ `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), _v$35 = queryStatus() === "pending", _v$36 = css`
11034
11070
  background-color: ${t2(colors.red[500], colors.red[400])};
11035
11071
  `;
11036
11072
  _v$34 !== _p$._v$34 && className(_el$88, _p$._v$34 = _v$34);
@@ -11068,7 +11104,7 @@ var QueryDetails = () => {
11068
11104
  }), null);
11069
11105
  insert(_el$91, createComponent(ChevronDown, {}), null);
11070
11106
  createRenderEffect((_p$) => {
11071
- const _v$37 = clsx(styles().actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), _v$38 = u`
11107
+ const _v$37 = clsx(styles().actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), _v$38 = css`
11072
11108
  background-color: ${tokens.colors.red[400]};
11073
11109
  `, _v$39 = queryStatus() === "pending";
11074
11110
  _v$37 !== _p$._v$37 && className(_el$91, _p$._v$37 = _v$37);
@@ -11102,25 +11138,25 @@ var QueryDetails = () => {
11102
11138
  }
11103
11139
  }));
11104
11140
  createRenderEffect((_p$) => {
11105
- const _v$40 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$41 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$42 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$43 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$44 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$45 = clsx(styles().actionsBody, "tsqd-query-details-actions-container"), _v$46 = clsx(u`
11141
+ const _v$40 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$41 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$42 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$43 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$44 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$45 = clsx(styles().actionsBody, "tsqd-query-details-actions-container"), _v$46 = clsx(css`
11106
11142
  color: ${t2(colors.blue[600], colors.blue[400])};
11107
- `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-refetch"), _v$47 = statusLabel() === "fetching", _v$48 = u`
11143
+ `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-refetch"), _v$47 = statusLabel() === "fetching", _v$48 = css`
11108
11144
  background-color: ${t2(colors.blue[600], colors.blue[400])};
11109
- `, _v$49 = clsx(u`
11145
+ `, _v$49 = clsx(css`
11110
11146
  color: ${t2(colors.yellow[600], colors.yellow[400])};
11111
- `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-invalidate"), _v$50 = queryStatus() === "pending", _v$51 = u`
11147
+ `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-invalidate"), _v$50 = queryStatus() === "pending", _v$51 = css`
11112
11148
  background-color: ${t2(colors.yellow[600], colors.yellow[400])};
11113
- `, _v$52 = clsx(u`
11149
+ `, _v$52 = clsx(css`
11114
11150
  color: ${t2(colors.gray[600], colors.gray[300])};
11115
- `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-reset"), _v$53 = queryStatus() === "pending", _v$54 = u`
11151
+ `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-reset"), _v$53 = queryStatus() === "pending", _v$54 = css`
11116
11152
  background-color: ${t2(colors.gray[600], colors.gray[400])};
11117
- `, _v$55 = clsx(u`
11153
+ `, _v$55 = clsx(css`
11118
11154
  color: ${t2(colors.pink[500], colors.pink[400])};
11119
- `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-remove"), _v$56 = statusLabel() === "fetching", _v$57 = u`
11155
+ `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-remove"), _v$56 = statusLabel() === "fetching", _v$57 = css`
11120
11156
  background-color: ${t2(colors.pink[500], colors.pink[400])};
11121
- `, _v$58 = clsx(u`
11157
+ `, _v$58 = clsx(css`
11122
11158
  color: ${t2(colors.cyan[500], colors.cyan[400])};
11123
- `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), _v$59 = restoringLoading(), _v$60 = u`
11159
+ `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), _v$59 = restoringLoading(), _v$60 = css`
11124
11160
  background-color: ${t2(colors.cyan[500], colors.cyan[400])};
11125
11161
  `, _v$61 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$62 = tokens.size[2], _v$63 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$64 = tokens.size[2];
11126
11162
  _v$40 !== _p$._v$40 && className(_el$62, _p$._v$40 = _v$40);
@@ -11182,8 +11218,11 @@ var QueryDetails = () => {
11182
11218
  };
11183
11219
  var MutationDetails = () => {
11184
11220
  const theme = useTheme();
11221
+ const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
11222
+ target: useQueryDevtoolsContext().shadowDOMTarget
11223
+ }) : u;
11185
11224
  const styles = createMemo(() => {
11186
- return theme() === "dark" ? darkStyles2 : lightStyles2;
11225
+ return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
11187
11226
  });
11188
11227
  const {
11189
11228
  colors
@@ -11210,13 +11249,13 @@ var MutationDetails = () => {
11210
11249
  const activeMutation = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().find((mutation) => mutation.mutationId === selectedMutationId()), false);
11211
11250
  const getQueryStatusColors = () => {
11212
11251
  if (color() === "gray") {
11213
- return u`
11252
+ return css`
11214
11253
  background-color: ${t2(colors[color()][200], colors[color()][700])};
11215
11254
  color: ${t2(colors[color()][700], colors[color()][300])};
11216
11255
  border-color: ${t2(colors[color()][400], colors[color()][600])};
11217
11256
  `;
11218
11257
  }
11219
- return u`
11258
+ return css`
11220
11259
  background-color: ${t2(colors[color()][100], colors[color()][900])};
11221
11260
  color: ${t2(colors[color()][700], colors[color()][300])};
11222
11261
  border-color: ${t2(colors[color()][400], colors[color()][600])};
@@ -11390,7 +11429,7 @@ var createSubscribeToMutationCacheBatcher = (callback, equalityCheck = true) =>
11390
11429
  });
11391
11430
  return value;
11392
11431
  };
11393
- var stylesFactory2 = (theme) => {
11432
+ var stylesFactory2 = (theme, css) => {
11394
11433
  const {
11395
11434
  colors,
11396
11435
  font,
@@ -11401,7 +11440,7 @@ var stylesFactory2 = (theme) => {
11401
11440
  } = tokens;
11402
11441
  const t2 = (light, dark) => theme === "light" ? light : dark;
11403
11442
  return {
11404
- devtoolsBtn: u`
11443
+ devtoolsBtn: css`
11405
11444
  z-index: 100000;
11406
11445
  position: fixed;
11407
11446
  padding: 4px;
@@ -11455,7 +11494,7 @@ var stylesFactory2 = (theme) => {
11455
11494
  }
11456
11495
  }
11457
11496
  `,
11458
- panel: u`
11497
+ panel: css`
11459
11498
  position: fixed;
11460
11499
  z-index: 9999;
11461
11500
  display: flex;
@@ -11481,26 +11520,26 @@ var stylesFactory2 = (theme) => {
11481
11520
  background: ${t2(colors.gray[400], colors.darkGray[300])};
11482
11521
  }
11483
11522
  `,
11484
- "devtoolsBtn-position-bottom-right": u`
11523
+ "devtoolsBtn-position-bottom-right": css`
11485
11524
  bottom: 12px;
11486
11525
  right: 12px;
11487
11526
  `,
11488
- "devtoolsBtn-position-bottom-left": u`
11527
+ "devtoolsBtn-position-bottom-left": css`
11489
11528
  bottom: 12px;
11490
11529
  left: 12px;
11491
11530
  `,
11492
- "devtoolsBtn-position-top-left": u`
11531
+ "devtoolsBtn-position-top-left": css`
11493
11532
  top: 12px;
11494
11533
  left: 12px;
11495
11534
  `,
11496
- "devtoolsBtn-position-top-right": u`
11535
+ "devtoolsBtn-position-top-right": css`
11497
11536
  top: 12px;
11498
11537
  right: 12px;
11499
11538
  `,
11500
- "devtoolsBtn-position-relative": u`
11539
+ "devtoolsBtn-position-relative": css`
11501
11540
  position: relative;
11502
11541
  `,
11503
- "panel-position-top": u`
11542
+ "panel-position-top": css`
11504
11543
  top: 0;
11505
11544
  right: 0;
11506
11545
  left: 0;
@@ -11508,7 +11547,7 @@ var stylesFactory2 = (theme) => {
11508
11547
  min-height: ${size2[14]};
11509
11548
  border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11510
11549
  `,
11511
- "panel-position-bottom": u`
11550
+ "panel-position-bottom": css`
11512
11551
  bottom: 0;
11513
11552
  right: 0;
11514
11553
  left: 0;
@@ -11516,21 +11555,21 @@ var stylesFactory2 = (theme) => {
11516
11555
  min-height: ${size2[14]};
11517
11556
  border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11518
11557
  `,
11519
- "panel-position-right": u`
11558
+ "panel-position-right": css`
11520
11559
  bottom: 0;
11521
11560
  right: 0;
11522
11561
  top: 0;
11523
11562
  border-left: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11524
11563
  max-width: 90%;
11525
11564
  `,
11526
- "panel-position-left": u`
11565
+ "panel-position-left": css`
11527
11566
  bottom: 0;
11528
11567
  left: 0;
11529
11568
  top: 0;
11530
11569
  border-right: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11531
11570
  max-width: 90%;
11532
11571
  `,
11533
- closeBtn: u`
11572
+ closeBtn: css`
11534
11573
  position: absolute;
11535
11574
  cursor: pointer;
11536
11575
  z-index: 5;
@@ -11551,7 +11590,7 @@ var stylesFactory2 = (theme) => {
11551
11590
  height: ${size2[2]};
11552
11591
  }
11553
11592
  `,
11554
- "closeBtn-position-top": u`
11593
+ "closeBtn-position-top": css`
11555
11594
  bottom: 0;
11556
11595
  right: ${size2[2]};
11557
11596
  transform: translate(0, 100%);
@@ -11575,7 +11614,7 @@ var stylesFactory2 = (theme) => {
11575
11614
  transform: rotate(180deg);
11576
11615
  }
11577
11616
  `,
11578
- "closeBtn-position-bottom": u`
11617
+ "closeBtn-position-bottom": css`
11579
11618
  top: 0;
11580
11619
  right: ${size2[2]};
11581
11620
  transform: translate(0, -100%);
@@ -11595,7 +11634,7 @@ var stylesFactory2 = (theme) => {
11595
11634
  width: calc(100% + ${size2[5]});
11596
11635
  }
11597
11636
  `,
11598
- "closeBtn-position-right": u`
11637
+ "closeBtn-position-right": css`
11599
11638
  bottom: ${size2[2]};
11600
11639
  left: 0;
11601
11640
  transform: translate(-100%, 0);
@@ -11618,7 +11657,7 @@ var stylesFactory2 = (theme) => {
11618
11657
  transform: rotate(-90deg);
11619
11658
  }
11620
11659
  `,
11621
- "closeBtn-position-left": u`
11660
+ "closeBtn-position-left": css`
11622
11661
  bottom: ${size2[2]};
11623
11662
  right: 0;
11624
11663
  transform: translate(100%, 0);
@@ -11641,7 +11680,7 @@ var stylesFactory2 = (theme) => {
11641
11680
  transform: rotate(90deg);
11642
11681
  }
11643
11682
  `,
11644
- queriesContainer: u`
11683
+ queriesContainer: css`
11645
11684
  flex: 1 1 700px;
11646
11685
  background-color: ${t2(colors.gray[50], colors.darkGray[700])};
11647
11686
  display: flex;
@@ -11650,7 +11689,7 @@ var stylesFactory2 = (theme) => {
11650
11689
  font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
11651
11690
  }
11652
11691
  `,
11653
- dragHandle: u`
11692
+ dragHandle: css`
11654
11693
  position: absolute;
11655
11694
  transition: background-color 0.125s ease;
11656
11695
  &:hover {
@@ -11658,31 +11697,31 @@ var stylesFactory2 = (theme) => {
11658
11697
  }
11659
11698
  z-index: 4;
11660
11699
  `,
11661
- "dragHandle-position-top": u`
11700
+ "dragHandle-position-top": css`
11662
11701
  bottom: 0;
11663
11702
  width: 100%;
11664
11703
  height: 3px;
11665
11704
  cursor: ns-resize;
11666
11705
  `,
11667
- "dragHandle-position-bottom": u`
11706
+ "dragHandle-position-bottom": css`
11668
11707
  top: 0;
11669
11708
  width: 100%;
11670
11709
  height: 3px;
11671
11710
  cursor: ns-resize;
11672
11711
  `,
11673
- "dragHandle-position-right": u`
11712
+ "dragHandle-position-right": css`
11674
11713
  left: 0;
11675
11714
  width: 3px;
11676
11715
  height: 100%;
11677
11716
  cursor: ew-resize;
11678
11717
  `,
11679
- "dragHandle-position-left": u`
11718
+ "dragHandle-position-left": css`
11680
11719
  right: 0;
11681
11720
  width: 3px;
11682
11721
  height: 100%;
11683
11722
  cursor: ew-resize;
11684
11723
  `,
11685
- row: u`
11724
+ row: css`
11686
11725
  display: flex;
11687
11726
  justify-content: space-between;
11688
11727
  align-items: center;
@@ -11699,12 +11738,12 @@ var stylesFactory2 = (theme) => {
11699
11738
  flex-direction: column;
11700
11739
  }
11701
11740
  `,
11702
- logoAndToggleContainer: u`
11741
+ logoAndToggleContainer: css`
11703
11742
  display: flex;
11704
11743
  gap: ${tokens.size[3]};
11705
11744
  align-items: center;
11706
11745
  `,
11707
- logo: u`
11746
+ logo: css`
11708
11747
  cursor: pointer;
11709
11748
  display: flex;
11710
11749
  flex-direction: column;
@@ -11721,14 +11760,14 @@ var stylesFactory2 = (theme) => {
11721
11760
  outline: 2px solid ${colors.blue[800]};
11722
11761
  }
11723
11762
  `,
11724
- tanstackLogo: u`
11763
+ tanstackLogo: css`
11725
11764
  font-size: ${font.size.md};
11726
11765
  font-weight: ${font.weight.bold};
11727
11766
  line-height: ${font.lineHeight.xs};
11728
11767
  white-space: nowrap;
11729
11768
  color: ${t2(colors.gray[600], colors.gray[300])};
11730
11769
  `,
11731
- queryFlavorLogo: u`
11770
+ queryFlavorLogo: css`
11732
11771
  font-weight: ${font.weight.semibold};
11733
11772
  font-size: ${font.size.xs};
11734
11773
  background: linear-gradient(
@@ -11741,12 +11780,12 @@ var stylesFactory2 = (theme) => {
11741
11780
  -webkit-text-fill-color: transparent;
11742
11781
  white-space: nowrap;
11743
11782
  `,
11744
- queryStatusContainer: u`
11783
+ queryStatusContainer: css`
11745
11784
  display: flex;
11746
11785
  gap: ${tokens.size[2]};
11747
11786
  height: min-content;
11748
11787
  `,
11749
- queryStatusTag: u`
11788
+ queryStatusTag: css`
11750
11789
  display: flex;
11751
11790
  gap: ${tokens.size[1.5]};
11752
11791
  box-sizing: border-box;
@@ -11767,10 +11806,10 @@ var stylesFactory2 = (theme) => {
11767
11806
  outline: 2px solid ${colors.blue[800]};
11768
11807
  }
11769
11808
  `,
11770
- queryStatusTagLabel: u`
11809
+ queryStatusTagLabel: css`
11771
11810
  font-size: ${font.size.xs};
11772
11811
  `,
11773
- queryStatusCount: u`
11812
+ queryStatusCount: css`
11774
11813
  font-size: ${font.size.xs};
11775
11814
  padding: 0 5px;
11776
11815
  display: flex;
@@ -11782,7 +11821,7 @@ var stylesFactory2 = (theme) => {
11782
11821
  font-variant-numeric: tabular-nums;
11783
11822
  height: ${tokens.size[4.5]};
11784
11823
  `,
11785
- statusTooltip: u`
11824
+ statusTooltip: css`
11786
11825
  position: absolute;
11787
11826
  z-index: 1;
11788
11827
  background-color: ${t2(colors.gray[50], colors.darkGray[500])};
@@ -11822,7 +11861,7 @@ var stylesFactory2 = (theme) => {
11822
11861
  border-width: 7px;
11823
11862
  }
11824
11863
  `,
11825
- filtersContainer: u`
11864
+ filtersContainer: css`
11826
11865
  display: flex;
11827
11866
  gap: ${tokens.size[2]};
11828
11867
  & > button {
@@ -11851,7 +11890,7 @@ var stylesFactory2 = (theme) => {
11851
11890
  }
11852
11891
  }
11853
11892
  `,
11854
- filterInput: u`
11893
+ filterInput: css`
11855
11894
  padding: ${size2[0.5]} ${size2[2]};
11856
11895
  border-radius: ${tokens.border.radius.sm};
11857
11896
  background-color: ${t2(colors.gray[100], colors.darkGray[400])};
@@ -11890,7 +11929,7 @@ var stylesFactory2 = (theme) => {
11890
11929
  outline: 2px solid ${colors.blue[800]};
11891
11930
  }
11892
11931
  `,
11893
- filterSelect: u`
11932
+ filterSelect: css`
11894
11933
  padding: ${tokens.size[0.5]} ${tokens.size[2]};
11895
11934
  border-radius: ${tokens.border.radius.sm};
11896
11935
  background-color: ${t2(colors.gray[100], colors.darkGray[400])};
@@ -11924,11 +11963,11 @@ var stylesFactory2 = (theme) => {
11924
11963
  outline: 2px solid ${colors.blue[800]};
11925
11964
  }
11926
11965
  `,
11927
- actionsContainer: u`
11966
+ actionsContainer: css`
11928
11967
  display: flex;
11929
11968
  gap: ${tokens.size[2]};
11930
11969
  `,
11931
- actionsBtn: u`
11970
+ actionsBtn: css`
11932
11971
  border-radius: ${tokens.border.radius.sm};
11933
11972
  background-color: ${t2(colors.gray[100], colors.darkGray[400])};
11934
11973
  border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
@@ -11955,13 +11994,13 @@ var stylesFactory2 = (theme) => {
11955
11994
  outline: 2px solid ${colors.blue[800]};
11956
11995
  }
11957
11996
  `,
11958
- actionsBtnOffline: u`
11997
+ actionsBtnOffline: css`
11959
11998
  & svg {
11960
11999
  stroke: ${t2(colors.yellow[700], colors.yellow[500])};
11961
12000
  fill: ${t2(colors.yellow[700], colors.yellow[500])};
11962
12001
  }
11963
12002
  `,
11964
- overflowQueryContainer: u`
12003
+ overflowQueryContainer: css`
11965
12004
  flex: 1;
11966
12005
  overflow-y: auto;
11967
12006
  & > div {
@@ -11969,7 +12008,7 @@ var stylesFactory2 = (theme) => {
11969
12008
  flex-direction: column;
11970
12009
  }
11971
12010
  `,
11972
- queryRow: u`
12011
+ queryRow: css`
11973
12012
  display: flex;
11974
12013
  align-items: center;
11975
12014
  padding: 0;
@@ -12031,10 +12070,10 @@ var stylesFactory2 = (theme) => {
12031
12070
  font-size: ${font.size.xs};
12032
12071
  }
12033
12072
  `,
12034
- selectedQueryRow: u`
12073
+ selectedQueryRow: css`
12035
12074
  background-color: ${t2(colors.gray[200], colors.darkGray[500])};
12036
12075
  `,
12037
- detailsContainer: u`
12076
+ detailsContainer: css`
12038
12077
  flex: 1 1 700px;
12039
12078
  background-color: ${t2(colors.gray[50], colors.darkGray[700])};
12040
12079
  color: ${t2(colors.gray[700], colors.gray[300])};
@@ -12045,7 +12084,7 @@ var stylesFactory2 = (theme) => {
12045
12084
  display: flex;
12046
12085
  text-align: left;
12047
12086
  `,
12048
- detailsHeader: u`
12087
+ detailsHeader: css`
12049
12088
  font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
12050
12089
  position: sticky;
12051
12090
  top: 0;
@@ -12057,7 +12096,7 @@ var stylesFactory2 = (theme) => {
12057
12096
  line-height: ${font.lineHeight.xs};
12058
12097
  text-align: left;
12059
12098
  `,
12060
- detailsBody: u`
12099
+ detailsBody: css`
12061
12100
  margin: ${tokens.size[1.5]} 0px ${tokens.size[2]} 0px;
12062
12101
  & > div {
12063
12102
  display: flex;
@@ -12091,13 +12130,13 @@ var stylesFactory2 = (theme) => {
12091
12130
  align-items: center;
12092
12131
  }
12093
12132
  `,
12094
- queryDetailsStatus: u`
12133
+ queryDetailsStatus: css`
12095
12134
  border: 1px solid ${colors.darkGray[200]};
12096
12135
  border-radius: ${tokens.border.radius.sm};
12097
12136
  font-weight: ${font.weight.medium};
12098
12137
  padding: ${tokens.size[1]} ${tokens.size[2.5]};
12099
12138
  `,
12100
- actionsBody: u`
12139
+ actionsBody: css`
12101
12140
  flex-wrap: wrap;
12102
12141
  margin: ${tokens.size[2]} 0px ${tokens.size[2]} 0px;
12103
12142
  display: flex;
@@ -12137,7 +12176,7 @@ var stylesFactory2 = (theme) => {
12137
12176
  }
12138
12177
  }
12139
12178
  `,
12140
- actionsSelect: u`
12179
+ actionsSelect: css`
12141
12180
  font-size: ${font.size.xs};
12142
12181
  padding: ${tokens.size[0.5]} ${tokens.size[2]};
12143
12182
  display: flex;
@@ -12186,7 +12225,7 @@ var stylesFactory2 = (theme) => {
12186
12225
  height: ${tokens.size[2]};
12187
12226
  }
12188
12227
  `,
12189
- settingsMenu: u`
12228
+ settingsMenu: css`
12190
12229
  display: flex;
12191
12230
  & * {
12192
12231
  font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
@@ -12202,7 +12241,7 @@ var stylesFactory2 = (theme) => {
12202
12241
  min-width: 120px;
12203
12242
  padding: ${size2[0.5]};
12204
12243
  `,
12205
- settingsSubTrigger: u`
12244
+ settingsSubTrigger: css`
12206
12245
  display: flex;
12207
12246
  align-items: center;
12208
12247
  justify-content: space-between;
@@ -12230,14 +12269,14 @@ var stylesFactory2 = (theme) => {
12230
12269
  cursor: not-allowed;
12231
12270
  }
12232
12271
  `,
12233
- settingsMenuHeader: u`
12272
+ settingsMenuHeader: css`
12234
12273
  padding: ${tokens.size[1]} ${tokens.size[1]};
12235
12274
  font-weight: ${font.weight.medium};
12236
12275
  border-bottom: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
12237
12276
  color: ${t2(colors.gray[500], colors.gray[400])};
12238
12277
  font-size: ${font.size["xs"]};
12239
12278
  `,
12240
- settingsSubButton: u`
12279
+ settingsSubButton: css`
12241
12280
  display: flex;
12242
12281
  align-items: center;
12243
12282
  justify-content: space-between;
@@ -12259,7 +12298,7 @@ var stylesFactory2 = (theme) => {
12259
12298
  outline: 2px solid ${colors.blue[800]};
12260
12299
  }
12261
12300
  `,
12262
- themeSelectedButton: u`
12301
+ themeSelectedButton: css`
12263
12302
  background-color: ${t2(colors.purple[100], colors.purple[900])};
12264
12303
  color: ${t2(colors.purple[700], colors.purple[300])};
12265
12304
  & svg {
@@ -12269,7 +12308,7 @@ var stylesFactory2 = (theme) => {
12269
12308
  background-color: ${t2(colors.purple[100], colors.purple[900])};
12270
12309
  }
12271
12310
  `,
12272
- viewToggle: u`
12311
+ viewToggle: css`
12273
12312
  border-radius: ${tokens.border.radius.sm};
12274
12313
  background-color: ${t2(colors.gray[200], colors.darkGray[600])};
12275
12314
  border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
@@ -12321,8 +12360,8 @@ var stylesFactory2 = (theme) => {
12321
12360
  `
12322
12361
  };
12323
12362
  };
12324
- var lightStyles2 = stylesFactory2("light");
12325
- var darkStyles2 = stylesFactory2("dark");
12363
+ var lightStyles2 = (css) => stylesFactory2("light", css);
12364
+ var darkStyles2 = (css) => stylesFactory2("dark", css);
12326
12365
  delegateEvents(["click", "mousedown", "input"]);
12327
12366
  /*! Bundled license information:
12328
12367