@hexure/ui 1.13.52 → 1.13.54

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,4 +1,5 @@
1
1
  import { FC } from 'react';
2
+ import { CSSProperties } from 'styled-components';
2
3
  import { AccessibleProps } from '../../utils/Accessibility';
3
4
  export interface styleProps {
4
5
  width?: number | string;
@@ -22,7 +23,7 @@ export interface InputProps extends AccessibleProps {
22
23
  readOnly?: boolean;
23
24
  showCharCount?: boolean;
24
25
  step?: number;
25
- style?: styleProps;
26
+ style?: CSSProperties;
26
27
  type?: 'date' | 'datetime-local' | 'email' | 'number' | 'password' | 'tel' | 'text' | 'url' | 'textarea' | 'search';
27
28
  value?: string;
28
29
  suggestedValues?: string[];
@@ -31,6 +32,7 @@ export interface InputProps extends AccessibleProps {
31
32
  isAutoComplete?: boolean;
32
33
  /** Optional ID for automation purposes */
33
34
  dataItemid?: string;
35
+ mask?: string;
34
36
  }
35
37
  declare const Input: FC<InputProps>;
36
38
  export default Input;
@@ -12,3 +12,4 @@ export declare const validateEmail: (email: string) => boolean;
12
12
  export declare const validatePhone: (phone: string) => boolean;
13
13
  export declare const formatAsPhone: (number: string) => string;
14
14
  export declare const formatAsSsn: (number: string) => string;
15
+ export declare const formatAsMask: (number: string, mask: string) => string;