@buoy-gg/storage 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/storage/components/DiffViewer/DiffOptionsPanel.js +36 -36
- package/lib/commonjs/storage/components/DiffViewer/TreeDiffViewer.js +2 -2
- package/lib/commonjs/storage/components/DiffViewer/themes/diffThemes.js +19 -108
- package/lib/commonjs/storage/components/GameUIStorageBrowser.js +45 -42
- package/lib/commonjs/storage/components/MMKVInstanceInfoPanel.js +9 -9
- package/lib/commonjs/storage/components/MMKVInstanceSelector.js +24 -24
- package/lib/commonjs/storage/components/SelectionActionBar.js +13 -13
- package/lib/commonjs/storage/components/StorageActionButtons.js +12 -12
- package/lib/commonjs/storage/components/StorageEventActionButton.js +18 -18
- package/lib/commonjs/storage/components/StorageEventDetailContent.js +7 -7
- package/lib/commonjs/storage/components/StorageEventFilterView.js +9 -9
- package/lib/commonjs/storage/components/StorageFilterCards.js +15 -15
- package/lib/commonjs/storage/components/StorageKeyCard.js +21 -21
- package/lib/commonjs/storage/components/StorageKeyEditorScreen.js +19 -18
- package/lib/commonjs/storage/components/StorageKeyRow.js +23 -21
- package/lib/commonjs/storage/components/StorageKeySection.js +3 -3
- package/lib/commonjs/storage/components/StorageKeyStats.js +10 -10
- package/lib/commonjs/storage/components/StorageModalWithTabs.js +19 -14
- package/lib/commonjs/storage/components/StorageTypeFilterBar.js +8 -8
- package/lib/commonjs/storage/components/StorageValueEditModal.js +19 -19
- package/lib/module/storage/components/DiffViewer/DiffOptionsPanel.js +37 -37
- package/lib/module/storage/components/DiffViewer/TreeDiffViewer.js +3 -3
- package/lib/module/storage/components/DiffViewer/themes/diffThemes.js +6 -105
- package/lib/module/storage/components/GameUIStorageBrowser.js +46 -43
- package/lib/module/storage/components/MMKVInstanceInfoPanel.js +10 -10
- package/lib/module/storage/components/MMKVInstanceSelector.js +25 -25
- package/lib/module/storage/components/SelectionActionBar.js +14 -14
- package/lib/module/storage/components/StorageActionButtons.js +13 -13
- package/lib/module/storage/components/StorageEventActionButton.js +19 -19
- package/lib/module/storage/components/StorageEventDetailContent.js +8 -8
- package/lib/module/storage/components/StorageEventFilterView.js +10 -10
- package/lib/module/storage/components/StorageFilterCards.js +16 -16
- package/lib/module/storage/components/StorageKeyCard.js +22 -22
- package/lib/module/storage/components/StorageKeyEditorScreen.js +20 -19
- package/lib/module/storage/components/StorageKeyRow.js +24 -22
- package/lib/module/storage/components/StorageKeySection.js +4 -4
- package/lib/module/storage/components/StorageKeyStats.js +11 -11
- package/lib/module/storage/components/StorageModalWithTabs.js +20 -15
- package/lib/module/storage/components/StorageTypeFilterBar.js +9 -9
- package/lib/module/storage/components/StorageValueEditModal.js +20 -20
- package/lib/typescript/storage/components/DiffViewer/DiffOptionsPanel.d.ts.map +1 -1
- package/lib/typescript/storage/components/DiffViewer/themes/diffThemes.d.ts +6 -61
- package/lib/typescript/storage/components/DiffViewer/themes/diffThemes.d.ts.map +1 -1
- package/lib/typescript/storage/components/StorageEventActionButton.d.ts +8 -8
- package/lib/typescript/storage/components/StorageEventFilterView.d.ts.map +1 -1
- package/lib/typescript/storage/components/StorageKeyCard.d.ts.map +1 -1
- package/lib/typescript/storage/components/StorageKeyEditorScreen.d.ts.map +1 -1
- package/lib/typescript/storage/components/StorageModalWithTabs.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -84,11 +84,11 @@ function MMKVInstanceInfoPanel({
|
|
|
84
84
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(InfoItem, {
|
|
85
85
|
label: "Encryption",
|
|
86
86
|
value: instance.encrypted ? '🔒 Encrypted' : '🔓 Not encrypted',
|
|
87
|
-
valueColor: instance.encrypted ? _sharedUi.macOSColors.semantic.success : _sharedUi.
|
|
87
|
+
valueColor: instance.encrypted ? _sharedUi.macOSColors.semantic.success : _sharedUi.night.color.textTertiary
|
|
88
88
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(InfoItem, {
|
|
89
89
|
label: "Access",
|
|
90
90
|
value: instance.readOnly ? '👁️ Read-only' : '✏️ Read-write',
|
|
91
|
-
valueColor: instance.readOnly ? _sharedUi.macOSColors.semantic.warning : _sharedUi.
|
|
91
|
+
valueColor: instance.readOnly ? _sharedUi.macOSColors.semantic.warning : _sharedUi.night.color.textTertiary
|
|
92
92
|
}), instance.size !== undefined && /*#__PURE__*/(0, _jsxRuntime.jsx)(InfoItem, {
|
|
93
93
|
label: "Size",
|
|
94
94
|
value: formatBytes(instance.size),
|
|
@@ -170,10 +170,10 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
170
170
|
},
|
|
171
171
|
// Panel
|
|
172
172
|
panel: {
|
|
173
|
-
backgroundColor: _sharedUi.
|
|
173
|
+
backgroundColor: _sharedUi.night.color.surface,
|
|
174
174
|
borderRadius: 12,
|
|
175
175
|
borderWidth: 1,
|
|
176
|
-
borderColor: _sharedUi.
|
|
176
|
+
borderColor: _sharedUi.night.color.border,
|
|
177
177
|
overflow: 'hidden',
|
|
178
178
|
shadowColor: '#000000',
|
|
179
179
|
shadowOpacity: 0.03,
|
|
@@ -187,12 +187,12 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
187
187
|
header: {
|
|
188
188
|
padding: 12,
|
|
189
189
|
borderBottomWidth: 1,
|
|
190
|
-
borderBottomColor: _sharedUi.
|
|
190
|
+
borderBottomColor: _sharedUi.night.color.separator
|
|
191
191
|
},
|
|
192
192
|
headerTitle: {
|
|
193
193
|
fontSize: 11,
|
|
194
194
|
fontWeight: '600',
|
|
195
|
-
color: _sharedUi.
|
|
195
|
+
color: _sharedUi.night.color.text,
|
|
196
196
|
textTransform: "uppercase",
|
|
197
197
|
letterSpacing: 0.5
|
|
198
198
|
},
|
|
@@ -209,18 +209,18 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
209
209
|
},
|
|
210
210
|
infoLabel: {
|
|
211
211
|
fontSize: 12,
|
|
212
|
-
color: _sharedUi.
|
|
212
|
+
color: _sharedUi.night.color.textTertiary,
|
|
213
213
|
fontWeight: '500'
|
|
214
214
|
},
|
|
215
215
|
infoValue: {
|
|
216
216
|
fontSize: 12,
|
|
217
|
-
color: _sharedUi.
|
|
217
|
+
color: _sharedUi.night.color.text,
|
|
218
218
|
fontWeight: '500'
|
|
219
219
|
},
|
|
220
220
|
infoValueHighlight: {
|
|
221
221
|
fontSize: 14,
|
|
222
222
|
fontWeight: '600',
|
|
223
|
-
color: _sharedUi.
|
|
223
|
+
color: _sharedUi.night.color.accent
|
|
224
224
|
},
|
|
225
225
|
monoValue: {
|
|
226
226
|
fontFamily: 'monospace'
|
|
@@ -228,28 +228,28 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
228
228
|
},
|
|
229
229
|
unavailableDescription: {
|
|
230
230
|
fontSize: 12,
|
|
231
|
-
color: _sharedUi.
|
|
231
|
+
color: _sharedUi.night.color.textSecondary,
|
|
232
232
|
textAlign: 'center',
|
|
233
233
|
lineHeight: 18
|
|
234
234
|
},
|
|
235
235
|
// Empty state
|
|
236
236
|
emptyState: {
|
|
237
|
-
backgroundColor: _sharedUi.
|
|
237
|
+
backgroundColor: _sharedUi.night.color.surface,
|
|
238
238
|
borderRadius: 12,
|
|
239
239
|
padding: 20,
|
|
240
240
|
borderWidth: 1,
|
|
241
|
-
borderColor: _sharedUi.
|
|
241
|
+
borderColor: _sharedUi.night.color.border,
|
|
242
242
|
alignItems: 'center',
|
|
243
243
|
gap: 12
|
|
244
244
|
},
|
|
245
245
|
emptyStateTitle: {
|
|
246
246
|
fontSize: 14,
|
|
247
247
|
fontWeight: '600',
|
|
248
|
-
color: _sharedUi.
|
|
248
|
+
color: _sharedUi.night.color.text
|
|
249
249
|
},
|
|
250
250
|
emptyStateDescription: {
|
|
251
251
|
fontSize: 12,
|
|
252
|
-
color: _sharedUi.
|
|
252
|
+
color: _sharedUi.night.color.textTertiary,
|
|
253
253
|
textAlign: 'center',
|
|
254
254
|
lineHeight: 18
|
|
255
255
|
},
|
|
@@ -257,22 +257,22 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
257
257
|
marginTop: 8,
|
|
258
258
|
paddingHorizontal: 16,
|
|
259
259
|
paddingVertical: 8,
|
|
260
|
-
backgroundColor: _sharedUi.
|
|
260
|
+
backgroundColor: _sharedUi.night.color.accentSoft,
|
|
261
261
|
borderRadius: 8,
|
|
262
262
|
borderWidth: 1,
|
|
263
|
-
borderColor: _sharedUi.
|
|
263
|
+
borderColor: _sharedUi.night.color.accentBorderStrong
|
|
264
264
|
},
|
|
265
265
|
refreshButtonText: {
|
|
266
266
|
fontSize: 12,
|
|
267
267
|
fontWeight: '600',
|
|
268
|
-
color: _sharedUi.
|
|
268
|
+
color: _sharedUi.night.color.accent
|
|
269
269
|
},
|
|
270
270
|
// Selector button
|
|
271
271
|
selectorButton: {
|
|
272
|
-
backgroundColor: _sharedUi.
|
|
272
|
+
backgroundColor: _sharedUi.night.color.surface,
|
|
273
273
|
borderRadius: 12,
|
|
274
274
|
borderWidth: 1,
|
|
275
|
-
borderColor: _sharedUi.
|
|
275
|
+
borderColor: _sharedUi.night.color.border,
|
|
276
276
|
padding: 12,
|
|
277
277
|
flexDirection: 'row',
|
|
278
278
|
alignItems: 'center',
|
|
@@ -290,12 +290,12 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
290
290
|
},
|
|
291
291
|
placeholderText: {
|
|
292
292
|
fontSize: 13,
|
|
293
|
-
color: _sharedUi.
|
|
293
|
+
color: _sharedUi.night.color.placeholder,
|
|
294
294
|
fontStyle: 'italic'
|
|
295
295
|
},
|
|
296
296
|
dropdownArrow: {
|
|
297
297
|
fontSize: 10,
|
|
298
|
-
color: _sharedUi.
|
|
298
|
+
color: _sharedUi.night.color.textTertiary,
|
|
299
299
|
marginLeft: 8
|
|
300
300
|
},
|
|
301
301
|
// Modal overlay
|
|
@@ -308,10 +308,10 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
308
308
|
},
|
|
309
309
|
// Dropdown container
|
|
310
310
|
dropdownContainer: {
|
|
311
|
-
backgroundColor: _sharedUi.
|
|
311
|
+
backgroundColor: _sharedUi.night.color.surface,
|
|
312
312
|
borderRadius: 16,
|
|
313
313
|
borderWidth: 1,
|
|
314
|
-
borderColor: _sharedUi.
|
|
314
|
+
borderColor: _sharedUi.night.color.border,
|
|
315
315
|
width: '100%',
|
|
316
316
|
maxWidth: 500,
|
|
317
317
|
maxHeight: '70%',
|
|
@@ -330,19 +330,19 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
330
330
|
justifyContent: 'space-between',
|
|
331
331
|
padding: 16,
|
|
332
332
|
borderBottomWidth: 1,
|
|
333
|
-
borderBottomColor: _sharedUi.
|
|
333
|
+
borderBottomColor: _sharedUi.night.color.separator
|
|
334
334
|
},
|
|
335
335
|
dropdownTitle: {
|
|
336
336
|
fontSize: 14,
|
|
337
337
|
fontWeight: '600',
|
|
338
|
-
color: _sharedUi.
|
|
338
|
+
color: _sharedUi.night.color.text
|
|
339
339
|
},
|
|
340
340
|
headerRefreshButton: {
|
|
341
341
|
padding: 4
|
|
342
342
|
},
|
|
343
343
|
headerRefreshText: {
|
|
344
344
|
fontSize: 18,
|
|
345
|
-
color: _sharedUi.
|
|
345
|
+
color: _sharedUi.night.color.accent
|
|
346
346
|
},
|
|
347
347
|
dropdownList: {
|
|
348
348
|
maxHeight: 400
|
|
@@ -350,10 +350,10 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
350
350
|
dropdownItem: {
|
|
351
351
|
padding: 12,
|
|
352
352
|
borderBottomWidth: 1,
|
|
353
|
-
borderBottomColor: _sharedUi.
|
|
353
|
+
borderBottomColor: _sharedUi.night.color.separator
|
|
354
354
|
},
|
|
355
355
|
dropdownItemSelected: {
|
|
356
|
-
backgroundColor: _sharedUi.
|
|
356
|
+
backgroundColor: _sharedUi.night.color.accentSoft
|
|
357
357
|
},
|
|
358
358
|
// Instance row
|
|
359
359
|
instanceRow: {
|
|
@@ -369,12 +369,12 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
369
369
|
instanceId: {
|
|
370
370
|
fontSize: 13,
|
|
371
371
|
fontWeight: '500',
|
|
372
|
-
color: _sharedUi.
|
|
372
|
+
color: _sharedUi.night.color.text,
|
|
373
373
|
fontFamily: 'monospace'
|
|
374
374
|
},
|
|
375
375
|
instanceIdSelected: {
|
|
376
376
|
fontWeight: '600',
|
|
377
|
-
color: _sharedUi.
|
|
377
|
+
color: _sharedUi.night.color.accent
|
|
378
378
|
},
|
|
379
379
|
instanceBadges: {
|
|
380
380
|
flexDirection: 'row',
|
|
@@ -398,7 +398,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
398
398
|
badgeText: {
|
|
399
399
|
fontSize: 9,
|
|
400
400
|
fontWeight: '500',
|
|
401
|
-
color: _sharedUi.
|
|
401
|
+
color: _sharedUi.night.color.textSecondary
|
|
402
402
|
},
|
|
403
403
|
instanceRight: {
|
|
404
404
|
alignItems: 'flex-end'
|
|
@@ -406,12 +406,12 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
406
406
|
keyCount: {
|
|
407
407
|
fontSize: 16,
|
|
408
408
|
fontWeight: '600',
|
|
409
|
-
color: _sharedUi.
|
|
409
|
+
color: _sharedUi.night.color.text,
|
|
410
410
|
fontFamily: 'monospace'
|
|
411
411
|
},
|
|
412
412
|
keyCountLabel: {
|
|
413
413
|
fontSize: 9,
|
|
414
|
-
color: _sharedUi.
|
|
414
|
+
color: _sharedUi.night.color.textTertiary,
|
|
415
415
|
textTransform: "uppercase",
|
|
416
416
|
letterSpacing: 0.5
|
|
417
417
|
}
|
|
@@ -88,7 +88,7 @@ function SelectionActionBar({
|
|
|
88
88
|
onPress: allSelected ? onClearSelection : onSelectAll,
|
|
89
89
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.CheckSquare, {
|
|
90
90
|
size: 14,
|
|
91
|
-
color: allSelected ? _sharedUi.
|
|
91
|
+
color: allSelected ? _sharedUi.night.color.accent : _sharedUi.night.color.textSecondary
|
|
92
92
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
93
93
|
style: styles.selectAllText,
|
|
94
94
|
children: allSelected ? "Deselect All" : "Select All"
|
|
@@ -107,7 +107,7 @@ function SelectionActionBar({
|
|
|
107
107
|
size: 14,
|
|
108
108
|
buttonStyle: styles.actionButton,
|
|
109
109
|
colors: {
|
|
110
|
-
idle: _sharedUi.
|
|
110
|
+
idle: _sharedUi.night.color.accent,
|
|
111
111
|
success: _sharedUi.macOSColors.semantic.success,
|
|
112
112
|
error: _sharedUi.macOSColors.semantic.error
|
|
113
113
|
}
|
|
@@ -116,14 +116,14 @@ function SelectionActionBar({
|
|
|
116
116
|
onPress: handleHideSelected,
|
|
117
117
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.EyeOff, {
|
|
118
118
|
size: 14,
|
|
119
|
-
color: _sharedUi.
|
|
119
|
+
color: _sharedUi.night.color.warning
|
|
120
120
|
})
|
|
121
121
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
122
122
|
style: styles.actionButton,
|
|
123
123
|
onPress: handleDeleteSelected,
|
|
124
124
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Trash2, {
|
|
125
125
|
size: 14,
|
|
126
|
-
color: _sharedUi.
|
|
126
|
+
color: _sharedUi.night.color.danger
|
|
127
127
|
})
|
|
128
128
|
})]
|
|
129
129
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.ProUpgradeModal, {
|
|
@@ -138,10 +138,10 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
138
138
|
flexDirection: "row",
|
|
139
139
|
alignItems: "center",
|
|
140
140
|
justifyContent: "space-between",
|
|
141
|
-
backgroundColor: _sharedUi.
|
|
141
|
+
backgroundColor: _sharedUi.night.color.accentSoft,
|
|
142
142
|
borderRadius: 8,
|
|
143
143
|
borderWidth: 1,
|
|
144
|
-
borderColor: _sharedUi.
|
|
144
|
+
borderColor: _sharedUi.night.color.accentBorderStrong,
|
|
145
145
|
paddingHorizontal: 12,
|
|
146
146
|
paddingVertical: 8,
|
|
147
147
|
marginBottom: 10
|
|
@@ -157,18 +157,18 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
157
157
|
gap: 6,
|
|
158
158
|
paddingVertical: 4,
|
|
159
159
|
paddingHorizontal: 8,
|
|
160
|
-
backgroundColor: _sharedUi.
|
|
160
|
+
backgroundColor: _sharedUi.night.color.surface,
|
|
161
161
|
borderRadius: 6,
|
|
162
162
|
borderWidth: 1,
|
|
163
|
-
borderColor: _sharedUi.
|
|
163
|
+
borderColor: _sharedUi.night.color.border
|
|
164
164
|
},
|
|
165
165
|
selectAllText: {
|
|
166
166
|
fontSize: 11,
|
|
167
167
|
fontWeight: "600",
|
|
168
|
-
color: _sharedUi.
|
|
168
|
+
color: _sharedUi.night.color.textSecondary
|
|
169
169
|
},
|
|
170
170
|
countBadge: {
|
|
171
|
-
backgroundColor: _sharedUi.
|
|
171
|
+
backgroundColor: _sharedUi.night.color.accentFill,
|
|
172
172
|
paddingHorizontal: 8,
|
|
173
173
|
paddingVertical: 4,
|
|
174
174
|
borderRadius: 6
|
|
@@ -176,7 +176,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
176
176
|
countText: {
|
|
177
177
|
fontSize: 11,
|
|
178
178
|
fontWeight: "700",
|
|
179
|
-
color: _sharedUi.
|
|
179
|
+
color: _sharedUi.night.color.accent,
|
|
180
180
|
fontFamily: "monospace"
|
|
181
181
|
},
|
|
182
182
|
actionsSection: {
|
|
@@ -190,8 +190,8 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
190
190
|
alignItems: "center",
|
|
191
191
|
justifyContent: "center",
|
|
192
192
|
borderRadius: 6,
|
|
193
|
-
backgroundColor: _sharedUi.
|
|
193
|
+
backgroundColor: _sharedUi.night.color.surface,
|
|
194
194
|
borderWidth: 1,
|
|
195
|
-
borderColor: _sharedUi.
|
|
195
|
+
borderColor: _sharedUi.night.color.border
|
|
196
196
|
}
|
|
197
197
|
});
|
|
@@ -138,21 +138,21 @@ function StorageActionButtons({
|
|
|
138
138
|
style: styles.selectModeActiveContainer,
|
|
139
139
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.X, {
|
|
140
140
|
size: 14,
|
|
141
|
-
color: _sharedUi.
|
|
141
|
+
color: _sharedUi.night.color.accent
|
|
142
142
|
}), selectedCount > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
143
143
|
style: styles.selectedCountText,
|
|
144
144
|
children: selectedCount
|
|
145
145
|
})]
|
|
146
146
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.SquareDashed, {
|
|
147
147
|
size: 16,
|
|
148
|
-
color: _sharedUi.
|
|
148
|
+
color: _sharedUi.night.color.textSecondary
|
|
149
149
|
})
|
|
150
150
|
}), !isSelectMode && /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.CopyButton, {
|
|
151
151
|
value: copyValue,
|
|
152
152
|
size: 16,
|
|
153
153
|
buttonStyle: styles.actionButton,
|
|
154
154
|
colors: {
|
|
155
|
-
idle: _sharedUi.
|
|
155
|
+
idle: _sharedUi.night.color.textSecondary,
|
|
156
156
|
success: _sharedUi.macOSColors.semantic.success,
|
|
157
157
|
error: _sharedUi.macOSColors.semantic.error
|
|
158
158
|
}
|
|
@@ -161,28 +161,28 @@ function StorageActionButtons({
|
|
|
161
161
|
style: styles.actionButton,
|
|
162
162
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Trash2, {
|
|
163
163
|
size: 16,
|
|
164
|
-
color: _sharedUi.
|
|
164
|
+
color: _sharedUi.night.color.danger
|
|
165
165
|
})
|
|
166
166
|
}), !isSelectMode && showClearAsync && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
167
167
|
onPress: handleClearAsyncStorage,
|
|
168
168
|
style: styles.actionButton,
|
|
169
169
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Trash2, {
|
|
170
170
|
size: 16,
|
|
171
|
-
color: _sharedUi.
|
|
171
|
+
color: _sharedUi.night.color.danger
|
|
172
172
|
})
|
|
173
173
|
}), !isSelectMode && showClearAllMMKV && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
174
174
|
onPress: handleClearAllMMKV,
|
|
175
175
|
style: styles.actionButton,
|
|
176
176
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Trash2, {
|
|
177
177
|
size: 16,
|
|
178
|
-
color: _sharedUi.
|
|
178
|
+
color: _sharedUi.night.color.danger
|
|
179
179
|
})
|
|
180
180
|
}), !isSelectMode && showClearMMKVIndividual && mmkvInstances.length === 1 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
181
181
|
onPress: () => handleClearMMKV(mmkvInstances[0].id, mmkvInstances[0].id),
|
|
182
182
|
style: styles.actionButton,
|
|
183
183
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Trash2, {
|
|
184
184
|
size: 16,
|
|
185
|
-
color: _sharedUi.
|
|
185
|
+
color: _sharedUi.night.color.danger
|
|
186
186
|
})
|
|
187
187
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.ProUpgradeModal, {
|
|
188
188
|
visible: showUpgradeModal,
|
|
@@ -203,13 +203,13 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
203
203
|
alignItems: "center",
|
|
204
204
|
justifyContent: "center",
|
|
205
205
|
borderRadius: 6,
|
|
206
|
-
backgroundColor: _sharedUi.
|
|
206
|
+
backgroundColor: _sharedUi.night.color.buttonSurface,
|
|
207
207
|
borderWidth: 1,
|
|
208
|
-
borderColor: _sharedUi.
|
|
208
|
+
borderColor: _sharedUi.night.color.border
|
|
209
209
|
},
|
|
210
210
|
actionButtonActive: {
|
|
211
|
-
backgroundColor: _sharedUi.
|
|
212
|
-
borderColor: _sharedUi.
|
|
211
|
+
backgroundColor: _sharedUi.night.color.accentSoft,
|
|
212
|
+
borderColor: _sharedUi.night.color.accentBorderStrong
|
|
213
213
|
},
|
|
214
214
|
selectModeActiveContainer: {
|
|
215
215
|
flexDirection: "row",
|
|
@@ -219,7 +219,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
219
219
|
selectedCountText: {
|
|
220
220
|
fontSize: 10,
|
|
221
221
|
fontWeight: "700",
|
|
222
|
-
color: _sharedUi.
|
|
222
|
+
color: _sharedUi.night.color.accent,
|
|
223
223
|
fontFamily: "monospace"
|
|
224
224
|
}
|
|
225
225
|
});
|
|
@@ -17,22 +17,22 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
17
17
|
// Button color configurations matching Redux/React Query pattern
|
|
18
18
|
const buttonConfigs = {
|
|
19
19
|
copy: {
|
|
20
|
-
color: _sharedUi.
|
|
21
|
-
backgroundColor: _sharedUi.
|
|
22
|
-
borderColor: _sharedUi.
|
|
23
|
-
textColor: _sharedUi.
|
|
20
|
+
color: _sharedUi.night.color.accent,
|
|
21
|
+
backgroundColor: _sharedUi.night.color.accentSoft,
|
|
22
|
+
borderColor: _sharedUi.night.color.accentBorderStrong,
|
|
23
|
+
textColor: _sharedUi.night.color.accent
|
|
24
24
|
},
|
|
25
25
|
jump: {
|
|
26
|
-
color: _sharedUi.
|
|
27
|
-
backgroundColor: _sharedUi.
|
|
28
|
-
borderColor: _sharedUi.
|
|
29
|
-
textColor: _sharedUi.
|
|
26
|
+
color: _sharedUi.night.color.warning,
|
|
27
|
+
backgroundColor: _sharedUi.night.color.warningSoft,
|
|
28
|
+
borderColor: _sharedUi.night.color.warning + "40",
|
|
29
|
+
textColor: _sharedUi.night.color.warning
|
|
30
30
|
},
|
|
31
31
|
undo: {
|
|
32
|
-
color: _sharedUi.
|
|
33
|
-
backgroundColor: _sharedUi.
|
|
34
|
-
borderColor: _sharedUi.
|
|
35
|
-
textColor: _sharedUi.
|
|
32
|
+
color: _sharedUi.night.color.info,
|
|
33
|
+
backgroundColor: _sharedUi.night.color.infoSoft,
|
|
34
|
+
borderColor: _sharedUi.night.color.info + "40",
|
|
35
|
+
textColor: _sharedUi.night.color.info
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
function StorageEventActionButton({
|
|
@@ -48,8 +48,8 @@ function StorageEventActionButton({
|
|
|
48
48
|
disabled: isDisabledOrLocked,
|
|
49
49
|
onPress: onPress,
|
|
50
50
|
style: [styles.button, {
|
|
51
|
-
backgroundColor: isDisabledOrLocked ? _sharedUi.
|
|
52
|
-
borderColor: isDisabledOrLocked ? _sharedUi.
|
|
51
|
+
backgroundColor: isDisabledOrLocked ? _sharedUi.night.color.fill : config.backgroundColor,
|
|
52
|
+
borderColor: isDisabledOrLocked ? _sharedUi.night.color.fillTertiary : config.borderColor,
|
|
53
53
|
opacity: disabled ? 0.5 : 1
|
|
54
54
|
}],
|
|
55
55
|
activeOpacity: 0.7,
|
|
@@ -60,15 +60,15 @@ function StorageEventActionButton({
|
|
|
60
60
|
},
|
|
61
61
|
children: [locked ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Lock, {
|
|
62
62
|
size: 10,
|
|
63
|
-
color: _sharedUi.
|
|
63
|
+
color: _sharedUi.night.color.textTertiary,
|
|
64
64
|
style: styles.lockIcon
|
|
65
65
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
66
66
|
style: [styles.dot, {
|
|
67
|
-
backgroundColor: isDisabledOrLocked ? _sharedUi.
|
|
67
|
+
backgroundColor: isDisabledOrLocked ? _sharedUi.night.color.textTertiary : config.color
|
|
68
68
|
}]
|
|
69
69
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
70
70
|
style: [styles.text, {
|
|
71
|
-
color: isDisabledOrLocked ? _sharedUi.
|
|
71
|
+
color: isDisabledOrLocked ? _sharedUi.night.color.textTertiary : config.textColor
|
|
72
72
|
}],
|
|
73
73
|
children: text
|
|
74
74
|
})]
|
|
@@ -98,7 +98,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
98
98
|
height: 5,
|
|
99
99
|
borderRadius: 3,
|
|
100
100
|
marginRight: 6,
|
|
101
|
-
shadowColor: _sharedUi.
|
|
101
|
+
shadowColor: _sharedUi.night.color.text,
|
|
102
102
|
shadowOffset: {
|
|
103
103
|
width: 0,
|
|
104
104
|
height: 0
|
|
@@ -210,11 +210,11 @@ function StorageEventDetailContent({
|
|
|
210
210
|
relativeTime: ORIGIN_LABELS[originKind].relativeTime,
|
|
211
211
|
badge: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
212
212
|
style: [styles.actionBadgeSmall, {
|
|
213
|
-
backgroundColor: `${_sharedUi.
|
|
213
|
+
backgroundColor: `${_sharedUi.night.color.textTertiary}20`
|
|
214
214
|
}],
|
|
215
215
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
216
216
|
style: [styles.actionTextSmall, {
|
|
217
|
-
color: _sharedUi.
|
|
217
|
+
color: _sharedUi.night.color.textTertiary
|
|
218
218
|
}],
|
|
219
219
|
children: ORIGIN_LABELS[originKind].badge
|
|
220
220
|
})
|
|
@@ -462,21 +462,21 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
462
462
|
gap: 8,
|
|
463
463
|
paddingHorizontal: 12,
|
|
464
464
|
paddingVertical: 10,
|
|
465
|
-
backgroundColor: _sharedUi.
|
|
465
|
+
backgroundColor: _sharedUi.night.color.surface,
|
|
466
466
|
borderBottomWidth: 1,
|
|
467
|
-
borderBottomColor: _sharedUi.
|
|
467
|
+
borderBottomColor: _sharedUi.night.color.border
|
|
468
468
|
},
|
|
469
469
|
// Content Card
|
|
470
470
|
valueBox: {
|
|
471
|
-
backgroundColor: _sharedUi.
|
|
471
|
+
backgroundColor: _sharedUi.night.color.bg,
|
|
472
472
|
borderRadius: 6,
|
|
473
473
|
borderWidth: 1,
|
|
474
|
-
borderColor: _sharedUi.
|
|
474
|
+
borderColor: _sharedUi.night.color.border,
|
|
475
475
|
padding: 8
|
|
476
476
|
},
|
|
477
477
|
valueText: {
|
|
478
478
|
fontSize: 12,
|
|
479
|
-
color: _sharedUi.
|
|
479
|
+
color: _sharedUi.night.color.text,
|
|
480
480
|
fontFamily: "monospace",
|
|
481
481
|
lineHeight: 18
|
|
482
482
|
},
|
|
@@ -55,7 +55,7 @@ function StorageEventFilterView({
|
|
|
55
55
|
onPress: () => onToggleStorageType('async'),
|
|
56
56
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Database, {
|
|
57
57
|
size: 16,
|
|
58
|
-
color: enabledStorageTypes.has('async') ? _sharedUi.macOSColors.semantic.warning : _sharedUi.
|
|
58
|
+
color: enabledStorageTypes.has('async') ? _sharedUi.macOSColors.semantic.warning : _sharedUi.night.color.textTertiary
|
|
59
59
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
60
60
|
style: [styles.storageTypeButtonText, enabledStorageTypes.has('async') && {
|
|
61
61
|
color: _sharedUi.macOSColors.semantic.warning
|
|
@@ -69,7 +69,7 @@ function StorageEventFilterView({
|
|
|
69
69
|
onPress: () => onToggleStorageType('mmkv'),
|
|
70
70
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.HardDrive, {
|
|
71
71
|
size: 16,
|
|
72
|
-
color: enabledStorageTypes.has('mmkv') ? _sharedUi.macOSColors.semantic.info : _sharedUi.
|
|
72
|
+
color: enabledStorageTypes.has('mmkv') ? _sharedUi.macOSColors.semantic.info : _sharedUi.night.color.textTertiary
|
|
73
73
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
74
74
|
style: [styles.storageTypeButtonText, enabledStorageTypes.has('mmkv') && {
|
|
75
75
|
color: _sharedUi.macOSColors.semantic.info
|
|
@@ -83,7 +83,7 @@ function StorageEventFilterView({
|
|
|
83
83
|
onPress: () => onToggleStorageType('secure'),
|
|
84
84
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Shield, {
|
|
85
85
|
size: 16,
|
|
86
|
-
color: enabledStorageTypes.has('secure') ? _sharedUi.macOSColors.semantic.success : _sharedUi.
|
|
86
|
+
color: enabledStorageTypes.has('secure') ? _sharedUi.macOSColors.semantic.success : _sharedUi.night.color.textTertiary
|
|
87
87
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
88
88
|
style: [styles.storageTypeButtonText, enabledStorageTypes.has('secure') && {
|
|
89
89
|
color: _sharedUi.macOSColors.semantic.success
|
|
@@ -104,12 +104,12 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
104
104
|
storageTypeSection: {
|
|
105
105
|
padding: 16,
|
|
106
106
|
borderBottomWidth: 1,
|
|
107
|
-
borderBottomColor: _sharedUi.
|
|
107
|
+
borderBottomColor: _sharedUi.night.color.border
|
|
108
108
|
},
|
|
109
109
|
sectionTitle: {
|
|
110
110
|
fontSize: 11,
|
|
111
111
|
fontWeight: '700',
|
|
112
|
-
color: _sharedUi.
|
|
112
|
+
color: _sharedUi.night.color.textSecondary,
|
|
113
113
|
letterSpacing: 0.8,
|
|
114
114
|
marginBottom: 12
|
|
115
115
|
},
|
|
@@ -125,17 +125,17 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
125
125
|
gap: 6,
|
|
126
126
|
paddingVertical: 10,
|
|
127
127
|
paddingHorizontal: 12,
|
|
128
|
-
backgroundColor: _sharedUi.
|
|
128
|
+
backgroundColor: _sharedUi.night.color.surfaceElevated,
|
|
129
129
|
borderRadius: 8,
|
|
130
130
|
borderWidth: 1,
|
|
131
|
-
borderColor: _sharedUi.
|
|
131
|
+
borderColor: _sharedUi.night.color.border
|
|
132
132
|
},
|
|
133
133
|
storageTypeButtonActive: {
|
|
134
|
-
backgroundColor: _sharedUi.
|
|
134
|
+
backgroundColor: _sharedUi.night.color.surface
|
|
135
135
|
},
|
|
136
136
|
storageTypeButtonText: {
|
|
137
137
|
fontSize: 11,
|
|
138
138
|
fontWeight: '600',
|
|
139
|
-
color: _sharedUi.
|
|
139
|
+
color: _sharedUi.night.color.textTertiary
|
|
140
140
|
}
|
|
141
141
|
});
|