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