@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.
@@ -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" | "required" | "options" | "buttonProps" | "iconName" | "mode" | "onFileSelect" | "alertProps" | "pickerOptions"> & React.RefAttributes<FileInputRef>>;
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
- import { TextInputMaskProps } from 'react-native-masked-text';
3
- export declare const MaskedTextInput: import("react").ForwardRefExoticComponent<TextInputMaskProps & {
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
- var react_native_mask_input_1 = __importDefault(require("react-native-mask-input"));
9
- exports.MaskedTextInput = react_native_mask_input_1.default;
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":";;;;;;AAAA,aAAa;AACb,oFAA+C;AAIlC,QAAA,eAAe,GAAG,iCAE7B,CAAA"}
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@codeleap/mobile",
3
- "version": "1.9.8",
3
+ "version": "1.9.9",
4
4
  "main": "src/index.ts",
5
5
  "author": "Paulo Henrique De Souza <paulosouza300272@gmail.com>",
6
6
  "license": "UNLICENSED",
@@ -1,8 +1,9 @@
1
1
  // @ts-ignore
2
- import MaskInput from 'react-native-mask-input'
3
- // import { TextInputMaskProps } from './types/textInputMask'
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
- export const MaskedTextInput = MaskInput as React.ForwardRefExoticComponent<TextInputMaskProps & {
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