3.0.6 • Published 2 months ago

@types/react-input-mask v3.0.6

Weekly downloads
67,770
License
MIT
Repository
github
Last release
2 months ago

Installation

npm install --save @types/react-input-mask

Summary

This package contains type definitions for react-input-mask (https://github.com/sanniassin/react-input-mask).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-input-mask/v1.

index.d.ts

// Type definitions for react-input-mask 1.2
// Project: https://github.com/sanniassin/react-input-mask
// Definitions by: Alexandre Paré <https://github.com/apare>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

import * as React from "react";

declare namespace ReactInputMask {
    interface Props extends React.InputHTMLAttributes<HTMLInputElement> {
        /**
         * Mask string. Format characters are:
         * * `9`: `0-9`
         * * `a`: `A-Z, a-z`
         * * `\*`: `A-Z, a-z, 0-9`
         *
         * Any character can be escaped with backslash, which usually will appear as double backslash in JS strings.
         * For example, German phone mask with unremoveable prefix +49 will look like `mask="+4\\9 99 999 99"` or `mask={"+4\\\\9 99 999 99"}`
         */
        mask: string;
        /**
         * Character to cover unfilled editable parts of mask. Default character is "_". If set to null, unfilled parts will be empty, like in ordinary input.
         */
        maskChar?: string | null | undefined;
        /**
         * Defines format characters with characters as keys and corresponding RegExp string as values. Default ones:
         * ```
         * {
         *   "9": "[0-9]",
         *   "a": "[A-Za-z]",
         *   "*": "[A-Za-z0-9]"
         * }```
         */
        formatChars?: { [key: string]: string } | undefined;
        /**
         * Show mask even in empty input without focus.
         */
        alwaysShowMask?: boolean | undefined;
        /**
         * Use inputRef instead of ref if you need input node to manage focus, selection, etc.
         */
        inputRef?: React.Ref<HTMLInputElement> | undefined;
    }
}

declare class ReactInputMask extends React.Component<ReactInputMask.Props> {
}

export default ReactInputMask;

Additional Details

  • Last updated: Wed, 07 Jul 2021 17:33:46 GMT
  • Dependencies: @types/react
  • Global values: none

Credits

These definitions were written by Alexandre Paré.

ams-storybook-librarysand-product-configsand-migration-planner@devapi/design-systemmui-uijkc-inputidon@everything-registry/sub-chunk-955smartjkcjkc-inputscreaspuitds-design-testtdsoft-design-systemweb_containtersand-commonsenar-componentstestingamsuitest-react-ui-kit-package-lrmvomrtestcomponentstrogueirasuture-themeti-ecomm-sdk@solussaude-ui/reactmio-library-uilib-formularioinprodi-design-systemhaseb-npm-ui-kitgoshadostalo15packagegng-ecomm-sdkmunicipal-office-libmy-smart-payroll-calculatormaroom-ui-kitop-react-date-range-pickerorangecode-react-componentsnpmtestrobllupoc-migration-modulepoc-product-modulepgv-libreact-inverted-mask-inputnama-designnoyirmibir-reactrams-uirk-react-js-xtratus-forksobank-auth-modalsobank-formsilibtotally-test-module@cheapreats/react-ui@chiper-inc/sb-web-chiper@chiper-inc2/sb-web-chiper@datumllc/questionnaire-clientzkr-react-uikit@dvhb/ui@eachawy/general-component@gregd98/core-components@ftdata/styleguide@essence-community/constructor-share@infinitebrahmanuniverse/nolb-_types_re@lowes-tech/bds-react@logrock/pebbles@intechprev/componentes-web@evoke-platform/ui-components@ereminnf/rui@egvelho/next-mui@jakevo/form-generator@odecloud/components@quimiweb/ui-kit@onec1/webchat-app-3.5.31-bump@onec1/webchat-app-release-v5-initiate-chat@nubler/ui-kit@smartbr/synapse@smrtsrc/react-input@softsmart/input@softsmart/jkc-input@solussaude-ui-teste/react_v1@takala/client@bwsoft/input@toryjs/components-vanilla@unidata/uikitgeovane-design-systemaddio-ecomm-sdkadvanced-exchange-libraryams-storybook-libamslibrbolluamspkgsrsaamsrbolluamstestnpm@zalastax/nolb-_types_rebloaterbasket_deskatua-uichat-nextpyconnectbet-uicustombutondashcomigo-ui-library-testcpr-uicodiewebdataformjs
3.0.6

2 months ago

1.2.6

1 year ago

1.2.5

1 year ago

3.0.4

1 year ago

3.0.3

1 year ago

3.0.5

1 year ago

3.0.2

2 years ago

3.0.1

3 years ago

1.2.4

3 years ago

3.0.0

4 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

7 years ago

1.2.0

7 years ago

0.7.8

7 years ago

0.7.7

7 years ago

0.7.6

8 years ago

0.7.5

8 years ago

0.7.4

8 years ago

0.7.3

8 years ago

0.7.2

8 years ago

0.7.1

8 years ago

0.7.0

8 years ago