@wlloyalty/wll-react-sdk 1.0.79 → 1.0.81
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 +6 -8
- package/dist/native.js.map +1 -1
- package/dist/web.js +7 -10
- package/dist/web.js.map +1 -1
- package/package.json +1 -1
package/dist/native.js
CHANGED
|
@@ -3656,9 +3656,7 @@ var Grid = function (_a) {
|
|
|
3656
3656
|
};
|
|
3657
3657
|
}
|
|
3658
3658
|
else {
|
|
3659
|
-
|
|
3660
|
-
var horizontalPadding = GRID_GAP;
|
|
3661
|
-
var availableWidth = SCREEN_WIDTH - horizontalPadding * 2;
|
|
3659
|
+
var availableWidth = SCREEN_WIDTH - GRID_GAP * 2;
|
|
3662
3660
|
var gapSpace = (columns - 1) * GRID_GAP;
|
|
3663
3661
|
var tileWidth = Math.floor((availableWidth - gapSpace) / columns);
|
|
3664
3662
|
return {
|
|
@@ -3700,8 +3698,8 @@ var Grid = function (_a) {
|
|
|
3700
3698
|
tileContainers.push(jsxRuntimeExports.jsx(reactNative.View, { style: [
|
|
3701
3699
|
// @ts-ignore Web uses CSS calc strings for responsive layouts, while ViewStyle expects numbers
|
|
3702
3700
|
getTileWidth(columnsPerRow),
|
|
3703
|
-
!isLastInRow && { marginRight: GRID_GAP },
|
|
3704
|
-
{ overflow: 'hidden' },
|
|
3701
|
+
IS_WEB && !isLastInRow && { marginRight: GRID_GAP },
|
|
3702
|
+
{ overflow: 'hidden' },
|
|
3705
3703
|
], children: jsxRuntimeExports.jsx(TileContainer, { tiles: currentTiles }) }, "container-".concat(index)));
|
|
3706
3704
|
currentTiles = [];
|
|
3707
3705
|
}
|
|
@@ -4662,15 +4660,15 @@ var styles = reactNative.StyleSheet.create({
|
|
|
4662
4660
|
flexDirection: 'column',
|
|
4663
4661
|
flex: 1,
|
|
4664
4662
|
aspectRatio: 1,
|
|
4665
|
-
width: '100%',
|
|
4663
|
+
width: '100%',
|
|
4666
4664
|
},
|
|
4667
4665
|
tileContainer: {
|
|
4668
4666
|
flex: 1,
|
|
4669
|
-
|
|
4670
|
-
width: '100%', // Ensure each tile takes full width of its container
|
|
4667
|
+
width: '100%',
|
|
4671
4668
|
},
|
|
4672
4669
|
halfTileContainer: {
|
|
4673
4670
|
flex: 0.5,
|
|
4671
|
+
height: '50%',
|
|
4674
4672
|
},
|
|
4675
4673
|
});
|
|
4676
4674
|
|