@wlloyalty/wll-react-sdk 1.5.0 → 1.6.0
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 +2 -1
- package/dist/native.js +8 -17
- package/dist/native.js.map +1 -1
- package/dist/types/types/wll.d.ts +1 -0
- package/dist/types/utils/styling.d.ts +1 -1
- package/dist/web.js +25 -31
- package/dist/web.js.map +1 -1
- package/package.json +1 -1
package/dist/web.js
CHANGED
|
@@ -8203,7 +8203,7 @@ var sizes = {
|
|
|
8203
8203
|
sm: 12,
|
|
8204
8204
|
md: 14,
|
|
8205
8205
|
lg: 16,
|
|
8206
|
-
xl:
|
|
8206
|
+
xl: 20,
|
|
8207
8207
|
xxl: 24,
|
|
8208
8208
|
xxxl: 32,
|
|
8209
8209
|
xxxxl: 40,
|
|
@@ -19322,33 +19322,27 @@ var BaseBanner = function (_a) {
|
|
|
19322
19322
|
backgroundColor: theme.surface,
|
|
19323
19323
|
borderRadius: theme.sizes.borderRadiusLg
|
|
19324
19324
|
}];
|
|
19325
|
-
|
|
19326
|
-
|
|
19327
|
-
|
|
19328
|
-
|
|
19329
|
-
|
|
19330
|
-
|
|
19331
|
-
|
|
19332
|
-
|
|
19333
|
-
|
|
19334
|
-
|
|
19335
|
-
|
|
19336
|
-
|
|
19337
|
-
|
|
19338
|
-
|
|
19339
|
-
|
|
19340
|
-
|
|
19341
|
-
|
|
19342
|
-
|
|
19343
|
-
|
|
19344
|
-
|
|
19345
|
-
|
|
19346
|
-
style: commonStyles,
|
|
19347
|
-
accessible: true,
|
|
19348
|
-
role: "article",
|
|
19349
|
-
accessibilityLabel: accessibilityLabel || title || 'Banner'
|
|
19350
|
-
}, children));
|
|
19351
|
-
}
|
|
19325
|
+
return /*#__PURE__*/React.createElement(BannerContext.Provider, {
|
|
19326
|
+
value: tile
|
|
19327
|
+
}, isInteractive ? (/*#__PURE__*/React.createElement(Pressable$1, {
|
|
19328
|
+
testID: testID || 'banner-tile',
|
|
19329
|
+
style: function (_a) {
|
|
19330
|
+
var pressed = _a.pressed;
|
|
19331
|
+
return __spreadArray(__spreadArray([], commonStyles, true), [{
|
|
19332
|
+
opacity: pressed ? 0.7 : 1
|
|
19333
|
+
}], false);
|
|
19334
|
+
},
|
|
19335
|
+
onPress: handlePress,
|
|
19336
|
+
accessible: true,
|
|
19337
|
+
role: "button",
|
|
19338
|
+
accessibilityLabel: accessibilityLabel || "".concat(title, " - Click to open")
|
|
19339
|
+
}, children)) : (/*#__PURE__*/React.createElement(View$2, {
|
|
19340
|
+
testID: testID || 'banner-tile',
|
|
19341
|
+
style: commonStyles,
|
|
19342
|
+
accessible: true,
|
|
19343
|
+
role: "article",
|
|
19344
|
+
accessibilityLabel: accessibilityLabel || title || 'Banner'
|
|
19345
|
+
}, children)));
|
|
19352
19346
|
};
|
|
19353
19347
|
var styles$6 = StyleSheet$1.create({
|
|
19354
19348
|
container: {
|
|
@@ -20644,9 +20638,7 @@ var ContentTileTitle = function () {
|
|
|
20644
20638
|
if (!title) return undefined;
|
|
20645
20639
|
if (isHalfSize) {
|
|
20646
20640
|
if (title && !body) return 3;
|
|
20647
|
-
if (title && body) return 1;
|
|
20648
20641
|
}
|
|
20649
|
-
if (artworkUrl) return 1;
|
|
20650
20642
|
if (!body) return 7;
|
|
20651
20643
|
return 2;
|
|
20652
20644
|
}, [title, body, artworkUrl, isHalfSize]);
|
|
@@ -21183,7 +21175,9 @@ var Carousel = function (_a) {
|
|
|
21183
21175
|
description: section.description
|
|
21184
21176
|
}), /*#__PURE__*/React.createElement(View$2, {
|
|
21185
21177
|
ref: containerRef,
|
|
21186
|
-
style: styles.container,
|
|
21178
|
+
style: [styles.container, {
|
|
21179
|
+
direction: 'ltr'
|
|
21180
|
+
}],
|
|
21187
21181
|
onLayout: function (event) {
|
|
21188
21182
|
var width = event.nativeEvent.layout.width;
|
|
21189
21183
|
dispatch({
|