@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.
- package/build/Devtools/{335X72D7.js → DBFR2OSQ.js} +138 -104
- package/build/Devtools/{VAXLBYTT.jsx → MZG6MFIN.jsx} +116 -104
- package/build/Devtools/{XYYT2JS6.js → UXHVNKJK.js} +138 -104
- package/build/Devtools/{36BZFNWK.jsx → ZI3HPF3S.jsx} +116 -104
- package/build/chunk/{IQDKCOXE.jsx → 4MX274MJ.jsx} +7 -4
- package/build/chunk/{7LTSZCE6.js → BWUNFN7M.js} +7 -3
- package/build/chunk/{KQZGNKMT.js → EY5FZ5D2.js} +7 -3
- package/build/chunk/{LJVATCV2.jsx → HLOIZPIT.jsx} +8 -3
- package/build/dev.cjs +152 -108
- package/build/dev.js +10 -4
- package/build/dev.jsx +8 -4
- package/build/index.cjs +152 -108
- package/build/index.d.cts +2 -0
- package/build/index.d.ts +2 -0
- package/build/index.js +10 -4
- package/build/index.jsx +8 -4
- package/package.json +2 -2
- package/src/Context.ts +2 -0
- package/src/Devtools.tsx +60 -18
- package/src/index.tsx +6 -1
- package/src/utils.tsx +9 -3
|
@@ -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, clearDelegatedEvents, Dynamic, children, createComputed, getOwner, DEV } from '../chunk/
|
|
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/EY5FZ5D2.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);
|
|
@@ -9602,11 +9603,11 @@ var PiPProvider = (props) => {
|
|
|
9602
9603
|
}
|
|
9603
9604
|
});
|
|
9604
9605
|
createEffect(() => {
|
|
9605
|
-
const gooberStyles = document.
|
|
9606
|
+
const gooberStyles = (useQueryDevtoolsContext().shadowDOMTarget || document).querySelector("#_goober");
|
|
9606
9607
|
const w = pipWindow();
|
|
9607
9608
|
if (gooberStyles && w) {
|
|
9608
9609
|
const observer = new MutationObserver(() => {
|
|
9609
|
-
const pip_style = w.document.
|
|
9610
|
+
const pip_style = (useQueryDevtoolsContext().shadowDOMTarget || w.document).querySelector("#_goober");
|
|
9610
9611
|
if (pip_style) {
|
|
9611
9612
|
pip_style.textContent = gooberStyles.textContent;
|
|
9612
9613
|
}
|
|
@@ -9681,8 +9682,11 @@ var DevtoolsComponent = (props) => {
|
|
|
9681
9682
|
var Devtools_default = DevtoolsComponent;
|
|
9682
9683
|
var Devtools = (props) => {
|
|
9683
9684
|
const theme = useTheme();
|
|
9685
|
+
const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
|
|
9686
|
+
target: useQueryDevtoolsContext().shadowDOMTarget
|
|
9687
|
+
}) : u;
|
|
9684
9688
|
const styles = createMemo(() => {
|
|
9685
|
-
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
9689
|
+
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
9686
9690
|
});
|
|
9687
9691
|
const pip = usePiPWindow();
|
|
9688
9692
|
const buttonPosition = createMemo(() => {
|
|
@@ -9783,7 +9787,7 @@ var Devtools = (props) => {
|
|
|
9783
9787
|
});
|
|
9784
9788
|
}
|
|
9785
9789
|
}), null);
|
|
9786
|
-
createRenderEffect(() => className(_el$, clsx(
|
|
9790
|
+
createRenderEffect(() => className(_el$, clsx(css`
|
|
9787
9791
|
& .tsqd-panel-transition-exit-active,
|
|
9788
9792
|
& .tsqd-panel-transition-enter-active {
|
|
9789
9793
|
transition:
|
|
@@ -9816,8 +9820,11 @@ var Devtools = (props) => {
|
|
|
9816
9820
|
var PiPPanel = (props) => {
|
|
9817
9821
|
const pip = usePiPWindow();
|
|
9818
9822
|
const theme = useTheme();
|
|
9823
|
+
const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
|
|
9824
|
+
target: useQueryDevtoolsContext().shadowDOMTarget
|
|
9825
|
+
}) : u;
|
|
9819
9826
|
const styles = createMemo(() => {
|
|
9820
|
-
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
9827
|
+
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
9821
9828
|
});
|
|
9822
9829
|
const getPanelDynamicStyles = () => {
|
|
9823
9830
|
const {
|
|
@@ -9825,12 +9832,12 @@ var PiPPanel = (props) => {
|
|
|
9825
9832
|
} = tokens;
|
|
9826
9833
|
const t2 = (light, dark) => theme() === "dark" ? dark : light;
|
|
9827
9834
|
if (panelWidth() < secondBreakpoint) {
|
|
9828
|
-
return
|
|
9835
|
+
return css`
|
|
9829
9836
|
flex-direction: column;
|
|
9830
9837
|
background-color: ${t2(colors.gray[300], colors.gray[600])};
|
|
9831
9838
|
`;
|
|
9832
9839
|
}
|
|
9833
|
-
return
|
|
9840
|
+
return css`
|
|
9834
9841
|
flex-direction: row;
|
|
9835
9842
|
background-color: ${t2(colors.gray[200], colors.darkGray[900])};
|
|
9836
9843
|
`;
|
|
@@ -9860,7 +9867,7 @@ var PiPPanel = (props) => {
|
|
|
9860
9867
|
_el$5.style.setProperty("width", "100vw");
|
|
9861
9868
|
insert(_el$5, () => props.children);
|
|
9862
9869
|
createRenderEffect(() => className(_el$5, clsx(styles().panel, getPanelDynamicStyles(), {
|
|
9863
|
-
[
|
|
9870
|
+
[css`
|
|
9864
9871
|
min-width: min-content;
|
|
9865
9872
|
`]: panelWidth() < thirdBreakpoint
|
|
9866
9873
|
}, "tsqd-main-panel")));
|
|
@@ -9869,8 +9876,11 @@ var PiPPanel = (props) => {
|
|
|
9869
9876
|
};
|
|
9870
9877
|
var DevtoolsPanel = (props) => {
|
|
9871
9878
|
const theme = useTheme();
|
|
9879
|
+
const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
|
|
9880
|
+
target: useQueryDevtoolsContext().shadowDOMTarget
|
|
9881
|
+
}) : u;
|
|
9872
9882
|
const styles = createMemo(() => {
|
|
9873
|
-
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
9883
|
+
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
9874
9884
|
});
|
|
9875
9885
|
const [isResizing, setIsResizing] = createSignal(false);
|
|
9876
9886
|
const position = createMemo(() => props.localStore.position || useQueryDevtoolsContext().position || POSITION);
|
|
@@ -9964,12 +9974,12 @@ var DevtoolsPanel = (props) => {
|
|
|
9964
9974
|
} = tokens;
|
|
9965
9975
|
const t2 = (light, dark) => theme() === "dark" ? dark : light;
|
|
9966
9976
|
if (panelWidth() < secondBreakpoint) {
|
|
9967
|
-
return
|
|
9977
|
+
return css`
|
|
9968
9978
|
flex-direction: column;
|
|
9969
9979
|
background-color: ${t2(colors.gray[300], colors.gray[600])};
|
|
9970
9980
|
`;
|
|
9971
9981
|
}
|
|
9972
|
-
return
|
|
9982
|
+
return css`
|
|
9973
9983
|
flex-direction: row;
|
|
9974
9984
|
background-color: ${t2(colors.gray[200], colors.darkGray[900])};
|
|
9975
9985
|
`;
|
|
@@ -9991,7 +10001,7 @@ var DevtoolsPanel = (props) => {
|
|
|
9991
10001
|
}), null);
|
|
9992
10002
|
createRenderEffect((_p$) => {
|
|
9993
10003
|
const _v$ = clsx(styles().panel, styles()[`panel-position-${position()}`], getPanelDynamicStyles(), {
|
|
9994
|
-
[
|
|
10004
|
+
[css`
|
|
9995
10005
|
min-width: min-content;
|
|
9996
10006
|
`]: panelWidth() < thirdBreakpoint && (position() === "right" || position() === "left")
|
|
9997
10007
|
}, "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");
|
|
@@ -10016,8 +10026,11 @@ var ContentView = (props) => {
|
|
|
10016
10026
|
setupMutationCacheSubscription();
|
|
10017
10027
|
let containerRef;
|
|
10018
10028
|
const theme = useTheme();
|
|
10029
|
+
const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
|
|
10030
|
+
target: useQueryDevtoolsContext().shadowDOMTarget
|
|
10031
|
+
}) : u;
|
|
10019
10032
|
const styles = createMemo(() => {
|
|
10020
|
-
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
10033
|
+
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
10021
10034
|
});
|
|
10022
10035
|
const pip = usePiPWindow();
|
|
10023
10036
|
const [selectedView, setSelectedView] = createSignal("queries");
|
|
@@ -10448,10 +10461,10 @@ var ContentView = (props) => {
|
|
|
10448
10461
|
}
|
|
10449
10462
|
}), null);
|
|
10450
10463
|
createRenderEffect((_p$) => {
|
|
10451
|
-
const _v$6 = clsx(styles().queriesContainer, panelWidth() < secondBreakpoint && (selectedQueryHash() || selectedMutationId()) &&
|
|
10464
|
+
const _v$6 = clsx(styles().queriesContainer, panelWidth() < secondBreakpoint && (selectedQueryHash() || selectedMutationId()) && css`
|
|
10452
10465
|
height: 50%;
|
|
10453
10466
|
max-height: 50%;
|
|
10454
|
-
`, panelWidth() < secondBreakpoint && !(selectedQueryHash() || selectedMutationId()) &&
|
|
10467
|
+
`, panelWidth() < secondBreakpoint && !(selectedQueryHash() || selectedMutationId()) && css`
|
|
10455
10468
|
height: 100%;
|
|
10456
10469
|
max-height: 100%;
|
|
10457
10470
|
`, "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"}`;
|
|
@@ -10518,8 +10531,11 @@ var ContentView = (props) => {
|
|
|
10518
10531
|
};
|
|
10519
10532
|
var QueryRow = (props) => {
|
|
10520
10533
|
const theme = useTheme();
|
|
10534
|
+
const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
|
|
10535
|
+
target: useQueryDevtoolsContext().shadowDOMTarget
|
|
10536
|
+
}) : u;
|
|
10521
10537
|
const styles = createMemo(() => {
|
|
10522
|
-
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
10538
|
+
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
10523
10539
|
});
|
|
10524
10540
|
const {
|
|
10525
10541
|
colors,
|
|
@@ -10545,12 +10561,12 @@ var QueryRow = (props) => {
|
|
|
10545
10561
|
}));
|
|
10546
10562
|
const getObserverCountColorStyles = () => {
|
|
10547
10563
|
if (color() === "gray") {
|
|
10548
|
-
return
|
|
10564
|
+
return css`
|
|
10549
10565
|
background-color: ${t2(colors[color()][200], colors[color()][700])};
|
|
10550
10566
|
color: ${t2(colors[color()][700], colors[color()][300])};
|
|
10551
10567
|
`;
|
|
10552
10568
|
}
|
|
10553
|
-
return
|
|
10569
|
+
return css`
|
|
10554
10570
|
background-color: ${t2(colors[color()][200] + alpha[80], colors[color()][900])};
|
|
10555
10571
|
color: ${t2(colors[color()][800], colors[color()][300])};
|
|
10556
10572
|
`;
|
|
@@ -10589,8 +10605,11 @@ var QueryRow = (props) => {
|
|
|
10589
10605
|
};
|
|
10590
10606
|
var MutationRow = (props) => {
|
|
10591
10607
|
const theme = useTheme();
|
|
10608
|
+
const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
|
|
10609
|
+
target: useQueryDevtoolsContext().shadowDOMTarget
|
|
10610
|
+
}) : u;
|
|
10592
10611
|
const styles = createMemo(() => {
|
|
10593
|
-
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
10612
|
+
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
10594
10613
|
});
|
|
10595
10614
|
const {
|
|
10596
10615
|
colors,
|
|
@@ -10622,12 +10641,12 @@ var MutationRow = (props) => {
|
|
|
10622
10641
|
}));
|
|
10623
10642
|
const getObserverCountColorStyles = () => {
|
|
10624
10643
|
if (color() === "gray") {
|
|
10625
|
-
return
|
|
10644
|
+
return css`
|
|
10626
10645
|
background-color: ${t2(colors[color()][200], colors[color()][700])};
|
|
10627
10646
|
color: ${t2(colors[color()][700], colors[color()][300])};
|
|
10628
10647
|
`;
|
|
10629
10648
|
}
|
|
10630
|
-
return
|
|
10649
|
+
return css`
|
|
10631
10650
|
background-color: ${t2(colors[color()][200] + alpha[80], colors[color()][900])};
|
|
10632
10651
|
color: ${t2(colors[color()][800], colors[color()][300])};
|
|
10633
10652
|
`;
|
|
@@ -10704,8 +10723,11 @@ var QueryStatusCount = () => {
|
|
|
10704
10723
|
const paused = createSubscribeToQueryCacheBatcher((queryCache) => queryCache().getAll().filter((q) => getQueryStatusLabel(q) === "paused").length);
|
|
10705
10724
|
const inactive = createSubscribeToQueryCacheBatcher((queryCache) => queryCache().getAll().filter((q) => getQueryStatusLabel(q) === "inactive").length);
|
|
10706
10725
|
const theme = useTheme();
|
|
10726
|
+
const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
|
|
10727
|
+
target: useQueryDevtoolsContext().shadowDOMTarget
|
|
10728
|
+
}) : u;
|
|
10707
10729
|
const styles = createMemo(() => {
|
|
10708
|
-
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
10730
|
+
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
10709
10731
|
});
|
|
10710
10732
|
return (() => {
|
|
10711
10733
|
const _el$55 = _tmpl$26();
|
|
@@ -10766,8 +10788,11 @@ var MutationStatusCount = () => {
|
|
|
10766
10788
|
status: m.state.status
|
|
10767
10789
|
}) === "red").length);
|
|
10768
10790
|
const theme = useTheme();
|
|
10791
|
+
const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
|
|
10792
|
+
target: useQueryDevtoolsContext().shadowDOMTarget
|
|
10793
|
+
}) : u;
|
|
10769
10794
|
const styles = createMemo(() => {
|
|
10770
|
-
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
10795
|
+
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
10771
10796
|
});
|
|
10772
10797
|
return (() => {
|
|
10773
10798
|
const _el$56 = _tmpl$26();
|
|
@@ -10805,8 +10830,11 @@ var MutationStatusCount = () => {
|
|
|
10805
10830
|
};
|
|
10806
10831
|
var QueryStatus = (props) => {
|
|
10807
10832
|
const theme = useTheme();
|
|
10833
|
+
const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
|
|
10834
|
+
target: useQueryDevtoolsContext().shadowDOMTarget
|
|
10835
|
+
}) : u;
|
|
10808
10836
|
const styles = createMemo(() => {
|
|
10809
|
-
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
10837
|
+
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
10810
10838
|
});
|
|
10811
10839
|
const {
|
|
10812
10840
|
colors,
|
|
@@ -10843,7 +10871,7 @@ var QueryStatus = (props) => {
|
|
|
10843
10871
|
return showLabel();
|
|
10844
10872
|
},
|
|
10845
10873
|
get ["class"]() {
|
|
10846
|
-
return clsx(styles().queryStatusTag, !showLabel() &&
|
|
10874
|
+
return clsx(styles().queryStatusTag, !showLabel() && css`
|
|
10847
10875
|
cursor: pointer;
|
|
10848
10876
|
&:hover {
|
|
10849
10877
|
background: ${t2(colors.gray[200], colors.darkGray[400])}${alpha[80]};
|
|
@@ -10877,12 +10905,12 @@ var QueryStatus = (props) => {
|
|
|
10877
10905
|
}), _el$61);
|
|
10878
10906
|
insert(_el$61, () => props.count);
|
|
10879
10907
|
createRenderEffect((_p$) => {
|
|
10880
|
-
const _v$32 = clsx(
|
|
10908
|
+
const _v$32 = clsx(css`
|
|
10881
10909
|
width: ${tokens.size[1.5]};
|
|
10882
10910
|
height: ${tokens.size[1.5]};
|
|
10883
10911
|
border-radius: ${tokens.border.radius.full};
|
|
10884
10912
|
background-color: ${tokens.colors[props.color][500]};
|
|
10885
|
-
`, "tsqd-query-status-tag-dot"), _v$33 = clsx(styles().queryStatusCount, props.count > 0 && props.color !== "gray" &&
|
|
10913
|
+
`, "tsqd-query-status-tag-dot"), _v$33 = clsx(styles().queryStatusCount, props.count > 0 && props.color !== "gray" && css`
|
|
10886
10914
|
background-color: ${t2(colors[props.color][100], colors[props.color][900])};
|
|
10887
10915
|
color: ${t2(colors[props.color][700], colors[props.color][300])};
|
|
10888
10916
|
`, "tsqd-query-status-tag-count");
|
|
@@ -10898,8 +10926,11 @@ var QueryStatus = (props) => {
|
|
|
10898
10926
|
};
|
|
10899
10927
|
var QueryDetails = () => {
|
|
10900
10928
|
const theme = useTheme();
|
|
10929
|
+
const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
|
|
10930
|
+
target: useQueryDevtoolsContext().shadowDOMTarget
|
|
10931
|
+
}) : u;
|
|
10901
10932
|
const styles = createMemo(() => {
|
|
10902
|
-
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
10933
|
+
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
10903
10934
|
});
|
|
10904
10935
|
const {
|
|
10905
10936
|
colors
|
|
@@ -10962,13 +10993,13 @@ var QueryDetails = () => {
|
|
|
10962
10993
|
});
|
|
10963
10994
|
const getQueryStatusColors = () => {
|
|
10964
10995
|
if (color() === "gray") {
|
|
10965
|
-
return
|
|
10996
|
+
return css`
|
|
10966
10997
|
background-color: ${t2(colors[color()][200], colors[color()][700])};
|
|
10967
10998
|
color: ${t2(colors[color()][700], colors[color()][300])};
|
|
10968
10999
|
border-color: ${t2(colors[color()][400], colors[color()][600])};
|
|
10969
11000
|
`;
|
|
10970
11001
|
}
|
|
10971
|
-
return
|
|
11002
|
+
return css`
|
|
10972
11003
|
background-color: ${t2(colors[color()][100], colors[color()][900])};
|
|
10973
11004
|
color: ${t2(colors[color()][700], colors[color()][300])};
|
|
10974
11005
|
border-color: ${t2(colors[color()][400], colors[color()][600])};
|
|
@@ -11034,9 +11065,9 @@ var QueryDetails = () => {
|
|
|
11034
11065
|
};
|
|
11035
11066
|
insert(_el$88, () => queryStatus() === "error" ? "Restore" : "Trigger", _el$90);
|
|
11036
11067
|
createRenderEffect((_p$) => {
|
|
11037
|
-
const _v$34 = clsx(
|
|
11068
|
+
const _v$34 = clsx(css`
|
|
11038
11069
|
color: ${t2(colors.red[500], colors.red[400])};
|
|
11039
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), _v$35 = queryStatus() === "pending", _v$36 =
|
|
11070
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), _v$35 = queryStatus() === "pending", _v$36 = css`
|
|
11040
11071
|
background-color: ${t2(colors.red[500], colors.red[400])};
|
|
11041
11072
|
`;
|
|
11042
11073
|
_v$34 !== _p$._v$34 && className(_el$88, _p$._v$34 = _v$34);
|
|
@@ -11074,7 +11105,7 @@ var QueryDetails = () => {
|
|
|
11074
11105
|
}), null);
|
|
11075
11106
|
insert(_el$91, createComponent(ChevronDown, {}), null);
|
|
11076
11107
|
createRenderEffect((_p$) => {
|
|
11077
|
-
const _v$37 = clsx(styles().actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), _v$38 =
|
|
11108
|
+
const _v$37 = clsx(styles().actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), _v$38 = css`
|
|
11078
11109
|
background-color: ${tokens.colors.red[400]};
|
|
11079
11110
|
`, _v$39 = queryStatus() === "pending";
|
|
11080
11111
|
_v$37 !== _p$._v$37 && className(_el$91, _p$._v$37 = _v$37);
|
|
@@ -11108,25 +11139,25 @@ var QueryDetails = () => {
|
|
|
11108
11139
|
}
|
|
11109
11140
|
}));
|
|
11110
11141
|
createRenderEffect((_p$) => {
|
|
11111
|
-
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(
|
|
11142
|
+
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`
|
|
11112
11143
|
color: ${t2(colors.blue[600], colors.blue[400])};
|
|
11113
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-refetch"), _v$47 = statusLabel() === "fetching", _v$48 =
|
|
11144
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-refetch"), _v$47 = statusLabel() === "fetching", _v$48 = css`
|
|
11114
11145
|
background-color: ${t2(colors.blue[600], colors.blue[400])};
|
|
11115
|
-
`, _v$49 = clsx(
|
|
11146
|
+
`, _v$49 = clsx(css`
|
|
11116
11147
|
color: ${t2(colors.yellow[600], colors.yellow[400])};
|
|
11117
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-invalidate"), _v$50 = queryStatus() === "pending", _v$51 =
|
|
11148
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-invalidate"), _v$50 = queryStatus() === "pending", _v$51 = css`
|
|
11118
11149
|
background-color: ${t2(colors.yellow[600], colors.yellow[400])};
|
|
11119
|
-
`, _v$52 = clsx(
|
|
11150
|
+
`, _v$52 = clsx(css`
|
|
11120
11151
|
color: ${t2(colors.gray[600], colors.gray[300])};
|
|
11121
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-reset"), _v$53 = queryStatus() === "pending", _v$54 =
|
|
11152
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-reset"), _v$53 = queryStatus() === "pending", _v$54 = css`
|
|
11122
11153
|
background-color: ${t2(colors.gray[600], colors.gray[400])};
|
|
11123
|
-
`, _v$55 = clsx(
|
|
11154
|
+
`, _v$55 = clsx(css`
|
|
11124
11155
|
color: ${t2(colors.pink[500], colors.pink[400])};
|
|
11125
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-remove"), _v$56 = statusLabel() === "fetching", _v$57 =
|
|
11156
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-remove"), _v$56 = statusLabel() === "fetching", _v$57 = css`
|
|
11126
11157
|
background-color: ${t2(colors.pink[500], colors.pink[400])};
|
|
11127
|
-
`, _v$58 = clsx(
|
|
11158
|
+
`, _v$58 = clsx(css`
|
|
11128
11159
|
color: ${t2(colors.cyan[500], colors.cyan[400])};
|
|
11129
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), _v$59 = restoringLoading(), _v$60 =
|
|
11160
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), _v$59 = restoringLoading(), _v$60 = css`
|
|
11130
11161
|
background-color: ${t2(colors.cyan[500], colors.cyan[400])};
|
|
11131
11162
|
`, _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];
|
|
11132
11163
|
_v$40 !== _p$._v$40 && className(_el$62, _p$._v$40 = _v$40);
|
|
@@ -11188,8 +11219,11 @@ var QueryDetails = () => {
|
|
|
11188
11219
|
};
|
|
11189
11220
|
var MutationDetails = () => {
|
|
11190
11221
|
const theme = useTheme();
|
|
11222
|
+
const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
|
|
11223
|
+
target: useQueryDevtoolsContext().shadowDOMTarget
|
|
11224
|
+
}) : u;
|
|
11191
11225
|
const styles = createMemo(() => {
|
|
11192
|
-
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
11226
|
+
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
11193
11227
|
});
|
|
11194
11228
|
const {
|
|
11195
11229
|
colors
|
|
@@ -11216,13 +11250,13 @@ var MutationDetails = () => {
|
|
|
11216
11250
|
const activeMutation = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().find((mutation) => mutation.mutationId === selectedMutationId()), false);
|
|
11217
11251
|
const getQueryStatusColors = () => {
|
|
11218
11252
|
if (color() === "gray") {
|
|
11219
|
-
return
|
|
11253
|
+
return css`
|
|
11220
11254
|
background-color: ${t2(colors[color()][200], colors[color()][700])};
|
|
11221
11255
|
color: ${t2(colors[color()][700], colors[color()][300])};
|
|
11222
11256
|
border-color: ${t2(colors[color()][400], colors[color()][600])};
|
|
11223
11257
|
`;
|
|
11224
11258
|
}
|
|
11225
|
-
return
|
|
11259
|
+
return css`
|
|
11226
11260
|
background-color: ${t2(colors[color()][100], colors[color()][900])};
|
|
11227
11261
|
color: ${t2(colors[color()][700], colors[color()][300])};
|
|
11228
11262
|
border-color: ${t2(colors[color()][400], colors[color()][600])};
|
|
@@ -11396,7 +11430,7 @@ var createSubscribeToMutationCacheBatcher = (callback, equalityCheck = true) =>
|
|
|
11396
11430
|
});
|
|
11397
11431
|
return value;
|
|
11398
11432
|
};
|
|
11399
|
-
var stylesFactory2 = (theme) => {
|
|
11433
|
+
var stylesFactory2 = (theme, css) => {
|
|
11400
11434
|
const {
|
|
11401
11435
|
colors,
|
|
11402
11436
|
font,
|
|
@@ -11407,7 +11441,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11407
11441
|
} = tokens;
|
|
11408
11442
|
const t2 = (light, dark) => theme === "light" ? light : dark;
|
|
11409
11443
|
return {
|
|
11410
|
-
devtoolsBtn:
|
|
11444
|
+
devtoolsBtn: css`
|
|
11411
11445
|
z-index: 100000;
|
|
11412
11446
|
position: fixed;
|
|
11413
11447
|
padding: 4px;
|
|
@@ -11461,7 +11495,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11461
11495
|
}
|
|
11462
11496
|
}
|
|
11463
11497
|
`,
|
|
11464
|
-
panel:
|
|
11498
|
+
panel: css`
|
|
11465
11499
|
position: fixed;
|
|
11466
11500
|
z-index: 9999;
|
|
11467
11501
|
display: flex;
|
|
@@ -11487,26 +11521,26 @@ var stylesFactory2 = (theme) => {
|
|
|
11487
11521
|
background: ${t2(colors.gray[400], colors.darkGray[300])};
|
|
11488
11522
|
}
|
|
11489
11523
|
`,
|
|
11490
|
-
"devtoolsBtn-position-bottom-right":
|
|
11524
|
+
"devtoolsBtn-position-bottom-right": css`
|
|
11491
11525
|
bottom: 12px;
|
|
11492
11526
|
right: 12px;
|
|
11493
11527
|
`,
|
|
11494
|
-
"devtoolsBtn-position-bottom-left":
|
|
11528
|
+
"devtoolsBtn-position-bottom-left": css`
|
|
11495
11529
|
bottom: 12px;
|
|
11496
11530
|
left: 12px;
|
|
11497
11531
|
`,
|
|
11498
|
-
"devtoolsBtn-position-top-left":
|
|
11532
|
+
"devtoolsBtn-position-top-left": css`
|
|
11499
11533
|
top: 12px;
|
|
11500
11534
|
left: 12px;
|
|
11501
11535
|
`,
|
|
11502
|
-
"devtoolsBtn-position-top-right":
|
|
11536
|
+
"devtoolsBtn-position-top-right": css`
|
|
11503
11537
|
top: 12px;
|
|
11504
11538
|
right: 12px;
|
|
11505
11539
|
`,
|
|
11506
|
-
"devtoolsBtn-position-relative":
|
|
11540
|
+
"devtoolsBtn-position-relative": css`
|
|
11507
11541
|
position: relative;
|
|
11508
11542
|
`,
|
|
11509
|
-
"panel-position-top":
|
|
11543
|
+
"panel-position-top": css`
|
|
11510
11544
|
top: 0;
|
|
11511
11545
|
right: 0;
|
|
11512
11546
|
left: 0;
|
|
@@ -11514,7 +11548,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11514
11548
|
min-height: ${size2[14]};
|
|
11515
11549
|
border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
11516
11550
|
`,
|
|
11517
|
-
"panel-position-bottom":
|
|
11551
|
+
"panel-position-bottom": css`
|
|
11518
11552
|
bottom: 0;
|
|
11519
11553
|
right: 0;
|
|
11520
11554
|
left: 0;
|
|
@@ -11522,21 +11556,21 @@ var stylesFactory2 = (theme) => {
|
|
|
11522
11556
|
min-height: ${size2[14]};
|
|
11523
11557
|
border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
11524
11558
|
`,
|
|
11525
|
-
"panel-position-right":
|
|
11559
|
+
"panel-position-right": css`
|
|
11526
11560
|
bottom: 0;
|
|
11527
11561
|
right: 0;
|
|
11528
11562
|
top: 0;
|
|
11529
11563
|
border-left: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
11530
11564
|
max-width: 90%;
|
|
11531
11565
|
`,
|
|
11532
|
-
"panel-position-left":
|
|
11566
|
+
"panel-position-left": css`
|
|
11533
11567
|
bottom: 0;
|
|
11534
11568
|
left: 0;
|
|
11535
11569
|
top: 0;
|
|
11536
11570
|
border-right: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
11537
11571
|
max-width: 90%;
|
|
11538
11572
|
`,
|
|
11539
|
-
closeBtn:
|
|
11573
|
+
closeBtn: css`
|
|
11540
11574
|
position: absolute;
|
|
11541
11575
|
cursor: pointer;
|
|
11542
11576
|
z-index: 5;
|
|
@@ -11557,7 +11591,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11557
11591
|
height: ${size2[2]};
|
|
11558
11592
|
}
|
|
11559
11593
|
`,
|
|
11560
|
-
"closeBtn-position-top":
|
|
11594
|
+
"closeBtn-position-top": css`
|
|
11561
11595
|
bottom: 0;
|
|
11562
11596
|
right: ${size2[2]};
|
|
11563
11597
|
transform: translate(0, 100%);
|
|
@@ -11581,7 +11615,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11581
11615
|
transform: rotate(180deg);
|
|
11582
11616
|
}
|
|
11583
11617
|
`,
|
|
11584
|
-
"closeBtn-position-bottom":
|
|
11618
|
+
"closeBtn-position-bottom": css`
|
|
11585
11619
|
top: 0;
|
|
11586
11620
|
right: ${size2[2]};
|
|
11587
11621
|
transform: translate(0, -100%);
|
|
@@ -11601,7 +11635,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11601
11635
|
width: calc(100% + ${size2[5]});
|
|
11602
11636
|
}
|
|
11603
11637
|
`,
|
|
11604
|
-
"closeBtn-position-right":
|
|
11638
|
+
"closeBtn-position-right": css`
|
|
11605
11639
|
bottom: ${size2[2]};
|
|
11606
11640
|
left: 0;
|
|
11607
11641
|
transform: translate(-100%, 0);
|
|
@@ -11624,7 +11658,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11624
11658
|
transform: rotate(-90deg);
|
|
11625
11659
|
}
|
|
11626
11660
|
`,
|
|
11627
|
-
"closeBtn-position-left":
|
|
11661
|
+
"closeBtn-position-left": css`
|
|
11628
11662
|
bottom: ${size2[2]};
|
|
11629
11663
|
right: 0;
|
|
11630
11664
|
transform: translate(100%, 0);
|
|
@@ -11647,7 +11681,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11647
11681
|
transform: rotate(90deg);
|
|
11648
11682
|
}
|
|
11649
11683
|
`,
|
|
11650
|
-
queriesContainer:
|
|
11684
|
+
queriesContainer: css`
|
|
11651
11685
|
flex: 1 1 700px;
|
|
11652
11686
|
background-color: ${t2(colors.gray[50], colors.darkGray[700])};
|
|
11653
11687
|
display: flex;
|
|
@@ -11656,7 +11690,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11656
11690
|
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
11657
11691
|
}
|
|
11658
11692
|
`,
|
|
11659
|
-
dragHandle:
|
|
11693
|
+
dragHandle: css`
|
|
11660
11694
|
position: absolute;
|
|
11661
11695
|
transition: background-color 0.125s ease;
|
|
11662
11696
|
&:hover {
|
|
@@ -11664,31 +11698,31 @@ var stylesFactory2 = (theme) => {
|
|
|
11664
11698
|
}
|
|
11665
11699
|
z-index: 4;
|
|
11666
11700
|
`,
|
|
11667
|
-
"dragHandle-position-top":
|
|
11701
|
+
"dragHandle-position-top": css`
|
|
11668
11702
|
bottom: 0;
|
|
11669
11703
|
width: 100%;
|
|
11670
11704
|
height: 3px;
|
|
11671
11705
|
cursor: ns-resize;
|
|
11672
11706
|
`,
|
|
11673
|
-
"dragHandle-position-bottom":
|
|
11707
|
+
"dragHandle-position-bottom": css`
|
|
11674
11708
|
top: 0;
|
|
11675
11709
|
width: 100%;
|
|
11676
11710
|
height: 3px;
|
|
11677
11711
|
cursor: ns-resize;
|
|
11678
11712
|
`,
|
|
11679
|
-
"dragHandle-position-right":
|
|
11713
|
+
"dragHandle-position-right": css`
|
|
11680
11714
|
left: 0;
|
|
11681
11715
|
width: 3px;
|
|
11682
11716
|
height: 100%;
|
|
11683
11717
|
cursor: ew-resize;
|
|
11684
11718
|
`,
|
|
11685
|
-
"dragHandle-position-left":
|
|
11719
|
+
"dragHandle-position-left": css`
|
|
11686
11720
|
right: 0;
|
|
11687
11721
|
width: 3px;
|
|
11688
11722
|
height: 100%;
|
|
11689
11723
|
cursor: ew-resize;
|
|
11690
11724
|
`,
|
|
11691
|
-
row:
|
|
11725
|
+
row: css`
|
|
11692
11726
|
display: flex;
|
|
11693
11727
|
justify-content: space-between;
|
|
11694
11728
|
align-items: center;
|
|
@@ -11705,12 +11739,12 @@ var stylesFactory2 = (theme) => {
|
|
|
11705
11739
|
flex-direction: column;
|
|
11706
11740
|
}
|
|
11707
11741
|
`,
|
|
11708
|
-
logoAndToggleContainer:
|
|
11742
|
+
logoAndToggleContainer: css`
|
|
11709
11743
|
display: flex;
|
|
11710
11744
|
gap: ${tokens.size[3]};
|
|
11711
11745
|
align-items: center;
|
|
11712
11746
|
`,
|
|
11713
|
-
logo:
|
|
11747
|
+
logo: css`
|
|
11714
11748
|
cursor: pointer;
|
|
11715
11749
|
display: flex;
|
|
11716
11750
|
flex-direction: column;
|
|
@@ -11727,14 +11761,14 @@ var stylesFactory2 = (theme) => {
|
|
|
11727
11761
|
outline: 2px solid ${colors.blue[800]};
|
|
11728
11762
|
}
|
|
11729
11763
|
`,
|
|
11730
|
-
tanstackLogo:
|
|
11764
|
+
tanstackLogo: css`
|
|
11731
11765
|
font-size: ${font.size.md};
|
|
11732
11766
|
font-weight: ${font.weight.bold};
|
|
11733
11767
|
line-height: ${font.lineHeight.xs};
|
|
11734
11768
|
white-space: nowrap;
|
|
11735
11769
|
color: ${t2(colors.gray[600], colors.gray[300])};
|
|
11736
11770
|
`,
|
|
11737
|
-
queryFlavorLogo:
|
|
11771
|
+
queryFlavorLogo: css`
|
|
11738
11772
|
font-weight: ${font.weight.semibold};
|
|
11739
11773
|
font-size: ${font.size.xs};
|
|
11740
11774
|
background: linear-gradient(
|
|
@@ -11747,12 +11781,12 @@ var stylesFactory2 = (theme) => {
|
|
|
11747
11781
|
-webkit-text-fill-color: transparent;
|
|
11748
11782
|
white-space: nowrap;
|
|
11749
11783
|
`,
|
|
11750
|
-
queryStatusContainer:
|
|
11784
|
+
queryStatusContainer: css`
|
|
11751
11785
|
display: flex;
|
|
11752
11786
|
gap: ${tokens.size[2]};
|
|
11753
11787
|
height: min-content;
|
|
11754
11788
|
`,
|
|
11755
|
-
queryStatusTag:
|
|
11789
|
+
queryStatusTag: css`
|
|
11756
11790
|
display: flex;
|
|
11757
11791
|
gap: ${tokens.size[1.5]};
|
|
11758
11792
|
box-sizing: border-box;
|
|
@@ -11773,10 +11807,10 @@ var stylesFactory2 = (theme) => {
|
|
|
11773
11807
|
outline: 2px solid ${colors.blue[800]};
|
|
11774
11808
|
}
|
|
11775
11809
|
`,
|
|
11776
|
-
queryStatusTagLabel:
|
|
11810
|
+
queryStatusTagLabel: css`
|
|
11777
11811
|
font-size: ${font.size.xs};
|
|
11778
11812
|
`,
|
|
11779
|
-
queryStatusCount:
|
|
11813
|
+
queryStatusCount: css`
|
|
11780
11814
|
font-size: ${font.size.xs};
|
|
11781
11815
|
padding: 0 5px;
|
|
11782
11816
|
display: flex;
|
|
@@ -11788,7 +11822,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11788
11822
|
font-variant-numeric: tabular-nums;
|
|
11789
11823
|
height: ${tokens.size[4.5]};
|
|
11790
11824
|
`,
|
|
11791
|
-
statusTooltip:
|
|
11825
|
+
statusTooltip: css`
|
|
11792
11826
|
position: absolute;
|
|
11793
11827
|
z-index: 1;
|
|
11794
11828
|
background-color: ${t2(colors.gray[50], colors.darkGray[500])};
|
|
@@ -11828,7 +11862,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11828
11862
|
border-width: 7px;
|
|
11829
11863
|
}
|
|
11830
11864
|
`,
|
|
11831
|
-
filtersContainer:
|
|
11865
|
+
filtersContainer: css`
|
|
11832
11866
|
display: flex;
|
|
11833
11867
|
gap: ${tokens.size[2]};
|
|
11834
11868
|
& > button {
|
|
@@ -11857,7 +11891,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11857
11891
|
}
|
|
11858
11892
|
}
|
|
11859
11893
|
`,
|
|
11860
|
-
filterInput:
|
|
11894
|
+
filterInput: css`
|
|
11861
11895
|
padding: ${size2[0.5]} ${size2[2]};
|
|
11862
11896
|
border-radius: ${tokens.border.radius.sm};
|
|
11863
11897
|
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
@@ -11896,7 +11930,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11896
11930
|
outline: 2px solid ${colors.blue[800]};
|
|
11897
11931
|
}
|
|
11898
11932
|
`,
|
|
11899
|
-
filterSelect:
|
|
11933
|
+
filterSelect: css`
|
|
11900
11934
|
padding: ${tokens.size[0.5]} ${tokens.size[2]};
|
|
11901
11935
|
border-radius: ${tokens.border.radius.sm};
|
|
11902
11936
|
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
@@ -11930,11 +11964,11 @@ var stylesFactory2 = (theme) => {
|
|
|
11930
11964
|
outline: 2px solid ${colors.blue[800]};
|
|
11931
11965
|
}
|
|
11932
11966
|
`,
|
|
11933
|
-
actionsContainer:
|
|
11967
|
+
actionsContainer: css`
|
|
11934
11968
|
display: flex;
|
|
11935
11969
|
gap: ${tokens.size[2]};
|
|
11936
11970
|
`,
|
|
11937
|
-
actionsBtn:
|
|
11971
|
+
actionsBtn: css`
|
|
11938
11972
|
border-radius: ${tokens.border.radius.sm};
|
|
11939
11973
|
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
11940
11974
|
border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
|
|
@@ -11961,13 +11995,13 @@ var stylesFactory2 = (theme) => {
|
|
|
11961
11995
|
outline: 2px solid ${colors.blue[800]};
|
|
11962
11996
|
}
|
|
11963
11997
|
`,
|
|
11964
|
-
actionsBtnOffline:
|
|
11998
|
+
actionsBtnOffline: css`
|
|
11965
11999
|
& svg {
|
|
11966
12000
|
stroke: ${t2(colors.yellow[700], colors.yellow[500])};
|
|
11967
12001
|
fill: ${t2(colors.yellow[700], colors.yellow[500])};
|
|
11968
12002
|
}
|
|
11969
12003
|
`,
|
|
11970
|
-
overflowQueryContainer:
|
|
12004
|
+
overflowQueryContainer: css`
|
|
11971
12005
|
flex: 1;
|
|
11972
12006
|
overflow-y: auto;
|
|
11973
12007
|
& > div {
|
|
@@ -11975,7 +12009,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11975
12009
|
flex-direction: column;
|
|
11976
12010
|
}
|
|
11977
12011
|
`,
|
|
11978
|
-
queryRow:
|
|
12012
|
+
queryRow: css`
|
|
11979
12013
|
display: flex;
|
|
11980
12014
|
align-items: center;
|
|
11981
12015
|
padding: 0;
|
|
@@ -12037,10 +12071,10 @@ var stylesFactory2 = (theme) => {
|
|
|
12037
12071
|
font-size: ${font.size.xs};
|
|
12038
12072
|
}
|
|
12039
12073
|
`,
|
|
12040
|
-
selectedQueryRow:
|
|
12074
|
+
selectedQueryRow: css`
|
|
12041
12075
|
background-color: ${t2(colors.gray[200], colors.darkGray[500])};
|
|
12042
12076
|
`,
|
|
12043
|
-
detailsContainer:
|
|
12077
|
+
detailsContainer: css`
|
|
12044
12078
|
flex: 1 1 700px;
|
|
12045
12079
|
background-color: ${t2(colors.gray[50], colors.darkGray[700])};
|
|
12046
12080
|
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
@@ -12051,7 +12085,7 @@ var stylesFactory2 = (theme) => {
|
|
|
12051
12085
|
display: flex;
|
|
12052
12086
|
text-align: left;
|
|
12053
12087
|
`,
|
|
12054
|
-
detailsHeader:
|
|
12088
|
+
detailsHeader: css`
|
|
12055
12089
|
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
12056
12090
|
position: sticky;
|
|
12057
12091
|
top: 0;
|
|
@@ -12063,7 +12097,7 @@ var stylesFactory2 = (theme) => {
|
|
|
12063
12097
|
line-height: ${font.lineHeight.xs};
|
|
12064
12098
|
text-align: left;
|
|
12065
12099
|
`,
|
|
12066
|
-
detailsBody:
|
|
12100
|
+
detailsBody: css`
|
|
12067
12101
|
margin: ${tokens.size[1.5]} 0px ${tokens.size[2]} 0px;
|
|
12068
12102
|
& > div {
|
|
12069
12103
|
display: flex;
|
|
@@ -12097,13 +12131,13 @@ var stylesFactory2 = (theme) => {
|
|
|
12097
12131
|
align-items: center;
|
|
12098
12132
|
}
|
|
12099
12133
|
`,
|
|
12100
|
-
queryDetailsStatus:
|
|
12134
|
+
queryDetailsStatus: css`
|
|
12101
12135
|
border: 1px solid ${colors.darkGray[200]};
|
|
12102
12136
|
border-radius: ${tokens.border.radius.sm};
|
|
12103
12137
|
font-weight: ${font.weight.medium};
|
|
12104
12138
|
padding: ${tokens.size[1]} ${tokens.size[2.5]};
|
|
12105
12139
|
`,
|
|
12106
|
-
actionsBody:
|
|
12140
|
+
actionsBody: css`
|
|
12107
12141
|
flex-wrap: wrap;
|
|
12108
12142
|
margin: ${tokens.size[2]} 0px ${tokens.size[2]} 0px;
|
|
12109
12143
|
display: flex;
|
|
@@ -12143,7 +12177,7 @@ var stylesFactory2 = (theme) => {
|
|
|
12143
12177
|
}
|
|
12144
12178
|
}
|
|
12145
12179
|
`,
|
|
12146
|
-
actionsSelect:
|
|
12180
|
+
actionsSelect: css`
|
|
12147
12181
|
font-size: ${font.size.xs};
|
|
12148
12182
|
padding: ${tokens.size[0.5]} ${tokens.size[2]};
|
|
12149
12183
|
display: flex;
|
|
@@ -12192,7 +12226,7 @@ var stylesFactory2 = (theme) => {
|
|
|
12192
12226
|
height: ${tokens.size[2]};
|
|
12193
12227
|
}
|
|
12194
12228
|
`,
|
|
12195
|
-
settingsMenu:
|
|
12229
|
+
settingsMenu: css`
|
|
12196
12230
|
display: flex;
|
|
12197
12231
|
& * {
|
|
12198
12232
|
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
@@ -12208,7 +12242,7 @@ var stylesFactory2 = (theme) => {
|
|
|
12208
12242
|
min-width: 120px;
|
|
12209
12243
|
padding: ${size2[0.5]};
|
|
12210
12244
|
`,
|
|
12211
|
-
settingsSubTrigger:
|
|
12245
|
+
settingsSubTrigger: css`
|
|
12212
12246
|
display: flex;
|
|
12213
12247
|
align-items: center;
|
|
12214
12248
|
justify-content: space-between;
|
|
@@ -12236,14 +12270,14 @@ var stylesFactory2 = (theme) => {
|
|
|
12236
12270
|
cursor: not-allowed;
|
|
12237
12271
|
}
|
|
12238
12272
|
`,
|
|
12239
|
-
settingsMenuHeader:
|
|
12273
|
+
settingsMenuHeader: css`
|
|
12240
12274
|
padding: ${tokens.size[1]} ${tokens.size[1]};
|
|
12241
12275
|
font-weight: ${font.weight.medium};
|
|
12242
12276
|
border-bottom: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
|
|
12243
12277
|
color: ${t2(colors.gray[500], colors.gray[400])};
|
|
12244
12278
|
font-size: ${font.size["xs"]};
|
|
12245
12279
|
`,
|
|
12246
|
-
settingsSubButton:
|
|
12280
|
+
settingsSubButton: css`
|
|
12247
12281
|
display: flex;
|
|
12248
12282
|
align-items: center;
|
|
12249
12283
|
justify-content: space-between;
|
|
@@ -12265,7 +12299,7 @@ var stylesFactory2 = (theme) => {
|
|
|
12265
12299
|
outline: 2px solid ${colors.blue[800]};
|
|
12266
12300
|
}
|
|
12267
12301
|
`,
|
|
12268
|
-
themeSelectedButton:
|
|
12302
|
+
themeSelectedButton: css`
|
|
12269
12303
|
background-color: ${t2(colors.purple[100], colors.purple[900])};
|
|
12270
12304
|
color: ${t2(colors.purple[700], colors.purple[300])};
|
|
12271
12305
|
& svg {
|
|
@@ -12275,7 +12309,7 @@ var stylesFactory2 = (theme) => {
|
|
|
12275
12309
|
background-color: ${t2(colors.purple[100], colors.purple[900])};
|
|
12276
12310
|
}
|
|
12277
12311
|
`,
|
|
12278
|
-
viewToggle:
|
|
12312
|
+
viewToggle: css`
|
|
12279
12313
|
border-radius: ${tokens.border.radius.sm};
|
|
12280
12314
|
background-color: ${t2(colors.gray[200], colors.darkGray[600])};
|
|
12281
12315
|
border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
|
|
@@ -12327,8 +12361,8 @@ var stylesFactory2 = (theme) => {
|
|
|
12327
12361
|
`
|
|
12328
12362
|
};
|
|
12329
12363
|
};
|
|
12330
|
-
var lightStyles2 = stylesFactory2("light");
|
|
12331
|
-
var darkStyles2 = stylesFactory2("dark");
|
|
12364
|
+
var lightStyles2 = (css) => stylesFactory2("light", css);
|
|
12365
|
+
var darkStyles2 = (css) => stylesFactory2("dark", css);
|
|
12332
12366
|
delegateEvents(["click", "mousedown", "input"]);
|
|
12333
12367
|
/*! Bundled license information:
|
|
12334
12368
|
|