@wlloyalty/wll-react-sdk 1.0.23 → 1.0.25
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/README.md +21 -18
- package/dist/index.d.ts +13 -3
- package/dist/index.js +258 -117
- 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$x.textHasAncestor$raw : styles$x.text$raw, numberOfLines === 1 && styles$x.textOneLine, numberOfLines != null && numberOfLines > 1 && styles$x.textMultiLine, props.style, selectable === true && styles$x.selectable, selectable === false && styles$x.notSelectable, onPress && styles$x.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$x = 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$w.view$raw, hasTextAncestor && styles$w.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$w = 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$v.root, !disabled && styles$v.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$v = StyleSheet$1.create({
|
|
7213
7213
|
root: {
|
|
7214
7214
|
transitionProperty: 'opacity',
|
|
7215
7215
|
transitionDuration: '0.15s',
|
|
@@ -7496,6 +7496,45 @@ var desaturateColor = function (color) {
|
|
|
7496
7496
|
var getStateColor = function (baseColor, type, count) {
|
|
7497
7497
|
return shouldDesaturate(type, count) ? desaturateColor(baseColor) : baseColor;
|
|
7498
7498
|
};
|
|
7499
|
+
// Storybook Themes
|
|
7500
|
+
({
|
|
7501
|
+
modern: __assign(__assign({}, defaultTheme), {
|
|
7502
|
+
primary: '#f72585',
|
|
7503
|
+
accent: '#ffc300',
|
|
7504
|
+
background: '#e5e5e5',
|
|
7505
|
+
surface: '#f4f3ee',
|
|
7506
|
+
surfaceText: '#f72585'
|
|
7507
|
+
}),
|
|
7508
|
+
warm: __assign(__assign({}, defaultTheme), {
|
|
7509
|
+
primary: '#014F5C',
|
|
7510
|
+
accent: '#F38A51',
|
|
7511
|
+
background: '#BE9C80',
|
|
7512
|
+
surface: '#F1CFB3',
|
|
7513
|
+
surfaceText: '#014F5C'
|
|
7514
|
+
}),
|
|
7515
|
+
dark: __assign(__assign({}, defaultTheme), {
|
|
7516
|
+
background: '#1e1e1e',
|
|
7517
|
+
text: '#ffffff',
|
|
7518
|
+
primary: '#ffbe0b',
|
|
7519
|
+
accent: '#d00000',
|
|
7520
|
+
surface: '#2f3037',
|
|
7521
|
+
surfaceText: '#ffffff'
|
|
7522
|
+
}),
|
|
7523
|
+
forest: __assign(__assign({}, defaultTheme), {
|
|
7524
|
+
primary: '#354f52',
|
|
7525
|
+
accent: '#84a98c',
|
|
7526
|
+
background: '#f0f4f0',
|
|
7527
|
+
surface: '#cad2c5',
|
|
7528
|
+
surfaceText: '#2d3436'
|
|
7529
|
+
}),
|
|
7530
|
+
sunset: __assign(__assign({}, defaultTheme), {
|
|
7531
|
+
primary: '#c32f27',
|
|
7532
|
+
accent: '#db7c26',
|
|
7533
|
+
background: '#f9edcc',
|
|
7534
|
+
surface: '#f0dfad',
|
|
7535
|
+
surfaceText: '#2d3436'
|
|
7536
|
+
})
|
|
7537
|
+
});
|
|
7499
7538
|
|
|
7500
7539
|
var createTheme = function (baseTheme) {
|
|
7501
7540
|
if (baseTheme === void 0) {
|
|
@@ -7535,6 +7574,9 @@ var WllSdkProvider = function (_a) {
|
|
|
7535
7574
|
}),
|
|
7536
7575
|
theme = _c[0],
|
|
7537
7576
|
setThemeState = _c[1];
|
|
7577
|
+
React.useEffect(function () {
|
|
7578
|
+
setThemeState(createTheme(providedTheme || {}));
|
|
7579
|
+
}, [providedTheme]);
|
|
7538
7580
|
var setTheme = React.useCallback(function (newTheme) {
|
|
7539
7581
|
setThemeState(function (prevTheme) {
|
|
7540
7582
|
return createTheme(__assign(__assign({}, prevTheme), newTheme));
|
|
@@ -7772,7 +7814,7 @@ function createVariantSystem(baseStyle, variantStyles) {
|
|
|
7772
7814
|
};
|
|
7773
7815
|
}
|
|
7774
7816
|
|
|
7775
|
-
var styles$
|
|
7817
|
+
var styles$u = StyleSheet$1.create({
|
|
7776
7818
|
button: createResponsiveStyle({
|
|
7777
7819
|
justifyContent: 'center',
|
|
7778
7820
|
alignItems: 'center',
|
|
@@ -7787,7 +7829,7 @@ var styles$s = StyleSheet$1.create({
|
|
|
7787
7829
|
fontSize: [12, 12, 18]
|
|
7788
7830
|
})
|
|
7789
7831
|
});
|
|
7790
|
-
var useButtonStyles = createVariantSystem(styles$
|
|
7832
|
+
var useButtonStyles = createVariantSystem(styles$u.button, function (theme) {
|
|
7791
7833
|
return {
|
|
7792
7834
|
primary: {
|
|
7793
7835
|
backgroundColor: theme.primary
|
|
@@ -7803,7 +7845,7 @@ var useButtonStyles = createVariantSystem(styles$s.button, function (theme) {
|
|
|
7803
7845
|
}
|
|
7804
7846
|
};
|
|
7805
7847
|
});
|
|
7806
|
-
var useTextStyles = createVariantSystem(styles$
|
|
7848
|
+
var useTextStyles = createVariantSystem(styles$u.text, function (theme) {
|
|
7807
7849
|
return {
|
|
7808
7850
|
primary: {
|
|
7809
7851
|
color: theme.primaryText
|
|
@@ -7863,14 +7905,14 @@ var Column = function (_a) {
|
|
|
7863
7905
|
_e = _a.style,
|
|
7864
7906
|
style = _e === void 0 ? {} : _e;
|
|
7865
7907
|
return /*#__PURE__*/React__namespace.createElement(View$2, {
|
|
7866
|
-
style: [styles$
|
|
7908
|
+
style: [styles$t.column, {
|
|
7867
7909
|
justifyContent: justifyMap[justify],
|
|
7868
7910
|
alignItems: alignMap[align],
|
|
7869
7911
|
flexDirection: direction
|
|
7870
7912
|
}, style]
|
|
7871
7913
|
}, children);
|
|
7872
7914
|
};
|
|
7873
|
-
var styles$
|
|
7915
|
+
var styles$t = StyleSheet$1.create({
|
|
7874
7916
|
column: __assign({
|
|
7875
7917
|
flex: 1
|
|
7876
7918
|
}, createResponsiveStyle({
|
|
@@ -7937,17 +7979,17 @@ var ActivityIndicator = /*#__PURE__*/React__namespace.forwardRef((props, forward
|
|
|
7937
7979
|
"aria-valuemin": 0,
|
|
7938
7980
|
ref: forwardedRef,
|
|
7939
7981
|
role: "progressbar",
|
|
7940
|
-
style: [styles$
|
|
7982
|
+
style: [styles$s.container, style]
|
|
7941
7983
|
}), /*#__PURE__*/React__namespace.createElement(View$2, {
|
|
7942
7984
|
children: svg,
|
|
7943
7985
|
style: [typeof size === 'number' ? {
|
|
7944
7986
|
height: size,
|
|
7945
7987
|
width: size
|
|
7946
|
-
} : indicatorSizes[size], styles$
|
|
7988
|
+
} : indicatorSizes[size], styles$s.animation, !animating && styles$s.animationPause, !animating && hidesWhenStopped && styles$s.hidesWhenStopped]
|
|
7947
7989
|
}));
|
|
7948
7990
|
});
|
|
7949
7991
|
ActivityIndicator.displayName = 'ActivityIndicator';
|
|
7950
|
-
var styles$
|
|
7992
|
+
var styles$s = StyleSheet$1.create({
|
|
7951
7993
|
container: {
|
|
7952
7994
|
alignItems: 'center',
|
|
7953
7995
|
justifyContent: 'center'
|
|
@@ -7987,7 +8029,7 @@ var ActivityIndicator$1 = ActivityIndicator;
|
|
|
7987
8029
|
var LoadingIndicator = function () {
|
|
7988
8030
|
var theme = useWllSdk().theme;
|
|
7989
8031
|
return /*#__PURE__*/React__namespace.createElement(View$2, {
|
|
7990
|
-
style: [styles$
|
|
8032
|
+
style: [styles$r.container, {
|
|
7991
8033
|
borderRadius: theme.sizes.borderRadiusSm,
|
|
7992
8034
|
padding: theme.sizes.md
|
|
7993
8035
|
}]
|
|
@@ -7996,7 +8038,7 @@ var LoadingIndicator = function () {
|
|
|
7996
8038
|
color: theme.primary
|
|
7997
8039
|
}));
|
|
7998
8040
|
};
|
|
7999
|
-
var styles$
|
|
8041
|
+
var styles$r = StyleSheet$1.create({
|
|
8000
8042
|
container: {
|
|
8001
8043
|
width: '100%',
|
|
8002
8044
|
height: '100%',
|
|
@@ -8332,14 +8374,14 @@ var ScrollViewBase = /*#__PURE__*/React__namespace.forwardRef((props, forwardedR
|
|
|
8332
8374
|
onTouchMove: createPreventableScrollHandler(onTouchMove),
|
|
8333
8375
|
onWheel: createPreventableScrollHandler(onWheel),
|
|
8334
8376
|
ref: useMergeRefs$1(scrollRef, forwardedRef),
|
|
8335
|
-
style: [style, !scrollEnabled && styles$
|
|
8377
|
+
style: [style, !scrollEnabled && styles$q.scrollDisabled, hideScrollbar && styles$q.hideScrollbar]
|
|
8336
8378
|
}));
|
|
8337
8379
|
});
|
|
8338
8380
|
|
|
8339
8381
|
// Chrome doesn't support e.preventDefault in this case; touch-action must be
|
|
8340
8382
|
// used to disable scrolling.
|
|
8341
8383
|
// https://developers.google.com/web/updates/2017/01/scrolling-intervention
|
|
8342
|
-
var styles$
|
|
8384
|
+
var styles$q = StyleSheet$1.create({
|
|
8343
8385
|
scrollDisabled: {
|
|
8344
8386
|
overflowX: 'hidden',
|
|
8345
8387
|
overflowY: 'hidden',
|
|
@@ -8978,7 +9020,7 @@ let ScrollView$1 = class ScrollView extends React.Component {
|
|
|
8978
9020
|
var isSticky = hasStickyHeaderIndices && stickyHeaderIndices.indexOf(i) > -1;
|
|
8979
9021
|
if (child != null && (isSticky || pagingEnabled)) {
|
|
8980
9022
|
return /*#__PURE__*/React.createElement(View$2, {
|
|
8981
|
-
style: [isSticky && styles$
|
|
9023
|
+
style: [isSticky && styles$p.stickyHeader, pagingEnabled && styles$p.pagingEnabledChild]
|
|
8982
9024
|
}, child);
|
|
8983
9025
|
} else {
|
|
8984
9026
|
return child;
|
|
@@ -8988,10 +9030,10 @@ let ScrollView$1 = class ScrollView extends React.Component {
|
|
|
8988
9030
|
children: children,
|
|
8989
9031
|
collapsable: false,
|
|
8990
9032
|
ref: this._setInnerViewRef,
|
|
8991
|
-
style: [horizontal && styles$
|
|
9033
|
+
style: [horizontal && styles$p.contentContainerHorizontal, centerContent && styles$p.contentContainerCenterContent, contentContainerStyle]
|
|
8992
9034
|
}));
|
|
8993
|
-
var baseStyle = horizontal ? styles$
|
|
8994
|
-
var pagingEnabledStyle = horizontal ? styles$
|
|
9035
|
+
var baseStyle = horizontal ? styles$p.baseHorizontal : styles$p.baseVertical;
|
|
9036
|
+
var pagingEnabledStyle = horizontal ? styles$p.pagingEnabledHorizontal : styles$p.pagingEnabledVertical;
|
|
8995
9037
|
var props = _objectSpread2(_objectSpread2({}, other), {}, {
|
|
8996
9038
|
style: [baseStyle, pagingEnabled && pagingEnabledStyle, this.props.style],
|
|
8997
9039
|
onTouchStart: this.scrollResponderHandleTouchStart,
|
|
@@ -9034,7 +9076,7 @@ var commonStyle = {
|
|
|
9034
9076
|
// iOS native scrolling
|
|
9035
9077
|
WebkitOverflowScrolling: 'touch'
|
|
9036
9078
|
};
|
|
9037
|
-
var styles$
|
|
9079
|
+
var styles$p = StyleSheet$1.create({
|
|
9038
9080
|
baseVertical: _objectSpread2(_objectSpread2({}, commonStyle), {}, {
|
|
9039
9081
|
flexDirection: 'column',
|
|
9040
9082
|
overflowX: 'hidden',
|
|
@@ -10247,7 +10289,7 @@ class CellRenderer extends React__namespace.Component {
|
|
|
10247
10289
|
ItemSeparatorComponent :
|
|
10248
10290
|
// $FlowFixMe[incompatible-type]
|
|
10249
10291
|
ItemSeparatorComponent && /*#__PURE__*/React__namespace.createElement(ItemSeparatorComponent, this.state.separatorProps);
|
|
10250
|
-
var cellStyle = inversionStyle ? horizontal ? [styles$
|
|
10292
|
+
var cellStyle = inversionStyle ? horizontal ? [styles$o.rowReverse, inversionStyle] : [styles$o.columnReverse, inversionStyle] : horizontal ? [styles$o.row, inversionStyle] : inversionStyle;
|
|
10251
10293
|
var result = !CellRendererComponent ? /*#__PURE__*/React__namespace.createElement(View$2, _extends$1({
|
|
10252
10294
|
style: cellStyle,
|
|
10253
10295
|
onFocusCapture: onCellFocusCapture
|
|
@@ -10267,7 +10309,7 @@ class CellRenderer extends React__namespace.Component {
|
|
|
10267
10309
|
}, result);
|
|
10268
10310
|
}
|
|
10269
10311
|
}
|
|
10270
|
-
var styles$
|
|
10312
|
+
var styles$o = StyleSheet$1.create({
|
|
10271
10313
|
row: {
|
|
10272
10314
|
flexDirection: 'row'
|
|
10273
10315
|
},
|
|
@@ -11447,7 +11489,7 @@ class VirtualizedList extends StateSafePureComponent {
|
|
|
11447
11489
|
var _this$props6 = this.props,
|
|
11448
11490
|
data = _this$props6.data,
|
|
11449
11491
|
horizontal = _this$props6.horizontal;
|
|
11450
|
-
var inversionStyle = this.props.inverted ? horizontalOrDefault(this.props.horizontal) ? styles$
|
|
11492
|
+
var inversionStyle = this.props.inverted ? horizontalOrDefault(this.props.horizontal) ? styles$n.horizontallyInverted : styles$n.verticallyInverted : null;
|
|
11451
11493
|
var cells = [];
|
|
11452
11494
|
var stickyIndicesFromProps = new Set(this.props.stickyHeaderIndices);
|
|
11453
11495
|
var stickyHeaderIndices = [];
|
|
@@ -11611,7 +11653,7 @@ class VirtualizedList extends StateSafePureComponent {
|
|
|
11611
11653
|
}*/
|
|
11612
11654
|
if (this.props.debug) {
|
|
11613
11655
|
return /*#__PURE__*/React__namespace.createElement(View$2, {
|
|
11614
|
-
style: styles$
|
|
11656
|
+
style: styles$n.debug
|
|
11615
11657
|
}, ret, this._renderDebugOverlay());
|
|
11616
11658
|
} else {
|
|
11617
11659
|
return ret;
|
|
@@ -11728,20 +11770,20 @@ class VirtualizedList extends StateSafePureComponent {
|
|
|
11728
11770
|
var visTop = this._scrollMetrics.offset;
|
|
11729
11771
|
var visLen = this._scrollMetrics.visibleLength;
|
|
11730
11772
|
return /*#__PURE__*/React__namespace.createElement(View$2, {
|
|
11731
|
-
style: [styles$
|
|
11773
|
+
style: [styles$n.debugOverlayBase, styles$n.debugOverlay]
|
|
11732
11774
|
}, framesInLayout.map((f, ii) => /*#__PURE__*/React__namespace.createElement(View$2, {
|
|
11733
11775
|
key: 'f' + ii,
|
|
11734
|
-
style: [styles$
|
|
11776
|
+
style: [styles$n.debugOverlayBase, styles$n.debugOverlayFrame, {
|
|
11735
11777
|
top: f.offset * normalize,
|
|
11736
11778
|
height: f.length * normalize
|
|
11737
11779
|
}]
|
|
11738
11780
|
})), /*#__PURE__*/React__namespace.createElement(View$2, {
|
|
11739
|
-
style: [styles$
|
|
11781
|
+
style: [styles$n.debugOverlayBase, styles$n.debugOverlayFrameLast, {
|
|
11740
11782
|
top: windowTop * normalize,
|
|
11741
11783
|
height: windowLen * normalize
|
|
11742
11784
|
}]
|
|
11743
11785
|
}), /*#__PURE__*/React__namespace.createElement(View$2, {
|
|
11744
|
-
style: [styles$
|
|
11786
|
+
style: [styles$n.debugOverlayBase, styles$n.debugOverlayFrameVis, {
|
|
11745
11787
|
top: visTop * normalize,
|
|
11746
11788
|
height: visLen * normalize
|
|
11747
11789
|
}]
|
|
@@ -11882,7 +11924,7 @@ class VirtualizedList extends StateSafePureComponent {
|
|
|
11882
11924
|
}
|
|
11883
11925
|
}
|
|
11884
11926
|
VirtualizedList.contextType = VirtualizedListContext;
|
|
11885
|
-
var styles$
|
|
11927
|
+
var styles$n = StyleSheet$1.create({
|
|
11886
11928
|
verticallyInverted: {
|
|
11887
11929
|
transform: 'scaleY(-1)'
|
|
11888
11930
|
},
|
|
@@ -12259,7 +12301,7 @@ let FlatList$1 = class FlatList extends React__namespace.PureComponent {
|
|
|
12259
12301
|
_index = info.index;
|
|
12260
12302
|
invariant$1(Array.isArray(_item2), 'Expected array of items with numColumns > 1');
|
|
12261
12303
|
return /*#__PURE__*/React__namespace.createElement(View$2, {
|
|
12262
|
-
style: [styles$
|
|
12304
|
+
style: [styles$m.row, columnWrapperStyle]
|
|
12263
12305
|
}, _item2.map((it, kk) => {
|
|
12264
12306
|
var element = render({
|
|
12265
12307
|
// $FlowFixMe[incompatible-call]
|
|
@@ -12385,7 +12427,7 @@ let FlatList$1 = class FlatList extends React__namespace.PureComponent {
|
|
|
12385
12427
|
);
|
|
12386
12428
|
}
|
|
12387
12429
|
};
|
|
12388
|
-
var styles$
|
|
12430
|
+
var styles$m = StyleSheet$1.create({
|
|
12389
12431
|
row: {
|
|
12390
12432
|
flexDirection: 'row'
|
|
12391
12433
|
}
|
|
@@ -14772,7 +14814,7 @@ var Image$1 = /*#__PURE__*/React__namespace.forwardRef((props, ref) => {
|
|
|
14772
14814
|
// Accessibility image allows users to trigger the browser's image context menu
|
|
14773
14815
|
var hiddenImage = displayImageUri ? createElement$1('img', {
|
|
14774
14816
|
alt: ariaLabel || '',
|
|
14775
|
-
style: styles$
|
|
14817
|
+
style: styles$l.accessibilityImage$raw,
|
|
14776
14818
|
draggable: draggable || false,
|
|
14777
14819
|
ref: hiddenImageRef,
|
|
14778
14820
|
src: displayImageUri
|
|
@@ -14844,14 +14886,14 @@ var Image$1 = /*#__PURE__*/React__namespace.forwardRef((props, ref) => {
|
|
|
14844
14886
|
onLayout: handleLayout,
|
|
14845
14887
|
pointerEvents: pointerEvents,
|
|
14846
14888
|
ref: ref,
|
|
14847
|
-
style: [styles$
|
|
14889
|
+
style: [styles$l.root, hasTextAncestor && styles$l.inline, imageSizeStyle, style, styles$l.undo,
|
|
14848
14890
|
// TEMP: avoid deprecated shadow props regression
|
|
14849
14891
|
// until Image refactored to use createElement.
|
|
14850
14892
|
{
|
|
14851
14893
|
boxShadow: null
|
|
14852
14894
|
}]
|
|
14853
14895
|
}), /*#__PURE__*/React__namespace.createElement(View$2, {
|
|
14854
|
-
style: [styles$
|
|
14896
|
+
style: [styles$l.image, resizeModeStyles[resizeMode], {
|
|
14855
14897
|
backgroundImage,
|
|
14856
14898
|
filter
|
|
14857
14899
|
}, backgroundSize != null && {
|
|
@@ -14873,7 +14915,7 @@ ImageWithStatics.prefetch = function (uri) {
|
|
|
14873
14915
|
ImageWithStatics.queryCache = function (uris) {
|
|
14874
14916
|
return ImageLoader$1.queryCache(uris);
|
|
14875
14917
|
};
|
|
14876
|
-
var styles$
|
|
14918
|
+
var styles$l = StyleSheet$1.create({
|
|
14877
14919
|
root: {
|
|
14878
14920
|
flexBasis: 'auto',
|
|
14879
14921
|
overflow: 'hidden',
|
|
@@ -17977,7 +18019,7 @@ function _extends() {
|
|
|
17977
18019
|
}, _extends.apply(null, arguments);
|
|
17978
18020
|
}
|
|
17979
18021
|
|
|
17980
|
-
var styles$
|
|
18022
|
+
var styles$k = StyleSheet$1.create({
|
|
17981
18023
|
imageOverlay: {
|
|
17982
18024
|
position: 'absolute',
|
|
17983
18025
|
left: 0,
|
|
@@ -18012,25 +18054,25 @@ var ProgressiveImage = function (_a) {
|
|
|
18012
18054
|
var baseColor = theme.alphaDerivedPrimary[20];
|
|
18013
18055
|
var desaturatedColor = desaturateColor(baseColor);
|
|
18014
18056
|
return /*#__PURE__*/React.createElement(View$2, {
|
|
18015
|
-
style: [styles$
|
|
18057
|
+
style: [styles$k.container, style, {
|
|
18016
18058
|
backgroundColor: isDesaturated ? desaturatedColor : baseColor
|
|
18017
18059
|
}]
|
|
18018
18060
|
}, isDesaturated ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Animated$1.Image, _extends({}, props, {
|
|
18019
18061
|
source: source,
|
|
18020
|
-
style: [styles$
|
|
18062
|
+
style: [styles$k.imageOverlay, {
|
|
18021
18063
|
opacity: imageAnimated,
|
|
18022
18064
|
tintColor: desaturatedColor
|
|
18023
18065
|
}],
|
|
18024
18066
|
onLoad: onImageLoad
|
|
18025
18067
|
})), /*#__PURE__*/React.createElement(Animated$1.Image, _extends({}, props, {
|
|
18026
18068
|
source: source,
|
|
18027
|
-
style: [styles$
|
|
18069
|
+
style: [styles$k.imageOverlay, {
|
|
18028
18070
|
opacity: 0.1
|
|
18029
18071
|
}],
|
|
18030
18072
|
onLoad: onImageLoad
|
|
18031
18073
|
}))) : /*#__PURE__*/React.createElement(Animated$1.Image, _extends({}, props, {
|
|
18032
18074
|
source: source,
|
|
18033
|
-
style: [styles$
|
|
18075
|
+
style: [styles$k.imageOverlay, {
|
|
18034
18076
|
opacity: imageAnimated
|
|
18035
18077
|
}],
|
|
18036
18078
|
onLoad: onImageLoad
|
|
@@ -18042,10 +18084,10 @@ var RowHeader = function (_a) {
|
|
|
18042
18084
|
style = _a.style,
|
|
18043
18085
|
props = __rest(_a, ["children", "style"]);
|
|
18044
18086
|
return /*#__PURE__*/React__namespace.createElement(View$2, _extends({
|
|
18045
|
-
style: [styles$
|
|
18087
|
+
style: [styles$j.header, style]
|
|
18046
18088
|
}, props), children);
|
|
18047
18089
|
};
|
|
18048
|
-
var styles$
|
|
18090
|
+
var styles$j = StyleSheet$1.create({
|
|
18049
18091
|
header: createResponsiveStyle({
|
|
18050
18092
|
flexDirection: 'row',
|
|
18051
18093
|
alignItems: 'center',
|
|
@@ -18107,10 +18149,10 @@ var Text = function (_a) {
|
|
|
18107
18149
|
};
|
|
18108
18150
|
var variantStyle = getVariantStyle(variant);
|
|
18109
18151
|
return /*#__PURE__*/React__namespace.createElement(Text$3, _extends({
|
|
18110
|
-
style: [styles$
|
|
18152
|
+
style: [styles$i.base, variantStyle, style]
|
|
18111
18153
|
}, props));
|
|
18112
18154
|
};
|
|
18113
|
-
var styles$
|
|
18155
|
+
var styles$i = StyleSheet$1.create({
|
|
18114
18156
|
base: {}
|
|
18115
18157
|
});
|
|
18116
18158
|
|
|
@@ -18673,7 +18715,7 @@ function Pressable(props, forwardedRef) {
|
|
|
18673
18715
|
onFocus: focusHandler,
|
|
18674
18716
|
onKeyDown: keyDownHandler,
|
|
18675
18717
|
ref: setRef,
|
|
18676
|
-
style: [disabled ? styles$
|
|
18718
|
+
style: [disabled ? styles$h.disabled : styles$h.active, typeof style === 'function' ? style(interactionState) : style],
|
|
18677
18719
|
tabIndex: _tabIndex
|
|
18678
18720
|
}), typeof children === 'function' ? children(interactionState) : children);
|
|
18679
18721
|
}
|
|
@@ -18683,7 +18725,7 @@ function useForceableState(forced) {
|
|
|
18683
18725
|
setBool = _useState[1];
|
|
18684
18726
|
return [bool || forced, setBool];
|
|
18685
18727
|
}
|
|
18686
|
-
var styles$
|
|
18728
|
+
var styles$h = StyleSheet$1.create({
|
|
18687
18729
|
active: {
|
|
18688
18730
|
cursor: 'pointer',
|
|
18689
18731
|
touchAction: 'manipulation'
|
|
@@ -18728,7 +18770,7 @@ var BaseBanner = function (_a) {
|
|
|
18728
18770
|
}, /*#__PURE__*/React__namespace.createElement(Pressable$1, {
|
|
18729
18771
|
style: function (_a) {
|
|
18730
18772
|
var pressed = _a.pressed;
|
|
18731
|
-
return [styles$
|
|
18773
|
+
return [styles$g.container, {
|
|
18732
18774
|
backgroundColor: theme.surface,
|
|
18733
18775
|
borderRadius: theme.sizes.borderRadiusLg,
|
|
18734
18776
|
opacity: pressed ? 0.7 : 1
|
|
@@ -18741,7 +18783,7 @@ var BaseBanner = function (_a) {
|
|
|
18741
18783
|
accessibilityLabel: "".concat(title).concat(ctaLink ? ' - Click to open' : '')
|
|
18742
18784
|
}, children));
|
|
18743
18785
|
};
|
|
18744
|
-
var styles$
|
|
18786
|
+
var styles$g = StyleSheet$1.create({
|
|
18745
18787
|
container: {
|
|
18746
18788
|
width: '100%',
|
|
18747
18789
|
maxWidth: 1080,
|
|
@@ -18880,6 +18922,7 @@ var TierTileConfig = /** @class */function () {
|
|
|
18880
18922
|
this.emptyArtworkUrl = '';
|
|
18881
18923
|
this.pointsToTierPrefix = '';
|
|
18882
18924
|
this.pointsToTierSuffix = '';
|
|
18925
|
+
this.locale = 'en';
|
|
18883
18926
|
}
|
|
18884
18927
|
return TierTileConfig;
|
|
18885
18928
|
}();
|
|
@@ -18930,7 +18973,7 @@ var BaseTileRoot = function (_a) {
|
|
|
18930
18973
|
return /*#__PURE__*/React.createElement(Pressable$1, {
|
|
18931
18974
|
style: function (_a) {
|
|
18932
18975
|
var pressed = _a.pressed;
|
|
18933
|
-
return [styles$
|
|
18976
|
+
return [styles$f.container, {
|
|
18934
18977
|
backgroundColor: theme.surface,
|
|
18935
18978
|
borderRadius: responsiveStyles.borderRadius,
|
|
18936
18979
|
aspectRatio: isHalfSize ? 2 : 1,
|
|
@@ -18952,7 +18995,7 @@ var BaseTileContent = function (_a) {
|
|
|
18952
18995
|
// For half tiles with an image, don't show other content
|
|
18953
18996
|
if (isHalfSize && artworkUrl) return null;
|
|
18954
18997
|
return /*#__PURE__*/React.createElement(View$2, {
|
|
18955
|
-
style: [styles$
|
|
18998
|
+
style: [styles$f.content, isHalfSize && {
|
|
18956
18999
|
justifyContent: 'center'
|
|
18957
19000
|
}]
|
|
18958
19001
|
}, children);
|
|
@@ -18968,7 +19011,7 @@ var BaseTileHeader = function (_a) {
|
|
|
18968
19011
|
marginTop: [8, 8, 12]
|
|
18969
19012
|
});
|
|
18970
19013
|
return /*#__PURE__*/React.createElement(View$2, {
|
|
18971
|
-
style: [styles$
|
|
19014
|
+
style: [styles$f.header, {
|
|
18972
19015
|
marginTop: !isHalfSize && artworkUrl ? headerStyle.marginTop : undefined,
|
|
18973
19016
|
// @ts-ignore
|
|
18974
19017
|
textAlign: isHalfSize && 'center'
|
|
@@ -18981,16 +19024,16 @@ var BaseTileMedia = function (props) {
|
|
|
18981
19024
|
var _a = tile.configuration,
|
|
18982
19025
|
artworkUrl = _a.artworkUrl,
|
|
18983
19026
|
title = _a.title,
|
|
18984
|
-
|
|
19027
|
+
body = _a.body;
|
|
18985
19028
|
var isHalfSize = useTileSize(tile).isHalfSize;
|
|
18986
19029
|
if (!artworkUrl) return null;
|
|
18987
19030
|
var hasTitle = !!title;
|
|
18988
|
-
var hasDescription = !!
|
|
19031
|
+
var hasDescription = !!body;
|
|
18989
19032
|
return /*#__PURE__*/React.createElement(ProgressiveImage, _extends({}, props, {
|
|
18990
19033
|
source: {
|
|
18991
19034
|
uri: artworkUrl
|
|
18992
19035
|
},
|
|
18993
|
-
style: [props.style, styles$
|
|
19036
|
+
style: [props.style, styles$f.media, {
|
|
18994
19037
|
flexBasis: !isHalfSize && hasTitle && hasDescription ? '50%' : '100%',
|
|
18995
19038
|
height: isHalfSize ? '100%' : undefined
|
|
18996
19039
|
}]
|
|
@@ -19017,15 +19060,15 @@ var BaseTileTitle = function () {
|
|
|
19017
19060
|
var BaseTileBody = function (props) {
|
|
19018
19061
|
var tile = useTileContext();
|
|
19019
19062
|
var _a = tile.configuration,
|
|
19020
|
-
|
|
19063
|
+
body = _a.body,
|
|
19021
19064
|
artworkUrl = _a.artworkUrl;
|
|
19022
19065
|
var isHalfSize = useTileSize(tile).isHalfSize;
|
|
19023
|
-
if (isHalfSize && artworkUrl || !
|
|
19066
|
+
if (isHalfSize && artworkUrl || !body) return null;
|
|
19024
19067
|
return /*#__PURE__*/React.createElement(Text, _extends({
|
|
19025
19068
|
variant: "body"
|
|
19026
19069
|
}, props, {
|
|
19027
|
-
accessibilityLabel:
|
|
19028
|
-
}),
|
|
19070
|
+
accessibilityLabel: body
|
|
19071
|
+
}), body);
|
|
19029
19072
|
};
|
|
19030
19073
|
var BaseTile = BaseTileInner;
|
|
19031
19074
|
BaseTile.Root = BaseTileRoot;
|
|
@@ -19034,7 +19077,7 @@ BaseTile.Content = BaseTileContent;
|
|
|
19034
19077
|
BaseTile.Header = BaseTileHeader;
|
|
19035
19078
|
BaseTile.Title = BaseTileTitle;
|
|
19036
19079
|
BaseTile.Body = BaseTileBody;
|
|
19037
|
-
var styles$
|
|
19080
|
+
var styles$f = StyleSheet$1.create({
|
|
19038
19081
|
container: {
|
|
19039
19082
|
width: '100%',
|
|
19040
19083
|
height: '100%',
|
|
@@ -19058,6 +19101,87 @@ var styles$d = StyleSheet$1.create({
|
|
|
19058
19101
|
|
|
19059
19102
|
var GRID_GAP = 16;
|
|
19060
19103
|
|
|
19104
|
+
var Skeleton = function (_a) {
|
|
19105
|
+
var style = _a.style,
|
|
19106
|
+
_b = _a.numberOfSquares,
|
|
19107
|
+
numberOfSquares = _b === void 0 ? 4 : _b;
|
|
19108
|
+
var theme = useWllSdk().theme;
|
|
19109
|
+
var animatedValue = React__namespace.useRef(new Animated$1.Value(0)).current;
|
|
19110
|
+
React__namespace.useEffect(function () {
|
|
19111
|
+
var pulseAnimation = Animated$1.loop(Animated$1.sequence([Animated$1.timing(animatedValue, {
|
|
19112
|
+
toValue: 1,
|
|
19113
|
+
duration: 1000,
|
|
19114
|
+
useNativeDriver: true
|
|
19115
|
+
}), Animated$1.timing(animatedValue, {
|
|
19116
|
+
toValue: 0,
|
|
19117
|
+
duration: 1000,
|
|
19118
|
+
useNativeDriver: true
|
|
19119
|
+
})]));
|
|
19120
|
+
pulseAnimation.start();
|
|
19121
|
+
return function () {
|
|
19122
|
+
return pulseAnimation.stop();
|
|
19123
|
+
};
|
|
19124
|
+
}, [animatedValue]);
|
|
19125
|
+
var opacity = animatedValue.interpolate({
|
|
19126
|
+
inputRange: [0, 1],
|
|
19127
|
+
outputRange: [0.3, 0.7]
|
|
19128
|
+
});
|
|
19129
|
+
var sharedSkeletonStyle = {
|
|
19130
|
+
opacity: opacity,
|
|
19131
|
+
backgroundColor: theme.alphaDerivedText[20],
|
|
19132
|
+
borderRadius: theme.sizes.borderRadiusLg
|
|
19133
|
+
};
|
|
19134
|
+
return /*#__PURE__*/React__namespace.createElement(View$2, null, /*#__PURE__*/React__namespace.createElement(Animated$1.View, {
|
|
19135
|
+
style: [styles$e.skeleton, styles$e.title, {
|
|
19136
|
+
opacity: opacity,
|
|
19137
|
+
backgroundColor: theme.alphaDerivedText[20],
|
|
19138
|
+
borderRadius: 6
|
|
19139
|
+
}]
|
|
19140
|
+
}), /*#__PURE__*/React__namespace.createElement(Animated$1.View, {
|
|
19141
|
+
style: [styles$e.skeleton, styles$e.body, {
|
|
19142
|
+
opacity: opacity,
|
|
19143
|
+
backgroundColor: theme.alphaDerivedText[20],
|
|
19144
|
+
borderRadius: 6
|
|
19145
|
+
}]
|
|
19146
|
+
}), /*#__PURE__*/React__namespace.createElement(Animated$1.View, {
|
|
19147
|
+
style: [styles$e.container, style]
|
|
19148
|
+
}, Array.from({
|
|
19149
|
+
length: numberOfSquares
|
|
19150
|
+
}).map(function (_, index) {
|
|
19151
|
+
return /*#__PURE__*/React__namespace.createElement(Animated$1.View, {
|
|
19152
|
+
key: index,
|
|
19153
|
+
style: [styles$e.skeleton, styles$e.square, sharedSkeletonStyle]
|
|
19154
|
+
});
|
|
19155
|
+
})));
|
|
19156
|
+
};
|
|
19157
|
+
var styles$e = StyleSheet$1.create({
|
|
19158
|
+
container: {
|
|
19159
|
+
flexDirection: 'row',
|
|
19160
|
+
flexWrap: 'wrap',
|
|
19161
|
+
gap: GRID_GAP,
|
|
19162
|
+
justifyContent: 'space-between',
|
|
19163
|
+
width: '100%',
|
|
19164
|
+
maxWidth: 1080
|
|
19165
|
+
},
|
|
19166
|
+
title: {
|
|
19167
|
+
height: 40,
|
|
19168
|
+
marginBottom: 10,
|
|
19169
|
+
width: 300
|
|
19170
|
+
},
|
|
19171
|
+
body: {
|
|
19172
|
+
height: 25,
|
|
19173
|
+
width: '85%',
|
|
19174
|
+
marginBottom: 24
|
|
19175
|
+
},
|
|
19176
|
+
skeleton: {
|
|
19177
|
+
overflow: 'hidden'
|
|
19178
|
+
},
|
|
19179
|
+
square: {
|
|
19180
|
+
width: 1000 / 4,
|
|
19181
|
+
aspectRatio: 1
|
|
19182
|
+
}
|
|
19183
|
+
});
|
|
19184
|
+
|
|
19061
19185
|
var BadgeTileInner$1 = function (_a) {
|
|
19062
19186
|
var tile = _a.tile;
|
|
19063
19187
|
useWllSdk().theme;
|
|
@@ -19067,9 +19191,9 @@ var BadgeTileInner$1 = function (_a) {
|
|
|
19067
19191
|
return /*#__PURE__*/React.createElement(BaseTile, {
|
|
19068
19192
|
tile: tile
|
|
19069
19193
|
}, /*#__PURE__*/React.createElement(View$2, {
|
|
19070
|
-
style: styles$
|
|
19194
|
+
style: styles$d.contentContainer
|
|
19071
19195
|
}, /*#__PURE__*/React.createElement(BadgeTile$1.Image, null), /*#__PURE__*/React.createElement(View$2, {
|
|
19072
|
-
style: styles$
|
|
19196
|
+
style: styles$d.textContainer
|
|
19073
19197
|
}, /*#__PURE__*/React.createElement(RowHeader, null, /*#__PURE__*/React.createElement(BadgeTile$1.Title, null), /*#__PURE__*/React.createElement(BadgeTile$1.Chevron, null)), /*#__PURE__*/React.createElement(BadgeTile$1.Body, null))));
|
|
19074
19198
|
};
|
|
19075
19199
|
var BadgeTileImage = function (props) {
|
|
@@ -19080,7 +19204,7 @@ var BadgeTileImage = function (props) {
|
|
|
19080
19204
|
var badgeDetails = (_a = configuration.details) === null || _a === void 0 ? void 0 : _a[0];
|
|
19081
19205
|
if (!(badgeDetails === null || badgeDetails === void 0 ? void 0 : badgeDetails.artworkUrl)) return null;
|
|
19082
19206
|
return /*#__PURE__*/React.createElement(View$2, {
|
|
19083
|
-
style: [styles$
|
|
19207
|
+
style: [styles$d.imageContainer, {
|
|
19084
19208
|
backgroundColor: theme.alphaDerivedPrimary[20]
|
|
19085
19209
|
}]
|
|
19086
19210
|
}, configuration.count === 0 && /*#__PURE__*/React.createElement(Locked, null), /*#__PURE__*/React.createElement(ProgressiveImage, _extends({}, props, {
|
|
@@ -19088,7 +19212,7 @@ var BadgeTileImage = function (props) {
|
|
|
19088
19212
|
uri: badgeDetails.artworkUrl
|
|
19089
19213
|
},
|
|
19090
19214
|
resizeMode: "contain",
|
|
19091
|
-
style: styles$
|
|
19215
|
+
style: styles$d.image
|
|
19092
19216
|
})));
|
|
19093
19217
|
};
|
|
19094
19218
|
var BadgeTileTitle$1 = function (props) {
|
|
@@ -19118,7 +19242,7 @@ var Locked = function () {
|
|
|
19118
19242
|
var width = Dimensions.get('window').width;
|
|
19119
19243
|
var iconSize = Math.min(width * 0.1, 50);
|
|
19120
19244
|
return /*#__PURE__*/React.createElement(View$2, {
|
|
19121
|
-
style: styles$
|
|
19245
|
+
style: styles$d.lockOverlay
|
|
19122
19246
|
}, /*#__PURE__*/React.createElement(LucideIcons.LockKeyholeIcon, {
|
|
19123
19247
|
color: "#FFF",
|
|
19124
19248
|
size: iconSize
|
|
@@ -19136,7 +19260,7 @@ BadgeTile$1.Image = BadgeTileImage;
|
|
|
19136
19260
|
BadgeTile$1.Title = BadgeTileTitle$1;
|
|
19137
19261
|
BadgeTile$1.Body = BadgeTileBody;
|
|
19138
19262
|
BadgeTile$1.Chevron = BadgeTileChevron;
|
|
19139
|
-
var styles$
|
|
19263
|
+
var styles$d = StyleSheet$1.create({
|
|
19140
19264
|
contentContainer: {
|
|
19141
19265
|
flexDirection: 'column',
|
|
19142
19266
|
height: '100%'
|
|
@@ -19179,7 +19303,7 @@ var BadgeTileInner = function (_a) {
|
|
|
19179
19303
|
return /*#__PURE__*/React.createElement(BaseTile, {
|
|
19180
19304
|
tile: tile
|
|
19181
19305
|
}, /*#__PURE__*/React.createElement(View$2, {
|
|
19182
|
-
style: styles$
|
|
19306
|
+
style: styles$c.container
|
|
19183
19307
|
}, /*#__PURE__*/React.createElement(BadgeTile.Media, null, /*#__PURE__*/React.createElement(BadgeTile.Status, null)), /*#__PURE__*/React.createElement(Column, {
|
|
19184
19308
|
justify: "between",
|
|
19185
19309
|
align: "start"
|
|
@@ -19197,12 +19321,12 @@ var BadgeTileMedia = function (_a) {
|
|
|
19197
19321
|
var displayUrl = count === 0 ? emptyBadgeArtworkUrl : artworkUrl;
|
|
19198
19322
|
if (!displayUrl) return null;
|
|
19199
19323
|
return /*#__PURE__*/React.createElement(View$2, {
|
|
19200
|
-
style: styles$
|
|
19324
|
+
style: styles$c.header
|
|
19201
19325
|
}, /*#__PURE__*/React.createElement(ProgressiveImage, _extends({}, props, {
|
|
19202
19326
|
source: {
|
|
19203
19327
|
uri: displayUrl
|
|
19204
19328
|
},
|
|
19205
|
-
style: styles$
|
|
19329
|
+
style: styles$c.image,
|
|
19206
19330
|
resizeMode: "contain",
|
|
19207
19331
|
isDesaturated: shouldDesaturate(type, count)
|
|
19208
19332
|
})), children);
|
|
@@ -19217,7 +19341,7 @@ var BadgeTileTitle = function () {
|
|
|
19217
19341
|
if (!displayText) return null;
|
|
19218
19342
|
return /*#__PURE__*/React.createElement(View$2, null, /*#__PURE__*/React.createElement(Text, {
|
|
19219
19343
|
variant: "title",
|
|
19220
|
-
style: styles$
|
|
19344
|
+
style: styles$c.titleText,
|
|
19221
19345
|
numberOfLines: 2,
|
|
19222
19346
|
ellipsizeMode: "tail"
|
|
19223
19347
|
}, displayText));
|
|
@@ -19229,10 +19353,10 @@ var BadgeTileDescription = function () {
|
|
|
19229
19353
|
description = configuration.description;
|
|
19230
19354
|
if (count === 0 || !description) return null;
|
|
19231
19355
|
return /*#__PURE__*/React.createElement(View$2, {
|
|
19232
|
-
style: styles$
|
|
19356
|
+
style: styles$c.descriptionContainer
|
|
19233
19357
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
19234
19358
|
variant: "body",
|
|
19235
|
-
style: styles$
|
|
19359
|
+
style: styles$c.descriptionText,
|
|
19236
19360
|
numberOfLines: 2,
|
|
19237
19361
|
ellipsizeMode: "tail"
|
|
19238
19362
|
}, description));
|
|
@@ -19247,7 +19371,7 @@ var BadgeTileDateEarned = function () {
|
|
|
19247
19371
|
badgeNotEarnedMessage = configuration.badgeNotEarnedMessage;
|
|
19248
19372
|
var theme = useWllSdk().theme;
|
|
19249
19373
|
var backgroundColor = getStateColor(theme.alphaDerivedPrimary[20], type, count);
|
|
19250
|
-
var containerStyle = [styles$
|
|
19374
|
+
var containerStyle = [styles$c.dateEarnedContainer, {
|
|
19251
19375
|
backgroundColor: backgroundColor
|
|
19252
19376
|
}];
|
|
19253
19377
|
if (type === exports.BadgeTileType.Latest && count === 0) {
|
|
@@ -19276,12 +19400,12 @@ var BadgeTileStatus = function () {
|
|
|
19276
19400
|
return null;
|
|
19277
19401
|
}
|
|
19278
19402
|
return /*#__PURE__*/React.createElement(View$2, {
|
|
19279
|
-
style: styles$
|
|
19403
|
+
style: styles$c.indicatorContainer
|
|
19280
19404
|
}, count === 0 ? /*#__PURE__*/React.createElement(LucideIcons.LockKeyholeIcon, {
|
|
19281
19405
|
color: "#FFF",
|
|
19282
19406
|
size: 20
|
|
19283
19407
|
}) : /*#__PURE__*/React.createElement(Text, {
|
|
19284
|
-
style: styles$
|
|
19408
|
+
style: styles$c.countText
|
|
19285
19409
|
}, count, "x"));
|
|
19286
19410
|
};
|
|
19287
19411
|
var BadgeTile = BadgeTileInner;
|
|
@@ -19290,7 +19414,7 @@ BadgeTile.Title = BadgeTileTitle;
|
|
|
19290
19414
|
BadgeTile.Description = BadgeTileDescription;
|
|
19291
19415
|
BadgeTile.DateEarned = BadgeTileDateEarned;
|
|
19292
19416
|
BadgeTile.Status = BadgeTileStatus;
|
|
19293
|
-
var styles$
|
|
19417
|
+
var styles$c = StyleSheet$1.create({
|
|
19294
19418
|
container: {
|
|
19295
19419
|
flex: 1
|
|
19296
19420
|
},
|
|
@@ -19339,7 +19463,7 @@ var BannerTile = function (_a) {
|
|
|
19339
19463
|
return /*#__PURE__*/React__namespace.createElement(BaseBanner, {
|
|
19340
19464
|
tile: tile
|
|
19341
19465
|
}, /*#__PURE__*/React__namespace.createElement(BannerTile.Media, null), /*#__PURE__*/React__namespace.createElement(View$2, {
|
|
19342
|
-
style: styles$
|
|
19466
|
+
style: styles$b.slideContent
|
|
19343
19467
|
}, /*#__PURE__*/React__namespace.createElement(BannerTile.Title, null), /*#__PURE__*/React__namespace.createElement(BannerTile.Description, null), /*#__PURE__*/React__namespace.createElement(BannerTile.CTA, null)));
|
|
19344
19468
|
};
|
|
19345
19469
|
var BannerTileMedia = function () {
|
|
@@ -19347,12 +19471,12 @@ var BannerTileMedia = function () {
|
|
|
19347
19471
|
var artworkUrl = configuration.artworkUrl;
|
|
19348
19472
|
if (!artworkUrl) return null;
|
|
19349
19473
|
return /*#__PURE__*/React__namespace.createElement(View$2, {
|
|
19350
|
-
style: styles$
|
|
19474
|
+
style: styles$b.mediaContainer
|
|
19351
19475
|
}, /*#__PURE__*/React__namespace.createElement(ProgressiveImage, {
|
|
19352
19476
|
source: {
|
|
19353
19477
|
uri: artworkUrl
|
|
19354
19478
|
},
|
|
19355
|
-
style: styles$
|
|
19479
|
+
style: styles$b.media
|
|
19356
19480
|
}));
|
|
19357
19481
|
};
|
|
19358
19482
|
var BannerTileTitle = function () {
|
|
@@ -19364,7 +19488,7 @@ var BannerTileTitle = function () {
|
|
|
19364
19488
|
// @ts-ignore
|
|
19365
19489
|
React__namespace.createElement(Text, {
|
|
19366
19490
|
variant: "title",
|
|
19367
|
-
style: styles$
|
|
19491
|
+
style: styles$b.title
|
|
19368
19492
|
}, title)
|
|
19369
19493
|
);
|
|
19370
19494
|
};
|
|
@@ -19374,7 +19498,7 @@ var BannerTileDescription = function () {
|
|
|
19374
19498
|
var description = configuration.description;
|
|
19375
19499
|
if (!description) return null;
|
|
19376
19500
|
return /*#__PURE__*/React__namespace.createElement(Text, {
|
|
19377
|
-
style: [styles$
|
|
19501
|
+
style: [styles$b.description, {
|
|
19378
19502
|
color: theme.derivedSurfaceText[20]
|
|
19379
19503
|
}]
|
|
19380
19504
|
}, description);
|
|
@@ -19393,7 +19517,7 @@ var BannerTileCTA = function () {
|
|
|
19393
19517
|
onPress: handlePress
|
|
19394
19518
|
});
|
|
19395
19519
|
};
|
|
19396
|
-
var styles$
|
|
19520
|
+
var styles$b = StyleSheet$1.create({
|
|
19397
19521
|
slide: createResponsiveStyle({
|
|
19398
19522
|
width: '100%',
|
|
19399
19523
|
maxWidth: 1080,
|
|
@@ -19446,13 +19570,13 @@ var ContentTileRoot = function (_a) {
|
|
|
19446
19570
|
};
|
|
19447
19571
|
var ContentTileMedia = function () {
|
|
19448
19572
|
return /*#__PURE__*/React__namespace.createElement(BaseTile.Media, {
|
|
19449
|
-
style: styles$
|
|
19573
|
+
style: styles$a.media
|
|
19450
19574
|
});
|
|
19451
19575
|
};
|
|
19452
19576
|
var ContentTileContent = function (_a) {
|
|
19453
19577
|
var children = _a.children;
|
|
19454
19578
|
return /*#__PURE__*/React__namespace.createElement(BaseTile.Content, null, /*#__PURE__*/React__namespace.createElement(View$2, {
|
|
19455
|
-
style: styles$
|
|
19579
|
+
style: styles$a.content
|
|
19456
19580
|
}, children));
|
|
19457
19581
|
};
|
|
19458
19582
|
var ContentTileHeader = function () {
|
|
@@ -19461,7 +19585,7 @@ var ContentTileHeader = function () {
|
|
|
19461
19585
|
var ContentTileBody = function () {
|
|
19462
19586
|
return /*#__PURE__*/React__namespace.createElement(BaseTile.Body, null);
|
|
19463
19587
|
};
|
|
19464
|
-
var styles$
|
|
19588
|
+
var styles$a = StyleSheet$1.create({
|
|
19465
19589
|
content: createResponsiveStyle({
|
|
19466
19590
|
paddingHorizontal: [8, 8, 12],
|
|
19467
19591
|
flex: 1,
|
|
@@ -19492,18 +19616,19 @@ var SectionHeader = function (_a) {
|
|
|
19492
19616
|
return null;
|
|
19493
19617
|
}
|
|
19494
19618
|
return /*#__PURE__*/React.createElement(View$2, {
|
|
19495
|
-
style: styles$
|
|
19619
|
+
style: styles$9.sectionHeader
|
|
19496
19620
|
}, title && /*#__PURE__*/React.createElement(Text, {
|
|
19497
|
-
style: [styles$
|
|
19498
|
-
fontWeight: '700'
|
|
19621
|
+
style: [styles$9.sectionTitle, {
|
|
19622
|
+
fontWeight: '700',
|
|
19623
|
+
color: theme.text
|
|
19499
19624
|
}]
|
|
19500
19625
|
}, title), description && /*#__PURE__*/React.createElement(Text, {
|
|
19501
|
-
style: [styles$
|
|
19502
|
-
color: theme.alphaDerivedText[
|
|
19626
|
+
style: [styles$9.sectionDescription, {
|
|
19627
|
+
color: theme.alphaDerivedText[80]
|
|
19503
19628
|
}]
|
|
19504
19629
|
}, description));
|
|
19505
19630
|
};
|
|
19506
|
-
var styles$
|
|
19631
|
+
var styles$9 = StyleSheet$1.create({
|
|
19507
19632
|
sectionHeader: createResponsiveStyle({
|
|
19508
19633
|
marginBottom: [8, 8, 16]
|
|
19509
19634
|
}),
|
|
@@ -19561,11 +19686,11 @@ var Carousel = function (_a) {
|
|
|
19561
19686
|
title: section.title,
|
|
19562
19687
|
description: section.description
|
|
19563
19688
|
}), /*#__PURE__*/React.createElement(View$2, {
|
|
19564
|
-
style: styles$
|
|
19689
|
+
style: styles$8.container
|
|
19565
19690
|
}, /*#__PURE__*/React.createElement(View$2, {
|
|
19566
|
-
style: styles$
|
|
19691
|
+
style: styles$8.carouselContainer
|
|
19567
19692
|
}, displayControls && /*#__PURE__*/React.createElement(TouchableOpacity$1, {
|
|
19568
|
-
style: [styles$
|
|
19693
|
+
style: [styles$8.navButton, styles$8.navButtonLeft, {
|
|
19569
19694
|
backgroundColor: theme.background
|
|
19570
19695
|
}],
|
|
19571
19696
|
onPress: handlePrev
|
|
@@ -19581,7 +19706,7 @@ var Carousel = function (_a) {
|
|
|
19581
19706
|
onScroll: handleScroll,
|
|
19582
19707
|
onMomentumScrollEnd: handleScrollEnd,
|
|
19583
19708
|
scrollEventThrottle: 16,
|
|
19584
|
-
style: [styles$
|
|
19709
|
+
style: [styles$8.carouselContent, {
|
|
19585
19710
|
width: slideWidth
|
|
19586
19711
|
}],
|
|
19587
19712
|
contentContainerStyle: {
|
|
@@ -19607,7 +19732,7 @@ var Carousel = function (_a) {
|
|
|
19607
19732
|
tile: tile
|
|
19608
19733
|
}));
|
|
19609
19734
|
})), displayControls && /*#__PURE__*/React.createElement(TouchableOpacity$1, {
|
|
19610
|
-
style: [styles$
|
|
19735
|
+
style: [styles$8.navButton, styles$8.navButtonRight, {
|
|
19611
19736
|
backgroundColor: theme.surface
|
|
19612
19737
|
}],
|
|
19613
19738
|
onPress: handleNext
|
|
@@ -19616,7 +19741,7 @@ var Carousel = function (_a) {
|
|
|
19616
19741
|
size: 20,
|
|
19617
19742
|
color: theme.primary
|
|
19618
19743
|
}))), displayControls && /*#__PURE__*/React.createElement(View$2, {
|
|
19619
|
-
style: styles$
|
|
19744
|
+
style: styles$8.indicators
|
|
19620
19745
|
}, bannerTiles.map(function (_, index) {
|
|
19621
19746
|
var width = animatedIndex.interpolate({
|
|
19622
19747
|
inputRange: [index - 1, index, index + 1],
|
|
@@ -19625,7 +19750,7 @@ var Carousel = function (_a) {
|
|
|
19625
19750
|
});
|
|
19626
19751
|
return /*#__PURE__*/React.createElement(Animated$1.View, {
|
|
19627
19752
|
key: index,
|
|
19628
|
-
style: [styles$
|
|
19753
|
+
style: [styles$8.indicator, {
|
|
19629
19754
|
backgroundColor: theme.derivedBackground,
|
|
19630
19755
|
width: width
|
|
19631
19756
|
}, index === currentIndex && {
|
|
@@ -19635,7 +19760,7 @@ var Carousel = function (_a) {
|
|
|
19635
19760
|
}))));
|
|
19636
19761
|
};
|
|
19637
19762
|
var buttonSize = 30;
|
|
19638
|
-
var styles$
|
|
19763
|
+
var styles$8 = StyleSheet$1.create({
|
|
19639
19764
|
container: {
|
|
19640
19765
|
width: '100%',
|
|
19641
19766
|
maxWidth: 1080,
|
|
@@ -19830,10 +19955,10 @@ var Grid = function (_a) {
|
|
|
19830
19955
|
title: section.title,
|
|
19831
19956
|
description: section.description
|
|
19832
19957
|
}), /*#__PURE__*/React__namespace.createElement(View$2, {
|
|
19833
|
-
style: styles$
|
|
19958
|
+
style: styles$7.grid
|
|
19834
19959
|
}, renderGrid()));
|
|
19835
19960
|
};
|
|
19836
|
-
var styles$
|
|
19961
|
+
var styles$7 = StyleSheet$1.create({
|
|
19837
19962
|
grid: {
|
|
19838
19963
|
flexDirection: 'row',
|
|
19839
19964
|
flexWrap: 'wrap',
|
|
@@ -19860,15 +19985,15 @@ var ProgressIndicator = function (_a) {
|
|
|
19860
19985
|
progressVariant = 'accent';
|
|
19861
19986
|
}
|
|
19862
19987
|
return /*#__PURE__*/React__namespace.createElement(View$2, {
|
|
19863
|
-
style: styles$
|
|
19988
|
+
style: styles$6.container
|
|
19864
19989
|
}, /*#__PURE__*/React__namespace.createElement(ProgressBar, {
|
|
19865
19990
|
percentage: percentage,
|
|
19866
19991
|
variant: progressVariant,
|
|
19867
19992
|
height: height
|
|
19868
19993
|
}), /*#__PURE__*/React__namespace.createElement(View$2, {
|
|
19869
|
-
style: [styles$
|
|
19994
|
+
style: [styles$6.circleContainer]
|
|
19870
19995
|
}, /*#__PURE__*/React__namespace.createElement(View$2, {
|
|
19871
|
-
style: [styles$
|
|
19996
|
+
style: [styles$6.circle, {
|
|
19872
19997
|
borderColor: theme.derivedSurface[20],
|
|
19873
19998
|
backgroundColor: isComplete ? theme.primary : theme.surface,
|
|
19874
19999
|
borderWidth: isComplete ? 0 : 4
|
|
@@ -19879,7 +20004,7 @@ var ProgressIndicator = function (_a) {
|
|
|
19879
20004
|
color: theme.primaryText
|
|
19880
20005
|
}))));
|
|
19881
20006
|
};
|
|
19882
|
-
var styles$
|
|
20007
|
+
var styles$6 = StyleSheet$1.create({
|
|
19883
20008
|
container: {
|
|
19884
20009
|
width: '100%',
|
|
19885
20010
|
flexDirection: 'row',
|
|
@@ -19923,10 +20048,10 @@ var Section = function (_a) {
|
|
|
19923
20048
|
sectionData: section
|
|
19924
20049
|
}
|
|
19925
20050
|
}, /*#__PURE__*/React.createElement(View$2, {
|
|
19926
|
-
style: styles$
|
|
20051
|
+
style: styles$5.section
|
|
19927
20052
|
}, renderSectionContent()));
|
|
19928
20053
|
};
|
|
19929
|
-
var styles$
|
|
20054
|
+
var styles$5 = StyleSheet$1.create({
|
|
19930
20055
|
section: createResponsiveStyle({
|
|
19931
20056
|
width: '100%',
|
|
19932
20057
|
maxWidth: 1080,
|
|
@@ -19955,7 +20080,6 @@ var Group = function (_a) {
|
|
|
19955
20080
|
return [4 /*yield*/, getGroupByID(id)];
|
|
19956
20081
|
case 1:
|
|
19957
20082
|
response = _a.sent();
|
|
19958
|
-
console.log(response.data);
|
|
19959
20083
|
setGroupData(response.data);
|
|
19960
20084
|
setLoading(false);
|
|
19961
20085
|
return [2 /*return*/];
|
|
@@ -19966,12 +20090,19 @@ var Group = function (_a) {
|
|
|
19966
20090
|
fetchGroup();
|
|
19967
20091
|
}, [id, getGroupByID]);
|
|
19968
20092
|
if (loading) {
|
|
19969
|
-
return /*#__PURE__*/React.createElement(
|
|
19970
|
-
|
|
19971
|
-
});
|
|
20093
|
+
return /*#__PURE__*/React.createElement(View$2, {
|
|
20094
|
+
style: styles$4.emptyConatiner
|
|
20095
|
+
}, /*#__PURE__*/React.createElement(Skeleton, null));
|
|
19972
20096
|
}
|
|
19973
20097
|
if (!groupData) {
|
|
19974
|
-
return /*#__PURE__*/React.createElement(
|
|
20098
|
+
return /*#__PURE__*/React.createElement(View$2, {
|
|
20099
|
+
style: styles$4.emptyConatiner
|
|
20100
|
+
}, /*#__PURE__*/React.createElement(Text$3, null, "No group data available"));
|
|
20101
|
+
}
|
|
20102
|
+
if (!groupData.sections || groupData.sections.length === 0) {
|
|
20103
|
+
return /*#__PURE__*/React.createElement(View$2, {
|
|
20104
|
+
style: styles$4.emptyConatiner
|
|
20105
|
+
}, /*#__PURE__*/React.createElement(Text$3, null, "No sections available"), ";");
|
|
19975
20106
|
}
|
|
19976
20107
|
return /*#__PURE__*/React.createElement(View$2, null, groupData.sections.sort(function (a, b) {
|
|
19977
20108
|
// Sort by priority (higher priority first)
|
|
@@ -19987,6 +20118,13 @@ var Group = function (_a) {
|
|
|
19987
20118
|
});
|
|
19988
20119
|
}));
|
|
19989
20120
|
};
|
|
20121
|
+
var styles$4 = StyleSheet$1.create({
|
|
20122
|
+
emptyConatiner: {
|
|
20123
|
+
flex: 1,
|
|
20124
|
+
justifyContent: 'center',
|
|
20125
|
+
alignItems: 'center'
|
|
20126
|
+
}
|
|
20127
|
+
});
|
|
19990
20128
|
|
|
19991
20129
|
var PointsTile = function (_a) {
|
|
19992
20130
|
var tile = _a.tile;
|
|
@@ -20064,12 +20202,14 @@ var PointsTileImage = function (_a) {
|
|
|
20064
20202
|
marginBottom: isFullSize ? [8, 8, 12] : 0,
|
|
20065
20203
|
backgroundColor: isFullSize ? theme.alphaDerivedPrimary[20] : theme.surface,
|
|
20066
20204
|
justifyContent: 'center',
|
|
20067
|
-
alignItems: 'center'
|
|
20205
|
+
alignItems: 'center',
|
|
20206
|
+
overflow: 'hidden'
|
|
20068
20207
|
}),
|
|
20069
20208
|
image: {
|
|
20070
20209
|
width: '100%',
|
|
20071
20210
|
height: '100%',
|
|
20072
|
-
position: 'absolute'
|
|
20211
|
+
position: 'absolute',
|
|
20212
|
+
resizeMode: 'contain'
|
|
20073
20213
|
}
|
|
20074
20214
|
});
|
|
20075
20215
|
if (!artworkUrl) return null;
|
|
@@ -20080,7 +20220,7 @@ var PointsTileImage = function (_a) {
|
|
|
20080
20220
|
uri: artworkUrl
|
|
20081
20221
|
},
|
|
20082
20222
|
style: styles.image,
|
|
20083
|
-
resizeMode: "
|
|
20223
|
+
resizeMode: "contain"
|
|
20084
20224
|
}));
|
|
20085
20225
|
};
|
|
20086
20226
|
PointsTile.Title = PointsTileTitle;
|
|
@@ -20699,6 +20839,7 @@ exports.RewardTileConfig = RewardTileConfig;
|
|
|
20699
20839
|
exports.RowHeader = RowHeader;
|
|
20700
20840
|
exports.Section = Section;
|
|
20701
20841
|
exports.SectionHeader = SectionHeader;
|
|
20842
|
+
exports.Skeleton = Skeleton;
|
|
20702
20843
|
exports.Text = Text;
|
|
20703
20844
|
exports.TierTile = TierTile$1;
|
|
20704
20845
|
exports.TierTileConfig = TierTileConfig;
|