@hexure/ui 1.13.38 → 1.13.40
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/cjs/index.js +286 -302
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Accordion/Accordion.d.ts +1 -0
- package/dist/cjs/types/components/ActionDialog/ActionDialog.d.ts +2 -0
- package/dist/cjs/types/components/Alert/Alert.d.ts +2 -0
- package/dist/cjs/types/components/AppHeader/AppHeader.d.ts +2 -0
- package/dist/cjs/types/components/AppMenu/AppMenu.d.ts +2 -0
- package/dist/cjs/types/components/BulkActionBar/BulkActionBar.d.ts +2 -0
- package/dist/cjs/types/components/Button/Button.d.ts +2 -0
- package/dist/cjs/types/components/ButtonMenu/ButtonMenu.d.ts +2 -0
- package/dist/cjs/types/components/Checkbox/Checkbox.d.ts +2 -0
- package/dist/cjs/types/components/Checklist/Checklist.d.ts +2 -0
- package/dist/cjs/types/components/Copy/Copy.d.ts +3 -1
- package/dist/cjs/types/components/DatePicker/DatePicker.d.ts +2 -0
- package/dist/cjs/types/components/Drawer/Drawer.d.ts +2 -0
- package/dist/cjs/types/components/Field/Field.d.ts +2 -0
- package/dist/cjs/types/components/FieldGroup/FieldGroup.d.ts +2 -0
- package/dist/cjs/types/components/FileUpload/FileUpload.d.ts +2 -0
- package/dist/cjs/types/components/Heading/Heading.d.ts +2 -0
- package/dist/cjs/types/components/Input/Input.d.ts +2 -0
- package/dist/cjs/types/components/Link/Link.d.ts +2 -0
- package/dist/cjs/types/components/Loader/Loader.d.ts +5 -1
- package/dist/cjs/types/components/Logo/Logo.d.ts +2 -0
- package/dist/cjs/types/components/Modal/Modal.d.ts +2 -0
- package/dist/cjs/types/components/MoreMenu/MoreMenu.d.ts +2 -0
- package/dist/cjs/types/components/Multiselect/MultiSelect.d.ts +2 -0
- package/dist/cjs/types/components/PageHeader/PageHeader.d.ts +2 -0
- package/dist/cjs/types/components/Pagination/Pagination.d.ts +2 -0
- package/dist/cjs/types/components/ProgressBar/ProgressBar.d.ts +4 -2
- package/dist/cjs/types/components/Radio/Radio.d.ts +2 -0
- package/dist/cjs/types/components/RadioList/RadioList.d.ts +2 -0
- package/dist/cjs/types/components/Select/Select.d.ts +2 -0
- package/dist/cjs/types/components/Table/Table.d.ts +2 -0
- package/dist/cjs/types/components/Tabs/Tabs.d.ts +2 -0
- package/dist/cjs/types/components/Tag/Tag.d.ts +2 -0
- package/dist/cjs/types/components/Toast/Toast.d.ts +2 -0
- package/dist/cjs/types/components/Toggle/Toggle.d.ts +2 -0
- package/dist/cjs/types/components/Tooltip/Tooltip.d.ts +2 -0
- package/dist/cjs/types/components/ZeroState/ZeroState.d.ts +2 -0
- package/dist/esm/index.js +286 -302
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Accordion/Accordion.d.ts +1 -0
- package/dist/esm/types/components/ActionDialog/ActionDialog.d.ts +2 -0
- package/dist/esm/types/components/Alert/Alert.d.ts +2 -0
- package/dist/esm/types/components/AppHeader/AppHeader.d.ts +2 -0
- package/dist/esm/types/components/AppMenu/AppMenu.d.ts +2 -0
- package/dist/esm/types/components/BulkActionBar/BulkActionBar.d.ts +2 -0
- package/dist/esm/types/components/Button/Button.d.ts +2 -0
- package/dist/esm/types/components/ButtonMenu/ButtonMenu.d.ts +2 -0
- package/dist/esm/types/components/Checkbox/Checkbox.d.ts +2 -0
- package/dist/esm/types/components/Checklist/Checklist.d.ts +2 -0
- package/dist/esm/types/components/Copy/Copy.d.ts +3 -1
- package/dist/esm/types/components/DatePicker/DatePicker.d.ts +2 -0
- package/dist/esm/types/components/Drawer/Drawer.d.ts +2 -0
- package/dist/esm/types/components/Field/Field.d.ts +2 -0
- package/dist/esm/types/components/FieldGroup/FieldGroup.d.ts +2 -0
- package/dist/esm/types/components/FileUpload/FileUpload.d.ts +2 -0
- package/dist/esm/types/components/Heading/Heading.d.ts +2 -0
- package/dist/esm/types/components/Input/Input.d.ts +2 -0
- package/dist/esm/types/components/Link/Link.d.ts +2 -0
- package/dist/esm/types/components/Loader/Loader.d.ts +5 -1
- package/dist/esm/types/components/Logo/Logo.d.ts +2 -0
- package/dist/esm/types/components/Modal/Modal.d.ts +2 -0
- package/dist/esm/types/components/MoreMenu/MoreMenu.d.ts +2 -0
- package/dist/esm/types/components/Multiselect/MultiSelect.d.ts +2 -0
- package/dist/esm/types/components/PageHeader/PageHeader.d.ts +2 -0
- package/dist/esm/types/components/Pagination/Pagination.d.ts +2 -0
- package/dist/esm/types/components/ProgressBar/ProgressBar.d.ts +4 -2
- package/dist/esm/types/components/Radio/Radio.d.ts +2 -0
- package/dist/esm/types/components/RadioList/RadioList.d.ts +2 -0
- package/dist/esm/types/components/Select/Select.d.ts +2 -0
- package/dist/esm/types/components/Table/Table.d.ts +2 -0
- package/dist/esm/types/components/Tabs/Tabs.d.ts +2 -0
- package/dist/esm/types/components/Tag/Tag.d.ts +2 -0
- package/dist/esm/types/components/Toast/Toast.d.ts +2 -0
- package/dist/esm/types/components/Toggle/Toggle.d.ts +2 -0
- package/dist/esm/types/components/Tooltip/Tooltip.d.ts +2 -0
- package/dist/esm/types/components/ZeroState/ZeroState.d.ts +2 -0
- package/dist/index.d.ts +76 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ interface AccessibleProps {
|
|
|
16
16
|
}
|
|
17
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;
|
|
@@ -46,6 +47,8 @@ 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;
|
|
@@ -66,6 +69,8 @@ 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
75
|
declare const Alert: FC<AlertProps>;
|
|
71
76
|
|
|
@@ -78,6 +83,8 @@ 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
89
|
declare const Tooltip: FC<TooltipProps>;
|
|
83
90
|
|
|
@@ -107,12 +114,16 @@ 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
120
|
declare const Button: FC<ButtonProps$3>;
|
|
112
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
128
|
declare const AppHeader: FC<AppHeaderProps>;
|
|
118
129
|
|
|
@@ -133,6 +144,8 @@ 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
150
|
declare const AppMenu: FC<AppMenuProps>;
|
|
138
151
|
|
|
@@ -147,6 +160,8 @@ 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
166
|
declare const BulkActionBar: FC<BulkActionBarProps>;
|
|
152
167
|
|
|
@@ -159,6 +174,8 @@ 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
180
|
declare const MoreMenu: FC<MoreMenuProps>;
|
|
164
181
|
|
|
@@ -174,6 +191,8 @@ 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
197
|
declare const ButtonMenu: FC<ButtonMenuProps>;
|
|
179
198
|
|
|
@@ -191,6 +210,8 @@ 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
216
|
declare const Checkbox: FC<CheckboxProps>;
|
|
196
217
|
|
|
@@ -205,6 +226,8 @@ 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
232
|
declare const Checklist: FC<ChecklistProps>;
|
|
210
233
|
|
|
@@ -218,8 +241,10 @@ 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
|
|
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
249
|
declare const Copy: FC<CopyProps>;
|
|
225
250
|
|
|
@@ -234,6 +259,8 @@ 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
265
|
declare const DatePicker: FC<DateProps>;
|
|
239
266
|
|
|
@@ -264,6 +291,8 @@ 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
297
|
declare const Drawer: FC<DrawerProps>;
|
|
269
298
|
|
|
@@ -288,6 +317,8 @@ 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
323
|
declare const Field: FC<FieldProps>;
|
|
293
324
|
|
|
@@ -296,6 +327,8 @@ interface FieldGroupProps {
|
|
|
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
333
|
declare const FieldGroup: FC<FieldGroupProps>;
|
|
301
334
|
|
|
@@ -316,6 +349,8 @@ 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;
|
|
@@ -334,6 +369,8 @@ 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
375
|
declare const Heading: FC<HeadingProps>;
|
|
339
376
|
|
|
@@ -366,6 +403,8 @@ 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
409
|
declare const Input: FC<InputProps>;
|
|
371
410
|
|
|
@@ -376,25 +415,35 @@ 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
421
|
declare const Link: FC<LinkProps>;
|
|
381
422
|
|
|
382
|
-
|
|
423
|
+
interface LoaderProps {
|
|
424
|
+
/** Optional ID for automation purposes */
|
|
425
|
+
id?: string;
|
|
426
|
+
}
|
|
427
|
+
declare const Loader: FC<LoaderProps>;
|
|
383
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
435
|
declare const Logo: FC<LogoProps>;
|
|
389
436
|
|
|
390
437
|
interface StepProps {
|
|
391
|
-
label: string;
|
|
438
|
+
label: string | ReactNode;
|
|
392
439
|
complete?: boolean;
|
|
393
440
|
active?: boolean;
|
|
394
441
|
}
|
|
395
442
|
interface ProgressBarProps {
|
|
396
443
|
steps: StepProps[];
|
|
397
444
|
showStepLine?: boolean;
|
|
445
|
+
/** Optional ID for automation purposes */
|
|
446
|
+
id?: string;
|
|
398
447
|
}
|
|
399
448
|
declare const ProgressBar: FC<ProgressBarProps>;
|
|
400
449
|
|
|
@@ -428,6 +477,8 @@ 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
483
|
declare const Modal: FC<ModalProps>;
|
|
433
484
|
|
|
@@ -449,6 +500,8 @@ 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
506
|
declare const MultiSelect: FC<MultiSelectProps>;
|
|
454
507
|
|
|
@@ -461,6 +514,8 @@ 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
520
|
declare const Tag: FC<TagProps>;
|
|
466
521
|
|
|
@@ -489,6 +544,8 @@ interface PageHeaderProps {
|
|
|
489
544
|
show?: boolean;
|
|
490
545
|
};
|
|
491
546
|
tag?: TagProps;
|
|
547
|
+
/** Optional ID for automation purposes */
|
|
548
|
+
id?: string;
|
|
492
549
|
}
|
|
493
550
|
declare const PageHeader: FC<PageHeaderProps>;
|
|
494
551
|
|
|
@@ -496,6 +553,8 @@ 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
559
|
declare const Pagination: FC<PaginationProps>;
|
|
501
560
|
|
|
@@ -514,6 +573,8 @@ 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
579
|
declare const Radio: FC<RadioProps>;
|
|
519
580
|
|
|
@@ -526,6 +587,8 @@ 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
593
|
declare const RadioList: FC<RadioListProps>;
|
|
531
594
|
|
|
@@ -556,6 +619,8 @@ 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
625
|
declare const Select: FC<SelectProps>;
|
|
561
626
|
|
|
@@ -580,6 +645,8 @@ 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
651
|
declare const Table: FC<TableProps>;
|
|
585
652
|
|
|
@@ -592,6 +659,8 @@ 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
665
|
declare const Tabs: FC<TabsProps>;
|
|
597
666
|
|
|
@@ -600,6 +669,8 @@ interface ToggleProps extends AccessibleProps {
|
|
|
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
675
|
declare const Toggle: FC<ToggleProps>;
|
|
605
676
|
|
|
@@ -618,6 +689,8 @@ 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
695
|
declare const ZeroState: FC<ZeroStateProps>;
|
|
623
696
|
|