@buoy-gg/debug-borders 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.
|
@@ -97,7 +97,7 @@ function DebugBordersModal({
|
|
|
97
97
|
accessibilityHint: "Tap to toggle debug borders",
|
|
98
98
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.Layers, {
|
|
99
99
|
size: 40,
|
|
100
|
-
color: enabled ? _sharedUi.
|
|
100
|
+
color: enabled ? _sharedUi.night.color.accent : _sharedUi.night.color.textSecondary
|
|
101
101
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
102
102
|
style: [styles.buttonText, enabled && styles.buttonTextActive],
|
|
103
103
|
children: enabled ? "Disable Borders" : "Enable Borders"
|
|
@@ -131,7 +131,9 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
131
131
|
backgroundColor: "rgba(0, 0, 0, 0.5)"
|
|
132
132
|
},
|
|
133
133
|
content: {
|
|
134
|
-
backgroundColor: _sharedUi.
|
|
134
|
+
backgroundColor: _sharedUi.night.color.surface,
|
|
135
|
+
borderWidth: 1,
|
|
136
|
+
borderColor: _sharedUi.night.color.border,
|
|
135
137
|
borderRadius: 16,
|
|
136
138
|
padding: 32,
|
|
137
139
|
width: "85%",
|
|
@@ -141,12 +143,12 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
141
143
|
title: {
|
|
142
144
|
fontSize: 24,
|
|
143
145
|
fontWeight: "700",
|
|
144
|
-
color: _sharedUi.
|
|
146
|
+
color: _sharedUi.night.color.text,
|
|
145
147
|
marginBottom: 8
|
|
146
148
|
},
|
|
147
149
|
description: {
|
|
148
150
|
fontSize: 14,
|
|
149
|
-
color: _sharedUi.
|
|
151
|
+
color: _sharedUi.night.color.textSecondary,
|
|
150
152
|
textAlign: "center",
|
|
151
153
|
marginBottom: 24
|
|
152
154
|
},
|
|
@@ -158,7 +160,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
158
160
|
},
|
|
159
161
|
statusLabel: {
|
|
160
162
|
fontSize: 14,
|
|
161
|
-
color: _sharedUi.
|
|
163
|
+
color: _sharedUi.night.color.textSecondary,
|
|
162
164
|
fontWeight: "600"
|
|
163
165
|
},
|
|
164
166
|
statsRow: {
|
|
@@ -169,12 +171,12 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
169
171
|
},
|
|
170
172
|
statsLabel: {
|
|
171
173
|
fontSize: 14,
|
|
172
|
-
color: _sharedUi.
|
|
174
|
+
color: _sharedUi.night.color.textSecondary,
|
|
173
175
|
fontWeight: "600"
|
|
174
176
|
},
|
|
175
177
|
statsValue: {
|
|
176
178
|
fontSize: 16,
|
|
177
|
-
color: _sharedUi.
|
|
179
|
+
color: _sharedUi.night.color.text,
|
|
178
180
|
fontWeight: "700"
|
|
179
181
|
},
|
|
180
182
|
toggleContainer: {
|
|
@@ -187,28 +189,28 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
187
189
|
justifyContent: "center",
|
|
188
190
|
padding: 24,
|
|
189
191
|
borderRadius: 16,
|
|
190
|
-
backgroundColor: _sharedUi.
|
|
192
|
+
backgroundColor: _sharedUi.night.color.surfaceElevated,
|
|
191
193
|
borderWidth: 2,
|
|
192
|
-
borderColor: _sharedUi.
|
|
194
|
+
borderColor: _sharedUi.night.color.border,
|
|
193
195
|
minWidth: 200
|
|
194
196
|
},
|
|
195
197
|
buttonActive: {
|
|
196
|
-
borderColor: _sharedUi.
|
|
197
|
-
backgroundColor:
|
|
198
|
+
borderColor: _sharedUi.night.color.accentBorderStrong,
|
|
199
|
+
backgroundColor: _sharedUi.night.color.accentSoft
|
|
198
200
|
},
|
|
199
201
|
buttonText: {
|
|
200
202
|
marginTop: 12,
|
|
201
203
|
fontSize: 16,
|
|
202
204
|
fontWeight: "600",
|
|
203
|
-
color: _sharedUi.
|
|
205
|
+
color: _sharedUi.night.color.textSecondary
|
|
204
206
|
},
|
|
205
207
|
buttonTextActive: {
|
|
206
|
-
color: _sharedUi.
|
|
208
|
+
color: _sharedUi.night.color.accent
|
|
207
209
|
},
|
|
208
210
|
infoBox: {
|
|
209
211
|
flexDirection: "row",
|
|
210
212
|
alignItems: "flex-start",
|
|
211
|
-
backgroundColor: _sharedUi.
|
|
213
|
+
backgroundColor: _sharedUi.night.color.surfaceElevated,
|
|
212
214
|
padding: 12,
|
|
213
215
|
borderRadius: 8,
|
|
214
216
|
marginBottom: 24,
|
|
@@ -217,17 +219,17 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
217
219
|
infoText: {
|
|
218
220
|
flex: 1,
|
|
219
221
|
fontSize: 12,
|
|
220
|
-
color: _sharedUi.
|
|
222
|
+
color: _sharedUi.night.color.textSecondary,
|
|
221
223
|
lineHeight: 16
|
|
222
224
|
},
|
|
223
225
|
closeButton: {
|
|
224
226
|
paddingVertical: 12,
|
|
225
227
|
paddingHorizontal: 32,
|
|
226
|
-
backgroundColor: _sharedUi.
|
|
228
|
+
backgroundColor: _sharedUi.night.color.accent,
|
|
227
229
|
borderRadius: 8
|
|
228
230
|
},
|
|
229
231
|
closeButtonText: {
|
|
230
|
-
color: _sharedUi.
|
|
232
|
+
color: _sharedUi.night.color.onAccent,
|
|
231
233
|
fontSize: 16,
|
|
232
234
|
fontWeight: "600"
|
|
233
235
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import React, { useEffect, useState } from "react";
|
|
4
4
|
import { View, Text, StyleSheet, TouchableOpacity } from "react-native";
|
|
5
|
-
import {
|
|
5
|
+
import { night, Layers, StatusBadge, StatusIndicator } from "@buoy-gg/shared-ui";
|
|
6
6
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
7
|
const DebugBordersManager = require("../utils/DebugBordersManager");
|
|
8
8
|
|
|
@@ -92,7 +92,7 @@ export function DebugBordersModal({
|
|
|
92
92
|
accessibilityHint: "Tap to toggle debug borders",
|
|
93
93
|
children: [/*#__PURE__*/_jsx(Layers, {
|
|
94
94
|
size: 40,
|
|
95
|
-
color: enabled ?
|
|
95
|
+
color: enabled ? night.color.accent : night.color.textSecondary
|
|
96
96
|
}), /*#__PURE__*/_jsx(Text, {
|
|
97
97
|
style: [styles.buttonText, enabled && styles.buttonTextActive],
|
|
98
98
|
children: enabled ? "Disable Borders" : "Enable Borders"
|
|
@@ -126,7 +126,9 @@ const styles = StyleSheet.create({
|
|
|
126
126
|
backgroundColor: "rgba(0, 0, 0, 0.5)"
|
|
127
127
|
},
|
|
128
128
|
content: {
|
|
129
|
-
backgroundColor:
|
|
129
|
+
backgroundColor: night.color.surface,
|
|
130
|
+
borderWidth: 1,
|
|
131
|
+
borderColor: night.color.border,
|
|
130
132
|
borderRadius: 16,
|
|
131
133
|
padding: 32,
|
|
132
134
|
width: "85%",
|
|
@@ -136,12 +138,12 @@ const styles = StyleSheet.create({
|
|
|
136
138
|
title: {
|
|
137
139
|
fontSize: 24,
|
|
138
140
|
fontWeight: "700",
|
|
139
|
-
color:
|
|
141
|
+
color: night.color.text,
|
|
140
142
|
marginBottom: 8
|
|
141
143
|
},
|
|
142
144
|
description: {
|
|
143
145
|
fontSize: 14,
|
|
144
|
-
color:
|
|
146
|
+
color: night.color.textSecondary,
|
|
145
147
|
textAlign: "center",
|
|
146
148
|
marginBottom: 24
|
|
147
149
|
},
|
|
@@ -153,7 +155,7 @@ const styles = StyleSheet.create({
|
|
|
153
155
|
},
|
|
154
156
|
statusLabel: {
|
|
155
157
|
fontSize: 14,
|
|
156
|
-
color:
|
|
158
|
+
color: night.color.textSecondary,
|
|
157
159
|
fontWeight: "600"
|
|
158
160
|
},
|
|
159
161
|
statsRow: {
|
|
@@ -164,12 +166,12 @@ const styles = StyleSheet.create({
|
|
|
164
166
|
},
|
|
165
167
|
statsLabel: {
|
|
166
168
|
fontSize: 14,
|
|
167
|
-
color:
|
|
169
|
+
color: night.color.textSecondary,
|
|
168
170
|
fontWeight: "600"
|
|
169
171
|
},
|
|
170
172
|
statsValue: {
|
|
171
173
|
fontSize: 16,
|
|
172
|
-
color:
|
|
174
|
+
color: night.color.text,
|
|
173
175
|
fontWeight: "700"
|
|
174
176
|
},
|
|
175
177
|
toggleContainer: {
|
|
@@ -182,28 +184,28 @@ const styles = StyleSheet.create({
|
|
|
182
184
|
justifyContent: "center",
|
|
183
185
|
padding: 24,
|
|
184
186
|
borderRadius: 16,
|
|
185
|
-
backgroundColor:
|
|
187
|
+
backgroundColor: night.color.surfaceElevated,
|
|
186
188
|
borderWidth: 2,
|
|
187
|
-
borderColor:
|
|
189
|
+
borderColor: night.color.border,
|
|
188
190
|
minWidth: 200
|
|
189
191
|
},
|
|
190
192
|
buttonActive: {
|
|
191
|
-
borderColor:
|
|
192
|
-
backgroundColor:
|
|
193
|
+
borderColor: night.color.accentBorderStrong,
|
|
194
|
+
backgroundColor: night.color.accentSoft
|
|
193
195
|
},
|
|
194
196
|
buttonText: {
|
|
195
197
|
marginTop: 12,
|
|
196
198
|
fontSize: 16,
|
|
197
199
|
fontWeight: "600",
|
|
198
|
-
color:
|
|
200
|
+
color: night.color.textSecondary
|
|
199
201
|
},
|
|
200
202
|
buttonTextActive: {
|
|
201
|
-
color:
|
|
203
|
+
color: night.color.accent
|
|
202
204
|
},
|
|
203
205
|
infoBox: {
|
|
204
206
|
flexDirection: "row",
|
|
205
207
|
alignItems: "flex-start",
|
|
206
|
-
backgroundColor:
|
|
208
|
+
backgroundColor: night.color.surfaceElevated,
|
|
207
209
|
padding: 12,
|
|
208
210
|
borderRadius: 8,
|
|
209
211
|
marginBottom: 24,
|
|
@@ -212,17 +214,17 @@ const styles = StyleSheet.create({
|
|
|
212
214
|
infoText: {
|
|
213
215
|
flex: 1,
|
|
214
216
|
fontSize: 12,
|
|
215
|
-
color:
|
|
217
|
+
color: night.color.textSecondary,
|
|
216
218
|
lineHeight: 16
|
|
217
219
|
},
|
|
218
220
|
closeButton: {
|
|
219
221
|
paddingVertical: 12,
|
|
220
222
|
paddingHorizontal: 32,
|
|
221
|
-
backgroundColor:
|
|
223
|
+
backgroundColor: night.color.accent,
|
|
222
224
|
borderRadius: 8
|
|
223
225
|
},
|
|
224
226
|
closeButtonText: {
|
|
225
|
-
color:
|
|
227
|
+
color: night.color.onAccent,
|
|
226
228
|
fontSize: 16,
|
|
227
229
|
fontWeight: "600"
|
|
228
230
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buoy-gg/debug-borders",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.27",
|
|
4
4
|
"description": "Layout debugging borders for React Native — depth-colored, touch-through, tap any label to inspect testIDs & styles. Part of Buoy devtools.",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -26,19 +26,19 @@
|
|
|
26
26
|
],
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@buoy-gg/core": "^7.0.
|
|
30
|
-
"@buoy-gg/shared-ui": "^7.0.
|
|
29
|
+
"@buoy-gg/core": "^7.0.27",
|
|
30
|
+
"@buoy-gg/shared-ui": "^7.0.27"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"react": "*",
|
|
34
34
|
"react-native": "*",
|
|
35
|
-
"@buoy-gg/license": "7.0.
|
|
35
|
+
"@buoy-gg/license": "7.0.27"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/react": "^19.1.0",
|
|
39
39
|
"@types/react-native": "^0.73.0",
|
|
40
40
|
"typescript": "~5.8.3",
|
|
41
|
-
"@buoy-gg/license": "^7.0.
|
|
41
|
+
"@buoy-gg/license": "^7.0.27"
|
|
42
42
|
},
|
|
43
43
|
"react-native-builder-bob": {
|
|
44
44
|
"source": "src",
|