@hexure/ui 1.13.39 → 1.13.41

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.
Files changed (80) hide show
  1. package/dist/cjs/index.js +1809 -1825
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/Accordion/Accordion.d.ts +1 -0
  4. package/dist/cjs/types/components/ActionDialog/ActionDialog.d.ts +2 -0
  5. package/dist/cjs/types/components/Alert/Alert.d.ts +2 -0
  6. package/dist/cjs/types/components/AppHeader/AppHeader.d.ts +2 -0
  7. package/dist/cjs/types/components/AppMenu/AppMenu.d.ts +2 -0
  8. package/dist/cjs/types/components/BulkActionBar/BulkActionBar.d.ts +2 -0
  9. package/dist/cjs/types/components/Button/Button.d.ts +2 -0
  10. package/dist/cjs/types/components/ButtonMenu/ButtonMenu.d.ts +2 -0
  11. package/dist/cjs/types/components/Checkbox/Checkbox.d.ts +2 -0
  12. package/dist/cjs/types/components/Checklist/Checklist.d.ts +2 -0
  13. package/dist/cjs/types/components/Copy/Copy.d.ts +3 -1
  14. package/dist/cjs/types/components/DatePicker/DatePicker.d.ts +2 -0
  15. package/dist/cjs/types/components/Drawer/Drawer.d.ts +2 -0
  16. package/dist/cjs/types/components/Field/Field.d.ts +2 -0
  17. package/dist/cjs/types/components/FieldGroup/FieldGroup.d.ts +2 -0
  18. package/dist/cjs/types/components/FileUpload/FileUpload.d.ts +2 -0
  19. package/dist/cjs/types/components/Heading/Heading.d.ts +2 -0
  20. package/dist/cjs/types/components/Input/Input.d.ts +2 -0
  21. package/dist/cjs/types/components/Link/Link.d.ts +2 -0
  22. package/dist/cjs/types/components/Loader/Loader.d.ts +5 -1
  23. package/dist/cjs/types/components/Logo/Logo.d.ts +2 -0
  24. package/dist/cjs/types/components/Modal/Modal.d.ts +2 -0
  25. package/dist/cjs/types/components/MoreMenu/MoreMenu.d.ts +2 -0
  26. package/dist/cjs/types/components/MultiSelect/MultiSelect.d.ts +2 -0
  27. package/dist/cjs/types/components/PageHeader/PageHeader.d.ts +2 -0
  28. package/dist/cjs/types/components/Pagination/Pagination.d.ts +2 -0
  29. package/dist/cjs/types/components/ProgressBar/ProgressBar.d.ts +2 -0
  30. package/dist/cjs/types/components/Radio/Radio.d.ts +2 -0
  31. package/dist/cjs/types/components/RadioList/RadioList.d.ts +2 -0
  32. package/dist/cjs/types/components/Select/Select.d.ts +2 -0
  33. package/dist/cjs/types/components/Table/Table.d.ts +2 -0
  34. package/dist/cjs/types/components/Tabs/Tabs.d.ts +2 -0
  35. package/dist/cjs/types/components/Tag/Tag.d.ts +2 -0
  36. package/dist/cjs/types/components/Toast/Toast.d.ts +2 -0
  37. package/dist/cjs/types/components/Toggle/Toggle.d.ts +2 -0
  38. package/dist/cjs/types/components/Tooltip/Tooltip.d.ts +2 -0
  39. package/dist/cjs/types/components/ZeroState/ZeroState.d.ts +2 -0
  40. package/dist/esm/index.js +1761 -1777
  41. package/dist/esm/index.js.map +1 -1
  42. package/dist/esm/types/components/Accordion/Accordion.d.ts +1 -0
  43. package/dist/esm/types/components/ActionDialog/ActionDialog.d.ts +2 -0
  44. package/dist/esm/types/components/Alert/Alert.d.ts +2 -0
  45. package/dist/esm/types/components/AppHeader/AppHeader.d.ts +2 -0
  46. package/dist/esm/types/components/AppMenu/AppMenu.d.ts +2 -0
  47. package/dist/esm/types/components/BulkActionBar/BulkActionBar.d.ts +2 -0
  48. package/dist/esm/types/components/Button/Button.d.ts +2 -0
  49. package/dist/esm/types/components/ButtonMenu/ButtonMenu.d.ts +2 -0
  50. package/dist/esm/types/components/Checkbox/Checkbox.d.ts +2 -0
  51. package/dist/esm/types/components/Checklist/Checklist.d.ts +2 -0
  52. package/dist/esm/types/components/Copy/Copy.d.ts +3 -1
  53. package/dist/esm/types/components/DatePicker/DatePicker.d.ts +2 -0
  54. package/dist/esm/types/components/Drawer/Drawer.d.ts +2 -0
  55. package/dist/esm/types/components/Field/Field.d.ts +2 -0
  56. package/dist/esm/types/components/FieldGroup/FieldGroup.d.ts +2 -0
  57. package/dist/esm/types/components/FileUpload/FileUpload.d.ts +2 -0
  58. package/dist/esm/types/components/Heading/Heading.d.ts +2 -0
  59. package/dist/esm/types/components/Input/Input.d.ts +2 -0
  60. package/dist/esm/types/components/Link/Link.d.ts +2 -0
  61. package/dist/esm/types/components/Loader/Loader.d.ts +5 -1
  62. package/dist/esm/types/components/Logo/Logo.d.ts +2 -0
  63. package/dist/esm/types/components/Modal/Modal.d.ts +2 -0
  64. package/dist/esm/types/components/MoreMenu/MoreMenu.d.ts +2 -0
  65. package/dist/esm/types/components/MultiSelect/MultiSelect.d.ts +2 -0
  66. package/dist/esm/types/components/PageHeader/PageHeader.d.ts +2 -0
  67. package/dist/esm/types/components/Pagination/Pagination.d.ts +2 -0
  68. package/dist/esm/types/components/ProgressBar/ProgressBar.d.ts +2 -0
  69. package/dist/esm/types/components/Radio/Radio.d.ts +2 -0
  70. package/dist/esm/types/components/RadioList/RadioList.d.ts +2 -0
  71. package/dist/esm/types/components/Select/Select.d.ts +2 -0
  72. package/dist/esm/types/components/Table/Table.d.ts +2 -0
  73. package/dist/esm/types/components/Tabs/Tabs.d.ts +2 -0
  74. package/dist/esm/types/components/Tag/Tag.d.ts +2 -0
  75. package/dist/esm/types/components/Toast/Toast.d.ts +2 -0
  76. package/dist/esm/types/components/Toggle/Toggle.d.ts +2 -0
  77. package/dist/esm/types/components/Tooltip/Tooltip.d.ts +2 -0
  78. package/dist/esm/types/components/ZeroState/ZeroState.d.ts +2 -0
  79. package/dist/index.d.ts +155 -82
  80. package/package.json +1 -1
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 id for the main wrapping html element */
5
5
  id?: string;
@@ -13,9 +13,10 @@ interface AccessibleProps {
13
13
  tabIndex?: number;
14
14
  /** Set a label for an interactive element. See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label */
15
15
  'aria-label'?: string;
16
- }
17
-
16
+ }
17
+
18
18
  interface AccordionProps extends AccessibleProps {
19
+ id?: string;
19
20
  title?: string;
20
21
  /** Define the content to be displayed */
21
22
  children: ReactNode;
@@ -24,8 +25,8 @@ interface AccordionProps extends AccessibleProps {
24
25
  /** Method to call when the header is clicked */
25
26
  onClick: (e?: any) => void;
26
27
  }
27
- declare const Accordion: FC<AccordionProps>;
28
-
28
+ declare const Accordion: FC<AccordionProps>;
29
+
29
30
  interface ButtonProps$4 {
30
31
  children: string;
31
32
  format?: string;
@@ -46,12 +47,14 @@ interface ActionDialogProps extends AccessibleProps {
46
47
  secondaryButton?: ButtonProps$4;
47
48
  /** Set the tertiary action for the dialog. This should only be defined after a secondary action is defined */
48
49
  tertiaryButton?: ButtonProps$4;
50
+ /** Optional ID for automation purposes */
51
+ id?: string;
49
52
  }
50
53
  interface CustomStyle {
51
54
  [key: string]: string | number;
52
55
  }
53
- declare const ActionDialog: FC<ActionDialogProps>;
54
-
56
+ declare const ActionDialog: FC<ActionDialogProps>;
57
+
55
58
  interface ActionProps$1 extends AccessibleProps {
56
59
  label: string;
57
60
  onClick: (e?: any) => void;
@@ -66,9 +69,11 @@ interface AlertProps extends AccessibleProps {
66
69
  action?: ActionProps$1;
67
70
  /** Show a condensed, smaller version of the alert. The title and action props will be ignore if this is set to true */
68
71
  small?: boolean;
72
+ /** Optional ID for automation purposes */
73
+ id?: string;
69
74
  }
70
- declare const Alert: FC<AlertProps>;
71
-
75
+ declare const Alert: FC<AlertProps>;
76
+
72
77
  interface TooltipProps {
73
78
  /** It is used to give label to tag. */
74
79
  children: any;
@@ -78,9 +83,11 @@ interface TooltipProps {
78
83
  width?: string;
79
84
  /** The element to display that triggers the tooltip content */
80
85
  trigger?: any;
86
+ /** Optional ID for automation purposes */
87
+ id?: string;
81
88
  }
82
- declare const Tooltip: FC<TooltipProps>;
83
-
89
+ declare const Tooltip: FC<TooltipProps>;
90
+
84
91
  interface ButtonProps$3 extends AccessibleProps {
85
92
  /** Display a number badge on the right side of the button */
86
93
  badge?: number;
@@ -107,15 +114,19 @@ interface ButtonProps$3 extends AccessibleProps {
107
114
  toolTip?: TooltipProps;
108
115
  /** Set the title of the button on hover */
109
116
  title?: string;
117
+ /** Optional ID for automation purposes */
118
+ id?: string;
110
119
  }
111
- declare const Button: FC<ButtonProps$3>;
112
-
120
+ declare const Button: FC<ButtonProps$3>;
121
+
113
122
  interface AppHeaderProps {
114
123
  logoUrl?: string;
115
124
  buttons: ButtonProps$3[];
125
+ /** Optional ID for automation purposes */
126
+ id?: string;
116
127
  }
117
- declare const AppHeader: FC<AppHeaderProps>;
118
-
128
+ declare const AppHeader: FC<AppHeaderProps>;
129
+
119
130
  interface MenuItemType extends AccessibleProps {
120
131
  icon: string;
121
132
  label: string;
@@ -133,9 +144,11 @@ interface AppMenuProps extends AccessibleProps {
133
144
  isCollapsed?: boolean;
134
145
  footerTag?: string;
135
146
  defaultWidth?: string;
147
+ /** Optional ID for automation purposes */
148
+ id?: string;
136
149
  }
137
- declare const AppMenu: FC<AppMenuProps>;
138
-
150
+ declare const AppMenu: FC<AppMenuProps>;
151
+
139
152
  interface ButtonProps$2 {
140
153
  children: string;
141
154
  onClick: (e?: any) => void;
@@ -147,9 +160,11 @@ interface BulkActionBarProps extends AccessibleProps {
147
160
  errorMsg?: string;
148
161
  onClear: (e?: any) => void;
149
162
  selectedCount?: number;
163
+ /** Optional ID for automation purposes */
164
+ id?: string;
150
165
  }
151
- declare const BulkActionBar: FC<BulkActionBarProps>;
152
-
166
+ declare const BulkActionBar: FC<BulkActionBarProps>;
167
+
153
168
  interface MenuItemProps extends AccessibleProps {
154
169
  icon?: string;
155
170
  label?: string;
@@ -159,9 +174,11 @@ interface MenuItemProps extends AccessibleProps {
159
174
  interface MoreMenuProps extends AccessibleProps {
160
175
  menuItems: MenuItemProps[];
161
176
  maxHeight?: string | number;
177
+ /** Optional ID for automation purposes */
178
+ id?: string;
162
179
  }
163
- declare const MoreMenu: FC<MoreMenuProps>;
164
-
180
+ declare const MoreMenu: FC<MoreMenuProps>;
181
+
165
182
  interface ButtonMenuProps {
166
183
  disabled?: boolean;
167
184
  label: string;
@@ -174,9 +191,11 @@ interface ButtonMenuProps {
174
191
  enableHover?: boolean;
175
192
  enableClick?: boolean;
176
193
  show?: boolean;
194
+ /** Optional ID for automation purposes */
195
+ id?: string;
177
196
  }
178
- declare const ButtonMenu: FC<ButtonMenuProps>;
179
-
197
+ declare const ButtonMenu: FC<ButtonMenuProps>;
198
+
180
199
  interface CheckboxProps extends AccessibleProps {
181
200
  /** It is used to give label to checkbox. */
182
201
  children?: string;
@@ -191,9 +210,11 @@ interface CheckboxProps extends AccessibleProps {
191
210
  invalid?: boolean;
192
211
  /** Display a tooltip next to the label */
193
212
  tooltip?: TooltipProps;
213
+ /** Optional ID for automation purposes */
214
+ id?: string;
194
215
  }
195
- declare const Checkbox: FC<CheckboxProps>;
196
-
216
+ declare const Checkbox: FC<CheckboxProps>;
217
+
197
218
  interface OptionProps$3 {
198
219
  label?: string;
199
220
  value: string | number;
@@ -205,9 +226,11 @@ interface ChecklistProps extends AccessibleProps {
205
226
  options: OptionProps$3[];
206
227
  selected: (string | number)[];
207
228
  showSelectAll?: boolean;
229
+ /** Optional ID for automation purposes */
230
+ id?: string;
208
231
  }
209
- declare const Checklist: FC<ChecklistProps>;
210
-
232
+ declare const Checklist: FC<ChecklistProps>;
233
+
211
234
  interface CopyProps extends AccessibleProps {
212
235
  /** Set the text to be displayed */
213
236
  children: string | React.ReactNode;
@@ -218,11 +241,13 @@ interface CopyProps extends AccessibleProps {
218
241
  padding?: string;
219
242
  /** Set the type of copy to display */
220
243
  type?: 'default' | 'bold' | 'italic' | 'underline' | 'line-through' | 'small';
221
- /** Set the color of the copy based on the design system color pallette */
244
+ /** Set the color of the copy based on the design system color palette */
222
245
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'GRAY' | 'MEDIUM_GRAY' | 'LIGHT_GRAY';
246
+ /** Optional ID for automation purposes */
247
+ id?: string;
223
248
  }
224
- declare const Copy: FC<CopyProps>;
225
-
249
+ declare const Copy: FC<CopyProps>;
250
+
226
251
  interface styleProps$3 {
227
252
  width?: number | string;
228
253
  }
@@ -234,9 +259,11 @@ interface DateProps extends AccessibleProps {
234
259
  date?: string;
235
260
  onChange?: (e: any) => void;
236
261
  style?: styleProps$3;
262
+ /** Optional ID for automation purposes */
263
+ id?: string;
237
264
  }
238
- declare const DatePicker: FC<DateProps>;
239
-
265
+ declare const DatePicker: FC<DateProps>;
266
+
240
267
  interface ButtonProps$1 extends AccessibleProps {
241
268
  disabled?: boolean;
242
269
  children: string;
@@ -264,9 +291,11 @@ interface DrawerProps extends AccessibleProps {
264
291
  position?: 'fixed' | 'absolute';
265
292
  /** It is used to close drawer. */
266
293
  onClose: (e?: any) => void;
294
+ /** Optional ID for automation purposes */
295
+ id?: string;
267
296
  }
268
- declare const Drawer: FC<DrawerProps>;
269
-
297
+ declare const Drawer: FC<DrawerProps>;
298
+
270
299
  interface ActionProps {
271
300
  id?: string;
272
301
  label: string;
@@ -288,17 +317,21 @@ interface FieldProps extends AccessibleProps {
288
317
  description?: string;
289
318
  /** Display a tooltip next to the label */
290
319
  tooltip?: TooltipProps;
320
+ /** Optional ID for automation purposes */
321
+ id?: string;
291
322
  }
292
- declare const Field: FC<FieldProps>;
293
-
323
+ declare const Field: FC<FieldProps>;
324
+
294
325
  interface FieldGroupProps {
295
326
  /** The label to display above the field group */
296
327
  label: string;
297
328
  /** The content of the field group...usually a set of Field components */
298
329
  children: any;
330
+ /** Optional ID for automation purposes */
331
+ id?: string;
299
332
  }
300
- declare const FieldGroup: FC<FieldGroupProps>;
301
-
333
+ declare const FieldGroup: FC<FieldGroupProps>;
334
+
302
335
  interface FileUploadProps {
303
336
  /** A method to call when files are added/removed. Return the new file or array of files. */
304
337
  onChange?: (files: Array<File>) => void;
@@ -316,13 +349,15 @@ interface FileUploadProps {
316
349
  value?: File[];
317
350
  /** A method that will be run against each file to determine if it's valid before being added. Must return a boolean. */
318
351
  validateFile?: (file: File) => boolean;
352
+ /** Optional ID for automation purposes */
353
+ id?: string;
319
354
  }
320
355
  interface ErrorObject {
321
356
  file: File;
322
357
  message: string;
323
358
  }
324
- declare const FileUpload: FC<FileUploadProps>;
325
-
359
+ declare const FileUpload: FC<FileUploadProps>;
360
+
326
361
  interface HeadingProps extends AccessibleProps {
327
362
  /** Toggle between bold and normal font weights */
328
363
  bold?: boolean;
@@ -334,9 +369,11 @@ interface HeadingProps extends AccessibleProps {
334
369
  padding?: string;
335
370
  /** Set the type of heading to display: primary, secondary, tertiary */
336
371
  type?: 'primary' | 'secondary' | 'tertiary';
372
+ /** Optional ID for automation purposes */
373
+ id?: string;
337
374
  }
338
- declare const Heading: FC<HeadingProps>;
339
-
375
+ declare const Heading: FC<HeadingProps>;
376
+
340
377
  interface styleProps$2 {
341
378
  width?: number | string;
342
379
  }
@@ -366,9 +403,11 @@ interface InputProps extends AccessibleProps {
366
403
  showErrorTextColor?: boolean;
367
404
  innerRef?: any;
368
405
  isAutoComplete?: boolean;
406
+ /** Optional ID for automation purposes */
407
+ id?: string;
369
408
  }
370
- declare const Input: FC<InputProps>;
371
-
409
+ declare const Input: FC<InputProps>;
410
+
372
411
  interface LinkProps extends AccessibleProps {
373
412
  /** Set the text to be displayed */
374
413
  children: string;
@@ -376,17 +415,25 @@ interface LinkProps extends AccessibleProps {
376
415
  small?: boolean;
377
416
  /** A method to execute when this component is clicked */
378
417
  onClick?: (e?: any) => void;
418
+ /** Optional ID for automation purposes */
419
+ id?: string;
379
420
  }
380
- declare const Link: FC<LinkProps>;
381
-
382
- declare const Loader: FC;
383
-
421
+ declare const Link: FC<LinkProps>;
422
+
423
+ interface LoaderProps {
424
+ /** Optional ID for automation purposes */
425
+ id?: string;
426
+ }
427
+ declare const Loader: FC<LoaderProps>;
428
+
384
429
  interface LogoProps extends AccessibleProps {
385
430
  type?: 'mark_red' | 'mark_white' | 'standard_white' | 'standard_black' | 'standard_full' | 'standard_reversed';
386
431
  height?: string;
432
+ /** Optional ID for automation purposes */
433
+ id?: string;
387
434
  }
388
- declare const Logo: FC<LogoProps>;
389
-
435
+ declare const Logo: FC<LogoProps>;
436
+
390
437
  interface StepProps {
391
438
  label: string | ReactNode;
392
439
  complete?: boolean;
@@ -395,9 +442,11 @@ interface StepProps {
395
442
  interface ProgressBarProps {
396
443
  steps: StepProps[];
397
444
  showStepLine?: boolean;
445
+ /** Optional ID for automation purposes */
446
+ id?: string;
398
447
  }
399
- declare const ProgressBar: FC<ProgressBarProps>;
400
-
448
+ declare const ProgressBar: FC<ProgressBarProps>;
449
+
401
450
  interface ButtonProps {
402
451
  disabled?: boolean;
403
452
  children: string;
@@ -428,9 +477,11 @@ interface ModalProps extends AccessibleProps {
428
477
  onClose: (e?: any) => void;
429
478
  /** Display steps at the top of the modal */
430
479
  steps?: StepProps[];
480
+ /** Optional ID for automation purposes */
481
+ id?: string;
431
482
  }
432
- declare const Modal: FC<ModalProps>;
433
-
483
+ declare const Modal: FC<ModalProps>;
484
+
434
485
  interface OptionProps$2 {
435
486
  label?: string;
436
487
  value: string | number;
@@ -449,9 +500,11 @@ interface MultiSelectProps extends AccessibleProps {
449
500
  showSelectAll?: boolean;
450
501
  style?: styleProps$1;
451
502
  searchable?: boolean;
503
+ /** Optional ID for automation purposes */
504
+ id?: string;
452
505
  }
453
- declare const MultiSelect: FC<MultiSelectProps>;
454
-
506
+ declare const MultiSelect: FC<MultiSelectProps>;
507
+
455
508
  interface TagProps extends AccessibleProps {
456
509
  /** It is used to select tag-type either default or removable. */
457
510
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
@@ -461,9 +514,11 @@ interface TagProps extends AccessibleProps {
461
514
  onClick?: (e?: any) => void;
462
515
  /** It is callback function called when user wants to close the tag. */
463
516
  removable?: boolean;
517
+ /** Optional ID for automation purposes */
518
+ id?: string;
464
519
  }
465
- declare const Tag: FC<TagProps>;
466
-
520
+ declare const Tag: FC<TagProps>;
521
+
467
522
  interface PageHeaderProps {
468
523
  title?: string;
469
524
  breadcrumbs?: Array<{
@@ -489,16 +544,20 @@ interface PageHeaderProps {
489
544
  show?: boolean;
490
545
  };
491
546
  tag?: TagProps;
547
+ /** Optional ID for automation purposes */
548
+ id?: string;
492
549
  }
493
- declare const PageHeader: FC<PageHeaderProps>;
494
-
550
+ declare const PageHeader: FC<PageHeaderProps>;
551
+
495
552
  interface PaginationProps extends AccessibleProps {
496
553
  currentPage: number;
497
554
  onClick: (e?: any) => void;
498
555
  pageCount: number;
556
+ /** Optional ID for automation purposes */
557
+ id?: string;
499
558
  }
500
- declare const Pagination: FC<PaginationProps>;
501
-
559
+ declare const Pagination: FC<PaginationProps>;
560
+
502
561
  interface RadioProps extends AccessibleProps {
503
562
  /** It is used to give label to radio. */
504
563
  children: string | number;
@@ -514,9 +573,11 @@ interface RadioProps extends AccessibleProps {
514
573
  invalid?: boolean;
515
574
  /** Display a tooltip next to the label */
516
575
  tooltip?: TooltipProps;
576
+ /** Optional ID for automation purposes */
577
+ id?: string;
517
578
  }
518
- declare const Radio: FC<RadioProps>;
519
-
579
+ declare const Radio: FC<RadioProps>;
580
+
520
581
  interface OptionProps$1 {
521
582
  label?: string;
522
583
  value: string | number;
@@ -526,9 +587,11 @@ interface RadioListProps extends AccessibleProps {
526
587
  onChange: (e: any) => void;
527
588
  options: OptionProps$1[];
528
589
  value: string;
590
+ /** Optional ID for automation purposes */
591
+ id?: string;
529
592
  }
530
- declare const RadioList: FC<RadioListProps>;
531
-
593
+ declare const RadioList: FC<RadioListProps>;
594
+
532
595
  interface OptionProps {
533
596
  label?: string;
534
597
  value: string | number;
@@ -556,9 +619,11 @@ interface SelectProps extends AccessibleProps {
556
619
  onFocus?: (e: any) => void;
557
620
  onBlur?: (e: any) => void;
558
621
  onSearch?: (searchTerm: string) => void;
622
+ /** Optional ID for automation purposes */
623
+ id?: string;
559
624
  }
560
- declare const Select: FC<SelectProps>;
561
-
625
+ declare const Select: FC<SelectProps>;
626
+
562
627
  interface RowObject {
563
628
  [key: string]: any;
564
629
  }
@@ -580,9 +645,11 @@ interface TableProps extends AccessibleProps {
580
645
  onRowClick?: (e?: any) => void;
581
646
  onSortChange?: (e?: any) => void;
582
647
  tableLayout?: string;
648
+ /** Optional ID for automation purposes */
649
+ id?: string;
583
650
  }
584
- declare const Table: FC<TableProps>;
585
-
651
+ declare const Table: FC<TableProps>;
652
+
586
653
  interface TabProps extends AccessibleProps {
587
654
  badgeCount?: number;
588
655
  errorBadge?: boolean;
@@ -592,17 +659,21 @@ interface TabProps extends AccessibleProps {
592
659
  }
593
660
  interface TabsProps extends AccessibleProps {
594
661
  tabs: TabProps[];
662
+ /** Optional ID for automation purposes */
663
+ id?: string;
595
664
  }
596
- declare const Tabs: FC<TabsProps>;
597
-
665
+ declare const Tabs: FC<TabsProps>;
666
+
598
667
  interface ToggleProps extends AccessibleProps {
599
668
  /** It is used to check whether Toggle is checked or not */
600
669
  on: boolean;
601
670
  /** Pass a callback then fires when user change value */
602
671
  onClick: (e?: any) => void;
672
+ /** Optional ID for automation purposes */
673
+ id?: string;
603
674
  }
604
- declare const Toggle: FC<ToggleProps>;
605
-
675
+ declare const Toggle: FC<ToggleProps>;
676
+
606
677
  interface ZeroStateProps extends AccessibleProps {
607
678
  /** The SVG path of the icon to show */
608
679
  icon: string;
@@ -618,9 +689,11 @@ interface ZeroStateProps extends AccessibleProps {
618
689
  format?: 'primary' | 'secondary' | 'red' | 'green' | string;
619
690
  disabled?: boolean;
620
691
  };
692
+ /** Optional ID for automation purposes */
693
+ id?: string;
621
694
  }
622
- declare const ZeroState: FC<ZeroStateProps>;
623
-
695
+ declare const ZeroState: FC<ZeroStateProps>;
696
+
624
697
  declare const getAgesFromDob: (dob: string) => {
625
698
  calculated_nearest_age: number | null;
626
699
  calculated_current_age: number | null;
@@ -634,8 +707,8 @@ declare const getYears: () => {
634
707
  declare const validateEmail: (email: string) => boolean;
635
708
  declare const validatePhone: (phone: string) => boolean;
636
709
  declare const formatAsPhone: (number: string) => string;
637
- declare const formatAsSsn: (number: string) => string;
638
-
710
+ declare const formatAsSsn: (number: string) => string;
711
+
639
712
  declare const Colors: {
640
713
  PRIMARY: {
641
714
  Hex: string;
@@ -687,6 +760,6 @@ declare const EditableTheme: {
687
760
  Hex: string;
688
761
  Rgb: string;
689
762
  };
690
- };
691
-
692
- 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 };
763
+ };
764
+
765
+ 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.39",
3
+ "version": "1.13.41",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",