kui-basic 1.1.79 → 1.1.81

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.
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { HTMLInputTypeAttribute } from 'react';
3
+ import MaskedProps from 'react-imask/esm';
3
4
 
4
5
  type InputMessageVariant = "error" | "warning" | "success"
5
6
 
@@ -28,15 +29,21 @@ interface InputWithAdornmentsProps extends InputProps {
28
29
  cornerLabel?: string
29
30
  }
30
31
 
31
- interface InputWithMaskProps extends InputWithAdornmentsProps {
32
- mask?: string
33
- value?: string | number | undefined
34
- }
35
-
36
- type InputWithMaskType = (
37
- props: InputWithMaskProps
38
- ) => React.ReactElement
39
-
32
+ type InputWithMaskProps = {
33
+ value?: string | number | undefined
34
+ unmask?: boolean | "typed" | undefined
35
+ } & MaskedProps.MaskedNumber &
36
+ MaskedProps.Masked &
37
+ MaskedProps.MaskedPattern &
38
+ MaskedProps.MaskedDynamic &
39
+ MaskedProps.MaskedRegExp &
40
+ MaskedProps.MaskedFunction &
41
+ InputWithAdornmentsProps
42
+
43
+ type InputWithMaskType = (
44
+ props: InputWithMaskProps
45
+ ) => React.ReactElement
46
+
40
47
  declare const InputWithMask: InputWithMaskType
41
48
 
42
49
  export { InputWithMaskProps, InputWithMaskType, InputWithMask as default };
package/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { HTMLInputTypeAttribute, ReactElement, SyntheticEvent, ReactNode, RefObject } from 'react';
3
+ import MaskedProps from 'react-imask/esm';
3
4
  import { Placement } from '@floating-ui/react';
4
5
  import { MiddlewareData } from '@floating-ui/core/src/types';
5
6
 
@@ -379,15 +380,21 @@ type InputWithCountryDropdownType = (
379
380
 
380
381
  declare const InputWithCountryDropdown: InputWithCountryDropdownType
381
382
 
382
- interface InputWithMaskProps extends InputWithAdornmentsProps {
383
- mask?: string
384
- value?: string | number | undefined
385
- }
386
-
387
- type InputWithMaskType = (
388
- props: InputWithMaskProps
389
- ) => React.ReactElement
390
-
383
+ type InputWithMaskProps = {
384
+ value?: string | number | undefined
385
+ unmask?: boolean | "typed" | undefined
386
+ } & MaskedProps.MaskedNumber &
387
+ MaskedProps.Masked &
388
+ MaskedProps.MaskedPattern &
389
+ MaskedProps.MaskedDynamic &
390
+ MaskedProps.MaskedRegExp &
391
+ MaskedProps.MaskedFunction &
392
+ InputWithAdornmentsProps
393
+
394
+ type InputWithMaskType = (
395
+ props: InputWithMaskProps
396
+ ) => React.ReactElement
397
+
391
398
  declare const InputWithMask: InputWithMaskType
392
399
 
393
400
  type ModalSizes = "small" | "large"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kui-basic",
3
- "version": "1.1.79",
3
+ "version": "1.1.81",
4
4
  "private": false,
5
5
  "description": "React UI Components for Maroom projects",
6
6
  "author": {