react-imask
Advanced tools
Comparing version 7.0.0-alpha.3 to 7.0.0-alpha.4
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
83347
769
1
Updatedimask@^7.0.0-alpha.4