@wlloyalty/wll-react-sdk 1.0.41 → 1.0.42
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/index.js +9 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -21001,18 +21001,13 @@ var TileContainer = function (_a) {
|
|
|
21001
21001
|
});
|
|
21002
21002
|
}
|
|
21003
21003
|
};
|
|
21004
|
-
// Check if all tiles are half height
|
|
21005
|
-
var allHalfTiles = tiles.every(function (tile) {
|
|
21006
|
-
return tile.tileHeight === exports.TileHeight.Half;
|
|
21007
|
-
});
|
|
21008
21004
|
return /*#__PURE__*/React__namespace.createElement(View$2, {
|
|
21009
|
-
style:
|
|
21010
|
-
aspectRatio: allHalfTiles ? 2 : 1
|
|
21011
|
-
}]
|
|
21005
|
+
style: styles.container
|
|
21012
21006
|
}, tiles.map(function (tile, index) {
|
|
21007
|
+
var isHalfTile = tile.tileHeight === exports.TileHeight.Half;
|
|
21013
21008
|
return /*#__PURE__*/React__namespace.createElement(View$2, {
|
|
21014
21009
|
key: tile.id,
|
|
21015
|
-
style: [styles.tileContainer,
|
|
21010
|
+
style: [styles.tileContainer, isHalfTile && styles.halfTileContainer, index > 0 && {
|
|
21016
21011
|
marginTop: GRID_GAP
|
|
21017
21012
|
}]
|
|
21018
21013
|
}, renderTile(tile));
|
|
@@ -21021,13 +21016,16 @@ var TileContainer = function (_a) {
|
|
|
21021
21016
|
var styles = StyleSheet$1.create({
|
|
21022
21017
|
container: {
|
|
21023
21018
|
flexDirection: 'column',
|
|
21024
|
-
flex: 1
|
|
21019
|
+
flex: 1,
|
|
21020
|
+
aspectRatio: 1
|
|
21025
21021
|
},
|
|
21026
21022
|
tileContainer: {
|
|
21027
|
-
flex: 1
|
|
21023
|
+
flex: 1,
|
|
21024
|
+
aspectRatio: 1
|
|
21028
21025
|
},
|
|
21029
21026
|
halfTileContainer: {
|
|
21030
|
-
flex:
|
|
21027
|
+
flex: 0.5,
|
|
21028
|
+
aspectRatio: 1
|
|
21031
21029
|
}
|
|
21032
21030
|
});
|
|
21033
21031
|
|