@proulr/sdui-components 0.1.9 → 0.1.10
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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TextInput, TextInputProps, ViewStyle } from 'react-native';
|
|
2
|
+
import { TextInput, TextInputProps, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
3
|
import { maskDateBR } from '../lib/brazilian-date-input';
|
|
4
4
|
import { TextField } from './TextField';
|
|
5
5
|
|
|
@@ -15,7 +15,7 @@ export function DateField({
|
|
|
15
15
|
value: string;
|
|
16
16
|
onChange: (masked: string) => void;
|
|
17
17
|
placeholder?: string;
|
|
18
|
-
containerStyle?: ViewStyle
|
|
18
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
19
19
|
inputRef?: React.Ref<TextInput>;
|
|
20
20
|
returnKeyType?: TextInputProps['returnKeyType'];
|
|
21
21
|
onSubmitEditing?: TextInputProps['onSubmitEditing'];
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
View,
|
|
12
12
|
type StyleProp,
|
|
13
13
|
type TextInputProps,
|
|
14
|
+
type TextStyle,
|
|
14
15
|
type ViewStyle,
|
|
15
16
|
} from 'react-native';
|
|
16
17
|
import { AppIcon } from './app-icon';
|
|
@@ -138,7 +139,7 @@ export type ComposePillTextFieldProps = Omit<TextInputProps, 'multiline' | 'styl
|
|
|
138
139
|
maxLines?: number;
|
|
139
140
|
inputRef?: ComposePillTextInputRef;
|
|
140
141
|
layout?: ComposePillLineLayoutState;
|
|
141
|
-
style?: StyleProp<
|
|
142
|
+
style?: StyleProp<TextStyle>;
|
|
142
143
|
};
|
|
143
144
|
|
|
144
145
|
export function ComposePillTextField({
|