@hexure/ui 1.13.72 → 1.13.74

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.
@@ -7,6 +7,8 @@ interface ButtonProps {
7
7
  onClick: (e?: any) => void;
8
8
  tabIndex?: number;
9
9
  loading?: boolean;
10
+ /** Optional ID for automation purposes */
11
+ dataItemid?: string;
10
12
  }
11
13
  export interface ActionDialogProps extends AccessibleProps {
12
14
  /** It is used to give title. */
@@ -17,7 +17,6 @@ export interface AppMenuProps extends AccessibleProps {
17
17
  isCollapsed?: boolean;
18
18
  footerTag?: string;
19
19
  defaultWidth?: string;
20
- /** Optional ID for automation purposes */
21
20
  dataItemid?: string;
22
21
  }
23
22
  declare const AppMenu: FC<AppMenuProps>;
@@ -9,10 +9,9 @@ export interface ButtonProps extends AccessibleProps {
9
9
  onClick: (e?: any) => void;
10
10
  tabIndex?: number;
11
11
  loading?: boolean;
12
- /** Tooltip Props */
13
12
  toolTip?: TooltipProps;
14
- /** Set the title of the button on hover */
15
13
  title?: string;
14
+ dataItemid?: string;
16
15
  }
17
16
  export interface DrawerProps extends AccessibleProps {
18
17
  primaryButton?: ButtonProps;
@@ -9,6 +9,7 @@ interface ButtonProps {
9
9
  onClick: (e?: any) => void;
10
10
  tabIndex?: number;
11
11
  loading?: boolean;
12
+ dataItemid?: string;
12
13
  }
13
14
  export interface ModalProps extends AccessibleProps {
14
15
  /** Defines a button to be displayed on the far right of the bottom button bar */
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;
@@ -36,6 +36,8 @@ interface ButtonProps$4 {
36
36
  onClick: (e?: any) => void;
37
37
  tabIndex?: number;
38
38
  loading?: boolean;
39
+ /** Optional ID for automation purposes */
40
+ dataItemid?: string;
39
41
  }
40
42
  interface ActionDialogProps extends AccessibleProps {
41
43
  /** It is used to give title. */
@@ -55,8 +57,8 @@ interface ActionDialogProps extends AccessibleProps {
55
57
  interface CustomStyle {
56
58
  [key: string]: string | number;
57
59
  }
58
- declare const ActionDialog: FC<ActionDialogProps>;
59
-
60
+ declare const ActionDialog: FC<ActionDialogProps>;
61
+
60
62
  interface ActionProps$1 extends AccessibleProps {
61
63
  label: string;
62
64
  onClick: (e?: any) => void;
@@ -74,8 +76,8 @@ interface AlertProps extends AccessibleProps {
74
76
  /** Optional ID for automation purposes */
75
77
  dataItemid?: string;
76
78
  }
77
- declare const Alert: FC<AlertProps>;
78
-
79
+ declare const Alert: FC<AlertProps>;
80
+
79
81
  interface TooltipProps {
80
82
  /** It is used to give label to tag. */
81
83
  children: any;
@@ -94,8 +96,8 @@ interface TooltipProps {
94
96
  */
95
97
  auto?: boolean;
96
98
  }
97
- declare const Tooltip: FC<TooltipProps>;
98
-
99
+ declare const Tooltip: FC<TooltipProps>;
100
+
99
101
  interface ButtonProps$3 extends AccessibleProps {
100
102
  /** Display a number badge on the right side of the button */
101
103
  badge?: number;
@@ -127,16 +129,16 @@ interface ButtonProps$3 extends AccessibleProps {
127
129
  /** Optional type for the button */
128
130
  type?: 'button' | 'submit' | 'reset' | null;
129
131
  }
130
- declare const Button: FC<ButtonProps$3>;
131
-
132
+ declare const Button: FC<ButtonProps$3>;
133
+
132
134
  interface AppHeaderProps {
133
135
  logoUrl?: string;
134
136
  buttons: ButtonProps$3[];
135
137
  /** Optional ID for automation purposes */
136
138
  dataItemid?: string;
137
139
  }
138
- declare const AppHeader: FC<AppHeaderProps>;
139
-
140
+ declare const AppHeader: FC<AppHeaderProps>;
141
+
140
142
  interface MenuItemType extends AccessibleProps {
141
143
  icon: string;
142
144
  label: string;
@@ -154,11 +156,10 @@ interface AppMenuProps extends AccessibleProps {
154
156
  isCollapsed?: boolean;
155
157
  footerTag?: string;
156
158
  defaultWidth?: string;
157
- /** Optional ID for automation purposes */
158
159
  dataItemid?: string;
159
160
  }
160
- declare const AppMenu: FC<AppMenuProps>;
161
-
161
+ declare const AppMenu: FC<AppMenuProps>;
162
+
162
163
  interface ButtonProps$2 {
163
164
  children: string;
164
165
  onClick: (e?: any) => void;
@@ -174,8 +175,8 @@ interface BulkActionBarProps extends AccessibleProps {
174
175
  /** Optional ID for automation purposes */
175
176
  dataItemid?: string;
176
177
  }
177
- declare const BulkActionBar: FC<BulkActionBarProps>;
178
-
178
+ declare const BulkActionBar: FC<BulkActionBarProps>;
179
+
179
180
  interface MenuItemProps extends AccessibleProps {
180
181
  icon?: string;
181
182
  label?: string;
@@ -188,8 +189,8 @@ interface MoreMenuProps extends AccessibleProps {
188
189
  /** Optional ID for automation purposes */
189
190
  dataItemid?: string;
190
191
  }
191
- declare const MoreMenu: FC<MoreMenuProps>;
192
-
192
+ declare const MoreMenu: FC<MoreMenuProps>;
193
+
193
194
  interface ButtonMenuProps {
194
195
  disabled?: boolean;
195
196
  label: string;
@@ -205,8 +206,8 @@ interface ButtonMenuProps {
205
206
  /** Optional ID for automation purposes */
206
207
  dataItemid?: string;
207
208
  }
208
- declare const ButtonMenu: FC<ButtonMenuProps>;
209
-
209
+ declare const ButtonMenu: FC<ButtonMenuProps>;
210
+
210
211
  interface CheckboxProps extends AccessibleProps {
211
212
  /** It is used to give label to checkbox. */
212
213
  children?: string;
@@ -226,8 +227,8 @@ interface CheckboxProps extends AccessibleProps {
226
227
  isInvalidRedBackground?: boolean;
227
228
  isWarningError?: boolean;
228
229
  }
229
- declare const Checkbox: FC<CheckboxProps>;
230
-
230
+ declare const Checkbox: FC<CheckboxProps>;
231
+
231
232
  interface OptionProps$3 {
232
233
  label?: string;
233
234
  value: string | number;
@@ -242,8 +243,8 @@ interface ChecklistProps extends AccessibleProps {
242
243
  /** Optional ID for automation purposes */
243
244
  dataItemid?: string;
244
245
  }
245
- declare const Checklist: FC<ChecklistProps>;
246
-
246
+ declare const Checklist: FC<ChecklistProps>;
247
+
247
248
  interface CopyProps extends AccessibleProps {
248
249
  /** Set the text to be displayed */
249
250
  children: string | React.ReactNode;
@@ -259,8 +260,8 @@ interface CopyProps extends AccessibleProps {
259
260
  /** Optional ID for automation purposes */
260
261
  dataItemid?: string;
261
262
  }
262
- declare const Copy: FC<CopyProps>;
263
-
263
+ declare const Copy: FC<CopyProps>;
264
+
264
265
  interface styleProps$2 {
265
266
  width?: number | string;
266
267
  }
@@ -281,8 +282,8 @@ interface DateProps extends AccessibleProps {
281
282
  dataItemid?: string;
282
283
  locale?: localeProps;
283
284
  }
284
- declare const DatePicker: FC<DateProps>;
285
-
285
+ declare const DatePicker: FC<DateProps>;
286
+
286
287
  interface ButtonProps$1 extends AccessibleProps {
287
288
  disabled?: boolean;
288
289
  children: string;
@@ -291,10 +292,9 @@ interface ButtonProps$1 extends AccessibleProps {
291
292
  onClick: (e?: any) => void;
292
293
  tabIndex?: number;
293
294
  loading?: boolean;
294
- /** Tooltip Props */
295
295
  toolTip?: TooltipProps;
296
- /** Set the title of the button on hover */
297
296
  title?: string;
297
+ dataItemid?: string;
298
298
  }
299
299
  interface DrawerProps extends AccessibleProps {
300
300
  primaryButton?: ButtonProps$1;
@@ -318,8 +318,8 @@ interface DrawerProps extends AccessibleProps {
318
318
  dataItemid?: string;
319
319
  bottomNotes?: string | ReactNode;
320
320
  }
321
- declare const Drawer: FC<DrawerProps>;
322
-
321
+ declare const Drawer: FC<DrawerProps>;
322
+
323
323
  interface ActionProps {
324
324
  dataItemid?: string;
325
325
  label: string;
@@ -346,8 +346,8 @@ interface FieldProps extends AccessibleProps {
346
346
  /** Optional for black message with icon */
347
347
  isNewMessageType?: boolean;
348
348
  }
349
- declare const Field: FC<FieldProps>;
350
-
349
+ declare const Field: FC<FieldProps>;
350
+
351
351
  interface FieldGroupProps {
352
352
  /** The label to display above the field group */
353
353
  label: string;
@@ -356,8 +356,8 @@ interface FieldGroupProps {
356
356
  /** Optional ID for automation purposes */
357
357
  dataItemid?: string;
358
358
  }
359
- declare const FieldGroup: FC<FieldGroupProps>;
360
-
359
+ declare const FieldGroup: FC<FieldGroupProps>;
360
+
361
361
  interface FileUploadProps {
362
362
  /** A method to call when files are added/removed. Return the new file or array of files. */
363
363
  onChange?: (files: Array<File>) => void;
@@ -383,8 +383,8 @@ interface ErrorObject {
383
383
  file: File;
384
384
  message: string;
385
385
  }
386
- declare const FileUpload: FC<FileUploadProps>;
387
-
386
+ declare const FileUpload: FC<FileUploadProps>;
387
+
388
388
  interface HeadingProps extends AccessibleProps {
389
389
  /** Toggle between bold and normal font weights */
390
390
  bold?: boolean;
@@ -399,8 +399,8 @@ interface HeadingProps extends AccessibleProps {
399
399
  /** Optional ID for automation purposes */
400
400
  dataItemid?: string;
401
401
  }
402
- declare const Heading: FC<HeadingProps>;
403
-
402
+ declare const Heading: FC<HeadingProps>;
403
+
404
404
  interface InputProps extends AccessibleProps {
405
405
  format?: 'phone' | 'currency' | 'currency_decimal' | 'ssn';
406
406
  height?: string;
@@ -435,8 +435,8 @@ interface InputProps extends AccessibleProps {
435
435
  isInvalidRedBackground?: boolean;
436
436
  isWarningError?: boolean;
437
437
  }
438
- declare const Input: FC<InputProps>;
439
-
438
+ declare const Input: FC<InputProps>;
439
+
440
440
  interface LinkProps extends AccessibleProps {
441
441
  /** Set the text to be displayed */
442
442
  children: string;
@@ -447,22 +447,22 @@ interface LinkProps extends AccessibleProps {
447
447
  /** Optional ID for automation purposes */
448
448
  dataItemid?: string;
449
449
  }
450
- declare const Link: FC<LinkProps>;
451
-
450
+ declare const Link: FC<LinkProps>;
451
+
452
452
  interface LoaderProps {
453
453
  /** Optional ID for automation purposes */
454
454
  dataItemid?: string;
455
455
  }
456
- declare const Loader: FC<LoaderProps>;
457
-
456
+ declare const Loader: FC<LoaderProps>;
457
+
458
458
  interface LogoProps extends AccessibleProps {
459
459
  type?: 'mark_red' | 'mark_white' | 'standard_white' | 'standard_black' | 'standard_full' | 'standard_reversed';
460
460
  height?: string;
461
461
  /** Optional ID for automation purposes */
462
462
  dataItemid?: string;
463
463
  }
464
- declare const Logo: FC<LogoProps>;
465
-
464
+ declare const Logo: FC<LogoProps>;
465
+
466
466
  interface StepProps {
467
467
  label: string | ReactNode;
468
468
  complete?: boolean;
@@ -479,8 +479,8 @@ interface ProgressBarProps {
479
479
  /** Optional ID for automation purposes */
480
480
  dataItemid?: string;
481
481
  }
482
- declare const ProgressBar: FC<ProgressBarProps>;
483
-
482
+ declare const ProgressBar: FC<ProgressBarProps>;
483
+
484
484
  interface ButtonProps {
485
485
  disabled?: boolean;
486
486
  children: string;
@@ -489,6 +489,7 @@ interface ButtonProps {
489
489
  onClick: (e?: any) => void;
490
490
  tabIndex?: number;
491
491
  loading?: boolean;
492
+ dataItemid?: string;
492
493
  }
493
494
  interface ModalProps extends AccessibleProps {
494
495
  /** Defines a button to be displayed on the far right of the bottom button bar */
@@ -514,8 +515,8 @@ interface ModalProps extends AccessibleProps {
514
515
  /** Optional ID for automation purposes */
515
516
  dataItemid?: string;
516
517
  }
517
- declare const Modal: FC<ModalProps>;
518
-
518
+ declare const Modal: FC<ModalProps>;
519
+
519
520
  interface OptionProps$2 {
520
521
  label?: string;
521
522
  value: string | number;
@@ -537,8 +538,8 @@ interface MultiSelectProps extends AccessibleProps {
537
538
  /** Optional ID for automation purposes */
538
539
  dataItemid?: string;
539
540
  }
540
- declare const MultiSelect: FC<MultiSelectProps>;
541
-
541
+ declare const MultiSelect: FC<MultiSelectProps>;
542
+
542
543
  interface TagProps extends AccessibleProps {
543
544
  /** It is used to select tag-type either default or removable. */
544
545
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
@@ -552,8 +553,8 @@ interface TagProps extends AccessibleProps {
552
553
  dataItemid?: string;
553
554
  rotate?: boolean;
554
555
  }
555
- declare const Tag: FC<TagProps>;
556
-
556
+ declare const Tag: FC<TagProps>;
557
+
557
558
  interface PageHeaderProps {
558
559
  title?: string;
559
560
  breadcrumbs?: Array<{
@@ -585,8 +586,8 @@ interface PageHeaderProps {
585
586
  /** Optional ID for automation purposes */
586
587
  dataItemid?: string;
587
588
  }
588
- declare const PageHeader: FC<PageHeaderProps>;
589
-
589
+ declare const PageHeader: FC<PageHeaderProps>;
590
+
590
591
  interface PaginationProps extends AccessibleProps {
591
592
  currentPage: number;
592
593
  onClick: (e?: any) => void;
@@ -595,8 +596,8 @@ interface PaginationProps extends AccessibleProps {
595
596
  dataItemid?: string;
596
597
  type?: 'button' | 'submit' | 'reset' | null;
597
598
  }
598
- declare const Pagination: FC<PaginationProps>;
599
-
599
+ declare const Pagination: FC<PaginationProps>;
600
+
600
601
  interface RadioProps extends AccessibleProps {
601
602
  /** It is used to give label to radio. */
602
603
  children: string | number;
@@ -617,8 +618,8 @@ interface RadioProps extends AccessibleProps {
617
618
  isInvalidRedBackground?: boolean;
618
619
  isWarningError?: boolean;
619
620
  }
620
- declare const Radio: FC<RadioProps>;
621
-
621
+ declare const Radio: FC<RadioProps>;
622
+
622
623
  interface OptionProps$1 {
623
624
  label?: string;
624
625
  value: string | number;
@@ -631,8 +632,8 @@ interface RadioListProps extends AccessibleProps {
631
632
  /** Optional ID for automation purposes */
632
633
  dataItemid?: string;
633
634
  }
634
- declare const RadioList: FC<RadioListProps>;
635
-
635
+ declare const RadioList: FC<RadioListProps>;
636
+
636
637
  interface OptionProps {
637
638
  label?: string;
638
639
  value: string | number;
@@ -665,8 +666,8 @@ interface SelectProps extends AccessibleProps {
665
666
  isInvalidRedBackground?: boolean;
666
667
  isWarningError?: boolean;
667
668
  }
668
- declare const Select: FC<SelectProps>;
669
-
669
+ declare const Select: FC<SelectProps>;
670
+
670
671
  interface RowObject {
671
672
  [key: string]: any;
672
673
  }
@@ -692,8 +693,8 @@ interface TableProps extends AccessibleProps {
692
693
  /** Optional ID for automation purposes */
693
694
  dataItemid?: string;
694
695
  }
695
- declare const Table: FC<TableProps>;
696
-
696
+ declare const Table: FC<TableProps>;
697
+
697
698
  interface TabProps extends AccessibleProps {
698
699
  badgeCount?: number;
699
700
  errorBadge?: boolean;
@@ -706,8 +707,8 @@ interface TabsProps extends AccessibleProps {
706
707
  /** Optional ID for automation purposes */
707
708
  dataItemid?: string;
708
709
  }
709
- declare const Tabs: FC<TabsProps>;
710
-
710
+ declare const Tabs: FC<TabsProps>;
711
+
711
712
  interface ToggleProps extends AccessibleProps {
712
713
  /** It is used to check whether Toggle is checked or not */
713
714
  on: boolean;
@@ -716,8 +717,8 @@ interface ToggleProps extends AccessibleProps {
716
717
  /** Optional ID for automation purposes */
717
718
  dataItemid?: string;
718
719
  }
719
- declare const Toggle: FC<ToggleProps>;
720
-
720
+ declare const Toggle: FC<ToggleProps>;
721
+
721
722
  interface ZeroStateProps extends AccessibleProps {
722
723
  /** The SVG path of the icon to show */
723
724
  icon: string;
@@ -736,8 +737,8 @@ interface ZeroStateProps extends AccessibleProps {
736
737
  /** Optional ID for automation purposes */
737
738
  dataItemid?: string;
738
739
  }
739
- declare const ZeroState: FC<ZeroStateProps>;
740
-
740
+ declare const ZeroState: FC<ZeroStateProps>;
741
+
741
742
  declare const getAgesFromDob: (dob: string) => {
742
743
  calculated_nearest_age: number | null;
743
744
  calculated_current_age: number | null;
@@ -752,8 +753,8 @@ declare const validateEmail: (email: string) => boolean;
752
753
  declare const validatePhone: (phone: string) => boolean;
753
754
  declare const formatAsPhone: (number: string) => string;
754
755
  declare const formatAsSsn: (number: string) => string;
755
- declare const formatAsMask: (number: string, mask: string) => string;
756
-
756
+ declare const formatAsMask: (number: string, mask: string) => string;
757
+
757
758
  declare const Colors: {
758
759
  PRIMARY: {
759
760
  Hex: string;
@@ -805,6 +806,6 @@ declare const EditableTheme: {
805
806
  Hex: string;
806
807
  Rgb: string;
807
808
  };
808
- };
809
-
810
- 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 };
809
+ };
810
+
811
+ 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.13.72",
3
+ "version": "1.13.74",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",