@hexure/ui 1.13.26 → 1.13.28

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 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;
@@ -107,22 +107,22 @@ interface ButtonProps$3 extends AccessibleProps {
107
107
  /** Set the title of the button on hover */
108
108
  title?: string;
109
109
  }
110
- declare const Button: FC<ButtonProps$3>;
111
-
110
+ declare const Button: FC<ButtonProps$3>;
111
+
112
112
  interface AppHeaderProps {
113
113
  logoUrl?: string;
114
114
  buttons: ButtonProps$3[];
115
115
  }
116
- declare const AppHeader: FC<AppHeaderProps>;
117
-
116
+ declare const AppHeader: FC<AppHeaderProps>;
117
+
118
118
  interface MenuItemType extends AccessibleProps {
119
119
  icon: string;
120
120
  label: string;
121
- onClick: () => void;
121
+ onClick?: (e?: any) => void;
122
122
  is_active?: boolean;
123
123
  menu?: {
124
124
  label: string;
125
- onClick: () => void;
125
+ onClick?: (e?: any) => void;
126
126
  is_active?: boolean;
127
127
  }[];
128
128
  title?: string;
@@ -133,8 +133,8 @@ interface AppMenuProps extends AccessibleProps {
133
133
  footerTag?: string;
134
134
  defaultWidth?: string;
135
135
  }
136
- declare const AppMenu: FC<AppMenuProps>;
137
-
136
+ declare const AppMenu: FC<AppMenuProps>;
137
+
138
138
  interface ButtonProps$2 {
139
139
  children: string;
140
140
  onClick: (e?: any) => void;
@@ -147,8 +147,8 @@ interface BulkActionBarProps extends AccessibleProps {
147
147
  onClear: (e?: any) => void;
148
148
  selectedCount?: number;
149
149
  }
150
- declare const BulkActionBar: FC<BulkActionBarProps>;
151
-
150
+ declare const BulkActionBar: FC<BulkActionBarProps>;
151
+
152
152
  interface MenuItemProps extends AccessibleProps {
153
153
  icon?: string;
154
154
  label?: string;
@@ -159,8 +159,8 @@ interface MoreMenuProps extends AccessibleProps {
159
159
  menuItems: MenuItemProps[];
160
160
  maxHeight?: string | number;
161
161
  }
162
- declare const MoreMenu: FC<MoreMenuProps>;
163
-
162
+ declare const MoreMenu: FC<MoreMenuProps>;
163
+
164
164
  interface ButtonMenuProps {
165
165
  disabled?: boolean;
166
166
  label: string;
@@ -174,8 +174,8 @@ interface ButtonMenuProps {
174
174
  enableClick?: boolean;
175
175
  show?: boolean;
176
176
  }
177
- declare const ButtonMenu: FC<ButtonMenuProps>;
178
-
177
+ declare const ButtonMenu: FC<ButtonMenuProps>;
178
+
179
179
  interface CheckboxProps extends AccessibleProps {
180
180
  /** It is used to give label to checkbox. */
181
181
  children?: string;
@@ -191,8 +191,8 @@ interface CheckboxProps extends AccessibleProps {
191
191
  /** Display a tooltip next to the label */
192
192
  tooltip?: TooltipProps;
193
193
  }
194
- declare const Checkbox: FC<CheckboxProps>;
195
-
194
+ declare const Checkbox: FC<CheckboxProps>;
195
+
196
196
  interface OptionProps$3 {
197
197
  label?: string;
198
198
  value: string | number;
@@ -205,8 +205,8 @@ interface ChecklistProps extends AccessibleProps {
205
205
  selected: (string | number)[];
206
206
  showSelectAll?: boolean;
207
207
  }
208
- declare const Checklist: FC<ChecklistProps>;
209
-
208
+ declare const Checklist: FC<ChecklistProps>;
209
+
210
210
  interface CopyProps extends AccessibleProps {
211
211
  /** Set the text to be displayed */
212
212
  children: string | React.ReactNode;
@@ -220,8 +220,8 @@ interface CopyProps extends AccessibleProps {
220
220
  /** Set the color of the copy based on the design system color pallette */
221
221
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'GRAY' | 'MEDIUM_GRAY' | 'LIGHT_GRAY';
222
222
  }
223
- declare const Copy: FC<CopyProps>;
224
-
223
+ declare const Copy: FC<CopyProps>;
224
+
225
225
  interface styleProps$3 {
226
226
  width?: number | string;
227
227
  }
@@ -234,8 +234,8 @@ interface DateProps extends AccessibleProps {
234
234
  onChange?: (e: any) => void;
235
235
  style?: styleProps$3;
236
236
  }
237
- declare const DatePicker: FC<DateProps>;
238
-
237
+ declare const DatePicker: FC<DateProps>;
238
+
239
239
  interface ButtonProps$1 extends AccessibleProps {
240
240
  disabled?: boolean;
241
241
  children: string;
@@ -264,8 +264,8 @@ interface DrawerProps extends AccessibleProps {
264
264
  /** It is used to close drawer. */
265
265
  onClose: (e?: any) => void;
266
266
  }
267
- declare const Drawer: FC<DrawerProps>;
268
-
267
+ declare const Drawer: FC<DrawerProps>;
268
+
269
269
  interface ActionProps {
270
270
  id?: string;
271
271
  label: string;
@@ -288,16 +288,16 @@ interface FieldProps extends AccessibleProps {
288
288
  /** Display a tooltip next to the label */
289
289
  tooltip?: TooltipProps;
290
290
  }
291
- declare const Field: FC<FieldProps>;
292
-
291
+ declare const Field: FC<FieldProps>;
292
+
293
293
  interface FieldGroupProps {
294
294
  /** The label to display above the field group */
295
295
  label: string;
296
296
  /** The content of the field group...usually a set of Field components */
297
297
  children: any;
298
298
  }
299
- declare const FieldGroup: FC<FieldGroupProps>;
300
-
299
+ declare const FieldGroup: FC<FieldGroupProps>;
300
+
301
301
  interface FileUploadProps {
302
302
  /** A method to call when files are added/removed. Return the new file or array of files. */
303
303
  onChange?: (files: Array<File>) => void;
@@ -320,8 +320,8 @@ interface ErrorObject {
320
320
  file: File;
321
321
  message: string;
322
322
  }
323
- declare const FileUpload: FC<FileUploadProps>;
324
-
323
+ declare const FileUpload: FC<FileUploadProps>;
324
+
325
325
  interface HeadingProps extends AccessibleProps {
326
326
  /** Toggle between bold and normal font weights */
327
327
  bold?: boolean;
@@ -334,8 +334,8 @@ interface HeadingProps extends AccessibleProps {
334
334
  /** Set the type of heading to display: primary, secondary, tertiary */
335
335
  type?: 'primary' | 'secondary' | 'tertiary';
336
336
  }
337
- declare const Heading: FC<HeadingProps>;
338
-
337
+ declare const Heading: FC<HeadingProps>;
338
+
339
339
  interface styleProps$2 {
340
340
  width?: number | string;
341
341
  }
@@ -363,8 +363,8 @@ interface InputProps extends AccessibleProps {
363
363
  suggestedValues?: string[];
364
364
  showErrorTextColor?: boolean;
365
365
  }
366
- declare const Input: FC<InputProps>;
367
-
366
+ declare const Input: FC<InputProps>;
367
+
368
368
  interface LinkProps extends AccessibleProps {
369
369
  /** Set the text to be displayed */
370
370
  children: string;
@@ -373,16 +373,16 @@ interface LinkProps extends AccessibleProps {
373
373
  /** A method to execute when this component is clicked */
374
374
  onClick?: (e?: any) => void;
375
375
  }
376
- declare const Link: FC<LinkProps>;
377
-
378
- declare const Loader: FC;
379
-
376
+ declare const Link: FC<LinkProps>;
377
+
378
+ declare const Loader: FC;
379
+
380
380
  interface LogoProps extends AccessibleProps {
381
381
  type?: 'mark_red' | 'mark_white' | 'standard_white' | 'standard_black' | 'standard_full' | 'standard_reversed';
382
382
  height?: string;
383
383
  }
384
- declare const Logo: FC<LogoProps>;
385
-
384
+ declare const Logo: FC<LogoProps>;
385
+
386
386
  interface StepProps {
387
387
  label: string;
388
388
  complete?: boolean;
@@ -393,8 +393,8 @@ interface ProgressBarProps {
393
393
  steps: StepProps[];
394
394
  showStepLine?: boolean;
395
395
  }
396
- declare const ProgressBar: FC<ProgressBarProps>;
397
-
396
+ declare const ProgressBar: FC<ProgressBarProps>;
397
+
398
398
  interface ButtonProps {
399
399
  disabled?: boolean;
400
400
  children: string;
@@ -426,8 +426,8 @@ interface ModalProps extends AccessibleProps {
426
426
  /** Display steps at the top of the modal */
427
427
  steps?: StepProps[];
428
428
  }
429
- declare const Modal: FC<ModalProps>;
430
-
429
+ declare const Modal: FC<ModalProps>;
430
+
431
431
  interface OptionProps$2 {
432
432
  label?: string;
433
433
  value: string | number;
@@ -447,8 +447,8 @@ interface MultiSelectProps extends AccessibleProps {
447
447
  style?: styleProps$1;
448
448
  searchable?: boolean;
449
449
  }
450
- declare const MultiSelect: FC<MultiSelectProps>;
451
-
450
+ declare const MultiSelect: FC<MultiSelectProps>;
451
+
452
452
  interface TagProps extends AccessibleProps {
453
453
  /** It is used to select tag-type either default or removable. */
454
454
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
@@ -459,8 +459,8 @@ interface TagProps extends AccessibleProps {
459
459
  /** It is callback function called when user wants to close the tag. */
460
460
  removable?: boolean;
461
461
  }
462
- declare const Tag: FC<TagProps>;
463
-
462
+ declare const Tag: FC<TagProps>;
463
+
464
464
  interface PageHeaderProps {
465
465
  title?: string;
466
466
  breadcrumbs?: Array<{
@@ -487,15 +487,15 @@ interface PageHeaderProps {
487
487
  };
488
488
  tag?: TagProps;
489
489
  }
490
- declare const PageHeader: FC<PageHeaderProps>;
491
-
490
+ declare const PageHeader: FC<PageHeaderProps>;
491
+
492
492
  interface PaginationProps extends AccessibleProps {
493
493
  currentPage: number;
494
494
  onClick: (e?: any) => void;
495
495
  pageCount: number;
496
496
  }
497
- declare const Pagination: FC<PaginationProps>;
498
-
497
+ declare const Pagination: FC<PaginationProps>;
498
+
499
499
  interface RadioProps extends AccessibleProps {
500
500
  /** It is used to give label to radio. */
501
501
  children: string | number;
@@ -512,8 +512,8 @@ interface RadioProps extends AccessibleProps {
512
512
  /** Display a tooltip next to the label */
513
513
  tooltip?: TooltipProps;
514
514
  }
515
- declare const Radio: FC<RadioProps>;
516
-
515
+ declare const Radio: FC<RadioProps>;
516
+
517
517
  interface OptionProps$1 {
518
518
  label?: string;
519
519
  value: string | number;
@@ -524,8 +524,8 @@ interface RadioListProps extends AccessibleProps {
524
524
  options: OptionProps$1[];
525
525
  value: string;
526
526
  }
527
- declare const RadioList: FC<RadioListProps>;
528
-
527
+ declare const RadioList: FC<RadioListProps>;
528
+
529
529
  interface OptionProps {
530
530
  label?: string;
531
531
  value: string | number;
@@ -550,10 +550,11 @@ interface SelectProps extends AccessibleProps {
550
550
  value?: string;
551
551
  style?: styleProps;
552
552
  onChange?: (e: any) => void;
553
+ onFocus?: (e: any) => void;
553
554
  onSearch?: (searchTerm: string) => void;
554
555
  }
555
- declare const Select: FC<SelectProps>;
556
-
556
+ declare const Select: FC<SelectProps>;
557
+
557
558
  interface RowObject {
558
559
  [key: string]: any;
559
560
  }
@@ -576,8 +577,8 @@ interface TableProps extends AccessibleProps {
576
577
  onSortChange?: (e?: any) => void;
577
578
  tableLayout?: string;
578
579
  }
579
- declare const Table: FC<TableProps>;
580
-
580
+ declare const Table: FC<TableProps>;
581
+
581
582
  interface TabProps extends AccessibleProps {
582
583
  badgeCount?: number;
583
584
  errorBadge?: boolean;
@@ -588,16 +589,16 @@ interface TabProps extends AccessibleProps {
588
589
  interface TabsProps extends AccessibleProps {
589
590
  tabs: TabProps[];
590
591
  }
591
- declare const Tabs: FC<TabsProps>;
592
-
592
+ declare const Tabs: FC<TabsProps>;
593
+
593
594
  interface ToggleProps extends AccessibleProps {
594
595
  /** It is used to check whether Toggle is checked or not */
595
596
  on: boolean;
596
597
  /** Pass a callback then fires when user change value */
597
598
  onClick: (e?: any) => void;
598
599
  }
599
- declare const Toggle: FC<ToggleProps>;
600
-
600
+ declare const Toggle: FC<ToggleProps>;
601
+
601
602
  interface ZeroStateProps extends AccessibleProps {
602
603
  /** The SVG path of the icon to show */
603
604
  icon: string;
@@ -614,8 +615,8 @@ interface ZeroStateProps extends AccessibleProps {
614
615
  disabled?: boolean;
615
616
  };
616
617
  }
617
- declare const ZeroState: FC<ZeroStateProps>;
618
-
618
+ declare const ZeroState: FC<ZeroStateProps>;
619
+
619
620
  declare const getAgesFromDob: (dob: string) => {
620
621
  calculated_nearest_age: number | null;
621
622
  calculated_current_age: number | null;
@@ -629,8 +630,8 @@ declare const getYears: () => {
629
630
  declare const validateEmail: (email: string) => boolean;
630
631
  declare const validatePhone: (phone: string) => boolean;
631
632
  declare const formatAsPhone: (number: string) => string;
632
- declare const formatAsSsn: (number: string) => string;
633
-
633
+ declare const formatAsSsn: (number: string) => string;
634
+
634
635
  declare const Colors: {
635
636
  PRIMARY: {
636
637
  Hex: string;
@@ -682,6 +683,6 @@ declare const EditableTheme: {
682
683
  Hex: string;
683
684
  Rgb: string;
684
685
  };
685
- };
686
-
687
- 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 };
686
+ };
687
+
688
+ 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.26",
3
+ "version": "1.13.28",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",