@buoy-gg/jotai 7.0.26 → 7.0.28
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/jotai/components/JotaiAtomBrowser.js +10 -9
- package/lib/commonjs/jotai/components/JotaiAtomChangeItem.js +1 -1
- package/lib/commonjs/jotai/components/JotaiAtomDetailContent.js +44 -41
- package/lib/commonjs/jotai/components/JotaiEventFilterView.js +24 -23
- package/lib/commonjs/jotai/components/JotaiModal.js +32 -27
- package/lib/module/jotai/components/JotaiAtomBrowser.js +11 -10
- package/lib/module/jotai/components/JotaiAtomChangeItem.js +2 -2
- package/lib/module/jotai/components/JotaiAtomDetailContent.js +45 -42
- package/lib/module/jotai/components/JotaiEventFilterView.js +25 -24
- package/lib/module/jotai/components/JotaiModal.js +33 -28
- package/lib/typescript/jotai/components/JotaiEventFilterView.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -115,7 +115,7 @@ function EmptyBrowserState() {
|
|
|
115
115
|
style: styles.emptyState,
|
|
116
116
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Box, {
|
|
117
117
|
size: 32,
|
|
118
|
-
color: _sharedUi.
|
|
118
|
+
color: _sharedUi.night.color.textTertiary
|
|
119
119
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
120
120
|
style: styles.emptyTitle,
|
|
121
121
|
children: "No atoms registered"
|
|
@@ -247,10 +247,10 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
247
247
|
fontSize: 11,
|
|
248
248
|
fontWeight: "700",
|
|
249
249
|
letterSpacing: 0.5,
|
|
250
|
-
color: _sharedUi.
|
|
250
|
+
color: _sharedUi.night.color.textTertiary
|
|
251
251
|
},
|
|
252
252
|
sectionCountBadge: {
|
|
253
|
-
backgroundColor: _sharedUi.
|
|
253
|
+
backgroundColor: _sharedUi.night.color.accentFill,
|
|
254
254
|
paddingHorizontal: 8,
|
|
255
255
|
paddingVertical: 2,
|
|
256
256
|
borderRadius: 4
|
|
@@ -258,7 +258,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
258
258
|
sectionCountText: {
|
|
259
259
|
fontSize: 10,
|
|
260
260
|
fontWeight: "700",
|
|
261
|
-
color: _sharedUi.
|
|
261
|
+
color: _sharedUi.night.color.accent,
|
|
262
262
|
fontFamily: "monospace"
|
|
263
263
|
},
|
|
264
264
|
emptyState: {
|
|
@@ -266,14 +266,14 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
266
266
|
paddingVertical: 40
|
|
267
267
|
},
|
|
268
268
|
emptyTitle: {
|
|
269
|
-
color: _sharedUi.
|
|
269
|
+
color: _sharedUi.night.color.text,
|
|
270
270
|
fontSize: 14,
|
|
271
271
|
fontWeight: "600",
|
|
272
272
|
marginTop: 12,
|
|
273
273
|
marginBottom: 6
|
|
274
274
|
},
|
|
275
275
|
emptyText: {
|
|
276
|
-
color: _sharedUi.
|
|
276
|
+
color: _sharedUi.night.color.textTertiary,
|
|
277
277
|
fontSize: 12,
|
|
278
278
|
textAlign: "center",
|
|
279
279
|
lineHeight: 18
|
|
@@ -292,15 +292,16 @@ const expandedStyles = _reactNative.StyleSheet.create({
|
|
|
292
292
|
fontFamily: "monospace"
|
|
293
293
|
},
|
|
294
294
|
dataContainer: {
|
|
295
|
-
|
|
295
|
+
// Inset display panel — darker than the card, the night track color.
|
|
296
|
+
backgroundColor: _sharedUi.night.color.bg,
|
|
296
297
|
borderRadius: 6,
|
|
297
298
|
borderWidth: 1,
|
|
298
|
-
borderColor: _sharedUi.
|
|
299
|
+
borderColor: _sharedUi.night.color.border,
|
|
299
300
|
overflow: "hidden",
|
|
300
301
|
minHeight: 60
|
|
301
302
|
},
|
|
302
303
|
primitiveText: {
|
|
303
|
-
color: _sharedUi.
|
|
304
|
+
color: _sharedUi.night.color.text,
|
|
304
305
|
fontSize: 12,
|
|
305
306
|
fontFamily: "monospace",
|
|
306
307
|
padding: 14
|
|
@@ -20,7 +20,7 @@ function getStatusLabel(category, atomLabel) {
|
|
|
20
20
|
return atomLabel.charAt(0).toUpperCase() + atomLabel.slice(1);
|
|
21
21
|
}
|
|
22
22
|
function getCategoryColor(category, atomLabel) {
|
|
23
|
-
if (category === "initial") return _sharedUi.
|
|
23
|
+
if (category === "initial") return _sharedUi.night.color.textTertiary;
|
|
24
24
|
return _jotaiStateStore.jotaiStateStore.getAtomColor(atomLabel);
|
|
25
25
|
}
|
|
26
26
|
function formatCompact(value, maxLen = 20) {
|
|
@@ -29,17 +29,17 @@ const VIEW_CONFIGS = [{
|
|
|
29
29
|
key: "change",
|
|
30
30
|
label: "CHANGE",
|
|
31
31
|
icon: _sharedUi.FileText,
|
|
32
|
-
activeColor: _sharedUi.
|
|
32
|
+
activeColor: _sharedUi.night.color.accent
|
|
33
33
|
}, {
|
|
34
34
|
key: "value",
|
|
35
35
|
label: "VALUE",
|
|
36
36
|
icon: _sharedUi.Database,
|
|
37
|
-
activeColor: _sharedUi.
|
|
37
|
+
activeColor: _sharedUi.night.color.accent
|
|
38
38
|
}, {
|
|
39
39
|
key: "diff",
|
|
40
40
|
label: "DIFF",
|
|
41
41
|
icon: _sharedUi.GitBranch,
|
|
42
|
-
activeColor: _sharedUi.
|
|
42
|
+
activeColor: _sharedUi.night.color.accent
|
|
43
43
|
}];
|
|
44
44
|
function DetailViewToggle({
|
|
45
45
|
activeView,
|
|
@@ -62,12 +62,12 @@ function DetailViewToggle({
|
|
|
62
62
|
style: toggleStyles.cardContent,
|
|
63
63
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(IconComponent, {
|
|
64
64
|
size: 14,
|
|
65
|
-
color: isActive ? config.activeColor : isDisabled ? _sharedUi.
|
|
65
|
+
color: isActive ? config.activeColor : isDisabled ? _sharedUi.night.color.textTertiary : _sharedUi.night.color.textSecondary
|
|
66
66
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
67
67
|
style: [toggleStyles.cardLabel, isActive && {
|
|
68
68
|
color: config.activeColor
|
|
69
69
|
}, isDisabled && {
|
|
70
|
-
color: _sharedUi.
|
|
70
|
+
color: _sharedUi.night.color.textTertiary
|
|
71
71
|
}],
|
|
72
72
|
children: config.label
|
|
73
73
|
})]
|
|
@@ -84,8 +84,8 @@ function getCategoryInfo(category) {
|
|
|
84
84
|
case "initial":
|
|
85
85
|
return {
|
|
86
86
|
label: "INITIAL",
|
|
87
|
-
color: _sharedUi.
|
|
88
|
-
bgColor: _sharedUi.
|
|
87
|
+
color: _sharedUi.night.color.textTertiary,
|
|
88
|
+
bgColor: _sharedUi.night.color.textTertiary + "26"
|
|
89
89
|
};
|
|
90
90
|
default:
|
|
91
91
|
return {
|
|
@@ -156,7 +156,7 @@ const JotaiAtomInfoView = /*#__PURE__*/(0, _react.memo)(function JotaiAtomInfoVi
|
|
|
156
156
|
style: infoStyles.sectionHeaderLeft,
|
|
157
157
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Info, {
|
|
158
158
|
size: 14,
|
|
159
|
-
color: _sharedUi.
|
|
159
|
+
color: _sharedUi.night.color.accent
|
|
160
160
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
161
161
|
style: infoStyles.sectionTitle,
|
|
162
162
|
children: "CHANGE INFO"
|
|
@@ -224,7 +224,7 @@ const JotaiAtomInfoView = /*#__PURE__*/(0, _react.memo)(function JotaiAtomInfoVi
|
|
|
224
224
|
style: infoStyles.sectionHeaderLeft,
|
|
225
225
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Zap, {
|
|
226
226
|
size: 14,
|
|
227
|
-
color: _sharedUi.
|
|
227
|
+
color: _sharedUi.night.color.accent
|
|
228
228
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
229
229
|
style: infoStyles.sectionTitle,
|
|
230
230
|
children: "CHANGED KEYS"
|
|
@@ -256,7 +256,7 @@ const JotaiAtomInfoView = /*#__PURE__*/(0, _react.memo)(function JotaiAtomInfoVi
|
|
|
256
256
|
onTouchEnd: handleCopyValue,
|
|
257
257
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
258
258
|
style: [infoStyles.actionButtonText, {
|
|
259
|
-
color: _sharedUi.
|
|
259
|
+
color: _sharedUi.night.color.accent
|
|
260
260
|
}],
|
|
261
261
|
children: "COPY VALUE"
|
|
262
262
|
})
|
|
@@ -460,7 +460,8 @@ function JotaiAtomDetailFooter({
|
|
|
460
460
|
const styles = _reactNative.StyleSheet.create({
|
|
461
461
|
container: {
|
|
462
462
|
flex: 1,
|
|
463
|
-
|
|
463
|
+
// Transparent so the night sheet's star field shows through.
|
|
464
|
+
backgroundColor: "transparent"
|
|
464
465
|
},
|
|
465
466
|
contentArea: {
|
|
466
467
|
flex: 1,
|
|
@@ -471,11 +472,11 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
471
472
|
padding: 14
|
|
472
473
|
},
|
|
473
474
|
contentCard: {
|
|
474
|
-
backgroundColor: _sharedUi.
|
|
475
|
+
backgroundColor: _sharedUi.night.color.surface,
|
|
475
476
|
borderRadius: 14,
|
|
476
477
|
padding: 14,
|
|
477
478
|
borderWidth: 1,
|
|
478
|
-
borderColor: _sharedUi.
|
|
479
|
+
borderColor: _sharedUi.night.color.border
|
|
479
480
|
},
|
|
480
481
|
valueHeader: {
|
|
481
482
|
flexDirection: "row",
|
|
@@ -485,7 +486,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
485
486
|
},
|
|
486
487
|
valueLabel: {
|
|
487
488
|
fontSize: 10,
|
|
488
|
-
color: _sharedUi.
|
|
489
|
+
color: _sharedUi.night.color.textSecondary,
|
|
489
490
|
fontFamily: "monospace",
|
|
490
491
|
letterSpacing: 0.5,
|
|
491
492
|
fontWeight: "600"
|
|
@@ -510,24 +511,25 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
510
511
|
paddingHorizontal: 8,
|
|
511
512
|
paddingVertical: 2,
|
|
512
513
|
borderRadius: 4,
|
|
513
|
-
backgroundColor: _sharedUi.
|
|
514
|
+
backgroundColor: _sharedUi.night.color.surfaceElevated
|
|
514
515
|
},
|
|
515
516
|
typeText: {
|
|
516
517
|
fontSize: 9,
|
|
517
518
|
fontWeight: "600",
|
|
518
|
-
color: _sharedUi.
|
|
519
|
+
color: _sharedUi.night.color.textTertiary,
|
|
519
520
|
fontFamily: "monospace"
|
|
520
521
|
},
|
|
521
522
|
valueBox: {
|
|
522
|
-
|
|
523
|
+
// Inset code box — darker than the card, the night track color.
|
|
524
|
+
backgroundColor: _sharedUi.night.color.bg,
|
|
523
525
|
borderRadius: 6,
|
|
524
526
|
borderWidth: 1,
|
|
525
|
-
borderColor: _sharedUi.
|
|
527
|
+
borderColor: _sharedUi.night.color.border,
|
|
526
528
|
padding: 8
|
|
527
529
|
},
|
|
528
530
|
valueText: {
|
|
529
531
|
fontSize: 12,
|
|
530
|
-
color: _sharedUi.
|
|
532
|
+
color: _sharedUi.night.color.text,
|
|
531
533
|
fontFamily: "monospace",
|
|
532
534
|
lineHeight: 18
|
|
533
535
|
},
|
|
@@ -554,21 +556,22 @@ const toggleStyles = _reactNative.StyleSheet.create({
|
|
|
554
556
|
flexDirection: "row",
|
|
555
557
|
gap: 8,
|
|
556
558
|
padding: 14,
|
|
557
|
-
|
|
559
|
+
// Transparent so the night sheet's star field shows through.
|
|
560
|
+
backgroundColor: "transparent"
|
|
558
561
|
},
|
|
559
562
|
card: {
|
|
560
563
|
flex: 1,
|
|
561
|
-
backgroundColor: _sharedUi.
|
|
564
|
+
backgroundColor: _sharedUi.night.color.surface,
|
|
562
565
|
borderRadius: 12,
|
|
563
566
|
borderWidth: 1,
|
|
564
|
-
borderColor: _sharedUi.
|
|
567
|
+
borderColor: _sharedUi.night.color.border,
|
|
565
568
|
paddingVertical: 10,
|
|
566
569
|
paddingHorizontal: 10,
|
|
567
570
|
justifyContent: "center"
|
|
568
571
|
},
|
|
569
572
|
cardActive: {
|
|
570
573
|
borderWidth: 1.5,
|
|
571
|
-
backgroundColor:
|
|
574
|
+
backgroundColor: _sharedUi.night.color.accentSoft
|
|
572
575
|
},
|
|
573
576
|
cardDisabled: {
|
|
574
577
|
opacity: 0.5
|
|
@@ -582,7 +585,7 @@ const toggleStyles = _reactNative.StyleSheet.create({
|
|
|
582
585
|
fontSize: 10,
|
|
583
586
|
fontWeight: "700",
|
|
584
587
|
letterSpacing: 0.5,
|
|
585
|
-
color: _sharedUi.
|
|
588
|
+
color: _sharedUi.night.color.textSecondary
|
|
586
589
|
}
|
|
587
590
|
});
|
|
588
591
|
const infoStyles = _reactNative.StyleSheet.create({
|
|
@@ -595,12 +598,12 @@ const infoStyles = _reactNative.StyleSheet.create({
|
|
|
595
598
|
gap: 16
|
|
596
599
|
},
|
|
597
600
|
card: {
|
|
598
|
-
backgroundColor: _sharedUi.
|
|
601
|
+
backgroundColor: _sharedUi.night.color.surface,
|
|
599
602
|
borderRadius: 6,
|
|
600
603
|
borderWidth: 1,
|
|
601
|
-
borderColor: _sharedUi.
|
|
604
|
+
borderColor: _sharedUi.night.color.accentBorderStrong,
|
|
602
605
|
overflow: "hidden",
|
|
603
|
-
shadowColor: _sharedUi.
|
|
606
|
+
shadowColor: _sharedUi.night.color.accent,
|
|
604
607
|
shadowOffset: {
|
|
605
608
|
width: 0,
|
|
606
609
|
height: 0
|
|
@@ -615,8 +618,8 @@ const infoStyles = _reactNative.StyleSheet.create({
|
|
|
615
618
|
paddingHorizontal: 12,
|
|
616
619
|
paddingVertical: 10,
|
|
617
620
|
borderBottomWidth: 1,
|
|
618
|
-
borderBottomColor: _sharedUi.
|
|
619
|
-
backgroundColor: _sharedUi.
|
|
621
|
+
borderBottomColor: _sharedUi.night.color.accentBorder,
|
|
622
|
+
backgroundColor: _sharedUi.night.color.accentSoft
|
|
620
623
|
},
|
|
621
624
|
sectionHeaderLeft: {
|
|
622
625
|
flexDirection: "row",
|
|
@@ -627,7 +630,7 @@ const infoStyles = _reactNative.StyleSheet.create({
|
|
|
627
630
|
fontSize: 12,
|
|
628
631
|
fontWeight: "600",
|
|
629
632
|
letterSpacing: 0.5,
|
|
630
|
-
color: _sharedUi.
|
|
633
|
+
color: _sharedUi.night.color.accent,
|
|
631
634
|
fontFamily: "monospace"
|
|
632
635
|
},
|
|
633
636
|
cardContent: {
|
|
@@ -641,12 +644,12 @@ const infoStyles = _reactNative.StyleSheet.create({
|
|
|
641
644
|
},
|
|
642
645
|
infoLabel: {
|
|
643
646
|
fontSize: 11,
|
|
644
|
-
color: _sharedUi.
|
|
647
|
+
color: _sharedUi.night.color.textTertiary,
|
|
645
648
|
fontWeight: "500"
|
|
646
649
|
},
|
|
647
650
|
infoValue: {
|
|
648
651
|
fontSize: 11,
|
|
649
|
-
color: _sharedUi.
|
|
652
|
+
color: _sharedUi.night.color.text,
|
|
650
653
|
fontWeight: "500",
|
|
651
654
|
flex: 1,
|
|
652
655
|
textAlign: "right",
|
|
@@ -689,12 +692,12 @@ const infoStyles = _reactNative.StyleSheet.create({
|
|
|
689
692
|
paddingHorizontal: 8,
|
|
690
693
|
paddingVertical: 3,
|
|
691
694
|
borderRadius: 4,
|
|
692
|
-
backgroundColor: _sharedUi.
|
|
695
|
+
backgroundColor: _sharedUi.night.color.surfaceElevated
|
|
693
696
|
},
|
|
694
697
|
noChangesText: {
|
|
695
698
|
fontSize: 9,
|
|
696
699
|
fontWeight: "600",
|
|
697
|
-
color: _sharedUi.
|
|
700
|
+
color: _sharedUi.night.color.textTertiary
|
|
698
701
|
},
|
|
699
702
|
keysContainer: {
|
|
700
703
|
flexDirection: "row",
|
|
@@ -705,26 +708,26 @@ const infoStyles = _reactNative.StyleSheet.create({
|
|
|
705
708
|
paddingHorizontal: 8,
|
|
706
709
|
paddingVertical: 4,
|
|
707
710
|
borderRadius: 4,
|
|
708
|
-
backgroundColor: _sharedUi.
|
|
711
|
+
backgroundColor: _sharedUi.night.color.accentSoft,
|
|
709
712
|
borderWidth: 1,
|
|
710
|
-
borderColor: _sharedUi.
|
|
713
|
+
borderColor: _sharedUi.night.color.accentBorder
|
|
711
714
|
},
|
|
712
715
|
keyText: {
|
|
713
716
|
fontSize: 11,
|
|
714
717
|
fontWeight: "600",
|
|
715
|
-
color: _sharedUi.
|
|
718
|
+
color: _sharedUi.night.color.accent,
|
|
716
719
|
fontFamily: "monospace"
|
|
717
720
|
},
|
|
718
721
|
countBadge: {
|
|
719
722
|
paddingHorizontal: 8,
|
|
720
723
|
paddingVertical: 3,
|
|
721
724
|
borderRadius: 4,
|
|
722
|
-
backgroundColor: _sharedUi.
|
|
725
|
+
backgroundColor: _sharedUi.night.color.accentFill
|
|
723
726
|
},
|
|
724
727
|
countText: {
|
|
725
728
|
fontSize: 9,
|
|
726
729
|
fontWeight: "700",
|
|
727
|
-
color: _sharedUi.
|
|
730
|
+
color: _sharedUi.night.color.accent,
|
|
728
731
|
fontFamily: "monospace"
|
|
729
732
|
},
|
|
730
733
|
actionsRow: {
|
|
@@ -738,8 +741,8 @@ const infoStyles = _reactNative.StyleSheet.create({
|
|
|
738
741
|
borderWidth: 1
|
|
739
742
|
},
|
|
740
743
|
actionButtonCopy: {
|
|
741
|
-
borderColor: _sharedUi.
|
|
742
|
-
backgroundColor: _sharedUi.
|
|
744
|
+
borderColor: _sharedUi.night.color.accentBorder,
|
|
745
|
+
backgroundColor: _sharedUi.night.color.accentSoft
|
|
743
746
|
},
|
|
744
747
|
actionButtonText: {
|
|
745
748
|
fontSize: 10,
|
|
@@ -44,7 +44,7 @@ function JotaiEventFilterView({
|
|
|
44
44
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_sharedUi.SectionHeader, {
|
|
45
45
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.SectionHeader.Icon, {
|
|
46
46
|
icon: _sharedUi.Filter,
|
|
47
|
-
color: _sharedUi.
|
|
47
|
+
color: _sharedUi.night.color.textSecondary,
|
|
48
48
|
size: 12
|
|
49
49
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.SectionHeader.Title, {
|
|
50
50
|
children: "REGISTERED ATOMS"
|
|
@@ -91,7 +91,7 @@ function JotaiEventFilterView({
|
|
|
91
91
|
onChangeText: setNewPattern,
|
|
92
92
|
onSubmitEditing: handleAddPattern,
|
|
93
93
|
placeholder: "Type a pattern and press Enter...",
|
|
94
|
-
placeholderTextColor: _sharedUi.
|
|
94
|
+
placeholderTextColor: _sharedUi.night.color.placeholder,
|
|
95
95
|
returnKeyType: "done",
|
|
96
96
|
autoCapitalize: "none",
|
|
97
97
|
autoCorrect: false,
|
|
@@ -103,7 +103,7 @@ function JotaiEventFilterView({
|
|
|
103
103
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_sharedUi.SectionHeader, {
|
|
104
104
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.SectionHeader.Icon, {
|
|
105
105
|
icon: _sharedUi.Filter,
|
|
106
|
-
color: _sharedUi.
|
|
106
|
+
color: _sharedUi.night.color.textSecondary,
|
|
107
107
|
size: 12
|
|
108
108
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.SectionHeader.Title, {
|
|
109
109
|
children: "ACTIVE FILTERS"
|
|
@@ -128,7 +128,7 @@ function JotaiEventFilterView({
|
|
|
128
128
|
children: pattern
|
|
129
129
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.X, {
|
|
130
130
|
size: 12,
|
|
131
|
-
color: _sharedUi.
|
|
131
|
+
color: _sharedUi.night.color.accent + "80"
|
|
132
132
|
})]
|
|
133
133
|
}, pattern);
|
|
134
134
|
})
|
|
@@ -138,7 +138,7 @@ function JotaiEventFilterView({
|
|
|
138
138
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_sharedUi.SectionHeader, {
|
|
139
139
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.SectionHeader.Icon, {
|
|
140
140
|
icon: _sharedUi.Filter,
|
|
141
|
-
color: _sharedUi.
|
|
141
|
+
color: _sharedUi.night.color.textSecondary,
|
|
142
142
|
size: 12
|
|
143
143
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.SectionHeader.Title, {
|
|
144
144
|
children: "HOW ATOM FILTERS WORK"
|
|
@@ -162,7 +162,8 @@ function JotaiEventFilterView({
|
|
|
162
162
|
const styles = _reactNative.StyleSheet.create({
|
|
163
163
|
container: {
|
|
164
164
|
flex: 1,
|
|
165
|
-
|
|
165
|
+
// Transparent so the night sheet's star field shows through.
|
|
166
|
+
backgroundColor: "transparent"
|
|
166
167
|
},
|
|
167
168
|
scrollContent: {
|
|
168
169
|
paddingTop: 16,
|
|
@@ -171,10 +172,10 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
171
172
|
gap: 16
|
|
172
173
|
},
|
|
173
174
|
section: {
|
|
174
|
-
backgroundColor: _sharedUi.
|
|
175
|
+
backgroundColor: _sharedUi.night.color.surface,
|
|
175
176
|
borderRadius: 16,
|
|
176
177
|
borderWidth: 1,
|
|
177
|
-
borderColor: _sharedUi.
|
|
178
|
+
borderColor: _sharedUi.night.color.border,
|
|
178
179
|
overflow: "hidden"
|
|
179
180
|
},
|
|
180
181
|
atomList: {
|
|
@@ -192,10 +193,10 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
192
193
|
gap: 10,
|
|
193
194
|
paddingVertical: 10,
|
|
194
195
|
paddingHorizontal: 12,
|
|
195
|
-
backgroundColor: _sharedUi.
|
|
196
|
+
backgroundColor: _sharedUi.night.color.surfaceElevated,
|
|
196
197
|
borderRadius: 8,
|
|
197
198
|
borderWidth: 1,
|
|
198
|
-
borderColor: _sharedUi.
|
|
199
|
+
borderColor: _sharedUi.night.color.border
|
|
199
200
|
},
|
|
200
201
|
atomRowFiltered: {
|
|
201
202
|
opacity: 0.45
|
|
@@ -212,13 +213,13 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
212
213
|
fontFamily: "monospace"
|
|
213
214
|
},
|
|
214
215
|
atomRowTextFiltered: {
|
|
215
|
-
color: _sharedUi.
|
|
216
|
+
color: _sharedUi.night.color.textTertiary,
|
|
216
217
|
textDecorationLine: "line-through"
|
|
217
218
|
},
|
|
218
219
|
filteredLabel: {
|
|
219
220
|
fontSize: 10,
|
|
220
221
|
fontWeight: "500",
|
|
221
|
-
color: _sharedUi.
|
|
222
|
+
color: _sharedUi.night.color.textTertiary,
|
|
222
223
|
fontFamily: "monospace"
|
|
223
224
|
},
|
|
224
225
|
addLabel: {
|
|
@@ -242,21 +243,21 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
242
243
|
justifyContent: "space-between",
|
|
243
244
|
paddingVertical: 10,
|
|
244
245
|
paddingHorizontal: 12,
|
|
245
|
-
backgroundColor: _sharedUi.
|
|
246
|
+
backgroundColor: _sharedUi.night.color.surfaceElevated,
|
|
246
247
|
borderRadius: 8,
|
|
247
248
|
borderWidth: 1,
|
|
248
|
-
borderColor: _sharedUi.
|
|
249
|
+
borderColor: _sharedUi.night.color.border,
|
|
249
250
|
gap: 8
|
|
250
251
|
},
|
|
251
252
|
patternText: {
|
|
252
253
|
flex: 1,
|
|
253
254
|
fontSize: 12,
|
|
254
255
|
fontFamily: "monospace",
|
|
255
|
-
color: _sharedUi.
|
|
256
|
+
color: _sharedUi.night.color.text
|
|
256
257
|
},
|
|
257
258
|
howItWorksText: {
|
|
258
259
|
fontSize: 11,
|
|
259
|
-
color: _sharedUi.
|
|
260
|
+
color: _sharedUi.night.color.textSecondary,
|
|
260
261
|
lineHeight: 16,
|
|
261
262
|
marginTop: 8,
|
|
262
263
|
paddingHorizontal: 16,
|
|
@@ -267,39 +268,39 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
267
268
|
paddingHorizontal: 16,
|
|
268
269
|
paddingBottom: 16,
|
|
269
270
|
borderTopWidth: 1,
|
|
270
|
-
borderTopColor: _sharedUi.
|
|
271
|
+
borderTopColor: _sharedUi.night.color.border,
|
|
271
272
|
marginTop: 12
|
|
272
273
|
},
|
|
273
274
|
examplesTitle: {
|
|
274
275
|
fontSize: 10,
|
|
275
276
|
fontWeight: "600",
|
|
276
|
-
color: _sharedUi.
|
|
277
|
+
color: _sharedUi.night.color.textTertiary,
|
|
277
278
|
fontFamily: "monospace",
|
|
278
279
|
letterSpacing: 0.5,
|
|
279
280
|
marginBottom: 6
|
|
280
281
|
},
|
|
281
282
|
exampleItem: {
|
|
282
283
|
fontSize: 10,
|
|
283
|
-
color: _sharedUi.
|
|
284
|
+
color: _sharedUi.night.color.textTertiary,
|
|
284
285
|
fontFamily: "monospace",
|
|
285
286
|
lineHeight: 16
|
|
286
287
|
},
|
|
287
288
|
emptyText: {
|
|
288
289
|
fontSize: 11,
|
|
289
|
-
color: _sharedUi.
|
|
290
|
+
color: _sharedUi.night.color.textTertiary,
|
|
290
291
|
paddingHorizontal: 16,
|
|
291
292
|
paddingVertical: 12,
|
|
292
293
|
fontFamily: "monospace"
|
|
293
294
|
},
|
|
294
295
|
patternInput: {
|
|
295
296
|
borderWidth: 1,
|
|
296
|
-
borderColor: _sharedUi.
|
|
297
|
+
borderColor: _sharedUi.night.color.accentBorder,
|
|
297
298
|
borderRadius: 8,
|
|
298
299
|
paddingHorizontal: 12,
|
|
299
300
|
paddingVertical: 8,
|
|
300
301
|
fontSize: 12,
|
|
301
|
-
color: _sharedUi.
|
|
302
|
+
color: _sharedUi.night.color.text,
|
|
302
303
|
fontFamily: "monospace",
|
|
303
|
-
backgroundColor: _sharedUi.
|
|
304
|
+
backgroundColor: _sharedUi.night.color.surfaceElevated
|
|
304
305
|
}
|
|
305
306
|
});
|