@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/web.js
CHANGED
|
@@ -20566,9 +20566,7 @@ var Grid = function (_a) {
|
|
|
20566
20566
|
aspectRatio: 1
|
|
20567
20567
|
};
|
|
20568
20568
|
} else {
|
|
20569
|
-
|
|
20570
|
-
var horizontalPadding = GRID_GAP;
|
|
20571
|
-
var availableWidth = SCREEN_WIDTH - horizontalPadding * 2;
|
|
20569
|
+
var availableWidth = SCREEN_WIDTH - GRID_GAP * 2;
|
|
20572
20570
|
var gapSpace = (columns - 1) * GRID_GAP;
|
|
20573
20571
|
var tileWidth = Math.floor((availableWidth - gapSpace) / columns);
|
|
20574
20572
|
return {
|
|
@@ -20604,12 +20602,11 @@ var Grid = function (_a) {
|
|
|
20604
20602
|
key: "container-".concat(index),
|
|
20605
20603
|
style: [
|
|
20606
20604
|
// @ts-ignore Web uses CSS calc strings for responsive layouts, while ViewStyle expects numbers
|
|
20607
|
-
getTileWidth(columnsPerRow), !isLastInRow && {
|
|
20605
|
+
getTileWidth(columnsPerRow), IS_WEB && !isLastInRow && {
|
|
20608
20606
|
marginRight: GRID_GAP
|
|
20609
20607
|
}, {
|
|
20610
20608
|
overflow: 'hidden'
|
|
20611
|
-
}
|
|
20612
|
-
]
|
|
20609
|
+
}]
|
|
20613
20610
|
}, /*#__PURE__*/React.createElement(TileContainer, {
|
|
20614
20611
|
tiles: currentTiles
|
|
20615
20612
|
})));
|
|
@@ -21993,15 +21990,15 @@ var styles = StyleSheet$1.create({
|
|
|
21993
21990
|
flexDirection: 'column',
|
|
21994
21991
|
flex: 1,
|
|
21995
21992
|
aspectRatio: 1,
|
|
21996
|
-
width: '100%'
|
|
21993
|
+
width: '100%'
|
|
21997
21994
|
},
|
|
21998
21995
|
tileContainer: {
|
|
21999
21996
|
flex: 1,
|
|
22000
|
-
|
|
22001
|
-
width: '100%' // Ensure each tile takes full width of its container
|
|
21997
|
+
width: '100%'
|
|
22002
21998
|
},
|
|
22003
21999
|
halfTileContainer: {
|
|
22004
|
-
flex: 0.5
|
|
22000
|
+
flex: 0.5,
|
|
22001
|
+
height: '50%'
|
|
22005
22002
|
}
|
|
22006
22003
|
});
|
|
22007
22004
|
|