@wlloyalty/wll-react-sdk 1.6.11 → 1.6.13
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 +12 -4
- package/dist/native.js.map +1 -1
- package/dist/web.js +7 -3
- package/dist/web.js.map +1 -1
- package/package.json +1 -1
package/dist/native.js
CHANGED
|
@@ -3708,9 +3708,7 @@ var ContentTileMedia = function (_a) {
|
|
|
3708
3708
|
return null;
|
|
3709
3709
|
var hasArtwork = Boolean(artworkUrl);
|
|
3710
3710
|
var styles = useContentTileStyles(hasArtwork);
|
|
3711
|
-
var containerStyle = {
|
|
3712
|
-
flexBasis: isArtworkOnly ? '100%' : '50%',
|
|
3713
|
-
};
|
|
3711
|
+
var containerStyle = __assign({ flexBasis: isArtworkOnly ? '100%' : '50%' }, (isArtworkOnly && { aspectRatio: 1 }));
|
|
3714
3712
|
return (jsxRuntimeExports.jsx(reactNative.View, { style: [styles.imageContainer, containerStyle], testID: "content-tile-media", role: "img", accessibilityLabel: "Image for ".concat(title), children: jsxRuntimeExports.jsx(ProgressiveImage, { source: { uri: artworkUrl }, style: styles.image, alt: "Image for ".concat(title) }) }));
|
|
3715
3713
|
};
|
|
3716
3714
|
|
|
@@ -4719,7 +4717,17 @@ var Column = function (_a) {
|
|
|
4719
4717
|
*/
|
|
4720
4718
|
var FullFlex = function (_a) {
|
|
4721
4719
|
var children = _a.children, style = _a.style, rest = __rest(_a, ["children", "style"]);
|
|
4722
|
-
|
|
4720
|
+
var isRTL = IS_WEB &&
|
|
4721
|
+
typeof document !== 'undefined' &&
|
|
4722
|
+
document.documentElement.dir === 'rtl';
|
|
4723
|
+
return (jsxRuntimeExports.jsx(reactNative.View, __assign({ style: [
|
|
4724
|
+
{
|
|
4725
|
+
flex: 1,
|
|
4726
|
+
// If the language is Arabic (RTL), use 'rtl', otherwise 'ltr'.
|
|
4727
|
+
direction: isRTL ? 'rtl' : 'ltr',
|
|
4728
|
+
},
|
|
4729
|
+
style,
|
|
4730
|
+
] }, rest, { children: children })));
|
|
4723
4731
|
};
|
|
4724
4732
|
|
|
4725
4733
|
/**
|