@dropi/react-native-design-system 0.2.6 → 0.2.7
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.
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { TextInputProps } from 'react-native';
|
|
2
|
-
|
|
1
|
+
import { TextInput, TextInputProps } from 'react-native';
|
|
2
|
+
export declare const Search: import("react").ForwardRefExoticComponent<TextInputProps & {
|
|
3
3
|
filterText: string;
|
|
4
4
|
setFilterText: (text: string) => void;
|
|
5
5
|
placeholder?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const Search: ({ filterText, setFilterText, placeholder, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
6
|
+
} & import("react").RefAttributes<TextInput>>;
|
|
@@ -8,13 +8,14 @@ var _reactNative = require("react-native");
|
|
|
8
8
|
var _reactNative2 = require("dropi-lib-icons/react-native");
|
|
9
9
|
var _constants = require("../../constants");
|
|
10
10
|
var _atoms = require("../../atoms");
|
|
11
|
+
var _react = require("react");
|
|
11
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
const Search = ({
|
|
13
|
+
const Search = exports.Search = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
13
14
|
filterText,
|
|
14
15
|
setFilterText,
|
|
15
16
|
placeholder,
|
|
16
17
|
...rest
|
|
17
|
-
}) => {
|
|
18
|
+
}, ref) => {
|
|
18
19
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
19
20
|
style: {
|
|
20
21
|
width: '100%',
|
|
@@ -35,6 +36,7 @@ const Search = ({
|
|
|
35
36
|
marginRight: _constants.spacing['size-2']
|
|
36
37
|
}
|
|
37
38
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
|
|
39
|
+
ref: ref,
|
|
38
40
|
style: {
|
|
39
41
|
flex: 1,
|
|
40
42
|
fontSize: _constants.sizes.m,
|
|
@@ -55,5 +57,4 @@ const Search = ({
|
|
|
55
57
|
replaceColor: _constants.colors['Gray-600'].light
|
|
56
58
|
})]
|
|
57
59
|
});
|
|
58
|
-
};
|
|
59
|
-
exports.Search = Search;
|
|
60
|
+
});
|