@wlloyalty/wll-react-sdk 1.0.92 → 1.0.94
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.d.ts +1 -0
- package/dist/native.js +11 -2
- package/dist/native.js.map +1 -1
- package/dist/types/components/organisms/Section/Section.stories.d.ts +12 -0
- package/dist/types/types/theme.d.ts +1 -0
- package/dist/types/utils/storybookThemes.d.ts +5 -0
- package/dist/web.js +11 -5
- package/dist/web.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/native.js
CHANGED
|
@@ -1620,6 +1620,7 @@ var commonStyles = reactNative.StyleSheet.create({
|
|
|
1620
1620
|
},
|
|
1621
1621
|
});
|
|
1622
1622
|
var defaultTheme = {
|
|
1623
|
+
fontFamily: '-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif',
|
|
1623
1624
|
background: '#F0F0F0',
|
|
1624
1625
|
text: '#000000',
|
|
1625
1626
|
primary: '#392ed7',
|
|
@@ -2299,7 +2300,13 @@ var Text = function (_a) {
|
|
|
2299
2300
|
}
|
|
2300
2301
|
};
|
|
2301
2302
|
var variantStyle = getVariantStyle(variant);
|
|
2302
|
-
return jsxRuntimeExports.jsx(reactNative.Text, __assign({ style: [
|
|
2303
|
+
return (jsxRuntimeExports.jsx(reactNative.Text, __assign({ style: [
|
|
2304
|
+
variantStyle,
|
|
2305
|
+
style,
|
|
2306
|
+
{
|
|
2307
|
+
fontFamily: theme.fontFamily,
|
|
2308
|
+
},
|
|
2309
|
+
] }, props)));
|
|
2303
2310
|
};
|
|
2304
2311
|
|
|
2305
2312
|
var MAX_WIDTH = 1080;
|
|
@@ -3754,6 +3761,7 @@ var Grid = function (_a) {
|
|
|
3754
3761
|
width: "calc(".concat(100 / columns, "% - ").concat(((columns - 1) * GRID_GAP) / columns, "px)"),
|
|
3755
3762
|
marginBottom: GRID_GAP,
|
|
3756
3763
|
height: 'auto',
|
|
3764
|
+
aspectRatio: 1,
|
|
3757
3765
|
};
|
|
3758
3766
|
}
|
|
3759
3767
|
else {
|
|
@@ -3795,9 +3803,11 @@ var Grid = function (_a) {
|
|
|
3795
3803
|
return true;
|
|
3796
3804
|
};
|
|
3797
3805
|
if (shouldStartNewContainer(currentTiles, tile, nextTile)) {
|
|
3806
|
+
var isLastInRow = (tileContainers.length + 1) % columnsPerRow === 0;
|
|
3798
3807
|
tileContainers.push(jsxRuntimeExports.jsx(reactNative.View, { style: [
|
|
3799
3808
|
// @ts-ignore Web uses CSS calc strings for responsive layouts, while ViewStyle expects numbers
|
|
3800
3809
|
getTileWidth(columnsPerRow),
|
|
3810
|
+
!isLastInRow && { marginRight: GRID_GAP },
|
|
3801
3811
|
], children: jsxRuntimeExports.jsx(TileContainer, { tiles: currentTiles }) }, "container-".concat(index)));
|
|
3802
3812
|
currentTiles = [];
|
|
3803
3813
|
}
|
|
@@ -3811,7 +3821,6 @@ var styles$2 = reactNative.StyleSheet.create({
|
|
|
3811
3821
|
flexDirection: 'row',
|
|
3812
3822
|
flexWrap: 'wrap',
|
|
3813
3823
|
width: '100%',
|
|
3814
|
-
justifyContent: 'space-between',
|
|
3815
3824
|
},
|
|
3816
3825
|
});
|
|
3817
3826
|
|