@tanstack/query-devtools 5.0.0-rc.9 → 5.0.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/{5OOWR6BQ.jsx → 3BAJISSX.jsx} +604 -266
- package/build/Devtools/{CIR3WCBJ.js → 4TNE5QTO.js} +733 -428
- package/build/Devtools/{336SHOD5.jsx → OWSLDUSP.jsx} +604 -266
- package/build/Devtools/{XXDYGLB2.js → YSRICXZI.js} +733 -428
- package/build/dev.cjs +781 -464
- package/build/dev.js +42 -32
- package/build/dev.jsx +42 -32
- package/build/index.cjs +781 -464
- package/build/index.d.cts +1 -14
- package/build/index.d.ts +1 -14
- package/build/index.js +42 -32
- package/build/index.jsx +42 -32
- package/package.json +2 -2
- package/src/Context.ts +9 -0
- package/src/Devtools.tsx +422 -206
- package/src/Explorer.tsx +140 -61
- package/src/icons/index.tsx +118 -19
- package/src/index.tsx +41 -41
- package/src/utils.tsx +17 -0
|
@@ -9478,6 +9478,19 @@ var sortFns = {
|
|
|
9478
9478
|
var convertRemToPixels = (rem) => {
|
|
9479
9479
|
return rem * parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
9480
9480
|
};
|
|
9481
|
+
var getPreferredColorScheme = () => {
|
|
9482
|
+
const [colorScheme, setColorScheme] = createSignal("dark");
|
|
9483
|
+
onMount(() => {
|
|
9484
|
+
const query = window.matchMedia("(prefers-color-scheme: dark)");
|
|
9485
|
+
setColorScheme(query.matches ? "dark" : "light");
|
|
9486
|
+
const listener = (e2) => {
|
|
9487
|
+
setColorScheme(e2.matches ? "dark" : "light");
|
|
9488
|
+
};
|
|
9489
|
+
query.addEventListener("change", listener);
|
|
9490
|
+
onCleanup(() => query.removeEventListener("change", listener));
|
|
9491
|
+
});
|
|
9492
|
+
return colorScheme;
|
|
9493
|
+
};
|
|
9481
9494
|
var updateNestedDataByPath = (oldData, updatePath2, value) => {
|
|
9482
9495
|
if (updatePath2.length === 0) {
|
|
9483
9496
|
return value;
|
|
@@ -9569,7 +9582,7 @@ function Search() {
|
|
|
9569
9582
|
xmlns="http://www.w3.org/2000/svg"
|
|
9570
9583
|
><path
|
|
9571
9584
|
d="M13 13L9.00007 9M10.3333 5.66667C10.3333 8.244 8.244 10.3333 5.66667 10.3333C3.08934 10.3333 1 8.244 1 5.66667C1 3.08934 3.08934 1 5.66667 1C8.244 1 10.3333 3.08934 10.3333 5.66667Z"
|
|
9572
|
-
stroke="
|
|
9585
|
+
stroke="currentColor"
|
|
9573
9586
|
stroke-width="1.66667"
|
|
9574
9587
|
stroke-linecap="round"
|
|
9575
9588
|
stroke-linejoin="round"
|
|
@@ -9584,8 +9597,8 @@ function Trash() {
|
|
|
9584
9597
|
xmlns="http://www.w3.org/2000/svg"
|
|
9585
9598
|
><path
|
|
9586
9599
|
d="M9 3H15M3 6H21M19 6L18.2987 16.5193C18.1935 18.0975 18.1409 18.8867 17.8 19.485C17.4999 20.0118 17.0472 20.4353 16.5017 20.6997C15.882 21 15.0911 21 13.5093 21H10.4907C8.90891 21 8.11803 21 7.49834 20.6997C6.95276 20.4353 6.50009 20.0118 6.19998 19.485C5.85911 18.8867 5.8065 18.0975 5.70129 16.5193L5 6M10 10.5V15.5M14 10.5V15.5"
|
|
9587
|
-
stroke="
|
|
9588
|
-
stroke-width="
|
|
9600
|
+
stroke="currentColor"
|
|
9601
|
+
stroke-width="2"
|
|
9589
9602
|
stroke-linecap="round"
|
|
9590
9603
|
stroke-linejoin="round"
|
|
9591
9604
|
/></svg>;
|
|
@@ -9599,7 +9612,7 @@ function ChevronDown() {
|
|
|
9599
9612
|
xmlns="http://www.w3.org/2000/svg"
|
|
9600
9613
|
><path
|
|
9601
9614
|
d="M1 1L5 5L9 1"
|
|
9602
|
-
stroke="
|
|
9615
|
+
stroke="currentColor"
|
|
9603
9616
|
stroke-width="1.66667"
|
|
9604
9617
|
stroke-linecap="round"
|
|
9605
9618
|
stroke-linejoin="round"
|
|
@@ -9614,7 +9627,7 @@ function ArrowUp() {
|
|
|
9614
9627
|
xmlns="http://www.w3.org/2000/svg"
|
|
9615
9628
|
><path
|
|
9616
9629
|
d="M8 13.3333V2.66667M8 2.66667L4 6.66667M8 2.66667L12 6.66667"
|
|
9617
|
-
stroke="
|
|
9630
|
+
stroke="currentColor"
|
|
9618
9631
|
stroke-width="1.66667"
|
|
9619
9632
|
stroke-linecap="round"
|
|
9620
9633
|
stroke-linejoin="round"
|
|
@@ -9629,7 +9642,7 @@ function ArrowDown() {
|
|
|
9629
9642
|
xmlns="http://www.w3.org/2000/svg"
|
|
9630
9643
|
><path
|
|
9631
9644
|
d="M8 2.66667V13.3333M8 13.3333L4 9.33333M8 13.3333L12 9.33333"
|
|
9632
|
-
stroke="
|
|
9645
|
+
stroke="currentColor"
|
|
9633
9646
|
stroke-width="1.66667"
|
|
9634
9647
|
stroke-linecap="round"
|
|
9635
9648
|
stroke-linejoin="round"
|
|
@@ -9647,7 +9660,7 @@ function ArrowLeft() {
|
|
|
9647
9660
|
}}
|
|
9648
9661
|
><path
|
|
9649
9662
|
d="M8 2.66667V13.3333M8 13.3333L4 9.33333M8 13.3333L12 9.33333"
|
|
9650
|
-
stroke="
|
|
9663
|
+
stroke="currentColor"
|
|
9651
9664
|
stroke-width="1.66667"
|
|
9652
9665
|
stroke-linecap="round"
|
|
9653
9666
|
stroke-linejoin="round"
|
|
@@ -9665,16 +9678,61 @@ function ArrowRight() {
|
|
|
9665
9678
|
}}
|
|
9666
9679
|
><path
|
|
9667
9680
|
d="M8 2.66667V13.3333M8 13.3333L4 9.33333M8 13.3333L12 9.33333"
|
|
9668
|
-
stroke="
|
|
9681
|
+
stroke="currentColor"
|
|
9669
9682
|
stroke-width="1.66667"
|
|
9670
9683
|
stroke-linecap="round"
|
|
9671
9684
|
stroke-linejoin="round"
|
|
9672
9685
|
/></svg>;
|
|
9673
9686
|
}
|
|
9687
|
+
function Sun() {
|
|
9688
|
+
return <svg
|
|
9689
|
+
viewBox="0 0 24 24"
|
|
9690
|
+
height="12"
|
|
9691
|
+
width="12"
|
|
9692
|
+
fill="none"
|
|
9693
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
9694
|
+
><path
|
|
9695
|
+
d="M12 2v2m0 16v2M4 12H2m4.314-5.686L4.9 4.9m12.786 1.414L19.1 4.9M6.314 17.69 4.9 19.104m12.786-1.414 1.414 1.414M22 12h-2m-3 0a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"
|
|
9696
|
+
stroke="currentColor"
|
|
9697
|
+
stroke-width="2"
|
|
9698
|
+
stroke-linecap="round"
|
|
9699
|
+
stroke-linejoin="round"
|
|
9700
|
+
/></svg>;
|
|
9701
|
+
}
|
|
9702
|
+
function Moon() {
|
|
9703
|
+
return <svg
|
|
9704
|
+
viewBox="0 0 24 24"
|
|
9705
|
+
height="12"
|
|
9706
|
+
width="12"
|
|
9707
|
+
fill="none"
|
|
9708
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
9709
|
+
><path
|
|
9710
|
+
d="M22 15.844a10.424 10.424 0 0 1-4.306.925c-5.779 0-10.463-4.684-10.463-10.462 0-1.536.33-2.994.925-4.307A10.464 10.464 0 0 0 2 11.538C2 17.316 6.684 22 12.462 22c4.243 0 7.896-2.526 9.538-6.156Z"
|
|
9711
|
+
stroke="currentColor"
|
|
9712
|
+
stroke-width="2"
|
|
9713
|
+
stroke-linecap="round"
|
|
9714
|
+
stroke-linejoin="round"
|
|
9715
|
+
/></svg>;
|
|
9716
|
+
}
|
|
9717
|
+
function Monitor() {
|
|
9718
|
+
return <svg
|
|
9719
|
+
viewBox="0 0 24 24"
|
|
9720
|
+
height="12"
|
|
9721
|
+
width="12"
|
|
9722
|
+
fill="none"
|
|
9723
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
9724
|
+
><path
|
|
9725
|
+
d="M8 21h8m-4-4v4m-5.2-4h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 14.72 22 13.88 22 12.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v4.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 17 5.12 17 6.8 17Z"
|
|
9726
|
+
stroke="currentColor"
|
|
9727
|
+
stroke-width="2"
|
|
9728
|
+
stroke-linecap="round"
|
|
9729
|
+
stroke-linejoin="round"
|
|
9730
|
+
/></svg>;
|
|
9731
|
+
}
|
|
9674
9732
|
function Wifi() {
|
|
9675
9733
|
return <svg
|
|
9676
|
-
stroke="
|
|
9677
|
-
fill="
|
|
9734
|
+
stroke="currentColor"
|
|
9735
|
+
fill="currentColor"
|
|
9678
9736
|
stroke-width="0"
|
|
9679
9737
|
viewBox="0 0 24 24"
|
|
9680
9738
|
height="1em"
|
|
@@ -9687,8 +9745,6 @@ function Wifi() {
|
|
|
9687
9745
|
}
|
|
9688
9746
|
function Offline() {
|
|
9689
9747
|
return <svg
|
|
9690
|
-
stroke={tokens.colors.yellow[500]}
|
|
9691
|
-
fill={tokens.colors.yellow[500]}
|
|
9692
9748
|
stroke-width="0"
|
|
9693
9749
|
viewBox="0 0 24 24"
|
|
9694
9750
|
height="1em"
|
|
@@ -9712,14 +9768,14 @@ function Settings() {
|
|
|
9712
9768
|
>
|
|
9713
9769
|
<path
|
|
9714
9770
|
d="M9.3951 19.3711L9.97955 20.6856C10.1533 21.0768 10.4368 21.4093 10.7958 21.6426C11.1547 21.8759 11.5737 22.0001 12.0018 22C12.4299 22.0001 12.8488 21.8759 13.2078 21.6426C13.5667 21.4093 13.8503 21.0768 14.024 20.6856L14.6084 19.3711C14.8165 18.9047 15.1664 18.5159 15.6084 18.26C16.0532 18.0034 16.5678 17.8941 17.0784 17.9478L18.5084 18.1C18.9341 18.145 19.3637 18.0656 19.7451 17.8713C20.1265 17.6771 20.4434 17.3763 20.6573 17.0056C20.8715 16.635 20.9735 16.2103 20.9511 15.7829C20.9286 15.3555 20.7825 14.9438 20.5307 14.5978L19.684 13.4344C19.3825 13.0171 19.2214 12.5148 19.224 12C19.2239 11.4866 19.3865 10.9864 19.6884 10.5711L20.5351 9.40778C20.787 9.06175 20.933 8.65007 20.9555 8.22267C20.978 7.79528 20.8759 7.37054 20.6618 7C20.4479 6.62923 20.131 6.32849 19.7496 6.13423C19.3681 5.93997 18.9386 5.86053 18.5129 5.90556L17.0829 6.05778C16.5722 6.11141 16.0577 6.00212 15.6129 5.74556C15.17 5.48825 14.82 5.09736 14.6129 4.62889L14.024 3.31444C13.8503 2.92317 13.5667 2.59072 13.2078 2.3574C12.8488 2.12408 12.4299 1.99993 12.0018 2C11.5737 1.99993 11.1547 2.12408 10.7958 2.3574C10.4368 2.59072 10.1533 2.92317 9.97955 3.31444L9.3951 4.62889C9.18803 5.09736 8.83798 5.48825 8.3951 5.74556C7.95032 6.00212 7.43577 6.11141 6.9251 6.05778L5.49066 5.90556C5.06499 5.86053 4.6354 5.93997 4.25397 6.13423C3.87255 6.32849 3.55567 6.62923 3.34177 7C3.12759 7.37054 3.02555 7.79528 3.04804 8.22267C3.07052 8.65007 3.21656 9.06175 3.46844 9.40778L4.3151 10.5711C4.61704 10.9864 4.77964 11.4866 4.77955 12C4.77964 12.5134 4.61704 13.0137 4.3151 13.4289L3.46844 14.5922C3.21656 14.9382 3.07052 15.3499 3.04804 15.7773C3.02555 16.2047 3.12759 16.6295 3.34177 17C3.55589 17.3706 3.8728 17.6712 4.25417 17.8654C4.63554 18.0596 5.06502 18.1392 5.49066 18.0944L6.92066 17.9422C7.43133 17.8886 7.94587 17.9979 8.39066 18.2544C8.83519 18.511 9.18687 18.902 9.3951 19.3711Z"
|
|
9715
|
-
stroke="
|
|
9771
|
+
stroke="currentColor"
|
|
9716
9772
|
stroke-width="2"
|
|
9717
9773
|
stroke-linecap="round"
|
|
9718
9774
|
stroke-linejoin="round"
|
|
9719
9775
|
/>
|
|
9720
9776
|
<path
|
|
9721
9777
|
d="M12 15C13.6568 15 15 13.6569 15 12C15 10.3431 13.6568 9 12 9C10.3431 9 8.99998 10.3431 8.99998 12C8.99998 13.6569 10.3431 15 12 15Z"
|
|
9722
|
-
stroke="
|
|
9778
|
+
stroke="currentColor"
|
|
9723
9779
|
stroke-width="2"
|
|
9724
9780
|
stroke-linecap="round"
|
|
9725
9781
|
stroke-linejoin="round"
|
|
@@ -9739,10 +9795,10 @@ function Copier() {
|
|
|
9739
9795
|
stroke-width="2"
|
|
9740
9796
|
stroke-linecap="round"
|
|
9741
9797
|
stroke-linejoin="round"
|
|
9742
|
-
stroke="
|
|
9798
|
+
stroke="currentColor"
|
|
9743
9799
|
/></svg>;
|
|
9744
9800
|
}
|
|
9745
|
-
function CopiedCopier() {
|
|
9801
|
+
function CopiedCopier(props) {
|
|
9746
9802
|
return <svg
|
|
9747
9803
|
width="24"
|
|
9748
9804
|
height="24"
|
|
@@ -9751,7 +9807,7 @@ function CopiedCopier() {
|
|
|
9751
9807
|
xmlns="http://www.w3.org/2000/svg"
|
|
9752
9808
|
><path
|
|
9753
9809
|
d="M7.5 12L10.5 15L16.5 9M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"
|
|
9754
|
-
stroke="#12B76A"
|
|
9810
|
+
stroke={props.theme === "dark" ? "#12B76A" : "#027A48"}
|
|
9755
9811
|
stroke-width="2"
|
|
9756
9812
|
stroke-linecap="round"
|
|
9757
9813
|
stroke-linejoin="round"
|
|
@@ -9778,7 +9834,7 @@ function List() {
|
|
|
9778
9834
|
height="24"
|
|
9779
9835
|
viewBox="0 0 24 24"
|
|
9780
9836
|
fill="none"
|
|
9781
|
-
stroke="
|
|
9837
|
+
stroke="currentColor"
|
|
9782
9838
|
stroke-width="2"
|
|
9783
9839
|
xmlns="http://www.w3.org/2000/svg"
|
|
9784
9840
|
>
|
|
@@ -9788,6 +9844,36 @@ function List() {
|
|
|
9788
9844
|
<line class="list-item" y1="17" y2="17" x1="6" x2="18" />
|
|
9789
9845
|
</svg>;
|
|
9790
9846
|
}
|
|
9847
|
+
function Check(props) {
|
|
9848
|
+
return <>
|
|
9849
|
+
<Show when={props.checked}><svg
|
|
9850
|
+
width="24"
|
|
9851
|
+
height="24"
|
|
9852
|
+
viewBox="0 0 24 24"
|
|
9853
|
+
fill="none"
|
|
9854
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
9855
|
+
><path
|
|
9856
|
+
d="M7.5 12L10.5 15L16.5 9M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"
|
|
9857
|
+
stroke={props.theme === "dark" ? "#9B8AFB" : "#6938EF"}
|
|
9858
|
+
stroke-width="2"
|
|
9859
|
+
stroke-linecap="round"
|
|
9860
|
+
stroke-linejoin="round"
|
|
9861
|
+
/></svg></Show>
|
|
9862
|
+
<Show when={!props.checked}><svg
|
|
9863
|
+
viewBox="0 0 24 24"
|
|
9864
|
+
height="20"
|
|
9865
|
+
width="20"
|
|
9866
|
+
fill="none"
|
|
9867
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
9868
|
+
><path
|
|
9869
|
+
d="M3 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8Z"
|
|
9870
|
+
stroke={props.theme === "dark" ? "#9B8AFB" : "#6938EF"}
|
|
9871
|
+
stroke-width="2"
|
|
9872
|
+
stroke-linecap="round"
|
|
9873
|
+
stroke-linejoin="round"
|
|
9874
|
+
/></svg></Show>
|
|
9875
|
+
</>;
|
|
9876
|
+
}
|
|
9791
9877
|
function TanstackLogo() {
|
|
9792
9878
|
return <svg version="1.0" viewBox="0 0 633 633">
|
|
9793
9879
|
<linearGradient
|
|
@@ -10514,6 +10600,12 @@ var QueryDevtoolsContext = createContext({
|
|
|
10514
10600
|
function useQueryDevtoolsContext() {
|
|
10515
10601
|
return useContext(QueryDevtoolsContext);
|
|
10516
10602
|
}
|
|
10603
|
+
var ThemeContext = createContext(
|
|
10604
|
+
() => "dark"
|
|
10605
|
+
);
|
|
10606
|
+
function useTheme() {
|
|
10607
|
+
return useContext(ThemeContext);
|
|
10608
|
+
}
|
|
10517
10609
|
|
|
10518
10610
|
// src/Explorer.tsx
|
|
10519
10611
|
function chunkArray(array, size2) {
|
|
@@ -10528,10 +10620,13 @@ function chunkArray(array, size2) {
|
|
|
10528
10620
|
return result;
|
|
10529
10621
|
}
|
|
10530
10622
|
var Expander = (props) => {
|
|
10531
|
-
const
|
|
10623
|
+
const theme = useTheme();
|
|
10624
|
+
const styles = createMemo(() => {
|
|
10625
|
+
return theme() === "dark" ? darkStyles : lightStyles;
|
|
10626
|
+
});
|
|
10532
10627
|
return <span
|
|
10533
10628
|
class={clsx(
|
|
10534
|
-
styles.expander,
|
|
10629
|
+
styles().expander,
|
|
10535
10630
|
u`
|
|
10536
10631
|
transform: rotate(${props.expanded ? 90 : 0}deg);
|
|
10537
10632
|
`,
|
|
@@ -10555,10 +10650,13 @@ var Expander = (props) => {
|
|
|
10555
10650
|
/></svg></span>;
|
|
10556
10651
|
};
|
|
10557
10652
|
var CopyButton = (props) => {
|
|
10558
|
-
const
|
|
10653
|
+
const theme = useTheme();
|
|
10654
|
+
const styles = createMemo(() => {
|
|
10655
|
+
return theme() === "dark" ? darkStyles : lightStyles;
|
|
10656
|
+
});
|
|
10559
10657
|
const [copyState, setCopyState] = createSignal("NoCopy");
|
|
10560
10658
|
return <button
|
|
10561
|
-
class={styles.actionButton}
|
|
10659
|
+
class={styles().actionButton}
|
|
10562
10660
|
title="Copy object to clipboard"
|
|
10563
10661
|
aria-label={`${copyState() === "NoCopy" ? "Copy object to clipboard" : copyState() === "SuccessCopy" ? "Object copied to clipboard" : "Error copying object to clipboard"}`}
|
|
10564
10662
|
onClick={copyState() === "NoCopy" ? () => {
|
|
@@ -10580,15 +10678,18 @@ var CopyButton = (props) => {
|
|
|
10580
10678
|
} : void 0}
|
|
10581
10679
|
><Switch>
|
|
10582
10680
|
<Match when={copyState() === "NoCopy"}><Copier /></Match>
|
|
10583
|
-
<Match when={copyState() === "SuccessCopy"}><CopiedCopier /></Match>
|
|
10681
|
+
<Match when={copyState() === "SuccessCopy"}><CopiedCopier theme={theme()} /></Match>
|
|
10584
10682
|
<Match when={copyState() === "ErrorCopy"}><ErrorCopier /></Match>
|
|
10585
10683
|
</Switch></button>;
|
|
10586
10684
|
};
|
|
10587
10685
|
var ClearArrayButton = (props) => {
|
|
10588
|
-
const
|
|
10686
|
+
const theme = useTheme();
|
|
10687
|
+
const styles = createMemo(() => {
|
|
10688
|
+
return theme() === "dark" ? darkStyles : lightStyles;
|
|
10689
|
+
});
|
|
10589
10690
|
const queryClient = useQueryDevtoolsContext().client;
|
|
10590
10691
|
return <button
|
|
10591
|
-
class={styles.actionButton}
|
|
10692
|
+
class={styles().actionButton}
|
|
10592
10693
|
title="Remove all items"
|
|
10593
10694
|
aria-label="Remove all items"
|
|
10594
10695
|
onClick={() => {
|
|
@@ -10599,10 +10700,13 @@ var ClearArrayButton = (props) => {
|
|
|
10599
10700
|
><List /></button>;
|
|
10600
10701
|
};
|
|
10601
10702
|
var DeleteItemButton = (props) => {
|
|
10602
|
-
const
|
|
10703
|
+
const theme = useTheme();
|
|
10704
|
+
const styles = createMemo(() => {
|
|
10705
|
+
return theme() === "dark" ? darkStyles : lightStyles;
|
|
10706
|
+
});
|
|
10603
10707
|
const queryClient = useQueryDevtoolsContext().client;
|
|
10604
10708
|
return <button
|
|
10605
|
-
class={clsx(styles.actionButton)}
|
|
10709
|
+
class={clsx(styles().actionButton)}
|
|
10606
10710
|
title="Delete item"
|
|
10607
10711
|
aria-label="Delete item"
|
|
10608
10712
|
onClick={() => {
|
|
@@ -10612,11 +10716,41 @@ var DeleteItemButton = (props) => {
|
|
|
10612
10716
|
}}
|
|
10613
10717
|
><Trash /></button>;
|
|
10614
10718
|
};
|
|
10719
|
+
var ToggleValueButton = (props) => {
|
|
10720
|
+
const theme = useTheme();
|
|
10721
|
+
const styles = createMemo(() => {
|
|
10722
|
+
return theme() === "dark" ? darkStyles : lightStyles;
|
|
10723
|
+
});
|
|
10724
|
+
const queryClient = useQueryDevtoolsContext().client;
|
|
10725
|
+
return <button
|
|
10726
|
+
class={clsx(
|
|
10727
|
+
styles().actionButton,
|
|
10728
|
+
u`
|
|
10729
|
+
width: ${tokens.size[3.5]};
|
|
10730
|
+
height: ${tokens.size[3.5]};
|
|
10731
|
+
`
|
|
10732
|
+
)}
|
|
10733
|
+
title="Toggle value"
|
|
10734
|
+
aria-label="Toggle value"
|
|
10735
|
+
onClick={() => {
|
|
10736
|
+
const oldData = props.activeQuery.state.data;
|
|
10737
|
+
const newData = updateNestedDataByPath(
|
|
10738
|
+
oldData,
|
|
10739
|
+
props.dataPath,
|
|
10740
|
+
!props.value
|
|
10741
|
+
);
|
|
10742
|
+
queryClient.setQueryData(props.activeQuery.queryKey, newData);
|
|
10743
|
+
}}
|
|
10744
|
+
><Check theme={theme()} checked={props.value} /></button>;
|
|
10745
|
+
};
|
|
10615
10746
|
function isIterable(x) {
|
|
10616
10747
|
return Symbol.iterator in x;
|
|
10617
10748
|
}
|
|
10618
10749
|
function Explorer(props) {
|
|
10619
|
-
const
|
|
10750
|
+
const theme = useTheme();
|
|
10751
|
+
const styles = createMemo(() => {
|
|
10752
|
+
return theme() === "dark" ? darkStyles : lightStyles;
|
|
10753
|
+
});
|
|
10620
10754
|
const queryClient = useQueryDevtoolsContext().client;
|
|
10621
10755
|
const [expanded, setExpanded] = createSignal(
|
|
10622
10756
|
(props.defaultExpanded || []).includes(props.label)
|
|
@@ -10660,25 +10794,25 @@ function Explorer(props) {
|
|
|
10660
10794
|
});
|
|
10661
10795
|
const subEntryPages = createMemo(() => chunkArray(subEntries(), 100));
|
|
10662
10796
|
const currentDataPath = props.dataPath ?? [];
|
|
10663
|
-
return <div class={styles.entry}>
|
|
10797
|
+
return <div class={styles().entry}>
|
|
10664
10798
|
<Show when={subEntryPages().length}>
|
|
10665
|
-
<div class={styles.expanderButtonContainer}>
|
|
10799
|
+
<div class={styles().expanderButtonContainer}>
|
|
10666
10800
|
<button
|
|
10667
|
-
class={styles.expanderButton}
|
|
10801
|
+
class={styles().expanderButton}
|
|
10668
10802
|
onClick={() => toggleExpanded()}
|
|
10669
10803
|
>
|
|
10670
10804
|
<Expander expanded={expanded()} />
|
|
10671
10805
|
{" "}
|
|
10672
10806
|
<span>{props.label}</span>
|
|
10673
10807
|
{" "}
|
|
10674
|
-
<span class={styles.info}>
|
|
10808
|
+
<span class={styles().info}>
|
|
10675
10809
|
{String(type()).toLowerCase() === "iterable" ? "(Iterable) " : ""}
|
|
10676
10810
|
{subEntries().length}
|
|
10677
10811
|
{" "}
|
|
10678
10812
|
{subEntries().length > 1 ? `items` : `item`}
|
|
10679
10813
|
</span>
|
|
10680
10814
|
</button>
|
|
10681
|
-
<Show when={props.editable}><div class={styles.actions}>
|
|
10815
|
+
<Show when={props.editable}><div class={styles().actions}>
|
|
10682
10816
|
<CopyButton value={props.value} />
|
|
10683
10817
|
<Show
|
|
10684
10818
|
when={props.itemsDeletable && props.activeQuery !== void 0}
|
|
@@ -10695,7 +10829,7 @@ function Explorer(props) {
|
|
|
10695
10829
|
</div></Show>
|
|
10696
10830
|
</div>
|
|
10697
10831
|
<Show when={expanded()}>
|
|
10698
|
-
<Show when={subEntryPages().length === 1}><div class={styles.subEntry}><Key each={subEntries()} by={(item) => item.label}>{(entry) => {
|
|
10832
|
+
<Show when={subEntryPages().length === 1}><div class={styles().subEntry}><Key each={subEntries()} by={(item) => item.label}>{(entry) => {
|
|
10699
10833
|
return <Explorer
|
|
10700
10834
|
defaultExpanded={props.defaultExpanded}
|
|
10701
10835
|
label={entry().label}
|
|
@@ -10706,12 +10840,12 @@ function Explorer(props) {
|
|
|
10706
10840
|
itemsDeletable={type() === "array" || type() === "Iterable" || type() === "object"}
|
|
10707
10841
|
/>;
|
|
10708
10842
|
}}</Key></div></Show>
|
|
10709
|
-
<Show when={subEntryPages().length > 1}><div class={styles.subEntry}><Index each={subEntryPages()}>{(entries3, index) => <div><div class={styles.entry}>
|
|
10843
|
+
<Show when={subEntryPages().length > 1}><div class={styles().subEntry}><Index each={subEntryPages()}>{(entries3, index) => <div><div class={styles().entry}>
|
|
10710
10844
|
<button
|
|
10711
10845
|
onClick={() => setExpandedPages(
|
|
10712
10846
|
(old) => old.includes(index) ? old.filter((d) => d !== index) : [...old, index]
|
|
10713
10847
|
)}
|
|
10714
|
-
class={styles.expanderButton}
|
|
10848
|
+
class={styles().expanderButton}
|
|
10715
10849
|
>
|
|
10716
10850
|
<Expander expanded={expandedPages().includes(index)} />
|
|
10717
10851
|
{" "}
|
|
@@ -10721,7 +10855,7 @@ function Explorer(props) {
|
|
|
10721
10855
|
{index * 100 + 100 - 1}
|
|
10722
10856
|
{"]"}
|
|
10723
10857
|
</button>
|
|
10724
|
-
<Show when={expandedPages().includes(index)}><div class={styles.subEntry}><Key each={entries3()} by={(entry) => entry.label}>{(entry) => <Explorer
|
|
10858
|
+
<Show when={expandedPages().includes(index)}><div class={styles().subEntry}><Key each={entries3()} by={(entry) => entry.label}>{(entry) => <Explorer
|
|
10725
10859
|
defaultExpanded={props.defaultExpanded}
|
|
10726
10860
|
label={entry().label}
|
|
10727
10861
|
value={entry().value}
|
|
@@ -10732,28 +10866,46 @@ function Explorer(props) {
|
|
|
10732
10866
|
</div></div>}</Index></div></Show>
|
|
10733
10867
|
</Show>
|
|
10734
10868
|
</Show>
|
|
10735
|
-
<Show when={subEntryPages().length === 0}><div class={styles.row}>
|
|
10736
|
-
<span class={styles.label}>
|
|
10869
|
+
<Show when={subEntryPages().length === 0}><div class={styles().row}>
|
|
10870
|
+
<span class={styles().label}>
|
|
10737
10871
|
{props.label}
|
|
10738
10872
|
{":"}
|
|
10739
10873
|
</span>
|
|
10740
10874
|
<Show
|
|
10741
|
-
when={props.editable && props.activeQuery !== void 0 && (type() === "string" || type() === "number")}
|
|
10742
|
-
fallback={<span class={styles.value}>{displayValue(props.value)}</span>}
|
|
10743
|
-
|
|
10744
|
-
|
|
10745
|
-
|
|
10746
|
-
|
|
10747
|
-
|
|
10748
|
-
|
|
10749
|
-
|
|
10750
|
-
|
|
10751
|
-
|
|
10752
|
-
|
|
10753
|
-
|
|
10754
|
-
|
|
10755
|
-
|
|
10756
|
-
|
|
10875
|
+
when={props.editable && props.activeQuery !== void 0 && (type() === "string" || type() === "number" || type() === "boolean")}
|
|
10876
|
+
fallback={<span class={styles().value}>{displayValue(props.value)}</span>}
|
|
10877
|
+
>
|
|
10878
|
+
<Show
|
|
10879
|
+
when={props.editable && props.activeQuery !== void 0 && (type() === "string" || type() === "number")}
|
|
10880
|
+
><input
|
|
10881
|
+
type={type() === "number" ? "number" : "text"}
|
|
10882
|
+
class={clsx(styles().value, styles().editableInput)}
|
|
10883
|
+
value={props.value}
|
|
10884
|
+
onChange={(changeEvent) => {
|
|
10885
|
+
const oldData = props.activeQuery.state.data;
|
|
10886
|
+
const newData = updateNestedDataByPath(
|
|
10887
|
+
oldData,
|
|
10888
|
+
currentDataPath,
|
|
10889
|
+
type() === "number" ? changeEvent.target.valueAsNumber : changeEvent.target.value
|
|
10890
|
+
);
|
|
10891
|
+
queryClient.setQueryData(props.activeQuery.queryKey, newData);
|
|
10892
|
+
}}
|
|
10893
|
+
/></Show>
|
|
10894
|
+
<Show when={type() === "boolean"}><span
|
|
10895
|
+
class={clsx(
|
|
10896
|
+
styles().value,
|
|
10897
|
+
styles().actions,
|
|
10898
|
+
styles().editableInput
|
|
10899
|
+
)}
|
|
10900
|
+
>
|
|
10901
|
+
<ToggleValueButton
|
|
10902
|
+
activeQuery={props.activeQuery}
|
|
10903
|
+
dataPath={currentDataPath}
|
|
10904
|
+
value={props.value}
|
|
10905
|
+
/>
|
|
10906
|
+
{displayValue(props.value)}
|
|
10907
|
+
</span></Show>
|
|
10908
|
+
</Show>
|
|
10757
10909
|
<Show
|
|
10758
10910
|
when={props.editable && props.itemsDeletable && props.activeQuery !== void 0}
|
|
10759
10911
|
><DeleteItemButton
|
|
@@ -10763,8 +10915,9 @@ function Explorer(props) {
|
|
|
10763
10915
|
</div></Show>
|
|
10764
10916
|
</div>;
|
|
10765
10917
|
}
|
|
10766
|
-
var
|
|
10918
|
+
var stylesFactory = (theme) => {
|
|
10767
10919
|
const { colors, font, size: size2, border } = tokens;
|
|
10920
|
+
const t2 = (light, dark) => theme === "light" ? light : dark;
|
|
10768
10921
|
return {
|
|
10769
10922
|
entry: u`
|
|
10770
10923
|
& * {
|
|
@@ -10778,7 +10931,7 @@ var getStyles = () => {
|
|
|
10778
10931
|
subEntry: u`
|
|
10779
10932
|
margin: 0 0 0 0.5em;
|
|
10780
10933
|
padding-left: 0.75em;
|
|
10781
|
-
border-left: 2px solid ${colors.darkGray[400]};
|
|
10934
|
+
border-left: 2px solid ${t2(colors.gray[300], colors.darkGray[400])};
|
|
10782
10935
|
/* outline: 1px solid ${colors.teal[400]}; */
|
|
10783
10936
|
`,
|
|
10784
10937
|
expander: u`
|
|
@@ -10827,21 +10980,22 @@ var getStyles = () => {
|
|
|
10827
10980
|
}
|
|
10828
10981
|
`,
|
|
10829
10982
|
info: u`
|
|
10830
|
-
color: ${colors.gray[500]};
|
|
10983
|
+
color: ${t2(colors.gray[500], colors.gray[500])};
|
|
10831
10984
|
font-size: ${font.size.xs};
|
|
10832
10985
|
margin-left: ${size2[1]};
|
|
10833
10986
|
/* outline: 1px solid ${colors.yellow[400]}; */
|
|
10834
10987
|
`,
|
|
10835
10988
|
label: u`
|
|
10836
|
-
color: ${colors.gray[300]};
|
|
10989
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
10837
10990
|
`,
|
|
10838
10991
|
value: u`
|
|
10839
|
-
color: ${colors.purple[400]};
|
|
10992
|
+
color: ${t2(colors.purple[600], colors.purple[400])};
|
|
10840
10993
|
flex-grow: 1;
|
|
10841
10994
|
`,
|
|
10842
10995
|
actions: u`
|
|
10843
10996
|
display: inline-flex;
|
|
10844
10997
|
gap: ${size2[2]};
|
|
10998
|
+
align-items: center;
|
|
10845
10999
|
`,
|
|
10846
11000
|
row: u`
|
|
10847
11001
|
display: inline-flex;
|
|
@@ -10849,19 +11003,22 @@ var getStyles = () => {
|
|
|
10849
11003
|
width: 100%;
|
|
10850
11004
|
margin-bottom: ${size2[0.5]};
|
|
10851
11005
|
line-height: 1.125rem;
|
|
11006
|
+
align-items: center;
|
|
10852
11007
|
`,
|
|
10853
11008
|
editableInput: u`
|
|
10854
11009
|
border: none;
|
|
10855
|
-
padding:
|
|
11010
|
+
padding: ${size2[0.5]} ${size2[1]} ${size2[0.5]} ${size2[1.5]};
|
|
10856
11011
|
flex-grow: 1;
|
|
10857
|
-
|
|
11012
|
+
border-radius: ${border.radius.xs};
|
|
11013
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[500])};
|
|
10858
11014
|
|
|
10859
11015
|
&:hover {
|
|
10860
|
-
background-color: ${colors.gray[
|
|
11016
|
+
background-color: ${t2(colors.gray[300], colors.darkGray[600])};
|
|
10861
11017
|
}
|
|
10862
11018
|
`,
|
|
10863
11019
|
actionButton: u`
|
|
10864
11020
|
background-color: transparent;
|
|
11021
|
+
color: ${t2(colors.gray[500], colors.gray[500])};
|
|
10865
11022
|
border: none;
|
|
10866
11023
|
display: inline-flex;
|
|
10867
11024
|
padding: 0px;
|
|
@@ -10874,14 +11031,7 @@ var getStyles = () => {
|
|
|
10874
11031
|
z-index: 1;
|
|
10875
11032
|
|
|
10876
11033
|
&:hover svg {
|
|
10877
|
-
.
|
|
10878
|
-
.list {
|
|
10879
|
-
stroke: ${colors.gray[500]} !important;
|
|
10880
|
-
}
|
|
10881
|
-
|
|
10882
|
-
.list-item {
|
|
10883
|
-
stroke: ${colors.gray[700]};
|
|
10884
|
-
}
|
|
11034
|
+
color: ${t2(colors.gray[600], colors.gray[400])};
|
|
10885
11035
|
}
|
|
10886
11036
|
|
|
10887
11037
|
&:focus-visible {
|
|
@@ -10892,6 +11042,8 @@ var getStyles = () => {
|
|
|
10892
11042
|
`
|
|
10893
11043
|
};
|
|
10894
11044
|
};
|
|
11045
|
+
var lightStyles = stylesFactory("light");
|
|
11046
|
+
var darkStyles = stylesFactory("dark");
|
|
10895
11047
|
|
|
10896
11048
|
// src/fonts.ts
|
|
10897
11049
|
var loadFonts = () => {
|
|
@@ -10907,6 +11059,7 @@ var secondBreakpoint = 796;
|
|
|
10907
11059
|
var thirdBreakpoint = 700;
|
|
10908
11060
|
var BUTTON_POSITION = "bottom-right";
|
|
10909
11061
|
var POSITION = "bottom";
|
|
11062
|
+
var THEME_PREFERENCE = "system";
|
|
10910
11063
|
var INITIAL_IS_OPEN = false;
|
|
10911
11064
|
var DEFAULT_HEIGHT = 500;
|
|
10912
11065
|
var DEFAULT_WIDTH = 500;
|
|
@@ -10917,28 +11070,38 @@ var [selectedQueryHash, setSelectedQueryHash] = createSignal(
|
|
|
10917
11070
|
);
|
|
10918
11071
|
var [panelWidth, setPanelWidth] = createSignal(0);
|
|
10919
11072
|
var DevtoolsComponent = (props) => {
|
|
10920
|
-
|
|
11073
|
+
const [localStore, setLocalStore] = createLocalStorage({
|
|
11074
|
+
prefix: "TanstackQueryDevtools"
|
|
11075
|
+
});
|
|
11076
|
+
const colorScheme = getPreferredColorScheme();
|
|
11077
|
+
const theme = createMemo(() => {
|
|
11078
|
+
const preference = localStore.theme_preference || THEME_PREFERENCE;
|
|
11079
|
+
if (preference !== "system")
|
|
11080
|
+
return preference;
|
|
11081
|
+
return colorScheme();
|
|
11082
|
+
});
|
|
11083
|
+
return <QueryDevtoolsContext.Provider value={props}><ThemeContext.Provider value={theme}><Devtools localStore={localStore} setLocalStore={setLocalStore} /></ThemeContext.Provider></QueryDevtoolsContext.Provider>;
|
|
10921
11084
|
};
|
|
10922
11085
|
var Devtools_default = DevtoolsComponent;
|
|
10923
|
-
var Devtools = () => {
|
|
11086
|
+
var Devtools = (props) => {
|
|
10924
11087
|
loadFonts();
|
|
10925
|
-
const
|
|
10926
|
-
const
|
|
10927
|
-
|
|
11088
|
+
const theme = useTheme();
|
|
11089
|
+
const styles = createMemo(() => {
|
|
11090
|
+
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
10928
11091
|
});
|
|
10929
11092
|
const buttonPosition = createMemo(() => {
|
|
10930
11093
|
return useQueryDevtoolsContext().buttonPosition || BUTTON_POSITION;
|
|
10931
11094
|
});
|
|
10932
11095
|
const isOpen = createMemo(() => {
|
|
10933
|
-
return localStore.open === "true" ? true : localStore.open === "false" ? false : useQueryDevtoolsContext().initialIsOpen || INITIAL_IS_OPEN;
|
|
11096
|
+
return props.localStore.open === "true" ? true : props.localStore.open === "false" ? false : useQueryDevtoolsContext().initialIsOpen || INITIAL_IS_OPEN;
|
|
10934
11097
|
});
|
|
10935
11098
|
const position = createMemo(() => {
|
|
10936
|
-
return localStore.position || useQueryDevtoolsContext().position || POSITION;
|
|
11099
|
+
return props.localStore.position || useQueryDevtoolsContext().position || POSITION;
|
|
10937
11100
|
});
|
|
10938
11101
|
createEffect(() => {
|
|
10939
11102
|
const root = document.querySelector(".tsqd-parent-container");
|
|
10940
|
-
const height = localStore.height || DEFAULT_HEIGHT;
|
|
10941
|
-
const width = localStore.width || DEFAULT_WIDTH;
|
|
11103
|
+
const height = props.localStore.height || DEFAULT_HEIGHT;
|
|
11104
|
+
const width = props.localStore.width || DEFAULT_WIDTH;
|
|
10942
11105
|
const panelPosition = position();
|
|
10943
11106
|
root.style.setProperty(
|
|
10944
11107
|
"--tsqd-panel-height",
|
|
@@ -10976,25 +11139,28 @@ var Devtools = () => {
|
|
|
10976
11139
|
)}
|
|
10977
11140
|
>
|
|
10978
11141
|
<TransitionGroup name="tsqd-panel-transition"><Show when={isOpen()}><DevtoolsPanel
|
|
10979
|
-
localStore={localStore}
|
|
10980
|
-
setLocalStore={setLocalStore}
|
|
11142
|
+
localStore={props.localStore}
|
|
11143
|
+
setLocalStore={props.setLocalStore}
|
|
10981
11144
|
/></Show></TransitionGroup>
|
|
10982
11145
|
<TransitionGroup name="tsqd-button-transition"><Show when={!isOpen()}><div
|
|
10983
11146
|
class={clsx(
|
|
10984
|
-
styles.devtoolsBtn,
|
|
10985
|
-
styles[`devtoolsBtn-position-${buttonPosition()}`]
|
|
11147
|
+
styles().devtoolsBtn,
|
|
11148
|
+
styles()[`devtoolsBtn-position-${buttonPosition()}`]
|
|
10986
11149
|
)}
|
|
10987
11150
|
>
|
|
10988
11151
|
<div aria-hidden="true"><TanstackLogo /></div>
|
|
10989
11152
|
<button
|
|
10990
11153
|
aria-label="Open Tanstack query devtools"
|
|
10991
|
-
onClick={() => setLocalStore("open", "true")}
|
|
11154
|
+
onClick={() => props.setLocalStore("open", "true")}
|
|
10992
11155
|
><TanstackLogo /></button>
|
|
10993
11156
|
</div></Show></TransitionGroup>
|
|
10994
11157
|
</div>;
|
|
10995
11158
|
};
|
|
10996
11159
|
var DevtoolsPanel = (props) => {
|
|
10997
|
-
const
|
|
11160
|
+
const theme = useTheme();
|
|
11161
|
+
const styles = createMemo(() => {
|
|
11162
|
+
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
11163
|
+
});
|
|
10998
11164
|
const [isResizing, setIsResizing] = createSignal(false);
|
|
10999
11165
|
const sort = createMemo(() => props.localStore.sort || DEFAULT_SORT_FN_NAME);
|
|
11000
11166
|
const sortOrder = createMemo(
|
|
@@ -11111,14 +11277,25 @@ var DevtoolsPanel = (props) => {
|
|
|
11111
11277
|
});
|
|
11112
11278
|
});
|
|
11113
11279
|
});
|
|
11280
|
+
const getPanelDynamicStyles = () => {
|
|
11281
|
+
const { colors } = tokens;
|
|
11282
|
+
const t2 = (light, dark) => theme() === "dark" ? dark : light;
|
|
11283
|
+
if (panelWidth() < secondBreakpoint) {
|
|
11284
|
+
return u`
|
|
11285
|
+
flex-direction: column;
|
|
11286
|
+
background-color: ${t2(colors.gray[300], colors.gray[600])};
|
|
11287
|
+
`;
|
|
11288
|
+
}
|
|
11289
|
+
return u`
|
|
11290
|
+
flex-direction: row;
|
|
11291
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[900])};
|
|
11292
|
+
`;
|
|
11293
|
+
};
|
|
11114
11294
|
return <aside
|
|
11115
11295
|
class={clsx(
|
|
11116
|
-
styles.panel,
|
|
11117
|
-
styles[`panel-position-${position()}`],
|
|
11118
|
-
|
|
11119
|
-
flex-direction: ${panelWidth() < secondBreakpoint ? "column" : "row"};
|
|
11120
|
-
background-color: ${panelWidth() < secondBreakpoint ? tokens.colors.gray[600] : tokens.colors.darkGray[900]};
|
|
11121
|
-
`,
|
|
11296
|
+
styles().panel,
|
|
11297
|
+
styles()[`panel-position-${position()}`],
|
|
11298
|
+
getPanelDynamicStyles(),
|
|
11122
11299
|
{
|
|
11123
11300
|
[u`
|
|
11124
11301
|
min-width: min-content;
|
|
@@ -11135,8 +11312,8 @@ var DevtoolsPanel = (props) => {
|
|
|
11135
11312
|
>
|
|
11136
11313
|
<div
|
|
11137
11314
|
class={clsx(
|
|
11138
|
-
styles.dragHandle,
|
|
11139
|
-
styles[`dragHandle-position-${position()}`],
|
|
11315
|
+
styles().dragHandle,
|
|
11316
|
+
styles()[`dragHandle-position-${position()}`],
|
|
11140
11317
|
"tsqd-drag-handle"
|
|
11141
11318
|
)}
|
|
11142
11319
|
onMouseDown={handleDragStart}
|
|
@@ -11144,8 +11321,8 @@ var DevtoolsPanel = (props) => {
|
|
|
11144
11321
|
<button
|
|
11145
11322
|
aria-label="Close tanstack query devtools"
|
|
11146
11323
|
class={clsx(
|
|
11147
|
-
styles.closeBtn,
|
|
11148
|
-
styles[`closeBtn-position-${position()}`],
|
|
11324
|
+
styles().closeBtn,
|
|
11325
|
+
styles()[`closeBtn-position-${position()}`],
|
|
11149
11326
|
"tsqd-minimize-btn"
|
|
11150
11327
|
)}
|
|
11151
11328
|
onClick={() => props.setLocalStore("open", "false")}
|
|
@@ -11153,7 +11330,7 @@ var DevtoolsPanel = (props) => {
|
|
|
11153
11330
|
<div
|
|
11154
11331
|
ref={queriesContainerRef}
|
|
11155
11332
|
class={clsx(
|
|
11156
|
-
styles.queriesContainer,
|
|
11333
|
+
styles().queriesContainer,
|
|
11157
11334
|
panelWidth() < secondBreakpoint && selectedQueryHash() && u`
|
|
11158
11335
|
height: 50%;
|
|
11159
11336
|
max-height: 50%;
|
|
@@ -11161,15 +11338,18 @@ var DevtoolsPanel = (props) => {
|
|
|
11161
11338
|
"tsqd-queries-container"
|
|
11162
11339
|
)}
|
|
11163
11340
|
>
|
|
11164
|
-
<div class={clsx(styles.row, "tsqd-header")}>
|
|
11341
|
+
<div class={clsx(styles().row, "tsqd-header")}>
|
|
11165
11342
|
<button
|
|
11166
|
-
class={clsx(styles.logo, "tsqd-text-logo-container")}
|
|
11343
|
+
class={clsx(styles().logo, "tsqd-text-logo-container")}
|
|
11167
11344
|
onClick={() => props.setLocalStore("open", "false")}
|
|
11168
11345
|
aria-label="Close Tanstack query devtools"
|
|
11169
11346
|
>
|
|
11170
|
-
<span class={clsx(styles.tanstackLogo, "tsqd-text-logo-tanstack")}>TANSTACK</span>
|
|
11347
|
+
<span class={clsx(styles().tanstackLogo, "tsqd-text-logo-tanstack")}>TANSTACK</span>
|
|
11171
11348
|
<span
|
|
11172
|
-
class={clsx(
|
|
11349
|
+
class={clsx(
|
|
11350
|
+
styles().queryFlavorLogo,
|
|
11351
|
+
"tsqd-text-logo-query-flavor"
|
|
11352
|
+
)}
|
|
11173
11353
|
>
|
|
11174
11354
|
{useQueryDevtoolsContext().queryFlavor}
|
|
11175
11355
|
{" v"}
|
|
@@ -11180,17 +11360,17 @@ var DevtoolsPanel = (props) => {
|
|
|
11180
11360
|
</div>
|
|
11181
11361
|
<div
|
|
11182
11362
|
class={clsx(
|
|
11183
|
-
styles.row,
|
|
11363
|
+
styles().row,
|
|
11184
11364
|
u`
|
|
11185
11365
|
gap: ${tokens.size[2.5]};
|
|
11186
11366
|
`,
|
|
11187
11367
|
"tsqd-filters-actions-container"
|
|
11188
11368
|
)}
|
|
11189
11369
|
>
|
|
11190
|
-
<div class={clsx(styles.filtersContainer, "tsqd-filters-container")}>
|
|
11370
|
+
<div class={clsx(styles().filtersContainer, "tsqd-filters-container")}>
|
|
11191
11371
|
<div
|
|
11192
11372
|
class={clsx(
|
|
11193
|
-
styles.filterInput,
|
|
11373
|
+
styles().filterInput,
|
|
11194
11374
|
"tsqd-query-filter-textfield-container"
|
|
11195
11375
|
)}
|
|
11196
11376
|
>
|
|
@@ -11206,7 +11386,7 @@ var DevtoolsPanel = (props) => {
|
|
|
11206
11386
|
</div>
|
|
11207
11387
|
<div
|
|
11208
11388
|
class={clsx(
|
|
11209
|
-
styles.filterSelect,
|
|
11389
|
+
styles().filterSelect,
|
|
11210
11390
|
"tsqd-query-filter-sort-container"
|
|
11211
11391
|
)}
|
|
11212
11392
|
>
|
|
@@ -11237,13 +11417,13 @@ var DevtoolsPanel = (props) => {
|
|
|
11237
11417
|
</Show>
|
|
11238
11418
|
</button>
|
|
11239
11419
|
</div>
|
|
11240
|
-
<div class={clsx(styles.actionsContainer, "tsqd-actions-container")}>
|
|
11420
|
+
<div class={clsx(styles().actionsContainer, "tsqd-actions-container")}>
|
|
11241
11421
|
<button
|
|
11242
11422
|
onClick={() => {
|
|
11243
11423
|
cache().clear();
|
|
11244
11424
|
}}
|
|
11245
11425
|
class={clsx(
|
|
11246
|
-
styles.actionsBtn,
|
|
11426
|
+
styles().actionsBtn,
|
|
11247
11427
|
"tsqd-actions-btn",
|
|
11248
11428
|
"tsqd-action-clear-cache"
|
|
11249
11429
|
)}
|
|
@@ -11261,7 +11441,8 @@ var DevtoolsPanel = (props) => {
|
|
|
11261
11441
|
}
|
|
11262
11442
|
}}
|
|
11263
11443
|
class={clsx(
|
|
11264
|
-
styles.actionsBtn,
|
|
11444
|
+
styles().actionsBtn,
|
|
11445
|
+
offline() && styles().actionsBtnOffline,
|
|
11265
11446
|
"tsqd-actions-btn",
|
|
11266
11447
|
"tsqd-action-mock-offline-behavior"
|
|
11267
11448
|
)}
|
|
@@ -11272,24 +11453,24 @@ var DevtoolsPanel = (props) => {
|
|
|
11272
11453
|
<index$d.Root gutter={4}>
|
|
11273
11454
|
<index$d.Trigger
|
|
11274
11455
|
class={clsx(
|
|
11275
|
-
styles.actionsBtn,
|
|
11456
|
+
styles().actionsBtn,
|
|
11276
11457
|
"tsqd-actions-btn",
|
|
11277
11458
|
"tsqd-action-settings"
|
|
11278
11459
|
)}
|
|
11279
11460
|
><Settings /></index$d.Trigger>
|
|
11280
11461
|
<index$d.Portal><index$d.Content
|
|
11281
|
-
class={clsx(styles.settingsMenu, "tsqd-settings-menu")}
|
|
11462
|
+
class={clsx(styles().settingsMenu, "tsqd-settings-menu")}
|
|
11282
11463
|
>
|
|
11283
11464
|
<div
|
|
11284
11465
|
class={clsx(
|
|
11285
|
-
styles.settingsMenuHeader,
|
|
11466
|
+
styles().settingsMenuHeader,
|
|
11286
11467
|
"tsqd-settings-menu-header"
|
|
11287
11468
|
)}
|
|
11288
11469
|
>Settings</div>
|
|
11289
11470
|
<index$d.Sub overlap gutter={8} shift={-4}>
|
|
11290
11471
|
<index$d.SubTrigger
|
|
11291
11472
|
class={clsx(
|
|
11292
|
-
styles.settingsSubTrigger,
|
|
11473
|
+
styles().settingsSubTrigger,
|
|
11293
11474
|
"tsqd-settings-menu-sub-trigger",
|
|
11294
11475
|
"tsqd-settings-menu-sub-trigger-position"
|
|
11295
11476
|
)}
|
|
@@ -11298,7 +11479,10 @@ var DevtoolsPanel = (props) => {
|
|
|
11298
11479
|
<ChevronDown />
|
|
11299
11480
|
</index$d.SubTrigger>
|
|
11300
11481
|
<index$d.Portal><index$d.SubContent
|
|
11301
|
-
class={clsx(
|
|
11482
|
+
class={clsx(
|
|
11483
|
+
styles().settingsMenu,
|
|
11484
|
+
"tsqd-settings-submenu"
|
|
11485
|
+
)}
|
|
11302
11486
|
>
|
|
11303
11487
|
<index$d.Item
|
|
11304
11488
|
onSelect={() => {
|
|
@@ -11306,7 +11490,7 @@ var DevtoolsPanel = (props) => {
|
|
|
11306
11490
|
}}
|
|
11307
11491
|
as="button"
|
|
11308
11492
|
class={clsx(
|
|
11309
|
-
styles.settingsSubButton,
|
|
11493
|
+
styles().settingsSubButton,
|
|
11310
11494
|
"tsqd-settings-menu-position-btn",
|
|
11311
11495
|
"tsqd-settings-menu-position-btn-top"
|
|
11312
11496
|
)}
|
|
@@ -11320,7 +11504,7 @@ var DevtoolsPanel = (props) => {
|
|
|
11320
11504
|
}}
|
|
11321
11505
|
as="button"
|
|
11322
11506
|
class={clsx(
|
|
11323
|
-
styles.settingsSubButton,
|
|
11507
|
+
styles().settingsSubButton,
|
|
11324
11508
|
"tsqd-settings-menu-position-btn",
|
|
11325
11509
|
"tsqd-settings-menu-position-btn-bottom"
|
|
11326
11510
|
)}
|
|
@@ -11334,7 +11518,7 @@ var DevtoolsPanel = (props) => {
|
|
|
11334
11518
|
}}
|
|
11335
11519
|
as="button"
|
|
11336
11520
|
class={clsx(
|
|
11337
|
-
styles.settingsSubButton,
|
|
11521
|
+
styles().settingsSubButton,
|
|
11338
11522
|
"tsqd-settings-menu-position-btn",
|
|
11339
11523
|
"tsqd-settings-menu-position-btn-left"
|
|
11340
11524
|
)}
|
|
@@ -11348,7 +11532,7 @@ var DevtoolsPanel = (props) => {
|
|
|
11348
11532
|
}}
|
|
11349
11533
|
as="button"
|
|
11350
11534
|
class={clsx(
|
|
11351
|
-
styles.settingsSubButton,
|
|
11535
|
+
styles().settingsSubButton,
|
|
11352
11536
|
"tsqd-settings-menu-position-btn",
|
|
11353
11537
|
"tsqd-settings-menu-position-btn-right"
|
|
11354
11538
|
)}
|
|
@@ -11358,13 +11542,77 @@ var DevtoolsPanel = (props) => {
|
|
|
11358
11542
|
</index$d.Item>
|
|
11359
11543
|
</index$d.SubContent></index$d.Portal>
|
|
11360
11544
|
</index$d.Sub>
|
|
11545
|
+
<index$d.Sub overlap gutter={8} shift={-4}>
|
|
11546
|
+
<index$d.SubTrigger
|
|
11547
|
+
class={clsx(
|
|
11548
|
+
styles().settingsSubTrigger,
|
|
11549
|
+
"tsqd-settings-menu-sub-trigger",
|
|
11550
|
+
"tsqd-settings-menu-sub-trigger-position"
|
|
11551
|
+
)}
|
|
11552
|
+
>
|
|
11553
|
+
<span>Theme</span>
|
|
11554
|
+
<ChevronDown />
|
|
11555
|
+
</index$d.SubTrigger>
|
|
11556
|
+
<index$d.Portal><index$d.SubContent
|
|
11557
|
+
class={clsx(
|
|
11558
|
+
styles().settingsMenu,
|
|
11559
|
+
"tsqd-settings-submenu"
|
|
11560
|
+
)}
|
|
11561
|
+
>
|
|
11562
|
+
<index$d.Item
|
|
11563
|
+
onSelect={() => {
|
|
11564
|
+
props.setLocalStore("theme_preference", "light");
|
|
11565
|
+
}}
|
|
11566
|
+
as="button"
|
|
11567
|
+
class={clsx(
|
|
11568
|
+
styles().settingsSubButton,
|
|
11569
|
+
props.localStore.theme_preference === "light" && styles().themeSelectedButton,
|
|
11570
|
+
"tsqd-settings-menu-position-btn",
|
|
11571
|
+
"tsqd-settings-menu-position-btn-top"
|
|
11572
|
+
)}
|
|
11573
|
+
>
|
|
11574
|
+
<span>Light</span>
|
|
11575
|
+
<Sun />
|
|
11576
|
+
</index$d.Item>
|
|
11577
|
+
<index$d.Item
|
|
11578
|
+
onSelect={() => {
|
|
11579
|
+
props.setLocalStore("theme_preference", "dark");
|
|
11580
|
+
}}
|
|
11581
|
+
as="button"
|
|
11582
|
+
class={clsx(
|
|
11583
|
+
styles().settingsSubButton,
|
|
11584
|
+
props.localStore.theme_preference === "dark" && styles().themeSelectedButton,
|
|
11585
|
+
"tsqd-settings-menu-position-btn",
|
|
11586
|
+
"tsqd-settings-menu-position-btn-bottom"
|
|
11587
|
+
)}
|
|
11588
|
+
>
|
|
11589
|
+
<span>Dark</span>
|
|
11590
|
+
<Moon />
|
|
11591
|
+
</index$d.Item>
|
|
11592
|
+
<index$d.Item
|
|
11593
|
+
onSelect={() => {
|
|
11594
|
+
props.setLocalStore("theme_preference", "system");
|
|
11595
|
+
}}
|
|
11596
|
+
as="button"
|
|
11597
|
+
class={clsx(
|
|
11598
|
+
styles().settingsSubButton,
|
|
11599
|
+
props.localStore.theme_preference === "system" && styles().themeSelectedButton,
|
|
11600
|
+
"tsqd-settings-menu-position-btn",
|
|
11601
|
+
"tsqd-settings-menu-position-btn-left"
|
|
11602
|
+
)}
|
|
11603
|
+
>
|
|
11604
|
+
<span>System</span>
|
|
11605
|
+
<Monitor />
|
|
11606
|
+
</index$d.Item>
|
|
11607
|
+
</index$d.SubContent></index$d.Portal>
|
|
11608
|
+
</index$d.Sub>
|
|
11361
11609
|
</index$d.Content></index$d.Portal>
|
|
11362
11610
|
</index$d.Root>
|
|
11363
11611
|
</div>
|
|
11364
11612
|
</div>
|
|
11365
11613
|
<div
|
|
11366
11614
|
class={clsx(
|
|
11367
|
-
styles.overflowQueryContainer,
|
|
11615
|
+
styles().overflowQueryContainer,
|
|
11368
11616
|
"tsqd-queries-overflow-container"
|
|
11369
11617
|
)}
|
|
11370
11618
|
><div class="tsqd-queries-container"><Key by={(q) => q.queryHash} each={queries()}>{(query) => <QueryRow query={query()} />}</Key></div></div>
|
|
@@ -11373,7 +11621,12 @@ var DevtoolsPanel = (props) => {
|
|
|
11373
11621
|
</aside>;
|
|
11374
11622
|
};
|
|
11375
11623
|
var QueryRow = (props) => {
|
|
11376
|
-
const
|
|
11624
|
+
const theme = useTheme();
|
|
11625
|
+
const styles = createMemo(() => {
|
|
11626
|
+
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
11627
|
+
});
|
|
11628
|
+
const { colors, alpha } = tokens;
|
|
11629
|
+
const t2 = (light, dark) => theme() === "dark" ? dark : light;
|
|
11377
11630
|
const queryState = createSubscribeToQueryCacheBatcher(
|
|
11378
11631
|
(queryCache) => queryCache().find({
|
|
11379
11632
|
queryKey: props.query.queryKey
|
|
@@ -11401,28 +11654,34 @@ var QueryRow = (props) => {
|
|
|
11401
11654
|
isStale: isStale()
|
|
11402
11655
|
})
|
|
11403
11656
|
);
|
|
11657
|
+
const getObserverCountColorStyles = () => {
|
|
11658
|
+
if (color() === "gray") {
|
|
11659
|
+
return u`
|
|
11660
|
+
background-color: ${t2(colors[color()][200], colors[color()][700])};
|
|
11661
|
+
color: ${t2(colors[color()][700], colors[color()][300])};
|
|
11662
|
+
`;
|
|
11663
|
+
}
|
|
11664
|
+
return u`
|
|
11665
|
+
background-color: ${t2(
|
|
11666
|
+
colors[color()][200] + alpha[80],
|
|
11667
|
+
colors[color()][900]
|
|
11668
|
+
)};
|
|
11669
|
+
color: ${t2(colors[color()][800], colors[color()][300])};
|
|
11670
|
+
`;
|
|
11671
|
+
};
|
|
11404
11672
|
return <Show when={queryState()}><button
|
|
11405
11673
|
onClick={() => setSelectedQueryHash(
|
|
11406
11674
|
props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash
|
|
11407
11675
|
)}
|
|
11408
11676
|
class={clsx(
|
|
11409
|
-
styles.queryRow,
|
|
11410
|
-
selectedQueryHash() === props.query.queryHash && styles.selectedQueryRow,
|
|
11677
|
+
styles().queryRow,
|
|
11678
|
+
selectedQueryHash() === props.query.queryHash && styles().selectedQueryRow,
|
|
11411
11679
|
"tsqd-query-row"
|
|
11412
11680
|
)}
|
|
11413
11681
|
aria-label={`Query key ${props.query.queryHash}`}
|
|
11414
11682
|
>
|
|
11415
11683
|
<div
|
|
11416
|
-
class={clsx(
|
|
11417
|
-
color() === "gray" ? u`
|
|
11418
|
-
background-color: ${tokens.colors[color()][700]};
|
|
11419
|
-
color: ${tokens.colors[color()][300]};
|
|
11420
|
-
` : u`
|
|
11421
|
-
background-color: ${tokens.colors[color()][900]};
|
|
11422
|
-
color: ${tokens.colors[color()][300]};
|
|
11423
|
-
`,
|
|
11424
|
-
"tsqd-query-observer-count"
|
|
11425
|
-
)}
|
|
11684
|
+
class={clsx(getObserverCountColorStyles(), "tsqd-query-observer-count")}
|
|
11426
11685
|
>{observers()}</div>
|
|
11427
11686
|
<code class="tsqd-query-hash">{props.query.queryHash}</code>
|
|
11428
11687
|
<Show when={isDisabled()}><div class="tsqd-query-disabled-indicator">disabled</div></Show>
|
|
@@ -11444,8 +11703,13 @@ var QueryStatusCount = () => {
|
|
|
11444
11703
|
const inactive = createSubscribeToQueryCacheBatcher(
|
|
11445
11704
|
(queryCache) => queryCache().getAll().filter((q) => getQueryStatusLabel(q) === "inactive").length
|
|
11446
11705
|
);
|
|
11447
|
-
const
|
|
11448
|
-
|
|
11706
|
+
const theme = useTheme();
|
|
11707
|
+
const styles = createMemo(() => {
|
|
11708
|
+
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
11709
|
+
});
|
|
11710
|
+
return <div
|
|
11711
|
+
class={clsx(styles().queryStatusContainer, "tsqd-query-status-container")}
|
|
11712
|
+
>
|
|
11449
11713
|
<QueryStatus label="Fresh" color="green" count={fresh()} />
|
|
11450
11714
|
<QueryStatus label="Fetching" color="blue" count={fetching()} />
|
|
11451
11715
|
<QueryStatus label="Paused" color="purple" count={paused()} />
|
|
@@ -11454,7 +11718,12 @@ var QueryStatusCount = () => {
|
|
|
11454
11718
|
</div>;
|
|
11455
11719
|
};
|
|
11456
11720
|
var QueryStatus = (props) => {
|
|
11457
|
-
const
|
|
11721
|
+
const theme = useTheme();
|
|
11722
|
+
const styles = createMemo(() => {
|
|
11723
|
+
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
11724
|
+
});
|
|
11725
|
+
const { colors, alpha } = tokens;
|
|
11726
|
+
const t2 = (light, dark) => theme() === "dark" ? dark : light;
|
|
11458
11727
|
let tagRef;
|
|
11459
11728
|
const [mouseOver, setMouseOver] = createSignal(false);
|
|
11460
11729
|
const [focused, setFocused] = createSignal(false);
|
|
@@ -11480,11 +11749,11 @@ var QueryStatus = (props) => {
|
|
|
11480
11749
|
disabled={showLabel()}
|
|
11481
11750
|
ref={tagRef}
|
|
11482
11751
|
class={clsx(
|
|
11483
|
-
styles.queryStatusTag,
|
|
11752
|
+
styles().queryStatusTag,
|
|
11484
11753
|
!showLabel() && u`
|
|
11485
11754
|
cursor: pointer;
|
|
11486
11755
|
&:hover {
|
|
11487
|
-
background: ${
|
|
11756
|
+
background: ${t2(colors.gray[200], colors.darkGray[400])}${alpha[80]};
|
|
11488
11757
|
}
|
|
11489
11758
|
`,
|
|
11490
11759
|
"tsqd-query-status-tag",
|
|
@@ -11497,7 +11766,7 @@ var QueryStatus = (props) => {
|
|
|
11497
11766
|
<Show when={!showLabel() && (mouseOver() || focused())}><div
|
|
11498
11767
|
role="tooltip"
|
|
11499
11768
|
id="tsqd-status-tooltip"
|
|
11500
|
-
class={clsx(styles.statusTooltip, "tsqd-query-status-tooltip")}
|
|
11769
|
+
class={clsx(styles().statusTooltip, "tsqd-query-status-tooltip")}
|
|
11501
11770
|
>{props.label}</div></Show>
|
|
11502
11771
|
<span
|
|
11503
11772
|
class={clsx(
|
|
@@ -11511,24 +11780,33 @@ var QueryStatus = (props) => {
|
|
|
11511
11780
|
)}
|
|
11512
11781
|
/>
|
|
11513
11782
|
<Show when={showLabel()}><span
|
|
11514
|
-
class={clsx(
|
|
11783
|
+
class={clsx(
|
|
11784
|
+
styles().queryStatusTagLabel,
|
|
11785
|
+
"tsqd-query-status-tag-label"
|
|
11786
|
+
)}
|
|
11515
11787
|
>{props.label}</span></Show>
|
|
11516
11788
|
<span
|
|
11517
11789
|
class={clsx(
|
|
11518
|
-
styles.queryStatusCount,
|
|
11519
|
-
props.count > 0 && props.color !== "gray"
|
|
11520
|
-
|
|
11521
|
-
|
|
11522
|
-
|
|
11523
|
-
|
|
11524
|
-
|
|
11790
|
+
styles().queryStatusCount,
|
|
11791
|
+
props.count > 0 && props.color !== "gray" && u`
|
|
11792
|
+
background-color: ${t2(
|
|
11793
|
+
colors[props.color][100],
|
|
11794
|
+
colors[props.color][900]
|
|
11795
|
+
)};
|
|
11796
|
+
color: ${t2(colors[props.color][700], colors[props.color][300])};
|
|
11797
|
+
`,
|
|
11525
11798
|
"tsqd-query-status-tag-count"
|
|
11526
11799
|
)}
|
|
11527
11800
|
>{props.count}</span>
|
|
11528
11801
|
</button>;
|
|
11529
11802
|
};
|
|
11530
11803
|
var QueryDetails = () => {
|
|
11531
|
-
const
|
|
11804
|
+
const theme = useTheme();
|
|
11805
|
+
const styles = createMemo(() => {
|
|
11806
|
+
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
11807
|
+
});
|
|
11808
|
+
const { colors } = tokens;
|
|
11809
|
+
const t2 = (light, dark) => theme() === "dark" ? dark : light;
|
|
11532
11810
|
const queryClient = useQueryDevtoolsContext().client;
|
|
11533
11811
|
const [restoringLoading, setRestoringLoading] = createSignal(false);
|
|
11534
11812
|
const errorTypes = createMemo(() => {
|
|
@@ -11599,26 +11877,34 @@ var QueryDetails = () => {
|
|
|
11599
11877
|
setRestoringLoading(false);
|
|
11600
11878
|
}
|
|
11601
11879
|
});
|
|
11602
|
-
|
|
11603
|
-
|
|
11880
|
+
const getQueryStatusColors = () => {
|
|
11881
|
+
if (color() === "gray") {
|
|
11882
|
+
return u`
|
|
11883
|
+
background-color: ${t2(colors[color()][200], colors[color()][700])};
|
|
11884
|
+
color: ${t2(colors[color()][700], colors[color()][300])};
|
|
11885
|
+
border-color: ${t2(colors[color()][400], colors[color()][600])};
|
|
11886
|
+
`;
|
|
11887
|
+
}
|
|
11888
|
+
return u`
|
|
11889
|
+
background-color: ${t2(colors[color()][100], colors[color()][900])};
|
|
11890
|
+
color: ${t2(colors[color()][700], colors[color()][300])};
|
|
11891
|
+
border-color: ${t2(colors[color()][400], colors[color()][600])};
|
|
11892
|
+
`;
|
|
11893
|
+
};
|
|
11894
|
+
return <Show when={activeQuery() && activeQueryState()}><div
|
|
11895
|
+
class={clsx(styles().detailsContainer, "tsqd-query-details-container")}
|
|
11896
|
+
>
|
|
11897
|
+
<div class={clsx(styles().detailsHeader, "tsqd-query-details-header")}>Query Details</div>
|
|
11604
11898
|
<div
|
|
11605
|
-
class={clsx(
|
|
11899
|
+
class={clsx(
|
|
11900
|
+
styles().detailsBody,
|
|
11901
|
+
"tsqd-query-details-summary-container"
|
|
11902
|
+
)}
|
|
11606
11903
|
>
|
|
11607
11904
|
<div class="tsqd-query-details-summary">
|
|
11608
11905
|
<pre><code>{displayValue(activeQuery().queryKey, true)}</code></pre>
|
|
11609
11906
|
<span
|
|
11610
|
-
class={clsx(
|
|
11611
|
-
styles.queryDetailsStatus,
|
|
11612
|
-
color() === "gray" ? u`
|
|
11613
|
-
background-color: ${tokens.colors[color()][700]};
|
|
11614
|
-
color: ${tokens.colors[color()][300]};
|
|
11615
|
-
border-color: ${tokens.colors[color()][600]};
|
|
11616
|
-
` : u`
|
|
11617
|
-
background-color: ${tokens.colors[color()][900]};
|
|
11618
|
-
color: ${tokens.colors[color()][300]};
|
|
11619
|
-
border-color: ${tokens.colors[color()][600]};
|
|
11620
|
-
`
|
|
11621
|
-
)}
|
|
11907
|
+
class={clsx(styles().queryDetailsStatus, getQueryStatusColors())}
|
|
11622
11908
|
>{statusLabel()}</span>
|
|
11623
11909
|
</div>
|
|
11624
11910
|
<div class="tsqd-query-details-observers-count">
|
|
@@ -11630,14 +11916,17 @@ var QueryDetails = () => {
|
|
|
11630
11916
|
<span>{new Date(activeQueryState().dataUpdatedAt).toLocaleTimeString()}</span>
|
|
11631
11917
|
</div>
|
|
11632
11918
|
</div>
|
|
11633
|
-
<div class={clsx(styles.detailsHeader, "tsqd-query-details-header")}>Actions</div>
|
|
11919
|
+
<div class={clsx(styles().detailsHeader, "tsqd-query-details-header")}>Actions</div>
|
|
11634
11920
|
<div
|
|
11635
|
-
class={clsx(
|
|
11921
|
+
class={clsx(
|
|
11922
|
+
styles().actionsBody,
|
|
11923
|
+
"tsqd-query-details-actions-container"
|
|
11924
|
+
)}
|
|
11636
11925
|
>
|
|
11637
11926
|
<button
|
|
11638
11927
|
class={clsx(
|
|
11639
11928
|
u`
|
|
11640
|
-
color: ${
|
|
11929
|
+
color: ${t2(colors.blue[600], colors.blue[400])};
|
|
11641
11930
|
`,
|
|
11642
11931
|
"tsqd-query-details-actions-btn",
|
|
11643
11932
|
"tsqd-query-details-action-refetch"
|
|
@@ -11647,7 +11936,7 @@ var QueryDetails = () => {
|
|
|
11647
11936
|
>
|
|
11648
11937
|
<span
|
|
11649
11938
|
class={u`
|
|
11650
|
-
background-color: ${
|
|
11939
|
+
background-color: ${t2(colors.blue[600], colors.blue[400])};
|
|
11651
11940
|
`}
|
|
11652
11941
|
/>
|
|
11653
11942
|
{"Refetch"}
|
|
@@ -11655,7 +11944,7 @@ var QueryDetails = () => {
|
|
|
11655
11944
|
<button
|
|
11656
11945
|
class={clsx(
|
|
11657
11946
|
u`
|
|
11658
|
-
color: ${
|
|
11947
|
+
color: ${t2(colors.yellow[600], colors.yellow[400])};
|
|
11659
11948
|
`,
|
|
11660
11949
|
"tsqd-query-details-actions-btn",
|
|
11661
11950
|
"tsqd-query-details-action-invalidate"
|
|
@@ -11665,7 +11954,7 @@ var QueryDetails = () => {
|
|
|
11665
11954
|
>
|
|
11666
11955
|
<span
|
|
11667
11956
|
class={u`
|
|
11668
|
-
background-color: ${
|
|
11957
|
+
background-color: ${t2(colors.yellow[600], colors.yellow[400])};
|
|
11669
11958
|
`}
|
|
11670
11959
|
/>
|
|
11671
11960
|
{"Invalidate"}
|
|
@@ -11673,7 +11962,7 @@ var QueryDetails = () => {
|
|
|
11673
11962
|
<button
|
|
11674
11963
|
class={clsx(
|
|
11675
11964
|
u`
|
|
11676
|
-
color: ${
|
|
11965
|
+
color: ${t2(colors.gray[600], colors.gray[300])};
|
|
11677
11966
|
`,
|
|
11678
11967
|
"tsqd-query-details-actions-btn",
|
|
11679
11968
|
"tsqd-query-details-action-reset"
|
|
@@ -11683,7 +11972,7 @@ var QueryDetails = () => {
|
|
|
11683
11972
|
>
|
|
11684
11973
|
<span
|
|
11685
11974
|
class={u`
|
|
11686
|
-
background-color: ${
|
|
11975
|
+
background-color: ${t2(colors.gray[600], colors.gray[400])};
|
|
11687
11976
|
`}
|
|
11688
11977
|
/>
|
|
11689
11978
|
{"Reset"}
|
|
@@ -11691,7 +11980,7 @@ var QueryDetails = () => {
|
|
|
11691
11980
|
<button
|
|
11692
11981
|
class={clsx(
|
|
11693
11982
|
u`
|
|
11694
|
-
color: ${
|
|
11983
|
+
color: ${t2(colors.pink[500], colors.pink[400])};
|
|
11695
11984
|
`,
|
|
11696
11985
|
"tsqd-query-details-actions-btn",
|
|
11697
11986
|
"tsqd-query-details-action-remove"
|
|
@@ -11704,7 +11993,7 @@ var QueryDetails = () => {
|
|
|
11704
11993
|
>
|
|
11705
11994
|
<span
|
|
11706
11995
|
class={u`
|
|
11707
|
-
background-color: ${
|
|
11996
|
+
background-color: ${t2(colors.pink[500], colors.pink[400])};
|
|
11708
11997
|
`}
|
|
11709
11998
|
/>
|
|
11710
11999
|
{"Remove"}
|
|
@@ -11712,7 +12001,7 @@ var QueryDetails = () => {
|
|
|
11712
12001
|
<button
|
|
11713
12002
|
class={clsx(
|
|
11714
12003
|
u`
|
|
11715
|
-
color: ${
|
|
12004
|
+
color: ${t2(colors.cyan[500], colors.cyan[400])};
|
|
11716
12005
|
`,
|
|
11717
12006
|
"tsqd-query-details-actions-btn",
|
|
11718
12007
|
"tsqd-query-details-action-loading"
|
|
@@ -11749,7 +12038,7 @@ var QueryDetails = () => {
|
|
|
11749
12038
|
>
|
|
11750
12039
|
<span
|
|
11751
12040
|
class={u`
|
|
11752
|
-
background-color: ${
|
|
12041
|
+
background-color: ${t2(colors.cyan[500], colors.cyan[400])};
|
|
11753
12042
|
`}
|
|
11754
12043
|
/>
|
|
11755
12044
|
{queryStatus() === "pending" ? "Restore" : "Trigger"}
|
|
@@ -11758,7 +12047,7 @@ var QueryDetails = () => {
|
|
|
11758
12047
|
<Show when={errorTypes().length === 0 || queryStatus() === "error"}><button
|
|
11759
12048
|
class={clsx(
|
|
11760
12049
|
u`
|
|
11761
|
-
color: ${
|
|
12050
|
+
color: ${t2(colors.red[500], colors.red[400])};
|
|
11762
12051
|
`,
|
|
11763
12052
|
"tsqd-query-details-actions-btn",
|
|
11764
12053
|
"tsqd-query-details-action-error"
|
|
@@ -11774,7 +12063,7 @@ var QueryDetails = () => {
|
|
|
11774
12063
|
>
|
|
11775
12064
|
<span
|
|
11776
12065
|
class={u`
|
|
11777
|
-
background-color: ${
|
|
12066
|
+
background-color: ${t2(colors.red[500], colors.red[400])};
|
|
11778
12067
|
`}
|
|
11779
12068
|
/>
|
|
11780
12069
|
{queryStatus() === "error" ? "Restore" : "Trigger"}
|
|
@@ -11784,7 +12073,7 @@ var QueryDetails = () => {
|
|
|
11784
12073
|
when={!(errorTypes().length === 0 || queryStatus() === "error")}
|
|
11785
12074
|
><div
|
|
11786
12075
|
class={clsx(
|
|
11787
|
-
styles.actionsSelect,
|
|
12076
|
+
styles().actionsSelect,
|
|
11788
12077
|
"tsqd-query-details-actions-btn",
|
|
11789
12078
|
"tsqd-query-details-action-error-multiple"
|
|
11790
12079
|
)}
|
|
@@ -11799,7 +12088,7 @@ var QueryDetails = () => {
|
|
|
11799
12088
|
disabled={queryStatus() === "pending"}
|
|
11800
12089
|
onChange={(e2) => {
|
|
11801
12090
|
const errorType = errorTypes().find(
|
|
11802
|
-
(
|
|
12091
|
+
(et) => et.name === e2.currentTarget.value
|
|
11803
12092
|
);
|
|
11804
12093
|
triggerError(errorType);
|
|
11805
12094
|
}}
|
|
@@ -11810,7 +12099,7 @@ var QueryDetails = () => {
|
|
|
11810
12099
|
<ChevronDown />
|
|
11811
12100
|
</div></Show>
|
|
11812
12101
|
</div>
|
|
11813
|
-
<div class={clsx(styles.detailsHeader, "tsqd-query-details-header")}>Data Explorer</div>
|
|
12102
|
+
<div class={clsx(styles().detailsHeader, "tsqd-query-details-header")}>Data Explorer</div>
|
|
11814
12103
|
<div
|
|
11815
12104
|
style={{
|
|
11816
12105
|
padding: "0.5rem"
|
|
@@ -11823,7 +12112,7 @@ var QueryDetails = () => {
|
|
|
11823
12112
|
editable={true}
|
|
11824
12113
|
activeQuery={activeQuery()}
|
|
11825
12114
|
/></div>
|
|
11826
|
-
<div class={clsx(styles.detailsHeader, "tsqd-query-details-header")}>Query Explorer</div>
|
|
12115
|
+
<div class={clsx(styles().detailsHeader, "tsqd-query-details-header")}>Query Explorer</div>
|
|
11827
12116
|
<div
|
|
11828
12117
|
style={{
|
|
11829
12118
|
padding: "0.5rem"
|
|
@@ -11873,8 +12162,9 @@ var createSubscribeToQueryCacheBatcher = (callback, equalityCheck = true) => {
|
|
|
11873
12162
|
});
|
|
11874
12163
|
return value;
|
|
11875
12164
|
};
|
|
11876
|
-
var
|
|
12165
|
+
var stylesFactory2 = (theme) => {
|
|
11877
12166
|
const { colors, font, size: size2, alpha, shadow, border } = tokens;
|
|
12167
|
+
const t2 = (light, dark) => theme === "light" ? light : dark;
|
|
11878
12168
|
return {
|
|
11879
12169
|
devtoolsBtn: u`
|
|
11880
12170
|
z-index: 100000;
|
|
@@ -11936,8 +12226,6 @@ var getStyles2 = () => {
|
|
|
11936
12226
|
display: flex;
|
|
11937
12227
|
gap: ${tokens.size[0.5]};
|
|
11938
12228
|
& * {
|
|
11939
|
-
font-family: 'Inter', sans-serif;
|
|
11940
|
-
color: ${colors.gray[300]};
|
|
11941
12229
|
box-sizing: border-box;
|
|
11942
12230
|
text-transform: none;
|
|
11943
12231
|
}
|
|
@@ -11964,7 +12252,7 @@ var getStyles2 = () => {
|
|
|
11964
12252
|
left: 0;
|
|
11965
12253
|
max-height: 90%;
|
|
11966
12254
|
min-height: 3.5rem;
|
|
11967
|
-
border-bottom: ${colors.darkGray[300]} 1px solid;
|
|
12255
|
+
border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
11968
12256
|
`,
|
|
11969
12257
|
"panel-position-bottom": u`
|
|
11970
12258
|
bottom: 0;
|
|
@@ -11972,20 +12260,20 @@ var getStyles2 = () => {
|
|
|
11972
12260
|
left: 0;
|
|
11973
12261
|
max-height: 90%;
|
|
11974
12262
|
min-height: 3.5rem;
|
|
11975
|
-
border-top: ${colors.darkGray[300]} 1px solid;
|
|
12263
|
+
border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
11976
12264
|
`,
|
|
11977
12265
|
"panel-position-right": u`
|
|
11978
12266
|
bottom: 0;
|
|
11979
12267
|
right: 0;
|
|
11980
12268
|
top: 0;
|
|
11981
|
-
border-left: ${colors.darkGray[300]} 1px solid;
|
|
12269
|
+
border-left: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
11982
12270
|
max-width: 90%;
|
|
11983
12271
|
`,
|
|
11984
12272
|
"panel-position-left": u`
|
|
11985
12273
|
bottom: 0;
|
|
11986
12274
|
left: 0;
|
|
11987
12275
|
top: 0;
|
|
11988
|
-
border-right: ${colors.darkGray[300]} 1px solid;
|
|
12276
|
+
border-right: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
11989
12277
|
max-width: 90%;
|
|
11990
12278
|
`,
|
|
11991
12279
|
closeBtn: u`
|
|
@@ -11996,13 +12284,15 @@ var getStyles2 = () => {
|
|
|
11996
12284
|
align-items: center;
|
|
11997
12285
|
justify-content: center;
|
|
11998
12286
|
outline: none;
|
|
12287
|
+
background-color: ${t2(colors.gray[50], colors.darkGray[700])};
|
|
11999
12288
|
&:hover {
|
|
12000
|
-
background-color: ${colors.darkGray[500]};
|
|
12289
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[500])};
|
|
12001
12290
|
}
|
|
12002
12291
|
&:focus-visible {
|
|
12003
12292
|
outline: 2px solid ${colors.blue[600]};
|
|
12004
12293
|
}
|
|
12005
12294
|
& svg {
|
|
12295
|
+
color: ${t2(colors.gray[600], colors.gray[400])};
|
|
12006
12296
|
width: ${size2[2]};
|
|
12007
12297
|
height: ${size2[2]};
|
|
12008
12298
|
}
|
|
@@ -12011,11 +12301,10 @@ var getStyles2 = () => {
|
|
|
12011
12301
|
bottom: 0;
|
|
12012
12302
|
right: ${size2[2]};
|
|
12013
12303
|
transform: translate(0, 100%);
|
|
12014
|
-
|
|
12015
|
-
border-
|
|
12016
|
-
border-left: ${colors.darkGray[300]} 1px solid;
|
|
12304
|
+
border-right: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
12305
|
+
border-left: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
12017
12306
|
border-top: none;
|
|
12018
|
-
border-bottom: ${colors.darkGray[300]} 1px solid;
|
|
12307
|
+
border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
12019
12308
|
border-radius: 0px 0px ${border.radius.sm} ${border.radius.sm};
|
|
12020
12309
|
padding: ${size2[0.5]} ${size2[1.5]} ${size2[1]} ${size2[1.5]};
|
|
12021
12310
|
|
|
@@ -12036,10 +12325,9 @@ var getStyles2 = () => {
|
|
|
12036
12325
|
top: 0;
|
|
12037
12326
|
right: ${size2[2]};
|
|
12038
12327
|
transform: translate(0, -100%);
|
|
12039
|
-
|
|
12040
|
-
border-
|
|
12041
|
-
border-
|
|
12042
|
-
border-top: ${colors.darkGray[300]} 1px solid;
|
|
12328
|
+
border-right: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
12329
|
+
border-left: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
12330
|
+
border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
12043
12331
|
border-bottom: none;
|
|
12044
12332
|
border-radius: ${border.radius.sm} ${border.radius.sm} 0px 0px;
|
|
12045
12333
|
padding: ${size2[1]} ${size2[1.5]} ${size2[0.5]} ${size2[1.5]};
|
|
@@ -12057,11 +12345,10 @@ var getStyles2 = () => {
|
|
|
12057
12345
|
bottom: ${size2[2]};
|
|
12058
12346
|
left: 0;
|
|
12059
12347
|
transform: translate(-100%, 0);
|
|
12060
|
-
background-color: ${colors.darkGray[700]};
|
|
12061
12348
|
border-right: none;
|
|
12062
|
-
border-left: ${colors.darkGray[300]} 1px solid;
|
|
12063
|
-
border-top: ${colors.darkGray[300]} 1px solid;
|
|
12064
|
-
border-bottom: ${colors.darkGray[300]} 1px solid;
|
|
12349
|
+
border-left: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
12350
|
+
border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
12351
|
+
border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
12065
12352
|
border-radius: ${border.radius.sm} 0px 0px ${border.radius.sm};
|
|
12066
12353
|
padding: ${size2[1.5]} ${size2[0.5]} ${size2[1.5]} ${size2[1]};
|
|
12067
12354
|
|
|
@@ -12081,11 +12368,10 @@ var getStyles2 = () => {
|
|
|
12081
12368
|
bottom: ${size2[2]};
|
|
12082
12369
|
right: 0;
|
|
12083
12370
|
transform: translate(100%, 0);
|
|
12084
|
-
background-color: ${colors.darkGray[700]};
|
|
12085
12371
|
border-left: none;
|
|
12086
|
-
border-right: ${colors.darkGray[300]} 1px solid;
|
|
12087
|
-
border-top: ${colors.darkGray[300]} 1px solid;
|
|
12088
|
-
border-bottom: ${colors.darkGray[300]} 1px solid;
|
|
12372
|
+
border-right: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
12373
|
+
border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
12374
|
+
border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
12089
12375
|
border-radius: 0px ${border.radius.sm} ${border.radius.sm} 0px;
|
|
12090
12376
|
padding: ${size2[1.5]} ${size2[1]} ${size2[1.5]} ${size2[0.5]};
|
|
12091
12377
|
|
|
@@ -12103,15 +12389,18 @@ var getStyles2 = () => {
|
|
|
12103
12389
|
`,
|
|
12104
12390
|
queriesContainer: u`
|
|
12105
12391
|
flex: 1 1 700px;
|
|
12106
|
-
background-color: ${colors.darkGray[700]};
|
|
12392
|
+
background-color: ${t2(colors.gray[50], colors.darkGray[700])};
|
|
12107
12393
|
display: flex;
|
|
12108
12394
|
flex-direction: column;
|
|
12395
|
+
& * {
|
|
12396
|
+
font-family: 'Inter', sans-serif;
|
|
12397
|
+
}
|
|
12109
12398
|
`,
|
|
12110
12399
|
dragHandle: u`
|
|
12111
12400
|
position: absolute;
|
|
12112
12401
|
transition: background-color 0.125s ease;
|
|
12113
12402
|
&:hover {
|
|
12114
|
-
background-color: ${colors.purple[400]}${alpha[90]};
|
|
12403
|
+
background-color: ${colors.purple[400]}${t2("", alpha[90])};
|
|
12115
12404
|
}
|
|
12116
12405
|
z-index: 4;
|
|
12117
12406
|
`,
|
|
@@ -12145,7 +12434,7 @@ var getStyles2 = () => {
|
|
|
12145
12434
|
align-items: center;
|
|
12146
12435
|
padding: ${tokens.size[2]} ${tokens.size[2.5]};
|
|
12147
12436
|
gap: ${tokens.size[3]};
|
|
12148
|
-
border-bottom: ${colors.darkGray[500]} 1px solid;
|
|
12437
|
+
border-bottom: ${t2(colors.gray[300], colors.darkGray[500])} 1px solid;
|
|
12149
12438
|
align-items: center;
|
|
12150
12439
|
& > button {
|
|
12151
12440
|
padding: 0;
|
|
@@ -12172,11 +12461,15 @@ var getStyles2 = () => {
|
|
|
12172
12461
|
font-weight: ${font.weight.bold};
|
|
12173
12462
|
line-height: ${font.lineHeight.xs};
|
|
12174
12463
|
white-space: nowrap;
|
|
12464
|
+
color: ${t2(colors.gray[600], colors.gray[300])};
|
|
12175
12465
|
`,
|
|
12176
12466
|
queryFlavorLogo: u`
|
|
12177
12467
|
font-weight: ${font.weight.semibold};
|
|
12178
12468
|
font-size: ${font.size.xs};
|
|
12179
|
-
background: linear-gradient(
|
|
12469
|
+
background: linear-gradient(
|
|
12470
|
+
to right,
|
|
12471
|
+
${t2("#ea4037, #ff9b11", "#dd524b, #e9a03b")}
|
|
12472
|
+
);
|
|
12180
12473
|
background-clip: text;
|
|
12181
12474
|
-webkit-background-clip: text;
|
|
12182
12475
|
line-height: 1;
|
|
@@ -12191,14 +12484,17 @@ var getStyles2 = () => {
|
|
|
12191
12484
|
queryStatusTag: u`
|
|
12192
12485
|
display: flex;
|
|
12193
12486
|
gap: ${tokens.size[1.5]};
|
|
12194
|
-
|
|
12487
|
+
box-sizing: border-box;
|
|
12488
|
+
height: ${tokens.size[6.5]};
|
|
12489
|
+
background: ${t2(colors.gray[50], colors.darkGray[500])};
|
|
12490
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
12195
12491
|
border-radius: ${tokens.border.radius.sm};
|
|
12196
12492
|
font-size: ${font.size.sm};
|
|
12197
12493
|
padding: ${tokens.size[1]};
|
|
12198
|
-
padding-left: ${tokens.size[
|
|
12494
|
+
padding-left: ${tokens.size[1.5]};
|
|
12199
12495
|
align-items: center;
|
|
12200
12496
|
font-weight: ${font.weight.medium};
|
|
12201
|
-
border:
|
|
12497
|
+
border: ${t2("1px solid " + colors.gray[300], "1px solid transparent")};
|
|
12202
12498
|
user-select: none;
|
|
12203
12499
|
position: relative;
|
|
12204
12500
|
&:focus-visible {
|
|
@@ -12215,8 +12511,8 @@ var getStyles2 = () => {
|
|
|
12215
12511
|
display: flex;
|
|
12216
12512
|
align-items: center;
|
|
12217
12513
|
justify-content: center;
|
|
12218
|
-
color: ${colors.gray[400]};
|
|
12219
|
-
background-color: ${colors.darkGray[300]};
|
|
12514
|
+
color: ${t2(colors.gray[500], colors.gray[400])};
|
|
12515
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[300])};
|
|
12220
12516
|
border-radius: 2px;
|
|
12221
12517
|
font-variant-numeric: tabular-nums;
|
|
12222
12518
|
height: ${tokens.size[4.5]};
|
|
@@ -12224,15 +12520,15 @@ var getStyles2 = () => {
|
|
|
12224
12520
|
statusTooltip: u`
|
|
12225
12521
|
position: absolute;
|
|
12226
12522
|
z-index: 1;
|
|
12227
|
-
background-color: ${colors.darkGray[500]};
|
|
12523
|
+
background-color: ${t2(colors.gray[50], colors.darkGray[500])};
|
|
12228
12524
|
top: 100%;
|
|
12229
12525
|
left: 50%;
|
|
12230
12526
|
transform: translate(-50%, calc(${tokens.size[2]}));
|
|
12231
12527
|
padding: ${tokens.size[0.5]} ${tokens.size[2]};
|
|
12232
|
-
border-radius: ${tokens.border.radius.
|
|
12528
|
+
border-radius: ${tokens.border.radius.sm};
|
|
12233
12529
|
font-size: ${font.size.xs};
|
|
12234
|
-
border: 1px solid ${colors.gray[600]};
|
|
12235
|
-
color: ${
|
|
12530
|
+
border: 1px solid ${t2(colors.gray[400], colors.gray[600])};
|
|
12531
|
+
color: ${t2(colors["gray"][600], colors["gray"][300])};
|
|
12236
12532
|
|
|
12237
12533
|
&::before {
|
|
12238
12534
|
top: 0px;
|
|
@@ -12241,7 +12537,8 @@ var getStyles2 = () => {
|
|
|
12241
12537
|
left: 50%;
|
|
12242
12538
|
transform: translate(-50%, -100%);
|
|
12243
12539
|
position: absolute;
|
|
12244
|
-
border-color: transparent transparent
|
|
12540
|
+
border-color: transparent transparent
|
|
12541
|
+
${t2(colors.gray[400], colors.gray[600])} transparent;
|
|
12245
12542
|
border-style: solid;
|
|
12246
12543
|
border-width: 7px;
|
|
12247
12544
|
/* transform: rotate(180deg); */
|
|
@@ -12252,17 +12549,14 @@ var getStyles2 = () => {
|
|
|
12252
12549
|
content: ' ';
|
|
12253
12550
|
display: block;
|
|
12254
12551
|
left: 50%;
|
|
12255
|
-
transform: translate(-50%, calc(-100% +
|
|
12552
|
+
transform: translate(-50%, calc(-100% + 2px));
|
|
12256
12553
|
position: absolute;
|
|
12257
|
-
border-color: transparent transparent
|
|
12258
|
-
transparent;
|
|
12554
|
+
border-color: transparent transparent
|
|
12555
|
+
${t2(colors.gray[100], colors.darkGray[500])} transparent;
|
|
12259
12556
|
border-style: solid;
|
|
12260
12557
|
border-width: 7px;
|
|
12261
12558
|
}
|
|
12262
12559
|
`,
|
|
12263
|
-
selectedQueryRow: u`
|
|
12264
|
-
background-color: ${colors.darkGray[500]};
|
|
12265
|
-
`,
|
|
12266
12560
|
filtersContainer: u`
|
|
12267
12561
|
display: flex;
|
|
12268
12562
|
gap: ${tokens.size[2]};
|
|
@@ -12271,47 +12565,52 @@ var getStyles2 = () => {
|
|
|
12271
12565
|
padding: ${tokens.size[0.5]} ${tokens.size[2]};
|
|
12272
12566
|
padding-right: ${tokens.size[1.5]};
|
|
12273
12567
|
border-radius: ${tokens.border.radius.sm};
|
|
12274
|
-
background-color: ${colors.darkGray[400]};
|
|
12568
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
12569
|
+
border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
|
|
12570
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
12275
12571
|
font-size: ${font.size.xs};
|
|
12276
12572
|
display: flex;
|
|
12277
12573
|
align-items: center;
|
|
12278
12574
|
line-height: ${font.lineHeight.sm};
|
|
12279
12575
|
gap: ${tokens.size[1.5]};
|
|
12280
12576
|
max-width: 160px;
|
|
12281
|
-
border: 1px solid ${colors.darkGray[200]};
|
|
12282
12577
|
&:focus-visible {
|
|
12283
12578
|
outline-offset: 2px;
|
|
12284
12579
|
border-radius: ${border.radius.xs};
|
|
12285
12580
|
outline: 2px solid ${colors.blue[800]};
|
|
12286
12581
|
}
|
|
12582
|
+
& svg {
|
|
12583
|
+
color: ${t2(colors.gray[500], colors.gray[400])};
|
|
12584
|
+
}
|
|
12287
12585
|
}
|
|
12288
12586
|
`,
|
|
12289
12587
|
filterInput: u`
|
|
12290
|
-
padding: ${
|
|
12588
|
+
padding: ${size2[0.5]} ${size2[2]};
|
|
12291
12589
|
border-radius: ${tokens.border.radius.sm};
|
|
12292
|
-
background-color: ${colors.darkGray[400]};
|
|
12590
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
12293
12591
|
display: flex;
|
|
12294
12592
|
box-sizing: content-box;
|
|
12295
12593
|
align-items: center;
|
|
12296
12594
|
gap: ${tokens.size[1.5]};
|
|
12297
12595
|
max-width: 160px;
|
|
12298
12596
|
min-width: 100px;
|
|
12299
|
-
border: 1px solid ${colors.darkGray[200]};
|
|
12597
|
+
border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
|
|
12300
12598
|
height: min-content;
|
|
12599
|
+
color: ${t2(colors.gray[600], colors.gray[400])};
|
|
12301
12600
|
& > svg {
|
|
12302
|
-
width: ${
|
|
12303
|
-
height: ${
|
|
12601
|
+
width: ${size2[3]};
|
|
12602
|
+
height: ${size2[3]};
|
|
12304
12603
|
}
|
|
12305
12604
|
& input {
|
|
12306
12605
|
font-size: ${font.size.xs};
|
|
12307
12606
|
width: 100%;
|
|
12308
|
-
background-color: ${colors.darkGray[400]};
|
|
12607
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
12309
12608
|
border: none;
|
|
12310
12609
|
padding: 0;
|
|
12311
12610
|
line-height: ${font.lineHeight.sm};
|
|
12312
|
-
color: ${colors.gray[300]};
|
|
12611
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
12313
12612
|
&::placeholder {
|
|
12314
|
-
color: ${colors.gray[300]};
|
|
12613
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
12315
12614
|
}
|
|
12316
12615
|
&:focus {
|
|
12317
12616
|
outline: none;
|
|
@@ -12327,24 +12626,26 @@ var getStyles2 = () => {
|
|
|
12327
12626
|
filterSelect: u`
|
|
12328
12627
|
padding: ${tokens.size[0.5]} ${tokens.size[2]};
|
|
12329
12628
|
border-radius: ${tokens.border.radius.sm};
|
|
12330
|
-
background-color: ${colors.darkGray[400]};
|
|
12629
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
12331
12630
|
display: flex;
|
|
12332
12631
|
align-items: center;
|
|
12333
12632
|
gap: ${tokens.size[1.5]};
|
|
12334
12633
|
box-sizing: content-box;
|
|
12335
12634
|
max-width: 160px;
|
|
12336
|
-
border: 1px solid ${colors.darkGray[200]};
|
|
12635
|
+
border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
|
|
12337
12636
|
height: min-content;
|
|
12338
12637
|
& > svg {
|
|
12638
|
+
color: ${t2(colors.gray[600], colors.gray[400])};
|
|
12339
12639
|
width: ${tokens.size[2]};
|
|
12340
12640
|
height: ${tokens.size[2]};
|
|
12341
12641
|
}
|
|
12342
12642
|
& > select {
|
|
12343
12643
|
appearance: none;
|
|
12644
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
12344
12645
|
min-width: 100px;
|
|
12345
12646
|
line-height: ${font.lineHeight.sm};
|
|
12346
12647
|
font-size: ${font.size.xs};
|
|
12347
|
-
background-color: ${colors.darkGray[400]};
|
|
12648
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
12348
12649
|
border: none;
|
|
12349
12650
|
&:focus {
|
|
12350
12651
|
outline: none;
|
|
@@ -12362,7 +12663,8 @@ var getStyles2 = () => {
|
|
|
12362
12663
|
`,
|
|
12363
12664
|
actionsBtn: u`
|
|
12364
12665
|
border-radius: ${tokens.border.radius.sm};
|
|
12365
|
-
background-color: ${colors.darkGray[400]};
|
|
12666
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
12667
|
+
border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
|
|
12366
12668
|
width: 1.625rem;
|
|
12367
12669
|
height: 1.625rem;
|
|
12368
12670
|
justify-content: center;
|
|
@@ -12370,13 +12672,13 @@ var getStyles2 = () => {
|
|
|
12370
12672
|
align-items: center;
|
|
12371
12673
|
gap: ${tokens.size[1.5]};
|
|
12372
12674
|
max-width: 160px;
|
|
12373
|
-
border: 1px solid ${colors.darkGray[200]};
|
|
12374
12675
|
cursor: pointer;
|
|
12375
12676
|
padding: 0;
|
|
12376
12677
|
&:hover {
|
|
12377
|
-
background-color: ${colors.darkGray[500]};
|
|
12678
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[500])};
|
|
12378
12679
|
}
|
|
12379
12680
|
& svg {
|
|
12681
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
12380
12682
|
width: ${tokens.size[3]};
|
|
12381
12683
|
height: ${tokens.size[3]};
|
|
12382
12684
|
}
|
|
@@ -12386,6 +12688,12 @@ var getStyles2 = () => {
|
|
|
12386
12688
|
outline: 2px solid ${colors.blue[800]};
|
|
12387
12689
|
}
|
|
12388
12690
|
`,
|
|
12691
|
+
actionsBtnOffline: u`
|
|
12692
|
+
& svg {
|
|
12693
|
+
stroke: ${t2(colors.yellow[700], colors.yellow[500])};
|
|
12694
|
+
fill: ${t2(colors.yellow[700], colors.yellow[500])};
|
|
12695
|
+
}
|
|
12696
|
+
`,
|
|
12389
12697
|
overflowQueryContainer: u`
|
|
12390
12698
|
flex: 1;
|
|
12391
12699
|
overflow-y: auto;
|
|
@@ -12398,9 +12706,11 @@ var getStyles2 = () => {
|
|
|
12398
12706
|
display: flex;
|
|
12399
12707
|
align-items: center;
|
|
12400
12708
|
padding: 0;
|
|
12401
|
-
background-color: inherit;
|
|
12402
12709
|
border: none;
|
|
12403
12710
|
cursor: pointer;
|
|
12711
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
12712
|
+
background-color: ${t2(colors.gray[50], colors.darkGray[700])};
|
|
12713
|
+
line-height: 1;
|
|
12404
12714
|
&:focus {
|
|
12405
12715
|
outline: none;
|
|
12406
12716
|
}
|
|
@@ -12410,7 +12720,7 @@ var getStyles2 = () => {
|
|
|
12410
12720
|
outline: 2px solid ${colors.blue[800]};
|
|
12411
12721
|
}
|
|
12412
12722
|
&:hover .tsqd-query-hash {
|
|
12413
|
-
background-color: ${colors.darkGray[600]};
|
|
12723
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[600])};
|
|
12414
12724
|
}
|
|
12415
12725
|
|
|
12416
12726
|
& .tsqd-query-observer-count {
|
|
@@ -12425,7 +12735,7 @@ var getStyles2 = () => {
|
|
|
12425
12735
|
font-weight: ${font.weight.medium};
|
|
12426
12736
|
border-bottom-width: 1px;
|
|
12427
12737
|
border-bottom-style: solid;
|
|
12428
|
-
border-bottom: 1px solid ${colors.darkGray[700]};
|
|
12738
|
+
border-bottom: 1px solid ${t2(colors.gray[300], colors.darkGray[700])};
|
|
12429
12739
|
}
|
|
12430
12740
|
& .tsqd-query-hash {
|
|
12431
12741
|
user-select: text;
|
|
@@ -12436,7 +12746,7 @@ var getStyles2 = () => {
|
|
|
12436
12746
|
flex: 1;
|
|
12437
12747
|
padding: ${tokens.size[1]} ${tokens.size[2]};
|
|
12438
12748
|
font-family: 'Menlo', 'Fira Code', monospace;
|
|
12439
|
-
border-bottom: 1px solid ${colors.darkGray[400]};
|
|
12749
|
+
border-bottom: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
|
|
12440
12750
|
text-align: left;
|
|
12441
12751
|
text-overflow: clip;
|
|
12442
12752
|
word-break: break-word;
|
|
@@ -12447,15 +12757,20 @@ var getStyles2 = () => {
|
|
|
12447
12757
|
display: flex;
|
|
12448
12758
|
align-items: center;
|
|
12449
12759
|
padding: 0 ${tokens.size[2]};
|
|
12450
|
-
color: ${colors.gray[300]};
|
|
12451
|
-
background-color: ${colors.darkGray[600]};
|
|
12452
|
-
border-bottom: 1px solid ${colors.darkGray[400]};
|
|
12760
|
+
color: ${t2(colors.gray[800], colors.gray[300])};
|
|
12761
|
+
background-color: ${t2(colors.gray[300], colors.darkGray[600])};
|
|
12762
|
+
border-bottom: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
|
|
12453
12763
|
font-size: ${font.size.xs};
|
|
12454
12764
|
}
|
|
12455
12765
|
`,
|
|
12766
|
+
selectedQueryRow: u`
|
|
12767
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[500])};
|
|
12768
|
+
`,
|
|
12456
12769
|
detailsContainer: u`
|
|
12457
12770
|
flex: 1 1 700px;
|
|
12458
|
-
background-color: ${colors.darkGray[700]};
|
|
12771
|
+
background-color: ${t2(colors.gray[50], colors.darkGray[700])};
|
|
12772
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
12773
|
+
font-family: 'Inter', sans-serif;
|
|
12459
12774
|
display: flex;
|
|
12460
12775
|
flex-direction: column;
|
|
12461
12776
|
overflow-y: auto;
|
|
@@ -12463,10 +12778,11 @@ var getStyles2 = () => {
|
|
|
12463
12778
|
text-align: left;
|
|
12464
12779
|
`,
|
|
12465
12780
|
detailsHeader: u`
|
|
12781
|
+
font-family: 'Inter', sans-serif;
|
|
12466
12782
|
position: sticky;
|
|
12467
12783
|
top: 0;
|
|
12468
12784
|
z-index: 2;
|
|
12469
|
-
background-color: ${colors.darkGray[600]};
|
|
12785
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[600])};
|
|
12470
12786
|
padding: ${tokens.size[1.5]} ${tokens.size[2]};
|
|
12471
12787
|
font-weight: ${font.weight.medium};
|
|
12472
12788
|
font-size: ${font.size.xs};
|
|
@@ -12499,6 +12815,10 @@ var getStyles2 = () => {
|
|
|
12499
12815
|
font-size: ${font.size.xs};
|
|
12500
12816
|
line-height: ${font.lineHeight.xs};
|
|
12501
12817
|
}
|
|
12818
|
+
|
|
12819
|
+
& pre {
|
|
12820
|
+
margin: 0;
|
|
12821
|
+
}
|
|
12502
12822
|
`,
|
|
12503
12823
|
queryDetailsStatus: u`
|
|
12504
12824
|
border: 1px solid ${colors.darkGray[200]};
|
|
@@ -12513,12 +12833,13 @@ var getStyles2 = () => {
|
|
|
12513
12833
|
gap: ${tokens.size[2]};
|
|
12514
12834
|
padding: 0px ${tokens.size[2]};
|
|
12515
12835
|
& > button {
|
|
12836
|
+
font-family: 'Inter', sans-serif;
|
|
12516
12837
|
font-size: ${font.size.xs};
|
|
12517
12838
|
padding: ${tokens.size[1]} ${tokens.size[2]};
|
|
12518
12839
|
display: flex;
|
|
12519
12840
|
border-radius: ${tokens.border.radius.sm};
|
|
12520
|
-
|
|
12521
|
-
|
|
12841
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[600])};
|
|
12842
|
+
border: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
|
|
12522
12843
|
align-items: center;
|
|
12523
12844
|
gap: ${tokens.size[2]};
|
|
12524
12845
|
font-weight: ${font.weight.medium};
|
|
@@ -12530,7 +12851,7 @@ var getStyles2 = () => {
|
|
|
12530
12851
|
outline: 2px solid ${colors.blue[800]};
|
|
12531
12852
|
}
|
|
12532
12853
|
&:hover {
|
|
12533
|
-
background-color: ${colors.darkGray[500]};
|
|
12854
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[500])};
|
|
12534
12855
|
}
|
|
12535
12856
|
|
|
12536
12857
|
&:disabled {
|
|
@@ -12551,17 +12872,17 @@ var getStyles2 = () => {
|
|
|
12551
12872
|
display: flex;
|
|
12552
12873
|
border-radius: ${tokens.border.radius.sm};
|
|
12553
12874
|
overflow: hidden;
|
|
12554
|
-
|
|
12555
|
-
|
|
12875
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[600])};
|
|
12876
|
+
border: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
|
|
12556
12877
|
align-items: center;
|
|
12557
12878
|
gap: ${tokens.size[2]};
|
|
12558
12879
|
font-weight: ${font.weight.medium};
|
|
12559
12880
|
line-height: ${font.lineHeight.sm};
|
|
12560
|
-
color: ${
|
|
12881
|
+
color: ${t2(colors.red[500], colors.red[400])};
|
|
12561
12882
|
cursor: pointer;
|
|
12562
12883
|
position: relative;
|
|
12563
12884
|
&:hover {
|
|
12564
|
-
background-color: ${colors.darkGray[500]};
|
|
12885
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[500])};
|
|
12565
12886
|
}
|
|
12566
12887
|
& > span {
|
|
12567
12888
|
width: ${size2[1.5]};
|
|
@@ -12602,10 +12923,10 @@ var getStyles2 = () => {
|
|
|
12602
12923
|
flex-direction: column;
|
|
12603
12924
|
gap: ${size2[0.5]};
|
|
12604
12925
|
border-radius: ${tokens.border.radius.sm};
|
|
12605
|
-
border: 1px solid ${colors.gray[700]};
|
|
12606
|
-
background-color: ${colors.darkGray[600]};
|
|
12926
|
+
border: 1px solid ${t2(colors.gray[300], colors.gray[700])};
|
|
12927
|
+
background-color: ${t2(colors.gray[50], colors.darkGray[600])};
|
|
12607
12928
|
font-size: ${font.size.xs};
|
|
12608
|
-
color: ${colors.gray[300]};
|
|
12929
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
12609
12930
|
z-index: 99999;
|
|
12610
12931
|
min-width: 120px;
|
|
12611
12932
|
padding: ${size2[0.5]};
|
|
@@ -12615,17 +12936,19 @@ var getStyles2 = () => {
|
|
|
12615
12936
|
align-items: center;
|
|
12616
12937
|
justify-content: space-between;
|
|
12617
12938
|
border-radius: ${tokens.border.radius.xs};
|
|
12618
|
-
padding: ${tokens.size[
|
|
12939
|
+
padding: ${tokens.size[1]} ${tokens.size[1]};
|
|
12619
12940
|
cursor: pointer;
|
|
12620
12941
|
background-color: transparent;
|
|
12621
12942
|
border: none;
|
|
12943
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
12622
12944
|
& svg {
|
|
12945
|
+
color: ${t2(colors.gray[600], colors.gray[400])};
|
|
12623
12946
|
transform: rotate(-90deg);
|
|
12624
12947
|
width: ${tokens.size[2]};
|
|
12625
12948
|
height: ${tokens.size[2]};
|
|
12626
12949
|
}
|
|
12627
12950
|
&:hover {
|
|
12628
|
-
background-color: ${colors.darkGray[500]};
|
|
12951
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[500])};
|
|
12629
12952
|
}
|
|
12630
12953
|
&:focus-visible {
|
|
12631
12954
|
outline-offset: 2px;
|
|
@@ -12637,33 +12960,48 @@ var getStyles2 = () => {
|
|
|
12637
12960
|
}
|
|
12638
12961
|
`,
|
|
12639
12962
|
settingsMenuHeader: u`
|
|
12640
|
-
padding: ${tokens.size[
|
|
12963
|
+
padding: ${tokens.size[1]} ${tokens.size[1]};
|
|
12641
12964
|
font-weight: ${font.weight.medium};
|
|
12642
|
-
border-bottom: 1px solid ${colors.darkGray[400]};
|
|
12643
|
-
color: ${colors.gray[400]};
|
|
12965
|
+
border-bottom: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
|
|
12966
|
+
color: ${t2(colors.gray[500], colors.gray[400])};
|
|
12644
12967
|
font-size: ${font.size["xs"]};
|
|
12645
12968
|
`,
|
|
12646
12969
|
settingsSubButton: u`
|
|
12647
12970
|
display: flex;
|
|
12648
12971
|
align-items: center;
|
|
12649
12972
|
justify-content: space-between;
|
|
12650
|
-
color: ${colors.gray[300]};
|
|
12973
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
12651
12974
|
font-size: ${font.size["xs"]};
|
|
12652
12975
|
border-radius: ${tokens.border.radius.xs};
|
|
12653
|
-
padding: ${tokens.size[
|
|
12976
|
+
padding: ${tokens.size[1]} ${tokens.size[1]};
|
|
12654
12977
|
cursor: pointer;
|
|
12655
12978
|
background-color: transparent;
|
|
12656
12979
|
border: none;
|
|
12980
|
+
& svg {
|
|
12981
|
+
color: ${t2(colors.gray[600], colors.gray[400])};
|
|
12982
|
+
}
|
|
12657
12983
|
&:hover {
|
|
12658
|
-
background-color: ${colors.darkGray[500]};
|
|
12984
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[500])};
|
|
12659
12985
|
}
|
|
12660
12986
|
&:focus-visible {
|
|
12661
12987
|
outline-offset: 2px;
|
|
12662
12988
|
outline: 2px solid ${colors.blue[800]};
|
|
12663
12989
|
}
|
|
12990
|
+
`,
|
|
12991
|
+
themeSelectedButton: u`
|
|
12992
|
+
background-color: ${t2(colors.purple[100], colors.purple[900])};
|
|
12993
|
+
color: ${t2(colors.purple[700], colors.purple[300])};
|
|
12994
|
+
& svg {
|
|
12995
|
+
color: ${t2(colors.purple[700], colors.purple[300])};
|
|
12996
|
+
}
|
|
12997
|
+
&:hover {
|
|
12998
|
+
background-color: ${t2(colors.purple[100], colors.purple[900])};
|
|
12999
|
+
}
|
|
12664
13000
|
`
|
|
12665
13001
|
};
|
|
12666
13002
|
};
|
|
13003
|
+
var lightStyles2 = stylesFactory2("light");
|
|
13004
|
+
var darkStyles2 = stylesFactory2("dark");
|
|
12667
13005
|
export {
|
|
12668
13006
|
Devtools,
|
|
12669
13007
|
DevtoolsComponent,
|