@hexure/ui 1.13.38 → 1.13.39
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/types/components/ProgressBar/ProgressBar.d.ts +2 -2
- package/dist/esm/types/components/ProgressBar/ProgressBar.d.ts +2 -2
- package/dist/index.d.ts +82 -82
- package/package.json +1 -1
- /package/dist/cjs/types/components/{Multiselect → MultiSelect}/MultiSelect.d.ts +0 -0
- /package/dist/cjs/types/components/{Multiselect → MultiSelect}/index.d.ts +0 -0
- /package/dist/esm/types/components/{Multiselect → MultiSelect}/MultiSelect.d.ts +0 -0
- /package/dist/esm/types/components/{Multiselect → MultiSelect}/index.d.ts +0 -0
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,8 +13,8 @@ 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
19
|
title?: string;
|
|
20
20
|
/** Define the content to be displayed */
|
|
@@ -24,8 +24,8 @@ interface AccordionProps extends AccessibleProps {
|
|
|
24
24
|
/** Method to call when the header is clicked */
|
|
25
25
|
onClick: (e?: any) => void;
|
|
26
26
|
}
|
|
27
|
-
declare const Accordion: FC<AccordionProps>;
|
|
28
|
-
|
|
27
|
+
declare const Accordion: FC<AccordionProps>;
|
|
28
|
+
|
|
29
29
|
interface ButtonProps$4 {
|
|
30
30
|
children: string;
|
|
31
31
|
format?: string;
|
|
@@ -50,8 +50,8 @@ interface ActionDialogProps extends AccessibleProps {
|
|
|
50
50
|
interface CustomStyle {
|
|
51
51
|
[key: string]: string | number;
|
|
52
52
|
}
|
|
53
|
-
declare const ActionDialog: FC<ActionDialogProps>;
|
|
54
|
-
|
|
53
|
+
declare const ActionDialog: FC<ActionDialogProps>;
|
|
54
|
+
|
|
55
55
|
interface ActionProps$1 extends AccessibleProps {
|
|
56
56
|
label: string;
|
|
57
57
|
onClick: (e?: any) => void;
|
|
@@ -67,8 +67,8 @@ interface AlertProps extends AccessibleProps {
|
|
|
67
67
|
/** Show a condensed, smaller version of the alert. The title and action props will be ignore if this is set to true */
|
|
68
68
|
small?: boolean;
|
|
69
69
|
}
|
|
70
|
-
declare const Alert: FC<AlertProps>;
|
|
71
|
-
|
|
70
|
+
declare const Alert: FC<AlertProps>;
|
|
71
|
+
|
|
72
72
|
interface TooltipProps {
|
|
73
73
|
/** It is used to give label to tag. */
|
|
74
74
|
children: any;
|
|
@@ -79,8 +79,8 @@ interface TooltipProps {
|
|
|
79
79
|
/** The element to display that triggers the tooltip content */
|
|
80
80
|
trigger?: any;
|
|
81
81
|
}
|
|
82
|
-
declare const Tooltip: FC<TooltipProps>;
|
|
83
|
-
|
|
82
|
+
declare const Tooltip: FC<TooltipProps>;
|
|
83
|
+
|
|
84
84
|
interface ButtonProps$3 extends AccessibleProps {
|
|
85
85
|
/** Display a number badge on the right side of the button */
|
|
86
86
|
badge?: number;
|
|
@@ -108,14 +108,14 @@ interface ButtonProps$3 extends AccessibleProps {
|
|
|
108
108
|
/** Set the title of the button on hover */
|
|
109
109
|
title?: string;
|
|
110
110
|
}
|
|
111
|
-
declare const Button: FC<ButtonProps$3>;
|
|
112
|
-
|
|
111
|
+
declare const Button: FC<ButtonProps$3>;
|
|
112
|
+
|
|
113
113
|
interface AppHeaderProps {
|
|
114
114
|
logoUrl?: string;
|
|
115
115
|
buttons: ButtonProps$3[];
|
|
116
116
|
}
|
|
117
|
-
declare const AppHeader: FC<AppHeaderProps>;
|
|
118
|
-
|
|
117
|
+
declare const AppHeader: FC<AppHeaderProps>;
|
|
118
|
+
|
|
119
119
|
interface MenuItemType extends AccessibleProps {
|
|
120
120
|
icon: string;
|
|
121
121
|
label: string;
|
|
@@ -134,8 +134,8 @@ interface AppMenuProps extends AccessibleProps {
|
|
|
134
134
|
footerTag?: string;
|
|
135
135
|
defaultWidth?: string;
|
|
136
136
|
}
|
|
137
|
-
declare const AppMenu: FC<AppMenuProps>;
|
|
138
|
-
|
|
137
|
+
declare const AppMenu: FC<AppMenuProps>;
|
|
138
|
+
|
|
139
139
|
interface ButtonProps$2 {
|
|
140
140
|
children: string;
|
|
141
141
|
onClick: (e?: any) => void;
|
|
@@ -148,8 +148,8 @@ interface BulkActionBarProps extends AccessibleProps {
|
|
|
148
148
|
onClear: (e?: any) => void;
|
|
149
149
|
selectedCount?: number;
|
|
150
150
|
}
|
|
151
|
-
declare const BulkActionBar: FC<BulkActionBarProps>;
|
|
152
|
-
|
|
151
|
+
declare const BulkActionBar: FC<BulkActionBarProps>;
|
|
152
|
+
|
|
153
153
|
interface MenuItemProps extends AccessibleProps {
|
|
154
154
|
icon?: string;
|
|
155
155
|
label?: string;
|
|
@@ -160,8 +160,8 @@ interface MoreMenuProps extends AccessibleProps {
|
|
|
160
160
|
menuItems: MenuItemProps[];
|
|
161
161
|
maxHeight?: string | number;
|
|
162
162
|
}
|
|
163
|
-
declare const MoreMenu: FC<MoreMenuProps>;
|
|
164
|
-
|
|
163
|
+
declare const MoreMenu: FC<MoreMenuProps>;
|
|
164
|
+
|
|
165
165
|
interface ButtonMenuProps {
|
|
166
166
|
disabled?: boolean;
|
|
167
167
|
label: string;
|
|
@@ -175,8 +175,8 @@ interface ButtonMenuProps {
|
|
|
175
175
|
enableClick?: boolean;
|
|
176
176
|
show?: boolean;
|
|
177
177
|
}
|
|
178
|
-
declare const ButtonMenu: FC<ButtonMenuProps>;
|
|
179
|
-
|
|
178
|
+
declare const ButtonMenu: FC<ButtonMenuProps>;
|
|
179
|
+
|
|
180
180
|
interface CheckboxProps extends AccessibleProps {
|
|
181
181
|
/** It is used to give label to checkbox. */
|
|
182
182
|
children?: string;
|
|
@@ -192,8 +192,8 @@ interface CheckboxProps extends AccessibleProps {
|
|
|
192
192
|
/** Display a tooltip next to the label */
|
|
193
193
|
tooltip?: TooltipProps;
|
|
194
194
|
}
|
|
195
|
-
declare const Checkbox: FC<CheckboxProps>;
|
|
196
|
-
|
|
195
|
+
declare const Checkbox: FC<CheckboxProps>;
|
|
196
|
+
|
|
197
197
|
interface OptionProps$3 {
|
|
198
198
|
label?: string;
|
|
199
199
|
value: string | number;
|
|
@@ -206,8 +206,8 @@ interface ChecklistProps extends AccessibleProps {
|
|
|
206
206
|
selected: (string | number)[];
|
|
207
207
|
showSelectAll?: boolean;
|
|
208
208
|
}
|
|
209
|
-
declare const Checklist: FC<ChecklistProps>;
|
|
210
|
-
|
|
209
|
+
declare const Checklist: FC<ChecklistProps>;
|
|
210
|
+
|
|
211
211
|
interface CopyProps extends AccessibleProps {
|
|
212
212
|
/** Set the text to be displayed */
|
|
213
213
|
children: string | React.ReactNode;
|
|
@@ -221,8 +221,8 @@ interface CopyProps extends AccessibleProps {
|
|
|
221
221
|
/** Set the color of the copy based on the design system color pallette */
|
|
222
222
|
color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'GRAY' | 'MEDIUM_GRAY' | 'LIGHT_GRAY';
|
|
223
223
|
}
|
|
224
|
-
declare const Copy: FC<CopyProps>;
|
|
225
|
-
|
|
224
|
+
declare const Copy: FC<CopyProps>;
|
|
225
|
+
|
|
226
226
|
interface styleProps$3 {
|
|
227
227
|
width?: number | string;
|
|
228
228
|
}
|
|
@@ -235,8 +235,8 @@ interface DateProps extends AccessibleProps {
|
|
|
235
235
|
onChange?: (e: any) => void;
|
|
236
236
|
style?: styleProps$3;
|
|
237
237
|
}
|
|
238
|
-
declare const DatePicker: FC<DateProps>;
|
|
239
|
-
|
|
238
|
+
declare const DatePicker: FC<DateProps>;
|
|
239
|
+
|
|
240
240
|
interface ButtonProps$1 extends AccessibleProps {
|
|
241
241
|
disabled?: boolean;
|
|
242
242
|
children: string;
|
|
@@ -265,8 +265,8 @@ interface DrawerProps extends AccessibleProps {
|
|
|
265
265
|
/** It is used to close drawer. */
|
|
266
266
|
onClose: (e?: any) => void;
|
|
267
267
|
}
|
|
268
|
-
declare const Drawer: FC<DrawerProps>;
|
|
269
|
-
|
|
268
|
+
declare const Drawer: FC<DrawerProps>;
|
|
269
|
+
|
|
270
270
|
interface ActionProps {
|
|
271
271
|
id?: string;
|
|
272
272
|
label: string;
|
|
@@ -289,16 +289,16 @@ interface FieldProps extends AccessibleProps {
|
|
|
289
289
|
/** Display a tooltip next to the label */
|
|
290
290
|
tooltip?: TooltipProps;
|
|
291
291
|
}
|
|
292
|
-
declare const Field: FC<FieldProps>;
|
|
293
|
-
|
|
292
|
+
declare const Field: FC<FieldProps>;
|
|
293
|
+
|
|
294
294
|
interface FieldGroupProps {
|
|
295
295
|
/** The label to display above the field group */
|
|
296
296
|
label: string;
|
|
297
297
|
/** The content of the field group...usually a set of Field components */
|
|
298
298
|
children: any;
|
|
299
299
|
}
|
|
300
|
-
declare const FieldGroup: FC<FieldGroupProps>;
|
|
301
|
-
|
|
300
|
+
declare const FieldGroup: FC<FieldGroupProps>;
|
|
301
|
+
|
|
302
302
|
interface FileUploadProps {
|
|
303
303
|
/** A method to call when files are added/removed. Return the new file or array of files. */
|
|
304
304
|
onChange?: (files: Array<File>) => void;
|
|
@@ -321,8 +321,8 @@ interface ErrorObject {
|
|
|
321
321
|
file: File;
|
|
322
322
|
message: string;
|
|
323
323
|
}
|
|
324
|
-
declare const FileUpload: FC<FileUploadProps>;
|
|
325
|
-
|
|
324
|
+
declare const FileUpload: FC<FileUploadProps>;
|
|
325
|
+
|
|
326
326
|
interface HeadingProps extends AccessibleProps {
|
|
327
327
|
/** Toggle between bold and normal font weights */
|
|
328
328
|
bold?: boolean;
|
|
@@ -335,8 +335,8 @@ interface HeadingProps extends AccessibleProps {
|
|
|
335
335
|
/** Set the type of heading to display: primary, secondary, tertiary */
|
|
336
336
|
type?: 'primary' | 'secondary' | 'tertiary';
|
|
337
337
|
}
|
|
338
|
-
declare const Heading: FC<HeadingProps>;
|
|
339
|
-
|
|
338
|
+
declare const Heading: FC<HeadingProps>;
|
|
339
|
+
|
|
340
340
|
interface styleProps$2 {
|
|
341
341
|
width?: number | string;
|
|
342
342
|
}
|
|
@@ -367,8 +367,8 @@ interface InputProps extends AccessibleProps {
|
|
|
367
367
|
innerRef?: any;
|
|
368
368
|
isAutoComplete?: boolean;
|
|
369
369
|
}
|
|
370
|
-
declare const Input: FC<InputProps>;
|
|
371
|
-
|
|
370
|
+
declare const Input: FC<InputProps>;
|
|
371
|
+
|
|
372
372
|
interface LinkProps extends AccessibleProps {
|
|
373
373
|
/** Set the text to be displayed */
|
|
374
374
|
children: string;
|
|
@@ -377,18 +377,18 @@ interface LinkProps extends AccessibleProps {
|
|
|
377
377
|
/** A method to execute when this component is clicked */
|
|
378
378
|
onClick?: (e?: any) => void;
|
|
379
379
|
}
|
|
380
|
-
declare const Link: FC<LinkProps>;
|
|
381
|
-
|
|
382
|
-
declare const Loader: FC;
|
|
383
|
-
|
|
380
|
+
declare const Link: FC<LinkProps>;
|
|
381
|
+
|
|
382
|
+
declare const Loader: FC;
|
|
383
|
+
|
|
384
384
|
interface LogoProps extends AccessibleProps {
|
|
385
385
|
type?: 'mark_red' | 'mark_white' | 'standard_white' | 'standard_black' | 'standard_full' | 'standard_reversed';
|
|
386
386
|
height?: string;
|
|
387
387
|
}
|
|
388
|
-
declare const Logo: FC<LogoProps>;
|
|
389
|
-
|
|
388
|
+
declare const Logo: FC<LogoProps>;
|
|
389
|
+
|
|
390
390
|
interface StepProps {
|
|
391
|
-
label: string;
|
|
391
|
+
label: string | ReactNode;
|
|
392
392
|
complete?: boolean;
|
|
393
393
|
active?: boolean;
|
|
394
394
|
}
|
|
@@ -396,8 +396,8 @@ interface ProgressBarProps {
|
|
|
396
396
|
steps: StepProps[];
|
|
397
397
|
showStepLine?: boolean;
|
|
398
398
|
}
|
|
399
|
-
declare const ProgressBar: FC<ProgressBarProps>;
|
|
400
|
-
|
|
399
|
+
declare const ProgressBar: FC<ProgressBarProps>;
|
|
400
|
+
|
|
401
401
|
interface ButtonProps {
|
|
402
402
|
disabled?: boolean;
|
|
403
403
|
children: string;
|
|
@@ -429,8 +429,8 @@ interface ModalProps extends AccessibleProps {
|
|
|
429
429
|
/** Display steps at the top of the modal */
|
|
430
430
|
steps?: StepProps[];
|
|
431
431
|
}
|
|
432
|
-
declare const Modal: FC<ModalProps>;
|
|
433
|
-
|
|
432
|
+
declare const Modal: FC<ModalProps>;
|
|
433
|
+
|
|
434
434
|
interface OptionProps$2 {
|
|
435
435
|
label?: string;
|
|
436
436
|
value: string | number;
|
|
@@ -450,8 +450,8 @@ interface MultiSelectProps extends AccessibleProps {
|
|
|
450
450
|
style?: styleProps$1;
|
|
451
451
|
searchable?: boolean;
|
|
452
452
|
}
|
|
453
|
-
declare const MultiSelect: FC<MultiSelectProps>;
|
|
454
|
-
|
|
453
|
+
declare const MultiSelect: FC<MultiSelectProps>;
|
|
454
|
+
|
|
455
455
|
interface TagProps extends AccessibleProps {
|
|
456
456
|
/** It is used to select tag-type either default or removable. */
|
|
457
457
|
color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
|
|
@@ -462,8 +462,8 @@ interface TagProps extends AccessibleProps {
|
|
|
462
462
|
/** It is callback function called when user wants to close the tag. */
|
|
463
463
|
removable?: boolean;
|
|
464
464
|
}
|
|
465
|
-
declare const Tag: FC<TagProps>;
|
|
466
|
-
|
|
465
|
+
declare const Tag: FC<TagProps>;
|
|
466
|
+
|
|
467
467
|
interface PageHeaderProps {
|
|
468
468
|
title?: string;
|
|
469
469
|
breadcrumbs?: Array<{
|
|
@@ -490,15 +490,15 @@ interface PageHeaderProps {
|
|
|
490
490
|
};
|
|
491
491
|
tag?: TagProps;
|
|
492
492
|
}
|
|
493
|
-
declare const PageHeader: FC<PageHeaderProps>;
|
|
494
|
-
|
|
493
|
+
declare const PageHeader: FC<PageHeaderProps>;
|
|
494
|
+
|
|
495
495
|
interface PaginationProps extends AccessibleProps {
|
|
496
496
|
currentPage: number;
|
|
497
497
|
onClick: (e?: any) => void;
|
|
498
498
|
pageCount: number;
|
|
499
499
|
}
|
|
500
|
-
declare const Pagination: FC<PaginationProps>;
|
|
501
|
-
|
|
500
|
+
declare const Pagination: FC<PaginationProps>;
|
|
501
|
+
|
|
502
502
|
interface RadioProps extends AccessibleProps {
|
|
503
503
|
/** It is used to give label to radio. */
|
|
504
504
|
children: string | number;
|
|
@@ -515,8 +515,8 @@ interface RadioProps extends AccessibleProps {
|
|
|
515
515
|
/** Display a tooltip next to the label */
|
|
516
516
|
tooltip?: TooltipProps;
|
|
517
517
|
}
|
|
518
|
-
declare const Radio: FC<RadioProps>;
|
|
519
|
-
|
|
518
|
+
declare const Radio: FC<RadioProps>;
|
|
519
|
+
|
|
520
520
|
interface OptionProps$1 {
|
|
521
521
|
label?: string;
|
|
522
522
|
value: string | number;
|
|
@@ -527,8 +527,8 @@ interface RadioListProps extends AccessibleProps {
|
|
|
527
527
|
options: OptionProps$1[];
|
|
528
528
|
value: string;
|
|
529
529
|
}
|
|
530
|
-
declare const RadioList: FC<RadioListProps>;
|
|
531
|
-
|
|
530
|
+
declare const RadioList: FC<RadioListProps>;
|
|
531
|
+
|
|
532
532
|
interface OptionProps {
|
|
533
533
|
label?: string;
|
|
534
534
|
value: string | number;
|
|
@@ -557,8 +557,8 @@ interface SelectProps extends AccessibleProps {
|
|
|
557
557
|
onBlur?: (e: any) => void;
|
|
558
558
|
onSearch?: (searchTerm: string) => void;
|
|
559
559
|
}
|
|
560
|
-
declare const Select: FC<SelectProps>;
|
|
561
|
-
|
|
560
|
+
declare const Select: FC<SelectProps>;
|
|
561
|
+
|
|
562
562
|
interface RowObject {
|
|
563
563
|
[key: string]: any;
|
|
564
564
|
}
|
|
@@ -581,8 +581,8 @@ interface TableProps extends AccessibleProps {
|
|
|
581
581
|
onSortChange?: (e?: any) => void;
|
|
582
582
|
tableLayout?: string;
|
|
583
583
|
}
|
|
584
|
-
declare const Table: FC<TableProps>;
|
|
585
|
-
|
|
584
|
+
declare const Table: FC<TableProps>;
|
|
585
|
+
|
|
586
586
|
interface TabProps extends AccessibleProps {
|
|
587
587
|
badgeCount?: number;
|
|
588
588
|
errorBadge?: boolean;
|
|
@@ -593,16 +593,16 @@ interface TabProps extends AccessibleProps {
|
|
|
593
593
|
interface TabsProps extends AccessibleProps {
|
|
594
594
|
tabs: TabProps[];
|
|
595
595
|
}
|
|
596
|
-
declare const Tabs: FC<TabsProps>;
|
|
597
|
-
|
|
596
|
+
declare const Tabs: FC<TabsProps>;
|
|
597
|
+
|
|
598
598
|
interface ToggleProps extends AccessibleProps {
|
|
599
599
|
/** It is used to check whether Toggle is checked or not */
|
|
600
600
|
on: boolean;
|
|
601
601
|
/** Pass a callback then fires when user change value */
|
|
602
602
|
onClick: (e?: any) => void;
|
|
603
603
|
}
|
|
604
|
-
declare const Toggle: FC<ToggleProps>;
|
|
605
|
-
|
|
604
|
+
declare const Toggle: FC<ToggleProps>;
|
|
605
|
+
|
|
606
606
|
interface ZeroStateProps extends AccessibleProps {
|
|
607
607
|
/** The SVG path of the icon to show */
|
|
608
608
|
icon: string;
|
|
@@ -619,8 +619,8 @@ interface ZeroStateProps extends AccessibleProps {
|
|
|
619
619
|
disabled?: boolean;
|
|
620
620
|
};
|
|
621
621
|
}
|
|
622
|
-
declare const ZeroState: FC<ZeroStateProps>;
|
|
623
|
-
|
|
622
|
+
declare const ZeroState: FC<ZeroStateProps>;
|
|
623
|
+
|
|
624
624
|
declare const getAgesFromDob: (dob: string) => {
|
|
625
625
|
calculated_nearest_age: number | null;
|
|
626
626
|
calculated_current_age: number | null;
|
|
@@ -634,8 +634,8 @@ declare const getYears: () => {
|
|
|
634
634
|
declare const validateEmail: (email: string) => boolean;
|
|
635
635
|
declare const validatePhone: (phone: string) => boolean;
|
|
636
636
|
declare const formatAsPhone: (number: string) => string;
|
|
637
|
-
declare const formatAsSsn: (number: string) => string;
|
|
638
|
-
|
|
637
|
+
declare const formatAsSsn: (number: string) => string;
|
|
638
|
+
|
|
639
639
|
declare const Colors: {
|
|
640
640
|
PRIMARY: {
|
|
641
641
|
Hex: string;
|
|
@@ -687,6 +687,6 @@ declare const EditableTheme: {
|
|
|
687
687
|
Hex: string;
|
|
688
688
|
Rgb: string;
|
|
689
689
|
};
|
|
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 };
|
|
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 };
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|