@hexure/ui 1.12.8 → 1.12.9
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 +1021 -1020
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Input/Input.d.ts +2 -1
- package/dist/esm/index.js +973 -972
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Input/Input.d.ts +2 -1
- package/dist/index.d.ts +82 -81
- 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,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?: 'primary' | 'red';
|
|
@@ -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 ButtonProps$3 extends AccessibleProps {
|
|
73
73
|
/** Display a number badge on the right side of the button */
|
|
74
74
|
badge?: number;
|
|
@@ -91,14 +91,14 @@ interface ButtonProps$3 extends AccessibleProps {
|
|
|
91
91
|
/** Define which button format to display. By default the Primary button will be used. */
|
|
92
92
|
format?: 'primary' | 'secondary' | 'red' | 'green' | string;
|
|
93
93
|
}
|
|
94
|
-
declare const Button: FC<ButtonProps$3>;
|
|
95
|
-
|
|
94
|
+
declare const Button: FC<ButtonProps$3>;
|
|
95
|
+
|
|
96
96
|
interface AppHeaderProps {
|
|
97
97
|
logoUrl?: string;
|
|
98
98
|
buttons: ButtonProps$3[];
|
|
99
99
|
}
|
|
100
|
-
declare const AppHeader: FC<AppHeaderProps>;
|
|
101
|
-
|
|
100
|
+
declare const AppHeader: FC<AppHeaderProps>;
|
|
101
|
+
|
|
102
102
|
interface MenuItemType extends AccessibleProps {
|
|
103
103
|
icon: string;
|
|
104
104
|
label: string;
|
|
@@ -116,8 +116,8 @@ interface AppMenuProps extends AccessibleProps {
|
|
|
116
116
|
footerTag?: string;
|
|
117
117
|
defaultWidth?: string;
|
|
118
118
|
}
|
|
119
|
-
declare const AppMenu: FC<AppMenuProps>;
|
|
120
|
-
|
|
119
|
+
declare const AppMenu: FC<AppMenuProps>;
|
|
120
|
+
|
|
121
121
|
interface ButtonProps$2 {
|
|
122
122
|
children: string;
|
|
123
123
|
onClick: (e?: any) => void;
|
|
@@ -130,8 +130,8 @@ interface BulkActionBarProps extends AccessibleProps {
|
|
|
130
130
|
onClear: (e?: any) => void;
|
|
131
131
|
selectedCount?: number;
|
|
132
132
|
}
|
|
133
|
-
declare const BulkActionBar: FC<BulkActionBarProps>;
|
|
134
|
-
|
|
133
|
+
declare const BulkActionBar: FC<BulkActionBarProps>;
|
|
134
|
+
|
|
135
135
|
interface MenuItemProps extends AccessibleProps {
|
|
136
136
|
icon?: string;
|
|
137
137
|
label?: string;
|
|
@@ -141,8 +141,8 @@ interface MoreMenuProps extends AccessibleProps {
|
|
|
141
141
|
menuItems: MenuItemProps[];
|
|
142
142
|
maxHeight?: string | number;
|
|
143
143
|
}
|
|
144
|
-
declare const MoreMenu: FC<MoreMenuProps>;
|
|
145
|
-
|
|
144
|
+
declare const MoreMenu: FC<MoreMenuProps>;
|
|
145
|
+
|
|
146
146
|
interface ButtonMenuProps {
|
|
147
147
|
disabled?: boolean;
|
|
148
148
|
label: string;
|
|
@@ -153,8 +153,8 @@ interface ButtonMenuProps {
|
|
|
153
153
|
position?: 'left' | 'right';
|
|
154
154
|
format?: 'primary' | 'secondary';
|
|
155
155
|
}
|
|
156
|
-
declare const ButtonMenu: FC<ButtonMenuProps>;
|
|
157
|
-
|
|
156
|
+
declare const ButtonMenu: FC<ButtonMenuProps>;
|
|
157
|
+
|
|
158
158
|
interface TooltipProps {
|
|
159
159
|
/** It is used to give label to tag. */
|
|
160
160
|
children: any;
|
|
@@ -165,8 +165,8 @@ interface TooltipProps {
|
|
|
165
165
|
/** The element to display that triggers the tooltip content */
|
|
166
166
|
trigger?: any;
|
|
167
167
|
}
|
|
168
|
-
declare const Tooltip: FC<TooltipProps>;
|
|
169
|
-
|
|
168
|
+
declare const Tooltip: FC<TooltipProps>;
|
|
169
|
+
|
|
170
170
|
interface CheckboxProps extends AccessibleProps {
|
|
171
171
|
/** It is used to give label to checkbox. */
|
|
172
172
|
children?: string;
|
|
@@ -182,8 +182,8 @@ interface CheckboxProps extends AccessibleProps {
|
|
|
182
182
|
/** Display a tooltip next to the label */
|
|
183
183
|
tooltip?: TooltipProps;
|
|
184
184
|
}
|
|
185
|
-
declare const Checkbox: FC<CheckboxProps>;
|
|
186
|
-
|
|
185
|
+
declare const Checkbox: FC<CheckboxProps>;
|
|
186
|
+
|
|
187
187
|
interface OptionProps$3 {
|
|
188
188
|
label?: string;
|
|
189
189
|
value: string | number;
|
|
@@ -196,8 +196,8 @@ interface ChecklistProps extends AccessibleProps {
|
|
|
196
196
|
selected: (string | number)[];
|
|
197
197
|
showSelectAll?: boolean;
|
|
198
198
|
}
|
|
199
|
-
declare const Checklist: FC<ChecklistProps>;
|
|
200
|
-
|
|
199
|
+
declare const Checklist: FC<ChecklistProps>;
|
|
200
|
+
|
|
201
201
|
interface CopyProps extends AccessibleProps {
|
|
202
202
|
/** Set the text to be displayed */
|
|
203
203
|
children: string | React.ReactNode;
|
|
@@ -211,8 +211,8 @@ interface CopyProps extends AccessibleProps {
|
|
|
211
211
|
/** Set the color of the copy based on the design system color pallette */
|
|
212
212
|
color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'GRAY' | 'MEDIUM_GRAY' | 'LIGHT_GRAY';
|
|
213
213
|
}
|
|
214
|
-
declare const Copy: FC<CopyProps>;
|
|
215
|
-
|
|
214
|
+
declare const Copy: FC<CopyProps>;
|
|
215
|
+
|
|
216
216
|
interface styleProps$3 {
|
|
217
217
|
width?: number | string;
|
|
218
218
|
}
|
|
@@ -232,8 +232,8 @@ interface DateProps extends AccessibleProps {
|
|
|
232
232
|
/** Override default styles */
|
|
233
233
|
style?: styleProps$3;
|
|
234
234
|
}
|
|
235
|
-
declare const DatePicker: FC<DateProps>;
|
|
236
|
-
|
|
235
|
+
declare const DatePicker: FC<DateProps>;
|
|
236
|
+
|
|
237
237
|
interface ButtonProps$1 extends AccessibleProps {
|
|
238
238
|
disabled?: boolean;
|
|
239
239
|
children: string;
|
|
@@ -262,8 +262,8 @@ interface DrawerProps extends AccessibleProps {
|
|
|
262
262
|
/** It is used to close drawer. */
|
|
263
263
|
onClose: (e?: any) => void;
|
|
264
264
|
}
|
|
265
|
-
declare const Drawer: FC<DrawerProps>;
|
|
266
|
-
|
|
265
|
+
declare const Drawer: FC<DrawerProps>;
|
|
266
|
+
|
|
267
267
|
interface ActionProps {
|
|
268
268
|
id?: string;
|
|
269
269
|
label: string;
|
|
@@ -286,16 +286,16 @@ interface FieldProps extends AccessibleProps {
|
|
|
286
286
|
/** Display a tooltip next to the label */
|
|
287
287
|
tooltip?: TooltipProps;
|
|
288
288
|
}
|
|
289
|
-
declare const Field: FC<FieldProps>;
|
|
290
|
-
|
|
289
|
+
declare const Field: FC<FieldProps>;
|
|
290
|
+
|
|
291
291
|
interface FieldGroupProps {
|
|
292
292
|
/** The label to display above the field group */
|
|
293
293
|
label: string;
|
|
294
294
|
/** The content of the field group...usually a set of Field components */
|
|
295
295
|
children: any;
|
|
296
296
|
}
|
|
297
|
-
declare const FieldGroup: FC<FieldGroupProps>;
|
|
298
|
-
|
|
297
|
+
declare const FieldGroup: FC<FieldGroupProps>;
|
|
298
|
+
|
|
299
299
|
interface FileUploadProps {
|
|
300
300
|
/** A method to call when files are added/removed. Return the new file or array of files. */
|
|
301
301
|
onChange?: (files: Array<File>) => void;
|
|
@@ -316,8 +316,8 @@ interface ErrorObject {
|
|
|
316
316
|
file: File;
|
|
317
317
|
message: string;
|
|
318
318
|
}
|
|
319
|
-
declare const FileUpload: FC<FileUploadProps>;
|
|
320
|
-
|
|
319
|
+
declare const FileUpload: FC<FileUploadProps>;
|
|
320
|
+
|
|
321
321
|
interface HeadingProps extends AccessibleProps {
|
|
322
322
|
/** Toggle between bold and normal font weights */
|
|
323
323
|
bold?: boolean;
|
|
@@ -330,8 +330,8 @@ interface HeadingProps extends AccessibleProps {
|
|
|
330
330
|
/** Set the type of heading to display: primary, secondary, tertiary */
|
|
331
331
|
type?: 'primary' | 'secondary' | 'tertiary';
|
|
332
332
|
}
|
|
333
|
-
declare const Heading: FC<HeadingProps>;
|
|
334
|
-
|
|
333
|
+
declare const Heading: FC<HeadingProps>;
|
|
334
|
+
|
|
335
335
|
interface styleProps$2 {
|
|
336
336
|
width?: number | string;
|
|
337
337
|
}
|
|
@@ -378,9 +378,10 @@ interface InputProps extends AccessibleProps {
|
|
|
378
378
|
suggestedValues?: string[];
|
|
379
379
|
/** Display a loading indicator to the far right of the input */
|
|
380
380
|
loading?: boolean;
|
|
381
|
+
inputRef?: React.Ref<HTMLInputElement | HTMLTextAreaElement>;
|
|
381
382
|
}
|
|
382
|
-
declare const Input: FC<InputProps>;
|
|
383
|
-
|
|
383
|
+
declare const Input: FC<InputProps>;
|
|
384
|
+
|
|
384
385
|
interface LinkProps extends AccessibleProps {
|
|
385
386
|
/** Set the text to be displayed */
|
|
386
387
|
children: string;
|
|
@@ -389,16 +390,16 @@ interface LinkProps extends AccessibleProps {
|
|
|
389
390
|
/** A method to execute when this component is clicked */
|
|
390
391
|
onClick?: (e?: any) => void;
|
|
391
392
|
}
|
|
392
|
-
declare const Link: FC<LinkProps>;
|
|
393
|
-
|
|
394
|
-
declare const Loader: FC;
|
|
395
|
-
|
|
393
|
+
declare const Link: FC<LinkProps>;
|
|
394
|
+
|
|
395
|
+
declare const Loader: FC;
|
|
396
|
+
|
|
396
397
|
interface LogoProps extends AccessibleProps {
|
|
397
398
|
type?: 'mark_red' | 'mark_white' | 'standard_white' | 'standard_black' | 'standard_full' | 'standard_reversed';
|
|
398
399
|
height?: string;
|
|
399
400
|
}
|
|
400
|
-
declare const Logo: FC<LogoProps>;
|
|
401
|
-
|
|
401
|
+
declare const Logo: FC<LogoProps>;
|
|
402
|
+
|
|
402
403
|
interface StepProps {
|
|
403
404
|
label: string;
|
|
404
405
|
complete?: boolean;
|
|
@@ -409,8 +410,8 @@ interface ProgressBarProps {
|
|
|
409
410
|
steps: StepProps[];
|
|
410
411
|
showStepLine?: boolean;
|
|
411
412
|
}
|
|
412
|
-
declare const ProgressBar: FC<ProgressBarProps>;
|
|
413
|
-
|
|
413
|
+
declare const ProgressBar: FC<ProgressBarProps>;
|
|
414
|
+
|
|
414
415
|
interface ButtonProps {
|
|
415
416
|
disabled?: boolean;
|
|
416
417
|
children: string;
|
|
@@ -439,8 +440,8 @@ interface ModalProps extends AccessibleProps {
|
|
|
439
440
|
/** Display steps at the top of the modal */
|
|
440
441
|
steps?: StepProps[];
|
|
441
442
|
}
|
|
442
|
-
declare const Modal: FC<ModalProps>;
|
|
443
|
-
|
|
443
|
+
declare const Modal: FC<ModalProps>;
|
|
444
|
+
|
|
444
445
|
interface OptionProps$2 {
|
|
445
446
|
label?: string;
|
|
446
447
|
value: string | number;
|
|
@@ -460,8 +461,8 @@ interface MultiSelectProps extends AccessibleProps {
|
|
|
460
461
|
style?: styleProps$1;
|
|
461
462
|
searchable?: boolean;
|
|
462
463
|
}
|
|
463
|
-
declare const MultiSelect: FC<MultiSelectProps>;
|
|
464
|
-
|
|
464
|
+
declare const MultiSelect: FC<MultiSelectProps>;
|
|
465
|
+
|
|
465
466
|
interface TagProps extends AccessibleProps {
|
|
466
467
|
/** It is used to select tag-type either default or removable. */
|
|
467
468
|
color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
|
|
@@ -472,8 +473,8 @@ interface TagProps extends AccessibleProps {
|
|
|
472
473
|
/** It is callback function called when user wants to close the tag. */
|
|
473
474
|
removable?: boolean;
|
|
474
475
|
}
|
|
475
|
-
declare const Tag: FC<TagProps>;
|
|
476
|
-
|
|
476
|
+
declare const Tag: FC<TagProps>;
|
|
477
|
+
|
|
477
478
|
interface PageHeaderProps {
|
|
478
479
|
title?: string;
|
|
479
480
|
breadcrumbs?: Array<{
|
|
@@ -497,15 +498,15 @@ interface PageHeaderProps {
|
|
|
497
498
|
};
|
|
498
499
|
tag?: TagProps;
|
|
499
500
|
}
|
|
500
|
-
declare const PageHeader: FC<PageHeaderProps>;
|
|
501
|
-
|
|
501
|
+
declare const PageHeader: FC<PageHeaderProps>;
|
|
502
|
+
|
|
502
503
|
interface PaginationProps extends AccessibleProps {
|
|
503
504
|
currentPage: number;
|
|
504
505
|
onClick: (e?: any) => void;
|
|
505
506
|
pageCount: number;
|
|
506
507
|
}
|
|
507
|
-
declare const Pagination: FC<PaginationProps>;
|
|
508
|
-
|
|
508
|
+
declare const Pagination: FC<PaginationProps>;
|
|
509
|
+
|
|
509
510
|
interface RadioProps extends AccessibleProps {
|
|
510
511
|
/** It is used to give label to radio. */
|
|
511
512
|
children: string | number;
|
|
@@ -522,8 +523,8 @@ interface RadioProps extends AccessibleProps {
|
|
|
522
523
|
/** Display a tooltip next to the label */
|
|
523
524
|
tooltip?: TooltipProps;
|
|
524
525
|
}
|
|
525
|
-
declare const Radio: FC<RadioProps>;
|
|
526
|
-
|
|
526
|
+
declare const Radio: FC<RadioProps>;
|
|
527
|
+
|
|
527
528
|
interface OptionProps$1 {
|
|
528
529
|
label?: string;
|
|
529
530
|
value: string | number;
|
|
@@ -534,8 +535,8 @@ interface RadioListProps extends AccessibleProps {
|
|
|
534
535
|
options: OptionProps$1[];
|
|
535
536
|
value: string;
|
|
536
537
|
}
|
|
537
|
-
declare const RadioList: FC<RadioListProps>;
|
|
538
|
-
|
|
538
|
+
declare const RadioList: FC<RadioListProps>;
|
|
539
|
+
|
|
539
540
|
interface OptionProps {
|
|
540
541
|
/** It is used to give label to option. */
|
|
541
542
|
label?: string;
|
|
@@ -570,8 +571,8 @@ interface SelectProps extends AccessibleProps {
|
|
|
570
571
|
onChange: (e: any) => void;
|
|
571
572
|
onSearch?: (searchTerm: string) => void;
|
|
572
573
|
}
|
|
573
|
-
declare const Select: FC<SelectProps>;
|
|
574
|
-
|
|
574
|
+
declare const Select: FC<SelectProps>;
|
|
575
|
+
|
|
575
576
|
interface RowObject {
|
|
576
577
|
[key: string]: any;
|
|
577
578
|
}
|
|
@@ -594,8 +595,8 @@ interface TableProps extends AccessibleProps {
|
|
|
594
595
|
onSortChange?: (e?: any) => void;
|
|
595
596
|
tableLayout?: string;
|
|
596
597
|
}
|
|
597
|
-
declare const Table: FC<TableProps>;
|
|
598
|
-
|
|
598
|
+
declare const Table: FC<TableProps>;
|
|
599
|
+
|
|
599
600
|
interface TabProps extends AccessibleProps {
|
|
600
601
|
badgeCount?: number;
|
|
601
602
|
errorBadge?: boolean;
|
|
@@ -606,16 +607,16 @@ interface TabProps extends AccessibleProps {
|
|
|
606
607
|
interface TabsProps extends AccessibleProps {
|
|
607
608
|
tabs: TabProps[];
|
|
608
609
|
}
|
|
609
|
-
declare const Tabs: FC<TabsProps>;
|
|
610
|
-
|
|
610
|
+
declare const Tabs: FC<TabsProps>;
|
|
611
|
+
|
|
611
612
|
interface ToggleProps extends AccessibleProps {
|
|
612
613
|
/** It is used to check whether Toggle is checked or not */
|
|
613
614
|
on: boolean;
|
|
614
615
|
/** Pass a callback then fires when user change value */
|
|
615
616
|
onClick: (e?: any) => void;
|
|
616
617
|
}
|
|
617
|
-
declare const Toggle: FC<ToggleProps>;
|
|
618
|
-
|
|
618
|
+
declare const Toggle: FC<ToggleProps>;
|
|
619
|
+
|
|
619
620
|
interface ZeroStateProps extends AccessibleProps {
|
|
620
621
|
/** The SVG path of the icon to show */
|
|
621
622
|
icon: string;
|
|
@@ -630,8 +631,8 @@ interface ZeroStateProps extends AccessibleProps {
|
|
|
630
631
|
onClick: (e?: any) => void;
|
|
631
632
|
};
|
|
632
633
|
}
|
|
633
|
-
declare const ZeroState: FC<ZeroStateProps>;
|
|
634
|
-
|
|
634
|
+
declare const ZeroState: FC<ZeroStateProps>;
|
|
635
|
+
|
|
635
636
|
declare const getAgesFromDob: (dob: string) => {
|
|
636
637
|
calculated_nearest_age: number | null;
|
|
637
638
|
calculated_current_age: number | null;
|
|
@@ -645,8 +646,8 @@ declare const getYears: () => {
|
|
|
645
646
|
declare const validateEmail: (email: string) => boolean;
|
|
646
647
|
declare const validatePhone: (phone: string) => boolean;
|
|
647
648
|
declare const formatAsPhone: (number: string) => string;
|
|
648
|
-
declare const formatAsSsn: (number: string) => string;
|
|
649
|
-
|
|
649
|
+
declare const formatAsSsn: (number: string) => string;
|
|
650
|
+
|
|
650
651
|
declare const Colors: {
|
|
651
652
|
PRIMARY: {
|
|
652
653
|
Hex: string;
|
|
@@ -698,6 +699,6 @@ declare const EditableTheme: {
|
|
|
698
699
|
Hex: string;
|
|
699
700
|
Rgb: string;
|
|
700
701
|
};
|
|
701
|
-
};
|
|
702
|
-
|
|
703
|
-
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 };
|
|
702
|
+
};
|
|
703
|
+
|
|
704
|
+
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 };
|