@proulr/sdui-components 0.1.8 → 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({
|
|
@@ -53,7 +53,7 @@ export function FloatingCreateMenu({
|
|
|
53
53
|
<Text style={[styles.mainFabGlyph]}>{open ? '\u2715' : '\u002B'}</Text>
|
|
54
54
|
</Pressable>
|
|
55
55
|
|
|
56
|
-
<Modal visible={open} animationType="fade" onRequestClose={close}>
|
|
56
|
+
<Modal visible={open} transparent animationType="fade" onRequestClose={close}>
|
|
57
57
|
<View style={styles.overlay}>
|
|
58
58
|
<Pressable style={styles.backdrop} onPress={close} accessibilityLabel="Fechar menu" />
|
|
59
59
|
|
|
@@ -121,6 +121,7 @@ const styles = StyleSheet.create({
|
|
|
121
121
|
},
|
|
122
122
|
backdrop: {
|
|
123
123
|
...StyleSheet.absoluteFill,
|
|
124
|
+
backgroundColor: m3Colors.scrim,
|
|
124
125
|
},
|
|
125
126
|
stack: {
|
|
126
127
|
position: 'absolute',
|