File tree Expand file tree Collapse file tree 3 files changed +19
-11
lines changed Expand file tree Collapse file tree 3 files changed +19
-11
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,9 @@ import {
19
19
FieldContextType ,
20
20
TextFieldMethods ,
21
21
TextFieldRef ,
22
- Validator
22
+ Validator ,
23
+ ValidationMessagePositionType ,
24
+ MandatoryIndication
23
25
} from './types' ;
24
26
import { shouldHidePlaceholder } from './Presenter' ;
25
27
import Input from './Input' ;
@@ -229,7 +231,9 @@ export {
229
231
TextFieldMethods ,
230
232
TextFieldRef ,
231
233
ValidationMessagePosition as TextFieldValidationMessagePosition ,
232
- Validator as TextFieldValidator
234
+ Validator as TextFieldValidator ,
235
+ ValidationMessagePositionType as TextFieldValidationMessagePositionType ,
236
+ MandatoryIndication as TextFieldMandatoryIndication
233
237
} ;
234
238
export default asBaseComponent < TextFieldProps , StaticMembers > ( forwardRef ( TextField as any ) , {
235
239
modifiersOptions : {
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export enum ValidationMessagePosition {
28
28
BOTTOM = 'bottom'
29
29
}
30
30
31
- type ValidationMessagePositionType = `${ValidationMessagePosition } ` | ValidationMessagePosition ;
31
+ export type ValidationMessagePositionType = `${ValidationMessagePosition } ` | ValidationMessagePosition ;
32
32
33
33
export type Validator = Function | keyof typeof formValidators ;
34
34
@@ -54,7 +54,7 @@ export interface FieldStateProps extends InputProps {
54
54
onChangeValidity ?: ( isValid : boolean ) => void ;
55
55
}
56
56
57
- interface MandatoryIndication {
57
+ export interface MandatoryIndication {
58
58
/**
59
59
* Whether to show a mandatory field indication.
60
60
*/
Original file line number Diff line number Diff line change @@ -29,12 +29,6 @@ import * as Incubator from './incubator';
29
29
export {
30
30
ExpandableOverlayProps ,
31
31
ExpandableOverlayMethods ,
32
- TextFieldProps ,
33
- TextFieldMethods ,
34
- TextFieldRef ,
35
- TextFieldValidationMessagePosition ,
36
- TextFieldValidator ,
37
- FieldContextType ,
38
32
ToastProps ,
39
33
ToastPresets ,
40
34
PanViewProps ,
@@ -163,7 +157,17 @@ export {
163
157
export { default as Text , TextProps } from './components/text' ;
164
158
// @ts -expect-error
165
159
export { default as TextArea } from './components/textArea' ;
166
- export { default as TextField } from './components/textField' ;
160
+ export {
161
+ default as TextField ,
162
+ TextFieldProps ,
163
+ TextFieldMethods ,
164
+ TextFieldRef ,
165
+ TextFieldValidationMessagePosition ,
166
+ TextFieldValidationMessagePositionType ,
167
+ TextFieldMandatoryIndication ,
168
+ TextFieldValidator ,
169
+ FieldContextType
170
+ } from './components/textField' ;
167
171
// @ts -expect-error
168
172
export { default as Toast } from './components/toast' ;
169
173
export { default as TouchableOpacity , TouchableOpacityProps } from './components/touchableOpacity' ;
You can’t perform that action at this time.
0 commit comments