@wlloyalty/wll-react-sdk 1.5.1 → 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/native.js +7 -12
- package/dist/native.js.map +1 -1
- package/dist/web.js +24 -28
- package/dist/web.js.map +1 -1
- package/package.json +1 -1
package/dist/native.js
CHANGED
|
@@ -2699,17 +2699,12 @@ var BaseBanner = function (_a) {
|
|
|
2699
2699
|
borderRadius: theme.sizes.borderRadiusLg,
|
|
2700
2700
|
},
|
|
2701
2701
|
];
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
}, onPress: handlePress, accessible: true, role: "button", accessibilityLabel: accessibilityLabel || "".concat(title, " - Click to open"), children: children }) }));
|
|
2709
|
-
}
|
|
2710
|
-
else {
|
|
2711
|
-
return (jsxRuntimeExports.jsx(BannerContext.Provider, { value: tile, children: jsxRuntimeExports.jsx(reactNative.View, { testID: testID || 'banner-tile', style: commonStyles, accessible: true, role: "article", accessibilityLabel: accessibilityLabel || title || 'Banner', children: children }) }));
|
|
2712
|
-
}
|
|
2702
|
+
return jsxRuntimeExports.jsx(BannerContext.Provider, { value: tile, children: isInteractive ? (jsxRuntimeExports.jsx(reactNative.Pressable, { testID: testID || 'banner-tile', style: function (_a) {
|
|
2703
|
+
var pressed = _a.pressed;
|
|
2704
|
+
return __spreadArray(__spreadArray([], commonStyles, true), [
|
|
2705
|
+
{ opacity: pressed ? 0.7 : 1 },
|
|
2706
|
+
], false);
|
|
2707
|
+
}, onPress: handlePress, accessible: true, role: "button", accessibilityLabel: accessibilityLabel || "".concat(title, " - Click to open"), children: children })) : (jsxRuntimeExports.jsx(reactNative.View, { testID: testID || 'banner-tile', style: commonStyles, accessible: true, role: "article", accessibilityLabel: accessibilityLabel || title || 'Banner', children: children })) });
|
|
2713
2708
|
};
|
|
2714
2709
|
var styles$6 = reactNative.StyleSheet.create({
|
|
2715
2710
|
container: {
|
|
@@ -4210,7 +4205,7 @@ var Carousel = function (_a) {
|
|
|
4210
4205
|
marginTop: useResponsiveValue(theme.sizes.xxl, theme.sizes.sm, isDesktop, isTablet),
|
|
4211
4206
|
},
|
|
4212
4207
|
});
|
|
4213
|
-
return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(SectionHeader, { title: section.title, description: section.description }), jsxRuntimeExports.jsxs(reactNative.View, { ref: containerRef, style: styles.container, onLayout: function (event) {
|
|
4208
|
+
return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(SectionHeader, { title: section.title, description: section.description }), jsxRuntimeExports.jsxs(reactNative.View, { ref: containerRef, style: [styles.container, { direction: 'ltr' }], onLayout: function (event) {
|
|
4214
4209
|
var width = event.nativeEvent.layout.width;
|
|
4215
4210
|
dispatch({ type: 'SET_CONTAINER_WIDTH', payload: width });
|
|
4216
4211
|
}, children: [jsxRuntimeExports.jsxs(reactNative.View, { style: styles.carouselContainer, children: [showPrevButton && (jsxRuntimeExports.jsx(CarouselNavButton, { direction: "left", onPress: handlePrev })), jsxRuntimeExports.jsx(reactNative.ScrollView, { ref: scrollViewRef, horizontal: true, pagingEnabled: true, showsHorizontalScrollIndicator: false, onScroll: handleScroll, onMomentumScrollEnd: handleScrollEnd, scrollEventThrottle: 16, style: styles.carouselContent, contentContainerStyle: {
|