@wlloyalty/wll-react-sdk 1.0.83 → 1.0.85

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
@@ -1638,7 +1638,7 @@ var defaultTheme = {
1638
1638
  var COLOR_CONSTANTS = {
1639
1639
  MINIMUM_CONTRAST_RATIO: 2,
1640
1640
  DEFAULT_LIGHTNESS_ADJUSTMENT: 0.2,
1641
- DESATURATION_LIGHTEN_AMOUNT: 2,
1641
+ DESATURATION_LIGHTEN_AMOUNT: 0.8,
1642
1642
  DEFAULT_COLOR: '#FFFFFF',
1643
1643
  };
1644
1644
 
@@ -2259,7 +2259,6 @@ var styles$7 = reactNative.StyleSheet.create({
2259
2259
  position: 'relative',
2260
2260
  alignItems: 'center',
2261
2261
  justifyContent: 'center',
2262
- backgroundColor: 'red',
2263
2262
  width: '100%',
2264
2263
  height: '100%',
2265
2264
  },
@@ -2802,7 +2801,6 @@ var styles$5 = reactNative.StyleSheet.create({
2802
2801
  position: 'absolute',
2803
2802
  top: 10,
2804
2803
  right: 10,
2805
- backgroundColor: 'red',
2806
2804
  paddingHorizontal: 12,
2807
2805
  paddingVertical: 6,
2808
2806
  borderRadius: 4,
@@ -3650,13 +3648,24 @@ var Grid = function (_a) {
3650
3648
  width: "calc(".concat(100 / columns, "% - ").concat(((columns - 1) * GRID_GAP) / columns, "px)"),
3651
3649
  marginBottom: GRID_GAP,
3652
3650
  height: 'auto',
3653
- aspectRatio: 1,
3654
3651
  };
3655
3652
  }
3656
3653
  else {
3654
+ // Calculate available width accounting for screen width and section padding
3657
3655
  var availableWidth = SCREEN_WIDTH - GRID_GAP * 2;
3658
3656
  var gapSpace = (columns - 1) * GRID_GAP;
3659
3657
  var tileWidth = Math.floor((availableWidth - gapSpace) / columns);
3658
+ var halfTileHeight = Math.floor(tileWidth / 2);
3659
+ // Detailed logging for debugging
3660
+ console.log('=== GRID DEBUG ===');
3661
+ console.log("SCREEN_WIDTH: ".concat(SCREEN_WIDTH, "px, GRID_GAP: ").concat(GRID_GAP, "px"));
3662
+ console.log("Columns: ".concat(columns, ", Section padding: ").concat(GRID_GAP * 2, "px"));
3663
+ console.log("Available width: ".concat(availableWidth, "px, Gap space: ").concat(gapSpace, "px"));
3664
+ console.log("Calculated tile width: ".concat(tileWidth, "px"));
3665
+ console.log("Half tile height should be: ".concat(halfTileHeight, "px"));
3666
+ console.log("Expected full tile: ".concat(tileWidth, "x").concat(tileWidth, "px"));
3667
+ console.log("Expected half tile: ".concat(tileWidth, "x").concat(halfTileHeight, "px"));
3668
+ console.log('=== END DEBUG ===');
3660
3669
  return {
3661
3670
  width: tileWidth,
3662
3671
  marginBottom: GRID_GAP,
@@ -3748,9 +3757,8 @@ var styles$1 = reactNative.StyleSheet.create({
3748
3757
  width: 21,
3749
3758
  height: 21,
3750
3759
  borderRadius: 9999,
3751
- backgroundColor: 'red',
3752
- alignItems: 'center',
3753
3760
  justifyContent: 'center',
3761
+ alignItems: 'center',
3754
3762
  },
3755
3763
  });
3756
3764
 
@@ -4184,8 +4192,8 @@ var usePointsTileStyles = function (isFullSize) {
4184
4192
  justifyContent: 'center',
4185
4193
  },
4186
4194
  imageContainer: {
4187
- width: isFullSize ? '100%' : 57,
4188
- height: isFullSize ? '50%' : 57,
4195
+ width: isFullSize ? '100%' : isDesktop ? 57 : 40,
4196
+ height: isFullSize ? '50%' : isDesktop ? 57 : 40,
4189
4197
  marginBottom: isFullSize
4190
4198
  ? useResponsiveValue(theme.sizes.sm, theme.sizes.xxs, isDesktop, isTablet)
4191
4199
  : 0,
@@ -4643,11 +4651,23 @@ var TileContainer = function (_a) {
4643
4651
  return (jsxRuntimeExports.jsx(reactNative.View, { style: styles.container, testID: "tile-container", children: tiles.map(function (tile, index) {
4644
4652
  var TileComponent = TILE_COMPONENTS[tile.type];
4645
4653
  var isHalfSize = useTileSize(tile).isHalfSize;
4654
+ // Log tile dimensions for debugging
4655
+ if (!__DEV__) {
4656
+ console.log("Tile ".concat(index, " (").concat(tile.id, "): ").concat(isHalfSize ? 'Half' : 'Full', " size"));
4657
+ }
4646
4658
  return (jsxRuntimeExports.jsx(reactNative.View, { style: [
4647
4659
  styles.tileContainer,
4648
4660
  isHalfSize && styles.halfTileContainer,
4649
4661
  index > 0 && { marginTop: GRID_GAP },
4650
- ], children: TileComponent ? jsxRuntimeExports.jsx(TileComponent, { tile: tile }) : null }, tile.id));
4662
+ ], onLayout: function (event) {
4663
+ if (__DEV__) {
4664
+ var _a = event.nativeEvent.layout, width = _a.width, height = _a.height;
4665
+ console.log("=== TILE ".concat(index, " LAYOUT ==="));
4666
+ console.log("Tile ID: ".concat(tile.id, ", Type: ").concat(tile.type));
4667
+ console.log("Is Half Size: ".concat(isHalfSize));
4668
+ console.log("Actual dimensions: ".concat(width.toFixed(2), "x").concat(height.toFixed(2), "px"));
4669
+ }
4670
+ }, children: TileComponent ? jsxRuntimeExports.jsx(TileComponent, { tile: tile }) : null }, tile.id));
4651
4671
  }) }));
4652
4672
  };
4653
4673
  var styles = reactNative.StyleSheet.create({