@swan-io/lake 2.7.12 → 2.7.14
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/package.json
CHANGED
|
@@ -10,6 +10,10 @@ import { ResponsiveContainer } from "./ResponsiveContainer";
|
|
|
10
10
|
import { Line, Svg } from "./Svg";
|
|
11
11
|
import { TransitionView } from "./TransitionView";
|
|
12
12
|
const styles = StyleSheet.create({
|
|
13
|
+
container: {
|
|
14
|
+
flexGrow: 1,
|
|
15
|
+
flexShrink: 1,
|
|
16
|
+
},
|
|
13
17
|
input: {
|
|
14
18
|
transition: "300ms ease-in-out border-color",
|
|
15
19
|
// ResponsiveContainer uses a 200 breaking,
|
|
@@ -32,6 +36,7 @@ const styles = StyleSheet.create({
|
|
|
32
36
|
smallButtonContainer: {
|
|
33
37
|
flexDirection: "row",
|
|
34
38
|
justifyContent: "flex-end",
|
|
39
|
+
flexGrow: 1,
|
|
35
40
|
},
|
|
36
41
|
openSearchFieldContainer: {
|
|
37
42
|
position: "absolute",
|
|
@@ -98,7 +103,7 @@ export const LakeSearchField = ({ initialValue, placeholder, onChangeText, debou
|
|
|
98
103
|
currentValue,
|
|
99
104
|
renderEnd,
|
|
100
105
|
};
|
|
101
|
-
return (_jsx(ResponsiveContainer, { breakpoint: 200, style: maxWidth != null && { maxWidth }, children: ({ large }) => {
|
|
106
|
+
return (_jsx(ResponsiveContainer, { breakpoint: 200, style: [styles.container, maxWidth != null && { maxWidth }], children: ({ large }) => {
|
|
102
107
|
const Component = large ? ExpandedSearchField : CollapsibleSeachField;
|
|
103
108
|
return _jsx(Component, { ...props });
|
|
104
109
|
} }));
|