@hexure/ui 1.13.60 → 1.13.61

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/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import React, { FC, ReactNode } from 'react';
2
- import { CSSProperties } from 'styled-components';
3
-
1
+ import React, { FC, ReactNode } from 'react';
2
+ import { CSSProperties } from 'styled-components';
3
+
4
4
  interface AccessibleProps {
5
5
  /** Set the css data-itemid for the main wrapping html element */
6
6
  id?: string;
@@ -15,8 +15,8 @@ interface AccessibleProps {
15
15
  tabIndex?: number;
16
16
  /** Set a label for an interactive element. See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label */
17
17
  'aria-label'?: string;
18
- }
19
-
18
+ }
19
+
20
20
  interface AccordionProps extends AccessibleProps {
21
21
  dataItemid?: string;
22
22
  title?: string;
@@ -27,8 +27,8 @@ interface AccordionProps extends AccessibleProps {
27
27
  /** Method to call when the header is clicked */
28
28
  onClick: (e?: any) => void;
29
29
  }
30
- declare const Accordion: FC<AccordionProps>;
31
-
30
+ declare const Accordion: FC<AccordionProps>;
31
+
32
32
  interface ButtonProps$4 {
33
33
  children: string;
34
34
  format?: string;
@@ -55,8 +55,8 @@ interface ActionDialogProps extends AccessibleProps {
55
55
  interface CustomStyle {
56
56
  [key: string]: string | number;
57
57
  }
58
- declare const ActionDialog: FC<ActionDialogProps>;
59
-
58
+ declare const ActionDialog: FC<ActionDialogProps>;
59
+
60
60
  interface ActionProps$1 extends AccessibleProps {
61
61
  label: string;
62
62
  onClick: (e?: any) => void;
@@ -74,8 +74,8 @@ interface AlertProps extends AccessibleProps {
74
74
  /** Optional ID for automation purposes */
75
75
  dataItemid?: string;
76
76
  }
77
- declare const Alert: FC<AlertProps>;
78
-
77
+ declare const Alert: FC<AlertProps>;
78
+
79
79
  interface TooltipProps {
80
80
  /** It is used to give label to tag. */
81
81
  children: any;
@@ -90,8 +90,8 @@ interface TooltipProps {
90
90
  /** Override the default icon / wrapper height of 16px */
91
91
  height?: string;
92
92
  }
93
- declare const Tooltip: FC<TooltipProps>;
94
-
93
+ declare const Tooltip: FC<TooltipProps>;
94
+
95
95
  interface ButtonProps$3 extends AccessibleProps {
96
96
  /** Display a number badge on the right side of the button */
97
97
  badge?: number;
@@ -123,16 +123,16 @@ interface ButtonProps$3 extends AccessibleProps {
123
123
  /** Optional type for the button */
124
124
  type?: 'button' | 'submit' | 'reset' | null;
125
125
  }
126
- declare const Button: FC<ButtonProps$3>;
127
-
126
+ declare const Button: FC<ButtonProps$3>;
127
+
128
128
  interface AppHeaderProps {
129
129
  logoUrl?: string;
130
130
  buttons: ButtonProps$3[];
131
131
  /** Optional ID for automation purposes */
132
132
  dataItemid?: string;
133
133
  }
134
- declare const AppHeader: FC<AppHeaderProps>;
135
-
134
+ declare const AppHeader: FC<AppHeaderProps>;
135
+
136
136
  interface MenuItemType extends AccessibleProps {
137
137
  icon: string;
138
138
  label: string;
@@ -153,8 +153,8 @@ interface AppMenuProps extends AccessibleProps {
153
153
  /** Optional ID for automation purposes */
154
154
  dataItemid?: string;
155
155
  }
156
- declare const AppMenu: FC<AppMenuProps>;
157
-
156
+ declare const AppMenu: FC<AppMenuProps>;
157
+
158
158
  interface ButtonProps$2 {
159
159
  children: string;
160
160
  onClick: (e?: any) => void;
@@ -170,8 +170,8 @@ interface BulkActionBarProps extends AccessibleProps {
170
170
  /** Optional ID for automation purposes */
171
171
  dataItemid?: string;
172
172
  }
173
- declare const BulkActionBar: FC<BulkActionBarProps>;
174
-
173
+ declare const BulkActionBar: FC<BulkActionBarProps>;
174
+
175
175
  interface MenuItemProps extends AccessibleProps {
176
176
  icon?: string;
177
177
  label?: string;
@@ -184,8 +184,8 @@ interface MoreMenuProps extends AccessibleProps {
184
184
  /** Optional ID for automation purposes */
185
185
  dataItemid?: string;
186
186
  }
187
- declare const MoreMenu: FC<MoreMenuProps>;
188
-
187
+ declare const MoreMenu: FC<MoreMenuProps>;
188
+
189
189
  interface ButtonMenuProps {
190
190
  disabled?: boolean;
191
191
  label: string;
@@ -201,8 +201,8 @@ interface ButtonMenuProps {
201
201
  /** Optional ID for automation purposes */
202
202
  dataItemid?: string;
203
203
  }
204
- declare const ButtonMenu: FC<ButtonMenuProps>;
205
-
204
+ declare const ButtonMenu: FC<ButtonMenuProps>;
205
+
206
206
  interface CheckboxProps extends AccessibleProps {
207
207
  /** It is used to give label to checkbox. */
208
208
  children?: string;
@@ -222,8 +222,8 @@ interface CheckboxProps extends AccessibleProps {
222
222
  isInvalidRedBackground?: boolean;
223
223
  isWarningError?: boolean;
224
224
  }
225
- declare const Checkbox: FC<CheckboxProps>;
226
-
225
+ declare const Checkbox: FC<CheckboxProps>;
226
+
227
227
  interface OptionProps$3 {
228
228
  label?: string;
229
229
  value: string | number;
@@ -238,8 +238,8 @@ interface ChecklistProps extends AccessibleProps {
238
238
  /** Optional ID for automation purposes */
239
239
  dataItemid?: string;
240
240
  }
241
- declare const Checklist: FC<ChecklistProps>;
242
-
241
+ declare const Checklist: FC<ChecklistProps>;
242
+
243
243
  interface CopyProps extends AccessibleProps {
244
244
  /** Set the text to be displayed */
245
245
  children: string | React.ReactNode;
@@ -255,8 +255,8 @@ interface CopyProps extends AccessibleProps {
255
255
  /** Optional ID for automation purposes */
256
256
  dataItemid?: string;
257
257
  }
258
- declare const Copy: FC<CopyProps>;
259
-
258
+ declare const Copy: FC<CopyProps>;
259
+
260
260
  interface styleProps$2 {
261
261
  width?: number | string;
262
262
  }
@@ -277,8 +277,8 @@ interface DateProps extends AccessibleProps {
277
277
  dataItemid?: string;
278
278
  locale?: localeProps;
279
279
  }
280
- declare const DatePicker: FC<DateProps>;
281
-
280
+ declare const DatePicker: FC<DateProps>;
281
+
282
282
  interface ButtonProps$1 extends AccessibleProps {
283
283
  disabled?: boolean;
284
284
  children: string;
@@ -314,8 +314,8 @@ interface DrawerProps extends AccessibleProps {
314
314
  dataItemid?: string;
315
315
  bottomNotes?: string | ReactNode;
316
316
  }
317
- declare const Drawer: FC<DrawerProps>;
318
-
317
+ declare const Drawer: FC<DrawerProps>;
318
+
319
319
  interface ActionProps {
320
320
  dataItemid?: string;
321
321
  label: string;
@@ -342,8 +342,8 @@ interface FieldProps extends AccessibleProps {
342
342
  /** Optional for black message with icon */
343
343
  isNewMessageType?: boolean;
344
344
  }
345
- declare const Field: FC<FieldProps>;
346
-
345
+ declare const Field: FC<FieldProps>;
346
+
347
347
  interface FieldGroupProps {
348
348
  /** The label to display above the field group */
349
349
  label: string;
@@ -352,8 +352,8 @@ interface FieldGroupProps {
352
352
  /** Optional ID for automation purposes */
353
353
  dataItemid?: string;
354
354
  }
355
- declare const FieldGroup: FC<FieldGroupProps>;
356
-
355
+ declare const FieldGroup: FC<FieldGroupProps>;
356
+
357
357
  interface FileUploadProps {
358
358
  /** A method to call when files are added/removed. Return the new file or array of files. */
359
359
  onChange?: (files: Array<File>) => void;
@@ -379,8 +379,8 @@ interface ErrorObject {
379
379
  file: File;
380
380
  message: string;
381
381
  }
382
- declare const FileUpload: FC<FileUploadProps>;
383
-
382
+ declare const FileUpload: FC<FileUploadProps>;
383
+
384
384
  interface HeadingProps extends AccessibleProps {
385
385
  /** Toggle between bold and normal font weights */
386
386
  bold?: boolean;
@@ -395,8 +395,8 @@ interface HeadingProps extends AccessibleProps {
395
395
  /** Optional ID for automation purposes */
396
396
  dataItemid?: string;
397
397
  }
398
- declare const Heading: FC<HeadingProps>;
399
-
398
+ declare const Heading: FC<HeadingProps>;
399
+
400
400
  interface InputProps extends AccessibleProps {
401
401
  format?: 'phone' | 'currency' | 'currency_decimal' | 'ssn';
402
402
  height?: string;
@@ -431,8 +431,8 @@ interface InputProps extends AccessibleProps {
431
431
  isInvalidRedBackground?: boolean;
432
432
  isWarningError?: boolean;
433
433
  }
434
- declare const Input: FC<InputProps>;
435
-
434
+ declare const Input: FC<InputProps>;
435
+
436
436
  interface LinkProps extends AccessibleProps {
437
437
  /** Set the text to be displayed */
438
438
  children: string;
@@ -443,22 +443,22 @@ interface LinkProps extends AccessibleProps {
443
443
  /** Optional ID for automation purposes */
444
444
  dataItemid?: string;
445
445
  }
446
- declare const Link: FC<LinkProps>;
447
-
446
+ declare const Link: FC<LinkProps>;
447
+
448
448
  interface LoaderProps {
449
449
  /** Optional ID for automation purposes */
450
450
  dataItemid?: string;
451
451
  }
452
- declare const Loader: FC<LoaderProps>;
453
-
452
+ declare const Loader: FC<LoaderProps>;
453
+
454
454
  interface LogoProps extends AccessibleProps {
455
455
  type?: 'mark_red' | 'mark_white' | 'standard_white' | 'standard_black' | 'standard_full' | 'standard_reversed';
456
456
  height?: string;
457
457
  /** Optional ID for automation purposes */
458
458
  dataItemid?: string;
459
459
  }
460
- declare const Logo: FC<LogoProps>;
461
-
460
+ declare const Logo: FC<LogoProps>;
461
+
462
462
  interface StepProps {
463
463
  label: string | ReactNode;
464
464
  complete?: boolean;
@@ -471,8 +471,8 @@ interface ProgressBarProps {
471
471
  /** Optional ID for automation purposes */
472
472
  dataItemid?: string;
473
473
  }
474
- declare const ProgressBar: FC<ProgressBarProps>;
475
-
474
+ declare const ProgressBar: FC<ProgressBarProps>;
475
+
476
476
  interface ButtonProps {
477
477
  disabled?: boolean;
478
478
  children: string;
@@ -506,8 +506,8 @@ interface ModalProps extends AccessibleProps {
506
506
  /** Optional ID for automation purposes */
507
507
  dataItemid?: string;
508
508
  }
509
- declare const Modal: FC<ModalProps>;
510
-
509
+ declare const Modal: FC<ModalProps>;
510
+
511
511
  interface OptionProps$2 {
512
512
  label?: string;
513
513
  value: string | number;
@@ -529,8 +529,8 @@ interface MultiSelectProps extends AccessibleProps {
529
529
  /** Optional ID for automation purposes */
530
530
  dataItemid?: string;
531
531
  }
532
- declare const MultiSelect: FC<MultiSelectProps>;
533
-
532
+ declare const MultiSelect: FC<MultiSelectProps>;
533
+
534
534
  interface TagProps extends AccessibleProps {
535
535
  /** It is used to select tag-type either default or removable. */
536
536
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
@@ -543,8 +543,8 @@ interface TagProps extends AccessibleProps {
543
543
  /** Optional ID for automation purposes */
544
544
  dataItemid?: string;
545
545
  }
546
- declare const Tag: FC<TagProps>;
547
-
546
+ declare const Tag: FC<TagProps>;
547
+
548
548
  interface PageHeaderProps {
549
549
  title?: string;
550
550
  breadcrumbs?: Array<{
@@ -576,8 +576,8 @@ interface PageHeaderProps {
576
576
  /** Optional ID for automation purposes */
577
577
  dataItemid?: string;
578
578
  }
579
- declare const PageHeader: FC<PageHeaderProps>;
580
-
579
+ declare const PageHeader: FC<PageHeaderProps>;
580
+
581
581
  interface PaginationProps extends AccessibleProps {
582
582
  currentPage: number;
583
583
  onClick: (e?: any) => void;
@@ -586,8 +586,8 @@ interface PaginationProps extends AccessibleProps {
586
586
  dataItemid?: string;
587
587
  type?: 'button' | 'submit' | 'reset' | null;
588
588
  }
589
- declare const Pagination: FC<PaginationProps>;
590
-
589
+ declare const Pagination: FC<PaginationProps>;
590
+
591
591
  interface RadioProps extends AccessibleProps {
592
592
  /** It is used to give label to radio. */
593
593
  children: string | number;
@@ -608,8 +608,8 @@ interface RadioProps extends AccessibleProps {
608
608
  isInvalidRedBackground?: boolean;
609
609
  isWarningError?: boolean;
610
610
  }
611
- declare const Radio: FC<RadioProps>;
612
-
611
+ declare const Radio: FC<RadioProps>;
612
+
613
613
  interface OptionProps$1 {
614
614
  label?: string;
615
615
  value: string | number;
@@ -622,8 +622,8 @@ interface RadioListProps extends AccessibleProps {
622
622
  /** Optional ID for automation purposes */
623
623
  dataItemid?: string;
624
624
  }
625
- declare const RadioList: FC<RadioListProps>;
626
-
625
+ declare const RadioList: FC<RadioListProps>;
626
+
627
627
  interface OptionProps {
628
628
  label?: string;
629
629
  value: string | number;
@@ -656,8 +656,8 @@ interface SelectProps extends AccessibleProps {
656
656
  isInvalidRedBackground?: boolean;
657
657
  isWarningError?: boolean;
658
658
  }
659
- declare const Select: FC<SelectProps>;
660
-
659
+ declare const Select: FC<SelectProps>;
660
+
661
661
  interface RowObject {
662
662
  [key: string]: any;
663
663
  }
@@ -683,8 +683,8 @@ interface TableProps extends AccessibleProps {
683
683
  /** Optional ID for automation purposes */
684
684
  dataItemid?: string;
685
685
  }
686
- declare const Table: FC<TableProps>;
687
-
686
+ declare const Table: FC<TableProps>;
687
+
688
688
  interface TabProps extends AccessibleProps {
689
689
  badgeCount?: number;
690
690
  errorBadge?: boolean;
@@ -697,8 +697,8 @@ interface TabsProps extends AccessibleProps {
697
697
  /** Optional ID for automation purposes */
698
698
  dataItemid?: string;
699
699
  }
700
- declare const Tabs: FC<TabsProps>;
701
-
700
+ declare const Tabs: FC<TabsProps>;
701
+
702
702
  interface ToggleProps extends AccessibleProps {
703
703
  /** It is used to check whether Toggle is checked or not */
704
704
  on: boolean;
@@ -707,8 +707,8 @@ interface ToggleProps extends AccessibleProps {
707
707
  /** Optional ID for automation purposes */
708
708
  dataItemid?: string;
709
709
  }
710
- declare const Toggle: FC<ToggleProps>;
711
-
710
+ declare const Toggle: FC<ToggleProps>;
711
+
712
712
  interface ZeroStateProps extends AccessibleProps {
713
713
  /** The SVG path of the icon to show */
714
714
  icon: string;
@@ -727,8 +727,8 @@ interface ZeroStateProps extends AccessibleProps {
727
727
  /** Optional ID for automation purposes */
728
728
  dataItemid?: string;
729
729
  }
730
- declare const ZeroState: FC<ZeroStateProps>;
731
-
730
+ declare const ZeroState: FC<ZeroStateProps>;
731
+
732
732
  declare const getAgesFromDob: (dob: string) => {
733
733
  calculated_nearest_age: number | null;
734
734
  calculated_current_age: number | null;
@@ -743,8 +743,8 @@ declare const validateEmail: (email: string) => boolean;
743
743
  declare const validatePhone: (phone: string) => boolean;
744
744
  declare const formatAsPhone: (number: string) => string;
745
745
  declare const formatAsSsn: (number: string) => string;
746
- declare const formatAsMask: (number: string, mask: string) => string;
747
-
746
+ declare const formatAsMask: (number: string, mask: string) => string;
747
+
748
748
  declare const Colors: {
749
749
  PRIMARY: {
750
750
  Hex: string;
@@ -796,6 +796,6 @@ declare const EditableTheme: {
796
796
  Hex: string;
797
797
  Rgb: string;
798
798
  };
799
- };
800
-
801
- 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 };
799
+ };
800
+
801
+ 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.60",
3
+ "version": "1.13.61",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",