@hero-design/rn 8.86.0 → 8.87.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/es/index.js +14 -6
- package/lib/index.js +14 -6
- package/package.json +1 -1
- package/src/components/Carousel/CardCarousel.tsx +7 -2
- package/src/components/Carousel/StyledCardCarousel.tsx +6 -2
- package/src/components/Carousel/__tests__/CardCarousel.spec.tsx +28 -1
- package/src/components/Carousel/__tests__/StyledCardCarousel.spec.tsx +7 -2
- package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +1799 -1
- package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +86 -1
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +5 -1
- package/src/theme/components/cardCarousel.ts +5 -1
- package/stats/8.87.0/rn-stats.html +4844 -0
- package/stats/8.87.1/rn-stats.html +4842 -0
- package/types/components/Carousel/CardCarousel.d.ts +4 -0
- package/types/components/Carousel/StyledCardCarousel.d.ts +2 -0
- package/types/components/CompoundSearch/CompoundSearchHandler.d.ts +31 -0
- package/types/components/CompoundSearch/CompoundSearchTextInput.d.ts +60 -0
- package/types/components/CompoundSearch/StyledCompoundSearch.d.ts +40 -0
- package/types/components/CompoundSearch/index.d.ts +8 -0
- package/types/components/CompoundSearch/utils.d.ts +8 -0
- package/types/components/FloatingIsland/SingleLine/StyledSingleLine.d.ts +15 -0
- package/types/components/FloatingIsland/SingleLine/index.d.ts +24 -0
- package/types/theme/components/cardCarousel.d.ts +5 -1
- package/types/theme/components/compoundSearch.d.ts +36 -0
- package/.turbo/turbo-build.log +0 -7
|
@@ -50,7 +50,7 @@ exports[`StyledCard should render correctly 1`] = `
|
|
|
50
50
|
</View>
|
|
51
51
|
`;
|
|
52
52
|
|
|
53
|
-
exports[`StyledItemWrapper should render correctly 1`] = `
|
|
53
|
+
exports[`StyledItemWrapper should render correctly with gap=medium 1`] = `
|
|
54
54
|
<View
|
|
55
55
|
style={
|
|
56
56
|
{
|
|
@@ -67,6 +67,91 @@ exports[`StyledItemWrapper should render correctly 1`] = `
|
|
|
67
67
|
undefined,
|
|
68
68
|
]
|
|
69
69
|
}
|
|
70
|
+
themeGap="medium"
|
|
71
|
+
/>
|
|
72
|
+
<View
|
|
73
|
+
pointerEvents="box-none"
|
|
74
|
+
position="bottom"
|
|
75
|
+
style={
|
|
76
|
+
[
|
|
77
|
+
{
|
|
78
|
+
"bottom": 0,
|
|
79
|
+
"elevation": 9999,
|
|
80
|
+
"flexDirection": "column-reverse",
|
|
81
|
+
"left": 0,
|
|
82
|
+
"paddingHorizontal": 24,
|
|
83
|
+
"paddingVertical": 16,
|
|
84
|
+
"position": "absolute",
|
|
85
|
+
"right": 0,
|
|
86
|
+
"top": 0,
|
|
87
|
+
},
|
|
88
|
+
undefined,
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
/>
|
|
92
|
+
</View>
|
|
93
|
+
`;
|
|
94
|
+
|
|
95
|
+
exports[`StyledItemWrapper should render correctly with gap=small 1`] = `
|
|
96
|
+
<View
|
|
97
|
+
style={
|
|
98
|
+
{
|
|
99
|
+
"flex": 1,
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
>
|
|
103
|
+
<View
|
|
104
|
+
style={
|
|
105
|
+
[
|
|
106
|
+
{
|
|
107
|
+
"padding": 4,
|
|
108
|
+
},
|
|
109
|
+
undefined,
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
themeGap="small"
|
|
113
|
+
/>
|
|
114
|
+
<View
|
|
115
|
+
pointerEvents="box-none"
|
|
116
|
+
position="bottom"
|
|
117
|
+
style={
|
|
118
|
+
[
|
|
119
|
+
{
|
|
120
|
+
"bottom": 0,
|
|
121
|
+
"elevation": 9999,
|
|
122
|
+
"flexDirection": "column-reverse",
|
|
123
|
+
"left": 0,
|
|
124
|
+
"paddingHorizontal": 24,
|
|
125
|
+
"paddingVertical": 16,
|
|
126
|
+
"position": "absolute",
|
|
127
|
+
"right": 0,
|
|
128
|
+
"top": 0,
|
|
129
|
+
},
|
|
130
|
+
undefined,
|
|
131
|
+
]
|
|
132
|
+
}
|
|
133
|
+
/>
|
|
134
|
+
</View>
|
|
135
|
+
`;
|
|
136
|
+
|
|
137
|
+
exports[`StyledItemWrapper should render correctly with gap=xsmall 1`] = `
|
|
138
|
+
<View
|
|
139
|
+
style={
|
|
140
|
+
{
|
|
141
|
+
"flex": 1,
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
>
|
|
145
|
+
<View
|
|
146
|
+
style={
|
|
147
|
+
[
|
|
148
|
+
{
|
|
149
|
+
"padding": 2,
|
|
150
|
+
},
|
|
151
|
+
undefined,
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
themeGap="xsmall"
|
|
70
155
|
/>
|
|
71
156
|
<View
|
|
72
157
|
pointerEvents="box-none"
|
|
@@ -366,7 +366,11 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
366
366
|
"card": 8,
|
|
367
367
|
},
|
|
368
368
|
"space": {
|
|
369
|
-
"carouselItemSpacing":
|
|
369
|
+
"carouselItemSpacing": {
|
|
370
|
+
"medium": 8,
|
|
371
|
+
"small": 4,
|
|
372
|
+
"xsmall": 2,
|
|
373
|
+
},
|
|
370
374
|
"contentContainerPaddingHorizontal": 24,
|
|
371
375
|
"pageControlMarginTop": 16,
|
|
372
376
|
},
|
|
@@ -3,8 +3,12 @@ import type { GlobalTheme } from '../global';
|
|
|
3
3
|
const getCardCarouselTheme = (theme: GlobalTheme) => {
|
|
4
4
|
const space = {
|
|
5
5
|
pageControlMarginTop: theme.space.medium,
|
|
6
|
-
carouselItemSpacing: theme.space.small,
|
|
7
6
|
contentContainerPaddingHorizontal: theme.space.large,
|
|
7
|
+
carouselItemSpacing: {
|
|
8
|
+
xsmall: theme.space.xxsmall,
|
|
9
|
+
small: theme.space.xsmall,
|
|
10
|
+
medium: theme.space.small,
|
|
11
|
+
},
|
|
8
12
|
};
|
|
9
13
|
|
|
10
14
|
const colors = {
|