kui-basic 1.1.79 → 1.1.80
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/InputWithMask/index.d.ts +11 -9
- package/index.d.ts +11 -9
- package/package.json +1 -1
package/InputWithMask/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { HTMLInputTypeAttribute } from 'react';
|
|
3
|
+
import { IMaskInputProps } from 'react-imask/esm/mixin';
|
|
4
|
+
import { InputMaskElement } from 'imask';
|
|
3
5
|
|
|
4
6
|
type InputMessageVariant = "error" | "warning" | "success"
|
|
5
7
|
|
|
@@ -28,15 +30,15 @@ interface InputWithAdornmentsProps extends InputProps {
|
|
|
28
30
|
cornerLabel?: string
|
|
29
31
|
}
|
|
30
32
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
type InputWithMaskType = (
|
|
37
|
-
props: InputWithMaskProps
|
|
38
|
-
) => React.ReactElement
|
|
39
|
-
|
|
33
|
+
type InputWithMaskProps = {
|
|
34
|
+
value?: string | number | undefined
|
|
35
|
+
} & IMaskInputProps<InputMaskElement> &
|
|
36
|
+
InputWithAdornmentsProps
|
|
37
|
+
|
|
38
|
+
type InputWithMaskType = (
|
|
39
|
+
props: InputWithMaskProps
|
|
40
|
+
) => React.ReactElement
|
|
41
|
+
|
|
40
42
|
declare const InputWithMask: InputWithMaskType
|
|
41
43
|
|
|
42
44
|
export { InputWithMaskProps, InputWithMaskType, InputWithMask as default };
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { HTMLInputTypeAttribute, ReactElement, SyntheticEvent, ReactNode, RefObject } from 'react';
|
|
3
|
+
import { IMaskInputProps } from 'react-imask/esm/mixin';
|
|
4
|
+
import { InputMaskElement } from 'imask';
|
|
3
5
|
import { Placement } from '@floating-ui/react';
|
|
4
6
|
import { MiddlewareData } from '@floating-ui/core/src/types';
|
|
5
7
|
|
|
@@ -379,15 +381,15 @@ type InputWithCountryDropdownType = (
|
|
|
379
381
|
|
|
380
382
|
declare const InputWithCountryDropdown: InputWithCountryDropdownType
|
|
381
383
|
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
type InputWithMaskType = (
|
|
388
|
-
props: InputWithMaskProps
|
|
389
|
-
) => React.ReactElement
|
|
390
|
-
|
|
384
|
+
type InputWithMaskProps = {
|
|
385
|
+
value?: string | number | undefined
|
|
386
|
+
} & IMaskInputProps<InputMaskElement> &
|
|
387
|
+
InputWithAdornmentsProps
|
|
388
|
+
|
|
389
|
+
type InputWithMaskType = (
|
|
390
|
+
props: InputWithMaskProps
|
|
391
|
+
) => React.ReactElement
|
|
392
|
+
|
|
391
393
|
declare const InputWithMask: InputWithMaskType
|
|
392
394
|
|
|
393
395
|
type ModalSizes = "small" | "large"
|