linear-react-components-ui 1.1.2-beta.16 → 1.1.2-beta.17
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/.eslintcache +1 -1
- package/lib/inputs/errorMessage/index.d.ts +1 -0
- package/lib/inputs/inputHOC.d.ts +1 -0
- package/lib/inputs/mask/BaseMask.d.ts +1 -0
- package/lib/inputs/mask/Cnpj.d.ts +1 -0
- package/lib/inputs/mask/Cpf.d.ts +1 -0
- package/lib/inputs/mask/Phone.d.ts +1 -0
- package/lib/inputs/mask/ZipCode.d.ts +1 -0
- package/lib/inputs/mask/imaskHOC.d.ts +1 -0
- package/lib/inputs/mask/index.d.ts +1 -0
- package/lib/inputs/mask/types.d.ts +3 -1
- package/lib/inputs/number/BaseNumber.d.ts +1 -0
- package/lib/inputs/number/Currency.d.ts +1 -0
- package/lib/inputs/number/Decimal.d.ts +1 -0
- package/lib/inputs/number/index.d.ts +1 -0
- package/lib/inputs/number/types.d.ts +1 -0
- package/lib/inputs/search/index.d.ts +1 -0
- package/lib/inputs/select/ActionButtons.d.ts +1 -0
- package/lib/inputs/select/Dropdown.d.ts +1 -0
- package/lib/inputs/select/helper.d.ts +1 -0
- package/lib/inputs/types.d.ts +3 -2
- package/package.json +1 -1
package/lib/inputs/inputHOC.d.ts
CHANGED
package/lib/inputs/mask/Cpf.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export { default as PhoneField } from './Phone.js';
|
|
|
5
5
|
export { default as ZipCodeField } from './ZipCode.js';
|
|
6
6
|
import './types.js';
|
|
7
7
|
import 'react';
|
|
8
|
+
import 'imask';
|
|
8
9
|
import '../../@types/Align.js';
|
|
9
10
|
import '../../@types/PermissionAttr.js';
|
|
10
11
|
import '../base/types.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { KeyboardEvent, MutableRefObject } from 'react';
|
|
2
|
+
import IMask from 'imask';
|
|
2
3
|
import { TextAlign } from '../../@types/Align.js';
|
|
3
4
|
import { OnDenied, PermissionAttr } from '../../@types/PermissionAttr.js';
|
|
4
5
|
import { CustomInputEvent } from '../base/types.js';
|
|
@@ -9,7 +10,7 @@ interface IBaseMaskProps {
|
|
|
9
10
|
onBlur?: (e: CustomInputEvent) => void;
|
|
10
11
|
onKeyDown?: (e: CustomInputEvent | KeyboardEvent<Element>) => void;
|
|
11
12
|
defaultValue?: string;
|
|
12
|
-
mask?:
|
|
13
|
+
mask?: IMask.AnyMask;
|
|
13
14
|
isNumeric?: boolean;
|
|
14
15
|
scale?: number;
|
|
15
16
|
radix?: string;
|
|
@@ -47,6 +48,7 @@ interface IBaseMaskProps {
|
|
|
47
48
|
returnFormattedValueOnKeyDown?: boolean;
|
|
48
49
|
isDateField?: boolean;
|
|
49
50
|
autoCompleteMask?: 'left' | 'right';
|
|
51
|
+
definitions?: IMask.AllMaskedOptions['definitions'];
|
|
50
52
|
}
|
|
51
53
|
interface ICnpjFieldProps extends IBaseMaskProps {
|
|
52
54
|
value?: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IDropdownSelectProps } from '../types.js';
|
|
2
2
|
import { GetSimpleFilteredParams, GetMultipleFilteredParams } from './types.js';
|
|
3
3
|
import 'react';
|
|
4
|
+
import 'imask';
|
|
4
5
|
import '../../@types/PermissionAttr.js';
|
|
5
6
|
import '../../@types/DataCombo.js';
|
|
6
7
|
import '../base/types.js';
|
package/lib/inputs/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactNode, MouseEvent, MutableRefObject, CSSProperties, KeyboardEvent, ReactElement } from 'react';
|
|
2
|
+
import IMask from 'imask';
|
|
2
3
|
import { PermissionAttr, OnDenied } from '../@types/PermissionAttr.js';
|
|
3
4
|
import { DataCombo } from '../@types/DataCombo.js';
|
|
4
5
|
import { IBaseProps, CustomInputEvent } from './base/types.js';
|
|
@@ -62,7 +63,7 @@ interface IMaskHOCProps {
|
|
|
62
63
|
inputRef?: MutableRefObject<HTMLInputElement | HTMLTextAreaElement | null> | ((ref: HTMLInputElement | HTMLTextAreaElement | null) => void);
|
|
63
64
|
placeholderChar?: string;
|
|
64
65
|
lazy?: boolean;
|
|
65
|
-
definitions?:
|
|
66
|
+
definitions?: IMask.AllMaskedOptions['definitions'];
|
|
66
67
|
groups?: object;
|
|
67
68
|
pattern?: string;
|
|
68
69
|
format?: () => void;
|
|
@@ -97,7 +98,7 @@ interface IMaskHOCProps {
|
|
|
97
98
|
rounded?: boolean;
|
|
98
99
|
errorMessages?: string[];
|
|
99
100
|
skeletonize?: boolean;
|
|
100
|
-
mask?:
|
|
101
|
+
mask?: IMask.AnyMask;
|
|
101
102
|
isDateField?: boolean;
|
|
102
103
|
autoCompleteMask?: 'left' | 'right';
|
|
103
104
|
}
|