@codeleap/mobile 1.9.8 → 1.9.9
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/dist/components/FileInput.d.ts +1 -1
- package/dist/modules/textInputMask.d.ts +6 -2
- package/dist/modules/textInputMask.js +3 -5
- package/dist/modules/textInputMask.js.map +1 -1
- package/dist/modules/types/textInputMask.d.ts +2 -1
- package/package.json +1 -1
- package/src/modules/textInputMask.ts +5 -4
- package/src/modules/types/textInputMask.ts +2 -1
|
@@ -24,4 +24,4 @@ export declare type FileInputProps = {
|
|
|
24
24
|
pickerOptions?: Partial<Options>;
|
|
25
25
|
required?: boolean;
|
|
26
26
|
};
|
|
27
|
-
export declare const FileInput: React.ForwardRefExoticComponent<Pick<FileInputProps, "label" | "variants" | "styles" | "placeholder" | "type" | "
|
|
27
|
+
export declare const FileInput: React.ForwardRefExoticComponent<Pick<FileInputProps, "label" | "variants" | "styles" | "placeholder" | "type" | "options" | "required" | "buttonProps" | "iconName" | "mode" | "onFileSelect" | "alertProps" | "pickerOptions"> & React.RefAttributes<FileInputRef>>;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
export declare const MaskedTextInput: import("react").ForwardRefExoticComponent<{
|
|
3
|
+
masking: boolean | {
|
|
4
|
+
saveFormatted?: boolean;
|
|
5
|
+
};
|
|
6
|
+
onChangeText?: (maskedText: string, unmaskedText: string) => any;
|
|
7
|
+
} & import("react-native").TextInputProps & import("react-native-masked-text").TextInputMaskProps & {
|
|
4
8
|
ref?: any;
|
|
5
9
|
}>;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.MaskedTextInput = void 0;
|
|
7
4
|
// @ts-ignore
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
// import MaskInput from 'react-native-mask-input'
|
|
6
|
+
var react_native_masked_text_1 = require("react-native-masked-text");
|
|
7
|
+
exports.MaskedTextInput = react_native_masked_text_1.TextInputMask;
|
|
10
8
|
//# sourceMappingURL=textInputMask.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textInputMask.js","sourceRoot":"","sources":["../../src/modules/textInputMask.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"textInputMask.js","sourceRoot":"","sources":["../../src/modules/textInputMask.ts"],"names":[],"mappings":";;;AAAA,aAAa;AACb,kDAAkD;AAClD,qEAAwD;AAI3C,QAAA,eAAe,GAAG,wCAE7B,CAAA"}
|
|
@@ -2,8 +2,9 @@ import { FormTypes } from '@codeleap/common';
|
|
|
2
2
|
import { ComponentPropsWithoutRef } from 'react';
|
|
3
3
|
import { TextInput as NativeTextInput } from 'react-native';
|
|
4
4
|
declare type NativeProps = ComponentPropsWithoutRef<typeof NativeTextInput>;
|
|
5
|
+
import { TextInputMaskProps as RNTextInputMaskProps } from 'react-native-masked-text';
|
|
5
6
|
export declare type TextInputMaskProps = {
|
|
6
7
|
masking: FormTypes.TextField['masking'];
|
|
7
8
|
onChangeText?: (maskedText: string, unmaskedText: string) => any;
|
|
8
|
-
} & NativeProps;
|
|
9
|
+
} & NativeProps & RNTextInputMaskProps;
|
|
9
10
|
export {};
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
// @ts-ignore
|
|
2
|
-
import MaskInput from 'react-native-mask-input'
|
|
3
|
-
|
|
4
|
-
import { TextInputMaskProps } from 'react-native-masked-text'
|
|
2
|
+
// import MaskInput from 'react-native-mask-input'
|
|
3
|
+
import { TextInputMask } from 'react-native-masked-text'
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
import { TextInputMaskProps } from './types/textInputMask'
|
|
6
|
+
|
|
7
|
+
export const MaskedTextInput = TextInputMask as unknown as React.ForwardRefExoticComponent<TextInputMaskProps & {
|
|
7
8
|
ref?: any
|
|
8
9
|
}>
|
|
@@ -2,8 +2,9 @@ import { FormTypes } from '@codeleap/common'
|
|
|
2
2
|
import { ComponentPropsWithoutRef } from 'react'
|
|
3
3
|
import { TextInput as NativeTextInput } from 'react-native'
|
|
4
4
|
type NativeProps = ComponentPropsWithoutRef<typeof NativeTextInput>
|
|
5
|
+
import { TextInputMaskProps as RNTextInputMaskProps } from 'react-native-masked-text'
|
|
5
6
|
|
|
6
7
|
export type TextInputMaskProps = {
|
|
7
8
|
masking: FormTypes.TextField['masking']
|
|
8
9
|
onChangeText?: (maskedText:string, unmaskedText:string) => any
|
|
9
|
-
} & NativeProps
|
|
10
|
+
} & NativeProps & RNTextInputMaskProps
|