@hexure/ui 1.13.0 → 1.13.2

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;
@@ -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;
@@ -307,6 +307,7 @@ interface FileUploadProps {
307
307
  maxSize?: number;
308
308
  /** Display a message in the dropzone area */
309
309
  message?: string;
310
+ tooltipInfo?: string;
310
311
  /** A string of comma separated file types */
311
312
  accept?: string;
312
313
  value?: File[];
@@ -317,8 +318,8 @@ interface ErrorObject {
317
318
  file: File;
318
319
  message: string;
319
320
  }
320
- declare const FileUpload: FC<FileUploadProps>;
321
-
321
+ declare const FileUpload: FC<FileUploadProps>;
322
+
322
323
  interface HeadingProps extends AccessibleProps {
323
324
  /** Toggle between bold and normal font weights */
324
325
  bold?: boolean;
@@ -331,8 +332,8 @@ interface HeadingProps extends AccessibleProps {
331
332
  /** Set the type of heading to display: primary, secondary, tertiary */
332
333
  type?: 'primary' | 'secondary' | 'tertiary';
333
334
  }
334
- declare const Heading: FC<HeadingProps>;
335
-
335
+ declare const Heading: FC<HeadingProps>;
336
+
336
337
  interface styleProps$2 {
337
338
  width?: number | string;
338
339
  }
@@ -380,8 +381,8 @@ interface InputProps extends AccessibleProps {
380
381
  /** Display a loading indicator to the far right of the input */
381
382
  loading?: boolean;
382
383
  }
383
- declare const Input: FC<InputProps>;
384
-
384
+ declare const Input: FC<InputProps>;
385
+
385
386
  interface LinkProps extends AccessibleProps {
386
387
  /** Set the text to be displayed */
387
388
  children: string;
@@ -390,16 +391,16 @@ interface LinkProps extends AccessibleProps {
390
391
  /** A method to execute when this component is clicked */
391
392
  onClick?: (e?: any) => void;
392
393
  }
393
- declare const Link: FC<LinkProps>;
394
-
395
- declare const Loader: FC;
396
-
394
+ declare const Link: FC<LinkProps>;
395
+
396
+ declare const Loader: FC;
397
+
397
398
  interface LogoProps extends AccessibleProps {
398
399
  type?: 'mark_red' | 'mark_white' | 'standard_white' | 'standard_black' | 'standard_full' | 'standard_reversed';
399
400
  height?: string;
400
401
  }
401
- declare const Logo: FC<LogoProps>;
402
-
402
+ declare const Logo: FC<LogoProps>;
403
+
403
404
  interface StepProps {
404
405
  label: string;
405
406
  complete?: boolean;
@@ -410,8 +411,8 @@ interface ProgressBarProps {
410
411
  steps: StepProps[];
411
412
  showStepLine?: boolean;
412
413
  }
413
- declare const ProgressBar: FC<ProgressBarProps>;
414
-
414
+ declare const ProgressBar: FC<ProgressBarProps>;
415
+
415
416
  interface ButtonProps {
416
417
  disabled?: boolean;
417
418
  children: string;
@@ -441,8 +442,8 @@ interface ModalProps extends AccessibleProps {
441
442
  /** Display steps at the top of the modal */
442
443
  steps?: StepProps[];
443
444
  }
444
- declare const Modal: FC<ModalProps>;
445
-
445
+ declare const Modal: FC<ModalProps>;
446
+
446
447
  interface OptionProps$2 {
447
448
  label?: string;
448
449
  value: string | number;
@@ -462,8 +463,8 @@ interface MultiSelectProps extends AccessibleProps {
462
463
  style?: styleProps$1;
463
464
  searchable?: boolean;
464
465
  }
465
- declare const MultiSelect: FC<MultiSelectProps>;
466
-
466
+ declare const MultiSelect: FC<MultiSelectProps>;
467
+
467
468
  interface TagProps extends AccessibleProps {
468
469
  /** It is used to select tag-type either default or removable. */
469
470
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
@@ -474,8 +475,8 @@ interface TagProps extends AccessibleProps {
474
475
  /** It is callback function called when user wants to close the tag. */
475
476
  removable?: boolean;
476
477
  }
477
- declare const Tag: FC<TagProps>;
478
-
478
+ declare const Tag: FC<TagProps>;
479
+
479
480
  interface PageHeaderProps {
480
481
  title?: string;
481
482
  breadcrumbs?: Array<{
@@ -499,15 +500,15 @@ interface PageHeaderProps {
499
500
  };
500
501
  tag?: TagProps;
501
502
  }
502
- declare const PageHeader: FC<PageHeaderProps>;
503
-
503
+ declare const PageHeader: FC<PageHeaderProps>;
504
+
504
505
  interface PaginationProps extends AccessibleProps {
505
506
  currentPage: number;
506
507
  onClick: (e?: any) => void;
507
508
  pageCount: number;
508
509
  }
509
- declare const Pagination: FC<PaginationProps>;
510
-
510
+ declare const Pagination: FC<PaginationProps>;
511
+
511
512
  interface RadioProps extends AccessibleProps {
512
513
  /** It is used to give label to radio. */
513
514
  children: string | number;
@@ -524,8 +525,8 @@ interface RadioProps extends AccessibleProps {
524
525
  /** Display a tooltip next to the label */
525
526
  tooltip?: TooltipProps;
526
527
  }
527
- declare const Radio: FC<RadioProps>;
528
-
528
+ declare const Radio: FC<RadioProps>;
529
+
529
530
  interface OptionProps$1 {
530
531
  label?: string;
531
532
  value: string | number;
@@ -536,8 +537,8 @@ interface RadioListProps extends AccessibleProps {
536
537
  options: OptionProps$1[];
537
538
  value: string;
538
539
  }
539
- declare const RadioList: FC<RadioListProps>;
540
-
540
+ declare const RadioList: FC<RadioListProps>;
541
+
541
542
  interface OptionProps {
542
543
  /** It is used to give label to option. */
543
544
  label?: string;
@@ -572,8 +573,8 @@ interface SelectProps extends AccessibleProps {
572
573
  onChange: (e: any) => void;
573
574
  onSearch?: (searchTerm: string) => void;
574
575
  }
575
- declare const Select: FC<SelectProps>;
576
-
576
+ declare const Select: FC<SelectProps>;
577
+
577
578
  interface RowObject {
578
579
  [key: string]: any;
579
580
  }
@@ -596,8 +597,8 @@ interface TableProps extends AccessibleProps {
596
597
  onSortChange?: (e?: any) => void;
597
598
  tableLayout?: string;
598
599
  }
599
- declare const Table: FC<TableProps>;
600
-
600
+ declare const Table: FC<TableProps>;
601
+
601
602
  interface TabProps extends AccessibleProps {
602
603
  badgeCount?: number;
603
604
  errorBadge?: boolean;
@@ -608,16 +609,16 @@ interface TabProps extends AccessibleProps {
608
609
  interface TabsProps extends AccessibleProps {
609
610
  tabs: TabProps[];
610
611
  }
611
- declare const Tabs: FC<TabsProps>;
612
-
612
+ declare const Tabs: FC<TabsProps>;
613
+
613
614
  interface ToggleProps extends AccessibleProps {
614
615
  /** It is used to check whether Toggle is checked or not */
615
616
  on: boolean;
616
617
  /** Pass a callback then fires when user change value */
617
618
  onClick: (e?: any) => void;
618
619
  }
619
- declare const Toggle: FC<ToggleProps>;
620
-
620
+ declare const Toggle: FC<ToggleProps>;
621
+
621
622
  interface ZeroStateProps extends AccessibleProps {
622
623
  /** The SVG path of the icon to show */
623
624
  icon: string;
@@ -632,8 +633,8 @@ interface ZeroStateProps extends AccessibleProps {
632
633
  onClick: (e?: any) => void;
633
634
  };
634
635
  }
635
- declare const ZeroState: FC<ZeroStateProps>;
636
-
636
+ declare const ZeroState: FC<ZeroStateProps>;
637
+
637
638
  declare const getAgesFromDob: (dob: string) => {
638
639
  calculated_nearest_age: number | null;
639
640
  calculated_current_age: number | null;
@@ -647,8 +648,8 @@ declare const getYears: () => {
647
648
  declare const validateEmail: (email: string) => boolean;
648
649
  declare const validatePhone: (phone: string) => boolean;
649
650
  declare const formatAsPhone: (number: string) => string;
650
- declare const formatAsSsn: (number: string) => string;
651
-
651
+ declare const formatAsSsn: (number: string) => string;
652
+
652
653
  declare const Colors: {
653
654
  PRIMARY: {
654
655
  Hex: string;
@@ -700,6 +701,6 @@ declare const EditableTheme: {
700
701
  Hex: string;
701
702
  Rgb: string;
702
703
  };
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 };
704
+ };
705
+
706
+ 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.0",
3
+ "version": "1.13.2",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",