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