@wlloyalty/wll-react-sdk 1.0.92 → 1.0.94
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 +1 -0
- package/dist/native.js +11 -2
- package/dist/native.js.map +1 -1
- package/dist/types/components/organisms/Section/Section.stories.d.ts +12 -0
- package/dist/types/types/theme.d.ts +1 -0
- package/dist/types/utils/storybookThemes.d.ts +5 -0
- package/dist/web.js +11 -5
- package/dist/web.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,3 +5,15 @@ export declare const TravelRewardsSection: import("@storybook/csf").AnnotatedSto
|
|
|
5
5
|
section?: import("../../..").TSection;
|
|
6
6
|
sectionId?: string;
|
|
7
7
|
}>;
|
|
8
|
+
export declare const SingleTileSection: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
|
|
9
|
+
section?: import("../../..").TSection;
|
|
10
|
+
sectionId?: string;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const TwoTileSection: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
|
|
13
|
+
section?: import("../../..").TSection;
|
|
14
|
+
sectionId?: string;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const ThreeTileSection: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
|
|
17
|
+
section?: import("../../..").TSection;
|
|
18
|
+
sectionId?: string;
|
|
19
|
+
}>;
|
|
@@ -6,6 +6,7 @@ export declare const storyBookThemes: {
|
|
|
6
6
|
background: string;
|
|
7
7
|
surface: string;
|
|
8
8
|
surfaceText: string;
|
|
9
|
+
fontFamily: string;
|
|
9
10
|
errorPrimary: string;
|
|
10
11
|
negative: string;
|
|
11
12
|
pageButtonBackground: string;
|
|
@@ -19,6 +20,7 @@ export declare const storyBookThemes: {
|
|
|
19
20
|
background: string;
|
|
20
21
|
surface: string;
|
|
21
22
|
surfaceText: string;
|
|
23
|
+
fontFamily: string;
|
|
22
24
|
errorPrimary: string;
|
|
23
25
|
negative: string;
|
|
24
26
|
pageButtonBackground: string;
|
|
@@ -33,6 +35,7 @@ export declare const storyBookThemes: {
|
|
|
33
35
|
accent: string;
|
|
34
36
|
surface: string;
|
|
35
37
|
surfaceText: string;
|
|
38
|
+
fontFamily: string;
|
|
36
39
|
errorPrimary: string;
|
|
37
40
|
negative: string;
|
|
38
41
|
pageButtonBackground: string;
|
|
@@ -45,6 +48,7 @@ export declare const storyBookThemes: {
|
|
|
45
48
|
background: string;
|
|
46
49
|
surface: string;
|
|
47
50
|
surfaceText: string;
|
|
51
|
+
fontFamily: string;
|
|
48
52
|
errorPrimary: string;
|
|
49
53
|
negative: string;
|
|
50
54
|
pageButtonBackground: string;
|
|
@@ -58,6 +62,7 @@ export declare const storyBookThemes: {
|
|
|
58
62
|
background: string;
|
|
59
63
|
surface: string;
|
|
60
64
|
surfaceText: string;
|
|
65
|
+
fontFamily: string;
|
|
61
66
|
errorPrimary: string;
|
|
62
67
|
negative: string;
|
|
63
68
|
pageButtonBackground: string;
|
package/dist/web.js
CHANGED
|
@@ -7949,6 +7949,7 @@ var commonStyles = StyleSheet$1.create({
|
|
|
7949
7949
|
}
|
|
7950
7950
|
});
|
|
7951
7951
|
var defaultTheme = {
|
|
7952
|
+
fontFamily: '-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif',
|
|
7952
7953
|
background: '#F0F0F0',
|
|
7953
7954
|
text: '#000000',
|
|
7954
7955
|
primary: '#392ed7',
|
|
@@ -18900,7 +18901,9 @@ var Text = function (_a) {
|
|
|
18900
18901
|
};
|
|
18901
18902
|
var variantStyle = getVariantStyle(variant);
|
|
18902
18903
|
return /*#__PURE__*/React__namespace.createElement(Text$3, __assign({
|
|
18903
|
-
style: [variantStyle, style
|
|
18904
|
+
style: [variantStyle, style, {
|
|
18905
|
+
fontFamily: theme.fontFamily
|
|
18906
|
+
}]
|
|
18904
18907
|
}, props));
|
|
18905
18908
|
};
|
|
18906
18909
|
|
|
@@ -20710,7 +20713,8 @@ var Grid = function (_a) {
|
|
|
20710
20713
|
return {
|
|
20711
20714
|
width: "calc(".concat(100 / columns, "% - ").concat((columns - 1) * GRID_GAP / columns, "px)"),
|
|
20712
20715
|
marginBottom: GRID_GAP,
|
|
20713
|
-
height: 'auto'
|
|
20716
|
+
height: 'auto',
|
|
20717
|
+
aspectRatio: 1
|
|
20714
20718
|
};
|
|
20715
20719
|
} else {
|
|
20716
20720
|
var availableWidth = SCREEN_WIDTH - GRID_GAP * 2;
|
|
@@ -20744,11 +20748,14 @@ var Grid = function (_a) {
|
|
|
20744
20748
|
return true;
|
|
20745
20749
|
};
|
|
20746
20750
|
if (shouldStartNewContainer(currentTiles, tile, nextTile)) {
|
|
20751
|
+
var isLastInRow = (tileContainers.length + 1) % columnsPerRow === 0;
|
|
20747
20752
|
tileContainers.push(/*#__PURE__*/React.createElement(View$2, {
|
|
20748
20753
|
key: "container-".concat(index),
|
|
20749
20754
|
style: [
|
|
20750
20755
|
// @ts-ignore Web uses CSS calc strings for responsive layouts, while ViewStyle expects numbers
|
|
20751
|
-
getTileWidth(columnsPerRow)
|
|
20756
|
+
getTileWidth(columnsPerRow), !isLastInRow && {
|
|
20757
|
+
marginRight: GRID_GAP
|
|
20758
|
+
}]
|
|
20752
20759
|
}, /*#__PURE__*/React.createElement(TileContainer, {
|
|
20753
20760
|
tiles: currentTiles
|
|
20754
20761
|
})));
|
|
@@ -20768,8 +20775,7 @@ var styles$2 = StyleSheet$1.create({
|
|
|
20768
20775
|
grid: {
|
|
20769
20776
|
flexDirection: 'row',
|
|
20770
20777
|
flexWrap: 'wrap',
|
|
20771
|
-
width: '100%'
|
|
20772
|
-
justifyContent: 'space-between'
|
|
20778
|
+
width: '100%'
|
|
20773
20779
|
}
|
|
20774
20780
|
});
|
|
20775
20781
|
|