@hexure/ui 1.13.50 → 1.13.52

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.
@@ -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;
@@ -332,8 +332,8 @@ interface FieldProps extends AccessibleProps {
332
332
  /** Optional for black message with icon */
333
333
  isNewMessageType?: boolean;
334
334
  }
335
- declare const Field: FC<FieldProps>;
336
-
335
+ declare const Field: FC<FieldProps>;
336
+
337
337
  interface FieldGroupProps {
338
338
  /** The label to display above the field group */
339
339
  label: string;
@@ -342,8 +342,8 @@ interface FieldGroupProps {
342
342
  /** Optional ID for automation purposes */
343
343
  dataItemid?: string;
344
344
  }
345
- declare const FieldGroup: FC<FieldGroupProps>;
346
-
345
+ declare const FieldGroup: FC<FieldGroupProps>;
346
+
347
347
  interface FileUploadProps {
348
348
  /** A method to call when files are added/removed. Return the new file or array of files. */
349
349
  onChange?: (files: Array<File>) => void;
@@ -369,8 +369,8 @@ interface ErrorObject {
369
369
  file: File;
370
370
  message: string;
371
371
  }
372
- declare const FileUpload: FC<FileUploadProps>;
373
-
372
+ declare const FileUpload: FC<FileUploadProps>;
373
+
374
374
  interface HeadingProps extends AccessibleProps {
375
375
  /** Toggle between bold and normal font weights */
376
376
  bold?: boolean;
@@ -385,8 +385,8 @@ interface HeadingProps extends AccessibleProps {
385
385
  /** Optional ID for automation purposes */
386
386
  dataItemid?: string;
387
387
  }
388
- declare const Heading: FC<HeadingProps>;
389
-
388
+ declare const Heading: FC<HeadingProps>;
389
+
390
390
  interface styleProps$2 {
391
391
  width?: number | string;
392
392
  }
@@ -419,8 +419,8 @@ interface InputProps extends AccessibleProps {
419
419
  /** Optional ID for automation purposes */
420
420
  dataItemid?: string;
421
421
  }
422
- declare const Input: FC<InputProps>;
423
-
422
+ declare const Input: FC<InputProps>;
423
+
424
424
  interface LinkProps extends AccessibleProps {
425
425
  /** Set the text to be displayed */
426
426
  children: string;
@@ -431,26 +431,27 @@ interface LinkProps extends AccessibleProps {
431
431
  /** Optional ID for automation purposes */
432
432
  dataItemid?: string;
433
433
  }
434
- declare const Link: FC<LinkProps>;
435
-
434
+ declare const Link: FC<LinkProps>;
435
+
436
436
  interface LoaderProps {
437
437
  /** Optional ID for automation purposes */
438
438
  dataItemid?: string;
439
439
  }
440
- declare const Loader: FC<LoaderProps>;
441
-
440
+ declare const Loader: FC<LoaderProps>;
441
+
442
442
  interface LogoProps extends AccessibleProps {
443
443
  type?: 'mark_red' | 'mark_white' | 'standard_white' | 'standard_black' | 'standard_full' | 'standard_reversed';
444
444
  height?: string;
445
445
  /** Optional ID for automation purposes */
446
446
  dataItemid?: string;
447
447
  }
448
- declare const Logo: FC<LogoProps>;
449
-
448
+ declare const Logo: FC<LogoProps>;
449
+
450
450
  interface StepProps {
451
451
  label: string | ReactNode;
452
452
  complete?: boolean;
453
453
  active?: boolean;
454
+ percentComplete?: number;
454
455
  }
455
456
  interface ProgressBarProps {
456
457
  steps: StepProps[];
@@ -458,8 +459,8 @@ interface ProgressBarProps {
458
459
  /** Optional ID for automation purposes */
459
460
  dataItemid?: string;
460
461
  }
461
- declare const ProgressBar: FC<ProgressBarProps>;
462
-
462
+ declare const ProgressBar: FC<ProgressBarProps>;
463
+
463
464
  interface ButtonProps {
464
465
  disabled?: boolean;
465
466
  children: string;
@@ -493,8 +494,8 @@ interface ModalProps extends AccessibleProps {
493
494
  /** Optional ID for automation purposes */
494
495
  dataItemid?: string;
495
496
  }
496
- declare const Modal: FC<ModalProps>;
497
-
497
+ declare const Modal: FC<ModalProps>;
498
+
498
499
  interface OptionProps$2 {
499
500
  label?: string;
500
501
  value: string | number;
@@ -516,8 +517,8 @@ interface MultiSelectProps extends AccessibleProps {
516
517
  /** Optional ID for automation purposes */
517
518
  dataItemid?: string;
518
519
  }
519
- declare const MultiSelect: FC<MultiSelectProps>;
520
-
520
+ declare const MultiSelect: FC<MultiSelectProps>;
521
+
521
522
  interface TagProps extends AccessibleProps {
522
523
  /** It is used to select tag-type either default or removable. */
523
524
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
@@ -530,8 +531,8 @@ interface TagProps extends AccessibleProps {
530
531
  /** Optional ID for automation purposes */
531
532
  dataItemid?: string;
532
533
  }
533
- declare const Tag: FC<TagProps>;
534
-
534
+ declare const Tag: FC<TagProps>;
535
+
535
536
  interface PageHeaderProps {
536
537
  title?: string;
537
538
  breadcrumbs?: Array<{
@@ -563,8 +564,8 @@ interface PageHeaderProps {
563
564
  /** Optional ID for automation purposes */
564
565
  dataItemid?: string;
565
566
  }
566
- declare const PageHeader: FC<PageHeaderProps>;
567
-
567
+ declare const PageHeader: FC<PageHeaderProps>;
568
+
568
569
  interface PaginationProps extends AccessibleProps {
569
570
  currentPage: number;
570
571
  onClick: (e?: any) => void;
@@ -573,8 +574,8 @@ interface PaginationProps extends AccessibleProps {
573
574
  dataItemid?: string;
574
575
  type?: 'button' | 'submit' | 'reset' | null;
575
576
  }
576
- declare const Pagination: FC<PaginationProps>;
577
-
577
+ declare const Pagination: FC<PaginationProps>;
578
+
578
579
  interface RadioProps extends AccessibleProps {
579
580
  /** It is used to give label to radio. */
580
581
  children: string | number;
@@ -593,8 +594,8 @@ interface RadioProps extends AccessibleProps {
593
594
  /** Optional ID for automation purposes */
594
595
  dataItemid?: string;
595
596
  }
596
- declare const Radio: FC<RadioProps>;
597
-
597
+ declare const Radio: FC<RadioProps>;
598
+
598
599
  interface OptionProps$1 {
599
600
  label?: string;
600
601
  value: string | number;
@@ -607,8 +608,8 @@ interface RadioListProps extends AccessibleProps {
607
608
  /** Optional ID for automation purposes */
608
609
  dataItemid?: string;
609
610
  }
610
- declare const RadioList: FC<RadioListProps>;
611
-
611
+ declare const RadioList: FC<RadioListProps>;
612
+
612
613
  interface OptionProps {
613
614
  label?: string;
614
615
  value: string | number;
@@ -639,8 +640,8 @@ interface SelectProps extends AccessibleProps {
639
640
  /** Optional ID for automation purposes */
640
641
  dataItemid?: string;
641
642
  }
642
- declare const Select: FC<SelectProps>;
643
-
643
+ declare const Select: FC<SelectProps>;
644
+
644
645
  interface RowObject {
645
646
  [key: string]: any;
646
647
  }
@@ -666,8 +667,8 @@ interface TableProps extends AccessibleProps {
666
667
  /** Optional ID for automation purposes */
667
668
  dataItemid?: string;
668
669
  }
669
- declare const Table: FC<TableProps>;
670
-
670
+ declare const Table: FC<TableProps>;
671
+
671
672
  interface TabProps extends AccessibleProps {
672
673
  badgeCount?: number;
673
674
  errorBadge?: boolean;
@@ -680,8 +681,8 @@ interface TabsProps extends AccessibleProps {
680
681
  /** Optional ID for automation purposes */
681
682
  dataItemid?: string;
682
683
  }
683
- declare const Tabs: FC<TabsProps>;
684
-
684
+ declare const Tabs: FC<TabsProps>;
685
+
685
686
  interface ToggleProps extends AccessibleProps {
686
687
  /** It is used to check whether Toggle is checked or not */
687
688
  on: boolean;
@@ -690,8 +691,8 @@ interface ToggleProps extends AccessibleProps {
690
691
  /** Optional ID for automation purposes */
691
692
  dataItemid?: string;
692
693
  }
693
- declare const Toggle: FC<ToggleProps>;
694
-
694
+ declare const Toggle: FC<ToggleProps>;
695
+
695
696
  interface ZeroStateProps extends AccessibleProps {
696
697
  /** The SVG path of the icon to show */
697
698
  icon: string;
@@ -710,8 +711,8 @@ interface ZeroStateProps extends AccessibleProps {
710
711
  /** Optional ID for automation purposes */
711
712
  dataItemid?: string;
712
713
  }
713
- declare const ZeroState: FC<ZeroStateProps>;
714
-
714
+ declare const ZeroState: FC<ZeroStateProps>;
715
+
715
716
  declare const getAgesFromDob: (dob: string) => {
716
717
  calculated_nearest_age: number | null;
717
718
  calculated_current_age: number | null;
@@ -725,8 +726,8 @@ declare const getYears: () => {
725
726
  declare const validateEmail: (email: string) => boolean;
726
727
  declare const validatePhone: (phone: string) => boolean;
727
728
  declare const formatAsPhone: (number: string) => string;
728
- declare const formatAsSsn: (number: string) => string;
729
-
729
+ declare const formatAsSsn: (number: string) => string;
730
+
730
731
  declare const Colors: {
731
732
  PRIMARY: {
732
733
  Hex: string;
@@ -778,6 +779,6 @@ declare const EditableTheme: {
778
779
  Hex: string;
779
780
  Rgb: string;
780
781
  };
781
- };
782
-
783
- 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.50",
3
+ "version": "1.13.52",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",