Socket
Socket
Sign inDemoInstall

react-imask

Package Overview
Dependencies
10
Maintainers
1
Versions
93
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.0.0-alpha.3 to 7.0.0-alpha.4

2

dist/index.d.ts
import 'imask';
export { default as IMask } from 'imask';
export { default as IMaskMixin } from './mixin';
export { default as IMaskInput } from './input';
export { default as useIMask } from './hook';
export { default as IMaskMixin, type MaskPropsKeys, type MaskOpts, type ReactElementProps, type ReactMaskProps, type ReactMixinComponent, type IMaskMixinProps, type IMaskInputProps, type ReactMaskOpts, } from './mixin';
//# sourceMappingURL=index.d.ts.map
import React from 'react';
import { type InputMask, type InputMaskElement, type FactoryOpts, type AllFactoryStaticOpts } from 'imask';
export type Falsy = false | 0 | "" | null | undefined;
type ReactMaskOpts = FactoryOpts & {
export type ReactMaskOpts = FactoryOpts & {
unmask?: 'typed' | boolean;

@@ -20,6 +20,8 @@ };

declare const NON_MASK_OPTIONS_PROPS_NAMES: readonly ["value", "unmask", "onAccept", "onComplete", "inputRef"];
type ReactElementProps<MaskElement extends InputMaskElement> = Omit<Omit<React.HTMLProps<MaskElement>, keyof typeof MASK_PROPS>, typeof NON_MASK_OPTIONS_PROPS_NAMES[number]>;
export type ReactElementProps<MaskElement extends InputMaskElement> = Omit<Omit<React.HTMLProps<MaskElement>, keyof typeof MASK_PROPS>, typeof NON_MASK_OPTIONS_PROPS_NAMES[number]>;
export type ReactMixinComponent<MaskElement extends InputMaskElement> = React.ComponentType<ReactElementProps<MaskElement> & {
inputRef: React.Ref<MaskElement>;
}>;
export type MaskPropsKeys = Exclude<keyof typeof MASK_PROPS, typeof NON_MASK_OPTIONS_PROPS_NAMES[number]>;
export type MaskOpts<MaskElement extends InputMaskElement, Props extends IMaskInputProps<MaskElement> = IMaskInputProps<MaskElement>> = Extract<Props, FactoryOpts>;
export type IMaskMixinProps<MaskElement extends InputMaskElement, Props extends ReactMaskOpts & ReactMaskProps<MaskElement> = ReactMaskOpts & ReactMaskProps<MaskElement>> = Props & ReactMaskProps<MaskElement, Props>;

@@ -26,0 +28,0 @@ export type IMaskInputProps<MaskElement extends InputMaskElement, Props extends IMaskMixinProps<MaskElement> = IMaskMixinProps<MaskElement>> = ReactElementProps<MaskElement> & IMaskMixinProps<MaskElement, Props>;

import 'imask';
export { default as IMask } from 'imask';
export { default as IMaskMixin } from './mixin';
export { default as IMaskInput } from './input';
export { default as useIMask } from './hook';
export { default as IMaskMixin, type MaskPropsKeys, type MaskOpts, type ReactElementProps, type ReactMaskProps, type ReactMixinComponent, type IMaskMixinProps, type IMaskInputProps, type ReactMaskOpts, } from './mixin';
//# sourceMappingURL=index.d.ts.map
import 'imask';
export { default as IMask } from 'imask';
export { default as IMaskMixin } from './mixin';
export { default as IMaskInput } from './input';
export { default as useIMask } from './hook';
export { default as IMaskMixin, type MaskPropsKeys, type MaskOpts, type ReactElementProps, type ReactMaskProps, type ReactMixinComponent, type IMaskMixinProps, type IMaskInputProps, type ReactMaskOpts, } from './mixin';
//# sourceMappingURL=index.d.ts.map
import 'imask/esm';
export { default as IMask } from 'imask/esm/imask';
export { default as IMaskMixin } from './mixin.js';
export { default as IMaskInput } from './input.js';
export { default as useIMask } from './hook.js';
export { default as IMaskMixin } from './mixin.js';
import 'react';
import 'prop-types';
import React from 'react';
import { type InputMask, type InputMaskElement, type FactoryOpts, type AllFactoryStaticOpts } from 'imask';
export type Falsy = false | 0 | "" | null | undefined;
type ReactMaskOpts = FactoryOpts & {
export type ReactMaskOpts = FactoryOpts & {
unmask?: 'typed' | boolean;

@@ -20,6 +20,8 @@ };

declare const NON_MASK_OPTIONS_PROPS_NAMES: readonly ["value", "unmask", "onAccept", "onComplete", "inputRef"];
type ReactElementProps<MaskElement extends InputMaskElement> = Omit<Omit<React.HTMLProps<MaskElement>, keyof typeof MASK_PROPS>, typeof NON_MASK_OPTIONS_PROPS_NAMES[number]>;
export type ReactElementProps<MaskElement extends InputMaskElement> = Omit<Omit<React.HTMLProps<MaskElement>, keyof typeof MASK_PROPS>, typeof NON_MASK_OPTIONS_PROPS_NAMES[number]>;
export type ReactMixinComponent<MaskElement extends InputMaskElement> = React.ComponentType<ReactElementProps<MaskElement> & {
inputRef: React.Ref<MaskElement>;
}>;
export type MaskPropsKeys = Exclude<keyof typeof MASK_PROPS, typeof NON_MASK_OPTIONS_PROPS_NAMES[number]>;
export type MaskOpts<MaskElement extends InputMaskElement, Props extends IMaskInputProps<MaskElement> = IMaskInputProps<MaskElement>> = Extract<Props, FactoryOpts>;
export type IMaskMixinProps<MaskElement extends InputMaskElement, Props extends ReactMaskOpts & ReactMaskProps<MaskElement> = ReactMaskOpts & ReactMaskProps<MaskElement>> = Props & ReactMaskProps<MaskElement, Props>;

@@ -26,0 +28,0 @@ export type IMaskInputProps<MaskElement extends InputMaskElement, Props extends IMaskMixinProps<MaskElement> = IMaskMixinProps<MaskElement>> = ReactElementProps<MaskElement> & IMaskMixinProps<MaskElement, Props>;

{
"name": "react-imask",
"version": "7.0.0-alpha.3",
"version": "7.0.0-alpha.4",
"license": "MIT",

@@ -24,3 +24,3 @@ "author": "Alexey Kryazhev",

"dependencies": {
"imask": "^7.0.0-alpha.3",
"imask": "^7.0.0-alpha.4",
"prop-types": "^15.8.1"

@@ -34,6 +34,6 @@ },

},
"gitHead": "72c8675f2e3d9ca2714d76343a3fc524da03c9f7",
"gitHead": "d29a59cbca5afc68339dd7cdde3c22f12c95e168",
"devDependencies": {
"@types/react": "^18.2.8",
"@types/react-dom": "^18.2.4",
"@types/react": "^18.2.12",
"@types/react-dom": "^18.2.5",
"react": "^18.2.0",

@@ -40,0 +40,0 @@ "react-dom": "^18.2.0"

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc