@hexure/ui 1.13.52 → 1.13.53

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;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import React, { FC, ReactNode } from 'react';
2
+ import { CSSProperties } from 'styled-components';
2
3
 
3
4
  interface AccessibleProps {
4
5
  /** Set the css data-itemid for the main wrapping html element */
@@ -252,7 +253,7 @@ interface CopyProps extends AccessibleProps {
252
253
  }
253
254
  declare const Copy: FC<CopyProps>;
254
255
 
255
- interface styleProps$3 {
256
+ interface styleProps$2 {
256
257
  width?: number | string;
257
258
  }
258
259
  interface localeProps {
@@ -267,7 +268,7 @@ interface DateProps extends AccessibleProps {
267
268
  minDate?: string;
268
269
  date?: string;
269
270
  onChange?: (e: any) => void;
270
- style?: styleProps$3;
271
+ style?: styleProps$2;
271
272
  /** Optional ID for automation purposes */
272
273
  dataItemid?: string;
273
274
  locale?: localeProps;
@@ -387,9 +388,6 @@ interface HeadingProps extends AccessibleProps {
387
388
  }
388
389
  declare const Heading: FC<HeadingProps>;
389
390
 
390
- interface styleProps$2 {
391
- width?: number | string;
392
- }
393
391
  interface InputProps extends AccessibleProps {
394
392
  format?: 'phone' | 'currency' | 'currency_decimal' | 'ssn';
395
393
  height?: string;
@@ -409,7 +407,7 @@ interface InputProps extends AccessibleProps {
409
407
  readOnly?: boolean;
410
408
  showCharCount?: boolean;
411
409
  step?: number;
412
- style?: styleProps$2;
410
+ style?: CSSProperties;
413
411
  type?: 'date' | 'datetime-local' | 'email' | 'number' | 'password' | 'tel' | 'text' | 'url' | 'textarea' | 'search';
414
412
  value?: string;
415
413
  suggestedValues?: string[];
@@ -418,6 +416,7 @@ interface InputProps extends AccessibleProps {
418
416
  isAutoComplete?: boolean;
419
417
  /** Optional ID for automation purposes */
420
418
  dataItemid?: string;
419
+ mask?: string;
421
420
  }
422
421
  declare const Input: FC<InputProps>;
423
422
 
@@ -726,7 +725,8 @@ declare const getYears: () => {
726
725
  declare const validateEmail: (email: string) => boolean;
727
726
  declare const validatePhone: (phone: string) => boolean;
728
727
  declare const formatAsPhone: (number: string) => string;
729
- declare const formatAsSsn: (number: string) => string;
728
+ declare const formatAsSsn: (number: string) => string;
729
+ declare const formatAsMask: (number: string, mask: string) => string;
730
730
 
731
731
  declare const Colors: {
732
732
  PRIMARY: {
@@ -781,4 +781,4 @@ declare const EditableTheme: {
781
781
  };
782
782
  };
783
783
 
784
- export { AccessibleProps, Accordion, ActionDialog, Alert, AppHeader, AppMenu, BulkActionBar, Button, ButtonMenu, Checkbox, Checklist, Colors, Copy, DatePicker, Drawer, EditableTheme, Field, FieldGroup, FileUpload, FontSizes, FontStyles, Heading, Input, Link, Loader, Logo, Modal, MoreMenu, MultiSelect, PageHeader, Pagination, ProgressBar, Radio, RadioList, Select, Table, Tabs, Tag, Toggle, Tooltip, ZeroState, formatAsPhone, formatAsSsn, getAgesFromDob, getDaysForMonth, getYears, validateEmail, validatePhone };
784
+ export { AccessibleProps, Accordion, ActionDialog, Alert, AppHeader, AppMenu, BulkActionBar, Button, ButtonMenu, Checkbox, Checklist, Colors, Copy, DatePicker, Drawer, EditableTheme, Field, FieldGroup, FileUpload, FontSizes, FontStyles, Heading, Input, Link, Loader, Logo, Modal, MoreMenu, MultiSelect, PageHeader, Pagination, ProgressBar, Radio, RadioList, Select, Table, Tabs, Tag, Toggle, Tooltip, ZeroState, formatAsMask, formatAsPhone, formatAsSsn, getAgesFromDob, getDaysForMonth, getYears, validateEmail, validatePhone };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexure/ui",
3
- "version": "1.13.52",
3
+ "version": "1.13.53",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",