@wlloyalty/wll-react-sdk 1.6.19 → 1.7.0

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
@@ -3813,7 +3813,8 @@ var ContentTileRoot = function (_a) {
3813
3813
  var configuration = tile.configuration;
3814
3814
  var hasArtwork = Boolean(configuration.artworkUrl);
3815
3815
  var styles = useContentTileStyles(hasArtwork);
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: { paddingBottom: 0, marginBottom: 0 }, children: [jsxRuntimeExports.jsxs(Row, { justify: "between", align: "center", style: styles.header, children: [jsxRuntimeExports.jsx(ContentTile.Title, {}), jsxRuntimeExports.jsx(ContentTile.Chevron, {})] }), jsxRuntimeExports.jsx(ContentTile.Summary, {})] }))] }));
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, {})] }))] }));
3817
3818
  };
3818
3819
  /**
3819
3820
  * The ContentTile component with subcomponents attached.
@@ -5518,6 +5519,8 @@ var useVenueTileStyles = function () {
5518
5519
  return reactNative.StyleSheet.create({
5519
5520
  imageContainer: {
5520
5521
  width: '100%',
5522
+ minHeight: 130,
5523
+ overflow: 'hidden',
5521
5524
  marginBottom: useResponsiveValue(theme.sizes.sm, theme.sizes.xxs, isDesktop, isTablet),
5522
5525
  },
5523
5526
  image: {
@@ -5548,6 +5551,7 @@ var useVenueTileStyles = function () {
5548
5551
  },
5549
5552
  header: {
5550
5553
  width: '100%',
5554
+ paddingTop: theme.sizes.xxxs,
5551
5555
  marginBottom: useResponsiveValue(theme.sizes.xxs, theme.sizes.xxxs, isDesktop, isTablet),
5552
5556
  },
5553
5557
  tileTitle: __assign({ maxWidth: '90%', flex: 1 }, getDirectionalMargin(8)),
@@ -5562,29 +5566,29 @@ var useVenueTileStyles = function () {
5562
5566
  alignItems: 'center',
5563
5567
  zIndex: 10,
5564
5568
  },
5569
+ pinOverlay: {
5570
+ position: 'absolute',
5571
+ top: 8,
5572
+ right: 8,
5573
+ zIndex: 20,
5574
+ },
5565
5575
  });
5566
5576
  };
5567
5577
 
5568
5578
  /**
5569
5579
  * Renders the media for a Venue Tile.
5570
5580
  *
5571
- * @param props {VenueTileMediaProps} - Component props
5572
- * @param props.isArtworkOnly {boolean} - Whether the media should be rendered as an artwork only component
5573
5581
  * @returns React.ReactElement or null if no artwork URL is present or artwork should not be shown
5574
5582
  */
5575
- var VenueTileMedia = function (_a) {
5576
- var _b = _a.isArtworkOnly, isArtworkOnly = _b === void 0 ? false : _b;
5583
+ var VenueTileMedia = function () {
5577
5584
  var styles = useVenueTileStyles();
5578
5585
  var tileContext = useTileContext();
5579
5586
  if (!isContextValid(tileContext))
5580
5587
  return null;
5581
- var _c = tileContext.configuration, artworkUrl = _c.artworkUrl, _d = _c.name, name = _d === void 0 ? 'Venue' : _d, _e = _c.isLocked, isLocked = _e === void 0 ? false : _e;
5582
- if (!artworkUrl)
5583
- return null;
5584
- var containerStyle = {
5585
- flexBasis: isArtworkOnly ? '100%' : '50%',
5586
- };
5587
- return (jsxRuntimeExports.jsxs(reactNative.View, { style: [styles.imageContainer, containerStyle], testID: "venue-tile-media", role: "img", accessibilityLabel: "Venue image for ".concat(name), children: [jsxRuntimeExports.jsx(ProgressiveImage, { source: { uri: artworkUrl }, style: styles.image, alt: "Venue image for ".concat(name) }), isLocked && (jsxRuntimeExports.jsx(reactNative.View, { style: styles.lockOverlay, testID: "lock-overlay", children: jsxRuntimeExports.jsx(Icon, { name: "LockKeyhole", size: 48, color: "white" }) }))] }));
5588
+ var _a = tileContext.configuration, artworkUrl = _a.artworkUrl, _b = _a.name, name = _b === void 0 ? 'Venue' : _b, _c = _a.isLocked, isLocked = _c === void 0 ? false : _c;
5589
+ var containerStyle = __assign({ flexBasis: '50%' }, (tileContext.tileHeight === exports.TileHeight.Half && { minHeight: 0 }));
5590
+ var showCenteredPin = !artworkUrl && !isLocked;
5591
+ return (jsxRuntimeExports.jsxs(reactNative.View, { style: [styles.imageContainer, containerStyle], testID: "venue-tile-media", role: "img", accessibilityLabel: "Venue image for ".concat(name), children: [artworkUrl && (jsxRuntimeExports.jsx(ProgressiveImage, { source: { uri: artworkUrl }, style: styles.image, alt: "Venue image for ".concat(name) })), jsxRuntimeExports.jsxs(reactNative.View, { style: styles.lockOverlay, testID: "lock-overlay", children: [isLocked && jsxRuntimeExports.jsx(Icon, { name: "LockKeyhole", size: 48, color: "white" }), showCenteredPin ? (jsxRuntimeExports.jsx(Icon, { name: "MapPin", size: 48, color: "white" })) : (jsxRuntimeExports.jsx(reactNative.View, { style: styles.pinOverlay, testID: "pin-overlay", children: jsxRuntimeExports.jsx(Icon, { name: "MapPin", size: 24, color: "white" }) }))] })] }));
5588
5592
  };
5589
5593
 
5590
5594
  /**
@@ -5624,11 +5628,10 @@ var VenueTileTitle = function () {
5624
5628
  };
5625
5629
 
5626
5630
  /**
5627
- * The VenueTile component renders a tile with media, title, summary, points, and a chevron.
5631
+ * The VenueTile component renders a tile with media, title, description, and a chevron.
5628
5632
  *
5629
5633
  * @param {VenueTileProps} props - Component props
5630
5634
  * @param {Tile} props.tile - The tile data to render
5631
- * @returns React.ReactElement or null if tile is inactive or not a full-height tile
5632
5635
  */
5633
5636
  var VenueTileRoot = function (_a) {
5634
5637
  var tile = _a.tile;