@hexure/ui 1.13.49 → 1.13.51

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.
@@ -24,6 +24,8 @@ export interface FieldProps extends AccessibleProps {
24
24
  tooltip?: TooltipProps;
25
25
  /** Optional ID for automation purposes */
26
26
  dataItemid?: string;
27
+ /** Optional for black message with icon */
28
+ isNewMessageType?: boolean;
27
29
  }
28
30
  declare const Field: FC<FieldProps>;
29
31
  export default Field;
@@ -3,6 +3,7 @@ export interface StepProps {
3
3
  label: string | ReactNode;
4
4
  complete?: boolean;
5
5
  active?: boolean;
6
+ percentComplete?: number;
6
7
  }
7
8
  export interface ProgressBarProps {
8
9
  steps: StepProps[];
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import React, { FC, ReactNode } from 'react';
2
-
1
+ import React, { FC, ReactNode } from 'react';
2
+
3
3
  interface AccessibleProps {
4
4
  /** Set the css data-itemid for the main wrapping html element */
5
5
  id?: string;
@@ -14,8 +14,8 @@ interface AccessibleProps {
14
14
  tabIndex?: number;
15
15
  /** Set a label for an interactive element. See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label */
16
16
  'aria-label'?: string;
17
- }
18
-
17
+ }
18
+
19
19
  interface AccordionProps extends AccessibleProps {
20
20
  dataItemid?: string;
21
21
  title?: string;
@@ -26,8 +26,8 @@ interface AccordionProps extends AccessibleProps {
26
26
  /** Method to call when the header is clicked */
27
27
  onClick: (e?: any) => void;
28
28
  }
29
- declare const Accordion: FC<AccordionProps>;
30
-
29
+ declare const Accordion: FC<AccordionProps>;
30
+
31
31
  interface ButtonProps$4 {
32
32
  children: string;
33
33
  format?: string;
@@ -54,8 +54,8 @@ interface ActionDialogProps extends AccessibleProps {
54
54
  interface CustomStyle {
55
55
  [key: string]: string | number;
56
56
  }
57
- declare const ActionDialog: FC<ActionDialogProps>;
58
-
57
+ declare const ActionDialog: FC<ActionDialogProps>;
58
+
59
59
  interface ActionProps$1 extends AccessibleProps {
60
60
  label: string;
61
61
  onClick: (e?: any) => void;
@@ -73,8 +73,8 @@ interface AlertProps extends AccessibleProps {
73
73
  /** Optional ID for automation purposes */
74
74
  dataItemid?: string;
75
75
  }
76
- declare const Alert: FC<AlertProps>;
77
-
76
+ declare const Alert: FC<AlertProps>;
77
+
78
78
  interface TooltipProps {
79
79
  /** It is used to give label to tag. */
80
80
  children: any;
@@ -87,8 +87,8 @@ interface TooltipProps {
87
87
  /** Optional ID for automation purposes */
88
88
  dataItemid?: string;
89
89
  }
90
- declare const Tooltip: FC<TooltipProps>;
91
-
90
+ declare const Tooltip: FC<TooltipProps>;
91
+
92
92
  interface ButtonProps$3 extends AccessibleProps {
93
93
  /** Display a number badge on the right side of the button */
94
94
  badge?: number;
@@ -120,16 +120,16 @@ interface ButtonProps$3 extends AccessibleProps {
120
120
  /** Optional type for the button */
121
121
  type?: 'button' | 'submit' | 'reset' | null;
122
122
  }
123
- declare const Button: FC<ButtonProps$3>;
124
-
123
+ declare const Button: FC<ButtonProps$3>;
124
+
125
125
  interface AppHeaderProps {
126
126
  logoUrl?: string;
127
127
  buttons: ButtonProps$3[];
128
128
  /** Optional ID for automation purposes */
129
129
  dataItemid?: string;
130
130
  }
131
- declare const AppHeader: FC<AppHeaderProps>;
132
-
131
+ declare const AppHeader: FC<AppHeaderProps>;
132
+
133
133
  interface MenuItemType extends AccessibleProps {
134
134
  icon: string;
135
135
  label: string;
@@ -150,8 +150,8 @@ interface AppMenuProps extends AccessibleProps {
150
150
  /** Optional ID for automation purposes */
151
151
  dataItemid?: string;
152
152
  }
153
- declare const AppMenu: FC<AppMenuProps>;
154
-
153
+ declare const AppMenu: FC<AppMenuProps>;
154
+
155
155
  interface ButtonProps$2 {
156
156
  children: string;
157
157
  onClick: (e?: any) => void;
@@ -167,8 +167,8 @@ interface BulkActionBarProps extends AccessibleProps {
167
167
  /** Optional ID for automation purposes */
168
168
  dataItemid?: string;
169
169
  }
170
- declare const BulkActionBar: FC<BulkActionBarProps>;
171
-
170
+ declare const BulkActionBar: FC<BulkActionBarProps>;
171
+
172
172
  interface MenuItemProps extends AccessibleProps {
173
173
  icon?: string;
174
174
  label?: string;
@@ -181,8 +181,8 @@ interface MoreMenuProps extends AccessibleProps {
181
181
  /** Optional ID for automation purposes */
182
182
  dataItemid?: string;
183
183
  }
184
- declare const MoreMenu: FC<MoreMenuProps>;
185
-
184
+ declare const MoreMenu: FC<MoreMenuProps>;
185
+
186
186
  interface ButtonMenuProps {
187
187
  disabled?: boolean;
188
188
  label: string;
@@ -198,8 +198,8 @@ interface ButtonMenuProps {
198
198
  /** Optional ID for automation purposes */
199
199
  dataItemid?: string;
200
200
  }
201
- declare const ButtonMenu: FC<ButtonMenuProps>;
202
-
201
+ declare const ButtonMenu: FC<ButtonMenuProps>;
202
+
203
203
  interface CheckboxProps extends AccessibleProps {
204
204
  /** It is used to give label to checkbox. */
205
205
  children?: string;
@@ -217,8 +217,8 @@ interface CheckboxProps extends AccessibleProps {
217
217
  /** Optional ID for automation purposes */
218
218
  dataItemid?: string;
219
219
  }
220
- declare const Checkbox: FC<CheckboxProps>;
221
-
220
+ declare const Checkbox: FC<CheckboxProps>;
221
+
222
222
  interface OptionProps$3 {
223
223
  label?: string;
224
224
  value: string | number;
@@ -233,8 +233,8 @@ interface ChecklistProps extends AccessibleProps {
233
233
  /** Optional ID for automation purposes */
234
234
  dataItemid?: string;
235
235
  }
236
- declare const Checklist: FC<ChecklistProps>;
237
-
236
+ declare const Checklist: FC<ChecklistProps>;
237
+
238
238
  interface CopyProps extends AccessibleProps {
239
239
  /** Set the text to be displayed */
240
240
  children: string | React.ReactNode;
@@ -250,8 +250,8 @@ interface CopyProps extends AccessibleProps {
250
250
  /** Optional ID for automation purposes */
251
251
  dataItemid?: string;
252
252
  }
253
- declare const Copy: FC<CopyProps>;
254
-
253
+ declare const Copy: FC<CopyProps>;
254
+
255
255
  interface styleProps$3 {
256
256
  width?: number | string;
257
257
  }
@@ -272,8 +272,8 @@ interface DateProps extends AccessibleProps {
272
272
  dataItemid?: string;
273
273
  locale?: localeProps;
274
274
  }
275
- declare const DatePicker: FC<DateProps>;
276
-
275
+ declare const DatePicker: FC<DateProps>;
276
+
277
277
  interface ButtonProps$1 extends AccessibleProps {
278
278
  disabled?: boolean;
279
279
  children: string;
@@ -304,8 +304,8 @@ interface DrawerProps extends AccessibleProps {
304
304
  /** Optional ID for automation purposes */
305
305
  dataItemid?: string;
306
306
  }
307
- declare const Drawer: FC<DrawerProps>;
308
-
307
+ declare const Drawer: FC<DrawerProps>;
308
+
309
309
  interface ActionProps {
310
310
  dataItemid?: string;
311
311
  label: string;
@@ -329,9 +329,11 @@ interface FieldProps extends AccessibleProps {
329
329
  tooltip?: TooltipProps;
330
330
  /** Optional ID for automation purposes */
331
331
  dataItemid?: string;
332
+ /** Optional for black message with icon */
333
+ isNewMessageType?: boolean;
332
334
  }
333
- declare const Field: FC<FieldProps>;
334
-
335
+ declare const Field: FC<FieldProps>;
336
+
335
337
  interface FieldGroupProps {
336
338
  /** The label to display above the field group */
337
339
  label: string;
@@ -340,8 +342,8 @@ interface FieldGroupProps {
340
342
  /** Optional ID for automation purposes */
341
343
  dataItemid?: string;
342
344
  }
343
- declare const FieldGroup: FC<FieldGroupProps>;
344
-
345
+ declare const FieldGroup: FC<FieldGroupProps>;
346
+
345
347
  interface FileUploadProps {
346
348
  /** A method to call when files are added/removed. Return the new file or array of files. */
347
349
  onChange?: (files: Array<File>) => void;
@@ -367,8 +369,8 @@ interface ErrorObject {
367
369
  file: File;
368
370
  message: string;
369
371
  }
370
- declare const FileUpload: FC<FileUploadProps>;
371
-
372
+ declare const FileUpload: FC<FileUploadProps>;
373
+
372
374
  interface HeadingProps extends AccessibleProps {
373
375
  /** Toggle between bold and normal font weights */
374
376
  bold?: boolean;
@@ -383,8 +385,8 @@ interface HeadingProps extends AccessibleProps {
383
385
  /** Optional ID for automation purposes */
384
386
  dataItemid?: string;
385
387
  }
386
- declare const Heading: FC<HeadingProps>;
387
-
388
+ declare const Heading: FC<HeadingProps>;
389
+
388
390
  interface styleProps$2 {
389
391
  width?: number | string;
390
392
  }
@@ -417,8 +419,8 @@ interface InputProps extends AccessibleProps {
417
419
  /** Optional ID for automation purposes */
418
420
  dataItemid?: string;
419
421
  }
420
- declare const Input: FC<InputProps>;
421
-
422
+ declare const Input: FC<InputProps>;
423
+
422
424
  interface LinkProps extends AccessibleProps {
423
425
  /** Set the text to be displayed */
424
426
  children: string;
@@ -429,26 +431,27 @@ interface LinkProps extends AccessibleProps {
429
431
  /** Optional ID for automation purposes */
430
432
  dataItemid?: string;
431
433
  }
432
- declare const Link: FC<LinkProps>;
433
-
434
+ declare const Link: FC<LinkProps>;
435
+
434
436
  interface LoaderProps {
435
437
  /** Optional ID for automation purposes */
436
438
  dataItemid?: string;
437
439
  }
438
- declare const Loader: FC<LoaderProps>;
439
-
440
+ declare const Loader: FC<LoaderProps>;
441
+
440
442
  interface LogoProps extends AccessibleProps {
441
443
  type?: 'mark_red' | 'mark_white' | 'standard_white' | 'standard_black' | 'standard_full' | 'standard_reversed';
442
444
  height?: string;
443
445
  /** Optional ID for automation purposes */
444
446
  dataItemid?: string;
445
447
  }
446
- declare const Logo: FC<LogoProps>;
447
-
448
+ declare const Logo: FC<LogoProps>;
449
+
448
450
  interface StepProps {
449
451
  label: string | ReactNode;
450
452
  complete?: boolean;
451
453
  active?: boolean;
454
+ percentComplete?: number;
452
455
  }
453
456
  interface ProgressBarProps {
454
457
  steps: StepProps[];
@@ -456,8 +459,8 @@ interface ProgressBarProps {
456
459
  /** Optional ID for automation purposes */
457
460
  dataItemid?: string;
458
461
  }
459
- declare const ProgressBar: FC<ProgressBarProps>;
460
-
462
+ declare const ProgressBar: FC<ProgressBarProps>;
463
+
461
464
  interface ButtonProps {
462
465
  disabled?: boolean;
463
466
  children: string;
@@ -491,8 +494,8 @@ interface ModalProps extends AccessibleProps {
491
494
  /** Optional ID for automation purposes */
492
495
  dataItemid?: string;
493
496
  }
494
- declare const Modal: FC<ModalProps>;
495
-
497
+ declare const Modal: FC<ModalProps>;
498
+
496
499
  interface OptionProps$2 {
497
500
  label?: string;
498
501
  value: string | number;
@@ -514,8 +517,8 @@ interface MultiSelectProps extends AccessibleProps {
514
517
  /** Optional ID for automation purposes */
515
518
  dataItemid?: string;
516
519
  }
517
- declare const MultiSelect: FC<MultiSelectProps>;
518
-
520
+ declare const MultiSelect: FC<MultiSelectProps>;
521
+
519
522
  interface TagProps extends AccessibleProps {
520
523
  /** It is used to select tag-type either default or removable. */
521
524
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
@@ -528,8 +531,8 @@ interface TagProps extends AccessibleProps {
528
531
  /** Optional ID for automation purposes */
529
532
  dataItemid?: string;
530
533
  }
531
- declare const Tag: FC<TagProps>;
532
-
534
+ declare const Tag: FC<TagProps>;
535
+
533
536
  interface PageHeaderProps {
534
537
  title?: string;
535
538
  breadcrumbs?: Array<{
@@ -561,8 +564,8 @@ interface PageHeaderProps {
561
564
  /** Optional ID for automation purposes */
562
565
  dataItemid?: string;
563
566
  }
564
- declare const PageHeader: FC<PageHeaderProps>;
565
-
567
+ declare const PageHeader: FC<PageHeaderProps>;
568
+
566
569
  interface PaginationProps extends AccessibleProps {
567
570
  currentPage: number;
568
571
  onClick: (e?: any) => void;
@@ -571,8 +574,8 @@ interface PaginationProps extends AccessibleProps {
571
574
  dataItemid?: string;
572
575
  type?: 'button' | 'submit' | 'reset' | null;
573
576
  }
574
- declare const Pagination: FC<PaginationProps>;
575
-
577
+ declare const Pagination: FC<PaginationProps>;
578
+
576
579
  interface RadioProps extends AccessibleProps {
577
580
  /** It is used to give label to radio. */
578
581
  children: string | number;
@@ -591,8 +594,8 @@ interface RadioProps extends AccessibleProps {
591
594
  /** Optional ID for automation purposes */
592
595
  dataItemid?: string;
593
596
  }
594
- declare const Radio: FC<RadioProps>;
595
-
597
+ declare const Radio: FC<RadioProps>;
598
+
596
599
  interface OptionProps$1 {
597
600
  label?: string;
598
601
  value: string | number;
@@ -605,8 +608,8 @@ interface RadioListProps extends AccessibleProps {
605
608
  /** Optional ID for automation purposes */
606
609
  dataItemid?: string;
607
610
  }
608
- declare const RadioList: FC<RadioListProps>;
609
-
611
+ declare const RadioList: FC<RadioListProps>;
612
+
610
613
  interface OptionProps {
611
614
  label?: string;
612
615
  value: string | number;
@@ -637,8 +640,8 @@ interface SelectProps extends AccessibleProps {
637
640
  /** Optional ID for automation purposes */
638
641
  dataItemid?: string;
639
642
  }
640
- declare const Select: FC<SelectProps>;
641
-
643
+ declare const Select: FC<SelectProps>;
644
+
642
645
  interface RowObject {
643
646
  [key: string]: any;
644
647
  }
@@ -664,8 +667,8 @@ interface TableProps extends AccessibleProps {
664
667
  /** Optional ID for automation purposes */
665
668
  dataItemid?: string;
666
669
  }
667
- declare const Table: FC<TableProps>;
668
-
670
+ declare const Table: FC<TableProps>;
671
+
669
672
  interface TabProps extends AccessibleProps {
670
673
  badgeCount?: number;
671
674
  errorBadge?: boolean;
@@ -678,8 +681,8 @@ interface TabsProps extends AccessibleProps {
678
681
  /** Optional ID for automation purposes */
679
682
  dataItemid?: string;
680
683
  }
681
- declare const Tabs: FC<TabsProps>;
682
-
684
+ declare const Tabs: FC<TabsProps>;
685
+
683
686
  interface ToggleProps extends AccessibleProps {
684
687
  /** It is used to check whether Toggle is checked or not */
685
688
  on: boolean;
@@ -688,8 +691,8 @@ interface ToggleProps extends AccessibleProps {
688
691
  /** Optional ID for automation purposes */
689
692
  dataItemid?: string;
690
693
  }
691
- declare const Toggle: FC<ToggleProps>;
692
-
694
+ declare const Toggle: FC<ToggleProps>;
695
+
693
696
  interface ZeroStateProps extends AccessibleProps {
694
697
  /** The SVG path of the icon to show */
695
698
  icon: string;
@@ -708,8 +711,8 @@ interface ZeroStateProps extends AccessibleProps {
708
711
  /** Optional ID for automation purposes */
709
712
  dataItemid?: string;
710
713
  }
711
- declare const ZeroState: FC<ZeroStateProps>;
712
-
714
+ declare const ZeroState: FC<ZeroStateProps>;
715
+
713
716
  declare const getAgesFromDob: (dob: string) => {
714
717
  calculated_nearest_age: number | null;
715
718
  calculated_current_age: number | null;
@@ -723,8 +726,8 @@ declare const getYears: () => {
723
726
  declare const validateEmail: (email: string) => boolean;
724
727
  declare const validatePhone: (phone: string) => boolean;
725
728
  declare const formatAsPhone: (number: string) => string;
726
- declare const formatAsSsn: (number: string) => string;
727
-
729
+ declare const formatAsSsn: (number: string) => string;
730
+
728
731
  declare const Colors: {
729
732
  PRIMARY: {
730
733
  Hex: string;
@@ -776,6 +779,6 @@ declare const EditableTheme: {
776
779
  Hex: string;
777
780
  Rgb: string;
778
781
  };
779
- };
780
-
781
- 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 };
782
+ };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexure/ui",
3
- "version": "1.13.49",
3
+ "version": "1.13.51",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",