@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.
- package/dist/native.js +7 -17
- package/dist/native.js.map +1 -1
- package/dist/types/constants/theme.d.ts +1 -1
- package/dist/web.js +15 -23
- package/dist/web.js.map +1 -1
- package/package.json +1 -1
package/dist/native.js
CHANGED
|
@@ -1638,7 +1638,7 @@ var defaultTheme = {
|
|
|
1638
1638
|
var COLOR_CONSTANTS = {
|
|
1639
1639
|
MINIMUM_CONTRAST_RATIO: 2,
|
|
1640
1640
|
DEFAULT_LIGHTNESS_ADJUSTMENT: 0.2,
|
|
1641
|
-
DESATURATION_LIGHTEN_AMOUNT:
|
|
1641
|
+
DESATURATION_LIGHTEN_AMOUNT: 0.8,
|
|
1642
1642
|
DEFAULT_COLOR: '#FFFFFF',
|
|
1643
1643
|
};
|
|
1644
1644
|
|
|
@@ -2232,9 +2232,7 @@ var ProgressiveImage = function (_a) {
|
|
|
2232
2232
|
? {
|
|
2233
2233
|
filter: isDesaturated ? 'grayscale(100%)' : undefined,
|
|
2234
2234
|
}
|
|
2235
|
-
: {
|
|
2236
|
-
tintColor: isDesaturated ? desaturatedColor : undefined,
|
|
2237
|
-
};
|
|
2235
|
+
: {};
|
|
2238
2236
|
return (jsxRuntimeExports.jsxs(reactNative.View, { style: [styles$7.container, style, { backgroundColor: backgroundColor }], children: [jsxRuntimeExports.jsx(reactNative.Animated.View, { style: [
|
|
2239
2237
|
styles$7.imageOverlay,
|
|
2240
2238
|
{
|
|
@@ -2261,7 +2259,6 @@ var styles$7 = reactNative.StyleSheet.create({
|
|
|
2261
2259
|
position: 'relative',
|
|
2262
2260
|
alignItems: 'center',
|
|
2263
2261
|
justifyContent: 'center',
|
|
2264
|
-
backgroundColor: 'red',
|
|
2265
2262
|
width: '100%',
|
|
2266
2263
|
height: '100%',
|
|
2267
2264
|
},
|
|
@@ -2804,7 +2801,6 @@ var styles$5 = reactNative.StyleSheet.create({
|
|
|
2804
2801
|
position: 'absolute',
|
|
2805
2802
|
top: 10,
|
|
2806
2803
|
right: 10,
|
|
2807
|
-
backgroundColor: 'red',
|
|
2808
2804
|
paddingHorizontal: 12,
|
|
2809
2805
|
paddingVertical: 6,
|
|
2810
2806
|
borderRadius: 4,
|
|
@@ -3652,7 +3648,6 @@ var Grid = function (_a) {
|
|
|
3652
3648
|
width: "calc(".concat(100 / columns, "% - ").concat(((columns - 1) * GRID_GAP) / columns, "px)"),
|
|
3653
3649
|
marginBottom: GRID_GAP,
|
|
3654
3650
|
height: 'auto',
|
|
3655
|
-
aspectRatio: 1,
|
|
3656
3651
|
};
|
|
3657
3652
|
}
|
|
3658
3653
|
else {
|
|
@@ -3662,7 +3657,6 @@ var Grid = function (_a) {
|
|
|
3662
3657
|
return {
|
|
3663
3658
|
width: tileWidth,
|
|
3664
3659
|
marginBottom: GRID_GAP,
|
|
3665
|
-
aspectRatio: 1,
|
|
3666
3660
|
};
|
|
3667
3661
|
}
|
|
3668
3662
|
}, []);
|
|
@@ -3694,12 +3688,9 @@ var Grid = function (_a) {
|
|
|
3694
3688
|
return true;
|
|
3695
3689
|
};
|
|
3696
3690
|
if (shouldStartNewContainer(currentTiles, tile, nextTile)) {
|
|
3697
|
-
var isLastInRow = (tileContainers.length + 1) % columnsPerRow === 0;
|
|
3698
3691
|
tileContainers.push(jsxRuntimeExports.jsx(reactNative.View, { style: [
|
|
3699
3692
|
// @ts-ignore Web uses CSS calc strings for responsive layouts, while ViewStyle expects numbers
|
|
3700
3693
|
getTileWidth(columnsPerRow),
|
|
3701
|
-
IS_WEB && !isLastInRow && { marginRight: GRID_GAP },
|
|
3702
|
-
{ overflow: 'hidden' },
|
|
3703
3694
|
], children: jsxRuntimeExports.jsx(TileContainer, { tiles: currentTiles }) }, "container-".concat(index)));
|
|
3704
3695
|
currentTiles = [];
|
|
3705
3696
|
}
|
|
@@ -3713,7 +3704,7 @@ var styles$2 = reactNative.StyleSheet.create({
|
|
|
3713
3704
|
flexDirection: 'row',
|
|
3714
3705
|
flexWrap: 'wrap',
|
|
3715
3706
|
width: '100%',
|
|
3716
|
-
justifyContent: 'space-between',
|
|
3707
|
+
justifyContent: 'space-between',
|
|
3717
3708
|
},
|
|
3718
3709
|
});
|
|
3719
3710
|
|
|
@@ -3753,9 +3744,8 @@ var styles$1 = reactNative.StyleSheet.create({
|
|
|
3753
3744
|
width: 21,
|
|
3754
3745
|
height: 21,
|
|
3755
3746
|
borderRadius: 9999,
|
|
3756
|
-
backgroundColor: 'red',
|
|
3757
|
-
alignItems: 'center',
|
|
3758
3747
|
justifyContent: 'center',
|
|
3748
|
+
alignItems: 'center',
|
|
3759
3749
|
},
|
|
3760
3750
|
});
|
|
3761
3751
|
|
|
@@ -4189,8 +4179,8 @@ var usePointsTileStyles = function (isFullSize) {
|
|
|
4189
4179
|
justifyContent: 'center',
|
|
4190
4180
|
},
|
|
4191
4181
|
imageContainer: {
|
|
4192
|
-
width: isFullSize ? '100%' : 57,
|
|
4193
|
-
height: isFullSize ? '50%' : 57,
|
|
4182
|
+
width: isFullSize ? '100%' : isDesktop ? 57 : 40,
|
|
4183
|
+
height: isFullSize ? '50%' : isDesktop ? 57 : 40,
|
|
4194
4184
|
marginBottom: isFullSize
|
|
4195
4185
|
? useResponsiveValue(theme.sizes.sm, theme.sizes.xxs, isDesktop, isTablet)
|
|
4196
4186
|
: 0,
|
|
@@ -4502,7 +4492,7 @@ var RewardTileTitle = function () {
|
|
|
4502
4492
|
var name = tileContext.configuration.name;
|
|
4503
4493
|
if (!name)
|
|
4504
4494
|
return null;
|
|
4505
|
-
return (jsxRuntimeExports.jsx(Text, { variant: "title", ellipsizeMode: "tail", numberOfLines: 1, accessibilityRole: "header", accessibilityLabel: "Reward title: ".concat(name), testID: "reward-tile-title", children: name }));
|
|
4495
|
+
return (jsxRuntimeExports.jsx(Text, { variant: "title", ellipsizeMode: "tail", numberOfLines: 1, accessibilityRole: "header", accessibilityLabel: "Reward title: ".concat(name), testID: "reward-tile-title", style: { flex: 1, marginRight: 8 }, children: name }));
|
|
4506
4496
|
};
|
|
4507
4497
|
|
|
4508
4498
|
/**
|