@wlloyalty/wll-react-sdk 1.6.18 → 1.6.20
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 +4 -1
- package/dist/native.js.map +1 -1
- package/dist/web.js +6 -5
- package/dist/web.js.map +1 -1
- package/package.json +1 -1
package/dist/native.js
CHANGED
|
@@ -3361,6 +3361,7 @@ var BadgeTileDateEarned = function () {
|
|
|
3361
3361
|
var BadgeTileDescription = function () {
|
|
3362
3362
|
var tileContext = useTileContext();
|
|
3363
3363
|
var width = reactNative.useWindowDimensions().width;
|
|
3364
|
+
var theme = useWllSdk().theme;
|
|
3364
3365
|
if (!isContextValid(tileContext))
|
|
3365
3366
|
return null;
|
|
3366
3367
|
var _a = tileContext.configuration, count = _a.count, description = _a.description, type = _a.type;
|
|
@@ -3382,6 +3383,7 @@ var BadgeTileDescription = function () {
|
|
|
3382
3383
|
return (jsxRuntimeExports.jsx(reactNative.View, { accessible: true, accessibilityLabel: "Badge description: ".concat(description), testID: "badge-tile-description", style: {
|
|
3383
3384
|
width: '100%',
|
|
3384
3385
|
overflow: 'hidden',
|
|
3386
|
+
paddingBottom: theme.sizes.xxs,
|
|
3385
3387
|
}, children: jsxRuntimeExports.jsx(Text, { variant: "body", numberOfLines: numberOfLines, ellipsizeMode: "tail", accessibilityElementsHidden: true, importantForAccessibility: "no-hide-descendants", children: description }) }));
|
|
3386
3388
|
};
|
|
3387
3389
|
|
|
@@ -3811,7 +3813,8 @@ var ContentTileRoot = function (_a) {
|
|
|
3811
3813
|
var configuration = tile.configuration;
|
|
3812
3814
|
var hasArtwork = Boolean(configuration.artworkUrl);
|
|
3813
3815
|
var styles = useContentTileStyles(hasArtwork);
|
|
3814
|
-
return (jsxRuntimeExports.jsxs(BaseTile, { tile: tile, children: [jsxRuntimeExports.jsx(ContentTile.Media, { isArtworkOnly: isArtworkOnly$1(configuration) }), !isArtworkOnly$1(configuration) && (jsxRuntimeExports.jsxs(Layout, { justify: hasArtwork ? 'start' : 'center', style:
|
|
3816
|
+
return (jsxRuntimeExports.jsxs(BaseTile, { tile: tile, children: [jsxRuntimeExports.jsx(ContentTile.Media, { isArtworkOnly: isArtworkOnly$1(configuration) }), !isArtworkOnly$1(configuration) && (jsxRuntimeExports.jsxs(Layout, { justify: hasArtwork ? 'start' : 'center', style: __assign({}, (!hasArtwork &&
|
|
3817
|
+
tile.tileHeight === exports.TileHeight.Full && { aspectRatio: 1 })), children: [jsxRuntimeExports.jsxs(Row, { justify: "between", align: "center", style: styles.header, children: [jsxRuntimeExports.jsx(ContentTile.Title, {}), jsxRuntimeExports.jsx(ContentTile.Chevron, {})] }), jsxRuntimeExports.jsx(ContentTile.Summary, {})] }))] }));
|
|
3815
3818
|
};
|
|
3816
3819
|
/**
|
|
3817
3820
|
* The ContentTile component with subcomponents attached.
|