@wlloyalty/wll-react-sdk 1.6.20 → 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
@@ -5519,6 +5519,8 @@ var useVenueTileStyles = function () {
5519
5519
  return reactNative.StyleSheet.create({
5520
5520
  imageContainer: {
5521
5521
  width: '100%',
5522
+ minHeight: 130,
5523
+ overflow: 'hidden',
5522
5524
  marginBottom: useResponsiveValue(theme.sizes.sm, theme.sizes.xxs, isDesktop, isTablet),
5523
5525
  },
5524
5526
  image: {
@@ -5549,6 +5551,7 @@ var useVenueTileStyles = function () {
5549
5551
  },
5550
5552
  header: {
5551
5553
  width: '100%',
5554
+ paddingTop: theme.sizes.xxxs,
5552
5555
  marginBottom: useResponsiveValue(theme.sizes.xxs, theme.sizes.xxxs, isDesktop, isTablet),
5553
5556
  },
5554
5557
  tileTitle: __assign({ maxWidth: '90%', flex: 1 }, getDirectionalMargin(8)),
@@ -5563,29 +5566,29 @@ var useVenueTileStyles = function () {
5563
5566
  alignItems: 'center',
5564
5567
  zIndex: 10,
5565
5568
  },
5569
+ pinOverlay: {
5570
+ position: 'absolute',
5571
+ top: 8,
5572
+ right: 8,
5573
+ zIndex: 20,
5574
+ },
5566
5575
  });
5567
5576
  };
5568
5577
 
5569
5578
  /**
5570
5579
  * Renders the media for a Venue Tile.
5571
5580
  *
5572
- * @param props {VenueTileMediaProps} - Component props
5573
- * @param props.isArtworkOnly {boolean} - Whether the media should be rendered as an artwork only component
5574
5581
  * @returns React.ReactElement or null if no artwork URL is present or artwork should not be shown
5575
5582
  */
5576
- var VenueTileMedia = function (_a) {
5577
- var _b = _a.isArtworkOnly, isArtworkOnly = _b === void 0 ? false : _b;
5583
+ var VenueTileMedia = function () {
5578
5584
  var styles = useVenueTileStyles();
5579
5585
  var tileContext = useTileContext();
5580
5586
  if (!isContextValid(tileContext))
5581
5587
  return null;
5582
- 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;
5583
- if (!artworkUrl)
5584
- return null;
5585
- var containerStyle = {
5586
- flexBasis: isArtworkOnly ? '100%' : '50%',
5587
- };
5588
- 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" }) }))] })] }));
5589
5592
  };
5590
5593
 
5591
5594
  /**
@@ -5625,11 +5628,10 @@ var VenueTileTitle = function () {
5625
5628
  };
5626
5629
 
5627
5630
  /**
5628
- * 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.
5629
5632
  *
5630
5633
  * @param {VenueTileProps} props - Component props
5631
5634
  * @param {Tile} props.tile - The tile data to render
5632
- * @returns React.ReactElement or null if tile is inactive or not a full-height tile
5633
5635
  */
5634
5636
  var VenueTileRoot = function (_a) {
5635
5637
  var tile = _a.tile;