@dloizides/ui-feedback 1.19.0 → 1.19.2
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/dist/index.js +16 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -155,6 +155,7 @@ var MONO_FONT = reactNative.Platform.select({
|
|
|
155
155
|
});
|
|
156
156
|
var styles = reactNative.StyleSheet.create({
|
|
157
157
|
row: { flexDirection: "row", flexWrap: "wrap", alignItems: "center", columnGap: ROW_GAP },
|
|
158
|
+
idLine: { flexDirection: "row", alignItems: "center", columnGap: ROW_GAP },
|
|
158
159
|
label: { fontSize: REFERENCE_FONT_SIZE },
|
|
159
160
|
id: { fontSize: REFERENCE_FONT_SIZE, fontFamily: MONO_FONT },
|
|
160
161
|
copy: {
|
|
@@ -178,19 +179,21 @@ var Reference = ({ traceId, color, actionColor, testID, style }) => {
|
|
|
178
179
|
const copyLabel = t(STATUS_KEY[status]);
|
|
179
180
|
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles.row, style], testID, children: [
|
|
180
181
|
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles.label, { color }], children: t("common.errorReference") }),
|
|
181
|
-
/* @__PURE__ */ jsxRuntime.
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
182
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles.idLine, children: [
|
|
183
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { selectable: true, style: [styles.id, { color }], testID: `${testID}-id`, children: traceId }),
|
|
184
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
185
|
+
reactNative.TouchableOpacity,
|
|
186
|
+
{
|
|
187
|
+
accessibilityHint: t("common.copyHint"),
|
|
188
|
+
accessibilityLabel: copyLabel,
|
|
189
|
+
accessibilityRole: "button",
|
|
190
|
+
style: styles.copy,
|
|
191
|
+
testID: `${testID}-copy`,
|
|
192
|
+
onPress: copy,
|
|
193
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles.copyText, { color: actionColor }], children: copyLabel })
|
|
194
|
+
}
|
|
195
|
+
)
|
|
196
|
+
] })
|
|
194
197
|
] });
|
|
195
198
|
};
|
|
196
199
|
var ErrorReferenceRow = (props) => props.traceId === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(Reference, { ...props, traceId: props.traceId });
|