@marktiderman/genesis-chat 0.11.2 → 0.11.3
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/native.js
CHANGED
|
@@ -293,6 +293,7 @@ var MEDIA_BACKDROP = "#000000";
|
|
|
293
293
|
var MEDIA_FRAME = "#111111";
|
|
294
294
|
var MEDIA_SCRIM = "rgba(0,0,0,0.5)";
|
|
295
295
|
var MEDIA_SCRIM_LIGHT = "rgba(0,0,0,0.35)";
|
|
296
|
+
var MEDIA_NOTICE = "rgba(40,40,40,0.92)";
|
|
296
297
|
var ON_TINT_FILL = "rgba(255,255,255,0.16)";
|
|
297
298
|
var ON_TINT_FILL_STRONG = "rgba(255,255,255,0.2)";
|
|
298
299
|
var BUILT_IN_KINDS = /* @__PURE__ */ new Set(["image", "voice", "video", "file", "link"]);
|
|
@@ -3852,7 +3853,7 @@ function ChatPhotoViewer({ photos, initialIndex = 0, onClose, testID = "chat-pho
|
|
|
3852
3853
|
canSave ? /* @__PURE__ */ jsx(ViewerButton, { icon: "download", label: copy.savePhoto, onPress: () => void run("save", item.src), disabled: busy, testID: `${testID}-save` }) : null,
|
|
3853
3854
|
canShare ? /* @__PURE__ */ jsx(ViewerButton, { icon: "share", label: copy.sharePhoto, onPress: () => void run("share", item.src), disabled: busy, testID: `${testID}-share` }) : null
|
|
3854
3855
|
] }),
|
|
3855
|
-
renderCaption: () => notice ? /* @__PURE__ */ jsx(View, { accessibilityLiveRegion: "assertive", testID: `${testID}-notice`, style: { alignSelf: "center", backgroundColor:
|
|
3856
|
+
renderCaption: () => notice ? /* @__PURE__ */ jsx(View, { accessibilityLiveRegion: "assertive", testID: `${testID}-notice`, style: { alignSelf: "center", backgroundColor: MEDIA_NOTICE, borderRadius: 14, paddingHorizontal: 16, paddingVertical: 10 }, children: /* @__PURE__ */ jsx(NativeText, { style: { color: ON_MEDIA, textAlign: "center" }, children: notice }) }) : null,
|
|
3856
3857
|
testID
|
|
3857
3858
|
}
|
|
3858
3859
|
);
|
|
@@ -3868,8 +3869,8 @@ function ViewerButton({ icon, label, onPress, disabled = false, testID }) {
|
|
|
3868
3869
|
disabled,
|
|
3869
3870
|
onPress,
|
|
3870
3871
|
hitSlop: 6,
|
|
3871
|
-
style: { width: 44, height: 44, borderRadius: 22, alignItems: "center", justifyContent: "center", backgroundColor:
|
|
3872
|
-
children: /* @__PURE__ */ jsx(NativeIcon, { name: icon, size: 22, color:
|
|
3872
|
+
style: { width: 44, height: 44, borderRadius: 22, alignItems: "center", justifyContent: "center", backgroundColor: MEDIA_SCRIM, opacity: disabled ? 0.5 : 1 },
|
|
3873
|
+
children: /* @__PURE__ */ jsx(NativeIcon, { name: icon, size: 22, color: ON_MEDIA })
|
|
3873
3874
|
}
|
|
3874
3875
|
);
|
|
3875
3876
|
}
|