@buoy-gg/react-query 7.0.26 → 7.0.27
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/lib/commonjs/react-query/components/DataEditorMode.js +17 -16
- package/lib/commonjs/react-query/components/FilterStatusBadge.js +1 -1
- package/lib/commonjs/react-query/components/MutationBrowserMode.js +4 -3
- package/lib/commonjs/react-query/components/MutationEditorMode.js +51 -34
- package/lib/commonjs/react-query/components/QueryBrowserMode.js +4 -3
- package/lib/commonjs/react-query/components/modals/DataEditorModal.js +10 -1
- package/lib/commonjs/react-query/components/modals/MutationBrowserFooter.js +4 -2
- package/lib/commonjs/react-query/components/modals/MutationBrowserModal.js +10 -1
- package/lib/commonjs/react-query/components/modals/MutationEditorModal.js +17 -1
- package/lib/commonjs/react-query/components/modals/QueryBrowserFooter.js +4 -2
- package/lib/commonjs/react-query/components/modals/QueryBrowserModal.js +12 -2
- package/lib/commonjs/react-query/components/modals/ReactQueryModalHeader.js +10 -10
- package/lib/commonjs/react-query/components/modals/SwipeIndicator.js +4 -4
- package/lib/commonjs/react-query/components/query-browser/ActionButton.js +21 -21
- package/lib/commonjs/react-query/components/query-browser/ClearCacheButton.js +5 -5
- package/lib/commonjs/react-query/components/query-browser/Explorer.js +69 -69
- package/lib/commonjs/react-query/components/query-browser/MutationButton.js +7 -7
- package/lib/commonjs/react-query/components/query-browser/MutationDetails.js +12 -12
- package/lib/commonjs/react-query/components/query-browser/MutationInformation.js +7 -6
- package/lib/commonjs/react-query/components/query-browser/MutationsList.js +15 -11
- package/lib/commonjs/react-query/components/query-browser/QueryActions.js +1 -1
- package/lib/commonjs/react-query/components/query-browser/QueryBrowser.js +5 -4
- package/lib/commonjs/react-query/components/query-browser/QueryDetails.js +12 -12
- package/lib/commonjs/react-query/components/query-browser/QueryInformation.js +5 -4
- package/lib/commonjs/react-query/components/query-browser/QueryStatus.js +22 -16
- package/lib/module/react-query/components/DataEditorMode.js +18 -17
- package/lib/module/react-query/components/FilterStatusBadge.js +2 -2
- package/lib/module/react-query/components/MutationBrowserMode.js +4 -3
- package/lib/module/react-query/components/MutationEditorMode.js +51 -35
- package/lib/module/react-query/components/QueryBrowserMode.js +4 -3
- package/lib/module/react-query/components/modals/DataEditorModal.js +11 -2
- package/lib/module/react-query/components/modals/MutationBrowserFooter.js +5 -3
- package/lib/module/react-query/components/modals/MutationBrowserModal.js +11 -2
- package/lib/module/react-query/components/modals/MutationEditorModal.js +19 -3
- package/lib/module/react-query/components/modals/QueryBrowserFooter.js +5 -3
- package/lib/module/react-query/components/modals/QueryBrowserModal.js +14 -4
- package/lib/module/react-query/components/modals/ReactQueryModalHeader.js +11 -11
- package/lib/module/react-query/components/modals/SwipeIndicator.js +5 -5
- package/lib/module/react-query/components/query-browser/ActionButton.js +22 -22
- package/lib/module/react-query/components/query-browser/ClearCacheButton.js +6 -6
- package/lib/module/react-query/components/query-browser/Explorer.js +70 -70
- package/lib/module/react-query/components/query-browser/MutationButton.js +8 -8
- package/lib/module/react-query/components/query-browser/MutationDetails.js +13 -13
- package/lib/module/react-query/components/query-browser/MutationInformation.js +8 -7
- package/lib/module/react-query/components/query-browser/MutationsList.js +16 -12
- package/lib/module/react-query/components/query-browser/QueryActions.js +2 -2
- package/lib/module/react-query/components/query-browser/QueryBrowser.js +6 -5
- package/lib/module/react-query/components/query-browser/QueryDetails.js +13 -13
- package/lib/module/react-query/components/query-browser/QueryInformation.js +6 -5
- package/lib/module/react-query/components/query-browser/QueryStatus.js +23 -17
- package/lib/typescript/react-query/components/MutationBrowserMode.d.ts.map +1 -1
- package/lib/typescript/react-query/components/MutationEditorMode.d.ts +12 -1
- package/lib/typescript/react-query/components/MutationEditorMode.d.ts.map +1 -1
- package/lib/typescript/react-query/components/QueryBrowserMode.d.ts.map +1 -1
- package/lib/typescript/react-query/components/modals/DataEditorModal.d.ts.map +1 -1
- package/lib/typescript/react-query/components/modals/MutationBrowserFooter.d.ts.map +1 -1
- package/lib/typescript/react-query/components/modals/MutationBrowserModal.d.ts.map +1 -1
- package/lib/typescript/react-query/components/modals/MutationEditorModal.d.ts.map +1 -1
- package/lib/typescript/react-query/components/modals/QueryBrowserModal.d.ts.map +1 -1
- package/lib/typescript/react-query/components/query-browser/QueryStatus.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { useState, useMemo, useCallback, useRef, useEffect, memo } from "react";
|
|
4
4
|
import { useQueryClient } from "@tanstack/react-query";
|
|
5
5
|
import { updateNestedDataByPath } from "../../utils/updateNestedDataByPath";
|
|
6
|
-
import { displayValue,
|
|
6
|
+
import { displayValue, night } from "@buoy-gg/shared-ui";
|
|
7
7
|
import deleteItem from "../../utils/actions/deleteItem";
|
|
8
8
|
import { Text, TouchableOpacity, View, StyleSheet } from "react-native";
|
|
9
9
|
import { CopyButton as SharedCopyButton } from "@buoy-gg/shared-ui";
|
|
@@ -40,11 +40,11 @@ const Expander = /*#__PURE__*/memo(({
|
|
|
40
40
|
style: [styles.expanderIcon, isMain && styles.expanderIconMain, expanded ? styles.expanded : styles.collapsed],
|
|
41
41
|
children: expanded ? /*#__PURE__*/_jsx(ChevronDown, {
|
|
42
42
|
size: isMain ? 14 : EXPANDER_SIZE,
|
|
43
|
-
color: isFocused ?
|
|
43
|
+
color: isFocused ? night.color.accent : isMain ? night.color.text : night.color.textSecondary,
|
|
44
44
|
strokeWidth: 2.5
|
|
45
45
|
}) : /*#__PURE__*/_jsx(ChevronRight, {
|
|
46
46
|
size: isMain ? 14 : EXPANDER_SIZE,
|
|
47
|
-
color: isFocused ?
|
|
47
|
+
color: isFocused ? night.color.accent : isMain ? night.color.text : night.color.textSecondary,
|
|
48
48
|
strokeWidth: 2.5
|
|
49
49
|
})
|
|
50
50
|
});
|
|
@@ -92,7 +92,7 @@ const DeleteItemButton = /*#__PURE__*/memo(({
|
|
|
92
92
|
children: /*#__PURE__*/_jsx(Trash, {
|
|
93
93
|
size: 14,
|
|
94
94
|
strokeWidth: 2,
|
|
95
|
-
color: isFocused ?
|
|
95
|
+
color: isFocused ? night.color.danger : night.color.danger + "CC"
|
|
96
96
|
})
|
|
97
97
|
});
|
|
98
98
|
});
|
|
@@ -120,7 +120,7 @@ const ClearArrayButton = /*#__PURE__*/memo(({
|
|
|
120
120
|
activeOpacity: 0.7,
|
|
121
121
|
children: /*#__PURE__*/_jsx(Text, {
|
|
122
122
|
style: [styles.clearButtonText, {
|
|
123
|
-
color: isFocused ?
|
|
123
|
+
color: isFocused ? night.color.warning : night.color.warning + "CC"
|
|
124
124
|
}],
|
|
125
125
|
children: "[]"
|
|
126
126
|
})
|
|
@@ -178,7 +178,7 @@ function ToggleValueButton({
|
|
|
178
178
|
children: /*#__PURE__*/_jsx(Trash, {
|
|
179
179
|
size: 14,
|
|
180
180
|
strokeWidth: 2,
|
|
181
|
-
color:
|
|
181
|
+
color: night.color.danger + "CC"
|
|
182
182
|
})
|
|
183
183
|
})]
|
|
184
184
|
});
|
|
@@ -452,9 +452,9 @@ export default function Explorer({
|
|
|
452
452
|
}
|
|
453
453
|
const styles = StyleSheet.create({
|
|
454
454
|
buttonStyle: {
|
|
455
|
-
backgroundColor:
|
|
455
|
+
backgroundColor: night.color.surface + "E6",
|
|
456
456
|
borderWidth: 1,
|
|
457
|
-
borderColor:
|
|
457
|
+
borderColor: night.color.textSecondary + "33",
|
|
458
458
|
borderRadius: 6,
|
|
459
459
|
flexDirection: "row",
|
|
460
460
|
alignItems: "center",
|
|
@@ -471,15 +471,15 @@ const styles = StyleSheet.create({
|
|
|
471
471
|
shadowRadius: 2
|
|
472
472
|
},
|
|
473
473
|
buttonStyleFocused: {
|
|
474
|
-
borderColor:
|
|
475
|
-
backgroundColor:
|
|
476
|
-
shadowColor:
|
|
474
|
+
borderColor: night.color.accent + "CC",
|
|
475
|
+
backgroundColor: night.color.accent + "26",
|
|
476
|
+
shadowColor: night.color.accent,
|
|
477
477
|
shadowOpacity: 0.3,
|
|
478
478
|
shadowRadius: 4
|
|
479
479
|
},
|
|
480
480
|
deleteButton: {
|
|
481
|
-
backgroundColor:
|
|
482
|
-
borderColor:
|
|
481
|
+
backgroundColor: night.color.danger + "1A",
|
|
482
|
+
borderColor: night.color.danger + "4D",
|
|
483
483
|
borderWidth: 1,
|
|
484
484
|
borderRadius: 6,
|
|
485
485
|
padding: 0,
|
|
@@ -488,7 +488,7 @@ const styles = StyleSheet.create({
|
|
|
488
488
|
width: 28,
|
|
489
489
|
height: 28,
|
|
490
490
|
position: "relative",
|
|
491
|
-
shadowColor:
|
|
491
|
+
shadowColor: night.color.danger,
|
|
492
492
|
shadowOffset: {
|
|
493
493
|
width: 0,
|
|
494
494
|
height: 0
|
|
@@ -497,14 +497,14 @@ const styles = StyleSheet.create({
|
|
|
497
497
|
shadowRadius: 3
|
|
498
498
|
},
|
|
499
499
|
deleteButtonFocused: {
|
|
500
|
-
borderColor:
|
|
501
|
-
backgroundColor:
|
|
500
|
+
borderColor: night.color.danger + "CC",
|
|
501
|
+
backgroundColor: night.color.danger + "33",
|
|
502
502
|
shadowOpacity: 0.3,
|
|
503
503
|
shadowRadius: 5
|
|
504
504
|
},
|
|
505
505
|
deleteButtonInToggle: {
|
|
506
|
-
backgroundColor:
|
|
507
|
-
borderColor:
|
|
506
|
+
backgroundColor: night.color.danger + "1A",
|
|
507
|
+
borderColor: night.color.danger + "4D",
|
|
508
508
|
borderWidth: 1,
|
|
509
509
|
borderRadius: 6,
|
|
510
510
|
padding: 0,
|
|
@@ -512,7 +512,7 @@ const styles = StyleSheet.create({
|
|
|
512
512
|
justifyContent: "center",
|
|
513
513
|
width: 28,
|
|
514
514
|
height: 28,
|
|
515
|
-
shadowColor:
|
|
515
|
+
shadowColor: night.color.danger,
|
|
516
516
|
shadowOffset: {
|
|
517
517
|
width: 0,
|
|
518
518
|
height: 0
|
|
@@ -521,9 +521,9 @@ const styles = StyleSheet.create({
|
|
|
521
521
|
shadowRadius: 3
|
|
522
522
|
},
|
|
523
523
|
clearButton: {
|
|
524
|
-
backgroundColor:
|
|
524
|
+
backgroundColor: night.color.warning + "1A",
|
|
525
525
|
borderWidth: 1,
|
|
526
|
-
borderColor:
|
|
526
|
+
borderColor: night.color.warning + "4D",
|
|
527
527
|
borderRadius: 6,
|
|
528
528
|
flexDirection: "row",
|
|
529
529
|
padding: 0,
|
|
@@ -533,7 +533,7 @@ const styles = StyleSheet.create({
|
|
|
533
533
|
height: 28,
|
|
534
534
|
position: "relative",
|
|
535
535
|
zIndex: 10,
|
|
536
|
-
shadowColor:
|
|
536
|
+
shadowColor: night.color.warning,
|
|
537
537
|
shadowOffset: {
|
|
538
538
|
width: 0,
|
|
539
539
|
height: 0
|
|
@@ -542,8 +542,8 @@ const styles = StyleSheet.create({
|
|
|
542
542
|
shadowRadius: 3
|
|
543
543
|
},
|
|
544
544
|
clearButtonFocused: {
|
|
545
|
-
borderColor:
|
|
546
|
-
backgroundColor:
|
|
545
|
+
borderColor: night.color.warning + "CC",
|
|
546
|
+
backgroundColor: night.color.warning + "33",
|
|
547
547
|
shadowOpacity: 0.3,
|
|
548
548
|
shadowRadius: 5
|
|
549
549
|
},
|
|
@@ -558,16 +558,16 @@ const styles = StyleSheet.create({
|
|
|
558
558
|
alignItems: "center",
|
|
559
559
|
justifyContent: "center",
|
|
560
560
|
marginRight: 1,
|
|
561
|
-
backgroundColor:
|
|
561
|
+
backgroundColor: night.color.textSecondary + "14",
|
|
562
562
|
borderRadius: 3
|
|
563
563
|
},
|
|
564
564
|
expanderIconMain: {
|
|
565
|
-
backgroundColor:
|
|
565
|
+
backgroundColor: night.color.textSecondary + "1A",
|
|
566
566
|
width: 20,
|
|
567
567
|
height: 20,
|
|
568
568
|
borderRadius: 4,
|
|
569
569
|
borderWidth: 0.5,
|
|
570
|
-
borderColor:
|
|
570
|
+
borderColor: night.color.textSecondary + "33"
|
|
571
571
|
},
|
|
572
572
|
expanded: {
|
|
573
573
|
transform: [{
|
|
@@ -600,15 +600,15 @@ const styles = StyleSheet.create({
|
|
|
600
600
|
paddingHorizontal: 6,
|
|
601
601
|
marginVertical: 1,
|
|
602
602
|
borderRadius: 4,
|
|
603
|
-
backgroundColor:
|
|
603
|
+
backgroundColor: night.color.surface + "66",
|
|
604
604
|
borderWidth: 0.5,
|
|
605
|
-
borderColor:
|
|
605
|
+
borderColor: night.color.textSecondary + "1A"
|
|
606
606
|
},
|
|
607
607
|
flexRowItemsCenterGapMain: {
|
|
608
|
-
backgroundColor:
|
|
608
|
+
backgroundColor: night.color.surface + "E6",
|
|
609
609
|
borderLeftWidth: 2.5,
|
|
610
|
-
borderLeftColor:
|
|
611
|
-
borderColor:
|
|
610
|
+
borderLeftColor: night.color.textSecondary + "80",
|
|
611
|
+
borderColor: night.color.textSecondary + "26",
|
|
612
612
|
paddingVertical: 5,
|
|
613
613
|
paddingHorizontal: 8,
|
|
614
614
|
marginBottom: 3,
|
|
@@ -633,7 +633,7 @@ const styles = StyleSheet.create({
|
|
|
633
633
|
flex: 1
|
|
634
634
|
},
|
|
635
635
|
labelText: {
|
|
636
|
-
color:
|
|
636
|
+
color: night.color.textSecondary,
|
|
637
637
|
fontSize: 10,
|
|
638
638
|
fontWeight: "600",
|
|
639
639
|
marginRight: 4,
|
|
@@ -641,23 +641,23 @@ const styles = StyleSheet.create({
|
|
|
641
641
|
letterSpacing: 0.4
|
|
642
642
|
},
|
|
643
643
|
labelTextFocused: {
|
|
644
|
-
color:
|
|
644
|
+
color: night.color.text
|
|
645
645
|
},
|
|
646
646
|
labelTextMain: {
|
|
647
|
-
color:
|
|
647
|
+
color: night.color.text,
|
|
648
648
|
fontSize: 11,
|
|
649
649
|
fontWeight: "700",
|
|
650
650
|
letterSpacing: 0.6
|
|
651
651
|
},
|
|
652
652
|
textGray500: {
|
|
653
|
-
color:
|
|
653
|
+
color: night.color.textTertiary,
|
|
654
654
|
fontSize: 10,
|
|
655
655
|
fontWeight: "400",
|
|
656
656
|
fontFamily: "monospace",
|
|
657
657
|
opacity: 0.7
|
|
658
658
|
},
|
|
659
659
|
pageRangeText: {
|
|
660
|
-
color:
|
|
660
|
+
color: night.color.textSecondary,
|
|
661
661
|
fontSize: 10,
|
|
662
662
|
fontWeight: "600",
|
|
663
663
|
fontFamily: "monospace"
|
|
@@ -673,10 +673,10 @@ const styles = StyleSheet.create({
|
|
|
673
673
|
marginTop: 2,
|
|
674
674
|
paddingLeft: 8,
|
|
675
675
|
borderLeftWidth: 1.5,
|
|
676
|
-
borderLeftColor:
|
|
676
|
+
borderLeftColor: night.color.textSecondary + "40"
|
|
677
677
|
},
|
|
678
678
|
singleEntryContainerMain: {
|
|
679
|
-
borderLeftColor:
|
|
679
|
+
borderLeftColor: night.color.textSecondary + "4D",
|
|
680
680
|
marginLeft: 4,
|
|
681
681
|
paddingLeft: 10
|
|
682
682
|
},
|
|
@@ -685,10 +685,10 @@ const styles = StyleSheet.create({
|
|
|
685
685
|
marginTop: 2,
|
|
686
686
|
paddingLeft: 8,
|
|
687
687
|
borderLeftWidth: 1.5,
|
|
688
|
-
borderLeftColor:
|
|
688
|
+
borderLeftColor: night.color.textSecondary + "40"
|
|
689
689
|
},
|
|
690
690
|
multiEntryContainerMain: {
|
|
691
|
-
borderLeftColor:
|
|
691
|
+
borderLeftColor: night.color.textSecondary + "4D",
|
|
692
692
|
marginLeft: 4,
|
|
693
693
|
paddingLeft: 10
|
|
694
694
|
},
|
|
@@ -698,13 +698,13 @@ const styles = StyleSheet.create({
|
|
|
698
698
|
pageExpanderButton: {
|
|
699
699
|
flexDirection: "row",
|
|
700
700
|
alignItems: "center",
|
|
701
|
-
backgroundColor:
|
|
701
|
+
backgroundColor: night.color.surface + "66",
|
|
702
702
|
paddingVertical: 3,
|
|
703
703
|
paddingHorizontal: 6,
|
|
704
704
|
gap: 6,
|
|
705
705
|
borderRadius: 4,
|
|
706
706
|
borderWidth: 0.5,
|
|
707
|
-
borderColor:
|
|
707
|
+
borderColor: night.color.textSecondary + "1A",
|
|
708
708
|
marginBottom: 2,
|
|
709
709
|
minHeight: 24
|
|
710
710
|
},
|
|
@@ -713,15 +713,15 @@ const styles = StyleSheet.create({
|
|
|
713
713
|
paddingLeft: 8,
|
|
714
714
|
marginTop: 2,
|
|
715
715
|
borderLeftWidth: 1.5,
|
|
716
|
-
borderLeftColor:
|
|
716
|
+
borderLeftColor: night.color.textSecondary + "40"
|
|
717
717
|
},
|
|
718
718
|
textNumber: {
|
|
719
|
-
color:
|
|
719
|
+
color: night.color.text,
|
|
720
720
|
fontWeight: "600",
|
|
721
721
|
fontFamily: "monospace"
|
|
722
722
|
},
|
|
723
723
|
textString: {
|
|
724
|
-
color:
|
|
724
|
+
color: night.color.text,
|
|
725
725
|
fontFamily: "monospace"
|
|
726
726
|
},
|
|
727
727
|
flexRowGapFullWidth: {
|
|
@@ -735,7 +735,7 @@ const styles = StyleSheet.create({
|
|
|
735
735
|
borderRadius: 3
|
|
736
736
|
},
|
|
737
737
|
text344054: {
|
|
738
|
-
color:
|
|
738
|
+
color: night.color.textSecondary,
|
|
739
739
|
fontWeight: "600",
|
|
740
740
|
fontSize: 9,
|
|
741
741
|
minWidth: 50,
|
|
@@ -758,9 +758,9 @@ const styles = StyleSheet.create({
|
|
|
758
758
|
width: 32,
|
|
759
759
|
height: 32,
|
|
760
760
|
borderRadius: 6,
|
|
761
|
-
backgroundColor:
|
|
761
|
+
backgroundColor: night.color.surface + "E6",
|
|
762
762
|
borderWidth: 1,
|
|
763
|
-
borderColor:
|
|
763
|
+
borderColor: night.color.textSecondary + "33",
|
|
764
764
|
alignItems: "center",
|
|
765
765
|
justifyContent: "center",
|
|
766
766
|
marginLeft: 2,
|
|
@@ -773,9 +773,9 @@ const styles = StyleSheet.create({
|
|
|
773
773
|
shadowRadius: 2
|
|
774
774
|
},
|
|
775
775
|
touchableButtonFocused: {
|
|
776
|
-
borderColor:
|
|
777
|
-
backgroundColor:
|
|
778
|
-
shadowColor:
|
|
776
|
+
borderColor: night.color.accent + "CC",
|
|
777
|
+
backgroundColor: night.color.accent + "26",
|
|
778
|
+
shadowColor: night.color.accent,
|
|
779
779
|
shadowOffset: {
|
|
780
780
|
width: 0,
|
|
781
781
|
height: 0
|
|
@@ -791,7 +791,7 @@ const styles = StyleSheet.create({
|
|
|
791
791
|
},
|
|
792
792
|
displayValueText: {
|
|
793
793
|
flex: 1,
|
|
794
|
-
color:
|
|
794
|
+
color: night.color.text,
|
|
795
795
|
fontWeight: "400",
|
|
796
796
|
fontFamily: "monospace",
|
|
797
797
|
fontSize: 12,
|
|
@@ -799,7 +799,7 @@ const styles = StyleSheet.create({
|
|
|
799
799
|
paddingHorizontal: 10,
|
|
800
800
|
borderRadius: 6,
|
|
801
801
|
borderWidth: 1,
|
|
802
|
-
borderColor:
|
|
802
|
+
borderColor: night.color.textTertiary + "66",
|
|
803
803
|
minHeight: 34
|
|
804
804
|
},
|
|
805
805
|
// New redesigned styles (kept for future use)
|
|
@@ -812,7 +812,7 @@ const styles = StyleSheet.create({
|
|
|
812
812
|
gap: 12
|
|
813
813
|
},
|
|
814
814
|
dataLabel: {
|
|
815
|
-
color:
|
|
815
|
+
color: night.color.textSecondary,
|
|
816
816
|
fontSize: 13,
|
|
817
817
|
fontWeight: "500",
|
|
818
818
|
minWidth: 80,
|
|
@@ -844,17 +844,17 @@ const styles = StyleSheet.create({
|
|
|
844
844
|
alignItems: "center",
|
|
845
845
|
justifyContent: "center",
|
|
846
846
|
borderWidth: 1,
|
|
847
|
-
borderColor:
|
|
847
|
+
borderColor: night.color.accent + "0F"
|
|
848
848
|
},
|
|
849
849
|
readOnlyValue: {
|
|
850
|
-
color:
|
|
850
|
+
color: night.color.text,
|
|
851
851
|
fontSize: 13,
|
|
852
852
|
fontFamily: "monospace",
|
|
853
853
|
paddingVertical: 8,
|
|
854
854
|
paddingHorizontal: 12,
|
|
855
855
|
borderRadius: 6,
|
|
856
856
|
borderWidth: 1,
|
|
857
|
-
borderColor:
|
|
857
|
+
borderColor: night.color.textTertiary + "33",
|
|
858
858
|
flex: 1
|
|
859
859
|
},
|
|
860
860
|
actionButtons: {
|
|
@@ -868,12 +868,12 @@ const styles = StyleSheet.create({
|
|
|
868
868
|
padding: 8,
|
|
869
869
|
borderRadius: 6,
|
|
870
870
|
borderWidth: 1,
|
|
871
|
-
borderColor:
|
|
871
|
+
borderColor: night.color.textTertiary + "4D",
|
|
872
872
|
flex: 1
|
|
873
873
|
},
|
|
874
874
|
booleanText: {
|
|
875
875
|
marginLeft: 8,
|
|
876
|
-
color:
|
|
876
|
+
color: night.color.warning,
|
|
877
877
|
fontWeight: "500",
|
|
878
878
|
fontFamily: "monospace"
|
|
879
879
|
},
|
|
@@ -883,7 +883,7 @@ const styles = StyleSheet.create({
|
|
|
883
883
|
justifyContent: "space-between",
|
|
884
884
|
borderRadius: 6,
|
|
885
885
|
borderWidth: 1,
|
|
886
|
-
borderColor:
|
|
886
|
+
borderColor: night.color.textTertiary + "99",
|
|
887
887
|
paddingHorizontal: 8,
|
|
888
888
|
paddingVertical: 6,
|
|
889
889
|
marginVertical: 2,
|
|
@@ -937,27 +937,27 @@ const styles = StyleSheet.create({
|
|
|
937
937
|
},
|
|
938
938
|
// Pre-computed toggle icon styles to avoid inline objects [[memory:4875251]]
|
|
939
939
|
toggleIconTrue: {
|
|
940
|
-
backgroundColor:
|
|
940
|
+
backgroundColor: night.color.accent
|
|
941
941
|
},
|
|
942
942
|
toggleIconFalse: {
|
|
943
|
-
backgroundColor:
|
|
943
|
+
backgroundColor: night.color.textTertiary
|
|
944
944
|
},
|
|
945
945
|
// Pre-computed toggle badge styles [[memory:4875251]]
|
|
946
946
|
toggleBadgeTrue: {
|
|
947
|
-
backgroundColor:
|
|
948
|
-
borderColor:
|
|
947
|
+
backgroundColor: night.color.accent + "1A",
|
|
948
|
+
borderColor: night.color.accent + "4D"
|
|
949
949
|
},
|
|
950
950
|
toggleBadgeFalse: {
|
|
951
|
-
backgroundColor:
|
|
952
|
-
borderColor:
|
|
951
|
+
backgroundColor: night.color.textTertiary + "1A",
|
|
952
|
+
borderColor: night.color.textTertiary + "4D"
|
|
953
953
|
},
|
|
954
954
|
// Pre-computed toggle text styles [[memory:4875251]]
|
|
955
955
|
toggleTextTrue: {
|
|
956
|
-
color:
|
|
956
|
+
color: night.color.accent,
|
|
957
957
|
fontWeight: "600"
|
|
958
958
|
},
|
|
959
959
|
toggleTextFalse: {
|
|
960
|
-
color:
|
|
960
|
+
color: night.color.textSecondary,
|
|
961
961
|
fontWeight: "500"
|
|
962
962
|
},
|
|
963
963
|
// Boolean row container styles
|
|
@@ -969,7 +969,7 @@ const styles = StyleSheet.create({
|
|
|
969
969
|
paddingVertical: 2
|
|
970
970
|
},
|
|
971
971
|
booleanLabel: {
|
|
972
|
-
color:
|
|
972
|
+
color: night.color.textSecondary,
|
|
973
973
|
fontSize: 10,
|
|
974
974
|
fontWeight: "600",
|
|
975
975
|
fontFamily: "monospace",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { TouchableOpacity, Text, View, StyleSheet } from "react-native";
|
|
4
4
|
import { CheckCircle, LoadingCircle, PauseCircle, XCircle } from "./svgs";
|
|
5
|
-
import { buoyColors, useRelativeTime } from "@buoy-gg/shared-ui";
|
|
5
|
+
import { buoyColors, night, useRelativeTime } from "@buoy-gg/shared-ui";
|
|
6
6
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
7
|
const getMutationText = mutation => {
|
|
8
8
|
if (!mutation.options.mutationKey) return "Anonymous Mutation";
|
|
@@ -111,17 +111,17 @@ export default function MutationButton({
|
|
|
111
111
|
}
|
|
112
112
|
const styles = StyleSheet.create({
|
|
113
113
|
button: {
|
|
114
|
-
backgroundColor:
|
|
114
|
+
backgroundColor: night.color.surface,
|
|
115
115
|
borderRadius: 8,
|
|
116
116
|
borderWidth: 1,
|
|
117
|
-
borderColor:
|
|
117
|
+
borderColor: night.color.border,
|
|
118
118
|
marginHorizontal: 8,
|
|
119
119
|
marginVertical: 3,
|
|
120
120
|
padding: 12
|
|
121
121
|
},
|
|
122
122
|
selected: {
|
|
123
|
-
backgroundColor:
|
|
124
|
-
borderColor:
|
|
123
|
+
backgroundColor: night.color.accentSoft,
|
|
124
|
+
borderColor: night.color.accentBorderStrong
|
|
125
125
|
},
|
|
126
126
|
rowContent: {
|
|
127
127
|
flexDirection: "row",
|
|
@@ -149,7 +149,7 @@ const styles = StyleSheet.create({
|
|
|
149
149
|
},
|
|
150
150
|
submittedText: {
|
|
151
151
|
fontSize: 10,
|
|
152
|
-
color:
|
|
152
|
+
color: night.color.textTertiary,
|
|
153
153
|
marginTop: 1
|
|
154
154
|
},
|
|
155
155
|
mutationSection: {
|
|
@@ -159,7 +159,7 @@ const styles = StyleSheet.create({
|
|
|
159
159
|
mutationKey: {
|
|
160
160
|
fontFamily: "monospace",
|
|
161
161
|
fontSize: 12,
|
|
162
|
-
color:
|
|
162
|
+
color: night.color.text,
|
|
163
163
|
lineHeight: 16
|
|
164
164
|
},
|
|
165
165
|
bottomRightContainer: {
|
|
@@ -169,7 +169,7 @@ const styles = StyleSheet.create({
|
|
|
169
169
|
},
|
|
170
170
|
bottomRightText: {
|
|
171
171
|
fontSize: 9,
|
|
172
|
-
color:
|
|
172
|
+
color: night.color.textTertiary,
|
|
173
173
|
fontFamily: "monospace"
|
|
174
174
|
}
|
|
175
175
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { View, Text, ScrollView, StyleSheet } from "react-native";
|
|
4
|
-
import { displayValue,
|
|
4
|
+
import { displayValue, night } from "@buoy-gg/shared-ui";
|
|
5
5
|
import MutationDetailsChips from "./MutationDetailsChips";
|
|
6
6
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
7
|
/**
|
|
@@ -47,12 +47,12 @@ export default function MutationDetails({
|
|
|
47
47
|
const styles = StyleSheet.create({
|
|
48
48
|
minWidth: {
|
|
49
49
|
minWidth: 200,
|
|
50
|
-
backgroundColor:
|
|
50
|
+
backgroundColor: night.color.surface,
|
|
51
51
|
borderRadius: 6,
|
|
52
52
|
borderWidth: 1,
|
|
53
|
-
borderColor:
|
|
53
|
+
borderColor: night.color.accent + "4D",
|
|
54
54
|
overflow: "hidden",
|
|
55
|
-
shadowColor:
|
|
55
|
+
shadowColor: night.color.accent,
|
|
56
56
|
shadowOffset: {
|
|
57
57
|
width: 0,
|
|
58
58
|
height: 0
|
|
@@ -61,14 +61,14 @@ const styles = StyleSheet.create({
|
|
|
61
61
|
shadowRadius: 6
|
|
62
62
|
},
|
|
63
63
|
headerText: {
|
|
64
|
-
backgroundColor:
|
|
64
|
+
backgroundColor: night.color.accent + "15",
|
|
65
65
|
paddingHorizontal: 12,
|
|
66
66
|
paddingVertical: 10,
|
|
67
67
|
fontWeight: "600",
|
|
68
68
|
fontSize: 12,
|
|
69
|
-
color:
|
|
69
|
+
color: night.color.accent,
|
|
70
70
|
borderBottomWidth: 1,
|
|
71
|
-
borderBottomColor:
|
|
71
|
+
borderBottomColor: night.color.accent + "33",
|
|
72
72
|
letterSpacing: 0.5,
|
|
73
73
|
textTransform: "uppercase",
|
|
74
74
|
fontFamily: "monospace"
|
|
@@ -80,7 +80,7 @@ const styles = StyleSheet.create({
|
|
|
80
80
|
paddingHorizontal: 12,
|
|
81
81
|
paddingVertical: 10,
|
|
82
82
|
borderBottomWidth: 1,
|
|
83
|
-
borderBottomColor:
|
|
83
|
+
borderBottomColor: night.color.separator
|
|
84
84
|
},
|
|
85
85
|
flex1: {
|
|
86
86
|
flex: 1,
|
|
@@ -88,20 +88,20 @@ const styles = StyleSheet.create({
|
|
|
88
88
|
},
|
|
89
89
|
flexWrap: {
|
|
90
90
|
fontSize: 12,
|
|
91
|
-
color:
|
|
91
|
+
color: night.color.text,
|
|
92
92
|
fontFamily: "monospace",
|
|
93
93
|
lineHeight: 18,
|
|
94
94
|
flexShrink: 1,
|
|
95
|
-
backgroundColor:
|
|
95
|
+
backgroundColor: night.color.accent + "15",
|
|
96
96
|
paddingHorizontal: 8,
|
|
97
97
|
paddingVertical: 4,
|
|
98
98
|
borderRadius: 4,
|
|
99
99
|
borderWidth: 1,
|
|
100
|
-
borderColor:
|
|
100
|
+
borderColor: night.color.accent + "4D"
|
|
101
101
|
},
|
|
102
102
|
labelText: {
|
|
103
103
|
fontSize: 10,
|
|
104
|
-
color:
|
|
104
|
+
color: night.color.textSecondary,
|
|
105
105
|
fontWeight: "600",
|
|
106
106
|
letterSpacing: 0.5,
|
|
107
107
|
textTransform: "uppercase",
|
|
@@ -109,7 +109,7 @@ const styles = StyleSheet.create({
|
|
|
109
109
|
},
|
|
110
110
|
valueText: {
|
|
111
111
|
fontSize: 12,
|
|
112
|
-
color:
|
|
112
|
+
color: night.color.text,
|
|
113
113
|
fontWeight: "500",
|
|
114
114
|
fontVariant: ["tabular-nums"],
|
|
115
115
|
fontFamily: "monospace"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import DataExplorer from "./Explorer";
|
|
4
4
|
import { ScrollView, Text, View, StyleSheet } from "react-native";
|
|
5
5
|
import MutationDetails from "./MutationDetails";
|
|
6
|
-
import {
|
|
6
|
+
import { night } from "@buoy-gg/shared-ui";
|
|
7
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
8
|
/** Detailed information block for a selected mutation within the modal experience. */
|
|
9
9
|
export default function MutationInformation({
|
|
@@ -76,7 +76,8 @@ export default function MutationInformation({
|
|
|
76
76
|
const styles = StyleSheet.create({
|
|
77
77
|
flex1: {
|
|
78
78
|
flex: 1,
|
|
79
|
-
|
|
79
|
+
// Transparent so the night sheet's star field shows through.
|
|
80
|
+
backgroundColor: "transparent"
|
|
80
81
|
},
|
|
81
82
|
scrollContent: {
|
|
82
83
|
paddingBottom: 16,
|
|
@@ -87,26 +88,26 @@ const styles = StyleSheet.create({
|
|
|
87
88
|
},
|
|
88
89
|
textHeader: {
|
|
89
90
|
textAlign: "left",
|
|
90
|
-
backgroundColor:
|
|
91
|
+
backgroundColor: night.color.accent + "15",
|
|
91
92
|
padding: 12,
|
|
92
93
|
fontSize: 12,
|
|
93
94
|
fontWeight: "700",
|
|
94
|
-
color:
|
|
95
|
+
color: night.color.accent,
|
|
95
96
|
borderTopLeftRadius: 8,
|
|
96
97
|
borderTopRightRadius: 8,
|
|
97
98
|
borderBottomWidth: 1,
|
|
98
|
-
borderBottomColor:
|
|
99
|
+
borderBottomColor: night.color.accent + "33",
|
|
99
100
|
fontFamily: "monospace",
|
|
100
101
|
letterSpacing: 1,
|
|
101
102
|
textTransform: "uppercase"
|
|
102
103
|
},
|
|
103
104
|
padding: {
|
|
104
105
|
padding: 12,
|
|
105
|
-
backgroundColor:
|
|
106
|
+
backgroundColor: night.color.surface,
|
|
106
107
|
borderBottomLeftRadius: 8,
|
|
107
108
|
borderBottomRightRadius: 8,
|
|
108
109
|
borderWidth: 1,
|
|
109
|
-
borderColor:
|
|
110
|
+
borderColor: night.color.border,
|
|
110
111
|
borderTopWidth: 0
|
|
111
112
|
}
|
|
112
113
|
});
|