@hexure/ui 1.13.94 → 1.13.95

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.
@@ -31,6 +31,8 @@ export interface ButtonProps extends AccessibleProps {
31
31
  dataItemid?: string;
32
32
  /** Optional type for the button */
33
33
  type?: 'button' | 'submit' | 'reset' | null;
34
+ /** Optional section name for automation purposes */
35
+ dataSectionName?: string;
34
36
  }
35
37
  declare const Button: FC<ButtonProps>;
36
38
  export default Button;
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;
@@ -128,17 +128,19 @@ interface ButtonProps$3 extends AccessibleProps {
128
128
  dataItemid?: string;
129
129
  /** Optional type for the button */
130
130
  type?: 'button' | 'submit' | 'reset' | null;
131
+ /** Optional section name for automation purposes */
132
+ dataSectionName?: string;
131
133
  }
132
- declare const Button: FC<ButtonProps$3>;
133
-
134
+ declare const Button: FC<ButtonProps$3>;
135
+
134
136
  interface AppHeaderProps {
135
137
  logoUrl?: string;
136
138
  buttons: ButtonProps$3[];
137
139
  /** Optional ID for automation purposes */
138
140
  dataItemid?: string;
139
141
  }
140
- declare const AppHeader: FC<AppHeaderProps>;
141
-
142
+ declare const AppHeader: FC<AppHeaderProps>;
143
+
142
144
  interface MenuItemType extends AccessibleProps {
143
145
  icon: string;
144
146
  label: string;
@@ -159,8 +161,8 @@ interface AppMenuProps extends AccessibleProps {
159
161
  dataItemid?: string;
160
162
  onChange?: (isCollapsed: boolean) => void;
161
163
  }
162
- declare const AppMenu: FC<AppMenuProps>;
163
-
164
+ declare const AppMenu: FC<AppMenuProps>;
165
+
164
166
  interface ButtonProps$2 {
165
167
  children: string;
166
168
  onClick: (e?: any) => void;
@@ -176,8 +178,8 @@ interface BulkActionBarProps extends AccessibleProps {
176
178
  /** Optional ID for automation purposes */
177
179
  dataItemid?: string;
178
180
  }
179
- declare const BulkActionBar: FC<BulkActionBarProps>;
180
-
181
+ declare const BulkActionBar: FC<BulkActionBarProps>;
182
+
181
183
  interface MenuItemProps extends AccessibleProps {
182
184
  icon?: string;
183
185
  label?: string;
@@ -191,8 +193,8 @@ interface MoreMenuProps extends AccessibleProps {
191
193
  /** Optional ID for automation purposes */
192
194
  dataItemid?: string;
193
195
  }
194
- declare const MoreMenu: FC<MoreMenuProps>;
195
-
196
+ declare const MoreMenu: FC<MoreMenuProps>;
197
+
196
198
  interface ButtonMenuProps {
197
199
  disabled?: boolean;
198
200
  label: string;
@@ -208,8 +210,8 @@ interface ButtonMenuProps {
208
210
  /** Optional ID for automation purposes */
209
211
  dataItemid?: string;
210
212
  }
211
- declare const ButtonMenu: FC<ButtonMenuProps>;
212
-
213
+ declare const ButtonMenu: FC<ButtonMenuProps>;
214
+
213
215
  interface CheckboxProps extends AccessibleProps {
214
216
  /** It is used to give label to checkbox. */
215
217
  children?: string;
@@ -229,8 +231,8 @@ interface CheckboxProps extends AccessibleProps {
229
231
  isInvalidRedBackground?: boolean;
230
232
  isWarningError?: boolean;
231
233
  }
232
- declare const Checkbox: FC<CheckboxProps>;
233
-
234
+ declare const Checkbox: FC<CheckboxProps>;
235
+
234
236
  interface OptionProps$3 {
235
237
  label?: string;
236
238
  value: string | number;
@@ -245,8 +247,8 @@ interface ChecklistProps extends AccessibleProps {
245
247
  /** Optional ID for automation purposes */
246
248
  dataItemid?: string;
247
249
  }
248
- declare const Checklist: FC<ChecklistProps>;
249
-
250
+ declare const Checklist: FC<ChecklistProps>;
251
+
250
252
  interface CopyProps extends AccessibleProps {
251
253
  /** Set the text to be displayed */
252
254
  children: string | React.ReactNode;
@@ -262,8 +264,8 @@ interface CopyProps extends AccessibleProps {
262
264
  /** Optional ID for automation purposes */
263
265
  dataItemid?: string;
264
266
  }
265
- declare const Copy: FC<CopyProps>;
266
-
267
+ declare const Copy: FC<CopyProps>;
268
+
267
269
  interface styleProps$1 {
268
270
  width?: number | string;
269
271
  }
@@ -284,8 +286,8 @@ interface DateProps extends AccessibleProps {
284
286
  dataItemid?: string;
285
287
  locale?: localeProps;
286
288
  }
287
- declare const DatePicker: FC<DateProps>;
288
-
289
+ declare const DatePicker: FC<DateProps>;
290
+
289
291
  interface ButtonProps$1 extends AccessibleProps {
290
292
  disabled?: boolean;
291
293
  children: string;
@@ -320,8 +322,8 @@ interface DrawerProps extends AccessibleProps {
320
322
  dataItemid?: string;
321
323
  bottomNotes?: string | ReactNode;
322
324
  }
323
- declare const Drawer: FC<DrawerProps>;
324
-
325
+ declare const Drawer: FC<DrawerProps>;
326
+
325
327
  interface ActionProps {
326
328
  dataItemid?: string;
327
329
  label: string;
@@ -348,8 +350,8 @@ interface FieldProps extends AccessibleProps {
348
350
  /** Optional for black message with icon */
349
351
  isNewMessageType?: boolean;
350
352
  }
351
- declare const Field: FC<FieldProps>;
352
-
353
+ declare const Field: FC<FieldProps>;
354
+
353
355
  interface FieldGroupProps {
354
356
  /** The label to display above the field group */
355
357
  label: string;
@@ -358,8 +360,8 @@ interface FieldGroupProps {
358
360
  /** Optional ID for automation purposes */
359
361
  dataItemid?: string;
360
362
  }
361
- declare const FieldGroup: FC<FieldGroupProps>;
362
-
363
+ declare const FieldGroup: FC<FieldGroupProps>;
364
+
363
365
  interface FileUploadProps {
364
366
  /** A method to call when files are added/removed. Return the new file or array of files. */
365
367
  onChange?: (files: Array<File>) => void;
@@ -385,8 +387,8 @@ interface ErrorObject {
385
387
  file: File;
386
388
  message: string;
387
389
  }
388
- declare const FileUpload: FC<FileUploadProps>;
389
-
390
+ declare const FileUpload: FC<FileUploadProps>;
391
+
390
392
  interface HeadingProps extends AccessibleProps {
391
393
  /** Toggle between bold and normal font weights */
392
394
  bold?: boolean;
@@ -403,8 +405,8 @@ interface HeadingProps extends AccessibleProps {
403
405
  /** Optional style for the header title */
404
406
  style?: CSSProperties;
405
407
  }
406
- declare const Heading: FC<HeadingProps>;
407
-
408
+ declare const Heading: FC<HeadingProps>;
409
+
408
410
  interface InputProps extends AccessibleProps {
409
411
  format?: 'phone' | 'currency' | 'currency_decimal' | 'ssn';
410
412
  height?: string;
@@ -439,8 +441,8 @@ interface InputProps extends AccessibleProps {
439
441
  isInvalidRedBackground?: boolean;
440
442
  isWarningError?: boolean;
441
443
  }
442
- declare const Input: FC<InputProps>;
443
-
444
+ declare const Input: FC<InputProps>;
445
+
444
446
  interface LinkProps extends AccessibleProps {
445
447
  /** Set the text to be displayed */
446
448
  children: string;
@@ -451,22 +453,22 @@ interface LinkProps extends AccessibleProps {
451
453
  /** Optional ID for automation purposes */
452
454
  dataItemid?: string;
453
455
  }
454
- declare const Link: FC<LinkProps>;
455
-
456
+ declare const Link: FC<LinkProps>;
457
+
456
458
  interface LoaderProps {
457
459
  /** Optional ID for automation purposes */
458
460
  dataItemid?: string;
459
461
  }
460
- declare const Loader: FC<LoaderProps>;
461
-
462
+ declare const Loader: FC<LoaderProps>;
463
+
462
464
  interface LogoProps extends AccessibleProps {
463
465
  type?: 'mark_red' | 'mark_white' | 'standard_white' | 'standard_black' | 'standard_full' | 'standard_reversed';
464
466
  height?: string;
465
467
  /** Optional ID for automation purposes */
466
468
  dataItemid?: string;
467
469
  }
468
- declare const Logo: FC<LogoProps>;
469
-
470
+ declare const Logo: FC<LogoProps>;
471
+
470
472
  interface StepProps {
471
473
  label: string | ReactNode;
472
474
  complete?: boolean;
@@ -483,8 +485,8 @@ interface ProgressBarProps {
483
485
  /** Optional ID for automation purposes */
484
486
  dataItemid?: string;
485
487
  }
486
- declare const ProgressBar: FC<ProgressBarProps>;
487
-
488
+ declare const ProgressBar: FC<ProgressBarProps>;
489
+
488
490
  interface ButtonProps {
489
491
  disabled?: boolean;
490
492
  children: string;
@@ -525,8 +527,8 @@ interface ModalProps extends AccessibleProps {
525
527
  /** Optional style for the header title */
526
528
  headerTitleStyle?: CSSProperties;
527
529
  }
528
- declare const Modal: FC<ModalProps>;
529
-
530
+ declare const Modal: FC<ModalProps>;
531
+
530
532
  interface OptionProps$2 {
531
533
  label?: string;
532
534
  value: string | number;
@@ -548,8 +550,8 @@ interface MultiSelectProps extends AccessibleProps {
548
550
  /** Optional ID for automation purposes */
549
551
  dataItemid?: string;
550
552
  }
551
- declare const MultiSelect: FC<MultiSelectProps>;
552
-
553
+ declare const MultiSelect: FC<MultiSelectProps>;
554
+
553
555
  interface TagProps extends AccessibleProps {
554
556
  /** It is used to select tag-type either default or removable. */
555
557
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
@@ -563,8 +565,8 @@ interface TagProps extends AccessibleProps {
563
565
  dataItemid?: string;
564
566
  rotate?: boolean;
565
567
  }
566
- declare const Tag: FC<TagProps>;
567
-
568
+ declare const Tag: FC<TagProps>;
569
+
568
570
  interface PageHeaderProps {
569
571
  title?: string;
570
572
  breadcrumbs?: Array<{
@@ -596,8 +598,8 @@ interface PageHeaderProps {
596
598
  /** Optional ID for automation purposes */
597
599
  dataItemid?: string;
598
600
  }
599
- declare const PageHeader: FC<PageHeaderProps>;
600
-
601
+ declare const PageHeader: FC<PageHeaderProps>;
602
+
601
603
  interface PaginationProps extends AccessibleProps {
602
604
  currentPage: number;
603
605
  onClick: (e?: any) => void;
@@ -606,8 +608,8 @@ interface PaginationProps extends AccessibleProps {
606
608
  dataItemid?: string;
607
609
  type?: 'button' | 'submit' | 'reset' | null;
608
610
  }
609
- declare const Pagination: FC<PaginationProps>;
610
-
611
+ declare const Pagination: FC<PaginationProps>;
612
+
611
613
  interface RadioProps extends AccessibleProps {
612
614
  /** It is used to give label to radio. */
613
615
  children: string | number;
@@ -628,8 +630,8 @@ interface RadioProps extends AccessibleProps {
628
630
  isInvalidRedBackground?: boolean;
629
631
  isWarningError?: boolean;
630
632
  }
631
- declare const Radio: FC<RadioProps>;
632
-
633
+ declare const Radio: FC<RadioProps>;
634
+
633
635
  interface OptionProps$1 {
634
636
  label?: string;
635
637
  value: string | number;
@@ -642,8 +644,8 @@ interface RadioListProps extends AccessibleProps {
642
644
  /** Optional ID for automation purposes */
643
645
  dataItemid?: string;
644
646
  }
645
- declare const RadioList: FC<RadioListProps>;
646
-
647
+ declare const RadioList: FC<RadioListProps>;
648
+
647
649
  interface OptionProps {
648
650
  label?: string;
649
651
  value: string | number;
@@ -672,8 +674,8 @@ interface SelectProps extends AccessibleProps {
672
674
  isWarningError?: boolean;
673
675
  innerRef?: any;
674
676
  }
675
- declare const Select: FC<SelectProps>;
676
-
677
+ declare const Select: FC<SelectProps>;
678
+
677
679
  interface RowObject {
678
680
  [key: string]: any;
679
681
  }
@@ -699,8 +701,8 @@ interface TableProps extends AccessibleProps {
699
701
  /** Optional ID for automation purposes */
700
702
  dataItemid?: string;
701
703
  }
702
- declare const Table: FC<TableProps>;
703
-
704
+ declare const Table: FC<TableProps>;
705
+
704
706
  interface TabProps extends AccessibleProps {
705
707
  badgeCount?: number;
706
708
  errorBadge?: boolean;
@@ -713,8 +715,8 @@ interface TabsProps extends AccessibleProps {
713
715
  /** Optional ID for automation purposes */
714
716
  dataItemid?: string;
715
717
  }
716
- declare const Tabs: FC<TabsProps>;
717
-
718
+ declare const Tabs: FC<TabsProps>;
719
+
718
720
  interface ToggleProps extends AccessibleProps {
719
721
  /** It is used to check whether Toggle is checked or not */
720
722
  on: boolean;
@@ -723,8 +725,8 @@ interface ToggleProps extends AccessibleProps {
723
725
  /** Optional ID for automation purposes */
724
726
  dataItemid?: string;
725
727
  }
726
- declare const Toggle: FC<ToggleProps>;
727
-
728
+ declare const Toggle: FC<ToggleProps>;
729
+
728
730
  interface ZeroStateProps extends AccessibleProps {
729
731
  /** The SVG path of the icon to show */
730
732
  icon: string;
@@ -743,8 +745,8 @@ interface ZeroStateProps extends AccessibleProps {
743
745
  /** Optional ID for automation purposes */
744
746
  dataItemid?: string;
745
747
  }
746
- declare const ZeroState: FC<ZeroStateProps>;
747
-
748
+ declare const ZeroState: FC<ZeroStateProps>;
749
+
748
750
  declare const getAgesFromDob: (dob: string) => {
749
751
  calculated_nearest_age: number | null;
750
752
  calculated_current_age: number | null;
@@ -759,8 +761,8 @@ declare const validateEmail: (email: string) => boolean;
759
761
  declare const validatePhone: (phone: string) => boolean;
760
762
  declare const formatAsPhone: (number: string) => string;
761
763
  declare const formatAsSsn: (number: string) => string;
762
- declare const formatAsMask: (number: string, mask: string) => string;
763
-
764
+ declare const formatAsMask: (number: string, mask: string) => string;
765
+
764
766
  declare const Colors: {
765
767
  PRIMARY: {
766
768
  Hex: string;
@@ -812,6 +814,6 @@ declare const EditableTheme: {
812
814
  Hex: string;
813
815
  Rgb: string;
814
816
  };
815
- };
816
-
817
- 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 };
817
+ };
818
+
819
+ 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.94",
3
+ "version": "1.13.95",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",