@tanstack/query-devtools 5.0.0-rc.10 → 5.0.0-rc.14
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/{ECUC7UFN.jsx → 3BAJISSX.jsx} +558 -286
- package/build/Devtools/{UZ6MTF6A.js → 4TNE5QTO.js} +610 -366
- package/build/Devtools/{56YMBTAH.jsx → OWSLDUSP.jsx} +558 -286
- package/build/Devtools/{B5V4HXOX.js → YSRICXZI.js} +610 -366
- package/build/dev.cjs +657 -403
- package/build/dev.js +42 -32
- package/build/dev.jsx +42 -32
- package/build/index.cjs +657 -403
- 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 +72 -47
- package/src/icons/index.tsx +113 -50
- 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
|
>
|
|
@@ -9789,35 +9845,34 @@ function List() {
|
|
|
9789
9845
|
</svg>;
|
|
9790
9846
|
}
|
|
9791
9847
|
function Check(props) {
|
|
9792
|
-
return
|
|
9793
|
-
|
|
9794
|
-
|
|
9795
|
-
|
|
9796
|
-
|
|
9797
|
-
|
|
9798
|
-
|
|
9799
|
-
|
|
9800
|
-
|
|
9801
|
-
|
|
9802
|
-
|
|
9803
|
-
|
|
9804
|
-
|
|
9805
|
-
|
|
9806
|
-
|
|
9807
|
-
|
|
9808
|
-
|
|
9809
|
-
|
|
9810
|
-
|
|
9811
|
-
|
|
9812
|
-
|
|
9813
|
-
|
|
9814
|
-
|
|
9815
|
-
|
|
9816
|
-
|
|
9817
|
-
|
|
9818
|
-
|
|
9819
|
-
|
|
9820
|
-
</svg>;
|
|
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
|
+
</>;
|
|
9821
9876
|
}
|
|
9822
9877
|
function TanstackLogo() {
|
|
9823
9878
|
return <svg version="1.0" viewBox="0 0 633 633">
|
|
@@ -10545,6 +10600,12 @@ var QueryDevtoolsContext = createContext({
|
|
|
10545
10600
|
function useQueryDevtoolsContext() {
|
|
10546
10601
|
return useContext(QueryDevtoolsContext);
|
|
10547
10602
|
}
|
|
10603
|
+
var ThemeContext = createContext(
|
|
10604
|
+
() => "dark"
|
|
10605
|
+
);
|
|
10606
|
+
function useTheme() {
|
|
10607
|
+
return useContext(ThemeContext);
|
|
10608
|
+
}
|
|
10548
10609
|
|
|
10549
10610
|
// src/Explorer.tsx
|
|
10550
10611
|
function chunkArray(array, size2) {
|
|
@@ -10559,10 +10620,13 @@ function chunkArray(array, size2) {
|
|
|
10559
10620
|
return result;
|
|
10560
10621
|
}
|
|
10561
10622
|
var Expander = (props) => {
|
|
10562
|
-
const
|
|
10623
|
+
const theme = useTheme();
|
|
10624
|
+
const styles = createMemo(() => {
|
|
10625
|
+
return theme() === "dark" ? darkStyles : lightStyles;
|
|
10626
|
+
});
|
|
10563
10627
|
return <span
|
|
10564
10628
|
class={clsx(
|
|
10565
|
-
styles.expander,
|
|
10629
|
+
styles().expander,
|
|
10566
10630
|
u`
|
|
10567
10631
|
transform: rotate(${props.expanded ? 90 : 0}deg);
|
|
10568
10632
|
`,
|
|
@@ -10586,10 +10650,13 @@ var Expander = (props) => {
|
|
|
10586
10650
|
/></svg></span>;
|
|
10587
10651
|
};
|
|
10588
10652
|
var CopyButton = (props) => {
|
|
10589
|
-
const
|
|
10653
|
+
const theme = useTheme();
|
|
10654
|
+
const styles = createMemo(() => {
|
|
10655
|
+
return theme() === "dark" ? darkStyles : lightStyles;
|
|
10656
|
+
});
|
|
10590
10657
|
const [copyState, setCopyState] = createSignal("NoCopy");
|
|
10591
10658
|
return <button
|
|
10592
|
-
class={styles.actionButton}
|
|
10659
|
+
class={styles().actionButton}
|
|
10593
10660
|
title="Copy object to clipboard"
|
|
10594
10661
|
aria-label={`${copyState() === "NoCopy" ? "Copy object to clipboard" : copyState() === "SuccessCopy" ? "Object copied to clipboard" : "Error copying object to clipboard"}`}
|
|
10595
10662
|
onClick={copyState() === "NoCopy" ? () => {
|
|
@@ -10611,15 +10678,18 @@ var CopyButton = (props) => {
|
|
|
10611
10678
|
} : void 0}
|
|
10612
10679
|
><Switch>
|
|
10613
10680
|
<Match when={copyState() === "NoCopy"}><Copier /></Match>
|
|
10614
|
-
<Match when={copyState() === "SuccessCopy"}><CopiedCopier /></Match>
|
|
10681
|
+
<Match when={copyState() === "SuccessCopy"}><CopiedCopier theme={theme()} /></Match>
|
|
10615
10682
|
<Match when={copyState() === "ErrorCopy"}><ErrorCopier /></Match>
|
|
10616
10683
|
</Switch></button>;
|
|
10617
10684
|
};
|
|
10618
10685
|
var ClearArrayButton = (props) => {
|
|
10619
|
-
const
|
|
10686
|
+
const theme = useTheme();
|
|
10687
|
+
const styles = createMemo(() => {
|
|
10688
|
+
return theme() === "dark" ? darkStyles : lightStyles;
|
|
10689
|
+
});
|
|
10620
10690
|
const queryClient = useQueryDevtoolsContext().client;
|
|
10621
10691
|
return <button
|
|
10622
|
-
class={styles.actionButton}
|
|
10692
|
+
class={styles().actionButton}
|
|
10623
10693
|
title="Remove all items"
|
|
10624
10694
|
aria-label="Remove all items"
|
|
10625
10695
|
onClick={() => {
|
|
@@ -10630,10 +10700,13 @@ var ClearArrayButton = (props) => {
|
|
|
10630
10700
|
><List /></button>;
|
|
10631
10701
|
};
|
|
10632
10702
|
var DeleteItemButton = (props) => {
|
|
10633
|
-
const
|
|
10703
|
+
const theme = useTheme();
|
|
10704
|
+
const styles = createMemo(() => {
|
|
10705
|
+
return theme() === "dark" ? darkStyles : lightStyles;
|
|
10706
|
+
});
|
|
10634
10707
|
const queryClient = useQueryDevtoolsContext().client;
|
|
10635
10708
|
return <button
|
|
10636
|
-
class={clsx(styles.actionButton)}
|
|
10709
|
+
class={clsx(styles().actionButton)}
|
|
10637
10710
|
title="Delete item"
|
|
10638
10711
|
aria-label="Delete item"
|
|
10639
10712
|
onClick={() => {
|
|
@@ -10644,10 +10717,19 @@ var DeleteItemButton = (props) => {
|
|
|
10644
10717
|
><Trash /></button>;
|
|
10645
10718
|
};
|
|
10646
10719
|
var ToggleValueButton = (props) => {
|
|
10647
|
-
const
|
|
10720
|
+
const theme = useTheme();
|
|
10721
|
+
const styles = createMemo(() => {
|
|
10722
|
+
return theme() === "dark" ? darkStyles : lightStyles;
|
|
10723
|
+
});
|
|
10648
10724
|
const queryClient = useQueryDevtoolsContext().client;
|
|
10649
10725
|
return <button
|
|
10650
|
-
class={clsx(
|
|
10726
|
+
class={clsx(
|
|
10727
|
+
styles().actionButton,
|
|
10728
|
+
u`
|
|
10729
|
+
width: ${tokens.size[3.5]};
|
|
10730
|
+
height: ${tokens.size[3.5]};
|
|
10731
|
+
`
|
|
10732
|
+
)}
|
|
10651
10733
|
title="Toggle value"
|
|
10652
10734
|
aria-label="Toggle value"
|
|
10653
10735
|
onClick={() => {
|
|
@@ -10659,13 +10741,16 @@ var ToggleValueButton = (props) => {
|
|
|
10659
10741
|
);
|
|
10660
10742
|
queryClient.setQueryData(props.activeQuery.queryKey, newData);
|
|
10661
10743
|
}}
|
|
10662
|
-
><Check checked={props.value} /></button>;
|
|
10744
|
+
><Check theme={theme()} checked={props.value} /></button>;
|
|
10663
10745
|
};
|
|
10664
10746
|
function isIterable(x) {
|
|
10665
10747
|
return Symbol.iterator in x;
|
|
10666
10748
|
}
|
|
10667
10749
|
function Explorer(props) {
|
|
10668
|
-
const
|
|
10750
|
+
const theme = useTheme();
|
|
10751
|
+
const styles = createMemo(() => {
|
|
10752
|
+
return theme() === "dark" ? darkStyles : lightStyles;
|
|
10753
|
+
});
|
|
10669
10754
|
const queryClient = useQueryDevtoolsContext().client;
|
|
10670
10755
|
const [expanded, setExpanded] = createSignal(
|
|
10671
10756
|
(props.defaultExpanded || []).includes(props.label)
|
|
@@ -10709,25 +10794,25 @@ function Explorer(props) {
|
|
|
10709
10794
|
});
|
|
10710
10795
|
const subEntryPages = createMemo(() => chunkArray(subEntries(), 100));
|
|
10711
10796
|
const currentDataPath = props.dataPath ?? [];
|
|
10712
|
-
return <div class={styles.entry}>
|
|
10797
|
+
return <div class={styles().entry}>
|
|
10713
10798
|
<Show when={subEntryPages().length}>
|
|
10714
|
-
<div class={styles.expanderButtonContainer}>
|
|
10799
|
+
<div class={styles().expanderButtonContainer}>
|
|
10715
10800
|
<button
|
|
10716
|
-
class={styles.expanderButton}
|
|
10801
|
+
class={styles().expanderButton}
|
|
10717
10802
|
onClick={() => toggleExpanded()}
|
|
10718
10803
|
>
|
|
10719
10804
|
<Expander expanded={expanded()} />
|
|
10720
10805
|
{" "}
|
|
10721
10806
|
<span>{props.label}</span>
|
|
10722
10807
|
{" "}
|
|
10723
|
-
<span class={styles.info}>
|
|
10808
|
+
<span class={styles().info}>
|
|
10724
10809
|
{String(type()).toLowerCase() === "iterable" ? "(Iterable) " : ""}
|
|
10725
10810
|
{subEntries().length}
|
|
10726
10811
|
{" "}
|
|
10727
10812
|
{subEntries().length > 1 ? `items` : `item`}
|
|
10728
10813
|
</span>
|
|
10729
10814
|
</button>
|
|
10730
|
-
<Show when={props.editable}><div class={styles.actions}>
|
|
10815
|
+
<Show when={props.editable}><div class={styles().actions}>
|
|
10731
10816
|
<CopyButton value={props.value} />
|
|
10732
10817
|
<Show
|
|
10733
10818
|
when={props.itemsDeletable && props.activeQuery !== void 0}
|
|
@@ -10744,7 +10829,7 @@ function Explorer(props) {
|
|
|
10744
10829
|
</div></Show>
|
|
10745
10830
|
</div>
|
|
10746
10831
|
<Show when={expanded()}>
|
|
10747
|
-
<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) => {
|
|
10748
10833
|
return <Explorer
|
|
10749
10834
|
defaultExpanded={props.defaultExpanded}
|
|
10750
10835
|
label={entry().label}
|
|
@@ -10755,12 +10840,12 @@ function Explorer(props) {
|
|
|
10755
10840
|
itemsDeletable={type() === "array" || type() === "Iterable" || type() === "object"}
|
|
10756
10841
|
/>;
|
|
10757
10842
|
}}</Key></div></Show>
|
|
10758
|
-
<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}>
|
|
10759
10844
|
<button
|
|
10760
10845
|
onClick={() => setExpandedPages(
|
|
10761
10846
|
(old) => old.includes(index) ? old.filter((d) => d !== index) : [...old, index]
|
|
10762
10847
|
)}
|
|
10763
|
-
class={styles.expanderButton}
|
|
10848
|
+
class={styles().expanderButton}
|
|
10764
10849
|
>
|
|
10765
10850
|
<Expander expanded={expandedPages().includes(index)} />
|
|
10766
10851
|
{" "}
|
|
@@ -10770,7 +10855,7 @@ function Explorer(props) {
|
|
|
10770
10855
|
{index * 100 + 100 - 1}
|
|
10771
10856
|
{"]"}
|
|
10772
10857
|
</button>
|
|
10773
|
-
<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
|
|
10774
10859
|
defaultExpanded={props.defaultExpanded}
|
|
10775
10860
|
label={entry().label}
|
|
10776
10861
|
value={entry().value}
|
|
@@ -10781,20 +10866,20 @@ function Explorer(props) {
|
|
|
10781
10866
|
</div></div>}</Index></div></Show>
|
|
10782
10867
|
</Show>
|
|
10783
10868
|
</Show>
|
|
10784
|
-
<Show when={subEntryPages().length === 0}><div class={styles.row}>
|
|
10785
|
-
<span class={styles.label}>
|
|
10869
|
+
<Show when={subEntryPages().length === 0}><div class={styles().row}>
|
|
10870
|
+
<span class={styles().label}>
|
|
10786
10871
|
{props.label}
|
|
10787
10872
|
{":"}
|
|
10788
10873
|
</span>
|
|
10789
10874
|
<Show
|
|
10790
10875
|
when={props.editable && props.activeQuery !== void 0 && (type() === "string" || type() === "number" || type() === "boolean")}
|
|
10791
|
-
fallback={<span class={styles.value}>{displayValue(props.value)}</span>}
|
|
10876
|
+
fallback={<span class={styles().value}>{displayValue(props.value)}</span>}
|
|
10792
10877
|
>
|
|
10793
10878
|
<Show
|
|
10794
10879
|
when={props.editable && props.activeQuery !== void 0 && (type() === "string" || type() === "number")}
|
|
10795
10880
|
><input
|
|
10796
10881
|
type={type() === "number" ? "number" : "text"}
|
|
10797
|
-
class={clsx(styles.value, styles.editableInput)}
|
|
10882
|
+
class={clsx(styles().value, styles().editableInput)}
|
|
10798
10883
|
value={props.value}
|
|
10799
10884
|
onChange={(changeEvent) => {
|
|
10800
10885
|
const oldData = props.activeQuery.state.data;
|
|
@@ -10807,7 +10892,11 @@ function Explorer(props) {
|
|
|
10807
10892
|
}}
|
|
10808
10893
|
/></Show>
|
|
10809
10894
|
<Show when={type() === "boolean"}><span
|
|
10810
|
-
class={clsx(
|
|
10895
|
+
class={clsx(
|
|
10896
|
+
styles().value,
|
|
10897
|
+
styles().actions,
|
|
10898
|
+
styles().editableInput
|
|
10899
|
+
)}
|
|
10811
10900
|
>
|
|
10812
10901
|
<ToggleValueButton
|
|
10813
10902
|
activeQuery={props.activeQuery}
|
|
@@ -10826,8 +10915,9 @@ function Explorer(props) {
|
|
|
10826
10915
|
</div></Show>
|
|
10827
10916
|
</div>;
|
|
10828
10917
|
}
|
|
10829
|
-
var
|
|
10918
|
+
var stylesFactory = (theme) => {
|
|
10830
10919
|
const { colors, font, size: size2, border } = tokens;
|
|
10920
|
+
const t2 = (light, dark) => theme === "light" ? light : dark;
|
|
10831
10921
|
return {
|
|
10832
10922
|
entry: u`
|
|
10833
10923
|
& * {
|
|
@@ -10841,7 +10931,7 @@ var getStyles = () => {
|
|
|
10841
10931
|
subEntry: u`
|
|
10842
10932
|
margin: 0 0 0 0.5em;
|
|
10843
10933
|
padding-left: 0.75em;
|
|
10844
|
-
border-left: 2px solid ${colors.darkGray[400]};
|
|
10934
|
+
border-left: 2px solid ${t2(colors.gray[300], colors.darkGray[400])};
|
|
10845
10935
|
/* outline: 1px solid ${colors.teal[400]}; */
|
|
10846
10936
|
`,
|
|
10847
10937
|
expander: u`
|
|
@@ -10890,16 +10980,16 @@ var getStyles = () => {
|
|
|
10890
10980
|
}
|
|
10891
10981
|
`,
|
|
10892
10982
|
info: u`
|
|
10893
|
-
color: ${colors.gray[500]};
|
|
10983
|
+
color: ${t2(colors.gray[500], colors.gray[500])};
|
|
10894
10984
|
font-size: ${font.size.xs};
|
|
10895
10985
|
margin-left: ${size2[1]};
|
|
10896
10986
|
/* outline: 1px solid ${colors.yellow[400]}; */
|
|
10897
10987
|
`,
|
|
10898
10988
|
label: u`
|
|
10899
|
-
color: ${colors.gray[300]};
|
|
10989
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
10900
10990
|
`,
|
|
10901
10991
|
value: u`
|
|
10902
|
-
color: ${colors.purple[400]};
|
|
10992
|
+
color: ${t2(colors.purple[600], colors.purple[400])};
|
|
10903
10993
|
flex-grow: 1;
|
|
10904
10994
|
`,
|
|
10905
10995
|
actions: u`
|
|
@@ -10917,16 +11007,18 @@ var getStyles = () => {
|
|
|
10917
11007
|
`,
|
|
10918
11008
|
editableInput: u`
|
|
10919
11009
|
border: none;
|
|
10920
|
-
padding: ${size2[0.5]} ${size2[1]};
|
|
11010
|
+
padding: ${size2[0.5]} ${size2[1]} ${size2[0.5]} ${size2[1.5]};
|
|
10921
11011
|
flex-grow: 1;
|
|
10922
|
-
|
|
11012
|
+
border-radius: ${border.radius.xs};
|
|
11013
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[500])};
|
|
10923
11014
|
|
|
10924
11015
|
&:hover {
|
|
10925
|
-
background-color: ${colors.gray[
|
|
11016
|
+
background-color: ${t2(colors.gray[300], colors.darkGray[600])};
|
|
10926
11017
|
}
|
|
10927
11018
|
`,
|
|
10928
11019
|
actionButton: u`
|
|
10929
11020
|
background-color: transparent;
|
|
11021
|
+
color: ${t2(colors.gray[500], colors.gray[500])};
|
|
10930
11022
|
border: none;
|
|
10931
11023
|
display: inline-flex;
|
|
10932
11024
|
padding: 0px;
|
|
@@ -10939,15 +11031,7 @@ var getStyles = () => {
|
|
|
10939
11031
|
z-index: 1;
|
|
10940
11032
|
|
|
10941
11033
|
&:hover svg {
|
|
10942
|
-
.
|
|
10943
|
-
.check,
|
|
10944
|
-
.list {
|
|
10945
|
-
stroke: ${colors.gray[500]} !important;
|
|
10946
|
-
}
|
|
10947
|
-
|
|
10948
|
-
.list-item {
|
|
10949
|
-
stroke: ${colors.gray[700]};
|
|
10950
|
-
}
|
|
11034
|
+
color: ${t2(colors.gray[600], colors.gray[400])};
|
|
10951
11035
|
}
|
|
10952
11036
|
|
|
10953
11037
|
&:focus-visible {
|
|
@@ -10958,6 +11042,8 @@ var getStyles = () => {
|
|
|
10958
11042
|
`
|
|
10959
11043
|
};
|
|
10960
11044
|
};
|
|
11045
|
+
var lightStyles = stylesFactory("light");
|
|
11046
|
+
var darkStyles = stylesFactory("dark");
|
|
10961
11047
|
|
|
10962
11048
|
// src/fonts.ts
|
|
10963
11049
|
var loadFonts = () => {
|
|
@@ -10973,6 +11059,7 @@ var secondBreakpoint = 796;
|
|
|
10973
11059
|
var thirdBreakpoint = 700;
|
|
10974
11060
|
var BUTTON_POSITION = "bottom-right";
|
|
10975
11061
|
var POSITION = "bottom";
|
|
11062
|
+
var THEME_PREFERENCE = "system";
|
|
10976
11063
|
var INITIAL_IS_OPEN = false;
|
|
10977
11064
|
var DEFAULT_HEIGHT = 500;
|
|
10978
11065
|
var DEFAULT_WIDTH = 500;
|
|
@@ -10983,28 +11070,38 @@ var [selectedQueryHash, setSelectedQueryHash] = createSignal(
|
|
|
10983
11070
|
);
|
|
10984
11071
|
var [panelWidth, setPanelWidth] = createSignal(0);
|
|
10985
11072
|
var DevtoolsComponent = (props) => {
|
|
10986
|
-
|
|
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>;
|
|
10987
11084
|
};
|
|
10988
11085
|
var Devtools_default = DevtoolsComponent;
|
|
10989
|
-
var Devtools = () => {
|
|
11086
|
+
var Devtools = (props) => {
|
|
10990
11087
|
loadFonts();
|
|
10991
|
-
const
|
|
10992
|
-
const
|
|
10993
|
-
|
|
11088
|
+
const theme = useTheme();
|
|
11089
|
+
const styles = createMemo(() => {
|
|
11090
|
+
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
10994
11091
|
});
|
|
10995
11092
|
const buttonPosition = createMemo(() => {
|
|
10996
11093
|
return useQueryDevtoolsContext().buttonPosition || BUTTON_POSITION;
|
|
10997
11094
|
});
|
|
10998
11095
|
const isOpen = createMemo(() => {
|
|
10999
|
-
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;
|
|
11000
11097
|
});
|
|
11001
11098
|
const position = createMemo(() => {
|
|
11002
|
-
return localStore.position || useQueryDevtoolsContext().position || POSITION;
|
|
11099
|
+
return props.localStore.position || useQueryDevtoolsContext().position || POSITION;
|
|
11003
11100
|
});
|
|
11004
11101
|
createEffect(() => {
|
|
11005
11102
|
const root = document.querySelector(".tsqd-parent-container");
|
|
11006
|
-
const height = localStore.height || DEFAULT_HEIGHT;
|
|
11007
|
-
const width = localStore.width || DEFAULT_WIDTH;
|
|
11103
|
+
const height = props.localStore.height || DEFAULT_HEIGHT;
|
|
11104
|
+
const width = props.localStore.width || DEFAULT_WIDTH;
|
|
11008
11105
|
const panelPosition = position();
|
|
11009
11106
|
root.style.setProperty(
|
|
11010
11107
|
"--tsqd-panel-height",
|
|
@@ -11042,25 +11139,28 @@ var Devtools = () => {
|
|
|
11042
11139
|
)}
|
|
11043
11140
|
>
|
|
11044
11141
|
<TransitionGroup name="tsqd-panel-transition"><Show when={isOpen()}><DevtoolsPanel
|
|
11045
|
-
localStore={localStore}
|
|
11046
|
-
setLocalStore={setLocalStore}
|
|
11142
|
+
localStore={props.localStore}
|
|
11143
|
+
setLocalStore={props.setLocalStore}
|
|
11047
11144
|
/></Show></TransitionGroup>
|
|
11048
11145
|
<TransitionGroup name="tsqd-button-transition"><Show when={!isOpen()}><div
|
|
11049
11146
|
class={clsx(
|
|
11050
|
-
styles.devtoolsBtn,
|
|
11051
|
-
styles[`devtoolsBtn-position-${buttonPosition()}`]
|
|
11147
|
+
styles().devtoolsBtn,
|
|
11148
|
+
styles()[`devtoolsBtn-position-${buttonPosition()}`]
|
|
11052
11149
|
)}
|
|
11053
11150
|
>
|
|
11054
11151
|
<div aria-hidden="true"><TanstackLogo /></div>
|
|
11055
11152
|
<button
|
|
11056
11153
|
aria-label="Open Tanstack query devtools"
|
|
11057
|
-
onClick={() => setLocalStore("open", "true")}
|
|
11154
|
+
onClick={() => props.setLocalStore("open", "true")}
|
|
11058
11155
|
><TanstackLogo /></button>
|
|
11059
11156
|
</div></Show></TransitionGroup>
|
|
11060
11157
|
</div>;
|
|
11061
11158
|
};
|
|
11062
11159
|
var DevtoolsPanel = (props) => {
|
|
11063
|
-
const
|
|
11160
|
+
const theme = useTheme();
|
|
11161
|
+
const styles = createMemo(() => {
|
|
11162
|
+
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
11163
|
+
});
|
|
11064
11164
|
const [isResizing, setIsResizing] = createSignal(false);
|
|
11065
11165
|
const sort = createMemo(() => props.localStore.sort || DEFAULT_SORT_FN_NAME);
|
|
11066
11166
|
const sortOrder = createMemo(
|
|
@@ -11177,14 +11277,25 @@ var DevtoolsPanel = (props) => {
|
|
|
11177
11277
|
});
|
|
11178
11278
|
});
|
|
11179
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
|
+
};
|
|
11180
11294
|
return <aside
|
|
11181
11295
|
class={clsx(
|
|
11182
|
-
styles.panel,
|
|
11183
|
-
styles[`panel-position-${position()}`],
|
|
11184
|
-
|
|
11185
|
-
flex-direction: ${panelWidth() < secondBreakpoint ? "column" : "row"};
|
|
11186
|
-
background-color: ${panelWidth() < secondBreakpoint ? tokens.colors.gray[600] : tokens.colors.darkGray[900]};
|
|
11187
|
-
`,
|
|
11296
|
+
styles().panel,
|
|
11297
|
+
styles()[`panel-position-${position()}`],
|
|
11298
|
+
getPanelDynamicStyles(),
|
|
11188
11299
|
{
|
|
11189
11300
|
[u`
|
|
11190
11301
|
min-width: min-content;
|
|
@@ -11201,8 +11312,8 @@ var DevtoolsPanel = (props) => {
|
|
|
11201
11312
|
>
|
|
11202
11313
|
<div
|
|
11203
11314
|
class={clsx(
|
|
11204
|
-
styles.dragHandle,
|
|
11205
|
-
styles[`dragHandle-position-${position()}`],
|
|
11315
|
+
styles().dragHandle,
|
|
11316
|
+
styles()[`dragHandle-position-${position()}`],
|
|
11206
11317
|
"tsqd-drag-handle"
|
|
11207
11318
|
)}
|
|
11208
11319
|
onMouseDown={handleDragStart}
|
|
@@ -11210,8 +11321,8 @@ var DevtoolsPanel = (props) => {
|
|
|
11210
11321
|
<button
|
|
11211
11322
|
aria-label="Close tanstack query devtools"
|
|
11212
11323
|
class={clsx(
|
|
11213
|
-
styles.closeBtn,
|
|
11214
|
-
styles[`closeBtn-position-${position()}`],
|
|
11324
|
+
styles().closeBtn,
|
|
11325
|
+
styles()[`closeBtn-position-${position()}`],
|
|
11215
11326
|
"tsqd-minimize-btn"
|
|
11216
11327
|
)}
|
|
11217
11328
|
onClick={() => props.setLocalStore("open", "false")}
|
|
@@ -11219,7 +11330,7 @@ var DevtoolsPanel = (props) => {
|
|
|
11219
11330
|
<div
|
|
11220
11331
|
ref={queriesContainerRef}
|
|
11221
11332
|
class={clsx(
|
|
11222
|
-
styles.queriesContainer,
|
|
11333
|
+
styles().queriesContainer,
|
|
11223
11334
|
panelWidth() < secondBreakpoint && selectedQueryHash() && u`
|
|
11224
11335
|
height: 50%;
|
|
11225
11336
|
max-height: 50%;
|
|
@@ -11227,15 +11338,18 @@ var DevtoolsPanel = (props) => {
|
|
|
11227
11338
|
"tsqd-queries-container"
|
|
11228
11339
|
)}
|
|
11229
11340
|
>
|
|
11230
|
-
<div class={clsx(styles.row, "tsqd-header")}>
|
|
11341
|
+
<div class={clsx(styles().row, "tsqd-header")}>
|
|
11231
11342
|
<button
|
|
11232
|
-
class={clsx(styles.logo, "tsqd-text-logo-container")}
|
|
11343
|
+
class={clsx(styles().logo, "tsqd-text-logo-container")}
|
|
11233
11344
|
onClick={() => props.setLocalStore("open", "false")}
|
|
11234
11345
|
aria-label="Close Tanstack query devtools"
|
|
11235
11346
|
>
|
|
11236
|
-
<span class={clsx(styles.tanstackLogo, "tsqd-text-logo-tanstack")}>TANSTACK</span>
|
|
11347
|
+
<span class={clsx(styles().tanstackLogo, "tsqd-text-logo-tanstack")}>TANSTACK</span>
|
|
11237
11348
|
<span
|
|
11238
|
-
class={clsx(
|
|
11349
|
+
class={clsx(
|
|
11350
|
+
styles().queryFlavorLogo,
|
|
11351
|
+
"tsqd-text-logo-query-flavor"
|
|
11352
|
+
)}
|
|
11239
11353
|
>
|
|
11240
11354
|
{useQueryDevtoolsContext().queryFlavor}
|
|
11241
11355
|
{" v"}
|
|
@@ -11246,17 +11360,17 @@ var DevtoolsPanel = (props) => {
|
|
|
11246
11360
|
</div>
|
|
11247
11361
|
<div
|
|
11248
11362
|
class={clsx(
|
|
11249
|
-
styles.row,
|
|
11363
|
+
styles().row,
|
|
11250
11364
|
u`
|
|
11251
11365
|
gap: ${tokens.size[2.5]};
|
|
11252
11366
|
`,
|
|
11253
11367
|
"tsqd-filters-actions-container"
|
|
11254
11368
|
)}
|
|
11255
11369
|
>
|
|
11256
|
-
<div class={clsx(styles.filtersContainer, "tsqd-filters-container")}>
|
|
11370
|
+
<div class={clsx(styles().filtersContainer, "tsqd-filters-container")}>
|
|
11257
11371
|
<div
|
|
11258
11372
|
class={clsx(
|
|
11259
|
-
styles.filterInput,
|
|
11373
|
+
styles().filterInput,
|
|
11260
11374
|
"tsqd-query-filter-textfield-container"
|
|
11261
11375
|
)}
|
|
11262
11376
|
>
|
|
@@ -11272,7 +11386,7 @@ var DevtoolsPanel = (props) => {
|
|
|
11272
11386
|
</div>
|
|
11273
11387
|
<div
|
|
11274
11388
|
class={clsx(
|
|
11275
|
-
styles.filterSelect,
|
|
11389
|
+
styles().filterSelect,
|
|
11276
11390
|
"tsqd-query-filter-sort-container"
|
|
11277
11391
|
)}
|
|
11278
11392
|
>
|
|
@@ -11303,13 +11417,13 @@ var DevtoolsPanel = (props) => {
|
|
|
11303
11417
|
</Show>
|
|
11304
11418
|
</button>
|
|
11305
11419
|
</div>
|
|
11306
|
-
<div class={clsx(styles.actionsContainer, "tsqd-actions-container")}>
|
|
11420
|
+
<div class={clsx(styles().actionsContainer, "tsqd-actions-container")}>
|
|
11307
11421
|
<button
|
|
11308
11422
|
onClick={() => {
|
|
11309
11423
|
cache().clear();
|
|
11310
11424
|
}}
|
|
11311
11425
|
class={clsx(
|
|
11312
|
-
styles.actionsBtn,
|
|
11426
|
+
styles().actionsBtn,
|
|
11313
11427
|
"tsqd-actions-btn",
|
|
11314
11428
|
"tsqd-action-clear-cache"
|
|
11315
11429
|
)}
|
|
@@ -11327,7 +11441,8 @@ var DevtoolsPanel = (props) => {
|
|
|
11327
11441
|
}
|
|
11328
11442
|
}}
|
|
11329
11443
|
class={clsx(
|
|
11330
|
-
styles.actionsBtn,
|
|
11444
|
+
styles().actionsBtn,
|
|
11445
|
+
offline() && styles().actionsBtnOffline,
|
|
11331
11446
|
"tsqd-actions-btn",
|
|
11332
11447
|
"tsqd-action-mock-offline-behavior"
|
|
11333
11448
|
)}
|
|
@@ -11338,24 +11453,24 @@ var DevtoolsPanel = (props) => {
|
|
|
11338
11453
|
<index$d.Root gutter={4}>
|
|
11339
11454
|
<index$d.Trigger
|
|
11340
11455
|
class={clsx(
|
|
11341
|
-
styles.actionsBtn,
|
|
11456
|
+
styles().actionsBtn,
|
|
11342
11457
|
"tsqd-actions-btn",
|
|
11343
11458
|
"tsqd-action-settings"
|
|
11344
11459
|
)}
|
|
11345
11460
|
><Settings /></index$d.Trigger>
|
|
11346
11461
|
<index$d.Portal><index$d.Content
|
|
11347
|
-
class={clsx(styles.settingsMenu, "tsqd-settings-menu")}
|
|
11462
|
+
class={clsx(styles().settingsMenu, "tsqd-settings-menu")}
|
|
11348
11463
|
>
|
|
11349
11464
|
<div
|
|
11350
11465
|
class={clsx(
|
|
11351
|
-
styles.settingsMenuHeader,
|
|
11466
|
+
styles().settingsMenuHeader,
|
|
11352
11467
|
"tsqd-settings-menu-header"
|
|
11353
11468
|
)}
|
|
11354
11469
|
>Settings</div>
|
|
11355
11470
|
<index$d.Sub overlap gutter={8} shift={-4}>
|
|
11356
11471
|
<index$d.SubTrigger
|
|
11357
11472
|
class={clsx(
|
|
11358
|
-
styles.settingsSubTrigger,
|
|
11473
|
+
styles().settingsSubTrigger,
|
|
11359
11474
|
"tsqd-settings-menu-sub-trigger",
|
|
11360
11475
|
"tsqd-settings-menu-sub-trigger-position"
|
|
11361
11476
|
)}
|
|
@@ -11364,7 +11479,10 @@ var DevtoolsPanel = (props) => {
|
|
|
11364
11479
|
<ChevronDown />
|
|
11365
11480
|
</index$d.SubTrigger>
|
|
11366
11481
|
<index$d.Portal><index$d.SubContent
|
|
11367
|
-
class={clsx(
|
|
11482
|
+
class={clsx(
|
|
11483
|
+
styles().settingsMenu,
|
|
11484
|
+
"tsqd-settings-submenu"
|
|
11485
|
+
)}
|
|
11368
11486
|
>
|
|
11369
11487
|
<index$d.Item
|
|
11370
11488
|
onSelect={() => {
|
|
@@ -11372,7 +11490,7 @@ var DevtoolsPanel = (props) => {
|
|
|
11372
11490
|
}}
|
|
11373
11491
|
as="button"
|
|
11374
11492
|
class={clsx(
|
|
11375
|
-
styles.settingsSubButton,
|
|
11493
|
+
styles().settingsSubButton,
|
|
11376
11494
|
"tsqd-settings-menu-position-btn",
|
|
11377
11495
|
"tsqd-settings-menu-position-btn-top"
|
|
11378
11496
|
)}
|
|
@@ -11386,7 +11504,7 @@ var DevtoolsPanel = (props) => {
|
|
|
11386
11504
|
}}
|
|
11387
11505
|
as="button"
|
|
11388
11506
|
class={clsx(
|
|
11389
|
-
styles.settingsSubButton,
|
|
11507
|
+
styles().settingsSubButton,
|
|
11390
11508
|
"tsqd-settings-menu-position-btn",
|
|
11391
11509
|
"tsqd-settings-menu-position-btn-bottom"
|
|
11392
11510
|
)}
|
|
@@ -11400,7 +11518,7 @@ var DevtoolsPanel = (props) => {
|
|
|
11400
11518
|
}}
|
|
11401
11519
|
as="button"
|
|
11402
11520
|
class={clsx(
|
|
11403
|
-
styles.settingsSubButton,
|
|
11521
|
+
styles().settingsSubButton,
|
|
11404
11522
|
"tsqd-settings-menu-position-btn",
|
|
11405
11523
|
"tsqd-settings-menu-position-btn-left"
|
|
11406
11524
|
)}
|
|
@@ -11414,7 +11532,7 @@ var DevtoolsPanel = (props) => {
|
|
|
11414
11532
|
}}
|
|
11415
11533
|
as="button"
|
|
11416
11534
|
class={clsx(
|
|
11417
|
-
styles.settingsSubButton,
|
|
11535
|
+
styles().settingsSubButton,
|
|
11418
11536
|
"tsqd-settings-menu-position-btn",
|
|
11419
11537
|
"tsqd-settings-menu-position-btn-right"
|
|
11420
11538
|
)}
|
|
@@ -11424,13 +11542,77 @@ var DevtoolsPanel = (props) => {
|
|
|
11424
11542
|
</index$d.Item>
|
|
11425
11543
|
</index$d.SubContent></index$d.Portal>
|
|
11426
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>
|
|
11427
11609
|
</index$d.Content></index$d.Portal>
|
|
11428
11610
|
</index$d.Root>
|
|
11429
11611
|
</div>
|
|
11430
11612
|
</div>
|
|
11431
11613
|
<div
|
|
11432
11614
|
class={clsx(
|
|
11433
|
-
styles.overflowQueryContainer,
|
|
11615
|
+
styles().overflowQueryContainer,
|
|
11434
11616
|
"tsqd-queries-overflow-container"
|
|
11435
11617
|
)}
|
|
11436
11618
|
><div class="tsqd-queries-container"><Key by={(q) => q.queryHash} each={queries()}>{(query) => <QueryRow query={query()} />}</Key></div></div>
|
|
@@ -11439,7 +11621,12 @@ var DevtoolsPanel = (props) => {
|
|
|
11439
11621
|
</aside>;
|
|
11440
11622
|
};
|
|
11441
11623
|
var QueryRow = (props) => {
|
|
11442
|
-
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;
|
|
11443
11630
|
const queryState = createSubscribeToQueryCacheBatcher(
|
|
11444
11631
|
(queryCache) => queryCache().find({
|
|
11445
11632
|
queryKey: props.query.queryKey
|
|
@@ -11467,28 +11654,34 @@ var QueryRow = (props) => {
|
|
|
11467
11654
|
isStale: isStale()
|
|
11468
11655
|
})
|
|
11469
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
|
+
};
|
|
11470
11672
|
return <Show when={queryState()}><button
|
|
11471
11673
|
onClick={() => setSelectedQueryHash(
|
|
11472
11674
|
props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash
|
|
11473
11675
|
)}
|
|
11474
11676
|
class={clsx(
|
|
11475
|
-
styles.queryRow,
|
|
11476
|
-
selectedQueryHash() === props.query.queryHash && styles.selectedQueryRow,
|
|
11677
|
+
styles().queryRow,
|
|
11678
|
+
selectedQueryHash() === props.query.queryHash && styles().selectedQueryRow,
|
|
11477
11679
|
"tsqd-query-row"
|
|
11478
11680
|
)}
|
|
11479
11681
|
aria-label={`Query key ${props.query.queryHash}`}
|
|
11480
11682
|
>
|
|
11481
11683
|
<div
|
|
11482
|
-
class={clsx(
|
|
11483
|
-
color() === "gray" ? u`
|
|
11484
|
-
background-color: ${tokens.colors[color()][700]};
|
|
11485
|
-
color: ${tokens.colors[color()][300]};
|
|
11486
|
-
` : u`
|
|
11487
|
-
background-color: ${tokens.colors[color()][900]};
|
|
11488
|
-
color: ${tokens.colors[color()][300]};
|
|
11489
|
-
`,
|
|
11490
|
-
"tsqd-query-observer-count"
|
|
11491
|
-
)}
|
|
11684
|
+
class={clsx(getObserverCountColorStyles(), "tsqd-query-observer-count")}
|
|
11492
11685
|
>{observers()}</div>
|
|
11493
11686
|
<code class="tsqd-query-hash">{props.query.queryHash}</code>
|
|
11494
11687
|
<Show when={isDisabled()}><div class="tsqd-query-disabled-indicator">disabled</div></Show>
|
|
@@ -11510,8 +11703,13 @@ var QueryStatusCount = () => {
|
|
|
11510
11703
|
const inactive = createSubscribeToQueryCacheBatcher(
|
|
11511
11704
|
(queryCache) => queryCache().getAll().filter((q) => getQueryStatusLabel(q) === "inactive").length
|
|
11512
11705
|
);
|
|
11513
|
-
const
|
|
11514
|
-
|
|
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
|
+
>
|
|
11515
11713
|
<QueryStatus label="Fresh" color="green" count={fresh()} />
|
|
11516
11714
|
<QueryStatus label="Fetching" color="blue" count={fetching()} />
|
|
11517
11715
|
<QueryStatus label="Paused" color="purple" count={paused()} />
|
|
@@ -11520,7 +11718,12 @@ var QueryStatusCount = () => {
|
|
|
11520
11718
|
</div>;
|
|
11521
11719
|
};
|
|
11522
11720
|
var QueryStatus = (props) => {
|
|
11523
|
-
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;
|
|
11524
11727
|
let tagRef;
|
|
11525
11728
|
const [mouseOver, setMouseOver] = createSignal(false);
|
|
11526
11729
|
const [focused, setFocused] = createSignal(false);
|
|
@@ -11546,11 +11749,11 @@ var QueryStatus = (props) => {
|
|
|
11546
11749
|
disabled={showLabel()}
|
|
11547
11750
|
ref={tagRef}
|
|
11548
11751
|
class={clsx(
|
|
11549
|
-
styles.queryStatusTag,
|
|
11752
|
+
styles().queryStatusTag,
|
|
11550
11753
|
!showLabel() && u`
|
|
11551
11754
|
cursor: pointer;
|
|
11552
11755
|
&:hover {
|
|
11553
|
-
background: ${
|
|
11756
|
+
background: ${t2(colors.gray[200], colors.darkGray[400])}${alpha[80]};
|
|
11554
11757
|
}
|
|
11555
11758
|
`,
|
|
11556
11759
|
"tsqd-query-status-tag",
|
|
@@ -11563,7 +11766,7 @@ var QueryStatus = (props) => {
|
|
|
11563
11766
|
<Show when={!showLabel() && (mouseOver() || focused())}><div
|
|
11564
11767
|
role="tooltip"
|
|
11565
11768
|
id="tsqd-status-tooltip"
|
|
11566
|
-
class={clsx(styles.statusTooltip, "tsqd-query-status-tooltip")}
|
|
11769
|
+
class={clsx(styles().statusTooltip, "tsqd-query-status-tooltip")}
|
|
11567
11770
|
>{props.label}</div></Show>
|
|
11568
11771
|
<span
|
|
11569
11772
|
class={clsx(
|
|
@@ -11577,24 +11780,33 @@ var QueryStatus = (props) => {
|
|
|
11577
11780
|
)}
|
|
11578
11781
|
/>
|
|
11579
11782
|
<Show when={showLabel()}><span
|
|
11580
|
-
class={clsx(
|
|
11783
|
+
class={clsx(
|
|
11784
|
+
styles().queryStatusTagLabel,
|
|
11785
|
+
"tsqd-query-status-tag-label"
|
|
11786
|
+
)}
|
|
11581
11787
|
>{props.label}</span></Show>
|
|
11582
11788
|
<span
|
|
11583
11789
|
class={clsx(
|
|
11584
|
-
styles.queryStatusCount,
|
|
11585
|
-
props.count > 0 && props.color !== "gray"
|
|
11586
|
-
|
|
11587
|
-
|
|
11588
|
-
|
|
11589
|
-
|
|
11590
|
-
|
|
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
|
+
`,
|
|
11591
11798
|
"tsqd-query-status-tag-count"
|
|
11592
11799
|
)}
|
|
11593
11800
|
>{props.count}</span>
|
|
11594
11801
|
</button>;
|
|
11595
11802
|
};
|
|
11596
11803
|
var QueryDetails = () => {
|
|
11597
|
-
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;
|
|
11598
11810
|
const queryClient = useQueryDevtoolsContext().client;
|
|
11599
11811
|
const [restoringLoading, setRestoringLoading] = createSignal(false);
|
|
11600
11812
|
const errorTypes = createMemo(() => {
|
|
@@ -11665,26 +11877,34 @@ var QueryDetails = () => {
|
|
|
11665
11877
|
setRestoringLoading(false);
|
|
11666
11878
|
}
|
|
11667
11879
|
});
|
|
11668
|
-
|
|
11669
|
-
|
|
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>
|
|
11670
11898
|
<div
|
|
11671
|
-
class={clsx(
|
|
11899
|
+
class={clsx(
|
|
11900
|
+
styles().detailsBody,
|
|
11901
|
+
"tsqd-query-details-summary-container"
|
|
11902
|
+
)}
|
|
11672
11903
|
>
|
|
11673
11904
|
<div class="tsqd-query-details-summary">
|
|
11674
11905
|
<pre><code>{displayValue(activeQuery().queryKey, true)}</code></pre>
|
|
11675
11906
|
<span
|
|
11676
|
-
class={clsx(
|
|
11677
|
-
styles.queryDetailsStatus,
|
|
11678
|
-
color() === "gray" ? u`
|
|
11679
|
-
background-color: ${tokens.colors[color()][700]};
|
|
11680
|
-
color: ${tokens.colors[color()][300]};
|
|
11681
|
-
border-color: ${tokens.colors[color()][600]};
|
|
11682
|
-
` : u`
|
|
11683
|
-
background-color: ${tokens.colors[color()][900]};
|
|
11684
|
-
color: ${tokens.colors[color()][300]};
|
|
11685
|
-
border-color: ${tokens.colors[color()][600]};
|
|
11686
|
-
`
|
|
11687
|
-
)}
|
|
11907
|
+
class={clsx(styles().queryDetailsStatus, getQueryStatusColors())}
|
|
11688
11908
|
>{statusLabel()}</span>
|
|
11689
11909
|
</div>
|
|
11690
11910
|
<div class="tsqd-query-details-observers-count">
|
|
@@ -11696,14 +11916,17 @@ var QueryDetails = () => {
|
|
|
11696
11916
|
<span>{new Date(activeQueryState().dataUpdatedAt).toLocaleTimeString()}</span>
|
|
11697
11917
|
</div>
|
|
11698
11918
|
</div>
|
|
11699
|
-
<div class={clsx(styles.detailsHeader, "tsqd-query-details-header")}>Actions</div>
|
|
11919
|
+
<div class={clsx(styles().detailsHeader, "tsqd-query-details-header")}>Actions</div>
|
|
11700
11920
|
<div
|
|
11701
|
-
class={clsx(
|
|
11921
|
+
class={clsx(
|
|
11922
|
+
styles().actionsBody,
|
|
11923
|
+
"tsqd-query-details-actions-container"
|
|
11924
|
+
)}
|
|
11702
11925
|
>
|
|
11703
11926
|
<button
|
|
11704
11927
|
class={clsx(
|
|
11705
11928
|
u`
|
|
11706
|
-
color: ${
|
|
11929
|
+
color: ${t2(colors.blue[600], colors.blue[400])};
|
|
11707
11930
|
`,
|
|
11708
11931
|
"tsqd-query-details-actions-btn",
|
|
11709
11932
|
"tsqd-query-details-action-refetch"
|
|
@@ -11713,7 +11936,7 @@ var QueryDetails = () => {
|
|
|
11713
11936
|
>
|
|
11714
11937
|
<span
|
|
11715
11938
|
class={u`
|
|
11716
|
-
background-color: ${
|
|
11939
|
+
background-color: ${t2(colors.blue[600], colors.blue[400])};
|
|
11717
11940
|
`}
|
|
11718
11941
|
/>
|
|
11719
11942
|
{"Refetch"}
|
|
@@ -11721,7 +11944,7 @@ var QueryDetails = () => {
|
|
|
11721
11944
|
<button
|
|
11722
11945
|
class={clsx(
|
|
11723
11946
|
u`
|
|
11724
|
-
color: ${
|
|
11947
|
+
color: ${t2(colors.yellow[600], colors.yellow[400])};
|
|
11725
11948
|
`,
|
|
11726
11949
|
"tsqd-query-details-actions-btn",
|
|
11727
11950
|
"tsqd-query-details-action-invalidate"
|
|
@@ -11731,7 +11954,7 @@ var QueryDetails = () => {
|
|
|
11731
11954
|
>
|
|
11732
11955
|
<span
|
|
11733
11956
|
class={u`
|
|
11734
|
-
background-color: ${
|
|
11957
|
+
background-color: ${t2(colors.yellow[600], colors.yellow[400])};
|
|
11735
11958
|
`}
|
|
11736
11959
|
/>
|
|
11737
11960
|
{"Invalidate"}
|
|
@@ -11739,7 +11962,7 @@ var QueryDetails = () => {
|
|
|
11739
11962
|
<button
|
|
11740
11963
|
class={clsx(
|
|
11741
11964
|
u`
|
|
11742
|
-
color: ${
|
|
11965
|
+
color: ${t2(colors.gray[600], colors.gray[300])};
|
|
11743
11966
|
`,
|
|
11744
11967
|
"tsqd-query-details-actions-btn",
|
|
11745
11968
|
"tsqd-query-details-action-reset"
|
|
@@ -11749,7 +11972,7 @@ var QueryDetails = () => {
|
|
|
11749
11972
|
>
|
|
11750
11973
|
<span
|
|
11751
11974
|
class={u`
|
|
11752
|
-
background-color: ${
|
|
11975
|
+
background-color: ${t2(colors.gray[600], colors.gray[400])};
|
|
11753
11976
|
`}
|
|
11754
11977
|
/>
|
|
11755
11978
|
{"Reset"}
|
|
@@ -11757,7 +11980,7 @@ var QueryDetails = () => {
|
|
|
11757
11980
|
<button
|
|
11758
11981
|
class={clsx(
|
|
11759
11982
|
u`
|
|
11760
|
-
color: ${
|
|
11983
|
+
color: ${t2(colors.pink[500], colors.pink[400])};
|
|
11761
11984
|
`,
|
|
11762
11985
|
"tsqd-query-details-actions-btn",
|
|
11763
11986
|
"tsqd-query-details-action-remove"
|
|
@@ -11770,7 +11993,7 @@ var QueryDetails = () => {
|
|
|
11770
11993
|
>
|
|
11771
11994
|
<span
|
|
11772
11995
|
class={u`
|
|
11773
|
-
background-color: ${
|
|
11996
|
+
background-color: ${t2(colors.pink[500], colors.pink[400])};
|
|
11774
11997
|
`}
|
|
11775
11998
|
/>
|
|
11776
11999
|
{"Remove"}
|
|
@@ -11778,7 +12001,7 @@ var QueryDetails = () => {
|
|
|
11778
12001
|
<button
|
|
11779
12002
|
class={clsx(
|
|
11780
12003
|
u`
|
|
11781
|
-
color: ${
|
|
12004
|
+
color: ${t2(colors.cyan[500], colors.cyan[400])};
|
|
11782
12005
|
`,
|
|
11783
12006
|
"tsqd-query-details-actions-btn",
|
|
11784
12007
|
"tsqd-query-details-action-loading"
|
|
@@ -11815,7 +12038,7 @@ var QueryDetails = () => {
|
|
|
11815
12038
|
>
|
|
11816
12039
|
<span
|
|
11817
12040
|
class={u`
|
|
11818
|
-
background-color: ${
|
|
12041
|
+
background-color: ${t2(colors.cyan[500], colors.cyan[400])};
|
|
11819
12042
|
`}
|
|
11820
12043
|
/>
|
|
11821
12044
|
{queryStatus() === "pending" ? "Restore" : "Trigger"}
|
|
@@ -11824,7 +12047,7 @@ var QueryDetails = () => {
|
|
|
11824
12047
|
<Show when={errorTypes().length === 0 || queryStatus() === "error"}><button
|
|
11825
12048
|
class={clsx(
|
|
11826
12049
|
u`
|
|
11827
|
-
color: ${
|
|
12050
|
+
color: ${t2(colors.red[500], colors.red[400])};
|
|
11828
12051
|
`,
|
|
11829
12052
|
"tsqd-query-details-actions-btn",
|
|
11830
12053
|
"tsqd-query-details-action-error"
|
|
@@ -11840,7 +12063,7 @@ var QueryDetails = () => {
|
|
|
11840
12063
|
>
|
|
11841
12064
|
<span
|
|
11842
12065
|
class={u`
|
|
11843
|
-
background-color: ${
|
|
12066
|
+
background-color: ${t2(colors.red[500], colors.red[400])};
|
|
11844
12067
|
`}
|
|
11845
12068
|
/>
|
|
11846
12069
|
{queryStatus() === "error" ? "Restore" : "Trigger"}
|
|
@@ -11850,7 +12073,7 @@ var QueryDetails = () => {
|
|
|
11850
12073
|
when={!(errorTypes().length === 0 || queryStatus() === "error")}
|
|
11851
12074
|
><div
|
|
11852
12075
|
class={clsx(
|
|
11853
|
-
styles.actionsSelect,
|
|
12076
|
+
styles().actionsSelect,
|
|
11854
12077
|
"tsqd-query-details-actions-btn",
|
|
11855
12078
|
"tsqd-query-details-action-error-multiple"
|
|
11856
12079
|
)}
|
|
@@ -11865,7 +12088,7 @@ var QueryDetails = () => {
|
|
|
11865
12088
|
disabled={queryStatus() === "pending"}
|
|
11866
12089
|
onChange={(e2) => {
|
|
11867
12090
|
const errorType = errorTypes().find(
|
|
11868
|
-
(
|
|
12091
|
+
(et) => et.name === e2.currentTarget.value
|
|
11869
12092
|
);
|
|
11870
12093
|
triggerError(errorType);
|
|
11871
12094
|
}}
|
|
@@ -11876,7 +12099,7 @@ var QueryDetails = () => {
|
|
|
11876
12099
|
<ChevronDown />
|
|
11877
12100
|
</div></Show>
|
|
11878
12101
|
</div>
|
|
11879
|
-
<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>
|
|
11880
12103
|
<div
|
|
11881
12104
|
style={{
|
|
11882
12105
|
padding: "0.5rem"
|
|
@@ -11889,7 +12112,7 @@ var QueryDetails = () => {
|
|
|
11889
12112
|
editable={true}
|
|
11890
12113
|
activeQuery={activeQuery()}
|
|
11891
12114
|
/></div>
|
|
11892
|
-
<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>
|
|
11893
12116
|
<div
|
|
11894
12117
|
style={{
|
|
11895
12118
|
padding: "0.5rem"
|
|
@@ -11939,8 +12162,9 @@ var createSubscribeToQueryCacheBatcher = (callback, equalityCheck = true) => {
|
|
|
11939
12162
|
});
|
|
11940
12163
|
return value;
|
|
11941
12164
|
};
|
|
11942
|
-
var
|
|
12165
|
+
var stylesFactory2 = (theme) => {
|
|
11943
12166
|
const { colors, font, size: size2, alpha, shadow, border } = tokens;
|
|
12167
|
+
const t2 = (light, dark) => theme === "light" ? light : dark;
|
|
11944
12168
|
return {
|
|
11945
12169
|
devtoolsBtn: u`
|
|
11946
12170
|
z-index: 100000;
|
|
@@ -12002,8 +12226,6 @@ var getStyles2 = () => {
|
|
|
12002
12226
|
display: flex;
|
|
12003
12227
|
gap: ${tokens.size[0.5]};
|
|
12004
12228
|
& * {
|
|
12005
|
-
font-family: 'Inter', sans-serif;
|
|
12006
|
-
color: ${colors.gray[300]};
|
|
12007
12229
|
box-sizing: border-box;
|
|
12008
12230
|
text-transform: none;
|
|
12009
12231
|
}
|
|
@@ -12030,7 +12252,7 @@ var getStyles2 = () => {
|
|
|
12030
12252
|
left: 0;
|
|
12031
12253
|
max-height: 90%;
|
|
12032
12254
|
min-height: 3.5rem;
|
|
12033
|
-
border-bottom: ${colors.darkGray[300]} 1px solid;
|
|
12255
|
+
border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
12034
12256
|
`,
|
|
12035
12257
|
"panel-position-bottom": u`
|
|
12036
12258
|
bottom: 0;
|
|
@@ -12038,20 +12260,20 @@ var getStyles2 = () => {
|
|
|
12038
12260
|
left: 0;
|
|
12039
12261
|
max-height: 90%;
|
|
12040
12262
|
min-height: 3.5rem;
|
|
12041
|
-
border-top: ${colors.darkGray[300]} 1px solid;
|
|
12263
|
+
border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
12042
12264
|
`,
|
|
12043
12265
|
"panel-position-right": u`
|
|
12044
12266
|
bottom: 0;
|
|
12045
12267
|
right: 0;
|
|
12046
12268
|
top: 0;
|
|
12047
|
-
border-left: ${colors.darkGray[300]} 1px solid;
|
|
12269
|
+
border-left: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
12048
12270
|
max-width: 90%;
|
|
12049
12271
|
`,
|
|
12050
12272
|
"panel-position-left": u`
|
|
12051
12273
|
bottom: 0;
|
|
12052
12274
|
left: 0;
|
|
12053
12275
|
top: 0;
|
|
12054
|
-
border-right: ${colors.darkGray[300]} 1px solid;
|
|
12276
|
+
border-right: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
12055
12277
|
max-width: 90%;
|
|
12056
12278
|
`,
|
|
12057
12279
|
closeBtn: u`
|
|
@@ -12062,13 +12284,15 @@ var getStyles2 = () => {
|
|
|
12062
12284
|
align-items: center;
|
|
12063
12285
|
justify-content: center;
|
|
12064
12286
|
outline: none;
|
|
12287
|
+
background-color: ${t2(colors.gray[50], colors.darkGray[700])};
|
|
12065
12288
|
&:hover {
|
|
12066
|
-
background-color: ${colors.darkGray[500]};
|
|
12289
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[500])};
|
|
12067
12290
|
}
|
|
12068
12291
|
&:focus-visible {
|
|
12069
12292
|
outline: 2px solid ${colors.blue[600]};
|
|
12070
12293
|
}
|
|
12071
12294
|
& svg {
|
|
12295
|
+
color: ${t2(colors.gray[600], colors.gray[400])};
|
|
12072
12296
|
width: ${size2[2]};
|
|
12073
12297
|
height: ${size2[2]};
|
|
12074
12298
|
}
|
|
@@ -12077,11 +12301,10 @@ var getStyles2 = () => {
|
|
|
12077
12301
|
bottom: 0;
|
|
12078
12302
|
right: ${size2[2]};
|
|
12079
12303
|
transform: translate(0, 100%);
|
|
12080
|
-
|
|
12081
|
-
border-
|
|
12082
|
-
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;
|
|
12083
12306
|
border-top: none;
|
|
12084
|
-
border-bottom: ${colors.darkGray[300]} 1px solid;
|
|
12307
|
+
border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
|
|
12085
12308
|
border-radius: 0px 0px ${border.radius.sm} ${border.radius.sm};
|
|
12086
12309
|
padding: ${size2[0.5]} ${size2[1.5]} ${size2[1]} ${size2[1.5]};
|
|
12087
12310
|
|
|
@@ -12102,10 +12325,9 @@ var getStyles2 = () => {
|
|
|
12102
12325
|
top: 0;
|
|
12103
12326
|
right: ${size2[2]};
|
|
12104
12327
|
transform: translate(0, -100%);
|
|
12105
|
-
|
|
12106
|
-
border-
|
|
12107
|
-
border-
|
|
12108
|
-
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;
|
|
12109
12331
|
border-bottom: none;
|
|
12110
12332
|
border-radius: ${border.radius.sm} ${border.radius.sm} 0px 0px;
|
|
12111
12333
|
padding: ${size2[1]} ${size2[1.5]} ${size2[0.5]} ${size2[1.5]};
|
|
@@ -12123,11 +12345,10 @@ var getStyles2 = () => {
|
|
|
12123
12345
|
bottom: ${size2[2]};
|
|
12124
12346
|
left: 0;
|
|
12125
12347
|
transform: translate(-100%, 0);
|
|
12126
|
-
background-color: ${colors.darkGray[700]};
|
|
12127
12348
|
border-right: none;
|
|
12128
|
-
border-left: ${colors.darkGray[300]} 1px solid;
|
|
12129
|
-
border-top: ${colors.darkGray[300]} 1px solid;
|
|
12130
|
-
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;
|
|
12131
12352
|
border-radius: ${border.radius.sm} 0px 0px ${border.radius.sm};
|
|
12132
12353
|
padding: ${size2[1.5]} ${size2[0.5]} ${size2[1.5]} ${size2[1]};
|
|
12133
12354
|
|
|
@@ -12147,11 +12368,10 @@ var getStyles2 = () => {
|
|
|
12147
12368
|
bottom: ${size2[2]};
|
|
12148
12369
|
right: 0;
|
|
12149
12370
|
transform: translate(100%, 0);
|
|
12150
|
-
background-color: ${colors.darkGray[700]};
|
|
12151
12371
|
border-left: none;
|
|
12152
|
-
border-right: ${colors.darkGray[300]} 1px solid;
|
|
12153
|
-
border-top: ${colors.darkGray[300]} 1px solid;
|
|
12154
|
-
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;
|
|
12155
12375
|
border-radius: 0px ${border.radius.sm} ${border.radius.sm} 0px;
|
|
12156
12376
|
padding: ${size2[1.5]} ${size2[1]} ${size2[1.5]} ${size2[0.5]};
|
|
12157
12377
|
|
|
@@ -12169,15 +12389,18 @@ var getStyles2 = () => {
|
|
|
12169
12389
|
`,
|
|
12170
12390
|
queriesContainer: u`
|
|
12171
12391
|
flex: 1 1 700px;
|
|
12172
|
-
background-color: ${colors.darkGray[700]};
|
|
12392
|
+
background-color: ${t2(colors.gray[50], colors.darkGray[700])};
|
|
12173
12393
|
display: flex;
|
|
12174
12394
|
flex-direction: column;
|
|
12395
|
+
& * {
|
|
12396
|
+
font-family: 'Inter', sans-serif;
|
|
12397
|
+
}
|
|
12175
12398
|
`,
|
|
12176
12399
|
dragHandle: u`
|
|
12177
12400
|
position: absolute;
|
|
12178
12401
|
transition: background-color 0.125s ease;
|
|
12179
12402
|
&:hover {
|
|
12180
|
-
background-color: ${colors.purple[400]}${alpha[90]};
|
|
12403
|
+
background-color: ${colors.purple[400]}${t2("", alpha[90])};
|
|
12181
12404
|
}
|
|
12182
12405
|
z-index: 4;
|
|
12183
12406
|
`,
|
|
@@ -12211,7 +12434,7 @@ var getStyles2 = () => {
|
|
|
12211
12434
|
align-items: center;
|
|
12212
12435
|
padding: ${tokens.size[2]} ${tokens.size[2.5]};
|
|
12213
12436
|
gap: ${tokens.size[3]};
|
|
12214
|
-
border-bottom: ${colors.darkGray[500]} 1px solid;
|
|
12437
|
+
border-bottom: ${t2(colors.gray[300], colors.darkGray[500])} 1px solid;
|
|
12215
12438
|
align-items: center;
|
|
12216
12439
|
& > button {
|
|
12217
12440
|
padding: 0;
|
|
@@ -12238,11 +12461,15 @@ var getStyles2 = () => {
|
|
|
12238
12461
|
font-weight: ${font.weight.bold};
|
|
12239
12462
|
line-height: ${font.lineHeight.xs};
|
|
12240
12463
|
white-space: nowrap;
|
|
12464
|
+
color: ${t2(colors.gray[600], colors.gray[300])};
|
|
12241
12465
|
`,
|
|
12242
12466
|
queryFlavorLogo: u`
|
|
12243
12467
|
font-weight: ${font.weight.semibold};
|
|
12244
12468
|
font-size: ${font.size.xs};
|
|
12245
|
-
background: linear-gradient(
|
|
12469
|
+
background: linear-gradient(
|
|
12470
|
+
to right,
|
|
12471
|
+
${t2("#ea4037, #ff9b11", "#dd524b, #e9a03b")}
|
|
12472
|
+
);
|
|
12246
12473
|
background-clip: text;
|
|
12247
12474
|
-webkit-background-clip: text;
|
|
12248
12475
|
line-height: 1;
|
|
@@ -12257,14 +12484,17 @@ var getStyles2 = () => {
|
|
|
12257
12484
|
queryStatusTag: u`
|
|
12258
12485
|
display: flex;
|
|
12259
12486
|
gap: ${tokens.size[1.5]};
|
|
12260
|
-
|
|
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])};
|
|
12261
12491
|
border-radius: ${tokens.border.radius.sm};
|
|
12262
12492
|
font-size: ${font.size.sm};
|
|
12263
12493
|
padding: ${tokens.size[1]};
|
|
12264
|
-
padding-left: ${tokens.size[
|
|
12494
|
+
padding-left: ${tokens.size[1.5]};
|
|
12265
12495
|
align-items: center;
|
|
12266
12496
|
font-weight: ${font.weight.medium};
|
|
12267
|
-
border:
|
|
12497
|
+
border: ${t2("1px solid " + colors.gray[300], "1px solid transparent")};
|
|
12268
12498
|
user-select: none;
|
|
12269
12499
|
position: relative;
|
|
12270
12500
|
&:focus-visible {
|
|
@@ -12281,8 +12511,8 @@ var getStyles2 = () => {
|
|
|
12281
12511
|
display: flex;
|
|
12282
12512
|
align-items: center;
|
|
12283
12513
|
justify-content: center;
|
|
12284
|
-
color: ${colors.gray[400]};
|
|
12285
|
-
background-color: ${colors.darkGray[300]};
|
|
12514
|
+
color: ${t2(colors.gray[500], colors.gray[400])};
|
|
12515
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[300])};
|
|
12286
12516
|
border-radius: 2px;
|
|
12287
12517
|
font-variant-numeric: tabular-nums;
|
|
12288
12518
|
height: ${tokens.size[4.5]};
|
|
@@ -12290,15 +12520,15 @@ var getStyles2 = () => {
|
|
|
12290
12520
|
statusTooltip: u`
|
|
12291
12521
|
position: absolute;
|
|
12292
12522
|
z-index: 1;
|
|
12293
|
-
background-color: ${colors.darkGray[500]};
|
|
12523
|
+
background-color: ${t2(colors.gray[50], colors.darkGray[500])};
|
|
12294
12524
|
top: 100%;
|
|
12295
12525
|
left: 50%;
|
|
12296
12526
|
transform: translate(-50%, calc(${tokens.size[2]}));
|
|
12297
12527
|
padding: ${tokens.size[0.5]} ${tokens.size[2]};
|
|
12298
|
-
border-radius: ${tokens.border.radius.
|
|
12528
|
+
border-radius: ${tokens.border.radius.sm};
|
|
12299
12529
|
font-size: ${font.size.xs};
|
|
12300
|
-
border: 1px solid ${colors.gray[600]};
|
|
12301
|
-
color: ${
|
|
12530
|
+
border: 1px solid ${t2(colors.gray[400], colors.gray[600])};
|
|
12531
|
+
color: ${t2(colors["gray"][600], colors["gray"][300])};
|
|
12302
12532
|
|
|
12303
12533
|
&::before {
|
|
12304
12534
|
top: 0px;
|
|
@@ -12307,7 +12537,8 @@ var getStyles2 = () => {
|
|
|
12307
12537
|
left: 50%;
|
|
12308
12538
|
transform: translate(-50%, -100%);
|
|
12309
12539
|
position: absolute;
|
|
12310
|
-
border-color: transparent transparent
|
|
12540
|
+
border-color: transparent transparent
|
|
12541
|
+
${t2(colors.gray[400], colors.gray[600])} transparent;
|
|
12311
12542
|
border-style: solid;
|
|
12312
12543
|
border-width: 7px;
|
|
12313
12544
|
/* transform: rotate(180deg); */
|
|
@@ -12318,17 +12549,14 @@ var getStyles2 = () => {
|
|
|
12318
12549
|
content: ' ';
|
|
12319
12550
|
display: block;
|
|
12320
12551
|
left: 50%;
|
|
12321
|
-
transform: translate(-50%, calc(-100% +
|
|
12552
|
+
transform: translate(-50%, calc(-100% + 2px));
|
|
12322
12553
|
position: absolute;
|
|
12323
|
-
border-color: transparent transparent
|
|
12324
|
-
transparent;
|
|
12554
|
+
border-color: transparent transparent
|
|
12555
|
+
${t2(colors.gray[100], colors.darkGray[500])} transparent;
|
|
12325
12556
|
border-style: solid;
|
|
12326
12557
|
border-width: 7px;
|
|
12327
12558
|
}
|
|
12328
12559
|
`,
|
|
12329
|
-
selectedQueryRow: u`
|
|
12330
|
-
background-color: ${colors.darkGray[500]};
|
|
12331
|
-
`,
|
|
12332
12560
|
filtersContainer: u`
|
|
12333
12561
|
display: flex;
|
|
12334
12562
|
gap: ${tokens.size[2]};
|
|
@@ -12337,47 +12565,52 @@ var getStyles2 = () => {
|
|
|
12337
12565
|
padding: ${tokens.size[0.5]} ${tokens.size[2]};
|
|
12338
12566
|
padding-right: ${tokens.size[1.5]};
|
|
12339
12567
|
border-radius: ${tokens.border.radius.sm};
|
|
12340
|
-
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])};
|
|
12341
12571
|
font-size: ${font.size.xs};
|
|
12342
12572
|
display: flex;
|
|
12343
12573
|
align-items: center;
|
|
12344
12574
|
line-height: ${font.lineHeight.sm};
|
|
12345
12575
|
gap: ${tokens.size[1.5]};
|
|
12346
12576
|
max-width: 160px;
|
|
12347
|
-
border: 1px solid ${colors.darkGray[200]};
|
|
12348
12577
|
&:focus-visible {
|
|
12349
12578
|
outline-offset: 2px;
|
|
12350
12579
|
border-radius: ${border.radius.xs};
|
|
12351
12580
|
outline: 2px solid ${colors.blue[800]};
|
|
12352
12581
|
}
|
|
12582
|
+
& svg {
|
|
12583
|
+
color: ${t2(colors.gray[500], colors.gray[400])};
|
|
12584
|
+
}
|
|
12353
12585
|
}
|
|
12354
12586
|
`,
|
|
12355
12587
|
filterInput: u`
|
|
12356
|
-
padding: ${
|
|
12588
|
+
padding: ${size2[0.5]} ${size2[2]};
|
|
12357
12589
|
border-radius: ${tokens.border.radius.sm};
|
|
12358
|
-
background-color: ${colors.darkGray[400]};
|
|
12590
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
12359
12591
|
display: flex;
|
|
12360
12592
|
box-sizing: content-box;
|
|
12361
12593
|
align-items: center;
|
|
12362
12594
|
gap: ${tokens.size[1.5]};
|
|
12363
12595
|
max-width: 160px;
|
|
12364
12596
|
min-width: 100px;
|
|
12365
|
-
border: 1px solid ${colors.darkGray[200]};
|
|
12597
|
+
border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
|
|
12366
12598
|
height: min-content;
|
|
12599
|
+
color: ${t2(colors.gray[600], colors.gray[400])};
|
|
12367
12600
|
& > svg {
|
|
12368
|
-
width: ${
|
|
12369
|
-
height: ${
|
|
12601
|
+
width: ${size2[3]};
|
|
12602
|
+
height: ${size2[3]};
|
|
12370
12603
|
}
|
|
12371
12604
|
& input {
|
|
12372
12605
|
font-size: ${font.size.xs};
|
|
12373
12606
|
width: 100%;
|
|
12374
|
-
background-color: ${colors.darkGray[400]};
|
|
12607
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
12375
12608
|
border: none;
|
|
12376
12609
|
padding: 0;
|
|
12377
12610
|
line-height: ${font.lineHeight.sm};
|
|
12378
|
-
color: ${colors.gray[300]};
|
|
12611
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
12379
12612
|
&::placeholder {
|
|
12380
|
-
color: ${colors.gray[300]};
|
|
12613
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
12381
12614
|
}
|
|
12382
12615
|
&:focus {
|
|
12383
12616
|
outline: none;
|
|
@@ -12393,24 +12626,26 @@ var getStyles2 = () => {
|
|
|
12393
12626
|
filterSelect: u`
|
|
12394
12627
|
padding: ${tokens.size[0.5]} ${tokens.size[2]};
|
|
12395
12628
|
border-radius: ${tokens.border.radius.sm};
|
|
12396
|
-
background-color: ${colors.darkGray[400]};
|
|
12629
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
12397
12630
|
display: flex;
|
|
12398
12631
|
align-items: center;
|
|
12399
12632
|
gap: ${tokens.size[1.5]};
|
|
12400
12633
|
box-sizing: content-box;
|
|
12401
12634
|
max-width: 160px;
|
|
12402
|
-
border: 1px solid ${colors.darkGray[200]};
|
|
12635
|
+
border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
|
|
12403
12636
|
height: min-content;
|
|
12404
12637
|
& > svg {
|
|
12638
|
+
color: ${t2(colors.gray[600], colors.gray[400])};
|
|
12405
12639
|
width: ${tokens.size[2]};
|
|
12406
12640
|
height: ${tokens.size[2]};
|
|
12407
12641
|
}
|
|
12408
12642
|
& > select {
|
|
12409
12643
|
appearance: none;
|
|
12644
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
12410
12645
|
min-width: 100px;
|
|
12411
12646
|
line-height: ${font.lineHeight.sm};
|
|
12412
12647
|
font-size: ${font.size.xs};
|
|
12413
|
-
background-color: ${colors.darkGray[400]};
|
|
12648
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
12414
12649
|
border: none;
|
|
12415
12650
|
&:focus {
|
|
12416
12651
|
outline: none;
|
|
@@ -12428,7 +12663,8 @@ var getStyles2 = () => {
|
|
|
12428
12663
|
`,
|
|
12429
12664
|
actionsBtn: u`
|
|
12430
12665
|
border-radius: ${tokens.border.radius.sm};
|
|
12431
|
-
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])};
|
|
12432
12668
|
width: 1.625rem;
|
|
12433
12669
|
height: 1.625rem;
|
|
12434
12670
|
justify-content: center;
|
|
@@ -12436,13 +12672,13 @@ var getStyles2 = () => {
|
|
|
12436
12672
|
align-items: center;
|
|
12437
12673
|
gap: ${tokens.size[1.5]};
|
|
12438
12674
|
max-width: 160px;
|
|
12439
|
-
border: 1px solid ${colors.darkGray[200]};
|
|
12440
12675
|
cursor: pointer;
|
|
12441
12676
|
padding: 0;
|
|
12442
12677
|
&:hover {
|
|
12443
|
-
background-color: ${colors.darkGray[500]};
|
|
12678
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[500])};
|
|
12444
12679
|
}
|
|
12445
12680
|
& svg {
|
|
12681
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
12446
12682
|
width: ${tokens.size[3]};
|
|
12447
12683
|
height: ${tokens.size[3]};
|
|
12448
12684
|
}
|
|
@@ -12452,6 +12688,12 @@ var getStyles2 = () => {
|
|
|
12452
12688
|
outline: 2px solid ${colors.blue[800]};
|
|
12453
12689
|
}
|
|
12454
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
|
+
`,
|
|
12455
12697
|
overflowQueryContainer: u`
|
|
12456
12698
|
flex: 1;
|
|
12457
12699
|
overflow-y: auto;
|
|
@@ -12464,9 +12706,11 @@ var getStyles2 = () => {
|
|
|
12464
12706
|
display: flex;
|
|
12465
12707
|
align-items: center;
|
|
12466
12708
|
padding: 0;
|
|
12467
|
-
background-color: inherit;
|
|
12468
12709
|
border: none;
|
|
12469
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;
|
|
12470
12714
|
&:focus {
|
|
12471
12715
|
outline: none;
|
|
12472
12716
|
}
|
|
@@ -12476,7 +12720,7 @@ var getStyles2 = () => {
|
|
|
12476
12720
|
outline: 2px solid ${colors.blue[800]};
|
|
12477
12721
|
}
|
|
12478
12722
|
&:hover .tsqd-query-hash {
|
|
12479
|
-
background-color: ${colors.darkGray[600]};
|
|
12723
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[600])};
|
|
12480
12724
|
}
|
|
12481
12725
|
|
|
12482
12726
|
& .tsqd-query-observer-count {
|
|
@@ -12491,7 +12735,7 @@ var getStyles2 = () => {
|
|
|
12491
12735
|
font-weight: ${font.weight.medium};
|
|
12492
12736
|
border-bottom-width: 1px;
|
|
12493
12737
|
border-bottom-style: solid;
|
|
12494
|
-
border-bottom: 1px solid ${colors.darkGray[700]};
|
|
12738
|
+
border-bottom: 1px solid ${t2(colors.gray[300], colors.darkGray[700])};
|
|
12495
12739
|
}
|
|
12496
12740
|
& .tsqd-query-hash {
|
|
12497
12741
|
user-select: text;
|
|
@@ -12502,7 +12746,7 @@ var getStyles2 = () => {
|
|
|
12502
12746
|
flex: 1;
|
|
12503
12747
|
padding: ${tokens.size[1]} ${tokens.size[2]};
|
|
12504
12748
|
font-family: 'Menlo', 'Fira Code', monospace;
|
|
12505
|
-
border-bottom: 1px solid ${colors.darkGray[400]};
|
|
12749
|
+
border-bottom: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
|
|
12506
12750
|
text-align: left;
|
|
12507
12751
|
text-overflow: clip;
|
|
12508
12752
|
word-break: break-word;
|
|
@@ -12513,15 +12757,20 @@ var getStyles2 = () => {
|
|
|
12513
12757
|
display: flex;
|
|
12514
12758
|
align-items: center;
|
|
12515
12759
|
padding: 0 ${tokens.size[2]};
|
|
12516
|
-
color: ${colors.gray[300]};
|
|
12517
|
-
background-color: ${colors.darkGray[600]};
|
|
12518
|
-
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])};
|
|
12519
12763
|
font-size: ${font.size.xs};
|
|
12520
12764
|
}
|
|
12521
12765
|
`,
|
|
12766
|
+
selectedQueryRow: u`
|
|
12767
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[500])};
|
|
12768
|
+
`,
|
|
12522
12769
|
detailsContainer: u`
|
|
12523
12770
|
flex: 1 1 700px;
|
|
12524
|
-
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;
|
|
12525
12774
|
display: flex;
|
|
12526
12775
|
flex-direction: column;
|
|
12527
12776
|
overflow-y: auto;
|
|
@@ -12529,10 +12778,11 @@ var getStyles2 = () => {
|
|
|
12529
12778
|
text-align: left;
|
|
12530
12779
|
`,
|
|
12531
12780
|
detailsHeader: u`
|
|
12781
|
+
font-family: 'Inter', sans-serif;
|
|
12532
12782
|
position: sticky;
|
|
12533
12783
|
top: 0;
|
|
12534
12784
|
z-index: 2;
|
|
12535
|
-
background-color: ${colors.darkGray[600]};
|
|
12785
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[600])};
|
|
12536
12786
|
padding: ${tokens.size[1.5]} ${tokens.size[2]};
|
|
12537
12787
|
font-weight: ${font.weight.medium};
|
|
12538
12788
|
font-size: ${font.size.xs};
|
|
@@ -12565,6 +12815,10 @@ var getStyles2 = () => {
|
|
|
12565
12815
|
font-size: ${font.size.xs};
|
|
12566
12816
|
line-height: ${font.lineHeight.xs};
|
|
12567
12817
|
}
|
|
12818
|
+
|
|
12819
|
+
& pre {
|
|
12820
|
+
margin: 0;
|
|
12821
|
+
}
|
|
12568
12822
|
`,
|
|
12569
12823
|
queryDetailsStatus: u`
|
|
12570
12824
|
border: 1px solid ${colors.darkGray[200]};
|
|
@@ -12579,12 +12833,13 @@ var getStyles2 = () => {
|
|
|
12579
12833
|
gap: ${tokens.size[2]};
|
|
12580
12834
|
padding: 0px ${tokens.size[2]};
|
|
12581
12835
|
& > button {
|
|
12836
|
+
font-family: 'Inter', sans-serif;
|
|
12582
12837
|
font-size: ${font.size.xs};
|
|
12583
12838
|
padding: ${tokens.size[1]} ${tokens.size[2]};
|
|
12584
12839
|
display: flex;
|
|
12585
12840
|
border-radius: ${tokens.border.radius.sm};
|
|
12586
|
-
|
|
12587
|
-
|
|
12841
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[600])};
|
|
12842
|
+
border: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
|
|
12588
12843
|
align-items: center;
|
|
12589
12844
|
gap: ${tokens.size[2]};
|
|
12590
12845
|
font-weight: ${font.weight.medium};
|
|
@@ -12596,7 +12851,7 @@ var getStyles2 = () => {
|
|
|
12596
12851
|
outline: 2px solid ${colors.blue[800]};
|
|
12597
12852
|
}
|
|
12598
12853
|
&:hover {
|
|
12599
|
-
background-color: ${colors.darkGray[500]};
|
|
12854
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[500])};
|
|
12600
12855
|
}
|
|
12601
12856
|
|
|
12602
12857
|
&:disabled {
|
|
@@ -12617,17 +12872,17 @@ var getStyles2 = () => {
|
|
|
12617
12872
|
display: flex;
|
|
12618
12873
|
border-radius: ${tokens.border.radius.sm};
|
|
12619
12874
|
overflow: hidden;
|
|
12620
|
-
|
|
12621
|
-
|
|
12875
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[600])};
|
|
12876
|
+
border: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
|
|
12622
12877
|
align-items: center;
|
|
12623
12878
|
gap: ${tokens.size[2]};
|
|
12624
12879
|
font-weight: ${font.weight.medium};
|
|
12625
12880
|
line-height: ${font.lineHeight.sm};
|
|
12626
|
-
color: ${
|
|
12881
|
+
color: ${t2(colors.red[500], colors.red[400])};
|
|
12627
12882
|
cursor: pointer;
|
|
12628
12883
|
position: relative;
|
|
12629
12884
|
&:hover {
|
|
12630
|
-
background-color: ${colors.darkGray[500]};
|
|
12885
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[500])};
|
|
12631
12886
|
}
|
|
12632
12887
|
& > span {
|
|
12633
12888
|
width: ${size2[1.5]};
|
|
@@ -12668,10 +12923,10 @@ var getStyles2 = () => {
|
|
|
12668
12923
|
flex-direction: column;
|
|
12669
12924
|
gap: ${size2[0.5]};
|
|
12670
12925
|
border-radius: ${tokens.border.radius.sm};
|
|
12671
|
-
border: 1px solid ${colors.gray[700]};
|
|
12672
|
-
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])};
|
|
12673
12928
|
font-size: ${font.size.xs};
|
|
12674
|
-
color: ${colors.gray[300]};
|
|
12929
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
12675
12930
|
z-index: 99999;
|
|
12676
12931
|
min-width: 120px;
|
|
12677
12932
|
padding: ${size2[0.5]};
|
|
@@ -12681,17 +12936,19 @@ var getStyles2 = () => {
|
|
|
12681
12936
|
align-items: center;
|
|
12682
12937
|
justify-content: space-between;
|
|
12683
12938
|
border-radius: ${tokens.border.radius.xs};
|
|
12684
|
-
padding: ${tokens.size[
|
|
12939
|
+
padding: ${tokens.size[1]} ${tokens.size[1]};
|
|
12685
12940
|
cursor: pointer;
|
|
12686
12941
|
background-color: transparent;
|
|
12687
12942
|
border: none;
|
|
12943
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
12688
12944
|
& svg {
|
|
12945
|
+
color: ${t2(colors.gray[600], colors.gray[400])};
|
|
12689
12946
|
transform: rotate(-90deg);
|
|
12690
12947
|
width: ${tokens.size[2]};
|
|
12691
12948
|
height: ${tokens.size[2]};
|
|
12692
12949
|
}
|
|
12693
12950
|
&:hover {
|
|
12694
|
-
background-color: ${colors.darkGray[500]};
|
|
12951
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[500])};
|
|
12695
12952
|
}
|
|
12696
12953
|
&:focus-visible {
|
|
12697
12954
|
outline-offset: 2px;
|
|
@@ -12703,33 +12960,48 @@ var getStyles2 = () => {
|
|
|
12703
12960
|
}
|
|
12704
12961
|
`,
|
|
12705
12962
|
settingsMenuHeader: u`
|
|
12706
|
-
padding: ${tokens.size[
|
|
12963
|
+
padding: ${tokens.size[1]} ${tokens.size[1]};
|
|
12707
12964
|
font-weight: ${font.weight.medium};
|
|
12708
|
-
border-bottom: 1px solid ${colors.darkGray[400]};
|
|
12709
|
-
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])};
|
|
12710
12967
|
font-size: ${font.size["xs"]};
|
|
12711
12968
|
`,
|
|
12712
12969
|
settingsSubButton: u`
|
|
12713
12970
|
display: flex;
|
|
12714
12971
|
align-items: center;
|
|
12715
12972
|
justify-content: space-between;
|
|
12716
|
-
color: ${colors.gray[300]};
|
|
12973
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
12717
12974
|
font-size: ${font.size["xs"]};
|
|
12718
12975
|
border-radius: ${tokens.border.radius.xs};
|
|
12719
|
-
padding: ${tokens.size[
|
|
12976
|
+
padding: ${tokens.size[1]} ${tokens.size[1]};
|
|
12720
12977
|
cursor: pointer;
|
|
12721
12978
|
background-color: transparent;
|
|
12722
12979
|
border: none;
|
|
12980
|
+
& svg {
|
|
12981
|
+
color: ${t2(colors.gray[600], colors.gray[400])};
|
|
12982
|
+
}
|
|
12723
12983
|
&:hover {
|
|
12724
|
-
background-color: ${colors.darkGray[500]};
|
|
12984
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[500])};
|
|
12725
12985
|
}
|
|
12726
12986
|
&:focus-visible {
|
|
12727
12987
|
outline-offset: 2px;
|
|
12728
12988
|
outline: 2px solid ${colors.blue[800]};
|
|
12729
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
|
+
}
|
|
12730
13000
|
`
|
|
12731
13001
|
};
|
|
12732
13002
|
};
|
|
13003
|
+
var lightStyles2 = stylesFactory2("light");
|
|
13004
|
+
var darkStyles2 = stylesFactory2("dark");
|
|
12733
13005
|
export {
|
|
12734
13006
|
Devtools,
|
|
12735
13007
|
DevtoolsComponent,
|