@hexure/ui 1.13.1 → 1.13.3

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/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 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;
@@ -150,11 +150,13 @@ interface ButtonMenuProps {
150
150
  menuItems: Array<MenuItemProps>;
151
151
  menuWidth?: string;
152
152
  maxHeight?: string;
153
- position?: 'left' | 'right';
153
+ position?: 'left' | 'right' | 'top' | 'bottom';
154
154
  format?: 'primary' | 'secondary';
155
+ enableHover?: boolean;
156
+ enableClick?: boolean;
155
157
  }
156
- declare const ButtonMenu: FC<ButtonMenuProps>;
157
-
158
+ declare const ButtonMenu: FC<ButtonMenuProps>;
159
+
158
160
  interface TooltipProps {
159
161
  /** It is used to give label to tag. */
160
162
  children: any;
@@ -165,8 +167,8 @@ interface TooltipProps {
165
167
  /** The element to display that triggers the tooltip content */
166
168
  trigger?: any;
167
169
  }
168
- declare const Tooltip: FC<TooltipProps>;
169
-
170
+ declare const Tooltip: FC<TooltipProps>;
171
+
170
172
  interface CheckboxProps extends AccessibleProps {
171
173
  /** It is used to give label to checkbox. */
172
174
  children?: string;
@@ -182,8 +184,8 @@ interface CheckboxProps extends AccessibleProps {
182
184
  /** Display a tooltip next to the label */
183
185
  tooltip?: TooltipProps;
184
186
  }
185
- declare const Checkbox: FC<CheckboxProps>;
186
-
187
+ declare const Checkbox: FC<CheckboxProps>;
188
+
187
189
  interface OptionProps$3 {
188
190
  label?: string;
189
191
  value: string | number;
@@ -196,8 +198,8 @@ interface ChecklistProps extends AccessibleProps {
196
198
  selected: (string | number)[];
197
199
  showSelectAll?: boolean;
198
200
  }
199
- declare const Checklist: FC<ChecklistProps>;
200
-
201
+ declare const Checklist: FC<ChecklistProps>;
202
+
201
203
  interface CopyProps extends AccessibleProps {
202
204
  /** Set the text to be displayed */
203
205
  children: string | React.ReactNode;
@@ -211,8 +213,8 @@ interface CopyProps extends AccessibleProps {
211
213
  /** Set the color of the copy based on the design system color pallette */
212
214
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'GRAY' | 'MEDIUM_GRAY' | 'LIGHT_GRAY';
213
215
  }
214
- declare const Copy: FC<CopyProps>;
215
-
216
+ declare const Copy: FC<CopyProps>;
217
+
216
218
  interface styleProps$3 {
217
219
  width?: number | string;
218
220
  }
@@ -232,8 +234,8 @@ interface DateProps extends AccessibleProps {
232
234
  /** Override default styles */
233
235
  style?: styleProps$3;
234
236
  }
235
- declare const DatePicker: FC<DateProps>;
236
-
237
+ declare const DatePicker: FC<DateProps>;
238
+
237
239
  interface ButtonProps$1 extends AccessibleProps {
238
240
  disabled?: boolean;
239
241
  children: string;
@@ -262,8 +264,8 @@ interface DrawerProps extends AccessibleProps {
262
264
  /** It is used to close drawer. */
263
265
  onClose: (e?: any) => void;
264
266
  }
265
- declare const Drawer: FC<DrawerProps>;
266
-
267
+ declare const Drawer: FC<DrawerProps>;
268
+
267
269
  interface ActionProps {
268
270
  id?: string;
269
271
  label: string;
@@ -286,16 +288,16 @@ interface FieldProps extends AccessibleProps {
286
288
  /** Display a tooltip next to the label */
287
289
  tooltip?: TooltipProps;
288
290
  }
289
- declare const Field: FC<FieldProps>;
290
-
291
+ declare const Field: FC<FieldProps>;
292
+
291
293
  interface FieldGroupProps {
292
294
  /** The label to display above the field group */
293
295
  label: string;
294
296
  /** The content of the field group...usually a set of Field components */
295
297
  children: any;
296
298
  }
297
- declare const FieldGroup: FC<FieldGroupProps>;
298
-
299
+ declare const FieldGroup: FC<FieldGroupProps>;
300
+
299
301
  interface FileUploadProps {
300
302
  /** A method to call when files are added/removed. Return the new file or array of files. */
301
303
  onChange?: (files: Array<File>) => void;
@@ -307,6 +309,7 @@ interface FileUploadProps {
307
309
  maxSize?: number;
308
310
  /** Display a message in the dropzone area */
309
311
  message?: string;
312
+ tooltipInfo?: string;
310
313
  /** A string of comma separated file types */
311
314
  accept?: string;
312
315
  value?: File[];
@@ -317,8 +320,8 @@ interface ErrorObject {
317
320
  file: File;
318
321
  message: string;
319
322
  }
320
- declare const FileUpload: FC<FileUploadProps>;
321
-
323
+ declare const FileUpload: FC<FileUploadProps>;
324
+
322
325
  interface HeadingProps extends AccessibleProps {
323
326
  /** Toggle between bold and normal font weights */
324
327
  bold?: boolean;
@@ -331,8 +334,8 @@ interface HeadingProps extends AccessibleProps {
331
334
  /** Set the type of heading to display: primary, secondary, tertiary */
332
335
  type?: 'primary' | 'secondary' | 'tertiary';
333
336
  }
334
- declare const Heading: FC<HeadingProps>;
335
-
337
+ declare const Heading: FC<HeadingProps>;
338
+
336
339
  interface styleProps$2 {
337
340
  width?: number | string;
338
341
  }
@@ -380,8 +383,8 @@ interface InputProps extends AccessibleProps {
380
383
  /** Display a loading indicator to the far right of the input */
381
384
  loading?: boolean;
382
385
  }
383
- declare const Input: FC<InputProps>;
384
-
386
+ declare const Input: FC<InputProps>;
387
+
385
388
  interface LinkProps extends AccessibleProps {
386
389
  /** Set the text to be displayed */
387
390
  children: string;
@@ -390,16 +393,16 @@ interface LinkProps extends AccessibleProps {
390
393
  /** A method to execute when this component is clicked */
391
394
  onClick?: (e?: any) => void;
392
395
  }
393
- declare const Link: FC<LinkProps>;
394
-
395
- declare const Loader: FC;
396
-
396
+ declare const Link: FC<LinkProps>;
397
+
398
+ declare const Loader: FC;
399
+
397
400
  interface LogoProps extends AccessibleProps {
398
401
  type?: 'mark_red' | 'mark_white' | 'standard_white' | 'standard_black' | 'standard_full' | 'standard_reversed';
399
402
  height?: string;
400
403
  }
401
- declare const Logo: FC<LogoProps>;
402
-
404
+ declare const Logo: FC<LogoProps>;
405
+
403
406
  interface StepProps {
404
407
  label: string;
405
408
  complete?: boolean;
@@ -410,8 +413,8 @@ interface ProgressBarProps {
410
413
  steps: StepProps[];
411
414
  showStepLine?: boolean;
412
415
  }
413
- declare const ProgressBar: FC<ProgressBarProps>;
414
-
416
+ declare const ProgressBar: FC<ProgressBarProps>;
417
+
415
418
  interface ButtonProps {
416
419
  disabled?: boolean;
417
420
  children: string;
@@ -441,8 +444,8 @@ interface ModalProps extends AccessibleProps {
441
444
  /** Display steps at the top of the modal */
442
445
  steps?: StepProps[];
443
446
  }
444
- declare const Modal: FC<ModalProps>;
445
-
447
+ declare const Modal: FC<ModalProps>;
448
+
446
449
  interface OptionProps$2 {
447
450
  label?: string;
448
451
  value: string | number;
@@ -462,8 +465,8 @@ interface MultiSelectProps extends AccessibleProps {
462
465
  style?: styleProps$1;
463
466
  searchable?: boolean;
464
467
  }
465
- declare const MultiSelect: FC<MultiSelectProps>;
466
-
468
+ declare const MultiSelect: FC<MultiSelectProps>;
469
+
467
470
  interface TagProps extends AccessibleProps {
468
471
  /** It is used to select tag-type either default or removable. */
469
472
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
@@ -474,8 +477,8 @@ interface TagProps extends AccessibleProps {
474
477
  /** It is callback function called when user wants to close the tag. */
475
478
  removable?: boolean;
476
479
  }
477
- declare const Tag: FC<TagProps>;
478
-
480
+ declare const Tag: FC<TagProps>;
481
+
479
482
  interface PageHeaderProps {
480
483
  title?: string;
481
484
  breadcrumbs?: Array<{
@@ -499,15 +502,15 @@ interface PageHeaderProps {
499
502
  };
500
503
  tag?: TagProps;
501
504
  }
502
- declare const PageHeader: FC<PageHeaderProps>;
503
-
505
+ declare const PageHeader: FC<PageHeaderProps>;
506
+
504
507
  interface PaginationProps extends AccessibleProps {
505
508
  currentPage: number;
506
509
  onClick: (e?: any) => void;
507
510
  pageCount: number;
508
511
  }
509
- declare const Pagination: FC<PaginationProps>;
510
-
512
+ declare const Pagination: FC<PaginationProps>;
513
+
511
514
  interface RadioProps extends AccessibleProps {
512
515
  /** It is used to give label to radio. */
513
516
  children: string | number;
@@ -524,8 +527,8 @@ interface RadioProps extends AccessibleProps {
524
527
  /** Display a tooltip next to the label */
525
528
  tooltip?: TooltipProps;
526
529
  }
527
- declare const Radio: FC<RadioProps>;
528
-
530
+ declare const Radio: FC<RadioProps>;
531
+
529
532
  interface OptionProps$1 {
530
533
  label?: string;
531
534
  value: string | number;
@@ -536,8 +539,8 @@ interface RadioListProps extends AccessibleProps {
536
539
  options: OptionProps$1[];
537
540
  value: string;
538
541
  }
539
- declare const RadioList: FC<RadioListProps>;
540
-
542
+ declare const RadioList: FC<RadioListProps>;
543
+
541
544
  interface OptionProps {
542
545
  /** It is used to give label to option. */
543
546
  label?: string;
@@ -572,8 +575,8 @@ interface SelectProps extends AccessibleProps {
572
575
  onChange: (e: any) => void;
573
576
  onSearch?: (searchTerm: string) => void;
574
577
  }
575
- declare const Select: FC<SelectProps>;
576
-
578
+ declare const Select: FC<SelectProps>;
579
+
577
580
  interface RowObject {
578
581
  [key: string]: any;
579
582
  }
@@ -596,8 +599,8 @@ interface TableProps extends AccessibleProps {
596
599
  onSortChange?: (e?: any) => void;
597
600
  tableLayout?: string;
598
601
  }
599
- declare const Table: FC<TableProps>;
600
-
602
+ declare const Table: FC<TableProps>;
603
+
601
604
  interface TabProps extends AccessibleProps {
602
605
  badgeCount?: number;
603
606
  errorBadge?: boolean;
@@ -608,16 +611,16 @@ interface TabProps extends AccessibleProps {
608
611
  interface TabsProps extends AccessibleProps {
609
612
  tabs: TabProps[];
610
613
  }
611
- declare const Tabs: FC<TabsProps>;
612
-
614
+ declare const Tabs: FC<TabsProps>;
615
+
613
616
  interface ToggleProps extends AccessibleProps {
614
617
  /** It is used to check whether Toggle is checked or not */
615
618
  on: boolean;
616
619
  /** Pass a callback then fires when user change value */
617
620
  onClick: (e?: any) => void;
618
621
  }
619
- declare const Toggle: FC<ToggleProps>;
620
-
622
+ declare const Toggle: FC<ToggleProps>;
623
+
621
624
  interface ZeroStateProps extends AccessibleProps {
622
625
  /** The SVG path of the icon to show */
623
626
  icon: string;
@@ -632,8 +635,8 @@ interface ZeroStateProps extends AccessibleProps {
632
635
  onClick: (e?: any) => void;
633
636
  };
634
637
  }
635
- declare const ZeroState: FC<ZeroStateProps>;
636
-
638
+ declare const ZeroState: FC<ZeroStateProps>;
639
+
637
640
  declare const getAgesFromDob: (dob: string) => {
638
641
  calculated_nearest_age: number | null;
639
642
  calculated_current_age: number | null;
@@ -647,8 +650,8 @@ declare const getYears: () => {
647
650
  declare const validateEmail: (email: string) => boolean;
648
651
  declare const validatePhone: (phone: string) => boolean;
649
652
  declare const formatAsPhone: (number: string) => string;
650
- declare const formatAsSsn: (number: string) => string;
651
-
653
+ declare const formatAsSsn: (number: string) => string;
654
+
652
655
  declare const Colors: {
653
656
  PRIMARY: {
654
657
  Hex: string;
@@ -700,6 +703,6 @@ declare const EditableTheme: {
700
703
  Hex: string;
701
704
  Rgb: string;
702
705
  };
703
- };
704
-
705
- 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 };
706
+ };
707
+
708
+ 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.1",
3
+ "version": "1.13.3",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",