@wlloyalty/wll-react-sdk 1.0.82 → 1.0.84

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.
@@ -1,6 +1,6 @@
1
1
  export declare const COLOR_CONSTANTS: {
2
2
  readonly MINIMUM_CONTRAST_RATIO: 2;
3
3
  readonly DEFAULT_LIGHTNESS_ADJUSTMENT: 0.2;
4
- readonly DESATURATION_LIGHTEN_AMOUNT: 2;
4
+ readonly DESATURATION_LIGHTEN_AMOUNT: 0.8;
5
5
  readonly DEFAULT_COLOR: "#FFFFFF";
6
6
  };
package/dist/web.js CHANGED
@@ -7967,7 +7967,7 @@ var defaultTheme = {
7967
7967
  var COLOR_CONSTANTS = {
7968
7968
  MINIMUM_CONTRAST_RATIO: 2,
7969
7969
  DEFAULT_LIGHTNESS_ADJUSTMENT: 0.2,
7970
- DESATURATION_LIGHTEN_AMOUNT: 2,
7970
+ DESATURATION_LIGHTEN_AMOUNT: 0.8,
7971
7971
  DEFAULT_COLOR: '#FFFFFF'
7972
7972
  };
7973
7973
 
@@ -18804,9 +18804,7 @@ var ProgressiveImage = function (_a) {
18804
18804
  // Platform-specific logic for desaturation
18805
18805
  var desaturationStyle = IS_WEB ? {
18806
18806
  filter: isDesaturated ? 'grayscale(100%)' : undefined
18807
- } : {
18808
- tintColor: isDesaturated ? desaturatedColor : undefined
18809
- };
18807
+ } : {};
18810
18808
  return /*#__PURE__*/React.createElement(View$2, {
18811
18809
  style: [styles$7.container, style, {
18812
18810
  backgroundColor: backgroundColor
@@ -18840,7 +18838,6 @@ var styles$7 = StyleSheet$1.create({
18840
18838
  position: 'relative',
18841
18839
  alignItems: 'center',
18842
18840
  justifyContent: 'center',
18843
- backgroundColor: 'red',
18844
18841
  width: '100%',
18845
18842
  height: '100%'
18846
18843
  }
@@ -19477,7 +19474,6 @@ var styles$5 = StyleSheet$1.create({
19477
19474
  position: 'absolute',
19478
19475
  top: 10,
19479
19476
  right: 10,
19480
- backgroundColor: 'red',
19481
19477
  paddingHorizontal: 12,
19482
19478
  paddingVertical: 6,
19483
19479
  borderRadius: 4
@@ -20562,8 +20558,7 @@ var Grid = function (_a) {
20562
20558
  return {
20563
20559
  width: "calc(".concat(100 / columns, "% - ").concat((columns - 1) * GRID_GAP / columns, "px)"),
20564
20560
  marginBottom: GRID_GAP,
20565
- height: 'auto',
20566
- aspectRatio: 1
20561
+ height: 'auto'
20567
20562
  };
20568
20563
  } else {
20569
20564
  var availableWidth = SCREEN_WIDTH - GRID_GAP * 2;
@@ -20571,8 +20566,7 @@ var Grid = function (_a) {
20571
20566
  var tileWidth = Math.floor((availableWidth - gapSpace) / columns);
20572
20567
  return {
20573
20568
  width: tileWidth,
20574
- marginBottom: GRID_GAP,
20575
- aspectRatio: 1
20569
+ marginBottom: GRID_GAP
20576
20570
  };
20577
20571
  }
20578
20572
  }, []);
@@ -20597,16 +20591,11 @@ var Grid = function (_a) {
20597
20591
  return true;
20598
20592
  };
20599
20593
  if (shouldStartNewContainer(currentTiles, tile, nextTile)) {
20600
- var isLastInRow = (tileContainers.length + 1) % columnsPerRow === 0;
20601
20594
  tileContainers.push(/*#__PURE__*/React.createElement(View$2, {
20602
20595
  key: "container-".concat(index),
20603
20596
  style: [
20604
20597
  // @ts-ignore Web uses CSS calc strings for responsive layouts, while ViewStyle expects numbers
20605
- getTileWidth(columnsPerRow), IS_WEB && !isLastInRow && {
20606
- marginRight: GRID_GAP
20607
- }, {
20608
- overflow: 'hidden'
20609
- }]
20598
+ getTileWidth(columnsPerRow)]
20610
20599
  }, /*#__PURE__*/React.createElement(TileContainer, {
20611
20600
  tiles: currentTiles
20612
20601
  })));
@@ -20627,7 +20616,7 @@ var styles$2 = StyleSheet$1.create({
20627
20616
  flexDirection: 'row',
20628
20617
  flexWrap: 'wrap',
20629
20618
  width: '100%',
20630
- justifyContent: 'space-between' // Ensure tiles are evenly spaced
20619
+ justifyContent: 'space-between'
20631
20620
  }
20632
20621
  });
20633
20622
 
@@ -20685,9 +20674,8 @@ var styles$1 = StyleSheet$1.create({
20685
20674
  width: 21,
20686
20675
  height: 21,
20687
20676
  borderRadius: 9999,
20688
- backgroundColor: 'red',
20689
- alignItems: 'center',
20690
- justifyContent: 'center'
20677
+ justifyContent: 'center',
20678
+ alignItems: 'center'
20691
20679
  }
20692
20680
  });
20693
20681
 
@@ -21287,8 +21275,8 @@ var usePointsTileStyles = function (isFullSize) {
21287
21275
  justifyContent: 'center'
21288
21276
  },
21289
21277
  imageContainer: {
21290
- width: isFullSize ? '100%' : 57,
21291
- height: isFullSize ? '50%' : 57,
21278
+ width: isFullSize ? '100%' : isDesktop ? 57 : 40,
21279
+ height: isFullSize ? '50%' : isDesktop ? 57 : 40,
21292
21280
  marginBottom: isFullSize ? useResponsiveValue(theme.sizes.sm, theme.sizes.xxs, isDesktop, isTablet) : 0,
21293
21281
  backgroundColor: isFullSize ? theme.alphaDerivedPrimary[20] : theme.surface,
21294
21282
  justifyContent: 'center',
@@ -21723,7 +21711,11 @@ var RewardTileTitle = function () {
21723
21711
  numberOfLines: 1,
21724
21712
  accessibilityRole: "header",
21725
21713
  accessibilityLabel: "Reward title: ".concat(name),
21726
- testID: "reward-tile-title"
21714
+ testID: "reward-tile-title",
21715
+ style: {
21716
+ flex: 1,
21717
+ marginRight: 8
21718
+ }
21727
21719
  }, name);
21728
21720
  };
21729
21721