@wlloyalty/wll-react-sdk 1.0.28 → 1.0.29
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 +15 -7
- package/dist/index.js +167 -123
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6395,7 +6395,7 @@ var Text$2 = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) => {
|
|
|
6395
6395
|
}
|
|
6396
6396
|
supportedProps.style = [numberOfLines != null && numberOfLines > 1 && {
|
|
6397
6397
|
WebkitLineClamp: numberOfLines
|
|
6398
|
-
}, hasTextAncestor === true ? styles$
|
|
6398
|
+
}, hasTextAncestor === true ? styles$k.textHasAncestor$raw : styles$k.text$raw, numberOfLines === 1 && styles$k.textOneLine, numberOfLines != null && numberOfLines > 1 && styles$k.textMultiLine, props.style, selectable === true && styles$k.selectable, selectable === false && styles$k.notSelectable, onPress && styles$k.pressable];
|
|
6399
6399
|
if (props.href != null) {
|
|
6400
6400
|
component = 'a';
|
|
6401
6401
|
if (hrefAttrs != null) {
|
|
@@ -6440,7 +6440,7 @@ var textStyle = {
|
|
|
6440
6440
|
whiteSpace: 'pre-wrap',
|
|
6441
6441
|
wordWrap: 'break-word'
|
|
6442
6442
|
};
|
|
6443
|
-
var styles$
|
|
6443
|
+
var styles$k = StyleSheet$1.create({
|
|
6444
6444
|
text$raw: textStyle,
|
|
6445
6445
|
textHasAncestor$raw: _objectSpread2(_objectSpread2({}, textStyle), {}, {
|
|
6446
6446
|
color: 'inherit',
|
|
@@ -7075,7 +7075,7 @@ var View$1 = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) => {
|
|
|
7075
7075
|
var writingDirection = componentDirection || contextDirection;
|
|
7076
7076
|
var supportedProps = pickProps(rest);
|
|
7077
7077
|
supportedProps.dir = componentDirection;
|
|
7078
|
-
supportedProps.style = [styles$
|
|
7078
|
+
supportedProps.style = [styles$j.view$raw, hasTextAncestor && styles$j.inline, props.style];
|
|
7079
7079
|
if (props.href != null) {
|
|
7080
7080
|
component = 'a';
|
|
7081
7081
|
if (hrefAttrs != null) {
|
|
@@ -7101,7 +7101,7 @@ var View$1 = /*#__PURE__*/React__namespace.forwardRef((props, forwardedRef) => {
|
|
|
7101
7101
|
});
|
|
7102
7102
|
});
|
|
7103
7103
|
View$1.displayName = 'View';
|
|
7104
|
-
var styles$
|
|
7104
|
+
var styles$j = StyleSheet$1.create({
|
|
7105
7105
|
view$raw: {
|
|
7106
7106
|
alignItems: 'stretch',
|
|
7107
7107
|
backgroundColor: 'transparent',
|
|
@@ -7202,14 +7202,14 @@ function TouchableOpacity(props, forwardedRef) {
|
|
|
7202
7202
|
focusable: !disabled && focusable !== false,
|
|
7203
7203
|
pointerEvents: disabled ? 'box-none' : undefined,
|
|
7204
7204
|
ref: setRef,
|
|
7205
|
-
style: [styles$
|
|
7205
|
+
style: [styles$i.root, !disabled && styles$i.actionable, style, opacityOverride != null && {
|
|
7206
7206
|
opacity: opacityOverride
|
|
7207
7207
|
}, {
|
|
7208
7208
|
transitionDuration: duration
|
|
7209
7209
|
}]
|
|
7210
7210
|
}));
|
|
7211
7211
|
}
|
|
7212
|
-
var styles$
|
|
7212
|
+
var styles$i = StyleSheet$1.create({
|
|
7213
7213
|
root: {
|
|
7214
7214
|
transitionProperty: 'opacity',
|
|
7215
7215
|
transitionDuration: '0.15s',
|
|
@@ -7443,9 +7443,17 @@ var sizes = {
|
|
|
7443
7443
|
borderRadiusLg: 20,
|
|
7444
7444
|
borderRadiusButton: 9,
|
|
7445
7445
|
borderRadiusRounded: 9999,
|
|
7446
|
-
|
|
7447
|
-
|
|
7448
|
-
|
|
7446
|
+
xxxs: 4,
|
|
7447
|
+
xxs: 8,
|
|
7448
|
+
xs: 10,
|
|
7449
|
+
sm: 12,
|
|
7450
|
+
md: 14,
|
|
7451
|
+
lg: 16,
|
|
7452
|
+
xl: 18,
|
|
7453
|
+
xxl: 24,
|
|
7454
|
+
xxxl: 32,
|
|
7455
|
+
xxxxl: 40,
|
|
7456
|
+
xxxxxl: 60
|
|
7449
7457
|
};
|
|
7450
7458
|
var defaultTheme = {
|
|
7451
7459
|
background: '#F0F0F0',
|
|
@@ -7909,11 +7917,51 @@ var useWllSdk = function () {
|
|
|
7909
7917
|
return context;
|
|
7910
7918
|
};
|
|
7911
7919
|
|
|
7920
|
+
var clamp$1 = function (value, min, max) {
|
|
7921
|
+
return Math.min(Math.max(value, min), max);
|
|
7922
|
+
};
|
|
7923
|
+
var lerp = function (start, end, t) {
|
|
7924
|
+
return start + (end - start) * t;
|
|
7925
|
+
};
|
|
7926
|
+
var getWindowWidth = function () {
|
|
7927
|
+
if (Platform$1.OS === 'web') {
|
|
7928
|
+
return window.innerWidth;
|
|
7929
|
+
}
|
|
7930
|
+
return Dimensions.get('window').width;
|
|
7931
|
+
};
|
|
7912
7932
|
var getResponsiveValue = function (desktopValue, mobileValue, isDesktop, isTablet) {
|
|
7913
|
-
|
|
7914
|
-
|
|
7933
|
+
var width = getWindowWidth();
|
|
7934
|
+
var tabletValue = (desktopValue + mobileValue) / 2;
|
|
7935
|
+
// Desktop to Tablet scaling
|
|
7936
|
+
if (width >= TABLET_SCREEN_WIDTH) {
|
|
7937
|
+
var t = clamp$1((width - TABLET_SCREEN_WIDTH) / 300, 0, 1); // 300px scaling range
|
|
7938
|
+
return Math.round(lerp(tabletValue, desktopValue, t));
|
|
7939
|
+
}
|
|
7940
|
+
// Tablet to Mobile scaling
|
|
7941
|
+
if (width > SMALL_SCREEN_WIDTH) {
|
|
7942
|
+
var t = clamp$1((width - SMALL_SCREEN_WIDTH) / (TABLET_SCREEN_WIDTH - SMALL_SCREEN_WIDTH), 0, 1);
|
|
7943
|
+
return Math.round(lerp(mobileValue, tabletValue, t));
|
|
7944
|
+
}
|
|
7915
7945
|
return mobileValue;
|
|
7916
7946
|
};
|
|
7947
|
+
var useResponsiveValue = function (desktopValue, mobileValue, isDesktop, isTablet) {
|
|
7948
|
+
var _a = React$1.useState(function () {
|
|
7949
|
+
return getResponsiveValue(desktopValue, mobileValue);
|
|
7950
|
+
}),
|
|
7951
|
+
value = _a[0],
|
|
7952
|
+
setValue = _a[1];
|
|
7953
|
+
React$1.useEffect(function () {
|
|
7954
|
+
if (Platform$1.OS !== 'web') return;
|
|
7955
|
+
var handleResize = function () {
|
|
7956
|
+
setValue(getResponsiveValue(desktopValue, mobileValue));
|
|
7957
|
+
};
|
|
7958
|
+
window.addEventListener('resize', handleResize);
|
|
7959
|
+
return function () {
|
|
7960
|
+
return window.removeEventListener('resize', handleResize);
|
|
7961
|
+
};
|
|
7962
|
+
}, [desktopValue, mobileValue, isDesktop, isTablet]);
|
|
7963
|
+
return value;
|
|
7964
|
+
};
|
|
7917
7965
|
|
|
7918
7966
|
function createVariantSystem(baseStyle, variantStyles) {
|
|
7919
7967
|
return function (theme, variant) {
|
|
@@ -7968,14 +8016,14 @@ var Button = function (_a) {
|
|
|
7968
8016
|
button: {
|
|
7969
8017
|
justifyContent: 'center',
|
|
7970
8018
|
alignItems: 'center',
|
|
7971
|
-
paddingHorizontal:
|
|
7972
|
-
paddingVertical:
|
|
8019
|
+
paddingHorizontal: useResponsiveValue(theme.sizes.xxl, theme.sizes.sm, isDesktop, isTablet),
|
|
8020
|
+
paddingVertical: theme.sizes.sm,
|
|
7973
8021
|
alignSelf: 'flex-start'
|
|
7974
8022
|
},
|
|
7975
8023
|
text: {
|
|
7976
8024
|
textAlign: 'center',
|
|
7977
8025
|
textTransform: 'uppercase',
|
|
7978
|
-
fontSize:
|
|
8026
|
+
fontSize: useResponsiveValue(theme.sizes.xl, theme.sizes.sm, isDesktop, isTablet),
|
|
7979
8027
|
fontWeight: '700'
|
|
7980
8028
|
}
|
|
7981
8029
|
});
|
|
@@ -8013,14 +8061,15 @@ var Column$1 = function (_a) {
|
|
|
8013
8061
|
direction = _d === void 0 ? 'column' : _d,
|
|
8014
8062
|
_e = _a.style,
|
|
8015
8063
|
style = _e === void 0 ? {} : _e;
|
|
8064
|
+
var theme = useWllSdk().theme;
|
|
8016
8065
|
var _f = useResponsive$1(),
|
|
8017
8066
|
isDesktop = _f.isDesktop,
|
|
8018
8067
|
isTablet = _f.isTablet;
|
|
8019
8068
|
var dynamicStyles = StyleSheet$1.create({
|
|
8020
8069
|
column: {
|
|
8021
8070
|
flex: 1,
|
|
8022
|
-
paddingHorizontal:
|
|
8023
|
-
paddingBottom:
|
|
8071
|
+
paddingHorizontal: useResponsiveValue(theme.sizes.sm, theme.sizes.xxs, isDesktop, isTablet),
|
|
8072
|
+
paddingBottom: useResponsiveValue(theme.sizes.sm, theme.sizes.xxs, isDesktop, isTablet),
|
|
8024
8073
|
justifyContent: justifyMap$1[justify],
|
|
8025
8074
|
alignItems: alignMap$1[align],
|
|
8026
8075
|
flexDirection: direction
|
|
@@ -8089,17 +8138,17 @@ var ActivityIndicator = /*#__PURE__*/React__namespace.forwardRef((props, forward
|
|
|
8089
8138
|
"aria-valuemin": 0,
|
|
8090
8139
|
ref: forwardedRef,
|
|
8091
8140
|
role: "progressbar",
|
|
8092
|
-
style: [styles$
|
|
8141
|
+
style: [styles$h.container, style]
|
|
8093
8142
|
}), /*#__PURE__*/React__namespace.createElement(View$2, {
|
|
8094
8143
|
children: svg,
|
|
8095
8144
|
style: [typeof size === 'number' ? {
|
|
8096
8145
|
height: size,
|
|
8097
8146
|
width: size
|
|
8098
|
-
} : indicatorSizes[size], styles$
|
|
8147
|
+
} : indicatorSizes[size], styles$h.animation, !animating && styles$h.animationPause, !animating && hidesWhenStopped && styles$h.hidesWhenStopped]
|
|
8099
8148
|
}));
|
|
8100
8149
|
});
|
|
8101
8150
|
ActivityIndicator.displayName = 'ActivityIndicator';
|
|
8102
|
-
var styles$
|
|
8151
|
+
var styles$h = StyleSheet$1.create({
|
|
8103
8152
|
container: {
|
|
8104
8153
|
alignItems: 'center',
|
|
8105
8154
|
justifyContent: 'center'
|
|
@@ -8139,7 +8188,7 @@ var ActivityIndicator$1 = ActivityIndicator;
|
|
|
8139
8188
|
var LoadingIndicator = function () {
|
|
8140
8189
|
var theme = useWllSdk().theme;
|
|
8141
8190
|
return /*#__PURE__*/React__namespace.createElement(View$2, {
|
|
8142
|
-
style: [styles$
|
|
8191
|
+
style: [styles$g.container, {
|
|
8143
8192
|
borderRadius: theme.sizes.borderRadiusSm,
|
|
8144
8193
|
padding: theme.sizes.md
|
|
8145
8194
|
}]
|
|
@@ -8148,7 +8197,7 @@ var LoadingIndicator = function () {
|
|
|
8148
8197
|
color: theme.primary
|
|
8149
8198
|
}));
|
|
8150
8199
|
};
|
|
8151
|
-
var styles$
|
|
8200
|
+
var styles$g = StyleSheet$1.create({
|
|
8152
8201
|
container: {
|
|
8153
8202
|
width: '100%',
|
|
8154
8203
|
height: '100%',
|
|
@@ -8462,14 +8511,14 @@ var ScrollViewBase = /*#__PURE__*/React__namespace.forwardRef((props, forwardedR
|
|
|
8462
8511
|
onTouchMove: createPreventableScrollHandler(onTouchMove),
|
|
8463
8512
|
onWheel: createPreventableScrollHandler(onWheel),
|
|
8464
8513
|
ref: useMergeRefs$1(scrollRef, forwardedRef),
|
|
8465
|
-
style: [style, !scrollEnabled && styles$
|
|
8514
|
+
style: [style, !scrollEnabled && styles$f.scrollDisabled, hideScrollbar && styles$f.hideScrollbar]
|
|
8466
8515
|
}));
|
|
8467
8516
|
});
|
|
8468
8517
|
|
|
8469
8518
|
// Chrome doesn't support e.preventDefault in this case; touch-action must be
|
|
8470
8519
|
// used to disable scrolling.
|
|
8471
8520
|
// https://developers.google.com/web/updates/2017/01/scrolling-intervention
|
|
8472
|
-
var styles$
|
|
8521
|
+
var styles$f = StyleSheet$1.create({
|
|
8473
8522
|
scrollDisabled: {
|
|
8474
8523
|
overflowX: 'hidden',
|
|
8475
8524
|
overflowY: 'hidden',
|
|
@@ -9108,7 +9157,7 @@ let ScrollView$1 = class ScrollView extends React$1.Component {
|
|
|
9108
9157
|
var isSticky = hasStickyHeaderIndices && stickyHeaderIndices.indexOf(i) > -1;
|
|
9109
9158
|
if (child != null && (isSticky || pagingEnabled)) {
|
|
9110
9159
|
return /*#__PURE__*/React$1.createElement(View$2, {
|
|
9111
|
-
style: [isSticky && styles$
|
|
9160
|
+
style: [isSticky && styles$e.stickyHeader, pagingEnabled && styles$e.pagingEnabledChild]
|
|
9112
9161
|
}, child);
|
|
9113
9162
|
} else {
|
|
9114
9163
|
return child;
|
|
@@ -9118,10 +9167,10 @@ let ScrollView$1 = class ScrollView extends React$1.Component {
|
|
|
9118
9167
|
children: children,
|
|
9119
9168
|
collapsable: false,
|
|
9120
9169
|
ref: this._setInnerViewRef,
|
|
9121
|
-
style: [horizontal && styles$
|
|
9170
|
+
style: [horizontal && styles$e.contentContainerHorizontal, centerContent && styles$e.contentContainerCenterContent, contentContainerStyle]
|
|
9122
9171
|
}));
|
|
9123
|
-
var baseStyle = horizontal ? styles$
|
|
9124
|
-
var pagingEnabledStyle = horizontal ? styles$
|
|
9172
|
+
var baseStyle = horizontal ? styles$e.baseHorizontal : styles$e.baseVertical;
|
|
9173
|
+
var pagingEnabledStyle = horizontal ? styles$e.pagingEnabledHorizontal : styles$e.pagingEnabledVertical;
|
|
9125
9174
|
var props = _objectSpread2(_objectSpread2({}, other), {}, {
|
|
9126
9175
|
style: [baseStyle, pagingEnabled && pagingEnabledStyle, this.props.style],
|
|
9127
9176
|
onTouchStart: this.scrollResponderHandleTouchStart,
|
|
@@ -9164,7 +9213,7 @@ var commonStyle = {
|
|
|
9164
9213
|
// iOS native scrolling
|
|
9165
9214
|
WebkitOverflowScrolling: 'touch'
|
|
9166
9215
|
};
|
|
9167
|
-
var styles$
|
|
9216
|
+
var styles$e = StyleSheet$1.create({
|
|
9168
9217
|
baseVertical: _objectSpread2(_objectSpread2({}, commonStyle), {}, {
|
|
9169
9218
|
flexDirection: 'column',
|
|
9170
9219
|
overflowX: 'hidden',
|
|
@@ -10377,7 +10426,7 @@ class CellRenderer extends React__namespace.Component {
|
|
|
10377
10426
|
ItemSeparatorComponent :
|
|
10378
10427
|
// $FlowFixMe[incompatible-type]
|
|
10379
10428
|
ItemSeparatorComponent && /*#__PURE__*/React__namespace.createElement(ItemSeparatorComponent, this.state.separatorProps);
|
|
10380
|
-
var cellStyle = inversionStyle ? horizontal ? [styles$
|
|
10429
|
+
var cellStyle = inversionStyle ? horizontal ? [styles$d.rowReverse, inversionStyle] : [styles$d.columnReverse, inversionStyle] : horizontal ? [styles$d.row, inversionStyle] : inversionStyle;
|
|
10381
10430
|
var result = !CellRendererComponent ? /*#__PURE__*/React__namespace.createElement(View$2, _extends$1({
|
|
10382
10431
|
style: cellStyle,
|
|
10383
10432
|
onFocusCapture: onCellFocusCapture
|
|
@@ -10397,7 +10446,7 @@ class CellRenderer extends React__namespace.Component {
|
|
|
10397
10446
|
}, result);
|
|
10398
10447
|
}
|
|
10399
10448
|
}
|
|
10400
|
-
var styles$
|
|
10449
|
+
var styles$d = StyleSheet$1.create({
|
|
10401
10450
|
row: {
|
|
10402
10451
|
flexDirection: 'row'
|
|
10403
10452
|
},
|
|
@@ -11577,7 +11626,7 @@ class VirtualizedList extends StateSafePureComponent {
|
|
|
11577
11626
|
var _this$props6 = this.props,
|
|
11578
11627
|
data = _this$props6.data,
|
|
11579
11628
|
horizontal = _this$props6.horizontal;
|
|
11580
|
-
var inversionStyle = this.props.inverted ? horizontalOrDefault(this.props.horizontal) ? styles$
|
|
11629
|
+
var inversionStyle = this.props.inverted ? horizontalOrDefault(this.props.horizontal) ? styles$c.horizontallyInverted : styles$c.verticallyInverted : null;
|
|
11581
11630
|
var cells = [];
|
|
11582
11631
|
var stickyIndicesFromProps = new Set(this.props.stickyHeaderIndices);
|
|
11583
11632
|
var stickyHeaderIndices = [];
|
|
@@ -11741,7 +11790,7 @@ class VirtualizedList extends StateSafePureComponent {
|
|
|
11741
11790
|
}*/
|
|
11742
11791
|
if (this.props.debug) {
|
|
11743
11792
|
return /*#__PURE__*/React__namespace.createElement(View$2, {
|
|
11744
|
-
style: styles$
|
|
11793
|
+
style: styles$c.debug
|
|
11745
11794
|
}, ret, this._renderDebugOverlay());
|
|
11746
11795
|
} else {
|
|
11747
11796
|
return ret;
|
|
@@ -11858,20 +11907,20 @@ class VirtualizedList extends StateSafePureComponent {
|
|
|
11858
11907
|
var visTop = this._scrollMetrics.offset;
|
|
11859
11908
|
var visLen = this._scrollMetrics.visibleLength;
|
|
11860
11909
|
return /*#__PURE__*/React__namespace.createElement(View$2, {
|
|
11861
|
-
style: [styles$
|
|
11910
|
+
style: [styles$c.debugOverlayBase, styles$c.debugOverlay]
|
|
11862
11911
|
}, framesInLayout.map((f, ii) => /*#__PURE__*/React__namespace.createElement(View$2, {
|
|
11863
11912
|
key: 'f' + ii,
|
|
11864
|
-
style: [styles$
|
|
11913
|
+
style: [styles$c.debugOverlayBase, styles$c.debugOverlayFrame, {
|
|
11865
11914
|
top: f.offset * normalize,
|
|
11866
11915
|
height: f.length * normalize
|
|
11867
11916
|
}]
|
|
11868
11917
|
})), /*#__PURE__*/React__namespace.createElement(View$2, {
|
|
11869
|
-
style: [styles$
|
|
11918
|
+
style: [styles$c.debugOverlayBase, styles$c.debugOverlayFrameLast, {
|
|
11870
11919
|
top: windowTop * normalize,
|
|
11871
11920
|
height: windowLen * normalize
|
|
11872
11921
|
}]
|
|
11873
11922
|
}), /*#__PURE__*/React__namespace.createElement(View$2, {
|
|
11874
|
-
style: [styles$
|
|
11923
|
+
style: [styles$c.debugOverlayBase, styles$c.debugOverlayFrameVis, {
|
|
11875
11924
|
top: visTop * normalize,
|
|
11876
11925
|
height: visLen * normalize
|
|
11877
11926
|
}]
|
|
@@ -12012,7 +12061,7 @@ class VirtualizedList extends StateSafePureComponent {
|
|
|
12012
12061
|
}
|
|
12013
12062
|
}
|
|
12014
12063
|
VirtualizedList.contextType = VirtualizedListContext;
|
|
12015
|
-
var styles$
|
|
12064
|
+
var styles$c = StyleSheet$1.create({
|
|
12016
12065
|
verticallyInverted: {
|
|
12017
12066
|
transform: 'scaleY(-1)'
|
|
12018
12067
|
},
|
|
@@ -12389,7 +12438,7 @@ let FlatList$1 = class FlatList extends React__namespace.PureComponent {
|
|
|
12389
12438
|
_index = info.index;
|
|
12390
12439
|
invariant$1(Array.isArray(_item2), 'Expected array of items with numColumns > 1');
|
|
12391
12440
|
return /*#__PURE__*/React__namespace.createElement(View$2, {
|
|
12392
|
-
style: [styles$
|
|
12441
|
+
style: [styles$b.row, columnWrapperStyle]
|
|
12393
12442
|
}, _item2.map((it, kk) => {
|
|
12394
12443
|
var element = render({
|
|
12395
12444
|
// $FlowFixMe[incompatible-call]
|
|
@@ -12515,7 +12564,7 @@ let FlatList$1 = class FlatList extends React__namespace.PureComponent {
|
|
|
12515
12564
|
);
|
|
12516
12565
|
}
|
|
12517
12566
|
};
|
|
12518
|
-
var styles$
|
|
12567
|
+
var styles$b = StyleSheet$1.create({
|
|
12519
12568
|
row: {
|
|
12520
12569
|
flexDirection: 'row'
|
|
12521
12570
|
}
|
|
@@ -14902,7 +14951,7 @@ var Image$1 = /*#__PURE__*/React__namespace.forwardRef((props, ref) => {
|
|
|
14902
14951
|
// Accessibility image allows users to trigger the browser's image context menu
|
|
14903
14952
|
var hiddenImage = displayImageUri ? createElement$1('img', {
|
|
14904
14953
|
alt: ariaLabel || '',
|
|
14905
|
-
style: styles$
|
|
14954
|
+
style: styles$a.accessibilityImage$raw,
|
|
14906
14955
|
draggable: draggable || false,
|
|
14907
14956
|
ref: hiddenImageRef,
|
|
14908
14957
|
src: displayImageUri
|
|
@@ -14974,14 +15023,14 @@ var Image$1 = /*#__PURE__*/React__namespace.forwardRef((props, ref) => {
|
|
|
14974
15023
|
onLayout: handleLayout,
|
|
14975
15024
|
pointerEvents: pointerEvents,
|
|
14976
15025
|
ref: ref,
|
|
14977
|
-
style: [styles$
|
|
15026
|
+
style: [styles$a.root, hasTextAncestor && styles$a.inline, imageSizeStyle, style, styles$a.undo,
|
|
14978
15027
|
// TEMP: avoid deprecated shadow props regression
|
|
14979
15028
|
// until Image refactored to use createElement.
|
|
14980
15029
|
{
|
|
14981
15030
|
boxShadow: null
|
|
14982
15031
|
}]
|
|
14983
15032
|
}), /*#__PURE__*/React__namespace.createElement(View$2, {
|
|
14984
|
-
style: [styles$
|
|
15033
|
+
style: [styles$a.image, resizeModeStyles[resizeMode], {
|
|
14985
15034
|
backgroundImage,
|
|
14986
15035
|
filter
|
|
14987
15036
|
}, backgroundSize != null && {
|
|
@@ -15003,7 +15052,7 @@ ImageWithStatics.prefetch = function (uri) {
|
|
|
15003
15052
|
ImageWithStatics.queryCache = function (uris) {
|
|
15004
15053
|
return ImageLoader$1.queryCache(uris);
|
|
15005
15054
|
};
|
|
15006
|
-
var styles$
|
|
15055
|
+
var styles$a = StyleSheet$1.create({
|
|
15007
15056
|
root: {
|
|
15008
15057
|
flexBasis: 'auto',
|
|
15009
15058
|
overflow: 'hidden',
|
|
@@ -18029,13 +18078,13 @@ var useStyles = function (theme) {
|
|
|
18029
18078
|
var useContainerStyles = function (theme) {
|
|
18030
18079
|
return {
|
|
18031
18080
|
sm: {
|
|
18032
|
-
height: theme.sizes.
|
|
18081
|
+
height: theme.sizes.xxs
|
|
18033
18082
|
},
|
|
18034
18083
|
md: {
|
|
18035
|
-
height: theme.sizes.
|
|
18084
|
+
height: theme.sizes.xs
|
|
18036
18085
|
},
|
|
18037
18086
|
lg: {
|
|
18038
|
-
height: theme.sizes.
|
|
18087
|
+
height: theme.sizes.sm
|
|
18039
18088
|
}
|
|
18040
18089
|
};
|
|
18041
18090
|
};
|
|
@@ -18107,7 +18156,7 @@ function _extends() {
|
|
|
18107
18156
|
}, _extends.apply(null, arguments);
|
|
18108
18157
|
}
|
|
18109
18158
|
|
|
18110
|
-
var styles$
|
|
18159
|
+
var styles$9 = StyleSheet$1.create({
|
|
18111
18160
|
imageOverlay: {
|
|
18112
18161
|
position: 'absolute',
|
|
18113
18162
|
left: 0,
|
|
@@ -18133,36 +18182,36 @@ var ProgressiveImage = function (_a) {
|
|
|
18133
18182
|
var imageAnimated = React$1.useRef(new Animated$1.Value(0)).current;
|
|
18134
18183
|
var theme = useWllSdk().theme;
|
|
18135
18184
|
var onImageLoad = function () {
|
|
18136
|
-
|
|
18137
|
-
|
|
18138
|
-
|
|
18139
|
-
|
|
18140
|
-
|
|
18185
|
+
requestAnimationFrame(function () {
|
|
18186
|
+
Animated$1.timing(imageAnimated, {
|
|
18187
|
+
toValue: 1,
|
|
18188
|
+
useNativeDriver: true,
|
|
18189
|
+
duration: 300
|
|
18190
|
+
}).start();
|
|
18191
|
+
});
|
|
18141
18192
|
};
|
|
18142
18193
|
var baseColor = theme.alphaDerivedPrimary[20];
|
|
18143
18194
|
var desaturatedColor = desaturateColor(baseColor);
|
|
18195
|
+
var backgroundColor = isDesaturated ? desaturatedColor : baseColor;
|
|
18144
18196
|
return /*#__PURE__*/React$1.createElement(View$2, {
|
|
18145
|
-
style: [styles$
|
|
18146
|
-
backgroundColor:
|
|
18197
|
+
style: [styles$9.container, style, {
|
|
18198
|
+
backgroundColor: backgroundColor
|
|
18147
18199
|
}]
|
|
18148
|
-
},
|
|
18149
|
-
|
|
18150
|
-
|
|
18151
|
-
opacity: imageAnimated
|
|
18152
|
-
|
|
18153
|
-
|
|
18154
|
-
|
|
18155
|
-
|
|
18156
|
-
|
|
18157
|
-
style: [styles$a.imageOverlay, {
|
|
18158
|
-
opacity: 0.1
|
|
18159
|
-
}],
|
|
18160
|
-
onLoad: onImageLoad
|
|
18161
|
-
}))) : /*#__PURE__*/React$1.createElement(Animated$1.Image, _extends({}, props, {
|
|
18200
|
+
}, /*#__PURE__*/React$1.createElement(Animated$1.View, {
|
|
18201
|
+
style: [styles$9.imageOverlay, {
|
|
18202
|
+
backgroundColor: backgroundColor,
|
|
18203
|
+
opacity: imageAnimated.interpolate({
|
|
18204
|
+
inputRange: [0, 1],
|
|
18205
|
+
outputRange: [1, 0]
|
|
18206
|
+
})
|
|
18207
|
+
}]
|
|
18208
|
+
}), /*#__PURE__*/React$1.createElement(Animated$1.Image, _extends({}, props, {
|
|
18162
18209
|
source: source,
|
|
18163
|
-
style: [styles$
|
|
18210
|
+
style: [styles$9.imageOverlay, __assign({
|
|
18164
18211
|
opacity: imageAnimated
|
|
18165
|
-
}
|
|
18212
|
+
}, isDesaturated && {
|
|
18213
|
+
filter: "saturate(".concat(0 * 100, "%)")
|
|
18214
|
+
})],
|
|
18166
18215
|
onLoad: onImageLoad
|
|
18167
18216
|
})));
|
|
18168
18217
|
};
|
|
@@ -18174,12 +18223,13 @@ var RowHeader = function (_a) {
|
|
|
18174
18223
|
var _b = useResponsive$1(),
|
|
18175
18224
|
isDesktop = _b.isDesktop,
|
|
18176
18225
|
isTablet = _b.isTablet;
|
|
18226
|
+
var theme = useWllSdk().theme;
|
|
18177
18227
|
var dynamicStyles = StyleSheet$1.create({
|
|
18178
18228
|
header: {
|
|
18179
18229
|
flexDirection: 'row',
|
|
18180
18230
|
alignItems: 'center',
|
|
18181
18231
|
justifyContent: 'space-between',
|
|
18182
|
-
marginBottom:
|
|
18232
|
+
marginBottom: useResponsiveValue(theme.sizes.xxs, theme.sizes.xxxs, isDesktop, isTablet)
|
|
18183
18233
|
}
|
|
18184
18234
|
});
|
|
18185
18235
|
return /*#__PURE__*/React__namespace.createElement(View$2, _extends({
|
|
@@ -18204,51 +18254,38 @@ var Text = function (_a) {
|
|
|
18204
18254
|
switch (variant) {
|
|
18205
18255
|
case 'eyebrow':
|
|
18206
18256
|
return __assign(__assign({}, baseStyle), {
|
|
18207
|
-
fontSize:
|
|
18208
|
-
marginBottom:
|
|
18257
|
+
fontSize: useResponsiveValue(theme.sizes.md, theme.sizes.sm, isDesktop, isTablet),
|
|
18258
|
+
marginBottom: useResponsiveValue(theme.sizes.xxs, theme.sizes.xxxs, isDesktop, isTablet)
|
|
18209
18259
|
});
|
|
18210
18260
|
case 'title':
|
|
18211
18261
|
return __assign(__assign({}, baseStyle), {
|
|
18212
|
-
fontSize:
|
|
18262
|
+
fontSize: useResponsiveValue(theme.sizes.xxl, theme.sizes.md, isDesktop, isTablet),
|
|
18213
18263
|
fontWeight: 'bold'
|
|
18214
18264
|
});
|
|
18215
18265
|
case 'body':
|
|
18216
18266
|
return {
|
|
18217
18267
|
color: theme.derivedSurfaceText[20],
|
|
18218
|
-
fontSize:
|
|
18268
|
+
fontSize: useResponsiveValue(theme.sizes.md, theme.sizes.xs, isDesktop, isTablet)
|
|
18219
18269
|
};
|
|
18220
18270
|
case 'caption':
|
|
18221
18271
|
return __assign(__assign({}, baseStyle), {
|
|
18222
18272
|
fontWeight: 'bold',
|
|
18223
|
-
fontSize:
|
|
18273
|
+
fontSize: useResponsiveValue(theme.sizes.xxl, theme.sizes.xl, isDesktop, isTablet),
|
|
18224
18274
|
color: theme.primary
|
|
18225
18275
|
});
|
|
18226
|
-
case 'tier-earned':
|
|
18227
|
-
return __assign(__assign({}, baseStyle), {
|
|
18228
|
-
fontSize: getResponsiveValue(20, 14, isDesktop, isTablet),
|
|
18229
|
-
fontWeight: 'bold'
|
|
18230
|
-
});
|
|
18231
|
-
case 'tier-requirement':
|
|
18232
|
-
return __assign(__assign({}, baseStyle), {
|
|
18233
|
-
fontSize: getResponsiveValue(18, 12, isDesktop, isTablet),
|
|
18234
|
-
fontWeight: 'bold'
|
|
18235
|
-
});
|
|
18236
18276
|
case 'description':
|
|
18237
18277
|
case 'label':
|
|
18238
18278
|
default:
|
|
18239
18279
|
return __assign(__assign({}, baseStyle), {
|
|
18240
|
-
fontSize:
|
|
18280
|
+
fontSize: useResponsiveValue(theme.sizes.sm, theme.sizes.xs, isDesktop, isTablet)
|
|
18241
18281
|
});
|
|
18242
18282
|
}
|
|
18243
18283
|
};
|
|
18244
18284
|
var variantStyle = getVariantStyle(variant);
|
|
18245
18285
|
return /*#__PURE__*/React__namespace.createElement(Text$3, _extends({
|
|
18246
|
-
style: [
|
|
18286
|
+
style: [variantStyle, style]
|
|
18247
18287
|
}, props));
|
|
18248
18288
|
};
|
|
18249
|
-
var styles$9 = StyleSheet$1.create({
|
|
18250
|
-
base: {}
|
|
18251
|
-
});
|
|
18252
18289
|
|
|
18253
18290
|
/**
|
|
18254
18291
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
@@ -19073,7 +19110,7 @@ var BaseTileRoot = function (_a) {
|
|
|
19073
19110
|
justifyContent: 'center',
|
|
19074
19111
|
alignItems: 'center',
|
|
19075
19112
|
aspectRatio: isHalfSize ? 2 : 1,
|
|
19076
|
-
borderRadius:
|
|
19113
|
+
borderRadius: useResponsiveValue(theme.sizes.borderRadiusLg, theme.sizes.borderRadiusSm, isDesktop, isTablet)
|
|
19077
19114
|
}
|
|
19078
19115
|
});
|
|
19079
19116
|
return /*#__PURE__*/React$1.createElement(Pressable$1, {
|
|
@@ -19108,6 +19145,7 @@ var BaseTileContent = function (_a) {
|
|
|
19108
19145
|
var BaseTileHeader = function (_a) {
|
|
19109
19146
|
var children = _a.children;
|
|
19110
19147
|
var tile = useTileContext();
|
|
19148
|
+
var theme = useWllSdk().theme;
|
|
19111
19149
|
var artworkUrl = tile.configuration.artworkUrl;
|
|
19112
19150
|
var isHalfSize = useTileSize(tile).isHalfSize;
|
|
19113
19151
|
var _b = useResponsive$1(),
|
|
@@ -19117,8 +19155,8 @@ var BaseTileHeader = function (_a) {
|
|
|
19117
19155
|
if (isHalfSize && artworkUrl) return null;
|
|
19118
19156
|
var dynamicStyles = StyleSheet$1.create({
|
|
19119
19157
|
header: {
|
|
19120
|
-
marginBottom:
|
|
19121
|
-
marginTop:
|
|
19158
|
+
marginBottom: useResponsiveValue(theme.sizes.xxs, theme.sizes.xxxs, isDesktop, isTablet),
|
|
19159
|
+
marginTop: useResponsiveValue(theme.sizes.sm, theme.sizes.xxs, isDesktop, isTablet),
|
|
19122
19160
|
flexDirection: 'row',
|
|
19123
19161
|
alignItems: 'center',
|
|
19124
19162
|
justifyContent: 'space-between'
|
|
@@ -19326,14 +19364,15 @@ var useBadgeTileStyles = function () {
|
|
|
19326
19364
|
var _a = useResponsive$1(),
|
|
19327
19365
|
isDesktop = _a.isDesktop,
|
|
19328
19366
|
isTablet = _a.isTablet;
|
|
19367
|
+
var theme = useWllSdk().theme;
|
|
19329
19368
|
return StyleSheet$1.create({
|
|
19330
19369
|
container: {
|
|
19331
19370
|
flex: 1
|
|
19332
19371
|
},
|
|
19333
19372
|
indicatorContainer: {
|
|
19334
19373
|
position: 'absolute',
|
|
19335
|
-
bottom:
|
|
19336
|
-
right:
|
|
19374
|
+
bottom: useResponsiveValue(theme.sizes.lg, theme.sizes.xxs, isDesktop, isTablet),
|
|
19375
|
+
right: useResponsiveValue(theme.sizes.lg, theme.sizes.xxs, isDesktop, isTablet),
|
|
19337
19376
|
backgroundColor: 'rgba(0,0,0,0.6)',
|
|
19338
19377
|
borderRadius: 40,
|
|
19339
19378
|
width: 40,
|
|
@@ -19351,14 +19390,14 @@ var useBadgeTileStyles = function () {
|
|
|
19351
19390
|
alignItems: 'center',
|
|
19352
19391
|
justifyContent: 'center',
|
|
19353
19392
|
position: 'relative',
|
|
19354
|
-
marginBottom:
|
|
19393
|
+
marginBottom: useResponsiveValue(theme.sizes.lg, theme.sizes.xxs, isDesktop, isTablet)
|
|
19355
19394
|
},
|
|
19356
19395
|
image: {
|
|
19357
19396
|
width: '100%',
|
|
19358
19397
|
height: '100%'
|
|
19359
19398
|
},
|
|
19360
19399
|
titleText: {
|
|
19361
|
-
marginBottom:
|
|
19400
|
+
marginBottom: useResponsiveValue(theme.sizes.xxs, theme.sizes.xxxs, isDesktop, isTablet)
|
|
19362
19401
|
},
|
|
19363
19402
|
dateEarnedContainer: {
|
|
19364
19403
|
alignItems: 'flex-start',
|
|
@@ -19503,7 +19542,7 @@ var useBannerTileStyles = function () {
|
|
|
19503
19542
|
aspectRatio: 1,
|
|
19504
19543
|
position: 'relative',
|
|
19505
19544
|
overflow: 'hidden',
|
|
19506
|
-
marginRight:
|
|
19545
|
+
marginRight: useResponsiveValue(theme.sizes.xxl, theme.sizes.xxs, isDesktop, isTablet),
|
|
19507
19546
|
height: 320
|
|
19508
19547
|
},
|
|
19509
19548
|
media: {
|
|
@@ -19513,13 +19552,13 @@ var useBannerTileStyles = function () {
|
|
|
19513
19552
|
objectFit: 'cover'
|
|
19514
19553
|
},
|
|
19515
19554
|
title: {
|
|
19516
|
-
fontSize:
|
|
19517
|
-
marginBottom:
|
|
19555
|
+
fontSize: useResponsiveValue(theme.sizes.xxxl, theme.sizes.md, isDesktop, isTablet),
|
|
19556
|
+
marginBottom: useResponsiveValue(theme.sizes.sm, theme.sizes.xxxs, isDesktop, isTablet),
|
|
19518
19557
|
fontWeight: '700'
|
|
19519
19558
|
},
|
|
19520
19559
|
description: {
|
|
19521
|
-
fontSize:
|
|
19522
|
-
marginBottom:
|
|
19560
|
+
fontSize: useResponsiveValue(theme.sizes.xl, theme.sizes.xs, isDesktop, isTablet),
|
|
19561
|
+
marginBottom: useResponsiveValue(theme.sizes.xxxl, theme.sizes.sm, isDesktop, isTablet),
|
|
19523
19562
|
color: theme.derivedSurfaceText[20]
|
|
19524
19563
|
}
|
|
19525
19564
|
});
|
|
@@ -19590,12 +19629,13 @@ BannerTile.Description = BannerTileDescription;
|
|
|
19590
19629
|
BannerTile.CTA = BannerTileCTA;
|
|
19591
19630
|
|
|
19592
19631
|
var useContentTileStyles = function () {
|
|
19632
|
+
var theme = useWllSdk().theme;
|
|
19593
19633
|
var _a = useResponsive$1(),
|
|
19594
19634
|
isDesktop = _a.isDesktop,
|
|
19595
19635
|
isTablet = _a.isTablet;
|
|
19596
19636
|
return StyleSheet$1.create({
|
|
19597
19637
|
content: {
|
|
19598
|
-
paddingHorizontal:
|
|
19638
|
+
paddingHorizontal: useResponsiveValue(theme.sizes.sm, theme.sizes.xxs, isDesktop, isTablet),
|
|
19599
19639
|
flex: 1,
|
|
19600
19640
|
justifyContent: 'center'
|
|
19601
19641
|
},
|
|
@@ -19673,16 +19713,16 @@ var useSectionHeaderStyles = function () {
|
|
|
19673
19713
|
var theme = useWllSdk().theme;
|
|
19674
19714
|
return StyleSheet$1.create({
|
|
19675
19715
|
sectionHeader: {
|
|
19676
|
-
marginBottom:
|
|
19716
|
+
marginBottom: useResponsiveValue(theme.sizes.lg, theme.sizes.xxs, isDesktop, isTablet)
|
|
19677
19717
|
},
|
|
19678
19718
|
sectionTitle: {
|
|
19679
|
-
fontSize:
|
|
19680
|
-
marginBottom:
|
|
19719
|
+
fontSize: useResponsiveValue(theme.sizes.xxxl, theme.sizes.xl, isDesktop, isTablet),
|
|
19720
|
+
marginBottom: useResponsiveValue(theme.sizes.xxs, theme.sizes.xxxs, isDesktop, isTablet),
|
|
19681
19721
|
fontWeight: '700',
|
|
19682
19722
|
color: theme.text
|
|
19683
19723
|
},
|
|
19684
19724
|
sectionDescription: {
|
|
19685
|
-
fontSize:
|
|
19725
|
+
fontSize: useResponsiveValue(theme.sizes.xxl, theme.sizes.md, isDesktop, isTablet),
|
|
19686
19726
|
color: theme.alphaDerivedText[80]
|
|
19687
19727
|
}
|
|
19688
19728
|
});
|
|
@@ -19772,7 +19812,7 @@ var useCarouselStyles = function (buttonSize, slideWidth) {
|
|
|
19772
19812
|
indicators: {
|
|
19773
19813
|
flexDirection: 'row',
|
|
19774
19814
|
justifyContent: 'center',
|
|
19775
|
-
marginTop:
|
|
19815
|
+
marginTop: useResponsiveValue(theme.sizes.xxl, theme.sizes.sm, isDesktop, isTablet)
|
|
19776
19816
|
},
|
|
19777
19817
|
indicator: {
|
|
19778
19818
|
width: 8,
|
|
@@ -19836,7 +19876,7 @@ var Carousel = function (_a) {
|
|
|
19836
19876
|
indicators: {
|
|
19837
19877
|
flexDirection: 'row',
|
|
19838
19878
|
justifyContent: 'center',
|
|
19839
|
-
marginTop:
|
|
19879
|
+
marginTop: useResponsiveValue(theme.sizes.xxl, theme.sizes.sm, isDesktop, isTablet)
|
|
19840
19880
|
}
|
|
19841
19881
|
});
|
|
19842
19882
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(SectionHeader, {
|
|
@@ -20063,12 +20103,13 @@ var useSectionStyles = function () {
|
|
|
20063
20103
|
var _a = useResponsive$1(),
|
|
20064
20104
|
isDesktop = _a.isDesktop,
|
|
20065
20105
|
isTablet = _a.isTablet;
|
|
20106
|
+
var theme = useWllSdk().theme;
|
|
20066
20107
|
return StyleSheet$1.create({
|
|
20067
20108
|
section: {
|
|
20068
20109
|
width: '100%',
|
|
20069
20110
|
maxWidth: MAX_WIDTH,
|
|
20070
20111
|
marginHorizontal: 'auto',
|
|
20071
|
-
marginBottom:
|
|
20112
|
+
marginBottom: useResponsiveValue(theme.sizes.xxxxxl, theme.sizes.xxxxl, isDesktop, isTablet)
|
|
20072
20113
|
}
|
|
20073
20114
|
});
|
|
20074
20115
|
};
|
|
@@ -20168,7 +20209,7 @@ var usePointsTileStyles = function (isFullSize) {
|
|
|
20168
20209
|
var theme = useWllSdk().theme;
|
|
20169
20210
|
return StyleSheet$1.create({
|
|
20170
20211
|
container: {
|
|
20171
|
-
paddingHorizontal:
|
|
20212
|
+
paddingHorizontal: useResponsiveValue(theme.sizes.sm, theme.sizes.xxs, isDesktop, isTablet),
|
|
20172
20213
|
width: '100%',
|
|
20173
20214
|
flexDirection: isFullSize ? 'row' : 'row-reverse',
|
|
20174
20215
|
alignItems: isFullSize ? 'flex-start' : 'center',
|
|
@@ -20179,7 +20220,7 @@ var usePointsTileStyles = function (isFullSize) {
|
|
|
20179
20220
|
width: isFullSize ? '100%' : 'auto'
|
|
20180
20221
|
},
|
|
20181
20222
|
suffix: {
|
|
20182
|
-
fontSize:
|
|
20223
|
+
fontSize: useResponsiveValue(theme.sizes.xl, theme.sizes.md, isDesktop, isTablet),
|
|
20183
20224
|
color: theme.primary
|
|
20184
20225
|
},
|
|
20185
20226
|
pointsWithSuffix: {
|
|
@@ -20190,7 +20231,7 @@ var usePointsTileStyles = function (isFullSize) {
|
|
|
20190
20231
|
imageContainer: {
|
|
20191
20232
|
width: isFullSize ? '100%' : 57,
|
|
20192
20233
|
height: isFullSize ? '50%' : 57,
|
|
20193
|
-
marginBottom: isFullSize ?
|
|
20234
|
+
marginBottom: isFullSize ? useResponsiveValue(theme.sizes.sm, theme.sizes.xxs, isDesktop, isTablet) : 0,
|
|
20194
20235
|
backgroundColor: isFullSize ? theme.alphaDerivedPrimary[20] : theme.surface,
|
|
20195
20236
|
justifyContent: 'center',
|
|
20196
20237
|
alignItems: 'center',
|
|
@@ -20284,8 +20325,8 @@ var useRewardCategoryTileStyles = function () {
|
|
|
20284
20325
|
backgroundColor: theme.primary
|
|
20285
20326
|
},
|
|
20286
20327
|
headerText: {
|
|
20287
|
-
fontSize:
|
|
20288
|
-
paddingHorizontal:
|
|
20328
|
+
fontSize: useResponsiveValue(theme.sizes.lg, theme.sizes.sm, isDesktop, isTablet),
|
|
20329
|
+
paddingHorizontal: useResponsiveValue(theme.sizes.xxxxl, 20, isDesktop, isTablet),
|
|
20289
20330
|
color: theme.primaryText
|
|
20290
20331
|
},
|
|
20291
20332
|
background: {
|
|
@@ -20343,11 +20384,12 @@ var useRewardTileStyles = function () {
|
|
|
20343
20384
|
var _a = useResponsive$1(),
|
|
20344
20385
|
isDesktop = _a.isDesktop,
|
|
20345
20386
|
isTablet = _a.isTablet;
|
|
20387
|
+
var theme = useWllSdk().theme;
|
|
20346
20388
|
return StyleSheet$1.create({
|
|
20347
20389
|
imageContainer: {
|
|
20348
20390
|
width: '100%',
|
|
20349
20391
|
flexBasis: '50%',
|
|
20350
|
-
marginBottom:
|
|
20392
|
+
marginBottom: useResponsiveValue(theme.sizes.sm, theme.sizes.xxs, isDesktop, isTablet)
|
|
20351
20393
|
},
|
|
20352
20394
|
image: {
|
|
20353
20395
|
position: 'absolute',
|
|
@@ -20360,7 +20402,7 @@ var useRewardTileStyles = function () {
|
|
|
20360
20402
|
resizeMode: 'cover'
|
|
20361
20403
|
},
|
|
20362
20404
|
content: {
|
|
20363
|
-
paddingHorizontal:
|
|
20405
|
+
paddingHorizontal: useResponsiveValue(theme.sizes.sm, theme.sizes.xxs, isDesktop, isTablet),
|
|
20364
20406
|
flex: 1
|
|
20365
20407
|
},
|
|
20366
20408
|
footer: {
|
|
@@ -20372,7 +20414,7 @@ var useRewardTileStyles = function () {
|
|
|
20372
20414
|
justifyContent: 'center'
|
|
20373
20415
|
},
|
|
20374
20416
|
suffix: {
|
|
20375
|
-
fontSize:
|
|
20417
|
+
fontSize: useResponsiveValue(theme.sizes.xl, theme.sizes.md, isDesktop, isTablet)
|
|
20376
20418
|
}
|
|
20377
20419
|
});
|
|
20378
20420
|
};
|
|
@@ -20460,15 +20502,16 @@ var useTierTileStyles = function () {
|
|
|
20460
20502
|
var _a = useResponsive$1(),
|
|
20461
20503
|
isDesktop = _a.isDesktop,
|
|
20462
20504
|
isTablet = _a.isTablet;
|
|
20505
|
+
var theme = useWllSdk().theme;
|
|
20463
20506
|
return StyleSheet$1.create({
|
|
20464
20507
|
header: {
|
|
20465
20508
|
flexBasis: '50%',
|
|
20466
20509
|
width: '100%',
|
|
20467
20510
|
overflow: 'hidden',
|
|
20468
|
-
marginBottom:
|
|
20511
|
+
marginBottom: useResponsiveValue(theme.sizes.sm, theme.sizes.xxs, isDesktop, isTablet)
|
|
20469
20512
|
},
|
|
20470
20513
|
title: {
|
|
20471
|
-
marginBottom:
|
|
20514
|
+
marginBottom: useResponsiveValue(theme.sizes.xxs, theme.sizes.xxxs, isDesktop, isTablet)
|
|
20472
20515
|
},
|
|
20473
20516
|
smallImageContainer: {
|
|
20474
20517
|
width: 48,
|
|
@@ -20712,14 +20755,15 @@ var Column = function (_a) {
|
|
|
20712
20755
|
var _d = useResponsive$1(),
|
|
20713
20756
|
isDesktop = _d.isDesktop,
|
|
20714
20757
|
isTablet = _d.isTablet;
|
|
20758
|
+
var theme = useWllSdk().theme;
|
|
20715
20759
|
return /*#__PURE__*/React.createElement(View$2, {
|
|
20716
20760
|
style: [{
|
|
20717
20761
|
flex: 1,
|
|
20718
20762
|
flexDirection: 'column',
|
|
20719
20763
|
justifyContent: justifyMap[justify],
|
|
20720
20764
|
alignItems: alignMap[align],
|
|
20721
|
-
paddingHorizontal:
|
|
20722
|
-
paddingBottom:
|
|
20765
|
+
paddingHorizontal: useResponsiveValue(theme.sizes.sm, theme.sizes.xxs, isDesktop, isTablet),
|
|
20766
|
+
paddingBottom: useResponsiveValue(theme.sizes.sm, theme.sizes.xxs, isDesktop, isTablet)
|
|
20723
20767
|
}, style]
|
|
20724
20768
|
}, children);
|
|
20725
20769
|
};
|