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