@buoy-gg/zustand 7.0.25 → 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/zustand/components/ZustandActionButton.js +21 -21
- package/lib/commonjs/zustand/components/ZustandDetailViewToggle.js +16 -15
- package/lib/commonjs/zustand/components/ZustandEventFilterView.js +23 -22
- package/lib/commonjs/zustand/components/ZustandModal.js +33 -28
- package/lib/commonjs/zustand/components/ZustandStateChangeItem.js +1 -1
- package/lib/commonjs/zustand/components/ZustandStateDetailContent.js +11 -9
- package/lib/commonjs/zustand/components/ZustandStateInfoView.js +27 -26
- package/lib/commonjs/zustand/components/ZustandStoreBrowser.js +11 -10
- package/lib/module/zustand/components/ZustandActionButton.js +22 -22
- package/lib/module/zustand/components/ZustandDetailViewToggle.js +17 -16
- package/lib/module/zustand/components/ZustandEventFilterView.js +24 -23
- package/lib/module/zustand/components/ZustandModal.js +34 -29
- package/lib/module/zustand/components/ZustandStateChangeItem.js +2 -2
- package/lib/module/zustand/components/ZustandStateDetailContent.js +12 -10
- package/lib/module/zustand/components/ZustandStateInfoView.js +28 -27
- package/lib/module/zustand/components/ZustandStoreBrowser.js +12 -11
- package/lib/typescript/zustand/components/ZustandActionButton.d.ts +11 -11
- package/lib/typescript/zustand/components/ZustandEventFilterView.d.ts.map +1 -1
- package/lib/typescript/zustand/components/ZustandStateInfoView.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -41,8 +41,8 @@ function getCategoryInfo(category) {
|
|
|
41
41
|
case "initial":
|
|
42
42
|
return {
|
|
43
43
|
label: "INITIAL",
|
|
44
|
-
color: _sharedUi.
|
|
45
|
-
bgColor: _sharedUi.
|
|
44
|
+
color: _sharedUi.night.color.textTertiary,
|
|
45
|
+
bgColor: _sharedUi.night.color.textTertiary + "26"
|
|
46
46
|
};
|
|
47
47
|
default:
|
|
48
48
|
return {
|
|
@@ -68,7 +68,7 @@ function SectionHeader({
|
|
|
68
68
|
style: styles.sectionHeaderLeft,
|
|
69
69
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
|
|
70
70
|
size: 14,
|
|
71
|
-
color: _sharedUi.
|
|
71
|
+
color: _sharedUi.night.color.accent
|
|
72
72
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
73
73
|
style: styles.sectionTitle,
|
|
74
74
|
children: title
|
|
@@ -175,7 +175,7 @@ const ZustandStateInfoView = exports.ZustandStateInfoView = /*#__PURE__*/(0, _re
|
|
|
175
175
|
style: [styles.durationBadge, change.isSlowUpdate && styles.durationBadgeSlow],
|
|
176
176
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Clock, {
|
|
177
177
|
size: 10,
|
|
178
|
-
color: change.isSlowUpdate ? _sharedUi.buoyColors.error : _sharedUi.
|
|
178
|
+
color: change.isSlowUpdate ? _sharedUi.buoyColors.error : _sharedUi.night.color.textSecondary
|
|
179
179
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
180
180
|
style: [styles.durationText, change.isSlowUpdate && styles.durationTextSlow],
|
|
181
181
|
children: formatDuration(change.duration)
|
|
@@ -304,12 +304,12 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
304
304
|
gap: 16
|
|
305
305
|
},
|
|
306
306
|
card: {
|
|
307
|
-
backgroundColor: _sharedUi.
|
|
307
|
+
backgroundColor: _sharedUi.night.color.surface,
|
|
308
308
|
borderRadius: 6,
|
|
309
309
|
borderWidth: 1,
|
|
310
|
-
borderColor: _sharedUi.
|
|
310
|
+
borderColor: _sharedUi.night.color.accentBorderStrong,
|
|
311
311
|
overflow: "hidden",
|
|
312
|
-
shadowColor: _sharedUi.
|
|
312
|
+
shadowColor: _sharedUi.night.color.accent,
|
|
313
313
|
shadowOffset: {
|
|
314
314
|
width: 0,
|
|
315
315
|
height: 0
|
|
@@ -324,8 +324,8 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
324
324
|
paddingHorizontal: 12,
|
|
325
325
|
paddingVertical: 10,
|
|
326
326
|
borderBottomWidth: 1,
|
|
327
|
-
borderBottomColor: _sharedUi.
|
|
328
|
-
backgroundColor: _sharedUi.
|
|
327
|
+
borderBottomColor: _sharedUi.night.color.accentBorder,
|
|
328
|
+
backgroundColor: _sharedUi.night.color.accentSoft
|
|
329
329
|
},
|
|
330
330
|
sectionHeaderLeft: {
|
|
331
331
|
flexDirection: "row",
|
|
@@ -336,7 +336,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
336
336
|
fontSize: 12,
|
|
337
337
|
fontWeight: "600",
|
|
338
338
|
letterSpacing: 0.5,
|
|
339
|
-
color: _sharedUi.
|
|
339
|
+
color: _sharedUi.night.color.accent,
|
|
340
340
|
fontFamily: "monospace"
|
|
341
341
|
},
|
|
342
342
|
cardContent: {
|
|
@@ -350,12 +350,12 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
350
350
|
},
|
|
351
351
|
infoLabel: {
|
|
352
352
|
fontSize: 11,
|
|
353
|
-
color: _sharedUi.
|
|
353
|
+
color: _sharedUi.night.color.textTertiary,
|
|
354
354
|
fontWeight: "500"
|
|
355
355
|
},
|
|
356
356
|
infoValue: {
|
|
357
357
|
fontSize: 11,
|
|
358
|
-
color: _sharedUi.
|
|
358
|
+
color: _sharedUi.night.color.text,
|
|
359
359
|
fontWeight: "500",
|
|
360
360
|
flex: 1,
|
|
361
361
|
textAlign: "right",
|
|
@@ -387,7 +387,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
387
387
|
paddingHorizontal: 8,
|
|
388
388
|
paddingVertical: 3,
|
|
389
389
|
borderRadius: 4,
|
|
390
|
-
backgroundColor: _sharedUi.
|
|
390
|
+
backgroundColor: _sharedUi.night.color.surfaceElevated
|
|
391
391
|
},
|
|
392
392
|
durationBadgeSlow: {
|
|
393
393
|
backgroundColor: _sharedUi.buoyColors.error + "26"
|
|
@@ -395,7 +395,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
395
395
|
durationText: {
|
|
396
396
|
fontSize: 9,
|
|
397
397
|
fontWeight: "600",
|
|
398
|
-
color: _sharedUi.
|
|
398
|
+
color: _sharedUi.night.color.textSecondary,
|
|
399
399
|
fontFamily: "monospace"
|
|
400
400
|
},
|
|
401
401
|
durationTextSlow: {
|
|
@@ -419,12 +419,12 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
419
419
|
paddingHorizontal: 8,
|
|
420
420
|
paddingVertical: 3,
|
|
421
421
|
borderRadius: 4,
|
|
422
|
-
backgroundColor: _sharedUi.
|
|
422
|
+
backgroundColor: _sharedUi.night.color.surfaceElevated
|
|
423
423
|
},
|
|
424
424
|
noChangesText: {
|
|
425
425
|
fontSize: 9,
|
|
426
426
|
fontWeight: "600",
|
|
427
|
-
color: _sharedUi.
|
|
427
|
+
color: _sharedUi.night.color.textTertiary
|
|
428
428
|
},
|
|
429
429
|
persistBadge: {
|
|
430
430
|
flexDirection: "row",
|
|
@@ -450,52 +450,53 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
450
450
|
paddingHorizontal: 8,
|
|
451
451
|
paddingVertical: 4,
|
|
452
452
|
borderRadius: 4,
|
|
453
|
-
backgroundColor: _sharedUi.
|
|
453
|
+
backgroundColor: _sharedUi.night.color.accentSoft,
|
|
454
454
|
borderWidth: 1,
|
|
455
|
-
borderColor: _sharedUi.
|
|
455
|
+
borderColor: _sharedUi.night.color.accentBorder
|
|
456
456
|
},
|
|
457
457
|
keyText: {
|
|
458
458
|
fontSize: 11,
|
|
459
459
|
fontWeight: "600",
|
|
460
|
-
color: _sharedUi.
|
|
460
|
+
color: _sharedUi.night.color.accent,
|
|
461
461
|
fontFamily: "monospace"
|
|
462
462
|
},
|
|
463
463
|
countBadge: {
|
|
464
464
|
paddingHorizontal: 8,
|
|
465
465
|
paddingVertical: 3,
|
|
466
466
|
borderRadius: 4,
|
|
467
|
-
backgroundColor: _sharedUi.
|
|
467
|
+
backgroundColor: _sharedUi.night.color.accentFill
|
|
468
468
|
},
|
|
469
469
|
countText: {
|
|
470
470
|
fontSize: 9,
|
|
471
471
|
fontWeight: "700",
|
|
472
|
-
color: _sharedUi.
|
|
472
|
+
color: _sharedUi.night.color.accent,
|
|
473
473
|
fontFamily: "monospace"
|
|
474
474
|
},
|
|
475
475
|
typeBadge: {
|
|
476
476
|
paddingHorizontal: 6,
|
|
477
477
|
paddingVertical: 2,
|
|
478
478
|
borderRadius: 3,
|
|
479
|
-
backgroundColor: _sharedUi.
|
|
479
|
+
backgroundColor: _sharedUi.night.color.surfaceElevated
|
|
480
480
|
},
|
|
481
481
|
typeText: {
|
|
482
482
|
fontSize: 8,
|
|
483
483
|
fontWeight: "600",
|
|
484
|
-
color: _sharedUi.
|
|
484
|
+
color: _sharedUi.night.color.textTertiary,
|
|
485
485
|
fontFamily: "monospace"
|
|
486
486
|
},
|
|
487
487
|
dataViewerContainer: {
|
|
488
|
-
|
|
488
|
+
// Inset display panel — darker than the card, the night track color.
|
|
489
|
+
backgroundColor: _sharedUi.night.color.bg,
|
|
489
490
|
minHeight: 60
|
|
490
491
|
},
|
|
491
492
|
updaterText: {
|
|
492
493
|
fontSize: 12,
|
|
493
|
-
color: _sharedUi.
|
|
494
|
+
color: _sharedUi.night.color.text,
|
|
494
495
|
fontFamily: "monospace"
|
|
495
496
|
},
|
|
496
497
|
updaterSubtext: {
|
|
497
498
|
fontSize: 11,
|
|
498
|
-
color: _sharedUi.
|
|
499
|
+
color: _sharedUi.night.color.textTertiary,
|
|
499
500
|
lineHeight: 16,
|
|
500
501
|
marginTop: 4
|
|
501
502
|
},
|
|
@@ -120,7 +120,7 @@ function LoadingBrowserState() {
|
|
|
120
120
|
style: styles.emptyState,
|
|
121
121
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
|
|
122
122
|
size: "small",
|
|
123
|
-
color: _sharedUi.
|
|
123
|
+
color: _sharedUi.night.color.textTertiary
|
|
124
124
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
125
125
|
style: styles.emptyTitle,
|
|
126
126
|
children: "Loading stores\u2026"
|
|
@@ -135,7 +135,7 @@ function EmptyBrowserState() {
|
|
|
135
135
|
style: styles.emptyState,
|
|
136
136
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Box, {
|
|
137
137
|
size: 32,
|
|
138
|
-
color: _sharedUi.
|
|
138
|
+
color: _sharedUi.night.color.textTertiary
|
|
139
139
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
140
140
|
style: styles.emptyTitle,
|
|
141
141
|
children: "No stores registered"
|
|
@@ -270,10 +270,10 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
270
270
|
fontSize: 11,
|
|
271
271
|
fontWeight: "700",
|
|
272
272
|
letterSpacing: 0.5,
|
|
273
|
-
color: _sharedUi.
|
|
273
|
+
color: _sharedUi.night.color.textTertiary
|
|
274
274
|
},
|
|
275
275
|
sectionCountBadge: {
|
|
276
|
-
backgroundColor: _sharedUi.
|
|
276
|
+
backgroundColor: _sharedUi.night.color.accentFill,
|
|
277
277
|
paddingHorizontal: 8,
|
|
278
278
|
paddingVertical: 2,
|
|
279
279
|
borderRadius: 4
|
|
@@ -281,7 +281,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
281
281
|
sectionCountText: {
|
|
282
282
|
fontSize: 10,
|
|
283
283
|
fontWeight: "700",
|
|
284
|
-
color: _sharedUi.
|
|
284
|
+
color: _sharedUi.night.color.accent,
|
|
285
285
|
fontFamily: "monospace"
|
|
286
286
|
},
|
|
287
287
|
emptyState: {
|
|
@@ -289,14 +289,14 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
289
289
|
paddingVertical: 40
|
|
290
290
|
},
|
|
291
291
|
emptyTitle: {
|
|
292
|
-
color: _sharedUi.
|
|
292
|
+
color: _sharedUi.night.color.text,
|
|
293
293
|
fontSize: 14,
|
|
294
294
|
fontWeight: "600",
|
|
295
295
|
marginTop: 12,
|
|
296
296
|
marginBottom: 6
|
|
297
297
|
},
|
|
298
298
|
emptyText: {
|
|
299
|
-
color: _sharedUi.
|
|
299
|
+
color: _sharedUi.night.color.textTertiary,
|
|
300
300
|
fontSize: 12,
|
|
301
301
|
textAlign: "center",
|
|
302
302
|
lineHeight: 18
|
|
@@ -315,15 +315,16 @@ const expandedStyles = _reactNative.StyleSheet.create({
|
|
|
315
315
|
fontFamily: "monospace"
|
|
316
316
|
},
|
|
317
317
|
dataContainer: {
|
|
318
|
-
|
|
318
|
+
// Inset display panel — darker than the card, the night track color.
|
|
319
|
+
backgroundColor: _sharedUi.night.color.bg,
|
|
319
320
|
borderRadius: 6,
|
|
320
321
|
borderWidth: 1,
|
|
321
|
-
borderColor: _sharedUi.
|
|
322
|
+
borderColor: _sharedUi.night.color.border,
|
|
322
323
|
overflow: "hidden",
|
|
323
324
|
minHeight: 60
|
|
324
325
|
},
|
|
325
326
|
emptyText: {
|
|
326
|
-
color: _sharedUi.
|
|
327
|
+
color: _sharedUi.night.color.textTertiary,
|
|
327
328
|
fontSize: 12,
|
|
328
329
|
padding: 14,
|
|
329
330
|
fontStyle: "italic"
|
|
@@ -8,32 +8,32 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { TouchableOpacity, Text, View, StyleSheet } from "react-native";
|
|
11
|
-
import {
|
|
11
|
+
import { night } from "@buoy-gg/shared-ui";
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
const buttonConfigs = {
|
|
14
14
|
copy: {
|
|
15
|
-
color:
|
|
16
|
-
backgroundColor:
|
|
17
|
-
borderColor:
|
|
18
|
-
textColor:
|
|
15
|
+
color: night.color.accent,
|
|
16
|
+
backgroundColor: night.color.accentSoft,
|
|
17
|
+
borderColor: night.color.accentBorder,
|
|
18
|
+
textColor: night.color.accent
|
|
19
19
|
},
|
|
20
20
|
reset: {
|
|
21
|
-
color:
|
|
22
|
-
backgroundColor:
|
|
23
|
-
borderColor:
|
|
24
|
-
textColor:
|
|
21
|
+
color: night.color.warning,
|
|
22
|
+
backgroundColor: night.color.warningSoft,
|
|
23
|
+
borderColor: night.color.warning + "40",
|
|
24
|
+
textColor: night.color.warning
|
|
25
25
|
},
|
|
26
26
|
clear: {
|
|
27
|
-
color:
|
|
28
|
-
backgroundColor:
|
|
29
|
-
borderColor:
|
|
30
|
-
textColor:
|
|
27
|
+
color: night.color.danger,
|
|
28
|
+
backgroundColor: night.color.dangerSoft,
|
|
29
|
+
borderColor: night.color.danger + "40",
|
|
30
|
+
textColor: night.color.danger
|
|
31
31
|
},
|
|
32
32
|
jump: {
|
|
33
|
-
color:
|
|
34
|
-
backgroundColor:
|
|
35
|
-
borderColor:
|
|
36
|
-
textColor:
|
|
33
|
+
color: night.color.warning,
|
|
34
|
+
backgroundColor: night.color.warningSoft,
|
|
35
|
+
borderColor: night.color.warning + "40",
|
|
36
|
+
textColor: night.color.warning
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
export function ZustandActionButton({
|
|
@@ -47,8 +47,8 @@ export function ZustandActionButton({
|
|
|
47
47
|
disabled: disabled,
|
|
48
48
|
onPress: onPress,
|
|
49
49
|
style: [styles.button, {
|
|
50
|
-
backgroundColor: disabled ?
|
|
51
|
-
borderColor: disabled ?
|
|
50
|
+
backgroundColor: disabled ? night.color.textTertiary + "1A" : config.backgroundColor,
|
|
51
|
+
borderColor: disabled ? night.color.textTertiary + "33" : config.borderColor,
|
|
52
52
|
opacity: disabled ? 0.5 : 1
|
|
53
53
|
}],
|
|
54
54
|
activeOpacity: 0.7,
|
|
@@ -59,11 +59,11 @@ export function ZustandActionButton({
|
|
|
59
59
|
},
|
|
60
60
|
children: [/*#__PURE__*/_jsx(View, {
|
|
61
61
|
style: [styles.dot, {
|
|
62
|
-
backgroundColor: disabled ?
|
|
62
|
+
backgroundColor: disabled ? night.color.textTertiary : config.color
|
|
63
63
|
}]
|
|
64
64
|
}), /*#__PURE__*/_jsx(Text, {
|
|
65
65
|
style: [styles.text, {
|
|
66
|
-
color: disabled ?
|
|
66
|
+
color: disabled ? night.color.textTertiary : config.textColor
|
|
67
67
|
}],
|
|
68
68
|
children: text
|
|
69
69
|
})]
|
|
@@ -93,7 +93,7 @@ const styles = StyleSheet.create({
|
|
|
93
93
|
height: 5,
|
|
94
94
|
borderRadius: 3,
|
|
95
95
|
marginRight: 6,
|
|
96
|
-
shadowColor:
|
|
96
|
+
shadowColor: night.color.text,
|
|
97
97
|
shadowOffset: {
|
|
98
98
|
width: 0,
|
|
99
99
|
height: 0
|
|
@@ -9,26 +9,26 @@
|
|
|
9
9
|
|
|
10
10
|
import React, { memo } from "react";
|
|
11
11
|
import { View, Text, TouchableOpacity, StyleSheet } from "react-native";
|
|
12
|
-
import {
|
|
12
|
+
import { night, FileText, Database, GitBranch } from "@buoy-gg/shared-ui";
|
|
13
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
14
|
const VIEW_CONFIGS = [{
|
|
15
15
|
key: "change",
|
|
16
16
|
label: "CHANGE",
|
|
17
17
|
description: "View change details",
|
|
18
18
|
icon: FileText,
|
|
19
|
-
activeColor:
|
|
19
|
+
activeColor: night.color.accent
|
|
20
20
|
}, {
|
|
21
21
|
key: "state",
|
|
22
22
|
label: "STATE",
|
|
23
23
|
description: "View current state",
|
|
24
24
|
icon: Database,
|
|
25
|
-
activeColor:
|
|
25
|
+
activeColor: night.color.accent
|
|
26
26
|
}, {
|
|
27
27
|
key: "diff",
|
|
28
28
|
label: "DIFF",
|
|
29
29
|
description: "Compare changes",
|
|
30
30
|
icon: GitBranch,
|
|
31
|
-
activeColor:
|
|
31
|
+
activeColor: night.color.accent
|
|
32
32
|
}];
|
|
33
33
|
export const ZustandDetailViewToggle = /*#__PURE__*/memo(function ZustandDetailViewToggle({
|
|
34
34
|
activeView,
|
|
@@ -52,7 +52,7 @@ export const ZustandDetailViewToggle = /*#__PURE__*/memo(function ZustandDetailV
|
|
|
52
52
|
style: styles.cardContent,
|
|
53
53
|
children: [/*#__PURE__*/_jsx(IconComponent, {
|
|
54
54
|
size: 14,
|
|
55
|
-
color: isActive ? config.activeColor : isDisabled ?
|
|
55
|
+
color: isActive ? config.activeColor : isDisabled ? night.color.textTertiary : night.color.textSecondary
|
|
56
56
|
}), /*#__PURE__*/_jsx(Text, {
|
|
57
57
|
style: [styles.cardLabel, isActive && [styles.cardLabelActive, {
|
|
58
58
|
color: config.activeColor
|
|
@@ -72,21 +72,22 @@ const styles = StyleSheet.create({
|
|
|
72
72
|
flexDirection: "row",
|
|
73
73
|
gap: 8,
|
|
74
74
|
padding: 14,
|
|
75
|
-
|
|
75
|
+
// Transparent so the night sheet's star field shows through.
|
|
76
|
+
backgroundColor: "transparent"
|
|
76
77
|
},
|
|
77
78
|
card: {
|
|
78
79
|
flex: 1,
|
|
79
|
-
backgroundColor:
|
|
80
|
+
backgroundColor: night.color.surface,
|
|
80
81
|
borderRadius: 12,
|
|
81
82
|
borderWidth: 1,
|
|
82
|
-
borderColor:
|
|
83
|
+
borderColor: night.color.border,
|
|
83
84
|
padding: 10,
|
|
84
85
|
gap: 4
|
|
85
86
|
},
|
|
86
87
|
cardActive: {
|
|
87
88
|
borderWidth: 1.5,
|
|
88
|
-
backgroundColor:
|
|
89
|
-
shadowColor:
|
|
89
|
+
backgroundColor: night.color.accentSoft,
|
|
90
|
+
shadowColor: night.color.accent,
|
|
90
91
|
shadowOffset: {
|
|
91
92
|
width: 0,
|
|
92
93
|
height: 2
|
|
@@ -107,23 +108,23 @@ const styles = StyleSheet.create({
|
|
|
107
108
|
fontSize: 10,
|
|
108
109
|
fontWeight: "700",
|
|
109
110
|
letterSpacing: 0.5,
|
|
110
|
-
color:
|
|
111
|
+
color: night.color.textSecondary
|
|
111
112
|
},
|
|
112
113
|
cardLabelActive: {
|
|
113
|
-
color:
|
|
114
|
+
color: night.color.text
|
|
114
115
|
},
|
|
115
116
|
cardLabelDisabled: {
|
|
116
|
-
color:
|
|
117
|
+
color: night.color.textTertiary
|
|
117
118
|
},
|
|
118
119
|
cardDescription: {
|
|
119
120
|
fontSize: 9,
|
|
120
|
-
color:
|
|
121
|
+
color: night.color.textTertiary,
|
|
121
122
|
lineHeight: 12
|
|
122
123
|
},
|
|
123
124
|
cardDescriptionActive: {
|
|
124
|
-
color:
|
|
125
|
+
color: night.color.textSecondary
|
|
125
126
|
},
|
|
126
127
|
cardDescriptionDisabled: {
|
|
127
|
-
color:
|
|
128
|
+
color: night.color.textTertiary
|
|
128
129
|
}
|
|
129
130
|
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { View, Text, StyleSheet, TouchableOpacity, ScrollView } from "react-native";
|
|
5
|
-
import { Filter, X, SectionHeader, AddFilterButton, AddFilterInput,
|
|
5
|
+
import { Filter, X, SectionHeader, AddFilterButton, AddFilterInput, night } from "@buoy-gg/shared-ui";
|
|
6
6
|
import { zustandStateStore } from "../utils/zustandStateStore";
|
|
7
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
8
|
/** Returns the store color for a given pattern if it exactly matches a registered store name */
|
|
@@ -42,7 +42,7 @@ export function ZustandEventFilterView({
|
|
|
42
42
|
children: "REGISTERED STORES"
|
|
43
43
|
}), /*#__PURE__*/_jsx(SectionHeader.Badge, {
|
|
44
44
|
count: stores.length,
|
|
45
|
-
color:
|
|
45
|
+
color: night.color.accent
|
|
46
46
|
})]
|
|
47
47
|
}), /*#__PURE__*/_jsx(ScrollView, {
|
|
48
48
|
style: styles.storeList,
|
|
@@ -58,7 +58,7 @@ export function ZustandEventFilterView({
|
|
|
58
58
|
disabled: filtered,
|
|
59
59
|
children: [/*#__PURE__*/_jsx(View, {
|
|
60
60
|
style: [styles.storeDot, {
|
|
61
|
-
backgroundColor: filtered ?
|
|
61
|
+
backgroundColor: filtered ? night.color.textTertiary : storeColor
|
|
62
62
|
}]
|
|
63
63
|
}), /*#__PURE__*/_jsx(Text, {
|
|
64
64
|
style: [styles.storeRowText, filtered && styles.storeRowTextFiltered, !filtered && {
|
|
@@ -83,19 +83,19 @@ export function ZustandEventFilterView({
|
|
|
83
83
|
children: [/*#__PURE__*/_jsxs(SectionHeader, {
|
|
84
84
|
children: [/*#__PURE__*/_jsx(SectionHeader.Icon, {
|
|
85
85
|
icon: Filter,
|
|
86
|
-
color:
|
|
86
|
+
color: night.color.accent,
|
|
87
87
|
size: 12
|
|
88
88
|
}), /*#__PURE__*/_jsx(SectionHeader.Title, {
|
|
89
89
|
children: "STORE NAME FILTERS"
|
|
90
90
|
}), ignoredPatterns.size > 0 && /*#__PURE__*/_jsx(SectionHeader.Badge, {
|
|
91
91
|
count: ignoredPatterns.size,
|
|
92
|
-
color:
|
|
92
|
+
color: night.color.accent
|
|
93
93
|
})]
|
|
94
94
|
}), /*#__PURE__*/_jsx(View, {
|
|
95
95
|
style: styles.addInputWrapper,
|
|
96
96
|
children: !showAddInput ? /*#__PURE__*/_jsx(AddFilterButton, {
|
|
97
97
|
onPress: () => setShowAddInput(true),
|
|
98
|
-
color:
|
|
98
|
+
color: night.color.accent,
|
|
99
99
|
label: "Add store name pattern"
|
|
100
100
|
}) : /*#__PURE__*/_jsx(AddFilterInput, {
|
|
101
101
|
value: inputValue,
|
|
@@ -106,7 +106,7 @@ export function ZustandEventFilterView({
|
|
|
106
106
|
setInputValue("");
|
|
107
107
|
},
|
|
108
108
|
placeholder: "Enter store name pattern to hide...",
|
|
109
|
-
color:
|
|
109
|
+
color: night.color.accent
|
|
110
110
|
})
|
|
111
111
|
}), ignoredPatterns.size > 0 && /*#__PURE__*/_jsx(View, {
|
|
112
112
|
style: styles.patternList,
|
|
@@ -128,7 +128,7 @@ export function ZustandEventFilterView({
|
|
|
128
128
|
children: pattern
|
|
129
129
|
}), /*#__PURE__*/_jsx(X, {
|
|
130
130
|
size: 12,
|
|
131
|
-
color:
|
|
131
|
+
color: night.color.accent + "80"
|
|
132
132
|
})]
|
|
133
133
|
}, pattern);
|
|
134
134
|
})
|
|
@@ -138,7 +138,7 @@ export function ZustandEventFilterView({
|
|
|
138
138
|
children: [/*#__PURE__*/_jsxs(SectionHeader, {
|
|
139
139
|
children: [/*#__PURE__*/_jsx(SectionHeader.Icon, {
|
|
140
140
|
icon: Filter,
|
|
141
|
-
color:
|
|
141
|
+
color: night.color.textSecondary,
|
|
142
142
|
size: 12
|
|
143
143
|
}), /*#__PURE__*/_jsx(SectionHeader.Title, {
|
|
144
144
|
children: "HOW EVENT FILTERS WORK"
|
|
@@ -162,7 +162,8 @@ export function ZustandEventFilterView({
|
|
|
162
162
|
const styles = 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 = StyleSheet.create({
|
|
|
171
172
|
gap: 16
|
|
172
173
|
},
|
|
173
174
|
section: {
|
|
174
|
-
backgroundColor:
|
|
175
|
+
backgroundColor: night.color.surface,
|
|
175
176
|
borderRadius: 16,
|
|
176
177
|
borderWidth: 1,
|
|
177
|
-
borderColor:
|
|
178
|
+
borderColor: night.color.border,
|
|
178
179
|
overflow: "hidden"
|
|
179
180
|
},
|
|
180
181
|
storeList: {
|
|
@@ -192,10 +193,10 @@ const styles = StyleSheet.create({
|
|
|
192
193
|
gap: 10,
|
|
193
194
|
paddingVertical: 10,
|
|
194
195
|
paddingHorizontal: 12,
|
|
195
|
-
backgroundColor:
|
|
196
|
+
backgroundColor: night.color.surfaceElevated,
|
|
196
197
|
borderRadius: 8,
|
|
197
198
|
borderWidth: 1,
|
|
198
|
-
borderColor:
|
|
199
|
+
borderColor: night.color.border
|
|
199
200
|
},
|
|
200
201
|
storeRowFiltered: {
|
|
201
202
|
opacity: 0.45
|
|
@@ -212,13 +213,13 @@ const styles = StyleSheet.create({
|
|
|
212
213
|
fontFamily: "monospace"
|
|
213
214
|
},
|
|
214
215
|
storeRowTextFiltered: {
|
|
215
|
-
color:
|
|
216
|
+
color: night.color.textTertiary,
|
|
216
217
|
textDecorationLine: "line-through"
|
|
217
218
|
},
|
|
218
219
|
filteredLabel: {
|
|
219
220
|
fontSize: 10,
|
|
220
221
|
fontWeight: "500",
|
|
221
|
-
color:
|
|
222
|
+
color: night.color.textTertiary,
|
|
222
223
|
fontFamily: "monospace"
|
|
223
224
|
},
|
|
224
225
|
addLabel: {
|
|
@@ -242,21 +243,21 @@ const styles = StyleSheet.create({
|
|
|
242
243
|
justifyContent: "space-between",
|
|
243
244
|
paddingVertical: 10,
|
|
244
245
|
paddingHorizontal: 12,
|
|
245
|
-
backgroundColor:
|
|
246
|
+
backgroundColor: night.color.surfaceElevated,
|
|
246
247
|
borderRadius: 8,
|
|
247
248
|
borderWidth: 1,
|
|
248
|
-
borderColor:
|
|
249
|
+
borderColor: 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:
|
|
256
|
+
color: night.color.text
|
|
256
257
|
},
|
|
257
258
|
howItWorksText: {
|
|
258
259
|
fontSize: 11,
|
|
259
|
-
color:
|
|
260
|
+
color: night.color.textSecondary,
|
|
260
261
|
lineHeight: 16,
|
|
261
262
|
marginTop: 8,
|
|
262
263
|
paddingHorizontal: 16,
|
|
@@ -267,20 +268,20 @@ const styles = StyleSheet.create({
|
|
|
267
268
|
paddingHorizontal: 16,
|
|
268
269
|
paddingBottom: 16,
|
|
269
270
|
borderTopWidth: 1,
|
|
270
|
-
borderTopColor:
|
|
271
|
+
borderTopColor: night.color.border,
|
|
271
272
|
marginTop: 12
|
|
272
273
|
},
|
|
273
274
|
examplesTitle: {
|
|
274
275
|
fontSize: 10,
|
|
275
276
|
fontWeight: "600",
|
|
276
|
-
color:
|
|
277
|
+
color: 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:
|
|
284
|
+
color: night.color.textTertiary,
|
|
284
285
|
fontFamily: "monospace",
|
|
285
286
|
lineHeight: 16
|
|
286
287
|
}
|