@hexure/ui 1.14.2 → 1.14.4

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.
@@ -5,6 +5,7 @@ interface ActionProps {
5
5
  dataItemid?: string;
6
6
  label: string;
7
7
  onClick: (e?: any) => void;
8
+ title?: string;
8
9
  }
9
10
  export interface FieldProps extends AccessibleProps {
10
11
  action?: ActionProps;
@@ -12,6 +12,7 @@ interface ColumnProps {
12
12
  sortBy?: (row: RowObject) => void;
13
13
  width?: string | number;
14
14
  align?: 'center' | 'right';
15
+ title?: string;
15
16
  }
16
17
  export interface TableProps extends AccessibleProps {
17
18
  columns: ColumnProps[];
@@ -6,6 +6,7 @@ interface TabProps extends AccessibleProps {
6
6
  label: string;
7
7
  onClick?: (e?: any) => void;
8
8
  isActive?: boolean;
9
+ title?: string;
9
10
  }
10
11
  export interface TabsProps extends AccessibleProps {
11
12
  tabs: TabProps[];
@@ -14,6 +14,7 @@ export interface ZeroStateProps extends AccessibleProps {
14
14
  onClick: (e?: any) => void;
15
15
  format?: 'primary' | 'secondary' | 'red' | 'green' | string;
16
16
  disabled?: boolean;
17
+ title?: string;
17
18
  };
18
19
  /** Optional ID for automation purposes */
19
20
  dataItemid?: string;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import React, { FC, ReactNode } from 'react';
2
- import { CSSProperties } from 'styled-components';
3
-
1
+ import React, { FC, ReactNode } from 'react';
2
+ import { CSSProperties } from 'styled-components';
3
+
4
4
  interface AccessibleProps {
5
5
  /** Set the css data-itemid for the main wrapping html element */
6
6
  id?: string;
@@ -15,8 +15,8 @@ interface AccessibleProps {
15
15
  tabIndex?: number;
16
16
  /** Set a label for an interactive element. See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label */
17
17
  'aria-label'?: string;
18
- }
19
-
18
+ }
19
+
20
20
  interface AccordionProps extends AccessibleProps {
21
21
  dataItemid?: string;
22
22
  title?: string;
@@ -27,8 +27,8 @@ interface AccordionProps extends AccessibleProps {
27
27
  /** Method to call when the header is clicked */
28
28
  onClick: (e?: any) => void;
29
29
  }
30
- declare const Accordion: FC<AccordionProps>;
31
-
30
+ declare const Accordion: FC<AccordionProps>;
31
+
32
32
  interface ButtonProps$4 {
33
33
  children: string;
34
34
  format?: string;
@@ -57,8 +57,8 @@ interface ActionDialogProps extends AccessibleProps {
57
57
  interface CustomStyle {
58
58
  [key: string]: string | number;
59
59
  }
60
- declare const ActionDialog: FC<ActionDialogProps>;
61
-
60
+ declare const ActionDialog: FC<ActionDialogProps>;
61
+
62
62
  interface ActionProps$1 extends AccessibleProps {
63
63
  label: string;
64
64
  onClick: (e?: any) => void;
@@ -76,8 +76,8 @@ interface AlertProps extends AccessibleProps {
76
76
  /** Optional ID for automation purposes */
77
77
  dataItemid?: string;
78
78
  }
79
- declare const Alert: FC<AlertProps>;
80
-
79
+ declare const Alert: FC<AlertProps>;
80
+
81
81
  interface TooltipProps {
82
82
  /** It is used to give label to tag. */
83
83
  children: any;
@@ -96,8 +96,8 @@ interface TooltipProps {
96
96
  */
97
97
  auto?: boolean;
98
98
  }
99
- declare const Tooltip: FC<TooltipProps>;
100
-
99
+ declare const Tooltip: FC<TooltipProps>;
100
+
101
101
  interface ButtonProps$3 extends AccessibleProps {
102
102
  /** Display a number badge on the right side of the button */
103
103
  badge?: number;
@@ -131,16 +131,16 @@ interface ButtonProps$3 extends AccessibleProps {
131
131
  /** Optional section name for automation purposes */
132
132
  dataSectionName?: string;
133
133
  }
134
- declare const Button: FC<ButtonProps$3>;
135
-
134
+ declare const Button: FC<ButtonProps$3>;
135
+
136
136
  interface AppHeaderProps {
137
137
  logoUrl?: string;
138
138
  buttons: ButtonProps$3[];
139
139
  /** Optional ID for automation purposes */
140
140
  dataItemid?: string;
141
141
  }
142
- declare const AppHeader: FC<AppHeaderProps>;
143
-
142
+ declare const AppHeader: FC<AppHeaderProps>;
143
+
144
144
  interface MenuItemType extends AccessibleProps {
145
145
  icon: string;
146
146
  label: string;
@@ -164,8 +164,8 @@ interface AppMenuProps extends AccessibleProps {
164
164
  dataSectionName?: string;
165
165
  onChange?: (isCollapsed: boolean) => void;
166
166
  }
167
- declare const AppMenu: FC<AppMenuProps>;
168
-
167
+ declare const AppMenu: FC<AppMenuProps>;
168
+
169
169
  interface ButtonProps$2 {
170
170
  children: string;
171
171
  onClick: (e?: any) => void;
@@ -181,8 +181,8 @@ interface BulkActionBarProps extends AccessibleProps {
181
181
  /** Optional ID for automation purposes */
182
182
  dataItemid?: string;
183
183
  }
184
- declare const BulkActionBar: FC<BulkActionBarProps>;
185
-
184
+ declare const BulkActionBar: FC<BulkActionBarProps>;
185
+
186
186
  interface MenuItemProps extends AccessibleProps {
187
187
  icon?: string;
188
188
  label?: string;
@@ -196,8 +196,8 @@ interface MoreMenuProps extends AccessibleProps {
196
196
  /** Optional ID for automation purposes */
197
197
  dataItemid?: string;
198
198
  }
199
- declare const MoreMenu: FC<MoreMenuProps>;
200
-
199
+ declare const MoreMenu: FC<MoreMenuProps>;
200
+
201
201
  interface ButtonMenuProps {
202
202
  disabled?: boolean;
203
203
  label: string;
@@ -214,8 +214,8 @@ interface ButtonMenuProps {
214
214
  dataItemid?: string;
215
215
  dataSectionName?: string;
216
216
  }
217
- declare const ButtonMenu: FC<ButtonMenuProps>;
218
-
217
+ declare const ButtonMenu: FC<ButtonMenuProps>;
218
+
219
219
  interface CheckboxProps extends AccessibleProps {
220
220
  /** It is used to give label to checkbox. */
221
221
  children?: string;
@@ -237,8 +237,8 @@ interface CheckboxProps extends AccessibleProps {
237
237
  dataSectionName?: string;
238
238
  isLabelBold?: boolean;
239
239
  }
240
- declare const Checkbox: FC<CheckboxProps>;
241
-
240
+ declare const Checkbox: FC<CheckboxProps>;
241
+
242
242
  interface OptionProps$3 {
243
243
  label?: string;
244
244
  value: string | number;
@@ -253,8 +253,8 @@ interface ChecklistProps extends AccessibleProps {
253
253
  /** Optional ID for automation purposes */
254
254
  dataItemid?: string;
255
255
  }
256
- declare const Checklist: FC<ChecklistProps>;
257
-
256
+ declare const Checklist: FC<ChecklistProps>;
257
+
258
258
  interface CopyProps extends AccessibleProps {
259
259
  /** Set the text to be displayed */
260
260
  children: string | React.ReactNode;
@@ -270,8 +270,8 @@ interface CopyProps extends AccessibleProps {
270
270
  /** Optional ID for automation purposes */
271
271
  dataItemid?: string;
272
272
  }
273
- declare const Copy: FC<CopyProps>;
274
-
273
+ declare const Copy: FC<CopyProps>;
274
+
275
275
  interface styleProps$1 {
276
276
  width?: number | string;
277
277
  }
@@ -292,8 +292,8 @@ interface DateProps extends AccessibleProps {
292
292
  dataItemid?: string;
293
293
  locale?: localeProps;
294
294
  }
295
- declare const DatePicker: FC<DateProps>;
296
-
295
+ declare const DatePicker: FC<DateProps>;
296
+
297
297
  interface ButtonProps$1 extends AccessibleProps {
298
298
  disabled?: boolean;
299
299
  children: string;
@@ -328,12 +328,13 @@ interface DrawerProps extends AccessibleProps {
328
328
  dataItemid?: string;
329
329
  bottomNotes?: string | ReactNode;
330
330
  }
331
- declare const Drawer: FC<DrawerProps>;
332
-
331
+ declare const Drawer: FC<DrawerProps>;
332
+
333
333
  interface ActionProps {
334
334
  dataItemid?: string;
335
335
  label: string;
336
336
  onClick: (e?: any) => void;
337
+ title?: string;
337
338
  }
338
339
  interface FieldProps extends AccessibleProps {
339
340
  action?: ActionProps;
@@ -356,8 +357,8 @@ interface FieldProps extends AccessibleProps {
356
357
  /** Optional for black message with icon */
357
358
  isNewMessageType?: boolean;
358
359
  }
359
- declare const Field: FC<FieldProps>;
360
-
360
+ declare const Field: FC<FieldProps>;
361
+
361
362
  interface FieldGroupProps {
362
363
  /** The label to display above the field group */
363
364
  label: string;
@@ -366,8 +367,8 @@ interface FieldGroupProps {
366
367
  /** Optional ID for automation purposes */
367
368
  dataItemid?: string;
368
369
  }
369
- declare const FieldGroup: FC<FieldGroupProps>;
370
-
370
+ declare const FieldGroup: FC<FieldGroupProps>;
371
+
371
372
  interface FileUploadProps {
372
373
  /** A method to call when files are added/removed. Return the new file or array of files. */
373
374
  onChange?: (files: Array<File>) => void;
@@ -393,8 +394,8 @@ interface ErrorObject {
393
394
  file: File;
394
395
  message: string;
395
396
  }
396
- declare const FileUpload: FC<FileUploadProps>;
397
-
397
+ declare const FileUpload: FC<FileUploadProps>;
398
+
398
399
  interface HeadingProps extends AccessibleProps {
399
400
  /** Toggle between bold and normal font weights */
400
401
  bold?: boolean;
@@ -411,8 +412,8 @@ interface HeadingProps extends AccessibleProps {
411
412
  /** Optional style for the header title */
412
413
  style?: CSSProperties;
413
414
  }
414
- declare const Heading: FC<HeadingProps>;
415
-
415
+ declare const Heading: FC<HeadingProps>;
416
+
416
417
  interface InputProps extends AccessibleProps {
417
418
  format?: 'phone' | 'currency' | 'currency_decimal' | 'ssn';
418
419
  height?: string;
@@ -447,8 +448,8 @@ interface InputProps extends AccessibleProps {
447
448
  isInvalidRedBackground?: boolean;
448
449
  isWarningError?: boolean;
449
450
  }
450
- declare const Input: FC<InputProps>;
451
-
451
+ declare const Input: FC<InputProps>;
452
+
452
453
  interface LinkProps extends AccessibleProps {
453
454
  /** Set the text to be displayed */
454
455
  children: string;
@@ -459,22 +460,22 @@ interface LinkProps extends AccessibleProps {
459
460
  /** Optional ID for automation purposes */
460
461
  dataItemid?: string;
461
462
  }
462
- declare const Link: FC<LinkProps>;
463
-
463
+ declare const Link: FC<LinkProps>;
464
+
464
465
  interface LoaderProps {
465
466
  /** Optional ID for automation purposes */
466
467
  dataItemid?: string;
467
468
  }
468
- declare const Loader: FC<LoaderProps>;
469
-
469
+ declare const Loader: FC<LoaderProps>;
470
+
470
471
  interface LogoProps extends AccessibleProps {
471
472
  type?: 'mark_red' | 'mark_white' | 'standard_white' | 'standard_black' | 'standard_full' | 'standard_reversed';
472
473
  height?: string;
473
474
  /** Optional ID for automation purposes */
474
475
  dataItemid?: string;
475
476
  }
476
- declare const Logo: FC<LogoProps>;
477
-
477
+ declare const Logo: FC<LogoProps>;
478
+
478
479
  interface StepProps {
479
480
  label: string | ReactNode;
480
481
  complete?: boolean;
@@ -491,8 +492,8 @@ interface ProgressBarProps {
491
492
  /** Optional ID for automation purposes */
492
493
  dataItemid?: string;
493
494
  }
494
- declare const ProgressBar: FC<ProgressBarProps>;
495
-
495
+ declare const ProgressBar: FC<ProgressBarProps>;
496
+
496
497
  interface ButtonProps {
497
498
  disabled?: boolean;
498
499
  children: string;
@@ -533,8 +534,8 @@ interface ModalProps extends AccessibleProps {
533
534
  /** Optional style for the header title */
534
535
  headerTitleStyle?: CSSProperties;
535
536
  }
536
- declare const Modal: FC<ModalProps>;
537
-
537
+ declare const Modal: FC<ModalProps>;
538
+
538
539
  interface OptionProps$2 {
539
540
  label?: string;
540
541
  value: string | number;
@@ -556,8 +557,8 @@ interface MultiSelectProps extends AccessibleProps {
556
557
  /** Optional ID for automation purposes */
557
558
  dataItemid?: string;
558
559
  }
559
- declare const MultiSelect: FC<MultiSelectProps>;
560
-
560
+ declare const MultiSelect: FC<MultiSelectProps>;
561
+
561
562
  interface TagProps extends AccessibleProps {
562
563
  /** It is used to select tag-type either default or removable. */
563
564
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
@@ -572,8 +573,8 @@ interface TagProps extends AccessibleProps {
572
573
  rotate?: boolean;
573
574
  dataSectionName?: string;
574
575
  }
575
- declare const Tag: FC<TagProps>;
576
-
576
+ declare const Tag: FC<TagProps>;
577
+
577
578
  interface PageHeaderProps {
578
579
  title?: string;
579
580
  breadcrumbs?: Array<{
@@ -605,8 +606,8 @@ interface PageHeaderProps {
605
606
  /** Optional ID for automation purposes */
606
607
  dataItemid?: string;
607
608
  }
608
- declare const PageHeader: FC<PageHeaderProps>;
609
-
609
+ declare const PageHeader: FC<PageHeaderProps>;
610
+
610
611
  interface PaginationProps extends AccessibleProps {
611
612
  currentPage: number;
612
613
  onClick: (e?: any) => void;
@@ -615,8 +616,8 @@ interface PaginationProps extends AccessibleProps {
615
616
  dataItemid?: string;
616
617
  type?: 'button' | 'submit' | 'reset' | null;
617
618
  }
618
- declare const Pagination: FC<PaginationProps>;
619
-
619
+ declare const Pagination: FC<PaginationProps>;
620
+
620
621
  interface RadioProps extends AccessibleProps {
621
622
  /** It is used to give label to radio. */
622
623
  children: string | number;
@@ -638,8 +639,8 @@ interface RadioProps extends AccessibleProps {
638
639
  isWarningError?: boolean;
639
640
  isLabelBold?: boolean;
640
641
  }
641
- declare const Radio: FC<RadioProps>;
642
-
642
+ declare const Radio: FC<RadioProps>;
643
+
643
644
  interface OptionProps$1 {
644
645
  label?: string;
645
646
  value: string | number;
@@ -652,8 +653,8 @@ interface RadioListProps extends AccessibleProps {
652
653
  /** Optional ID for automation purposes */
653
654
  dataItemid?: string;
654
655
  }
655
- declare const RadioList: FC<RadioListProps>;
656
-
656
+ declare const RadioList: FC<RadioListProps>;
657
+
657
658
  interface OptionProps {
658
659
  label?: string;
659
660
  value: string | number;
@@ -683,8 +684,8 @@ interface SelectProps extends AccessibleProps {
683
684
  isWarningError?: boolean;
684
685
  innerRef?: any;
685
686
  }
686
- declare const Select: FC<SelectProps>;
687
-
687
+ declare const Select: FC<SelectProps>;
688
+
688
689
  interface RowObject {
689
690
  [key: string]: any;
690
691
  }
@@ -697,6 +698,7 @@ interface ColumnProps {
697
698
  sortBy?: (row: RowObject) => void;
698
699
  width?: string | number;
699
700
  align?: 'center' | 'right';
701
+ title?: string;
700
702
  }
701
703
  interface TableProps extends AccessibleProps {
702
704
  columns: ColumnProps[];
@@ -710,22 +712,23 @@ interface TableProps extends AccessibleProps {
710
712
  /** Optional ID for automation purposes */
711
713
  dataItemid?: string;
712
714
  }
713
- declare const Table: FC<TableProps>;
714
-
715
+ declare const Table: FC<TableProps>;
716
+
715
717
  interface TabProps extends AccessibleProps {
716
718
  badgeCount?: number;
717
719
  errorBadge?: boolean;
718
720
  label: string;
719
721
  onClick?: (e?: any) => void;
720
722
  isActive?: boolean;
723
+ title?: string;
721
724
  }
722
725
  interface TabsProps extends AccessibleProps {
723
726
  tabs: TabProps[];
724
727
  /** Optional ID for automation purposes */
725
728
  dataItemid?: string;
726
729
  }
727
- declare const Tabs: FC<TabsProps>;
728
-
730
+ declare const Tabs: FC<TabsProps>;
731
+
729
732
  interface ToggleProps extends AccessibleProps {
730
733
  /** It is used to check whether Toggle is checked or not */
731
734
  on: boolean;
@@ -734,8 +737,8 @@ interface ToggleProps extends AccessibleProps {
734
737
  /** Optional ID for automation purposes */
735
738
  dataItemid?: string;
736
739
  }
737
- declare const Toggle: FC<ToggleProps>;
738
-
740
+ declare const Toggle: FC<ToggleProps>;
741
+
739
742
  interface ZeroStateProps extends AccessibleProps {
740
743
  /** The SVG path of the icon to show */
741
744
  icon: string;
@@ -750,12 +753,13 @@ interface ZeroStateProps extends AccessibleProps {
750
753
  onClick: (e?: any) => void;
751
754
  format?: 'primary' | 'secondary' | 'red' | 'green' | string;
752
755
  disabled?: boolean;
756
+ title?: string;
753
757
  };
754
758
  /** Optional ID for automation purposes */
755
759
  dataItemid?: string;
756
760
  }
757
- declare const ZeroState: FC<ZeroStateProps>;
758
-
761
+ declare const ZeroState: FC<ZeroStateProps>;
762
+
759
763
  declare const getAgesFromDob: (dob: string) => {
760
764
  calculated_nearest_age: number | null;
761
765
  calculated_current_age: number | null;
@@ -770,8 +774,8 @@ declare const validateEmail: (email: string) => boolean;
770
774
  declare const validatePhone: (phone: string) => boolean;
771
775
  declare const formatAsPhone: (number: string) => string;
772
776
  declare const formatAsSsn: (number: string) => string;
773
- declare const formatAsMask: (number: string, mask: string) => string;
774
-
777
+ declare const formatAsMask: (number: string, mask: string) => string;
778
+
775
779
  declare const Colors: {
776
780
  PRIMARY: {
777
781
  Hex: string;
@@ -823,6 +827,6 @@ declare const EditableTheme: {
823
827
  Hex: string;
824
828
  Rgb: string;
825
829
  };
826
- };
827
-
828
- 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, formatAsMask, formatAsPhone, formatAsSsn, getAgesFromDob, getDaysForMonth, getYears, validateEmail, validatePhone };
830
+ };
831
+
832
+ 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, formatAsMask, 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.14.2",
3
+ "version": "1.14.4",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",